1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[611],{294:(e,t,r)=>{r.d(t,{B:()=>s});var n,o=r(4232),l=r(1285),i=(n||(n=r.t(o,2)))[" useId ".trim().toString()]||(()=>void 0),a=0;function s(e){let[t,r]=o.useState(i());return(0,l.N)(()=>{e||r(e=>e??String(a++))},[e]),e||(t?`radix-${t}`:"")}},714:(e,t,r)=>{r.d(t,{s:()=>i,t:()=>l});var n=r(4232);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function l(...e){return t=>{let r=!1,n=e.map(e=>{let n=o(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():o(e[t],null)}}}}function i(...e){return n.useCallback(l(...e),e)}},870:(e,t,r)=>{r.d(t,{n:()=>c});var n=r(4232),o=r(714),l=r(6326),i=r(2146),a=r(7876),s="focusScope.autoFocusOnMount",u="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},c=n.forwardRef((e,t)=>{let{loop:r=!1,trapped:c=!1,onMountAutoFocus:v,onUnmountAutoFocus:y,...g}=e,[w,x]=n.useState(null),b=(0,i.c)(v),C=(0,i.c)(y),E=n.useRef(null),R=(0,o.s)(t,e=>x(e)),j=n.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;n.useEffect(()=>{if(c){let e=function(e){if(j.paused||!w)return;let t=e.target;w.contains(t)?E.current=t:h(E.current,{select:!0})},t=function(e){if(j.paused||!w)return;let t=e.relatedTarget;null!==t&&(w.contains(t)||h(E.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&h(w)});return w&&r.observe(w,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[c,w,j.paused]),n.useEffect(()=>{if(w){m.add(j);let e=document.activeElement;if(!w.contains(e)){let t=new CustomEvent(s,d);w.addEventListener(s,b),w.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(h(n,{select:t}),document.activeElement!==r)return}(f(w).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&h(w))}return()=>{w.removeEventListener(s,b),setTimeout(()=>{let t=new CustomEvent(u,d);w.addEventListener(u,C),w.dispatchEvent(t),t.defaultPrevented||h(e??document.body,{select:!0}),w.removeEventListener(u,C),m.remove(j)},0)}}},[w,b,C,j]);let N=n.useCallback(e=>{if(!r&&!c||j.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[o,l]=function(e){let t=f(e);return[p(t,e),p(t.reverse(),e)]}(t);o&&l?e.shiftKey||n!==l?e.shiftKey&&n===o&&(e.preventDefault(),r&&h(l,{select:!0})):(e.preventDefault(),r&&h(o,{select:!0})):n===t&&e.preventDefault()}},[r,c,j.paused]);return(0,a.jsx)(l.sG.div,{tabIndex:-1,...g,ref:R,onKeyDown:N})});function f(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function p(e,t){for(let r of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function h(e,{select:t=!1}={}){if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}c.displayName="FocusScope";var m=function(){let e=[];return{add(t){let r=e[0];t!==r&&r?.pause(),(e=v(e,t)).unshift(t)},remove(t){e=v(e,t),e[0]?.resume()}}}();function v(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}},1285:(e,t,r)=>{r.d(t,{N:()=>o});var n=r(4232),o=globalThis?.document?n.useLayoutEffect:()=>{}},1676:(e,t,r)=>{r.d(t,{Z:()=>o});var n=r(4232);function o(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},1844:(e,t,r)=>{r.d(t,{A:()=>i,q:()=>l});var n=r(4232),o=r(7876);function l(e,t){let r=n.createContext(t),l=e=>{let{children:t,...l}=e,i=n.useMemo(()=>l,Object.values(l));return(0,o.jsx)(r.Provider,{value:i,children:t})};return l.displayName=e+"Provider",[l,function(o){let l=n.useContext(r);if(l)return l;if(void 0!==t)return t;throw Error(`\`${o}\` must be used within \`${e}\``)}]}function i(e,t=[]){let r=[],l=()=>{let t=r.map(e=>n.createContext(e));return function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return l.scopeName=e,[function(t,l){let i=n.createContext(l),a=r.length;r=[...r,l];let s=t=>{let{scope:r,children:l,...s}=t,u=r?.[e]?.[a]||i,d=n.useMemo(()=>s,Object.values(s));return(0,o.jsx)(u.Provider,{value:d,children:l})};return s.displayName=t+"Provider",[s,function(r,o){let s=o?.[e]?.[a]||i,u=n.useContext(s);if(u)return u;if(void 0!==l)return l;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:r,scopeName:n})=>
1{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(l,...t)]}},1893:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(4232),o=r(8477),l=r(6326),i=r(1285),a=r(7876),s=n.forwardRef((e,t)=>{let{container:r,...s}=e,[u,d]=n.useState(!1);(0,i.N)(()=>d(!0),[]);let c=r||u&&globalThis?.document?.body;return c?o.createPortal((0,a.jsx)(l.sG.div,{...s,ref:t}),c):null});s.displayName="Portal"},2078:(e,t,r)=>{r.d(t,{C1:()=>G,bL:()=>F,q7:()=>_});var n=r(4232),o=r(3716),l=r(714),i=r(1844),a=r(6326),s=r(4455),u=r(8162),d=r(4966),c=r(7552),f=r(1676),p=r(6822),h=r(7876),m="Radio",[v,y]=(0,i.A)(m),[g,w]=v(m),x=n.forwardRef((e,t)=>{let{__scopeRadio:r,name:i,checked:s=!1,required:u,disabled:d,value:c="on",onCheck:f,form:p,...m}=e,[v,y]=n.useState(null),w=(0,l.s)(t,e=>y(e)),x=n.useRef(!1),b=!v||p||!!v.closest("form");return(0,h.jsxs)(g,{scope:r,checked:s,disabled:d,children:[(0,h.jsx)(a.sG.button,{type:"button",role:"radio","aria-checked":s,"data-state":R(s),"data-disabled":d?"":void 0,disabled:d,value:c,...m,ref:w,onClick:(0,o.m)(e.onClick,e=>{s||null==f||f(),b&&(x.current=e.isPropagationStopped(),x.current||e.stopPropagation())})}),b&&(0,h.jsx)(E,{control:v,bubbles:!x.current,name:i,value:c,checked:s,required:u,disabled:d,form:p,style:{transform:"translateX(-100%)"}})]})});x.displayName=m;var b="RadioIndicator",C=n.forwardRef((e,t)=>{let{__scopeRadio:r,forceMount:n,...o}=e,l=w(b,r);return(0,h.jsx)(p.C,{present:n||l.checked,children:(0,h.jsx)(a.sG.span,{"data-state":R(l.checked),"data-disabled":l.disabled?"":void 0,...o,ref:t})})});C.displayName=b;var E=n.forwardRef((e,t)=>{let{__scopeRadio:r,control:o,checked:i,bubbles:s=!0,...u}=e,d=n.useRef(null),p=(0,l.s)(d,t),m=(0,f.Z)(i),v=(0,c.X)(o);return n.useEffect(()=>{let e=d.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(m!==i&&t){let r=new Event("click",{bubbles:s});t.call(e,i),e.dispatchEvent(r)}},[m,i,s]),(0,h.jsx)(a.sG.input,{type:"radio","aria-hidden":!0,defaultChecked:i,...u,tabIndex:-1,ref:p,style:{...u.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function R(e){return e?"checked":"unchecked"}E.displayName="RadioBubbleInput";var j=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],N="RadioGroup",[S,k]=(0,i.A)(N,[s.RG,y]),A=(0,s.RG)(),I=y(),[D,T]=S(N),P=n.forwardRef((e,t)=>{let{__scopeRadioGroup:r,name:n,defaultValue:o,value:l,required:i=!1,disabled:c=!1,orientation:f,dir:p,loop:m=!0,onValueChange:v,...y}=e,g=A(r),w=(0,d.jH)(p),[x,b]=(0,u.i)({prop:l,defaultProp:null!=o?o:null,onChange:v,caller:N});return(0,h.jsx)(D,{scope:r,name:n,required:i,disabled:c,value:x,onValueChange:b,children:(0,h.jsx)(s.bL,{asChild:!0,...g,orientation:f,dir:w,loop:m,children:(0,h.jsx)(a.sG.div,{role:"radiogroup","aria-required":i,"aria-orientation":f,"data-disabled":c?"":void 0,dir:w,...y,ref:t})})})});P.displayName=N;var O="RadioGroupItem",L=n.forwardRef((e,t)=>{let{__scopeRadioGroup:r,disabled:i,...a}=e,u=T(O,r),d=u.disabled||i,c=A(r),f=I(r),p=n.useRef(null),m=(0,l.s)(t,p),v=u.value===a.value,y=n.useRef(!1);return n.useEffect(()=>{let e=e=>{j.includes(e.key)&&(y.current=!0)},t=()=>y.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,h.jsx)(s.q7,{asChild:!0,...c,focusable:!d,active:v,children:(0,h.jsx)(x,{disabled:d,required:u.required,checked:v,...f,...a,name:u.name,ref:m,onCheck:()=>u.onValueChange(a.value),onKeyDown:(0,o.m)(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,o.m)(a.onFocus,()=>{var e;y.current&&(null==(e=p.current)||e.click())})})})});L.displayName=O;var M=n.forwardRef((e,t)=>{let{__scopeRadioGroup:r,...n}=e,o=I(r);return(0,h.jsx)(C,{...o,...n,ref:t})});M.displayName="RadioGroupIndicator";var F=P,_=L,G=M},2146:(e,t,r)=>{r.d(t,{c:()=>o});var n=r(4232);function o(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}},2658:(e,t,r)=>{r.d(t,{Oh:()=>l});var n=r(4232),o=0;function l(){n.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??i()),document.body.insertAdjacentElement("beforeend",e[1]??i()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e
1=>e.remove()),o--}},[])}function i(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},2987:(e,t,r)=>{r.d(t,{TL:()=>i});var n=r(4232),o=r(714),l=r(7876);function i(e){let t=function(e){let t=n.forwardRef((e,t)=>{let{children:r,...l}=e;if(n.isValidElement(r)){var i;let e,a,s=(i=r,(a=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(a=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),u=function(e,t){let r={...t};for(let n in t){let o=e[n],l=t[n];/^on[A-Z]/.test(n)?o&&l?r[n]=(...e)=>{let t=l(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...l}:"className"===n&&(r[n]=[o,l].filter(Boolean).join(" "))}return{...e,...r}}(l,r.props);return r.type!==n.Fragment&&(u.ref=t?(0,o.t)(t,s):s),n.cloneElement(r,u)}return n.Children.count(r)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=n.forwardRef((e,r)=>{let{children:o,...i}=e,a=n.Children.toArray(o),u=a.find(s);if(u){let e=u.props.children,o=a.map(t=>t!==u?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,l.jsx)(t,{...i,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,o):null})}return(0,l.jsx)(t,{...i,ref:r,children:o})});return r.displayName=`${e}.Slot`,r}var a=Symbol("radix.slottable");function s(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===a}},3109:(e,t,r)=>{r.d(t,{UC:()=>eQ,In:()=>eY,q7:()=>e1,VF:()=>e6,p4:()=>e2,ZL:()=>eJ,bL:()=>eq,wn:()=>e4,PP:()=>e7,l9:()=>eX,WT:()=>eZ,LM:()=>e0});var n=r(4232),o=r(8477);function l(e,[t,r]){return Math.min(r,Math.max(t,e))}var i=r(3716),a=r(8775),s=r(714),u=r(1844),d=r(4966),c=r(3520),f=r(2658),p=r(870),h=r(294),m=r(4882),v=r(2262),y=r(6326),g=r(7876),w=n.forwardRef((e,t)=>{let{children:r,width:n=10,height:o=5,...l}=e;return(0,g.jsx)(y.sG.svg,{...l,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,g.jsx)("polygon",{points:"0,0 30,0 15,10"})})});w.displayName="Arrow";var x=r(2146),b=r(1285),C=r(7552),E="Popper",[R,j]=(0,u.A)(E),[N,S]=R(E),k=e=>{let{__scopePopper:t,children:r}=e,[o,l]=n.useState(null);return(0,g.jsx)(N,{scope:t,anchor:o,onAnchorChange:l,children:r})};k.displayName=E;var A="PopperAnchor",I=n.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:o,...l}=e,i=S(A,r),a=n.useRef(null),u=(0,s.s)(t,a);return n.useEffect(()=>{i.onAnchorChange(o?.current||a.current)}),o?null:(0,g.jsx)(y.sG.div,{...l,ref:u})});I.displayName=A;var D="PopperContent",[T,P]=R(D),O=n.forwardRef((e,t)=>{let{__scopePopper:r,side:o="bottom",sideOffset:l=0,align:i="center",alignOffset:a=0,arrowPadding:u=0,avoidCollisions:d=!0,collisionBoundary:c=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:w="optimized",onPlaced:E,...R}=e,j=S(D,r),[N,k]=n.useState(null),A=(0,s.s)(t,e=>k(e)),[I,P]=n.useState(null),O=(0,C.X)(I),L=O?.width??0,M=O?.height??0,F="number"==typeof f?f:{top:0,right:0,bottom:0,left:0,...f},H=Array.isArray(c)?c:[c],W=H.length>0,z={padding:F,boundary:H.filter(_),altBoundary:W},{refs:K,floatingStyles:U,placement:V,isPositioned:$,middlewareData:q}=(0,m.we)({strategy:"fixed",placement:o+("center"!==i?"-"+i:""),whileElementsMounted:(...e)=>(0,v.ll)(...e,{animationFrame:"always"===w}),elements:{reference:j.anchor},middleware:[(0,m.cY)({mainAxis:l+M,alignmentAxis:a}),d&&(0,m.BN)({mainAxis:!0,crossAxis:!1,limiter:"partial"===p?(0,m.ER)():void 0,...z}),d&&(0,m.UU)({...z}),(0,m.Ej)({...z,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{let{width:o,height:l}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${r}px`),i.setProperty("--radix-popper-available-height",`${n}px`),i.setProperty("--radix-popper-anchor-width",`${o}px`),i.setProperty("--radix-popper-anchor-height",`${l}px`)}}),I&&(0,m.UE)({element:I,padding:u}),G({arrowWidth:L,arrowHeight:M}),h&&(0,m.jD)({strategy:"referenceHidden",...z})]}),[X,Z]=B(V),Y=(0,x.c)(E);(0,b.N)(()=>{$&&Y?.()},[$,Y]);let J=q.arrow?.x,Q=q.arrow?.y,ee=q.arrow?.centerOffset!==0,[et,er]=n.useState();return(0,b.N)(()=>{N&&er(window.getComputedStyle(N).zIndex)},[N]),(0,g.jsx)("div",{ref:K.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:$?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:et,"--radix-popper-transform-origin":[q.transformOrigin?.x,q.transformOrigin?.y].join(" "),...q.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,g.jsx)(T,{scope:r,placedSide:X,onArrowChange:P,arrowX:J,arrowY:Q,shouldHideArrow:ee,children:(0,g.jsx)(y.sG.div,{"data-side":X,"data-align":Z,...R,ref:A,style:{...R.style,animation:$?void 0:"none"}})})})});O.displayName=D;var L="PopperArrow",M={top:"bottom",right:"left",bottom:"top",left:"r
1ight"},F=n.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,o=P(L,r),l=M[o.placedSide];return(0,g.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,g.jsx)(w,{...n,ref:t,style:{...n.style,display:"block"}})})});function _(e){return null!==e}F.displayName=L;var G=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:n,middlewareData:o}=t,l=o.arrow?.centerOffset!==0,i=l?0:e.arrowWidth,a=l?0:e.arrowHeight,[s,u]=B(r),d={start:"0%",center:"50%",end:"100%"}[u],c=(o.arrow?.x??0)+i/2,f=(o.arrow?.y??0)+a/2,p="",h="";return"bottom"===s?(p=l?d:`${c}px`,h=`${-a}px`):"top"===s?(p=l?d:`${c}px`,h=`${n.floating.height+a}px`):"right"===s?(p=`${-a}px`,h=l?d:`${f}px`):"left"===s&&(p=`${n.floating.width+a}px`,h=l?d:`${f}px`),{data:{x:p,y:h}}}});function B(e){let[t,r="center"]=e.split("-");return[t,r]}var H=r(1893),W=r(2987),z=r(8162),K=r(1676),U=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"});n.forwardRef((e,t)=>(0,g.jsx)(y.sG.span,{...e,ref:t,style:{...U,...e.style}})).displayName="VisuallyHidden";var V=r(4769),$=r(2634),q=[" ","Enter","ArrowUp","ArrowDown"],X=[" ","Enter"],Z="Select",[Y,J,Q]=(0,a.N)(Z),[ee,et]=(0,u.A)(Z,[Q,j]),er=j(),[en,eo]=ee(Z),[el,ei]=ee(Z),ea=e=>{let{__scopeSelect:t,children:r,open:o,defaultOpen:l,onOpenChange:i,value:a,defaultValue:s,onValueChange:u,dir:c,name:f,autoComplete:p,disabled:m,required:v,form:y}=e,w=er(t),[x,b]=n.useState(null),[C,E]=n.useState(null),[R,j]=n.useState(!1),N=(0,d.jH)(c),[S,A]=(0,z.i)({prop:o,defaultProp:null!=l&&l,onChange:i,caller:Z}),[I,D]=(0,z.i)({prop:a,defaultProp:s,onChange:u,caller:Z}),T=n.useRef(null),P=!x||y||!!x.closest("form"),[O,L]=n.useState(new Set),M=Array.from(O).map(e=>e.props.value).join(";");return(0,g.jsx)(k,{...w,children:(0,g.jsxs)(en,{required:v,scope:t,trigger:x,onTriggerChange:b,valueNode:C,onValueNodeChange:E,valueNodeHasChildren:R,onValueNodeHasChildrenChange:j,contentId:(0,h.B)(),value:I,onValueChange:D,open:S,onOpenChange:A,dir:N,triggerPointerDownPosRef:T,disabled:m,children:[(0,g.jsx)(Y.Provider,{scope:t,children:(0,g.jsx)(el,{scope:e.__scopeSelect,onNativeOptionAdd:n.useCallback(e=>{L(t=>new Set(t).add(e))},[]),onNativeOptionRemove:n.useCallback(e=>{L(t=>{let r=new Set(t);return r.delete(e),r})},[]),children:r})}),P?(0,g.jsxs)(eK,{"aria-hidden":!0,required:v,tabIndex:-1,name:f,autoComplete:p,value:I,onChange:e=>D(e.target.value),disabled:m,form:y,children:[void 0===I?(0,g.jsx)("option",{value:""}):null,Array.from(O)]},M):null]})})};ea.displayName=Z;var es="SelectTrigger",eu=n.forwardRef((e,t)=>{let{__scopeSelect:r,disabled:o=!1,...l}=e,a=er(r),u=eo(es,r),d=u.disabled||o,c=(0,s.s)(t,u.onTriggerChange),f=J(r),p=n.useRef("touch"),[h,m,v]=eV(e=>{let t=f().filter(e=>!e.disabled),r=t.find(e=>e.value===u.value),n=e$(t,e,r);void 0!==n&&u.onValueChange(n.value)}),w=e=>{d||(u.onOpenChange(!0),v()),e&&(u.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,g.jsx)(I,{asChild:!0,...a,children:(0,g.jsx)(y.sG.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:d,"data-disabled":d?"":void 0,"data-placeholder":eU(u.value)?"":void 0,...l,ref:c,onClick:(0,i.m)(l.onClick,e=>{e.currentTarget.focus(),"mouse"!==p.current&&w(e)}),onPointerDown:(0,i.m)(l.onPointerDown,e=>{p.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(w(e),e.preventDefault())}),onKeyDown:(0,i.m)(l.onKeyDown,e=>{let t=""!==h.current;
1e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),(!t||" "!==e.key)&&q.includes(e.key)&&(w(),e.preventDefault())})})})});eu.displayName=es;var ed="SelectValue",ec=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:o,children:l,placeholder:i="",...a}=e,u=eo(ed,r),{onValueNodeHasChildrenChange:d}=u,c=void 0!==l,f=(0,s.s)(t,u.onValueNodeChange);return(0,b.N)(()=>{d(c)},[d,c]),(0,g.jsx)(y.sG.span,{...a,ref:f,style:{pointerEvents:"none"},children:eU(u.value)?(0,g.jsx)(g.Fragment,{children:i}):l})});ec.displayName=ed;var ef=n.forwardRef((e,t)=>{let{__scopeSelect:r,children:n,...o}=e;return(0,g.jsx)(y.sG.span,{"aria-hidden":!0,...o,ref:t,children:n||"â¼"})});ef.displayName="SelectIcon";var ep=e=>(0,g.jsx)(H.Z,{asChild:!0,...e});ep.displayName="SelectPortal";var eh="SelectContent",em=n.forwardRef((e,t)=>{let r=eo(eh,e.__scopeSelect),[l,i]=n.useState();return((0,b.N)(()=>{i(new DocumentFragment)},[]),r.open)?(0,g.jsx)(ew,{...e,ref:t}):l?o.createPortal((0,g.jsx)(ev,{scope:e.__scopeSelect,children:(0,g.jsx)(Y.Slot,{scope:e.__scopeSelect,children:(0,g.jsx)("div",{children:e.children})})}),l):null});em.displayName=eh;var[ev,ey]=ee(eh),eg=(0,W.TL)("SelectContent.RemoveScroll"),ew=n.forwardRef((e,t)=>{let{__scopeSelect:r,position:o="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:a,onPointerDownOutside:u,side:d,sideOffset:h,align:m,alignOffset:v,arrowPadding:y,collisionBoundary:w,collisionPadding:x,sticky:b,hideWhenDetached:C,avoidCollisions:E,...R}=e,j=eo(eh,r),[N,S]=n.useState(null),[k,A]=n.useState(null),I=(0,s.s)(t,e=>S(e)),[D,T]=n.useState(null),[P,O]=n.useState(null),L=J(r),[M,F]=n.useState(!1),_=n.useRef(!1);n.useEffect(()=>{if(N)return(0,V.Eq)(N)},[N]),(0,f.Oh)();let G=n.useCallback(e=>{let[t,...r]=L().map(e=>e.ref.current),[n]=r.slice(-1),o=document.activeElement;for(let r of e)if(r===o||(null==r||r.scrollIntoView({block:"nearest"}),r===t&&k&&(k.scrollTop=0),r===n&&k&&(k.scrollTop=k.scrollHeight),null==r||r.focus(),document.activeElement!==o))return},[L,k]),B=n.useCallback(()=>G([D,N]),[G,D,N]);n.useEffect(()=>{M&&B()},[M,B]);let{onOpenChange:H,triggerPointerDownPosRef:W}=j;n.useEffect(()=>{if(N){let e={x:0,y:0},t=t=>{var r,n,o,l;e={x:Math.abs(Math.round(t.pageX)-(null!=(o=null==(r=W.current)?void 0:r.x)?o:0)),y:Math.abs(Math.round(t.pageY)-(null!=(l=null==(n=W.current)?void 0:n.y)?l:0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():N.contains(r.target)||H(!1),document.removeEventListener("pointermove",t),W.current=null};return null!==W.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[N,H,W]),n.useEffect(()=>{let e=()=>H(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[H]);let[z,K]=eV(e=>{let t=L().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),n=e$(t,e,r);n&&setTimeout(()=>n.ref.current.focus())}),U=n.useCallback((e,t,r)=>{let n=!_.current&&!r;(void 0!==j.value&&j.value===t||n)&&(T(e),n&&(_.current=!0))},[j.value]),q=n.useCallback(()=>null==N?void 0:N.focus(),[N]),X=n.useCallback((e,t,r)=>{let n=!_.current&&!r;(void 0!==j.value&&j.value===t||n)&&O(e)},[j.value]),Z="popper"===o?eb:ex,Y=Z===eb?{side:d,sideOffset:h,align:m,alignOffset:v,arrowPadding:y,collisionBoundary:w,collisionPadding:x,sticky:b,hideWhenDetached:C,avoidCollisions:E}:{};return(0,g.jsx)(ev,{scope:r,content:N,viewport:k,onViewportChange:A,itemRefCallback:U,selectedItem:D,onItemLeave:q,itemTextRefCallback:X,focusSelectedItem:B,selectedItemText:P,position:o,isPositioned:M,searchRef:z,children:(0,g.jsx)($.A,{as:eg,allowPinchZoom:!0,children:(0,g.jsx)(p.n,{asChild:!0,trapped:j.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,i.m)(l,e=>{var t;null==(t=j.trigger)||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,g.jsx)(c.qW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>j.onOpenChange(!1),children:(0,g.jsx)(Z,{role:"listbox",id:j.contentId,"data-state":j.open?"open":"closed",dir:j.dir,onContextMenu:e=>e.preventDefault(),...R,...Y,onPlaced:()=>F(!0),ref:I,style:{display:"flex",flexDirection:"column",outline:"none",...R.style},onKeyDown:(0,i.m)(R.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;
1if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||K(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=L().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let r=e.target,n=t.indexOf(r);t=t.slice(n+1)}setTimeout(()=>G(t)),e.preventDefault()}})})})})})})});ew.displayName="SelectContentImpl";var ex=n.forwardRef((e,t)=>{let{__scopeSelect:r,onPlaced:o,...i}=e,a=eo(eh,r),u=ey(eh,r),[d,c]=n.useState(null),[f,p]=n.useState(null),h=(0,s.s)(t,e=>p(e)),m=J(r),v=n.useRef(!1),w=n.useRef(!0),{viewport:x,selectedItem:C,selectedItemText:E,focusSelectedItem:R}=u,j=n.useCallback(()=>{if(a.trigger&&a.valueNode&&d&&f&&x&&C&&E){let e=a.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),r=a.valueNode.getBoundingClientRect(),n=E.getBoundingClientRect();if("rtl"!==a.dir){let o=n.left-t.left,i=r.left-o,a=e.left-i,s=e.width+a,u=Math.max(s,t.width),c=l(i,[10,Math.max(10,window.innerWidth-10-u)]);d.style.minWidth=s+"px",d.style.left=c+"px"}else{let o=t.right-n.right,i=window.innerWidth-r.right-o,a=window.innerWidth-e.right-i,s=e.width+a,u=Math.max(s,t.width),c=l(i,[10,Math.max(10,window.innerWidth-10-u)]);d.style.minWidth=s+"px",d.style.right=c+"px"}let i=m(),s=window.innerHeight-20,u=x.scrollHeight,c=window.getComputedStyle(f),p=parseInt(c.borderTopWidth,10),h=parseInt(c.paddingTop,10),y=parseInt(c.borderBottomWidth,10),g=p+h+u+parseInt(c.paddingBottom,10)+y,w=Math.min(5*C.offsetHeight,g),b=window.getComputedStyle(x),R=parseInt(b.paddingTop,10),j=parseInt(b.paddingBottom,10),N=e.top+e.height/2-10,S=C.offsetHeight/2,k=p+h+(C.offsetTop+S);if(k<=N){let e=i.length>0&&C===i[i.length-1].ref.current;d.style.bottom="0px";let t=Math.max(s-N,S+(e?j:0)+(f.clientHeight-x.offsetTop-x.offsetHeight)+y);d.style.height=k+t+"px"}else{let e=i.length>0&&C===i[0].ref.current;d.style.top="0px";let t=Math.max(N,p+x.offsetTop+(e?R:0)+S);d.style.height=t+(g-k)+"px",x.scrollTop=k-N+x.offsetTop}d.style.margin="".concat(10,"px 0"),d.style.minHeight=w+"px",d.style.maxHeight=s+"px",null==o||o(),requestAnimationFrame(()=>v.current=!0)}},[m,a.trigger,a.valueNode,d,f,x,C,E,a.dir,o]);(0,b.N)(()=>j(),[j]);let[N,S]=n.useState();(0,b.N)(()=>{f&&S(window.getComputedStyle(f).zIndex)},[f]);let k=n.useCallback(e=>{e&&!0===w.current&&(j(),null==R||R(),w.current=!1)},[j,R]);return(0,g.jsx)(eC,{scope:r,contentWrapper:d,shouldExpandOnScrollRef:v,onScrollButtonChange:k,children:(0,g.jsx)("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:N},children:(0,g.jsx)(y.sG.div,{...i,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});ex.displayName="SelectItemAlignedPosition";var eb=n.forwardRef((e,t)=>{let{__scopeSelect:r,align:n="start",collisionPadding:o=10,...l}=e,i=er(r);return(0,g.jsx)(O,{...i,...l,ref:t,align:n,collisionPadding:o,style:{boxSizing:"border-box",...l.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)"}})});eb.displayName="SelectPopperPosition";var[eC,eE]=ee(eh,{}),eR="SelectViewport",ej=n.forwardRef((e,t)=>{let{__scopeSelect:r,nonce:o,...l}=e,a=ey(eR,r),u=eE(eR,r),d=(0,s.s)(t,a.onViewportChange),c=n.useRef(0);return(0,g.jsxs)(g.Fragment,{children:[(0,g.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}),(0,g.jsx)(Y.Slot,{scope:r,children:(0,g.jsx)(y.sG.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:d,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:(0,i.m)(l.onScroll,e=>{let t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:n}=u;if((null==n?void 0:n.current)&&r){let e=Math.abs(c.current-t.scrollTop);if(e>0){let n=window.innerHeight-20,o=Math.max(parseFloat(r.style.minHeight),parseFloat(r.style.height));if(o<n){let l=o+e,i=Math.min(n,l),a=l-i;r.style.height=i+"px","0px"===r.style.bottom&&(t.scrollTop=a>0?a:0,r.style.justifyContent="flex-end")}}}c.current=t.scrollTop})})})]})});ej.displayName=eR;var eN="SelectGroup",[eS,ek]=ee(eN);n.forwardRef((e,t)=>
1{let{__scopeSelect:r,...n}=e,o=(0,h.B)();return(0,g.jsx)(eS,{scope:r,id:o,children:(0,g.jsx)(y.sG.div,{role:"group","aria-labelledby":o,...n,ref:t})})}).displayName=eN;var eA="SelectLabel";n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,o=ek(eA,r);return(0,g.jsx)(y.sG.div,{id:o.id,...n,ref:t})}).displayName=eA;var eI="SelectItem",[eD,eT]=ee(eI),eP=n.forwardRef((e,t)=>{let{__scopeSelect:r,value:o,disabled:l=!1,textValue:a,...u}=e,d=eo(eI,r),c=ey(eI,r),f=d.value===o,[p,m]=n.useState(null!=a?a:""),[v,w]=n.useState(!1),x=(0,s.s)(t,e=>{var t;return null==(t=c.itemRefCallback)?void 0:t.call(c,e,o,l)}),b=(0,h.B)(),C=n.useRef("touch"),E=()=>{l||(d.onValueChange(o),d.onOpenChange(!1))};if(""===o)throw 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(0,g.jsx)(eD,{scope:r,value:o,disabled:l,textId:b,isSelected:f,onItemTextChange:n.useCallback(e=>{m(t=>{var r;return t||(null!=(r=null==e?void 0:e.textContent)?r:"").trim()})},[]),children:(0,g.jsx)(Y.ItemSlot,{scope:r,value:o,disabled:l,textValue:p,children:(0,g.jsx)(y.sG.div,{role:"option","aria-labelledby":b,"data-highlighted":v?"":void 0,"aria-selected":f&&v,"data-state":f?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...u,ref:x,onFocus:(0,i.m)(u.onFocus,()=>w(!0)),onBlur:(0,i.m)(u.onBlur,()=>w(!1)),onClick:(0,i.m)(u.onClick,()=>{"mouse"!==C.current&&E()}),onPointerUp:(0,i.m)(u.onPointerUp,()=>{"mouse"===C.current&&E()}),onPointerDown:(0,i.m)(u.onPointerDown,e=>{C.current=e.pointerType}),onPointerMove:(0,i.m)(u.onPointerMove,e=>{if(C.current=e.pointerType,l){var t;null==(t=c.onItemLeave)||t.call(c)}else"mouse"===C.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,i.m)(u.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null==(t=c.onItemLeave)||t.call(c)}}),onKeyDown:(0,i.m)(u.onKeyDown,e=>{var t;((null==(t=c.searchRef)?void 0:t.current)===""||" "!==e.key)&&(X.includes(e.key)&&E()," "===e.key&&e.preventDefault())})})})})});eP.displayName=eI;var eO="SelectItemText",eL=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:l,style:i,...a}=e,u=eo(eO,r),d=ey(eO,r),c=eT(eO,r),f=ei(eO,r),[p,h]=n.useState(null),m=(0,s.s)(t,e=>h(e),c.onItemTextChange,e=>{var t;return null==(t=d.itemTextRefCallback)?void 0:t.call(d,e,c.value,c.disabled)}),v=null==p?void 0:p.textContent,w=n.useMemo(()=>(0,g.jsx)("option",{value:c.value,disabled:c.disabled,children:v},c.value),[c.disabled,c.value,v]),{onNativeOptionAdd:x,onNativeOptionRemove:C}=f;return(0,b.N)(()=>(x(w),()=>C(w)),[x,C,w]),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(y.sG.span,{id:c.textId,...a,ref:m}),c.isSelected&&u.valueNode&&!u.valueNodeHasChildren?o.createPortal(a.children,u.valueNode):null]})});eL.displayName=eO;var eM="SelectItemIndicator",eF=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return eT(eM,r).isSelected?(0,g.jsx)(y.sG.span,{"aria-hidden":!0,...n,ref:t}):null});eF.displayName=eM;var e_="SelectScrollUpButton",eG=n.forwardRef((e,t)=>{let r=ey(e_,e.__scopeSelect),o=eE(e_,e.__scopeSelect),[l,i]=n.useState(!1),a=(0,s.s)(t,o.onScrollButtonChange);return(0,b.N)(()=>{if(r.viewport&&r.isPositioned){let e=function(){i(t.scrollTop>0)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),l?(0,g.jsx)(eW,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});eG.displayName=e_;var eB="SelectScrollDownButton",eH=n.forwardRef((e,t)=>{let r=ey(eB,e.__scopeSelect),o=eE(eB,e.__scopeSelect),[l,i]=n.useState(!1),a=(0,s.s)(t,o.onScrollButtonChange);return(0,b.N)(()=>{if(r.viewport&&r.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;i(Math.ceil(t.scrollTop)<e)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),l?(0,g.jsx)(eW,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});eH.displayName=eB;var eW=n.forwardRef((e,t)=>
1{let{__scopeSelect:r,onAutoScroll:o,...l}=e,a=ey("SelectScrollButton",r),s=n.useRef(null),u=J(r),d=n.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return n.useEffect(()=>()=>d(),[d]),(0,b.N)(()=>{var e;let t=u().find(e=>e.ref.current===document.activeElement);null==t||null==(e=t.ref.current)||e.scrollIntoView({block:"nearest"})},[u]),(0,g.jsx)(y.sG.div,{"aria-hidden":!0,...l,ref:t,style:{flexShrink:0,...l.style},onPointerDown:(0,i.m)(l.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(o,50))}),onPointerMove:(0,i.m)(l.onPointerMove,()=>{var e;null==(e=a.onItemLeave)||e.call(a),null===s.current&&(s.current=window.setInterval(o,50))}),onPointerLeave:(0,i.m)(l.onPointerLeave,()=>{d()})})});n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return(0,g.jsx)(y.sG.div,{"aria-hidden":!0,...n,ref:t})}).displayName="SelectSeparator";var ez="SelectArrow";n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,o=er(r),l=eo(ez,r),i=ey(ez,r);return l.open&&"popper"===i.position?(0,g.jsx)(F,{...o,...n,ref:t}):null}).displayName=ez;var eK=n.forwardRef((e,t)=>{let{__scopeSelect:r,value:o,...l}=e,i=n.useRef(null),a=(0,s.s)(t,i),u=(0,K.Z)(o);return n.useEffect(()=>{let e=i.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(u!==o&&t){let r=new Event("change",{bubbles:!0});t.call(e,o),e.dispatchEvent(r)}},[u,o]),(0,g.jsx)(y.sG.select,{...l,style:{...U,...l.style},ref:a,defaultValue:o})});function eU(e){return""===e||void 0===e}function eV(e){let t=(0,x.c)(e),r=n.useRef(""),o=n.useRef(0),l=n.useCallback(e=>{let n=r.current+e;t(n),function e(t){r.current=t,window.clearTimeout(o.current),""!==t&&(o.current=window.setTimeout(()=>e(""),1e3))}(n)},[t]),i=n.useCallback(()=>{r.current="",window.clearTimeout(o.current)},[]);return n.useEffect(()=>()=>window.clearTimeout(o.current),[]),[r,l,i]}function e$(e,t,r){var n,o;let l=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=r?e.indexOf(r):-1,a=(n=e,o=Math.max(i,0),n.map((e,t)=>n[(o+t)%n.length]));1===l.length&&(a=a.filter(e=>e!==r));let s=a.find(e=>e.textValue.toLowerCase().startsWith(l.toLowerCase()));return s!==r?s:void 0}eK.displayName="SelectBubbleInput";var eq=ea,eX=eu,eZ=ec,eY=ef,eJ=ep,eQ=em,e0=ej,e1=eP,e2=eL,e6=eF,e7=eG,e4=eH},3325:(e,t,r)=>{r.d(t,{UC:()=>ei,Y9:()=>eo,q7:()=>en,bL:()=>er,l9:()=>el});var n=r(4232),o=r(1844),l=r(8775),i=r(714),a=r(3716),s=r(8162),u=r(6326),d=r(1285),c=r(6822),f=r(294),p=r(7876),h="Collapsible",[m,v]=(0,o.A)(h),[y,g]=m(h),w=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,open:o,defaultOpen:l,disabled:i,onOpenChange:a,...d}=e,[c,m]=(0,s.i)({prop:o,defaultProp:l??!1,onChange:a,caller:h});return(0,p.jsx)(y,{scope:r,disabled:i,contentId:(0,f.B)(),open:c,onOpenToggle:n.useCallback(()=>m(e=>!e),[m]),children:(0,p.jsx)(u.sG.div,{"data-state":j(c),"data-disabled":i?"":void 0,...d,ref:t})})});w.displayName=h;var x="CollapsibleTrigger",b=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,...n}=e,o=g(x,r);return(0,p.jsx)(u.sG.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":j(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:(0,a.m)(e.onClick,o.onOpenToggle)})});b.displayName=x;var C="CollapsibleContent",E=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=g(C,e.__scopeCollapsible);return(0,p.jsx)(c.C,{present:r||o.open,children:({present:e})=>(0,p.jsx)(R,{...n,ref:t,present:e})})});E.displayName=C;var R=n.forwardRef((e,t)=>{let{__scopeCollapsible:r,present:o,children:l,...a}=e,s=g(C,r),[c,f]=n.useState(o),h=n.useRef(null),m=(0,i.s)(t,h),v=n.useRef(0),y=v.current,w=n.useRef(0),x=w.current,b=s.open||c,E=n.useRef(b),R=n.useRef(void 0);return n.useEffect(()=>{let e=requestAnimationFrame(()=>E.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,d.N)(()=>{let e=h.current;if(e){R.current=R.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();v.current=t.height,w.current=t.width,E.current||(e.style.transitionDuration=R.current.transitionDuration,e.style.animationName=R.current.animationName),f(o)}},[s.open,o]),(0,p.jsx)(u.sG.div,{"data-state":j(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!b,...a,ref:m,style:{"--radix-collapsible-content-height":y?`${y}px`:void 0,"--radix-collapsible-content-width":x?`${x}px`:void 0,...e.style},children:b&&l})});function j(e){return e?"open":"closed"}var N=r(4966),S="Accordion",k=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[A,I,D]=(0,l.N)(S),[T,P]=(0,o.A)(S,[D,v]),O=v(),L=n.forwardRef((e,t)=>
1{let{type:r,...n}=e;return(0,p.jsx)(A.Provider,{scope:e.__scopeAccordion,children:"multiple"===r?(0,p.jsx)(H,{...n,ref:t}):(0,p.jsx)(B,{...n,ref:t})})});L.displayName=S;var[M,F]=T(S),[_,G]=T(S,{collapsible:!1}),B=n.forwardRef((e,t)=>{let{value:r,defaultValue:o,onValueChange:l=()=>{},collapsible:i=!1,...a}=e,[u,d]=(0,s.i)({prop:r,defaultProp:null!=o?o:"",onChange:l,caller:S});return(0,p.jsx)(M,{scope:e.__scopeAccordion,value:n.useMemo(()=>u?[u]:[],[u]),onItemOpen:d,onItemClose:n.useCallback(()=>i&&d(""),[i,d]),children:(0,p.jsx)(_,{scope:e.__scopeAccordion,collapsible:i,children:(0,p.jsx)(K,{...a,ref:t})})})}),H=n.forwardRef((e,t)=>{let{value:r,defaultValue:o,onValueChange:l=()=>{},...i}=e,[a,u]=(0,s.i)({prop:r,defaultProp:null!=o?o:[],onChange:l,caller:S}),d=n.useCallback(e=>u(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...t,e]}),[u]),c=n.useCallback(e=>u(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t!==e)}),[u]);return(0,p.jsx)(M,{scope:e.__scopeAccordion,value:a,onItemOpen:d,onItemClose:c,children:(0,p.jsx)(_,{scope:e.__scopeAccordion,collapsible:!0,children:(0,p.jsx)(K,{...i,ref:t})})})}),[W,z]=T(S),K=n.forwardRef((e,t)=>{let{__scopeAccordion:r,disabled:o,dir:l,orientation:s="vertical",...d}=e,c=n.useRef(null),f=(0,i.s)(c,t),h=I(r),m="ltr"===(0,N.jH)(l),v=(0,a.m)(e.onKeyDown,e=>{var t;if(!k.includes(e.key))return;let r=e.target,n=h().filter(e=>{var t;return!(null==(t=e.ref.current)?void 0:t.disabled)}),o=n.findIndex(e=>e.ref.current===r),l=n.length;if(-1===o)return;e.preventDefault();let i=o,a=l-1,u=()=>{(i=o+1)>a&&(i=0)},d=()=>{(i=o-1)<0&&(i=a)};switch(e.key){case"Home":i=0;break;case"End":i=a;break;case"ArrowRight":"horizontal"===s&&(m?u():d());break;case"ArrowDown":"vertical"===s&&u();break;case"ArrowLeft":"horizontal"===s&&(m?d():u());break;case"ArrowUp":"vertical"===s&&d()}null==(t=n[i%l].ref.current)||t.focus()});return(0,p.jsx)(W,{scope:r,disabled:o,direction:l,orientation:s,children:(0,p.jsx)(A.Slot,{scope:r,children:(0,p.jsx)(u.sG.div,{...d,"data-orientation":s,ref:f,onKeyDown:o?void 0:v})})})}),U="AccordionItem",[V,$]=T(U),q=n.forwardRef((e,t)=>{let{__scopeAccordion:r,value:n,...o}=e,l=z(U,r),i=F(U,r),a=O(r),s=(0,f.B)(),u=n&&i.value.includes(n)||!1,d=l.disabled||e.disabled;return(0,p.jsx)(V,{scope:r,open:u,disabled:d,triggerId:s,children:(0,p.jsx)(w,{"data-orientation":l.orientation,"data-state":et(u),...a,...o,ref:t,disabled:d,open:u,onOpenChange:e=>{e?i.onItemOpen(n):i.onItemClose(n)}})})});q.displayName=U;var X="AccordionHeader",Z=n.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,o=z(S,r),l=$(X,r);return(0,p.jsx)(u.sG.h3,{"data-orientation":o.orientation,"data-state":et(l.open),"data-disabled":l.disabled?"":void 0,...n,ref:t})});Z.displayName=X;var Y="AccordionTrigger",J=n.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,o=z(S,r),l=$(Y,r),i=G(Y,r),a=O(r);return(0,p.jsx)(A.ItemSlot,{scope:r,children:(0,p.jsx)(b,{"aria-disabled":l.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:l.triggerId,...a,...n,ref:t})})});J.displayName=Y;var Q="AccordionContent",ee=n.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,o=z(S,r),l=$(Q,r),i=O(r);return(0,p.jsx)(E,{role:"region","aria-labelledby":l.triggerId,"data-orientation":o.orientation,...i,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function et(e){return e?"open":"closed"}ee.displayName=Q;var er=L,en=q,eo=Z,el=J,ei=ee},3520:(e,t,r)=>{r.d(t,{qW:()=>f});var n,o=r(4232),l=r(3716),i=r(6326),a=r(714),s=r(2146),u=r(7876),d="dismissableLayer.update",c=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=o.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:y,onDismiss:g,...w}=e,x=o.useContext(c),[b,C]=o.useState(null),E=b?.ownerDocument??globalThis?.document,[,R]=o.useState({}),j=(0,a.s)(t,e=>C(e)),N=Array.from(x.layers),[S]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),k=N.indexOf(S),A=b?N.indexOf(b):-1,I=x.layersWithOutsidePointerEventsDisabled.size>0,D=A>=k,T=function(e,t=globalThis?.document){let r=(0,s.c)(e),n=o.useRef(!1),l=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!n.current){let n=function(){h("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",l.current),l.current=n,t.addEventListener("click",l.current,{once:!0})):n()}else t.removeEventListener("click",l.current);n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",l.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,r=[...x.branches].some(e=>e.contains(t));D&&!r&&(m?.(e),y?.(e),e.defaultPrevented||g?.())},E),P=function(e,t=globalThis?.document){let r=(0,s.c)(e),n=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!n.current&&h("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target;![...x.branches].some(e=>e.contains(t))&&(v?.(e),y?.(e),e.defaultPrevented||g?.())},E);return!function(e,t=globalThis?.document){let r=(0,s.c)(e);o.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{A===x.layers.size-1&&(f?.(e),!e.defaultPrevented&&g&&(e.preventDefault(),g()))},E),o.useEffect(()=>{if(b)return r&&(0===x.layersWithOutsidePointerEventsDisabled.size&&(n=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(b)),x.layers.add(b),p(),()=>{r&&1===x.layersWithOutsidePointerEventsDisabled.size&&(E.body.style.pointerEvents=n)}},[b,E,r,x]),o.useEffect(()=>()=>{b&&(x.layers.delete(b),x.layersWithOutsidePointerEventsDisabled.delete(b),p())},[b,x]),o.useEffect(()=>{let e=()=>R({});return document.addEventListener(d,e),()=>document.removeEventListener(d,e)},[]),(0,u.jsx)(i.sG.div,{...w,ref:j,style:{pointerEvents:I?D?"auto":"none":void 0,...e.style},onFocusCapture:(0,l.m)(e.onFocusCapture,P.onFocusCapture),onBlurCapture:(0,l.m)(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:(0,l.m)(e.onPointerDownCapture,T.onPointerDownCapture)})});function p(){let e=new CustomEvent(d);document.dispatchEvent(e)}function h(e,t,r,{discrete:n}){let o=r.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?(0,i.hO)(o,l):o.dispatchEvent(l)}f.displayName="DismissableLayer",o.forwardRef((e,t)=>
1{let r=o.useContext(c),n=o.useRef(null),l=(0,a.s)(t,n);return o.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,u.jsx)(i.sG.div,{...e,ref:l})}).displayName="DismissableLayerBranch"},3716:(e,t,r)=>{r.d(t,{m:()=>n});function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}},4455:(e,t,r)=>{r.d(t,{RG:()=>b,bL:()=>I,q7:()=>D});var n=r(4232),o=r(3716),l=r(8775),i=r(714),a=r(1844),s=r(294),u=r(6326),d=r(2146),c=r(8162),f=r(4966),p=r(7876),h="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},v="RovingFocusGroup",[y,g,w]=(0,l.N)(v),[x,b]=(0,a.A)(v,[w]),[C,E]=x(v),R=n.forwardRef((e,t)=>(0,p.jsx)(y.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(y.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(j,{...e,ref:t})})}));R.displayName=v;var j=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:l,loop:a=!1,dir:s,currentTabStopId:y,defaultCurrentTabStopId:w,onCurrentTabStopIdChange:x,onEntryFocus:b,preventScrollOnEntryFocus:E=!1,...R}=e,j=n.useRef(null),N=(0,i.s)(t,j),S=(0,f.jH)(s),[k,I]=(0,c.i)({prop:y,defaultProp:w??null,onChange:x,caller:v}),[D,T]=n.useState(!1),P=(0,d.c)(b),O=g(r),L=n.useRef(!1),[M,F]=n.useState(0);return n.useEffect(()=>{let e=j.current;if(e)return e.addEventListener(h,P),()=>e.removeEventListener(h,P)},[P]),(0,p.jsx)(C,{scope:r,orientation:l,dir:S,loop:a,currentTabStopId:k,onItemFocus:n.useCallback(e=>I(e),[I]),onItemShiftTab:n.useCallback(()=>T(!0),[]),onFocusableItemAdd:n.useCallback(()=>F(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>F(e=>e-1),[]),children:(0,p.jsx)(u.sG.div,{tabIndex:D||0===M?-1:0,"data-orientation":l,...R,ref:N,style:{outline:"none",...e.style},onMouseDown:(0,o.m)(e.onMouseDown,()=>{L.current=!0}),onFocus:(0,o.m)(e.onFocus,e=>{let t=!L.current;if(e.target===e.currentTarget&&t&&!D){let t=new CustomEvent(h,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=O().filter(e=>e.focusable);A([e.find(e=>e.active),e.find(e=>e.id===k),...e].filter(Boolean).map(e=>e.ref.current),E)}}L.current=!1}),onBlur:(0,o.m)(e.onBlur,()=>T(!1))})})}),N="RovingFocusGroupItem",S=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:l=!0,active:i=!1,tabStopId:a,children:d,...c}=e,f=(0,s.B)(),h=a||f,m=E(N,r),v=m.currentTabStopId===h,w=g(r),{onFocusableItemAdd:x,onFocusableItemRemove:b,currentTabStopId:C}=m;return n.useEffect(()=>{if(l)return x(),()=>b()},[l,x,b]),(0,p.jsx)(y.ItemSlot,{scope:r,id:h,focusable:l,active:i,children:(0,p.jsx)(u.sG.span,{tabIndex:v?0:-1,"data-orientation":m.orientation,...c,ref:t,onMouseDown:(0,o.m)(e.onMouseDown,e=>{l?m.onItemFocus(h):e.preventDefault()}),onFocus:(0,o.m)(e.onFocus,()=>m.onItemFocus(h)),onKeyDown:(0,o.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let o=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return k[o]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=w().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=m.loop?function(e,t){return e.map((r,n)=>e[(t+n)%e.length])}(r,n+1):r.slice(n+1)}setTimeout(()=>A(r))}}),children:"function"==typeof d?d({isCurrentTabStop:v,hasTabStop:null!=C}):d})})});S.displayName=N;var k={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function A(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var I=R,D=S},4571:(e,t,r)=>{r.d(t,{B8:()=>A,UC:()=>D,bL:()=>k,l9:()=>I});var n=r(4232),o=r(3716),l=r(1844),i=r(4455),a=r(6822),s=r(6326),u=r(4966),d=r(8162),c=r(294),f=r(7876),p="Tabs",[h,m]=(0,l.A)(p,[i.RG]),v=(0,i.RG)(),[y,g]=h(p),w=n.forwardRef((e,t)=>
1{let{__scopeTabs:r,value:n,onValueChange:o,defaultValue:l,orientation:i="horizontal",dir:a,activationMode:h="automatic",...m}=e,v=(0,u.jH)(a),[g,w]=(0,d.i)({prop:n,onChange:o,defaultProp:null!=l?l:"",caller:p});return(0,f.jsx)(y,{scope:r,baseId:(0,c.B)(),value:g,onValueChange:w,orientation:i,dir:v,activationMode:h,children:(0,f.jsx)(s.sG.div,{dir:v,"data-orientation":i,...m,ref:t})})});w.displayName=p;var x="TabsList",b=n.forwardRef((e,t)=>{let{__scopeTabs:r,loop:n=!0,...o}=e,l=g(x,r),a=v(r);return(0,f.jsx)(i.bL,{asChild:!0,...a,orientation:l.orientation,dir:l.dir,loop:n,children:(0,f.jsx)(s.sG.div,{role:"tablist","aria-orientation":l.orientation,...o,ref:t})})});b.displayName=x;var C="TabsTrigger",E=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,disabled:l=!1,...a}=e,u=g(C,r),d=v(r),c=N(u.baseId,n),p=S(u.baseId,n),h=n===u.value;return(0,f.jsx)(i.q7,{asChild:!0,...d,focusable:!l,active:h,children:(0,f.jsx)(s.sG.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":p,"data-state":h?"active":"inactive","data-disabled":l?"":void 0,disabled:l,id:c,...a,ref:t,onMouseDown:(0,o.m)(e.onMouseDown,e=>{l||0!==e.button||!1!==e.ctrlKey?e.preventDefault():u.onValueChange(n)}),onKeyDown:(0,o.m)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&u.onValueChange(n)}),onFocus:(0,o.m)(e.onFocus,()=>{let e="manual"!==u.activationMode;h||l||!e||u.onValueChange(n)})})})});E.displayName=C;var R="TabsContent",j=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:o,forceMount:l,children:i,...u}=e,d=g(R,r),c=N(d.baseId,o),p=S(d.baseId,o),h=o===d.value,m=n.useRef(h);return n.useEffect(()=>{let e=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,f.jsx)(a.C,{present:l||h,children:r=>{let{present:n}=r;return(0,f.jsx)(s.sG.div,{"data-state":h?"active":"inactive","data-orientation":d.orientation,role:"tabpanel","aria-labelledby":c,hidden:!n,id:p,tabIndex:0,...u,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:n&&i})}})});function N(e,t){return"".concat(e,"-trigger-").concat(t)}function S(e,t){return"".concat(e,"-content-").concat(t)}j.displayName=R;var k=w,A=b,I=E,D=j},4966:(e,t,r)=>{r.d(t,{jH:()=>l});var n=r(4232);r(7876);var o=n.createContext(void 0);function l(e){let t=n.useContext(o);return e||t||"ltr"}},6326:(e,t,r)=>{r.d(t,{hO:()=>s,sG:()=>a});var n=r(4232),o=r(8477),l=r(2987),i=r(7876),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,l.TL)(`Primitive.${t}`),o=n.forwardRef((e,n)=>{let{asChild:o,...l}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(o?r:t,{...l,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function s(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},6415:(e,t,r)=>{r.d(t,{UC:()=>ee,VY:()=>er,ZL:()=>J,bL:()=>Y,bm:()=>en,hE:()=>et,hJ:()=>Q});var n=r(4232),o=r(3716),l=r(714),i=r(1844),a=r(294),s=r(8162),u=r(3520),d=r(870),c=r(1893),f=r(6822),p=r(6326),h=r(2658),m=r(2634),v=r(4769),y=r(2987),g=r(7876),w="Dialog",[x,b]=(0,i.A)(w),[C,E]=x(w),R=e=>{let{__scopeDialog:t,children:r,open:o,defaultOpen:l,onOpenChange:i,modal:u=!0}=e,d=n.useRef(null),c=n.useRef(null),[f,p]=(0,s.i)({prop:o,defaultProp:null!=l&&l,onChange:i,caller:w});return(0,g.jsx)(C,{scope:t,triggerRef:d,contentRef:c,contentId:(0,a.B)(),titleId:(0,a.B)(),descriptionId:(0,a.B)(),open:f,onOpenChange:p,onOpenToggle:n.useCallback(()=>p(e=>!e),[p]),modal:u,children:r})};R.displayName=w;var j="DialogTrigger";n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,i=E(j,r),a=(0,l.s)(t,i.triggerRef);return(0,g.jsx)(p.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":U(i.open),...n,ref:a,onClick:(0,o.m)(e.onClick,i.onOpenToggle)})}).displayName=j;var N="DialogPortal",[S,k]=x(N,{forceMount:void 0}),A=e=>{let{__scopeDialog:t,forceMount:r,children:o,container:l}=e,i=E(N,t);return(0,g.jsx)(S,{scope:t,forceMount:r,children:n.Children.map(o,e=>(0,g.jsx)(f.C,{present:r||i.open,children:(0,g.jsx)(c.Z,{asChild:!0,container:l,children:e})}))})};A.displayName=N;var I="DialogOverlay",D=n.forwardRef((e,t)=>
1{let r=k(I,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,l=E(I,e.__scopeDialog);return l.modal?(0,g.jsx)(f.C,{present:n||l.open,children:(0,g.jsx)(P,{...o,ref:t})}):null});D.displayName=I;var T=(0,y.TL)("DialogOverlay.RemoveScroll"),P=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=E(I,r);return(0,g.jsx)(m.A,{as:T,allowPinchZoom:!0,shards:[o.contentRef],children:(0,g.jsx)(p.sG.div,{"data-state":U(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),O="DialogContent",L=n.forwardRef((e,t)=>{let r=k(O,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,l=E(O,e.__scopeDialog);return(0,g.jsx)(f.C,{present:n||l.open,children:l.modal?(0,g.jsx)(M,{...o,ref:t}):(0,g.jsx)(F,{...o,ref:t})})});L.displayName=O;var M=n.forwardRef((e,t)=>{let r=E(O,e.__scopeDialog),i=n.useRef(null),a=(0,l.s)(t,r.contentRef,i);return n.useEffect(()=>{let e=i.current;if(e)return(0,v.Eq)(e)},[]),(0,g.jsx)(_,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null==(t=r.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,o.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,o.m)(e.onFocusOutside,e=>e.preventDefault())})}),F=n.forwardRef((e,t)=>{let r=E(O,e.__scopeDialog),o=n.useRef(!1),l=n.useRef(!1);return(0,g.jsx)(_,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,i;null==(n=e.onCloseAutoFocus)||n.call(e,t),t.defaultPrevented||(o.current||null==(i=r.triggerRef.current)||i.focus(),t.preventDefault()),o.current=!1,l.current=!1},onInteractOutside:t=>{var n,i;null==(n=e.onInteractOutside)||n.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(l.current=!0));let a=t.target;(null==(i=r.triggerRef.current)?void 0:i.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&l.current&&t.preventDefault()}})}),_=n.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,...s}=e,c=E(O,r),f=n.useRef(null),p=(0,l.s)(t,f);return(0,h.Oh)(),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(d.n,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,g.jsx)(u.qW,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":U(c.open),...s,ref:p,onDismiss:()=>c.onOpenChange(!1)})}),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(X,{titleId:c.titleId}),(0,g.jsx)(Z,{contentRef:f,descriptionId:c.descriptionId})]})]})}),G="DialogTitle",B=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=E(G,r);return(0,g.jsx)(p.sG.h2,{id:o.titleId,...n,ref:t})});B.displayName=G;var H="DialogDescription",W=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=E(H,r);return(0,g.jsx)(p.sG.p,{id:o.descriptionId,...n,ref:t})});W.displayName=H;var z="DialogClose",K=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,l=E(z,r);return(0,g.jsx)(p.sG.button,{type:"button",...n,ref:t,onClick:(0,o.m)(e.onClick,()=>l.onOpenChange(!1))})});function U(e){return e?"open":"closed"}K.displayName=z;var V="DialogTitleWarning",[$,q]=(0,i.q)(V,{contentName:O,titleName:G,docsSlug:"dialog"}),X=e=>{let{titleId:t}=e,r=q(V),o="`".concat(r.contentName,"` requires a `").concat(r.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(r.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(r.docsSlug);return n.useEffect(()=>{t&&(document.getElementById(t)||console.error(o))},[o,t]),null},Z=e=>{let{contentRef:t,descriptionId:r}=e,o=q("DialogDescriptionWarning"),l="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(o.contentName,"}.");return n.useEffect(()=>{var e;let n=null==(e=t.current)?void 0:e.getAttribute("aria-describedby");r&&n&&(document.getElementById(r)||console.warn(l))},[l,t,r]),null},Y=R,J=A,Q=D,ee=L,et=B,er=W,en=K},6822:(e,t,r)=>{r.d(t,{C:()=>i});var n=r(4232),o=r(714),l=r(1285),i=e=>{let{present:t,children:r}=e,i=function(e){var t,r;let[o,i]=n.useState(),s=n.useRef(null),u=n.useRef(e),d=n.useRef("none"),[c,f]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((e,t)=>
1r[e][t]??e,t));return n.useEffect(()=>{let e=a(s.current);d.current="mounted"===c?e:"none"},[c]),(0,l.N)(()=>{let t=s.current,r=u.current;if(r!==e){let n=d.current,o=a(t);e?f("MOUNT"):"none"===o||t?.display==="none"?f("UNMOUNT"):r&&n!==o?f("ANIMATION_OUT"):f("UNMOUNT"),u.current=e}},[e,f]),(0,l.N)(()=>{if(o){let e,t=o.ownerDocument.defaultView??window,r=r=>{let n=a(s.current).includes(r.animationName);if(r.target===o&&n&&(f("ANIMATION_END"),!u.current)){let r=o.style.animationFillMode;o.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=r)})}},n=e=>{e.target===o&&(d.current=a(s.current))};return o.addEventListener("animationstart",n),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{t.clearTimeout(e),o.removeEventListener("animationstart",n),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:n.useCallback(e=>{s.current=e?getComputedStyle(e):null,i(e)},[])}}(t),s="function"==typeof r?r({present:i.isPresent}):n.Children.only(r),u=(0,o.s)(i.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(s));return"function"==typeof r||i.isPresent?n.cloneElement(s,{ref:u}):null};function a(e){return e?.animationName||"none"}i.displayName="Presence"},7406:(e,t,r)=>{r.d(t,{C1:()=>E,bL:()=>b});var n=r(4232),o=r(714),l=r(1844),i=r(3716),a=r(8162),s=r(1676),u=r(7552),d=r(6822),c=r(6326),f=r(7876),p="Checkbox",[h,m]=(0,l.A)(p),[v,y]=h(p);function g(e){let{__scopeCheckbox:t,checked:r,children:o,defaultChecked:l,disabled:i,form:s,name:u,onCheckedChange:d,required:c,value:h="on",internal_do_not_use_render:m}=e,[y,g]=(0,a.i)({prop:r,defaultProp:null!=l&&l,onChange:d,caller:p}),[w,x]=n.useState(null),[b,C]=n.useState(null),E=n.useRef(!1),R=!w||!!s||!!w.closest("form"),j={checked:y,disabled:i,setChecked:g,control:w,setControl:x,name:u,form:s,value:h,hasConsumerStoppedPropagationRef:E,required:c,defaultChecked:!N(l)&&l,isFormControl:R,bubbleInput:b,setBubbleInput:C};return(0,f.jsx)(v,{scope:t,...j,children:"function"==typeof m?m(j):o})}var w="CheckboxTrigger",x=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,onKeyDown:l,onClick:a,...s}=e,{control:u,value:d,disabled:p,checked:h,required:m,setControl:v,setChecked:g,hasConsumerStoppedPropagationRef:x,isFormControl:b,bubbleInput:C}=y(w,r),E=(0,o.s)(t,v),R=n.useRef(h);return n.useEffect(()=>{let e=null==u?void 0:u.form;if(e){let t=()=>g(R.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[u,g]),(0,f.jsx)(c.sG.button,{type:"button",role:"checkbox","aria-checked":N(h)?"mixed":h,"aria-required":m,"data-state":S(h),"data-disabled":p?"":void 0,disabled:p,value:d,...s,ref:E,onKeyDown:(0,i.m)(l,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,i.m)(a,e=>{g(e=>!!N(e)||!e),C&&b&&(x.current=e.isPropagationStopped(),x.current||e.stopPropagation())})})});x.displayName=w;var b=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,name:n,checked:o,defaultChecked:l,required:i,disabled:a,value:s,onCheckedChange:u,form:d,...c}=e;return(0,f.jsx)(g,{__scopeCheckbox:r,checked:o,defaultChecked:l,disabled:a,required:i,onCheckedChange:u,name:n,form:d,value:s,internal_do_not_use_render:e=>{let{isFormControl:n}=e;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(x,{...c,ref:t,__scopeCheckbox:r}),n&&(0,f.jsx)(j,{__scopeCheckbox:r})]})}})});b.displayName=p;var C="CheckboxIndicator",E=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,forceMount:n,...o}=e,l=y(C,r);return(0,f.jsx)(d.C,{present:n||N(l.checked)||!0===l.checked,children:(0,f.jsx)(c.sG.span,{"data-state":S(l.checked),"data-disabled":l.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});E.displayName=C;var R="CheckboxBubbleInput",j=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,...l}=e,{control:i,hasConsumerStoppedPropagationRef:a,checked:d,defaultChecked:p,required:h,disabled:m,name:v,value:g,form:w,bubbleInput:x,setBubbleInput:b}=y(R,r),C=(0,o.s)(t,b),E=(0,s.Z)(d),j=(0,u.X)(i);n.useEffect(()=>{if(!x)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!a.current;if(E!==d&&e){let r=new Event("click",{bubbles:t});x.indeterminate=N(d),e.call(x,!N(d)&&d),x.dispatchEvent(r)}},[x,E,d,a]);let S=n.useRef(!N(d)&&d);return(0,f.jsx)(c.sG.input,{type:"checkbox","aria-hidden":!0,defaultChecked:null!=p?p:S.current,required:h,disabled:m,name:v,value:g,form:w,...l,tabIndex:-1,ref:C,style:{...l.style,...j,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function N(e){return"indeterminate"===e}function S(e){return N(e)?"indeterminate":e?"checked":"unchecked"}j.displayName=R},7552:(e,t,r)=>{r.d(t,{X:()=>l});var n=r(4232),o=r(1285);function l(e){let[t,r]=n.useState(void 0);return(0,o.N)(()=>
1{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,o;if(!Array.isArray(t)||!t.length)return;let l=t[0];if("borderBoxSize"in l){let e=l.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,o=t.blockSize}else n=e.offsetWidth,o=e.offsetHeight;r({width:n,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}},8162:(e,t,r)=>{r.d(t,{i:()=>a});var n,o=r(4232),l=r(1285),i=(n||(n=r.t(o,2)))[" useInsertionEffect ".trim().toString()]||l.N;function a({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[l,a,s]=function({defaultProp:e,onChange:t}){let[r,n]=o.useState(e),l=o.useRef(r),a=o.useRef(t);return i(()=>{a.current=t},[t]),o.useEffect(()=>{l.current!==r&&(a.current?.(r),l.current=r)},[r,l]),[r,n,a]}({defaultProp:t,onChange:r}),u=void 0!==e,d=u?e:l;{let t=o.useRef(void 0!==e);o.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. 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.`)}t.current=u},[u,n])}return[d,o.useCallback(t=>{if(u){let r="function"==typeof t?t(e):t;r!==e&&s.current?.(r)}else a(t)},[u,e,a,s])]}Symbol("RADIX:SYNC_STATE")},8775:(e,t,r)=>{r.d(t,{N:()=>s});var n=r(4232),o=r(1844),l=r(714),i=r(2987),a=r(7876);function s(e){let t=e+"CollectionProvider",[r,s]=(0,o.A)(t),[u,d]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=e=>{let{scope:t,children:r}=e,o=n.useRef(null),l=n.useRef(new Map).current;return(0,a.jsx)(u,{scope:t,itemMap:l,collectionRef:o,children:r})};c.displayName=t;let f=e+"CollectionSlot",p=(0,i.TL)(f),h=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,o=d(f,r),i=(0,l.s)(t,o.collectionRef);return(0,a.jsx)(p,{ref:i,children:n})});h.displayName=f;let m=e+"CollectionItemSlot",v="data-radix-collection-item",y=(0,i.TL)(m),g=n.forwardRef((e,t)=>{let{scope:r,children:o,...i}=e,s=n.useRef(null),u=(0,l.s)(t,s),c=d(m,r);return n.useEffect(()=>(c.itemMap.set(s,{ref:s,...i}),()=>void c.itemMap.delete(s))),(0,a.jsx)(y,{...{[v]:""},ref:u,children:o})});return g.displayName=m,[{Provider:c,Slot:h,ItemSlot:g},function(t){let r=d(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${v}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},s]}var u=new WeakMap;function d(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let r=function(e,t){let r=e.length,n=c(t),o=n>=0?n:r+n;return o<0||o>=r?-1:o}(e,t);return -1===r?void 0:e[r]}function c(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],u.set(this,!0)}set(e,t){return u.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let n,o=this.has(t),l=this.#e.length,i=c(e),a=i>=0?i:l+i,s=a<0||a>=l?-1:a;if(s===this.size||o&&s===this.size-1||-1===s)return this.set(t,r),this;let u=this.size+ +!o;i<0&&a++;let d=[...this.#e],f=!1;for(let e=a;e<u;e++)if(a===e){let l=d[e];d[e]===t&&(l=d[e+1]),o&&this.delete(t),n=this.get(l),this.set(t,r)}else{f||d[e-1]!==t||(f=!0);let r=d[f?e:e-1],o=n;n=this.get(r),this.delete(r),this.set(r,o)}return this}with(t,r,n){let o=new e(this);return o.insert(t,r,n),o}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=d(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=d(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return d(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],o=0;for(let e of this)Reflect.apply(t,r,[e,o,this])&&n.push(e),o++;return new e(n)}map(t,r){let n=[],o=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,o,this])]),o++;return new e(n)}reduce(...e){let[t,r]=e,n=0,o=r??this.at(0);for(let r of this)o=0===n&&1===e.length?r:Reflect.apply(t,this,[o,r,n,this]),n++;return o}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let o=this.at(r);n=r===this.size-1&&1===e.length?o:Reflect.apply(t,this,[n,o,r,this])}return n}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,o=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(o=r-1);for(let e=t;e<=o;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}})}}]);
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.