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