(self.webpackChunk=self.webpackChunk||[]).push([[54436],{603368:(e,t,n)=>{"use strict";n.d(t,{Tooltip:()=>se});var o=n(827378),r=n(925773),i=n(546718),a=n(909111),l=n(158560),s=n(942637),c=n(132420),u=n(767814),d=n(575288),f=n(525574),p=n(533919),m=n(170409),h=n(125425);const g=(0,o.forwardRef)(((e,t)=>(0,o.createElement)(p.Primitive.span,(0,r.default)({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),v=g,[y,b]=(0,l.createContextScope)("Tooltip",[u.createPopperScope]),x=(0,u.createPopperScope)(),w="TooltipProvider",E=700,C="tooltip.open",[_,T]=y(w),P=e=>{const{__scopeTooltip:t,delayDuration:n=E,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,[l,s]=(0,o.useState)(!0),c=(0,o.useRef)(!1),u=(0,o.useRef)(0);return(0,o.useEffect)((()=>{const e=u.current;return()=>window.clearTimeout(e)}),[]),(0,o.createElement)(_,{scope:t,isOpenDelayed:l,delayDuration:n,onOpen:(0,o.useCallback)((()=>{window.clearTimeout(u.current),s(!1)}),[]),onClose:(0,o.useCallback)((()=>{window.clearTimeout(u.current),u.current=window.setTimeout((()=>s(!0)),r)}),[r]),isPointerInTransitRef:c,onPointerInTransitChange:(0,o.useCallback)((e=>{c.current=e}),[]),disableHoverableContent:i},a)},k="Tooltip",[R,L]=y(k),D=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:l,delayDuration:s}=e,d=T(k,e.__scopeTooltip),f=x(t),[p,m]=(0,o.useState)(null),g=(0,c.useId)(),v=(0,o.useRef)(0),y=null!==l&&void 0!==l?l:d.disableHoverableContent,b=null!==s&&void 0!==s?s:d.delayDuration,w=(0,o.useRef)(!1),[E=!1,_]=(0,h.useControllableState)({prop:r,defaultProp:i,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(C))):d.onClose(),null===a||void 0===a||a(e)}}),P=(0,o.useMemo)((()=>E?w.current?"delayed-open":"instant-open":"closed"),[E]),L=(0,o.useCallback)((()=>{window.clearTimeout(v.current),w.current=!1,_(!0)}),[_]),D=(0,o.useCallback)((()=>{window.clearTimeout(v.current),_(!1)}),[_]),A=(0,o.useCallback)((()=>{window.clearTimeout(v.current),v.current=window.setTimeout((()=>{w.current=!0,_(!0)}),b)}),[b,_]);return(0,o.useEffect)((()=>()=>window.clearTimeout(v.current)),[]),(0,o.createElement)(u.Root,f,(0,o.createElement)(R,{scope:t,contentId:g,open:E,stateAttribute:P,trigger:p,onTriggerChange:m,onTriggerEnter:(0,o.useCallback)((()=>{d.isOpenDelayed?A():L()}),[d.isOpenDelayed,A,L]),onTriggerLeave:(0,o.useCallback)((()=>{y?D():window.clearTimeout(v.current)}),[D,y]),onOpen:L,onClose:D,disableHoverableContent:y},n))},A="TooltipTrigger",O=(0,o.forwardRef)(((e,t)=>{const{__scopeTooltip:n,...l}=e,s=L(A,n),c=T(A,n),d=x(n),f=(0,o.useRef)(null),m=(0,a.useComposedRefs)(t,f,s.onTriggerChange),h=(0,o.useRef)(!1),g=(0,o.useRef)(!1),v=(0,o.useCallback)((()=>h.current=!1),[]);return(0,o.useEffect)((()=>()=>document.removeEventListener("pointerup",v)),[v]),(0,o.createElement)(u.Anchor,(0,r.default)({asChild:!0},d),(0,o.createElement)(p.Primitive.button,(0,r.default)({"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute},l,{ref:m,onPointerMove:(0,i.composeEventHandlers)(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(g.current||c.isPointerInTransitRef.current||(s.onTriggerEnter(),g.current=!0))})),onPointerLeave:(0,i.composeEventHandlers)(e.onPointerLeave,(()=>{s.onTriggerLeave(),g.current=!1})),onPointerDown:(0,i.composeEventHandlers)(e.onPointerDown,(()=>{h.current=!0,document.addEventListener("pointerup",v,{once:!0})})),onFocus:(0,i.composeEventHandlers)(e.onFocus,(()=>{h.current||s.onOpen()})),onBlur:(0,i.composeEventHandlers)(e.onBlur,s.onClose),onClick:(0,i.composeEventHandlers)(e.onClick,(e=>{0===e.detail&&s.onClose()}))})))})),S="TooltipPortal",[N,H]=y(S,{forceMount:void 0}),z=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=L(S,t);return(0,o.createElement)(N,{scope:t,forceMount:n},(0,o.createElement)(f.Presence,{present:n||a.open},(0,o.createElement)(d.Portal,{asChild:!0,container:i},r)))},M="TooltipContent",W=(0,o.forwardRef)(((e,t)=>{const n=H(M,e.__scopeTooltip),{forceMount:i=n.forceMount,side:a="top",...l}=e,s=L(M,e.__scopeTooltip);return(0,o.createElement)(f.Presence,{present:i||s.open},s.disableHoverableContent?(0,o.createElement)(F,(0,r.default)({side:a},l,{ref:t})):(0,o.createElement)(I,(0,r.default)({side:a},l,{ref:t})))})),I=(0,o.forwardRef)(((e,t)=>{const n=L(M,e.__scopeTooltip),i=T(M,e.__scopeTooltip),l=(0,o.useRef)(null),s=(0,a.useComposedRefs)(t,l),[c,u]=(0,o.useState)(null),{trigger:d,onClose:f}=n,p=l.current,{onPointerInTransitChange:m}=i,h=(0,o.useCallback)((()=>{u(null),m(!1)}),[m]),g=(0,o.useCallback)(((e,t)=>{const n=e.currentTarget,o=function(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,o,r,i)){case i:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:return null}}({x:e.clientX,y:e.clientY},n.getBoundingClientRect()),r="right"===o||"bottom"===o?-5:5,i=function(e){const t=e.slice();return t.sort(((e,t)=>e.xt.x?1:e.yt.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(o.y-n.y)>=(e.y-n.y)*(o.x-n.x)))break;t.pop()}t.push(o)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const o=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(o.y-t.y)>=(e.y-t.y)*(o.x-t.x)))break;n.pop()}n.push(o)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}(["right"===o||"left"===o?{x:e.clientX+r,y:e.clientY}:{x:e.clientX,y:e.clientY+r},...function(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}(t.getBoundingClientRect())]);u(i),m(!0)}),[m]);return(0,o.useEffect)((()=>()=>h()),[h]),(0,o.useEffect)((()=>{if(d&&p){const e=e=>g(e,p),t=e=>g(e,d);return d.addEventListener("pointerleave",e),p.addEventListener("pointerleave",t),()=>{d.removeEventListener("pointerleave",e),p.removeEventListener("pointerleave",t)}}}),[d,p,g,h]),(0,o.useEffect)((()=>{if(c){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},o=(null===d||void 0===d?void 0:d.contains(t))||(null===p||void 0===p?void 0:p.contains(t)),r=!function(e,t){const{x:n,y:o}=e;let r=!1;for(let e=0,i=t.length-1;eo!==c>o&&n<(s-a)*(o-l)/(c-l)+a&&(r=!r)}return r}(n,c);o?h():r&&(h(),f())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[d,p,c,f,h]),(0,o.createElement)(F,(0,r.default)({},e,{ref:s}))})),[B,$]=y(k,{isInside:!1}),F=(0,o.forwardRef)(((e,t)=>{const{__scopeTooltip:n,children:i,"aria-label":a,onEscapeKeyDown:l,onPointerDownOutside:c,...d}=e,f=L(M,n),p=x(n),{onClose:h}=f;return(0,o.useEffect)((()=>(document.addEventListener(C,h),()=>document.removeEventListener(C,h))),[h]),(0,o.useEffect)((()=>{if(f.trigger){const e=e=>{const t=e.target;null!==t&&void 0!==t&&t.contains(f.trigger)&&h()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[f.trigger,h]),(0,o.createElement)(s.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:e=>e.preventDefault(),onDismiss:h},(0,o.createElement)(u.Content,(0,r.default)({"data-state":f.stateAttribute},p,d,{ref:t,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),(0,o.createElement)(m.Slottable,null,i),(0,o.createElement)(B,{scope:n,isInside:!0},(0,o.createElement)(v,{id:f.contentId,role:"tooltip"},a||i))))})),j="TooltipArrow",U=(0,o.forwardRef)(((e,t)=>{const{__scopeTooltip:n,...i}=e,a=x(n);return $(j,n).isInside?null:(0,o.createElement)(u.Arrow,(0,r.default)({},a,i,{ref:t}))}));const Y=P,V=D,X=O,q=z,K=W,G=U;var Z=n(891275),J=n(267687);const Q=(0,Z.styled)(G,{fill:"$black",height:"$1",width:"$3"}),ee=(0,Z.styled)(K,{backgroundColor:"$black",borderRadius:"$50",color:"$white",fontSize:"14px",fontWeight:"400",lineHeight:"20px",fontFamily:"inherit",padding:"$150","@media (prefers-reduced-motion: no-preference)":{animationDuration:"220ms",animationTimingFunction:"ease",willChange:"opacity",'&[data-state="delayed-open"]':{animationName:J.animations.fadeIn},'&[data-state="closed"]':{animationName:J.animations.fadeOut}},zIndex:"$tooltip"}),te=o.forwardRef((({align:e="center",alignOffset:t=0,avoidCollisions:n=!0,collisionPadding:r=0,children:i,side:a="top",sideOffset:l=5,sticky:s="partial",...c},u)=>o.createElement(ee,{...c,ref:u,align:e,alignOffset:t,avoidCollisions:n,collisionPadding:r,side:a,sideOffset:l,sticky:s},i,o.createElement(Q,null)))),ne=(0,Z.styled)(X),oe=o.forwardRef(((e,t)=>o.createElement(ne,{...e,"data-tooltip-trigger":"",ref:t}))),re=(0,o.createContext)({});let ie,ae,le=!1;const se=({defaultOpen:e=!1,open:t,onOpen:n,onClose:r,skipDelayDuration:i,delayDuration:a,disableHoverableContent:l,clearDelaysOnUnmount:s=!1,children:c})=>{const u=(0,o.useContext)(re),[d,f]=(0,o.useState)(!1),[p,m]=(0,o.useState)(e),h=(0,o.useCallback)((e=>{var t,o;if(clearTimeout(ie),clearTimeout(ae),!1===e)return ae=setTimeout((()=>{le=!1}),null!=(t=null!=i?i:u.skipDelayDuration)?t:500),m(!1),void(null==r||r());le||null!=document.querySelector("[data-tooltip-trigger]:focus")?m(e):ie=setTimeout((()=>{null!=document.querySelector("[data-tooltip-trigger]:hover")&&(le=!0,d&&(m(!0),null==n||n()))}),null!=(o=null!=a?a:u.delayDuration)?o:400)}),[a,i,u,d,r,n]);return(0,o.useEffect)((()=>()=>{s&&(clearTimeout(ie),clearTimeout(ae),le=!1)}),[s]),(0,o.useEffect)((()=>(f(!0),()=>f(!1))),[]),o.createElement(Y,{delayDuration:0,skipDelayDuration:0},o.createElement(V,{disableHoverableContent:l,open:null!=t?t:p,delayDuration:0,onOpenChange:e=>{null!=t?e?null==n||n():null==r||r():h(e)}},c))};se.Trigger=oe,se.Content=te,se.Provider=({children:e,...t})=>o.createElement(re.Provider,{value:t},e),se.Portal=e=>o.createElement(q,{...e})},546718:(e,t,n)=>{"use strict";function o(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(null===e||void 0===e||e(o),!1===n||!o.defaultPrevented)return null===t||void 0===t?void 0:t(o)}}n.d(t,{composeEventHandlers:()=>o})},158560:(e,t,n)=>{"use strict";n.d(t,{createContext:()=>r,createContextScope:()=>i});var o=n(827378);function r(e,t){const n=(0,o.createContext)(t);function r(e){const{children:t,...r}=e,i=(0,o.useMemo)((()=>r),Object.values(r));return(0,o.createElement)(n.Provider,{value:i},t)}return r.displayName=e+"Provider",[r,function(r){const i=(0,o.useContext)(n);if(i)return i;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}function i(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>(0,o.createContext)(e)));return function(n){const r=(null===n||void 0===n?void 0:n[e])||t;return(0,o.useMemo)((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const i=(0,o.createContext)(r),a=n.length;function l(t){const{scope:n,children:r,...l}=t,s=(null===n||void 0===n?void 0:n[e][a])||i,c=(0,o.useMemo)((()=>l),Object.values(l));return(0,o.createElement)(s.Provider,{value:c},r)}return n=[...n,r],l.displayName=t+"Provider",[l,function(n,l){const s=(null===l||void 0===l?void 0:l[e][a])||i,c=(0,o.useContext)(s);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},a(r,...t)]}function a(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:o})=>({...t,...n(e)[`__scope${o}`]})),{});return(0,o.useMemo)((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}},942637:(e,t,n)=>{"use strict";n.d(t,{DismissableLayer:()=>m});var o=n(925773),r=n(827378),i=n(546718),a=n(533919),l=n(909111),s=n(729064);const c="dismissableLayer.update",u="dismissableLayer.pointerDownOutside",d="dismissableLayer.focusOutside";let f;const p=(0,r.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),m=(0,r.forwardRef)(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:m,onPointerDownOutside:v,onFocusOutside:y,onInteractOutside:b,onDismiss:x,...w}=e,E=(0,r.useContext)(p),[C,_]=(0,r.useState)(null),[,T]=(0,r.useState)({}),P=(0,l.useComposedRefs)(t,(e=>_(e))),k=Array.from(E.layers),[R]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),L=k.indexOf(R),D=C?k.indexOf(C):-1,A=E.layersWithOutsidePointerEventsDisabled.size>0,O=D>=L,S=function(e){const t=(0,s.useCallbackRef)(e),n=(0,r.useRef)(!1),o=(0,r.useRef)((()=>{}));return(0,r.useEffect)((()=>{const e=e=>{if(e.target&&!n.current){const n={originalEvent:e};function r(){g(u,t,n,{discrete:!0})}"touch"===e.pointerType?(document.removeEventListener("click",o.current),o.current=r,document.addEventListener("click",o.current,{once:!0})):r()}n.current=!1},r=window.setTimeout((()=>{document.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(r),document.removeEventListener("pointerdown",e),document.removeEventListener("click",o.current)}}),[t]),{onPointerDownCapture:()=>n.current=!0}}((e=>{const t=e.target,n=[...E.branches].some((e=>e.contains(t)));O&&!n&&(null===v||void 0===v||v(e),null===b||void 0===b||b(e),e.defaultPrevented||null===x||void 0===x||x())})),N=function(e){const t=(0,s.useCallbackRef)(e),n=(0,r.useRef)(!1);return(0,r.useEffect)((()=>{const e=e=>{if(e.target&&!n.current){g(d,t,{originalEvent:e},{discrete:!1})}};return document.addEventListener("focusin",e),()=>document.removeEventListener("focusin",e)}),[t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}((e=>{const t=e.target;[...E.branches].some((e=>e.contains(t)))||(null===y||void 0===y||y(e),null===b||void 0===b||b(e),e.defaultPrevented||null===x||void 0===x||x())}));return function(e){const t=(0,s.useCallbackRef)(e);(0,r.useEffect)((()=>{const e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[t])}((e=>{D===E.layers.size-1&&(null===m||void 0===m||m(e),!e.defaultPrevented&&x&&(e.preventDefault(),x()))})),(0,r.useEffect)((()=>{if(C)return n&&(0===E.layersWithOutsidePointerEventsDisabled.size&&(f=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(C)),E.layers.add(C),h(),()=>{n&&1===E.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=f)}}),[C,n,E]),(0,r.useEffect)((()=>()=>{C&&(E.layers.delete(C),E.layersWithOutsidePointerEventsDisabled.delete(C),h())}),[C,E]),(0,r.useEffect)((()=>{const e=()=>T({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)}),[]),(0,r.createElement)(a.Primitive.div,(0,o.default)({},w,{ref:P,style:{pointerEvents:A?O?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.composeEventHandlers)(e.onFocusCapture,N.onFocusCapture),onBlurCapture:(0,i.composeEventHandlers)(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:(0,i.composeEventHandlers)(e.onPointerDownCapture,S.onPointerDownCapture)}))}));function h(){const e=new CustomEvent(c);document.dispatchEvent(e)}function g(e,t,n,{discrete:o}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?(0,a.dispatchDiscreteCustomEvent)(r,i):r.dispatchEvent(i)}},132420:(e,t,n)=>{"use strict";var o;n.d(t,{useId:()=>s});var r=n(827378),i=n(881307);const a=(o||(o=n.t(r,2)))["useId".toString()]||(()=>{});let l=0;function s(e){const[t,n]=r.useState(a());return(0,i.useLayoutEffect)((()=>{e||n((e=>null!==e&&void 0!==e?e:String(l++)))}),[e]),e||(t?`radix-${t}`:"")}},767814:(e,t,n)=>{"use strict";n.d(t,{Anchor:()=>Fe,Arrow:()=>Ue,Content:()=>je,Root:()=>$e,createPopperScope:()=>Ee});var o=n(925773),r=n(827378);function i(e){return e.split("-")[0]}function a(e){return e.split("-")[1]}function l(e){return["top","bottom"].includes(i(e))?"x":"y"}function s(e){return"y"===e?"height":"width"}function c(e,t,n){let{reference:o,floating:r}=e;const c=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,d=l(t),f=s(d),p=o[f]/2-r[f]/2,m="x"===d;let h;switch(i(t)){case"top":h={x:c,y:o.y-r.height};break;case"bottom":h={x:c,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:u};break;case"left":h={x:o.x-r.width,y:u};break;default:h={x:o.x,y:o.y}}switch(a(t)){case"start":h[d]-=p*(n&&m?-1:1);break;case"end":h[d]+=p*(n&&m?-1:1)}return h}function u(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function d(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function f(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:a,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:m=!1,padding:h=0}=t,g=u(h),v=l[m?"floating"===p?"reference":"floating":p],y=d(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(v)))||n?v:v.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:f,strategy:s})),b=d(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===p?{...a.floating,x:o,y:r}:a.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),strategy:s}):a[p]);return{top:y.top-b.top+g.top,bottom:b.bottom-y.bottom+g.bottom,left:y.left-b.left+g.left,right:b.right-y.right+g.right}}const p=Math.min,m=Math.max;function h(e,t,n){return m(e,p(t,n))}const g=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:o=0}=null!=e?e:{},{x:r,y:i,placement:c,rects:d,platform:f}=t;if(null==n)return{};const p=u(o),m={x:r,y:i},g=l(c),v=a(c),y=s(g),b=await f.getDimensions(n),x="y"===g?"top":"left",w="y"===g?"bottom":"right",E=d.reference[y]+d.reference[g]-m[g]-d.floating[y],C=m[g]-d.reference[g],_=await(null==f.getOffsetParent?void 0:f.getOffsetParent(n));let T=_?"y"===g?_.clientHeight||0:_.clientWidth||0:0;0===T&&(T=d.floating[y]);const P=E/2-C/2,k=p[x],R=T-b[y]-p[w],L=T/2-b[y]/2+P,D=h(k,L,R),A=("start"===v?p[x]:p[w])>0&&L!==D&&d.reference[y]<=d.floating[y];return{[g]:m[g]-(A?Lv[e]))}function b(e,t,n){void 0===n&&(n=!1);const o=a(e),r=l(e),i=s(r);let c="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(c=y(c)),{main:c,cross:y(c)}}const x={start:"end",end:"start"};function w(e){return e.replace(/start|end/g,(e=>x[e]))}const E=["top","right","bottom","left"],C=(E.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]),function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:o,middlewareData:r,rects:a,initialPlacement:l,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",flipAlignment:h=!0,...g}=e,v=i(o),x=p||(v!==l&&h?function(e){const t=y(e);return[w(e),t,w(t)]}(l):[y(l)]),E=[l,...x],C=await f(t,g),_=[];let T=(null==(n=r.flip)?void 0:n.overflows)||[];if(u&&_.push(C[v]),d){const{main:e,cross:t}=b(o,a,await(null==s.isRTL?void 0:s.isRTL(c.floating)));_.push(C[e],C[t])}if(T=[...T,{placement:o,overflows:_}],!_.every((e=>e<=0))){var P,k;const e=(null!=(P=null==(k=r.flip)?void 0:k.index)?P:0)+1,t=E[e];if(t)return{data:{index:e,overflows:T},reset:{placement:t}};let n="bottom";switch(m){case"bestFit":{var R;const e=null==(R=T.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:R[0].placement;e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}});function _(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function T(e){return E.some((t=>e[t]>=0))}const P=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){const{rects:o}=e;switch(t){case"referenceHidden":{const t=_(await f(e,{...n,elementContext:"reference"}),o.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:T(t)}}}case"escaped":{const t=_(await f(e,{...n,altBoundary:!0}),o.floating);return{data:{escapedOffsets:t,escaped:T(t)}}}default:return{}}}}},k=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:o}=t,r=await async function(e,t){const{placement:n,platform:o,elements:r}=e,s=await(null==o.isRTL?void 0:o.isRTL(r.floating)),c=i(n),u=a(n),d="x"===l(n),f=["left","top"].includes(c)?-1:1,p=s&&d?-1:1,m="function"==typeof t?t(e):t;let{mainAxis:h,crossAxis:g,alignmentAxis:v}="number"==typeof m?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return u&&"number"==typeof v&&(g="end"===u?-1*v:v),d?{x:g*p,y:h*f}:{x:h*f,y:g*p}}(t,e);return{x:n+r.x,y:o+r.y,data:r}}}};function R(e){return"x"===e?"y":"x"}const L=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=e,d={x:n,y:o},p=await f(t,u),m=l(i(r)),g=R(m);let v=d[m],y=d[g];if(a){const e="y"===m?"bottom":"right";v=h(v+p["y"===m?"top":"left"],v,v-p[e])}if(s){const e="y"===g?"bottom":"right";y=h(y+p["y"===g?"top":"left"],y,y-p[e])}const b=c.fn({...t,[m]:v,[g]:y});return{...b,data:{x:b.x-n,y:b.y-o}}}}},D=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:a,middlewareData:s}=t,{offset:c=0,mainAxis:u=!0,crossAxis:d=!0}=e,f={x:n,y:o},p=l(r),m=R(p);let h=f[p],g=f[m];const v="function"==typeof c?c({...a,placement:r}):c,y="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){const e="y"===p?"height":"width",t=a.reference[p]-a.floating[e]+y.mainAxis,n=a.reference[p]+a.reference[e]-y.mainAxis;hn&&(h=n)}if(d){var b,x,w,E;const e="y"===p?"width":"height",t=["top","left"].includes(i(r)),n=a.reference[m]-a.floating[e]+(t&&null!=(b=null==(x=s.offset)?void 0:x[m])?b:0)+(t?0:y.crossAxis),o=a.reference[m]+a.reference[e]+(t?0:null!=(w=null==(E=s.offset)?void 0:E[m])?w:0)-(t?y.crossAxis:0);go&&(g=o)}return{[p]:h,[m]:g}}}};function A(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function O(e){if(null==e)return window;if(!A(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function S(e){return O(e).getComputedStyle(e)}function N(e){return A(e)?"":e?(e.nodeName||"").toLowerCase():""}function H(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function z(e){return e instanceof O(e).HTMLElement}function M(e){return e instanceof O(e).Element}function W(e){return"undefined"!=typeof ShadowRoot&&(e instanceof O(e).ShadowRoot||e instanceof ShadowRoot)}function I(e){const{overflow:t,overflowX:n,overflowY:o}=S(e);return/auto|scroll|overlay|hidden/.test(t+o+n)}function B(e){return["table","td","th"].includes(N(e))}function $(e){const t=/firefox/i.test(H()),n=S(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function F(){return!/^((?!chrome|android).)*safari/i.test(H())}const j=Math.min,U=Math.max,Y=Math.round;function V(e,t,n){var o,r,i,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const l=e.getBoundingClientRect();let s=1,c=1;t&&z(e)&&(s=e.offsetWidth>0&&Y(l.width)/e.offsetWidth||1,c=e.offsetHeight>0&&Y(l.height)/e.offsetHeight||1);const u=M(e)?O(e):window,d=!F()&&n,f=(l.left+(d&&null!=(o=null==(r=u.visualViewport)?void 0:r.offsetLeft)?o:0))/s,p=(l.top+(d&&null!=(i=null==(a=u.visualViewport)?void 0:a.offsetTop)?i:0))/c,m=l.width/s,h=l.height/c;return{width:m,height:h,top:p,right:f+m,bottom:p+h,left:f,x:f,y:p}}function X(e){return(t=e,(t instanceof O(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function q(e){return M(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function K(e){return V(X(e)).left+q(e).scrollLeft}function G(e,t,n){const o=z(t),r=X(t),i=V(e,o&&function(e){const t=V(e);return Y(t.width)!==e.offsetWidth||Y(t.height)!==e.offsetHeight}(t),"fixed"===n);let a={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==N(t)||I(r))&&(a=q(t)),z(t)){const e=V(t,!0);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else r&&(l.x=K(r));return{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}function Z(e){return"html"===N(e)?e:e.assignedSlot||e.parentNode||(W(e)?e.host:null)||X(e)}function J(e){return z(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function Q(e){const t=O(e);let n=J(e);for(;n&&B(n)&&"static"===getComputedStyle(n).position;)n=J(n);return n&&("html"===N(n)||"body"===N(n)&&"static"===getComputedStyle(n).position&&!$(n))?t:n||function(e){let t=Z(e);for(W(t)&&(t=t.host);z(t)&&!["html","body"].includes(N(t));){if($(t))return t;t=t.parentNode}return null}(e)||t}function ee(e){if(z(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=V(e);return{width:t.width,height:t.height}}function te(e){const t=Z(e);return["html","body","#document"].includes(N(t))?e.ownerDocument.body:z(t)&&I(t)?t:te(t)}function ne(e,t){var n;void 0===t&&(t=[]);const o=te(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=O(o),a=r?[i].concat(i.visualViewport||[],I(o)?o:[]):o,l=t.concat(a);return r?l:l.concat(ne(a))}function oe(e,t,n){return"viewport"===t?d(function(e,t){const n=O(e),o=X(e),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,l=0,s=0;if(r){i=r.width,a=r.height;const e=F();(e||!e&&"fixed"===t)&&(l=r.offsetLeft,s=r.offsetTop)}return{width:i,height:a,x:l,y:s}}(e,n)):M(t)?function(e,t){const n=V(e,!1,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft;return{top:o,left:r,x:r,y:o,right:r+e.clientWidth,bottom:o+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):d(function(e){var t;const n=X(e),o=q(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=U(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=U(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let l=-o.scrollLeft+K(e);const s=-o.scrollTop;return"rtl"===S(r||n).direction&&(l+=U(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(X(e)))}function re(e){const t=ne(e),n=["absolute","fixed"].includes(S(e).position)&&z(e)?Q(e):e;return M(n)?t.filter((e=>M(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&W(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==N(e))):[]}const ie={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?re(t):[].concat(n),o],a=i[0],l=i.reduce(((e,n)=>{const o=oe(t,n,r);return e.top=U(o.top,e.top),e.right=j(o.right,e.right),e.bottom=j(o.bottom,e.bottom),e.left=U(o.left,e.left),e}),oe(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e;const r=z(n),i=X(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if((r||!r&&"fixed"!==o)&&(("body"!==N(n)||I(i))&&(a=q(n)),z(n))){const e=V(n,!0);l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+l.x,y:t.y-a.scrollTop+l.y}},isElement:M,getDimensions:ee,getOffsetParent:Q,getDocumentElement:X,getElementRects:e=>{let{reference:t,floating:n,strategy:o}=e;return{reference:G(t,Q(n),o),floating:{...ee(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===S(e).direction};function ae(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:l=!1}=o,s=r&&!l,c=i&&!l,u=s||c?[...M(e)?ne(e):[],...ne(t)]:[];u.forEach((e=>{s&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)}));let d,f=null;if(a){let o=!0;f=new ResizeObserver((()=>{o||n(),o=!1})),M(e)&&!l&&f.observe(e),f.observe(t)}let p=l?V(e):null;return l&&function t(){const o=V(e);!p||o.x===p.x&&o.y===p.y&&o.width===p.width&&o.height===p.height||n(),p=o,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{s&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)})),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(d)}}const le=(e,t,n)=>(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,l=await(null==a.isRTL?void 0:a.isRTL(t));let s=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=c(s,o,l),f=o,p={},m=0;for(let n=0;n{t.current=e})),t}(i),c=r.useRef(null),[u,d]=r.useState({x:null,y:null,strategy:o,placement:n,middlewareData:{}}),[f,p]=r.useState(t);ue(null==f?void 0:f.map((e=>{let{options:t}=e;return t})),null==t?void 0:t.map((e=>{let{options:t}=e;return t})))||p(t);const m=r.useCallback((()=>{a.current&&l.current&&le(a.current,l.current,{middleware:f,placement:n,strategy:o}).then((e=>{h.current&&se.flushSync((()=>{d(e)}))}))}),[f,n,o]);ce((()=>{h.current&&m()}),[m]);const h=r.useRef(!1);ce((()=>(h.current=!0,()=>{h.current=!1})),[]);const g=r.useCallback((()=>{if("function"===typeof c.current&&(c.current(),c.current=null),a.current&&l.current)if(s.current){const e=s.current(a.current,l.current,m);c.current=e}else m()}),[m,s]),v=r.useCallback((e=>{a.current=e,g()}),[g]),y=r.useCallback((e=>{l.current=e,g()}),[g]),b=r.useMemo((()=>({reference:a,floating:l})),[]);return r.useMemo((()=>({...u,update:m,refs:b,reference:v,floating:y})),[u,m,b,v,y])}const fe=e=>{const{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){return o=t,Object.prototype.hasOwnProperty.call(o,"current")?null!=t.current?g({element:t.current,padding:n}).fn(e):{}:t?g({element:t,padding:n}).fn(e):{};var o}}};var pe=n(533919);const me=(0,r.forwardRef)(((e,t)=>{const{children:n,width:i=10,height:a=5,...l}=e;return(0,r.createElement)(pe.Primitive.svg,(0,o.default)({},l,{ref:t,width:i,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,r.createElement)("polygon",{points:"0,0 30,0 15,10"}))})),he=me;var ge=n(909111),ve=n(158560),ye=n(881307),be=n(116937);const xe="Popper",[we,Ee]=(0,ve.createContextScope)(xe),[Ce,_e]=we(xe),Te=e=>{const{__scopePopper:t,children:n}=e,[o,i]=(0,r.useState)(null);return(0,r.createElement)(Ce,{scope:t,anchor:o,onAnchorChange:i},n)},Pe="PopperAnchor",ke=(0,r.forwardRef)(((e,t)=>{const{__scopePopper:n,virtualRef:i,...a}=e,l=_e(Pe,n),s=(0,r.useRef)(null),c=(0,ge.useComposedRefs)(t,s);return(0,r.useEffect)((()=>{l.onAnchorChange((null===i||void 0===i?void 0:i.current)||s.current)})),i?null:(0,r.createElement)(pe.Primitive.div,(0,o.default)({},a,{ref:c}))})),Re="PopperContent",[Le,De]=we(Re),[Ae,Oe]=we(Re,{hasParent:!1,positionUpdateFns:new Set}),Se=(0,r.forwardRef)(((e,t)=>{var n,o,i,a,l,s,c,u;const{__scopePopper:d,side:f="bottom",sideOffset:p=0,align:m="center",alignOffset:h=0,arrowPadding:g=0,collisionBoundary:v=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:x=!1,avoidCollisions:w=!0,...E}=e,_=_e(Re,d),[T,R]=(0,r.useState)(null),A=(0,ge.useComposedRefs)(t,(e=>R(e))),[O,S]=(0,r.useState)(null),N=(0,be.useSize)(O),H=null!==(n=null===N||void 0===N?void 0:N.width)&&void 0!==n?n:0,z=null!==(o=null===N||void 0===N?void 0:N.height)&&void 0!==o?o:0,M=f+("center"!==m?"-"+m:""),W="number"===typeof y?y:{top:0,right:0,bottom:0,left:0,...y},I=Array.isArray(v)?v:[v],B=I.length>0,$={padding:W,boundary:I.filter(We),altBoundary:B},{reference:F,floating:j,strategy:U,x:Y,y:V,placement:X,middlewareData:q,update:K}=de({strategy:"fixed",placement:M,whileElementsMounted:ae,middleware:[k({mainAxis:p+z,alignmentAxis:h}),w?L({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?D():void 0,...$}):void 0,O?fe({element:O,padding:g}):void 0,w?C({...$}):void 0,Ie({arrowWidth:H,arrowHeight:z}),x?P({strategy:"referenceHidden"}):void 0].filter(Me)});(0,ye.useLayoutEffect)((()=>{F(_.anchor)}),[F,_.anchor]);const G=null!==Y&&null!==V,[Z,J]=Be(X),Q=null===(i=q.arrow)||void 0===i?void 0:i.x,ee=null===(a=q.arrow)||void 0===a?void 0:a.y,te=0!==(null===(l=q.arrow)||void 0===l?void 0:l.centerOffset),[ne,oe]=(0,r.useState)();(0,ye.useLayoutEffect)((()=>{T&&oe(window.getComputedStyle(T).zIndex)}),[T]);const{hasParent:re,positionUpdateFns:ie}=Oe(Re,d),le=!re;(0,r.useLayoutEffect)((()=>{if(!le)return ie.add(K),()=>{ie.delete(K)}}),[le,ie,K]),(0,r.useLayoutEffect)((()=>{le&&G&&Array.from(ie).reverse().forEach((e=>requestAnimationFrame(e)))}),[le,G,ie]);const se={"data-side":Z,"data-align":J,...E,ref:A,style:{...E.style,animation:G?void 0:"none",opacity:null!==(s=q.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,r.createElement)("div",{ref:j,"data-radix-popper-content-wrapper":"",style:{position:U,left:0,top:0,transform:G?`translate3d(${Math.round(Y)}px, ${Math.round(V)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:ne,"--radix-popper-transform-origin":[null===(c=q.transformOrigin)||void 0===c?void 0:c.x,null===(u=q.transformOrigin)||void 0===u?void 0:u.y].join(" ")}},(0,r.createElement)(Le,{scope:d,placedSide:Z,onArrowChange:S,arrowX:Q,arrowY:ee,shouldHideArrow:te},le?(0,r.createElement)(Ae,{scope:d,hasParent:!0,positionUpdateFns:ie},(0,r.createElement)(pe.Primitive.div,se)):(0,r.createElement)(pe.Primitive.div,se)))})),Ne="PopperArrow",He={top:"bottom",right:"left",bottom:"top",left:"right"},ze=(0,r.forwardRef)((function(e,t){const{__scopePopper:n,...i}=e,a=De(Ne,n),l=He[a.placedSide];return(0,r.createElement)("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0}},(0,r.createElement)(he,(0,o.default)({},i,{ref:t,style:{...i.style,display:"block"}})))}));function Me(e){return void 0!==e}function We(e){return null!==e}const Ie=e=>({name:"transformOrigin",options:e,fn(t){var n,o,r,i,a;const{placement:l,rects:s,middlewareData:c}=t,u=0!==(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset),d=u?0:e.arrowWidth,f=u?0:e.arrowHeight,[p,m]=Be(l),h={start:"0%",center:"50%",end:"100%"}[m],g=(null!==(o=null===(r=c.arrow)||void 0===r?void 0:r.x)&&void 0!==o?o:0)+d/2,v=(null!==(i=null===(a=c.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let y="",b="";return"bottom"===p?(y=u?h:`${g}px`,b=-f+"px"):"top"===p?(y=u?h:`${g}px`,b=`${s.floating.height+f}px`):"right"===p?(y=-f+"px",b=u?h:`${v}px`):"left"===p&&(y=`${s.floating.width+f}px`,b=u?h:`${v}px`),{data:{x:y,y:b}}}});function Be(e){const[t,n="center"]=e.split("-");return[t,n]}const $e=Te,Fe=ke,je=Se,Ue=ze},575288:(e,t,n)=>{"use strict";n.d(t,{Portal:()=>l});var o=n(925773),r=n(827378),i=n(331542),a=n(533919);const l=(0,r.forwardRef)(((e,t)=>{var n;const{container:l=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...s}=e;return l?i.createPortal((0,r.createElement)(a.Primitive.div,(0,o.default)({},s,{ref:t})),l):null}))},525574:(e,t,n)=>{"use strict";n.d(t,{Presence:()=>l});var o=n(827378),r=n(331542),i=n(909111),a=n(881307);const l=e=>{const{present:t,children:n}=e,l=function(e){const[t,n]=(0,o.useState)(),i=(0,o.useRef)({}),l=(0,o.useRef)(e),c=(0,o.useRef)("none"),u=e?"mounted":"unmounted",[d,f]=function(e,t){return(0,o.useReducer)(((e,n)=>{const o=t[e][n];return null!==o&&void 0!==o?o:e}),e)}(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,o.useEffect)((()=>{const e=s(i.current);c.current="mounted"===d?e:"none"}),[d]),(0,a.useLayoutEffect)((()=>{const t=i.current,n=l.current;if(n!==e){const o=c.current,r=s(t);if(e)f("MOUNT");else if("none"===r||"none"===(null===t||void 0===t?void 0:t.display))f("UNMOUNT");else{const e=o!==r;f(n&&e?"ANIMATION_OUT":"UNMOUNT")}l.current=e}}),[e,f]),(0,a.useLayoutEffect)((()=>{if(t){const e=e=>{const n=s(i.current).includes(e.animationName);e.target===t&&n&&(0,r.flushSync)((()=>f("ANIMATION_END")))},n=e=>{e.target===t&&(c.current=s(i.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}f("ANIMATION_END")}),[t,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:(0,o.useCallback)((e=>{e&&(i.current=getComputedStyle(e)),n(e)}),[])}}(t),c="function"===typeof n?n({present:l.isPresent}):o.Children.only(n),u=(0,i.useComposedRefs)(l.ref,c.ref);return"function"===typeof n||l.isPresent?(0,o.cloneElement)(c,{ref:u}):null};function s(e){return(null===e||void 0===e?void 0:e.animationName)||"none"}l.displayName="Presence"},533919:(e,t,n)=>{"use strict";n.d(t,{Primitive:()=>l,dispatchDiscreteCustomEvent:()=>s});var o=n(925773),r=n(827378),i=n(331542),a=n(170409);const l=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=(0,r.forwardRef)(((e,n)=>{const{asChild:i,...l}=e,s=i?a.Slot:t;return(0,r.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,r.createElement)(s,(0,o.default)({},l,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function s(e,t){e&&(0,i.flushSync)((()=>e.dispatchEvent(t)))}},729064:(e,t,n)=>{"use strict";n.d(t,{useCallbackRef:()=>r});var o=n(827378);function r(e){const t=(0,o.useRef)(e);return(0,o.useEffect)((()=>{t.current=e})),(0,o.useMemo)((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}},125425:(e,t,n)=>{"use strict";n.d(t,{useControllableState:()=>i});var o=n(827378),r=n(729064);function i({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[i,a]=function({defaultProp:e,onChange:t}){const n=(0,o.useState)(e),[i]=n,a=(0,o.useRef)(i),l=(0,r.useCallbackRef)(t);return(0,o.useEffect)((()=>{a.current!==i&&(l(i),a.current=i)}),[i,a,l]),n}({defaultProp:t,onChange:n}),l=void 0!==e,s=l?e:i,c=(0,r.useCallbackRef)(n);return[s,(0,o.useCallback)((t=>{if(l){const n=t,o="function"===typeof t?n(e):t;o!==e&&c(o)}else a(t)}),[l,e,a,c])]}},881307:(e,t,n)=>{"use strict";n.d(t,{useLayoutEffect:()=>r});var o=n(827378);const r=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?o.useLayoutEffect:()=>{}},116937:(e,t,n)=>{"use strict";n.d(t,{useSize:()=>i});var o=n(827378),r=n(881307);function i(e){const[t,n]=(0,o.useState)(void 0);return(0,r.useLayoutEffect)((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const o=t[0];let r,i;if("borderBoxSize"in o){const e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}},73866:(e,t,n)=>{(t=e.exports=n(931506)(!1)).push([e.id,".badgeWrapper-3bzNG {\n max-height: 100%;\n max-width: 100%;\n position: relative;\n font-size: 0;\n}\n.badge-1g3fe {\n /* Position */\n position: absolute;\n top: 3px;\n left: calc(100% - 3px);\n transform: translate(-50%, -50%);\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n white-space: nowrap;\n z-index: 10;\n /* Rectangle */\n height: 16px;\n min-width: 16px;\n box-sizing: border-box;\n padding: 0 4px;\n background-color: #4262ff;\n border-radius: 8px;\n box-shadow: 0 0 0 2px #ffffff;\n /* Text */\n font-style: normal;\n font-weight: bold;\n font-size: 9px;\n line-height: 16px;\n color: #ffffff;\n}\n",""]),t.locals={badgeWrapper:"badgeWrapper-3bzNG",badge:"badge-1g3fe"}},110589:(e,t,n)=>{(t=e.exports=n(931506)(!1)).push([e.id,".icon-17btk {\n padding: 0;\n border: none;\n position: relative;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n cursor: pointer;\n transition: 0.3s, 0s box-shadow, 0s border-radius;\n}\n.icon-17btk:disabled {\n pointer-events: none;\n opacity: 0.4;\n cursor: default;\n}\n.icon-17btk:focus-visible {\n box-shadow: inset 0 0 0 1px #d9e0ff, 0 0 0 1px #455bed, 0 0 0 5px #d9e0ff;\n}\n.icon_x-small-3a7uC {\n width: 20px;\n height: 20px;\n}\n.icon_small-qPDg1 {\n width: 24px;\n height: 24px;\n}\n.icon_medium--ASNJ {\n width: 28px;\n height: 28px;\n}\n.icon_large-As3Py {\n width: 32px;\n height: 32px;\n}\n.icon_x-large-kDEOt {\n width: 36px;\n height: 36px;\n}\n.icon_xx-large-Wqvtm {\n width: 40px;\n height: 48px;\n}\n.icon_toolbar-2P1wT {\n width: 44px;\n height: 44px;\n}\n.icon_default-3EH8F {\n background-color: transparent;\n color: #050038;\n}\n.icon_default-3EH8F.icon_active-2Bo2v {\n color: #4262ff;\n}\n@media (hover: hover) {\n .icon_default-3EH8F:not(:disabled):hover {\n color: #4262ff;\n }\n}\n.icon_default-3EH8F:active:not(:disabled) {\n color: #4262ff;\n}\n.icon_primary-3G-uZ {\n background-color: #4262ff;\n color: #ffffff;\n border-radius: 125px;\n}\n@media (hover: hover) {\n .icon_primary-3G-uZ:not(:disabled):hover {\n background-color: #455bed;\n }\n}\n.icon_primary-3G-uZ:active:not(:disabled) {\n background-color: #3d51d4;\n}\n.icon_primary-3G-uZ:focus:not(:disabled) {\n background-color: #455bed;\n}\n.icon_primaryLight-3AKs_ {\n background-color: rgba(66, 98, 255, 0.12);\n mix-blend-mode: normal;\n color: #4262ff;\n border-radius: 125px;\n}\n@media (hover: hover) {\n .icon_primaryLight-3AKs_:not(:disabled):hover {\n background-color: rgba(66, 98, 255, 0.2);\n }\n}\n.icon_primaryLight-3AKs_:active:not(:disabled) {\n background-color: rgba(66, 98, 255, 0.3);\n}\n.icon_primaryLight-3AKs_:focus:not(:disabled) {\n background-color: rgba(66, 98, 255, 0.2);\n}\n.icon_secondary-34zjw {\n background-color: #cdccd7;\n color: #ffffff;\n border-radius: 125px;\n}\n@media (hover: hover) {\n .icon_secondary-34zjw:not(:disabled):hover {\n background-color: #9391a6;\n }\n}\n.icon_secondary-34zjw:active:not(:disabled) {\n background-color: #5f5c80;\n}\n.icon_secondary-34zjw:focus:not(:disabled) {\n background-color: #9391a6;\n}\n.icon_secondaryLight-251zc {\n background-color: #f0f0f3;\n mix-blend-mode: normal;\n color: #9391a6;\n border-radius: 125px;\n}\n@media (hover: hover) {\n .icon_secondaryLight-251zc:not(:disabled):hover {\n background-color: #ebebef;\n }\n}\n.icon_secondaryLight-251zc:active:not(:disabled) {\n background-color: #ebebef;\n}\n.icon_secondaryLight-251zc:focus:not(:disabled) {\n background-color: #ebebef;\n}\n.icon_withTitle-3JV19 {\n -ms-flex-direction: row;\n flex-direction: row;\n padding: 0 8px;\n width: auto;\n}\n.icon__title-3AaQD {\n margin-left: 4px;\n font-style: normal;\n font-stretch: normal;\n letter-spacing: normal;\n font-size: 14px;\n line-height: 20px;\n font-weight: normal;\n}\n.icon__titleNowrap-2g7Yd {\n white-space: nowrap;\n}\n.icon_notificationTop-1n_OV:after {\n content: '';\n position: absolute;\n display: block;\n width: 4px;\n height: 4px;\n top: calc(50% - 17px);\n border-radius: 125px;\n background-color: #4262ff;\n left: 50%;\n margin-left: -2px;\n}\n.badge-23BZr {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n pointer-events: none;\n}\n.badgeSize-2mswp {\n width: 24px;\n height: 24px;\n}\n.badgeWithNotification-1Pk6D {\n margin-left: 5px;\n}\n",""]),t.locals={icon:"icon-17btk","icon_x-small":"icon_x-small-3a7uC",icon_small:"icon_small-qPDg1",icon_medium:"icon_medium--ASNJ",icon_large:"icon_large-As3Py","icon_x-large":"icon_x-large-kDEOt","icon_xx-large":"icon_xx-large-Wqvtm",icon_toolbar:"icon_toolbar-2P1wT",icon_default:"icon_default-3EH8F",icon_active:"icon_active-2Bo2v",icon_primary:"icon_primary-3G-uZ",icon_primaryLight:"icon_primaryLight-3AKs_",icon_secondary:"icon_secondary-34zjw",icon_secondaryLight:"icon_secondaryLight-251zc",icon_withTitle:"icon_withTitle-3JV19",icon__title:"icon__title-3AaQD",icon__titleNowrap:"icon__titleNowrap-2g7Yd",icon_notificationTop:"icon_notificationTop-1n_OV",badge:"badge-23BZr",badgeSize:"badgeSize-2mswp",badgeWithNotification:"badgeWithNotification-1Pk6D"}},145295:(e,t,n)=>{var o=n(401892),r=n(73866);"string"===typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);var i={insert:"head",singleton:!1};o(r,i);e.exports=r.locals||{}},87407:(e,t,n)=>{var o=n(401892),r=n(110589);"string"===typeof(r=r.__esModule?r.default:r)&&(r=[[e.id,r,""]]);var i={insert:"head",singleton:!1};o(r,i);e.exports=r.locals||{}},881470:(e,t,n)=>{"use strict";n.d(t,{Badge:()=>l});var o=n(827378),r=n(831845),i=n(145295),a=n.n(i),l=function(e){var t=e.badgeContent,n=e.badgeContentClassName,i=e.className,l=e.children;return o.createElement("div",{className:(0,r.classNames)(a().badgeWrapper,i)},!!t&&o.createElement("div",{className:(0,r.classNames)(a().badge,n)},t),l)}},998733:(e,t,n)=>{"use strict";n.d(t,{IconButton:()=>u});var o=n(759312),r=n(827378),i=n(831845),a=n(263316),l=n(881470),s=n(87407),c=n.n(s),u=r.forwardRef((function(e,t){var n,s,u,d=e.className,f=e.isActive,p=e.hasSimpleNotification,m=void 0!==p&&p,h=e.hasNowrapLabel,g=void 0!==h&&h,v=e.isDisabled,y=void 0!==v&&v,b=e.children,x=e.notificationText,w=void 0===x?"":x,E=e.tooltipText,C=void 0===E?"":E,_=e.tooltipPlacement,T=void 0===_?"top":_,P=e.dataTestid,k=e.title,R=void 0===k?"":k,L=e.a11y,D=e.hotkey,A=e.size,O=void 0===A?"xx-large":A,S=e.color,N=void 0===S?"default":S,H=e.fullSizeBadge,z=void 0!==H&&H,M=e.isTabIndexDisabled,W=void 0===M||M,I=e.onClick,B=e.onTapDown,$=(0,o.__rest)(e,["className","isActive","hasSimpleNotification","hasNowrapLabel","isDisabled","children","notificationText","tooltipText","tooltipPlacement","dataTestid","title","a11y","hotkey","size","color","fullSizeBadge","isTabIndexDisabled","onClick","onTapDown"]),F=""!==R,j=[C,w].filter(Boolean).join(" ").trim();return r.createElement(a.TextTooltip,{placement:T,text:C,isAvailable:""!==C,hotkey:D,isTabIndexDisabled:W,trigger:r.createElement(i.NoDom,{hmTap:I,hmTapDown:B},r.createElement("button",(0,o.__assign)({type:"button",disabled:y,ref:t,className:(0,i.classNames)(d,c().icon,c()["icon_".concat(O)],c()["icon_".concat(N)],(n={},n[c().icon_active]=f,n[c().icon_notificationTop]=m,n[c().icon_disabled]=y,n[c().icon_withTitle]=F,n)),"data-testid":P,"aria-label":j.length>0?j:void 0},L,$),r.createElement(l.Badge,{badgeContent:w,badgeContentClassName:(0,i.classNames)((s={},s[c().badgeWithNotification]=m&&Boolean(w),s)),className:"".concat(c().badge," ").concat(z?"":c().badgeSize)},b),F&&r.createElement("div",{className:(0,i.classNames)(c().icon__title,(u={},u[c().icon__titleNowrap]=g,u))},R)))})}))}}]); //# sourceMappingURL=https://miro.com/app/static/cmn~AccessRequestManagem~BoardUI.desktop~BoardUI.live.embed.ui.less~BoardUI.mobile~BoardUI.webview~Dashboa.desktop~Dashboa.mobile~ShareAndInvite.f9870b8c2b3e6c6c.js.map