PageSourceSearch

https://founder-spark-63.lovable.app/assets/ui-radix-CKwvnS8F.js

js founder-spark-63.lovable.app collected 2026-10-03 03:31:45 UTC 112,026 bytes, 45 lines download raw bytes

vendor: 4,107 bytes, line 1
1import{r as a,R as Ie,a as Mt,b as hi,c as Eo}from"./react-vendor-h1rQ_Bae.js";import{j as p}from"./query-_koPiPsI.js";import{_ as Ce,a as Ro,b as gi}from"./supabase-DL6nu9mS.js";function Qn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function _t(...e){return t=>{let n=!1;const o=e.map(r=>{const s=Qn(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():Qn(e[r],null)}}}}function B(...e){return a.useCallback(_t(...e),e)}function be(e){const t=wi(e),n=a.forwardRef((o,r)=>{const{children:s,...i}=o,c=a.Children.toArray(s),l=c.find(yi);if(l){const u=l.props.children,d=c.map(f=>f===l?a.Children.count(u)>1?a.Children.only(null):a.isValidElement(u)?u.props.children:null:f);return p.jsx(t,{...i,ref:r,children:a.isValidElement(u)?a.cloneElement(u,void 0,d):null})}return p.jsx(t,{...i,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}var Rd=be("Slot");function wi(e){const t=a.forwardRef((n,o)=>{const{children:r,...s}=n;if(a.isValidElement(r)){const i=bi(r),c=Ci(s,r.props);return r.type!==a.Fragment&&(c.ref=o?_t(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 Po=Symbol("radix.slottable");function xi(e){const t=({children:n})=>p.jsx(p.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Po,t}function yi(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Po}function Ci(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 bi(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 R(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function Si(e,t){const n=a.createContext(t),o=s=>{const{children:i,...c}=s,l=a.useMemo(()=>c,Object.values(c));return p.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 me(e,t=[]){let n=[];function o(s,i){const c=a.createContext(i),l=n.length;n=[...n,i];const u=f=>{const{scope:v,children:h,...w}=f,m=v?.[e]?.[l]||c,g=a.useMemo(()=>w,Object.values(w));return p.jsx(m.Provider,{value:g,children:h})};u.displayName=s+"Provider";function d(f,v){const h=v?.[e]?.[l]||c,w=a.useContext(h);if(w)return w;if(i!==void 0)return i;throw new Error(`\`${f}\` 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,Ei(r,...t)]}function Ei(...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 f=l(s)[`__scope${u}`];return{...c,...f}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function An(e){const t=e+"CollectionProvider",[n,o]=me(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{const{scope:g,children:x}=m,y=Ie.useRef(null),C=Ie.useRef(new Map).current;return p.jsx(r,{scope:g,itemMap:C,collectionRef:y,children:x})};i.displayName=t;const c=e+"CollectionSlot",l=be(c),u=Ie.forwardRef((m,g)=>{const{scope:x,children:y}=m,C=s(c,x),b=B(g,C.collectionRef);return p.jsx(l,{ref:b,children:y})});u.displayName=c;const d=e+"CollectionItemSlot",f="data-radix-collection-item",v=be(d),h=Ie.forwardRef((m,g)=>{const{scope:x,children:y,...C}=m,b=Ie.useRef(null),S=B(g,b),M=s(d,x);return Ie.useEffect(()=>(M.itemMap.set(b,{ref:b,...C}),()=>
vendor: 8,291 bytes, line 1
1void M.itemMap.delete(b))),p.jsx(v,{[f]:"",ref:S,children:y})});h.displayName=d;function w(m){const g=s(e+"CollectionConsumer",m);return Ie.useCallback(()=>{const y=g.collectionRef.current;if(!y)return[];const C=Array.from(y.querySelectorAll(`[${f}]`));return Array.from(g.itemMap.values()).sort((M,E)=>C.indexOf(M.ref.current)-C.indexOf(E.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:i,Slot:u,ItemSlot:h},w,o]}var Ri=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],O=Ri.reduce((e,t)=>{const n=be(`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),p.jsx(l,{...c,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function To(e,t){e&&Mt.flushSync(()=>e.dispatchEvent(t))}function fe(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...n)=>t.current?.(...n),[])}function Pi(e,t=globalThis?.document){const n=fe(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 Ti="DismissableLayer",mn="dismissableLayer.update",Ai="dismissableLayer.pointerDownOutside",Mi="dismissableLayer.focusOutside",Jn,Ao=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ke=a.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:i,onDismiss:c,...l}=e,u=a.useContext(Ao),[d,f]=a.useState(null),v=d?.ownerDocument??globalThis?.document,[,h]=a.useState({}),w=B(t,E=>f(E)),m=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=m.indexOf(g),y=d?m.indexOf(d):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,b=y>=x,S=Ii(E=>{const A=E.target,N=[...u.branches].some(D=>D.contains(A));!b||N||(r?.(E),i?.(E),E.defaultPrevented||c?.())},v),M=Oi(E=>{const A=E.target;[...u.branches].some(D=>D.contains(A))||(s?.(E),i?.(E),E.defaultPrevented||c?.())},v);return Pi(E=>{y===u.layers.size-1&&(o?.(E),!E.defaultPrevented&&c&&(E.preventDefault(),c()))},v),a.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Jn=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),eo(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Jn)}},[d,v,n,u]),a.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),eo())},[d,u]),a.useEffect(()=>{const E=()=>h({});return document.addEventListener(mn,E),()=>document.removeEventListener(mn,E)},[]),p.jsx(O.div,{...l,ref:w,style:{pointerEvents:C?b?"auto":"none":void 0,...e.style},onFocusCapture:R(e.onFocusCapture,M.onFocusCapture),onBlurCapture:R(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:R(e.onPointerDownCapture,S.onPointerDownCapture)})});ke.displayName=Ti;var _i="DismissableLayerBranch",Mo=a.forwardRef((e,t)=>{const n=a.useContext(Ao),o=a.useRef(null),r=B(t,o);return a.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),p.jsx(O.div,{...e,ref:r})});Mo.displayName=_i;function Ii(e,t=globalThis?.document){const n=fe(e),o=a.useRef(!1),r=a.useRef(()=>{});return a.useEffect(()=>{const s=c=>{if(c.target&&!o.current){let l=function(){_o(Ai,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 Oi(e,t=globalThis?.document){const n=fe(e),o=a.useRef(!1);return a.useEffect(()=>{const r=s=>{s.target&&!o.current&&_o(Mi,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 eo(){const e=new CustomEvent(mn);document.dispatchEvent(e)}function _o(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?To(r,s):r.dispatchEvent(s)}var Pd=ke,Td=Mo,z=globalThis?.document?a.useLayoutEffect:()=>{},Di="Portal",ot=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?hi.createPortal(p.jsx(O.div,{...o,ref:t}),i):null});ot.displayName=Di;function Ni(e,t){return a.useReducer((n,o)=>t[n][o]??n,e)}var re=e=>{const{present:t,children:n}=e,o=Li(t),r=typeof n=="function"?n({present:o.isPresent}):a.Children.only(n),s=B(o.ref,ki(r));return typeof n=="function"||o.isPresent?a.cloneElement(r,{ref:s}):null};re.displayName="Presence";function Li(e){const[t,n]=a.useState(),o=a.useRef(null),r=a.useRef(e),s=a.useRef("none"),i=e?"mounted":"unmounted",[c,l]=Ni(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const u=ft(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=ft(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,f=h=>{const m=ft(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=ft(o.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:a.useCallback(u=>{o.current=u?getComputedStyle(u):null,n(u)},[])}}function ft(e){return e?.animationName||"none"}function ki(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 ji=Eo[" useInsertionEffect ".trim().toString()]||z;function Se({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,s,i]=Fi({defaultProp:t,onChange:n}),c=e!==void 0,l=c?e:r;{const d=a.useRef(e!==void 0);a.useEffect(()=>{const f=d.current;f!==c&&console.warn(`${o} is changing from ${f?"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 f=$i(d)?d(e):d;f!==e&&i.current?.(f)}else s(d)},[c,e,s,i]);return[l,u]}function Fi({defaultProp:e,onChange:t}){const[n,o]=a.useState(e),r=a.useRef(n),s=a.useRef(t);return ji(()=>{s.current=t},[t]),a.useEffect(()=>{r.current!==n&&(s.current?.(n),r.current=n)},[n,r]),[n,o,s]}function $i(e){return typeof e=="function"}var Io=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"}),Bi="VisuallyHidden",Oo=a.forwardRef((e,t)=>p.jsx(O.span,{...e,ref:t,style:{...Io,...e.style}}));Oo.displayName=Bi;var Wi=Oo,Hi=Eo[" useId ".trim().toString()]||(()=>{}),Vi=0;function ne(e){const[t,n]=a.useState(Hi());return z(()=>{n(o=>o??String(Vi++))},[e]),t?`radix-${t}`:""}const Ui=["top","right","bottom","left"],Ee=Math.min,Q=Math.max,Ct=Math.round,pt=Math.floor,de=e=>({x:e,y:e}),Ki={left:"right",right:"left",bottom:"top",top:"bottom"},Gi={start:"end",end:"start"};
vendor: 11,811 bytes, line 1
1function vn(e,t,n){return Q(e,Ee(t,n))}function we(e,t){return typeof e=="function"?e(t):e}function xe(e){return e.split("-")[0]}function ze(e){return e.split("-")[1]}function Mn(e){return e==="x"?"y":"x"}function _n(e){return e==="y"?"height":"width"}const zi=new Set(["top","bottom"]);function ue(e){return zi.has(xe(e))?"y":"x"}function In(e){return Mn(ue(e))}function Yi(e,t,n){n===void 0&&(n=!1);const o=ze(e),r=In(e),s=_n(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=bt(i)),[i,bt(i)]}function Xi(e){const t=bt(e);return[hn(e),t,hn(t)]}function hn(e){return e.replace(/start|end/g,t=>Gi[t])}const to=["left","right"],no=["right","left"],qi=["top","bottom"],Zi=["bottom","top"];function Qi(e,t,n){switch(e){case"top":case"bottom":return n?t?no:to:t?to:no;case"left":case"right":return t?qi:Zi;default:return[]}}function Ji(e,t,n,o){const r=ze(e);let s=Qi(xe(e),n==="start",o);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(hn)))),s}function bt(e){return e.replace(/left|right|bottom|top/g,t=>Ki[t])}function ea(e){return{top:0,right:0,bottom:0,left:0,...e}}function Do(e){return typeof e!="number"?ea(e):{top:e,right:e,bottom:e,left:e}}function St(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 oo(e,t,n){let{reference:o,floating:r}=e;const s=ue(t),i=In(t),c=_n(i),l=xe(t),u=s==="y",d=o.x+o.width/2-r.width/2,f=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:f};break;case"left":h={x:o.x-r.width,y:f};break;default:h={x:o.x,y:o.y}}switch(ze(t)){case"start":h[i]-=v*(n&&u?-1:1);break;case"end":h[i]+=v*(n&&u?-1:1);break}return h}const ta=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:i}=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:f}=oo(u,o,l),v=o,h={},w=0;for(let m=0;m<c.length;m++){const{name:g,fn:x}=c[m],{x:y,y:C,data:b,reset:S}=await x({x:d,y:f,initialPlacement:o,placement:v,strategy:r,middlewareData:h,rects:u,platform:i,elements:{reference:e,floating:t}});d=y??d,f=C??f,h={...h,[g]:{...h[g],...b}},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:f}=oo(u,v,l)),m=-1)}return{x:d,y:f,placement:v,strategy:r,middlewareData:h}};async function Qe(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:f="floating",altBoundary:v=!1,padding:h=0}=we(t,e),w=Do(h),g=c[v?f==="floating"?"reference":"floating":f],x=St(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})),y=f==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),b=await(s.isElement==null?void 0:s.isElement(C))?await(s.getScale==null?void 0:s.getScale(C))||{x:1,y:1}:{x:1,y:1},S=St(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:C,strategy:l}):y);return{top:(x.top-S.top+w.top)/b.y,bottom:(S.bottom-x.bottom+w.bottom)/b.y,left:(x.left-S.left+w.left)/b.x,right:(S.right-x.right+w.right)/b.x}}const na=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}=we(e,t)||{};if(u==null)return{};const f=Do(d),v={x:n,y:o},h=In(r),w=_n(h),m=await i.getDimensions(u),g=h==="y",x=g?"top":"left",y=g?"bottom":"right",C=g?"clientHeight":"clientWidth",b=s.reference[w]+s.reference[h]-v[h]-s.floating[w],S=v[h]-s.reference[h],M=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let E=M?M[C]:0;(!E||!await(i.isElement==null?void 0:i.isElement(M)))&&(E=c.floating[C]||s.floating[w]);const A=b/2-S/2,N=E/2-m[w]/2-1,D=Ee(f[x],N),F=Ee(f[y],N),$=D,k=E-m[w]-F,L=E/2-m[w]/2+A,W=vn($,L,k),I=!l.arrow&&ze(r)!=null&&L!==W&&s.reference[w]/2-(L<$?D:F)-m[w]/2<0,j=I?L<$?L-$:L-k:0;return{[h]:v[h]+j,data:{[h]:W,centerOffset:L-W-j,...I&&{alignmentOffset:j}},reset:I}}}),oa=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:f=!0,fallbackPlacements:v,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:m=!0,...g}=we(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const x=xe(r),y=ue(c),C=xe(c)===c,b=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=v||(C||!m?[bt(c)]:Xi(c)),M=w!=="none";!v&&M&&S.push(...Ji(c,m,w,b));const E=[c,...S],A=await Qe(t,g),N=[];let D=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&N.push(A[x]),f){const L=Yi(r,i,b);N.push(A[L[0]],A[L[1]])}if(D=[...D,{placement:r,overflows:N}],!N.every(L=>L<=0)){var F,$;const L=(((F=s.flip)==null?void 0:F.index)||0)+1,W=E[L];if(W&&(!(f==="alignment"?y!==ue(W):!1)||D.every(_=>_.overflows[0]>0&&ue(_.placement)===y)))return{data:{index:L,overflows:D},reset:{placement:W}};let I=($=D.filter(j=>j.overflows[0]<=0).sort((j,_)=>j.overflows[1]-_.overflows[1])[0])==null?void 0:$.placement;if(!I)switch(h){case"bestFit":{var k;const j=(k=D.filter(_=>{if(M){const P=ue(_.placement);return P===y||P==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(P=>P>0).reduce((P,K)=>P+K,0)]).sort((_,P)=>_[1]-P[1])[0])==null?void 0:k[0];j&&(I=j);break}case"initialPlacement":I=c;break}if(r!==I)return{reset:{placement:I}}}return{}}}};function ro(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function so(e){return Ui.some(t=>e[t]>=0)}const ra=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=we(e,t);switch(o){case"referenceHidden":{const s=await Qe(t,{...r,elementContext:"reference"}),i=ro(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:so(i)}}}case"escaped":{const s=await Qe(t,{...r,altBoundary:!0}),i=ro(s,n.floating);return{data:{escapedOffsets:i,escaped:so(i)}}}default:return{}}}}},No=new Set(["left","top"]);async function sa(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=xe(n),c=ze(n),l=ue(n)==="y",u=No.has(i)?-1:1,d=s&&l?-1:1,f=we(t,e);let{mainAxis:v,crossAxis:h,alignmentAxis:w}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.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 ia=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 sa(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}}}}},aa=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}=g;return{x,y}}},...l}=we(e,t),u={x:n,y:o},d=await Qe(t,l),f=ue(xe(r)),v=Mn(f);let h=u[v],w=u[f];if(s){const g=v==="y"?"top":"left",x=v==="y"?"bottom":"right",y=h+d[g],C=h-d[x];h=vn(y,h,C)}if(i){const g=f==="y"?"top":"left",x=f==="y"?"bottom":"right",y=w+d[g],C=w-d[x];w=vn(y,w,C)}const m=c.fn({...t,[v]:h,[f]:w});return{...m,data:{x:m.x-n,y:m.y-o,enabled:{[v]:s,[f]:i}}}}}},ca=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}=we(e,t),d={x:n,y:o},f=ue(r),v=Mn(f);let h=d[v],w=d[f];const m=we(c,t),g=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const C=v==="y"?"height":"width",b=s.reference[v]-s.floating[C]+g.mainAxis,S=s.reference[v]+s.reference[C]-g.mainAxis;h<b?h=b:h>S&&(h=S)}if(u){var x,y;const C=v==="y"?"width":"height",b=No.has(xe(r)),S=s.reference[f]-s.floating[C]+(b&&((x=i.offset)==null?void 0:x[f])||0)+(b?0:g.crossAxis),M=s.reference[f]+s.reference[C]+(b?0:((y=i.offset)==null?void 0:y[f])||0)-(b?g.crossAxis:0);w<S?w=S:w>M&&(w=M)}return{[v]:h,[f]:w}}}},la=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}=we(e,t),d=await Qe(t,u),f=xe(r),v=ze(r),h=ue(r)==="y",{width:w,height:m}=s.floating;let g,x;f==="top"||f==="bottom"?(g=f,x=v===(await(i.isRTL==null?void 0:i.isRTL(c.floating))?"start":"end")?"left":"right"):(x=f,g=v==="end"?"top":"bottom");const y=m-d.top-d.bottom,C=w-d.left-d.right,b=Ee(m-d[g],y),S=Ee(w-d[x],C),M=!t.middlewareData.shift;let E=b,A=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=C),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(E=y),M&&!v){const D=Q(d.left,0),F=Q(d.right,0),$=Q(d.top,0),k=Q(d.bottom,0);h?A=w-2*(D!==0||F!==0?D+F:Q(d.left,d.right)):E=m-2*($!==0||k!==0?$+k:Q(d.top,d.bottom))}await l({...t,availableWidth:A,availableHeight:E});const N=await i.getDimensions(c.floating);return w!==N.width||m!==N.height?{reset:{rects:!0}}:{}}}};function It(){return typeof window<"u"}function Ye(e){return Lo(e)?(e.nodeName||"").toLowerCase():"#document"}function J(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ve(e){var t;return(t=(Lo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Lo(e){return It()?e instanceof Node||e instanceof J(e).Node:!1}function ae(e){return It()?e instanceof Element||e instanceof J(e).Element:!1}function pe(e){return It()?e instanceof HTMLElement||e instanceof J(e).HTMLElement:!1}function io(e){return!It()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof J(e).ShadowRoot}const ua=new Set(["inline","contents"]);function rt(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=ce(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!ua.has(r)}const da=new Set(["table","td","th"]);function fa(e){return da.has(Ye(e))}const pa=[":popover-open",":modal"];function Ot(e){return pa.some(t=>{try{return e.matches(t)}catch{return!1}})}const ma=["transform","translate","scale","rotate","perspective"],va=["transform","translate","scale","rotate","perspective","filter"],ha=["paint","layout","strict","content"];function On(e){const t=Dn(),n=ae(e)?ce(e):e;return ma.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)||va.some(o=>(n.willChange||"").includes(o))||ha.some(o=>(n.contain||"").includes(o))}function ga(e){let t=Re(e);for(;pe(t)&&!Ue(t);){if(On(t))return t;if(Ot(t))return null;t=Re(t)}return null}function Dn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const wa=new Set(["html","body","#document"]);function Ue(e){return wa.has(Ye(e))}function ce(e){return J(e).getComputedStyle(e)}function Dt(e){return ae(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Re(e){if(Ye(e)==="html")return e;const t=e.assignedSlot||e.parentNode||io(e)&&e.host||ve(e);return io(t)?t.host:t}function ko(e){const t=Re(e);return Ue(t)?e.ownerDocument?e.ownerDocument.body:e.body:pe(t)&&rt(t)?t:ko(t)}function Je(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=ko(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),i=J(r);if(s){const c=gn(i);
vendor: 5,852 bytes, line 1
1return t.concat(i,i.visualViewport||[],rt(r)?r:[],c&&n?Je(c):[])}return t.concat(r,Je(r,[],n))}function gn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function jo(e){const t=ce(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=pe(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o,c=Ct(n)!==s||Ct(o)!==i;return c&&(n=s,o=i),{width:n,height:o,$:c}}function Nn(e){return ae(e)?e:e.contextElement}function He(e){const t=Nn(e);if(!pe(t))return de(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=jo(t);let i=(s?Ct(n.width):n.width)/o,c=(s?Ct(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const xa=de(0);function Fo(e){const t=J(e);return!Dn()||!t.visualViewport?xa:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ya(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==J(e)?!1:t}function Oe(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=Nn(e);let i=de(1);t&&(o?ae(o)&&(i=He(o)):i=He(e));const c=ya(s,n,o)?Fo(s):de(0);let l=(r.left+c.x)/i.x,u=(r.top+c.y)/i.y,d=r.width/i.x,f=r.height/i.y;if(s){const v=J(s),h=o&&ae(o)?J(o):o;let w=v,m=gn(w);for(;m&&o&&h!==w;){const g=He(m),x=m.getBoundingClientRect(),y=ce(m),C=x.left+(m.clientLeft+parseFloat(y.paddingLeft))*g.x,b=x.top+(m.clientTop+parseFloat(y.paddingTop))*g.y;l*=g.x,u*=g.y,d*=g.x,f*=g.y,l+=C,u+=b,w=J(m),m=gn(w)}}return St({width:d,height:f,x:l,y:u})}function Ln(e,t){const n=Dt(e).scrollLeft;return t?t.left+n:Oe(ve(e)).left+n}function $o(e,t,n){n===void 0&&(n=!1);const o=e.getBoundingClientRect(),r=o.left+t.scrollLeft-(n?0:Ln(e,o)),s=o.top+t.scrollTop;return{x:r,y:s}}function Ca(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",i=ve(o),c=t?Ot(t.floating):!1;if(o===i||c&&s)return n;let l={scrollLeft:0,scrollTop:0},u=de(1);const d=de(0),f=pe(o);if((f||!f&&!s)&&((Ye(o)!=="body"||rt(i))&&(l=Dt(o)),pe(o))){const h=Oe(o);u=He(o),d.x=h.x+o.clientLeft,d.y=h.y+o.clientTop}const v=i&&!f&&!s?$o(i,l,!0):de(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 ba(e){return Array.from(e.getClientRects())}function Sa(e){const t=ve(e),n=Dt(e),o=e.ownerDocument.body,r=Q(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=Q(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+Ln(e);const c=-n.scrollTop;return ce(o).direction==="rtl"&&(i+=Q(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:i,y:c}}function Ea(e,t){const n=J(e),o=ve(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=Dn();(!u||u&&t==="fixed")&&(c=r.offsetLeft,l=r.offsetTop)}return{width:s,height:i,x:c,y:l}}const Ra=new Set(["absolute","fixed"]);function Pa(e,t){const n=Oe(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=pe(e)?He(e):de(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 ao(e,t,n){let o;if(t==="viewport")o=Ea(e,n);else if(t==="document")o=Sa(ve(e));else if(ae(t))o=Pa(t,n);else{const r=Fo(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return St(o)}function Bo(e,t){const n=Re(e);return n===t||!ae(n)||Ue(n)?!1:ce(n).position==="fixed"||Bo(n,t)}function Ta(e,t){const n=t.get(e);if(n)return n;let o=Je(e,[],!1).filter(c=>ae(c)&&Ye(c)!=="body"),r=null;const s=ce(e).position==="fixed";let i=s?Re(e):e;for(;ae(i)&&!Ue(i);){const c=ce(i),l=On(i);!l&&c.position==="fixed"&&(r=null),(s?!l&&!r:!l&&c.position==="static"&&!!r&&Ra.has(r.position)||rt(i)&&!l&&Bo(e,i))?o=o.filter(d=>d!==i):r=c,i=Re(i)}return t.set(e,o),o}function Aa(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[...n==="clippingAncestors"?Ot(t)?[]:Ta(t,this._c):[].concat(n),o],c=i[0],l=i.reduce((u,d)=>{const f=ao(t,d,r);return u.top=Q(f.top,u.top),u.right=Ee(f.right,u.right),u.bottom=Ee(f.bottom,u.bottom),u.left=Q(f.left,u.left),u},ao(t,c,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Ma(e){const{width:t,height:n}=jo(e);return{width:t,height:n}}function _a(e,t,n){const o=pe(t),r=ve(t),s=n==="fixed",i=Oe(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const l=de(0);function u(){l.x=Ln(r)}if(o||!o&&!s)if((Ye(t)!=="body"||rt(r))&&(c=Dt(t)),o){const h=Oe(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?$o(r,c):de(0),f=i.left+c.scrollLeft-l.x-d.x,v=i.top+c.scrollTop-l.y-d.y;return{x:f,y:v,width:i.width,height:i.height}}function on(e){return ce(e).position==="static"}function co(e,t){if(!pe(e)||ce(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ve(e)===n&&(n=n.ownerDocument.body),n}function Wo(e,t){const n=J(e);if(Ot(e))return n;if(!pe(e)){let r=Re(e);for(;r&&!Ue(r);){if(ae(r)&&!on(r))return r;r=Re(r)}return n}let o=co(e,t);for(;o&&fa(o)&&on(o);)o=co(o,t);return o&&Ue(o)&&on(o)&&!On(o)?n:o||ga(e)||n}const Ia=async function(e){const t=this.getOffsetParent||Wo,n=this.getDimensions,o=await n(e.floating);return{reference:_a(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Oa(e){return ce(e).direction==="rtl"}const Da={convertOffsetParentRelativeRectToViewportRelativeRect:Ca,getDocumentElement:ve,getClippingRect:Aa,getOffsetParent:Wo,getElementRects:Ia,getClientRects:ba,getDimensions:Ma,getScale:He,isElement:ae,isRTL:Oa};function Ho(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Na(e,t){let n=null,o;const r=ve(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:f,width:v,height:h}=u;if(c||t(),!v||!h)return;const w=pt(f),m=pt(r.clientWidth-(d+v)),g=pt(r.clientHeight-(f+h)),x=pt(
vendor: 19,833 bytes, line 1
1d),C={rootMargin:-w+"px "+-m+"px "+-g+"px "+-x+"px",threshold:Q(0,Ee(1,l))||1};let b=!0;function S(M){const E=M[0].intersectionRatio;if(E!==l){if(!b)return i();E?i(!1,E):o=setTimeout(()=>{i(!1,1e-7)},1e3)}E===1&&!Ho(u,e.getBoundingClientRect())&&i(),b=!1}try{n=new IntersectionObserver(S,{...C,root:r.ownerDocument})}catch{n=new IntersectionObserver(S,C)}n.observe(e)}return i(!0),s}function La(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=Nn(e),d=r||s?[...u?Je(u):[],...Je(t)]:[];d.forEach(x=>{r&&x.addEventListener("scroll",n,{passive:!0}),s&&x.addEventListener("resize",n)});const f=u&&c?Na(u,n):null;let v=-1,h=null;i&&(h=new ResizeObserver(x=>{let[y]=x;y&&y.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var C;(C=h)==null||C.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let w,m=l?Oe(e):null;l&&g();function g(){const x=Oe(e);m&&!Ho(m,x)&&n(),m=x,w=requestAnimationFrame(g)}return n(),()=>{var x;d.forEach(y=>{r&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),f?.(),(x=h)==null||x.disconnect(),h=null,l&&cancelAnimationFrame(w)}}const ka=ia,ja=aa,Fa=oa,$a=la,Ba=ra,lo=na,Wa=ca,Ha=(e,t,n)=>{const o=new Map,r={platform:Da,...n},s={...r.platform,_c:o};return ta(e,t,{...r,platform:s})};var Va=typeof document<"u",Ua=function(){},wt=Va?a.useLayoutEffect:Ua;function Et(e,t){if(e===t)return!0;if(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(!Et(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)&&!Et(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Vo(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function uo(e,t){const n=Vo(e);return Math.round(t*n)/n}function rn(e){const t=a.useRef(e);return wt(()=>{t.current=e}),t}function Ka(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,f]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,h]=a.useState(o);Et(v,o)||h(o);const[w,m]=a.useState(null),[g,x]=a.useState(null),y=a.useCallback(_=>{_!==M.current&&(M.current=_,m(_))},[]),C=a.useCallback(_=>{_!==E.current&&(E.current=_,x(_))},[]),b=s||w,S=i||g,M=a.useRef(null),E=a.useRef(null),A=a.useRef(d),N=l!=null,D=rn(l),F=rn(r),$=rn(u),k=a.useCallback(()=>{if(!M.current||!E.current)return;const _={placement:t,strategy:n,middleware:v};F.current&&(_.platform=F.current),Ha(M.current,E.current,_).then(P=>{const K={...P,isPositioned:$.current!==!1};L.current&&!Et(A.current,K)&&(A.current=K,Mt.flushSync(()=>{f(K)}))})},[v,t,n,F,$]);wt(()=>{u===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,f(_=>({..._,isPositioned:!1})))},[u]);const L=a.useRef(!1);wt(()=>(L.current=!0,()=>{L.current=!1}),[]),wt(()=>{if(b&&(M.current=b),S&&(E.current=S),b&&S){if(D.current)return D.current(b,S,k);k()}},[b,S,k,D,N]);const W=a.useMemo(()=>({reference:M,floating:E,setReference:y,setFloating:C}),[y,C]),I=a.useMemo(()=>({reference:b,floating:S}),[b,S]),j=a.useMemo(()=>{const _={position:n,left:0,top:0};if(!I.floating)return _;const P=uo(I.floating,d.x),K=uo(I.floating,d.y);return c?{..._,transform:"translate("+P+"px, "+K+"px)",...Vo(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:P,top:K}},[n,c,I.floating,d.x,d.y]);return a.useMemo(()=>({...d,update:k,refs:W,elements:I,floatingStyles:j}),[d,k,W,I,j])}const Ga=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?lo({element:o.current,padding:r}).fn(n):{}:o?lo({element:o,padding:r}).fn(n):{}}}},za=(e,t)=>({...ka(e),options:[e,t]}),Ya=(e,t)=>({...ja(e),options:[e,t]}),Xa=(e,t)=>({...Wa(e),options:[e,t]}),qa=(e,t)=>({...Fa(e),options:[e,t]}),Za=(e,t)=>({...$a(e),options:[e,t]}),Qa=(e,t)=>({...Ba(e),options:[e,t]}),Ja=(e,t)=>({...Ga(e),options:[e,t]});var ec="Arrow",Uo=a.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...s}=e;return p.jsx(O.svg,{...s,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});Uo.displayName=ec;var tc=Uo;function nc(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 kn="Popper",[Ko,Pe]=me(kn),[oc,Go]=Ko(kn),zo=e=>{const{__scopePopper:t,children:n}=e,[o,r]=a.useState(null);return p.jsx(oc,{scope:t,anchor:o,onAnchorChange:r,children:n})};zo.displayName=kn;var Yo="PopperAnchor",Xo=a.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,s=Go(Yo,n),i=a.useRef(null),c=B(t,i);return a.useEffect(()=>{s.onAnchorChange(o?.current||i.current)}),o?null:p.jsx(O.div,{...r,ref:c})});Xo.displayName=Yo;var jn="PopperContent",[rc,sc]=Ko(jn),qo=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:f="partial",hideWhenDetached:v=!1,updatePositionStrategy:h="optimized",onPlaced:w,...m}=e,g=Go(jn,n),[x,y]=a.useState(null),C=B(t,T=>y(T)),[b,S]=a.useState(null),M=nc(b),E=M?.width??0,A=M?.height??0,N=o+(s!=="center"?"-"+s:""),D=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},F=Array.isArray(u)?u:[u],$=F.length>0,k={padding:D,boundary:F.filter(ac),altBoundary:$},{refs:L,floatingStyles:W,placement:I,isPositioned:j,middlewareData:_}=Ka({strategy:"fixed",placement:N,whileElementsMounted:(...T)=>La(...T,{animationFrame:h==="always"}),elements:{reference:g.anchor},middleware:[za({mainAxis:r+A,alignmentAxis:i}),l&&Ya({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?Xa():void 0,...k}),l&&qa({...k}),Za({...k,apply:({elements:T,rects:H,availableWidth:X,availableHeight:V})=>{const{width:U,height:G}=H.reference,te=T.floating.style;te.setProperty("--radix-popper-available-width",`${X}px`),te.setProperty("--radix-popper-available-height",`${V}px`),te.setProperty("--radix-popper-anchor-width",`${U}px`),te.setProperty("--radix-popper-anchor-height",`${G}px`)}}),b&&Ja({element:b,padding:c}),cc({arrowWidth:E,arrowHeight:A}),v&&Qa({strategy:"referenceHidden",...k})]}),[P,K]=Jo(I),Y=fe(w);z(()=>{j&&Y?.()},[j,Y]);const se=_.arrow?.x,he=_.arrow?.y,ee=_.arrow?.centerOffset!==0,[ge,Z]=a.useState();return z(()=>{x&&Z(window.getComputedStyle(x).zIndex)},[x]),p.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:j?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[_.transformOrigin?.x,_.transformOrigin?.y].join(" "),..._.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(rc,{scope:n,placedSide:P,onArrowChange:S,arrowX:se,arrowY:he,shouldHideArrow:ee,children:p.jsx(O.div,{"data-side":P,"data-align":K,...m,ref:C,style:{...m.style,animation:j?void 0:"none"}})})})});qo.displayName=jn;var Zo="PopperArrow",ic={top:"bottom",right:"left",bottom:"top",left:"right"},Qo=a.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,s=sc(Zo,o),i=ic[s.placedSide];return p.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:p.jsx(tc,{...r,ref:n,style:{...r.style,display:"block"}})})});Qo.displayName=Zo;function ac(e){return e!==null}var cc=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]=Jo(n),f={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?f:`${v}px`,m=`${-l}px`):u==="top"?(w=i?f:`${v}px`,m=`${o.floating.height+l}px`):u==="right"?(w=`${-l}px`,m=i?f:`${h}px`):u==="left"&&(w=`${o.floating.width+l}px`,m=i?f:`${h}px`),{data:{x:w,y:m}}}});function Jo(e){const[t,n="center"]=e.split("-");return[t,n]}var Nt=zo,st=Xo,Lt=qo,kt=Qo,[jt,Ad]=me("Tooltip",[Pe]),Ft=Pe(),er="TooltipProvider",lc=700,wn="tooltip.open",[uc,Fn]=jt(er),tr=e=>{const{__scopeTooltip:t,delayDuration:n=lc,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)},[]),p.jsx(uc,{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})};tr.displayName=er;var et="Tooltip",[dc,$t]=jt(et),nr=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:r,onOpenChange:s,disableHoverableContent:i,delayDuration:c}=e,l=Fn(et,e.__scopeTooltip),u=Ft(t),[d,f]=a.useState(null),v=ne(),h=a.useRef(0),w=i??l.disableHoverableContent,m=c??l.delayDuration,g=a.useRef(!1),[x,y]=Se({prop:o,defaultProp:r??!1,onChange:E=>{E?(l.onOpen(),document.dispatchEvent(new CustomEvent(wn))):l.onClose(),s?.(E)},caller:et}),C=a.useMemo(()=>x?g.current?"delayed-open":"instant-open":"closed",[x]),b=a.useCallback(()=>{window.clearTimeout(h.current),h.current=0,g.current=!1,y(!0)},[y]),S=a.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y(!1)},[y]),M=a.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{g.current=!0,y(!0),h.current=0},m)},[m,y]);return a.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),p.jsx(Nt,{...u,children:p.jsx(dc,{scope:t,contentId:v,open:x,stateAttribute:C,trigger:d,onTriggerChange:f,onTriggerEnter:a.useCallback(()=>{l.isOpenDelayedRef.current?M():b()},[l.isOpenDelayedRef,M,b]),onTriggerLeave:a.useCallback(()=>{w?S():(window.clearTimeout(h.current),h.current=0)},[S,w]),onOpen:b,onClose:S,disableHoverableContent:w,children:n})})};nr.displayName=et;var xn="TooltipTrigger",or=a.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=$t(xn,n),s=Fn(xn,n),i=Ft(n),c=a.useRef(null),l=B(t,c,r.onTriggerChange),u=a.useRef(!1),d=a.useRef(!1),f=a.useCallback(()=>u.current=!1,[]);return a.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),p.jsx(st,{asChild:!0,...i,children:p.jsx(O.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...o,ref:l,onPointerMove:R(e.onPointerMove,v=>{v.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(r.onTriggerEnter(),d.current=!0)}),onPointerLeave:R(e.onPointerLeave,()=>{r.onTriggerLeave(),d.current=!1}),onPointerDown:R(e.onPointerDown,()=>{r.open&&r.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:R(e.onFocus,()=>{u.current||r.onOpen()}),onBlur:R(e.onBlur,r.onClose),onClick:R(e.onClick,r.onClose)})})});or.displayName=xn;var fc="TooltipPortal",[Md,pc]=jt(fc,{forceMount:void 0}),Ke="TooltipContent",rr=a.forwardRef((e,t)=>{const n=pc(Ke,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...s}=e,i=$t(Ke,e.__scopeTooltip);return p.jsx(re,{present:o||i.open,children:i.disableHoverableContent?p.jsx(sr,{side:r,...s,ref:t}):p.jsx(mc,{side:r,...s,ref:t})})}),mc=a.forwardRef((e,t)=>{const n=$t(Ke,e.__scopeTooltip),o=Fn(Ke,e.__scopeTooltip),r=a.useRef(null),s=B(t,r),[i,c]=a.useState(null),{trigger:l,onClose:u}=n,d=r.current,{onPointerInTransitChange:f}=o,v=a.useCallback(()=>{c(null),f(!1)},[f]),h=a.useCallback((w,m)=>{const g=w.currentTarget,x={x:w.clientX,y:w.clientY},y=xc(x,g.getBoundingClientRect()),C=yc(x,y),b=Cc(m.getBoundingClientRect()),S=Sc([...C,...b]);c(S),f(!0)},[f]);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},y=l?.contains(g)||d?.contains(g),C=!bc(x,i);y?v():C&&(v(),u())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[l,d,i,u,v]),p.jsx(sr,{...e,ref:s})}),[vc,hc]=jt(et,{isInside:!1}),gc=xi("TooltipContent"),sr=a.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":r,onEscapeKeyDown:s,onPointerDownOutside:i,...c}=e,l=$t(Ke,n),u=Ft(n),{onClose:d}=l;return a.useEffect(()=>(document.addEventListener(wn,d),()=>document.removeEventListener(wn,d)),[d]),a.useEffect(()=>{if(l.trigger){const f=v=>{v.target?.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),p.jsx(ke,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:p.jsxs(Lt,{"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:[p.jsx(gc,{children:o}),p.jsx(vc,{scope:n,isInside:!0,children:p.jsx(Wi,{id:l.contentId,role:"tooltip",children:r||o})})]})})});rr.displayName=Ke;var ir="TooltipArrow",wc=a.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,r=Ft(n);return hc(ir,n).isInside?null:p.jsx(kt,{...r,...o,ref:t})});wc.displayName=ir;function xc(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 yc(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 Cc(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 bc(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,f=l.x,v=l.y;d>o!=v>o&&n<(f-u)*(o-d)/(v-d)+u&&(r=!r)}return r}function Sc(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),Ec(t)}function Ec(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 _d=tr,Id=nr,Od=or,Dd=rr,sn="focusScope.autoFocusOnMount",an="focusScope.autoFocusOnUnmount",fo={bubbles:!1,cancelable:!0},Rc="FocusScope",it=a.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...i}=e,[c,l]=a.useState(null),u=fe(r),d=fe(s),f=a.useRef(null),v=B(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(C){if(h.paused||!c)return;const b=C.target;c.contains(b)?f.current=b:ye(f.current,{select:!0})},g=function(C){if(h.paused||!c)return;const b=C.relatedTarget;b!==null&&(c.contains(b)||ye(f.current,{select:!0}))},x=function(C){if(document.activeElement===document.body)for(const S of C)S.removedNodes.length>0&&ye(c)};document.addEventListener("focusin",m),document.addEventListener("focusout",g);const y=new MutationObserver(x);return c&&y.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",g),y.disconnect()}}},[o,c,h.paused]),a.useEffect(()=>{if(c){mo.add(h);const m=document.activeElement;if(!c.contains(m)){const x=new CustomEvent(sn,fo);c.addEventListener(sn,u),c.dispatchEvent(x),x.defaultPrevented||(Pc(Ic(ar(c)),{select:!0}),document.activeElement===m&&ye(c))}return()=>{c.removeEventListener(sn,u),setTimeout(()=>{const x=new CustomEvent(an,fo);c.addEventListener(an,d),c.dispatchEvent(x),x.defaultPrevented||ye(m??document.body,{select:!0}),c.removeEventListener(an,d),mo.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 y=m.currentTarget,[C,b]=Tc(y);C&&b?!m.shiftKey&&x===b?(m.preventDefault(),n&&ye(C,{select:!0})):m.shiftKey&&x===C&&(m.preventDefault(),n&&ye(b,{select:!0})):x===y&&m.preventDefault()}},[n,o,h.paused]);return p.jsx(O.div,{tabIndex:-1,...i,ref:v,onKeyDown:w})});it.displayName=Rc;function Pc(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(ye(o,{select:t}),document.activeElement!==n)return}function Tc(e){const t=ar(e),n=po(t,e),o=po(t.reverse(),e);return[n,o]}function ar(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 po(e,t){for(const n of e)if(!Ac(n,{upTo:t}))return n}function Ac(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 Mc(e){return e instanceof HTMLInputElement&&"select"in e}function ye(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Mc(e)&&t&&e.select()}}var mo=_c();function _c(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=vo(e,t),e.unshift(t)},remove(t){e=vo(e,t),e[0]?.resume()}}}function vo(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function Ic(e){return e.filter(t=>t.tagName!=="A")}var cn=0;function Bt(){a.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ho()),document.body.insertAdjacentElement("beforeend",e[1]??ho()),cn++,()=>{cn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),cn--}},[])}function ho(){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: 4,904 bytes, lines 1-16
1style.position="fixed",e.style.pointerEvents="none",e}var xt="right-scroll-bar-position",yt="width-before-scroll-bar",Oc="with-scroll-bars-hidden",Dc="--removed-body-scroll-bar-size";function ln(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Nc(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 Lc=typeof window<"u"?a.useLayoutEffect:a.useEffect,go=new WeakMap;function kc(e,t){var n=Nc(null,function(o){return e.forEach(function(r){return ln(r,o)})});return Lc(function(){var o=go.get(n);if(o){var r=new Set(o),s=new Set(e),i=n.current;r.forEach(function(c){s.has(c)||ln(c,null)}),s.forEach(function(c){r.has(c)||ln(c,i)})}go.set(n,e)},[e]),n}function jc(e){return e}function Fc(e,t){t===void 0&&(t=jc);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 $c(e){e===void 0&&(e={});var t=Fc(null);return t.options=Ce({async:!0,ssr:!1},e),t}var cr=function(e){var t=e.sideCar,n=Ro(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,Ce({},n))};cr.isSideCarExport=!0;function Bc(e,t){return e.useMedium(t),cr}var lr=$c(),un=function(){},Wt=a.forwardRef(function(e,t){var n=a.useRef(null),o=a.useState({onScrollCapture:un,onWheelCapture:un,onTouchMoveCapture:un}),r=o[0],s=o[1],i=e.forwardProps,c=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,v=e.sideCar,h=e.noRelative,w=e.noIsolation,m=e.inert,g=e.allowPinchZoom,x=e.as,y=x===void 0?"div":x,C=e.gapMode,b=Ro(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=v,M=kc([n,t]),E=Ce(Ce({},b),r);return a.createElement(a.Fragment,null,d&&a.createElement(S,{sideCar:lr,removeScrollBar:u,shards:f,noRelative:h,noIsolation:w,inert:m,setCallbacks:s,allowPinchZoom:!!g,lockRef:n,gapMode:C}),i?a.cloneElement(a.Children.only(c),Ce(Ce({},E),{ref:M})):a.createElement(y,Ce({},E,{className:l,ref:M}),c))});Wt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Wt.classNames={fullWidth:yt,zeroRight:xt};var Wc=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Hc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Wc();return t&&e.setAttribute("nonce",t),e}function Vc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Uc(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Kc=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Hc())&&(Vc(t,n),Uc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Gc=function(){var e=Kc();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ur=function(){var e=Gc(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},zc={left:0,top:0,right:0,gap:0},dn=function(e){return parseInt(e||"",10)||0},Yc=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[dn(n),dn(o),dn(r)]},Xc=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return zc;var t=Yc(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])}},qc=ur(),Ve="data-scroll-locked",Zc=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(Oc,` {
3   overflow: hidden `).concat(o,`;
4   padding-right: `).concat(c,"px ").concat(o,`;
5  }
6  body[`).concat(Ve,`] {
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(xt,` {
20    right: `).concat(c,"px ").concat(o,`;
21  }
22  
23  .`).concat(yt,` {
24    margin-right: `).concat(c,"px ").concat(o,`;
25  }
26  
27  .`).concat(xt," .").concat(xt,` {
28    right: 0 `).concat(o,`;
29  }
30  
31  .`).concat(yt," .").concat(yt,` {
32    margin-right: 0 `).concat(o,`;
33  }
34  
35  body[`).concat(Ve,`] {
36    `).concat(Dc,": ").concat(c,`px;
37  }
38`)},wo=function(){var e=parseInt(document.body.getAttribute(Ve)||"0",10);return isFinite(e)?e:0},Qc=function(){a.useEffect(function(){return document.body.setAttribute(Ve,(wo()+1).toString()),function(){var e=wo()-1;e<=0?document.body.removeAttribute(Ve):document.body.setAttribute(Ve,e.toString())}},[])},Jc=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;Qc();var s=a.useMemo(function(){return Xc(r)},[r]);return a.createElement(qc,{styles:Zc(s,!t,r,n?"":"!important")})},yn=!1;if(typeof window<"u")try{var mt=Object.defineProperty({},"passive",{get:function(){return yn=!0,!0}});window.addEventListener("test",mt,mt),window.removeEventListener("test",mt,mt)}catch{yn=!1}var $e=yn?{passive:!1}:!1,el=function(e){return e.tagName==="TEXTAREA"},dr=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!el(e)&&n[t]==="visible")},tl=function(e){return dr(e,"overflowY")},nl=function(e){return dr(e,"overflowX")},xo=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=fr(e,o);if(r){var s=pr(e,o),i=s[1],c=s[2];if(i>c)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},ol=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},rl=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},fr=function(e,t){return e==="v"?tl(t):nl(t)},pr=function(e,t){return e==="v"?ol(t):rl(t)},sl=function(e,t){return e==="h"&&t==="rtl"?-1:1},il=function(e,t,n,o,r){var s=sl(e,window.getComputedStyle(t).direction),i=s*o,c=n.target,l=t.contains(c),u=!1,d=i>0,f=0,v=0;do{if(!c)break;var h=pr(e,c),w=h[0],m=h[1],g=h[2],x=m-g-s*w;(w||x)&&fr(e,c)&&(f+=x,v+=w);var y=c.parentNode;c=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!l&&c!==document.body||l&&(t.contains(c)||t===c));return(d&&(Math.abs(f)<1||!r)||!d&&(Math.abs(v)<1||!r))&&(u=!0),u},vt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},yo=function(e){return[e.deltaX,e.deltaY]},Co=function(e){return e&&"current"in e?e.current:e},al=function(e,t){return e[0]===t[0]&&e[1]===t[1]},cl=function(e){return`
39  .block-interactivity-`.concat(e,` {pointer-events: none;}
40  .allow-interactivity-`).concat(e,` {pointer-events: all;}
41`)},ll=0,Be=[];function ul(e){var t=a.useRef([]),n=a.useRef([0,0]),o=a.useRef(),r=a.useState(ll++)[0],s=a.useState(ur)[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=gi([e.lockRef.current],(e.shards||[]).map(Co),!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=vt(m),y=n.current,C="deltaX"in m?m.deltaX:y[0]-x[0],b="deltaY"in m?m.deltaY:y[1]-x[1],S,M=m.target,E=Math.abs(C)>Math.abs(b)?"h":"v";if("touches"in m&&E==="h"&&M.type==="range")return!1;var A=xo(E,M);if(!A)return!0;if(A?S=E:(S=E==="v"?"h":"v",A=xo(E,M)),!A)return!1;if(!o.current&&"changedTouches"in m&&(C||b)&&(o.current=S),!S)return!0;var N=o.current||S;return il(N,g,m,N==="h"?C:b,!0)},[]),l=a.useCallback(function(m){var g=m;if(!(!Be.length||Be[Be.length-1]!==s)){var x="deltaY"in g?yo(g):vt(g),y=t.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&al(S.delta,x)})[0];if(y&&y.should){g.cancelable&&g.preventDefault();return}
vendor: 4,330 bytes, line 41
41if(!y){var C=(i.current.shards||[]).map(Co).filter(Boolean).filter(function(S){return S.contains(g.target)}),b=C.length>0?c(g,C[0]):!i.current.noIsolation;b&&g.cancelable&&g.preventDefault()}}},[]),u=a.useCallback(function(m,g,x,y){var C={name:m,delta:g,target:x,should:y,shadowParent:dl(x)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(b){return b!==C})},1)},[]),d=a.useCallback(function(m){n.current=vt(m),o.current=void 0},[]),f=a.useCallback(function(m){u(m.type,yo(m),m.target,c(m,e.lockRef.current))},[]),v=a.useCallback(function(m){u(m.type,vt(m),m.target,c(m,e.lockRef.current))},[]);a.useEffect(function(){return Be.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:v}),document.addEventListener("wheel",l,$e),document.addEventListener("touchmove",l,$e),document.addEventListener("touchstart",d,$e),function(){Be=Be.filter(function(m){return m!==s}),document.removeEventListener("wheel",l,$e),document.removeEventListener("touchmove",l,$e),document.removeEventListener("touchstart",d,$e)}},[]);var h=e.removeScrollBar,w=e.inert;return a.createElement(a.Fragment,null,w?a.createElement(s,{styles:cl(r)}):null,h?a.createElement(Jc,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function dl(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const fl=Bc(lr,ul);var at=a.forwardRef(function(e,t){return a.createElement(Wt,Ce({},e,{ref:t,sideCar:fl}))});at.classNames=Wt.classNames;var pl=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},We=new WeakMap,ht=new WeakMap,gt={},fn=0,mr=function(e){return e&&(e.host||mr(e.parentNode))},ml=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=mr(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})},vl=function(e,t,n,o){var r=ml(t,Array.isArray(e)?e:[e]);gt[n]||(gt[n]=new WeakMap);var s=gt[n],i=[],c=new Set,l=new Set(r),u=function(f){!f||c.has(f)||(c.add(f),u(f.parentNode))};r.forEach(u);var d=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(v){if(c.has(v))d(v);else try{var h=v.getAttribute(o),w=h!==null&&h!=="false",m=(We.get(v)||0)+1,g=(s.get(v)||0)+1;We.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(),fn++,function(){i.forEach(function(f){var v=We.get(f)-1,h=s.get(f)-1;We.set(f,v),s.set(f,h),v||(ht.has(f)||f.removeAttribute(o),ht.delete(f)),h||f.removeAttribute(n)}),fn--,fn||(We=new WeakMap,We=new WeakMap,ht=new WeakMap,gt={})}},Ht=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=pl(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live]"))),vl(o,r,n,"aria-hidden")):function(){return null}},Vt="Dialog",[vr,Nd]=me(Vt),[hl,le]=vr(Vt),hr=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]=Se({prop:o,defaultProp:r??!1,onChange:s,caller:Vt});return p.jsx(hl,{scope:t,triggerRef:c,contentRef:l,contentId:ne(),titleId:ne(),descriptionId:ne(),open:u,onOpenChange:d,onOpenToggle:a.useCallback(()=>d(f=>!f),[d]),modal:i,children:n})};hr.displayName=Vt;var gr="DialogTrigger",wr=a.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=le(gr,n),s=B(t,r.triggerRef);return p.jsx(O.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Wn(r.open),...o,ref:s,onClick:R(e.onClick,r.onOpenToggle)})});wr.displayName=gr;var $n="DialogPortal",[gl,xr]=vr($n,{forceMount:void 0}),yr=e=>{const{__scopeDialog:t,forceMount:n,children:o,container:r}=e,s=le($n,t);return p.jsx(gl,{scope:t,forceMount:n,children:a.Children.map(o,i=>p.jsx(re,{present:n||s.open,children:p.jsx(ot,{asChild:!0,container:r,children:i})}))})};yr.displayName=$n;var Rt="DialogOverlay",Cr=a.forwardRef((e,t)=>{const n=xr(Rt,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,s=le(Rt,e.__scopeDialog);return s.modal?p.jsx(re,{present:o||s.open,children:p.jsx(xl,{...r,ref:t})}):null});Cr.displayName=Rt;var wl=be("DialogOverlay.RemoveScroll"),xl=a.forwardRef((e,t)=>
vendor: 29,970 bytes, lines 41-45
41{const{__scopeDialog:n,...o}=e,r=le(Rt,n);return p.jsx(at,{as:wl,allowPinchZoom:!0,shards:[r.contentRef],children:p.jsx(O.div,{"data-state":Wn(r.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),De="DialogContent",br=a.forwardRef((e,t)=>{const n=xr(De,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,s=le(De,e.__scopeDialog);return p.jsx(re,{present:o||s.open,children:s.modal?p.jsx(yl,{...r,ref:t}):p.jsx(Cl,{...r,ref:t})})});br.displayName=De;var yl=a.forwardRef((e,t)=>{const n=le(De,e.__scopeDialog),o=a.useRef(null),r=B(t,n.contentRef,o);return a.useEffect(()=>{const s=o.current;if(s)return Ht(s)},[]),p.jsx(Sr,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:R(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:R(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0;(i.button===2||c)&&s.preventDefault()}),onFocusOutside:R(e.onFocusOutside,s=>s.preventDefault())})}),Cl=a.forwardRef((e,t)=>{const n=le(De,e.__scopeDialog),o=a.useRef(!1),r=a.useRef(!1);return p.jsx(Sr,{...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()}})}),Sr=a.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:s,...i}=e,c=le(De,n),l=a.useRef(null),u=B(t,l);return Bt(),p.jsxs(p.Fragment,{children:[p.jsx(it,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:s,children:p.jsx(ke,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Wn(c.open),...i,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(bl,{titleId:c.titleId}),p.jsx(El,{contentRef:l,descriptionId:c.descriptionId})]})]})}),Bn="DialogTitle",Er=a.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=le(Bn,n);return p.jsx(O.h2,{id:r.titleId,...o,ref:t})});Er.displayName=Bn;var Rr="DialogDescription",Pr=a.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=le(Rr,n);return p.jsx(O.p,{id:r.descriptionId,...o,ref:t})});Pr.displayName=Rr;var Tr="DialogClose",Ar=a.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=le(Tr,n);return p.jsx(O.button,{type:"button",...o,ref:t,onClick:R(e.onClick,()=>r.onOpenChange(!1))})});Ar.displayName=Tr;function Wn(e){return e?"open":"closed"}var Mr="DialogTitleWarning",[Ld,_r]=Si(Mr,{contentName:De,titleName:Bn,docsSlug:"dialog"}),bl=({titleId:e})=>{const t=_r(Mr),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},Sl="DialogDescriptionWarning",El=({contentRef:e,descriptionId:t})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${_r(Sl).contentName}}.`;return a.useEffect(()=>{const r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(o))},[o,e,t]),null},kd=hr,jd=wr,Fd=yr,$d=Cr,Bd=br,Wd=Er,Hd=Pr,Vd=Ar,Rl=a.createContext(void 0);function Ut(e){const t=a.useContext(Rl);return e||t||"ltr"}var pn="rovingFocusGroup.onEntryFocus",Pl={bubbles:!1,cancelable:!0},ct="RovingFocusGroup",[Cn,Ir,Tl]=An(ct),[Al,Kt]=me(ct,[Tl]),[Ml,_l]=Al(ct),Or=a.forwardRef((e,t)=>p.jsx(Cn.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(Cn.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(Il,{...e,ref:t})})}));Or.displayName=ct;var Il=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,...f}=e,v=a.useRef(null),h=B(t,v),w=Ut(s),[m,g]=Se({prop:i,defaultProp:c??null,onChange:l,caller:ct}),[x,y]=a.useState(!1),C=fe(u),b=Ir(n),S=a.useRef(!1),[M,E]=a.useState(0);return a.useEffect(()=>{const A=v.current;if(A)return A.addEventListener(pn,C),()=>A.removeEventListener(pn,C)},[C]),p.jsx(Ml,{scope:n,orientation:o,dir:w,loop:r,currentTabStopId:m,onItemFocus:a.useCallback(A=>g(A),[g]),onItemShiftTab:a.useCallback(()=>y(!0),[]),onFocusableItemAdd:a.useCallback(()=>E(A=>A+1),[]),onFocusableItemRemove:a.useCallback(()=>E(A=>A-1),[]),children:p.jsx(O.div,{tabIndex:x||M===0?-1:0,"data-orientation":o,...f,ref:h,style:{outline:"none",...e.style},onMouseDown:R(e.onMouseDown,()=>{S.current=!0}),onFocus:R(e.onFocus,A=>{const N=!S.current;if(A.target===A.currentTarget&&N&&!x){const D=new CustomEvent(pn,Pl);if(A.currentTarget.dispatchEvent(D),!D.defaultPrevented){const F=b().filter(I=>I.focusable),$=F.find(I=>I.active),k=F.find(I=>I.id===m),W=[$,k,...F].filter(Boolean).map(I=>I.ref.current);Lr(W,d)}}S.current=!1}),onBlur:R(e.onBlur,()=>y(!1))})})}),Dr="RovingFocusGroupItem",Nr=a.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:r=!1,tabStopId:s,children:i,...c}=e,l=ne(),u=s||l,d=_l(Dr,n),f=d.currentTabStopId===u,v=Ir(n),{onFocusableItemAdd:h,onFocusableItemRemove:w,currentTabStopId:m}=d;return a.useEffect(()=>{if(o)return h(),()=>w()},[o,h,w]),p.jsx(Cn.ItemSlot,{scope:n,id:u,focusable:o,active:r,children:p.jsx(O.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...c,ref:t,onMouseDown:R(e.onMouseDown,g=>{o?d.onItemFocus(u):g.preventDefault()}),onFocus:R(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:R(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){d.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const x=Nl(g,d.orientation,d.dir);if(x!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let C=v().filter(b=>b.focusable).map(b=>b.ref.current);if(x==="last")C.reverse();else if(x==="prev"||x==="next"){x==="prev"&&C.reverse();const b=C.indexOf(g.currentTarget);C=d.loop?Ll(C,b+1):C.slice(b+1)}setTimeout(()=>Lr(C))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:m!=null}):i})})});Nr.displayName=Dr;var Ol={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Dl(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Nl(e,t,n){const o=Dl(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return Ol[o]}function Lr(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function Ll(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var kr=Or,jr=Nr,Gt="Tabs",[kl,Ud]=me(Gt,[Kt]),Fr=Kt(),[jl,Hn]=kl(Gt),$r=a.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,onValueChange:r,defaultValue:s,orientation:i="horizontal",dir:c,activationMode:l="automatic",...u}=e,d=Ut(c),[f,v]=Se({prop:o,onChange:r,defaultProp:s??"",caller:Gt});return p.jsx(jl,{scope:n,baseId:ne(),value:f,onValueChange:v,orientation:i,dir:d,activationMode:l,children:p.jsx(O.div,{dir:d,"data-orientation":i,...u,ref:t})})});$r.displayName=Gt;var Br="TabsList",Wr=a.forwardRef((e,t)=>{const{__scopeTabs:n,loop:o=!0,...r}=e,s=Hn(Br,n),i=Fr(n);return p.jsx(kr,{asChild:!0,...i,orientation:s.orientation,dir:s.dir,loop:o,children:p.jsx(O.div,{role:"tablist","aria-orientation":s.orientation,...r,ref:t})})});Wr.displayName=Br;var Hr="TabsTrigger",Vr=a.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,disabled:r=!1,...s}=e,i=Hn(Hr,n),c=Fr(n),l=Gr(i.baseId,o),u=zr(i.baseId,o),d=o===i.value;return p.jsx(jr,{asChild:!0,...c,focusable:!r,active:d,children:p.jsx(O.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:R(e.onMouseDown,f=>{!r&&f.button===0&&f.ctrlKey===!1?i.onValueChange(o):f.preventDefault()}),onKeyDown:R(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&i.onValueChange(o)}),onFocus:R(e.onFocus,()=>{const f=i.activationMode!=="manual";!d&&!r&&f&&i.onValueChange(o)})})})});Vr.displayName=Hr;var Ur="TabsContent",Kr=a.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,forceMount:r,children:s,...i}=e,c=Hn(Ur,n),l=Gr(c.baseId,o),u=zr(c.baseId,o),d=o===c.value,f=a.useRef(d);return a.useEffect(()=>{const v=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(v)},[]),p.jsx(re,{present:r||d,children:({present:v})=>p.jsx(O.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:f.current?"0s":void 0},children:v&&s})})});Kr.displayName=Ur;function Gr(e,t){return`${e}-trigger-${t}`}function zr(e,t){return`${e}-content-${t}`}var Kd=$r,Gd=Wr,zd=Vr,Yd=Kr;function Fl(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])}function bo(e,[t,n]){return Math.min(n,Math.max(t,e))}var $l=[" ","Enter","ArrowUp","ArrowDown"],Bl=[" ","Enter"],Ne="Select",[zt,Yt,Wl]=An(Ne),[Xe,Xd]=me(Ne,[Wl,Pe]),Xt=Pe(),[Hl,Te]=Xe(Ne),[Vl,Ul]=Xe(Ne),Yr=e=>{const{__scopeSelect:t,children:n,open:o,defaultOpen:r,onOpenChange:s,value:i,defaultValue:c,onValueChange:l,dir:u,name:d,autoComplete:f,disabled:v,required:h,form:w}=e,m=Xt(t),[g,x]=a.useState(null),[y,C]=a.useState(null),[b,S]=a.useState(!1),M=Ut(u),[E,A]=Se({prop:o,defaultProp:r??!1,onChange:s,caller:Ne}),[N,D]=Se({prop:i,defaultProp:c,onChange:l,caller:Ne}),F=a.useRef(null),$=g?w||!!g.closest("form"):!0,[k,L]=a.useState(new Set),W=Array.from(k).map(I=>I.props.value).join(";");return p.jsx(Nt,{...m,children:p.jsxs(Hl,{required:h,scope:t,trigger:g,onTriggerChange:x,valueNode:y,onValueNodeChange:C,valueNodeHasChildren:b,onValueNodeHasChildrenChange:S,contentId:ne(),value:N,onValueChange:D,open:E,onOpenChange:A,dir:M,triggerPointerDownPosRef:F,disabled:v,children:[p.jsx(zt.Provider,{scope:t,children:p.jsx(Vl,{scope:e.__scopeSelect,onNativeOptionAdd:a.useCallback(I=>{L(j=>new Set(j).add(I))},[]),onNativeOptionRemove:a.useCallback(I=>{L(j=>{const _=new Set(j);return _.delete(I),_})},[]),children:n})}),$?p.jsxs(ws,{"aria-hidden":!0,required:h,tabIndex:-1,name:d,autoComplete:f,value:N,onChange:I=>D(I.target.value),disabled:v,form:w,children:[N===void 0?p.jsx("option",{value:""}):null,Array.from(k)]},W):null]})})};Yr.displayName=Ne;var Xr="SelectTrigger",qr=a.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:o=!1,...r}=e,s=Xt(n),i=Te(Xr,n),c=i.disabled||o,l=B(t,i.onTriggerChange),u=Yt(n),d=a.useRef("touch"),[f,v,h]=ys(m=>{const g=u().filter(C=>!C.disabled),x=g.find(C=>C.value===i.value),y=Cs(g,m,x);y!==void 0&&i.onValueChange(y.value)}),w=m=>{c||(i.onOpenChange(!0),h()),m&&(i.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return p.jsx(st,{asChild:!0,...s,children:p.jsx(O.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":xs(i.value)?"":void 0,...r,ref:l,onClick:R(r.onClick,m=>{m.currentTarget.focus(),d.current!=="mouse"&&w(m)}),onPointerDown:R(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:R(r.onKeyDown,m=>{const g=f.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&v(m.key),!(g&&m.key===" ")&&$l.includes(m.key)&&(w(),m.preventDefault())})})})});qr.displayName=Xr;var Zr="SelectValue",Qr=a.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,children:s,placeholder:i="",...c}=e,l=Te(Zr,n),{onValueNodeHasChildrenChange:u}=l,d=s!==void 0,f=B(t,l.onValueNodeChange);return z(()=>{u(d)},[u,d]),p.jsx(O.span,{...c,ref:f,style:{pointerEvents:"none"},children:xs(l.value)?p.jsx(p.Fragment,{children:i}):s})});Qr.displayName=Zr;var Kl="SelectIcon",Jr=a.forwardRef((e,t)=>{const{__scopeSelect:n,children:o,...r}=e;return p.jsx(O.span,{"aria-hidden":!0,...r,ref:t,children:o||"▼"})});Jr.displayName=Kl;var Gl="SelectPortal",es=e=>p.jsx(ot,{asChild:!0,...e});es.displayName=Gl;var Le="SelectContent",ts=a.forwardRef((e,t)=>{const n=Te(Le,e.__scopeSelect),[o,r]=a.useState();if(z(()=>{r(new DocumentFragment)},[]),!n.open){const s=o;return s?Mt.createPortal(p.jsx(ns,{scope:e.__scopeSelect,children:p.jsx(zt.Slot,{scope:e.__scopeSelect,children:p.jsx("div",{children:e.children})})}),s):null}return p.jsx(os,{...e,ref:t})});ts.displayName=Le;var ie=10,[ns,Ae]=Xe(Le),zl="SelectContentImpl",Yl=be("SelectContent.RemoveScroll"),os=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:f,collisionBoundary:v,collisionPadding:h,sticky:w,hideWhenDetached:m,avoidCollisions:g,...x}=e,y=Te(Le,n),[C,b]=a.useState(null),[S,M]=a.useState(null),E=B(t,T=>b(T)),[A,N]=a.useState(null),[D,F]=a.useState(null),$=Yt(n),[k,L]=a.useState(!1),W=a.useRef(!1);a.useEffect(()=>{if(C)return Ht(C)},[C]),Bt();const I=a.useCallback(T=>{const[H,...X]=$().map(G=>G.ref.current),[V]=X.slice(-1),U=document.activeElement;for(const G of T)if(G===U||(G?.scrollIntoView({block:"nearest"}),G===H&&S&&(S.scrollTop=0),G===V&&S&&(S.scrollTop=S.scrollHeight),G?.focus(),document.activeElement!==U))return},[$,S]),j=a.useCallback(()=>I([A,C]),[I,A,C]);a.useEffect(()=>{k&&j()},[k,j]);const{onOpenChange:_,triggerPointerDownPosRef:P}=y;a.useEffect(()=>{if(C){let T={x:0,y:0};const H=V=>{T={x:Math.abs(Math.round(V.pageX)-(P.current?.x??0)),y:Math.abs(Math.round(V.pageY)-(P.current?.y??0))}},X=V=>{T.x<=10&&T.y<=10?V.preventDefault():C.contains(V.target)||_(!1),document.removeEventListener("pointermove",H),P.current=null};return P.current!==null&&(document.addEventListener("pointermove",H),document.addEventListener("pointerup",X,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",H),document.removeEventListener("pointerup",X,{capture:!0})}}},[C,_,P]),a.useEffect(()=>{const T=()=>_(!1);return window.addEventListener("blur",T),window.addEventListener("resize",T),()=>{window.removeEventListener("blur",T),window.removeEventListener("resize",T)}},[_]);const[K,Y]=ys(T=>{const H=$().filter(U=>!U.disabled),X=H.find(U=>U.ref.current===document.activeElement),V=Cs(H,T,X);V&&setTimeout(()=>V.ref.current.focus())}),se=a.useCallback((T,H,X)=>{const V=!W.current&&!X;(y.value!==void 0&&y.value===H||V)&&(N(T),V&&(W.current=!0))},[y.value]),he=a.useCallback(()=>C?.focus(),[C]),ee=a.useCallback((T,H,X)=>{const V=!W.current&&!X;(y.value!==void 0&&y.value===H||V)&&F(T)},[y.value]),ge=o==="popper"?bn:rs,Z=ge===bn?{side:c,sideOffset:l,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:v,collisionPadding:h,sticky:w,hideWhenDetached:m,avoidCollisions:g}:{};return p.jsx(ns,{scope:n,content:C,viewport:S,onViewportChange:M,itemRefCallback:se,selectedItem:A,onItemLeave:he,itemTextRefCallback:ee,focusSelectedItem:j,selectedItemText:D,position:o,isPositioned:k,searchRef:K,children:p.jsx(at,{as:Yl,allowPinchZoom:!0,children:p.jsx(it,{asChild:!0,trapped:y.open,onMountAutoFocus:T=>{T.preventDefault()},onUnmountAutoFocus:R(r,T=>{y.trigger?.focus({preventScroll:!0}),T.preventDefault()}),children:p.jsx(ke,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:T=>T.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:p.jsx(ge,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:T=>T.preventDefault(),...x,...Z,onPlaced:()=>L(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:R(x.onKeyDown,T=>{const H=T.ctrlKey||T.altKey||T.metaKey;if(T.key==="Tab"&&T.preventDefault(),!H&&T.key.length===1&&Y(T.key),["ArrowUp","ArrowDown","Home","End"].includes(T.key)){let V=$().filter(U=>!U.disabled).map(U=>U.ref.current);if(["ArrowUp","End"].includes(T.key)&&(V=V.slice().reverse()),["ArrowUp","ArrowDown"].includes(T.key)){const U=T.target,G=V.indexOf(U);V=V.slice(G+1)}setTimeout(()=>I(V)),T.preventDefault()}})})})})})})});os.displayName=zl;var Xl="SelectItemAlignedPosition",rs=a.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:o,...r}=e,s=Te(Le,n),i=Ae(Le,n),[c,l]=a.useState(null),[u,d]=a.useState(null),f=B(t,E=>d(E)),v=Yt(n),h=a.useRef(!1),w=a.useRef(!0),{viewport:m,selectedItem:g,selectedItemText:x,focusSelectedItem:y}=i,C=a.useCallback(()=>{if(s.trigger&&s.valueNode&&c&&u&&m&&g&&x){const E=s.trigger.getBoundingClientRect(),A=u.getBoundingClientRect(),N=s.valueNode.getBoundingClientRect(),D=x.getBoundingClientRect();if(s.dir!=="rtl"){const U=D.left-A.left,G=N.left-U,te=E.left-G,_e=E.width+te,en=Math.max(_e,A.width),tn=window.innerWidth-ie,nn=bo(G,[ie,Math.max(ie,tn-en)]);c.style.minWidth=_e+"px",c.style.left=nn+"px"}else{const U=A.right-D.right,G=window.innerWidth-N.right-U,te=window.innerWidth-E.right-G,_e=E.width+te,en=Math.max(_e,A.width),tn=window.innerWidth-ie,nn=bo(G,[ie,Math.max(ie,tn-en)]);c.style.minWidth=_e+"px",c.style.right=nn+"px"}const F=v(),$=window.innerHeight-ie*2,k=m.scrollHeight,L=window.getComputedStyle(u),W=parseInt(L.borderTopWidth,10),I=parseInt(L.paddingTop,10),j=parseInt(L.borderBottomWidth,10),_=parseInt(L.paddingBottom,10),P=W+I+k+_+j,K=Math.min(g.offsetHeight*5,P),Y=window.getComputedStyle(m),se=parseInt(Y.paddingTop,10),he=parseInt(Y.paddingBottom,10),ee=E.top+E.height/2-ie,ge=$-ee,Z=g.offsetHeight/2,T=g.offsetTop+Z,H=W+I+T,X=P-H;if(H<=ee){const U=F.length>0&&g===F[F.length-1].ref.current;c.style.bottom="0px";const G=u.clientHeight-m.offsetTop-m.offsetHeight,te=Math.max(ge,Z+(U?he:0)+G+j),_e=H+te;c.style.height=_e+"px"}else{const U=F.length>0&&g===F[0].ref.current;c.style.top="0px";const te=Math.max(ee,W+m.offsetTop+(U?se:0)+Z)+X;c.style.height=te+"px",m.scrollTop=H-ee+m.offsetTop}c.style.margin=`${ie}px 0`,c.style.minHeight=K+"px",c.style.maxHeight=$+"px",o?.(),requestAnimationFrame(()=>h.current=!0)}},[v,s.trigger,s.valueNode,c,u,m,g,x,s.dir,o]);z(()=>C(),[C]);const[b,S]=a.useState();z(()=>{u&&S(window.getComputedStyle(u).zIndex)},[u]);const M=a.useCallback(E=>{E&&w.current===!0&&(C(),y?.(),w.current=!1)},[C,y]);return p.jsx(Zl,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:h,onScrollButtonChange:M,children:p.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:b},children:p.jsx(O.div,{...r,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});rs.displayName=Xl;var ql="SelectPopperPosition",bn=a.forwardRef((e,t)=>{const{__scopeSelect:n,align:o="start",collisionPadding:r=ie,...s}=e,i=Xt(n);return p.jsx(Lt,{...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)"}})});bn.displayName=ql;var[Zl,Vn]=Xe(Le,{}),Sn="SelectViewport",ss=a.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:o,...r}=e,s=Ae(Sn,n),i=Vn(Sn,n),c=B(t,s.onViewportChange),l=a.useRef(0);return p.jsxs(p.Fragment,{children:[p.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}),p.jsx(zt.Slot,{scope:n,children:p.jsx(O.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:R(r.onScroll,u=>{const d=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:v}=i;if(v?.current&&f){const h=Math.abs(l.current-d.scrollTop);if(h>0){const w=window.innerHeight-ie*2,m=parseFloat(f.style.minHeight),g=parseFloat(f.style.height),x=Math.max(m,g);if(x<w){const y=x+h,C=Math.min(w,y),b=y-C;f.style.height=C+"px",f.style.bottom==="0px"&&(d.scrollTop=b>0?b:0,f.style.justifyContent="flex-end")}}}l.current=d.scrollTop})})})]})});ss.displayName=Sn;var is="SelectGroup",[Ql,Jl]=Xe(is),eu=a.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=ne();return p.jsx(Ql,{scope:n,id:r,children:p.jsx(O.div,{role:"group","aria-labelledby":r,...o,ref:t})})});eu.displayName=is;var as="SelectLabel",cs=a.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=Jl(as,n);return p.jsx(O.div,{id:r.id,...o,ref:t})});cs.displayName=as;var Pt="SelectItem",[tu,ls]=Xe(Pt),us=a.forwardRef((e,t)=>{const{__scopeSelect:n,value:o,disabled:r=!1,textValue:s,...i}=e,c=Te(Pt,n),l=Ae(Pt,n),u=c.value===o,[d,f]=a.useState(s??""),[v,h]=a.useState(!1),w=B(t,y=>l.itemRefCallback?.(y,o,r)),m=ne(),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 p.jsx(tu,{scope:n,value:o,disabled:r,textId:m,isSelected:u,onItemTextChange:a.useCallback(y=>{f(C=>C||(y?.textContent??"").trim())},[]),children:p.jsx(zt.ItemSlot,{scope:n,value:o,disabled:r,textValue:d,children:p.jsx(O.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:R(i.onFocus,()=>h(!0)),onBlur:R(i.onBlur,()=>h(!1)),onClick:R(i.onClick,()=>{g.current!=="mouse"&&x()}),onPointerUp:R(i.onPointerUp,()=>{g.current==="mouse"&&x()}),onPointerDown:R(i.onPointerDown,y=>{g.current=y.pointerType}),onPointerMove:R(i.onPointerMove,y=>{g.current=y.pointerType,r?l.onItemLeave?.():g.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:R(i.onPointerLeave,y=>{y.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:R(i.onKeyDown,y=>{l.searchRef?.current!==""&&y.key===" "||(Bl.includes(y.key)&&x(),y.key===" "&&y.preventDefault())})})})})});us.displayName=Pt;var qe="SelectItemText",ds=a.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,...s}=e,i=Te(qe,n),c=Ae(qe,n),l=ls(qe,n),u=Ul(qe,n),[d,f]=a.useState(null),v=B(t,x=>f(x),l.onItemTextChange,x=>c.itemTextRefCallback?.(x,l.value,l.disabled)),h=d?.textContent,w=a.useMemo(()=>p.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]),p.jsxs(p.Fragment,{children:[p.jsx(O.span,{id:l.textId,...s,ref:v}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Mt.createPortal(s.children,i.valueNode):null]})});ds.displayName=qe;var fs="SelectItemIndicator",ps=a.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return ls(fs,n).isSelected?p.jsx(O.span,{"aria-hidden":!0,...o,ref:t}):null});ps.displayName=fs;var En="SelectScrollUpButton",ms=a.forwardRef((e,t)=>{const n=Ae(En,e.__scopeSelect),o=Vn(En,e.__scopeSelect),[r,s]=a.useState(!1),i=B(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?p.jsx(hs,{...e,ref:i,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=n;c&&l&&(c.scrollTop=c.scrollTop-l.offsetHeight)}}):null});ms.displayName=En;var Rn="SelectScrollDownButton",vs=a.forwardRef((e,t)=>{const n=Ae(Rn,e.__scopeSelect),o=Vn(Rn,e.__scopeSelect),[r,s]=a.useState(!1),i=B(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?p.jsx(hs,{...e,ref:i,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=n;c&&l&&(c.scrollTop=c.scrollTop+l.offsetHeight)}}):null});vs.displayName=Rn;var hs=a.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:o,...r}=e,s=Ae("SelectScrollButton",n),i=a.useRef(null),c=Yt(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]),p.jsx(O.div,{"aria-hidden":!0,...r,ref:t,style:{flexShrink:0,...r.style},onPointerDown:R(r.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(o,50))}),onPointerMove:R(r.onPointerMove,()=>{s.onItemLeave?.(),i.current===null&&(i.current=window.setInterval(o,50))}),onPointerLeave:R(r.onPointerLeave,()=>{l()})})}),nu="SelectSeparator",gs=a.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return p.jsx(O.div,{"aria-hidden":!0,...o,ref:t})});gs.displayName=nu;var Pn="SelectArrow",ou=a.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=Xt(n),s=Te(Pn,n),i=Ae(Pn,n);return s.open&&i.position==="popper"?p.jsx(kt,{...r,...o,ref:t}):null});ou.displayName=Pn;var ru="SelectBubbleInput",ws=a.forwardRef(({__scopeSelect:e,value:t,...n},o)=>{const r=a.useRef(null),s=B(o,r),i=Fl(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 f=new Event("change",{bubbles:!0});d.call(c,t),c.dispatchEvent(f)}},[i,t]),p.jsx(O.select,{...n,style:{...Io,...n.style},ref:s,defaultValue:t})});ws.displayName=ru;function xs(e){return e===""||e===void 0}function ys(e){const t=fe(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 Cs(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=su(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 su(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var qd=Yr,Zd=qr,Qd=Qr,Jd=Jr,ef=es,tf=ts,nf=ss,of=cs,rf=us,sf=ds,af=ps,cf=ms,lf=vs,uf=gs,qt="Popover",[bs,df]=me(qt,[Pe]),lt=Pe(),[iu,Me]=bs(qt),Ss=e=>{const{__scopePopover:t,children:n,open:o,defaultOpen:r,onOpenChange:s,modal:i=!1}=e,c=lt(t),l=a.useRef(null),[u,d]=a.useState(!1),[f,v]=Se({prop:o,defaultProp:r??!1,onChange:s,caller:qt});return p.jsx(Nt,{...c,children:p.jsx(iu,{scope:t,contentId:ne(),triggerRef:l,open:f,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})})};Ss.displayName=qt;var Es="PopoverAnchor",au=a.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=Me(Es,n),s=lt(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:c}=r;return a.useEffect(()=>(i(),()=>c()),[i,c]),p.jsx(st,{...s,...o,ref:t})});au.displayName=Es;var Rs="PopoverTrigger",Ps=a.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=Me(Rs,n),s=lt(n),i=B(t,r.triggerRef),c=p.jsx(O.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Is(r.open),...o,ref:i,onClick:R(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?c:p.jsx(st,{asChild:!0,...s,children:c})});Ps.displayName=Rs;var Un="PopoverPortal",[cu,lu]=bs(Un,{forceMount:void 0}),Ts=e=>{const{__scopePopover:t,forceMount:n,children:o,container:r}=e,s=Me(Un,t);return p.jsx(cu,{scope:t,forceMount:n,children:p.jsx(re,{present:n||s.open,children:p.jsx(ot,{asChild:!0,container:r,children:o})})})};Ts.displayName=Un;var Ge="PopoverContent",As=a.forwardRef((e,t)=>{const n=lu(Ge,e.__scopePopover),{forceMount:o=n.forceMount,...r}=e,s=Me(Ge,e.__scopePopover);return p.jsx(re,{present:o||s.open,children:s.modal?p.jsx(du,{...r,ref:t}):p.jsx(fu,{...r,ref:t})})});As.displayName=Ge;var uu=be("PopoverContent.RemoveScroll"),du=a.forwardRef((e,t)=>{const n=Me(Ge,e.__scopePopover),o=a.useRef(null),r=B(t,o),s=a.useRef(!1);return a.useEffect(()=>{const i=o.current;if(i)return Ht(i)},[]),p.jsx(at,{as:uu,allowPinchZoom:!0,children:p.jsx(Ms,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:R(e.onCloseAutoFocus,i=>{i.preventDefault(),s.current||n.triggerRef.current?.focus()}),onPointerDownOutside:R(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:R(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),fu=a.forwardRef((e,t)=>{const n=Me(Ge,e.__scopePopover),o=a.useRef(!1),r=a.useRef(!1);return p.jsx(Ms,{...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()}})}),Ms=a.forwardRef((e,t)=>
vendor: 4,116 bytes, line 45
45{const{__scopePopover:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:d,...f}=e,v=Me(Ge,n),h=lt(n);return Bt(),p.jsx(it,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:s,children:p.jsx(ke,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:d,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>v.onOpenChange(!1),children:p.jsx(Lt,{"data-state":Is(v.open),role:"dialog",id:v.contentId,...h,...f,ref:t,style:{...f.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)"}})})})}),_s="PopoverClose",pu=a.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=Me(_s,n);return p.jsx(O.button,{type:"button",...o,ref:t,onClick:R(e.onClick,()=>r.onOpenChange(!1))})});pu.displayName=_s;var mu="PopoverArrow",vu=a.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=lt(n);return p.jsx(kt,{...r,...o,ref:t})});vu.displayName=mu;function Is(e){return e?"open":"closed"}var ff=Ss,pf=Ps,mf=Ts,vf=As,Tn=["Enter"," "],hu=["ArrowDown","PageUp","Home"],Os=["ArrowUp","PageDown","End"],gu=[...hu,...Os],wu={ltr:[...Tn,"ArrowRight"],rtl:[...Tn,"ArrowLeft"]},xu={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ut="Menu",[tt,yu,Cu]=An(ut),[je,Ds]=me(ut,[Cu,Pe,Kt]),Zt=Pe(),Ns=Kt(),[bu,Fe]=je(ut),[Su,dt]=je(ut),Ls=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:r,onOpenChange:s,modal:i=!0}=e,c=Zt(t),[l,u]=a.useState(null),d=a.useRef(!1),f=fe(s),v=Ut(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})}},[]),p.jsx(Nt,{...c,children:p.jsx(bu,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:u,children:p.jsx(Su,{scope:t,onClose:a.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:v,modal:i,children:o})})})};Ls.displayName=ut;var Eu="MenuAnchor",Kn=a.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=Zt(n);return p.jsx(st,{...r,...o,ref:t})});Kn.displayName=Eu;var Gn="MenuPortal",[Ru,ks]=je(Gn,{forceMount:void 0}),js=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:r}=e,s=Fe(Gn,t);return p.jsx(Ru,{scope:t,forceMount:n,children:p.jsx(re,{present:n||s.open,children:p.jsx(ot,{asChild:!0,container:r,children:o})})})};js.displayName=Gn;var oe="MenuContent",[Pu,zn]=je(oe),Fs=a.forwardRef((e,t)=>{const n=ks(oe,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=Fe(oe,e.__scopeMenu),i=dt(oe,e.__scopeMenu);return p.jsx(tt.Provider,{scope:e.__scopeMenu,children:p.jsx(re,{present:o||s.open,children:p.jsx(tt.Slot,{scope:e.__scopeMenu,children:i.modal?p.jsx(Tu,{...r,ref:t}):p.jsx(Au,{...r,ref:t})})})})}),Tu=a.forwardRef((e,t)=>{const n=Fe(oe,e.__scopeMenu),o=a.useRef(null),r=B(t,o);return a.useEffect(()=>{const s=o.current;if(s)return Ht(s)},[]),p.jsx(Yn,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:R(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Au=a.forwardRef((e,t)=>{const n=Fe(oe,e.__scopeMenu);return p.jsx(Yn,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Mu=be("MenuContent.ScrollLock"),Yn=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:f,onInteractOutside:v,onDismiss:h,disableOutsideScroll:w,...m}
vendor: 14,611 bytes, line 45
45=e,g=Fe(oe,n),x=dt(oe,n),y=Zt(n),C=Ns(n),b=yu(n),[S,M]=a.useState(null),E=a.useRef(null),A=B(t,E,g.onContentChange),N=a.useRef(0),D=a.useRef(""),F=a.useRef(0),$=a.useRef(null),k=a.useRef("right"),L=a.useRef(0),W=w?at:a.Fragment,I=w?{as:Mu,allowPinchZoom:!0}:void 0,j=P=>{const K=D.current+P,Y=b().filter(T=>!T.disabled),se=document.activeElement,he=Y.find(T=>T.ref.current===se)?.textValue,ee=Y.map(T=>T.textValue),ge=Wu(ee,K,he),Z=Y.find(T=>T.textValue===ge)?.ref.current;(function T(H){D.current=H,window.clearTimeout(N.current),H!==""&&(N.current=window.setTimeout(()=>T(""),1e3))})(K),Z&&setTimeout(()=>Z.focus())};a.useEffect(()=>()=>window.clearTimeout(N.current),[]),Bt();const _=a.useCallback(P=>k.current===$.current?.side&&Vu(P,$.current?.area),[]);return p.jsx(Pu,{scope:n,searchRef:D,onItemEnter:a.useCallback(P=>{_(P)&&P.preventDefault()},[_]),onItemLeave:a.useCallback(P=>{_(P)||(E.current?.focus(),M(null))},[_]),onTriggerLeave:a.useCallback(P=>{_(P)&&P.preventDefault()},[_]),pointerGraceTimerRef:F,onPointerGraceIntentChange:a.useCallback(P=>{$.current=P},[]),children:p.jsx(W,{...I,children:p.jsx(it,{asChild:!0,trapped:r,onMountAutoFocus:R(s,P=>{P.preventDefault(),E.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:p.jsx(ke,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:v,onDismiss:h,children:p.jsx(kr,{asChild:!0,...C,dir:x.dir,orientation:"vertical",loop:o,currentTabStopId:S,onCurrentTabStopIdChange:M,onEntryFocus:R(l,P=>{x.isUsingKeyboardRef.current||P.preventDefault()}),preventScrollOnEntryFocus:!0,children:p.jsx(Lt,{role:"menu","aria-orientation":"vertical","data-state":ei(g.open),"data-radix-menu-content":"",dir:x.dir,...y,...m,ref:A,style:{outline:"none",...m.style},onKeyDown:R(m.onKeyDown,P=>{const Y=P.target.closest("[data-radix-menu-content]")===P.currentTarget,se=P.ctrlKey||P.altKey||P.metaKey,he=P.key.length===1;Y&&(P.key==="Tab"&&P.preventDefault(),!se&&he&&j(P.key));const ee=E.current;if(P.target!==ee||!gu.includes(P.key))return;P.preventDefault();const Z=b().filter(T=>!T.disabled).map(T=>T.ref.current);Os.includes(P.key)&&Z.reverse(),$u(Z)}),onBlur:R(e.onBlur,P=>{P.currentTarget.contains(P.target)||(window.clearTimeout(N.current),D.current="")}),onPointerMove:R(e.onPointerMove,nt(P=>{const K=P.target,Y=L.current!==P.clientX;if(P.currentTarget.contains(K)&&Y){const se=P.clientX>L.current?"right":"left";k.current=se,L.current=P.clientX}}))})})})})})})});Fs.displayName=oe;var _u="MenuGroup",Xn=a.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return p.jsx(O.div,{role:"group",...o,ref:t})});Xn.displayName=_u;var Iu="MenuLabel",$s=a.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return p.jsx(O.div,{...o,ref:t})});$s.displayName=Iu;var Tt="MenuItem",So="menu.itemSelect",Qt=a.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:o,...r}=e,s=a.useRef(null),i=dt(Tt,e.__scopeMenu),c=zn(Tt,e.__scopeMenu),l=B(t,s),u=a.useRef(!1),d=()=>{const f=s.current;if(!n&&f){const v=new CustomEvent(So,{bubbles:!0,cancelable:!0});f.addEventListener(So,h=>o?.(h),{once:!0}),To(f,v),v.defaultPrevented?u.current=!1:i.onClose()}};return p.jsx(Bs,{...r,ref:l,disabled:n,onClick:R(e.onClick,d),onPointerDown:f=>{e.onPointerDown?.(f),u.current=!0},onPointerUp:R(e.onPointerUp,f=>{u.current||f.currentTarget?.click()}),onKeyDown:R(e.onKeyDown,f=>{const v=c.searchRef.current!=="";n||v&&f.key===" "||Tn.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});Qt.displayName=Tt;var Bs=a.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:r,...s}=e,i=zn(Tt,n),c=Ns(n),l=a.useRef(null),u=B(t,l),[d,f]=a.useState(!1),[v,h]=a.useState("");return a.useEffect(()=>{const w=l.current;w&&h((w.textContent??"").trim())},[s.children]),p.jsx(tt.ItemSlot,{scope:n,disabled:o,textValue:r??v,children:p.jsx(jr,{asChild:!0,...c,focusable:!o,children:p.jsx(O.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:u,onPointerMove:R(e.onPointerMove,nt(w=>{o?i.onItemLeave(w):(i.onItemEnter(w),w.defaultPrevented||w.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:R(e.onPointerLeave,nt(w=>i.onItemLeave(w))),onFocus:R(e.onFocus,()=>f(!0)),onBlur:R(e.onBlur,()=>f(!1))})})})}),Ou="MenuCheckboxItem",Ws=a.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:o,...r}=e;return p.jsx(Gs,{scope:e.__scopeMenu,checked:n,children:p.jsx(Qt,{role:"menuitemcheckbox","aria-checked":At(n)?"mixed":n,...r,ref:t,"data-state":Zn(n),onSelect:R(r.onSelect,()=>o?.(At(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Ws.displayName=Ou;var Hs="MenuRadioGroup",[Du,Nu]=je(Hs,{value:void 0,onValueChange:()=>{}}),Vs=a.forwardRef((e,t)=>{const{value:n,onValueChange:o,...r}=e,s=fe(o);return p.jsx(Du,{scope:e.__scopeMenu,value:n,onValueChange:s,children:p.jsx(Xn,{...r,ref:t})})});Vs.displayName=Hs;var Us="MenuRadioItem",Ks=a.forwardRef((e,t)=>{const{value:n,...o}=e,r=Nu(Us,e.__scopeMenu),s=n===r.value;return p.jsx(Gs,{scope:e.__scopeMenu,checked:s,children:p.jsx(Qt,{role:"menuitemradio","aria-checked":s,...o,ref:t,"data-state":Zn(s),onSelect:R(o.onSelect,()=>r.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Ks.displayName=Us;var qn="MenuItemIndicator",[Gs,Lu]=je(qn,{checked:!1}),zs=a.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:o,...r}=e,s=Lu(qn,n);return p.jsx(re,{present:o||At(s.checked)||s.checked===!0,children:p.jsx(O.span,{...r,ref:t,"data-state":Zn(s.checked)})})});zs.displayName=qn;var ku="MenuSeparator",Ys=a.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return p.jsx(O.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});Ys.displayName=ku;var ju="MenuArrow",Xs=a.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=Zt(n);return p.jsx(kt,{...r,...o,ref:t})});Xs.displayName=ju;var Fu="MenuSub",[hf,qs]=je(Fu),Ze="MenuSubTrigger",Zs=a.forwardRef((e,t)=>{const n=Fe(Ze,e.__scopeMenu),o=dt(Ze,e.__scopeMenu),r=qs(Ze,e.__scopeMenu),s=zn(Ze,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 f=c.current;return()=>{window.clearTimeout(f),l(null)}},[c,l]),p.jsx(Kn,{asChild:!0,...u,children:p.jsx(Bs,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":ei(n.open),...e,ref:_t(t,r.onTriggerChange),onClick:f=>{e.onClick?.(f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:R(e.onPointerMove,nt(f=>{s.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(s.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:R(e.onPointerLeave,nt(f=>{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:f.clientX+m,y:f.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(f),f.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:R(e.onKeyDown,f=>{const v=s.searchRef.current!=="";e.disabled||v&&f.key===" "||wu[o.dir].includes(f.key)&&(n.onOpenChange(!0),n.content?.focus(),f.preventDefault())})})})});Zs.displayName=Ze;var Qs="MenuSubContent",Js=a.forwardRef((e,t)=>{const n=ks(oe,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=Fe(oe,e.__scopeMenu),i=dt(oe,e.__scopeMenu),c=qs(Qs,e.__scopeMenu),l=a.useRef(null),u=B(t,l);return p.jsx(tt.Provider,{scope:e.__scopeMenu,children:p.jsx(re,{present:o||s.open,children:p.jsx(tt.Slot,{scope:e.__scopeMenu,children:p.jsx(Yn,{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:R(e.onFocusOutside,d=>{d.target!==c.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:R(e.onEscapeKeyDown,d=>{i.onClose(),d.preventDefault()}),onKeyDown:R(e.onKeyDown,d=>{const f=d.currentTarget.contains(d.target),v=xu[i.dir].includes(d.key);f&&v&&(s.onOpenChange(!1),c.trigger?.focus(),d.preventDefault())})})})})})});Js.displayName=Qs;function ei(e){return e?"open":"closed"}function At(e){return e==="indeterminate"}function Zn(e){return At(e)?"indeterminate":e?"checked":"unchecked"}function $u(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Bu(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function Wu(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=Bu(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 Hu(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,f=l.x,v=l.y;d>o!=v>o&&n<(f-u)*(o-d)/(v-d)+u&&(r=!r)}return r}function Vu(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Hu(n,t)}function nt(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Uu=Ls,Ku=Kn,Gu=js,zu=Fs,Yu=Xn,Xu=$s,qu=Qt,Zu=Ws,Qu=Vs,Ju=Ks,ed=zs,td=Ys,nd=Xs,od=Zs,rd=Js,Jt="DropdownMenu",[sd,gf]=me(Jt,[Ds]),q=Ds(),[id,ti]=sd(Jt),ni=e=>{const{__scopeDropdownMenu:t,children:n,dir:o,open:r,defaultOpen:s,onOpenChange:i,modal:c=!0}=e,l=q(t),u=a.useRef(null),[d,f]=Se({prop:r,defaultProp:s??!1,onChange:i,caller:Jt});return p.jsx(id,{scope:t,triggerId:ne(),triggerRef:u,contentId:ne(),open:d,onOpenChange:f,onOpenToggle:a.useCallback(()=>f(v=>!v),[f]),modal:c,children:p.jsx(Uu,{...l,open:d,onOpenChange:f,dir:o,modal:c,children:n})})};ni.displayName=Jt;var oi="DropdownMenuTrigger",ri=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:o=!1,...r}=e,s=ti(oi,n),i=q(n);return p.jsx(Ku,{asChild:!0,...i,children:p.jsx(O.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:_t(t,s.triggerRef),onPointerDown:R(e.onPointerDown,c=>{!o&&c.button===0&&c.ctrlKey===!1&&(s.onOpenToggle(),s.open||c.preventDefault())}),onKeyDown:R(e.onKeyDown,c=>{o||(["Enter"," "].includes(c.key)&&s.onOpenToggle(),c.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});ri.displayName=oi;var ad="DropdownMenuPortal",si=e=>{const{__scopeDropdownMenu:t,...n}=e,o=q(t);return p.jsx(Gu,{...o,...n})};si.displayName=ad;var ii="DropdownMenuContent",ai=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=ti(ii,n),s=q(n),i=a.useRef(!1);return p.jsx(zu,{id:r.contentId,"aria-labelledby":r.triggerId,...s,...o,ref:t,onCloseAutoFocus:R(e.onCloseAutoFocus,c=>{i.current||r.triggerRef.current?.focus(),i.current=!1,c.preventDefault()}),onInteractOutside:R(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)"}})});ai.displayName=ii;var cd="DropdownMenuGroup",ld=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=q(n);return p.jsx(Yu,{...r,...o,ref:t})});ld.displayName=cd;var ud="DropdownMenuLabel",ci=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=q(n);return p.jsx(Xu,{...r,...o,ref:t})});ci.displayName=ud;var dd="DropdownMenuItem",li=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=q(n);return p.jsx(qu,{...r,...o,ref:t})});li.displayName=dd;var fd="DropdownMenuCheckboxItem",ui=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=q(n);return p.jsx(Zu,{...r,...o,ref:t})});ui.displayName=fd;var pd="DropdownMenuRadioGroup",md=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=q(n);return p.jsx(Qu,{...r,...o,ref:t})});md.displayName=pd;var vd="DropdownMenuRadioItem",di=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=q(n);return p.jsx(Ju,{...r,...o,ref:t})});di.displayName=vd;var hd="DropdownMenuItemIndicator",fi=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=q(n);return p.jsx(ed,{...r,...o,ref:t})});fi.displayName=hd;var gd="DropdownMenuSeparator",pi=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=q(n);return p.jsx(td,{...r,...o,ref:t})});pi.displayName=gd;var wd="DropdownMenuArrow",xd=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=q(n);return p.jsx(nd,{...r,...o,ref:t})});xd.displayName=wd;var yd="DropdownMenuSubTrigger",mi=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=q(n);return p.jsx(od,{...r,...o,ref:t})});mi.displayName=yd;var Cd="DropdownMenuSubContent",vi=a.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=q(n);return p.jsx(rd,{...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)"}})});vi.displayName=Cd;var wf=ni,xf=ri,yf=si,Cf=ai,bf=ci,Sf=li,Ef=ui,Rf=di,Pf=fi,Tf=pi,Af=mi,Mf=vi;export{Mf as $,ke as A,Td as B,Dd as C,Hd as D,Pe as E,st as F,Lt as G,kt as H,Nt as I,nc as J,Kt as K,Gd as L,kr as M,jr as N,$d as O,O as P,bo as Q,Pd as R,Rd as S,Od as T,Nd as U,Oo as V,Ld as W,xi as X,wf as Y,xf as Z,Af as _,me as a,yf as a0,Cf as a1,Sf as a2,Ef as a3,Pf as a4,Rf as a5,bf as a6,Tf as a7,ff as a8,pf as a9,mf as aa,vf as ab,qd as ac,Qd as ad,Zd as ae,Jd as af,cf as ag,lf as ah,ef as ai,tf as aj,nf as ak,of as al,rf as am,af as an,sf as ao,uf as ap,Se as b,An as c,re as d,fe as e,R as f,ot as g,z as h,To as i,_d as j,Id as k,Bd as l,Vd as m,Wd as n,kd as o,Fd as p,jd as q,ne as r,_t as s,zd as t,B as u,Yd as v,Kd as w,Ut as x,Fl as y,Wi 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.