vendor: 3,855 bytes, line 1
1import{r as o,j as r,bp as j,bq as mt,br as ht,bs as Pe,bt as L,bu as vt,bv as P,bw as $,aQ as Re,bx as gt,by as xt,bz as St,bA as wt,bB as yt,bC as bt,bD as Ct,bE as Ce,bF as It,bG as Tt,bH as Nt,bI as Pt,bJ as Te,bK as Rt,bL as Et,c as G,bM as Ee,bN as _t,bO as jt}from"./index-DxhIxHch.js";function Ne(t,[n,e]){return Math.min(e,Math.max(n,t))}var Mt="VisuallyHidden",_e=o.forwardRef((t,n)=>r.jsx(j.span,{...t,ref:n,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",...t.style}}));_e.displayName=Mt;var At=[" ","Enter","ArrowUp","ArrowDown"],Ot=[" ","Enter"],se="Select",[ie,de,Dt]=mt(se),[te,po]=ht(se,[Dt,Pe]),ue=Pe(),[kt,q]=te(se),[Lt,Vt]=te(se),je=t=>{const{__scopeSelect:n,children:e,open:a,defaultOpen:c,onOpenChange:p,value:l,defaultValue:i,onValueChange:s,dir:f,name:g,autoComplete:w,disabled:T,required:N,form:I}=t,d=ue(n),[v,y]=o.useState(null),[u,h]=o.useState(null),[M,A]=o.useState(!1),oe=Pt(f),[R=!1,D]=Te({prop:a,defaultProp:c,onChange:p}),[W,X]=Te({prop:l,defaultProp:i,onChange:s}),V=o.useRef(null),B=v?I||!!v.closest("form"):!0,[U,H]=o.useState(new Set),z=Array.from(U).map(E=>E.props.value).join(";");return r.jsx(Rt,{...d,children:r.jsxs(kt,{required:N,scope:n,trigger:v,onTriggerChange:y,valueNode:u,onValueNodeChange:h,valueNodeHasChildren:M,onValueNodeHasChildrenChange:A,contentId:Ce(),value:W,onValueChange:X,open:R,onOpenChange:D,dir:oe,triggerPointerDownPosRef:V,disabled:T,children:[r.jsx(ie.Provider,{scope:n,children:r.jsx(Lt,{scope:t.__scopeSelect,onNativeOptionAdd:o.useCallback(E=>{H(k=>new Set(k).add(E))},[]),onNativeOptionRemove:o.useCallback(E=>{H(k=>{const F=new Set(k);return F.delete(E),F})},[]),children:e})}),B?r.jsxs(ot,{"aria-hidden":!0,required:N,tabIndex:-1,name:g,autoComplete:w,value:W,onChange:E=>X(E.target.value),disabled:T,form:I,children:[W===void 0?r.jsx("option",{value:""}):null,Array.from(U)]},z):null]})})};je.displayName=se;var Me="SelectTrigger",Ae=o.forwardRef((t,n)=>{const{__scopeSelect:e,disabled:a=!1,...c}=t,p=ue(e),l=q(Me,e),i=l.disabled||a,s=L(n,l.onTriggerChange),f=de(e),g=o.useRef("touch"),[w,T,N]=nt(d=>{const v=f().filter(h=>!h.disabled),y=v.find(h=>h.value===l.value),u=rt(v,d,y);u!==void 0&&l.onValueChange(u.value)}),I=d=>{i||(l.onOpenChange(!0),N()),d&&(l.triggerPointerDownPosRef.current={x:Math.round(d.pageX),y:Math.round(d.pageY)})};return r.jsx(vt,{asChild:!0,...p,children:r.jsx(j.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":tt(l.value)?"":void 0,...c,ref:s,onClick:P(c.onClick,d=>{d.currentTarget.focus(),g.current!=="mouse"&&I(d)}),onPointerDown:P(c.onPointerDown,d=>{g.current=d.pointerType;const v=d.target;v.hasPointerCapture(d.pointerId)&&v.releasePointerCapture(d.pointerId),d.button===0&&d.ctrlKey===!1&&d.pointerType==="mouse"&&(I(d),d.preventDefault())}),onKeyDown:P(c.onKeyDown,d=>{const v=w.current!=="";!(d.ctrlKey||d.altKey||d.metaKey)&&d.key.length===1&&T(d.key),!(v&&d.key===" ")&&At.includes(d.key)&&(I(),d.preventDefault())})})})});Ae.displayName=Me;var Oe="SelectValue",De=o.forwardRef((t,n)=>{const{__scopeSelect:e,className:a,style:c,children:p,placeholder:l="",...i}=t,s=q(Oe,e),{onValueNodeHasChildrenChange:f}=s,g=p!==void 0,w=L(n,s.onValueNodeChange);return $(()=>{f(g)},[f,g]),r.jsx(j.span,{...i,ref:w,style:{pointerEvents:"none"},children:tt(s.value)?r.jsx(r.Fragment,{children:l}):p})});De.displayName=Oe;var Bt="SelectIcon",ke=o.forwardRef((t,n)=>{const{__scopeSelect:e,children:a,...c}=t;return r.jsx(j.span,{"aria-hidden":!0,...c,ref:n,children:a||"â¼"})});ke.displayName=Bt;var Ht="SelectPortal",Le=t=>r.jsx(Et,{asChild:!0,...t});
vendor: 12,213 bytes, line 1
1Le.displayName=Ht;var Q="SelectContent",Ve=o.forwardRef((t,n)=>{const e=q(Q,t.__scopeSelect),[a,c]=o.useState();if($(()=>{c(new DocumentFragment)},[]),!e.open){const p=a;return p?Re.createPortal(r.jsx(Be,{scope:t.__scopeSelect,children:r.jsx(ie.Slot,{scope:t.__scopeSelect,children:r.jsx("div",{children:t.children})})}),p):null}return r.jsx(He,{...t,ref:n})});Ve.displayName=Q;var O=10,[Be,Y]=te(Q),zt="SelectContentImpl",He=o.forwardRef((t,n)=>{const{__scopeSelect:e,position:a="item-aligned",onCloseAutoFocus:c,onEscapeKeyDown:p,onPointerDownOutside:l,side:i,sideOffset:s,align:f,alignOffset:g,arrowPadding:w,collisionBoundary:T,collisionPadding:N,sticky:I,hideWhenDetached:d,avoidCollisions:v,...y}=t,u=q(Q,e),[h,M]=o.useState(null),[A,oe]=o.useState(null),R=L(n,m=>M(m)),[D,W]=o.useState(null),[X,V]=o.useState(null),B=de(e),[U,H]=o.useState(!1),z=o.useRef(!1);o.useEffect(()=>{if(h)return gt(h)},[h]),xt();const E=o.useCallback(m=>{const[C,..._]=B().map(S=>S.ref.current),[b]=_.slice(-1),x=document.activeElement;for(const S of m)if(S===x||(S==null||S.scrollIntoView({block:"nearest"}),S===C&&A&&(A.scrollTop=0),S===b&&A&&(A.scrollTop=A.scrollHeight),S==null||S.focus(),document.activeElement!==x))return},[B,A]),k=o.useCallback(()=>E([D,h]),[E,D,h]);o.useEffect(()=>{U&&k()},[U,k]);const{onOpenChange:F,triggerPointerDownPosRef:K}=u;o.useEffect(()=>{if(h){let m={x:0,y:0};const C=b=>{var x,S;m={x:Math.abs(Math.round(b.pageX)-(((x=K.current)==null?void 0:x.x)??0)),y:Math.abs(Math.round(b.pageY)-(((S=K.current)==null?void 0:S.y)??0))}},_=b=>{m.x<=10&&m.y<=10?b.preventDefault():h.contains(b.target)||F(!1),document.removeEventListener("pointermove",C),K.current=null};return K.current!==null&&(document.addEventListener("pointermove",C),document.addEventListener("pointerup",_,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",C),document.removeEventListener("pointerup",_,{capture:!0})}}},[h,F,K]),o.useEffect(()=>{const m=()=>F(!1);return window.addEventListener("blur",m),window.addEventListener("resize",m),()=>{window.removeEventListener("blur",m),window.removeEventListener("resize",m)}},[F]);const[pe,ae]=nt(m=>{const C=B().filter(x=>!x.disabled),_=C.find(x=>x.ref.current===document.activeElement),b=rt(C,m,_);b&&setTimeout(()=>b.ref.current.focus())}),fe=o.useCallback((m,C,_)=>{const b=!z.current&&!_;(u.value!==void 0&&u.value===C||b)&&(W(m),b&&(z.current=!0))},[u.value]),me=o.useCallback(()=>h==null?void 0:h.focus(),[h]),ee=o.useCallback((m,C,_)=>{const b=!z.current&&!_;(u.value!==void 0&&u.value===C||b)&&V(m)},[u.value]),le=a==="popper"?xe:ze,ne=le===xe?{side:i,sideOffset:s,align:f,alignOffset:g,arrowPadding:w,collisionBoundary:T,collisionPadding:N,sticky:I,hideWhenDetached:d,avoidCollisions:v}:{};return r.jsx(Be,{scope:e,content:h,viewport:A,onViewportChange:oe,itemRefCallback:fe,selectedItem:D,onItemLeave:me,itemTextRefCallback:ee,focusSelectedItem:k,selectedItemText:X,position:a,isPositioned:U,searchRef:pe,children:r.jsx(St,{as:wt,allowPinchZoom:!0,children:r.jsx(yt,{asChild:!0,trapped:u.open,onMountAutoFocus:m=>{m.preventDefault()},onUnmountAutoFocus:P(c,m=>{var C;(C=u.trigger)==null||C.focus({preventScroll:!0}),m.preventDefault()}),children:r.jsx(bt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:m=>m.preventDefault(),onDismiss:()=>u.onOpenChange(!1),children:r.jsx(le,{role:"listbox",id:u.contentId,"data-state":u.open?"open":"closed",dir:u.dir,onContextMenu:m=>m.preventDefault(),...y,...ne,onPlaced:()=>H(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:P(y.onKeyDown,m=>{const C=m.ctrlKey||m.altKey||m.metaKey;if(m.key==="Tab"&&m.preventDefault(),!C&&m.key.length===1&&ae(m.key),["ArrowUp","ArrowDown","Home","End"].includes(m.key)){let b=B().filter(x=>!x.disabled).map(x=>x.ref.current);if(["ArrowUp","End"].includes(m.key)&&(b=b.slice().reverse()),["ArrowUp","ArrowDown"].includes(m.key)){const x=m.target,S=b.indexOf(x);b=b.slice(S+1)}setTimeout(()=>E(b)),m.preventDefault()}})})})})})})});He.displayName=zt;var Ft="SelectItemAlignedPosition",ze=o.forwardRef((t,n)=>{const{__scopeSelect:e,onPlaced:a,...c}=t,p=q(Q,e),l=Y(Q,e),[i,s]=o.useState(null),[f,g]=o.useState(null),w=L(n,R=>g(R)),T=de(e),N=o.useRef(!1),I=o.useRef(!0),{viewport:d,selectedItem:v,selectedItemText:y,focusSelectedItem:u}=l,h=o.useCallback(()=>{if(p.trigger&&p.valueNode&&i&&f&&d&&v&&y){const R=p.trigger.getBoundingClientRect(),D=f.getBoundingClientRect(),W=p.valueNode.getBoundingClientRect(),X=y.getBoundingClientRect();if(p.dir!=="rtl"){const x=X.left-D.left,S=W.left-x,Z=R.left-S,J=R.width+Z,he=Math.max(J,D.width),ve=window.innerWidth-O,ge=Ne(S,[O,Math.max(O,ve-he)]);i.style.minWidth=J+"px",i.style.left=ge+"px"}else{const x=D.right-X.right,S=window.innerWidth-W.right-x,Z=window.innerWidth-R.right-S,J=R.width+Z,he=Math.max(J,D.width),ve=window.innerWidth-O,ge=Ne(S,[O,Math.max(O,ve-he)]);i.style.minWidth=J+"px",i.style.right=ge+"px"}const V=T(),B=window.innerHeight-O*2,U=d.scrollHeight,H=window.getComputedStyle(f),z=parseInt(H.borderTopWidth,10),E=parseInt(H.paddingTop,10),k=parseInt(H.borderBottomWidth,10),F=parseInt(H.paddingBottom,10),K=z+E+U+F+k,pe=Math.min(v.offsetHeight*5,K),ae=window.getComputedStyle(d),fe=parseInt(ae.paddingTop,10),me=parseInt(ae.paddingBottom,10),ee=R.top+R.height/2-O,le=B-ee,ne=v.offsetHeight/2,m=v.offsetTop+ne,C=z+E+m,_=K-C;if(C<=ee){const x=V.length>0&&v===V[V.length-1].ref.current;i.style.bottom="0px";const S=f.clientHeight-d.offsetTop-d.offsetHeight,Z=Math.max(le,ne+(x?me:0)+S+k),J=C+Z;i.style.height=J+"px"}else{const x=V.length>0&&v===V[0].ref.current;i.style.top="0px";const Z=Math.max(ee,z+d.offsetTop+(x?fe:0)+ne)+_;i.style.height=Z+"px",d.scrollTop=C-ee+d.offsetTop}i.style.margin=`${O}px 0`,i.style.minHeight=pe+"px",i.style.maxHeight=B+"px",a==null||a(),requestAnimationFrame(()=>N.current=!0)}},[T,p.trigger,p.valueNode,i,f,d,v,y,p.dir,a]);$(()=>h(),[h]);const[M,A]=o.useState();$(()=>{f&&A(window.getComputedStyle(f).zIndex)},[f]);const oe=o.useCallback(R=>{R&&I.current===!0&&(h(),u==null||u(),I.current=!1)},[h,u]);return r.jsx(Ut,{scope:e,contentWrapper:i,shouldExpandOnScrollRef:N,onScrollButtonChange:oe,children:r.jsx("div",{ref:s,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:M},children:r.jsx(j.div,{...c,ref:w,style:{boxSizing:"border-box",maxHeight:"100%",...c.style}})})})});ze.displayName=Ft;var Wt="SelectPopperPosition",xe=o.forwardRef((t,n)=>{const{__scopeSelect:e,align:a="start",collisionPadding:c=O,...p}=t,l=ue(e);return r.jsx(Ct,{...l,...p,ref:n,align:a,collisionPadding:c,style:{boxSizing:"border-box",...p.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)"}})});xe.displayName=Wt;var[Ut,Ie]=te(Q,{}),Se="SelectViewport",Fe=o.forwardRef((t,n)=>{const{__scopeSelect:e,nonce:a,...c}=t,p=Y(Se,e),l=Ie(Se,e),i=L(n,p.onViewportChange),s=o.useRef(0);return r.jsxs(r.Fragment,{children:[r.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:a}),r.jsx(ie.Slot,{scope:e,children:r.jsx(j.div,{"data-radix-select-viewport":"",role:"presentation",...c,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...c.style},onScroll:P(c.onScroll,f=>{const g=f.currentTarget,{contentWrapper:w,shouldExpandOnScrollRef:T}=l;if(T!=null&&T.current&&w){const N=Math.abs(s.current-g.scrollTop);if(N>0){const I=window.innerHeight-O*2,d=parseFloat(w.style.minHeight),v=parseFloat(w.style.height),y=Math.max(d,v);if(y<I){const u=y+N,h=Math.min(I,u),M=u-h;w.style.height=h+"px",w.style.bottom==="0px"&&(g.scrollTop=M>0?M:0,w.style.justifyContent="flex-end")}}}s.current=g.scrollTop})})})]})});Fe.displayName=Se;var We="SelectGroup",[Kt,$t]=te(We),Gt=o.forwardRef((t,n)=>{const{__scopeSelect:e,...a}=t,c=Ce();return r.jsx(Kt,{scope:e,id:c,children:r.jsx(j.div,{role:"group","aria-labelledby":c,...a,ref:n})})});Gt.displayName=We;var Ue="SelectLabel",Ke=o.forwardRef((t,n)=>{const{__scopeSelect:e,...a}=t,c=$t(Ue,e);return r.jsx(j.div,{id:c.id,...a,ref:n})});Ke.displayName=Ue;var ce="SelectItem",[qt,$e]=te(ce),Ge=o.forwardRef((t,n)=>{const{__scopeSelect:e,value:a,disabled:c=!1,textValue:p,...l}=t,i=q(ce,e),s=Y(ce,e),f=i.value===a,[g,w]=o.useState(p??""),[T,N]=o.useState(!1),I=L(n,u=>{var h;return(h=s.itemRefCallback)==null?void 0:h.call(s,u,a,c)}),d=Ce(),v=o.useRef("touch"),y=()=>{c||(i.onValueChange(a),i.onOpenChange(!1))};if(a==="")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 r.jsx(qt,{scope:e,value:a,disabled:c,textId:d,isSelected:f,onItemTextChange:o.useCallback(u=>{w(h=>h||((u==null?void 0:u.textContent)??"").trim())},[]),children:r.jsx(ie.ItemSlot,{scope:e,value:a,disabled:c,textValue:g,children:r.jsx(j.div,{role:"option","aria-labelledby":d,"data-highlighted":T?"":void 0,"aria-selected":f&&T,"data-state":f?"checked":"unchecked","aria-disabled":c||void 0,"data-disabled":c?"":void 0,tabIndex:c?void 0:-1,...l,ref:I,onFocus:P(l.onFocus,()=>N(!0)),onBlur:P(l.onBlur,()=>N(!1)),onClick:P(l.onClick,()=>{v.current!=="mouse"&&y()}),onPointerUp:P(l.onPointerUp,()=>{v.current==="mouse"&&y()}),onPointerDown:P(l.onPointerDown,u=>{v.current=u.pointerType}),onPointerMove:P(l.onPointerMove,u=>{var h;v.current=u.pointerType,c?(h=s.onItemLeave)==null||h.call(s):v.current==="mouse"&&u.currentTarget.focus({preventScroll:!0})}),onPointerLeave:P(l.onPointerLeave,u=>{var h;u.currentTarget===document.activeElement&&((h=s.onItemLeave)==null||h.call(s))}),onKeyDown:P(l.onKeyDown,u=>{var M;((M=s.searchRef)==null?void 0:M.current)!==""&&u.key===" "||(Ot.includes(u.key)&&y(),u.key===" "&&u.preventDefault())})})})})});Ge.displayName=ce;var re="SelectItemText",qe=o.forwardRef((t,n)=>{const{__scopeSelect:e,className:a,style:c,...p}=t,l=q(re,e),i=Y(re,e),s=$e(re,e),f=Vt(re,e),[g,w]=o.useState(null),T=L(n,y=>w(y),s.onItemTextChange,y=>{var u;return(u=i.itemTextRefCallback)==null?void 0:u.call(i,y,s.value,s.disabled)}),N=g==null?void 0:g.textContent,I=o.useMemo(()=>r.jsx("option",{value:s.value,disabled:s.disabled,children:N},s.value),[s.disabled,s.value,N]),{onNativeOptionAdd:d,onNativeOptionRemove:v}=f;return $(()=>(d(I),()=>v(I)),[d,v,I]),r.jsxs(r.Fragment,{children:[r.jsx(j.span,{id:s.textId,...p,ref:T}),s.isSelected&&l.valueNode&&!l.valueNodeHasChildren?Re.createPortal(p.children,l.valueNode):null]})});qe.displayName=re;var Ye="SelectItemIndicator",Xe=o.forwardRef((t,n)=>{const{__scopeSelect:e,...a}=t;return $e(Ye,e).isSelected?r.jsx(j.span,{"aria-hidden":!0,...a,ref:n}):null});Xe.displayName=Ye;var we="SelectScrollUpButton",Ze=o.forwardRef((t,n)=>{const e=Y(we,t.__scopeSelect),a=Ie(we,t.__scopeSelect),[c,p]=o.useState(!1),l=L(n,a.onScrollButtonChange);return $(()=>{if(e.viewport&&e.isPositioned){let i=function(){const f=s.scrollTop>0;p(f)};const s=e.viewport;return i(),s.addEventListener("scroll",i),()=>s.removeEventListener("scroll",i)}},[e.viewport,e.isPositioned]),c?r.jsx(Qe,{...t,ref:l,onAutoScroll:()=>{const{viewport:i,selectedItem:s}=e;i&&s&&(i.scrollTop=i.scrollTop-s.offsetHeight)}}):null});Ze.displayName=we;var ye="SelectScrollDownButton",Je=o.forwardRef((t,n)=>{const e=Y(ye,t.__scopeSelect),a=Ie(ye,t.__scopeSelect),[c,p]=o.useState(!1),l=L(n,a.onScrollButtonChange);return $(()=>{if(e.viewport&&e.isPositioned){let i=function(){const f=s.scrollHeight-s.clientHeight,g=Math.ceil(s.scrollTop)<f;p(g)};const s=e.viewport;return i(),s.addEventListener("scroll",i),()=>s.removeEventListener("scroll",i)}},[e.viewport,e.isPositioned]),c?r.jsx(Qe,{...t,ref:l,onAutoScroll:()=>{const{viewport:i,selectedItem:s}=e;i&&s&&(i.scrollTop=i.scrollTop+s.offsetHeight)}}):null});Je.displayName=ye;
1var Qe=o.forwardRef((t,n)=>{const{__scopeSelect:e,onAutoScroll:a,...c}=t,p=Y("SelectScrollButton",e),l=o.useRef(null),i=de(e),s=o.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return o.useEffect(()=>()=>s(),[s]),$(()=>{var g;const f=i().find(w=>w.ref.current===document.activeElement);(g=f==null?void 0:f.ref.current)==null||g.scrollIntoView({block:"nearest"})},[i]),r.jsx(j.div,{"aria-hidden":!0,...c,ref:n,style:{flexShrink:0,...c.style},onPointerDown:P(c.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(a,50))}),onPointerMove:P(c.onPointerMove,()=>{var f;(f=p.onItemLeave)==null||f.call(p),l.current===null&&(l.current=window.setInterval(a,50))}),onPointerLeave:P(c.onPointerLeave,()=>{s()})})}),Yt="SelectSeparator",et=o.forwardRef((t,n)=>{const{__scopeSelect:e,...a}=t;return r.jsx(j.div,{"aria-hidden":!0,...a,ref:n})});et.displayName=Yt;var be="SelectArrow",Xt=o.forwardRef((t,n)=>{const{__scopeSelect:e,...a}=t,c=ue(e),p=q(be,e),l=Y(be,e);return p.open&&l.position==="popper"?r.jsx(It,{...c,...a,ref:n}):null});Xt.displayName=be;function tt(t){return t===""||t===void 0}var ot=o.forwardRef((t,n)=>{const{value:e,...a}=t,c=o.useRef(null),p=L(n,c),l=Tt(e);return o.useEffect(()=>{const i=c.current,s=window.HTMLSelectElement.prototype,g=Object.getOwnPropertyDescriptor(s,"value").set;if(l!==e&&g){const w=new Event("change",{bubbles:!0});g.call(i,e),i.dispatchEvent(w)}},[l,e]),r.jsx(_e,{asChild:!0,children:r.jsx("select",{...a,ref:p,defaultValue:e})})});ot.displayName="BubbleSelect";function nt(t){const n=Nt(t),e=o.useRef(""),a=o.useRef(0),c=o.useCallback(l=>{const i=e.current+l;n(i),function s(f){e.current=f,window.clearTimeout(a.current),f!==""&&(a.current=window.setTimeout(()=>s(""),1e3))}(i)},[n]),p=o.useCallback(()=>{e.current="",window.clearTimeout(a.current)},[]);return o.useEffect(()=>()=>window.clearTimeout(a.current),[]),[e,c,p]}function rt(t,n,e){const c=n.length>1&&Array.from(n).every(f=>f===n[0])?n[0]:n,p=e?t.indexOf(e):-1;let l=Zt(t,Math.max(p,0));c.length===1&&(l=l.filter(f=>f!==e));const s=l.find(f=>f.textValue.toLowerCase().startsWith(c.toLowerCase()));return s!==e?s:void 0}function Zt(t,n){return t.map((e,a)=>t[(n+a)%t.length])}var Jt=je,st=Ae,Qt=De,eo=ke,to=Le,at=Ve,oo=Fe,lt=Ke,ct=Ge,no=qe,ro=Xe,it=Ze,dt=Je,ut=et;const fo=Jt,mo=Qt,so=o.forwardRef(({className:t,children:n,...e},a)=>r.jsxs(st,{ref:a,className:G("flex items-center justify-between h-[3.25rem] w-full rounded-xl border border-neutral-300 bg-neutral-50 p-4 text-base transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-zinc-950 placeholder:text-black-600 text-black-900 outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:border-zinc-800 dark:file:text-zinc-50 dark:placeholder:text-zinc-400 dark:focus-visible:ring-zinc-300",t),...e,children:[n,r.jsx(eo,{asChild:!0,children:r.jsx(Ee,{className:"h-4 w-4 opacity-50"})})]}));so.displayName=st.displayName;const pt=o.forwardRef(({className:t,...n},e)=>r.jsx(it,{ref:e,className:G("flex cursor-default items-center justify-center py-1",t),...n,children:r.jsx(_t,{className:"h-4 w-4"})}));pt.displayName=it.displayName;const ft=o.forwardRef(({className:t,...n},e)=>r.jsx(dt,{ref:e,className:G("flex cursor-default items-center justify-center py-1",t),...n,children:r.jsx(Ee,{className:"h-4 w-4"})}));ft.displayName=dt.displayName;const ao=o.forwardRef(({className:t,children:n,position:e="popper",...a},c)=>r.jsx(to,{children:r.jsxs(at,{ref:c,className:G("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-zinc-200 bg-white text-zinc-950 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-zinc-800 dark:bg-zinc-950 dark:text-zinc-50",e==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:e,...a,children:[r.jsx(pt,{}),r.jsx(oo,{className:G("p-1",e==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),r.jsx(ft,{})]})}));ao.displayName=at.displayName;const lo=o.forwardRef(({className:t,...n},e)=>r.jsx(lt,{ref:e,className:G("px-2 py-1.5 text-sm font-semibold",t),...n}));lo.displayName=lt.displayName;const co=o.forwardRef(({className:t,children:n,...e},a)=>r.jsxs(ct,{ref:a,className:G("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-zinc-100 focus:text-zinc-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-zinc-800 dark:focus:text-zinc-50",t),...e,children:[r.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsx(ro,{children:r.jsx(jt,{className:"h-4 w-4"})})}),r.jsx(no,{children:n})]}));co.displayName=ct.displayName;const io=o.forwardRef(({className:t,...n},e)=>r.jsx(ut,{ref:e,className:G("-mx-1 my-1 h-px bg-zinc-100 dark:bg-zinc-800",t),...n}));io.displayName=ut.displayName;export{fo as S,so as a,mo as b,ao as c,co as d};
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.