libre-webui 0.45.2 → 0.46.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.
Files changed (155) hide show
  1. package/backend/dist/services/agentCliService.d.ts.map +1 -1
  2. package/backend/dist/services/agentCliService.js +2 -0
  3. package/backend/dist/services/agentCliService.js.map +1 -1
  4. package/backend/dist/services/dataArchiveService.d.ts.map +1 -1
  5. package/backend/dist/services/dataArchiveService.js +2 -0
  6. package/backend/dist/services/dataArchiveService.js.map +1 -1
  7. package/backend/dist/services/followUpService.d.ts.map +1 -1
  8. package/backend/dist/services/followUpService.js +11 -1
  9. package/backend/dist/services/followUpService.js.map +1 -1
  10. package/backend/dist/services/preferencesService.d.ts.map +1 -1
  11. package/backend/dist/services/preferencesService.js +1 -0
  12. package/backend/dist/services/preferencesService.js.map +1 -1
  13. package/backend/dist/services/workModelProviderService.d.ts.map +1 -1
  14. package/backend/dist/services/workModelProviderService.js +4 -4
  15. package/backend/dist/services/workModelProviderService.js.map +1 -1
  16. package/backend/dist/types/index.d.ts +1 -0
  17. package/backend/dist/types/index.d.ts.map +1 -1
  18. package/backend/dist/types/index.js.map +1 -1
  19. package/backend/dist/utils/geminiProtocol.d.ts.map +1 -1
  20. package/backend/dist/utils/geminiProtocol.js +6 -2
  21. package/backend/dist/utils/geminiProtocol.js.map +1 -1
  22. package/backend/dist/utils/pluginChatAdapter.d.ts +23 -1
  23. package/backend/dist/utils/pluginChatAdapter.d.ts.map +1 -1
  24. package/backend/dist/utils/pluginChatAdapter.js +61 -9
  25. package/backend/dist/utils/pluginChatAdapter.js.map +1 -1
  26. package/backend/dist/utils/pluginDefinitionTrust.js +5 -5
  27. package/backend/package.json +2 -4
  28. package/frontend/dist/artifact-runtime/.build-fingerprint +1 -1
  29. package/frontend/dist/artifact-runtime/framer-motion.js +1 -1
  30. package/frontend/dist/artifact-runtime/lucide-react.js +1 -1
  31. package/frontend/dist/artifact-runtime/recharts.js +54 -50
  32. package/frontend/dist/assets/index-CjeHi5JU.js +76 -0
  33. package/frontend/dist/assets/index-DyhvMw2T.css +2 -0
  34. package/frontend/dist/index.html +29 -29
  35. package/frontend/dist/js/{ArtifactContainer-CFVJv-mM.js → ArtifactContainer-BaacvZ8q.js} +1 -1
  36. package/frontend/dist/js/{ArtifactDemoPage-DH0FzsNI.js → ArtifactDemoPage-D6pgt8_p.js} +1 -1
  37. package/frontend/dist/js/{ArtifactSandboxFrame-WnLSNpGj.js → ArtifactSandboxFrame-BqfRwsQa.js} +1 -1
  38. package/frontend/dist/js/{ArtifactSlideOutPanel-ASrltUrj.js → ArtifactSlideOutPanel-BUFb1QaC.js} +1 -1
  39. package/frontend/dist/js/{AutomationModal-CyKk0tlC.js → AutomationModal-a9rx93qd.js} +1 -1
  40. package/frontend/dist/js/AutomationsPage-Bhzy71Cq.js +1 -0
  41. package/frontend/dist/js/{AvatarUpload-CndjrKep.js → AvatarUpload-BHHUA-GH.js} +1 -1
  42. package/frontend/dist/js/{Button-D6d7HYoa.js → Button-DeV-GhQr.js} +1 -1
  43. package/frontend/dist/js/CalendarPage-DIlOEXA9.js +1 -0
  44. package/frontend/dist/js/ChannelsPage-BRVs-Kp-.js +1 -0
  45. package/frontend/dist/js/ChatPage-DqEa_l2u.js +14 -0
  46. package/frontend/dist/js/{ConnectModels-BNmJfvfw.js → ConnectModels-dimFaMkn.js} +1 -1
  47. package/frontend/dist/js/{EvaluationsPage-Duxm4ft2.js → EvaluationsPage-BKVxoUaS.js} +1 -1
  48. package/frontend/dist/js/{FirstTimeSetup-BZ4pQGa_.js → FirstTimeSetup-MLU3EUOv.js} +1 -1
  49. package/frontend/dist/js/{GalleryPage-BD_mUDta.js → GalleryPage-BqhTNi2p.js} +1 -1
  50. package/frontend/dist/js/HomePage-B_HbAwgO.js +1 -0
  51. package/frontend/dist/js/LanguageSwitcher-gij6QsCJ.js +1 -0
  52. package/frontend/dist/js/{Logo-DhV6D_3q.js → Logo-BBRSG7mh.js} +1 -1
  53. package/frontend/dist/js/{LogoMark-CmF1lHXT.js → LogoMark-CiSslCTm.js} +1 -1
  54. package/frontend/dist/js/{ModelManagerModals-BjLwU-MI.js → ModelManagerModals-CfcrXIm5.js} +1 -1
  55. package/frontend/dist/js/NotesPage-6qb7awMu.js +3 -0
  56. package/frontend/dist/js/{PasswordStrengthMeter-Cvrt6Q9S.js → PasswordStrengthMeter-MkydwQ8j.js} +1 -1
  57. package/frontend/dist/js/PersonasPage-KRnYk61s.js +13 -0
  58. package/frontend/dist/js/PluginUsagePage-Bm2WXYM5.js +1 -0
  59. package/frontend/dist/js/RichMessageContent-C5hmCcK6.js +3 -0
  60. package/frontend/dist/js/{RichMessageContent-BTq5fi2Q.js → RichMessageContent-fyjhRYjT.js} +1 -1
  61. package/frontend/dist/js/SettingsModal-CgtaiEwd.js +19 -0
  62. package/frontend/dist/js/{SettingsToggle-CNUeo6DO.js → SettingsToggle-XpuugbHi.js} +1 -1
  63. package/frontend/dist/js/{ShareDialog-JrPQi4_S.js → ShareDialog-lkQnQmeI.js} +1 -1
  64. package/frontend/dist/js/{StrandsPage-CG4rywyz.js → StrandsPage-sPvcnqzA.js} +1 -1
  65. package/frontend/dist/js/{SystemPage-DSHe65ZO.js → SystemPage-DwL4p4Rm.js} +1 -1
  66. package/frontend/dist/js/{UserManagementPage-BrogyZDQ.js → UserManagementPage-CzFDrqMr.js} +1 -1
  67. package/frontend/dist/js/{UserManagementPanel-B5p2mcC9.js → UserManagementPanel-Dz8Q_Nv7.js} +1 -1
  68. package/frontend/dist/js/{WhatsNewModal-CeHAg8Uz.js → WhatsNewModal-CSYCRxyb.js} +1 -1
  69. package/frontend/dist/js/WorkPage-zNqtL6D7.js +7 -0
  70. package/frontend/dist/js/{api-R43sAAC-.js → api-B8EjExUU.js} +1 -1
  71. package/frontend/dist/js/api-CCDH67RO.js +1 -0
  72. package/frontend/dist/js/{appNavigation-C59KQTgx.js → appNavigation-C0lNX2LE.js} +1 -1
  73. package/frontend/dist/js/{appStore-DDxf13l_.js → appStore-BEjqPvpR.js} +2 -2
  74. package/frontend/dist/js/appVersion-Dv97-qD1.js +1 -0
  75. package/frontend/dist/js/{ar-Cq-76la4.js → ar-BM7CvBiJ.js} +1 -1
  76. package/frontend/dist/js/authStore-BNu5iRKd.js +1 -0
  77. package/frontend/dist/js/{authStore-RsBcSMMM.js → authStore-BOFcWqii.js} +3 -3
  78. package/frontend/dist/js/{bn-sjvarZOb.js → bn-DZgfamCo.js} +1 -1
  79. package/frontend/dist/js/chatStore-C3c3r8iB.js +3 -0
  80. package/frontend/dist/js/{client-b-EoJr_G.js → client-CQZUgw7R.js} +2 -2
  81. package/frontend/dist/js/{config-cjZnwBYY.js → config-Dz__g4tp.js} +1 -1
  82. package/frontend/dist/js/{cs-HDycqDhD.js → cs-Cx7EJqsO.js} +1 -1
  83. package/frontend/dist/js/{da-BVFJgeVO.js → da-o3xyldjl.js} +1 -1
  84. package/frontend/dist/js/{de-BvHBSBK4.js → de-DtSkfuOa.js} +1 -1
  85. package/frontend/dist/js/decisionsApi-DJWWXd5m.js +1 -0
  86. package/frontend/dist/js/{decisionsApi-CCPE-Qru.js → decisionsApi-DWyjcL8B.js} +1 -1
  87. package/frontend/dist/js/{es-DbVEuhTV.js → es-CNJDAw3s.js} +1 -1
  88. package/frontend/dist/js/{evaluationsApi-Due3Xmlx.js → evaluationsApi-BE2P4V0I.js} +1 -1
  89. package/frontend/dist/js/{fr-B1KGm4dd.js → fr-BfkRYgQd.js} +1 -1
  90. package/frontend/dist/js/{hi-DxJ8DThp.js → hi-BKmbYlM1.js} +1 -1
  91. package/frontend/dist/js/{id-BeHcweMq.js → id-BeP0q360.js} +1 -1
  92. package/frontend/dist/js/{is-g5BLxkpl.js → is-FNrpAg1Q.js} +1 -1
  93. package/frontend/dist/js/{it-Dc4XkI8W.js → it-C6LfJuro.js} +1 -1
  94. package/frontend/dist/js/{ja-CDtOkRnL.js → ja-VGke24PN.js} +1 -1
  95. package/frontend/dist/js/{ko-BBKgPWyC.js → ko-JnCzlETi.js} +1 -1
  96. package/frontend/dist/js/{messageCodeStyles-DQBFoYPS.js → messageCodeStyles-QRyNUcEv.js} +2 -2
  97. package/frontend/dist/js/modelPresentation-BqdYlMRq.js +1 -0
  98. package/frontend/dist/js/{ms-rIHXR3GT.js → ms-JF56ktSS.js} +1 -1
  99. package/frontend/dist/js/{nl-CoQBZ4yX.js → nl-FzrGEt7O.js} +1 -1
  100. package/frontend/dist/js/{pl-DEEj4YnX.js → pl-C6EtLPmh.js} +1 -1
  101. package/frontend/dist/js/{pt-CRlblKN3.js → pt-Clyy_Jz3.js} +1 -1
  102. package/frontend/dist/js/router-vendor-ihzG-2y7.js +1 -0
  103. package/frontend/dist/js/{ru-CWyM0zYW.js → ru-yG8TnHJE.js} +1 -1
  104. package/frontend/dist/js/{strandsApi-dlXURr1J.js → strandsApi-EFMF0J0x.js} +1 -1
  105. package/frontend/dist/js/{sv-BZb9WtOT.js → sv-DSCl8r0m.js} +1 -1
  106. package/frontend/dist/js/{teamEventStream-LCbFl9c-.js → teamEventStream-aQGd68I4.js} +1 -1
  107. package/frontend/dist/js/{th-CyVttEeX.js → th-DiITM0tM.js} +1 -1
  108. package/frontend/dist/js/{tr-8W-DKlX6.js → tr-jQmrBMGA.js} +1 -1
  109. package/frontend/dist/js/ui-CKcr9ReZ.js +2 -0
  110. package/frontend/dist/js/{ui-vendor-CjZizWzb.js → ui-vendor-BanHlKMb.js} +1 -1
  111. package/frontend/dist/js/{uk-CCS3WiT5.js → uk-rPc3yzsm.js} +1 -1
  112. package/frontend/dist/js/{useChat-DJk_sA_g.js → useChat-DFozXoci.js} +1 -1
  113. package/frontend/dist/js/useDictation-D9lyoqUR.js +1 -0
  114. package/frontend/dist/js/useQuery-B-RslgPA.js +1 -0
  115. package/frontend/dist/js/useTranslation-Bu0AxynE.js +1 -0
  116. package/frontend/dist/js/utils-DhBboyBg.js +1 -0
  117. package/frontend/dist/js/utils-vendor-DpFrFwUi.js +1 -0
  118. package/frontend/dist/js/{vi-9LSI-JjZ.js → vi-wT4LDUXd.js} +1 -1
  119. package/frontend/dist/js/{workApi-DoqjHVys.js → workApi-C2R6IiSd.js} +1 -1
  120. package/frontend/dist/js/workApi-CNDPo0bG.js +1 -0
  121. package/frontend/dist/js/{zh-B8TvwSpQ.js → zh-CIASsxyC.js} +1 -1
  122. package/package.json +3 -4
  123. package/plugins/codex-oauth.json +2 -0
  124. package/plugins/gemini.json +1 -0
  125. package/plugins/mlx-lm.json +5 -5
  126. package/plugins/openai.json +3 -1
  127. package/plugins/openrouter.json +2 -0
  128. package/frontend/dist/assets/index-Bi4dLGow.js +0 -32
  129. package/frontend/dist/assets/index-FrFgrp5E.css +0 -2
  130. package/frontend/dist/js/AutomationsPage-DyWCHZB4.js +0 -1
  131. package/frontend/dist/js/CalendarPage-CoUeeBLZ.js +0 -1
  132. package/frontend/dist/js/ChannelsPage-BTtm0zgq.js +0 -1
  133. package/frontend/dist/js/ChatPage-CNVzf1Nh.js +0 -14
  134. package/frontend/dist/js/HomePage-CllRyMmx.js +0 -1
  135. package/frontend/dist/js/LanguageSwitcher-D4QF6lpW.js +0 -1
  136. package/frontend/dist/js/NotesPage-DFL_4FyE.js +0 -3
  137. package/frontend/dist/js/PersonasPage-C0FD_dR6.js +0 -13
  138. package/frontend/dist/js/PluginUsagePage-D5cfifCU.js +0 -1
  139. package/frontend/dist/js/RichMessageContent-BQtj6ZIo.js +0 -3
  140. package/frontend/dist/js/SettingsModal-D4K6DG99.js +0 -19
  141. package/frontend/dist/js/WorkPage-Cq_VMf9T.js +0 -7
  142. package/frontend/dist/js/api-1Ym789zb.js +0 -1
  143. package/frontend/dist/js/appVersion-6CB3OX6W.js +0 -1
  144. package/frontend/dist/js/authStore-KZxTYkaU.js +0 -1
  145. package/frontend/dist/js/chatStore-D-0TPlCx.js +0 -3
  146. package/frontend/dist/js/decisionsApi-6OUw07DU.js +0 -1
  147. package/frontend/dist/js/modelPresentation-ChKS6M4O.js +0 -1
  148. package/frontend/dist/js/router-vendor-DLHZHk4K.js +0 -1
  149. package/frontend/dist/js/ui-CtgjJ55f.js +0 -2
  150. package/frontend/dist/js/useDictation-C5NoYnvs.js +0 -1
  151. package/frontend/dist/js/useQuery-Cs76KYuP.js +0 -1
  152. package/frontend/dist/js/useTranslation-CKqEdZ8j.js +0 -1
  153. package/frontend/dist/js/utils-BXRzbHJC.js +0 -1
  154. package/frontend/dist/js/utils-vendor-B4bGLP5p.js +0 -1
  155. package/frontend/dist/js/workApi-CEjmKHnw.js +0 -1
