1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[600],{3454:function(e,t,i){"use strict";var n,s;e.exports=(null==(n=i.g.process)?void 0:n.env)&&"object"==typeof(null==(s=i.g.process)?void 0:s.env)?i.g.process:i(7663)},7498:function(e,t){"use strict";var i,n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{PrefetchKind:function(){return i},ACTION_REFRESH:function(){return s},ACTION_NAVIGATE:function(){return o},ACTION_RESTORE:function(){return a},ACTION_SERVER_PATCH:function(){return l},ACTION_PREFETCH:function(){return u},ACTION_FAST_REFRESH:function(){return c},ACTION_SERVER_ACTION:function(){return h}});let s="refresh",o="navigate",a="restore",l="server-patch",u="prefetch",c="fast-refresh",h="server-action";(n=i||(i={})).AUTO="auto",n.FULL="full",n.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},30:function(e,t,i){"use strict";function getDomainLocale(e,t,i,n){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return getDomainLocale}}),i(2866),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3271:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return g}});let n=i(8754),s=i(1757),o=s._(i(7294)),a=n._(i(3935)),l=n._(i(9201)),u=i(3914),c=i(5494),h=i(869);i(1905);let d=i(1823),p=n._(i(269)),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"custom",dangerouslyAllowSVG:!1,unoptimized:!1};function handleLoading(e,t,i,n,s,o){let a=null==e?void 0:e.src;if(!e||e["data-loaded-src"]===a)return;e["data-loaded-src"]=a;let l="decode"in e?e.decode():Promise.resolve();l.catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&s(!0),null==i?void 0:i.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,s=!1;i.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>s,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{s=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}})}function getDynamicProps(e){let[t,i]=o.version.split("."),n=parseInt(t,10),s=parseInt(i,10);return n>18||18===n&&s>=3?{fetchPriority:e}:{fetchpriority:e}}let f=(0,o.forwardRef)((e,t)=>{let{src:i,srcSet:n,sizes:s,height:a,width:l,decoding:u,className:c,style:h,fetchPriority:d,placeholder:p,loading:m,unoptimized:f,fill:g,onLoadRef:y,onLoadingCompleteRef:v,setBlurComplete:b,setShowAltText:x,onLoad:T,onError:A,...w}=e;return o.default.createElement("img",{...w,...getDynamicProps(d),loading:m,width:l,height:a,decoding:u,"data-nimg":g?"fill":"1",className:c,style:h,sizes:s,srcSet:n,src:i,ref:(0,o.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(A&&(e.src=e.src),e.complete&&handleLoading(e,p,y,v,b,f))},[i,p,y,v,b,A,f,t]),onLoad:e=>{let t=e.currentTarget;handleLoading(t,p,y,v,b,f)},onError:e=>{x(!0),"empty"!==p&&b(!0),A&&A(e)}})});function ImagePreload(e){let{isAppRouter:t,imgAttributes:i}=e,n={as:"image",imageSrcSet:i.srcSet,imageSizes:i.sizes,crossOrigin:i.crossOrigin,referrerPolicy:i.referrerPolicy,...getDynamicProps(i.fetchPriority)};return t&&a.default.preload?(a.default.preload(i.src,n),null):o.default.createElement(l.default,null,o.default.createElement("link",{key:"__nimg-"+i.src+i.srcSet+i.sizes,rel:"preload",href:i.srcSet?void 0:i.src,...n}))}let g=(0,o.forwardRef)((e,t)=>{let i=(0,o.useContext)(d.RouterContext),n=(0,o.useContext)(h.ImageConfigContext),s=(0,o.useMemo)(()=>{let e=m||n||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>
1e-t),i=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:i}},[n]),{onLoad:a,onLoadingComplete:l}=e,g=(0,o.useRef)(a);(0,o.useEffect)(()=>{g.current=a},[a]);let y=(0,o.useRef)(l);(0,o.useEffect)(()=>{y.current=l},[l]);let[v,b]=(0,o.useState)(!1),[x,T]=(0,o.useState)(!1),{props:A,meta:w}=(0,u.getImgProps)(e,{defaultLoader:p.default,imgConf:s,blurComplete:v,showAltText:x});return o.default.createElement(o.default.Fragment,null,o.default.createElement(f,{...A,unoptimized:w.unoptimized,placeholder:w.placeholder,fill:w.fill,onLoadRef:g,onLoadingCompleteRef:y,setBlurComplete:b,setShowAltText:T,ref:t}),w.priority?o.default.createElement(ImagePreload,{isAppRouter:!i,imgAttributes:A}):null)});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5170:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return b}});let n=i(8754),s=n._(i(7294)),o=i(4450),a=i(2227),l=i(4364),u=i(109),c=i(3607),h=i(1823),d=i(9031),p=i(920),m=i(30),f=i(7192),g=i(7498),y=new Set;function prefetch(e,t,i,n,s,o){if(!o&&!(0,a.isLocalURL)(t))return;if(!n.bypassPrefetchedCheck){let s=void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0,o=t+"%"+i+"%"+s;if(y.has(o))return;y.add(o)}let l=o?e.prefetch(t,s):e.prefetch(t,i,n);Promise.resolve(l).catch(e=>{})}function formatStringOrUrl(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let v=s.default.forwardRef(function(e,t){let i,n;let{href:l,as:y,children:v,prefetch:b=null,passHref:x,replace:T,shallow:A,scroll:w,locale:S,onClick:P,onMouseEnter:V,onTouchStart:C,legacyBehavior:M=!1,...E}=e;i=v,M&&("string"==typeof i||"number"==typeof i)&&(i=s.default.createElement("a",null,i));let D=s.default.useContext(h.RouterContext),k=s.default.useContext(d.AppRouterContext),R=null!=D?D:k,L=!D,B=!1!==b,j=null===b?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:I,as:O}=s.default.useMemo(()=>{if(!D){let e=formatStringOrUrl(l);return{href:e,as:y?formatStringOrUrl(y):e}}let[e,t]=(0,o.resolveHref)(D,l,!0);return{href:e,as:y?(0,o.resolveHref)(D,y):t||e}},[D,l,y]),N=s.default.useRef(I),F=s.default.useRef(O);M&&(n=s.default.Children.only(i));let _=M?n&&"object"==typeof n&&n.ref:t,[z,U,W]=(0,p.useIntersection)({rootMargin:"200px"}),G=s.default.useCallback(e=>{(F.current!==O||N.current!==I)&&(W(),F.current=O,N.current=I),z(e),_&&("function"==typeof _?_(e):"object"==typeof _&&(_.current=e))},[O,_,I,W,z]);s.default.useEffect(()=>{R&&U&&B&&prefetch(R,I,O,{locale:S},{kind:j},L)},[O,I,U,S,B,null==D?void 0:D.locale,R,L,j]);let $={ref:G,onClick(e){M||"function"!=typeof P||P(e),M&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),R&&!e.defaultPrevented&&function(e,t,i,n,o,l,u,c,h,d){let{nodeName:p}=e.currentTarget,m="A"===p.toUpperCase();if(m&&(function(e){let t=e.currentTarget,i=t.getAttribute("target");return i&&"_self"!==i||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!h&&!(0,a.isLocalURL)(i)))return;e.preventDefault();let navigate=()=>{let e=null==u||u;"beforePopState"in t?t[o?"replace":"push"](i,n,{shallow:l,locale:c,scroll:e}):t[o?"replace":"push"](n||i,{forceOptimisticNavigation:!d,scroll:e})};h?s.default.startTransition(navigate):navigate()}(e,R,I,O,T,A,w,S,L,B)},onMouseEnter(e){M||"function"!=typeof V||V(e),M&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),R&&(B||!L)&&prefetch(R,I,O,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:j},L)},onTouchStart(e){M||"function"!=typeof C||C(e),M&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),R&&(B||!L)&&prefetch(R,I,O,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:j},L)}};if((0,u.isAbsoluteUrl)(O))$.href=O;else if(!M||x||"a"===n.type&&!("href"in n.props)){let e=void 0!==S?S:null==D?void 0:D.locale,t=(null==D?void 0:D.isLocaleDomain)&&(0,m.getDomainLocale)(O,e,null==D?void 0:D.locales,null==D?void 0:D.domainLocales);$.href=t||(0,f.addBasePath)((0,c.addLocale)(O,e,null==D?void 0:D.defaultLocale))}return M?s.default.cloneElement(n,$):s.default.createElement("a",{...E,...$},i)}),b=v;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},920:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return useIntersection}});let n=i(7294),s=i(3436),o="function"==typeof IntersectionObserver,a=new Map,l=[];function useIntersection(e){let{rootRef:t,rootMargin:i,disabled:u}=e,c=u||!o,[h,d]=(0,n.useState)(!1),p=(0,n.useRef)(null),m=(0,n.useCallback)(e=>{p.current=e},[]);(0,n.useEffect)(()=>{if(o){if(c||h)return;let e=p.current;if(e&&e.tagName){let n=function(e,t,i){let{id:n,observer:s,elements:o}=function(e){let t;let i={root:e.root||null,margin:e.rootMargin||""},n=l.find(e=>e.root===i.root&&e.margin===i.margin);if(n&&(t=a.get(n)))return t;let s=new Map,o=new IntersectionObserver(e=>{e.forEach(e=>{let t=s.get(e.target),i=e.isIntersecting||e.intersectionRatio>0;t&&i&&t(i)})},e);return t={id:i,observer:o,elements:s},l.push(i),a.set(i,t),t}(i);return o.set(e,t),s.observe(e),function(){if(o.delete(e),s.unobserve(e),0===o.size){s.disconnect(),a.delete(n);let e=l.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:i});return n}}else if(!h){let e=(0,s.requestIdleCallback)(()=>d(!0));return()=>(0,s.cancelIdleCallback)(e)}},[c,i,t,h,p.current]);let f=(0,n.useCallback)(()=>{d(!1)},[]);return[m,h,f]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3914:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return getImgProps}}),i(1905);let n=i(2393),s=i(5494);function isStaticRequire(e){return void 0!==e.default}function getInt(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function getImgProps(e,t){var i;let o,a,l,{src:u,sizes:c,unoptimized:h=!1,priority:d=!1,loading:p,className:m,quality:f,width:g,height:y,fill:v=!1,style:b,onLoad:x,onLoadingComplete:T,placeholder:A="empty",blurDataURL:w,fetchPriority:S,layout:P,objectFit:V,objectPosition:C,lazyBoundary:M,lazyRoot:E,...D}=e,{imgConf:k,showAltText:R,blurComplete:L,defaultLoader:B}=t,j=k||s.imageConfigDefault;if("allSizes"in j)o=j;else{let e=[...j.deviceSizes,...j.imageSizes].sort((e,t)=>e-t),t=j.deviceSizes.sort((e,t)=>e-t);o={...j,allSizes:e,deviceSizes:t}}let I=D.loader||B;delete D.loader,delete D.srcSet;let O="__next_img_default"in I;if(O){if("custom"===o.loader)throw Error('Image with src "'+u+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=I;I=t=>{let{config:i,...n}=t;return e(n)}}if(P){"fill"===P&&(v=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[P];e&&(b={...b,...e});let t={responsive:"100vw",fill:"100vw"}[P];t&&!c&&(c=t)}let N="",F=getInt(g),_=getInt(y);if("object"==typeof(i=u)&&(isStaticRequire(i)||void 0!==i.src)){let e=isStaticRequire(u)?u.default:u;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(a=e.blurWidth,l=e.blurHeight,w=w||e.blurDataURL,N=e.src,!v){if(F||_){if(F&&!_){let t=F/e.width;_=Math.round(e.height*t)}else if(!F&&_){let t=_/e.height;F=Math.round(e.width*t)}}else F=e.width,_=e.height}}let z=!d&&("lazy"===p||void 0===p);(!(u="string"==typeof u?u:N)||u.startsWith("data:")||u.startsWith("blob:"))&&(h=!0,z=!1),o.unoptimized&&(h=!0),O&&u.endsWith(".svg")&&!o.dangerouslyAllowSVG&&(h=!0),d&&(S="high");let U=getInt(f),W=Object.assign(v?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:V,objectPosition:C}:{},R?{}:{color:"transparent"},b),G=L||"empty"===A?null:"blur"===A?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:F,heightInt:_,blurWidth:a,blurHeight:l,blurDataURL:w||"",objectFit:W.objectFit})+'")':'url("'+A+'")',$=G?{backgroundSize:W.objectFit||"cover",backgroundPosition:W.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:G}:{}
1,H=function(e){let{config:t,src:i,unoptimized:n,width:s,quality:o,sizes:a,loader:l}=e;if(n)return{src:i,srcSet:void 0,sizes:void 0};let{widths:u,kind:c}=function(e,t,i){let{deviceSizes:n,allSizes:s}=e;if(i){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(i);n)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:s.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:s,kind:"w"}}if("number"!=typeof t)return{widths:n,kind:"w"};let o=[...new Set([t,2*t].map(e=>s.find(t=>t>=e)||s[s.length-1]))];return{widths:o,kind:"x"}}(t,s,a),h=u.length-1;return{sizes:a||"w"!==c?a:"100vw",srcSet:u.map((e,n)=>l({config:t,src:i,quality:o,width:e})+" "+("w"===c?e:n+1)+c).join(", "),src:l({config:t,src:i,quality:o,width:u[h]})}}({config:o,src:u,unoptimized:h,width:F,quality:U,sizes:c,loader:I}),K={...D,loading:z?"lazy":p,fetchPriority:S,width:F,height:_,decoding:"async",className:m,style:{...W,...$},sizes:H.sizes,srcSet:H.srcSet,src:H.src},q={unoptimized:h,priority:d,placeholder:A,fill:v};return{props:K,meta:q}}},2393:function(e,t){"use strict";function getImageBlurSvg(e){let{widthInt:t,heightInt:i,blurWidth:n,blurHeight:s,blurDataURL:o,objectFit:a}=e,l=n?40*n:t,u=s?40*s:i,c=l&&u?"viewBox='0 0 "+l+" "+u+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+c+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(c?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return getImageBlurSvg}})},645:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{unstable_getImgProps:function(){return unstable_getImgProps},default:function(){return u}});let n=i(8754),s=i(3914),o=i(1905),a=i(3271),l=n._(i(269)),unstable_getImgProps=e=>{(0,o.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");let{props:t}=(0,s.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"custom",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,i]of Object.entries(t))void 0===i&&delete t[e];return{props:t}},u=a.Image},7663:function(e){!function(){var t={229:function(e){var t,i,n,s=e.exports={};function defaultSetTimout(){throw Error("setTimeout has not been defined")}function defaultClearTimeout(){throw Error("clearTimeout has not been defined")}function runTimeout(e){if(t===setTimeout)return setTimeout(e,0);if((t===defaultSetTimout||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(i){try{return t.call(null,e,0)}catch(i){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){t=defaultSetTimout}try{i="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){i=defaultClearTimeout}}();var o=[],a=!1,l=-1;function cleanUpNextTick(){a&&n&&(a=!1,n.length?o=n.concat(o):l=-1,o.length&&drainQueue())}function drainQueue(){if(!a){var e=runTimeout(cleanUpNextTick);a=!0;for(var t=o.length;t;){for(n=o,o=[];++l<t;)n&&n[l].run();l=-1,t=o.length}n=null,a=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===defaultClearTimeout||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function Item(e,t){this.fun=e,this.array=t}function noop(){}s.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];o.push(new Item(e,t)),1!==o.length||a||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=noop,s.addListener=noop,s.once=noop,s.off=noop,s.removeListener=noop,s.removeAllListeners=noop,s.emit=noop,s.prependListener=noop,s.prependOnceListener=noop,s.listeners=function(e){return[]},s.binding=function(e){throw Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(e){throw Error("process.chdir is not supported")},s.umask=function(){return 0}}},i={};function __nccwpck_require__(e){var n=i[e];if(void 0!==n)return n.exports;var s=i[e]={exports:{}},o=!0;try{t[e](s,s.exports,__nccwpck_require__),o=!1}finally{o&&delete i[e]}return s.exports}__nccwpck_require__.ab="//";var n=__nccwpck_require__(229);e.exports=n}()},9008:function(e,t,i){e.exports=i(9201)},5675:function(e,t,i){e.exports=i(645)},1664:function(e,t,i){e.exports=i(5170)},1163:function(e,t,i){e.exports=i(9974)},3967:function(e,t){var i;/*! 2 Copyright (c) 2018 Jed Watson. 3 Licensed under the MIT License (MIT), see 4 http://jedwatson.github.io/classnames 5*/!function(){"use strict";var n={}.hasOwnProperty;function classNames(){for(var e="",t=0;t<arguments.length;t++){var i=arguments[t];i&&(e=appendClass(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return classNames.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var i in e)n.call(e,i)&&e[i]&&(t=appendClass(t,i));return t}(i)))}return e}function appendClass(e,t){return t?e?e+" "+t:e+t:e}e.exports?(classNames.default=classNames,e.exports=classNames):void 0!==(i=(function(){return classNames}).apply(t,[]))&&(e.exports=i)}()},512:function(e,t,i){"use strict";function clsx(){for(var e,t,i=0,n="",s=arguments.length;i<s;i++)(e=arguments[i])&&(t=function r(e){var t,i,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e){if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(i=r(e[t]))&&(n&&(n+=" "),n+=i)}else for(i in e)e[i]&&(n&&(n+=" "),n+=i)}return n}(e))&&(n&&(n+=" "),n+=t);return n}i.d(t,{W:function(){return clsx}})},1093:function(e,t,i){"use strict";let n;i.d(t,{E:function(){return tD}});var s,o=i(7294);let a=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],l=new Set(a
5),radToDeg=e=>180*e/Math.PI,rotate=e=>{let t=radToDeg(Math.atan2(e[1],e[0]));return rebaseAngle(t)},u={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate,rotateZ:rotate,skewX:e=>radToDeg(Math.atan(e[1])),skewY:e=>radToDeg(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},rebaseAngle=e=>((e%=360)<0&&(e+=360),e),scaleX=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),scaleY=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),c={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX,scaleY,scale:e=>(scaleX(e)+scaleY(e))/2,rotateX:e=>rebaseAngle(radToDeg(Math.atan2(e[6],e[5]))),rotateY:e=>rebaseAngle(radToDeg(Math.atan2(-e[2],e[0]))),rotateZ:rotate,rotate:rotate,skewX:e=>radToDeg(Math.atan(e[4])),skewY:e=>radToDeg(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function defaultTransformValue(e){return e.includes("scale")?1:0}function parseValueFromTransform(e,t){let i,n;if(!e||"none"===e)return defaultTransformValue(t);let s=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(s)i=c,n=s;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=u,n=t}if(!n)return defaultTransformValue(t);let o=i[t],a=n[1].split(",").map(convertTransformToNumber);return"function"==typeof o?o(a):a[o]}let readTransformValue=(e,t)=>{let{transform:i="none"}=getComputedStyle(e);return parseValueFromTransform(i,t)};function convertTransformToNumber(e){return parseFloat(e.trim())}let checkStringStartsWith=e=>t=>"string"==typeof t&&t.startsWith(e),h=checkStringStartsWith("--"),d=checkStringStartsWith("var(--"),isCSSVariableToken=e=>{let t=d(e);return!!t&&p.test(e.split("/*")[0].trim())},p=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function convertBoundingBoxToBox({top:e,left:t,right:i,bottom:n}){return{x:{min:t,max:i},y:{min:e,max:n}}}let mixNumber=(e,t,i)=>e+(t-e)*i;function isIdentityScale(e){return void 0===e||1===e}function hasScale({scale:e,scaleX:t,scaleY:i}){return!isIdentityScale(e)||!isIdentityScale(t)||!isIdentityScale(i)}function hasTransform(e){return hasScale(e)||has2DTranslate(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function has2DTranslate(e){var t,i;return(t=e.x)&&"0%"!==t||(i=e.y)&&"0%"!==i}function applyPointDelta(e,t,i,n,s){return void 0!==s&&(e=n+s*(e-n)),n+i*(e-n)+t}function applyAxisDelta(e,t=0,i=1,n,s){e.min=applyPointDelta(e.min,t,i,n,s),e.max=applyPointDelta(e.max,t,i,n,s)}function applyBoxDelta(e,{x:t,y:i}){applyAxisDelta(e.x,t.translate,t.scale,t.originPoint),applyAxisDelta(e.y,i.translate,i.scale,i.originPoint)}function translateAxis(e,t){e.min=e.min+t,e.max=e.max+t}function transformAxis(e,t,i,n,s=.5){let o=mixNumber(e.min,e.max,s);applyAxisDelta(e,t,i,o,n)}function transformBox(e,t){transformAxis(e.x,t.x,t.scaleX,t.scale,t.originX),transformAxis(e.y,t.y,t.scaleY,t.scale,t.originY)}function measureViewportBox(e,t){return convertBoundingBoxToBox(function(e,t){if(!t)return e;let i=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}let m=new Set(["width","height","top","left","right","bottom",...a]),clamp=(e,t,i)=>i>t?t:i<e?e:i,f={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},g={...f,transform:e=>clamp(0,1,e)},y={...f,default:1},createUnitType=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),v=createUnitType("deg"),b=createUnitType("%"),x=createUnitType("px"),T=createUnitType("vh"),A=createUnitType("vw"),w={...b,parse:e=>b.parse(e)/100,transform:e=>b.transform(100*e)},testValueType=e=>t=>t.test(e),S=[f,x,b,v,A,T,{test:e=>"auto"===e,parse:e=>e}],findDimensionValueType=e=>S.find(testValueType(e)),warning=()=>{},invariant=()=>{},isNumericalString=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),P=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,isNumOrPxType=e=>e===f||e===x,V=new Set(["x","y","z"]),C=a.filter(e=>!V.has(e)),M={width:({x:e},{paddingLeft:t="0",paddingRight:i="0"})=>e.max-e.min-parseFloat(t)-parseFloat(i),height:({y:e},{paddingTop:t="0",paddingBottom:i="0"})=>e.max-e.min-parseFloat(t)-parseFloat(i),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>parseValueFromTransform(t,"x"),y:(e,{transform:t})=>parseValueFromTransform(t,"y")};M.translateX=M.x,M.translateY=M.y;let noop=e=>e,E={},D=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],k={value:null,addProjectionMetrics:null};function createRenderBatcher(e,t){let i=!1,n=!0,s={delta:0,timestamp:0,isProcessing:!1},flagRunNextFrame=()=>i=!0,o=D.reduce((e,i)=>(e[i]=function(e,t){let i=new Set,n=new Set,s=!1,o=!1,a=new WeakSet,l={delta:0,timestamp:0,isProcessing:!1},u=0;function triggerCallback(t){a.has(t)&&(c.schedule(t),e()),u++,t(l)}let c={schedule:(e,t=!1,o=!1)=>{let l=o&&s,u=l?i:n;return t&&a.add(e),u.has(e)||u.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(l=e,s){o=!0;return}
5s=!0,[i,n]=[n,i],i.forEach(triggerCallback),t&&k.value&&k.value.frameloop[t].push(u),u=0,i.clear(),s=!1,o&&(o=!1,c.process(e))}};return c}(flagRunNextFrame,t?i:void 0),e),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:h,preRender:d,render:p,postRender:m}=o,processBatch=()=>{let o=E.useManualTiming?s.timestamp:performance.now();i=!1,E.useManualTiming||(s.delta=n?1e3/60:Math.max(Math.min(o-s.timestamp,40),1)),s.timestamp=o,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),c.process(s),h.process(s),d.process(s),p.process(s),m.process(s),s.isProcessing=!1,i&&t&&(n=!1,e(processBatch))},wake=()=>{i=!0,n=!0,s.isProcessing||e(processBatch)},f=D.reduce((e,t)=>{let n=o[t];return e[t]=(e,t=!1,s=!1)=>(i||wake(),n.schedule(e,t,s)),e},{});return{schedule:f,cancel:e=>{for(let t=0;t<D.length;t++)o[D[t]].cancel(e)},state:s,steps:o}}let{schedule:R,cancel:L,state:B,steps:j}=createRenderBatcher("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:noop,!0),I=new Set,O=!1,N=!1,F=!1;function measureAllKeyframes(){if(N){let e=Array.from(I).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),i=new Map;t.forEach(e=>{let t=function(e){let t=[];
5return C.forEach(i=>{let n=e.getValue(i);void 0!==n&&(t.push([i,n.get()]),n.set(i.startsWith("scale")?1:0))}),t}(e);t.length&&(i.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=i.get(e);t&&t.forEach(([t,i])=>{e.getValue(t)?.set(i)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}N=!1,O=!1,I.forEach(e=>e.complete(F)),I.clear()}function readAllKeyframes(){I.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(N=!0)})}let KeyframeResolver=class KeyframeResolver{constructor(e,t,i,n,s,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=i,this.motionValue=n,this.element=s,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(I.add(this),O||(O=!0,R.read(readAllKeyframes),R.resolveKeyframes(measureAllKeyframes))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:i,motionValue:n}=this;if(null===e[0]){let s=n?.get(),o=e[e.length-1];if(void 0!==s)e[0]=s;else if(i&&t){let n=i.readValue(t,o);null!=n&&(e[0]=n)}void 0===e[0]&&(e[0]=o),n&&void 0===s&&n.set(e[0])}!function(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),I.delete(this)}cancel(){"scheduled"===this.state&&(I.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}};let isZeroValueString=e=>/^0[^.\s]+$/u.test(e),sanitize=e=>Math.round(1e5*e)/1e5,_=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,z=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,isColorString=(e,t)=>i=>!!("string"==typeof i&&z.test(i)&&i.startsWith(e)||t&&null!=i&&Object.prototype.hasOwnProperty.call(i,t)),splitColor=(e,t,i)=>n=>{if("string"!=typeof n)return n;let[s,o,a,l]=n.match(_);return{[e]:parseFloat(s),[t]:parseFloat(o),[i]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}},clampRgbUnit=e=>clamp(0,255,e),U={...f,transform:e=>Math.round(clampRgbUnit(e))},W={test:isColorString("rgb","red"),parse:splitColor("red","green","blue"),transform:({red:e,green:t,blue:i,alpha:n=1})=>"rgba("+U.transform(e)+", "+U.transform(t)+", "+U.transform(i)+", "+sanitize(g.transform(n))+")"},G={test:isColorString("#"),parse:function(e){let t="",i="",n="",s="";return e.length>5?(t=e.substring(1,3),i=e.substring(3,5),n=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),i=e.substring(2,3),n=e.substring(3,4),s=e.substring(4,5),t+=t,i+=i,n+=n,s+=s),{red:parseInt(t,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}},transform:W.transform},$={test:isColorString("hsl","hue"),parse:splitColor("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:i,alpha:n=1})=>"hsla("+Math.round(e)+", "+b.transform(sanitize(t))+", "+b.transform(sanitize(i))+", "+sanitize(g.transform(n))+")"},H={test:e=>W.test(e)||G.test(e)||$.test(e),parse:e=>W.test(e)?W.parse(e):$.test(e)?$.parse(e):G.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?W.transform(e):$.transform(e),getAnimatableNone:e=>{let t=H.parse(e);return t.alpha=0,H.transform(t)}},K=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,q="number",Y="color",X=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function analyseComplexValue(e){let t=e.toString(),i=[],n={color:[],number:[],var:[]},s=[],o=0,a=t.replace(X,e=>(H.test(e)?(n.color.push(o),s.push(Y),i.push(H.parse(e))):e.startsWith("var(")?(n.var.push(o),s.push("var"),i.push(e)):(n.number.push(o),s.push(q),i.push(parseFloat(e))),++o,"${}")),l=a.split("${}");return{values:i,split:l,indexes:n,types:s}}function parseComplexValue(e){return analyseComplexValue(e).values}function createTransformer(e){let{split:t,types:i}=analyseComplexValue(e),n=t.length;return e=>{let s="";for(let o=0;o<n;o++)if(s+=t[o],void 0!==e[o]){let t=i[o];t===q?s+=sanitize(e[o]):t===Y?s+=H.transform(e[o]):s+=e[o]}return s}}let convertNumbersToZero=e=>"number"==typeof e?0:H.test(e)?H.getAnimatableNone(e):e,Z={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(_)?.length||0)+(e.match(K)?.length||0)>0},parse:parseComplexValue,createTransformer,getAnimatableNone:function(e){let t=parseComplexValue(e),i=createTransformer(e);return i(t.map(convertNumbersToZero))}},J=new Set(["brightness","contrast","saturate","opacity"]);function applyDefaultFilter(e){let[t,i]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=i.match(_)||[];if(!n)return e;let s=i.replace(n,""),o=J.has(t)?1:0;return n!==i&&(o*=100),t+"("+o+s+")"}let Q=/\b([a-z-]*)\(.*?\)/gu,ee={...Z,getAnimatableNone:e=>{let t=e.match(Q);return t?t.map(applyDefaultFilter).join(" "):e}},et={...f,transform:Math.round},ei={borderWidth:x,borderTopWidth:x,borderRightWidth:x,borderBottomWidth:x,borderLeftWidth:x,borderRadius:x,radius:x,borderTopLeftRadius:x,borderTopRightRadius:x,borderBottomRightRadius:x,borderBottomLeftRadius:x,width:x,maxWidth:x,height:x,maxHeight:x,top:x,right:x,bottom:x,left:x,padding:x,paddingTop:x,paddingRight:x,paddingBottom:x,paddingLeft:x,margin:x,marginTop:x,marginRight:x,marginBottom:x,marginLeft:x,backgroundPositionX:x,backgroundPositionY:x,rotate:v,rotateX:v,rotateY:v,rotateZ:v,scale:y,scaleX:y,scaleY:y,scaleZ:y,skew:v,skewX:v,skewY:v,distance:x,translateX:x,translateY:x,translateZ:x,x:x,y:x,z:x,perspective:x,transformPerspective:x,opacity:g,originX:w,originY:w,originZ:x,zIndex:et,fillOpacity:g,strokeOpacity:g,numOctaves:et},er={...ei,color:H,backgroundColor:H,outlineColor:H,fill:H,stroke:H,borderColor:H,borderTopColor:H,borderRightColor:H,borderBottomColor:H,borderLeftColor:H,filter:ee,WebkitFilter:ee},getDefaultValueType=e=>er[e];function animatable_none_getAnimatableNone(e,t){let i=getDefaultValueType(e);return i!==ee&&(i=Z),i.getAnimatableNone?i.getAnimatableNone(t):void 0}
5let en=new Set(["auto","none","0"]);let DOMKeyframesResolver=class DOMKeyframesResolver extends KeyframeResolver{constructor(e,t,i,n,s){super(e,t,i,n,s,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:i}=this;if(!t||!t.current)return;super.readKeyframes();for(let i=0;i<e.length;i++){let n=e[i];if("string"==typeof n&&isCSSVariableToken(n=n.trim())){let s=function getVariableValue(e,t,i=1){invariant(i<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[n,s]=function(e){let t=P.exec(e);if(!t)return[,];let[,i,n,s]=t;return[`--${i??n}`,s]}(e);if(!n)return;let o=window.getComputedStyle(t).getPropertyValue(n);if(o){let e=o.trim();return isNumericalString(e)?parseFloat(e):e}return isCSSVariableToken(s)?getVariableValue(s,t,i+1):s}(n,t.current);void 0!==s&&(e[i]=s),i===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!m.has(i)||2!==e.length)return;let[n,s]=e,o=findDimensionValueType(n),a=findDimensionValueType(s);if(o!==a){if(isNumOrPxType(o)&&isNumOrPxType(a))for(let t=0;t<e.length;t++){let i=e[t];"string"==typeof i&&(e[t]=parseFloat(i))}else M[i]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,i=[];for(let t=0;t<e.length;t++){var n;(null===e[t]||("number"==typeof(n=e[t])?0===n:null===n||"none"===n||"0"===n||isZeroValueString(n)))&&i.push(t)}i.length&&function(e,t,i){let n,s=0;for(;s<e.length&&!n;){let t=e[s];"string"==typeof t&&!en.has(t)&&analyseComplexValue(t).values.length&&(n=e[s]),s++}if(n&&i)for(let s of t)e[s]=animatable_none_getAnimatableNone(i,n)}(e,i,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:i}=this;if(!e||!e.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=M[i](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let n=t[t.length-1];void 0!==n&&e.getValue(i,n).jump(n,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:i}=this;if(!e||!e.current)return;let n=e.getValue(t);n&&n.jump(this.measuredOrigin,!1);let s=i.length-1,o=i[s];i[s]=M[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
5h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}};let isMotionValue=e=>!!(e&&e.getVelocity);function clearTime(){n=void 0}let es={now:()=>(void 0===n&&es.set(B.isProcessing||E.useManualTiming?B.timestamp:performance.now()),n),set:e=>{n=e,queueMicrotask(clearTime)}};function addUniqueItem(e,t){-1===e.indexOf(t)&&e.push(t)}function removeItem(e,t){let i=e.indexOf(t);i>-1&&e.splice(i,1)}let SubscriptionManager=class SubscriptionManager{constructor(){this.subscriptions=[]}add(e){return addUniqueItem(this.subscriptions,e),()=>removeItem(this.subscriptions,e)}notify(e,t,i){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](e,t,i);else for(let s=0;s<n;s++){let n=this.subscriptions[s];n&&n(e,t,i)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};let isFloat=e=>!isNaN(parseFloat(e)),eo={current:void 0};let MotionValue=class MotionValue{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=es.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=es.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=isFloat(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new SubscriptionManager);let i=this.events[e].add(t);return"change"===e?()=>{i(),R.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,i){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return eo.current&&eo.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=es.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?e*(1e3/i):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function motionValue(e,t){return new MotionValue(e,t)}let ea=[...S,H,Z],findValueType=e=>ea.find(testValueType(e)),{schedule:el,cancel:eu}=createRenderBatcher(queueMicrotask,!1),ec={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"]},eh={};for(let e in ec)eh[e]={isEnabled:t=>ec[e].some(e=>!!t[e])};let createAxisDelta=()=>({translate:0,scale:1,origin:0,originPoint:0}),createDelta=()=>({x:createAxisDelta(),y:createAxisDelta()}),createAxis=()=>({min:0,max:0}),createBox=()=>({x:createAxis(),y:createAxis()}),ed="undefined"!=typeof window,ep={current:null},em={current:!1},ef=new WeakMap;function isAnimationControls(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function isVariantLabel(e){return"string"==typeof e||Array.isArray(e)}let eg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ey=["initial",...eg];function isControllingVariants(e){return isAnimationControls(e.animate)||ey.some(t=>isVariantLabel(e[t]))}function isVariantNode(e){return!!(isControllingVariants(e)||e.variants)}function getValueState(e){let t=[{},{}];
5return e?.values.forEach((e,i)=>{t[0][i]=e.get(),t[1][i]=e.getVelocity()}),t}function resolveVariantFromProps(e,t,i,n){if("function"==typeof t){let[s,o]=getValueState(n);t=t(void 0!==i?i:e.custom,s,o)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[s,o]=getValueState(n);t=t(void 0!==i?i:e.custom,s,o)}return t}let ev=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let VisualElement=class VisualElement{scrapeMotionValuesFromProps(e,t,i){return{}}constructor({parent:e,props:t,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=KeyframeResolver,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=es.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,R.render(this.render,!1,!0))};let{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=t,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=isControllingVariants(t),this.isVariantNode=isVariantNode(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:c,...h}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in h){let t=h[e];void 0!==l[e]&&isMotionValue(t)&&t.set(l[e])}}mount(e){this.current=e,ef.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),em.current||function(){if(em.current=!0,ed){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),setReducedMotionPreferences=()=>ep.current=e.matches;e.addEventListener("change",setReducedMotionPreferences),setReducedMotionPreferences()}else ep.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||ep.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),L(this.notifyUpdate),L(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let i;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=l.has(e);n&&this.onBindTransform&&this.onBindTransform();let s=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&R.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{s(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in eh){let t=eh[e];if(!t)continue;let{isEnabled:i,Feature:n}=t;if(!this.features[e]&&n&&i(this.props)&&(this.features[e]=new n(this)),this.features[e]){let t=this.features[e];
5t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):createBox()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<ev.length;t++){let i=ev[t];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n="on"+i,s=e[n];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=function(e,t,i){for(let n in t){let s=t[n],o=i[n];if(isMotionValue(s))e.addValue(n,s);else if(isMotionValue(o))e.addValue(n,motionValue(s,{owner:e}));else if(o!==s){if(e.hasValue(n)){let t=e.getValue(n);!0===t.liveStyle?t.jump(s):t.hasAnimated||t.set(s)}else{let t=e.getStaticValue(n);e.addValue(n,motionValue(void 0!==t?t:s,{owner:e}))}}}for(let n in i)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let i=this.values.get(e);t!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return void 0===i&&void 0!==t&&(i=motionValue(null===t?void 0:t,{owner:this}),this.addValue(e,i)),i}readValue(e,t){let i=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=i&&("string"==typeof i&&(isNumericalString(i)||isZeroValueString(i))?i=parseFloat(i):!findValueType(i)&&Z.test(t)&&(i=animatable_none_getAnimatableNone(e,t)),this.setBaseTarget(e,isMotionValue(i)?i.get():i)),isMotionValue(i)?i.get():i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t;let{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=resolveVariantFromProps(this.props,i,this.presenceContext?.custom);n&&(t=n[e])}if(i&&void 0!==t)return t;let n=this.getBaseTargetFromProps(this.props,e);return void 0===n||isMotionValue(n)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:n}on(e,t){return this.events[e]||(this.events[e]=new SubscriptionManager),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){el.render(this.render)}};let DOMVisualElement=class DOMVisualElement extends VisualElement{constructor(){super(...arguments),this.KeyframeResolver=DOMKeyframesResolver}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:i}){delete t[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;isMotionValue(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}};let getValueAsType=(e,t)=>t&&"number"==typeof e?t.transform(e):e,eb={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ex=a.length;function buildHTMLStyles(e,t,i){let{style:n,vars:s,transformOrigin:o}=e,u=!1,c=!1;for(let e in t){let i=t[e];if(l.has(e)){u=!0;continue}if(h(e)){s[e]=i;continue}{let t=getValueAsType(i,ei[e]);e.startsWith("origin")?(c=!0,o[e]=t):n[e]=t}}if(!t.transform&&(u||i?n.transform=function(e,t,i){let n="",s=!0;for(let o=0;o<ex;o++){let l=a[o],u=e[l];if(void 0===u)continue;let c=!0;if(!(c="number"==typeof u?u===(l.startsWith("scale")?1:0):0===parseFloat(u))||i){let e=getValueAsType(u,ei[l]);if(!c){s=!1;let t=eb[l]||l;n+=`${t}(${e}) `}i&&(t[l]=e)}}return n=n.trim(),i?n=i(t,s?"":n):s&&(n="none"),n}(t,e.transform,i):n.transform&&(n.transform="none")),c){let{originX:e="50%",originY:t="50%",originZ:i=0}=o;n.transformOrigin=`${e} ${t} ${i}`}}function renderHTML(e,{style:t,vars:i},n,s){let o;let a=e.style;for(o in t)a[o]=t[o];for(o in s?.applyProjectionStyles(a,n),i)a.setProperty(o,i[o])}let eT={};function isForcedMotionValue(e,{layout:t,layoutId:i}){return l.has(e)||e.startsWith("origin")||(t||void 0!==i)&&(!!eT[e]||"opacity"===e)}function scrapeMotionValuesFromProps(e,t,i){let{style:n}=e,s={};for(let o in n)(isMotionValue(n[o])||t.style&&isMotionValue(t.style[o])||isForcedMotionValue(o,e)||i?.getValue(o)?.liveStyle!==void 0)&&(s[o]=n[o]);return s}let HTMLVisualElement=class HTMLVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="html",this.renderInstance=renderHTML}readValueFromInstance(e,t){if(l.has(t))return this.projection?.isProjecting?defaultTransformValue(t):readTransformValue(e,t);{let i=window.getComputedStyle(e),n=(h(t)?i.getPropertyValue(t):i[t])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return measureViewportBox(e,t)}build(e,t,i){buildHTMLStyles(e,t,i.transformTemplate)}scrapeMotionValuesFromProps(e,t,i){return scrapeMotionValuesFromProps(e,t,i)}};let camelToDash=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),eA={offset:"stroke-dashoffset",array:"stroke-dasharray"},ew={offset:"strokeDashoffset",array:"strokeDasharray"};function buildSVGAttrs(e,{attrX:t,attrY:i,attrScale:n,pathLength:s,pathSpacing:o=1,pathOffset:a=0,...l},u,c,h){if(buildHTMLStyles(e,l,c),u){e.style.viewBox&&(e.attrs.viewB
5ox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:p}=e;d.transform&&(p.transform=d.transform,delete d.transform),(p.transform||d.transformOrigin)&&(p.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),p.transform&&(p.transformBox=h?.transformBox??"fill-box",delete d.transformBox),void 0!==t&&(d.x=t),void 0!==i&&(d.y=i),void 0!==n&&(d.scale=n),void 0!==s&&function(e,t,i=1,n=0,s=!0){e.pathLength=1;let o=s?eA:ew;e[o.offset]=x.transform(-n);let a=x.transform(t),l=x.transform(i);e[o.array]=`${a} ${l}`}(d,s,o,a,!1)}let eS=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"]),isSVGTag=e=>"string"==typeof e&&"svg"===e.toLowerCase();function scrape_motion_values_scrapeMotionValuesFromProps(e,t,i){let n=scrapeMotionValuesFromProps(e,t,i);for(let i in e)if(isMotionValue(e[i])||isMotionValue(t[i])){let t=-1!==a.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;n[t]=e[i]}return n}let SVGVisualElement=class SVGVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=createBox}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(l.has(t)){let e=getDefaultValueType(t);return e&&e.default||0}return t=eS.has(t)?t:camelToDash(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,i){return scrape_motion_values_scrapeMotionValuesFromProps(e,t,i)}build(e,t,i){buildSVGAttrs(e,t,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,t,i,n){!function(e,t,i,n){for(let i in renderHTML(e,t,void 0,n),t.attrs)e.setAttribute(eS.has(i)?i:camelToDash(i),t.attrs[i])}(e,t,0,n)}mount(e){this.isSVGTag=isSVGTag(e.tagName),super.mount(e)}};let eP=["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 isSVGComponent(e){if("string"!=typeof e||e.includes("-"));else if(eP.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var eV=i(5893);let eC=(0,o.createContext)({}),eM=(0,o.createContext)({strict:!1}),eE=(0,o.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),eD=(0,o.createContext)({});function variantLabelsAsDependency(e){return Array.isArray(e)?e.join(" "):e}let createHtmlRenderState=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function copyRawValuesOnly(e,t,i){for(let n in t)isMotionValue(t[n])||isForcedMotionValue(n,i)||(e[n]=t[n])}function useHTMLProps(e,t){let i={},n=function(e,t){let i=e.style||{},n={};return copyRawValuesOnly(n,i,e),Object.assign(n,function({transformTemplate:e},t){return(0,o.useMemo)(()=>{let i=createHtmlRenderState();return buildHTMLStyles(i,t,e),Object.assign({},i.vars,i.style)},[t])}(e,t)),n}(e,t);return e.drag&&!1!==e.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=n,i}let createSvgRenderState=()=>({...createHtmlRenderState(),attrs:{}});function useSVGProps(e,t,i,n){let s=(0,o.useMemo)(()=>{let i=createSvgRenderState();return buildSVGAttrs(i,t,isSVGTag(n),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){let t={};copyRawValuesOnly(t,e.style,e),s.style={...t,...s.style}}return s}let ek=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function isValidMotionProp(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ek.has(e)}let shouldForward=e=>!isValidMotionProp(e);try{s=require("@emotion/is-prop-valid").default,"function"==typeof s&&(shouldForward=e=>e.startsWith("on")?!isValidMotionProp(e):s(e))}catch{}let eR=(0,o.createContext)(null);function resolveMotionValue(e){return isMotionValue(e)?e.get():e}let makeUseVisualState=e=>(t,i)=>{let n=(0,o.useContext)(eD),s=(0,o.useContext)(eR),make=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},i,n,s){let o={latestValues:function(e,t,i,n){let s={},o=n(e,{});for(let e in o)s[e]=resolveMotionValue(o[e]);let{initial:a,animate:l}=e,u=isControllingVariants(e),c=isVariantNode(e);t&&c&&!u&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===l&&(l=t.animate));let h=!!i&&!1===i.initial;h=h||!1===a;let d=h?l:a;if(d&&"boolean"!=typeof d&&!isAnimationControls(d)){let t=Array.isArray(d)?d:[d];for(let i=0;i<t.length;i++){let n=resolveVariantFromProps(e,t[i]);if(n){let{transitionEnd:e,transition:t,...i}=n;for(let e in i){let t=i[e];if(Array.isArray(t)){let e=h?t.length-1:0;t=t[e]}null!==t&&(s[e]=t)}for(let t in e)s[t]=e[t]}}}return s}(i,n,s,e),renderState:t()};return o}
5)(e,t,n,s);return i?make():function(e){let t=(0,o.useRef)(null);return null===t.current&&(t.current=e()),t.current}(make)},eL=makeUseVisualState({scrapeMotionValuesFromProps:scrapeMotionValuesFromProps,createRenderState:createHtmlRenderState}),eB=makeUseVisualState({scrapeMotionValuesFromProps:scrape_motion_values_scrapeMotionValuesFromProps,createRenderState:createSvgRenderState}),ej=Symbol.for("motionComponentSymbol");function isRefObject(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let eI="data-"+camelToDash("framerAppearId"),eO=(0,o.createContext)({}),eN=ed?o.useLayoutEffect:o.useEffect;function createMotionComponent(e,{forwardMotionProps:t=!1}={},i,n){i&&function(e){for(let t in e)eh[t]={...eh[t],...e[t]}}(i);let s=isSVGComponent(e)?eB:eL;function MotionDOMComponent(i,a){var l;let u;let c={...(0,o.useContext)(eE),...i,layoutId:function({layoutId:e}){let t=(0,o.useContext)(eC).id;return t&&void 0!==e?t+"-"+e:e}(i)},{isStatic:h}=c,d=function(e){let{initial:t,animate:i}=function(e,t){if(isControllingVariants(e)){let{initial:t,animate:i}=e;return{initial:!1===t||isVariantLabel(t)?t:void 0,animate:isVariantLabel(i)?i:void 0}}return!1!==e.inherit?t:{}}(e,(0,o.useContext)(eD));return(0,o.useMemo)(()=>({initial:t,animate:i}),[variantLabelsAsDependency(t),variantLabelsAsDependency(i)])}(i),p=s(i,h);if(!h&&ed){(0,o.useContext)(eM).strict;let t=function(e){let{drag:t,layout:i}=eh;if(!t&&!i)return{};let n={...t,...i};return{MeasureLayout:t?.isEnabled(e)||i?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(c);u=t.MeasureLayout,d.visualElement=function(e,t,i,n,s){let{visualElement:a}=(0,o.useContext)(eD),l=(0,o.useContext)(eM),u=(0,o.useContext)(eR),c=(0,o.useContext)(eE).reducedMotion,h=(0,o.useRef)(null);n=n||l.renderer,!h.current&&n&&(h.current=n(e,{visualState:t,parent:a,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:c}));let d=h.current,p=(0,o.useContext)(eO);d&&!d.projection&&s&&("html"===d.type||"svg"===d.type)&&function(e,t,i,n){let{layoutId:s,layout:o,drag:a,dragConstraints:l,layoutScroll:u,layoutRoot:c,layoutCrossfade:h}=t;e.projection=new i(e.latestValues,t["data-framer-portal-id"]?void 0:function getClosestProjectingNode(e){if(e)return!1!==e.options.allowProjection?e.projection:getClosestProjectingNode(e.parent)}(e.parent)),e.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:!!a||l&&isRefObject(l),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:u,layoutRoot:c})}(h.current,i,s,p);let m=(0,o.useRef)(!1);(0,o.useInsertionEffect)(()=>{d&&m.current&&d.update(i,u)});let f=i[eI],g=(0,o.useRef)(!!f&&!window.MotionHandoffIsComplete?.(f)&&window.MotionHasOptimisedAnimation?.(f));return eN(()=>{d&&(m.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),g.current&&d.animationState&&d.animationState.animateChanges())}),(0,o.useEffect)(()=>{d&&(!g.current&&d.animationState&&d.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(f)}),g.current=!1),d.enteringChildren=void 0)}),d}(e,p,c,n,t.ProjectionNode)}return(0,eV.jsxs)(eD.Provider,{value:d,children:[u&&d.visualElement?(0,eV.jsx)(u,{visualElement:d.visualElement,...c}):null,function(e,t,i,{latestValues:n},s,a=!1){let l=isSVGComponent(e)?useSVGProps:useHTMLProps,u=l(t,n,s,e),c=function(e,t,i){let n={};for(let s in e)("values"!==s||"object"!=typeof e.values)&&(shouldForward(s)||!0===i&&isValidMotionProp(s)||!t&&!isValidMotionProp(s)||e.draggable&&s.startsWith("onDrag"))&&(n[s]=e[s]);return n}(t,"string"==typeof e,a),h=e!==o.Fragment?{...c,...u,ref:i}:{},{children:d}=t,p=(0,o.useMemo)(()=>isMotionValue(d)?d.get():d,[d]);return(0,o.createElement)(e,{...h,children:p})}(e,i,(l=d.visualElement,(0,o.useCallback)(e=>{e&&p.onMount&&p.onMount(e),l&&(e?l.mount(e):l.unmount()),a&&("function"==typeof a?a(e):isRefObject(a)&&(a.current=e))},[l])),p,h,t)]})}MotionDOMComponent.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let a=(0,o.forwardRef)(MotionDOMComponent);return a[ej]=e,a}function resolveVariant(e,t,i){let n=e.getProps();return resolveVariantFromProps(n,t,void 0!==i?i:n.custom,e)}function getValueTransition(e,t){return e?.[t]??e?.default??e}let isKeyframesTarget=e=>Array.isArray(e);function addValueToWillChange(e,t){let i=e.getValue("willChange");if(isMotionValue(i)&&i.add)return i.add(t);if(!i&&E.WillChange){let i=new E.WillChange("auto");
5e.addValue("willChange",i),i.add(t)}}function makeAnimationInstant(e){e.duration=0,e.type}let combineFunctions=(e,t)=>i=>t(e(i)),pipe=(...e)=>e.reduce(combineFunctions),time_conversion_secondsToMilliseconds=e=>1e3*e,millisecondsToSeconds=e=>e/1e3,eF={layout:0,mainThread:0,waapi:0};function hueToRgb(e,t,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?e+(t-e)*6*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function mixImmediate(e,t){return i=>i>0?t:e}let mixLinearColor=(e,t,i)=>{let n=e*e,s=i*(t*t-n)+n;return s<0?0:Math.sqrt(s)},e_=[G,W,$],getColorType=e=>e_.find(t=>t.test(e));function asRGBA(e){let t=getColorType(e);if(warning(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let i=t.parse(e);return t===$&&(i=function({hue:e,saturation:t,lightness:i,alpha:n}){e/=360,i/=100;let s=0,o=0,a=0;if(t/=100){let n=i<.5?i*(1+t):i+t-i*t,l=2*i-n;s=hueToRgb(l,n,e+1/3),o=hueToRgb(l,n,e),a=hueToRgb(l,n,e-1/3)}else s=o=a=i;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*a),alpha:n}}(i)),i}let mixColor=(e,t)=>{let i=asRGBA(e),n=asRGBA(t);if(!i||!n)return mixImmediate(e,t);let s={...i};return e=>(s.red=mixLinearColor(i.red,n.red,e),s.green=mixLinearColor(i.green,n.green,e),s.blue=mixLinearColor(i.blue,n.blue,e),s.alpha=mixNumber(i.alpha,n.alpha,e),W.transform(s))},ez=new Set(["none","hidden"]);function complex_mixNumber(e,t){return i=>mixNumber(e,t,i)}function getMixer(e){return"number"==typeof e?complex_mixNumber:"string"==typeof e?isCSSVariableToken(e)?mixImmediate:H.test(e)?mixColor:mixComplex:Array.isArray(e)?mixArray:"object"==typeof e?H.test(e)?mixColor:mixObject:mixImmediate}function mixArray(e,t){let i=[...e],n=i.length,s=e.map((e,i)=>getMixer(e)(e,t[i]));return e=>{for(let t=0;t<n;t++)i[t]=s[t](e);return i}}function mixObject(e,t){let i={...e,...t},n={};for(let s in i)void 0!==e[s]&&void 0!==t[s]&&(n[s]=getMixer(e[s])(e[s],t[s]));return e=>{for(let t in n)i[t]=n[t](e);return i}}let mixComplex=(e,t)=>{let i=Z.createTransformer(t),n=analyseComplexValue(e),s=analyseComplexValue(t),o=n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length;return o?ez.has(e)&&!s.values.length||ez.has(t)&&!n.values.length?ez.has(e)?i=>i<=0?e:t:i=>i>=1?t:e:pipe(mixArray(function(e,t){let i=[],n={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){let o=t.types[s],a=e.indexes[o][n[o]],l=e.values[a]??0;i[s]=l,n[o]++}return i}(n,s),s.values),i):(warning(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),mixImmediate(e,t))};function mix(e,t,i){if("number"==typeof e&&"number"==typeof t&&"number"==typeof i)return mixNumber(e,t,i);let n=getMixer(e);return n(e,t)}let frameloopDriver=e=>{let passTimestamp=({timestamp:t})=>e(t);return{start:(e=!0)=>R.update(passTimestamp,e),stop:()=>L(passTimestamp),now:()=>B.isProcessing?B.timestamp:es.now()}},generateLinearEasing=(e,t,i=10)=>{let n="",s=Math.max(Math.round(t/i),2);for(let t=0;t<s;t++)n+=Math.round(1e4*e(t/(s-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`};function calcGeneratorDuration(e){let t=0,i=e.next(t);for(;!i.done&&t<2e4;)t+=50,i=e.next(t);return t>=2e4?1/0:t}function calcGeneratorVelocity(e,t,i){var n,s;let o=Math.max(t-5,0);return n=i-e(o),(s=t-o)?n*(1e3/s):0}let eU={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function calcAngularFreq(e,t){return e*Math.sqrt(1-t*t)}let eW=["duration","bounce"],eG=["stiffness","damping","mass"];function isSpringType(e,t){return t.some(t=>void 0!==e[t])}function spring(e=eU.visualDuration,t=eU.bounce){let i;let n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:s,restDelta:o}=n,a=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],u={done:!1,value:a},{stiffness:c,damping:h,mass:d,duration:p,velocity:m,isResolvedFromDuration:f}=function(e){let t={velocity:eU.velocity,stiffness:eU.stiffness,damping:eU.damping,mass:eU.mass,isResolvedFromDuration:!1,...e};if(!isSpringType(e,eG)&&isSpringType(e,eW)){if(e.visualDuration){let i=e.visualDuration,n=2*Math.PI/(1.2*i),s=n*n,o=2*clamp(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:eU.mass,stiffness:s,damping:o}}else{let i=function({duration:e=eU.duration,bounce:t=eU.bounce,velocity:i=eU.velocity,mass:n=eU.mass}){let s,o;warning(e<=time_conversion_secondsToMilliseconds(eU.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=clamp(eU.minDamping,eU.maxDamping,a),e=clamp(eU.minDuration,eU.maxDuration,millisecondsToSeconds(e)),a<1?(s=t=>{let n=t*a,s=n*e,o=calcAngularFreq(t,a);return .001-(n-i)/o*Math.exp(-s)},o=t=>{let n=t*a,o=n*e,l=Math.pow(a,2)*Math.pow(t,2)*e,u=calcAngularFreq(Math.pow(t,2),a),c=-s(t)+.001>0?-1:1;return c*((o*i+i-l)*Math.exp(-o))/u}):(s=t=>{let n=Math.exp(-t*e),s=(t-i)*e+1;return -.001+n*s},o=t=>{let n=Math.exp(-t*e),s=(i-t)*(e*e);return n*s});let l=5/e,u=function(e,t,i){let n=i;for(let i=1;i<12;i++)n-=e(n)/t(n);return n}(s,o,l);if(e=time_conversion_secondsToMilliseconds(e),isNaN(u))return{stiffness:eU.stiffness,damping:eU.damping,duration:e};{let t=Math.pow(u,2)*n;
5return{stiffness:t,damping:2*a*Math.sqrt(n*t),duration:e}}}(e);(t={...t,...i,mass:eU.mass}).isResolvedFromDuration=!0}}return t}({...n,velocity:-millisecondsToSeconds(n.velocity||0)}),g=m||0,y=h/(2*Math.sqrt(c*d)),v=l-a,b=millisecondsToSeconds(Math.sqrt(c/d)),x=5>Math.abs(v);if(s||(s=x?eU.restSpeed.granular:eU.restSpeed.default),o||(o=x?eU.restDelta.granular:eU.restDelta.default),y<1){let e=calcAngularFreq(b,y);i=t=>{let i=Math.exp(-y*b*t);return l-i*((g+y*b*v)/e*Math.sin(e*t)+v*Math.cos(e*t))}}else if(1===y)i=e=>l-Math.exp(-b*e)*(v+(g+b*v)*e);else{let e=b*Math.sqrt(y*y-1);i=t=>{let i=Math.exp(-y*b*t),n=Math.min(e*t,300);return l-i*((g+y*b*v)*Math.sinh(n)+e*v*Math.cosh(n))/e}}let T={calculatedDuration:f&&p||null,next:e=>{let t=i(e);if(f)u.done=e>=p;else{let n=0===e?g:0;y<1&&(n=0===e?time_conversion_secondsToMilliseconds(g):calcGeneratorVelocity(i,e,t));let a=Math.abs(n)<=s,c=Math.abs(l-t)<=o;u.done=a&&c}return u.value=u.done?l:t,u},toString:()=>{let e=Math.min(calcGeneratorDuration(T),2e4),t=generateLinearEasing(t=>T.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return T}function inertia({keyframes:e,velocity:t=0,power:i=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:a,min:l,max:u,restDelta:c=.5,restSpeed:h}){let d,p;let m=e[0],f={done:!1,value:m},isOutOfBounds=e=>void 0!==l&&e<l||void 0!==u&&e>u,nearestBoundary=e=>void 0===l?u:void 0===u?l:Math.abs(l-e)<Math.abs(u-e)?l:u,g=i*t,y=m+g,v=void 0===a?y:a(y);v!==y&&(g=v-m);let calcDelta=e=>-g*Math.exp(-e/n),calcLatest=e=>v+calcDelta(e),applyFriction=e=>{let t=calcDelta(e),i=calcLatest(e);f.done=Math.abs(t)<=c,f.value=f.done?v:i},checkCatchBoundary=e=>{isOutOfBounds(f.value)&&(d=e,p=spring({keyframes:[f.value,nearestBoundary(f.value)],velocity:calcGeneratorVelocity(calcLatest,e,f.value),damping:s,stiffness:o,restDelta:c,restSpeed:h}))};return checkCatchBoundary(0),{calculatedDuration:null,next:e=>{let t=!1;return(p||void 0!==d||(t=!0,applyFriction(e),checkCatchBoundary(e)),void 0!==d&&e>=d)?p.next(e-d):(t||applyFriction(e),f)}}}spring.applyToOptions=e=>{let t=function(e,t=100,i){let n=i({...e,keyframes:[0,t]}),s=Math.min(calcGeneratorDuration(n),2e4);return{type:"keyframes",ease:e=>n.next(s*e).value/t,duration:millisecondsToSeconds(s)}}(e,100,spring);return e.ease=t.ease,e.duration=time_conversion_secondsToMilliseconds(t.duration),e.type="keyframes",e};let calcBezier=(e,t,i)=>(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e;function cubicBezier(e,t,i,n){if(e===t&&i===n)return noop;let getTForX=t=>(function(e,t,i,n,s){let o,a;let l=0;do(o=calcBezier(a=t+(i-t)/2,n,s)-e)>0?i=a:t=a;while(Math.abs(o)>1e-7&&++l<12);return a})(t,0,1,e,i);return e=>0===e||1===e?e:calcBezier(getTForX(e),t,n)}let e$=cubicBezier(.42,0,1,1),eH=cubicBezier(0,0,.58,1),eK=cubicBezier(.42,0,.58,1),isEasingArray=e=>Array.isArray(e)&&"number"!=typeof e[0],mirrorEasing=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,reverseEasing=e=>t=>1-e(1-t),eq=cubicBezier(.33,1.53,.69,.99),eY=reverseEasing(eq),eX=mirrorEasing(eY),anticipate=e=>(e*=2)<1?.5*eY(e):.5*(2-Math.pow(2,-10*(e-1))),circIn=e=>1-Math.sin(Math.acos(e)),eZ=reverseEasing(circIn),eJ=mirrorEasing(circIn),isBezierDefinition=e=>Array.isArray(e)&&"number"==typeof e[0],eQ={linear:noop,easeIn:e$,easeInOut:eK,easeOut:eH,circIn:circIn,circInOut:eJ,circOut:eZ,backIn:eY,backInOut:eX,backOut:eq,anticipate:anticipate},isValidEasing=e=>"string"==typeof e,easingDefinitionToFunction=e=>{if(isBezierDefinition(e)){invariant(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,i,n,s]=e;return cubicBezier(t,i,n,s)}return isValidEasing(e)?(invariant(void 0!==eQ[e],`Invalid easing type '${e}'`,"invalid-easing-type"),eQ[e]):e},progress=(e,t,i)=>{let n=t-e;return 0===n?1:(i-e)/n};function keyframes({duration:e=300,keyframes:t,times:i,ease:n="easeInOut"}){let s=isEasingArray(n)?n.map(easingDefinitionToFunction):easingDefinitionToFunction(n),o={done:!1,value:t[0]},a=(i&&i.length===t.length?i:function(e){let t=[0];return function(e,t){let i=e[e.length-1];for(let n=1;n<=t;n++){let s=progress(0,t,n);e.push(mixNumber(i,1,s))}}(t,e.length-1),t}(t)).map(t=>t*e),l=function(e,t,{clamp:i=!0,ease:n,mixer:s}={}){let o=e.length;if(invariant(o===t.length,"Both input and output ranges must be the same length","range-length"),1===o)return()=>t[0];if(2===o&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let l=function(e,t,i){let n=[],s=i||E.mix||mix,o=e.length-1;for(let i=0;i<o;i++){let o=s(e[i],e[i+1]);if(t){let e=Array.isArray(t)?t[i]||noop:t;o=pipe(e,o)}n.push(o)}return n}(t,n,s),u=l.length,interpolator=i=>{if(a&&i<e[0])return t[0];let n=0;if(u>1)for(;n<e.length-2&&!(i<e[n+1]);n++);let s=progress(e[n],e[n+1],i);return l[n](s)};return i?t=>interpolator(clamp(e[0],e[o-1],t)):interpolator}(a,t,{ease:Array.isArray(s)?s:t.map(()=>s||eK).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=l(t),o.done=t>=e,o)}}let isNotNull=e=>null!==e;function getFinalKeyframe(e,{repeat:t,repeatType:i="loop"},n,s=1){let o=e.filter(isNotNull),a=s<0||t&&"loop"!==i&&t%2==1?0:o.length-1;return a&&void 0!==n?n:o[a]}let e0={decay:inertia,inertia:inertia,tween:keyframes,keyframes:keyframes,spring:spring};function replaceTransitionType(e){"string"==typeof e.type&&(e.type=e0[e.type])}let WithPromise=class WithPromise{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}};let percentToProgress=e=>e/100;let JSAnimation=class JSAnimation extends WithPromise{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==es.now()&&this.tick(es.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},eF.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;replaceTransitionType(e);let{type:t=keyframes,repeat:i=0,repeatDelay:n=0,repeatType:s,velocity:o=0}=e,{keyframes:a}=e,l=t||keyframes;l!==keyframes&&"number"!=typeof a[0]&&(this.mixKeyframes=pipe(percentToProgress,mix(a[0],a[1])),a=[0,100]);let u=l({...e,keyframes:a});"mirror"===s&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-o})),null===u.calculatedDuration&&(u.calculatedDuration=calcGeneratorDuration(u));let{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=u}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let{generator:i,totalDuration:n,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(null===this.startTime)return i.next(0);let{delay:u=0,keyframes:c,repeat:h,repeatType:d,repeatDelay:p,type:m,onUpdate:f,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-n/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?y<0:y>n;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let b=this.currentTime,x=i;if(h){let e=Math.min(this.currentTime,n)/a,t=Math.floor(e),i=e%1;!i&&e>=1&&(i=1),1===i&&t--,t=Math.min(t,h+1);let s=!!(t%2);s&&("reverse"===d?(i=1-i,p&&(i-=p/a)):"mirror"===d&&(x=o)),b=clamp(0,1,i)*a}let T=v?{done:!1,value:c[0]}:x.next(b);s&&(T.value=s(T.value));let{done:A}=T;v||null===l||(A=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let w=null===this.holdTime&&("finished"===this.state||"running"===this.state&&A);return w&&m!==inertia&&(T.value=getFinalKeyframe(c,this.options,g,this.speed)),f&&f(T.value),w&&this.finish(),T}
5then(e,t){return this.finished.then(e,t)}get duration(){return millisecondsToSeconds(this.calculatedDuration)}get time(){return millisecondsToSeconds(this.currentTime)}set time(e){e=time_conversion_secondsToMilliseconds(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(es.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=millisecondsToSeconds(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=frameloopDriver,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=t??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(es.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,eF.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}};let isCSSVar=e=>e.startsWith("--");function memo(e){let t;return()=>(void 0===t&&(t=e()),t)}let e1=memo(()=>void 0!==window.ScrollTimeline),e2={},e3=function(e,t){let i=memo(e);return()=>e2[t]??i()}(()=>{try{document.createElement("div").animate({opacity:0}
5,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),cubicBezierAsString=([e,t,i,n])=>`cubic-bezier(${e}, ${t}, ${i}, ${n})`,e5={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cubicBezierAsString([0,.65,.55,1]),circOut:cubicBezierAsString([.55,0,1,.45]),backIn:cubicBezierAsString([.31,.01,.66,-.59]),backOut:cubicBezierAsString([.33,1.53,.69,.99])};function isGenerator(e){return"function"==typeof e&&"applyToOptions"in e}let NativeAnimation=class NativeAnimation extends WithPromise{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;let{element:t,name:i,keyframes:n,pseudoElement:s,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=!!s,this.allowFlatten=o,this.options=e,invariant("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let u=function({type:e,...t}){return isGenerator(e)&&e3()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,i,{delay:n=0,duration:s=300,repeat:o=0,repeatType:a="loop",ease:l="easeOut",times:u}={},c){let h={[t]:i};u&&(h.offset=u);let d=function mapEasingToNativeEasing(e,t){if(e)return"function"==typeof e?e3()?generateLinearEasing(e,t):"ease-out":isBez
5ierDefinition(e)?cubicBezierAsString(e):Array.isArray(e)?e.map(e=>mapEasingToNativeEasing(e,t)||e5.easeOut):e5[e]}(l,s);Array.isArray(d)&&(h.easing=d),k.value&&eF.waapi++;let p={delay:n,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"};c&&(p.pseudoElement=c);let m=e.animate(h,p);return k.value&&m.finished.finally(()=>{eF.waapi--}),m}(t,i,n,u,s),!1===u.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let e=getFinalKeyframe(n,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(e):isCSSVar(i)?t.style.setProperty(i,e):t.style[i]=e,this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return millisecondsToSeconds(Number(e))}get time(){return millisecondsToSeconds(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=time_conversion_secondsToMilliseconds(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&e1())?(this.animation.timeline=e,noop):t(this)}};let e9={anticipate:anticipate,backInOut:eX,circInOut:eJ};let NativeAnimationExtended=class NativeAnimationExtended extends NativeAnimation{constructor(e){"string"==typeof e.ease&&e.ease in e9&&(e.ease=e9[e.ease]),replaceTransitionType(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:i,onComplete:n,element:s,...o}=this.options;if(!t)return;if(void 0!==e){t.set(e);return}let a=new JSAnimation({...o,autoplay:!1}),l=time_conversion_secondsToMilliseconds(this.finishedTime??this.time);t.setWithVelocity(a.sample(l-10).value,a.sample(l).value,10),a.stop()}};let isAnimatable=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(Z.test(e)||"0"===e)&&!e.startsWith("url(")),e4=new Set(["opacity","clipPath","filter","transform"]),e6=memo(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));let AsyncMotionValueAnimation=class AsyncMotionValueAnimation extends WithPromise{constructor({autoplay:e=!0,delay:t=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:o="loop",keyframes:a,name:l,motionValue:u,element:c,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=es.now();let d={autoplay:e,delay:t,type:i,repeat:n,repeatDelay:s,repeatType:o,name:l,motionValue:u,element:c,...h},p=c?.KeyframeResolver||KeyframeResolver;this.keyframeResolver=new p(a,(e,t,i)=>this.onKeyframesResolved(e,t,d,!i),l,u,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,i,n){this.keyframeResolver=void 0;let{name:s,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:c}=i;this.resolvedAt=es.now(),!function(e,t,i,n){let s=e[0];if(null===s)return!1;if("display"===t||"visibility"===t)return!0;let o=e[e.length-1],a=isAnimatable(s,t),l=isAnimatable(o,t);return warning(a===l,`You are trying to animate ${t} from "${s}" to "${o}". "${a?o:s}" is not an animatable value.`,"value-not-animatable"),!!a&&!!l&&(function(e){let t=e[0];if(1===e.length)return!0;for(let i=0;i<e.length;i++)if(e[i]!==t)return!0}(e)||("spring"===i||isGenerator(i))&&n)}(e,s,o,a)&&((E.instantAnimations||!l)&&c?.(getFinalKeyframe(e,i,t)),e[0]=e[e.length-1],makeAnimationInstant(i),i.repeat=0);let h=n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,d={startTime:h,finalKeyframe:t,...i,keyframes:e},p=!u&&function(e){let{motionValue:t,name:i,repeatDelay:n,repeatType:s,damping:o,type:a}=e,l=t?.owner?.current;if(!(l instanceof HTMLElement))return!1;
5let{onUpdate:u,transformTemplate:c}=t.owner.getProps();return e6()&&i&&e4.has(i)&&("transform"!==i||!c)&&!u&&!n&&"mirror"!==s&&0!==o&&"inertia"!==a}(d)?new NativeAnimationExtended({...d,element:d.motionValue.owner.current}):new JSAnimation(d);p.finished.then(()=>this.notifyFinished()).catch(noop),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),F=!0,readAllKeyframes(),measureAllKeyframes(),F=!1),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};let get_final_keyframe_isNotNull=e=>null!==e,e8={type:"spring",stiffness:500,damping:25,restSpeed:10},criticallyDampedSpring=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),e7={type:"keyframes",duration:.8},te={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},getDefaultTransition=(e,{keyframes:t})=>t.length>2?e7:l.has(e)?e.startsWith("scale")?criticallyDampedSpring(t[1]):e8:te,animateMotionValue=(e,t,i,n={},s,o)=>a=>{let l=getValueTransition(n,e)||{},u=l.delay||n.delay||0,{elapsed:c=0}=n;c-=time_conversion_secondsToMilliseconds(u);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-c,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:o?void 0:s};!function({when:e,delay:t,delayChildren:i,staggerChildren:n,staggerDirection:s,repeat:o,repeatType:a,repeatDelay:l,from:u,elapsed:c,...h}){return!!Object.keys(h).length}(l)&&Object.assign(h,getDefaultTransition(e,h)),h.duration&&(h.duration=time_conversion_secondsToMilliseconds(h.duration)),h.repeatDelay&&(h.repeatDelay=time_conversion_secondsToMilliseconds(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let d=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(makeAnimationInstant(h),0!==h.delay||(d=!0)),(E.instantAnimations||E.skipAnimations)&&(d=!0,makeAnimationInstant(h),h.delay=0),h.allowFlatten=!l.type&&!l.ease,d&&!o&&void 0!==t.get()){let e=function(e,{repeat:t,repeatType:i="loop"},n){let s=e.filter(get_final_keyframe_isNotNull),o=t&&"loop"!==i&&t%2==1?0:s.length-1;return o&&void 0!==n?n:s[o]}(h.keyframes,l);if(void 0!==e){R.update(()=>{h.onUpdate(e),h.onComplete()});return}}return l.isSync?new JSAnimation(h):new AsyncMotionValueAnimation(h)};function animateTarget(e,t,{delay:i=0,transitionOverride:n,type:s}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=t;n&&(o=n);let u=[],c=s&&e.animationState&&e.animationState.getState()[s];for(let t in l){let n=e.getValue(t,e.latestValues[t]??null),s=l[t];if(void 0===s||c&&function({protectedKeys:e,needsAnimating:t},i){let n=e.hasOwnProperty(i)&&!0!==t[i];return t[i]=!1,n}(c,t))continue;let a={delay:i,...getValueTransition(o||{},t)},h=n.get();if(void 0!==h&&!n.isAnimating&&!Array.isArray(s)&&s===h&&!a.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){let i=e.props[eI];if(i){let e=window.MotionHandoffAnimation(i,t,R);null!==e&&(a.startTime=e,d=!0)}}addValueToWillChange(e,t),n.start(animateMotionValue(t,n,s,e.shouldReduceMotion&&m.has(t)?{type:!1}:a,e,d));let p=n.animation;p&&u.push(p)}return a&&Promise.all(u).then(()=>{R.update(()=>{a&&function(e,t){let i=resolveVariant(e,t),{transitionEnd:n={},transition:s={},...o}=i||{};for(let t in o={...o,...n}){var a;let i=isKeyframesTarget(a=o[t])?a[a.length-1]||0:a;e.hasValue(t)?e.getValue(t).set(i):e.addValue(t,motionValue(i))}}(e,a)})}),u}function calcChildStagger(e,t,i,n=0,s=1){let o=Array.from(e).sort((e,t)=>
5e.sortNodePosition(t)).indexOf(t),a=e.size,l=(a-1)*n;return"function"==typeof i?i(o,a):1===s?o*n:l-o*n}function animateVariant(e,t,i={}){let n=resolveVariant(e,t,"exit"===i.type?e.presenceContext?.custom:void 0),{transition:s=e.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let o=n?()=>Promise.all(animateTarget(e,n,i)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:o=0,staggerChildren:a,staggerDirection:l}=s;return function(e,t,i=0,n=0,s=0,o=1,a){let l=[];for(let u of e.variantChildren)u.notify("AnimationStart",t),l.push(animateVariant(u,t,{...a,delay:i+("function"==typeof n?0:n)+calcChildStagger(e.variantChildren,u,n,s,o)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(l)}(e,t,n,o,a,l,i)}:()=>Promise.resolve(),{when:l}=s;if(!l)return Promise.all([o(),a(i.delay)]);{let[e,t]="beforeChildren"===l?[o,a]:[a,o];return e().then(()=>t())}}function shallowCompare(e,t){if(!Array.isArray(t))return!1;let i=t.length;if(i!==e.length)return!1;for(let n=0;n<i;n++)if(t[n]!==e[n])return!1;return!0}let tt=ey.length,ti=[...eg].reverse(),tr=eg.length;function createTypeState(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function createState(){return{animate:createTypeState(!0),whileInView:createTypeState(),whileHover:createTypeState(),whileTap:createTypeState(),whileDrag:createTypeState(),whileFocus:createTypeState(),exit:createTypeState()}}let Feature=class Feature{constructor(e){this.isMounted=!1,this.node=e}update(){}};let tn=0,ts={x:!1,y:!1};function addDomEvent(e,t,i,n={passive:!0}){return e.addEventListener(t,i,n),()=>e.removeEventListener(t,i)}let isPrimaryPointer=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function extractEventInfo(e){return{point:{x:e.pageX,y:e.pageY}}}let addPointerInfo=e=>t=>isPrimaryPointer(t)&&e(t,extractEventInfo(t));function addPointerEvent(e,t,i,n){return addDomEvent(e,t,addPointerInfo(i),n)}function calcLength(e){return e.max-e.min}function calcAxisDelta(e,t,i,n=.5){e.origin=n,e.originPoint=mixNumber(t.min,t.max,e.origin),e.scale=calcLength(i)/calcLength(t),e.translate=mixNumber(i.min,i.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function calcBoxDelta(e,t,i,n){calcAxisDelta(e.x,t.x,i.x,n?n.originX:void 0),calcAxisDelta(e.y,t.y,i.y,n?n.originY:void 0)}function calcRelativeAxis(e,t,i){e.min=i.min+t.min,e.max=e.min+calcLength(t)}function calcRelativeAxisPosition(e,t,i){e.min=t.min-i.min,e.max=e.min+calcLength(t)}function calcRelativePosition(e,t,i){calcRelativeAxisPosition(e.x,t.x,i.x),calcRelativeAxisPosition(e.y,t.y,i.y)}function eachAxis(e){return[e("x"),e("y")]}let getContextWindow=({current:e})=>e?e.ownerDocument.defaultView:null,distance=(e,t)=>Math.abs(e-t);let PanSession=class PanSession{constructor(e,t,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:s=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=getPanInfo(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,i=function(e,t){let i=distance(e.x,t.x),n=distance(e.y,t.y);return Math.sqrt(i**2+n**2)}(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!i)return;let{point:n}=e,{timestamp:s}=B;this.history.push({...n,timestamp:s});let{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=transformPoint(t,this.transformPagePoint),R.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=getPanInfo("pointercancel"===e.type?this.lastMoveEventInfo:transformPoint(t,this.transformPagePoint),this.history);this.startEvent&&i&&i(e,o),n&&n(e,o)},!isPrimaryPointer(e))return;this.dragSnapToOrigin=s,this.handlers=t,this.transformPagePoint=i,this.distanceThreshold=o,this.contextWindow=n||window;let a=extractEventInfo(e),l=transformPoint(a,this.transformPagePoint),{point:u}=l,{timestamp:c}=B;this.history=[{...u,timestamp:c}];let{onSessionStart:h}=t;h&&h(e,getPanInfo(l,this.history)),this.removeListeners=pipe(addPointerEvent(this.contextWindow,"pointermove",this.handlePointerMove),addPointerEvent(this.contextWindow,"pointerup",this.handlePointerUp),addPointerEvent(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),L(this.updatePoint)}};function transformPoint(e,t){return t?{point:t(e.point)}:e}function subtractPoint(e,t){return{x:e.x-t.x,y:e.y-t.y}}function getPanInfo({point:e},t){return{point:e,delta:subtractPoint(e,lastDevicePoint(t)),offset:subtractPoint(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let i=e.length-1,n=null,s=lastDevicePoint(e);for(;i>=0&&(n=e[i],!(s.timestamp-n.timestamp>time_conversion_secondsToMilliseconds(.1)));)i--;if(!n)return{x:0,y:0};let o=millisecondsToSeconds(s.timestamp-n.timestamp);if(0===o)return{x:0,y:0};let a={x:(s.x-n.x)/o,y:(s.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function lastDevicePoint(e){return e[e.length-1]}function calcRelativeAxisConstraints(e,t,i){return{min:void 0!==t?e.min+t:void 0,max:void 0!==i?e.max+i-(e.max-e.min):void 0}}function calcViewportAxisConstraints(e,t){let i=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([i,n]=[n,i]),{min:i,max:n}}function resolveAxisElastic(e,t,i){return{min:resolvePointElastic(e,t),max:resolvePointElastic(e,i)}}function resolvePointElastic(e,t){return"number"==typeof e?e:e[t]||0}let to=new WeakMap;let VisualElementDragControls=class VisualElementDragControls{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=createBox(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let{dragSnapToOrigin:s}=this.getProps();this.panSession=new PanSession(e,{onSessionStart:e=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(extractEventInfo(e).point)},onStart:(e,t)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===i||"y"===i?ts[i]?null:(ts[i]=!0,()=>{ts[i]=!1}):ts.x||ts.y?null:(ts.x=ts.y=!0,()=>{ts.x=ts.y=!1}),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),eachAxis(e=>{let t=this.getAxisMotionValue(e).get()||0;if(b.test(t)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[e];if(n){let e=calcLength(n);t=e*(parseFloat(t)/100)}}}this.originPoint[e]=t}),s&&R.postRender(()=>s(e,t)),addValueToWillChange(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>
5{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:o}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=t;if(n&&null===this.currentDirection){this.currentDirection=function(e,t=10){let i=null;return Math.abs(e.y)>t?i="y":Math.abs(e.x)>t&&(i="x"),i}(a),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>eachAxis(e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,distanceThreshold:i,contextWindow:getContextWindow(this.visualElement)})}stop(e,t){let i=e||this.latestPointerEvent,n=t||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!n||!i)return;let{velocity:o}=n;this.startAnimation(o);let{onDragEnd:a}=this.getProps();a&&R.postRender(()=>a(i,n))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,i){let{drag:n}=this.getProps();if(!i||!shouldDrag(e,n,this.currentDirection))return;let s=this.getAxisMotionValue(e),o=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:i},n){return void 0!==t&&e<t?e=n?mixNumber(t,e,n.min):Math.max(e,t):void 0!==i&&e>i&&(e=n?mixNumber(i,e,n.max):Math.min(e,i)),e}(o,this.constraints[e],this.elastic[e])),s.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;e&&isRefObject(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=function(e,{top:t,left:i,bottom:n,right:s}){return{x:calcRelativeAxisConstraints(e.x,i,s),y:calcRelativeAxisConstraints(e.y,t,n)}}(i.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:resolveAxisElastic(e,"left","right"),y:resolveAxisElastic(e,"to
5p","bottom")}}(t),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&eachAxis(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let i={};return void 0!==t.min&&(i.min=t.min-e.min),void 0!==t.max&&(i.max=t.max-e.min),i}(i.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:i}=this.getProps();if(!t||!isRefObject(t))return!1;let n=t.current;invariant(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;let o=function(e,t,i){let n=measureViewportBox(e,i),{scroll:s}=t;return s&&(translateAxis(n.x,s.offset.x),translateAxis(n.y,s.offset.y)),n}(n,s.root,this.visualElement.getTransformPagePoint()),a={x:calcViewportAxisConstraints((e=s.layout.layoutBox).x,o.x),y:calcViewportAxisConstraints(e.y,o.y)};if(i){let e=i(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=convertBoundingBoxToBox(e))}return a}startAnimation(e){let{drag:t,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=eachAxis(a=>{if(!shouldDrag(a,t,this.currentDirection))return;let u=l&&l[a]||{};o&&(u={min:0,max:0});let c={type:"inertia",velocity:i?e[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...u};return this.startAxisValueAnimation(a,c)});return Promise.all(u).then(a)}startAxisValueAnimation(e,t){let i=this.getAxisMotionValue(e);return addValueToWillChange(this.visualElement,e),i.start(animateMotionValue(e,i,0,t,this.visualElement,!1))}stopAnimation(){eachAxis(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){eachAxis(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),n=i[t];return n||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){eachAxis(t=>{let{drag:i}=this.getProps();if(!shouldDrag(t,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(t);if(n&&n.layout){let{min:i,max:o}=n.layout.layoutBox[t];s.set(e[t]-mixNumber(i,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:i}=this.visualElement;if(!isRefObject(t)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};eachAxis(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let i=t.get();n[e]=function(e,t){let i=.5,n=calcLength(e),s=calcLength(t);return s>n?i=progress(t.min,t.max-n,e.min):n>s&&(i=progress(e.min,e.max-s,t.min)),clamp(0,1,i)}({min:i,max:i},this.constraints[e])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),eachAxis(t=>{if(!shouldDrag(t,e,null))return;let i=this.getAxisMotionValue(t),{min:s,max:o}=this.constraints[t];i.set(mixNumber(s,o,n[t]))})}addListeners(){if(!this.visualElement.current)return;to.set(this.visualElement,this);let e=this.visualElement.current,t=addPointerEvent(e,"pointerdown",e=>{let{drag:t,dragListener:i=!0}=this.getProps();t&&i&&this.start(e)}),measureDragConstraints=()=>{let{dragConstraints:e}=this.getProps();isRefObject(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",measureDragConstraints);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),R.read(measureDragConstraints);let s=addDomEvent(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(eachAxis(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{s(),t(),n(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:o,dragMomentum:a}}};function shouldDrag(e,t,i){return(!0===t||t===e)&&(null===i||i===e)}let asyncHandler=e=>(t,i)=>{e&&R.postRender(()=>e(t,i))},ta={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pixelsToPercent(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let tl={correct:(e,t)=>
5{if(!t.target)return e;if("string"==typeof e){if(!x.test(e))return e;e=parseFloat(e)}let i=pixelsToPercent(e,t.target.x),n=pixelsToPercent(e,t.target.y);return`${i}% ${n}%`}},tu=!1;let MeasureLayoutWithContext=class MeasureLayoutWithContext extends o.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=e;!function(e){for(let t in e)eT[t]=e[t],h(t)&&(eT[t].isCSSVariable=!0)}(tc),s&&(t.group&&t.group.add(s),i&&i.register&&n&&i.register(s),tu&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),ta.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:i,drag:n,isPresent:s}=this.props,{projection:o}=i;return o&&(o.isPresent=s,tu=!0,n||e.layoutDependency!==t||void 0===t||e.isPresent!==s?o.willUpdate():this.safeToRemove(),e.isPresent===s||(s?o.promote():o.relegate()||R.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),el.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i}=this.props,{projection:n}=e;tu=!0,n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function MeasureLayout(e){let[t,i]=function(e=!0){let t=(0,o.useContext)(eR);if(null===t)return[!0,null];let{isPresent:i,onExitComplete:n,register:s}=t,a=(0,o.useId)();(0,o.useEffect)(()=>{if(e)return s(a)},[e]);let l=(0,o.useCallback)(()=>e&&n&&n(a),[a,n,e]);return!i&&n?[!1,l]:[!0]}(),n=(0,o.useContext)(eC);return(0,eV.jsx)(MeasureLayoutWithContext,{...e,layoutGroup:n,switchLayoutGroup:(0,o.useContext)(eO),isPresent:t,safeToRemove:i})}let tc={borderRadius:{...tl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tl,borderTopRightRadius:tl,borderBottomLeftRadius:tl,borderBottomRightRadius:tl,boxShadow:{correct:(e,{treeScale:t,projectionDelta:i})=>{let n=Z.parse(e);if(n.length>5)return e;let s=Z.createTransformer(e),o="number"!=typeof n[0]?1:0,a=i.x.scale*t.x,l=i.y.scale*t.y;n[0+o]/=a,n[1+o]/=l;let u=mixNumber(a,l,.5);return"number"==typeof n[2+o]&&(n[2+o]/=u),"number"==typeof n[3+o]&&(n[3+o]/=u),s(n)}}};function isObject(e){return"object"==typeof e&&null!==e}function isSVGElement(e){return isObject(e)&&"ownerSVGElement"in e}let compareByDepth=(e,t)=>e.depth-t.depth;let FlatTree=class FlatTree{constructor(){this.children=[],this.isDirty=!1}add(e){addUniqueItem(this.children,e),this.isDirty=!0}remove(e){removeItem(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(compareByDepth),this.isDirty=!1,this.children.forEach(e)}};let th=["TopLeft","TopRight","BottomLeft","BottomRight"],td=th.length,asNumber=e=>"string"==typeof e?parseFloat(e):e,isPx=e=>"number"==typeof e||x.test(e);function getRadius(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let tp=compress(0,.5,eZ),tm=compress(.5,.95,noop);function compress(e,t,i){return n=>n<e?0:n>t?1:i(progress(e,t,n))}function copyAxisInto(e,t){e.min=t.min,e.max=t.max}function copyBoxInto(e,t){copyAxisInto(e.x,t.x),copyAxisInto(e.y,t.y)}function copyAxisDeltaInto(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function removePointDelta(e,t,i,n,s){return e-=t,e=n+1/i*(e-n),void 0!==s&&(e=n+1/s*(e-n)),e}function removeAxisTransforms(e,t,[i,n,s],o,a){!function(e,t=0,i=1,n=.5,s,o=e,a=e){if(b.test(t)){t=parseFloat(t);let e=mixNumber(a.min,a.max,t/100);t=e-a.min}if("number"!=typeof t)return;let l=mixNumber(o.min,o.max,n);e===o&&(l-=t),e.min=removePointDelta(e.min,t,i,l,s),e.max=removePointDelta(e.max,t,i,l,s)}(e,t[i],t[n],t[s],t.scale,o,a)}let tf=["x","scaleX","originX"],tg=["y","scaleY","originY"];function removeBoxTransforms(e,t,i,n){removeAxisTransforms(e.x,t,tf,i?i.x:void 0,n?n.x:void 0),removeAxisTransforms(e.y,t,tg,i?i.y:void 0,n?n.y:void 0)}function isAxisDeltaZero(e){return 0===e.translate&&1===e.scale}function isDeltaZero(e){return isAxisDeltaZero(e.x)&&isAxisDeltaZero(e.y)}function axisEquals(e,t){return e.min===t.min&&e.max===t.max}function axisEqualsRounded(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function boxEqualsRounded(e,t){return axisEqualsRounded(e.x,t.x)&&axisEqualsRounded(e.y,t.y)}function aspectRatio(e){return calcLength(e.x)/calcLength(e.y)}function axisDeltaEquals(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}let NodeStack=class NodeStack{constructor(){this.members=[]}add(e){addUniqueItem(this.members,e),e.scheduleRender()}remove(e){if(removeItem(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let i=this.members.findIndex(t=>e===t);if(0===i)return!1;for(let e=i;e>=0;e--){let i=this.members[e];if(!1!==i.isPresent){t=i;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,t&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:n}=e.options;!1===n&&i.hide()}}
5exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:i}=e;t.onExitComplete&&t.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};let ty={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},tv=["","X","Y","Z"],tb=0;function resetDistortingTransform(e,t,i,n){let{latestValues:s}=t;s[e]&&(i[e]=s[e],t.setStaticValue(e,0),n&&(n[e]=0))}function create_projection_node_createProjectionNode({attachResizeListener:e,defaultParent:t,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(e={},i=t?.()){this.id=tb++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,k.value&&(ty.nodes=ty.calculatedTargetDeltas=ty.calculatedProjections=0),this.nodes.forEach(propagateDirtyNodes),this.nodes.forEach(resolveTargetDelta),this.nodes.forEach(calcProjection),this.nodes.forEach(cleanDirtyNodes),k.addProjectionMetrics&&k.addProjectionMetrics(ty)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new FlatTree)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new SubscriptionManager),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let i=this.eventHandlers.get(e);i&&i.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=isSVGElement(t)&&!(isSVGElement(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:i,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),e){let i;let n=0,resizeUnblockUpdate=()=>this.root.updateBlockedByResize=!1;R.read(()=>{n=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==n&&(n=e,this.root.updateBlockedByResize=!0,i&&i(),i=function(e,t){let i=es.now(),checkElapsed=({timestamp:n})=>{let s=n-i;s>=t&&(L(checkElapsed),e(s-t))};return R.setup(checkElapsed,!0),()=>L(checkElapsed)}(resizeUnblockUpdate,250),ta.hasAnimatedSinceResize&&(ta.hasAnimatedSinceResize=!1,this.nodes.forEach(finishAnimation)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||n)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||s.getDefaultTransition()||tx,{onLayoutAnimationStart:a,onLayoutAnimationComplete:l}=s.getProps(),u=!this.targetLayout||!boxEqualsRounded(this.targetLayout,n),c=!t&&i;if(this.options.layoutRoot||this.resumeFrom||c||t&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...getValueTransition(o,"layout"),onPlay:a,onComplete:l};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,c)}else t||finishAnimation(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),L(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.forEac
5h(resetSkewAndRotation),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function cancelTreeOptimisedTransformAnimations(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let i=t.props[eI];if(window.MotionHasOptimisedAnimation(i,"transform")){let{layout:t,layoutId:n}=e.options;window.MotionCancelOptimisedAnimation(i,"transform",R,!(t||n))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&cancelTreeOptimisedTransformAnimations(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:i}=this.options;if(void 0===t&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;let e=this.isUpdateBlocked();if(e){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(clearMeasurements);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(clearIsLayoutDirty);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(resetTransformStyle),this.nodes.forEach(updateLayout),this.nodes.forEach(notifyLayoutUpdate)):this.nodes.forEach(clearIsLayoutDirty),this.clearAllSnapshots();let t=es.now();B.delta=clamp(0,1e3/60,t-B.timestamp),B.timestamp=t,B.isProcessing=!0,j.update.process(B),j.preRender.process(B),j.render.process(B),B.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,el.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(clearSnapshot),this.sharedNodes.forEach(removeLeadSnapshots)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,R.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){R.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||calcLength(this.snapshot.measuredBox.x)||calcLength(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){let t=this.path[e];t.updateScroll()}let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=createBox(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=n(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!s)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!isDeltaZero(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,o=n!==this.prevTransformTemplateValue;e&&this.instance&&(t||hasTransform(this.latestValues)||o)&&(s(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let i=this.measurePageBox(),n=this.removeElementScroll(i);return e&&(n=this.removeTransform(n)),roundAxis((t=n).x),roundAxis(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return createBox();let t=e.measureViewportBox(),i=this.scroll?.wasRoot||this.path.some(checkNodeWasScrollRoot);if(!i){let{scroll:e}=this.root;e&&(translateAxis(t.x,e.offset.x),translateAxis(t.y,e.offset.y))}return t}removeElementScroll(e){let t=createBox();if(copyBoxInto(t,e),this.scroll?.wasRoot)return t;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:s,options:o}=n;n!==this.root&&s&&o.layoutScroll&&(s.wasRoot&©BoxInto(t,e),translateAxis(t.x,s.offset.x),translateAxis(t.y,s.offset.y))}return t}applyTransform(e,t=!1){let i=createBox();copyBoxInto(i,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&transformBox(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),hasTransform(n.latestValues)&&transformBox(i,n.latestValues)}return hasTransform(this.latestValues)&&transformBox(i,this.latestValues),i}removeTransform(e){let t=createBox();copyBoxInto(t,e);for(let e=0;e<this.path.length;e++){let i=this.path[e];if(!i.instance||!hasTransform(i.latestValues))continue;hasScale(i.latestValues)&&i.updateSnapshot();let n=createBox(),s=i.measurePageBox();copyBoxInto(n,s),removeBoxTransforms(t,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return hasTransform(this.latestValues)&&removeBoxTransforms(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==B.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
5isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==t,n=!(e||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize);if(n)return;let{layout:s,layoutId:o}=this.options;if(this.layout&&(s||o)){if(this.resolvedRelativeTargetAt=B.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=createBox(),this.relativeTargetOrigin=createBox(),calcRelativePosition(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),copyBoxInto(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=createBox(),this.targetWithTransforms=createBox()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var a,l,u;this.forceRelativeParentToResolveTarget(),a=this.target,l=this.relativeTarget,u=this.relativeParent.target,calcRelativeAxis(a.x,l.x,u.x),calcRelativeAxis(a.y,l.y,u.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):copyBoxInto(this.target,this.layout.layoutBox),applyBoxDelta(this.target,this.targetDelta)):copyBoxInto(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=createBox(),this.relativeTargetOrigin=createBox(),calcRelativePosition(this.relativeTargetOrigin,this.target,e.target),copyBoxInto(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}k.value&&ty.calculatedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||hasScale(this.parent.latestValues)||has2DTranslate(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(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===B.timestamp&&(i=!1),i)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;copyBoxInto(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(e,t,i,n=!1){let s,o;let a=i.length;if(a){t.x=t.y=1;for(let l=0;l<a;l++){o=(s=i[l]).projectionDelta;let{visualElement:a}=s.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&transformBox(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,applyBoxDelta(e,o)),n&&hasTransform(s.latestValues)&&transformBox(e,s.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=createBox());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(copyAxisDeltaInto(this.prevProjectionDelta.x,this.projectionDelta.x),copyAxisDeltaInto(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),calcBoxDelta(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&axisDeltaEquals(this.projectionDelta.x,this.prevProjectionDelta.x)&&axisDeltaEquals(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),k.value&&ty.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=createDelta(),this.projectionDelta=createDelta(),this.projectionDeltaWithTransform=createDelta()}setAnimationOrigin(e,t=!1){let i;let n=this.snapshot,s=n?n.latestValues:{},o={...this.latestValues},a=createDelta();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=createBox(),u=n?n.source:void 0,c=this.layout?this.layout.source:void 0,h=u!==c,d=this.getStack(),p=!d||d.members.length<=1,m=!!(h&&!p&&!0===this.options.crossfade&&!this.path.some(hasOpacityCrossfade));this.animationProgress=0,this.mixTargetDelta=t=>{let n=t/1e3;if(mixAxisDelta(a.x,e.x,n),mixAxisDelta(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,d,f;calcRelativePosition(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),d=this.relativeTarget,f=this.relativeTargetOrigin,mixAxis(d.x,f.x,l.x,n),mixAxis(d.y,f.y,l.y,n),i&&(u=this.relativeTarget,c=i,axisEquals(u.x,c.x)&&axisEquals(u.y,c.y))&&(this.isProjectionDirty=!1),i||(i=createBox()),copyBoxInto(i,this.relativeTarget)}h&&(this.animationValues=o,function(e,t,i,n,s,o){s?(e.opacity=mixNumber(0,i.opacity??1,tp(n)),e.opacityExit=mixNumber(t.opacity??1,0,tm(n))):o&&(e.opacity=mixNumber(t.opacity??1,i.opacity??1,n));for(let s=0;s<td;s++){let o=`border${th[s]}Radius`,a=getRadius(t,o),l=getRadius(i,o);if(void 0===a&&void 0===l)continue;a||(a=0),l||(l=0);let u=0===a||0===l||isPx(a)===isPx(l);u?(e[o]=Math.max(mixNumber(asNumber(a),asNumber(l),n),0),(b.test(l)||b.test(a))&&(e[o]+="%")):e[o]=l}(t.rotate||i.rotate)&&(e.rotate=mixNumber(t.rotate||0,i.rotate||0,n))}(o,s,this.latestValues,n,m,p)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(L(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=R.update(()=>{ta.hasAnimatedSinceResize=!0,eF.layout++,this.motionValue||(this.motionValue=motionValue(0)),this.currentAnimation=function(e,t,i){let n=isMotionValue(e)?e:motionValue(e);return n.start(animateMotionValue("",n,t,i)),n.animation}(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{eF.layout--},onComplete:()=>{eF.layout--,e.onComplete&&e.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 e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:i,layout:n,latestValues:s}=e;if(t&&i&&n){if(this!==e&&this.layout&&n&&shouldAnimatePositionOnly(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||createBox();let t=calcLength(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let n=calcLength(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+n}copyBoxInto(t,i),transformBox(t,s),calcBoxDelta(this.projectionDeltaWithTransform,this.layoutCorrected,t,s)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new NodeStack);let i=this.sharedNodes.get(e);i.add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;
5return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:i}=e;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(t=!0),!t)return;let n={};i.z&&resetDistortingTransform("z",e,n,this.animationValues);for(let t=0;t<tv.length;t++)resetDistortingTransform(`rotate${tv[t]}`,e,n,this.animationValues),resetDistortingTransform(`skew${tv[t]}`,e,n,this.animationValues);for(let t in e.render(),n)e.setStaticValue(t,n[t]),this.animationValues&&(this.animationValues[t]=n[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=resolveMotionValue(t?.pointerEvents)||"",e.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=resolveMotionValue(t?.pointerEvents)||""),this.hasProjected&&!hasTransform(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1);return}e.visibility="";let s=n.animationValues||n.latestValues;this.applyTransformsToTarget();
5let o=function(e,t,i){let n="",s=e.x.translate/t.x,o=e.y.translate/t.y,a=i?.z||0;if((s||o||a)&&(n=`translate3d(${s}px, ${o}px, ${a}px) `),(1!==t.x||1!==t.y)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),i){let{transformPerspective:e,rotate:t,rotateX:s,rotateY:o,skewX:a,skewY:l}=i;e&&(n=`perspective(${e}px) ${n}`),t&&(n+=`rotate(${t}deg) `),s&&(n+=`rotateX(${s}deg) `),o&&(n+=`rotateY(${o}deg) `),a&&(n+=`skewX(${a}deg) `),l&&(n+=`skewY(${l}deg) `)}let l=e.x.scale*t.x,u=e.y.scale*t.y;return(1!==l||1!==u)&&(n+=`scale(${l}, ${u})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s);i&&(o=i(s,o)),e.transform=o;let{x:a,y:l}=this.projectionDelta;for(let t in e.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,n.animationValues?e.opacity=n===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:e.opacity=n===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,eT){if(void 0===s[t])continue;let{correct:i,applyTo:a,isCSSVariable:l}=eT[t],u="none"===o?s[t]:i(s[t],n);if(a){let t=a.length;for(let i=0;i<t;i++)e[a[i]]=u}else l?this.options.visualElement.renderState.vars[t]=u:e[t]=u}this.options.layoutId&&(e.pointerEvents=n===this?resolveMotionValue(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(clearMeasurements),this.root.sharedNodes.clear()}}}function updateLayout(e){e.updateLayout()}function notifyLayoutUpdate(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=e.layout,{animationType:s}=e.options,o=t.source!==e.layout.source;"size"===s?eachAxis(e=>{let n=o?t.measuredBox[e]:t.layoutBox[e],s=calcLength(n);n.min=i[e].min,n.max=n.min+s}):shouldAnimatePositionOnly(s,t.layoutBox,i)&&eachAxis(n=>{let s=o?t.measuredBox[n]:t.layoutBox[n],a=calcLength(i[n]);s.max=s.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+a)});let a=createDelta();calcBoxDelta(a,i,t.layoutBox);let l=createDelta();o?calcBoxDelta(l,e.applyTransform(n,!0),t.measuredBox):calcBoxDelta(l,i,t.layoutBox);let u=!isDeltaZero(a),c=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:o}=n;if(s&&o){let a=createBox();calcRelativePosition(a,t.layoutBox,s.layoutBox);let l=createBox();calcRelativePosition(l,i,o.layoutBox),boxEqualsRounded(a,l)||(c=!0),n.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=a,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function propagateDirtyNodes(e){k.value&&ty.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function cleanDirtyNodes(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function clearSnapshot(e){e.clearSnapshot()}function clearMeasurements(e){e.clearMeasurements()}function clearIsLayoutDirty(e){e.isLayoutDirty=!1}function resetTransformStyle(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function finishAnimation(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function resolveTargetDelta(e){e.resolveTargetDelta()}function calcProjection(e){e.calcProjection()}function resetSkewAndRotation(e){e.resetSkewAndRotation()}function removeLeadSnapshots(e){e.removeLeadSnapshot()}function mixAxisDelta(e,t,i){e.translate=mixNumber(t.translate,0,i),e.scale=mixNumber(t.scale,1,i),e.origin=t.origin,e.originPoint=t.originPoint}function mixAxis(e,t,i,n){e.min=mixNumber(t.min,i.min,n),e.max=mixNumber(t.max,i.max,n)}function hasOpacityCrossfade(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let tx={duration:.45,ease:[.4,0,.1,1]},userAgentContains=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),tT=userAgentContains("applewebkit/")&&!userAgentContains("chrome/")?Math.round:noop;function roundAxis(e){e.min=tT(e.min),e.max=tT(e.max)}function shouldAnimatePositionOnly(e,t,i){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(aspectRatio(t)-aspectRatio(i)))}function checkNodeWasScrollRoot(e){return e!==e.root&&e.scroll?.wasRoot}let tA=create_projection_node_createProjectionNode({attachResizeListener:(e,t)=>addDomEvent(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),tw={current:void 0},tS=create_projection_node_createProjectionNode({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!tw.current){let e=new tA({});e.mount(window),e.setOptions({layoutScroll:!0}),tw.current=e}return tw.current},resetTransform:(e,t)=>
5{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function setupGesture(e,t){let i=function(e,t,i){if(e instanceof EventTarget)return[e];if("string"==typeof e){let i=document;t&&(i=t.current);let n=(void 0)??i.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}(e),n=new AbortController,s={passive:!0,...t,signal:n.signal};return[i,s,()=>n.abort()]}function isValidHover(e){return!("touch"===e.pointerType||ts.x||ts.y)}function handleHoverEvent(e,t,i){let{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover","Start"===i);let s="onHover"+i,o=n[s];o&&R.postRender(()=>o(t,extractEventInfo(t)))}let isNodeOrChild=(e,t)=>!!t&&(e===t||isNodeOrChild(e,t.parentElement)),tP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),tV=new WeakSet;function filterEvents(e){return t=>{"Enter"===t.key&&e(t)}}function firePointerEvent(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}let enableKeyboardPress=(e,t)=>{let i=e.currentTarget;if(!i)return;let n=filterEvents(()=>{if(tV.has(i))return;firePointerEvent(i,"down");let e=filterEvents(()=>{firePointerEvent(i,"up")});i.addEventListener("keyup",e,t),i.addEventListener("blur",()=>firePointerEvent(i,"cancel"),t)});i.addEventListener("keydown",n,t),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),t)};function isValidPressEvent(e){return isPrimaryPointer(e)&&!(ts.x||ts.y)}function handlePressEvent(e,t,i){let{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap","Start"===i);let s="onTap"+("End"===i?"":i),o=n[s];o&&R.postRender(()=>o(t,extractEventInfo(t)))}let tC=new WeakMap,tM=new WeakMap,fireObserverCallback=e=>{let t=tC.get(e.target);t&&t(e)},fireAllObserverCallbacks=e=>{e.forEach(fireObserverCallback)},tE={some:0,all:1},tD=function(e,t){if("undefined"==typeof Proxy)return createMotionComponent;let i=new Map,factory=(i,n)=>createMotionComponent(i,n,e,t);return new Proxy((e,t)=>factory(e,t),{get:(n,s)=>"create"===s?factory:(i.has(s)||i.set(s,createMotionComponent(s,void 0,e,t)),i.get(s))})}({animation:{Feature:class extends Feature{constructor(e){super(e),e.animationState||(e.animationState=function(e){let animate=t=>Promise.all(t.map(({animation:t,options:i})=>(function(e,t,i={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t)){let s=t.map(t=>animateVariant(e,t,i));n=Promise.all(s)}else if("string"==typeof t)n=animateVariant(e,t,i);else{let s="function"==typeof t?resolveVariant(e,t,i.custom):t;n=Promise.all(animateTarget(e,s,i))}return n.then(()=>{e.notify("AnimationComplete",t)})})(e,t,i))),t=createState(),i=!0,buildResolvedTypeValues=t=>(i,n)=>{let s=resolveVariant(e,n,"exit"===t?e.presenceContext?.custom:void 0);if(s){let{transition:e,transitionEnd:t,...n}=s;i={...i,...n,...t}}return i};function animateChanges(n){let{props:s}=e,o=function getVariantContext(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&getVariantContext(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}let t={};for(let i=0;i<tt;i++){let n=ey[i],s=e.props[n];(isVariantLabel(s)||!1===s)&&(t[n]=s)}return t}(e.parent)||{},a=[],l=new Set,u={},c=1/0;for(let d=0;d<tr;d++){var h;let p=ti[d],m=t[p],f=void 0!==s[p]?s[p]:o[p],g=isVariantLabel(f),y=p===n?m.isActive:null;!1===y&&(c=d);let v=f===o[p]&&f!==s[p]&&g;if(v&&i&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...u},!m.isActive&&null===y||!f&&!m.prevProp||isAnimationControls(f)||"boolean"==typeof f)continue;let b=(h=m.prevProp,"string"==typeof f?f!==h:!!Array.isArray(f)&&!shallowCompare(f,h)),x=b||p===n&&m.isActive&&!v&&g||d>c&&g,T=!1,A=Array.isArray(f)?f:[f],w=A.reduce(buildResolvedTypeValues(p),{});!1===y&&(w={});let{prevResolvedValues:S={}}=m,P={...S,...w},markToAnimate=t=>{x=!0,l.has(t)&&(T=!0,l.delete(t)),m.needsAnimating[t]=!0;let i=e.getValue(t);i&&(i.liveStyle=!1)};for(let e in P){let t=w[e],i=S[e];if(!u.hasOwnProperty(e))(isKeyframesTarget(t)&&isKeyframesTarget(i)?shallowCompare(t,i):t===i)?void 0!==t&&l.has(e)?markToAnimate(e):m.protectedKeys[e]=!0:null!=t?markToAnimate(e):l.add(e)}m.prevProp=f,m.prevResolvedValues=w,m.isActive&&(u={...u,...w}),i&&e.blockInitialAnimation&&(x=!1);let V=v&&b,C=!V||T;x&&C&&a.push(...A.map(t=>{let n={type:p};if("string"==typeof t&&i&&!V&&e.manuallyAnimateOnMount&&e.parent){let{parent:i}=e,s=resolveVariant(i,t);if(i.enteringChildren&&s){let{delayChildren:t}=s.transition||{};n.delay=calcChildStagger(i.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(l.size){let t={};if("boolean"!=typeof s.initial){let i=resolveVariant(e,Array.isArray(s.initial)?s.initial[0]:s.initial);i&&i.transition&&(t.transition=i.transition)}l.forEach(i=>
5{let n=e.getBaseTarget(i),s=e.getValue(i);s&&(s.liveStyle=!0),t[i]=n??null}),a.push({animation:t})}let d=!!a.length;return i&&(!1===s.initial||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(d=!1),i=!1,d?animate(a):Promise.resolve()}return{animateChanges,setActive:function(i,n){if(t[i].isActive===n)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(i,n)),t[i].isActive=n;let s=animateChanges(i);for(let e in t)t[e].protectedKeys={};return s},setAnimateFunction:function(t){animate=t(e)},getState:()=>t,reset:()=>{t=createState(),i=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();isAnimationControls(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends Feature{constructor(){super(...arguments),this.id=tn++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;let n=this.node.animationState.setActive("exit",!e);t&&!e&&n.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:i,amount:n="some",once:s}=e,o={root:t?t.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:tE[n]};return function(e,t,i){let n=function({root:e,...t}){let i=e||document;tM.has(i)||tM.set(i,{});let n=tM.get(i),s=JSON.stringify(t);return n[s]||(n[s]=new IntersectionObserver(fireAllObserverCallbacks,{root:e,...t})),n[s]}(t);return tC.set(e,i),n.observe(e),()=>{tC.delete(e),n.unobserve(e)}}(this.node.current,o,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,s&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),o=t?i:n;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node,i=["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return i=>e[i]!==t[i]}(e,t));i&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Feature{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,i={}){let[n,s,o]=setupGesture(e,i),startPress=e=>{let n=e.currentTarget;if(!isValidPressEvent(e))return;tV.add(n);let o=t(n,e),onPointerEnd=(e,t)=>{window.removeEventListener("pointerup",onPointerUp),window.removeEventListener("pointercancel",onPointerCancel),tV.has(n)&&tV.delete(n),isValidPressEvent(e)&&"function"==typeof o&&o(e,{success:t})},onPointerUp=e=>{onPointerEnd(e,n===window||n===document||i.useGlobalTarget||isNodeOrChild(n,e.target))},onPointerCancel=e=>{onPointerEnd(e,!1)};window.addEventListener("pointerup",onPointerUp,s),window.addEventListener("pointercancel",onPointerCancel,s)};return n.forEach(e=>{let t=i.useGlobalTarget?window:e;t.addEventListener("pointerdown",startPress,s),isObject(e)&&"offsetHeight"in e&&(e.addEventListener("focus",e=>enableKeyboardPress(e,s)),tP.has(e.tagName)||-1!==e.tabIndex||e.hasAttribute("tabindex")||(e.tabIndex=0))}),o}(e,(e,t)=>(handlePressEvent(this.node,t,"Start"),(e,{success:t})=>handlePressEvent(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends Feature{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=pipe(addDomEvent(this.node.current,"focus",()=>this.onFocus()),addDomEvent(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Feature{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,i={}){let[n,s,o]=setupGesture(e,i),onPointerEnter=e=>{if(!isValidHover(e))return;let{target:i}=e,n=t(i,e);if("function"!=typeof n||!i)return;let onPointerLeave=e=>{isValidHover(e)&&(n(e),i.removeEventListener("pointerleave",onPointerLeave))};i.addEventListener("pointerleave",onPointerLeave,s)};
5return n.forEach(e=>{e.addEventListener("pointerenter",onPointerEnter,s)}),o}(e,(e,t)=>(handleHoverEvent(this.node,t,"Start"),e=>handleHoverEvent(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends Feature{constructor(){super(...arguments),this.removePointerDownListener=noop}onPointerDown(e){this.session=new PanSession(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:getContextWindow(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:asyncHandler(e),onStart:asyncHandler(t),onMove:i,onEnd:(e,t)=>{delete this.session,n&&R.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=addPointerEvent(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Feature{constructor(e){super(e),this.removeGroupControls=noop,this.removeListeners=noop,this.controls=new VisualElementDragControls(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||noop}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:tS,MeasureLayout:MeasureLayout},layout:{ProjectionNode:tS,MeasureLayout:MeasureLayout}},(e,t)=>isSVGComponent(e)?new SVGVisualElement(t):new HTMLVisualElement(t,{allowProjection:e!==o.Fragment}))},8388:function(e,t,i){"use strict";i.d(t,{m6:function(){return g}});let createClassGroupUtils=e=>{let t=createClassMap(e),{conflictingClassGroups:i,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{let i=e.split("-");return""===i[0]&&1!==i.length&&i.shift(),getGroupRecursive(i,t)||getGroupIdForArbitraryProperty(e)},getConflictingClassGroupIds:(e,t)=>{let s=i[e]||[];return t&&n[e]?[...s,...n[e]]:s}}},getGroupRecursive=(e,t)=>{if(0===e.length)return t.classGroupId;let i=e[0],n=t.nextPart.get(i),s=n?getGroupRecursive(e.slice(1),n):void 0;if(s)return s;if(0===t.validators.length)return;let o=e.join("-");return t.validators.find(({validator:e})=>e(o))?.classGroupId},n=/^\[(.+)\]$/,getGroupIdForArbitraryProperty=e=>{if(n.test(e)){let t=n.exec(e)[1],i=t?.substring(0,t.indexOf(":"));if(i)return"arbitrary.."+i}},createClassMap=e=>{let{theme:t,prefix:i}=e,n={nextPart:new Map,validators:[]},s=getPrefixedClassGroupEntries(Object.entries(e.classGroups),i);return s.forEach(([e,i])=>{processClassesRecursively(i,n,e,t)}),n},processClassesRecursively=(e,t,i,n)=>{e.forEach(e=>{if("string"==typeof e){let n=""===e?t:getPart(t,e);n.classGroupId=i;return}if("function"==typeof e){if(isThemeGetter(e)){processClassesRecursively(e(n),t,i,n);return}t.validators.push({validator:e,classGroupId:i});return}Object.entries(e).forEach(([e,s])=>{processClassesRecursively(s,getPart(t,e),i,n)})})},getPart=(e,t)=>{let i=e;return t.split("-").forEach(e=>{i.nextPart.has(e)||i.nextPart.set(e,{nextPart:new Map,validators:[]}),i=i.nextPart.get(e)}),i},isThemeGetter=e=>e.isThemeGetter,getPrefixedClassGroupEntries=(e,t)=>t?e.map(([e,i])=>{let n=i.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,i])=>[t+e,i])):e);return[e,n]}):e,createLruCache=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,i=new Map,n=new Map,update=(s,o)=>{i.set(s,o),++t>e&&(t=0,n=i,i=new Map)};return{get(e){let t=i.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(update(e,t),t):void 0},set(e,t){i.has(e)?i.set(e,t):update(e,t)}}},createParseClassName=e=>{let{separator:t,experimentalParseClassName:i}=e,n=1===t.length,s=t[0],o=t.length,parseClassName=e=>{let i;let a=[],l=0,u=0;for(let c=0;c<e.length;c++){let h=e[c];if(0===l){if(h===s&&(n||e.slice(c,c+o)===t)){a.push(e.slice(u,c)),u=c+o;continue}if("/"===h){i=c;continue}}"["===h?l++:"]"===h&&l--}let c=0===a.length?e:e.substring(u),h=c.startsWith("!"),d=h?c.substring(1):c,p=i&&i>u?i-u:void 0;return{modifiers:a,hasImportantModifier:h,baseClassName:d,maybePostfixModifierPosition:p}};return i?e=>i({className:e,parseClassName}):parseClassName},sortModifiers=e=>{if(e.length<=1)return e;let t=[],i=[];
5return e.forEach(e=>{let n="["===e[0];n?(t.push(...i.sort(),e),i=[]):i.push(e)}),t.push(...i.sort()),t},createConfigUtils=e=>({cache:createLruCache(e.cacheSize),parseClassName:createParseClassName(e),...createClassGroupUtils(e)}),s=/\s+/,mergeClassList=(e,t)=>{let{parseClassName:i,getClassGroupId:n,getConflictingClassGroupIds:o}=t,a=[],l=e.trim().split(s),u="";for(let e=l.length-1;e>=0;e-=1){let t=l[e],{modifiers:s,hasImportantModifier:c,baseClassName:h,maybePostfixModifierPosition:d}=i(t),p=!!d,m=n(p?h.substring(0,d):h);if(!m){if(!p||!(m=n(h))){u=t+(u.length>0?" "+u:u);continue}p=!1}let f=sortModifiers(s).join(":"),g=c?f+"!":f,y=g+m;if(a.includes(y))continue;a.push(y);let v=o(m,p);for(let e=0;e<v.length;++e){let t=v[e];a.push(g+t)}u=t+(u.length>0?" "+u:u)}return u};function twJoin(){let e,t,i=0,n="";for(;i<arguments.length;)(e=arguments[i++])&&(t=toValue(e))&&(n&&(n+=" "),n+=t);return n}let toValue=e=>{let t;if("string"==typeof e)return e;let i="";for(let n=0;n<e.length;n++)e[n]&&(t=toValue(e[n]))&&(i&&(i+=" "),i+=t);return i},fromTheme=e=>{let themeGetter=t=>t[e]||[];return themeGetter.isThemeGetter=!0,themeGetter},o=/^\[(?:([a-z-]+):)?(.+)\]$/i,a=/^\d+\/\d+$/,l=new Set(["px","full","screen"]),u=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,c=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,h=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,d=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,p=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,isLength=e=>isNumber(e)||l.has(e)||a.test(e),isArbitraryLength=e=>getIsArbitraryValue(e,"length",isLengthOnly),isNumber=e=>!!e&&!Number.isNaN(Number(e)),isArbitraryNumber=e=>getIsArbitraryValue(e,"number",isNumber),isInteger=e=>!!e&&Number.isInteger(Number(e)),isPercent=e=>e.endsWith("%")&&isNumber(e.slice(0,-1)),isArbitraryValue=e=>o.test(e),isTshirtSize=e=>u.test(e),m=new Set(["length","size","percentage"]),isArbitrarySize=e=>getIsArbitraryValue(e,m,isNever),isArbitraryPosition=e=>getIsArbitraryValue(e,"position",isNever),f=new Set(["image","url"]),isArbitraryImage=e=>getIsArbitraryValue(e,f,isImage),isArbitraryShadow=e=>getIsArbitraryValue(e,"",isShadow),isAny=()=>!0,getIsArbitraryValue=(e,t,i)=>{let n=o.exec(e);return!!n&&(n[1]?"string"==typeof t?n[1]===t:t.has(n[1]):i(n[2]))},isLengthOnly=e=>c.test(e)&&!h.test(e),isNever=()=>!1,isShadow=e=>d.test(e),isImage=e=>p.test(e),g=function(e){let t,i,n;let functionToCall=function(s){let o=[].reduce((e,t)=>t(e),e());return i=(t=createConfigUtils(o)).cache.get,n=t.cache.set,functionToCall=tailwindMerge,tailwindMerge(s)};function tailwindMerge(e){let s=i(e);if(s)return s;let o=mergeClassList(e,t);return n(e,o),o}return function(){return functionToCall(twJoin.apply(null,arguments))}}(()=>{let e=fromTheme("colors"),t=fromTheme("spacing"),i=fromTheme("blur"),n=fromTheme("brightness"),s=fromTheme("borderColor"),o=fromTheme("borderRadius"),a=fromTheme("borderSpacing"),l=fromTheme("borderWidth"),u=fromTheme("contrast"),c=fromTheme("grayscale"),h=fromTheme("hueRotate"),d=fromTheme("invert"),p=fromTheme("gap"),m=fromTheme("gradientColorStops"),f=fromTheme("gradientColorStopPositions"),g=fromTheme("inset"),y=fromTheme("margin"),v=fromTheme("opacity"),b=fromTheme("padding"),x=fromTheme("saturate"),T=fromTheme("scale"),A=fromTheme("sepia"),w=fromTheme("skew"),S=fromTheme("space"),P=fromTheme("translate"),getOverscroll=()=>["auto","contain","none"],getOverflow=()=>["auto","hidden","clip","visible","scroll"],getSpacingWithAutoAndArbitrary=()=>["auto",isArbitraryValue,t],getSpacingWithArbitrary=()=>[isArbitraryValue,t],getLengthWithEmptyAndArbitrary=()=>["",isLength,isArbitraryLength],getNumberWithAutoAndArbitrary=()=>["auto",isNumber,isArbitraryValue],getPositions=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],getLineStyles=()=>["solid","dashed","dotted","double","none"],getBlendModes=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],getAlign=()=>["start","end","center","between","around","evenly","stretch"],getZeroAndEmpty=()=>["","0",isArbitraryValue],getBreaks=()=>["auto","avoid","all","avoid-page","page","left","right","column"],getNumberAndArbitrary=()=>[isNumber,isArbitraryValue];return{cacheSize:500,separator:":",theme:{colors:[isAny],spacing:[isLength,isArbitraryLength],blur:["none","",isTshirtSize,isArbitraryValue],brightness:getNumberAndArbitrary(),borderColor:[e],borderRadius:["n
5one","","full",isTshirtSize,isArbitraryValue],borderSpacing:getSpacingWithArbitrary(),borderWidth:getLengthWithEmptyAndArbitrary(),contrast:getNumberAndArbitrary(),grayscale:getZeroAndEmpty(),hueRotate:getNumberAndArbitrary(),invert:getZeroAndEmpty(),gap:getSpacingWithArbitrary(),gradientColorStops:[e],gradientColorStopPositions:[isPercent,isArbitraryLength],inset:getSpacingWithAutoAndArbitrary(),margin:getSpacingWithAutoAndArbitrary(),opacity:getNumberAndArbitrary(),padding:getSpacingWithArbitrary(),saturate:getNumberAndArbitrary(),scale:getNumberAndArbitrary(),sepia:getZeroAndEmpty(),skew:getNumberAndArbitrary(),space:getSpacingWithArbitrary(),translate:getSpacingWithArbitrary()},classGroups:{aspect:[{aspect:["auto","square","video",isArbitraryValue]}],container:["container"],columns:[{columns:[isTshirtSize]}],"break-after":[{"break-after":getBreaks()}],"break-before":[{"break-before":getBreaks()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...getPositions(),isArbitraryValue]}],overflow:[{overflow:getOverflow()}],"overflow-x":[{"overflow-x":getOverflow()}],"overflow-y":[{"overflow-y":getOverflow()}],overscroll:[{overscroll:getOverscroll()}],"overscroll-x":[{"overscroll-x":getOverscroll()}],"overscroll-y":[{"overscroll-y":getOverscroll()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",isInteger,isArbitraryValue]}],basis:[{basis:getSpacingWithAutoAndArbitrary()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",isArbitraryValue]}],grow:[{grow:getZeroAndEmpty()}],shrink:[{shrink:getZeroAndEmpty()}],order:[{order:["first","last","none",isInteger,isArbitraryValue]}],"grid-cols":[{"grid-cols":[isAny]}],"col-start-end":[{col:["auto",{span:["full",isInteger,isArbitraryValue]},isArbitraryValue]}],"col-start":[{"col-start":getNumberWithAutoAndArbitrary()}],"col-end":[{"col-end":getNumberWithAutoAndArbitrary()}],"grid-rows":[{"grid-rows":[isAny]}],"row-start-end":[{row:["auto",{span:[isInteger,isArbitraryValue]},isArbitraryValue]}],"row-start":[{"row-start":getNumberWithAutoAndArbitrary()}],"row-end":[{"row-end":getNumberWithAutoAndArbitrary()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",isArbitraryValue]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",isArbitraryValue]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...getAlign()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...getAlign(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...getAlign(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",
vendor: 9,494 bytes, line 5
5isArbitraryValue,t]}],"min-w":[{"min-w":[isArbitraryValue,t,"min","max","fit"]}],"max-w":[{"max-w":[isArbitraryValue,t,"none","full","min","max","fit","prose",{screen:[isTshirtSize]},isTshirtSize]}],h:[{h:[isArbitraryValue,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[isArbitraryValue,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[isArbitraryValue,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[isArbitraryValue,t,"auto","min","max","fit"]}],"font-size":[{text:["base",isTshirtSize,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",isArbitraryNumber]}],"font-family":[{font:[isAny]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",isArbitraryValue]}],"line-clamp":[{"line-clamp":["none",isNumber,isArbitraryNumber]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",isLength,isArbitraryValue]}],"list-image":[{"list-image":["none",isArbitraryValue]}],"list-style-type":[{list:["none","disc","decimal",isArbitraryValue]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...getLineStyles(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",isLength,isArbitraryLength]}],"underline-offset":[{"underline-offset":["auto",isLength,isArbitraryValue]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:getSpacingWithArbitrary()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",isArbitraryValue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",isArbitraryValue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...getPositions(),isArbitraryPosition]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",isArbitrarySize]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},isArbitraryImage]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[f]}],"gradient-via-pos":[{via:[f]}],"gradient-to-pos":[{to:[f]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...getLineStyles(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:getLineStyles()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...getLineStyles()]}],"outline-offset":[{"outline-offset":[isLength,isArbitraryValue]}],"outline-w":[{outline:[isLength,isArbitraryLength]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:getLengthWithEmptyAndArbitrary()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[isLength,isArbitraryLength]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",isTshirtSize,isArbitraryShadow]}],"shadow-color":[{shadow:[isAny]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...getBlendModes(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":getBlendModes()}],filter:[{filter:["","none"]}],blur:[{blur:[i]}],brightness:[{brightness:[n]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",isTshirtSize,isArbitraryValue]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[d]}],saturate:[{saturate:[x]}],sepia:[{sepia:[A]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[i]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",isArbitraryValue]}],duration:[{duration:getNumberAndArbitrary()}],ease:[{ease:["linear","in","out","in-out",isArbitraryValue]}],delay:[{delay:getNumberAndArbitrary()}],animate:[{animate:["none","spin","ping","pulse","bounce",isArbitraryValue]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[isInteger,isArbitraryValue]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[w]}],"skew-y":[{"skew-y":[w]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",isArbitraryValue]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",isArbitraryValue]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":getSpacingWithArbitrary()}],"scroll-mx":[{"scroll-mx":getSpacingWithArbitrary()}],"scroll-my":[{"scroll-my":getSpacingWithArbitrary()}],"scroll-ms":[{"scroll-ms":getSpacingWithArbitrary()}],"scroll-me":[{"scroll-me":getSpacingWithArbitrary()}],"scroll-mt":[{"scroll-mt":getSpacingWithArbitrary()}],"scroll-mr":[{"scroll-mr":getSpacingWithArbitrary()}],"scroll-mb":[{"scroll-mb":getSpacingWithArbitrary()}],"scroll-ml":[{"scroll-ml":getSpacingWithArbitrary()}],"scroll-p":[{"scroll-p":getSpacingWithArbitrary()}],"scroll-px":[{"scroll-px":getSpacingWithArbitrary()}],"scroll-py":[{"scroll-py":getSpacingWithArbitrary()}],"scroll-ps":[{"scroll-ps":getSpacingWithArbitrary()}],"scroll-pe":[{"scroll-pe":getSpacingWithArbitrary()}],"scroll-pt":[{"scroll-pt":getSpacingWithArbitrary()}],"scroll-pr":[{"scroll-pr":getSpacingWithArbitrary()}],"scroll-pb":[{"scroll-pb":getSpacingWithArbitrary()}],"scroll-pl":[{"scroll-pl":getSpacingWithArbitrary()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",isArbitraryValue]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[isLength,isArbitraryLength,isArbitraryNumber]}
vendor: 2,287 bytes, line 5
5],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.