1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[853],{1276:function(e,t,n){n.d(t,{M:function(){return u}});var r,o=n(7294),i=n(9981),l=(r||(r=n.t(o,2)))["useId".toString()]||(()=>void 0),a=0;function u(e){let[t,n]=o.useState(l());return(0,i.b)(()=>{e||n(e=>e??String(a++))},[e]),e||(t?`radix-${t}`:"")}},8456:function(e,t,n){n.d(t,{z$:function(){return ex},ck:function(){return ew},fC:function(){return eg}});var r=n(7294);function o(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function l(...e){return t=>{let n=!1,r=e.map(e=>{let r=i(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():i(e[t],null)}}}}function a(...e){return r.useCallback(l(...e),e)}var u=n(5893);function s(e,t=[]){let n=[],o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return o.scopeName=e,[function(t,o){let i=r.createContext(o),l=n.length;n=[...n,o];let a=t=>{let{scope:n,children:o,...a}=t,s=n?.[e]?.[l]||i,c=r.useMemo(()=>a,Object.values(a));return(0,u.jsx)(s.Provider,{value:c,children:o})};return a.displayName=t+"Provider",[a,function(n,a){let u=a?.[e]?.[l]||i,s=r.useContext(u);if(s)return s;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(o,...t)]}n(3935);var c=r.forwardRef((e,t)=>{let{children:n,...o}=e,i=r.Children.toArray(n),l=i.find(p);if(l){let e=l.props.children,n=i.map(t=>t!==l?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,u.jsx)(f,{...o,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,n):null})}return(0,u.jsx)(f,{...o,ref:t,children:n})});c.displayName="Slot";var f=r.forwardRef((e,t)=>{let{children:n,...o}=e;if(r.isValidElement(n)){var i,a;let e,u;let s=(e=null===(i=Object.getOwnPropertyDescriptor(n.props,"ref"))||void 0===i?void 0:i.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=null===(a=Object.getOwnPropertyDescriptor(n,"ref"))||void 0===a?void 0:a.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return r.cloneElement(n,{...function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];i(...t),o(...t)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props),ref:t?l(t,s):s})}return r.Children.count(n)>1?r.Children.only(null):null});f.displayName="SlotClone";var d=e=>{let{children:t}=e;return(0,u.jsx)(u.Fragment,{children:t})};function p(e){return r.isValidElement(e)&&e.type===d}var m=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=r.forwardRef((e,n)=>{let{asChild:r,...o}=e,i=r?c:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,u.jsx)(i,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function h(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function v(e,t=[]){let n=[],o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return o.scopeName=e,[function(t,o){let i=r.createContext(o),l=n.length;n=[...n,o];let a=t=>{let{scope:n,children:o,...a}=t,s=n?.[e]?.[l]||i,c=r.useMemo(()=>a,Object.values(a));return(0,u.jsx)(s.Provider,{value:c,children:o})};return a.displayName=t+"Provider",[a,function(n,a){let u=a?.[e]?.[l]||i,s=r.useContext(u);if(s)return s;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(o,...t)]}function y(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function g(...e){return t=>{let n=!1,r=e.map(e=>{let r=y(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():y(e[t],null)}}}}function w(...e){return r.useCallback(g(...e),e)}var x=r.forwardRef((e,t)=>
1{let{children:n,...o}=e,i=r.Children.toArray(n),l=i.find(R);if(l){let e=l.props.children,n=i.map(t=>t!==l?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,u.jsx)(b,{...o,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,n):null})}return(0,u.jsx)(b,{...o,ref:t,children:n})});x.displayName="Slot";var b=r.forwardRef((e,t)=>{let{children:n,...o}=e;if(r.isValidElement(n)){var i,l;let e,a;let u=(e=null===(i=Object.getOwnPropertyDescriptor(n.props,"ref"))||void 0===i?void 0:i.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=null===(l=Object.getOwnPropertyDescriptor(n,"ref"))||void 0===l?void 0:l.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return r.cloneElement(n,{...function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];i(...t),o(...t)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props),ref:t?g(t,u):u})}return r.Children.count(n)>1?r.Children.only(null):null});b.displayName="SlotClone";var E=e=>{let{children:t}=e;return(0,u.jsx)(u.Fragment,{children:t})};function R(e){return r.isValidElement(e)&&e.type===E}var C=n(1276),T=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=r.forwardRef((e,n)=>{let{asChild:r,...o}=e,i=r?x:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,u.jsx)(i,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),N=n(9698),P=n(7342),O=n(8990),A="rovingFocusGroup.onEntryFocus",L={bubbles:!1,cancelable:!0},j="RovingFocusGroup",[k,M,S]=function(e){let t=e+"CollectionProvider",[n,o]=v(t),[i,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e=>{let{scope:t,children:n}=e,o=r.useRef(null),l=r.useRef(new Map).current;return(0,u.jsx)(i,{scope:t,itemMap:l,collectionRef:o,children:n})};a.displayName=t;let s=e+"CollectionSlot",c=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=w(t,l(s,n).collectionRef);return(0,u.jsx)(x,{ref:o,children:r})});c.displayName=s;let f=e+"CollectionItemSlot",d="data-radix-collection-item",p=r.forwardRef((e,t)=>{let{scope:n,children:o,...i}=e,a=r.useRef(null),s=w(t,a),c=l(f,n);return r.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),(0,u.jsx)(x,{[d]:"",ref:s,children:o})});return p.displayName=f,[{Provider:a,Slot:c,ItemSlot:p},function(t){let n=l(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},o]}(j),[D,I]=v(j,[S]),[F,_]=D(j),W=r.forwardRef((e,t)=>(0,u.jsx)(k.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,u.jsx)(k.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,u.jsx)($,{...e,ref:t})})}));W.displayName=j;var $=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:o,loop:i=!1,dir:l,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:f,preventScrollOnEntryFocus:d=!1,...p}=e,m=r.useRef(null),v=w(t,m),y=(0,O.gm)(l),[g=null,x]=(0,P.T)({prop:a,defaultProp:s,onChange:c}),[b,E]=r.useState(!1),R=(0,N.W)(f),C=M(n),j=r.useRef(!1),[k,S]=r.useState(0);return r.useEffect(()=>{let e=m.current;if(e)return e.addEventListener(A,R),()=>e.removeEventListener(A,R)},[R]),(0,u.jsx)(F,{scope:n,orientation:o,dir:y,loop:i,currentTabStopId:g,onItemFocus:r.useCallback(e=>x(e),[x]),onItemShiftTab:r.useCallback(()=>E(!0),[]),onFocusableItemAdd:r.useCallback(()=>S(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>S(e=>e-1),[]),children:(0,u.jsx)(T.div,{tabIndex:b||0===k?-1:0,"data-orientation":o,...p,ref:v,style:{outline:"none",...e.style},onMouseDown:h(e.onMouseDown,()=>{j.current=!0}),onFocus:h(e.onFocus,e=>{let t=!j.current;if(e.target===e.currentTarget&&t&&!b){let t=new CustomEvent(A,L);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=C().filter(e=>
1e.focusable);B([e.find(e=>e.active),e.find(e=>e.id===g),...e].filter(Boolean).map(e=>e.ref.current),d)}}j.current=!1}),onBlur:h(e.onBlur,()=>E(!1))})})}),V="RovingFocusGroupItem",U=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:o=!0,active:i=!1,tabStopId:l,...a}=e,s=(0,C.M)(),c=l||s,f=_(V,n),d=f.currentTabStopId===c,p=M(n),{onFocusableItemAdd:m,onFocusableItemRemove:v}=f;return r.useEffect(()=>{if(o)return m(),()=>v()},[o,m,v]),(0,u.jsx)(k.ItemSlot,{scope:n,id:c,focusable:o,active:i,children:(0,u.jsx)(T.span,{tabIndex:d?0:-1,"data-orientation":f.orientation,...a,ref:t,onMouseDown:h(e.onMouseDown,e=>{o?f.onItemFocus(c):e.preventDefault()}),onFocus:h(e.onFocus,()=>f.onItemFocus(c)),onKeyDown:h(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){f.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let o=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return H[o]}(e,f.orientation,f.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=p().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&o.reverse();let i=o.indexOf(e.currentTarget);o=f.loop?(n=o,r=i+1,n.map((e,t)=>n[(r+t)%n.length])):o.slice(i+1)}setTimeout(()=>B(o))}})})})});U.displayName=V;var H={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function B(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var z=n(7546),G=n(7898),K=n(9981),Y=e=>{let t,n;let{present:o,children:i}=e,l=function(e){var t,n;let[o,i]=r.useState(),l=r.useRef({}),a=r.useRef(e),u=r.useRef("none"),[s,c]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>n[e][t]??e,t));return r.useEffect(()=>{let e=X(l.current);u.current="mounted"===s?e:"none"},[s]),(0,K.b)(()=>{let t=l.current,n=a.current;if(n!==e){let r=u.current,o=X(t);e?c("MOUNT"):"none"===o||t?.display==="none"?c("UNMOUNT"):n&&r!==o?c("ANIMATION_OUT"):c("UNMOUNT"),a.current=e}},[e,c]),(0,K.b)(()=>{if(o){let e;let t=o.ownerDocument.defaultView??window,n=n=>{let r=X(l.current).includes(n.animationName);if(n.target===o&&r&&(c("ANIMATION_END"),!a.current)){let n=o.style.animationFillMode;o.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=n)})}},r=e=>{e.target===o&&(u.current=X(l.current))};return o.addEventListener("animationstart",r),o.addEventListener("animationcancel",n),o.addEventListener("animationend",n),()=>{t.clearTimeout(e),o.removeEventListener("animationstart",r),o.removeEventListener("animationcancel",n),o.removeEventListener("animationend",n)}}c("ANIMATION_END")},[o,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:r.useCallback(e=>{e&&(l.current=getComputedStyle(e)),i(e)},[])}}(o),u="function"==typeof i?i({present:l.isPresent}):r.Children.only(i),s=a(l.ref,(t=Object.getOwnPropertyDescriptor(u.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?u.ref:(t=Object.getOwnPropertyDescriptor(u,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?u.props.ref:u.props.ref||u.ref);return"function"==typeof i||l.isPresent?r.cloneElement(u,{ref:s}):null};function X(e){return e?.animationName||"none"}Y.displayName="Presence";var q="Radio",[Z,J]=s(q),[Q,ee]=Z(q),et=r.forwardRef((e,t)=>{let{__scopeRadio:n,name:i,checked:l=!1,required:s,disabled:c,value:f="on",onCheck:d,form:p,...h}=e,[v,y]=r.useState(null),g=a(t,e=>y(e)),w=r.useRef(!1),x=!v||p||!!v.closest("form");return(0,u.jsxs)(Q,{scope:n,checked:l,disabled:c,children:[(0,u.jsx)(m.button,{type:"button",role:"radio","aria-checked":l,"data-state":ei(l),"data-disabled":c?"":void 0,disabled:c,value:f,...h,ref:g,onClick:o(e.onClick,e=>{l||d?.(),x&&(w.current=e.isPropagationStopped(),w.current||e.stopPropagation())})}),x&&(0,u.jsx)(eo,{control:v,bubbles:!w.current,name:i,value:f,checked:l,required:s,disabled:c,form:p,style:{transform:"translateX(-100%)"}})]})});et.displayName=q;var en="RadioIndicator",er=r.forwardRef((e,t)=>
1{let{__scopeRadio:n,forceMount:r,...o}=e,i=ee(en,n);return(0,u.jsx)(Y,{present:r||i.checked,children:(0,u.jsx)(m.span,{"data-state":ei(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t})})});er.displayName=en;var eo=e=>{let{control:t,checked:n,bubbles:o=!0,...i}=e,l=r.useRef(null),a=(0,G.D)(n),s=(0,z.t)(t);return r.useEffect(()=>{let e=l.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(a!==n&&t){let r=new Event("click",{bubbles:o});t.call(e,n),e.dispatchEvent(r)}},[a,n,o]),(0,u.jsx)("input",{type:"radio","aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:l,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function ei(e){return e?"checked":"unchecked"}var el=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],ea="RadioGroup",[eu,es]=s(ea,[I,J]),ec=I(),ef=J(),[ed,ep]=eu(ea),em=r.forwardRef((e,t)=>{let{__scopeRadioGroup:n,name:r,defaultValue:o,value:i,required:l=!1,disabled:a=!1,orientation:s,dir:c,loop:f=!0,onValueChange:d,...p}=e,h=ec(n),v=(0,O.gm)(c),[y,g]=(0,P.T)({prop:i,defaultProp:o,onChange:d});return(0,u.jsx)(ed,{scope:n,name:r,required:l,disabled:a,value:y,onValueChange:g,children:(0,u.jsx)(W,{asChild:!0,...h,orientation:s,dir:v,loop:f,children:(0,u.jsx)(m.div,{role:"radiogroup","aria-required":l,"aria-orientation":s,"data-disabled":a?"":void 0,dir:v,...p,ref:t})})})});em.displayName=ea;var eh="RadioGroupItem",ev=r.forwardRef((e,t)=>{let{__scopeRadioGroup:n,disabled:i,...l}=e,s=ep(eh,n),c=s.disabled||i,f=ec(n),d=ef(n),p=r.useRef(null),m=a(t,p),h=s.value===l.value,v=r.useRef(!1);return r.useEffect(()=>{let e=e=>{el.includes(e.key)&&(v.current=!0)},t=()=>v.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,u.jsx)(U,{asChild:!0,...f,focusable:!c,active:h,children:(0,u.jsx)(et,{disabled:c,required:s.required,
1checked:h,...d,...l,name:s.name,ref:m,onCheck:()=>s.onValueChange(l.value),onKeyDown:o(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:o(l.onFocus,()=>{v.current&&p.current?.click()})})})});ev.displayName=eh;var ey=r.forwardRef((e,t)=>{let{__scopeRadioGroup:n,...r}=e,o=ef(n);return(0,u.jsx)(er,{...o,...r,ref:t})});ey.displayName="RadioGroupIndicator";var eg=em,ew=ev,ex=ey},2436:function(e,t,n){n.d(t,{VY:function(){return tM},h_:function(){return tk},zt:function(){return tA},fC:function(){return tL},xz:function(){return tj}});var r,o=n(7294);function i(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function l(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...e){return t=>{let n=!1,r=e.map(e=>{let r=l(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():l(e[t],null)}}}}function u(...e){return o.useCallback(a(...e),e)}var s=n(5893);function c(e,t=[]){let n=[],r=()=>{let t=n.map(e=>o.createContext(e));return function(n){let r=n?.[e]||t;return o.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=o.createContext(r),l=n.length;n=[...n,r];let a=t=>{let{scope:n,children:r,...a}=t,u=n?.[e]?.[l]||i,c=o.useMemo(()=>a,Object.values(a));return(0,s.jsx)(u.Provider,{value:c,children:r})};return a.displayName=t+"Provider",[a,function(n,a){let u=a?.[e]?.[l]||i,s=o.useContext(u);if(s)return s;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return o.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}var f=n(3935),d=o.forwardRef((e,t)=>{let{children:n,...r}=e,i=o.Children.toArray(n),l=i.find(h);if(l){let e=l.props.children,n=i.map(t=>t!==l?t:o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null);return(0,s.jsx)(p,{...r,ref:t,children:o.isValidElement(e)?o.cloneElement(e,void 0,n):null})}return(0,s.jsx)(p,{...r,ref:t,children:n})});d.displayName="Slot";var p=o.forwardRef((e,t)=>{let{children:n,...r}=e;if(o.isValidElement(n)){var i,l;let e,u;let s=(e=null===(i=Object.getOwnPropertyDescriptor(n.props,"ref"))||void 0===i?void 0:i.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=null===(l=Object.getOwnPropertyDescriptor(n,"ref"))||void 0===l?void 0:l.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return o.cloneElement(n,{...function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];i(...t),o(...t)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:t?a(t,s):s})}return o.Children.count(n)>1?o.Children.only(null):null});p.displayName="SlotClone";var m=e=>{let{children:t}=e;return(0,s.jsx)(s.Fragment,{children:t})};function h(e){return o.isValidElement(e)&&e.type===m}var v=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=o.forwardRef((e,n)=>{let{asChild:r,...o}=e,i=r?d:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(i,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),y=n(9698),g=n(8724),w="dismissableLayer.update",x=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),b=o.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:c,onInteractOutside:f,onDismiss:d,...p}=e,m=o.useContext(x),[h,b]=o.useState(null),C=h?.ownerDocument??globalThis?.document,[,T]=o.useState({}),N=u(t,e=>b(e)),P=Array.from(m.layers),[O]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),A=P.indexOf(O),L=h?P.indexOf(h):-1,j=m.layersWithOutsidePointerEventsDisabled.size>0,k=L>=A,M=function(e,t=globalThis?.document){let n=(0,y.W)(e),r=o.useRef(!1),i=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){R("dismissableLayer.pointerDownOutside",n,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=r,t.addEventListener("click",i.current,{once:!0})):r()}else t.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...m.branches].some(e=>e.contains(t));!k||n||(a?.(e),f?.(e),e.defaultPrevented||d?.())},C),S=function(e,t=globalThis?.document){let n=(0,y.W)(e),r=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!r.current&&R("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;[...m.branches].some(e=>e.contains(t))||(c?.(e),f?.(e),e.defaultPrevented||d?.())},C);return(0,g.e)(e=>{L!==m.layers.size-1||(l?.(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))},C),o.useEffect(()=>{if(h)return n&&(0===m.layersWithOutsidePointerEventsDisabled.size&&(r=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(h)),m.layers.add(h),E(),()=>{n&&1===m.layersWithOutsidePointerEventsDisabled.size&&(C.body.style.pointerEvents=r)}},[h,C,n,m]),o.useEffect(()=>()=>{h&&(m.layers.delete(h),m.layersWithOutsidePointerEventsDisabled.delete(h),E())},[h,m]),o.useEffect(()=>{let e=()=>T({});return document.addEventListener(w,e),()=>document.removeEventListener(w,e)},[]),(0,s.jsx)(v.div,{...p,ref:N,style:{pointerEvents:j?k?"auto":"none":void 0,...e.style},onFocusCapture:i(e.onFocusCapture,S.onFocusCapture),onBlurCapture:i(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:i(e.onPointerDownCapture,M.onPointerDownCapture)})});function E(){let e=new CustomEvent(w);document.dispatchEvent(e)}function R(e,t,n,{discrete:r}){let o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&o.addEventListener(e,t,{once:!0}),r)?o&&f.flushSync(()=>o.dispatchEvent(i)):o.dispatchEvent(i)}b.displayName="DismissableLayer",o.forwardRef((e,t)=>
1{let n=o.useContext(x),r=o.useRef(null),i=u(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,s.jsx)(v.div,{...e,ref:i})}).displayName="DismissableLayerBranch";var C=n(1276);let T=["top","right","bottom","left"],N=Math.min,P=Math.max,O=Math.round,A=Math.floor,L=e=>({x:e,y:e}),j={left:"right",right:"left",bottom:"top",top:"bottom"},k={start:"end",end:"start"};function M(e,t){return"function"==typeof e?e(t):e}function S(e){return e.split("-")[0]}function D(e){return e.split("-")[1]}function I(e){return"x"===e?"y":"x"}function F(e){return"y"===e?"height":"width"}function _(e){return["top","bottom"].includes(S(e))?"y":"x"}function W(e){return e.replace(/start|end/g,e=>k[e])}function $(e){return e.replace(/left|right|bottom|top/g,e=>j[e])}function V(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function U(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function H(e,t,n){let r,{reference:o,floating:i}=e,l=_(t),a=I(_(t)),u=F(a),s=S(t),c="y"===l,f=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,p=o[u]/2-i[u]/2;switch(s){case"top":r={x:f,y:o.y-i.height};break;case"bottom":r={x:f,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:d};break;case"left":r={x:o.x-i.width,y:d};break;default:r={x:o.x,y:o.y}}switch(D(t)){case"start":r[a]-=p*(n&&c?-1:1);break;case"end":r[a]+=p*(n&&c?-1:1)}return r}let B=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),u=await (null==l.isRTL?void 0:l.isRTL(t)),s=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=H(s,r,u),d=r,p={},m=0;for(let n=0;n<a.length;n++){let{name:i,fn:h}=a[n],{x:v,y:y,data:g,reset:w}=await h({x:c,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:s,platform:l,elements:{reference:e,floating:t}});c=null!=v?v:c,f=null!=y?y:f,p={...p,[i]:{...p[i],...g}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(s=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:c,y:f}=H(s,d,u)),n=-1)}return{x:c,y:f,placement:d,strategy:o,middlewareData:p}};async function z(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:s="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=M(t,e),m=V(p),h=a[d?"floating"===f?"reference":"floating":f],v=U(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:s,rootBoundary:c,strategy:u})),y="floating"===f?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,g=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),w=await (null==i.isElement?void 0:i.isElement(g))&&await (null==i.getScale?void 0:i.getScale(g))||{x:1,y:1},x=U(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:g,strategy:u}):y);return{top:(v.top-x.top+m.top)/w.y,bottom:(x.bottom-v.bottom+m.bottom)/w.y,left:(v.left-x.left+m.left)/w.x,right:(x.right-v.right+m.right)/w.x}}function G(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function K(e){return T.some(t=>e[t]>=0)}async function Y(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=S(n),a=D(n),u="y"===_(n),s=["left","top"].includes(l)?-1:1,c=i&&u?-1:1,f=M(t,e),{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof m&&(p="end"===a?-1*m:m),u?{x:p*c,y:d*s}:{x:d*s,y:p*c}}function X(){return"undefined"!=typeof window}function q(e){return Q(e)?(e.nodeName||"").toLowerCase():"#document"}function Z(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function J(e){var t;return null==(t=(Q(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Q(e){return!!X()&&(e instanceof Node||e instanceof Z(e).Node)}function ee(e){return!!X()&&(e instanceof Element||e instanceof Z(e).Element)}function et(e){return!!X()&&(e instanceof HTMLElement||e instanceof Z(e).HTMLElement)}function en(e){return!!X()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Z(e).ShadowRoot)}function er(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=eu(e);
1return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function eo(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function ei(e){let t=el(),n=ee(e)?eu(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function el(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function ea(e){return["html","body","#document"].includes(q(e))}function eu(e){return Z(e).getComputedStyle(e)}function es(e){return ee(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ec(e){if("html"===q(e))return e;let t=e.assignedSlot||e.parentNode||en(e)&&e.host||J(e);return en(t)?t.host:t}function ef(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=ec(t);return ea(n)?t.ownerDocument?t.ownerDocument.body:t.body:et(n)&&er(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=Z(o);if(i){let e=ed(l);return t.concat(l,l.visualViewport||[],er(o)?o:[],e&&n?ef(e):[])}return t.concat(o,ef(o,[],n))}function ed(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ep(e){let t=eu(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=et(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=O(n)!==i||O(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function em(e){return ee(e)?e:e.contextElement}function eh(e){let t=em(e);if(!et(t))return L(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ep(t),l=(i?O(n.width):n.width)/r,a=(i?O(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let ev=L(0);function ey(e){let t=Z(e);return el()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ev}function eg(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=em(e),a=L(1);t&&(r?ee(r)&&(a=eh(r)):a=eh(e));let u=(void 0===(o=n)&&(o=!1),r&&(!o||r===Z(l))&&o)?ey(l):L(0),s=(i.left+u.x)/a.x,c=(i.top+u.y)/a.y,f=i.width/a.x,d=i.height/a.y;if(l){let e=Z(l),t=r&&ee(r)?Z(r):r,n=e,o=ed(n);for(;o&&r&&t!==n;){let e=eh(o),t=o.getBoundingClientRect(),r=eu(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,f*=e.x,d*=e.y,s+=i,c+=l,o=ed(n=Z(o))}}return U({width:f,height:d,x:s,y:c})}function ew(e,t){let n=es(e).scrollLeft;return t?t.left+n:eg(J(e)).left+n}function ex(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:ew(e,r)),y:r.top+t.scrollTop}}function eb(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=Z(e),r=J(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,u=0;if(o){i=o.width,l=o.height;let e=el();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,u=o.offsetTop)}return{width:i,height:l,x:a,y:u}}(e,n);else if("document"===t)r=function(e){let t=J(e),n=es(e),r=e.ownerDocument.body,o=P(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=P(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),l=-n.scrollLeft+ew(e),a=-n.scrollTop;return"rtl"===eu(r).direction&&(l+=P(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}(J(e));else if(ee(t))r=function(e,t){let n=eg(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=et(e)?eh(e):L(1),l=e.clientWidth*i.x;return{width:l,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{let n=ey(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return U(r)}function eE(e){return"static"===eu(e).position}function eR(e,t){if(!et(e)||"fixed"===eu(e).position)return null;if(t)return t(e);let n=e.offsetParent;return J(e)===n&&(n=n.ownerDocument.body),n}function eC(e,t){let n=Z(e);if(eo(e))return n;if(!et(e)){let t=ec(e);for(;t&&!ea(t);){if(ee(t)&&!eE(t))return t;t=ec(t)}return n}let r=eR(e,t);for(;r&&["table","td","th"].includes(q(r))&&eE(r);)r=eR(r,t);return r&&ea(r)&&eE(r)&&!ei(r)?n:r||function(e){let t=ec(e);for(;et(t)&&!ea(t);){if(ei(t))return t;if(eo(t))break;t=ec(t)}return null}(e)||n}let eT=async function(e){let t=this.getOffsetParent||eC,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=et(t),o=J(t),i="fixed"===n,l=eg(e,!0,i,t),a={scrollLeft:0,scrollTop:0},u=L(0);
1if(r||!r&&!i){if(("body"!==q(t)||er(o))&&(a=es(t)),r){let e=eg(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=ew(o))}let s=!o||r||i?L(0):ex(o,a);return{x:l.left+a.scrollLeft-u.x-s.x,y:l.top+a.scrollTop-u.y-s.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eN={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=J(r),a=!!t&&eo(t.floating);if(r===l||a&&i)return n;let u={scrollLeft:0,scrollTop:0},s=L(1),c=L(0),f=et(r);if((f||!f&&!i)&&(("body"!==q(r)||er(l))&&(u=es(r)),et(r))){let e=eg(r);s=eh(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let d=!l||f||i?L(0):ex(l,u,!0);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-u.scrollLeft*s.x+c.x+d.x,y:n.y*s.y-u.scrollTop*s.y+c.y+d.y}},getDocumentElement:J,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?eo(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=ef(e,[],!1).filter(e=>ee(e)&&"body"!==q(e)),o=null,i="fixed"===eu(e).position,l=i?ec(e):e;for(;ee(l)&&!ea(l);){let t=eu(l),n=ei(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||er(l)&&!n&&function e(t,n){let r=ec(t);return!(r===n||!ee(r)||ea(r))&&("fixed"===eu(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=ec(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=i[0],a=i.reduce((e,n)=>{let r=eb(t,n,o);return e.top=P(r.top,e.top),e.right=N(r.right,e.right),e.bottom=N(r.bottom,e.bottom),e.left=P(r.left,e.left),e},eb(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:eC,getElementRects:eT,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ep(e);return{width:t,height:n}},getScale:eh,isElement:ee,isRTL:function(e){return"rtl"===eu(e).direction}},eP=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:u}=t,{element:s,padding:c=0}=M(e,t)||{};if(null==s)return{};let f=V(c),d={x:n,y:r},p=I(_(o)),m=F(p),h=await l.getDimensions(s),v="y"===p,y=v?"clientHeight":"clientWidth",g=i.reference[m]+i.reference[p]-d[p]-i.floating[m],w=d[p]-i.reference[p],x=await (null==l.getOffsetParent?void 0:l.getOffsetParent(s)),b=x?x[y]:0;b&&await (null==l.isElement?void 0:l.isElement(x))||(b=a.floating[y]||i.floating[m]);let E=b/2-h[m]/2-1,R=N(f[v?"top":"left"],E),C=N(f[v?"bottom":"right"],E),T=b-h[m]-C,O=b/2-h[m]/2+(g/2-w/2),A=P(R,N(O,T)),L=!u.arrow&&null!=D(o)&&O!==A&&i.reference[m]/2-(O<R?R:C)-h[m]/2<0,j=L?O<R?O-R:O-T:0;return{[p]:d[p]+j,data:{[p]:A,centerOffset:O-A-j,...L&&{alignmentOffset:j}},reset:L}}}),eO=(e,t,n)=>{let r=new Map,o={platform:eN,...n},i={...o.platform,_c:r};return B(e,t,{...o,platform:i})};var eA="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function eL(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eL(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!eL(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ej(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ek(e,t){let n=ej(e);return Math.round(t*n)/n}function eM(e){let t=o.useRef(e);return eA(()=>{t.current=e}),t}let eS=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?eP({element:n.current,padding:r}).fn(t):{}:n?eP({element:n,padding:r}).fn(t):{}}}),eD=(e,t)=>{var n;return{...(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:o,y:i,placement:l,middlewareData:a}=e,u=await Y(e,n);return l===(null==(t=a.offset)?void 0:t.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}}),options:[e,t]}},eI=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:o}=e,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=M(n,e),s={x:t,y:r},c=await z(e,u),f=_(S(o)),d=I(f),p=s[d],m=s[f];if(i){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=p+c[e],r=p-c[t];p=P(n,N(p,r))}if(l){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=m+c[e],r=m-c[t];
1m=P(n,N(m,r))}let h=a.fn({...e,[d]:p,[f]:m});return{...h,data:{x:h.x-t,y:h.y-r,enabled:{[d]:i,[f]:l}}}}}),options:[e,t]}},eF=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{options:n,fn(e){let{x:t,y:r,placement:o,rects:i,middlewareData:l}=e,{offset:a=0,mainAxis:u=!0,crossAxis:s=!0}=M(n,e),c={x:t,y:r},f=_(o),d=I(f),p=c[d],m=c[f],h=M(a,e),v="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(u){let e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+v.mainAxis,n=i.reference[d]+i.reference[e]-v.mainAxis;p<t?p=t:p>n&&(p=n)}if(s){var y,g;let e="y"===d?"width":"height",t=["top","left"].includes(S(o)),n=i.reference[f]-i.floating[e]+(t&&(null==(y=l.offset)?void 0:y[f])||0)+(t?0:v.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:(null==(g=l.offset)?void 0:g[f])||0)-(t?v.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[d]:p,[f]:m}}}),options:[e,t]}},e_=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,r,o,i,l;let{placement:a,middlewareData:u,rects:s,initialPlacement:c,platform:f,elements:d}=e,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:h,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:g=!0,...w}=M(n,e);if(null!=(t=u.arrow)&&t.alignmentOffset)return{};let x=S(a),b=_(c),E=S(c)===c,R=await (null==f.isRTL?void 0:f.isRTL(d.floating)),C=h||(E||!g?[$(c)]:function(e){let t=$(e);return[W(e),t,W(t)]}(c)),T="none"!==y;!h&&T&&C.push(...function(e,t,n,r){let o=D(e),i=function(e,t,n){let r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(n)return t?o:r;return t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(S(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(W)))),i}(c,g,y,R));let N=[c,...C],P=await z(e,w),O=[],A=(null==(r=u.flip)?void 0:r.overflows)||[];if(p&&O.push(P[x]),m){let e=function(e,t,n){void 0===n&&(n=!1);let r=D(e),o=I(_(e)),i=F(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=$(l)),[l,$(l)]}(a,s,R);O.push(P[e[0]],P[e[1]])}if(A=[...A,{placement:a,overflows:O}],!O.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=N[e];if(t)return{data:{index:e,overflows:A},reset:{placement:t}};let n=null==(i=A.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(v){case"bestFit":{let e=null==(l=A.filter(e=>{if(T){let t=_(e.placement);return t===b||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=c}if(a!==n)return{reset:{placement:n}}}return{}}}),options:[e,t]}},eW=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"size",options:n,async fn(e){var t,r;let o,i;let{placement:l,rects:a,platform:u,elements:s}=e,{apply:c=()=>{},...f}=M(n,e),d=await z(e,f),p=S(l),m=D(l),h="y"===_(l),{width:v,height:y}=a.floating;"top"===p||"bottom"===p?(o=p,i=m===(await (null==u.isRTL?void 0:u.isRTL(s.floating))?"start":"end")?"left":"right"):(i=p,o="end"===m?"top":"bottom");let g=y-d.top-d.bottom,w=v-d.left-d.right,x=N(y-d[o],g),b=N(v-d[i],w),E=!e.middlewareData.shift,R=x,C=b;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(C=w),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(R=g),E&&!m){let e=P(d.left,0),t=P(d.right,0),n=P(d.top,0),r=P(d.bottom,0);h?C=v-2*(0!==e||0!==t?e+t:P(d.left,d.right)):R=y-2*(0!==n||0!==r?n+r:P(d.top,d.bottom))}await c({...e,availableWidth:C,availableHeight:R});let T=await u.getDimensions(s.floating);return v!==T.width||y!==T.height?{reset:{rects:!0}}:{}}}),options:[e,t]}},e$=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"hide",options:n,async fn(e){let{rects:t}=e,{strategy:r="referenceHidden",...o}=M(n,e);switch(r){case"referenceHidden":{let n=G(await z(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:K(n)}}}case"escaped":{let n=G(await z(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:K(n)}}}default:return{}}}}),options:[e,t]}},eV=(e,t)=>({...eS(e),options:[e,t]});var eU=o.forwardRef((e,t)=>
1{let{children:n,width:r=10,height:o=5,...i}=e;return(0,s.jsx)(v.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,s.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eU.displayName="Arrow";var eH=n(9981),eB=n(7546),ez="Popper",[eG,eK]=c(ez),[eY,eX]=eG(ez),eq=e=>{let{__scopePopper:t,children:n}=e,[r,i]=o.useState(null);return(0,s.jsx)(eY,{scope:t,anchor:r,onAnchorChange:i,children:n})};eq.displayName=ez;var eZ="PopperAnchor",eJ=o.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,l=eX(eZ,n),a=o.useRef(null),c=u(t,a);return o.useEffect(()=>{l.onAnchorChange(r?.current||a.current)}),r?null:(0,s.jsx)(v.div,{...i,ref:c})});eJ.displayName=eZ;var eQ="PopperContent",[e0,e1]=eG(eQ),e2=o.forwardRef((e,t)=>{let{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:l="center",alignOffset:a=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:p=[],collisionPadding:m=0,sticky:h="partial",hideWhenDetached:g=!1,updatePositionStrategy:w="optimized",onPlaced:x,...b}=e,E=eX(eQ,n),[R,C]=o.useState(null),T=u(t,e=>C(e)),[O,L]=o.useState(null),j=(0,eB.t)(O),k=j?.width??0,M=j?.height??0,S="number"==typeof m?m:{top:0,right:0,bottom:0,left:0,...m},D=Array.isArray(p)?p:[p],I=D.length>0,F={padding:S,boundary:D.filter(e5),altBoundary:I},{refs:_,floatingStyles:W,placement:$,isPositioned:V,middlewareData:U}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:l,floating:a}={},transform:u=!0,whileElementsMounted:s,open:c}=e,[d,p]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=o.useState(r);eL(m,r)||h(r);let[v,y]=o.useState(null),[g,w]=o.useState(null),x=o.useCallback(e=>{e!==C.current&&(C.current=e,y(e))},[]),b=o.useCallback(e=>{e!==T.current&&(T.current=e,w(e))},[]),E=l||v,R=a||g,C=o.useRef(null),T=o.useRef(null),N=o.useRef(d),P=null!=s,O=eM(s),A=eM(i),L=eM(c),j=o.useCallback(()=>{if(!C.current||!T.current)return;let e={placement:t,strategy:n,middleware:m};A.current&&(e.platform=A.current),eO(C.current,T.current,e).then(e=>{let t={...e,isPositioned:!1!==L.current};k.current&&!eL(N.current,t)&&(N.current=t,f.flushSync(()=>{p(t)}))})},[m,t,n,A,L]);eA(()=>{!1===c&&N.current.isPositioned&&(N.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[c]);let k=o.useRef(!1);eA(()=>(k.current=!0,()=>{k.current=!1}),[]),eA(()=>{if(E&&(C.current=E),R&&(T.current=R),E&&R){if(O.current)return O.current(E,R,j);j()}},[E,R,j,O,P]);let M=o.useMemo(()=>({reference:C,floating:T,setReference:x,setFloating:b}),[x,b]),S=o.useMemo(()=>({reference:E,floating:R}),[E,R]),D=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!S.floating)return e;let t=ek(S.floating,d.x),r=ek(S.floating,d.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...ej(S.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,S.floating,d.x,d.y]);return o.useMemo(()=>({...d,update:j,refs:M,elements:S,floatingStyles:D}),[d,j,M,S,D])}({strategy:"fixed",placement:r+("center"!==l?"-"+l:""),whileElementsMounted:(...e)=>(function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=em(e),f=i||l?[...c?ef(c):[],...ef(t)]:[];f.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)});let d=c&&u?function(e,t){let n,r=null,o=J(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function l(a,u){void 0===a&&(a=!1),void 0===u&&(u=1),i();let{left:s,top:c,width:f,height:d}=e.getBoundingClientRect();if(a||t(),!f||!d)return;let p=A(c),m=A(o.clientWidth-(s+f)),h={rootMargin:-p+"px "+-m+"px "+-A(o.clientHeight-(c+d))+"px "+-A(s)+"px",threshold:P(0,N(1,u))||1},v=!0;function y(e){let t=e[0].intersectionRatio;if(t!==u){if(!v)return l();t?l(!1,t):n=setTimeout(()=>{l(!1,1e-7)},1e3)}v=!1}try{r=new IntersectionObserver(y,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(y,h)}r.observe(e)}(!0),i}(c,n):null,p=-1,m=null;a&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),c&&!s&&m.observe(c),m.observe(t));let h=s?eg(e):null;return s&&function t(){let r=eg(e);h&&(r.x!==h.x||r.y!==h.y||r.width!==h.width||r.height!==h.height)&&n(),h=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;
1f.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=m)||e.disconnect(),m=null,s&&cancelAnimationFrame(o)}})(...e,{animationFrame:"always"===w}),elements:{reference:E.anchor},middleware:[eD({mainAxis:i+M,alignmentAxis:a}),d&&eI({mainAxis:!0,crossAxis:!1,limiter:"partial"===h?eF():void 0,...F}),d&&e_({...F}),eW({...F,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:o,height:i}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${n}px`),l.setProperty("--radix-popper-available-height",`${r}px`),l.setProperty("--radix-popper-anchor-width",`${o}px`),l.setProperty("--radix-popper-anchor-height",`${i}px`)}}),O&&eV({element:O,padding:c}),e8({arrowWidth:k,arrowHeight:M}),g&&e$({strategy:"referenceHidden",...F})]}),[H,B]=e4($),z=(0,y.W)(x);(0,eH.b)(()=>{V&&z?.()},[V,z]);let G=U.arrow?.x,K=U.arrow?.y,Y=U.arrow?.centerOffset!==0,[X,q]=o.useState();return(0,eH.b)(()=>{R&&q(window.getComputedStyle(R).zIndex)},[R]),(0,s.jsx)("div",{ref:_.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:V?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:X,"--radix-popper-transform-origin":[U.transformOrigin?.x,U.transformOrigin?.y].join(" "),...U.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,s.jsx)(e0,{scope:n,placedSide:H,onArrowChange:L,arrowX:G,arrowY:K,shouldHideArrow:Y,children:(0,s.jsx)(v.div,{"data-side":H,"data-align":B,...b,ref:T,style:{...b.style,animation:V?void 0:"none"}})})})});e2.displayName=eQ;var e9="PopperArrow",e7={top:"bottom",right:"left",bottom:"top",left:"right"},e3=o.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=e1(e9,n),i=e7[o.placedSide];return(0,s.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,s.jsx)(eU,{...r,ref:t,style:{...r.style,display:"block"}})})});function e5(e){return null!==e}e3.displayName=e9;var e8=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[u,s]=e4(n),c={start:"0%",center:"50%",end:"100%"}[s],f=(o.arrow?.x??0)+l/2,d=(o.arrow?.y??0)+a/2,p="",m="";return"bottom"===u?(p=i?c:`${f}px`,m=`${-a}px`):"top"===u?(p=i?c:`${f}px`,m=`${r.floating.height+a}px`):"right"===u?(p=`${-a}px`,m=i?c:`${d}px`):"left"===u&&(p=`${r.floating.width+a}px`,m=i?c:`${d}px`),{data:{x:p,y:m}}}});function e4(e){let[t,n="center"]=e.split("-");return[t,n]}var e6=o.forwardRef((e,t)=>{let{container:n,...r}=e,[i,l]=o.useState(!1);(0,eH.b)(()=>l(!0),[]);let a=n||i&&globalThis?.document?.body;return a?f.createPortal((0,s.jsx)(v.div,{...r,ref:t}),a):null});e6.displayName="Portal";var te=e=>{let t,n;let{present:r,children:i}=e,l=function(e){var t,n;let[r,i]=o.useState(),l=o.useRef({}),a=o.useRef(e),u=o.useRef("none"),[s,c]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},o.useReducer((e,t)=>n[e][t]??e,t));return o.useEffect(()=>{let e=tt(l.current);u.current="mounted"===s?e:"none"},[s]),(0,eH.b)(()=>{let t=l.current,n=a.current;if(n!==e){let r=u.current,o=tt(t);e?c("MOUNT"):"none"===o||t?.display==="none"?c("UNMOUNT"):n&&r!==o?c("ANIMATION_OUT"):c("UNMOUNT"),a.current=e}},[e,c]),(0,eH.b)(()=>{if(r){let e;let t=r.ownerDocument.defaultView??window,n=n=>{let o=tt(l.current).includes(n.animationName);if(n.target===r&&o&&(c("ANIMATION_END"),!a.current)){let n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)})}},o=e=>{e.target===r&&(u.current=tt(l.current))};return r.addEventListener("animationstart",o),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",o),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}c("ANIMATION_END")},[r,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:o.useCallback(e=>{e&&(l.current=getComputedStyle(e)),i(e)},[])}}(r),a="function"==typeof i?i({present:l.isPresent}):o.Children.only(i),s=u(l.ref,(t=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?a.ref:(t=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?a.props.ref:a.props.ref||a.ref);return"function"==typeof i||l.isPresent?o.cloneElement(a,{ref:s}):null};function tt(e){return e?.animationName||"none"}te.displayName="Presence";var tn=n(7342),tr=o.forwardRef((e,t)=>
1(0,s.jsx)(v.span,{...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}}));tr.displayName="VisuallyHidden";var[to,ti]=c("Tooltip",[eK]),tl=eK(),ta="TooltipProvider",tu="tooltip.open",[ts,tc]=to(ta),tf=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:l}=e,[a,u]=o.useState(!0),c=o.useRef(!1),f=o.useRef(0);return o.useEffect(()=>{let e=f.current;return()=>window.clearTimeout(e)},[]),(0,s.jsx)(ts,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:o.useCallback(()=>{window.clearTimeout(f.current),u(!1)},[]),onClose:o.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>u(!0),r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:o.useCallback(e=>{c.current=e},[]),disableHoverableContent:i,children:l})};tf.displayName=ta;var td="Tooltip",[tp,tm]=to(td),th=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:l,disableHoverableContent:a,delayDuration:u}=e,c=tc(td,e.__scopeTooltip),f=tl(t),[d,p]=o.useState(null),m=(0,C.M)(),h=o.useRef(0),v=a??c.disableHoverableContent,y=u??c.delayDuration,g=o.useRef(!1),[w=!1,x]=(0,tn.T)({prop:r,defaultProp:i,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(tu))):c.onClose(),l?.(e)}}),b=o.useMemo(()=>w?g.current?"delayed-open":"instant-open":"closed",[w]),E=o.useCallback(()=>{window.clearTimeout(h.current),h.current=0,g.current=!1,x(!0)},[x]),R=o.useCallback(()=>{window.clearTimeout(h.current),h.current=0,x(!1)},[x]),T=o.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{g.current=!0,x(!0),h.current=0},y)},[y,x]);return o.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),(0,s.jsx)(eq,{...f,children:(0,s.jsx)(tp,{scope:t,contentId:m,open:w,stateAttribute:b,trigger:d,onTriggerChange:p,onTriggerEnter:o.useCallback(()=>{c.isOpenDelayed?T():E()},[c.isOpenDelayed,T,E]),onTriggerLeave:o.useCallback(()=>{v?R():(window.clearTimeout(h.current),h.current=0)},[R,v]),onOpen:E,onClose:R,disableHoverableContent:v,children:n})})};th.displayName=td;var tv="TooltipTrigger",ty=o.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,l=tm(tv,n),a=tc(tv,n),c=tl(n),f=u(t,o.useRef(null),l.onTriggerChange),d=o.useRef(!1),p=o.useRef(!1),m=o.useCallback(()=>d.current=!1,[]);return o.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),(0,s.jsx)(eJ,{asChild:!0,...c,children:(0,s.jsx)(v.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...r,ref:f,onPointerMove:i(e.onPointerMove,e=>{"touch"===e.pointerType||p.current||a.isPointerInTransitRef.current||(l.onTriggerEnter(),p.current=!0)}),onPointerLeave:i(e.onPointerLeave,()=>{l.onTriggerLeave(),p.current=!1}),onPointerDown:i(e.onPointerDown,()=>{d.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:i(e.onFocus,()=>{d.current||l.onOpen()}),onBlur:i(e.onBlur,l.onClose),onClick:i(e.onClick,l.onClose)})})});ty.displayName=tv;var tg="TooltipPortal",[tw,tx]=to(tg,{forceMount:void 0}),tb=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=tm(tg,t);return(0,s.jsx)(tw,{scope:t,forceMount:n,children:(0,s.jsx)(te,{present:n||i.open,children:(0,s.jsx)(e6,{asChild:!0,container:o,children:r})})})};tb.displayName=tg;var tE="TooltipContent",tR=o.forwardRef((e,t)=>{let n=tx(tE,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,l=tm(tE,e.__scopeTooltip);return(0,s.jsx)(te,{present:r||l.open,children:l.disableHoverableContent?(0,s.jsx)(tP,{side:o,...i,ref:t}):(0,s.jsx)(tC,{side:o,...i,ref:t})})}),tC=o.forwardRef((e,t)=>{let n=tm(tE,e.__scopeTooltip),r=tc(tE,e.__scopeTooltip),i=o.useRef(null),l=u(t,i),[a,c]=o.useState(null),{trigger:f,onClose:d}=n,p=i.current,{onPointerInTransitChange:m}=r,h=o.useCallback(()=>{c(null),m(!1)},[m]),v=o.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(r,n.getBoundingClientRect());c(function(e){let t=e.slice();return t.sort((e,t)=>
1e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}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)}([...function(e,t,n=5){let r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,o),...function(e){let{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())])),m(!0)},[m]);return o.useEffect(()=>()=>h(),[h]),o.useEffect(()=>{if(f&&p){let e=e=>v(e,p),t=e=>v(e,f);return f.addEventListener("pointerleave",e),p.addEventListener("pointerleave",t),()=>{f.removeEventListener("pointerleave",e),p.removeEventListener("pointerleave",t)}}},[f,p,v,h]),o.useEffect(()=>{if(a){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=f?.contains(t)||p?.contains(t),o=!function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let l=t[e].x,a=t[e].y,u=t[i].x,s=t[i].y;a>r!=s>r&&n<(u-l)*(r-a)/(s-a)+l&&(o=!o)}return o}(n,a);r?h():o&&(h(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[f,p,a,d,h]),(0,s.jsx)(tP,{...e,ref:l})}),[tT,tN]=to(td,{isInside:!1}),tP=o.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:l,onPointerDownOutside:a,...u}=e,c=tm(tE,n),f=tl(n),{onClose:d}=c;return o.useEffect(()=>(document.addEventListener(tu,d),()=>document.removeEventListener(tu,d)),[d]),o.useEffect(()=>{if(c.trigger){let e=e=>{let t=e.target;t?.contains(c.trigger)&&d()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[c.trigger,d]),(0,s.jsx)(b,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,s.jsxs)(e2,{"data-state":c.stateAttribute,...f,...u,ref:t,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,s.jsx)(m,{children:r}),(0,s.jsx)(tT,{scope:n,isInside:!0,children:(0,s.jsx)(tr,{id:c.contentId,role:"tooltip",children:i||r})})]})})});tR.displayName=tE;var tO="TooltipArrow";o.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,o=tl(n);return tN(tO,n).isInside?null:(0,s.jsx)(e3,{...o,...r,ref:t})}).displayName=tO;var tA=tf,tL=th,tj=ty,tk=tb,tM=tR},8724:function(e,t,n){n.d(t,{e:function(){return i}});var r=n(7294),o=n(9698);function i(e,t=globalThis?.document){let n=(0,o.W)(e);r.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}},7576:function(e,t,n){n.d(t,{M:function(){return v}});var r=n(7294),o=n(9821);function i(){let e=(0,r.useRef)(!1);return(0,o.L)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var l=n(2161),a=n(4063),u=n(5437);class s extends r.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function c(e){let{children:t,isPresent:n}=e,o=(0,r.useId)(),i=(0,r.useRef)(null),l=(0,r.useRef)({width:0,height:0,top:0,left:0});return(0,r.useInsertionEffect)(()=>{let{width:e,height:t,top:r,left:a}=l.current;if(n||!i.current||!e||!t)return;i.current.dataset.motionPopId=o;let u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule('\n [data-motion-pop-id="'.concat(o,'"] {\n position: absolute !important;\n width: ').concat(e,"px !important;\n height: ").concat(t,"px !important;\n top: ").concat(r,"px !important;\n left: ").concat(a,"px !important;\n }\n ")),()=>{document.head.removeChild(u)}},[n]),r.createElement(s,{isPresent:n,childRef:i,sizeRef:l},r.cloneElement(t,{ref:i}))}let f=e=>{let{children:t,initial:n,isPresent:o,onExitComplete:i,custom:l,presenceAffectsLayout:s,mode:f}=e,p=(0,u.h)(d),m=(0,r.useId)(),h=(0,r.useMemo)(()=>({id:m,initial:n,isPresent:o,custom:l,onExitComplete:e=>
1{for(let t of(p.set(e,!0),p.values()))if(!t)return;i&&i()},register:e=>(p.set(e,!1),()=>p.delete(e))}),s?void 0:[o]);return(0,r.useMemo)(()=>{p.forEach((e,t)=>p.set(t,!1))},[o]),r.useEffect(()=>{o||p.size||!i||i()},[o]),"popLayout"===f&&(t=r.createElement(c,{isPresent:o},t)),r.createElement(a.O.Provider,{value:h},t)};function d(){return new Map}var p=n(2342),m=n(7118);let h=e=>e.key||"",v=e=>{var t;let{children:n,custom:a,initial:u=!0,onExitComplete:s,exitBeforeEnter:c,presenceAffectsLayout:d=!0,mode:v="sync"}=e;(0,m.k)(!c,"Replace exitBeforeEnter with mode='wait'");let y=(0,r.useContext)(p.p).forceRender||function(){let e=i(),[t,n]=(0,r.useState)(0),o=(0,r.useCallback)(()=>{e.current&&n(t+1)},[t]);return[(0,r.useCallback)(()=>l.Wi.postRender(o),[o]),t]}()[0],g=i(),w=function(e){let t=[];return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}(n),x=w,b=(0,r.useRef)(new Map).current,E=(0,r.useRef)(x),R=(0,r.useRef)(new Map).current,C=(0,r.useRef)(!0);if((0,o.L)(()=>{C.current=!1,function(e,t){e.forEach(e=>{let n=h(e);t.set(n,e)})}(w,R),E.current=x}),t=()=>{C.current=!0,R.clear(),b.clear()},(0,r.useEffect)(()=>()=>t(),[]),C.current)return r.createElement(r.Fragment,null,x.map(e=>r.createElement(f,{key:h(e),isPresent:!0,initial:!!u&&void 0,presenceAffectsLayout:d,mode:v},e)));x=[...x];let T=E.current.map(h),N=w.map(h),P=T.length;for(let e=0;e<P;e++){let t=T[e];-1!==N.indexOf(t)||b.has(t)||b.set(t,void 0)}return"wait"===v&&b.size&&(x=[]),b.forEach((e,t)=>{if(-1!==N.indexOf(t))return;let n=R.get(t);if(!n)return;let o=T.indexOf(t),i=e;i||(i=r.createElement(f,{key:h(n),isPresent:!1,onExitComplete:()=>{b.delete(t);let e=Array.from(R.keys()).filter(e=>!N.includes(e));if(e.forEach(e=>R.delete(e)),E.current=w.filter(n=>{let r=h(n);return r===t||e.includes(r)}),!b.size){if(!1===g.current)return;y(),s&&s()}},custom:a,presenceAffectsLayout:d,mode:v},n),b.set(t,i)),x.splice(o,0,i)}),x=x.map(e=>{let t=e.key;return b.has(t)?e:r.createElement(f,{key:h(e),isPresent:!0,presenceAffectsLayout:d,mode:v},e)}),r.createElement(r.Fragment,null,b.size?x:x.map(e=>(0,r.cloneElement)(e)))}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.