1import{r as u,j as b,R as ne,a as Ge,b as Dn,c as Nn}from"./vendor-react-CyiVkhVt.js";function j(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function dt(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function St(...e){return t=>{let n=!1;const o=e.map(r=>{const s=dt(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<o.length;r++){const s=o[r];typeof s=="function"?s():dt(e[r],null)}}}}function B(...e){return u.useCallback(St(...e),e)}function Se(e,t=[]){let n=[];function o(s,i){const c=u.createContext(i),l=n.length;n=[...n,i];const a=d=>{const{scope:m,children:p,...v}=d,h=m?.[e]?.[l]||c,g=u.useMemo(()=>v,Object.values(v));return b.jsx(h.Provider,{value:g,children:p})};a.displayName=s+"Provider";function f(d,m){const p=m?.[e]?.[l]||c,v=u.useContext(p);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[a,f]}const r=()=>{const s=n.map(i=>u.createContext(i));return function(c){const l=c?.[e]||s;return u.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return r.scopeName=e,[o,Ln(r,...t)]}function Ln(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const i=o.reduce((c,{useScope:l,scopeName:a})=>{const d=l(s)[`__scope${a}`];return{...c,...d}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function He(e){const t=Mn(e),n=u.forwardRef((o,r)=>{const{children:s,...i}=o,c=u.Children.toArray(s),l=c.find(In);if(l){const a=l.props.children,f=c.map(d=>d===l?u.Children.count(a)>1?u.Children.only(null):u.isValidElement(a)?a.props.children:null:d);return b.jsx(t,{...i,ref:r,children:u.isValidElement(a)?u.cloneElement(a,void 0,f):null})}return b.jsx(t,{...i,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function Mn(e){const t=u.forwardRef((n,o)=>{const{children:r,...s}=n;if(u.isValidElement(r)){const i=kn(r),c=Fn(s,r.props);return r.type!==u.Fragment&&(c.ref=o?St(o,i):i),u.cloneElement(r,c)}return u.Children.count(r)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ot=Symbol("radix.slottable");function _n(e){const t=({children:n})=>b.jsx(b.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Ot,t}function In(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ot}function Fn(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...c)=>{const l=s(...c);return r(...c),l}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function kn(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function jn(e){const t=e+"CollectionProvider",[n,o]=Se(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=h=>{const{scope:g,children:y}=h,w=ne.useRef(null),x=ne.useRef(new Map).current;return b.jsx(r,{scope:g,itemMap:x,collectionRef:w,children:y})};i.displayName=t;const c=e+"CollectionSlot",l=He(c),a=ne.forwardRef((h,g)=>{const{scope:y,children:w}=h,x=s(c,y),E=B(g,x.collectionRef);return b.jsx(l,{ref:E,children:w})});a.displayName=c;const f=e+"CollectionItemSlot",d="data-radix-collection-item",m=He(f),p=ne.forwardRef((h,g)=>{const{scope:y,children:w,...x}=h,E=ne.useRef(null),R=B(g,E),T=s(f,y);return ne.useEffect(()=>(T.itemMap.set(E,{ref:E,...x}),()=>{T.itemMap.delete(E)})),b.jsx(m,{[d]:"",ref:R,children:w})});p.displayName=f;function v(h){const g=s(e+"CollectionConsumer",h);return ne.useCallback(()=>{const w=g.collectionRef.current;if(!w)return[];const x=Array.from(w.querySelectorAll(`[${d}]`));return Array.from(g.itemMap.values()).sort((T,P)=>x.indexOf(T.ref.current)-x.indexOf(P.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:i,Slot:a,ItemSlot:p},v,o]}var $n=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$=$n.reduce((e,t)=>
vendor: 5,067 bytes, line 1
1{const n=He(`Primitive.${t}`),o=u.forwardRef((r,s)=>{const{asChild:i,...c}=r,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(l,{...c,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Dt(e,t){e&&Ge.flushSync(()=>e.dispatchEvent(t))}function J(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>t.current?.(...n),[])}function Wn(e,t=globalThis?.document){const n=J(e);u.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var Hn="DismissableLayer",Ve="dismissableLayer.update",Vn="dismissableLayer.pointerDownOutside",Bn="dismissableLayer.focusOutside",pt,Nt=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ze=u.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:i,onDismiss:c,...l}=e,a=u.useContext(Nt),[f,d]=u.useState(null),m=f?.ownerDocument??globalThis?.document,[,p]=u.useState({}),v=B(t,P=>d(P)),h=Array.from(a.layers),[g]=[...a.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(g),w=f?h.indexOf(f):-1,x=a.layersWithOutsidePointerEventsDisabled.size>0,E=w>=y,R=Un(P=>{const O=P.target,L=[...a.branches].some(D=>D.contains(O));!E||L||(r?.(P),i?.(P),P.defaultPrevented||c?.())},m),T=Kn(P=>{const O=P.target;[...a.branches].some(D=>D.contains(O))||(s?.(P),i?.(P),P.defaultPrevented||c?.())},m);return Wn(P=>{w===a.layers.size-1&&(o?.(P),!P.defaultPrevented&&c&&(P.preventDefault(),c()))},m),u.useEffect(()=>{if(f)return n&&(a.layersWithOutsidePointerEventsDisabled.size===0&&(pt=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),a.layersWithOutsidePointerEventsDisabled.add(f)),a.layers.add(f),mt(),()=>{n&&a.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=pt)}},[f,m,n,a]),u.useEffect(()=>()=>{f&&(a.layers.delete(f),a.layersWithOutsidePointerEventsDisabled.delete(f),mt())},[f,a]),u.useEffect(()=>{const P=()=>p({});return document.addEventListener(Ve,P),()=>document.removeEventListener(Ve,P)},[]),b.jsx($.div,{...l,ref:v,style:{pointerEvents:x?E?"auto":"none":void 0,...e.style},onFocusCapture:j(e.onFocusCapture,T.onFocusCapture),onBlurCapture:j(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:j(e.onPointerDownCapture,R.onPointerDownCapture)})});Ze.displayName=Hn;var zn="DismissableLayerBranch",Lt=u.forwardRef((e,t)=>{const n=u.useContext(Nt),o=u.useRef(null),r=B(t,o);return u.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),b.jsx($.div,{...e,ref:r})});Lt.displayName=zn;function Un(e,t=globalThis?.document){const n=J(e),o=u.useRef(!1),r=u.useRef(()=>{});return u.useEffect(()=>{const s=c=>{if(c.target&&!o.current){let l=function(){Mt(Vn,n,a,{discrete:!0})};const a={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=l,t.addEventListener("click",r.current,{once:!0})):l()}else t.removeEventListener("click",r.current);o.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function Kn(e,t=globalThis?.document){const n=J(e),o=u.useRef(!1);return u.useEffect(()=>{const r=s=>{s.target&&!o.current&&Mt(Bn,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function mt(){const e=new CustomEvent(Ve);document.dispatchEvent(e)}function Mt(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?Dt(r,s):r.dispatchEvent(s)}var Yn=Ze,Xn=Lt,Q=globalThis?.document?u.useLayoutEffect:()=>{},qn="Portal",Je=u.forwardRef((e,t)=>{const{container:n,...o}=e,[r,s]=u.useState(!1);Q(()=>s(!0),[]);const i=n||r&&globalThis?.document?.body;return i?Dn.createPortal(b.jsx($.div,{...o,ref:t}),i):null});Je.displayName=qn;function Gn(e,t){return u.useReducer((n,o)=>t[n][o]??n,e)}var Oe=e=>{const{present:t,children:n}=e,o=Zn(t),r=typeof n=="function"?n({present:o.isPresent}):u.Children.only(n),s=B(o.ref,Jn(r));return typeof n=="function"||o.isPresent?u.cloneElement(r,{ref:s}):null};Oe.displayName="Presence";function Zn(e){const[t,n]=u.useState(),o=u.useRef(null),r=u.useRef(e),s=u.useRef("none"),i=e?"mounted":"unmounted",[c,l]=Gn(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const a=xe(o.current);s.current=c==="mounted"?a:"none"},[c]),Q(()=>{const a=o.current,f=r.current;if(f!==e){const m=s.current,p=xe(a);e?l("MOUNT"):p==="none"||a?.display==="none"?l("UNMOUNT"):l(f&&m!==p?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),Q(()=>
1{if(t){let a;const f=t.ownerDocument.defaultView??window,d=p=>{const h=xe(o.current).includes(CSS.escape(p.animationName));if(p.target===t&&h&&(l("ANIMATION_END"),!r.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",a=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},m=p=>{p.target===t&&(s.current=xe(o.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{f.clearTimeout(a),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:u.useCallback(a=>{o.current=a?getComputedStyle(a):null,n(a)},[])}}function xe(e){return e?.animationName||"none"}function Jn(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Qn=Nn[" useInsertionEffect ".trim().toString()]||Q;function eo({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,s,i]=to({defaultProp:t,onChange:n}),c=e!==void 0,l=c?e:r;{const f=u.useRef(e!==void 0);u.useEffect(()=>{const d=f.current;d!==c&&console.warn(`${o} is changing from ${d?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=c},[c,o])}const a=u.useCallback(f=>{if(c){const d=no(f)?f(e):f;d!==e&&i.current?.(d)}else s(f)},[c,e,s,i]);return[l,a]}function to({defaultProp:e,onChange:t}){const[n,o]=u.useState(e),r=u.useRef(n),s=u.useRef(t);return Qn(()=>{s.current=t},[t]),u.useEffect(()=>{r.current!==n&&(s.current?.(n),r.current=n)},[n,r]),[n,o,s]}function no(e){return typeof e=="function"}var oo=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),ro="VisuallyHidden",De=u.forwardRef((e,t)=>b.jsx($.span,{...e,ref:t,style:{...oo,...e.style}}));De.displayName=ro;var so=De,Qe="ToastProvider",[et,io,co]=jn("Toast"),[_t]=Se("Toast",[co]),[ao,Ne]=_t(Qe),It=e=>{const{__scopeToast:t,label:n="Notification",duration:o=5e3,swipeDirection:r="right",swipeThreshold:s=50,children:i}=e,[c,l]=u.useState(null),[a,f]=u.useState(0),d=u.useRef(!1),m=u.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Qe}\`. Expected non-empty \`string\`.`),b.jsx(et.Provider,{scope:t,children:b.jsx(ao,{scope:t,label:n,duration:o,swipeDirection:r,swipeThreshold:s,toastCount:a,viewport:c,onViewportChange:l,onToastAdd:u.useCallback(()=>f(p=>p+1),[]),onToastRemove:u.useCallback(()=>f(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:m,children:i})})};It.displayName=Qe;var Ft="ToastViewport",lo=["F8"],Be="toast.viewportPause",ze="toast.viewportResume",kt=u.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:o=lo,label:r="Notifications ({hotkey})",...s}=e,i=Ne(Ft,n),c=io(n),l=u.useRef(null),a=u.useRef(null),f=u.useRef(null),d=u.useRef(null),m=B(t,d,i.onViewportChange),p=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),v=i.toastCount>0;u.useEffect(()=>{const g=y=>{o.length!==0&&o.every(x=>y[x]||y.code===x)&&d.current?.focus()};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[o]),u.useEffect(()=>{const g=l.current,y=d.current;if(v&&g&&y){const w=()=>{if(!i.isClosePausedRef.current){const T=new CustomEvent(Be);y.dispatchEvent(T),i.isClosePausedRef.current=!0}},x=()=>{if(i.isClosePausedRef.current){const T=new CustomEvent(ze);y.dispatchEvent(T),i.isClosePausedRef.current=!1}},E=T=>{!g.contains(T.relatedTarget)&&x()},R=()=>{g.contains(document.activeElement)||x()};return g.addEventListener("focusin",w),g.addEventListener("focusout",E),g.addEventListener("pointermove",w),g.addEventListener("pointerleave",R),window.addEventListener("blur",w),window.addEventListener("focus",x),()=>{g.removeEventListener("focusin",w),g.removeEventListener("focusout",E),g.removeEventListener("pointermove",w),g.removeEventListener("pointerleave",R),window.removeEventListener("blur",w),window.removeEventListener("focus",x)}}},[v,i.isClosePausedRef]);const h=u.useCallback(({tabbingDirection:g})=>{const w=c().map(x=>{const E=x.ref.current,R=[E,...Co(E)];return g==="forwards"?R:R.reverse()});return(g==="forwards"?w.reverse():w).flat()},[c]);return u.useEffect(()=>{const g=d.current;if(g){const y=w=>{const x=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!x){const R=document.activeElement,T=w.shiftKey;if(w.target===g&&T){a.current?.focus();return}const L=h({tabbingDirection:T?"backwards":"forwards"}),D=L.findIndex(M=>M===R);ke(L.slice(D+1))?w.preventDefault():T?a.current?.focus():f.current?.focus()}};return g.addEventListener("keydown",y),()=>g.removeEventListener("keydown",y)}},[c,h]),b.jsxs(Xn,{ref:l,role:"region","aria-label":r.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:v?void 0:"none"},children:[v&&b.jsx(Ue,{ref:a,onFocusFromOutsideViewport:()=>{const g=h({tabbingDirection:"forwards"});ke(g)}}),b.jsx(et.Slot,{scope:n,children:b.jsx($.ol,{tabIndex:-1,...s,ref:m})}),v&&b.jsx(Ue,{ref:f,onFocusFromOutsideViewport:()=>{const g=h({tabbingDirection:"backwards"});ke(g)}})]})});kt.displayName=Ft;var jt="ToastFocusProxy",Ue=u.forwardRef((e,t)=>
1{const{__scopeToast:n,onFocusFromOutsideViewport:o,...r}=e,s=Ne(jt,n);return b.jsx(De,{tabIndex:0,...r,ref:t,style:{position:"fixed"},onFocus:i=>{const c=i.relatedTarget;!s.viewport?.contains(c)&&o()}})});Ue.displayName=jt;var me="Toast",uo="toast.swipeStart",fo="toast.swipeMove",po="toast.swipeCancel",mo="toast.swipeEnd",$t=u.forwardRef((e,t)=>{const{forceMount:n,open:o,defaultOpen:r,onOpenChange:s,...i}=e,[c,l]=eo({prop:o,defaultProp:r??!0,onChange:s,caller:me});return b.jsx(Oe,{present:n||c,children:b.jsx(vo,{open:c,...i,ref:t,onClose:()=>l(!1),onPause:J(e.onPause),onResume:J(e.onResume),onSwipeStart:j(e.onSwipeStart,a=>{a.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:j(e.onSwipeMove,a=>{const{x:f,y:d}=a.detail.delta;a.currentTarget.setAttribute("data-swipe","move"),a.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),a.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:j(e.onSwipeCancel,a=>{a.currentTarget.setAttribute("data-swipe","cancel"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),a.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),a.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:j(e.onSwipeEnd,a=>{const{x:f,y:d}=a.detail.delta;a.currentTarget.setAttribute("data-swipe","end"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),a.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${f}px`),a.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});$t.displayName=me;var[ho,go]=_t(me,{onClose(){}}),vo=u.forwardRef((e,t)=>{const{__scopeToast:n,type:o="foreground",duration:r,open:s,onClose:i,onEscapeKeyDown:c,onPause:l,onResume:a,onSwipeStart:f,onSwipeMove:d,onSwipeCancel:m,onSwipeEnd:p,...v}=e,h=Ne(me,n),[g,y]=u.useState(null),w=B(t,C=>y(C)),x=u.useRef(null),E=u.useRef(null),R=r||h.duration,T=u.useRef(0),P=u.useRef(R),O=u.useRef(0),{onToastAdd:L,onToastRemove:D}=h,M=J(()=>{g?.contains(document.activeElement)&&h.viewport?.focus(),i()}),k=u.useCallback(C=>{!C||C===1/0||(window.clearTimeout(O.current),T.current=new Date().getTime(),O.current=window.setTimeout(M,C))},[M]);u.useEffect(()=>{const C=h.viewport;if(C){const _=()=>{k(P.current),a?.()},S=()=>{const N=new Date().getTime()-T.current;P.current=P.current-N,window.clearTimeout(O.current),l?.()};return C.addEventListener(Be,S),C.addEventListener(ze,_),()=>{C.removeEventListener(Be,S),C.removeEventListener(ze,_)}}},[h.viewport,R,l,a,k]),u.useEffect(()=>{s&&!h.isClosePausedRef.current&&k(R)},[s,R,h.isClosePausedRef,k]),u.useEffect(()=>(L(),()=>D()),[L,D]);const I=u.useMemo(()=>g?Kt(g):null,[g]);return h.viewport?b.jsxs(b.Fragment,{children:[I&&b.jsx(wo,{__scopeToast:n,role:"status","aria-live":o==="foreground"?"assertive":"polite",children:I}),b.jsx(ho,{scope:n,onClose:M,children:Ge.createPortal(b.jsx(et.ItemSlot,{scope:n,children:b.jsx(Yn,{asChild:!0,onEscapeKeyDown:j(c,()=>{h.isFocusedToastEscapeKeyDownRef.current||M(),h.isFocusedToastEscapeKeyDownRef.current=!1}),children:b.jsx($.li,{tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":h.swipeDirection,...v,ref:w,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:j(e.onKeyDown,C=>{C.key==="Escape"&&(c?.(C.nativeEvent),C.nativeEvent.defaultPrevented||(h.isFocusedToastEscapeKeyDownRef.current=!0,M()))}),onPointerDown:j(e.onPointerDown,C=>{C.button===0&&(x.current={x:C.clientX,y:C.clientY})}),onPointerMove:j(e.onPointerMove,C=>{if(!x.current)return;const _=C.clientX-x.current.x,S=C.clientY-x.current.y,N=!!E.current,A=["left","right"].includes(h.swipeDirection),F=["left","up"].includes(h.swipeDirection)?Math.min:Math.max,V=A?F(0,_):0,ve=A?0:F(0,S),fe=C.pointerType==="touch"?10:2,se={x:V,y:ve},we={originalEvent:C,delta:se};N?(E.current=se,Ee(fo,d,we,{discrete:!1})):ht(se,h.swipeDirection,fe)?(E.current=se,Ee(uo,f,we,{discrete:!1}),C.target.setPointerCapture(C.pointerId)):(Math.abs(_)>fe||Math.abs(S)>fe)&&(x.current=null)}),onPointerUp:j(e.onPointerUp,C=>{const _=E.current,S=C.target;if(S.hasPointerCapture(C.pointerId)&&S.releasePointerCapture(C.pointerId),E.current=null,x.current=null,_){const N=C.currentTarget,A={originalEvent:C,delta:_};ht(_,h.swipeDirection,h.swipeThreshold)?Ee(mo,p,A,{discrete:!0}):Ee(po,m,A,{discrete:!0}),N.addEventListener("click",F=>F.preventDefault(),{once:!0})}})})})}),h.viewport)})]}):null}),wo=e=>{const{__scopeToast:t,children:n,...o}=e,r=Ne(me,t),[s,i]=u.useState(!1),[c,l]=u.useState(!1);return Eo(()=>i(!0)),u.useEffect(()=>{const a=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(a)},[]),c?null:b.jsx(Je,{asChild:!0,children:b.jsx(De,{...o,children:s&&b.jsxs(b.Fragment,{children:[r.label," ",n]})})})},yo="ToastTitle",Wt=u.forwardRef((e,t)=>
1{const{__scopeToast:n,...o}=e;return b.jsx($.div,{...o,ref:t})});Wt.displayName=yo;var xo="ToastDescription",Ht=u.forwardRef((e,t)=>{const{__scopeToast:n,...o}=e;return b.jsx($.div,{...o,ref:t})});Ht.displayName=xo;var Vt="ToastAction",Bt=u.forwardRef((e,t)=>{const{altText:n,...o}=e;return n.trim()?b.jsx(Ut,{altText:n,asChild:!0,children:b.jsx(tt,{...o,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Vt}\`. Expected non-empty \`string\`.`),null)});Bt.displayName=Vt;var zt="ToastClose",tt=u.forwardRef((e,t)=>{const{__scopeToast:n,...o}=e,r=go(zt,n);return b.jsx(Ut,{asChild:!0,children:b.jsx($.button,{type:"button",...o,ref:t,onClick:j(e.onClick,r.onClose)})})});tt.displayName=zt;var Ut=u.forwardRef((e,t)=>{const{__scopeToast:n,altText:o,...r}=e;return b.jsx($.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0,...r,ref:t})});function Kt(e){const t=[];return Array.from(e.childNodes).forEach(o=>{if(o.nodeType===o.TEXT_NODE&&o.textContent&&t.push(o.textContent),bo(o)){const r=o.ariaHidden||o.hidden||o.style.display==="none",s=o.dataset.radixToastAnnounceExclude==="";if(!r)if(s){const i=o.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...Kt(o))}}),t}function Ee(e,t,n,{discrete:o}){const r=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?Dt(r,s):r.dispatchEvent(s)}var ht=(e,t,n=0)=>{const o=Math.abs(e.x),r=Math.abs(e.y),s=o>r;return t==="left"||t==="right"?s&&o>n:!s&&r>n};function Eo(e=()=>{}){const t=J(e);Q(()=>{let n=0,o=0;return n=window.requestAnimationFrame(()=>o=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(o)}},[t])}function bo(e){return e.nodeType===e.ELEMENT_NODE}function Co(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ke(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var ns=It,os=kt,rs=$t,ss=Wt,is=Ht,cs=Bt,as=tt;const To=["top","right","bottom","left"],ee=Math.min,W=Math.max,Te=Math.round,be=Math.floor,Y=e=>({x:e,y:e}),Ro={left:"right",right:"left",bottom:"top",top:"bottom"};function Ke(e,t,n){return W(e,ee(t,n))}function q(e,t){return typeof e=="function"?e(t):e}function G(e){return e.split("-")[0]}function le(e){return e.split("-")[1]}function nt(e){return e==="x"?"y":"x"}function ot(e){return e==="y"?"height":"width"}function K(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function rt(e){return nt(K(e))}function Po(e,t,n){n===void 0&&(n=!1);const o=le(e),r=rt(e),s=ot(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Re(i)),[i,Re(i)]}function Ao(e){const t=Re(e);return[Ye(e),t,Ye(t)]}function Ye(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const gt=["left","right"],vt=["right","left"],So=["top","bottom"],Oo=["bottom","top"];function Do(e,t,n){switch(e){case"top":case"bottom":return n?t?vt:gt:t?gt:vt;case"left":case"right":return t?So:Oo;default:return[]}}function No(e,t,n,o){const r=le(e);let s=Do(G(e),n==="start",o);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(Ye)))),s}function Re(e){const t=G(e);return Ro[t]+e.slice(t.length)}function Lo(e){return{top:0,right:0,bottom:0,left:0,...e}}function Yt(e){return typeof e!="number"?Lo(e):{top:e,right:e,bottom:e,left:e}}function Pe(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function wt(e,t,n){let{reference:o,floating:r}=e;const s=K(t),i=rt(t),c=ot(i),l=G(t),a=s==="y",f=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,m=o[c]/2-r[c]/2;let p;switch(l){case"top":p={x:f,y:o.y-r.height};break;case"bottom":p={x:f,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-r.width,y:d};break;default:p={x:o.x,y:o.y}}switch(le(t)){case"start":p[i]-=m*(n&&a?-1:1);break;case"end":p[i]+=m*(n&&a?-1:1);break}return p}async function Mo(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:i,elements:c,strategy:l}=e,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:m=!1,padding:p=0}=q(t,e),v=Yt(p),g=c[m?d==="floating"?"reference":"floating":d],y=Pe(await s.getClippingRect
vendor: 17,138 bytes, line 1
1({element:(n=await(s.isElement==null?void 0:s.isElement(g)))==null||n?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:a,rootBoundary:f,strategy:l})),w=d==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),E=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},R=Pe(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:x,strategy:l}):w);return{top:(y.top-R.top+v.top)/E.y,bottom:(R.bottom-y.bottom+v.bottom)/E.y,left:(y.left-R.left+v.left)/E.x,right:(R.right-y.right+v.right)/E.x}}const _o=50,Io=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:i}=n,c=i.detectOverflow?i:{...i,detectOverflow:Mo},l=await(i.isRTL==null?void 0:i.isRTL(t));let a=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:d}=wt(a,o,l),m=o,p=0;const v={};for(let h=0;h<s.length;h++){const g=s[h];if(!g)continue;const{name:y,fn:w}=g,{x,y:E,data:R,reset:T}=await w({x:f,y:d,initialPlacement:o,placement:m,strategy:r,middlewareData:v,rects:a,platform:c,elements:{reference:e,floating:t}});f=x??f,d=E??d,v[y]={...v[y],...R},T&&p<_o&&(p++,typeof T=="object"&&(T.placement&&(m=T.placement),T.rects&&(a=T.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):T.rects),{x:f,y:d}=wt(a,m,l)),h=-1)}return{x:f,y:d,placement:m,strategy:r,middlewareData:v}},Fo=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:i,elements:c,middlewareData:l}=t,{element:a,padding:f=0}=q(e,t)||{};if(a==null)return{};const d=Yt(f),m={x:n,y:o},p=rt(r),v=ot(p),h=await i.getDimensions(a),g=p==="y",y=g?"top":"left",w=g?"bottom":"right",x=g?"clientHeight":"clientWidth",E=s.reference[v]+s.reference[p]-m[p]-s.floating[v],R=m[p]-s.reference[p],T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a));let P=T?T[x]:0;(!P||!await(i.isElement==null?void 0:i.isElement(T)))&&(P=c.floating[x]||s.floating[v]);const O=E/2-R/2,L=P/2-h[v]/2-1,D=ee(d[y],L),M=ee(d[w],L),k=D,I=P-h[v]-M,C=P/2-h[v]/2+O,_=Ke(k,C,I),S=!l.arrow&&le(r)!=null&&C!==_&&s.reference[v]/2-(C<k?D:M)-h[v]/2<0,N=S?C<k?C-k:C-I:0;return{[p]:m[p]+N,data:{[p]:_,centerOffset:C-_-N,...S&&{alignmentOffset:N}},reset:S}}}),ko=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:i,initialPlacement:c,platform:l,elements:a}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:h=!0,...g}=q(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=G(r),w=K(c),x=G(c)===c,E=await(l.isRTL==null?void 0:l.isRTL(a.floating)),R=m||(x||!h?[Re(c)]:Ao(c)),T=v!=="none";!m&&T&&R.push(...No(c,h,v,E));const P=[c,...R],O=await l.detectOverflow(t,g),L=[];let D=((o=s.flip)==null?void 0:o.overflows)||[];if(f&&L.push(O[y]),d){const C=Po(r,i,E);L.push(O[C[0]],O[C[1]])}if(D=[...D,{placement:r,overflows:L}],!L.every(C=>C<=0)){var M,k;const C=(((M=s.flip)==null?void 0:M.index)||0)+1,_=P[C];if(_&&(!(d==="alignment"?w!==K(_):!1)||D.every(A=>K(A.placement)===w?A.overflows[0]>0:!0)))return{data:{index:C,overflows:D},reset:{placement:_}};let S=(k=D.filter(N=>N.overflows[0]<=0).sort((N,A)=>N.overflows[1]-A.overflows[1])[0])==null?void 0:k.placement;if(!S)switch(p){case"bestFit":{var I;const N=(I=D.filter(A=>{if(T){const F=K(A.placement);return F===w||F==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(F=>F>0).reduce((F,V)=>F+V,0)]).sort((A,F)=>A[1]-F[1])[0])==null?void 0:I[0];N&&(S=N);break}case"initialPlacement":S=c;break}if(r!==S)return{reset:{placement:S}}}return{}}}};function yt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function xt(e){return To.some(t=>e[t]>=0)}const jo=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...s}=q(e,t);switch(r){case"referenceHidden":{const i=await o.detectOverflow(t,{...s,elementContext:"reference"}),c=yt(i,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:xt(c)}}}case"escaped":{const i=await o.detectOverflow(t,{...s,altBoundary:!0}),c=yt(i,n.floating);return{data:{escapedOffsets:c,escaped:xt(c)}}}default:return{}}}}},Xt=new Set(["left","top"]);async function $o(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=G(n),c=le(n),l=K(n)==="y",a=Xt.has(i)?-1:1,f=s&&l?-1:1,d=q(t,e);let{mainAxis:m,crossAxis:p,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return c&&typeof v=="number"&&(p=c==="end"?v*-1:v),l?{x:p*f,y:m*a}:{x:m*a,y:p*f}}const Wo=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:i,middlewareData:c}=t,l=await $o(t,e);return i===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:{...l,placement:i}}}}},Ho=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:s}=t,{mainAxis:i=!0,crossAxis:c=!1,limiter:l={fn:y=>{let{x:w,y:x}=y;return{x:w,y:x}}},...a}=q(e,t),f={x:n,y:o},d=await s.detectOverflow(t,a),m=K(G(r)),p=nt(m);let v=f[p],h=f[m];if(i){const y=p==="y"?"top":"left",w=p==="y"?"bottom":"right",x=v+d[y],E=v-d[w];v=Ke(x,v,E)}if(c){const y=m==="y"?"top":"left",w=m==="y"?"bottom":"right",x=h+d[y],E=h-d[w];h=Ke(x,h,E)}const g=l.fn({...t,[p]:v,[m]:h});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[p]:i,[m]:c}}}}}},Vo=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:s,middlewareData:i}=t,{offset:c=0,mainAxis:l=!0,crossAxis:a=!0}=q(e,t),f={x:n,y:o},d=K(r),m=nt(d);let p=f[m],v=f[d];const h=q(c,t),g=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const x=m==="y"?"height":"width",E=s.reference[m]-s.floating[x]+g.mainAxis,R=s.reference[m]+s.reference[x]-g.mainAxis;p<E?p=E:p>R&&(p=R)}if(a){var y,w;const x=m==="y"?"width":"height",E=Xt.has(G(r)),R=s.reference[d]-s.floating[x]+(E&&((y=i.offset)==null?void 0:y[d])||0)+(E?0:g.crossAxis),T=s.reference[d]+s.reference[x]+(E?0:((w=i.offset)==null?void 0:w[d])||0)-(E?g.crossAxis:0);v<R?v=R:v>T&&(v=T)}return{[m]:p,[d]:v}}}},Bo=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:s,platform:i,elements:c}=t,{apply:l=()=>{},...a}=q(e,t),f=await i.detectOverflow(t,a),d=G(r),m=le(r),p=K(r)==="y",{width:v,height:h}=s.floating;let g,y;d==="top"||d==="bottom"?(g=d,y=m===(await(i.isRTL==null?void 0:i.isRTL(c.floating))?"start":"end")?"left":"right"):(y=d,g=m==="end"?"top":"bottom");const w=h-f.top-f.bottom,x=v-f.left-f.right,E=ee(h-f[g],w),R=ee(v-f[y],x),T=!t.middlewareData.shift;let P=E,O=R;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=x),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(P=w),T&&!m){const D=W(f.left,0),M=W(f.right,0),k=W(f.top,0),I=W(f.bottom,0);p?O=v-2*(D!==0||M!==0?D+M:W(f.left,f.right)):P=h-2*(k!==0||I!==0?k+I:W(f.top,f.bottom))}await l({...t,availableWidth:O,availableHeight:P});const L=await i.getDimensions(c.floating);return v!==L.width||h!==L.height?{reset:{rects:!0}}:{}}}};function Le(){return typeof window<"u"}function ue(e){return qt(e)?(e.nodeName||"").toLowerCase():"#document"}function H(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function X(e){var t;return(t=(qt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function qt(e){return Le()?e instanceof Node||e instanceof H(e).Node:!1}function z(e){return Le()?e instanceof Element||e instanceof H(e).Element:!1}function Z(e){return Le()?e instanceof HTMLElement||e instanceof H(e).HTMLElement:!1}function Et(e){return!Le()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof H(e).ShadowRoot}function he(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=U(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function zo(e){return/^(table|td|th)$/.test(ue(e))}function Me(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Uo=/transform|translate|scale|rotate|perspective|filter/,Ko=/paint|layout|strict|content/,oe=e=>!!e&&e!=="none";let je;function st(e){const t=z(e)?U(e):e;return oe(t.transform)||oe(t.translate)||oe(t.scale)||oe(t.rotate)||oe(t.perspective)||!it()&&(oe(t.backdropFilter)||oe(t.filter))||Uo.test(t.willChange||"")||Ko.test(t.contain||"")}function Yo(e){let t=te(e);for(;Z(t)&&!ce(t);){if(st(t))return t;if(Me(t))return null;t=te(t)}return null}function it(){return je==null&&(je=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),je}function ce(e){return/^(html|body|#document)$/.test(ue(e))}function U(e){return H(e).getComputedStyle(e)}function _e(e){return z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function te(e){if(ue(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Et(e)&&e.host||X(e);return Et(t)?t.host:t}function Gt(e){const t=te(e);return ce(t)?e.ownerDocument?e.ownerDocument.body:e.body:Z(t)&&he(t)?t:Gt(t)}function pe(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=Gt(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),i=H(r);if(s){const c=Xe(i);return t.concat(i,i.visualViewport||[],he(r)?r:[],c&&n?pe(c):[])}else return t.concat(r,pe(r,[],n))}function Xe(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Zt(e){const t=U(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Z(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o,c=Te(n)!==s||Te(o)!==i;return c&&(n=s,o=i),{width:n,height:o,$:c}}function ct(e){return z(e)?e:e.contextElement}function ie(e){const t=ct(e);if(!Z(t))return Y(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=Zt(t);let i=(s?Te(n.width):n.width)/o,c=(s?Te(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const Xo=Y(0);function Jt(e){const t=H(e);return!it()||!t.visualViewport?Xo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function qo(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==H(e)?!1:t}function re(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=ct(e);let i=Y(1);t&&(o?z(o)&&(i=ie(o)):i=ie(e));const c=qo(s,n,o)?Jt(s):Y(0);let l=(r.left+c.x)/i.x,a=(r.top+c.y)/i.y,f=r.width/i.x,d=r.height/i.y;if(s){const m=H(s),p=o&&z(o)?H(o):o;let v=m,h=Xe(v);for(;h&&o&&p!==v;){const g=ie(h),y=h.getBoundingClientRect(),w=U(h),x=y.left+(h.clientLeft+parseFloat(w.paddingLeft))*g.x,E=y.top+(h.clientTop+parseFloat(w.paddingTop))*g.y;l*=g.x,a*=g.y,f*=g.x,d*=g.y,l+=x,a+=E,v=H(h),h=Xe(v)}}return Pe({width:f,height:d,x:l,y:a})}function Ie(e,t){const n=_e(e).scrollLeft;return t?t.left+n:re(X(e)).left+n}function Qt(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Ie(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function Go(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",i=X(o),c=t?Me(t.floating):!1;if(o===i||c&&s)return n;let l={scrollLeft:0,scrollTop:0},a=Y(1);const f=Y(0),d=Z(o);if((d||!d&&!s)&&((ue(o)!=="body"||he(i))&&(l=_e(o)),d)){const p=re(o);a=ie(o),f.x=p.x+o.clientLeft,f.y=p.y+o.clientTop}const m=i&&!d&&!s?Qt(i,l):Y(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+f.x+m.x,y:n.y*a.y-l.scrollTop*a.y+f.y+m.y}}function Zo(e){return Array.from(e.getClientRects())}function Jo(e){const t=X(e),n=_e(e),o=e.ownerDocument.body,r=W(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=W(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+Ie(e);const c=-n.scrollTop;return U(o).direction==="rtl"&&(i+=W(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:i,y:c}}const bt=25;function Qo(e,t){const n=H(e),o=X(e),r=n.visualViewport;let s=o.clientWidth,i=o.clientHeight,c=0,l=0;if(r){s=r.width,i=r.height;const f=it();(!f||f&&t==="fixed")&&(c=r.offsetLeft,l=r.offsetTop)}const a=Ie(o);if(a<=0){const f=o.ownerDocument,d=f.body,m=getComputedStyle(d),p=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,v=Math.abs(o.clientWidth-d.clientWidth-p);v<=bt&&(s-=v)}else a<=bt&&(s+=a);return{width:s,height:i,x:c,y:l}}function er(e,t){const n=re(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=Z(e)?ie(e):Y(1),i=e.clientWidth*s.x,c=e.clientHeight*s.y,l=r*s.x,a=o*s.y;return{width:i,height:c,x:l,y:a}}function Ct(e,t,n){let o;if(t==="viewport")o=Qo(e,n);else if(t==="document")o=Jo(X(e));else if(z(t))o=er(t,n);else{const r=Jt(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Pe(o)}function en(e,t){const n=te(e);return n===t||!z(n)||ce(n)?!1:U(n).position==="fixed"||en(n,t)}function tr(e,t){const n=t.get(e);if(n)return n;let o=pe(e,[],!1).filter(c=>z(c)&&ue(c)!=="body"),r=null;const s=U(e).position==="fixed";let i=s?te(e):e;for(;z(i)&&!ce(i);){const c=U(i),l=st(i);!l&&c.position==="fixed"&&(r=null),(s?!l&&!r:!l&&c.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||he(i)&&!l&&en(e,i))?o=o.filter(f=>f!==i):r=c,i=te(i)}return t.set(e,o),o}function nr(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[...n==="clippingAncestors"?Me(t)?[]:tr(t,this._c):[].concat(n),o],c=Ct(t,i[0],r);let l=c.top,a=c.right,f=c.bottom,d=c.left;for(let m=1;m<i.length;m++){const p=Ct(t,i[m],r);l=W(p.top,l),a=ee(p.right,a),f=ee(p.bottom,f),d=W(p.left,d)}return{width:a-d,height:f-l,x:d,y:l}}function or(e){const{width:t,height:n}=Zt(e);return{width:t,height:n}}function rr(e,t,n){const o=Z(t),r=X(t),s=n==="fixed",i=re(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const l=Y(0);function a(){l.x=Ie(r)}if(o||!o&&!s)if((ue(t)!=="body"||he(r))&&(c=_e(t)),o){const p=re(t,!0,s,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else r&&a();s&&!o&&r&&a();const f=r&&!o&&!s?Qt(r,c):Y(0),d=i.left+c.scrollLeft-l.x-f.x,m=i.top+c.scrollTop-l.y-f.y;return{x:d,y:m,width:i.width,height:i.height}}function $e(e){return U(e).position==="static"}function Tt(e,t){if(!Z(e)||U(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return X(e)===n&&(n=n.ownerDocument.body),n}function tn(e,t){const n=H(e);if(Me(e))return n;if(!Z(e)){let r=te(e);for(;r&&!ce(r);){if(z(r)&&!$e(r))return r;r=te(r)}return n}let o=Tt(e,t);for(;o&&zo(o)&&$e(o);)o=Tt(o,t);return o&&ce(o)&&$e(o)&&!st(o)?n:o||Yo(e)||n}const sr=async function(e){const t=this.getOffsetParent||tn,n=this.getDimensions,o=await n(e.floating);return{reference:rr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function ir(e){return U(e).direction==="rtl"}const cr={convertOffsetParentRelativeRectToViewportRelativeRect:Go,getDocumentElement:X,getClippingRect:nr,getOffsetParent:tn,getElementRects:sr,getClientRects:Zo,getDimensions:or,getScale:ie,isElement:z,isRTL:ir};function nn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ar(e,t){let n=null,o;const r=X(e);function s(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function i(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),s();const a=e.getBoundingClientRect(),{left:f,top:d,width:m,height:p}=a;if(c||t(),!m||!p)return;const v=be(d),h=be(r.clientWidth-(f+m)),g=be(r.clientHeight-(d+p)),y=be(f),x={rootMargin:-v+"px "+-h+"px "+-g+"px "+-y+"px",threshold:W(0,ee(1,l))||1};let E=!0;function R(T){const P=T[0].intersectionRatio;if(P!==l){if(!E)return i();P?i(!1,P):o=setTimeout(()=>{i(!1,1e-7)},1e3)}P===1&&!nn(a,e.getBoundingClientRect())&&i(),E=!1}try{n=new IntersectionObserver(R,{...x,root:r.ownerDocument})}catch{n=new IntersectionObserver(R,x)}n.observe(e)}return i(!0),s}function lr(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,a=ct(e),f=r||s?[...a?pe(a):[],...t?pe(t):[]]:[];f.forEach(y=>{r&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const d=a&&c?ar(a,n):null;let m=-1,p=null;i&&(p=new ResizeObserver(y=>{let[w]=y;w&&w.target===a&&p&&t&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),a&&!l&&p.observe(a),t&&p.observe(t));let v,h=l?re(e):null;l&&g();function g(){const y=re(e);h&&!nn(h,y)&&n(),h=y,v=requestAnimationFrame(g)}return n(),()=>{var y;f.forEach(w=>{r&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),d?.(),(y=p)==null||y.disconnect(),p=null,l&&cancelAnimationFrame(v)}}const ur=Wo,fr=Ho,dr=ko,pr=Bo,mr=jo,Rt=Fo,hr=Vo,gr=(e,t,n)=>{const o=new Map,r={platform:cr,...n},s={...r.platform,_c:o};return Io(e,t,{...r,platform:s})};var vr=typeof document<"u",wr=function(){},Ce=vr?u.useLayoutEffect:wr;function Ae(e,t){if(e===t)return!0;
vendor: 2,647 bytes, line 1
1if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!Ae(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const s=r[o];if(!(s==="_owner"&&e.$$typeof)&&!Ae(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function on(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Pt(e,t){const n=on(e);return Math.round(t*n)/n}function We(e){const t=u.useRef(e);return Ce(()=>{t.current=e}),t}function yr(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:i}={},transform:c=!0,whileElementsMounted:l,open:a}=e,[f,d]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,p]=u.useState(o);Ae(m,o)||p(o);const[v,h]=u.useState(null),[g,y]=u.useState(null),w=u.useCallback(A=>{A!==T.current&&(T.current=A,h(A))},[]),x=u.useCallback(A=>{A!==P.current&&(P.current=A,y(A))},[]),E=s||v,R=i||g,T=u.useRef(null),P=u.useRef(null),O=u.useRef(f),L=l!=null,D=We(l),M=We(r),k=We(a),I=u.useCallback(()=>{if(!T.current||!P.current)return;const A={placement:t,strategy:n,middleware:m};M.current&&(A.platform=M.current),gr(T.current,P.current,A).then(F=>{const V={...F,isPositioned:k.current!==!1};C.current&&!Ae(O.current,V)&&(O.current=V,Ge.flushSync(()=>{d(V)}))})},[m,t,n,M,k]);Ce(()=>{a===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,d(A=>({...A,isPositioned:!1})))},[a]);const C=u.useRef(!1);Ce(()=>(C.current=!0,()=>{C.current=!1}),[]),Ce(()=>{if(E&&(T.current=E),R&&(P.current=R),E&&R){if(D.current)return D.current(E,R,I);I()}},[E,R,I,D,L]);const _=u.useMemo(()=>({reference:T,floating:P,setReference:w,setFloating:x}),[w,x]),S=u.useMemo(()=>({reference:E,floating:R}),[E,R]),N=u.useMemo(()=>{const A={position:n,left:0,top:0};if(!S.floating)return A;const F=Pt(S.floating,f.x),V=Pt(S.floating,f.y);return c?{...A,transform:"translate("+F+"px, "+V+"px)",...on(S.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:F,top:V}},[n,c,S.floating,f.x,f.y]);return u.useMemo(()=>({...f,update:I,refs:_,elements:S,floatingStyles:N}),[f,I,_,S,N])}const xr=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?Rt({element:o.current,padding:r}).fn(n):{}:o?Rt({element:o,padding:r}).fn(n):{}}}},Er=(e,t)=>
1{const n=ur(e);return{name:n.name,fn:n.fn,options:[e,t]}},br=(e,t)=>{const n=fr(e);return{name:n.name,fn:n.fn,options:[e,t]}},Cr=(e,t)=>({fn:hr(e).fn,options:[e,t]}),Tr=(e,t)=>{const n=dr(e);return{name:n.name,fn:n.fn,options:[e,t]}},Rr=(e,t)=>{const n=pr(e);return{name:n.name,fn:n.fn,options:[e,t]}},Pr=(e,t)=>{const n=mr(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ar=(e,t)=>{const n=xr(e);return{name:n.name,fn:n.fn,options:[e,t]}};var Sr="Arrow",rn=u.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...s}=e;return b.jsx($.svg,{...s,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:b.jsx("polygon",{points:"0,0 30,0 15,10"})})});rn.displayName=Sr;var Or=rn;function Dr(e){const[t,n]=u.useState(void 0);return Q(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const s=r[0];let i,c;if("borderBoxSize"in s){const l=s.borderBoxSize,a=Array.isArray(l)?l[0]:l;i=a.inlineSize,c=a.blockSize}else i=e.offsetWidth,c=e.offsetHeight;n({width:i,height:c})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var sn="Popper",[cn,an]=Se(sn),[ls,ln]=cn(sn),un="PopperAnchor",fn=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,s=ln(un,n),i=u.useRef(null),c=B(t,i),l=u.useRef(null);return u.useEffect(()=>{const a=l.current;l.current=o?.current||i.current,a!==l.current&&s.onAnchorChange(l.current)}),o?null:b.jsx($.div,{...r,ref:c})});fn.displayName=un;var at="PopperContent",[Nr,Lr]=cn(at),dn=u.forwardRef((e,t)=>{const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:s="center",alignOffset:i=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:a=[],collisionPadding:f=0,sticky:d="partial",hideWhenDetached:m=!1,updatePositionStrategy:p="optimized",onPlaced:v,...h}=e,g=ln(at,n),[y,w]=u.useState(null),x=B(t,de=>w(de)),[E,R]=u.useState(null),T=Dr(E),P=T?.width??0,O=T?.height??0,L=o+(s!=="center"?"-"+s:""),D=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},M=Array.isArray(a)?a:[a],k=M.length>0,I={padding:D,boundary:M.filter(_r),altBoundary:k},{refs:C,floatingStyles:_,placement:S,isPositioned:N,middlewareData:A}=yr({strategy:"fixed",placement:L,whileElementsMounted:(...de)=>lr(...de,{animationFrame:p==="always"}),elements:{reference:g.anchor},middleware:[Er({mainAxis:r+O,alignmentAxis:i}),l&&br({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Cr():void 0,...I}),l&&Tr({...I}),Rr({...I,apply:({elements:de,rects:ft,availableWidth:Pn,availableHeight:An})=>{const{width:Sn,height:On}=ft.reference,ye=de.floating.style;ye.setProperty("--radix-popper-available-width",`${Pn}px`),ye.setProperty("--radix-popper-available-height",`${An}px`),ye.setProperty("--radix-popper-anchor-width",`${Sn}px`),ye.setProperty("--radix-popper-anchor-height",`${On}px`)}}),E&&Ar({element:E,padding:c}),Ir({arrowWidth:P,arrowHeight:O}),m&&Pr({strategy:"referenceHidden",...I})]}),[F,V]=hn(S),ve=J(v);Q(()=>{N&&ve?.()},[N,ve]);const fe=A.arrow?.x,se=A.arrow?.y,we=A.arrow?.centerOffset!==0,[Tn,Rn]=u.useState();return Q(()=>{y&&Rn(window.getComputedStyle(y).zIndex)},[y]),b.jsx("div",{ref:C.setFloating,"data-radix-popper-content-wrapper":"",style:{..._,transform:N?_.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Tn,"--radix-popper-transform-origin":[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:b.jsx(Nr,{scope:n,placedSide:F,onArrowChange:R,arrowX:fe,arrowY:se,shouldHideArrow:we,children:b.jsx($.div,{"data-side":F,"data-align":V,...h,ref:x,style:{...h.style,animation:N?void 0:"none"}})})})});dn.displayName=at;var pn="PopperArrow",Mr={top:"bottom",right:"left",bottom:"top",left:"right"},mn=u.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,s=Lr(pn,o),i=Mr[s.placedSide];return b.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:b.jsx(Or,{...r,ref:n,style:{...r.style,display:"block"}})})});mn.displayName=pn;function _r(e){return e!==null}var Ir=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,i=r.arrow?.centerOffset!==0,c=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[a,f]=hn(n),d={start:"0%",center:"50%",end:"100%"}[f],m=(r.arrow?.x??0)+c/2,p=(r.arrow?.y??0)+l/2;let v="",h="";return a==="bottom"?(v=i?d:`${m}px`,h=`${-l}px`):a==="top"?(v=i?d:`${m}px`,h=`${o.floating.height+l}px`):a==="right"?(v=`${-l}px`,h=i?d:`${p}px`):a==="left"&&(v=`${o.floating.width+l}px`,h=i?d:`${p}px`),{data:{x:v,y:h}}}});function hn(e){const[t,n="center"]=e.split("-");return[t,n]}var Fr=fn,kr=dn,jr=mn,[Fe]=Se("Tooltip",[an]),lt=an(),gn="TooltipProvider",$r=700,At="tooltip.open",[Wr,vn]=Fe(gn),wn=e=>{const{__scopeTooltip:t,delayDuration:n=$r,skipDelayDuration:o=300,disableHoverableContent:r=!1,
1children:s}=e,i=u.useRef(!0),c=u.useRef(!1),l=u.useRef(0);return u.useEffect(()=>{const a=l.current;return()=>window.clearTimeout(a)},[]),b.jsx(Wr,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:u.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:u.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,o)},[o]),isPointerInTransitRef:c,onPointerInTransitChange:u.useCallback(a=>{c.current=a},[]),disableHoverableContent:r,children:s})};wn.displayName=gn;var yn="Tooltip",[us,ge]=Fe(yn),qe="TooltipTrigger",Hr=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=ge(qe,n),s=vn(qe,n),i=lt(n),c=u.useRef(null),l=B(t,c,r.onTriggerChange),a=u.useRef(!1),f=u.useRef(!1),d=u.useCallback(()=>a.current=!1,[]);return u.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),b.jsx(Fr,{asChild:!0,...i,children:b.jsx($.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...o,ref:l,onPointerMove:j(e.onPointerMove,m=>{m.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(r.onTriggerEnter(),f.current=!0)}),onPointerLeave:j(e.onPointerLeave,()=>{r.onTriggerLeave(),f.current=!1}),onPointerDown:j(e.onPointerDown,()=>{r.open&&r.onClose(),a.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:j(e.onFocus,()=>{a.current||r.onOpen()}),onBlur:j(e.onBlur,r.onClose),onClick:j(e.onClick,r.onClose)})})});Hr.displayName=qe;var ut="TooltipPortal",[Vr,Br]=Fe(ut,{forceMount:void 0}),xn=e=>{const{__scopeTooltip:t,forceMount:n,children:o,container:r}=e,s=ge(ut,t);return b.jsx(Vr,{scope:t,forceMount:n,children:b.jsx(Oe,{present:n||s.open,children:b.jsx(Je,{asChild:!0,container:r,children:o})})})};xn.displayName=ut;var ae="TooltipContent",En=u.forwardRef((e,t)=>{const n=Br(ae,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...s}=e,i=ge(ae,e.__scopeTooltip);return b.jsx(Oe,{present:o||i.open,children:i.disableHoverableContent?b.jsx(bn,{side:r,...s,ref:t}):b.jsx(zr,{side:r,...s,ref:t})})}),zr=u.forwardRef((e,t)=>{const n=ge(ae,e.__scopeTooltip),o=vn(ae,e.__scopeTooltip),r=u.useRef(null),s=B(t,r),[i,c]=u.useState(null),{trigger:l,onClose:a}=n,f=r.current,{onPointerInTransitChange:d}=o,m=u.useCallback(()=>{c(null),d(!1)},[d]),p=u.useCallback((v,h)=>{const g=v.currentTarget,y={x:v.clientX,y:v.clientY},w=qr(y,g.getBoundingClientRect()),x=Gr(y,w),E=Zr(h.getBoundingClientRect()),R=Qr([...x,...E]);c(R),d(!0)},[d]);return u.useEffect(()=>()=>m(),[m]),u.useEffect(()=>{if(l&&f){const v=g=>p(g,f),h=g=>p(g,l);return l.addEventListener("pointerleave",v),f.addEventListener("pointerleave",h),()=>{l.removeEventListener("pointerleave",v),f.removeEventListener("pointerleave",h)}}},[l,f,p,m]),u.useEffect(()=>{if(i){const v=h=>{const g=h.target,y={x:h.clientX,y:h.clientY},w=l?.contains(g)||f?.contains(g),x=!Jr(y,i);w?m():x&&(m(),a())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[l,f,i,a,m]),b.jsx(bn,{...e,ref:s})}),[Ur,Kr]=Fe(yn,{isInside:!1}),Yr=_n("TooltipContent"),bn=u.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":r,onEscapeKeyDown:s,onPointerDownOutside:i,...c}=e,l=ge(ae,n),a=lt(n),{onClose:f}=l;return u.useEffect(()=>(document.addEventListener(At,f),()=>document.removeEventListener(At,f)),[f]),u.useEffect(()=>{if(l.trigger){const d=m=>{m.target?.contains(l.trigger)&&f()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,f]),b.jsx(Ze,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:d=>d.preventDefault(),onDismiss:f,children:b.jsxs(kr,{"data-state":l.stateAttribute,...a,...c,ref:t,style:{...c.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:[b.jsx(Yr,{children:o}),b.jsx(Ur,{scope:n,isInside:!0,children:b.jsx(so,{id:l.contentId,role:"tooltip",children:r||o})})]})})});En.displayName=ae;var Cn="TooltipArrow",Xr=u.forwardRef((e,t)=>
1{const{__scopeTooltip:n,...o}=e,r=lt(n);return Kr(Cn,n).isInside?null:b.jsx(jr,{...r,...o,ref:t})});Xr.displayName=Cn;function qr(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,o,r,s)){case s:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function Gr(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function Zr(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}]}function Jr(e,t){const{x:n,y:o}=e;let r=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const c=t[s],l=t[i],a=c.x,f=c.y,d=l.x,m=l.y;f>o!=m>o&&n<(d-a)*(o-f)/(m-f)+a&&(r=!r)}return r}function Qr(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),es(t)}function es(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const r=e[o];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(r.y-i.y)>=(s.y-i.y)*(r.x-i.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(r.y-i.y)>=(s.y-i.y)*(r.x-i.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var fs=wn,ds=xn,ps=En;export{cs as A,as as C,is as D,ns as P,rs as R,ss as T,os as V,ds as a,ps as b,fs as c};
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.