libre-webui 0.43.0 → 0.44.0
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/README.md +2 -0
- package/backend/dist/services/agentCliService.d.ts.map +1 -1
- package/backend/dist/services/agentCliService.js +1 -0
- package/backend/dist/services/agentCliService.js.map +1 -1
- package/backend/dist/services/pluginService.d.ts.map +1 -1
- package/backend/dist/services/pluginService.js +12 -9
- package/backend/dist/services/pluginService.js.map +1 -1
- package/backend/dist/services/workAgentHostLogins.d.ts.map +1 -1
- package/backend/dist/services/workAgentHostLogins.js +4 -0
- package/backend/dist/services/workAgentHostLogins.js.map +1 -1
- package/backend/dist/services/workModelProviderService.d.ts.map +1 -1
- package/backend/dist/services/workModelProviderService.js +13 -1
- package/backend/dist/services/workModelProviderService.js.map +1 -1
- package/backend/dist/utils/pluginChatAdapter.d.ts +15 -1
- package/backend/dist/utils/pluginChatAdapter.d.ts.map +1 -1
- package/backend/dist/utils/pluginChatAdapter.js +53 -5
- package/backend/dist/utils/pluginChatAdapter.js.map +1 -1
- package/backend/dist/utils/pluginDefinitionTrust.d.ts.map +1 -1
- package/backend/dist/utils/pluginDefinitionTrust.js +5 -3
- package/backend/dist/utils/pluginDefinitionTrust.js.map +1 -1
- package/backend/dist/utils/pluginModelCatalog.d.ts +10 -0
- package/backend/dist/utils/pluginModelCatalog.d.ts.map +1 -1
- package/backend/dist/utils/pluginModelCatalog.js +24 -0
- package/backend/dist/utils/pluginModelCatalog.js.map +1 -1
- package/backend/package.json +2 -2
- package/frontend/dist/artifact-runtime/.build-fingerprint +1 -1
- package/frontend/dist/artifact-runtime/babel.js +179 -173
- package/frontend/dist/artifact-runtime/chart.js +1 -1
- package/frontend/dist/artifact-runtime/d3.js +4 -4
- package/frontend/dist/artifact-runtime/framer-motion.js +2 -10
- package/frontend/dist/artifact-runtime/lucide-react.js +1 -1
- package/frontend/dist/artifact-runtime/mathjs.js +1 -1
- package/frontend/dist/artifact-runtime/mermaid.js +368 -368
- package/frontend/dist/artifact-runtime/plotly.js +59 -59
- package/frontend/dist/artifact-runtime/recharts.js +45 -45
- package/frontend/dist/artifact-runtime/tailwind.js +18 -18
- package/frontend/dist/artifact-runtime/three.js +419 -397
- package/frontend/dist/artifact-runtime/tone.js +1 -1
- package/frontend/dist/assets/index-BM0txgxR.css +2 -0
- package/frontend/dist/assets/index-CekTqSoE.js +67 -0
- package/frontend/dist/assets/{markdown-math-Ngnvt50Q.css → markdown-math-Bv5fr4tV.css} +1 -1
- package/frontend/dist/index.html +30 -30
- package/frontend/dist/js/{ArtifactContainer-C0R4kYVM.js → ArtifactContainer-C7EEweSP.js} +1 -1
- package/frontend/dist/js/{ArtifactDemoPage-BQmbCyat.js → ArtifactDemoPage-B3yjn6Dw.js} +2 -2
- package/frontend/dist/js/{ArtifactSandboxFrame-CkDkrHpg.js → ArtifactSandboxFrame-DGC1hgTq.js} +6 -6
- package/frontend/dist/js/ArtifactSlideOutPanel-xamxqotB.js +1 -0
- package/frontend/dist/js/{AutomationModal-Cx1e_4df.js → AutomationModal-Dj0E2mSl.js} +1 -1
- package/frontend/dist/js/AutomationsPage-MTqU8Ap9.js +1 -0
- package/frontend/dist/js/{AvatarUpload-DGRQC20B.js → AvatarUpload-CrNLFoIi.js} +1 -1
- package/frontend/dist/js/{Button-DwZ26Lqc.js → Button-BGE6ZJv5.js} +1 -1
- package/frontend/dist/js/CalendarPage-BciFDr0S.js +1 -0
- package/frontend/dist/js/ChannelsPage-De96Q63V.js +1 -0
- package/frontend/dist/js/ChatPage-CTRKLQly.js +14 -0
- package/frontend/dist/js/ConnectModels-BPwpeVsJ.js +1 -0
- package/frontend/dist/js/EvaluationsPage-CT7EAYaj.js +2 -0
- package/frontend/dist/js/FirstTimeSetup-BXkaFkvk.js +1 -0
- package/frontend/dist/js/GalleryPage-BPUY12kj.js +1 -0
- package/frontend/dist/js/HomePage-16KFuUir.js +1 -0
- package/frontend/dist/js/{LanguageSwitcher-CASJ8p5d.js → LanguageSwitcher-MlITAZf6.js} +1 -1
- package/frontend/dist/js/{Logo-C-qwuy58.js → Logo-GlNrhpKp.js} +1 -1
- package/frontend/dist/js/{LogoMark-zP-mitdI.js → LogoMark-rgOHhWo-.js} +1 -1
- package/frontend/dist/js/{ModelManagerModals-BYhFWv22.js → ModelManagerModals-inYMmqa4.js} +1 -1
- package/frontend/dist/js/NotesPage-kYFIBBCu.js +3 -0
- package/frontend/dist/js/{PasswordStrengthMeter-Dow8ZeTs.js → PasswordStrengthMeter-ppDWQU9P.js} +1 -1
- package/frontend/dist/js/PersonasPage-mzAft_NC.js +13 -0
- package/frontend/dist/js/PluginUsagePage-DQvsXxpI.js +1 -0
- package/frontend/dist/js/{RichMessageContent-DJTLGpws.js → RichMessageContent-BW9UvzYw.js} +1 -1
- package/frontend/dist/js/{RichMessageContent-Bwpg3rfV.js → RichMessageContent-BraVuu1Q.js} +3 -3
- package/frontend/dist/js/SettingsModal-B-5JP50i.js +19 -0
- package/frontend/dist/js/SettingsToggle-BT6cbOnw.js +1 -0
- package/frontend/dist/js/{ShareDialog-DYwyeyaI.js → ShareDialog-CmgHPnKg.js} +1 -1
- package/frontend/dist/js/StrandsPage-Dg55juWQ.js +1 -0
- package/frontend/dist/js/{SystemPage-B4qFsAsb.js → SystemPage-PZhbWJCh.js} +1 -1
- package/frontend/dist/js/{TurnstileWidget-xx9lQV0b.js → TurnstileWidget-B_dl1YjT.js} +1 -1
- package/frontend/dist/js/{UserManagementPage-DhMRuhqj.js → UserManagementPage-BrogyZDQ.js} +1 -1
- package/frontend/dist/js/UserManagementPanel-DBwIOSOw.js +1 -0
- package/frontend/dist/js/{WhatsNewModal-DfR7W93-.js → WhatsNewModal-DunfwUe9.js} +1 -1
- package/frontend/dist/js/WorkPage-DQlsa18h.js +7 -0
- package/frontend/dist/js/api-DG2AKSTU.js +16 -0
- package/frontend/dist/js/api-DdDgFM-F.js +1 -0
- package/frontend/dist/js/{appNavigation-BifMRN3D.js → appNavigation-DXonlffV.js} +1 -1
- package/frontend/dist/js/{appStore-B6pAGo3p.js → appStore-DMmgXb-0.js} +2 -2
- package/frontend/dist/js/appVersion-Bl_QXi35.js +1 -0
- package/frontend/dist/js/authStore-ByVF8A2u.js +1 -0
- package/frontend/dist/js/{authStore-DdIb6km_.js → authStore-C89vePrB.js} +3 -3
- package/frontend/dist/js/chatStore-BooPA4cg.js +3 -0
- package/frontend/dist/js/{client-D_F_0LqX.js → client-D05vqJPO.js} +2 -2
- package/frontend/dist/js/{config-CHUQTU6j.js → config-DCQ2-rvE.js} +1 -1
- package/frontend/dist/js/{evaluationsApi-C0FKNJua.js → evaluationsApi-oCNxDBZ4.js} +1 -1
- package/frontend/dist/js/logger-DAQsBb8I.js +1 -0
- package/frontend/dist/js/markdown-html-DRL6swKb.js +2 -0
- package/frontend/dist/js/{markdown-math-BzLEmswF.js → markdown-math-CCWDDhWR.js} +3 -3
- package/frontend/dist/js/{markdownHtml-B1Ll_Qgp.js → markdownHtml-DpKMtcCu.js} +1 -1
- package/frontend/dist/js/markdownMath-CKB9Q-yN.js +1 -0
- package/frontend/dist/js/{messageCodeStyles-DVYyK8wm.js → messageCodeStyles-tSFFCV6k.js} +1 -1
- package/frontend/dist/js/rfb-xHgMEWMb.js +5 -0
- package/frontend/dist/js/router-vendor-DLHZHk4K.js +1 -0
- package/frontend/dist/js/{strandsApi-CeJLezXW.js → strandsApi-Fs6zV4CA.js} +1 -1
- package/frontend/dist/js/{teamEventStream-DOMyufrH.js → teamEventStream-DD_ASSs5.js} +1 -1
- package/frontend/dist/js/ui-DATtlADq.js +2 -0
- package/frontend/dist/js/ui-vendor-WdvBNwsu.js +1 -0
- package/frontend/dist/js/useChat-RXTiCFz0.js +13 -0
- package/frontend/dist/js/useDictation-YyALwnw6.js +1 -0
- package/frontend/dist/js/useQuery-DCqz3UJt.js +1 -0
- package/frontend/dist/js/{useTranslation-D9EScZXH.js → useTranslation-D-_KTORQ.js} +1 -1
- package/frontend/dist/js/utils-DsCVr_wG.js +1 -0
- package/frontend/dist/js/workApi-CbFQfwRZ.js +5 -0
- package/frontend/dist/js/workApi-CmH9c1xh.js +1 -0
- package/package.json +3 -3
- package/plugins/baseten.json +68 -0
- package/plugins/codex-oauth.json +1 -0
- package/plugins/modal.json +82 -0
- package/plugins/openai.json +2 -1
- package/plugins/openrouter.json +1 -0
- package/frontend/dist/assets/index-BnbO3eTY.js +0 -83
- package/frontend/dist/assets/index-CYKYBgsy.css +0 -2
- package/frontend/dist/js/ArtifactSlideOutPanel-DZnVzC0c.js +0 -1
- package/frontend/dist/js/AutomationsPage-D7UtYZ_0.js +0 -1
- package/frontend/dist/js/CalendarPage-WmA1i7MQ.js +0 -1
- package/frontend/dist/js/ChannelsPage-Bq4JQPR_.js +0 -1
- package/frontend/dist/js/ChatPage-Cd3fxx-N.js +0 -14
- package/frontend/dist/js/ConnectModels-BYul-veF.js +0 -1
- package/frontend/dist/js/EvaluationsPage-CV_Terzn.js +0 -2
- package/frontend/dist/js/FirstTimeSetup-CFhGy9a8.js +0 -1
- package/frontend/dist/js/GalleryPage-BRKZyq1w.js +0 -1
- package/frontend/dist/js/HomePage-DdpnBu-Z.js +0 -1
- package/frontend/dist/js/NotesPage-CmvVoWcH.js +0 -3
- package/frontend/dist/js/PersonasPage-BYKtoKWl.js +0 -13
- package/frontend/dist/js/PluginUsagePage-BVTOCxoE.js +0 -1
- package/frontend/dist/js/SettingsModal-CGyVfxOz.js +0 -19
- package/frontend/dist/js/SettingsToggle-BpD6NSri.js +0 -1
- package/frontend/dist/js/StrandsPage-CvXeYOYR.js +0 -1
- package/frontend/dist/js/UserManagementPanel-BVLSvRwa.js +0 -1
- package/frontend/dist/js/WorkPage-DSKBQEW0.js +0 -7
- package/frontend/dist/js/api-C5ps_CWQ.js +0 -1
- package/frontend/dist/js/api-D6IF0v9_.js +0 -16
- package/frontend/dist/js/appVersion-9UMn7b1T.js +0 -1
- package/frontend/dist/js/authStore-CDo5Co2D.js +0 -1
- package/frontend/dist/js/chatStore-hzQyRM9H.js +0 -3
- package/frontend/dist/js/logger-rEW7uQ8m.js +0 -1
- package/frontend/dist/js/markdown-html-BdYVneHE.js +0 -2
- package/frontend/dist/js/markdownMath-aI8uDQmz.js +0 -1
- package/frontend/dist/js/rfb-IV07oQgM.js +0 -5
- package/frontend/dist/js/router-vendor-qltZAWoz.js +0 -1
- package/frontend/dist/js/ui-D4Ytvr6d.js +0 -2
- package/frontend/dist/js/ui-vendor-BTcw5yZ6.js +0 -1
- package/frontend/dist/js/useChat-BEbNywiP.js +0 -13
- package/frontend/dist/js/useDictation-jTaorrHm.js +0 -1
- package/frontend/dist/js/useQuery-2_pQiHbl.js +0 -1
- package/frontend/dist/js/utils-BvvV-Cka.js +0 -1
- package/frontend/dist/js/workApi-CGvfDTRY.js +0 -1
- package/frontend/dist/js/workApi-_0oxRyak.js +0 -5
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
(function(){var e=Object.defineProperty,t=(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},n=window.__libreArtifactRuntime.modules[`react/jsx-runtime`];n.default;var{Fragment:r,jsx:i,jsxs:a}=n,o=window.__libreArtifactRuntime.modules.react;o.default;var{Activity:s,Children:c,Component:l,Fragment:u,Profiler:d,PureComponent:f,StrictMode:p,Suspense:m,ViewTransition:h,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:g,__COMPILER_RUNTIME:_,act:v,addTransitionType:y,cache:b,cacheSignal:x,captureOwnerStack:S,cloneElement:C,createContext:w,createElement:T,createRef:ee,forwardRef:te,isValidElement:E,lazy:ne,memo:re,startTransition:ie,unstable_useCacheRefresh:ae,use:oe,useActionState:se,useCallback:ce,useContext:D,useDebugValue:le,useDeferredValue:ue,useEffect:O,useEffectEvent:de,useId:fe,useImperativeHandle:pe,useInsertionEffect:me,useLayoutEffect:he,useMemo:ge,useOptimistic:_e,useReducer:ve,useRef:k,useState:A,useSyncExternalStore:ye,useTransition:be,version:xe}=o,Se=w({});function j(e){let t=k(null);return t.current===null&&(t.current=e()),t.current}var Ce=typeof window<`u`,we=Ce?he:O,Te=w(null);function Ee(e,t){e.indexOf(t)===-1&&e.push(t)}function De(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Oe([...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 M=(e,t,n)=>n>t?t:n<e?e:n;function ke(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}var Ae=()=>{},je=()=>{},N={},Me=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Ne=e=>typeof e==`object`&&!!e,Pe=e=>/^0[^.\s]+$/u.test(e);function Fe(e){let t;return()=>(t===void 0&&(t=e()),t)}var P=e=>e,Ie=(...e)=>e.reduce((e,t)=>n=>t(e(n))),Le=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},Re=class{constructor(){this.subscriptions=[]}add(e){return Ee(this.subscriptions,e),()=>this.remove(e)}remove(e){De(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}},F=e=>e*1e3,I=e=>e/1e3,ze=(e,t)=>t?1e3/t*e:0,Be=new Set;function Ve(e){return Be.has(e)}function He(e,t,n){e||Be.has(t)||(console.warn(ke(t,n)),Be.add(t))}var Ue=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},We=(e,t,n)=>e*(3*(1-e)*((1-e)*t+e*n)+e*e);function Ge(e,t,n,r){return e===t&&n===r?P:i=>{let a=0,o=1,s=i;for(let t=0;;t++){s>=a&&s<=o||(s=(a+o)/2);let r=We(s,e,n)-i;if(r*r<1e-28||t===40)break;r>0?o=s:a=s,s-=r*1e-7/(We(s+1e-7,e,n)-i-r)}return We(s,t,r)}}var Ke=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,qe=e=>t=>1-e(1-t),Je=Ge(.33,1.53,.69,.99),Ye=qe(Je),Xe=Ke(Ye),Ze=e=>e>=1?1:(e*=2)<1?.5*Ye(e):.5*(2-2**(-10*(e-1))),Qe=e=>1-Math.sin(Math.acos(e)),$e=qe(Qe),et=Ke(Qe),tt=Ge(.42,0,1,1),nt=Ge(0,0,.58,1),rt=Ge(.42,0,.58,1);function it(e,t=`end`){return n=>{n=t===`end`?Math.min(n,.999):Math.max(n,.001);let r=n*e;return M(0,1,(t===`end`?Math.floor(r):Math.ceil(r))/e)}}var at=e=>Array.isArray(e)&&typeof e[0]!=`number`;function ot(e,t){return at(e)?e[Ue(0,e.length,t)]:e}var st=e=>Array.isArray(e)&&typeof e[0]==`number`,ct={linear:P,easeIn:tt,easeInOut:rt,easeOut:nt,circIn:Qe,circInOut:et,circOut:$e,backIn:Ye,backInOut:Xe,backOut:Je,anticipate:Ze},lt=e=>typeof e==`string`,ut=e=>{if(st(e)){e.length;let[t,n,r,i]=e;return Ge(t,n,r,i)}return lt(e)?(ct[e],`${e}`,ct[e]):e},L={delta:0,timestamp:0,isProcessing:!1},dt;function ft(){dt=void 0}var R={now:()=>(dt===void 0&&R.set(L.isProcessing||N.useManualTiming?L.timestamp:performance.now()),dt),set:e=>{dt=e,queueMicrotask(ft)}},pt=e=>Math.round(e*1e5)/1e5,mt=e=>t=>typeof t==`string`&&t.startsWith(e),ht=mt(`--`),gt=mt(`var(--`),_t=e=>gt(e)?vt.test(e.split(`/*`)[0].trim()):!1,vt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function yt(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var bt={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},xt={...bt,transform:e=>M(0,1,e)},St={...bt,default:1},Ct=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function wt(e){return e==null}var Tt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Et=(e,t)=>n=>!!(typeof n==`string`&&Tt.test(n)&&n.startsWith(e)||t&&!wt(n)&&Object.prototype.hasOwnProperty.call(n,t)),Dt=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Ct);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Ot=e=>M(0,255,e),kt={...bt,transform:e=>Math.round(Ot(e))},At={test:Et(`rgb`,`red`),parse:Dt(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+kt.transform(e)+`, `+kt.transform(t)+`, `+kt.transform(n)+`, `+pt(xt.transform(r))+`)`};function jt(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 Mt={test:Et(`#`),parse:jt,transform:At.transform},Nt=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Pt=Nt(`deg`),Ft=Nt(`%`),z=Nt(`px`),It=Nt(`vh`),Lt=Nt(`vw`),Rt={...Ft,parse:e=>Ft.parse(e)/100,transform:e=>Ft.transform(e*100)},zt={test:Et(`hsl`,`hue`),parse:Dt(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Ft.transform(pt(t))+`, `+Ft.transform(pt(n))+`, `+pt(xt.transform(r))+`)`},B={test:e=>At.test(e)||Mt.test(e)||zt.test(e),parse:e=>At.test(e)?At.parse(e):zt.test(e)?zt.parse(e):Mt.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?At.transform(e):zt.transform(e),getAnimatableNone:e=>{let t=B.parse(e);return t.alpha=0,B.transform(t)}},Bt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Vt=new RegExp(Ct.source),Ht=new RegExp(Bt.source,`i`);function Ut(e){return isNaN(e)&&typeof e==`string`&&(Vt.test(e)||Ht.test(e))}var Wt=`number`,Gt=`color`,Kt=`var`,qt=`var(`,Jt="${}",Yt=/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+)(?![a-z]*\()/giu;function Xt(e){let t=e.toString();return Vt.test(t)||Ht.test(t)}function Zt(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Yt,e=>(B.test(e)?(r.color.push(a),i.push(Gt),n.push(B.parse(e))):e.startsWith(qt)?(r.var.push(a),i.push(Kt),n.push(e)):(r.number.push(a),i.push(Wt),n.push(parseFloat(e))),++a,Jt)).split(Jt),indexes:r,types:i}}function Qt(e){return Zt(e).values}function $t({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===Wt?pt(r[a]):e===Gt?B.transform(r[a]):r[a]}return i}}function en(e){return $t(Zt(e))}var tn=e=>typeof e==`number`?0:B.test(e)?B.getAnimatableNone(e):e,nn=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:tn(e);function rn(e){let t=Zt(e);return $t(t)(t.values.map((e,n)=>nn(e,t.split[n])))}var V={test:Ut,parse:Qt,createTransformer:en,getAnimatableNone:rn};function an(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 on({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=an(s,r,e+1/3),a=an(s,r,e),o=an(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function sn(e,t){return n=>n>0?t:e}var H=(e,t,n)=>e+(t-e)*n,cn=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},ln=[Mt,At,zt],un=e=>ln.find(t=>t.test(e));function dn(e){let t=un(e);if(!t)return`${e}`,!1;let n=t.parse(e);return t===zt&&(n=on(n)),n}var fn=(e,t)=>{let n=dn(e),r=dn(t);if(!n||!r)return sn(e,t);let i={...n};return e=>(i.red=cn(n.red,r.red,e),i.green=cn(n.green,r.green,e),i.blue=cn(n.blue,r.blue,e),i.alpha=H(n.alpha,r.alpha,e),At.transform(i))},pn=new Set([`none`,`hidden`]);function mn(e,t){return pn.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function hn(e,t){return n=>H(e,t,n)}function gn(e){return typeof e==`number`?hn:typeof e==`string`?_t(e)?sn:B.test(e)?fn:bn:Array.isArray(e)?_n:typeof e==`object`?B.test(e)?fn:vn:sn}function _n(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>gn(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function vn(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=gn(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function yn(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 bn=(e,t)=>{let n=V.createTransformer(t),r=Zt(e),i=Zt(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?pn.has(e)&&!i.values.length||pn.has(t)&&!r.values.length?mn(e,t):Ie(_n(yn(r,i),i.values),n):(`${e}${t}`,sn(e,t))},xn=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function Sn(e,t){let n=xn.exec(e);if(!n)return;let r=xn.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>pt(H(a,o,e))+i}function Cn(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return H(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=Sn(e,t);if(n)return n}return gn(e)(e,t)}var wn=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function Tn(e){let t=new Set,n=new Set,r=!1,i=!1,a,o=new Set,s={delta:0,timestamp:0,isProcessing:!1};function c(t){o.has(t)&&(n.add(t),e()),(a=t)(s)}let l={schedule:(e,i=!1,s=!1)=>{let c=s&&r,l=c?t:n;return i&&o.add(e),c&&e!==a&&l.delete(e),l.add(e),e},cancel:e=>{n.delete(e),o.delete(e)},process:e=>{if(s=e,r){i=!0;return}r=!0;let o=t;t=n,n=o,t.forEach(c),t.clear(),a=void 0,r=!1,i&&(i=!1,l.process(e))}};return l}var En=40;function Dn(e,t,n={delta:0,timestamp:0,isProcessing:!1}){let r=!1,i=!0,a=()=>r=!0,o=wn.reduce((e,t)=>(e[t]=Tn(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=N.useManualTiming,o=a?n.timestamp:performance.now();r=!1,a||(n.delta=i?1e3/60:Math.max(Math.min(o-n.timestamp,En),1)),n.timestamp=o,n.isProcessing=!0,s.process(n),c.process(n),l.process(n),u.process(n),d.process(n),f.process(n),p.process(n),m.process(n),n.isProcessing=!1,r&&t&&(i=!1,e(h))},g=()=>{r=!0,i=!0,n.isProcessing||e(h)};return{schedule:wn.reduce((e,t)=>{let n=o[t];return e[t]=(e,t=!1,i=!1)=>(r||g(),n.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<wn.length;t++)o[wn[t]].cancel(e)},state:n,steps:o}}var{schedule:U,cancel:W,steps:On}=Dn(typeof requestAnimationFrame<`u`?requestAnimationFrame:P,!0,L),kn=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>U.update(t,e),stop:()=>W(t),now:()=>L.isProcessing?L.timestamp:R.now()}},An=(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)})`},jn=2e4;function Mn(e,t=50,n=jn,r){let i=0,a=e.next(i);for(r?.push(a.value);!a.done&&i<n;)i+=t,a=e.next(i),r?.push(a.value);return i>=n?1/0:i}function Nn(e,t=100,n){let{keyframes:r,velocity:i}=e,a=r&&r[r.length-1]-r[0],o=n({...e,velocity:i&&a?i*t/a:i,keyframes:[0,t]}),s=Math.min(Mn(o),jn);return{type:`keyframes`,ease:e=>o.next(s*e).value/t,duration:I(s)}}var G={stiffness:100,damping:10,mass:1,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05},Pn=e=>e<0?1/Math.max(1+e,G.minDamping):Math.max(1-e,G.minDamping);function Fn(e,t){if(!(e>1))return 1;let n=Math.sqrt(e*e-1),r=e-n,i=e+n,a=2*n*Math.exp(-t)*(1+t);return Rn(e=>i*Math.exp(-r*e)-r*Math.exp(-i*e)-a,e=>Math.exp(-i*e)-Math.exp(-r*e),t)/t}function In(e,t){return e*Math.sqrt(1-t*t)}var Ln=12;function Rn(e,t,n){let r=n;for(let n=1;n<Ln;n++)r-=e(r)/t(r);return r}var zn=.001;function Bn({duration:e=G.duration,bounce:t=G.bounce}){let n,r;G.maxDuration;let i=Pn(t);e=M(G.minDuration,G.maxDuration,I(e)),i<1?(n=t=>{let n=t*i,r=n*e,a=In(t,i),o=Math.exp(-r);return zn-n/a*o},r=t=>{let r=t*i*e,a=i*i*t*t*e,o=Math.exp(-r),s=In(t*t,i);return(-n(t)+zn>0?-1:1)*-a*o/s}):(n=t=>-.001+Math.exp(-t*e)*(t*e+1),r=t=>Math.exp(-t*e)*(-t*(e*e)));let a=5/e,o=Rn(n,r,a),s=o*Fn(i,o*e),c=s*s;return{stiffness:c,damping:i*2*Math.sqrt(c),duration:F(e)}}var Vn=(e,t)=>(t?e>=0:e>0)&&e<1/0;function Hn(e,t){if(Vn(e,t))return e}function Un(e){let t=Hn(e.stiffness),n=Hn(e.damping,!0),r=Hn(e.mass),i={...e,stiffness:t??G.stiffness,damping:n??G.damping,mass:r??G.mass,isResolvedFromDuration:!1,isTimeDefined:(t??n??r)===void 0&&(e.duration!==void 0||e.bounce!==void 0)};if(i.isTimeDefined){if(e.visualDuration){let t=Pn(e.bounce||0),n=2*Math.PI/(e.visualDuration*1.2)*Fn(t,2*Math.PI/1.2);i.stiffness=n*n,i.damping=2*t*Math.sqrt(i.stiffness)}else Object.assign(i,Bn(i)),i.isResolvedFromDuration=!0;Vn(i.stiffness)&&Vn(i.damping,!0)||(i.stiffness=G.stiffness,i.damping=G.damping)}return i}function Wn(e=G.visualDuration,t=G.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},r=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:o,damping:s,mass:c,duration:l,isResolvedFromDuration:u,isTimeDefined:d}=Un({...n}),f=e=>d?0:-I(e),p=s/(2*Math.sqrt(o*c)),m=I(Math.sqrt(o/c)),h=p*m,g={target:i,delta:i-r,velocity:f(n.velocity||0)||0,restSpeed:0,restDelta:0},_=()=>{let e=Math.abs(g.delta)<5;g.restSpeed=n.restSpeed||(e?G.restSpeed.granular:G.restSpeed.default),g.restDelta=n.restDelta||(e?G.restDelta.granular:G.restDelta.default)};_();let v,y,b;if(p<1){let e=In(m,p),t={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};b=()=>{t.A=(g.velocity+h*g.delta)/e,t.sinC=h*t.A+g.delta*e,t.cosC=h*g.delta-t.A*e};let n=n=>{n!==t.t&&(t.t=n,t.env=Math.exp(-h*n),t.sin=Math.sin(e*n),t.cos=Math.cos(e*n))};v=e=>(n(e),g.target-t.env*(t.A*t.sin+g.delta*t.cos)),y=e=>(n(e),t.env*(t.sinC*t.sin+t.cosC*t.cos))}else if(p===1){v=e=>g.target-Math.exp(-m*e)*(g.delta+(g.velocity+m*g.delta)*e);let e={C:0};b=()=>{e.C=g.velocity+m*g.delta},y=t=>Math.exp(-m*t)*(m*e.C*t-g.velocity)}else{let e=m*Math.sqrt(p*p-1),t=h-e,n=h+e,r=d?1/0:300/e,i=(e,t)=>Math.exp(t>r?-e*r-h*(t-r):-e*t),a={S:0,F:0};b=()=>{let t=(g.velocity+h*g.delta)/e;a.S=(g.delta+t)/2,a.F=(g.delta-t)/2},v=e=>g.target-a.S*i(t,e)-a.F*i(n,e),y=e=>t*a.S*i(t,e)+n*a.F*i(n,e)}b();let x=u&&l||null,S={calculatedDuration:x,retarget:(e,t)=>{g.target=e[e.length-1],g.delta=g.target-e[0],g.velocity=f(t),n.restSpeed&&n.restDelta||_(),S.calculatedDuration=x,a.done=!1,b()},velocity:e=>F(y(e)),next:e=>{let t=v(e);if(u)a.done=e>=l;else{let n=F(y(e));a.done=Math.abs(n)<=g.restSpeed&&Math.abs(g.target-t)<=g.restDelta}return a.value=a.done?g.target:t,a},toString:()=>{let e=Math.min(Mn(S),jn),t=An(t=>S.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return S}var Gn=Object.assign(Wn,{applyToOptions:e=>{let t=Nn(e,100,Wn);return e.ease=t.ease,e.duration=F(t.duration),e.type=`keyframes`,e}});function Kn({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=>e<s||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=>{let t=v(e);f.done=Math.abs(t)<=l,f.value=f.done?_:_+t},b,x,S=e=>{p(f.value)&&(b=e,x=Gn({keyframes:[f.value,m(f.value)],velocity:-v(e)/r*1e3,damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return!x&&b===void 0&&(t=!0,y(e),S(e)),b!==void 0&&e>=b?x.next(e-b):(!t&&y(e),f)}}}function qn(e,t,n){let r=[],i=n||N.mix||Cn,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=Ie(Array.isArray(t)?t[n]||P:t,a)),r.push(a)}return r}function Jn(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=qn(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=Le(e[r],e[r+1],n);return s[r](i)};return n?t=>l(M(e[0],e[a-1],t)):l}function Yn(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Le(0,t,r);e.push(H(n,1,i))}}function Xn(e){let t=[0];return Yn(t,e.length-1),t}function Zn(e,t){return e.map(e=>e*t)}function Qn(e,t){return e.map(()=>t||rt).splice(0,e.length-1)}function $n({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=at(r)?r.map(ut):ut(r)||rt,a={done:!1,value:t[0]};if(t.length===2&&!Array.isArray(i)&&(!n||n.length!==2||n[0]===0&&n[1]===1)){let[n,r]=t,o=n===r?void 0:(N.mix||Cn)(n,r);return{calculatedDuration:e,next:t=>(a.value=o?o(i(e>0?M(0,1,t/e):1)):r,a.done=t>=e,a)}}let o=Jn(Zn(n&&n.length===t.length?n:Xn(t),e),t,{ease:Array.isArray(i)?i:Qn(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var er=5;function tr(e,t,n){let r=Math.max(t-er,0);return ze(n-e(r),t-r)}function nr(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):tr(t=>e.next(t).value,t,e.next(t).value)}var rr=e=>e!==null;function ir(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(rr),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var ar={decay:Kn,inertia:Kn,tween:$n,keyframes:$n,spring:Gn};function or(e){typeof e.type==`string`&&(e.type=ar[e.type])}var sr=40,cr=(e,t)=>t-e>sr&&!N.useManualTiming?t:e;function lr(e,t){return{kind:e,animation:t,timestamp:R.now(),frameTimestamp:L.timestamp,frameIsProcessing:L.isProcessing}}function ur(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({...lr(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}function dr(e,t){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...lr(`layout-animation-start`,e),node:t})}catch{}}var fr=class{constructor(){this.isResolved=!1}get finished(){return this._finished||=this.isResolved?Promise.resolve():new Promise(e=>{this._resolve=e}),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(e,t){return this.finished.then(e,t)}},pr=e=>e/100,mr=e=>Math.round(e*1e4)/1e4,hr=class extends fr{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!==R.now()&&this.tick(R.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),ur(this,this.options)}initAnimation(){let{options:e}=this;or(e);let{type:t=$n,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||$n;s!==$n&&typeof o[0]!=`number`&&(this.mixKeyframes=Ie(pr,Cn(o[0],o[1])),o=[0,100]);let c=s(o===e.keyframes?e:{...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Mn(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,calculatedDuration:i}=this;if(this.startTime===null)return n.next(0);let{delay:a=0,keyframes:o,type:s,onUpdate:c,finalKeyframe:l}=this.options;this.startTime===this.pendingStartTime&&(this.startTime=cr(this.startTime,e)),this.pendingStartTime=void 0,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 u=this.currentTime-a*(this.playbackSpeed>=0?1:-1),d=this.playbackSpeed>=0?u<0:u>r;this.currentTime=Math.max(u,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let f=this.generate(this.currentTime,d),{done:p}=f;!d&&i!==null&&(p=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let m=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&p);return m&&s!==Kn&&(f.value=ir(o,this.options,l,this.speed)),c&&c(f.value),m&&this.finish(),f}at(e){return this.holdTime??mr((e-this.startTime)*this.playbackSpeed)}sampleAt(e,t){let{options:n,totalDuration:r}=this,i=this.at(e)-(n.delay||0);return i>=r&&n.type!==Kn?ir(n.keyframes,n,t?void 0:n.finalKeyframe):this.generate(Math.max(i,0),i<0).value}generate(e,t){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o}=this,{keyframes:s,repeat:c,repeatType:l,repeatDelay:u}=this.options,d=e,f=n;if(c){let t=Math.min(e,r)/o,n=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),i===1&&n--,n=Math.min(n,c+1),n%2&&(l===`reverse`?(i=1-i,u&&(i-=u/o)):l===`mirror`&&(f=a)),d=M(0,1,i)*o}let p;return t?(this.delayState.value=s[0],p=this.delayState):p=f.next(d),i&&!t&&(p.value=i(p.value)),p}then(e,t){return this.finished.then(e,t)}get duration(){return I(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+I(e)}get time(){return I(this.currentTime)}set time(e){e=F(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(){return nr(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(R.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=I(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=kn,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??(this.pendingStartTime=n):this.startTime=n-this.holdTime/(this.playbackSpeed||1),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(R.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 gr(e){return new hr(e)}var _r=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function vr(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Ct)||[];if(!r)return e;let i=n.replace(r,``),a=+!!_r.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var yr=/\b([a-z-]*)\(.*?\)/gu,br={...V,getAnimatableNone:e=>{let t=e.match(yr);return t?t.map(vr).join(` `):e}},xr={...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))}},Sr={...bt,transform:Math.round},Cr={rotate:Pt,pathRotation:Pt,rotateX:Pt,rotateY:Pt,rotateZ:Pt,scale:St,scaleX:St,scaleY:St,scaleZ:St,skew:Pt,skewX:Pt,skewY:Pt,distance:z,translateX:z,translateY:z,translateZ:z,x:z,y:z,z,perspective:z,transformPerspective:z,opacity:xt,originX:Rt,originY:Rt,originZ:z},K={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,...Cr,zIndex:Sr,fillOpacity:xt,strokeOpacity:xt,numOctaves:Sr},wr={...K,color:B,backgroundColor:B,outlineColor:B,fill:B,stroke:B,borderColor:B,borderTopColor:B,borderRightColor:B,borderBottomColor:B,borderLeftColor:B,filter:br,WebkitFilter:br,mask:xr,WebkitMask:xr},Tr=e=>wr[e],Er=new Set([br,xr]);function Dr(e,t){let n=Tr(e);return Er.has(n)||(n=V),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function Or(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var kr=e=>e*180/Math.PI,Ar=e=>Mr(kr(Math.atan2(e[1],e[0]))),jr={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scaleZ:()=>1,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ar,rotateZ:Ar,skewX:e=>kr(Math.atan(e[1])),skewY:e=>kr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Mr=e=>(e%=360,e<0&&(e+=360),e),Nr=Ar,Pr=e=>Math.hypot(e[0],e[1]),Fr=e=>Math.hypot(e[4],e[5]),Ir={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Pr,scaleY:Fr,scaleZ:e=>Math.hypot(e[8],e[9],e[10]),scale:e=>(Pr(e)+Fr(e))/2,rotateX:e=>Mr(kr(Math.atan2(e[6],e[5]))),rotateY:e=>Mr(kr(Math.atan2(-e[2],e[0]))),rotateZ:Nr,rotate:Nr,skewX:e=>kr(Math.atan(e[4])),skewY:e=>kr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Lr(e){return+!!e.includes(`scale`)}function Rr(e,t){if(!e||e===`none`)return Lr(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Ir,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=jr,i=t}if(!i)return Lr(t);let a=r[t],o=i[1].split(`,`).map(Br);return typeof a==`function`?a(o):o[a]}var zr=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Rr(n,t)};function Br(e){return parseFloat(e.trim())}var q=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`scaleZ`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],J=new Set([...q,`pathRotation`]),Vr=e=>e===bt||e===z,Hr=new Set([`x`,`y`,`z`]),Ur=q.filter(e=>!Hr.has(e));function Wr(e){let t=[];return Ur.forEach(n=>{let r=e.getValue(n);if(r!==void 0){let e=r.get(),i=+!!n.startsWith(`scale`);if(e===i)return;t.push([n,e]),r.set(i)}}),t}var Gr=new Set([`bottom`,`right`]);function Kr(e,t,n,r,i,a){let o=parseFloat(e);if(!isNaN(o))return o;let{min:s,max:c}=t()[n],l=c-s;return a===`border-box`?l:l-parseFloat(r)-parseFloat(i)}var qr=({transform:e})=>Rr(e,`x`),Jr=({transform:e})=>Rr(e,`y`),Yr={width:({width:e,paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r},i)=>Kr(e,i,`x`,t,n,r),height:({height:e,paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r},i)=>Kr(e,i,`y`,t,n,r),top:({top:e})=>parseFloat(e),left:({left:e})=>parseFloat(e),bottom:({top:e},t)=>{let{y:n}=t();return parseFloat(e)+(n.max-n.min)},right:({left:e},t)=>{let{x:n}=t();return parseFloat(e)+(n.max-n.min)},x:qr,y:Jr,translateX:qr,translateY:Jr},Xr=new Set,Zr=!1,Qr=!1,$r=!1;function ei(){if(Qr){let e=[],t=new Set,n=new Set;Xr.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),Gr.has(r.name)&&n.add(r.element))});let r=new Map;n.forEach(e=>{let t=Wr(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.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)})}Qr=!1,Zr=!1,Xr.forEach(e=>e.complete($r)),Xr.clear()}function ti(){Xr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Qr=!0)})}function ni(){$r=!0,ti(),ei(),$r=!1}function ri(e,t,n){if(typeof e==`string`){if(Me(e)||Pe(e))return parseFloat(e);if(!V.test(e)&&V.test(n))return Dr(t,n)}return e??void 0}var ii=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?(Xr.add(this),Zr||(Zr=!0,U.read(ti),U.resolveKeyframes(ei))):(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=ri(n.readValue(t,a),t,a);r!==void 0&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}Or(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Xr.delete(this)}cancel(){this.state===`scheduled`&&(Xr.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},ai=e=>e.startsWith(`--`);function oi(e,t,n){ai(t)?e.style.setProperty(t,n):e.style[t]=n}var si={};function ci(e,t){let n=Fe(e);return()=>si[t]??n()}var li=ci(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),ui=ci(()=>window.ViewTimeline!==void 0,`viewTimeline`),di=ci(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),fi=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,pi={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:fi([0,.65,.55,1]),circOut:fi([.55,0,1,.45]),backIn:fi([.31,.01,.66,-.59]),backOut:fi([.33,1.53,.69,.99])};function mi(e,t){if(e)return typeof e==`function`?di()?An(e,t):`ease-out`:st(e)?fi(e):Array.isArray(e)?e.map(e=>mi(e,t)||pi.easeOut):pi[e]}function hi(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=mi(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 gi(e){return typeof e==`function`&&`applyToOptions`in e}function _i({type:e,...t}){return gi(e)&&di()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var vi=class extends fr{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=_i(e);this.animation=hi(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=ir(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),oi(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},ur(this,e,c)}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(){this.isStopped||(this.isStopped=!0,this.state!==`idle`&&this.finishedTime===null&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||(this.animation.onfinish=null,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 I(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+I(e)}get time(){return I(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=F(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,onAttach:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&li()?(this.animation.timeline=e,t?.(this.animation),P):n(this)}},yi={anticipate:Ze,backInOut:Xe,circInOut:et};function bi(e){return e in yi}function xi(e){typeof e.ease==`string`&&bi(e.ease)&&(e.ease=yi[e.ease])}var Si=class extends vi{constructor(e){xi(e),or(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}elapsed(){return this.state===`running`?(R.now()-this.startTime)*this.speed:this.time*1e3}sample(e){if(!this.sampler){let{motionValue:e,onUpdate:t,onComplete:n,onPlay:r,onStop:i,element:a,...o}=this.options;this.sampler=new hr({...o,autoplay:!1}),this.sampler.stop()}return this.sampler.sample(Math.max(0,e)).value}liveValue(){let{state:e}=this;if(e===`running`||e===`paused`)return this.sample(this.elapsed())}updateMotionValue(e){let{motionValue:t,element:n,name:r}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let{speed:i}=this,a=this.elapsed(),o=this.state===`running`&&i?M(0,10,a):0,s=this.sample(a);n&&r&&oi(n,r,s),t.setWithVelocity(this.sample(a-o*Math.sign(i)),s,o/Math.abs(i||1))}},Ci=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(V.test(e)||e===`0`)&&!e.startsWith(`url(`));function wi(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 Ti(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=Ci(i,t),s=Ci(a,t);return!o||!s?(o!==s&&`${t}${i}${a}${o?a:i}`,!1):wi(e)||(n===`spring`||gi(n))&&r}function Ei(e){e.duration=0,e.type=`keyframes`}var Di=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),Oi=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function ki(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Oi.test(e[t]))return!0;return!1}var Ai=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),ji=()=>!N.useManualTiming&&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;if(!n||!(Di.has(n)||Ai.has(n)))return!1;let c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return ji()&&(Di.has(n)||Ai.has(n)&&ki(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Ni=(e,t)=>t&&typeof e==`number`?t.transform(e):e,Pi={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Fi=q.length;function Ii(e,t,n){let r=``,i=!0;for(let a=0;a<Fi;a++){let o=q[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=Ni(s,K[o]);if(!c){i=!1;let t=Pi[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${Ni(a,K.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}var Li=new WeakMap,Ri=200,zi=.001,Bi=.1,Vi=.001,Hi=100,Ui=e=>/^(linear|ease(In|Out|InOut))$/.test(e),Wi=(e,t)=>e-t,Gi=(e,t,n)=>{let r=[];for(let i=0;i<=n;i++)r.push(H(e,t,i/n));return r},Ki=e=>e.motionValue.owner,qi=e=>Li.get(e),Ji=(e,t)=>e.latestValues?e.latestValues[t]:e.getValue(t)?.get(),Yi=({name:e,motionValue:t})=>e&&q.includes(e)&&t?.owner?.current instanceof HTMLElement&&ji()&&di();function Xi(e){let t=Ki(e),{onUpdate:n,transformTemplate:r}=t.getProps();return!e.isHandoff&&!n&&!e.hasOnUpdate&&!r&&e.type!==`inertia`&&(Ji(t,`transform`)||`none`)===`none`&&!Ji(t,`pathRotation`)&&!t.projection?.isProjecting()}var Zi=class extends hr{constructor(e){let t=Ki(e).current,{driver:n=kn}=e,r,i=Xi(e);e.driver=e=>{let i=n(e);return{js:i,now:i.now,start:(e=!0)=>{let n=qi(t);!n||n.isJS?i.start(e):n.schedule(!1,!e)},stop:()=>{i.stop();let e=qi(t);e&&!e.isFinishing&&e.release(r)}}},super(e),r=this,this.canAccelerate=i;let{stop:a}=this;this.stop=()=>{this.isAccelerated()&&this.sync(),a()}}get group(){return qi(Ki(this.options).current)}get js(){return this.driver?.js}get name(){return this.options.name}timing(){let{startTime:e,speed:t,totalDuration:n}=this,{delay:r=0,repeatType:i}=this.options;return this.holdTime===null?n===1/0?[e+r/t,this.resolvedDuration*(i===`loop`?1:2)/t||1]:[e+(r+n)/t,0]:[1/0,0]}isAccelerated(){let{group:e,state:t}=this;return e?.tracks.has(this)&&!e.isJS&&this.canAccelerate&&(t===`running`||t===`paused`)}liveValue(){return this.isAccelerated()?this.sampleAt(R.now()):void 0}tween(){let{keyframes:e,type:t,ease:n,times:r,repeat:i,delay:a=0}=this.options,o=st(n)?fi(n):Ui(n)&&pi[n];if(o&&!i&&!r&&e.length===2&&t===$n&&this.holdTime===null){let e=this.startTime+a/this.speed;return[e,e+this.resolvedDuration/this.speed,o]}}boundaries(e,t){let{startTime:n,speed:r,resolvedDuration:i,options:a}=this,{delay:o=0,repeat:s=0,repeatDelay:c=0,repeatType:l,times:u,keyframes:d,type:f}=a,p=(f||$n)===$n?u||Xn(d):[0,1],m=n+o/r,h=[];if(this.holdTime!==null||!(i>0))return h;for(let n=Math.max(0,Math.floor((e-m)*r/i));n<=s;n++){let a=m+n*i/r;if(a>t)break;for(let o of p){let s=a+(n%2&&l&&l!==`loop`?1-o:o)*(i-c)/r;s>e&&s<t&&h.push(s)}}return h}numberAt(e){return parseFloat(this.sampleAt(e,!0))}sync(){let e=R.now();this.options.motionValue.setWithVelocity(this.sampleAt(e-10,!0),this.sampleAt(e,!0),10)}play(){this.isStopped||((this.group||Qi(Ki(this.options))).tracks.add(this),super.play())}pause(){super.pause(),this.isAccelerated()&&(this.sync(),this.group.schedule(!1))}complete(){super.complete();let{group:e}=this;e&&!e.isJS&&this.canAccelerate&&this.tick(R.now())}get time(){return this.isAccelerated()?I(M(0,this.totalDuration,this.at(R.now())-(this.options.delay||0))):super.time}set time(e){super.time=e,this.isAccelerated()&&this.sync()}attachTimeline(e){return this.canAccelerate=!1,this.group?.demote(!0),super.attachTimeline(e)}};function Qi(e){let t=e.current,n=new Set,r=new Map,i={},a=[],o=new Map,s=[],c=!1,l=!1,u=!1,d=!1,f=-1/0,p=e=>{for(let t of n)if(t.name===e)return!0},m=(t,n)=>{let o={};for(let s of t===void 0?q:a){let a=r.get(s),c=t===void 0?Ji(e,s):a?a.sampleAt(n>t&&!a.timing()[1]?n:t):i[s];c!==void 0&&(o[s]=c)}return o},h=(e,t)=>{let n=``,r=m(e,t);for(let e in r)n+=(Pi[e]||e)+`(`+Ni(r[e],K[e])+`) `;return n||`none`},g=(e=m())=>{t.style.transform=Ii(e,{})},_=(e=!0)=>{e&&g(),s.forEach(({animation:e})=>e.cancel()),s=[]},v=(e,t,n=1/0)=>{let r={animation:e,offset:t,end:n};e.startTime=R.now()+t,n<1/0&&(e.onfinish=()=>{r.isDone=!0,s.some(e=>e.end===1/0)&&(e.cancel(),s=s.filter(e=>e!==r)),E.schedule(!1)}),e.oncancel=()=>s.includes(r)&&E.demote(),s.push(r)},y=(e,t,n)=>{let r=(t,n)=>Math.abs(e(n)-e(t)),i=r(t,n);for(;n-t>.01;){let e=(t+n)/2;r(t,e)>r(e,n)?n=e:t=e}return r(t,n)>i/2?[t,n]:[]},b=(e,t,n,r)=>{let i=Math.min(Ri,Math.max(2,Math.ceil((n-t)/10)));if(r.length*4>i)return;let a=Gi(t,n,i).concat(r).sort(Wi),o=e=>Le(t,n,e),s,c;for(let t of e){let e=a.map(e=>t.numberAt(e)),[n]=e,r=e.map(e=>e-n),i=r[r.length-1],o=r.some(e=>Math.abs(e)*zi>Math.abs(i))?0:i,l=r.map(e=>o?e/o:e);if(!o){if(l.some(e=>!(Math.abs(e)<=zi)))return}else if(!s)s=l,c=e=>(t.numberAt(e)-n)/o;else if(l.some((e,t)=>!(Math.abs(e-s[t])<=zi)))return}if(!s||s.every((e,t)=>Math.abs(e-o(a[t]))<=zi))return`linear`;let l=[],u=(e,t=c(e))=>l.push(mr(t)+` `+mr(o(e)*100)+`%`);return s.forEach((e,t)=>{t&&Math.abs(e-s[t-1])>.2&&y(c,a[t-1],a[t]).forEach(e=>u(e)),u(a[t],e)}),`linear(`+l+`)`},x=(e,t,n,r)=>{let i=[t],a=(t,n)=>e.every(e=>!(Math.abs(e.numberAt((t+n)/2)-(e.numberAt(t)+e.numberAt(n))/2)>(e.name.startsWith(`scale`)?Vi:Bi))),o=(t,n,r)=>{if(n-t<1||a(t,n))i.push(n);else if(r<4)o(t,(t+n)/2,r+1),o((t+n)/2,n,r+1);else{for(let r of e)i.push(...y(e=>r.numberAt(e),t,n));i.push(n)}},s=Gi(t,n,Math.ceil((n-t)/100));for(let e of r)s.push(e,Math.min(e+.01,n));let c=t;for(let e of s.sort(Wi))e>c&&o(c,e,0),c=e;return i.sort(Wi)},S=e=>{let t;for(let n of e){let e=n.tween();if(!e||t?.some((t,n)=>n<2?Math.abs(e[n]-t)>1:e[n]!==t))return;t=e}return t},C=(e,n,r,i={fill:`both`},a,o)=>{let s=e.flatMap(e=>e.boundaries(n,r)),c=o||b(e,n,r,s),l=c?[n,r]:x(e,n,r,s),u=l.map(e=>h(e,a)),d={transform:u};return c||(d.offset=l.map(e=>Le(n,r,e))),u.every(e=>e===u[0])&&(g(m(n,a)),d=null),t.animate(d,{...i,duration:r-n,easing:c||`linear`})},w=c=>{let l=c,u=0,d=0,f=[],p=[],m=new Set;r.clear(),o=new Map;for(let e of n){r.set(e.name,e);let[t,n]=e.timing(),i=t===1/0;if(o.set(e,[e.at(c),e.speed,i]),i)e.sync();else{if(e.speed<0)return;if(n){if(u){let e=(t-d)/n;if(Math.abs(n-u)>1||Math.abs(e-Math.round(e))*u>1)return}else u=n,d=t;p.push(e)}else m.add(t);f.push(e),l=Math.max(l,t)}}i={},a=q.filter(t=>{if(r.has(t))return!0;let n=i[t]=Ji(e,t);return n!==void 0&&parseFloat(n)!==+!!t.startsWith(`scale`)}),_(!1);let h=!u&&S(f);try{if(h&&h[1]>c){let[e,t,n]=h;v(C(f,e,t,void 0,void 0,n),e-c,t-e)}else l>c&&(v(C(f,c,l),0,l-c),m.forEach(e=>e<l-1&&v(t.animate(null,{duration:e-c}),0,e-c)));if(u){let e=d+Math.floor((l-d)/u)*u;v(C(p,e,e+u,{iterations:1/0,iterationStart:(l-e)/u,fill:`forwards`},l),l-c)}}catch{return}return s.length||_(),!0},T=e=>{let t,r=0;for(let i of n){let n=o.get(i);if(!n)return!1;let[a,s,c]=n,l=i.at(e),u=i.timing()[0]===1/0;if(c){if(u&&l===a)continue;return!1}let d=(l-a)/s,f=u?0:i.speed/s;if(t===void 0)t=d,r=f;else if(Math.abs(d-t)>1||f!==r)return!1}if(t===void 0)return!0;if(!s.length)return!1;for(let{offset:e,end:n,isDone:r}of s){let i=t-e;if(n<1/0&&(r?i<n-1:i<0||i>=n))return!1}for(let{animation:n,offset:i,isDone:a}of s){if(a)continue;let o=t-i;r?(n.playbackRate=r,n.startTime=e-o/r):(n.pause(),n.currentTime=o)}return!0},ee=()=>!n.size&&(u=!0,qi(t)===E&&Li.delete(t),E.isJS||_(),!0),te=()=>{let t=R.now();if(E.isJS||(E.isFinishing=!0,n.forEach(n=>{let[r,a]=n.timing();n.state===`running`&&n.speed>0&&!a&&r<=t+1&&(n.complete(),i[n.name]=Ji(e,n.name),o.has(n)||(c=!0))}),E.isFinishing=!1),l=!1,u||(n.forEach(({state:e},t)=>{(e===`idle`||e===`finished`)&&n.delete(t)}),ee()))return;for(let e of n)if(!e.canAccelerate)return E.demote(!0);E.isJS&&(E.isJS=!1,c=!0,n.forEach(e=>e.js?.stop()));let r=c,a=d;if(c=d=!1,r||!T(t)){if(a){if(t-f<Hi)return E.demote();f=t}if(!w(t))return E.demote()}},E={tracks:n,isJS:!1,isFinishing:!1,schedule(e,t){u||(c||=e,d||=!!t,l||(l=!0,L.isProcessing?U.render(te,!1,!0):queueMicrotask(te)))},release(e){let{state:t}=e;(t===`idle`||t===`finished`)&&n.delete(e),ee()||E.schedule(!0)},check(){if(!E.isJS){for(let t in i)if(Ji(e,t)!==i[t]&&!p(t))return E.schedule(!0,!0)}},demote(e){E.isJS||u||(n.forEach(t=>{t.isAccelerated()&&t.sync(),e||(t.canAccelerate=!1)}),E.isJS=!0,o=new Map,_(),n.forEach(e=>e.state===`running`&&e.js?.start()))}};return Li.set(t,E),E}var $i=class extends fr{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=R.now();let{keyframes:t,name:n,motionValue:r,element:i}=e,a=e;a.autoplay??=!0,a.delay??=0,a.type??=`keyframes`,a.repeat??=0,a.repeatDelay??=0,a.repeatType??=`loop`;let o=i?.KeyframeResolver||ii;this.keyframeResolver=new o(t,(e,t,n)=>this.onKeyframesResolved(e,t,a,!n),n,r,i),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=R.now();let u=!0;Ti(e,i,a,o)||(u=!1,(N.instantAnimations||!s)&&l?.(ir(e,n,t)),e[0]=e[e.length-1],Ei(n),n.repeat=0);let{onComplete:d}=n;n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{d?.(),this.notifyFinished()};let f=u&&!c&&Mi(n),p=!f&&Yi(n);r&&(f||p||this.resolvedAt!==this.createdAt)&&(n.startTime??=cr(this.createdAt,this.resolvedAt));let m;if(f){n.element=n.motionValue?.owner?.current;try{m=new Si(n)}catch{m=new hr(n)}}else m=p?new Zi(n):new hr(n);this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this._animation.finished:super.finished}then(e,t){return this.finished.finally(e).then(()=>{})}liveValue(){return this._animation?.liveValue?.()}get animation(){return this._animation||(this.keyframeResolver?.resume(),ni()),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()}},ea=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 ta(this.animations,`duration`)}get iterationDuration(){return ta(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 ta(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 na=class extends ea{then(e,t){return this.finished.finally(e).then(()=>{})}},ra=class extends vi{constructor(e){super(),this.animation=e,e.onfinish=()=>{this.finishedTime=this.time,this.notifyFinished()},ur(this,{})}},ia=new WeakMap,aa=(e,t=``)=>`${e}:${t}`;function oa(e){let t=ia.get(e);return t||(t=new Map,ia.set(e,t)),t}function sa(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 ca=30,la=e=>!isNaN(parseFloat(e)),ua={current:void 0},da=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=R.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.notifyChange(),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=R.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=la(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){var n;return e===`change`?this.onChangeSubscribe(t):((n=this.events)[e]||(n[e]=new Re)).add(t)}onChangeSubscribe(e){let{events:t}=this;return!t.change&&!this.changeSubscriber?this.changeSubscriber=e:(t.change||(t.change=new Re,t.change.add(this.changeSubscriber),this.changeSubscriber=void 0),t.change.add(e)),()=>{this.changeSubscriber===e?this.changeSubscriber=void 0:t.change?.remove(e),this.stopIfUnobserved()}}stopIfUnobserved(){U.read(()=>{!this.changeSubscriber&&!this.events.change?.getSize()&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;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.notifyChange()}notifyChange(){let{current:e,changeSubscriber:t}=this;t?t(e):this.events.change?.notify(e)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){ua.current&&ua.current.push(this);let e=this.animation?.liveValue?.();return e===void 0?this.current:e}getCurrent(){return this.current}getPrevious(){return this.prev}getVelocity(){let e=R.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>ca)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,ca);return ze(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0;let n=!1,r;r=e(()=>{n=!0,this.events.animationComplete?.notify(),this.animation===r&&this.clearAnimation(),t()}),n||(this.animation=r),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Y(e,t){return new da(e,t)}function fa(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function pa(e,t){let n=e?.[t]??e?.default??e;return n===e?n:fa(n,e)}var ma={type:`spring`,stiffness:500,damping:25,restSpeed:10},ha=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ga={type:`keyframes`,duration:.8},_a={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},va=(e,{keyframes:t})=>t.length>2?ga:J.has(e)?e.startsWith(`scale`)?ha(t[1]):ma:_a,ya=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function ba(e){for(let t in e)if(!ya.has(t))return!0;return!1}var xa=(e,t,n,r={},i,a)=>o=>{let s=pa(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=F(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,hasOnUpdate:!!s.onUpdate};ba(s)||Object.assign(u,va(e,u)),u.duration&&=F(u.duration),u.repeatDelay&&=F(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Ei(u),u.delay===0&&(d=!0)),(N.instantAnimations||N.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,Ei(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=ir(u.keyframes,s);if(e!==void 0){U.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new hr(u):new $i(u)},Sa=20;function Ca(e,t,n,r){let i=1-e;return i*i*t+2*i*e*n+e*e*r}function wa(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 Ta(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 Ea({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=Ta(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=Ta(r.x,r.y,o.x,o.y,l,t)):d!==0&&(a=d)}let d=i?wa(0,r.x,u.x,o.x,r.y,u.y,o.y):0,f=i?wa(1,r.x,u.x,o.x,r.y,u.y,o.y):0,p=i?Ue(-180,180,f-d):0;return e=>{let t={x:Ca(e,r.x,u.x,o.x),y:Ca(e,r.y,u.y,o.y)};return i&&(t.rotate=Ue(-180,180,wa(e,r.x,u.x,o.x,r.y,u.y,o.y)-(d+p*e))*i),t}}}function Da(e={}){let t=Ea(e);return{interpolateProjection(e){let n=e.x.translate,r=e.y.translate;if(!(Math.sqrt(n*n+r*r)<Sa))return t({x:n,y:r},{x:0,y:0})},animateValues(e,n,r,i,a){if(!(`x`in n||`y`in n))return;let o=e(`x`),s=e(`y`),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(`pathRotation`),g={delay:i,...pa(r||{},`x`)};delete g.path;let _=Y(0);_.start(xa(``,_,[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 Oa=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ka(e){let t=Oa.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Aa(e,t,n=1){`${e}`;let[r,i]=ka(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return Me(e)?parseFloat(e):e}return _t(i)?Aa(i,t,n+1):i}function ja(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Ma(e,t,n,r){let i=t=>typeof t==`function`?t(n===void 0?e.custom:n,...ja(r)):t;return t=i(t),typeof t==`string`&&(t=e.variants&&e.variants[t]),i(t)}function Na(e,t,n){return Ma(e.getProps(),t,n,e)}var Pa=(e,t)=>t===`exit`?e.presenceContext?.custom:void 0,Fa=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...q]),Ia=e=>Array.isArray(e);function La(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Y(n))}function Ra(e){return Ia(e)?e[e.length-1]||0:e}function za(e,t){let{transitionEnd:n={},transition:r={},...i}=Na(e,t)||{};i={...i,...n};for(let t in i)La(e,t,Ra(i[t]))}var X=e=>!!(e&&e.getVelocity);function Ba(e){return!!(X(e)&&e.add)}function Va(e,t){let n=e.getValue(`willChange`);if(Ba(n))return n.add(t);if(!n&&N.WillChange){let n=new N.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}var Ha=`framerAppearId`,Ua=`data-framer-appear-id`;function Wa(e){return e.props[Ua]}var Ga=typeof window<`u`;function Ka({protectedKeys:e,needsAnimating:t},n){let r=n in e&&!t[n];return t[n]=!1,r}function qa(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?fa(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState?.getState()[i],p=a?.path;p&&(p.animateValues?p.animateValues(t=>e.getValue(t,e.latestValues[t]??0),s,a,n,d):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&&Ka(f,t))continue;let o={delay:n,...pa(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){U.update(()=>r.set(i));continue}let p=!1;if(Ga&&window.MotionHandoffAnimation){let n=Wa(e);if(n){let e=window.MotionHandoffAnimation(n,t,U);e!==null&&(o.startTime=e,p=!0)}}Va(e,t);let m=l??e.shouldReduceMotion;r.start(xa(t,r,i,m&&Fa.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>U.update(()=>{o&&za(e,o)});d.length?Promise.all(d).then(t):t()}return d}function Ja(e,t,n={}){let r=Na(e,t,Pa(e,n.type)),i=n.transitionOverride||(r?.transition??(e.getDefaultTransition()||{})),a=()=>Promise.all(r?qa(e,r,n):[]),o=(r=0)=>{let{variantChildren:a}=e,{delayChildren:o=0,staggerChildren:s,staggerDirection:c}=i,l=[];return a?.forEach(e=>{e.notify(`AnimationStart`,t),l.push(Ja(e,t,{...n,delay:r+(typeof o==`function`?0:o)+sa(a,e,o,s,c)}).then(()=>e.notify(`AnimationComplete`,t)))}),Promise.all(l)},{when:s}=i;return s?s===`beforeChildren`?a().then(()=>o()):o().then(a):Promise.all([a(),o(n.delay)])}function Ya(e,t,n={}){return e.notify(`AnimationStart`,t),(Array.isArray(t)?Promise.all(t.map(t=>Ja(e,t,n))):typeof t==`string`?Ja(e,t,n):Promise.all(qa(e,Na(e,t,n.custom),n))).then(()=>{e.notify(`AnimationComplete`,t)})}var Xa={test:e=>e===`auto`,parse:e=>e},Za=e=>t=>t.test(e),Qa=[bt,z,Ft,Pt,Lt,It,Xa],$a=e=>Qa.find(Za(e));function eo(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||Pe(e)}var to=new Set([`auto`,`none`,`0`]);function no(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!to.has(t)&&Xt(t)&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]!==i&&(e[r]=Dr(n,i))}var ro=class extends ii{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}scheduleResolve(){if(this.canReadNow()&&(this.readKeyframes(),!this.needsMeasurement))return this.complete();super.scheduleResolve()}canReadNow(){let{unresolvedKeyframes:e,element:t,motionValue:n}=this,r=e[0]??n?.get();if(!t?.current||r===void 0)return!1;for(let t=0;t<e.length;t++)if(yt(t?e[t]:r))return!1;return!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(),_t(r))){let i=Aa(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Fa.has(n)||e.length!==2)return;let[r,i]=e;if(typeof r==`number`&&typeof i==`number`)return;let a=$a(r),o=$a(i);if(yt(r)!==yt(i)&&Yr[n])this.needsMeasurement=!0;else if(a!==o){if(Vr(a)&&Vr(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Yr[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||eo(e[t]))&&n.push(t);n.length&&no(e,n,t)}measure(){let{element:e,name:t}=this;return Yr[t](window.getComputedStyle(e.current),()=>e.measureViewportBox())}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&this.motionValue?.jump(r,!1)}measureEndState(){let{element:e,unresolvedKeyframes:t}=this;if(!e||!e.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let n=t.length-1,r=t[n];t[n]=this.measure(),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},io=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`],ao=new Set([`borderWidth`,`borderTopWidth`,`borderRightWidth`,`borderBottomWidth`,`borderLeftWidth`,`borderRadius`,...io,`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 oo(e,t){for(let n=0;n<e.length;n++)typeof e[n]==`number`&&ao.has(t)&&(e[n]=e[n]+`px`)}function so(e){return!!(typeof e==`function`&&di()||!e||typeof e==`string`&&(e in pi||di())||st(e)||Array.isArray(e)&&e.every(so))}var co=Fe(()=>{try{document.createElement(`div`).animate({opacity:[1]})}catch{return!1}return!0}),lo=[];function uo(e){typeof e.test==`function`&&e.read,fo(e),lo.unshift(e)}function fo(e){De(lo,e)}function po(e){return lo.find(t=>t.test(e))}function mo(e,t,n={},r){let i=[],{velocity:a,path:o}=n,s=n.reduceMotion??r?.shouldReduceMotion;o?.animateValues&&r&&(t={...t},o.animateValues(e,t,n,0,i));for(let o in t){if(o===`transition`||o===`transitionEnd`)continue;let c=t[o];if(c===void 0)continue;let l=e(o),u=l.get();u!==void 0&&!l.isAnimating()&&!Array.isArray(c)&&c===u&&!a?U.update(()=>l.set(c)):(l.start(xa(o,l,c,s&&Fa.has(o)?{type:!1}:n,r)),l.animation&&i.push(l.animation))}let{transitionEnd:c}=t;if(c){let t=()=>U.update(()=>{for(let t in c)e(t).set(c[t])});i.length?Promise.all(i).then(t):t()}return i}function ho(e,t,n,r,i){return mo(r=>{let a=e.get(t,r);if(!a){let o;if(!i){let i=n[r];o=go(i)??e.read(t,r,i),`${r}`}a=Y(o,{owner:i}),e(t,{[r]:a})}return a},n,r,i)}function go(e){let t=Array.isArray(e)?e[0]:void 0;return t===null?void 0:t}function _o(e){return Ne(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}function vo(e){return Ne(e)&&`ownerSVGElement`in e}var Z={};function yo(e){return Z.current?.add(e),e}function bo(e){let t=Z.current;if(!t)return;let n=!1,r,i=t.add(()=>{n=!0,r?.()});e.then(e=>{e&&(r=()=>e.stop(),n?r():e.finished.then(i))},i)}var xo=e=>Z.current?Z.current.bind(e):e;function So(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=t?t.current:Z.current?.root||document,i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}function Co(e){let t=(t,n)=>{let r=So(t),i=[];for(let t of r){let r=e(t,n);i.push(r)}return()=>{for(let e of i)e()}},{test:n,read:r,get:i,flush:a,state:o}=e;return Object.assign(t,{test:n,read:r,get:i,flush:a,state:o})}var wo=class{constructor(e=U.render){this.step=e,this.values=new Map,this.pending=[],this.numPending=0,this.flush=()=>{let{pending:e,numPending:t}=this;this.numPending=0;for(let n=0;n<t;n++)e[n]()}}set(e,t,n,r){if(this.values.get(e)?.onRemove(),r)for(let e of this.values.values())e.value===r&&(n=e.render);let i=()=>n&&this.schedule(n);t.get()!==void 0&&i();let a=t.on(`change`,i),o=()=>{a(),n&&!r&&this.cancel(n),this.values.get(e)?.onRemove===o&&this.values.delete(e)};return this.values.set(e,{value:t,render:r?void 0:n,onRemove:o}),o}get(e){return this.values.get(e)?.value}release(){let e=new Map;return this.values.forEach((t,n)=>{e.set(n,t.value),t.onRemove()}),this.transformKeys=this.transformValues=void 0,e}schedule(e){let{pending:t,numPending:n}=this;for(let r=0;r<n;r++)if(t[r]===e)return;n||this.step(this.flush),t[this.numPending++]=e}cancel(e){let{pending:t}=this;for(let n=0;n<this.numPending;n++)if(t[n]===e){t[n]=t[--this.numPending];return}}};function To(e,{step:t,...n}={}){let r=new WeakMap;return Object.assign((n,i)=>{let a=r.get(n)??new wo(t);r.set(n,a);let o=[];for(let t in i){let r=i[t],s=e(n,a,t,r);o.push(s)}return()=>{for(let e of o)e()}},n,{get:(e,t)=>r.get(e)?.get(t),flush:e=>r.get(e)?.flush(),state:e=>r.get(e)})}var Eo={};function Do(e){let t=``,{transformKeys:n=[],transformValues:r={}}=e;for(let e=0;e<n.length;e++){let i=n[e],a=r[i].getCurrent();a!==void 0&&(typeof a==`number`?a:parseFloat(a))!==+!!i.startsWith(`scale`)&&(t+=(t&&` `)+(Eo[i]||(Eo[i]=(Pi[i]||i)+`(`))+Ni(a,Cr[i])+`)`)}let i=e.get(`pathRotation`)?.get();return i&&(t+=(t&&` `)+`rotate(`+Ni(i,Cr.pathRotation)+`)`),t||`none`}var Oo=new Set([`originX`,`originY`,`originZ`]),ko=(e,t)=>Ni(e.get(t)?.get(),K[t]),Ao=(e,t,n,r)=>{let i,a;if(J.has(n)){if(n!==`pathRotation`){let e=t.transformKeys??=[];(t.transformValues??={})[n]=r,e.includes(n)||(e.push(n),e.sort((e,t)=>q.indexOf(e)-q.indexOf(t)))}t.get(`transform`)||(!_o(e)&&!t.get(`transformBox`)&&Ao(e,t,`transformBox`,new da(`fill-box`)),t.set(`transform`,new da(`none`),()=>{Li.get(e)?.check(),e.style.transform=Do(t)})),a=t.get(`transform`)}else Oo.has(n)?(t.get(`transformOrigin`)||t.set(`transformOrigin`,new da(``),()=>{let n=ko(t,`originX`)??`50%`,r=ko(t,`originY`)??`50%`,i=ko(t,`originZ`)??0;e.style.transformOrigin=`${n} ${r} ${i}`}),a=t.get(`transformOrigin`)):i=ai(n)?()=>{e.style.setProperty(n,r.getCurrent())}:()=>{e.style[n]=Ni(r.getCurrent(),K[n])};return t.set(n,r,i,a)},jo=e=>_o(e)||vo(e),Mo=(e,t)=>{if(J.has(t))return zr(e,t);let n=getComputedStyle(e),r=ai(t)?n.getPropertyValue(t):n[t];return typeof r==`string`&&r.trim()||0},No=To(Ao,{test:jo,read:Mo}),Po=Co(No);function Fo(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}function Io(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(J.has(e))o=!0;else if(ht(e))i[e]=n;else{let t=Ni(n,K[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Ii(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}var Lo={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Ro={offset:`strokeDashoffset`,array:`strokeDasharray`};function zo(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Lo:Ro;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Bo=[`transform`,`opacity`,`clipPath`,`filter`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Vo(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(Io(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;for(let e of Bo)d[e]!==void 0&&(f[e]=d[e],delete d[e]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&zo(d,i,a,o,!1)}function Ho(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 Uo=(e,t,n,r,i=n)=>{let a=Ho(e,i);!a&&(i.startsWith(`data`)||i.startsWith(`aria`))&&(i=Fo(i));let o=K[n]||K[i],s=a?()=>{e[i]=Ni(r.get(),K[n])}:()=>{let t=Ni(r.get(),o);t==null?e.removeAttribute(i):e.setAttribute(i,String(t))};return t.set(n,r,s)},Wo=Co(To(Uo));function Go(e,t,n,r){return U.render(()=>e.setAttribute(`pathLength`,`1`)),n===`pathOffset`?t.set(n,r,()=>{let t=r.get();e.setAttribute(`stroke-dashoffset`,`${-t}`)}):(t.get(`stroke-dasharray`)||t.set(`stroke-dasharray`,new da(`1 1`),()=>{let n=t.get(`pathLength`)?.get()??1,r=t.get(`pathSpacing`)?.get();e.setAttribute(`stroke-dasharray`,`${n} ${r??1-Number(n)}`)}),t.set(n,r,void 0,t.get(`stroke-dasharray`)))}var Ko=(e,t,n,r)=>n.startsWith(`path`)&&!J.has(n)?Go(e,t,n,r):n.startsWith(`attr`)?Uo(e,t,n,r,Xo(n)):(J.has(n)||Oo.has(n)||ai(n)||n in e.style?Ao:Uo)(e,t,n,r),qo=(e,t)=>J.has(t)?K[t]?.default||0:ai(t)||Bo.includes(t)?Mo(e,t)||e.getAttribute(Fo(t))||0:(t=Xo(t),e.getAttribute(Fo(t))??e.getAttribute(t)??void 0),Jo=To(Ko,{test:vo,read:qo}),Yo=Co(Jo);function Xo(e){return e.replace(/^attr([A-Z])/,(e,t)=>t.toLowerCase())}function Zo({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Qo({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function $o(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 es(e){return e===void 0||e===1}function ts({scale:e,scaleX:t,scaleY:n}){return!es(e)||!es(t)||!es(n)}function ns(e){return ts(e)||rs(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.rotateZ||e.skewX||e.skewY}function rs(e){return is(e.x)||is(e.y)}function is(e){return e&&e!==`0%`}function as(e,t,n){return n+t*(e-n)}function os(e,t,n,r,i){return i!==void 0&&(e=as(e,i,r)),as(e,n,r)+t}function ss(e,t=0,n=1,r,i){e.min=os(e.min,t,n,r,i),e.max=os(e.max,t,n,r,i)}function cs(e,{x:t,y:n}){ss(e.x,t.translate,t.scale,t.originPoint),ss(e.y,n.translate,n.scale,n.originPoint)}var ls=.999999999999,us=1.0000000000001;function ds(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&&(fs(e.x,-a.scroll.offset.x),fs(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,cs(e,o)),r&&ns(a.latestValues)&&hs(e,a.latestValues,a.layout?.layoutBox))}t.x<us&&t.x>ls&&(t.x=1),t.y<us&&t.y>ls&&(t.y=1)}function fs(e,t){e.min+=t,e.max+=t}function ps(e,t,n,r,i=.5){ss(e,t,n,H(e.min,e.max,i),r)}function ms(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function hs(e,t,n){let r=n??e;ps(e.x,ms(t.x,r.x),t.scaleX,t.scale,t.originX),ps(e.y,ms(t.y,r.y),t.scaleY,t.scale,t.originY)}function gs(e,t){return Zo($o(e.getBoundingClientRect(),t))}function _s(e,t,n){let r=gs(e,n),{scroll:i}=t;return i&&(fs(r.x,i.offset.x),fs(r.y,i.offset.y)),r}var vs={},ys=e=>vo(e)?Jo:No,bs=class{constructor(e,t){this.effect=e,this.current=t,this.KeyframeResolver=ro}getValue(e){return this.effect.get(this.current,e)}readValue(e,t){return this.effect.read(this.current,e,t)}render(){this.effect.flush(this.current)}measureViewportBox(){return gs(this.current)}getProps(){return vs}};function xs(e,t,n,r){if(Z.current?.track(e),r)return mo(e=>r.getValue(e,null),t,n,r);let i=ys(e);return ho(i,e,t,n,new bs(i,e))}var Ss=e=>ys(e).state(e)?.release();function Cs(e,t){let n=ys(e).state(e);if(!n)return;let r=Li.get(e);r&&(r.demote(),Li.delete(e));let{transformKeys:i}=n;n.release().forEach((e,n)=>{n===`transformBox`||n===`transform`&&i?.length||(e.owner=t,t.addValue(n,e))})}var ws=To((e,t,n,r)=>t.set(n,r,()=>{e[n]=r.get()}),{test:e=>Ne(e),read:(e,t)=>{let n=e[t];return typeof n==`string`||typeof n==`number`?n:void 0}}),{schedule:Ts,cancel:Es}=Dn(queueMicrotask,!1),Ds=(e=R.now())=>{if(L.isProcessing)return;let t=e-L.timestamp;L.delta=N.useManualTiming?t:Math.max(Math.min(t,40),1),R.set(L.timestamp=e),L.isProcessing=!0;for(let e in On)On[e].process(L);L.isProcessing=!1};function Os(e,t,n){let r=X(e)?e:Y(e);return r.start(xa(``,r,t,n)),r.animation}var ks={};function As(e){for(let t in e)ks[t]=e[t],ht(t)&&(ks[t].isCSSVariable=!0)}var js={value:null,addProjectionMetrics:null};function Ms(e,t){let n=R.now();e=xo(e);let r=({timestamp:i})=>{let a=i-n;a>=t&&(W(r),e(a-t))};return U.setup(r,!0),yo(()=>W(r))}function Ns(e,t){return Ms(e,F(t))}function Ps(e){return vo(e)&&e.tagName===`svg`}function Fs(e){return X(e)?e.get():e}var Is=e=>typeof e==`number`?e:parseFloat(e),Ls=io.length,Rs=[`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skewX`,`skewY`],zs=Rs.length,Bs=e=>typeof e==`number`||z.test(e);function Vs(e,t,n,r,i,a){i?(e.opacity=H(0,n.opacity??1,Us(r)),e.opacityExit=H(t.opacity??1,0,Ws(r))):a&&(e.opacity=H(t.opacity??1,n.opacity??1,r));for(let i=0;i<Ls;i++){let a=io[i],o=Hs(t,a),s=Hs(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||Bs(o)===Bs(s)?(e[a]=Math.max(H(Is(o),Is(s),r),0),(Ft.test(s)||Ft.test(o))&&(e[a]+=`%`)):e[a]=s)}for(let i=0;i<zs;i++){let a=Rs[i];(t[a]||n[a])&&(e[a]=H(t[a]||0,n[a]||0,r))}}function Hs(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Us=Gs(0,.5,$e),Ws=Gs(.5,.95,P);function Gs(e,t,n){return r=>r<e?0:r>t?1:n(Le(e,t,r))}function Ks(e,t){e.min=t.min,e.max=t.max}function qs(e,t){Ks(e.x,t.x),Ks(e.y,t.y)}function Js(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Ys=.9999,Xs=1.0001,Zs=-.01,Qs=.01;function Q(e){return e.max-e.min}function $s(e,t,n){return Math.abs(e-t)<=n}function ec(e,t,n,r=.5){e.origin=r,e.originPoint=H(t.min,t.max,e.origin),e.scale=Q(n)/Q(t),e.translate=H(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Ys&&e.scale<=Xs||isNaN(e.scale))&&(e.scale=1),(e.translate>=Zs&&e.translate<=Qs||isNaN(e.translate))&&(e.translate=0)}function tc(e,t,n,r){ec(e.x,t.x,n.x,r?r.originX:void 0),ec(e.y,t.y,n.y,r?r.originY:void 0)}function nc(e,t,n,r=0){e.min=(r?H(n.min,n.max,r):n.min)+t.min,e.max=e.min+Q(t)}function rc(e,t,n,r){nc(e.x,t.x,n.x,r?.x),nc(e.y,t.y,n.y,r?.y)}function ic(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+Q(t)}function ac(e,t,n,r){ic(e.x,t.x,n.x,r?.x),ic(e.y,t.y,n.y,r?.y)}function oc(e,t,n,r,i){return e-=t,e=as(e,1/n,r),i!==void 0&&(e=as(e,1/i,r)),e}function sc(e,t=0,n=1,r=.5,i,a=e,o=e){if(Ft.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=oc(e.min,t,n,s,i),e.max=oc(e.max,t,n,s,i)}function cc(e,t,[n,r,i],a,o){sc(e,t[n],t[r],t[i],t.scale,a,o)}var lc=[`x`,`scaleX`,`originX`],uc=[`y`,`scaleY`,`originY`];function dc(e,t,n,r){cc(e.x,t,lc,n?n.x:void 0,r?r.x:void 0),cc(e.y,t,uc,n?n.y:void 0,r?r.y:void 0)}var fc=()=>({translate:0,scale:1,origin:0,originPoint:0}),pc=()=>({x:fc(),y:fc()}),mc=()=>({min:0,max:0}),$=()=>({x:mc(),y:mc()});function hc(e){return e.translate===0&&e.scale===1}function gc(e){return hc(e.x)&&hc(e.y)}function _c(e,t){return e.min===t.min&&e.max===t.max}function vc(e,t){return _c(e.x,t.x)&&_c(e.y,t.y)}function yc(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function bc(e,t){return yc(e.x,t.x)&&yc(e.y,t.y)}function xc(e){return Q(e.x)/Q(e.y)}function Sc(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var Cc=class{constructor(){this.members=[]}add(e){Ee(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||(De(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(De(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)}};function wc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Tc={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(z.test(e))e=parseFloat(e);else return e}return`${wc(e,t.target.x)}% ${wc(e,t.target.y)}%`}},Ec={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)}},Dc={borderRadius:Object.assign({},Tc,{applyTo:io.slice()}),borderTopLeftRadius:Tc,borderTopRightRadius:Tc,borderBottomLeftRadius:Tc,borderBottomRightRadius:Tc,boxShadow:Ec};function Oc(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,rotateZ:s,skewX:c,skewY:l}=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+=`rotateZ(${s}deg) `),c&&(r+=`skewX(${c}deg) `),l&&(r+=`skewY(${l}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`}function kc(e){return[e(`x`),e(`y`)]}var Ac=(e,t)=>e.depth-t.depth,jc=class{constructor(){this.children=[],this.isDirty=!1}add(e){Ee(this.children,e),this.isDirty=!0}remove(e){De(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ac),this.isDirty=!1,this.children.forEach(e)}},Mc={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Nc={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Pc=[``,`X`,`Y`,`Z`],Fc=1e3,Ic=0;function Lc(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}var Rc=({instance:e})=>e&&Li.get(e)?.demote();function zc(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Wa(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,U,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&zc(r)}function Bc({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return Object.assign(ks,{...Dc,...ks}),class{constructor(e={},n=t?.()){this.id=Ic++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,js.value&&(Nc.nodes=Nc.calculatedTargetDeltas=Nc.calculatedProjections=0),this.nodes.forEach(Uc),this.nodes.forEach(el),this.nodes.forEach(tl),this.nodes.forEach(Wc),js.addProjectionMetrics&&js.addProjectionMetrics(Nc)},this.resolvedRelativeTargetAt=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 jc)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Re),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=vo(t)&&!Ps(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;U.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Ms(i,250),Mc.hasAnimatedSinceResize&&(Mc.hasAnimatedSinceResize=!1,this.nodes.forEach($c)))})}n&&this.root.registerSharedNode(n,this),this.addLayoutListener()}addLayoutListener(){let{layoutId:e,layout:t,visualElement:n,animate:r}=this.options;this.instance&&!this.hasLayoutListener&&r!==!1&&n&&(e||t)&&(this.hasLayoutListener=!0,this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:r,layout:i})=>{if(this.isAnimationBlocked){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||n.getDefaultTransition()||sl,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=n.getProps(),c=!this.targetLayout||!bc(this.targetLayout,i),l=!t&&r;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...pa(a,`layout`),onPlay:o,onComplete:s};(n.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||$c(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i}))}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(),this.hasLayoutListener=!1,W(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(nl),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&&zc(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;Rc(this),this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,Rc(t),(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1),t.isAnimationBlocked&&(t.dragSnapshot||=t.measure(),this.dragAncestor=t)}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(qc),this.nodes.forEach(Kc);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Jc);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Xc),this.nodes.forEach(Zc),this.nodes.forEach(Qc),this.nodes.forEach(Vc),this.nodes.forEach(Hc)):this.nodes.forEach(Jc),this.clearAllSnapshots();let e=R.now();L.delta=M(0,1e3/60,e-L.timestamp),L.timestamp=e,L.isProcessing=!0,On.update.process(L),On.preRender.process(L),On.render.process(L),L.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ts.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Gc),this.sharedNodes.forEach((e,t)=>e.members.length?e.removeLeadSnapshot():this.sharedNodes.delete(t))}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,U.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){U.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!Q(this.snapshot.measuredBox.x)&&!Q(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.layoutCorrected||=$(),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;e&&Rc(this);let t=this.projectionDelta&&!gc(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||ns(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)),dl(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return $();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(pl))){let{scroll:e}=this.root;e&&(fs(t.x,e.offset.x),fs(t.y,e.offset.y))}return t}removeElementScroll(e){let t=$();if(qs(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&&qs(t,e),fs(t.x,i.offset.x),fs(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n,r){let i=n||$();qs(i,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(fs(i.x,-n.scroll.offset.x),fs(i.y,-n.scroll.offset.y)),ns(n.latestValues)&&hs(i,n.latestValues,n.layout?.layoutBox)}return!r&&ns(this.latestValues)&&hs(i,this.latestValues,this.layout?.layoutBox),i}removeTransform(e){let t=$();qs(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!ns(n.latestValues))continue;let r;n.instance&&(ts(n.latestValues)&&n.updateSnapshot(),r=$(),qs(r,n.measurePageBox())),dc(t,n.latestValues,n.snapshot?.layoutBox,r)}return ns(this.latestValues)&&dc(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},this.addLayoutListener()}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!==L.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=L.timestamp;let a=this.getClosestProjectingParent();!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=$(),this.targetWithTransforms=$()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),rc(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target,!0):qs(this.target,this.layout.layoutBox),cs(this.target,this.targetDelta)):qs(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),js.value&&Nc.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||ts(this.parent.latestValues)||rs(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.forceRelativeParentToResolveTarget(),this.relativeTarget=$(),this.relativeTargetOrigin=$(),ac(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),qs(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===L.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;qs(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;ds(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=$());let{target:s}=e;s?(!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Js(this.prevProjectionDelta.x,this.projectionDelta.x),Js(this.prevProjectionDelta.y,this.projectionDelta.y)),tc(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&Sc(this.projectionDelta.x,this.prevProjectionDelta.x)&&Sc(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),js.value&&Nc.calculatedProjections++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}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=pc(),this.projectionDelta=pc(),this.projectionDeltaWithTransform=pc()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=pc();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=$(),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(ol));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):(rl(o.x,e.x,n),rl(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ac(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),al(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&vc(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=$(),qs(f,this.relativeTarget)),c&&(this.animationValues=a,Vs(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&&=(W(this.pendingAnimation),void 0),this.pendingAnimation=U.update(()=>{Mc.hasAnimatedSinceResize=!0,this.motionValue||=Y(0),this.motionValue.jump(0,!1),this.currentAnimation=Os(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()}}),dr(this.currentAnimation,this),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(Fc),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,layout:n,latestValues:r}=e,{target:i}=e;if(t&&i&&n){if(this!==e&&this.layout&&n&&fl(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||$();let t=Q(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let n=Q(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+n}qs(t,i),hs(t,r),tc(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Cc),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&&Lc(`z`,e,r,this.animationValues);for(let t=0;t<Pc.length;t++)Lc(`rotate${Pc[t]}`,e,r,this.animationValues),Lc(`skew${Pc[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=Fs(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=Fs(t?.pointerEvents)||``),this.hasProjected&&!ns(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=Oc(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 ks){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=ks[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?Fs(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=this.dragSnapshot=this.dragAncestor=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Kc),this.root.sharedNodes.clear()}}}function Vc(e){e.updateLayout(),Yc(e)}function Hc(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`)kc(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Q(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Ks(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else fl(i,t.layoutBox,n)&&kc(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Q(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=pc();tc(o,n,t.layoutBox);let s=pc();a?tc(s,e.applyTransform(r,!0),t.measuredBox):tc(s,n,t.layoutBox);let c=!gc(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=$();ac(s,t.layoutBox,i.layoutBox,o);let c=$();ac(c,n,a.layoutBox,o),bc(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 Uc(e){js.value&&Nc.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 Wc(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Gc(e){e.clearSnapshot()}function Kc(e){e.clearMeasurements()}function qc(e){e.isLayoutDirty=!0,e.updateLayout()}function Jc(e){e.isLayoutDirty=!1}function Yc(e){let{snapshot:t,dragAncestor:n}=e,r=n?.isAnimationBlocked&&n.layout;if(!t||!r||e.resumeFrom||e.isAnimationBlocked)return;let i=n.dragSnapshot;kc(e=>fs(t.layoutBox[e],r.layoutBox[e].min-i.layoutBox[e].min))}function Xc(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.dragSnapshot||e.layout,e.isLayoutDirty=!0)}function Zc(e){e.relativeTarget&&e.relativeParent?.isLayoutDirty&&(e.currentAnimation?e.isLayoutDirty=!0:(e.targetDelta=void 0,e.removeRelativeTarget()))}function Qc(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function $c(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function el(e){e.resolveTargetDelta()}function tl(e){e.calcProjection()}function nl(e){e.resetSkewAndRotation()}function rl(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 il(e,t,n,r){e.min=H(t.min,n.min,r),e.max=H(t.max,n.max,r)}function al(e,t,n,r){il(e.x,t.x,n.x,r),il(e.y,t.y,n.y,r)}function ol(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var sl={duration:.45,ease:[.4,0,.1,1]},cl=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ll=cl(`applewebkit/`)&&!cl(`chrome/`)?Math.round:P;function ul(e){e.min=ll(e.min),e.max=ll(e.max)}function dl(e){ul(e.x),ul(e.y)}function fl(e,t,n){return e===`position`||e===`preserve-aspect`&&!$s(xc(t),xc(n),.2)}function pl(e){return e!==e.root&&e.scroll?.wasRoot}function ml(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var hl=Bc({attachResizeListener:(e,t)=>ml(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),gl={current:void 0},_l=Bc({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!gl.current){let e=new hl({});e.mount(window),e.setOptions({layoutScroll:!0}),gl.current=e}return gl.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),vl=new WeakMap;function yl(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function bl(e){return typeof e==`string`||Array.isArray(e)}var xl=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Sl=[`initial`].concat(xl);function Cl(e){if(yl(e.animate))return!0;for(let t=0;t<Sl.length;t++)if(bl(e[Sl[t]]))return!0;return!1}function wl(e){return!!(Cl(e)||e.variants)}function Tl(e,t,n){for(let r in t){let i=t[r],a=n[r];if(X(i))e.addValue(r,i);else if(X(a))e.addValue(r,Y(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,Y(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var El={current:null},Dl={current:!1},Ol=typeof window<`u`;function kl(){if(Dl.current=!0,Ol){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>El.current=e.matches;e.addEventListener(`change`,t),t()}else El.current=!1}}var Al=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],jl={};function Ml(e){jl=e}function Nl(){return jl}var Pl=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=ii,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=R.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,U.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=Cl(t),this.isVariantNode=wl(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&&X(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];if(this.current=e,vl.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.isVariantNode&&!this.isControllingVariants){let e=this;do e=e.props.inherit!==!1&&e.parent;while(e&&!e.isVariantNode);if(e){let{variantChildren:t}=e;t.add(this),this.removeFromVariantTree=()=>t.delete(this)}}this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Dl.current||kl(),this.shouldReduceMotion=El.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(),W(this.notifyUpdate),W(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&&Di.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new vi({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:F(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=J.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&U.preRender(this.notifyUpdate),n&&(this.projection&&(this.projection.isTransformDirty=!0),Li.get(this.current)?.check()),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||!e.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in jl){let t=jl[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):$()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){let{transformTemplate:n,onUpdate:r}=this.props;(e.transformTemplate||n)&&this.scheduleRender(),(e.transformTemplate&&!n||e.onUpdate&&!r)&&Li.get(this.current)?.demote(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Al.length;t++){let n=Al[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=Tl(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}addValue(e,t){let n=this.values.get(e);if(t!==n){n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t);let r=t.get();r!==void 0&&(this.latestValues[e]=r)}}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=Y(t??this.getDefaultValue?.(e),{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`&&(Me(n)||Pe(n))?n=parseFloat(n):typeof n!=`number`&&!V.test(n)&&V.test(t)&&(n=Dr(e,t)),this.setBaseTarget(e,X(n)?n.get():n)),X(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}on(e,t){return this.events[e]||(this.events[e]=new Re),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Ts.render(this.render)}},Fl=class extends Pl{constructor(){super(...arguments),this.KeyframeResolver=ro}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;X(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function Il(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 Ll(e,{layout:t,layoutId:n}){return J.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!ks[e]||e===`opacity`)}function Rl(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(X(r[t])||i&&X(i[t])||Ll(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function zl(e){return window.getComputedStyle(e)}var Bl=class extends Fl{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Il}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(J.has(t))return this.projection?.isProjecting?Lr(t):zr(e,t);{let n=zl(e),r=(ht(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return gs(e,t)}build(e,t,n){Io(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Rl(e,t,n)}},Vl=`[data-layout],[data-layout-id]`,Hl=new WeakMap,Ul;function Wl(e){let t=[];return e instanceof HTMLElement&&e.matches(Vl)&&t.push(e),e.querySelectorAll(Vl).forEach(e=>{e instanceof HTMLElement&&t.push(e)}),t}function Gl(){if(L.isProcessing)return;let e=R.now();L.delta=M(0,1e3/60,e-L.timestamp),L.timestamp=e,L.isProcessing=!0,On.update.process(L),On.preRender.process(L),On.render.process(L),L.isProcessing=!1}function Kl(e){let t=e.parentElement;for(;t;){let e=Hl.get(t);if(e&&e.instance)return e;t=t.parentElement}}function ql(){return new Bl({props:{},presenceContext:null,visualState:{latestValues:{},renderState:{transform:{},transformOrigin:{},style:{},vars:{}}}},{allowProjection:!0})}function Jl(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 Yl(e,t){let n=Hl.get(e);if(n)n.setOptions(Jl(e,t));else{let r=vl.get(e);r||(r=ql(),Cs(e,r)),e.style.transform&&!ns(r.latestValues)&&(e.style.transform=``),n=new _l(r.latestValues,Kl(e)),r.projection=n,n.setOptions({...Jl(e,t),visualElement:r}),n.mount(e),Hl.set(e,n)}return n.isPresent=!0,n.options.onExitComplete&&n.setOptions({onExitComplete:void 0}),n}function Xl(e){let t=Hl.get(e)||vl.get(e)?.projection;if(t?.instance)return[t,()=>{}];let n=Yl(e);return[n,()=>Hl.get(e)===n&&Ql(e,n)]}function Zl(e){return[...e].sort((e,t)=>e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}function Ql(e,t){t.setOptions({onExitComplete:void 0}),(!t.getStack()||t.isLead())&&t.currentAnimation?.stop(),t.unmount(),Hl.delete(e)}function $l(){let e=Ul;Ul=void 0,Gl();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 Zl(t.keys())){let r=t.get(e),i=Yl(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(),Ts.render(()=>{for(let t of e)t.finalize()})};r.length?Promise.all(r).then(i):i()}var eu=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}),Ul||(Ul=[],queueMicrotask($l)),Ul.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 Wl(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 Wl(this.scope)){if(this.tracked.has(t))continue;let n=Yl(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(),Ql(n,t)}}),t.relegate())return;n.remove()}Ql(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 ea([...e]))}};function tu(e,t,n){return typeof e==`function`?{scope:Z.current?.root||document,updateDom:e,defaultOptions:t}:{scope:e instanceof Document?e:So(e)[0]??document,updateDom:t,defaultOptions:n}}var nu=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1;function ru(e){return{point:{x:e.pageX,y:e.pageY}}}var iu=e=>t=>nu(t)&&e(t,ru(t));function au(e,t,n,r){return ml(e,t,iu(n),r)}var ou=new WeakMap,su,cu=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:vo(r)&&`getBBox`in r?r.getBBox()[t]:r[n],lu=cu(`inline`,`width`,`offsetWidth`),uu=cu(`block`,`height`,`offsetHeight`);function du({target:e,borderBoxSize:t}){ou.get(e)?.forEach(n=>{n(e,{get width(){return lu(e,t)},get height(){return uu(e,t)}})})}function fu(e){e.forEach(du)}function pu(){typeof ResizeObserver<`u`&&(su=new ResizeObserver(fu))}function mu(e,t){su||pu();let n=So(e);return n.forEach(e=>{let n=ou.get(e);n||(n=new Set,ou.set(e,n)),n.add(t),su?.observe(e)}),()=>{n.forEach(e=>{let n=ou.get(e);n?.delete(t),n?.size||su?.unobserve(e)})}}var hu=new Set,gu;function _u(){gu=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};hu.forEach(t=>t(e))},window.addEventListener(`resize`,gu)}function vu(e){return hu.add(e),gu||_u(),()=>{hu.delete(e),!hu.size&&typeof gu==`function`&&(window.removeEventListener(`resize`,gu),gu=void 0)}}function yu(e,t){return yo(typeof e==`function`?vu(e):mu(e,t))}var bu=(e,t)=>Math.abs(e-t);function xu(e,t){let n=bu(e.x,t.x),r=bu(e.y,t.y);return Math.sqrt(n**2+r**2)}var Su=new Set([`auto`,`scroll`]),Cu=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.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=wu(this.lastRawMoveEventInfo,this.transformPagePoint));let e=Eu(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=xu(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e;this.history.push({...r,timestamp:R.now()});let{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.handleScroll(window),this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=wu(t,this.transformPagePoint),this.hasPendingMove=!0,U.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.hasPendingMove&&this.updatePoint(),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=Eu(e.type===`pointercancel`?this.lastMoveEventInfo:wu(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!nu(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=wu(ru(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=L;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Eu(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=Ie(au(this.contextWindow,`pointermove`,this.handlePointerMove,d),au(this.contextWindow,`pointerup`,this.handlePointerUp,d),au(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Su.has(e.overflowX)||Su.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),U.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),W(this.updatePoint)}};function wu(e,t){return t?{point:t(e.point)}:e}function Tu(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Eu({point:e},t){return{point:e,delta:Tu(e,Ou(t)),offset:Tu(e,Du(t)),velocity:ku(t,.1)}}function Du(e){return e[0]}function Ou(e){return e[e.length-1]}function ku(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Ou(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>F(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>F(t)*2&&(r=e[1]);let a=I(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}var Au=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function ju(e){return Au.has(e.tagName)||e.isContentEditable===!0}var Mu=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Nu(e){return Mu.has(e.tagName)||e.isContentEditable===!0}var Pu={x:!1,y:!1};function Fu(){return Pu.x||Pu.y}function Iu(e){return e===`x`||e===`y`?Pu[e]?null:(Pu[e]=!0,()=>{Pu[e]=!1}):Pu.x||Pu.y?null:(Pu.x=Pu.y=!0,()=>{Pu.x=Pu.y=!1})}function Lu(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 Ru(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 zu(e,{top:t,left:n,bottom:r,right:i}){return{x:Ru(e.x,n,i),y:Ru(e.y,t,r)}}function Bu(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 Vu(e,t){return{x:Bu(e.x,t.x),y:Bu(e.y,t.y)}}function Hu(e,t){let n=.5,r=Q(e),i=Q(t);return i>r?n=Le(t.min,t.max-r,e.min):r>i&&(n=Le(e.min,e.max-i,t.min)),M(0,1,n)}function Uu(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 Wu=.35;function Gu(e=Wu){return e===!1?e=0:e===!0&&(e=Wu),{x:Ku(e,`left`,`right`),y:Ku(e,`top`,`bottom`)}}function Ku(e,t,n){return{min:qu(e,t),max:qu(e,n)}}function qu(e,t){return typeof e==`number`?e:e[t]||0}var Ju=new WeakMap,Yu=class{constructor(e,t=()=>e.getProps()){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e,this.readProps=t}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(e),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Iu(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),kc(e=>{let t=this.getAxisMotionValue(e).get()||0;if(_t(t)&&(t=Aa(t,this.visualElement.current)||0),z.test(t))t=parseFloat(t);else if(Ft.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=Q(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&U.update(()=>i(e,t),!1,!0),Va(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){if(this.currentDirection=td(o),this.currentDirection===null)return;i&&i(this.currentDirection)}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&U.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 Cu(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:this.visualElement.current?.ownerDocument.defaultView,element:this.visualElement.current})}stop(e,t,n){let r=e||this.latestPointerEvent,i=t||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!r)return;let{velocity:o}=i;this.startAnimation(o,n);let{onDragEnd:s}=this.getProps();s&&U.postRender(()=>s(r,i))}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||!ed(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Lu(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;Xu(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?zu(n.layoutBox,e):!1,this.elastic=Gu(t),r!==this.constraints&&!Xu(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&kc(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Uu(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!Xu(e))return!1;let n=Zu(e),{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=_s(n,r.root,this.visualElement.getTransformPagePoint()),a=Vu(r.layout.layoutBox,i);if(t){let e=t(Qo(a));this.hasMutatedConstraints=!!e,e&&(a=Zo(e))}return a}startAnimation(e,t){let{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),c=this.constraints||{},l=kc(s=>{if(!ed(s,t||n,this.currentDirection))return;let l=c&&c[s]||{};(o===!0||o===s)&&(l={min:0,max:0});let u=i?200:1e6,d=i?40:1e7,f={type:`inertia`,velocity:r?e[s]:0,bounceStiffness:u,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...a,...l};return this.startAxisValueAnimation(s,f)});return Promise.all(l).then(s)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Va(this.visualElement,e),n.start(xa(e,n,0,t,this.visualElement,!1))}stopAnimation(){kc(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.readProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor({clientX:e,clientY:t}){let{drag:n}=this.getProps(),r={x:e,y:t},i=this.visualElement.getTransformPagePoint()?.(r)||r,a=this.visualElement.measureViewportBox();kc(e=>{if(!ed(e,n,this.currentDirection))return;let t=this.getAxisMotionValue(e),{min:r,max:o}=a[e];t.set((t.get()||0)+i[e]-H(r,o,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Xu(t)||!n||!this.constraints)return;this.stopAnimation();let r=this.constraints,i={x:0,y:0};kc(e=>{let t=this.getAxisMotionValue(e).get();i[e]=Hu({min:t,max:t},r[e])});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),kc(t=>{let n=this.getAxisMotionValue(t);if(!ed(t,e,null)||!n.get())return;let{min:r,max:a}=this.constraints[t];n.set(H(r,a,i[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Ju.set(this.visualElement,this);let e=this.visualElement.current,t=au(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&Nu(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps(),r=Xu(t)&&Zu(t);r&&(this.constraints=this.resolveRefConstraints(),n||=$u(e,r,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),U.read(r);let o=ml(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(kc(t=>{if(!ed(t,this.getProps().drag,this.currentDirection))return;let n=this.getAxisMotionValue(t);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.readProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=Wu,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function Xu(e){return!!e&&typeof e==`object`&&(`current`in e||`nodeType`in e)}var Zu=e=>`current`in e?e.current:e;function Qu(e){let t=!0;return()=>{t?t=!1:e()}}function $u(e,t,n){let r=yu(e,Qu(n)),i=yu(t,Qu(n));return()=>{r(),i()}}function ed(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function td(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}function nd({dragConstraints:e,onMeasureDragConstraints:t}){return Xu(e)&&!!t}var rd=({axis:e,constraints:t,elastic:n,momentum:r,transition:i,snapToOrigin:a,directionLock:o,propagation:s,onStart:c,onMove:l,onEnd:u,onDirectionLock:d,onTransitionEnd:f,onMeasureConstraints:p})=>({drag:e||!0,dragConstraints:t,dragElastic:n,dragMomentum:r,dragTransition:i,dragSnapToOrigin:a,dragDirectionLock:o,dragPropagation:s,onDragStart:c,onDrag:l,onDragEnd:u,onDirectionLock:d,onDragTransitionEnd:f,onMeasureDragConstraints:p}),id=[`user-select`,`-webkit-user-select`,`-webkit-touch-callout`,`touch-action`];function ad(e,t){let{style:n}=e,r=e.getAttribute(`draggable`),i=id.map(e=>n.getPropertyValue(e)),a=t?`pan-`+(t===`x`?`y`:`x`):`none`;return id.forEach((e,t)=>n.setProperty(e,t<3?`none`:a)),e.setAttribute(`draggable`,`false`),()=>{id.forEach((e,t)=>n.setProperty(e,i[t])),r===null?e.removeAttribute(`draggable`):e.setAttribute(`draggable`,r)}}function od(e,t={}){let n=rd(t),r=Z.current;if(r)for(let e in n){let t=n[e];typeof t==`function`&&(n[e]=r.bind(t))}let i=So(e).map(e=>{r?.track(e);let[i,a]=Xl(e);i.setOptions({alwaysMeasureLayout:!0});let o=new Yu(i.options.visualElement,()=>n),s=o.addListeners(),c=ad(e,t.axis);return()=>{c(),s?.(),o.cancel(),o.stopAnimation(),a()}});return yo(()=>i.forEach(e=>e()))}function sd(e,t){let n=So(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},yo(()=>r.abort())]}function cd(e){return!(e.pointerType===`touch`||Fu())}function ld(e,t,n={}){t=xo(t);let[r,i,a]=sd(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=>{e.pointerType!==`touch`&&(n?r=!0:s(e))};e.addEventListener(`pointerenter`,n=>{if(!cd(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 ud=(e,t)=>t?e===t||ud(e,t.parentElement):!1,dd=new WeakSet;function fd(e){return t=>{t.key===`Enter`&&e(t)}}function pd(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var md=(e,t)=>{let n=!1,r=fd(()=>{dd.has(e)||(n=!0,pd(e,`down`))}),i=fd(()=>{n&&(n=!1,pd(e,`up`))});e.addEventListener(`keydown`,r,t),e.addEventListener(`keyup`,i,t),e.addEventListener(`blur`,()=>{e.removeEventListener(`keydown`,r),e.removeEventListener(`keyup`,i),n&&pd(e,`cancel`)},{...t,once:!0})};function hd(e){return nu(e)&&!Fu()}var gd=new WeakSet;function _d(e,t,n={}){t=xo(t);let[r,i,a]=sd(e,n),o=e=>{let r=e.currentTarget;if(!hd(e)||gd.has(e))return;dd.add(r),n.stopPropagation&&gd.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),dd.has(r)&&dd.delete(r),hd(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||ud(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),_o(e)&&(e.addEventListener(`focus`,()=>md(e,i),i),!ju(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function vd(e,t){let n=window.getComputedStyle(e);return ai(t)?n.getPropertyValue(t):n[t]}var yd={reducedMotion:`(prefers-reduced-motion: reduce)`,motion:`(prefers-reduced-motion: no-preference)`,dark:`(prefers-color-scheme: dark)`,light:`(prefers-color-scheme: light)`,hover:`(hover: hover) and (pointer: fine)`,touch:`(pointer: coarse)`,portrait:`(orientation: portrait)`,landscape:`(orientation: landscape)`};function bd(e){return e.includes(`(`)?e:e.replace(/([<>!]=?)\s+/g,`$1`).trim().split(/\s+/).map(e=>{let t=e[0]===`!`;t&&(e=e.slice(1));let n=/^([<>]=?)([\d.]+)([a-z]*)$/.exec(e),r=n?`(width ${n[1]} ${n[2]}${n[3]||`px`})`:yd[e]||e;return t?`(not (${r}))`:r}).join(` and `)}function xd(...e){let t=typeof e[0]==`function`?void 0:e.shift(),[n,r={}]=e,{transition:i,matchMedia:a}=r,o=[],s=new Map,c=[],l=!1,u={root:So(t)[0],transition:i,add(e){return c.push(e),()=>De(c,e)},bind:e=>((...t)=>{let n=g.run(()=>e(...t));return typeof n==`function`?u.bind(n):n}),track(e){s.has(e)||s.set(e,e.getAttribute(`style`))}},d=e=>{let t=c;c=[];for(let e=t.length-1;e>=0;e--)t[e]();e&&s.forEach((e,t)=>{Ss(t),e===null?t.removeAttribute(`style`):t.setAttribute(`style`,e)}),s.clear()},f=()=>{g.state=`active`;let e=!o.length;g.media={};for(let[t,n]of o)e=(g.media[t]=n.matches)||e;if(e&&n){let e=g.run(()=>n(g));typeof e==`function`&&u.add(e)}},p=()=>{l||(l=!0,queueMicrotask(()=>{l=!1,o.length&&g.refresh()}))},m=e=>{g.state=e?`cancelled`:`stopped`;for(let[,e]of o)e.removeEventListener(`change`,p);o.length=0,d(e)},h=(e,t)=>{let n=Z.current;Z.current=e;try{return t()}finally{Z.current=n}},g={state:`active`,media:{},run:e=>h(u,e),ignore:e=>h(void 0,e),bind:u.bind,stop:()=>m(),cancel:()=>m(!0),refresh(){d(!0),f()}};if(a&&typeof window<`u`){let e=typeof a==`string`?{matches:a}:a;for(let t in e){let n=window.matchMedia(bd(e[t]));n.addEventListener(`change`,p),o.push([t,n])}}return yo(g.cancel),f(),g}function Sd(){js.value=null,js.addProjectionMetrics=null}function Cd(){if(js.value)throw Sd(),Error(`Stats are already being measured`);let e=js;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 wd(e,t){if(e===`first`)return 0;{let n=t-1;return e===`last`?n:n/2}}function Td(e=.1,{startDelay:t=0,from:n=0,ease:r,grid:i}={}){let a={};return(o,s)=>{let c=a[s];if(!c){let[e,t]=i||[1/0,1],r=Math.min(e,s)-1,o=Math.max(t,Math.ceil(s/e))-1,l=typeof n==`number`,u=n===`first`?0:n===`last`?1:.5,d=l?n%e:r*u,f=l?Math.floor(n/e):o*u;c=a[s]=[];for(let t=0;t<s;t++){let i=t%e,a=Math.floor(t/e),s=Math.min(i,r-i),l=Math.min(a,o-a);if(n===`random`){let e=Math.random()*(t+1)|0;c[t]=c[e],c[e]=t}else c[t]=n===`edges`?Math.min(r?s:l,o?l:s):Math.hypot(i-d,a-f)}c.push(i?Math.max(...c):s)}let l=e*c[o],u=e*c[s];return r&&u&&(l=ut(r)(l/u)*u),t+l}}function Ed(...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=Jn(i,a,o);return t?s(r):s}var Dd=new Set,Od=({timestamp:e})=>{Dd.forEach(t=>t.tick(e))},kd=class extends fr{constructor(e){super(),this.state=`idle`,this.startTime=0,this.currentTime=0,this.started=!1,this.hasNextTarget=!1,this.nextTarget=0,this.stop=()=>{this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.factory=e.type,this.generator=this.factory(e);let{driver:t}=e;t&&(this.driver=t(e=>this.tick(e))),this.startTime=this.now(),this.state=`running`,this.driver?this.driver.start():(Dd.size||U.update(Od,!0),Dd.add(this))}setTarget(e,t){this.nextTarget=e,this.nextVelocity=t,this.hasNextTarget=!0}retarget(e,t){let{options:n,generator:r}=this;n.keyframes=e,n.velocity=t,this.startTime=this.now(),this.currentTime=0,r.retarget?r.retarget(e,t):this.generator=this.factory(n)}tick(e){let{options:t,hasNextTarget:n}=this,{delay:r=0,onUpdate:i,onPlay:a}=t;this.started||(this.startTime=cr(this.startTime,e));let o=Math.round(e-this.startTime)-r,s=this.currentTime=Math.max(0,o),c=this.generator.next(s),l=o<0?t.keyframes[0]:c.value;if(n){this.hasNextTarget=!1;let{keyframes:e}=t;e[0]=l,e[1]=this.nextTarget,this.retarget(e,this.nextVelocity??this.getGeneratorVelocity())}(n||!this.started)&&(this.started=!0,a?.()),this.state===`running`&&(i?.(l),c.done&&o>=0&&!n&&!this.hasNextTarget&&this.state===`running`&&(this.notifyFinished(),this.teardown(),this.state=`finished`,t.onComplete?.()))}getGeneratorVelocity(){return nr(this.generator,this.currentTime,this.options.velocity)}now(){return this.driver?this.driver.now():R.now()}teardown(){this.state=`idle`,this.driver?this.driver.stop():(Dd.delete(this),Dd.size||W(Od))}};function Ad(e,t,n){let r=e.get(),i=null,a,o=typeof r==`string`?r.replace(/[\d.-]/g,``):void 0,s=e=>a(o?e+o:e),c=()=>e.events.animationStart?.notify(),l=()=>{i&&=(i.stop(),null),e.animation=void 0};if(e.attach((t,r)=>{a=r;let o=Is(t);if(i?.state===`running`){i.setTarget(o,n.velocity);return}let u=Is(e.get()),d=i?i.getGeneratorVelocity():e.getVelocity();if(l(),u===o)return;let f=i=new kd({keyframes:[u,o],velocity:d,restDelta:.001,restSpeed:.01,...n,onUpdate:s,onPlay:c});e.animation=f,f.then(()=>{i===f&&(i=null,e.animation=void 0,e.events.animationComplete?.notify())})},l),X(t)){let r=n.skipInitialAnimation===!0,i=t=>{r?(r=!1,e.jump(jd(t,o),!1)):e.set(jd(t,o))},a=t.on(`change`,i),s=t.get();Is(s)-Is(e.get())&&i(s);let c=e.on(`destroy`,a);return()=>{a(),c(),l()}}return l}function jd(e,t){return t?e+t:e}function Md(e,t){let n=Y(X(e)?e.get():e);return Nd(n,e,t),n}function Nd(e,t,n={}){let r={type:`spring`,...n};return or(r),r.type=r.type||$n,Ad(e,t,r)}function Pd(e,t,n){let r=()=>t.set(n()),i=()=>U.preRender(r,!1,!0),a=e.map(e=>e.on(`change`,i));t.on(`destroy`,()=>{a.forEach(e=>e()),W(r)})}function Fd(e){let t=[];ua.current=t;let n=e();ua.current=void 0;let r=Y(n);return Pd(t,r,e),r}function Id(e,t,n,r){let i=Ed(t,n,r);return Fd(()=>i(e.get()))}function Ld(e,t){let n=Y(X(e)?e.get():e);return Rd(n,e,t),n}function Rd(e,t,n){return Ad(e,t,{...n,type:Gn})}var zd=[...Qa,B,V],Bd=e=>zd.find(Za(e)),Vd=0,Hd=()=>`motion-view-${Vd++}`,Ud=e=>e.startsWith(`motion-view-`);function Wd(e,t,n){t&&(e.style?.setProperty(`view-transition-class`,t),n.push(e))}function Gd(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 Kd(e,t,n,r,i,a=[],o,s=[],c){let l=So(e);if(r)return l.map((e,l)=>{let u=t.get(e);if(u)return u;let d=r[l]??Hd();return e.style?.setProperty(`view-transition-name`,d),n.push(e),t.set(e,d),Wd(e,i,a),Gd(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`&&!Ud(d)?f=d:(f=Hd(),e.style?.setProperty(`view-transition-name`,f),n.push(e)),t.set(e,f),Wd(e,i,a),Gd(e,f,o,s,c),f})}function qd(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 Jd(e){return e===`layout`?`group`:e===`enter`||e===`new`?`new`:`old`}var Yd={},Xd=null,Zd={set:(e,t)=>{Yd[e]=t},commit:()=>{Xd||(Xd=document.createElement(`style`),Xd.id=`motion-view`);let e=``;for(let t in Yd){let n=Yd[t];e+=`${t} {\n`;for(let[t,r]of Object.entries(n))e+=` ${t}: ${r};\n`;e+=`}
|
|
2
|
-
`}Xd.textContent=e,document.head.appendChild(Xd),Yd={}},remove:()=>{Xd&&Xd.parentElement&&Xd.parentElement.removeChild(Xd)}};function Qd(e){let t=e.match(/::view-transition-(old|new|group-children|group|image-pair)\((.*?)\)/);return t?{layer:t[2],type:t[1]}:null}function $d(){return document.getAnimations().filter(e=>{let{effect:t}=e;return!!t&&t.target===document.documentElement&&t.pseudoElement?.startsWith(`::view-transition`)})}function ef(e,t){return t.has(e)&&Object.keys(t.get(e)).length>0}var tf=[`layout`,`enter`,`exit`,`new`,`old`],nf=e=>e.split(` `).every(e=>parseFloat(e)===0),rf={group:[`layout`],new:[`new`,`enter`],old:[`old`,`exit`]},af={new:{opacity:0,scale:.85},old:{opacity:1,scale:1}},of=.2;function sf(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 ea([])))();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,So(n)),b=Kd(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=Kd(a.get(n),l,u,v.get(n),c,d,h,f,p)}}else b=Kd(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=lf(pa(c,n),pa(cf(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&&=F(r.duration);let{delay:i=0,duration:a,ease:o}=_i(r);return{delay:F(i),duration:a,ease:o}},w=new Map,T=e=>l.forEach((t,n)=>{let r=n,i=r.getBoundingClientRect?.();if(i&&i.height){let n=getComputedStyle(r),a={};for(let e of io)a[e]=n[e];let o=w.get(t)??{};o[e]={width:i.width,height:i.height,radii:a},w.set(t,o)}}),ee=()=>{h.clear();for(let e of _.keys())e!==`root`&&(g.get(e)??te(e))&&h.add(e)},te=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)>of},E=()=>{ef(`root`,n)||Zd.set(`:root`,{"view-transition-name":`none`}),Zd.set(`::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*)`,{"animation-timing-function":`linear !important`}),h.forEach(e=>{Zd.set(`::view-transition-group(${e})`,{overflow:`clip`}),Zd.set(`::view-transition-old(${e}), ::view-transition-new(${e})`,{width:`100%`,height:`100%`,"object-fit":`cover`})}),p.forEach(e=>{Zd.set(`::view-transition-group-children(${e})`,{overflow:`clip`})}),Zd.commit()},ne=()=>{qd(u,d,f),Zd.remove()},re=async()=>{await t(),b(`new`),T(`new`),ee(),E()},ie;try{b(`old`),T(`old`),E(),ie=document.startViewTransition(re)}catch(e){return ne(),Promise.reject(e)}return ie.finished.finally(ne),new Promise((e,t)=>{ie.ready.then(()=>{let t=$d(),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 tf){if(!e[a]||a===`enter`&&!o||a===`exit`&&!s)continue;let l=Jd(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`){He(!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=lf(pa(c,m),pa(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)?af[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&&=F(f.duration),f.delay&&=F(f.delay),n.push(new vi({...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=Qd(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 ra(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:mi(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=F(r.duration)),r=_i(r),d={delay:F(r.delay??0),duration:u&&i!==void 0?F(i):r.duration,easing:u?`linear`:mi(r.ease,r.duration)}}t.updateTiming(d),n.push(new ra(e))}w.forEach((e,t)=>{if(!h.has(t))return;let{delay:r,duration:i,ease:a}=C(t);for(let o of io){let s=e.old?.radii[o]||e.new?.radii[o]||`0px`,c=e.new?.radii[o]||e.old?.radii[o]||`0px`;nf(s)&&nf(c)||n.push(new vi({element:document.documentElement,name:o,pseudoElement:`::view-transition-group(${t})`,keyframes:[s,c],delay:r,duration:i,ease:a}))}}),e(new ea(n))}).catch(()=>ie.updateCallbackDone.then(()=>e(new ea([])),t))})}function cf(e,t){for(let n of rf[t]??[]){let t=e?.[n]?.options;if(t)return t}}function lf(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 uf=[],df=null;function ff(){df=null;let[e]=uf;e&&pf(e)}function pf(e){De(uf,e),df=e,sf(e).then(t=>(e.notifyReady(t),t.finished)).catch(t=>e.notifyReject(t)).finally(ff)}function mf(){for(let e=uf.length-1;e>=0;e--){let t=uf[e],{interrupt:n}=t.options;if(n===`immediate`){let n=uf.slice(0,e+1).map(e=>e.update),r=uf.slice(e+1);t.update=()=>{n.forEach(e=>e())},uf=[t,...r];break}}df&&uf[0]?.options.interrupt!==`immediate`||ff()}function hf(e){uf.push(e),Ts.render(mf)}var gf=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=P,this.notifyReject=P,this.readyPromise=new Promise((e,t)=>{this.notifyReady=e,this.notifyReject=t}),this.update=e,this.options={interrupt:`wait`,...t},this.readyPromise.catch(P),hf(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 _f(e,t={}){let n=new gf(e,t);return bo(n),n}var vf=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function yf(e,t){return e in t}var bf=class extends Pl{constructor(){super(...arguments),this.type=`object`}readValueFromInstance(e,t){if(yf(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 $()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}},xf=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`]),Sf=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Cf(e,t,n,r){Il(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(xf.has(n)?n:Fo(n),t.attrs[n])}function wf(e,t,n){let r=Rl(e,t,n);for(let n in e)if(n!==`children`&&(X(e[n])||X(t[n]))){let t=q.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Tf=class extends Fl{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=$}getBaseTargetFromProps(e,t){return J.has(t)?super.getBaseTargetFromProps(e,t)??Lr(t):e[t]}getDefaultValue(e){return J.has(e)?this.latestValues[e]??Lr(e):void 0}readValueFromInstance(e,t){if(J.has(t)){let e=Tr(t);return e&&e.default||0}if(Bo.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=xf.has(t)?t:Fo(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return wf(e,t,n)}build(e,t,n){Vo(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Cf(e,t,n,r)}mount(e){this.isSVGTag=Sf(e.tagName),super.mount(e)}};function Ef(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 Df=[...xl].reverse();function Of(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>Ya(e,t,n))),n=Af(),r=!0,i=!1;function a(a){let{props:o,parent:s,manuallyAnimateOnMount:c}=e,l=r||i,u=[],d=new Set,f={},p=1/0,m=e;do m=m.props.inherit!==!1&&m.parent;while(m&&!m.isControllingVariants);if(Df.forEach((t,r)=>{let i=n[t],h=o[t],g=m&&m.props[t],_=h===void 0?bl(g)||g===!1?g:void 0:h,v=bl(_),y=t===a?i.isActive:null;y===!1&&(p=r);let b=v&&h===void 0&&!(l&&c);if(i.protectedKeys={...f},!i.isActive&&y===null||!_&&!i.prevProp||yl(_)||typeof _==`boolean`)return;if(t===`exit`&&i.isActive&&y!==!0){f={...f,...i.prevResolvedValues};return}let x=kf(i.prevProp,_),S=x||v&&(y&&!b||r>p),C=!1,w=Array.isArray(_)?_:[_],T={};if(y!==!1)for(let n of w){let{transition:r,transitionEnd:i,...a}=Na(e,n,Pa(e,t))||{};T={...T,...a,...i}}let{prevResolvedValues:ee}=i;for(let t in{...ee,...T}){if(t in f)continue;let n=T[t],r=ee[t],a=Array.isArray(n)&&Array.isArray(r)?!Ef(n,r)||x:n!==r;if(a&&n==null)d.add(t);else if(a||n!==void 0&&d.has(t)){S=!0,d.delete(t)&&(C=!0),i.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)}else i.protectedKeys[t]=!0}if(i.prevProp=_,i.prevResolvedValues=T,i.isActive&&(f={...f,...T}),S&&(!(b&&x)||C))for(let n of w){let r={type:t};if(typeof n==`string`&&l&&c&&s?.enteringChildren){let t=Na(s,n)?.transition?.delayChildren;r.delay=sa(s.enteringChildren,e,t)}u.push({animation:n,options:r})}}),d.size){let{initial:t}=o,n={},r=typeof t!=`boolean`&&Na(e,Array.isArray(t)?t[0]:t,e.presenceContext?.custom);r&&r.transition&&(n.transition=r.transition),d.forEach(i=>{let a=e.getValue(i);a&&(a.liveStyle=!0);let s=r&&!Array.isArray(t)?r[i]:void 0,c=e.getBaseTargetFromProps(o,i);n[i]=(s===void 0?c!==void 0&&!X(c)?c:e.initialValues[i]===void 0?e.baseTarget[i]:void 0:s)??null}),u.push({animation:n})}let h=l&&e.blockInitialAnimation||r&&!c&&(o.initial===!1||o.initial===o.animate);return r=i=!1,!h&&u.length?t(u):Promise.resolve()}function o(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=a(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:a,setActive:o,setAnimateFunction:n=>{t=n(e)},getState:()=>n,reset:()=>{n=Af(),i=!0}}}function kf(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Ef(t,e):!1}function Af(){let e={};for(let t of xl)e[t]={isActive:t===`animate`,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}};return e}var jf=Sl.length;function Mf(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Mf(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<jf;n++){let r=Sl[n],i=e.props[r];(bl(i)||i===!1)&&(t[r]=i)}return t}var Nf=e=>!e.isLayoutDirty&&e.willUpdate(!1);function Pf(){let e=new Set,t=new WeakMap,n=()=>e.forEach(Nf);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}}function Ff(e,t,n){let{scope:r,updateDom:i,defaultOptions:a}=tu(e,t,n),o=new eu(r,i,{...Z.current?.transition,...a});return bo(o),o}var If=U,Lf=wn.reduce((e,t)=>(e[t]=e=>W(e),e),{}),Rf=w({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function zf(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Bf(...e){return t=>{let n=!1,r=e.map(e=>{let r=zf(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():zf(e[t],null)}}}}function Vf(...e){return ce(Bf(...e),e)}var Hf=class extends l{getSnapshotBeforeUpdate(e){let t=this.props.getElement();if(_o(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=_o(e)&&e.offsetWidth||0,r=_o(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 Uf({children:e,isPresent:t,anchorX:n,anchorY:r,root:a,pop:o,popNode:s}){let c=fe(),l=k(null),u=k({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:d}=D(Rf),f=Vf(l,o===!1?void 0:e.props?.ref??e?.ref),p=()=>l.current||s?.current?.current;return me(()=>{let{width:e,height:i,top:s,left:l,right:f,bottom:m,direction:h}=u.current,g=p();if(t||o===!1||!g||!e||!i)return;let _=h===`rtl`,v=n===`left`?_?`right: ${f}`:`left: ${l}`:_?`left: ${l}`:`right: ${f}`,y=r===`bottom`?`bottom: ${m}`:`top: ${s}`;g.dataset.motionPopId=c;let b=g.ownerDocument,x=b.createElement(`style`);d&&(x.nonce=d);let S=a??b.head;return S.appendChild(x),x.sheet&&x.sheet.insertRule(`
|
|
3
|
-
[data-motion-pop-id="${c}"] {
|
|
4
|
-
position: absolute !important;
|
|
5
|
-
width: ${e}px !important;
|
|
6
|
-
height: ${i}px !important;
|
|
7
|
-
${v}px !important;
|
|
8
|
-
${y}px !important;
|
|
9
|
-
}
|
|
10
|
-
`),()=>{g.removeAttribute(`data-motion-pop-id`),S.contains(x)&&S.removeChild(x)}},[t]),i(Hf,{isPresent:t,getElement:p,sizeRef:u,pop:o,children:o===!1?e:C(e,{ref:f})})}var Wf=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:o,mode:s,anchorX:c,anchorY:l,root:u})=>{let d=j(Gf),f=fe(),p=k(),m=k(n),h=k(r);we(()=>{m.current=n,h.current=r});let g=!0,_=ge(()=>(g=!1,{id:f,initial:t,isPresent:n,custom:a,onExitComplete:e=>{d.set(e,!0);for(let e of d.values())if(!e)return;r&&r()},register:(e,t)=>(d.set(e,!1),t&&t.parent?.presenceContext?.id!==f&&(p.current=t),()=>{d.delete(e),!m.current&&!d.size&&h.current?.()})}),[n,d,r]);return o&&g&&(_={..._}),ge(()=>{d.forEach((e,t)=>d.set(t,!1))},[n]),O(()=>{!n&&!d.size&&r&&r()},[n]),e=i(Uf,{pop:s===`popLayout`,isPresent:n,anchorX:c,anchorY:l,root:u,popNode:p,children:e}),i(Te.Provider,{value:_,children:e})};function Gf(){return new Map}function Kf(e=!0){let t=D(Te);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=fe();O(()=>{if(e)return i(a)},[e]);let o=ce(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}function qf(){return Jf(D(Te))}function Jf(e){return e===null||e.isPresent}var Yf=e=>e.key||``;function Xf(e){let t=[];return c.forEach(e,e=>{E(e)&&t.push(e)}),t}var Zf=({children:e,custom:t,initial:n=!0,onExitComplete:a,presenceAffectsLayout:o=!0,mode:s=`sync`,propagate:c=!1,anchorX:l=`left`,anchorY:u=`top`,root:d})=>{let[f,p]=Kf(c),m=ge(()=>Xf(e),[e]),h=c&&!f?[]:m.map(Yf),g=k(!0),_=j(()=>new Map),v=k(new Set),[y,b]=A(m),[x,S]=A(m);we(()=>{c&&!f&&!x.length&&p?.()},[f,c,x.length,p]);let C=k();O(()=>()=>{let e=C.current;C.current=void 0,e?.()},[x]),we(()=>{g.current=!1;for(let e=0;e<x.length;e++){let t=Yf(x[e]);h.includes(t)?(_.delete(t),v.current.delete(t)):_.get(t)!==!0&&_.set(t,!1)}},[x,h.length,h.join(`-`)]);let w=[];if(m!==y){let e=[...m],t=0;for(let n of x){let r=h.indexOf(Yf(n));r===-1?(e.splice(t++,0,n),w.push(n)):t=r+w.length+1}return w.every(e=>_.get(Yf(e)))?e=m:s===`wait`&&(e=w),S(Xf(e)),b(m),null}let{forceRender:T}=D(Se);return i(r,{children:x.map(e=>{let r=Yf(e),y=c&&!f?!1:m===x||h.includes(r);return i(Wf,{isPresent:y,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:s,root:d,onExitComplete:y?void 0:()=>{if(v.current.has(r))return;if(_.has(r))v.current.add(r),_.set(r,!0);else return;let e=!0;_.forEach(t=>{t||(e=!1)}),e&&(T?.(),b([]),c&&p?.(),C.current=a)},anchorX:l,anchorY:u,children:e},r)})})},Qf=w(null);function $f(){let e=k(!1);return we(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function ep(){let e=$f(),[t,n]=A(0),r=ce(()=>{e.current&&n(t+1)},[t]);return[ce(()=>U.postRender(r),[r]),t]}var tp=e=>e===!0,np=e=>tp(e===!0)||e===`id`,rp=({children:e,id:t,inherit:n=!0})=>{let r=D(Se),a=D(Qf),[o,s]=ep(),c=k(null),l=r.id||a;c.current===null&&(np(n)&&l&&(t=t?l+`-`+t:l),c.current={id:t,group:tp(n)&&r.group||Pf()});let u=ge(()=>({...c.current,forceRender:o}),[s]);return i(Se.Provider,{value:u,children:e})},ip=w({strict:!1}),ap={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`]},op=!1;function sp(){if(op)return;let e={};for(let t in ap)e[t]={isEnabled:e=>ap[t].some(t=>!!e[t])};Ml(e),op=!0}function cp(){return sp(),Nl()}function lp(e){let t=cp();for(let n in e)t[n]={...t[n],...e[n]};Ml(t)}function up({children:e,features:t,strict:n=!1}){let[,r]=A(!dp(t)),a=k(void 0);if(!dp(t)){let{renderer:e,...n}=t;a.current=e,lp(n)}return O(()=>{dp(t)&&t().then(({renderer:e,...t})=>{lp(t),a.current=e,r(!0)})},[]),i(ip.Provider,{value:{renderer:a.current,strict:n},children:e})}function dp(e){return typeof e==`function`}function fp({children:e,...t}){let n=D(Rf);t={...n,...t},t.transition=fa(t.transition,n.transition),t.isStatic=j(()=>t.isStatic);let r=ge(()=>t,[JSON.stringify(t.transition),t.transformPagePoint,t.reducedMotion,t.skipAnimations,t.isValidProp]);return i(Rf.Provider,{value:r,children:e})}var pp=w({});function mp(e,t){if(Cl(e)){let{initial:t,animate:n}=e;return{initial:t===!1||bl(t)?t:void 0,animate:bl(n)?n:void 0}}return e.inherit===!1?{}:t}function hp(e){let{initial:t,animate:n}=mp(e,D(pp));return ge(()=>({initial:t,animate:n}),[gp(t),gp(n)])}function gp(e){return Array.isArray(e)?e.join(` `):e}var _p=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function vp(e,t,n){for(let r in t)!X(t[r])&&!Ll(r,n)&&(e[r]=t[r])}function yp({transformTemplate:e},t){return ge(()=>{let n=_p();return Io(n,t,e),Object.assign({},n.vars,n.style)},[t])}function bp(e,t){let n=e.style||{},r={};return vp(r,n,e),Object.assign(r,yp(e,t)),r}function xp(e,t){let n={},r=bp(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 Sp=()=>({..._p(),attrs:{}});function Cp(e,t,n,r){let i=ge(()=>{let n=Sp();return Vo(n,t,Sf(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};return vp(t,e.style,e),{...i,style:{...t,...i.style}}}return i}var wp=new Set(`animate.exit.variants.initial.style.values.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 Tp(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||wp.has(e)}function Ep(e,t){return e.startsWith(`on`)?!Tp(e):t?.(e)??!Tp(e)}function Dp(e,t,n,r){let i={};for(let a in e)a===`values`&&typeof e.values==`object`||X(e[a])||(Ep(a,r)||n===!0&&Tp(a)||!t&&!Tp(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]);return i}var Op=[`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 kp(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Op.indexOf(e)>-1||/[A-Z]/u.test(e))}function Ap(e,t,n,{latestValues:r},i,a=!1,o,s){let c=(o??kp(e)?Cp:xp)(t,r,i,e),l=Dp(t,typeof e==`string`,a,s),d=e===u?{}:{...l,...c,ref:n},{children:f}=t,p=ge(()=>X(f)?f.get():f,[f]);return T(e,{...d,children:p})}function jp({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Mp(n,r,i,e),renderState:t()}}function Mp(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=Fs(a[e]);let{initial:o,animate:s}=e,c=Cl(e),l=wl(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`&&!yl(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Ma(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 Np=e=>(t,n)=>{let r=D(pp),i=D(Te),a=()=>jp(e,t,r,i);return n?a():j(a)},Pp=Np({scrapeMotionValuesFromProps:Rl,createRenderState:_p}),Fp=Np({scrapeMotionValuesFromProps:wf,createRenderState:Sp}),Ip=Symbol.for(`motionComponentSymbol`);function Lp(e,t,n){let r=k(n);me(()=>{r.current=n});let i=k(null);return ce(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 Rp=w({});function zp(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Bp(e,t,n,r,i,a){let{visualElement:o}=D(pp),s=D(ip),c=D(Te),l=D(Rf),u=l.reducedMotion,d=l.skipAnimations,f=k(null),p=k(!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=D(Rp);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&Vp(f.current,n,i,h),me(()=>{m&&m.props!==n&&m.update(n,c)});let g=n[Ua],_=k(!!g&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return we(()=>{p.current&&m&&(m.animationState?.animateChanges(),m.enteringChildren=void 0)},[]),we(()=>{p.current=!0,m&&(window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),_.current&&m.animationState&&m.animationState.animateChanges())}),O(()=>{m&&(!_.current&&m.animationState&&m.animationState.animateChanges(),_.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),!1),m.enteringChildren=void 0)}),m}function Vp(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t,f=e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Hp(e.parent));f.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&zp(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u});let p=f.getStack()?.lead;p&&!f.root.isUpdateBlocked()&&(p.willUpdate(),p.scheduleCheckAfterUnmount())}function Hp(e){if(e)return e.options.allowProjection===!1?Hp(e.parent):e.projection}function Up(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&lp(r);let s=n?n===`svg`:kp(e),c=s?Fp:Pp;function l(n,l){let u,d=Wp(n);j(()=>!!gl.current?.sharedNodes.get(d)?.lead&&n.initial)&&(n={...n,initial:!1});let f={...D(Rf),...n,layoutId:d},{isStatic:p,isValidProp:m}=f,h=hp(n),g=c(n,p);if(!p&&typeof window<`u`){Gp(f,r);let t=Kp(f);u=t.MeasureLayout,h.visualElement=Bp(e,g,f,o,t.ProjectionNode,s)}return a(pp.Provider,{value:h,children:[u&&h.visualElement?i(u,{visualElement:h.visualElement,...f}):null,Ap(e,n,Lp(g,h.visualElement,l),g,p,t,s,m)]})}l.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let u=te(l);return u[Ip]=e,u}function Wp({layoutId:e}){let t=D(Se).id;return t&&e!==void 0?t+`-`+e:e}function Gp(e,t){D(ip).strict}function Kp(e){let{drag:t,layout:n}=cp();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function qp(e,t){if(typeof Proxy>`u`)return Up;let n=new Map,r=(n,r)=>Up(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Up(a,void 0,e,t)),n.get(a))})}var Jp=qp(),Yp=(e,t)=>t.isSVG??kp(e)?new Tf(t):new Bl(t,{allowProjection:e!==u}),Xp=class extends vf{constructor(e){super(e),e.animationState||=Of(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();yl(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?.()}},Zp=0,Qp={animation:{Feature:Xp},exit:{Feature:class extends vf{constructor(){super(...arguments),this.id=Zp++}update(){let{presenceContext:e,prevPresenceContext:t,animationState:n}=this.node;if(!e||!n)return;let{isPresent:r,onExitComplete:i}=e,a=t?.isPresent;if(r===a)return;if(r&&a===!1){if(this.exit===!0){let{initial:e}=this.node.getProps();if(e&&!Array.isArray(e)){let{transition:t,transitionEnd:n,...r}=Na(this.node,e)||{};for(let e in r)this.node.getValue(e)?.jump(r[e])}this.node.blockInitialAnimation=!1,n.reset(),n.animateChanges()}else n.setActive(`exit`,!1);this.exit=void 0;return}let o=this.exit=n.setActive(`exit`,!r);i&&!r&&o.then(()=>{this.exit===o&&(this.exit=!0,i(this.id))})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id,this.node))}unmount(){}}}},$p=class extends vf{constructor(e){super(e),this.removeGroupControls=P,this.removeListeners=P,this.controls=new Yu(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||P}update(){let{dragControls:e,drag:t}=this.node.getProps(),{dragControls:n,drag:r}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls))),r&&!t&&this.controls.stop(void 0,void 0,r)}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},em=({current:e})=>e?e.ownerDocument.defaultView:null,tm=e=>(t,n)=>{e&&U.update(()=>e(t,n),!1,!0)},nm=class extends vf{constructor(){super(...arguments),this.removePointerDownListener=P}onPointerDown(e){this.session=new Cu(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:em(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:tm(e),onStart:tm(t),onMove:tm(n),onEnd:(e,t)=>{delete this.session,r&&U.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=au(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},rm=!1,im=({layout:e,layoutDependency:t})=>({layout:e,layoutDependency:t,animationType:typeof e==`string`?e:`both`}),am=class extends l{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),rm&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,...im(this.props),onExitComplete:()=>this.safeToRemove()})),Mc.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layout:t,layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:o}=r;return o&&(o.isPresent=a,(e.layoutDependency!==n||e.layout!==t)&&o.setOptions({...o.options,...im(this.props)}),rm=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==a?o.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?o.promote():o.relegate()||U.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),Ts.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;rm=!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 om(e){let[t,n]=Kf(),r=D(Se);return i(am,{...e,layoutGroup:r,switchLayoutGroup:D(Rp),isPresent:t,safeToRemove:n})}var sm={pan:{Feature:nm},drag:{Feature:$p,ProjectionNode:_l,MeasureLayout:om}};function cm(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&U.postRender(()=>i(t,ru(t)))}var lm=class extends vf{mount(){let{current:e}=this.node;e&&(this.unmount=ld(e,(e,t)=>(cm(this.node,t,`Start`),e=>cm(this.node,e,`End`))))}unmount(){}},um=class extends vf{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=Ie(ml(this.node.current,`focus`,()=>this.onFocus()),ml(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function dm(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&&U.postRender(()=>i(t,ru(t)))}var fm=class extends vf{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=_d(e,(e,t)=>(dm(this.node,t,`Start`),(e,{success:t})=>dm(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},pm=new WeakMap,mm=new WeakMap,hm=e=>{let t=pm.get(e.target);t&&t(e)},gm=e=>{e.forEach(hm)};function _m({root:e,...t}){let n=e||document;mm.has(n)||mm.set(n,{});let r=mm.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(gm,{root:e,...t})),r[i]}function vm(e,t,n){let r=_m(t);return pm.set(e,n),r.observe(e),()=>{pm.delete(e),r.unobserve(e)}}var ym={some:0,all:1},bm=class extends vf{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:ym[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=vm(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(xm(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function xm({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var Sm={inView:{Feature:bm},tap:{Feature:fm},focus:{Feature:um},hover:{Feature:lm}},Cm={layout:{ProjectionNode:_l,MeasureLayout:om}},wm=qp(Object.assign({},Qp,Sm,sm,Cm),Yp);function Tm(e){return O(()=>()=>e(),[])}var Em=Object.assign({renderer:Yp},Qp,Sm),Dm=Object.assign({},Em,sm,Cm),Om={renderer:Yp,...Qp};function km(e,t,n){me(()=>e.on(t,n),[e,t,n])}var Am=50,jm=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Mm=()=>({time:0,x:jm(),y:jm()}),Nm={x:{length:`Width`,position:`Left`},y:{length:`Height`,position:`Top`}},Pm=new WeakMap;function Fm(e,t){let n=e===document.scrollingElement,r=n&&document.body||e,i=Pm.get(r);i||Pm.set(r,i=getComputedStyle(r));let{writingMode:a,flexDirection:o}=i,s=t===`x`!==/^[vs]/.test(a);return(s?i.direction===`rtl`!=(a===`sideways-lr`):a.endsWith(`rl`))!==(!n&&i.display.includes(`flex`)&&(s===(o[0]===`c`)?i.flexWrap:o).endsWith(`reverse`))}function Im(e,t,n,r){let i=n[t],{length:a,position:o}=Nm[t],s=i.current,c=n.time,l=e[`scroll${o}`];i.current=Fm(e,t)?-l||0:l,i.containerLength=e[`client${a}`],i.targetLength=e[`scroll${a}`],i.scrollLength=i.targetLength-i.containerLength,i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=M(0,1,Le(0,i.scrollLength,i.current));let u=r-c;i.velocity=u>Am?0:ze(i.current-s,u)}function Lm(e,t,n){for(let r in Nm)Im(e,r,t,n);t.time=n}var Rm={start:0,center:.5,end:1};function zm(e,t,n=0){let r=0;if(e in Rm&&(e=Rm[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 Bm=[0,0];function Vm(e,t,n,r){let i=Array.isArray(e)?e:Bm,a=0,o=0;return typeof e==`number`?i=[e,e]:typeof e==`string`&&(e=e.trim(),i=e.includes(` `)?e.split(` `):[e,Rm[e]?e:`0`]),a=zm(i[0],n,r),o=zm(i[1],t),a-o}var Hm={All:[[0,0],[1,1]]};function Um(e,t){let n=e.length-1;if(n<1)return 0;let r=e[0]>e[n],i=t=>e[r?n-t:t];if(e[0]===e[1]&&t<i(0))return+!!r;let a=0;for(;a<n-1&&t>=i(a+1);)a++;let o=(a+Le(i(a),i(a+1),t))/n;return r?1-o:o}function Wm(e,t){let{offset:n=Hm.All,axis:r=`y`}=t,i=e[r];i.offset.length=0;let a=n.length;for(let e=0;e<a;e++)i.offset[e]=Vm(n[e],i.containerLength,i.targetLength,i.targetOffset);i.progress=M(0,1,Um(i.offset,i.current))}function Gm(e,t){let n={x:0,y:0},r=e;for(;r&&r!==t;)if(_o(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}function Km(e){return`getBBox`in e&&e.tagName!==`svg`?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function qm(e,t,n,r={}){let{target:i}=r,a=i||r.offset;return{measure:t=>{if(a){n.time=t.time;for(let e in Nm){let r=e,{offset:i}=n[r];Object.assign(n[r],t[r]),n[r].offset=i}if(i&&i!==e){let t=Gm(i,e),r=Km(i);n.x.targetOffset=t.x,n.y.targetOffset=t.y,n.x.targetLength=r.width,n.y.targetLength=r.height}Wm(n,r)}},notify:e=>t(a?n:e)}}var Jm=new WeakMap,Ym=new WeakMap,Xm=new WeakMap,Zm=new WeakMap,Qm=e=>e===document.scrollingElement?window:e;function $m(e,{container:t=document.scrollingElement,trackContentSize:n=!1,...r}={}){if(!t)return P;let i=Xm.get(t);i||(i=new Set,Xm.set(t,i));let a=qm(t,e,Mm(),r);if(i.add(a),!Jm.has(t)){let e=Mm(),n=()=>{Lm(t,e,L.timestamp);for(let t of i)t.measure(e);U.preUpdate(r)},r=()=>{for(let t of i)t.notify(e)},a=()=>U.read(n);Jm.set(t,a);let o=Qm(t);window.addEventListener(`resize`,a),t!==document.documentElement&&Ym.set(t,yu(t,a)),o.addEventListener(`scroll`,a),a()}if(n&&!Zm.has(t)){let e=Jm.get(t),n={width:t.scrollWidth,height:t.scrollHeight},r=U.read(()=>{let r=t.scrollWidth,i=t.scrollHeight;(n.width!==r||n.height!==i)&&(e(),n.width=r,n.height=i)},!0);Zm.set(t,r)}let o=Jm.get(t);return U.read(o,!1,!0),()=>{W(o);let e=Xm.get(t);if(!e||(e.delete(a),e.size))return;Xm.delete(t);let n=Jm.get(t);Jm.delete(t),n&&(Qm(t).removeEventListener(`scroll`,n),Ym.get(t)?.(),window.removeEventListener(`resize`,n));let r=Zm.get(t);r&&(W(r),Zm.delete(t))}}function eh(e){return typeof window>`u`?!1:e?ui():li()}var th=new Map;function nh({container:e,target:t,axis:n}){let r=th.get(e);r||(r=new Map,th.set(e,r));let i=t??`self`,a=r.get(i);return a||(a={},r.set(i,a)),a[n]||(a[n]=t?new ViewTimeline({subject:t,axis:n}):new ScrollTimeline({source:e,axis:n}))}var rh=e=>{if(/v/u.test(e))return[];let t=Vm(e,0,0,0);return[Vm(e,0,1,0)-t,t-Vm(e,1,0,0),t]},ih=([e,t,n])=>!n&&(t===0||t===1)&&`${t?`entry`:`exit`}-crossing ${e*100}%`;function ah(e=Hm.All){if(e.length!==2)return;let[t,n]=e.map(rh),r=[ih(t),ih(n)],i=n[0]-t[0],a=t[1]-n[1];if(r[0]&&r[1]&&(i||a))return{points:r,a:i,b:a,cover:!t[0]&&i===1&&a===1}}function oh(e,t){let{target:n,container:r,axis:i}=t,a=n&&ah(t.offset),o=eh(n)&&(n?!!a:!t.offset),s=new Map,c=new Set,l,u=!1,d=(e,t)=>{let[n,r]=a.points;t.effect.updateTiming({direction:u?e===`normal`?`reverse`:`alternate-reverse`:e}),Object.assign(t,{rangeStart:u?r:n,rangeEnd:u?n:r}),t.play()},f=[e.attachTimeline({get timeline(){return o?nh(t):void 0},onAttach:a&&(e=>{let t=e.effect.getTiming().direction;s.set(e,t),d(t,e)}),observe:e=>(e.pause(),c.add(e),l||=$m(e=>{c.forEach(t=>{t.time=t.iterationDuration*e[i].progress})},t),()=>c.delete(e))})];if(o&&a){let{a:e,b:t}=a,o=i===`y`?`clientHeight`:`clientWidth`,c=()=>{u!==(u=e*n[o]+t*r[o]<0)&&s.forEach(d)};c(),e*t<0&&f.push(yu(c),yu([n,r],c))}return()=>{f.forEach(e=>e()),l?.()}}function sh(e,{axis:t=`y`,source:n,container:r=document.scrollingElement,...i}={}){if(!r)return P;let a={axis:t,container:n||r,...i};if(typeof e==`function`){let n=xo(e);return yo($m(e=>n(e[t].progress,e),a))}return yo(oh(e,a))}var ch=()=>({scrollX:Y(0),scrollY:Y(0),scrollXProgress:Y(0),scrollYProgress:Y(0)}),lh=e=>e?!e.current:!1;function uh(e,t,n,r){return{factory:i=>{let a,o=()=>{lh(n)||lh(r)?Ts.read(o):a=sh(i,{...t,axis:e,container:n?.current||void 0,target:r?.current||void 0})};return Ts.read(o),()=>{Es(o),a?.()}},times:[0,1],keyframes:[0,1],ease:e=>e,duration:1}}function dh(e,t){return typeof window>`u`?!1:e?ui()&&!!ah(t):li()&&!t}function fh({container:e,target:t,...n}={}){let r=j(ch);dh(t,n.offset)&&(r.scrollXProgress.accelerate=uh(`x`,n,e,t),r.scrollYProgress.accelerate=uh(`y`,n,e,t));let i=k(null),a=k(!1),o=ce(()=>(i.current=sh((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 we(()=>{if(a.current=!1,lh(e)||lh(t))a.current=!0;else return o()},[o]),O(()=>{if(!a.current)return;let n,r=()=>{let r=lh(e),i=lh(t);!r&&!i&&(n=o())};return Ts.read(r),()=>{Es(r),n?.()}},[o]),r}function ph(e){return fh({container:e})}function mh(){return fh()}function hh(e){let t=j(()=>Y(e)),{isStatic:n}=D(Rf);if(n){let[,n]=A(e);O(()=>t.on(`change`,n),[])}return t}function gh(e,t){let n=hh(t()),r=()=>n.set(t());return r(),we(()=>{let t=()=>U.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return r(),()=>{n.forEach(e=>e()),W(r)}}),n}function _h(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+=X(n)?n.get():n)}return r}return gh(t.filter(X),r)}function vh(e){ua.current=[],e();let t=gh(ua.current,e);return ua.current=void 0,t}function yh(e,t,n,r){if(typeof e==`function`)return vh(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return xh(e,t,n,r);let i=typeof t==`function`?t:Ed(t,n,r),a=Array.isArray(e)?bh(e,i):bh([e],([e])=>i(e)),o=Array.isArray(e)?void 0:e.accelerate;if(o&&!o.isTransformed&&typeof t!=`function`&&Array.isArray(n)&&r?.clamp!==!1){let e=r?.ease;a.accelerate={...o,times:[0,...t,1],keyframes:[n[0],...n,n[n.length-1]],isTransformed:!0,...e?{ease:Array.isArray(e)?[e[0],...e]:e}:{}}}return a}function bh(e,t){let n=j(()=>[]);return gh(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function xh(e,t,n,r){let i=j(()=>Object.keys(n)),a=j(()=>({}));for(let o of i)a[o]=yh(e,t,n[o],r);return a}function Sh(e,t={}){return Ch(e,t,Nd)}function Ch(e,t,n){let{isStatic:r}=D(Rf),i=()=>X(e)?e.get():e;if(r)return yh(i);let a=hh(i());return me(()=>n(a,e,t),[a,JSON.stringify(t)]),a}function wh(e,t={}){return Ch(e,t,Rd)}function Th(e){let t=k(0),{isStatic:n}=D(Rf);O(()=>{if(n)return;let r=({timestamp:n,delta:r})=>{t.current||=n,e(n-t.current,r)};return U.update(r,!0),()=>W(r)},[e])}function Eh(){let e=hh(0);return Th(t=>e.set(t)),e}function Dh(e){let t=hh(e.getVelocity()),n=()=>{let r=e.getVelocity();t.set(r),r&&U.update(n)};return km(e,`change`,()=>{U.update(n,!1,!0)}),t}var Oh=class extends da{constructor(){super(...arguments),this.isEnabled=!1}add(e){(J.has(e)||Di.has(e))&&(this.isEnabled=!0,this.update())}update(){this.set(this.isEnabled?`transform`:`auto`)}};function kh(){return j(()=>new Oh(`auto`))}function Ah(){!Dl.current&&kl();let[e]=A(El.current);return e}function jh(){let e=Ah(),{reducedMotion:t}=D(Rf);return t===`never`?!1:t===`always`||e}function Mh(e){e.values.forEach(e=>e.stop())}function Nh(e,t){[...t].reverse().forEach(n=>{let r=e.getVariant(n);r&&za(e,r),e.variantChildren&&e.variantChildren.forEach(e=>{Nh(e,t)})})}function Ph(e,t){if(Array.isArray(t))return Nh(e,t);if(typeof t==`string`)return Nh(e,[t]);za(e,t)}function Fh(){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(Ya(e,t,{transitionOverride:n}))}),Promise.all(r)},set(t){return e.forEach(e=>{Ph(e,t)})},stop(){e.forEach(e=>{Mh(e)})},mount(){return()=>{t.stop()}}};return t}function Ih(e){return typeof e==`object`&&!Array.isArray(e)}function Lh(e,t,n,r){return e==null?[]:typeof e==`string`&&Ih(t)?So(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function Rh(e,t,n){return e*(t+1)+n*t}function zh(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 Bh(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(De(e,i),r--)}}function Vh(e,t,n,r,i,a){Bh(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:H(i,a,r[o]),easing:ot(n,o)})}function Hh(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function Uh(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var Wh=`easeInOut`,Gh=20;function Kh(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,zh(d,o.at,u,l));continue}let[p,m,h={}]=o;h.at!==void 0&&(d=zh(d,h.at,u,l));let g=0,_=(e,n,r,o=0,s=0)=>{let c=Yh(e),{delay:l=0,times:u=Xn(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=gi(p)?p:i?.[p||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&Qh(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,...v};b!==void 0&&(n.duration=F(b));let r=Nn(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 T=u.length-c.length;if(T>0&&Yn(u,T),c.length===1&&c.unshift(null),m&&`${m}${Gh}`,m&&m<Gh){let e=b>0?_/b:0;b=Rh(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`?qe(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`:ot(f,e-1))}Hh(u,m,e)}let ee=w+b;Vh(r,c,y,u,w,ee),g=Math.max(x+b,g),f=Math.max(ee,f)};if(X(p)){let e=qh(p,s);_(m,h,Jh(`default`,e))}else{let e=Lh(p,m,r,c),t=e.length;for(let n=0;n<t;n++){m=m,h=h;let r=e[n],i=qh(r,s);for(let e in m)_(m[e],Xh(h,e),Jh(e,i),n,t)}}u=d,d+=g}return s.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(Uh);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(Le(0,f,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift(Wh)),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 qh(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function Jh(e,t){return t[e]||(t[e]=[]),t[e]}function Yh(e){return Array.isArray(e)?e:[e]}function Xh(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var Zh=e=>typeof e==`number`,Qh=e=>e.every(Zh);function $h(e,t){return X(e)||typeof e==`number`||typeof e==`string`&&!Ih(t)}function eg(e,t,n,r){let i=[];if($h(e,t))i.push(Os(e,Ih(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=Lh(e,t,r),o=a.length;for(let e=0;e<o;e++){let r=a[e],s={...n};`delay`in s&&typeof s.delay==`function`&&(s.delay=s.delay(e,o)),r instanceof Element?i.push(...xs(r,t,s,vl.get(r))):i.push(...ho(po(r)??ws,r,t,s))}}return i}function tg(e,t,n){let r=[];return Kh(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=Y(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:Gn}).forEach(({keyframes:e,transition:t},n)=>{r.push(...eg(n,e,t))}),r}function ng(e){return Array.isArray(e)&&e.some(Array.isArray)}function rg(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=[],s,c=Z.current,l=c?.transition,u={};if(n!==void 0&&(u.reduceMotion=n),r!==void 0&&(u.skipAnimations=r),ng(e)){let{onComplete:n,...r}=i||{};typeof n==`function`&&(s=n),l&&(r.defaultTransition={...l,...r.defaultTransition}),o=tg(e,{...u,...r},t)}else{let{onComplete:n,...r}=a||{};typeof n==`function`&&(s=n),o=eg(e,i,{...u,...l,...r},t)}let d=new na(o);return s&&d.finished.then(s),c&&d.finished.then(c.add(()=>d.stop())),t&&(t.animations.push(d),d.finished.then(()=>{De(t.animations,d)})),d}return i}var ig=Object.assign(rg(),{addEffect:uo,removeEffect:fo});function ag(){let e=j(()=>({current:null,animations:[]})),t=jh()??void 0,{skipAnimations:n}=D(Rf),r=ge(()=>rg({scope:e,reduceMotion:t,skipAnimations:n}),[e,t,n]);return Tm(()=>{e.animations.forEach(e=>e.stop()),e.animations.length=0}),[e,r]}function og(e,t,{deps:n=[],...r}={}){let i=k(null),a=k(t);return a.current=t,we(()=>{let t=i.current=xd(e?.current||void 0,e=>a.current(e),r);return()=>{t.cancel(),i.current===t&&(i.current=null)}},n),i}function sg(e,t,n,r){if(e==null)return[];let i=So(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={...pa(s,e)};i.duration&&=F(i.duration),i.delay&&=F(i.delay);let a=oa(r),c=aa(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]=vd(r,i)),Or(t),oo(t,i),!a&&t.length<2&&t.unshift(vd(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 vi(r);t.set(n,i),i.finished.finally(()=>t.delete(n)),s.push(i)}return s}var cg=e=>{function t(t,n,r){return new na(sg(t,n,r,e))}return t},lg=cg();function ug(){let e=j(()=>({current:null,animations:[]})),t=j(()=>cg(e));return Tm(()=>{e.animations.forEach(e=>e.stop())}),[e,t]}function dg(){let e=j(Fh);return we(e.mount,[]),e}var fg=dg;function pg(){let e=D(Te);return e?e.custom:void 0}function mg(e,t,n,r){O(()=>{let i=e.current;if(n&&i)return ml(i,t,n,r)},[e,t,n,r])}var hg=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()})}},gg=()=>new hg;function _g(){return j(gg)}function vg(e){return typeof e==`object`&&!!e&&Ip in e}function yg(e){if(vg(e))return e[Ip]}function bg(){return xg}function xg(e){gl.current&&(gl.current.isUpdating=!1,gl.current.blockUpdate(),e&&e())}function Sg(){return ce(()=>{let e=gl.current;e&&e.resetTree()},[])}function Cg(...e){let t=k(0),[n,r]=A(e[t.current]);return[n,ce(n=>{t.current=typeof n==`number`?n:Ue(0,e.length,t.current+1),r(e[t.current])},[e.length,...e])]}var wg={some:0,all:1};function Tg(e,t,{root:n,margin:r,amount:i=`some`}={}){let a=So(e);t=xo(t);let 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:wg[i]});return a.forEach(e=>s.observe(e)),yo(()=>s.disconnect())}function Eg(e,{root:t,margin:n,amount:r,once:i=!1,initial:a=!1}={}){let[o,s]=A(a),[c,l]=A({});return O(()=>{let a=c.current=e.current;return!a||i&&o?void 0:Tg(a,()=>(s(!0),i?void 0:()=>s(!1)),{root:t&&t.current||void 0,margin:n,amount:r})},[t,e,n,i,r,c]),O(()=>{e.current!==c.current&&(i||s(!1),l({}))}),o}function Dg(){let[e,t]=ep(),n=bg(),r=k(-1);return O(()=>{U.postRender(()=>U.postRender(()=>{t===r.current&&(N.instantAnimations=!1)}))},[t]),i=>{n(()=>{N.instantAnimations=!0,e(),i(),r.current=t+1})}}function Og(){N.instantAnimations=!1}function kg(){let[e,t]=A(!0);return O(()=>{let e=()=>t(!document.hidden);return document.hidden&&e(),document.addEventListener(`visibilitychange`,e),()=>{document.removeEventListener(`visibilitychange`,e)}},[]),e}function Ag(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 jg(e){return t=>{let n=e.current;if(!n)return t;let r=Mg(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 Mg(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 Ng=new Map,Pg=new Map,Fg=(e,t)=>`${e}: ${J.has(t)?`transform`:t}`;function Ig(e,t,n){let r=Fg(e,t),i=Ng.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 Lg,Rg,zg=new Set;function Bg(){zg.forEach(e=>{e.animation.play(),e.animation.startTime=e.startTime}),zg.clear()}function Vg(e,t,n,r,i){if(window.MotionIsMounted)return;let a=e.dataset[Ha];if(!a)return;window.MotionHandoffAnimation=Ig;let o=Fg(a,t);Rg||(Rg=hi(e,t,[n[0],n[0]],{duration:1e4,ease:`linear`}),Ng.set(o,{animation:Rg,startTime:null}),window.MotionHandoffAnimation=Ig,window.MotionHasOptimisedAnimation=(e,t)=>{if(!e)return!1;if(!t)return Pg.has(e);let n=Fg(e,t);return!!Ng.get(n)},window.MotionHandoffMarkAsComplete=e=>{Pg.has(e)&&Pg.set(e,!0)},window.MotionHandoffIsComplete=e=>Pg.get(e)===!0,window.MotionCancelOptimisedAnimation=(e,t,n,r)=>{let i=Fg(e,t),a=Ng.get(i);a&&(n&&r===void 0?n.postRender(()=>{n.postRender(()=>{a.animation.cancel()})}):a.animation.cancel(),n&&r?(zg.add(a),n.render(Bg)):(Ng.delete(i),Ng.size||(window.MotionCancelOptimisedAnimation=void 0)))},window.MotionCheckAppearSync=(e,t,n)=>{let r=Wa(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=()=>{Rg.cancel();let a=hi(e,t,n,r);Lg===void 0&&(Lg=performance.now()),a.startTime=Lg,Ng.set(o,{animation:a,startTime:Lg}),i&&i(a)};Pg.set(a,!1),Rg.ready?Rg.ready.then(s).catch(P):s()}var Hg=()=>({}),Ug=class extends Pl{constructor(){super(...arguments),this.measureInstanceViewportBox=$}build(){}resetTransform(){}restoreTransform(){}removeValueFromRenderState(){}renderInstance(){}scrapeMotionValuesFromProps(){return Hg()}getBaseTargetFromProps(){}readValueFromInstance(e,t,n){return n.initialState[t]||0}sortInstanceNodePosition(){return 0}},Wg=Np({scrapeMotionValuesFromProps:Hg,createRenderState:Hg});function Gg(e){let[t,n]=A(e),r=Wg({},!1),i=j(()=>new Ug({props:{onUpdate:e=>{n({...e})}},visualState:r,presenceContext:null},{initialState:e}));return he(()=>(i.mount({}),()=>i.unmount()),[i]),[t,j(()=>e=>Ya(i,e))]}var Kg=0,qg=({children:e})=>(O(()=>{},[]),i(rp,{id:j(()=>`asl-${Kg++}`),children:e})),Jg=1e5,Yg=e=>e>.001?1/e:Jg;function Xg(e){let t=hh(1),n=hh(1),{visualElement:r}=D(pp);return e?(t=e.scaleX||t,n=e.scaleY||n):r&&(t=r.getValue(`scaleX`,1),n=r.getValue(`scaleY`,1)),{scaleX:yh(t,Yg),scaleY:yh(n,Yg)}}var Zg=w(null);function Qg(e,t,n,r,i,a=`ltr`){let o=e.findIndex(e=>e.value===t);if(o===-1)return e;if(i===`xy`){let{layout:t}=e[o],r={x:H(t.x.min,t.x.max,.5)+n.x,y:H(t.y.min,t.y.max,.5)+n.y},i=$g(e),s=i.find(t=>t.items.includes(e[o])),c=i.reduce((e,t)=>e_(r.y,t)<e_(r.y,e)?t:e);if(c!==s)return t_(e,o,r.x,c,a);let l=n_(r,t),u=-1,d=l;return e.forEach((e,t)=>{if(t===o)return;let n=n_(r,e.layout);n<d&&(u=t,d=n)}),u===-1?e:Oe(e,o,o+Math.sign(u-o))}if(!r[i])return e;let s=r[i]>0?1:-1,c=e[o+s];if(!c)return e;let l=e[o].layout[i],u=c.layout[i],d=H(u.min,u.max,.5);return s===1&&l.max+n[i]>d||s===-1&&l.min+n[i]<d?Oe(e,o,o+s):e}function $g(e){let t=[];return e.forEach(e=>{let{min:n,max:r}=e.layout.y,i=t[t.length-1];!i||n>=i.max||r<=i.min?t.push({items:[e],min:n,max:r}):(i.items.push(e),i.min=Math.min(i.min,n),i.max=Math.max(i.max,r))}),t}function e_(e,t){return e<t.min?t.min-e:e>t.max?e-t.max:0}function t_(e,t,n,r,i){let a=e.filter((e,n)=>n!==t),o=r.items.find(e=>{let t=H(e.layout.x.min,e.layout.x.max,.5);return i===`ltr`?n<t:n>t}),s=o?a.indexOf(o):a.indexOf(r.items[r.items.length-1])+1,c=[...a];return c.splice(s,0,e[t]),c.every((t,n)=>t===e[n])?e:c}function n_(e,t){let n=Math.max(t.x.min-e.x,0,e.x-t.x.max),r=Math.max(t.y.min-e.y,0,e.y-t.y.max);return n*n+r*r}var r_=(e,t)=>e.max<=t.min||t.max<=e.min;function i_(e){let t=!1,n=!1;for(let r=0;r<e.length;r++)for(let i=r+1;i<e.length;i++)if(t||=r_(e[r].x,e[i].x),n||=r_(e[r].y,e[i].y),t&&n)return`xy`;return t?`x`:`y`}function a_({children:e,as:t=`ul`,axis:n,onReorder:r,values:a,onPointerDownCapture:o,onClickCapture:s,...c},l){let u=j(()=>wm[t]),d=k(new Map),[f,p]=A(`y`),m=k(!1),h=k(!1),g=k(null),_=n||f,v=new Set(a);d.current.forEach((e,t)=>{v.has(t)||d.current.delete(t)});let y=()=>a.flatMap(e=>{let t=d.current.get(e);return t?[{value:e,layout:t}]:[]}),b=()=>g.current?.ownerDocument.defaultView?.getComputedStyle(g.current).direction===`rtl`,x=(e,t)=>{let n=0,i=a.map(t=>d.current.has(t)?e[n++].value:t);i.some((e,t)=>e!==a[t])&&r(i,t)},S={axis:_,groupRef:g,hasReordered:h,onKeyDown:(e,t,n,r)=>{let{key:i,currentTarget:o}=e;if(e.defaultPrevented||e.target!==o||e.altKey||e.ctrlKey||e.metaKey)return;let s=y(),c=[`ArrowUp`,`ArrowLeft`,`ArrowDown`,`ArrowRight`].indexOf(i),l=c%2;if(i===` `)e.repeat||r(o,n?void 0:a);else if(!n)return;else if(i===`Escape`){let e=n.flatMap(e=>s.filter(t=>t.value===e));x(s.map(t=>n.includes(t.value)?e.shift():t),t),r(o)}else if(c<0||_!==`xy`&&_!==(l?`x`:`y`))return;else{let e=s.findIndex(({value:e})=>e===t),n=e+(c>1==!!(l&&b())?-1:1);e>-1&&s[n]&&x(Oe(s,e,n),t)}e.preventDefault()},registerItem:(e,t)=>{if(d.current.set(e,t),!n){let e=i_(a.flatMap(e=>{let t=d.current.get(e);return t?[t]:[]}));e!==f&&p(e)}},updateOrder:(e,t,n)=>{if(m.current)return;let r=y(),i=Qg(r,e,t,n,_,b()?`rtl`:`ltr`);r!==i&&(m.current=!0,h.current=!0,x(i,e))}};O(()=>{m.current=!1},[a]);let C=e=>{g.current=e,typeof l==`function`?l(e):l&&(l.current=e)},w={overflowAnchor:`none`,...c.style};return i(u,{...c,style:w,ref:C,onPointerDownCapture:e=>{h.current=!1,o?.(e)},onClickCapture:e=>{h.current&&e.detail&&(h.current=!1,e.stopPropagation(),e.preventDefault()),s?.(e)},ignoreStrict:!0,children:i(Zg.Provider,{value:S,children:e})})}var o_=te(a_),s_=50,c_=1.5,l_=new Set([`auto`,`scroll`]),u_=new WeakMap,d_=new WeakMap,f_=null;function p_(){if(f_){let e=h_(f_,`y`);e&&(d_.delete(e),u_.delete(e));let t=h_(f_,`x`);t&&t!==e&&(d_.delete(t),u_.delete(t)),f_=null}}function m_(e,t){let n=getComputedStyle(e),r=t===`x`?n.overflowX:n.overflowY,i=e===document.body||e===document.documentElement;return l_.has(r)||i}function h_(e,t){let n=e?.parentElement;for(;n;){if(m_(n,t))return n;n=n.parentElement}return null}function g_(e){let t=Math.min(1,1-e/s_);return c_*t*t*L.delta}function __(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;return o<s_?{amount:-g_(o),edge:`start`}:s<s_?{amount:g_(s),edge:`end`}:{amount:0,edge:null}}function v_(e,t,n,r){if(!e)return;f_=e;let i=h_(e,n);if(!i)return;let{amount:a,edge:o}=__(t-(n===`x`?window.scrollX:window.scrollY),i,n);if(o===null){d_.delete(i),u_.delete(i);return}let s=d_.get(i),c=i===document.body||i===document.documentElement;if(s!==o){if(!(o===`start`&&r<0||o===`end`&&r>0))return;d_.set(i,o);let e=n===`x`?i.scrollWidth-(c?window.innerWidth:i.clientWidth):i.scrollHeight-(c?window.innerHeight:i.clientHeight);u_.set(i,e)}if(a>0){let e=u_.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 y_(e,t=0){return X(e)?e:hh(t)}function b_({children:e,style:t={},value:n,as:r=`li`,onDrag:a,onDragEnd:o,onKeyDown:s,onBlur:c,layout:l=!0,...u},d){let f=j(()=>wm[r]),p=D(Zg),[m,h]=A(),g={x:y_(t.x),y:y_(t.y)},_=yh([g.x,g.y],([e,t])=>e||t?1:`unset`),{axis:v,registerItem:y,updateOrder:b,groupRef:x,hasReordered:S,onKeyDown:C}=p,w=v===`xy`||v,T=(e,t)=>{h(t),vl.get(e)?.animationState?.setActive(`whileDrag`,!!t)};return i(f,{drag:w,tabIndex:0,...u,dragSnapToOrigin:!0,style:{...t,x:g.x,y:g.y,zIndex:_},layout:l,onDrag:(e,t)=>{let{velocity:r,point:i}=t,o={x:g.x.get(),y:g.y.get()};b(n,o,r);let s=v===`xy`?Math.abs(r.x)>Math.abs(r.y)?`x`:`y`:v;v_(x.current,i[s],s,r[s]),a&&a(e,t)},onDragEnd:(e,t)=>{S.current=!1,p_(),o&&o(e,t)},onKeyDown:e=>{s?.(e),C(e,n,m,T)},onBlur:e=>{c?.(e),m&&T(e.currentTarget)},onLayoutMeasure:e=>{y(n,e)},ref:d,ignoreStrict:!0,children:e})}var x_=te(b_),S_=t({Group:()=>o_,Item:()=>x_}),C_=t({AnimatePresence:()=>Zf,AnimateSharedLayout:()=>qg,AsyncMotionValueAnimation:()=>$i,DOMKeyframesResolver:()=>ro,DOMVisualElement:()=>Fl,DeprecatedLayoutGroupContext:()=>Qf,DocumentProjectionNode:()=>hl,DragControls:()=>hg,Feature:()=>vf,FlatTree:()=>jc,GroupAnimation:()=>ea,GroupAnimationWithThen:()=>na,HTMLProjectionNode:()=>_l,HTMLVisualElement:()=>Bl,JSAnimation:()=>hr,KeyframeResolver:()=>ii,LayoutAnimationBuilder:()=>eu,LayoutGroup:()=>rp,LayoutGroupContext:()=>Se,LazyMotion:()=>up,MotionConfig:()=>fp,MotionConfigContext:()=>Rf,MotionContext:()=>pp,MotionGlobalConfig:()=>N,MotionValue:()=>da,MotionValueState:()=>wo,NativeAnimation:()=>vi,NativeAnimationExtended:()=>Si,NativeAnimationWrapper:()=>ra,NodeStack:()=>Cc,ObjectVisualElement:()=>bf,PanSession:()=>Cu,PopChild:()=>Uf,PresenceChild:()=>Wf,PresenceContext:()=>Te,Reorder:()=>S_,SVGVisualElement:()=>Tf,SubscriptionManager:()=>Re,SwitchLayoutGroupContext:()=>Rp,ViewTransitionBuilder:()=>gf,VisualElement:()=>Pl,VisualElementDragControls:()=>Yu,WillChangeMotionValue:()=>Oh,acceleratedValues:()=>Di,activeScope:()=>Z,addAttrValue:()=>Uo,addBuilderToScope:()=>bo,addDomEvent:()=>ml,addEffect:()=>uo,addPointerEvent:()=>au,addPointerInfo:()=>iu,addSVGValue:()=>Ko,addScaleCorrector:()=>As,addStyleValue:()=>Ao,addToScope:()=>yo,addUniqueItem:()=>Ee,addValueToWillChange:()=>Va,alpha:()=>xt,analyseComplexValue:()=>Zt,animate:()=>ig,animateEffectSubject:()=>ho,animateElement:()=>xs,animateLayout:()=>Ff,animateMini:()=>lg,animateMotionValue:()=>xa,animateSingleValue:()=>Os,animateTarget:()=>qa,animateValue:()=>gr,animateValues:()=>mo,animateVariant:()=>Ja,animateView:()=>_f,animateVisualElement:()=>Ya,animationControls:()=>Fh,animationMapKey:()=>aa,animations:()=>Qp,anticipate:()=>Ze,applyAxisDelta:()=>ss,applyBoxDelta:()=>cs,applyGeneratorOptions:()=>_i,applyPointDelta:()=>os,applyPxDefaults:()=>oo,applyTreeDeltas:()=>ds,arc:()=>Da,aspectRatio:()=>xc,attachFollow:()=>Nd,attachSpring:()=>Rd,attrEffect:()=>Wo,axisDeltaEquals:()=>Sc,axisEquals:()=>_c,axisEqualsRounded:()=>yc,backIn:()=>Ye,backInOut:()=>Xe,backOut:()=>Je,bindToScope:()=>xo,boxEquals:()=>vc,boxEqualsRounded:()=>bc,buildHTMLStyles:()=>Io,buildProjectionTransform:()=>Oc,buildSVGAttrs:()=>Vo,buildSVGPath:()=>zo,buildTransform:()=>Ii,calcAxisDelta:()=>ec,calcBoxDelta:()=>tc,calcChildStagger:()=>sa,calcGeneratorDuration:()=>Mn,calcLength:()=>Q,calcRelativeAxis:()=>nc,calcRelativeAxisPosition:()=>ic,calcRelativeBox:()=>rc,calcRelativePosition:()=>ac,camelCaseAttributes:()=>xf,camelToDash:()=>Fo,cancelFrame:()=>W,cancelMicrotask:()=>Es,cancelSync:()=>Lf,checkVariantsDidChange:()=>kf,circIn:()=>Qe,circInOut:()=>et,circOut:()=>$e,clamp:()=>M,cleanDirtyNodes:()=>Wc,collectMotionValues:()=>ua,color:()=>B,compareByDepth:()=>Ac,complex:()=>V,containsCSSVariable:()=>yt,convertBoundingBoxToBox:()=>Zo,convertBoxToBoundingBox:()=>Qo,convertOffsetToTimes:()=>Zn,copyAxisDeltaInto:()=>Js,copyAxisInto:()=>Ks,copyBoxInto:()=>qs,correctBorderRadius:()=>Tc,correctBoxShadow:()=>Ec,correctParentTransform:()=>jg,createAnimationState:()=>Of,createAxis:()=>mc,createAxisDelta:()=>fc,createBox:()=>$,createDelta:()=>pc,createEffect:()=>To,createGeneratorEasing:()=>Nn,createProjectionNode:()=>Bc,createRenderBatcher:()=>Dn,createScopedAnimate:()=>rg,cubicBezier:()=>Ge,cubicBezierAsString:()=>fi,defaultEasing:()=>Qn,defaultOffset:()=>Xn,defaultTransformValue:()=>Lr,defaultValueTypes:()=>wr,degrees:()=>Pt,delay:()=>Ms,delayInSeconds:()=>Ns,dimensionValueTypes:()=>Qa,disableInstantTransitions:()=>Og,distance:()=>bu,distance2D:()=>xu,domAnimation:()=>Em,domMax:()=>Dm,domMin:()=>Om,drag:()=>od,eachAxis:()=>kc,easeIn:()=>tt,easeInOut:()=>rt,easeOut:()=>nt,easingDefinitionToFunction:()=>ut,elementDragControls:()=>Ju,expectsResolvedDragConstraints:()=>nd,extractEventInfo:()=>ru,fillOffset:()=>Yn,fillWildcards:()=>Or,filterProps:()=>Dp,findDimensionValueType:()=>$a,findEffect:()=>po,findValueType:()=>Bd,flushKeyframeResolvers:()=>ni,followValue:()=>Md,frame:()=>U,frameData:()=>L,frameSteps:()=>On,generateLinearEasing:()=>An,getAnimatableNone:()=>Dr,getAnimationMap:()=>oa,getComputedStyle:()=>vd,getDefaultTransition:()=>va,getDefaultValueType:()=>Tr,getEasingForSegment:()=>ot,getFeatureDefinitions:()=>Nl,getFinalKeyframe:()=>ir,getMixer:()=>gn,getOptimisedAppearId:()=>Wa,getOriginIndex:()=>wd,getValueAsType:()=>Ni,getValueTransition:()=>pa,getVariableValue:()=>Aa,getVariantContext:()=>Mf,getViewAnimationLayerInfo:()=>Qd,getViewAnimations:()=>$d,globalProjectionState:()=>Mc,handOffElementState:()=>Cs,has2DTranslate:()=>rs,hasComplexValues:()=>Xt,hasReducedMotionListener:()=>Dl,hasScale:()=>ts,hasTransform:()=>ns,hasWarned:()=>Ve,hex:()=>Mt,hover:()=>ld,hsla:()=>zt,hslaToRgba:()=>on,inView:()=>Tg,inertia:()=>Kn,initPrefersReducedMotion:()=>kl,interpolate:()=>Jn,invariant:()=>je,invisibleValues:()=>pn,isAnimationControls:()=>yl,isBezierDefinition:()=>st,isBrowser:()=>Ce,isCSSVariableName:()=>ht,isCSSVariableToken:()=>_t,isControllingVariants:()=>Cl,isDeltaZero:()=>gc,isDragActive:()=>Fu,isDragging:()=>Pu,isEasingArray:()=>at,isElementKeyboardAccessible:()=>ju,isElementTextInput:()=>Nu,isForcedMotionValue:()=>Ll,isGenerator:()=>gi,isHTMLElement:()=>_o,isKeyframesTarget:()=>Ia,isMotionComponent:()=>vg,isMotionValue:()=>X,isNear:()=>$s,isNodeOrChild:()=>ud,isNumericalString:()=>Me,isObject:()=>Ne,isPrimaryPointer:()=>nu,isSVGElement:()=>vo,isSVGSVGElement:()=>Ps,isSVGTag:()=>Sf,isTransitionDefined:()=>ba,isValidMotionProp:()=>Tp,isVariantLabel:()=>bl,isVariantNode:()=>wl,isWaapiSupportedEasing:()=>so,isWillChangeMotionValue:()=>Ba,isZeroValueString:()=>Pe,keyframes:()=>$n,m:()=>Jp,makeAnimationInstant:()=>Ei,makeUseVisualState:()=>Np,mapEasingToNativeEasing:()=>mi,mapValue:()=>Id,maxGeneratorDuration:()=>jn,measurePageBox:()=>_s,measureViewportBox:()=>gs,memo:()=>Fe,microtask:()=>Ts,millisecondsToSeconds:()=>I,mirrorEasing:()=>Ke,mix:()=>Cn,mixArray:()=>_n,mixColor:()=>fn,mixComplex:()=>bn,mixImmediate:()=>sn,mixLinearColor:()=>cn,mixNumber:()=>H,mixObject:()=>vn,mixValues:()=>Vs,mixVisibility:()=>mn,motion:()=>wm,motionValue:()=>Y,moveItem:()=>Oe,nodeGroup:()=>Pf,noop:()=>P,number:()=>bt,numberValueTypes:()=>K,optimizedAppearDataAttribute:()=>Ua,optimizedAppearDataId:()=>Ha,originProps:()=>Oo,parseAnimateLayoutArgs:()=>tu,parseCSSVariable:()=>ka,parseValueFromTransform:()=>Rr,percent:()=>Ft,pipe:()=>Ie,pixelsToPercent:()=>wc,positionalKeys:()=>Fa,prefersReducedMotion:()=>El,press:()=>_d,processFrame:()=>Ds,progress:()=>Le,progressPercentage:()=>Rt,propEffect:()=>ws,propagateDirtyNodes:()=>Uc,px:()=>z,readSVGValue:()=>qo,readStyleValue:()=>Mo,readTransformValue:()=>zr,recordStats:()=>Cd,releaseElement:()=>Ss,removeAxisDelta:()=>sc,removeAxisTransforms:()=>cc,removeBoxTransforms:()=>dc,removeEffect:()=>fo,removeItem:()=>De,removePointDelta:()=>oc,renderHTML:()=>Il,renderSVG:()=>Cf,resize:()=>yu,resolveElements:()=>So,resolveMotionValue:()=>Fs,resolveTransition:()=>fa,resolveVariant:()=>Na,resolveVariantFromProps:()=>Ma,reverseEasing:()=>qe,rgbUnit:()=>kt,rgba:()=>At,rootProjectionNode:()=>gl,round:()=>mr,sampleDelta:()=>10,scale:()=>St,scaleCorrectors:()=>ks,scalePoint:()=>as,scopeMotion:()=>xd,scrapeHTMLMotionValuesFromProps:()=>Rl,scrapeSVGMotionValuesFromProps:()=>wf,scroll:()=>sh,scrollInfo:()=>$m,secondsToMilliseconds:()=>F,setDragLock:()=>Iu,setFeatureDefinitions:()=>Ml,setStyle:()=>oi,setTarget:()=>za,spring:()=>Gn,springValue:()=>Ld,stagger:()=>Td,startOptimizedAppearAnimation:()=>Vg,startWaapiAnimation:()=>hi,statsBuffer:()=>js,steps:()=>it,styleEffect:()=>Po,styleSubjectEffect:()=>No,supportedWaapiEasing:()=>pi,supportsBrowserAnimation:()=>Mi,supportsFlags:()=>si,supportsLinearEasing:()=>di,supportsPartialKeyframes:()=>co,supportsScrollTimeline:()=>li,supportsViewTimeline:()=>ui,supportsWaapi:()=>ji,svgEffect:()=>Yo,svgSubjectEffect:()=>Jo,sync:()=>If,testValueType:()=>Za,time:()=>R,toMediaQuery:()=>bd,transform:()=>Ed,transformAxis:()=>ps,transformBox:()=>hs,transformBoxPoints:()=>$o,transformPropOrder:()=>q,transformProps:()=>J,transformValue:()=>Fd,transformValueTypes:()=>Cr,transformViewBoxPoint:()=>Ag,translateAxis:()=>fs,unwrapMotionComponent:()=>yg,updateMotionValuesFromProps:()=>Tl,useAnimate:()=>ag,useAnimateMini:()=>ug,useAnimation:()=>fg,useAnimationControls:()=>dg,useAnimationFrame:()=>Th,useComposedRefs:()=>Vf,useCycle:()=>Cg,useDeprecatedAnimatedState:()=>Gg,useDeprecatedInvertedScale:()=>Xg,useDomEvent:()=>mg,useDragControls:()=>_g,useElementScroll:()=>ph,useFollowValue:()=>Sh,useForceUpdate:()=>ep,useInView:()=>Eg,useInstantLayoutTransition:()=>bg,useInstantTransition:()=>Dg,useIsPresent:()=>qf,useIsomorphicLayoutEffect:()=>we,useMotionTemplate:()=>_h,useMotionValue:()=>hh,useMotionValueEvent:()=>km,usePageInView:()=>kg,usePresence:()=>Kf,usePresenceData:()=>pg,useReducedMotion:()=>Ah,useReducedMotionConfig:()=>jh,useResetProjection:()=>Sg,useScopeMotion:()=>og,useScroll:()=>fh,useSpring:()=>wh,useTime:()=>Eh,useTransform:()=>yh,useUnmountEffect:()=>Tm,useVelocity:()=>Dh,useViewportScroll:()=>mh,useWillChange:()=>kh,variantPriorityOrder:()=>xl,variantProps:()=>Sl,velocityPerSecond:()=>ze,vh:()=>It,visualElementStore:()=>vl,vw:()=>Lt,warnOnce:()=>He,warning:()=>Ae,wrap:()=>Ue}),w_=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}},T_=C_;w_.register([`framer-motion`,`motion/react`,`motion`],T_),window.Motion=T_})();
|
|
1
|
+
(function(){var e=Object.defineProperty,t=(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},n=window.__libreArtifactRuntime.modules[`react/jsx-runtime`];n.default;var{Fragment:r,jsx:i,jsxs:a}=n,o=window.__libreArtifactRuntime.modules.react;o.default;var{Activity:s,Children:c,Component:l,Fragment:u,Profiler:d,PureComponent:f,StrictMode:p,Suspense:m,ViewTransition:h,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:g,__COMPILER_RUNTIME:_,act:v,addTransitionType:y,cache:b,cacheSignal:x,captureOwnerStack:S,cloneElement:C,createContext:w,createElement:T,createRef:E,forwardRef:ee,isValidElement:te,lazy:ne,memo:re,startTransition:D,unstable_useCacheRefresh:ie,use:ae,useActionState:oe,useCallback:se,useContext:O,useDebugValue:ce,useDeferredValue:le,useEffect:k,useEffectEvent:ue,useId:de,useImperativeHandle:fe,useInsertionEffect:pe,useLayoutEffect:me,useMemo:he,useOptimistic:ge,useReducer:_e,useRef:A,useState:j,useSyncExternalStore:ve,useTransition:ye,version:be}=o,xe=w({});function M(e){let t=A(null);return t.current===null&&(t.current=e()),t.current}var Se=typeof window<`u`,Ce=Se?me:k,we=w(null);function Te(e,t){e.indexOf(t)===-1&&e.push(t)}function Ee(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function De([...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 N=(e,t,n)=>n>t?t:n<e?e:n;function Oe(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}var ke=()=>{},Ae=()=>{},P={},je=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Me=e=>typeof e==`object`&&!!e,Ne=e=>/^0[^.\s]+$/u.test(e);function Pe(e){let t;return()=>(t===void 0&&(t=e()),t)}var F=e=>e,Fe=(...e)=>e.reduce((e,t)=>n=>t(e(n))),Ie=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},Le=class{constructor(){this.subscriptions=[]}add(e){return Te(this.subscriptions,e),()=>this.remove(e)}remove(e){Ee(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}},I=e=>e*1e3,L=e=>e/1e3,Re=(e,t)=>t?1e3/t*e:0,ze=new Set;function Be(e){return ze.has(e)}function Ve(e,t,n){e||ze.has(t)||(console.warn(Oe(t,n)),ze.add(t))}var He=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},Ue=(e,t,n)=>e*(3*(1-e)*((1-e)*t+e*n)+e*e);function We(e,t,n,r){return e===t&&n===r?F:i=>{let a=0,o=1,s=i;for(let t=0;;t++){s>=a&&s<=o||(s=(a+o)/2);let r=Ue(s,e,n)-i;if(r*r<1e-28||t===40)break;r>0?o=s:a=s,s-=r*1e-7/(Ue(s+1e-7,e,n)-i-r)}return Ue(s,t,r)}}var Ge=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ke=e=>t=>1-e(1-t),qe=We(.33,1.53,.69,.99),Je=Ke(qe),Ye=Ge(Je),Xe=e=>e>=1?1:(e*=2)<1?.5*Je(e):.5*(2-2**(-10*(e-1))),Ze=e=>1-Math.sin(Math.acos(e)),Qe=Ke(Ze),$e=Ge(Ze),et=We(.42,0,1,1),tt=We(0,0,.58,1),nt=We(.42,0,.58,1);function rt(e,t=`end`){return n=>{n=t===`end`?Math.min(n,.999):Math.max(n,.001);let r=n*e;return N(0,1,(t===`end`?Math.floor(r):Math.ceil(r))/e)}}var it=e=>Array.isArray(e)&&typeof e[0]!=`number`;function at(e,t){return it(e)?e[He(0,e.length,t)]:e}var ot=e=>Array.isArray(e)&&typeof e[0]==`number`,st={linear:F,easeIn:et,easeInOut:nt,easeOut:tt,circIn:Ze,circInOut:$e,circOut:Qe,backIn:Je,backInOut:Ye,backOut:qe,anticipate:Xe},ct=e=>typeof e==`string`,lt=e=>{if(ot(e)){let[t,n,r,i]=e;return We(t,n,r,i)}return ct(e)?st[e]:e},R={delta:0,timestamp:0,isProcessing:!1},ut;function dt(){ut=void 0}var z={now:()=>(ut===void 0&&z.set(R.isProcessing||P.useManualTiming?R.timestamp:performance.now()),ut),set:e=>{ut=e,queueMicrotask(dt)}},ft=e=>Math.round(e*1e5)/1e5,pt=e=>t=>typeof t==`string`&&t.startsWith(e),mt=pt(`--`),ht=pt(`var(--`),gt=e=>ht(e)?_t.test(e.split(`/*`)[0].trim()):!1,_t=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function vt(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var yt={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},bt={...yt,transform:e=>N(0,1,e)},xt={...yt,default:1},St=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ct(e){return e==null}var wt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Tt=(e,t)=>n=>!!(typeof n==`string`&&wt.test(n)&&n.startsWith(e)||t&&!Ct(n)&&Object.prototype.hasOwnProperty.call(n,t)),Et=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(St);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Dt=e=>N(0,255,e),Ot={...yt,transform:e=>Math.round(Dt(e))},kt={test:Tt(`rgb`,`red`),parse:Et(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Ot.transform(e)+`, `+Ot.transform(t)+`, `+Ot.transform(n)+`, `+ft(bt.transform(r))+`)`},At=(e,t,n)=>{let r=e.substring(1+t*n,1+(t+1)*n);return n>1?r:r+r};function jt(e){let t=e.length>5?2:1,n=At(e,3,t);return{red:parseInt(At(e,0,t),16),green:parseInt(At(e,1,t),16),blue:parseInt(At(e,2,t),16),alpha:n?parseInt(n,16)/255:1}}var Mt={test:Tt(`#`),parse:jt,transform:kt.transform},Nt=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Pt=Nt(`deg`),Ft=Nt(`%`),B=Nt(`px`),It=Nt(`vh`),Lt=Nt(`vw`),Rt={...Ft,parse:e=>Ft.parse(e)/100,transform:e=>Ft.transform(e*100)},zt={test:Tt(`hsl`,`hue`),parse:Et(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Ft.transform(ft(t))+`, `+Ft.transform(ft(n))+`, `+ft(bt.transform(r))+`)`},V={test:e=>kt.test(e)||Mt.test(e)||zt.test(e),parse:e=>kt.test(e)?kt.parse(e):zt.test(e)?zt.parse(e):Mt.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?kt.transform(e):zt.transform(e),getAnimatableNone:e=>{let t=V.parse(e);return t.alpha=0,V.transform(t)}},Bt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Vt=new RegExp(St.source),Ht=new RegExp(Bt.source,`i`);function Ut(e){return isNaN(e)&&typeof e==`string`&&(Vt.test(e)||Ht.test(e))}var Wt=`number`,Gt=`color`,Kt=`var`,qt=`var(`,Jt="${}",Yt=/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+)(?![a-z]*\()/giu;function Xt(e){let t=e.toString();return Vt.test(t)||Ht.test(t)}function Zt(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Yt,e=>(V.test(e)?(r.color.push(a),i.push(Gt),n.push(V.parse(e))):e.startsWith(qt)?(r.var.push(a),i.push(Kt),n.push(e)):(r.number.push(a),i.push(Wt),n.push(parseFloat(e))),++a,Jt)).split(Jt),indexes:r,types:i}}function Qt(e){return Zt(e).values}function $t({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===Wt?ft(r[a]):e===Gt?V.transform(r[a]):r[a]}return i}}function en(e){return $t(Zt(e))}var tn=e=>typeof e==`number`?0:V.test(e)?V.getAnimatableNone(e):e,nn=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:tn(e);function rn(e){let t=Zt(e);return $t(t)(t.values.map((e,n)=>nn(e,t.split[n])))}var H={test:Ut,parse:Qt,createTransformer:en,getAnimatableNone:rn};function an(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 on({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=an(s,r,e+1/3),a=an(s,r,e),o=an(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function sn(e,t){return n=>n>0?t:e}var U=(e,t,n)=>e+(t-e)*n,cn=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},ln=[Mt,kt,zt],un=e=>ln.find(t=>t.test(e));function dn(e){let t=un(e);if(!t)return!1;let n=t.parse(e);return t===zt&&(n=on(n)),n}var fn=(e,t)=>{let n=dn(e),r=dn(t);if(!n||!r)return sn(e,t);let i={...n};return e=>(i.red=cn(n.red,r.red,e),i.green=cn(n.green,r.green,e),i.blue=cn(n.blue,r.blue,e),i.alpha=U(n.alpha,r.alpha,e),kt.transform(i))},pn=new Set([`none`,`hidden`]);function mn(e,t){return pn.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function hn(e,t){return n=>U(e,t,n)}function gn(e){return typeof e==`number`?hn:typeof e==`string`?gt(e)?sn:V.test(e)?fn:bn:Array.isArray(e)?_n:typeof e==`object`?V.test(e)?fn:vn:sn}function _n(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>gn(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function vn(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=gn(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function yn(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 bn=(e,t)=>{let n=Zt(e),r=Zt(t);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?pn.has(e)&&!r.values.length||pn.has(t)&&!n.values.length?mn(e,t):Fe(_n(yn(n,r),r.values),$t(r)):sn(e,t)},xn=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function Sn(e,t){let n=xn.exec(e);if(!n)return;let r=xn.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>ft(U(a,o,e))+i}function Cn(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return U(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=Sn(e,t);if(n)return n}return gn(e)(e,t)}var wn=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function Tn(e){let t=new Set,n=new Set,r=!1,i=!1,a,o=new Set,s={delta:0,timestamp:0,isProcessing:!1};function c(t){o.has(t)&&(n.add(t),e()),(a=t)(s)}let l={schedule:(e,i=!1,s=!1)=>{let c=s&&r,l=c?t:n;return i&&o.add(e),c&&e!==a&&l.delete(e),l.add(e),e},cancel:e=>{n.delete(e),o.delete(e)},process:e=>{if(s=e,r){i=!0;return}r=!0;let o=t;t=n,n=o,t.forEach(c),t.clear(),a=void 0,r=!1,i&&(i=!1,l.process(e))}};return l}var En=40;function Dn(e,t,n={delta:0,timestamp:0,isProcessing:!1}){let r=!1,i=!0,a=()=>r=!0,o=wn.reduce((e,t)=>(e[t]=Tn(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=P.useManualTiming,o=a?n.timestamp:performance.now();r=!1,a||(n.delta=i?1e3/60:Math.max(Math.min(o-n.timestamp,En),1)),n.timestamp=o,n.isProcessing=!0,s.process(n),c.process(n),l.process(n),u.process(n),d.process(n),f.process(n),p.process(n),m.process(n),n.isProcessing=!1,r&&t&&(i=!1,e(h))},g=()=>{r=!0,i=!0,n.isProcessing||e(h)};return{schedule:wn.reduce((e,t)=>{let n=o[t];return e[t]=(e,t=!1,i=!1)=>(r||g(),n.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<wn.length;t++)o[wn[t]].cancel(e)},state:n,steps:o}}var{schedule:W,cancel:G,steps:On}=Dn(typeof requestAnimationFrame<`u`?requestAnimationFrame:F,!0,R),kn=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>W.update(t,e),stop:()=>G(t),now:()=>R.isProcessing?R.timestamp:z.now()}},An=(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)})`},jn=2e4;function Mn(e,t=50,n=jn,r){let i=0,a=e.next(i);for(r?.push(a.value);!a.done&&i<n;)i+=t,a=e.next(i),r?.push(a.value);return i>=n?1/0:i}function Nn(e,t=100,n){let{keyframes:r,velocity:i}=e,a=r&&r[r.length-1]-r[0],o=n({...e,velocity:i&&a?i*t/a:i,keyframes:[0,t]}),s=Math.min(Mn(o),jn);return{type:`keyframes`,ease:e=>o.next(s*e).value/t,duration:L(s)}}var Pn=100,Fn=10,In=1,Ln=800,Rn=.3,zn=.3,Bn=.01,Vn=2,Hn=.005,Un=.5,Wn=.01,Gn=10,Kn=.05,qn=e=>e<0?1/Math.max(1+e,Kn):Math.max(1-e,Kn);function Jn(e,t){if(!(e>1))return 1;let n=Math.sqrt(e*e-1),r=e-n,i=e+n,a=2*n*Math.exp(-t)*(1+t);return Zn(e=>i*Math.exp(-r*e)-r*Math.exp(-i*e)-a,e=>Math.exp(-i*e)-Math.exp(-r*e),t)/t}function Yn(e,t){return e*Math.sqrt(1-t*t)}var Xn=12;function Zn(e,t,n){let r=n;for(let n=1;n<Xn;n++)r-=e(r)/t(r);return r}var Qn=.001;function $n({duration:e=Ln,bounce:t=Rn}){let n,r,i=qn(t);e=N(Wn,Gn,L(e)),i<1?(n=t=>{let n=t*i,r=n*e,a=Yn(t,i),o=Math.exp(-r);return Qn-n/a*o},r=t=>{let r=t*i*e,a=i*i*t*t*e,o=Math.exp(-r),s=Yn(t*t,i);return(-n(t)+Qn>0?-1:1)*-a*o/s}):(n=t=>-.001+Math.exp(-t*e)*(t*e+1),r=t=>Math.exp(-t*e)*(-t*(e*e)));let a=5/e,o=Zn(n,r,a),s=o*Jn(i,o*e),c=s*s;return{stiffness:c,damping:i*2*Math.sqrt(c),duration:I(e)}}var er=(e,t)=>(t?e>=0:e>0)&&e<1/0;function tr(e,t){if(er(e,t))return e}function nr(e){let t=tr(e.stiffness),n=tr(e.damping,!0),r=tr(e.mass),i={...e,stiffness:t??Pn,damping:n??Fn,mass:r??In,isResolvedFromDuration:!1,isTimeDefined:(t??n??r)===void 0&&(e.duration!==void 0||e.bounce!==void 0)};if(i.isTimeDefined){if(e.visualDuration){let t=qn(e.bounce||0),n=2*Math.PI/(e.visualDuration*1.2)*Jn(t,2*Math.PI/1.2);i.stiffness=n*n,i.damping=2*t*Math.sqrt(i.stiffness)}else Object.assign(i,$n(i)),i.isResolvedFromDuration=!0;er(i.stiffness)&&er(i.damping,!0)||(i.stiffness=Pn,i.damping=Fn)}return i}function rr(e=zn,t=Rn){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},r=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:o,damping:s,mass:c,duration:l,isResolvedFromDuration:u,isTimeDefined:d}=nr({...n}),f=e=>d?0:-L(e),p=s/(2*Math.sqrt(o*c)),m=L(Math.sqrt(o/c)),h=p*m,g={target:i,delta:i-r,velocity:f(n.velocity||0)||0,restSpeed:0,restDelta:0},_=()=>{let e=Math.abs(g.delta)<5;g.restSpeed=n.restSpeed||(e?Bn:Vn),g.restDelta=n.restDelta||(e?Hn:Un)};_();let v,y,b;if(p<1){let e=Yn(m,p),t={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};b=()=>{t.A=(g.velocity+h*g.delta)/e,t.sinC=h*t.A+g.delta*e,t.cosC=h*g.delta-t.A*e};let n=n=>{n!==t.t&&(t.t=n,t.env=Math.exp(-h*n),t.sin=Math.sin(e*n),t.cos=Math.cos(e*n))};v=e=>(n(e),g.target-t.env*(t.A*t.sin+g.delta*t.cos)),y=e=>(n(e),t.env*(t.sinC*t.sin+t.cosC*t.cos))}else if(p===1){v=e=>g.target-Math.exp(-m*e)*(g.delta+(g.velocity+m*g.delta)*e);let e={C:0};b=()=>{e.C=g.velocity+m*g.delta},y=t=>Math.exp(-m*t)*(m*e.C*t-g.velocity)}else{let e=m*Math.sqrt(p*p-1),t=h-e,n=h+e,r=e<1||d?1/0:300/e,i=(e,t)=>Math.exp(t>r?(h-e)*r-h*t:-e*t),a={S:0,F:0};b=()=>{let t=(g.velocity+h*g.delta)/e;a.S=(g.delta+t)/2,a.F=(g.delta-t)/2},v=e=>g.target-a.S*i(t,e)-a.F*i(n,e),y=e=>t*a.S*i(t,e)+n*a.F*i(n,e)}b();let x=u&&l||null,S={calculatedDuration:x,retarget:(e,t)=>{g.target=e[e.length-1],g.delta=g.target-e[0],g.velocity=f(t),n.restSpeed&&n.restDelta||_(),S.calculatedDuration=x,a.done=!1,b()},velocity:e=>I(y(e)),next:e=>{let t=v(e);if(u)a.done=e>=l;else{let n=I(y(e));a.done=Math.abs(n)<=g.restSpeed&&Math.abs(g.target-t)<=g.restDelta}return a.value=a.done?g.target:t,a},toString:()=>{let e=Math.min(Mn(S),jn),t=An(t=>S.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return S}var ir=Object.assign(rr,{applyToOptions:e=>{let t=Nn(e,100,rr);return e.ease=t.ease,e.duration=I(t.duration),e.type=`keyframes`,e}});function ar({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=>e<s||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?o(g):g;_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>{let t=v(e);f.done=Math.abs(t)<=l,f.value=f.done?_:e?_+t:d},b,x,S=e=>{p(f.value)&&(b=e,x=ir({keyframes:[f.value,m(f.value)],velocity:-v(e)/r*1e3,damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return!x&&b===void 0&&(t=!0,y(e),S(e)),b!==void 0&&e>=b?x.next(e-b):(!t&&y(e),f)}}}function or(e,t,n){let r=[],i=P.mix||Cn,a=e.length-1;for(let o=0;o<a;o++){let a=n?.(e[o],e[o+1])||i(e[o],e[o+1]);t&&(a=Fe(Array.isArray(t)?t[o]||F:t,a)),r.push(a)}return r}function sr(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(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=or(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=Ie(e[r],e[r+1],n);return s[r](i)};return n?t=>l(N(e[0],e[a-1],t)):l}function cr(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Ie(0,t,r);e.push(U(n,1,i))}}function lr(e){let t=[0];return cr(t,e.length-1),t}function ur(e,t){return e.map(e=>e*t)}function dr(e,t){return e.map(()=>t||nt).splice(0,e.length-1)}function fr({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`,mixer:i}){let a=typeof t[0]==`number`?void 0:i,o=it(r)?r.map(lt):lt(r)||nt,s={done:!1,value:t[0]};if(!a&&t.length===2&&!Array.isArray(o)&&(!n||n.length!==2||n[0]===0&&n[1]===1)){let[n,r]=t,i=n===r?void 0:(P.mix||Cn)(n,r);return{calculatedDuration:e,next:t=>(s.value=i?i(o(e>0?N(0,1,t/e):1)):r,s.done=t>=e,s)}}let c=sr(ur(n&&n.length===t.length?n:lr(t),e),t,{ease:Array.isArray(o)?o:dr(t,o),mixer:a});return{calculatedDuration:e,next:t=>(s.value=c(t),s.done=t>=e,s)}}var pr=5;function mr(e,t,n){let r=Math.max(t-pr,0);return Re(n-e(r),t-r)}function hr(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):mr(t=>e.next(t).value,t,e.next(t).value)}var gr=e=>e!==null;function _r(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(gr),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var vr={decay:ar,inertia:ar,tween:fr,keyframes:fr,spring:ir};function yr(e){typeof e.type==`string`&&(e.type=vr[e.type])}var br=40,xr=(e,t)=>t-e>br&&!P.useManualTiming?t:e;function Sr(e,t){return{kind:e,animation:t,timestamp:z.now(),frameTimestamp:R.timestamp,frameIsProcessing:R.isProcessing}}function Cr(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({...Sr(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}function wr(e,t){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...Sr(`layout-animation-start`,e),node:t})}catch{}}var Tr=class{constructor(){this.isResolved=!1}get finished(){return this._finished||=this.isResolved?Promise.resolve():new Promise(e=>{this._resolve=e}),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(e,t){return this.finished.then(e,t)}},Er=e=>e/100,Dr=e=>Math.round(e*1e4)/1e4,Or=class extends Tr{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!==z.now()&&this.tick(z.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),Cr(this,this.options)}initAnimation(){let{options:e}=this;yr(e);let{type:t=fr,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||fr;this.mixKeyframes=void 0,s!==fr&&typeof o[0]!=`number`&&(this.mixKeyframes=Fe(Er,e.mixer?.(o[0],o[1])||Cn(o[0],o[1])),o=[0,100]);let c=s(o===e.keyframes?e:{...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Mn(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){this.currentTime=this.holdTime??Math.round(e-this.startTime)*this.playbackSpeed}tick(e,t=!1){let{generator:n,totalDuration:r,calculatedDuration:i}=this;if(this.startTime===null)return n.next(0);let{delay:a=0,keyframes:o,type:s,onUpdate:c,finalKeyframe:l}=this.options;this.startTime===this.pendingStartTime&&(this.startTime=xr(this.startTime,e)),this.pendingStartTime=void 0,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 u=this.currentTime-a*(this.playbackSpeed>=0?1:-1),d=this.playbackSpeed>=0?u<0:u>r;this.currentTime=Math.max(u,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let f=this.generate(this.currentTime,d),{done:p}=f;d||(p=this.playbackSpeed>=0?i<1/0?this.currentTime>=r:p:this.currentTime<=0);let m=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&p);return m&&s!==ar&&(f.value=_r(o,this.options,l,this.speed)),c&&c(f.value),m&&this.finish(),f}at(e){return this.holdTime??Dr((e-this.startTime)*this.playbackSpeed)}sampleAt(e,t){let{options:n,totalDuration:r}=this,i=this.at(e)-(n.delay||0);return i>=r&&n.type!==ar?_r(n.keyframes,n,t?void 0:n.finalKeyframe):this.generate(Math.max(i,0),i<0).value}generate(e,t){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o}=this,{keyframes:s,repeat:c,repeatType:l,repeatDelay:u}=this.options,d=e,f=n;if(c){let t=Math.min(e,r)/o,n=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),i===1&&n--,n=Math.min(n,c+1),n%2&&(l===`reverse`?(i=1-i,u&&(i-=u/o)):l===`mirror`&&(f=a)),d=N(0,1,i)*o}let p;return t?(this.delayState.value=s[0],p=this.delayState):p=f.next(d),i&&!t&&(p.value=i(p.value)),p}get duration(){return L(this.calculatedDuration)}get iterationDuration(){return this.duration+L(this.options.delay??0)}get time(){return L(this.currentTime)}set time(e){e=I(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(){return hr(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(z.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=L(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=kn,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??(this.pendingStartTime=n):this.startTime=n-this.holdTime/(this.playbackSpeed||1),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(z.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.driver?.stop(),this.driver=void 0,this.startTime=this.holdTime=null}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 kr(e){return new Or(e)}var Ar=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function jr(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(St)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Ar.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Mr=/\b([a-z-]*)\(.*?\)/gu,Nr={...H,getAnimatableNone:e=>{let t=e.match(Mr);return t?t.map(jr).join(` `):e}},Pr={...H,getAnimatableNone:e=>{let t=H.parse(e);return H.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Fr={...yt,transform:Math.round},Ir={rotate:Pt,pathRotation:Pt,rotateX:Pt,rotateY:Pt,rotateZ:Pt,scale:xt,scaleX:xt,scaleY:xt,scaleZ:xt,skew:Pt,skewX:Pt,skewY:Pt,distance:B,translateX:B,translateY:B,translateZ:B,x:B,y:B,z:B,perspective:B,transformPerspective:B,opacity:bt,originX:Rt,originY:Rt,originZ:B},Lr={borderWidth:B,borderTopWidth:B,borderRightWidth:B,borderBottomWidth:B,borderLeftWidth:B,borderRadius:B,borderTopLeftRadius:B,borderTopRightRadius:B,borderBottomRightRadius:B,borderBottomLeftRadius:B,width:B,maxWidth:B,height:B,maxHeight:B,top:B,right:B,bottom:B,left:B,inset:B,insetBlock:B,insetBlockStart:B,insetBlockEnd:B,insetInline:B,insetInlineStart:B,insetInlineEnd:B,padding:B,paddingTop:B,paddingRight:B,paddingBottom:B,paddingLeft:B,paddingBlock:B,paddingBlockStart:B,paddingBlockEnd:B,paddingInline:B,paddingInlineStart:B,paddingInlineEnd:B,margin:B,marginTop:B,marginRight:B,marginBottom:B,marginLeft:B,marginBlock:B,marginBlockStart:B,marginBlockEnd:B,marginInline:B,marginInlineStart:B,marginInlineEnd:B,fontSize:B,backgroundPositionX:B,backgroundPositionY:B,...Ir,zIndex:Fr,fillOpacity:bt,strokeOpacity:bt,numOctaves:Fr},Rr={...Lr,color:V,backgroundColor:V,outlineColor:V,fill:V,stroke:V,borderColor:V,borderTopColor:V,borderRightColor:V,borderBottomColor:V,borderLeftColor:V,filter:Nr,WebkitFilter:Nr,mask:Pr,WebkitMask:Pr},zr=e=>Rr[e],Br=new Set([Nr,Pr]);function Vr(e,t){let n=zr(e);return Br.has(n)||(n=H),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function Hr(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Ur=e=>e*180/Math.PI,Wr=e=>Kr(Ur(Math.atan2(e[1],e[0]))),Gr={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scaleZ:()=>1,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Wr,rotateZ:Wr,skewX:e=>Ur(Math.atan(e[1])),skewY:e=>Ur(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Kr=e=>(e%=360,e<0&&(e+=360),e),qr=Wr,Jr=e=>Math.hypot(e[0],e[1]),Yr=e=>Math.hypot(e[4],e[5]),Xr={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Jr,scaleY:Yr,scaleZ:e=>Math.hypot(e[8],e[9],e[10]),scale:e=>(Jr(e)+Yr(e))/2,rotateX:e=>Kr(Ur(Math.atan2(e[6],e[5]))),rotateY:e=>Kr(Ur(Math.atan2(-e[2],e[0]))),rotateZ:qr,rotate:qr,skewX:e=>Ur(Math.atan(e[4])),skewY:e=>Ur(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Zr(e){return+!!e.includes(`scale`)}function Qr(e,t){if(!e||e===`none`)return Zr(t);let n=e.match(/^matrix(3d)?\(([-\d.e\s,]+)\)$/u);if(!n)return Zr(t);let r=(n[1]?Xr:Gr)[t],i=n[2].split(`,`).map(e=>parseFloat(e));return typeof r==`function`?r(i):i[r]}var $r=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Qr(n,t)},K=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`scaleZ`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],q=new Set([...K,`pathRotation`]),ei=e=>e===yt||e===B,ti=new Set([`x`,`y`,`z`]),ni=K.filter(e=>!ti.has(e));function ri(e){let t=[];return ni.forEach(n=>{let r=e.getValue(n);if(r!==void 0){let e=r.get(),i=+!!n.startsWith(`scale`);if(e===i)return;t.push([n,e]),r.set(i)}}),t}var ii=new Set([`bottom`,`right`]);function ai(e,t,n,r,i,a){let o=parseFloat(e);if(!isNaN(o))return o;let{min:s,max:c}=t()[n],l=c-s;return a===`border-box`?l:l-parseFloat(r)-parseFloat(i)}var oi=({transform:e})=>Qr(e,`x`),si=({transform:e})=>Qr(e,`y`),ci={width:({width:e,paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r},i)=>ai(e,i,`x`,t,n,r),height:({height:e,paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r},i)=>ai(e,i,`y`,t,n,r),top:({top:e})=>parseFloat(e),left:({left:e})=>parseFloat(e),bottom:({top:e},t)=>{let{y:n}=t();return parseFloat(e)+(n.max-n.min)},right:({left:e},t)=>{let{x:n}=t();return parseFloat(e)+(n.max-n.min)},x:oi,y:si,translateX:oi,translateY:si},li=new Set,ui=!1,di=!1,fi=!1;function pi(){if(di){let e=[],t=new Set,n=new Set;li.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),ii.has(r.name)&&n.add(r.element))});let r=new Map;n.forEach(e=>{let t=ri(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.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)})}di=!1,ui=!1,li.forEach(e=>e.complete(fi)),li.clear()}function mi(){li.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(di=!0)})}function hi(){fi=!0,mi(),pi(),fi=!1}function gi(e,t,n){if(typeof e==`string`){if(je(e)||Ne(e))return parseFloat(e);if(!H.test(e)&&H.test(n))return Vr(t,n)}return e??void 0}var _i=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?(li.add(this),ui||(ui=!0,W.read(mi),W.resolveKeyframes(pi))):(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=gi(n.readValue(t,a),t,a);r!==void 0&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}Hr(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),li.delete(this)}cancel(){this.state===`scheduled`&&(li.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},vi=e=>e.startsWith(`--`);function yi(e,t,n){vi(t)?e.style.setProperty(t,n):e.style[t]=n}var bi={};function xi(e,t){let n=Pe(e);return()=>bi[t]??n()}var Si=xi(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Ci=xi(()=>window.ViewTimeline!==void 0,`viewTimeline`),wi=xi(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Ti=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ei={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Ti([0,.65,.55,1]),circOut:Ti([.55,0,1,.45]),backIn:Ti([.31,.01,.66,-.59]),backOut:Ti([.33,1.53,.69,.99])};function Di(e,t){if(e)return typeof e==`function`?wi()?An(e,t):`ease-out`:ot(e)?Ti(e):Array.isArray(e)?e.map(e=>Di(e,t)||Ei.easeOut):Ei[e]}function Oi(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=Di(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 ki(e){return typeof e==`function`&&`applyToOptions`in e}function Ai({type:e,...t}){return ki(e)&&wi()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var ji=class extends Tr{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;let c=Ai(e);this.animation=Oi(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=this.onFinish=()=>{if(this.animation.onfinish=null,this.finishedTime=this.time,!i){let e=_r(r,this.options,o,this.speed);this.updateMotionValue?.(e),yi(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},Cr(this,e,c)}play(){this.isStopped||(this.manualStartTime=null,this.animation.onfinish=this.onFinish,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.isStopped||(this.animation.onfinish=this.onFinish),this.animation.finish?.()}cancel(){this.animation.onfinish=null;try{this.animation.cancel()}catch{}}stop(){this.isStopped||(this.isStopped=!0,this.state!==`idle`&&this.finishedTime===null&&(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 L(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+L(e)}get time(){return L(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=I(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,onAttach:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=this.onFinish=null,e&&Si()?(this.animation.timeline=e,t?.(this.animation),F):n(this)}},Mi={anticipate:Xe,backInOut:Ye,circInOut:$e};function Ni(e){return e in Mi}function Pi(e){typeof e.ease==`string`&&Ni(e.ease)&&(e.ease=Mi[e.ease])}var Fi=class extends ji{constructor(e){Pi(e),yr(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}elapsed(){return this.state===`running`?(z.now()-this.startTime)*this.speed:this.time*1e3}sample(e){if(!this.sampler){let{motionValue:e,onUpdate:t,onComplete:n,onPlay:r,onStop:i,element:a,...o}=this.options;this.sampler=new Or({...o,autoplay:!1}),this.sampler.stop()}return this.sampler.sample(Math.max(0,e)).value}liveValue(){let{state:e}=this;if(e===`running`||e===`paused`)return this.sample(this.elapsed())}updateMotionValue(e){let{motionValue:t,element:n,name:r}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let{speed:i}=this,a=this.elapsed(),o=this.state===`running`&&i?N(0,10,a):0,s=this.sample(a);n&&r&&yi(n,r,s),t.setWithVelocity(this.sample(a-o*Math.sign(i)),s,o/Math.abs(i||1))}},Ii=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(H.test(e)||e===`0`)&&!e.startsWith(`url(`));function Li(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 Ri(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=Ii(i,t),s=Ii(a,t);return!o||!s?!1:Li(e)||(n===`spring`||ki(n))&&r}function zi(e){e.duration=0,e.type=`keyframes`}var Bi=new Set([`opacity`,`clipPath`,`filter`,`transform`]),Vi=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Hi(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Vi.test(e[t]))return!0;return!1}var Ui=({mixer:e,keyframes:t})=>e&&typeof t[0]!=`number`&&t.some((n,r)=>r&&e(t[r-1],n)),Wi=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Gi=()=>!P.useManualTiming&&Object.hasOwnProperty.call(Element.prototype,`animate`);function Ki(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!n||!(Bi.has(n)||Wi.has(n)))return!1;let c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return Gi()&&(Bi.has(n)||Wi.has(n)&&Hi(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`&&!Ui(e)}var qi=(e,t)=>t&&typeof e==`number`?t.transform(e):e,Ji={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Yi=K.length,Xi={},Zi=(e,t,n=qi(t,Ir[e]))=>(Xi[e]||(Xi[e]=(Ji[e]||e)+`(`))+n+`)`,Qi=(e,t)=>(typeof t==`number`?t:parseFloat(t))===+!!e.startsWith(`scale`);function $i(e,t,n){let r=``;for(let i=0;i<Yi;i++){let a=K[i],o=e[a];if(o===void 0)continue;let s=n&&(t[a]=qi(o,Lr[a]));Qi(a,o)||(r+=Zi(a,o,s||void 0)+` `)}let i=e.pathRotation;return i&&(r+=Zi(`rotate`,i)),r=r.trim(),n?n(t,r):r||`none`}var ea=new WeakMap,ta=200,na=.001,ra=.1,ia=.001,aa=100,oa=e=>/^(linear|ease(In|Out|InOut))$/.test(e),sa=(e,t)=>Math.abs(e-t)<=na,ca=(e,t)=>e-t,la=(e,t,n)=>lr(Array(n+1)).map(n=>U(e,t,n)),ua=e=>e.motionValue.owner,da=e=>ea.get(e),fa=({state:e})=>e===`idle`||e===`finished`,pa=(e,t)=>e.latestValues?e.latestValues[t]:e.getValue(t)?.get(),ma=({name:e,motionValue:t})=>e&&K.includes(e)&&t?.owner?.current instanceof HTMLElement&&Gi()&&wi();function ha(e){let t=ua(e),{onUpdate:n,transformTemplate:r}=t.getProps();return!e.isHandoff&&!n&&!e.hasOnUpdate&&!r&&e.type!==`inertia`&&(pa(t,`transform`)||`none`)===`none`&&!pa(t,`pathRotation`)&&!t.projection?.isProjecting()&&!Ui(e)}var ga=class extends Or{constructor(e){let t=ua(e).current,{driver:n=kn}=e,r,i=ha(e);e.driver=e=>{let i=n(e);return{js:i,now:i.now,start:(e=!0)=>{let n=da(t);!n||n.isJS?i.start(e):n.schedule(!1,!e)},stop:()=>{i.stop();let e=da(t);e&&!e.isFinishing&&e.release(r)}}},super(e),r=this,this.canAccelerate=i;let{stop:a}=this;this.stop=()=>{this.isAccelerated()&&this.sync(),a()}}get group(){return da(ua(this.options).current)}get js(){return this.driver?.js}get name(){return this.options.name}timing(){let{startTime:e,speed:t,totalDuration:n}=this,{delay:r=0,repeatType:i}=this.options;return this.holdTime===null?n===1/0?[e+r/t,this.resolvedDuration*(i===`loop`?1:2)/t||1]:[e+(r+n)/t,0]:[1/0,0]}isAccelerated(){let{group:e,state:t}=this;return e?.tracks.has(this)&&!e.isJS&&this.canAccelerate&&(t===`running`||t===`paused`)}liveValue(){return this.isAccelerated()?this.sampleAt(z.now()):void 0}tween(){let{keyframes:e,type:t,ease:n,times:r,repeat:i,delay:a=0}=this.options,o=ot(n)?Ti(n):oa(n)&&Ei[n];if(o&&!i&&!r&&e.length===2&&t===fr&&this.holdTime===null){let e=this.startTime+a/this.speed;return[e,e+this.resolvedDuration/this.speed,o]}}boundaries(e,t){let{startTime:n,speed:r,resolvedDuration:i,options:a}=this,{delay:o=0,repeat:s=0,repeatDelay:c=0,repeatType:l,times:u,keyframes:d,type:f}=a,p=(f||fr)===fr?u||lr(d):[0,1],m=n+o/r,h=[];if(this.holdTime!==null||!(i>0))return h;for(let n=Math.max(0,Math.floor((e-m)*r/i));n<=s;n++){let a=m+n*i/r;if(a>t)break;for(let o of p){let s=a+(n%2&&l&&l!==`loop`?1-o:o)*(i-c)/r;s>e&&s<t&&h.push(s)}}return h}numberAt(e){return parseFloat(this.sampleAt(e,!0))}sync(){let e=z.now();this.options.motionValue.setWithVelocity(this.sampleAt(e-10,!0),this.sampleAt(e,!0),10)}play(){this.isStopped||((this.group||_a(ua(this.options))).tracks.add(this),super.play())}pause(){super.pause(),this.isAccelerated()&&(this.sync(),this.group.schedule(!1))}complete(){super.complete();let{group:e}=this;e&&!e.isJS&&this.tick(z.now())}get time(){return this.isAccelerated()?L(N(0,this.totalDuration,this.at(z.now())-(this.options.delay||0))):super.time}set time(e){super.time=e,this.isAccelerated()&&this.sync()}attachTimeline(e){return this.canAccelerate=!1,this.group?.demote(!0),super.attachTimeline(e)}};function _a(e){let t=e.current,n=new Set,r=new Map,i={},a=[],o=new Map,s=[],c=!1,l=!1,u=!1,d=!1,f=-1/0,p=e=>{for(let t of n)if(t.name===e)return!0},m=(t,n)=>{let o={};for(let s of t===void 0?K:a){let a=r.get(s),c=t===void 0?pa(e,s):a?a.sampleAt(n>t&&!a.timing()[1]?n:t):i[s];c!==void 0&&(o[s]=c)}return o},h=(e,t)=>{let n=``;for(let r in e){let i=e[r];t&&Qi(r,i)||(n+=Zi(r,i)+` `)}return(t?n.trim():n)||`none`},g=(e,t)=>h(m(e,t)),_=(e=m())=>{t.style.transform=h(e,!0)},v=e=>{e.onfinish=e.oncancel=null,e.cancel()},y=(e=!0)=>{e&&_(),s.forEach(({animation:e})=>v(e)),s=[]},b=(e,n)=>new Animation(new KeyframeEffect(t,e,n)),x=(e,t,n=1/0)=>{let r={animation:e,offset:t,end:n};e.startTime=z.now()+t,n<1/0&&(e.onfinish=()=>{r.isDone=!0,s.some(e=>e.end===1/0)&&(v(e),s=s.filter(e=>e!==r)),D.schedule(!1)}),e.oncancel=()=>s.includes(r)&&D.demote(),s.push(r)},S=(e,t,n)=>{let r=(t,n)=>Math.abs(e(n)-e(t)),i=r(t,n);for(;n-t>.01;){let e=(t+n)/2;r(t,e)>r(e,n)?n=e:t=e}return r(t,n)>i/2?[t,n]:[]},C=(e,t,n,r)=>{let i=Math.min(ta,Math.max(2,Math.ceil((n-t)/10)));if(r.length*4>i)return;let a=la(t,n,i).concat(r).sort(ca),o=e=>Ie(t,n,e),s,c;for(let n of e){let e=n.numberAt(t),r=a.map(t=>n.numberAt(t)-e),i=r[r.length-1],o=r.some(e=>Math.abs(e)*na>Math.abs(i))?0:i,l=r.map(e=>o?e/o:e);if(o&&!s)s=l,c=t=>(n.numberAt(t)-e)/o;else if(l.some((e,t)=>!sa(e,o&&s[t])))return}if(!s||s.every((e,t)=>sa(e,o(a[t]))))return`linear`;let l=[],u=(e,t=c(e))=>l.push(Dr(t)+` `+Dr(o(e)*100)+`%`);return s.forEach((e,t)=>{t&&Math.abs(e-s[t-1])>.2&&S(c,a[t-1],a[t]).forEach(e=>u(e)),u(a[t],e)}),`linear(`+l+`)`},w=(e,t,n,r)=>{let i=[t],a=(t,n)=>e.every(e=>!(Math.abs(e.numberAt((t+n)/2)-(e.numberAt(t)+e.numberAt(n))/2)>(e.name.startsWith(`scale`)?ia:ra))),o=(t,n,r)=>{if(n-t<1||a(t,n))i.push(n);else if(r<4)o(t,(t+n)/2,r+1),o((t+n)/2,n,r+1);else{for(let r of e)i.push(...S(e=>r.numberAt(e),t,n));i.push(n)}},s=la(t,n,Math.ceil((n-t)/100));for(let e of r)s.push(e,Math.min(e+.01,n));let c=t;for(let e of s.sort(ca))e>c&&o(c,e,0),c=e;return i.sort(ca)},T=e=>{let t;for(let n of e){let e=n.tween();if(!e||t?.some((t,n)=>n<2?Math.abs(e[n]-t)>1:e[n]!==t))return;t=e}return t},E=(e,t,n,r,i={fill:`both`},a)=>{let o=e.flatMap(e=>e.boundaries(t,n)),s=r||C(e,t,n,o),c=s?[t,n]:w(e,t,n,o),l=c.map(e=>g(e,a)),u={transform:l};return s||(u.offset=c.map(e=>Ie(t,n,e))),l.every(e=>e===l[0])&&(_(m(t,a)),u=null),b(u,{...i,duration:n-t,easing:s||`linear`})},ee=t=>{let c=t,l=0,u=0,d=[],f=[],p=new Set;r.clear(),o=new Map;for(let e of n){r.set(e.name,e);let[n,i]=e.timing(),a=n===1/0;if(o.set(e,[e.at(t),e.speed,a]),a)e.sync();else{if(e.speed<0)return;if(i){if(l){let e=(n-u)/i;if(Math.abs(i-l)>1||Math.abs(e-Math.round(e))*l>1)return}else l=i,u=n;f.push(e)}else p.add(n);d.push(e),c=Math.max(c,n)}}i={},a=K.filter(t=>{if(r.has(t))return!0;let n=i[t]=pa(e,t);return n!==void 0&&!Qi(t,n)}),y(!1);let m=!l&&T(d);try{if(m&&m[1]>t){let[e,n,r]=m;x(E(d,e,n,r),e-t,n-e)}else c>t&&(x(E(d,t,c),0,c-t),p.forEach(e=>e<c-1&&x(b(null,{duration:e-t}),0,e-t)));if(l){let e=u+Math.floor((c-u)/l)*l;x(E(f,e,e+l,void 0,{iterations:1/0,iterationStart:(c-e)/l,fill:`forwards`},c),c-t)}}catch{return}return s.length||y(),!0},te=e=>{let t,r=0;for(let i of n){let n=o.get(i);if(!n)return!1;let[a,s,c]=n,l=i.at(e),u=i.timing()[0]===1/0;if(c){if(u&&l===a)continue;return!1}let d=(l-a)/s,f=u?0:i.speed/s;if(t===void 0)t=d,r=f;else if(Math.abs(d-t)>1||f!==r)return!1}if(t===void 0)return!0;if(!s.length)return!1;for(let{offset:e,end:n,isDone:r}of s){let i=t-e;if(n<1/0&&(r?i<n-1:i<0||i>=n))return!1}for(let{animation:n,offset:i,isDone:a}of s){if(a)continue;let o=t-i;r&&n.updatePlaybackRate&&n.playState===`running`&&Math.abs(Number(n.currentTime)-o)<20?n.playbackRate!==r&&n.updatePlaybackRate(r):r?(n.playbackRate=r,n.startTime=e-o/r):(n.startTime=null,n.currentTime=o)}return!0},ne=()=>!n.size&&(u=!0,da(t)===D&&ea.delete(t),D.isJS||y(),!0),re=()=>{let t=z.now();if(D.isJS||(D.isFinishing=!0,n.forEach(n=>{let[r,a]=n.timing();n.state===`running`&&n.speed>0&&!a&&r<=t+1&&(n.complete(),i[n.name]=pa(e,n.name),o.has(n)||(c=!0))}),D.isFinishing=!1),l=!1,u||(n.forEach(e=>fa(e)&&n.delete(e)),ne()))return;for(let e of n)if(!e.canAccelerate)return D.demote(!0);D.isJS&&(D.isJS=!1,c=!0,n.forEach(e=>e.js?.stop()));let r=c,a=d;if(c=d=!1,r||!te(t)){if(a){if(t-f<aa)return D.demote();f=t}if(!ee(t))return D.demote()}},D={tracks:n,isJS:!1,isFinishing:!1,schedule(e,t){u||(c||=e,d||=!!t,l||(l=!0,R.isProcessing?W.render(re,!1,!0):queueMicrotask(re)))},release(e){fa(e)&&n.delete(e),ne()||D.schedule(!0)},check(){if(!D.isJS){for(let t in i)if(pa(e,t)!==i[t]&&!p(t))return D.schedule(!0,!0)}},demote(e){if(!(D.isJS||u))return n.forEach(t=>{t.isAccelerated()&&t.sync(),e||(t.canAccelerate=!1)}),D.isJS=!0,o=new Map,y(),n.forEach(e=>e.state===`running`&&e.js?.start()),!0}};return ea.set(t,D),D}var va=class extends Tr{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=z.now();let{keyframes:t,name:n,motionValue:r,element:i}=e,a=e;a.autoplay??=!0,a.delay??=0,a.type??=`keyframes`,a.repeat??=0,a.repeatDelay??=0,a.repeatType??=`loop`;let o=i?.KeyframeResolver||_i;this.keyframeResolver=new o(t,(e,t,n)=>this.onKeyframesResolved(e,t,a,!n),n,r,i),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=z.now();let u=Ri(e,i,a,o);u||((P.instantAnimations||!s)&&l?.(_r(e,n,t)),e[0]=e[e.length-1],zi(n),n.repeat=0);let{onComplete:d}=n;n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{d?.(),this.notifyFinished()};let f=u&&!c&&Ki(n),p=!f&&ma(n);r&&(f||p||this.resolvedAt!==this.createdAt)&&(n.startTime??=xr(this.createdAt,this.resolvedAt));let m;if(f){n.element=n.motionValue?.owner?.current;try{m=new Fi(n)}catch{m=new Or(n)}}else m=p?new ga(n):new Or(n);this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this._animation.finished:super.finished}then(e,t){return this.finished.finally(e).then(()=>{})}liveValue(){return this._animation?.liveValue?.()}get animation(){return this._animation||(this.keyframeResolver?.resume(),hi()),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?.cancel(),this.keyframeResolver?.cancel()}},ya=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 ba(this.animations,`duration`)}get iterationDuration(){return ba(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 ba(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 xa=class extends ya{then(e,t){return this.finished.finally(e).then(()=>{})}},Sa=class extends ji{constructor(e){super(),this.animation=e,e.onfinish=this.onFinish=()=>{e.onfinish=null,this.finishedTime=this.time,this.notifyFinished()},Cr(this,{})}},Ca=new WeakMap,wa=(e,t=``)=>`${e}:${t}`;function Ta(e){let t=Ca.get(e);return t||(t=new Map,Ca.set(e,t)),t}function Ea(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 Da=30,Oa=e=>!isNaN(parseFloat(e)),ka={current:void 0},Aa=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=z.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.dirty(),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=z.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Oa(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){var n;return e===`change`?this.onChangeSubscribe(t):((n=this.events)[e]||(n[e]=new Le)).add(t)}onChangeSubscribe(e){let{events:t}=this;return!t.change&&!this.changeSubscriber?this.changeSubscriber=e:(t.change||(t.change=new Le,t.change.add(this.changeSubscriber),this.changeSubscriber=void 0),t.change.add(e)),()=>{this.changeSubscriber===e?this.changeSubscriber=void 0:t.change?.remove(e),this.stopIfUnobserved()}}stopIfUnobserved(){W.read(()=>{!this.changeSubscriber&&!this.events.change?.getSize()&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;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){t&&(this.updatedAt=z.now(),this.stop()),this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stopPassiveEffect?.()}dirty(){let{current:e,changeSubscriber:t}=this;t?t(e):this.events.change?.notify(e)}addDependent(e){(this.dependents||=new Set).add(e)}removeDependent(e){this.dependents?.delete(e)}get(){ka.current?.push(this);let e=this.animation?.liveValue?.();return e===void 0?this.current:e}getCurrent(){return this.current}getPrevious(){return this.prev}getVelocity(){let e=z.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Da)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Da);return Re(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0;let n=!1,r;r=e(()=>{n=!0,this.events.animationComplete?.notify(),this.animation===r&&(this.animation=void 0),t()}),n||(this.animation=r),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel?.notify()),this.animation=void 0}isAnimating(){return!!this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect?.()}};function J(e,t){return new Aa(e,t)}function ja(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Ma(e,t){let n=e?.[t]??e?.default??e;return n===e?n:ja(n,e)}var Na={type:`spring`,stiffness:500,damping:25,restSpeed:10},Pa=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Fa={type:`keyframes`,duration:.8},Ia={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},La=(e,{keyframes:t})=>t.length>2?Fa:q.has(e)?e.startsWith(`scale`)?Pa(t[1]):Na:Ia,Ra=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`,`out`,`mixer`]);function za(e){for(let t in e)if(!Ra.has(t))return!0;return!1}var Ba=(e,t,n,r={},i,a)=>o=>{let s=Ma(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=I(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,hasOnUpdate:!!s.onUpdate};za(s)||Object.assign(u,La(e,u)),u.duration&&=I(u.duration),u.repeatDelay&&=I(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(zi(u),u.delay===0&&(d=!0)),(P.instantAnimations||P.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,zi(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=_r(u.keyframes,s);if(e!==void 0){W.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Or(u):new va(u)},Va=20;function Ha(e,t,n,r){let i=1-e;return i*i*t+2*i*e*n+e*e*r}function Ua(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 Wa(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 Ga({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=Wa(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=Wa(r.x,r.y,o.x,o.y,l,t)):d!==0&&(a=d)}let d=i?Ua(0,r.x,u.x,o.x,r.y,u.y,o.y):0,f=i?Ua(1,r.x,u.x,o.x,r.y,u.y,o.y):0,p=i?He(-180,180,f-d):0;return e=>{let t={x:Ha(e,r.x,u.x,o.x),y:Ha(e,r.y,u.y,o.y)};return i&&(t.rotate=He(-180,180,Ua(e,r.x,u.x,o.x,r.y,u.y,o.y)-(d+p*e))*i),t}}}function Ka(e={}){let t=Ga(e);return{interpolateProjection(e){let n=e.x.translate,r=e.y.translate;if(!(Math.sqrt(n*n+r*r)<Va))return t({x:n,y:r},{x:0,y:0})},animateValues(e,n,r,i,a){if(!(`x`in n||`y`in n))return;let o=e(`x`),s=e(`y`),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(`pathRotation`),g={delay:i,...Ma(r||{},`x`)};delete g.path;let _=J(0);_.start(Ba(``,_,[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 qa=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ja(e){let t=qa.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Ya(e,t,n=1){let[r,i]=Ja(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return je(e)?parseFloat(e):e}return gt(i)?Ya(i,t,n+1):i}function Xa(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Za(e,t,n,r){let i=t=>typeof t==`function`?t(n===void 0?e.custom:n,...Xa(r)):t;return t=i(t),typeof t==`string`&&(t=e.variants&&e.variants[t]),i(t)}function Qa(e,t,n){return Za(e.getProps(),t,n,e)}var $a=(e,t)=>t===`exit`?e.presenceContext?.custom:void 0,eo=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...K]),to=e=>Array.isArray(e);function no(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,J(n))}function ro(e){return to(e)?e[e.length-1]||0:e}function io(e,t){let{transitionEnd:n={},transition:r={},...i}=Qa(e,t)||{};i={...i,...n};for(let t in i)no(e,t,ro(i[t]))}var Y=e=>!!(e&&e.getVelocity);function ao(e){return!!(Y(e)&&e.add)}function oo(e,t){let n=e.getValue(`willChange`);if(ao(n))return n.add(t);if(!n&&P.WillChange){let n=new P.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}var so=`framerAppearId`,co=`data-framer-appear-id`;function lo(e){return e.props[co]}var uo=typeof window<`u`;function fo({protectedKeys:e,needsAnimating:t},n){let r=n in e&&!t[n];return t[n]=!1,r}function po(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?ja(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState?.getState()[i],p=a?.path;p&&(p.animateValues?p.animateValues(t=>e.getValue(t,e.latestValues[t]??0),s,a,n,d):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&&fo(f,t))continue;let o={delay:n,...Ma(f?.out[t]||a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){W.update(()=>r.set(i));continue}let p=!1;if(uo&&window.MotionHandoffAnimation){let n=lo(e);if(n){let e=window.MotionHandoffAnimation(n,t,W);e!==null&&(o.startTime=e,p=!0)}}oo(e,t);let m=l??e.shouldReduceMotion;r.start(Ba(t,r,i,m&&eo.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>W.update(()=>{o&&io(e,o)});d.length?Promise.all(d).then(t):t()}return d}function mo(e,t,n={}){let r=Qa(e,t,$a(e,n.type)),i=n.transitionOverride||(r?.transition??(e.getDefaultTransition()||{})),a=()=>Promise.all(r?po(e,r,n):[]),o=(r=0)=>{let{variantChildren:a}=e,{delayChildren:o=0,staggerChildren:s,staggerDirection:c}=i,l=[];return a?.forEach(e=>{e.notify(`AnimationStart`,t),l.push(mo(e,t,{...n,delay:r+(typeof o==`function`?0:o)+Ea(a,e,o,s,c)}).then(()=>e.notify(`AnimationComplete`,t)))}),Promise.all(l)},{when:s}=i;return s?s===`beforeChildren`?a().then(()=>o()):o().then(a):Promise.all([a(),o(n.delay)])}function ho(e,t,n={}){return e.notify(`AnimationStart`,t),(Array.isArray(t)?Promise.all(t.map(t=>mo(e,t,n))):typeof t==`string`?mo(e,t,n):Promise.all(po(e,Qa(e,t,n.custom),n))).then(()=>{e.notify(`AnimationComplete`,t)})}var go={test:e=>e===`auto`,parse:e=>e},_o=e=>t=>t.test(e),vo=[yt,B,Ft,Pt,Lt,It,go],yo=e=>vo.find(_o(e));function bo(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||Ne(e)}var xo=new Set([`auto`,`none`,`0`]);function So(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!xo.has(t)&&Xt(t)&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]!==i&&(e[r]=Vr(n,i))}var Co=class extends _i{constructor(){super(...arguments),this.isAsync=!0}scheduleResolve(){if(this.canReadNow()&&(this.readKeyframes(),!this.needsMeasurement))return this.complete();super.scheduleResolve()}canReadNow(){let{unresolvedKeyframes:e,element:t,motionValue:n}=this,r=e[0]??n?.get();if(!t?.current||r===void 0)return!1;for(let t=0;t<e.length;t++)if(vt(t?e[t]:r))return!1;return!0}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t?.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),gt(r))){let i=Ya(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!eo.has(n)||e.length!==2)return;let[r,i]=e;if(typeof r==`number`&&typeof i==`number`)return;let a=yo(r),o=yo(i);if(vt(r)!==vt(i)&&ci[n])this.needsMeasurement=!0;else if(a!==o){if(ei(a)&&ei(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else ci[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||bo(e[t]))&&n.push(t);n.length&&So(e,n,t)}measure(){let{element:e,name:t}=this;return ci[t](window.getComputedStyle(e.current),()=>e.measureViewportBox())}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e?.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&this.motionValue?.jump(r,!1)}measureEndState(){let{element:e,unresolvedKeyframes:t}=this;if(!e?.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let n=t.length-1,r=t[n];t[n]=this.measure(),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.resolveNoneKeyframes()}},wo=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`],To=new Set([`borderWidth`,`borderTopWidth`,`borderRightWidth`,`borderBottomWidth`,`borderLeftWidth`,`borderRadius`,...wo,`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 Eo(e,t){for(let n=0;n<e.length;n++)typeof e[n]==`number`&&To.has(t)&&(e[n]=e[n]+`px`)}function Do(e){return!!(typeof e==`function`&&wi()||!e||typeof e==`string`&&(e in Ei||wi())||ot(e)||Array.isArray(e)&&e.every(Do))}var Oo=Pe(()=>{try{document.createElement(`div`).animate({opacity:[1]})}catch{return!1}return!0}),ko=[];function Ao(e){jo(e),ko.unshift(e)}function jo(e){Ee(ko,e)}function Mo(e){return ko.find(t=>t.test(e))}function No(e,t,n={},r){let i=[],{velocity:a,path:o}=n,s=n.reduceMotion??r?.shouldReduceMotion;o?.animateValues&&r&&(t={...t},o.animateValues(e,t,n,0,i));for(let o in t){if(o===`transition`||o===`transitionEnd`)continue;let c=t[o];if(c===void 0)continue;let l=e(o),u=l.get();u!==void 0&&!l.isAnimating()&&!Array.isArray(c)&&c===u&&!a?W.update(()=>l.set(c)):(l.start(Ba(o,l,c,s&&eo.has(o)?{type:!1}:n,r)),l.animation&&i.push(l.animation))}let{transitionEnd:c}=t;if(c){let t=()=>W.update(()=>{for(let t in c)e(t).set(c[t])});i.length?Promise.all(i).then(t):t()}return i}function Po(e,t,n,r,i){return No(r=>{let a=e.get(t,r);if(!a){let o;if(!i){let i=n[r];o=Fo(i)??e.read(t,r,i)}a=J(o,{owner:i}),e(t,{[r]:a})}return a},n,r,i)}function Fo(e){let t=Array.isArray(e)?e[0]:void 0;return t===null?void 0:t}function Io(e){return Me(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}function Lo(e){return Me(e)&&`ownerSVGElement`in e}var X={};function Ro(e){return X.current?.add(e),e}function zo(e){let t=X.current;if(!t)return;let n=!1,r,i=t.add(()=>{n=!0,r?.()});e.then(e=>{e&&(r=()=>e.stop(),n?r():e.finished.then(i))},i)}var Bo=e=>X.current?X.current.bind(e):e;function Z(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=t?t.current:X.current?.root||document,i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}function Vo(e){let t=(t,n)=>{let r=Z(t),i=[];for(let t of r){let r=e(t,n);i.push(r)}return()=>{for(let e of i)e()}},{test:n,read:r,get:i,flush:a,state:o}=e;return Object.assign(t,{test:n,read:r,get:i,flush:a,state:o})}var Ho=class{constructor(e=W.render){this.step=e,this.values=new Map,this.pending=[],this.numPending=0,this.flush=()=>{let{pending:e,numPending:t}=this;this.numPending=0;for(let n=0;n<t;n++)e[n]()}}set(e,t,n,r){if(this.values.get(e)?.onRemove(),r)for(let e of this.values.values())e.value===r&&(n=e.render);let i=()=>n&&this.schedule(n);t.get()!==void 0&&i();let a=t.on(`change`,i),o=()=>{a(),n&&!r&&this.cancel(n),this.values.get(e)?.onRemove===o&&this.values.delete(e)};return this.values.set(e,{value:t,render:r?void 0:n,onRemove:o}),o}get(e){return this.values.get(e)?.value}release(){let e=new Map;return this.values.forEach((t,n)=>{e.set(n,t.value),t.onRemove()}),this.transformKeys=this.transformValues=void 0,e}schedule(e){let{pending:t,numPending:n}=this;for(let r=0;r<n;r++)if(t[r]===e)return;n||this.step(this.flush),t[this.numPending++]=e}cancel(e){let{pending:t}=this;for(let n=0;n<this.numPending;n++)if(t[n]===e){t[n]=t[--this.numPending];return}}};function Uo(e,{step:t,...n}={}){let r=new WeakMap;return Object.assign((n,i)=>{let a=r.get(n)??new Ho(t);r.set(n,a);let o=[];for(let t in i){let r=i[t],s=e(n,a,t,r);o.push(s)}return()=>{for(let e of o)e()}},n,{get:(e,t)=>r.get(e)?.get(t),flush:e=>r.get(e)?.flush(),state:e=>r.get(e)})}function Wo(e){let t=``,{transformKeys:n=[],transformValues:r={}}=e;for(let e=0;e<n.length;e++){let i=n[e],a=r[i].getCurrent();a!==void 0&&(Qi(i,a)||(t+=(t&&` `)+Zi(i,a)))}let i=e.get(`pathRotation`)?.get();return i&&(t+=(t&&` `)+Zi(`rotate`,i)),t||`none`}var Go=new Set([`originX`,`originY`,`originZ`]),Ko=(e,t)=>qi(e.get(t)?.get(),Lr[t]),qo=(e,t,n,r)=>{let i,a;if(q.has(n)){if(n!==`pathRotation`){let e=t.transformKeys??=[];(t.transformValues??={})[n]=r,e.includes(n)||(e.push(n),e.sort((e,t)=>K.indexOf(e)-K.indexOf(t)))}t.get(`transform`)||(!Io(e)&&!t.get(`transformBox`)&&qo(e,t,`transformBox`,new Aa(`fill-box`)),t.set(`transform`,new Aa(`none`),()=>{ea.get(e)?.check(),e.style.transform=Wo(t)})),a=t.get(`transform`)}else Go.has(n)?(t.get(`transformOrigin`)||t.set(`transformOrigin`,new Aa(``),()=>{let n=Ko(t,`originX`)??`50%`,r=Ko(t,`originY`)??`50%`,i=Ko(t,`originZ`)??0;e.style.transformOrigin=`${n} ${r} ${i}`}),a=t.get(`transformOrigin`)):i=vi(n)?()=>{e.style.setProperty(n,r.getCurrent())}:()=>{e.style[n]=qi(r.getCurrent(),Lr[n])};return t.set(n,r,i,a)},Jo=e=>Io(e)||Lo(e),Yo=(e,t)=>{if(q.has(t))return $r(e,t);let n=getComputedStyle(e),r=vi(t)?n.getPropertyValue(t):n[t];return typeof r==`string`&&r.trim()||0},Xo=Uo(qo,{test:Jo,read:Yo}),Zo=Vo(Xo);function Qo(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}function $o(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(q.has(e))o=!0;else if(mt(e))i[e]=n;else{let t=qi(n,Lr[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=$i(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}var es={offset:`stroke-dashoffset`,array:`stroke-dasharray`},ts={offset:`strokeDashoffset`,array:`strokeDasharray`};function ns(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?es:ts;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var rs=[`transform`,`opacity`,`clipPath`,`filter`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function is(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if($o(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;for(let e of rs)d[e]!==void 0&&(f[e]=d[e],delete d[e]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&ns(d,i,a,o,!1)}function as(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 os=(e,t,n,r,i=n)=>{let a=as(e,i);!a&&(i.startsWith(`data`)||i.startsWith(`aria`))&&(i=Qo(i));let o=Lr[n]||Lr[i],s=a?()=>{e[i]=qi(r.get(),Lr[n])}:()=>{let t=qi(r.get(),o);t==null?e.removeAttribute(i):e.setAttribute(i,String(t))};return t.set(n,r,s)},ss=Vo(Uo(os));function cs(e,t,n,r){return W.render(()=>e.setAttribute(`pathLength`,`1`)),n===`pathOffset`?t.set(n,r,()=>{let t=r.get();e.setAttribute(`stroke-dashoffset`,`${-t}`)}):(t.get(`stroke-dasharray`)||t.set(`stroke-dasharray`,new Aa(`1 1`),()=>{let n=t.get(`pathLength`)?.get()??1,r=t.get(`pathSpacing`)?.get();e.setAttribute(`stroke-dasharray`,`${n} ${r??1-Number(n)}`)}),t.set(n,r,void 0,t.get(`stroke-dasharray`)))}var ls=(e,t,n,r)=>n.startsWith(`path`)&&!q.has(n)?cs(e,t,n,r):n.startsWith(`attr`)?os(e,t,n,r,ps(n)):n===`d`?t.set(n,r,()=>{let t=r.get()?.replace(/path\(|["')]/g,``);t===void 0?e.removeAttribute(n):e.setAttribute(n,t)}):(q.has(n)||Go.has(n)||vi(n)||n in e.style?qo:os)(e,t,n,r),us=(e,t)=>q.has(t)?Lr[t]?.default||0:vi(t)||rs.includes(t)?Yo(e,t)||e.getAttribute(Qo(t))||0:(t=ps(t),e.getAttribute(Qo(t))??e.getAttribute(t)??void 0),ds=Uo(ls,{test:Lo,read:us}),fs=Vo(ds);function ps(e){return e.replace(/^attr([A-Z])/,(e,t)=>t.toLowerCase())}function ms({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function hs({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function gs(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 _s(e){return e===void 0||e===1}function vs({scale:e,scaleX:t,scaleY:n}){return!_s(e)||!_s(t)||!_s(n)}var ys=[`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skewX`,`skewY`];function bs(e){return vs(e)||Ss(e)||xs(e)}function xs(e){return e.z||e.rotate||e.rotateX||e.rotateY||e.rotateZ||e.skewX||e.skewY}function Ss(e){return Cs(e.x)||Cs(e.y)}function Cs(e){return e&&e!==`0%`}function ws(e,t,n){return n+t*(e-n)}function Ts(e,t,n,r,i){return i!==void 0&&(e=ws(e,i,r)),ws(e,n,r)+t}function Es(e,t=0,n=1,r,i){e.min=Ts(e.min,t,n,r,i),e.max=Ts(e.max,t,n,r,i)}function Ds(e,{x:t,y:n}){Es(e.x,t.translate,t.scale,t.originPoint),Es(e.y,n.translate,n.scale,n.originPoint)}var Os=.999999999999,ks=1.0000000000001;function As(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,a.options.visualElement?.props.style?.display!==`contents`&&(r===!0&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(js(e.x,-a.scroll.offset.x),js(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Ds(e,o)),r&&(r.path?.[s]||r)!==a&&bs(a.latestValues)&&Ps(e,a.latestValues,a.layout?.layoutBox));t.x<ks&&t.x>Os&&(t.x=1),t.y<ks&&t.y>Os&&(t.y=1)}function js(e,t){e.min+=t,e.max+=t}function Ms(e,t,n,r,i=.5){Es(e,t,n,U(e.min,e.max,i),r)}function Ns(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function Ps(e,t,n){let r=n??e;Ms(e.x,Ns(t.x,r.x),t.scaleX,t.scale,t.originX),Ms(e.y,Ns(t.y,r.y),t.scaleY,t.scale,t.originY)}function Fs(e,t){return ms(gs(e.getBoundingClientRect(),t))}function Is(e,t,n){let r=Fs(e,n),{scroll:i}=t;return i&&(js(r.x,i.offset.x),js(r.y,i.offset.y)),r}var Ls=()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),Rs={},zs=e=>Lo(e)?ds:Xo,Bs=class{constructor(e,t){this.effect=e,this.current=t,this.KeyframeResolver=Co}getValue(e){return this.effect.get(this.current,e)}readValue(e,t){return this.effect.read(this.current,e,t)}render(){this.effect.flush(this.current)}measureViewportBox(){return Fs(this.current)}getProps(){return Rs}};function Vs(e,t,n,r){if(X.current?.track(e),r)return No(e=>r.getValue(e,null),t,n,r);let i=zs(e);return Po(i,e,t,n,new Bs(i,e))}var Hs=e=>zs(e).state(e)?.release();function Us(e,t){let n=zs(e).state(e);if(!n)return;let r=ea.get(e);r&&(r.demote(),ea.delete(e));let{transformKeys:i}=n;n.release().forEach((e,n)=>{n===`transformBox`||n===`transform`&&i?.length||(e.owner=t,t.addValue(n,e))})}var Ws=Uo((e,t,n,r)=>t.set(n,r,()=>{e[n]=r.get()}),{test:e=>Me(e),read:(e,t)=>{let n=e[t];return typeof n==`string`||typeof n==`number`?n:void 0}}),{schedule:Gs,cancel:Ks}=Dn(queueMicrotask,!1),qs=(e=z.now())=>{if(R.isProcessing)return;let t=e-R.timestamp;R.delta=P.useManualTiming?t:Math.max(Math.min(t,40),1),z.set(R.timestamp=e),R.isProcessing=!0;for(let e in On)On[e].process(R);R.isProcessing=!1};function Js(e,t,n){let r=Y(e)?e:J(e);return r.start(Ba(``,r,t,n)),r.animation}var Ys={};function Xs(e){for(let t in e)Ys[t]=e[t],mt(t)&&(Ys[t].isCSSVariable=!0)}var Zs={value:null,addProjectionMetrics:null,countProjection:void 0};function Qs(e,t){let n=z.now();e=Bo(e);let r=({timestamp:i})=>{let a=i-n;a>=t&&(G(r),e(a-t))};return W.setup(r,!0),Ro(()=>G(r))}function $s(e,t){return Qs(e,I(t))}function ec(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function tc(e){return Lo(e)&&e.tagName===`svg`}function nc(e){return Y(e)?e.get():e}var rc=e=>typeof e==`number`?e:parseFloat(e),ic=wo.length,ac=e=>typeof e==`number`||B.test(e);function oc(e,t,n,r,i,a){i?(e.opacity=U(0,n.opacity??1,cc(r)),e.opacityExit=U(t.opacity??1,0,lc(r))):a&&(e.opacity=U(t.opacity??1,n.opacity??1,r));for(let i=0;i<ic;i++){let a=wo[i],o=sc(t,a),s=sc(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||ac(o)===ac(s)?(e[a]=Math.max(U(rc(o),rc(s),r),0),(Ft.test(s)||Ft.test(o))&&(e[a]+=`%`)):e[a]=s)}for(let i=0;i<ys.length;i++){let a=ys[i];(t[a]||n[a])&&(e[a]=U(t[a]||0,n[a]||0,r))}}function sc(e,t){return e[t]===void 0?e.borderRadius:e[t]}var cc=uc(0,.5,Qe),lc=uc(.5,.95,F);function uc(e,t,n){return r=>r<e?0:r>t?1:n(Ie(e,t,r))}function dc(e,t){e.min=t.min,e.max=t.max}function fc(e,t){dc(e.x,t.x),dc(e.y,t.y)}function pc(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var mc=.9999,hc=1.0001,gc=-.01,_c=.01;function Q(e){return e.max-e.min}function vc(e,t,n){return Math.abs(e-t)<=n}function yc(e,t,n,r=.5){e.origin=r,e.originPoint=U(t.min,t.max,e.origin),e.scale=Q(n)/Q(t),e.translate=U(n.min,n.max,e.origin)-e.originPoint,(e.scale>=mc&&e.scale<=hc||isNaN(e.scale))&&(e.scale=1),(e.translate>=gc&&e.translate<=_c||isNaN(e.translate))&&(e.translate=0)}function bc(e,t,n,r){yc(e.x,t.x,n.x,r?.originX),yc(e.y,t.y,n.y,r?.originY)}function xc(e,t,n,r=0){e.min=(r?U(n.min,n.max,r):n.min)+t.min,e.max=e.min+Q(t)}function Sc(e,t,n,r){xc(e.x,t.x,n.x,r?.x),xc(e.y,t.y,n.y,r?.y)}function Cc(e,t,n,r=0){let i=r?U(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Q(t)}function wc(e,t,n,r){Cc(e.x,t.x,n.x,r?.x),Cc(e.y,t.y,n.y,r?.y)}function Tc(e,t,n,r,i){return e-=t,e=ws(e,1/n,r),i!==void 0&&(e=ws(e,1/i,r)),e}function Ec(e,t=0,n=1,r=.5,i,a=e,o=e){if(Ft.test(t)&&(t=parseFloat(t),t=U(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=U(a.min,a.max,r);e===a&&(s-=t),e.min=Tc(e.min,t,n,s,i),e.max=Tc(e.max,t,n,s,i)}function Dc(e,t,[n,r,i],a,o){Ec(e,t[n],t[r],t[i],t.scale,a,o)}var Oc=[`x`,`scaleX`,`originX`],kc=[`y`,`scaleY`,`originY`];function Ac(e,t,n,r){Dc(e.x,t,Oc,n?.x,r?.x),Dc(e.y,t,kc,n?.y,r?.y)}var jc=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Mc=jc(`applewebkit/`)&&!jc(`chrome/`)?Math.round:F;function Nc(e){e.min=Mc(e.min),e.max=Mc(e.max)}function Pc(e){Nc(e.x),Nc(e.y)}var Fc=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ic=()=>({x:Fc(),y:Fc()}),Lc=()=>({min:0,max:0}),$=()=>({x:Lc(),y:Lc()});function Rc(e){return e.translate===0&&e.scale===1}function zc(e){return Rc(e.x)&&Rc(e.y)}function Bc(e,t){return e.min===t.min&&e.max===t.max}function Vc(e,t){return Bc(e.x,t.x)&&Bc(e.y,t.y)}function Hc(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Uc(e,t){return Hc(e.x,t.x)&&Hc(e.y,t.y)}function Wc(e){return Q(e.x)/Q(e.y)}function Gc(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var Kc=class{constructor(){this.members=[]}add(e){Te(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||(Ee(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(Ee(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)}};function qc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Jc={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(B.test(e))e=parseFloat(e);else return e}return`${qc(e,t.target.x)}% ${qc(e,t.target.y)}%`}},Yc={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=H.parse(e);if(i.length>5)return r;let a=H.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=U(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Xc={borderRadius:Object.assign({},Jc,{applyTo:wo.slice()}),borderTopLeftRadius:Jc,borderTopRightRadius:Jc,borderBottomLeftRadius:Jc,borderBottomRightRadius:Jc,boxShadow:Yc};function Zc(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}=n;e&&(r=`perspective(${e}px) ${r}`);for(let e=0;e<ys.length;e++){let t=ys[e],i=n[t];i&&(r+=`${t}(${i}deg) `),!e&&n.pathRotation&&(r+=`rotate(${n.pathRotation}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`}function Qc(e){return[e(`x`),e(`y`)]}var $c=(e,t)=>e.depth-t.depth,el=class{constructor(){this.children=[],this.isDirty=!1}add(e){Te(this.children,e),this.isDirty=!0}remove(e){Ee(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort($c),this.isDirty=!1,this.children.forEach(e)}},tl={hasAnimatedSinceResize:!0,hasEverUpdated:!1},nl=[`z`,`skew`,`skewZ`],rl=1e3,il=0;function al(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}var ol=e=>e.instance&&ea.get(e.instance)?.demote()&&e.resetSkewAndRotation();function sl(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=lo(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,W,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&sl(r)}function cl(e){if(e)return e.options.allowProjection===!1?cl(e.parent):e.projection}function ll({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return Object.assign(Ys,{...Xc,...Ys}),class{static create(e,t,n){let{layoutId:r,layout:i,drag:a,dragConstraints:o,layoutScroll:s,layoutRoot:c,layoutAnchor:l,layoutCrossfade:u}=t,d=e.projection=new this(e.latestValues,t[`data-framer-portal-id`]?void 0:cl(e.parent));d.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:!!a||o&&ec(o),visualElement:e,animationType:typeof i==`string`?i:`both`,initialPromotionConfig:n,crossfade:u,layoutScroll:s,layoutRoot:c,layoutAnchor:l});let f=d.getStack()?.lead;f&&!d.root.isUpdateBlocked()&&(f.willUpdate(),f.scheduleCheckAfterUnmount())}constructor(e={},n=t?.()){this.id=il++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(fl),this.nodes.forEach(Cl),this.nodes.forEach(wl),this.nodes.forEach(pl),Zs.countProjection?.()},this.resolvedRelativeTargetAt=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 el)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Le),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){this.eventHandlers.get(e)?.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=Lo(t)&&!tc(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?.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;W.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n?.(),n=Qs(i,250),tl.hasAnimatedSinceResize&&(tl.hasAnimatedSinceResize=!1,this.nodes.forEach(Sl)))})}n&&this.root.registerSharedNode(n,this),this.addLayoutListener()}addLayoutListener(){let{layoutId:e,layout:t,visualElement:n,animate:r}=this.options;this.instance&&!this.hasLayoutListener&&r!==!1&&n&&(e||t)&&(this.hasLayoutListener=!0,this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:r,layout:i})=>{if(this.isAnimationBlocked){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||n.getDefaultTransition()||Al,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=n.getProps(),c=!this.targetLayout||!Uc(this.targetLayout,i),l=!t&&r;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Ma(a,`layout`),onPlay:o,onComplete:s};(n.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||Sl(this),this.isLead()&&this.options.onExitComplete?.();this.targetLayout=i}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),this.getStack()?.remove(this),this.parent?.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),this.hasLayoutListener=!1,G(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes?.forEach(Tl),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?.();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&sl(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;ol(this),this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,ol(t),(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1),t.isAnimationBlocked&&(t.dragSnapshot||=t.measure(),this.dragAncestor=t)}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(gl),this.nodes.forEach(hl);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(_l);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(yl),this.nodes.forEach(bl),this.nodes.forEach(xl),this.nodes.forEach(ul),this.nodes.forEach(dl)):this.nodes.forEach(_l),this.clearAllSnapshots();let e=z.now();R.delta=N(0,1e3/60,e-R.timestamp),R.timestamp=e,R.isProcessing=!0,On.update.process(R),On.preRender.process(R),On.render.process(R),R.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Gs.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ml),this.sharedNodes.forEach((e,t)=>e.members.length?e.removeLeadSnapshot():this.sharedNodes.delete(t))}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,W.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){W.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!Q(this.snapshot.measuredBox.x)&&!Q(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.layoutCorrected||=$(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t?.notify(`LayoutMeasure`,this.layout.layoutBox,e?.layoutBox)}updateScroll(e=`measure`){let{scroll:t,instance:i}=this,{animationId:a}=this.root;if(this.options.layoutScroll&&i&&!(t&&t.animationId===a&&t.phase===e)){let o=r(i);this.scroll={animationId:a,phase:e,isRoot:o,offset:n(i),wasRoot:t?t.isRoot:o}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout;e&&ol(this);let t=this.projectionDelta&&!zc(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||bs(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)),Pc(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return $();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Nl))){let{scroll:e}=this.root;e&&(js(t.x,e.offset.x),js(t.y,e.offset.y))}return t}removeElementScroll(e){let t=$();if(fc(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&&fc(t,e),js(t.x,i.offset.x),js(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n,r,i=0){let a=n||$();fc(a,e);for(let e=i;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(js(a.x,-n.scroll.offset.x),js(a.y,-n.scroll.offset.y)),bs(n.latestValues)&&Ps(a,n.latestValues,n.layout?.layoutBox)}return!r&&bs(this.latestValues)&&Ps(a,this.latestValues,this.layout?.layoutBox),a}removeTransform(e){let t=$();fc(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!bs(n.latestValues))continue;let r;n.instance&&(vs(n.latestValues)&&n.updateSnapshot(),r=$(),fc(r,n.measurePageBox())),Ac(t,n.latestValues,n.snapshot?.layoutBox,r)}return bs(this.latestValues)&&Ac(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},this.addLayoutListener()}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!==R.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=R.timestamp;let a=this.getClosestProjectingParent();!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=$(),this.targetWithTransforms=$()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Sc(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target,!0):fc(this.target,this.layout.layoutBox),Ds(this.target,this.targetDelta)):fc(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&(!a.resumingFrom==!this.resumingFrom||a.options.layoutRoot&&!a.resumingFrom)&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),Zs.countProjection?.(1))}getClosestProjectingParent(){if(!(!this.parent||vs(this.parent.latestValues)||Ss(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.forceRelativeParentToResolveTarget(),this.relativeTarget=$(),this.relativeTargetOrigin=$(),wc(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),fc(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===R.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent?.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;fc(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;As(this.layoutCorrected,this.treeScale,this.path,t&&(e.relativeTarget&&!e.relativeParent.resumingFrom?e.relativeParent:!0)),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=$());let{target:s}=e;s?(!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(pc(this.prevProjectionDelta.x,this.projectionDelta.x),pc(this.prevProjectionDelta.y,this.projectionDelta.y)),bc(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&Gc(this.projectionDelta.x,this.prevProjectionDelta.x)&&Gc(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Zs.countProjection?.(2)):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){this.options.visualElement?.scheduleRender(),e&&this.getStack()?.scheduleRender(),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ic(),this.projectionDelta=Ic(),this.projectionDeltaWithTransform=Ic()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=Ic();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=$(),c=r?.source!==this.layout?.source,l=this.getStack(),u=!l||l.members.length<=1,d=!(!c||u||this.options.crossfade!==!0||this.path.some(kl));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);El(o.x,e.x,n),El(o.y,e.y,n),r&&(o.x.translate=r.x,o.y.translate=r.y),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(wc(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Ol(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&Vc(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=$(),fc(f,this.relativeTarget)),c&&(this.animationValues=a,oc(a,i,this.latestValues,n,d,u)),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&&=(G(this.pendingAnimation),void 0),this.pendingAnimation=W.update(()=>{tl.hasAnimatedSinceResize=!0,this.motionValue||=J(0),this.motionValue.jump(0,!1),this.currentAnimation=Js(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()}}),wr(this.currentAnimation,this),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?.(rl),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,layout:n,latestValues:r}=e,{target:i}=e;if(t&&i&&n){if(this!==e&&this.layout&&n&&Ml(this.options.animationType,this.layout.layoutBox,n.layoutBox)){let{layoutBox:e}=this.layout,t=i;i=this.target||$(),jl(i.x,t.x,e.x),jl(i.y,t.y,e.y)}fc(t,i),Ps(t,r),bc(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Kc),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?.transition,preserveFollowOpacity: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}={}){this.getStack()?.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){return this.getStack()?.relegate(this)||!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let{latestValues:t}=e;if(!xs(t))return;let n={};for(let t=0;t<nl.length;t++)al(nl[t],e,n,this.animationValues);for(let t=0;t<ys.length;t++)al(ys[t],e,n,this.animationValues);e.render();for(let t in n)e.setStaticValue(t,n[t]),this.animationValues&&(this.animationValues[t]=n[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;let n=this.getLead();if(!this.isVisible&&n!==this){e.visibility=`hidden`;return}let r=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=nc(t?.pointerEvents)||``,e.transform=r?r(this.latestValues,``):`none`;return}if(!this.projectionDelta||!this.layout||!n.target){(this.options.layoutId||this.needsShow)&&(this.needsShow=!1,e.visibility=``,e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=nc(t?.pointerEvents)||``),this.hasProjected&&!bs(this.latestValues)&&(e.transform=r?r({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=n.animationValues||n.latestValues;this.applyTransformsToTarget();let a=Zc(this.projectionDeltaWithTransform,this.treeScale,i);r&&(a=r(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=n.animationValues?n===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:n===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in Ys){if(i[t]===void 0)continue;let{correct:r,applyTo:o,isCSSVariable:s}=Ys[t],c=a===`none`?i[t]:r(i[t],n);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=n===this?nc(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=this.dragSnapshot=this.dragAncestor=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(hl),this.root.sharedNodes.clear()}}}function ul(e){e.updateLayout(),vl(e)}function dl(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,o=(r,a)=>{if(i===`size`)Qc(e=>{let t=Q(r[e]);r[e].min=a[e].min,r[e].max=r[e].min+t});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;dc(r[e],a[e])}else Ml(i,t.layoutBox,n)&&Qc(t=>{let n=Q(a[t]);r[t].max=r[t].min+n,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[t].max=e.relativeTarget[t].min+n)})},s=a?t.measuredBox:t.layoutBox;o(s,n);let c=Ic();bc(c,n,t.layoutBox);let l=Ic();bc(l,a?e.applyTransform(r,!0):n,s);let u=!zc(c),d=!1,f=e.getClosestProjectingParent();if((!a||f?.options.layoutRoot&&e.resumeFrom?.path.includes(f))&&f&&!f.resumeFrom){let{snapshot:r,layout:i}=f;if(r&&i){let s=e.options.layoutAnchor||void 0,c=$();wc(c,a?e.resumeFrom.applyTransform(t.layoutBox,!0,void 0,!0,f.depth+1):t.layoutBox,r.layoutBox,s);let l=$();wc(l,n,i.layoutBox,s),a&&o(c,l),Uc(c,l)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=c,e.relativeParent=f)}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:l,layoutDelta:c,hasLayoutChanged:u,hasRelativeLayoutChanged:d})}else e.isLead()&&e.options.onExitComplete?.();e.options.transition=void 0}function fl(e){Zs.countProjection?.(0),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 pl(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ml(e){e.clearSnapshot()}function hl(e){e.clearMeasurements()}function gl(e){e.isLayoutDirty=!0,e.updateLayout()}function _l(e){e.isLayoutDirty=!1}function vl(e){let{snapshot:t,dragAncestor:n}=e,r=n?.isAnimationBlocked&&n.layout;if(!t||!r||e.resumeFrom||e.isAnimationBlocked)return;let i=n.dragSnapshot;Qc(e=>js(t.layoutBox[e],r.layoutBox[e].min-i.layoutBox[e].min))}function yl(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.dragSnapshot||e.layout,e.isLayoutDirty=!0)}function bl(e){e.relativeTarget&&e.relativeParent?.isLayoutDirty&&(e.currentAnimation?e.isLayoutDirty=!0:(e.targetDelta=void 0,e.removeRelativeTarget()))}function xl(e){let{visualElement:t}=e.options;t?.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Sl(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Cl(e){e.resolveTargetDelta()}function wl(e){e.calcProjection()}function Tl(e){e.resetSkewAndRotation()}function El(e,t,n){e.translate=U(t.translate,0,n),e.scale=U(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Dl(e,t,n,r){e.min=U(t.min,n.min,r),e.max=U(t.max,n.max,r)}function Ol(e,t,n,r){Dl(e.x,t.x,n.x,r),Dl(e.y,t.y,n.y,r)}function kl(e){return e.animationValues?.opacityExit!==void 0}var Al={duration:.45,ease:[.4,0,.1,1]};function jl(e,t,n){e.max=Q(n)+(e.min=t.min)}function Ml(e,t,n){return e===`position`||e===`preserve-aspect`&&!vc(Wc(t),Wc(n),.2)}function Nl(e){return e!==e.root&&e.scroll?.wasRoot}function Pl(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var Fl=ll({attachResizeListener:(e,t)=>Pl(e,`resize`,t),measureScroll:Ls,checkIsScrollRoot:()=>!0}),Il={current:void 0},Ll=ll({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Il.current){let e=new Fl({});e.mount(window),e.setOptions({layoutScroll:!0}),Il.current=e}return Il.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Rl=new WeakMap;function zl(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Bl(e){return typeof e==`string`||Array.isArray(e)}var Vl=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Hl=[`initial`].concat(Vl);function Ul(e){if(zl(e.animate))return!0;for(let t=0;t<Hl.length;t++)if(Bl(e[Hl[t]]))return!0;return!1}function Wl(e){return!!(Ul(e)||e.variants)}function Gl(e,t,n){for(let r in t){let i=t[r],a=n[r];if(Y(i))e.addValue(r,i);else if(Y(a))e.addValue(r,J(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,J(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Kl={current:null},ql={current:!1},Jl=typeof window<`u`;function Yl(){if(ql.current=!0,Jl){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Kl.current=e.matches;e.addEventListener(`change`,t),t()}else Kl.current=!1}}var Xl=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Zl={};function Ql(e){Zl=e}function $l(){return Zl}var eu=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=_i,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=z.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,W.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=Ul(t),this.isVariantNode=Wl(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&&Y(t)&&t.set(c[e])}}mount(e){let t=this.presenceContext;if(this.hasBeenMounted&&t?.isPresent!==!1&&!t?.keepValuesOnRemount)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];if(this.current=e,Rl.set(e,this),this.projection?.instance||this.projection?.mount(e),this.isVariantNode&&!this.isControllingVariants){let e=this;do e=e.props.inherit!==!1&&e.parent;while(e&&!e.isVariantNode);if(e){let{variantChildren:t}=e;t.add(this),this.removeFromVariantTree=()=>t.delete(this)}}this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(ql.current||Yl(),this.shouldReduceMotion=Kl.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection?.unmount(),G(this.notifyUpdate),G(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),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).add(e)}removeChild(e){this.children.delete(e),this.enteringChildren?.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.get(e)?.(),t.accelerate&&Bi.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new ji({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:I(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=q.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&W.preRender(this.notifyUpdate),n&&(this.projection&&(this.projection.isTransformDirty=!0),ea.get(this.current)?.check()),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i?.()})}sortNodePosition(e){return!this.current||!e.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Zl){let t=Zl[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):$()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){let{transformTemplate:n,onUpdate:r}=this.props;(e.transformTemplate||n)&&this.scheduleRender(),(e.transformTemplate&&!n||e.onUpdate&&!r)&&ea.get(this.current)?.demote(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Xl.length;t++){let n=Xl[t];this.propEventSubscriptions[n]?.(),delete this.propEventSubscriptions[n];let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Gl(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue?.()}getProps(){return this.props}getVariant(e){return this.props.variants?.[e]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}addValue(e,t){let n=this.values.get(e);if(t!==n){n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t);let r=t.get();r!==void 0&&(this.latestValues[e]=r)}}removeValue(e){this.values.delete(e),this.valueSubscriptions.get(e)?.(),this.valueSubscriptions.delete(e),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){let n=this.props.values?.[e];return n||(n=this.values.get(e),n===void 0&&t!==void 0&&(n=J(t??this.getDefaultValue?.(e),{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`&&(je(n)||Ne(n))?n=parseFloat(n):typeof n!=`number`&&!H.test(n)&&H.test(t)&&(n=Vr(e,t)),this.setBaseTarget(e,Y(n)?n.get():n)),Y(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}on(e,t){return(this.events[e]||(this.events[e]=new Le)).add(t)}notify(e,...t){this.events[e]?.notify(...t)}scheduleRenderMicrotask(){Gs.render(this.render)}},tu=class extends eu{constructor(){super(...arguments),this.KeyframeResolver=Co}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;Y(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function nu(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 ru(e,{layout:t,layoutId:n}){return q.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Ys[e]||e===`opacity`)}function iu(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(Y(r[t])||i&&Y(i[t])||ru(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function au(e){return window.getComputedStyle(e)}var ou=class extends tu{constructor(){super(...arguments),this.type=`html`,this.renderInstance=nu}mount(e){super.mount(e)}readValueFromInstance(e,t){if(q.has(t))return this.projection?.isProjecting?Zr(t):$r(e,t);{let n=au(e),r=(mt(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Fs(e,t)}build(e,t,n){$o(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return iu(e,t,n)}};function su(e){let t=Rl.get(e);return t||(t=new ou({props:{},presenceContext:null,visualState:{latestValues:{},renderState:{transform:{},transformOrigin:{},style:{},vars:{}}}},{allowProjection:!0}),Us(e,t)),e.style.transform&&!bs(t.latestValues)&&(e.style.transform=``),t}var cu={},lu={updateScroll:()=>{lu.scroll||={offset:Ls()}}},uu=e=>{let t=su(e),n=new Le,r={instance:e,root:lu,path:[lu],setOptions:F,isProjecting:F,applyProjectionStyles:F,removeElementScroll:e=>e,updateLayout:()=>{let i=Is(e,lu,t.getTransformPagePoint());Pc(i),r.layout={layoutBox:i},n.notify()},addEventListener:(e,t)=>e===`measure`?n.add(t):F,unmount:()=>{r.instance=void 0,t.projection===r&&(t.projection=void 0)}};return t.projection=r,t.current||t.mount(e),[r,r.unmount]},du=e=>{let t=Rl.get(e)?.projection;return t?.instance?[t,F]:(cu.create||uu)(e)},fu=`[data-layout],[data-layout-id]`,pu=new WeakMap,mu;function hu(e){let t=[];return e instanceof HTMLElement&&e.matches(fu)&&t.push(e),e.querySelectorAll(fu).forEach(e=>{e instanceof HTMLElement&&t.push(e)}),t}function gu(){if(R.isProcessing)return;let e=z.now();R.delta=N(0,1e3/60,e-R.timestamp),R.timestamp=e,R.isProcessing=!0,On.update.process(R),On.preRender.process(R),On.render.process(R),R.isProcessing=!1}function _u(e){let t=e.parentElement;for(;t;){let e=pu.get(t);if(e?.instance)return e;t=t.parentElement}}function vu(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 yu(e,t){let n=pu.get(e);if(n)n.setOptions(vu(e,t));else{let r=su(e);n=new Ll(r.latestValues,_u(e)),r.projection=n,n.setOptions({...vu(e,t),visualElement:r}),n.mount(e),pu.set(e,n)}return n.isPresent=!0,n.options.onExitComplete&&n.setOptions({onExitComplete:void 0}),n}function bu(e){let t=yu(e);return[t,()=>pu.get(e)===t&&Cu(e,t)]}cu.create=bu;function xu(e){let t=pu.get(e)||Rl.get(e)?.projection;return t?.instance?[t,()=>{}]:bu(e)}function Su(e){return[...e].sort((e,t)=>e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}function Cu(e,t){t.setOptions({onExitComplete:void 0}),(!t.getStack()||t.isLead())&&t.currentAnimation?.stop(),t.unmount(),pu.delete(e)}function wu(){let e=mu;if(!e)return;mu=void 0,gu();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 Su(t.keys())){let r=t.get(e),i=yu(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(),Gs.render(()=>{for(let t of e)t.finalize()})};r.length?Promise.all(r).then(i):i()}var Tu=wu,Eu=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}),mu||(mu=[],queueMicrotask(wu)),mu.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 hu(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 hu(this.scope)){if(this.tracked.has(t))continue;let n=yu(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?.parentNode===r.parent?r.next:null),t.isPresent=!1,t.setOptions({onExitComplete:()=>{n.remove(),Cu(n,t)}}),t.relegate())return;n.remove()}Cu(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 ya([...e]))}};function Du(e,t,n){return typeof e==`function`?{scope:X.current?.root||document,updateDom:e,defaultOptions:t}:{scope:e instanceof Document?e:Z(e)[0]??document,updateDom:t,defaultOptions:n}}var Ou=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1;function ku(e){return{point:{x:e.pageX,y:e.pageY}}}var Au=e=>t=>Ou(t)&&e(t,ku(t));function ju(e,t,n,r){return Pl(e,t,Au(n),r)}var Mu=new WeakMap,Nu,Pu=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Lo(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Fu=Pu(`inline`,`width`,`offsetWidth`),Iu=Pu(`block`,`height`,`offsetHeight`);function Lu({target:e,borderBoxSize:t}){Mu.get(e)?.forEach(n=>{n(e,{get width(){return Fu(e,t)},get height(){return Iu(e,t)}})})}function Ru(e){e.forEach(Lu)}function zu(){typeof ResizeObserver<`u`&&(Nu=new ResizeObserver(Ru))}function Bu(e,t){Nu||zu();let n=Z(e);return n.forEach(e=>{let n=Mu.get(e);n||(n=new Set,Mu.set(e,n)),n.add(t),Nu?.observe(e)}),()=>{n.forEach(e=>{let n=Mu.get(e);n?.delete(t),n?.size||Nu?.unobserve(e)})}}var Vu=new Set,Hu;function Uu(){Hu=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Vu.forEach(t=>t(e))},window.addEventListener(`resize`,Hu)}function Wu(e){return Vu.add(e),Hu||Uu(),()=>{Vu.delete(e),!Vu.size&&typeof Hu==`function`&&(window.removeEventListener(`resize`,Hu),Hu=void 0)}}function Gu(e,t){return Ro(typeof e==`function`?Wu(e):Bu(e,t))}var Ku=(e,t)=>Math.abs(e-t);function qu(e,t){let n=Ku(e.x,t.x),r=Ku(e.y,t.y);return Math.sqrt(n**2+r**2)}var Ju=new Set([`auto`,`scroll`]),Yu=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.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Zu(this.lastRawMoveEventInfo,this.transformPagePoint));let e=$u(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=qu(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e;this.history.push({...r,timestamp:z.now()});let{onStart:i,onMove:a}=this.handlers;t||(i?.(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a?.(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.handleScroll(window),this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=Zu(t,this.transformPagePoint),this.hasPendingMove=!0,W.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.hasPendingMove&&this.updatePoint(),this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i?.(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=$u(e.type===`pointercancel`?this.lastMoveEventInfo:Zu(t,this.transformPagePoint),this.history);this.startEvent&&n?.(e,a),r?.(e,a)},!Ou(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=Zu(ku(e),this.transformPagePoint),{point:c}=s;this.history=[{...c,timestamp:z.now()}];let{onSessionStart:l}=t;l&&l(e,$u(s,this.history));let u={passive:!0,capture:!0};this.removeListeners=Fe(ju(this.contextWindow,`pointermove`,this.handlePointerMove,u),ju(this.contextWindow,`pointerup`,this.handlePointerUp,u),ju(this.contextWindow,`pointercancel`,this.handlePointerUp,u)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Ju.has(e.overflowX)||Ju.has(e.overflowY))&&this.scrollPositions.set(t,Xu(t)),t=t.parentElement}this.scrollPositions.set(window,Xu(window)),this.removeScrollListeners=Fe(Pl(window,`scroll`,this.onElementScroll,{capture:!0}),Pl(window,`scroll`,this.onWindowScroll,{}))}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=Xu(e),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),W.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners?.(),this.removeScrollListeners?.(),this.scrollPositions.clear(),G(this.updatePoint)}},Xu=e=>e===window?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop};function Zu(e,t){return t?{point:t(e.point)}:e}function Qu(e,t){return{x:e.x-t.x,y:e.y-t.y}}function $u({point:e},t){return{point:e,delta:Qu(e,td(t)),offset:Qu(e,ed(t)),velocity:nd(t,.1)}}function ed(e){return e[0]}function td(e){return e[e.length-1]}function nd(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=td(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>I(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>I(t)*2&&(r=e[1]);let a=L(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}var rd=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function id(e){return rd.has(e.tagName)||e.isContentEditable===!0}var ad=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function od(e){return ad.has(e.tagName)||e.isContentEditable===!0}var sd={x:!1,y:!1};function cd(){return sd.x||sd.y}function ld(e){return e===`x`||e===`y`?sd[e]?null:(sd[e]=!0,()=>{sd[e]=!1}):sd.x||sd.y?null:(sd.x=sd.y=!0,()=>{sd.x=sd.y=!1})}function ud(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?U(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?U(n,e,r.max):Math.min(e,n)),e}function dd(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 fd(e,{top:t,left:n,bottom:r,right:i}){return{x:dd(e.x,n,i),y:dd(e.y,t,r)}}function pd(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 md(e,t){return{x:pd(e.x,t.x),y:pd(e.y,t.y)}}function hd(e,t){let n=.5,r=Q(e),i=Q(t);return i>r?n=Ie(t.min,t.max-r,e.min):r>i&&(n=Ie(e.min,e.max-i,t.min)),N(0,1,n)}function gd(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 _d=.35;function vd(e=_d){return e===!1?e=0:e===!0&&(e=_d),{x:yd(e,`left`,`right`),y:yd(e,`top`,`bottom`)}}function yd(e,t,n){return{min:bd(e,t),max:bd(e,n)}}function bd(e,t){return typeof e==`number`?e:e[t]||0}function xd(e){let t=``;for(let n of e.path){n.scroll=void 0,n.updateScroll();let{scroll:r}=n;n!==e.root&&r&&(t+=r.offset.x+`,`+r.offset.y+`,`)}return t}var Sd=new WeakMap,Cd=class{constructor(e,t=()=>e.getProps()){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e,this.readProps=t}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){if(this.visualElement.presenceContext?.isPresent===!1)return;let r=e=>{t&&this.snapToCursor(e),this.stopAnimation()},i=(e,t)=>{let{drag:n,dragConstraints:r,dragPropagation:i,onDragStart:a}=this.getProps();if(n&&!i&&(this.openDragLock?.(),this.openDragLock=ld(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints();let{projection:o}=this.visualElement;o&&(o.isAnimationBlocked=!0,o.target=void 0),Qc(e=>{let t=this.getAxisMotionValue(e).get()||0;if(gt(t)&&(t=Ya(t,this.visualElement.current)||0),B.test(t))t=parseFloat(t);else if(Ft.test(t)){let n=o?.layout?.layoutBox[e];n&&(t=Q(n)*(parseFloat(t)/100))}this.originPoint[e]=t}),this.point=typeof r==`function`&&r(this),a&&W.update(()=>a(e,t),!1,!0),oo(this.visualElement,`transform`),this.visualElement.animationState?.setActive(`whileDrag`,!0)},a=(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){if(this.currentDirection=kd(o),this.currentDirection===null)return;i&&i(this.currentDirection)}this.updateAxis(`x`,o),this.updateAxis(`y`,o),this.point&&this.point.move(),this.visualElement.render(),a&&W.update(()=>a(e,t),!1,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},s=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints||this.point)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new Yu(e,{onSessionStart:r,onStart:i,onMove:a,onSessionEnd:o,resumeAnimation:s},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:n,contextWindow:this.visualElement.current?.ownerDocument.defaultView,element:this.visualElement.current})}stop(e,t,n){let r=e||this.latestPointerEvent,i=t||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!r)return;let{velocity:o}=i;this.startAnimation(o,n);let{onDragEnd:s}=this.getProps();s&&W.postRender(()=>s(r,i))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession(),!this.getProps().dragPropagation&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t?.setActive(`whileDrag`,!1)}endPanSession(){this.panSession?.end(),this.panSession=void 0}updateAxis(e,t){let{drag:n}=this.readProps();if(!t||!Od(e,n,this.currentDirection))return;let r=this.getAxisMotionValue(e),i=this.originPoint[e]+t[e],a=this.constraints&&this.constraints[e];a&&(i=ud(i,a,this.elastic[e])),this.point?this.point[e]=i:r.set(i)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),{projection:n}=this.visualElement,r=n&&(n.layout||n.measure(!1)),i=this.constraints;wd(e)?this.constraints&&this.scroll===xd(n)||(this.constraints=this.resolveRefConstraints()):this.constraints=e&&r&&typeof e==`object`?fd(r.layoutBox,e):!1,this.elastic=vd(t),i!==this.constraints&&!wd(e)&&r&&this.constraints&&!this.hasMutatedConstraints&&Qc(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=gd(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!wd(e))return!1;let n=Td(e),{projection:r}=this.visualElement;if(!r||!r.layout)return!1;this.scroll=xd(r);let i=Is(n,r.root,this.visualElement.getTransformPagePoint()),a=md(r.layout.layoutBox,r.removeElementScroll(i));if(t){let e=t(hs(a));this.hasMutatedConstraints=!!e,e&&(a=ms(e))}return a}startAnimation(e,t){let{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),c={bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...a},l=i=>r&&!(this.point&&o)&&Od(i,t||n,this.currentDirection)?e[i]:0;if(this.point&&!o)return this.point.release({x:l(`x`),y:l(`y`)},c).then(s);let u=this.constraints||{},d=Qc(e=>{if(!Od(e,t||n,this.currentDirection))return;let r=u[e]||{};(o===!0||o===e)&&(r={min:0,max:0});let i={type:`inertia`,velocity:l(e),...c,...r};return this.startAxisValueAnimation(e,i)});return Promise.all(d).then(s)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return oo(this.visualElement,e),n.start(Ba(e,n,0,t,this.visualElement,!1))}stopAnimation(){Qc(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.readProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor({clientX:e,clientY:t}){let{drag:n}=this.getProps(),r={x:e,y:t},i=this.visualElement.getTransformPagePoint()?.(r)||r,a=this.visualElement.measureViewportBox();Qc(e=>{if(!Od(e,n,this.currentDirection))return;let t=this.getAxisMotionValue(e),{min:r,max:o}=a[e];t.set((t.get()||0)+i[e]-U(r,o,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!wd(t)||!n||!this.constraints)return;this.stopAnimation();let r=this.constraints,i={x:0,y:0};Qc(e=>{let t=this.getAxisMotionValue(e).get();i[e]=hd({min:t,max:t},r[e])});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},``):`none`,n.root?.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Qc(t=>{let n=this.getAxisMotionValue(t);if(!Od(t,e,null)||!n.get())return;let{min:r,max:a}=this.constraints[t];n.set(U(r,a,i[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Sd.set(this.visualElement,this);let e=this.visualElement.current,t=ju(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&od(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps(),r=wd(t)&&Td(t);r&&(this.constraints=this.resolveRefConstraints(),n||=Dd(e,r,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i.layout||(i.root?.updateScroll(),i.updateLayout()),W.read(r);let o=Pl(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Qc(t=>{if(!Od(t,this.getProps().drag,this.currentDirection))return;let n=this.getAxisMotionValue(t);this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate)}),this.visualElement.render())}));return()=>{o(),t(),a(),s(),n?.()}}getProps(){let e=this.readProps(),{dragElastic:t=_d,dragMomentum:n=!0}=e;return{...e,dragElastic:t,dragMomentum:n}}};function wd(e){return!!e&&typeof e==`object`&&(`current`in e||`nodeType`in e)}var Td=e=>`current`in e?e.current:e;function Ed(e){let t=!0;return()=>{t?t=!1:e()}}function Dd(e,t,n){let r=Gu(e,Ed(n)),i=Gu(t,Ed(n));return()=>{r(),i()}}function Od(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function kd(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}function Ad({dragConstraints:e,onMeasureDragConstraints:t}){return wd(e)&&!!t}var jd=({axis:e,constraints:t,elastic:n,momentum:r,transition:i,snapToOrigin:a,directionLock:o,propagation:s,onStart:c,onMove:l,onEnd:u,onDirectionLock:d,onTransitionEnd:f,onMeasureConstraints:p})=>({drag:e||!0,dragConstraints:t,dragElastic:n,dragMomentum:r,dragTransition:i,dragSnapToOrigin:a,dragDirectionLock:o,dragPropagation:s,onDragStart:c,onDrag:l,onDragEnd:u,onDirectionLock:d,onDragTransitionEnd:f,onMeasureDragConstraints:p}),Md=[`user-select`,`-webkit-user-select`,`-webkit-touch-callout`,`touch-action`];function Nd(e,t){let{style:n}=e,r=e.getAttribute(`draggable`),i=Md.map(e=>n.getPropertyValue(e)),a=t?`pan-`+(t===`x`?`y`:`x`):`none`;return Md.forEach((e,t)=>n.setProperty(e,t<3?`none`:a)),e.setAttribute(`draggable`,`false`),()=>{Md.forEach((e,t)=>n.setProperty(e,i[t])),r===null?e.removeAttribute(`draggable`):e.setAttribute(`draggable`,r)}}function Pd(e,t={}){let n=jd(t),r=X.current;if(r)for(let e in n){let t=n[e];typeof t==`function`&&(n[e]=r.bind(t))}let i=Z(e).map(e=>{r?.track(e);let[i,a]=du(e);i.setOptions({alwaysMeasureLayout:!0});let o=new Cd(Rl.get(e),()=>n),s=o.addListeners(),c=Nd(e,t.axis);return()=>{c(),s?.(),o.cancel(),o.stopAnimation(),a()}});return Ro(()=>i.forEach(e=>e()))}function Fd(e,t){let n=Z(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},Ro(()=>r.abort())]}function Id(e){return!(e.pointerType===`touch`||cd())}function Ld(e,t,n={}){t=Bo(t);let[r,i,a]=Fd(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=>{e.pointerType!==`touch`&&(n?r=!0:s(e))};e.addEventListener(`pointerenter`,n=>{if(!Id(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 Rd=(e,t)=>t?e===t||Rd(e,t.parentElement):!1,zd=new WeakSet;function Bd(e){return t=>{t.key===`Enter`&&e(t)}}function Vd(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Hd=(e,t)=>{let n=!1,r=Bd(()=>{zd.has(e)||(n=!0,Vd(e,`down`))}),i=Bd(()=>{n&&(n=!1,Vd(e,`up`))});e.addEventListener(`keydown`,r,t),e.addEventListener(`keyup`,i,t),e.addEventListener(`blur`,()=>{e.removeEventListener(`keydown`,r),e.removeEventListener(`keyup`,i),n&&Vd(e,`cancel`)},{...t,once:!0})};function Ud(e){return Ou(e)&&!cd()}var Wd=new WeakSet;function Gd(e,t,n={}){t=Bo(t);let[r,i,a]=Fd(e,n),o=e=>{let r=e.currentTarget;if(!Ud(e)||Wd.has(e))return;zd.add(r),n.stopPropagation&&Wd.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),zd.has(r)&&zd.delete(r),Ud(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||Rd(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),Io(e)&&(e.addEventListener(`focus`,()=>Hd(e,i),i),!id(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Kd(e,t){let n=window.getComputedStyle(e);return vi(t)?n.getPropertyValue(t):n[t]}var qd={reducedMotion:`(prefers-reduced-motion: reduce)`,motion:`(prefers-reduced-motion: no-preference)`,dark:`(prefers-color-scheme: dark)`,light:`(prefers-color-scheme: light)`,hover:`(hover: hover) and (pointer: fine)`,touch:`(pointer: coarse)`,portrait:`(orientation: portrait)`,landscape:`(orientation: landscape)`};function Jd(e){return e.includes(`(`)?e:e.replace(/([<>!]=?)\s+/g,`$1`).trim().split(/\s+/).map(e=>{let t=e[0]===`!`;t&&(e=e.slice(1));let n=/^([<>]=?)([\d.]+)([a-z]*)$/.exec(e),r=n?`(width ${n[1]} ${n[2]}${n[3]||`px`})`:qd[e]||e;return t?`(not (${r}))`:r}).join(` and `)}function Yd(...e){let t=typeof e[0]==`function`?void 0:e.shift(),[n,r={}]=e,{transition:i,matchMedia:a}=r,o=[],s=new Map,c=[],l=!1,u={root:Z(t)[0],transition:i,add(e){return c.push(e),()=>Ee(c,e)},bind:e=>((...t)=>{let n=g.run(()=>e(...t));return typeof n==`function`?u.bind(n):n}),track(e){s.has(e)||s.set(e,e.getAttribute(`style`))}},d=e=>{let t=c;c=[];for(let e=t.length-1;e>=0;e--)t[e]();e&&s.forEach((e,t)=>{Hs(t),e===null?t.removeAttribute(`style`):t.setAttribute(`style`,e)}),s.clear()},f=()=>{g.state=`active`;let e=!o.length;g.media={};for(let[t,n]of o)e=(g.media[t]=n.matches)||e;if(e&&n){let e=g.run(()=>n(g));typeof e==`function`&&u.add(e)}},p=()=>{l||(l=!0,queueMicrotask(()=>{l=!1,o.length&&g.refresh()}))},m=e=>{g.state=e?`cancelled`:`stopped`;for(let[,e]of o)e.removeEventListener(`change`,p);o.length=0,d(e)},h=(e,t)=>{let n=X.current;X.current=e;try{return t()}finally{X.current=n}},g={state:`active`,media:{},run:e=>h(u,e),ignore:e=>h(void 0,e),bind:u.bind,stop:()=>m(),cancel:()=>m(!0),refresh(){d(!0),f()}};if(a&&typeof window<`u`){let e=typeof a==`string`?{matches:a}:a;for(let t in e){let n=window.matchMedia(Jd(e[t]));n.addEventListener(`change`,p),o.push([t,n])}}return Ro(g.cancel),f(),g}var Xd=[`nodes`,`calculatedTargetDeltas`,`calculatedProjections`];function Zd(){Zs.value=null,Zs.addProjectionMetrics=null,Zs.countProjection=void 0}function Qd(){if(Zs.value)throw Zd(),Error(`Stats are already being measured`);let e=Zs;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)};let t={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0};e.countProjection=n=>{n===void 0?(e.addProjectionMetrics(t),t.nodes=t.calculatedTargetDeltas=t.calculatedProjections=0):t[Xd[n]]++}}function $d(e,t){if(e===`first`)return 0;{let n=t-1;return e===`last`?n:n/2}}function ef(e=.1,{startDelay:t=0,from:n=0,ease:r,grid:i}={}){let a={};return(o,s)=>{let c=a[s];if(!c){let[e,t]=i||[1/0,1],r=Math.min(e,s)-1,o=Math.max(t,Math.ceil(s/e))-1,l=typeof n==`number`,u=n===`first`?0:n===`last`?1:.5,d=l?n%e:r*u,f=l?Math.floor(n/e):o*u;c=a[s]=[];for(let t=0;t<s;t++){let i=t%e,a=Math.floor(t/e),s=Math.min(i,r-i),l=Math.min(a,o-a);if(n===`random`){let e=Math.random()*(t+1)|0;c[t]=c[e],c[e]=t}else c[t]=n===`edges`?Math.min(r?s:l,o?l:s):Math.hypot(i-d,a-f)}c.push(i?Math.max(...c):s)}let l=e*c[o],u=e*c[s];return r&&u&&(l=lt(r)(l/u)*u),t+l}}function tf(...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=sr(i,a,o);return t?s(r):s}var nf=new Set,rf=({timestamp:e})=>{nf.forEach(t=>t.tick(e))},af=class extends Tr{constructor(e){super(),this.state=`idle`,this.startTime=0,this.currentTime=0,this.started=!1,this.hasNextTarget=!1,this.nextTarget=0,this.stop=()=>{this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.factory=e.type,this.generator=this.factory(e);let{driver:t}=e;t&&(this.driver=t(e=>this.tick(e))),this.startTime=this.now(),this.state=`running`,this.driver?this.driver.start():(nf.size||W.update(rf,!0),nf.add(this))}setTarget(e,t){this.nextTarget=e,this.nextVelocity=t,this.hasNextTarget=!0}retarget(e,t){let{options:n,generator:r}=this;n.keyframes=e,n.velocity=t,this.startTime=this.now(),this.currentTime=0,r.retarget?r.retarget(e,t):this.generator=this.factory(n)}tick(e){let{options:t,hasNextTarget:n}=this,{delay:r=0,onUpdate:i,onPlay:a}=t;this.started||(this.startTime=xr(this.startTime,e));let o=Math.round(e-this.startTime)-r,s=this.currentTime=Math.max(0,o),c=this.generator.next(s),l=o<0?t.keyframes[0]:c.value;if(n){this.hasNextTarget=!1;let{keyframes:e}=t;e[0]=l,e[1]=this.nextTarget,this.retarget(e,this.nextVelocity??this.getGeneratorVelocity())}(n||!this.started)&&(this.started=!0,a?.()),this.state===`running`&&(i?.(l),c.done&&o>=0&&!n&&!this.hasNextTarget&&this.state===`running`&&(this.notifyFinished(),this.teardown(),this.state=`finished`,t.onComplete?.()))}getGeneratorVelocity(){return hr(this.generator,this.currentTime,this.options.velocity)}now(){return this.driver?this.driver.now():z.now()}teardown(){this.state=`idle`,this.driver?this.driver.stop():(nf.delete(this),nf.size||G(rf))}};function of(e,t,n){let r=e.get(),i=null,a,o=typeof r==`string`?r.replace(/[\d.-]/g,``):void 0,s=e=>a(o?e+o:e),c=()=>e.events.animationStart?.notify(),l=()=>{i&&=(i.stop(),null),e.animation=void 0};if(e.attach((t,r)=>{a=r;let o=rc(t);if(i?.state===`running`){i.setTarget(o,n.velocity);return}let u=rc(e.get()),d=i?i.getGeneratorVelocity():e.getVelocity();if(l(),u===o)return;let f=i=new af({keyframes:[u,o],velocity:d,restDelta:.001,restSpeed:.01,...n,onUpdate:s,onPlay:c});e.animation=f,f.then(()=>{i===f&&(i=null,e.animation=void 0,e.events.animationComplete?.notify())})},l),Y(t)){let r=n.skipInitialAnimation===!0,i=t=>{r?(r=!1,e.jump(sf(t,o),!1)):e.set(sf(t,o))},a=t.on(`change`,i),s=t.get();rc(s)-rc(e.get())&&i(s);let c=e.on(`destroy`,a);return()=>{a(),c(),l()}}return l}function sf(e,t){return t?e+t:e}function cf(e,t){let n=J(Y(e)?e.get():e);return lf(n,e,t),n}function lf(e,t,n={}){let r={type:`spring`,...n};return yr(r),r.type=r.type||fr,of(e,t,r)}function uf(e,t,n){let r=()=>t.set(n()),i=()=>W.preRender(r,!1,!0),a=e.map(e=>e.on(`change`,i));t.on(`destroy`,()=>{a.forEach(e=>e()),G(r)})}function df(e){let t=[];ka.current=t;let n=e();ka.current=void 0;let r=J(n);return uf(t,r,e),r}function ff(e,t,n,r){let i=tf(t,n,r);return df(()=>i(e.get()))}function pf(e,t){let n=J(Y(e)?e.get():e);return mf(n,e,t),n}function mf(e,t,n){return of(e,t,{...n,type:ir})}var hf=[...vo,V,H],gf=e=>hf.find(_o(e)),_f=0,vf=()=>`motion-view-${_f++}`,yf=e=>e.startsWith(`motion-view-`);function bf(e,t,n){t&&(e.style?.setProperty(`view-transition-class`,t),n.push(e))}function xf(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 Sf(e,t,n,r,i,a=[],o,s=[],c){let l=Z(e);if(r)return l.map((e,l)=>{let u=t.get(e);if(u)return u;let d=r[l]??vf();return e.style?.setProperty(`view-transition-name`,d),n.push(e),t.set(e,d),bf(e,i,a),xf(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`&&!yf(d)?f=d:(f=vf(),e.style?.setProperty(`view-transition-name`,f),n.push(e)),t.set(e,f),bf(e,i,a),xf(e,f,o,s,c),f})}function Cf(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 wf(e){return e===`layout`?`group`:e===`enter`||e===`new`?`new`:`old`}var Tf={},Ef=null,Df={set:(e,t)=>{Tf[e]=t},commit:()=>{Ef||(Ef=document.createElement(`style`),Ef.id=`motion-view`);let e=``;for(let t in Tf){let n=Tf[t];e+=`${t} {\n`;for(let[t,r]of Object.entries(n))e+=` ${t}: ${r};\n`;e+=`}
|
|
2
|
+
`}Ef.textContent=e,document.head.appendChild(Ef),Tf={}},remove:()=>{Ef&&Ef.parentElement&&Ef.parentElement.removeChild(Ef)}};function Of(e){let t=e.match(/::view-transition-(old|new|group-children|group|image-pair)\((.*?)\)/);return t?{layer:t[2],type:t[1]}:null}function kf(){return document.getAnimations().filter(e=>{let{effect:t}=e;return!!t&&t.target===document.documentElement&&t.pseudoElement?.startsWith(`::view-transition`)})}function Af(e,t){return t.has(e)&&Object.keys(t.get(e)).length>0}var jf=[`layout`,`enter`,`exit`,`new`,`old`],Mf=e=>e.split(` `).every(e=>parseFloat(e)===0),Nf={group:[`layout`],new:[`new`,`enter`],old:[`old`,`exit`]},Pf={new:{opacity:0,scale:.85},old:{opacity:1,scale:1}},Ff=.2;function If(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 ya([])))();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,Z(n)),b=Sf(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=Sf(a.get(n),l,u,v.get(n),c,d,h,f,p)}}else b=Sf(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=Rf(Ma(c,n),Ma(Lf(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&&=I(r.duration);let{delay:i=0,duration:a,ease:o}=Ai(r);return{delay:I(i),duration:a,ease:o}},w=new Map,T=e=>l.forEach((t,n)=>{let r=n,i=r.getBoundingClientRect?.();if(i&&i.height){let n=getComputedStyle(r),a={};for(let e of wo)a[e]=n[e];let o=w.get(t)??{};o[e]={width:i.width,height:i.height,radii:a},w.set(t,o)}}),E=()=>{h.clear();for(let e of _.keys())e!==`root`&&(g.get(e)??ee(e))&&h.add(e)},ee=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)>Ff},te=()=>{Af(`root`,n)||Df.set(`:root`,{"view-transition-name":`none`}),Df.set(`::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*)`,{"animation-timing-function":`linear !important`}),h.forEach(e=>{Df.set(`::view-transition-group(${e})`,{overflow:`clip`}),Df.set(`::view-transition-old(${e}), ::view-transition-new(${e})`,{width:`100%`,height:`100%`,"object-fit":`cover`})}),p.forEach(e=>{Df.set(`::view-transition-group-children(${e})`,{overflow:`clip`})}),Df.commit()},ne=()=>{Cf(u,d,f),Df.remove()},re=async()=>{await t(),b(`new`),T(`new`),E(),te()},D;try{b(`old`),T(`old`),te(),D=document.startViewTransition(re)}catch(e){return ne(),Promise.reject(e)}return D.finished.finally(ne),new Promise((e,t)=>{D.ready.then(()=>{let t=kf(),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 jf){if(!e[a]||a===`enter`&&!o||a===`exit`&&!s)continue;let l=wf(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`){Ve(!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=Rf(Ma(c,m),Ma(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)?Pf[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&&=I(f.duration),f.delay&&=I(f.delay),n.push(new ji({...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=Of(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 Sa(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:Di(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=I(r.duration)),r=Ai(r),d={delay:I(r.delay??0),duration:u&&i!==void 0?I(i):r.duration,easing:u?`linear`:Di(r.ease,r.duration)}}t.updateTiming(d),n.push(new Sa(e))}w.forEach((e,t)=>{if(!h.has(t))return;let{delay:r,duration:i,ease:a}=C(t);for(let o of wo){let s=e.old?.radii[o]||e.new?.radii[o]||`0px`,c=e.new?.radii[o]||e.old?.radii[o]||`0px`;Mf(s)&&Mf(c)||n.push(new ji({element:document.documentElement,name:o,pseudoElement:`::view-transition-group(${t})`,keyframes:[s,c],delay:r,duration:i,ease:a}))}}),e(new ya(n))}).catch(()=>D.updateCallbackDone.then(()=>e(new ya([])),t))})}function Lf(e,t){for(let n of Nf[t]??[]){let t=e?.[n]?.options;if(t)return t}}function Rf(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 zf=[],Bf=null;function Vf(){Bf=null;let[e]=zf;e&&Hf(e)}function Hf(e){Ee(zf,e),Bf=e,If(e).then(t=>(e.notifyReady(t),t.finished)).catch(t=>e.notifyReject(t)).finally(Vf)}function Uf(){for(let e=zf.length-1;e>=0;e--){let t=zf[e],{interrupt:n}=t.options;if(n===`immediate`){let n=zf.slice(0,e+1).map(e=>e.update),r=zf.slice(e+1);t.update=()=>{n.forEach(e=>e())},zf=[t,...r];break}}Bf&&zf[0]?.options.interrupt!==`immediate`||Vf()}function Wf(e){zf.push(e),Gs.render(Uf)}var Gf=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=F,this.notifyReject=F,this.readyPromise=new Promise((e,t)=>{this.notifyReady=e,this.notifyReject=t}),this.update=e,this.options={interrupt:`wait`,...t},this.readyPromise.catch(F),Wf(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 Kf(e,t={}){let n=new Gf(e,t);return zo(n),n}var qf=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function Jf(e,t){return e in t}var Yf=class extends eu{constructor(){super(...arguments),this.type=`object`}readValueFromInstance(e,t){if(Jf(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 $()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}},Xf=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`]),Zf=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Qf(e,t,n,r){nu(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Xf.has(n)?n:Qo(n),t.attrs[n])}function $f(e,t,n){let r=iu(e,t,n);for(let n in e)if(n!==`children`&&(Y(e[n])||Y(t[n]))){let t=K.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var ep=class extends tu{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=$}getBaseTargetFromProps(e,t){return q.has(t)?super.getBaseTargetFromProps(e,t)??Zr(t):e[t]}getDefaultValue(e){return q.has(e)?this.latestValues[e]??Zr(e):void 0}readValueFromInstance(e,t){if(q.has(t)){let e=zr(t);return e&&e.default||0}if(rs.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=Xf.has(t)?t:Qo(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return $f(e,t,n)}build(e,t,n){is(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Qf(e,t,n,r)}mount(e){this.isSVGTag=Zf(e.tagName),super.mount(e)}};function tp(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 np=[...Vl].reverse(),rp=e=>e?.out===!0?e:e?.out;function ip(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>ho(e,t,n))),n=op(),r=!0,i=!1;function a(a){let{props:o,parent:s,manuallyAnimateOnMount:c}=e,{initial:l}=o,u=r||i,d=[],f=(t=l)=>typeof t!=`boolean`&&Qa(e,Array.isArray(t)?t[0]:t,e.presenceContext?.custom)||void 0,p=new Map,m={},h=1/0,g=e;do g=g.props.inherit!==!1&&g.parent;while(g&&!g.isControllingVariants);let _=u&&rp(f(l??(g&&g.props.initial))?.transition);if(np.forEach((t,r)=>{let i=n[t],l=o[t],f=g&&g.props[t],v=l===void 0?Bl(f)||f===!1?f:void 0:l,y=Bl(v),b=t===a?i.isActive:null,x=y&&l===void 0&&!(u&&c);if(i.protectedKeys={...m},!i.isActive&&b===null||!v&&!i.prevProp||zl(v)||typeof v==`boolean`)return;if(b===!1&&(h=r),t===`exit`&&i.isActive&&b!==!0){m={...m,...i.prevResolvedValues};return}let S=ap(i.prevProp,v),C=S||y&&(b&&!x||r>h),w=!1,T=Array.isArray(v)?v:[v],E={},ee;if(b!==!1)for(let n of T){let{transition:r,transitionEnd:i,...a}=Qa(e,n,$a(e,t))||{};E={...E,...a,...i},ee=rp(r)||ee}let{prevResolvedValues:te}=i;for(let t in{...te,...E}){if(t in m)continue;let n=E[t],r=te[t],a=Array.isArray(n)&&Array.isArray(r)?!tp(n,r)||S:n!==r,o;if(a&&n==null)p.has(t)||p.set(t,i.prevOut);else if(a||n!==void 0&&p.has(t)){C=!0,o=p.get(t)||_,p.delete(t)&&(w=!0),i.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)}else i.protectedKeys[t]=!0;i.out[t]=o}if(i.prevProp=v,i.prevResolvedValues=E,i.prevOut=ee,i.isActive&&(m={...m,...E}),C&&(!(x&&S)||w))for(let n of T){let r={type:t};if(typeof n==`string`&&u&&c&&s?.enteringChildren){let t=Qa(s,n)?.transition?.delayChildren;r.delay=Ea(s.enteringChildren,e,t)}d.push({animation:n,options:r})}}),p.size){let t={},n=f(),r=n?.transition;p.forEach((i,a)=>{i&&(r={...r||e.getDefaultTransition(),[a]:i});let s=e.getValue(a);s&&(s.liveStyle=!0);let c=n&&!Array.isArray(l)?n[a]:void 0,u=e.getBaseTargetFromProps(o,a);t[a]=(c===void 0?u!==void 0&&!Y(u)?u:e.initialValues[a]===void 0?e.baseTarget[a]:void 0:c)??null}),r&&(t.transition=r),d.push({animation:t})}let v=u&&e.blockInitialAnimation||r&&!c&&(o.initial===!1||o.initial===o.animate);return r=i=!1,!v&&d.length?t(d):Promise.resolve()}function o(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=a(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:a,setActive:o,setAnimateFunction:n=>{t=n(e)},getState:()=>n,reset:()=>{n=op(),i=!0}}}function ap(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!tp(t,e):!1}function op(){let e={};for(let t of Vl)e[t]={isActive:t===`animate`,protectedKeys:{},needsAnimating:{},prevResolvedValues:{},out:{}};return e}var sp=Hl.length;function cp(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&cp(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<sp;n++){let r=Hl[n],i=e.props[r];(Bl(i)||i===!1)&&(t[r]=i)}return t}var lp=e=>!e.isLayoutDirty&&e.willUpdate(!1);function up(){let e=new Set,t=new WeakMap,n=()=>e.forEach(lp);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}}function dp(e,t,n){let{scope:r,updateDom:i,defaultOptions:a}=Du(e,t,n),o=new Eu(r,i,{...X.current?.transition,...a});return zo(o),o}var fp=W,pp=wn.reduce((e,t)=>(e[t]=e=>G(e),e),{}),mp=w({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function hp(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function gp(...e){return t=>{let n=!1,r=e.map(e=>{let r=hp(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():hp(e[t],null)}}}}function _p(...e){return se(gp(...e),e)}var vp=e=>{let{width:t,height:n}=e?.getBoundingClientRect()||{};return[t/e?.offsetWidth||1,n/e?.offsetHeight||1]},yp=e=>{let{left:t,top:n}=e.getBoundingClientRect(),r=e;for(;r=r.parentElement||r.parentNode?.host;){let{scrollLeft:e,scrollTop:i}=r;if(e||i){let[a,o]=vp(r);t+=e*a,n+=i*o}if(getComputedStyle(r).position===`fixed`)break}let[i,a]=vp(e.offsetParent);return[t/i,n/a]},bp=class extends l{getSnapshotBeforeUpdate(e){let t=this.props.getElement();if(Io(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=Io(e)&&e.offsetWidth||0,r=Io(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,a.point=yp(t)}return null}componentDidUpdate(){}render(){return this.props.children}};function xp({children:e,isPresent:t,anchorX:n,anchorY:r,root:a,pop:o,popNode:s}){let c=de(),l=A(null),u=A({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:d}=O(mp),f=_p(l,o===!1?void 0:e.props?.ref??e?.ref),p=()=>l.current||s?.current?.current,m=e=>{let{width:t,height:i,top:a,left:o,right:s,bottom:l,direction:d}=u.current,f=d===`rtl`,p=n===`left`?f?`right:${s}`:`left:${o}`:f?`left:${o}`:`right:${s}`,m=r===`bottom`?`bottom:${l}`:`top:${a}`;e?.insertRule(`[data-motion-pop-id="${c}"]{position:absolute!important;width:${t}px!important;height:${i}px!important;${p}px!important;${m}px!important}`)};return pe(()=>{let{width:e,height:n}=u.current,r=p();if(t||o===!1||!r||!e||!n)return;r.dataset.motionPopId=c;let i=r.ownerDocument,s=i.createElement(`style`);d&&(s.nonce=d);let l=a??i.head;l.appendChild(s),m(s.sheet);let f=0,h=0;return Gs.setup(()=>{let[e,t]=yp(r);f=u.current.point[0]-e,h=u.current.point[1]-t}),Gs.read(()=>{let{sheet:e}=s;if(!e||!f&&!h)return;let t=u.current;t.left+=f,t.right-=f,t.top+=h,t.bottom-=h,e.deleteRule(0),m(e)}),()=>{r.removeAttribute(`data-motion-pop-id`),l.contains(s)&&l.removeChild(s)}},[t]),i(bp,{isPresent:t,getElement:p,sizeRef:u,pop:o,children:o===!1?e:C(e,{ref:f})})}var Sp=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:o,mode:s,anchorX:c,anchorY:l,root:u})=>{let d=M(Cp),f=de(),p=A(),m=A(n),h=A(r);Ce(()=>{m.current=n,h.current=r});let g=!0,_=he(()=>(g=!1,{id:f,initial:t,isPresent:n,custom:a,onExitComplete:e=>{d.set(e,!0);for(let e of d.values())if(!e)return;r&&r()},register:(e,t)=>(d.set(e,!1),t&&t.parent?.presenceContext?.id!==f&&(p.current=t),()=>{d.delete(e),!m.current&&!d.size&&h.current?.()})}),[n,d,r]);return o&&g&&(_={..._}),he(()=>{d.forEach((e,t)=>d.set(t,!1))},[n]),k(()=>{!n&&!d.size&&r&&r()},[n]),e=i(xp,{pop:s===`popLayout`,isPresent:n,anchorX:c,anchorY:l,root:u,popNode:p,children:e}),i(we.Provider,{value:_,children:e})};function Cp(){return new Map}function wp(e=!0){let t=O(we);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=de();k(()=>{if(e)return i(a)},[e]);let o=se(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}function Tp(){return Ep(O(we))}function Ep(e){return e===null||e.isPresent}var Dp=e=>e.key||``;function Op(e){let t=[];return c.forEach(e,e=>{te(e)&&t.push(e)}),t}var kp=({children:e,custom:t,initial:n=!0,onExitComplete:a,presenceAffectsLayout:o=!0,mode:s=`sync`,propagate:c=!1,anchorX:l=`left`,anchorY:u=`top`,root:d})=>{let[f,p]=wp(c),m=he(()=>Op(e),[e]),h=c&&!f?[]:m.map(Dp),g=A(!0),_=M(()=>new Map),v=A(new Set),[y,b]=j(m),[x,S]=j(m);Ce(()=>{c&&!f&&!x.length&&p?.()},[f,c,x.length,p]);let C=A();k(()=>()=>{let e=C.current;C.current=void 0,e?.()},[x]),Ce(()=>{g.current=!1;for(let e=0;e<x.length;e++){let t=Dp(x[e]);h.includes(t)?(_.delete(t),v.current.delete(t)):_.get(t)!==!0&&_.set(t,!1)}},[x,h.length,h.join(`-`)]);let w=[];if(m!==y){let e=[...m],t=0;for(let n of x){let r=h.indexOf(Dp(n));r===-1?(e.splice(t++,0,n),w.push(n)):t=r+w.length+1}return w.every(e=>_.get(Dp(e)))?e=m:s===`wait`&&(e=w),S(Op(e)),b(m),null}let{forceRender:T}=O(xe);return i(r,{children:x.map(e=>{let r=Dp(e),y=c&&!f?!1:m===x||h.includes(r);return i(Sp,{isPresent:y,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:s,root:d,onExitComplete:y?void 0:()=>{if(v.current.has(r))return;if(_.has(r))v.current.add(r),_.set(r,!0);else return;let e=!0;_.forEach(t=>{t||(e=!1)}),e&&(T?.(),b([]),c&&p?.(),C.current=a)},anchorX:l,anchorY:u,children:e},r)})})},Ap=w(null);function jp(){let e=A(!1);return Ce(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Mp(){let e=jp(),[t,n]=j(0),r=se(()=>{e.current&&n(t+1)},[t]);return[se(()=>W.postRender(r),[r]),t]}var Np=e=>e===!0,Pp=e=>Np(e===!0)||e===`id`,Fp=({children:e,id:t,inherit:n=!0})=>{let r=O(xe),a=O(Ap),[o,s]=Mp(),c=A(null),l=r.id||a;c.current===null&&(Pp(n)&&l&&(t=t?l+`-`+t:l),c.current={id:t,group:Np(n)&&r.group||up()});let u=he(()=>({...c.current,forceRender:o}),[s]);return i(xe.Provider,{value:u,children:e})},Ip=w({strict:!1}),Lp={animation:[`variants`,...Vl],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`]},Rp=!1;function zp(){if(Rp)return;let e={};for(let t in Lp)e[t]={isEnabled:e=>Lp[t].some(t=>!!e[t])};Ql(e),Rp=!0}function Bp(){return zp(),$l()}function Vp(e){let t=Bp();for(let n in e)t[n]={...t[n],...e[n]};Ql(t)}function Hp({children:e,features:t,strict:n=!1}){let[,r]=j(!Up(t)),a=A(void 0);if(!Up(t)){let{renderer:e,...n}=t;a.current=e,Vp(n)}return k(()=>{Up(t)&&t().then(({renderer:e,...t})=>{Vp(t),a.current=e,r(!0)})},[]),i(Ip.Provider,{value:{renderer:a.current,strict:n},children:e})}function Up(e){return typeof e==`function`}function Wp({children:e,...t}){let n=O(mp);t={...n,...t},t.transition=ja(t.transition,n.transition),t.isStatic=M(()=>t.isStatic);let r=he(()=>t,[JSON.stringify(t.transition),t.transformPagePoint,t.reducedMotion,t.skipAnimations,t.isValidProp]);return i(mp.Provider,{value:r,children:e})}var Gp=w({});function Kp(e,t){if(Ul(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Bl(t)?t:void 0,animate:Bl(n)?n:void 0}}return e.inherit===!1?{}:t}function qp(e){let{initial:t,animate:n}=Kp(e,O(Gp));return he(()=>({initial:t,animate:n}),[Jp(t),Jp(n)])}function Jp(e){return Array.isArray(e)?e.join(` `):e}var Yp=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Xp(e,t,n){for(let r in t)!Y(t[r])&&!ru(r,n)&&(e[r]=t[r])}function Zp({transformTemplate:e},t){return he(()=>{let n=Yp();return $o(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Qp(e,t){let n=e.style||{},r={};return Xp(r,n,e),Object.assign(r,Zp(e,t)),r}function $p(e,t){let n={},r=Qp(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 em=()=>({...Yp(),attrs:{}});function tm(e,t,n,r){let i=he(()=>{let n=em();return is(n,t,Zf(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};return Xp(t,e.style,e),{...i,style:{...t,...i.style}}}return i}var nm=new Set(`animate.exit.variants.initial.style.values.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 rm(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||nm.has(e)}function im(e,t){return e.startsWith(`on`)?!rm(e):t?.(e)??!rm(e)}function am(e,t,n,r){let i={};for(let a in e)a===`values`&&typeof e.values==`object`||Y(e[a])||(im(a,r)||n===!0&&rm(a)||!t&&!rm(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]);return i}var om=[`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 sm(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(om.indexOf(e)>-1||/[A-Z]/u.test(e))}function cm(e,t,n,{latestValues:r},i,a=!1,o,s){let c=(o??sm(e)?tm:$p)(t,r,i,e),l=am(t,typeof e==`string`,a,s),d=e===u?{}:{...l,...c,ref:n},{children:f}=t,p=he(()=>Y(f)?f.get():f,[f]);return T(e,{...d,children:p})}function lm({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:um(n,r,i,e),renderState:t()}}function um(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=nc(a[e]);let{initial:o,animate:s}=e,c=Ul(e),l=Wl(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`&&!zl(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Za(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 dm=e=>(t,n)=>{let r=O(Gp),i=O(we),a=()=>lm(e,t,r,i);return n?a():M(a)},fm=dm({scrapeMotionValuesFromProps:iu,createRenderState:Yp}),pm=dm({scrapeMotionValuesFromProps:$f,createRenderState:em}),mm=Symbol.for(`motionComponentSymbol`);function hm(e,t,n){let r=A(n);pe(()=>{r.current=n});let i=A(null);return se(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 gm=w({});function _m(e,t,n,r,i,a){let{visualElement:o}=O(Gp),s=O(Ip),c=O(we),l=O(mp),u=l.reducedMotion,d=l.skipAnimations,f=A(null),p=A(!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=O(gm);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&i.create(m,n,h),pe(()=>{m&&m.props!==n&&m.update(n,c)});let g=n[co],_=A(!!g&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return Ce(()=>{p.current&&m&&(m.animationState?.animateChanges(),m.enteringChildren=void 0)},[]),Ce(()=>{p.current=!0,m&&(window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),_.current&&m.animationState&&m.animationState.animateChanges())}),k(()=>{m&&(!_.current&&m.animationState&&m.animationState.animateChanges(),_.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),!1),m.enteringChildren=void 0)}),m}function vm(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&Vp(r);let s=n?n===`svg`:sm(e),c=s?pm:fm;function l(n,l){let u,d=ym(n);M(()=>!!Il.current?.sharedNodes.get(d)?.lead&&n.initial)&&(n={...n,initial:!1});let f={...O(mp),...n,layoutId:d},{isStatic:p,isValidProp:m}=f,h=qp(n),g=c(n,p);if(!p&&typeof window<`u`){bm(f,r);let t=xm(f);h.visualElement=_m(e,g,f,o,t.ProjectionNode,s),(t.isEnabled||h.visualElement?.projection?.options.layoutId)&&(u=t.MeasureLayout)}return a(Gp.Provider,{value:h,children:[u&&h.visualElement?i(u,{visualElement:h.visualElement,...f}):null,cm(e,n,hm(g,h.visualElement,l),g,p,t,s,m)]})}l.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let u=ee(l);return u[mm]=e,u}function ym({layoutId:e}){let t=O(xe).id;return t&&e!==void 0?t+`-`+e:e}function bm(e,t){O(Ip).strict}function xm(e){let{drag:t,layout:n}=Bp();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:r.MeasureLayout,isEnabled:t?.isEnabled(e)||n?.isEnabled(e),ProjectionNode:r.ProjectionNode}}function Sm(e,t){if(typeof Proxy>`u`)return vm;let n=new Map,r=(n,r)=>vm(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,vm(a,void 0,e,t)),n.get(a))})}var Cm=Sm(),wm=(e,t)=>t.isSVG??sm(e)?new ep(t):new ou(t,{allowProjection:e!==u}),Tm=class extends qf{constructor(e){super(e),e.animationState||=ip(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();zl(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){this.node.getProps().animate!==this.node.prevProps?.animate&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Em=0,Dm={animation:{Feature:Tm},exit:{Feature:class extends qf{constructor(){super(...arguments),this.id=Em++}update(){let{presenceContext:e,animationState:t}=this.node;if(!e||!t)return;let{isPresent:n,onExitComplete:r}=e;if(n===!this.exit)return;if(n){if(this.exit===!0){let{initial:e}=this.node.getProps();if(e&&!Array.isArray(e)){let{transition:t,transitionEnd:n,...r}=Qa(this.node,e)||{};for(let e in r)this.node.getValue(e)?.jump(r[e])}this.node.blockInitialAnimation=!1,t.reset(),t.animateChanges()}else t.setActive(`exit`,!1);this.exit=void 0;return}let i=this.exit=t.setActive(`exit`,!0);r&&i.then(()=>{this.exit===i&&(this.exit=!0,r(this.id))})}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id,this.node)),this.update()}unmount(){}}}},Om=class extends qf{constructor(e){super(e),this.removeGroupControls=F,this.removeListeners=F,this.controls=new Cd(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||F}update(){let{dragControls:e,drag:t}=this.node.getProps(),{dragControls:n,drag:r}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls))),r&&!t&&this.controls.stop(void 0,void 0,r)}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},km=e=>(t,n)=>{e&&W.update(()=>e(t,n),!1,!0)},Am=class extends qf{constructor(){super(...arguments),this.removePointerDownListener=F}onPointerDown(e){this.session=new Yu(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:this.node.current?.ownerDocument.defaultView})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:km(e),onStart:km(t),onMove:km(n),onEnd:(e,t)=>{delete this.session,r&&W.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=ju(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session?.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session?.end()}},jm=!1,Mm=({layout:e,layoutDependency:t,layoutAnchor:n})=>({layout:e,layoutDependency:t,layoutAnchor:n,animationType:typeof e==`string`?e:`both`}),Nm=(e,t)=>{let{snapshot:n}=e,r=e.getStack();r?.remove(e);let i=r?.lead;if(r?.prevLead===e&&i.resumeFrom===e&&(i.resumeFrom=i.currentAnimation=e.resumingFrom=void 0),e.options.layoutId=t,!t)e.needsShow=!0;else return e.root.registerSharedNode(t,e),()=>{let{resumeFrom:t}=e;t?.isPresent!==!1&&e.getStack().members.includes(t)&&(t.hide(),e.resumeFrom=void 0,e.snapshot=n)}},Pm=class extends l{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group?.add(i),r&&n?.register?.(i),jm&&i.root.didUpdate(),i.options.layoutId!==r&&Nm(i,r)?.(),i.addEventListener(`animationComplete`,()=>this.safeToRemove()),i.setOptions({...i.options,...Mm(this.props),onExitComplete:()=>this.safeToRemove()})),tl.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,layoutId:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:o}=r;return o&&(o.isPresent=a,this.takeOver=e.layoutId===n?void 0:(o.willUpdate(),Nm(o,n)),o.setOptions({...o.options,...Mm(this.props)}),jm=!0,i||e.layoutDependency!==t||t===void 0||e.isPresent!==a?o.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?o.promote():o.relegate()||W.postRender(()=>{o.getStack()?.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(this.takeOver?.(),e.root.didUpdate(),Gs.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;jm=!0,r&&(r.scheduleCheckAfterUnmount(),t.group?.remove(r),n?.deregister?.(r))}safeToRemove(){this.props.safeToRemove?.()}render(){return null}};function Fm(e){let[t,n]=wp(),r=O(xe);return i(Pm,{...e,layoutGroup:r,switchLayoutGroup:O(gm),isPresent:t,safeToRemove:n})}var Im={pan:{Feature:Am},drag:{Feature:Om,ProjectionNode:Ll,MeasureLayout:Fm}};function Lm(e,t,n,r){let{props:i}=e,a=`while`+n;e.animationState&&i[a]&&e.animationState.setActive(a,r===`Start`);let o=i[`on`+n+r];o&&W.postRender(()=>o(t,ku(t)))}var Rm=class extends qf{mount(){let{current:e}=this.node;e&&(this.unmount=Ld(e,(e,t)=>(Lm(this.node,t,`Hover`,`Start`),e=>Lm(this.node,e,`Hover`,`End`))))}unmount(){}},zm=class extends qf{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=Fe(Pl(this.node.current,`focus`,()=>this.onFocus()),Pl(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Bm(e,t,n){e.current instanceof HTMLButtonElement&&e.current.disabled||Lm(e,t,`Tap`,n)}var Vm=class extends qf{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Gd(e,(e,t)=>(Bm(this.node,t,`Start`),(e,{success:t})=>Bm(this.node,e,t?``:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},Hm=new WeakMap,Um=new WeakMap,Wm=e=>{let t=Hm.get(e.target);t&&t(e)},Gm=e=>{e.forEach(Wm)};function Km({root:e,...t}){let n=e||document;Um.has(n)||Um.set(n,{});let r=Um.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Gm,{root:e,...t})),r[i]}function qm(e,t,n){let r=Km(t);return Hm.set(e,n),r.observe(e),()=>{Hm.delete(e),r.unobserve(e)}}var Jm={some:0,all:1},Ym=class extends qf{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:Jm[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=qm(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(Xm(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function Xm({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var Zm={inView:{Feature:Ym},tap:{Feature:Vm},focus:{Feature:zm},hover:{Feature:Rm}},Qm={layout:{ProjectionNode:Ll,MeasureLayout:Fm}},$m=Sm(Object.assign({},Dm,Zm,Im,Qm),wm);function eh(e){return k(()=>()=>e(),[])}var th=Object.assign({renderer:wm},Dm,Zm),nh=Object.assign({},th,Im,Qm),rh={renderer:wm,...Dm};function ih(e,t,n){pe(()=>e.on(t,n),[e,t,n])}var ah=50,oh=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),sh=()=>({time:0,x:oh(),y:oh()}),ch={x:{length:`Width`,position:`Left`},y:{length:`Height`,position:`Top`}},lh=new WeakMap;function uh(e,t){let n=e===document.scrollingElement,r=n&&document.body||e,i=lh.get(r);i||lh.set(r,i=getComputedStyle(r));let{writingMode:a,flexDirection:o}=i,s=t===`x`!==/^[vs]/.test(a);return(s?i.direction===`rtl`!=(a===`sideways-lr`):a.endsWith(`rl`))!==(!n&&i.display.includes(`flex`)&&(s===(o[0]===`c`)?i.flexWrap:o).endsWith(`reverse`))}function dh(e,t,n,r){let i=n[t],{length:a,position:o}=ch[t],s=i.current,c=n.time,l=e[`scroll${o}`];i.current=uh(e,t)?-l||0:l,i.containerLength=e[`client${a}`],i.targetLength=e[`scroll${a}`],i.scrollLength=i.targetLength-i.containerLength,i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=N(0,1,Ie(0,i.scrollLength,i.current));let u=r-c;i.velocity=u>ah?0:Re(i.current-s,u)}function fh(e,t,n){for(let r in ch)dh(e,r,t,n);t.time=n}var ph={start:0,center:.5,end:1};function mh(e,t,n=0){let r=0;if(e in ph&&(e=ph[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 hh=[0,0];function gh(e,t,n,r){let i=Array.isArray(e)?e:hh,a=0,o=0;return typeof e==`number`?i=[e,e]:typeof e==`string`&&(e=e.trim(),i=e.includes(` `)?e.split(` `):[e,ph[e]?e:`0`]),a=mh(i[0],n,r),o=mh(i[1],t),a-o}var _h={All:[[0,0],[1,1]]};function vh(e,t){let n=e.length-1;if(n<1)return 0;let r=e[0]>e[n],i=t=>e[r?n-t:t];if(e[0]===e[1]&&t<i(0))return+!!r;let a=0;for(;a<n-1&&t>=i(a+1);)a++;let o=(a+Ie(i(a),i(a+1),t))/n;return r?1-o:o}function yh(e,{offset:t=_h.All}){for(let n in ch){let r=e[n];r.offset.length=0;for(let e=0;e<t.length;e++)r.offset[e]=gh(t[e],r.containerLength,r.targetLength,r.targetOffset);r.progress=N(0,1,vh(r.offset,r.current))}}function bh(e,t){let n={x:0,y:0},r=e;for(;r&&r!==t;)if(Io(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}function xh(e){return`getBBox`in e&&e.tagName!==`svg`?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function Sh(e,t,n,r={}){let{target:i}=r,a=i||r.offset;return{measure:t=>{if(a){n.time=t.time;for(let e in ch){let r=e,{offset:i}=n[r];Object.assign(n[r],t[r]),n[r].offset=i}if(i&&i!==e){let t=bh(i,e),r=xh(i);n.x.targetOffset=t.x,n.y.targetOffset=t.y,n.x.targetLength=r.width,n.y.targetLength=r.height}yh(n,r)}},notify:e=>t(a?n:e)}}var Ch=new WeakMap,wh=new WeakMap,Th=new WeakMap,Eh=new WeakMap,Dh=e=>e===document.scrollingElement?window:e;function Oh(e,{container:t=document.scrollingElement,trackContentSize:n=!1,...r}={}){if(!t)return F;let i=Th.get(t);i||(i=new Set,Th.set(t,i));let a=Sh(t,e,sh(),r);if(i.add(a),!Ch.has(t)){let e=sh(),n=()=>{fh(t,e,R.timestamp);for(let t of i)t.measure(e);W.preUpdate(r)},r=()=>{for(let t of i)t.notify(e)},a=()=>W.read(n);Ch.set(t,a);let o=Dh(t);window.addEventListener(`resize`,a),t!==document.documentElement&&wh.set(t,Gu(t,a)),o.addEventListener(`scroll`,a),a()}if(n&&!Eh.has(t)){let e=Ch.get(t),n={width:t.scrollWidth,height:t.scrollHeight},r=W.read(()=>{let r=t.scrollWidth,i=t.scrollHeight;(n.width!==r||n.height!==i)&&(e(),n.width=r,n.height=i)},!0);Eh.set(t,r)}let o=Ch.get(t);return W.read(o,!1,!0),()=>{G(o);let e=Th.get(t);if(!e||(e.delete(a),e.size))return;Th.delete(t);let n=Ch.get(t);Ch.delete(t),n&&(Dh(t).removeEventListener(`scroll`,n),wh.get(t)?.(),window.removeEventListener(`resize`,n));let r=Eh.get(t);r&&(G(r),Eh.delete(t))}}function kh(e){return typeof window>`u`?!1:e?Ci():Si()}var Ah=new Map;function jh({container:e,target:t,axis:n}){let r=Ah.get(e);r||(r=new Map,Ah.set(e,r));let i=t??`self`,a=r.get(i);return a||(a={},r.set(i,a)),a[n]||(a[n]=t?new ViewTimeline({subject:t,axis:n}):new ScrollTimeline({source:e,axis:n}))}var Mh=e=>{if(/v/u.test(e))return[];let t=gh(e,0,0,0);return[gh(e,0,1,0)-t,t-gh(e,1,0,0),t]},Nh=([e,t,n])=>!n&&(t===0||t===1)&&`${t?`entry`:`exit`}-crossing ${e*100}%`;function Ph(e=_h.All){if(e.length!==2)return;let[t,n]=e.map(Mh),r=[Nh(t),Nh(n)],i=n[0]-t[0],a=t[1]-n[1];if(r[0]&&r[1]&&(i||a))return{points:r,a:i,b:a,cover:!t[0]&&i===1&&a===1}}function Fh(e,t){let{target:n,container:r,axis:i}=t,a=n&&Ph(t.offset),o=kh(n)&&(n?!!a:!t.offset),s=new Map,c=new Set,l,u=!1,d=(e,t)=>{let[n,r]=a.points;t.effect.updateTiming({direction:u?e===`normal`?`reverse`:`alternate-reverse`:e}),Object.assign(t,{rangeStart:u?r:n,rangeEnd:u?n:r}),t.play()},f=[e.attachTimeline({get timeline(){return o?jh(t):void 0},onAttach:a&&(e=>{let t=e.effect.getTiming().direction;s.set(e,t),d(t,e)}),observe:e=>(e.pause(),c.add(e),l||=Oh(e=>{c.forEach(t=>{t.time=t.iterationDuration*e[i].progress})},t),()=>c.delete(e))})];if(o&&a){let{a:e,b:t}=a,o=i===`y`?`clientHeight`:`clientWidth`,c=()=>{u!==(u=e*n[o]+t*r[o]<0)&&s.forEach(d)};c(),e*t<0&&f.push(Gu(c),Gu([n,r],c))}return()=>{f.forEach(e=>e()),l?.()}}function Ih(e,{axis:t=`y`,source:n,container:r=document.scrollingElement,...i}={}){if(!r)return F;let a={axis:t,container:n||r,...i};if(typeof e==`function`){let n=Bo(e);return Ro(Oh(e=>n(e[t].progress,e),a))}return Ro(Fh(e,a))}var Lh=()=>({scrollX:J(0),scrollY:J(0),scrollXProgress:J(0),scrollYProgress:J(0),scrollXLength:J(0),scrollYLength:J(0)}),Rh=e=>e?!e.current:!1;function zh(e,t,n,r){return{factory:i=>{let a,o=()=>{Rh(n)||Rh(r)?Gs.read(o):a=Ih(i,{...t,axis:e,container:n?.current||void 0,target:r?.current||void 0})};return Gs.read(o),()=>{Ks(o),a?.()}},times:[0,1],keyframes:[0,1],ease:e=>e,duration:1}}function Bh(e,t){return typeof window>`u`?!1:e?Ci()&&!!Ph(t):Si()&&!t}function Vh({container:e,target:t,...n}={}){let r=M(Lh);Bh(t,n.offset)&&(r.scrollXProgress.accelerate=zh(`x`,n,e,t),r.scrollYProgress.accelerate=zh(`y`,n,e,t));let i=A(null),a=A(!1),o=se(()=>(i.current=Ih((e,{x:t,y:n})=>{r.scrollX.set(t.current),r.scrollXProgress.set(t.progress),r.scrollXLength.set(t.scrollLength),r.scrollY.set(n.current),r.scrollYProgress.set(n.progress),r.scrollYLength.set(n.scrollLength)},{...n,container:e?.current||void 0,target:t?.current||void 0}),()=>{i.current?.()}),[e,t,JSON.stringify(n.offset)]);return Ce(()=>{if(a.current=!1,Rh(e)||Rh(t))a.current=!0;else return o()},[o]),k(()=>{if(!a.current)return;let n,r=()=>{let r=Rh(e),i=Rh(t);!r&&!i&&(n=o())};return Gs.read(r),()=>{Ks(r),n?.()}},[o]),r}function Hh(e){return Vh({container:e})}function Uh(){return Vh()}function Wh(e){let t=M(()=>J(e)),{isStatic:n}=O(mp);if(n){let[,n]=j(e);k(()=>t.on(`change`,n),[])}return t}function Gh(e,t){let n=Wh(t()),r=()=>n.set(t());return r(),Ce(()=>{let t=()=>W.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return r(),()=>{n.forEach(e=>e()),G(r)}}),n}function Kh(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+=Y(n)?n.get():n)}return r}return Gh(t.filter(Y),r)}function qh(e){ka.current=[],e();let t=Gh(ka.current,e);return ka.current=void 0,t}function Jh(e,t={}){return Yh(e,t,lf)}function Yh(e,t,n){let{isStatic:r}=O(mp),i=()=>Y(e)?e.get():e;if(r)return qh(i);let a=Wh(i());return pe(()=>n(a,e,t),[a,JSON.stringify(t)]),a}function Xh(e,t={}){return Yh(e,t,mf)}function Zh(e){let t=A(0),{isStatic:n}=O(mp);k(()=>{if(n)return;let r=({timestamp:n,delta:r})=>{t.current||=n,e(n-t.current,r)};return W.update(r,!0),()=>G(r)},[e])}function Qh(){let e=Wh(0);return Zh(t=>e.set(t)),e}function $h(e,t,n,r){if(typeof e==`function`)return qh(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return tg(e,t,n,r);let i=typeof t==`function`?t:tf(t,n,r),a=Array.isArray(e)?eg(e,i):eg([e],([e])=>i(e)),o=Array.isArray(e)?void 0:e.accelerate;if(o&&!o.isTransformed&&typeof t!=`function`&&Array.isArray(n)&&r?.clamp!==!1&&!r?.mixer){let e=r?.ease;a.accelerate={...o,times:[0,...t,1],keyframes:[n[0],...n,n[n.length-1]],isTransformed:!0,...e?{ease:Array.isArray(e)?[e[0],...e]:e}:{}}}return a}function eg(e,t){let n=M(()=>[]);return Gh(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function tg(e,t,n,r){let i=M(()=>Object.keys(n)),a=M(()=>({}));for(let o of i)a[o]=$h(e,t,n[o],r);return a}function ng(e){let t=Wh(e.getVelocity()),n=()=>{let r=e.getVelocity();t.set(r),r&&W.update(n)};return ih(e,`change`,()=>{W.update(n,!1,!0)}),t}var rg=class extends Aa{constructor(){super(...arguments),this.isEnabled=!1}add(e){(q.has(e)||Bi.has(e))&&(this.isEnabled=!0,this.update())}update(){this.set(this.isEnabled?`transform`:`auto`)}};function ig(){return M(()=>new rg(`auto`))}function ag(){!ql.current&&Yl();let[e]=j(Kl.current);return e}function og(){let e=ag(),{reducedMotion:t}=O(mp);return t===`never`?!1:t===`always`||e}function sg(e){e.values.forEach(e=>e.stop())}function cg(e,t){[...t].reverse().forEach(n=>{let r=e.getVariant(n);r&&io(e,r),e.variantChildren&&e.variantChildren.forEach(e=>{cg(e,t)})})}function lg(e,t){if(Array.isArray(t))return cg(e,t);if(typeof t==`string`)return cg(e,[t]);io(e,t)}function ug(){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(ho(e,t,{transitionOverride:n}))}),Promise.all(r)},set(t){return e.forEach(e=>{lg(e,t)})},stop(){e.forEach(e=>{sg(e)})},mount(){return()=>{t.stop()}}};return t}function dg(e){return typeof e==`object`&&!Array.isArray(e)}function fg(e,t,n,r){return e==null?[]:typeof e==`string`&&dg(t)?Z(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function pg(e,t,n){return e*(t+1)+n*t}function mg(e,t){if(t.has(e))return t.get(e);let[,n,r]=e.match(/^(.+?)([+-][\d.]+)$/)||[];return t.has(n)?Math.max(0,t.get(n)+parseFloat(r)):void 0}function hg(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))):mg(t,r)??e}function gg(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(Ee(e,i),r--)}}function _g(e,t,n,r,i,a){gg(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:U(i,a,r[o]),easing:at(n,o)})}function vg(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function yg(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var bg=`easeInOut`,xg=20;function Sg(e,{defaultTransition:t={},...n}={},r,i,a){let o=t.duration||.3,s=new Map,c=new Map,l={},u=new Map,d=0,f=0,p=0,m=(e,n)=>{let a=n,s=e=>typeof e==`number`?n+e:hg(f,e,d,u);for(let n=0;n<e.length;n++){let h=e[n];if(typeof h==`string`){u.set(h,f);continue}if(!Array.isArray(h)){let e=h.at===void 0?f:s(h.at);`sequence`in h?(d=f=e,f=m(h.sequence,e),d=e,a=Math.max(a,f)):u.set(h.name,e);continue}let[g,_,v={}]=h;v.at!==void 0&&(f=s(v.at));let y=0,b=(e,n,r,a=0,s=0)=>{let c=Tg(e),{delay:l=0,times:u=lr(c),type:d=t.type||`keyframes`,repeat:m,repeatType:h,repeatDelay:g=0,..._}=n,{ease:v=t.ease||`easeOut`,duration:b}=n;r.mixer||=n.mixer;let x=typeof l==`function`?l(a,s):l,S=c.length,C=ki(d)?d:i?.[d||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&Og(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,..._};b!==void 0&&(n.duration=I(b));let r=Nn(n,e,C);v=r.ease,b=r.duration}b??=o;let w=f+x;u.length===1&&u[0]===0&&(u[1]=1);let T=u.length-c.length;if(T>0&&cr(u,T),c.length===1&&c.unshift(null),m&&m<xg){let e=b>0?g/b:0;b=pg(b,m,g);let t=[...c],n=[...u];v=Array.isArray(v)?[...v]:[v];let r=[...v],i=h===`reverse`||h===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),h===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?Ke(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),v.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),v.push(e===0?`linear`:at(f,e-1))}vg(u,m,e)}let E=w+b;_g(r,c,v,u,w,E),y=Math.max(x+b,y),p=Math.max(E,p)};if(Y(g)){let e=Cg(g,c);b(_,v,wg(`default`,e))}else{let e=fg(g,_,r,l),t=e.length;for(let n=0;n<t;n++){_=_,v=v;let r=e[n],i=Cg(r,c);for(let e in _)b(_[e],Eg(v,e),wg(e,i),n,t)}}d=f,f+=y,a=Math.max(a,f)}return a};return m(e,0),a&&(a.duration=p,a.labels=u),c.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(yg);let o=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];o.push(n),c.push(Ie(0,p,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),o.unshift(o[0]),l.unshift(bg)),c[c.length-1]!==1&&(c.push(1),o.push(null)),s.has(r)||s.set(r,{keyframes:{},transition:{}});let u=s.get(r);u.keyframes[i]=o;let{type:d,...f}=t;u.transition[i]={...f,duration:p,ease:l,times:c,mixer:a.mixer||t.mixer,...n}}}),s}function Cg(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function wg(e,t){return t[e]||(t[e]=[]),t[e]}function Tg(e){return Array.isArray(e)?e:[e]}function Eg(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var Dg=e=>typeof e==`number`,Og=e=>e.every(Dg);function kg(e,t){return Y(e)||typeof e==`number`||typeof e==`string`&&!dg(t)}function Ag(e,t,n,r){let i=[];if(kg(e,t))i.push(Js(e,dg(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=fg(e,t,r),o=a.length;for(let e=0;e<o;e++){let r=a[e],s={...n};`delay`in s&&typeof s.delay==`function`&&(s.delay=s.delay(e,o)),r instanceof Element?i.push(...Vs(r,t,s,Rl.get(r))):i.push(...Po(Mo(r)??Ws,r,t,s))}}return i}function jg(e,t,n,r){let i=[];return Sg(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=J(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:ir},r).forEach(({keyframes:e,transition:t},n)=>{i.push(...Ag(n,e,t))}),i}var Mg=0;function Ng(e,t){let n=[...e],r=typeof n[0]==`function`?Math.max(1,n.length-1):2;return n[r]={...n[r],at:t},n}var Pg=(e,t)=>t===void 0?e:{name:e,at:t};function Fg(e){e.pause(),e.time=0,e.stop()}var Ig=class e{constructor(e=[],t={},n){this.options=t,this.entries=[],this.repeatIndex=0,this.prevTime=0,this.markers=[],this.labels=new Map,this.totalDuration=0,this.isDirty=!1,this.isDone=!1,this.isRebuilding=!1,this.playbackSpeed=1,this.motionScope=X.current,this.isKilled=!1,this.isWrapped=!1,this.stop=()=>{this.flush(),this.group?.stop()},this.isPaused=t.autoplay===!1,this.newFinished(),e.forEach(e=>this.add(e)),n?(this.isDirty=!1,this.isWrapped=!0,this.group=new xa(n),this.watch()):(this.invalidate(),this.flush());let{scope:r}=t;r&&(r.animations.push(this),this.finished.then(()=>Ee(r.animations,this)))}add(t,n){return t instanceof e&&t.adopt(this),this.push({item:t,at:n})}call(e,t){return this.push({item:e,at:t,marker:{name:`_m`+Mg++,time:0,callback:e}})}addPause(e,t){return this.push({item:t||{},at:e,marker:{name:`_m`+Mg++,time:0,callback:t,pause:!0}})}move(e,t){return this.entries.forEach(n=>{n.item===e&&(n.at=t)}),this.invalidate()}remove(t){return t instanceof e&&(t.parent=void 0),this.entries=this.entries.filter(e=>e.item!==t),this.invalidate()}clear(){return this.entries=[],this.invalidate()}getLabelTime(e){return this.flush(),this.labels.get(e)}seek(e){return this.time=this.resolve(e),this}playTo(e){let t=this.resolve(e),n=Math.abs(this.speed);return this.speed=t<this.time?-n:n,this.stopAt=t,this.clock||this.invalidate(),this.play(),this}reverse(){return this.speed=-this.speed,this.play(),this}get progress(){return this.duration?this.time/this.duration:0}set progress(e){this.time=e*this.duration}get time(){return this.active()?.time??0}set time(e){this.flush(),this.prevTime=e,this.group&&(this.group.time=e),this.repeatIndex=this.currentRepeat()}get speed(){return this.playbackSpeed}set speed(e){this.playbackSpeed=e,this.group&&(this.group.speed=e)}get duration(){return this.flush(),this.isWrapped?this.group.duration:this.totalDuration}get iterationDuration(){return this.flush(),this.isWrapped?this.group.iterationDuration:this.totalDuration}get state(){return this.active()?.state??`idle`}get startTime(){return this.active()?.startTime??null}play(){this.flush(),this.isPaused=!1,this.group?.play(),this.isDone&&(this.newFinished(),this.watch())}pause(){this.flush(),this.isPaused=!0,this.group?.pause()}cancel(){this.flush(),this.group?.cancel()}complete(){this.flush(),this.group?.complete()}attachTimeline(e){return this.flush(),this.scrollTimeline=e,this.detachScroll=this.group?.attachTimeline(e),()=>{this.scrollTimeline=void 0,this.detachScroll?.()}}then(e,t){return this.finished.then(e,t)}active(){return this.flush(),this.group?.animations.length?this.group:void 0}push(e){return this.entries.push(e),this.invalidate()}invalidate(){return this.parent?this.parent.invalidate():this.isDirty||(this.isDirty=!0,queueMicrotask(()=>this.flush())),this}flush(){this.isDirty&&!this.parent&&!this.isKilled&&this.build()}adopt(e){this.group&&=(Fg(this.group),void 0),this.isDirty=!1,this.parent=e}build(){this.isDirty=!1,this.isWrapped=!1;let e=this.group,t=0;e&&(this.isRebuilding=!0,this.scrollTimeline?(this.detachScroll?.(),e.cancel()):(t=e.animations.length?e.time:0,Fg(e)),this.isRebuilding=!1);let{defaultTransition:n,onComplete:r,onUpdate:i,onRepeat:a,onReverseComplete:o,autoplay:s,scope:c,...l}=this.options,u={};c?.reduceMotion!==void 0&&(u.reduceMotion=c.reduceMotion),c?.skipAnimations!==void 0&&(u.skipAnimations=c.skipAnimations),Object.assign(u,l);let d=new Map,f={},p=X.current;X.current=this.motionScope;let m;try{m=jg(this.toSequence(d),{defaultTransition:n,...u},c,f)}finally{X.current=p}let h=f.labels,g=u.duration??f.duration,_=f.duration?g/f.duration:1;if(h.forEach((e,t)=>h.set(t,e*_)),this.markers=[],d.forEach((e,t)=>{e.time=h.get(t),h.delete(t),g=Math.max(g,e.time),this.markers.push(e)}),this.markers.sort((e,t)=>e.time-t.time),this.labels=h,this.totalDuration=g,this.clock=this.clockAnimation=void 0,this.markers.length||this.stopAt!==void 0||i||a){let e=this.clock=J(0);e.on(`change`,t=>e===this.clock&&this.onClock(t)),m.unshift(this.clockAnimation=Js(e,[0,g],{...u,duration:g,ease:`linear`}))}let v=this.group=new xa(m);t=Math.min(t,g),this.isDone&&t<g&&this.newFinished(),this.scrollTimeline?this.detachScroll=v.attachTimeline(this.scrollTimeline):(v.speed=this.playbackSpeed,this.isPaused&&v.pause(),t&&(v.time=t)),this.repeatIndex=this.currentRepeat(),this.prevTime=t||-1,this.watch()}toSequence(t){return this.entries.map(({item:n,at:r,marker:i})=>i?(t.set(i.name,i),Pg(i.name,r)):n instanceof e?{sequence:n.toSequence(t),at:r}:typeof n==`string`?Pg(n,r):r===void 0?n:Array.isArray(n)?Ng(n,r):{...n,at:r})}resolve(e){return this.flush(),typeof e==`number`?e:mg(e,this.labels)??this.time}currentRepeat(){let{repeat:e=0,repeatDelay:t=0,delay:n=0}=this.options,r=this.totalDuration+t,i=(this.clockAnimation?.time??0)-n;return r&&i>0?Math.min(e,Math.floor(i/r)):0}onClock(e){let t=this.prevTime;if(this.prevTime=e,this.isRebuilding)return;let{onUpdate:n,onRepeat:r,repeatType:i=`loop`}=this.options;n?.(e);let a=this.currentRepeat();if(a!==this.repeatIndex&&(this.repeatIndex=a,r?.(),i===`loop`)){let e=this.speed>0;if(this.cross(t,e?this.totalDuration:0))return;t=e?-1:1/0}this.cross(t,e)}cross(e,t){if(e===t)return;let n=t>e,r=r=>n?r>e&&r<=t:r<e&&r>=t,i=n?this.markers:[...this.markers].reverse();for(let e of i)if(r(e.time)&&(e.callback?.(n?1:-1),e.pause))return this.pauseAt(e.time);if(this.stopAt!==void 0&&r(this.stopAt))return this.pauseAt(this.stopAt),this.stopAt=void 0,!0}pauseAt(e){return this.pause(),this.time=e,!0}watch(){let e=this.group;e.finished.then(()=>{if(e!==this.group||this.isDone)return;this.isDone=!0;let{onComplete:t,onReverseComplete:n}=this.options;(this.speed<0&&n||t)?.(),this.resolveFinished()})}newFinished(){this.isDone=!1,this.finished=new Promise(e=>{this.resolveFinished=e});let e=this.motionScope?.add(()=>{this.isKilled=!0,this.stop()});e&&this.finished.then(e)}};function Lg(e){return Array.isArray(e)&&e.some(Array.isArray)}function Rg(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=X.current?.transition,s={};n!==void 0&&(s.reduceMotion=n),r!==void 0&&(s.skipAnimations=r);let c;if(Lg(e)){let n={...s,...i,scope:t};o&&(n.defaultTransition={...o,...n.defaultTransition}),c=new Ig(e,n)}else{let{onComplete:n,...r}=a||{},l={...s,...o,...r},{onUpdate:u}=r;c=new Ig([typeof e==`number`||typeof e==`string`&&(typeof i==`string`||Array.isArray(i))?[u||(()=>{}),Array.isArray(i)?i:[e,i],{...l,onUpdate:void 0}]:[e,i,l]],{...s,onComplete:n,scope:t},Ag(e,i,l,t))}return c}return i}var zg=Object.assign(Rg(),{addEffect:Ao,removeEffect:jo});function Bg(){let e=M(()=>({current:null,animations:[]})),t=og()??void 0,{skipAnimations:n}=O(mp);e.reduceMotion=t,e.skipAnimations=n;let r=he(()=>Rg({scope:e,reduceMotion:t,skipAnimations:n}),[e,t,n]);return eh(()=>{e.animations.forEach(e=>e.stop()),e.animations.length=0}),[e,r]}function Vg(e,t,{deps:n=[],...r}={}){let i=A(null),a=A(t);return a.current=t,Ce(()=>{let t=i.current=Yd(e?.current||void 0,e=>a.current(e),r);return()=>{t.cancel(),i.current===t&&(i.current=null)}},n),i}function Hg(e,t,n,r){if(e==null)return[];let i=Z(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={...Ma(s,e)};i.duration&&=I(i.duration),i.delay&&=I(i.delay);let a=Ta(r),c=wa(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]=Kd(r,i)),Hr(t),Eo(t,i),!a&&t.length<2&&t.unshift(Kd(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 ji(r);t.set(n,i),i.finished.finally(()=>t.delete(n)),s.push(i)}return s}var Ug=e=>{function t(t,n,r){return new xa(Hg(t,n,r,e))}return t},Wg=Ug();function Gg(){let e=M(()=>({current:null,animations:[]})),t=M(()=>Ug(e));return eh(()=>{e.animations.forEach(e=>e.stop())}),[e,t]}function Kg(){let e=M(ug);return Ce(e.mount,[]),e}var qg=Kg;function Jg(){let e=O(we);return e?e.custom:void 0}function Yg(e,t,n,r){k(()=>{let i=e.current;if(n&&i)return Pl(i,t,n,r)},[e,t,n,r])}var Xg=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()})}},Zg=()=>new Xg;function Qg(){return M(Zg)}function $g(e){return typeof e==`object`&&!!e&&mm in e}function e_(e){if($g(e))return e[mm]}function t_(){return n_}function n_(e){Il.current&&(Il.current.isUpdating=!1,Il.current.blockUpdate(),e&&e())}function r_(){return se(()=>{let e=Il.current;e&&e.resetTree()},[])}function i_(...e){let t=A(0),[n,r]=j(e[t.current]);return[n,se(n=>{t.current=typeof n==`number`?n:He(0,e.length,t.current+1),r(e[t.current])},[e.length,...e])]}var a_={some:0,all:1};function o_(e,t,{root:n,margin:r,amount:i=`some`}={}){let a=Z(e);t=Bo(t);let 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:a_[i]});return a.forEach(e=>s.observe(e)),Ro(()=>s.disconnect())}function s_(e,{root:t,margin:n,amount:r,once:i=!1,initial:a=!1}={}){let[o,s]=j(a),[c,l]=j({});return k(()=>{let a=c.current=e.current;return!a||i&&o?void 0:o_(a,()=>(s(!0),i?void 0:()=>s(!1)),{root:t&&t.current||void 0,margin:n,amount:r})},[t,e,n,i,r,c]),k(()=>{e.current!==c.current&&(i||s(!1),l({}))}),o}function c_(){let[e,t]=Mp(),n=t_(),r=A(-1);return k(()=>{W.postRender(()=>W.postRender(()=>{t===r.current&&(P.instantAnimations=!1)}))},[t]),i=>{n(()=>{P.instantAnimations=!0,e(),i(),r.current=t+1})}}function l_(){P.instantAnimations=!1}function u_(){let[e,t]=j(!0);return k(()=>{let e=()=>t(!document.hidden);return document.hidden&&e(),document.addEventListener(`visibilitychange`,e),()=>{document.removeEventListener(`visibilitychange`,e)}},[]),e}function d_(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 f_(e){return t=>{let n=e.current;if(!n)return t;let r=p_(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 p_(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 m_=new Map,h_=new Map,g_=(e,t)=>`${e}: ${q.has(t)?`transform`:t}`;function __(e,t,n){let r=g_(e,t),i=m_.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 v_,y_,b_=new Set;function x_(){b_.forEach(e=>{e.animation.play(),e.animation.startTime=e.startTime}),b_.clear()}function S_(e,t,n,r,i){if(window.MotionIsMounted)return;let a=e.dataset[so];if(!a)return;window.MotionHandoffAnimation=__;let o=g_(a,t);y_||(y_=Oi(e,t,[n[0],n[0]],{duration:1e4,ease:`linear`}),m_.set(o,{animation:y_,startTime:null}),window.MotionHandoffAnimation=__,window.MotionHasOptimisedAnimation=(e,t)=>{if(!e)return!1;if(!t)return h_.has(e);let n=g_(e,t);return!!m_.get(n)},window.MotionHandoffMarkAsComplete=e=>{h_.has(e)&&h_.set(e,!0)},window.MotionHandoffIsComplete=e=>h_.get(e)===!0,window.MotionCancelOptimisedAnimation=(e,t,n,r)=>{let i=g_(e,t),a=m_.get(i);a&&(n&&r===void 0?n.postRender(()=>{n.postRender(()=>{a.animation.cancel()})}):a.animation.cancel(),n&&r?(b_.add(a),n.render(x_)):(m_.delete(i),m_.size||(window.MotionCancelOptimisedAnimation=void 0)))},window.MotionCheckAppearSync=(e,t,n)=>{let r=lo(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=()=>{y_.cancel();let a=Oi(e,t,n,r);v_===void 0&&(v_=performance.now()),a.startTime=v_,m_.set(o,{animation:a,startTime:v_}),i&&i(a)};h_.set(a,!1),y_.ready?y_.ready.then(s).catch(F):s()}var C_=()=>({}),w_=class extends eu{constructor(){super(...arguments),this.measureInstanceViewportBox=$}build(){}resetTransform(){}restoreTransform(){}removeValueFromRenderState(){}renderInstance(){}scrapeMotionValuesFromProps(){return C_()}getBaseTargetFromProps(){}readValueFromInstance(e,t,n){return n.initialState[t]||0}sortInstanceNodePosition(){return 0}},T_=dm({scrapeMotionValuesFromProps:C_,createRenderState:C_});function E_(e){let[t,n]=j(e),r=T_({},!1),i=M(()=>new w_({props:{onUpdate:e=>{n({...e})}},visualState:r,presenceContext:null},{initialState:e}));return me(()=>(i.mount({}),()=>i.unmount()),[i]),[t,M(()=>e=>ho(i,e))]}var D_=0,O_=({children:e})=>(k(()=>{},[]),i(Fp,{id:M(()=>`asl-${D_++}`),children:e})),k_=1e5,A_=e=>e>.001?1/e:k_;function j_(e){let t=Wh(1),n=Wh(1),{visualElement:r}=O(Gp);return e?(t=e.scaleX||t,n=e.scaleY||n):r&&(t=r.getValue(`scaleX`,1),n=r.getValue(`scaleY`,1)),{scaleX:$h(t,A_),scaleY:$h(n,A_)}}var M_=w(null);function N_(e,t,n,r,i,a=`ltr`){let o=e.findIndex(e=>e.value===t);if(o===-1)return e;if(i===`xy`){let{layout:t}=e[o],r={x:F_(t.x)+n.x,y:F_(t.y)+n.y},i=I_(e),s=i.find(t=>t.items.includes(e[o])),c=i.reduce((e,t)=>L_(r.y,t)<L_(r.y,e)?t:e);if(c!==s)return R_(e,o,r.x,c,a);let l=z_(r,t),u=-1,d=l;return e.forEach((e,t)=>{if(t===o)return;let n=z_(r,e.layout);n<d&&(u=t,d=n)}),u===-1?e:De(e,o,o+Math.sign(u-o))}if(!r[i])return e;let s=r[i]>0?1:-1,c=e[o+s];if(!c)return e;let l=e[o].layout[i],u=c.layout[i],d=F_(u);return s===1&&l.max+n[i]>d||s===-1&&l.min+n[i]<d?De(e,o,o+s):e}function P_(e,t,n,r,i){let a=n>1==!!(n%2&&i)?-1:1,o=t+a;if(r===`xy`&&!(n%2)&&t>-1){let n=I_(e).sort((e,t)=>e.min-t.min),r=n[n.findIndex(({items:n})=>n.includes(e[t]))+a],i=n=>Math.abs(F_(n.layout.x)-F_(e[t].layout.x));o=r?e.indexOf(r.items.reduce((e,t)=>i(t)<i(e)?t:e)):-1}return t>-1&&e[o]?o:-1}var F_=({min:e,max:t})=>U(e,t,.5);function I_(e){let t=[];return e.forEach(e=>{let{min:n,max:r}=e.layout.y,i=t[t.length-1];!i||n>=i.max||r<=i.min?t.push({items:[e],min:n,max:r}):(i.items.push(e),i.min=Math.min(i.min,n),i.max=Math.max(i.max,r))}),t}function L_(e,t){return e<t.min?t.min-e:e>t.max?e-t.max:0}function R_(e,t,n,r,i){let a=e.filter((e,n)=>n!==t),o=r.items.find(e=>{let t=F_(e.layout.x);return i===`ltr`?n<t:n>t}),s=o?a.indexOf(o):a.indexOf(r.items[r.items.length-1])+1,c=[...a];return c.splice(s,0,e[t]),c.every((t,n)=>t===e[n])?e:c}function z_(e,t){let n=Math.max(t.x.min-e.x,0,e.x-t.x.max),r=Math.max(t.y.min-e.y,0,e.y-t.y.max);return n*n+r*r}var B_=(e,t)=>e.max<=t.min||t.max<=e.min;function V_(e){let t=!1,n=!1;for(let r=0;r<e.length;r++)for(let i=r+1;i<e.length;i++)if(t||=B_(e[r].x,e[i].x),n||=B_(e[r].y,e[i].y),t&&n)return`xy`;return t?`x`:`y`}function H_({children:e,as:t=`ul`,axis:n,onReorder:r,values:a,onPointerDownCapture:o,onClickCapture:s,...c},l,u){let d=M(()=>u[t]),f=A(new Map),p=A(new Map),[m,h]=j(),[g,_]=j(`y`),v=A(!1),y=A(!1),b=A(null),x=n||g,S=new Set(a);for(let e of[f.current,p.current])e.forEach((t,n)=>S.has(n)||e.delete(n));let C=S.has(m)?m:a[0],w=e=>p.current.get(e)?.current?.isConnected,T=e=>S.has(e)&&h(e),E=()=>{w(C)||T(a.find(w))};k(E);let ee=()=>a.flatMap(e=>{let t=f.current.get(e);return t?[{value:e,layout:t}]:[]}),te=()=>b.current?.ownerDocument.defaultView?.getComputedStyle(b.current).direction===`rtl`,ne=(e,t)=>{let n=0,i=a.map(t=>f.current.has(t)?e[n++].value:t);i.some((e,t)=>e!==a[t])&&r(i,t)},re={axis:x,proxy:u,groupRef:b,hasReordered:y,isTabStop:e=>e===C||!S.has(e),setActive:T,checkTabStop:E,elements:p.current,onKeyDown:(e,t,n,r)=>{let{key:i,currentTarget:o}=e;if(e.defaultPrevented||e.target!==o||e.altKey||e.ctrlKey||e.metaKey)return;let s=ee(),c=[`ArrowUp`,`ArrowLeft`,`ArrowDown`,`ArrowRight`].indexOf(i),l=c%2;if(i===` `)e.repeat||r(o,n?void 0:a);else if(i===`Escape`&&n){let e=n.flatMap(e=>s.filter(t=>t.value===e));ne(s.map(t=>n.includes(t.value)?e.shift():t),t),r(o)}else if(c<0||x!==`xy`&&x!==(l?`x`:`y`))return;else{let e=n?s:s.filter(({value:e})=>w(e)),r=e.findIndex(({value:e})=>e===t),i=P_(e,r,c,x,!!l&&te());i>-1&&(n?ne(De(s,r,i),t):p.current.get(e[i].value)?.current?.focus())}e.preventDefault()},registerItem:(e,t)=>{if(f.current.set(e,t),!n){let e=V_(a.flatMap(e=>{let t=f.current.get(e);return t?[t]:[]}));e!==g&&_(e)}},updateOrder:(e,t,n)=>{if(v.current)return;let r=ee(),i=N_(r,e,t,n,x,te()?`rtl`:`ltr`);r!==i&&(v.current=!0,y.current=!0,ne(i,e))}};k(()=>{v.current=!1},[a]);let D=e=>{b.current=e,typeof l==`function`?l(e):l&&(l.current=e)},ie={overflowAnchor:`none`,...c.style};return i(d,{...c,style:ie,ref:D,onPointerDownCapture:e=>{y.current=!1,o?.(e)},onClickCapture:e=>{y.current&&e.detail&&(y.current=!1,e.stopPropagation(),e.preventDefault()),s?.(e)},ignoreStrict:!0,children:i(M_.Provider,{value:re,children:e})})}var U_=e=>ee((t,n)=>H_(t,n,e)),W_=50,G_=1.5,K_=new Set([`auto`,`scroll`]),q_=new WeakMap,J_=new WeakMap,Y_=null;function X_(){if(Y_){let e=Q_(Y_,`y`);e&&(J_.delete(e),q_.delete(e));let t=Q_(Y_,`x`);t&&t!==e&&(J_.delete(t),q_.delete(t)),Y_=null}}function Z_(e,t){let n=getComputedStyle(e),r=t===`x`?n.overflowX:n.overflowY,i=e===document.body||e===document.documentElement;return K_.has(r)||i}function Q_(e,t){let n=e?.parentElement;for(;n;){if(Z_(n,t))return n;n=n.parentElement}return null}function $_(e){let t=Math.min(1,1-e/W_);return G_*t*t*R.delta}function ev(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;return o<W_?{amount:-$_(o),edge:`start`}:s<W_?{amount:$_(s),edge:`end`}:{amount:0,edge:null}}function tv(e,t,n,r){if(!e)return;Y_=e;let i=Q_(e,n);if(!i)return;let{amount:a,edge:o}=ev(t-(n===`x`?window.scrollX:window.scrollY),i,n);if(o===null){J_.delete(i),q_.delete(i);return}let s=J_.get(i),c=i===document.body||i===document.documentElement;if(s!==o){if(!(o===`start`&&r<0||o===`end`&&r>0))return;J_.set(i,o);let e=n===`x`?i.scrollWidth-(c?window.innerWidth:i.clientWidth):i.scrollHeight-(c?window.innerHeight:i.clientHeight);q_.set(i,e)}if(a>0){let e=q_.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 nv(e,t=0){return Y(e)?e:Wh(t)}function rv({children:e,style:t={},value:n,as:r=`li`,onDrag:a,onDragEnd:o,onKeyDown:s,onFocus:c,onBlur:l,layout:u=!0,...d},f){let p=O(M_),m=M(()=>p.proxy[r]),[h,g]=j(),_={x:nv(t.x),y:nv(t.y)},v=$h([_.x,_.y],([e,t])=>e||t?1:`unset`),{axis:y,registerItem:b,updateOrder:x,groupRef:S,hasReordered:C,isTabStop:w,setActive:T,checkTabStop:E,elements:ee,onKeyDown:te}=p,ne=A(null);ee.set(n,ne);let re=A(f);re.current=f;let D=M(()=>e=>{ne.current=e;let t=re.current;if(typeof t==`function`)return t(e);t&&(t.current=e)});k(()=>E);let ie=y===`xy`||y,ae=(e,t)=>{g(t),Rl.get(e)?.animationState?.setActive(`whileDrag`,!!t)};return i(m,{drag:ie,tabIndex:w(n)?0:-1,...d,dragSnapToOrigin:!0,style:{...t,x:_.x,y:_.y,zIndex:v},layout:u,onDrag:(e,t)=>{let{velocity:r,point:i}=t,o={x:_.x.get(),y:_.y.get()};x(n,o,r);let s=y===`xy`?Math.abs(r.x)>Math.abs(r.y)?`x`:`y`:y;tv(S.current,i[s],s,r[s]),a&&a(e,t)},onDragEnd:(e,t)=>{C.current=!1,X_(),o&&o(e,t)},onKeyDown:e=>{s?.(e),te(e,n,h,ae)},onFocus:e=>{c?.(e),T(n)},onBlur:e=>{l?.(e),h&&ae(e.currentTarget)},onLayoutMeasure:e=>{b(n,e)},ref:D,ignoreStrict:!0,children:e})}var iv=ee(rv),av=t({Group:()=>ov,Item:()=>iv}),ov=U_($m),sv=t({AnimatePresence:()=>kp,AnimateSharedLayout:()=>O_,AsyncMotionValueAnimation:()=>va,DOMKeyframesResolver:()=>Co,DOMVisualElement:()=>tu,DeprecatedLayoutGroupContext:()=>Ap,DocumentProjectionNode:()=>Fl,DragControls:()=>Xg,Feature:()=>qf,FlatTree:()=>el,GroupAnimation:()=>ya,GroupAnimationWithThen:()=>xa,HTMLProjectionNode:()=>Ll,HTMLVisualElement:()=>ou,JSAnimation:()=>Or,KeyframeResolver:()=>_i,LayoutAnimationBuilder:()=>Eu,LayoutGroup:()=>Fp,LayoutGroupContext:()=>xe,LazyMotion:()=>Hp,MotionConfig:()=>Wp,MotionConfigContext:()=>mp,MotionContext:()=>Gp,MotionGlobalConfig:()=>P,MotionValue:()=>Aa,MotionValueState:()=>Ho,NativeAnimation:()=>ji,NativeAnimationExtended:()=>Fi,NativeAnimationWrapper:()=>Sa,NodeStack:()=>Kc,ObjectVisualElement:()=>Yf,PanSession:()=>Yu,PopChild:()=>xp,PresenceChild:()=>Sp,PresenceContext:()=>we,Reorder:()=>av,SVGVisualElement:()=>ep,SubscriptionManager:()=>Le,SwitchLayoutGroupContext:()=>gm,ViewTransitionBuilder:()=>Gf,VisualElement:()=>eu,VisualElementDragControls:()=>Cd,WillChangeMotionValue:()=>rg,acceleratedValues:()=>Bi,acquireProjectionNode:()=>xu,activeScope:()=>X,addAttrValue:()=>os,addBuilderToScope:()=>zo,addDomEvent:()=>Pl,addEffect:()=>Ao,addPointerEvent:()=>ju,addPointerInfo:()=>Au,addSVGValue:()=>ls,addScaleCorrector:()=>Xs,addStyleValue:()=>qo,addToScope:()=>Ro,addUniqueItem:()=>Te,addValueToWillChange:()=>oo,alpha:()=>bt,analyseComplexValue:()=>Zt,animate:()=>zg,animateEffectSubject:()=>Po,animateElement:()=>Vs,animateLayout:()=>dp,animateMini:()=>Wg,animateMotionValue:()=>Ba,animateSingleValue:()=>Js,animateTarget:()=>po,animateValue:()=>kr,animateValues:()=>No,animateVariant:()=>mo,animateView:()=>Kf,animateVisualElement:()=>ho,animationControls:()=>ug,animationMapKey:()=>wa,animations:()=>Dm,anticipate:()=>Xe,applyAxisDelta:()=>Es,applyBoxDelta:()=>Ds,applyGeneratorOptions:()=>Ai,applyPointDelta:()=>Ts,applyPxDefaults:()=>Eo,applyTreeDeltas:()=>As,arc:()=>Ka,aspectRatio:()=>Wc,attachFollow:()=>lf,attachSpring:()=>mf,attrEffect:()=>ss,axisDeltaEquals:()=>Gc,axisEquals:()=>Bc,axisEqualsRounded:()=>Hc,backIn:()=>Je,backInOut:()=>Ye,backOut:()=>qe,bindToScope:()=>Bo,boxEquals:()=>Vc,boxEqualsRounded:()=>Uc,buildHTMLStyles:()=>$o,buildProjectionTransform:()=>Zc,buildSVGAttrs:()=>is,buildSVGPath:()=>ns,buildTransform:()=>$i,buildTransformer:()=>$t,calcAxisDelta:()=>yc,calcBoxDelta:()=>bc,calcChildStagger:()=>Ea,calcGeneratorDuration:()=>Mn,calcLength:()=>Q,calcRelativeAxis:()=>xc,calcRelativeAxisPosition:()=>Cc,calcRelativeBox:()=>Sc,calcRelativePosition:()=>wc,camelCaseAttributes:()=>Xf,camelToDash:()=>Qo,cancelFrame:()=>G,cancelMicrotask:()=>Ks,cancelSync:()=>pp,checkVariantsDidChange:()=>ap,circIn:()=>Ze,circInOut:()=>$e,circOut:()=>Qe,clamp:()=>N,cleanDirtyNodes:()=>pl,collectMotionValues:()=>ka,color:()=>V,compareByDepth:()=>$c,complex:()=>H,containsCSSVariable:()=>vt,convertBoundingBoxToBox:()=>ms,convertBoxToBoundingBox:()=>hs,convertOffsetToTimes:()=>ur,copyAxisDeltaInto:()=>pc,copyAxisInto:()=>dc,copyBoxInto:()=>fc,correctBorderRadius:()=>Jc,correctBoxShadow:()=>Yc,correctParentTransform:()=>f_,createAnimationState:()=>ip,createAxis:()=>Lc,createAxisDelta:()=>Fc,createBox:()=>$,createDelta:()=>Ic,createEffect:()=>Uo,createGeneratorEasing:()=>Nn,createProjectionNode:()=>ll,createRenderBatcher:()=>Dn,createScopedAnimate:()=>Rg,cubicBezier:()=>We,cubicBezierAsString:()=>Ti,defaultEasing:()=>dr,defaultOffset:()=>lr,defaultTransformValue:()=>Zr,defaultValueTypes:()=>Rr,degrees:()=>Pt,delay:()=>Qs,delayInSeconds:()=>$s,dimensionValueTypes:()=>vo,disableInstantTransitions:()=>l_,distance:()=>Ku,distance2D:()=>qu,domAnimation:()=>th,domMax:()=>nh,domMin:()=>rh,drag:()=>Pd,eachAxis:()=>Qc,easeIn:()=>et,easeInOut:()=>nt,easeOut:()=>tt,easingDefinitionToFunction:()=>lt,elementDragControls:()=>Sd,expectsResolvedDragConstraints:()=>Ad,extractEventInfo:()=>ku,fillOffset:()=>cr,fillWildcards:()=>Hr,filterProps:()=>am,findDimensionValueType:()=>yo,findEffect:()=>Mo,findValueType:()=>gf,flushKeyframeResolvers:()=>hi,flushLayoutSnapshots:()=>Tu,followValue:()=>cf,frame:()=>W,frameData:()=>R,frameSteps:()=>On,generateLinearEasing:()=>An,getAnimatableNone:()=>Vr,getAnimationMap:()=>Ta,getComputedStyle:()=>Kd,getDefaultTransition:()=>La,getDefaultValueType:()=>zr,getEasingForSegment:()=>at,getFeatureDefinitions:()=>$l,getFinalKeyframe:()=>_r,getMixer:()=>gn,getOptimisedAppearId:()=>lo,getOriginIndex:()=>$d,getValueAsType:()=>qi,getValueTransition:()=>Ma,getVariableValue:()=>Ya,getVariantContext:()=>cp,getViewAnimationLayerInfo:()=>Of,getViewAnimations:()=>kf,globalProjectionState:()=>tl,handOffElementState:()=>Us,has2DTranslate:()=>Ss,hasComplexValues:()=>Xt,hasReducedMotionListener:()=>ql,hasScale:()=>vs,hasTransform:()=>bs,hasWarned:()=>Be,hex:()=>Mt,hover:()=>Ld,hsla:()=>zt,hslaToRgba:()=>on,inView:()=>o_,inertia:()=>ar,initPrefersReducedMotion:()=>Yl,interpolate:()=>sr,invariant:()=>Ae,invisibleValues:()=>pn,isAnimationControls:()=>zl,isBezierDefinition:()=>ot,isBrowser:()=>Se,isCSSVariableName:()=>mt,isCSSVariableToken:()=>gt,isControllingVariants:()=>Ul,isDeltaZero:()=>zc,isDragActive:()=>cd,isDragging:()=>sd,isEasingArray:()=>it,isElementKeyboardAccessible:()=>id,isElementTextInput:()=>od,isForcedMotionValue:()=>ru,isGenerator:()=>ki,isHTMLElement:()=>Io,isKeyframesTarget:()=>to,isMotionComponent:()=>$g,isMotionValue:()=>Y,isNear:()=>vc,isNodeOrChild:()=>Rd,isNumericalString:()=>je,isObject:()=>Me,isPrimaryPointer:()=>Ou,isSVGElement:()=>Lo,isSVGSVGElement:()=>tc,isSVGTag:()=>Zf,isTransitionDefined:()=>za,isValidMotionProp:()=>rm,isVariantLabel:()=>Bl,isVariantNode:()=>Wl,isWaapiSupportedEasing:()=>Do,isWillChangeMotionValue:()=>ao,isZeroValueString:()=>Ne,keyframes:()=>fr,m:()=>Cm,makeAnimationInstant:()=>zi,makeUseVisualState:()=>dm,mapEasingToNativeEasing:()=>Di,mapValue:()=>ff,maxGeneratorDuration:()=>jn,measurePageBox:()=>Is,measureViewportBox:()=>Fs,memo:()=>Pe,microtask:()=>Gs,millisecondsToSeconds:()=>L,mirrorEasing:()=>Ge,mix:()=>Cn,mixArray:()=>_n,mixColor:()=>fn,mixComplex:()=>bn,mixImmediate:()=>sn,mixLinearColor:()=>cn,mixNumber:()=>U,mixObject:()=>vn,mixValues:()=>oc,mixVisibility:()=>mn,motion:()=>$m,motionValue:()=>J,moveItem:()=>De,nodeGroup:()=>up,noop:()=>F,number:()=>yt,numberValueTypes:()=>Lr,optimizedAppearDataAttribute:()=>co,optimizedAppearDataId:()=>so,originProps:()=>Go,parseAnimateLayoutArgs:()=>Du,parseCSSVariable:()=>Ja,parseValueFromTransform:()=>Qr,percent:()=>Ft,pipe:()=>Fe,pixelsToPercent:()=>qc,positionalKeys:()=>eo,prefersReducedMotion:()=>Kl,press:()=>Gd,processFrame:()=>qs,progress:()=>Ie,progressPercentage:()=>Rt,propEffect:()=>Ws,propagateDirtyNodes:()=>fl,px:()=>B,readSVGValue:()=>us,readStyleValue:()=>Yo,readTransformValue:()=>$r,recordStats:()=>Qd,releaseElement:()=>Hs,removeAxisDelta:()=>Ec,removeAxisTransforms:()=>Dc,removeBoxTransforms:()=>Ac,removeEffect:()=>jo,removeItem:()=>Ee,removePointDelta:()=>Tc,renderHTML:()=>nu,renderSVG:()=>Qf,resize:()=>Gu,resolveElements:()=>Z,resolveMotionValue:()=>nc,resolveTransition:()=>ja,resolveVariant:()=>Qa,resolveVariantFromProps:()=>Za,reverseEasing:()=>Ke,rgbUnit:()=>Ot,rgba:()=>kt,rootProjectionNode:()=>Il,round:()=>Dr,sampleDelta:()=>10,scale:()=>xt,scaleCorrectors:()=>Ys,scalePoint:()=>ws,scopeMotion:()=>Yd,scrapeHTMLMotionValuesFromProps:()=>iu,scrapeSVGMotionValuesFromProps:()=>$f,scroll:()=>Ih,scrollInfo:()=>Oh,secondsToMilliseconds:()=>I,setDragLock:()=>ld,setFeatureDefinitions:()=>Ql,setStyle:()=>yi,setTarget:()=>io,spring:()=>ir,springValue:()=>pf,stagger:()=>ef,startOptimizedAppearAnimation:()=>S_,startWaapiAnimation:()=>Oi,statsBuffer:()=>Zs,steps:()=>rt,styleEffect:()=>Zo,styleSubjectEffect:()=>Xo,supportedWaapiEasing:()=>Ei,supportsBrowserAnimation:()=>Ki,supportsFlags:()=>bi,supportsLinearEasing:()=>wi,supportsPartialKeyframes:()=>Oo,supportsScrollTimeline:()=>Si,supportsViewTimeline:()=>Ci,supportsWaapi:()=>Gi,svgEffect:()=>fs,svgSubjectEffect:()=>ds,sync:()=>fp,testValueType:()=>_o,time:()=>z,toMediaQuery:()=>Jd,transform:()=>tf,transformAxis:()=>Ms,transformBox:()=>Ps,transformBoxPoints:()=>gs,transformPropOrder:()=>K,transformProps:()=>q,transformValue:()=>df,transformValueTypes:()=>Ir,transformViewBoxPoint:()=>d_,translateAxis:()=>js,unwrapMotionComponent:()=>e_,updateMotionValuesFromProps:()=>Gl,useAnimate:()=>Bg,useAnimateMini:()=>Gg,useAnimation:()=>qg,useAnimationControls:()=>Kg,useAnimationFrame:()=>Zh,useComposedRefs:()=>_p,useCycle:()=>i_,useDeprecatedAnimatedState:()=>E_,useDeprecatedInvertedScale:()=>j_,useDomEvent:()=>Yg,useDragControls:()=>Qg,useElementScroll:()=>Hh,useFollowValue:()=>Jh,useForceUpdate:()=>Mp,useInView:()=>s_,useInstantLayoutTransition:()=>t_,useInstantTransition:()=>c_,useIsPresent:()=>Tp,useIsomorphicLayoutEffect:()=>Ce,useMotionTemplate:()=>Kh,useMotionValue:()=>Wh,useMotionValueEvent:()=>ih,usePageInView:()=>u_,usePresence:()=>wp,usePresenceData:()=>Jg,useReducedMotion:()=>ag,useReducedMotionConfig:()=>og,useResetProjection:()=>r_,useScopeMotion:()=>Vg,useScroll:()=>Vh,useSpring:()=>Xh,useTime:()=>Qh,useTransform:()=>$h,useUnmountEffect:()=>eh,useVelocity:()=>ng,useViewportScroll:()=>Uh,useWillChange:()=>ig,variantPriorityOrder:()=>Vl,variantProps:()=>Hl,velocityPerSecond:()=>Re,vh:()=>It,visualElementStore:()=>Rl,vw:()=>Lt,warnOnce:()=>Ve,warning:()=>ke,wrap:()=>He}),cv=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}},lv=sv;cv.register([`framer-motion`,`motion/react`,`motion`],lv),window.Motion=lv})();
|