libre-webui 0.19.2 → 0.19.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/backend/dist/index.d.ts.map +1 -1
- package/backend/dist/index.js +61 -2
- package/backend/dist/index.js.map +1 -1
- package/backend/dist/routes/artifacts.d.ts +3 -0
- package/backend/dist/routes/artifacts.d.ts.map +1 -0
- package/backend/dist/routes/artifacts.js +167 -0
- package/backend/dist/routes/artifacts.js.map +1 -0
- package/backend/dist/routes/ollama.d.ts.map +1 -1
- package/backend/dist/routes/ollama.js +25 -0
- package/backend/dist/routes/ollama.js.map +1 -1
- package/backend/dist/routes/preferences.d.ts.map +1 -1
- package/backend/dist/routes/preferences.js +44 -0
- package/backend/dist/routes/preferences.js.map +1 -1
- package/backend/dist/services/chatGenerationService.d.ts +11 -0
- package/backend/dist/services/chatGenerationService.d.ts.map +1 -1
- package/backend/dist/services/chatGenerationService.js +20 -1
- package/backend/dist/services/chatGenerationService.js.map +1 -1
- package/backend/dist/services/ollamaService.d.ts +9 -0
- package/backend/dist/services/ollamaService.d.ts.map +1 -1
- package/backend/dist/services/ollamaService.js +27 -0
- package/backend/dist/services/ollamaService.js.map +1 -1
- package/backend/dist/services/preferencesService.d.ts +7 -0
- package/backend/dist/services/preferencesService.d.ts.map +1 -1
- package/backend/dist/services/preferencesService.js +22 -0
- package/backend/dist/services/preferencesService.js.map +1 -1
- package/backend/dist/types/index.d.ts +5 -0
- package/backend/dist/types/index.d.ts.map +1 -1
- package/backend/dist/types/index.js.map +1 -1
- package/backend/dist/utils/ollamaModelDefaults.d.ts +39 -0
- package/backend/dist/utils/ollamaModelDefaults.d.ts.map +1 -0
- package/backend/dist/utils/ollamaModelDefaults.js +157 -0
- package/backend/dist/utils/ollamaModelDefaults.js.map +1 -0
- package/backend/package.json +1 -1
- package/frontend/dist/apple-touch-icon.png +0 -0
- package/frontend/dist/artifact-runtime/.build-fingerprint +1 -0
- package/frontend/dist/artifact-runtime/babel.js +613 -0
- package/frontend/dist/artifact-runtime/chart.js +3 -0
- package/frontend/dist/artifact-runtime/d3.js +5 -0
- package/frontend/dist/artifact-runtime/fonts.js +255 -0
- package/frontend/dist/artifact-runtime/framer-motion.js +10 -0
- package/frontend/dist/artifact-runtime/lodash.js +20 -0
- package/frontend/dist/artifact-runtime/lucide-react.js +1 -0
- package/frontend/dist/artifact-runtime/mathjs.js +54 -0
- package/frontend/dist/artifact-runtime/mermaid.js +3535 -0
- package/frontend/dist/artifact-runtime/papaparse.js +10 -0
- package/frontend/dist/artifact-runtime/plotly.js +3790 -0
- package/frontend/dist/artifact-runtime/react.js +9 -0
- package/frontend/dist/artifact-runtime/recharts.js +69 -0
- package/frontend/dist/artifact-runtime/runtime.js +1 -0
- package/frontend/dist/artifact-runtime/tailwind.js +952 -0
- package/frontend/dist/artifact-runtime/three.js +5271 -0
- package/frontend/dist/artifact-runtime/tone.js +210 -0
- package/frontend/dist/assets/index-DrcHGnwk.js +64 -0
- package/frontend/dist/assets/index-DtkGuqvC.css +1 -0
- package/frontend/dist/favicon-dark.png +0 -0
- package/frontend/dist/favicon-light.png +0 -0
- package/frontend/dist/favicon.svg +1 -0
- package/frontend/dist/fonts/inter.css +254 -0
- package/frontend/dist/fonts/v20-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7W0Q5n-wU.woff2 +0 -0
- package/frontend/dist/fonts/v20-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7W0Q5nw.woff2 +0 -0
- package/frontend/dist/fonts/v20-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7W0Q5n-wU.woff2 +0 -0
- package/frontend/dist/fonts/v20-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7W0Q5n-wU.woff2 +0 -0
- package/frontend/dist/fonts/v20-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7W0Q5n-wU.woff2 +0 -0
- package/frontend/dist/fonts/v20-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7W0Q5n-wU.woff2 +0 -0
- package/frontend/dist/fonts/v20-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7W0Q5n-wU.woff2 +0 -0
- package/frontend/dist/icon-192.png +0 -0
- package/frontend/dist/icon-512.png +0 -0
- package/frontend/dist/index.html +16 -11
- package/frontend/dist/js/ArtifactContainer-CEBbQqtg.js +1 -0
- package/frontend/dist/js/{ArtifactDemoPage-BlVBMy6a.js → ArtifactDemoPage-BDTtUPjk.js} +58 -2
- package/frontend/dist/js/ArtifactSandboxFrame-DOQWmEAm.js +151 -0
- package/frontend/dist/js/ArtifactSlideOutPanel-BMhWWM3P.js +1 -0
- package/frontend/dist/js/ChatPage-B64xgIPZ.js +16 -0
- package/frontend/dist/js/FirstTimeSetup-1IqkWCsV.js +1 -0
- package/frontend/dist/js/{GalleryPage-BnaFZERr.js → GalleryPage-CKgQAYmH.js} +1 -1
- package/frontend/dist/js/{HomePage-BvpoUzGG.js → HomePage-aNO615Go.js} +1 -1
- package/frontend/dist/js/{LibreClawPage-B-6rO5Jl.js → LibreClawPage-DZqgIOgT.js} +1 -1
- package/frontend/dist/js/ModelSelector-DhmVTh2d.js +1 -0
- package/frontend/dist/js/{ModelsPage-D5H70fs3.js → ModelsPage-tzXaut3l.js} +1 -1
- package/frontend/dist/js/{NotesPage-D9b3JxCx.js → NotesPage-Ciwrazz9.js} +1 -1
- package/frontend/dist/js/{PersonasPage-CJOGnyQV.js → PersonasPage-C9Pkl4yH.js} +2 -2
- package/frontend/dist/js/{PluginUsagePage-DHNMWquK.js → PluginUsagePage-DPfyos1y.js} +1 -1
- package/frontend/dist/js/{RichMessageContent-C7NG7gs-.js → RichMessageContent-CUcmvdXW.js} +1 -1
- package/frontend/dist/js/SettingsModal-DhrjNMcd.js +1 -0
- package/frontend/dist/js/{SystemPage-BsPen2Qb.js → SystemPage-CkUsJ-UR.js} +1 -1
- package/frontend/dist/js/{UserManagementPage-I9i5r0V3.js → UserManagementPage-DClRsCeA.js} +1 -1
- package/frontend/dist/js/WorkPage-cJEe9LZ_.js +5 -0
- package/frontend/dist/js/api-iDBo7I0x.js +19 -0
- package/frontend/dist/js/{appStore-CLIS0fvz.js → appStore-BAFz_6aP.js} +2 -2
- package/frontend/dist/js/{ar-B_uYj5Gv.js → ar-D3PgKaYD.js} +1 -1
- package/frontend/dist/js/{authStore-CsCkBmaG.js → authStore-2665PsVB.js} +2 -2
- package/frontend/dist/js/{bn-Pd4HHYsG.js → bn-DJiNo5j1.js} +1 -1
- package/frontend/dist/js/chatStore-fX9gMb9B.js +2 -0
- package/frontend/dist/js/config-CmH3hRFc.js +1 -0
- package/frontend/dist/js/{cs-CgVXogHE.js → cs-BJ7pToPB.js} +1 -1
- package/frontend/dist/js/{da-DTUIrClO.js → da-Cqw35YeI.js} +1 -1
- package/frontend/dist/js/{de-CKITtmnY.js → de-DLw7O2DX.js} +1 -1
- package/frontend/dist/js/{es-DKDhsL9J.js → es-CLg6Zl_p.js} +1 -1
- package/frontend/dist/js/{estree-CrfVSazx.js → estree-63s2XfPj.js} +1 -1
- package/frontend/dist/js/{fr-CUvNp0pc.js → fr-BUmG4BWs.js} +1 -1
- package/frontend/dist/js/{hi-Bwdmc__g.js → hi-CGktbsaL.js} +1 -1
- package/frontend/dist/js/{html-BbJLJMaV.js → html-CRbptZf3.js} +1 -1
- package/frontend/dist/js/{i18n-ZJQSoIuM.js → i18n-DFbHZ75-.js} +2 -2
- package/frontend/dist/js/{id-CWTPw3NJ.js → id-C7FnPtw9.js} +1 -1
- package/frontend/dist/js/{is-4dV6F4Bo.js → is-_FSS24Pj.js} +1 -1
- package/frontend/dist/js/{it-8uw2-j2s.js → it-DWTgF8my.js} +1 -1
- package/frontend/dist/js/{ja-Bl7gd3kp.js → ja-jYrlZiIs.js} +1 -1
- package/frontend/dist/js/{ko-C_CYwJnL.js → ko-3PZ87sc7.js} +1 -1
- package/frontend/dist/js/{markdown-DiMg1QLf.js → markdown-C23cybKA.js} +1 -1
- package/frontend/dist/js/{messageCodeStyles-CfzjQF-R.js → messageCodeStyles-BJVb4sK7.js} +1 -1
- package/frontend/dist/js/{ms-Dznw3AkA.js → ms-BfySq07T.js} +1 -1
- package/frontend/dist/js/{nl-fW-4lPWK.js → nl-DupdNsDK.js} +1 -1
- package/frontend/dist/js/{pl-CanprK04.js → pl-DYoPcTNe.js} +1 -1
- package/frontend/dist/js/{pt-JhTaVvKa.js → pt-p_-S_r1k.js} +1 -1
- package/frontend/dist/js/{ru-uPtHQATq.js → ru-CuJFlVPc.js} +1 -1
- package/frontend/dist/js/{standalone-Vs6LnjM6.js → standalone-BwzoPJoZ.js} +1 -1
- package/frontend/dist/js/{sv-yr6iqxR-.js → sv-DyZJcYOQ.js} +1 -1
- package/frontend/dist/js/{th-Bx4U5yKy.js → th-Cd6fTxUn.js} +1 -1
- package/frontend/dist/js/{tr-C7tCwYuZ.js → tr-BB1gefYF.js} +1 -1
- package/frontend/dist/js/{typescript-BhVG1zGU.js → typescript-CS-sPC9m.js} +1 -1
- package/frontend/dist/js/{ui-Dj9IFugT.js → ui-B-C2BCTb.js} +2 -2
- package/frontend/dist/js/{uk-C4SbiAUn.js → uk-DFURilqa.js} +1 -1
- package/frontend/dist/js/{vi-C3-TmuzC.js → vi-BXclLwGp.js} +1 -1
- package/frontend/dist/js/{zh-CRfqIC_I.js → zh-BS8f68w1.js} +1 -1
- package/frontend/dist/logo-dark.png +0 -0
- package/frontend/dist/logo-dark.svg +1 -0
- package/frontend/dist/logo-light.png +0 -0
- package/frontend/dist/logo-light.svg +1 -0
- package/frontend/dist/logo.svg +1 -6
- package/frontend/dist/maskable-512.png +0 -0
- package/package.json +3 -3
- package/frontend/dist/assets/index-B9H3vQ-n.css +0 -1
- package/frontend/dist/assets/index-D4LhtFTX.js +0 -38
- package/frontend/dist/js/ArtifactContainer-DvuGeXXu.js +0 -1
- package/frontend/dist/js/ArtifactSlideOutPanel-CaPMk1Qj.js +0 -1
- package/frontend/dist/js/ChatPage-D4UBhGLk.js +0 -16
- package/frontend/dist/js/FirstTimeSetup-DJiDNTXY.js +0 -1
- package/frontend/dist/js/ModelSelector-BV1kuaVg.js +0 -1
- package/frontend/dist/js/SettingsModal-DEBxDPne.js +0 -1
- package/frontend/dist/js/WorkPage-e30yqvJe.js +0 -5
- package/frontend/dist/js/api-jwjnjqx6.js +0 -19
- package/frontend/dist/js/artifactHtml-C0Hu9I1u.js +0 -41
- package/frontend/dist/js/chatStore-DRY8C0J1.js +0 -2
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
(function(){var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,i=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},a=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r},o=(i,a,o,s)=>{if(a&&typeof a==`object`||typeof a==`function`)for(var c=n(a),l=0,u=c.length,d;l<u;l++)d=c[l],!r.call(i,d)&&d!==o&&e(i,d,{get:(e=>a[e]).bind(null,d),enumerable:!(s=t(a,d))||s.enumerable});return i},s=t=>r.call(t,`module.exports`)?t[`module.exports`]:o(e({},`__esModule`,{value:!0}),t),c=window.__libreArtifactRuntime.modules[`react/jsx-runtime`];c.default;var{Fragment:l,jsx:u,jsxs:d}=c,f=window.__libreArtifactRuntime.modules.react;f.default;var{Activity:p,Children:m,Component:h,Fragment:g,Profiler:_,PureComponent:v,StrictMode:y,Suspense:b,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:x,__COMPILER_RUNTIME:S,act:C,cache:w,cacheSignal:ee,captureOwnerStack:te,cloneElement:ne,createContext:re,createElement:ie,createRef:ae,forwardRef:oe,isValidElement:se,lazy:ce,memo:le,startTransition:ue,unstable_useCacheRefresh:de,use:fe,useActionState:pe,useCallback:me,useContext:T,useDebugValue:he,useDeferredValue:ge,useEffect:E,useEffectEvent:_e,useId:ve,useImperativeHandle:ye,useInsertionEffect:be,useLayoutEffect:xe,useMemo:Se,useOptimistic:Ce,useReducer:we,useRef:D,useState:Te,useSyncExternalStore:Ee,useTransition:De,version:Oe}=f,ke=re({});function O(e){let t=D(null);return t.current===null&&(t.current=e()),t.current}var Ae=typeof window<`u`,je=Ae?xe:E,Me=re(null);function Ne(e,t){e.indexOf(t)===-1&&e.push(t)}function Pe(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Fe([...e],t,n){let r=t<0?e.length+t:t;if(r>=0&&r<e.length){let r=n<0?e.length+n:n,[i]=e.splice(t,1);e.splice(r,0,i)}return e}var k=(e,t,n)=>n>t?t:n<e?e:n;function Ie(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}var Le=()=>{},Re=()=>{},A={},ze=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Be=e=>typeof e==`object`&&!!e,Ve=e=>/^0[^.\s]+$/u.test(e);function He(e){let t;return()=>(t===void 0&&(t=e()),t)}var j=e=>e,Ue=(...e)=>e.reduce((e,t)=>n=>t(e(n))),We=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},Ge=class{constructor(){this.subscriptions=[]}add(e){return Ne(this.subscriptions,e),()=>Pe(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},M=e=>e*1e3,N=e=>e/1e3,Ke=(e,t)=>t?1e3/t*e:0,qe=new Set;function Je(e){return qe.has(e)}function Ye(e,t,n){e||qe.has(t)||(console.warn(Ie(t,n)),qe.add(t))}var Xe=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},Ze=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Qe=1e-7,$e=12;function et(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Ze(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Qe&&++s<$e);return o}function tt(e,t,n,r){if(e===t&&n===r)return j;let i=t=>et(t,0,1,e,n);return e=>e===0||e===1?e:Ze(i(e),t,r)}var nt=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,rt=e=>t=>1-e(1-t),it=tt(.33,1.53,.69,.99),at=rt(it),ot=nt(at),st=e=>e>=1?1:(e*=2)<1?.5*at(e):.5*(2-2**(-10*(e-1))),ct=e=>1-Math.sin(Math.acos(e)),lt=rt(ct),ut=nt(ct),dt=tt(.42,0,1,1),ft=tt(0,0,.58,1),pt=tt(.42,0,.58,1);function mt(e,t=`end`){return n=>{n=t===`end`?Math.min(n,.999):Math.max(n,.001);let r=n*e;return k(0,1,(t===`end`?Math.floor(r):Math.ceil(r))/e)}}var ht=e=>Array.isArray(e)&&typeof e[0]!=`number`;function gt(e,t){return ht(e)?e[Xe(0,e.length,t)]:e}var _t=e=>Array.isArray(e)&&typeof e[0]==`number`,vt={linear:j,easeIn:dt,easeInOut:pt,easeOut:ft,circIn:ct,circInOut:ut,circOut:lt,backIn:at,backInOut:ot,backOut:it,anticipate:st},yt=e=>typeof e==`string`,bt=e=>{if(_t(e)){e.length;let[t,n,r,i]=e;return tt(t,n,r,i)}return yt(e)?(vt[e],`${e}`,vt[e]):e},xt=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function St(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var Ct=40;function wt(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=xt.reduce((e,t)=>(e[t]=St(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=A.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,Ct),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:xt.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<xt.length;t++)o[xt[t]].cancel(e)},state:i,steps:o}}var{schedule:P,cancel:F,state:I,steps:Tt}=wt(typeof requestAnimationFrame<`u`?requestAnimationFrame:j,!0),Et;function Dt(){Et=void 0}var L={now:()=>(Et===void 0&&L.set(I.isProcessing||A.useManualTiming?I.timestamp:performance.now()),Et),set:e=>{Et=e,queueMicrotask(Dt)}},Ot=e=>t=>typeof t==`string`&&t.startsWith(e),kt=Ot(`--`),At=Ot(`var(--`),jt=e=>At(e)?Mt.test(e.split(`/*`)[0].trim()):!1,Mt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Nt(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var Pt={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Ft={...Pt,transform:e=>k(0,1,e)},It={...Pt,default:1},Lt=e=>Math.round(e*1e5)/1e5,Rt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function zt(e){return e==null}var Bt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Vt=(e,t)=>n=>!!(typeof n==`string`&&Bt.test(n)&&n.startsWith(e)||t&&!zt(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ht=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Rt);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Ut=e=>k(0,255,e),Wt={...Pt,transform:e=>Math.round(Ut(e))},Gt={test:Vt(`rgb`,`red`),parse:Ht(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Wt.transform(e)+`, `+Wt.transform(t)+`, `+Wt.transform(n)+`, `+Lt(Ft.transform(r))+`)`};function Kt(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var qt={test:Vt(`#`),parse:Kt,transform:Gt.transform},Jt=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Yt=Jt(`deg`),R=Jt(`%`),z=Jt(`px`),Xt=Jt(`vh`),Zt=Jt(`vw`),Qt={...R,parse:e=>R.parse(e)/100,transform:e=>R.transform(e*100)},$t={test:Vt(`hsl`,`hue`),parse:Ht(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+R.transform(Lt(t))+`, `+R.transform(Lt(n))+`, `+Lt(Ft.transform(r))+`)`},B={test:e=>Gt.test(e)||qt.test(e)||$t.test(e),parse:e=>Gt.test(e)?Gt.parse(e):$t.test(e)?$t.parse(e):qt.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Gt.transform(e):$t.transform(e),getAnimatableNone:e=>{let t=B.parse(e);return t.alpha=0,B.transform(t)}},en=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function tn(e){return isNaN(e)&&typeof e==`string`&&(e.match(Rt)?.length||0)+(e.match(en)?.length||0)>0}var nn=`number`,rn=`color`,an=`var`,on=`var(`,sn="${}",cn=/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 ln(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(cn,e=>(B.test(e)?(r.color.push(a),i.push(rn),n.push(B.parse(e))):e.startsWith(on)?(r.var.push(a),i.push(an),n.push(e)):(r.number.push(a),i.push(nn),n.push(parseFloat(e))),++a,sn)).split(sn),indexes:r,types:i}}function un(e){return ln(e).values}function dn({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===nn?Lt(r[a]):e===rn?B.transform(r[a]):r[a]}return i}}function fn(e){return dn(ln(e))}var pn=e=>typeof e==`number`?0:B.test(e)?B.getAnimatableNone(e):e,mn=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:pn(e);function hn(e){let t=ln(e);return dn(t)(t.values.map((e,n)=>mn(e,t.split[n])))}var V={test:tn,parse:un,createTransformer:fn,getAnimatableNone:hn};function gn(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function _n({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=gn(s,r,e+1/3),a=gn(s,r,e),o=gn(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function vn(e,t){return n=>n>0?t:e}var H=(e,t,n)=>e+(t-e)*n,yn=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},bn=[qt,Gt,$t],xn=e=>bn.find(t=>t.test(e));function Sn(e){let t=xn(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===$t&&(n=_n(n)),n}var Cn=(e,t)=>{let n=Sn(e),r=Sn(t);if(!n||!r)return vn(e,t);let i={...n};return e=>(i.red=yn(n.red,r.red,e),i.green=yn(n.green,r.green,e),i.blue=yn(n.blue,r.blue,e),i.alpha=H(n.alpha,r.alpha,e),Gt.transform(i))},wn=new Set([`none`,`hidden`]);function Tn(e,t){return wn.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function En(e,t){return n=>H(e,t,n)}function Dn(e){return typeof e==`number`?En:typeof e==`string`?jt(e)?vn:B.test(e)?Cn:jn:Array.isArray(e)?On:typeof e==`object`?B.test(e)?Cn:kn:vn}function On(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Dn(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function kn(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Dn(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function An(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var jn=(e,t)=>{let n=V.createTransformer(t),r=ln(e),i=ln(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?wn.has(e)&&!i.values.length||wn.has(t)&&!r.values.length?Tn(e,t):Ue(On(An(r,i),i.values),n):(`${e}${t}`,vn(e,t))};function Mn(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?H(e,t,n):Dn(e)(e,t)}var Nn=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>P.update(t,e),stop:()=>F(t),now:()=>I.isProcessing?I.timestamp:L.now()}},Pn=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Fn=2e4;function In(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function Ln(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(In(r),Fn);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:N(i)}}var U={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 Rn(e,t){return e*Math.sqrt(1-t*t)}var zn=12;function Bn(e,t,n){let r=n;for(let n=1;n<zn;n++)r-=e(r)/t(r);return r}var Vn=.001;function Hn({duration:e=U.duration,bounce:t=U.bounce,velocity:n=U.velocity,mass:r=U.mass}){let i,a;U.maxDuration;let o=1-t;o=k(U.minDamping,U.maxDamping,o),e=k(U.minDuration,U.maxDuration,N(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=Rn(t,o),c=Math.exp(-i);return Vn-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=Rn(t**2,o);return(-i(t)+Vn>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=Bn(i,a,s);if(e=M(e),isNaN(c))return{stiffness:U.stiffness,damping:U.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Un=[`duration`,`bounce`],Wn=[`stiffness`,`damping`,`mass`];function Gn(e,t){return t.some(t=>e[t]!==void 0)}function Kn(e){let t={velocity:U.velocity,stiffness:U.stiffness,damping:U.damping,mass:U.mass,isResolvedFromDuration:!1,...e};if(!Gn(e,Wn)&&Gn(e,Un))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*k(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:U.mass,stiffness:i,damping:a}}else{let n=Hn({...e,velocity:0});t={...t,...n,mass:U.mass},t.isResolvedFromDuration=!0}return t}function qn(e=U.visualDuration,t=U.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Kn({...n,velocity:-N(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=N(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?U.restSpeed.granular:U.restSpeed.default,i||=v?U.restDelta.granular:U.restDelta.default;let y,b,x,S,C,w;if(h<1)x=Rn(_,h),S=(m+h*_*g)/x,y=e=>{let t=Math.exp(-h*_*e);return o-t*(S*Math.sin(x*e)+g*Math.cos(x*e))},C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let ee={calculatedDuration:p&&d||null,velocity:e=>M(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=M(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=M(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(In(ee),Fn),t=Pn(t=>ee.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return ee}qn.applyToOptions=e=>{let t=Ln(e,100,qn);return e.ease=t.ease,e.duration=M(t.duration),e.type=`keyframes`,e};var Jn=5;function Yn(e,t,n){let r=Math.max(t-Jn,0);return Ke(n-e(r),t-r)}function Xn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=qn({keyframes:[f.value,m(f.value)],velocity:Yn(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function Zn(e,t,n){let r=[],i=n||A.mix||Mn,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=Ue(Array.isArray(t)?t[n]||j:t,a)),r.push(a)}return r}function Qn(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=Zn(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=We(e[r],e[r+1],n);return s[r](i)};return n?t=>l(k(e[0],e[a-1],t)):l}function $n(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=We(0,t,r);e.push(H(n,1,i))}}function er(e){let t=[0];return $n(t,e.length-1),t}function tr(e,t){return e.map(e=>e*t)}function nr(e,t){return e.map(()=>t||pt).splice(0,e.length-1)}function rr({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=ht(r)?r.map(bt):bt(r),a={done:!1,value:t[0]},o=Qn(tr(n&&n.length===t.length?n:er(t),e),t,{ease:Array.isArray(i)?i:nr(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var ir=e=>e!==null;function ar(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(ir),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var or={decay:Xn,inertia:Xn,tween:rr,keyframes:rr,spring:qn};function sr(e){typeof e.type==`string`&&(e.type=or[e.type])}var cr=class{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)}},lr=e=>e/100,ur=class extends cr{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==L.now()&&this.tick(L.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;sr(e);let{type:t=rr,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||rr;s!==rr&&typeof o[0]!=`number`&&(this.mixKeyframes=Ue(lr,Mn(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=In(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=k(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==Xn&&(b.value=ar(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return N(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+N(e)}get time(){return N(this.currentTime)}set time(e){e=M(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return Yn(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(L.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=N(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Nn,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(L.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),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)}};function dr(e){return new ur(e)}function fr(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var pr=e=>e*180/Math.PI,mr=e=>gr(pr(Math.atan2(e[1],e[0]))),hr={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:mr,rotateZ:mr,skewX:e=>pr(Math.atan(e[1])),skewY:e=>pr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},gr=e=>(e%=360,e<0&&(e+=360),e),_r=mr,vr=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),yr=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),br={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:vr,scaleY:yr,scale:e=>(vr(e)+yr(e))/2,rotateX:e=>gr(pr(Math.atan2(e[6],e[5]))),rotateY:e=>gr(pr(Math.atan2(-e[2],e[0]))),rotateZ:_r,rotate:_r,skewX:e=>pr(Math.atan(e[4])),skewY:e=>pr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function xr(e){return+!!e.includes(`scale`)}function Sr(e,t){if(!e||e===`none`)return xr(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=br,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=hr,i=t}if(!i)return xr(t);let a=r[t],o=i[1].split(`,`).map(wr);return typeof a==`function`?a(o):o[a]}var Cr=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Sr(n,t)};function wr(e){return parseFloat(e.trim())}var Tr=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],Er=new Set([...Tr,`pathRotation`]),Dr=e=>e===Pt||e===z,Or=new Set([`x`,`y`,`z`]),kr=Tr.filter(e=>!Or.has(e));function Ar(e){let t=[];return kr.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var jr={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},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})=>Sr(t,`x`),y:(e,{transform:t})=>Sr(t,`y`)};jr.translateX=jr.x,jr.translateY=jr.y;var Mr=new Set,Nr=!1,Pr=!1,Fr=!1;function Ir(){if(Pr){let e=Array.from(Mr).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Ar(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}Pr=!1,Nr=!1,Mr.forEach(e=>e.complete(Fr)),Mr.clear()}function Lr(){Mr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Pr=!0)})}function Rr(){Fr=!0,Lr(),Ir(),Fr=!1}var zr=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(Mr.add(this),Nr||(Nr=!0,P.read(Lr),P.resolveKeyframes(Ir))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}fr(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Mr.delete(this)}cancel(){this.state===`scheduled`&&(Mr.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Br=e=>e.startsWith(`--`);function Vr(e,t,n){Br(t)?e.style.setProperty(t,n):e.style[t]=n}var Hr={};function Ur(e,t){let n=He(e);return()=>Hr[t]??n()}var Wr=Ur(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Gr=Ur(()=>window.ViewTimeline!==void 0,`viewTimeline`),Kr=Ur(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),qr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Jr={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:qr([0,.65,.55,1]),circOut:qr([.55,0,1,.45]),backIn:qr([.31,.01,.66,-.59]),backOut:qr([.33,1.53,.69,.99])};function Yr(e,t){if(e)return typeof e==`function`?Kr()?Pn(e,t):`ease-out`:_t(e)?qr(e):Array.isArray(e)?e.map(e=>Yr(e,t)||Jr.easeOut):Jr[e]}function Xr(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Yr(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function Zr(e){return typeof e==`function`&&`applyToOptions`in e}function Qr({type:e,...t}){return Zr(e)&&Kr()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var $r=class extends cr{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=Qr(e);this.animation=Xr(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=ar(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Vr(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return N(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+N(e)}get time(){return N(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=M(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Wr()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),j):r(this)}},ei={anticipate:st,backInOut:ot,circInOut:ut};function ti(e){return e in ei}function ni(e){typeof e.ease==`string`&&ti(e.ease)&&(e.ease=ei[e.ease])}var ri=10,ii=class extends $r{constructor(e){ni(e),sr(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new ur({...a,autoplay:!1}),s=Math.max(ri,L.now()-this.startTime),c=k(0,ri,s-ri),l=o.sample(s).value,{name:u}=this.options;i&&u&&Vr(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},ai=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(V.test(e)||e===`0`)&&!e.startsWith(`url(`));function oi(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function si(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=ai(i,t),s=ai(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:oi(e)||(n===`spring`||Zr(n))&&r}function ci(e){e.duration=0,e.type=`keyframes`}var li=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),ui=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function di(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&ui.test(e[t]))return!0;return!1}var fi=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),pi=He(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function mi(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e,c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return pi()&&n&&(li.has(n)||fi.has(n)&&di(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var hi=40,gi=class extends cr{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=L.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||zr;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=L.now();let u=!0;si(e,i,a,o)||(u=!1,(A.instantAnimations||!s)&&l?.(ar(e,n,t)),e[0]=e[e.length-1],ci(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>hi?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&mi(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new ii({...d,element:p})}catch{m=new ur(d)}else m=new ur(d);m.finished.then(()=>{this.notifyFinished()}).catch(j),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}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(),Rr()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}},_i=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return vi(this.animations,`duration`)}get iterationDuration(){return vi(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}};function vi(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var yi=class extends _i{then(e,t){return this.finished.finally(e).then(()=>{})}},bi=class extends $r{constructor(e){super(),this.animation=e,e.onfinish=()=>{this.finishedTime=this.time,this.notifyFinished()}}},xi=new WeakMap,Si=(e,t=``)=>`${e}:${t}`;function Ci(e){let t=xi.get(e);return t||(t=new Map,xi.set(e,t)),t}function wi(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Ti=30,Ei=e=>!isNaN(parseFloat(e)),Di={current:void 0},Oi=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=L.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=L.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Ei(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 Ge);let n=this.events[e].add(t);return e===`change`?()=>{n(),P.read(()=>{this.events.change.getSize()||this.stop()})}:n}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,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}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||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Di.current&&Di.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=L.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Ti)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Ti);return Ke(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function W(e,t){return new Oi(e,t)}function ki(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Ai(e,t){let n=e?.[t]??e?.default??e;return n===e?n:ki(n,e)}var ji={type:`spring`,stiffness:500,damping:25,restSpeed:10},Mi=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ni={type:`keyframes`,duration:.8},Pi={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Fi=(e,{keyframes:t})=>t.length>2?Ni:Er.has(e)?e.startsWith(`scale`)?Mi(t[1]):ji:Pi,Ii=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Li(e){for(let t in e)if(!Ii.has(t))return!0;return!1}var Ri=(e,t,n,r={},i,a)=>o=>{let s=Ai(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=M(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};Li(s)||Object.assign(u,Fi(e,u)),u.duration&&=M(u.duration),u.repeatDelay&&=M(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(ci(u),u.delay===0&&(d=!0)),(A.instantAnimations||A.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,ci(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=ar(u.keyframes,s);if(e!==void 0){P.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new ur(u):new gi(u)},zi=20;function Bi(e,t,n,r){let i=1-e;return i*i*t+2*i*e*n+e*e*r}function Vi(e,t,n,r,i,a,o){let s=2*(1-e)*(n-t)+2*e*(r-n),c=2*(1-e)*(a-i)+2*e*(o-a);return 180/Math.PI*Math.atan2(c,s)}function Hi(e,t,n,r,i,a){let o=n-e,s=r-t,c=Math.sqrt(o*o+s*s);if(c>0){let n=-s/c,r=o/c,l=i*c;return{x:e+o*a+n*l,y:t+s*a+r*l}}return{x:e,y:t}}function Ui({strength:e=.5,peak:t=.5,direction:n,rotate:r=!1}={}){let i=r===!0?1:typeof r==`number`?r:0,a;return(r,o)=>{let s=o.x-r.x,c=o.y-r.y,l;l=n===`cw`?-e:n===`ccw`?e:(Math.abs(s)>=Math.abs(c)?s:c)<0?-e:e;let u=Hi(r.x,r.y,o.x,o.y,l,t);if(n===void 0){let e=Math.abs(s)<Math.abs(c),n=r.x+s*t,i=r.y+c*t,d=Math.sign(e?u.x-n:u.y-i);a!==void 0&&d!==0&&d!==a?(l=-l,u=Hi(r.x,r.y,o.x,o.y,l,t)):d!==0&&(a=d)}let d=i?Vi(0,r.x,u.x,o.x,r.y,u.y,o.y):0,f=i?Vi(1,r.x,u.x,o.x,r.y,u.y,o.y):0,p=i?Xe(-180,180,f-d):0;return e=>{let t={x:Bi(e,r.x,u.x,o.x),y:Bi(e,r.y,u.y,o.y)};return i&&(t.rotate=Xe(-180,180,Vi(e,r.x,u.x,o.x,r.y,u.y,o.y)-(d+p*e))*i),t}}}function Wi(e={}){let t=Ui(e);return{interpolateProjection(e){let n=e.x.translate,r=e.y.translate;if(!(Math.sqrt(n*n+r*r)<zi))return t({x:n,y:r},{x:0,y:0})},animateVisualElement(e,n,r,i,a){if(!(`x`in n||`y`in n))return;let o=e.getValue(`x`,e.latestValues.x??0),s=e.getValue(`y`,e.latestValues.y??0),c=n.x,l=n.y,u=(Array.isArray(c)&&c[0]!=null?c[0]:o?.get())??0,d=(Array.isArray(l)&&l[0]!=null?l[0]:s?.get())??0,f=Array.isArray(c)?c[c.length-1]:c??u,p=Array.isArray(l)?l[l.length-1]:l??d,m=t({x:u,y:d},{x:f,y:p}),h=m(0).rotate===void 0?void 0:e.getValue(`pathRotation`,0),g={delay:i,...Ai(r||{},`x`)};delete g.path;let _=W(0);_.start(Ri(``,_,[0,1e3],{...g,isSync:!0,velocity:0,onUpdate:e=>{let t=m(e/1e3);o?.set(t.x),s?.set(t.y),h&&t.rotate!==void 0&&h.set(t.rotate)},onComplete:()=>{o?.set(f),s?.set(p),h?.set(0)},onStop:()=>h?.set(0),onCancel:()=>h?.set(0)})),_.animation&&a.push(_.animation),delete n.x,delete n.y}}}var Gi=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ki(e){let t=Gi.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function qi(e,t,n=1){`${e}`;let[r,i]=Ki(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return ze(e)?parseFloat(e):e}return jt(i)?qi(i,t,n+1):i}function Ji(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Yi(e,t,n,r){if(typeof t==`function`){let[i,a]=Ji(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=Ji(r);t=t(n===void 0?e.custom:n,i,a)}return t}function Xi(e,t,n){let r=e.getProps();return Yi(r,t,n===void 0?r.custom:n,e)}var Zi=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Tr]),Qi=e=>Array.isArray(e);function $i(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,W(n))}function ea(e){return Qi(e)?e[e.length-1]||0:e}function ta(e,t){let{transitionEnd:n={},transition:r={},...i}=Xi(e,t)||{};i={...i,...n};for(let t in i)$i(e,t,ea(i[t]))}var G=e=>!!(e&&e.getVelocity);function na(e){return!!(G(e)&&e.add)}function ra(e,t){let n=e.getValue(`willChange`);if(na(n))return n.add(t);if(!n&&A.WillChange){let n=new A.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function ia(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var aa=`framerAppearId`,oa=`data-`+ia(aa);function sa(e){return e.props[oa]}function ca({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function la(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?ki(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&ca(f,t))continue;let o={delay:n,...Ai(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){P.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=sa(e);if(n){let e=window.MotionHandoffAnimation(n,t,P);e!==null&&(o.startTime=e,p=!0)}}ra(e,t);let m=l??e.shouldReduceMotion;r.start(Ri(t,r,i,m&&Zi.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>P.update(()=>{o&&ta(e,o)});d.length?Promise.all(d).then(t):t()}return d}function ua(e,t,n={}){let r=Xi(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(la(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return da(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}return Promise.all([a(),o(n.delay)])}function da(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(ua(c,t,{...o,delay:n+(typeof r==`function`?0:r)+wi(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function fa(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>ua(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=ua(e,t,n);else{let i=typeof t==`function`?Xi(e,t,n.custom):t;r=Promise.all(la(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var pa={test:e=>e===`auto`,parse:e=>e},ma=e=>t=>t.test(e),ha=[Pt,z,R,Yt,Zt,Xt,pa],ga=e=>ha.find(ma(e));function _a(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||Ve(e)}var va=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function ya(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Rt)||[];if(!r)return e;let i=n.replace(r,``),a=+!!va.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var ba=/\b([a-z-]*)\(.*?\)/gu,xa={...V,getAnimatableNone:e=>{let t=e.match(ba);return t?t.map(ya).join(` `):e}},Sa={...V,getAnimatableNone:e=>{let t=V.parse(e);return V.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Ca={...Pt,transform:Math.round},wa={rotate:Yt,pathRotation:Yt,rotateX:Yt,rotateY:Yt,rotateZ:Yt,scale:It,scaleX:It,scaleY:It,scaleZ:It,skew:Yt,skewX:Yt,skewY:Yt,distance:z,translateX:z,translateY:z,translateZ:z,x:z,y:z,z,perspective:z,transformPerspective:z,opacity:Ft,originX:Qt,originY:Qt,originZ:z},Ta={borderWidth:z,borderTopWidth:z,borderRightWidth:z,borderBottomWidth:z,borderLeftWidth:z,borderRadius:z,borderTopLeftRadius:z,borderTopRightRadius:z,borderBottomRightRadius:z,borderBottomLeftRadius:z,width:z,maxWidth:z,height:z,maxHeight:z,top:z,right:z,bottom:z,left:z,inset:z,insetBlock:z,insetBlockStart:z,insetBlockEnd:z,insetInline:z,insetInlineStart:z,insetInlineEnd:z,padding:z,paddingTop:z,paddingRight:z,paddingBottom:z,paddingLeft:z,paddingBlock:z,paddingBlockStart:z,paddingBlockEnd:z,paddingInline:z,paddingInlineStart:z,paddingInlineEnd:z,margin:z,marginTop:z,marginRight:z,marginBottom:z,marginLeft:z,marginBlock:z,marginBlockStart:z,marginBlockEnd:z,marginInline:z,marginInlineStart:z,marginInlineEnd:z,fontSize:z,backgroundPositionX:z,backgroundPositionY:z,...wa,zIndex:Ca,fillOpacity:Ft,strokeOpacity:Ft,numOctaves:Ca},Ea={...Ta,color:B,backgroundColor:B,outlineColor:B,fill:B,stroke:B,borderColor:B,borderTopColor:B,borderRightColor:B,borderBottomColor:B,borderLeftColor:B,filter:xa,WebkitFilter:xa,mask:Sa,WebkitMask:Sa},Da=e=>Ea[e],Oa=new Set([xa,Sa]);function ka(e,t){let n=Da(e);return Oa.has(n)||(n=V),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var Aa=new Set([`auto`,`none`,`0`]);function ja(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Aa.has(t)&&ln(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=ka(n,i)}var Ma=class extends zr{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),jt(r))){let i=qi(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Zi.has(n)||e.length!==2)return;let[r,i]=e,a=ga(r),o=ga(i);if(Nt(r)!==Nt(i)&&jr[n]){this.needsMeasurement=!0;return}if(a!==o)if(Dr(a)&&Dr(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else jr[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||_a(e[t]))&&n.push(t);n.length&&ja(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=jr[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=jr[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},Na=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`],Pa=new Set([`borderWidth`,`borderTopWidth`,`borderRightWidth`,`borderBottomWidth`,`borderLeftWidth`,`borderRadius`,...Na,`width`,`maxWidth`,`height`,`maxHeight`,`top`,`right`,`bottom`,`left`,`inset`,`insetBlock`,`insetBlockStart`,`insetBlockEnd`,`insetInline`,`insetInlineStart`,`insetInlineEnd`,`padding`,`paddingTop`,`paddingRight`,`paddingBottom`,`paddingLeft`,`paddingBlock`,`paddingBlockStart`,`paddingBlockEnd`,`paddingInline`,`paddingInlineStart`,`paddingInlineEnd`,`margin`,`marginTop`,`marginRight`,`marginBottom`,`marginLeft`,`marginBlock`,`marginBlockStart`,`marginBlockEnd`,`marginInline`,`marginInlineStart`,`marginInlineEnd`,`fontSize`,`backgroundPositionX`,`backgroundPositionY`]);function Fa(e,t){for(let n=0;n<e.length;n++)typeof e[n]==`number`&&Pa.has(t)&&(e[n]=e[n]+`px`)}function Ia(e){return!!(typeof e==`function`&&Kr()||!e||typeof e==`string`&&(e in Jr||Kr())||_t(e)||Array.isArray(e)&&e.every(Ia))}var La=He(()=>{try{document.createElement(`div`).animate({opacity:[1]})}catch{return!1}return!0});function Ra(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}function za(e){return(t,n)=>{let r=Ra(t),i=[];for(let t of r){let r=e(t,n);i.push(r)}return()=>{for(let e of i)e()}}}var Ba=(e,t)=>t&&typeof e==`number`?t.transform(e):e,Va=class{constructor(){this.latest={},this.values=new Map}set(e,t,n,r,i=!0){let a=this.values.get(e);a&&a.onRemove();let o=()=>{let r=t.get();i?this.latest[e]=Ba(r,Ta[e]):this.latest[e]=r,n&&P.render(n)};o();let s=t.on(`change`,o);r&&t.addDependent(r);let c=()=>{s(),n&&F(n),this.values.delete(e),r&&t.removeDependent(r)};return this.values.set(e,{value:t,onRemove:c}),c}get(e){return this.values.get(e)?.value}};function Ha(e){let t=new WeakMap;return(n,r)=>{let i=t.get(n)??new Va;t.set(n,i);let a=[];for(let t in r){let o=r[t],s=e(n,i,t,o);a.push(s)}return()=>{for(let e of a)e()}}}function Ua(e,t){if(!(t in e))return!1;let n=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),t)||Object.getOwnPropertyDescriptor(e,t);return n&&typeof n.set==`function`}var Wa=(e,t,n,r)=>{let i=Ua(e,n),a=i?n:n.startsWith(`data`)||n.startsWith(`aria`)?ia(n):n,o=i?()=>{e[a]=t.latest[n]}:()=>{let r=t.latest[n];r==null?e.removeAttribute(a):e.setAttribute(a,String(r))};return t.set(n,r,o)},Ga=za(Ha(Wa)),Ka=Ha((e,t,n,r)=>t.set(n,r,()=>{e[n]=t.latest[n]},void 0,!1));function qa(e){return Be(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var Ja={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`};function Ya(e){let t=``,n=!0;for(let r=0;r<Tr.length;r++){let i=Tr[r],a=e.latest[i];if(a===void 0)continue;let o=!0;if(typeof a==`number`)o=a===+!!i.startsWith(`scale`);else{let e=parseFloat(a);o=i.startsWith(`scale`)?e===1:e===0}if(!o){n=!1;let e=Ja[i]||i;t+=`${e}(${a}) `}}let r=e.latest.pathRotation;return r&&(n=!1,t+=`rotate(${typeof r==`number`?`${r}deg`:r}) `),n?`none`:t.trim()}var Xa=new Set([`originX`,`originY`,`originZ`]),Za=(e,t,n,r)=>{let i,a;return Er.has(n)?(t.get(`transform`)||(!qa(e)&&!t.get(`transformBox`)&&Za(e,t,`transformBox`,new Oi(`fill-box`)),t.set(`transform`,new Oi(`none`),()=>{e.style.transform=Ya(t)})),a=t.get(`transform`)):Xa.has(n)?(t.get(`transformOrigin`)||t.set(`transformOrigin`,new Oi(``),()=>{let n=t.latest.originX??`50%`,r=t.latest.originY??`50%`,i=t.latest.originZ??0;e.style.transformOrigin=`${n} ${r} ${i}`}),a=t.get(`transformOrigin`)):i=Br(n)?()=>{e.style.setProperty(n,t.latest[n])}:()=>{e.style[n]=t.latest[n]},t.set(n,r,i,a)},Qa=za(Ha(Za));function $a(e,t,n,r){return P.render(()=>e.setAttribute(`pathLength`,`1`)),n===`pathOffset`?t.set(n,r,()=>{let r=t.latest[n];e.setAttribute(`stroke-dashoffset`,`${-r}`)}):(t.get(`stroke-dasharray`)||t.set(`stroke-dasharray`,new Oi(`1 1`),()=>{let{pathLength:n=1,pathSpacing:r}=t.latest;e.setAttribute(`stroke-dasharray`,`${n} ${r??1-Number(n)}`)}),t.set(n,r,void 0,t.get(`stroke-dasharray`)))}var eo=za(Ha((e,t,n,r)=>n.startsWith(`path`)?$a(e,t,n,r):n.startsWith(`attr`)?Wa(e,t,to(n),r):(n in e.style?Za:Wa)(e,t,n,r)));function to(e){return e.replace(/^attr([A-Z])/,(e,t)=>t.toLowerCase())}var{schedule:no,cancel:ro}=wt(queueMicrotask,!1),K={x:!1,y:!1};function io(){return K.x||K.y}function ao(e){return e===`x`||e===`y`?K[e]?null:(K[e]=!0,()=>{K[e]=!1}):K.x||K.y?null:(K.x=K.y=!0,()=>{K.x=K.y=!1})}function oo(e,t){let n=Ra(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function so(e){return!(e.pointerType===`touch`||io())}function co(e,t,n={}){let[r,i,a]=oo(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!so(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var lo=(e,t)=>t?e===t||lo(e,t.parentElement):!1,uo=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,fo=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function po(e){return fo.has(e.tagName)||e.isContentEditable===!0}var mo=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function ho(e){return mo.has(e.tagName)||e.isContentEditable===!0}var go=new WeakSet;function _o(e){return t=>{t.key===`Enter`&&e(t)}}function vo(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var yo=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=_o(()=>{if(go.has(n))return;vo(n,`down`);let e=_o(()=>{vo(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>vo(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function bo(e){return uo(e)&&!io()}var xo=new WeakSet;function So(e,t,n={}){let[r,i,a]=oo(e,n),o=e=>{let r=e.currentTarget;if(!bo(e)||xo.has(e))return;go.add(r),n.stopPropagation&&xo.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),go.has(r)&&go.delete(r),bo(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||lo(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),qa(e)&&(e.addEventListener(`focus`,e=>yo(e,i)),!po(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Co(e,t){let n=window.getComputedStyle(e);return Br(t)?n.getPropertyValue(t):n[t]}function wo(e){return Be(e)&&`ownerSVGElement`in e}var To=new WeakMap,Eo,Do=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:wo(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Oo=Do(`inline`,`width`,`offsetWidth`),ko=Do(`block`,`height`,`offsetHeight`);function Ao({target:e,borderBoxSize:t}){To.get(e)?.forEach(n=>{n(e,{get width(){return Oo(e,t)},get height(){return ko(e,t)}})})}function jo(e){e.forEach(Ao)}function Mo(){typeof ResizeObserver>`u`||(Eo=new ResizeObserver(jo))}function No(e,t){Eo||Mo();let n=Ra(e);return n.forEach(e=>{let n=To.get(e);n||(n=new Set,To.set(e,n)),n.add(t),Eo?.observe(e)}),()=>{n.forEach(e=>{let n=To.get(e);n?.delete(t),n?.size||Eo?.unobserve(e)})}}var Po=new Set,Fo;function Io(){Fo=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Po.forEach(t=>t(e))},window.addEventListener(`resize`,Fo)}function Lo(e){return Po.add(e),Fo||Io(),()=>{Po.delete(e),!Po.size&&typeof Fo==`function`&&(window.removeEventListener(`resize`,Fo),Fo=void 0)}}function Ro(e,t){return typeof e==`function`?Lo(e):No(e,t)}function zo(e,t){let n,r=()=>{let{currentTime:r}=t,i=(r===null?0:r.value)/100;n!==i&&e(i),n=i};return P.preUpdate(r,!0),()=>F(r)}var q={value:null,addProjectionMetrics:null};function Bo(){q.value=null,q.addProjectionMetrics=null}function Vo(){if(q.value)throw Bo(),Error(`Stats are already being measured`);let e=q;e.value={layoutProjection:{nodes:[],calculatedTargetDeltas:[],calculatedProjections:[]}},e.addProjectionMetrics=t=>{let{layoutProjection:n}=e.value;n.nodes.push(t.nodes),n.calculatedTargetDeltas.push(t.calculatedTargetDeltas),n.calculatedProjections.push(t.calculatedProjections)}}function Ho(e){return wo(e)&&e.tagName===`svg`}function Uo(e,t){if(e===`first`)return 0;{let n=t-1;return e===`last`?n:n/2}}function Wo(e=.1,{startDelay:t=0,from:n=0,ease:r}={}){return(i,a)=>{let o=typeof n==`number`?n:Uo(n,a),s=e*Math.abs(o-i);if(r){let t=a*e;s=bt(r)(s/t)*t}return t+s}}function Go(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],s=Qn(i,a,o);return t?s(r):s}function Ko(e,t){let n=W(G(e)?e.get():e);return qo(n,e,t),n}function qo(e,t,n={}){let r=e.get(),i=null,a=r,o,s=typeof r==`string`?r.replace(/[\d.-]/g,``):void 0,c=()=>{i&&=(i.stop(),null),e.animation=void 0},l=()=>{let t=Yo(e.get()),r=Yo(a);if(t===r){c();return}let s=i?i.getGeneratorVelocity():e.getVelocity();c(),i=new ur({keyframes:[t,r],velocity:s,type:`spring`,restDelta:.001,restSpeed:.01,...n,onUpdate:o})},u=()=>{l(),e.animation=i??void 0,e.events.animationStart?.notify(),i?.then(()=>{e.animation=void 0,e.events.animationComplete?.notify()})};if(e.attach((e,t)=>{a=e,o=e=>t(Jo(e,s)),P.postRender(u)},c),G(t)){let r=n.skipInitialAnimation===!0,i=t.on(`change`,t=>{r?(r=!1,e.jump(Jo(t,s),!1)):e.set(Jo(t,s))}),a=e.on(`destroy`,i);return()=>{i(),a()}}return c}function Jo(e,t){return t?e+t:e}function Yo(e){return typeof e==`number`?e:parseFloat(e)}function Xo(e,t,n){let r=()=>t.set(n()),i=()=>P.preRender(r,!1,!0),a=e.map(e=>e.on(`change`,i));t.on(`destroy`,()=>{a.forEach(e=>e()),F(r)})}function Zo(e){let t=[];Di.current=t;let n=e();Di.current=void 0;let r=W(n);return Xo(t,r,e),r}function Qo(e,t,n,r){let i=Go(t,n,r);return Zo(()=>i(e.get()))}function $o(e,t){return Ko(e,{type:`spring`,...t})}function es(e,t,n){return qo(e,t,{type:`spring`,...n})}var ts=[...ha,B,V],ns=e=>ts.find(ma(e)),rs=0,is=()=>`motion-view-${rs++}`,as=e=>e.startsWith(`motion-view-`);function os(e,t,n){t&&(e.style?.setProperty(`view-transition-class`,t),n.push(e))}function ss(e,t,n,r,i){if(n&&(e.style?.setProperty(`view-transition-group`,n),r.push(e),n!==`none`&&i)){let n=getComputedStyle(e);(n.overflowX!==`visible`||n.overflowY!==`visible`)&&i.add(t)}}function cs(e,t,n,r,i,a=[],o,s=[],c){let l=Ra(e);if(r)return l.map((e,l)=>{let u=t.get(e);if(u)return u;let d=r[l]??is();return e.style?.setProperty(`view-transition-name`,d),n.push(e),t.set(e,d),os(e,i,a),ss(e,d,o,s,c),d});let u=l.map(e=>t.has(e)?void 0:getComputedStyle(e).getPropertyValue(`view-transition-name`));return l.map((e,r)=>{let l=t.get(e);if(l)return l;let d=u[r],f;return d&&d!==`none`&&d!==`auto`&&d!==`match-element`&&!as(d)?f=d:(f=is(),e.style?.setProperty(`view-transition-name`,f),n.push(e)),t.set(e,f),os(e,i,a),ss(e,f,o,s,c),f})}function ls(e,t=[],n=[]){for(let t of e)t.style?.removeProperty(`view-transition-name`);for(let e of t)e.style?.removeProperty(`view-transition-class`);for(let e of n)e.style?.removeProperty(`view-transition-group`)}function us(e){return e===`layout`?`group`:e===`enter`||e===`new`?`new`:`old`}var ds={},fs=null,ps={set:(e,t)=>{ds[e]=t},commit:()=>{fs||(fs=document.createElement(`style`),fs.id=`motion-view`);let e=``;for(let t in ds){let n=ds[t];e+=`${t} {\n`;for(let[t,r]of Object.entries(n))e+=` ${t}: ${r};\n`;e+=`}
|
|
2
|
+
`}fs.textContent=e,document.head.appendChild(fs),ds={}},remove:()=>{fs&&fs.parentElement&&fs.parentElement.removeChild(fs)}};function ms(e){let t=e.match(/::view-transition-(old|new|group-children|group|image-pair)\((.*?)\)/);return t?{layer:t[2],type:t[1]}:null}function hs(){return document.getAnimations().filter(e=>{let{effect:t}=e;return!!t&&t.target===document.documentElement&&t.pseudoElement?.startsWith(`::view-transition`)})}function gs(e,t){return t.has(e)&&Object.keys(t.get(e)).length>0}var _s=[`layout`,`enter`,`exit`,`new`,`old`],vs=e=>e.split(` `).every(e=>parseFloat(e)===0),ys={group:[`layout`],new:[`new`,`enter`],old:[`old`,`exit`]},bs={new:{opacity:0,scale:.85},old:{opacity:1,scale:1}},xs=.2;function Ss(e){let{update:t,targets:n,resolveDefs:r,cropOverride:i,pairs:a,classNames:o,flatGroups:s,options:c}=e;if(!document.startViewTransition)return(async()=>(await t(),new _i([])))();let l=new Map,u=[],d=[],f=[],p=new Set,m=new Map,h=new Set,g=new Map,_=new Map,v=new Map,y=new Map,b=e=>{n.forEach((t,n)=>{let c=o.get(n),h=n===`root`||!r.has(n)?void 0:s.has(n)?`none`:`contain`,b;if(n===`root`||!r.has(n))b=[n];else if(a.has(n))if(e===`old`)y.set(n,Ra(n)),b=cs(n,l,u,void 0,c,d,h,f,p),v.set(n,b);else{for(let e of y.get(n)??[])e.style?.removeProperty(`view-transition-name`),l.delete(e);b=cs(a.get(n),l,u,v.get(n),c,d,h,f,p)}else b=cs(n,l,u,void 0,c,d,h,f,p);let x=i.get(n);b.forEach((n,r)=>{let i=m.get(n);m.set(n,i&&i!==t?{...i,...t}:t),x!==void 0&&g.set(n,x);let a=_.get(n)??{};a[e]=[r,b.length],_.set(n,a)})})},x=(e,t)=>{let n=_.get(e);return(t===`old`?n?.old:t===`new`?n?.new:n?.new??n?.old)??[-1,1]},S=(e,t,n,r,i)=>{let a=ws(Ai(c,n),Ai(Cs(e,t)??{},n));return typeof a.delay==`function`&&(a.delay=a.delay(r,i)),a},C=e=>{let[t,n]=x(e,`group`),r=S(m.get(e),`group`,`layout`,t===-1?0:t,n);r.duration&&=M(r.duration);let{delay:i=0,duration:a,ease:o}=Qr(r);return{delay:M(i),duration:a,ease:o}},w=new Map,ee=e=>l.forEach((t,n)=>{let r=n,i=r.getBoundingClientRect?.();if(i&&i.height){let n=getComputedStyle(r),a={};for(let e of Na)a[e]=n[e];let o=w.get(t)??{};o[e]={width:i.width,height:i.height,radii:a},w.set(t,o)}}),te=()=>{h.clear();for(let e of _.keys())e!==`root`&&(g.get(e)??ne(e))&&h.add(e)},ne=e=>{let t=w.get(e);return!t?.old||!t?.new||!t.old.height||!t.new.height?!1:Math.abs(t.old.width/t.old.height-t.new.width/t.new.height)>xs},re=()=>{gs(`root`,n)||ps.set(`:root`,{"view-transition-name":`none`}),ps.set(`::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*)`,{"animation-timing-function":`linear !important`}),h.forEach(e=>{ps.set(`::view-transition-group(${e})`,{overflow:`clip`}),ps.set(`::view-transition-old(${e}), ::view-transition-new(${e})`,{width:`100%`,height:`100%`,"object-fit":`cover`})}),p.forEach(e=>{ps.set(`::view-transition-group-children(${e})`,{overflow:`clip`})}),ps.commit()},ie=()=>{ls(u,d,f),ps.remove()},ae=async()=>{await t(),b(`new`),ee(`new`),te(),re()},oe;try{b(`old`),ee(`old`),re(),oe=document.startViewTransition(ae)}catch(e){return ie(),Promise.reject(e)}return oe.finished.finally(ie),new Promise((e,t)=>{oe.ready.then(()=>{let t=hs(),n=[],r=new Set,i=new Set;m.forEach((e,t)=>{let a=_.get(t),o=!!a?.new&&!a?.old,s=!!a?.old&&!a?.new;for(let a of _s){if(!e[a]||a===`enter`&&!o||a===`exit`&&!s)continue;let l=us(a),[u,d]=x(t,l);if(u===-1)continue;let{keyframes:f,options:p}=e[a];for(let[m,h]of Object.entries(f)){if(h==null)continue;if(m===`x`||m===`y`){Ye(!1,`animateView() animates view-transition layers with CSS properties; the "${m}" shorthand has no effect - use transform, e.g. { transform: "translateX(40px)" }.`);continue}if(a===`new`&&o&&e.enter?.keyframes[m]!=null||a===`old`&&s&&e.exit?.keyframes[m]!=null)continue;let f=ws(Ai(c,m),Ai(p,m));if(!Array.isArray(h)){let t=a===`enter`?e.exit?.keyframes[m]:void 0,n=t==null?m===`opacity`||(l===`new`?o:s)?bs[l]?.[m]:void 0:Array.isArray(t)?t[t.length-1]:t;n!==void 0&&(h=[n,h])}typeof f.delay==`function`&&(f.delay=f.delay(u,d)),f.duration&&=M(f.duration),f.delay&&=M(f.delay),n.push(new $r({...f,element:document.documentElement,name:m,pseudoElement:`::view-transition-${l}(${t})`,keyframes:h})),r.add(`${t}:${l}`),m===`opacity`&&i.add(`${t}:${l}`)}}});for(let e of t){if(e.playState===`finished`)continue;let{effect:t}=e;if(!t||!(t instanceof KeyframeEffect))continue;let{pseudoElement:a}=t;if(!a)continue;let o=ms(a);if(!o)continue;let s=m.get(o.layer);if(r.has(`${o.layer}:${o.type}`)){i.has(`${o.layer}:new`)&&i.has(`${o.layer}:old`)&&t.getKeyframes().some(e=>e.mixBlendMode)?n.push(new bi(e)):e.cancel();continue}let c=o.type===`old`?`new`:o.type===`new`?`old`:void 0;if(c&&r.has(`${o.layer}:${c}`)&&!i.has(`${o.layer}:${c}`)){e.cancel();continue}let l=_.get(o.layer),u=(o.type===`old`||o.type===`new`)&&!!l?.old&&!!l?.new,d;if(o.type.startsWith(`group`)){let{delay:e,duration:t,ease:n}=C(o.layer);d={delay:e,duration:t,easing:Yr(n,t)}}else{let e=u?`group`:o.type,[t,n]=x(o.layer,e),r=S(s,e,e===`group`?`layout`:``,t===-1?0:t,n),i=r.visualDuration;r.duration&&(r.duration=M(r.duration)),r=Qr(r),d={delay:M(r.delay??0),duration:u&&i!==void 0?M(i):r.duration,easing:u?`linear`:Yr(r.ease,r.duration)}}t.updateTiming(d),n.push(new bi(e))}w.forEach((e,t)=>{if(!h.has(t))return;let{delay:r,duration:i,ease:a}=C(t);for(let o of Na){let s=e.old?.radii[o]||e.new?.radii[o]||`0px`,c=e.new?.radii[o]||e.old?.radii[o]||`0px`;vs(s)&&vs(c)||n.push(new $r({element:document.documentElement,name:o,pseudoElement:`::view-transition-group(${t})`,keyframes:[s,c],delay:r,duration:i,ease:a}))}}),e(new _i(n))}).catch(()=>oe.updateCallbackDone.then(()=>e(new _i([])),t))})}function Cs(e,t){for(let n of ys[t]??[]){let t=e?.[n]?.options;if(t)return t}}function ws(e,t){let n={...e,...t};return t.duration!==void 0&&(t.visualDuration===void 0&&delete n.visualDuration,t.type===void 0&&delete n.type),n}var Ts=[],Es=null;function Ds(){Es=null;let[e]=Ts;e&&Os(e)}function Os(e){Pe(Ts,e),Es=e,Ss(e).then(t=>(e.notifyReady(t),t.finished)).catch(t=>e.notifyReject(t)).finally(Ds)}function ks(){for(let e=Ts.length-1;e>=0;e--){let t=Ts[e],{interrupt:n}=t.options;if(n===`immediate`){let n=Ts.slice(0,e+1).map(e=>e.update),r=Ts.slice(e+1);t.update=()=>{n.forEach(e=>e())},Ts=[t,...r];break}}(!Es||Ts[0]?.options.interrupt===`immediate`)&&Ds()}function As(e){Ts.push(e),no.render(ks)}var js=class{constructor(e,t={}){this.currentSubject=`root`,this.targets=new Map,this.resolveDefs=new Set,this.cropOverride=new Map,this.pairs=new Map,this.classNames=new Map,this.flatGroups=new Set,this.notifyReady=j,this.notifyReject=j,this.readyPromise=new Promise((e,t)=>{this.notifyReady=e,this.notifyReject=t}),this.update=e,this.options={interrupt:`wait`,...t},this.readyPromise.catch(j),As(this)}add(e,t){return this.currentSubject=e,this.resolveDefs.add(e),t!==void 0&&this.pairs.set(e,t),this.targets.has(e)||this.targets.set(e,{}),this}crop(e=!0){return this.cropOverride.set(this.currentSubject,e),this}group(e=!0){return e?this.flatGroups.delete(this.currentSubject):this.flatGroups.add(this.currentSubject),this}class(e){return this.classNames.set(this.currentSubject,e),this}layout(e={}){return this.updateTarget(`layout`,{},e),this}enter(e,t){return this.updateTarget(`enter`,e,t),this}exit(e,t){return this.updateTarget(`exit`,e,t),this}new(e,t){return this.updateTarget(`new`,e,t),this}old(e,t){return this.updateTarget(`old`,e,t),this}updateTarget(e,t,n={}){let{currentSubject:r,targets:i}=this;i.has(r)||i.set(r,{});let a=i.get(r);a[e]={keyframes:t,options:n}}then(e,t){return this.readyPromise.then(e,t)}};function Ms(e,t={}){return new js(e,t)}var Ns=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ps=()=>({x:Ns(),y:Ns()}),Fs=()=>({min:0,max:0}),J=()=>({x:Fs(),y:Fs()}),Is=new WeakMap;function Ls(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Rs(e){return typeof e==`string`||Array.isArray(e)}var zs=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Bs=[`initial`,...zs];function Vs(e){return Ls(e.animate)||Bs.some(t=>Rs(e[t]))}function Hs(e){return!!(Vs(e)||e.variants)}function Us(e,t,n){for(let r in t){let i=t[r],a=n[r];if(G(i))e.addValue(r,i);else if(G(a))e.addValue(r,W(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,W(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Ws={current:null},Gs={current:!1},Ks=typeof window<`u`;function qs(){if(Gs.current=!0,Ks)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Ws.current=e.matches;e.addEventListener(`change`,t),t()}else Ws.current=!1}var Js=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Ys={};function Xs(e){Ys=e}function Zs(){return Ys}var Qs=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=zr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=L.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,P.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Vs(t),this.isVariantNode=Hs(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&G(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,Is.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)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Gs.current||qs(),this.shouldReduceMotion=Ws.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),F(this.notifyUpdate),F(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in 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??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&li.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new $r({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:M(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=Er.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&P.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Ys){let t=Ys[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):J()}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<Js.length;t++){let n=Js[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Us(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 n=this.values.get(e);t!==n&&(n&&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 n=this.values.get(e);return n===void 0&&t!==void 0&&(n=W(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(ze(n)||Ve(n))?n=parseFloat(n):!ns(n)&&V.test(t)&&(n=ka(e,t)),this.setBaseTarget(e,G(n)?n.get():n)),G(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=Yi(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!G(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new Ge),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){no.render(this.render)}},$s=class extends Qs{constructor(){super(...arguments),this.KeyframeResolver=Ma}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;G(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},ec=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function tc({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function nc({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function rc(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ic(e){return e===void 0||e===1}function ac({scale:e,scaleX:t,scaleY:n}){return!ic(e)||!ic(t)||!ic(n)}function oc(e){return ac(e)||sc(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function sc(e){return cc(e.x)||cc(e.y)}function cc(e){return e&&e!==`0%`}function lc(e,t,n){return n+t*(e-n)}function uc(e,t,n,r,i){return i!==void 0&&(e=lc(e,i,r)),lc(e,n,r)+t}function dc(e,t=0,n=1,r,i){e.min=uc(e.min,t,n,r,i),e.max=uc(e.max,t,n,r,i)}function fc(e,{x:t,y:n}){dc(e.x,t.translate,t.scale,t.originPoint),dc(e.y,n.translate,n.scale,n.originPoint)}var pc=.999999999999,mc=1.0000000000001;function hc(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(Y(e.x,-a.scroll.offset.x),Y(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,fc(e,o)),r&&oc(a.latestValues)&&vc(e,a.latestValues,a.layout?.layoutBox))}t.x<mc&&t.x>pc&&(t.x=1),t.y<mc&&t.y>pc&&(t.y=1)}function Y(e,t){e.min+=t,e.max+=t}function gc(e,t,n,r,i=.5){dc(e,t,n,H(e.min,e.max,i),r)}function _c(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function vc(e,t,n){let r=n??e;gc(e.x,_c(t.x,r.x),t.scaleX,t.scale,t.originX),gc(e.y,_c(t.y,r.y),t.scaleY,t.scale,t.originY)}function yc(e,t){return tc(rc(e.getBoundingClientRect(),t))}function bc(e,t,n){let r=yc(e,n),{scroll:i}=t;return i&&(Y(r.x,i.offset.x),Y(r.y,i.offset.y)),r}var xc={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Sc=Tr.length;function Cc(e,t,n){let r=``,i=!0;for(let a=0;a<Sc;a++){let o=Tr[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=Ba(s,Ta[o]);if(!c){i=!1;let t=xc[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${Ba(a,Ta.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function wc(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(Er.has(e)){o=!0;continue}if(kt(e)){i[e]=n;continue}{let t=Ba(n,Ta[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Cc(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function Tc(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function Ec(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Dc={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(z.test(e))e=parseFloat(e);else return e;return`${Ec(e,t.target.x)}% ${Ec(e,t.target.y)}%`}},Oc={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=V.parse(e);if(i.length>5)return r;let a=V.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=H(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},kc={borderRadius:{...Dc,applyTo:[...Na]},borderTopLeftRadius:Dc,borderTopRightRadius:Dc,borderBottomLeftRadius:Dc,borderBottomRightRadius:Dc,boxShadow:Oc};function Ac(e){for(let t in e)kc[t]=e[t],kt(t)&&(kc[t].isCSSVariable=!0)}function jc(e,{layout:t,layoutId:n}){return Er.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!kc[e]||e===`opacity`)}function Mc(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(G(r[t])||i&&G(i[t])||jc(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Nc(e){return window.getComputedStyle(e)}var Pc=class extends $s{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Tc}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(Er.has(t))return this.projection?.isProjecting?xr(t):Cr(e,t);{let n=Nc(e),r=(kt(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return yc(e,t)}build(e,t,n){wc(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Mc(e,t,n)}};function Fc(e,t){return e in t}var Ic=class extends Qs{constructor(){super(...arguments),this.type=`object`}readValueFromInstance(e,t){if(Fc(t,e)){let n=e[t];if(typeof n==`string`||typeof n==`number`)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return J()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}},Lc={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Rc={offset:`strokeDashoffset`,array:`strokeDasharray`};function zc(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Lc:Rc;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Bc=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Vc(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(wc(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of Bc)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&zc(d,i,a,o,!1)}var Hc=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`]),Uc=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Wc(e,t,n,r){Tc(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Hc.has(n)?n:ia(n),t.attrs[n])}function Gc(e,t,n){let r=Mc(e,t,n);for(let n in e)if(G(e[n])||G(t[n])){let t=Tr.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Kc=class extends $s{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=J}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Er.has(t)){let e=Da(t);return e&&e.default||0}return t=Hc.has(t)?t:ia(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Gc(e,t,n)}build(e,t,n){Vc(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Wc(e,t,n,r)}mount(e){this.isSVGTag=Uc(e.tagName),super.mount(e)}},qc=Bs.length;function Jc(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Jc(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<qc;n++){let r=Bs[n],i=e.props[r];(Rs(i)||i===!1)&&(t[r]=i)}return t}function Yc(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Xc=[...zs].reverse(),Zc=zs.length;function Qc(e){return t=>Promise.all(t.map(({animation:t,options:n})=>fa(e,t,n)))}function $c(e){let t=Qc(e),n=nl(),r=!0,i=!1,a=t=>(n,r)=>{let i=Xi(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=Jc(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<Zc;t++){let p=Xc[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=Rs(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||Ls(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=el(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,ee={...w,...C},te=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in ee){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=Qi(t)&&Qi(n)?!Yc(t,n)||y:t!==n,r?t==null?u.add(e):te(e):t!==void 0&&u.has(e)?te(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let ne=v&&y;b&&(!ne||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!ne&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=Xi(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=wi(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=Xi(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=nl(),i=!0}}}function el(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Yc(t,e):!1}function tl(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nl(){return{animate:tl(!0),whileInView:tl(),whileHover:tl(),whileTap:tl(),whileDrag:tl(),whileFocus:tl(),exit:tl()}}function rl(e,t){e.min=t.min,e.max=t.max}function X(e,t){rl(e.x,t.x),rl(e.y,t.y)}function il(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var al=.9999,ol=1.0001,sl=-.01,cl=.01;function Z(e){return e.max-e.min}function ll(e,t,n){return Math.abs(e-t)<=n}function ul(e,t,n,r=.5){e.origin=r,e.originPoint=H(t.min,t.max,e.origin),e.scale=Z(n)/Z(t),e.translate=H(n.min,n.max,e.origin)-e.originPoint,(e.scale>=al&&e.scale<=ol||isNaN(e.scale))&&(e.scale=1),(e.translate>=sl&&e.translate<=cl||isNaN(e.translate))&&(e.translate=0)}function dl(e,t,n,r){ul(e.x,t.x,n.x,r?r.originX:void 0),ul(e.y,t.y,n.y,r?r.originY:void 0)}function fl(e,t,n,r=0){e.min=(r?H(n.min,n.max,r):n.min)+t.min,e.max=e.min+Z(t)}function pl(e,t,n,r){fl(e.x,t.x,n.x,r?.x),fl(e.y,t.y,n.y,r?.y)}function ml(e,t,n,r=0){let i=r?H(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Z(t)}function hl(e,t,n,r){ml(e.x,t.x,n.x,r?.x),ml(e.y,t.y,n.y,r?.y)}function gl(e,t,n,r,i){return e-=t,e=lc(e,1/n,r),i!==void 0&&(e=lc(e,1/i,r)),e}function _l(e,t=0,n=1,r=.5,i,a=e,o=e){if(R.test(t)&&(t=parseFloat(t),t=H(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=H(a.min,a.max,r);e===a&&(s-=t),e.min=gl(e.min,t,n,s,i),e.max=gl(e.max,t,n,s,i)}function vl(e,t,[n,r,i],a,o){_l(e,t[n],t[r],t[i],t.scale,a,o)}var yl=[`x`,`scaleX`,`originX`],bl=[`y`,`scaleY`,`originY`];function xl(e,t,n,r){vl(e.x,t,yl,n?n.x:void 0,r?r.x:void 0),vl(e.y,t,bl,n?n.y:void 0,r?r.y:void 0)}function Sl(e){return e.translate===0&&e.scale===1}function Cl(e){return Sl(e.x)&&Sl(e.y)}function wl(e,t){return e.min===t.min&&e.max===t.max}function Tl(e,t){return wl(e.x,t.x)&&wl(e.y,t.y)}function El(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Dl(e,t){return El(e.x,t.x)&&El(e.y,t.y)}function Ol(e){return Z(e.x)/Z(e.y)}function kl(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Q(e){return[e(`x`),e(`y`)]}function Al(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var jl=Na.length,Ml=e=>typeof e==`string`?parseFloat(e):e,Nl=e=>typeof e==`number`||z.test(e);function Pl(e,t,n,r,i,a){i?(e.opacity=H(0,n.opacity??1,Il(r)),e.opacityExit=H(t.opacity??1,0,Ll(r))):a&&(e.opacity=H(t.opacity??1,n.opacity??1,r));for(let i=0;i<jl;i++){let a=Na[i],o=Fl(t,a),s=Fl(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||Nl(o)===Nl(s)?(e[a]=Math.max(H(Ml(o),Ml(s),r),0),(R.test(s)||R.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=H(t.rotate||0,n.rotate||0,r))}function Fl(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Il=Rl(0,.5,lt),Ll=Rl(.5,.95,j);function Rl(e,t,n){return r=>r<e?0:r>t?1:n(We(e,t,r))}function zl(e,t,n){let r=G(e)?e:W(e);return r.start(Ri(``,r,t,n)),r.animation}function Bl(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var Vl=(e,t)=>e.depth-t.depth,Hl=class{constructor(){this.children=[],this.isDirty=!1}add(e){Ne(this.children,e),this.isDirty=!0}remove(e){Pe(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Vl),this.isDirty=!1,this.children.forEach(e)}};function Ul(e,t){let n=L.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(F(r),e(a-t))};return P.setup(r,!0),()=>F(r)}function Wl(e,t){return Ul(e,M(t))}function Gl(e){return G(e)?e.get():e}var Kl=class{constructor(){this.members=[]}add(e){Ne(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(Pe(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(Pe(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},ql={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Jl={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Yl=[``,`X`,`Y`,`Z`],Xl=1e3,Zl=0;function Ql(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function $l(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=sa(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,P,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&$l(r)}function eu({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Zl++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,q.value&&(Jl.nodes=Jl.calculatedTargetDeltas=Jl.calculatedProjections=0),this.nodes.forEach(ru),this.nodes.forEach(fu),this.nodes.forEach(pu),this.nodes.forEach(iu),q.addProjectionMetrics&&q.addProjectionMetrics(Jl)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Hl)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Ge),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=wo(t)&&!Ho(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;P.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Ul(i,250),ql.hasAnimatedSinceResize&&(ql.hasAnimatedSinceResize=!1,this.nodes.forEach(du)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||bu,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!Dl(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Ai(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||du(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}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(),F(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(mu),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&&$l(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,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(su),this.nodes.forEach(ou);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(cu);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(lu),this.nodes.forEach(uu),this.nodes.forEach(tu),this.nodes.forEach(nu)):this.nodes.forEach(cu),this.clearAllSnapshots();let e=L.now();I.delta=k(0,1e3/60,e-I.timestamp),I.timestamp=e,I.isProcessing=!0,Tt.update.process(I),Tt.preRender.process(I),Tt.render.process(I),I.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,no.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(au),this.sharedNodes.forEach(hu)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,P.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){P.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Z(this.snapshot.measuredBox.x)&&!Z(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=J(),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=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Cl(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||oc(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),wu(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return J();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Eu))){let{scroll:e}=this.root;e&&(Y(t.x,e.offset.x),Y(t.y,e.offset.y))}return t}removeElementScroll(e){let t=J();if(X(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&X(t,e),Y(t.x,i.offset.x),Y(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||J();X(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(Y(r.x,-n.scroll.offset.x),Y(r.y,-n.scroll.offset.y)),oc(n.latestValues)&&vc(r,n.latestValues,n.layout?.layoutBox)}return oc(this.latestValues)&&vc(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=J();X(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!oc(n.latestValues))continue;let r;n.instance&&(ac(n.latestValues)&&n.updateSnapshot(),r=J(),X(r,n.measurePageBox())),xl(t,n.latestValues,n.snapshot?.layoutBox,r)}return oc(this.latestValues)&&xl(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||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!==I.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=I.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=J(),this.targetWithTransforms=J()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),pl(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):X(this.target,this.layout.layoutBox),fc(this.target,this.targetDelta)):X(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),q.value&&Jl.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||ac(this.parent.latestValues)||sc(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=J(),this.relativeTargetOrigin=J(),hl(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),X(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===I.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;X(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;hc(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=J());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(il(this.prevProjectionDelta.x,this.projectionDelta.x),il(this.prevProjectionDelta.y,this.projectionDelta.y)),dl(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!kl(this.projectionDelta.x,this.prevProjectionDelta.x)||!kl(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),q.value&&Jl.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=Ps(),this.projectionDelta=Ps(),this.projectionDeltaWithTransform=Ps()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=Ps();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=J(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!!(c&&!u&&this.options.crossfade===!0&&!this.path.some(yu));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=H(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=H(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(gu(o.x,e.x,n),gu(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(hl(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),vu(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&Tl(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=J(),X(f,this.relativeTarget)),c&&(this.animationValues=a,Pl(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),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&&=(F(this.pendingAnimation),void 0),this.pendingAnimation=P.update(()=>{ql.hasAnimatedSinceResize=!0,this.motionValue||=W(0),this.motionValue.jump(0,!1),this.currentAnimation=zl(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{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(Xl),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&Tu(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||J();let t=Z(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=Z(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}X(t,n),vc(t,i),dl(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Kl),this.sharedNodes.get(e).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;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&Ql(`z`,e,r,this.animationValues);for(let t=0;t<Yl.length;t++)Ql(`rotate${Yl[t]}`,e,r,this.animationValues),Ql(`skew${Yl[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=Gl(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=Gl(t?.pointerEvents)||``),this.hasProjected&&!oc(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=Al(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in kc){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=kc[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?Gl(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(ou),this.root.sharedNodes.clear()}}}function tu(e){e.updateLayout()}function nu(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)Q(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Z(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;rl(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else Tu(i,t.layoutBox,n)&&Q(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Z(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=Ps();dl(o,n,t.layoutBox);let s=Ps();a?dl(s,e.applyTransform(r,!0),t.measuredBox):dl(s,n,t.layoutBox);let c=!Cl(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=J();hl(s,t.layoutBox,i.layoutBox,o);let c=J();hl(c,n,a.layoutBox,o),Dl(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function ru(e){q.value&&Jl.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function iu(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function au(e){e.clearSnapshot()}function ou(e){e.clearMeasurements()}function su(e){e.isLayoutDirty=!0,e.updateLayout()}function cu(e){e.isLayoutDirty=!1}function lu(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function uu(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function du(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function fu(e){e.resolveTargetDelta()}function pu(e){e.calcProjection()}function mu(e){e.resetSkewAndRotation()}function hu(e){e.removeLeadSnapshot()}function gu(e,t,n){e.translate=H(t.translate,0,n),e.scale=H(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function _u(e,t,n,r){e.min=H(t.min,n.min,r),e.max=H(t.max,n.max,r)}function vu(e,t,n,r){_u(e.x,t.x,n.x,r),_u(e.y,t.y,n.y,r)}function yu(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var bu={duration:.45,ease:[.4,0,.1,1]},xu=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Su=xu(`applewebkit/`)&&!xu(`chrome/`)?Math.round:j;function Cu(e){e.min=Su(e.min),e.max=Su(e.max)}function wu(e){Cu(e.x),Cu(e.y)}function Tu(e,t,n){return e===`position`||e===`preserve-aspect`&&!ll(Ol(t),Ol(n),.2)}function Eu(e){return e!==e.root&&e.scroll?.wasRoot}var Du=eu({attachResizeListener:(e,t)=>Bl(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Ou=e=>!e.isLayoutDirty&&e.willUpdate(!1);function ku(){let e=new Set,t=new WeakMap,n=()=>e.forEach(Ou);return{add:r=>{e.add(r),t.set(r,r.addEventListener(`willUpdate`,n))},remove:r=>{e.delete(r);let i=t.get(r);i&&(i(),t.delete(r)),n()},dirty:n}}var Au={current:void 0},ju=eu({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Au.current){let e=new Du({});e.mount(window),e.setOptions({layoutScroll:!0}),Au.current=e}return Au.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Mu=`[data-layout],[data-layout-id]`,Nu=new WeakMap,Pu;function Fu(e){let t=[];return e instanceof HTMLElement&&e.matches(Mu)&&t.push(e),e.querySelectorAll(Mu).forEach(e=>{e instanceof HTMLElement&&t.push(e)}),t}function Iu(){if(I.isProcessing)return;let e=L.now();I.delta=k(0,1e3/60,e-I.timestamp),I.timestamp=e,I.isProcessing=!0,Tt.update.process(I),Tt.preRender.process(I),Tt.render.process(I),I.isProcessing=!1}function Lu(e){let t=e.parentElement;for(;t;){let e=Nu.get(t);if(e&&e.instance)return e;t=t.parentElement}}function Ru(){return new Pc({props:{},presenceContext:null,visualState:{latestValues:{},renderState:{transform:{},transformOrigin:{},style:{},vars:{}}}},{allowProjection:!0})}function zu(e,t){let n=e.getAttribute(`data-layout`);return{layoutId:e.getAttribute(`data-layout-id`)??void 0,layout:n!==null||void 0,animationType:!n||n===`true`?`both`:n,transition:t}}function Bu(e,t){let n=Nu.get(e);if(n)n.setOptions(zu(e,t));else{let r=Is.get(e);r||=Ru(),e.style.transform&&!oc(r.latestValues)&&(e.style.transform=``),n=new ju(r.latestValues,Lu(e)),r.projection=n,n.setOptions({...zu(e,t),visualElement:r}),n.mount(e),Nu.set(e,n)}return n.isPresent=!0,n.options.onExitComplete&&n.setOptions({onExitComplete:void 0}),n}function Vu(e){return[...e].sort((e,t)=>e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}function Hu(e,t){t.setOptions({onExitComplete:void 0}),(!t.getStack()||t.isLead())&&t.currentAnimation?.stop(),t.unmount(),Nu.delete(e)}function Uu(){let e=Pu;Pu=void 0,Iu();let t=new Map;for(let n of e)for(let e of n.collectTargets()){let r=t.get(e);r?r.push(n):t.set(e,[n])}let n=new Map;for(let e of Vu(t.keys())){let r=t.get(e),i=Bu(e,r[r.length-1].transitionFor(e));for(let t of r)t.adopt(e,i);n.set(e,i)}n.forEach(e=>{e.isLayoutDirty=!1,e.willUpdate()});let r=[];for(let t of e){let e=t.runUpdate();e&&r.push(e)}let i=()=>{let t=new Set;for(let n of e)n.reconcileAdditions(t);for(let n of e)n.reconcileRemovals(t);let r;n.forEach(e=>r||=e.root);for(let t of e)r||=t.getRoot();r?.didUpdate(),no.render(()=>{for(let t of e)t.finalize()})};r.length?Promise.all(r).then(i):i()}var Wu=class{constructor(e,t,n){this.scope=e,this.updateDom=t,this.defaultOptions=n,this.sharedTransitions=new Map,this.notifyReady=()=>{},this.rejectReady=()=>{},this.tracked=new Map,this.restorePoints=new Map,this.readyPromise=new Promise((e,t)=>{this.notifyReady=e,this.rejectReady=t}),Pu||(Pu=[],queueMicrotask(Uu)),Pu.push(this)}shared(e,t){return this.sharedTransitions.set(e,t),this}then(e,t){return this.readyPromise.then(e,t)}transitionFor(e){let t=e.getAttribute(`data-layout-id`);return t&&this.sharedTransitions.get(t)||this.defaultOptions}adopt(e,t){this.tracked.set(e,t),this.restorePoints.set(e,{parent:e.parentElement,next:e.nextSibling})}collectTargets(){return Fu(this.scope)}runUpdate(){try{let e=this.updateDom();if(e&&typeof e.then==`function`)return e.then(void 0,e=>{this.updateError=e})}catch(e){this.updateError=e}}reconcileAdditions(e){for(let t of Fu(this.scope)){if(this.tracked.has(t))continue;let n=Bu(t,this.transitionFor(t));this.adopt(t,n),n.options.layoutId&&e.add(n.options.layoutId)}}reconcileRemovals(e){this.tracked.forEach((t,n)=>{if(n.isConnected)return;let r=this.restorePoints.get(n);this.restorePoints.delete(n);let{layoutId:i}=t.options,a=t.getStack(),o=a&&a.members.some(e=>e!==t&&e.instance?.isConnected);if(i&&t.isLead()&&o&&!e.has(i)&&r&&r.parent.isConnected){if(r.parent.insertBefore(n,r.next&&r.next.parentNode===r.parent?r.next:null),t.isPresent=!1,t.setOptions({onExitComplete:()=>{n.remove(),Hu(n,t)}}),t.relegate())return;n.remove()}Hu(n,t),this.tracked.delete(n)})}getRoot(){let e;return this.tracked.forEach(t=>e||=t.root),e}finalize(){if(this.updateError){this.rejectReady(this.updateError);return}let e=new Set;this.tracked.forEach(t=>{t.instance&&t.currentAnimation&&e.add(t.currentAnimation)}),this.notifyReady(new _i([...e]))}};function Gu(e,t,n){return typeof e==`function`?{scope:document,updateDom:e,defaultOptions:t}:{scope:e instanceof Document?e:Ra(e)[0]??document,updateDom:t,defaultOptions:n}}var Ku=P,qu=xt.reduce((e,t)=>(e[t]=e=>F(e),e),{}),$=re({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Ju(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Yu(...e){return t=>{let n=!1,r=e.map(e=>{let r=Ju(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Ju(e[t],null)}}}}function Xu(...e){return me(Yu(...e),e)}var Zu=class extends h{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(qa(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=qa(e)&&e.offsetWidth||0,r=qa(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function Qu({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let o=ve(),s=D(null),c=D({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:l}=T($),d=Xu(s,a===!1?void 0:e.props?.ref??e?.ref);return be(()=>{let{width:e,height:u,top:d,left:f,right:p,bottom:m,direction:h}=c.current;if(t||a===!1||!s.current||!e||!u)return;let g=h===`rtl`,_=n===`left`?g?`right: ${p}`:`left: ${f}`:g?`left: ${f}`:`right: ${p}`,v=r===`bottom`?`bottom: ${m}`:`top: ${d}`;s.current.dataset.motionPopId=o;let y=document.createElement(`style`);l&&(y.nonce=l);let b=i??document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(`
|
|
3
|
+
[data-motion-pop-id="${o}"] {
|
|
4
|
+
position: absolute !important;
|
|
5
|
+
width: ${e}px !important;
|
|
6
|
+
height: ${u}px !important;
|
|
7
|
+
${_}px !important;
|
|
8
|
+
${v}px !important;
|
|
9
|
+
}
|
|
10
|
+
`),()=>{s.current?.removeAttribute(`data-motion-pop-id`),b.contains(y)&&b.removeChild(y)}},[t]),u(Zu,{isPresent:t,childRef:s,sizeRef:c,pop:a,children:a===!1?e:ne(e,{ref:d})})}var $u=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let d=O(ed),f=ve(),p=D(n),m=D(r);je(()=>{p.current=n,m.current=r});let h=!0,g=Se(()=>(h=!1,{id:f,initial:t,isPresent:n,custom:i,onExitComplete:e=>{d.set(e,!0);for(let e of d.values())if(!e)return;r&&r()},register:e=>(d.set(e,!1),()=>{d.delete(e),!p.current&&!d.size&&m.current?.()})}),[n,d,r]);return a&&h&&(g={...g}),Se(()=>{d.forEach((e,t)=>d.set(t,!1))},[n]),E(()=>{!n&&!d.size&&r&&r()},[n]),e=u(Qu,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,children:e}),u(Me.Provider,{value:g,children:e})};function ed(){return new Map}function td(e=!0){let t=T(Me);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=ve();E(()=>{if(e)return i(a)},[e]);let o=me(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}function nd(){return rd(T(Me))}function rd(e){return e===null||e.isPresent}var id=e=>e.key||``;function ad(e){let t=[];return m.forEach(e,e=>{se(e)&&t.push(e)}),t}var od=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,anchorY:c=`top`,root:d})=>{let[f,p]=td(o),m=Se(()=>ad(e),[e]),h=o&&!f?[]:m.map(id),g=D(!0),_=D(m),v=O(()=>new Map),y=D(new Set),[b,x]=Te(m),[S,C]=Te(m);je(()=>{g.current=!1,_.current=m;for(let e=0;e<S.length;e++){let t=id(S[e]);h.includes(t)?(v.delete(t),y.current.delete(t)):v.get(t)!==!0&&v.set(t,!1)}},[S,h.length,h.join(`-`)]);let w=[];if(m!==b){let e=[...m];for(let t=0;t<S.length;t++){let n=S[t],r=id(n);h.includes(r)||(e.splice(t,0,n),w.push(n))}return a===`wait`&&w.length&&(e=w),C(ad(e)),x(m),null}let{forceRender:ee}=T(ke);return u(l,{children:S.map(e=>{let l=id(e),b=o&&!f?!1:m===S||h.includes(l);return u($u,{isPresent:b,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:d,onExitComplete:b?void 0:()=>{if(y.current.has(l))return;if(v.has(l))y.current.add(l),v.set(l,!0);else return;let e=!0;v.forEach(t=>{t||(e=!1)}),e&&(ee?.(),C(_.current),o&&p?.(),r&&r())},anchorX:s,anchorY:c,children:e},l)})})},sd=re(null);function cd(){let e=D(!1);return je(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function ld(){let e=cd(),[t,n]=Te(0),r=me(()=>{e.current&&n(t+1)},[t]);return[me(()=>P.postRender(r),[r]),t]}var ud=e=>e===!0,dd=e=>ud(e===!0)||e===`id`,fd=({children:e,id:t,inherit:n=!0})=>{let r=T(ke),i=T(sd),[a,o]=ld(),s=D(null),c=r.id||i;s.current===null&&(dd(n)&&c&&(t=t?c+`-`+t:c),s.current={id:t,group:ud(n)&&r.group||ku()});let l=Se(()=>({...s.current,forceRender:a}),[o]);return u(ke.Provider,{value:l,children:e})},pd=re({strict:!1}),md={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`]},hd=!1;function gd(){if(hd)return;let e={};for(let t in md)e[t]={isEnabled:e=>md[t].some(t=>!!e[t])};Xs(e),hd=!0}function _d(){return gd(),Zs()}function vd(e){let t=_d();for(let n in e)t[n]={...t[n],...e[n]};Xs(t)}function yd({children:e,features:t,strict:n=!1}){let[,r]=Te(!bd(t)),i=D(void 0);if(!bd(t)){let{renderer:e,...n}=t;i.current=e,vd(n)}return E(()=>{bd(t)&&t().then(({renderer:e,...t})=>{vd(t),i.current=e,r(!0)})},[]),u(pd.Provider,{value:{renderer:i.current,strict:n},children:e})}function bd(e){return typeof e==`function`}var xd=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function Sd(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||xd.has(e)}var Cd=a({default:()=>wd}),wd,Td=i((()=>{throw wd={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),Ed=e=>!Sd(e);function Dd(e){typeof e==`function`&&(Ed=t=>t.startsWith(`on`)?!Sd(t):e(t))}try{Dd((Td(),s(Cd)).default)}catch{}function Od(e,t,n){let r={};for(let i in e)(i!==`values`||typeof e.values!=`object`)&&(G(e[i])||(Ed(i)||n===!0&&Sd(i)||!t&&!Sd(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]));return r}function kd({children:e,isValidProp:t,...n}){t&&Dd(t);let r=T($);n={...r,...n},n.transition=ki(n.transition,r.transition),n.isStatic=O(()=>n.isStatic);let i=Se(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion,n.skipAnimations]);return u($.Provider,{value:i,children:e})}var Ad=re({});function jd(e,t){if(Vs(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Rs(t)?t:void 0,animate:Rs(n)?n:void 0}}return e.inherit===!1?{}:t}function Md(e){let{initial:t,animate:n}=jd(e,T(Ad));return Se(()=>({initial:t,animate:n}),[Nd(t),Nd(n)])}function Nd(e){return Array.isArray(e)?e.join(` `):e}var Pd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Fd(e,t,n){for(let r in t)!G(t[r])&&!jc(r,n)&&(e[r]=t[r])}function Id({transformTemplate:e},t){return Se(()=>{let n=Pd();return wc(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Ld(e,t){let n=e.style||{},r={};return Fd(r,n,e),Object.assign(r,Id(e,t)),r}function Rd(e,t){let n={},r=Ld(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var zd=()=>({...Pd(),attrs:{}});function Bd(e,t,n,r){let i=Se(()=>{let n=zd();return Vc(n,t,Uc(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};Fd(t,e.style,e),i.style={...t,...i.style}}return i}var Vd=[`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 Hd(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Vd.indexOf(e)>-1||/[A-Z]/u.test(e))}function Ud(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??Hd(e)?Bd:Rd)(t,r,i,e),c=Od(t,typeof e==`string`,a),l=e===g?{}:{...c,...s,ref:n},{children:u}=t,d=Se(()=>G(u)?u.get():u,[u]);return ie(e,{...l,children:d})}function Wd({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Gd(n,r,i,e),renderState:t()}}function Gd(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=Gl(a[e]);let{initial:o,animate:s}=e,c=Vs(e),l=Hs(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!Ls(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Yi(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var Kd=e=>(t,n)=>{let r=T(Ad),i=T(Me),a=()=>Wd(e,t,r,i);return n?a():O(a)},qd=Kd({scrapeMotionValuesFromProps:Mc,createRenderState:Pd}),Jd=Kd({scrapeMotionValuesFromProps:Gc,createRenderState:zd}),Yd=Symbol.for(`motionComponentSymbol`);function Xd(e,t,n){let r=D(n);be(()=>{r.current=n});let i=D(null);return me(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`)if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n);else a&&(a.current=n)},[t])}var Zd=re({});function Qd(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function $d(e,t,n,r,i,a){let{visualElement:o}=T(Ad),s=T(pd),c=T(Me),l=T($),u=l.reducedMotion,d=l.skipAnimations,f=D(null),p=D(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=T(Zd);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&ef(f.current,n,i,h);let g=D(!1);be(()=>{m&&g.current&&m.update(n,c)});let _=n[oa],v=D(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return je(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),E(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function ef(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:tf(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Qd(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function tf(e){if(e)return e.options.allowProjection===!1?tf(e.parent):e.projection}function nf(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&vd(r);let a=n?n===`svg`:Hd(e),o=a?Jd:qd;function s(n,s){let c,l={...T($),...n,layoutId:rf(n)},{isStatic:f}=l,p=Md(n),m=o(n,f);if(!f&&typeof window<`u`){af(l,r);let t=of(l);c=t.MeasureLayout,p.visualElement=$d(e,m,l,i,t.ProjectionNode,a)}return d(Ad.Provider,{value:p,children:[c&&p.visualElement?u(c,{visualElement:p.visualElement,...l}):null,Ud(e,n,Xd(m,p.visualElement,s),m,f,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=oe(s);return c[Yd]=e,c}function rf({layoutId:e}){let t=T(ke).id;return t&&e!==void 0?t+`-`+e:e}function af(e,t){T(pd).strict}function of(e){let{drag:t,layout:n}=_d();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function sf(e,t){if(typeof Proxy>`u`)return nf;let n=new Map,r=(n,r)=>nf(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,nf(a,void 0,e,t)),n.get(a))})}var cf=sf(),lf=(e,t)=>t.isSVG??Hd(e)?new Kc(t):new Pc(t,{allowProjection:e!==g}),uf=class extends ec{constructor(e){super(e),e.animationState||=$c(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Ls(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?.()}},df=0,ff={animation:{Feature:uf},exit:{Feature:class extends ec{constructor(){super(...arguments),this.id=df++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=Xi(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function pf(e){return{point:{x:e.pageX,y:e.pageY}}}var mf=e=>t=>uo(t)&&e(t,pf(t));function hf(e,t,n,r){return Bl(e,t,mf(n),r)}var gf=({current:e})=>e?e.ownerDocument.defaultView:null,_f=(e,t)=>Math.abs(e-t);function vf(e,t){let n=_f(e.x,t.x),r=_f(e.y,t.y);return Math.sqrt(n**2+r**2)}var yf=new Set([`auto`,`scroll`]),bf=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=xf(this.lastRawMoveEventInfo,this.transformPagePoint));let e=Cf(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=vf(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=I;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=xf(t,this.transformPagePoint),P.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=Cf(e.type===`pointercancel`?this.lastMoveEventInfo:xf(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!uo(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=xf(pf(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=I;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Cf(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=Ue(hf(this.contextWindow,`pointermove`,this.handlePointerMove,d),hf(this.contextWindow,`pointerup`,this.handlePointerUp,d),hf(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(yf.has(e.overflowX)||yf.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),P.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),F(this.updatePoint)}};function xf(e,t){return t?{point:t(e.point)}:e}function Sf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Cf({point:e},t){return{point:e,delta:Sf(e,Tf(t)),offset:Sf(e,wf(t)),velocity:Ef(t,.1)}}function wf(e){return e[0]}function Tf(e){return e[e.length-1]}function Ef(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Tf(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>M(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>M(t)*2&&(r=e[1]);let a=N(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Df(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?H(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?H(n,e,r.max):Math.min(e,n)),e}function Of(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function kf(e,{top:t,left:n,bottom:r,right:i}){return{x:Of(e.x,n,i),y:Of(e.y,t,r)}}function Af(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function jf(e,t){return{x:Af(e.x,t.x),y:Af(e.y,t.y)}}function Mf(e,t){let n=.5,r=Z(e),i=Z(t);return i>r?n=We(t.min,t.max-r,e.min):r>i&&(n=We(e.min,e.max-i,t.min)),k(0,1,n)}function Nf(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var Pf=.35;function Ff(e=Pf){return e===!1?e=0:e===!0&&(e=Pf),{x:If(e,`left`,`right`),y:If(e,`top`,`bottom`)}}function If(e,t,n){return{min:Lf(e,t),max:Lf(e,n)}}function Lf(e,t){return typeof e==`number`?e:e[t]||0}var Rf=new WeakMap,zf=class{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=J(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(pf(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ao(n),!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),Q(e=>{let t=this.getAxisMotionValue(e).get()||0;if(R.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=Z(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&P.update(()=>i(e,t),!1,!0),ra(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=Uf(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&P.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new bf(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:gf(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&P.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!Hf(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Df(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Qd(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?kf(n.layoutBox,e):!1,this.elastic=Ff(t),r!==this.constraints&&!Qd(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Q(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Nf(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Qd(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=bc(n,r.root,this.visualElement.getTransformPagePoint()),a=jf(r.layout.layoutBox,i);if(t){let e=t(nc(a));this.hasMutatedConstraints=!!e,e&&(a=tc(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=Q(o=>{if(!Hf(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return ra(this.visualElement,e),n.start(Ri(e,n,0,t,this.visualElement,!1))}stopAnimation(){Q(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){Q(t=>{let{drag:n}=this.getProps();if(!Hf(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-H(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Qd(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};Q(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=Mf({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Q(t=>{if(!Hf(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(H(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Rf.set(this.visualElement,this);let e=this.visualElement.current,t=hf(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&ho(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Qd(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=Vf(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),P.read(r);let o=Bl(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Q(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=Pf,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function Bf(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function Vf(e,t,n){let r=Ro(e,Bf(n)),i=Ro(t,Bf(n));return()=>{r(),i()}}function Hf(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Uf(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var Wf=class extends ec{constructor(e){super(e),this.removeGroupControls=j,this.removeListeners=j,this.controls=new zf(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||j}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},Gf=e=>(t,n)=>{e&&P.update(()=>e(t,n),!1,!0)},Kf=class extends ec{constructor(){super(...arguments),this.removePointerDownListener=j}onPointerDown(e){this.session=new bf(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:gf(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Gf(e),onStart:Gf(t),onMove:Gf(n),onEnd:(e,t)=>{delete this.session,r&&P.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=hf(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},qf=!1,Jf=class extends h{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),qf&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ql.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),qf=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||P.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),no.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;qf=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function Yf(e){let[t,n]=td(),r=T(ke);return u(Jf,{...e,layoutGroup:r,switchLayoutGroup:T(Zd),isPresent:t,safeToRemove:n})}var Xf={pan:{Feature:Kf},drag:{Feature:Wf,ProjectionNode:ju,MeasureLayout:Yf}};function Zf(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&P.postRender(()=>i(t,pf(t)))}var Qf=class extends ec{mount(){let{current:e}=this.node;e&&(this.unmount=co(e,(e,t)=>(Zf(this.node,t,`Start`),e=>Zf(this.node,e,`End`))))}unmount(){}},$f=class extends ec{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{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=Ue(Bl(this.node.current,`focus`,()=>this.onFocus()),Bl(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function ep(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&P.postRender(()=>i(t,pf(t)))}var tp=class extends ec{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=So(e,(e,t)=>(ep(this.node,t,`Start`),(e,{success:t})=>ep(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},np=new WeakMap,rp=new WeakMap,ip=e=>{let t=np.get(e.target);t&&t(e)},ap=e=>{e.forEach(ip)};function op({root:e,...t}){let n=e||document;rp.has(n)||rp.set(n,{});let r=rp.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(ap,{root:e,...t})),r[i]}function sp(e,t,n){let r=op(t);return np.set(e,n),r.observe(e),()=>{np.delete(e),r.unobserve(e)}}var cp={some:0,all:1},lp=class extends ec{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:cp[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=sp(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(up(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function up({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var dp={inView:{Feature:lp},tap:{Feature:tp},focus:{Feature:$f},hover:{Feature:Qf}},fp={layout:{ProjectionNode:ju,MeasureLayout:Yf}},pp=sf({...ff,...dp,...Xf,...fp},lf);function mp(e){return E(()=>()=>e(),[])}var hp={renderer:lf,...ff,...dp},gp={...hp,...Xf,...fp},_p={renderer:lf,...ff};function vp(e,t,n){be(()=>e.on(t,n),[e,t,n])}function yp(e){return typeof window>`u`?!1:e?Gr():Wr()}var bp=50,xp=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Sp=()=>({time:0,x:xp(),y:xp()}),Cp={x:{length:`Width`,position:`Left`},y:{length:`Height`,position:`Top`}};function wp(e,t,n,r){let i=n[t],{length:a,position:o}=Cp[t],s=i.current,c=n.time;i.current=Math.abs(e[`scroll${o}`]),i.scrollLength=e[`scroll${a}`]-e[`client${a}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=We(0,i.scrollLength,i.current);let l=r-c;i.velocity=l>bp?0:Ke(i.current-s,l)}function Tp(e,t,n){wp(e,`x`,t,n),wp(e,`y`,t,n),t.time=n}function Ep(e,t){let n={x:0,y:0},r=e;for(;r&&r!==t;)if(qa(r))n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName===`svg`){let e=r.getBoundingClientRect();r=r.parentElement;let t=r.getBoundingClientRect();n.x+=e.left-t.left,n.y+=e.top-t.top}else if(r instanceof SVGGraphicsElement){let{x:e,y:t}=r.getBBox();n.x+=e,n.y+=t;let i=null,a=r.parentNode;for(;!i;)a.tagName===`svg`&&(i=a),a=r.parentNode;r=i}else break;return n}var Dp={start:0,center:.5,end:1};function Op(e,t,n=0){let r=0;if(e in Dp&&(e=Dp[e]),typeof e==`string`){let t=parseFloat(e);e.endsWith(`px`)?r=t:e.endsWith(`%`)?e=t/100:e.endsWith(`vw`)?r=t/100*document.documentElement.clientWidth:e.endsWith(`vh`)?r=t/100*document.documentElement.clientHeight:e=t}return typeof e==`number`&&(r=t*e),n+r}var kp=[0,0];function Ap(e,t,n,r){let i=Array.isArray(e)?e:kp,a=0,o=0;return typeof e==`number`?i=[e,e]:typeof e==`string`&&(e=e.trim(),i=e.includes(` `)?e.split(` `):[e,Dp[e]?e:`0`]),a=Op(i[0],n,r),o=Op(i[1],t),a-o}var jp={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},Mp={x:0,y:0};function Np(e){return`getBBox`in e&&e.tagName!==`svg`?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function Pp(e,t,n){let{offset:r=jp.All}=n,{target:i=e,axis:a=`y`}=n,o=a===`y`?`height`:`width`,s=i===e?Mp:Ep(i,e),c=i===e?{width:e.scrollWidth,height:e.scrollHeight}:Np(i),l={width:e.clientWidth,height:e.clientHeight};t[a].offset.length=0;let u=!t[a].interpolate,d=r.length;for(let e=0;e<d;e++){let n=Ap(r[e],l[o],c[o],s[a]);!u&&n!==t[a].interpolatorOffsets[e]&&(u=!0),t[a].offset[e]=n}u&&(t[a].interpolate=Qn(t[a].offset,er(r),{clamp:!1}),t[a].interpolatorOffsets=[...t[a].offset]),t[a].progress=k(0,1,t[a].interpolate(t[a].current))}function Fp(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}function Ip(e,t,n,r={}){return{measure:t=>{Fp(e,r.target,n),Tp(e,n,t),(r.offset||r.target)&&Pp(e,n,r)},notify:()=>t(n)}}var Lp=new WeakMap,Rp=new WeakMap,zp=new WeakMap,Bp=new WeakMap,Vp=new WeakMap,Hp=e=>e===document.scrollingElement?window:e;function Up(e,{container:t=document.scrollingElement,trackContentSize:n=!1,...r}={}){if(!t)return j;let i=zp.get(t);i||(i=new Set,zp.set(t,i));let a=Ip(t,e,Sp(),r);if(i.add(a),!Lp.has(t)){let e=()=>{for(let e of i)e.measure(I.timestamp);P.preUpdate(n)},n=()=>{for(let e of i)e.notify()},r=()=>P.read(e);Lp.set(t,r);let a=Hp(t);window.addEventListener(`resize`,r),t!==document.documentElement&&Rp.set(t,Ro(t,r)),a.addEventListener(`scroll`,r),r()}if(n&&!Vp.has(t)){let e=Lp.get(t),n={width:t.scrollWidth,height:t.scrollHeight};Bp.set(t,n);let r=P.read(()=>{let r=t.scrollWidth,i=t.scrollHeight;(n.width!==r||n.height!==i)&&(e(),n.width=r,n.height=i)},!0);Vp.set(t,r)}let o=Lp.get(t);return P.read(o,!1,!0),()=>{F(o);let e=zp.get(t);if(!e||(e.delete(a),e.size))return;let n=Lp.get(t);Lp.delete(t),n&&(Hp(t).removeEventListener(`scroll`,n),Rp.get(t)?.(),window.removeEventListener(`resize`,n));let r=Vp.get(t);r&&(F(r),Vp.delete(t)),Bp.delete(t)}}var Wp=[[jp.Enter,`entry`],[jp.Exit,`exit`],[jp.Any,`cover`],[jp.All,`contain`]],Gp={start:0,end:1};function Kp(e){let t=e.trim().split(/\s+/);if(t.length!==2)return;let n=Gp[t[0]],r=Gp[t[1]];if(n!==void 0&&r!==void 0)return[n,r]}function qp(e){if(e.length!==2)return;let t=[];for(let n of e)if(Array.isArray(n))t.push(n);else if(typeof n==`string`){let e=Kp(n);if(!e)return;t.push(e)}else return;return t}function Jp(e,t){let n=qp(e);if(!n)return!1;for(let e=0;e<2;e++){let r=n[e],i=t[e];if(r[0]!==i[0]||r[1]!==i[1])return!1}return!0}function Yp(e){if(!e)return{rangeStart:`contain 0%`,rangeEnd:`contain 100%`};for(let[t,n]of Wp)if(Jp(e,t))return{rangeStart:`${n} 0%`,rangeEnd:`${n} 100%`}}var Xp=new Map;function Zp(e){let t={value:0};return{currentTime:t,cancel:Up(n=>{t.value=n[e.axis].progress*100},e)}}function Qp({source:e,container:t,...n}){let{axis:r}=n;e&&(t=e);let i=Xp.get(t);i||(i=new Map,Xp.set(t,i));let a=n.target??`self`,o=i.get(a);o||(o={},i.set(a,o));let s=r+(n.offset??[]).join(`,`);return o[s]||(n.target&&yp(n.target)?Yp(n.offset)?o[s]=new ViewTimeline({subject:n.target,axis:r}):o[s]=Zp({container:t,...n}):yp()?o[s]=new ScrollTimeline({source:t,axis:r}):o[s]=Zp({container:t,...n})),o[s]}function $p(e,t){let n=Qp(t),r=t.target?Yp(t.offset):void 0,i=t.target?yp(t.target)&&!!r:yp();return e.attachTimeline({timeline:i?n:void 0,...r&&i&&{rangeStart:r.rangeStart,rangeEnd:r.rangeEnd},observe:e=>(e.pause(),zo(t=>{e.time=e.iterationDuration*t},n))})}function em(e){return e&&(e.target||e.offset)}function tm(e){return e.length===2}function nm(e,t){return tm(e)||em(t)?Up(n=>{e(n[t.axis].progress,n)},t):zo(e,Qp(t))}function rm(e,{axis:t=`y`,container:n=document.scrollingElement,...r}={}){if(!n)return j;let i={axis:t,container:n,...r};return typeof e==`function`?nm(e,i):$p(e,i)}var im=()=>({scrollX:W(0),scrollY:W(0),scrollXProgress:W(0),scrollYProgress:W(0)}),am=e=>e?!e.current:!1;function om(e,t,n,r){return{factory:i=>{let a,o=()=>{if(am(n)||am(r)){no.read(o);return}a=rm(i,{...t,axis:e,container:n?.current||void 0,target:r?.current||void 0})};return no.read(o),()=>{ro(o),a?.()}},times:[0,1],keyframes:[0,1],ease:e=>e,duration:1}}function sm(e,t){return typeof window>`u`?!1:e?Gr()&&!!Yp(t):Wr()}function cm({container:e,target:t,...n}={}){let r=O(im);sm(t,n.offset)&&(r.scrollXProgress.accelerate=om(`x`,n,e,t),r.scrollYProgress.accelerate=om(`y`,n,e,t));let i=D(null),a=D(!1),o=me(()=>(i.current=rm((e,{x:t,y:n})=>{r.scrollX.set(t.current),r.scrollXProgress.set(t.progress),r.scrollY.set(n.current),r.scrollYProgress.set(n.progress)},{...n,container:e?.current||void 0,target:t?.current||void 0}),()=>{i.current?.()}),[e,t,JSON.stringify(n.offset)]);return je(()=>{if(a.current=!1,am(e)||am(t)){a.current=!0;return}return o()},[o]),E(()=>{if(!a.current)return;let n,r=()=>{let r=am(e),i=am(t);!r&&!i&&(n=o())};return no.read(r),()=>{ro(r),n?.()}},[o]),r}function lm(e){return cm({container:e})}function um(){return cm()}function dm(e){let t=O(()=>W(e)),{isStatic:n}=T($);if(n){let[,n]=Te(e);E(()=>t.on(`change`,n),[])}return t}function fm(e,t){let n=dm(t()),r=()=>n.set(t());return r(),je(()=>{let t=()=>P.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return()=>{n.forEach(e=>e()),F(r)}}),n}function pm(e,...t){let n=e.length;function r(){let r=``;for(let i=0;i<n;i++){r+=e[i];let n=t[i];n&&(r+=G(n)?n.get():n)}return r}return fm(t.filter(G),r)}function mm(e){Di.current=[],e();let t=fm(Di.current,e);return Di.current=void 0,t}function hm(e,t,n,r){if(typeof e==`function`)return mm(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return _m(e,t,n,r);let i=typeof t==`function`?t:Go(t,n,r),a=Array.isArray(e)?gm(e,i):gm([e],([e])=>i(e)),o=Array.isArray(e)?void 0:e.accelerate;return o&&!o.isTransformed&&typeof t!=`function`&&Array.isArray(n)&&r?.clamp!==!1&&(a.accelerate={...o,times:t,keyframes:n,isTransformed:!0,...r?.ease?{ease:r.ease}:{}}),a}function gm(e,t){let n=O(()=>[]);return fm(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function _m(e,t,n,r){let i=O(()=>Object.keys(n)),a=O(()=>({}));for(let o of i)a[o]=hm(e,t,n[o],r);return a}function vm(e,t={}){let{isStatic:n}=T($),r=()=>G(e)?e.get():e;if(n)return hm(r);let i=dm(r());return be(()=>qo(i,e,t),[i,JSON.stringify(t)]),i}function ym(e,t={}){return vm(e,{type:`spring`,...t})}function bm(e){let t=D(0),{isStatic:n}=T($);E(()=>{if(n)return;let r=({timestamp:n,delta:r})=>{t.current||=n,e(n-t.current,r)};return P.update(r,!0),()=>F(r)},[e])}function xm(){let e=dm(0);return bm(t=>e.set(t)),e}function Sm(e){let t=dm(e.getVelocity()),n=()=>{let r=e.getVelocity();t.set(r),r&&P.update(n)};return vp(e,`change`,()=>{P.update(n,!1,!0)}),t}var Cm=class extends Oi{constructor(){super(...arguments),this.isEnabled=!1}add(e){(Er.has(e)||li.has(e))&&(this.isEnabled=!0,this.update())}update(){this.set(this.isEnabled?`transform`:`auto`)}};function wm(){return O(()=>new Cm(`auto`))}function Tm(){!Gs.current&&qs();let[e]=Te(Ws.current);return e}function Em(){let e=Tm(),{reducedMotion:t}=T($);return t===`never`?!1:t===`always`||e}function Dm(e){e.values.forEach(e=>e.stop())}function Om(e,t){[...t].reverse().forEach(n=>{let r=e.getVariant(n);r&&ta(e,r),e.variantChildren&&e.variantChildren.forEach(e=>{Om(e,t)})})}function km(e,t){if(Array.isArray(t))return Om(e,t);if(typeof t==`string`)return Om(e,[t]);ta(e,t)}function Am(){let e=new Set,t={subscribe(t){return e.add(t),()=>void e.delete(t)},start(t,n){let r=[];return e.forEach(e=>{r.push(fa(e,t,{transitionOverride:n}))}),Promise.all(r)},set(t){return e.forEach(e=>{km(e,t)})},stop(){e.forEach(e=>{Dm(e)})},mount(){return()=>{t.stop()}}};return t}function jm(e){return typeof e==`object`&&!Array.isArray(e)}function Mm(e,t,n,r){return e==null?[]:typeof e==`string`&&jm(t)?Ra(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function Nm(e,t,n){return e*(t+1)+n*t}function Pm(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function Fm(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(Pe(e,i),r--)}}function Im(e,t,n,r,i,a){Fm(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:H(i,a,r[o]),easing:gt(n,o)})}function Lm(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function Rm(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var zm=`easeInOut`,Bm=20;function Vm(e,{defaultTransition:t={},...n}={},r,i){let a=t.duration||.3,o=new Map,s=new Map,c={},l=new Map,u=0,d=0,f=0;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o==`string`){l.set(o,d);continue}if(!Array.isArray(o)){l.set(o.name,Pm(d,o.at,u,l));continue}let[p,m,h={}]=o;h.at!==void 0&&(d=Pm(d,h.at,u,l));let g=0,_=(e,n,r,o=0,s=0)=>{let c=Wm(e),{delay:l=0,times:u=er(c),type:p=t.type||`keyframes`,repeat:m,repeatType:h,repeatDelay:_=0,...v}=n,{ease:y=t.ease||`easeOut`,duration:b}=n,x=typeof l==`function`?l(o,s):l,S=c.length,C=Zr(p)?p:i?.[p||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&qm(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,...v};b!==void 0&&(n.duration=M(b));let r=Ln(n,e,C);y=r.ease,b=r.duration}b??=a;let w=d+x;u.length===1&&u[0]===0&&(u[1]=1);let ee=u.length-c.length;if(ee>0&&$n(u,ee),c.length===1&&c.unshift(null),m&&`${m}${Bm}`,m&&m<Bm){let e=b>0?_/b:0;b=Nm(b,m,_);let t=[...c],n=[...u];y=Array.isArray(y)?[...y]:[y];let r=[...y],i=h===`reverse`||h===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),h===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?rt(e):e)));for(let s=0;s<m;s++){let l=i&&s%2==0,d=l?a:t,f=l?o:r,p=(s+1)*(1+e);e>0&&(c.push(c[c.length-1]),u.push(p),y.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),y.push(e===0?`linear`:gt(f,e-1))}Lm(u,m,e)}let te=w+b;Im(r,c,y,u,w,te),g=Math.max(x+b,g),f=Math.max(te,f)};if(G(p)){let e=Hm(p,s);_(m,h,Um(`default`,e))}else{let e=Mm(p,m,r,c),t=e.length;for(let n=0;n<t;n++){m=m,h=h;let r=e[n],i=Hm(r,s);for(let e in m)_(m[e],Gm(h,e),Um(e,i),n,t)}}u=d,d+=g}return s.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(Rm);let s=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];s.push(n),c.push(We(0,f,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift(zm)),c[c.length-1]!==1&&(c.push(1),s.push(null)),o.has(r)||o.set(r,{keyframes:{},transition:{}});let u=o.get(r);u.keyframes[i]=s;let{type:d,...p}=t;u.transition[i]={...p,duration:f,ease:l,times:c,...n}}}),o}function Hm(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function Um(e,t){return t[e]||(t[e]=[]),t[e]}function Wm(e){return Array.isArray(e)?e:[e]}function Gm(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var Km=e=>typeof e==`number`,qm=e=>e.every(Km);function Jm(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=wo(e)&&!Ho(e)?new Kc(t):new Pc(t);n.mount(e),Is.set(e,n)}function Ym(e){let t=new Ic({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});t.mount(e),Is.set(e,t)}function Xm(e,t){return G(e)||typeof e==`number`||typeof e==`string`&&!jm(t)}function Zm(e,t,n,r){let i=[];if(Xm(e,t))i.push(zl(e,jm(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=Mm(e,t,r),o=a.length;for(let e=0;e<o;e++){let r=a[e],s=r instanceof Element?Jm:Ym;Is.has(r)||s(r);let c=Is.get(r),l={...n};`delay`in l&&typeof l.delay==`function`&&(l.delay=l.delay(e,o)),i.push(...la(c,{...t,transition:l},{}))}}return i}function Qm(e,t,n){let r=[];return Vm(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=W(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:qn}).forEach(({keyframes:e,transition:t},n)=>{r.push(...Zm(n,e,t))}),r}function $m(e){return Array.isArray(e)&&e.some(Array.isArray)}function eh(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=[],s,c={};if(n!==void 0&&(c.reduceMotion=n),r!==void 0&&(c.skipAnimations=r),$m(e)){let{onComplete:n,...r}=i||{};typeof n==`function`&&(s=n),o=Qm(e,{...c,...r},t)}else{let{onComplete:n,...r}=a||{};typeof n==`function`&&(s=n),o=Zm(e,i,{...c,...r},t)}let l=new yi(o);return s&&l.finished.then(s),t&&(t.animations.push(l),l.finished.then(()=>{Pe(t.animations,l)})),l}return i}var th=eh();function nh(){let e=O(()=>({current:null,animations:[]})),t=Em()??void 0,{skipAnimations:n}=T($),r=Se(()=>eh({scope:e,reduceMotion:t,skipAnimations:n}),[e,t,n]);return mp(()=>{e.animations.forEach(e=>e.stop()),e.animations.length=0}),[e,r]}function rh(e,t,n,r){if(e==null)return[];let i=Ra(e,r),a=i.length,o=[];for(let e=0;e<a;e++){let r=i[e],s={...n};typeof s.delay==`function`&&(s.delay=s.delay(e,a));for(let e in t){let n=t[e];Array.isArray(n)||(n=[n]);let i={...Ai(s,e)};i.duration&&=M(i.duration),i.delay&&=M(i.delay);let a=Ci(r),c=Si(e,i.pseudoElement||``),l=a.get(c);l&&l.stop(),o.push({map:a,key:c,unresolvedKeyframes:n,options:{...i,element:r,name:e,allowFlatten:!s.type&&!s.ease}})}}for(let e=0;e<o.length;e++){let{unresolvedKeyframes:t,options:n}=o[e],{element:r,name:i,pseudoElement:a}=n;!a&&t[0]===null&&(t[0]=Co(r,i)),fr(t),Fa(t,i),!a&&t.length<2&&t.unshift(Co(r,i)),n.keyframes=t}let s=[];for(let e=0;e<o.length;e++){let{map:t,key:n,options:r}=o[e],i=new $r(r);t.set(n,i),i.finished.finally(()=>t.delete(n)),s.push(i)}return s}var ih=e=>{function t(t,n,r){return new yi(rh(t,n,r,e))}return t},ah=ih();function oh(){let e=O(()=>({current:null,animations:[]})),t=O(()=>ih(e));return mp(()=>{e.animations.forEach(e=>e.stop())}),[e,t]}function sh(){let e=O(Am);return je(e.mount,[]),e}var ch=sh;function lh(){let e=T(Me);return e?e.custom:void 0}function uh(e,t,n,r){E(()=>{let i=e.current;if(n&&i)return Bl(i,t,n,r)},[e,t,n,r])}var dh=class{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}cancel(){this.componentControls.forEach(e=>{e.cancel()})}stop(){this.componentControls.forEach(e=>{e.stop()})}},fh=()=>new dh;function ph(){return O(fh)}function mh(e){return typeof e==`object`&&!!e&&Yd in e}function hh(e){if(mh(e))return e[Yd]}function gh(){return _h}function _h(e){Au.current&&(Au.current.isUpdating=!1,Au.current.blockUpdate(),e&&e())}function vh(){return me(()=>{let e=Au.current;e&&e.resetTree()},[])}function yh(...e){let t=D(0),[n,r]=Te(e[t.current]);return[n,me(n=>{t.current=typeof n==`number`?n:Xe(0,e.length,t.current+1),r(e[t.current])},[e.length,...e])]}var bh={some:0,all:1};function xh(e,t,{root:n,margin:r,amount:i=`some`}={}){let a=Ra(e),o=new WeakMap,s=new IntersectionObserver(e=>{e.forEach(e=>{let n=o.get(e.target);if(e.isIntersecting!==!!n)if(e.isIntersecting){let n=t(e.target,e);typeof n==`function`?o.set(e.target,n):s.unobserve(e.target)}else typeof n==`function`&&(n(e),o.delete(e.target))})},{root:n,rootMargin:r,threshold:typeof i==`number`?i:bh[i]});return a.forEach(e=>s.observe(e)),()=>s.disconnect()}function Sh(e,{root:t,margin:n,amount:r,once:i=!1,initial:a=!1}={}){let[o,s]=Te(a);return E(()=>{if(!e.current||i&&o)return;let a=()=>(s(!0),i?void 0:()=>s(!1)),c={root:t&&t.current||void 0,margin:n,amount:r};return xh(e.current,a,c)},[t,e,n,i,r]),o}function Ch(){let[e,t]=ld(),n=gh(),r=D(-1);return E(()=>{P.postRender(()=>P.postRender(()=>{t===r.current&&(A.instantAnimations=!1)}))},[t]),i=>{n(()=>{A.instantAnimations=!0,e(),i(),r.current=t+1})}}function wh(){A.instantAnimations=!1}function Th(){let[e,t]=Te(!0);return E(()=>{let e=()=>t(!document.hidden);return document.hidden&&e(),document.addEventListener(`visibilitychange`,e),()=>{document.removeEventListener(`visibilitychange`,e)}},[]),e}function Eh(e){return t=>{let n=e.current;if(!n)return t;let r=n.viewBox?.baseVal;if(!r||r.width===0&&r.height===0)return t;let i=n.getBoundingClientRect();if(i.width===0||i.height===0)return t;let a=r.width/i.width,o=r.height/i.height,s=i.left+window.scrollX,c=i.top+window.scrollY;return{x:(t.x-s)*a+s,y:(t.y-c)*o+c}}}function Dh(e){return t=>{let n=e.current;if(!n)return t;let r=Oh(n);if(!r)return t;let i=n.getBoundingClientRect(),a=i.left+window.scrollX+i.width/2,o=i.top+window.scrollY+i.height/2,s=t.x-a,c=t.y-o;return{x:a+r.a*s+r.c*c,y:o+r.b*s+r.d*c}}}function Oh(e){let{transform:t}=getComputedStyle(e);if(!t||t===`none`)return null;let n=t.match(/^matrix3d\((.*)\)$/u)||t.match(/^matrix\((.*)\)$/u);if(!n)return null;let r=n[1].split(`,`).map(Number),i=t.startsWith(`matrix3d`),a=r[0],o=r[1],s=i?r[4]:r[2],c=i?r[5]:r[3],l=a*c-o*s;return Math.abs(l)<1e-10?null:{a:c/l,b:-o/l,c:-s/l,d:a/l}}var kh=new Map,Ah=new Map,jh=(e,t)=>`${e}: ${Er.has(t)?`transform`:t}`;function Mh(e,t,n){let r=jh(e,t),i=kh.get(r);if(!i)return null;let{animation:a,startTime:o}=i;function s(){window.MotionCancelOptimisedAnimation?.(e,t,n)}return a.onfinish=s,o===null||window.MotionHandoffIsComplete?.(e)?(s(),null):o}var Nh,Ph,Fh=new Set;function Ih(){Fh.forEach(e=>{e.animation.play(),e.animation.startTime=e.startTime}),Fh.clear()}function Lh(e,t,n,r,i){if(window.MotionIsMounted)return;let a=e.dataset[aa];if(!a)return;window.MotionHandoffAnimation=Mh;let o=jh(a,t);Ph||(Ph=Xr(e,t,[n[0],n[0]],{duration:1e4,ease:`linear`}),kh.set(o,{animation:Ph,startTime:null}),window.MotionHandoffAnimation=Mh,window.MotionHasOptimisedAnimation=(e,t)=>{if(!e)return!1;if(!t)return Ah.has(e);let n=jh(e,t);return!!kh.get(n)},window.MotionHandoffMarkAsComplete=e=>{Ah.has(e)&&Ah.set(e,!0)},window.MotionHandoffIsComplete=e=>Ah.get(e)===!0,window.MotionCancelOptimisedAnimation=(e,t,n,r)=>{let i=jh(e,t),a=kh.get(i);a&&(n&&r===void 0?n.postRender(()=>{n.postRender(()=>{a.animation.cancel()})}):a.animation.cancel(),n&&r?(Fh.add(a),n.render(Ih)):(kh.delete(i),kh.size||(window.MotionCancelOptimisedAnimation=void 0)))},window.MotionCheckAppearSync=(e,t,n)=>{let r=sa(e);if(!r)return;let i=window.MotionHasOptimisedAnimation?.(r,t),a=e.props.values?.[t];if(!i||!a)return;let o=n.on(`change`,e=>{a.get()!==e&&(window.MotionCancelOptimisedAnimation?.(r,t),o())});return o});let s=()=>{Ph.cancel();let a=Xr(e,t,n,r);Nh===void 0&&(Nh=performance.now()),a.startTime=Nh,kh.set(o,{animation:a,startTime:Nh}),i&&i(a)};Ah.set(a,!1),Ph.ready?Ph.ready.then(s).catch(j):s()}var Rh=()=>({}),zh=class extends Qs{constructor(){super(...arguments),this.measureInstanceViewportBox=J}build(){}resetTransform(){}restoreTransform(){}removeValueFromRenderState(){}renderInstance(){}scrapeMotionValuesFromProps(){return Rh()}getBaseTargetFromProps(){}readValueFromInstance(e,t,n){return n.initialState[t]||0}sortInstanceNodePosition(){return 0}},Bh=Kd({scrapeMotionValuesFromProps:Rh,createRenderState:Rh});function Vh(e){let[t,n]=Te(e),r=Bh({},!1),i=O(()=>new zh({props:{onUpdate:e=>{n({...e})}},visualState:r,presenceContext:null},{initialState:e}));return xe(()=>(i.mount({}),()=>i.unmount()),[i]),[t,O(()=>e=>fa(i,e))]}var Hh=0,Uh=({children:e})=>(E(()=>{},[]),u(fd,{id:O(()=>`asl-${Hh++}`),children:e})),Wh=1e5,Gh=e=>e>.001?1/e:Wh;function Kh(e){let t=dm(1),n=dm(1),{visualElement:r}=T(Ad);return e?(t=e.scaleX||t,n=e.scaleY||n):r&&(t=r.getValue(`scaleX`,1),n=r.getValue(`scaleY`,1)),{scaleX:hm(t,Gh),scaleY:hm(n,Gh)}}var qh=re(null);function Jh(e,t,n,r){if(!r)return e;let i=e.findIndex(e=>e.value===t);if(i===-1)return e;let a=r>0?1:-1,o=e[i+a];if(!o)return e;let s=e[i],c=o.layout,l=H(c.min,c.max,.5);return a===1&&s.layout.max+n>l||a===-1&&s.layout.min+n<l?Fe(e,i,i+a):e}function Yh({children:e,as:t=`ul`,axis:n=`y`,onReorder:r,values:i,...a},o){let s=O(()=>pp[t]),c=[],l=D(!1),d=D(null),f={axis:n,groupRef:d,registerItem:(e,t)=>{let r=c.findIndex(t=>e===t.value);r===-1?c.push({value:e,layout:t[n]}):c[r].layout=t[n],c.sort(Zh)},updateOrder:(e,t,n)=>{if(l.current)return;let a=Jh(c,e,t,n);if(c!==a){l.current=!0;let e=[...i];for(let t=0;t<a.length;t++)if(c[t].value!==a[t].value){let n=i.indexOf(c[t].value),r=i.indexOf(a[t].value);n!==-1&&r!==-1&&([e[n],e[r]]=[e[r],e[n]]);break}r(e)}}};E(()=>{l.current=!1});let p=e=>{d.current=e,typeof o==`function`?o(e):o&&(o.current=e)},m={overflowAnchor:`none`,...a.style};return u(s,{...a,style:m,ref:p,ignoreStrict:!0,children:u(qh.Provider,{value:f,children:e})})}var Xh=oe(Yh);function Zh(e,t){return e.layout.min-t.layout.min}var Qh=50,$h=25,eg=new Set([`auto`,`scroll`]),tg=new WeakMap,ng=new WeakMap,rg=null;function ig(){if(rg){let e=og(rg,`y`);e&&(ng.delete(e),tg.delete(e));let t=og(rg,`x`);t&&t!==e&&(ng.delete(t),tg.delete(t)),rg=null}}function ag(e,t){let n=getComputedStyle(e),r=t===`x`?n.overflowX:n.overflowY,i=e===document.body||e===document.documentElement;return eg.has(r)||i}function og(e,t){let n=e?.parentElement;for(;n;){if(ag(n,t))return n;n=n.parentElement}return null}function sg(e,t,n){let r=t.getBoundingClientRect(),i=n===`x`?Math.max(0,r.left):Math.max(0,r.top),a=n===`x`?Math.min(window.innerWidth,r.right):Math.min(window.innerHeight,r.bottom),o=e-i,s=a-e;if(o<Qh){let e=1-o/Qh;return{amount:-25*e*e,edge:`start`}}if(s<Qh){let e=1-s/Qh;return{amount:$h*e*e,edge:`end`}}return{amount:0,edge:null}}function cg(e,t,n,r){if(!e)return;rg=e;let i=og(e,n);if(!i)return;let{amount:a,edge:o}=sg(t-(n===`x`?window.scrollX:window.scrollY),i,n);if(o===null){ng.delete(i),tg.delete(i);return}let s=ng.get(i),c=i===document.body||i===document.documentElement;if(s!==o){if(!(o===`start`&&r<0||o===`end`&&r>0))return;ng.set(i,o);let e=n===`x`?i.scrollWidth-(c?window.innerWidth:i.clientWidth):i.scrollHeight-(c?window.innerHeight:i.clientHeight);tg.set(i,e)}if(a>0){let e=tg.get(i);if((n===`x`?c?window.scrollX:i.scrollLeft:c?window.scrollY:i.scrollTop)>=e)return}n===`x`?c?window.scrollBy({left:a}):i.scrollLeft+=a:c?window.scrollBy({top:a}):i.scrollTop+=a}function lg(e,t=0){return G(e)?e:dm(t)}function ug({children:e,style:t={},value:n,as:r=`li`,onDrag:i,onDragEnd:a,layout:o=!0,...s},c){let l=O(()=>pp[r]),d=T(qh),f={x:lg(t.x),y:lg(t.y)},p=hm([f.x,f.y],([e,t])=>e||t?1:`unset`),{axis:m,registerItem:h,updateOrder:g,groupRef:_}=d;return u(l,{drag:m,...s,dragSnapToOrigin:!0,style:{...t,x:f.x,y:f.y,zIndex:p},layout:o,onDrag:(e,t)=>{let{velocity:r,point:a}=t,o=f[m].get();g(n,o,r[m]),cg(_.current,a[m],m,r[m]),i&&i(e,t)},onDragEnd:(e,t)=>{ig(),a&&a(e,t)},onLayoutMeasure:e=>{h(n,e)},ref:c,ignoreStrict:!0,children:e})}var dg=oe(ug),fg=a({Group:()=>Xh,Item:()=>dg}),pg=a({AnimatePresence:()=>od,AnimateSharedLayout:()=>Uh,AsyncMotionValueAnimation:()=>gi,DOMKeyframesResolver:()=>Ma,DOMVisualElement:()=>$s,DeprecatedLayoutGroupContext:()=>sd,DocumentProjectionNode:()=>Du,DragControls:()=>dh,Feature:()=>ec,FlatTree:()=>Hl,GroupAnimation:()=>_i,GroupAnimationWithThen:()=>yi,HTMLProjectionNode:()=>ju,HTMLVisualElement:()=>Pc,JSAnimation:()=>ur,KeyframeResolver:()=>zr,LayoutAnimationBuilder:()=>Wu,LayoutGroup:()=>fd,LayoutGroupContext:()=>ke,LazyMotion:()=>yd,MotionConfig:()=>kd,MotionConfigContext:()=>$,MotionContext:()=>Ad,MotionGlobalConfig:()=>A,MotionValue:()=>Oi,NativeAnimation:()=>$r,NativeAnimationExtended:()=>ii,NativeAnimationWrapper:()=>bi,NodeStack:()=>Kl,ObjectVisualElement:()=>Ic,PopChild:()=>Qu,PresenceChild:()=>$u,PresenceContext:()=>Me,Reorder:()=>fg,SVGVisualElement:()=>Kc,SubscriptionManager:()=>Ge,SwitchLayoutGroupContext:()=>Zd,ViewTransitionBuilder:()=>js,VisualElement:()=>Qs,WillChangeMotionValue:()=>Cm,acceleratedValues:()=>li,addAttrValue:()=>Wa,addDomEvent:()=>Bl,addPointerEvent:()=>hf,addPointerInfo:()=>mf,addScaleCorrector:()=>Ac,addStyleValue:()=>Za,addUniqueItem:()=>Ne,addValueToWillChange:()=>ra,alpha:()=>Ft,analyseComplexValue:()=>ln,animate:()=>th,animateMini:()=>ah,animateMotionValue:()=>Ri,animateSingleValue:()=>zl,animateTarget:()=>la,animateValue:()=>dr,animateVariant:()=>ua,animateView:()=>Ms,animateVisualElement:()=>fa,animationControls:()=>Am,animationMapKey:()=>Si,animations:()=>ff,anticipate:()=>st,applyAxisDelta:()=>dc,applyBoxDelta:()=>fc,applyGeneratorOptions:()=>Qr,applyPointDelta:()=>uc,applyPxDefaults:()=>Fa,applyTreeDeltas:()=>hc,arc:()=>Wi,aspectRatio:()=>Ol,attachFollow:()=>qo,attachSpring:()=>es,attrEffect:()=>Ga,axisDeltaEquals:()=>kl,axisEquals:()=>wl,axisEqualsRounded:()=>El,backIn:()=>at,backInOut:()=>ot,backOut:()=>it,boxEquals:()=>Tl,boxEqualsRounded:()=>Dl,buildHTMLStyles:()=>wc,buildProjectionTransform:()=>Al,buildSVGAttrs:()=>Vc,buildSVGPath:()=>zc,buildTransform:()=>Cc,calcAxisDelta:()=>ul,calcBoxDelta:()=>dl,calcChildStagger:()=>wi,calcGeneratorDuration:()=>In,calcLength:()=>Z,calcRelativeAxis:()=>fl,calcRelativeAxisPosition:()=>ml,calcRelativeBox:()=>pl,calcRelativePosition:()=>hl,camelCaseAttributes:()=>Hc,camelToDash:()=>ia,cancelFrame:()=>F,cancelMicrotask:()=>ro,cancelSync:()=>qu,checkVariantsDidChange:()=>el,circIn:()=>ct,circInOut:()=>ut,circOut:()=>lt,clamp:()=>k,cleanDirtyNodes:()=>iu,collectMotionValues:()=>Di,color:()=>B,compareByDepth:()=>Vl,complex:()=>V,containsCSSVariable:()=>Nt,convertBoundingBoxToBox:()=>tc,convertBoxToBoundingBox:()=>nc,convertOffsetToTimes:()=>tr,copyAxisDeltaInto:()=>il,copyAxisInto:()=>rl,copyBoxInto:()=>X,correctBorderRadius:()=>Dc,correctBoxShadow:()=>Oc,correctParentTransform:()=>Dh,createAnimationState:()=>$c,createAxis:()=>Fs,createAxisDelta:()=>Ns,createBox:()=>J,createDelta:()=>Ps,createGeneratorEasing:()=>Ln,createProjectionNode:()=>eu,createRenderBatcher:()=>wt,createScopedAnimate:()=>eh,cubicBezier:()=>tt,cubicBezierAsString:()=>qr,defaultEasing:()=>nr,defaultOffset:()=>er,defaultTransformValue:()=>xr,defaultValueTypes:()=>Ea,degrees:()=>Yt,delay:()=>Ul,delayInSeconds:()=>Wl,dimensionValueTypes:()=>ha,disableInstantTransitions:()=>wh,distance:()=>_f,distance2D:()=>vf,domAnimation:()=>hp,domMax:()=>gp,domMin:()=>_p,eachAxis:()=>Q,easeIn:()=>dt,easeInOut:()=>pt,easeOut:()=>ft,easingDefinitionToFunction:()=>bt,fillOffset:()=>$n,fillWildcards:()=>fr,filterProps:()=>Od,findDimensionValueType:()=>ga,findValueType:()=>ns,flushKeyframeResolvers:()=>Rr,followValue:()=>Ko,frame:()=>P,frameData:()=>I,frameSteps:()=>Tt,generateLinearEasing:()=>Pn,getAnimatableNone:()=>ka,getAnimationMap:()=>Ci,getComputedStyle:()=>Co,getDefaultTransition:()=>Fi,getDefaultValueType:()=>Da,getEasingForSegment:()=>gt,getFeatureDefinitions:()=>Zs,getFinalKeyframe:()=>ar,getMixer:()=>Dn,getOptimisedAppearId:()=>sa,getOriginIndex:()=>Uo,getValueAsType:()=>Ba,getValueTransition:()=>Ai,getVariableValue:()=>qi,getVariantContext:()=>Jc,getViewAnimationLayerInfo:()=>ms,getViewAnimations:()=>hs,globalProjectionState:()=>ql,has2DTranslate:()=>sc,hasReducedMotionListener:()=>Gs,hasScale:()=>ac,hasTransform:()=>oc,hasWarned:()=>Je,hex:()=>qt,hover:()=>co,hsla:()=>$t,hslaToRgba:()=>_n,inView:()=>xh,inertia:()=>Xn,initPrefersReducedMotion:()=>qs,interpolate:()=>Qn,invariant:()=>Re,invisibleValues:()=>wn,isAnimationControls:()=>Ls,isBezierDefinition:()=>_t,isBrowser:()=>Ae,isCSSVariableName:()=>kt,isCSSVariableToken:()=>jt,isControllingVariants:()=>Vs,isDeltaZero:()=>Cl,isDragActive:()=>io,isDragging:()=>K,isEasingArray:()=>ht,isElementKeyboardAccessible:()=>po,isElementTextInput:()=>ho,isForcedMotionValue:()=>jc,isGenerator:()=>Zr,isHTMLElement:()=>qa,isKeyframesTarget:()=>Qi,isMotionComponent:()=>mh,isMotionValue:()=>G,isNear:()=>ll,isNodeOrChild:()=>lo,isNumericalString:()=>ze,isObject:()=>Be,isPrimaryPointer:()=>uo,isSVGElement:()=>wo,isSVGSVGElement:()=>Ho,isSVGTag:()=>Uc,isTransitionDefined:()=>Li,isValidMotionProp:()=>Sd,isVariantLabel:()=>Rs,isVariantNode:()=>Hs,isWaapiSupportedEasing:()=>Ia,isWillChangeMotionValue:()=>na,isZeroValueString:()=>Ve,keyframes:()=>rr,m:()=>cf,makeAnimationInstant:()=>ci,makeUseVisualState:()=>Kd,mapEasingToNativeEasing:()=>Yr,mapValue:()=>Qo,maxGeneratorDuration:()=>Fn,measurePageBox:()=>bc,measureViewportBox:()=>yc,memo:()=>He,microtask:()=>no,millisecondsToSeconds:()=>N,mirrorEasing:()=>nt,mix:()=>Mn,mixArray:()=>On,mixColor:()=>Cn,mixComplex:()=>jn,mixImmediate:()=>vn,mixLinearColor:()=>yn,mixNumber:()=>H,mixObject:()=>kn,mixValues:()=>Pl,mixVisibility:()=>Tn,motion:()=>pp,motionValue:()=>W,moveItem:()=>Fe,nodeGroup:()=>ku,noop:()=>j,number:()=>Pt,numberValueTypes:()=>Ta,observeTimeline:()=>zo,optimizedAppearDataAttribute:()=>oa,optimizedAppearDataId:()=>aa,parseAnimateLayoutArgs:()=>Gu,parseCSSVariable:()=>Ki,parseValueFromTransform:()=>Sr,percent:()=>R,pipe:()=>Ue,pixelsToPercent:()=>Ec,positionalKeys:()=>Zi,prefersReducedMotion:()=>Ws,press:()=>So,progress:()=>We,progressPercentage:()=>Qt,propEffect:()=>Ka,propagateDirtyNodes:()=>ru,px:()=>z,readTransformValue:()=>Cr,recordStats:()=>Vo,removeAxisDelta:()=>_l,removeAxisTransforms:()=>vl,removeBoxTransforms:()=>xl,removeItem:()=>Pe,removePointDelta:()=>gl,renderHTML:()=>Tc,renderSVG:()=>Wc,resize:()=>Ro,resolveElements:()=>Ra,resolveMotionValue:()=>Gl,resolveTransition:()=>ki,resolveVariant:()=>Xi,resolveVariantFromProps:()=>Yi,reverseEasing:()=>rt,rgbUnit:()=>Wt,rgba:()=>Gt,rootProjectionNode:()=>Au,scale:()=>It,scaleCorrectors:()=>kc,scalePoint:()=>lc,scrapeHTMLMotionValuesFromProps:()=>Mc,scrapeSVGMotionValuesFromProps:()=>Gc,scroll:()=>rm,scrollInfo:()=>Up,secondsToMilliseconds:()=>M,setDragLock:()=>ao,setFeatureDefinitions:()=>Xs,setStyle:()=>Vr,setTarget:()=>ta,spring:()=>qn,springValue:()=>$o,stagger:()=>Wo,startOptimizedAppearAnimation:()=>Lh,startWaapiAnimation:()=>Xr,statsBuffer:()=>q,steps:()=>mt,styleEffect:()=>Qa,supportedWaapiEasing:()=>Jr,supportsBrowserAnimation:()=>mi,supportsFlags:()=>Hr,supportsLinearEasing:()=>Kr,supportsPartialKeyframes:()=>La,supportsScrollTimeline:()=>Wr,supportsViewTimeline:()=>Gr,svgEffect:()=>eo,sync:()=>Ku,testValueType:()=>ma,time:()=>L,transform:()=>Go,transformAxis:()=>gc,transformBox:()=>vc,transformBoxPoints:()=>rc,transformPropOrder:()=>Tr,transformProps:()=>Er,transformValue:()=>Zo,transformValueTypes:()=>wa,transformViewBoxPoint:()=>Eh,translateAxis:()=>Y,unwrapMotionComponent:()=>hh,updateMotionValuesFromProps:()=>Us,useAnimate:()=>nh,useAnimateMini:()=>oh,useAnimation:()=>ch,useAnimationControls:()=>sh,useAnimationFrame:()=>bm,useComposedRefs:()=>Xu,useCycle:()=>yh,useDeprecatedAnimatedState:()=>Vh,useDeprecatedInvertedScale:()=>Kh,useDomEvent:()=>uh,useDragControls:()=>ph,useElementScroll:()=>lm,useFollowValue:()=>vm,useForceUpdate:()=>ld,useInView:()=>Sh,useInstantLayoutTransition:()=>gh,useInstantTransition:()=>Ch,useIsPresent:()=>nd,useIsomorphicLayoutEffect:()=>je,useMotionTemplate:()=>pm,useMotionValue:()=>dm,useMotionValueEvent:()=>vp,usePageInView:()=>Th,usePresence:()=>td,usePresenceData:()=>lh,useReducedMotion:()=>Tm,useReducedMotionConfig:()=>Em,useResetProjection:()=>vh,useScroll:()=>cm,useSpring:()=>ym,useTime:()=>xm,useTransform:()=>hm,useUnmountEffect:()=>mp,useVelocity:()=>Sm,useViewportScroll:()=>um,useWillChange:()=>wm,variantPriorityOrder:()=>zs,variantProps:()=>Bs,velocityPerSecond:()=>Ke,vh:()=>Xt,visualElementStore:()=>Is,vw:()=>Zt,warnOnce:()=>Ye,warning:()=>Le,wrap:()=>Xe}),mg=window.__libreArtifactRuntime=window.__libreArtifactRuntime||{modules:{},register(e,t){for(let n of e)this.modules[n]=t},require(e){let t=this.modules[e];if(t===void 0)throw Error(`"`+e+`" is not one of the libraries available to artifacts.`);return t}},hg=pg;mg.register([`framer-motion`,`motion/react`,`motion`],hg),window.Motion=hg})();
|