@@ -1,2 +1,2 @@
1
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:D,isValidElement:O,lazy:ee,memo:te,startTransition:k,unstable_useCacheRefresh:ne,use:re,useActionState:ie,useCallback:A,useContext:j,useDebugValue:ae,useDeferredValue:oe,useEffect:M,useEffectEvent:se,useId:ce,useImperativeHandle:le,useInsertionEffect:ue,useLayoutEffect:de,useMemo:fe,useOptimistic:pe,useReducer:me,useRef:N,useState:he,useSyncExternalStore:ge,useTransition:_e,version:ve}=o,ye=w({});function P(e){let t=N(null);return t.current===null&&(t.current=e()),t.current}var be=typeof window<`u`,F=be?de:M,xe=w(null);function Se(e,t){e.indexOf(t)===-1&&e.push(t)}function Ce(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function we([...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 I=(e,t,n)=>n>t?t:n<e?e:n;function Te(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}var Ee=()=>{},De=()=>{},L={},Oe=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ke=e=>typeof e==`object`&&!!e,Ae=e=>/^0[^.\s]+$/u.test(e);function je(e){let t;return()=>(t===void 0&&(t=e()),t)}var R=e=>e,Me=(...e)=>e.reduce((e,t)=>n=>t(e(n))),Ne=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},Pe=class{constructor(){this.subscriptions=[]}add(e){return Se(this.subscriptions,e),()=>this.remove(e)}remove(e){Ce(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}},z=e=>e*1e3,Fe=e=>e/1e3,Ie=(e,t)=>t?1e3/t*e:0,Le=new Set;function Re(e){return Le.has(e)}function ze(e,t,n){e||Le.has(t)||(console.warn(Te(t,n)),Le.add(t))}var Be=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},Ve=(e,t,n)=>e*(3*(1-e)*((1-e)*t+e*n)+e*e);function He(e,t,n,r){return e===t&&n===r?R:i=>{let a=0,o=1,s=i;for(let t=0;;t++){s>=a&&s<=o||(s=(a+o)/2);let r=Ve(s,e,n)-i;if(r*r<1e-28||t===40)break;r>0?o=s:a=s,s-=r*1e-7/(Ve(s+1e-7,e,n)-i-r)}return Ve(s,t,r)}}var Ue=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,We=e=>t=>1-e(1-t),Ge=He(.33,1.53,.69,.99),Ke=We(Ge),qe=Ue(Ke),Je=e=>e>=1?1:(e*=2)<1?.5*Ke(e):.5*(2-2**(-10*(e-1))),Ye=e=>1-Math.sin(Math.acos(e)),Xe=We(Ye),Ze=Ue(Ye),Qe=He(.42,0,1,1),$e=He(0,0,.58,1),et=He(.42,0,.58,1);function tt(e,t=`end`){return n=>{n=t===`end`?Math.min(n,.999):Math.max(n,.001);let r=n*e;return I(0,1,(t===`end`?Math.floor(r):Math.ceil(r))/e)}}var nt=e=>Array.isArray(e)&&typeof e[0]!=`number`;function rt(e,t){return nt(e)?e[Be(0,e.length,t)]:e}var it=e=>Array.isArray(e)&&typeof e[0]==`number`,at={linear:R,easeIn:Qe,easeInOut:et,easeOut:$e,circIn:Ye,circInOut:Ze,circOut:Xe,backIn:Ke,backInOut:qe,backOut:Ge,anticipate:Je},ot=e=>typeof e==`string`,st=e=>{if(it(e)){let[t,n,r,i]=e;return He(t,n,r,i)}return ot(e)?at[e]:e},B={delta:0,timestamp:0,isProcessing:!1},ct;function lt(){ct=void 0}var V={now:()=>(ct===void 0&&V.set(B.isProcessing||L.useManualTiming?B.timestamp:performance.now()),ct),set:e=>{ct=e,queueMicrotask(lt)}},ut=e=>Math.round(e*1e5)/1e5,dt=e=>t=>typeof t==`string`&&t.startsWith(e),ft=dt(`--`),pt=dt(`var(--`),mt=e=>pt(e)?ht.test(e.split(`/*`)[0].trim()):!1,ht=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function gt(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var _t={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},vt={..._t,transform:e=>I(0,1,e)},yt={..._t,default:1},bt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function xt(e){return e==null}var St=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ct=(e,t)=>n=>!!(typeof n==`string`&&St.test(n)&&n.startsWith(e)||t&&!xt(n)&&Object.prototype.hasOwnProperty.call(n,t)),wt=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(bt);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Tt=e=>I(0,255,e),Et={..._t,transform:e=>Math.round(Tt(e))},Dt={test:Ct(`rgb`,`red`),parse:wt(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Et.transform(e)+`, `+Et.transform(t)+`, `+Et.transform(n)+`, `+ut(vt.transform(r))+`)`},Ot=(e,t,n)=>{let r=e.substring(1+t*n,1+(t+1)*n);return n>1?r:r+r};function kt(e){let t=e.length>5?2:1,n=Ot(e,3,t);return{red:parseInt(Ot(e,0,t),16),green:parseInt(Ot(e,1,t),16),blue:parseInt(Ot(e,2,t),16),alpha:n?parseInt(n,16)/255:1}}var At={test:Ct(`#`),parse:kt,transform:Dt.transform},jt=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Mt=jt(`deg`),Nt=jt(`%`),H=jt(`px`),Pt=jt(`vh`),Ft=jt(`vw`),It={...Nt,parse:e=>Nt.parse(e)/100,transform:e=>Nt.transform(e*100)},Lt={test:Ct(`hsl`,`hue`),parse:wt(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Nt.transform(ut(t))+`, `+Nt.transform(ut(n))+`, `+ut(vt.transform(r))+`)`},U={test:e=>Dt.test(e)||At.test(e)||Lt.test(e),parse:e=>Dt.test(e)?Dt.parse(e):Lt.test(e)?Lt.parse(e):At.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Dt.transform(e):Lt.transform(e),getAnimatableNone:e=>{let t=U.parse(e);return t.alpha=0,U.transform(t)}},Rt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,zt=new RegExp(bt.source),Bt=new RegExp(Rt.source,`i`);function Vt(e){return isNaN(e)&&typeof e==`string`&&(zt.test(e)||Bt.test(e))}var Ht=`number`,Ut=`color`,Wt=`var`,Gt=`var(`,Kt="${}",qt=/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 Jt(e){let t=e.toString();return zt.test(t)||Bt.test(t)}function Yt(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(qt,e=>(U.test(e)?(r.color.push(a),i.push(Ut),n.push(U.parse(e))):e.startsWith(Gt)?(r.var.push(a),i.push(Wt),n.push(e)):(r.number.push(a),i.push(Ht),n.push(parseFloat(e))),++a,Kt)).split(Kt),indexes:r,types:i}}function Xt(e){return Yt(e).values}function Zt({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===Ht?ut(r[a]):e===Ut?U.transform(r[a]):r[a]}return i}}function Qt(e){return Zt(Yt(e))}var $t=e=>typeof e==`number`?0:U.test(e)?U.getAnimatableNone(e):e,en=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:$t(e);function tn(e){let t=Yt(e);return Zt(t)(t.values.map((e,n)=>en(e,t.split[n])))}var W={test:Vt,parse:Xt,createTransformer:Qt,getAnimatableNone:tn};function nn(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 rn({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=nn(s,r,e+1/3),a=nn(s,r,e),o=nn(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function an(e,t){return n=>n>0?t:e}var G=(e,t,n)=>e+(t-e)*n,on=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},sn=[At,Dt,Lt],cn=e=>sn.find(t=>t.test(e));function ln(e){let t=cn(e);if(!t)return!1;let n=t.parse(e);return t===Lt&&(n=rn(n)),n}var un=(e,t)=>{let n=ln(e),r=ln(t);if(!n||!r)return an(e,t);let i={...n};return e=>(i.red=on(n.red,r.red,e),i.green=on(n.green,r.green,e),i.blue=on(n.blue,r.blue,e),i.alpha=G(n.alpha,r.alpha,e),Dt.transform(i))},dn=new Set([`none`,`hidden`]);function fn(e,t){return dn.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function pn(e,t){return n=>G(e,t,n)}function mn(e){return typeof e==`number`?pn:typeof e==`string`?mt(e)?an:U.test(e)?un:vn:Array.isArray(e)?hn:typeof e==`object`?U.test(e)?un:gn:an}function hn(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>mn(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function gn(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=mn(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function _n(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 vn=(e,t)=>{let n=Yt(e),r=Yt(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?dn.has(e)&&!r.values.length||dn.has(t)&&!n.values.length?fn(e,t):Me(hn(_n(n,r),r.values),Zt(r)):an(e,t)},yn=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function bn(e,t){let n=yn.exec(e);if(!n)return;let r=yn.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>ut(G(a,o,e))+i}function xn(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return G(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=bn(e,t);if(n)return n}return mn(e)(e,t)}var Sn=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function Cn(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 wn=40;function Tn(e,t,n={delta:0,timestamp:0,isProcessing:!1}){let r=!1,i=!0,a=()=>r=!0,o=Sn.reduce((e,t)=>(e[t]=Cn(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=L.useManualTiming,o=a?n.timestamp:performance.now();r=!1,a||(n.delta=i?1e3/60:Math.max(Math.min(o-n.timestamp,wn),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:Sn.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<Sn.length;t++)o[Sn[t]].cancel(e)},state:n,steps:o}}var{schedule:K,cancel:q,steps:En}=Tn(typeof requestAnimationFrame<`u`?requestAnimationFrame:R,!0,B),Dn=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>K.update(t,e),stop:()=>q(t),now:()=>B.isProcessing?B.timestamp:V.now()}},On=(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)})`},kn=2e4;function An(e,t=50,n=kn,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 jn(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(An(o),kn);return{type:`keyframes`,ease:e=>o.next(s*e).value/t,duration:Fe(s)}}var Mn=100,Nn=10,Pn=1,Fn=800,In=.3,Ln=.3,Rn=.01,zn=2,Bn=.005,Vn=.5,Hn=.01,Un=10,Wn=.05,Gn=e=>e<0?1/Math.max(1+e,Wn):Math.max(1-e,Wn);function Kn(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 Yn(e=>i*Math.exp(-r*e)-r*Math.exp(-i*e)-a,e=>Math.exp(-i*e)-Math.exp(-r*e),t)/t}function qn(e,t){return e*Math.sqrt(1-t*t)}var Jn=12;function Yn(e,t,n){let r=n;for(let n=1;n<Jn;n++)r-=e(r)/t(r);return r}var Xn=.001;function Zn({duration:e=Fn,bounce:t=In}){let n,r,i=Gn(t);e=I(Hn,Un,Fe(e)),i<1?(n=t=>{let n=t*i,r=n*e,a=qn(t,i),o=Math.exp(-r);return Xn-n/a*o},r=t=>{let r=t*i*e,a=i*i*t*t*e,o=Math.exp(-r),s=qn(t*t,i);return(-n(t)+Xn>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=Yn(n,r,a),s=o*Kn(i,o*e),c=s*s;return{stiffness:c,damping:i*2*Math.sqrt(c),duration:z(e)}}var Qn=(e,t)=>(t?e>=0:e>0)&&e<1/0;function $n(e,t){if(Qn(e,t))return e}function er(e){let t=$n(e.stiffness),n=$n(e.damping,!0),r=$n(e.mass),i={...e,stiffness:t??Mn,damping:n??Nn,mass:r??Pn,isResolvedFromDuration:!1,isTimeDefined:(t??n??r)===void 0&&(e.duration!==void 0||e.bounce!==void 0)};if(i.isTimeDefined){if(e.visualDuration){let t=Gn(e.bounce||0),n=2*Math.PI/(e.visualDuration*1.2)*Kn(t,2*Math.PI/1.2);i.stiffness=n*n,i.damping=2*t*Math.sqrt(i.stiffness)}else Object.assign(i,Zn(i)),i.isResolvedFromDuration=!0;Qn(i.stiffness)&&Qn(i.damping,!0)||(i.stiffness=Mn,i.damping=Nn)}return i}function tr(e=Ln,t=In){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}=er({...n}),f=e=>u?0:-Fe(e),p=s/(2*Math.sqrt(o*c)),m=Fe(Math.sqrt(o/c)),h=p*m,g={target:i,delta:i-r,velocity:f(n.velocity)||0,restSpeed:0,restDelta:0},_=()=>{let e=Math.abs(g.delta)<5;g.restSpeed=n.restSpeed||(e?Rn:zn),g.restDelta=n.restDelta||(e?Bn:Vn)};_();let v,y,b;if(p<1){let e=qn(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=>z(y(e)),next:e=>{let t=v(e);if(u)a.done=e>=l;else{let n=z(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(An(S),kn),t=On(t=>S.next(e*t).value,e,30);return e+`ms `+t}};return S}var nr=Object.assign(tr,{applyToOptions:e=>{let t=jn(e,100,tr);return e.ease=t.ease,e.duration=z(t.duration),e.type=`keyframes`,e}});function rr({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=nr({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 ir(e,t,n){let r=[],i=L.mix||xn,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=Me(Array.isArray(t)?t[o]||R:t,a)),r.push(a)}return r}function ar(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=ir(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=Ne(e[r],e[r+1],n);return s[r](i)};return n?t=>l(I(e[0],e[a-1],t)):l}function or(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Ne(0,t,r);e.push(G(n,1,i))}}function sr(e){let t=[0];return or(t,e.length-1),t}function cr(e,t){return e.map(e=>e*t)}function lr(e,t){return e.map(()=>t||et).splice(0,e.length-1)}function ur({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`,mixer:i}){let a=typeof t[0]==`number`?void 0:i,o=nt(r)?r.map(st):st(r)||et,s={done:!1,value:t[0]},c=-1;if(!a){for(let e=1;e<t.length;e++)if(t[e]!==t[e-1]){if(c>=0){c=-2;break}c=e-1}}if(c>=0){let r=n&&n.length===t.length?n:sr(t),i=r[c]*e,a=r[c+1]*e,l=t[c],u=t[c+1],d=Array.isArray(o)?o[c]:o,f=(L.mix||xn)(l,u),p=t.length-2;return{calculatedDuration:e,next:t=>(s.value=c&&t<i?f(0):c<p&&(t>=a||!e)?typeof u==`number`?u:f(1):f(d(t>=a||!e?1:t<=i?0:(t-i)/(a-i))),s.done=t>=e,s)}}let l=ar(cr(n&&n.length===t.length?n:sr(t),e),t,{ease:Array.isArray(o)?o:lr(t,o),mixer:a});return{calculatedDuration:e,next:t=>(s.value=l(t),s.done=t>=e,s)}}var dr=5;function fr(e,t,n){let r=Math.max(t-dr,0);return Ie(n-e(r),t-r)}function pr(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):fr(t=>e.next(t).value,t,e.next(t).value)}function mr(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a,o,s=0;for(let t=0;t<e.length;t++){let n=e[t];n!==null&&(s++||(a=n),o=n)}let c=i<0||t&&n!==`loop`&&t%2==1?0:s-1;return!c||r===void 0?c?o:a:r}var hr={decay:rr,inertia:rr,tween:ur,keyframes:ur,spring:nr};function gr(e){typeof e.type==`string`&&(e.type=hr[e.type])}var _r=40,vr=(e,t)=>t-e>_r&&!L.useManualTiming?t:e;function yr(e,t){return{kind:e,animation:t,timestamp:V.now(),frameTimestamp:B.timestamp,frameIsProcessing:B.isProcessing}}function br(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({...yr(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}function xr(e,t){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...yr(`layout-animation-start`,e),node:t})}catch{}}var Sr=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)}},Cr=e=>e/100,wr=e=>Math.round(e*1e4)/1e4,Tr=class extends Sr{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,t=V.now();e&&e.updatedAt!==t&&this.tick(e.updatedAt=t),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),br(this,this.options)}initAnimation(){let{options:e}=this;gr(e);let{type:t=ur,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||ur;this.mixKeyframes=void 0,s!==ur&&typeof o[0]!=`number`&&(this.mixKeyframes=Me(Cr,e.mixer?.(o[0],o[1])||xn(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=An(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=vr(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!==rr&&(f.value=mr(o,this.options,l,this.speed)),c&&c(f.value),m&&this.finish(),f}at(e){return this.holdTime??wr((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!==rr?mr(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=I(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 Fe(this.calculatedDuration)}get iterationDuration(){return this.duration+Fe(this.options.delay??0)}get time(){return Fe(this.currentTime)}set time(e){this.state===`finished`&&this.updateFinished(),e=z(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 pr(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(V.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Fe(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Dn,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(V.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 Er(e){return new Tr(e)}var Dr=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Or(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(bt)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Dr.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var kr=/\b([a-z-]*)\(.*?\)/gu,Ar={...W,getAnimatableNone:e=>{let t=e.match(kr);return t?t.map(Or).join(` `):e}},jr={...W,getAnimatableNone:e=>{let t=W.parse(e);return W.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Mr={..._t,transform:Math.round},Nr={rotate:Mt,pathRotation:Mt,rotateX:Mt,rotateY:Mt,rotateZ:Mt,scale:yt,scaleX:yt,scaleY:yt,scaleZ:yt,skew:Mt,skewX:Mt,skewY:Mt,distance:H,translateX:H,translateY:H,translateZ:H,x:H,y:H,z:H,perspective:H,transformPerspective:H,opacity:vt,originX:It,originY:It,originZ:H},Pr={borderWidth:H,borderTopWidth:H,borderRightWidth:H,borderBottomWidth:H,borderLeftWidth:H,borderRadius:H,borderTopLeftRadius:H,borderTopRightRadius:H,borderBottomRightRadius:H,borderBottomLeftRadius:H,width:H,maxWidth:H,height:H,maxHeight:H,top:H,right:H,bottom:H,left:H,inset:H,insetBlock:H,insetBlockStart:H,insetBlockEnd:H,insetInline:H,insetInlineStart:H,insetInlineEnd:H,padding:H,paddingTop:H,paddingRight:H,paddingBottom:H,paddingLeft:H,paddingBlock:H,paddingBlockStart:H,paddingBlockEnd:H,paddingInline:H,paddingInlineStart:H,paddingInlineEnd:H,margin:H,marginTop:H,marginRight:H,marginBottom:H,marginLeft:H,marginBlock:H,marginBlockStart:H,marginBlockEnd:H,marginInline:H,marginInlineStart:H,marginInlineEnd:H,fontSize:H,backgroundPositionX:H,backgroundPositionY:H,...Nr,zIndex:Mr,fillOpacity:vt,strokeOpacity:vt,numOctaves:Mr},Fr={...Pr,color:U,backgroundColor:U,outlineColor:U,fill:U,stroke:U,borderColor:U,borderTopColor:U,borderRightColor:U,borderBottomColor:U,borderLeftColor:U,filter:Ar,WebkitFilter:Ar,mask:jr,WebkitMask:jr},Ir=e=>Fr[e],Lr=new Set([Ar,jr]),Rr,zr,Br;function Vr(e,t){if(e===Rr&&t===zr)return Br;let n=Ir(e);return Lr.has(n)||(n=W),Br=n.getAnimatableNone?n.getAnimatableNone(t):void 0,Rr=e,zr=t,Br}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)},ei=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`scaleZ`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],J=new Set([...ei,`pathRotation`]),ti=e=>e===_t||e===H,ni=new Set([`x`,`y`,`z`]),ri=ei.filter(e=>!ni.has(e));function ii(e){let t=[];return ri.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 ai=new Set([`bottom`,`right`]);function oi(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 si=({transform:e})=>Qr(e,`x`),ci=({transform:e})=>Qr(e,`y`),li={width:({width:e,paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r},i)=>oi(e,i,`x`,t,n,r),height:({height:e,paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r},i)=>oi(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:si,y:ci,translateX:si,translateY:ci},ui=new Set,di=!1,fi=!1,pi=!1;function mi(){if(fi){let e=[],t=new Set,n=new Set;ui.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),ai.has(r.name)&&n.add(r.element))});let r=new Map;n.forEach(e=>{let t=ii(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)})}fi=!1,di=!1,ui.forEach(e=>e.complete(pi)),ui.clear()}function hi(){ui.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(fi=!0)})}function gi(){pi=!0,hi(),mi(),pi=!1}function _i(e,t,n){if(typeof e==`string`){if(Oe(e)||Ae(e))return parseFloat(e);if(!W.test(e)&&W.test(n))return Vr(t,n)}return e??void 0}var vi=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?(ui.add(this),di||(di=!0,K.read(hi),K.resolveKeyframes(mi))):(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=_i(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),ui.delete(this)}cancel(){this.state===`scheduled`&&(ui.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},yi=e=>e.startsWith(`--`);function bi(e,t,n){yi(t)?e.style.setProperty(t,n):e.style[t]=n}var xi={};function Si(e,t){let n=je(e);return()=>xi[t]??n()}var Ci=Si(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),wi=Si(()=>window.ViewTimeline!==void 0,`viewTimeline`),Ti=Si(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Ei=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Di={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Ei([0,.65,.55,1]),circOut:Ei([.55,0,1,.45]),backIn:Ei([.31,.01,.66,-.59]),backOut:Ei([.33,1.53,.69,.99])};function Oi(e,t){if(e)return typeof e==`function`?Ti()?On(e,t):`ease-out`:it(e)?Ei(e):Array.isArray(e)?e.map(e=>Oi(e,t)||Di.easeOut):Di[e]}function ki(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=Oi(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 Ai(e){return typeof e==`function`&&`applyToOptions`in e}function ji({type:e,...t}){return Ai(e)&&Ti()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Mi=class extends Sr{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=ji(e);this.animation=ki(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=mr(r,this.options,o,this.speed);this.updateMotionValue?.(e),bi(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},br(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 Fe(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Fe(e)}get time(){return Fe(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=z(e),t&&(this.animation.pause(),this.updateFinished())}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&&Ci()?(this.animation.timeline=e,t?.(this.animation),R):n(this)}},Ni={anticipate:Je,backInOut:qe,circInOut:Ze};function Pi(e){return e in Ni}function Fi(e){typeof e.ease==`string`&&Pi(e.ease)&&(e.ease=Ni[e.ease])}var Ii=class extends Mi{constructor(e){Fi(e),gr(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}elapsed(){return this.state===`running`?(V.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 Tr({...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?I(0,10,a):0,s=this.sample(a);n&&r&&bi(n,r,s),t.setWithVelocity(this.sample(a-o*Math.sign(i)),s,o/Math.abs(i||1))}},Li=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(W.test(e)||e===`0`)&&!e.startsWith(`url(`));function Ri(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 zi(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=Li(i,t),s=Li(a,t);return!o||!s?!1:Ri(e)||(n===`spring`||Ai(n))&&r}function Bi(e){e.duration=0,e.type=`keyframes`}var Vi=new Set([`opacity`,`clipPath`,`filter`,`transform`]),Hi=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Ui(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Hi.test(e[t]))return!0;return!1}var Wi=({mixer:e,keyframes:t})=>e&&typeof t[0]!=`number`&&t.some((n,r)=>r&&e(t[r-1],n)),Gi=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Ki=()=>!L.useManualTiming&&Object.hasOwnProperty.call(Element.prototype,`animate`);function qi(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!n||!(Vi.has(n)||Gi.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 Ki()&&(Vi.has(n)||Gi.has(n)&&Ui(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`&&!Wi(e)}var Ji=(e,t)=>t&&typeof e==`number`?t.transform(e):e,Yi={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Xi=ei.length,Zi={},Qi=(e,t,n=Ji(t,Nr[e]))=>(Zi[e]||(Zi[e]=(Yi[e]||e)+`(`))+n+`)`,$i=(e,t)=>(typeof t==`number`?t:parseFloat(t))===+!!e.startsWith(`scale`);function ea(e,t,n){let r=``;for(let i=0;i<Xi;i++){let a=ei[i],o=e[a];if(o===void 0)continue;let s=n&&(t[a]=Ji(o,Pr[a]));$i(a,o)||(r+=Qi(a,o,s||void 0)+` `)}let i=e.pathRotation;return i&&(r+=Qi(`rotate`,i)),r=r.trim(),n?n(t,r):r||`none`}var ta=new WeakMap,na=200,ra=.001,ia=.1,aa=.001,oa=100,sa=100,ca=new Set([`linear`,`easeIn`,`easeOut`,`easeInOut`]),la=e=>ca.has(e),ua=new WeakMap,da=(e,t)=>{let n=ua.get(e);return n?.[0]!==t&&(n=[t,`linear(`+sr(Array(t+1)).map(t=>wr(e(t))+` `+wr(t*100)+`%`)+`)`],ua.set(e,n)),n[1]},fa=(e,t)=>Math.min(na,Math.max(2,Math.ceil((t-e)/10))),pa=(e,t)=>Math.abs(e-t)<=ra,ma=(e,t)=>e-t,ha=(e,t,n)=>sr(Array(n+1)).map(n=>G(e,t,n)),ga=e=>e.motionValue.owner,_a=e=>ta.get(e),va=({state:e})=>e===`idle`||e===`finished`,ya=(e,t)=>e.latestValues?e.latestValues[t]:e.getValue(t)?.get(),ba=({name:e,motionValue:t})=>e&&ei.includes(e)&&t?.owner?.current instanceof HTMLElement&&Ki()&&Ti();function xa(e){let t=ga(e),{onUpdate:n,transformTemplate:r}=t.getProps();return!e.isHandoff&&!n&&!e.hasOnUpdate&&!r&&e.type!==`inertia`&&(ya(t,`transform`)||`none`)===`none`&&!ya(t,`pathRotation`)&&!t.projection?.isProjecting()&&!Wi(e)}var Sa=class{constructor(e,t,n,r){this.element=e,this.update=t,this.makeDriver=n,this.animation=r}get js(){return this.driver||=this.makeDriver(this.update)}now(){return this.driver||this.makeDriver!==Dn?this.js.now():B.isProcessing?B.timestamp:V.now()}start(e=!0){let t=_a(this.element);!t||t.isJS?this.js.start(e):t.schedule(!1,!e)}stopJS(){this.driver?.stop()}stop(){this.stopJS();let e=_a(this.element);e&&!e.isFinishing&&e.release(this.animation)}},Ca,wa=class extends Tr{constructor(e){let t=ga(e).current,{driver:n=Dn}=e,r,i=xa(e);e.driver=e=>new Sa(t,e,n,r),super(e),r=this;let a=this.driver;a&&(a.animation=this),this.canAccelerate=i;let{stop:o}=this;this.stop=()=>{this.isAccelerated()&&this.sync(),o()}}offsets(){let{keyframes:e,times:t}=this.options;return t||(this.offsetsOf!==e&&(this.offsetsOf=e,this.cachedOffsets=sr(e)),this.cachedOffsets)}get group(){return _a(ga(this.options).current)}get js(){return this.driver?.js}stopJS(){this.driver?.stopJS()}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(V.now()):void 0}tween(){let{keyframes:e,type:t,repeat:n,delay:r=0}=this.options,i=-1;if(n||t!==ur||this.holdTime!==null)return;for(let t=1;t<e.length;t++)if(e[t]!==e[t-1]){if(i>=0)return;i=t-1}let{ease:a}=this.options;nt(a)&&(a=a[i]);let o=this.offsets(),s=e=>this.startTime+(r+o[e]*this.totalDuration)/this.speed;if(i>=0){let e=it(a)?Ei(a):la(a)?Di[a]:st(a);return[s(i),s(i+1),typeof e==`string`||pa(e(0),0)&&pa(e(1),1)?e:void 0]}}boundaries(e,t){let{startTime:n,speed:r,resolvedDuration:i,options:a}=this,{delay:o=0,repeat:s=0,repeatDelay:c=0,repeatType:l,type:u}=a,d=(u||ur)===ur?this.offsets():[0,1],f=n+o/r,p=[];if(this.holdTime!==null||!(i>0))return p;for(let n=Math.max(0,Math.floor((e-f)*r/i));n<=s;n++){let a=f+n*i/r;if(a>t)break;for(let o of d){let s=a+(n%2&&l&&l!==`loop`?1-o:o)*(i-c)/r;s>e&&s<t&&p.push(s)}}return p}numberAt(e){return parseFloat(this.sampleAt(e,!0))}sync(){let e=V.now(),t=this.sampleAt(e,!0);this.options.motionValue.setWithVelocity(this.holdTime===null?this.sampleAt(e-10,!0):t,t,10)}play(){this.isStopped||((this.group||Da(ga(this.options))).tracks.add(this),super.play())}pause(){super.pause(),this.isAccelerated()&&this.group.schedule(!1)}complete(){super.complete();let{group:e}=this;e&&!e.isJS&&this.tick(V.now())}get time(){return this.isAccelerated()?Fe(I(0,this.totalDuration,this.at(V.now())-(this.options.delay||0))):super.time}set time(e){(Ca??=Object.getOwnPropertyDescriptor(Tr.prototype,`time`).set).call(this,e)}attachTimeline(e){return this.canAccelerate=!1,this.group?.demote(!0),super.attachTimeline(e)}},Ta,Ea=e=>{Ta||queueMicrotask(()=>{let e=Ta;Ta=void 0,e.forEach(e=>e())}),(Ta||=[]).push(e)};function Da(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,m=1/0,h,g=e=>{for(let t of n)if(t.name===e)return!0},_=(t,n)=>{let o={};for(let s of t===void 0?ei:a){let a=r.get(s),c=t===void 0?ya(e,s):a?a.sampleAt(n>t&&!a.timing()[1]?n:t):i[s];c!==void 0&&(o[s]=c)}return o},v=(e,t)=>{let n=``;for(let r in e){let i=e[r];t&&$i(r,i)||(n+=Qi(r,i)+` `)}return(t?n.trim():n)||`none`},y=(e,t)=>v(_(e,t)),b=(e=_())=>{t.style.transform=v(e,!0)},x=e=>{e.onfinish=e.oncancel=null,e.cancel()},S=(e=!0)=>{clearTimeout(p),m=1/0,h=void 0,e&&b(),s.forEach(({animation:e})=>x(e)),s=[]},C=(e,n)=>new Animation(new KeyframeEffect(t,e,n)),w=(e,t,n=1/0)=>{let r={animation:e,offset:t,end:n};e.startTime=V.now()+t,n<1/0&&(e.onfinish=()=>{r.isDone=!0,s.some(e=>e.end===1/0)&&(x(e),s=s.filter(e=>e!==r)),A.schedule(!1)}),e.oncancel=()=>s.includes(r)&&A.demote(),s.push(r)},T=(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]:[]},E=(e,t,n,r)=>{let i=fa(t,n);if(r.length*4>i)return;let a;for(let r of e){let e=r.numberAt(t),i=(r.numberAt((t+n)/2)-e)/(r.numberAt(n)-e);if(i===i){if(a===void 0)a=i;else if(!pa(i,a))return}}let o=ha(t,n,i).concat(r).sort(ma),s=e=>Ne(t,n,e),c,l;for(let n of e){let e=n.numberAt(t),r=o.map(t=>n.numberAt(t)-e),i=r[r.length-1],a=r.some(e=>Math.abs(e)*ra>Math.abs(i))?0:i,s=r.map(e=>a?e/a:e);if(a&&!c)c=s,l=t=>(n.numberAt(t)-e)/a;else if(s.some((e,t)=>!pa(e,a&&c[t])))return}if(!c||c.every((e,t)=>pa(e,s(o[t]))))return`linear`;let u=[],d=(e,t=l(e))=>u.push(wr(t)+` `+wr(s(e)*100)+`%`);return c.forEach((e,t)=>{t&&Math.abs(e-c[t-1])>.2&&T(l,o[t-1],o[t]).forEach(e=>d(e)),d(o[t],e)}),`linear(`+u+`)`},D=(e,t,n,r)=>{let i=[t],a=[],o=n,s=t;for(let r of e){let e=r.tween();if(e?.[2]!==`linear`){let[i,c]=r.timing(),[l,u]=e||[t,c?n:i];o=Math.min(o,l),s=Math.max(s,u),a.push(r)}}o=Math.max(t,o),s=Math.min(n,s);let c=(e,t)=>a.every(n=>!(Math.abs(n.numberAt((e+t)/2)-(n.numberAt(e)+n.numberAt(t))/2)>(n.name.startsWith(`scale`)?aa:ia))),l=(t,n,r)=>{if(n-t<1||c(t,n))i.push(n);else if(r<4)l(t,(t+n)/2,r+1),l((t+n)/2,n,r+1);else{for(let r of e)i.push(...T(e=>r.numberAt(e),t,n));i.push(n)}},u=s>o?ha(o,s,Math.ceil((s-o)/100)):[];u.push(n);for(let e of r)u.push(e,Math.min(e+.01,n));let d=t;for(let e of u.sort(ma))e>d&&l(d,e,0),d=e;return i.sort(ma)},O=e=>{let t;for(let n of e){let e=n.tween();if(!e||t&&(Math.abs(e[0]-t[0])>1||Math.abs(e[1]-t[1])>1))return;t=[e[0],e[1],!t||e[2]===t[2]?e[2]:void 0]}return t},ee=(e,t,n,r,i={fill:`both`},a)=>{let o=r?[]:e.flatMap(e=>e.boundaries(t,n)),s=r||E(e,t,n,o),c=s?[t,n]:D(e,t,n,o),l=c.map(e=>y(e,a)),u={transform:l};return s||(u.offset=c.map(e=>Ne(t,n,e))),l.every(e=>e===l[0])&&(b(_(t,a)),u=null),C(u,{...i,duration:n-t,easing:s||`linear`})},te=e=>{let t=V.now()+e;t<m&&(clearTimeout(p),m=t,p=setTimeout(()=>{m=1/0,A.schedule(!1)},e))},k=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){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=ei.filter(t=>{if(r.has(t))return!0;let n=i[t]=ya(e,t);return n!==void 0&&!$i(t,n)}),S(!1);let m=!l&&O(d);try{if(c>t){let e;if(m&&m[1]>t){let[n,r,i]=m;if(n-t>sa)return d.forEach(e=>e.sync()),te(h=n-t-sa),!0;e=typeof i==`string`?i:i?da(i,fa(n,r)):E(d,n,r,[]),e&&w(ee(d,n,r,e,{fill:`both`,endDelay:c-r}),n-t,c-n)}e||w(ee(d,t,c),0,c-t),p.forEach(e=>e<c-1&&w(C(null,{duration:e-t}),0,e-t))}if(l){let e=u+Math.floor((c-u)/l)*l;w(ee(f,e,e+l,void 0,{iterations:1/0,iterationStart:(c-e)/l,fill:`forwards`},c),c-t)}}catch{return}return s.length||S(),!0},ne=(e,t)=>{let r,i=0;for(let t of n){let n=o.get(t);if(!n)return!1;let[a,c,l]=n,u=t.at(e),d=t.timing()[0]===1/0;if(l){if(d&&(u===a||!s.length))continue;return!1}let f=(u-a)/c,p=d?0:t.speed/c;if(r===void 0)r=f,i=p;else if(Math.abs(f-r)>1||p!==i)return!1}if(r===void 0)return!0;if(!s.length){if(h===void 0||t&&i)return!1;if(i){let e=(h-r)/i;if(e<1)return!1;te(e)}return!0}for(let{offset:e,end:n,isDone:i}of s){let a=r-e;if(n<1/0&&(i?a<n-1:a<0&&(t||e<=0)||a>=n))return!1}for(let{animation:t,offset:n,isDone:a}of s){if(a)continue;let o=r-n;i&&t.updatePlaybackRate&&t.playState===`running`&&Math.abs(Number(t.currentTime)-o)<20?t.playbackRate!==i&&t.updatePlaybackRate(i):i?(t.playbackRate!==i&&(t.playbackRate=i),t.startTime=e-o/i):(t.startTime=null,t.currentTime=o)}return!0},re=()=>!n.size&&(u=!0,_a(t)===A&&ta.delete(t),A.isJS||S(),!0),ie=()=>{let t=V.now();if(A.isJS||(A.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]=ya(e,n.name),o.has(n)||(c=!0))}),A.isFinishing=!1),l=!1,u||(n.forEach(e=>va(e)&&n.delete(e)),re()))return;for(let e of n)if(!e.canAccelerate)return A.demote(!0);A.isJS&&(A.isJS=!1,c=!0,n.forEach(e=>e.stopJS()));let r=c,a=d;if(c=d=!1,r||!ne(t,a)){if(a){if(t-f<oa)return A.demote();f=t}if(!k(t))return A.demote()}else if(h!==void 0&&!a)return;n.forEach(e=>e.timing()[0]===1/0&&e.sync())},A={tracks:n,isJS:!1,isFinishing:!1,schedule(e,t){u||(c||=e,d||=!!t,l||(l=!0,B.isProcessing?K.render(ie,!1,!0):Ea(ie)))},release(e){va(e)&&n.delete(e),re()||A.schedule(!0)},check(){if(!A.isJS){for(let t in i)if(ya(e,t)!==i[t]&&!g(t))return A.schedule(!0,!0)}},demote(e){if(!(A.isJS||u))return n.forEach(t=>{t.isAccelerated()&&t.sync(),e||(t.canAccelerate=!1)}),A.isJS=!0,o=new Map,S(),n.forEach(e=>e.state===`running`&&e.js?.start()),!0}};return ta.set(t,A),A}var Oa=class extends Sr{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=V.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||vi;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=V.now();let u=zi(e,i,a,o);u||((L.instantAnimations||!s)&&l?.(mr(e,n,t)),e[0]=e[e.length-1],Bi(n),n.repeat=0);let{onComplete:d}=n;n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{d?.(),this.notifyFinished()};let f=u&&!c&&qi(n),p=!f&&ba(n);r&&(f||p||this.resolvedAt!==this.createdAt)&&(n.startTime??=vr(this.createdAt,this.resolvedAt));let m;if(f){n.element=n.motionValue?.owner?.current;try{m=new Ii(n)}catch{m=new Tr(n)}}else m=p?new wa(n):new Tr(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(),gi()),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()}},ka=class{constructor(e){this.stop=()=>{for(let e of this.animations)e.stop()},this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}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){for(let t of this.animations)t.time=e}get speed(){return this.getAll(`speed`)}set speed(e){for(let t of this.animations)t.speed=e}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return Aa(this.animations,`duration`)}get iterationDuration(){return Aa(this.animations,`iterationDuration`)}play(){for(let e of this.animations)e.play()}pause(){for(let e of this.animations)e.pause()}cancel(){for(let e of this.animations)e.cancel()}complete(){for(let e of this.animations)e.complete()}};function Aa(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 ja=class extends ka{then(e,t){return this.finished.finally(e).then(()=>{})}},Ma=class extends Mi{constructor(e){super(),this.animation=e,e.onfinish=this.onFinish=()=>{e.onfinish=null,this.finishedTime=this.time,this.notifyFinished()},br(this,{})}},Na=new WeakMap,Pa=(e,t=``)=>`${e}:${t}`;function Fa(e){let t=Na.get(e);return t||(t=new Map,Na.set(e,t)),t}function Ia(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 La=30,Ra=e=>!isNaN(parseFloat(e)),za={current:void 0},Ba=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=V.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=V.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Ra(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 Pe)).add(t)}onChangeSubscribe(e){let{events:t}=this;return!t.change&&!this.changeSubscriber?this.changeSubscriber=e:(t.change||(t.change=new Pe,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(){K.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=V.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(){za.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=V.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>La)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,La);return Ie(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return new Promise(t=>this.run(e,t))}run(e,t){this.stop(),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 Y(e,t){return new Ba(e,t)}function Va(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Ha(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Va(n,e)}var Ua={type:`spring`,stiffness:500,damping:25,restSpeed:10},Wa=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ga={type:`keyframes`,duration:.8},Ka={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},qa=(e,{keyframes:t})=>t.length>2?Ga:J.has(e)?e.startsWith(`scale`)?Wa(t[1]):Ua:Ka,Ja=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`,`out`,`mixer`]);function Ya(e){for(let t in e)if(!Ja.has(t))return!0;return!1}var Xa=(e,t,n,r={},i,a)=>o=>{let s=Ha(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=z(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};Ya(s)||Object.assign(u,qa(e,u)),u.duration&&=z(u.duration),u.repeatDelay&&=z(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Bi(u),u.delay===0&&(d=!0)),(L.instantAnimations||L.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,Bi(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=mr(u.keyframes,s);if(e!==void 0){K.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Tr(u):new Oa(u)},Za=20;function Qa(e,t,n,r){let i=1-e;return i*i*t+2*i*e*n+e*e*r}function $a(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 eo(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 to({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=eo(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=eo(r.x,r.y,o.x,o.y,l,t)):d!==0&&(a=d)}let d=i?$a(0,r.x,u.x,o.x,r.y,u.y,o.y):0,f=i?$a(1,r.x,u.x,o.x,r.y,u.y,o.y):0,p=i?Be(-180,180,f-d):0;return e=>{let t={x:Qa(e,r.x,u.x,o.x),y:Qa(e,r.y,u.y,o.y)};return i&&(t.rotate=Be(-180,180,$a(e,r.x,u.x,o.x,r.y,u.y,o.y)-(d+p*e))*i),t}}}function no(e={}){let t=to(e);return{interpolateProjection(e){let n=e.x.translate,r=e.y.translate;if(!(Math.sqrt(n*n+r*r)<Za))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,...Ha(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 ro=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function io(e){let t=ro.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function ao(e,t,n=1){let[r,i]=io(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return Oe(e)?parseFloat(e):e}return mt(i)?ao(i,t,n+1):i}function oo(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function so(e,t,n,r){let i=t=>typeof t==`function`?t(n===void 0?e.custom:n,...oo(r)):t;return t=i(t),typeof t==`string`&&(t=e.variants&&e.variants[t]),i(t)}function co(e,t,n){return so(e.getProps(),t,n,e)}var lo=(e,t)=>t===`exit`?e.presenceContext?.custom:void 0,uo=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...ei]),fo=e=>Array.isArray(e);function po(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Y(n))}function mo(e){return fo(e)?e[e.length-1]||0:e}function ho(e,t){let{transitionEnd:n={},transition:r={},...i}=co(e,t)||{};i={...i,...n};for(let t in i)po(e,t,mo(i[t]))}var X=e=>!!(e&&e.getVelocity);function go(e){return!!(X(e)&&e.add)}function _o(e,t){let n=e.getValue(`willChange`);if(go(n))return n.add(t);if(!n&&L.WillChange){let n=new L.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}var vo=`framerAppearId`,yo=`data-framer-appear-id`;function bo(e){return e.props[yo]}var xo=typeof window<`u`;function So({protectedKeys:e,needsAnimating:t},n){let r=n in e&&!t[n];return t[n]=!1,r}function Co(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Va(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&&So(f,t))continue;let o={delay:n,...Ha(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){K.update(()=>r.set(i));continue}let p=!1;if(xo&&window.MotionHandoffAnimation){let n=bo(e);if(n){let e=window.MotionHandoffAnimation(n,t,K);e!==null&&(o.startTime=e,p=!0)}}_o(e,t);let m=l??e.shouldReduceMotion;r.run(Xa(t,r,i,m&&uo.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>K.update(()=>{o&&ho(e,o)});d.length?Promise.all(d).then(t):t()}return d}function wo(e,t,n={}){let r=co(e,t,lo(e,n.type)),i=n.transitionOverride||(r?.transition??(e.getDefaultTransition()||{})),a=()=>Promise.all(r?Co(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(wo(e,t,{...n,delay:r+(typeof o==`function`?0:o)+Ia(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 To(e,t,n={}){return e.notify(`AnimationStart`,t),(Array.isArray(t)?Promise.all(t.map(t=>wo(e,t,n))):typeof t==`string`?wo(e,t,n):Promise.all(Co(e,co(e,t,n.custom),n))).then(()=>{e.notify(`AnimationComplete`,t)})}var Eo={test:e=>e===`auto`,parse:e=>e},Do=e=>t=>t.test(e),Oo=[_t,H,Nt,Mt,Ft,Pt,Eo],ko=e=>Oo.find(Do(e));function Ao(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||Ae(e)}var jo=new Set([`auto`,`none`,`0`]);function Mo(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!jo.has(t)&&Jt(t)&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]!==i&&(e[r]=Vr(n,i))}var No=class extends vi{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(gt(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(),mt(r))){let i=ao(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!uo.has(n)||e.length!==2)return;let[r,i]=e;if(typeof r==`number`&&typeof i==`number`)return;let a=ko(r),o=ko(i);if(gt(r)!==gt(i)&&li[n])this.needsMeasurement=!0;else if(a!==o){if(ti(a)&&ti(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else li[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Ao(e[t]))&&n.push(t);n.length&&Mo(e,n,t)}measure(){let{element:e,name:t}=this;return li[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()}},Po=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`],Fo=new Set([`borderWidth`,`borderTopWidth`,`borderRightWidth`,`borderBottomWidth`,`borderLeftWidth`,`borderRadius`,...Po,`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 Io(e,t){for(let n=0;n<e.length;n++)typeof e[n]==`number`&&Fo.has(t)&&(e[n]=e[n]+`px`)}function Lo(e){return!!(typeof e==`function`&&Ti()||!e||typeof e==`string`&&(e in Di||Ti())||it(e)||Array.isArray(e)&&e.every(Lo))}var Ro=je(()=>{try{document.createElement(`div`).animate({opacity:[1]})}catch{return!1}return!0}),zo=[];function Bo(e){Vo(e),zo.unshift(e)}function Vo(e){Ce(zo,e)}function Ho(e){return zo.find(t=>t.test(e))}function Uo(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?K.update(()=>l.set(c)):(l.run(Xa(o,l,c,s&&uo.has(o)?{type:!1}:n,r)),l.animation&&i.push(l.animation))}let{transitionEnd:c}=t;if(c){let t=()=>K.update(()=>{for(let t in c)e(t).set(c[t])});i.length?Promise.all(i).then(t):t()}return i}function Wo(e,t,n,r,i){let a,o=!1,s=Uo(r=>{let s=a?.[r]??e.get(t,r);if(!s){let c;if(!i){let i=n[r];c=Go(i)??e.read(t,r,i)}s=Y(c,{owner:i}),o?e(t,{[r]:s}):(a||={})[r]=s}return s},n,r,i);return o=!0,a&&e(t,a),s}function Go(e){let t=Array.isArray(e)?e[0]:void 0;return t===null?void 0:t}function Ko(e){return ke(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}function qo(e){return ke(e)&&`ownerSVGElement`in e}var Z={};function Jo(e){return Z.current?.add(e),e}function Yo(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 Zo(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 Qo(e){let t=(t,n)=>{let r=Zo(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 $o=class{constructor(e=K.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 es(e,{step:t,...n}={}){let r=new WeakMap;return Object.assign((n,i)=>{let a=r.get(n)??new $o(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 ts(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&&($i(i,a)||(t+=(t&&` `)+Qi(i,a)))}let i=e.get(`pathRotation`)?.get();return i&&(t+=(t&&` `)+Qi(`rotate`,i)),t||`none`}var ns=new Set([`originX`,`originY`,`originZ`]),rs=(e,t)=>Ji(e.get(t)?.get(),Pr[t]),is=(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)=>ei.indexOf(e)-ei.indexOf(t)))}t.get(`transform`)||(!Ko(e)&&!t.get(`transformBox`)&&is(e,t,`transformBox`,new Ba(`fill-box`)),t.set(`transform`,new Ba(`none`),()=>{ta.get(e)?.check(),e.style.transform=ts(t)})),a=t.get(`transform`)}else ns.has(n)?(t.get(`transformOrigin`)||t.set(`transformOrigin`,new Ba(``),()=>{let n=rs(t,`originX`)??`50%`,r=rs(t,`originY`)??`50%`,i=rs(t,`originZ`)??0;e.style.transformOrigin=`${n} ${r} ${i}`}),a=t.get(`transformOrigin`)):i=yi(n)?()=>{e.style.setProperty(n,r.getCurrent())}:()=>{e.style[n]=Ji(r.getCurrent(),Pr[n])};return t.set(n,r,i,a)},as=e=>Ko(e)||qo(e),os=(e,t)=>{if(J.has(t))return $r(e,t);let n=getComputedStyle(e),r=yi(t)?n.getPropertyValue(t):n[t];return typeof r==`string`&&r.trim()||0},ss=es(is,{test:as,read:os}),cs=Qo(ss);function ls(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}function us(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(ft(e))i[e]=n;else{let t=Ji(n,Pr[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=ea(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 ds={offset:`stroke-dashoffset`,array:`stroke-dasharray`},fs={offset:`strokeDashoffset`,array:`strokeDasharray`};function ps(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?ds:fs;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var ms=[`transform`,`opacity`,`clipPath`,`filter`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function hs(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(us(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 ms)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&&ps(d,i,a,o,!1)}function gs(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 _s=(e,t,n,r,i=n)=>{let a=gs(e,i);!a&&(i.startsWith(`data`)||i.startsWith(`aria`))&&(i=ls(i));let o=Pr[n]||Pr[i],s=a?()=>{e[i]=Ji(r.get(),Pr[n])}:()=>{let t=Ji(r.get(),o);t==null?e.removeAttribute(i):e.setAttribute(i,String(t))};return t.set(n,r,s)},vs=Qo(es(_s));function ys(e,t,n,r){return K.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 Ba(`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 bs=(e,t,n,r)=>n.startsWith(`path`)&&!J.has(n)?ys(e,t,n,r):n.startsWith(`attr`)?_s(e,t,n,r,ws(n)):n===`d`?t.set(n,r,()=>{let t=r.get()?.replace(/path\(|["')]/g,``);t===void 0?e.removeAttribute(n):e.setAttribute(n,t)}):(J.has(n)||ns.has(n)||yi(n)||n in e.style?is:_s)(e,t,n,r),xs=(e,t)=>J.has(t)?Pr[t]?.default||0:yi(t)||ms.includes(t)?os(e,t)||e.getAttribute(ls(t))||0:(t=ws(t),e.getAttribute(ls(t))??e.getAttribute(t)??void 0),Ss=es(bs,{test:qo,read:xs}),Cs=Qo(Ss);function ws(e){return e.replace(/^attr([A-Z])/,(e,t)=>t.toLowerCase())}function Ts({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Es({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Ds(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 Os(e){return e===void 0||e===1}function ks({scale:e,scaleX:t,scaleY:n}){return!Os(e)||!Os(t)||!Os(n)}var As=[`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skewX`,`skewY`];function js(e){return ks(e)||Ns(e)||Ms(e)}function Ms(e){return e.z||e.rotate||e.rotateX||e.rotateY||e.rotateZ||e.skewX||e.skewY}function Ns(e){return Ps(e.x)||Ps(e.y)}function Ps(e){return e&&e!==`0%`}function Fs(e,t,n){return n+t*(e-n)}function Is(e,t,n,r,i){return i!==void 0&&(e=Fs(e,i,r)),Fs(e,n,r)+t}function Ls(e,t=0,n=1,r,i){e.min=Is(e.min,t,n,r,i),e.max=Is(e.max,t,n,r,i)}function Rs(e,{x:t,y:n}){Ls(e.x,t.translate,t.scale,t.originPoint),Ls(e.y,n.translate,n.scale,n.originPoint)}var zs=.999999999999,Bs=1.0000000000001;function Vs(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&&(Hs(e.x,-a.scroll.offset.x),Hs(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Rs(e,o)),r&&(r.path?.[s]||r)!==a&&js(a.latestValues)&&Gs(e,a.latestValues,a.layout?.layoutBox));t.x<Bs&&t.x>zs&&(t.x=1),t.y<Bs&&t.y>zs&&(t.y=1)}function Hs(e,t){e.min+=t,e.max+=t}function Us(e,t,n,r,i=.5){Ls(e,t,n,G(e.min,e.max,i),r)}function Ws(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function Gs(e,t,n){let r=n??e;Us(e.x,Ws(t.x,r.x),t.scaleX,t.scale,t.originX),Us(e.y,Ws(t.y,r.y),t.scaleY,t.scale,t.originY)}function Ks(e,t){return Ts(Ds(e.getBoundingClientRect(),t))}function qs(e,t,n){let r=Ks(e,n),{scroll:i}=t;return i&&(Hs(r.x,i.offset.x),Hs(r.y,i.offset.y)),r}var Js=()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),Ys={},Xs=e=>qo(e)?Ss:ss,Zs=class{constructor(e,t){this.effect=e,this.current=t,this.KeyframeResolver=No}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 Ks(this.current)}getProps(){return Ys}};function Qs(e,t,n,r){if(Z.current?.track(e),r)return Uo(e=>r.getValue(e,null),t,n,r);let i=Xs(e);return Wo(i,e,t,n,new Zs(i,e))}var $s=e=>Xs(e).state(e)?.release();function ec(e,t){let n=Xs(e).state(e);if(!n)return;let r=ta.get(e);r&&(r.demote(),ta.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 tc=es((e,t,n,r)=>t.set(n,r,()=>{e[n]=r.get()}),{test:e=>ke(e),read:(e,t)=>{let n=e[t];return typeof n==`string`||typeof n==`number`?n:void 0}}),{schedule:nc,cancel:rc}=Tn(queueMicrotask,!1),ic=(e=V.now())=>{if(B.isProcessing)return;let t=e-B.timestamp;B.delta=L.useManualTiming?t:Math.max(Math.min(t,40),1),V.set(B.timestamp=e),B.isProcessing=!0;for(let e in En)En[e].process(B);B.isProcessing=!1};function ac(e,t,n){let r=X(e)?e:Y(e);return r.run(Xa(``,r,t,n)),r.animation}var oc={};function sc(e){for(let t in e)oc[t]=e[t],ft(t)&&(oc[t].isCSSVariable=!0)}var cc={value:null,addProjectionMetrics:null,countProjection:void 0};function lc(e,t){let n=V.now();e=Xo(e);let r=({timestamp:i})=>{let a=i-n;a>=t&&(q(r),e(a-t))};return K.setup(r,!0),Jo(()=>q(r))}function uc(e,t){return lc(e,z(t))}function dc(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function fc(e){return qo(e)&&e.tagName===`svg`}function pc(e){return X(e)?e.get():e}var mc=e=>typeof e==`number`?e:parseFloat(e),hc=Po.length,gc=e=>typeof e==`number`||H.test(e);function _c(e,t,n,r,i,a){i?(e.opacity=G(0,n.opacity??1,yc(r)),e.opacityExit=G(t.opacity??1,0,bc(r))):a&&(e.opacity=G(t.opacity??1,n.opacity??1,r));for(let i=0;i<hc;i++){let a=Po[i],o=vc(t,a),s=vc(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||gc(o)===gc(s)?(e[a]=Math.max(G(mc(o),mc(s),r),0),(Nt.test(s)||Nt.test(o))&&(e[a]+=`%`)):e[a]=s)}for(let i=0;i<As.length;i++){let a=As[i];(t[a]||n[a])&&(e[a]=G(t[a]||0,n[a]||0,r))}}function vc(e,t){return e[t]===void 0?e.borderRadius:e[t]}var yc=xc(0,.5,Xe),bc=xc(.5,.95,R);function xc(e,t,n){return r=>r<e?0:r>t?1:n(Ne(e,t,r))}var Sc=(e,t,{x:n,y:r})=>{let i=e*e+t*t;return i<1?0:-1e3*(n*e+r*t)/i},Cc=(e,t=300)=>{let n=I(.25,2,t/300),{stiffness:r,damping:i}=er({...e,duration:e.duration&&z(e.duration)});return{...e,stiffness:r,damping:i*Math.sqrt(n),mass:n}};function wc(e,t){e.min=t.min,e.max=t.max}function Tc(e,t){wc(e.x,t.x),wc(e.y,t.y)}function Ec(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Dc=.9999,Oc=1.0001,kc=-.01,Ac=.01;function Q(e){return e.max-e.min}function jc(e,t,n){return Math.abs(e-t)<=n}function Mc(e,t,n,r=.5){e.origin=r,e.originPoint=G(t.min,t.max,e.origin),e.scale=Q(n)/Q(t),e.translate=G(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Dc&&e.scale<=Oc||isNaN(e.scale))&&(e.scale=1),(e.translate>=kc&&e.translate<=Ac||isNaN(e.translate))&&(e.translate=0)}function Nc(e,t,n,r){Mc(e.x,t.x,n.x,r?.originX),Mc(e.y,t.y,n.y,r?.originY)}function Pc(e,t,n,r=0){e.min=(r?G(n.min,n.max,r):n.min)+t.min,e.max=e.min+Q(t)}function Fc(e,t,n,r){Pc(e.x,t.x,n.x,r?.x),Pc(e.y,t.y,n.y,r?.y)}function Ic(e,t,n,r=0){let i=r?G(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Q(t)}function Lc(e,t,n,r){Ic(e.x,t.x,n.x,r?.x),Ic(e.y,t.y,n.y,r?.y)}function Rc(e,t,n,r,i){return e-=t,e=Fs(e,1/n,r),i!==void 0&&(e=Fs(e,1/i,r)),e}function zc(e,t=0,n=1,r=.5,i,a=e,o=e){if(Nt.test(t)&&(t=parseFloat(t),t=G(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=G(a.min,a.max,r);e===a&&(s-=t),e.min=Rc(e.min,t,n,s,i),e.max=Rc(e.max,t,n,s,i)}function Bc(e,t,[n,r,i],a,o){zc(e,t[n],t[r],t[i],t.scale,a,o)}var Vc=[`x`,`scaleX`,`originX`],Hc=[`y`,`scaleY`,`originY`];function Uc(e,t,n,r){Bc(e.x,t,Vc,n?.x,r?.x),Bc(e.y,t,Hc,n?.y,r?.y)}var Wc=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Gc=Wc(`applewebkit/`)&&!Wc(`chrome/`)?Math.round:R;function Kc(e){e.min=Gc(e.min),e.max=Gc(e.max)}function qc(e){Kc(e.x),Kc(e.y)}var Jc=()=>({translate:0,scale:1,origin:0,originPoint:0}),Yc=()=>({x:Jc(),y:Jc()}),Xc=()=>({min:0,max:0}),$=()=>({x:Xc(),y:Xc()});function Zc(e){return e.translate===0&&e.scale===1}function Qc(e){return Zc(e.x)&&Zc(e.y)}function $c(e,t){return e.min===t.min&&e.max===t.max}function el(e,t){return $c(e.x,t.x)&&$c(e.y,t.y)}function tl(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function nl(e,t){return tl(e.x,t.x)&&tl(e.y,t.y)}function rl(e){return Q(e.x)/Q(e.y)}function il(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var al=class{constructor(){this.members=[]}add(e){Se(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||(Ce(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(Ce(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 ol(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var sl={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(H.test(e))e=parseFloat(e);else return e}return`${ol(e,t.target.x)}% ${ol(e,t.target.y)}%`}},cl={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=W.parse(e);if(i.length>5)return r;let a=W.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=G(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},ll={borderRadius:Object.assign({},sl,{applyTo:Po.slice()}),borderTopLeftRadius:sl,borderTopRightRadius:sl,borderBottomLeftRadius:sl,borderBottomRightRadius:sl,boxShadow:cl};function ul(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;(i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `);let s=``;if(n){let{transformPerspective:e}=n;e&&(r=`perspective(${e}px) ${r}`);for(let e=0;e<As.length;e++){let t=As[e],r=n[t];r&&(s+=`${t}(${r}deg) `),!e&&n.pathRotation&&(s+=`rotate(${n.pathRotation}deg) `)}}if(s){(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),r+=s;let n=e.x.scale*t.x,i=e.y.scale*t.y;(n!==1||i!==1)&&(r+=`scale(${n}, ${i})`)}else e.x.scale!==1||e.y.scale!==1?r+=`scale(${e.x.scale}, ${e.y.scale})`:r||t.x===1&&t.y===1||(r=`scale(1, 1)`);return r||`none`}function dl(e){return[e(`x`),e(`y`)]}var fl=(e,t)=>e.depth-t.depth,pl=class{constructor(){this.children=[],this.isDirty=!1}add(e){Se(this.children,e),this.isDirty=!0}remove(e){Ce(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(fl),this.isDirty=!1,this.children.forEach(e)}},ml={hasAnimatedSinceResize:!0,hasEverUpdated:!1},hl=[`z`,`skew`,`skewZ`],gl=1e3,_l=0;function vl(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}var yl=e=>e.instance&&ta.get(e.instance)?.demote()&&e.resetSkewAndRotation();function bl(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=bo(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,K,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&bl(r)}function xl(e){if(e)return e.options.allowProjection===!1?xl(e.parent):e.projection}function Sl({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return Object.assign(oc,{...ll,...oc}),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:xl(e.parent));d.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:!!a||o&&dc(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=_l++,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(Tl),this.nodes.forEach(Il),this.nodes.forEach(Ll),this.nodes.forEach(El),cc.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 pl)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Pe),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=qo(t)&&!fc(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;K.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n?.(),n=lc(i,250),ml.hasAnimatedSinceResize&&(ml.hasAnimatedSinceResize=!1,this.nodes.forEach(Fl)))})}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()||Wl,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=n.getProps(),c=!this.targetLayout||!nl(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={...Ha(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||Fl(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,q(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(Rl),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&&bl(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;yl(this),this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,yl(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(kl),this.nodes.forEach(Ol);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Al);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Ml),this.nodes.forEach(Nl),this.nodes.forEach(Pl),this.nodes.forEach(Cl),this.nodes.forEach(wl)):this.nodes.forEach(Al),this.clearAllSnapshots();let e=V.now();B.delta=I(0,1e3/60,e-B.timestamp),B.timestamp=e,B.isProcessing=!0,En.update.process(B),En.preRender.process(B),En.render.process(B),B.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,nc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Dl),this.sharedNodes.forEach((e,t)=>e.members.length?e.removeLeadSnapshot():this.sharedNodes.delete(t))}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,K.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){K.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){if(!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!Q(this.snapshot.measuredBox.x)&&!Q(this.snapshot.measuredBox.y)&&(this.snapshot=void 0),this.snapshot)){let{visualElement:e}=this.options,t=this.currentAnimation?.state===`running`,n=t&&this.animationEdges;t&&this.relativeTarget&&(this.snapshot.relativeVelocity=this.relativeVelocity?.slice()||[]);let r=n&&this.motionValue?.getVelocity()||0,i=[0,1,2,3,4,5].map(t=>(t<4?n&&(this.edgeValues?this.edgeVelocity(t):-n[t]*r/1e3):e?.getValue(t<5?`x`:`y`)?.getVelocity())||0);i.some(Boolean)&&(this.snapshot.velocity=i)}}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&&yl(this);let t=this.projectionDelta&&!Qc(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||js(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)),qc(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(ql))){let{scroll:e}=this.root;e&&(Hs(t.x,e.offset.x),Hs(t.y,e.offset.y))}return t}removeElementScroll(e){let t=$();if(Tc(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&&Tc(t,e),Hs(t.x,i.offset.x),Hs(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n,r,i=0){let a=n||$();Tc(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&&(Hs(a.x,-n.scroll.offset.x),Hs(a.y,-n.scroll.offset.y)),js(n.latestValues)&&Gs(a,n.latestValues,n.layout?.layoutBox)}return!r&&js(this.latestValues)&&Gs(a,this.latestValues,this.layout?.layoutBox),a}removeTransform(e){let t=$();Tc(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!js(n.latestValues))continue;let r;n.instance&&(ks(n.latestValues)&&n.updateSnapshot(),r=$(),Tc(r,n.measurePageBox())),Uc(t,n.latestValues,n.snapshot?.layoutBox,r)}return js(this.latestValues)&&Uc(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!==B.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=B.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(),Fc(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):Tc(this.target,this.layout.layoutBox),Rs(this.target,this.targetDelta)):Tc(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),cc.countProjection?.(1))}getClosestProjectingParent(){if(!(!this.parent||ks(this.parent.latestValues)||Ns(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=$(),Lc(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Tc(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===B.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;Tc(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Vs(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():(Ec(this.prevProjectionDelta.x,this.projectionDelta.x),Ec(this.prevProjectionDelta.y,this.projectionDelta.y)),Nc(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&il(this.projectionDelta.x,this.prevProjectionDelta.x)&&il(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),cc.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=Yc(),this.projectionDelta=Yc(),this.projectionDeltaWithTransform=Yc()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=Yc();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(Ul));this.animationProgress=0;let f,p=n?.interpolateProjection(e),m=this.layout?.layoutBox,h=m&&[m.x.min,m.x.max,m.y.min,m.y.max].map((t,n)=>{let{translate:r,scale:i,originPoint:a}=e[n<2?`x`:`y`];return(t-a)*(i-1)+r});h?.every(isFinite)||(h=void 0),this.animationEdges=h,this.edgeValues=this.startVelocity=this.impulse=this.relativeVelocity=this.relativeStart=void 0;let g=r?.velocity,_=r?.relativeVelocity||g;if(_?.slice(0,4).some(Boolean)&&this.getClosestProjectingParent()&&(this.relativeStart=_),g&&h){let t=g.slice(0,4).map((e,t)=>e+(c?g[4+(t>>1)]:0));t.some(Boolean)&&(this.startVelocity=p?Sc(e.x.translate,e.y.translate,{x:(t[0]+t[1])/2,y:(t[2]+t[3])/2}):t)}this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n),l=this.edgeValues;for(let t=0;t<2;t++){let r=t?`y`:`x`;l?zl(o[r],e[r],this.layout.layoutBox[r],l[t*2],l[t*2+1]):Bl(o[r],e[r],n)}if(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){Lc(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0);let e=this.relativeTargetOrigin,t=s;if(Hl(this.relativeTarget,e,t,n),this.isSpringLayout){let e=this.relativeTarget,t=this.impulse||0,n=this.relativeStart,r=V.now(),i=(r-this.relativeTime)/1e3;this.relativeTime=r;let a=this.relativeVelocity||=[0,0,0,0];for(let r=0;r<4;r++){let o=r<2?`x`:`y`,s=r&1?`max`:`min`;n&&(e[o][s]+=n[r]*t),f&&i>0&&(a[r]=(e[o][s]-f[o][s])/i)}}f&&el(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=$(),Tc(f,this.relativeTarget)}c&&(this.animationValues=a,_c(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`);let t=this.isSpringLayout=e.type===`spring`;this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.resumingFrom&&(this.resumingFrom.edgeValues=void 0),this.pendingAnimation&&=(q(this.pendingAnimation),void 0),this.pendingAnimation=K.update(()=>{ml.hasAnimatedSinceResize=!0,this.motionValue||=Y(0),this.motionValue.jump(0,!1);let n=this.startVelocity;this.startVelocity=void 0;let r=e,i=0;if(t){if(e.mass===`auto`){let t=this.layout?.layoutBox;r=Cc(e,t&&Math.sqrt(Q(t.x)*Q(t.y)))}let t=this.relativeStart;if((n||t)&&!e.repeat){if(typeof n==`number`)i=n;else{let e=n&&this.animationEdges;r={...r,type:r=>{let i=[r.velocity,...n||[]].map((t,n)=>nr({...r,keyframes:n?[e[n-1],0]:r.keyframes,velocity:t})),a=i.length;t&&i.push(nr({...r,keyframes:[0,0],velocity:1e3,restDelta:.5,restSpeed:5}));let o=0,s=[],c={calculatedDuration:null,next:t=>{o=t;let n=i[0].next(t),r=n.done;for(let e=1;e<i.length;e++){let{value:n,done:o}=i[e].next(t);e<a?s[e-1]=n:this.impulse=n/1e3,r&&=o}return e&&(this.edgeValues=s),n.done=r,n}};return c.calculatedDuration=An(c),c.next(0),this.edgeVelocity=e=>i[e+1].velocity(o),c}}}}}let a=ac(this.motionValue,[0,1e3],{...r,velocity:i,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}});this.currentAnimation=a,xr(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=this.edgeValues=this.edgeVelocity=this.impulse=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.edgeValues=this.impulse=void 0,this.mixTargetDelta?.(gl),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&&Kl(this.options.animationType,this.layout.layoutBox,n.layoutBox)){let{layoutBox:e}=this.layout,t=i;i=this.target||$(),Gl(i.x,t.x,e.x),Gl(i.y,t.y,e.y)}Tc(t,i),Gs(t,r),Nc(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new al),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(!Ms(t))return;let n={};for(let t=0;t<hl.length;t++)vl(hl[t],e,n,this.animationValues);for(let t=0;t<As.length;t++)vl(As[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=pc(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=pc(t?.pointerEvents)||``),this.hasProjected&&!js(this.latestValues)&&(e.transform=r?r({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=n.animationValues||n.latestValues;this.applyTransformsToTarget();let a=ul(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 oc){if(i[t]===void 0)continue;let{correct:r,applyTo:o,isCSSVariable:s}=oc[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?pc(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(Ol),this.root.sharedNodes.clear()}}}function Cl(e){e.updateLayout(),jl(e)}function wl(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`)dl(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`;wc(r[e],a[e])}else Kl(i,t.layoutBox,n)&&dl(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=Yc();Nc(c,n,t.layoutBox);let l=Yc();Nc(l,a?e.applyTransform(r,!0):n,s);let u=!Qc(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=$();Lc(c,a?e.resumeFrom.applyTransform(t.layoutBox,!0,void 0,!0,f.depth+1):t.layoutBox,r.layoutBox,s);let l=$();Lc(l,n,i.layoutBox,s),a&&o(c,l),nl(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 Tl(e){cc.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 El(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Dl(e){e.clearSnapshot()}function Ol(e){e.clearMeasurements()}function kl(e){e.isLayoutDirty=!0,e.updateLayout()}function Al(e){e.isLayoutDirty=!1}function jl(e){let{snapshot:t,dragAncestor:n}=e,r=n?.isAnimationBlocked&&n.layout;if(!t||!r||e.resumeFrom||e.isAnimationBlocked)return;let i=n.dragSnapshot;dl(e=>Hs(t.layoutBox[e],r.layoutBox[e].min-i.layoutBox[e].min))}function Ml(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.dragSnapshot||e.layout,e.isLayoutDirty=!0)}function Nl(e){e.relativeTarget&&e.relativeParent?.isLayoutDirty&&(e.currentAnimation?e.isLayoutDirty=!0:(e.targetDelta=void 0,e.removeRelativeTarget()))}function Pl(e){let{visualElement:t}=e.options;t?.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Fl(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Il(e){e.resolveTargetDelta()}function Ll(e){e.calcProjection()}function Rl(e){e.resetSkewAndRotation()}function zl(e,t,n,r,i){let a=n.max-n.min,o=a?Math.max(0,(a+i-r)/a):1,s=e.originPoint=t.originPoint;e.origin=t.origin,e.scale=o,e.translate=n.min+r-(s+(n.min-s)*o)}function Bl(e,t,n){e.translate=G(t.translate,0,n),e.scale=G(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Vl(e,t,n,r){e.min=G(t.min,n.min,r),e.max=G(t.max,n.max,r)}function Hl(e,t,n,r){Vl(e.x,t.x,n.x,r),Vl(e.y,t.y,n.y,r)}function Ul(e){return e.animationValues?.opacityExit!==void 0}var Wl={duration:.45,ease:[.4,0,.1,1]};function Gl(e,t,n){e.max=Q(n)+(e.min=t.min)}function Kl(e,t,n){return e===`position`||e===`preserve-aspect`&&!jc(rl(t),rl(n),.2)}function ql(e){return e!==e.root&&e.scroll?.wasRoot}function Jl(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var Yl=Sl({attachResizeListener:(e,t)=>Jl(e,`resize`,t),measureScroll:Js,checkIsScrollRoot:()=>!0}),Xl={current:void 0},Zl=Sl({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Xl.current){let e=new Yl({});e.mount(window),e.setOptions({layoutScroll:!0}),Xl.current=e}return Xl.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Ql=new WeakMap;function $l(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function eu(e){return typeof e==`string`||Array.isArray(e)}var tu=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`whilePinch`,`exit`],nu=[`initial`].concat(tu);function ru(e){if($l(e.animate))return!0;for(let t=0;t<nu.length;t++)if(eu(e[nu[t]]))return!0;return!1}function iu(e){return!!(ru(e)||e.variants)}function au(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 ou={current:null},su={current:!1},cu=typeof window<`u`;function lu(){if(su.current=!0,cu){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>ou.current=e.matches;e.addEventListener(`change`,t),t()}else ou.current=!1}}var uu=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],du={};function fu(e){du=e}function pu(){return du}var mu=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=vi,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=V.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,K.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=ru(t),this.isVariantNode=iu(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){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,Ql.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:(su.current||lu(),this.shouldReduceMotion=ou.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection?.unmount(),q(this.notifyUpdate),q(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&&Vi.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Mi({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:z(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&&K.preRender(this.notifyUpdate),n&&(this.projection&&(this.projection.isTransformDirty=!0),ta.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 du){let t=du[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)&&ta.get(this.current)?.demote(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<uu.length;t++){let n=uu[t];this.propEventSubscriptions[n]?.(),delete this.propEventSubscriptions[n];let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=au(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=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`&&(Oe(n)||Ae(n))?n=parseFloat(n):typeof n!=`number`&&!W.test(n)&&W.test(t)&&(n=Vr(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 Pe)).add(t)}notify(e,...t){this.events[e]?.notify(...t)}scheduleRenderMicrotask(){nc.render(this.render)}},hu=class extends mu{constructor(){super(...arguments),this.KeyframeResolver=No}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 gu(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 _u(e,{layout:t,layoutId:n}){return J.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!oc[e]||e===`opacity`)}function vu(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])||_u(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function yu(e){return window.getComputedStyle(e)}var bu=class extends hu{constructor(){super(...arguments),this.type=`html`,this.renderInstance=gu}mount(e){super.mount(e)}readValueFromInstance(e,t){if(J.has(t))return this.projection?.isProjecting?Zr(t):$r(e,t);{let n=yu(e),r=(ft(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Ks(e,t)}build(e,t,n){us(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return vu(e,t,n)}};function xu(e){let t=Ql.get(e);return t||(t=new bu({props:{},presenceContext:null,visualState:{latestValues:{},renderState:{transform:{},transformOrigin:{},style:{},vars:{}}}},{allowProjection:!0}),ec(e,t)),e.style.transform&&!js(t.latestValues)&&(e.style.transform=``),t}var Su={},Cu={updateScroll:()=>{Cu.scroll||={offset:Js()}}},wu=e=>{let t=xu(e),n=new Pe,r={instance:e,root:Cu,path:[Cu],setOptions:R,isProjecting:R,applyProjectionStyles:R,removeElementScroll:e=>e,updateLayout:()=>{let i=qs(e,Cu,t.getTransformPagePoint());qc(i),r.layout={layoutBox:i},n.notify()},addEventListener:(e,t)=>e===`measure`?n.add(t):R,unmount:()=>{r.instance=void 0,t.projection===r&&(t.projection=void 0)}};return t.projection=r,t.current||t.mount(e),[r,r.unmount]},Tu=e=>{let t=Ql.get(e)?.projection;return t?.instance?[t,R]:(Su.create||wu)(e)},Eu=`[data-layout],[data-layout-id]`,Du=new WeakMap,Ou;function ku(e){let t=[];return e instanceof HTMLElement&&e.matches(Eu)&&t.push(e),e.querySelectorAll(Eu).forEach(e=>{e instanceof HTMLElement&&t.push(e)}),t}function Au(){if(B.isProcessing)return;let e=V.now();B.delta=I(0,1e3/60,e-B.timestamp),B.timestamp=e,B.isProcessing=!0,En.update.process(B),En.preRender.process(B),En.render.process(B),B.isProcessing=!1}function ju(e){let t=e.parentElement;for(;t;){let e=Du.get(t);if(e?.instance)return e;t=t.parentElement}}function Mu(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 Nu(e,t){let n=Du.get(e);if(n)n.setOptions(Mu(e,t));else{let r=xu(e);n=new Zl(r.latestValues,ju(e)),r.projection=n,n.setOptions({...Mu(e,t),visualElement:r}),n.mount(e),Du.set(e,n)}return n.isPresent=!0,n.options.onExitComplete&&n.setOptions({onExitComplete:void 0}),n}function Pu(e){let t=Nu(e);return[t,()=>Du.get(e)===t&&Lu(e,t)]}Su.create=Pu;function Fu(e){let t=Du.get(e)||Ql.get(e)?.projection;return t?.instance?[t,()=>{}]:Pu(e)}function Iu(e){return[...e].sort((e,t)=>e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}function Lu(e,t){t.setOptions({onExitComplete:void 0}),(!t.getStack()||t.isLead())&&t.currentAnimation?.stop(),t.unmount(),Du.delete(e)}function Ru(){let e=Ou;if(!e)return;Ou=void 0,Au();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 Iu(t.keys())){let r=t.get(e),i=Nu(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(),nc.render(()=>{for(let t of e)t.finalize()})};r.length?Promise.all(r).then(i):i()}var zu=Ru,Bu=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}),Ou||(Ou=[],queueMicrotask(Ru)),Ou.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 ku(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 ku(this.scope)){if(this.tracked.has(t))continue;let n=Nu(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(),Lu(n,t)}}),t.relegate())return;n.remove()}Lu(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 ka([...e]))}};function Vu(e,t,n){return typeof e==`function`?{scope:Z.current?.root||document,updateDom:e,defaultOptions:t}:{scope:e instanceof Document?e:Zo(e)[0]??document,updateDom:t,defaultOptions:n}}var Hu=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1;function Uu(e){return{point:{x:e.pageX,y:e.pageY}}}var Wu=e=>t=>Hu(t)&&e(t,Uu(t));function Gu(e,t,n,r){return Jl(e,t,Wu(n),r)}var Ku=new WeakMap,qu,Ju=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:qo(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Yu=Ju(`inline`,`width`,`offsetWidth`),Xu=Ju(`block`,`height`,`offsetHeight`);function Zu({target:e,borderBoxSize:t}){Ku.get(e)?.forEach(n=>{n(e,{get width(){return Yu(e,t)},get height(){return Xu(e,t)}})})}function Qu(e){e.forEach(Zu)}function $u(){typeof ResizeObserver<`u`&&(qu=new ResizeObserver(Qu))}function ed(e,t){qu||$u();let n=Zo(e);return n.forEach(e=>{let n=Ku.get(e);n||(n=new Set,Ku.set(e,n)),n.add(t),qu?.observe(e)}),()=>{n.forEach(e=>{let n=Ku.get(e);n?.delete(t),n?.size||qu?.unobserve(e)})}}var td=new Set,nd;function rd(){nd=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};td.forEach(t=>t(e))},window.addEventListener(`resize`,nd)}function id(e){return td.add(e),nd||rd(),()=>{td.delete(e),!td.size&&typeof nd==`function`&&(window.removeEventListener(`resize`,nd),nd=void 0)}}function ad(e,t){return Jo(typeof e==`function`?id(e):ed(e,t))}var od=(e,t)=>Math.abs(e-t);function sd(e,t){let n=od(e.x,t.x),r=od(e.y,t.y);return Math.sqrt(n**2+r**2)}var cd=new Set([`auto`,`scroll`]),ld=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o,immediate:s}={}){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=dd(this.lastRawMoveEventInfo,this.transformPagePoint));let e=pd(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=sd(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e;this.history.push({...r,timestamp:V.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=dd(t,this.transformPagePoint),this.hasPendingMove=!0,K.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=pd(e.type===`pointercancel`?this.lastMoveEventInfo:dd(t,this.transformPagePoint),this.history);this.startEvent&&n?.(e,a),r?.(e,a)},!Hu(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=s?0:a,this.contextWindow=r||window;let c=Uu(e),l=dd(c,this.transformPagePoint),{point:u}=l;this.history=[{...u,timestamp:V.now()}];let{onSessionStart:d}=t;d&&d(e,pd(l,this.history));let f={passive:!0,capture:!0};this.removeListeners=Me(Gu(this.contextWindow,`pointermove`,this.handlePointerMove,f),Gu(this.contextWindow,`pointerup`,this.handlePointerUp,f),Gu(this.contextWindow,`pointercancel`,this.handlePointerUp,f)),o&&this.startScrollTracking(o),s&&(this.handlePointerMove(e,c),this.updatePoint())}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(cd.has(e.overflowX)||cd.has(e.overflowY))&&this.scrollPositions.set(t,ud(t)),t=t.parentElement}this.scrollPositions.set(window,ud(window)),this.removeScrollListeners=Me(Jl(window,`scroll`,this.onElementScroll,{capture:!0}),Jl(window,`scroll`,this.onWindowScroll,{}))}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=ud(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),K.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners?.(),this.removeScrollListeners?.(),this.scrollPositions.clear(),q(this.updatePoint)}},ud=e=>e===window?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop};function dd(e,t){return t?{point:t(e.point)}:e}function fd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function pd({point:e},t){return{point:e,delta:fd(e,hd(t)),offset:fd(e,md(t)),velocity:gd(t,.1)}}function md(e){return e[0]}function hd(e){return e[e.length-1]}function gd(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=hd(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>z(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>z(t)*2&&(r=e[1]);let a=Fe(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 _d=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function vd(e){return _d.has(e.tagName)||e.isContentEditable===!0}var yd=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function bd(e){return yd.has(e.tagName)||e.isContentEditable===!0}var xd={x:!1,y:!1};function Sd(){return xd.x||xd.y}function Cd(e){return e===`x`||e===`y`?xd[e]?null:(xd[e]=!0,()=>{xd[e]=!1}):xd.x||xd.y?null:(xd.x=xd.y=!0,()=>{xd.x=xd.y=!1})}function wd(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?G(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?G(n,e,r.max):Math.min(e,n)),e}function Td(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 Ed(e,{top:t,left:n,bottom:r,right:i}){return{x:Td(e.x,n,i),y:Td(e.y,t,r)}}function Dd(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 Od(e,t){return{x:Dd(e.x,t.x),y:Dd(e.y,t.y)}}function kd(e,t){let n=.5,r=Q(e),i=Q(t);return i>r?n=Ne(t.min,t.max-r,e.min):r>i&&(n=Ne(e.min,e.max-i,t.min)),I(0,1,n)}function Ad(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 jd=.35;function Md(e=jd){return e===!1?e=0:e===!0&&(e=jd),{x:Nd(e,`left`,`right`),y:Nd(e,`top`,`bottom`)}}function Nd(e,t,n){return{min:Pd(e,t),max:Pd(e,n)}}function Pd(e,t){return typeof e==`number`?e:e[t]||0}function Fd(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 Id=new WeakMap,Ld=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,t={}){if(this.visualElement.presenceContext?.isPresent===!1)return;let n=e=>{t.snapToCursor&&this.snapToCursor(e),this.stopAnimation()},r=(e,t)=>{let{drag:n,dragConstraints:r,dragPropagation:i,onDragStart:a}=this.getProps();if(n&&!i&&(this.openDragLock?.(),this.openDragLock=Cd(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),dl(e=>{let t=this.getAxisMotionValue(e).get()||0;if(mt(t)&&(t=ao(t,this.visualElement.current)||0),H.test(t))t=parseFloat(t);else if(Nt.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&&K.update(()=>a(e,t),!1,!0),_o(this.visualElement,`transform`),this.visualElement.animationState?.setActive(`whileDrag`,!0)},i=(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=Ud(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&&K.update(()=>a(e,t),!1,!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},o=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints||this.point)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:s}=this.getProps();this.panSession=new ld(e,{onSessionStart:n,onStart:r,onMove:i,onSessionEnd:a,resumeAnimation:o},{...t,transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,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&&K.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||!Hd(e,n,this.currentDirection))return;let r=this.getAxisMotionValue(e),i=this.originPoint[e]+t[e],a=this.constraints&&this.constraints[e];a&&(i=wd(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;Rd(e)?this.constraints&&this.scroll===Fd(n)||(this.constraints=this.resolveRefConstraints()):this.constraints=e&&r&&typeof e==`object`?Ed(r.layoutBox,e):!1,this.elastic=Md(t),i!==this.constraints&&!Rd(e)&&r&&this.constraints&&!this.hasMutatedConstraints&&dl(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Ad(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!Rd(e))return!1;let n=zd(e),{projection:r}=this.visualElement;if(!r||!r.layout)return!1;this.scroll=Fd(r);let i=qs(n,r.root,this.visualElement.getTransformPagePoint()),a=Od(r.layout.layoutBox,r.removeElementScroll(i));if(t){let e=t(Es(a));this.hasMutatedConstraints=!!e,e&&(a=Ts(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)&&Hd(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=dl(e=>{if(!Hd(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 _o(this.visualElement,e),n.start(Xa(e,n,0,t,this.visualElement,!1))}stopAnimation(){dl(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();dl(e=>{if(!Hd(e,n,this.currentDirection))return;let t=this.getAxisMotionValue(e),{min:r,max:o}=a[e];t.set((t.get()||0)+i[e]-G(r,o,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Rd(t)||!n||!this.constraints)return;this.stopAnimation();let r=this.constraints,i={x:0,y:0};dl(e=>{let t=this.getAxisMotionValue(e).get();i[e]=kd({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(),dl(t=>{let n=this.getAxisMotionValue(t);if(!Hd(t,e,null)||!n.get())return;let{min:r,max:a}=this.constraints[t];n.set(G(r,a,i[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Id.set(this.visualElement,this);let e=this.visualElement.current,t=Gu(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&bd(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps(),r=Rd(t)&&zd(t);r&&(this.constraints=this.resolveRefConstraints(),n||=Vd(e,r,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i.layout||(i.root?.updateScroll(),i.updateLayout()),K.read(r);let o=Jl(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(dl(t=>{if(!Hd(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=jd,dragMomentum:n=!0}=e;return{...e,dragElastic:t,dragMomentum:n}}};function Rd(e){return!!e&&typeof e==`object`&&(`current`in e||`nodeType`in e)}var zd=e=>`current`in e?e.current:e;function Bd(e){let t=!0;return()=>{t?t=!1:e()}}function Vd(e,t,n){let r=ad(e,Bd(n)),i=ad(t,Bd(n));return()=>{r(),i()}}function Hd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Ud(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}function Wd({dragConstraints:e,onMeasureDragConstraints:t}){return Rd(e)&&!!t}var Gd=({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,x:m,y:h})=>({drag:e||!0,_dragX:m||h&&Y(0),_dragY:h||m&&Y(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}),Kd=[`user-select`,`-webkit-user-select`,`-webkit-touch-callout`,`touch-action`];function qd(e,t){let{style:n}=e,r=e.getAttribute(`draggable`),i=Kd.map(e=>n.getPropertyValue(e)),a=t?`pan-`+(t===`x`?`y`:`x`):`none`;return Kd.forEach((e,t)=>n.setProperty(e,t<3?`none`:a)),e.setAttribute(`draggable`,`false`),()=>{Kd.forEach((e,t)=>n.setProperty(e,i[t])),r===null?e.removeAttribute(`draggable`):e.setAttribute(`draggable`,r)}}function Jd(e,t={}){let n=Gd(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=Zo(e).map(e=>{r?.track(e);let[i,a]=Tu(e);i.setOptions({alwaysMeasureLayout:!0});let o=new Ld(Ql.get(e),()=>n),s=o.addListeners(),c=qd(e,t.axis);return()=>{c(),s?.(),o.cancel(),o.stopAnimation(),a()}});return Jo(()=>i.forEach(e=>e()))}function Yd(e,t){let n=Zo(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},Jo(()=>r.abort())]}function Xd(e){return!(e.pointerType===`touch`||Sd())}function Zd(e,t,n={}){t=Xo(t);let[r,i,a]=Yd(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(!Xd(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 Qd=150,$d=(e,t)=>{let n=e.get();typeof n==`string`&&e.set(parseFloat(n)*(n.endsWith(`%`)?t/100:1))},ef=e=>typeof e==`object`?e:{},tf=(e=jd)=>{let t=e=>e===!0?jd:+(e||0);return typeof e==`object`?{min:t(e.min),max:t(e.max)}:{min:t(e),max:t(e)}},nf=({pan:e,origin:t})=>e!==!1||!!t,rf=(e,{min:t=-1/0,max:n=1/0})=>I(t,n,e),af=(e,t,n)=>{let r=rf(e,ef(t)),i=n[e<r?`min`:`max`];return i?r+(e-r)/i:e};function of(e,t,n,r){let i=new Map,a={x:0,y:0,l:0,a:0},o={...a},s={...a},c,l,u,d=0,f=0,p=0,m=0,h=0,g=0,_=!1,v=0,y={},b,x=1,S=0,C=()=>{},w={},T=()=>w=n()||w,E=()=>({point:{x:a.x,y:a.y},offset:{x:a.x-o.x,y:a.y-o.y},scale:Math.exp(a.l-o.l),rotate:a.a-o.a}),D=()=>{let n=e.getBoundingClientRect(),{left:r,top:i}=n,{scale:a,rotate:o,elastic:s}=T(),[c,l,_,v]=u=t(),y=tf(s);a!==!1&&c.stop(),o!==!1&&l.stop(),x=af(c.get(),a,y),S=af(l.get(),o,y),p=e.offsetWidth??n.width,m=e.offsetHeight??n.height,nf(w)&&(_.stop(),v.stop(),$d(_,p),$d(v,m)),h=_.get(),g=v.get(),d=r+n.width/2-h,f=i+n.height/2-g},O=(e,t,n,r,i)=>{let{origin:a}=w;if(typeof a!=`object`)return e;let o=n*Math.PI/180,s=(a.x-.5)*p*t,c=(a.y-.5)*m*t;return{x:d+r+Math.cos(o)*s-Math.sin(o)*c,y:f+i+Math.sin(o)*s+Math.cos(o)*c}},ee=()=>Id.get(Ql.get(e)),te=()=>{let{scale:e,rotate:t,snapToOrigin:n,transition:r}=w,[i,o,s,c]=u,l=i.get(),p=o.get(),m=s.get(),h=c.get(),{snap:g}=ef(t),_=rf(l,ef(e)),v=rf(g?Math.round((p+.2*o.getVelocity())/g)*g:p,ef(t));n&&(_=1,v=Math.round(p/360)*360);let y=nf(w)&&!ee()?.isDragging,b=O(a,l,p,m,h),x=d+m-b.x,S=f+h-b.y,T=e=>{let t=G(l,_,e),n=G(p,v,e),r=(n-p)*Math.PI/180,i=Math.cos(r)*t/l,a=Math.sin(r)*t/l;return[t,n,m+i*x-a*S-x,h+a*x+i*S-S]};if(!l||_===l&&v===p&&!(n&&y&&(m||h)))return;let E=nr({keyframes:[0,1],stiffness:200,damping:40,...r}),D=V.now(),te=()=>{let{value:r,done:a}=E.next(V.now()-D);a&&C();let[l,u,d,f]=T(r);e!==!1&&i.set(l),t!==!1&&o.set(u),y&&!ee()?.isDragging&&(s.set(n?G(m,0,r):d),c.set(n?G(h,0,r):f))};C=()=>q(te),K.update(te,!0)},k=()=>{if(!u||!_)return;_=!1;let{rotate:e,scale:t,pan:n,elastic:r}=T(),[i,o,c,p]=u,m=tf(r),v=i.get(),b=ee(),C=b?.isDragging;C||(h=c.get(),g=p.get());let D=O(s,v,o.get(),h,g),te=0,k=1,ne=(e,t)=>{let n=ef(t),r=rf(e,n);return m[e<r?`min`:`max`]?[wd(e,n,m),e]:[r,r]};if(t!==!1&&v){let[e,n]=ne(I(1e-9,1e9,x*Math.exp(a.l-s.l)),t);x=n,k=e/v,i.set(e)}if(e!==!1){let[t,n]=ne(S+a.a-s.a,e);S=n,te=t-o.get(),te&&o.set(t)}if(nf(w)){c.stop(),p.stop();let e=te*Math.PI/180,t=Math.cos(e)*k,r=Math.sin(e)*k,i=D.x-d-h,o=D.y-f-g,l=n===!1?0:a.x-s.x,u=n===!1?0:a.y-s.y;if(h+=i+l-(t*i-r*o),g+=o+u-(r*i+t*o),C){let e=b.panSession.history;e.splice(0,e.length-1),e[0].timestamp=-1/0,b.originPoint.x=h,b.originPoint.y=g}c.set(h),p.set(g)}Object.assign(s,a),y.onPinch?.(l,E())},ne=()=>{if(!n())return ie(l);k(),c===`wheel`&&V.now()-v>Qd&&ie(l)},re=(t,i)=>{if(!n())return;C(),c=i,l=t,_=!1,u=void 0,y={},Object.assign(o,a),Object.assign(s,a),K.read(D),K.preRender(ne,!0);let d=r(e,t,E());y=typeof d==`function`?{onComplete:d}:d||{}},ie=e=>{c&&(q(D),q(ne),n()&&(k(),u&&te()),c=void 0,y.onComplete?.(e,E()))},A=e=>{l=e,_=!0},j=()=>{let[e,t]=i.values(),n=Math.atan2(t.y-e.y,t.x-e.x)*180/Math.PI-a.a;a.x=(e.x+t.x)/2,a.y=(e.y+t.y)/2,a.l=Math.log(Math.hypot(t.x-e.x,t.y-e.y)||1),a.a+=n-360*Math.round(n/360)},ae=e=>i.set(e.pointerId,{x:e.clientX,y:e.clientY}),oe=e=>{i.has(e.pointerId)&&(ae(e),c===`pointer`&&(j(),A(e)))},M=e=>{i.delete(e.pointerId)&&(c===`pointer`&&ie(e),i.size||(le(),ce()))},se=t=>{c||i.size>1||i.has(t.pointerId)||t.pointerType===`mouse`||(i.size||le(!0),ae(t),i.size===2&&(j(),re(t,`pointer`),c&&!b&&!Id.get(Ql.get(e))&&(b=Cd(!0))))},ce=()=>{let e=b;b=void 0,e&&K.postRender(e)},le=e=>{let t=e?`addEventListener`:`removeEventListener`;window[t](`pointerdown`,se),window[t](`pointermove`,oe),window[t](`pointerup`,M),window[t](`pointercancel`,M)},ue=e=>{!e.ctrlKey||c&&c!==`wheel`||(a.x=e.clientX,a.y=e.clientY,!c&&(a.l=0,re(e,`wheel`),!c)||(e.preventDefault(),a.l-=I(-50,50,e.deltaY*(e.deltaMode?16:1))/100,v=V.now(),A(e)))},de=e=>{if(!i.size&&(!c||c===`gesture`)){let{scale:t,rotation:n,clientX:r,clientY:i}=e;a.x=r,a.y=i,a.l=Math.log(t),a.a=n,c?(A(e),e.type===`gestureend`&&ie(e)):e.type===`gesturestart`&&re(e,`gesture`)}c&&e.preventDefault()},fe={pointerdown:se,wheel:ue,gesturestart:de,gesturechange:de,gestureend:de};for(let t in fe)e.addEventListener(t,fe[t],{passive:!1});return()=>{for(let t in fe)e.removeEventListener(t,fe[t]);le(),ie(l),C(),i.clear(),ce()}}var sf=[`scale`,`rotate`,`x`,`y`],cf=e=>{let t=Ql.get(e),n=qo(e)?Ss:ss;return sf.map(r=>{if(t)return t.getValue(r,+(r===`scale`));let i=n.get(e,r);return i||(i=Y(os(e,r)),n(e,{[r]:i})),i})};function lf(e,t,n={}){let r=()=>{};typeof t==`function`?r=t:t&&(n=t);let i=Z.current;if(i){let e=i.bind(r);r=(t,n)=>{let r=e(t,n);if(typeof r!=`object`)return r;let a={};for(let e in r){let t=e,n=r[t];a[t]=n&&i.bind(n)}return a}}let a=Zo(e).map(e=>{i?.track(e);let{style:t}=e,a=t.touchAction;t.touchAction=`none`;let o=of(e,()=>cf(e),()=>n,r);return()=>{o(),t.touchAction=a}});return Jo(()=>a.forEach(e=>e()))}var uf=(e,t)=>t?e===t||uf(e,t.parentElement):!1,df=new WeakSet;function ff(e){return t=>{t.key===`Enter`&&e(t)}}function pf(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var mf=(e,t)=>{let n=!1,r=ff(()=>{n||df.has(e)||(n=!0,pf(e,`down`))}),i=ff(()=>{n&&(n=!1,pf(e,`up`))});e.addEventListener(`keydown`,r,t),e.addEventListener(`keyup`,i,t),e.addEventListener(`blur`,()=>{e.removeEventListener(`keydown`,r),e.removeEventListener(`keyup`,i),n&&pf(e,`cancel`)},{...t,once:!0})};function hf(e){return Hu(e)&&!Sd()}var gf=new WeakSet,_f=100,vf=8,yf=(e,t,n)=>Math.hypot(e.clientX-t.clientX,e.clientY-t.clientY)>n,bf=e=>e.preventDefault();function xf(e,t,n={}){t=Xo(t);let[r,i,a]=Yd(e,n),o=new WeakMap,s=e=>{let r=e.currentTarget;if(!hf(e)||gf.has(e))return;n.stopPropagation&&gf.add(e);let{count:a=1,countTimeout:s=.3,hold:c=0,repeat:l}=n,u=V.now(),d=z(c),f=z(s),p=o.get(r);p?.expire(yf(p.event,e,_f))?p=void 0:p&&(q(p.expire),o.delete(r));let m=p?p.count+1:1,h=m>=a,g=h&&(c||l),_=!c,v=0,y;if(df.add(r),p)y=p.handlers;else{let n=t(r,e);y=typeof n==`function`?{onComplete:n}:n||{}}h&&_&&y.onActive?.();let b=z(l),x=d||b,S=u+x,C=!0,w=()=>{if(i.signal.aborted)return q(w);let e=Math.min(1-(S-V.now())/x,1);C&&e<1&&(e=0),C=!1,y.onHold?.(e),e<1||(_?y.onRepeat?.(++v):(_=!0,y.onActive?.()),l?(C=!0,S+=x=b):q(w))},T={...i,capture:!0},E=(t,n)=>{if(Hu(t)){if(window.removeEventListener(`pointerup`,D,T),window.removeEventListener(`pointercancel`,O,T),window.removeEventListener(`pointermove`,ee,T),r.removeEventListener(`contextmenu`,bf),q(w),df.delete(r),Sd()&&(n=!1),n&&!h){let n=V.now(),a=e=>{let s=i.signal.aborted;if(s||e===!0||V.now()-n>f)return q(a),o.delete(r),s||y.onComplete?.(t,{success:!1}),!0};o.set(r,{count:m,event:e,handlers:y,expire:a}),K.update(a,!0)}else y.onComplete?.(t,{success:n&&_})}},D=e=>{E(e,r===window||r===document||n.useGlobalTarget||uf(r,e.target))},O=e=>{E(e,!1)},ee=t=>{Hu(t)&&((l||!_)&&yf(e,t,vf)||a>1&&Sd())&&O(t)};window.addEventListener(`pointerup`,D,T),window.addEventListener(`pointercancel`,O,T),(g||a>1)&&window.addEventListener(`pointermove`,ee,T),g&&(K.update(w,!0),r.addEventListener(`contextmenu`,bf,{...i,passive:!1}))};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,s,i),Ko(e)&&(e.addEventListener(`focus`,()=>mf(e,i),i),!vd(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Sf(e,t){let n=window.getComputedStyle(e);return yi(t)?n.getPropertyValue(t):n[t]}var Cf={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 wf(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`})`:Cf[e]||e;return t?`(not (${r}))`:r}).join(` and `)}function Tf(...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:Zo(t)[0],transition:i,add(e){return c.push(e),()=>Ce(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)=>{$s(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(wf(e[t]));n.addEventListener(`change`,p),o.push([t,n])}}return Jo(g.cancel),f(),g}var Ef=[`nodes`,`calculatedTargetDeltas`,`calculatedProjections`];function Df(){cc.value=null,cc.addProjectionMetrics=null,cc.countProjection=void 0}function Of(){if(cc.value)throw Df(),Error(`Stats are already being measured`);let e=cc;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[Ef[n]]++}}function kf(e,t){if(e===`first`)return 0;{let n=t-1;return e===`last`?n:n/2}}function Af(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=st(r)(l/u)*u),t+l}}function jf(...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=ar(i,a,o);return t?s(r):s}var Mf=new Set,Nf=({timestamp:e})=>{Mf.forEach(t=>t.tick(e))},Pf=class extends Sr{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():(Mf.size||K.update(Nf,!0),Mf.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=vr(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 pr(this.generator,this.currentTime,this.options.velocity)}now(){return this.driver?this.driver.now():V.now()}teardown(){this.state=`idle`,this.driver?this.driver.stop():(Mf.delete(this),Mf.size||q(Nf))}};function Ff(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=mc(t);if(i?.state===`running`){i.setTarget(o,n.velocity);return}let u=mc(e.get()),d=i?i.getGeneratorVelocity():e.getVelocity();if(l(),u===o)return;let f=i=new Pf({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(If(t,o),!1)):e.set(If(t,o))},a=t.on(`change`,i),s=t.get();mc(s)-mc(e.get())&&i(s);let c=e.on(`destroy`,a);return()=>{a(),c(),l()}}return l}function If(e,t){return t?e+t:e}function Lf(e,t){let n=Y(X(e)?e.get():e);return Rf(n,e,t),n}function Rf(e,t,n={}){let r={type:`spring`,...n};return gr(r),r.type=r.type||ur,Ff(e,t,r)}function zf(e,t,n){let r=()=>t.set(n()),i=()=>K.preRender(r,!1,!0),a=e.map(e=>e.on(`change`,i));t.on(`destroy`,()=>{a.forEach(e=>e()),q(r)})}function Bf(e){let t=[];za.current=t;let n=e();za.current=void 0;let r=Y(n);return zf(t,r,e),r}function Vf(e,t,n,r){let i=jf(t,n,r);return Bf(()=>i(e.get()))}function Hf(e,t){let n=Y(X(e)?e.get():e);return Uf(n,e,t),n}function Uf(e,t,n){return Ff(e,t,{...n,type:nr})}var Wf=[...Oo,U,W],Gf=e=>Wf.find(Do(e)),Kf=0,qf=()=>`motion-view-${Kf++}`,Jf=e=>e.startsWith(`motion-view-`);function Yf(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 Zf(e,t,n,r,i,a=[],o,s=[],c){let l=Zo(e);if(r)return l.map((e,l)=>{let u=t.get(e);if(u)return u;let d=r[l]??qf();return e.style?.setProperty(`view-transition-name`,d),n.push(e),t.set(e,d),Yf(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`&&!Jf(d)?f=d:(f=qf(),e.style?.setProperty(`view-transition-name`,f),n.push(e)),t.set(e,f),Yf(e,i,a),Xf(e,f,o,s,c),f})}function Qf(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 $f(e){return e===`layout`?`group`:e===`enter`||e===`new`?`new`:`old`}var ep={},tp=null,np={set:(e,t)=>{ep[e]=t},commit:()=>{tp||(tp=document.createElement(`style`),tp.id=`motion-view`);let e=``;for(let t in ep){let n=ep[t];e+=`${t} {\n`;for(let[t,r]of Object.entries(n))e+=` ${t}: ${r};\n`;e+=`}
2
- `}tp.textContent=e,document.head.appendChild(tp),ep={}},remove:()=>{tp&&tp.parentElement&&tp.parentElement.removeChild(tp)}};function rp(e){let t=e.match(/::view-transition-(old|new|group-children|group|image-pair)\((.*?)\)/);return t?{layer:t[2],type:t[1]}:null}function ip(){return document.getAnimations().filter(e=>{let{effect:t}=e;return!!t&&t.target===document.documentElement&&t.pseudoElement?.startsWith(`::view-transition`)})}function ap(e,t){return t.has(e)&&Object.keys(t.get(e)).length>0}var op=[`layout`,`enter`,`exit`,`new`,`old`],sp=e=>e.split(` `).every(e=>parseFloat(e)===0),cp={group:[`layout`],new:[`new`,`enter`],old:[`old`,`exit`]},lp={new:{opacity:0,scale:.85},old:{opacity:1,scale:1}},up=.2;function dp(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 ka([])))();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,Zo(n)),b=Zf(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=Zf(a.get(n),l,u,v.get(n),c,d,h,f,p)}}else b=Zf(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=pp(Ha(c,n),Ha(fp(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&&=z(r.duration);let{delay:i=0,duration:a,ease:o}=ji(r);return{delay:z(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 Po)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)??D(e))&&h.add(e)},D=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)>up},O=()=>{ap(`root`,n)||np.set(`:root`,{"view-transition-name":`none`}),np.set(`::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*)`,{"animation-timing-function":`linear !important`}),h.forEach(e=>{np.set(`::view-transition-group(${e})`,{overflow:`clip`}),np.set(`::view-transition-old(${e}), ::view-transition-new(${e})`,{width:`100%`,height:`100%`,"object-fit":`cover`})}),p.forEach(e=>{np.set(`::view-transition-group-children(${e})`,{overflow:`clip`})}),np.commit()},ee=()=>{Qf(u,d,f),np.remove()},te=async()=>{await t(),b(`new`),T(`new`),E(),O()},k;try{b(`old`),T(`old`),O(),k=document.startViewTransition(te)}catch(e){return ee(),Promise.reject(e)}return k.finished.finally(ee),new Promise((e,t)=>{k.ready.then(()=>{let t=ip(),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 op){if(!e[a]||a===`enter`&&!o||a===`exit`&&!s)continue;let l=$f(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`){ze(!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=pp(Ha(c,m),Ha(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)?lp[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&&=z(f.duration),f.delay&&=z(f.delay),n.push(new Mi({...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=rp(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 Ma(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:Oi(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=z(r.duration)),r=ji(r),d={delay:z(r.delay??0),duration:u&&i!==void 0?z(i):r.duration,easing:u?`linear`:Oi(r.ease,r.duration)}}t.updateTiming(d),n.push(new Ma(e))}w.forEach((e,t)=>{if(!h.has(t))return;let{delay:r,duration:i,ease:a}=C(t);for(let o of Po){let s=e.old?.radii[o]||e.new?.radii[o]||`0px`,c=e.new?.radii[o]||e.old?.radii[o]||`0px`;sp(s)&&sp(c)||n.push(new Mi({element:document.documentElement,name:o,pseudoElement:`::view-transition-group(${t})`,keyframes:[s,c],delay:r,duration:i,ease:a}))}}),e(new ka(n))}).catch(()=>k.updateCallbackDone.then(()=>e(new ka([])),t))})}function fp(e,t){for(let n of cp[t]??[]){let t=e?.[n]?.options;if(t)return t}}function pp(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 mp=[],hp=null;function gp(){hp=null;let[e]=mp;e&&_p(e)}function _p(e){Ce(mp,e),hp=e,dp(e).then(t=>(e.notifyReady(t),t.finished)).catch(t=>e.notifyReject(t)).finally(gp)}function vp(){for(let e=mp.length-1;e>=0;e--){let t=mp[e],{interrupt:n}=t.options;if(n===`immediate`){let n=mp.slice(0,e+1).map(e=>e.update),r=mp.slice(e+1);t.update=()=>{n.forEach(e=>e())},mp=[t,...r];break}}hp&&mp[0]?.options.interrupt!==`immediate`||gp()}function yp(e){mp.push(e),nc.render(vp)}var bp=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=R,this.notifyReject=R,this.readyPromise=new Promise((e,t)=>{this.notifyReady=e,this.notifyReject=t}),this.update=e,this.options={interrupt:`wait`,...t},this.readyPromise.catch(R),yp(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 xp(e,t={}){let n=new bp(e,t);return Yo(n),n}var Sp=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function Cp(e,t){return e in t}var wp=class extends mu{constructor(){super(...arguments),this.type=`object`}readValueFromInstance(e,t){if(Cp(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}},Tp=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`]),Ep=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Dp(e,t,n,r){gu(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Tp.has(n)?n:ls(n),t.attrs[n])}function Op(e,t,n){let r=vu(e,t,n);for(let n in e)if(n!==`children`&&(X(e[n])||X(t[n]))){let t=ei.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var kp=class extends hu{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=$}getBaseTargetFromProps(e,t){return J.has(t)?super.getBaseTargetFromProps(e,t)??Zr(t):e[t]}getDefaultValue(e){return J.has(e)?this.latestValues[e]??Zr(e):void 0}readValueFromInstance(e,t){if(J.has(t)){let e=Ir(t);return e&&e.default||0}if(ms.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=Tp.has(t)?t:ls(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Op(e,t,n)}build(e,t,n){hs(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Dp(e,t,n,r)}mount(e){this.isSVGTag=Ep(e.tagName),super.mount(e)}};function Ap(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 jp=[...tu].reverse(),Mp=e=>e?.out===!0?e:e?.out;function Np(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>To(e,t,n))),n=Fp(),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`&&co(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&&Mp(f(l??(g&&g.props.initial))?.transition);if(jp.forEach((t,r)=>{let i=n[t],l=o[t],f=g&&g.props[t],v=l===void 0?eu(f)||f===!1?f:void 0:l,y=eu(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||$l(v)||typeof v==`boolean`)return;if(b===!1&&(h=r),t===`exit`&&i.isActive&&b!==!0){m={...m,...i.prevResolvedValues};return}let S=Pp(i.prevProp,v),C=S||y&&(b&&!x||r>h),w=!1,T=Array.isArray(v)?v:[v],E={},D;if(b!==!1)for(let n of T){let{transition:r,transitionEnd:i,...a}=co(e,n,lo(e,t))||{};E={...E,...a,...i},D=Mp(r)||D}let{prevResolvedValues:O}=i;for(let t in{...O,...E}){if(t in m)continue;let n=E[t],r=O[t],a=Array.isArray(n)&&Array.isArray(r)?!Ap(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=D,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=co(s,n)?.transition?.delayChildren;r.delay=Ia(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&&!X(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=Fp(),i=!0}}}function Pp(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Ap(t,e):!1}function Fp(){let e={};for(let t of tu)e[t]={isActive:t===`animate`,protectedKeys:{},needsAnimating:{},prevResolvedValues:{},out:{}};return e}var Ip=nu.length;function Lp(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Lp(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Ip;n++){let r=nu[n],i=e.props[r];(eu(i)||i===!1)&&(t[r]=i)}return t}var Rp=e=>!e.isLayoutDirty&&e.willUpdate(!1);function zp(){let e=new Set,t=new WeakMap,n=()=>e.forEach(Rp);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 Bp(e,t,n){let{scope:r,updateDom:i,defaultOptions:a}=Vu(e,t,n),o=new Bu(r,i,{...Z.current?.transition,...a});return Yo(o),o}var Vp=K,Hp=Sn.reduce((e,t)=>(e[t]=e=>q(e),e),{}),Up=w({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Wp(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=Wp(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():Wp(e[t],null)}}}}function Kp(...e){return A(Gp(...e),e)}var qp=e=>{let{width:t,height:n}=e?.getBoundingClientRect()||{};return[t/e?.offsetWidth||1,n/e?.offsetHeight||1]},Jp=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]=qp(r);t+=e*a,n+=i*o}if(getComputedStyle(r).position===`fixed`)break}let[i,a]=qp(e.offsetParent);return[t/i,n/a]},Yp=class extends l{getSnapshotBeforeUpdate(e){let t=this.props.getElement();if(Ko(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=Ko(e)&&e.offsetWidth||0,r=Ko(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=Jp(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=ce(),l=N(null),u=N({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:d}=j(Up),f=Kp(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 ue(()=>{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 nc.setup(()=>{let[e,t]=Jp(r);f=u.current.point[0]-e,h=u.current.point[1]-t}),nc.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(Yp,{isPresent:t,getElement:p,sizeRef:u,pop:o,children:o===!1?e:C(e,{ref:f})})}var Zp=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:o,mode:s,anchorX:c,anchorY:l,root:u})=>{let d=P(Qp),f=ce(),p=N(),m=N(n),h=N(r);F(()=>{m.current=n,h.current=r});let g=!0,_=fe(()=>(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&&(_={..._}),fe(()=>{d.forEach((e,t)=>d.set(t,!1))},[n]),M(()=>{!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(xe.Provider,{value:_,children:e})};function Qp(){return new Map}function $p(e=!0){let t=j(xe);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=ce();M(()=>{if(e)return i(a)},[e]);let o=A(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}function em(){return tm(j(xe))}function tm(e){return e===null||e.isPresent}var nm=e=>e.key||``;function rm(e){let t=[];return c.forEach(e,e=>{O(e)&&t.push(e)}),t}var im=({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]=$p(c),m=fe(()=>rm(e),[e]),h=c&&!f?[]:m.map(nm),g=N(!0),_=P(()=>new Map),v=N(new Set),[y,b]=he(m),[x,S]=he(m);F(()=>{c&&!f&&!x.length&&p?.()},[f,c,x.length,p]);let C=N();M(()=>()=>{let e=C.current;C.current=void 0,e?.()},[x]),F(()=>{g.current=!1;for(let e=0;e<x.length;e++){let t=nm(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(nm(n));r===-1?(e.splice(t++,0,n),w.push(n)):t=r+w.length+1}return w.every(e=>_.get(nm(e)))?e=m:s===`wait`&&(e=w),S(rm(e)),b(m),null}let{forceRender:T}=j(ye);return i(r,{children:x.map(e=>{let r=nm(e),y=c&&!f?!1:m===x||h.includes(r);return i(Zp,{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)})})},am=w(null);function om(){let e=N(!1);return F(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function sm(){let e=om(),[t,n]=he(0),r=A(()=>{e.current&&n(t+1)},[t]);return[A(()=>K.postRender(r),[r]),t]}var cm=e=>e===!0,lm=e=>cm(e===!0)||e===`id`,um=({children:e,id:t,inherit:n=!0})=>{let r=j(ye),a=j(am),[o,s]=sm(),c=N(null),l=r.id||a;c.current===null&&(lm(n)&&l&&(t=t?l+`-`+t:l),c.current={id:t,group:cm(n)&&r.group||zp()});let u=fe(()=>({...c.current,forceRender:o}),[s]);return i(ye.Provider,{value:u,children:e})},dm=w({strict:!1}),fm={animation:[`variants`,...tu],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`]},pm=!1;function mm(){if(pm)return;let e={};for(let t in fm)e[t]={isEnabled:e=>fm[t].some(t=>!!e[t])};fu(e),pm=!0}function hm(){return mm(),pu()}function gm(e){let t=hm();for(let n in e)t[n]={...t[n],...e[n]};fu(t)}function _m({children:e,features:t,strict:n=!1}){let[,r]=he(!vm(t)),a=N(void 0);if(!vm(t)){let{renderer:e,...n}=t;a.current=e,gm(n)}return M(()=>{vm(t)&&t().then(({renderer:e,...t})=>{gm(t),a.current=e,r(!0)})},[]),i(dm.Provider,{value:{renderer:a.current,strict:n},children:e})}function vm(e){return typeof e==`function`}function ym({children:e,...t}){let n=j(Up);t={...n,...t},t.transition=Va(t.transition,n.transition),t.isStatic=P(()=>t.isStatic);let r=fe(()=>t,[JSON.stringify(t.transition),t.transformPagePoint,t.reducedMotion,t.skipAnimations,t.isValidProp]);return i(Up.Provider,{value:r,children:e})}var bm=w({});function xm(e,t){if(ru(e)){let{initial:t,animate:n}=e;return{initial:t===!1||eu(t)?t:void 0,animate:eu(n)?n:void 0}}return e.inherit===!1?{}:t}function Sm(e){let{initial:t,animate:n}=xm(e,j(bm));return fe(()=>({initial:t,animate:n}),[Cm(t),Cm(n)])}function Cm(e){return Array.isArray(e)?e.join(` `):e}var wm=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Tm(e,t,n){for(let r in t)!X(t[r])&&!_u(r,n)&&(e[r]=t[r])}function Em({transformTemplate:e},t){return fe(()=>{let n=wm();return us(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Dm(e,t){let n=e.style||{},r={};return Tm(r,n,e),Object.assign(r,Em(e,t)),r}function Om(e,t){let n={},r=Dm(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 km=()=>({...wm(),attrs:{}});function Am(e,t,n,r){let i=fe(()=>{let n=km();return hs(n,t,Ep(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};return Tm(t,e.style,e),{...i,style:{...t,...i.style}}}return i}var jm=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.tap.propagate.ignoreStrict.viewport.pinch`.split(`.`));function Mm(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||jm.has(e)}function Nm(e,t){return e.startsWith(`on`)?!Mm(e):t?.(e)??!Mm(e)}function Pm(e,t,n,r){let i={};for(let a in e)a===`values`&&typeof e.values==`object`||X(e[a])||(Nm(a,r)||n===!0&&Mm(a)||!t&&!Mm(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]);return i}var Fm=[`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 Im(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Fm.indexOf(e)>-1||/[A-Z]/u.test(e))}function Lm(e,t,n,{latestValues:r},i,a=!1,o,s){let c=(o??Im(e)?Am:Om)(t,r,i,e),l=Pm(t,typeof e==`string`,a,s),d=e===u?{}:{...l,...c,ref:n},{children:f}=t,p=fe(()=>X(f)?f.get():f,[f]);return T(e,{...d,children:p})}function Rm({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:zm(n,r,i,e),renderState:t()}}function zm(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=pc(a[e]);let{initial:o,animate:s}=e,c=ru(e),l=iu(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`&&!$l(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=so(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 Bm=e=>(t,n)=>{let r=j(bm),i=j(xe),a=()=>Rm(e,t,r,i);return n?a():P(a)},Vm=Bm({scrapeMotionValuesFromProps:vu,createRenderState:wm}),Hm=Bm({scrapeMotionValuesFromProps:Op,createRenderState:km}),Um=Symbol.for(`motionComponentSymbol`);function Wm(e,t,n){let r=N(n);ue(()=>{r.current=n});let i=N(null);return A(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 Km(e,t,n,r,i,a){let{visualElement:o}=j(bm),s=j(dm),c=j(xe),l=j(Up),u=l.reducedMotion,d=l.skipAnimations,f=N(null),p=N(!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=j(Gm);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&i.create(m,n,h),ue(()=>{m&&m.props!==n&&m.update(n,c)});let g=n[yo],_=N(!!g&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return F(()=>{p.current&&m&&(m.animationState?.animateChanges(),m.enteringChildren=void 0)},[]),F(()=>{p.current=!0,m&&(window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),_.current&&m.animationState&&m.animationState.animateChanges())}),M(()=>{m&&(!_.current&&m.animationState&&m.animationState.animateChanges(),_.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),!1),m.enteringChildren=void 0)}),m}function qm(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&gm(r);let s=n?n===`svg`:Im(e),c=s?Hm:Vm;function l(n,l){let u,d=Jm(n);P(()=>!!Xl.current?.sharedNodes.get(d)?.lead&&n.initial)&&(n={...n,initial:!1});let f={...j(Up),...n,layoutId:d},{isStatic:p,isValidProp:m}=f,h=Sm(n),g=c(n,p);if(!p&&typeof window<`u`){Ym(f,r);let t=Xm(f);h.visualElement=Km(e,g,f,o,t.ProjectionNode,s),(t.isEnabled||h.visualElement?.projection?.options.layoutId)&&(u=t.MeasureLayout)}return a(bm.Provider,{value:h,children:[u&&h.visualElement?i(u,{visualElement:h.visualElement,...f}):null,Lm(e,n,Wm(g,h.visualElement,l),g,p,t,s,m)]})}l.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let u=D(l);return u[Um]=e,u}function Jm({layoutId:e}){let t=j(ye).id;return t&&e!==void 0?t+`-`+e:e}function Ym(e,t){j(dm).strict}function Xm(e){let{drag:t,layout:n}=hm();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:r.MeasureLayout,isEnabled:t?.isEnabled(e)||n?.isEnabled(e),ProjectionNode:r.ProjectionNode}}function Zm(e,t){if(typeof Proxy>`u`)return qm;let n=new Map,r=(n,r)=>qm(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,qm(a,void 0,e,t)),n.get(a))})}var Qm=Zm(),$m=(e,t)=>t.isSVG??Im(e)?new kp(t):new bu(t,{allowProjection:e!==u}),eh=class extends Sp{constructor(e){super(e),e.animationState||=Np(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();$l(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?.()}},th=0,nh={animation:{Feature:eh},exit:{Feature:class extends Sp{constructor(){super(...arguments),this.id=th++}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}=co(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(){}}}},rh=class extends Sp{constructor(e){super(e),this.removeGroupControls=R,this.removeListeners=R,this.controls=new Ld(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||R}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()}},ih=e=>(t,n)=>{e&&K.update(()=>e(t,n),!1,!0)},ah=class extends Sp{constructor(){super(...arguments),this.removePointerDownListener=R}onPointerDown(e){this.session=new ld(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:ih(e),onStart:ih(t),onMove:ih(n),onEnd:(e,t)=>{delete this.session,r&&K.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Gu(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session?.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session?.end()}},oh=!1,sh=({layout:e,layoutDependency:t,layoutAnchor:n})=>({layout:e,layoutDependency:t,layoutAnchor:n,animationType:typeof e==`string`?e:`both`}),ch=(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)}},lh=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),oh&&i.root.didUpdate(),i.options.layoutId!==r&&ch(i,r)?.(),i.addEventListener(`animationComplete`,()=>this.safeToRemove()),i.setOptions({...i.options,...sh(this.props),onExitComplete:()=>this.safeToRemove()})),ml.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(),ch(o,n)),o.setOptions({...o.options,...sh(this.props)}),oh=!0,i||e.layoutDependency!==t||t===void 0||e.isPresent!==a?o.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?o.promote():o.relegate()||K.postRender(()=>{o.getStack()?.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(this.takeOver?.(),e.root.didUpdate(),nc.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;oh=!0,r&&(r.scheduleCheckAfterUnmount(),t.group?.remove(r),n?.deregister?.(r))}safeToRemove(){this.props.safeToRemove?.()}render(){return null}};function uh(e){let[t,n]=$p(),r=j(ye);return i(lh,{...e,layoutGroup:r,switchLayoutGroup:j(Gm),isPresent:t,safeToRemove:n})}var dh={pan:{Feature:ah},drag:{Feature:rh,ProjectionNode:Zl,MeasureLayout:uh}};function fh(e,t,n,r,i){let{props:a}=e,o=`while`+n;!i&&e.animationState&&a[o]&&e.animationState.setActive(o,r===`Start`);let s=a[`on`+n+r];s&&K.postRender(()=>s(t,Uu(t)))}var ph=class extends Sp{mount(){let{current:e}=this.node;e&&(this.unmount=Zd(e,(e,t)=>(fh(this.node,t,`Hover`,`Start`),e=>fh(this.node,e,`Hover`,`End`))))}unmount(){}},mh=class extends Sp{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=Me(Jl(this.node.current,`focus`,()=>this.onFocus()),Jl(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function hh(e,t,n,r){e.current instanceof HTMLButtonElement&&e.current.disabled||fh(e,t,`Tap`,n,r)}var gh=class extends Sp{constructor(){super(...arguments),this.options={}}mount(){let{current:e}=this.node;e&&(this.update(),this.unmount=xf(e,(e,t)=>(hh(this.node,t,`Start`),{onComplete:(e,{success:t})=>hh(this.node,e,t?``:`Cancel`),onRepeat:()=>hh(this.node,t,``,!0)}),this.options))}update(){let{options:e,node:t}=this,{globalTapTarget:n,propagate:r,tap:i}=t.props;for(let t in e)delete e[t];Object.assign(e,i,{useGlobalTarget:n,stopPropagation:r?.tap===!1})}unmount(){}},_h=new WeakMap,vh=new WeakMap,yh=e=>{let t=_h.get(e.target);t&&t(e)},bh=e=>{e.forEach(yh)};function xh({root:e,...t}){let n=e||document;vh.has(n)||vh.set(n,{});let r=vh.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(bh,{root:e,...t})),r[i]}function Sh(e,t,n){let r=xh(t);return _h.set(e,n),r.observe(e),()=>{_h.delete(e),r.unobserve(e)}}var Ch={some:0,all:1},wh=class extends Sp{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:Ch[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=Sh(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(Th(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function Th({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var Eh={inView:{Feature:wh},tap:{Feature:gh},focus:{Feature:mh},hover:{Feature:ph}},Dh={layout:{ProjectionNode:Zl,MeasureLayout:uh}},Oh=Zm(Object.assign({},nh,Eh,dh,Dh),$m);function kh(e){return M(()=>()=>e(),[])}var Ah=Object.assign({renderer:$m},nh,Eh),jh=Object.assign({},Ah,dh,Dh),Mh={renderer:$m,...nh},Nh=[`scale`,`rotate`,`x`,`y`],Ph={renderer:$m,pinch:{Feature:class extends Sp{constructor(){super(...arguments),this.touchAction=``}mount(){let{current:e}=this.node;if(!e)return;this.touchAction=e.style.touchAction,this.update();let t={},n=e=>(n,r)=>t[e]?.(n,r);this.unmount=of(e,()=>Nh.map(e=>this.node.getValue(e,+(e===`scale`))),()=>{let{pinch:e}=this.node.getProps();return e&&(t=e===!0?{}:e)},(e,t,r)=>{let i=e=>this.node.animationState?.setActive(`whilePinch`,e);return i(!0),n(`onStart`)(t,r),{onPinch:n(`onMove`),onComplete:(e,t)=>{i(!1),n(`onEnd`)(e,t)}}})}update(){let e=this.node.current?.style;if(e){let{pinch:t,style:n}=this.node.getProps();e.touchAction=t?n?.touchAction||`none`:this.touchAction}}unmount(){}},isEnabled:e=>!!e.pinch}};function Fh(e,t,n){ue(()=>e.on(t,n),[e,t,n])}var Ih=50,Lh=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Rh=()=>({time:0,x:Lh(),y:Lh()}),zh={x:{length:`Width`,position:`Left`},y:{length:`Height`,position:`Top`}},Bh=new WeakMap;function Vh(e,t){let n=e===document.scrollingElement,r=n&&document.body||e,i=Bh.get(r);i||Bh.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 Hh(e,t,n,r){let i=n[t],{length:a,position:o}=zh[t],s=i.current,c=n.time,l=e[`scroll${o}`];i.current=Vh(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=I(0,1,Ne(0,i.scrollLength,i.current));let u=r-c;i.velocity=u>Ih?0:Ie(i.current-s,u)}function Uh(e,t,n){for(let r in zh)Hh(e,r,t,n);t.time=n}var Wh={start:0,center:.5,end:1};function Gh(e,t,n=0){let r=0;if(e in Wh&&(e=Wh[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 Kh=[0,0];function qh(e,t,n,r){let i=Array.isArray(e)?e:Kh,a=0,o=0;return typeof e==`number`?i=[e,e]:typeof e==`string`&&(e=e.trim(),i=e.includes(` `)?e.split(` `):[e,Wh[e]?e:`0`]),a=Gh(i[0],n,r),o=Gh(i[1],t),a-o}var Jh={All:[[0,0],[1,1]]};function Yh(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+Ne(i(a),i(a+1),t))/n;return r?1-o:o}function Xh(e,{offset:t=Jh.All}){for(let n in zh){let r=e[n];r.offset.length=0;for(let e=0;e<t.length;e++)r.offset[e]=qh(t[e],r.containerLength,r.targetLength,r.targetOffset);r.progress=I(0,1,Yh(r.offset,r.current))}}function Zh(e,t){let n={x:0,y:0},r=e;for(;r&&r!==t;)if(Ko(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 Qh(e){return`getBBox`in e&&e.tagName!==`svg`?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function $h(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 zh){let r=e,{offset:i}=n[r];Object.assign(n[r],t[r]),n[r].offset=i}if(i&&i!==e){let t=Zh(i,e),r=Qh(i);n.x.targetOffset=t.x,n.y.targetOffset=t.y,n.x.targetLength=r.width,n.y.targetLength=r.height}Xh(n,r)}},notify:e=>t(a?n:e)}}var eg=new WeakMap,tg=new WeakMap,ng=new WeakMap,rg=new WeakMap,ig=e=>e===document.scrollingElement?window:e;function ag(e,{container:t=document.scrollingElement,trackContentSize:n=!1,...r}={}){if(!t)return R;let i=ng.get(t);i||(i=new Set,ng.set(t,i));let a=$h(t,e,Rh(),r);if(i.add(a),!eg.has(t)){let e=Rh(),n=()=>{Uh(t,e,B.timestamp);for(let t of i)t.measure(e);K.preUpdate(r)},r=()=>{for(let t of i)t.notify(e)},a=()=>K.read(n);eg.set(t,a);let o=ig(t);window.addEventListener(`resize`,a),t!==document.documentElement&&tg.set(t,ad(t,a)),o.addEventListener(`scroll`,a),a()}if(n&&!rg.has(t)){let e=eg.get(t),n={width:t.scrollWidth,height:t.scrollHeight},r=K.read(()=>{let r=t.scrollWidth,i=t.scrollHeight;(n.width!==r||n.height!==i)&&(e(),n.width=r,n.height=i)},!0);rg.set(t,r)}let o=eg.get(t);return K.read(o,!1,!0),()=>{q(o);let e=ng.get(t);if(!e||(e.delete(a),e.size))return;ng.delete(t);let n=eg.get(t);eg.delete(t),n&&(ig(t).removeEventListener(`scroll`,n),tg.get(t)?.(),window.removeEventListener(`resize`,n));let r=rg.get(t);r&&(q(r),rg.delete(t))}}function og(e){return typeof window>`u`?!1:e?wi():Ci()}var sg=new Map;function cg({container:e,target:t,axis:n}){let r=sg.get(e);r||(r=new Map,sg.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 lg=e=>{if(/v/u.test(e))return[];let t=qh(e,0,0,0);return[qh(e,0,1,0)-t,t-qh(e,1,0,0),t]},ug=([e,t,n])=>!n&&(t===0||t===1)&&`${t?`entry`:`exit`}-crossing ${e*100}%`;function dg(e=Jh.All){if(e.length!==2)return;let[t,n]=e.map(lg),r=[ug(t),ug(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 fg(e,t){let{target:n,container:r,axis:i}=t,a=n&&dg(t.offset),o=og(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?cg(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||=ag(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(ad(c),ad([n,r],c))}return()=>{f.forEach(e=>e()),l?.()}}function pg(e,{axis:t=`y`,source:n,container:r=document.scrollingElement,...i}={}){if(!r)return R;let a={axis:t,container:n||r,...i};if(typeof e==`function`){let n=Xo(e);return Jo(ag(e=>n(e[t].progress,e),a))}return Jo(fg(e,a))}var mg=()=>({scrollX:Y(0),scrollY:Y(0),scrollXProgress:Y(0),scrollYProgress:Y(0),scrollXLength:Y(0),scrollYLength:Y(0)}),hg=e=>e?!e.current:!1;function gg(e,t,n,r){return{factory:i=>{let a,o=()=>{hg(n)||hg(r)?nc.read(o):a=pg(i,{...t,axis:e,container:n?.current||void 0,target:r?.current||void 0})};return nc.read(o),()=>{rc(o),a?.()}},times:[0,1],keyframes:[0,1],ease:e=>e,duration:1}}function _g(e,t){return typeof window>`u`?!1:e?wi()&&!!dg(t):Ci()&&!t}function vg({container:e,target:t,...n}={}){let r=P(mg);_g(t,n.offset)&&(r.scrollXProgress.accelerate=gg(`x`,n,e,t),r.scrollYProgress.accelerate=gg(`y`,n,e,t));let i=N(null),a=N(!1),o=A(()=>(i.current=pg((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 F(()=>{if(a.current=!1,hg(e)||hg(t))a.current=!0;else return o()},[o]),M(()=>{if(!a.current)return;let n,r=()=>{let r=hg(e),i=hg(t);!r&&!i&&(n=o())};return nc.read(r),()=>{rc(r),n?.()}},[o]),r}function yg(e){return vg({container:e})}function bg(){return vg()}function xg(e){let t=P(()=>Y(e)),{isStatic:n}=j(Up);if(n){let[,n]=he(e);M(()=>t.on(`change`,n),[])}return t}function Sg(e,t){let n=xg(t()),r=()=>n.set(t());return r(),F(()=>{let t=()=>K.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return r(),()=>{n.forEach(e=>e()),q(r)}}),n}function Cg(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 Sg(t.filter(X),r)}function wg(e){za.current=[],e();let t=Sg(za.current,e);return za.current=void 0,t}function Tg(e,t={}){return Eg(e,t,Rf)}function Eg(e,t,n){let{isStatic:r}=j(Up),i=()=>X(e)?e.get():e;if(r)return wg(i);let a=xg(i());return ue(()=>n(a,e,t),[a,JSON.stringify(t)]),a}function Dg(e,t={}){return Eg(e,t,Uf)}function Og(e){let t=N(0),{isStatic:n}=j(Up);M(()=>{if(n)return;let r=({timestamp:n,delta:r})=>{t.current||=n,e(n-t.current,r)};return K.update(r,!0),()=>q(r)},[e])}function kg(){let e=xg(0);return Og(t=>e.set(t)),e}function Ag(e,t,n,r){if(typeof e==`function`)return wg(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return Mg(e,t,n,r);let i=typeof t==`function`?t:jf(t,n,r),a=Array.isArray(e)?jg(e,i):jg([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 jg(e,t){let n=P(()=>[]);return Sg(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function Mg(e,t,n,r){let i=P(()=>Object.keys(n)),a=P(()=>({}));for(let o of i)a[o]=Ag(e,t,n[o],r);return a}function Ng(e){let t=xg(e.getVelocity()),n=()=>{let r=e.getVelocity();t.set(r),r&&K.update(n)};return Fh(e,`change`,()=>{K.update(n,!1,!0)}),t}var Pg=class extends Ba{constructor(){super(...arguments),this.isEnabled=!1}add(e){(J.has(e)||Vi.has(e))&&(this.isEnabled=!0,this.update())}update(){this.set(this.isEnabled?`transform`:`auto`)}};function Fg(){return P(()=>new Pg(`auto`))}function Ig(){!su.current&&lu();let[e]=he(ou.current);return e}function Lg(){let e=Ig(),{reducedMotion:t}=j(Up);return t===`never`?!1:t===`always`||e}function Rg(e){e.values.forEach(e=>e.stop())}function zg(e,t){[...t].reverse().forEach(n=>{let r=e.getVariant(n);r&&ho(e,r),e.variantChildren&&e.variantChildren.forEach(e=>{zg(e,t)})})}function Bg(e,t){if(Array.isArray(t))return zg(e,t);if(typeof t==`string`)return zg(e,[t]);ho(e,t)}function Vg(){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(To(e,t,{transitionOverride:n}))}),Promise.all(r)},set(t){return e.forEach(e=>{Bg(e,t)})},stop(){e.forEach(e=>{Rg(e)})},mount(){return()=>{t.stop()}}};return t}function Hg(e){return typeof e==`object`&&!Array.isArray(e)}function Ug(e,t,n,r){return e==null?[]:typeof e==`string`&&Hg(t)?Zo(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function Wg(e,t,n){return e*(t+1)+n*t}function Gg(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 Kg(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))):Gg(t,r)??e}function qg(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(Ce(e,i),r--)}}function Jg(e,t,n,r,i,a){qg(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:G(i,a,r[o]),easing:rt(n,o)})}function Yg(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function Xg(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var Zg=`easeInOut`,Qg=20;function $g(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:Kg(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=n_(e),{delay:l=0,times:u=sr(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=Ai(d)?d:i?.[d||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&a_(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,..._};b!==void 0&&(n.duration=z(b));let r=jn(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&&or(u,T),c.length===1&&c.unshift(null),m&&m<Qg){let e=b>0?g/b:0;b=Wg(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`?We(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`:rt(f,e-1))}Yg(u,m,e)}let E=w+b;Jg(r,c,v,u,w,E),y=Math.max(x+b,y),p=Math.max(E,p)};if(X(g)){let e=e_(g,c);b(_,v,t_(`default`,e))}else{let e=Ug(g,_,r,l),t=e.length;for(let n=0;n<t;n++){_=_,v=v;let r=e[n],i=e_(r,c);for(let e in _)b(_[e],r_(v,e),t_(e,i),n,t)}}d=f,f+=y,a=Math.max(a,f)}return a};m(e,0),a&&(a.duration=p,a.labels=u);let{type:h,...g}=t;return c.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(Xg);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(Ne(0,p,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),o.unshift(o[0]),l.unshift(Zg)),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,u.transition[i]={...g,duration:p,ease:l,times:c,mixer:a.mixer||t.mixer,...n}}}),s}function e_(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function t_(e,t){return t[e]||(t[e]=[]),t[e]}function n_(e){return Array.isArray(e)?e:[e]}function r_(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var i_=e=>typeof e==`number`,a_=e=>e.every(i_);function o_(e,t){return X(e)||typeof e==`number`||typeof e==`string`&&!Hg(t)}function s_(e,t,n,r){let i=[];if(o_(e,t))i.push(ac(e,Hg(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=Ug(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(...Qs(r,t,s,Ql.get(r))):i.push(...Wo(Ho(r)??tc,r,t,s))}}return i}function c_(e,t,n,r){let i=[],a=$g(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:nr},r),o=t?.reduceMotion??t?.defaultTransition?.reduceMotion;return a.forEach(({keyframes:e,transition:t},n)=>{i.push(...s_(n,e,{...t,reduceMotion:o}))}),i}var l_=0;function u_({repeat:e=0,repeatDelay:t=0,repeatType:n=`loop`,delay:r=0},i,a,o){let s=i+t,c=o===void 0;if(c){let t=Math.max(0,a-r);o=s&&t>0?Math.min(e,Math.ceil(t/s-1e-9)-1):0,a=Math.min(t-o*s,i)}return n!==`loop`&&o%2&&(a=i-a),[o,c?a:r+o*s+a]}function d_(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 f_=(e,t)=>t===void 0?e:{name:e,at:t};function p_(e){e.pause(),e.time=0,e.stop()}var m_=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=Z.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 ja(n),this.watch()):(this.invalidate(),this.flush())}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`+l_++,time:0,callback:e}})}addPause(e,t){return this.push({item:t||{},at:e,marker:{name:`_m`+l_++,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=this.iterationDuration,r=this.time,[i]=u_(this.options,n,r),a=u_(this.options,n,t,i)[1],o=Math.abs(this.speed);return this.speed=a<r?-o:o,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&&=(p_(this.group),void 0),this.isDirty=!1,this.parent=e}build(){let e=this.isWrapped?this.group.iterationDuration:this.totalDuration;this.isDirty=!1,this.isWrapped=!1;let t=this.group,n=0;t&&(this.isRebuilding=!0,this.scrollTimeline?(this.detachScroll?.(),t.cancel()):(n=t.animations.length?t.time:0,p_(t)),this.isRebuilding=!1);let{defaultTransition:r,onComplete:i,onUpdate:a,onRepeat:o,onReverseComplete:s,autoplay:c,scope:l,...u}=this.options,d={};l?.reduceMotion!==void 0&&(d.reduceMotion=l.reduceMotion),l?.skipAnimations!==void 0&&(d.skipAnimations=l.skipAnimations),Object.assign(d,u);let f=new Map,p={},m=Z.current;Z.current=this.motionScope;let h;try{h=c_(this.toSequence(f),{defaultTransition:r,...d},l,p)}finally{Z.current=m}let g=p.labels,_=d.duration??p.duration,v=p.duration?_/p.duration:1;if(g.forEach((e,t)=>g.set(t,e*v)),this.markers=[],f.forEach((e,t)=>{e.time=g.get(t),g.delete(t),_=Math.max(_,e.time),this.markers.push(e)}),this.markers.sort((e,t)=>e.time-t.time),this.labels=g,this.totalDuration=_,this.clock=this.clockAnimation=void 0,this.markers.length||this.stopAt!==void 0||a||o){let e=this.clock=Y(0);e.on(`change`,t=>e===this.clock&&this.onClock(t)),h.unshift(this.clockAnimation=ac(e,[0,_],{...d,duration:_,ease:`linear`}))}let y=this.group=new ja(h),{delay:b=0,repeat:x=0,repeatDelay:S=0}=this.options,[C,w]=u_(this.options,e,n);n>b&&(n=u_(this.options,_,Math.min(w,_),C)[1]),this.isDone&&n<b+(x+1)*(_+S)-S&&this.newFinished(),this.scrollTimeline?this.detachScroll=y.attachTimeline(this.scrollTimeline):(y.speed=this.playbackSpeed,this.isPaused&&y.pause(),n&&(y.time=n)),this.repeatIndex=this.currentRepeat(),this.prevTime=n||-1,this.watch()}toSequence(t){return this.entries.map(({item:n,at:r,marker:i})=>i?(t.set(i.name,i),f_(i.name,r)):n instanceof e?{sequence:n.toSequence(t),at:r}:typeof n==`string`?f_(n,r):r===void 0?n:Array.isArray(n)?d_(n,r):{...n,at:r})}resolve(e){return this.flush(),typeof e==`number`?e:Gg(e,this.labels)??this.time}currentRepeat(){return u_(this.options,this.totalDuration,this.clockAnimation?.time??0)[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(),o=a>this.repeatIndex?1:-1;for(;a!==this.repeatIndex;){let e=this.speed>0==(i===`loop`||!(this.repeatIndex%2)),n=e?this.totalDuration:0;if(this.cross(t,n))return;this.repeatIndex+=o,r?.(),t=i===`loop`?e?-1:1/0:n}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=u_(this.options,this.totalDuration,e,this.repeatIndex)[1],!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,r=this.speed<0&&n||t,i=this.resolveFinished;r?.(),i()})}newFinished(){this.isDone=!1,this.finished=new Promise(e=>{this.resolveFinished=e});let{scope:e}=this.options,t=this.motionScope?.add(()=>{this.isKilled=!0,this.stop()});e?.animations.push(this),this.finished.then(()=>{t?.(),e&&Ce(e.animations,this)})}};function h_(e){return Array.isArray(e)&&e.some(e=>Array.isArray(e)||e?.sequence)}function g_(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=Z.current?.transition,s={};n!==void 0&&(s.reduceMotion=n),r!==void 0&&(s.skipAnimations=r);let c;if(h_(e)){let r={...s,...i,scope:t};o&&(r.defaultTransition={...o,...r.defaultTransition}),r.reduceMotion=i?.reduceMotion??r.defaultTransition?.reduceMotion??n,c=new m_(e,r)}else{let{onComplete:n,...r}=a||{},l={...s,...o,...r},{onUpdate:u}=r;c=new m_([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},s_(e,i,l,t))}return c}return i}var __=Object.assign(g_(),{addEffect:Bo,removeEffect:Vo});function v_(){let e=P(()=>({current:null,animations:[]})),t=Lg()??void 0,{skipAnimations:n}=j(Up);e.reduceMotion=t,e.skipAnimations=n;let r=fe(()=>g_({scope:e,reduceMotion:t,skipAnimations:n}),[e,t,n]);return kh(()=>{e.animations.forEach(e=>e.stop()),e.animations.length=0}),[e,r]}function y_(e,t,{deps:n=[],...r}={}){let i=N(null),a=N(t);return a.current=t,F(()=>{let t=i.current=Tf(e?.current||void 0,e=>a.current(e),r);return()=>{t.cancel(),i.current===t&&(i.current=null)}},n),i}function b_(e,t,n,r){let i=[];return x_(i,e,t,n,r),S_(i)}function x_(e,t,n,r,i){if(t==null)return;let a=Zo(t,i),o=a.length;for(let t=0;t<o;t++){let i=a[t],s={...r};typeof s.delay==`function`&&(s.delay=s.delay(t,o));for(let t in n){let r=n[t];Array.isArray(r)||(r=[r]);let a={...Ha(s,t)};a.duration&&=z(a.duration),a.delay&&=z(a.delay);let o=Fa(i),c=Pa(t,a.pseudoElement||``),l=o.get(c);l&&l.stop(),e.push({map:o,key:c,unresolvedKeyframes:r,options:{...a,element:i,name:t,allowFlatten:!s.type&&!s.ease}})}}}function S_(e){for(let t=0;t<e.length;t++){let{unresolvedKeyframes:n,options:r}=e[t],{element:i,name:a,pseudoElement:o}=r;!o&&n[0]===null&&(n[0]=Sf(i,a)),Hr(n),Io(n,a),!o&&n.length<2&&n.unshift(Sf(i,a)),r.keyframes=n}let t=[];for(let n=0;n<e.length;n++){let{map:r,key:i,options:a}=e[n],o=new Mi(a);r.set(i,o),o.finished.finally(()=>r.delete(i)),t.push(o)}return t}var C_=e=>{function t(t,n,r){return new ja(b_(t,n,r,e))}return t},w_=C_();function T_(){let e=P(()=>({current:null,animations:[]})),t=P(()=>C_(e));return kh(()=>{e.animations.forEach(e=>e.stop())}),[e,t]}function E_(){let e=P(Vg);return F(e.mount,[]),e}var D_=E_;function O_(){let e=j(xe);return e?e.custom:void 0}function k_(e,t,n,r){M(()=>{let i=e.current;if(n&&i)return Jl(i,t,n,r)},[e,t,n,r])}var A_=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()})}},j_=()=>new A_;function M_(){return P(j_)}function N_(e){return typeof e==`object`&&!!e&&Um in e}function P_(e){if(N_(e))return e[Um]}function F_(){return I_}function I_(e){Xl.current&&(Xl.current.isUpdating=!1,Xl.current.blockUpdate(),e&&e())}function L_(){return A(()=>{let e=Xl.current;e&&e.resetTree()},[])}function R_(...e){let t=N(0),[n,r]=he(e[t.current]);return[n,A(n=>{t.current=typeof n==`number`?n:Be(0,e.length,t.current+1),r(e[t.current])},[e.length,...e])]}var z_={some:0,all:1};function B_(e,t,{root:n,margin:r,amount:i=`some`}={}){let a=Zo(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:z_[i]});return a.forEach(e=>s.observe(e)),Jo(()=>s.disconnect())}function V_(e,{root:t,margin:n,amount:r,once:i=!1,initial:a=!1}={}){let[o,s]=he(a),[c,l]=he({});return M(()=>{let a=c.current=e.current;return!a||i&&o?void 0:B_(a,()=>(s(!0),i?void 0:()=>s(!1)),{root:t&&t.current||void 0,margin:n,amount:r})},[t,e,n,i,r,c]),M(()=>{e.current!==c.current&&(i||s(!1),l({}))}),o}function H_(){let[e,t]=sm(),n=F_(),r=N(-1);return M(()=>{K.postRender(()=>K.postRender(()=>{t===r.current&&(L.instantAnimations=!1)}))},[t]),i=>{n(()=>{L.instantAnimations=!0,e(),i(),r.current=t+1})}}function U_(){L.instantAnimations=!1}function W_(){let[e,t]=he(!0);return M(()=>{let e=()=>t(!document.hidden);return document.hidden&&e(),document.addEventListener(`visibilitychange`,e),()=>{document.removeEventListener(`visibilitychange`,e)}},[]),e}function G_(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 K_(e){return t=>{let n=e.current;if(!n)return t;let r=q_(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 q_(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 J_=new Map,Y_=new Map,X_=(e,t)=>`${e}: ${J.has(t)?`transform`:t}`;function Z_(e,t,n){let r=X_(e,t),i=J_.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 Q_,$_,ev=new Set;function tv(){ev.forEach(e=>{e.animation.play(),e.animation.startTime=e.startTime}),ev.clear()}function nv(e,t,n,r,i){if(window.MotionIsMounted)return;let a=e.dataset[vo];if(!a)return;window.MotionHandoffAnimation=Z_;let o=X_(a,t);$_||($_=ki(e,t,[n[0],n[0]],{duration:1e4,ease:`linear`}),J_.set(o,{animation:$_,startTime:null}),window.MotionHandoffAnimation=Z_,window.MotionHasOptimisedAnimation=(e,t)=>{if(!e)return!1;if(!t)return Y_.has(e);let n=X_(e,t);return!!J_.get(n)},window.MotionHandoffMarkAsComplete=e=>{Y_.has(e)&&Y_.set(e,!0)},window.MotionHandoffIsComplete=e=>Y_.get(e)===!0,window.MotionCancelOptimisedAnimation=(e,t,n,r)=>{let i=X_(e,t),a=J_.get(i);a&&(n&&r===void 0?n.postRender(()=>{n.postRender(()=>{a.animation.cancel()})}):a.animation.cancel(),n&&r?(ev.add(a),n.render(tv)):(J_.delete(i),J_.size||(window.MotionCancelOptimisedAnimation=void 0)))},window.MotionCheckAppearSync=(e,t,n)=>{let r=bo(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=()=>{$_.cancel();let a=ki(e,t,n,r);Q_===void 0&&(Q_=performance.now()),a.startTime=Q_,J_.set(o,{animation:a,startTime:Q_}),i&&i(a)};Y_.set(a,!1),$_.ready?$_.ready.then(s).catch(R):s()}var rv=()=>({}),iv=class extends mu{constructor(){super(...arguments),this.measureInstanceViewportBox=$}build(){}resetTransform(){}restoreTransform(){}removeValueFromRenderState(){}renderInstance(){}scrapeMotionValuesFromProps(){return rv()}getBaseTargetFromProps(){}readValueFromInstance(e,t,n){return n.initialState[t]||0}sortInstanceNodePosition(){return 0}},av=Bm({scrapeMotionValuesFromProps:rv,createRenderState:rv});function ov(e){let[t,n]=he(e),r=av({},!1),i=P(()=>new iv({props:{onUpdate:e=>{n({...e})}},visualState:r,presenceContext:null},{initialState:e}));return de(()=>(i.mount({}),()=>i.unmount()),[i]),[t,P(()=>e=>To(i,e))]}var sv=0,cv=({children:e})=>(M(()=>{},[]),i(um,{id:P(()=>`asl-${sv++}`),children:e})),lv=1e5,uv=e=>e>.001?1/e:lv;function dv(e){let t=xg(1),n=xg(1),{visualElement:r}=j(bm);return e?(t=e.scaleX||t,n=e.scaleY||n):r&&(t=r.getValue(`scaleX`,1),n=r.getValue(`scaleY`,1)),{scaleX:Ag(t,uv),scaleY:Ag(n,uv)}}var fv=w(null),pv=w(null);function mv(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:gv(t.x)+n.x,y:gv(t.y)+n.y},i=_v(e),s=i.find(t=>t.items.includes(e[o])),c=i.reduce((e,t)=>vv(r.y,t)<vv(r.y,e)?t:e);if(c!==s)return yv(e,o,r.x,c,a);let l=bv(r,t),u=-1,d=l;return e.forEach((e,t)=>{if(t===o)return;let n=bv(r,e.layout);n<d&&(u=t,d=n)}),u===-1?e:we(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=gv(u);return s===1&&l.max+n[i]>d||s===-1&&l.min+n[i]<d?we(e,o,o+s):e}function hv(e,t,n,r,i){let a=n>1==!!(n%2&&i)?-1:1,o=n>3?(n-4)*(e.length-1):t+a;if(r===`xy`&&n<4&&!(n%2)&&t>-1){let n=_v(e).sort((e,t)=>e.min-t.min),r=n[n.findIndex(({items:n})=>n.includes(e[t]))+a],i=n=>Math.abs(gv(n.layout.x)-gv(e[t].layout.x));o=r?e.indexOf(r.items.reduce((e,t)=>i(t)<i(e)?t:e)):-1}return t>-1&&o!==t&&e[o]?o:-1}var gv=({min:e,max:t})=>G(e,t,.5);function _v(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 vv(e,t){return e<t.min?t.min-e:e>t.max?e-t.max:0}function yv(e,t,n,r,i){let a=e.filter((e,n)=>n!==t),o=r.items.find(e=>{let t=gv(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 bv(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 xv=(e,t)=>e.max<=t.min||t.max<=e.min;function Sv(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||=xv(e[r].x,e[i].x),n||=xv(e[r].y,e[i].y),t&&n)return`xy`;return t?`x`:`y`}var Cv=(e,t)=>n=>{e.current=n;let r=typeof t==`function`?t(n):t&&(t.current=n);if(typeof r==`function`)return()=>{e.current=null,r()}};function wv({children:e,as:t=`ul`,axis:n,onReorder:r,values:a,onPointerDownCapture:o,onClickCapture:s,...c},l,u){let d=P(()=>u[t]),f=j(fv),p=N(new Map),m=N(new Map),[h,g]=he(),[_,v]=he(`y`),y=N(!1),b=N(!1),x=N(null),S=n||_,C=new Set(a);for(let e of[p.current,m.current])e.forEach((t,n)=>C.has(n)||e.delete(n));let w=C.has(h)?h:a[0],T=e=>m.current.get(e)?.current?.isConnected,E=e=>C.has(e)&&g(e),D=()=>{T(w)||E(a.find(T))};M(D);let O=()=>a.flatMap(e=>p.current.get(e)||[]),ee=()=>x.current?.ownerDocument.defaultView?.getComputedStyle(x.current).direction===`rtl`,te=(e,t)=>{let n=0,i=a.map(t=>p.current.has(t)?e[n++].value:t);i.some((e,t)=>e!==a[t])&&r(i,t)},k={axis:S,proxy:u,groupRef:x,hasReordered:b,values:a,onReorder:r,getOrder:O,isTabStop:e=>e===w||!C.has(e),setActive:E,checkTabStop:D,elements:m.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=O(),c=[`ArrowUp`,`ArrowLeft`,`ArrowDown`,`ArrowRight`,`Home`,`End`].indexOf(i),l=c%2;if(i===` `)e.repeat||r(o,n?void 0:a);else if(c<0&&!(i===`Escape`&&n))return;else if(!f?.isMoving(o)){if(i===`Escape`&&n){if(r(o),!f?.restore(k,t,o,n)){let e=n.flatMap(e=>s.filter(t=>t.value===e));te(s.map(t=>n.includes(t.value)?e.shift():t),t)}}else{let e=c>3||S===`xy`||S===(l?`x`:`y`),r=n?s:s.filter(({value:e})=>T(e)),i=r.findIndex(({value:e})=>e===t),a=e?hv(r,i,c,S,!!l&&ee()):-1;if(a>-1)n?te(we(s,i,a),t):m.current.get(r[a].value)?.current?.focus();else if(!(n&&c<4&&f?.key(k,t,c,o,n))&&!e)return}}e.preventDefault()},registerItem:(e,t,r)=>{if(p.current.set(e,{value:e,layout:t,ref:r}),!n){let e=Sv(O().map(e=>e.layout));e!==_&&v(e)}},updateOrder:(e,t,n)=>{if(y.current)return;let r=O(),i=mv(r,e,t,n,S,ee()?`rtl`:`ltr`);r!==i&&(y.current=!0,b.current=!0,te(i,e))}};M(()=>{y.current=!1},[a]),F(()=>f?.add(k));let ne={overflowAnchor:`none`,...c.style};return i(d,{...c,style:ne,ref:Cv(x,l),onPointerDownCapture:e=>{b.current=!1,o?.(e)},onClickCapture:e=>{b.current&&e.detail&&(b.current=!1,e.stopPropagation(),e.preventDefault()),s?.(e)},ignoreStrict:!0,children:i(pv.Provider,{value:k,children:e})})}var Tv=e=>D((t,n)=>wv(t,n,e)),Ev=50,Dv=1.5,Ov=new Set([`auto`,`scroll`]),kv={x:new Map,y:new Map};function Av(){kv.x.clear(),kv.y.clear()}function jv(e,t){let n=getComputedStyle(e),r=t===`x`?n.overflowX:n.overflowY;return e===document.body||e===document.documentElement||Ov.has(r)&&(t===`x`?e.scrollWidth>e.clientWidth:e.scrollHeight>e.clientHeight)}function Mv(e,t){let n=e?.parentElement;for(;n;){if(jv(n,t))return n;n=n.parentElement}return null}function Nv(e){let t=Math.min(1,1-e/Ev);return Dv*t*t*B.delta}function Pv(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<Ev?{amount:-Nv(o),edge:`start`}:s<Ev?{amount:Nv(s),edge:`end`}:{amount:0,edge:null}}function Fv(e,t,n,r){if(!e)return;let i=Mv(e,n);if(!i)return;let{amount:a,edge:o}=Pv(t-(n===`x`?window.scrollX:window.scrollY),i,n),s=kv[n];if(o===null){s.delete(i);return}let c=s.get(i),l=i===document.body||i===document.documentElement;if(c?.edge!==o){if(!(o===`start`&&r<0||o===`end`&&r>0))return;c={edge:o,limit:n===`x`?i.scrollWidth-(l?window.innerWidth:i.clientWidth):i.scrollHeight-(l?window.innerHeight:i.clientHeight)},s.set(i,c)}a>0&&(n===`x`?l?window.scrollX:i.scrollLeft:l?window.scrollY:i.scrollTop)>=c.limit||(n===`x`?l?window.scrollBy({left:a}):i.scrollLeft+=a:l?window.scrollBy({top:a}):i.scrollTop+=a)}function Iv(e,t=0){return X(e)?e:xg(t)}function Lv({children:e,style:t={},value:n,as:r=`li`,onDragStart:a,onDrag:o,onDragEnd:s,onKeyDown:c,onFocus:l,onBlur:u,layout:d=!0,...f},p){let m=j(pv),h=j(fv),g=N(null),_=P(()=>m.proxy[r]),v=N(),y={x:Iv(t.x),y:Iv(t.y)},b=Ag([y.x,y.y],([e,t])=>e||t?1:`unset`),{axis:x,registerItem:S,updateOrder:C,groupRef:w,hasReordered:T,isTabStop:E,setActive:D,checkTabStop:O,elements:ee,onKeyDown:te}=m,k=x===`xy`||h?!0:x;ee.set(n,g),M(()=>O);let ne=(e,t)=>{v.current=t,t||h?.end(n),Ql.get(e)?.animationState?.setActive(`whileDrag`,!!t)},re=N(!1);return F(()=>{h?.receive(m,n,g.current,ne)&&(re.current=!0)},[]),i(_,{drag:k,tabIndex:E(n)?0:-1,...f,dragSnapToOrigin:!0,style:{...t,x:y.x,y:y.y,zIndex:b},layout:d,onDragStart:(e,t)=>{re.current?re.current=!1:a?.(e,t)},onDrag:(e,t)=>{let{velocity:r,point:i}=t,a={x:y.x.get(),y:y.y.get()};h?.drag(m,n,g.current,e)||C(n,a,r);let s=h?[`x`,`y`]:[x===`xy`?Math.abs(r.x)>Math.abs(r.y)?`x`:`y`:x];for(let e of s)Fv(h&&!x.includes(e)?h.column(m):w.current,i[e],e,r[e]);o&&o(e,t)},onDragEnd:(e,t)=>{T.current=!1,Av(),h?.end(n),s&&s(e,t)},onKeyDown:e=>{c?.(e),te(e,n,v.current,ne)},onFocus:e=>{l?.(e),D(n)},onBlur:e=>{u?.(e),v.current&&ne(e.currentTarget)},onLayoutMeasure:e=>{S(n,e,g)},ref:Cv(g,p),ignoreStrict:!0,children:e})}var Rv=D(Lv),zv=e=>{let{left:t,top:n,width:r,height:i}=e.getBoundingClientRect();return{x:t+r/2,y:n+i/2}},Bv=e=>{let{x:t,y:n}=zv(e),{scrollX:r,scrollY:i}=e.ownerDocument.defaultView;return{x:t+r,y:n+i}};function Vv(e,t,n,r){let{left:i,right:a,top:o,bottom:s}=t.getBoundingClientRect(),c=r?e.x>(i+a)/2:e.x<=(i+a)/2,l=e.y<=(o+s)/2;return n===`x`?c:n===`y`?l:e.y<o||e.y<s&&c}var Hv=(e,t)=>{let n=e.groupRef.current,r=t.groupRef.current;return n.contains(r)||r.contains(n)};function Uv(e){let t=new Set,n,r=(t,n,r)=>!Hv(t,n)&&e.current.canMove?.(r,t.values,n.values)!==!1,i,a=(e,t,r,i,a,o)=>{let s=zv(i),{values:c}=t;if(o===void 0){let e=t.getOrder().filter(e=>e.ref?.current?.isConnected),n=getComputedStyle(t.groupRef.current).direction===`rtl`,r=e.find(e=>Vv(s,e.ref.current,t.axis,n)),i=e[e.length-1];o=r?c.indexOf(r.value):i?c.indexOf(i.value)+1:c.length}n={value:r,to:t.groupRef,element:i,centre:Bv(i),...a},t.hasReordered.current=!0,e.onReorder(e.values.filter(e=>e!==r),r),t.onReorder([...c.slice(0,o),r,...c.slice(o)],r)};return{add:e=>(t.add(e),()=>t.delete(e)),drag:(e,i,o,s)=>{if(!o?.isConnected)return!1;if(n?.controls?.isDragging)return n.value===i&&(n.centre=Bv(o),n.event=s),!0;let c=zv(o),l;for(let e of o.ownerDocument.elementsFromPoint(c.x,c.y))if(!o.contains(e)){for(let n of t)n.groupRef.current===e&&(l=n);if(l)break}if(!l||!r(e,l,i))return!1;let u=Ql.get(o);return a(e,l,i,o,{controls:u&&Id.get(u),event:s}),!0},key:(e,n,o,s,c)=>{let l=zv(s),u=o%2?`x`:`y`,d=o>1?1:-1,f,p=1/0;for(let i of t){let t=i.groupRef.current;if(!t)continue;let{left:a,right:s,top:c,bottom:m,width:h,height:g}=t.getBoundingClientRect();if(!h&&!g||([m,s,c,a][o]-l[u])*d<=0)continue;let _=Math.max(a-l.x,0,l.x-s),v=Math.max(c-l.y,0,l.y-m);_*_+v*v<p&&r(e,i,n)&&(p=_*_+v*v,f=i)}return f?(i?.from!==c&&(i={group:e.groupRef,from:c}),a(e,f,n,s,{keys:!0,from:c}),!0):!1},restore:(e,n,r,o)=>{let s=i?.from===o&&[...t].find(e=>e.groupRef===i.group);if(!s||s.groupRef===e.groupRef)return!1;let c=o.slice(o.indexOf(n)+1),l=s.values.findIndex(e=>c.includes(e));return i=void 0,a(e,s,n,r,{keys:!0},l<0?s.values.length:l),!0},end:e=>{n?.value===e&&(n=void 0)},isMoving:e=>n?.element===e,receive:(e,t,r,i)=>{let a=Ql.get(r),o=a&&Id.get(a);o?.isDragging&&a.animationState?.setActive(`whileDrag`,!0);let s=n;if(!s||s.value!==t||s.to!==e.groupRef)return!1;let{keys:c,from:l,controls:u}=s,d=!s.element.isConnected;if(c){n=void 0;let{activeElement:e,body:t}=r.ownerDocument;return d&&(!e||e===t)&&(r.focus(),i(r,l)),!1}return!o||!u?.isDragging?!1:(nc.read(()=>{if(n!==s)return;n=void 0,Ql.get(s.element)?.values.forEach((e,t)=>{let n=e.get();a.getValue(t,a.readValue(t,n))?.set(n)});let e=a.getTransformPagePoint()||(e=>e),t=e(s.centre),i=e(Bv(r));a.getValue(`x`).set(t.x-i.x),a.getValue(`y`).set(t.y-i.y),a.render(),d?u.cancel():u.stop(),o.start(s.event,{immediate:!0})}),d)},column:({groupRef:e})=>{let n=e.current,r=n=>[...t].some(t=>t.groupRef!==e&&n.contains(t.groupRef.current));for(;n?.parentElement?.parentElement&&!r(n.parentElement);)n=n.parentElement;return n}}}function Wv({children:e,...t}){let n=N(t);return F(()=>{n.current=t}),i(fv.Provider,{value:P(()=>Uv(n)),children:e})}var Gv=t({Board:()=>Wv,Group:()=>Kv,Item:()=>Rv}),Kv=Tv(Oh),qv=t({AnimatePresence:()=>im,AnimateSharedLayout:()=>cv,AsyncMotionValueAnimation:()=>Oa,DOMKeyframesResolver:()=>No,DOMVisualElement:()=>hu,DeprecatedLayoutGroupContext:()=>am,DocumentProjectionNode:()=>Yl,DragControls:()=>A_,Feature:()=>Sp,FlatTree:()=>pl,GroupAnimation:()=>ka,GroupAnimationWithThen:()=>ja,HTMLProjectionNode:()=>Zl,HTMLVisualElement:()=>bu,JSAnimation:()=>Tr,KeyframeResolver:()=>vi,LayoutAnimationBuilder:()=>Bu,LayoutGroup:()=>um,LayoutGroupContext:()=>ye,LazyMotion:()=>_m,MotionConfig:()=>ym,MotionConfigContext:()=>Up,MotionContext:()=>bm,MotionGlobalConfig:()=>L,MotionValue:()=>Ba,MotionValueState:()=>$o,NativeAnimation:()=>Mi,NativeAnimationExtended:()=>Ii,NativeAnimationWrapper:()=>Ma,NodeStack:()=>al,ObjectVisualElement:()=>wp,PanSession:()=>ld,PopChild:()=>Xp,PresenceChild:()=>Zp,PresenceContext:()=>xe,Reorder:()=>Gv,SVGVisualElement:()=>kp,SubscriptionManager:()=>Pe,SwitchLayoutGroupContext:()=>Gm,ViewTransitionBuilder:()=>bp,VisualElement:()=>mu,VisualElementDragControls:()=>Ld,WillChangeMotionValue:()=>Pg,acceleratedValues:()=>Vi,acquireProjectionNode:()=>Fu,activeScope:()=>Z,addAttrValue:()=>_s,addBuilderToScope:()=>Yo,addDomEvent:()=>Jl,addEffect:()=>Bo,addPinchListeners:()=>of,addPointerEvent:()=>Gu,addPointerInfo:()=>Wu,addSVGValue:()=>bs,addScaleCorrector:()=>sc,addStyleValue:()=>is,addToScope:()=>Jo,addUniqueItem:()=>Se,addValueToWillChange:()=>_o,alpha:()=>vt,analyseComplexValue:()=>Yt,animate:()=>__,animateEffectSubject:()=>Wo,animateElement:()=>Qs,animateLayout:()=>Bp,animateMini:()=>w_,animateMotionValue:()=>Xa,animateSingleValue:()=>ac,animateTarget:()=>Co,animateValue:()=>Er,animateValues:()=>Uo,animateVariant:()=>wo,animateView:()=>xp,animateVisualElement:()=>To,animationControls:()=>Vg,animationMapKey:()=>Pa,animations:()=>nh,anticipate:()=>Je,applyAxisDelta:()=>Ls,applyBoxDelta:()=>Rs,applyGeneratorOptions:()=>ji,applyPointDelta:()=>Is,applyPxDefaults:()=>Io,applyTreeDeltas:()=>Vs,arc:()=>no,aspectRatio:()=>rl,attachFollow:()=>Rf,attachSpring:()=>Uf,attrEffect:()=>vs,axisDeltaEquals:()=>il,axisEquals:()=>$c,axisEqualsRounded:()=>tl,backIn:()=>Ke,backInOut:()=>qe,backOut:()=>Ge,bindToScope:()=>Xo,boxEquals:()=>el,boxEqualsRounded:()=>nl,buildHTMLStyles:()=>us,buildProjectionTransform:()=>ul,buildSVGAttrs:()=>hs,buildSVGPath:()=>ps,buildTransform:()=>ea,buildTransformer:()=>Zt,calcAxisDelta:()=>Mc,calcBoxDelta:()=>Nc,calcChildStagger:()=>Ia,calcGeneratorDuration:()=>An,calcLength:()=>Q,calcRelativeAxis:()=>Pc,calcRelativeAxisPosition:()=>Ic,calcRelativeBox:()=>Fc,calcRelativePosition:()=>Lc,camelCaseAttributes:()=>Tp,camelToDash:()=>ls,cancelFrame:()=>q,cancelMicrotask:()=>rc,cancelSync:()=>Hp,checkVariantsDidChange:()=>Pp,circIn:()=>Ye,circInOut:()=>Ze,circOut:()=>Xe,clamp:()=>I,cleanDirtyNodes:()=>El,collectMotionValues:()=>za,color:()=>U,compareByDepth:()=>fl,complex:()=>W,containsCSSVariable:()=>gt,convertBoundingBoxToBox:()=>Ts,convertBoxToBoundingBox:()=>Es,convertOffsetToTimes:()=>cr,copyAxisDeltaInto:()=>Ec,copyAxisInto:()=>wc,copyBoxInto:()=>Tc,correctBorderRadius:()=>sl,correctBoxShadow:()=>cl,correctParentTransform:()=>K_,createAnimationState:()=>Np,createAxis:()=>Xc,createAxisDelta:()=>Jc,createBox:()=>$,createDelta:()=>Yc,createEffect:()=>es,createGeneratorEasing:()=>jn,createProjectionNode:()=>Sl,createRenderBatcher:()=>Tn,createScopedAnimate:()=>g_,cubicBezier:()=>He,cubicBezierAsString:()=>Ei,defaultEasing:()=>lr,defaultOffset:()=>sr,defaultTransformValue:()=>Zr,defaultValueTypes:()=>Fr,degrees:()=>Mt,delay:()=>lc,delayInSeconds:()=>uc,dimensionValueTypes:()=>Oo,disableInstantTransitions:()=>U_,distance:()=>od,distance2D:()=>sd,domAnimation:()=>Ah,domMax:()=>jh,domMin:()=>Mh,drag:()=>Jd,eachAxis:()=>dl,easeIn:()=>Qe,easeInOut:()=>et,easeOut:()=>$e,easingDefinitionToFunction:()=>st,elementDragControls:()=>Id,expectsResolvedDragConstraints:()=>Wd,extractEventInfo:()=>Uu,fillOffset:()=>or,fillWildcards:()=>Hr,filterProps:()=>Pm,findDimensionValueType:()=>ko,findEffect:()=>Ho,findValueType:()=>Gf,flushKeyframeResolvers:()=>gi,flushLayoutSnapshots:()=>zu,followValue:()=>Lf,frame:()=>K,frameData:()=>B,frameSteps:()=>En,generateLinearEasing:()=>On,getAnimatableNone:()=>Vr,getAnimationMap:()=>Fa,getComputedStyle:()=>Sf,getDefaultTransition:()=>qa,getDefaultValueType:()=>Ir,getEasingForSegment:()=>rt,getFeatureDefinitions:()=>pu,getFinalKeyframe:()=>mr,getMixer:()=>mn,getOptimisedAppearId:()=>bo,getOriginIndex:()=>kf,getSpringOptions:()=>er,getValueAsType:()=>Ji,getValueTransition:()=>Ha,getVariableValue:()=>ao,getVariantContext:()=>Lp,getViewAnimationLayerInfo:()=>rp,getViewAnimations:()=>ip,globalProjectionState:()=>ml,handOffElementState:()=>ec,has2DTranslate:()=>Ns,hasComplexValues:()=>Jt,hasReducedMotionListener:()=>su,hasScale:()=>ks,hasTransform:()=>js,hasWarned:()=>Re,hex:()=>At,hover:()=>Zd,hsla:()=>Lt,hslaToRgba:()=>rn,inView:()=>B_,inertia:()=>rr,initPrefersReducedMotion:()=>lu,interpolate:()=>ar,invariant:()=>De,invisibleValues:()=>dn,isAnimationControls:()=>$l,isBezierDefinition:()=>it,isBrowser:()=>be,isCSSVariableName:()=>ft,isCSSVariableToken:()=>mt,isControllingVariants:()=>ru,isDeltaZero:()=>Qc,isDragActive:()=>Sd,isDragging:()=>xd,isEasingArray:()=>nt,isElementKeyboardAccessible:()=>vd,isElementTextInput:()=>bd,isForcedMotionValue:()=>_u,isGenerator:()=>Ai,isHTMLElement:()=>Ko,isKeyframesTarget:()=>fo,isMotionComponent:()=>N_,isMotionValue:()=>X,isNear:()=>jc,isNodeOrChild:()=>uf,isNumericalString:()=>Oe,isObject:()=>ke,isPrimaryPointer:()=>Hu,isSVGElement:()=>qo,isSVGSVGElement:()=>fc,isSVGTag:()=>Ep,isTransitionDefined:()=>Ya,isValidMotionProp:()=>Mm,isVariantLabel:()=>eu,isVariantNode:()=>iu,isWaapiSupportedEasing:()=>Lo,isWillChangeMotionValue:()=>go,isZeroValueString:()=>Ae,keyframes:()=>ur,m:()=>Qm,makeAnimationInstant:()=>Bi,makeUseVisualState:()=>Bm,mapEasingToNativeEasing:()=>Oi,mapValue:()=>Vf,maxGeneratorDuration:()=>kn,measurePageBox:()=>qs,measureViewportBox:()=>Ks,memo:()=>je,microtask:()=>nc,millisecondsToSeconds:()=>Fe,mirrorEasing:()=>Ue,mix:()=>xn,mixArray:()=>hn,mixColor:()=>un,mixComplex:()=>vn,mixImmediate:()=>an,mixLinearColor:()=>on,mixNumber:()=>G,mixObject:()=>gn,mixValues:()=>_c,mixVisibility:()=>fn,motion:()=>Oh,motionValue:()=>Y,moveItem:()=>we,nodeGroup:()=>zp,noop:()=>R,number:()=>_t,numberValueTypes:()=>Pr,optimizedAppearDataAttribute:()=>yo,optimizedAppearDataId:()=>vo,originProps:()=>ns,parseAnimateLayoutArgs:()=>Vu,parseCSSVariable:()=>io,parseValueFromTransform:()=>Qr,percent:()=>Nt,pinch:()=>lf,pinchFeatures:()=>Ph,pipe:()=>Me,pixelsToPercent:()=>ol,positionalKeys:()=>uo,prefersReducedMotion:()=>ou,press:()=>xf,processFrame:()=>ic,progress:()=>Ne,progressPercentage:()=>It,propEffect:()=>tc,propagateDirtyNodes:()=>Tl,px:()=>H,readSVGValue:()=>xs,readStyleValue:()=>os,readTransformValue:()=>$r,recordStats:()=>Of,releaseElement:()=>$s,removeAxisDelta:()=>zc,removeAxisTransforms:()=>Bc,removeBoxTransforms:()=>Uc,removeEffect:()=>Vo,removeItem:()=>Ce,removePointDelta:()=>Rc,renderHTML:()=>gu,renderSVG:()=>Dp,resize:()=>ad,resolveElements:()=>Zo,resolveMotionValue:()=>pc,resolveTransition:()=>Va,resolveVariant:()=>co,resolveVariantFromProps:()=>so,reverseEasing:()=>We,rgbUnit:()=>Et,rgba:()=>Dt,rootProjectionNode:()=>Xl,round:()=>wr,sampleDelta:()=>10,scale:()=>yt,scaleCorrectors:()=>oc,scalePoint:()=>Fs,scopeMotion:()=>Tf,scrapeHTMLMotionValuesFromProps:()=>vu,scrapeSVGMotionValuesFromProps:()=>Op,scroll:()=>pg,scrollInfo:()=>ag,secondsToMilliseconds:()=>z,setDragLock:()=>Cd,setFeatureDefinitions:()=>fu,setStyle:()=>bi,setTarget:()=>ho,spring:()=>nr,springValue:()=>Hf,stagger:()=>Af,startOptimizedAppearAnimation:()=>nv,startWaapiAnimation:()=>ki,statsBuffer:()=>cc,steps:()=>tt,styleEffect:()=>cs,styleSubjectEffect:()=>ss,supportedWaapiEasing:()=>Di,supportsBrowserAnimation:()=>qi,supportsFlags:()=>xi,supportsLinearEasing:()=>Ti,supportsPartialKeyframes:()=>Ro,supportsScrollTimeline:()=>Ci,supportsViewTimeline:()=>wi,supportsWaapi:()=>Ki,svgEffect:()=>Cs,svgSubjectEffect:()=>Ss,sync:()=>Vp,testValueType:()=>Do,time:()=>V,toMediaQuery:()=>wf,transform:()=>jf,transformAxis:()=>Us,transformBox:()=>Gs,transformBoxPoints:()=>Ds,transformPropOrder:()=>ei,transformProps:()=>J,transformValue:()=>Bf,transformValueTypes:()=>Nr,transformViewBoxPoint:()=>G_,translateAxis:()=>Hs,unwrapMotionComponent:()=>P_,updateMotionValuesFromProps:()=>au,useAnimate:()=>v_,useAnimateMini:()=>T_,useAnimation:()=>D_,useAnimationControls:()=>E_,useAnimationFrame:()=>Og,useComposedRefs:()=>Kp,useCycle:()=>R_,useDeprecatedAnimatedState:()=>ov,useDeprecatedInvertedScale:()=>dv,useDomEvent:()=>k_,useDragControls:()=>M_,useElementScroll:()=>yg,useFollowValue:()=>Tg,useForceUpdate:()=>sm,useInView:()=>V_,useInstantLayoutTransition:()=>F_,useInstantTransition:()=>H_,useIsPresent:()=>em,useIsomorphicLayoutEffect:()=>F,useMotionTemplate:()=>Cg,useMotionValue:()=>xg,useMotionValueEvent:()=>Fh,usePageInView:()=>W_,usePresence:()=>$p,usePresenceData:()=>O_,useReducedMotion:()=>Ig,useReducedMotionConfig:()=>Lg,useResetProjection:()=>L_,useScopeMotion:()=>y_,useScroll:()=>vg,useSpring:()=>Dg,useTime:()=>kg,useTransform:()=>Ag,useUnmountEffect:()=>kh,useVelocity:()=>Ng,useViewportScroll:()=>bg,useWillChange:()=>Fg,variantPriorityOrder:()=>tu,variantProps:()=>nu,velocityPerSecond:()=>Ie,vh:()=>Pt,visualElementStore:()=>Ql,vw:()=>Ft,warnOnce:()=>ze,warning:()=>Ee,wrap:()=>Be}),Jv=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}},Yv=qv;Jv.register([`framer-motion`,`motion/react`,`motion`],Yv),window.Motion=Yv})();
2
+ `}tp.textContent=e,document.head.appendChild(tp),ep={}},remove:()=>{tp&&tp.parentElement&&tp.parentElement.removeChild(tp)}};function rp(e){let t=e.match(/::view-transition-(old|new|group-children|group|image-pair)\((.*?)\)/);return t?{layer:t[2],type:t[1]}:null}function ip(){return document.getAnimations().filter(e=>{let{effect:t}=e;return!!t&&t.target===document.documentElement&&t.pseudoElement?.startsWith(`::view-transition`)})}function ap(e,t){return t.has(e)&&Object.keys(t.get(e)).length>0}var op=[`layout`,`enter`,`exit`,`new`,`old`],sp=e=>e.split(` `).every(e=>parseFloat(e)===0),cp={group:[`layout`],new:[`new`,`enter`],old:[`old`,`exit`]},lp={new:{opacity:0,scale:.85},old:{opacity:1,scale:1}},up=.2;function dp(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 ka([])))();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,Zo(n)),b=Zf(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=Zf(a.get(n),l,u,v.get(n),c,d,h,f,p)}}else b=Zf(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=pp(Ha(c,n),Ha(fp(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&&=z(r.duration);let{delay:i=0,duration:a,ease:o}=ji(r);return{delay:z(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 Po)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)??D(e))&&h.add(e)},D=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)>up},O=()=>{ap(`root`,n)||np.set(`:root`,{"view-transition-name":`none`}),np.set(`::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*)`,{"animation-timing-function":`linear !important`}),h.forEach(e=>{np.set(`::view-transition-group(${e})`,{overflow:`clip`}),np.set(`::view-transition-old(${e}), ::view-transition-new(${e})`,{width:`100%`,height:`100%`,"object-fit":`cover`})}),p.forEach(e=>{np.set(`::view-transition-group-children(${e})`,{overflow:`clip`})}),np.commit()},ee=()=>{Qf(u,d,f),np.remove()},te=async()=>{await t(),b(`new`),T(`new`),E(),O()},k;try{b(`old`),T(`old`),O(),k=document.startViewTransition(te)}catch(e){return ee(),Promise.reject(e)}return k.finished.finally(ee),new Promise((e,t)=>{k.ready.then(()=>{let t=ip(),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 op){if(!e[a]||a===`enter`&&!o||a===`exit`&&!s)continue;let l=$f(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`){ze(!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=pp(Ha(c,m),Ha(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)?lp[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&&=z(f.duration),f.delay&&=z(f.delay),n.push(new Mi({...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=rp(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 Ma(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:Oi(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=z(r.duration)),r=ji(r),d={delay:z(r.delay??0),duration:u&&i!==void 0?z(i):r.duration,easing:u?`linear`:Oi(r.ease,r.duration)}}t.updateTiming(d),n.push(new Ma(e))}w.forEach((e,t)=>{if(!h.has(t))return;let{delay:r,duration:i,ease:a}=C(t);for(let o of Po){let s=e.old?.radii[o]||e.new?.radii[o]||`0px`,c=e.new?.radii[o]||e.old?.radii[o]||`0px`;sp(s)&&sp(c)||n.push(new Mi({element:document.documentElement,name:o,pseudoElement:`::view-transition-group(${t})`,keyframes:[s,c],delay:r,duration:i,ease:a}))}}),e(new ka(n))}).catch(()=>k.updateCallbackDone.then(()=>e(new ka([])),t))})}function fp(e,t){for(let n of cp[t]??[]){let t=e?.[n]?.options;if(t)return t}}function pp(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 mp=[],hp=null;function gp(){hp=null;let[e]=mp;e&&_p(e)}function _p(e){Ce(mp,e),hp=e,dp(e).then(t=>(e.notifyReady(t),t.finished)).catch(t=>e.notifyReject(t)).finally(gp)}function vp(){for(let e=mp.length-1;e>=0;e--){let t=mp[e],{interrupt:n}=t.options;if(n===`immediate`){let n=mp.slice(0,e+1).map(e=>e.update),r=mp.slice(e+1);t.update=()=>{n.forEach(e=>e())},mp=[t,...r];break}}hp&&mp[0]?.options.interrupt!==`immediate`||gp()}function yp(e){mp.push(e),nc.render(vp)}var bp=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=R,this.notifyReject=R,this.readyPromise=new Promise((e,t)=>{this.notifyReady=e,this.notifyReject=t}),this.update=e,this.options={interrupt:`wait`,...t},this.readyPromise.catch(R),yp(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 xp(e,t={}){let n=new bp(e,t);return Yo(n),n}var Sp=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function Cp(e,t){return e in t}var wp=class extends mu{constructor(){super(...arguments),this.type=`object`}readValueFromInstance(e,t){if(Cp(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}},Tp=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`]),Ep=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Dp(e,t,n,r){gu(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Tp.has(n)?n:ls(n),t.attrs[n])}function Op(e,t,n){let r=vu(e,t,n);for(let n in e)if(n!==`children`&&(X(e[n])||X(t[n]))){let t=ei.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var kp=class extends hu{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=$}getBaseTargetFromProps(e,t){return J.has(t)?super.getBaseTargetFromProps(e,t)??Zr(t):e[t]}getDefaultValue(e){return J.has(e)?this.latestValues[e]??Zr(e):void 0}readValueFromInstance(e,t){if(J.has(t)){let e=Ir(t);return e&&e.default||0}if(ms.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=Tp.has(t)?t:ls(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Op(e,t,n)}build(e,t,n){hs(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Dp(e,t,n,r)}mount(e){this.isSVGTag=Ep(e.tagName),super.mount(e)}};function Ap(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 jp=[...tu].reverse(),Mp=e=>e?.out===!0?e:e?.out;function Np(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>To(e,t,n))),n=Fp(),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`&&co(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&&Mp(f(l??(g&&g.props.initial))?.transition);if(jp.forEach((t,r)=>{let i=n[t],l=o[t],f=g&&g.props[t],v=l===void 0?eu(f)||f===!1?f:void 0:l,y=eu(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||$l(v)||typeof v==`boolean`)return;if(b===!1&&(h=r),t===`exit`&&i.isActive&&b!==!0){m={...m,...i.prevResolvedValues};return}let S=Pp(i.prevProp,v),C=S||y&&(b&&!x||r>h),w=!1,T=Array.isArray(v)?v:[v],E={},D;if(b!==!1)for(let n of T){let{transition:r,transitionEnd:i,...a}=co(e,n,lo(e,t))||{};E={...E,...a,...i},D=Mp(r)||D}let{prevResolvedValues:O}=i;for(let t in{...O,...E}){if(t in m)continue;let n=E[t],r=O[t],a=Array.isArray(n)&&Array.isArray(r)?!Ap(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=D,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=co(s,n)?.transition?.delayChildren;r.delay=Ia(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&&!X(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=Fp(),i=!0}}}function Pp(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Ap(t,e):!1}function Fp(){let e={};for(let t of tu)e[t]={isActive:t===`animate`,protectedKeys:{},needsAnimating:{},prevResolvedValues:{},out:{}};return e}var Ip=nu.length;function Lp(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Lp(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Ip;n++){let r=nu[n],i=e.props[r];(eu(i)||i===!1)&&(t[r]=i)}return t}var Rp=e=>!e.isLayoutDirty&&e.willUpdate(!1);function zp(){let e=new Set,t=new WeakMap,n=()=>e.forEach(Rp);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 Bp(e,t,n){let{scope:r,updateDom:i,defaultOptions:a}=Vu(e,t,n),o=new Bu(r,i,{...Z.current?.transition,...a});return Yo(o),o}var Vp=K,Hp=Sn.reduce((e,t)=>(e[t]=e=>q(e),e),{}),Up=w({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Wp(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=Wp(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():Wp(e[t],null)}}}}function Kp(...e){return A(Gp(...e),e)}var qp=e=>{let{width:t,height:n}=e?.getBoundingClientRect()||{};return[t/e?.offsetWidth||1,n/e?.offsetHeight||1]},Jp=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]=qp(r);t+=e*a,n+=i*o}if(getComputedStyle(r).position===`fixed`)break}let[i,a]=qp(e.offsetParent);return[t/i,n/a]},Yp=class extends l{getSnapshotBeforeUpdate(e){let t=this.props.getElement();if(Ko(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=Ko(e)&&e.offsetWidth||0,r=Ko(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=Jp(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=ce(),l=N(null),u=N({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:d}=j(Up),f=Kp(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 ue(()=>{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 nc.setup(()=>{let[e,t]=Jp(r);f=u.current.point[0]-e,h=u.current.point[1]-t}),nc.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(Yp,{isPresent:t,getElement:p,sizeRef:u,pop:o,children:o===!1?e:C(e,{ref:f})})}var Zp=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:o,mode:s,anchorX:c,anchorY:l,root:u})=>{let d=P(Qp),f=ce(),p=N(),m=N(n),h=N(r);F(()=>{m.current=n,h.current=r});let g=!0,_=fe(()=>(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&&(_={..._}),fe(()=>{d.forEach((e,t)=>d.set(t,!1))},[n]),M(()=>{!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(xe.Provider,{value:_,children:e})};function Qp(){return new Map}function $p(e=!0){let t=j(xe);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=ce();M(()=>{if(e)return i(a)},[e]);let o=A(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}function em(){return tm(j(xe))}function tm(e){return e===null||e.isPresent}var nm=e=>e.key||``;function rm(e){let t=[];return c.forEach(e,e=>{O(e)&&t.push(e)}),t}var im=({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]=$p(c),m=fe(()=>rm(e),[e]),h=c&&!f?[]:m.map(nm),g=N(!0),_=P(()=>new Map),v=N(new Set),[y,b]=he(m),[x,S]=he(m);F(()=>{c&&!f&&!x.length&&p?.()},[f,c,x.length,p]);let C=N();M(()=>()=>{let e=C.current;C.current=void 0,e?.()},[x]),F(()=>{g.current=!1;for(let e=0;e<x.length;e++){let t=nm(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(nm(n));r===-1?(e.splice(t++,0,n),w.push(n)):t=r+w.length+1}return w.every(e=>_.get(nm(e)))?e=m:s===`wait`&&(e=w),S(rm(e)),b(m),null}let{forceRender:T}=j(ye);return i(r,{children:x.map(e=>{let r=nm(e),y=c&&!f?!1:m===x||h.includes(r);return i(Zp,{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)})})},am=w(null);function om(){let e=N(!1);return F(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function sm(){let e=om(),[t,n]=he(0),r=A(()=>{e.current&&n(t+1)},[t]);return[A(()=>K.postRender(r),[r]),t]}var cm=e=>e===!0,lm=e=>cm(e===!0)||e===`id`,um=({children:e,id:t,inherit:n=!0})=>{let r=j(ye),a=j(am),[o,s]=sm(),c=N(null),l=r.id||a;c.current===null&&(lm(n)&&l&&(t=t?l+`-`+t:l),c.current={id:t,group:cm(n)&&r.group||zp()});let u=fe(()=>({...c.current,forceRender:o}),[s]);return i(ye.Provider,{value:u,children:e})},dm=w({strict:!1}),fm={animation:[`variants`,...tu],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`]},pm=!1;function mm(){if(pm)return;let e={};for(let t in fm)e[t]={isEnabled:e=>fm[t].some(t=>!!e[t])};fu(e),pm=!0}function hm(){return mm(),pu()}function gm(e){let t=hm();for(let n in e)t[n]={...t[n],...e[n]};fu(t)}function _m({children:e,features:t,strict:n=!1}){let[,r]=he(!vm(t)),a=N(void 0);if(!vm(t)){let{renderer:e,...n}=t;a.current=e,gm(n)}return M(()=>{vm(t)&&t().then(({renderer:e,...t})=>{gm(t),a.current=e,k(()=>r(!0))})},[]),i(dm.Provider,{value:{renderer:a.current,strict:n},children:e})}function vm(e){return typeof e==`function`}function ym({children:e,...t}){let n=j(Up);t={...n,...t},t.transition=Va(t.transition,n.transition),t.isStatic=P(()=>t.isStatic);let r=fe(()=>t,[JSON.stringify(t.transition),t.transformPagePoint,t.reducedMotion,t.skipAnimations,t.isValidProp]);return i(Up.Provider,{value:r,children:e})}var bm=w({});function xm(e,t){if(ru(e)){let{initial:t,animate:n}=e;return{initial:t===!1||eu(t)?t:void 0,animate:eu(n)?n:void 0}}return e.inherit===!1?{}:t}function Sm(e){let{initial:t,animate:n}=xm(e,j(bm));return fe(()=>({initial:t,animate:n}),[Cm(t),Cm(n)])}function Cm(e){return Array.isArray(e)?e.join(` `):e}var wm=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Tm(e,t,n){for(let r in t)!X(t[r])&&!_u(r,n)&&(e[r]=t[r])}function Em({transformTemplate:e},t){return fe(()=>{let n=wm();return us(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Dm(e,t){let n=e.style||{},r={};return Tm(r,n,e),Object.assign(r,Em(e,t)),r}function Om(e,t){let n={},r=Dm(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 km=()=>({...wm(),attrs:{}});function Am(e,t,n,r){let i=fe(()=>{let n=km();return hs(n,t,Ep(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};return Tm(t,e.style,e),{...i,style:{...t,...i.style}}}return i}var jm=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.tap.propagate.ignoreStrict.viewport.pinch`.split(`.`));function Mm(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||jm.has(e)}function Nm(e,t){return e.startsWith(`on`)?!Mm(e):t?.(e)??!Mm(e)}function Pm(e,t,n,r){let i={};for(let a in e)a===`values`&&typeof e.values==`object`||X(e[a])||(a===`fx`?e.fx&&(i.fx=``):(Nm(a,r)||n===!0&&Mm(a)||!t&&!Mm(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]));return i}var Fm=[`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 Im(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Fm.indexOf(e)>-1||/[A-Z]/u.test(e))}function Lm(e,t,n,{latestValues:r},i,a=!1,o,s){let c=(o??Im(e)?Am:Om)(t,r,i,e),l=Pm(t,typeof e==`string`,a,s),d=e===u?{}:{...l,...c,ref:n},{children:f}=t,p=fe(()=>X(f)?f.get():f,[f]);return T(e,{...d,children:p})}function Rm({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:zm(n,r,i,e),renderState:t()}}function zm(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=pc(a[e]);let{initial:o,animate:s}=e,c=ru(e),l=iu(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`&&!$l(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=so(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 Bm=e=>(t,n)=>{let r=j(bm),i=j(xe),a=()=>Rm(e,t,r,i);return n?a():P(a)},Vm=Bm({scrapeMotionValuesFromProps:vu,createRenderState:wm}),Hm=Bm({scrapeMotionValuesFromProps:Op,createRenderState:km}),Um=Symbol.for(`motionComponentSymbol`);function Wm(e,t,n){let r=N(n);ue(()=>{r.current=n});let i=N(null);return A(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 Km(e,t,n,r,i,a){let{visualElement:o}=j(bm),s=j(dm),c=j(xe),l=j(Up),u=l.reducedMotion,d=l.skipAnimations,f=N(null),p=N(!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=j(Gm);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&i.create(m,n,h),ue(()=>{m&&m.props!==n&&m.update(n,c)});let g=n[yo],_=N(!!g&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return F(()=>{p.current&&m&&(m.animationState?.animateChanges(),m.enteringChildren=void 0)},[]),F(()=>{p.current=!0,m&&(window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),_.current&&m.animationState&&m.animationState.animateChanges())}),M(()=>{m&&(!_.current&&m.animationState&&m.animationState.animateChanges(),_.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),!1),m.enteringChildren=void 0)}),m}function qm(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&gm(r);let s=n?n===`svg`:Im(e),c=s?Hm:Vm;function l(n,l){let u,d=Jm(n);P(()=>!!Xl.current?.sharedNodes.get(d)?.lead&&n.initial)&&(n={...n,initial:!1});let f={...j(Up),...n,layoutId:d},{isStatic:p,isValidProp:m}=f,h=Sm(n),g=c(n,p);if(!p&&typeof window<`u`){Ym(f,r);let t=Xm(f);h.visualElement=Km(e,g,f,o,t.ProjectionNode,s),(t.isEnabled||h.visualElement?.projection?.options.layoutId)&&(u=t.MeasureLayout)}return a(bm.Provider,{value:h,children:[u&&h.visualElement?i(u,{visualElement:h.visualElement,...f}):null,Lm(e,n,Wm(g,h.visualElement,l),g,p,t,s,m)]})}l.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let u=D(l);return u[Um]=e,u}function Jm({layoutId:e}){let t=j(ye).id;return t&&e!==void 0?t+`-`+e:e}function Ym(e,t){j(dm).strict}function Xm(e){let{drag:t,layout:n}=hm();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:r.MeasureLayout,isEnabled:t?.isEnabled(e)||n?.isEnabled(e),ProjectionNode:r.ProjectionNode}}function Zm(e,t){if(typeof Proxy>`u`)return qm;let n=new Map,r=(n,r)=>qm(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,qm(a,void 0,e,t)),n.get(a))})}var Qm=Zm(),$m=(e,t)=>t.isSVG??Im(e)?new kp(t):new bu(t,{allowProjection:e!==u}),eh=class extends Sp{constructor(e){super(e),e.animationState||=Np(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();$l(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?.()}},th=0,nh={animation:{Feature:eh},exit:{Feature:class extends Sp{constructor(){super(...arguments),this.id=th++}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}=co(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(){}}}},rh=class extends Sp{constructor(e){super(e),this.removeGroupControls=R,this.removeListeners=R,this.controls=new Ld(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||R}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()}},ih=e=>(t,n)=>{e&&K.update(()=>e(t,n),!1,!0)},ah=class extends Sp{constructor(){super(...arguments),this.removePointerDownListener=R}onPointerDown(e){this.session=new ld(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:ih(e),onStart:ih(t),onMove:ih(n),onEnd:(e,t)=>{delete this.session,r&&K.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Gu(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session?.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session?.end()}},oh=!1,sh=({layout:e,layoutDependency:t,layoutAnchor:n})=>({layout:e,layoutDependency:t,layoutAnchor:n,animationType:typeof e==`string`?e:`both`}),ch=(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)}},lh=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),oh&&i.root.didUpdate(),i.options.layoutId!==r&&ch(i,r)?.(),i.addEventListener(`animationComplete`,()=>this.safeToRemove()),i.setOptions({...i.options,...sh(this.props),onExitComplete:()=>this.safeToRemove()})),ml.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(),ch(o,n)),o.setOptions({...o.options,...sh(this.props)}),oh=!0,i||e.layoutDependency!==t||t===void 0||e.isPresent!==a?o.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?o.promote():o.relegate()||K.postRender(()=>{o.getStack()?.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(this.takeOver?.(),e.root.didUpdate(),nc.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;oh=!0,r&&(r.scheduleCheckAfterUnmount(),t.group?.remove(r),n?.deregister?.(r))}safeToRemove(){this.props.safeToRemove?.()}render(){return null}};function uh(e){let[t,n]=$p(),r=j(ye);return i(lh,{...e,layoutGroup:r,switchLayoutGroup:j(Gm),isPresent:t,safeToRemove:n})}var dh={pan:{Feature:ah},drag:{Feature:rh,ProjectionNode:Zl,MeasureLayout:uh}};function fh(e,t,n,r,i){let{props:a}=e,o=`while`+n;!i&&e.animationState&&a[o]&&e.animationState.setActive(o,r===`Start`);let s=a[`on`+n+r];s&&K.postRender(()=>s(t,Uu(t)))}var ph=class extends Sp{mount(){let{current:e}=this.node;e&&(this.unmount=Zd(e,(e,t)=>(fh(this.node,t,`Hover`,`Start`),e=>fh(this.node,e,`Hover`,`End`))))}unmount(){}},mh=class extends Sp{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=Me(Jl(this.node.current,`focus`,()=>this.onFocus()),Jl(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function hh(e,t,n,r){e.current instanceof HTMLButtonElement&&e.current.disabled||fh(e,t,`Tap`,n,r)}var gh=class extends Sp{constructor(){super(...arguments),this.options={}}mount(){let{current:e}=this.node;e&&(this.update(),this.unmount=xf(e,(e,t)=>(hh(this.node,t,`Start`),{onComplete:(e,{success:t})=>hh(this.node,e,t?``:`Cancel`),onRepeat:()=>hh(this.node,t,``,!0)}),this.options))}update(){let{options:e,node:t}=this,{globalTapTarget:n,propagate:r,tap:i}=t.props;for(let t in e)delete e[t];Object.assign(e,i,{useGlobalTarget:n,stopPropagation:r?.tap===!1})}unmount(){}},_h=new WeakMap,vh=new WeakMap,yh=e=>{let t=_h.get(e.target);t&&t(e)},bh=e=>{e.forEach(yh)};function xh({root:e,...t}){let n=e||document;vh.has(n)||vh.set(n,{});let r=vh.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(bh,{root:e,...t})),r[i]}function Sh(e,t,n){let r=xh(t);return _h.set(e,n),r.observe(e),()=>{_h.delete(e),r.unobserve(e)}}var Ch={some:0,all:1},wh=class extends Sp{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:Ch[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=Sh(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(Th(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function Th({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var Eh={inView:{Feature:wh},tap:{Feature:gh},focus:{Feature:mh},hover:{Feature:ph}},Dh={layout:{ProjectionNode:Zl,MeasureLayout:uh}},Oh=Zm(Object.assign({},nh,Eh,dh,Dh),$m);function kh(e){return M(()=>()=>e(),[])}var Ah=Object.assign({renderer:$m},nh,Eh),jh=Object.assign({},Ah,dh,Dh),Mh={renderer:$m,...nh},Nh=[`scale`,`rotate`,`x`,`y`],Ph={renderer:$m,pinch:{Feature:class extends Sp{constructor(){super(...arguments),this.touchAction=``}mount(){let{current:e}=this.node;if(!e)return;this.touchAction=e.style.touchAction,this.update();let t={},n=e=>(n,r)=>t[e]?.(n,r);this.unmount=of(e,()=>Nh.map(e=>this.node.getValue(e,+(e===`scale`))),()=>{let{pinch:e}=this.node.getProps();return e&&(t=e===!0?{}:e)},(e,t,r)=>{let i=e=>this.node.animationState?.setActive(`whilePinch`,e);return i(!0),n(`onStart`)(t,r),{onPinch:n(`onMove`),onComplete:(e,t)=>{i(!1),n(`onEnd`)(e,t)}}})}update(){let e=this.node.current?.style;if(e){let{pinch:t,style:n}=this.node.getProps();e.touchAction=t?n?.touchAction||`none`:this.touchAction}}unmount(){}},isEnabled:e=>!!e.pinch}};function Fh(e,t,n){ue(()=>e.on(t,n),[e,t,n])}var Ih=50,Lh=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Rh=()=>({time:0,x:Lh(),y:Lh()}),zh={x:{length:`Width`,position:`Left`},y:{length:`Height`,position:`Top`}},Bh=new WeakMap;function Vh(e,t){let n=e===document.scrollingElement,r=n&&document.body||e,i=Bh.get(r);i||Bh.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 Hh(e,t,n,r){let i=n[t],{length:a,position:o}=zh[t],s=i.current,c=n.time,l=e[`scroll${o}`];i.current=Vh(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=I(0,1,Ne(0,i.scrollLength,i.current));let u=r-c;i.velocity=u>Ih?0:Ie(i.current-s,u)}function Uh(e,t,n){for(let r in zh)Hh(e,r,t,n);t.time=n}var Wh={start:0,center:.5,end:1};function Gh(e,t,n=0){let r=0;if(e in Wh&&(e=Wh[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 Kh=[0,0];function qh(e,t,n,r){let i=Array.isArray(e)?e:Kh,a=0,o=0;return typeof e==`number`?i=[e,e]:typeof e==`string`&&(e=e.trim(),i=e.includes(` `)?e.split(` `):[e,Wh[e]?e:`0`]),a=Gh(i[0],n,r),o=Gh(i[1],t),a-o}var Jh={All:[[0,0],[1,1]]};function Yh(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+Ne(i(a),i(a+1),t))/n;return r?1-o:o}function Xh(e,{offset:t=Jh.All}){for(let n in zh){let r=e[n];r.offset.length=0;for(let e=0;e<t.length;e++)r.offset[e]=qh(t[e],r.containerLength,r.targetLength,r.targetOffset);r.progress=I(0,1,Yh(r.offset,r.current))}}function Zh(e,t){let n={x:0,y:0},r=e;for(;r&&r!==t;)if(Ko(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 Qh(e){return`getBBox`in e&&e.tagName!==`svg`?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function $h(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 zh){let r=e,{offset:i}=n[r];Object.assign(n[r],t[r]),n[r].offset=i}if(i&&i!==e){let t=Zh(i,e),r=Qh(i);n.x.targetOffset=t.x,n.y.targetOffset=t.y,n.x.targetLength=r.width,n.y.targetLength=r.height}Xh(n,r)}},notify:e=>t(a?n:e)}}var eg=new WeakMap,tg=new WeakMap,ng=new WeakMap,rg=new WeakMap,ig=e=>e===document.scrollingElement?window:e;function ag(e,{container:t=document.scrollingElement,trackContentSize:n=!1,...r}={}){if(!t)return R;let i=ng.get(t);i||(i=new Set,ng.set(t,i));let a=$h(t,e,Rh(),r);if(i.add(a),!eg.has(t)){let e=Rh(),n=()=>{Uh(t,e,B.timestamp);for(let t of i)t.measure(e);K.preUpdate(r)},r=()=>{for(let t of i)t.notify(e)},a=()=>K.read(n);eg.set(t,a);let o=ig(t);window.addEventListener(`resize`,a),t!==document.documentElement&&tg.set(t,ad(t,a)),o.addEventListener(`scroll`,a),a()}if(n&&!rg.has(t)){let e=eg.get(t),n={width:t.scrollWidth,height:t.scrollHeight},r=K.read(()=>{let r=t.scrollWidth,i=t.scrollHeight;(n.width!==r||n.height!==i)&&(e(),n.width=r,n.height=i)},!0);rg.set(t,r)}let o=eg.get(t);return K.read(o,!1,!0),()=>{q(o);let e=ng.get(t);if(!e||(e.delete(a),e.size))return;ng.delete(t);let n=eg.get(t);eg.delete(t),n&&(ig(t).removeEventListener(`scroll`,n),tg.get(t)?.(),window.removeEventListener(`resize`,n));let r=rg.get(t);r&&(q(r),rg.delete(t))}}function og(e){return typeof window>`u`?!1:e?wi():Ci()}var sg=new Map;function cg({container:e,target:t,axis:n}){let r=sg.get(e);r||(r=new Map,sg.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 lg=e=>{if(/v/u.test(e))return[];let t=qh(e,0,0,0);return[qh(e,0,1,0)-t,t-qh(e,1,0,0),t]},ug=([e,t,n])=>!n&&(t===0||t===1)&&`${t?`entry`:`exit`}-crossing ${e*100}%`;function dg(e=Jh.All){if(e.length!==2)return;let[t,n]=e.map(lg),r=[ug(t),ug(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 fg(e,t){let{target:n,container:r,axis:i}=t,a=n&&dg(t.offset),o=og(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?cg(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||=ag(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(ad(c),ad([n,r],c))}return()=>{f.forEach(e=>e()),l?.()}}function pg(e,{axis:t=`y`,source:n,container:r=document.scrollingElement,...i}={}){if(!r)return R;let a={axis:t,container:n||r,...i};if(typeof e==`function`){let n=Xo(e);return Jo(ag(e=>n(e[t].progress,e),a))}return Jo(fg(e,a))}var mg=()=>({scrollX:Y(0),scrollY:Y(0),scrollXProgress:Y(0),scrollYProgress:Y(0),scrollXLength:Y(0),scrollYLength:Y(0)}),hg=e=>e?!e.current:!1;function gg(e,t,n,r){return{factory:i=>{let a,o=()=>{hg(n)||hg(r)?nc.read(o):a=pg(i,{...t,axis:e,container:n?.current||void 0,target:r?.current||void 0})};return nc.read(o),()=>{rc(o),a?.()}},times:[0,1],keyframes:[0,1],ease:e=>e,duration:1}}function _g(e,t){return typeof window>`u`?!1:e?wi()&&!!dg(t):Ci()&&!t}function vg({container:e,target:t,...n}={}){let r=P(mg);_g(t,n.offset)&&(r.scrollXProgress.accelerate=gg(`x`,n,e,t),r.scrollYProgress.accelerate=gg(`y`,n,e,t));let i=N(null),a=N(!1),o=A(()=>(i.current=pg((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 F(()=>{if(a.current=!1,hg(e)||hg(t))a.current=!0;else return o()},[o]),M(()=>{if(!a.current)return;let n,r=()=>{let r=hg(e),i=hg(t);!r&&!i&&(n=o())};return nc.read(r),()=>{rc(r),n?.()}},[o]),r}function yg(e){return vg({container:e})}function bg(){return vg()}function xg(e){let t=P(()=>Y(e)),{isStatic:n}=j(Up);if(n){let[,n]=he(e);M(()=>t.on(`change`,n),[])}return t}function Sg(e,t){let n=xg(t()),r=()=>n.set(t());return r(),F(()=>{let t=()=>K.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return r(),()=>{n.forEach(e=>e()),q(r)}}),n}function Cg(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 Sg(t.filter(X),r)}function wg(e){za.current=[],e();let t=Sg(za.current,e);return za.current=void 0,t}function Tg(e,t={}){return Eg(e,t,Rf)}function Eg(e,t,n){let{isStatic:r}=j(Up),i=()=>X(e)?e.get():e;if(r)return wg(i);let a=xg(i());return ue(()=>n(a,e,t),[a,JSON.stringify(t)]),a}function Dg(e,t={}){return Eg(e,t,Uf)}function Og(e){let t=N(0),{isStatic:n}=j(Up);M(()=>{if(n)return;let r=({timestamp:n,delta:r})=>{t.current||=n,e(n-t.current,r)};return K.update(r,!0),()=>q(r)},[e])}function kg(){let e=xg(0);return Og(t=>e.set(t)),e}function Ag(e,t,n,r){if(typeof e==`function`)return wg(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return Mg(e,t,n,r);let i=typeof t==`function`?t:jf(t,n,r),a=Array.isArray(e)?jg(e,i):jg([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 jg(e,t){let n=P(()=>[]);return Sg(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function Mg(e,t,n,r){let i=P(()=>Object.keys(n)),a=P(()=>({}));for(let o of i)a[o]=Ag(e,t,n[o],r);return a}function Ng(e){let t=xg(e.getVelocity()),n=()=>{let r=e.getVelocity();t.set(r),r&&K.update(n)};return Fh(e,`change`,()=>{K.update(n,!1,!0)}),t}var Pg=class extends Ba{constructor(){super(...arguments),this.isEnabled=!1}add(e){(J.has(e)||Vi.has(e))&&(this.isEnabled=!0,this.update())}update(){this.set(this.isEnabled?`transform`:`auto`)}};function Fg(){return P(()=>new Pg(`auto`))}function Ig(){!su.current&&lu();let[e]=he(ou.current);return e}function Lg(){let e=Ig(),{reducedMotion:t}=j(Up);return t===`never`?!1:t===`always`||e}function Rg(e){e.values.forEach(e=>e.stop())}function zg(e,t){[...t].reverse().forEach(n=>{let r=e.getVariant(n);r&&ho(e,r),e.variantChildren&&e.variantChildren.forEach(e=>{zg(e,t)})})}function Bg(e,t){if(Array.isArray(t))return zg(e,t);if(typeof t==`string`)return zg(e,[t]);ho(e,t)}function Vg(){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(To(e,t,{transitionOverride:n}))}),Promise.all(r)},set(t){return e.forEach(e=>{Bg(e,t)})},stop(){e.forEach(e=>{Rg(e)})},mount(){return()=>{t.stop()}}};return t}function Hg(e){return typeof e==`object`&&!Array.isArray(e)}function Ug(e,t,n,r){return e==null?[]:typeof e==`string`&&Hg(t)?Zo(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function Wg(e,t,n){return e*(t+1)+n*t}function Gg(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 Kg(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))):Gg(t,r)??e}function qg(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(Ce(e,i),r--)}}function Jg(e,t,n,r,i,a){qg(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:G(i,a,r[o]),easing:rt(n,o)})}function Yg(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function Xg(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var Zg=`easeInOut`,Qg=20;function $g(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:Kg(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=n_(e),{delay:l=0,times:u=sr(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=Ai(d)?d:i?.[d||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&a_(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,..._};b!==void 0&&(n.duration=z(b));let r=jn(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&&or(u,T),c.length===1&&c.unshift(null),m&&m<Qg){let e=b>0?g/b:0;b=Wg(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`?We(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`:rt(f,e-1))}Yg(u,m,e)}let E=w+b;Jg(r,c,v,u,w,E),y=Math.max(x+b,y),p=Math.max(E,p)};if(X(g)){let e=e_(g,c);b(_,v,t_(`default`,e))}else{let e=Ug(g,_,r,l),t=e.length;for(let n=0;n<t;n++){_=_,v=v;let r=e[n],i=e_(r,c);for(let e in _)b(_[e],r_(v,e),t_(e,i),n,t)}}d=f,f+=y,a=Math.max(a,f)}return a};m(e,0),a&&(a.duration=p,a.labels=u);let{type:h,...g}=t;return c.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(Xg);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(Ne(0,p,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),o.unshift(o[0]),l.unshift(Zg)),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,u.transition[i]={...g,duration:p,ease:l,times:c,mixer:a.mixer||t.mixer,...n}}}),s}function e_(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function t_(e,t){return t[e]||(t[e]=[]),t[e]}function n_(e){return Array.isArray(e)?e:[e]}function r_(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var i_=e=>typeof e==`number`,a_=e=>e.every(i_);function o_(e,t){return X(e)||typeof e==`number`||typeof e==`string`&&!Hg(t)}function s_(e,t,n,r){let i=[];if(o_(e,t))i.push(ac(e,Hg(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=Ug(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(...Qs(r,t,s,Ql.get(r))):i.push(...Wo(Ho(r)??tc,r,t,s))}}return i}function c_(e,t,n,r){let i=[],a=$g(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:nr},r),o=t?.reduceMotion??t?.defaultTransition?.reduceMotion;return a.forEach(({keyframes:e,transition:t},n)=>{i.push(...s_(n,e,{...t,reduceMotion:o}))}),i}var l_=0;function u_({repeat:e=0,repeatDelay:t=0,repeatType:n=`loop`,delay:r=0},i,a,o){let s=i+t,c=o===void 0;if(c){let t=Math.max(0,a-r);o=s&&t>0?Math.min(e,Math.ceil(t/s-1e-9)-1):0,a=Math.min(t-o*s,i)}return n!==`loop`&&o%2&&(a=i-a),[o,c?a:r+o*s+a]}function d_(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 f_=(e,t)=>t===void 0?e:{name:e,at:t};function p_(e){e.pause(),e.time=0,e.stop()}var m_=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=Z.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 ja(n),this.watch()):(this.invalidate(),this.flush())}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`+l_++,time:0,callback:e}})}addPause(e,t){return this.push({item:t||{},at:e,marker:{name:`_m`+l_++,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=this.iterationDuration,r=this.time,[i]=u_(this.options,n,r),a=u_(this.options,n,t,i)[1],o=Math.abs(this.speed);return this.speed=a<r?-o:o,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&&=(p_(this.group),void 0),this.isDirty=!1,this.parent=e}build(){let e=this.isWrapped?this.group.iterationDuration:this.totalDuration;this.isDirty=!1,this.isWrapped=!1;let t=this.group,n=0;t&&(this.isRebuilding=!0,this.scrollTimeline?(this.detachScroll?.(),t.cancel()):(n=t.animations.length?t.time:0,p_(t)),this.isRebuilding=!1);let{defaultTransition:r,onComplete:i,onUpdate:a,onRepeat:o,onReverseComplete:s,autoplay:c,scope:l,...u}=this.options,d={};l?.reduceMotion!==void 0&&(d.reduceMotion=l.reduceMotion),l?.skipAnimations!==void 0&&(d.skipAnimations=l.skipAnimations),Object.assign(d,u);let f=new Map,p={},m=Z.current;Z.current=this.motionScope;let h;try{h=c_(this.toSequence(f),{defaultTransition:r,...d},l,p)}finally{Z.current=m}let g=p.labels,_=d.duration??p.duration,v=p.duration?_/p.duration:1;if(g.forEach((e,t)=>g.set(t,e*v)),this.markers=[],f.forEach((e,t)=>{e.time=g.get(t),g.delete(t),_=Math.max(_,e.time),this.markers.push(e)}),this.markers.sort((e,t)=>e.time-t.time),this.labels=g,this.totalDuration=_,this.clock=this.clockAnimation=void 0,this.markers.length||this.stopAt!==void 0||a||o){let e=this.clock=Y(0);e.on(`change`,t=>e===this.clock&&this.onClock(t)),h.unshift(this.clockAnimation=ac(e,[0,_],{...d,duration:_,ease:`linear`}))}let y=this.group=new ja(h),{delay:b=0,repeat:x=0,repeatDelay:S=0}=this.options,[C,w]=u_(this.options,e,n);n>b&&(n=u_(this.options,_,Math.min(w,_),C)[1]),this.isDone&&n<b+(x+1)*(_+S)-S&&this.newFinished(),this.scrollTimeline?this.detachScroll=y.attachTimeline(this.scrollTimeline):(y.speed=this.playbackSpeed,this.isPaused&&y.pause(),n&&(y.time=n)),this.repeatIndex=this.currentRepeat(),this.prevTime=n||-1,this.watch()}toSequence(t){return this.entries.map(({item:n,at:r,marker:i})=>i?(t.set(i.name,i),f_(i.name,r)):n instanceof e?{sequence:n.toSequence(t),at:r}:typeof n==`string`?f_(n,r):r===void 0?n:Array.isArray(n)?d_(n,r):{...n,at:r})}resolve(e){return this.flush(),typeof e==`number`?e:Gg(e,this.labels)??this.time}currentRepeat(){return u_(this.options,this.totalDuration,this.clockAnimation?.time??0)[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(),o=a>this.repeatIndex?1:-1;for(;a!==this.repeatIndex;){let e=this.speed>0==(i===`loop`||!(this.repeatIndex%2)),n=e?this.totalDuration:0;if(this.cross(t,n))return;this.repeatIndex+=o,r?.(),t=i===`loop`?e?-1:1/0:n}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=u_(this.options,this.totalDuration,e,this.repeatIndex)[1],!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,r=this.speed<0&&n||t,i=this.resolveFinished;r?.(),i()})}newFinished(){this.isDone=!1,this.finished=new Promise(e=>{this.resolveFinished=e});let{scope:e}=this.options,t=this.motionScope?.add(()=>{this.isKilled=!0,this.stop()});e?.animations.push(this),this.finished.then(()=>{t?.(),e&&Ce(e.animations,this)})}};function h_(e){return Array.isArray(e)&&e.some(e=>Array.isArray(e)||e?.sequence)}function g_(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=Z.current?.transition,s={};n!==void 0&&(s.reduceMotion=n),r!==void 0&&(s.skipAnimations=r);let c;if(h_(e)){let r={...s,...i,scope:t};o&&(r.defaultTransition={...o,...r.defaultTransition}),r.reduceMotion=i?.reduceMotion??r.defaultTransition?.reduceMotion??n,c=new m_(e,r)}else{let{onComplete:n,...r}=a||{},l={...s,...o,...r},{onUpdate:u}=r;c=new m_([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},s_(e,i,l,t))}return c}return i}var __=Object.assign(g_(),{addEffect:Bo,removeEffect:Vo});function v_(){let e=P(()=>({current:null,animations:[]})),t=Lg()??void 0,{skipAnimations:n}=j(Up);e.reduceMotion=t,e.skipAnimations=n;let r=fe(()=>g_({scope:e,reduceMotion:t,skipAnimations:n}),[e,t,n]);return kh(()=>{e.animations.forEach(e=>e.stop()),e.animations.length=0}),[e,r]}function y_(e,t,{deps:n=[],...r}={}){let i=N(null),a=N(t);return a.current=t,F(()=>{let t=i.current=Tf(e?.current||void 0,e=>a.current(e),r);return()=>{t.cancel(),i.current===t&&(i.current=null)}},n),i}function b_(e,t,n,r){let i=[];return x_(i,e,t,n,r),S_(i)}function x_(e,t,n,r,i){if(t==null)return;let a=Zo(t,i),o=a.length;for(let t=0;t<o;t++){let i=a[t],s={...r};typeof s.delay==`function`&&(s.delay=s.delay(t,o));for(let t in n){let r=n[t];Array.isArray(r)||(r=[r]);let a={...Ha(s,t)};a.duration&&=z(a.duration),a.delay&&=z(a.delay);let o=Fa(i),c=Pa(t,a.pseudoElement||``),l=o.get(c);l&&l.stop(),e.push({map:o,key:c,unresolvedKeyframes:r,options:{...a,element:i,name:t,allowFlatten:!s.type&&!s.ease}})}}}function S_(e){for(let t=0;t<e.length;t++){let{unresolvedKeyframes:n,options:r}=e[t],{element:i,name:a,pseudoElement:o}=r;!o&&n[0]===null&&(n[0]=Sf(i,a)),Hr(n),Io(n,a),!o&&n.length<2&&n.unshift(Sf(i,a)),r.keyframes=n}let t=[];for(let n=0;n<e.length;n++){let{map:r,key:i,options:a}=e[n],o=new Mi(a);r.set(i,o),o.finished.finally(()=>r.delete(i)),t.push(o)}return t}var C_=e=>{function t(t,n,r){return new ja(b_(t,n,r,e))}return t},w_=C_();function T_(){let e=P(()=>({current:null,animations:[]})),t=P(()=>C_(e));return kh(()=>{e.animations.forEach(e=>e.stop())}),[e,t]}function E_(){let e=P(Vg);return F(e.mount,[]),e}var D_=E_;function O_(){let e=j(xe);return e?e.custom:void 0}function k_(e,t,n,r){M(()=>{let i=e.current;if(n&&i)return Jl(i,t,n,r)},[e,t,n,r])}var A_=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()})}},j_=()=>new A_;function M_(){return P(j_)}function N_(e){return typeof e==`object`&&!!e&&Um in e}function P_(e){if(N_(e))return e[Um]}function F_(){return I_}function I_(e){Xl.current&&(Xl.current.isUpdating=!1,Xl.current.blockUpdate(),e&&e())}function L_(){return A(()=>{let e=Xl.current;e&&e.resetTree()},[])}function R_(...e){let t=N(0),[n,r]=he(e[t.current]);return[n,A(n=>{t.current=typeof n==`number`?n:Be(0,e.length,t.current+1),r(e[t.current])},[e.length,...e])]}var z_={some:0,all:1};function B_(e,t,{root:n,margin:r,amount:i=`some`}={}){let a=Zo(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:z_[i]});return a.forEach(e=>s.observe(e)),Jo(()=>s.disconnect())}function V_(e,{root:t,margin:n,amount:r,once:i=!1,initial:a=!1}={}){let[o,s]=he(a),[c,l]=he({});return M(()=>{let a=c.current=e.current;return!a||i&&o?void 0:B_(a,()=>(s(!0),i?void 0:()=>s(!1)),{root:t&&t.current||void 0,margin:n,amount:r})},[t,e,n,i,r,c]),M(()=>{e.current!==c.current&&(i||s(!1),l({}))}),o}function H_(){let[e,t]=sm(),n=F_(),r=N(-1);return M(()=>{K.postRender(()=>K.postRender(()=>{t===r.current&&(L.instantAnimations=!1)}))},[t]),i=>{n(()=>{L.instantAnimations=!0,e(),i(),r.current=t+1})}}function U_(){L.instantAnimations=!1}function W_(){let[e,t]=he(!0);return M(()=>{let e=()=>t(!document.hidden);return document.hidden&&e(),document.addEventListener(`visibilitychange`,e),()=>{document.removeEventListener(`visibilitychange`,e)}},[]),e}function G_(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 K_(e){return t=>{let n=e.current;if(!n)return t;let r=q_(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 q_(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 J_=new Map,Y_=new Map,X_=(e,t)=>`${e}: ${J.has(t)?`transform`:t}`;function Z_(e,t,n){let r=X_(e,t),i=J_.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 Q_,$_,ev=new Set;function tv(){ev.forEach(e=>{e.animation.play(),e.animation.startTime=e.startTime}),ev.clear()}function nv(e,t,n,r,i){if(window.MotionIsMounted)return;let a=e.dataset[vo];if(!a)return;window.MotionHandoffAnimation=Z_;let o=X_(a,t);$_||($_=ki(e,t,[n[0],n[0]],{duration:1e4,ease:`linear`}),J_.set(o,{animation:$_,startTime:null}),window.MotionHandoffAnimation=Z_,window.MotionHasOptimisedAnimation=(e,t)=>{if(!e)return!1;if(!t)return Y_.has(e);let n=X_(e,t);return!!J_.get(n)},window.MotionHandoffMarkAsComplete=e=>{Y_.has(e)&&Y_.set(e,!0)},window.MotionHandoffIsComplete=e=>Y_.get(e)===!0,window.MotionCancelOptimisedAnimation=(e,t,n,r)=>{let i=X_(e,t),a=J_.get(i);a&&(n&&r===void 0?n.postRender(()=>{n.postRender(()=>{a.animation.cancel()})}):a.animation.cancel(),n&&r?(ev.add(a),n.render(tv)):(J_.delete(i),J_.size||(window.MotionCancelOptimisedAnimation=void 0)))},window.MotionCheckAppearSync=(e,t,n)=>{let r=bo(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=()=>{$_.cancel();let a=ki(e,t,n,r);Q_===void 0&&(Q_=performance.now()),a.startTime=Q_,J_.set(o,{animation:a,startTime:Q_}),i&&i(a)};Y_.set(a,!1),$_.ready?$_.ready.then(s).catch(R):s()}var rv=()=>({}),iv=class extends mu{constructor(){super(...arguments),this.measureInstanceViewportBox=$}build(){}resetTransform(){}restoreTransform(){}removeValueFromRenderState(){}renderInstance(){}scrapeMotionValuesFromProps(){return rv()}getBaseTargetFromProps(){}readValueFromInstance(e,t,n){return n.initialState[t]||0}sortInstanceNodePosition(){return 0}},av=Bm({scrapeMotionValuesFromProps:rv,createRenderState:rv});function ov(e){let[t,n]=he(e),r=av({},!1),i=P(()=>new iv({props:{onUpdate:e=>{n({...e})}},visualState:r,presenceContext:null},{initialState:e}));return de(()=>(i.mount({}),()=>i.unmount()),[i]),[t,P(()=>e=>To(i,e))]}var sv=0,cv=({children:e})=>(M(()=>{},[]),i(um,{id:P(()=>`asl-${sv++}`),children:e})),lv=1e5,uv=e=>e>.001?1/e:lv;function dv(e){let t=xg(1),n=xg(1),{visualElement:r}=j(bm);return e?(t=e.scaleX||t,n=e.scaleY||n):r&&(t=r.getValue(`scaleX`,1),n=r.getValue(`scaleY`,1)),{scaleX:Ag(t,uv),scaleY:Ag(n,uv)}}var fv=w(null),pv=w(null);function mv(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:gv(t.x)+n.x,y:gv(t.y)+n.y},i=_v(e),s=i.find(t=>t.items.includes(e[o])),c=i.reduce((e,t)=>vv(r.y,t)<vv(r.y,e)?t:e);if(c!==s)return yv(e,o,r.x,c,a);let l=bv(r,t),u=-1,d=l;return e.forEach((e,t)=>{if(t===o)return;let n=bv(r,e.layout);n<d&&(u=t,d=n)}),u===-1?e:we(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=gv(u);return s===1&&l.max+n[i]>d||s===-1&&l.min+n[i]<d?we(e,o,o+s):e}function hv(e,t,n,r,i){let a=n>1==!!(n%2&&i)?-1:1,o=n>3?(n-4)*(e.length-1):t+a;if(r===`xy`&&n<4&&!(n%2)&&t>-1){let n=_v(e).sort((e,t)=>e.min-t.min),r=n[n.findIndex(({items:n})=>n.includes(e[t]))+a],i=n=>Math.abs(gv(n.layout.x)-gv(e[t].layout.x));o=r?e.indexOf(r.items.reduce((e,t)=>i(t)<i(e)?t:e)):-1}return t>-1&&o!==t&&e[o]?o:-1}var gv=({min:e,max:t})=>G(e,t,.5);function _v(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 vv(e,t){return e<t.min?t.min-e:e>t.max?e-t.max:0}function yv(e,t,n,r,i){let a=e.filter((e,n)=>n!==t),o=r.items.find(e=>{let t=gv(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 bv(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 xv=(e,t)=>e.max<=t.min||t.max<=e.min;function Sv(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||=xv(e[r].x,e[i].x),n||=xv(e[r].y,e[i].y),t&&n)return`xy`;return t?`x`:`y`}var Cv=(e,t)=>n=>{e.current=n;let r=typeof t==`function`?t(n):t&&(t.current=n);if(typeof r==`function`)return()=>{e.current=null,r()}};function wv({children:e,as:t=`ul`,axis:n,onReorder:r,values:a,onPointerDownCapture:o,onClickCapture:s,...c},l,u){let d=P(()=>u[t]),f=j(fv),p=N(new Map),m=N(new Map),[h,g]=he(),[_,v]=he(`y`),y=N(!1),b=N(!1),x=N(null),S=n||_,C=new Set(a);for(let e of[p.current,m.current])e.forEach((t,n)=>C.has(n)||e.delete(n));let w=C.has(h)?h:a[0],T=e=>m.current.get(e)?.current?.isConnected,E=e=>C.has(e)&&g(e),D=()=>{T(w)||E(a.find(T))};M(D);let O=()=>a.flatMap(e=>p.current.get(e)||[]),ee=()=>x.current?.ownerDocument.defaultView?.getComputedStyle(x.current).direction===`rtl`,te=(e,t)=>{let n=0,i=a.map(t=>p.current.has(t)?e[n++].value:t);i.some((e,t)=>e!==a[t])&&r(i,t)},k={axis:S,proxy:u,groupRef:x,hasReordered:b,values:a,onReorder:r,getOrder:O,isTabStop:e=>e===w||!C.has(e),setActive:E,checkTabStop:D,elements:m.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=O(),c=[`ArrowUp`,`ArrowLeft`,`ArrowDown`,`ArrowRight`,`Home`,`End`].indexOf(i),l=c%2;if(i===` `)e.repeat||r(o,n?void 0:a);else if(c<0&&!(i===`Escape`&&n))return;else if(!f?.isMoving(o)){if(i===`Escape`&&n){if(r(o),!f?.restore(k,t,o,n)){let e=n.flatMap(e=>s.filter(t=>t.value===e));te(s.map(t=>n.includes(t.value)?e.shift():t),t)}}else{let e=c>3||S===`xy`||S===(l?`x`:`y`),r=n?s:s.filter(({value:e})=>T(e)),i=r.findIndex(({value:e})=>e===t),a=e?hv(r,i,c,S,!!l&&ee()):-1;if(a>-1)n?te(we(s,i,a),t):m.current.get(r[a].value)?.current?.focus();else if(!(n&&c<4&&f?.key(k,t,c,o,n))&&!e)return}}e.preventDefault()},registerItem:(e,t,r)=>{if(p.current.set(e,{value:e,layout:t,ref:r}),!n){let e=Sv(O().map(e=>e.layout));e!==_&&v(e)}},updateOrder:(e,t,n)=>{if(y.current)return;let r=O(),i=mv(r,e,t,n,S,ee()?`rtl`:`ltr`);r!==i&&(y.current=!0,b.current=!0,te(i,e))}};M(()=>{y.current=!1},[a]),F(()=>f?.add(k));let ne={overflowAnchor:`none`,...c.style};return i(d,{...c,style:ne,ref:Cv(x,l),onPointerDownCapture:e=>{b.current=!1,o?.(e)},onClickCapture:e=>{b.current&&e.detail&&(b.current=!1,e.stopPropagation(),e.preventDefault()),s?.(e)},ignoreStrict:!0,children:i(pv.Provider,{value:k,children:e})})}var Tv=e=>D((t,n)=>wv(t,n,e)),Ev=50,Dv=1.5,Ov=new Set([`auto`,`scroll`]),kv={x:new Map,y:new Map};function Av(){kv.x.clear(),kv.y.clear()}function jv(e,t){let n=getComputedStyle(e),r=t===`x`?n.overflowX:n.overflowY;return e===document.body||e===document.documentElement||Ov.has(r)&&(t===`x`?e.scrollWidth>e.clientWidth:e.scrollHeight>e.clientHeight)}function Mv(e,t){let n=e?.parentElement;for(;n;){if(jv(n,t))return n;n=n.parentElement}return null}function Nv(e){let t=Math.min(1,1-e/Ev);return Dv*t*t*B.delta}function Pv(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<Ev?{amount:-Nv(o),edge:`start`}:s<Ev?{amount:Nv(s),edge:`end`}:{amount:0,edge:null}}function Fv(e,t,n,r){if(!e)return;let i=Mv(e,n);if(!i)return;let{amount:a,edge:o}=Pv(t-(n===`x`?window.scrollX:window.scrollY),i,n),s=kv[n];if(o===null){s.delete(i);return}let c=s.get(i),l=i===document.body||i===document.documentElement;if(c?.edge!==o){if(!(o===`start`&&r<0||o===`end`&&r>0))return;c={edge:o,limit:n===`x`?i.scrollWidth-(l?window.innerWidth:i.clientWidth):i.scrollHeight-(l?window.innerHeight:i.clientHeight)},s.set(i,c)}a>0&&(n===`x`?l?window.scrollX:i.scrollLeft:l?window.scrollY:i.scrollTop)>=c.limit||(n===`x`?l?window.scrollBy({left:a}):i.scrollLeft+=a:l?window.scrollBy({top:a}):i.scrollTop+=a)}function Iv(e,t=0){return X(e)?e:xg(t)}function Lv({children:e,style:t={},value:n,as:r=`li`,onDragStart:a,onDrag:o,onDragEnd:s,onKeyDown:c,onFocus:l,onBlur:u,layout:d=!0,...f},p){let m=j(pv),h=j(fv),g=N(null),_=P(()=>m.proxy[r]),v=N(),y={x:Iv(t.x),y:Iv(t.y)},b=Ag([y.x,y.y],([e,t])=>e||t?1:`unset`),{axis:x,registerItem:S,updateOrder:C,groupRef:w,hasReordered:T,isTabStop:E,setActive:D,checkTabStop:O,elements:ee,onKeyDown:te}=m,k=x===`xy`||h?!0:x;ee.set(n,g),M(()=>O);let ne=(e,t)=>{v.current=t,t||h?.end(n),Ql.get(e)?.animationState?.setActive(`whileDrag`,!!t)},re=N(!1);return F(()=>{h?.receive(m,n,g.current,ne)&&(re.current=!0)},[]),i(_,{drag:k,tabIndex:E(n)?0:-1,...f,dragSnapToOrigin:!0,style:{...t,x:y.x,y:y.y,zIndex:b},layout:d,onDragStart:(e,t)=>{re.current?re.current=!1:a?.(e,t)},onDrag:(e,t)=>{let{velocity:r,point:i}=t,a={x:y.x.get(),y:y.y.get()};h?.drag(m,n,g.current,e)||C(n,a,r);let s=h?[`x`,`y`]:[x===`xy`?Math.abs(r.x)>Math.abs(r.y)?`x`:`y`:x];for(let e of s)Fv(h&&!x.includes(e)?h.column(m):w.current,i[e],e,r[e]);o&&o(e,t)},onDragEnd:(e,t)=>{T.current=!1,Av(),h?.end(n),s&&s(e,t)},onKeyDown:e=>{c?.(e),te(e,n,v.current,ne)},onFocus:e=>{l?.(e),D(n)},onBlur:e=>{u?.(e),v.current&&ne(e.currentTarget)},onLayoutMeasure:e=>{S(n,e,g)},ref:Cv(g,p),ignoreStrict:!0,children:e})}var Rv=D(Lv),zv=e=>{let{left:t,top:n,width:r,height:i}=e.getBoundingClientRect();return{x:t+r/2,y:n+i/2}},Bv=e=>{let{x:t,y:n}=zv(e),{scrollX:r,scrollY:i}=e.ownerDocument.defaultView;return{x:t+r,y:n+i}};function Vv(e,t,n,r){let{left:i,right:a,top:o,bottom:s}=t.getBoundingClientRect(),c=r?e.x>(i+a)/2:e.x<=(i+a)/2,l=e.y<=(o+s)/2;return n===`x`?c:n===`y`?l:e.y<o||e.y<s&&c}var Hv=(e,t)=>{let n=e.groupRef.current,r=t.groupRef.current;return n.contains(r)||r.contains(n)};function Uv(e){let t=new Set,n,r=(t,n,r)=>!Hv(t,n)&&e.current.canMove?.(r,t.values,n.values)!==!1,i,a=(e,t,r,i,a,o)=>{let s=zv(i),{values:c}=t;if(o===void 0){let e=t.getOrder().filter(e=>e.ref?.current?.isConnected),n=getComputedStyle(t.groupRef.current).direction===`rtl`,r=e.find(e=>Vv(s,e.ref.current,t.axis,n)),i=e[e.length-1];o=r?c.indexOf(r.value):i?c.indexOf(i.value)+1:c.length}n={value:r,to:t.groupRef,element:i,centre:Bv(i),...a},t.hasReordered.current=!0,e.onReorder(e.values.filter(e=>e!==r),r),t.onReorder([...c.slice(0,o),r,...c.slice(o)],r)};return{add:e=>(t.add(e),()=>t.delete(e)),drag:(e,i,o,s)=>{if(!o?.isConnected)return!1;if(n?.controls?.isDragging)return n.value===i&&(n.centre=Bv(o),n.event=s),!0;let c=zv(o),l;for(let e of o.ownerDocument.elementsFromPoint(c.x,c.y))if(!o.contains(e)){for(let n of t)n.groupRef.current===e&&(l=n);if(l)break}if(!l||!r(e,l,i))return!1;let u=Ql.get(o);return a(e,l,i,o,{controls:u&&Id.get(u),event:s}),!0},key:(e,n,o,s,c)=>{let l=zv(s),u=o%2?`x`:`y`,d=o>1?1:-1,f,p=1/0;for(let i of t){let t=i.groupRef.current;if(!t)continue;let{left:a,right:s,top:c,bottom:m,width:h,height:g}=t.getBoundingClientRect();if(!h&&!g||([m,s,c,a][o]-l[u])*d<=0)continue;let _=Math.max(a-l.x,0,l.x-s),v=Math.max(c-l.y,0,l.y-m);_*_+v*v<p&&r(e,i,n)&&(p=_*_+v*v,f=i)}return f?(i?.from!==c&&(i={group:e.groupRef,from:c}),a(e,f,n,s,{keys:!0,from:c}),!0):!1},restore:(e,n,r,o)=>{let s=i?.from===o&&[...t].find(e=>e.groupRef===i.group);if(!s||s.groupRef===e.groupRef)return!1;let c=o.slice(o.indexOf(n)+1),l=s.values.findIndex(e=>c.includes(e));return i=void 0,a(e,s,n,r,{keys:!0},l<0?s.values.length:l),!0},end:e=>{n?.value===e&&(n=void 0)},isMoving:e=>n?.element===e,receive:(e,t,r,i)=>{let a=Ql.get(r),o=a&&Id.get(a);o?.isDragging&&a.animationState?.setActive(`whileDrag`,!0);let s=n;if(!s||s.value!==t||s.to!==e.groupRef)return!1;let{keys:c,from:l,controls:u}=s,d=!s.element.isConnected;if(c){n=void 0;let{activeElement:e,body:t}=r.ownerDocument;return d&&(!e||e===t)&&(r.focus(),i(r,l)),!1}return!o||!u?.isDragging?!1:(nc.read(()=>{if(n!==s)return;n=void 0,Ql.get(s.element)?.values.forEach((e,t)=>{let n=e.get();a.getValue(t,a.readValue(t,n))?.set(n)});let e=a.getTransformPagePoint()||(e=>e),t=e(s.centre),i=e(Bv(r));a.getValue(`x`).set(t.x-i.x),a.getValue(`y`).set(t.y-i.y),a.render(),d?u.cancel():u.stop(),o.start(s.event,{immediate:!0})}),d)},column:({groupRef:e})=>{let n=e.current,r=n=>[...t].some(t=>t.groupRef!==e&&n.contains(t.groupRef.current));for(;n?.parentElement?.parentElement&&!r(n.parentElement);)n=n.parentElement;return n}}}function Wv({children:e,...t}){let n=N(t);return F(()=>{n.current=t}),i(fv.Provider,{value:P(()=>Uv(n)),children:e})}var Gv=t({Board:()=>Wv,Group:()=>Kv,Item:()=>Rv}),Kv=Tv(Oh),qv=t({AnimatePresence:()=>im,AnimateSharedLayout:()=>cv,AsyncMotionValueAnimation:()=>Oa,DOMKeyframesResolver:()=>No,DOMVisualElement:()=>hu,DeprecatedLayoutGroupContext:()=>am,DocumentProjectionNode:()=>Yl,DragControls:()=>A_,Feature:()=>Sp,FlatTree:()=>pl,GroupAnimation:()=>ka,GroupAnimationWithThen:()=>ja,HTMLProjectionNode:()=>Zl,HTMLVisualElement:()=>bu,JSAnimation:()=>Tr,KeyframeResolver:()=>vi,LayoutAnimationBuilder:()=>Bu,LayoutGroup:()=>um,LayoutGroupContext:()=>ye,LazyMotion:()=>_m,MotionConfig:()=>ym,MotionConfigContext:()=>Up,MotionContext:()=>bm,MotionGlobalConfig:()=>L,MotionValue:()=>Ba,MotionValueState:()=>$o,NativeAnimation:()=>Mi,NativeAnimationExtended:()=>Ii,NativeAnimationWrapper:()=>Ma,NodeStack:()=>al,ObjectVisualElement:()=>wp,PanSession:()=>ld,PopChild:()=>Xp,PresenceChild:()=>Zp,PresenceContext:()=>xe,Reorder:()=>Gv,SVGVisualElement:()=>kp,SubscriptionManager:()=>Pe,SwitchLayoutGroupContext:()=>Gm,ViewTransitionBuilder:()=>bp,VisualElement:()=>mu,VisualElementDragControls:()=>Ld,WillChangeMotionValue:()=>Pg,acceleratedValues:()=>Vi,acquireProjectionNode:()=>Fu,activeScope:()=>Z,addAttrValue:()=>_s,addBuilderToScope:()=>Yo,addDomEvent:()=>Jl,addEffect:()=>Bo,addPinchListeners:()=>of,addPointerEvent:()=>Gu,addPointerInfo:()=>Wu,addSVGValue:()=>bs,addScaleCorrector:()=>sc,addStyleValue:()=>is,addToScope:()=>Jo,addUniqueItem:()=>Se,addValueToWillChange:()=>_o,alpha:()=>vt,analyseComplexValue:()=>Yt,animate:()=>__,animateEffectSubject:()=>Wo,animateElement:()=>Qs,animateLayout:()=>Bp,animateMini:()=>w_,animateMotionValue:()=>Xa,animateSingleValue:()=>ac,animateTarget:()=>Co,animateValue:()=>Er,animateValues:()=>Uo,animateVariant:()=>wo,animateView:()=>xp,animateVisualElement:()=>To,animationControls:()=>Vg,animationMapKey:()=>Pa,animations:()=>nh,anticipate:()=>Je,applyAxisDelta:()=>Ls,applyBoxDelta:()=>Rs,applyGeneratorOptions:()=>ji,applyPointDelta:()=>Is,applyPxDefaults:()=>Io,applyTreeDeltas:()=>Vs,arc:()=>no,aspectRatio:()=>rl,attachFollow:()=>Rf,attachSpring:()=>Uf,attrEffect:()=>vs,axisDeltaEquals:()=>il,axisEquals:()=>$c,axisEqualsRounded:()=>tl,backIn:()=>Ke,backInOut:()=>qe,backOut:()=>Ge,bindToScope:()=>Xo,boxEquals:()=>el,boxEqualsRounded:()=>nl,buildHTMLStyles:()=>us,buildProjectionTransform:()=>ul,buildSVGAttrs:()=>hs,buildSVGPath:()=>ps,buildTransform:()=>ea,buildTransformer:()=>Zt,calcAxisDelta:()=>Mc,calcBoxDelta:()=>Nc,calcChildStagger:()=>Ia,calcGeneratorDuration:()=>An,calcLength:()=>Q,calcRelativeAxis:()=>Pc,calcRelativeAxisPosition:()=>Ic,calcRelativeBox:()=>Fc,calcRelativePosition:()=>Lc,camelCaseAttributes:()=>Tp,camelToDash:()=>ls,cancelFrame:()=>q,cancelMicrotask:()=>rc,cancelSync:()=>Hp,checkVariantsDidChange:()=>Pp,circIn:()=>Ye,circInOut:()=>Ze,circOut:()=>Xe,clamp:()=>I,cleanDirtyNodes:()=>El,collectMotionValues:()=>za,color:()=>U,compareByDepth:()=>fl,complex:()=>W,containsCSSVariable:()=>gt,convertBoundingBoxToBox:()=>Ts,convertBoxToBoundingBox:()=>Es,convertOffsetToTimes:()=>cr,copyAxisDeltaInto:()=>Ec,copyAxisInto:()=>wc,copyBoxInto:()=>Tc,correctBorderRadius:()=>sl,correctBoxShadow:()=>cl,correctParentTransform:()=>K_,createAnimationState:()=>Np,createAxis:()=>Xc,createAxisDelta:()=>Jc,createBox:()=>$,createDelta:()=>Yc,createEffect:()=>es,createGeneratorEasing:()=>jn,createProjectionNode:()=>Sl,createRenderBatcher:()=>Tn,createScopedAnimate:()=>g_,cubicBezier:()=>He,cubicBezierAsString:()=>Ei,defaultEasing:()=>lr,defaultOffset:()=>sr,defaultTransformValue:()=>Zr,defaultValueTypes:()=>Fr,degrees:()=>Mt,delay:()=>lc,delayInSeconds:()=>uc,dimensionValueTypes:()=>Oo,disableInstantTransitions:()=>U_,distance:()=>od,distance2D:()=>sd,domAnimation:()=>Ah,domMax:()=>jh,domMin:()=>Mh,drag:()=>Jd,eachAxis:()=>dl,easeIn:()=>Qe,easeInOut:()=>et,easeOut:()=>$e,easingDefinitionToFunction:()=>st,elementDragControls:()=>Id,expectsResolvedDragConstraints:()=>Wd,extractEventInfo:()=>Uu,fillOffset:()=>or,fillWildcards:()=>Hr,filterProps:()=>Pm,findDimensionValueType:()=>ko,findEffect:()=>Ho,findValueType:()=>Gf,flushKeyframeResolvers:()=>gi,flushLayoutSnapshots:()=>zu,followValue:()=>Lf,frame:()=>K,frameData:()=>B,frameSteps:()=>En,generateLinearEasing:()=>On,getAnimatableNone:()=>Vr,getAnimationMap:()=>Fa,getComputedStyle:()=>Sf,getDefaultTransition:()=>qa,getDefaultValueType:()=>Ir,getEasingForSegment:()=>rt,getFeatureDefinitions:()=>pu,getFinalKeyframe:()=>mr,getMixer:()=>mn,getOptimisedAppearId:()=>bo,getOriginIndex:()=>kf,getSpringOptions:()=>er,getValueAsType:()=>Ji,getValueTransition:()=>Ha,getVariableValue:()=>ao,getVariantContext:()=>Lp,getViewAnimationLayerInfo:()=>rp,getViewAnimations:()=>ip,globalProjectionState:()=>ml,handOffElementState:()=>ec,has2DTranslate:()=>Ns,hasComplexValues:()=>Jt,hasReducedMotionListener:()=>su,hasScale:()=>ks,hasTransform:()=>js,hasWarned:()=>Re,hex:()=>At,hover:()=>Zd,hsla:()=>Lt,hslaToRgba:()=>rn,inView:()=>B_,inertia:()=>rr,initPrefersReducedMotion:()=>lu,interpolate:()=>ar,invariant:()=>De,invisibleValues:()=>dn,isAnimationControls:()=>$l,isBezierDefinition:()=>it,isBrowser:()=>be,isCSSVariableName:()=>ft,isCSSVariableToken:()=>mt,isControllingVariants:()=>ru,isDeltaZero:()=>Qc,isDragActive:()=>Sd,isDragging:()=>xd,isEasingArray:()=>nt,isElementKeyboardAccessible:()=>vd,isElementTextInput:()=>bd,isForcedMotionValue:()=>_u,isGenerator:()=>Ai,isHTMLElement:()=>Ko,isKeyframesTarget:()=>fo,isMotionComponent:()=>N_,isMotionValue:()=>X,isNear:()=>jc,isNodeOrChild:()=>uf,isNumericalString:()=>Oe,isObject:()=>ke,isPrimaryPointer:()=>Hu,isSVGElement:()=>qo,isSVGSVGElement:()=>fc,isSVGTag:()=>Ep,isTransitionDefined:()=>Ya,isValidMotionProp:()=>Mm,isVariantLabel:()=>eu,isVariantNode:()=>iu,isWaapiSupportedEasing:()=>Lo,isWillChangeMotionValue:()=>go,isZeroValueString:()=>Ae,keyframes:()=>ur,m:()=>Qm,makeAnimationInstant:()=>Bi,makeUseVisualState:()=>Bm,mapEasingToNativeEasing:()=>Oi,mapValue:()=>Vf,maxGeneratorDuration:()=>kn,measurePageBox:()=>qs,measureViewportBox:()=>Ks,memo:()=>je,microtask:()=>nc,millisecondsToSeconds:()=>Fe,mirrorEasing:()=>Ue,mix:()=>xn,mixArray:()=>hn,mixColor:()=>un,mixComplex:()=>vn,mixImmediate:()=>an,mixLinearColor:()=>on,mixNumber:()=>G,mixObject:()=>gn,mixValues:()=>_c,mixVisibility:()=>fn,motion:()=>Oh,motionValue:()=>Y,moveItem:()=>we,nodeGroup:()=>zp,noop:()=>R,number:()=>_t,numberValueTypes:()=>Pr,optimizedAppearDataAttribute:()=>yo,optimizedAppearDataId:()=>vo,originProps:()=>ns,parseAnimateLayoutArgs:()=>Vu,parseCSSVariable:()=>io,parseValueFromTransform:()=>Qr,percent:()=>Nt,pinch:()=>lf,pinchFeatures:()=>Ph,pipe:()=>Me,pixelsToPercent:()=>ol,positionalKeys:()=>uo,prefersReducedMotion:()=>ou,press:()=>xf,processFrame:()=>ic,progress:()=>Ne,progressPercentage:()=>It,propEffect:()=>tc,propagateDirtyNodes:()=>Tl,px:()=>H,readSVGValue:()=>xs,readStyleValue:()=>os,readTransformValue:()=>$r,recordStats:()=>Of,releaseElement:()=>$s,removeAxisDelta:()=>zc,removeAxisTransforms:()=>Bc,removeBoxTransforms:()=>Uc,removeEffect:()=>Vo,removeItem:()=>Ce,removePointDelta:()=>Rc,renderHTML:()=>gu,renderSVG:()=>Dp,resize:()=>ad,resolveElements:()=>Zo,resolveMotionValue:()=>pc,resolveTransition:()=>Va,resolveVariant:()=>co,resolveVariantFromProps:()=>so,reverseEasing:()=>We,rgbUnit:()=>Et,rgba:()=>Dt,rootProjectionNode:()=>Xl,round:()=>wr,sampleDelta:()=>10,scale:()=>yt,scaleCorrectors:()=>oc,scalePoint:()=>Fs,scopeMotion:()=>Tf,scrapeHTMLMotionValuesFromProps:()=>vu,scrapeSVGMotionValuesFromProps:()=>Op,scroll:()=>pg,scrollInfo:()=>ag,secondsToMilliseconds:()=>z,setDragLock:()=>Cd,setFeatureDefinitions:()=>fu,setStyle:()=>bi,setTarget:()=>ho,spring:()=>nr,springValue:()=>Hf,stagger:()=>Af,startOptimizedAppearAnimation:()=>nv,startWaapiAnimation:()=>ki,statsBuffer:()=>cc,steps:()=>tt,styleEffect:()=>cs,styleSubjectEffect:()=>ss,supportedWaapiEasing:()=>Di,supportsBrowserAnimation:()=>qi,supportsFlags:()=>xi,supportsLinearEasing:()=>Ti,supportsPartialKeyframes:()=>Ro,supportsScrollTimeline:()=>Ci,supportsViewTimeline:()=>wi,supportsWaapi:()=>Ki,svgEffect:()=>Cs,svgSubjectEffect:()=>Ss,sync:()=>Vp,testValueType:()=>Do,time:()=>V,toMediaQuery:()=>wf,transform:()=>jf,transformAxis:()=>Us,transformBox:()=>Gs,transformBoxPoints:()=>Ds,transformPropOrder:()=>ei,transformProps:()=>J,transformValue:()=>Bf,transformValueTypes:()=>Nr,transformViewBoxPoint:()=>G_,translateAxis:()=>Hs,unwrapMotionComponent:()=>P_,updateMotionValuesFromProps:()=>au,useAnimate:()=>v_,useAnimateMini:()=>T_,useAnimation:()=>D_,useAnimationControls:()=>E_,useAnimationFrame:()=>Og,useComposedRefs:()=>Kp,useCycle:()=>R_,useDeprecatedAnimatedState:()=>ov,useDeprecatedInvertedScale:()=>dv,useDomEvent:()=>k_,useDragControls:()=>M_,useElementScroll:()=>yg,useFollowValue:()=>Tg,useForceUpdate:()=>sm,useInView:()=>V_,useInstantLayoutTransition:()=>F_,useInstantTransition:()=>H_,useIsPresent:()=>em,useIsomorphicLayoutEffect:()=>F,useMotionTemplate:()=>Cg,useMotionValue:()=>xg,useMotionValueEvent:()=>Fh,usePageInView:()=>W_,usePresence:()=>$p,usePresenceData:()=>O_,useReducedMotion:()=>Ig,useReducedMotionConfig:()=>Lg,useResetProjection:()=>L_,useScopeMotion:()=>y_,useScroll:()=>vg,useSpring:()=>Dg,useTime:()=>kg,useTransform:()=>Ag,useUnmountEffect:()=>kh,useVelocity:()=>Ng,useViewportScroll:()=>bg,useWillChange:()=>Fg,variantPriorityOrder:()=>tu,variantProps:()=>nu,velocityPerSecond:()=>Ie,vh:()=>Pt,visualElementStore:()=>Ql,vw:()=>Ft,warnOnce:()=>ze,warning:()=>Ee,wrap:()=>Be}),Jv=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}},Yv=qv;Jv.register([`framer-motion`,`motion/react`,`motion`],Yv),window.Motion=Yv})();