(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4747],{689:(e,t,r)=>{"use strict";r.d(t,{MenuHeading:()=>l});var n=r(95155),a=r(92031),i=r(72107),o=r(48451);let l=e=>{let{children:t,className:r,truncate:l=!1,typographyVariant:s="caption2",...u}=e;return(0,n.jsx)(a.JU,{asChild:!0,className:(0,o.y)({className:r}),...u,"data-ids":"MenuHeading",children:(0,n.jsx)(i.o5,{disableColorScheme:!0,maxLines:l?1:void 0,variant:s,children:t})})};l.displayName="MenuHeading"},1335:(e,t,r)=>{"use strict";r.d(t,{u:()=>a});var n=r(9064);let a={test:(0,r(55920).$)("#"),parse:function(e){let t="",r="",n="",a="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),a=e.substring(4,5),t+=t,r+=r,n+=n,a+=a),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:a?parseInt(a,16)/255:1}},transform:n.B.transform}},1773:(e,t,r)=>{e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,(function(t){return e[t]}).bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2)}([function(e,t){e.exports=r(38637)},function(e,t){e.exports=r(12115)},function(e,t,r){"use strict";r.r(t);var n=r(1),a=r(0),i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r},l=0,s=n.forwardRef(function(e,t){var r=e.title,a=void 0===r?null:r,s=e.description,u=void 0===s?null:s,c=e.size,d=void 0===c?null:c,f=e.color,h=void 0===f?"currentColor":f,p=e.horizontal,m=void 0===p?null:p,v=e.vertical,g=void 0===v?null:v,y=e.rotate,x=void 0===y?null:y,b=e.spin,w=void 0===b?null:b,k=e.style,S=void 0===k?{}:k,C=e.children,E=o(e,["title","description","size","color","horizontal","vertical","rotate","spin","style","children"]);l++;var j,T=null!==w&&w,A=n.Children.map(C,function(e){!0!==T&&(T=!0===(null===w?e.props.spin:w));var t=e.props.size;"number"==typeof d&&"number"==typeof e.props.size&&(t=e.props.size/d);var r={size:t,color:null===h?e.props.color:h,horizontal:null===m?e.props.horizontal:m,vertical:null===g?e.props.vertical:g,rotate:null===x?e.props.rotate:x,spin:null===w?e.props.spin:w,inStack:!0};return n.cloneElement(e,r)});null!==d&&(S.width="string"==typeof d?d:1.5*d+"rem");var R,P="stack_labelledby_"+l,N="stack_describedby_"+l;if(a)j=u?P+" "+N:P;else if(R="presentation",u)throw Error("title attribute required when description is set");return n.createElement("svg",i({ref:t,viewBox:"0 0 24 24",style:S,role:R,"aria-labelledby":j},E),a&&n.createElement("title",{id:P},a),u&&n.createElement("desc",{id:N},u),T&&n.createElement("style",null,"@keyframes spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }","@keyframes spin-inverse { from { transform: rotate(0deg) } to { transform: rotate(-360deg) } }"),A)});s.displayName="Stack",s.propTypes={size:a.oneOfType([a.number,a.string]),color:a.string,horizontal:a.bool,vertical:a.bool,rotate:a.number,spin:a.oneOfType([a.bool,a.number]),children:a.oneOfType([a.arrayOf(a.node),a.node]).isRequired,className:a.string,style:a.object},s.defaultProps={size:null,color:null,horizontal:null,vertical:null,rotate:null,spin:null},r.d(t,"Icon",function(){return f}),r.d(t,"Stack",function(){return s});var u=function(){return(u=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r},d=0,f=n.forwardRef(function(e,t){var r=e.path,a=e.id,i=void 0===a?++d:a,o=e.title,l=void 0===o?null:o,s=e.description,f=void 0===s?null:s,h=e.size,p=void 0===h?null:h,m=e.color,v=void 0===m?"currentColor":m,g=e.horizontal,y=void 0!==g&&g,x=e.vertical,b=void 0!==x&&x,w=e.rotate,k=void 0===w?0:w,S=e.spin,C=void 0!==S&&S,E=e.style,j=void 0===E?{}:E,T=e.inStack,A=void 0!==T&&T,R=c(e,["path","id","title","description","size","color","horizontal","vertical","rotate","spin","style","inStack"]),P={},N=[];null!==p&&(A?N.push("scale("+p+")"):(j.width="string"==typeof p?p:1.5*p+"rem",j.height=j.width)),y&&N.push("scaleX(-1)"),b&&N.push("scaleY(-1)"),0!==k&&N.push("rotate("+k+"deg)"),null!==v&&(P.fill=v);var M=n.createElement("path",u({d:r,style:P},A?R:{})),O=M;N.length>0&&(j.transform=N.join(" "),j.transformOrigin="center",A&&(O=n.createElement("g",{style:j},M,n.createElement("rect",{width:"24",height:"24",fill:"transparent"}))));var D,L=O,I=!0===C||"number"!=typeof C?2:C,V=!A&&(y||b);if(I<0&&(V=!V),C&&(L=n.createElement("g",{style:{animation:"spin"+(V?"-inverse":"")+" linear "+Math.abs(I)+"s infinite",transformOrigin:"center"}},O,!(y||b||0!==k)&&n.createElement("rect",{width:"24",height:"24",fill:"transparent"}))),A)return L;var F,_="icon_labelledby_"+i,z="icon_describedby_"+i;if(l)D=f?_+" "+z:_;else if(F="presentation",f)throw Error("title attribute required when description is set");return n.createElement("svg",u({ref:t,viewBox:"0 0 24 24",style:j,role:F,"aria-labelledby":D},R),l&&n.createElement("title",{id:_},l),f&&n.createElement("desc",{id:z},f),!A&&C&&(V?n.createElement("style",null,"@keyframes spin-inverse { from { transform: rotate(0deg) } to { transform: rotate(-360deg) } }"):n.createElement("style",null,"@keyframes spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }")),L)});f.displayName="Icon",f.propTypes={path:a.string.isRequired,size:a.oneOfType([a.number,a.string]),color:a.string,horizontal:a.bool,vertical:a.bool,rotate:a.number,spin:a.oneOfType([a.bool,a.number]),style:a.object,inStack:a.bool,className:a.string},f.defaultProps={size:null,color:"currentColor",horizontal:!1,vertical:!1,rotate:0,spin:!1},t.default=f}])},2279:(e,t,r)=>{"use strict";r.d(t,{h:()=>s,s:()=>l});var n=r(12115),a=r(47650),i=r(77280),o=r(95155),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,i.T)(`Primitive.${t}`),a=n.forwardRef((e,n)=>{let{asChild:a,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(a?r:t,{...i,ref:n})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function s(e,t){e&&a.flushSync(()=>e.dispatchEvent(t))}},2668:(e,t,r)=>{"use strict";r.d(t,{JU:()=>eO,LM:()=>eN,PP:()=>eI,UC:()=>eP,WT:()=>eA,YJ:()=>eM,ZL:()=>eR,bL:()=>ej,l9:()=>eT,p4:()=>eL,q7:()=>eD,wn:()=>eV});var n=r(12115),a=r(47650),i=r(12269),o=r(65749),l=r(66896),s=r(73595),u=r(66801),c=r(98303),d=r(68991),f=r(6507),h=r(25003),p=r(74539),m=r(28635),v=r(52090),g=r(2279),y=r(77280),x=r(62067),b=r(46135),w=r(64730),k=r(21629),S=r(50190),C=r(29385),E=r(7156),j=r(95155),T=[" ","Enter","ArrowUp","ArrowDown"],A=[" ","Enter"],R="Select",[P,N,M]=(0,l.N)(R),[O]=(0,u.A)(R,[M,m.Bk]),D=(0,m.Bk)(),[L,I]=O(R),[V,F]=O(R),_=e=>{let{__scopeSelect:t,children:r,open:a,defaultOpen:i,onOpenChange:o,value:l,defaultValue:s,onValueChange:u,dir:d,name:f,autoComplete:h,disabled:v,required:g,form:y}=e,x=D(t),[w,k]=n.useState(null),[S,C]=n.useState(null),[E,T]=n.useState(!1),A=(0,c.j)(d),[N,M]=(0,b.i)({prop:a,defaultProp:null!=i&&i,onChange:o,caller:R}),[O,I]=(0,b.i)({prop:l,defaultProp:s,onChange:u,caller:R}),F=n.useRef(null),_=!w||y||!!w.closest("form"),[z,B]=n.useState(new Set),H=Array.from(z).map(e=>e.props.value).join(";");return(0,j.jsx)(m.bL,{...x,children:(0,j.jsxs)(L,{required:g,scope:t,trigger:w,onTriggerChange:k,valueNode:S,onValueNodeChange:C,valueNodeHasChildren:E,onValueNodeHasChildrenChange:T,contentId:(0,p.B)(),value:O,onValueChange:I,open:N,onOpenChange:M,dir:A,triggerPointerDownPosRef:F,disabled:v,children:[(0,j.jsx)(P.Provider,{scope:t,children:(0,j.jsx)(V,{scope:e.__scopeSelect,onNativeOptionAdd:n.useCallback(e=>{B(t=>new Set(t).add(e))},[]),onNativeOptionRemove:n.useCallback(e=>{B(t=>{let r=new Set(t);return r.delete(e),r})},[]),children:r})}),_?(0,j.jsxs)(ek,{"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:h,value:O,onChange:e=>I(e.target.value),disabled:v,form:y,children:[void 0===O?(0,j.jsx)("option",{value:""}):null,Array.from(z)]},H):null]})})};_.displayName=R;var z="SelectTrigger",B=n.forwardRef((e,t)=>{let{__scopeSelect:r,disabled:a=!1,...i}=e,l=D(r),u=I(z,r),c=u.disabled||a,d=(0,s.s)(t,u.onTriggerChange),f=N(r),h=n.useRef("touch"),[p,v,y]=eC(e=>{let t=f().filter(e=>!e.disabled),r=t.find(e=>e.value===u.value),n=eE(t,e,r);void 0!==n&&u.onValueChange(n.value)}),x=e=>{c||(u.onOpenChange(!0),y()),e&&(u.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,j.jsx)(m.Mz,{asChild:!0,...l,children:(0,j.jsx)(g.s.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":eS(u.value)?"":void 0,...i,ref:d,onClick:(0,o.m)(i.onClick,e=>{e.currentTarget.focus(),"mouse"!==h.current&&x(e)}),onPointerDown:(0,o.m)(i.onPointerDown,e=>{h.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(x(e),e.preventDefault())}),onKeyDown:(0,o.m)(i.onKeyDown,e=>{let t=""!==p.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||v(e.key),(!t||" "!==e.key)&&T.includes(e.key)&&(x(),e.preventDefault())})})})});B.displayName=z;var H="SelectValue",U=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:a,children:i,placeholder:o="",...l}=e,u=I(H,r),{onValueNodeHasChildrenChange:c}=u,d=void 0!==i,f=(0,s.s)(t,u.onValueNodeChange);return(0,w.N)(()=>{c(d)},[c,d]),(0,j.jsx)(g.s.span,{...l,ref:f,style:{pointerEvents:"none"},children:eS(u.value)?(0,j.jsx)(j.Fragment,{children:o}):i})});U.displayName=H,n.forwardRef((e,t)=>{let{__scopeSelect:r,children:n,...a}=e;return(0,j.jsx)(g.s.span,{"aria-hidden":!0,...a,ref:t,children:n||"▼"})}).displayName="SelectIcon";var W=e=>(0,j.jsx)(v.Z,{asChild:!0,...e});W.displayName="SelectPortal";var K="SelectContent",q=n.forwardRef((e,t)=>{let r=I(K,e.__scopeSelect),[i,o]=n.useState();return((0,w.N)(()=>{o(new DocumentFragment)},[]),r.open)?(0,j.jsx)(X,{...e,ref:t}):i?a.createPortal((0,j.jsx)($,{scope:e.__scopeSelect,children:(0,j.jsx)(P.Slot,{scope:e.__scopeSelect,children:(0,j.jsx)("div",{children:e.children})})}),i):null});q.displayName=K;var[$,G]=O(K),Y=(0,y.T)("SelectContent.RemoveScroll"),X=n.forwardRef((e,t)=>{let{__scopeSelect:r,position:a="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:l,onPointerDownOutside:u,side:c,sideOffset:p,align:m,alignOffset:v,arrowPadding:g,collisionBoundary:y,collisionPadding:x,sticky:b,hideWhenDetached:w,avoidCollisions:k,...S}=e,T=I(K,r),[A,R]=n.useState(null),[P,M]=n.useState(null),O=(0,s.s)(t,e=>R(e)),[D,L]=n.useState(null),[V,F]=n.useState(null),_=N(r),[z,B]=n.useState(!1),H=n.useRef(!1);n.useEffect(()=>{if(A)return(0,C.E)(A)},[A]),(0,f.O)();let U=n.useCallback(e=>{let[t,...r]=_().map(e=>e.ref.current),[n]=r.slice(-1),a=document.activeElement;for(let r of e)if(r===a||(null==r||r.scrollIntoView({block:"nearest"}),r===t&&P&&(P.scrollTop=0),r===n&&P&&(P.scrollTop=P.scrollHeight),null==r||r.focus(),document.activeElement!==a))return},[_,P]),W=n.useCallback(()=>U([D,A]),[U,D,A]);n.useEffect(()=>{z&&W()},[z,W]);let{onOpenChange:q,triggerPointerDownPosRef:G}=T;n.useEffect(()=>{if(A){let e={x:0,y:0},t=t=>{var r,n,a,i;e={x:Math.abs(Math.round(t.pageX)-(null!=(a=null==(r=G.current)?void 0:r.x)?a:0)),y:Math.abs(Math.round(t.pageY)-(null!=(i=null==(n=G.current)?void 0:n.y)?i:0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():A.contains(r.target)||q(!1),document.removeEventListener("pointermove",t),G.current=null};return null!==G.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[A,q,G]),n.useEffect(()=>{let e=()=>q(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[q]);let[X,J]=eC(e=>{let t=_().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),n=eE(t,e,r);n&&setTimeout(()=>n.ref.current.focus())}),ee=n.useCallback((e,t,r)=>{let n=!H.current&&!r;(void 0!==T.value&&T.value===t||n)&&(L(e),n&&(H.current=!0))},[T.value]),et=n.useCallback(()=>null==A?void 0:A.focus(),[A]),er=n.useCallback((e,t,r)=>{let n=!H.current&&!r;(void 0!==T.value&&T.value===t||n)&&F(e)},[T.value]),en="popper"===a?Q:Z,ea=en===Q?{side:c,sideOffset:p,align:m,alignOffset:v,arrowPadding:g,collisionBoundary:y,collisionPadding:x,sticky:b,hideWhenDetached:w,avoidCollisions:k}:{};return(0,j.jsx)($,{scope:r,content:A,viewport:P,onViewportChange:M,itemRefCallback:ee,selectedItem:D,onItemLeave:et,itemTextRefCallback:er,focusSelectedItem:W,selectedItemText:V,position:a,isPositioned:z,searchRef:X,children:(0,j.jsx)(E.A,{as:Y,allowPinchZoom:!0,children:(0,j.jsx)(h.n,{asChild:!0,trapped:T.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,o.m)(i,e=>{var t;null==(t=T.trigger)||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,j.jsx)(d.qW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:(0,j.jsx)(en,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:e=>e.preventDefault(),...S,...ea,onPlaced:()=>B(!0),ref:O,style:{display:"flex",flexDirection:"column",outline:"none",...S.style},onKeyDown:(0,o.m)(S.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||J(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=_().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let r=e.target,n=t.indexOf(r);t=t.slice(n+1)}setTimeout(()=>U(t)),e.preventDefault()}})})})})})})});X.displayName="SelectContentImpl";var Z=n.forwardRef((e,t)=>{let{__scopeSelect:r,onPlaced:a,...o}=e,l=I(K,r),u=G(K,r),[c,d]=n.useState(null),[f,h]=n.useState(null),p=(0,s.s)(t,e=>h(e)),m=N(r),v=n.useRef(!1),y=n.useRef(!0),{viewport:x,selectedItem:b,selectedItemText:k,focusSelectedItem:S}=u,C=n.useCallback(()=>{if(l.trigger&&l.valueNode&&c&&f&&x&&b&&k){let e=l.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),r=l.valueNode.getBoundingClientRect(),n=k.getBoundingClientRect();if("rtl"!==l.dir){let a=n.left-t.left,o=r.left-a,l=e.left-o,s=e.width+l,u=Math.max(s,t.width),d=window.innerWidth-10,f=(0,i.q)(o,[10,Math.max(10,d-u)]);c.style.minWidth=s+"px",c.style.left=f+"px"}else{let a=t.right-n.right,o=window.innerWidth-r.right-a,l=window.innerWidth-e.right-o,s=e.width+l,u=Math.max(s,t.width),d=window.innerWidth-10,f=(0,i.q)(o,[10,Math.max(10,d-u)]);c.style.minWidth=s+"px",c.style.right=f+"px"}let o=m(),s=window.innerHeight-20,u=x.scrollHeight,d=window.getComputedStyle(f),h=parseInt(d.borderTopWidth,10),p=parseInt(d.paddingTop,10),g=parseInt(d.borderBottomWidth,10),y=h+p+u+parseInt(d.paddingBottom,10)+g,w=Math.min(5*b.offsetHeight,y),S=window.getComputedStyle(x),C=parseInt(S.paddingTop,10),E=parseInt(S.paddingBottom,10),j=e.top+e.height/2-10,T=b.offsetHeight/2,A=h+p+(b.offsetTop+T);if(A<=j){let e=o.length>0&&b===o[o.length-1].ref.current;c.style.bottom="0px";let t=Math.max(s-j,T+(e?E:0)+(f.clientHeight-x.offsetTop-x.offsetHeight)+g);c.style.height=A+t+"px"}else{let e=o.length>0&&b===o[0].ref.current;c.style.top="0px";let t=Math.max(j,h+x.offsetTop+(e?C:0)+T);c.style.height=t+(y-A)+"px",x.scrollTop=A-j+x.offsetTop}c.style.margin="".concat(10,"px 0"),c.style.minHeight=w+"px",c.style.maxHeight=s+"px",null==a||a(),requestAnimationFrame(()=>v.current=!0)}},[m,l.trigger,l.valueNode,c,f,x,b,k,l.dir,a]);(0,w.N)(()=>C(),[C]);let[E,T]=n.useState();(0,w.N)(()=>{f&&T(window.getComputedStyle(f).zIndex)},[f]);let A=n.useCallback(e=>{e&&!0===y.current&&(C(),null==S||S(),y.current=!1)},[C,S]);return(0,j.jsx)(J,{scope:r,contentWrapper:c,shouldExpandOnScrollRef:v,onScrollButtonChange:A,children:(0,j.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:(0,j.jsx)(g.s.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Z.displayName="SelectItemAlignedPosition";var Q=n.forwardRef((e,t)=>{let{__scopeSelect:r,align:n="start",collisionPadding:a=10,...i}=e,o=D(r);return(0,j.jsx)(m.UC,{...o,...i,ref:t,align:n,collisionPadding:a,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Q.displayName="SelectPopperPosition";var[J,ee]=O(K,{}),et="SelectViewport",er=n.forwardRef((e,t)=>{let{__scopeSelect:r,nonce:a,...i}=e,l=G(et,r),u=ee(et,r),c=(0,s.s)(t,l.onViewportChange),d=n.useRef(0);return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),(0,j.jsx)(P.Slot,{scope:r,children:(0,j.jsx)(g.s.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:(0,o.m)(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:n}=u;if((null==n?void 0:n.current)&&r){let e=Math.abs(d.current-t.scrollTop);if(e>0){let n=window.innerHeight-20,a=Math.max(parseFloat(r.style.minHeight),parseFloat(r.style.height));if(a0?l:0,r.style.justifyContent="flex-end")}}}d.current=t.scrollTop})})})]})});er.displayName=et;var en="SelectGroup",[ea,ei]=O(en),eo=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,a=(0,p.B)();return(0,j.jsx)(ea,{scope:r,id:a,children:(0,j.jsx)(g.s.div,{role:"group","aria-labelledby":a,...n,ref:t})})});eo.displayName=en;var el="SelectLabel",es=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,a=ei(el,r);return(0,j.jsx)(g.s.div,{id:a.id,...n,ref:t})});es.displayName=el;var eu="SelectItem",[ec,ed]=O(eu),ef=n.forwardRef((e,t)=>{let{__scopeSelect:r,value:a,disabled:i=!1,textValue:l,...u}=e,c=I(eu,r),d=G(eu,r),f=c.value===a,[h,m]=n.useState(null!=l?l:""),[v,y]=n.useState(!1),x=(0,s.s)(t,e=>{var t;return null==(t=d.itemRefCallback)?void 0:t.call(d,e,a,i)}),b=(0,p.B)(),w=n.useRef("touch"),k=()=>{i||(c.onValueChange(a),c.onOpenChange(!1))};if(""===a)throw Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,j.jsx)(ec,{scope:r,value:a,disabled:i,textId:b,isSelected:f,onItemTextChange:n.useCallback(e=>{m(t=>{var r;return t||(null!=(r=null==e?void 0:e.textContent)?r:"").trim()})},[]),children:(0,j.jsx)(P.ItemSlot,{scope:r,value:a,disabled:i,textValue:h,children:(0,j.jsx)(g.s.div,{role:"option","aria-labelledby":b,"data-highlighted":v?"":void 0,"aria-selected":f&&v,"data-state":f?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...u,ref:x,onFocus:(0,o.m)(u.onFocus,()=>y(!0)),onBlur:(0,o.m)(u.onBlur,()=>y(!1)),onClick:(0,o.m)(u.onClick,()=>{"mouse"!==w.current&&k()}),onPointerUp:(0,o.m)(u.onPointerUp,()=>{"mouse"===w.current&&k()}),onPointerDown:(0,o.m)(u.onPointerDown,e=>{w.current=e.pointerType}),onPointerMove:(0,o.m)(u.onPointerMove,e=>{if(w.current=e.pointerType,i){var t;null==(t=d.onItemLeave)||t.call(d)}else"mouse"===w.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,o.m)(u.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null==(t=d.onItemLeave)||t.call(d)}}),onKeyDown:(0,o.m)(u.onKeyDown,e=>{var t;((null==(t=d.searchRef)?void 0:t.current)===""||" "!==e.key)&&(A.includes(e.key)&&k()," "===e.key&&e.preventDefault())})})})})});ef.displayName=eu;var eh="SelectItemText",ep=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:i,style:o,...l}=e,u=I(eh,r),c=G(eh,r),d=ed(eh,r),f=F(eh,r),[h,p]=n.useState(null),m=(0,s.s)(t,e=>p(e),d.onItemTextChange,e=>{var t;return null==(t=c.itemTextRefCallback)?void 0:t.call(c,e,d.value,d.disabled)}),v=null==h?void 0:h.textContent,y=n.useMemo(()=>(0,j.jsx)("option",{value:d.value,disabled:d.disabled,children:v},d.value),[d.disabled,d.value,v]),{onNativeOptionAdd:x,onNativeOptionRemove:b}=f;return(0,w.N)(()=>(x(y),()=>b(y)),[x,b,y]),(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(g.s.span,{id:d.textId,...l,ref:m}),d.isSelected&&u.valueNode&&!u.valueNodeHasChildren?a.createPortal(l.children,u.valueNode):null]})});ep.displayName=eh;var em="SelectItemIndicator";n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return ed(em,r).isSelected?(0,j.jsx)(g.s.span,{"aria-hidden":!0,...n,ref:t}):null}).displayName=em;var ev="SelectScrollUpButton",eg=n.forwardRef((e,t)=>{let r=G(ev,e.__scopeSelect),a=ee(ev,e.__scopeSelect),[i,o]=n.useState(!1),l=(0,s.s)(t,a.onScrollButtonChange);return(0,w.N)(()=>{if(r.viewport&&r.isPositioned){let e=function(){o(t.scrollTop>0)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),i?(0,j.jsx)(eb,{...e,ref:l,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});eg.displayName=ev;var ey="SelectScrollDownButton",ex=n.forwardRef((e,t)=>{let r=G(ey,e.__scopeSelect),a=ee(ey,e.__scopeSelect),[i,o]=n.useState(!1),l=(0,s.s)(t,a.onScrollButtonChange);return(0,w.N)(()=>{if(r.viewport&&r.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;o(Math.ceil(t.scrollTop)t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),i?(0,j.jsx)(eb,{...e,ref:l,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});ex.displayName=ey;var eb=n.forwardRef((e,t)=>{let{__scopeSelect:r,onAutoScroll:a,...i}=e,l=G("SelectScrollButton",r),s=n.useRef(null),u=N(r),c=n.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return n.useEffect(()=>()=>c(),[c]),(0,w.N)(()=>{var e;let t=u().find(e=>e.ref.current===document.activeElement);null==t||null==(e=t.ref.current)||e.scrollIntoView({block:"nearest"})},[u]),(0,j.jsx)(g.s.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:(0,o.m)(i.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(a,50))}),onPointerMove:(0,o.m)(i.onPointerMove,()=>{var e;null==(e=l.onItemLeave)||e.call(l),null===s.current&&(s.current=window.setInterval(a,50))}),onPointerLeave:(0,o.m)(i.onPointerLeave,()=>{c()})})});n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return(0,j.jsx)(g.s.div,{"aria-hidden":!0,...n,ref:t})}).displayName="SelectSeparator";var ew="SelectArrow";n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,a=D(r),i=I(ew,r),o=G(ew,r);return i.open&&"popper"===o.position?(0,j.jsx)(m.i3,{...a,...n,ref:t}):null}).displayName=ew;var ek=n.forwardRef((e,t)=>{let{__scopeSelect:r,value:a,...i}=e,o=n.useRef(null),l=(0,s.s)(t,o),u=(0,k.Z)(a);return n.useEffect(()=>{let e=o.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(u!==a&&t){let r=new Event("change",{bubbles:!0});t.call(e,a),e.dispatchEvent(r)}},[u,a]),(0,j.jsx)(g.s.select,{...i,style:{...S.Qg,...i.style},ref:l,defaultValue:a})});function eS(e){return""===e||void 0===e}function eC(e){let t=(0,x.c)(e),r=n.useRef(""),a=n.useRef(0),i=n.useCallback(e=>{let n=r.current+e;t(n),function e(t){r.current=t,window.clearTimeout(a.current),""!==t&&(a.current=window.setTimeout(()=>e(""),1e3))}(n)},[t]),o=n.useCallback(()=>{r.current="",window.clearTimeout(a.current)},[]);return n.useEffect(()=>()=>window.clearTimeout(a.current),[]),[r,i,o]}function eE(e,t,r){var n,a;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=r?e.indexOf(r):-1,l=(n=e,a=Math.max(o,0),n.map((e,t)=>n[(a+t)%n.length]));1===i.length&&(l=l.filter(e=>e!==r));let s=l.find(e=>e.textValue.toLowerCase().startsWith(i.toLowerCase()));return s!==r?s:void 0}ek.displayName="SelectBubbleInput";var ej=_,eT=B,eA=U,eR=W,eP=q,eN=er,eM=eo,eO=es,eD=ef,eL=ep,eI=eg,eV=ex},4272:(e,t,r)=>{"use strict";r.d(t,{y:()=>o});var n=r(1335),a=r(18476),i=r(9064);let o={test:e=>i.B.test(e)||n.u.test(e)||a.V.test(e),parse:e=>i.B.test(e)?i.B.parse(e):a.V.test(e)?a.V.parse(e):n.u.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?i.B.transform(e):a.V.transform(e),getAnimatableNone:e=>{let t=o.parse(e);return t.alpha=0,o.transform(t)}}},6168:(e,t,r)=>{"use strict";r.d(t,{K:()=>o});var n=r(95155),a=r(12115);let i=(0,r(74466).F)(["aspect-square","duration-200","ease-in-out","focus-visible:dark:ring-offset-neutral-1","focus-visible:dark:ring-secondary-3","focus-visible:outline-hidden","focus-visible:ring-2","focus-visible:ring-offset-2","focus-visible:ring-offset-neutral-8","focus-visible:ring-secondary-2","inline-flex","items-center","justify-center","m-0","motion-reduce:transition-none","transition-colors"],{compoundVariants:[{class:["bg-primary-2","dark:aria-disabled:text-neutral-8/75","aria-disabled:bg-primary-1/50","aria-disabled:text-neutral-8","hover:bg-primary-1","text-neutral-8","visited:text-neutral-8"],colorScheme:"primary-2",variant:"contained"},{class:["border-primary-2","aria-disabled:border-primary-2/50","aria-disabled:text-primary-2/50","hover:bg-primary-3/20","text-primary-2","visited:text-primary-2"],colorScheme:"primary-2",variant:"outlined"},{class:["bg-secondary-1","dark:aria-disabled:text-neutral-8/75","aria-disabled:bg-secondary-1/50","aria-disabled:text-neutral-8","hover:bg-secondary-1/90","text-neutral-8","visited:text-neutral-8"],colorScheme:"secondary-1",variant:"contained"},{class:["border-secondary-1","aria-disabled:border-secondary-1/50","aria-disabled:text-secondary-1/50","hover:bg-secondary-3/20","text-secondary-1","visited:text-secondary-1"],colorScheme:"secondary-1",variant:"outlined"},{class:["bg-neutral-2","dark:bg-neutral-6","dark:aria-disabled:bg-neutral-6/50","dark:aria-disabled:text-neutral-2/90","dark:hover:bg-neutral-8","dark:text-neutral-2","dark:visited:text-neutral-2","aria-disabled:bg-neutral-2/50","aria-disabled:text-neutral-6","hover:bg-neutral-3","text-neutral-6","visited:text-neutral-6"],colorScheme:"neutral-2",ignoreTheme:!1,variant:"contained"},{class:["bg-neutral-2","aria-disabled:bg-neutral-2/50","aria-disabled:text-neutral-6","hover:bg-neutral-3","text-neutral-6","visited:text-neutral-6"],colorScheme:"neutral-2",ignoreTheme:!0,variant:"contained"},{class:["border-neutral-2","dark:border-neutral-6","dark:aria-disabled:border-neutral-6/50","dark:aria-disabled:text-neutral-6/50","dark:hover:bg-neutral-6/20","dark:text-neutral-6","dark:visited:text-neutral-6","aria-disabled:border-neutral-2/50","aria-disabled:text-neutral-2/50","hover:bg-neutral-6","text-neutral-2","visited:text-neutral-2"],colorScheme:"neutral-2",ignoreTheme:!1,variant:"outlined"},{class:["border-neutral-2","aria-disabled:border-neutral-2/50","aria-disabled:text-neutral-2/50","hover:bg-neutral-6","text-neutral-2","visited:text-neutral-2"],colorScheme:"neutral-2",ignoreTheme:!0,variant:"outlined"},{class:["bg-neutral-3","dark:bg-neutral-8","dark:aria-disabled:bg-neutral-8/50","dark:aria-disabled:text-neutral-3/90","dark:hover:bg-neutral-6","dark:text-neutral-3","dark:visited:text-neutral-3","aria-disabled:bg-neutral-3/50","aria-disabled:text-neutral-8","hover:bg-neutral-2","text-neutral-8","visited:text-neutral-8"],colorScheme:"neutral-3",ignoreTheme:!1,variant:"contained"},{class:["bg-neutral-3","aria-disabled:bg-neutral-3/50","aria-disabled:text-neutral-8","hover:bg-neutral-2","text-neutral-8","visited:text-neutral-8"],colorScheme:"neutral-3",ignoreTheme:!0,variant:"contained"},{class:["border-neutral-3","dark:border-neutral-8","dark:aria-disabled:border-neutral-8/50","dark:aria-disabled:text-neutral-8/50","dark:hover:bg-neutral-8/20","dark:text-neutral-8","dark:visited:text-neutral-8","aria-disabled:border-neutral-3/50","aria-disabled:text-neutral-3/50","hover:bg-neutral-6","text-neutral-3","visited:text-neutral-3"],colorScheme:"neutral-3",ignoreTheme:!1,variant:"outlined"},{class:["border-neutral-3","aria-disabled:border-neutral-3/50","aria-disabled:text-neutral-3/50","hover:bg-neutral-6","text-neutral-3","visited:text-neutral-3"],colorScheme:"neutral-3",ignoreTheme:!0,variant:"outlined"},{class:["bg-neutral-6","dark:bg-neutral-2","dark:aria-disabled:bg-neutral-2/50","dark:aria-disabled:text-neutral-6/50","dark:hover:bg-neutral-3","dark:text-neutral-6","dark:visited:text-neutral-6","aria-disabled:bg-neutral-6/50","aria-disabled:text-neutral-2/50","hover:bg-neutral-5","text-neutral-2","visited:text-neutral-2"],colorScheme:"neutral-6",ignoreTheme:!1,variant:"contained"},{class:["bg-neutral-6","aria-disabled:bg-neutral-6/50","aria-disabled:text-neutral-2/50","hover:bg-neutral-5","text-neutral-2","visited:text-neutral-2"],colorScheme:"neutral-6",ignoreTheme:!0,variant:"contained"},{class:["border-neutral-6","dark:border-neutral-2","dark:aria-disabled:border-neutral-2/50","dark:aria-disabled:text-neutral-2/50","dark:hover:bg-neutral-3","dark:text-neutral-2","dark:visited:text-neutral-2","aria-disabled:border-neutral-6/50","aria-disabled:text-neutral-6/50","hover:bg-neutral-8","text-neutral-6","visited:text-neutral-6"],colorScheme:"neutral-6",ignoreTheme:!1,variant:"outlined"},{class:["border-neutral-6","aria-disabled:border-neutral-6/50","aria-disabled:text-neutral-6/50","hover:bg-neutral-8","text-neutral-6","visited:text-neutral-6"],colorScheme:"neutral-6",ignoreTheme:!0,variant:"outlined"},{class:["bg-neutral-8","dark:bg-neutral-3","dark:aria-disabled:bg-neutral-3/50","dark:aria-disabled:text-neutral-8/70","dark:hover:bg-neutral-4","dark:outline-0","dark:shadow-none","dark:text-neutral-8","dark:visited:text-neutral-8","aria-disabled:bg-neutral-8/50","aria-disabled:outline-neutral-6/70","aria-disabled:shadow-[0px_4px_20px_0px_rgba(0,0,0,0.03)]","aria-disabled:text-neutral-3/70","hover:bg-neutral-6","outline-1","outline-neutral-6","shadow-[0px_4px_20px_0px_rgba(0,0,0,0.06)]","text-neutral-3","visited:text-neutral-3"],colorScheme:"neutral-8",ignoreTheme:!1,variant:"contained"},{class:["bg-neutral-8","aria-disabled:bg-neutral-8/50","aria-disabled:outline-neutral-6/70","aria-disabled:shadow-[0_4px_20px_0_rgba(0,0,0,0.03)]","aria-disabled:text-neutral-3/70","hover:bg-neutral-6","outline-1","outline-neutral-6","shadow-[0_4px_20px_0_rgba(0,0,0,0.06)]","text-neutral-3","visited:text-neutral-3"],colorScheme:"neutral-8",ignoreTheme:!0,variant:"contained"},{class:["border-neutral-8","dark:border-neutral-3","dark:aria-disabled:border-neutral-3/50","dark:aria-disabled:text-neutral-3/50","dark:hover:bg-neutral-8/20","dark:text-neutral-3","dark:visited:text-neutral-3","aria-disabled:border-neutral-8/50","aria-disabled:text-neutral-8/50","hover:bg-neutral-7","text-neutral-8","visited:text-neutral-8"],colorScheme:"neutral-8",ignoreTheme:!1,variant:"outlined"},{class:["border-neutral-8","aria-disabled:border-neutral-8/50","aria-disabled:text-neutral-8/50","hover:bg-neutral-7","text-neutral-8","visited:text-neutral-8"],colorScheme:"neutral-8",ignoreTheme:!0,variant:"outlined"},{class:["!from-neutral-3","dark:!from-neutral-8"],ripple:!0,variant:"outlined"},{class:["!from-neutral-3","dark:!from-neutral-8"],colorScheme:["neutral-6","neutral-8","transparent"],ripple:!0},{class:"p-[.2rem]",compact:!0,size:"small"},{class:"p-1.5",compact:!1,size:"small"},{class:"p-1.5",compact:!0,size:"medium"},{class:"p-2",compact:!1,size:"medium"},{class:"p-1.5",compact:!0,size:"large"},{class:"p-3",compact:!1,size:"large"}],defaultVariants:{colorScheme:"primary-2",disabled:!1,ripple:!0,rounded:!1,size:"medium",variant:"contained"},variants:{colorScheme:{"neutral-2":[],"neutral-3":[],"neutral-6":[],"neutral-8":[],"primary-2":[],"secondary-1":[],transparent:["bg-transparent","aria-disabled:opacity-50","dark:aria-disabled:opacity-50","hover:bg-neutral-1/25","dark:hover:bg-neutral-8/25"]},compact:{false:[],true:[]},disabled:{false:"cursor-pointer",true:"pointer-events-none"},ignoreTheme:{false:[],true:[]},ripple:{true:"ripple"},rounded:{false:"rounded-lg",true:"rounded-full"},size:{large:["max-h-12","max-w-12","min-h-12","min-w-12"],medium:["max-h-10","max-w-10","min-h-10","min-w-10"],small:["max-h-8","max-w-8","min-h-8","min-w-8"]},variant:{contained:["border-solid","border","border-transparent"],outlined:["bg-transparent","border-solid","border","aria-disabled:bg-transparent","aria-disabled:dark:bg-transparent","aria-disabled:hover:bg-transparent"]}}}),o=(0,a.forwardRef)(({as:e="button",children:t,className:r,colorScheme:a="primary-2",compact:o=!1,disabled:l=!1,ignoreTheme:s=!1,opacity:u=100,ripple:c=!0,rounded:d=!1,size:f="medium",variant:h="contained",...p},m)=>{let v=p.style||{};return u<100&&(v.opacity=.01*u),(0,n.jsx)(e,{"aria-disabled":l,className:i({className:r,colorScheme:a,compact:o,disabled:l,ignoreTheme:s,ripple:c,rounded:d,size:f,variant:h}),disabled:l,...p,"data-ids":"IconButton",ref:m,style:v,children:t})});o.displayName="IconButton"},6369:(e,t,r)=>{"use strict";r.d(t,{P:()=>aT});var n=r(12115);let a=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],i=new Set(a),o=e=>180*e/Math.PI,l=e=>u(o(Math.atan2(e[1],e[0]))),s={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:l,rotateZ:l,skewX:e=>o(Math.atan(e[1])),skewY:e=>o(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},u=e=>((e%=360)<0&&(e+=360),e),c=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),d=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),f={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:c,scaleY:d,scale:e=>(c(e)+d(e))/2,rotateX:e=>u(o(Math.atan2(e[6],e[5]))),rotateY:e=>u(o(Math.atan2(-e[2],e[0]))),rotateZ:l,rotate:l,skewX:e=>o(Math.atan(e[4])),skewY:e=>o(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function h(e){return+!!e.includes("scale")}function p(e,t){let r,n;if(!e||"none"===e)return h(t);let a=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(a)r=f,n=a;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=s,n=t}if(!n)return h(t);let i=r[t],o=n[1].split(",").map(m);return"function"==typeof i?i(o):o[i]}function m(e){return parseFloat(e.trim())}var v=r(78606);function g({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}var y=r(33210);function x(e){return void 0===e||1===e}function b({scale:e,scaleX:t,scaleY:r}){return!x(e)||!x(t)||!x(r)}function w(e){return b(e)||k(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function k(e){var t,r;return(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r}function S(e,t,r,n,a){return void 0!==a&&(e=n+a*(e-n)),n+r*(e-n)+t}function C(e,t=0,r=1,n,a){e.min=S(e.min,t,r,n,a),e.max=S(e.max,t,r,n,a)}function E(e,{x:t,y:r}){C(e.x,t.translate,t.scale,t.originPoint),C(e.y,r.translate,r.scale,r.originPoint)}function j(e,t){e.min=e.min+t,e.max=e.max+t}function T(e,t,r,n,a=.5){let i=(0,y.k)(e.min,e.max,a);C(e,t,r,i,n)}function A(e,t){T(e.x,t.x,t.scaleX,t.scale,t.originX),T(e.y,t.y,t.scaleY,t.scale,t.originY)}function R(e,t){return g(function(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}let P=new Set(["width","height","top","left","right","bottom",...a]);var N=r(57887),M=r(34158);let O=e=>t=>t.test(e),D=[N.ai,M.px,M.KN,M.uj,M.vw,M.vh,{test:e=>"auto"===e,parse:e=>e}],L=e=>D.find(O(e));var I=r(54542);let V=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),F=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,_=e=>e===N.ai||e===M.px,z=new Set(["x","y","z"]),B=a.filter(e=>!z.has(e)),H={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>p(t,"x"),y:(e,{transform:t})=>p(t,"y")};H.translateX=H.x,H.translateY=H.y;var U=r(69515);let W=new Set,K=!1,q=!1,$=!1;function G(){if(q){let e=Array.from(W).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),r=new Map;t.forEach(e=>{let t=function(e){let t=[];return B.forEach(r=>{let n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(+!!r.startsWith("scale")))}),t}(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,r])=>{e.getValue(t)?.set(r)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}q=!1,K=!1,W.forEach(e=>e.complete($)),W.clear()}function Y(){W.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(q=!0)})}class X{constructor(e,t,r,n,a,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=r,this.motionValue=n,this.element=a,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(W.add(this),K||(K=!0,U.Gt.read(Y),U.Gt.resolveKeyframes(G))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:r,motionValue:n}=this;if(null===e[0]){let a=n?.get(),i=e[e.length-1];if(void 0!==a)e[0]=a;else if(r&&t){let n=r.readValue(t,i);null!=n&&(e[0]=n)}void 0===e[0]&&(e[0]=i),n&&void 0===a&&n.set(e[0])}for(let t=1;t/^0[^.\s]+$/u.test(e);var Q=r(60010),J=r(30614);let ee=new Set(["brightness","contrast","saturate","opacity"]);function et(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=r.match(J.S)||[];if(!n)return e;let a=r.replace(n,""),i=+!!ee.has(t);return n!==r&&(i*=100),t+"("+i+a+")"}let er=/\b([a-z-]*)\(.*?\)/gu,en={...Q.f,getAnimatableNone:e=>{let t=e.match(er);return t?t.map(et).join(" "):e}};var ea=r(4272);let ei={...N.ai,transform:Math.round},eo={rotate:M.uj,rotateX:M.uj,rotateY:M.uj,rotateZ:M.uj,scale:N.hs,scaleX:N.hs,scaleY:N.hs,scaleZ:N.hs,skew:M.uj,skewX:M.uj,skewY:M.uj,distance:M.px,translateX:M.px,translateY:M.px,translateZ:M.px,x:M.px,y:M.px,z:M.px,perspective:M.px,transformPerspective:M.px,opacity:N.X4,originX:M.gQ,originY:M.gQ,originZ:M.px},el={borderWidth:M.px,borderTopWidth:M.px,borderRightWidth:M.px,borderBottomWidth:M.px,borderLeftWidth:M.px,borderRadius:M.px,radius:M.px,borderTopLeftRadius:M.px,borderTopRightRadius:M.px,borderBottomRightRadius:M.px,borderBottomLeftRadius:M.px,width:M.px,maxWidth:M.px,height:M.px,maxHeight:M.px,top:M.px,right:M.px,bottom:M.px,left:M.px,padding:M.px,paddingTop:M.px,paddingRight:M.px,paddingBottom:M.px,paddingLeft:M.px,margin:M.px,marginTop:M.px,marginRight:M.px,marginBottom:M.px,marginLeft:M.px,backgroundPositionX:M.px,backgroundPositionY:M.px,...eo,zIndex:ei,fillOpacity:N.X4,strokeOpacity:N.X4,numOctaves:ei},es={...el,color:ea.y,backgroundColor:ea.y,outlineColor:ea.y,fill:ea.y,stroke:ea.y,borderColor:ea.y,borderTopColor:ea.y,borderRightColor:ea.y,borderBottomColor:ea.y,borderLeftColor:ea.y,filter:en,WebkitFilter:en},eu=e=>es[e];function ec(e,t){let r=eu(e);return r!==en&&(r=Q.f),r.getAnimatableNone?r.getAnimatableNone(t):void 0}let ed=new Set(["auto","none","0"]);class ef extends X{constructor(e,t,r,n,a){super(e,t,r,n,a,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:r}=this;if(!t||!t.current)return;super.readKeyframes();for(let r=0;r{e.getValue(t).set(r)}),this.resolveNoneKeyframes()}}let eh=e=>!!(e&&e.getVelocity);var ep=r(74261),em=r(60098);let ev=[...D,ea.y,Q.f],{schedule:eg}=(0,r(58437).I)(queueMicrotask,!1);var ey=r(75626);let ex={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"]},eb={};for(let e in ex)eb[e]={isEnabled:t=>ex[e].some(e=>!!t[e])};let ew=()=>({translate:0,scale:1,origin:0,originPoint:0}),ek=()=>({x:ew(),y:ew()}),eS=()=>({min:0,max:0}),eC=()=>({x:eS(),y:eS()});var eE=r(68972);let ej={current:null},eT={current:!1},eA=new WeakMap;function eR(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function eP(e){return"string"==typeof e||Array.isArray(e)}let eN=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],eM=["initial",...eN];function eO(e){return eR(e.animate)||eM.some(t=>eP(e[t]))}function eD(e){return!!(eO(e)||e.variants)}function eL(e){let t=[{},{}];return e?.values.forEach((e,r)=>{t[0][r]=e.get(),t[1][r]=e.getVelocity()}),t}function eI(e,t,r,n){if("function"==typeof t){let[a,i]=eL(n);t=t(void 0!==r?r:e.custom,a,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[a,i]=eL(n);t=t(void 0!==r?r:e.custom,a,i)}return t}let eV=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class eF{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,blockInitialAnimation:a,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=X,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=ep.k.now();this.renderScheduledAtthis.bindToMotionValue(t,e)),eT.current||function(){if(eT.current=!0,eE.B)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ej.current=e.matches;e.addEventListener("change",t),t()}else ej.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||ej.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),(0,U.WG)(this.notifyUpdate),(0,U.WG)(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let r;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=i.has(e);n&&this.onBindTransform&&this.onBindTransform();let a=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&U.Gt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{a(),r&&r(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in eb){let t=eb[e];if(!t)continue;let{isEnabled:r,Feature:n}=t;if(!this.features[e]&&n&&r(this.props)&&(this.features[e]=new n(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):eC()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;tt.variantChildren.delete(e)}addValue(e,t){let r=this.values.get(e);t!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=(0,em.OQ)(null===t?void 0:t,{owner:this}),this.addValue(e,r)),r}readValue(e,t){let r=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=r){if("string"==typeof r&&(V(r)||Z(r)))r=parseFloat(r);else{let n;n=r,!ev.find(O(n))&&Q.f.test(t)&&(r=ec(e,t))}this.setBaseTarget(e,eh(r)?r.get():r)}return eh(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){let n=eI(this.props,r,this.presenceContext?.custom);n&&(t=n[e])}if(r&&void 0!==t)return t;let n=this.getBaseTargetFromProps(this.props,e);return void 0===n||eh(n)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:n}on(e,t){return this.events[e]||(this.events[e]=new ey.v),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){eg.render(this.render)}}class e_ extends eF{constructor(){super(...arguments),this.KeyframeResolver=ef}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;eh(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}let ez=(e,t)=>t&&"number"==typeof e?t.transform(e):e,eB={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eH=a.length;function eU(e,t,r){let{style:n,vars:o,transformOrigin:l}=e,s=!1,u=!1;for(let e in t){let r=t[e];if(i.has(e)){s=!0;continue}if((0,v.j)(e)){o[e]=r;continue}{let t=ez(r,el[e]);e.startsWith("origin")?(u=!0,l[e]=t):n[e]=t}}if(!t.transform&&(s||r?n.transform=function(e,t,r){let n="",i=!0;for(let o=0;o{let{transform:r="none"}=getComputedStyle(e);return p(r,t)})(e,t);{let r=window.getComputedStyle(e),n=((0,v.j)(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return R(e,t)}build(e,t,r){eU(e,t,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return e$(e,t,r)}}let eY=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),eX={offset:"stroke-dashoffset",array:"stroke-dasharray"},eZ={offset:"strokeDashoffset",array:"strokeDasharray"};function eQ(e,{attrX:t,attrY:r,attrScale:n,pathLength:a,pathSpacing:i=1,pathOffset:o=0,...l},s,u,c){if(eU(e,l,u),s){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=c?.transformBox??"fill-box",delete d.transformBox),void 0!==t&&(d.x=t),void 0!==r&&(d.y=r),void 0!==n&&(d.scale=n),void 0!==a&&function(e,t,r=1,n=0,a=!0){e.pathLength=1;let i=a?eX:eZ;e[i.offset]=M.px.transform(-n);let o=M.px.transform(t),l=M.px.transform(r);e[i.array]=`${o} ${l}`}(d,a,i,o,!1)}let eJ=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"]),e0=e=>"string"==typeof e&&"svg"===e.toLowerCase();function e1(e,t,r){let n=e$(e,t,r);for(let r in e)(eh(e[r])||eh(t[r]))&&(n[-1!==a.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return n}class e2 extends e_{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=eC}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(i.has(t)){let e=eu(t);return e&&e.default||0}return t=eJ.has(t)?t:eY(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return e1(e,t,r)}build(e,t,r){eQ(e,t,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,t,r,n){for(let r in eW(e,t,void 0,n),t.attrs)e.setAttribute(eJ.has(r)?r:eY(r),t.attrs[r])}mount(e){this.isSVGTag=e0(e.tagName),super.mount(e)}}let e5=["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 e3(e){if("string"!=typeof e||e.includes("-"));else if(e5.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var e6=r(95155),e4=r(90869);let e7=(0,n.createContext)({strict:!1});var e8=r(51508);let e9=(0,n.createContext)({});function te(e){return Array.isArray(e)?e.join(" "):e}let tt=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function tr(e,t,r){for(let n in t)eh(t[n])||eq(n,r)||(e[n]=t[n])}let tn=()=>({...tt(),attrs:{}}),ta=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ti(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ta.has(e)}let to=e=>!ti(e);try{!function(e){"function"==typeof e&&(to=t=>t.startsWith("on")?!ti(t):e(t))}(require("@emotion/is-prop-valid").default)}catch{}var tl=r(80845),ts=r(82885);function tu(e){return eh(e)?e.get():e}let tc=e=>(t,r)=>{let a=(0,n.useContext)(e9),i=(0,n.useContext)(tl.t),o=()=>(function(e,t,r,n){let{scrapeMotionValuesFromProps:a,createRenderState:i}=e;return{latestValues:function(e,t,r,n){let a={},i=n(e,{});for(let e in i)a[e]=tu(i[e]);let{initial:o,animate:l}=e,s=eO(e),u=eD(e);t&&u&&!s&&!1!==e.inherit&&(void 0===o&&(o=t.initial),void 0===l&&(l=t.animate));let c=!!r&&!1===r.initial,d=(c=c||!1===o)?l:o;if(d&&"boolean"!=typeof d&&!eR(d)){let t=Array.isArray(d)?d:[d];for(let r=0;r1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;i&&function(e){for(let t in e)eb[t]={...eb[t],...e[t]}}(i);let l=e3(e)?tf:td;function s(t,r){var i;let s,u={...(0,n.useContext)(e8.Q),...t,layoutId:function(e){let{layoutId:t}=e,r=(0,n.useContext)(e4.L).id;return r&&void 0!==t?r+"-"+t:t}(t)},{isStatic:c}=u,d=function(e){let{initial:t,animate:r}=function(e,t){if(eO(e)){let{initial:t,animate:r}=e;return{initial:!1===t||eP(t)?t:void 0,animate:eP(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,n.useContext)(e9));return(0,n.useMemo)(()=>({initial:t,animate:r}),[te(t),te(r)])}(t),f=l(t,c);if(!c&&eE.B){(0,n.useContext)(e7).strict;let t=function(e){let{drag:t,layout:r}=eb;if(!t&&!r)return{};let n={...t,...r};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==r?void 0:r.isEnabled(e))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(u);s=t.MeasureLayout,d.visualElement=function(e,t,r,a,i){var o,l,s,u;let{visualElement:c}=(0,n.useContext)(e9),d=(0,n.useContext)(e7),f=(0,n.useContext)(tl.t),h=(0,n.useContext)(e8.Q).reducedMotion,p=(0,n.useRef)(null);a=a||d.renderer,!p.current&&a&&(p.current=a(e,{visualState:t,parent:c,props:r,presenceContext:f,blockInitialAnimation:!!f&&!1===f.initial,reducedMotionConfig:h}));let m=p.current,v=(0,n.useContext)(tv);m&&!m.projection&&i&&("html"===m.type||"svg"===m.type)&&function(e,t,r,n){let{layoutId:a,layout:i,drag:o,dragConstraints:l,layoutScroll:s,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:!!o||l&&tp(l),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:n,crossfade:c,layoutScroll:s,layoutRoot:u})}(p.current,r,i,v);let g=(0,n.useRef)(!1);(0,n.useInsertionEffect)(()=>{m&&g.current&&m.update(r,f)});let y=r[tm],x=(0,n.useRef)(!!y&&!(null==(o=(l=window).MotionHandoffIsComplete)?void 0:o.call(l,y))&&(null==(s=(u=window).MotionHasOptimisedAnimation)?void 0:s.call(u,y)));return(0,tg.E)(()=>{m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),x.current&&m.animationState&&m.animationState.animateChanges())}),(0,n.useEffect)(()=>{m&&(!x.current&&m.animationState&&m.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var e,t;null==(e=(t=window).MotionHandoffMarkAsComplete)||e.call(t,y)}),x.current=!1),m.enteringChildren=void 0)}),m}(e,f,u,o,t.ProjectionNode)}return(0,e6.jsxs)(e9.Provider,{value:d,children:[s&&d.visualElement?(0,e6.jsx)(s,{visualElement:d.visualElement,...u}):null,function(e,t,r,a,i){let{latestValues:o}=a,l=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=(e3(e)?function(e,t,r,a){let i=(0,n.useMemo)(()=>{let r=tn();return eQ(r,t,e0(a),e.transformTemplate,e.style),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};tr(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let r={},a=function(e,t){let r=e.style||{},a={};return tr(a,r,e),Object.assign(a,function(e,t){let{transformTemplate:r}=e;return(0,n.useMemo)(()=>{let e=tt();return eU(e,t,r),Object.assign({},e.vars,e.style)},[t])}(e,t)),a}(e,t);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=a,r})(t,o,i,e),u=function(e,t,r){let n={};for(let a in e)("values"!==a||"object"!=typeof e.values)&&(to(a)||!0===r&&ti(a)||!t&&!ti(a)||e.draggable&&a.startsWith("onDrag"))&&(n[a]=e[a]);return n}(t,"string"==typeof e,l),c=e!==n.Fragment?{...u,...s,ref:r}:{},{children:d}=t,f=(0,n.useMemo)(()=>eh(d)?d.get():d,[d]);return(0,n.createElement)(e,{...c,children:f})}(e,t,(i=d.visualElement,(0,n.useCallback)(e=>{e&&f.onMount&&f.onMount(e),i&&(e?i.mount(e):i.unmount()),r&&("function"==typeof r?r(e):tp(r)&&(r.current=e))},[i])),f,c,a)]})}s.displayName="motion.".concat("string"==typeof e?e:"create(".concat(null!=(r=null!=(t=e.displayName)?t:e.name)?r:"",")"));let u=(0,n.forwardRef)(s);return u[th]=e,u}function tx(e,t,r){let n=e.getProps();return eI(n,t,void 0!==r?r:n.custom,e)}function tb(e,t){return e?.[t]??e?.default??e}let tw=e=>Array.isArray(e);var tk=r(23387);function tS(e,t){let r=e.getValue("willChange");if(eh(r)&&r.add)return r.add(t);if(!r&&tk.W.WillChange){let r=new tk.W.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function tC(e){e.duration=0,e.type="keyframes"}var tE=r(53191),tj=r(53678);let tT=e=>1e3*e,tA={layout:0,mainThread:0,waapi:0};var tR=r(26087);let tP=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>U.Gt.update(t,e),stop:()=>(0,U.WG)(t),now:()=>U.uv.isProcessing?U.uv.timestamp:ep.k.now()}},tN=(e,t,r=10)=>{let n="",a=Math.max(Math.round(t/r),2);for(let t=0;t=2e4?1/0:t}var tO=r(62923);function tD(e,t,r){let n=Math.max(t-5,0);return(0,tO.f)(r-e(n),t-n)}let tL={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 tI(e,t){return e*Math.sqrt(1-t*t)}let tV=["duration","bounce"],tF=["stiffness","damping","mass"];function t_(e,t){return t.some(t=>void 0!==e[t])}function tz(e=tL.visualDuration,t=tL.bounce){let r,n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:a,restDelta:i}=n,o=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],s={done:!1,value:o},{stiffness:u,damping:c,mass:d,duration:f,velocity:h,isResolvedFromDuration:p}=function(e){let t={velocity:tL.velocity,stiffness:tL.stiffness,damping:tL.damping,mass:tL.mass,isResolvedFromDuration:!1,...e};if(!t_(e,tF)&&t_(e,tV))if(e.visualDuration){let r=2*Math.PI/(1.2*e.visualDuration),n=r*r,a=2*(0,tj.q)(.05,1,1-(e.bounce||0))*Math.sqrt(n);t={...t,mass:tL.mass,stiffness:n,damping:a}}else{let r=function({duration:e=tL.duration,bounce:t=tL.bounce,velocity:r=tL.velocity,mass:n=tL.mass}){let a,i;(0,I.$)(e<=tT(tL.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=(0,tj.q)(tL.minDamping,tL.maxDamping,o),e=(0,tj.q)(tL.minDuration,tL.maxDuration,e/1e3),o<1?(a=t=>{let n=t*o,a=n*e;return .001-(n-r)/tI(t,o)*Math.exp(-a)},i=t=>{let n=t*o*e,i=Math.pow(o,2)*Math.pow(t,2)*e,l=Math.exp(-n),s=tI(Math.pow(t,2),o);return(n*r+r-i)*l*(-a(t)+.001>0?-1:1)/s}):(a=t=>-.001+Math.exp(-t*e)*((t-r)*e+1),i=t=>e*e*(r-t)*Math.exp(-t*e));let l=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(a,i,5/e);if(e=tT(e),isNaN(l))return{stiffness:tL.stiffness,damping:tL.damping,duration:e};{let t=Math.pow(l,2)*n;return{stiffness:t,damping:2*o*Math.sqrt(n*t),duration:e}}}(e);(t={...t,...r,mass:tL.mass}).isResolvedFromDuration=!0}return t}({...n,velocity:-((n.velocity||0)/1e3)}),m=h||0,v=c/(2*Math.sqrt(u*d)),g=l-o,y=Math.sqrt(u/d)/1e3,x=5>Math.abs(g);if(a||(a=x?tL.restSpeed.granular:tL.restSpeed.default),i||(i=x?tL.restDelta.granular:tL.restDelta.default),v<1){let e=tI(y,v);r=t=>l-Math.exp(-v*y*t)*((m+v*y*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}else if(1===v)r=e=>l-Math.exp(-y*e)*(g+(m+y*g)*e);else{let e=y*Math.sqrt(v*v-1);r=t=>{let r=Math.exp(-v*y*t),n=Math.min(e*t,300);return l-r*((m+v*y*g)*Math.sinh(n)+e*g*Math.cosh(n))/e}}let b={calculatedDuration:p&&f||null,next:e=>{let t=r(e);if(p)s.done=e>=f;else{let n=0===e?m:0;v<1&&(n=0===e?tT(m):tD(r,e,t));let o=Math.abs(l-t)<=i;s.done=Math.abs(n)<=a&&o}return s.value=s.done?l:t,s},toString:()=>{let e=Math.min(tM(b),2e4),t=tN(t=>b.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return b}function tB({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:a=10,bounceStiffness:i=500,modifyTarget:o,min:l,max:s,restDelta:u=.5,restSpeed:c}){let d,f,h=e[0],p={done:!1,value:h},m=r*t,v=h+m,g=void 0===o?v:o(v);g!==v&&(m=g-h);let y=e=>-m*Math.exp(-e/n),x=e=>g+y(e),b=e=>{let t=y(e),r=x(e);p.done=Math.abs(t)<=u,p.value=p.done?g:r},w=e=>{let t;if(t=p.value,void 0!==l&&ts){var r;d=e,f=tz({keyframes:[p.value,(r=p.value,void 0===l?s:void 0===s||Math.abs(l-r){let t=!1;return(f||void 0!==d||(t=!0,b(e),w(e)),void 0!==d&&e>=d)?f.next(e-d):(t||b(e),p)}}}tz.applyToOptions=e=>{let t=function(e,t=100,r){let n=r({...e,keyframes:[0,t]}),a=Math.min(tM(n),2e4);return{type:"keyframes",ease:e=>n.next(a*e).value/t,duration:a/1e3}}(e,100,tz);return e.ease=t.ease,e.duration=tT(t.duration),e.type="keyframes",e};var tH=r(19827);let tU=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function tW(e,t,r,n){return e===t&&r===n?tH.l:a=>0===a||1===a?a:tU(function(e,t,r,n,a){let i,o,l=0;do(i=tU(o=t+(r-t)/2,n,a)-e)>0?r=o:t=o;while(Math.abs(i)>1e-7&&++l<12);return o}(a,0,1,e,r),t,n)}let tK=tW(.42,0,1,1),tq=tW(0,0,.58,1),t$=tW(.42,0,.58,1),tG=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,tY=e=>t=>1-e(1-t),tX=tW(.33,1.53,.69,.99),tZ=tY(tX),tQ=tG(tZ),tJ=e=>(e*=2)<1?.5*tZ(e):.5*(2-Math.pow(2,-10*(e-1))),t0=e=>1-Math.sin(Math.acos(e)),t1=tY(t0),t2=tG(t0),t5=e=>Array.isArray(e)&&"number"==typeof e[0],t3={linear:tH.l,easeIn:tK,easeInOut:t$,easeOut:tq,circIn:t0,circInOut:t2,circOut:t1,backIn:tZ,backInOut:tQ,backOut:tX,anticipate:tJ},t6=e=>{if(t5(e)){(0,I.V)(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,r,n,a]=e;return tW(t,r,n,a)}return"string"==typeof e?((0,I.V)(void 0!==t3[e],`Invalid easing type '${e}'`,"invalid-easing-type"),t3[e]):e};var t4=r(6775),t7=r(45818);function t8({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){var a;let i=Array.isArray(n)&&"number"!=typeof n[0]?n.map(t6):t6(n),o={done:!1,value:t[0]},l=(a=r&&r.length===t.length?r:function(e){let t=[0];return!function(e,t){let r=e[e.length-1];for(let n=1;n<=t;n++){let a=(0,t7.q)(0,t,n);e.push((0,y.k)(r,1,a))}}(t,e.length-1),t}(t),a.map(t=>t*e)),s=(0,t4.G)(l,t,{ease:Array.isArray(i)?i:t.map(()=>i||t$).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=s(t),o.done=t>=e,o)}}let t9=e=>null!==e;function re(e,{repeat:t,repeatType:r="loop"},n,a=1){let i=e.filter(t9),o=a<0||t&&"loop"!==r&&t%2==1?0:i.length-1;return o&&void 0!==n?n:i[o]}let rt={decay:tB,inertia:tB,tween:t8,keyframes:t8,spring:tz};function rr(e){"string"==typeof e.type&&(e.type=rt[e.type])}class rn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let ra=e=>e/100;class ri extends rn{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==ep.k.now()&&this.tick(ep.k.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},tA.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;rr(e);let{type:t=t8,repeat:r=0,repeatDelay:n=0,repeatType:a,velocity:i=0}=e,{keyframes:o}=e,l=t||t8;l!==t8&&"number"!=typeof o[0]&&(this.mixKeyframes=(0,tE.F)(ra,(0,tR.j)(o[0],o[1])),o=[0,100]);let s=l({...e,keyframes:o});"mirror"===a&&(this.mirroredGenerator=l({...e,keyframes:[...o].reverse(),velocity:-i})),null===s.calculatedDuration&&(s.calculatedDuration=tM(s));let{calculatedDuration:u}=s;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(r+1)-n,this.generator=s}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let{generator:r,totalDuration:n,mixKeyframes:a,mirroredGenerator:i,resolvedDuration:o,calculatedDuration:l}=this;if(null===this.startTime)return r.next(0);let{delay:s=0,keyframes:u,repeat:c,repeatType:d,repeatDelay:f,type:h,onUpdate:p,finalKeyframe:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-n/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let v=this.currentTime-s*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?v<0:v>n;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let y=this.currentTime,x=r;if(c){let e=Math.min(this.currentTime,n)/o,t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,(t=Math.min(t,c+1))%2&&("reverse"===d?(r=1-r,f&&(r-=f/o)):"mirror"===d&&(x=i)),y=(0,tj.q)(0,1,r)*o}let b=g?{done:!1,value:u[0]}:x.next(y);a&&(b.value=a(b.value));let{done:w}=b;g||null===l||(w=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let k=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return k&&h!==tB&&(b.value=re(u,this.options,m,this.speed)),p&&p(b.value),k&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=tT(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(ep.k.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=tP,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let r=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=r):null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime||(this.startTime=t??r),"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(ep.k.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,tA.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function ro(e){let t;return()=>(void 0===t&&(t=e()),t)}let rl=ro(()=>void 0!==window.ScrollTimeline);var rs=r(24744);let ru={},rc=function(e,t){let r=ro(e);return()=>ru[t]??r()}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),rd=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,rf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:rd([0,.65,.55,1]),circOut:rd([.55,0,1,.45]),backIn:rd([.31,.01,.66,-.59]),backOut:rd([.33,1.53,.69,.99])};function rh(e){return"function"==typeof e&&"applyToOptions"in e}class rp extends rn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;let{element:t,name:r,keyframes:n,pseudoElement:a,allowFlatten:i=!1,finalKeyframe:o,onComplete:l}=e;this.isPseudoElement=!!a,this.allowFlatten=i,this.options=e,(0,I.V)("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let s=function({type:e,...t}){return rh(e)&&rc()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,r,{delay:n=0,duration:a=300,repeat:i=0,repeatType:o="loop",ease:l="easeOut",times:s}={},u){let c={[t]:r};s&&(c.offset=s);let d=function e(t,r){if(t)return"function"==typeof t?rc()?tN(t,r):"ease-out":t5(t)?rd(t):Array.isArray(t)?t.map(t=>e(t,r)||rf.easeOut):rf[t]}(l,a);Array.isArray(d)&&(c.easing=d),rs.Q.value&&tA.waapi++;let f={delay:n,duration:a,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:"reverse"===o?"alternate":"normal"};u&&(f.pseudoElement=u);let h=e.animate(c,f);return rs.Q.value&&h.finished.finally(()=>{tA.waapi--}),h}(t,r,n,s,a),!1===s.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){let e=re(n,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(e):function(e,t,r){t.startsWith("--")?e.style.setProperty(t,r):e.style[t]=r}(t,r,e),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){this.finishedTime=null,this.animation.currentTime=tT(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&rl())?(this.animation.timeline=e,tH.l):t(this)}}let rm={anticipate:tJ,backInOut:tQ,circInOut:t2};class rv extends rp{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in rm&&(e.ease=rm[e.ease])}(e),rr(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:r,onComplete:n,element:a,...i}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let o=new ri({...i,autoplay:!1}),l=tT(this.finishedTime??this.time);t.setWithVelocity(o.sample(l-10).value,o.sample(l).value,10),o.stop()}}let rg=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(Q.f.test(e)||"0"===e)&&!e.startsWith("url(")),ry=new Set(["opacity","clipPath","filter","transform"]),rx=ro(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class rb extends rn{constructor({autoplay:e=!0,delay:t=0,type:r="keyframes",repeat:n=0,repeatDelay:a=0,repeatType:i="loop",keyframes:o,name:l,motionValue:s,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ep.k.now();let d={autoplay:e,delay:t,type:r,repeat:n,repeatDelay:a,repeatType:i,name:l,motionValue:s,element:u,...c},f=u?.KeyframeResolver||X;this.keyframeResolver=new f(o,(e,t,r)=>this.onKeyframesResolved(e,t,d,!r),l,s,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,r,n){this.keyframeResolver=void 0;let{name:a,type:i,velocity:o,delay:l,isHandoff:s,onUpdate:u}=r;this.resolvedAt=ep.k.now(),!function(e,t,r,n){let a=e[0];if(null===a)return!1;if("display"===t||"visibility"===t)return!0;let i=e[e.length-1],o=rg(a,t),l=rg(i,t);return(0,I.$)(o===l,`You are trying to animate ${t} from "${a}" to "${i}". "${o?i:a}" is not an animatable value.`,"value-not-animatable"),!!o&&!!l&&(function(e){let t=e[0];if(1===e.length)return!0;for(let r=0;r40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...r,keyframes:e},d=!s&&function(e){let{motionValue:t,name:r,repeatDelay:n,repeatType:a,damping:i,type:o}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:s}=t.owner.getProps();return rx()&&r&&ry.has(r)&&("transform"!==r||!s)&&!l&&!n&&"mirror"!==a&&0!==i&&"inertia"!==o}(c)?new rv({...c,element:c.motionValue.owner.current}):new ri(c);d.finished.then(()=>this.notifyFinished()).catch(tH.l),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),$=!0,Y(),G(),$=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let rw=e=>null!==e,rk={type:"spring",stiffness:500,damping:25,restSpeed:10},rS={type:"keyframes",duration:.8},rC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rE=(e,t,r,n={},a,o)=>l=>{let s=tb(n,e)||{},u=s.delay||n.delay||0,{elapsed:c=0}=n;c-=tT(u);let d={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{l(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:a};!function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:a,repeat:i,repeatType:o,repeatDelay:l,from:s,elapsed:u,...c}){return!!Object.keys(c).length}(s)&&Object.assign(d,((e,{keyframes:t})=>t.length>2?rS:i.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:rk:rC)(e,d)),d.duration&&(d.duration=tT(d.duration)),d.repeatDelay&&(d.repeatDelay=tT(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let f=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(tC(d),0===d.delay&&(f=!0)),(tk.W.instantAnimations||tk.W.skipAnimations)&&(f=!0,tC(d),d.delay=0),d.allowFlatten=!s.type&&!s.ease,f&&!o&&void 0!==t.get()){let e=function(e,{repeat:t,repeatType:r="loop"},n){let a=e.filter(rw),i=t&&"loop"!==r&&t%2==1?0:a.length-1;return a[i]}(d.keyframes,s);if(void 0!==e)return void U.Gt.update(()=>{d.onUpdate(e),d.onComplete()})}return s.isSync?new ri(d):new rb(d)};function rj(e,t,{delay:r=0,transitionOverride:n,type:a}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:o,...l}=t;n&&(i=n);let s=[],u=a&&e.animationState&&e.animationState.getState()[a];for(let t in l){let n=e.getValue(t,e.latestValues[t]??null),a=l[t];if(void 0===a||u&&function({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}(u,t))continue;let o={delay:r,...tb(i||{},t)},c=n.get();if(void 0!==c&&!n.isAnimating&&!Array.isArray(a)&&a===c&&!o.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){let r=e.props[tm];if(r){let e=window.MotionHandoffAnimation(r,t,U.Gt);null!==e&&(o.startTime=e,d=!0)}}tS(e,t),n.start(rE(t,n,a,e.shouldReduceMotion&&P.has(t)?{type:!1}:o,e,d));let f=n.animation;f&&s.push(f)}return o&&Promise.all(s).then(()=>{U.Gt.update(()=>{o&&function(e,t){let{transitionEnd:r={},transition:n={},...a}=tx(e,t)||{};for(let t in a={...a,...r}){var i;let r=tw(i=a[t])?i[i.length-1]||0:i;e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,(0,em.OQ)(r))}}(e,o)})}),s}function rT(e,t,r,n=0,a=1){let i=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,l=(o-1)*n;return"function"==typeof r?r(i,o):1===a?i*n:l-i*n}function rA(e,t,r={}){let n=tx(e,t,"exit"===r.type?e.presenceContext?.custom:void 0),{transition:a=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(a=r.transitionOverride);let i=n?()=>Promise.all(rj(e,n,r)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:i=0,staggerChildren:o,staggerDirection:l}=a;return function(e,t,r=0,n=0,a=0,i=1,o){let l=[];for(let s of e.variantChildren)s.notify("AnimationStart",t),l.push(rA(s,t,{...o,delay:r+("function"==typeof n?0:n)+rT(e.variantChildren,s,n,a,i)}).then(()=>s.notify("AnimationComplete",t)));return Promise.all(l)}(e,t,n,i,o,l,r)}:()=>Promise.resolve(),{when:l}=a;if(!l)return Promise.all([i(),o(r.delay)]);{let[e,t]="beforeChildren"===l?[i,o]:[o,i];return e().then(()=>t())}}function rR(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;nPromise.all(t.map(({animation:t,options:r})=>(function(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t))n=Promise.all(t.map(t=>rA(e,t,r)));else if("string"==typeof t)n=rA(e,t,r);else{let a="function"==typeof t?tx(e,t,r.custom):t;n=Promise.all(rj(e,a,r))}return n.then(()=>{e.notify("AnimationComplete",t)})})(e,t,r))),r=rD(),n=!0,a=t=>(r,n)=>{let a=tx(e,n,"exit"===t?e.presenceContext?.custom:void 0);if(a){let{transition:e,transitionEnd:t,...n}=a;r={...r,...n,...t}}return r};function i(i){let{props:o}=e,l=function e(t){if(!t)return;if(!t.isControllingVariants){let r=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(r.initial=t.props.initial),r}let r={};for(let e=0;e