PageSourceSearch

https://feynn.ai/assets/ui-vendor-43wwMyH0.js

js feynn.ai collected 2026-10-05 11:59:27 UTC 181,570 bytes, 56 lines download raw bytes

vendor: 4,350 bytes, line 1
1import{r as a,j as f,R as Z,a as yt,b as os,c as rs}from"./react-vendor-DZKEvZlG.js";try{(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="bc56457c-585e-40ff-84bb-1e1fd2dd4f5c",e._sentryDebugIdIdentifier="sentry-dbid-bc56457c-585e-40ff-84bb-1e1fd2dd4f5c")})()}catch{}function E(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function Pr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ct(...e){return t=>{let n=!1;const o=e.map(r=>{const s=Pr(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():Pr(e[r],null)}}}}function L(...e){return a.useCallback(Ct(...e),e)}function du(e,t){const n=a.createContext(t),o=s=>{const{children:i,...c}=s,l=a.useMemo(()=>c,Object.values(c));return f.jsx(n.Provider,{value:l,children:i})};o.displayName=e+"Provider";function r(s){const i=a.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[o,r]}function X(e,t=[]){let n=[];function o(s,i){const c=a.createContext(i),l=n.length;n=[...n,i];const u=p=>{const{scope:v,children:h,...w}=p,m=v?.[e]?.[l]||c,g=a.useMemo(()=>w,Object.values(w));return f.jsx(m.Provider,{value:g,children:h})};u.displayName=s+"Provider";function d(p,v){const h=v?.[e]?.[l]||c,w=a.useContext(h);if(w)return w;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[u,d]}const r=()=>{const s=n.map(i=>a.createContext(i));return function(c){const l=c?.[e]||s;return a.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return r.scopeName=e,[o,fu(r,...t)]}function fu(...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:u})=>{const p=l(s)[`__scope${u}`];return{...c,...p}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function je(e){const t=pu(e),n=a.forwardRef((o,r)=>{const{children:s,...i}=o,c=a.Children.toArray(s),l=c.find(vu);if(l){const u=l.props.children,d=c.map(p=>p===l?a.Children.count(u)>1?a.Children.only(null):a.isValidElement(u)?u.props.children:null:p);return f.jsx(t,{...i,ref:r,children:a.isValidElement(u)?a.cloneElement(u,void 0,d):null})}return f.jsx(t,{...i,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}var Yg=je("Slot");function pu(e){const t=a.forwardRef((n,o)=>{const{children:r,...s}=n;if(a.isValidElement(r)){const i=hu(r),c=mu(s,r.props);return r.type!==a.Fragment&&(c.ref=o?Ct(o,i):i),a.cloneElement(r,c)}return a.Children.count(r)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ss=Symbol("radix.slottable");function as(e){const t=({children:n})=>f.jsx(f.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=ss,t}function vu(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ss}function mu(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 hu(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 Ie(e){const t=e+"CollectionProvider",[n,o]=X(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{const{scope:g,children:x}=m,b=Z.useRef(null),y=Z.useRef(new Map).current;return f.jsx(r,{scope:g,itemMap:y,collectionRef:b,children:x})};i.displayName=t;const c=e+"CollectionSlot",l=je(c),u=Z.forwardRef((m,g)=>{const{scope:x,children:b}=m,y=s(c,x),C=L(g,y.collectionRef);return f.jsx(l,{ref:C,children:b})});u.displayName=c;const d=e+"CollectionItemSlot",p="data-radix-collection-item",v=je(d),h=Z.forwardRef((m,g)=>{const{scope:x,children:b,...y}=m,C=Z.useRef(null),S=L(g,C),P=s(d,x);return Z.useEffect(()=>(P.itemMap.set(C,{ref:C,...y}),()=>
vendor: 6,981 bytes, line 1
1void P.itemMap.delete(C))),f.jsx(v,{[p]:"",ref:S,children:b})});h.displayName=d;function w(m){const g=s(e+"CollectionConsumer",m);return Z.useCallback(()=>{const b=g.collectionRef.current;if(!b)return[];const y=Array.from(b.querySelectorAll(`[${p}]`));return Array.from(g.itemMap.values()).sort((P,R)=>y.indexOf(P.ref.current)-y.indexOf(R.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:i,Slot:u,ItemSlot:h},w,o]}var gu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],A=gu.reduce((e,t)=>{const n=je(`Primitive.${t}`),o=a.forwardRef((r,s)=>{const{asChild:i,...c}=r,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(l,{...c,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function vt(e,t){e&&yt.flushSync(()=>e.dispatchEvent(t))}function H(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...n)=>t.current?.(...n),[])}function wu(e,t=globalThis?.document){const n=H(e);a.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 xu="DismissableLayer",ro="dismissableLayer.update",bu="dismissableLayer.pointerDownOutside",yu="dismissableLayer.focusOutside",Tr,is=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Me=a.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:i,onDismiss:c,...l}=e,u=a.useContext(is),[d,p]=a.useState(null),v=d?.ownerDocument??globalThis?.document,[,h]=a.useState({}),w=L(t,R=>p(R)),m=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=m.indexOf(g),b=d?m.indexOf(d):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,C=b>=x,S=Su(R=>{const T=R.target,_=[...u.branches].some(N=>N.contains(T));!C||_||(r?.(R),i?.(R),R.defaultPrevented||c?.())},v),P=Eu(R=>{const T=R.target;[...u.branches].some(N=>N.contains(T))||(s?.(R),i?.(R),R.defaultPrevented||c?.())},v);return wu(R=>{b===u.layers.size-1&&(o?.(R),!R.defaultPrevented&&c&&(R.preventDefault(),c()))},v),a.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Tr=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Ar(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Tr)}},[d,v,n,u]),a.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Ar())},[d,u]),a.useEffect(()=>{const R=()=>h({});return document.addEventListener(ro,R),()=>document.removeEventListener(ro,R)},[]),f.jsx(A.div,{...l,ref:w,style:{pointerEvents:y?C?"auto":"none":void 0,...e.style},onFocusCapture:E(e.onFocusCapture,P.onFocusCapture),onBlurCapture:E(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:E(e.onPointerDownCapture,S.onPointerDownCapture)})});Me.displayName=xu;var Cu="DismissableLayerBranch",cs=a.forwardRef((e,t)=>{const n=a.useContext(is),o=a.useRef(null),r=L(t,o);return a.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),f.jsx(A.div,{...e,ref:r})});cs.displayName=Cu;function Su(e,t=globalThis?.document){const n=H(e),o=a.useRef(!1),r=a.useRef(()=>{});return a.useEffect(()=>{const s=c=>{if(c.target&&!o.current){let l=function(){ls(bu,n,u,{discrete:!0})};const u={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 Eu(e,t=globalThis?.document){const n=H(e),o=a.useRef(!1);return a.useEffect(()=>{const r=s=>{s.target&&!o.current&&ls(yu,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 Ar(){const e=new CustomEvent(ro);document.dispatchEvent(e)}function ls(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?vt(r,s):r.dispatchEvent(s)}var Ru=Me,Pu=cs,z=globalThis?.document?a.useLayoutEffect:()=>{},Tu="Portal",Ge=a.forwardRef((e,t)=>{const{container:n,...o}=e,[r,s]=a.useState(!1);z(()=>s(!0),[]);const i=n||r&&globalThis?.document?.body;return i?os.createPortal(f.jsx(A.div,{...o,ref:t}),i):null});Ge.displayName=Tu;function Au(e,t){return a.useReducer((n,o)=>t[n][o]??n,e)}var U=e=>{const{present:t,children:n}=e,o=_u(t),r=typeof n=="function"?n({present:o.isPresent}):a.Children.only(n),s=L(o.ref,Iu(r));return typeof n=="function"||o.isPresent?a.cloneElement(r,{ref:s}):null};U.displayName="Presence";function _u(e){const[t,n]=a.useState(),o=a.useRef(null),r=a.useRef(e),s=a.useRef("none"),i=e?"mounted":"unmounted",[c,l]=Au(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const u=kt(o.current);s.current=c==="mounted"?u:"none"},[c]),z(()=>{const u=o.current,d=r.current;if(d!==e){const v=s.current,h=kt(u);e?l("MOUNT"):h==="none"||u?.display==="none"?l("UNMOUNT"):l(d&&v!==h?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),z(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,p=h=>{const m=kt(o.current).includes(h.animationName);if(h.target===t&&m&&(l("ANIMATION_END"),!r.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},v=h=>{h.target===t&&(s.current=kt(o.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:a.useCallback(u=>{o.current=u?getComputedStyle(u):null,n(u)},[])}}function kt(e){return e?.animationName||"none"}function Iu(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 Mu=rs[" useInsertionEffect ".trim().toString()]||z;function Q({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,s,i]=Nu({defaultProp:t,onChange:n}),c=e!==void 0,l=c?e:r;{const d=a.useRef(e!==void 0);a.useEffect(()=>{const p=d.current;
1p!==c&&console.warn(`${o} is changing from ${p?"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.`),d.current=c},[c,o])}const u=a.useCallback(d=>{if(c){const p=Du(d)?d(e):d;p!==e&&i.current?.(p)}else s(d)},[c,e,s,i]);return[l,u]}function Nu({defaultProp:e,onChange:t}){const[n,o]=a.useState(e),r=a.useRef(n),s=a.useRef(t);return Mu(()=>{s.current=t},[t]),a.useEffect(()=>{r.current!==n&&(s.current?.(n),r.current=n)},[n,r]),[n,o,s]}function Du(e){return typeof e=="function"}var us=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"}),Ou="VisuallyHidden",dn=a.forwardRef((e,t)=>f.jsx(A.span,{...e,ref:t,style:{...us,...e.style}}));dn.displayName=Ou;var ds=dn,No="ToastProvider",[Do,ju,Lu]=Ie("Toast"),[fs,Xg]=X("Toast",[Lu]),[ku,fn]=fs(No),ps=e=>{const{__scopeToast:t,label:n="Notification",duration:o=5e3,swipeDirection:r="right",swipeThreshold:s=50,children:i}=e,[c,l]=a.useState(null),[u,d]=a.useState(0),p=a.useRef(!1),v=a.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${No}\`. Expected non-empty \`string\`.`),f.jsx(Do.Provider,{scope:t,children:f.jsx(ku,{scope:t,label:n,duration:o,swipeDirection:r,swipeThreshold:s,toastCount:u,viewport:c,onViewportChange:l,onToastAdd:a.useCallback(()=>d(h=>h+1),[]),onToastRemove:a.useCallback(()=>d(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:v,children:i})})};ps.displayName=No;var vs="ToastViewport",Fu=["F8"],so="toast.viewportPause",ao="toast.viewportResume",ms=a.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:o=Fu,label:r="Notifications ({hotkey})",...s}=e,i=fn(vs,n),c=ju(n),l=a.useRef(null),u=a.useRef(null),d=a.useRef(null),p=a.useRef(null),v=L(t,p,i.onViewportChange),h=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=i.toastCount>0;a.useEffect(()=>{const g=x=>{o.length!==0&&o.every(y=>x[y]||x.code===y)&&p.current?.focus()};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[o]),a.useEffect(()=>{const g=l.current,x=p.current;if(w&&g&&x){const b=()=>{if(!i.isClosePausedRef.current){const P=new CustomEvent(so);x.dispatchEvent(P),i.isClosePausedRef.current=!0}},y=()=>{if(i.isClosePausedRef.current){const P=new CustomEvent(ao);x.dispatchEvent(P),i.isClosePausedRef.current=!1}},C=P=>{!g.contains(P.relatedTarget)&&y()},S=()=>{g.contains(document.activeElement)||y()};return g.addEventListener("focusin",b),g.addEventListener("focusout",C),g.addEventListener("pointermove",b),g.addEventListener("pointerleave",S),window.addEventListener("blur",b),window.addEventListener("focus",y),()=>{g.removeEventListener("focusin",b),g.removeEventListener("focusout",C),g.removeEventListener("pointermove",b),g.removeEventListener("pointerleave",S),window.removeEventListener("blur",b),window.removeEventListener("focus",y)}}},[w,i.isClosePausedRef]);const m=a.useCallback(({tabbingDirection:g})=>{const b=c().map(y=>{const C=y.ref.current,S=[C,...Zu(C)];return g==="forwards"?S:S.reverse()});return(g==="forwards"?b.reverse():b).flat()},[c]);return a.useEffect(()=>{const g=p.current;if(g){const x=b=>{const y=b.altKey||b.ctrlKey||b.metaKey;if(b.key==="Tab"&&!y){const S=document.activeElement,P=b.shiftKey;if(b.target===g&&P){u.current?.focus();return}const _=m({tabbingDirection:P?"backwards":"forwards"}),N=_.findIndex(D=>D===S);Un(_.slice(N+1))?b.preventDefault():P?u.current?.focus():d.current?.focus()}};return g.addEventListener("keydown",x),()=>g.removeEventListener("keydown",x)}},[c,m]),f.jsxs(Pu,{ref:l,role:"region","aria-label":r.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&f.jsx(io,{ref:u,onFocusFromOutsideViewport:()=>{const g=m({tabbingDirection:"forwards"});Un(g)}}),f.jsx(Do.Slot,{scope:n,children:f.jsx(A.ol,{tabIndex:-1,...s,ref:v})}),w&&f.jsx(io,{ref:d,onFocusFromOutsideViewport:()=>{const g=m({tabbingDirection:"backwards"});Un(g)}})]})});ms.displayName=vs;var hs="ToastFocusProxy",io=a.forwardRef((e,t)=>
1{const{__scopeToast:n,onFocusFromOutsideViewport:o,...r}=e,s=fn(hs,n);return f.jsx(dn,{"aria-hidden":!0,tabIndex:0,...r,ref:t,style:{position:"fixed"},onFocus:i=>{const c=i.relatedTarget;!s.viewport?.contains(c)&&o()}})});io.displayName=hs;var St="Toast",$u="toast.swipeStart",Vu="toast.swipeMove",Bu="toast.swipeCancel",Hu="toast.swipeEnd",gs=a.forwardRef((e,t)=>{const{forceMount:n,open:o,defaultOpen:r,onOpenChange:s,...i}=e,[c,l]=Q({prop:o,defaultProp:r??!0,onChange:s,caller:St});return f.jsx(U,{present:n||c,children:f.jsx(Uu,{open:c,...i,ref:t,onClose:()=>l(!1),onPause:H(e.onPause),onResume:H(e.onResume),onSwipeStart:E(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:E(e.onSwipeMove,u=>{const{x:d,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:E(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:E(e.onSwipeEnd,u=>{const{x:d,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),l(!1)})})})});gs.displayName=St;var[Ku,Wu]=fs(St,{onClose(){}}),Uu=a.forwardRef((e,t)=>{const{__scopeToast:n,type:o="foreground",duration:r,open:s,onClose:i,onEscapeKeyDown:c,onPause:l,onResume:u,onSwipeStart:d,onSwipeMove:p,onSwipeCancel:v,onSwipeEnd:h,...w}=e,m=fn(St,n),[g,x]=a.useState(null),b=L(t,I=>x(I)),y=a.useRef(null),C=a.useRef(null),S=r||m.duration,P=a.useRef(0),R=a.useRef(S),T=a.useRef(0),{onToastAdd:_,onToastRemove:N}=m,D=H(()=>{g?.contains(document.activeElement)&&m.viewport?.focus(),i()}),F=a.useCallback(I=>{!I||I===1/0||(window.clearTimeout(T.current),P.current=new Date().getTime(),T.current=window.setTimeout(D,I))},[D]);a.useEffect(()=>{const I=m.viewport;if(I){const V=()=>{F(R.current),u?.()},O=()=>{const $=new Date().getTime()-P.current;R.current=R.current-$,window.clearTimeout(T.current),l?.()};return I.addEventListener(so,O),I.addEventListener(ao,V),()=>{I.removeEventListener(so,O),I.removeEventListener(ao,V)}}},[m.viewport,S,l,u,F]),a.useEffect(()=>{s&&!m.isClosePausedRef.current&&F(S)},[s,S,m.isClosePausedRef,F]),a.useEffect(()=>(_(),()=>N()),[_,N]);const B=a.useMemo(()=>g?Es(g):null,[g]);return m.viewport?f.jsxs(f.Fragment,{children:[B&&f.jsx(Gu,{__scopeToast:n,role:"status","aria-live":o==="foreground"?"assertive":"polite","aria-atomic":!0,children:B}),f.jsx(Ku,{scope:n,onClose:D,children:yt.createPortal(f.jsx(Do.ItemSlot,{scope:n,children:f.jsx(Ru,{asChild:!0,onEscapeKeyDown:E(c,()=>{m.isFocusedToastEscapeKeyDownRef.current||D(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:f.jsx(A.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":m.swipeDirection,...w,ref:b,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:E(e.onKeyDown,I=>{I.key==="Escape"&&(c?.(I.nativeEvent),I.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,D()))}),onPointerDown:E(e.onPointerDown,I=>{I.button===0&&(y.current={x:I.clientX,y:I.clientY})}),onPointerMove:E(e.onPointerMove,I=>{if(!y.current)return;const V=I.clientX-y.current.x,O=I.clientY-y.current.y,$=!!C.current,j=["left","right"].includes(m.swipeDirection),M=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,Y=j?M(0,V):0,J=j?0:M(0,O),te=I.pointerType==="touch"?10:2,se={x:Y,y:J},ne={originalEvent:I,delta:se};$?(C.current=se,Ft(Vu,p,ne,{discrete:!1})):_r(se,m.swipeDirection,te)?(C.current=se,Ft($u,d,ne,{discrete:!1}),I.target.setPointerCapture(I.pointerId)):(Math.abs(V)>te||Math.abs(O)>te)&&(y.current=null)}),onPointerUp:E(e.onPointerUp,I=>{const V=C.current,O=I.target;if(O.hasPointerCapture(I.pointerId)&&O.releasePointerCapture(I.pointerId),C.current=null,y.current=null,V){const $=I.currentTarget,j={originalEvent:I,delta:V};_r(V,m.swipeDirection,m.swipeThreshold)?Ft(Hu,h,j,{discrete:!0}
1):Ft(Bu,v,j,{discrete:!0}),$.addEventListener("click",M=>M.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),Gu=e=>{const{__scopeToast:t,children:n,...o}=e,r=fn(St,t),[s,i]=a.useState(!1),[c,l]=a.useState(!1);return Xu(()=>i(!0)),a.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),c?null:f.jsx(Ge,{asChild:!0,children:f.jsx(dn,{...o,children:s&&f.jsxs(f.Fragment,{children:[r.label," ",n]})})})},zu="ToastTitle",ws=a.forwardRef((e,t)=>{const{__scopeToast:n,...o}=e;return f.jsx(A.div,{...o,ref:t})});ws.displayName=zu;var Yu="ToastDescription",xs=a.forwardRef((e,t)=>{const{__scopeToast:n,...o}=e;return f.jsx(A.div,{...o,ref:t})});xs.displayName=Yu;var bs="ToastAction",ys=a.forwardRef((e,t)=>{const{altText:n,...o}=e;return n.trim()?f.jsx(Ss,{altText:n,asChild:!0,children:f.jsx(Oo,{...o,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${bs}\`. Expected non-empty \`string\`.`),null)});ys.displayName=bs;var Cs="ToastClose",Oo=a.forwardRef((e,t)=>{const{__scopeToast:n,...o}=e,r=Wu(Cs,n);return f.jsx(Ss,{asChild:!0,children:f.jsx(A.button,{type:"button",...o,ref:t,onClick:E(e.onClick,r.onClose)})})});Oo.displayName=Cs;var Ss=a.forwardRef((e,t)=>{const{__scopeToast:n,altText:o,...r}=e;return f.jsx(A.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0,...r,ref:t})});function Es(e){const t=[];return Array.from(e.childNodes).forEach(o=>{if(o.nodeType===o.TEXT_NODE&&o.textContent&&t.push(o.textContent),qu(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(...Es(o))}}),t}function Ft(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?vt(r,s):r.dispatchEvent(s)}var _r=(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 Xu(e=()=>{}){const t=H(e);z(()=>{let n=0,o=0;return n=window.requestAnimationFrame(()=>o=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(o)}},[t])}function qu(e){return e.nodeType===e.ELEMENT_NODE}function Zu(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 Un(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var qg=ps,Zg=ms,Qg=gs,Jg=ws,ew=xs,tw=ys,nw=Oo,Qu=rs[" useId ".trim().toString()]||(()=>{}),Ju=0;function ee(e){const[t,n]=a.useState(Qu());return z(()=>{n(o=>o??String(Ju++))},[e]),t?`radix-${t}`:""}const ed=["top","right","bottom","left"],Le=Math.min,ie=Math.max,Xt=Math.round,$t=Math.floor,be=e=>({x:e,y:e}),td={left:"right",right:"left",bottom:"top",top:"bottom"},nd={start:"end",end:"start"};function co(e,t,n){return ie(e,Le(t,n))}function Ae(e,t){return typeof e=="function"?e(t):e}function _e(e){return e.split("-")[0]}function it(e){return e.split("-")[1]}function jo(e){return e==="x"?"y":"x"}function Lo(e){return e==="y"?"height":"width"}const od=new Set(["top","bottom"]);function xe(e){return od.has(_e(e))?"y":"x"}function ko(e){return jo(xe(e))}function rd(e,t,n){n===void 0&&(n=!1);const o=it(e),r=ko(e),s=Lo(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=qt(i)),[i,qt(i)]}function sd(e){const t=qt(e);return[lo(e),t,lo(t)]}function lo(e){return e.replace(/start|end/g,t=>nd[t])}const Ir=["left","right"],Mr=["right","left"],ad=["top","bottom"],id=["bottom","top"];function cd(e,t,n){switch(e){case"top":case"bottom":return n?t?Mr:Ir:t?Ir:Mr;case"left":case"right":return t?ad:id;default:return[]}}function ld(e,t,n,o){const r=it(e);let s=cd(_e(e),n==="start",o);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(lo)))),s}function qt(e){return e.replace(/left|right|bottom|top/g,t=>td[t])}function ud(e){return{top:0,right:0,bottom:0,left:0,...e}}function Rs(e){return typeof e!="number"?ud(e):{top:e,right:e,bottom:e,left:e}}function Zt(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 Nr(e,t,n){let{reference:o,floating:r}=e;const s=xe(t),i=ko(t),c=Lo(i),l=_e(t),u=s==="y",d=o.x+o.width/2-r.width/2,p=o.y+o.height/2-r.height/2,v=o[c]/2-r[c]/2;let h;switch(l){case"top":h={x:d,y:o.y-r.height};break;case"bottom":h={x:d,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:p};break;case"left":h={x:o.x-r.width,y:p};break;default:h={x:o.x,y:o.y}}switch(it(t)){case"start":h[i]-=v*(n&&u?-1:1);break;case"end":h[i]+=v*(n&&u?-1:1);break}return h}const dd=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:i}
vendor: 9,905 bytes, line 1
1=n,c=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:p}=Nr(u,o,l),v=o,h={},w=0;for(let m=0;m<c.length;m++){const{name:g,fn:x}=c[m],{x:b,y,data:C,reset:S}=await x({x:d,y:p,initialPlacement:o,placement:v,strategy:r,middlewareData:h,rects:u,platform:i,elements:{reference:e,floating:t}});d=b??d,p=y??p,h={...h,[g]:{...h[g],...C}},S&&w<=50&&(w++,typeof S=="object"&&(S.placement&&(v=S.placement),S.rects&&(u=S.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:d,y:p}=Nr(u,v,l)),m=-1)}return{x:d,y:p,placement:v,strategy:r,middlewareData:h}};async function mt(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:i,elements:c,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:v=!1,padding:h=0}=Ae(t,e),w=Rs(h),g=c[v?p==="floating"?"reference":"floating":p],x=Zt(await s.getClippingRect({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:u,rootBoundary:d,strategy:l})),b=p==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),C=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},S=Zt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:b,offsetParent:y,strategy:l}):b);return{top:(x.top-S.top+w.top)/C.y,bottom:(S.bottom-x.bottom+w.bottom)/C.y,left:(x.left-S.left+w.left)/C.x,right:(S.right-x.right+w.right)/C.x}}const fd=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:u,padding:d=0}=Ae(e,t)||{};if(u==null)return{};const p=Rs(d),v={x:n,y:o},h=ko(r),w=Lo(h),m=await i.getDimensions(u),g=h==="y",x=g?"top":"left",b=g?"bottom":"right",y=g?"clientHeight":"clientWidth",C=s.reference[w]+s.reference[h]-v[h]-s.floating[w],S=v[h]-s.reference[h],P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let R=P?P[y]:0;(!R||!await(i.isElement==null?void 0:i.isElement(P)))&&(R=c.floating[y]||s.floating[w]);const T=C/2-S/2,_=R/2-m[w]/2-1,N=Le(p[x],_),D=Le(p[b],_),F=N,B=R-m[w]-D,I=R/2-m[w]/2+T,V=co(F,I,B),O=!l.arrow&&it(r)!=null&&I!==V&&s.reference[w]/2-(I<F?N:D)-m[w]/2<0,$=O?I<F?I-F:I-B:0;return{[h]:v[h]+$,data:{[h]:V,centerOffset:I-V-$,...O&&{alignmentOffset:$}},reset:O}}}),pd=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:u}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:v,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:m=!0,...g}=Ae(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const x=_e(r),b=xe(c),y=_e(c)===c,C=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=v||(y||!m?[qt(c)]:sd(c)),P=w!=="none";!v&&P&&S.push(...ld(c,m,w,C));const R=[c,...S],T=await mt(t,g),_=[];let N=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&_.push(T[x]),p){const I=rd(r,i,C);_.push(T[I[0]],T[I[1]])}if(N=[...N,{placement:r,overflows:_}],!_.every(I=>I<=0)){var D,F;const I=(((D=s.flip)==null?void 0:D.index)||0)+1,V=R[I];if(V&&(!(p==="alignment"?b!==xe(V):!1)||N.every(j=>j.overflows[0]>0&&xe(j.placement)===b)))return{data:{index:I,overflows:N},reset:{placement:V}};let O=(F=N.filter($=>$.overflows[0]<=0).sort(($,j)=>$.overflows[1]-j.overflows[1])[0])==null?void 0:F.placement;if(!O)switch(h){case"bestFit":{var B;const $=(B=N.filter(j=>{if(P){const M=xe(j.placement);return M===b||M==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(M=>M>0).reduce((M,Y)=>M+Y,0)]).sort((j,M)=>j[1]-M[1])[0])==null?void 0:B[0];$&&(O=$);break}case"initialPlacement":O=c;break}if(r!==O)return{reset:{placement:O}}}return{}}}};function Dr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Or(e){return ed.some(t=>e[t]>=0)}const vd=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=Ae(e,t);switch(o){case"referenceHidden":{const s=await mt(t,{...r,elementContext:"reference"}),i=Dr(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Or(i)}}}case"escaped":{const s=await mt(t,{...r,altBoundary:!0}),i=Dr(s,n.floating);return{data:{escapedOffsets:i,escaped:Or(i)}}}default:return{}}}}},Ps=new Set(["left","top"]);async function md(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=_e(n),c=it(n),l=xe(n)==="y",u=Ps.has(i)?-1:1,d=s&&l?-1:1,p=Ae(t,e);let{mainAxis:v,crossAxis:h,alignmentAxis:w}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof w=="number"&&(h=c==="end"?w*-1:w),l?{x:h*d,y:v*u}:{x:v*u,y:h*d}}const hd=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 md(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}}}}},gd=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:c={fn:g=>{let{x,y:b}=g;return{x,y:b}}},...l}=Ae(e,t),u={x:n,y:o},d=await mt(t,l),p=xe(_e(r)),v=jo(p);let h=u[v],w=u[p];if(s){const g=v==="y"?"top":"left",x=v==="y"?"bottom":"right",b=h+d[g],y=h-d[x];h=co(b,h,y)}if(i){const g=p==="y"?"top":"left",x=p==="y"?"bottom":"right",b=w+d[g],y=w-d[x];w=co(b,w,y)}const m=c.fn({...t,[v]:h,[p]:w});return{...m,data:{x:m.x-n,y:m.y-o,enabled:{[v]:s,[p]:i}}}}}},wd=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:u=!0}=Ae(e,t),d={x:n,y:o},p=xe(r),v=jo(p);let h=d[v],w=d[p];const m=Ae(c,t),g=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const y=v==="y"?"height":"width",C=s.reference[v]-s.floating[y]+g.mainAxis,S=s.reference[v]+s.reference[y]-g.mainAxis;h<C?h=C:h>S&&(h=S)}if(u){var x,b;const y=v==="y"?"width":"height",C=Ps.has(_e(r)),S=s.reference[p]-s.floating[y]+(C&&((x=i.offset)==null?void 0:x[p])||0)+(C?0:g.crossAxis),P=s.reference[p]+s.reference[y]+(C?0:((b=i.offset)==null?void 0:b[p])||0)-(C?g.crossAxis:0);w<S?w=S:w>P&&(w=P)}return{[v]:h,[p]:w}}}},xd=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=()=>{},...u}=Ae(e,t),d=await mt(t,u),p=_e(r),v=it(r),h=xe(r)==="y",{width:w,height:m}=s.floating;let g,x;p==="top"||p==="bottom"?(g=p,x=v===(await(i.isRTL==null?void 0:i.isRTL(c.floating))?"start":"end")?"left":"right"):(x=p,g=v==="end"?"top":"bottom");const b=m-d.top-d.bottom,y=w-d.left-d.right,C=Le(m-d[g],b),S=Le(w-d[x],y),P=!t.middlewareData.shift;let R=C,T=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=y),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(R=b),P&&!v){const N=ie(d.left,0),D=ie(d.right,0),F=ie(d.top,0),B=ie(d.bottom,0);h?T=w-2*(N!==0||D!==0?N+D:ie(d.left,d.right)):R=m-2*(F!==0||B!==0?F+B:ie(d.top,d.bottom))}await l({...t,availableWidth:T,availableHeight:R});const _=await i.getDimensions(c.floating);return w!==_.width||m!==_.height?{reset:{rects:!0}}:{}}}};function pn(){return typeof window<"u"}function ct(e){return Ts(e)?(e.nodeName||"").toLowerCase():"#document"}function ce(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ce(e){var t;return(t=(Ts(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ts(e){return pn()?e instanceof Node||e instanceof ce(e).Node:!1}function ve(e){return pn()?e instanceof Element||e instanceof ce(e).Element:!1}function ye(e){return pn()?e instanceof HTMLElement||e instanceof ce(e).HTMLElement:!1}function jr(e){return!pn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ce(e).ShadowRoot}const bd=new Set(["inline","contents"]);function Et(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=me(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!bd.has(r)}const yd=new Set(["table","td","th"]);function Cd(e){return yd.has(ct(e))}const Sd=[":popover-open",":modal"];function vn(e){return Sd.some(t=>{try{return e.matches(t)}catch{return!1}})}const Ed=["transform","translate","scale","rotate","perspective"],Rd=["transform","translate","scale","rotate","perspective","filter"],Pd=["paint","layout","strict","content"];function Fo(e){const t=$o(),n=ve(e)?me(e):e;return Ed.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Rd.some(o=>(n.willChange||"").includes(o))||Pd.some(o=>(n.contain||"").includes(o))}function Td(e){let t=ke(e);for(;ye(t)&&!nt(t);){if(Fo(t))return t;if(vn(t))return null;t=ke(t)}return null}function $o(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Ad=new Set(["html","body","#document"]);function nt(e){return Ad.has(ct(e))}function me(e){return ce(e).getComputedStyle(e)}function mn(e){return ve(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ke(e){if(ct(e)==="html")return e;const t=e.assignedSlot||e.parentNode||jr(e)&&e.host||Ce(e);return jr(t)?t.host:t}function As(e){const t=ke(e);return nt(t)?e.ownerDocument?e.ownerDocument.body:e.body:ye(t)&&Et(t)?t:As(t)}function ht(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=As(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),i=ce(r);
vendor: 7,409 bytes, line 1
1if(s){const c=uo(i);return t.concat(i,i.visualViewport||[],Et(r)?r:[],c&&n?ht(c):[])}return t.concat(r,ht(r,[],n))}function uo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function _s(e){const t=me(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=ye(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o,c=Xt(n)!==s||Xt(o)!==i;return c&&(n=s,o=i),{width:n,height:o,$:c}}function Vo(e){return ve(e)?e:e.contextElement}function Je(e){const t=Vo(e);if(!ye(t))return be(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=_s(t);let i=(s?Xt(n.width):n.width)/o,c=(s?Xt(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const _d=be(0);function Is(e){const t=ce(e);return!$o()||!t.visualViewport?_d:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Id(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ce(e)?!1:t}function He(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=Vo(e);let i=be(1);t&&(o?ve(o)&&(i=Je(o)):i=Je(e));const c=Id(s,n,o)?Is(s):be(0);let l=(r.left+c.x)/i.x,u=(r.top+c.y)/i.y,d=r.width/i.x,p=r.height/i.y;if(s){const v=ce(s),h=o&&ve(o)?ce(o):o;let w=v,m=uo(w);for(;m&&o&&h!==w;){const g=Je(m),x=m.getBoundingClientRect(),b=me(m),y=x.left+(m.clientLeft+parseFloat(b.paddingLeft))*g.x,C=x.top+(m.clientTop+parseFloat(b.paddingTop))*g.y;l*=g.x,u*=g.y,d*=g.x,p*=g.y,l+=y,u+=C,w=ce(m),m=uo(w)}}return Zt({width:d,height:p,x:l,y:u})}function Bo(e,t){const n=mn(e).scrollLeft;return t?t.left+n:He(Ce(e)).left+n}function Ms(e,t,n){n===void 0&&(n=!1);const o=e.getBoundingClientRect(),r=o.left+t.scrollLeft-(n?0:Bo(e,o)),s=o.top+t.scrollTop;return{x:r,y:s}}function Md(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",i=Ce(o),c=t?vn(t.floating):!1;if(o===i||c&&s)return n;let l={scrollLeft:0,scrollTop:0},u=be(1);const d=be(0),p=ye(o);if((p||!p&&!s)&&((ct(o)!=="body"||Et(i))&&(l=mn(o)),ye(o))){const h=He(o);u=Je(o),d.x=h.x+o.clientLeft,d.y=h.y+o.clientTop}const v=i&&!p&&!s?Ms(i,l,!0):be(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+v.x,y:n.y*u.y-l.scrollTop*u.y+d.y+v.y}}function Nd(e){return Array.from(e.getClientRects())}function Dd(e){const t=Ce(e),n=mn(e),o=e.ownerDocument.body,r=ie(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=ie(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+Bo(e);const c=-n.scrollTop;return me(o).direction==="rtl"&&(i+=ie(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:i,y:c}}function Od(e,t){const n=ce(e),o=Ce(e),r=n.visualViewport;let s=o.clientWidth,i=o.clientHeight,c=0,l=0;if(r){s=r.width,i=r.height;const u=$o();(!u||u&&t==="fixed")&&(c=r.offsetLeft,l=r.offsetTop)}return{width:s,height:i,x:c,y:l}}const jd=new Set(["absolute","fixed"]);function Ld(e,t){const n=He(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=ye(e)?Je(e):be(1),i=e.clientWidth*s.x,c=e.clientHeight*s.y,l=r*s.x,u=o*s.y;return{width:i,height:c,x:l,y:u}}function Lr(e,t,n){let o;if(t==="viewport")o=Od(e,n);else if(t==="document")o=Dd(Ce(e));else if(ve(t))o=Ld(t,n);else{const r=Is(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Zt(o)}function Ns(e,t){const n=ke(e);return n===t||!ve(n)||nt(n)?!1:me(n).position==="fixed"||Ns(n,t)}function kd(e,t){const n=t.get(e);if(n)return n;let o=ht(e,[],!1).filter(c=>ve(c)&&ct(c)!=="body"),r=null;const s=me(e).position==="fixed";let i=s?ke(e):e;for(;ve(i)&&!nt(i);){const c=me(i),l=Fo(i);!l&&c.position==="fixed"&&(r=null),(s?!l&&!r:!l&&c.position==="static"&&!!r&&jd.has(r.position)||Et(i)&&!l&&Ns(e,i))?o=o.filter(d=>d!==i):r=c,i=ke(i)}return t.set(e,o),o}function Fd(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[...n==="clippingAncestors"?vn(t)?[]:kd(t,this._c):[].concat(n),o],c=i[0],l=i.reduce((u,d)=>{const p=Lr(t,d,r);return u.top=ie(p.top,u.top),u.right=Le(p.right,u.right),u.bottom=Le(p.bottom,u.bottom),u.left=ie(p.left,u.left),u},Lr(t,c,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function $d(e){const{width:t,height:n}=_s(e);return{width:t,height:n}}function Vd(e,t,n){const o=ye(t),r=Ce(t),s=n==="fixed",i=He(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const l=be(0);function u(){l.x=Bo(r)}if(o||!o&&!s)if((ct(t)!=="body"||Et(r))&&(c=mn(t)),o){const h=He(t,!0,s,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else r&&u();s&&!o&&r&&u();const d=r&&!o&&!s?Ms(r,c):be(0),p=i.left+c.scrollLeft-l.x-d.x,v=i.top+c.scrollTop-l.y-d.y;return{x:p,y:v,width:i.width,height:i.height}}function Gn(e){return me(e).position==="static"}function kr(e,t){if(!ye(e)||me(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ce(e)===n&&(n=n.ownerDocument.body),n}function Ds(e,t){const n=ce(e);if(vn(e))return n;if(!ye(e)){let r=ke(e);for(;r&&!nt(r);){if(ve(r)&&!Gn(r))return r;r=ke(r)}return n}let o=kr(e,t);for(;o&&Cd(o)&&Gn(o);)o=kr(o,t);return o&&nt(o)&&Gn(o)&&!Fo(o)?n:o||Td(e)||n}const Bd=async function(e){const t=this.getOffsetParent||Ds,n=this.getDimensions,o=await n(e.floating);return{reference:Vd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Hd(e){return me(e).direction==="rtl"}const Kd={convertOffsetParentRelativeRectToViewportRelativeRect:Md,getDocumentElement:Ce,getClippingRect:Fd,getOffsetParent:Ds,getElementRects:Bd,getClientRects:Nd,getDimensions:$d,getScale:Je,isElement:ve,isRTL:Hd};function Os(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Wd(e,t){let n=null,o;const r=Ce(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 u=e.getBoundingClientRect(),{left:d,top:p,width:v,height:h}=u;if(c||t(),!v||!h)return;const w=$t(p),m=$t(r.clientWidth-(d+v)),g=$t(r.clientHeight-(p+h)),x=$t(d),y={rootMargin:-w+"px "+-m+"px "+-g+"px "+-x+"px",threshold:ie(0,Le(1,l))||1};let C=!0;function S(P){const R=P[0].intersectionRatio;if(R!==l){if(!C)return i();R?i(!1,R):o=setTimeout(()=>{i(!1,1e-7)},1e3)}R===1&&!Os(u,e.getBoundingClientRect())&&i(),C=!1}try{n=new IntersectionObserver(S,{...y,root:r.ownerDocument})}catch{n=new IntersectionObserver(S,y)}n.observe(e)}return i(!0),s}function Ud(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,u=Vo(e),d=r||s?[...u?ht(u):[],...ht(t)]:[];d.forEach(x=>{r&&x.addEventListener("scroll",n,{passive:!0}),s&&x.addEventListener("resize",n)});const p=u&&c?Wd(u,n):null;let v=-1,h=null;i&&(h=new ResizeObserver(x=>{let[b]=x;b&&b.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var y;(y=h)==null||y.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let w,m=l?He(e):null;l&&g();function g(){const x=He(e);m&&!Os(m,x)&&n(),m=x,w=requestAnimationFrame(g)}return n(),()=>{var x;d.forEach(b=>{r&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),p?.(),(x=h)==null||x.disconnect(),h=null,l&&cancelAnimationFrame(w)}}const Gd=hd,zd=gd,Yd=pd,Xd=xd,qd=vd,Fr=fd,Zd=wd,Qd=(e,t,n)=>{const o=new Map,r={platform:Kd,...n},s={...r.platform,_c:o};return dd(e,t,{...r,platform:s})};var Jd=typeof document<"u",ef=function(){},Ut=Jd?a.useLayoutEffect:ef;function Qt(e,t){if(e===t)return!0;
vendor: 18,548 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(!Qt(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)&&!Qt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function js(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function $r(e,t){const n=js(e);return Math.round(t*n)/n}function zn(e){const t=a.useRef(e);return Ut(()=>{t.current=e}),t}function tf(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:u}=e,[d,p]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,h]=a.useState(o);Qt(v,o)||h(o);const[w,m]=a.useState(null),[g,x]=a.useState(null),b=a.useCallback(j=>{j!==P.current&&(P.current=j,m(j))},[]),y=a.useCallback(j=>{j!==R.current&&(R.current=j,x(j))},[]),C=s||w,S=i||g,P=a.useRef(null),R=a.useRef(null),T=a.useRef(d),_=l!=null,N=zn(l),D=zn(r),F=zn(u),B=a.useCallback(()=>{if(!P.current||!R.current)return;const j={placement:t,strategy:n,middleware:v};D.current&&(j.platform=D.current),Qd(P.current,R.current,j).then(M=>{const Y={...M,isPositioned:F.current!==!1};I.current&&!Qt(T.current,Y)&&(T.current=Y,yt.flushSync(()=>{p(Y)}))})},[v,t,n,D,F]);Ut(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,p(j=>({...j,isPositioned:!1})))},[u]);const I=a.useRef(!1);Ut(()=>(I.current=!0,()=>{I.current=!1}),[]),Ut(()=>{if(C&&(P.current=C),S&&(R.current=S),C&&S){if(N.current)return N.current(C,S,B);B()}},[C,S,B,N,_]);const V=a.useMemo(()=>({reference:P,floating:R,setReference:b,setFloating:y}),[b,y]),O=a.useMemo(()=>({reference:C,floating:S}),[C,S]),$=a.useMemo(()=>{const j={position:n,left:0,top:0};if(!O.floating)return j;const M=$r(O.floating,d.x),Y=$r(O.floating,d.y);return c?{...j,transform:"translate("+M+"px, "+Y+"px)",...js(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:M,top:Y}},[n,c,O.floating,d.x,d.y]);return a.useMemo(()=>({...d,update:B,refs:V,elements:O,floatingStyles:$}),[d,B,V,O,$])}const nf=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?Fr({element:o.current,padding:r}).fn(n):{}:o?Fr({element:o,padding:r}).fn(n):{}}}},of=(e,t)=>({...Gd(e),options:[e,t]}),rf=(e,t)=>({...zd(e),options:[e,t]}),sf=(e,t)=>({...Zd(e),options:[e,t]}),af=(e,t)=>({...Yd(e),options:[e,t]}),cf=(e,t)=>({...Xd(e),options:[e,t]}),lf=(e,t)=>({...qd(e),options:[e,t]}),uf=(e,t)=>({...nf(e),options:[e,t]});var df="Arrow",Ls=a.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...s}=e;return f.jsx(A.svg,{...s,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ls.displayName=df;var ff=Ls;function hn(e){const[t,n]=a.useState(void 0);return z(()=>{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,u=Array.isArray(l)?l[0]:l;i=u.inlineSize,c=u.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 Ho="Popper",[ks,Se]=X(Ho),[pf,Fs]=ks(Ho),$s=e=>{const{__scopePopper:t,children:n}=e,[o,r]=a.useState(null);return f.jsx(pf,{scope:t,anchor:o,onAnchorChange:r,children:n})};$s.displayName=Ho;var Vs="PopperAnchor",Bs=a.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,s=Fs(Vs,n),i=a.useRef(null),c=L(t,i);return a.useEffect(()=>{s.onAnchorChange(o?.current||i.current)}),o?null:f.jsx(A.div,{...r,ref:c})});Bs.displayName=Vs;var Ko="PopperContent",[vf,mf]=ks(Ko),Hs=a.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:u=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:v=!1,updatePositionStrategy:h="optimized",onPlaced:w,...m}=e,g=Fs(Ko,n),[x,b]=a.useState(null),y=L(t,k=>b(k)),[C,S]=a.useState(null),P=hn(C),R=P?.width??0,T=P?.height??0,_=o+(s!=="center"?"-"+s:""),N=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},D=Array.isArray(u)?u:[u],F=D.length>0,B={padding:N,boundary:D.filter(gf),altBoundary:F},{refs:I,floatingStyles:V,placement:O,isPositioned:$,middlewareData:j}=tf({strategy:"fixed",placement:_,whileElementsMounted:(...k)=>Ud(...k,{animationFrame:h==="always"}),elements:{reference:g.anchor},middleware:[of({mainAxis:r+T,alignmentAxis:i}),l&&rf({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?sf():void 0,...B}),l&&af({...B}),cf({...B,apply:({elements:k,rects:K,availableWidth:oe,availableHeight:W})=>{const{width:G,height:q}=K.reference,le=k.floating.style;le.setProperty("--radix-popper-available-width",`${oe}px`),le.setProperty("--radix-popper-available-height",`${W}px`),le.setProperty("--radix-popper-anchor-width",`${G}px`),le.setProperty("--radix-popper-anchor-height",`${q}px`)}}),C&&uf({element:C,padding:c}),wf({arrowWidth:R,arrowHeight:T}),v&&lf({strategy:"referenceHidden",...B})]}),[M,Y]=Us(O),J=H(w);z(()=>{$&&J?.()},[$,J]);const te=j.arrow?.x,se=j.arrow?.y,ne=j.arrow?.centerOffset!==0,[Pe,ae]=a.useState();return z(()=>{x&&ae(window.getComputedStyle(x).zIndex)},[x]),f.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:$?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Pe,"--radix-popper-transform-origin":[j.transformOrigin?.x,j.transformOrigin?.y].join(" "),...j.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:f.jsx(vf,{scope:n,placedSide:M,onArrowChange:S,arrowX:te,arrowY:se,shouldHideArrow:ne,children:f.jsx(A.div,{"data-side":M,"data-align":Y,...m,ref:y,style:{...m.style,animation:$?void 0:"none"}})})})});Hs.displayName=Ko;var Ks="PopperArrow",hf={top:"bottom",right:"left",bottom:"top",left:"right"},Ws=a.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,s=mf(Ks,o),i=hf[s.placedSide];return f.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:f.jsx(ff,{...r,ref:n,style:{...r.style,display:"block"}})})});Ws.displayName=Ks;function gf(e){return e!==null}var wf=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,[u,d]=Us(n),p={start:"0%",center:"50%",end:"100%"}[d],v=(r.arrow?.x??0)+c/2,h=(r.arrow?.y??0)+l/2;let w="",m="";return u==="bottom"?(w=i?p:`${v}px`,m=`${-l}px`):u==="top"?(w=i?p:`${v}px`,m=`${o.floating.height+l}px`):u==="right"?(w=`${-l}px`,m=i?p:`${h}px`):u==="left"&&(w=`${o.floating.width+l}px`,m=i?p:`${h}px`),{data:{x:w,y:m}}}});function Us(e){const[t,n="center"]=e.split("-");return[t,n]}var Rt=$s,lt=Bs,Pt=Hs,Tt=Ws,[gn,ow]=X("Tooltip",[Se]),wn=Se(),Gs="TooltipProvider",xf=700,fo="tooltip.open",[bf,Wo]=gn(Gs),zs=e=>{const{__scopeTooltip:t,delayDuration:n=xf,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:s}=e,i=a.useRef(!0),c=a.useRef(!1),l=a.useRef(0);return a.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),f.jsx(bf,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:a.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:a.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,o)},[o]),isPointerInTransitRef:c,onPointerInTransitChange:a.useCallback(u=>{c.current=u},[]),disableHoverableContent:r,children:s})};zs.displayName=Gs;var gt="Tooltip",[yf,At]=gn(gt),Ys=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:r,onOpenChange:s,disableHoverableContent:i,delayDuration:c}=e,l=Wo(gt,e.__scopeTooltip),u=wn(t),[d,p]=a.useState(null),v=ee(),h=a.useRef(0),w=i??l.disableHoverableContent,m=c??l.delayDuration,g=a.useRef(!1),[x,b]=Q({prop:o,defaultProp:r??!1,onChange:R=>{R?(l.onOpen(),document.dispatchEvent(new CustomEvent(fo))):l.onClose(),s?.(R)},caller:gt}),y=a.useMemo(()=>x?g.current?"delayed-open":"instant-open":"closed",[x]),C=a.useCallback(()=>{window.clearTimeout(h.current),h.current=0,g.current=!1,b(!0)},[b]),S=a.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b(!1)},[b]),P=a.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{g.current=!0,b(!0),h.current=0},m)},[m,b]);return a.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),f.jsx(Rt,{...u,children:f.jsx(yf,{scope:t,contentId:v,open:x,stateAttribute:y,trigger:d,onTriggerChange:p,onTriggerEnter:a.useCallback(()=>{l.isOpenDelayedRef.current?P():C()},[l.isOpenDelayedRef,P,C]),onTriggerLeave:a.useCallback(()=>{w?S():(window.clearTimeout(h.current),h.current=0)},[S,w]),onOpen:C,onClose:S,disableHoverableContent:w,children:n})})};Ys.displayName=gt;var po="TooltipTrigger",Xs=a.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=At(po,n),s=Wo(po,n),i=wn(n),c=a.useRef(null),l=L(t,c,r.onTriggerChange),u=a.useRef(!1),d=a.useRef(!1),p=a.useCallback(()=>u.current=!1,[]);return a.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),f.jsx(lt,{asChild:!0,...i,children:f.jsx(A.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...o,ref:l,onPointerMove:E(e.onPointerMove,v=>{v.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(r.onTriggerEnter(),d.current=!0)}),onPointerLeave:E(e.onPointerLeave,()=>{r.onTriggerLeave(),d.current=!1}),onPointerDown:E(e.onPointerDown,()=>{r.open&&r.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:E(e.onFocus,()=>{u.current||r.onOpen()}),onBlur:E(e.onBlur,r.onClose),onClick:E(e.onClick,r.onClose)})})});Xs.displayName=po;var Uo="TooltipPortal",[Cf,Sf]=gn(Uo,{forceMount:void 0}),qs=e=>{const{__scopeTooltip:t,forceMount:n,children:o,container:r}=e,s=At(Uo,t);return f.jsx(Cf,{scope:t,forceMount:n,children:f.jsx(U,{present:n||s.open,children:f.jsx(Ge,{asChild:!0,container:r,children:o})})})};qs.displayName=Uo;var ot="TooltipContent",Zs=a.forwardRef((e,t)=>{const n=Sf(ot,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...s}=e,i=At(ot,e.__scopeTooltip);return f.jsx(U,{present:o||i.open,children:i.disableHoverableContent?f.jsx(Qs,{side:r,...s,ref:t}):f.jsx(Ef,{side:r,...s,ref:t})})}),Ef=a.forwardRef((e,t)=>{const n=At(ot,e.__scopeTooltip),o=Wo(ot,e.__scopeTooltip),r=a.useRef(null),s=L(t,r),[i,c]=a.useState(null),{trigger:l,onClose:u}=n,d=r.current,{onPointerInTransitChange:p}=o,v=a.useCallback(()=>{c(null),p(!1)},[p]),h=a.useCallback((w,m)=>{const g=w.currentTarget,x={x:w.clientX,y:w.clientY},b=_f(x,g.getBoundingClientRect()),y=If(x,b),C=Mf(m.getBoundingClientRect()),S=Df([...y,...C]);c(S),p(!0)},[p]);return a.useEffect(()=>()=>v(),[v]),a.useEffect(()=>{if(l&&d){const w=g=>h(g,d),m=g=>h(g,l);return l.addEventListener("pointerleave",w),d.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",w),d.removeEventListener("pointerleave",m)}}},[l,d,h,v]),a.useEffect(()=>{if(i){const w=m=>{const g=m.target,x={x:m.clientX,y:m.clientY},b=l?.contains(g)||d?.contains(g),y=!Nf(x,i);b?v():y&&(v(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[l,d,i,u,v]),f.jsx(Qs,{...e,ref:s})}),[Rf,Pf]=gn(gt,{isInside:!1}),Tf=as("TooltipContent"),Qs=a.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":r,onEscapeKeyDown:s,onPointerDownOutside:i,...c}=e,l=At(ot,n),u=wn(n),{onClose:d}=l;return a.useEffect(()=>(document.addEventListener(fo,d),()=>document.removeEventListener(fo,d)),[d]),a.useEffect(()=>{if(l.trigger){const p=v=>{v.target?.contains(l.trigger)&&d()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[l.trigger,d]),f.jsx(Me,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:d,children:f.jsxs(Pt,{"data-state":l.stateAttribute,...u,...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:[f.jsx(Tf,{children:o}),f.jsx(Rf,{scope:n,isInside:!0,children:f.jsx(ds,{id:l.contentId,role:"tooltip",children:r||o})})]})})});Zs.displayName=ot;var Js="TooltipArrow",Af=a.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=wn(n);return Pf(Js,n).isInside?null:f.jsx(Tt,{...r,...o,ref:t})});Af.displayName=Js;function _f(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 If(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 Mf(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 Nf(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],u=c.x,d=c.y,p=l.x,v=l.y;d>o!=v>o&&n<(p-u)*(o-d)/(v-d)+u&&(r=!r)}return r}function Df(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),Of(t)}function Of(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 rw=zs,sw=Ys,aw=Xs,iw=qs,cw=Zs,Yn="focusScope.autoFocusOnMount",Xn="focusScope.autoFocusOnUnmount",Vr={bubbles:!1,cancelable:!0},jf="FocusScope",_t=a.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...i}=e,[c,l]=a.useState(null),u=H(r),d=H(s),p=a.useRef(null),v=L(t,m=>l(m)),h=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(o){let m=function(y){if(h.paused||!c)return;const C=y.target;c.contains(C)?p.current=C:De(p.current,{select:!0})},g=function(y){if(h.paused||!c)return;const C=y.relatedTarget;C!==null&&(c.contains(C)||De(p.current,{select:!0}))},x=function(y){if(document.activeElement===document.body)for(const S of y)S.removedNodes.length>0&&De(c)};document.addEventListener("focusin",m),document.addEventListener("focusout",g);const b=new MutationObserver(x);return c&&b.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",g),b.disconnect()}}},[o,c,h.paused]),a.useEffect(()=>{if(c){Hr.add(h);const m=document.activeElement;if(!c.contains(m)){const x=new CustomEvent(Yn,Vr);c.addEventListener(Yn,u),c.dispatchEvent(x),x.defaultPrevented||(Lf(Bf(ea(c)),{select:!0}),document.activeElement===m&&De(c))}return()=>{c.removeEventListener(Yn,u),setTimeout(()=>{const x=new CustomEvent(Xn,Vr);c.addEventListener(Xn,d),c.dispatchEvent(x),x.defaultPrevented||De(m??document.body,{select:!0}),c.removeEventListener(Xn,d),Hr.remove(h)},0)}}},[c,u,d,h]);const w=a.useCallback(m=>{if(!n&&!o||h.paused)return;const g=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,x=document.activeElement;if(g&&x){const b=m.currentTarget,[y,C]=kf(b);y&&C?!m.shiftKey&&x===C?(m.preventDefault(),n&&De(y,{select:!0})):m.shiftKey&&x===y&&(m.preventDefault(),n&&De(C,{select:!0})):x===b&&m.preventDefault()}},[n,o,h.paused]);return f.jsx(A.div,{tabIndex:-1,...i,ref:v,onKeyDown:w})});_t.displayName=jf;function Lf(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(De(o,{select:t}),document.activeElement!==n)return}function kf(e){const t=ea(e),n=Br(t,e),o=Br(t.reverse(),e);return[n,o]}function ea(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 Br(e,t){for(const n of e)if(!Ff(n,{upTo:t}))return n}function Ff(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function $f(e){return e instanceof HTMLInputElement&&"select"in e}function De(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&$f(e)&&t&&e.select()}}var Hr=Vf();function Vf(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Kr(e,t),e.unshift(t)},remove(t){e=Kr(e,t),e[0]?.resume()}}}function Kr(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function Bf(e){return e.filter(t=>t.tagName!=="A")}var qn=0;function xn(){a.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Wr()),document.body.insertAdjacentElement("beforeend",e[1]??Wr()),qn++,()=>{qn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),qn--}},[])}function Wr(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
vendor: 5,651 bytes, lines 1-16
1style.position="fixed",e.style.pointerEvents="none",e}var we=function(){return we=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},we.apply(this,arguments)};function ta(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function Hf(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,s;o<r;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}var Gt="right-scroll-bar-position",zt="width-before-scroll-bar",Kf="with-scroll-bars-hidden",Wf="--removed-body-scroll-bar-size";function Zn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Uf(e,t){var n=a.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var Gf=typeof window<"u"?a.useLayoutEffect:a.useEffect,Ur=new WeakMap;function zf(e,t){var n=Uf(null,function(o){return e.forEach(function(r){return Zn(r,o)})});return Gf(function(){var o=Ur.get(n);if(o){var r=new Set(o),s=new Set(e),i=n.current;r.forEach(function(c){s.has(c)||Zn(c,null)}),s.forEach(function(c){r.has(c)||Zn(c,i)})}Ur.set(n,e)},[e]),n}function Yf(e){return e}function Xf(e,t){t===void 0&&(t=Yf);var n=[],o=!1,r={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,o);return n.push(i),function(){n=n.filter(function(c){return c!==i})}},assignSyncMedium:function(s){for(o=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(c){return s(c)},filter:function(){return n}}},assignMedium:function(s){o=!0;var i=[];if(n.length){var c=n;n=[],c.forEach(s),i=n}var l=function(){var d=i;i=[],d.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){i.push(d),u()},filter:function(d){return i=i.filter(d),n}}}};return r}function qf(e){e===void 0&&(e={});var t=Xf(null);return t.options=we({async:!0,ssr:!1},e),t}var na=function(e){var t=e.sideCar,n=ta(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return a.createElement(o,we({},n))};na.isSideCarExport=!0;function Zf(e,t){return e.useMedium(t),na}var oa=qf(),Qn=function(){},bn=a.forwardRef(function(e,t){var n=a.useRef(null),o=a.useState({onScrollCapture:Qn,onWheelCapture:Qn,onTouchMoveCapture:Qn}),r=o[0],s=o[1],i=e.forwardProps,c=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,p=e.shards,v=e.sideCar,h=e.noRelative,w=e.noIsolation,m=e.inert,g=e.allowPinchZoom,x=e.as,b=x===void 0?"div":x,y=e.gapMode,C=ta(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,P=zf([n,t]),R=we(we({},C),r);return a.createElement(a.Fragment,null,d&&a.createElement(S,{sideCar:oa,removeScrollBar:u,shards:p,noRelative:h,noIsolation:w,inert:m,setCallbacks:s,allowPinchZoom:!!g,lockRef:n,gapMode:y}),i?a.cloneElement(a.Children.only(c),we(we({},R),{ref:P})):a.createElement(b,we({},R,{className:l,ref:P}),c))});bn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};bn.classNames={fullWidth:zt,zeroRight:Gt};var Qf=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Jf(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Qf();return t&&e.setAttribute("nonce",t),e}function ep(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function tp(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var np=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Jf())&&(ep(t,n),tp(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},op=function(){var e=np();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ra=function(){var e=op(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},rp={left:0,top:0,right:0,gap:0},Jn=function(e){return parseInt(e||"",10)||0},sp=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[Jn(n),Jn(o),Jn(r)]},ap=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return rp;var t=sp(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},ip=ra(),et="data-scroll-locked",cp=function(e,t,n,o){var r=e.left,s=e.top,i=e.right,c=e.gap;return n===void 0&&(n="margin"),`
2  .`.concat(Kf,` {
3   overflow: hidden `).concat(o,`;
4   padding-right: `).concat(c,"px ").concat(o,`;
5  }
6  body[`).concat(et,`] {
7    overflow: hidden `).concat(o,`;
8    overscroll-behavior: contain;
9    `).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&`
10    padding-left: `.concat(r,`px;
11    padding-top: `).concat(s,`px;
12    padding-right: `).concat(i,`px;
13    margin-left:0;
14    margin-top:0;
15    margin-right: `).concat(c,"px ").concat(o,`;
16    `),n==="padding"&&"padding-right: ".concat(c,"px ").concat(o,";
16")].filter(Boolean).join(""),`
17  }
18  
19  .`).concat(Gt,` {
20    right: `).concat(c,"px ").concat(o,`;
21  }
22  
23  .`).concat(zt,` {
24    margin-right: `).concat(c,"px ").concat(o,`;
25  }
26  
27  .`).concat(Gt," .").concat(Gt,` {
28    right: 0 `).concat(o,`;
29  }
30  
31  .`).concat(zt," .").concat(zt,` {
32    margin-right: 0 `).concat(o,`;
33  }
34  
35  body[`).concat(et,`] {
36    `).concat(Wf,": ").concat(c,`px;
37  }
38`)},Gr=function(){var e=parseInt(document.body.getAttribute(et)||"0",10);return isFinite(e)?e:0},lp=function(){a.useEffect(function(){return document.body.setAttribute(et,(Gr()+1).toString()),function(){var e=Gr()-1;e<=0?document.body.removeAttribute(et):document.body.setAttribute(et,e.toString())}},[])},up=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;lp();var s=a.useMemo(function(){return ap(r)},[r]);return a.createElement(ip,{styles:cp(s,!t,r,n?"":"!important")})},vo=!1;if(typeof window<"u")try{var Vt=Object.defineProperty({},"passive",{get:function(){return vo=!0,!0}});window.addEventListener("test",Vt,Vt),window.removeEventListener("test",Vt,Vt)}catch{vo=!1}var qe=vo?{passive:!1}:!1,dp=function(e){return e.tagName==="TEXTAREA"},sa=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!dp(e)&&n[t]==="visible")},fp=function(e){return sa(e,"overflowY")},pp=function(e){return sa(e,"overflowX")},zr=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=aa(e,o);if(r){var s=ia(e,o),i=s[1],c=s[2];if(i>c)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},vp=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},mp=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},aa=function(e,t){return e==="v"?fp(t):pp(t)},ia=function(e,t){return e==="v"?vp(t):mp(t)},hp=function(e,t){return e==="h"&&t==="rtl"?-1:1},gp=function(e,t,n,o,r){var s=hp(e,window.getComputedStyle(t).direction),i=s*o,c=n.target,l=t.contains(c),u=!1,d=i>0,p=0,v=0;do{if(!c)break;var h=ia(e,c),w=h[0],m=h[1],g=h[2],x=m-g-s*w;(w||x)&&aa(e,c)&&(p+=x,v+=w);var b=c.parentNode;c=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!l&&c!==document.body||l&&(t.contains(c)||t===c));return(d&&(Math.abs(p)<1||!r)||!d&&(Math.abs(v)<1||!r))&&(u=!0),u},Bt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Yr=function(e){return[e.deltaX,e.deltaY]},Xr=function(e){return e&&"current"in e?e.current:e},wp=function(e,t){return e[0]===t[0]&&e[1]===t[1]},xp=function(e){return`
39  .block-interactivity-`.concat(e,` {pointer-events: none;}
40  .allow-interactivity-`).concat(e,` {pointer-events: all;}
41`)},bp=0,Ze=[];function yp(e){var t=a.useRef([]),n=a.useRef([0,0]),o=a.useRef(),r=a.useState(bp++)[0],s=a.useState(ra)[0],i=a.useRef(e);a.useEffect(function(){i.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var m=Hf([e.lockRef.current],(e.shards||[]).map(Xr),!0).filter(Boolean);return m.forEach(function(g){return g.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),m.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var c=a.useCallback(function(m,g){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!i.current.allowPinchZoom;var x=Bt(m),b=n.current,y="deltaX"in m?m.deltaX:b[0]-x[0],C="deltaY"in m?m.deltaY:b[1]-x[1],S,P=m.target,R=Math.abs(y)>Math.abs(C)?"h":"v";if("touches"in m&&R==="h"&&P.type==="range")return!1;var T=zr(R,P);if(!T)return!0;if(T?S=R:(S=R==="v"?"h":"v",T=zr(R,P)),!T)return!1;if(!o.current&&"changedTouches"in m&&(y||C)&&(o.current=S),!S)return!0;var _=o.current||S;return gp(_,g,m,_==="h"?y:C,!0)},[]),l=a.useCallback(function(m){var g=m;if(!(!Ze.length||Ze[Ze.length-1]!==s)){var x="deltaY"in g?Yr(g):Bt(g),b=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&wp(S.delta,x)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}
vendor: 8,590 bytes, lines 41-45
41if(!b){var y=(i.current.shards||[]).map(Xr).filter(Boolean).filter(function(S){return S.contains(g.target)}),C=y.length>0?c(g,y[0]):!i.current.noIsolation;C&&g.cancelable&&g.preventDefault()}}},[]),u=a.useCallback(function(m,g,x,b){var y={name:m,delta:g,target:x,should:b,shadowParent:Cp(x)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(C){return C!==y})},1)},[]),d=a.useCallback(function(m){n.current=Bt(m),o.current=void 0},[]),p=a.useCallback(function(m){u(m.type,Yr(m),m.target,c(m,e.lockRef.current))},[]),v=a.useCallback(function(m){u(m.type,Bt(m),m.target,c(m,e.lockRef.current))},[]);a.useEffect(function(){return Ze.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",l,qe),document.addEventListener("touchmove",l,qe),document.addEventListener("touchstart",d,qe),function(){Ze=Ze.filter(function(m){return m!==s}),document.removeEventListener("wheel",l,qe),document.removeEventListener("touchmove",l,qe),document.removeEventListener("touchstart",d,qe)}},[]);var h=e.removeScrollBar,w=e.inert;return a.createElement(a.Fragment,null,w?a.createElement(s,{styles:xp(r)}):null,h?a.createElement(up,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Cp(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Sp=Zf(oa,yp);var It=a.forwardRef(function(e,t){return a.createElement(bn,we({},e,{ref:t,sideCar:Sp}))});It.classNames=bn.classNames;var Ep=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Qe=new WeakMap,Ht=new WeakMap,Kt={},eo=0,ca=function(e){return e&&(e.host||ca(e.parentNode))},Rp=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=ca(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Pp=function(e,t,n,o){var r=Rp(t,Array.isArray(e)?e:[e]);Kt[n]||(Kt[n]=new WeakMap);var s=Kt[n],i=[],c=new Set,l=new Set(r),u=function(p){!p||c.has(p)||(c.add(p),u(p.parentNode))};r.forEach(u);var d=function(p){!p||l.has(p)||Array.prototype.forEach.call(p.children,function(v){if(c.has(v))d(v);else try{var h=v.getAttribute(o),w=h!==null&&h!=="false",m=(Qe.get(v)||0)+1,g=(s.get(v)||0)+1;Qe.set(v,m),s.set(v,g),i.push(v),m===1&&w&&Ht.set(v,!0),g===1&&v.setAttribute(n,"true"),w||v.setAttribute(o,"true")}catch(x){console.error("aria-hidden: cannot operate on ",v,x)}})};return d(t),c.clear(),eo++,function(){i.forEach(function(p){var v=Qe.get(p)-1,h=s.get(p)-1;Qe.set(p,v),s.set(p,h),v||(Ht.has(p)||p.removeAttribute(o),Ht.delete(p)),h||p.removeAttribute(n)}),eo--,eo||(Qe=new WeakMap,Qe=new WeakMap,Ht=new WeakMap,Kt={})}},yn=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=Ep(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live]"))),Pp(o,r,n,"aria-hidden")):function(){return null}},Cn="Dialog",[la,ua]=X(Cn),[Tp,he]=la(Cn),da=e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:r,onOpenChange:s,modal:i=!0}=e,c=a.useRef(null),l=a.useRef(null),[u,d]=Q({prop:o,defaultProp:r??!1,onChange:s,caller:Cn});return f.jsx(Tp,{scope:t,triggerRef:c,contentRef:l,contentId:ee(),titleId:ee(),descriptionId:ee(),open:u,onOpenChange:d,onOpenToggle:a.useCallback(()=>d(p=>!p),[d]),modal:i,children:n})};da.displayName=Cn;var fa="DialogTrigger",pa=a.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=he(fa,n),s=L(t,r.triggerRef);return f.jsx(A.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Yo(r.open),...o,ref:s,onClick:E(e.onClick,r.onOpenToggle)})});pa.displayName=fa;var Go="DialogPortal",[Ap,va]=la(Go,{forceMount:void 0}),ma=e=>{const{__scopeDialog:t,forceMount:n,children:o,container:r}=e,s=he(Go,t);return f.jsx(Ap,{scope:t,forceMount:n,children:a.Children.map(o,i=>f.jsx(U,{present:n||s.open,children:f.jsx(Ge,{asChild:!0,container:r,children:i})}))})};ma.displayName=Go;var Jt="DialogOverlay",ha=a.forwardRef((e,t)=>{const n=va(Jt,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,s=he(Jt,e.__scopeDialog);return s.modal?f.jsx(U,{present:o||s.open,children:f.jsx(Ip,{...r,ref:t})}):null});ha.displayName=Jt;var _p=je("DialogOverlay.RemoveScroll"),Ip=a.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=he(Jt,n);return f.jsx(It,{as:_p,allowPinchZoom:!0,shards:[r.contentRef],children:f.jsx(A.div,{"data-state":Yo(r.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),Ke="DialogContent",ga=a.forwardRef((e,t)=>{const n=va(Ke,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,s=he(Ke,e.__scopeDialog);return f.jsx(U,{present:o||s.open,children:s.modal?f.jsx(Mp,{...r,ref:t}):f.jsx(Np,{...r,ref:t})})});ga.displayName=Ke;var Mp=a.forwardRef((e,t)=>{const n=he(Ke,e.__scopeDialog),o=a.useRef(null),r=L(t,n.contentRef,o);return a.useEffect(()=>{const s=o.current;if(s)return yn(s)},[]),f.jsx(wa,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:E(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:E(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0;(i.button===2||c)&&s.preventDefault()}),onFocusOutside:E(e.onFocusOutside,s=>s.preventDefault())})}),Np=a.forwardRef((e,t)=>{const n=he(Ke,e.__scopeDialog),o=a.useRef(!1),r=a.useRef(!1);return f.jsx(wa,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(o.current||n.triggerRef.current?.focus(),s.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const i=s.target;n.triggerRef.current?.contains(i)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&r.current&&s.preventDefault()}})}),wa=a.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:s,...i}=e,c=he(Ke,n),l=a.useRef(null),u=L(t,l);return xn(),f.jsxs(f.Fragment,{children:[f.jsx(_t,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:s,children:f.jsx(Me,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Yo(c.open),...i,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),f.jsxs(f.Fragment,{children:[f.jsx(Op,{titleId:c.titleId}),f.jsx(Lp,{contentRef:l,descriptionId:c.descriptionId})]})]})}),zo="DialogTitle",xa=a.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=he(zo,n);return f.jsx(A.h2,{id:r.titleId,...o,ref:t})});xa.displayName=zo;var ba="DialogDescription",ya=a.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=he(ba,n);return f.jsx(A.p,{id:r.descriptionId,...o,ref:t})});ya.displayName=ba;var Ca="DialogClose",Sa=a.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=he(Ca,n);return f.jsx(A.button,{type:"button",...o,ref:t,onClick:E(e.onClick,()=>r.onOpenChange(!1))})});Sa.displayName=Ca;function Yo(e){return e?"open":"closed"}var Ea="DialogTitleWarning",[Dp,Ra]=du(Ea,{contentName:Ke,titleName:zo,docsSlug:"dialog"}),Op=({titleId:e})=>{const t=Ra(Ea),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
42
43If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
44
45For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return a.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},jp="DialogDescriptionWarning",Lp=({contentRef:e,descriptionId:t})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ra(jp).contentName}}.`;return a.useEffect(()=>{const r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(o))},[o,e,t]),null},kp=da,Fp=pa,$p=ma,Vp=ha,Bp=ga,Hp=xa,Kp=ya,Pa=Sa,Ta="AlertDialog",[Wp,lw]=X(Ta,[ua]),Ne=ua(),Aa=e=>{const{__scopeAlertDialog:t,...n}=e,o=Ne(t);return f.jsx(kp,{...o,...n,modal:!0})};Aa.displayName=Ta;var Up="AlertDialogTrigger",_a=a.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,r=Ne(n);return f.jsx(Fp,{...r,...o,ref:t})});_a.displayName=Up;var Gp="AlertDialogPortal",Ia=e=>{const{__scopeAlertDialog:t,...n}=e,o=Ne(t);return f.jsx($p,{...o,...n})};Ia.displayName=Gp;var zp="AlertDialogOverlay",Ma=a.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,r=Ne(n);return f.jsx(Vp,{...r,...o,ref:t})});Ma.displayName=zp;var tt="AlertDialogContent",[Yp,Xp]=Wp(tt),qp=as("AlertDialogContent"),Na=a.forwardRef((e,t)=>
45{const{__scopeAlertDialog:n,children:o,...r}=e,s=Ne(n),i=a.useRef(null),c=L(t,i),l=a.useRef(null);return f.jsx(Dp,{contentName:tt,titleName:Da,docsSlug:"alert-dialog",children:f.jsx(Yp,{scope:n,cancelRef:l,children:f.jsxs(Bp,{role:"alertdialog",...s,...r,ref:c,onOpenAutoFocus:E(r.onOpenAutoFocus,u=>{u.preventDefault(),l.current?.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[f.jsx(qp,{children:o}),f.jsx(Qp,{contentRef:i})]})})})});Na.displayName=tt;var Da="AlertDialogTitle",Oa=a.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,r=Ne(n);return f.jsx(Hp,{...r,...o,ref:t})});Oa.displayName=Da;var ja="AlertDialogDescription",La=a.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,r=Ne(n);return f.jsx(Kp,{...r,...o,ref:t})});La.displayName=ja;var Zp="AlertDialogAction",ka=a.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,r=Ne(n);return f.jsx(Pa,{...r,...o,ref:t})});ka.displayName=Zp;var Fa="AlertDialogCancel",$a=a.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,{cancelRef:r}=Xp(Fa,n),s=Ne(n),i=L(t,r);return f.jsx(Pa,{...s,...o,ref:i})});$a.displayName=Fa;var Qp=({contentRef:e})=>{const t=`\`${tt}\` requires a description for the component to be accessible for screen reader users.
46
47You can add a description to the \`${tt}\` by passing a \`${ja}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
48
49Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${tt}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
50
51For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return a.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},uw=Aa,dw=_a,fw=Ia,pw=Ma,vw=Na,mw=ka,hw=$a,gw=Oa,ww=La;function wt(e,[t,n]){return Math.min(n,Math.max(t,e))}var Jp=a.createContext(void 0);function Ee(e){const t=a.useContext(Jp);return e||t||"ltr"}function Mt(e){const t=a.useRef({value:e,previous:e});return a.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var ev=[" ","Enter","ArrowUp","ArrowDown"],tv=[" ","Enter"],We="Select",[Sn,En,nv]=Ie(We),[ut,xw]=X(We,[nv,Se]),Rn=Se(),[ov,Fe]=ut(We),[rv,sv]=ut(We),Va=e=>{const{__scopeSelect:t,children:n,open:o,defaultOpen:r,onOpenChange:s,value:i,defaultValue:c,onValueChange:l,dir:u,name:d,autoComplete:p,disabled:v,required:h,form:w}=e,m=Rn(t),[g,x]=a.useState(null),[b,y]=a.useState(null),[C,S]=a.useState(!1),P=Ee(u),[R,T]=Q({prop:o,defaultProp:r??!1,onChange:s,caller:We}),[_,N]=Q({prop:i,defaultProp:c,onChange:l,caller:We}),D=a.useRef(null),F=g?w||!!g.closest("form"):!0,[B,I]=a.useState(new Set),V=Array.from(B).map(O=>O.props.value).join(";");return f.jsx(Rt,{...m,children:f.jsxs(ov,{required:h,scope:t,trigger:g,onTriggerChange:x,valueNode:b,onValueNodeChange:y,valueNodeHasChildren:C,onValueNodeHasChildrenChange:S,contentId:ee(),value:_,onValueChange:N,open:R,onOpenChange:T,dir:P,triggerPointerDownPosRef:D,disabled:v,children:[f.jsx(Sn.Provider,{scope:t,children:f.jsx(rv,{scope:e.__scopeSelect,onNativeOptionAdd:a.useCallback(O=>{I($=>new Set($).add(O))},[]),onNativeOptionRemove:a.useCallback(O=>{I($=>{const j=new Set($);return j.delete(O),j})},[]),children:n})}),F?f.jsxs(ui,{"aria-hidden":!0,required:h,tabIndex:-1,name:d,autoComplete:p,value:_,onChange:O=>N(O.target.value),disabled:v,form:w,children:[_===void 0?f.jsx("option",{value:""}):null,Array.from(B)]},V):null]})})};Va.displayName=We;var Ba="SelectTrigger",Ha=a.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:o=!1,...r}=e,s=Rn(n),i=Fe(Ba,n),c=i.disabled||o,l=L(t,i.onTriggerChange),u=En(n),d=a.useRef("touch"),[p,v,h]=fi(m=>{const g=u().filter(y=>!y.disabled),x=g.find(y=>y.value===i.value),b=pi(g,m,x);b!==void 0&&i.onValueChange(b.value)}),w=m=>{c||(i.onOpenChange(!0),h()),m&&(i.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return f.jsx(lt,{asChild:!0,...s,children:f.jsx(A.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":di(i.value)?"":void 0,...r,ref:l,onClick:E(r.onClick,m=>
vendor: 11,241 bytes, line 51
51{m.currentTarget.focus(),d.current!=="mouse"&&w(m)}),onPointerDown:E(r.onPointerDown,m=>{d.current=m.pointerType;const g=m.target;g.hasPointerCapture(m.pointerId)&&g.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(w(m),m.preventDefault())}),onKeyDown:E(r.onKeyDown,m=>{const g=p.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&v(m.key),!(g&&m.key===" ")&&ev.includes(m.key)&&(w(),m.preventDefault())})})})});Ha.displayName=Ba;var Ka="SelectValue",Wa=a.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,children:s,placeholder:i="",...c}=e,l=Fe(Ka,n),{onValueNodeHasChildrenChange:u}=l,d=s!==void 0,p=L(t,l.onValueNodeChange);return z(()=>{u(d)},[u,d]),f.jsx(A.span,{...c,ref:p,style:{pointerEvents:"none"},children:di(l.value)?f.jsx(f.Fragment,{children:i}):s})});Wa.displayName=Ka;var av="SelectIcon",Ua=a.forwardRef((e,t)=>{const{__scopeSelect:n,children:o,...r}=e;return f.jsx(A.span,{"aria-hidden":!0,...r,ref:t,children:o||"▼"})});Ua.displayName=av;var iv="SelectPortal",Ga=e=>f.jsx(Ge,{asChild:!0,...e});Ga.displayName=iv;var Ue="SelectContent",za=a.forwardRef((e,t)=>{const n=Fe(Ue,e.__scopeSelect),[o,r]=a.useState();if(z(()=>{r(new DocumentFragment)},[]),!n.open){const s=o;return s?yt.createPortal(f.jsx(Ya,{scope:e.__scopeSelect,children:f.jsx(Sn.Slot,{scope:e.__scopeSelect,children:f.jsx("div",{children:e.children})})}),s):null}return f.jsx(Xa,{...e,ref:t})});za.displayName=Ue;var pe=10,[Ya,$e]=ut(Ue),cv="SelectContentImpl",lv=je("SelectContent.RemoveScroll"),Xa=a.forwardRef((e,t)=>{const{__scopeSelect:n,position:o="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:s,onPointerDownOutside:i,side:c,sideOffset:l,align:u,alignOffset:d,arrowPadding:p,collisionBoundary:v,collisionPadding:h,sticky:w,hideWhenDetached:m,avoidCollisions:g,...x}=e,b=Fe(Ue,n),[y,C]=a.useState(null),[S,P]=a.useState(null),R=L(t,k=>C(k)),[T,_]=a.useState(null),[N,D]=a.useState(null),F=En(n),[B,I]=a.useState(!1),V=a.useRef(!1);a.useEffect(()=>{if(y)return yn(y)},[y]),xn();const O=a.useCallback(k=>{const[K,...oe]=F().map(q=>q.ref.current),[W]=oe.slice(-1),G=document.activeElement;for(const q of k)if(q===G||(q?.scrollIntoView({block:"nearest"}),q===K&&S&&(S.scrollTop=0),q===W&&S&&(S.scrollTop=S.scrollHeight),q?.focus(),document.activeElement!==G))return},[F,S]),$=a.useCallback(()=>O([T,y]),[O,T,y]);a.useEffect(()=>{B&&$()},[B,$]);const{onOpenChange:j,triggerPointerDownPosRef:M}=b;a.useEffect(()=>{if(y){let k={x:0,y:0};const K=W=>{k={x:Math.abs(Math.round(W.pageX)-(M.current?.x??0)),y:Math.abs(Math.round(W.pageY)-(M.current?.y??0))}},oe=W=>{k.x<=10&&k.y<=10?W.preventDefault():y.contains(W.target)||j(!1),document.removeEventListener("pointermove",K),M.current=null};return M.current!==null&&(document.addEventListener("pointermove",K),document.addEventListener("pointerup",oe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",K),document.removeEventListener("pointerup",oe,{capture:!0})}}},[y,j,M]),a.useEffect(()=>{const k=()=>j(!1);return window.addEventListener("blur",k),window.addEventListener("resize",k),()=>{window.removeEventListener("blur",k),window.removeEventListener("resize",k)}},[j]);const[Y,J]=fi(k=>{const K=F().filter(G=>!G.disabled),oe=K.find(G=>G.ref.current===document.activeElement),W=pi(K,k,oe);W&&setTimeout(()=>W.ref.current.focus())}),te=a.useCallback((k,K,oe)=>{const W=!V.current&&!oe;(b.value!==void 0&&b.value===K||W)&&(_(k),W&&(V.current=!0))},[b.value]),se=a.useCallback(()=>y?.focus(),[y]),ne=a.useCallback((k,K,oe)=>{const W=!V.current&&!oe;(b.value!==void 0&&b.value===K||W)&&D(k)},[b.value]),Pe=o==="popper"?mo:qa,ae=Pe===mo?{side:c,sideOffset:l,align:u,alignOffset:d,arrowPadding:p,collisionBoundary:v,collisionPadding:h,sticky:w,hideWhenDetached:m,avoidCollisions:g}:{};return f.jsx(Ya,{scope:n,content:y,viewport:S,onViewportChange:P,itemRefCallback:te,selectedItem:T,onItemLeave:se,itemTextRefCallback:ne,focusSelectedItem:$,selectedItemText:N,position:o,isPositioned:B,searchRef:Y,children:f.jsx(It,{as:lv,allowPinchZoom:!0,children:f.jsx(_t,{asChild:!0,trapped:b.open,onMountAutoFocus:k=>{k.preventDefault()},onUnmountAutoFocus:E(r,k=>{b.trigger?.focus({preventScroll:!0}),k.preventDefault()}),children:f.jsx(Me,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:k=>k.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:f.jsx(Pe,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:k=>k.preventDefault(),...x,...ae,onPlaced:()=>I(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:E(x.onKeyDown,k=>{const K=k.ctrlKey||k.altKey||k.metaKey;if(k.key==="Tab"&&k.preventDefault(),!K&&k.key.length===1&&J(k.key),["ArrowUp","ArrowDown","Home","End"].includes(k.key)){let W=F().filter(G=>!G.disabled).map(G=>G.ref.current);if(["ArrowUp","End"].includes(k.key)&&(W=W.slice().reverse()),["ArrowUp","ArrowDown"].includes(k.key)){const G=k.target,q=W.indexOf(G);W=W.slice(q+1)}setTimeout(()=>O(W)),k.preventDefault()}})})})})})})});Xa.displayName=cv;var uv="SelectItemAlignedPosition",qa=a.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:o,...r}=e,s=Fe(Ue,n),i=$e(Ue,n),[c,l]=a.useState(null),[u,d]=a.useState(null),p=L(t,R=>d(R)),v=En(n),h=a.useRef(!1),w=a.useRef(!0),{viewport:m,selectedItem:g,selectedItemText:x,focusSelectedItem:b}=i,y=a.useCallback(()=>{if(s.trigger&&s.valueNode&&c&&u&&m&&g&&x){const R=s.trigger.getBoundingClientRect(),T=u.getBoundingClientRect(),_=s.valueNode.getBoundingClientRect(),N=x.getBoundingClientRect();if(s.dir!=="rtl"){const G=N.left-T.left,q=_.left-G,le=R.left-q,Be=R.width+le,Hn=Math.max(Be,T.width),Kn=window.innerWidth-pe,Wn=wt(q,[pe,Math.max(pe,Kn-Hn)]);c.style.minWidth=Be+"px",c.style.left=Wn+"px"}else{const G=T.right-N.right,q=window.innerWidth-_.right-G,le=window.innerWidth-R.right-q,Be=R.width+le,Hn=Math.max(Be,T.width),Kn=window.innerWidth-pe,Wn=wt(q,[pe,Math.max(pe,Kn-Hn)]);c.style.minWidth=Be+"px",c.style.right=Wn+"px"}const D=v(),F=window.innerHeight-pe*2,B=m.scrollHeight,I=window.getComputedStyle(u),V=parseInt(I.borderTopWidth,10),O=parseInt(I.paddingTop,10),$=parseInt(I.borderBottomWidth,10),j=parseInt(I.paddingBottom,10),M=V+O+B+j+$,Y=Math.min(g.offsetHeight*5,M),J=window.getComputedStyle(m),te=parseInt(J.paddingTop,10),se=parseInt(J.paddingBottom,10),ne=R.top+R.height/2-pe,Pe=F-ne,ae=g.offsetHeight/2,k=g.offsetTop+ae,K=V+O+k,oe=M-K;if(K<=ne){const G=D.length>0&&g===D[D.length-1].ref.current;c.style.bottom="0px";const q=u.clientHeight-m.offsetTop-m.offsetHeight,le=Math.max(Pe,ae+(G?se:0)+q+$),Be=K+le;c.style.height=Be+"px"}else{const G=D.length>0&&g===D[0].ref.current;c.style.top="0px";const le=Math.max(ne,V+m.offsetTop+(G?te:0)+ae)+oe;c.style.height=le+"px",m.scrollTop=K-ne+m.offsetTop}c.style.margin=`${pe}px 0`,c.style.minHeight=Y+"px",c.style.maxHeight=F+"px",o?.(),requestAnimationFrame(()=>h.current=!0)}},[v,s.trigger,s.valueNode,c,u,m,g,x,s.dir,o]);z(()=>y(),[y]);const[C,S]=a.useState();z(()=>{u&&S(window.getComputedStyle(u).zIndex)},[u]);const P=a.useCallback(R=>{R&&w.current===!0&&(y(),b?.(),w.current=!1)},[y,b]);return f.jsx(fv,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:h,onScrollButtonChange:P,children:f.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:f.jsx(A.div,{...r,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});qa.displayName=uv;var dv="SelectPopperPosition",mo=a.forwardRef((e,t)=>{const{__scopeSelect:n,align:o="start",collisionPadding:r=pe,...s}=e,i=Rn(n);return f.jsx(Pt,{...i,...s,ref:t,align:o,collisionPadding:r,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});mo.displayName=dv;var[fv,Xo]=ut(Ue,{}),ho="SelectViewport",Za=a.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:o,...r}=e,s=$e(ho,n),i=Xo(ho,n),c=L(t,s.onViewportChange),l=a.useRef(0);return f.jsxs(f.Fragment,{children:[f.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),f.jsx(Sn.Slot,{scope:n,children:f.jsx(A.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:E(r.onScroll,u=>{const d=u.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:v}=i;if(v?.current&&p){const h=Math.abs(l.current-d.scrollTop);if(h>0){const w=window.innerHeight-pe*2,m=parseFloat(p.style.minHeight),g=parseFloat(p.style.height),x=Math.max(m,g);if(x<w){const b=x+h,y=Math.min(w,b),C=b-y;p.style.height=y+"px",p.style.bottom==="0px"&&(d.scrollTop=C>0?C:0,p.style.justifyContent="flex-end")}}}l.current=d.scrollTop})})})]})});Za.displayName=ho;var Qa="SelectGroup",[pv,vv]=ut(Qa),mv=a.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=ee();return f.jsx(pv,{scope:n,id:r,children:f.jsx(A.div,{role:"group","aria-labelledby":r,...o,ref:t})})});mv.displayName=Qa;var Ja="SelectLabel",ei=a.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=vv(Ja,n);return f.jsx(A.div,{id:r.id,...o,ref:t})});ei.displayName=Ja;var en="SelectItem",[hv,ti]=ut(en),ni=a.forwardRef((e,t)=>{const{__scopeSelect:n,value:o,disabled:r=!1,textValue:s,...i}=e,c=Fe(en,n),l=$e(en,n),u=c.value===o,[d,p]=a.useState(s??""),[v,h]=a.useState(!1),w=L(t,b=>l.itemRefCallback?.(b,o,r)),m=ee(),g=a.useRef("touch"),x=()=>{r||(c.onValueChange(o),c.onOpenChange(!1))};if(o==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return f.jsx(hv,{scope:n,value:o,disabled:r,textId:m,isSelected:u,onItemTextChange:a.useCallback(b=>{p(y=>y||(b?.textContent??"").trim())},[]),children:f.jsx(Sn.ItemSlot,{scope:n,value:o,disabled:r,textValue:d,children:f.jsx(A.div,{role:"option","aria-labelledby":m,"data-highlighted":v?"":void 0,"aria-selected":u&&v,"data-state":u?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...i,ref:w,onFocus:E(i.onFocus,()=>h(!0)),onBlur:E(i.onBlur,()=>h(!1)),onClick:E(i.onClick,()=>{g.current!=="mouse"&&x()}),onPointerUp:E(i.onPointerUp,()=>{g.current==="mouse"&&x()}),onPointerDown:E(i.onPointerDown,b=>{g.current=b.pointerType}),onPointerMove:E(i.onPointerMove,b=>{g.current=b.pointerType,r?l.onItemLeave?.():g.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:E(i.onPointerLeave,b=>{b.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:E(i.onKeyDown,b=>{l.searchRef?.current!==""&&b.key===" "||(tv.includes(b.key)&&x(),b.key===" "&&b.preventDefault())})})})})});ni.displayName=en;var ft="SelectItemText",oi=a.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,...s}
vendor: 4,263 bytes, line 51
51=e,i=Fe(ft,n),c=$e(ft,n),l=ti(ft,n),u=sv(ft,n),[d,p]=a.useState(null),v=L(t,x=>p(x),l.onItemTextChange,x=>c.itemTextRefCallback?.(x,l.value,l.disabled)),h=d?.textContent,w=a.useMemo(()=>f.jsx("option",{value:l.value,disabled:l.disabled,children:h},l.value),[l.disabled,l.value,h]),{onNativeOptionAdd:m,onNativeOptionRemove:g}=u;return z(()=>(m(w),()=>g(w)),[m,g,w]),f.jsxs(f.Fragment,{children:[f.jsx(A.span,{id:l.textId,...s,ref:v}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?yt.createPortal(s.children,i.valueNode):null]})});oi.displayName=ft;var ri="SelectItemIndicator",si=a.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return ti(ri,n).isSelected?f.jsx(A.span,{"aria-hidden":!0,...o,ref:t}):null});si.displayName=ri;var go="SelectScrollUpButton",ai=a.forwardRef((e,t)=>{const n=$e(go,e.__scopeSelect),o=Xo(go,e.__scopeSelect),[r,s]=a.useState(!1),i=L(t,o.onScrollButtonChange);return z(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=l.scrollTop>0;s(u)};const l=n.viewport;return c(),l.addEventListener("scroll",c),()=>l.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),r?f.jsx(ci,{...e,ref:i,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=n;c&&l&&(c.scrollTop=c.scrollTop-l.offsetHeight)}}):null});ai.displayName=go;var wo="SelectScrollDownButton",ii=a.forwardRef((e,t)=>{const n=$e(wo,e.__scopeSelect),o=Xo(wo,e.__scopeSelect),[r,s]=a.useState(!1),i=L(t,o.onScrollButtonChange);return z(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=l.scrollHeight-l.clientHeight,d=Math.ceil(l.scrollTop)<u;s(d)};const l=n.viewport;return c(),l.addEventListener("scroll",c),()=>l.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),r?f.jsx(ci,{...e,ref:i,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=n;c&&l&&(c.scrollTop=c.scrollTop+l.offsetHeight)}}):null});ii.displayName=wo;var ci=a.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:o,...r}=e,s=$e("SelectScrollButton",n),i=a.useRef(null),c=En(n),l=a.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return a.useEffect(()=>()=>l(),[l]),z(()=>{c().find(d=>d.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[c]),f.jsx(A.div,{"aria-hidden":!0,...r,ref:t,style:{flexShrink:0,...r.style},onPointerDown:E(r.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(o,50))}),onPointerMove:E(r.onPointerMove,()=>{s.onItemLeave?.(),i.current===null&&(i.current=window.setInterval(o,50))}),onPointerLeave:E(r.onPointerLeave,()=>{l()})})}),gv="SelectSeparator",li=a.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return f.jsx(A.div,{"aria-hidden":!0,...o,ref:t})});li.displayName=gv;var xo="SelectArrow",wv=a.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=Rn(n),s=Fe(xo,n),i=$e(xo,n);return s.open&&i.position==="popper"?f.jsx(Tt,{...r,...o,ref:t}):null});wv.displayName=xo;var xv="SelectBubbleInput",ui=a.forwardRef(({__scopeSelect:e,value:t,...n},o)=>{const r=a.useRef(null),s=L(o,r),i=Mt(t);return a.useEffect(()=>{const c=r.current;if(!c)return;const l=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==t&&d){const p=new Event("change",{bubbles:!0});d.call(c,t),c.dispatchEvent(p)}},[i,t]),f.jsx(A.select,{...n,style:{...us,...n.style},ref:s,defaultValue:t})});ui.displayName=xv;function di(e){return e===""||e===void 0}function fi(e){const t=H(e),n=a.useRef(""),o=a.useRef(0),r=a.useCallback(i=>{const c=n.current+i;t(c),function l(u){n.current=u,window.clearTimeout(o.current),u!==""&&(o.current=window.setTimeout(()=>l(""),1e3))}(c)},[t]),s=a.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return a.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,r,s]}function pi(e,t,n){const r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=bv(e,Math.max(s,0));r.length===1&&(i=i.filter(u=>u!==n));const l=i.find(u=>u.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function bv(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var bw=Va,yw=Ha,Cw=Wa,Sw=Ua,Ew=Ga,Rw=za,Pw=Za,Tw=ei,Aw=ni,_w=oi,Iw=si,Mw=ai,Nw=ii,Dw=li,ze="NavigationMenu",[qo,vi,yv]=Ie(ze),[bo,Cv,Sv]=Ie(ze),[Zo,Ow]=X(ze,[yv,Sv]),[Ev,de]=Zo(ze),[Rv,Pv]=Zo(ze),mi=a.forwardRef((e,t)=>
vendor: 5,165 bytes, line 51
51{const{__scopeNavigationMenu:n,value:o,onValueChange:r,defaultValue:s,delayDuration:i=200,skipDelayDuration:c=300,orientation:l="horizontal",dir:u,...d}=e,[p,v]=a.useState(null),h=L(t,_=>v(_)),w=Ee(u),m=a.useRef(0),g=a.useRef(0),x=a.useRef(0),[b,y]=a.useState(!0),[C,S]=Q({prop:o,onChange:_=>{const N=_!=="",D=c>0;N?(window.clearTimeout(x.current),D&&y(!1)):(window.clearTimeout(x.current),x.current=window.setTimeout(()=>y(!0),c)),r?.(_)},defaultProp:s??"",caller:ze}),P=a.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>S(""),150)},[S]),R=a.useCallback(_=>{window.clearTimeout(g.current),S(_)},[S]),T=a.useCallback(_=>{C===_?window.clearTimeout(g.current):m.current=window.setTimeout(()=>{window.clearTimeout(g.current),S(_)},i)},[C,S,i]);return a.useEffect(()=>()=>{window.clearTimeout(m.current),window.clearTimeout(g.current),window.clearTimeout(x.current)},[]),f.jsx(hi,{scope:n,isRootMenu:!0,value:C,dir:w,orientation:l,rootNavigationMenu:p,onTriggerEnter:_=>{window.clearTimeout(m.current),b?T(_):R(_)},onTriggerLeave:()=>{window.clearTimeout(m.current),P()},onContentEnter:()=>window.clearTimeout(g.current),onContentLeave:P,onItemSelect:_=>{S(N=>N===_?"":_)},onItemDismiss:()=>S(""),children:f.jsx(A.nav,{"aria-label":"Main","data-orientation":l,dir:w,...d,ref:h})})});mi.displayName=ze;var yo="NavigationMenuSub",Tv=a.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:o,onValueChange:r,defaultValue:s,orientation:i="horizontal",...c}=e,l=de(yo,n),[u,d]=Q({prop:o,onChange:r,defaultProp:s??"",caller:yo});return f.jsx(hi,{scope:n,isRootMenu:!1,value:u,dir:l.dir,orientation:i,rootNavigationMenu:l.rootNavigationMenu,onTriggerEnter:p=>d(p),onItemSelect:p=>d(p),onItemDismiss:()=>d(""),children:f.jsx(A.div,{"data-orientation":i,...c,ref:t})})});Tv.displayName=yo;var hi=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:o,dir:r,orientation:s,children:i,value:c,onItemSelect:l,onItemDismiss:u,onTriggerEnter:d,onTriggerLeave:p,onContentEnter:v,onContentLeave:h}=e,[w,m]=a.useState(null),[g,x]=a.useState(new Map),[b,y]=a.useState(null);return f.jsx(Ev,{scope:t,isRootMenu:n,rootNavigationMenu:o,value:c,previousValue:Mt(c),baseId:ee(),dir:r,orientation:s,viewport:w,onViewportChange:m,indicatorTrack:b,onIndicatorTrackChange:y,onTriggerEnter:H(d),onTriggerLeave:H(p),onContentEnter:H(v),onContentLeave:H(h),onItemSelect:H(l),onItemDismiss:H(u),onViewportContentChange:a.useCallback((C,S)=>{x(P=>(P.set(C,S),new Map(P)))},[]),onViewportContentRemove:a.useCallback(C=>{x(S=>S.has(C)?(S.delete(C),new Map(S)):S)},[]),children:f.jsx(qo.Provider,{scope:t,children:f.jsx(Rv,{scope:t,items:g,children:i})})})},gi="NavigationMenuList",wi=a.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...o}=e,r=de(gi,n),s=f.jsx(A.ul,{"data-orientation":r.orientation,...o,ref:t});return f.jsx(A.div,{style:{position:"relative"},ref:r.onIndicatorTrackChange,children:f.jsx(qo.Slot,{scope:n,children:r.isRootMenu?f.jsx(Ti,{asChild:!0,children:s}):s})})});wi.displayName=gi;var xi="NavigationMenuItem",[Av,bi]=Zo(xi),yi=a.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:o,...r}=e,s=ee(),i=o||s||"LEGACY_REACT_AUTO_VALUE",c=a.useRef(null),l=a.useRef(null),u=a.useRef(null),d=a.useRef(()=>{}),p=a.useRef(!1),v=a.useCallback((w="start")=>{if(c.current){d.current();const m=So(c.current);m.length&&er(w==="start"?m:m.reverse())}},[]),h=a.useCallback(()=>{if(c.current){const w=So(c.current);w.length&&(d.current=Lv(w))}},[]);return f.jsx(Av,{scope:n,value:i,triggerRef:l,contentRef:c,focusProxyRef:u,wasEscapeCloseRef:p,onEntryKeyDown:v,onFocusProxyEnter:v,onRootContentClose:h,onContentFocusOutside:h,children:f.jsx(A.li,{...r,ref:t})})});yi.displayName=xi;var Co="NavigationMenuTrigger",Ci=a.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:o,...r}=e,s=de(Co,e.__scopeNavigationMenu),i=bi(Co,e.__scopeNavigationMenu),c=a.useRef(null),l=L(c,i.triggerRef,t),u=_i(s.baseId,i.value),d=Ii(s.baseId,i.value),p=a.useRef(!1),v=a.useRef(!1),h=i.value===s.value;return f.jsxs(f.Fragment,{children:[f.jsx(qo.ItemSlot,{scope:n,value:i.value,children:f.jsx(Ai,{asChild:!0,children:f.jsx(A.button,{id:u,disabled:o,"data-disabled":o?"":void 0,"data-state":tr(h),"aria-expanded":h,"aria-controls":d,...r,ref:l,onPointerEnter:E(e.onPointerEnter,()=>{v.current=!1,i.wasEscapeCloseRef.current=!1}),onPointerMove:E(e.onPointerMove,tn(()=>{o||v.current||i.wasEscapeCloseRef.current||p.current||(s.onTriggerEnter(i.value),p.current=!0)})),onPointerLeave:E(e.onPointerLeave,tn(()=>{o||(s.onTriggerLeave(),p.current=!1)})),onClick:E(e.onClick,()=>{s.onItemSelect(i.value),v.current=h}),onKeyDown:E(e.onKeyDown,w=>{const g={horizontal:"ArrowDown",vertical:s.dir==="rtl"?"ArrowLeft":"ArrowRight"}[s.orientation];h&&w.key===g&&(i.onEntryKeyDown(),w.preventDefault())})})})}),h&&f.jsxs(f.Fragment,{children:[f.jsx(ds,{"aria-hidden":!0,tabIndex:0,ref:i.focusProxyRef,onFocus:w=>{const m=i.contentRef.current,g=w.relatedTarget,x=g===c.current,b=m?.contains(g);(x||!b)&&i.onFocusProxyEnter(x?"start":"end")}}),s.viewport&&f.jsx("span",{"aria-owns":d})]})]})});Ci.displayName=Co;var _v="NavigationMenuLink",qr="navigationMenu.linkSelect",Iv=a.forwardRef((e,t)=>
51{const{__scopeNavigationMenu:n,active:o,onSelect:r,...s}=e;return f.jsx(Ai,{asChild:!0,children:f.jsx(A.a,{"data-active":o?"":void 0,"aria-current":o?"page":void 0,...s,ref:t,onClick:E(e.onClick,i=>{const c=i.target,l=new CustomEvent(qr,{bubbles:!0,cancelable:!0});if(c.addEventListener(qr,u=>r?.(u),{once:!0}),vt(c,l),!l.defaultPrevented&&!i.metaKey){const u=new CustomEvent(Yt,{bubbles:!0,cancelable:!0});vt(c,u)}},{checkForDefaultPrevented:!1})})})});Iv.displayName=_v;var Qo="NavigationMenuIndicator",Si=a.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=de(Qo,e.__scopeNavigationMenu),s=!!r.value;return r.indicatorTrack?os.createPortal(f.jsx(U,{present:n||s,children:f.jsx(Mv,{...o,ref:t})}),r.indicatorTrack):null});Si.displayName=Qo;var Mv=a.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...o}=e,r=de(Qo,n),s=vi(n),[i,c]=a.useState(null),[l,u]=a.useState(null),d=r.orientation==="horizontal",p=!!r.value;a.useEffect(()=>{const w=s().find(m=>m.value===r.value)?.ref.current;w&&c(w)},[s,r.value]);const v=()=>{i&&u({size:d?i.offsetWidth:i.offsetHeight,offset:d?i.offsetLeft:i.offsetTop})};return Eo(i,v),Eo(r.indicatorTrack,v),l?f.jsx(A.div,{"aria-hidden":!0,"data-state":p?"visible":"hidden","data-orientation":r.orientation,...o,ref:t,style:{position:"absolute",...d?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...o.style}}):null}),rt="NavigationMenuContent",Ei=a.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=de(rt,e.__scopeNavigationMenu),s=bi(rt,e.__scopeNavigationMenu),i=L(s.contentRef,t),c=s.value===r.value,l={value:s.value,triggerRef:s.triggerRef,focusProxyRef:s.focusProxyRef,wasEscapeCloseRef:s.wasEscapeCloseRef,onContentFocusOutside:s.onContentFocusOutside,onRootContentClose:s.onRootContentClose,...o};return r.viewport?f.jsx(Nv,{forceMount:n,...l,ref:i}):f.jsx(U,{present:n||c,children:f.jsx(Ri,{"data-state":tr(c),...l,ref:i,onPointerEnter:E(e.onPointerEnter,r.onContentEnter),onPointerLeave:E(e.onPointerLeave,tn(r.onContentLeave)),style:{pointerEvents:!c&&r.isRootMenu?"none":void 0,...l.style}})})});Ei.displayName=rt;var Nv=a.forwardRef((e,t)=>{const n=de(rt,e.__scopeNavigationMenu),{onViewportContentChange:o,onViewportContentRemove:r}=n;return z(()=>{o(e.value,{ref:t,...e})},[e,t,o]),z(()=>()=>r(e.value),[e.value,r]),null}),Yt="navigationMenu.rootContentDismiss",Ri=a.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:o,triggerRef:r,focusProxyRef:s,wasEscapeCloseRef:i,onRootContentClose:c,onContentFocusOutside:l,...u}=e,d=de(rt,n),p=a.useRef(null),v=L(p,t),h=_i(d.baseId,o),w=Ii(d.baseId,o),m=vi(n),g=a.useRef(null),{onItemDismiss:x}=d;a.useEffect(()=>{const y=p.current;if(d.isRootMenu&&y){const C=()=>{x(),c(),y.contains(document.activeElement)&&r.current?.focus()};return y.addEventListener(Yt,C),()=>y.removeEventListener(Yt,C)}},[d.isRootMenu,e.value,r,x,c]);const b=a.useMemo(()=>{const C=m().map(N=>N.value);d.dir==="rtl"&&C.reverse();const S=C.indexOf(d.value),P=C.indexOf(d.previousValue),R=o===d.value,T=P===C.indexOf(o);if(!R&&!T)return g.current;const _=(()=>{if(S!==P){if(R&&P!==-1)return S>P?"from-end":"from-start";if(T&&S!==-1)return S>P?"to-start":"to-end"}return null})();return g.current=_,_},[d.previousValue,d.value,d.dir,m,o]);return f.jsx(Ti,{asChild:!0,children:f.jsx(Me,{id:w,"aria-labelledby":h,"data-motion":b,"data-orientation":d.orientation,...u,ref:v,disableOutsidePointerEvents:!1,onDismiss:()=>{const y=new Event(Yt,{bubbles:!0,cancelable:!0});p.current?.dispatchEvent(y)},onFocusOutside:E(e.onFocusOutside,y=>{l();const C=y.target;d.rootNavigationMenu?.contains(C)&&y.preventDefault()}),onPointerDownOutside:E(e.onPointerDownOutside,y=>{const C=y.target,S=m().some(R=>R.ref.current?.contains(C)),P=d.isRootMenu&&d.viewport?.contains(C);(S||P||!d.isRootMenu)&&y.preventDefault()}),onKeyDown:E(e.onKeyDown,y=>{const C=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!C){const P=So(y.currentTarget),R=document.activeElement,T=P.findIndex(D=>D===R),N=y.shiftKey?P.slice(0,T).reverse():P.slice(T+1,P.length);er(N)?y.preventDefault():s.current?.focus()}}),onEscapeKeyDown:E(e.onEscapeKeyDown,y=>{i.current=!0})})})}),Jo="NavigationMenuViewport",Pi=a.forwardRef((e,t)=>
51{const{forceMount:n,...o}=e,s=!!de(Jo,e.__scopeNavigationMenu).value;return f.jsx(U,{present:n||s,children:f.jsx(Dv,{...o,ref:t})})});Pi.displayName=Jo;var Dv=a.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:o,...r}=e,s=de(Jo,n),i=L(t,s.onViewportChange),c=Pv(rt,e.__scopeNavigationMenu),[l,u]=a.useState(null),[d,p]=a.useState(null),v=l?l?.width+"px":void 0,h=l?l?.height+"px":void 0,w=!!s.value,m=w?s.value:s.previousValue;return Eo(d,()=>{d&&u({width:d.offsetWidth,height:d.offsetHeight})}),f.jsx(A.div,{"data-state":tr(w),"data-orientation":s.orientation,...r,ref:i,style:{pointerEvents:!w&&s.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":v,"--radix-navigation-menu-viewport-height":h,...r.style},onPointerEnter:E(e.onPointerEnter,s.onContentEnter),onPointerLeave:E(e.onPointerLeave,tn(s.onContentLeave)),children:Array.from(c.items).map(([x,{ref:b,forceMount:y,...C}])=>{const S=m===x;return f.jsx(U,{present:y||S,children:f.jsx(Ri,{...C,ref:Ct(b,P=>{S&&P&&p(P)})})},x)})})}),Ov="FocusGroup",Ti=a.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...o}=e,r=de(Ov,n);return f.jsx(bo.Provider,{scope:n,children:f.jsx(bo.Slot,{scope:n,children:f.jsx(A.div,{dir:r.dir,...o,ref:t})})})}),Zr=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],jv="FocusGroupItem",Ai=a.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...o}=e,r=Cv(n),s=de(jv,n);return f.jsx(bo.ItemSlot,{scope:n,children:f.jsx(A.button,{...o,ref:t,onKeyDown:E(e.onKeyDown,i=>
51{if(["Home","End",...Zr].includes(i.key)){let l=r().map(p=>p.ref.current);if([s.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(i.key)&&l.reverse(),Zr.includes(i.key)){const p=l.indexOf(i.currentTarget);l=l.slice(p+1)}setTimeout(()=>er(l)),i.preventDefault()}})})})});function So(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 er(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function Lv(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function Eo(e,t){const n=H(t);z(()=>{let o=0;if(e){const r=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(o),r.unobserve(e)}}},[e,n])}function tr(e){return e?"open":"closed"}function _i(e,t){return`${e}-trigger-${t}`}function Ii(e,t){return`${e}-content-${t}`}function tn(e){return t=>t.pointerType==="mouse"?e(t):void 0}var jw=mi,Lw=wi,kw=yi,Fw=Ci,$w=Si,Vw=Ei,Bw=Pi,kv="Separator",Qr="horizontal",Fv=["horizontal","vertical"],Mi=a.forwardRef((e,t)=>{const{decorative:n,orientation:o=Qr,...r}=e,s=$v(o)?o:Qr,c=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return f.jsx(A.div,{"data-orientation":s,...c,...r,ref:t})});Mi.displayName=kv;function $v(e){return Fv.includes(e)}var Hw=Mi,Vv="Label",Ni=a.forwardRef((e,t)=>f.jsx(A.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Ni.displayName=Vv;var Kw=Ni,Pn="Popover",[Di,Ww]=X(Pn,[Se]),Nt=Se(),[Bv,Ve]=Di(Pn),Oi=e=>{const{__scopePopover:t,children:n,open:o,defaultOpen:r,onOpenChange:s,modal:i=!1}=e,c=Nt(t),l=a.useRef(null),[u,d]=a.useState(!1),[p,v]=Q({prop:o,defaultProp:r??!1,onChange:s,caller:Pn});return f.jsx(Rt,{...c,children:f.jsx(Bv,{scope:t,contentId:ee(),triggerRef:l,open:p,onOpenChange:v,onOpenToggle:a.useCallback(()=>v(h=>!h),[v]),hasCustomAnchor:u,onCustomAnchorAdd:a.useCallback(()=>d(!0),[]),onCustomAnchorRemove:a.useCallback(()=>d(!1),[]),modal:i,children:n})})};Oi.displayName=Pn;var ji="PopoverAnchor",Hv=a.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=Ve(ji,n),s=Nt(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:c}=r;return a.useEffect(()=>(i(),()=>c()),[i,c]),f.jsx(lt,{...s,...o,ref:t})});Hv.displayName=ji;var Li="PopoverTrigger",ki=a.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=Ve(Li,n),s=Nt(n),i=L(t,r.triggerRef),c=f.jsx(A.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Hi(r.open),...o,ref:i,onClick:E(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?c:f.jsx(lt,{asChild:!0,...s,children:c})});ki.displayName=Li;var nr="PopoverPortal",[Kv,Wv]=Di(nr,{forceMount:void 0}),Fi=e=>{const{__scopePopover:t,forceMount:n,children:o,container:r}=e,s=Ve(nr,t);return f.jsx(Kv,{scope:t,forceMount:n,children:f.jsx(U,{present:n||s.open,children:f.jsx(Ge,{asChild:!0,container:r,children:o})})})};Fi.displayName=nr;var st="PopoverContent",$i=a.forwardRef((e,t)=>{const n=Wv(st,e.__scopePopover),{forceMount:o=n.forceMount,...r}=e,s=Ve(st,e.__scopePopover);return f.jsx(U,{present:o||s.open,children:s.modal?f.jsx(Gv,{...r,ref:t}):f.jsx(zv,{...r,ref:t})})});$i.displayName=st;var Uv=je("PopoverContent.RemoveScroll"),Gv=a.forwardRef((e,t)=>{const n=Ve(st,e.__scopePopover),o=a.useRef(null),r=L(t,o),s=a.useRef(!1);return a.useEffect(()=>{const i=o.current;if(i)return yn(i)},[]),f.jsx(It,{as:Uv,allowPinchZoom:!0,children:f.jsx(Vi,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:E(e.onCloseAutoFocus,i=>{i.preventDefault(),s.current||n.triggerRef.current?.focus()}),onPointerDownOutside:E(e.onPointerDownOutside,i=>{const c=i.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0,u=c.button===2||l;s.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:E(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),zv=a.forwardRef((e,t)=>
vendor: 2,667 bytes, line 51
51{const n=Ve(st,e.__scopePopover),o=a.useRef(!1),r=a.useRef(!1);return f.jsx(Vi,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(o.current||n.triggerRef.current?.focus(),s.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const i=s.target;n.triggerRef.current?.contains(i)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&r.current&&s.preventDefault()}})}),Vi=a.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:d,...p}=e,v=Ve(st,n),h=Nt(n);return xn(),f.jsx(_t,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:s,children:f.jsx(Me,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:d,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>v.onOpenChange(!1),children:f.jsx(Pt,{"data-state":Hi(v.open),role:"dialog",id:v.contentId,...h,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Bi="PopoverClose",Yv=a.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=Ve(Bi,n);return f.jsx(A.button,{type:"button",...o,ref:t,onClick:E(e.onClick,()=>r.onOpenChange(!1))})});Yv.displayName=Bi;var Xv="PopoverArrow",qv=a.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=Nt(n);return f.jsx(Tt,{...r,...o,ref:t})});qv.displayName=Xv;function Hi(e){return e?"open":"closed"}var Uw=Oi,Gw=ki,zw=Fi,Yw=$i,to="rovingFocusGroup.onEntryFocus",Zv={bubbles:!1,cancelable:!0},Dt="RovingFocusGroup",[Ro,Ki,Qv]=Ie(Dt),[Jv,Tn]=X(Dt,[Qv]),[em,tm]=Jv(Dt),Wi=a.forwardRef((e,t)=>f.jsx(Ro.Provider,{scope:e.__scopeRovingFocusGroup,children:f.jsx(Ro.Slot,{scope:e.__scopeRovingFocusGroup,children:f.jsx(nm,{...e,ref:t})})}));Wi.displayName=Dt;var nm=a.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:r=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...p}=e,v=a.useRef(null),h=L(t,v),w=Ee(s),[m,g]=Q({prop:i,defaultProp:c??null,onChange:l,caller:Dt}),[x,b]=a.useState(!1),y=H(u),C=Ki(n),S=a.useRef(!1),[P,R]=a.use
vendor: 1,208 bytes, line 51
51State(0);return a.useEffect(()=>{const T=v.current;if(T)return T.addEventListener(to,y),()=>T.removeEventListener(to,y)},[y]),f.jsx(em,{scope:n,orientation:o,dir:w,loop:r,currentTabStopId:m,onItemFocus:a.useCallback(T=>g(T),[g]),onItemShiftTab:a.useCallback(()=>b(!0),[]),onFocusableItemAdd:a.useCallback(()=>R(T=>T+1),[]),onFocusableItemRemove:a.useCallback(()=>R(T=>T-1),[]),children:f.jsx(A.div,{tabIndex:x||P===0?-1:0,"data-orientation":o,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:E(e.onMouseDown,()=>{S.current=!0}),onFocus:E(e.onFocus,T=>{const _=!S.current;if(T.target===T.currentTarget&&_&&!x){const N=new CustomEvent(to,Zv);if(T.currentTarget.dispatchEvent(N),!N.defaultPrevented){const D=C().filter(O=>O.focusable),F=D.find(O=>O.active),B=D.find(O=>O.id===m),V=[F,B,...D].filter(Boolean).map(O=>O.ref.current);zi(V,d)}}S.current=!1}),onBlur:E(e.onBlur,()=>b(!1))})})}),Ui="RovingFocusGroupItem",Gi=a.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:r=!1,tabStopId:s,children:i,...c}=e,l=ee(),u=s||l,d=tm(Ui,n),p=d.currentTabStopId===u,v=Ki(n),{onFocusableItemAdd:h,onFocusableItemRemove:w,currentTabStopId:m}=d;return a.useEffect(()=>{if(o)return h(),()=>w()}
vendor: 18,962 bytes, line 51
51,[o,h,w]),f.jsx(Ro.ItemSlot,{scope:n,id:u,focusable:o,active:r,children:f.jsx(A.span,{tabIndex:p?0:-1,"data-orientation":d.orientation,...c,ref:t,onMouseDown:E(e.onMouseDown,g=>{o?d.onItemFocus(u):g.preventDefault()}),onFocus:E(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:E(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){d.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const x=sm(g,d.orientation,d.dir);if(x!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let y=v().filter(C=>C.focusable).map(C=>C.ref.current);if(x==="last")y.reverse();else if(x==="prev"||x==="next"){x==="prev"&&y.reverse();const C=y.indexOf(g.currentTarget);y=d.loop?am(y,C+1):y.slice(C+1)}setTimeout(()=>zi(y))}}),children:typeof i=="function"?i({isCurrentTabStop:p,hasTabStop:m!=null}):i})})});Gi.displayName=Ui;var om={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function rm(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function sm(e,t,n){const o=rm(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return om[o]}function zi(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function am(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var Yi=Wi,Xi=Gi,Po=["Enter"," "],im=["ArrowDown","PageUp","Home"],qi=["ArrowUp","PageDown","End"],cm=[...im,...qi],lm={ltr:[...Po,"ArrowRight"],rtl:[...Po,"ArrowLeft"]},um={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ot="Menu",[xt,dm,fm]=Ie(Ot),[Ye,Zi]=X(Ot,[fm,Se,Tn]),An=Se(),Qi=Tn(),[pm,Xe]=Ye(Ot),[vm,jt]=Ye(Ot),Ji=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:r,onOpenChange:s,modal:i=!0}=e,c=An(t),[l,u]=a.useState(null),d=a.useRef(!1),p=H(s),v=Ee(r);return a.useEffect(()=>{const h=()=>{d.current=!0,document.addEventListener("pointerdown",w,{capture:!0,once:!0}),document.addEventListener("pointermove",w,{capture:!0,once:!0})},w=()=>d.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",w,{capture:!0}),document.removeEventListener("pointermove",w,{capture:!0})}},[]),f.jsx(Rt,{...c,children:f.jsx(pm,{scope:t,open:n,onOpenChange:p,content:l,onContentChange:u,children:f.jsx(vm,{scope:t,onClose:a.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:d,dir:v,modal:i,children:o})})})};Ji.displayName=Ot;var mm="MenuAnchor",or=a.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=An(n);return f.jsx(lt,{...r,...o,ref:t})});or.displayName=mm;var rr="MenuPortal",[hm,ec]=Ye(rr,{forceMount:void 0}),tc=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:r}=e,s=Xe(rr,t);return f.jsx(hm,{scope:t,forceMount:n,children:f.jsx(U,{present:n||s.open,children:f.jsx(Ge,{asChild:!0,container:r,children:o})})})};tc.displayName=rr;var ue="MenuContent",[gm,sr]=Ye(ue),nc=a.forwardRef((e,t)=>{const n=ec(ue,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=Xe(ue,e.__scopeMenu),i=jt(ue,e.__scopeMenu);return f.jsx(xt.Provider,{scope:e.__scopeMenu,children:f.jsx(U,{present:o||s.open,children:f.jsx(xt.Slot,{scope:e.__scopeMenu,children:i.modal?f.jsx(wm,{...r,ref:t}):f.jsx(xm,{...r,ref:t})})})})}),wm=a.forwardRef((e,t)=>{const n=Xe(ue,e.__scopeMenu),o=a.useRef(null),r=L(t,o);return a.useEffect(()=>{const s=o.current;if(s)return yn(s)},[]),f.jsx(ar,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:E(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),xm=a.forwardRef((e,t)=>{const n=Xe(ue,e.__scopeMenu);return f.jsx(ar,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),bm=je("MenuContent.ScrollLock"),ar=a.forwardRef((e,t)=>{const{__scopeMenu:n,loop:o=!1,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:c,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:v,onDismiss:h,disableOutsideScroll:w,...m}=e,g=Xe(ue,n),x=jt(ue,n),b=An(n),y=Qi(n),C=dm(n),[S,P]=a.useState(null),R=a.useRef(null),T=L(t,R,g.onContentChange),_=a.useRef(0),N=a.useRef(""),D=a.useRef(0),F=a.useRef(null),B=a.useRef("right"),I=a.useRef(0),V=w?It:a.Fragment,O=w?{as:bm,allowPinchZoom:!0}:void 0,$=M=>{const Y=N.current+M,J=C().filter(k=>!k.disabled),te=document.activeElement,se=J.find(k=>k.ref.current===te)?.textValue,ne=J.map(k=>k.textValue),Pe=Nm(ne,Y,se),ae=J.find(k=>k.textValue===Pe)?.ref.current;(function k(K){N.current=K,window.clearTimeout(_.current),K!==""&&(_.current=window.setTimeout(()=>k(""),1e3))})(Y),ae&&setTimeout(()=>ae.focus())};a.useEffect(()=>()=>window.clearTimeout(_.current),[]),xn();const j=a.useCallback(M=>B.current===F.current?.side&&Om(M,F.current?.area),[]);return f.jsx(gm,{scope:n,searchRef:N,onItemEnter:a.useCallback(M=>{j(M)&&M.preventDefault()},[j]),onItemLeave:a.useCallback(M=>{j(M)||(R.current?.focus(),P(null))},[j]),onTriggerLeave:a.useCallback(M=>{j(M)&&M.preventDefault()},[j]),pointerGraceTimerRef:D,onPointerGraceIntentChange:a.useCallback(M=>{F.current=M},[]),children:f.jsx(V,{...O,children:f.jsx(_t,{asChild:!0,trapped:r,onMountAutoFocus:E(s,M=>{M.preventDefault(),R.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:f.jsx(Me,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:v,onDismiss:h,children:f.jsx(Yi,{asChild:!0,...y,dir:x.dir,orientation:"vertical",loop:o,currentTabStopId:S,onCurrentTabStopIdChange:P,onEntryFocus:E(l,M=>{x.isUsingKeyboardRef.current||M.preventDefault()}),preventScrollOnEntryFocus:!0,children:f.jsx(Pt,{role:"menu","aria-orientation":"vertical","data-state":wc(g.open),"data-radix-menu-content":"",dir:x.dir,...b,...m,ref:T,style:{outline:"none",...m.style},onKeyDown:E(m.onKeyDown,M=>{const J=M.target.closest("[data-radix-menu-content]")===M.currentTarget,te=M.ctrlKey||M.altKey||M.metaKey,se=M.key.length===1;J&&(M.key==="Tab"&&M.preventDefault(),!te&&se&&$(M.key));const ne=R.current;if(M.target!==ne||!cm.includes(M.key))return;M.preventDefault();const ae=C().filter(k=>!k.disabled).map(k=>k.ref.current);qi.includes(M.key)&&ae.reverse(),Im(ae)}),onBlur:E(e.onBlur,M=>{M.currentTarget.contains(M.target)||(window.clearTimeout(_.current),N.current="")}),onPointerMove:E(e.onPointerMove,bt(M=>{const Y=M.target,J=I.current!==M.clientX;if(M.currentTarget.contains(Y)&&J){const te=M.clientX>I.current?"right":"left";B.current=te,I.current=M.clientX}}))})})})})})})});nc.displayName=ue;var ym="MenuGroup",ir=a.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return f.jsx(A.div,{role:"group",...o,ref:t})});ir.displayName=ym;var Cm="MenuLabel",oc=a.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return f.jsx(A.div,{...o,ref:t})});oc.displayName=Cm;var nn="MenuItem",Jr="menu.itemSelect",_n=a.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:o,...r}=e,s=a.useRef(null),i=jt(nn,e.__scopeMenu),c=sr(nn,e.__scopeMenu),l=L(t,s),u=a.useRef(!1),d=()=>{const p=s.current;if(!n&&p){const v=new CustomEvent(Jr,{bubbles:!0,cancelable:!0});p.addEventListener(Jr,h=>o?.(h),{once:!0}),vt(p,v),v.defaultPrevented?u.current=!1:i.onClose()}};return f.jsx(rc,{...r,ref:l,disabled:n,onClick:E(e.onClick,d),onPointerDown:p=>{e.onPointerDown?.(p),u.current=!0},onPointerUp:E(e.onPointerUp,p=>{u.current||p.currentTarget?.click()}),onKeyDown:E(e.onKeyDown,p=>{const v=c.searchRef.current!=="";n||v&&p.key===" "||Po.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});_n.displayName=nn;var rc=a.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:r,...s}=e,i=sr(nn,n),c=Qi(n),l=a.useRef(null),u=L(t,l),[d,p]=a.useState(!1),[v,h]=a.useState("");return a.useEffect(()=>{const w=l.current;w&&h((w.textContent??"").trim())},[s.children]),f.jsx(xt.ItemSlot,{scope:n,disabled:o,textValue:r??v,children:f.jsx(Xi,{asChild:!0,...c,focusable:!o,children:f.jsx(A.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:u,onPointerMove:E(e.onPointerMove,bt(w=>{o?i.onItemLeave(w):(i.onItemEnter(w),w.defaultPrevented||w.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:E(e.onPointerLeave,bt(w=>i.onItemLeave(w))),onFocus:E(e.onFocus,()=>p(!0)),onBlur:E(e.onBlur,()=>p(!1))})})})}),Sm="MenuCheckboxItem",sc=a.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:o,...r}=e;return f.jsx(uc,{scope:e.__scopeMenu,checked:n,children:f.jsx(_n,{role:"menuitemcheckbox","aria-checked":on(n)?"mixed":n,...r,ref:t,"data-state":lr(n),onSelect:E(r.onSelect,()=>o?.(on(n)?!0:!n),{checkForDefaultPrevented:!1})})})});sc.displayName=Sm;var ac="MenuRadioGroup",[Em,Rm]=Ye(ac,{value:void 0,onValueChange:()=>{}}),ic=a.forwardRef((e,t)=>{const{value:n,onValueChange:o,...r}=e,s=H(o);return f.jsx(Em,{scope:e.__scopeMenu,value:n,onValueChange:s,children:f.jsx(ir,{...r,ref:t})})});ic.displayName=ac;var cc="MenuRadioItem",lc=a.forwardRef((e,t)=>{const{value:n,...o}=e,r=Rm(cc,e.__scopeMenu),s=n===r.value;return f.jsx(uc,{scope:e.__scopeMenu,checked:s,children:f.jsx(_n,{role:"menuitemradio","aria-checked":s,...o,ref:t,"data-state":lr(s),onSelect:E(o.onSelect,()=>r.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});lc.displayName=cc;var cr="MenuItemIndicator",[uc,Pm]=Ye(cr,{checked:!1}),dc=a.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:o,...r}=e,s=Pm(cr,n);return f.jsx(U,{present:o||on(s.checked)||s.checked===!0,children:f.jsx(A.span,{...r,ref:t,"data-state":lr(s.checked)})})});dc.displayName=cr;var Tm="MenuSeparator",fc=a.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return f.jsx(A.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});fc.displayName=Tm;var Am="MenuArrow",pc=a.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=An(n);return f.jsx(Tt,{...r,...o,ref:t})});pc.displayName=Am;var _m="MenuSub",[Xw,vc]=Ye(_m),pt="MenuSubTrigger",mc=a.forwardRef((e,t)=>{const n=Xe(pt,e.__scopeMenu),o=jt(pt,e.__scopeMenu),r=vc(pt,e.__scopeMenu),s=sr(pt,e.__scopeMenu),i=a.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:l}=s,u={__scopeMenu:e.__scopeMenu},d=a.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return a.useEffect(()=>d,[d]),a.useEffect(()=>{const p=c.current;return()=>{window.clearTimeout(p),l(null)}},[c,l]),f.jsx(or,{asChild:!0,...u,children:f.jsx(rc,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":wc(n.open),...e,ref:Ct(t,r.onTriggerChange),onClick:p=>{e.onClick?.(p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:E(e.onPointerMove,bt(p=>{s.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(s.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:E(e.onPointerLeave,bt(p=>{d();const v=n.content?.getBoundingClientRect();if(v){const h=n.content?.dataset.side,w=h==="right",m=w?-5:5,g=v[w?"left":"right"],x=v[w?"right":"left"];s.onPointerGraceIntentChange({area:[{x:p.clientX+m,y:p.clientY},{x:g,y:v.top},{x,y:v.top},{x,y:v.bottom},{x:g,y:v.bottom}],side:h}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(p),p.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:E(e.onKeyDown,p=>{const v=s.searchRef.current!=="";e.disabled||v&&p.key===" "||lm[o.dir].includes(p.key)&&(n.onOpenChange(!0),n.content?.focus(),p.preventDefault())})})})});mc.displayName=pt;var hc="MenuSubContent",gc=a.forwardRef((e,t)=>{const n=ec(ue,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=Xe(ue,e.__scopeMenu),i=jt(ue,e.__scopeMenu),c=vc(hc,e.__scopeMenu),l=a.useRef(null),u=L(t,l);return f.jsx(xt.Provider,{scope:e.__scopeMenu,children:f.jsx(U,{present:o||s.open,children:f.jsx(xt.Slot,{scope:e.__scopeMenu,children:f.jsx(ar,{id:c.contentId,"aria-labelledby":c.triggerId,...r,ref:u,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{i.isUsingKeyboardRef.current&&l.current?.focus(),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:E(e.onFocusOutside,d=>{d.target!==c.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:E(e.onEscapeKeyDown,d=>{i.onClose(),d.preventDefault()}),onKeyDown:E(e.onKeyDown,d=>{const p=d.currentTarget.contains(d.target),v=um[i.dir].includes(d.key);p&&v&&(s.onOpenChange(!1),c.trigger?.focus(),d.preventDefault())})})})})})});gc.displayName=hc;function wc(e){return e?"open":"closed"}function on(e){return e==="indeterminate"}function lr(e){return on(e)?"indeterminate":e?"checked":"unchecked"}function Im(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Mm(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function Nm(e,t,n){const r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=Mm(e,Math.max(s,0));r.length===1&&(i=i.filter(u=>u!==n));const l=i.find(u=>u.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function Dm(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],u=c.x,d=c.y,p=l.x,v=l.y;d>o!=v>o&&n<(p-u)*(o-d)/(v-d)+u&&(r=!r)}return r}function Om(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Dm(n,t)}function bt(e){return t=>t.pointerType==="mouse"?e(t):void 0}var jm=Ji,Lm=or,km=tc,Fm=nc,$m=ir,Vm=oc,Bm=_n,Hm=sc,Km=ic,Wm=lc,Um=dc,Gm=fc,zm=pc,Ym=mc,Xm=gc,In="DropdownMenu",[qm,qw]=X(In,[Zi]),re=Zi(),[Zm,xc]=qm(In),bc=e=>{const{__scopeDropdownMenu:t,children:n,dir:o,open:r,defaultOpen:s,onOpenChange:i,modal:c=!0}=e,l=re(t),u=a.useRef(null),[d,p]=Q({prop:r,defaultProp:s??!1,onChange:i,caller:In});return f.jsx(Zm,{scope:t,triggerId:ee(),triggerRef:u,contentId:ee(),open:d,onOpenChange:p,onOpenToggle:a.useCallback(()=>p(v=>!v),[p]),modal:c,children:f.jsx(jm,{...l,open:d,onOpenChange:p,dir:o,modal:c,children:n})})};bc.displayName=In;var yc="DropdownMenuTrigger",Cc=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:o=!1,...r}=e,s=xc(yc,n),i=re(n);return f.jsx(Lm,{asChild:!0,...i,children:f.jsx(A.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...r,ref:Ct(t,s.triggerRef),onPointerDown:E(e.onPointerDown,c=>{!o&&c.button===0&&c.ctrlKey===!1&&(s.onOpenToggle(),s.open||c.preventDefault())}),onKeyDown:E(e.onKeyDown,c=>{o||(["Enter"," "].includes(c.key)&&s.onOpenToggle(),c.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});Cc.displayName=yc;var Qm="DropdownMenuPortal",Sc=e=>{const{__scopeDropdownMenu:t,...n}=e,o=re(t);return f.jsx(km,{...o,...n})};Sc.displayName=Qm;var Ec="DropdownMenuContent",Rc=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=xc(Ec,n),s=re(n),i=a.useRef(!1);return f.jsx(Fm,{id:r.contentId,"aria-labelledby":r.triggerId,...s,...o,ref:t,onCloseAutoFocus:E(e.onCloseAutoFocus,c=>{i.current||r.triggerRef.current?.focus(),i.current=!1,c.preventDefault()}),onInteractOutside:E(e.onInteractOutside,c=>{const l=c.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,d=l.button===2||u;(!r.modal||d)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Rc.displayName=Ec;var Jm="DropdownMenuGroup",eh=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=re(n);return f.jsx($m,{...r,...o,ref:t})});eh.displayName=Jm;var th="DropdownMenuLabel",Pc=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=re(n);return f.jsx(Vm,{...r,...o,ref:t})});Pc.displayName=th;var nh="DropdownMenuItem",Tc=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=re(n);return f.jsx(Bm,{...r,...o,ref:t})});Tc.displayName=nh;var oh="DropdownMenuCheckboxItem",Ac=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=re(n);return f.jsx(Hm,{...r,...o,ref:t})});Ac.displayName=oh;var rh="DropdownMenuRadioGroup",sh=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=re(n);return f.jsx(Km,{...r,...o,ref:t})});sh.displayName=rh;var ah="DropdownMenuRadioItem",_c=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=re(n);return f.jsx(Wm,{...r,...o,ref:t})});_c.displayName=ah;var ih="DropdownMenuItemIndicator",Ic=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=re(n);return f.jsx(Um,{...r,...o,ref:t})});Ic.displayName=ih;var ch="DropdownMenuSeparator",Mc=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=re(n);return f.jsx(Gm,{...r,...o,ref:t})});Mc.displayName=ch;var lh="DropdownMenuArrow",uh=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=re(n);return f.jsx(zm,{...r,...o,ref:t})});uh.displayName=lh;var dh="DropdownMenuSubTrigger",Nc=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=re(n);return f.jsx(Ym,{...r,...o,ref:t})});Nc.displayName=dh;var fh="DropdownMenuSubContent",Dc=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=re(n);return f.jsx(Xm,{...r,...o,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Dc.displayName=fh;var Zw=bc,Qw=Cc,Jw=Sc,ex=Rc,tx=Pc,nx=Tc,ox=Ac,rx=_c,sx=Ic,ax=Mc,ix=Nc,cx=Dc;function Te(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}var no="rovingFocusGroup.onEntryFocus",ph={bubbles:!1,cancelable:!0},Lt="RovingFocusGroup",[To,Oc,vh]=Ie(Lt),[mh,jc]=X(Lt,[vh]),[hh,gh]=mh(Lt),Lc=a.forwardRef((e,t)=>f.jsx(To.Provider,{scope:e.__scopeRovingFocusGroup,children:f.jsx(To.Slot,{scope:e.__scopeRovingFocusGroup,children:f.jsx(wh,{...e,ref:t})})}));Lc.displayName=Lt;var wh=a.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:r=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...p}=e,v=a.useRef(null),h=L(t,v),w=Ee(s),[m,g]=Q({prop:i,defaultProp:c??null,onChange:l,caller:Lt}),[x,b]=a.useState(!1),y=H(u),C=Oc(n),S=a.useRef(!1),[P,R]=a.use
vendor: 1,211 bytes, line 51
51State(0);return a.useEffect(()=>{const T=v.current;if(T)return T.addEventListener(no,y),()=>T.removeEventListener(no,y)},[y]),f.jsx(hh,{scope:n,orientation:o,dir:w,loop:r,currentTabStopId:m,onItemFocus:a.useCallback(T=>g(T),[g]),onItemShiftTab:a.useCallback(()=>b(!0),[]),onFocusableItemAdd:a.useCallback(()=>R(T=>T+1),[]),onFocusableItemRemove:a.useCallback(()=>R(T=>T-1),[]),children:f.jsx(A.div,{tabIndex:x||P===0?-1:0,"data-orientation":o,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:Te(e.onMouseDown,()=>{S.current=!0}),onFocus:Te(e.onFocus,T=>{const _=!S.current;if(T.target===T.currentTarget&&_&&!x){const N=new CustomEvent(no,ph);if(T.currentTarget.dispatchEvent(N),!N.defaultPrevented){const D=C().filter(O=>O.focusable),F=D.find(O=>O.active),B=D.find(O=>O.id===m),V=[F,B,...D].filter(Boolean).map(O=>O.ref.current);$c(V,d)}}S.current=!1}),onBlur:Te(e.onBlur,()=>b(!1))})})}),kc="RovingFocusGroupItem",Fc=a.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:r=!1,tabStopId:s,children:i,...c}=e,l=ee(),u=s||l,d=gh(kc,n),p=d.currentTabStopId===u,v=Oc(n),{onFocusableItemAdd:h,onFocusableItemRemove:w,currentTabStopId:m}=d;return a.useEffect(()=>{if(o)return h(),()=>w()}
vendor: 4,198 bytes, line 51
51,[o,h,w]),f.jsx(To.ItemSlot,{scope:n,id:u,focusable:o,active:r,children:f.jsx(A.span,{tabIndex:p?0:-1,"data-orientation":d.orientation,...c,ref:t,onMouseDown:Te(e.onMouseDown,g=>{o?d.onItemFocus(u):g.preventDefault()}),onFocus:Te(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:Te(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){d.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const x=yh(g,d.orientation,d.dir);if(x!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let y=v().filter(C=>C.focusable).map(C=>C.ref.current);if(x==="last")y.reverse();else if(x==="prev"||x==="next"){x==="prev"&&y.reverse();const C=y.indexOf(g.currentTarget);y=d.loop?Ch(y,C+1):y.slice(C+1)}setTimeout(()=>$c(y))}}),children:typeof i=="function"?i({isCurrentTabStop:p,hasTabStop:m!=null}):i})})});Fc.displayName=kc;var xh={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function bh(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function yh(e,t,n){const o=bh(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return xh[o]}function $c(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function Ch(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var Sh=Lc,Eh=Fc;function Rh(e,t){return a.useReducer((n,o)=>t[n][o]??n,e)}var Vc=e=>{const{present:t,children:n}=e,o=Ph(t),r=typeof n=="function"?n({present:o.isPresent}):a.Children.only(n),s=L(o.ref,Th(r));return typeof n=="function"||o.isPresent?a.cloneElement(r,{ref:s}):null};Vc.displayName="Presence";function Ph(e){const[t,n]=a.useState(),o=a.useRef(null),r=a.useRef(e),s=a.useRef("none"),i=e?"mounted":"unmounted",[c,l]=Rh(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const u=Wt(o.current);s.current=c==="mounted"?u:"none"},[c]),z(()=>{const u=o.current,d=r.current;if(d!==e){const v=s.current,h=Wt(u);e?l("MOUNT"):h==="none"||u?.display==="none"?l("UNMOUNT"):l(d&&v!==h?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),z(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,p=h=>{const m=Wt(o.current).includes(CSS.escape(h.animationName));if(h.target===t&&m&&(l("ANIMATION_END"),!r.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},v=h=>{h.target===t&&(s.current=Wt(o.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:a.useCallback(u=>{o.current=u?getComputedStyle(u):null,n(u)},[])}}function Wt(e){return e?.animationName||"none"}function Th(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 Mn="Tabs",[Ah,lx]=X(Mn,[jc]),Bc=jc(),[_h,ur]=Ah(Mn),Hc=a.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,onValueChange:r,defaultValue:s,orientation:i="horizontal",dir:c,activationMode:l="automatic",...u}=e,d=Ee(c),[p,v]=Q({prop:o,onChange:r,defaultProp:s??"",caller:Mn});return f.jsx(_h,{scope:n,baseId:ee(),value:p,onValueChange:v,orientation:i,dir:d,activationMode:l,children:f.jsx(A.div,{dir:d,"data-orientation":i,...u,ref:t})})});Hc.displayName=Mn;var Kc="TabsList",Wc=a.forwardRef((e,t)=>{const{__scopeTabs:n,loop:o=!0,...r}=e,s=ur(Kc,n),i=Bc(n);return f.jsx(Sh,{asChild:!0,...i,orientation:s.orientation,dir:s.dir,loop:o,children:f.jsx(A.div,{role:"tablist","aria-orientation":s.orientation,...r,ref:t})})});Wc.displayName=Kc;var Uc="TabsTrigger",Gc=a.forwardRef((e,t)=>
vendor: 4,188 bytes, line 51
51{const{__scopeTabs:n,value:o,disabled:r=!1,...s}=e,i=ur(Uc,n),c=Bc(n),l=Xc(i.baseId,o),u=qc(i.baseId,o),d=o===i.value;return f.jsx(Eh,{asChild:!0,...c,focusable:!r,active:d,children:f.jsx(A.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...s,ref:t,onMouseDown:Te(e.onMouseDown,p=>{!r&&p.button===0&&p.ctrlKey===!1?i.onValueChange(o):p.preventDefault()}),onKeyDown:Te(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&i.onValueChange(o)}),onFocus:Te(e.onFocus,()=>{const p=i.activationMode!=="manual";!d&&!r&&p&&i.onValueChange(o)})})})});Gc.displayName=Uc;var zc="TabsContent",Yc=a.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,forceMount:r,children:s,...i}=e,c=ur(zc,n),l=Xc(c.baseId,o),u=qc(c.baseId,o),d=o===c.value,p=a.useRef(d);return a.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),f.jsx(Vc,{present:r||d,children:({present:v})=>f.jsx(A.div,{"data-state":d?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":l,hidden:!v,id:u,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:v&&s})})});Yc.displayName=zc;function Xc(e,t){return`${e}-trigger-${t}`}function qc(e,t){return`${e}-content-${t}`}var ux=Hc,dx=Wc,fx=Gc,px=Yc,Nn="Collapsible",[Ih,Zc]=X(Nn),[Mh,dr]=Ih(Nn),Qc=a.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:o,defaultOpen:r,disabled:s,onOpenChange:i,...c}=e,[l,u]=Q({prop:o,defaultProp:r??!1,onChange:i,caller:Nn});return f.jsx(Mh,{scope:n,disabled:s,contentId:ee(),open:l,onOpenToggle:a.useCallback(()=>u(d=>!d),[u]),children:f.jsx(A.div,{"data-state":pr(l),"data-disabled":s?"":void 0,...c,ref:t})})});Qc.displayName=Nn;var Jc="CollapsibleTrigger",el=a.forwardRef((e,t)=>{const{__scopeCollapsible:n,...o}=e,r=dr(Jc,n);return f.jsx(A.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":pr(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...o,ref:t,onClick:E(e.onClick,r.onOpenToggle)})});el.displayName=Jc;var fr="CollapsibleContent",tl=a.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=dr(fr,e.__scopeCollapsible);return f.jsx(U,{present:n||r.open,children:({present:s})=>f.jsx(Nh,{...o,ref:t,present:s})})});tl.displayName=fr;var Nh=a.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:o,children:r,...s}=e,i=dr(fr,n),[c,l]=a.useState(o),u=a.useRef(null),d=L(t,u),p=a.useRef(0),v=p.current,h=a.useRef(0),w=h.current,m=i.open||c,g=a.useRef(m),x=a.useRef(void 0);return a.useEffect(()=>{const b=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(b)},[]),z(()=>{const b=u.current;if(b){x.current=x.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const y=b.getBoundingClientRect();p.current=y.height,h.current=y.width,g.current||(b.style.transitionDuration=x.current.transitionDuration,b.style.animationName=x.current.animationName),l(o)}},[i.open,o]),f.jsx(A.div,{"data-state":pr(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!m,...s,ref:d,style:{"--radix-collapsible-content-height":v?`${v}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style},children:m&&r})});function pr(e){return e?"open":"closed"}var Dh=Qc,Oh=el,jh=tl,ge="Accordion",Lh=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[vr,kh,Fh]=Ie(ge),[Dn,vx]=X(ge,[Fh,Zc]),mr=Zc(),nl=Z.forwardRef((e,t)=>{const{type:n,...o}=e,r=o,s=o;return f.jsx(vr.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?f.jsx(Hh,{...s,ref:t}):f.jsx(Bh,{...r,ref:t})})});nl.displayName=ge;var[ol,$h]=Dn(ge),[rl,Vh]=Dn(ge,{collapsible:!1}),Bh=Z.forwardRef((e,t)=>{const{value:n,defaultValue:o,onValueChange:r=()=>{},collapsible:s=!1,...i}=e,[c,l]=Q({prop:n,defaultProp:o??"",onChange:r,caller:ge});return f.jsx(ol,{scope:e.__scopeAccordion,value:Z.useMemo(()=>c?[c]:[],[c]),onItemOpen:l,onItemClose:Z.useCallback(()=>s&&l(""),[s,l]),children:f.jsx(rl,{scope:e.__scopeAccordion,collapsible:s,children:f.jsx(sl,{...i,ref:t})})})}),Hh=Z.forwardRef((e,t)=>
51{const{value:n,defaultValue:o,onValueChange:r=()=>{},...s}=e,[i,c]=Q({prop:n,defaultProp:o??[],onChange:r,caller:ge}),l=Z.useCallback(d=>c((p=[])=>[...p,d]),[c]),u=Z.useCallback(d=>c((p=[])=>p.filter(v=>v!==d)),[c]);return f.jsx(ol,{scope:e.__scopeAccordion,value:i,onItemOpen:l,onItemClose:u,children:f.jsx(rl,{scope:e.__scopeAccordion,collapsible:!0,children:f.jsx(sl,{...s,ref:t})})})}),[Kh,On]=Dn(ge),sl=Z.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:o,dir:r,orientation:s="vertical",...i}=e,c=Z.useRef(null),l=L(c,t),u=kh(n),p=Ee(r)==="ltr",v=E(e.onKeyDown,h=>{if(!Lh.includes(h.key))return;const w=h.target,m=u().filter(T=>!T.ref.current?.disabled),g=m.findIndex(T=>T.ref.current===w),x=m.length;if(g===-1)return;h.preventDefault();let b=g;const y=0,C=x-1,S=()=>{b=g+1,b>C&&(b=y)},P=()=>{b=g-1,b<y&&(b=C)};switch(h.key){case"Home":b=y;break;case"End":b=C;break;case"ArrowRight":s==="horizontal"&&(p?S():P());break;case"ArrowDown":s==="vertical"&&S();break;case"ArrowLeft":s==="horizontal"&&(p?P():S());break;case"ArrowUp":s==="vertical"&&P();break}const R=b%x;m[R].ref.current?.focus()});return f.jsx(Kh,{scope:n,disabled:o,direction:r,orientation:s,children:f.jsx(vr.Slot,{scope:n,children:f.jsx(A.div,{...i,"data-orientation":s,ref:l,onKeyDown:o?void 0:v})})})}),rn="AccordionItem",[Wh,hr]=Dn(rn),al=Z.forwardRef((e,t)=>{const{__scopeAccordion:n,value:o,...r}=e,s=On(rn,n),i=$h(rn,n),c=mr(n),l=ee(),u=o&&i.value.includes(o)||!1,d=s.disabled||e.disabled;return f.jsx(Wh,{scope:n,open:u,disabled:d,triggerId:l,children:f.jsx(Dh,{"data-orientation":s.orientation,"data-state":fl(u),...c,...r,ref:t,disabled:d,open:u,onOpenChange:p=>{p?i.onItemOpen(o):i.onItemClose(o)}})})});al.displayName=rn;var il="AccordionHeader",cl=Z.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=On(ge,n),s=hr(il,n);return f.jsx(A.h3,{"data-orientation":r.orientation,"data-state":fl(s.open),"data-disabled":s.disabled?"":void 0,...o,ref:t})});cl.displayName=il;var Ao="AccordionTrigger",ll=Z.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=On(ge,n),s=hr(Ao,n),i=Vh(Ao,n),c=mr(n);return f.jsx(vr.ItemSlot,{scope:n,children:f.jsx(Oh,{"aria-disabled":s.open&&!i.collapsible||void 0,"data-orientation":r.orientation,id:s.triggerId,...c,...o,ref:t})})});ll.displayName=Ao;var ul="AccordionContent",dl=Z.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=On(ge,n),s=hr(ul,n),i=mr(n);return f.jsx(jh,{role:"region","aria-labelledby":s.triggerId,"data-orientation":r.orientation,...i,...o,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});dl.displayName=ul;function fl(e){return e?"open":"closed"}var mx=nl,hx=al,gx=cl,wx=ll,xx=dl,oo,jn="HoverCard",[pl,bx]=X(jn,[Se]),Ln=Se(),[Uh,gr]=pl(jn),vl=e=>{const{__scopeHoverCard:t,children:n,open:o,defaultOpen:r,onOpenChange:s,openDelay:i=700,closeDelay:c=300}=e,l=Ln(t),u=a.useRef(0),d=a.useRef(0),p=a.useRef(!1),v=a.useRef(!1),[h,w]=Q({prop:o,defaultProp:r??!1,onChange:s,caller:jn}),m=a.useCallback(()=>{clearTimeout(d.current),u.current=window.setTimeout(()=>w(!0),i)},[i,w]),g=a.useCallback(()=>{clearTimeout(u.current),!p.current&&!v.current&&(d.current=window.setTimeout(()=>w(!1),c))},[c,w]),x=a.useCallback(()=>w(!1),[w]);return a.useEffect(()=>()=>{clearTimeout(u.current),clearTimeout(d.current)},[]),f.jsx(Uh,{scope:t,open:h,onOpenChange:w,onOpen:m,onClose:g,onDismiss:x,hasSelectionRef:p,isPointerDownOnContentRef:v,children:f.jsx(Rt,{...l,children:n})})};vl.displayName=jn;var ml="HoverCardTrigger",hl=a.forwardRef((e,t)=>{const{__scopeHoverCard:n,...o}=e,r=gr(ml,n),s=Ln(n);return f.jsx(lt,{asChild:!0,...s,children:f.jsx(A.a,{"data-state":r.open?"open":"closed",...o,ref:t,onPointerEnter:E(e.onPointerEnter,an(r.onOpen)),onPointerLeave:E(e.onPointerLeave,an(r.onClose)),onFocus:E(e.onFocus,r.onOpen),onBlur:E(e.onBlur,r.onClose),onTouchStart:E(e.onTouchStart,i=>i.preventDefault())})})});hl.displayName=ml;var Gh="HoverCardPortal",[yx,zh]=pl(Gh,{forceMount:void 0}),sn="HoverCardContent",gl=a.forwardRef((e,t)=>
51{const n=zh(sn,e.__scopeHoverCard),{forceMount:o=n.forceMount,...r}=e,s=gr(sn,e.__scopeHoverCard);return f.jsx(U,{present:o||s.open,children:f.jsx(Yh,{"data-state":s.open?"open":"closed",...r,onPointerEnter:E(e.onPointerEnter,an(s.onOpen)),onPointerLeave:E(e.onPointerLeave,an(s.onClose)),ref:t})})});gl.displayName=sn;var Yh=a.forwardRef((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:i,...c}=e,l=gr(sn,n),u=Ln(n),d=a.useRef(null),p=L(t,d),[v,h]=a.useState(!1);return a.useEffect(()=>{if(v){const w=document.body;return oo=w.style.userSelect||w.style.webkitUserSelect,w.style.userSelect="none",w.style.webkitUserSelect="none",()=>{w.style.userSelect=oo,w.style.webkitUserSelect=oo}}},[v]),a.useEffect(()=>{if(d.current){const w=()=>{h(!1),l.isPointerDownOnContentRef.current=!1,setTimeout(()=>{document.getSelection()?.toString()!==""&&(l.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",w),()=>{document.removeEventListener("pointerup",w),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!1}}},[l.isPointerDownOnContentRef,l.hasSelectionRef]),a.useEffect(()=>{d.current&&Zh(d.current).forEach(m=>m.setAttribute("tabindex","-1"))}),f.jsx(Me,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:i,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:E(s,w=>{w.preventDefault()}),onDismiss:l.onDismiss,children:f.jsx(Pt,{...u,...c,onPointerDown:E(c.onPointerDown,w=>{w.currentTarget.contains(w.target)&&h(!0),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!0}),ref:p,style:{...c.style,userSelect:v?"text":void 0,WebkitUserSelect:v?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),Xh="HoverCardArrow",qh=a.forwardRef((e,t)=>{const{__scopeHoverCard:n,...o}=e,r=Ln(n);return f.jsx(Tt,{...r,...o,ref:t})});qh.displayName=Xh;function an(e){return t=>t.pointerType==="touch"?void 0:e()}function Zh(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}var Cx=vl,Sx=hl,Ex=gl,wr="Radio",[Qh,wl]=X(wr),[Jh,eg]=Qh(wr),xl=a.forwardRef((e,t)=>{const{__scopeRadio:n,name:o,checked:r=!1,required:s,disabled:i,value:c="on",onCheck:l,form:u,...d}=e,[p,v]=a.useState(null),h=L(t,g=>v(g)),w=a.useRef(!1),m=p?u||!!p.closest("form"):!0;return f.jsxs(Jh,{scope:n,checked:r,disabled:i,children:[f.jsx(A.button,{type:"button",role:"radio","aria-checked":r,"data-state":Sl(r),"data-disabled":i?"":void 0,disabled:i,value:c,...d,ref:h,onClick:E(e.onClick,g=>{r||l?.(),m&&(w.current=g.isPropagationStopped(),w.current||g.stopPropagation())})}),m&&f.jsx(Cl,{control:p,bubbles:!w.current,name:o,value:c,checked:r,required:s,disabled:i,form:u,style:{transform:"translateX(-100%)"}})]})});xl.displayName=wr;var bl="RadioIndicator",yl=a.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:o,...r}=e,s=eg(bl,n);return f.jsx(U,{present:o||s.checked,children:f.jsx(A.span,{"data-state":Sl(s.checked),"data-disabled":s.disabled?"":void 0,...r,ref:t})})});yl.displayName=bl;var tg="RadioBubbleInput",Cl=a.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:o=!0,...r},s)=>{const i=a.useRef(null),c=L(i,s),l=Mt(n),u=hn(t);return a.useEffect(()=>{const d=i.current;if(!d)return;const p=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(p,"checked").set;if(l!==n&&h){const w=new Event("click",{bubbles:o});h.call(d,n),d.dispatchEvent(w)}},[l,n,o]),f.jsx(A.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...r,tabIndex:-1,ref:c,style:{...r.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Cl.displayName=tg;function Sl(e){return e?"checked":"unchecked"}var ng=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],kn="RadioGroup",[og,Rx]=X(kn,[Tn,wl]),El=Tn(),Rl=wl(),[rg,sg]=og(kn),Pl=a.forwardRef((e,t)=>
vendor: 1,066 bytes, line 51
51{const{__scopeRadioGroup:n,name:o,defaultValue:r,value:s,required:i=!1,disabled:c=!1,orientation:l,dir:u,loop:d=!0,onValueChange:p,...v}=e,h=El(n),w=Ee(u),[m,g]=Q({prop:s,defaultProp:r??null,onChange:p,caller:kn});return f.jsx(rg,{scope:n,name:o,required:i,disabled:c,value:m,onValueChange:g,children:f.jsx(Yi,{asChild:!0,...h,orientation:l,dir:w,loop:d,children:f.jsx(A.div,{role:"radiogroup","aria-required":i,"aria-orientation":l,"data-disabled":c?"":void 0,dir:w,...v,ref:t})})})});Pl.displayName=kn;var Tl="RadioGroupItem",Al=a.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:o,...r}=e,s=sg(Tl,n),i=s.disabled||o,c=El(n),l=Rl(n),u=a.useRef(null),d=L(t,u),p=s.value===r.value,v=a.useRef(!1);return a.useEffect(()=>{const h=m=>{ng.includes(m.key)&&(v.current=!0)},w=()=>v.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",w),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",w)}},[]),f.jsx(Xi,{asChild:!0,...c,focusable:!i,active:p,children:f.jsx(xl,{disabled:i,required:s.required,
51checked:p,...l,...r,name:s.name,ref:d,onCheck:()=>s.onValueChange(r.value),onKeyDown:E(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:E(r.onFocus,()=>{v.current&&u.current?.click()})})})});Al.displayName=Tl;var ag="RadioGroupIndicator",_l=a.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...o}=e,r=Rl(n);return f.jsx(yl,{...r,...o,ref:t})});_l.displayName=ag;var Px=Pl,Tx=Al,Ax=_l,Fn="Checkbox",[ig,_x]=X(Fn),[cg,xr]=ig(Fn);function lg(e){const{__scopeCheckbox:t,checked:n,children:o,defaultChecked:r,disabled:s,form:i,name:c,onCheckedChange:l,required:u,value:d="on",internal_do_not_use_render:p}=e,[v,h]=Q({prop:n,defaultProp:r??!1,onChange:l,caller:Fn}),[w,m]=a.useState(null),[g,x]=a.useState(null),b=a.useRef(!1),y=w?!!i||!!w.closest("form"):!0,C={checked:v,disabled:s,setChecked:h,control:w,setControl:m,name:c,form:i,value:d,hasConsumerStoppedPropagationRef:b,required:u,defaultChecked:Oe(r)?!1:r,isFormControl:y,bubbleInput:g,setBubbleInput:x};return f.jsx(cg,{scope:t,...C,children:fg(p)?p(C):o})}var Il="CheckboxTrigger",Ml=a.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...o},r)=>{const{control:s,value:i,disabled:c,checked:l,required:u,setControl:d,setChecked:p,hasConsumerStoppedPropagationRef:v,isFormControl:h,bubbleInput:w}=xr(Il,e),m=L(r,d),g=a.useRef(l);return a.useEffect(()=>{const x=s?.form;if(x){const b=()=>p(g.current);return x.addEventListener("reset",b),()=>x.removeEventListener("reset",b)}},[s,p]),f.jsx(A.button,{type:"button",role:"checkbox","aria-checked":Oe(l)?"mixed":l,"aria-required":u,"data-state":jl(l),"data-disabled":c?"":void 0,disabled:c,value:i,...o,ref:m,onKeyDown:E(t,x=>{x.key==="Enter"&&x.preventDefault()}),onClick:E(n,x=>{p(b=>Oe(b)?!0:!b),w&&h&&(v.current=x.isPropagationStopped(),v.current||x.stopPropagation())})})});Ml.displayName=Il;var ug=a.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:o,checked:r,defaultChecked:s,required:i,disabled:c,value:l,onCheckedChange:u,form:d,...p}=e;return f.jsx(lg,{__scopeCheckbox:n,checked:r,defaultChecked:s,disabled:c,required:i,onCheckedChange:u,name:o,form:d,value:l,internal_do_not_use_render:({isFormControl:v})=>f.jsxs(f.Fragment,{children:[f.jsx(Ml,{...p,ref:t,__scopeCheckbox:n}),v&&f.jsx(Ol,{__scopeCheckbox:n})]})})});ug.displayName=Fn;var Nl="CheckboxIndicator",dg=a.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:o,...r}=e,s=xr(Nl,n);return f.jsx(U,{present:o||Oe(s.checked)||s.checked===!0,children:f.jsx(A.span,{"data-state":jl(s.checked),"data-disabled":s.disabled?"":void 0,...r,ref:t,style:{pointerEvents:"none",...e.style}})})});dg.displayName=Nl;var Dl="CheckboxBubbleInput",Ol=a.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:o,hasConsumerStoppedPropagationRef:r,checked:s,defaultChecked:i,required:c,disabled:l,name:u,value:d,form:p,bubbleInput:v,setBubbleInput:h}=xr(Dl,e),w=L(n,h),m=Mt(s),g=hn(o);a.useEffect(()=>{const b=v;if(!b)return;const y=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(y,"checked").set,P=!r.current;if(m!==s&&S){const R=new Event("click",{bubbles:P});b.indeterminate=Oe(s),S.call(b,Oe(s)?!1:s),b.dispatchEvent(R)}},[v,m,s,r]);const x=a.useRef(Oe(s)?!1:s);return f.jsx(A.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??x.current,required:c,disabled:l,name:u,value:d,form:p,...t,tabIndex:-1,ref:w,style:{...t.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Ol.displayName=Dl;function fg(e){return typeof e=="function"}function Oe(e){return e==="indeterminate"}function jl(e){return Oe(e)?"indeterminate":e?"checked":"unchecked"}var Ll=["PageUp","PageDown"],kl=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Fl={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},dt="Slider",[_o,pg,vg]=Ie(dt),[$l,Ix]=X(dt,[vg]),[mg,$n]=$l(dt),Vl=a.forwardRef((e,t)=>{const{name:n,min:o=0,max:r=100,step:s=1,orientation:i="horizontal",disabled:c=!1,minStepsBetweenThumbs:l=0,defaultValue:u=[o],value:d,onValueChange:p=()=>{},onValueCommit:v=()=>{},inverted:h=!1,form:w,...m}=e,g=a.useRef(new Set),x=a.useRef(0),y=i==="horizontal"?hg:gg,[C=[],S]=Q({prop:d,defaultProp:u,onChange:D=>{[...g.current][x.current]?.focus(),p(D)}}),P=a.useRef(C);function R(D){const F=Cg(C,D);N(D,F)}function T(D){N(D,x.current)}function _(){const D=P.current[x.current];C[x.current]!==D&&v(C)}function N(D,F,{commit:B}={commit:!1}){const I=Pg(s),V=Tg(Math.round((D-o)/s)*s+o,I),O=wt(V,[o,r]);S(($=[])=>{const j=bg($,O,F);if(Rg(j,l*s)){x.current=j.indexOf(O);const M=String(j)!==String($);return M&&B&&v(j),M?j:$}else return $})}return f.jsx(mg,{scope:e.__scopeSlider,name:n,disabled:c,min:o,max:r,valueIndexToChangeRef:x,thumbs:g.current,values:C,orientation:i,form:w,children:f.jsx(_o.Provider,{scope:e.__scopeSlider,children:f.jsx(_o.Slot,{scope:e.__scopeSlider,children:f.jsx(y,{"aria-disabled":c,"data-disabled":c?"":void 0,...m,ref:t,onPointerDown:E(m.onPointerDown,()=>{c||(P.current=C)}),min:o,max:r,inverted:h,onSlideStart:c?void 0:R,onSlideMove:c?void 0:T,onSlideEnd:c?void 0:_,onHomeKeyDown:()=>!c&&N(o,0,{commit:!0}),onEndKeyDown:()=>!c&&N(r,C.length-1,{commit:!0}),onStepKeyDown:({event:D,direction:F})=>{if(!c){const V=Ll.includes(D.key)||D.shiftKey&&kl.includes(D.key)?10:1,O=x.current,$=C[O],j=s*V*F;N($+j,O,{commit:!0})}}})})})})});Vl.displayName=dt;var[Bl,Hl]=$l(dt,{startEdge:"left",endEdge:"right",size:"width",direction:1}),hg=a.forwardRef((e,t)=>
51{const{min:n,max:o,dir:r,inverted:s,onSlideStart:i,onSlideMove:c,onSlideEnd:l,onStepKeyDown:u,...d}=e,[p,v]=a.useState(null),h=L(t,y=>v(y)),w=a.useRef(void 0),m=Ee(r),g=m==="ltr",x=g&&!s||!g&&s;function b(y){const C=w.current||p.getBoundingClientRect(),S=[0,C.width],R=br(S,x?[n,o]:[o,n]);return w.current=C,R(y-C.left)}return f.jsx(Bl,{scope:e.__scopeSlider,startEdge:x?"left":"right",endEdge:x?"right":"left",direction:x?1:-1,size:"width",children:f.jsx(Kl,{dir:m,"data-orientation":"horizontal",...d,ref:h,style:{...d.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:y=>{const C=b(y.clientX);i?.(C)},onSlideMove:y=>{const C=b(y.clientX);c?.(C)},onSlideEnd:()=>{w.current=void 0,l?.()},onStepKeyDown:y=>{const S=Fl[x?"from-left":"from-right"].includes(y.key);u?.({event:y,direction:S?-1:1})}})})}),gg=a.forwardRef((e,t)=>{const{min:n,max:o,inverted:r,onSlideStart:s,onSlideMove:i,onSlideEnd:c,onStepKeyDown:l,...u}=e,d=a.useRef(null),p=L(t,d),v=a.useRef(void 0),h=!r;function w(m){const g=v.current||d.current.getBoundingClientRect(),x=[0,g.height],y=br(x,h?[o,n]:[n,o]);return v.current=g,y(m-g.top)}return f.jsx(Bl,{scope:e.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1,children:f.jsx(Kl,{"data-orientation":"vertical",...u,ref:p,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:m=>{const g=w(m.clientY);s?.(g)},onSlideMove:m=>{const g=w(m.clientY);i?.(g)},onSlideEnd:()=>{v.current=void 0,c?.()},onStepKeyDown:m=>{const x=Fl[h?"from-bottom":"from-top"].includes(m.key);l?.({event:m,direction:x?-1:1})}})})}),Kl=a.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:o,onSlideMove:r,onSlideEnd:s,onHomeKeyDown:i,onEndKeyDown:c,onStepKeyDown:l,...u}=e,d=$n(dt,n);return f.jsx(A.span,{...u,ref:t,onKeyDown:E(e.onKeyDown,p=>{p.key==="Home"?(i(p),p.preventDefault()):p.key==="End"?(c(p),p.preventDefault()):Ll.concat(kl).includes(p.key)&&(l(p),p.preventDefault())}),onPointerDown:E(e.onPointerDown,p=>{const v=p.target;v.setPointerCapture(p.pointerId),p.preventDefault(),d.thumbs.has(v)?v.focus():o(p)}),onPointerMove:E(e.onPointerMove,p=>{p.target.hasPointerCapture(p.pointerId)&&r(p)}),onPointerUp:E(e.onPointerUp,p=>{const v=p.target;v.hasPointerCapture(p.pointerId)&&(v.releasePointerCapture(p.pointerId),s(p))})})}),Wl="SliderTrack",Ul=a.forwardRef((e,t)=>{const{__scopeSlider:n,...o}=e,r=$n(Wl,n);return f.jsx(A.span,{"data-disabled":r.disabled?"":void 0,"data-orientation":r.orientation,...o,ref:t})});Ul.displayName=Wl;var Io="SliderRange",Gl=a.forwardRef((e,t)=>{const{__scopeSlider:n,...o}=e,r=$n(Io,n),s=Hl(Io,n),i=a.useRef(null),c=L(t,i),l=r.values.length,u=r.values.map(v=>Xl(v,r.min,r.max)),d=l>1?Math.min(...u):0,p=100-Math.max(...u);return f.jsx(A.span,{"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0,...o,ref:c,style:{...e.style,[s.startEdge]:d+"%",[s.endEdge]:p+"%"}})});Gl.displayName=Io;var Mo="SliderThumb",zl=a.forwardRef((e,t)=>{const n=pg(e.__scopeSlider),[o,r]=a.useState(null),s=L(t,c=>r(c)),i=a.useMemo(()=>o?n().findIndex(c=>c.ref.current===o):-1,[n,o]);return f.jsx(wg,{...e,ref:s,index:i})}),wg=a.forwardRef((e,t)=>{const{__scopeSlider:n,index:o,name:r,...s}=e,i=$n(Mo,n),c=Hl(Mo,n),[l,u]=a.useState(null),d=L(t,b=>u(b)),p=l?i.form||!!l.closest("form"):!0,v=hn(l),h=i.values[o],w=h===void 0?0:Xl(h,i.min,i.max),m=yg(o,i.values.length),g=v?.[c.size],x=g?Sg(g,w,c.direction):0;return a.useEffect(()=>{if(l)return i.thumbs.add(l),()=>{i.thumbs.delete(l)}},[l,i.thumbs]),f.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[c.startEdge]:`calc(${w}% + ${x}px)`},children:[f.jsx(_o.ItemSlot,{scope:e.__scopeSlider,children:f.jsx(A.span,{role:"slider","aria-label":e["aria-label"]||m,"aria-valuemin":i.min,"aria-valuenow":h,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...s,ref:d,style:h===void 0?{display:"none"}:e.style,onFocus:E(e.onFocus,()=>{i.valueIndexToChangeRef.current=o})})}),p&&f.jsx(Yl,{name:r??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:h},o)]})});zl.displayName=Mo;var xg="RadioBubbleInput",Yl=a.forwardRef(({__scopeSlider:e,value:t,...n},o)=>{const r=a.useRef(null),s=L(r,o),i=Mt(t);return a.useEffect(()=>{const c=r.current;if(!c)return;const l=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==t&&d){const p=new Event("input",{bubbles:!0});d.call(c,t),c.dispatchEvent(p)}},[i,t]),f.jsx(A.input,{style:{display:"none"},...n,ref:s,defaultValue:t})});Yl.displayName=xg;function bg(e=[],t,n){const o=[...e];return o[n]=t,o.sort((r,s)=>r-s)}function Xl(e,t,n){const s=100/(n-t)*(e-t);return wt(s,[0,100])}function yg(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function Cg(e,t){if(e.length===1)return 0;const n=e.map(r=>Math.abs(r-t)),o=Math.min(...n);return n.indexOf(o)}function Sg(e,t,n){const o=e/2,s=br([0,50],[0,o]);return(o-s(t)*n)*n}function Eg(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function Rg(e,t){if(t>0){const n=Eg(e);return Math.min(...n)>=t}return!0}function br(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(n-e[0])}}function Pg(e){return(String(e).split(".")[1]||"").length}function Tg(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var Mx=Vl,Nx=Ul,Dx=Gl,Ox=zl,yr="Progress",Cr=100,[Ag,jx]=X(yr),[_g,Ig]=Ag(yr),ql=a.forwardRef((e,t)=>
51{const{__scopeProgress:n,value:o=null,max:r,getValueLabel:s=Mg,...i}=e;(r||r===0)&&!es(r)&&console.error(Ng(`${r}`,"Progress"));const c=es(r)?r:Cr;o!==null&&!ts(o,c)&&console.error(Dg(`${o}`,"Progress"));const l=ts(o,c)?o:null,u=cn(l)?s(l,c):void 0;return f.jsx(_g,{scope:n,value:l,max:c,children:f.jsx(A.div,{"aria-valuemax":c,"aria-valuemin":0,"aria-valuenow":cn(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":Jl(l,c),"data-value":l??void 0,"data-max":c,...i,ref:t})})});ql.displayName=yr;var Zl="ProgressIndicator",Ql=a.forwardRef((e,t)=>{const{__scopeProgress:n,...o}=e,r=Ig(Zl,n);return f.jsx(A.div,{"data-state":Jl(r.value,r.max),"data-value":r.value??void 0,"data-max":r.max,...o,ref:t})});Ql.displayName=Zl;function Mg(e,t){return`${Math.round(e/t*100)}%`}function Jl(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function cn(e){return typeof e=="number"}function es(e){return cn(e)&&!isNaN(e)&&e>0}function ts(e,t){return cn(e)&&!isNaN(e)&&e<=t&&e>=0}function Ng(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Cr}\`.`}function Dg(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
52  - a positive number
53  - less than the value passed to \`max\` (or ${Cr} if no \`max\` prop is set)
54  - \`null\` or \`undefined\` if the progress is indeterminate.
55
56Defaulting to \`null\`.`}var Lx=ql,kx=Ql;function Og(e,t){return a.useReducer((n,o)=>t[n][o]??n,e)}var Sr="ScrollArea",[eu,Fx]=X(Sr),[jg,fe]=eu(Sr),tu=a.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:o="hover",dir:r,scrollHideDelay:s=600,...i}=e,[c,l]=a.useState(null),[u,d]=a.useState(null),[p,v]=a.useState(null),[h,w]=a.useState(null),[m,g]=a.useState(null),[x,b]=a.useState(0),[y,C]=a.useState(0),[S,P]=a.useState(!1),[R,T]=a.useState(!1),_=L(t,D=>l(D)),N=Ee(r);return f.jsx(jg,{scope:n,type:o,dir:N,scrollHideDelay:s,scrollArea:c,viewport:u,onViewportChange:d,content:p,onContentChange:v,scrollbarX:h,onScrollbarXChange:w,scrollbarXEnabled:S,onScrollbarXEnabledChange:P,scrollbarY:m,onScrollbarYChange:g,scrollbarYEnabled:R,onScrollbarYEnabledChange:T,onCornerWidthChange:b,onCornerHeightChange:C,children:f.jsx(A.div,{dir:N,...i,ref:_,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":y+"px",...e.style}})})});tu.displayName=Sr;var nu="ScrollAreaViewport",ou=a.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:o,nonce:r,...s}=e,i=fe(nu,n),c=a.useRef(null),l=L(t,c,i.onViewportChange);return f.jsxs(f.Fragment,{children:[f.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),f.jsx(A.div,{"data-radix-scroll-area-viewport":"",...s,ref:l,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:f.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:o})})]})});ou.displayName=nu;var Re="ScrollAreaScrollbar",Lg=a.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=fe(Re,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:i}=r,c=e.orientation==="horizontal";return a.useEffect(()=>(c?s(!0):i(!0),()=>{c?s(!1):i(!1)}),[c,s,i]),r.type==="hover"?f.jsx(kg,{...o,ref:t,forceMount:n}):r.type==="scroll"?f.jsx(Fg,{...o,ref:t,forceMount:n}):r.type==="auto"?f.jsx(ru,{...o,ref:t,forceMount:n}):r.type==="always"?f.jsx(Er,{...o,ref:t}):null});Lg.displayName=Re;var kg=a.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=fe(Re,e.__scopeScrollArea),[s,i]=a.useState(!1);return a.useEffect(()=>{const c=r.scrollArea;let l=0;if(c){const u=()=>{window.clearTimeout(l),i(!0)},d=()=>{l=window.setTimeout(()=>i(!1),r.scrollHideDelay)};return c.addEventListener("pointerenter",u),c.addEventListener("pointerleave",d),()=>{window.clearTimeout(l),c.removeEventListener("pointerenter",u),c.removeEventListener("pointerleave",d)}}},[r.scrollArea,r.scrollHideDelay]),f.jsx(U,{present:n||s,children:f.jsx(ru,{"data-state":s?"visible":"hidden",...o,ref:t})})}),Fg=a.forwardRef((e,t)=>
vendor: 8,852 bytes, line 56
56{const{forceMount:n,...o}=e,r=fe(Re,e.__scopeScrollArea),s=e.orientation==="horizontal",i=Bn(()=>l("SCROLL_END"),100),[c,l]=Og("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return a.useEffect(()=>{if(c==="idle"){const u=window.setTimeout(()=>l("HIDE"),r.scrollHideDelay);return()=>window.clearTimeout(u)}},[c,r.scrollHideDelay,l]),a.useEffect(()=>{const u=r.viewport,d=s?"scrollLeft":"scrollTop";if(u){let p=u[d];const v=()=>{const h=u[d];p!==h&&(l("SCROLL"),i()),p=h};return u.addEventListener("scroll",v),()=>u.removeEventListener("scroll",v)}},[r.viewport,s,l,i]),f.jsx(U,{present:n||c!=="hidden",children:f.jsx(Er,{"data-state":c==="hidden"?"hidden":"visible",...o,ref:t,onPointerEnter:E(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:E(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),ru=a.forwardRef((e,t)=>{const n=fe(Re,e.__scopeScrollArea),{forceMount:o,...r}=e,[s,i]=a.useState(!1),c=e.orientation==="horizontal",l=Bn(()=>{if(n.viewport){const u=n.viewport.offsetWidth<n.viewport.scrollWidth,d=n.viewport.offsetHeight<n.viewport.scrollHeight;i(c?u:d)}},10);return at(n.viewport,l),at(n.content,l),f.jsx(U,{present:o||s,children:f.jsx(Er,{"data-state":s?"visible":"hidden",...r,ref:t})})}),Er=a.forwardRef((e,t)=>{const{orientation:n="vertical",...o}=e,r=fe(Re,e.__scopeScrollArea),s=a.useRef(null),i=a.useRef(0),[c,l]=a.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=cu(c.viewport,c.content),d={...o,sizes:c,onSizesChange:l,hasThumb:u>0&&u<1,onThumbChange:v=>s.current=v,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:v=>i.current=v};function p(v,h){return Ug(v,i.current,c,h)}return n==="horizontal"?f.jsx($g,{...d,ref:t,onThumbPositionChange:()=>{if(r.viewport&&s.current){const v=r.viewport.scrollLeft,h=ns(v,c,r.dir);s.current.style.transform=`translate3d(${h}px, 0, 0)`}},onWheelScroll:v=>{r.viewport&&(r.viewport.scrollLeft=v)},onDragScroll:v=>{r.viewport&&(r.viewport.scrollLeft=p(v,r.dir))}}):n==="vertical"?f.jsx(Vg,{...d,ref:t,onThumbPositionChange:()=>{if(r.viewport&&s.current){const v=r.viewport.scrollTop,h=ns(v,c);s.current.style.transform=`translate3d(0, ${h}px, 0)`}},onWheelScroll:v=>{r.viewport&&(r.viewport.scrollTop=v)},onDragScroll:v=>{r.viewport&&(r.viewport.scrollTop=p(v))}}):null}),$g=a.forwardRef((e,t)=>{const{sizes:n,onSizesChange:o,...r}=e,s=fe(Re,e.__scopeScrollArea),[i,c]=a.useState(),l=a.useRef(null),u=L(t,l,s.onScrollbarXChange);return a.useEffect(()=>{l.current&&c(getComputedStyle(l.current))},[l]),f.jsx(au,{"data-orientation":"horizontal",...r,ref:u,sizes:n,style:{bottom:0,left:s.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:s.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Vn(n)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,p)=>{if(s.viewport){const v=s.viewport.scrollLeft+d.deltaX;e.onWheelScroll(v),uu(v,p)&&d.preventDefault()}},onResize:()=>{l.current&&s.viewport&&i&&o({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:un(i.paddingLeft),paddingEnd:un(i.paddingRight)}})}})}),Vg=a.forwardRef((e,t)=>{const{sizes:n,onSizesChange:o,...r}=e,s=fe(Re,e.__scopeScrollArea),[i,c]=a.useState(),l=a.useRef(null),u=L(t,l,s.onScrollbarYChange);return a.useEffect(()=>{l.current&&c(getComputedStyle(l.current))},[l]),f.jsx(au,{"data-orientation":"vertical",...r,ref:u,sizes:n,style:{top:0,right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Vn(n)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,p)=>{if(s.viewport){const v=s.viewport.scrollTop+d.deltaY;e.onWheelScroll(v),uu(v,p)&&d.preventDefault()}},onResize:()=>{l.current&&s.viewport&&i&&o({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:un(i.paddingTop),paddingEnd:un(i.paddingBottom)}})}})}),[Bg,su]=eu(Re),au=a.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:o,hasThumb:r,onThumbChange:s,onThumbPointerUp:i,onThumbPointerDown:c,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:d,onResize:p,...v}=e,h=fe(Re,n),[w,m]=a.useState(null),g=L(t,_=>m(_)),x=a.useRef(null),b=a.useRef(""),y=h.viewport,C=o.content-o.viewport,S=H(d),P=H(l),R=Bn(p,10);function T(_){if(x.current){const N=_.clientX-x.current.left,D=_.clientY-x.current.top;u({x:N,y:D})}}return a.useEffect(()=>{const _=N=>{const D=N.target;w?.contains(D)&&S(N,C)};return document.addEventListener("wheel",_,{passive:!1}),()=>document.removeEventListener("wheel",_,{passive:!1})},[y,w,C,S]),a.useEffect(P,[o,P]),at(w,R),at(h.content,R),f.jsx(Bg,{scope:n,scrollbar:w,hasThumb:r,onThumbChange:H(s),onThumbPointerUp:H(i),onThumbPositionChange:P,onThumbPointerDown:H(c),children:f.jsx(A.div,{...v,ref:g,style:{position:"absolute",...v.style},onPointerDown:E(e.onPointerDown,_=>{_.button===0&&(_.target.setPointerCapture(_.pointerId),x.current=w.getBoundingClientRect(),b.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",h.viewport&&(h.viewport.style.scrollBehavior="auto"),T(_))}),onPointerMove:E(e.onPointerMove,T),onPointerUp:E(e.onPointerUp,_=>{const N=_.target;N.hasPointerCapture(_.pointerId)&&N.releasePointerCapture(_.pointerId),document.body.style.webkitUserSelect=b.current,h.viewport&&(h.viewport.style.scrollBehavior=""),x.current=null})})})}),ln="ScrollAreaThumb",Hg=a.forwardRef((e,t)=>{const{forceMount:n,...o}=e,r=su(ln,e.__scopeScrollArea);return f.jsx(U,{present:n||r.hasThumb,children:f.jsx(Kg,{ref:t,...o})})}),Kg=a.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:o,...r}=e,s=fe(ln,n),i=su(ln,n),{onThumbPositionChange:c}=i,l=L(t,p=>i.onThumbChange(p)),u=a.useRef(void 0),d=Bn(()=>{u.current&&(u.current(),u.current=void 0)},100);return a.useEffect(()=>{const p=s.viewport;if(p){const v=()=>{if(d(),!u.current){const h=Gg(p,c);u.current=h,c()}};return c(),p.addEventListener("scroll",v),()=>p.removeEventListener("scroll",v)}},[s.viewport,d,c]),f.jsx(A.div,{"data-state":i.hasThumb?"visible":"hidden",...r,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...o},onPointerDownCapture:E(e.onPointerDownCapture,p=>{const h=p.target.getBoundingClientRect(),w=p.clientX-h.left,m=p.clientY-h.top;i.onThumbPointerDown({x:w,y:m})}),onPointerUp:E(e.onPointerUp,i.onThumbPointerUp)})});Hg.displayName=ln;var Rr="ScrollAreaCorner",iu=a.forwardRef((e,t)=>{const n=fe(Rr,e.__scopeScrollArea),o=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&o?f.jsx(Wg,{...e,ref:t}):null});iu.displayName=Rr;var Wg=a.forwardRef((e,t)=>{const{__scopeScrollArea:n,...o}=e,r=fe(Rr,n),[s,i]=a.useState(0),[c,l]=a.useState(0),u=!!(s&&c);return at(r.scrollbarX,()=>{const d=r.scrollbarX?.offsetHeight||0;r.onCornerHeightChange(d),l(d)}),at(r.scrollbarY,()=>{const d=r.scrollbarY?.offsetWidth||0;r.onCornerWidthChange(d),i(d)}),u?f.jsx(A.div,{...o,ref:t,style:{width:s,height:c,position:"absolute",right:r.dir==="ltr"?0:void 0,left:r.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function un(e){return e?parseInt(e,10):0}function cu(e,t){const n=e/t;return isNaN(n)?0:n}function Vn(e){const t=cu(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-n)*t;return Math.max(o,18)}function Ug(e,t,n,o="ltr"){const r=Vn(n),s=r/2,i=t||s,c=r-i,l=n.scrollbar.paddingStart+i,u=n.scrollbar.size-n.scrollbar.paddingEnd-c,d=n.content-n.viewport,p=o==="ltr"?[0,d]:[d*-1,0];return lu([l,u],p)(e)}function ns(e,t,n="ltr"){const o=Vn(t),r=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-r,i=t.content-t.viewport,c=s-o,l=n==="ltr"?[0,i]:[i*-1,0],u=wt(e,l);return lu([0,i],[0,c])(u)}function lu(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(n-e[0])}}function uu(e,t){return e>0&&e<t}var Gg=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},o=0;return function r(){const s={left:e.scrollLeft,top:e.scrollTop},i=n.left!==s.left,c=n.top!==s.top;(i||c)&&t(),n=s,o=window.requestAnimationFrame(r)}(),()=>window.cancelAnimationFrame(o)};function Bn(e,t){const n=H(e),o=a.useRef(0);return a.useEffect(()=>()=>window.clearTimeout(o.current),[]),a.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(n,t)},[n,t])}function at(e,t){const n=H(t);z(()=>{let o=0;if(e){const r=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(o),r.unobserve(e)}}},[e,n])}
56var $x=tu,Vx=ou,Bx=iu;export{zw as $,tw as A,Bp as B,nw as C,ew as D,Pa as E,Hp as F,Kp as G,kp as H,Sw as I,Fp as J,$p as K,Tw as L,jw as M,Lw as N,pw as O,qg as P,Fw as Q,Qg as R,Yg as S,Jg as T,Vw as U,Zg as V,Bw as W,$w as X,kw as Y,Hw as Z,Kw as _,cw as a,Yw as a0,Uw as a1,Gw as a2,ix as a3,cx as a4,Jw as a5,ex as a6,nx as a7,ox as a8,sx as a9,Nx as aA,Dx as aB,Ox as aC,Lx as aD,kx as aE,$x as aF,Vx as aG,Bx as aH,Lg as aI,Hg as aJ,rx as aa,tx as ab,ax as ac,Zw as ad,Qw as ae,dx as af,fx as ag,px as ah,ux as ai,hx as aj,gx as ak,wx as al,xx as am,mx as an,tl as ao,Dh as ap,el as aq,Ex as ar,Cx as as,Sx as at,ug as au,dg as av,Px as aw,Tx as ax,Ax as ay,Mx as az,rw as b,sw as c,aw as d,iw as e,vw as f,gw as g,ww as h,mw as i,hw as j,uw as k,dw as l,fw as m,yw as n,Mw as o,Nw as p,Ew as q,Rw as r,Pw as s,Aw as t,Iw as u,_w as v,Dw as w,bw as x,Cw as y,Vp as z};

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.