vendor: 4,866 bytes, line 1
1import{r as l,b as ye,a as Pt}from"./react-vendor-CblhA2fU.js";import{j as g,u as U,S as Ke,P as K,a as re,b as je,c as We,d as E,e as Pe,f as _t,g as Je,h as an,i as ln,F as un,D as dn,k as fn,R as pn,l as sr,m as mn}from"./ui-radix-dialog-Cb3ZhwAI.js";function ir(e,t=[]){let n=[];function o(s,i){const c=l.createContext(i),a=n.length;n=[...n,i];function u(d){const{scope:v,children:m,...p}=d,h=v?.[e][a]||c,x=l.useMemo(()=>p,Object.values(p));return g.jsx(h.Provider,{value:x,children:m})}function f(d,v){const m=v?.[e][a]||c,p=l.useContext(m);if(p)return p;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return u.displayName=s+"Provider",[u,f]}const r=()=>{const s=n.map(i=>l.createContext(i));return function(c){const a=c?.[e]||s;return l.useMemo(()=>({[`__scope${e}`]:{...c,[e]:a}}),[c,a])}};return r.scopeName=e,[o,cr(r,...t)]}function cr(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const i=o.reduce((c,{useScope:a,scopeName:u})=>{const d=a(s)[`__scope${u}`];return{...c,...d}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Et(e){const t=e+"CollectionProvider",[n,o]=ir(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{const{scope:p,children:h}=m,x=ye.useRef(null),y=ye.useRef(new Map).current;return g.jsx(r,{scope:p,itemMap:y,collectionRef:x,children:h})};i.displayName=t;const c=e+"CollectionSlot",a=ye.forwardRef((m,p)=>{const{scope:h,children:x}=m,y=s(c,h),w=U(p,y.collectionRef);return g.jsx(Ke,{ref:w,children:x})});a.displayName=c;const u=e+"CollectionItemSlot",f="data-radix-collection-item",d=ye.forwardRef((m,p)=>{const{scope:h,children:x,...y}=m,w=ye.useRef(null),S=U(p,w),b=s(u,h);return ye.useEffect(()=>(b.itemMap.set(w,{ref:w,...y}),()=>void b.itemMap.delete(w))),g.jsx(Ke,{[f]:"",ref:S,children:x})});d.displayName=u;function v(m){const p=s(e+"CollectionConsumer",m);return ye.useCallback(()=>{const x=p.collectionRef.current;if(!x)return[];const y=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(p.itemMap.values()).sort((b,M)=>y.indexOf(b.ref.current)-y.indexOf(M.ref.current))},[p.collectionRef,p.itemMap])}return[{Provider:i,Slot:a,ItemSlot:d},v,o]}var ar="VisuallyHidden",It=l.forwardRef((e,t)=>g.jsx(K.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));It.displayName=ar;var vc=It;const lr=["top","right","bottom","left"],he=Math.min,Z=Math.max,Ge=Math.round,He=Math.floor,ae=e=>({x:e,y:e}),ur={left:"right",right:"left",bottom:"top",top:"bottom"},dr={start:"end",end:"start"};function gt(e,t,n){return Z(e,he(t,n))}function pe(e,t){return typeof e=="function"?e(t):e}function me(e){return e.split("-")[0]}function Ee(e){return e.split("-")[1]}function At(e){return e==="x"?"y":"x"}function Tt(e){return e==="y"?"height":"width"}const fr=new Set(["top","bottom"]);function ce(e){return fr.has(me(e))?"y":"x"}function Ot(e){return At(ce(e))}function pr(e,t,n){n===void 0&&(n=!1);const o=Ee(e),r=Ot(e),s=Tt(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Ue(i)),[i,Ue(i)]}function mr(e){const t=Ue(e);return[vt(e),t,vt(t)]}function vt(e){return e.replace(/start|end/g,t=>dr[t])}const Yt=["left","right"],Xt=["right","left"],hr=["top","bottom"],gr=["bottom","top"];function vr(e,t,n){switch(e){case"top":case"bottom":return n?t?Xt:Yt:t?Yt:Xt;case"left":case"right":return t?hr:gr;default:return[]}}function xr(e,t,n,o){const r=Ee(e);let s=vr(me(e),n==="start",o);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(vt)))),s}function Ue(e){return e.replace(/left|right|bottom|top/g,t=>ur[t])}function wr(e){return{top:0,right:0,bottom:0,left:0,...e}}function hn(e){return typeof e!="number"?wr(e):{top:e,right:e,bottom:e,left:e}}function ze(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 qt(e,t,n){let{reference:o,floating:r}=e;const s=ce(t),i=Ot(t),c=Tt(i),a=me(t),u=s==="y",f=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,v=o[c]/2-r[c]/2;let m;switch(a){case"top":m={x:f,y:o.y-r.height};break;case"bottom":m={x:f,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:d};break;case"left":m={x:o.x-r.width,y:d};break;default:m={x:o.x,y:o.y}}switch(Ee(t)){case"start":m[i]-=v*(n&&u?-1:1);break;case"end":m[i]+=v*(n&&u?-1:1);break}return m}async function yr(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:i,elements:c,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:v=!1,padding:m=0}=pe(t,e),p=hn(m),x=c[v?d==="floating"?"reference":"floating":d],y=ze(await s.getClippingRect
vendor: 9,851 bytes, line 1
1({element:(n=await(s.isElement==null?void 0:s.isElement(x)))==null||n?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:u,rootBoundary:f,strategy:a})),w=d==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),b=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},M=ze(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:S,strategy:a}):w);return{top:(y.top-M.top+p.top)/b.y,bottom:(M.bottom-y.bottom+p.bottom)/b.y,left:(y.left-M.left+p.left)/b.x,right:(M.right-y.right+p.right)/b.x}}const Sr=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:i}=n,c=s.filter(Boolean),a=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:d}=qt(u,o,a),v=o,m={},p=0;for(let x=0;x<c.length;x++){var h;const{name:y,fn:w}=c[x],{x:S,y:b,data:M,reset:T}=await w({x:f,y:d,initialPlacement:o,placement:v,strategy:r,middlewareData:m,rects:u,platform:{...i,detectOverflow:(h=i.detectOverflow)!=null?h:yr},elements:{reference:e,floating:t}});f=S??f,d=b??d,m={...m,[y]:{...m[y],...M}},T&&p<=50&&(p++,typeof T=="object"&&(T.placement&&(v=T.placement),T.rects&&(u=T.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):T.rects),{x:f,y:d}=qt(u,v,a)),x=-1)}return{x:f,y:d,placement:v,strategy:r,middlewareData:m}},Cr=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:i,elements:c,middlewareData:a}=t,{element:u,padding:f=0}=pe(e,t)||{};if(u==null)return{};const d=hn(f),v={x:n,y:o},m=Ot(r),p=Tt(m),h=await i.getDimensions(u),x=m==="y",y=x?"top":"left",w=x?"bottom":"right",S=x?"clientHeight":"clientWidth",b=s.reference[p]+s.reference[m]-v[m]-s.floating[p],M=v[m]-s.reference[m],T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let _=T?T[S]:0;(!_||!await(i.isElement==null?void 0:i.isElement(T)))&&(_=c.floating[S]||s.floating[p]);const I=b/2-M/2,F=_/2-h[p]/2-1,D=he(d[y],F),j=he(d[w],F),k=D,N=_-h[p]-j,O=_/2-h[p]/2+I,$=gt(k,O,N),A=!a.arrow&&Ee(r)!=null&&O!==$&&s.reference[p]/2-(O<k?D:j)-h[p]/2<0,L=A?O<k?O-k:O-N:0;return{[m]:v[m]+L,data:{[m]:$,centerOffset:O-$-L,...A&&{alignmentOffset:L}},reset:A}}}),br=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:i,initialPlacement:c,platform:a,elements:u}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:v,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...x}=pe(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=me(r),w=ce(c),S=me(c)===c,b=await(a.isRTL==null?void 0:a.isRTL(u.floating)),M=v||(S||!h?[Ue(c)]:mr(c)),T=p!=="none";!v&&T&&M.push(...xr(c,h,p,b));const _=[c,...M],I=await a.detectOverflow(t,x),F=[];let D=((o=s.flip)==null?void 0:o.overflows)||[];if(f&&F.push(I[y]),d){const O=pr(r,i,b);F.push(I[O[0]],I[O[1]])}if(D=[...D,{placement:r,overflows:F}],!F.every(O=>O<=0)){var j,k;const O=(((j=s.flip)==null?void 0:j.index)||0)+1,$=_[O];if($&&(!(d==="alignment"?w!==ce($):!1)||D.every(P=>ce(P.placement)===w?P.overflows[0]>0:!0)))return{data:{index:O,overflows:D},reset:{placement:$}};let A=(k=D.filter(L=>L.overflows[0]<=0).sort((L,P)=>L.overflows[1]-P.overflows[1])[0])==null?void 0:k.placement;if(!A)switch(m){case"bestFit":{var N;const L=(N=D.filter(P=>{if(T){const C=ce(P.placement);return C===w||C==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(C=>C>0).reduce((C,W)=>C+W,0)]).sort((P,C)=>P[1]-C[1])[0])==null?void 0:N[0];L&&(A=L);break}case"initialPlacement":A=c;break}if(r!==A)return{reset:{placement:A}}}return{}}}};function Zt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Jt(e){return lr.some(t=>e[t]>=0)}const Rr=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...s}=pe(e,t);switch(r){case"referenceHidden":{const i=await o.detectOverflow(t,{...s,elementContext:"reference"}),c=Zt(i,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Jt(c)}}}case"escaped":{const i=await o.detectOverflow(t,{...s,altBoundary:!0}),c=Zt(i,n.floating);return{data:{escapedOffsets:c,escaped:Jt(c)}}}default:return{}}}}},gn=new Set(["left","top"]);async function Mr(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=me(n),c=Ee(n),a=ce(n)==="y",u=gn.has(i)?-1:1,f=s&&a?-1:1,d=pe(t,e);let{mainAxis:v,crossAxis:m,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return c&&typeof p=="number"&&(m=c==="end"?p*-1:p),a?{x:m*f,y:v*u}:{x:v*u,y:m*f}}const Pr=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:i,middlewareData:c}=t,a=await Mr(t,e);return i===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+a.x,y:s+a.y,data:{...a,placement:i}}}}},_r=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:s}=t,{mainAxis:i=!0,crossAxis:c=!1,limiter:a={fn:y=>{let{x:w,y:S}=y;return{x:w,y:S}}},...u}=pe(e,t),f={x:n,y:o},d=await s.detectOverflow(t,u),v=ce(me(r)),m=At(v);let p=f[m],h=f[v];if(i){const y=m==="y"?"top":"left",w=m==="y"?"bottom":"right",S=p+d[y],b=p-d[w];p=gt(S,p,b)}if(c){const y=v==="y"?"top":"left",w=v==="y"?"bottom":"right",S=h+d[y],b=h-d[w];h=gt(S,h,b)}const x=a.fn({...t,[m]:p,[v]:h});return{...x,data:{x:x.x-n,y:x.y-o,enabled:{[m]:i,[v]:c}}}}}},Er=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:s,middlewareData:i}=t,{offset:c=0,mainAxis:a=!0,crossAxis:u=!0}=pe(e,t),f={x:n,y:o},d=ce(r),v=At(d);let m=f[v],p=f[d];const h=pe(c,t),x=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(a){const S=v==="y"?"height":"width",b=s.reference[v]-s.floating[S]+x.mainAxis,M=s.reference[v]+s.reference[S]-x.mainAxis;m<b?m=b:m>M&&(m=M)}if(u){var y,w;const S=v==="y"?"width":"height",b=gn.has(me(r)),M=s.reference[d]-s.floating[S]+(b&&((y=i.offset)==null?void 0:y[d])||0)+(b?0:x.crossAxis),T=s.reference[d]+s.reference[S]+(b?0:((w=i.offset)==null?void 0:w[d])||0)-(b?x.crossAxis:0);p<M?p=M:p>T&&(p=T)}return{[v]:m,[d]:p}}}},Ir=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:s,platform:i,elements:c}=t,{apply:a=()=>{},...u}=pe(e,t),f=await i.detectOverflow(t,u),d=me(r),v=Ee(r),m=ce(r)==="y",{width:p,height:h}=s.floating;let x,y;d==="top"||d==="bottom"?(x=d,y=v===(await(i.isRTL==null?void 0:i.isRTL(c.floating))?"start":"end")?"left":"right"):(y=d,x=v==="end"?"top":"bottom");const w=h-f.top-f.bottom,S=p-f.left-f.right,b=he(h-f[x],w),M=he(p-f[y],S),T=!t.middlewareData.shift;let _=b,I=M;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(I=S),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(_=w),T&&!v){const D=Z(f.left,0),j=Z(f.right,0),k=Z(f.top,0),N=Z(f.bottom,0);m?I=p-2*(D!==0||j!==0?D+j:Z(f.left,f.right)):_=h-2*(k!==0||N!==0?k+N:Z(f.top,f.bottom))}await a({...t,availableWidth:I,availableHeight:_});const F=await i.getDimensions(c.floating);return p!==F.width||h!==F.height?{reset:{rects:!0}}:{}}}};function Qe(){return typeof window<"u"}function Ie(e){return vn(e)?(e.nodeName||"").toLowerCase():"#document"}function J(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ue(e){var t;return(t=(vn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function vn(e){return Qe()?e instanceof Node||e instanceof J(e).Node:!1}function se(e){return Qe()?e instanceof Element||e instanceof J(e).Element:!1}function le(e){return Qe()?e instanceof HTMLElement||e instanceof J(e).HTMLElement:!1}function Qt(e){return!Qe()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof J(e).ShadowRoot}const Ar=new Set(["inline","contents"]);function ke(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=ie(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!Ar.has(r)}const Tr=new Set(["table","td","th"]);function Or(e){return Tr.has(Ie(e))}const Dr=[":popover-open",":modal"];function et(e){return Dr.some(t=>{try{return e.matches(t)}catch{return!1}})}const Nr=["transform","translate","scale","rotate","perspective"],Lr=["transform","translate","scale","rotate","perspective","filter"],jr=["paint","layout","strict","content"];function Dt(e){const t=Nt(),n=se(e)?ie(e):e;return Nr.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)||Lr.some(o=>(n.willChange||"").includes(o))||jr.some(o=>(n.contain||"").includes(o))}function kr(e){let t=ge(e);for(;le(t)&&!_e(t);){if(Dt(t))return t;if(et(t))return null;t=ge(t)}return null}function Nt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Fr=new Set(["html","body","#document"]);function _e(e){return Fr.has(Ie(e))}function ie(e){return J(e).getComputedStyle(e)}function tt(e){return se(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ge(e){if(Ie(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Qt(e)&&e.host||ue(e);return Qt(t)?t.host:t}function xn(e){const t=ge(e);return _e(t)?e.ownerDocument?e.ownerDocument.body:e.body:le(t)&&ke(t)?t:xn(t)}function De(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=xn(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),i=J(r);if(s){const c=xt(i);
vendor: 4,073 bytes, line 1
1return t.concat(i,i.visualViewport||[],ke(r)?r:[],c&&n?De(c):[])}return t.concat(r,De(r,[],n))}function xt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function wn(e){const t=ie(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=le(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o,c=Ge(n)!==s||Ge(o)!==i;return c&&(n=s,o=i),{width:n,height:o,$:c}}function Lt(e){return se(e)?e:e.contextElement}function Me(e){const t=Lt(e);if(!le(t))return ae(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=wn(t);let i=(s?Ge(n.width):n.width)/o,c=(s?Ge(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const $r=ae(0);function yn(e){const t=J(e);return!Nt()||!t.visualViewport?$r:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Br(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==J(e)?!1:t}function Se(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=Lt(e);let i=ae(1);t&&(o?se(o)&&(i=Me(o)):i=Me(e));const c=Br(s,n,o)?yn(s):ae(0);let a=(r.left+c.x)/i.x,u=(r.top+c.y)/i.y,f=r.width/i.x,d=r.height/i.y;if(s){const v=J(s),m=o&&se(o)?J(o):o;let p=v,h=xt(p);for(;h&&o&&m!==p;){const x=Me(h),y=h.getBoundingClientRect(),w=ie(h),S=y.left+(h.clientLeft+parseFloat(w.paddingLeft))*x.x,b=y.top+(h.clientTop+parseFloat(w.paddingTop))*x.y;a*=x.x,u*=x.y,f*=x.x,d*=x.y,a+=S,u+=b,p=J(h),h=xt(p)}}return ze({width:f,height:d,x:a,y:u})}function nt(e,t){const n=tt(e).scrollLeft;return t?t.left+n:Se(ue(e)).left+n}function Sn(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-nt(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function Hr(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",i=ue(o),c=t?et(t.floating):!1;if(o===i||c&&s)return n;let a={scrollLeft:0,scrollTop:0},u=ae(1);const f=ae(0),d=le(o);if((d||!d&&!s)&&((Ie(o)!=="body"||ke(i))&&(a=tt(o)),le(o))){const m=Se(o);u=Me(o),f.x=m.x+o.clientLeft,f.y=m.y+o.clientTop}const v=i&&!d&&!s?Sn(i,a):ae(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+f.x+v.x,y:n.y*u.y-a.scrollTop*u.y+f.y+v.y}}function Vr(e){return Array.from(e.getClientRects())}function Kr(e){const t=ue(e),n=tt(e),o=e.ownerDocument.body,r=Z(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=Z(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+nt(e);const c=-n.scrollTop;return ie(o).direction==="rtl"&&(i+=Z(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:i,y:c}}const en=25;function Wr(e,t){const n=J(e),o=ue(e),r=n.visualViewport;let s=o.clientWidth,i=o.clientHeight,c=0,a=0;if(r){s=r.width,i=r.height;const f=Nt();(!f||f&&t==="fixed")&&(c=r.offsetLeft,a=r.offsetTop)}const u=nt(o);if(u<=0){const f=o.ownerDocument,d=f.body,v=getComputedStyle(d),m=f.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,p=Math.abs(o.clientWidth-d.clientWidth-m);p<=en&&(s-=p)}else u<=en&&(s+=u);return{width:s,height:i,x:c,y:a}}const Gr=new Set(["absolute","fixed"]);function Ur(e,t){const n=Se(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=le(e)?Me(e):ae(1),i=e.clientWidth*s.x,c=e.clientHeight*s.y,a=r*s.x,u=o*s.y;return{width:i,height:c,x:a,y:u}}function tn(e,t,n){let o;if(t==="viewport")o=Wr(e,n);else if(t==="document")o=Kr(ue(e));else if(se(t))o=Ur(t,n);else{const r=yn(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return ze(o)}function Cn(e,t){const n=ge(e);return n===t||!se(n)||_e(n)?!1:ie(n).position==="fixed"||Cn(n,t)}function zr(e,t){const n=t.get(e);if(n)return n;let o=De(e,[],!1).filter(c=>se(c)&&Ie(c)!=="body"),r=null;const s=ie(e).position==="fixed";let i=s?ge(e):e;for(;se(i)&&!_e(i);){const c=ie(i),a=Dt(i);!a&&c.position==="fixed"&&(r=null),(s?!a&&!r:!a&&c.position==="static"&&!!r&&Gr.has(r.position)||ke(i)&&!a&&Cn(e,i))?o=o.filter(f=>f!==i):r=c,i=ge(i)}return t.set(e,o),o}function Yr(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[...n==="clippingAncestors"?et(t)?[]:zr(t,this._c):[].concat(n),o],c=i[0],a=i.reduce((u,f)=>{const d=tn(t,f,r);
vendor: 4,816 bytes, line 1
1return u.top=Z(d.top,u.top),u.right=he(d.right,u.right),u.bottom=he(d.bottom,u.bottom),u.left=Z(d.left,u.left),u},tn(t,c,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Xr(e){const{width:t,height:n}=wn(e);return{width:t,height:n}}function qr(e,t,n){const o=le(t),r=ue(t),s=n==="fixed",i=Se(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const a=ae(0);function u(){a.x=nt(r)}if(o||!o&&!s)if((Ie(t)!=="body"||ke(r))&&(c=tt(t)),o){const m=Se(t,!0,s,t);a.x=m.x+t.clientLeft,a.y=m.y+t.clientTop}else r&&u();s&&!o&&r&&u();const f=r&&!o&&!s?Sn(r,c):ae(0),d=i.left+c.scrollLeft-a.x-f.x,v=i.top+c.scrollTop-a.y-f.y;return{x:d,y:v,width:i.width,height:i.height}}function pt(e){return ie(e).position==="static"}function nn(e,t){if(!le(e)||ie(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ue(e)===n&&(n=n.ownerDocument.body),n}function bn(e,t){const n=J(e);if(et(e))return n;if(!le(e)){let r=ge(e);for(;r&&!_e(r);){if(se(r)&&!pt(r))return r;r=ge(r)}return n}let o=nn(e,t);for(;o&&Or(o)&&pt(o);)o=nn(o,t);return o&&_e(o)&&pt(o)&&!Dt(o)?n:o||kr(e)||n}const Zr=async function(e){const t=this.getOffsetParent||bn,n=this.getDimensions,o=await n(e.floating);return{reference:qr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Jr(e){return ie(e).direction==="rtl"}const Qr={convertOffsetParentRelativeRectToViewportRelativeRect:Hr,getDocumentElement:ue,getClippingRect:Yr,getOffsetParent:bn,getElementRects:Zr,getClientRects:Vr,getDimensions:Xr,getScale:Me,isElement:se,isRTL:Jr};function Rn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function es(e,t){let n=null,o;const r=ue(e);function s(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function i(c,a){c===void 0&&(c=!1),a===void 0&&(a=1),s();const u=e.getBoundingClientRect(),{left:f,top:d,width:v,height:m}=u;if(c||t(),!v||!m)return;const p=He(d),h=He(r.clientWidth-(f+v)),x=He(r.clientHeight-(d+m)),y=He(f),S={rootMargin:-p+"px "+-h+"px "+-x+"px "+-y+"px",threshold:Z(0,he(1,a))||1};let b=!0;function M(T){const _=T[0].intersectionRatio;if(_!==a){if(!b)return i();_?i(!1,_):o=setTimeout(()=>{i(!1,1e-7)},1e3)}_===1&&!Rn(u,e.getBoundingClientRect())&&i(),b=!1}try{n=new IntersectionObserver(M,{...S,root:r.ownerDocument})}catch{n=new IntersectionObserver(M,S)}n.observe(e)}return i(!0),s}function ts(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:a=!1}=o,u=Lt(e),f=r||s?[...u?De(u):[],...De(t)]:[];f.forEach(y=>{r&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const d=u&&c?es(u,n):null;let v=-1,m=null;i&&(m=new ResizeObserver(y=>{let[w]=y;w&&w.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var S;(S=m)==null||S.observe(t)})),n()}),u&&!a&&m.observe(u),m.observe(t));let p,h=a?Se(e):null;a&&x();function x(){const y=Se(e);h&&!Rn(h,y)&&n(),h=y,p=requestAnimationFrame(x)}return n(),()=>{var y;f.forEach(w=>{r&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),d?.(),(y=m)==null||y.disconnect(),m=null,a&&cancelAnimationFrame(p)}}const ns=Pr,os=_r,rs=br,ss=Ir,is=Rr,on=Cr,cs=Er,as=(e,t,n)=>{const o=new Map,r={platform:Qr,...n},s={...r.platform,_c:o};return Sr(e,t,{...r,platform:s})};var Ve=typeof document<"u"?l.useLayoutEffect:l.useEffect;function Ye(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!Ye(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)&&!Ye(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Mn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rn(e,t){const n=Mn(e);return Math.round(t*n)/n}function mt(e){const t=l.useRef(e);return Ve(()=>{t.current=e}),t}function ls(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:i}={},transform:c=!0,whileElementsMounted:a,open:u}=e,[f,d]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,m]=l.useState(o);Ye(v,o)||m(o);const[p,h]=l.useState(null),[x,y]=l.useState(null),w=l.useCallback(P=>{P!==T.current&&(T.current=P,h(P))},[]),S=l.useCallback(P=>{P!==_.current&&(_.current=P,y(P))},[]),b=s||p,M=i||x,T=l.useRef(null),_=l.useRef(null),I=l.useRef(f),F=a!=null,D=mt(a),j=mt(r),k=mt(u),N=l.useCallback(()=>
vendor: 5,939 bytes, line 1
1{if(!T.current||!_.current)return;const P={placement:t,strategy:n,middleware:v};j.current&&(P.platform=j.current),as(T.current,_.current,P).then(C=>{const W={...C,isPositioned:k.current!==!1};O.current&&!Ye(I.current,W)&&(I.current=W,Pt.flushSync(()=>{d(W)}))})},[v,t,n,j,k]);Ve(()=>{u===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,d(P=>({...P,isPositioned:!1})))},[u]);const O=l.useRef(!1);Ve(()=>(O.current=!0,()=>{O.current=!1}),[]),Ve(()=>{if(b&&(T.current=b),M&&(_.current=M),b&&M){if(D.current)return D.current(b,M,N);N()}},[b,M,N,D,F]);const $=l.useMemo(()=>({reference:T,floating:_,setReference:w,setFloating:S}),[w,S]),A=l.useMemo(()=>({reference:b,floating:M}),[b,M]),L=l.useMemo(()=>{const P={position:n,left:0,top:0};if(!A.floating)return P;const C=rn(A.floating,f.x),W=rn(A.floating,f.y);return c?{...P,transform:"translate("+C+"px, "+W+"px)",...Mn(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:C,top:W}},[n,c,A.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:N,refs:$,elements:A,floatingStyles:L}),[f,N,$,A,L])}const us=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?on({element:o.current,padding:r}).fn(n):{}:o?on({element:o,padding:r}).fn(n):{}}}},ds=(e,t)=>({...ns(e),options:[e,t]}),fs=(e,t)=>({...os(e),options:[e,t]}),ps=(e,t)=>({...cs(e),options:[e,t]}),ms=(e,t)=>({...rs(e),options:[e,t]}),hs=(e,t)=>({...ss(e),options:[e,t]}),gs=(e,t)=>({...is(e),options:[e,t]}),vs=(e,t)=>({...us(e),options:[e,t]});var xs="Arrow",Pn=l.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...s}=e;return g.jsx(K.svg,{...s,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});Pn.displayName=xs;var ws=Pn;function ys(e,t=[]){let n=[];function o(s,i){const c=l.createContext(i),a=n.length;n=[...n,i];function u(d){const{scope:v,children:m,...p}=d,h=v?.[e][a]||c,x=l.useMemo(()=>p,Object.values(p));return g.jsx(h.Provider,{value:x,children:m})}function f(d,v){const m=v?.[e][a]||c,p=l.useContext(m);if(p)return p;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return u.displayName=s+"Provider",[u,f]}const r=()=>{const s=n.map(i=>l.createContext(i));return function(c){const a=c?.[e]||s;return l.useMemo(()=>({[`__scope${e}`]:{...c,[e]:a}}),[c,a])}};return r.scopeName=e,[o,Ss(r,...t)]}function Ss(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const i=o.reduce((c,{useScope:a,scopeName:u})=>{const d=a(s)[`__scope${u}`];return{...c,...d}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Cs(e){const[t,n]=l.useState(void 0);return re(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const s=r[0];let i,c;if("borderBoxSize"in s){const a=s.borderBoxSize,u=Array.isArray(a)?a[0]:a;i=u.inlineSize,c=u.blockSize}else i=e.offsetWidth,c=e.offsetHeight;n({width:i,height:c})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var jt="Popper",[_n,ot]=ys(jt),[bs,En]=_n(jt),In=e=>{const{__scopePopper:t,children:n}=e,[o,r]=l.useState(null);return g.jsx(bs,{scope:t,anchor:o,onAnchorChange:r,children:n})};In.displayName=jt;var An="PopperAnchor",Tn=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,s=En(An,n),i=l.useRef(null),c=U(t,i);return l.useEffect(()=>{s.onAnchorChange(o?.current||i.current)}),o?null:g.jsx(K.div,{...r,ref:c})});Tn.displayName=An;var kt="PopperContent",[Rs,Ms]=_n(kt),On=l.forwardRef((e,t)=>{const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:s="center",alignOffset:i=0,arrowPadding:c=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:d="partial",hideWhenDetached:v=!1,updatePositionStrategy:m="optimized",onPlaced:p,...h}=e,x=En(kt,n),[y,w]=l.useState(null),S=U(t,R=>w(R)),[b,M]=l.useState(null),T=Cs(b),_=T?.width??0,I=T?.height??0,F=o+(s!=="center"?"-"+s:""),D=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},j=Array.isArray(u)?u:[u],k=j.length>0,N={padding:D,boundary:j.filter(_s),altBoundary:k},{refs:O,floatingStyles:$,placement:A,isPositioned:L,middlewareData:P}=ls({strategy:"fixed",placement:F,whileElementsMounted:(...R)=>ts(...R,{animationFrame:m==="always"}),elements:{reference:x.anchor},middleware:[ds({mainAxis:r+I,alignmentAxis:i}),a&&fs({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?ps():void 0,...N}),a&&ms({...N}),hs({...N,apply:({elements:R,rects:B,availableWidth:Y,availableHeight:H})=>{const{width:V,height:G}=B.reference,ee=R.floating.style;ee.setProperty("--radix-popper-available-width",`${Y}px`),ee.setProperty("--radix-popper-available-height",`${H}px`),ee.setProperty("--radix-popper-anchor-width",`${V}px`),ee.setProperty("--radix-popper-anchor-height",`${G}px`)}}),b&&vs({element:b,padding:c}),Es({arrowWidth:_,arrowHeight:I}),v&&gs({strategy:"referenceHidden",...N})]}),[C,W]=Ln(A),z=je(p);re(()=>{L&&z?.()},[L,z]);const ne=P.arrow?.x,de=P.arrow?.y,Q=P.arrow?.centerOffset!==0,[fe,q]=l.useState();return re(()=>{y&&q(window.getComputedStyle(y).zIndex)},[y]),g.jsx("div",{ref:O.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:L?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:fe,"--radix-popper-transform-origin":[P.transformOrigin?.x,P.transformOrigin?.y].join(" "),...P.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:g.jsx(Rs,{scope:n,placedSide:C,onArrowChange:M,arrowX:ne,arrowY:de,shouldHideArrow:Q,children:g.jsx(K.div,{"data-side":C,"data-align":W,...h,ref:S,style:{...h.style,animation:L?void 0:"none"}})})})});On.displayName=kt;var Dn="PopperArrow",Ps={top:"bottom",right:"left",bottom:"top",left:"r
1ight"},Nn=l.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,s=Ms(Dn,o),i=Ps[s.placedSide];return g.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:g.jsx(ws,{...r,ref:n,style:{...r.style,display:"block"}})})});Nn.displayName=Dn;function _s(e){return e!==null}var Es=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,i=r.arrow?.centerOffset!==0,c=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[u,f]=Ln(n),d={start:"0%",center:"50%",end:"100%"}[f],v=(r.arrow?.x??0)+c/2,m=(r.arrow?.y??0)+a/2;let p="",h="";return u==="bottom"?(p=i?d:`${v}px`,h=`${-a}px`):u==="top"?(p=i?d:`${v}px`,h=`${o.floating.height+a}px`):u==="right"?(p=`${-a}px`,h=i?d:`${m}px`):u==="left"&&(p=`${o.floating.width+a}px`,h=i?d:`${m}px`),{data:{x:p,y:h}}}});function Ln(e){const[t,n="center"]=e.split("-");return[t,n]}var jn=In,kn=Tn,Fn=On,$n=Nn,Is=l.createContext(void 0);function Ft(e){const t=l.useContext(Is);return e||t||"ltr"}function As(e,t=[]){let n=[];function o(s,i){const c=l.createContext(i),a=n.length;n=[...n,i];function u(d){const{scope:v,children:m,...p}=d,h=v?.[e][a]||c,x=l.useMemo(()=>p,Object.values(p));return g.jsx(h.Provider,{value:x,children:m})}function f(d,v){const m=v?.[e][a]||c,p=l.useContext(m);if(p)return p;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return u.displayName=s+"Provider",[u,f]}const r=()=>{const s=n.map(i=>l.createContext(i));return function(c){const a=c?.[e]||s;return l.useMemo(()=>({[`__scope${e}`]:{...c,[e]:a}}),[c,a])}};return r.scopeName=e,[o,Ts(r,...t)]}function Ts(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const i=o.reduce((c,{useScope:a,scopeName:u})=>{const d=a(s)[`__scope${u}`];return{...c,...d}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var ht="rovingFocusGroup.onEntryFocus",Os={bubbles:!1,cancelable:!0},rt="RovingFocusGroup",[wt,Bn,Ds]=Et(rt),[Ns,Hn]=As(rt,[Ds]),[Ls,js]=Ns(rt),Vn=l.forwardRef((e,t)=>g.jsx(wt.Provider,{scope:e.__scopeRovingFocusGroup,children:g.jsx(wt.Slot,{scope:e.__scopeRovingFocusGroup,children:g.jsx(ks,{...e,ref:t})})}));Vn.displayName=rt;var ks=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:r=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:a,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...d}=e,v=l.useRef(null),m=U(t,v),p=Ft(s),[h=null,x]=We({prop:i,defaultProp:c,onChange:a}),[y,w]=l.useState(!1),S=je(u),b=Bn(n),M=l.useRef(!1),[T,_]=l.useState(0);return l.useEffect(()=>{const I=v.current;if(I)return I.addEventListener(ht,S),()=>I.removeEventListener(ht,S)},[S]),g.jsx(Ls,{scope:n,orientation:o,dir:p,loop:r,currentTabStopId:h,onItemFocus:l.useCallback(I=>x(I),[x]),onItemShiftTab:l.useCallback(()=>w(!0),[]),onFocusableItemAdd:l.useCallback(()=>_(I=>I+1),[]),onFocusableItemRemove:l.useCallback(()=>_(I=>I-1),[]),children:g.jsx(K.div,{tabIndex:y||T===0?-1:0,"data-orientation":o,...d,ref:m,style:{outline:"none",...e.style},onMouseDown:E(e.onMouseDown,()=>{M.current=!0}),onFocus:E(e.onFocus,I=>{const F=!M.current;if(I.target===I.currentTarget&&F&&!y){const D=new CustomEvent(ht,Os);if(I.currentTarget.dispatchEvent(D),!D.defaultPrevented){const j=b().filter(A=>A.focusable),k=j.find(A=>A.active),N=j.find(A=>A.id===h),$=[k,N,...j].filter(Boolean).map(A=>A.ref.current);Gn($,f)}}M.current=!1}),onBlur:E(e.onBlur,()=>w(!1))})})}),Kn="RovingFocusGroupItem",Wn=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:r=!1,tabStopId:s,...i}=e,c=Pe(),a=s||c,u=js(Kn,n),f=u.currentTabStopId===a,d=Bn(n),{onFocusableItemAdd:v,onFocusableItemRemove:m}=u;return l.useEffect(()=>{if(o)return v(),()=>m()},[o,v,m]),g.jsx(wt.ItemSlot,{scope:n,id:a,focusable:o,active:r,children:g.jsx(K.span,{tabIndex:f?0:-1,"data-orientation":u.orientation,...i,ref:t,onMouseDown:E(e.onMouseDown,p=>{o?u.onItemFocus(a):p.preventDefault()}),onFocus:E(e.onFocus,()=>u.onItemFocus(a)),onKeyDown:E(e.onKeyDown,p=>{if(p.key==="Tab"&&p.shiftKey){u.onItemShiftTab();return}if(p.target!==p.currentTarget)return;const h=Bs(p,u.orientation,u.dir);if(h!==void 0){if(p.metaKey||p.ctrlKey||p.altKey||p.shiftKey)return;p.preventDefault();let y=d().filter(w=>w.focusable).map(w=>w.ref.current);if(h==="last")y.reverse();else if(h==="prev"||h==="next"){h==="prev"&&y.reverse();const w=y.indexOf(p.currentTarget);y=u.loop?Hs(y,w+1):y.slice(w+1)}setTimeout(()=>Gn(y))}})})})});Wn.displayName=Kn;var Fs={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function $s(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Bs(e,t,n){const o=$s(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return Fs[o]}function Gn(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function Hs(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var Vs=Vn,Ks=Wn,yt=["Enter"," "],Ws=["ArrowDown","PageUp","Home"],Un=["ArrowUp","PageDown","End"],Gs=[...Ws,...Un],Us={ltr:[...yt,"ArrowRight"],rtl:[...yt,"ArrowLeft"]},zs={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Fe="Menu",[Ne,Ys,Xs]=Et(Fe),[be,zn]=_t(Fe,[Xs,ot,Hn]),st=ot(),Yn=Hn(),[qs,Re]=be(Fe),[Zs,$e]=be(Fe),Xn=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:r,onOpenChange:s,modal:i=!0}=e,c=st(t),[a,u]=l.useState(null),f=l.useRef(!1),d=je(s),v=Ft(r);return l.useEffect(()=>{const m=()=>{f.current=!0,document.addEventListener("pointerdown",p,{capture:!0,once:!0}),document.addEventListener("pointermove",p,{capture:!0,once:!0})},p=()=>f.current=!1;return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",p,{capture:!0}),document.removeEventListener("pointermove",p,{capture:!0})}},[]),g.jsx(jn,{...c,children:g.jsx(qs,{scope:t,open:n,onOpenChange:d,content:a,onContentChange:u,children:g.jsx(Zs,{scope:t,onClose:l.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:f,dir:v,modal:i,children:o})})})};Xn.displayName=Fe;var Js="MenuAnchor",$t=l.forwardRef((e,t)=>
vendor: 23,004 bytes, line 1
1{const{__scopeMenu:n,...o}=e,r=st(n);return g.jsx(kn,{...r,...o,ref:t})});$t.displayName=Js;var Bt="MenuPortal",[Qs,qn]=be(Bt,{forceMount:void 0}),Zn=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:r}=e,s=Re(Bt,t);return g.jsx(Qs,{scope:t,forceMount:n,children:g.jsx(Je,{present:n||s.open,children:g.jsx(mn,{asChild:!0,container:r,children:o})})})};Zn.displayName=Bt;var te="MenuContent",[ei,Ht]=be(te),Jn=l.forwardRef((e,t)=>{const n=qn(te,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=Re(te,e.__scopeMenu),i=$e(te,e.__scopeMenu);return g.jsx(Ne.Provider,{scope:e.__scopeMenu,children:g.jsx(Je,{present:o||s.open,children:g.jsx(Ne.Slot,{scope:e.__scopeMenu,children:i.modal?g.jsx(ti,{...r,ref:t}):g.jsx(ni,{...r,ref:t})})})})}),ti=l.forwardRef((e,t)=>{const n=Re(te,e.__scopeMenu),o=l.useRef(null),r=U(t,o);return l.useEffect(()=>{const s=o.current;if(s)return an(s)},[]),g.jsx(Vt,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:E(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),ni=l.forwardRef((e,t)=>{const n=Re(te,e.__scopeMenu);return g.jsx(Vt,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Vt=l.forwardRef((e,t)=>{const{__scopeMenu:n,loop:o=!1,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:c,onEntryFocus:a,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:v,onDismiss:m,disableOutsideScroll:p,...h}=e,x=Re(te,n),y=$e(te,n),w=st(n),S=Yn(n),b=Ys(n),[M,T]=l.useState(null),_=l.useRef(null),I=U(t,_,x.onContentChange),F=l.useRef(0),D=l.useRef(""),j=l.useRef(0),k=l.useRef(null),N=l.useRef("right"),O=l.useRef(0),$=p?pn:l.Fragment,A=p?{as:Ke,allowPinchZoom:!0}:void 0,L=C=>{const W=D.current+C,z=b().filter(R=>!R.disabled),ne=document.activeElement,de=z.find(R=>R.ref.current===ne)?.textValue,Q=z.map(R=>R.textValue),fe=mi(Q,W,de),q=z.find(R=>R.textValue===fe)?.ref.current;(function R(B){D.current=B,window.clearTimeout(F.current),B!==""&&(F.current=window.setTimeout(()=>R(""),1e3))})(W),q&&setTimeout(()=>q.focus())};l.useEffect(()=>()=>window.clearTimeout(F.current),[]),ln();const P=l.useCallback(C=>N.current===k.current?.side&&gi(C,k.current?.area),[]);return g.jsx(ei,{scope:n,searchRef:D,onItemEnter:l.useCallback(C=>{P(C)&&C.preventDefault()},[P]),onItemLeave:l.useCallback(C=>{P(C)||(_.current?.focus(),T(null))},[P]),onTriggerLeave:l.useCallback(C=>{P(C)&&C.preventDefault()},[P]),pointerGraceTimerRef:j,onPointerGraceIntentChange:l.useCallback(C=>{k.current=C},[]),children:g.jsx($,{...A,children:g.jsx(un,{asChild:!0,trapped:r,onMountAutoFocus:E(s,C=>{C.preventDefault(),_.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:g.jsx(dn,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:v,onDismiss:m,children:g.jsx(Vs,{asChild:!0,...S,dir:y.dir,orientation:"vertical",loop:o,currentTabStopId:M,onCurrentTabStopIdChange:T,onEntryFocus:E(a,C=>{y.isUsingKeyboardRef.current||C.preventDefault()}),preventScrollOnEntryFocus:!0,children:g.jsx(Fn,{role:"menu","aria-orientation":"vertical","data-state":ho(x.open),"data-radix-menu-content":"",dir:y.dir,...w,...h,ref:I,style:{outline:"none",...h.style},onKeyDown:E(h.onKeyDown,C=>{const z=C.target.closest("[data-radix-menu-content]")===C.currentTarget,ne=C.ctrlKey||C.altKey||C.metaKey,de=C.key.length===1;z&&(C.key==="Tab"&&C.preventDefault(),!ne&&de&&L(C.key));const Q=_.current;if(C.target!==Q||!Gs.includes(C.key))return;C.preventDefault();const q=b().filter(R=>!R.disabled).map(R=>R.ref.current);Un.includes(C.key)&&q.reverse(),fi(q)}),onBlur:E(e.onBlur,C=>{C.currentTarget.contains(C.target)||(window.clearTimeout(F.current),D.current="")}),onPointerMove:E(e.onPointerMove,Le(C=>{const W=C.target,z=O.current!==C.clientX;if(C.currentTarget.contains(W)&&z){const ne=C.clientX>O.current?"right":"left";N.current=ne,O.current=C.clientX}}))})})})})})})});Jn.displayName=te;var oi="MenuGroup",Kt=l.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return g.jsx(K.div,{role:"group",...o,ref:t})});Kt.displayName=oi;var ri="MenuLabel",Qn=l.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return g.jsx(K.div,{...o,ref:t})});Qn.displayName=ri;var Xe="MenuItem",sn="menu.itemSelect",it=l.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:o,...r}=e,s=l.useRef(null),i=$e(Xe,e.__scopeMenu),c=Ht(Xe,e.__scopeMenu),a=U(t,s),u=l.useRef(!1),f=()=>{const d=s.current;if(!n&&d){const v=new CustomEvent(sn,{bubbles:!0,cancelable:!0});d.addEventListener(sn,m=>o?.(m),{once:!0}),sr(d,v),v.defaultPrevented?u.current=!1:i.onClose()}};return g.jsx(eo,{...r,ref:a,disabled:n,onClick:E(e.onClick,f),onPointerDown:d=>{e.onPointerDown?.(d),u.current=!0},onPointerUp:E(e.onPointerUp,d=>{u.current||d.currentTarget?.click()}),onKeyDown:E(e.onKeyDown,d=>{const v=c.searchRef.current!=="";n||v&&d.key===" "||yt.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});it.displayName=Xe;var eo=l.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:r,...s}=e,i=Ht(Xe,n),c=Yn(n),a=l.useRef(null),u=U(t,a),[f,d]=l.useState(!1),[v,m]=l.useState("");return l.useEffect(()=>{const p=a.current;p&&m((p.textContent??"").trim())},[s.children]),g.jsx(Ne.ItemSlot,{scope:n,disabled:o,textValue:r??v,children:g.jsx(Ks,{asChild:!0,...c,focusable:!o,children:g.jsx(K.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:u,onPointerMove:E(e.onPointerMove,Le(p=>{o?i.onItemLeave(p):(i.onItemEnter(p),p.defaultPrevented||p.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:E(e.onPointerLeave,Le(p=>i.onItemLeave(p))),onFocus:E(e.onFocus,()=>d(!0)),onBlur:E(e.onBlur,()=>d(!1))})})})}),si="MenuCheckboxItem",to=l.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:o,...r}=e;return g.jsx(io,{scope:e.__scopeMenu,checked:n,children:g.jsx(it,{role:"menuitemcheckbox","aria-checked":qe(n)?"mixed":n,...r,ref:t,"data-state":Gt(n),onSelect:E(r.onSelect,()=>o?.(qe(n)?!0:!n),{checkForDefaultPrevented:!1})})})});to.displayName=si;var no="MenuRadioGroup",[ii,ci]=be(no,{value:void 0,onValueChange:()=>{}}),oo=l.forwardRef((e,t)=>{const{value:n,onValueChange:o,...r}=e,s=je(o);return g.jsx(ii,{scope:e.__scopeMenu,value:n,onValueChange:s,children:g.jsx(Kt,{...r,ref:t})})});oo.displayName=no;var ro="MenuRadioItem",so=l.forwardRef((e,t)=>{const{value:n,...o}=e,r=ci(ro,e.__scopeMenu),s=n===r.value;return g.jsx(io,{scope:e.__scopeMenu,checked:s,children:g.jsx(it,{role:"menuitemradio","aria-checked":s,...o,ref:t,"data-state":Gt(s),onSelect:E(o.onSelect,()=>r.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});so.displayName=ro;var Wt="MenuItemIndicator",[io,ai]=be(Wt,{checked:!1}),co=l.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:o,...r}=e,s=ai(Wt,n);return g.jsx(Je,{present:o||qe(s.checked)||s.checked===!0,children:g.jsx(K.span,{...r,ref:t,"data-state":Gt(s.checked)})})});co.displayName=Wt;var li="MenuSeparator",ao=l.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return g.jsx(K.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});ao.displayName=li;var ui="MenuArrow",lo=l.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=st(n);return g.jsx($n,{...r,...o,ref:t})});lo.displayName=ui;var di="MenuSub",[xc,uo]=be(di),Te="MenuSubTrigger",fo=l.forwardRef((e,t)=>{const n=Re(Te,e.__scopeMenu),o=$e(Te,e.__scopeMenu),r=uo(Te,e.__scopeMenu),s=Ht(Te,e.__scopeMenu),i=l.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:a}=s,u={__scopeMenu:e.__scopeMenu},f=l.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return l.useEffect(()=>f,[f]),l.useEffect(()=>{const d=c.current;return()=>{window.clearTimeout(d),a(null)}},[c,a]),g.jsx($t,{asChild:!0,...u,children:g.jsx(eo,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":ho(n.open),...e,ref:fn(t,r.onTriggerChange),onClick:d=>{e.onClick?.(d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:E(e.onPointerMove,Le(d=>{s.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(s.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:E(e.onPointerLeave,Le(d=>{f();const v=n.content?.getBoundingClientRect();if(v){const m=n.content?.dataset.side,p=m==="right",h=p?-5:5,x=v[p?"left":"right"],y=v[p?"right":"left"];s.onPointerGraceIntentChange({area:[{x:d.clientX+h,y:d.clientY},{x,y:v.top},{x:y,y:v.top},{x:y,y:v.bottom},{x,y:v.bottom}],side:m}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(d),d.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:E(e.onKeyDown,d=>{const v=s.searchRef.current!=="";e.disabled||v&&d.key===" "||Us[o.dir].includes(d.key)&&(n.onOpenChange(!0),n.content?.focus(),d.preventDefault())})})})});fo.displayName=Te;var po="MenuSubContent",mo=l.forwardRef((e,t)=>{const n=qn(te,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=Re(te,e.__scopeMenu),i=$e(te,e.__scopeMenu),c=uo(po,e.__scopeMenu),a=l.useRef(null),u=U(t,a);return g.jsx(Ne.Provider,{scope:e.__scopeMenu,children:g.jsx(Je,{present:o||s.open,children:g.jsx(Ne.Slot,{scope:e.__scopeMenu,children:g.jsx(Vt,{id:c.contentId,"aria-labelledby":c.triggerId,...r,ref:u,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{i.isUsingKeyboardRef.current&&a.current?.focus(),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:E(e.onFocusOutside,f=>{f.target!==c.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:E(e.onEscapeKeyDown,f=>{i.onClose(),f.preventDefault()}),onKeyDown:E(e.onKeyDown,f=>{const d=f.currentTarget.contains(f.target),v=zs[i.dir].includes(f.key);d&&v&&(s.onOpenChange(!1),c.trigger?.focus(),f.preventDefault())})})})})})});mo.displayName=po;function ho(e){return e?"open":"closed"}function qe(e){return e==="indeterminate"}function Gt(e){return qe(e)?"indeterminate":e?"checked":"unchecked"}function fi(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function pi(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function mi(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=pi(e,Math.max(s,0));r.length===1&&(i=i.filter(u=>u!==n));const a=i.find(u=>u.toLowerCase().startsWith(r.toLowerCase()));return a!==n?a:void 0}function hi(e,t){const{x:n,y:o}=e;let r=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const c=t[s].x,a=t[s].y,u=t[i].x,f=t[i].y;a>o!=f>o&&n<(u-c)*(o-a)/(f-a)+c&&(r=!r)}return r}function gi(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return hi(n,t)}function Le(e){return t=>t.pointerType==="mouse"?e(t):void 0}var vi=Xn,xi=$t,wi=Zn,yi=Jn,Si=Kt,Ci=Qn,bi=it,Ri=to,Mi=oo,Pi=so,_i=co,Ei=ao,Ii=lo,Ai=fo,Ti=mo,Ut="DropdownMenu",[Oi,wc]=_t(Ut,[zn]),X=zn(),[Di,go]=Oi(Ut),vo=e=>{const{__scopeDropdownMenu:t,children:n,dir:o,open:r,defaultOpen:s,onOpenChange:i,modal:c=!0}=e,a=X(t),u=l.useRef(null),[f=!1,d]=We({prop:r,defaultProp:s,onChange:i});return g.jsx(Di,{scope:t,triggerId:Pe(),triggerRef:u,contentId:Pe(),open:f,onOpenChange:d,onOpenToggle:l.useCallback(()=>d(v=>!v),[d]),modal:c,children:g.jsx(vi,{...a,open:f,onOpenChange:d,dir:o,modal:c,children:n})})};vo.displayName=Ut;var xo="DropdownMenuTrigger",wo=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:o=!1,...r}=e,s=go(xo,n),i=X(n);return g.jsx(xi,{asChild:!0,...i,children:g.jsx(K.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:fn(t,s.triggerRef),onPointerDown:E(e.onPointerDown,c=>{!o&&c.button===0&&c.ctrlKey===!1&&(s.onOpenToggle(),s.open||c.preventDefault())}),onKeyDown:E(e.onKeyDown,c=>{o||(["Enter"," "].includes(c.key)&&s.onOpenToggle(),c.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});wo.displayName=xo;var Ni="DropdownMenuPortal",yo=e=>{const{__scopeDropdownMenu:t,...n}=e,o=X(t);return g.jsx(wi,{...o,...n})};yo.displayName=Ni;var So="DropdownMenuContent",Co=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=go(So,n),s=X(n),i=l.useRef(!1);return g.jsx(yi,{id:r.contentId,"aria-labelledby":r.triggerId,...s,...o,ref:t,onCloseAutoFocus:E(e.onCloseAutoFocus,c=>{i.current||r.triggerRef.current?.focus(),i.current=!1,c.preventDefault()}),onInteractOutside:E(e.onInteractOutside,c=>{const a=c.detail.originalEvent,u=a.button===0&&a.ctrlKey===!0,f=a.button===2||u;(!r.modal||f)&&(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)"}})});Co.displayName=So;var Li="DropdownMenuGroup",ji=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=X(n);return g.jsx(Si,{...r,...o,ref:t})});ji.displayName=Li;var ki="DropdownMenuLabel",bo=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=X(n);return g.jsx(Ci,{...r,...o,ref:t})});bo.displayName=ki;var Fi="DropdownMenuItem",Ro=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=X(n);return g.jsx(bi,{...r,...o,ref:t})});Ro.displayName=Fi;var $i="DropdownMenuCheckboxItem",Mo=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=X(n);return g.jsx(Ri,{...r,...o,ref:t})});Mo.displayName=$i;var Bi="DropdownMenuRadioGroup",Hi=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=X(n);return g.jsx(Mi,{...r,...o,ref:t})});Hi.displayName=Bi;var Vi="DropdownMenuRadioItem",Po=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=X(n);return g.jsx(Pi,{...r,...o,ref:t})});Po.displayName=Vi;var Ki="DropdownMenuItemIndicator",_o=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=X(n);return g.jsx(_i,{...r,...o,ref:t})});_o.displayName=Ki;var Wi="DropdownMenuSeparator",Eo=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=X(n);return g.jsx(Ei,{...r,...o,ref:t})});Eo.displayName=Wi;var Gi="DropdownMenuArrow",Ui=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=X(n);return g.jsx(Ii,{...r,...o,ref:t})});Ui.displayName=Gi;var zi="DropdownMenuSubTrigger",Io=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=X(n);return g.jsx(Ai,{...r,...o,ref:t})});Io.displayName=zi;var Yi="DropdownMenuSubContent",Ao=l.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=X(n);return g.jsx(Ti,{...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)"}})});Ao.displayName=Yi;var yc=vo,Sc=wo,Cc=yo,bc=Co,Rc=bo,Mc=Ro,Pc=Mo,_c=Po,Ec=_o,Ic=Eo,Ac=Io,Tc=Ao;function cn(e,[t,n]){return Math.min(n,Math.max(t,e))}function Xi(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var qi=[" ","Enter","ArrowUp","ArrowDown"],Zi=[" ","Enter"],Be="Select",[ct,at,Ji]=Et(Be),[Ae,Oc]=_t(Be,[Ji,ot]),lt=ot(),[Qi,ve]=Ae(Be),[ec,tc]=Ae(Be),To=e=>{const{__scopeSelect:t,children:n,open:o,defaultOpen:r,onOpenChange:s,value:i,defaultValue:c,onValueChange:a,dir:u,name:f,autoComplete:d,disabled:v,required:m,form:p}=e,h=lt(t),[x,y]=l.useState(null),[w,S]=l.useState(null),[b,M]=l.useState(!1),T=Ft(u),[_=!1,I]=We({prop:o,defaultProp:r,onChange:s}),[F,D]=We({prop:i,defaultProp:c,onChange:a}),j=l.useRef(null),k=x?p||!!x.closest("form"):!0,[N,O]=l.useState(new Set),$=Array.from(N).map(A=>A.props.value).join(";");return g.jsx(jn,{...h,children:g.jsxs(Qi,{required:m,scope:t,trigger:x,onTriggerChange:y,valueNode:w,onValueNodeChange:S,valueNodeHasChildren:b,onValueNodeHasChildrenChange:M,contentId:Pe(),value:F,onValueChange:D,open:_,onOpenChange:I,dir:T,triggerPointerDownPosRef:j,disabled:v,children:[g.jsx(ct.Provider,{scope:t,children:g.jsx(ec,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(A=>{O(L=>new Set(L).add(A))},[]),onNativeOptionRemove:l.useCallback(A=>{O(L=>{const P=new Set(L);return P.delete(A),P})},[]),children:n})}),k?g.jsxs(nr,{"aria-hidden":!0,required:m,tabIndex:-1,name:f,autoComplete:d,value:F,onChange:A=>D(A.target.value),disabled:v,form:p,children:[F===void 0?g.jsx("option",{value:""}):null,Array.from(N)]},$):null]})})};To.displayName=Be;var Oo="SelectTrigger",Do=l.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:o=!1,...r}=e,s=lt(n),i=ve(Oo,n),c=i.disabled||o,a=U(t,i.onTriggerChange),u=at(n),f=l.useRef("touch"),[d,v,m]=or(h=>{const x=u().filter(S=>!S.disabled),y=x.find(S=>S.value===i.value),w=rr(x,h,y);w!==void 0&&i.onValueChange(w.value)}),p=h=>{c||(i.onOpenChange(!0),m()),h&&(i.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)})};return g.jsx(kn,{asChild:!0,...s,children:g.jsx(K.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":tr(i.value)?"":void 0,...r,ref:a,onClick:E(r.onClick,h=>{h.currentTarget.focus(),f.current!=="mouse"&&p(h)}),onPointerDown:E(r.onPointerDown,h=>{f.current=h.pointerType;const x=h.target;x.hasPointerCapture(h.pointerId)&&x.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&h.pointerType==="mouse"&&(p(h),h.preventDefault())}),onKeyDown:E(r.onKeyDown,h=>{const x=d.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&v(h.key),!(x&&h.key===" ")&&qi.includes(h.key)&&(p(),h.preventDefault())})})})});Do.displayName=Oo;var No="SelectValue",Lo=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,children:s,placeholder:i="",...c}=e,a=ve(No,n),{onValueNodeHasChildrenChange:u}=a,f=s!==void 0,d=U(t,a.onValueNodeChange);return re(()=>{u(f)},[u,f]),g.jsx(K.span,{...c,ref:d,style:{pointerEvents:"none"},children:tr(a.value)?g.jsx(g.Fragment,{children:i}):s})});Lo.displayName=No;var nc="SelectIcon",jo=l.forwardRef((e,t)=>{const{__scopeSelect:n,children:o,...r}=e;return g.jsx(K.span,{"aria-hidden":!0,...r,ref:t,children:o||"â¼"})});jo.displayName=nc;var oc="SelectPortal",ko=e=>g.jsx(mn,{asChild:!0,...e});ko.displayName=oc;var Ce="SelectContent",Fo=l.forwardRef((e,t)=>{const n=ve(Ce,e.__scopeSelect),[o,r]=l.useState();if(re(()=>{r(new DocumentFragment)},[]),!n.open){const s=o;return s?Pt.createPortal(g.jsx($o,{scope:e.__scopeSelect,children:g.jsx(ct.Slot,{scope:e.__scopeSelect,children:g.jsx("div",{children:e.children})})}),s):null}return g.jsx(Bo,{...e,ref:t})});Fo.displayName=Ce;var oe=10,[$o,xe]=Ae(Ce),rc="SelectContentImpl",Bo=l.forwardRef((e,t)=>{const{__scopeSelect:n,position:o="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:s,onPointerDownOutside:i,side:c,sideOffset:a,align:u,alignOffset:f,arrowPadding:d,collisionBoundary:v,collisionPadding:m,sticky:p,hideWhenDetached:h,avoidCollisions:x,...y}=e,w=ve(Ce,n),[S,b]=l.useState(null),[M,T]=l.useState(null),_=U(t,R=>b(R)),[I,F]=l.useState(null),[D,j]=l.useState(null),k=at(n),[N,O]=l.useState(!1),$=l.useRef(!1);l.useEffect(()=>{if(S)return an(S)},[S]),ln();const A=l.useCallback(R=>{const[B,...Y]=k().map(G=>G.ref.current),[H]=Y.slice(-1),V=document.activeElement;for(const G of R)if(G===V||(G?.scrollIntoView({block:"nearest"}),G===B&&M&&(M.scrollTop=0),G===H&&M&&(M.scrollTop=M.scrollHeight),G?.focus(),document.activeElement!==V))return},[k,M]),L=l.useCallback(()=>A([I,S]),[A,I,S]);l.useEffect(()=>{N&&L()},[N,L]);const{onOpenChange:P,triggerPointerDownPosRef:C}=w;l.useEffect(()=>{if(S){let R={x:0,y:0};const B=H=>{R={x:Math.abs(Math.round(H.pageX)-(C.current?.x??0)),y:Math.abs(Math.round(H.pageY)-(C.current?.y??0))}},Y=H=>{R.x<=10&&R.y<=10?H.preventDefault():S.contains(H.target)||P(!1),document.removeEventListener("pointermove",B),C.current=null};return C.current!==null&&(document.addEventListener("pointermove",B),document.addEventListener("pointerup",Y,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",B),document.removeEventListener("pointerup",Y,{capture:!0})}}},[S,P,C]),l.useEffect(()=>{const R=()=>P(!1);return window.addEventListener("blur",R),window.addEventListener("resize",R),()=>{window.removeEventListener("blur",R),window.removeEventListener("resize",R)}},[P]);const[W,z]=or(R=>{const B=k().filter(V=>!V.disabled),Y=B.find(V=>V.ref.current===document.activeElement),H=rr(B,R,Y);H&&setTimeout(()=>H.ref.current.focus())}),ne=l.useCallback((R,B,Y)=>{const H=!$.current&&!Y;(w.value!==void 0&&w.value===B||H)&&(F(R),H&&($.current=!0))},[w.value]),de=l.useCallback(()=>S?.focus(),[S]),Q=l.useCallback((R,B,Y)=>{const H=!$.current&&!Y;(w.value!==void 0&&w.value===B||H)&&j(R)},[w.value]),fe=o==="popper"?St:Ho,q=fe===St?{side:c,sideOffset:a,align:u,alignOffset:f,arrowPadding:d,collisionBoundary:v,collisionPadding:m,sticky:p,hideWhenDetached:h,avoidCollisions:x}:{};return g.jsx($o,{scope:n,content:S,viewport:M,onViewportChange:T,itemRefCallback:ne,selectedItem:I,onItemLeave:de,itemTextRefCallback:Q,focusSelectedItem:L,selectedItemText:D,position:o,isPositioned:N,searchRef:W,children:g.jsx(pn,{as:Ke,allowPinchZoom:!0,children:g.jsx(un,{asChild:!0,trapped:w.open,onMountAutoFocus:R=>{R.preventDefault()},onUnmountAutoFocus:E(r,R=>{w.trigger?.focus({preventScroll:!0}),R.preventDefault()}),children:g.jsx(dn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:R=>R.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:g.jsx(fe,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:R=>R.preventDefault(),...y,...q,onPlaced:()=>O(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:E(y.onKeyDown,R=>{const B=R.ctrlKey||R.altKey||R.metaKey;if(R.key==="Tab"&&R.preventDefault(),!B&&R.key.length===1&&z(R.key),["ArrowUp","ArrowDown","Home","End"].includes(R.key)){let H=k().filter(V=>!V.disabled).map(V=>V.ref.current);if(["ArrowUp","End"].includes(R.key)&&(H=H.slice().reverse()),["ArrowUp","ArrowDown"].includes(R.key)){const V=R.target,G=H.indexOf(V);H=H.slice(G+1)}setTimeout(()=>A(H)),R.preventDefault()}})})})})})})});Bo.displayName=rc;var sc="SelectItemAlignedPosition",Ho=l.forwardRef((e,t)=>
vendor: 8,649 bytes, line 1
1{const{__scopeSelect:n,onPlaced:o,...r}=e,s=ve(Ce,n),i=xe(Ce,n),[c,a]=l.useState(null),[u,f]=l.useState(null),d=U(t,_=>f(_)),v=at(n),m=l.useRef(!1),p=l.useRef(!0),{viewport:h,selectedItem:x,selectedItemText:y,focusSelectedItem:w}=i,S=l.useCallback(()=>{if(s.trigger&&s.valueNode&&c&&u&&h&&x&&y){const _=s.trigger.getBoundingClientRect(),I=u.getBoundingClientRect(),F=s.valueNode.getBoundingClientRect(),D=y.getBoundingClientRect();if(s.dir!=="rtl"){const V=D.left-I.left,G=F.left-V,ee=_.left-G,we=_.width+ee,ut=Math.max(we,I.width),dt=window.innerWidth-oe,ft=cn(G,[oe,Math.max(oe,dt-ut)]);c.style.minWidth=we+"px",c.style.left=ft+"px"}else{const V=I.right-D.right,G=window.innerWidth-F.right-V,ee=window.innerWidth-_.right-G,we=_.width+ee,ut=Math.max(we,I.width),dt=window.innerWidth-oe,ft=cn(G,[oe,Math.max(oe,dt-ut)]);c.style.minWidth=we+"px",c.style.right=ft+"px"}const j=v(),k=window.innerHeight-oe*2,N=h.scrollHeight,O=window.getComputedStyle(u),$=parseInt(O.borderTopWidth,10),A=parseInt(O.paddingTop,10),L=parseInt(O.borderBottomWidth,10),P=parseInt(O.paddingBottom,10),C=$+A+N+P+L,W=Math.min(x.offsetHeight*5,C),z=window.getComputedStyle(h),ne=parseInt(z.paddingTop,10),de=parseInt(z.paddingBottom,10),Q=_.top+_.height/2-oe,fe=k-Q,q=x.offsetHeight/2,R=x.offsetTop+q,B=$+A+R,Y=C-B;if(B<=Q){const V=j.length>0&&x===j[j.length-1].ref.current;c.style.bottom="0px";const G=u.clientHeight-h.offsetTop-h.offsetHeight,ee=Math.max(fe,q+(V?de:0)+G+L),we=B+ee;c.style.height=we+"px"}else{const V=j.length>0&&x===j[0].ref.current;c.style.top="0px";const ee=Math.max(Q,$+h.offsetTop+(V?ne:0)+q)+Y;c.style.height=ee+"px",h.scrollTop=B-Q+h.offsetTop}c.style.margin=`${oe}px 0`,c.style.minHeight=W+"px",c.style.maxHeight=k+"px",o?.(),requestAnimationFrame(()=>m.current=!0)}},[v,s.trigger,s.valueNode,c,u,h,x,y,s.dir,o]);re(()=>S(),[S]);const[b,M]=l.useState();re(()=>{u&&M(window.getComputedStyle(u).zIndex)},[u]);const T=l.useCallback(_=>{_&&p.current===!0&&(S(),w?.(),p.current=!1)},[S,w]);return g.jsx(cc,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:m,onScrollButtonChange:T,children:g.jsx("div",{ref:a,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:b},children:g.jsx(K.div,{...r,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});Ho.displayName=sc;var ic="SelectPopperPosition",St=l.forwardRef((e,t)=>{const{__scopeSelect:n,align:o="start",collisionPadding:r=oe,...s}=e,i=lt(n);return g.jsx(Fn,{...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)"}})});St.displayName=ic;var[cc,zt]=Ae(Ce,{}),Ct="SelectViewport",Vo=l.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:o,...r}=e,s=xe(Ct,n),i=zt(Ct,n),c=U(t,s.onViewportChange),a=l.useRef(0);return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),g.jsx(ct.Slot,{scope:n,children:g.jsx(K.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:E(r.onScroll,u=>{const f=u.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:v}=i;if(v?.current&&d){const m=Math.abs(a.current-f.scrollTop);if(m>0){const p=window.innerHeight-oe*2,h=parseFloat(d.style.minHeight),x=parseFloat(d.style.height),y=Math.max(h,x);if(y<p){const w=y+m,S=Math.min(p,w),b=w-S;d.style.height=S+"px",d.style.bottom==="0px"&&(f.scrollTop=b>0?b:0,d.style.justifyContent="flex-end")}}}a.current=f.scrollTop})})})]})});Vo.displayName=Ct;var Ko="SelectGroup",[ac,lc]=Ae(Ko),uc=l.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=Pe();return g.jsx(ac,{scope:n,id:r,children:g.jsx(K.div,{role:"group","aria-labelledby":r,...o,ref:t})})});uc.displayName=Ko;var Wo="SelectLabel",Go=l.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=lc(Wo,n);return g.jsx(K.div,{id:r.id,...o,ref:t})});Go.displayName=Wo;var Ze="SelectItem",[dc,Uo]=Ae(Ze),zo=l.forwardRef((e,t)=>{const{__scopeSelect:n,value:o,disabled:r=!1,textValue:s,...i}=e,c=ve(Ze,n),a=xe(Ze,n),u=c.value===o,[f,d]=l.useState(s??""),[v,m]=l.useState(!1),p=U(t,w=>a.itemRefCallback?.(w,o,r)),h=Pe(),x=l.useRef("touch"),y=()=>{r||(c.onValueChange(o),c.onOpenChange(!1))};if(o==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return g.jsx(dc,{scope:n,value:o,disabled:r,textId:h,isSelected:u,onItemTextChange:l.useCallback(w=>{d(S=>S||(w?.textContent??"").trim())},[]),children:g.jsx(ct.ItemSlot,{scope:n,value:o,disabled:r,textValue:f,children:g.jsx(K.div,{role:"option","aria-labelledby":h,"data-highlighted":v?"":void 0,"aria-selected":u&&v,"data-state":u?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...i,ref:p,onFocus:E(i.onFocus,()=>m(!0)),onBlur:E(i.onBlur,()=>m(!1)),onClick:E(i.onClick,()=>{x.current!=="mouse"&&y()}),onPointerUp:E(i.onPointerUp,()=>{x.current==="mouse"&&y()}),onPointerDown:E(i.onPointerDown,w=>{x.current=w.pointerType}),onPointerMove:E(i.onPointerMove,w=>{x.current=w.pointerType,r?a.onItemLeave?.():x.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:E(i.onPointerLeave,w=>{w.currentTarget===document.activeElement&&a.onItemLeave?.()}),onKeyDown:E(i.onKeyDown,w=>{a.searchRef?.current!==""&&w.key===" "||(Zi.includes(w.key)&&y(),w.key===" "&&w.preventDefault())})})})})});zo.displayName=Ze;var Oe="SelectItemText",Yo=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,...s}=e,i=ve(Oe,n),c=xe(Oe,n),a=Uo(Oe,n),u=tc(Oe,n),[f,d]=l.useState(null),v=U(t,y=>d(y),a.onItemTextChange,y=>c.itemTextRefCallback?.(y,a.value,a.disabled)),m=f?.textContent,p=l.useMemo(()=>g.jsx("option",{value:a.value,disabled:a.disabled,children:m},a.value),[a.disabled,a.value,m]),{onNativeOptionAdd:h,onNativeOptionRemove:x}=u;return re(()=>(h(p),()=>x(p)),[h,x,p]),g.jsxs(g.Fragment,{children:[g.jsx(K.span,{id:a.textId,...s,ref:v}),a.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Pt.createPortal(s.children,i.valueNode):null]})});Yo.displayName=Oe;var Xo="SelectItemIndicator",qo=l.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return Uo(Xo,n).isSelected?g.jsx(K.span,{"aria-hidden":!0,...o,ref:t}):null});qo.displayName=Xo;var bt="SelectScrollUpButton",Zo=l.forwardRef((e,t)=>{const n=xe(bt,e.__scopeSelect),o=zt(bt,e.__scopeSelect),[r,s]=l.useState(!1),i=U(t,o.onScrollButtonChange);return re(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=a.scrollTop>0;s(u)};const a=n.viewport;return c(),a.addEventListener("scroll",c),()=>a.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),r?g.jsx(Qo,{...e,ref:i,onAutoScroll:()=>{const{viewport:c,selectedItem:a}=n;c&&a&&(c.scrollTop=c.scrollTop-a.offsetHeight)}}):null});Zo.displayName=bt;var Rt="SelectScrollDownButton",Jo=l.forwardRef((e,t)=>{const n=xe(Rt,e.__scopeSelect),o=zt(Rt,e.__scopeSelect),[r,s]=l.useState(!1),i=U(t,o.onScrollButtonChange);return re(()=>{if(n.viewport&&n.isPositioned){let c=function(){const u=a.scrollHeight-a.clientHeight,f=Math.ceil(a.scrollTop)<u;s(f)};const a=n.viewport;return c(),a.addEventListener("scroll",c),()=>a.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),r?g.jsx(Qo,{...e,ref:i,onAutoScroll:()=>{const{viewport:c,selectedItem:a}=n;c&&a&&(c.scrollTop=c.scrollTop+a.offsetHeight)}}):null});Jo.displayName=Rt;var Qo=l.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:o,...r}=e,s=xe("SelectScrollButton",n),i=l.useRef(null),c=at(n),a=l.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return l.useEffect(()=>()=>a(),[a]),re(()=>{c().find(f=>f.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[c]),g.jsx(K.div,{"aria-hidden":!0,...r,ref:t,style:{flexShrink:0,...r.style},onPointerDown:E(r.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(o,50))}),onPointerMove:E(r.onPointerMove,()=>{s.onItemLeave?.(),i.current===null&&(i.current=window.setInterval(o,50))}),onPointerLeave:E(r.onPointerLeave,()=>{a()})})}),fc="SelectSeparator",er=l.forwardRef((e,t)=>
vendor: 1,844 bytes, line 1
1{const{__scopeSelect:n,...o}=e;return g.jsx(K.div,{"aria-hidden":!0,...o,ref:t})});er.displayName=fc;var Mt="SelectArrow",pc=l.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=lt(n),s=ve(Mt,n),i=xe(Mt,n);return s.open&&i.position==="popper"?g.jsx($n,{...r,...o,ref:t}):null});pc.displayName=Mt;function tr(e){return e===""||e===void 0}var nr=l.forwardRef((e,t)=>{const{value:n,...o}=e,r=l.useRef(null),s=U(t,r),i=Xi(n);return l.useEffect(()=>{const c=r.current,a=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(a,"value").set;if(i!==n&&f){const d=new Event("change",{bubbles:!0});f.call(c,n),c.dispatchEvent(d)}},[i,n]),g.jsx(It,{asChild:!0,children:g.jsx("select",{...o,ref:s,defaultValue:n})})});nr.displayName="BubbleSelect";function or(e){const t=je(e),n=l.useRef(""),o=l.useRef(0),r=l.useCallback(i=>{const c=n.current+i;t(c),function a(u){n.current=u,window.clearTimeout(o.current),u!==""&&(o.current=window.setTimeout(()=>a(""),1e3))}(c)},[t]),s=l.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,r,s]}function rr(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=mc(e,Math.max(s,0));r.length===1&&(i=i.filter(u=>u!==n));const a=i.find(u=>u.textValue.toLowerCase().startsWith(r.toLowerCase()));return a!==n?a:void 0}function mc(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var Dc=To,Nc=Do,Lc=Lo,jc=jo,kc=ko,Fc=Fo,$c=Vo,Bc=Go,Hc=zo,Vc=Yo,Kc=qo,Wc=Zo,Gc=Jo,Uc=er;export{kn as A,Vc as B,Fn as C,Uc as D,Dc as E,Lc as F,cn as G,Ks as I,Rc as L,Cc as P,vc as R,Ac as S,Sc as T,It as V,$n as a,Hn as b,ot as c,Vs as d,Xi as e,Cs as f,Et as g,Tc as h,bc as i,Mc as j,Pc as k,Ec as l,_c as m,Ic as n,yc as o,Nc as p,jc as q,Wc as r,Gc as s,kc as t,Ft as u,Fc as v,$c as w,Bc as x,Hc as y,Kc 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.