PageSourceSearch

https://wan2-7ai.com/_next/static/chunks/5648-8d9a26f572e72454.js

js wan2-7ai.com collected 2026-10-04 01:44:55 UTC 181,038 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5648,9034],{2421:(t,e,n)=>{n.d(e,{Cz:()=>y,Mf:()=>m,N2:()=>v,NQ:()=>g,R3:()=>p});var i=n(67867),r=n(11470),o=n(12844),s=n(80542),a=n(39487),l=n(58950);n(65156);var u=n(12115),h=n(26719),c=n(95155),d=(0,u.createContext)([]),f=(0,u.createContext)({current:null});function p(){return(0,u.useContext)(d).at(-1)}function m(){return(0,u.useContext)(d)}function v(t){var e=t.containerRef,n=t.children;return(0,c.jsx)(f.Provider,{value:e,children:n})}function g(t){var e,n,i,r,o=t.toc,l=t.single,h=t.children,f=(0,u.useMemo)(function(){return o.map(function(t){return t.url.split("#")[1]})},[o]);return(0,c.jsx)(d.Provider,{value:(e=void 0===l||l,i=(n=(0,s._)((0,u.useState)([]),2))[0],r=n[1],(0,u.useEffect)(function(){var t=function(){var t=document.scrollingElement;if(t){var n=t.scrollTop;n<=0&&e?r(f.slice(0,1)):n+t.clientHeight>=t.scrollHeight-6&&r(function(t){return t.length>0&&!e?f.slice(f.indexOf(t[0])):f.slice(-1)})}},n=[],i=new IntersectionObserver(function(t){var e=!0,i=!1,o=void 0;try{for(var s,l=t[Symbol.iterator]();!(e=(s=l.next()).done);e=!0)!function(){var t=s.value;t.isIntersecting&&!n.includes(t.target.id)?n=(0,a._)(n).concat([t.target.id]):!t.isIntersecting&&n.includes(t.target.id)&&(n=n.filter(function(e){return e!==t.target.id}))}()}catch(t){i=!0,o=t}finally{try{e||null==l.return||l.return()}finally{if(i)throw o}}n.length>0&&r(n)},{rootMargin:e?"-80px 0% -70% 0%":"-20px 0% -40% 0%",threshold:1}),o=!0,s=!1,l=void 0;try{for(var u,h=f[Symbol.iterator]();!(o=(u=h.next()).done);o=!0){var c=u.value,d=document.getElementById(c);d&&i.observe(d)}}catch(t){s=!0,l=t}finally{try{o||null==h.return||h.return()}finally{if(s)throw l}}return t(),window.addEventListener("scroll",t),function(){window.removeEventListener("scroll",t),i.disconnect()}},[e,f]),e?i.slice(0,1):i),children:h})}var y=(0,u.forwardRef)(function(t,e){var n=t.onActiveChange,s=(0,o._)(t,["onActiveChange"]),a=(0,u.useContext)(f),d=m(),p=(0,u.useRef)(null),v=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){e.forEach(function(e){"function"==typeof e?e(t):null!==e&&(e.current=t)})}}(p,e),g=d.includes(s.href.slice(1));return(0,l.T)(g,function(t){var e=p.current;e&&(t&&a.current&&(0,h.A)(e,{behavior:"smooth",block:"center",inline:"center",scrollMode:"always",boundary:a.current}),null==n||n(t))}),(0,c.jsx)("a",(0,r._)((0,i._)({ref:v,"data-active":g},s),{children:s.children}))});y.displayName="TOCItem"},2764:(t,e,n)=>{n.d(e,{J:()=>o});var i=n(39487);n(65156);var r=n(12115);function o(t){var e,n=(0,r.useRef)(t);return n.current=t,(0,r.useCallback)(function(){for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n).current.apply(e,(0,i._)(r))},[])}},3809:(t,e,n)=>{n.d(e,{default:()=>a});var i=n(67867),r=n(12844),o=n(36809),s=n(95155);function a(t){var e=t.locale,n=(0,r._)(t,["locale"]);if(!e)throw Error(void 0);return(0,s.jsx)(o.Dk,(0,i._)({locale:e},n))}},7649:(t,e,n)=>{n.d(e,{B8:()=>tP,LM:()=>tA,N_:()=>t_,UC:()=>tC,bL:()=>tS,l9:()=>tE,q7:()=>tM});var i=n(33649),r=n(67867),o=n(11470),s=n(12844),a=n(80542),l=n(39487),u=n(12115),h=n(47650),c=n(3468),d=n(92556),f=n(88142),p=n(23558),m=n(94446),v=n(66218),g=n(76842),y=n(46565),w=n(25885),x=n(44831),b=n(78108),T=n(4129),S=n(70222),P=n(861),M=n(95155),E="NavigationMenu",_=(0,a._)((0,w.N)(E),3),C=_[0],A=_[1],R=_[2],k=(0,a._)((0,w.N)(E),3),D=k[0],V=k[1],L=k[2],j=(0,a._)((0,c.A)(E,[R,L]),2),N=j[0];j[1];var I=(0,a._)(N(E),2),F=I[0],O=I[1],B=(0,a._)(N(E),2),z=B[0],W=B[1],U=u.forwardRef(function(t,e){var n=t.__scopeNavigationMenu,i=t.value,l=t.onValueChange,h=t.defaultValue,c=t.delayDuration,d=void 0===c?200:c,g=t.skipDelayDuration,y=void 0===g?300:g,w=t.orientation,x=void 0===w?"horizontal":w,b=t.dir,T=(0,s._)(t,["__scopeNavigationMenu","value","onValueChange","defaultValue","delayDuration","skipDelayDuration","orientation","dir"]),S=(0,a._)(u.useState(null),2),P=S[0],_=S[1],C=(0,m.s)(e,function(t){return _(t)}),A=(0,v.jH)(b),R=u.useRef(0),k=u.useRef(0),D=u.useRef(0),V=(0,a._)(u.useState(!0),2),L=V[0],j=V[1],N=(0,a._)((0,p.i)({prop:i,onChange:function(t){var e=y>0;""!==t?(window.clearTimeout(D.current),e&&j(!1)):(window.clearTimeout(D.current),D.current=window.setTimeout(function(){return j(!0)},y)),null==l||l(t)},defaultProp:null!=h?h:"",caller:E}),2),I=N[0],F=N[1],O=u.useCallback(function(){window.clearTimeout(k.current),k.current=window.setTimeout(function(){return F("")},150)},[F]),B=u.useCallback(function(t){window.clearTimeout(k.current),F(t)},[F]),z=u.useCallback(function(t){I===t?window.clearTimeout(k.current):R.current=window.setTimeout(function(){window.clearTimeout(k.current),F(t)},d)},[I,F,d]);return u.useEffect(function(){return function(){window.clearTimeout(R.current),window.clearTimeout(k.current),window.clearTimeout(D.current)}}
1,[]),(0,M.jsx)(K,{scope:n,isRootMenu:!0,value:I,dir:A,orientation:x,rootNavigationMenu:P,onTriggerEnter:function(t){window.clearTimeout(R.current),L?z(t):B(t)},onTriggerLeave:function(){window.clearTimeout(R.current),O()},onContentEnter:function(){return window.clearTimeout(k.current)},onContentLeave:O,onItemSelect:function(t){F(function(e){return e===t?"":t})},onItemDismiss:function(){return F("")},children:(0,M.jsx)(f.sG.nav,(0,o._)((0,r._)({"aria-label":"Main","data-orientation":x,dir:A},T),{ref:C}))})});U.displayName=E;var H="NavigationMenuSub";u.forwardRef(function(t,e){var n=t.__scopeNavigationMenu,i=t.value,l=t.onValueChange,u=t.defaultValue,h=t.orientation,c=void 0===h?"horizontal":h,d=(0,s._)(t,["__scopeNavigationMenu","value","onValueChange","defaultValue","orientation"]),m=O(H,n),v=(0,a._)((0,p.i)({prop:i,onChange:l,defaultProp:null!=u?u:"",caller:H}),2),g=v[0],y=v[1];return(0,M.jsx)(K,{scope:n,isRootMenu:!1,value:g,dir:m.dir,orientation:c,rootNavigationMenu:m.rootNavigationMenu,onTriggerEnter:function(t){return y(t)},onItemSelect:function(t){return y(t)},onItemDismiss:function(){return y("")},children:(0,M.jsx)(f.sG.div,(0,o._)((0,r._)({"data-orientation":c},d),{ref:e}))})}).displayName=H;var K=function(t){var e=t.scope,n=t.isRootMenu,i=t.rootNavigationMenu,r=t.dir,o=t.orientation,s=t.children,l=t.value,h=t.onItemSelect,c=t.onItemDismiss,d=t.onTriggerEnter,f=t.onTriggerLeave,p=t.onContentEnter,m=t.onContentLeave,v=(0,a._)(u.useState(null),2),g=v[0],w=v[1],x=(0,a._)(u.useState(new Map),2),T=x[0],P=x[1],E=(0,a._)(u.useState(null),2),_=E[0],A=E[1];return(0,M.jsx)(F,{scope:e,isRootMenu:n,rootNavigationMenu:i,value:l,previousValue:(0,b.Z)(l),baseId:(0,y.B)(),dir:r,orientation:o,viewport:g,onViewportChange:w,indicatorTrack:_,onIndicatorTrackChange:A,onTriggerEnter:(0,S.c)(d),onTriggerLeave:(0,S.c)(f),onContentEnter:(0,S.c)(p),onContentLeave:(0,S.c)(m),onItemSelect:(0,S.c)(h),onItemDismiss:(0,S.c)(c),onViewportContentChange:u.useCallback(function(t,e){P(function(n){return n.set(t,e),new Map(n)})},[]),onViewportContentRemove:u.useCallback(function(t){P(function(e){return e.has(t)?(e.delete(t),new Map(e)):e})},[]),children:(0,M.jsx)(C.Provider,{scope:e,children:(0,M.jsx)(z,{scope:e,items:T,children:s})})})},$="NavigationMenuList",Y=u.forwardRef(function(t,e){var n=t.__scopeNavigationMenu,i=(0,s._)(t,["__scopeNavigationMenu"]),a=O($,n),l=(0,M.jsx)(f.sG.ul,(0,o._)((0,r._)({"data-orientation":a.orientation},i),{ref:e}));return(0,M.jsx)(f.sG.div,{style:{position:"relative"},ref:a.onIndicatorTrackChange,children:(0,M.jsx)(C.Slot,{scope:n,children:a.isRootMenu?(0,M.jsx)(tf,{asChild:!0,children:l}):l})})});Y.displayName=$;var X="NavigationMenuItem",G=(0,a._)(N(X),2),q=G[0],Z=G[1],Q=u.forwardRef(function(t,e){var n=t.__scopeNavigationMenu,i=t.value,a=(0,s._)(t,["__scopeNavigationMenu","value"]),l=(0,y.B)(),h=u.useRef(null),c=u.useRef(null),d=u.useRef(null),p=u.useRef(function(){}),m=u.useRef(!1),v=u.useCallback(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"start";if(h.current){p.current();var e=tv(h.current);e.length&&tg("start"===t?e:e.reverse())}},[]),g=u.useCallback(function(){if(h.current){var t,e=tv(h.current);e.length&&((t=e).forEach(function(t){t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),p.current=function(){t.forEach(function(t){var e=t.dataset.tabindex;t.setAttribute("tabindex",e)})})}},[]);return(0,M.jsx)(q,{scope:n,value:i||l||"LEGACY_REACT_AUTO_VALUE",triggerRef:c,contentRef:h,focusProxyRef:d,wasEscapeCloseRef:m,onEntryKeyDown:v,onFocusProxyEnter:v,onRootContentClose:g,onContentFocusOutside:g,children:(0,M.jsx)(f.sG.li,(0,o._)((0,r._)({},a),{ref:e}))})});Q.displayName=X;var J="NavigationMenuTrigger",tt=u.forwardRef(function(t,e){var n=t.__scopeNavigationMenu,i=t.disabled,a=(0,s._)(t,["__scopeNavigationMenu","disabled"]),l=O(J,t.__scopeNavigationMenu),h=Z(J,t.__scopeNavigationMenu),c=u.useRef(null),p=(0,m.s)(c,h.triggerRef,e),v=tx(l.baseId,h.value),g=tb(l.baseId,h.value),y=u.useRef(!1),w=u.useRef(!1),x=h.value===l.value;return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(C.ItemSlot,{scope:n,value:h.value,children:(0,M.jsx)(tm,{asChild:!0,children:(0,M.jsx)(f.sG.button,(0,o._)((0,r._)({id:v,disabled:i,"data-disabled":i?"":void 0,"data-state":tw(x),"aria-expanded":x,"aria-controls":g},a),{ref:p,onPointerEnter:(0,d.mK)(t.onPointerEnter,function(){w.current=!1,h.wasEscapeCloseRef.current=!1}),onPointerMove:(0,d.mK)(t.onPointerMove,tT(function(){i||w.current||h.wasEscapeCloseRef.current||y.current||(l.onTriggerEnter(h.value),y.current=!0)})),onPointerLeave:(0,d.mK)(t.onPointerLeave,tT(function(){i||(l.onTriggerLeave(),y.current=!1)})),onClick:(0,d.mK)(t.onClick,function(){l.onItemSelect(h.value),w.current=x}),onKeyDown:(0,d.mK)(t.onKeyDown,function(t){var e={horizontal:"ArrowDown",vertical:"rtl"===l.dir?"ArrowLeft":"ArrowRight"}[l.orientation];x&&t.key===e&&(h.onEntryKeyDown(),t.preventDefault())})}))})}),x&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(P.bL,{"aria-hidden":!0,tabIndex:0,ref:h.focusProxyRef,onFocus:function(t){var e=h.contentRef.current,n=t.relatedTarget,i=n===c.current,r=null==e?void 0:e.contains(n);(i||!r)&&h.onFocusProxyEnter(i?"start":"end")}}),l.viewport&&(0,M.jsx)("span",{"aria-owns":g})]})]})});tt.displayName=J;var te="navigationMenu.linkSelect",tn=u.forwardRef(function(t,e){t.__scopeNavigationMenu;var n=t.active,i=t.onSelect,a=(0,s._)(t,["__scopeNavigationMenu","active","onSelect"]);return(0,M.jsx)(tm,{asChild:!0,children:(0,M.jsx)(f.sG.a,(0,o._)((0,r._)({"data-active":n?"":void 0,"aria-current":n?"page":void 0},a),{ref:e,onClick:(0,d.mK)(t.onClick,function(t){var e=t.target,n=new CustomEvent(te,{bubbles:!0,cancelable:!0});if(e.addEventListener(te,function(t){return null==i?void 0:i(t)},{once:!0}),(0,f.hO)(e,n),!n.defaultPrevented&&!t.metaKey){var r=new CustomEvent(tl,{bubbles:!0,cancelable:!0});(0,f.hO)(e,r)}},{checkForDefaultPrevented:!1})}))})});tn.displayName="NavigationMenuLink";var ti="NavigationMenuIndicator";u.forwardRef(function(t,e){var n=t.forceMount,i=(0,s._)(t,["forceMount"]),a=O(ti,t.__scopeNavigationMenu),l=!!a.value;return a.indicatorTrack?h.createPortal((0,M.jsx)(g.C,{present:n||l,children:(0,M.jsx)(tr,(0,o._)((0,r._)({},i),{ref:e}))}),a.indicatorTrack):null}).displayName=ti;var tr=u.forwardRef(function(t,e){var n=t.__scopeNavigationMenu,i=(0,s._)(t,["__scopeNavigationMenu"]),l=O(ti,n),h=A(n),c=(0,a._)(u.useState(null),2),d=c[0],p=c[1],m=(0,a._)(u.useState(null),2),v=m[0],g=m[1],y="horizontal"===l.orientation,w=!!l.value;u.useEffect(function(){var t,e=null==(t=h().find(function(t){return t.value===l.value}))?void 0:t.ref.current;e&&p(e)},[h,l.value]);var x=function(){d&&g({size:y?d.offsetWidth:d.offsetHeight,offset:y?d.offsetLeft:d.offsetTop})};return ty(d,x),ty(l.indicatorTrack,x),v?(0,M.jsx)(f.sG.div,(0,o._)((0,r._)({"aria-hidden":!0,"data-state":w?"visible":"hidden","data-orientation":l.orientation},i),{ref:e,style:(0,r._)({position:"absolute"}
1,y?{left:0,width:v.size+"px",transform:"translateX(".concat(v.offset,"px)")}:{top:0,height:v.size+"px",transform:"translateY(".concat(v.offset,"px)")},i.style)})):null}),to="NavigationMenuContent",ts=u.forwardRef(function(t,e){var n=t.forceMount,i=(0,s._)(t,["forceMount"]),a=O(to,t.__scopeNavigationMenu),l=Z(to,t.__scopeNavigationMenu),u=(0,m.s)(l.contentRef,e),h=l.value===a.value,c=(0,r._)({value:l.value,triggerRef:l.triggerRef,focusProxyRef:l.focusProxyRef,wasEscapeCloseRef:l.wasEscapeCloseRef,onContentFocusOutside:l.onContentFocusOutside,onRootContentClose:l.onRootContentClose},i);return a.viewport?(0,M.jsx)(ta,(0,o._)((0,r._)({forceMount:n},c),{ref:u})):(0,M.jsx)(g.C,{present:n||h,children:(0,M.jsx)(tu,(0,o._)((0,r._)({"data-state":tw(h)},c),{ref:u,onPointerEnter:(0,d.mK)(t.onPointerEnter,a.onContentEnter),onPointerLeave:(0,d.mK)(t.onPointerLeave,tT(a.onContentLeave)),style:(0,r._)({pointerEvents:!h&&a.isRootMenu?"none":void 0},c.style)}))})});ts.displayName=to;var ta=u.forwardRef(function(t,e){var n=O(to,t.__scopeNavigationMenu),i=n.onViewportContentChange,o=n.onViewportContentRemove;return(0,T.N)(function(){i(t.value,(0,r._)({ref:e},t))},[t,e,i]),(0,T.N)(function(){return function(){return o(t.value)}},[t.value,o]),null}),tl="navigationMenu.rootContentDismiss",tu=u.forwardRef(function(t,e){var n=t.__scopeNavigationMenu,i=t.value,a=t.triggerRef,l=t.focusProxyRef,h=t.wasEscapeCloseRef,c=t.onRootContentClose,f=t.onContentFocusOutside,p=(0,s._)(t,["__scopeNavigationMenu","value","triggerRef","focusProxyRef","wasEscapeCloseRef","onRootContentClose","onContentFocusOutside"]),v=O(to,n),g=u.useRef(null),y=(0,m.s)(g,e),w=tx(v.baseId,i),b=tb(v.baseId,i),T=A(n),S=u.useRef(null),P=v.onItemDismiss;u.useEffect(function(){var t=g.current;if(v.isRootMenu&&t){var e=function(){var e;P(),c(),t.contains(document.activeElement)&&(null==(e=a.current)||e.focus())};return t.addEventListener(tl,e),function(){return t.removeEventListener(tl,e)}}},[v.isRootMenu,t.value,a,P,c]);var E=u.useMemo(function(){var t=T().map(function(t){return t.value});"rtl"===v.dir&&t.reverse();var e=t.indexOf(v.value),n=t.indexOf(v.previousValue),r=i===v.value,o=n===t.indexOf(i);if(!r&&!o)return S.current;var s=function(){if(e!==n){if(r&&-1!==n)return e>n?"from-end":"from-start";if(o&&-1!==e)return e>n?"to-start":"to-end"}return null}();return S.current=s,s},[v.previousValue,v.value,v.dir,T,i]);return(0,M.jsx)(tf,{asChild:!0,children:(0,M.jsx)(x.qW,(0,o._)((0,r._)({id:b,"aria-labelledby":w,"data-motion":E,"data-orientation":v.orientation},p),{ref:y,disableOutsidePointerEvents:!1,onDismiss:function(){var t,e=new Event(tl,{bubbles:!0,cancelable:!0});null==(t=g.current)||t.dispatchEvent(e)},onFocusOutside:(0,d.mK)(t.onFocusOutside,function(t){f();var e,n=t.target;(null==(e=v.rootNavigationMenu)?void 0:e.contains(n))&&t.preventDefault()}),onPointerDownOutside:(0,d.mK)(t.onPointerDownOutside,function(t){var e,n=t.target,i=T().some(function(t){var e;return null==(e=t.ref.current)?void 0:e.contains(n)}),r=v.isRootMenu&&(null==(e=v.viewport)?void 0:e.contains(n));(i||r||!v.isRootMenu)&&t.preventDefault()}),onKeyDown:(0,d.mK)(t.onKeyDown,function(t){var e=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!e){var n,i=tv(t.currentTarget),r=document.activeElement,o=i.findIndex(function(t){return t===r});tg(t.shiftKey?i.slice(0,o).reverse():i.slice(o+1,i.length))?t.preventDefault():null==(n=l.current)||n.focus()}}),onEscapeKeyDown:(0,d.mK)(t.onEscapeKeyDown,function(t){h.current=!0})}
1))})}),th="NavigationMenuViewport",tc=u.forwardRef(function(t,e){var n=t.forceMount,i=(0,s._)(t,["forceMount"]),a=!!O(th,t.__scopeNavigationMenu).value;return(0,M.jsx)(g.C,{present:n||a,children:(0,M.jsx)(td,(0,o._)((0,r._)({},i),{ref:e}))})});tc.displayName=th;var td=u.forwardRef(function(t,e){var n,l=t.__scopeNavigationMenu,h=(t.children,(0,s._)(t,["__scopeNavigationMenu","children"])),c=O(th,l),p=(0,m.s)(e,c.onViewportChange),v=W(to,t.__scopeNavigationMenu),y=(0,a._)(u.useState(null),2),w=y[0],x=y[1],b=(0,a._)(u.useState(null),2),T=b[0],S=b[1],P=w?(null==w?void 0:w.width)+"px":void 0,E=w?(null==w?void 0:w.height)+"px":void 0,_=!!c.value,C=_?c.value:c.previousValue;return ty(T,function(){T&&x({width:T.offsetWidth,height:T.offsetHeight})}),(0,M.jsx)(f.sG.div,(0,o._)((0,r._)({"data-state":tw(_),"data-orientation":c.orientation},h),{ref:p,style:(0,r._)((n={pointerEvents:!_&&c.isRootMenu?"none":void 0},(0,i._)(n,"--radix-navigation-menu-viewport-width",P),(0,i._)(n,"--radix-navigation-menu-viewport-height",E),n),h.style),onPointerEnter:(0,d.mK)(t.onPointerEnter,c.onContentEnter),onPointerLeave:(0,d.mK)(t.onPointerLeave,tT(c.onContentLeave)),children:Array.from(v.items).map(function(t){var e=(0,a._)(t,2),n=e[0],i=e[1],l=i.ref,u=i.forceMount,h=(0,s._)(t[1],["ref","forceMount"]),c=C===n;return(0,M.jsx)(g.C,{present:u||c,children:(0,M.jsx)(tu,(0,o._)((0,r._)({},h),{ref:(0,m.t)(l,function(t){c&&t&&S(t)})}))},n)})}))}),tf=u.forwardRef(function(t,e){var n=t.__scopeNavigationMenu,i=(0,s._)(t,["__scopeNavigationMenu"]),a=O("FocusGroup",n);return(0,M.jsx)(D.Provider,{scope:n,children:(0,M.jsx)(D.Slot,{scope:n,children:(0,M.jsx)(f.sG.div,(0,o._)((0,r._)({dir:a.dir},i),{ref:e}))})})}),tp=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],tm=u.forwardRef(function(t,e){var n=t.__scopeNavigationMenu,i=(0,s._)(t,["__scopeNavigationMenu"]),a=V(n),u=O("FocusGroupItem",n);return(0,M.jsx)(D.ItemSlot,{scope:n,children:(0,M.jsx)(f.sG.button,(0,o._)((0,r._)({},i),{ref:e,onKeyDown:(0,d.mK)(t.onKeyDown,function(t){if(["Home","End"].concat((0,l._)(tp)).includes(t.key)){var e=a().map(function(t){return t.ref.current});if(["rtl"===u.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(t.key)&&e.reverse(),tp.includes(t.key)){var n=e.indexOf(t.currentTarget);e=e.slice(n+1)}setTimeout(function(){return tg(e)}),t.preventDefault()}})}))})});function tv(t){for(var e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:function(t){var e="INPUT"===t.tagName&&"hidden"===t.type;return t.disabled||t.hidden||e?NodeFilter.FILTER_SKIP:t.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});n.nextNode();)e.push(n.currentNode);return e}function tg(t){var e=document.activeElement;return t.some(function(t){return t===e||(t.focus(),document.activeElement!==e)})}function ty(t,e){var n=(0,S.c)(e);(0,T.N)(function(){var e=0;if(t){var i=new ResizeObserver(function(){cancelAnimationFrame(e),e=window.requestAnimationFrame(n)});return i.observe(t),function(){window.cancelAnimationFrame(e),i.unobserve(t)}}},[t,n])}function tw(t){return t?"open":"closed"}function tx(t,e){return"".concat(t,"-trigger-").concat(e)}function tb(t,e){return"".concat(t,"-content-").concat(e)}function tT(t){return function(e){return"mouse"===e.pointerType?t(e):void 0}}var tS=U,tP=Y,tM=Q,tE=tt,t_=tn,tC=ts,tA=tc},9540:(t,e,n)=>{n.d(e,{A:()=>i});var i=(0,n(77510).A)("menu",[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]])},15824:(t,e,n)=>{n.d(e,{Uu:()=>o});var i=n(40031);let r="undefined"!=typeof window;function o(){if(i.r.current=!0,r)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>i.O.current=t.matches;t.addEventListener("change",e),e()}else i.O.current=!1}},16485:(t,e,n)=>{n.d(e,{A:()=>i});var i=(0,n(77510).A)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]])},17188:(t,e,n)=>{n.d(e,{A:()=>i});var i=(0,n(77510).A)("send-horizontal",[["path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",key:"117uat"}],["path",{d:"M6 12h16",key:"s4cdu5"}]])},23664:(t,e,n)=>{n.d(e,{A:()=>i});var i=(0,n(77510).A)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]])},25752:(t,e,n)=>{n.d(e,{f:()=>g});let i="http://www.w3.org/2000/svg";
1class r{constructor(t){this.seed=t}next(){return this.seed?(0x80000000-1&(this.seed=Math.imul(48271,this.seed)))/0x80000000:Math.random()}}function o(t,e,n,i,r){return{type:"path",ops:c(t,e,n,i,r)}}function s(t,e,n){let i=(t||[]).length;if(i>2){let r=[];for(let e=0;e<i-1;e++)r.push(...c(t[e][0],t[e][1],t[e+1][0],t[e+1][1],n));return e&&r.push(...c(t[i-1][0],t[i-1][1],t[0][0],t[0][1],n)),{type:"path",ops:r}}return 2===i?o(t[0][0],t[0][1],t[1][0],t[1][1],n):{type:"path",ops:[]}}function a(t,e,n,i,r){return function(t,e,n,i){let[r,o]=p(i.increment,t,e,i.rx,i.ry,1,i.increment*u(.1,u(.4,1,n),n),n),s=f(r,null,n);if(!n.disableMultiStroke){let[r]=p(i.increment,t,e,i.rx,i.ry,1.5,0,n),o=f(r,null,n);s=s.concat(o)}return{estimatedPoints:o,opset:{type:"path",ops:s}}}(t,e,r,function(t,e,n){let i=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),r=2*Math.PI/Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*i),o=Math.abs(t/2),s=Math.abs(e/2),a=1-n.curveFitting;return o+=h(o*a,n),s+=h(s*a,n),{increment:r,rx:o,ry:s}}(n,i,r)).opset}function l(t){return t.randomizer||(t.randomizer=new r(t.seed||0)),t.randomizer.next()}function u(t,e,n,i=1){return n.roughness*i*(l(n)*(e-t)+t)}function h(t,e,n=1){return u(-t,t,e,n)}function c(t,e,n,i,r,o=!1){let s=o?r.disableMultiStrokeFill:r.disableMultiStroke,a=d(t,e,n,i,r,!0,!1);if(s)return a;let l=d(t,e,n,i,r,!0,!0);return a.concat(l)}function d(t,e,n,i,r,o,s){let a=Math.pow(t-n,2)+Math.pow(e-i,2),u=Math.sqrt(a),c=1;c=u<200?1:u>500?.4:-.0016668*u+1.233334;let d=r.maxRandomnessOffset||0;d*d*100>a&&(d=u/10);let f=d/2,p=.2+.2*l(r),m=r.bowing*r.maxRandomnessOffset*(i-e)/200,v=r.bowing*r.maxRandomnessOffset*(t-n)/200;m=h(m,r,c),v=h(v,r,c);let g=[],y=()=>h(f,r,c),w=()=>h(d,r,c);return o&&(s?g.push({op:"move",data:[t+y(),e+y()]}):g.push({op:"move",data:[t+h(d,r,c),e+h(d,r,c)]})),s?g.push({op:"bcurveTo",data:[m+t+(n-t)*p+y(),v+e+(i-e)*p+y(),m+t+2*(n-t)*p+y(),v+e+2*(i-e)*p+y(),n+y(),i+y()]}):g.push({op:"bcurveTo",data:[m+t+(n-t)*p+w(),v+e+(i-e)*p+w(),m+t+2*(n-t)*p+w(),v+e+2*(i-e)*p+w(),n+w(),i+w()]}),g}function f(t,e,n){let i=t.length,r=[];if(i>3){let o=[],s=1-n.curveTightness;r.push({op:"move",data:[t[1][0],t[1][1]]});for(let e=1;e+2<i;e++){let n=t[e];o[0]=[n[0],n[1]],o[1]=[n[0]+(s*t[e+1][0]-s*t[e-1][0])/6,n[1]+(s*t[e+1][1]-s*t[e-1][1])/6],o[2]=[t[e+1][0]+(s*t[e][0]-s*t[e+2][0])/6,t[e+1][1]+(s*t[e][1]-s*t[e+2][1])/6],o[3]=[t[e+1][0],t[e+1][1]],r.push({op:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}if(e&&2===e.length){let t=n.maxRandomnessOffset;r.push({op:"lineTo",data:[e[0]+h(t,n),e[1]+h(t,n)]})}}else 3===i?(r.push({op:"move",data:[t[1][0],t[1][1]]}),r.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):2===i&&r.push(...c(t[0][0],t[0][1],t[1][0],t[1][1],n));return r}function p(t,e,n,i,r,o,s,a){let l=[],u=[],c=h(.5,a)-Math.PI/2;u.push([h(o,a)+e+.9*i*Math.cos(c-t),h(o,a)+n+.9*r*Math.sin(c-t)]);for(let s=c;s<2*Math.PI+c-.01;s+=t){let t=[h(o,a)+e+i*Math.cos(s),h(o,a)+n+r*Math.sin(s)];l.push(t),u.push(t)}return u.push([h(o,a)+e+i*Math.cos(c+2*Math.PI+.5*s),h(o,a)+n+r*Math.sin(c+2*Math.PI+.5*s)]),u.push([h(o,a)+e+.98*i*Math.cos(c+s),h(o,a)+n+.98*r*Math.sin(c+s)]),u.push([h(o,a)+e+.9*i*Math.cos(c+.5*s),h(o,a)+n+.9*r*Math.sin(c+.5*s)]),[u,l]}function m(t,e){return{maxRandomnessOffset:2,roughness:"highlight"===t?3:1.5,bowing:1,stroke:"#000",strokeWidth:1.5,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,combineNestedSvgPaths:!1,disableMultiStroke:"double"!==t,disableMultiStrokeFill:!1,seed:e}}class v{constructor(t,e){this._state="unattached",this._resizing=!1,this._seed=Math.floor(0x80000000*Math.random()),this._lastSizes=[],this._animationDelay=0,this._resizeListener=()=>{this._resizing||(this._resizing=!0,setTimeout(()=>{this._resizing=!1,"showing"===this._state&&this.haveRectsChanged()&&this.show()},400))},this._e=t,this._config=JSON.parse(JSON.stringify(e)),this.attach()}get animate(){return this._config.animate}set animate(t){this._config.animate=t}get animationDuration(){return this._config.animationDuration}set animationDuration(t){this._config.animationDuration=t}get iterations(){return this._config.iterations}set iterations(t){this._config.iterations=t}get color(){return this._config.color}set color(t){this._config.color!==t&&(this._config.color=t,this.refresh())}get strokeWidth(){return this._config.strokeWidth}set strokeWidth(t){this._config.strokeWidth!==t&&(this._config.strokeWidth=t,this.refresh())}get padding(){return this._config.padding}set padding(t){this._config.padding!==t&&(this._config.padding=t,this.refresh())}attach(){if("unattached"===this._state&&this._e.parentElement){if(!window.__rno_kf_s){let t=window.__rno_kf_s=document.createElement("style");t.textContent="@keyframes rough-notation-dash { to { stroke-dashoffset: 0; } }",document.head.appendChild(t)}let t=this._svg=document.createElementNS(i,"svg");t.setAttribute("class","rough-annotation");let e=t.style;e.position="absolute",e.top="0",e.left="0",e.overflow="visible",e.pointerEvents="none",e.width="100px",e.height="100px";let n="highlight"===this._config.type;if(this._e.insertAdjacentElement(n?"beforebegin":"afterend",t),this._state="not-showing",n){let t=window.getComputedStyle(this._e).position;t&&"static"!==t||(this._e.style.position="relative")}this.attachListeners()}}detachListeners(){window.removeEventListener("resize",this._resizeListener),this._ro&&this._ro.unobserve(this._e)}attachListeners(){this.detachListeners(),window.addEventListener("resize",this._resizeListener,{passive:!0}),!this._ro&&"ResizeObserver"in window&&(this._ro=new window.ResizeObserver(t=>{for(let e of t)e.contentRect&&this._resizeListener()})),this._ro&&this._ro.observe(this._e)}haveRectsChanged(){if(this._lastSizes.length){let t=this.rects();if(t.length!==this._lastSizes.length)return!0;for(let e=0;e<t.length;e++)if(!this.isSameRect(t[e],this._lastSizes[e]))return!0}return!1}isSameRect(t,e){let n=(t,e)=>Math.round(t)===Math.round(e);return n(t.x,e.x)&&n(t.y,e.y)&&n(t.w,e.w)&&n(t.h,e.h)}isShowing(){return"not-showing"!==this._state}refresh(){this.isShowing()&&!this.pendingRefresh&&(this.pendingRefresh=Promise.resolve().then(()=>{this.isShowing()&&this.show(),delete this.pendingRefresh}))}show(){switch(this._state){case"unattached":break;case"showing":this.hide(),this._svg&&this.render(this._svg,!0);break;case"not-showing":this.attach(),this._svg&&this.render(this._svg,!1)}}
1hide(){if(this._svg)for(;this._svg.lastChild;)this._svg.removeChild(this._svg.lastChild);this._state="not-showing"}remove(){this._svg&&this._svg.parentElement&&this._svg.parentElement.removeChild(this._svg),this._svg=void 0,this._state="unattached",this.detachListeners()}render(t,e){let n=this._config;e&&((n=JSON.parse(JSON.stringify(this._config))).animate=!1);let r=this.rects(),l=0;r.forEach(t=>l+=t.w);let u=n.animationDuration||800,h=0;for(let e=0;e<r.length;e++){let c=u*(r[e].w/l);(function(t,e,n,r,l,u){let h=[],c=n.strokeWidth||2,d=function(t){let e=t.padding;if(e||0===e){if("number"==typeof e)return[e,e,e,e];if(Array.isArray(e)&&e.length)switch(e.length){case 4:return[...e];case 1:return[e[0],e[0],e[0],e[0]];case 2:return[...e,...e];case 3:return[...e,e[1]];default:return[e[0],e[1],e[2],e[3]]}}return[5,5,5,5]}(n),f=void 0===n.animate||!!n.animate,p=n.iterations||2,v=+!!n.rtl,g=m("single",u);switch(n.type){case"underline":{let t=e.y+e.h+d[2];for(let n=v;n<p+v;n++)n%2?h.push(o(e.x+e.w,t,e.x,t,g)):h.push(o(e.x,t,e.x+e.w,t,g));break}case"strike-through":{let t=e.y+e.h/2;for(let n=v;n<p+v;n++)n%2?h.push(o(e.x+e.w,t,e.x,t,g)):h.push(o(e.x,t,e.x+e.w,t,g));break}case"box":{let t=e.x-d[3],n=e.y-d[0],i=e.w+(d[1]+d[3]),r=e.h+(d[0]+d[2]);for(let e=0;e<p;e++){var y,w,x,b;h.push(s([[y=t,w=n],[y+(x=i),w],[y+x,w+(b=r)],[y,w+b]],!0,g))}break}case"bracket":{let t=Array.isArray(n.brackets)?n.brackets:n.brackets?[n.brackets]:["right"],i=e.x-2*d[3],r=e.x+e.w+2*d[1],o=e.y-2*d[0],a=e.y+e.h+2*d[2];for(let n of t){let t;switch(n){case"bottom":t=[[i,e.y+e.h],[i,a],[r,a],[r,e.y+e.h]];break;case"top":t=[[i,e.y],[i,o],[r,o],[r,e.y]];break;case"left":t=[[e.x,o],[i,o],[i,a],[e.x,a]];break;case"right":t=[[e.x+e.w,o],[r,o],[r,a],[e.x+e.w,a]]}t&&h.push(s(t,!1,g))}break}case"crossed-off":{let t=e.x,n=e.y,i=t+e.w,r=n+e.h;for(let e=v;e<p+v;e++)e%2?h.push(o(i,r,t,n,g)):h.push(o(t,n,i,r,g));for(let e=v;e<p+v;e++)e%2?h.push(o(t,r,i,n,g)):h.push(o(i,n,t,r,g));break}case"circle":{let t=m("double",u),n=e.w+(d[1]+d[3]),i=e.h+(d[0]+d[2]),r=e.x-d[3]+n/2,o=e.y-d[0]+i/2,s=Math.floor(p/2),l=p-2*s;for(let e=0;e<s;e++)h.push(a(r,o,n,i,t));for(let t=0;t<l;t++)h.push(a(r,o,n,i,g));break}case"highlight":{let t=m("highlight",u);c=.95*e.h;let n=e.y+e.h/2;for(let i=v;i<p+v;i++)i%2?h.push(o(e.x+e.w,n,e.x,n,t)):h.push(o(e.x,n,e.x+e.w,n,t))}}if(h.length){let e=function(t){let e=[];for(let n of t){let t="";for(let i of n.ops){let n=i.data;switch(i.op){case"move":t.trim()&&e.push(t.trim()),t=`M${n[0]} ${n[1]} `;break;case"bcurveTo":t+=`C${n[0]} ${n[1]}, ${n[2]} ${n[3]}, ${n[4]} ${n[5]} `;break;case"lineTo":t+=`L${n[0]} ${n[1]} `}}t.trim()&&e.push(t.trim())}return e}(h),o=[],s=[],a=0,u=(t,e,n)=>t.setAttribute(e,n);for(let r of e){let e=document.createElementNS(i,"path");if(u(e,"d",r),u(e,"fill","none"),u(e,"stroke",n.color||"currentColor"),u(e,"stroke-width",""+c),f){let t=e.getTotalLength();o.push(t),a+=t}t.appendChild(e),s.push(e)}if(f){let t=0;for(let e=0;e<s.length;e++){let n=s[e],i=o[e],u=a?i/a*l:0,h=r+t,c=n.style;c.strokeDashoffset=""+i,c.strokeDasharray=""+i,c.animation=`rough-notation-dash ${u}ms ease-out ${h}ms forwards`,t+=u}}}})(t,r[e],n,h+this._animationDelay,c,this._seed),h+=c}this._lastSizes=r,this._state="showing"}rects(){let t=[];if(this._svg)if(this._config.multiline){let e=this._e.getClientRects();for(let n=0;n<e.length;n++)t.push(this.svgRect(this._svg,e[n]))}else t.push(this.svgRect(this._svg,this._e.getBoundingClientRect()));return t}svgRect(t,e){let n=t.getBoundingClientRect();return{x:(e.x||e.left)-(n.x||n.left),y:(e.y||e.top)-(n.y||n.top),w:e.width,h:e.height}}}function g(t,e){return new v(t,e)}},26497:(t,e,n)=>{n.d(e,{N:()=>E});var i=n(80542),r=n(39487),o=n(95155),s=n(12115),a=n(60296),l=n(94416),u=n(46436),h=n(67867),c=n(59686),d=n(67434),f=n(62774),p=n(78247),m=n(15104),v=n(81402),g=n(53127);function y(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}var w=function(t){function e(){return(0,f._)(this,e),(0,d._)(this,e,arguments)}return(0,m._)(e,t),(0,p._)(e,[{key:"getSnapshotBeforeUpdate",value:function(t){var e=this.props.childRef.current;if((0,v.s)(e)&&t.isPresent&&!this.props.isPresent&&!1!==this.props.pop){var n=e.offsetParent,
1i=(0,v.s)(n)&&n.offsetWidth||0,r=(0,v.s)(n)&&n.offsetHeight||0,o=getComputedStyle(e),s=this.props.sizeRef.current;s.height=parseFloat(o.height),s.width=parseFloat(o.width),s.top=e.offsetTop,s.left=e.offsetLeft,s.right=i-s.width-s.left,s.bottom=r-s.height-s.top}return null}},{key:"componentDidUpdate",value:function(){}},{key:"render",value:function(){return this.props.children}}]),e}(s.Component);function x(t){var e,n,i=t.children,r=t.isPresent,a=t.anchorX,l=t.anchorY,u=t.root,h=t.pop,c=(0,s.useId)(),d=(0,s.useRef)(null),f=(0,s.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),p=(0,s.useContext)(g.Q).nonce,m=function(...t){return s.useCallback(function(...t){return e=>{let n=!1,i=t.map(t=>{let i=y(t,e);return n||"function"!=typeof i||(n=!0),i});if(n)return()=>{for(let e=0;e<i.length;e++){let n=i[e];"function"==typeof n?n():y(t[e],null)}}}}(...t),t)}(d,null!=(n=null==(e=i.props)?void 0:e.ref)?n:null==i?void 0:i.ref);return(0,s.useInsertionEffect)(function(){var t=f.current,e=t.width,n=t.height,i=t.top,o=t.left,s=t.right,m=t.bottom;if(!r&&!1!==h&&d.current&&e&&n){d.current.dataset.motionPopId=c;var v=document.createElement("style");p&&(v.nonce=p);var g=null!=u?u:document.head;return g.appendChild(v),v.sheet&&v.sheet.insertRule('\n          [data-motion-pop-id="'.concat(c,'"] {\n            position: absolute !important;\n            width: ').concat(e,"px !important;\n            height: ").concat(n,"px !important;\n            ").concat("left"===a?"left: ".concat(o):"right: ".concat(s),"px !important;\n            ").concat("bottom"===l?"bottom: ".concat(m):"top: ".concat(i),"px !important;\n          }\n        ")),function(){var t;null==(t=d.current)||t.removeAttribute("data-motion-pop-id"),g.contains(v)&&g.removeChild(v)}}},[r]),(0,o.jsx)(w,{isPresent:r,childRef:d,sizeRef:f,pop:h,children:!1===h?i:s.cloneElement(i,{ref:m})})}var b=function(t){var e=t.children,n=t.initial,i=t.isPresent,r=t.onExitComplete,a=t.custom,u=t.presenceAffectsLayout,d=t.mode,f=t.anchorX,p=t.anchorY,m=t.root,v=(0,l.M)(T),g=(0,s.useId)(),y=!0,w=(0,s.useMemo)(function(){return y=!1,{id:g,initial:n,isPresent:i,custom:a,onExitComplete:function(t){v.set(t,!0);var e=!0,n=!1,i=void 0;try{for(var o,s=v.values()[Symbol.iterator]();!(e=(o=s.next()).done);e=!0)if(!o.value)return}catch(t){n=!0,i=t}finally{try{e||null==s.return||s.return()}finally{if(n)throw i}}r&&r()},register:function(t){return v.set(t,!1),function(){return v.delete(t)}}}},[i,v,r]);return u&&y&&(w=(0,h._)({},w)),(0,s.useMemo)(function(){v.forEach(function(t,e){return v.set(e,!1)})},[i]),s.useEffect(function(){i||v.size||!r||r()},[i]),e=(0,o.jsx)(x,{pop:"popLayout"===d,isPresent:i,anchorX:f,anchorY:p,root:m,children:e}),(0,o.jsx)(c.t.Provider,{value:w,children:e})};function T(){return new Map}var S=n(75601);let P=t=>t.key||"";function M(t){let e=[];return s.Children.forEach(t,t=>{(0,s.isValidElement)(t)&&e.push(t)}),e}var E=function(t){var e=t.children,n=t.custom,h=t.initial,c=void 0===h||h,d=t.onExitComplete,f=t.presenceAffectsLayout,p=void 0===f||f,m=t.mode,v=void 0===m?"sync":m,g=t.propagate,y=void 0!==g&&g,w=t.anchorX,x=void 0===w?"left":w,T=t.anchorY,E=void 0===T?"top":T,_=t.root,C=(0,i._)((0,S.xQ)(y),2),A=C[0],R=C[1],k=(0,s.useMemo)(function(){return M(e)},[e]),D=y&&!A?[]:k.map(P),V=(0,s.useRef)(!0),L=(0,s.useRef)(k),j=(0,l.M)(function(){return new Map}),N=(0,s.useRef)(new Set),I=(0,i._)((0,s.useState)(k),2),F=I[0],O=I[1],B=(0,i._)((0,s.useState)(k),2),z=B[0],W=B[1];(0,u.E)(function(){V.current=!1,L.current=k;for(var t=0;t<z.length;t++){var e=P(z[t]);D.includes(e)?(j.delete(e),N.current.delete(e)):!0!==j.get(e)&&j.set(e,!1)}},[z,D.length,D.join("-")]);var U=[];if(k!==F){for(var H=(0,r._)(k),K=0;K<z.length;K++){var $=z[K],Y=P($);D.includes(Y)||(H.splice(K,0,$),U.push($))}return"wait"===v&&U.length&&(H=U),W(M(H)),O(k),null}var X=(0,s.useContext)(a.L).forceRender;return(0,o.jsx)(o.Fragment,{children:z.map(function(t){var e=P(t),i=(!y||!!A)&&(k===z||D.includes(e));return(0,o.jsx)(b,{isPresent:i,initial:(!V.current||!!c)&&void 0,custom:n,presenceAffectsLayout:p,mode:v,root:_,onExitComplete:i?void 0:function(){if(!N.current.has(e)&&j.has(e)){N.current.add(e),j.set(e,!0);var t=!0;
1j.forEach(function(e){e||(t=!1)}),t&&(null==X||X(),W(L.current),y&&(null==R||R()),d&&d())}},anchorX:x,anchorY:E,children:t},e)})})}},26692:(t,e,n)=>{n.d(e,{A:()=>i});var i=(0,n(77510).A)("arrow-big-right",[["path",{d:"M6 9h6V5l7 7-7 7v-4H6V9z",key:"7fvt9c"}]])},26719:(t,e,n)=>{n.d(e,{A:()=>u});let i=t=>"object"==typeof t&&null!=t&&1===t.nodeType,r=(t,e)=>(!e||"hidden"!==t)&&"visible"!==t&&"clip"!==t,o=(t,e)=>{if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){let n=getComputedStyle(t,null);return r(n.overflowY,e)||r(n.overflowX,e)||(t=>{let e=(t=>{if(!t.ownerDocument||!t.ownerDocument.defaultView)return null;try{return t.ownerDocument.defaultView.frameElement}catch(t){return null}})(t);return!!e&&(e.clientHeight<t.scrollHeight||e.clientWidth<t.scrollWidth)})(t)}return!1},s=(t,e,n,i,r,o,s,a)=>o<t&&s>e||o>t&&s<e?0:o<=t&&a<=n||s>=e&&a>=n?o-t-i:s>e&&a<n||o<t&&a>n?s-e+r:0,a=t=>{let e=t.parentElement;return null==e?t.getRootNode().host||null:e},l=(t,e)=>{var n,r,l,u;if("undefined"==typeof document)return[];let{scrollMode:h,block:c,inline:d,boundary:f,skipOverflowHiddenElements:p}=e,m="function"==typeof f?f:t=>t!==f;if(!i(t))throw TypeError("Invalid target");let v=document.scrollingElement||document.documentElement,g=[],y=t;for(;i(y)&&m(y);){if((y=a(y))===v){g.push(y);break}null!=y&&y===document.body&&o(y)&&!o(document.documentElement)||null!=y&&o(y,p)&&g.push(y)}let w=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,x=null!=(u=null==(l=window.visualViewport)?void 0:l.height)?u:innerHeight,{scrollX:b,scrollY:T}=window,{height:S,width:P,top:M,right:E,bottom:_,left:C}=t.getBoundingClientRect(),{top:A,right:R,bottom:k,left:D}=(t=>{let e=window.getComputedStyle(t);return{top:parseFloat(e.scrollMarginTop)||0,right:parseFloat(e.scrollMarginRight)||0,bottom:parseFloat(e.scrollMarginBottom)||0,left:parseFloat(e.scrollMarginLeft)||0}})(t),V="start"===c||"nearest"===c?M-A:"end"===c?_+k:M+S/2-A+k,L="center"===d?C+P/2-D+R:"end"===d?E+R:C-D,j=[];for(let t=0;t<g.length;t++){let e=g[t],{height:n,width:i,top:r,right:a,bottom:l,left:u}=e.getBoundingClientRect();if("if-needed"===h&&M>=0&&C>=0&&_<=x&&E<=w&&(e===v&&!o(e)||M>=r&&_<=l&&C>=u&&E<=a))break;let f=getComputedStyle(e),p=parseInt(f.borderLeftWidth,10),m=parseInt(f.borderTopWidth,10),y=parseInt(f.borderRightWidth,10),A=parseInt(f.borderBottomWidth,10),R=0,k=0,D="offsetWidth"in e?e.offsetWidth-e.clientWidth-p-y:0,N="offsetHeight"in e?e.offsetHeight-e.clientHeight-m-A:0,I="offsetWidth"in e?0===e.offsetWidth?0:i/e.offsetWidth:0,F="offsetHeight"in e?0===e.offsetHeight?0:n/e.offsetHeight:0;if(v===e)R="start"===c?V:"end"===c?V-x:"nearest"===c?s(T,T+x,x,m,A,T+V,T+V+S,S):V-x/2,k="start"===d?L:"center"===d?L-w/2:"end"===d?L-w:s(b,b+w,w,p,y,b+L,b+L+P,P),R=Math.max(0,R+T),k=Math.max(0,k+b);else{R="start"===c?V-r-m:"end"===c?V-l+A+N:"nearest"===c?s(r,l,n,m,A+N,V,V+S,S):V-(r+n/2)+N/2,k="start"===d?L-u-p:"center"===d?L-(u+i/2)+D/2:"end"===d?L-a+y+D:s(u,a,i,p,y+D,L,L+P,P);let{scrollLeft:t,scrollTop:o}=e;R=0===F?0:Math.max(0,Math.min(o+R/F,e.scrollHeight-n/F+N)),k=0===I?0:Math.max(0,Math.min(t+k/I,e.scrollWidth-i/I+D)),V+=o-R,L+=t-k}j.push({el:e,top:R,left:k})}return j};function u(t,e){if(!t.isConnected||!(t=>{let e=t;for(;e&&e.parentNode;){if(e.parentNode===document)return!0;e=e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}return!1})(t))return;let n=(t=>{let e=window.getComputedStyle(t);return{top:parseFloat(e.scrollMarginTop)||0,right:parseFloat(e.scrollMarginRight)||0,bottom:parseFloat(e.scrollMarginBottom)||0,left:parseFloat(e.scrollMarginLeft)||0}})(t);if("object"==typeof e&&"function"==typeof e.behavior)return e.behavior(l(t,e));let i="boolean"==typeof e||null==e?void 0:e.behavior;for(let{el:r,top:o,left:s}of l(t,!1===e?{block:"end",inline:"nearest"}:e===Object(e)&&0!==Object.keys(e).length?e:{block:"start",inline:"nearest"}
1)){let t=o-n.top+n.bottom,e=s-n.left+n.right;r.scroll({top:t,left:e,behavior:i})}}},38561:(t,e,n)=>{n.d(e,{K:()=>i});function i(t,e,n){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let i=document;e&&(i=e.current);let r=n?.[t]??i.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t).filter(t=>null!=t)}},40031:(t,e,n)=>{n.d(e,{O:()=>i,r:()=>r});let i={current:null},r={current:!1}},41407:(t,e,n)=>{n.d(e,{I:()=>a});var i=n(80542),r=n(40031),o=n(15824),s=n(12115);function a(){return r.r.current||(0,o.Uu)(),(0,i._)((0,s.useState)(r.O.current),1)[0]}},46436:(t,e,n)=>{n.d(e,{E:()=>r});var i=n(12115),r="undefined"!=typeof window?i.useLayoutEffect:i.useEffect},50440:(t,e,n)=>{n.d(e,{j:()=>h});var i=n(95155),r=n(12115),o=n(2421),s=n(79384),a=n(2764);function l(t,e){if(0===e.length||0===t.clientHeight)return[0,0];let n=Number.MAX_VALUE,i=0;for(let r of e){let e=t.querySelector(`a[href="#${r}"]`);if(!e)continue;let o=getComputedStyle(e);n=Math.min(n,e.offsetTop+parseFloat(o.paddingTop)),i=Math.max(i,e.offsetTop+e.clientHeight-parseFloat(o.paddingBottom))}return[n,i-n]}function u(t,e){t.style.setProperty("--fd-top",`${e[0]}px`),t.style.setProperty("--fd-height",`${e[1]}px`)}function h({containerRef:t,...e}){let n=o.Mf(),h=(0,r.useRef)(null),c=(0,a.J)(()=>{t.current&&h.current&&u(h.current,l(t.current,n))});return(0,r.useEffect)(()=>{if(!t.current)return;let e=t.current;c();let n=new ResizeObserver(c);return n.observe(e),()=>{n.disconnect()}},[t,c]),(0,s.T)(n,()=>{t.current&&h.current&&u(h.current,l(t.current,n))}),(0,i.jsx)("div",{ref:h,role:"none",...e})}},53127:(t,e,n)=>{n.d(e,{Q:()=>i});var i=(0,n(12115).createContext)({transformPagePoint:function(t){return t},isStatic:!1,reducedMotion:"never"})},53878:(t,e,n)=>{n.r(e),n.d(e,{I18nContext:()=>o,I18nLabel:()=>s,defaultTranslations:()=>r,useI18n:()=>a});var i=n(12115),r={search:"Search",searchNoResult:"No results found",toc:"On this page",tocNoHeadings:"No Headings",lastUpdate:"Last updated on",chooseLanguage:"Choose a language",nextPage:"Next Page",previousPage:"Previous Page",chooseTheme:"Theme",editOnGithub:"Edit on GitHub"},o=(0,i.createContext)({text:r});function s(t){return a().text[t.label]}function a(){return(0,i.useContext)(o)}},57297:(t,e,n)=>{let i,r,o;n.d(e,{P:()=>o$});let s=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],a=new Set(s),l=(t,e,n)=>n>e?e:n<t?t:n,u={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},h={...u,transform:t=>l(0,1,t)},c={...u,default:1},d=t=>Math.round(1e5*t)/1e5,f=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,p=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,m=(t,e)=>n=>!!("string"==typeof n&&p.test(n)&&n.startsWith(t)||e&&null!=n&&Object.prototype.hasOwnProperty.call(n,e)),v=(t,e,n)=>i=>{if("string"!=typeof i)return i;let[r,o,s,a]=i.match(f);return{[t]:parseFloat(r),[e]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},g={...u,transform:t=>Math.round(l(0,255,t))},y={test:m("rgb","red"),parse:v("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+g.transform(t)+", "+g.transform(e)+", "+g.transform(n)+", "+d(h.transform(i))+")"},w={test:m("#"),parse:function(t){let e="",n="",i="",r="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),r=t.substring(4,5),e+=e,n+=n,i+=i,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}},transform:y.transform},x=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),b=x("deg"),T=x("%"),S=x("px"),P=x("vh"),M=x("vw"),E={...T,parse:t=>T.parse(t)/100,transform:t=>T.transform(100*t)},_={test:m("hsl","hue"),parse:v("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+T.transform(d(e))+", "+T.transform(d(n))+", "+d(h.transform(i))+")"},C={test:t=>y.test(t)||w.test(t)||_.test(t),parse:t=>y.test(t)?y.parse(t):_.test(t)?_.parse(t):w.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?y.transform(t):_.transform(t),getAnimatableNone:t=>{let e=C.parse(t);return e.alpha=0,C.transform(e)}},A=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,R="number",k="color",D=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function V(t){let e=t.toString(),n=[],i={color:[],number:[],var:[]},r=[],o=0,s=e.replace(D,t=>(C.test(t)?(i.color.push(o),r.push(k),n.push(C.parse(t))):t.startsWith("var(")?(i.var.push(o),r.push("var"),n.push(t)):(i.number.push(o),r.push(R),n.push(parseFloat(t))),++o,"${}")).split("${}");return{values:n,split:s,indexes:i,types:r}}function L({split:t,types:e}){let n=t.length;return i=>{let r="";for(let o=0;o<n;o++)if(r+=t[o],void 0!==i[o]){let t=e[o];t===R?r+=d(i[o]):t===k?r+=C.transform(i[o]):r+=i[o]}return r}}let j={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(f)?.length||0)+(t.match(A)?.length||0)>0},parse:function(t){return V(t).values},createTransformer:function(t){return L(V(t))},getAnimatableNone:function(t){let e=V(t);return L(e)(e.values.map((t,n)=>{var i;let r;return i=e.split[n],"number"==typeof t?i?.trim().endsWith("/")?t:0:"number"==typeof(r=t)?0:C.test(r)?C.getAnimatableNone(r):r}))}},N=new Set(["brightness","contrast","saturate","opacity"]);function I(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[i]=n.match(f)||[];if(!i)return t;let r=n.replace(i,""),o=+!!N.has(e);return i!==n&&(o*=100),e+"("+o+r+")"}let F=/\b([a-z-]*)\(.*?\)/gu,O={...j,getAnimatableNone:t=>{let e=t.match(F);return e?e.map(I).join(" "):t}},B={...j,getAnimatableNone:t=>{let e=j.parse(t);return j.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},z={...u,transform:Math.round},W={borderWidth:S,borderTopWidth:S,borderRightWidth:S,borderBottomWidth:S,borderLeftWidth:S,borderRadius:S,borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,width:S,maxWidth:S,height:S,maxHeight:S,top:S,right:S,bottom:S,left:S,inset:S,insetBlock:S,insetBlockStart:S,insetBlockEnd:S,insetInline:S,insetInlineStart:S,insetInlineEnd:S,padding:S,paddingTop:S,paddingRight:S,paddingBottom:S,paddingLeft:S,paddingBlock:S,paddingBlockStart:S,paddingBlockEnd:S,paddingInline:S,paddingInlineStart:S,paddingInlineEnd:S,margin:S,marginTop:S,marginRight:S,marginBottom:S,marginLeft:S,marginBlock:S,marginBlockStart:S,marginBlockEnd:S,marginInline:S,marginInlineStart:S,marginInlineEnd:S,fontSize:S,backgroundPositionX:S,backgroundPositionY:S,rotate:b,rotateX:b,rotateY:b,rotateZ:b,scale:c,scaleX:c,scaleY:c,scaleZ:c,skew:b,skewX:b,skewY:b,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:h,originX:E,originY:E,originZ:S,zIndex:z,fillOpacity:h,strokeOpacity:h,numOctaves:z},U={...W,color:C,backgroundColor:C,outlineColor:C,fill:C,stroke:C,borderColor:C,borderTopColor:C,borderRightColor:C,borderBottomColor:C,borderLeftColor:C,filter:O,WebkitFilter:O,mask:B,WebkitMask:B},H=t=>U[t],K=()=>({translate:0,scale:1,origin:0,originPoint:0}),$=()=>({x:K(),y:K()}),Y=()=>({min:0,max:0}),X=()=>({x:Y(),y:Y()}),G=t=>!!(t&&t.getVelocity),q=new Set(["width","height","top","left","right","bottom",...s]),Z=t=>e=>e.test(t),Q=[u,S,T,b,M,P,{test:t=>"auto"===t,parse:t=>t}],J=t=>Q.find(Z(t));n(87358);let tt=()=>{},te=()=>{},tn=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),ti=t=>e=>"string"==typeof e&&e.startsWith(t),tr=ti("--"),to=ti("var(--"),ts=t=>!!to(t)&&ta.test(t.split("/*")[0].trim()),ta=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tl(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let tu=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,th=t=>180*t/Math.PI,tc=t=>tf(th(Math.atan2(t[1],t[0]))),td={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:tc,rotateZ:tc,skewX:t=>th(Math.atan(t[1])),skewY:t=>th(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tf=t=>((t%=360)<0&&(t+=360),t),tp=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tm=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tv={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tp,scaleY:tm,scale:t=>(tp(t)+tm(t))/2,rotateX:t=>tf(th(Math.atan2(t[6],t[5]))),rotateY:t=>tf(th(Math.atan2(-t[2],t[0]))),rotateZ:tc,rotate:tc,skewX:t=>th(Math.atan(t[4])),skewY:t=>th(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function tg(t){return+!!t.includes("scale")}function ty(t,e){let n,i;if(!t||"none"===t)return tg(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)n=tv,i=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=td,i=e}if(!i)return tg(e);let o=n[e],s=i[1].split(",").map(tw);return"function"==typeof o?o(s):s[o]}function tw(t){return parseFloat(t.trim())}let tx=t=>t===u||t===S,tb=new Set(["x","y","z"]),tT=s.filter(t=>!tb.has(t)),tS={width:({x:t},{paddingLeft:e="0",paddingRight:n="0",boxSizing:i})=>{let r=t.max-t.min;return"border-box"===i?r:r-parseFloat(e)-parseFloat(n)},height:({y:t},{paddingTop:e="0",paddingBottom:n="0",boxSizing:i})=>{let r=t.max-t.min;return"border-box"===i?r:r-parseFloat(e)-parseFloat(n)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>ty(e,"x"),y:(t,{transform:e})=>ty(e,"y")};tS.translateX=tS.x,tS.translateY=tS.y;let tP=t=>t,tM={},tE=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],t_={value:null,addProjectionMetrics:null};function tC(t,e){let n=!1,i=!0,r={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=tE.reduce((t,n)=>(t[n]=function(t,e){let n=new Set,i=new Set,r=!1,o=!1,s=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){s.has(e)&&(h.schedule(e),t()),l++,e(a)}let h={schedule:(t,e=!1,o=!1)=>{let a=o&&r?n:i;return e&&s.add(t),a.add(t),t},cancel:t=>{i.delete(t),s.delete(t)},process:t=>{if(a=t,r){o=!0;return}r=!0;let s=n;
1n=i,i=s,n.forEach(u),e&&t_.value&&t_.value.frameloop[e].push(l),l=0,n.clear(),r=!1,o&&(o=!1,h.process(t))}};return h}(o,e?n:void 0),t),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:h,update:c,preRender:d,render:f,postRender:p}=s,m=()=>{let o=tM.useManualTiming,s=o?r.timestamp:performance.now();n=!1,o||(r.delta=i?1e3/60:Math.max(Math.min(s-r.timestamp,40),1)),r.timestamp=s,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),h.process(r),c.process(r),d.process(r),f.process(r),p.process(r),r.isProcessing=!1,n&&e&&(i=!1,t(m))};return{schedule:tE.reduce((e,o)=>{let a=s[o];return e[o]=(e,o=!1,s=!1)=>(!n&&(n=!0,i=!0,r.isProcessing||t(m)),a.schedule(e,o,s)),e},{}),cancel:t=>{for(let e=0;e<tE.length;e++)s[tE[e]].cancel(t)},state:r,steps:s}}let{schedule:tA,cancel:tR,state:tk,steps:tD}=tC("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:tP,!0),tV=new Set,tL=!1,tj=!1,tN=!1;function tI(){if(tj){let t=Array.from(tV).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),n=new Map;e.forEach(t=>{let e=function(t){let e=[];return tT.forEach(n=>{let i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(+!!n.startsWith("scale")))}),e}(t);e.length&&(n.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=n.get(t);e&&e.forEach(([e,n])=>{t.getValue(e)?.set(n)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tj=!1,tL=!1,tV.forEach(t=>t.complete(tN)),tV.clear()}function tF(){tV.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tj=!0)})}class tO{constructor(t,e,n,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(tV.add(this),tL||(tL=!0,tA.read(tF),tA.resolveKeyframes(tI))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:n,motionValue:i}=this;if(null===t[0]){let r=i?.get(),o=t[t.length-1];if(void 0!==r)t[0]=r;else if(n&&e){let i=n.readValue(e,o);null!=i&&(t[0]=i)}void 0===t[0]&&(t[0]=o),i&&void 0===r&&i.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tV.delete(this)}cancel(){"scheduled"===this.state&&(tV.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tB=t=>/^0[^.\s]+$/u.test(t),tz=new Set([O,B]);function tW(t,e){let n=H(t);return tz.has(n)||(n=j),n.getAnimatableNone?n.getAnimatableNone(e):void 0}let tU=new Set(["auto","none","0"]);class tH extends tO{constructor(t,e,n,i,r){super(t,e,n,i,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let n=0;n<t.length;n++){let i=t[n];if("string"==typeof i&&ts(i=i.trim())){let r=function t(e,n,i=1){te(i<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,o]=function(t){let e=tu.exec(t);if(!e)return[,];let[,n,i,r]=e;return[`--${n??i}`,r]}(e);if(!r)return;let s=window.getComputedStyle(n).getPropertyValue(r);if(s){let t=s.trim();return tn(t)?parseFloat(t):t}return ts(o)?t(o,n,i+1):o}(i,e.current);void 0!==r&&(t[n]=r),n===t.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!q.has(n)||2!==t.length)return;let[i,r]=t,o=J(i),s=J(r);if(tl(i)!==tl(r)&&tS[n]){this.needsMeasurement=!0;return}if(o!==s)if(tx(o)&&tx(s))for(let e=0;e<t.length;e++){let n=t[e];"string"==typeof n&&(t[e]=parseFloat(n))}else tS[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,n=[];for(let e=0;e<t.length;e++){var i;(null===t[e]||("number"==typeof(i=t[e])?0===i:null===i||"none"===i||"0"===i||tB(i)))&&n.push(e)}n.length&&function(t,e,n){let i,r=0;for(;r<t.length&&!i;){let e=t[r];"string"==typeof e&&!tU.has(e)&&V(e).values.length&&(i=t[r]),r++}if(i&&n)for(let r of e)t[r]=tW(n,i)}
1(t,n,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:n}=this;if(!t||!t.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tS[n](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let i=e[e.length-1];void 0!==i&&t.getValue(n,i).jump(i,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:n}=this;if(!t||!t.current)return;let i=t.getValue(e);i&&i.jump(this.measuredOrigin,!1);let r=n.length-1,o=n[r];n[r]=tS[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}}let tK=t=>1e3*t;function t$(t,e){-1===t.indexOf(e)&&t.push(e)}function tY(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}class tX{constructor(){this.subscriptions=[]}add(t){return t$(this.subscriptions,t),()=>tY(this.subscriptions,t)}notify(t,e,n){let i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(let r=0;r<i;r++){let i=this.subscriptions[r];i&&i(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function tG(t,e,n){e.startsWith("--")?t.style.setProperty(e,n):t.style[e]=n}function tq(t){let e;return()=>(void 0===e&&(e=t()),e)}let tZ={};function tQ(t,e){let n=tq(t);return()=>tZ[e]??n()}let tJ=tQ(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),t0=t=>null!==t;function t1(t,{repeat:e,repeatType:n="loop"},i,r=1){let o=t.filter(t0),s=r<0||e&&"loop"!==n&&e%2==1?0:o.length-1;return s&&void 0!==i?i:o[s]}class t2{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let t5={layout:0,mainThread:0,waapi:0},t3=t=>Array.isArray(t)&&"number"==typeof t[0],t4=tQ(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),t6=(t,e,n=10)=>{let i="",r=Math.max(Math.round(e/n),2);for(let e=0;e<r;e++)i+=Math.round(1e4*t(e/(r-1)))/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},t8=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,t7={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:t8([0,.65,.55,1]),circOut:t8([.55,0,1,.45]),backIn:t8([.31,.01,.66,-.59]),backOut:t8([.33,1.53,.69,.99])};function t9(t){return"function"==typeof t&&"applyToOptions"in t}class et extends t2{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:e,name:n,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:s,onComplete:a}=t;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=t,te("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let l=function({type:t,...e}){return t9(t)&&t4()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,n,{delay:i=0,duration:r=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}={},u){let h={[e]:n};l&&(h.offset=l);let c=function t(e,n){if(e)return"function"==typeof e?t4()?t6(e,n):"ease-out":t3(e)?t8(e):Array.isArray(e)?e.map(e=>t(e,n)||t7.easeOut):t7[e]}(a,r);Array.isArray(c)&&(h.easing=c),t_.value&&t5.waapi++;let d={delay:i,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"};u&&(d.pseudoElement=u);let f=t.animate(h,d);return t_.value&&f.finished.finally(()=>{t5.waapi--}),f}(e,n,i,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let t=t1(i,this.options,s,this.speed);this.updateMotionValue&&this.updateMotionValue(t),tG(e,n,t),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=tK(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:n,observe:i}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&tJ())?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),n&&(this.animation.rangeEnd=n),tP):i(this)}}let ee=new Set(["opacity","clipPath","filter","transform"]),{schedule:en}=tC(queueMicrotask,!1);function ei(){i=void 0}let er={now:()=>(void 0===i&&er.set(tk.isProcessing||tM.useManualTiming?tk.timestamp:performance.now()),i),set:t=>{i=t,queueMicrotask(ei)}},eo={current:void 0};class es{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=er.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=er.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new tX);let n=this.events[t].add(e);return"change"===t?()=>{n(),tA.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return eo.current&&eo.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=er.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),n?1e3/n*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ea(t,e){return new es(t,e)}let el=[...Q,C,j],eu=new WeakMap;function eh(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function ec(t){return"string"==typeof t||Array.isArray(t)}let ed=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ef=["initial",...ed];function ep(t){return eh(t.animate)||ef.some(e=>ec(t[e]))}function em(t){return!!(ep(t)||t.variants)}var ev=n(15824);function eg(t){let e=[{},{}];
1return t?.values.forEach((t,n)=>{e[0][n]=t.get(),e[1][n]=t.getVelocity()}),e}function ey(t,e,n,i){if("function"==typeof e){let[r,o]=eg(i);e=e(void 0!==n?n:t.custom,r,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,o]=eg(i);e=e(void 0!==n?n:t.custom,r,o)}return e}var ew=n(40031);let ex=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],eb={};class eT{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:i,skipAnimations:r,blockInitialAnimation:o,visualState:s},a={}){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=tO,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 t=er.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,tA.render(this.render,!1,!0))};let{latestValues:l,renderState:u}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=r,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=ep(e),this.isVariantNode=em(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:h,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in c){let e=c[t];void 0!==l[t]&&G(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,eu.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(ew.r.current||(0,ev.Uu)(),this.shouldReduceMotion=ew.O.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),tR(this.notifyUpdate),tR(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let n;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&ee.has(t)&&this.current instanceof HTMLElement){let{factory:n,keyframes:i,times:r,ease:o,duration:s}=e.accelerate,a=new et({element:this.current,name:t,keyframes:i,times:r,ease:o,duration:tK(s)}),l=n(a);this.valueSubscriptions.set(t,()=>{l(),a.cancel()});return}let i=a.has(t);i&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tA.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"undefined"!=typeof window&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),n&&n(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in eb){let e=eb[t];if(!e)continue;let{isEnabled:n,Feature:i}=e;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){let e=this.features[t];
1e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):X()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<ex.length;e++){let n=ex[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i=t["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=function(t,e,n){for(let i in e){let r=e[i],o=n[i];if(G(r))t.addValue(i,r);else if(G(o))t.addValue(i,ea(r,{owner:t}));else if(o!==r)if(t.hasValue(i)){let e=t.getValue(i);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(i);t.addValue(i,ea(void 0!==e?e:r,{owner:t}))}}for(let i in n)void 0===e[i]&&t.removeValue(i);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=ea(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){let n=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=n){if("string"==typeof n&&(tn(n)||tB(n)))n=parseFloat(n);else{let i;i=n,!el.find(Z(i))&&j.test(e)&&(n=tW(t,e))}this.setBaseTarget(t,G(n)?n.get():n)}return G(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let i=ey(this.props,n,this.presenceContext?.custom);i&&(e=i[t])}if(n&&void 0!==e)return e;let i=this.getBaseTargetFromProps(this.props,t);return void 0===i||G(i)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new tX),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){en.render(this.render)}}class eS extends eT{constructor(){super(...arguments),this.KeyframeResolver=tH}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let n=t.style;return n?n[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;G(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function eP(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let eM=(t,e)=>e&&"number"==typeof t?e.transform(t):t,eE={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},e_=s.length;function eC(t,e,n){let{style:i,vars:r,transformOrigin:o}=t,l=!1,u=!1;for(let t in e){let n=e[t];if(a.has(t)){l=!0;continue}if(tr(t)){r[t]=n;continue}{let e=eM(n,W[t]);t.startsWith("origin")?(u=!0,o[t]=e):i[t]=e}}if(!e.transform&&(l||n?i.transform=function(t,e,n){let i="",r=!0;for(let o=0;o<e_;o++){let a=s[o],l=t[a];if(void 0===l)continue;let u=!0;
1if("number"==typeof l)u=l===+!!a.startsWith("scale");else{let t=parseFloat(l);u=a.startsWith("scale")?1===t:0===t}if(!u||n){let t=eM(l,W[a]);if(!u){r=!1;let e=eE[a]||a;i+=`${e}(${t}) `}n&&(e[a]=t)}}return i=i.trim(),n?i=n(e,r?"":i):r&&(i="none"),i}(e,t.transform,n):i.transform&&(i.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:n=0}=o;i.transformOrigin=`${t} ${e} ${n}`}}let eA={offset:"stroke-dashoffset",array:"stroke-dasharray"},eR={offset:"strokeDashoffset",array:"strokeDasharray"},ek=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function eD(t,{attrX:e,attrY:n,attrScale:i,pathLength:r,pathSpacing:o=1,pathOffset:s=0,...a},l,u,h){if(eC(t,a,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:d}=t;for(let t of(c.transform&&(d.transform=c.transform,delete c.transform),(d.transform||c.transformOrigin)&&(d.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),d.transform&&(d.transformBox=h?.transformBox??"fill-box",delete c.transformBox),ek))void 0!==c[t]&&(d[t]=c[t],delete c[t]);void 0!==e&&(c.x=e),void 0!==n&&(c.y=n),void 0!==i&&(c.scale=i),void 0!==r&&function(t,e,n=1,i=0,r=!0){t.pathLength=1;let o=r?eA:eR;t[o.offset]=`${-i}`,t[o.array]=`${e} ${n}`}(c,r,o,s,!1)}let eV=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"]),eL=t=>"string"==typeof t&&"svg"===t.toLowerCase();function ej(t,{style:e,vars:n},i,r){let o,s=t.style;for(o in e)s[o]=e[o];for(o in r?.applyProjectionStyles(s,i),n)s.setProperty(o,n[o])}function eN(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let eI={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!S.test(t))return t;else t=parseFloat(t);let n=eN(t,e.target.x),i=eN(t,e.target.y);return`${n}% ${i}%`}},eF=(t,e,n)=>t+(e-t)*n,eO={borderRadius:{...eI,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eI,borderTopRightRadius:eI,borderBottomLeftRadius:eI,borderBottomRightRadius:eI,boxShadow:{correct:(t,{treeScale:e,projectionDelta:n})=>{let i=j.parse(t);if(i.length>5)return t;let r=j.createTransformer(t),o=+("number"!=typeof i[0]),s=n.x.scale*e.x,a=n.y.scale*e.y;i[0+o]/=s,i[1+o]/=a;let l=eF(s,a,.5);return"number"==typeof i[2+o]&&(i[2+o]/=l),"number"==typeof i[3+o]&&(i[3+o]/=l),r(i)}}};function eB(t,{layout:e,layoutId:n}){return a.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!eO[t]||"opacity"===t)}function ez(t,e,n){let i=t.style,r=e?.style,o={};if(!i)return o;for(let e in i)(G(i[e])||r&&G(r[e])||eB(e,t)||n?.getValue(e)?.liveStyle!==void 0)&&(o[e]=i[e]);return o}function eW(t,e,n){let i=ez(t,e,n);for(let n in t)(G(t[n])||G(e[n]))&&(i[-1!==s.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=t[n]);return i}class eU extends eS{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=X}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(a.has(e)){let t=H(e);return t&&t.default||0}return e=eV.has(e)?e:eP(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return eW(t,e,n)}
1build(t,e,n){eD(t,e,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,e,n,i){for(let n in ej(t,e,void 0,i),e.attrs)t.setAttribute(eV.has(n)?n:eP(n),e.attrs[n])}mount(t){this.isSVGTag=eL(t.tagName),super.mount(t)}}function eH({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function eK(t){return void 0===t||1===t}function e$({scale:t,scaleX:e,scaleY:n}){return!eK(t)||!eK(e)||!eK(n)}function eY(t){return e$(t)||eX(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function eX(t){var e,n;return(e=t.x)&&"0%"!==e||(n=t.y)&&"0%"!==n}function eG(t,e,n,i,r){return void 0!==r&&(t=i+r*(t-i)),i+n*(t-i)+e}function eq(t,e=0,n=1,i,r){t.min=eG(t.min,e,n,i,r),t.max=eG(t.max,e,n,i,r)}function eZ(t,{x:e,y:n}){eq(t.x,e.translate,e.scale,e.originPoint),eq(t.y,n.translate,n.scale,n.originPoint)}function eQ(t,e){t.min+=e,t.max+=e}function eJ(t,e,n,i,r=.5){let o=eF(t.min,t.max,r);eq(t,e,n,o,i)}function e0(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function e1(t,e,n){let i=n??t;eJ(t.x,e0(e.x,i.x),e.scaleX,e.scale,e.originX),eJ(t.y,e0(e.y,i.y),e.scaleY,e.scale,e.originY)}function e2(t,e){return eH(function(t,e){if(!e)return t;let n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(t.getBoundingClientRect(),e))}class e5 extends eS{constructor(){super(...arguments),this.type="html",this.renderInstance=ej}readValueFromInstance(t,e){if(a.has(e))return this.projection?.isProjecting?tg(e):((t,e)=>{let{transform:n="none"}=getComputedStyle(t);return ty(n,e)})(t,e);{let n=window.getComputedStyle(t),i=(tr(e)?n.getPropertyValue(e):n[e])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:e}){return e2(t,e)}build(t,e,n){eC(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return ez(t,e,n)}}var e3=n(12115);let e4=["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 e6(t){if("string"!=typeof t||t.includes("-"));else if(e4.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var e8=n(67867),e7=n(11470),e9=n(95155),nt=n(60296),ne=(0,e3.createContext)({strict:!1}),nn=n(53127),ni=(0,e3.createContext)({});function nr(t){return Array.isArray(t)?t.join(" "):t}let no=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ns(t,e,n){for(var i in e)G(e[i])||eB(i,n)||(t[i]=e[i])}let na=()=>({...no(),attrs:{}}),nl=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function nu(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||nl.has(t)}let nh=t=>!nu(t);try{!function(t){"function"==typeof t&&(nh=e=>e.startsWith("on")?!nu(e):t(e))}(require("@emotion/is-prop-valid").default)}catch{}var nc=n(12844);function nd(t){return G(t)?t.get():t}var nf=n(59686),np=n(94416),nm=function(t){return function(e,n){var i=(0,e3.useContext)(ni),r=(0,e3.useContext)(nf.t),o=function(){var n,o;return n=t.scrapeMotionValuesFromProps,o=t.createRenderState,{latestValues:function(t,e,n,i){var r={},o=i(t,{});for(var s in o)r[s]=nd(o[s]);var a=t.initial,l=t.animate,u=ep(t),h=em(t);e&&h&&!u&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===l&&(l=e.animate));var c=!!n&&!1===n.initial,d=(c=c||!1===a)?l:a;if(d&&"boolean"!=typeof d&&!eh(d))for(var f=Array.isArray(d)?d:[d],p=0;p<f.length;p++){var m=ey(t,f[p]);if(m){var v=m.transitionEnd,g=(m.transition,(0,nc._)(m,["transitionEnd","transition"]));for(var y in g){var w=g[y];if(Array.isArray(w)){var x=c?w.length-1:0;w=w[x]}null!==w&&(r[y]=w)}for(var b in v)r[b]=v[b]}}return r}(e,i,r,n),renderState:o()}};return n?o():(0,np.M)(o)}},nv=nm({scrapeMotionValuesFromProps:ez,createRenderState:no}),ng=nm({scrapeMotionValuesFromProps:eW,createRenderState:na});let ny={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},nw=!1;function nx(){return!function(){if(nw)return;let t={};for(let e in ny)t[e]={isEnabled:t=>ny[e].some(e=>!!t[e])};eb=t,nw=!0}
1(),eb}let nb=Symbol.for("motionComponentSymbol"),nT="data-"+eP("framerAppearId");var nS=(0,e3.createContext)({});function nP(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var nM=n(46436);function nE(t){var e,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.forwardMotionProps,o=void 0!==r&&r,s=i.type,a=arguments.length>2?arguments[2]:void 0,l=arguments.length>3?arguments[3]:void 0;a&&function(t){let e=nx();for(let n in t)e[n]={...e[n],...t[n]};eb=e}(a);var u=s?"svg"===s:e6(t),h=u?ng:nv;function c(e,n){var i,r,s,a,c,d,f=(0,e7._)((0,e8._)({},(0,e3.useContext)(nn.Q),e),{layoutId:(i=e.layoutId,(r=(0,e3.useContext)(nt.L).id)&&void 0!==i?r+"-"+i:i)}),p=f.isStatic,m=(R=(A=function(t,e){if(ep(t)){let{initial:e,animate:n}=t;return{initial:!1===e||ec(e)?e:void 0,animate:ec(n)?n:void 0}}return!1!==t.inherit?e:{}}(e,(0,e3.useContext)(ni))).initial,k=A.animate,(0,e3.useMemo)(function(){return{initial:R,animate:k}},[nr(R),nr(k)])),v=h(e,p);if(!p&&"undefined"!=typeof window){(0,e3.useContext)(ne).strict;var g,y,w,x,b,T,S,P,M,E,_,C,A,R,k,D,V,L,j,N,I,F,O,B,z,W,U,H,K,$,Y,X,q,Z,Q=function(t){var e=nx(),n=e.drag,i=e.layout;if(!n&&!i)return{};var r=(0,e8._)({},n,i);return{MeasureLayout:(null==n?void 0:n.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(f);d=Q.MeasureLayout,D=l,V=Q.ProjectionNode,F=(0,e3.useContext)(ni).visualElement,O=(0,e3.useContext)(ne),B=(0,e3.useContext)(nf.t),W=(z=(0,e3.useContext)(nn.Q)).reducedMotion,U=z.skipAnimations,H=(0,e3.useRef)(null),K=(0,e3.useRef)(!1),D=D||O.renderer,!H.current&&D&&(H.current=D(t,{visualState:v,parent:F,props:f,presenceContext:B,blockInitialAnimation:!!B&&!1===B.initial,reducedMotionConfig:W,skipAnimations:U,isSVG:u}),K.current&&H.current&&(H.current.manuallyAnimateOnMount=!0)),$=H.current,Y=(0,e3.useContext)(nS),$&&!$.projection&&V&&("html"===$.type||"svg"===$.type)&&(g=H.current,y=f,w=V,x=Y,b=y.layoutId,T=y.layout,S=y.drag,P=y.dragConstraints,M=y.layoutScroll,E=y.layoutRoot,_=y.layoutAnchor,C=y.layoutCrossfade,g.projection=new w(g.latestValues,y["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(g.parent)),g.projection.setOptions({layoutId:b,layout:T,alwaysMeasureLayout:!!S||P&&nP(P),visualElement:g,animationType:"string"==typeof T?T:"both",initialPromotionConfig:x,crossfade:C,layoutScroll:M,layoutRoot:E,layoutAnchor:_})),X=(0,e3.useRef)(!1),(0,e3.useInsertionEffect)(function(){$&&X.current&&$.update(f,B)}),q=f[nT],Z=(0,e3.useRef)(!!q&&"undefined"!=typeof window&&!(null==(L=(j=window).MotionHandoffIsComplete)?void 0:L.call(j,q))&&(null==(N=(I=window).MotionHasOptimisedAnimation)?void 0:N.call(I,q))),(0,nM.E)(function(){K.current=!0,$&&(X.current=!0,window.MotionIsMounted=!0,$.updateFeatures(),$.scheduleRenderMicrotask(),Z.current&&$.animationState&&$.animationState.animateChanges())}),(0,e3.useEffect)(function(){$&&(!Z.current&&$.animationState&&$.animationState.animateChanges(),Z.current&&(queueMicrotask(function(){var t,e;null==(t=(e=window).MotionHandoffMarkAsComplete)||t.call(e,q)}),Z.current=!1),$.enteringChildren=void 0)}),m.visualElement=$}return(0,e9.jsxs)(ni.Provider,{value:m,children:[d&&m.visualElement?(0,e9.jsx)(d,(0,e8._)({visualElement:m.visualElement},f)):null,function(t,e,n,i,r){var o=i.latestValues,s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,l=((null!=a?a:e6(t))?function(t,e,n,i){var r=(0,e3.useMemo)(function(){var n=na();return eD(n,e,eL(i),t.transformTemplate,t.style),(0,e7._)((0,e8._)({},n.attrs),{style:(0,e8._)({},n.style)})},[e]);if(t.style){var o={};ns(o,t.style,t),r.style=(0,e8._)({},o,r.style)}return r}:function(t,e){var n,i,r={},o=(ns(n={},t.style||{},t),Object.assign(n,(i=t.transformTemplate,(0,e3.useMemo)(function(){var t=no();return eC(t,e,i),Object.assign({},t.vars,t.style)},[e]))),n);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":"pan-".concat("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=o,r})(e,o,r,t),u=function(t,e,n){let i={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&!G(t[r])&&(nh(r)||!0===n&&nu(r)||!e&&!nu(r)||t.draggable&&r.startsWith("onDrag"))&&(i[r]=t[r]);return i}(e,"string"==typeof t,s),h=t!==e3.Fragment?(0,e7._)((0,e8._)({},u,l),{ref:n}):{},c=e.children,d=(0,e3.useMemo)(function(){return G(c)?c.get():c},[c]);return(0,e3.createElement)(t,(0,e7._)((0,e8._)({},h),{children:d}))}(t,e,(s=m.visualElement,a=(0,e3.useRef)(n),(0,e3.useInsertionEffect)(function(){a.current=n}),c=(0,e3.useRef)(null),(0,e3.useCallback)(function(t){if(t){var e;null==(e=v.onMount)||e.call(v,t)}var n=a.current;if("function"==typeof n)if(t){var i=n(t);"function"==typeof i&&(c.current=i)}else c.current?(c.current(),c.current=null):n(t);else n&&(n.current=t);s&&(t?s.mount(t):s.unmount())},[s])),v,p,o,u)]})}c.displayName="motion.".concat("string"==typeof t?t:"create(".concat(null!=(n=null!=(e=t.displayName)?e:t.name)?n:"",")"));var d=(0,e3.forwardRef)(c);return d[nb]=t,d}class n_{constructor(t){this.isMounted=!1,this.node=t}update(){}}function nC(t,e,n){let i=t.getProps();return ey(i,e,void 0!==n?n:i.custom,t)}function nA(t,e){if(t?.inherit&&e){let{inherit:n,...i}=t;return{...e,...i}}return t}function nR(t,e){let n=t?.[e]??t?.default??t;return n!==t?nA(n,t):n}let nk=t=>Array.isArray(t);function nD(t,e){let n=t.getValue("willChange");if(G(n)&&n.add)return n.add(e);if(!n&&tM.WillChange){let n=new tM.WillChange("auto");t.addValue("willChange",n),n.add(e)}}let nV=(t,e)=>n=>e(t(n)),nL=(...t)=>t.reduce(nV);function nj(t,e,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?t+(e-t)*6*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function nN(t,e){return n=>n>0?e:t}let nI=(t,e,n)=>{let i=t*t,r=n*(e*e-i)+i;return r<0?0:Math.sqrt(r)},nF=[w,y,_];function nO(t){let e=nF.find(e=>e.test(t));if(tt(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let n=e.parse(t);return e===_&&(n=function({hue:t,saturation:e,lightness:n,alpha:i}
1){t/=360,n/=100;let r=0,o=0,s=0;if(e/=100){let i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;r=nj(a,i,t+1/3),o=nj(a,i,t),s=nj(a,i,t-1/3)}else r=o=s=n;return{red:Math.round(255*r),green:Math.round(255*o),blue:Math.round(255*s),alpha:i}}(n)),n}let nB=(t,e)=>{let n=nO(t),i=nO(e);if(!n||!i)return nN(t,e);let r={...n};return t=>(r.red=nI(n.red,i.red,t),r.green=nI(n.green,i.green,t),r.blue=nI(n.blue,i.blue,t),r.alpha=eF(n.alpha,i.alpha,t),y.transform(r))},nz=new Set(["none","hidden"]);function nW(t,e){return n=>eF(t,e,n)}function nU(t){return"number"==typeof t?nW:"string"==typeof t?ts(t)?nN:C.test(t)?nB:n$:Array.isArray(t)?nH:"object"==typeof t?C.test(t)?nB:nK:nN}function nH(t,e){let n=[...t],i=n.length,r=t.map((t,n)=>nU(t)(t,e[n]));return t=>{for(let e=0;e<i;e++)n[e]=r[e](t);return n}}function nK(t,e){let n={...t,...e},i={};for(let r in n)void 0!==t[r]&&void 0!==e[r]&&(i[r]=nU(t[r])(t[r],e[r]));return t=>{for(let e in i)n[e]=i[e](t);return n}}let n$=(t,e)=>{let n=j.createTransformer(e),i=V(t),r=V(e);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?nz.has(t)&&!r.values.length||nz.has(e)&&!i.values.length?function(t,e){return nz.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}(t,e):nL(nH(function(t,e){let n=[],i={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){let o=e.types[r],s=t.indexes[o][i[o]],a=t.values[s]??0;n[r]=a,i[o]++}return n}(i,r),r.values),n):(tt(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),nN(t,e))};function nY(t,e,n){return"number"==typeof t&&"number"==typeof e&&"number"==typeof n?eF(t,e,n):nU(t)(t,e)}let nX=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>tA.update(e,t),stop:()=>tR(e),now:()=>tk.isProcessing?tk.timestamp:er.now()}};function nG(t){let e=0,n=t.next(e);for(;!n.done&&e<2e4;)e+=50,n=t.next(e);return e>=2e4?1/0:e}let nq={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function nZ(t,e){return t*Math.sqrt(1-e*e)}let nQ=["duration","bounce"],nJ=["stiffness","damping","mass"];function n0(t,e){return e.some(e=>void 0!==t[e])}function n1(t=nq.visualDuration,e=nq.bounce){let n,i,r,o,s,a,u="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:h,restDelta:c}=u,d=u.keyframes[0],f=u.keyframes[u.keyframes.length-1],p={done:!1,value:d},{stiffness:m,damping:v,mass:g,duration:y,velocity:w,isResolvedFromDuration:x}=function(t){let e={velocity:nq.velocity,stiffness:nq.stiffness,damping:nq.damping,mass:nq.mass,isResolvedFromDuration:!1,...t};if(!n0(t,nJ)&&n0(t,nQ))if(e.velocity=0,t.visualDuration){let n=2*Math.PI/(1.2*t.visualDuration),i=n*n,r=2*l(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:nq.mass,stiffness:i,damping:r}}else{let n=function({duration:t=nq.duration,bounce:e=nq.bounce,velocity:n=nq.velocity,mass:i=nq.mass}){let r,o;tt(t<=tK(nq.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-e;s=l(nq.minDamping,nq.maxDamping,s),t=l(nq.minDuration,nq.maxDuration,t/1e3),s<1?(r=e=>{let i=e*s,r=i*t;return .001-(i-n)/nZ(e,s)*Math.exp(-r)},o=e=>{let i=e*s*t,o=Math.pow(s,2)*Math.pow(e,2)*t,a=Math.exp(-i),l=nZ(Math.pow(e,2),s);return(i*n+n-o)*a*(-r(e)+.001>0?-1:1)/l}):(r=e=>-.001+Math.exp(-e*t)*((e-n)*t+1),o=e=>t*t*(n-e)*Math.exp(-e*t));let a=function(t,e,n){let i=n;for(let n=1;n<12;n++)i-=t(i)/e(i);return i}(r,o,5/t);if(t=tK(t),isNaN(a))return{stiffness:nq.stiffness,damping:nq.damping,duration:t};{let e=Math.pow(a,2)*i;return{stiffness:e,damping:2*s*Math.sqrt(i*e),duration:t}}}({...t,velocity:0});(e={...e,...n,mass:nq.mass}).isResolvedFromDuration=!0}return e}({...u,velocity:-((u.velocity||0)/1e3)}),b=w||0,T=v/(2*Math.sqrt(m*g)),S=f-d,P=Math.sqrt(m/g)/1e3,M=5>Math.abs(S);if(h||(h=M?nq.restSpeed.granular:nq.restSpeed.default),c||(c=M?nq.restDelta.granular:nq.restDelta.default),T<1)r=nZ(P,T),o=(b+T*P*S)/r,n=t=>f-Math.exp(-T*P*t)*(o*Math.sin(r*t)+S*Math.cos(r*t)),s=T*P*o+S*r,a=T*P*S-o*r,i=t=>Math.exp(-T*P*t)*(s*Math.sin(r*t)+a*Math.cos(r*t));else if(1===T){n=t=>f-Math.exp(-P*t)*(S+(b+P*S)*t);let t=b+P*S;i=e=>Math.exp(-P*e)*(P*t*e-b)}else{let t=P*Math.sqrt(T*T-1);n=e=>{let n=Math.exp(-T*P*e),i=Math.min(t*e,300);return f-n*((b+T*P*S)*Math.sinh(i)+t*S*Math.cosh(i))/t};let e=(b+T*P*S)/t,r=T*P*e-S*t,o=T*P*S-e*t;i=e=>{let n=Math.exp(-T*P*e),i=Math.min(t*e,300);return n*(r*Math.sinh(i)+o*Math.cosh(i))}}let E={calculatedDuration:x&&y||null,velocity:t=>tK(i(t)),next:t=>{if(!x&&T<1){let e=Math.exp(-T*P*t),n=Math.sin(r*t),i=Math.cos(r*t),l=f-e*(o*n+S*i);
1return p.done=Math.abs(tK(e*(s*n+a*i)))<=h&&Math.abs(f-l)<=c,p.value=p.done?f:l,p}let e=n(t);return x?p.done=t>=y:p.done=Math.abs(tK(i(t)))<=h&&Math.abs(f-e)<=c,p.value=p.done?f:e,p},toString:()=>{let t=Math.min(nG(E),2e4),e=t6(e=>E.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return E}function n2(t,e,n){var i,r;let o=Math.max(e-5,0);return i=n-t(o),(r=e-o)?1e3/r*i:0}function n5({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,d,f=t[0],p={done:!1,value:f},m=n*e,v=f+m,g=void 0===s?v:s(v);g!==v&&(m=g-f);let y=t=>-m*Math.exp(-t/i),w=t=>g+y(t),x=t=>{let e=y(t),n=w(t);p.done=Math.abs(e)<=u,p.value=p.done?g:n},b=t=>{let e;if(e=p.value,void 0!==a&&e<a||void 0!==l&&e>l){var n;c=t,d=n1({keyframes:[p.value,(n=p.value,void 0===a?l:void 0===l||Math.abs(a-n)<Math.abs(l-n)?a:l)],velocity:n2(w,t,p.value),damping:r,stiffness:o,restDelta:u,restSpeed:h})}};return b(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,x(t),b(t)),void 0!==c&&t>=c)?d.next(t-c):(e||x(t),p)}}}n1.applyToOptions=t=>{let e=function(t,e=100,n){let i=n({...t,keyframes:[0,e]}),r=Math.min(nG(i),2e4);return{type:"keyframes",ease:t=>i.next(r*t).value/e,duration:r/1e3}}(t,100,n1);return t.ease=e.ease,t.duration=tK(e.duration),t.type="keyframes",t};let n3=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function n4(t,e,n,i){return t===e&&n===i?tP:r=>0===r||1===r?r:n3(function(t,e,n,i,r){let o,s,a=0;do(o=n3(s=e+(n-e)/2,i,r)-t)>0?n=s:e=s;while(Math.abs(o)>1e-7&&++a<12);return s}(r,0,1,t,n),e,i)}let n6=n4(.42,0,1,1),n8=n4(0,0,.58,1),n7=n4(.42,0,.58,1),n9=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,it=t=>e=>1-t(1-e),ie=n4(.33,1.53,.69,.99),ii=it(ie),ir=n9(ii),io=t=>t>=1?1:(t*=2)<1?.5*ii(t):.5*(2-Math.pow(2,-10*(t-1))),is=t=>1-Math.sin(Math.acos(t)),ia=it(is),il=n9(is),iu={linear:tP,easeIn:n6,easeInOut:n7,easeOut:n8,circIn:is,circInOut:il,circOut:ia,backIn:ii,backInOut:ir,backOut:ie,anticipate:io},ih=t=>{if(t3(t)){te(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,n,i,r]=t;return n4(e,n,i,r)}return"string"==typeof t?(te(void 0!==iu[t],`Invalid easing type '${t}'`,"invalid-easing-type"),iu[t]):t},ic=(t,e,n)=>{let i=e-t;return 0===i?1:(n-t)/i};function id({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){var r;let o=Array.isArray(i)&&"number"!=typeof i[0]?i.map(ih):ih(i),s={done:!1,value:e[0]},a=function(t,e,{clamp:n=!0,ease:i,mixer:r}={}){let o=t.length;if(te(o===e.length,"Both input and output ranges must be the same length","range-length"),1===o)return()=>e[0];if(2===o&&e[0]===e[1])return()=>e[1];let s=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,n){let i=[],r=n||tM.mix||nY,o=t.length-1;for(let n=0;n<o;n++){let o=r(t[n],t[n+1]);e&&(o=nL(Array.isArray(e)?e[n]||tP:e,o)),i.push(o)}return i}(e,i,r),u=a.length,h=n=>{if(s&&n<t[0])return e[0];let i=0;if(u>1)for(;i<t.length-2&&!(n<t[i+1]);i++);let r=ic(t[i],t[i+1],n);return a[i](r)};return n?e=>h(l(t[0],t[o-1],e)):h}((r=n&&n.length===e.length?n:function(t){let e=[0];return!function(t,e){let n=t[t.length-1];for(let i=1;i<=e;i++){let r=ic(0,e,i);t.push(eF(n,1,r))}}(e,t.length-1),e}(e),r.map(e=>e*t)),e,{ease:Array.isArray(o)?o:e.map(()=>o||n7).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=a(e),s.done=e>=t,s)}}let ip={decay:n5,inertia:n5,tween:id,keyframes:id,spring:n1};function im(t){"string"==typeof t.type&&(t.type=ip[t.type])}let iv=t=>t/100;class ig extends t2{constructor(t){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:t}=this.options;t&&t.updatedAt!==er.now()&&this.tick(er.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},t5.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;im(t);let{type:e=id,repeat:n=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=t,{keyframes:s}=t,a=e||id;a!==id&&"number"!=typeof s[0]&&(this.mixKeyframes=nL(iv,nY(s[0],s[1])),s=[0,100]);let l=a({...t,keyframes:s}
1);"mirror"===r&&(this.mirroredGenerator=a({...t,keyframes:[...s].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=nG(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let n,{generator:i,totalDuration:r,mixKeyframes:o,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:u}=this;if(null===this.startTime)return i.next(0);let{delay:h=0,keyframes:c,repeat:d,repeatType:f,repeatDelay:p,type:m,onUpdate:v,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let y=this.currentTime-h*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?y<0:y>r;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let x=this.currentTime,b=i;if(d){let t=Math.min(this.currentTime,r)/a,e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,(e=Math.min(e,d+1))%2&&("reverse"===f?(n=1-n,p&&(n-=p/a)):"mirror"===f&&(b=s)),x=l(0,1,n)*a}w?(this.delayState.value=c[0],n=this.delayState):n=b.next(x),o&&!w&&(n.value=o(n.value));let{done:T}=n;w||null===u||(T=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&T);return S&&m!==n5&&(n.value=t1(c,this.options,g,this.speed)),v&&v(n.value),S&&this.finish(),n}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return this.currentTime/1e3}set time(t){t=tK(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let e=this.generator.next(t).value;return n2(t=>this.generator.next(t).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(er.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=nX,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=e??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(er.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,t5.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}let iy={anticipate:io,backInOut:ir,circInOut:il};class iw extends et{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in iy&&(t.ease=iy[t.ease])}(t),im(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:n,onComplete:i,element:r,...o}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let s=new ig({...o,autoplay:!1}),a=Math.max(10,er.now()-this.startTime),u=l(0,10,a-10),h=s.sample(a).value,{name:c}=this.options;r&&c&&tG(r,c,h),e.setWithVelocity(s.sample(Math.max(0,a-u)).value,h,u),s.stop()}}let ix=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(j.test(t)||"0"===t)&&!t.startsWith("url("));function ib(t){t.duration=0,t.type="keyframes"}let iT=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,iS=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),iP=tq(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class iM extends t2{constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:
1o="loop",keyframes:s,name:a,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=er.now();let c={autoplay:t,delay:e,type:n,repeat:i,repeatDelay:r,repeatType:o,name:a,motionValue:l,element:u,...h},d=u?.KeyframeResolver||tO;this.keyframeResolver=new d(s,(t,e,n)=>this.onKeyframesResolved(t,e,c,!n),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,n,i){let r;this.keyframeResolver=void 0;let{name:o,type:s,velocity:a,delay:l,isHandoff:u,onUpdate:h}=n;this.resolvedAt=er.now();let c=!0;!function(t,e,n,i){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let o=t[t.length-1],s=ix(r,e),a=ix(o,e);return tt(s===a,`You are trying to animate ${e} from "${r}" to "${o}". "${s?o:r}" is not an animatable value.`,"value-not-animatable"),!!s&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}(t)||("spring"===n||t9(n))&&i)}(t,o,s,a)&&(c=!1,(tM.instantAnimations||!l)&&h?.(t1(t,n,e)),t[0]=t[t.length-1],ib(n),n.repeat=0);let d={startTime:i?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...n,keyframes:t},f=c&&!u&&function(t){let{motionValue:e,name:n,repeatDelay:i,repeatType:r,damping:o,type:s,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=e.owner.getProps();return iP()&&n&&(ee.has(n)||iS.has(n)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&iT.test(t[e]))return!0;return!1}(a))&&("transform"!==n||!u)&&!l&&!i&&"mirror"!==r&&0!==o&&"inertia"!==s}(d),p=d.motionValue?.owner?.current;if(f)try{r=new iw({...d,element:p})}catch{r=new ig(d)}else r=new ig(d);r.finished.then(()=>{this.notifyFinished()}).catch(tP),this.pendingTimeline&&(this.stopTimeline=r.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=r}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tN=!0,tF(),tI(),tN=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let iE={type:"spring",stiffness:500,damping:25,restSpeed:10},i_={type:"keyframes",duration:.8},iC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},iA=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),iR=(t,e,n,i={},r,o)=>s=>{let l=nR(i,t)||{},u=l.delay||i.delay||0,{elapsed:h=0}=i;h-=tK(u);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-h,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{s(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:o?void 0:r};!function(t){for(let e in t)if(!iA.has(e))return!0;return!1}(l)&&Object.assign(c,((t,{keyframes:e})=>e.length>2?i_:a.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:iE:iC)(t,c)),c.duration&&(c.duration=tK(c.duration)),c.repeatDelay&&(c.repeatDelay=tK(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(ib(c),0===c.delay&&(d=!0)),(tM.instantAnimations||tM.skipAnimations||r?.shouldSkipAnimations)&&(d=!0,ib(c),c.delay=0),c.allowFlatten=!l.type&&!l.ease,d&&!o&&void 0!==e.get()){let t=t1(c.keyframes,l);if(void 0!==t)return void tA.update(()=>{c.onUpdate(t),c.onComplete()})}return l.isSync?new ig(c):new iM(c)};function ik(t,e,{delay:n=0,transitionOverride:i,type:r}={}){let{transition:o,transitionEnd:s,...a}=e,l=t.getDefaultTransition();o=o?nA(o,l):l;let u=o?.reduceMotion;i&&(o=i);let h=[],c=r&&t.animationState&&t.animationState.getState()[r];for(let e in a){let i=t.getValue(e,t.latestValues[e]??null),r=a[e];if(void 0===r||c&&function({protectedKeys:t,needsAnimating:e},n){let i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}(c,e))continue;let s={delay:n,...nR(o||{},e)},l=i.get();if(void 0!==l&&!i.isAnimating()&&!Array.isArray(r)&&r===l&&!s.velocity){tA.update(()=>i.set(r));continue}let d=!1;if(window.MotionHandoffAnimation){let n=t.props[nT];if(n){let t=window.MotionHandoffAnimation(n,e,tA);null!==t&&(s.startTime=t,d=!0)}}nD(t,e);let f=u??t.shouldReduceMotion;i.start(iR(e,i,r,f&&q.has(e)?{type:!1}:s,t,d));let p=i.animation;p&&h.push(p)}if(s){let e=()=>tA.update(()=>{s&&function(t,e){let{transitionEnd:n={},transition:i={},...r}=nC(t,e)||{};for(let e in r={...r,...n}){var o;let n=nk(o=r[e])?o[o.length-1]||0:o;t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,ea(n))}}(t,s)});h.length?Promise.all(h).then(e):e()}return h}function iD(t,e,n,i=0,r=1){let o=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),s=t.size,a=(s-1)*i;return"function"==typeof n?n(o,s):1===r?o*i:a-o*i}function iV(t,e,n={}){let i=nC(t,e,"exit"===n.type?t.presenceContext?.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=i||{};
1n.transitionOverride&&(r=n.transitionOverride);let o=i?()=>Promise.all(ik(t,i,n)):()=>Promise.resolve(),s=t.variantChildren&&t.variantChildren.size?(i=0)=>{let{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=r;return function(t,e,n=0,i=0,r=0,o=1,s){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(iV(l,e,{...s,delay:n+("function"==typeof i?0:i)+iD(t.variantChildren,l,i,r,o)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,i,o,s,a,n)}:()=>Promise.resolve(),{when:a}=r;if(!a)return Promise.all([o(),s(n.delay)]);{let[t,e]="beforeChildren"===a?[o,s]:[s,o];return t().then(()=>e())}}let iL=ef.length;function ij(t,e){if(!Array.isArray(e))return!1;let n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}let iN=[...ed].reverse(),iI=ed.length;function iF(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function iO(){return{animate:iF(!0),whileInView:iF(),whileHover:iF(),whileTap:iF(),whileDrag:iF(),whileFocus:iF(),exit:iF()}}class iB extends n_{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:n})=>(function(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e))i=Promise.all(e.map(e=>iV(t,e,n)));else if("string"==typeof e)i=iV(t,e,n);else{let r="function"==typeof e?nC(t,e,n.custom):e;i=Promise.all(ik(t,r,n))}return i.then(()=>{t.notify("AnimationComplete",e)})})(t,e,n))),n=iO(),i=!0,r=!1,o=e=>(n,i)=>{let r=nC(t,i,"exit"===e?t.presenceContext?.custom:void 0);if(r){let{transition:t,transitionEnd:e,...i}=r;n={...n,...i,...e}}return n};function s(s){let{props:a}=t,l=function t(e){if(!e)return;if(!e.isControllingVariants){let n=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(n.initial=e.props.initial),n}let n={};for(let t=0;t<iL;t++){let i=ef[t],r=e.props[i];(ec(r)||!1===r)&&(n[i]=r)}return n}(t.parent)||{},u=[],h=new Set,c={},d=1/0;for(let e=0;e<iI;e++){var f,p;let m=iN[e],v=n[m],g=void 0!==a[m]?a[m]:l[m],y=ec(g),w=m===s?v.isActive:null;!1===w&&(d=e);let x=g===l[m]&&g!==a[m]&&y;if(x&&(i||r)&&t.manuallyAnimateOnMount&&(x=!1),v.protectedKeys={...c},!v.isActive&&null===w||!g&&!v.prevProp||eh(g)||"boolean"==typeof g)continue;if("exit"===m&&v.isActive&&!0!==w){v.prevResolvedValues&&(c={...c,...v.prevResolvedValues});continue}let b=(f=v.prevProp,"string"==typeof(p=g)?p!==f:!!Array.isArray(p)&&!ij(p,f)),T=b||m===s&&v.isActive&&!x&&y||e>d&&y,S=!1,P=Array.isArray(g)?g:[g],M=P.reduce(o(m),{});!1===w&&(M={});let{prevResolvedValues:E={}}=v,_={...E,...M},C=e=>{T=!0,h.has(e)&&(S=!0,h.delete(e)),v.needsAnimating[e]=!0;let n=t.getValue(e);n&&(n.liveStyle=!1)};for(let t in _){let e=M[t],n=E[t];if(!c.hasOwnProperty(t))(nk(e)&&nk(n)?ij(e,n):e===n)?void 0!==e&&h.has(t)?C(t):v.protectedKeys[t]=!0:null!=e?C(t):h.add(t)}v.prevProp=g,v.prevResolvedValues=M,v.isActive&&(c={...c,...M}),(i||r)&&t.blockInitialAnimation&&(T=!1);let A=x&&b,R=!A||S;T&&R&&u.push(...P.map(e=>{let n={type:m};if("string"==typeof e&&(i||r)&&!A&&t.manuallyAnimateOnMount&&t.parent){let{parent:i}=t,r=nC(i,e);if(i.enteringChildren&&r){let{delayChildren:e}=r.transition||{};n.delay=iD(i.enteringChildren,t,e)}}return{animation:e,options:n}}))}if(h.size){let e={};if("boolean"!=typeof a.initial){let n=nC(t,Array.isArray(a.initial)?a.initial[0]:a.initial);n&&n.transition&&(e.transition=n.transition)}h.forEach(n=>{let i=t.getBaseTarget(n),r=t.getValue(n);r&&(r.liveStyle=!0),e[n]=i??null}),u.push({animation:e})}let m=!!u.length;return i&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(m=!1),i=!1,r=!1,m?e(u):Promise.resolve()}return{animateChanges:s,setActive:function(e,i){if(n[e].isActive===i)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,i)),n[e].isActive=i;let r=s(e);for(let t in n)n[t].protectedKeys={};return r},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=iO(),r=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();eh(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let iz=0;class iW extends n_{constructor(){super(...arguments),this.id=iz++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;if(t&&!1===n){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t){let n=nC(this.node,t,e);if(n){let{transition:t,transitionEnd:e,...i}=n;for(let t in i)this.node.getValue(t)?.jump(i[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then(()=>
1{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}let iU={x:!1,y:!1};function iH(t){return[t("x"),t("y")]}function iK(t){return t.max-t.min}function i$(t,e,n,i=.5){t.origin=i,t.originPoint=eF(e.min,e.max,t.origin),t.scale=iK(n)/iK(e),t.translate=eF(n.min,n.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function iY(t,e,n,i){i$(t.x,e.x,n.x,i?i.originX:void 0),i$(t.y,e.y,n.y,i?i.originY:void 0)}function iX(t,e,n,i=0){t.min=(i?eF(n.min,n.max,i):n.min)+e.min,t.max=t.min+iK(e)}function iG(t,e,n,i=0){let r=i?eF(n.min,n.max,i):n.min;t.min=e.min-r,t.max=t.min+iK(e)}function iq(t,e,n,i){iG(t.x,e.x,n.x,i?.x),iG(t.y,e.y,n.y,i?.y)}let iZ=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),iQ=new Set(["INPUT","SELECT","TEXTAREA"]);function iJ(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}var i0=n(73142);function i1(t){return(0,i0.G)(t)&&"ownerSVGElement"in t}var i2=n(38561);let i5=new WeakMap,i3=(t,e,n)=>(i,r)=>r&&r[0]?r[0][t+"Size"]:i1(i)&&"getBBox"in i?i.getBBox()[e]:i[n],i4=i3("inline","width","offsetWidth"),i6=i3("block","height","offsetHeight");function i8({target:t,borderBoxSize:e}){i5.get(t)?.forEach(n=>{n(t,{get width(){return i4(t,e)},get height(){return i6(t,e)}})})}function i7(t){t.forEach(i8)}let i9=new Set;function rt(t,e){return"function"==typeof t?(i9.add(t),o||(o=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};i9.forEach(e=>e(t))},window.addEventListener("resize",o)),()=>{i9.delete(t),i9.size||"function"!=typeof o||(window.removeEventListener("resize",o),o=void 0)}):function(t,e){r||"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(i7));let n=(0,i2.K)(t);return n.forEach(t=>{let n=i5.get(t);n||(n=new Set,i5.set(t,n)),n.add(e),r?.observe(t)}),()=>{n.forEach(t=>{let n=i5.get(t);n?.delete(e),n?.size||r?.unobserve(t)})}}(t,e)}let re=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function rn(t){return{point:{x:t.pageX,y:t.pageY}}}function ri(t,e,n,i){return iJ(t,e,t=>re(t)&&n(t,rn(t)),i)}let rr=({current:t})=>t?t.ownerDocument.defaultView:null,ro=(t,e)=>Math.abs(t-e),rs=new Set(["auto","scroll"]);class ra{constructor(t,e,{transformPagePoint:n,contextWindow:i=window,dragSnapToOrigin:r=!1,distanceThreshold:o=3,element:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=rl(this.lastRawMoveEventInfo,this.transformPagePoint));let t=rh(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){return Math.sqrt(ro(t.x,e.x)**2+ro(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=this.distanceThreshold;if(!e&&!n)return;let{point:i}=t,{timestamp:r}=tk;this.history.push({...i,timestamp:r});let{onStart:o,onMove:s}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=rl(e,this.transformPagePoint),tA.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:n,onSessionEnd:i,resumeAnimation:r}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=rh("pointercancel"===t.type?this.lastMoveEventInfo:rl(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),i&&i(t,o)},!re(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=i||window;let a=rl(rn(t),this.transformPagePoint),{point:l}=a,{timestamp:u}=tk;this.history=[{...l,timestamp:u}];let{onSessionStart:h}=e;h&&h(t,rh(a,this.history)),this.removeListeners=nL(ri(this.contextWindow,"pointermove",this.handlePointerMove),ri(this.contextWindow,"pointerup",this.handlePointerUp),ri(this.contextWindow,"pointercancel",this.handlePointerUp)),s&&this.startScrollTracking(s)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(rs.has(t.overflowX)||rs.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let n=t===window,i=n?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},r={x:i.x-e.x,y:i.y-e.y};(0!==r.x||0!==r.y)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(t,i),tA.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tR(this.updatePoint)}}function rl(t,e){return e?{point:e(t.point)}:t}function ru(t,e){return{x:t.x-e.x,y:t.y-e.y}}function rh({point:t},e){return{point:t,delta:ru(t,rc(e)),offset:ru(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null,r=rc(t);for(;n>=0&&(i=t[n],!(r.timestamp-i.timestamp>tK(.1)));)n--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&r.timestamp-i.timestamp>2*tK(e)&&(i=t[1]);let o=(r.timestamp-i.timestamp)/1e3;if(0===o)return{x:0,y:0};let s={x:(r.x-i.x)/o,y:(r.y-i.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(e,.1)}}function rc(t){return t[t.length-1]}function rd(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function rf(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function rp(t,e,n){return{min:rm(t,e),max:rm(t,n)}}function rm(t,e){return"number"==typeof t?t:t[e]||0}
1let rv=new WeakMap;class rg{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=X(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:n}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let r=t=>{e&&this.snapToCursor(rn(t).point),this.stopAnimation()},o=(t,e)=>{let{drag:n,dragPropagation:i,onDragStart:r}=this.getProps();if(n&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(iU[t])return null;else return iU[t]=!0,()=>{iU[t]=!1};return iU.x||iU.y?null:(iU.x=iU.y=!0,()=>{iU.x=iU.y=!1})}(n),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),iH(t=>{let e=this.getAxisMotionValue(t).get()||0;if(T.test(e)){let{projection:n}=this.visualElement;if(n&&n.layout){let i=n.layout.layoutBox[t];i&&(e=iK(i)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&tA.update(()=>r(t,e),!1,!0),nD(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},s=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:n,dragDirectionLock:i,onDirectionLock:r,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:s}=e;if(i&&null===this.currentDirection){this.currentDirection=function(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}(s),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,s),this.updateAxis("y",e.point,s),this.visualElement.render(),o&&tA.update(()=>o(t,e),!1,!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new ra(t,{onSessionStart:r,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:n,contextWindow:rr(this.visualElement),element:this.visualElement.current})}stop(t,e){let n=t||this.latestPointerEvent,i=e||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!i||!n)return;let{velocity:o}=i;this.startAnimation(o);let{onDragEnd:s}=this.getProps();s&&tA.postRender(()=>s(n,i))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,n){let{drag:i}=this.getProps();if(!n||!rw(t,i,this.currentDirection))return;let r=this.getAxisMotionValue(t),o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?eF(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?eF(n,t,i.max):Math.min(t,n)),t}(o,this.constraints[t],this.elastic[t])),r.set(o)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&nP(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=function(t,{top:e,left:n,bottom:i,right:r}){return{x:rd(t.x,n,r),y:rd(t.y,e,i)}}(n.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:rp(t,"left","right"),y:rp(t,"top","bottom")}}(e),i!==this.constraints&&!nP(t)&&n&&this.constraints&&!this.hasMutatedConstraints&&iH(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!nP(e))return!1;let i=e.current;te(null!==i,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let o=function(t,e,n){let i=e2(t,n),{scroll:r}=e;return r&&(eQ(i.x,r.offset.x),eQ(i.y,r.offset.y)),i}(i,r.root,this.visualElement.getTransformPagePoint()),s=(t=r.layout.layoutBox,{x:rf(t.x,o.x),y:rf(t.y,o.y)});if(n){let t=n(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(s));this.hasMutatedConstraints=!!t,t&&(s=eH(t))}return s}startAnimation(t){let{drag:e,dragMomentum:n,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{};return Promise.all(iH(s=>{if(!rw(s,e,this.currentDirection))return;let l=a&&a[s]||{};(!0===o||o===s)&&(l={min:0,max:0});let u={type:"inertia",velocity:n?t[s]:0,bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(t,e){let n=this.getAxisMotionValue(t);return nD(this.visualElement,t),n.start(iR(t,n,0,e,this.visualElement,!1))}stopAnimation(){iH(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps();return n[e]||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){iH(e=>{let{drag:n}=this.getProps();if(!rw(e,n,this.currentDirection))return;let{projection:i}=this.visualElement,r=this.getAxisMotionValue(e);if(i&&i.layout){let{min:n,max:o}=i.layout.layoutBox[e],s=r.get()||0;r.set(t[e]-eF(n,o,.5)+s)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!nP(e)||!n||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};iH(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let n=e.get();i[t]=function(t,e){let n=.5,i=iK(t),r=iK(e);return r>i?n=ic(e.min,e.max-i,t.min):i>r&&(n=ic(t.min,t.max-r,e.min)),l(0,1,n)}({min:n,max:n},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),iH(e=>{if(!rw(e,t,null))return;let n=this.getAxisMotionValue(e),{min:r,max:o}=this.constraints[e];n.set(eF(r,o,i[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;rv.set(this.visualElement,this);let e=this.visualElement.current,n=ri(e,"pointerdown",t=>{let{drag:n,dragListener:i=!0}
1=this.getProps(),r=t.target,o=r!==e&&(iQ.has(r.tagName)||!0===r.isContentEditable);n&&i&&!o&&this.start(t)}),i=()=>{let{dragConstraints:n}=this.getProps();nP(n)&&n.current&&(this.constraints=this.resolveRefConstraints(),t||(t=function(t,e,n){let i=rt(t,ry(n)),r=rt(e,ry(n));return()=>{i(),r()}}(e,n.current,()=>this.scalePositionWithinConstraints())))},{projection:r}=this.visualElement,o=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),tA.read(i);let s=iJ(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(iH(e=>{let n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=.35,dragMomentum:s=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:s}}}function ry(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function rw(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}class rx extends n_{constructor(t){super(t),this.removeGroupControls=tP,this.removeListeners=tP,this.controls=new rg(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tP}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}let rb=t=>(e,n)=>{t&&tA.update(()=>t(e,n),!1,!0)};class rT extends n_{constructor(){super(...arguments),this.removePointerDownListener=tP}onPointerDown(t){this.session=new ra(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rr(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:rb(t),onStart:rb(e),onMove:rb(n),onEnd:(t,e)=>{delete this.session,i&&tA.postRender(()=>i(t,e))}}}mount(){this.removePointerDownListener=ri(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var rS=n(67434),rP=n(62774),rM=n(78247),rE=n(15104),r_=n(80542);let rC={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var rA=n(75601),rR=!1,rk=function(t){function e(){return(0,rP._)(this,e),(0,rS._)(this,e,arguments)}return(0,rE._)(e,t),(0,rM._)(e,[{key:"componentDidMount",value:function(){var t=this,e=this.props,n=e.visualElement,i=e.layoutGroup,r=e.switchLayoutGroup,o=e.layoutId,s=n.projection;s&&(i.group&&i.group.add(s),r&&r.register&&o&&r.register(s),rR&&s.root.didUpdate(),s.addEventListener("animationComplete",function(){t.safeToRemove()}),s.setOptions((0,e7._)((0,e8._)({},s.options),{layoutDependency:this.props.layoutDependency,onExitComplete:function(){return t.safeToRemove()}}))),rC.hasEverUpdated=!0}},{key:"getSnapshotBeforeUpdate",value:function(t){var e=this,n=this.props,i=n.layoutDependency,r=n.visualElement,o=n.drag,s=n.isPresent,a=r.projection;return a&&(a.isPresent=s,t.layoutDependency!==i&&a.setOptions((0,e7._)((0,e8._)({},a.options),{layoutDependency:i})),rR=!0,o||t.layoutDependency!==i||void 0===i||t.isPresent!==s?a.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?a.promote():a.relegate()||tA.postRender(function(){var t=a.getStack();t&&t.members.length||e.safeToRemove()}))),null}},{key:"componentDidUpdate",value:function(){var t=this,e=this.props,n=e.visualElement,i=e.layoutAnchor,r=n.projection;r&&(r.options.layoutAnchor=i,r.root.didUpdate(),en.postRender(function(){!r.currentAnimation&&r.isLead()&&t.safeToRemove()}))}},{key:"componentWillUnmount",value:function(){var t=this.props,e=t.visualElement,n=t.layoutGroup,i=t.switchLayoutGroup,r=e.projection;rR=!0,r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),i&&i.deregister&&i.deregister(r))}},{key:"safeToRemove",value:function(){var t=this.props.safeToRemove;t&&t()}},{key:"render",value:function(){return null}}]),e}(e3.Component);function rD(t){var e=(0,r_._)((0,rA.xQ)(),2),n=e[0],i=e[1],r=(0,e3.useContext)(nt.L);return(0,e9.jsx)(rk,(0,e7._)((0,e8._)({},t),{layoutGroup:r,switchLayoutGroup:(0,e3.useContext)(nS),isPresent:n,safeToRemove:i}))}let rV=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],rL=rV.length,rj=t=>"string"==typeof t?parseFloat(t):t,rN=t=>"number"==typeof t||S.test(t);function rI(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let rF=rB(0,.5,ia),rO=rB(.5,.95,tP);function rB(t,e,n){return i=>i<t?0:i>e?1:n(ic(t,e,i))}function rz(t,e){t.min=e.min,t.max=e.max}function rW(t,e){rz(t.x,e.x),rz(t.y,e.y)}function rU(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function rH(t,e,n,i,r){return t-=e,t=i+1/n*(t-i),void 0!==r&&(t=i+1/r*(t-i)),t}function rK(t,e,[n,i,r],o,s){!function(t,e=0,n=1,i=.5,r,o=t,s=t){if(T.test(e)&&(e=parseFloat(e),e=eF(s.min,s.max,e/100)-s.min),"number"!=typeof e)return;let a=eF(o.min,o.max,i);t===o&&(a-=e),t.min=rH(t.min,e,n,a,r),t.max=rH(t.max,e,n,a,r)}(t,e[n],e[i],e[r],e.scale,o,s)}let r$=["x","scaleX","originX"],rY=["y","scaleY","originY"];function rX(t,e,n,i){rK(t.x,e,r$,n?n.x:void 0,i?i.x:void 0),rK(t.y,e,rY,n?n.y:void 0,i?i.y:void 0)}function rG(t){return 0===t.translate&&1===t.scale}function rq(t){return rG(t.x)&&rG(t.y)}function rZ(t,e){return t.min===e.min&&t.max===e.max}function rQ(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function rJ(t,e){return rQ(t.x,e.x)&&rQ(t.y,e.y)}function r0(t){return iK(t.x)/iK(t.y)}function r1(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class r2{constructor(){this.members=[]}add(t){t$(this.members,t);for(let e=this.members.length-1;e>=0;e--){let n=this.members[e];if(n===t||n===this.lead||n===this.prevLead)continue;let i=n.instance;i&&!1!==i.isConnected||n.snapshot||(tY(this.members,n),n.unmount())}t.scheduleRender()}remove(t){if(tY(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}
1}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.updateSnapshot(),t.scheduleRender();let{layoutDependency:i}=n.options,{layoutDependency:r}=t.options;(void 0===i||i!==r)&&(t.resumeFrom=n,e&&(n.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let r5=(t,e)=>t.depth-e.depth;class r3{constructor(){this.children=[],this.isDirty=!1}add(t){t$(this.children,t),this.isDirty=!0}remove(t){tY(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(r5),this.isDirty=!1,this.children.forEach(t)}}let r4={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},r6=["","X","Y","Z"],r8=0;function r7(t,e,n,i){let{latestValues:r}=e;r[t]&&(n[t]=r[t],e.setStaticValue(t,0),i&&(i[t]=0))}function r9({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(t={},n=e?.()){this.id=r8++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,t_.value&&(r4.nodes=r4.calculatedTargetDeltas=r4.calculatedProjections=0),this.nodes.forEach(on),this.nodes.forEach(oc),this.nodes.forEach(od),this.nodes.forEach(oi),t_.addProjectionMetrics&&t_.addProjectionMetrics(r4)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new r3)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tX),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=i1(e)&&!(i1(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:n,layout:i,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(i||n)&&(this.isLayoutDirty=!0),t){let n,i=0,r=()=>this.root.updateBlockedByResize=!1;tA.read(()=>{i=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==i&&(i=t,this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){let n=er.now(),i=({timestamp:e})=>{let r=e-n;r>=250&&(tR(i),t(r-250))};return tA.setup(i,!0),()=>tR(i)}(r,250),rC.hasAnimatedSinceResize&&(rC.hasAnimatedSinceResize=!1,this.nodes.forEach(oh)))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&r&&(n||i)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||r.getDefaultTransition()||oy,{onLayoutAnimationStart:s,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!rJ(this.targetLayout,i),u=!e&&n;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...nR(o,"layout"),onPlay:s,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||oh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tR(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
1h(of),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:n}=e.options;if(!n)return;let i=n.props[nT];if(window.MotionHasOptimisedAnimation(i,"transform")){let{layout:t,layoutId:n}=e.options;window.MotionCancelOptimisedAnimation(i,"transform",tA,!(t||n))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;let i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(os),this.nodes.forEach(oo);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(oa);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ol),this.nodes.forEach(ou),this.nodes.forEach(ot),this.nodes.forEach(oe)):this.nodes.forEach(oa),this.clearAllSnapshots();let t=er.now();tk.delta=l(0,1e3/60,t-tk.timestamp),tk.timestamp=t,tk.isProcessing=!0,tD.update.process(tk),tD.preRender.process(tk),tD.render.process(tk),tk.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,en.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(or),this.sharedNodes.forEach(op)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tA.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tA.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||iK(this.snapshot.measuredBox.x)||iK(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=X()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=i(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!rq(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,o=i!==this.prevTransformTemplateValue;t&&this.instance&&(e||eY(this.latestValues)||o)&&(r(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let n=this.measurePageBox(),i=this.removeElementScroll(n);return t&&(i=this.removeTransform(i)),ob((e=i).x),ob(e.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:i,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return X();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(oS))){let{scroll:t}=this.root;t&&(eQ(e.x,t.offset.x),eQ(e.y,t.offset.y))}return e}removeElementScroll(t){let e=X();if(rW(e,t),this.scroll?.wasRoot)return e;for(let n=0;n<this.path.length;n++){let i=this.path[n],{scroll:r,options:o}=i;i!==this.root&&r&&o.layoutScroll&&(r.wasRoot&&rW(e,t),eQ(e.x,r.offset.x),eQ(e.y,r.offset.y))}return e}applyTransform(t,e=!1,n){let i=n||X();rW(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(eQ(i.x,-n.scroll.offset.x),eQ(i.y,-n.scroll.offset.y)),eY(n.latestValues)&&e1(i,n.latestValues,n.layout?.layoutBox)}return eY(this.latestValues)&&e1(i,this.latestValues,this.layout?.layoutBox),i}removeTransform(t){let e=X();rW(e,t);for(let t=0;t<this.path.length;t++){let n,i=this.path[t];eY(i.latestValues)&&(i.instance&&(e$(i.latestValues)&&i.updateSnapshot(),rW(n=X(),i.measurePageBox())),rX(e,i.latestValues,i.snapshot?.layoutBox,n))}return eY(this.latestValues)&&rX(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tk.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==e;if(!(t||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:i,layoutId:r}=this.options;if(!this.layout||!(i||r))return;this.resolvedRelativeTargetAt=tk.timestamp;let o=this.getClosestProjectingParent();if(o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=X(),this.targetWithTransforms=X()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var s,a,l,u;this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,l=this.relativeParent.target,u=this.options.layoutAnchor||void 0,iX(s.x,a.x,l.x,u?.x),iX(s.y,a.y,l.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):rW(this.target,this.layout.layoutBox),eZ(this.target,this.targetDelta)):rW(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&o&&!!o.resumingFrom==!!this.resumingFrom&&!o.options.layoutScroll&&o.target&&1!==this.animationProgress?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0),t_.value&&r4.calculatedTargetDeltas++}}getClosestProjectingParent(){if(!(!this.parent||e$(this.parent.latestValues)||eX(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,n){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=X(),this.relativeTargetOrigin=X(),iq(this.relativeTargetOrigin,e,n,this.options.layoutAnchor||void 0),rW(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,n=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===tk.timestamp&&(n=!1),n)return;let{layout:i,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||r))return;rW(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,s=this.treeScale.y;!function(t,e,n,i=!1){let r,o,s=n.length;if(s){e.x=e.y=1;for(let a=0;a<s;a++){o=(r=n[a]).projectionDelta;let{visualElement:s}=r.options;(!s||!s.props.style||"contents"!==s.props.style.display)&&(i&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(eQ(t.x,-r.scroll.offset.x),eQ(t.y,-r.scroll.offset.y)),o&&(e.x*=o.x.scale,e.y*=o.y.scale,eZ(t,o)),i&&eY(r.latestValues)&&e1(t,r.latestValues,r.layout?.layoutBox))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=X());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rU(this.prevProjectionDelta.x,this.projectionDelta.x),rU(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),iY(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===o&&this.treeScale.y===s&&r1(this.projectionDelta.x,this.prevProjectionDelta.x)&&r1(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),t_.value&&r4.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=$(),this.projectionDelta=$(),this.projectionDeltaWithTransform=$()}setAnimationOrigin(t,e=!1){let n,i=this.snapshot,r=i?i.latestValues:{},o={...this.latestValues},s=$();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=X(),l=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(og));this.animationProgress=0,this.mixTargetDelta=e=>{let i=e/1e3;if(om(s.x,t.x,i),om(s.y,t.y,i),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,f,p,m,v;iq(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),f=this.relativeTarget,p=this.relativeTargetOrigin,m=a,v=i,ov(f.x,p.x,m.x,v),ov(f.y,p.y,m.y,v),n&&(u=this.relativeTarget,d=n,rZ(u.x,d.x)&&rZ(u.y,d.y))&&(this.isProjectionDirty=!1),n||(n=X()),rW(n,this.relativeTarget)}l&&(this.animationValues=o,function(t,e,n,i,r,o){r?(t.opacity=eF(0,n.opacity??1,rF(i)),t.opacityExit=eF(e.opacity??1,0,rO(i))):o&&(t.opacity=eF(e.opacity??1,n.opacity??1,i));for(let r=0;r<rL;r++){let o=rV[r],s=rI(e,o),a=rI(n,o);(void 0!==s||void 0!==a)&&(s||(s=0),a||(a=0),0===s||0===a||rN(s)===rN(a)?(t[o]=Math.max(eF(rj(s),rj(a),i),0),(T.test(a)||T.test(s))&&(t[o]+="%")):t[o]=a)}(e.rotate||n.rotate)&&(t.rotate=eF(e.rotate||0,n.rotate||0,i))}(o,r,this.latestValues,i,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(tR(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tA.update(()=>{rC.hasAnimatedSinceResize=!0,t5.layout++,this.motionValue||(this.motionValue=ea(0)),this.motionValue.jump(0,!1),this.currentAnimation=function(t,e,n){let i=G(t)?t:ea(t);return i.start(iR("",i,e,n)),i.animation}(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{t5.layout--},onComplete:()=>{t5.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:n,layout:i,latestValues:r}=t;
1if(e&&n&&i){if(this!==t&&this.layout&&i&&oT(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||X();let e=iK(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;let i=iK(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}rW(e,n),e1(e,r),iY(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new r2),this.sharedNodes.get(t).add(e);let n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){let i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:n}=t;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),!e)return;let i={};n.z&&r7("z",t,i,this.animationValues);for(let e=0;e<r6.length;e++)r7(`rotate${r6[e]}`,t,i,this.animationValues),r7(`skew${r6[e]}`,t,i,this.animationValues);for(let e in t.render(),i)t.setStaticValue(e,i[e]),this.animationValues&&(this.animationValues[e]=i[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=nd(e?.pointerEvents)||"",t.transform=n?n(this.latestValues,""):"none";return}let i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=nd(e?.pointerEvents)||""),this.hasProjected&&!eY(this.latestValues)&&(t.transform=n?n({},""):"none",this.hasProjected=!1);return}t.visibility="";let r=i.animationValues||i.latestValues;this.applyTransformsToTarget();let o=function(t,e,n){let i="",r=t.x.translate/e.x,o=t.y.translate/e.y,s=n?.z||0;if((r||o||s)&&(i=`translate3d(${r}px, ${o}px, ${s}px) `),(1!==e.x||1!==e.y)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:o,skewX:s,skewY:a}=n;t&&(i=`perspective(${t}px) ${i}`),e&&(i+=`rotate(${e}deg) `),r&&(i+=`rotateX(${r}deg) `),o&&(i+=`rotateY(${o}deg) `),s&&(i+=`skewX(${s}deg) `),a&&(i+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(i+=`scale(${a}, ${l})`),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);n&&(o=n(r,o)),t.transform=o;let{x:s,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*s.origin}% ${100*a.origin}% 0`,i.animationValues?t.opacity=i===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:t.opacity=i===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,eO){if(void 0===r[e])continue;let{correct:n,applyTo:s,isCSSVariable:a}=eO[e],l="none"===o?r[e]:n(r[e],i);if(s){let e=s.length;for(let n=0;n<e;n++)t[s[n]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=i===this?nd(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(oo),this.root.sharedNodes.clear()}}}function ot(t){t.updateLayout()}function oe(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:i}=t.layout,{animationType:r}=t.options,o=e.source!==t.layout.source;if("size"===r)iH(t=>{let i=o?e.measuredBox[t]:e.layoutBox[t],r=iK(i);i.min=n[t].min,i.max=i.min+r});else if("x"===r||"y"===r){let t="x"===r?"y":"x";rz(o?e.measuredBox[t]:e.layoutBox[t],n[t])}else oT(r,e.layoutBox,n)&&iH(i=>{let r=o?e.measuredBox[i]:e.layoutBox[i],s=iK(n[i]);r.max=r.min+s,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[i].max=t.relativeTarget[i].min+s)});let s=$();iY(s,n,e.layoutBox);let a=$();o?iY(a,t.applyTransform(i,!0),e.measuredBox):iY(a,n,e.layoutBox);let l=!rq(s),u=!1;if(!t.resumeFrom){let i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){let{snapshot:r,layout:o}=i;if(r&&o){let s=t.options.layoutAnchor||void 0,a=X();iq(a,e.layoutBox,r.layoutBox,s);let l=X();iq(l,n,o.layoutBox,s),rJ(a,l)||(u=!0),i.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,t.relativeParent=i)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function on(t){t_.value&&r4.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function oi(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function or(t){t.clearSnapshot()}function oo(t){t.clearMeasurements()}function os(t){t.isLayoutDirty=!0,t.updateLayout()}function oa(t){t.isLayoutDirty=!1}function ol(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function ou(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function oh(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function oc(t){t.resolveTargetDelta()}function od(t){t.calcProjection()}function of(t){t.resetSkewAndRotation()}function op(t){t.removeLeadSnapshot()}function om(t,e,n){t.translate=eF(e.translate,0,n),t.scale=eF(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function ov(t,e,n,i){t.min=eF(e.min,n.min,i),t.max=eF(e.max,n.max,i)}function og(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let oy={duration:.45,ease:[.4,0,.1,1]},ow=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ox=ow("applewebkit/")&&!ow("chrome/")?Math.round:tP;function ob(t){t.min=ox(t.min),t.max=ox(t.max)}function oT(t,e,n){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(r0(e)-r0(n)))}function oS(t){return t!==t.root&&t.scroll?.wasRoot}let oP=r9({attachResizeListener:(t,e)=>iJ(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),oM={current:void 0},oE=r9({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!oM.current){let t=new oP({});t.mount(window),t.setOptions({layoutScroll:!0}),oM.current=t}return oM.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function o_(t,e){let n=(0,i2.K)(t),i=new AbortController;return[n,{passive:!0,...e,signal:i.signal},()=>i.abort()]}function oC(t,e,n){let{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover","Start"===n);let r=i["onHover"+n];r&&tA.postRender(()=>r(e,rn(e)))}class oA extends n_{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,n={}){let[i,r,o]=o_(t,n);return i.forEach(t=>{let n,i=!1,o=!1,s=e=>{n&&(n(e),n=void 0),t.removeEventListener("pointerleave",l)},a=t=>{i=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),o&&(o=!1,s(t))},l=t=>{if("touch"!==t.pointerType){if(i){o=!0;return}s(t)}};t.addEventListener("pointerenter",i=>{if("touch"===i.pointerType||iU.x||iU.y)return;o=!1;let s=e(t,i);"function"==typeof s&&(n=s,t.addEventListener("pointerleave",l,r))},r),t.addEventListener("pointerdown",()=>{i=!0,window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",a,r)},r)}),o}(t,(t,e)=>(oC(this.node,e,"Start"),t=>oC(this.node,t,"End"))))}unmount(){}}class oR extends n_{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=nL(iJ(this.node.current,"focus",()=>this.onFocus()),iJ(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var ok=n(81402);let oD=(t,e)=>!!e&&(t===e||oD(t,e.parentElement)),oV=new WeakSet;function oL(t){return e=>{"Enter"===e.key&&t(e)}}function oj(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function oN(t){return re(t)&&!(iU.x||iU.y)}let oI=new WeakSet;function oF(t,e,n){let{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap","Start"===n);let r=i["onTap"+("End"===n?"":n)];r&&tA.postRender(()=>r(e,rn(e)))}
1class oO extends n_{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:n}=this.node.props;this.unmount=function(t,e,n={}){let[i,r,o]=o_(t,n),s=t=>{let i=t.currentTarget;if(!oN(t)||oI.has(t))return;oV.add(i),n.stopPropagation&&oI.add(t);let o=e(i,t),s=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),oV.has(i)&&oV.delete(i),oN(t)&&"function"==typeof o&&o(t,{success:e})},a=t=>{s(t,i===window||i===document||n.useGlobalTarget||oD(i,t.target))},l=t=>{s(t,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};return i.forEach(t=>{((n.useGlobalTarget?window:t).addEventListener("pointerdown",s,r),(0,ok.s)(t))&&(t.addEventListener("focus",t=>((t,e)=>{let n=t.currentTarget;if(!n)return;let i=oL(()=>{if(oV.has(n))return;oj(n,"down");let t=oL(()=>{oj(n,"up")});n.addEventListener("keyup",t,e),n.addEventListener("blur",()=>oj(n,"cancel"),e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)})(t,r)),iZ.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),o}(t,(t,e)=>(oF(this.node,e,"Start"),(t,{success:e})=>oF(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:n?.tap===!1})}unmount(){}}let oB=new WeakMap,oz=new WeakMap,oW=t=>{let e=oB.get(t.target);e&&e(t)},oU=t=>{t.forEach(oW)},oH={some:0,all:1};class oK extends n_{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:r}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:oH[i]},s=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),o=e?n:i;o&&o(t)};this.stopObserver=function(t,e,n){let i=function({root:t,...e}){let n=t||document;oz.has(n)||oz.set(n,{});let i=oz.get(n),r=JSON.stringify(e);return i[r]||(i[r]=new IntersectionObserver(oU,{root:t,...e})),i[r]}(e);return oB.set(t,n),i.observe(t),()=>{oB.delete(t),i.unobserve(t)}}(this.node.current,o,s)}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}let o$=function(t,e){if("undefined"==typeof Proxy)return nE;let n=new Map,i=(n,i)=>nE(n,i,t,e);return new Proxy((t,e)=>i(t,e),{get:(r,o)=>"create"===o?i:(n.has(o)||n.set(o,nE(o,void 0,t,e)),n.get(o))})}({animation:{Feature:iB},exit:{Feature:iW},inView:{Feature:oK},tap:{Feature:oO},focus:{Feature:oR},hover:{Feature:oA},pan:{Feature:rT},drag:{Feature:rx,ProjectionNode:oE,MeasureLayout:rD},layout:{ProjectionNode:oE,MeasureLayout:rD}},(t,e)=>e.isSVG??e6(t)?new eU(e):new e5(e,{allowProjection:t!==e3.Fragment}))},58670:(t,e,n)=>{n.d(e,{P:()=>i});function i(...t){return e=>{t.forEach(t=>{"function"==typeof t?t(e):t&&(t.current=e)})}}},58950:(t,e,n)=>{n.d(e,{T:()=>r});var i=n(12115);function r(t,e,n=function t(e,n){return Array.isArray(e)&&Array.isArray(n)?n.length!==e.length||e.some((e,i)=>t(e,n[i])):e!==n}){let[o,s]=(0,i.useState)(t);n(o,t)&&(e(t,o),s(t))}},59034:(t,e,n)=>{n.d(e,{LM:()=>te,OK:()=>ti,VM:()=>A,Ze:()=>tn,bL:()=>tt,lr:()=>z});var i=n(33649),r=n(67867),o=n(11470),s=n(12844),a=n(80542),l=n(12115),u=n(88142),h=n(76842),c=n(3468),d=n(94446),f=n(70222),p=n(66218),m=n(4129),v=n(34212),g=n(92556),y=n(95155),w="ScrollArea",x=(0,a._)((0,c.A)(w),2),b=x[0];x[1];var T=(0,a._)(b(w),2),S=T[0],P=T[1],M=l.forwardRef(function(t,e){var n,h=t.__scopeScrollArea,c=t.type,f=t.dir,m=t.scrollHideDelay,v=(0,s._)(t,["__scopeScrollArea","type","dir","scrollHideDelay"]),g=(0,a._)(l.useState(null),2),w=g[0],x=g[1],b=(0,a._)(l.useState(null),2),T=b[0],P=b[1],M=(0,a._)(l.useState(null),2),E=M[0],_=M[1],C=(0,a._)(l.useState(null),2),A=C[0],R=C[1],k=(0,a._)(l.useState(null),2),D=k[0],V=k[1],L=(0,a._)(l.useState(0),2),j=L[0],N=L[1],I=(0,a._)(l.useState(0),2),F=I[0],O=I[1],B=(0,a._)(l.useState(!1),2),z=B[0],W=B[1],U=(0,a._)(l.useState(!1),2),H=U[0],K=U[1],$=(0,d.s)(e,function(t){return x(t)}),Y=(0,p.jH)(f);return(0,y.jsx)(S,{scope:h,type:void 0===c?"hover":c,dir:Y,scrollHideDelay:void 0===m?600:m,scrollArea:w,viewport:T,onViewportChange:P,content:E,onContentChange:_,scrollbarX:A,onScrollbarXChange:R,scrollbarXEnabled:z,onScrollbarXEnabledChange:W,scrollbarY:D,onScrollbarYChange:V,scrollbarYEnabled:H,onScrollbarYEnabledChange:K,onCornerWidthChange:N,onCornerHeight
1Change:O,children:(0,y.jsx)(u.sG.div,(0,o._)((0,r._)({dir:Y},v),{ref:$,style:(0,r._)((n={position:"relative"},(0,i._)(n,"--radix-scroll-area-corner-width",j+"px"),(0,i._)(n,"--radix-scroll-area-corner-height",F+"px"),n),t.style)}))})});M.displayName=w;var E="ScrollAreaViewport",_=l.forwardRef(function(t,e){var n=t.__scopeScrollArea,i=t.children,a=t.nonce,h=(0,s._)(t,["__scopeScrollArea","children","nonce"]),c=P(E,n),f=l.useRef(null),p=(0,d.s)(e,f,c.onViewportChange);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),(0,y.jsx)(u.sG.div,(0,o._)((0,r._)({"data-radix-scroll-area-viewport":""},h),{ref:p,style:(0,r._)({overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden"},t.style),children:(0,y.jsx)("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"},children:i})}))]})});_.displayName=E;var C="ScrollAreaScrollbar",A=l.forwardRef(function(t,e){var n=t.forceMount,i=(0,s._)(t,["forceMount"]),a=P(C,t.__scopeScrollArea),u=a.onScrollbarXEnabledChange,h=a.onScrollbarYEnabledChange,c="horizontal"===t.orientation;return l.useEffect(function(){return c?u(!0):h(!0),function(){c?u(!1):h(!1)}},[c,u,h]),"hover"===a.type?(0,y.jsx)(R,(0,o._)((0,r._)({},i),{ref:e,forceMount:n})):"scroll"===a.type?(0,y.jsx)(k,(0,o._)((0,r._)({},i),{ref:e,forceMount:n})):"auto"===a.type?(0,y.jsx)(D,(0,o._)((0,r._)({},i),{ref:e,forceMount:n})):"always"===a.type?(0,y.jsx)(V,(0,o._)((0,r._)({},i),{ref:e})):null});A.displayName=C;var R=l.forwardRef(function(t,e){var n=t.forceMount,i=(0,s._)(t,["forceMount"]),u=P(C,t.__scopeScrollArea),c=(0,a._)(l.useState(!1),2),d=c[0],f=c[1];return l.useEffect(function(){var t=u.scrollArea,e=0;if(t){var n=function(){window.clearTimeout(e),f(!0)},i=function(){e=window.setTimeout(function(){return f(!1)},u.scrollHideDelay)};return t.addEventListener("pointerenter",n),t.addEventListener("pointerleave",i),function(){window.clearTimeout(e),t.removeEventListener("pointerenter",n),t.removeEventListener("pointerleave",i)}}},[u.scrollArea,u.scrollHideDelay]),(0,y.jsx)(h.C,{present:n||d,children:(0,y.jsx)(D,(0,o._)((0,r._)({"data-state":d?"visible":"hidden"},i),{ref:e}))})}),k=l.forwardRef(function(t,e){var n,i=t.forceMount,u=(0,s._)(t,["forceMount"]),c=P(C,t.__scopeScrollArea),d="horizontal"===t.orientation,f=Q(function(){return v("SCROLL_END")},100),p=(0,a._)((n={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},l.useReducer(function(t,e){var i=n[t][e];return null!=i?i:t},"hidden")),2),m=p[0],v=p[1];return l.useEffect(function(){if("idle"===m){var t=window.setTimeout(function(){return v("HIDE")},c.scrollHideDelay);return function(){return window.clearTimeout(t)}}},[m,c.scrollHideDelay,v]),l.useEffect(function(){var t=c.viewport,e=d?"scrollLeft":"scrollTop";if(t){var n=t[e],i=function(){var i=t[e];n!==i&&(v("SCROLL"),f()),n=i};return t.addEventListener("scroll",i),function(){return t.removeEventListener("scroll",i)}}},[c.viewport,d,v,f]),(0,y.jsx)(h.C,{present:i||"hidden"!==m,children:(0,y.jsx)(V,(0,o._)((0,r._)({"data-state":"hidden"===m?"hidden":"visible"},u),{ref:e,onPointerEnter:(0,g.mK)(t.onPointerEnter,function(){return v("POINTER_ENTER")}),onPointerLeave:(0,g.mK)(t.onPointerLeave,function(){return v("POINTER_LEAVE")})}))})}),D=l.forwardRef(function(t,e){var n=P(C,t.__scopeScrollArea),i=t.forceMount,u=(0,s._)(t,["forceMount"]),c=(0,a._)(l.useState(!1),2),d=c[0],f=c[1],p="horizontal"===t.orientation,m=Q(function(){if(n.viewport){var t=n.viewport.offsetWidth<n.viewport.scrollWidth,e=n.viewport.offsetHeight<n.viewport.scrollHeight;f(p?t:e)}},10);return J(n.viewport,m),J(n.content,m),(0,y.jsx)(h.C,{present:i||d,children:(0,y.jsx)(V,(0,o._)((0,r._)({"data-state":d?"visible":"hidden"},u),{ref:e}))})}),V=l.forwardRef(function(t,e){var n=function(t,e){return function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ltr",r=X(n),o=e||r/2,s=n.scrollbar.paddingStart+o,a=n.scrollbar.size-n.scrollbar.paddingEnd-(r-o),l=n.content-n.viewport;return q([s,a],"ltr"===i?[0,l]:[-1*l,0])(t)}(t,f.current,m,e)},i=t.orientation,u=void 0===i?"vertical":i,h=(0,s._)(t,["orientation"]),c=P(C,t.__scopeScrollArea),d=l.useRef(null),f=l.useRef(0),p=(0,a._)(l.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),2),m=p[0],v=p[1],g=Y(m.viewport,m.content),w=(0,o._)((0,r._)({},h),{sizes:m,onSizesChange:v,hasThumb:!!(g>0&&g<1),onThumbChange:function(t){return d.current=t},onThumbPointerUp:function(){return f.current=0},onThumbPointerDown:function(t){return f.current=t}});return"horizontal"===u?(0,y.jsx)(L,(0,o._)((0,r._)({},w),{ref:e,onThumbPositionChange:function(){if(c.viewport&&d.current){var t=G(c.viewport.scrollLeft,m,c.dir);d.current.style.transform="translate3d(".concat(t,"px, 0, 0)")}},onWheelScroll:function(t){c.viewport&&(c.viewport.scrollLeft=t)},onDragScroll:function(t){c.viewport&&(c.viewport.scrollLeft=n(t,c.dir))}})):"vertical"===u?(0,y.jsx)(j,(0,o._)((0,r._)({},w),{ref:e,onThumbPositionChange:function(){if(c.viewport&&d.current){var t=G(c.viewport.scrollTop,m);d.current.style.transform="translate3d(0, ".concat(t,"px, 0)")}},onWheelScroll:function(t){c.viewport&&(c.viewport.scrollTop=t)},onDragScroll:function(t){c.viewport&&(c.viewport.scrollTop=n(t))}})):null}),L=l.forwardRef(function(t,e){var n=t.sizes,u=t.onSizesChange,h=(0,s._)(t,["sizes","onSizesChange"]),c=P(C,t.__scopeScrollArea),f=(0,a._)(l.useState(),2),p=f[0],m=f[1],v=l.useRef(null),g=(0,d.s)(e,v,c.onScrollbarXChange);return l.useEffect(function(){v.current&&m(getComputedStyle(v.current))},[v]),(0,y.jsx)(O,(0,o._)((0,r._)({"data-orientation":"horizontal"},h),{ref:g,sizes:n,style:(0,r._)((0,i._)({bottom:0,left:"rtl"===c.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===c.dir?"var(--radix-scroll-area-corner-width)":0},"--radix-scroll-area-thumb-width",X(n)+"px"),t.style),onThumbPointerDown:function(e){return t.onThumbPointerDown(e.x)},onDragScroll:function(e){return t.onDragScroll(e.x)},onWheelScroll:function(e,n){if(c.viewport){var i,r,o=c.viewport.scrollLeft+e.deltaX;t.onWheelScroll(o),i=o,r=n,i>0&&i<r&&e.preventDefault()}},onResize:function(){v.current&&c.viewport&&p&&u({content:c.viewport.scrollWidth,viewport:c.viewport.offsetWidth,scrollbar:{size:v.current.clientWidth,paddingStart:$(p.paddingLeft),paddingEnd:$(p.paddingRight)}})}}))}),j=l.forwardRef(function(t,e){var n=t.sizes,u=t.onSizesChange,h=(0,s._)(t,["sizes","onSizesChange"]),c=P(C,t.__scopeScrollArea),f=(0,a._)(l.useState(),2),p=f[0],m=f[1],v=l.useRef(null),g=(0,d.s)(e,v,c.onScrollbarYChange);return l.useEffect(function(){v.current&&m(getComputedStyle(v.current))},[v]),(0,y.jsx)(O,(0,o._)((0,r._)({"data-orientation":"vertical"},h),{ref:g,sizes:n,style:(0,r._)((0,i._)({top:0,right:"ltr"===c.dir?0:void 0,left:"rtl"===c.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)"},"--radix-scroll-area-thumb-height",X(n)+"px"),t.style),onThumbPointerDown:function(e){return t.onThumbPointerDown(e.y)},onDragScroll:function(e){return t.onDragScroll(e.y)},onWheelScroll:function(e,n){if(c.viewport){var i,r,o=c.viewport.scrollTop+e.deltaY;t.onWheelScroll(o),i=o,r=n,i>0&&i<r&&e.preventDefault()}},onResize:function(){v.current&&c.viewport&&p&&u({content:c.viewport.scrollHeight,viewport:c.viewport.offsetHeight,scrollbar:{size:v.current.clientHeight,paddingStart:$(p.paddingTop),paddingEnd:$(p.paddingBottom)}})}}))}),N=(0,a._)(b(C),2),I=N[0],F=N[1],O=l.forwardRef(function(t,e){var n=function(t){k.current&&x({x:t.clientX-k.current.left,y:t.clientY-k.current.top})},i=t.__scopeScrollArea,h=t.sizes,c=t.hasThumb,p=t.onThumbChange,m=t.onThumbPointerUp,v=t.onThumbPointerDown,w=t.onThumbPositionChange,x=t.onDragScroll,b=t.onWheelScroll,T=t.onResize,S=(0,s._)(t,["__scopeScrollArea","sizes","hasThumb","onThumbChange","onThumbPointerUp","onThumbPointerDown","onThumbPositionChange","onDragScroll","onWheelScroll","onResize"]),M=P(C,i),E=(0,a._)(l.useState(null),2),_=E[0],A=E[1],R=(0,d.s)(e,function(t){return A(t)}),k=l.useRef(null),D=l.useRef(""),V=M.viewport,L=h.content-h.viewport,j=(0,f.c)(b),N=(0,f.c)(w),F=Q(T,10);return l.useEffect(function(){var t=function(t){var e=t.target;(null==_?void 0:_.contains(e))&&j(t,L)};return document.addEventListener("wheel",t,{passive:!1}),function(){return document.removeEventListener("wheel",t,{passive:!1})}},[V,_,L,j]),l.useEffect(N,[h,N]),J(_,F),J(M.content,F),(0,y.jsx)(I,{scope:i,scrollbar:_,hasThumb:c,onThumbChange:(0,f.c)(p),onThumbPointerUp:(0,f.c)(m),onThumbPositionChange:N,onThumbPointerDown:(0,f.c)(v),children:(0,y.jsx)(u.sG.div,(0,o._)((0,r._)({},S),{ref:R,style:(0,r._)({position:"absolute"},S.style),onPointerDown:(0,g.mK)(t.onPointerDown,function(t){0===t.button&&(t.target.setPointerCapture(t.pointerId),k.current=_.getBoundingClientRect(),D.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",M.viewport&&(M.viewport.style.scrollBehavior="auto"),n(t))}),onPointerMove:(0,g.mK)(t.onPointerMove,n),onPointerUp:(0,g.mK)(t.onPointerUp,function(t){var e=t.target;e.hasPointerCapture(t.pointerId)&&e.releasePointerCapture(t.pointerId),document.body.style.webkitUserSelect=D.current,M.viewport&&(M.viewport.style.scrollBehavior=""),k.current=null})}))})}),B="ScrollAreaThumb",z=l.forwardRef(function(t,e){var n=t.forceMount,i=(0,s._)(t,["forceMount"]),o=F(B,t.__scopeScrollArea);return(0,y.jsx)(h.C,{present:n||o.hasThumb,children:(0,y.jsx)(W,(0,r._)({ref:e},i))})}),W=l.forwardRef(function(t,e){var n=t.__scopeScrollArea,i=t.style,a=(0,s._)(t,["__scopeScrollArea","style"]),h=P(B,n),c=F(B,n),f=c.onThumbPositionChange,p=(0,d.s)(e,function(t){return c.onThumbChange(t)}
1),m=l.useRef(void 0),v=Q(function(){m.current&&(m.current(),m.current=void 0)},100);return l.useEffect(function(){var t=h.viewport;if(t){var e=function(){v(),m.current||(m.current=Z(t,f),f())};return f(),t.addEventListener("scroll",e),function(){return t.removeEventListener("scroll",e)}}},[h.viewport,v,f]),(0,y.jsx)(u.sG.div,(0,o._)((0,r._)({"data-state":c.hasThumb?"visible":"hidden"},a),{ref:p,style:(0,r._)({width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)"},i),onPointerDownCapture:(0,g.mK)(t.onPointerDownCapture,function(t){var e=t.target.getBoundingClientRect(),n=t.clientX-e.left,i=t.clientY-e.top;c.onThumbPointerDown({x:n,y:i})}),onPointerUp:(0,g.mK)(t.onPointerUp,c.onThumbPointerUp)}))});z.displayName=B;var U="ScrollAreaCorner",H=l.forwardRef(function(t,e){var n=P(U,t.__scopeScrollArea),i=!!(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&i?(0,y.jsx)(K,(0,o._)((0,r._)({},t),{ref:e})):null});H.displayName=U;var K=l.forwardRef(function(t,e){var n=t.__scopeScrollArea,i=(0,s._)(t,["__scopeScrollArea"]),h=P(U,n),c=(0,a._)(l.useState(0),2),d=c[0],f=c[1],p=(0,a._)(l.useState(0),2),m=p[0],v=p[1],g=!!(d&&m);return J(h.scrollbarX,function(){var t,e=(null==(t=h.scrollbarX)?void 0:t.offsetHeight)||0;h.onCornerHeightChange(e),v(e)}),J(h.scrollbarY,function(){var t,e=(null==(t=h.scrollbarY)?void 0:t.offsetWidth)||0;h.onCornerWidthChange(e),f(e)}),g?(0,y.jsx)(u.sG.div,(0,o._)((0,r._)({},i),{ref:e,style:(0,r._)({width:d,height:m,position:"absolute",right:"ltr"===h.dir?0:void 0,left:"rtl"===h.dir?0:void 0,bottom:0},t.style)})):null});function $(t){return t?parseInt(t,10):0}function Y(t,e){var n=t/e;return isNaN(n)?0:n}function X(t){var e=Y(t.viewport,t.content),n=t.scrollbar.paddingStart+t.scrollbar.paddingEnd;return Math.max((t.scrollbar.size-n)*e,18)}function G(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ltr",i=X(e),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=e.scrollbar.size-r,s=e.content-e.viewport,a=(0,v.q)(t,"ltr"===n?[0,s]:[-1*s,0]);return q([0,s],[0,o-i])(a)}function q(t,e){return function(n){if(t[0]===t[1]||e[0]===e[1])return e[0];var i=(e[1]-e[0])/(t[1]-t[0]);return e[0]+i*(n-t[0])}}var Z=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n={left:t.scrollLeft,top:t.scrollTop},i=0;return!function r(){var o={left:t.scrollLeft,top:t.scrollTop},s=n.left!==o.left,a=n.top!==o.top;(s||a)&&e(),n=o,i=window.requestAnimationFrame(r)}(),function(){return window.cancelAnimationFrame(i)}};function Q(t,e){var n=(0,f.c)(t),i=l.useRef(0);return l.useEffect(function(){return function(){return window.clearTimeout(i.current)}},[]),l.useCallback(function(){window.clearTimeout(i.current),i.current=window.setTimeout(n,e)},[n,e])}function J(t,e){var n=(0,f.c)(e);(0,m.N)(function(){var e=0;if(t){var i=new ResizeObserver(function(){cancelAnimationFrame(e),e=window.requestAnimationFrame(n)});return i.observe(t),function(){window.cancelAnimationFrame(e),i.unobserve(t)}}},[t,n])}var tt=M,te=_,tn=A,ti=H},59686:(t,e,n)=>{n.d(e,{t:()=>i});var i=(0,n(12115).createContext)(null)},60296:(t,e,n)=>{n.d(e,{L:()=>i});var i=(0,n(12115).createContext)({})},60709:(t,e,n)=>{n.d(e,{A:()=>i});var i=(0,n(77510).A)("gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]])},65156:(t,e,n)=>{n.d(e,{P:()=>u,f:()=>h});var i=Object.create,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,a=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(t,e)=>function(){return e||(0,t[s(t)[0]])((e={exports:{}}).exports,e),e.exports},h=(t,e,n)=>(n=null!=t?i(a(t)):{},((t,e,n,i)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let a of s(e))l.call(t,a)||a===n||r(t,a,{get:()=>e[a],enumerable:!(i=o(e,a))||i.enumerable});return t})(!e&&t&&t.__esModule?n:r(n,"default",{value:t,enumerable:!0}),t))},73142:(t,e,n)=>{n.d(e,{G:()=>i});function i(t){return"object"==typeof t&&null!==t}},74570:(t,e,n)=>{n.d(e,{W:()=>a});var i=n(80542),r=n(12115),o=n(38561);let s={some:0,all:1};function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.root,a=e.margin,l=e.amount,u=e.once,h=void 0!==u&&u,c=e.initial,d=(0,i._)((0,r.useState)(void 0!==c&&c),2),f=d[0],p=d[1];return(0,r.useEffect)(function(){if(t.current&&(!h||!f)){var e={root:n&&n.current||void 0,margin:a,amount:l};return function(t,e,{root:n,margin:i,amount:r="some"}={}){let a=(0,o.K)(t),l=new WeakMap,u=new IntersectionObserver(t=>{t.forEach(t=>{let n=l.get(t.target);if(!!n!==t.isIntersecting)if(t.isIntersecting){let n=e(t.target,t);"function"==typeof n?l.set(t.target,n):u.unobserve(t.target)}else"function"==typeof n&&(n(t),l.delete(t.target))})},{root:n,rootMargin:i,threshold:"number"==typeof r?r:s[r]});return a.forEach(t=>u.observe(t)),()=>u.disconnect()}(t.current,function(){return p(!0),h?void 0:function(){return p(!1)}},e)}},[n,t,a,h,l]),f}},75601:(t,e,n)=>{n.d(e,{xQ:()=>o});var i=n(12115),r=n(59686);function o(){var t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],e=(0,i.useContext)(r.t);if(null===e)return[!0,null];var n=e.isPresent,o=e.onExitComplete,s=e.register,a=(0,i.useId)();(0,i.useEffect)(function(){if(t)return s(a)},[t]);var l=(0,i.useCallback)(function(){return t&&o&&o(a)},[a,o,t]);return!n&&o?[!1,l]:[!0]}},79384:(t,e,n)=>{n.d(e,{T:()=>i.T});var i=n(58950);n(65156)},80003:(t,e,n)=>{n.d(e,{A:()=>i});var i=(0,n(77510).A)("list",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]])},81402:(t,e,n)=>{n.d(e,{s:()=>r});var i=n(73142);function r(t){return(0,i.G)(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}},85765:(t,e,n)=>{n.d(e,{TOCItems:()=>g,TOCProvider:()=>m,TOCScrollArea:()=>v,a:()=>p});var i=n(67867),r=n(11470),o=n(12844),s=n(95155),a=n(2421),l=n(12115),u=n(75889),h=n(53878),c=n(50440),d=n(58670),f=(0,l.createContext)([]);function p(){return(0,l.useContext)(f)}function m(t){var e=t.toc,n=t.children,l=(0,o._)(t,["toc","children"]);return(0,s.jsx)(f,{value:e,children:(0,s.jsx)(a.NQ,(0,r._)((0,i._)({toc:e},l),{children:n}))})}function v(t){var e=t.ref,n=t.className,h=(0,o._)(t,["ref","className"]),c=(0,l.useRef)(null);return(0,s.jsx)("div",(0,r._)((0,i._)({ref:(0,d.P)(c,e),className:(0,u.QP)("relative min-h-0 text-sm ms-px overflow-auto [scrollbar-width:none] [mask-image:linear-gradient(to_bottom,transparent,white_16px,white_calc(100%-16px),transparent)] py-3",n)},h),{children:(0,s.jsx)(a.N2,{containerRef:c,children:h.children})}))}function g(t){var e=t.ref,n=t.className,a=(0,o._)(t,["ref","className"]),f=(0,l.useRef)(null),m=p(),v=(0,h.useI18n)().text;return 0===m.length?(0,s.jsx)("div",{className:"rounded-lg border bg-fd-card p-3 text-xs text-fd-muted-foreground",children:v.tocNoHeadings}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.j,{containerRef:f,className:"absolute top-(--fd-top) h-(--fd-height) w-px bg-fd-primary transition-all"}),(0,s.jsx)("div",(0,r._)((0,i._)({ref:(0,d.P)(e,f),className:(0,u.QP)("flex flex-col border-s border-fd-foreground
1/10",n)},a),{children:m.map(function(t){return(0,s.jsx)(y,{item:t},t.url)})}))]})}function y(t){var e=t.item;return(0,s.jsx)(a.Cz,{href:e.url,className:(0,u.QP)("prose py-1.5 text-sm text-fd-muted-foreground transition-colors [overflow-wrap:anywhere] first:pt-0 last:pb-0 data-[active=true]:text-fd-primary",e.depth<=2&&"ps-3",3===e.depth&&"ps-6",e.depth>=4&&"ps-8"),children:e.title})}},94416:(t,e,n)=>{n.d(e,{M:()=>r});var i=n(12115);function r(t){var e=(0,i.useRef)(null);return null===e.current&&(e.current=t()),e.current}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.