@reeverdev/ui 0.2.184 → 0.2.185
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
scrollbar-width: none;
|
|
41
41
|
}
|
|
42
42
|
`:""}
|
|
43
|
-
`;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:R}}),jsxRuntime.jsx("div",{ref:c,id:g,onMouseEnter:()=>u(true),onMouseLeave:()=>u(false),style:{...s,...(()=>{if(!r)return {};let C=w0[o],x=t==="vertical"||t==="both",M=t==="horizontal"||t==="both",T=[x&&f.top&&`linear-gradient(to bottom, transparent, black ${C})`,x&&f.bottom&&`linear-gradient(to top, transparent, black ${C})`,M&&f.left&&`linear-gradient(to right, transparent, black ${C})`,M&&f.right&&`linear-gradient(to left, transparent, black ${C})`].filter(Boolean);return T.length===0?{}:{maskImage:T.join(", "),WebkitMaskImage:T.join(", "),maskComposite:"intersect",WebkitMaskComposite:"source-in"}})()},className:m(t==="vertical"&&"h-full w-full overflow-y-auto overflow-x-hidden",t==="horizontal"&&"w-full overflow-x-auto overflow-y-hidden",t==="both"&&"h-full w-full overflow-auto",e),...i,children:a})]})});ke.displayName="ScrollArea";var Ed=classVarianceAuthority.cva("flex w-full cursor-pointer items-center justify-between border border-zinc-300 dark:border-zinc-700 bg-background px-3 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"min-h-9 py-1.5 text-xs",md:"min-h-10 py-2",lg:"min-h-11 py-2.5 text-base"},radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-full"}},defaultVariants:{size:"md",radius:"md"}}),Aa=Y__namespace.forwardRef(({options:e,multiple:t=false,value:n,defaultValue:r,onValueChange:o,placeholder:a="Select...",searchable:s=false,searchPlaceholder:i="Search...",emptyText:l="No results found.",disabled:c=false,clearable:d=false,maxDisplayItems:u=3,maxDropdownHeight:f=240,size:p,radius:g,className:h,...b},v)=>{let[y,R]=Y__namespace.useState(false),[w,C]=Y__namespace.useState(""),[x,M]=Y__namespace.useState(r||""),[T,N]=Y__namespace.useState(r||[]),[E,P]=Y__namespace.useState({top:0,left:0,width:0}),k=Y__namespace.useRef(null),D=Y__namespace.useRef(null),H=Y__namespace.useRef(null),L=Y__namespace.useRef(null),S=n!==void 0?n:x,I=n!==void 0?n:T,A=n!==void 0,O=F=>{d&&S===F?(A||M(""),o?.("")):(A||M(F),o?.(F)),R(false),C("");},V=F=>{let Z=I.includes(F)?I.filter(ue=>ue!==F):[...I,F];A||N(Z),o?.(Z);},z=(F,Z)=>{Z.stopPropagation();let ue=I.filter(G=>G!==F);A||N(ue),o?.(ue);},K=F=>{F.stopPropagation(),t?(A||N([]),o?.([])):(A||M(""),o?.(""));},_=e.find(F=>F.value===S),X=e.filter(F=>I.includes(F.value)),$=X.slice(0,u),B=X.length-u,U=s?e.filter(F=>F.label.toLowerCase().includes(w.toLowerCase())):e;Y__namespace.useEffect(()=>{if(y&&D.current){let F=D.current.getBoundingClientRect();P({top:F.bottom+4,left:F.left,width:F.width}),s&&setTimeout(()=>L.current?.focus(),0);}y||C("");},[y,s]),Y__namespace.useEffect(()=>{let F=Z=>{let ue=Z.target,G=k.current&&!k.current.contains(ue),Ce=H.current&&!H.current.contains(ue);G&&Ce&&(R(false),C(""));};return document.addEventListener("mousedown",F),()=>document.removeEventListener("mousedown",F)},[]),Y__namespace.useEffect(()=>{if(!y)return;let F=Z=>{H.current?.contains(Z.target)||(R(false),C(""));};return window.addEventListener("scroll",F,true),()=>window.removeEventListener("scroll",F,true)},[y]);let j=t?I.length>0:!!S;return jsxRuntime.jsxs("div",{ref:k,className:m("relative",h),...b,children:[jsxRuntime.jsxs("div",{ref:F=>{D.current=F,typeof v=="function"?v(F):v&&(v.current=F);},role:"combobox","aria-expanded":y,"aria-haspopup":"listbox","aria-disabled":c,onClick:()=>!c&&R(!y),className:m(Ed({size:p,radius:g}),t&&"flex-wrap gap-1",c&&"cursor-not-allowed opacity-50"),children:[!t&&jsxRuntime.jsx("span",{className:m(!_&&"text-muted-foreground"),children:_?_.label:a}),t&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:X.length===0?jsxRuntime.jsx("span",{className:"text-muted-foreground",children:a}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[$.map(F=>jsxRuntime.jsxs("span",{className:"inline-flex items-center gap-1 rounded-md bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground",children:[F.label,jsxRuntime.jsx("span",{role:"button",tabIndex:0,onClick:Z=>z(F.value,Z),onKeyDown:Z=>{(Z.key==="Enter"||Z.key===" ")&&z(F.value,Z);},className:"rounded-full hover:bg-secondary-foreground/20 cursor-pointer",children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3"})})]},F.value)),B>0&&jsxRuntime.jsxs("span",{className:"text-xs text-muted-foreground",children:["+",B," more"]})]})}),jsxRuntime.jsxs("div",{className:"ml-auto flex items-center gap-1",children:[d&&j&&jsxRuntime.jsx("span",{role:"button",tabIndex:0,onClick:K,onKeyDown:F=>{(F.key==="Enter"||F.key===" ")&&K(F);},className:"rounded-full p-0.5 hover:bg-muted cursor-pointer",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4 opacity-50"})}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:m("h-4 w-4 opacity-50 transition-transform",y&&"rotate-180")})]})]}),y&&!c&&typeof document<"u"&&Ba__namespace.createPortal(jsxRuntime.jsxs("div",{ref:H,className:"fixed z-[9999] overflow-hidden rounded-md border border-zinc-300 dark:border-zinc-700 bg-background shadow-md",style:{top:E.top,left:E.left,minWidth:E.width},children:[s&&jsxRuntime.jsxs("div",{className:"flex items-center border-b border-zinc-300 dark:border-zinc-700 px-3",children:[jsxRuntime.jsx(lucideReact.Search,{className:"h-4 w-4 opacity-50 mr-2"}),jsxRuntime.jsx("input",{ref:L,type:"text",value:w,onChange:F=>C(F.target.value),placeholder:i,className:"flex h-10 w-full bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground"})]}),jsxRuntime.jsx(ke,{style:{maxHeight:f},onWheel:F=>F.stopPropagation(),children:jsxRuntime.jsx("div",{className:"p-1",children:U.length===0?jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:l}):U.map(F=>{let Z=t?I.includes(F.value):S===F.value;return jsxRuntime.jsxs("div",{role:"option","aria-selected":Z,onClick:()=>{F.disabled||(t?V(F.value):O(F.value));},className:m("relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-zinc-100 dark:hover:bg-zinc-800",F.disabled&&"pointer-events-none opacity-50"),children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:Z&&jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})}),F.label]},F.value)})})})]}),document.body)]})});Aa.displayName="Select";var Ld=Y__namespace.createContext(null),Oo=()=>{let e=Y__namespace.useContext(Ld);if(!e)throw new Error("Dropdown components must be used within a Dropdown");return e},wi=Y__namespace.createContext({radius:"md"}),Ci=Y__namespace.createContext(null),Cn=({children:e,open:t,defaultOpen:n=false,onOpenChange:r})=>{let[o,a]=Y__namespace.useState(n),[s,i]=Y__namespace.useState(-1),l=t!==void 0,c=l?t:o,d=Y__namespace.useRef(null),u=Y__namespace.useRef(null),f=Y__namespace.useId(),p=Y__namespace.useRef(new Map),g=Y__namespace.useCallback(v=>{l||a(v),r?.(v),v||i(-1);},[l,r]),h=Y__namespace.useCallback((v,y)=>{p.current.set(v,y);},[]),b=Y__namespace.useCallback(v=>{p.current.delete(v);},[]);return jsxRuntime.jsx(Ld.Provider,{value:{open:c,onOpenChange:g,triggerRef:d,contentRef:u,contentId:f,activeIndex:s,setActiveIndex:i,items:p,registerItem:h,unregisterItem:b},children:e})};Cn.displayName="Dropdown";var Tn=Y__namespace.forwardRef(({children:e,onClick:t,onKeyDown:n,...r},o)=>{let{open:a,onOpenChange:s,triggerRef:i,contentId:l}=Oo();return jsxRuntime.jsx("div",{ref:u=>{i.current=u,typeof o=="function"?o(u):o&&(o.current=u);},role:"button",tabIndex:0,"aria-expanded":a,"aria-haspopup":"menu","aria-controls":a?l:void 0,onClick:u=>{t?.(u),s(!a);},onKeyDown:u=>{n?.(u),(u.key==="ArrowDown"||u.key==="ArrowUp")&&(u.preventDefault(),s(true)),(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),s(!a));},className:"inline-flex",...r,children:e})});Tn.displayName="DropdownTrigger";var L0={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-2xl"},Mn=Y__namespace.forwardRef(({className:e,side:t="bottom",sideOffset:n=4,align:r="start",alignOffset:o=0,collisionPadding:a=8,onInteractOutside:s,onEscapeKeyDown:i,loop:l=true,radius:c="md",children:d,...u},f)=>{let{open:p,onOpenChange:g,triggerRef:h,contentRef:b,contentId:v,activeIndex:y,setActiveIndex:R,items:w}=Oo(),[C,x]=Y__namespace.useState({top:0,left:0}),[M,T]=Y__namespace.useState(t),[N,E]=Y__namespace.useState(false),P=Y__namespace.useRef(0);if(Y__namespace.useEffect(()=>{E(true);},[]),Y__namespace.useEffect(()=>{p&&(P.current=w.current.size);},[p,w]),Y__namespace.useEffect(()=>{if(!p||!h.current||!b.current)return;let D=()=>{if(!h.current||!b.current)return;let H=h.current.getBoundingClientRect(),L=b.current.getBoundingClientRect(),S=window.innerWidth,I=window.innerHeight,A=0,O=0,V=t;switch(t){case "top":A=H.top-L.height-n,A<a&&(A=H.bottom+n,V="bottom");break;case "bottom":A=H.bottom+n,A+L.height>I-a&&(A=H.top-L.height-n,V="top");break;case "left":O=H.left-L.width-n,O<a&&(O=H.right+n,V="right");break;case "right":O=H.right+n,O+L.width>S-a&&(O=H.left-L.width-n,V="left");break}if(V==="top"||V==="bottom"){switch(r){case "start":O=H.left+o;break;case "center":O=H.left+H.width/2-L.width/2;break;case "end":O=H.right-L.width-o;break}O<a?O=a:O+L.width>S-a&&(O=S-L.width-a);}else {switch(r){case "start":A=H.top+o;break;case "center":A=H.top+H.height/2-L.height/2;break;case "end":A=H.bottom-L.height-o;break}A<a?A=a:A+L.height>I-a&&(A=I-L.height-a);}x({top:A,left:O}),T(V);};return D(),window.addEventListener("resize",D),window.addEventListener("scroll",D,true),()=>{window.removeEventListener("resize",D),window.removeEventListener("scroll",D,true);}},[p,t,n,r,o,a,h]),Y__namespace.useEffect(()=>{if(!p)return;let D=H=>{let L=H.target;b.current&&!b.current.contains(L)&&h.current&&!h.current.contains(L)&&(s?.(),g(false));};return document.addEventListener("mousedown",D),()=>document.removeEventListener("mousedown",D)},[p,g,s,h,b]),Y__namespace.useEffect(()=>{if(!p)return;let D=H=>{let L=Array.from(w.current.entries()).sort(([I],[A])=>I-A).map(([,I])=>I),S=L.length;if(S!==0)switch(H.key){case "Escape":H.preventDefault(),i?.(),g(false),h.current?.focus();break;case "ArrowDown":H.preventDefault(),y===-1||y>=S-1?R(l?0:Math.min(y+1,S-1)):R(y+1);break;case "ArrowUp":H.preventDefault(),y<=0?R(l?S-1:0):R(y-1);break;case "Home":H.preventDefault(),R(0);break;case "End":H.preventDefault(),R(S-1);break;case "Enter":case " ":H.preventDefault(),y>=0&&y<S&&L[y]?.click();break;case "Tab":g(false);break}};return document.addEventListener("keydown",D),()=>document.removeEventListener("keydown",D)},[p,g,i,y,R,w,l,h]),Y__namespace.useEffect(()=>{p&&y>=0&&Array.from(w.current.entries()).sort(([H],[L])=>H-L).map(([,H])=>H)[y]?.focus();},[p,y,w]),!N||!p)return null;let k={top:"animate-in fade-in-0 zoom-in-95 slide-in-from-bottom-2",bottom:"animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",left:"animate-in fade-in-0 zoom-in-95 slide-in-from-right-2",right:"animate-in fade-in-0 zoom-in-95 slide-in-from-left-2"}[M];return Ba__namespace.createPortal(jsxRuntime.jsx("div",{ref:D=>{b.current=D,typeof f=="function"?f(D):f&&(f.current=D);},id:v,role:"menu","aria-orientation":"vertical","data-state":p?"open":"closed","data-side":M,"data-dropdown-content":"",className:m("fixed z-50 min-w-[8rem] overflow-hidden border bg-popover p-1 text-popover-foreground shadow-md outline-none",L0[c],k,e),style:{top:C.top,left:C.left},...u,children:jsxRuntime.jsx(wi.Provider,{value:{radius:c},children:d})}),document.body)});Mn.displayName="DropdownContent";var Sd=0,Dd={none:"rounded-none",sm:"rounded-sm",md:"rounded-sm",lg:"rounded-md",full:"rounded-lg"},$t=Y__namespace.forwardRef(({className:e,inset:t,disabled:n,onSelect:r,onClick:o,onMouseEnter:a,startContent:s,endContent:i,children:l,...c},d)=>{let{onOpenChange:u,activeIndex:f,setActiveIndex:p,registerItem:g,unregisterItem:h}=Oo(),{radius:b}=Y__namespace.useContext(wi),[v]=Y__namespace.useState(()=>Sd++),y=Y__namespace.useRef(null);Y__namespace.useEffect(()=>(!n&&y.current&&g(v,y.current),()=>{h(v);}),[n,v,g,h]);let R=x=>{if(n){x.preventDefault();return}o?.(x),r?.(),u(false);},w=x=>{a?.(x),n||p(v);};return jsxRuntime.jsxs("div",{ref:x=>{y.current=x,typeof d=="function"?d(x):d&&(d.current=x);},role:"menuitem",tabIndex:n?-1:0,"aria-disabled":n,"data-disabled":n?"":void 0,"data-highlighted":f===v?"":void 0,className:m("relative flex cursor-default select-none items-center gap-2 px-2 py-1.5 text-sm outline-none transition-colors","focus:bg-accent focus:text-accent-foreground","data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",Dd[b],t&&"pl-8",!n&&"cursor-pointer",e),onClick:R,onMouseEnter:w,...c,children:[s,l&&jsxRuntime.jsx("span",{className:"flex-1",children:l}),i]})});$t.displayName="DropdownItem";var Ti=Y__namespace.forwardRef(({className:e,inset:t,...n},r)=>jsxRuntime.jsx("div",{ref:r,className:m("px-2 py-1.5 text-xs font-medium text-muted-foreground",t&&"pl-8",e),...n}));Ti.displayName="DropdownSection";var Hd=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,role:"separator",className:m("-mx-1 my-1 h-px bg-muted",e),...t}));Hd.displayName="DropdownSeparator";var Id=({className:e,...t})=>jsxRuntime.jsx("span",{className:m("ml-auto text-xs tracking-widest opacity-60",e),...t});Id.displayName="DropdownShortcut";var Vd=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,role:"group",className:e,...t}));Vd.displayName="DropdownGroup";var Ad=({children:e,open:t,defaultOpen:n=false,onOpenChange:r})=>{let[o,a]=Y__namespace.useState(n),{contentRef:s}=Oo(),i=t!==void 0,l=i?t:o,c=Y__namespace.useRef(null),d=Y__namespace.useCallback(u=>{i||a(u),r?.(u);},[i,r]);return jsxRuntime.jsx(Ci.Provider,{value:{open:l,onOpenChange:d,triggerRef:c,parentMenuRef:s},children:e})};Ad.displayName="DropdownSub";var zd=Y__namespace.forwardRef(({className:e,inset:t,disabled:n,children:r,onMouseEnter:o,onMouseLeave:a,onKeyDown:s,...i},l)=>{let c=Y__namespace.useContext(Ci),{setActiveIndex:d,registerItem:u,unregisterItem:f}=Oo(),{radius:p}=Y__namespace.useContext(wi),[g]=Y__namespace.useState(()=>Sd++),h=Y__namespace.useRef(null);if(!c)throw new Error("DropdownSubTrigger must be used within DropdownSub");let{open:b,onOpenChange:v,triggerRef:y}=c;Y__namespace.useEffect(()=>(!n&&h.current&&u(g,h.current),()=>{f(g);}),[n,g,u,f]);let R=x=>{o?.(x),n||(d(g),v(true));},w=x=>{a?.(x);},C=x=>{s?.(x),(x.key==="ArrowRight"||x.key==="Enter"||x.key===" ")&&(x.preventDefault(),v(true));};return jsxRuntime.jsxs("div",{ref:x=>{h.current=x,y.current=x,typeof l=="function"?l(x):l&&(l.current=x);},role:"menuitem","aria-haspopup":"menu","aria-expanded":b,tabIndex:n?-1:0,"aria-disabled":n,"data-state":b?"open":"closed","data-disabled":n?"":void 0,className:m("flex cursor-default select-none items-center gap-2 px-2 py-1.5 text-sm outline-none transition-colors","focus:bg-accent focus:text-accent-foreground","data-[state=open]:bg-accent","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",Dd[p],t&&"pl-8",!n&&"cursor-pointer",e),onMouseEnter:R,onMouseLeave:w,onKeyDown:C,...i,children:[r,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto h-4 w-4"})]})});zd.displayName="DropdownSubTrigger";var Od=Y__namespace.forwardRef(({className:e,sideOffset:t=2,alignOffset:n=-4,collisionPadding:r=8,onMouseEnter:o,onMouseLeave:a,...s},i)=>{let l=Y__namespace.useContext(Ci);if(!l)throw new Error("DropdownSubContent must be used within DropdownSub");let{open:c,onOpenChange:d,triggerRef:u,parentMenuRef:f}=l,[p,g]=Y__namespace.useState({top:0,left:0}),[h,b]=Y__namespace.useState(false),v=Y__namespace.useRef(null),y=Y__namespace.useRef(null);Y__namespace.useEffect(()=>{b(true);},[]),Y__namespace.useEffect(()=>{if(!c||!u.current||!v.current)return;(()=>{if(!u.current||!v.current)return;let x=u.current.getBoundingClientRect(),M=v.current.getBoundingClientRect(),T=window.innerWidth,N=window.innerHeight,E=x.top+n,P=x.right+t;P+M.width>T-r&&(P=x.left-M.width-t),E+M.height>N-r&&(E=N-M.height-r),E<r&&(E=r),g({top:E,left:P});})();},[c,t,n,r,u]);let R=C=>{o?.(C),y.current&&(clearTimeout(y.current),y.current=null),d(true);},w=C=>{a?.(C);let x=C.relatedTarget;u.current?.contains(x)||f?.current?.contains(x)||(y.current=setTimeout(()=>{d(false);},100));};return Y__namespace.useEffect(()=>()=>{y.current&&clearTimeout(y.current);},[]),!h||!c?null:Ba__namespace.createPortal(jsxRuntime.jsx("div",{ref:C=>{v.current=C,typeof i=="function"?i(C):i&&(i.current=C);},role:"menu","data-state":c?"open":"closed",className:m("fixed z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg","animate-in fade-in-0 zoom-in-95 slide-in-from-left-2",e),style:{top:p.top,left:p.left},onMouseEnter:R,onMouseLeave:w,...s}),document.body)});Od.displayName="DropdownSubContent";var S0=Ti;var Kd=Y__namespace.createContext(null),Mi=()=>{let e=Y__namespace.useContext(Kd);if(!e)throw new Error("Popover components must be used within a Popover");return e},ot=({children:e,open:t,defaultOpen:n=false,onOpenChange:r})=>{let[o,a]=Y__namespace.useState(n),s=t!==void 0,i=s?t:o,l=Y__namespace.useRef(null),c=Y__namespace.useId(),d=Y__namespace.useCallback(u=>{s||a(u),r?.(u);},[s,r]);return jsxRuntime.jsx(Kd.Provider,{value:{open:i,onOpenChange:d,triggerRef:l,contentId:c},children:e})};ot.displayName="Popover";var qn=Y__namespace.forwardRef(({children:e,onClick:t,asChild:n,...r},o)=>{let{open:a,onOpenChange:s,triggerRef:i,contentId:l}=Mi(),c=f=>{t?.(f),s(!a);},d=f=>{i.current=f,typeof o=="function"?o(f):o&&(o.current=f);},u={"aria-expanded":a,"aria-haspopup":"dialog","aria-controls":a?l:void 0,onClick:c,...r};return n&&Y__namespace.isValidElement(e)?Y__namespace.cloneElement(e,{...u,ref:d,onClick:f=>{e.props.onClick?.(f),c(f);}}):jsxRuntime.jsx("button",{ref:d,type:"button",...u,children:e})});qn.displayName="PopoverTrigger";var an=Y__namespace.forwardRef(({children:e,...t},n)=>{let{triggerRef:r}=Mi();return jsxRuntime.jsx("div",{ref:o=>{r.current=o,typeof n=="function"?n(o):n&&(n.current=o);},...t,children:e})});an.displayName="PopoverAnchor";var at=Y__namespace.forwardRef(({className:e,style:t,side:n="bottom",sideOffset:r=4,align:o="center",alignOffset:a=0,onInteractOutside:s,onEscapeKeyDown:i,onOpenAutoFocus:l,onCloseAutoFocus:c,children:d,...u},f)=>{let{open:p,onOpenChange:g,triggerRef:h,contentId:b}=Mi(),[v,y]=Y__namespace.useState({top:0,left:0}),[R,w]=Y__namespace.useState(false),[C,x]=Y__namespace.useState(null);if(Y__namespace.useEffect(()=>{w(true);},[]),Y__namespace.useEffect(()=>{if(!p||!h.current||!C)return;let T=()=>{if(!h.current||!C)return;let N=h.current.getBoundingClientRect(),E=C.getBoundingClientRect(),P=0,k=0;switch(n){case "top":P=N.top-E.height-r;break;case "bottom":P=N.bottom+r;break;case "left":k=N.left-E.width-r;break;case "right":k=N.right+r;break}if(n==="top"||n==="bottom")switch(o){case "start":k=N.left+a;break;case "center":k=N.left+N.width/2-E.width/2;break;case "end":k=N.right-E.width-a;break}else switch(o){case "start":P=N.top+a;break;case "center":P=N.top+N.height/2-E.height/2;break;case "end":P=N.bottom-E.height-a;break}y({top:P,left:k});};return T(),window.addEventListener("resize",T),window.addEventListener("scroll",T,true),()=>{window.removeEventListener("resize",T),window.removeEventListener("scroll",T,true);}},[p,n,r,o,a,h,C]),Y__namespace.useEffect(()=>{if(!p)return;let T=N=>{let E=N.target;C&&C.contains(E)||h.current&&h.current.contains(E)||E.closest?.("[data-dropdown-content], [data-popover-content]")||(s?.(),g(false));};return document.addEventListener("mouseup",T),()=>document.removeEventListener("mouseup",T)},[p,g,s,h,C]),Y__namespace.useEffect(()=>{if(!p)return;let T=N=>{N.key==="Escape"&&(i?.(),g(false));};return document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)},[p,g,i]),!R||!p)return null;let M={top:"animate-in fade-in-0 zoom-in-95 slide-in-from-bottom-2",bottom:"animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",left:"animate-in fade-in-0 zoom-in-95 slide-in-from-right-2",right:"animate-in fade-in-0 zoom-in-95 slide-in-from-left-2"}[n];return Ba__namespace.createPortal(jsxRuntime.jsx("div",{ref:T=>{x(N=>N!==T?T:N),typeof f=="function"?f(T):f&&(f.current=T);},id:b,role:"dialog","data-state":p?"open":"closed","data-side":n,className:m("fixed z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none",M,e),style:{...t,top:v.top,left:v.left},...u,children:d}),document.body)});at.displayName="PopoverContent";var $d=Y__namespace.createContext(null),ki=()=>{let e=Y__namespace.useContext($d);if(!e)throw new Error("Tabs components must be used within a Tabs");return e},Gd=Y__namespace.forwardRef(({className:e,value:t,defaultValue:n="",onValueChange:r,variant:o="solid",radius:a="md",orientation:s="horizontal",children:i,...l},c)=>{let[d,u]=Y__namespace.useState(n),f=t!==void 0,p=f?t:d,g=h=>{f||u(h),r?.(h);};return jsxRuntime.jsx($d.Provider,{value:{value:p,onValueChange:g,variant:o,radius:a,orientation:s},children:jsxRuntime.jsx("div",{ref:c,"data-orientation":s,className:m(s==="vertical"&&"flex gap-4",e),...l,children:i})})});Gd.displayName="Tabs";var Ni={none:{list:"rounded-none",trigger:"rounded-none",indicator:"rounded-none"},sm:{list:"rounded-md",trigger:"rounded-sm",indicator:"rounded-sm"},md:{list:"rounded-lg",trigger:"rounded-md",indicator:"rounded-md"},lg:{list:"rounded-xl",trigger:"rounded-lg",indicator:"rounded-lg"},full:{list:"rounded-full",trigger:"rounded-full",indicator:"rounded-full"}},Ud=Y__namespace.forwardRef(({className:e,children:t,...n},r)=>{let{variant:o,radius:a,orientation:s,value:i}=ki(),l=Y__namespace.useRef(null),[c,d]=Y__namespace.useState({opacity:0});Y__namespace.useEffect(()=>{let g=l.current;if(!g)return;let h=()=>{let v=g.querySelector('[data-state="active"]');if(v){let y=g.getBoundingClientRect(),R=v.getBoundingClientRect(),w=s==="vertical";o==="underline"?d(w?{width:2,height:R.height,transform:`translateY(${R.top-y.top}px)`,opacity:1}:{width:R.width,height:2,transform:`translateX(${R.left-y.left}px)`,opacity:1}):o==="solid"&&d(w?{width:R.width,height:R.height,transform:`translateY(${R.top-y.top}px)`,opacity:1}:{width:R.width,height:R.height,transform:`translateX(${R.left-y.left}px)`,opacity:1});}};h();let b=new ResizeObserver(h);return b.observe(g),()=>{b.disconnect();}},[o,s,i]);let u={solid:"bg-muted p-1",underline:"border-b border-border bg-transparent p-0 !rounded-none",bordered:"bg-transparent p-0 gap-1 !rounded-none"},f=s==="vertical",p=()=>o==="solid"?f?"top-0 left-1 bg-background shadow":"top-1 left-1 bg-background shadow":o==="underline"?f?"top-0 left-0 bg-primary !rounded-full":"bottom-0 left-0 bg-primary !rounded-full":"";return jsxRuntime.jsxs("div",{ref:g=>{l.current=g,typeof r=="function"?r(g):r&&(r.current=g);},role:"tablist","aria-orientation":s,className:m("relative inline-flex h-9 items-center justify-center text-muted-foreground",f&&"flex-col h-auto w-auto",Ni[a].list,u[o],e),...n,children:[(o==="solid"||o==="underline")&&jsxRuntime.jsx("span",{className:m("absolute transition-all duration-200 ease-out",Ni[a].indicator,p()),style:c,"aria-hidden":"true"}),t]})});Ud.displayName="TabsList";var jd=Y__namespace.forwardRef(({className:e,value:t,disabled:n,onClick:r,...o},a)=>{let{value:s,onValueChange:i,variant:l,radius:c}=ki(),d=s===t,u={solid:"data-[state=active]:text-foreground",underline:"!rounded-none border-b-2 border-transparent pb-2 data-[state=active]:text-foreground",bordered:"border border-transparent data-[state=active]:border-current data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm"};return jsxRuntime.jsx("button",{type:"button",role:"tab",ref:a,"aria-selected":d,"data-state":d?"active":"inactive",disabled:n,className:m("relative z-10 inline-flex items-center justify-center whitespace-nowrap px-3 py-1 text-sm font-medium ring-offset-background transition-all cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed",Ni[c].trigger,u[l],e),onClick:f=>{r?.(f),i(t);},...o})});jd.displayName="TabsTrigger";var Wd=Y__namespace.forwardRef(({className:e,value:t,children:n,...r},o)=>{let{value:a}=ki(),s=a===t;return s?jsxRuntime.jsx("div",{ref:o,role:"tabpanel","data-state":s?"active":"inactive",className:m("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...r,children:n}):null});Wd.displayName="TabsContent";var _d=[{label:"At least 8 characters",test:e=>e.length>=8},{label:"Contains uppercase",test:e=>/[A-Z]/.test(e)},{label:"Contains lowercase",test:e=>/[a-z]/.test(e)},{label:"Contains number",test:e=>/[0-9]/.test(e)},{label:"Contains special character",test:e=>/[!@#$%^&*(),.?":{}|<>]/.test(e)}];function H0(e,t=_d){return e?t.filter(r=>r.test(e)).length/t.length:0}function I0(e){return e<.4?"bg-red-500":e<.7?"bg-yellow-500":"bg-green-500"}function V0(e){return e<.4?"Weak":e<.7?"Medium":"Strong"}var Fo=0,Pi=null;function Gt(){Fo===0&&(Pi=document.body.style.overflow,document.body.style.overflow="hidden"),Fo++;}function Ut(){Fo--,Fo<=0&&(Fo=0,document.body.style.overflow=Pi??"",Pi=null);}var Xd=Y__namespace.createContext(null),Oa=()=>{let e=Y__namespace.useContext(Xd);if(!e)throw new Error("Sheet components must be used within a Sheet");return e},qd=({open:e,defaultOpen:t=false,onOpenChange:n,children:r})=>{let[o,a]=Y__namespace.useState(t),s=e!==void 0,i=s?e:o,l=Y__namespace.useCallback(c=>{s||a(c),n?.(c);},[s,n]);return jsxRuntime.jsx(Xd.Provider,{value:{open:i,onOpenChange:l},children:r})};qd.displayName="Sheet";var Zd=Y__namespace.forwardRef(({onClick:e,children:t,...n},r)=>{let{onOpenChange:o}=Oa();return jsxRuntime.jsx("button",{ref:r,type:"button",onClick:s=>{e?.(s),o(true);},...n,children:t})});Zd.displayName="SheetTrigger";var Qd=Y__namespace.forwardRef(({onClick:e,children:t,...n},r)=>{let{onOpenChange:o}=Oa();return jsxRuntime.jsx("button",{ref:r,type:"button",onClick:s=>{e?.(s),o(false);},...n,children:t})});Qd.displayName="SheetClose";var Li=({children:e,container:t})=>{let[n,r]=Y__namespace.useState(false);return Y__namespace.useEffect(()=>{r(true);},[]),n?Ba__namespace.createPortal(e,t||document.body):null};Li.displayName="SheetPortal";var Jd=Y__namespace.forwardRef(({className:e,...t},n)=>{let{open:r,onOpenChange:o}=Oa();return r?jsxRuntime.jsx("div",{ref:n,className:m("fixed inset-0 z-50 bg-black/80",r?"animate-in fade-in-0":"animate-out fade-out-0",e),onClick:()=>o(false),"aria-hidden":"true",...t}):null});Jd.displayName="SheetOverlay";var eu=classVarianceAuthority.cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition-transform duration-300 ease-in-out",{variants:{side:{top:"inset-x-0 top-0 border-b",bottom:"inset-x-0 bottom-0 border-t",left:"inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm"}},defaultVariants:{side:"right"}}),O0=(e,t)=>({top:t?"animate-in slide-in-from-top":"animate-out slide-out-to-top",bottom:t?"animate-in slide-in-from-bottom":"animate-out slide-out-to-bottom",left:t?"animate-in slide-in-from-left":"animate-out slide-out-to-left",right:t?"animate-in slide-in-from-right":"animate-out slide-out-to-right"})[e],tu=Y__namespace.forwardRef(({side:e="right",className:t,children:n,hideCloseButton:r,onEscapeKeyDown:o,onInteractOutside:a,...s},i)=>{let{open:l,onOpenChange:c}=Oa(),[d,u]=Y__namespace.useState(false),[,f]=Y__namespace.useState(false);return Y__namespace.useEffect(()=>{if(l)u(true),f(true),Gt();else {f(true);let p=setTimeout(()=>{u(false),f(false);},300);return ()=>clearTimeout(p)}return ()=>{Ut();}},[l]),Y__namespace.useEffect(()=>{let p=g=>{g.key==="Escape"&&l&&(o?.(),c(false));};return document.addEventListener("keydown",p),()=>document.removeEventListener("keydown",p)},[l,c,o]),!d&&!l?null:jsxRuntime.jsxs(Li,{children:[jsxRuntime.jsx("div",{className:m("fixed inset-0 z-50 bg-black/80 transition-opacity duration-300",l?"opacity-100":"opacity-0"),onClick:()=>{a?.(),c(false);},"aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:i,role:"dialog","aria-modal":"true",className:m(eu({side:e}),O0(e,l),t),...s,children:[!r&&jsxRuntime.jsxs("button",{type:"button",onClick:()=>c(false),className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none cursor-pointer",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]})});tu.displayName="SheetContent";var nu=({className:e,...t})=>jsxRuntime.jsx("div",{className:m("flex flex-col space-y-2 text-center sm:text-left",e),...t});nu.displayName="SheetHeader";var ru=({className:e,...t})=>jsxRuntime.jsx("div",{className:m("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ru.displayName="SheetFooter";var ou=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("h2",{ref:n,className:m("text-lg font-semibold text-foreground",e),...t}));ou.displayName="SheetTitle";var au=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("p",{ref:n,className:m("text-sm text-muted-foreground",e),...t}));au.displayName="SheetDescription";var K0=({theme:e="system",...t})=>jsxRuntime.jsx(sonner.Toaster,{theme:e,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...t});var su=Y__namespace.createContext(null),Fa=()=>{let e=Y__namespace.useContext(su);if(!e)throw new Error("ContextMenu components must be used within a ContextMenu");return e},Si=Y__namespace.createContext(null),iu=({children:e,onOpenChange:t})=>{let[n,r]=Y__namespace.useState(false),[o,a]=Y__namespace.useState({x:0,y:0}),s=Y__namespace.useId(),i=Y__namespace.useCallback(l=>{r(l),t?.(l);},[t]);return jsxRuntime.jsx(su.Provider,{value:{open:n,onOpenChange:i,position:o,setPosition:a,contentId:s},children:e})};iu.displayName="ContextMenu";var lu=Y__namespace.forwardRef(({children:e,onContextMenu:t,...n},r)=>{let{onOpenChange:o,setPosition:a}=Fa(),s=i=>{i.preventDefault(),a({x:i.clientX,y:i.clientY}),o(true);};return jsxRuntime.jsx("div",{ref:r,onContextMenu:i=>{t?.(i),s(i);},...n,children:e})});lu.displayName="ContextMenuTrigger";var cu=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,role:"group",className:e,...t}));cu.displayName="ContextMenuGroup";var du=({children:e,container:t})=>{let[n,r]=Y__namespace.useState(false);return Y__namespace.useEffect(()=>{r(true);},[]),n?Ba__namespace.createPortal(e,t||document.body):null};du.displayName="ContextMenuPortal";var uu=({children:e,open:t,defaultOpen:n=false,onOpenChange:r})=>{let[o,a]=Y__namespace.useState(n),s=t!==void 0,i=s?t:o,l=Y__namespace.useRef(null),c=Y__namespace.useCallback(d=>{s||a(d),r?.(d);},[s,r]);return jsxRuntime.jsx(Si.Provider,{value:{open:i,onOpenChange:c,triggerRef:l},children:e})};uu.displayName="ContextMenuSub";var mu=Y__namespace.forwardRef(({className:e,onInteractOutside:t,onEscapeKeyDown:n,children:r,...o},a)=>{let{open:s,onOpenChange:i,position:l,contentId:c}=Fa(),[d,u]=Y__namespace.useState(false),[f,p]=Y__namespace.useState(l),g=Y__namespace.useRef(null);return Y__namespace.useEffect(()=>{u(true);},[]),Y__namespace.useEffect(()=>{if(!s||!g.current){p(l);return}let b=g.current.getBoundingClientRect(),{x:v,y}=l;v+b.width>window.innerWidth&&(v=window.innerWidth-b.width-8),y+b.height>window.innerHeight&&(y=window.innerHeight-b.height-8),p({x:v,y});},[s,l]),Y__namespace.useEffect(()=>{if(!s)return;let h=b=>{let v=b.target;g.current&&!g.current.contains(v)&&(t?.(),i(false));};return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[s,i,t]),Y__namespace.useEffect(()=>{if(!s)return;let h=b=>{b.key==="Escape"&&(n?.(),i(false));};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[s,i,n]),!d||!s?null:Ba__namespace.createPortal(jsxRuntime.jsx("div",{ref:h=>{g.current=h,typeof a=="function"?a(h):a&&(a.current=h);},id:c,role:"menu","aria-orientation":"vertical","data-state":s?"open":"closed",className:m("fixed z-50 max-h-[calc(100vh-2rem)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border border-zinc-200 dark:border-zinc-800 bg-white dark:bg-zinc-950 p-1 text-zinc-950 dark:text-zinc-50 shadow-md","animate-in fade-in-0 zoom-in-95",e),style:{top:f.y,left:f.x},...o,children:r}),document.body)});mu.displayName="ContextMenuContent";var pu=Y__namespace.forwardRef(({className:e,inset:t,children:n,onMouseEnter:r,onMouseLeave:o,...a},s)=>{let i=Y__namespace.useContext(Si);if(!i)throw new Error("ContextMenuSubTrigger must be used within ContextMenuSub");let{open:l,onOpenChange:c,triggerRef:d}=i,u=p=>{r?.(p),c(true);},f=p=>{o?.(p),c(false);};return jsxRuntime.jsxs("div",{ref:p=>{d.current=p,typeof s=="function"?s(p):s&&(s.current=p);},role:"menuitem","aria-haspopup":"menu","aria-expanded":l,"data-state":l?"open":"closed",className:m("flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none hover:bg-zinc-100 dark:hover:bg-zinc-800 focus:bg-zinc-100 dark:focus:bg-zinc-800 data-[state=open]:bg-zinc-100 dark:data-[state=open]:bg-zinc-800",t&&"pl-8",e),onMouseEnter:u,onMouseLeave:f,...a,children:[n,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto h-4 w-4"})]})});pu.displayName="ContextMenuSubTrigger";var fu=Y__namespace.forwardRef(({className:e,sideOffset:t=2,onMouseEnter:n,onMouseLeave:r,...o},a)=>{let s=Y__namespace.useContext(Si);if(!s)throw new Error("ContextMenuSubContent must be used within ContextMenuSub");let{open:i,onOpenChange:l,triggerRef:c}=s,[d,u]=Y__namespace.useState({top:0,left:0}),[f,p]=Y__namespace.useState(false),g=Y__namespace.useRef(null);Y__namespace.useEffect(()=>{p(true);},[]),Y__namespace.useEffect(()=>{if(!i||!c.current||!g.current)return;(()=>{if(!c.current||!g.current)return;let y=c.current.getBoundingClientRect(),R=g.current.getBoundingClientRect(),w=y.top,C=y.right+t;C+R.width>window.innerWidth&&(C=y.left-R.width-t),u({top:w,left:C});})();},[i,t,c]);let h=v=>{n?.(v),l(true);},b=v=>{r?.(v),l(false);};return !f||!i?null:Ba__namespace.createPortal(jsxRuntime.jsx("div",{ref:v=>{g.current=v,typeof a=="function"?a(v):a&&(a.current=v);},role:"menu","data-state":i?"open":"closed",className:m("fixed z-50 min-w-[8rem] overflow-hidden rounded-md border border-zinc-200 dark:border-zinc-800 bg-white dark:bg-zinc-950 p-1 text-zinc-950 dark:text-zinc-50 shadow-lg","animate-in fade-in-0 zoom-in-95 slide-in-from-left-2",e),style:{top:d.top,left:d.left},onMouseEnter:h,onMouseLeave:b,...o}),document.body)});fu.displayName="ContextMenuSubContent";var gu=Y__namespace.forwardRef(({className:e,inset:t,disabled:n,onSelect:r,onClick:o,...a},s)=>{let{onOpenChange:i}=Fa(),l=c=>{if(n){c.preventDefault();return}o?.(c),r?.(),i(false);};return jsxRuntime.jsx("div",{ref:s,role:"menuitem",tabIndex:n?-1:0,"aria-disabled":n,"data-disabled":n?"":void 0,className:m("relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none hover:bg-zinc-100 dark:hover:bg-zinc-800 focus:bg-zinc-100 dark:focus:bg-zinc-800 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[disabled]:cursor-not-allowed",t&&"pl-8",e),onClick:l,...a})});gu.displayName="ContextMenuItem";var bu=Y__namespace.forwardRef(({className:e,children:t,checked:n=false,onCheckedChange:r,disabled:o,onClick:a,...s},i)=>{let{onOpenChange:l}=Fa(),c=d=>{if(o){d.preventDefault();return}a?.(d),r?.(!n),l(false);};return jsxRuntime.jsxs("div",{ref:i,role:"menuitemcheckbox","aria-checked":n,tabIndex:o?-1:0,"aria-disabled":o,"data-disabled":o?"":void 0,"data-state":n?"checked":"unchecked",className:m("relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-zinc-100 dark:hover:bg-zinc-800 focus:bg-zinc-100 dark:focus:bg-zinc-800 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[disabled]:cursor-not-allowed",e),onClick:c,...s,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:n&&jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})}),t]})});bu.displayName="ContextMenuCheckboxItem";var vu=Y__namespace.forwardRef(({className:e,inset:t,...n},r)=>jsxRuntime.jsx("div",{ref:r,className:m("px-2 py-1.5 text-xs font-medium text-muted-foreground",t&&"pl-8",e),...n}));vu.displayName="ContextMenuSection";var hu=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,role:"separator",className:m("-mx-1 my-1 h-px bg-border",e),...t}));hu.displayName="ContextMenuSeparator";var xu=({className:e,...t})=>jsxRuntime.jsx("span",{className:m("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});xu.displayName="ContextMenuShortcut";var Ru=Y__namespace.createContext(null),W0=()=>{let e=Y__namespace.useContext(Ru);if(!e)throw new Error("RadioGroupItem must be used within a RadioGroup");return e},wu=Y__namespace.forwardRef(({className:e,value:t,defaultValue:n="",onValueChange:r,name:o,disabled:a,required:s,orientation:i="vertical",children:l,...c},d)=>{let[u,f]=Y__namespace.useState(n),p=t!==void 0,g=p?t:u,h=Y__namespace.useId(),b=v=>{p||f(v),r?.(v);};return jsxRuntime.jsx("div",{ref:d,role:"radiogroup","aria-required":s,"aria-orientation":i,className:m(i==="vertical"?"grid gap-2":"flex gap-4",e),...c,children:jsxRuntime.jsx(Ru.Provider,{value:{name:o||h,value:g,onValueChange:b,disabled:a,required:s},children:l})})});wu.displayName="RadioGroup";var Cu=Y__namespace.forwardRef(({className:e,value:t,disabled:n,...r},o)=>{let a=W0(),s=a.value===t,i=n||a.disabled;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{type:"button",role:"radio","aria-checked":s,disabled:i,ref:o,className:m("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer",e),onClick:()=>a.onValueChange(t),...r,children:s&&jsxRuntime.jsx("span",{className:"flex items-center justify-center",children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-2.5 w-2.5 fill-current text-current"})})}),jsxRuntime.jsx("input",{type:"radio","aria-hidden":true,tabIndex:-1,name:a.name,value:t,checked:s,required:a.required,disabled:i,onChange:()=>{},style:{position:"absolute",pointerEvents:"none",opacity:0,margin:0,width:0,height:0}})]})});Cu.displayName="RadioGroupItem";var $a=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 gap-2",{variants:{variant:{solid:"bg-transparent hover:bg-muted data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",bordered:"border border-current bg-transparent hover:bg-accent data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",ghost:"bg-transparent hover:bg-accent data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",soft:"bg-transparent hover:bg-primary/10 data-[state=on]:bg-primary/15 data-[state=on]:text-primary",surface:"bg-muted/50 hover:bg-muted data-[state=on]:bg-muted data-[state=on]:text-foreground"},size:{sm:"h-9 px-2.5 min-w-9",md:"h-10 px-3 min-w-10",lg:"h-11 px-5 min-w-11"}},defaultVariants:{variant:"solid",size:"md"}}),Tu=Y__namespace.forwardRef(({className:e,variant:t,size:n,pressed:r,defaultPressed:o=false,onPressedChange:a,disabled:s,onKeyDown:i,...l},c)=>{let[d,u]=Y__namespace.useState(o),f=r!==void 0,p=f?r:d,g=()=>{if(s)return;let b=!p;f||u(b),a?.(b);},h=b=>{b.key==="Enter"&&b.preventDefault(),i?.(b);};return jsxRuntime.jsx("button",{type:"button","aria-pressed":p,"data-state":p?"on":"off",disabled:s,ref:c,className:m($a({variant:t,size:n,className:e})),onClick:g,onKeyDown:h,...l})});Tu.displayName="Toggle";var Mu=Y__namespace.createContext(null),Z0=()=>{let e=Y__namespace.useContext(Mu);if(!e)throw new Error("ToggleGroupItem must be used within a ToggleGroup");return e},Nu=Y__namespace.forwardRef(({className:e,variant:t,size:n,type:r,value:o,defaultValue:a,onValueChange:s,disabled:i,children:l,...c},d)=>{let[u,f]=Y__namespace.useState(()=>r==="single"?a?[a]:[]:a||[]),p=o!==void 0,g=p?r==="single"?o?[o]:[]:o:u,h=b=>{if(r==="single"){let v=g.includes(b)?[]:[b];p||f(v),s?.(v[0]||"");}else {let v=g.includes(b)?g.filter(y=>y!==b):[...g,b];p||f(v),s?.(v);}};return jsxRuntime.jsx("div",{ref:d,role:"group",className:m("flex items-center justify-center gap-1",e),...c,children:jsxRuntime.jsx(Mu.Provider,{value:{type:r,variant:t,size:n,value:g,onValueChange:h,disabled:i},children:l})})});Nu.displayName="ToggleGroup";var ku=Y__namespace.forwardRef(({className:e,children:t,variant:n,size:r,value:o,disabled:a,...s},i)=>{let l=Z0(),c=l.value.includes(o),d=a||l.disabled;return jsxRuntime.jsx("button",{type:"button",role:"radio","aria-checked":c,"aria-pressed":c,"data-state":c?"on":"off",disabled:d,ref:i,className:m($a({variant:l.variant||n,size:l.size||r}),e),onClick:()=>l.onValueChange(o),...s,children:t})});ku.displayName="ToggleGroupItem";var Ua=Y__namespace.forwardRef(({className:e,value:t,defaultValue:n=[0],onValueChange:r,onValueCommit:o,min:a=0,max:s=100,step:i=1,disabled:l=false,orientation:c="horizontal",name:d,...u},f)=>{let[p,g]=Y__namespace.useState(n),h=t!==void 0,b=h?t:p,v=Y__namespace.useRef(null),[y,R]=Y__namespace.useState(false),[w,C]=Y__namespace.useState(null),x=(H,L)=>{if(!v.current)return b[0];let S=v.current.getBoundingClientRect(),I;c==="horizontal"?I=(H-S.left)/S.width:I=1-(L-S.top)/S.height,I=Math.max(0,Math.min(1,I));let A=a+I*(s-a),O=Math.round(A/i)*i;return Math.max(a,Math.min(s,O))},M=(H,L)=>{let S=[...b];S[L]=H,L>0&&H<b[L-1]&&(S[L]=b[L-1]),L<b.length-1&&H>b[L+1]&&(S[L]=b[L+1]),h||g(S),r?.(S);},T=(H,L)=>{l||(H.preventDefault(),R(true),C(L),H.target.setPointerCapture(H.pointerId));},N=H=>{if(!y||w===null||l)return;let L=x(H.clientX,H.clientY);M(L,w);},E=()=>{y&&(R(false),C(null),o?.(b));},P=H=>{if(l)return;let L=x(H.clientX,H.clientY),S=0,I=Math.abs(b[0]-L);for(let A=1;A<b.length;A++){let O=Math.abs(b[A]-L);O<I&&(I=O,S=A);}M(L,S),o?.([...b.slice(0,S),L,...b.slice(S+1)]);},k=(H,L)=>{if(l)return;let S=b[L];switch(H.key){case "ArrowRight":case "ArrowUp":H.preventDefault(),S=Math.min(s,b[L]+i);break;case "ArrowLeft":case "ArrowDown":H.preventDefault(),S=Math.max(a,b[L]-i);break;case "Home":H.preventDefault(),S=a;break;case "End":H.preventDefault(),S=s;break;default:return}M(S,L),o?.([...b.slice(0,L),S,...b.slice(L+1)]);},D=H=>(H-a)/(s-a)*100;return jsxRuntime.jsxs("div",{ref:f,className:m("relative flex touch-none select-none items-center",c==="vertical"&&"flex-col h-full w-5",l&&"opacity-50 pointer-events-none",e),...u,children:[jsxRuntime.jsx("div",{ref:v,className:m("relative grow overflow-hidden rounded-full bg-secondary",c==="horizontal"?"h-2 w-full":"h-full w-2"),onClick:P,children:jsxRuntime.jsx("div",{className:"absolute bg-primary",style:c==="horizontal"?{left:b.length>1?`${D(b[0])}%`:0,right:`${100-D(b[b.length-1])}%`,top:0,bottom:0}:{bottom:b.length>1?`${D(b[0])}%`:0,top:`${100-D(b[b.length-1])}%`,left:0,right:0}})}),b.map((H,L)=>jsxRuntime.jsx("div",{role:"slider",tabIndex:l?-1:0,"aria-valuemin":a,"aria-valuemax":s,"aria-valuenow":H,"aria-orientation":c,"aria-disabled":l,className:m("absolute block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 cursor-grab",y&&w===L&&"cursor-grabbing"),style:c==="horizontal"?{left:`calc(${D(H)}% - 10px)`,top:"50%",transform:"translateY(-50%)"}:{bottom:`calc(${D(H)}% - 10px)`,left:"50%",transform:"translateX(-50%)"},onPointerDown:S=>T(S,L),onPointerMove:N,onPointerUp:E,onPointerCancel:E,onKeyDown:S=>k(S,L)},L)),d&&b.map((H,L)=>jsxRuntime.jsx("input",{type:"hidden",name:b.length>1?`${d}[${L}]`:d,value:H},L))]})});Ua.displayName="Slider";var Pu=Y__namespace.createContext(null),Eu=()=>{let e=Y__namespace.useContext(Pu);if(!e)throw new Error("AccordionItem must be used within an Accordion");return e},Hi=Y__namespace.createContext(null),Lu=()=>{let e=Y__namespace.useContext(Hi);if(!e)throw new Error("AccordionTrigger/AccordionContent must be used within an AccordionItem");return e},Su=Y__namespace.forwardRef(({className:e,type:t="multiple",value:n,defaultValue:r,onValueChange:o,collapsible:a=true,disabled:s,children:i,...l},c)=>{let[d,u]=Y__namespace.useState(()=>t==="single"?r?[r]:[]:r||[]),f=Y__namespace.useRef(new Map),p=Y__namespace.useRef([]),g=n!==void 0,h=g?t==="single"?n?[n]:[]:n:d,b=w=>{if(t==="single"){let x=h.includes(w)&&a?[]:[w];g||u(x),o?.(x[0]||"");}else {let C=h.includes(w)?h.filter(x=>x!==w):[...h,w];g||u(C),o?.(C);}},v=Y__namespace.useCallback((w,C)=>{f.current.set(w,C),p.current.includes(w)||p.current.push(w);},[]),y=Y__namespace.useCallback(w=>{f.current.delete(w),p.current=p.current.filter(C=>C!==w);},[]),R=Y__namespace.useCallback(w=>{let C=p.current;if(C.length===0)return;let x=document.activeElement,M;f.current.forEach((k,D)=>{k===x&&(M=D);});let T=M?C.indexOf(M):-1,N;switch(w){case "first":N=0;break;case "last":N=C.length-1;break;case "next":N=T===-1?0:(T+1)%C.length;break;case "prev":N=T===-1?C.length-1:(T-1+C.length)%C.length;break}let E=C[N];f.current.get(E)?.focus();},[]);return jsxRuntime.jsx(Pu.Provider,{value:{type:t,value:h,onValueChange:b,collapsible:a,disabled:s,registerTrigger:v,unregisterTrigger:y,focusTrigger:R},children:jsxRuntime.jsx("div",{ref:c,"data-orientation":"vertical",className:m("w-full",e),...l,children:i})})});Su.displayName="Accordion";var Du=Y__namespace.forwardRef(({className:e,value:t,disabled:n,title:r,subtitle:o,startContent:a,children:s,...i},l)=>{let c=Eu(),d=c.value.includes(t),u=n||c.disabled||false,f=Y__namespace.useId(),p=Y__namespace.useId();return r!==void 0?jsxRuntime.jsx(Hi.Provider,{value:{value:t,isOpen:d,isDisabled:u,contentId:f,triggerId:p},children:jsxRuntime.jsxs("div",{ref:l,"data-state":d?"open":"closed","data-disabled":u?"":void 0,className:m("border-b",u&&"opacity-50",e),...i,children:[jsxRuntime.jsx(Hu,{children:jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[a,jsxRuntime.jsxs("div",{className:"flex flex-col items-start",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium",children:r}),o&&jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:o})]})]})}),jsxRuntime.jsx(Iu,{children:s})]})}):jsxRuntime.jsx(Hi.Provider,{value:{value:t,isOpen:d,isDisabled:u,contentId:f,triggerId:p},children:jsxRuntime.jsx("div",{ref:l,"data-state":d?"open":"closed","data-disabled":u?"":void 0,className:m("border-b",u&&"opacity-50",e),...i,children:s})})});Du.displayName="AccordionItem";var Hu=Y__namespace.forwardRef(({className:e,children:t,onClick:n,onKeyDown:r,...o},a)=>{let s=Eu(),{value:i,isOpen:l,isDisabled:c,contentId:d,triggerId:u}=Lu(),f=Y__namespace.useRef(null);Y__namespace.useEffect(()=>{let g=f.current;return g&&!c&&s.registerTrigger(i,g),()=>{s.unregisterTrigger(i);}},[i,c,s]);let p=g=>{switch(r?.(g),g.key){case "ArrowDown":g.preventDefault(),s.focusTrigger("next");break;case "ArrowUp":g.preventDefault(),s.focusTrigger("prev");break;case "Home":g.preventDefault(),s.focusTrigger("first");break;case "End":g.preventDefault(),s.focusTrigger("last");break}};return jsxRuntime.jsx("h3",{className:"flex",children:jsxRuntime.jsxs("button",{type:"button",ref:g=>{f.current=g,typeof a=="function"?a(g):a&&(a.current=g);},id:u,"aria-controls":d,"aria-expanded":l,disabled:c,"data-state":l?"open":"closed",className:m("flex flex-1 items-center justify-between py-4 font-medium transition-all text-left cursor-pointer disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",e),onClick:g=>{n?.(g),s.onValueChange(i);},onKeyDown:p,...o,children:[t,jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})})});Hu.displayName="AccordionTrigger";var Iu=Y__namespace.forwardRef(({className:e,children:t,style:n,...r},o)=>{let{isOpen:a,contentId:s,triggerId:i,isDisabled:l}=Lu();return jsxRuntime.jsx("div",{ref:o,id:s,role:"region","aria-labelledby":i,"data-state":a?"open":"closed","data-disabled":l?"":void 0,className:m("grid transition-[grid-template-rows] duration-200 ease-out",a?"grid-rows-[1fr]":"grid-rows-[0fr]",e),style:n,...r,children:jsxRuntime.jsx("div",{className:"overflow-hidden",children:jsxRuntime.jsx("div",{className:"pb-4 pt-0 text-sm",children:t})})})});Iu.displayName="AccordionContent";var Au=Y__namespace.createContext(null),zu=()=>{let e=Y__namespace.useContext(Au);if(!e)throw new Error("Collapsible components must be used within a Collapsible");return e},Ou=Y__namespace.forwardRef(({className:e,open:t,defaultOpen:n=false,onOpenChange:r,disabled:o,title:a,children:s,...i},l)=>{let[c,d]=Y__namespace.useState(n),u=t!==void 0,f=u?t:c,p=Y__namespace.useId(),g=Y__namespace.useId(),h=b=>{o||(u||d(b),r?.(b));};return jsxRuntime.jsx(Au.Provider,{value:{open:f,onOpenChange:h,disabled:o,contentId:p,triggerId:g},children:jsxRuntime.jsxs("div",{ref:l,"data-state":f?"open":"closed","data-disabled":o?"":void 0,className:m("space-y-2",e),...i,children:[a&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between space-x-4 px-4",children:[jsxRuntime.jsx("h4",{className:"text-sm font-semibold",children:a}),jsxRuntime.jsx(Ii,{})]}),s]})})});Ou.displayName="Collapsible";var Ii=Y__namespace.forwardRef(({className:e,children:t,onClick:n,...r},o)=>{let{open:a,onOpenChange:s,disabled:i,contentId:l,triggerId:c}=zu();return jsxRuntime.jsx(ae,{ref:o,id:c,"aria-controls":l,"aria-expanded":a,disabled:i,"data-state":a?"open":"closed","data-disabled":i?"":void 0,variant:"light",size:"sm",isIconOnly:true,className:e,onClick:d=>{n?.(d),s(!a);},...r,children:t??jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:m("h-4 w-4 transition-transform duration-200",a&&"rotate-180")})})});Ii.displayName="CollapsibleTrigger";var Bu=Y__namespace.forwardRef(({className:e,children:t,style:n,...r},o)=>{let{open:a,contentId:s,triggerId:i,disabled:l}=zu(),c=Y__namespace.useRef(null),[d,u]=Y__namespace.useState(0),[f,p]=Y__namespace.useState(false),[g,h]=Y__namespace.useState(a);Y__namespace.useEffect(()=>{a?(h(true),u(0),p(true),requestAnimationFrame(()=>{requestAnimationFrame(()=>{c.current&&u(c.current.scrollHeight);});})):(p(true),c.current?(u(c.current.scrollHeight),requestAnimationFrame(()=>{u(0);})):u(0));},[a]);let b=()=>{p(false),a||h(false);};return g?jsxRuntime.jsx("div",{ref:o,id:s,role:"region","aria-labelledby":i,"data-state":a?"open":"closed","data-disabled":l?"":void 0,className:m("overflow-hidden",e),style:{...n,height:f?d:a?"auto":0,transition:f?"height 0.25s ease-out, opacity 0.25s ease-out":void 0,opacity:a?1:0},onTransitionEnd:b,...r,children:jsxRuntime.jsx("div",{ref:c,className:"space-y-2",children:t})}):null});Bu.displayName="CollapsibleContent";var _a=Y__namespace.forwardRef(({className:e,value:t=0,max:n=100,label:r,showPercentage:o=false,formatPercentage:a=l=>`${Math.round(l)}%`,...s},i)=>{let l=Math.min(Math.max(t/n*100,0),100);return jsxRuntime.jsxs("div",{ref:i,className:"w-full",children:[(r||o)&&jsxRuntime.jsxs("div",{className:"flex justify-between text-sm mb-2",children:[r&&jsxRuntime.jsx("span",{className:"text-muted-foreground",children:r}),o&&jsxRuntime.jsx("span",{className:m("text-muted-foreground",!r&&"ml-auto"),children:a(l)})]}),jsxRuntime.jsx("div",{role:"progressbar","aria-valuenow":t,"aria-valuemin":0,"aria-valuemax":n,"aria-label":typeof r=="string"?r:void 0,className:m("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...s,children:jsxRuntime.jsx("div",{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-l}%)`}})})]})});_a.displayName="Progress";var Gu=Y__namespace.createContext(null),Uu=()=>{let e=Y__namespace.useContext(Gu);if(!e)throw new Error("HoverCard components must be used within a HoverCard");return e},ju=({children:e,open:t,defaultOpen:n=false,onOpenChange:r,openDelay:o=700,closeDelay:a=300,closeOnScroll:s=true})=>{let[i,l]=Y__namespace.useState(n),c=t!==void 0,d=c?t:i,u=Y__namespace.useRef(null),f=Y__namespace.useId(),p=Y__namespace.useRef(null),g=Y__namespace.useRef(null),h=Y__namespace.useCallback(b=>{p.current&&clearTimeout(p.current),g.current&&clearTimeout(g.current),b?p.current=setTimeout(()=>{c||l(true),r?.(true);},o):g.current=setTimeout(()=>{c||l(false),r?.(false);},a);},[c,r,o,a]);return Y__namespace.useEffect(()=>{if(!s||!d)return;let b=()=>{p.current&&clearTimeout(p.current),g.current&&clearTimeout(g.current),c||l(false),r?.(false);};return window.addEventListener("scroll",b,true),()=>window.removeEventListener("scroll",b,true)},[s,d,c,r]),Y__namespace.useEffect(()=>()=>{p.current&&clearTimeout(p.current),g.current&&clearTimeout(g.current);},[]),jsxRuntime.jsx(Gu.Provider,{value:{open:d,onOpenChange:h,triggerRef:u,contentId:f},children:e})};ju.displayName="HoverCard";var Wu=Y__namespace.forwardRef(({children:e,onMouseEnter:t,onMouseLeave:n,onFocus:r,onBlur:o,...a},s)=>{let{onOpenChange:i,triggerRef:l}=Uu();return jsxRuntime.jsx("a",{ref:p=>{l.current=p,typeof s=="function"?s(p):s&&(s.current=p);},onMouseEnter:p=>{t?.(p),i(true);},onMouseLeave:p=>{n?.(p),i(false);},onFocus:p=>{r?.(p),i(true);},onBlur:p=>{o?.(p),i(false);},...a,children:e})});Wu.displayName="HoverCardTrigger";var _u=Y__namespace.forwardRef(({className:e,side:t="bottom",sideOffset:n=4,align:r="center",alignOffset:o=0,onMouseEnter:a,onMouseLeave:s,children:i,...l},c)=>{let{open:d,onOpenChange:u,triggerRef:f,contentId:p}=Uu(),[g,h]=Y__namespace.useState({top:0,left:0}),[b,v]=Y__namespace.useState(false),y=Y__namespace.useRef(null);Y__namespace.useEffect(()=>{v(true);},[]),Y__namespace.useEffect(()=>{if(!d||!f.current||!y.current)return;(()=>{if(!f.current||!y.current)return;let M=f.current.getBoundingClientRect(),T=y.current.getBoundingClientRect(),N=0,E=0;switch(t){case "top":N=M.top-T.height-n;break;case "bottom":N=M.bottom+n;break;case "left":E=M.left-T.width-n;break;case "right":E=M.right+n;break}if(t==="top"||t==="bottom")switch(r){case "start":E=M.left+o;break;case "center":E=M.left+M.width/2-T.width/2;break;case "end":E=M.right-T.width-o;break}else switch(r){case "start":N=M.top+o;break;case "center":N=M.top+M.height/2-T.height/2;break;case "end":N=M.bottom-T.height-o;break}h({top:N,left:E});})();},[d,t,n,r,o,f]);let R=x=>{a?.(x),u(true);},w=x=>{s?.(x),u(false);};if(!b||!d)return null;let C={top:"animate-in fade-in-0 zoom-in-95 slide-in-from-bottom-2",bottom:"animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",left:"animate-in fade-in-0 zoom-in-95 slide-in-from-right-2",right:"animate-in fade-in-0 zoom-in-95 slide-in-from-left-2"}[t];return Ba__namespace.createPortal(jsxRuntime.jsx("div",{ref:x=>{y.current=x,typeof c=="function"?c(x):c&&(c.current=x);},id:p,"data-state":d?"open":"closed","data-side":t,className:m("fixed z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none",C,e),style:{top:g.top,left:g.left},onMouseEnter:R,onMouseLeave:w,...l,children:i}),document.body)});_u.displayName="HoverCardContent";var Yu=Y__namespace.createContext({size:"md",variant:"default",radius:"md"}),Xa=()=>Y__namespace.useContext(Yu);classVarianceAuthority.cva("",{variants:{size:{sm:"",md:"",lg:""},variant:{default:"",bordered:"",filled:""},radius:{none:"",sm:"",md:"",lg:"",full:""}},defaultVariants:{size:"md",variant:"default",radius:"md"}});var rR=classVarianceAuthority.cva("flex flex-wrap items-center break-words",{variants:{size:{sm:"gap-1 text-xs",md:"gap-1.5 text-sm sm:gap-2",lg:"gap-2 text-base sm:gap-3"},variant:{default:"text-muted-foreground",bordered:"text-muted-foreground px-3 py-1.5 border",filled:"text-muted-foreground bg-muted px-3 py-1.5"},radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-full"}},defaultVariants:{size:"md",variant:"default",radius:"md"}}),oR=classVarianceAuthority.cva("",{variants:{size:{sm:"[&>svg]:h-3 [&>svg]:w-3",md:"[&>svg]:h-3.5 [&>svg]:w-3.5",lg:"[&>svg]:h-4 [&>svg]:w-4"}},defaultVariants:{size:"md"}}),aR=classVarianceAuthority.cva("flex items-center justify-center",{variants:{size:{sm:"h-6 w-6 [&>svg]:h-3 [&>svg]:w-3",md:"h-8 w-8 [&>svg]:h-4 [&>svg]:w-4",lg:"h-10 w-10 [&>svg]:h-5 [&>svg]:w-5"}},defaultVariants:{size:"md"}}),Xu=Y__namespace.forwardRef(({size:e="md",variant:t="default",radius:n="md",children:r,...o},a)=>jsxRuntime.jsx(Yu.Provider,{value:{size:e,variant:t,radius:n},children:jsxRuntime.jsx("nav",{ref:a,"aria-label":"breadcrumb",...o,children:r})}));Xu.displayName="Breadcrumb";var qu=Y__namespace.forwardRef(({className:e,...t},n)=>{let{size:r,variant:o,radius:a}=Xa();return jsxRuntime.jsx("ol",{ref:n,className:m(rR({size:r,variant:o,radius:o==="default"?void 0:a}),e),...t})});qu.displayName="BreadcrumbList";var Zu=Y__namespace.forwardRef(({className:e,...t},n)=>{let{size:r}=Xa();return jsxRuntime.jsx("li",{ref:n,className:m("inline-flex items-center",r==="sm"&&"gap-1",r==="md"&&"gap-1.5",r==="lg"&&"gap-2",e),...t})});Zu.displayName="BreadcrumbItem";var Qu=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("a",{ref:n,className:m("transition-colors hover:text-foreground cursor-pointer",e),...t}));Qu.displayName="BreadcrumbLink";var Ju=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("span",{ref:n,role:"link","aria-disabled":"true","aria-current":"page",className:m("font-medium text-foreground",e),...t}));Ju.displayName="BreadcrumbPage";var em=({children:e,className:t,...n})=>{let{size:r}=Xa();return jsxRuntime.jsx("li",{role:"presentation","aria-hidden":"true",className:m(oR({size:r}),"text-muted-foreground/60",t),...n,children:e??jsxRuntime.jsx(lucideReact.ChevronRight,{})})};em.displayName="BreadcrumbSeparator";var tm=({className:e,...t})=>{let{size:n}=Xa();return jsxRuntime.jsxs("span",{role:"presentation","aria-hidden":"true",className:m(aR({size:n}),e),...t,children:[jsxRuntime.jsx(lucideReact.MoreHorizontal,{}),jsxRuntime.jsx("span",{className:"sr-only",children:"More"})]})};tm.displayName="BreadcrumbEllipsis";var om=Y__namespace.forwardRef(({ratio:e=1,className:t,style:n,children:r,...o},a)=>jsxRuntime.jsx("div",{ref:a,className:m("relative w-full",t),style:{...n,paddingBottom:`${100/e}%`},...o,children:jsxRuntime.jsx("div",{className:"absolute inset-0",children:r})}));om.displayName="AspectRatio";var im=Y__namespace.createContext(null),Ai=()=>{let e=Y__namespace.useContext(im);if(!e)throw new Error("NavigationMenu components must be used within a NavigationMenu");return e},lm=Y__namespace.createContext(null),cm=()=>{let e=Y__namespace.useContext(lm);if(!e)throw new Error("NavigationMenuItem components must be used within a NavigationMenuItem");return e},dm=Y__namespace.forwardRef(({className:e,orientation:t="horizontal",children:n,...r},o)=>{let[a,s]=Y__namespace.useState(null);return jsxRuntime.jsx(im.Provider,{value:{activeItem:a,setActiveItem:s,orientation:t},children:jsxRuntime.jsxs("nav",{ref:o,className:m("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...r,children:[n,jsxRuntime.jsx(zi,{})]})})});dm.displayName="NavigationMenu";var um=Y__namespace.forwardRef(({className:e,...t},n)=>{let{orientation:r}=Ai();return jsxRuntime.jsx("ul",{ref:n,className:m("group flex flex-1 list-none items-center justify-center gap-1",r==="vertical"&&"flex-col items-start",e),...t})});um.displayName="NavigationMenuList";var mm=Y__namespace.forwardRef(({className:e,children:t,...n},r)=>{let{activeItem:o,setActiveItem:a}=Ai(),s=Y__namespace.useId(),i=Y__namespace.useRef(null),l=o===s,c=Y__namespace.useCallback(d=>{a(d?s:null);},[s,a]);return jsxRuntime.jsx(lm.Provider,{value:{itemId:s,triggerRef:i,open:l,onOpenChange:c},children:jsxRuntime.jsx("li",{ref:r,className:m("relative",e),...n,children:t})})});mm.displayName="NavigationMenuItem";var pm=classVarianceAuthority.cva("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-accent/50"),fm=Y__namespace.forwardRef(({className:e,children:t,onMouseEnter:n,onClick:r,...o},a)=>{let{triggerRef:s,open:i,onOpenChange:l}=cm(),c=u=>{n?.(u),l(true);},d=u=>{r?.(u),l(!i);};return jsxRuntime.jsxs("button",{ref:u=>{s.current=u,typeof a=="function"?a(u):a&&(a.current=u);},type:"button","data-state":i?"open":"closed",className:m(pm(),"group",e),onMouseEnter:c,onClick:d,"aria-expanded":i,...o,children:[t,jsxRuntime.jsx(lucideReact.ChevronDown,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})});fm.displayName="NavigationMenuTrigger";var gm=Y__namespace.forwardRef(({className:e,onMouseEnter:t,onMouseLeave:n,...r},o)=>{let{open:a,onOpenChange:s,triggerRef:i}=cm(),l=Y__namespace.useRef(null),[c,d]=Y__namespace.useState({top:0,left:0});Y__namespace.useEffect(()=>{if(!a||!i.current)return;let p=()=>{if(!i.current)return;let g=i.current.getBoundingClientRect();d({top:g.bottom+4,left:g.left});};return p(),window.addEventListener("resize",p),window.addEventListener("scroll",p,true),()=>{window.removeEventListener("resize",p),window.removeEventListener("scroll",p,true);}},[a,i]);let u=p=>{t?.(p),s(true);},f=p=>{n?.(p),s(false);};return a?Ba__namespace.createPortal(jsxRuntime.jsx("div",{ref:p=>{l.current=p,typeof o=="function"?o(p):o&&(o.current=p);},"data-state":a?"open":"closed",className:m("fixed z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-4 text-popover-foreground shadow-lg","animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",e),style:{top:c.top,left:c.left},onMouseEnter:u,onMouseLeave:f,...r}),document.body):null});gm.displayName="NavigationMenuContent";var bm=classVarianceAuthority.cva("block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground"),vm=Y__namespace.forwardRef(({className:e,active:t,...n},r)=>jsxRuntime.jsx("a",{ref:r,className:m(bm(),t&&"bg-accent text-accent-foreground",e),...n}));vm.displayName="NavigationMenuLink";var zi=Y__namespace.forwardRef((e,t)=>null);zi.displayName="NavigationMenuViewport";var hm=Y__namespace.forwardRef(({className:e,...t},n)=>{let{activeItem:r}=Ai();return r?jsxRuntime.jsx("div",{ref:n,className:m("top-full z-[1] flex h-2.5 items-end justify-center overflow-hidden","data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:jsxRuntime.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}):null});hm.displayName="NavigationMenuIndicator";var wm=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-full cursor-pointer transition-colors hover:bg-muted/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{size:{sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10"}},defaultVariants:{size:"md"}}),Nt=Y__namespace.forwardRef(({className:e,size:t,...n},r)=>{let a={sm:14,md:16,lg:20}[t??"md"];return jsxRuntime.jsx("button",{ref:r,type:"button",className:m(wm({size:t}),e),"aria-label":"Close",...n,children:jsxRuntime.jsx(lucideReact.X,{style:{width:a,height:a}})})});Nt.displayName="CloseButton";var qa=Y__namespace.createContext(null);function bR(){let e=Y__namespace.useContext(qa);if(!e)throw new Error("useDrawer must be used within a DrawerProvider.");return e}function kn(){return Y__namespace.useContext(qa)}var vR="16rem",hR="18rem",xR="3rem",yR="b",RR={xs:"256px",sm:"320px",md:"384px",lg:"448px",xl:"512px","2xl":"576px","3xl":"672px","4xl":"768px","5xl":"896px",full:"100%"},wR={xs:"20vh",sm:"30vh",md:"40vh",lg:"50vh",xl:"60vh","2xl":"70vh","3xl":"75vh","4xl":"80vh","5xl":"90vh",full:"100vh"},Oi=Y__namespace.forwardRef(({defaultOpen:e=false,open:t,onOpenChange:n,placement:r="left",size:o="md",backdrop:a="opaque",isDismissable:s=true,hideCloseButton:i=false,collapsible:l="offcanvas",mode:c,className:d,style:u,children:f,...p},g)=>{let h=c??"overlay",b=h==="overlay",[v,y]=Y__namespace.useState(false),[R,w]=Y__namespace.useState(false),[C,x]=Y__namespace.useState(e),M=t??C,T=Y__namespace.useCallback(k=>{let D=typeof k=="function"?k(M):k;n?n(D):x(D);},[n,M]);Y__namespace.useEffect(()=>{let k=()=>{y(window.innerWidth<768);};return k(),window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)},[]);let N=Y__namespace.useCallback(()=>b?T(k=>!k):v?w(k=>!k):T(k=>!k),[v,T,w,b]);Y__namespace.useEffect(()=>{if(b)return;let k=D=>{D.key===yR&&(D.metaKey||D.ctrlKey)&&(D.preventDefault(),N());};return window.addEventListener("keydown",k),()=>window.removeEventListener("keydown",k)},[N,b]);let E=M?"expanded":"collapsed",P=Y__namespace.useMemo(()=>({placement:r,state:E,open:M,setOpen:T,isMobile:v,openMobile:R,setOpenMobile:w,toggleDrawer:N,collapsible:l,mode:h,size:o,backdrop:a,isDismissable:s,hideCloseButton:i}),[r,E,M,T,v,R,w,N,l,h,o,a,s,i]);return b?jsxRuntime.jsx(qa.Provider,{value:P,children:jsxRuntime.jsx(vaul.Drawer.Root,{open:M,onOpenChange:T,direction:r,dismissible:s,children:f})}):jsxRuntime.jsx(qa.Provider,{value:P,children:jsxRuntime.jsx(Wn,{delayDuration:0,children:jsxRuntime.jsx("div",{ref:g,style:{"--drawer-width":vR,"--drawer-width-icon":xR,...u},className:m("group/drawer-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-muted/50",d),...p,children:f})})})});Oi.displayName="Drawer";var Tm=Y__namespace.forwardRef(({variant:e="default",embedded:t=false,className:n,children:r,...o},a)=>{let s=kn();if(!s)return jsxRuntime.jsx("div",{ref:a,className:m("flex h-full flex-col bg-background text-foreground",n),...o,children:r});let{placement:i,collapsible:l,isMobile:c,state:d,openMobile:u,setOpenMobile:f}=s;if(i==="bottom"||i==="top")return jsxRuntime.jsx(jsxRuntime.Fragment,{children:r});if(l==="none")return jsxRuntime.jsx("div",{ref:a,className:m("flex h-full w-[--drawer-width] flex-col bg-background text-foreground border-r",i==="right"&&"border-l border-r-0",n),...o,children:r});if(c&&!t)return jsxRuntime.jsx(CR,{open:u,onOpenChange:f,placement:i,children:r});if(t){let g=d==="collapsed",h=l==="offcanvas",b=l==="icon";return jsxRuntime.jsx("div",{ref:a,className:m("group peer text-foreground relative"),"data-state":d,"data-collapsible":g?l:"","data-variant":e,"data-placement":i,"data-embedded":"true",children:jsxRuntime.jsx("div",{className:m("flex h-full flex-col overflow-hidden transition-[width,opacity] duration-200 ease-out",h?g?"w-0 opacity-0":"w-[--drawer-width] opacity-100":b&&g?"w-[--drawer-width-icon]":"w-[--drawer-width]",n),...o,children:jsxRuntime.jsx("div",{"data-drawer":"drawer",className:m("flex h-full w-full flex-col bg-background transition-opacity duration-200",e==="floating"&&"overflow-hidden rounded-lg border shadow-sm",e==="inset"&&"overflow-hidden rounded-lg border",e==="default"&&i==="left"&&"border-r",e==="default"&&i==="right"&&"border-l"),children:r})})})}return jsxRuntime.jsxs("div",{ref:a,className:"group peer hidden md:block text-foreground","data-state":d,"data-collapsible":d==="collapsed"?l:"","data-variant":e,"data-placement":i,children:[jsxRuntime.jsx("div",{className:m("duration-200 relative h-svh w-[--drawer-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0",i==="right"&&"group-data-[placement=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--drawer-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--drawer-width-icon]")}),jsxRuntime.jsx("div",{className:m("duration-200 fixed inset-y-0 z-10 hidden h-svh w-[--drawer-width] transition-[left,right,width] ease-linear md:flex",i==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--drawer-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--drawer-width)*-1)]",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--drawer-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--drawer-width-icon] group-data-[placement=left]:border-r group-data-[placement=right]:border-l",n),...o,children:jsxRuntime.jsx("div",{"data-drawer":"drawer",className:m("flex h-full w-full flex-col bg-background",e==="floating"&&"overflow-hidden rounded-lg border shadow-sm",e==="inset"&&"overflow-hidden rounded-lg border"),children:r})})]})});Tm.displayName="DrawerSidebar";var CR=({children:e,open:t,onOpenChange:n,placement:r})=>{let[o,a]=Y__namespace.useState(false);return Y__namespace.useEffect(()=>{a(true);},[]),Y__namespace.useEffect(()=>{if(t)return Gt(),()=>Ut()},[t]),!o||!t?null:Ba__namespace.createPortal(jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"fixed inset-0 z-50 bg-black/80 animate-in fade-in-0",onClick:()=>n(false)}),jsxRuntime.jsx("div",{className:m("fixed z-50 bg-background p-0 text-foreground shadow-lg","animate-in",r==="left"&&"inset-y-0 left-0 h-full w-[--drawer-width] slide-in-from-left",r==="right"&&"inset-y-0 right-0 h-full w-[--drawer-width] slide-in-from-right"),style:{"--drawer-width":hR},children:jsxRuntime.jsx("div",{className:"flex h-full w-full flex-col",children:e})})]}),document.body)},Mm=Y__namespace.forwardRef(({className:e,onClick:t,...n},r)=>{let o=kn();if(o?.mode==="overlay")return jsxRuntime.jsx(vaul.Drawer.Trigger,{ref:r,className:e,onClick:t,...n});let a=o?.toggleDrawer;return jsxRuntime.jsxs("button",{ref:r,type:"button","data-drawer":"trigger",className:m("flex items-center justify-center h-9 w-9 rounded-lg bg-transparent hover:bg-accent transition-colors cursor-pointer",e),onClick:s=>{t?.(s),a?.();},...n,children:[jsxRuntime.jsx(lucideReact.PanelLeft,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle Drawer"})]})});Mm.displayName="DrawerTrigger";var Nm=Y__namespace.forwardRef(({className:e,children:t,...n},r)=>{let o=kn(),a=o?.mode==="overlay",s=o?.placement||"left",i=o?.size||"md",l=o?.backdrop||"opaque";if(a){let c=s==="top"||s==="bottom",d=s==="left"||s==="right",u=d?RR[i]:wR[i],f={opaque:"bg-black/80",blur:"bg-black/50 backdrop-blur-sm",transparent:"bg-transparent"},p={top:"inset-x-0 top-0 rounded-b-[10px]",bottom:"inset-x-0 bottom-0 rounded-t-[10px]",left:"inset-y-0 left-0 rounded-r-[10px]",right:"inset-y-0 right-0 rounded-l-[10px]"};return jsxRuntime.jsxs(vaul.Drawer.Portal,{children:[jsxRuntime.jsx(vaul.Drawer.Overlay,{className:m("fixed inset-0 z-50",f[l])}),jsxRuntime.jsxs(vaul.Drawer.Content,{ref:r,className:m("fixed z-50 flex flex-col border bg-background",p[s],e),style:{...d?{width:u,height:"100%"}:{},...c?{maxHeight:u}:{},...n.style},...n,children:[c&&jsxRuntime.jsx("div",{className:m("mx-auto h-2 w-[100px] rounded-full bg-muted",s==="top"?"mb-4 mt-auto":"mt-4")}),t]})]})}return jsxRuntime.jsx("div",{ref:r,className:m("flex flex-col h-full",e),...n,children:t})});Nm.displayName="DrawerContent";var km=Y__namespace.forwardRef(({className:e,hideCloseButton:t,children:n,...r},o)=>{let a=kn(),s=a?.hideCloseButton??false,i=!t&&!s;return jsxRuntime.jsxs("div",{ref:o,"data-drawer":"header",className:m("flex flex-col gap-2 p-4 relative",e),...r,children:[n,i&&jsxRuntime.jsx(Nt,{className:"absolute right-4 top-4",onClick:()=>a?.setOpen(false)})]})});km.displayName="DrawerHeader";var Pm=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,"data-drawer":"body",className:m("flex min-h-0 flex-1 flex-col gap-2 overflow-auto p-4 group-data-[collapsible=icon]:overflow-hidden",e),...t}));Pm.displayName="DrawerBody";var Em=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,"data-drawer":"footer",className:m("flex flex-col gap-2 p-4 mt-auto",e),...t}));Em.displayName="DrawerFooter";var Lm=Y__namespace.forwardRef(({className:e,...t},n)=>kn()?.mode==="overlay"?jsxRuntime.jsx(vaul.Drawer.Title,{ref:n,className:m("text-lg font-semibold leading-none tracking-tight",e),...t}):jsxRuntime.jsx("h2",{ref:n,className:m("text-lg font-semibold leading-none tracking-tight",e),...t}));Lm.displayName="DrawerTitle";var Sm=Y__namespace.forwardRef(({className:e,...t},n)=>kn()?.mode==="overlay"?jsxRuntime.jsx(vaul.Drawer.Description,{ref:n,className:m("text-sm text-muted-foreground",e),...t}):jsxRuntime.jsx("p",{ref:n,className:m("text-sm text-muted-foreground",e),...t}));Sm.displayName="DrawerDescription";var Dm=Y__namespace.forwardRef(({className:e,onClick:t,...n},r)=>{let o=kn();return jsxRuntime.jsx(Nt,{ref:r,className:e,onClick:a=>{t?.(a),o?.setOpen(false);},...n})});Dm.displayName="DrawerClose";var Hm=Y__namespace.forwardRef(({className:e,onClick:t,showLabel:n=true,...r},o)=>{let a=kn();if(!a)return null;let{toggleDrawer:s,state:i,placement:l}=a,c=i==="collapsed",d=l==="left",u=d?lucideReact.PanelLeftOpen:lucideReact.PanelRightOpen,f=d?lucideReact.PanelLeftClose:lucideReact.PanelRightClose;return jsxRuntime.jsxs("button",{ref:o,type:"button","data-drawer":"toggle","data-state":i,className:m("flex items-center gap-2 w-full px-2 py-2 rounded-md text-sm text-muted-foreground","hover:bg-accent hover:text-accent-foreground","transition-colors cursor-pointer","group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:px-0",e),onClick:p=>{t?.(p),s();},...r,children:[c?jsxRuntime.jsx(u,{className:"h-4 w-4 shrink-0"}):jsxRuntime.jsx(f,{className:"h-4 w-4 shrink-0"}),n&&jsxRuntime.jsx("span",{className:"group-data-[collapsible=icon]:hidden truncate",children:c?"Expand":"Collapse"})]})});Hm.displayName="DrawerToggle";var Im=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,"data-drawer":"separator",className:m("mx-4 h-px bg-border",e),...t}));Im.displayName="DrawerSeparator";var Vm=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("ul",{ref:n,"data-drawer":"menu",className:m("flex w-full min-w-0 flex-col gap-1",e),...t}));Vm.displayName="DrawerMenu";var Am=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("li",{ref:n,"data-drawer":"menu-item",className:m("group/menu-item relative",e),...t}));Am.displayName="DrawerMenuItem";var zm=classVarianceAuthority.cva("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-ring transition-[width,height,padding] hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 active:bg-accent active:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-accent data-[active=true]:font-medium data-[active=true]:text-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-accent hover:text-accent-foreground",bordered:"bg-background shadow-[0_0_0_1px_currentColor] hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent/50 hover:text-accent-foreground"},size:{sm:"h-7 text-xs",md:"h-8 text-sm",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"md"}}),Om=Y__namespace.forwardRef(({isActive:e=false,variant:t="default",size:n="md",tooltip:r,className:o,children:a,...s},i)=>{let l=kn(),c=l?.isMobile??false,d=l?.state??"expanded",u=jsxRuntime.jsx("button",{ref:i,type:"button","data-drawer":"menu-button","data-size":n,"data-active":e,className:m(zm({variant:t,size:n}),o),...s,children:a});return r?jsxRuntime.jsxs(_n,{children:[jsxRuntime.jsx(Yn,{children:u}),jsxRuntime.jsx(Xn,{side:"right",align:"center",hidden:d!=="collapsed"||c,...typeof r=="string"?{children:r}:r})]}):u});Om.displayName="DrawerMenuButton";var Bm=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,"data-drawer":"group",className:m("relative flex w-full min-w-0 flex-col p-2",e),...t}));Bm.displayName="DrawerGroup";var Fm=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,"data-drawer":"group-label",className:m("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-muted-foreground outline-none transition-[margin,opacity] ease-linear","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...t}));Fm.displayName="DrawerGroupLabel";var Km=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("main",{ref:n,className:m("relative flex min-h-svh flex-1 flex-col bg-background","peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));Km.displayName="DrawerInset";var TR=Oi;var Gm=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{className:"relative w-full overflow-auto",children:jsxRuntime.jsx("table",{ref:n,className:m("w-full caption-bottom text-sm",e),...t})}));Gm.displayName="Table";var Um=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("thead",{ref:n,className:m("[&_tr]:border-b",e),...t}));Um.displayName="TableHeader";var jm=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("tbody",{ref:n,className:m("[&_tr:last-child]:border-0",e),...t}));jm.displayName="TableBody";var Wm=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("tfoot",{ref:n,className:m("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));Wm.displayName="TableFooter";var _m=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("tr",{ref:n,className:m("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));_m.displayName="TableRow";var Ym=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("th",{ref:n,className:m("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));Ym.displayName="TableHead";var Xm=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("td",{ref:n,className:m("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));Xm.displayName="TableCell";var qm=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("caption",{ref:n,className:m("mt-4 text-sm text-muted-foreground",e),...t}));qm.displayName="TableCaption";function LR({className:e,data:t,columns:n,selectable:r=false,selectedKeys:o,onSelectionChange:a,getRowKey:s=(w,C)=>String(C),sortable:i=false,sortState:l,onSortChange:c,paginated:d=false,pageSizeOptions:u=[10,20,50],paginationState:f,onPaginationChange:p,emptyContent:g="No data",loading:h=false,striped:b=false,hoverable:v=true,...y},R){let[w,C]=Y__namespace.useState(new Set),[x,M]=Y__namespace.useState({columnId:null,direction:null}),[T,N]=Y__namespace.useState({pageIndex:0,pageSize:u[0]||10}),E=o??w,P=l??x,k=f??T,D=$=>{a?a($):C($);},H=$=>{c?c($):M($);},L=$=>{p?p($):N($);},S=Y__namespace.useMemo(()=>{if(!P.columnId||!P.direction)return t;let $=n.find(B=>B.id===P.columnId);return $?[...t].sort((B,U)=>{let j=$.accessor(B),F=$.accessor(U);if(j===F)return 0;if(j==null)return 1;if(F==null)return -1;let Z=String(j).localeCompare(String(F),void 0,{numeric:true});return P.direction==="asc"?Z:-Z}):t},[t,P,n]),I=Y__namespace.useMemo(()=>{if(!d)return S;let $=k.pageIndex*k.pageSize;return S.slice($,$+k.pageSize)},[S,d,k]),A=Math.ceil(S.length/k.pageSize),O=$=>{if($===true){let B=new Set(I.map((U,j)=>s(U,j)));D(B);}else D(new Set);},V=($,B)=>{let U=new Set(E);B?U.add($):U.delete($),D(U);},z=I.length>0&&I.every(($,B)=>E.has(s($,B))),K=I.some(($,B)=>E.has(s($,B))),_=$=>{if(!n.find(j=>j.id===$)?.sortable&&!i)return;let U="asc";P.columnId===$&&(P.direction==="asc"?U="desc":P.direction==="desc"&&(U=null)),H({columnId:U?$:null,direction:U});},X=$=>P.columnId!==$?jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"h-4 w-4 text-muted-foreground/50"}):P.direction==="asc"?jsxRuntime.jsx(lucideReact.ChevronUp,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"});return jsxRuntime.jsxs("div",{ref:R,className:m("w-full",e),...y,children:[jsxRuntime.jsx("div",{className:"relative w-full overflow-auto rounded-md border",children:jsxRuntime.jsxs("table",{className:"w-full caption-bottom text-sm",children:[jsxRuntime.jsx("thead",{className:"[&_tr]:border-b bg-muted/50",children:jsxRuntime.jsxs("tr",{children:[r&&jsxRuntime.jsx("th",{className:"h-12 w-12 px-4",children:jsxRuntime.jsx(zo,{checked:z?true:K?"indeterminate":false,onCheckedChange:O,"aria-label":"Select all"})}),n.map($=>{let B=$.sortable??i;return jsxRuntime.jsx("th",{className:m("h-12 px-4 text-left align-middle font-medium text-muted-foreground",B&&"cursor-pointer select-none hover:text-foreground"),style:{width:$.width},onClick:()=>B&&_($.id),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[$.header,B&&X($.id)]})},$.id)})]})}),jsxRuntime.jsx("tbody",{className:"[&_tr:last-child]:border-0",children:h?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:n.length+(r?1:0),className:"h-24 text-center text-muted-foreground",children:"Loading..."})}):I.length===0?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:n.length+(r?1:0),className:"h-24 text-center text-muted-foreground",children:g})}):I.map(($,B)=>{let U=s($,B),j=E.has(U);return jsxRuntime.jsxs("tr",{className:m("border-b transition-colors",v&&"hover:bg-muted/50",b&&B%2===1&&"bg-muted/30",j&&"bg-muted"),"data-state":j?"selected":void 0,children:[r&&jsxRuntime.jsx("td",{className:"w-12 px-4",children:jsxRuntime.jsx(zo,{checked:j,onCheckedChange:F=>V(U,!!F),"aria-label":`Select row ${B+1}`})}),n.map(F=>jsxRuntime.jsx("td",{className:"p-4 align-middle",children:F.cell?F.cell($,B):F.accessor($)},F.id))]},U)})})]})}),d&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between px-2 py-4",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[jsxRuntime.jsx("span",{children:"Rows per page:"}),jsxRuntime.jsx("select",{value:k.pageSize,onChange:$=>L({pageIndex:0,pageSize:Number($.target.value)}),className:"h-8 rounded-md border bg-transparent px-2",children:u.map($=>jsxRuntime.jsx("option",{value:$,children:$},$))})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"text-sm text-muted-foreground",children:["Page ",k.pageIndex+1," of ",A||1]}),jsxRuntime.jsxs("div",{className:"flex gap-1",children:[jsxRuntime.jsx(ae,{variant:"light",size:"sm",isIconOnly:true,onClick:()=>L({...k,pageIndex:k.pageIndex-1}),disabled:k.pageIndex===0,"aria-label":"Previous page",children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx(ae,{variant:"light",size:"sm",isIconOnly:true,onClick:()=>L({...k,pageIndex:k.pageIndex+1}),disabled:k.pageIndex>=A-1,"aria-label":"Next page",children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})})]})]})]})]})}var SR=Y__namespace.forwardRef(LR);var Bi=["January","February","March","April","May","June","July","August","September","October","November","December"];function OR({currentMonth:e,onMonthChange:t,startYear:n,endYear:r}){let o=dateFns.getMonth(e),a=dateFns.getYear(e),s=c=>{let d=dateFns.setMonth(e,c);t(d);},i=c=>{let d=dateFns.setYear(e,c);t(d);},l=Y__namespace.useMemo(()=>{let c=[];for(let d=r;d>=n;d--)c.push(d);return c},[n,r]);return jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsxs(Cn,{children:[jsxRuntime.jsx(Tn,{children:jsxRuntime.jsxs("div",{className:m("inline-flex items-center justify-between gap-1 px-1.5 py-1 rounded-md","text-xs font-medium w-[85px]","border border-border bg-background","hover:bg-muted transition-colors cursor-pointer"),children:[jsxRuntime.jsx("span",{className:"truncate",children:Bi[o]}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-3 w-3 text-muted-foreground shrink-0"})]})}),jsxRuntime.jsx(Mn,{className:"min-w-[120px] p-0",children:jsxRuntime.jsx(ke,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"p-1",children:Bi.map((c,d)=>jsxRuntime.jsx($t,{onSelect:()=>s(d),className:m("text-xs",o===d&&"bg-primary/10 text-primary font-medium"),children:c},c))})})})]}),jsxRuntime.jsxs(Cn,{children:[jsxRuntime.jsx(Tn,{children:jsxRuntime.jsxs("div",{className:m("inline-flex items-center justify-between gap-1 px-1.5 py-1 rounded-md","text-xs font-medium w-[60px]","border border-border bg-background","hover:bg-muted transition-colors cursor-pointer"),children:[jsxRuntime.jsx("span",{children:a}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-3 w-3 text-muted-foreground shrink-0"})]})}),jsxRuntime.jsx(Mn,{className:"min-w-[80px] p-0",children:jsxRuntime.jsx(ke,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"p-1",children:l.map(c=>jsxRuntime.jsx($t,{onSelect:()=>i(c),className:m("text-xs",a===c&&"bg-primary/10 text-primary font-medium"),children:c},c))})})})]})]})}function BR(e,t,n){return function({calendarMonth:o}){let{goToMonth:a,nextMonth:s,previousMonth:i}=reactDayPicker.useDayPicker();if(e)return jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-1 mb-2",children:[jsxRuntime.jsx(OR,{currentMonth:o.date,onMonthChange:a,startYear:t,endYear:n}),jsxRuntime.jsxs("div",{className:"flex items-center",children:[jsxRuntime.jsx("button",{type:"button",disabled:!i,onClick:()=>i&&a(i),className:m("h-6 w-6 inline-flex items-center justify-center rounded-md","text-muted-foreground hover:text-foreground hover:bg-muted","transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"),"aria-label":"Previous month",children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-3.5 w-3.5"})}),jsxRuntime.jsx("button",{type:"button",disabled:!s,onClick:()=>s&&a(s),className:m("h-6 w-6 inline-flex items-center justify-center rounded-md","text-muted-foreground hover:text-foreground hover:bg-muted","transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"),"aria-label":"Next month",children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-3.5 w-3.5"})})]})]});let l=Bi[o.date.getMonth()],c=o.date.getFullYear();return jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-2 h-10 mb-2",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium w-[90px]",children:l}),jsxRuntime.jsx("span",{className:"text-sm font-medium w-[50px]",children:c})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("button",{type:"button",disabled:!i,onClick:()=>i&&a(i),className:m("h-8 w-8 inline-flex items-center justify-center rounded-md","text-muted-foreground hover:text-foreground hover:bg-muted","transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"),"aria-label":"Previous month",children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx("button",{type:"button",disabled:!s,onClick:()=>s&&a(s),className:m("h-8 w-8 inline-flex items-center justify-center rounded-md","text-muted-foreground hover:text-foreground hover:bg-muted","transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"),"aria-label":"Next month",children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})})]})]})}}function eo({className:e,classNames:t,showOutsideDays:n=true,showMonthAndYearPickers:r=false,startYear:o=1900,endYear:a=new Date().getFullYear()+50,components:s,...i}){let l=Y__namespace.useMemo(()=>BR(r,o,a),[r,o,a]);return jsxRuntime.jsx(reactDayPicker.DayPicker,{showOutsideDays:n,className:m("p-4",e),classNames:{months:"flex flex-col sm:flex-row gap-4",month:"flex flex-col gap-2",month_caption:"sr-only",nav:"hidden",month_grid:"w-full border-collapse",weekdays:"flex",weekday:"text-muted-foreground w-8 font-normal text-xs text-center",week:"flex w-full mt-0.5",day:m("relative h-8 w-8 p-0 text-center text-sm","flex items-center justify-center","focus-within:relative focus-within:z-20","[&:has([aria-selected]:not(.outside-day))]:bg-accent","first:[&:has([aria-selected]:not(.outside-day))]:rounded-l-md","last:[&:has([aria-selected]:not(.outside-day))]:rounded-r-md"),day_button:m("size-8 p-0 font-normal rounded-md text-sm","inline-flex items-center justify-center","hover:bg-primary/10","focus:outline-none","transition-colors cursor-pointer"),range_start:"rounded-l-md",range_end:"rounded-r-md",selected:m("bg-primary text-primary-foreground rounded-md","hover:bg-primary/90 hover:!text-primary-foreground","focus:bg-primary focus:text-primary-foreground","[&.outside-day]:!bg-transparent [&.outside-day]:!text-muted-foreground/50"),today:"bg-accent text-accent-foreground rounded-md",outside:"outside-day text-muted-foreground/50 !bg-transparent",disabled:"text-muted-foreground/30 cursor-not-allowed",range_middle:"rounded-none bg-muted text-foreground",hidden:"invisible",...t},modifiersStyles:{range_middle:{backgroundColor:"var(--color-muted)",color:"var(--color-foreground)",borderRadius:0}},components:{...s,MonthCaption:l},...i})}eo.displayName="Calendar";var ep=({className:e,...t})=>jsxRuntime.jsx("nav",{role:"navigation","aria-label":"pagination",className:m("mx-auto flex w-full justify-center",e),...t});ep.displayName="Pagination";var tp=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("ul",{ref:n,className:m("flex flex-row items-center gap-1",e),...t}));tp.displayName="PaginationContent";var np=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("li",{ref:n,className:m("",e),...t}));np.displayName="PaginationItem";var Za=({className:e,isActive:t,size:n="sm",isIconOnly:r=true,...o})=>jsxRuntime.jsx("a",{"aria-current":t?"page":void 0,className:m(Xr({variant:t?"solid":"light",size:n}),r&&"!px-0 !w-9",e),...o});Za.displayName="PaginationLink";var rp=({className:e,...t})=>jsxRuntime.jsxs(Za,{"aria-label":"Go to previous page",size:"md",className:m("gap-1 pl-2.5",e),...t,children:[jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{children:"Previous"})]});rp.displayName="PaginationPrevious";var op=({className:e,...t})=>jsxRuntime.jsxs(Za,{"aria-label":"Go to next page",size:"md",className:m("gap-1 pr-2.5",e),...t,children:[jsxRuntime.jsx("span",{children:"Next"}),jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})]});op.displayName="PaginationNext";var ap=({className:e,...t})=>jsxRuntime.jsxs("span",{"aria-hidden":true,className:m("flex h-9 w-9 items-center justify-center",e),...t,children:[jsxRuntime.jsx(lucideReact.MoreHorizontal,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"More pages"})]});ap.displayName="PaginationEllipsis";var Ko=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("span",{ref:n,className:m("absolute h-px w-px p-0 -m-px overflow-hidden whitespace-nowrap border-0","[clip:rect(0,0,0,0)]",e),...t}));Ko.displayName="VisuallyHidden";var ip={opaque:"bg-black/80",blur:"bg-black/50 backdrop-blur-sm",transparent:"bg-transparent"},UR={auto:"top-[50%] translate-y-[-50%]",center:"top-[50%] translate-y-[-50%]",top:"top-4 translate-y-0",bottom:"top-auto bottom-4 translate-y-0","top-center":"top-[20%] translate-y-0","bottom-center":"top-auto bottom-[20%] translate-y-0"},lp=classVarianceAuthority.cva("fixed inset-0 z-50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"),Gi=classVarianceAuthority.cva("fixed left-[50%] z-50 grid translate-x-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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 sm:rounded-lg",{variants:{size:{xs:"w-full max-w-xs",sm:"w-full max-w-sm",md:"w-full max-w-md",lg:"w-full max-w-lg",xl:"w-full max-w-xl","2xl":"w-full max-w-2xl","3xl":"w-full max-w-3xl","4xl":"w-full max-w-4xl","5xl":"w-full max-w-5xl",full:"w-[calc(100vw-2rem)] h-[calc(100vh-2rem)] max-w-none"}},defaultVariants:{size:"md"}}),Ja=Y__namespace.createContext(null),kr=()=>{let e=Y__namespace.useContext(Ja);if(!e)throw new Error("Modal components must be used within a Modal");return e},dp=Y__namespace.forwardRef(({open:e,onOpenChange:t,trigger:n,title:r="Modal",children:o,hideCloseButton:a=false,isDismissable:s=true,isKeyboardDismissDisabled:i=false,backdrop:l="opaque",placement:c="center",scrollBehavior:d="inside",size:u,className:f},p)=>{let[g,h]=Y__namespace.useState(false),b=e!==void 0,v=b?e:g,[y,R]=Y__namespace.useState(false),w=Y__namespace.useRef(null),C=Y__namespace.useId(),x=Y__namespace.useId();Y__namespace.useEffect(()=>{R(true);},[]);let M=Y__namespace.useCallback(P=>{b||h(P),t?.(P);},[b,t]);Y__namespace.useEffect(()=>{if(v)return Gt(),()=>Ut()},[v]),Y__namespace.useEffect(()=>{if(!v||i)return;let P=k=>{k.key==="Escape"&&M(false);};return document.addEventListener("keydown",P),()=>document.removeEventListener("keydown",P)},[v,i,M]);let T=P=>{s&&P.target===P.currentTarget&&M(false);},N=n?Y__namespace.isValidElement(n)?Y__namespace.cloneElement(n,{onClick:P=>{n.props.onClick?.(P),M(true);}}):jsxRuntime.jsx("button",{type:"button",onClick:()=>M(true),children:n}):null,E=()=>!y||!v?null:d==="outside"?Ba__namespace.createPortal(jsxRuntime.jsx("div",{"data-state":v?"open":"closed",className:m(lp(),ip[l],"overflow-y-auto flex items-start justify-center py-4"),onClick:T,children:jsxRuntime.jsxs("div",{ref:P=>{w.current=P,typeof p=="function"?p(P):p&&(p.current=P);},role:"dialog","aria-modal":"true","aria-labelledby":C,"aria-describedby":x,"data-state":v?"open":"closed",className:m("relative z-50 grid gap-4 border bg-background p-6 shadow-lg sm:rounded-lg dark:border-0",u==="xs"&&"w-full max-w-xs",u==="sm"&&"w-full max-w-sm",u==="md"&&"w-full max-w-md",u==="lg"&&"w-full max-w-lg",u==="xl"&&"w-full max-w-xl",u==="2xl"&&"w-full max-w-2xl",u==="3xl"&&"w-full max-w-3xl",u==="4xl"&&"w-full max-w-4xl",u==="5xl"&&"w-full max-w-5xl",u==="full"&&"w-[calc(100vw-2rem)] min-h-[calc(100vh-2rem)]",!u&&"w-full max-w-md",f),children:[jsxRuntime.jsx(Ko,{children:jsxRuntime.jsx("h2",{id:C,children:r})}),o,!a&&jsxRuntime.jsx(Nt,{size:"sm",className:"absolute right-4 top-4 z-10",onClick:()=>M(false)})]})}),document.body):Ba__namespace.createPortal(jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{"data-state":v?"open":"closed",className:m(lp(),ip[l]),onClick:T,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:P=>{w.current=P,typeof p=="function"?p(P):p&&(p.current=P);},role:"dialog","aria-modal":"true","aria-labelledby":C,"aria-describedby":x,"data-state":v?"open":"closed",className:m(Gi({size:u}),UR[c],"dark:border-0 max-h-[calc(100vh-2rem)] !flex !flex-col overflow-hidden gap-4",f),children:[jsxRuntime.jsx(Ko,{children:jsxRuntime.jsx("h2",{id:C,children:r})}),o,!a&&jsxRuntime.jsx(Nt,{size:"sm",className:"absolute right-4 top-4 z-10",onClick:()=>M(false)})]})]}),document.body);return jsxRuntime.jsxs(Ja.Provider,{value:{open:v,onOpenChange:M,scrollBehavior:d,titleId:C,descriptionId:x},children:[N,E()]})});dp.displayName="Modal";var es=({children:e,open:t,defaultOpen:n=false,onOpenChange:r,scrollBehavior:o="inside"})=>{let[a,s]=Y__namespace.useState(n),i=t!==void 0,l=i?t:a,c=Y__namespace.useId(),d=Y__namespace.useId(),u=Y__namespace.useCallback(f=>{i||s(f),r?.(f);},[i,r]);return jsxRuntime.jsx(Ja.Provider,{value:{open:l,onOpenChange:u,scrollBehavior:o,titleId:c,descriptionId:d},children:e})};es.displayName="ModalRoot";var up=Y__namespace.forwardRef(({children:e,onClick:t,...n},r)=>{let{onOpenChange:o}=kr();return jsxRuntime.jsx("button",{ref:r,type:"button",onClick:s=>{t?.(s),o(true);},...n,children:e})});up.displayName="ModalTrigger";var Ui=({children:e,container:t})=>{let[n,r]=Y__namespace.useState(false);return Y__namespace.useEffect(()=>{r(true);},[]),n?Ba__namespace.createPortal(e,t||document.body):null};Ui.displayName="ModalPortal";var ji=Y__namespace.forwardRef(({className:e,...t},n)=>{let{open:r,onOpenChange:o}=kr();return r?jsxRuntime.jsx("div",{ref:n,"data-state":r?"open":"closed",className:m("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),onClick:()=>o(false),"aria-hidden":"true",...t}):null});ji.displayName="ModalOverlay";var mp=Y__namespace.forwardRef(({children:e,onClick:t,...n},r)=>{let{onOpenChange:o}=kr();return jsxRuntime.jsx("button",{ref:r,type:"button",onClick:s=>{t?.(s),o(false);},...n,children:e})});mp.displayName="ModalClose";var ts=Y__namespace.forwardRef(({className:e,children:t,size:n,showCloseButton:r=true,onEscapeKeyDown:o,onInteractOutside:a,...s},i)=>{let{open:l,onOpenChange:c,titleId:d,descriptionId:u}=kr(),[f,p]=Y__namespace.useState(false);return Y__namespace.useEffect(()=>{p(true);},[]),Y__namespace.useEffect(()=>{if(l)return Gt(),()=>Ut()},[l]),Y__namespace.useEffect(()=>{if(!l)return;let g=h=>{h.key==="Escape"&&(o?.(),c(false));};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[l,c,o]),!f||!l?null:jsxRuntime.jsxs(Ui,{children:[jsxRuntime.jsx(ji,{}),jsxRuntime.jsxs("div",{ref:i,role:"dialog","aria-modal":"true","aria-labelledby":d,"aria-describedby":u,"data-state":l?"open":"closed",className:m(Gi({size:n}),"top-[50%] translate-y-[-50%]",e),...s,children:[t,r&&jsxRuntime.jsx(Nt,{size:"sm",className:"absolute right-4 top-4 z-10",onClick:()=>c(false)})]})]})});ts.displayName="ModalContent";var pp=({className:e,...t})=>jsxRuntime.jsx("div",{className:m("flex-shrink-0 flex flex-col space-y-1.5 text-center sm:text-left",e),...t});pp.displayName="ModalHeader";var fp=({className:e,children:t})=>(Y__namespace.useContext(Ja)?.scrollBehavior??"inside")==="inside"?jsxRuntime.jsx(ke,{className:m("flex-1 min-h-0 -mx-6 px-6",e),children:t}):jsxRuntime.jsx("div",{className:m(e),children:t});fp.displayName="ModalBody";var gp=({className:e,children:t,...n})=>{let{onOpenChange:r}=kr();return jsxRuntime.jsx("div",{className:m("flex-shrink-0 flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...n,children:Y__namespace.Children.map(t,o=>Y__namespace.isValidElement(o)?Y__namespace.cloneElement(o,{onClick:a=>{o.props.onClick?.(a),r(false);}}):o)})};gp.displayName="ModalFooter";var bp=Y__namespace.forwardRef(({className:e,...t},n)=>{let{titleId:r}=kr();return jsxRuntime.jsx("h2",{ref:n,id:r,className:m("text-lg font-semibold leading-none tracking-tight",e),...t})});bp.displayName="ModalTitle";var vp=Y__namespace.forwardRef(({className:e,...t},n)=>{let{descriptionId:r}=kr();return jsxRuntime.jsx("p",{ref:n,id:r,className:m("text-sm text-muted-foreground",e),...t})});vp.displayName="ModalDescription";var Wi=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx(cmdk.Command,{ref:n,className:m("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));Wi.displayName=cmdk.Command.displayName;var _R=({children:e,...t})=>jsxRuntime.jsx(es,{...t,children:jsxRuntime.jsx(ts,{className:"overflow-hidden p-0 shadow-lg",showCloseButton:false,children:jsxRuntime.jsx(Wi,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),hp=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[jsxRuntime.jsx(lucideReact.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),jsxRuntime.jsx(cmdk.Command.Input,{ref:n,className:m("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));hp.displayName=cmdk.Command.Input.displayName;var xp=Y__namespace.forwardRef(({className:e,children:t,...n},r)=>jsxRuntime.jsx(ke,{className:"max-h-[300px]",children:jsxRuntime.jsx(cmdk.Command.List,{ref:r,className:m("overflow-hidden",e),...n,children:t})}));xp.displayName=cmdk.Command.List.displayName;var yp=Y__namespace.forwardRef((e,t)=>jsxRuntime.jsx(cmdk.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));yp.displayName=cmdk.Command.Empty.displayName;var Rp=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx(cmdk.Command.Group,{ref:n,className:m("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));Rp.displayName=cmdk.Command.Group.displayName;var wp=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx(cmdk.Command.Separator,{ref:n,className:m("-mx-1 h-px bg-border",e),...t}));wp.displayName=cmdk.Command.Separator.displayName;var Cp=Y__namespace.forwardRef(({className:e,children:t,startContent:n,endContent:r,...o},a)=>jsxRuntime.jsxs(cmdk.Command.Item,{ref:a,className:m("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...o,children:[n,t&&jsxRuntime.jsx("span",{className:"flex-1",children:t}),r]}));Cp.displayName=cmdk.Command.Item.displayName;var Tp=({className:e,...t})=>jsxRuntime.jsx("span",{className:m("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Tp.displayName="CommandShortcut";var Np=Y__namespace.forwardRef(({className:e,showToggle:t=true,disabled:n,onFocus:r,onBlur:o,style:a,...s},i)=>{let[l,c]=Y__namespace.useState(false),[d,u]=Y__namespace.useState(false);return jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("input",{type:l?"text":"password",className:m("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",t&&"pr-10",e),ref:i,disabled:n,style:{...a,borderColor:d?"var(--color-foreground)":void 0},onFocus:f=>{u(true),r?.(f);},onBlur:f=>{u(false),o?.(f);},...s}),t&&jsxRuntime.jsx("button",{type:"button",className:"absolute right-0 top-0 h-10 w-10 px-3 flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",onClick:()=>c(!l),disabled:n,tabIndex:-1,"aria-label":l?"Hide password":"Show password",children:l?jsxRuntime.jsx(lucideReact.EyeOff,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.Eye,{className:"h-4 w-4"})})]})});Np.displayName="PasswordInput";var kp=Y__namespace.forwardRef(({className:e,showButtons:t=true,step:n=1,min:r,max:o,value:a,defaultValue:s,onChange:i,disabled:l,...c},d)=>{let[u,f]=Y__namespace.useState(s),[p,g]=Y__namespace.useState(false),h=a!==void 0,b=h?a:u,v=T=>{T!==void 0&&(r!==void 0&&T<r&&(T=r),o!==void 0&&T>o&&(T=o)),h||f(T),i?.(T);},y=()=>{v((b??0)+n);},R=()=>{v((b??0)-n);},w=T=>{let N=T.target.value;if(N==="")v(void 0);else {let E=parseFloat(N);isNaN(E)||v(E);}},C=T=>{T.key==="ArrowUp"?(T.preventDefault(),y()):T.key==="ArrowDown"&&(T.preventDefault(),R());},x=r===void 0||(b??0)>r,M=o===void 0||(b??0)<o;return t?jsxRuntime.jsxs("div",{className:m("relative flex items-center rounded-md border transition-colors",p?"border-foreground":"border-input",l&&"opacity-50",e),children:[jsxRuntime.jsx("button",{type:"button",className:"h-10 w-10 shrink-0 flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",onClick:R,disabled:l||!x,tabIndex:-1,"aria-label":"Decrease value",children:jsxRuntime.jsx(lucideReact.Minus,{className:"h-4 w-4"})}),jsxRuntime.jsx("input",{type:"text",inputMode:"numeric",pattern:"[0-9]*",className:"min-w-0 flex-1 h-10 bg-background text-sm text-center focus:outline-none disabled:cursor-not-allowed",ref:d,value:b??"",onChange:w,onKeyDown:C,disabled:l,onFocus:()=>g(true),onBlur:()=>g(false),...c}),jsxRuntime.jsx("button",{type:"button",className:"h-10 w-10 shrink-0 flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",onClick:y,disabled:l||!M,tabIndex:-1,"aria-label":"Increase value",children:jsxRuntime.jsx(lucideReact.Plus,{className:"h-4 w-4"})})]}):jsxRuntime.jsx("input",{type:"text",inputMode:"numeric",pattern:"[0-9]*",className:m("flex h-10 w-full bg-background px-3 py-2 text-sm text-center border rounded-md placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",p?"border-foreground":"border-input",e),ref:d,value:b??"",onChange:w,onKeyDown:C,disabled:l,onFocus:()=>g(true),onBlur:()=>g(false),...c})});kp.displayName="NumberInput";var Sp=classVarianceAuthority.cva("flex -space-x-2",{variants:{size:{sm:"-space-x-2",md:"-space-x-2.5",lg:"-space-x-3"}},defaultVariants:{size:"md"}}),Pp=classVarianceAuthority.cva("border-2 border-background ring-0 cursor-pointer transition-transform duration-200 hover:-translate-y-1",{variants:{size:{sm:"h-8 w-8 text-xs",md:"h-10 w-10 text-sm",lg:"h-12 w-12 text-base"}},defaultVariants:{size:"md"}}),Dp=Y__namespace.forwardRef(({className:e,items:t,max:n=5,size:r,showTooltips:o=false,...a},s)=>{let i=t.slice(0,n),l=t.length-n,c=(u,f)=>{let p=jsxRuntime.jsxs(Cr,{className:m(Pp({size:r})),children:[u.src&&jsxRuntime.jsx(Qr,{src:u.src,alt:u.alt||""}),jsxRuntime.jsx(Tr,{className:"text-xs",children:u.fallback||u.alt?.charAt(0)?.toUpperCase()||"?"})]},f);return o&&u.alt?jsxRuntime.jsxs(_n,{children:[jsxRuntime.jsx(Yn,{children:p}),jsxRuntime.jsx(Xn,{className:"bg-zinc-100 text-zinc-900 dark:bg-zinc-900 dark:text-zinc-100",children:u.alt})]},f):p},d=jsxRuntime.jsxs("div",{ref:s,className:m(Sp({size:r,className:e})),...a,children:[i.map((u,f)=>c(u,f)),l>0&&jsxRuntime.jsx(Cr,{className:m(Pp({size:r})),children:jsxRuntime.jsxs(Tr,{className:"bg-muted text-muted-foreground",children:["+",l]})})]});return o?jsxRuntime.jsx(Wn,{delayDuration:300,children:d}):d});Dp.displayName="AvatarGroup";var Hp=classVarianceAuthority.cva("flex gap-0.5",{variants:{size:{sm:"[&_svg]:h-4 [&_svg]:w-4",md:"[&_svg]:h-5 [&_svg]:w-5",lg:"[&_svg]:h-6 [&_svg]:w-6"}},defaultVariants:{size:"md"}}),Ip=Y__namespace.forwardRef(({className:e,value:t,defaultValue:n=0,onValueChange:r,max:o=5,size:a,icon:s="star",allowHalf:i=false,readOnly:l=false,disabled:c=false,filledColor:d,emptyColor:u,...f},p)=>{let[g,h]=Y__namespace.useState(n),[b,v]=Y__namespace.useState(null),y=t!==void 0,R=y?t:g,w=b!==null?b:R,C=D=>{l||c||(y||h(D),r?.(D));},x=(D,H=false)=>{let L=i&&H?D+.5:D+1;C(L);},M=(D,H)=>{if(l||c)return;let L=D.currentTarget.getBoundingClientRect(),S=i&&D.clientX<L.left+L.width/2;v(S?H+.5:H+1);},T=()=>{v(null);},N=s==="heart"?lucideReact.Heart:lucideReact.Star,E=D=>w>=D+1?"full":w>=D+.5?"half":"empty",P=d?{color:d,fill:d}:{},k=u?{color:u}:{};return jsxRuntime.jsx("div",{ref:p,className:m(Hp({size:a,className:e}),c&&"opacity-50 cursor-not-allowed"),onMouseLeave:T,role:"radiogroup","aria-label":"Rating",...f,children:Array.from({length:o},(D,H)=>{let L=E(H);return jsxRuntime.jsxs("button",{type:"button",className:m("relative focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 rounded-sm",!l&&!c&&"cursor-pointer hover:scale-110 transition-transform"),onClick:S=>{let I=S.currentTarget.getBoundingClientRect(),A=i&&S.clientX<I.left+I.width/2;x(H,A);},onMouseMove:S=>M(S,H),disabled:c||l,"aria-label":`Rate ${H+1} out of ${o}`,role:"radio","aria-checked":R===H+1,children:[jsxRuntime.jsx(N,{className:m("text-muted-foreground/30",L!=="empty"&&"absolute inset-0"),style:L==="empty"?k:void 0}),L!=="empty"&&jsxRuntime.jsx(N,{className:m("text-yellow-500 fill-yellow-500",s==="heart"&&"text-red-500 fill-red-500",L==="half"&&"clip-path-half"),style:{...P,clipPath:L==="half"?"inset(0 50% 0 0)":void 0}})]},H)})})});Ip.displayName="Rating";var Ap=classVarianceAuthority.cva("inline-flex items-center justify-center gap-1.5 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 cursor-default",{variants:{variant:{solid:"border-transparent text-primary-foreground",bordered:"border bg-transparent",ghost:"border-transparent bg-transparent",soft:"border-transparent",surface:"border-transparent bg-muted text-muted-foreground"},color:{primary:"",secondary:"",success:"",warning:"",danger:""},size:{sm:"h-6 px-2 text-xs",md:"h-7 px-2.5 text-sm",lg:"h-8 px-3 text-sm"},radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-full"},clickable:{true:"cursor-pointer",false:""}},compoundVariants:[{variant:"solid",color:"primary",className:"bg-primary hover:bg-primary/90"},{variant:"solid",color:"secondary",className:"bg-secondary text-secondary-foreground hover:bg-secondary/80"},{variant:"solid",color:"success",className:"bg-green-600 text-white hover:bg-green-700 dark:bg-green-700 dark:hover:bg-green-600"},{variant:"solid",color:"warning",className:"bg-amber-600 text-white hover:bg-amber-700 dark:bg-amber-700 dark:hover:bg-amber-600"},{variant:"solid",color:"danger",className:"bg-red-600 text-white hover:bg-red-700 dark:bg-red-700 dark:hover:bg-red-600"},{variant:"bordered",color:"primary",className:"text-primary !border-primary hover:bg-primary/10"},{variant:"bordered",color:"secondary",className:"text-secondary-foreground !border-secondary hover:bg-secondary/10"},{variant:"bordered",color:"success",className:"text-green-600 !border-green-600 hover:bg-green-600/10 dark:text-green-500 dark:!border-green-500"},{variant:"bordered",color:"warning",className:"text-amber-600 !border-amber-600 hover:bg-amber-600/10 dark:text-amber-500 dark:!border-amber-500"},{variant:"bordered",color:"danger",className:"text-red-600 !border-red-600 hover:bg-red-600/10 dark:text-red-500 dark:!border-red-500"},{variant:"ghost",color:"primary",className:"text-primary hover:bg-primary/10"},{variant:"ghost",color:"secondary",className:"text-secondary-foreground hover:bg-secondary"},{variant:"ghost",color:"success",className:"text-green-600 hover:bg-green-600/10 dark:text-green-500 dark:hover:bg-green-500/10"},{variant:"ghost",color:"warning",className:"text-amber-600 hover:bg-amber-600/10 dark:text-amber-500 dark:hover:bg-amber-500/10"},{variant:"ghost",color:"danger",className:"text-red-600 hover:bg-red-600/10 dark:text-red-500 dark:hover:bg-red-500/10"},{variant:"soft",color:"primary",className:"bg-primary/15 text-primary hover:bg-primary/20"},{variant:"soft",color:"secondary",className:"bg-secondary text-secondary-foreground hover:bg-secondary/80"},{variant:"soft",color:"success",className:"bg-green-600/15 text-green-600 hover:bg-green-600/20 dark:bg-green-500/15 dark:text-green-500 dark:hover:bg-green-500/20"},{variant:"soft",color:"warning",className:"bg-amber-600/15 text-amber-600 hover:bg-amber-600/20 dark:bg-amber-500/15 dark:text-amber-500 dark:hover:bg-amber-500/20"},{variant:"soft",color:"danger",className:"bg-red-600/15 text-red-600 hover:bg-red-600/20 dark:bg-red-500/15 dark:text-red-500 dark:hover:bg-red-500/20"}],defaultVariants:{variant:"solid",color:"primary",size:"md",radius:"full",clickable:false}}),aw={sm:"sm",md:"sm",lg:"sm"},zp=Y__namespace.forwardRef(({className:e,variant:t,color:n,size:r,radius:o,clickable:a,startContent:s,endContent:i,closable:l,onClose:c,disabled:d,children:u,onClick:f,...p},g)=>{let h=a||!!f,b=v=>{v.stopPropagation(),c?.();};return jsxRuntime.jsxs("div",{ref:g,role:h?"button":void 0,tabIndex:h&&!d?0:void 0,"aria-disabled":d,onClick:d?void 0:f,onKeyDown:h&&!d?v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),f?.(v));}:void 0,className:m(Ap({variant:t,color:n,size:r,radius:o,clickable:h}),d&&"opacity-50 cursor-not-allowed",e),...p,children:[s&&jsxRuntime.jsx("span",{className:"shrink-0",children:s}),jsxRuntime.jsx("span",{className:"truncate",children:u}),i&&jsxRuntime.jsx("span",{className:"shrink-0",children:i}),l&&jsxRuntime.jsx(Nt,{size:aw[r??"md"],onClick:b,disabled:d,className:"ml-0.5 h-4 w-4"})]})});zp.displayName="Chip";var Op=Y.createContext({direction:"horizontal"}),pw=({className:e,direction:t="horizontal",children:n,...r})=>jsxRuntime.jsx(Op.Provider,{value:{direction:t},children:jsxRuntime.jsx(reactResizablePanels.Group,{orientation:t,className:m("flex h-full w-full data-[orientation=vertical]:flex-col",e),...r,children:n})}),fw=reactResizablePanels.Panel,gw=({withHandle:e,className:t,...n})=>{let{direction:r}=Y.useContext(Op),o=r==="vertical";return jsxRuntime.jsx(reactResizablePanels.Separator,{className:m("relative flex shrink-0 items-center justify-center bg-border outline-none",o?"h-px w-full after:absolute after:inset-x-0 after:top-1/2 after:h-1 after:-translate-y-1/2":"w-px after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2",t),...n,children:e&&jsxRuntime.jsx("div",{className:m("z-10 flex items-center justify-center rounded-sm border bg-border",o?"h-3 w-4 rotate-90":"h-4 w-3"),children:jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-2.5 w-2.5"})})})};var $p=classVarianceAuthority.cva("relative inline-flex items-center justify-center",{variants:{size:{sm:"h-8 w-8",md:"h-12 w-12",lg:"h-16 w-16",xl:"h-24 w-24"},color:{default:"",primary:"",success:"",warning:"",danger:""}},defaultVariants:{size:"md",color:"default"}}),vw={sm:{size:32,strokeWidth:3,fontSize:"text-[10px]"},md:{size:48,strokeWidth:4,fontSize:"text-xs"},lg:{size:64,strokeWidth:5,fontSize:"text-sm"},xl:{size:96,strokeWidth:6,fontSize:"text-base"}},Bp={default:"var(--color-foreground, #18181b)",primary:"var(--color-primary, #18181b)",success:"var(--color-success, #16a34a)",warning:"var(--color-warning, #d97706)",danger:"var(--color-danger, #dc2626)"},Gp=Y__namespace.forwardRef(({className:e,size:t="md",color:n="default",value:r,max:o=100,showValue:a=false,formatValue:s=d=>`${Math.round(d)}%`,trackClassName:i,...l},c)=>{let d=Math.min(100,Math.max(0,r/o*100)),u=vw[t],f=(u.size-u.strokeWidth)/2,p=2*Math.PI*f,g=p-d/100*p;return jsxRuntime.jsxs("div",{ref:c,className:m($p({size:t,color:n}),e),role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":o,...l,children:[jsxRuntime.jsxs("svg",{width:u.size,height:u.size,viewBox:`0 0 ${u.size} ${u.size}`,fill:"none",children:[jsxRuntime.jsx("circle",{className:m("stroke-muted",i),cx:u.size/2,cy:u.size/2,r:f,strokeWidth:u.strokeWidth,fill:"none"}),jsxRuntime.jsx("circle",{cx:u.size/2,cy:u.size/2,r:f,strokeWidth:u.strokeWidth,fill:"none",strokeLinecap:"round",stroke:Bp[n]||Bp.default,strokeDasharray:`${p} ${p}`,strokeDashoffset:g,style:{transformOrigin:"center",transform:"rotate(-90deg)",transition:"stroke-dashoffset 0.3s ease-in-out"}})]}),a&&jsxRuntime.jsx("span",{className:m("absolute font-medium text-foreground",u.fontSize),children:s(d)})]})});Gp.displayName="CircularProgress";var Up=Y__namespace.createContext(null),yw=()=>{let e=Y__namespace.useContext(Up);if(!e)throw new Error("OTP components must be used within InputOTP");return e},jp=classVarianceAuthority.cva("flex items-center gap-2 has-[:disabled]:opacity-50",{variants:{size:{sm:"[&_[data-otp-slot]]:h-8 [&_[data-otp-slot]]:w-8 [&_[data-otp-slot]]:text-xs",md:"[&_[data-otp-slot]]:h-10 [&_[data-otp-slot]]:w-10 [&_[data-otp-slot]]:text-sm",lg:"[&_[data-otp-slot]]:h-12 [&_[data-otp-slot]]:w-12 [&_[data-otp-slot]]:text-base"}},defaultVariants:{size:"md"}}),Wp=Y__namespace.forwardRef(({className:e,containerClassName:t,maxLength:n,value:r,defaultValue:o="",onChange:a,onComplete:s,pattern:i,disabled:l=false,size:c,children:d,...u},f)=>{let[p,g]=Y__namespace.useState(o),[h,b]=Y__namespace.useState(0),[v,y]=Y__namespace.useState(false),R=Y__namespace.useRef(null),w=r!==void 0?r:p;Y__namespace.useImperativeHandle(f,()=>R.current),Y__namespace.useEffect(()=>{b(Math.min(w.length,n-1));},[w,n]),Y__namespace.useEffect(()=>{w.length===n&&s&&s(w);},[w,n,s]);let C=P=>{let k=P.target.value;if(i&&k){let D=new RegExp(i.replace("^","").replace("$","").replace("+",""));k=k.split("").filter(H=>D.test(H)).join("");}k=k.slice(0,n),r===void 0&&g(k),a?.(k);},x=P=>{P.key==="ArrowLeft"?b(k=>Math.max(0,k-1)):P.key==="ArrowRight"&&b(k=>Math.min(w.length,n-1,k+1));},M=()=>{R.current?.focus();},T=()=>{y(true),b(Math.min(w.length,n-1));},N=()=>{y(false);},E={value:w,activeIndex:v?h:-1,maxLength:n,disabled:l};return jsxRuntime.jsx(Up.Provider,{value:E,children:jsxRuntime.jsxs("div",{className:m(jp({size:c}),t),onClick:M,"data-otp-container":true,children:[jsxRuntime.jsx("input",{ref:R,type:"text",inputMode:"numeric",autoComplete:"one-time-code",value:w,onChange:C,onKeyDown:x,onFocus:T,onBlur:N,disabled:l,maxLength:n,className:m("absolute opacity-0 pointer-events-none w-0 h-0",e),...u}),d]})})});Wp.displayName="InputOTP";var _p=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,className:m("flex items-center",e),...t}));_p.displayName="InputOTPGroup";var Yp=Y__namespace.forwardRef(({index:e,className:t,...n},r)=>{let{value:o,activeIndex:a,disabled:s}=yw(),i=o[e]||"",l=a===e,c=l&&o.length===e;return jsxRuntime.jsxs("div",{ref:r,"data-otp-slot":true,"data-active":l,"data-filled":!!i,className:m("relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm font-medium transition-all first:rounded-l-md first:border-l last:rounded-r-md",l&&"z-10 border-foreground",s&&"cursor-not-allowed opacity-50",t),...n,children:[i,c&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:jsxRuntime.jsx("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})});Yp.displayName="InputOTPSlot";var Xp=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,role:"separator",className:m("text-muted-foreground",e),...t,children:jsxRuntime.jsx(lucideReact.Minus,{className:"h-4 w-4"})}));Xp.displayName="InputOTPSeparator";var Qp=classVarianceAuthority.cva("inline-flex items-center gap-1 rounded-full text-xs font-medium transition-colors",{variants:{variant:{solid:"bg-zinc-800 text-white dark:bg-zinc-200 dark:text-zinc-900",bordered:"border border-zinc-300 bg-transparent dark:border-zinc-700",light:"bg-transparent text-zinc-800 hover:bg-zinc-100 dark:text-white dark:hover:bg-zinc-800",flat:"bg-zinc-100 text-zinc-800 dark:bg-zinc-800 dark:text-white",ghost:"border border-zinc-300 dark:border-zinc-700 bg-transparent hover:bg-zinc-900 hover:text-white hover:border-zinc-900 dark:hover:bg-white dark:hover:text-zinc-900 dark:hover:border-white"},size:{sm:"h-5 px-2 text-xs",md:"h-6 px-2.5 text-xs",lg:"h-7 px-3 text-sm"}},defaultVariants:{variant:"flat",size:"md"}}),Jp=Y__namespace.forwardRef(({className:e,variant:t,size:n,value:r=[],onChange:o,placeholder:a="Add tag...",maxTags:s,minTagLength:i=1,maxTagLength:l=50,triggerKeys:c=["Enter",",","Tab"],allowDuplicates:d=false,disabled:u,readOnly:f,renderTag:p,...g},h)=>{let[b,v]=Y__namespace.useState(""),y=Y__namespace.useRef(null);Y__namespace.useImperativeHandle(h,()=>y.current);let R=E=>{let P=E.trim();if(P.length<i||P.length>l||s&&r.length>=s||!d&&r.some(D=>D.text.toLowerCase()===P.toLowerCase()))return;let k={id:crypto.randomUUID(),text:P};o?.([...r,k]),v("");},w=E=>{u||f||o?.(r.filter(P=>P.id!==E));},C=E=>{if(c.includes(E.key)){if(E.key==="Tab"&&!b)return;E.preventDefault(),R(b);}E.key==="Backspace"&&!b&&r.length>0&&w(r[r.length-1].id);},x=E=>{let P=E.target.value;if(P.includes(",")){P.split(",").forEach(D=>{D.trim()&&R(D);});return}v(P);},M=E=>{E.preventDefault(),E.clipboardData.getData("text").split(/[,\n\t]/).filter(Boolean).forEach(D=>{R(D);});},T=()=>{y.current?.focus();},N=s?r.length>=s:false;return jsxRuntime.jsxs("div",{className:m("flex min-h-10 w-full flex-wrap gap-1.5 rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2",u&&"cursor-not-allowed opacity-50",e),onClick:T,children:[r.map(E=>p?p(E,()=>w(E.id)):jsxRuntime.jsxs("span",{className:m(Qp({variant:t,size:n})),children:[E.text,!u&&!f&&jsxRuntime.jsx("button",{type:"button",onClick:P=>{P.stopPropagation(),w(E.id);},className:"ml-0.5 rounded-full p-0.5 hover:bg-black/10 dark:hover:bg-white/10","aria-label":`Remove ${E.text}`,children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3"})})]},E.id)),!N&&!f&&jsxRuntime.jsx("input",{ref:y,type:"text",value:b,onChange:x,onKeyDown:C,onPaste:M,placeholder:r.length===0?a:"",disabled:u,className:m("flex-1 bg-transparent outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed","min-w-[80px]"),...g})]})});Jp.displayName="TagInput";var tf=classVarianceAuthority.cva("flex flex-col items-center justify-center text-center",{variants:{size:{sm:"gap-2 py-6",md:"gap-3 py-10",lg:"gap-4 py-16"}},defaultVariants:{size:"md"}}),nf=Y__namespace.forwardRef(({className:e,size:t,icon:n,title:r,description:o,action:a,children:s,...i},l)=>jsxRuntime.jsxs("div",{ref:l,className:m(tf({size:t,className:e})),...i,children:[n&&jsxRuntime.jsx("div",{className:"text-muted-foreground [&>svg]:h-10 [&>svg]:w-10",children:n}),r&&jsxRuntime.jsx("h3",{className:"text-lg font-semibold text-foreground",children:r}),o&&jsxRuntime.jsx("p",{className:"max-w-sm text-sm text-muted-foreground",children:o}),a&&jsxRuntime.jsx("div",{className:"mt-2",children:a}),s]}));nf.displayName="EmptyState";var of=classVarianceAuthority.cva("border p-6 text-card-foreground shadow-sm",{variants:{variant:{solid:"bg-zinc-800 text-white border-zinc-800 dark:bg-zinc-200 dark:text-zinc-900 dark:border-zinc-200",bordered:"border border-zinc-300 bg-transparent dark:border-zinc-700",light:"bg-transparent border-transparent shadow-none",flat:"bg-zinc-100 border-transparent dark:bg-zinc-800",ghost:"border border-zinc-300 dark:border-zinc-700 bg-transparent hover:bg-zinc-900 hover:text-white hover:border-zinc-900 dark:hover:bg-white dark:hover:text-zinc-900 dark:hover:border-white"},radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-3xl"}},defaultVariants:{variant:"bordered",radius:"md"}}),af=Y__namespace.forwardRef(({className:e,variant:t,radius:n,label:r,value:o,icon:a,trend:s,trendValue:i,description:l,...c},d)=>{let u=s==="up"?lucideReact.TrendingUp:s==="down"?lucideReact.TrendingDown:lucideReact.Minus,f=s==="up"?"text-green-500":s==="down"?"text-red-500":"text-muted-foreground";return jsxRuntime.jsxs("div",{ref:d,className:m(of({variant:t,radius:n,className:e})),...c,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsx("p",{className:m("text-sm font-medium",t==="solid"?"opacity-80":"text-muted-foreground"),children:r}),a&&jsxRuntime.jsx("div",{className:m("[&>svg]:h-4 [&>svg]:w-4",t==="solid"?"opacity-80":"text-muted-foreground"),children:a})]}),jsxRuntime.jsxs("div",{className:"mt-2 flex items-baseline gap-2",children:[jsxRuntime.jsx("p",{className:"text-2xl font-bold",children:o}),s&&i&&jsxRuntime.jsxs("span",{className:m("flex items-center gap-0.5 text-sm",f),children:[jsxRuntime.jsx(u,{className:"h-3 w-3"}),i]})]}),l&&jsxRuntime.jsx("p",{className:m("mt-1 text-xs",t==="solid"?"opacity-70":"text-muted-foreground"),children:l})]})});af.displayName="StatCard";var qi=classVarianceAuthority.cva("flex flex-col",{variants:{variant:{default:"gap-2",bordered:"divide-y divide-border rounded-lg border",striped:"gap-2 [&>*:nth-child(odd)]:bg-muted/50",filled:"gap-2 bg-muted/30 rounded-lg p-2"},size:{sm:"[&>*]:py-2 [&>*]:px-3",md:"[&>*]:py-3 [&>*]:px-4",lg:"[&>*]:py-4 [&>*]:px-5"}},defaultVariants:{variant:"default",size:"md"}}),Sw=({checked:e,disabled:t,onClick:n})=>jsxRuntime.jsx("button",{type:"button",role:"checkbox","aria-checked":e,disabled:t,onClick:r=>{r.stopPropagation(),t||n(r);},className:m("h-4 w-4 shrink-0 rounded-sm border border-primary transition-colors","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",e&&"bg-primary text-primary-foreground",t&&"cursor-not-allowed opacity-50"),children:e&&jsxRuntime.jsx("span",{className:"flex items-center justify-center text-current",children:jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})})});function Dw({className:e,variant:t,size:n,items:r,renderItem:o,draggable:a=false,onReorder:s,showHandle:i=true,dragIcon:l,selectable:c=false,multiple:d=false,selectedKeys:u,defaultSelectedKeys:f=[],onSelect:p,checkable:g=false,checkedKeys:h,defaultCheckedKeys:b=[],onCheck:v,children:y,...R},w){let[C,x]=Y__namespace.useState(null),[M,T]=Y__namespace.useState(null),[N,E]=Y__namespace.useState(new Set(f)),P=u!==void 0,k=P?new Set(u):N,[D,H]=Y__namespace.useState(new Set(b)),L=h!==void 0,S=L?new Set(h):D,I=(B,U)=>{x(U),B.dataTransfer.effectAllowed="move",B.dataTransfer.setData("text/plain",String(U));},A=(B,U)=>{B.preventDefault(),!(C===null||C===U)&&T(U);},O=()=>{T(null);},V=(B,U)=>{if(B.preventDefault(),!r||C===null||C===U){x(null),T(null);return}let j=[...r],[F]=j.splice(C,1);j.splice(U,0,F),s?.(j),x(null),T(null);},z=()=>{x(null),T(null);},K=Y__namespace.useCallback((B,U)=>{if(!r)return;let j=new Set(k),F=!j.has(B.id);d?F?j.add(B.id):j.delete(B.id):(j.clear(),F&&j.add(B.id)),P||E(j);let Z=r.filter(ue=>j.has(ue.id));p?.(Array.from(j),{selected:F,selectedItems:Z,item:B,event:U});},[r,k,d,P,p]),_=Y__namespace.useCallback((B,U)=>{if(!r)return;let j=new Set(S),F=!j.has(B.id);F?j.add(B.id):j.delete(B.id),L||H(j);let Z=r.filter(ue=>j.has(ue.id));v?.(Array.from(j),{checked:F,checkedItems:Z,item:B,event:U});},[r,S,L,v]);return (a||c||g)&&r&&o?jsxRuntime.jsx("div",{ref:w,role:"list",className:m(qi({variant:t,size:n,className:e})),...R,children:r.map((B,U)=>{let j=k.has(B.id),F=S.has(B.id);return jsxRuntime.jsxs("div",{role:"listitem","aria-selected":c?j:void 0,draggable:a,onDragStart:a?G=>I(G,U):void 0,onDragOver:a?G=>A(G,U):void 0,onDragLeave:a?O:void 0,onDrop:a?G=>V(G,U):void 0,onDragEnd:a?z:void 0,onClick:c&&!g?G=>K(B,G):void 0,className:m("flex items-center gap-3 transition-all",a&&"cursor-move",c&&!g&&"cursor-pointer hover:bg-muted/50",g&&"cursor-pointer hover:bg-muted/50",C===U&&"opacity-50 scale-[1.02] z-10",M===U&&"border-primary border-dashed border rounded-md",j&&c&&!g&&"bg-primary/10"),children:[a&&i&&l!==false&&jsxRuntime.jsx("div",{className:"flex-shrink-0 text-muted-foreground cursor-grab active:cursor-grabbing",children:l??jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-5 w-5"})}),g&&jsxRuntime.jsx(Sw,{checked:F,onClick:G=>_(B,G)}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:o(B,U)})]},B.id)})}):jsxRuntime.jsx("div",{ref:w,role:"list",className:m(qi({variant:t,size:n,className:e})),...R,children:y})}var Hw=Y__namespace.forwardRef(Dw),lf=classVarianceAuthority.cva("flex items-center gap-3 transition-colors",{variants:{interactive:{true:"cursor-pointer hover:bg-muted/50",false:""}},defaultVariants:{interactive:false}}),cf=Y__namespace.forwardRef(({className:e,interactive:t,leading:n,trailing:r,children:o,...a},s)=>jsxRuntime.jsxs("div",{ref:s,role:"listitem",className:m(lf({interactive:t,className:e})),...a,children:[n&&jsxRuntime.jsx("div",{className:"flex-shrink-0 text-muted-foreground",children:n}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:o}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0 whitespace-nowrap",children:r})]}));cf.displayName="ListItem";var df=Y__namespace.forwardRef(({className:e,primary:t,secondary:n,children:r,...o},a)=>jsxRuntime.jsxs("div",{ref:a,className:m("min-w-0",e),...o,children:[t&&jsxRuntime.jsx("p",{className:"text-sm font-medium leading-none truncate",children:t}),n&&jsxRuntime.jsx("p",{className:"mt-1 text-sm text-muted-foreground truncate",children:n}),r]}));df.displayName="ListItemText";var pf=classVarianceAuthority.cva("flex flex-col",{variants:{position:{left:"",right:"",alternate:""}},defaultVariants:{position:"left"}}),ff=Y__namespace.forwardRef(({className:e,position:t,...n},r)=>jsxRuntime.jsx("div",{ref:r,"data-position":t,className:m(pf({position:t,className:e})),...n}));ff.displayName="Timeline";var gf=classVarianceAuthority.cva("relative flex gap-4 pb-8 last:pb-0",{variants:{variant:{default:"",success:"[&_[data-timeline-dot]]:bg-green-500 [&_[data-timeline-dot]]:border-green-500",warning:"[&_[data-timeline-dot]]:bg-yellow-500 [&_[data-timeline-dot]]:border-yellow-500",error:"[&_[data-timeline-dot]]:bg-red-500 [&_[data-timeline-dot]]:border-red-500",info:"[&_[data-timeline-dot]]:bg-blue-500 [&_[data-timeline-dot]]:border-blue-500"}},defaultVariants:{variant:"default"}}),bf=Y__namespace.forwardRef(({className:e,variant:t,hideSeparator:n=false,hideConnector:r=false,dot:o,children:a,...s},i)=>jsxRuntime.jsxs("div",{ref:i,className:m(gf({variant:t,className:e})),...s,children:[!n&&jsxRuntime.jsxs("div",{className:"flex flex-col items-center",children:[jsxRuntime.jsx("div",{"data-timeline-dot":true,className:"flex h-3 w-3 items-center justify-center rounded-full border-2 border-primary bg-primary",children:o}),!r&&jsxRuntime.jsx("div",{className:"w-0.5 flex-1 bg-border"})]}),a]}));bf.displayName="TimelineItem";var vf=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,className:m("flex-1 pt-0.5",e),...t}));vf.displayName="TimelineContent";var hf=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,className:m("flex-1 text-sm text-muted-foreground pt-0.5",e),...t}));hf.displayName="TimelineOpposite";var yf=classVarianceAuthority.cva("inline-flex items-center rounded-lg bg-muted p-1 text-muted-foreground",{variants:{size:{sm:"h-8",md:"h-10",lg:"h-12"},fullWidth:{true:"w-full",false:""}},defaultVariants:{size:"md",fullWidth:false}}),Rf=classVarianceAuthority.cva("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{size:{sm:"h-6 text-xs px-2.5",md:"h-8 text-sm px-3",lg:"h-10 text-base px-4"},selected:{true:"bg-background text-foreground shadow-sm",false:""}},defaultVariants:{size:"md",selected:false}}),wf=Y__namespace.createContext({}),Cf=Y__namespace.forwardRef(({className:e,size:t="md",fullWidth:n,children:r,value:o,defaultValue:a,onValueChange:s,disabled:i,...l},c)=>{let[d,u]=Y__namespace.useState(a),f=o!==void 0?o:d,p=Y__namespace.useCallback(g=>{o===void 0&&u(g),s?.(g);},[o,s]);return jsxRuntime.jsx(wf.Provider,{value:{size:t??"md",value:f,onValueChange:p,disabled:i},children:jsxRuntime.jsx("div",{ref:c,role:"group",className:m(yf({size:t,fullWidth:n,className:e})),...l,children:r})})});Cf.displayName="SegmentedControl";var Tf=Y__namespace.forwardRef(({className:e,children:t,value:n,disabled:r,...o},a)=>{let s=Y__namespace.useContext(wf),i=s.value===n,l=r||s.disabled;return jsxRuntime.jsx("button",{ref:a,type:"button",role:"radio","aria-checked":i,"data-state":i?"on":"off",disabled:l,onClick:()=>{l||s.onValueChange?.(n);},className:m(Rf({size:s.size,selected:i}),"flex-1",e),...o,children:t})});Tf.displayName="SegmentedControlItem";var Mf=classVarianceAuthority.cva("relative flex flex-col items-center justify-center rounded-lg border-2 border-dashed transition-colors",{variants:{variant:{default:"border-input bg-background hover:bg-accent/50",active:"border-primary bg-primary/5",error:"border-danger bg-danger/5"},size:{sm:"p-4 min-h-[120px]",md:"p-6 min-h-[160px]",lg:"p-8 min-h-[200px]"}},defaultVariants:{variant:"default",size:"md"}}),Nf=e=>{let t=e.type;return t.startsWith("image/")?lucideReact.Image:t.startsWith("video/")?lucideReact.FileVideo:t.startsWith("audio/")?lucideReact.FileAudio:t.includes("pdf")||t.includes("document")?lucideReact.FileText:t.includes("zip")||t.includes("rar")||t.includes("archive")?lucideReact.FileArchive:lucideReact.File},is=e=>{if(e===0)return "0 Bytes";let t=1024,n=["Bytes","KB","MB","GB"],r=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/Math.pow(t,r)).toFixed(2))+" "+n[r]},kf=(e,t,n)=>{let r=[];return t&&e.size>t&&r.push({code:"file-too-large",message:`File is larger than ${is(t)}`}),n&&n.length>0&&(n.some(a=>{if(a.startsWith("."))return e.name.toLowerCase().endsWith(a.toLowerCase());if(a.endsWith("/*")){let s=a.slice(0,-2);return e.type.startsWith(s)}return e.type===a})||r.push({code:"file-invalid-type",message:`File type not accepted. Accepted: ${n.join(", ")}`})),r},Pf=Y__namespace.forwardRef(({className:e,variant:t,size:n,onFilesChange:r,onFilesRejected:o,onFileRemove:a,files:s=[],showFileList:i=true,children:l,maxSize:c=10*1024*1024,accept:d,multiple:u=true,disabled:f,...p},g)=>{let[h,b]=Y__namespace.useState(false),[v,y]=Y__namespace.useState(false),[R,w]=Y__namespace.useState([]),C=Y__namespace.useRef(null),x=Y__namespace.useCallback(S=>{if(!S||S.length===0)return;let I=Array.from(S),A=[],O=[];(u?I:[I[0]]).forEach(z=>{let K=kf(z,c,d);K.length>0?O.push({file:z,errors:K}):A.push(z);}),w(O),A.length>0&&r?.(A),O.length>0&&o?.(O);},[c,d,u,r,o]),M=Y__namespace.useCallback(S=>{if(S.preventDefault(),S.stopPropagation(),!f&&(b(true),S.dataTransfer.items)){let A=Array.from(S.dataTransfer.items).some(O=>{if(O.kind!=="file")return true;if(d&&d.length>0){let V=O.type;return !d.some(z=>z.endsWith("/*")?V.startsWith(z.slice(0,-2)):V===z)}return false});y(A);}},[f,d]),T=Y__namespace.useCallback(S=>{S.preventDefault(),S.stopPropagation(),!f&&(S.dataTransfer.dropEffect="copy");},[f]),N=Y__namespace.useCallback(S=>{S.preventDefault(),S.stopPropagation();let I=S.currentTarget.getBoundingClientRect(),A=S.clientX,O=S.clientY;(A<I.left||A>I.right||O<I.top||O>I.bottom)&&(b(false),y(false));},[]),E=Y__namespace.useCallback(S=>{S.preventDefault(),S.stopPropagation(),b(false),y(false),!f&&x(S.dataTransfer.files);},[f,x]),P=Y__namespace.useCallback(()=>{f||C.current?.click();},[f]),k=Y__namespace.useCallback(S=>{x(S.target.files),S.target.value="";},[x]),D=Y__namespace.useCallback(S=>{f||(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),C.current?.click());},[f]),H=v?"error":h?"active":t,L=d?.join(",");return jsxRuntime.jsxs("div",{ref:g,className:m("space-y-4",e),...p,children:[jsxRuntime.jsxs("div",{role:"button",tabIndex:f?-1:0,onDragEnter:M,onDragOver:T,onDragLeave:N,onDrop:E,onClick:P,onKeyDown:D,className:m(Mf({variant:H,size:n}),f&&"opacity-50 cursor-not-allowed",!f&&"cursor-pointer focus:outline-none"),"aria-disabled":f,children:[jsxRuntime.jsx("input",{ref:C,type:"file",accept:L,multiple:u,disabled:f,onChange:k,className:"sr-only",tabIndex:-1}),l||jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[jsxRuntime.jsx("div",{className:"rounded-full bg-muted p-3",children:jsxRuntime.jsx(lucideReact.Upload,{className:"h-6 w-6 text-muted-foreground"})}),jsxRuntime.jsxs("div",{className:"space-y-1",children:[jsxRuntime.jsx("p",{className:"text-sm font-medium",children:h?"Drop files here":"Drop files or click to upload"}),jsxRuntime.jsxs("p",{className:"text-xs text-muted-foreground",children:[c&&`Max ${is(c)}`,d&&d.length>0&&` \u2022 ${d.join(", ")}`]})]})]})]}),R.length>0&&jsxRuntime.jsx("div",{className:"rounded-md bg-danger/10 p-3 text-sm text-danger",children:R.map(({file:S,errors:I})=>jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("span",{className:"font-medium",children:S.name}),":"," ",I.map(A=>A.message).join(", ")]},S.name))}),i&&s.length>0&&jsxRuntime.jsx("div",{className:"space-y-2",children:s.map(S=>{let I=Nf(S.file);return jsxRuntime.jsxs("div",{className:m("flex items-center gap-3 rounded-lg border p-3",S.error&&"border-danger bg-danger/5"),children:[jsxRuntime.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-muted",children:jsxRuntime.jsx(I,{className:"h-5 w-5 text-muted-foreground"})}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("p",{className:"truncate text-sm font-medium",children:S.file.name}),jsxRuntime.jsxs("p",{className:"text-xs text-muted-foreground",children:[is(S.file.size),S.error&&jsxRuntime.jsx("span",{className:"ml-2 text-danger",children:S.error})]}),S.progress!==void 0&&S.progress<100&&jsxRuntime.jsx(_a,{value:S.progress,className:"mt-2 h-1"})]}),jsxRuntime.jsxs(ae,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0 text-muted-foreground hover:text-foreground",onClick:A=>{A.stopPropagation(),a?.(S.file);},children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Remove"})]})]},S.id)})})]})});Pf.displayName="FileUpload";var Gw=`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cg fill='%23ccc'%3E%3Crect width='4' height='4'/%3E%3Crect x='4' y='4' width='4' height='4'/%3E%3C/g%3E%3C/svg%3E")`,Lf=classVarianceAuthority.cva("relative rounded-md border border-input shadow-sm transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{xs:"h-4 w-4",sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10",xl:"h-12 w-12"},shape:{square:"rounded-md",circle:"rounded-full"},interactive:{true:"cursor-pointer hover:scale-110 active:scale-105",false:"cursor-default"}},defaultVariants:{size:"md",shape:"square",interactive:false}}),Xo=Y__namespace.forwardRef(({color:e,isSelected:t,showTransparency:n=true,onSelect:r,size:o,shape:a,interactive:s,className:i,onClick:l,disabled:c,selectedRingColor:d,...u},f)=>jsxRuntime.jsx("button",{ref:f,type:"button",disabled:c,onClick:h=>{l?.(h),r?.(e);},className:m(Lf({size:o,shape:a,interactive:s??(!!r||!!l)}),t&&"ring-2 ring-offset-2",i),style:{backgroundImage:n?Gw:void 0,backgroundSize:n?"8px 8px":void 0,...t&&{"--tw-ring-color":d||"var(--color-foreground)"}},"aria-label":`Color ${e}`,"aria-pressed":t,...u,children:jsxRuntime.jsx("span",{className:"absolute inset-0 rounded-[inherit]",style:{backgroundColor:e}})}));Xo.displayName="ColorSwatch";var Sf=classVarianceAuthority.cva("",{variants:{layout:{grid:"grid gap-2",stack:"flex flex-wrap gap-2"}},defaultVariants:{layout:"stack"}}),Df=Y__namespace.forwardRef(({value:e,defaultValue:t,onChange:n,layout:r,columns:o=6,colors:a,swatchSize:s="md",swatchShape:i="square",disabled:l,selectedRingColor:c,className:d,style:u,...f},p)=>{let[g,h]=Y__namespace.useState(t),b=e??g,v=Y__namespace.useCallback(R=>{l||(e===void 0&&h(R),n?.(R));},[e,n,l]),y=R=>R.toLowerCase();return jsxRuntime.jsx("div",{ref:p,role:"listbox","aria-label":"Color options",className:m(Sf({layout:r}),d),style:{...r==="grid"?{gridTemplateColumns:`repeat(${o}, 1fr)`}:{},...u},...f,children:a.map(R=>{let w=b?y(b)===y(R):false;return jsxRuntime.jsx(Xo,{role:"option",color:R,size:s,shape:i,isSelected:w,onSelect:v,disabled:l,selectedRingColor:c,"aria-selected":w},R)})})});Df.displayName="ColorSwatchPicker";var Ww=["#000000","#ffffff","#ef4444","#f97316","#eab308","#22c55e","#06b6d4","#3b82f6","#8b5cf6","#ec4899"],Hf={sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10"},If=Y__namespace.forwardRef(({value:e,defaultValue:t="#3b82f6",onChange:n,disabled:r,presets:o=Ww,showInput:a=true,size:s="md",className:i,variant:l="full"},c)=>{let[d,u]=Y__namespace.useState(e??t),f=Y__namespace.useId();Y__namespace.useEffect(()=>{e!==void 0&&u(e);},[e]);let p=b=>{u(b),n?.(b);},g=b=>{u(b),n?.(b);},h=b=>{let v=b.target.value.toUpperCase();u(v),n?.(v);};return l==="simple"?jsxRuntime.jsxs("label",{className:m("relative rounded-md border border-input shadow-sm transition-colors cursor-pointer hover:border-foreground focus-within:border-foreground overflow-hidden",r&&"opacity-50 cursor-not-allowed",Hf[s],i),children:[jsxRuntime.jsx("input",{type:"color",value:d,onChange:h,disabled:r,className:"absolute inset-0 h-full w-full cursor-pointer opacity-0 disabled:cursor-not-allowed",id:f}),jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundColor:d}})]}):jsxRuntime.jsxs(ot,{children:[jsxRuntime.jsx(qn,{ref:c,disabled:r,className:m("rounded-md border border-input shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",Hf[s],i),style:{backgroundColor:d},"aria-label":`Color picker, current color: ${d}`}),jsxRuntime.jsx(at,{className:"w-auto p-3",align:"start",children:jsxRuntime.jsxs("div",{className:"space-y-3",children:[jsxRuntime.jsx(reactColorful.HexColorPicker,{color:d,onChange:p,className:"!w-[200px]"}),a&&jsxRuntime.jsxs("div",{className:"space-y-1.5",children:[jsxRuntime.jsx(wr,{htmlFor:"color-input",className:"text-xs",children:"Hex Color"}),jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsx("div",{className:"h-9 w-9 shrink-0 rounded-md border",style:{backgroundColor:d}}),jsxRuntime.jsx(reactColorful.HexColorInput,{id:"color-input",color:d,onChange:p,prefixed:true,className:"flex h-9 w-full rounded-md border border-input bg-background text-foreground px-3 py-2 font-mono text-sm uppercase focus:outline-none focus:border-foreground disabled:cursor-not-allowed disabled:opacity-50"})]})]}),o.length>0&&jsxRuntime.jsxs("div",{className:"space-y-1.5",children:[jsxRuntime.jsx(wr,{className:"text-xs",children:"Presets"}),jsxRuntime.jsx("div",{className:"flex flex-wrap gap-1.5",children:o.map(b=>jsxRuntime.jsx(Xo,{color:b,size:"sm",isSelected:d.toLowerCase()===b.toLowerCase(),onSelect:g},b))})]})]})})]})});If.displayName="ColorPicker";var Vf=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),Ji=e=>String(e).padStart(2,"0"),Zw=e=>{let[t,n]=e.split(":").map(Number);return {hours:t||0,minutes:n||0}},Qw=(e,t)=>`${Ji(e)}:${Ji(t)}`,Af=Y__namespace.forwardRef(({className:e,size:t,value:n,onChange:r,use24Hour:o=true,minuteStep:a=1,showPicker:s=true,minTime:i,maxTime:l,disabled:c,...d},u)=>{let[f,p]=Y__namespace.useState(n??""),[g,h]=Y__namespace.useState(false);Y__namespace.useEffect(()=>{n!==void 0&&p(n);},[n]);let{hours:b,minutes:v}=Zw(f||"00:00"),y=N=>{let E=N.target.value;p(E),/^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/.test(E)&&r?.(E);},R=(N,E)=>{let P=Math.max(0,Math.min(23,N)),k=Math.max(0,Math.min(59,E)),D=Qw(P,k);p(D),r?.(D);},w=()=>R(b+1,v),C=()=>R(b-1,v),x=()=>R(b,v+a),M=()=>R(b,v-a),T=({value:N,onIncrement:E,onDecrement:P})=>jsxRuntime.jsxs("div",{className:"flex flex-col items-center",children:[jsxRuntime.jsx(ae,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:E,disabled:c,children:jsxRuntime.jsx(lucideReact.ChevronUp,{className:"h-4 w-4"})}),jsxRuntime.jsx("div",{className:"flex h-10 w-12 items-center justify-center rounded-md bg-muted text-lg font-semibold",children:Ji(N)}),jsxRuntime.jsx(ae,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:P,disabled:c,children:jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"})})]});return jsxRuntime.jsxs("div",{className:"relative flex items-center",children:[jsxRuntime.jsx("input",{ref:u,type:"time",value:f,onChange:y,disabled:c,className:m(Vf({size:t}),s&&"pr-10","[&::-webkit-calendar-picker-indicator]:hidden",e),...d}),s&&jsxRuntime.jsxs(ot,{open:g,onOpenChange:h,children:[jsxRuntime.jsxs(qn,{type:"button",className:"absolute right-1 h-7 w-7 p-0 inline-flex items-center justify-center rounded-md hover:bg-accent hover:text-accent-foreground disabled:cursor-not-allowed disabled:opacity-50",disabled:c,children:[jsxRuntime.jsx(lucideReact.Clock,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Pick time"})]}),jsxRuntime.jsxs(at,{className:"w-auto p-4",align:"end",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(T,{value:b,onIncrement:w,onDecrement:C,max:23}),jsxRuntime.jsx("div",{className:"text-2xl font-bold text-muted-foreground",children:":"}),jsxRuntime.jsx(T,{value:v,onIncrement:x,onDecrement:M,max:59})]}),jsxRuntime.jsxs("div",{className:"mt-4 flex justify-end gap-2",children:[jsxRuntime.jsx(ae,{variant:"bordered",size:"sm",onClick:()=>{let N=new Date;R(N.getHours(),N.getMinutes());},children:"Now"}),jsxRuntime.jsx(ae,{size:"sm",onClick:()=>h(false),children:"Done"})]})]})]})]})});Af.displayName="TimeInput";var zf=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),eC=(e,t)=>{try{return new Intl.NumberFormat(t,{style:"currency",currency:e,currencyDisplay:"narrowSymbol"}).formatToParts(0).find(a=>a.type==="currency")?.value??e}catch{return e}},el=(e,t,n,r)=>{let o=e.toFixed(t),[a,s]=o.split("."),i=a.replace(/\B(?=(\d{3})+(?!\d))/g,n);return s?`${i}${r}${s}`:i},Of=(e,t,n)=>{if(!e)return;let r=e.replace(new RegExp(`\\${t}`,"g"),"");r=r.replace(n,"."),r=r.replace(/[^0-9.-]/g,"");let o=parseFloat(r);return isNaN(o)?void 0:o},Bf=Y__namespace.forwardRef(({className:e,size:t,value:n,defaultValue:r,onChange:o,currency:a="USD",locale:s="en-US",decimals:i=2,min:l,max:c,showCurrency:d=true,currencyPosition:u="prefix",currencySymbol:f,thousandSeparator:p=",",decimalSeparator:g=".",disabled:h,placeholder:b,...v},y)=>{let[R,w]=Y__namespace.useState(r),[C,x]=Y__namespace.useState(""),[M,T]=Y__namespace.useState(false),N=n!==void 0?n:R,E=f??eC(a,s);Y__namespace.useEffect(()=>{!M&&N!==void 0&&x(el(N,i,p,g));},[N,i,p,g,M]);let P=S=>{let I=S.target.value;if(!I){x(""),n===void 0&&w(void 0),o?.(void 0);return}if(!new RegExp(`^[0-9${p}${g}.-]*$`).test(I))return;x(I);let O=Of(I,p,g);if(O!==void 0){let V=O;l!==void 0&&O<l&&(V=l),c!==void 0&&O>c&&(V=c),n===void 0&&w(V),o?.(V);}},k=()=>{T(true),N!==void 0&&x(N.toString().replace(".",g));},D=()=>{T(false),x(N!==void 0?el(N,i,p,g):"");},H=d&&u==="prefix"&&jsxRuntime.jsx("span",{className:"flex items-center text-muted-foreground pr-1",children:E}),L=d&&u==="suffix"&&jsxRuntime.jsx("span",{className:"flex items-center text-muted-foreground pl-1",children:E});return jsxRuntime.jsxs("div",{className:"relative flex items-center",children:[H&&jsxRuntime.jsx("div",{className:"absolute left-3 pointer-events-none",children:H}),jsxRuntime.jsx("input",{ref:y,type:"text",inputMode:"decimal",value:C,onChange:P,onFocus:k,onBlur:D,disabled:h,placeholder:b??`0${g}${"0".repeat(i)}`,className:m(zf({size:t}),H&&"pl-8",L&&"pr-8","text-right",e),style:{borderColor:M?"var(--color-foreground)":void 0},...v}),L&&jsxRuntime.jsx("div",{className:"absolute right-3 pointer-events-none",children:L})]})});Bf.displayName="CurrencyInput";var Ff=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50 font-mono",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),tl={creditCard:{mask:"#### #### #### ####"},creditCardAmex:{mask:"#### ###### #####"},cvv:{mask:"###"},expiry:{mask:"##/##"},date:{mask:"##/##/####"},dateISO:{mask:"####-##-##"},time:{mask:"##:##"},ip:{mask:"###.###.###.###"},mac:{mask:"AA:AA:AA:AA:AA:AA"},id11:{mask:"###########"},id9:{mask:"#########"},id10:{mask:"##########"},postal5:{mask:"#####"},postal9:{mask:"#####-####"}},rC=(e,t)=>{switch(t){case "#":return /\d/.test(e);case "A":return /[a-zA-Z]/.test(e);case "*":return /[a-zA-Z0-9]/.test(e);default:return e===t}},rr=e=>["#","A","*"].includes(e),cs=(e,t,n)=>{let r="",o=0;for(let a=0;a<t.length&&o<=e.length;a++){let s=t[a];if(rr(s)){if(o<e.length){let i=e[o];rC(i,s)?(r+=i,o++):(o++,a--);}}else (o<e.length||n)&&(r+=s);}return r},nl=(e,t)=>{let n="";for(let r=0;r<e.length&&r<t.length;r++){let o=t[r];rr(o)&&(n+=e[r]);}return n},Kf=(e,t)=>e.split("").map(n=>rr(n)?t:n).join(""),oC=(e,t,n)=>{let r=0;for(let i=0;i<n&&i<e.length&&i<t.length;i++)rr(t[i])&&r++;let a=0,s=0;for(let i=0;i<t.length&&s<r;i++)a++,rr(t[i])&&s++;for(;a<t.length&&!rr(t[a]);)a++;return Math.min(a,e.length)},$f=Y__namespace.forwardRef(({className:e,size:t,value:n,defaultValue:r="",onChange:o,mask:a,maskPlaceholder:s="_",showMaskPlaceholder:i=false,includeMaskChars:l=false,disabled:c,placeholder:d,...u},f)=>{let p=typeof a=="string"&&a in tl?tl[a].mask:a,[g,h]=Y__namespace.useState(r),[b,v]=Y__namespace.useState(""),[y,R]=Y__namespace.useState(false),w=Y__namespace.useRef(null),C=n!==void 0?n:g;Y__namespace.useImperativeHandle(f,()=>w.current),Y__namespace.useEffect(()=>{let N=cs(C,p,true);v(N);},[C,p]);let x=N=>{let E=N.target.value,P=N.target.selectionStart??0,k=E.replace(/[^\w]/g,""),D=cs(k,p,true),H=nl(D,p);v(D),n===void 0&&h(l?D:H),o?.(H,D),requestAnimationFrame(()=>{if(w.current){let L=oC(D,p,P);w.current.setSelectionRange(L,L);}});},M=N=>{if(["ArrowLeft","ArrowRight","Home","End","Tab"].includes(N.key)||N.ctrlKey||N.metaKey)return;let E=w.current;if(!E)return;let P=E.selectionStart??0;if(N.key==="Backspace"&&P>0){let k=P-1;for(;k>0&&!rr(p[k]);)k--;let D=nl(b,p),H=0;for(let I=0;I<k&&I<p.length;I++)rr(p[I])&&H++;let L=D.slice(0,Math.max(0,H-1))+D.slice(H),S=cs(L,p,true);v(S),n===void 0&&h(l?S:L),o?.(L,S),N.preventDefault(),requestAnimationFrame(()=>{w.current&&w.current.setSelectionRange(k,k);});}},T=i?Kf(p,s):d;return jsxRuntime.jsx("input",{ref:w,type:"text",value:b,onChange:x,onKeyDown:M,onFocus:()=>R(true),onBlur:()=>R(false),disabled:c,placeholder:T,className:m(Ff({size:t}),e),style:{borderColor:y?"var(--color-foreground)":void 0},...u})});$f.displayName="MaskedInput";var cC=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),Uf=[{code:"AR",name:"Argentina",dialCode:"+54",flag:"\u{1F1E6}\u{1F1F7}",format:"## ####-####"},{code:"AU",name:"Australia",dialCode:"+61",flag:"\u{1F1E6}\u{1F1FA}",format:"### ### ###"},{code:"AT",name:"Austria",dialCode:"+43",flag:"\u{1F1E6}\u{1F1F9}",format:"### #######"},{code:"BE",name:"Belgium",dialCode:"+32",flag:"\u{1F1E7}\u{1F1EA}",format:"### ## ## ##"},{code:"BR",name:"Brazil",dialCode:"+55",flag:"\u{1F1E7}\u{1F1F7}",format:"(##) #####-####"},{code:"BG",name:"Bulgaria",dialCode:"+359",flag:"\u{1F1E7}\u{1F1EC}",format:"### ### ###"},{code:"CA",name:"Canada",dialCode:"+1",flag:"\u{1F1E8}\u{1F1E6}",format:"(###) ###-####"},{code:"CN",name:"China",dialCode:"+86",flag:"\u{1F1E8}\u{1F1F3}",format:"### #### ####"},{code:"HR",name:"Croatia",dialCode:"+385",flag:"\u{1F1ED}\u{1F1F7}",format:"## ### ####"},{code:"CZ",name:"Czech Republic",dialCode:"+420",flag:"\u{1F1E8}\u{1F1FF}",format:"### ### ###"},{code:"DK",name:"Denmark",dialCode:"+45",flag:"\u{1F1E9}\u{1F1F0}",format:"## ## ## ##"},{code:"EG",name:"Egypt",dialCode:"+20",flag:"\u{1F1EA}\u{1F1EC}",format:"### ### ####"},{code:"FI",name:"Finland",dialCode:"+358",flag:"\u{1F1EB}\u{1F1EE}",format:"## ### ####"},{code:"FR",name:"France",dialCode:"+33",flag:"\u{1F1EB}\u{1F1F7}",format:"# ## ## ## ##"},{code:"DE",name:"Germany",dialCode:"+49",flag:"\u{1F1E9}\u{1F1EA}",format:"#### #######"},{code:"GR",name:"Greece",dialCode:"+30",flag:"\u{1F1EC}\u{1F1F7}",format:"### ### ####"},{code:"HK",name:"Hong Kong",dialCode:"+852",flag:"\u{1F1ED}\u{1F1F0}",format:"#### ####"},{code:"HU",name:"Hungary",dialCode:"+36",flag:"\u{1F1ED}\u{1F1FA}",format:"## ### ####"},{code:"IN",name:"India",dialCode:"+91",flag:"\u{1F1EE}\u{1F1F3}",format:"##### #####"},{code:"IL",name:"Israel",dialCode:"+972",flag:"\u{1F1EE}\u{1F1F1}",format:"##-###-####"},{code:"IT",name:"Italy",dialCode:"+39",flag:"\u{1F1EE}\u{1F1F9}",format:"### ### ####"},{code:"JP",name:"Japan",dialCode:"+81",flag:"\u{1F1EF}\u{1F1F5}",format:"##-####-####"},{code:"MX",name:"Mexico",dialCode:"+52",flag:"\u{1F1F2}\u{1F1FD}",format:"### ### ####"},{code:"NL",name:"Netherlands",dialCode:"+31",flag:"\u{1F1F3}\u{1F1F1}",format:"## ########"},{code:"NZ",name:"New Zealand",dialCode:"+64",flag:"\u{1F1F3}\u{1F1FF}",format:"## ### ####"},{code:"NG",name:"Nigeria",dialCode:"+234",flag:"\u{1F1F3}\u{1F1EC}",format:"### ### ####"},{code:"NO",name:"Norway",dialCode:"+47",flag:"\u{1F1F3}\u{1F1F4}",format:"### ## ###"},{code:"PK",name:"Pakistan",dialCode:"+92",flag:"\u{1F1F5}\u{1F1F0}",format:"### #######"},{code:"PL",name:"Poland",dialCode:"+48",flag:"\u{1F1F5}\u{1F1F1}",format:"### ### ###"},{code:"PT",name:"Portugal",dialCode:"+351",flag:"\u{1F1F5}\u{1F1F9}",format:"### ### ###"},{code:"RO",name:"Romania",dialCode:"+40",flag:"\u{1F1F7}\u{1F1F4}",format:"### ### ###"},{code:"RU",name:"Russia",dialCode:"+7",flag:"\u{1F1F7}\u{1F1FA}",format:"(###) ###-##-##"},{code:"SA",name:"Saudi Arabia",dialCode:"+966",flag:"\u{1F1F8}\u{1F1E6}",format:"## ### ####"},{code:"RS",name:"Serbia",dialCode:"+381",flag:"\u{1F1F7}\u{1F1F8}",format:"## ### ####"},{code:"SG",name:"Singapore",dialCode:"+65",flag:"\u{1F1F8}\u{1F1EC}",format:"#### ####"},{code:"SK",name:"Slovakia",dialCode:"+421",flag:"\u{1F1F8}\u{1F1F0}",format:"### ### ###"},{code:"SI",name:"Slovenia",dialCode:"+386",flag:"\u{1F1F8}\u{1F1EE}",format:"## ### ###"},{code:"ZA",name:"South Africa",dialCode:"+27",flag:"\u{1F1FF}\u{1F1E6}",format:"## ### ####"},{code:"KR",name:"South Korea",dialCode:"+82",flag:"\u{1F1F0}\u{1F1F7}",format:"##-####-####"},{code:"ES",name:"Spain",dialCode:"+34",flag:"\u{1F1EA}\u{1F1F8}",format:"### ### ###"},{code:"SE",name:"Sweden",dialCode:"+46",flag:"\u{1F1F8}\u{1F1EA}",format:"##-### ## ##"},{code:"CH",name:"Switzerland",dialCode:"+41",flag:"\u{1F1E8}\u{1F1ED}",format:"## ### ## ##"},{code:"TW",name:"Taiwan",dialCode:"+886",flag:"\u{1F1F9}\u{1F1FC}",format:"### ### ###"},{code:"TR",name:"Turkey",dialCode:"+90",flag:"\u{1F1F9}\u{1F1F7}",format:"(###) ### ## ##"},{code:"UA",name:"Ukraine",dialCode:"+380",flag:"\u{1F1FA}\u{1F1E6}",format:"## ### ## ##"},{code:"AE",name:"United Arab Emirates",dialCode:"+971",flag:"\u{1F1E6}\u{1F1EA}",format:"## ### ####"},{code:"GB",name:"United Kingdom",dialCode:"+44",flag:"\u{1F1EC}\u{1F1E7}",format:"#### ### ####"},{code:"US",name:"United States",dialCode:"+1",flag:"\u{1F1FA}\u{1F1F8}",format:"(###) ###-####"}],ds=(e,t)=>{let n=e.replace(/\D/g,""),r="",o=0;for(let a=0;a<t.length&&o<n.length;a++)t[a]==="#"?(r+=n[o],o++):r+=t[a];return r},dC=e=>e.replace(/#/g,"_"),jf=Y__namespace.forwardRef(({className:e,size:t,value:n,defaultValue:r="",onChange:o,country:a,defaultCountry:s="TR",onCountryChange:i,countries:l=Uf,showCountrySelect:c=true,showDialCode:d=false,disabled:u,placeholder:f,...p},g)=>{let[h,b]=Y__namespace.useState(r),[v,y]=Y__namespace.useState(a??s),[R,w]=Y__namespace.useState(false),[C,x]=Y__namespace.useState(false),[M,T]=Y__namespace.useState(false),[N,E]=Y__namespace.useState({top:0,left:0,width:0}),P=Y__namespace.useRef(null),k=Y__namespace.useRef(null),D=n!==void 0?n:h,H=a??v,L=l.find(z=>z.code===H)??l[0],S=ds(D,L.format);Y__namespace.useEffect(()=>{T(true);},[]),Y__namespace.useEffect(()=>{if(C&&P.current){let z=P.current.getBoundingClientRect();E({top:z.bottom+4,left:z.left,width:Math.max(z.width,280)});}},[C]),Y__namespace.useEffect(()=>{if(!C)return;let z=K=>{P.current&&!P.current.contains(K.target)&&k.current&&!k.current.contains(K.target)&&x(false);};return document.addEventListener("mousedown",z),()=>document.removeEventListener("mousedown",z)},[C]),Y__namespace.useEffect(()=>{if(!C)return;let z=K=>{K.key==="Escape"&&x(false);};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[C]);let I=z=>{let _=z.target.value.replace(/\D/g,"");n===void 0&&b(_);let X=ds(_,L.format),$=`${L.dialCode} ${X}`;o?.(_,$,L);},A=z=>{let K=l.find($=>$.code===z);if(!K)return;a===void 0&&y(z),i?.(K);let _=ds(D,K.format),X=`${K.dialCode} ${_}`;o?.(D,X,K),x(false);},O=t==="sm"?"h-8":t==="lg"?"h-12":"h-10",V=R||C;return jsxRuntime.jsxs("div",{className:m("flex rounded-lg border border-input bg-background transition-colors",V&&"border-foreground",u&&"cursor-not-allowed opacity-50"),children:[c&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("button",{ref:P,type:"button",disabled:u,onClick:()=>x(!C),className:m("flex items-center justify-between bg-transparent px-3 py-2 text-sm focus:outline-none disabled:cursor-not-allowed disabled:opacity-50","w-[100px] shrink-0 border-r border-input",V&&"border-foreground",O),children:[jsxRuntime.jsxs("span",{className:"flex items-center gap-1.5",children:[jsxRuntime.jsx("span",{children:L.flag}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:L.dialCode})]}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:m("h-4 w-4 opacity-50 transition-transform",C&&"rotate-180")})]}),M&&C&&Ba__namespace.createPortal(jsxRuntime.jsx("div",{ref:k,className:"fixed z-50 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95",style:{top:N.top,left:N.left,minWidth:N.width},children:jsxRuntime.jsx(ke,{style:{maxHeight:300},children:jsxRuntime.jsx("div",{className:"p-1",children:l.map(z=>jsxRuntime.jsxs("div",{role:"option","aria-selected":z.code===H,onClick:()=>A(z.code),className:"relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:z.code===H&&jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})}),jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{children:z.flag}),jsxRuntime.jsx("span",{className:"flex-1",children:z.name}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:z.dialCode})]})]},z.code))})})}),document.body)]}),jsxRuntime.jsxs("div",{className:"relative flex-1",children:[d&&!c&&jsxRuntime.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:L.dialCode}),jsxRuntime.jsx("input",{ref:g,type:"tel",inputMode:"tel",value:S,onChange:I,onFocus:()=>w(true),onBlur:()=>w(false),disabled:u,placeholder:f??dC(L.format),className:m("flex h-10 w-full bg-transparent px-3 py-2 text-sm placeholder:text-muted-foreground focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",t==="sm"&&"h-8 px-2 text-xs",t==="lg"&&"h-12 px-4 text-base",d&&!c&&"pl-12",e),...p})]})]})});jf.displayName="PhoneInput";var _f=classVarianceAuthority.cva("flex items-center justify-between w-full px-4 py-3 border-b bg-background",{variants:{variant:{solid:"bg-primary text-primary-foreground border-primary",bordered:"bg-background border-border",ghost:"bg-transparent border-transparent",soft:"bg-primary/10 border-primary/20",surface:"bg-muted border-border"},size:{sm:"h-12 px-3 py-2",md:"h-14 px-4 py-3",lg:"h-16 px-6 py-4"},sticky:{true:"sticky top-0 z-50",false:""}},defaultVariants:{variant:"bordered",size:"md",sticky:false}}),Yf=Y__namespace.forwardRef(({className:e,variant:t,size:n,sticky:r,brand:o,children:a,mobileBreakpoint:s="md",...i},l)=>{let[c,d]=Y__namespace.useState(false),u={sm:"hidden sm:flex",md:"hidden md:flex",lg:"hidden lg:flex"}[s],f={sm:"sm:hidden",md:"md:hidden",lg:"lg:hidden"}[s];return jsxRuntime.jsxs("nav",{ref:l,className:m(_f({variant:t,size:n,sticky:r,className:e})),...i,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between w-full",children:[o&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:o}),jsxRuntime.jsx("div",{className:m("items-center gap-4 flex-1 justify-end",u),children:a}),jsxRuntime.jsx("button",{type:"button",className:m("p-2 rounded-md hover:bg-accent hover:text-accent-foreground transition-colors",f),onClick:()=>d(!c),"aria-label":c?"Close menu":"Open menu","aria-expanded":c,children:c?jsxRuntime.jsx(lucideReact.X,{className:"h-5 w-5"}):jsxRuntime.jsx(lucideReact.Menu,{className:"h-5 w-5"})})]}),c&&jsxRuntime.jsx("div",{className:m("absolute top-full left-0 right-0 flex flex-col gap-2 p-4 bg-background border-b border-border shadow-lg",f),children:a})]})});Yf.displayName="Navbar";var Xf=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,className:m("flex items-center gap-2 font-semibold text-lg",e),...t}));Xf.displayName="NavbarBrand";var qf=Y__namespace.forwardRef(({className:e,justify:t="start",...n},r)=>{let o={start:"justify-start",center:"justify-center",end:"justify-end"}[t];return jsxRuntime.jsx("div",{ref:r,className:m("flex items-center gap-4",o,e),...n})});qf.displayName="NavbarContent";var Zf=Y__namespace.forwardRef(({className:e,isActive:t,...n},r)=>jsxRuntime.jsx("div",{ref:r,className:m("flex items-center",t&&"text-primary font-medium",e),...n}));Zf.displayName="NavbarItem";var Qf=Y__namespace.forwardRef(({className:e,isActive:t,...n},r)=>jsxRuntime.jsx("a",{ref:r,className:m("text-sm font-medium transition-colors hover:text-primary",t?"text-primary":"text-muted-foreground",e),...n}));Qf.displayName="NavbarLink";var eg=classVarianceAuthority.cva("inline-flex items-center gap-1 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{solid:"text-primary-foreground bg-primary px-2 py-0.5 rounded hover:bg-primary/90",bordered:"text-primary underline-offset-4 hover:underline",ghost:"text-foreground hover:text-primary",soft:"text-primary bg-primary/10 px-2 py-0.5 rounded hover:bg-primary/20",surface:"text-foreground bg-muted px-2 py-0.5 rounded hover:bg-muted/80"},size:{sm:"text-xs",md:"text-sm",lg:"text-base"},underline:{none:"",hover:"hover:underline underline-offset-4",always:"underline underline-offset-4"}},defaultVariants:{variant:"bordered",size:"md",underline:"hover"}}),tg=Y__namespace.forwardRef(({className:e,variant:t,size:n,underline:r,isExternal:o,showExternalIcon:a=true,isDisabled:s,children:i,...l},c)=>{let d=o?{target:"_blank",rel:"noopener noreferrer"}:{};return jsxRuntime.jsxs("a",{ref:c,className:m(eg({variant:t,size:n,underline:r,className:e}),s&&"pointer-events-none opacity-50"),"aria-disabled":s,...d,...l,children:[i,o&&a&&jsxRuntime.jsx(lucideReact.ExternalLink,{className:"h-3 w-3 ml-0.5","aria-hidden":"true"})]})});tg.displayName="Link";var ng=classVarianceAuthority.cva("fixed z-50 transition-all duration-300",{variants:{position:{"bottom-right":"bottom-6 right-6","bottom-left":"bottom-6 left-6","bottom-center":"bottom-6 left-1/2 -translate-x-1/2"}},defaultVariants:{position:"bottom-right"}}),rg=Y__namespace.forwardRef(({className:e,position:t,threshold:n=400,icon:r,behavior:o="smooth",variant:a="solid",color:s="default",size:i="md",radius:l="full",target:c,onVisibilityChange:d,onClick:u,...f},p)=>{let[g,h]=Y__namespace.useState(false);Y__namespace.useEffect(()=>{let y=c?.current||window,R=()=>{let C=(c?.current?c.current.scrollTop:window.scrollY||document.documentElement.scrollTop)>n;C!==g&&(h(C),d?.(C));};return y.addEventListener("scroll",R,{passive:true}),R(),()=>{y.removeEventListener("scroll",R);}},[n,c,g,d]);let b=y=>{c?.current?c.current.scrollTo({top:0,behavior:o}):window.scrollTo({top:0,behavior:o}),u?.(y);},v=i==="sm"?"h-4 w-4":i==="lg"?"h-6 w-6":"h-5 w-5";return jsxRuntime.jsx("div",{className:m(ng({position:t}),g?"opacity-100 translate-y-0 pointer-events-auto":"opacity-0 translate-y-4 pointer-events-none",e),children:jsxRuntime.jsx(ae,{ref:p,type:"button",variant:a,color:s,size:i,isIconOnly:true,radius:l,onClick:b,"aria-label":"Back to top",className:"shadow-lg",...f,children:r||jsxRuntime.jsx(lucideReact.ArrowUp,{className:v})})})});rg.displayName="BackTop";var TC=classVarianceAuthority.cva("",{variants:{radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-full"}},defaultVariants:{radius:"sm"}}),MC=classVarianceAuthority.cva("",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"sm"}}),og=classVarianceAuthority.cva("",{variants:{radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-2xl"}},defaultVariants:{radius:"sm"}}),ps=classVarianceAuthority.cva("",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-xl"}},defaultVariants:{radius:"sm"}}),ag=Y__namespace.createContext(null),ar=()=>{let e=Y__namespace.useContext(ag);if(!e)throw new Error("Menubar components must be used within a Menubar");return e},sg=Y__namespace.createContext(null),Zo=()=>{let e=Y__namespace.useContext(sg);if(!e)throw new Error("Menu components must be used within a MenubarMenu");return e},ol=Y__namespace.createContext(null),ig=Y__namespace.createContext(null),lg=Y__namespace.forwardRef(({className:e,children:t,radius:n="sm",...r},o)=>{let[a,s]=Y__namespace.useState(null);return jsxRuntime.jsx(ag.Provider,{value:{activeMenu:a,setActiveMenu:s,radius:n},children:jsxRuntime.jsx("div",{ref:o,role:"menubar",className:m("flex h-10 items-center space-x-1 border bg-background p-1",TC({radius:n}),e),...r,children:t})})});lg.displayName="Menubar";var cg=({children:e})=>{let{activeMenu:t,setActiveMenu:n}=ar(),r=Y__namespace.useId(),o=Y__namespace.useRef(null),a=t===r,s=Y__namespace.useCallback(i=>{n(i?r:null);},[r,n]);return jsxRuntime.jsx(sg.Provider,{value:{menuId:r,triggerRef:o,open:a,onOpenChange:s},children:e})};cg.displayName="MenubarMenu";var dg=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,role:"group",className:e,...t}));dg.displayName="MenubarGroup";var ug=({children:e,container:t})=>{let[n,r]=Y__namespace.useState(false);return Y__namespace.useEffect(()=>{r(true);},[]),n?Ba__namespace.createPortal(e,t||document.body):null};ug.displayName="MenubarPortal";var mg=({children:e,open:t,defaultOpen:n=false,onOpenChange:r})=>{let[o,a]=Y__namespace.useState(n),s=t!==void 0,i=s?t:o,l=Y__namespace.useRef(null),c=Y__namespace.useCallback(d=>{s||a(d),r?.(d);},[s,r]);return jsxRuntime.jsx(ol.Provider,{value:{open:i,onOpenChange:c,triggerRef:l},children:e})};mg.displayName="MenubarSub";var pg=Y__namespace.forwardRef(({value:e="",onValueChange:t,className:n,...r},o)=>jsxRuntime.jsx(ig.Provider,{value:{value:e,onValueChange:t||(()=>{})},children:jsxRuntime.jsx("div",{ref:o,role:"group",className:n,...r})}));pg.displayName="MenubarRadioGroup";var fg=Y__namespace.forwardRef(({className:e,onClick:t,onMouseEnter:n,...r},o)=>{let{activeMenu:a,setActiveMenu:s,radius:i}=ar(),{menuId:l,triggerRef:c,open:d,onOpenChange:u}=Zo(),f=g=>{t?.(g),u(!d);},p=g=>{n?.(g),a&&a!==l&&(s(l),document.activeElement instanceof HTMLElement&&document.activeElement.blur());};return jsxRuntime.jsx("button",{ref:g=>{c.current=g,typeof o=="function"?o(g):o&&(o.current=g);},type:"button",role:"menuitem","aria-haspopup":"menu","aria-expanded":d,"data-state":d?"open":"closed",className:m("flex cursor-default select-none items-center px-3 py-1.5 text-sm font-medium outline-none hover:bg-accent hover:text-accent-foreground focus-visible:bg-accent focus-visible:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",MC({radius:i}),e),onClick:f,onMouseEnter:p,...r})});fg.displayName="MenubarTrigger";var gg=Y__namespace.forwardRef(({className:e,inset:t,children:n,onMouseEnter:r,onMouseLeave:o,...a},s)=>{let{radius:i}=ar(),l=Y__namespace.useContext(ol);if(!l)throw new Error("MenubarSubTrigger must be used within MenubarSub");let{open:c,onOpenChange:d,triggerRef:u}=l,f=g=>{r?.(g),d(true);},p=g=>{o?.(g),d(false);};return jsxRuntime.jsxs("div",{ref:g=>{u.current=g,typeof s=="function"?s(g):s&&(s.current=g);},role:"menuitem","aria-haspopup":"menu","aria-expanded":c,"data-state":c?"open":"closed",className:m("flex cursor-default select-none items-center px-2 py-1.5 text-sm outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",ps({radius:i}),t&&"pl-8",e),onMouseEnter:f,onMouseLeave:p,...a,children:[n,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto h-4 w-4"})]})});gg.displayName="MenubarSubTrigger";var bg=Y__namespace.forwardRef(({className:e,sideOffset:t=2,onMouseEnter:n,onMouseLeave:r,...o},a)=>{let{radius:s}=ar(),i=Y__namespace.useContext(ol);if(!i)throw new Error("MenubarSubContent must be used within MenubarSub");let{open:l,onOpenChange:c,triggerRef:d}=i,[u,f]=Y__namespace.useState({top:0,left:0}),[p,g]=Y__namespace.useState(false),h=Y__namespace.useRef(null);Y__namespace.useEffect(()=>{g(true);},[]),Y__namespace.useEffect(()=>{if(!l||!d.current||!h.current)return;(()=>{if(!d.current||!h.current)return;let R=d.current.getBoundingClientRect(),w=h.current.getBoundingClientRect(),C=R.top,x=R.right+t;x+w.width>window.innerWidth&&(x=R.left-w.width-t),f({top:C,left:x});})();},[l,t,d]);let b=y=>{n?.(y),c(true);},v=y=>{r?.(y),c(false);};return !p||!l?null:Ba__namespace.createPortal(jsxRuntime.jsx("div",{ref:y=>{h.current=y,typeof a=="function"?a(y):a&&(a.current=y);},role:"menu","data-state":l?"open":"closed",className:m("fixed z-50 min-w-[8rem] overflow-hidden border bg-popover p-1 text-popover-foreground shadow-lg","animate-in fade-in-0 zoom-in-95 slide-in-from-left-2",og({radius:s}),e),style:{top:u.top,left:u.left},onMouseEnter:b,onMouseLeave:v,...o}),document.body)});bg.displayName="MenubarSubContent";var vg=Y__namespace.forwardRef(({className:e,align:t="start",alignOffset:n=-4,sideOffset:r=8,children:o,...a},s)=>{let{radius:i}=ar(),{triggerRef:l,open:c,onOpenChange:d}=Zo(),[u,f]=Y__namespace.useState({top:0,left:0}),[p,g]=Y__namespace.useState(false),h=Y__namespace.useRef(null);return Y__namespace.useEffect(()=>{g(true);},[]),Y__namespace.useEffect(()=>{if(!c||!l.current||!h.current)return;let b=()=>{if(!l.current||!h.current)return;let v=l.current.getBoundingClientRect(),y=h.current.getBoundingClientRect(),R=v.bottom+r,w=v.left+n;t==="center"?w=v.left+v.width/2-y.width/2:t==="end"&&(w=v.right-y.width-n),f({top:R,left:w});};return b(),window.addEventListener("resize",b),window.addEventListener("scroll",b,true),()=>{window.removeEventListener("resize",b),window.removeEventListener("scroll",b,true);}},[c,t,n,r,l]),Y__namespace.useEffect(()=>{if(!c)return;let b=v=>{let y=v.target;h.current&&!h.current.contains(y)&&l.current&&!l.current.contains(y)&&d(false);};return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[c,d,l]),Y__namespace.useEffect(()=>{if(!c)return;let b=v=>{v.key==="Escape"&&d(false);};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[c,d]),!p||!c?null:Ba__namespace.createPortal(jsxRuntime.jsx("div",{ref:b=>{h.current=b,typeof s=="function"?s(b):s&&(s.current=b);},role:"menu","data-state":c?"open":"closed",className:m("fixed z-50 min-w-[12rem] overflow-hidden border bg-popover p-1 text-popover-foreground shadow-md","animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",og({radius:i}),e),style:{top:u.top,left:u.left},...a,children:o}),document.body)});vg.displayName="MenubarContent";var hg=Y__namespace.forwardRef(({className:e,inset:t,disabled:n,onSelect:r,onClick:o,...a},s)=>{let{radius:i}=ar(),{onOpenChange:l}=Zo(),c=d=>{if(n){d.preventDefault();return}o?.(d),r?.(),l(false);};return jsxRuntime.jsx("div",{ref:s,role:"menuitem",tabIndex:n?-1:0,"aria-disabled":n,"data-disabled":n?"":void 0,className:m("relative flex cursor-default select-none items-center px-2 py-1.5 text-sm outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",ps({radius:i}),t&&"pl-8",!n&&"cursor-pointer",e),onClick:c,...a})});hg.displayName="MenubarItem";var xg=Y__namespace.forwardRef(({className:e,children:t,checked:n=false,onCheckedChange:r,disabled:o,onClick:a,...s},i)=>{let{radius:l}=ar(),{onOpenChange:c}=Zo(),d=u=>{if(o){u.preventDefault();return}a?.(u),r?.(!n),c(false);};return jsxRuntime.jsxs("div",{ref:i,role:"menuitemcheckbox","aria-checked":n,tabIndex:o?-1:0,"aria-disabled":o,"data-disabled":o?"":void 0,"data-state":n?"checked":"unchecked",className:m("relative flex cursor-default select-none items-center py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",ps({radius:l}),!o&&"cursor-pointer",e),onClick:d,...s,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:n&&jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})}),t]})});xg.displayName="MenubarCheckboxItem";var yg=Y__namespace.forwardRef(({className:e,children:t,value:n,disabled:r,onClick:o,...a},s)=>{let{radius:i}=ar(),{onOpenChange:l}=Zo(),c=Y__namespace.useContext(ig),d=c?.value===n,u=f=>{if(r){f.preventDefault();return}o?.(f),c?.onValueChange(n),l(false);};return jsxRuntime.jsxs("div",{ref:s,role:"menuitemradio","aria-checked":d,tabIndex:r?-1:0,"aria-disabled":r,"data-disabled":r?"":void 0,"data-state":d?"checked":"unchecked",className:m("relative flex cursor-default select-none items-center py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",ps({radius:i}),!r&&"cursor-pointer",e),onClick:u,...a,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d&&jsxRuntime.jsx(lucideReact.Circle,{className:"h-2 w-2 fill-current"})}),t]})});yg.displayName="MenubarRadioItem";var Rg=Y__namespace.forwardRef(({className:e,inset:t,...n},r)=>jsxRuntime.jsx("div",{ref:r,className:m("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));Rg.displayName="MenubarLabel";var wg=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,role:"separator",className:m("-mx-1 my-1 h-px bg-muted",e),...t}));wg.displayName="MenubarSeparator";var Cg=({className:e,...t})=>jsxRuntime.jsx("span",{className:m("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Cg.displayName="MenubarShortcut";var Tg=classVarianceAuthority.cva("flex",{variants:{orientation:{horizontal:"flex-row items-center",vertical:"flex-col"},size:{sm:"gap-2",md:"gap-4",lg:"gap-6"}},defaultVariants:{orientation:"horizontal",size:"md"}}),Mg=Y__namespace.forwardRef(({className:e,orientation:t,size:n,currentStep:r=0,children:o,...a},s)=>{let i=Y__namespace.Children.toArray(o);return jsxRuntime.jsx("div",{ref:s,className:m(Tg({orientation:t,size:n,className:e})),...a,children:i.map((l,c)=>Y__namespace.isValidElement(l)?Y__namespace.cloneElement(l,{...l.props,stepNumber:c+1,status:l.props.status||(c<r?"completed":c===r?"current":"upcoming"),isLast:c===i.length-1,orientation:t,size:n}):l)})});Mg.displayName="Steps";var Ng=classVarianceAuthority.cva("flex items-center",{variants:{orientation:{horizontal:"flex-row",vertical:"flex-col items-start"},size:{sm:"gap-2",md:"gap-3",lg:"gap-4"}},defaultVariants:{orientation:"horizontal",size:"md"}}),kC=classVarianceAuthority.cva("flex items-center justify-center rounded-full font-medium transition-colors",{variants:{status:{completed:"bg-primary text-primary-foreground",current:"bg-primary text-primary-foreground ring-2 ring-primary ring-offset-2 ring-offset-background",upcoming:"bg-muted text-muted-foreground border-2 border-muted-foreground/30"},size:{sm:"h-6 w-6 text-xs",md:"h-8 w-8 text-sm",lg:"h-10 w-10 text-base"}},defaultVariants:{status:"upcoming",size:"md"}}),PC=classVarianceAuthority.cva("bg-muted transition-colors",{variants:{orientation:{horizontal:"h-0.5 flex-1 min-w-8",vertical:"w-0.5 min-h-8 ml-4"},status:{completed:"bg-primary",current:"bg-muted",upcoming:"bg-muted"}},defaultVariants:{orientation:"horizontal",status:"upcoming"}}),kg=Y__namespace.forwardRef(({className:e,orientation:t="horizontal",size:n="md",title:r,description:o,icon:a,status:s="upcoming",stepNumber:i,isLast:l,...c},d)=>jsxRuntime.jsxs("div",{ref:d,className:m(Ng({orientation:t,size:n,className:e}),!l&&t==="horizontal"&&"flex-1"),...c,children:[jsxRuntime.jsx("div",{className:m("flex items-center",t==="vertical"&&"flex-col items-start"),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntime.jsx("div",{className:m(kC({status:s,size:n})),children:s==="completed"?jsxRuntime.jsx(lucideReact.Check,{className:n==="sm"?"h-3 w-3":n==="lg"?"h-5 w-5":"h-4 w-4"}):a||i}),(r||o)&&jsxRuntime.jsxs("div",{className:"flex flex-col",children:[r&&jsxRuntime.jsx("span",{className:m("font-medium",n==="sm"&&"text-sm",n==="lg"&&"text-lg",s==="upcoming"&&"text-muted-foreground"),children:r}),o&&jsxRuntime.jsx("span",{className:m("text-muted-foreground",n==="sm"&&"text-xs",n==="md"&&"text-sm",n==="lg"&&"text-base"),children:o})]})]})}),!l&&jsxRuntime.jsx("div",{className:m(PC({orientation:t,status:s==="completed"?"completed":"upcoming"}),t==="vertical"&&"my-2")})]}));kg.displayName="Step";var Eg=classVarianceAuthority.cva("flex flex-col select-none",{variants:{variant:{default:"",bordered:"rounded-lg border",filled:"bg-muted/30 rounded-lg p-2"},size:{sm:"[--tree-indent:16px] [--tree-item-height:28px] text-xs",md:"[--tree-indent:20px] [--tree-item-height:32px] text-sm",lg:"[--tree-indent:24px] [--tree-item-height:40px] text-base"}},defaultVariants:{variant:"default",size:"md"}}),Lg=classVarianceAuthority.cva("flex items-center py-1.5 px-2 rounded-sm transition-colors",{variants:{size:{sm:"py-1 px-1.5 text-sm min-h-[var(--tree-item-height)]",md:"py-1.5 px-2 text-sm min-h-[var(--tree-item-height)]",lg:"py-2 px-3 text-base min-h-[var(--tree-item-height)]"},isSelected:{true:"bg-primary/10 text-primary",false:""},isDragging:{true:"opacity-50",false:""},isDisabled:{true:"opacity-50 cursor-not-allowed",false:""},isHoverable:{true:"hover:bg-muted/50 cursor-pointer",false:""}},defaultVariants:{size:"md",isSelected:false,isDragging:false,isDisabled:false,isHoverable:true}}),Sg=Y__namespace.createContext(null),AC=()=>{let e=Y__namespace.useContext(Sg);if(!e)throw new Error("TreeNodeComponent must be used within Tree");return e},zC=({checked:e,indeterminate:t,disabled:n,onClick:r})=>jsxRuntime.jsx("button",{type:"button",role:"checkbox","aria-checked":t?"mixed":e,disabled:n,onClick:o=>{o.stopPropagation(),n||r(o);},className:m("h-4 w-4 shrink-0 rounded-sm border border-primary transition-colors","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",(e||t)&&"bg-primary text-primary-foreground",n&&"cursor-not-allowed opacity-50"),children:(e||t)&&jsxRuntime.jsx("span",{className:"flex items-center justify-center text-current",children:t?jsxRuntime.jsx(lucideReact.Minus,{className:"h-3 w-3"}):jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})})}),Dg=({node:e,level:t,isLast:n=false,parentIsLastPath:r=[]})=>{let{expandedKeys:o,toggleExpand:a,selectedKeys:s,handleSelect:i,selectable:l,checkedKeys:c,halfCheckedKeys:d,handleCheck:u,checkable:f,draggable:p,draggedNode:g,setDraggedNode:h,dragOverKey:b,dragOverPosition:v,setDragOver:y,handleDrop:R,allowDrop:w,onDragStart:C,onDragOver:x,onDragEnter:M,onDragLeave:T,onDragEnd:N,showLine:E,showIcon:P,showHandle:k,dragIcon:D,icon:H,leafIcon:L,folderIcon:S,folderOpenIcon:I,blockNode:A,disabled:O,size:V,getAllKeys:z}=AC(),K=e.children&&e.children.length>0,_=e.isLeaf??!K,X=o.has(e.key),$=s.has(e.key),B=c.has(e.key),U=d.has(e.key),j=g?.key===e.key,F=b===e.key,Z=!!(O||e.disabled),ue=l&&e.selectable!==false,G=f&&e.checkable!==false,Ce=Y__namespace.useMemo(()=>Z?false:typeof p=="boolean"?p:typeof p=="function"?p(e):p&&typeof p=="object"?p.nodeDraggable?p.nodeDraggable(e):true:false,[p,e,Z]),Q=Y__namespace.useMemo(()=>D!==void 0?D:typeof p=="object"&&p.icon!==void 0?p.icon:jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-4 w-4"}),[D,p]),le=Y__namespace.useMemo(()=>e.icon?e.icon:H?typeof H=="function"?H({expanded:X,isLeaf:_}):H:_?L:X?I:S,[e.icon,H,X,_,L,S,I]),Be=q=>{if(!Ce)return;q.stopPropagation(),q.dataTransfer.effectAllowed="move";let De=q.currentTarget,de=De.cloneNode(true),je=document.documentElement.classList.contains("dark"),We=je?"#0a0a0a":"#ffffff",Gn=je?"#27272a":"#e4e4e7";de.style.cssText=`
|
|
43
|
+
`;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:R}}),jsxRuntime.jsx("div",{ref:c,id:g,onMouseEnter:()=>u(true),onMouseLeave:()=>u(false),style:{...s,...(()=>{if(!r)return {};let C=w0[o],x=t==="vertical"||t==="both",M=t==="horizontal"||t==="both",T=[x&&f.top&&`linear-gradient(to bottom, transparent, black ${C})`,x&&f.bottom&&`linear-gradient(to top, transparent, black ${C})`,M&&f.left&&`linear-gradient(to right, transparent, black ${C})`,M&&f.right&&`linear-gradient(to left, transparent, black ${C})`].filter(Boolean);return T.length===0?{}:{maskImage:T.join(", "),WebkitMaskImage:T.join(", "),maskComposite:"intersect",WebkitMaskComposite:"source-in"}})()},className:m(t==="vertical"&&"h-full w-full overflow-y-auto overflow-x-hidden",t==="horizontal"&&"w-full overflow-x-auto overflow-y-hidden",t==="both"&&"h-full w-full overflow-auto",e),...i,children:a})]})});ke.displayName="ScrollArea";var Ed=classVarianceAuthority.cva("flex w-full cursor-pointer items-center justify-between border border-zinc-300 dark:border-zinc-700 bg-background px-3 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"min-h-9 py-1.5 text-xs",md:"min-h-10 py-2",lg:"min-h-11 py-2.5 text-base"},radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-full"}},defaultVariants:{size:"md",radius:"md"}}),Aa=Y__namespace.forwardRef(({options:e,multiple:t=false,value:n,defaultValue:r,onValueChange:o,placeholder:a="Select...",searchable:s=false,searchPlaceholder:i="Search...",emptyText:l="No results found.",disabled:c=false,clearable:d=false,maxDisplayItems:u=3,maxDropdownHeight:f=240,size:p,radius:g,className:h,...b},v)=>{let[y,R]=Y__namespace.useState(false),[w,C]=Y__namespace.useState(""),[x,M]=Y__namespace.useState(r||""),[T,N]=Y__namespace.useState(r||[]),[E,P]=Y__namespace.useState({top:0,left:0,width:0}),k=Y__namespace.useRef(null),D=Y__namespace.useRef(null),H=Y__namespace.useRef(null),L=Y__namespace.useRef(null),S=n!==void 0?n:x,I=n!==void 0?n:T,A=n!==void 0,O=F=>{d&&S===F?(A||M(""),o?.("")):(A||M(F),o?.(F)),R(false),C("");},V=F=>{let Z=I.includes(F)?I.filter(ue=>ue!==F):[...I,F];A||N(Z),o?.(Z);},z=(F,Z)=>{Z.stopPropagation();let ue=I.filter(G=>G!==F);A||N(ue),o?.(ue);},K=F=>{F.stopPropagation(),t?(A||N([]),o?.([])):(A||M(""),o?.(""));},_=e.find(F=>F.value===S),X=e.filter(F=>I.includes(F.value)),$=X.slice(0,u),B=X.length-u,U=s?e.filter(F=>F.label.toLowerCase().includes(w.toLowerCase())):e;Y__namespace.useEffect(()=>{if(y&&D.current){let F=D.current.getBoundingClientRect();P({top:F.bottom+4,left:F.left,width:F.width}),s&&setTimeout(()=>L.current?.focus(),0);}y||C("");},[y,s]),Y__namespace.useEffect(()=>{let F=Z=>{let ue=Z.target,G=k.current&&!k.current.contains(ue),Ce=H.current&&!H.current.contains(ue);G&&Ce&&(R(false),C(""));};return document.addEventListener("mousedown",F),()=>document.removeEventListener("mousedown",F)},[]),Y__namespace.useEffect(()=>{if(!y)return;let F=Z=>{H.current?.contains(Z.target)||(R(false),C(""));};return window.addEventListener("scroll",F,true),()=>window.removeEventListener("scroll",F,true)},[y]);let j=t?I.length>0:!!S;return jsxRuntime.jsxs("div",{ref:k,className:m("relative",h),...b,children:[jsxRuntime.jsxs("div",{ref:F=>{D.current=F,typeof v=="function"?v(F):v&&(v.current=F);},role:"combobox","aria-expanded":y,"aria-haspopup":"listbox","aria-disabled":c,onClick:()=>!c&&R(!y),className:m(Ed({size:p,radius:g}),t&&"flex-wrap gap-1",c&&"cursor-not-allowed opacity-50"),children:[!t&&jsxRuntime.jsx("span",{className:m(!_&&"text-muted-foreground"),children:_?_.label:a}),t&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:X.length===0?jsxRuntime.jsx("span",{className:"text-muted-foreground",children:a}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[$.map(F=>jsxRuntime.jsxs("span",{className:"inline-flex items-center gap-1 rounded-md bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground",children:[F.label,jsxRuntime.jsx("span",{role:"button",tabIndex:0,onClick:Z=>z(F.value,Z),onKeyDown:Z=>{(Z.key==="Enter"||Z.key===" ")&&z(F.value,Z);},className:"rounded-full hover:bg-secondary-foreground/20 cursor-pointer",children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3"})})]},F.value)),B>0&&jsxRuntime.jsxs("span",{className:"text-xs text-muted-foreground",children:["+",B," more"]})]})}),jsxRuntime.jsxs("div",{className:"ml-auto flex items-center gap-1",children:[d&&j&&jsxRuntime.jsx("span",{role:"button",tabIndex:0,onClick:K,onKeyDown:F=>{(F.key==="Enter"||F.key===" ")&&K(F);},className:"rounded-full p-0.5 hover:bg-muted cursor-pointer",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4 opacity-50"})}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:m("h-4 w-4 opacity-50 transition-transform",y&&"rotate-180")})]})]}),y&&!c&&typeof document<"u"&&Ba__namespace.createPortal(jsxRuntime.jsxs("div",{ref:H,className:"fixed z-[9999] overflow-hidden rounded-md border border-zinc-300 dark:border-zinc-700 bg-background shadow-md",style:{top:E.top,left:E.left,minWidth:E.width},children:[s&&jsxRuntime.jsxs("div",{className:"flex items-center border-b border-zinc-300 dark:border-zinc-700 px-3",children:[jsxRuntime.jsx(lucideReact.Search,{className:"h-4 w-4 opacity-50 mr-2"}),jsxRuntime.jsx("input",{ref:L,type:"text",value:w,onChange:F=>C(F.target.value),placeholder:i,className:"flex h-10 w-full bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground"})]}),jsxRuntime.jsx(ke,{style:{maxHeight:f},onWheel:F=>F.stopPropagation(),children:jsxRuntime.jsx("div",{className:"p-1",children:U.length===0?jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:l}):U.map(F=>{let Z=t?I.includes(F.value):S===F.value;return jsxRuntime.jsxs("div",{role:"option","aria-selected":Z,onClick:()=>{F.disabled||(t?V(F.value):O(F.value));},className:m("relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-zinc-100 dark:hover:bg-zinc-800",F.disabled&&"pointer-events-none opacity-50"),children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:Z&&jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})}),F.label]},F.value)})})})]}),document.body)]})});Aa.displayName="Select";var Ld=Y__namespace.createContext(null),Oo=()=>{let e=Y__namespace.useContext(Ld);if(!e)throw new Error("Dropdown components must be used within a Dropdown");return e},wi=Y__namespace.createContext({radius:"md"}),Ci=Y__namespace.createContext(null),Cn=({children:e,open:t,defaultOpen:n=false,onOpenChange:r})=>{let[o,a]=Y__namespace.useState(n),[s,i]=Y__namespace.useState(-1),l=t!==void 0,c=l?t:o,d=Y__namespace.useRef(null),u=Y__namespace.useRef(null),f=Y__namespace.useId(),p=Y__namespace.useRef(new Map),g=Y__namespace.useCallback(v=>{l||a(v),r?.(v),v||i(-1);},[l,r]),h=Y__namespace.useCallback((v,y)=>{p.current.set(v,y);},[]),b=Y__namespace.useCallback(v=>{p.current.delete(v);},[]);return jsxRuntime.jsx(Ld.Provider,{value:{open:c,onOpenChange:g,triggerRef:d,contentRef:u,contentId:f,activeIndex:s,setActiveIndex:i,items:p,registerItem:h,unregisterItem:b},children:e})};Cn.displayName="Dropdown";var Tn=Y__namespace.forwardRef(({children:e,onClick:t,onKeyDown:n,...r},o)=>{let{open:a,onOpenChange:s,triggerRef:i,contentId:l}=Oo();return jsxRuntime.jsx("div",{ref:u=>{i.current=u,typeof o=="function"?o(u):o&&(o.current=u);},role:"button",tabIndex:0,"aria-expanded":a,"aria-haspopup":"menu","aria-controls":a?l:void 0,onClick:u=>{t?.(u),s(!a);},onKeyDown:u=>{n?.(u),(u.key==="ArrowDown"||u.key==="ArrowUp")&&(u.preventDefault(),s(true)),(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),s(!a));},className:"inline-flex",...r,children:e})});Tn.displayName="DropdownTrigger";var L0={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-2xl"},Mn=Y__namespace.forwardRef(({className:e,side:t="bottom",sideOffset:n=4,align:r="start",alignOffset:o=0,collisionPadding:a=8,onInteractOutside:s,onEscapeKeyDown:i,loop:l=true,radius:c="md",children:d,...u},f)=>{let{open:p,onOpenChange:g,triggerRef:h,contentRef:b,contentId:v,activeIndex:y,setActiveIndex:R,items:w}=Oo(),[C,x]=Y__namespace.useState({top:0,left:0}),[M,T]=Y__namespace.useState(t),[N,E]=Y__namespace.useState(false),P=Y__namespace.useRef(0);if(Y__namespace.useEffect(()=>{E(true);},[]),Y__namespace.useEffect(()=>{p&&(P.current=w.current.size);},[p,w]),Y__namespace.useEffect(()=>{if(!p||!h.current||!b.current)return;let D=()=>{if(!h.current||!b.current)return;let H=h.current.getBoundingClientRect(),L=b.current.getBoundingClientRect(),S=window.innerWidth,I=window.innerHeight,A=0,O=0,V=t;switch(t){case "top":A=H.top-L.height-n,A<a&&(A=H.bottom+n,V="bottom");break;case "bottom":A=H.bottom+n,A+L.height>I-a&&(A=H.top-L.height-n,V="top");break;case "left":O=H.left-L.width-n,O<a&&(O=H.right+n,V="right");break;case "right":O=H.right+n,O+L.width>S-a&&(O=H.left-L.width-n,V="left");break}if(V==="top"||V==="bottom"){switch(r){case "start":O=H.left+o;break;case "center":O=H.left+H.width/2-L.width/2;break;case "end":O=H.right-L.width-o;break}O<a?O=a:O+L.width>S-a&&(O=S-L.width-a);}else {switch(r){case "start":A=H.top+o;break;case "center":A=H.top+H.height/2-L.height/2;break;case "end":A=H.bottom-L.height-o;break}A<a?A=a:A+L.height>I-a&&(A=I-L.height-a);}x({top:A,left:O}),T(V);};return D(),window.addEventListener("resize",D),window.addEventListener("scroll",D,true),()=>{window.removeEventListener("resize",D),window.removeEventListener("scroll",D,true);}},[p,t,n,r,o,a,h]),Y__namespace.useEffect(()=>{if(!p)return;let D=H=>{let L=H.target;b.current&&!b.current.contains(L)&&h.current&&!h.current.contains(L)&&(s?.(),g(false));};return document.addEventListener("mousedown",D),()=>document.removeEventListener("mousedown",D)},[p,g,s,h,b]),Y__namespace.useEffect(()=>{if(!p)return;let D=H=>{let L=Array.from(w.current.entries()).sort(([I],[A])=>I-A).map(([,I])=>I),S=L.length;if(S!==0)switch(H.key){case "Escape":H.preventDefault(),i?.(),g(false),h.current?.focus();break;case "ArrowDown":H.preventDefault(),y===-1||y>=S-1?R(l?0:Math.min(y+1,S-1)):R(y+1);break;case "ArrowUp":H.preventDefault(),y<=0?R(l?S-1:0):R(y-1);break;case "Home":H.preventDefault(),R(0);break;case "End":H.preventDefault(),R(S-1);break;case "Enter":case " ":H.preventDefault(),y>=0&&y<S&&L[y]?.click();break;case "Tab":g(false);break}};return document.addEventListener("keydown",D),()=>document.removeEventListener("keydown",D)},[p,g,i,y,R,w,l,h]),Y__namespace.useEffect(()=>{p&&y>=0&&Array.from(w.current.entries()).sort(([H],[L])=>H-L).map(([,H])=>H)[y]?.focus();},[p,y,w]),!N||!p)return null;let k={top:"animate-in fade-in-0 zoom-in-95 slide-in-from-bottom-2",bottom:"animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",left:"animate-in fade-in-0 zoom-in-95 slide-in-from-right-2",right:"animate-in fade-in-0 zoom-in-95 slide-in-from-left-2"}[M];return Ba__namespace.createPortal(jsxRuntime.jsx("div",{ref:D=>{b.current=D,typeof f=="function"?f(D):f&&(f.current=D);},id:v,role:"menu","aria-orientation":"vertical","data-state":p?"open":"closed","data-side":M,"data-dropdown-content":"",className:m("fixed z-50 min-w-[8rem] overflow-hidden border bg-popover p-1 text-popover-foreground shadow-md outline-none",L0[c],k,e),style:{top:C.top,left:C.left},...u,children:jsxRuntime.jsx(wi.Provider,{value:{radius:c},children:d})}),document.body)});Mn.displayName="DropdownContent";var Sd=0,Dd={none:"rounded-none",sm:"rounded-sm",md:"rounded-sm",lg:"rounded-md",full:"rounded-lg"},$t=Y__namespace.forwardRef(({className:e,inset:t,disabled:n,onSelect:r,onClick:o,onMouseEnter:a,startContent:s,endContent:i,children:l,...c},d)=>{let{onOpenChange:u,activeIndex:f,setActiveIndex:p,registerItem:g,unregisterItem:h}=Oo(),{radius:b}=Y__namespace.useContext(wi),[v]=Y__namespace.useState(()=>Sd++),y=Y__namespace.useRef(null);Y__namespace.useEffect(()=>(!n&&y.current&&g(v,y.current),()=>{h(v);}),[n,v,g,h]);let R=x=>{if(n){x.preventDefault();return}o?.(x),r?.(),u(false);},w=x=>{a?.(x),n||p(v);};return jsxRuntime.jsxs("div",{ref:x=>{y.current=x,typeof d=="function"?d(x):d&&(d.current=x);},role:"menuitem",tabIndex:n?-1:0,"aria-disabled":n,"data-disabled":n?"":void 0,"data-highlighted":f===v?"":void 0,className:m("relative flex cursor-default select-none items-center gap-2 px-2 py-1.5 text-sm outline-none transition-colors","focus:bg-accent focus:text-accent-foreground","data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",Dd[b],t&&"pl-8",!n&&"cursor-pointer",e),onClick:R,onMouseEnter:w,...c,children:[s,l&&jsxRuntime.jsx("span",{className:"flex-1",children:l}),i]})});$t.displayName="DropdownItem";var Ti=Y__namespace.forwardRef(({className:e,inset:t,...n},r)=>jsxRuntime.jsx("div",{ref:r,className:m("px-2 py-1.5 text-xs font-medium text-muted-foreground",t&&"pl-8",e),...n}));Ti.displayName="DropdownSection";var Hd=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,role:"separator",className:m("-mx-1 my-1 h-px bg-muted",e),...t}));Hd.displayName="DropdownSeparator";var Id=({className:e,...t})=>jsxRuntime.jsx("span",{className:m("ml-auto text-xs tracking-widest opacity-60",e),...t});Id.displayName="DropdownShortcut";var Vd=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,role:"group",className:e,...t}));Vd.displayName="DropdownGroup";var Ad=({children:e,open:t,defaultOpen:n=false,onOpenChange:r})=>{let[o,a]=Y__namespace.useState(n),{contentRef:s}=Oo(),i=t!==void 0,l=i?t:o,c=Y__namespace.useRef(null),d=Y__namespace.useCallback(u=>{i||a(u),r?.(u);},[i,r]);return jsxRuntime.jsx(Ci.Provider,{value:{open:l,onOpenChange:d,triggerRef:c,parentMenuRef:s},children:e})};Ad.displayName="DropdownSub";var zd=Y__namespace.forwardRef(({className:e,inset:t,disabled:n,children:r,onMouseEnter:o,onMouseLeave:a,onKeyDown:s,...i},l)=>{let c=Y__namespace.useContext(Ci),{setActiveIndex:d,registerItem:u,unregisterItem:f}=Oo(),{radius:p}=Y__namespace.useContext(wi),[g]=Y__namespace.useState(()=>Sd++),h=Y__namespace.useRef(null);if(!c)throw new Error("DropdownSubTrigger must be used within DropdownSub");let{open:b,onOpenChange:v,triggerRef:y}=c;Y__namespace.useEffect(()=>(!n&&h.current&&u(g,h.current),()=>{f(g);}),[n,g,u,f]);let R=x=>{o?.(x),n||(d(g),v(true));},w=x=>{a?.(x);},C=x=>{s?.(x),(x.key==="ArrowRight"||x.key==="Enter"||x.key===" ")&&(x.preventDefault(),v(true));};return jsxRuntime.jsxs("div",{ref:x=>{h.current=x,y.current=x,typeof l=="function"?l(x):l&&(l.current=x);},role:"menuitem","aria-haspopup":"menu","aria-expanded":b,tabIndex:n?-1:0,"aria-disabled":n,"data-state":b?"open":"closed","data-disabled":n?"":void 0,className:m("flex cursor-default select-none items-center gap-2 px-2 py-1.5 text-sm outline-none transition-colors","focus:bg-accent focus:text-accent-foreground","data-[state=open]:bg-accent","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",Dd[p],t&&"pl-8",!n&&"cursor-pointer",e),onMouseEnter:R,onMouseLeave:w,onKeyDown:C,...i,children:[r,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto h-4 w-4"})]})});zd.displayName="DropdownSubTrigger";var Od=Y__namespace.forwardRef(({className:e,sideOffset:t=2,alignOffset:n=-4,collisionPadding:r=8,onMouseEnter:o,onMouseLeave:a,...s},i)=>{let l=Y__namespace.useContext(Ci);if(!l)throw new Error("DropdownSubContent must be used within DropdownSub");let{open:c,onOpenChange:d,triggerRef:u,parentMenuRef:f}=l,[p,g]=Y__namespace.useState({top:0,left:0}),[h,b]=Y__namespace.useState(false),v=Y__namespace.useRef(null),y=Y__namespace.useRef(null);Y__namespace.useEffect(()=>{b(true);},[]),Y__namespace.useEffect(()=>{if(!c||!u.current||!v.current)return;(()=>{if(!u.current||!v.current)return;let x=u.current.getBoundingClientRect(),M=v.current.getBoundingClientRect(),T=window.innerWidth,N=window.innerHeight,E=x.top+n,P=x.right+t;P+M.width>T-r&&(P=x.left-M.width-t),E+M.height>N-r&&(E=N-M.height-r),E<r&&(E=r),g({top:E,left:P});})();},[c,t,n,r,u]);let R=C=>{o?.(C),y.current&&(clearTimeout(y.current),y.current=null),d(true);},w=C=>{a?.(C);let x=C.relatedTarget;u.current?.contains(x)||f?.current?.contains(x)||(y.current=setTimeout(()=>{d(false);},100));};return Y__namespace.useEffect(()=>()=>{y.current&&clearTimeout(y.current);},[]),!h||!c?null:Ba__namespace.createPortal(jsxRuntime.jsx("div",{ref:C=>{v.current=C,typeof i=="function"?i(C):i&&(i.current=C);},role:"menu","data-state":c?"open":"closed",className:m("fixed z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg","animate-in fade-in-0 zoom-in-95 slide-in-from-left-2",e),style:{top:p.top,left:p.left},onMouseEnter:R,onMouseLeave:w,...s}),document.body)});Od.displayName="DropdownSubContent";var S0=Ti;var Kd=Y__namespace.createContext(null),Mi=()=>{let e=Y__namespace.useContext(Kd);if(!e)throw new Error("Popover components must be used within a Popover");return e},ot=({children:e,open:t,defaultOpen:n=false,onOpenChange:r})=>{let[o,a]=Y__namespace.useState(n),s=t!==void 0,i=s?t:o,l=Y__namespace.useRef(null),c=Y__namespace.useId(),d=Y__namespace.useCallback(u=>{s||a(u),r?.(u);},[s,r]);return jsxRuntime.jsx(Kd.Provider,{value:{open:i,onOpenChange:d,triggerRef:l,contentId:c},children:e})};ot.displayName="Popover";var qn=Y__namespace.forwardRef(({children:e,onClick:t,asChild:n,...r},o)=>{let{open:a,onOpenChange:s,triggerRef:i,contentId:l}=Mi(),c=f=>{t?.(f),s(!a);},d=f=>{i.current=f,typeof o=="function"?o(f):o&&(o.current=f);},u={"aria-expanded":a,"aria-haspopup":"dialog","aria-controls":a?l:void 0,onClick:c,...r};return n&&Y__namespace.isValidElement(e)?Y__namespace.cloneElement(e,{...u,ref:d,onClick:f=>{e.props.onClick?.(f),c(f);}}):jsxRuntime.jsx("button",{ref:d,type:"button",...u,children:e})});qn.displayName="PopoverTrigger";var an=Y__namespace.forwardRef(({children:e,...t},n)=>{let{triggerRef:r}=Mi();return jsxRuntime.jsx("div",{ref:o=>{r.current=o,typeof n=="function"?n(o):n&&(n.current=o);},...t,children:e})});an.displayName="PopoverAnchor";var at=Y__namespace.forwardRef(({className:e,style:t,side:n="bottom",sideOffset:r=4,align:o="center",alignOffset:a=0,onInteractOutside:s,onEscapeKeyDown:i,onOpenAutoFocus:l,onCloseAutoFocus:c,children:d,...u},f)=>{let{open:p,onOpenChange:g,triggerRef:h,contentId:b}=Mi(),[v,y]=Y__namespace.useState({top:0,left:0}),[R,w]=Y__namespace.useState(false),[C,x]=Y__namespace.useState(null);if(Y__namespace.useEffect(()=>{w(true);},[]),Y__namespace.useEffect(()=>{if(!p||!h.current||!C)return;let T=()=>{if(!h.current||!C)return;let N=h.current.getBoundingClientRect(),E=C.getBoundingClientRect(),P=0,k=0;switch(n){case "top":P=N.top-E.height-r;break;case "bottom":P=N.bottom+r;break;case "left":k=N.left-E.width-r;break;case "right":k=N.right+r;break}if(n==="top"||n==="bottom")switch(o){case "start":k=N.left+a;break;case "center":k=N.left+N.width/2-E.width/2;break;case "end":k=N.right-E.width-a;break}else switch(o){case "start":P=N.top+a;break;case "center":P=N.top+N.height/2-E.height/2;break;case "end":P=N.bottom-E.height-a;break}y({top:P,left:k});};return T(),window.addEventListener("resize",T),window.addEventListener("scroll",T,true),()=>{window.removeEventListener("resize",T),window.removeEventListener("scroll",T,true);}},[p,n,r,o,a,h,C]),Y__namespace.useEffect(()=>{if(!p)return;let T=N=>{let E=N.target;C&&C.contains(E)||h.current&&h.current.contains(E)||E.closest?.("[data-dropdown-content], [data-popover-content]")||(s?.(),g(false));};return document.addEventListener("mouseup",T),()=>document.removeEventListener("mouseup",T)},[p,g,s,h,C]),Y__namespace.useEffect(()=>{if(!p)return;let T=N=>{N.key==="Escape"&&(i?.(),g(false));};return document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)},[p,g,i]),!R||!p)return null;let M={top:"animate-in fade-in-0 zoom-in-95 slide-in-from-bottom-2",bottom:"animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",left:"animate-in fade-in-0 zoom-in-95 slide-in-from-right-2",right:"animate-in fade-in-0 zoom-in-95 slide-in-from-left-2"}[n];return Ba__namespace.createPortal(jsxRuntime.jsx("div",{ref:T=>{x(N=>N!==T?T:N),typeof f=="function"?f(T):f&&(f.current=T);},id:b,role:"dialog","data-state":p?"open":"closed","data-side":n,className:m("fixed z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none",M,e),style:{...t,top:v.top,left:v.left},...u,children:d}),document.body)});at.displayName="PopoverContent";var $d=Y__namespace.createContext(null),ki=()=>{let e=Y__namespace.useContext($d);if(!e)throw new Error("Tabs components must be used within a Tabs");return e},Gd=Y__namespace.forwardRef(({className:e,value:t,defaultValue:n="",onValueChange:r,variant:o="solid",radius:a="md",orientation:s="horizontal",children:i,...l},c)=>{let[d,u]=Y__namespace.useState(n),f=t!==void 0,p=f?t:d,g=h=>{f||u(h),r?.(h);};return jsxRuntime.jsx($d.Provider,{value:{value:p,onValueChange:g,variant:o,radius:a,orientation:s},children:jsxRuntime.jsx("div",{ref:c,"data-orientation":s,className:m(s==="vertical"&&"flex gap-4",e),...l,children:i})})});Gd.displayName="Tabs";var Ni={none:{list:"rounded-none",trigger:"rounded-none",indicator:"rounded-none"},sm:{list:"rounded-md",trigger:"rounded-sm",indicator:"rounded-sm"},md:{list:"rounded-lg",trigger:"rounded-md",indicator:"rounded-md"},lg:{list:"rounded-xl",trigger:"rounded-lg",indicator:"rounded-lg"},full:{list:"rounded-full",trigger:"rounded-full",indicator:"rounded-full"}},Ud=Y__namespace.forwardRef(({className:e,children:t,...n},r)=>{let{variant:o,radius:a,orientation:s,value:i}=ki(),l=Y__namespace.useRef(null),[c,d]=Y__namespace.useState({opacity:0});Y__namespace.useEffect(()=>{let g=l.current;if(!g)return;let h=()=>{let v=g.querySelector('[data-state="active"]');if(v){let y=g.getBoundingClientRect(),R=v.getBoundingClientRect(),w=s==="vertical";o==="underline"?d(w?{width:2,height:R.height,transform:`translateY(${R.top-y.top}px)`,opacity:1}:{width:R.width,height:2,transform:`translateX(${R.left-y.left}px)`,opacity:1}):o==="solid"&&d(w?{width:R.width,height:R.height,transform:`translateY(${R.top-y.top}px)`,opacity:1}:{width:R.width,height:R.height,transform:`translateX(${R.left-y.left}px)`,opacity:1});}};h();let b=new ResizeObserver(h);return b.observe(g),()=>{b.disconnect();}},[o,s,i]);let u={solid:"bg-muted p-1",underline:"border-b border-border bg-transparent p-0 !rounded-none",bordered:"bg-transparent p-0 gap-1 !rounded-none"},f=s==="vertical",p=()=>o==="solid"?f?"top-0 left-1 bg-background shadow":"top-1 left-1 bg-background shadow":o==="underline"?f?"top-0 left-0 bg-primary !rounded-full":"bottom-0 left-0 bg-primary !rounded-full":"";return jsxRuntime.jsxs("div",{ref:g=>{l.current=g,typeof r=="function"?r(g):r&&(r.current=g);},role:"tablist","aria-orientation":s,className:m("relative inline-flex h-9 items-center justify-center text-muted-foreground",f&&"flex-col h-auto w-auto",Ni[a].list,u[o],e),...n,children:[(o==="solid"||o==="underline")&&jsxRuntime.jsx("span",{className:m("absolute transition-all duration-200 ease-out",Ni[a].indicator,p()),style:c,"aria-hidden":"true"}),t]})});Ud.displayName="TabsList";var jd=Y__namespace.forwardRef(({className:e,value:t,disabled:n,onClick:r,...o},a)=>{let{value:s,onValueChange:i,variant:l,radius:c}=ki(),d=s===t,u={solid:"data-[state=active]:text-foreground",underline:"!rounded-none border-b-2 border-transparent pb-2 data-[state=active]:text-foreground",bordered:"border border-transparent data-[state=active]:border-current data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm"};return jsxRuntime.jsx("button",{type:"button",role:"tab",ref:a,"aria-selected":d,"data-state":d?"active":"inactive",disabled:n,className:m("relative z-10 inline-flex items-center justify-center whitespace-nowrap px-3 py-1 text-sm font-medium ring-offset-background transition-all cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed",Ni[c].trigger,u[l],e),onClick:f=>{r?.(f),i(t);},...o})});jd.displayName="TabsTrigger";var Wd=Y__namespace.forwardRef(({className:e,value:t,children:n,...r},o)=>{let{value:a}=ki(),s=a===t;return s?jsxRuntime.jsx("div",{ref:o,role:"tabpanel","data-state":s?"active":"inactive",className:m("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...r,children:n}):null});Wd.displayName="TabsContent";var _d=[{label:"At least 8 characters",test:e=>e.length>=8},{label:"Contains uppercase",test:e=>/[A-Z]/.test(e)},{label:"Contains lowercase",test:e=>/[a-z]/.test(e)},{label:"Contains number",test:e=>/[0-9]/.test(e)},{label:"Contains special character",test:e=>/[!@#$%^&*(),.?":{}|<>]/.test(e)}];function H0(e,t=_d){return e?t.filter(r=>r.test(e)).length/t.length:0}function I0(e){return e<.4?"bg-red-500":e<.7?"bg-yellow-500":"bg-green-500"}function V0(e){return e<.4?"Weak":e<.7?"Medium":"Strong"}var Fo=0,Pi=null;function Gt(){Fo===0&&(Pi=document.body.style.overflow,document.body.style.overflow="hidden"),Fo++;}function Ut(){Fo--,Fo<=0&&(Fo=0,document.body.style.overflow=Pi??"",Pi=null);}var Xd=Y__namespace.createContext(null),Oa=()=>{let e=Y__namespace.useContext(Xd);if(!e)throw new Error("Sheet components must be used within a Sheet");return e},qd=({open:e,defaultOpen:t=false,onOpenChange:n,children:r})=>{let[o,a]=Y__namespace.useState(t),s=e!==void 0,i=s?e:o,l=Y__namespace.useCallback(c=>{s||a(c),n?.(c);},[s,n]);return jsxRuntime.jsx(Xd.Provider,{value:{open:i,onOpenChange:l},children:r})};qd.displayName="Sheet";var Zd=Y__namespace.forwardRef(({onClick:e,children:t,...n},r)=>{let{onOpenChange:o}=Oa();return jsxRuntime.jsx("button",{ref:r,type:"button",onClick:s=>{e?.(s),o(true);},...n,children:t})});Zd.displayName="SheetTrigger";var Qd=Y__namespace.forwardRef(({onClick:e,children:t,...n},r)=>{let{onOpenChange:o}=Oa();return jsxRuntime.jsx("button",{ref:r,type:"button",onClick:s=>{e?.(s),o(false);},...n,children:t})});Qd.displayName="SheetClose";var Li=({children:e,container:t})=>{let[n,r]=Y__namespace.useState(false);return Y__namespace.useEffect(()=>{r(true);},[]),n?Ba__namespace.createPortal(e,t||document.body):null};Li.displayName="SheetPortal";var Jd=Y__namespace.forwardRef(({className:e,...t},n)=>{let{open:r,onOpenChange:o}=Oa();return r?jsxRuntime.jsx("div",{ref:n,className:m("fixed inset-0 z-50 bg-black/80",r?"animate-in fade-in-0":"animate-out fade-out-0",e),onClick:()=>o(false),"aria-hidden":"true",...t}):null});Jd.displayName="SheetOverlay";var eu=classVarianceAuthority.cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition-transform duration-300 ease-in-out",{variants:{side:{top:"inset-x-0 top-0 border-b",bottom:"inset-x-0 bottom-0 border-t",left:"inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm"}},defaultVariants:{side:"right"}}),O0=(e,t)=>({top:t?"animate-in slide-in-from-top":"animate-out slide-out-to-top",bottom:t?"animate-in slide-in-from-bottom":"animate-out slide-out-to-bottom",left:t?"animate-in slide-in-from-left":"animate-out slide-out-to-left",right:t?"animate-in slide-in-from-right":"animate-out slide-out-to-right"})[e],tu=Y__namespace.forwardRef(({side:e="right",className:t,children:n,hideCloseButton:r,onEscapeKeyDown:o,onInteractOutside:a,...s},i)=>{let{open:l,onOpenChange:c}=Oa(),[d,u]=Y__namespace.useState(false),[,f]=Y__namespace.useState(false);return Y__namespace.useEffect(()=>{if(l)u(true),f(true),Gt();else {f(true);let p=setTimeout(()=>{u(false),f(false);},300);return ()=>clearTimeout(p)}return ()=>{Ut();}},[l]),Y__namespace.useEffect(()=>{let p=g=>{g.key==="Escape"&&l&&(o?.(),c(false));};return document.addEventListener("keydown",p),()=>document.removeEventListener("keydown",p)},[l,c,o]),!d&&!l?null:jsxRuntime.jsxs(Li,{children:[jsxRuntime.jsx("div",{className:m("fixed inset-0 z-50 bg-black/80 transition-opacity duration-300",l?"opacity-100":"opacity-0"),onClick:()=>{a?.(),c(false);},"aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:i,role:"dialog","aria-modal":"true",className:m(eu({side:e}),O0(e,l),t),...s,children:[!r&&jsxRuntime.jsxs("button",{type:"button",onClick:()=>c(false),className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none cursor-pointer",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]})});tu.displayName="SheetContent";var nu=({className:e,...t})=>jsxRuntime.jsx("div",{className:m("flex flex-col space-y-2 text-center sm:text-left",e),...t});nu.displayName="SheetHeader";var ru=({className:e,...t})=>jsxRuntime.jsx("div",{className:m("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ru.displayName="SheetFooter";var ou=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("h2",{ref:n,className:m("text-lg font-semibold text-foreground",e),...t}));ou.displayName="SheetTitle";var au=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("p",{ref:n,className:m("text-sm text-muted-foreground",e),...t}));au.displayName="SheetDescription";var K0=({theme:e="system",...t})=>jsxRuntime.jsx(sonner.Toaster,{theme:e,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...t});var su=Y__namespace.createContext(null),Fa=()=>{let e=Y__namespace.useContext(su);if(!e)throw new Error("ContextMenu components must be used within a ContextMenu");return e},Si=Y__namespace.createContext(null),iu=({children:e,onOpenChange:t})=>{let[n,r]=Y__namespace.useState(false),[o,a]=Y__namespace.useState({x:0,y:0}),s=Y__namespace.useId(),i=Y__namespace.useCallback(l=>{r(l),t?.(l);},[t]);return jsxRuntime.jsx(su.Provider,{value:{open:n,onOpenChange:i,position:o,setPosition:a,contentId:s},children:e})};iu.displayName="ContextMenu";var lu=Y__namespace.forwardRef(({children:e,onContextMenu:t,...n},r)=>{let{onOpenChange:o,setPosition:a}=Fa(),s=i=>{i.preventDefault(),a({x:i.clientX,y:i.clientY}),o(true);};return jsxRuntime.jsx("div",{ref:r,onContextMenu:i=>{t?.(i),s(i);},...n,children:e})});lu.displayName="ContextMenuTrigger";var cu=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,role:"group",className:e,...t}));cu.displayName="ContextMenuGroup";var du=({children:e,container:t})=>{let[n,r]=Y__namespace.useState(false);return Y__namespace.useEffect(()=>{r(true);},[]),n?Ba__namespace.createPortal(e,t||document.body):null};du.displayName="ContextMenuPortal";var uu=({children:e,open:t,defaultOpen:n=false,onOpenChange:r})=>{let[o,a]=Y__namespace.useState(n),s=t!==void 0,i=s?t:o,l=Y__namespace.useRef(null),c=Y__namespace.useCallback(d=>{s||a(d),r?.(d);},[s,r]);return jsxRuntime.jsx(Si.Provider,{value:{open:i,onOpenChange:c,triggerRef:l},children:e})};uu.displayName="ContextMenuSub";var mu=Y__namespace.forwardRef(({className:e,onInteractOutside:t,onEscapeKeyDown:n,children:r,...o},a)=>{let{open:s,onOpenChange:i,position:l,contentId:c}=Fa(),[d,u]=Y__namespace.useState(false),[f,p]=Y__namespace.useState(l),g=Y__namespace.useRef(null);return Y__namespace.useEffect(()=>{u(true);},[]),Y__namespace.useEffect(()=>{if(!s||!g.current){p(l);return}let b=g.current.getBoundingClientRect(),{x:v,y}=l;v+b.width>window.innerWidth&&(v=window.innerWidth-b.width-8),y+b.height>window.innerHeight&&(y=window.innerHeight-b.height-8),p({x:v,y});},[s,l]),Y__namespace.useEffect(()=>{if(!s)return;let h=b=>{let v=b.target;g.current&&!g.current.contains(v)&&(t?.(),i(false));};return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[s,i,t]),Y__namespace.useEffect(()=>{if(!s)return;let h=b=>{b.key==="Escape"&&(n?.(),i(false));};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[s,i,n]),!d||!s?null:Ba__namespace.createPortal(jsxRuntime.jsx("div",{ref:h=>{g.current=h,typeof a=="function"?a(h):a&&(a.current=h);},id:c,role:"menu","aria-orientation":"vertical","data-state":s?"open":"closed",className:m("fixed z-50 max-h-[calc(100vh-2rem)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border border-zinc-200 dark:border-zinc-800 bg-white dark:bg-zinc-950 p-1 text-zinc-950 dark:text-zinc-50 shadow-md","animate-in fade-in-0 zoom-in-95",e),style:{top:f.y,left:f.x},...o,children:r}),document.body)});mu.displayName="ContextMenuContent";var pu=Y__namespace.forwardRef(({className:e,inset:t,children:n,onMouseEnter:r,onMouseLeave:o,...a},s)=>{let i=Y__namespace.useContext(Si);if(!i)throw new Error("ContextMenuSubTrigger must be used within ContextMenuSub");let{open:l,onOpenChange:c,triggerRef:d}=i,u=p=>{r?.(p),c(true);},f=p=>{o?.(p),c(false);};return jsxRuntime.jsxs("div",{ref:p=>{d.current=p,typeof s=="function"?s(p):s&&(s.current=p);},role:"menuitem","aria-haspopup":"menu","aria-expanded":l,"data-state":l?"open":"closed",className:m("flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none hover:bg-zinc-100 dark:hover:bg-zinc-800 focus:bg-zinc-100 dark:focus:bg-zinc-800 data-[state=open]:bg-zinc-100 dark:data-[state=open]:bg-zinc-800",t&&"pl-8",e),onMouseEnter:u,onMouseLeave:f,...a,children:[n,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto h-4 w-4"})]})});pu.displayName="ContextMenuSubTrigger";var fu=Y__namespace.forwardRef(({className:e,sideOffset:t=2,onMouseEnter:n,onMouseLeave:r,...o},a)=>{let s=Y__namespace.useContext(Si);if(!s)throw new Error("ContextMenuSubContent must be used within ContextMenuSub");let{open:i,onOpenChange:l,triggerRef:c}=s,[d,u]=Y__namespace.useState({top:0,left:0}),[f,p]=Y__namespace.useState(false),g=Y__namespace.useRef(null);Y__namespace.useEffect(()=>{p(true);},[]),Y__namespace.useEffect(()=>{if(!i||!c.current||!g.current)return;(()=>{if(!c.current||!g.current)return;let y=c.current.getBoundingClientRect(),R=g.current.getBoundingClientRect(),w=y.top,C=y.right+t;C+R.width>window.innerWidth&&(C=y.left-R.width-t),u({top:w,left:C});})();},[i,t,c]);let h=v=>{n?.(v),l(true);},b=v=>{r?.(v),l(false);};return !f||!i?null:Ba__namespace.createPortal(jsxRuntime.jsx("div",{ref:v=>{g.current=v,typeof a=="function"?a(v):a&&(a.current=v);},role:"menu","data-state":i?"open":"closed",className:m("fixed z-50 min-w-[8rem] overflow-hidden rounded-md border border-zinc-200 dark:border-zinc-800 bg-white dark:bg-zinc-950 p-1 text-zinc-950 dark:text-zinc-50 shadow-lg","animate-in fade-in-0 zoom-in-95 slide-in-from-left-2",e),style:{top:d.top,left:d.left},onMouseEnter:h,onMouseLeave:b,...o}),document.body)});fu.displayName="ContextMenuSubContent";var gu=Y__namespace.forwardRef(({className:e,inset:t,disabled:n,onSelect:r,onClick:o,...a},s)=>{let{onOpenChange:i}=Fa(),l=c=>{if(n){c.preventDefault();return}o?.(c),r?.(),i(false);};return jsxRuntime.jsx("div",{ref:s,role:"menuitem",tabIndex:n?-1:0,"aria-disabled":n,"data-disabled":n?"":void 0,className:m("relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none hover:bg-zinc-100 dark:hover:bg-zinc-800 focus:bg-zinc-100 dark:focus:bg-zinc-800 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[disabled]:cursor-not-allowed",t&&"pl-8",e),onClick:l,...a})});gu.displayName="ContextMenuItem";var bu=Y__namespace.forwardRef(({className:e,children:t,checked:n=false,onCheckedChange:r,disabled:o,onClick:a,...s},i)=>{let{onOpenChange:l}=Fa(),c=d=>{if(o){d.preventDefault();return}a?.(d),r?.(!n),l(false);};return jsxRuntime.jsxs("div",{ref:i,role:"menuitemcheckbox","aria-checked":n,tabIndex:o?-1:0,"aria-disabled":o,"data-disabled":o?"":void 0,"data-state":n?"checked":"unchecked",className:m("relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-zinc-100 dark:hover:bg-zinc-800 focus:bg-zinc-100 dark:focus:bg-zinc-800 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[disabled]:cursor-not-allowed",e),onClick:c,...s,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:n&&jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})}),t]})});bu.displayName="ContextMenuCheckboxItem";var vu=Y__namespace.forwardRef(({className:e,inset:t,...n},r)=>jsxRuntime.jsx("div",{ref:r,className:m("px-2 py-1.5 text-xs font-medium text-muted-foreground",t&&"pl-8",e),...n}));vu.displayName="ContextMenuSection";var hu=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,role:"separator",className:m("-mx-1 my-1 h-px bg-border",e),...t}));hu.displayName="ContextMenuSeparator";var xu=({className:e,...t})=>jsxRuntime.jsx("span",{className:m("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});xu.displayName="ContextMenuShortcut";var Ru=Y__namespace.createContext(null),W0=()=>{let e=Y__namespace.useContext(Ru);if(!e)throw new Error("RadioGroupItem must be used within a RadioGroup");return e},wu=Y__namespace.forwardRef(({className:e,value:t,defaultValue:n="",onValueChange:r,name:o,disabled:a,required:s,orientation:i="vertical",children:l,...c},d)=>{let[u,f]=Y__namespace.useState(n),p=t!==void 0,g=p?t:u,h=Y__namespace.useId(),b=v=>{p||f(v),r?.(v);};return jsxRuntime.jsx("div",{ref:d,role:"radiogroup","aria-required":s,"aria-orientation":i,className:m(i==="vertical"?"grid gap-2":"flex gap-4",e),...c,children:jsxRuntime.jsx(Ru.Provider,{value:{name:o||h,value:g,onValueChange:b,disabled:a,required:s},children:l})})});wu.displayName="RadioGroup";var Cu=Y__namespace.forwardRef(({className:e,value:t,disabled:n,...r},o)=>{let a=W0(),s=a.value===t,i=n||a.disabled;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{type:"button",role:"radio","aria-checked":s,disabled:i,ref:o,className:m("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer",e),onClick:()=>a.onValueChange(t),...r,children:s&&jsxRuntime.jsx("span",{className:"flex items-center justify-center",children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-2.5 w-2.5 fill-current text-current"})})}),jsxRuntime.jsx("input",{type:"radio","aria-hidden":true,tabIndex:-1,name:a.name,value:t,checked:s,required:a.required,disabled:i,onChange:()=>{},style:{position:"absolute",pointerEvents:"none",opacity:0,margin:0,width:0,height:0}})]})});Cu.displayName="RadioGroupItem";var $a=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 gap-2",{variants:{variant:{solid:"bg-transparent hover:bg-muted data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",bordered:"border border-current bg-transparent hover:bg-accent data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",ghost:"bg-transparent hover:bg-accent data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",soft:"bg-transparent hover:bg-primary/10 data-[state=on]:bg-primary/15 data-[state=on]:text-primary",surface:"bg-muted/50 hover:bg-muted data-[state=on]:bg-muted data-[state=on]:text-foreground"},size:{sm:"h-9 px-2.5 min-w-9",md:"h-10 px-3 min-w-10",lg:"h-11 px-5 min-w-11"}},defaultVariants:{variant:"solid",size:"md"}}),Tu=Y__namespace.forwardRef(({className:e,variant:t,size:n,pressed:r,defaultPressed:o=false,onPressedChange:a,disabled:s,onKeyDown:i,...l},c)=>{let[d,u]=Y__namespace.useState(o),f=r!==void 0,p=f?r:d,g=()=>{if(s)return;let b=!p;f||u(b),a?.(b);},h=b=>{b.key==="Enter"&&b.preventDefault(),i?.(b);};return jsxRuntime.jsx("button",{type:"button","aria-pressed":p,"data-state":p?"on":"off",disabled:s,ref:c,className:m($a({variant:t,size:n,className:e})),onClick:g,onKeyDown:h,...l})});Tu.displayName="Toggle";var Mu=Y__namespace.createContext(null),Z0=()=>{let e=Y__namespace.useContext(Mu);if(!e)throw new Error("ToggleGroupItem must be used within a ToggleGroup");return e},Nu=Y__namespace.forwardRef(({className:e,variant:t,size:n,type:r,value:o,defaultValue:a,onValueChange:s,disabled:i,children:l,...c},d)=>{let[u,f]=Y__namespace.useState(()=>r==="single"?a?[a]:[]:a||[]),p=o!==void 0,g=p?r==="single"?o?[o]:[]:o:u,h=b=>{if(r==="single"){let v=g.includes(b)?[]:[b];p||f(v),s?.(v[0]||"");}else {let v=g.includes(b)?g.filter(y=>y!==b):[...g,b];p||f(v),s?.(v);}};return jsxRuntime.jsx("div",{ref:d,role:"group",className:m("flex items-center justify-center gap-1",e),...c,children:jsxRuntime.jsx(Mu.Provider,{value:{type:r,variant:t,size:n,value:g,onValueChange:h,disabled:i},children:l})})});Nu.displayName="ToggleGroup";var ku=Y__namespace.forwardRef(({className:e,children:t,variant:n,size:r,value:o,disabled:a,...s},i)=>{let l=Z0(),c=l.value.includes(o),d=a||l.disabled;return jsxRuntime.jsx("button",{type:"button",role:"radio","aria-checked":c,"aria-pressed":c,"data-state":c?"on":"off",disabled:d,ref:i,className:m($a({variant:l.variant||n,size:l.size||r}),e),onClick:()=>l.onValueChange(o),...s,children:t})});ku.displayName="ToggleGroupItem";var Ua=Y__namespace.forwardRef(({className:e,value:t,defaultValue:n=[0],onValueChange:r,onValueCommit:o,min:a=0,max:s=100,step:i=1,disabled:l=false,orientation:c="horizontal",name:d,...u},f)=>{let[p,g]=Y__namespace.useState(n),h=t!==void 0,b=h?t:p,v=Y__namespace.useRef(null),[y,R]=Y__namespace.useState(false),[w,C]=Y__namespace.useState(null),x=(H,L)=>{if(!v.current)return b[0];let S=v.current.getBoundingClientRect(),I;c==="horizontal"?I=(H-S.left)/S.width:I=1-(L-S.top)/S.height,I=Math.max(0,Math.min(1,I));let A=a+I*(s-a),O=Math.round(A/i)*i;return Math.max(a,Math.min(s,O))},M=(H,L)=>{let S=[...b];S[L]=H,L>0&&H<b[L-1]&&(S[L]=b[L-1]),L<b.length-1&&H>b[L+1]&&(S[L]=b[L+1]),h||g(S),r?.(S);},T=(H,L)=>{l||(H.preventDefault(),R(true),C(L),H.target.setPointerCapture(H.pointerId));},N=H=>{if(!y||w===null||l)return;let L=x(H.clientX,H.clientY);M(L,w);},E=()=>{y&&(R(false),C(null),o?.(b));},P=H=>{if(l)return;let L=x(H.clientX,H.clientY),S=0,I=Math.abs(b[0]-L);for(let A=1;A<b.length;A++){let O=Math.abs(b[A]-L);O<I&&(I=O,S=A);}M(L,S),o?.([...b.slice(0,S),L,...b.slice(S+1)]);},k=(H,L)=>{if(l)return;let S=b[L];switch(H.key){case "ArrowRight":case "ArrowUp":H.preventDefault(),S=Math.min(s,b[L]+i);break;case "ArrowLeft":case "ArrowDown":H.preventDefault(),S=Math.max(a,b[L]-i);break;case "Home":H.preventDefault(),S=a;break;case "End":H.preventDefault(),S=s;break;default:return}M(S,L),o?.([...b.slice(0,L),S,...b.slice(L+1)]);},D=H=>(H-a)/(s-a)*100;return jsxRuntime.jsxs("div",{ref:f,className:m("relative flex touch-none select-none items-center",c==="vertical"&&"flex-col h-full w-5",l&&"opacity-50 pointer-events-none",e),...u,children:[jsxRuntime.jsx("div",{ref:v,className:m("relative grow overflow-hidden rounded-full bg-secondary",c==="horizontal"?"h-2 w-full":"h-full w-2"),onClick:P,children:jsxRuntime.jsx("div",{className:"absolute bg-primary",style:c==="horizontal"?{left:b.length>1?`${D(b[0])}%`:0,right:`${100-D(b[b.length-1])}%`,top:0,bottom:0}:{bottom:b.length>1?`${D(b[0])}%`:0,top:`${100-D(b[b.length-1])}%`,left:0,right:0}})}),b.map((H,L)=>jsxRuntime.jsx("div",{role:"slider",tabIndex:l?-1:0,"aria-valuemin":a,"aria-valuemax":s,"aria-valuenow":H,"aria-orientation":c,"aria-disabled":l,className:m("absolute block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 cursor-grab",y&&w===L&&"cursor-grabbing"),style:c==="horizontal"?{left:`calc(${D(H)}% - 10px)`,top:"50%",transform:"translateY(-50%)"}:{bottom:`calc(${D(H)}% - 10px)`,left:"50%",transform:"translateX(-50%)"},onPointerDown:S=>T(S,L),onPointerMove:N,onPointerUp:E,onPointerCancel:E,onKeyDown:S=>k(S,L)},L)),d&&b.map((H,L)=>jsxRuntime.jsx("input",{type:"hidden",name:b.length>1?`${d}[${L}]`:d,value:H},L))]})});Ua.displayName="Slider";var Pu=Y__namespace.createContext(null),Eu=()=>{let e=Y__namespace.useContext(Pu);if(!e)throw new Error("AccordionItem must be used within an Accordion");return e},Hi=Y__namespace.createContext(null),Lu=()=>{let e=Y__namespace.useContext(Hi);if(!e)throw new Error("AccordionTrigger/AccordionContent must be used within an AccordionItem");return e},Su=Y__namespace.forwardRef(({className:e,type:t="multiple",value:n,defaultValue:r,onValueChange:o,collapsible:a=true,disabled:s,children:i,...l},c)=>{let[d,u]=Y__namespace.useState(()=>t==="single"?r?[r]:[]:r||[]),f=Y__namespace.useRef(new Map),p=Y__namespace.useRef([]),g=n!==void 0,h=g?t==="single"?n?[n]:[]:n:d,b=w=>{if(t==="single"){let x=h.includes(w)&&a?[]:[w];g||u(x),o?.(x[0]||"");}else {let C=h.includes(w)?h.filter(x=>x!==w):[...h,w];g||u(C),o?.(C);}},v=Y__namespace.useCallback((w,C)=>{f.current.set(w,C),p.current.includes(w)||p.current.push(w);},[]),y=Y__namespace.useCallback(w=>{f.current.delete(w),p.current=p.current.filter(C=>C!==w);},[]),R=Y__namespace.useCallback(w=>{let C=p.current;if(C.length===0)return;let x=document.activeElement,M;f.current.forEach((k,D)=>{k===x&&(M=D);});let T=M?C.indexOf(M):-1,N;switch(w){case "first":N=0;break;case "last":N=C.length-1;break;case "next":N=T===-1?0:(T+1)%C.length;break;case "prev":N=T===-1?C.length-1:(T-1+C.length)%C.length;break}let E=C[N];f.current.get(E)?.focus();},[]);return jsxRuntime.jsx(Pu.Provider,{value:{type:t,value:h,onValueChange:b,collapsible:a,disabled:s,registerTrigger:v,unregisterTrigger:y,focusTrigger:R},children:jsxRuntime.jsx("div",{ref:c,"data-orientation":"vertical",className:m("w-full",e),...l,children:i})})});Su.displayName="Accordion";var Du=Y__namespace.forwardRef(({className:e,value:t,disabled:n,title:r,subtitle:o,startContent:a,children:s,...i},l)=>{let c=Eu(),d=c.value.includes(t),u=n||c.disabled||false,f=Y__namespace.useId(),p=Y__namespace.useId();return r!==void 0?jsxRuntime.jsx(Hi.Provider,{value:{value:t,isOpen:d,isDisabled:u,contentId:f,triggerId:p},children:jsxRuntime.jsxs("div",{ref:l,"data-state":d?"open":"closed","data-disabled":u?"":void 0,className:m("border-b",u&&"opacity-50",e),...i,children:[jsxRuntime.jsx(Hu,{children:jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[a,jsxRuntime.jsxs("div",{className:"flex flex-col items-start",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium",children:r}),o&&jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:o})]})]})}),jsxRuntime.jsx(Iu,{children:s})]})}):jsxRuntime.jsx(Hi.Provider,{value:{value:t,isOpen:d,isDisabled:u,contentId:f,triggerId:p},children:jsxRuntime.jsx("div",{ref:l,"data-state":d?"open":"closed","data-disabled":u?"":void 0,className:m("border-b",u&&"opacity-50",e),...i,children:s})})});Du.displayName="AccordionItem";var Hu=Y__namespace.forwardRef(({className:e,children:t,onClick:n,onKeyDown:r,...o},a)=>{let s=Eu(),{value:i,isOpen:l,isDisabled:c,contentId:d,triggerId:u}=Lu(),f=Y__namespace.useRef(null);Y__namespace.useEffect(()=>{let g=f.current;return g&&!c&&s.registerTrigger(i,g),()=>{s.unregisterTrigger(i);}},[i,c,s]);let p=g=>{switch(r?.(g),g.key){case "ArrowDown":g.preventDefault(),s.focusTrigger("next");break;case "ArrowUp":g.preventDefault(),s.focusTrigger("prev");break;case "Home":g.preventDefault(),s.focusTrigger("first");break;case "End":g.preventDefault(),s.focusTrigger("last");break}};return jsxRuntime.jsx("h3",{className:"flex",children:jsxRuntime.jsxs("button",{type:"button",ref:g=>{f.current=g,typeof a=="function"?a(g):a&&(a.current=g);},id:u,"aria-controls":d,"aria-expanded":l,disabled:c,"data-state":l?"open":"closed",className:m("flex flex-1 items-center justify-between py-4 font-medium transition-all text-left cursor-pointer disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",e),onClick:g=>{n?.(g),s.onValueChange(i);},onKeyDown:p,...o,children:[t,jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})})});Hu.displayName="AccordionTrigger";var Iu=Y__namespace.forwardRef(({className:e,children:t,style:n,...r},o)=>{let{isOpen:a,contentId:s,triggerId:i,isDisabled:l}=Lu();return jsxRuntime.jsx("div",{ref:o,id:s,role:"region","aria-labelledby":i,"data-state":a?"open":"closed","data-disabled":l?"":void 0,className:m("grid transition-[grid-template-rows] duration-200 ease-out",a?"grid-rows-[1fr]":"grid-rows-[0fr]",e),style:n,...r,children:jsxRuntime.jsx("div",{className:"overflow-hidden",children:jsxRuntime.jsx("div",{className:"pb-4 pt-0 text-sm",children:t})})})});Iu.displayName="AccordionContent";var Au=Y__namespace.createContext(null),zu=()=>{let e=Y__namespace.useContext(Au);if(!e)throw new Error("Collapsible components must be used within a Collapsible");return e},Ou=Y__namespace.forwardRef(({className:e,open:t,defaultOpen:n=false,onOpenChange:r,disabled:o,title:a,children:s,...i},l)=>{let[c,d]=Y__namespace.useState(n),u=t!==void 0,f=u?t:c,p=Y__namespace.useId(),g=Y__namespace.useId(),h=b=>{o||(u||d(b),r?.(b));};return jsxRuntime.jsx(Au.Provider,{value:{open:f,onOpenChange:h,disabled:o,contentId:p,triggerId:g},children:jsxRuntime.jsxs("div",{ref:l,"data-state":f?"open":"closed","data-disabled":o?"":void 0,className:m("space-y-2",e),...i,children:[a&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between space-x-4 px-4",children:[jsxRuntime.jsx("h4",{className:"text-sm font-semibold",children:a}),jsxRuntime.jsx(Ii,{})]}),s]})})});Ou.displayName="Collapsible";var Ii=Y__namespace.forwardRef(({className:e,children:t,onClick:n,...r},o)=>{let{open:a,onOpenChange:s,disabled:i,contentId:l,triggerId:c}=zu();return jsxRuntime.jsx(ae,{ref:o,id:c,"aria-controls":l,"aria-expanded":a,disabled:i,"data-state":a?"open":"closed","data-disabled":i?"":void 0,variant:"light",size:"sm",isIconOnly:true,className:e,onClick:d=>{n?.(d),s(!a);},...r,children:t??jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:m("h-4 w-4 transition-transform duration-200",a&&"rotate-180")})})});Ii.displayName="CollapsibleTrigger";var Bu=Y__namespace.forwardRef(({className:e,children:t,style:n,...r},o)=>{let{open:a,contentId:s,triggerId:i,disabled:l}=zu(),c=Y__namespace.useRef(null),[d,u]=Y__namespace.useState(0),[f,p]=Y__namespace.useState(false),[g,h]=Y__namespace.useState(a);Y__namespace.useEffect(()=>{a?(h(true),u(0),p(true),requestAnimationFrame(()=>{requestAnimationFrame(()=>{c.current&&u(c.current.scrollHeight);});})):(p(true),c.current?(u(c.current.scrollHeight),requestAnimationFrame(()=>{u(0);})):u(0));},[a]);let b=()=>{p(false),a||h(false);};return g?jsxRuntime.jsx("div",{ref:o,id:s,role:"region","aria-labelledby":i,"data-state":a?"open":"closed","data-disabled":l?"":void 0,className:m("overflow-hidden",e),style:{...n,height:f?d:a?"auto":0,transition:f?"height 0.25s ease-out, opacity 0.25s ease-out":void 0,opacity:a?1:0},onTransitionEnd:b,...r,children:jsxRuntime.jsx("div",{ref:c,className:"space-y-2",children:t})}):null});Bu.displayName="CollapsibleContent";var _a=Y__namespace.forwardRef(({className:e,value:t=0,max:n=100,label:r,showPercentage:o=false,formatPercentage:a=l=>`${Math.round(l)}%`,...s},i)=>{let l=Math.min(Math.max(t/n*100,0),100);return jsxRuntime.jsxs("div",{ref:i,className:"w-full",children:[(r||o)&&jsxRuntime.jsxs("div",{className:"flex justify-between text-sm mb-2",children:[r&&jsxRuntime.jsx("span",{className:"text-muted-foreground",children:r}),o&&jsxRuntime.jsx("span",{className:m("text-muted-foreground",!r&&"ml-auto"),children:a(l)})]}),jsxRuntime.jsx("div",{role:"progressbar","aria-valuenow":t,"aria-valuemin":0,"aria-valuemax":n,"aria-label":typeof r=="string"?r:void 0,className:m("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...s,children:jsxRuntime.jsx("div",{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-l}%)`}})})]})});_a.displayName="Progress";var Gu=Y__namespace.createContext(null),Uu=()=>{let e=Y__namespace.useContext(Gu);if(!e)throw new Error("HoverCard components must be used within a HoverCard");return e},ju=({children:e,open:t,defaultOpen:n=false,onOpenChange:r,openDelay:o=700,closeDelay:a=300,closeOnScroll:s=true})=>{let[i,l]=Y__namespace.useState(n),c=t!==void 0,d=c?t:i,u=Y__namespace.useRef(null),f=Y__namespace.useId(),p=Y__namespace.useRef(null),g=Y__namespace.useRef(null),h=Y__namespace.useCallback(b=>{p.current&&clearTimeout(p.current),g.current&&clearTimeout(g.current),b?p.current=setTimeout(()=>{c||l(true),r?.(true);},o):g.current=setTimeout(()=>{c||l(false),r?.(false);},a);},[c,r,o,a]);return Y__namespace.useEffect(()=>{if(!s||!d)return;let b=()=>{p.current&&clearTimeout(p.current),g.current&&clearTimeout(g.current),c||l(false),r?.(false);};return window.addEventListener("scroll",b,true),()=>window.removeEventListener("scroll",b,true)},[s,d,c,r]),Y__namespace.useEffect(()=>()=>{p.current&&clearTimeout(p.current),g.current&&clearTimeout(g.current);},[]),jsxRuntime.jsx(Gu.Provider,{value:{open:d,onOpenChange:h,triggerRef:u,contentId:f},children:e})};ju.displayName="HoverCard";var Wu=Y__namespace.forwardRef(({children:e,onMouseEnter:t,onMouseLeave:n,onFocus:r,onBlur:o,...a},s)=>{let{onOpenChange:i,triggerRef:l}=Uu();return jsxRuntime.jsx("a",{ref:p=>{l.current=p,typeof s=="function"?s(p):s&&(s.current=p);},onMouseEnter:p=>{t?.(p),i(true);},onMouseLeave:p=>{n?.(p),i(false);},onFocus:p=>{r?.(p),i(true);},onBlur:p=>{o?.(p),i(false);},...a,children:e})});Wu.displayName="HoverCardTrigger";var _u=Y__namespace.forwardRef(({className:e,side:t="bottom",sideOffset:n=4,align:r="center",alignOffset:o=0,onMouseEnter:a,onMouseLeave:s,children:i,...l},c)=>{let{open:d,onOpenChange:u,triggerRef:f,contentId:p}=Uu(),[g,h]=Y__namespace.useState({top:0,left:0}),[b,v]=Y__namespace.useState(false),y=Y__namespace.useRef(null);Y__namespace.useEffect(()=>{v(true);},[]),Y__namespace.useEffect(()=>{if(!d||!f.current||!y.current)return;(()=>{if(!f.current||!y.current)return;let M=f.current.getBoundingClientRect(),T=y.current.getBoundingClientRect(),N=0,E=0;switch(t){case "top":N=M.top-T.height-n;break;case "bottom":N=M.bottom+n;break;case "left":E=M.left-T.width-n;break;case "right":E=M.right+n;break}if(t==="top"||t==="bottom")switch(r){case "start":E=M.left+o;break;case "center":E=M.left+M.width/2-T.width/2;break;case "end":E=M.right-T.width-o;break}else switch(r){case "start":N=M.top+o;break;case "center":N=M.top+M.height/2-T.height/2;break;case "end":N=M.bottom-T.height-o;break}h({top:N,left:E});})();},[d,t,n,r,o,f]);let R=x=>{a?.(x),u(true);},w=x=>{s?.(x),u(false);};if(!b||!d)return null;let C={top:"animate-in fade-in-0 zoom-in-95 slide-in-from-bottom-2",bottom:"animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",left:"animate-in fade-in-0 zoom-in-95 slide-in-from-right-2",right:"animate-in fade-in-0 zoom-in-95 slide-in-from-left-2"}[t];return Ba__namespace.createPortal(jsxRuntime.jsx("div",{ref:x=>{y.current=x,typeof c=="function"?c(x):c&&(c.current=x);},id:p,"data-state":d?"open":"closed","data-side":t,className:m("fixed z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none",C,e),style:{top:g.top,left:g.left},onMouseEnter:R,onMouseLeave:w,...l,children:i}),document.body)});_u.displayName="HoverCardContent";var Yu=Y__namespace.createContext({size:"md",variant:"default",radius:"md"}),Xa=()=>Y__namespace.useContext(Yu);classVarianceAuthority.cva("",{variants:{size:{sm:"",md:"",lg:""},variant:{default:"",bordered:"",filled:""},radius:{none:"",sm:"",md:"",lg:"",full:""}},defaultVariants:{size:"md",variant:"default",radius:"md"}});var rR=classVarianceAuthority.cva("flex flex-wrap items-center break-words",{variants:{size:{sm:"gap-1 text-xs",md:"gap-1.5 text-sm sm:gap-2",lg:"gap-2 text-base sm:gap-3"},variant:{default:"text-muted-foreground",bordered:"text-muted-foreground px-3 py-1.5 border",filled:"text-muted-foreground bg-muted px-3 py-1.5"},radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-full"}},defaultVariants:{size:"md",variant:"default",radius:"md"}}),oR=classVarianceAuthority.cva("",{variants:{size:{sm:"[&>svg]:h-3 [&>svg]:w-3",md:"[&>svg]:h-3.5 [&>svg]:w-3.5",lg:"[&>svg]:h-4 [&>svg]:w-4"}},defaultVariants:{size:"md"}}),aR=classVarianceAuthority.cva("flex items-center justify-center",{variants:{size:{sm:"h-6 w-6 [&>svg]:h-3 [&>svg]:w-3",md:"h-8 w-8 [&>svg]:h-4 [&>svg]:w-4",lg:"h-10 w-10 [&>svg]:h-5 [&>svg]:w-5"}},defaultVariants:{size:"md"}}),Xu=Y__namespace.forwardRef(({size:e="md",variant:t="default",radius:n="md",children:r,...o},a)=>jsxRuntime.jsx(Yu.Provider,{value:{size:e,variant:t,radius:n},children:jsxRuntime.jsx("nav",{ref:a,"aria-label":"breadcrumb",...o,children:r})}));Xu.displayName="Breadcrumb";var qu=Y__namespace.forwardRef(({className:e,...t},n)=>{let{size:r,variant:o,radius:a}=Xa();return jsxRuntime.jsx("ol",{ref:n,className:m(rR({size:r,variant:o,radius:o==="default"?void 0:a}),e),...t})});qu.displayName="BreadcrumbList";var Zu=Y__namespace.forwardRef(({className:e,...t},n)=>{let{size:r}=Xa();return jsxRuntime.jsx("li",{ref:n,className:m("inline-flex items-center",r==="sm"&&"gap-1",r==="md"&&"gap-1.5",r==="lg"&&"gap-2",e),...t})});Zu.displayName="BreadcrumbItem";var Qu=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("a",{ref:n,className:m("transition-colors hover:text-foreground cursor-pointer",e),...t}));Qu.displayName="BreadcrumbLink";var Ju=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("span",{ref:n,role:"link","aria-disabled":"true","aria-current":"page",className:m("font-medium text-foreground",e),...t}));Ju.displayName="BreadcrumbPage";var em=({children:e,className:t,...n})=>{let{size:r}=Xa();return jsxRuntime.jsx("li",{role:"presentation","aria-hidden":"true",className:m(oR({size:r}),"text-muted-foreground/60",t),...n,children:e??jsxRuntime.jsx(lucideReact.ChevronRight,{})})};em.displayName="BreadcrumbSeparator";var tm=({className:e,...t})=>{let{size:n}=Xa();return jsxRuntime.jsxs("span",{role:"presentation","aria-hidden":"true",className:m(aR({size:n}),e),...t,children:[jsxRuntime.jsx(lucideReact.MoreHorizontal,{}),jsxRuntime.jsx("span",{className:"sr-only",children:"More"})]})};tm.displayName="BreadcrumbEllipsis";var om=Y__namespace.forwardRef(({ratio:e=1,className:t,style:n,children:r,...o},a)=>jsxRuntime.jsx("div",{ref:a,className:m("relative w-full",t),style:{...n,paddingBottom:`${100/e}%`},...o,children:jsxRuntime.jsx("div",{className:"absolute inset-0",children:r})}));om.displayName="AspectRatio";var im=Y__namespace.createContext(null),Ai=()=>{let e=Y__namespace.useContext(im);if(!e)throw new Error("NavigationMenu components must be used within a NavigationMenu");return e},lm=Y__namespace.createContext(null),cm=()=>{let e=Y__namespace.useContext(lm);if(!e)throw new Error("NavigationMenuItem components must be used within a NavigationMenuItem");return e},dm=Y__namespace.forwardRef(({className:e,orientation:t="horizontal",children:n,...r},o)=>{let[a,s]=Y__namespace.useState(null);return jsxRuntime.jsx(im.Provider,{value:{activeItem:a,setActiveItem:s,orientation:t},children:jsxRuntime.jsxs("nav",{ref:o,className:m("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...r,children:[n,jsxRuntime.jsx(zi,{})]})})});dm.displayName="NavigationMenu";var um=Y__namespace.forwardRef(({className:e,...t},n)=>{let{orientation:r}=Ai();return jsxRuntime.jsx("ul",{ref:n,className:m("group flex flex-1 list-none items-center justify-center gap-1",r==="vertical"&&"flex-col items-start",e),...t})});um.displayName="NavigationMenuList";var mm=Y__namespace.forwardRef(({className:e,children:t,...n},r)=>{let{activeItem:o,setActiveItem:a}=Ai(),s=Y__namespace.useId(),i=Y__namespace.useRef(null),l=o===s,c=Y__namespace.useCallback(d=>{a(d?s:null);},[s,a]);return jsxRuntime.jsx(lm.Provider,{value:{itemId:s,triggerRef:i,open:l,onOpenChange:c},children:jsxRuntime.jsx("li",{ref:r,className:m("relative",e),...n,children:t})})});mm.displayName="NavigationMenuItem";var pm=classVarianceAuthority.cva("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-accent/50"),fm=Y__namespace.forwardRef(({className:e,children:t,onMouseEnter:n,onClick:r,...o},a)=>{let{triggerRef:s,open:i,onOpenChange:l}=cm(),c=u=>{n?.(u),l(true);},d=u=>{r?.(u),l(!i);};return jsxRuntime.jsxs("button",{ref:u=>{s.current=u,typeof a=="function"?a(u):a&&(a.current=u);},type:"button","data-state":i?"open":"closed",className:m(pm(),"group",e),onMouseEnter:c,onClick:d,"aria-expanded":i,...o,children:[t,jsxRuntime.jsx(lucideReact.ChevronDown,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})});fm.displayName="NavigationMenuTrigger";var gm=Y__namespace.forwardRef(({className:e,onMouseEnter:t,onMouseLeave:n,...r},o)=>{let{open:a,onOpenChange:s,triggerRef:i}=cm(),l=Y__namespace.useRef(null),[c,d]=Y__namespace.useState({top:0,left:0});Y__namespace.useEffect(()=>{if(!a||!i.current)return;let p=()=>{if(!i.current)return;let g=i.current.getBoundingClientRect();d({top:g.bottom+4,left:g.left});};return p(),window.addEventListener("resize",p),window.addEventListener("scroll",p,true),()=>{window.removeEventListener("resize",p),window.removeEventListener("scroll",p,true);}},[a,i]);let u=p=>{t?.(p),s(true);},f=p=>{n?.(p),s(false);};return a?Ba__namespace.createPortal(jsxRuntime.jsx("div",{ref:p=>{l.current=p,typeof o=="function"?o(p):o&&(o.current=p);},"data-state":a?"open":"closed",className:m("fixed z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-4 text-popover-foreground shadow-lg","animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",e),style:{top:c.top,left:c.left},onMouseEnter:u,onMouseLeave:f,...r}),document.body):null});gm.displayName="NavigationMenuContent";var bm=classVarianceAuthority.cva("block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground"),vm=Y__namespace.forwardRef(({className:e,active:t,...n},r)=>jsxRuntime.jsx("a",{ref:r,className:m(bm(),t&&"bg-accent text-accent-foreground",e),...n}));vm.displayName="NavigationMenuLink";var zi=Y__namespace.forwardRef((e,t)=>null);zi.displayName="NavigationMenuViewport";var hm=Y__namespace.forwardRef(({className:e,...t},n)=>{let{activeItem:r}=Ai();return r?jsxRuntime.jsx("div",{ref:n,className:m("top-full z-[1] flex h-2.5 items-end justify-center overflow-hidden","data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:jsxRuntime.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}):null});hm.displayName="NavigationMenuIndicator";var wm=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-full cursor-pointer transition-colors hover:bg-muted/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{size:{sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10"}},defaultVariants:{size:"md"}}),Nt=Y__namespace.forwardRef(({className:e,size:t,...n},r)=>{let a={sm:14,md:16,lg:20}[t??"md"];return jsxRuntime.jsx("button",{ref:r,type:"button",className:m(wm({size:t}),e),"aria-label":"Close",...n,children:jsxRuntime.jsx(lucideReact.X,{style:{width:a,height:a}})})});Nt.displayName="CloseButton";var qa=Y__namespace.createContext(null);function bR(){let e=Y__namespace.useContext(qa);if(!e)throw new Error("useDrawer must be used within a DrawerProvider.");return e}function kn(){return Y__namespace.useContext(qa)}var vR="16rem",hR="18rem",xR="3rem",yR="b",RR={xs:"256px",sm:"320px",md:"384px",lg:"448px",xl:"512px","2xl":"576px","3xl":"672px","4xl":"768px","5xl":"896px",full:"100%"},wR={xs:"20vh",sm:"30vh",md:"40vh",lg:"50vh",xl:"60vh","2xl":"70vh","3xl":"75vh","4xl":"80vh","5xl":"90vh",full:"100vh"},Oi=Y__namespace.forwardRef(({defaultOpen:e=false,open:t,onOpenChange:n,placement:r="left",size:o="md",backdrop:a="opaque",isDismissable:s=true,hideCloseButton:i=false,collapsible:l="offcanvas",mode:c,className:d,style:u,children:f,...p},g)=>{let h=c??"overlay",b=h==="overlay",[v,y]=Y__namespace.useState(false),[R,w]=Y__namespace.useState(false),[C,x]=Y__namespace.useState(e),M=t??C,T=Y__namespace.useCallback(k=>{let D=typeof k=="function"?k(M):k;n?n(D):x(D);},[n,M]);Y__namespace.useEffect(()=>{let k=()=>{y(window.innerWidth<768);};return k(),window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)},[]);let N=Y__namespace.useCallback(()=>b?T(k=>!k):v?w(k=>!k):T(k=>!k),[v,T,w,b]);Y__namespace.useEffect(()=>{if(b)return;let k=D=>{D.key===yR&&(D.metaKey||D.ctrlKey)&&(D.preventDefault(),N());};return window.addEventListener("keydown",k),()=>window.removeEventListener("keydown",k)},[N,b]);let E=M?"expanded":"collapsed",P=Y__namespace.useMemo(()=>({placement:r,state:E,open:M,setOpen:T,isMobile:v,openMobile:R,setOpenMobile:w,toggleDrawer:N,collapsible:l,mode:h,size:o,backdrop:a,isDismissable:s,hideCloseButton:i}),[r,E,M,T,v,R,w,N,l,h,o,a,s,i]);return b?jsxRuntime.jsx(qa.Provider,{value:P,children:jsxRuntime.jsx(vaul.Drawer.Root,{open:M,onOpenChange:T,direction:r,dismissible:s,children:f})}):jsxRuntime.jsx(qa.Provider,{value:P,children:jsxRuntime.jsx(Wn,{delayDuration:0,children:jsxRuntime.jsx("div",{ref:g,style:{"--drawer-width":vR,"--drawer-width-icon":xR,...u},className:m("group/drawer-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-muted/50",d),...p,children:f})})})});Oi.displayName="Drawer";var Tm=Y__namespace.forwardRef(({variant:e="default",embedded:t=false,className:n,children:r,...o},a)=>{let s=kn();if(!s)return jsxRuntime.jsx("div",{ref:a,className:m("flex h-full flex-col bg-background text-foreground",n),...o,children:r});let{placement:i,collapsible:l,isMobile:c,state:d,openMobile:u,setOpenMobile:f}=s;if(i==="bottom"||i==="top")return jsxRuntime.jsx(jsxRuntime.Fragment,{children:r});if(l==="none")return jsxRuntime.jsx("div",{ref:a,className:m("flex h-full w-[--drawer-width] flex-col bg-background text-foreground border-r",i==="right"&&"border-l border-r-0",n),...o,children:r});if(c&&!t)return jsxRuntime.jsx(CR,{open:u,onOpenChange:f,placement:i,children:r});if(t){let g=d==="collapsed",h=l==="offcanvas",b=l==="icon";return jsxRuntime.jsx("div",{ref:a,className:m("group peer text-foreground relative"),"data-state":d,"data-collapsible":g?l:"","data-variant":e,"data-placement":i,"data-embedded":"true",children:jsxRuntime.jsx("div",{className:m("flex h-full flex-col overflow-hidden transition-[width,opacity] duration-200 ease-out",h?g?"w-0 opacity-0":"w-[--drawer-width] opacity-100":b&&g?"w-[--drawer-width-icon]":"w-[--drawer-width]",n),...o,children:jsxRuntime.jsx("div",{"data-drawer":"drawer",className:m("flex h-full w-full flex-col bg-background transition-opacity duration-200",e==="floating"&&"overflow-hidden rounded-lg border shadow-sm",e==="inset"&&"overflow-hidden rounded-lg border",e==="default"&&i==="left"&&"border-r",e==="default"&&i==="right"&&"border-l"),children:r})})})}return jsxRuntime.jsxs("div",{ref:a,className:"group peer hidden md:block text-foreground","data-state":d,"data-collapsible":d==="collapsed"?l:"","data-variant":e,"data-placement":i,children:[jsxRuntime.jsx("div",{className:m("duration-200 relative h-svh w-[--drawer-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0",i==="right"&&"group-data-[placement=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--drawer-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--drawer-width-icon]")}),jsxRuntime.jsx("div",{className:m("duration-200 fixed inset-y-0 z-10 hidden h-svh w-[--drawer-width] transition-[left,right,width] ease-linear md:flex",i==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--drawer-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--drawer-width)*-1)]",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--drawer-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--drawer-width-icon] group-data-[placement=left]:border-r group-data-[placement=right]:border-l",n),...o,children:jsxRuntime.jsx("div",{"data-drawer":"drawer",className:m("flex h-full w-full flex-col bg-background",e==="floating"&&"overflow-hidden rounded-lg border shadow-sm",e==="inset"&&"overflow-hidden rounded-lg border"),children:r})})]})});Tm.displayName="DrawerSidebar";var CR=({children:e,open:t,onOpenChange:n,placement:r})=>{let[o,a]=Y__namespace.useState(false);return Y__namespace.useEffect(()=>{a(true);},[]),Y__namespace.useEffect(()=>{if(t)return Gt(),()=>Ut()},[t]),!o||!t?null:Ba__namespace.createPortal(jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"fixed inset-0 z-50 bg-black/80 animate-in fade-in-0",onClick:()=>n(false)}),jsxRuntime.jsx("div",{className:m("fixed z-50 bg-background p-0 text-foreground shadow-lg","animate-in",r==="left"&&"inset-y-0 left-0 h-full w-[--drawer-width] slide-in-from-left",r==="right"&&"inset-y-0 right-0 h-full w-[--drawer-width] slide-in-from-right"),style:{"--drawer-width":hR},children:jsxRuntime.jsx("div",{className:"flex h-full w-full flex-col",children:e})})]}),document.body)},Mm=Y__namespace.forwardRef(({className:e,onClick:t,...n},r)=>{let o=kn();if(o?.mode==="overlay")return jsxRuntime.jsx(vaul.Drawer.Trigger,{ref:r,className:e,onClick:t,...n});let a=o?.toggleDrawer;return jsxRuntime.jsxs("button",{ref:r,type:"button","data-drawer":"trigger",className:m("flex items-center justify-center h-9 w-9 rounded-lg bg-transparent hover:bg-accent transition-colors cursor-pointer",e),onClick:s=>{t?.(s),a?.();},...n,children:[jsxRuntime.jsx(lucideReact.PanelLeft,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle Drawer"})]})});Mm.displayName="DrawerTrigger";var Nm=Y__namespace.forwardRef(({className:e,children:t,...n},r)=>{let o=kn(),a=o?.mode==="overlay",s=o?.placement||"left",i=o?.size||"md",l=o?.backdrop||"opaque";if(a){let c=s==="top"||s==="bottom",d=s==="left"||s==="right",u=d?RR[i]:wR[i],f={opaque:"bg-black/80",blur:"bg-black/50 backdrop-blur-sm",transparent:"bg-transparent"},p={top:"inset-x-0 top-0 rounded-b-[10px]",bottom:"inset-x-0 bottom-0 rounded-t-[10px]",left:"inset-y-0 left-0 rounded-r-[10px]",right:"inset-y-0 right-0 rounded-l-[10px]"};return jsxRuntime.jsxs(vaul.Drawer.Portal,{children:[jsxRuntime.jsx(vaul.Drawer.Overlay,{className:m("fixed inset-0 z-50",f[l])}),jsxRuntime.jsxs(vaul.Drawer.Content,{ref:r,className:m("fixed z-50 flex flex-col border bg-background",p[s],e),style:{...d?{width:u,height:"100%"}:{},...c?{maxHeight:u}:{},...n.style},...n,children:[c&&jsxRuntime.jsx("div",{className:m("mx-auto h-2 w-[100px] rounded-full bg-muted",s==="top"?"mb-4 mt-auto":"mt-4")}),t]})]})}return jsxRuntime.jsx("div",{ref:r,className:m("flex flex-col h-full",e),...n,children:t})});Nm.displayName="DrawerContent";var km=Y__namespace.forwardRef(({className:e,hideCloseButton:t,children:n,...r},o)=>{let a=kn(),s=a?.hideCloseButton??false,i=!t&&!s;return jsxRuntime.jsxs("div",{ref:o,"data-drawer":"header",className:m("flex flex-col gap-2 p-4 relative",e),...r,children:[n,i&&jsxRuntime.jsx(Nt,{className:"absolute right-4 top-4",onClick:()=>a?.setOpen(false)})]})});km.displayName="DrawerHeader";var Pm=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,"data-drawer":"body",className:m("flex min-h-0 flex-1 flex-col gap-2 overflow-auto p-4 group-data-[collapsible=icon]:overflow-hidden",e),...t}));Pm.displayName="DrawerBody";var Em=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,"data-drawer":"footer",className:m("flex flex-col gap-2 p-4 mt-auto",e),...t}));Em.displayName="DrawerFooter";var Lm=Y__namespace.forwardRef(({className:e,...t},n)=>kn()?.mode==="overlay"?jsxRuntime.jsx(vaul.Drawer.Title,{ref:n,className:m("text-lg font-semibold leading-none tracking-tight",e),...t}):jsxRuntime.jsx("h2",{ref:n,className:m("text-lg font-semibold leading-none tracking-tight",e),...t}));Lm.displayName="DrawerTitle";var Sm=Y__namespace.forwardRef(({className:e,...t},n)=>kn()?.mode==="overlay"?jsxRuntime.jsx(vaul.Drawer.Description,{ref:n,className:m("text-sm text-muted-foreground",e),...t}):jsxRuntime.jsx("p",{ref:n,className:m("text-sm text-muted-foreground",e),...t}));Sm.displayName="DrawerDescription";var Dm=Y__namespace.forwardRef(({className:e,onClick:t,...n},r)=>{let o=kn();return jsxRuntime.jsx(Nt,{ref:r,className:e,onClick:a=>{t?.(a),o?.setOpen(false);},...n})});Dm.displayName="DrawerClose";var Hm=Y__namespace.forwardRef(({className:e,onClick:t,showLabel:n=true,...r},o)=>{let a=kn();if(!a)return null;let{toggleDrawer:s,state:i,placement:l}=a,c=i==="collapsed",d=l==="left",u=d?lucideReact.PanelLeftOpen:lucideReact.PanelRightOpen,f=d?lucideReact.PanelLeftClose:lucideReact.PanelRightClose;return jsxRuntime.jsxs("button",{ref:o,type:"button","data-drawer":"toggle","data-state":i,className:m("flex items-center gap-2 w-full px-2 py-2 rounded-md text-sm text-muted-foreground","hover:bg-accent hover:text-accent-foreground","transition-colors cursor-pointer","group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:px-0",e),onClick:p=>{t?.(p),s();},...r,children:[c?jsxRuntime.jsx(u,{className:"h-4 w-4 shrink-0"}):jsxRuntime.jsx(f,{className:"h-4 w-4 shrink-0"}),n&&jsxRuntime.jsx("span",{className:"group-data-[collapsible=icon]:hidden truncate",children:c?"Expand":"Collapse"})]})});Hm.displayName="DrawerToggle";var Im=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,"data-drawer":"separator",className:m("mx-4 h-px bg-border",e),...t}));Im.displayName="DrawerSeparator";var Vm=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("ul",{ref:n,"data-drawer":"menu",className:m("flex w-full min-w-0 flex-col gap-1",e),...t}));Vm.displayName="DrawerMenu";var Am=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("li",{ref:n,"data-drawer":"menu-item",className:m("group/menu-item relative",e),...t}));Am.displayName="DrawerMenuItem";var zm=classVarianceAuthority.cva("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-ring transition-[width,height,padding] hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 active:bg-accent active:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-accent data-[active=true]:font-medium data-[active=true]:text-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-accent hover:text-accent-foreground",bordered:"bg-background shadow-[0_0_0_1px_currentColor] hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent/50 hover:text-accent-foreground"},size:{sm:"h-7 text-xs",md:"h-8 text-sm",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"md"}}),Om=Y__namespace.forwardRef(({isActive:e=false,variant:t="default",size:n="md",tooltip:r,className:o,children:a,...s},i)=>{let l=kn(),c=l?.isMobile??false,d=l?.state??"expanded",u=jsxRuntime.jsx("button",{ref:i,type:"button","data-drawer":"menu-button","data-size":n,"data-active":e,className:m(zm({variant:t,size:n}),o),...s,children:a});return r?jsxRuntime.jsxs(_n,{children:[jsxRuntime.jsx(Yn,{children:u}),jsxRuntime.jsx(Xn,{side:"right",align:"center",hidden:d!=="collapsed"||c,...typeof r=="string"?{children:r}:r})]}):u});Om.displayName="DrawerMenuButton";var Bm=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,"data-drawer":"group",className:m("relative flex w-full min-w-0 flex-col p-2",e),...t}));Bm.displayName="DrawerGroup";var Fm=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,"data-drawer":"group-label",className:m("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-muted-foreground outline-none transition-[margin,opacity] ease-linear","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...t}));Fm.displayName="DrawerGroupLabel";var Km=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("main",{ref:n,className:m("relative flex min-h-svh flex-1 flex-col bg-background","peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));Km.displayName="DrawerInset";var TR=Oi;var Gm=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{className:"relative w-full overflow-auto",children:jsxRuntime.jsx("table",{ref:n,className:m("w-full caption-bottom text-sm",e),...t})}));Gm.displayName="Table";var Um=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("thead",{ref:n,className:m("[&_tr]:border-b",e),...t}));Um.displayName="TableHeader";var jm=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("tbody",{ref:n,className:m("[&_tr:last-child]:border-0",e),...t}));jm.displayName="TableBody";var Wm=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("tfoot",{ref:n,className:m("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));Wm.displayName="TableFooter";var _m=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("tr",{ref:n,className:m("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));_m.displayName="TableRow";var Ym=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("th",{ref:n,className:m("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));Ym.displayName="TableHead";var Xm=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("td",{ref:n,className:m("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));Xm.displayName="TableCell";var qm=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("caption",{ref:n,className:m("mt-4 text-sm text-muted-foreground",e),...t}));qm.displayName="TableCaption";function LR({className:e,data:t,columns:n,selectable:r=false,selectedKeys:o,onSelectionChange:a,getRowKey:s=(w,C)=>String(C),sortable:i=false,sortState:l,onSortChange:c,paginated:d=false,pageSizeOptions:u=[10,20,50],paginationState:f,onPaginationChange:p,emptyContent:g="No data",loading:h=false,striped:b=false,hoverable:v=true,...y},R){let[w,C]=Y__namespace.useState(new Set),[x,M]=Y__namespace.useState({columnId:null,direction:null}),[T,N]=Y__namespace.useState({pageIndex:0,pageSize:u[0]||10}),E=o??w,P=l??x,k=f??T,D=$=>{a?a($):C($);},H=$=>{c?c($):M($);},L=$=>{p?p($):N($);},S=Y__namespace.useMemo(()=>{if(!P.columnId||!P.direction)return t;let $=n.find(B=>B.id===P.columnId);return $?[...t].sort((B,U)=>{let j=$.accessor(B),F=$.accessor(U);if(j===F)return 0;if(j==null)return 1;if(F==null)return -1;let Z=String(j).localeCompare(String(F),void 0,{numeric:true});return P.direction==="asc"?Z:-Z}):t},[t,P,n]),I=Y__namespace.useMemo(()=>{if(!d)return S;let $=k.pageIndex*k.pageSize;return S.slice($,$+k.pageSize)},[S,d,k]),A=Math.ceil(S.length/k.pageSize),O=$=>{if($===true){let B=new Set(I.map((U,j)=>s(U,j)));D(B);}else D(new Set);},V=($,B)=>{let U=new Set(E);B?U.add($):U.delete($),D(U);},z=I.length>0&&I.every(($,B)=>E.has(s($,B))),K=I.some(($,B)=>E.has(s($,B))),_=$=>{if(!n.find(j=>j.id===$)?.sortable&&!i)return;let U="asc";P.columnId===$&&(P.direction==="asc"?U="desc":P.direction==="desc"&&(U=null)),H({columnId:U?$:null,direction:U});},X=$=>P.columnId!==$?jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"h-4 w-4 text-muted-foreground/50"}):P.direction==="asc"?jsxRuntime.jsx(lucideReact.ChevronUp,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"});return jsxRuntime.jsxs("div",{ref:R,className:m("w-full",e),...y,children:[jsxRuntime.jsx("div",{className:"relative w-full overflow-auto rounded-md border",children:jsxRuntime.jsxs("table",{className:"w-full caption-bottom text-sm",children:[jsxRuntime.jsx("thead",{className:"[&_tr]:border-b bg-muted/50",children:jsxRuntime.jsxs("tr",{children:[r&&jsxRuntime.jsx("th",{className:"h-12 w-12 px-4",children:jsxRuntime.jsx(zo,{checked:z?true:K?"indeterminate":false,onCheckedChange:O,"aria-label":"Select all"})}),n.map($=>{let B=$.sortable??i;return jsxRuntime.jsx("th",{className:m("h-12 px-4 text-left align-middle font-medium text-muted-foreground",B&&"cursor-pointer select-none hover:text-foreground"),style:{width:$.width},onClick:()=>B&&_($.id),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[$.header,B&&X($.id)]})},$.id)})]})}),jsxRuntime.jsx("tbody",{className:"[&_tr:last-child]:border-0",children:h?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:n.length+(r?1:0),className:"h-24 text-center text-muted-foreground",children:"Loading..."})}):I.length===0?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:n.length+(r?1:0),className:"h-24 text-center text-muted-foreground",children:g})}):I.map(($,B)=>{let U=s($,B),j=E.has(U);return jsxRuntime.jsxs("tr",{className:m("border-b transition-colors",v&&"hover:bg-muted/50",b&&B%2===1&&"bg-muted/30",j&&"bg-muted"),"data-state":j?"selected":void 0,children:[r&&jsxRuntime.jsx("td",{className:"w-12 px-4",children:jsxRuntime.jsx(zo,{checked:j,onCheckedChange:F=>V(U,!!F),"aria-label":`Select row ${B+1}`})}),n.map(F=>jsxRuntime.jsx("td",{className:"p-4 align-middle",children:F.cell?F.cell($,B):F.accessor($)},F.id))]},U)})})]})}),d&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between px-2 py-4",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[jsxRuntime.jsx("span",{children:"Rows per page:"}),jsxRuntime.jsx("select",{value:k.pageSize,onChange:$=>L({pageIndex:0,pageSize:Number($.target.value)}),className:"h-8 rounded-md border bg-transparent px-2",children:u.map($=>jsxRuntime.jsx("option",{value:$,children:$},$))})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"text-sm text-muted-foreground",children:["Page ",k.pageIndex+1," of ",A||1]}),jsxRuntime.jsxs("div",{className:"flex gap-1",children:[jsxRuntime.jsx(ae,{variant:"light",size:"sm",isIconOnly:true,onClick:()=>L({...k,pageIndex:k.pageIndex-1}),disabled:k.pageIndex===0,"aria-label":"Previous page",children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx(ae,{variant:"light",size:"sm",isIconOnly:true,onClick:()=>L({...k,pageIndex:k.pageIndex+1}),disabled:k.pageIndex>=A-1,"aria-label":"Next page",children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})})]})]})]})]})}var SR=Y__namespace.forwardRef(LR);var Bi=["January","February","March","April","May","June","July","August","September","October","November","December"];function OR({currentMonth:e,onMonthChange:t,startYear:n,endYear:r}){let o=dateFns.getMonth(e),a=dateFns.getYear(e),s=c=>{let d=dateFns.setMonth(e,c);t(d);},i=c=>{let d=dateFns.setYear(e,c);t(d);},l=Y__namespace.useMemo(()=>{let c=[];for(let d=r;d>=n;d--)c.push(d);return c},[n,r]);return jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsxs(Cn,{children:[jsxRuntime.jsx(Tn,{children:jsxRuntime.jsxs("div",{className:m("inline-flex items-center justify-between gap-1 px-1.5 py-1 rounded-md","text-xs font-medium w-[85px]","border border-border bg-background","hover:bg-muted transition-colors cursor-pointer"),children:[jsxRuntime.jsx("span",{className:"truncate",children:Bi[o]}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-3 w-3 text-muted-foreground shrink-0"})]})}),jsxRuntime.jsx(Mn,{className:"min-w-[120px] p-0",children:jsxRuntime.jsx(ke,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"p-1",children:Bi.map((c,d)=>jsxRuntime.jsx($t,{onSelect:()=>s(d),className:m("text-xs",o===d&&"bg-primary/10 text-primary font-medium"),children:c},c))})})})]}),jsxRuntime.jsxs(Cn,{children:[jsxRuntime.jsx(Tn,{children:jsxRuntime.jsxs("div",{className:m("inline-flex items-center justify-between gap-1 px-1.5 py-1 rounded-md","text-xs font-medium w-[60px]","border border-border bg-background","hover:bg-muted transition-colors cursor-pointer"),children:[jsxRuntime.jsx("span",{children:a}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-3 w-3 text-muted-foreground shrink-0"})]})}),jsxRuntime.jsx(Mn,{className:"min-w-[80px] p-0",children:jsxRuntime.jsx(ke,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"p-1",children:l.map(c=>jsxRuntime.jsx($t,{onSelect:()=>i(c),className:m("text-xs",a===c&&"bg-primary/10 text-primary font-medium"),children:c},c))})})})]})]})}function BR(e,t,n){return function({calendarMonth:o}){let{goToMonth:a,nextMonth:s,previousMonth:i}=reactDayPicker.useDayPicker();if(e)return jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-1 mb-2",children:[jsxRuntime.jsx(OR,{currentMonth:o.date,onMonthChange:a,startYear:t,endYear:n}),jsxRuntime.jsxs("div",{className:"flex items-center",children:[jsxRuntime.jsx("button",{type:"button",disabled:!i,onClick:()=>i&&a(i),className:m("h-6 w-6 inline-flex items-center justify-center rounded-md","text-muted-foreground hover:text-foreground hover:bg-muted","transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"),"aria-label":"Previous month",children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-3.5 w-3.5"})}),jsxRuntime.jsx("button",{type:"button",disabled:!s,onClick:()=>s&&a(s),className:m("h-6 w-6 inline-flex items-center justify-center rounded-md","text-muted-foreground hover:text-foreground hover:bg-muted","transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"),"aria-label":"Next month",children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-3.5 w-3.5"})})]})]});let l=Bi[o.date.getMonth()],c=o.date.getFullYear();return jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-2 h-10 mb-2",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium w-[90px]",children:l}),jsxRuntime.jsx("span",{className:"text-sm font-medium w-[50px]",children:c})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("button",{type:"button",disabled:!i,onClick:()=>i&&a(i),className:m("h-8 w-8 inline-flex items-center justify-center rounded-md","text-muted-foreground hover:text-foreground hover:bg-muted","transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"),"aria-label":"Previous month",children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx("button",{type:"button",disabled:!s,onClick:()=>s&&a(s),className:m("h-8 w-8 inline-flex items-center justify-center rounded-md","text-muted-foreground hover:text-foreground hover:bg-muted","transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"),"aria-label":"Next month",children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})})]})]})}}function eo({className:e,classNames:t,showOutsideDays:n=true,showMonthAndYearPickers:r=false,startYear:o=1900,endYear:a=new Date().getFullYear()+50,components:s,...i}){let l=Y__namespace.useMemo(()=>BR(r,o,a),[r,o,a]);return jsxRuntime.jsx(reactDayPicker.DayPicker,{showOutsideDays:n,className:m("p-4",e),classNames:{months:"flex flex-col sm:flex-row gap-4",month:"flex flex-col gap-2",month_caption:"sr-only",nav:"hidden",month_grid:"w-full border-collapse",weekdays:"flex",weekday:"text-muted-foreground w-8 font-normal text-xs text-center",week:"flex w-full mt-0.5",day:m("relative h-8 w-8 p-0 text-center text-sm","flex items-center justify-center","focus-within:relative focus-within:z-20","[&:has([aria-selected]:not(.outside-day))]:bg-accent","first:[&:has([aria-selected]:not(.outside-day))]:rounded-l-md","last:[&:has([aria-selected]:not(.outside-day))]:rounded-r-md"),day_button:m("size-8 p-0 font-normal rounded-md text-sm","inline-flex items-center justify-center","hover:bg-primary/10","focus:outline-none","transition-colors cursor-pointer"),range_start:"rounded-l-md",range_end:"rounded-r-md",selected:m("bg-primary text-primary-foreground rounded-md","hover:bg-primary/90 hover:!text-primary-foreground","focus:bg-primary focus:text-primary-foreground","[&.outside-day]:!bg-transparent [&.outside-day]:!text-muted-foreground/50"),today:"bg-accent text-accent-foreground rounded-md",outside:"outside-day text-muted-foreground/50 !bg-transparent",disabled:"text-muted-foreground/30 cursor-not-allowed",range_middle:"rounded-none bg-muted text-foreground",hidden:"invisible",...t},modifiersStyles:{range_middle:{backgroundColor:"var(--color-muted)",color:"var(--color-foreground)",borderRadius:0}},components:{...s,MonthCaption:l},...i})}eo.displayName="Calendar";var ep=({className:e,...t})=>jsxRuntime.jsx("nav",{role:"navigation","aria-label":"pagination",className:m("mx-auto flex w-full justify-center",e),...t});ep.displayName="Pagination";var tp=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("ul",{ref:n,className:m("flex flex-row items-center gap-1",e),...t}));tp.displayName="PaginationContent";var np=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("li",{ref:n,className:m("",e),...t}));np.displayName="PaginationItem";var Za=({className:e,isActive:t,size:n="sm",isIconOnly:r=true,...o})=>jsxRuntime.jsx("a",{"aria-current":t?"page":void 0,className:m(Xr({variant:t?"solid":"light",size:n}),r&&"!px-0 !w-9",e),...o});Za.displayName="PaginationLink";var rp=({className:e,...t})=>jsxRuntime.jsxs(Za,{"aria-label":"Go to previous page",size:"md",className:m("gap-1 pl-2.5",e),...t,children:[jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{children:"Previous"})]});rp.displayName="PaginationPrevious";var op=({className:e,...t})=>jsxRuntime.jsxs(Za,{"aria-label":"Go to next page",size:"md",className:m("gap-1 pr-2.5",e),...t,children:[jsxRuntime.jsx("span",{children:"Next"}),jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})]});op.displayName="PaginationNext";var ap=({className:e,...t})=>jsxRuntime.jsxs("span",{"aria-hidden":true,className:m("flex h-9 w-9 items-center justify-center",e),...t,children:[jsxRuntime.jsx(lucideReact.MoreHorizontal,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"More pages"})]});ap.displayName="PaginationEllipsis";var Ko=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("span",{ref:n,className:m("absolute h-px w-px p-0 -m-px overflow-hidden whitespace-nowrap border-0","[clip:rect(0,0,0,0)]",e),...t}));Ko.displayName="VisuallyHidden";var ip={opaque:"bg-black/80",blur:"bg-black/50 backdrop-blur-sm",transparent:"bg-transparent"},UR={auto:"top-[50%] translate-y-[-50%]",center:"top-[50%] translate-y-[-50%]",top:"top-4 translate-y-0",bottom:"top-auto bottom-4 translate-y-0","top-center":"top-[20%] translate-y-0","bottom-center":"top-auto bottom-[20%] translate-y-0"},lp=classVarianceAuthority.cva("fixed inset-0 z-50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"),Gi=classVarianceAuthority.cva("fixed left-[50%] z-50 grid translate-x-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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 sm:rounded-lg",{variants:{size:{xs:"w-full max-w-xs",sm:"w-full max-w-sm",md:"w-full max-w-md",lg:"w-full max-w-lg",xl:"w-full max-w-xl","2xl":"w-full max-w-2xl","3xl":"w-full max-w-3xl","4xl":"w-full max-w-4xl","5xl":"w-full max-w-5xl",full:"w-[calc(100vw-2rem)] h-[calc(100vh-2rem)] max-w-none"}},defaultVariants:{size:"md"}}),Ja=Y__namespace.createContext(null),kr=()=>{let e=Y__namespace.useContext(Ja);if(!e)throw new Error("Modal components must be used within a Modal");return e},dp=Y__namespace.forwardRef(({open:e,onOpenChange:t,trigger:n,title:r="Modal",children:o,hideCloseButton:a=false,isDismissable:s=true,isKeyboardDismissDisabled:i=false,backdrop:l="opaque",placement:c="center",scrollBehavior:d="inside",size:u,className:f},p)=>{let[g,h]=Y__namespace.useState(false),b=e!==void 0,v=b?e:g,[y,R]=Y__namespace.useState(false),w=Y__namespace.useRef(null),C=Y__namespace.useId(),x=Y__namespace.useId();Y__namespace.useEffect(()=>{R(true);},[]);let M=Y__namespace.useCallback(P=>{b||h(P),t?.(P);},[b,t]);Y__namespace.useEffect(()=>{if(v)return Gt(),()=>Ut()},[v]),Y__namespace.useEffect(()=>{if(!v||i)return;let P=k=>{k.key==="Escape"&&M(false);};return document.addEventListener("keydown",P),()=>document.removeEventListener("keydown",P)},[v,i,M]);let T=P=>{s&&P.target===P.currentTarget&&M(false);},N=n?Y__namespace.isValidElement(n)?Y__namespace.cloneElement(n,{onClick:P=>{n.props.onClick?.(P),M(true);}}):jsxRuntime.jsx("button",{type:"button",onClick:()=>M(true),children:n}):null,E=()=>!y||!v?null:d==="outside"?Ba__namespace.createPortal(jsxRuntime.jsx("div",{"data-state":v?"open":"closed",className:m(lp(),ip[l],"overflow-y-auto flex items-start justify-center py-4"),onClick:T,children:jsxRuntime.jsxs("div",{ref:P=>{w.current=P,typeof p=="function"?p(P):p&&(p.current=P);},role:"dialog","aria-modal":"true","aria-labelledby":C,"aria-describedby":x,"data-state":v?"open":"closed",className:m("relative z-50 grid gap-4 border bg-background p-6 shadow-lg sm:rounded-lg dark:border-0",u==="xs"&&"w-full max-w-xs",u==="sm"&&"w-full max-w-sm",u==="md"&&"w-full max-w-md",u==="lg"&&"w-full max-w-lg",u==="xl"&&"w-full max-w-xl",u==="2xl"&&"w-full max-w-2xl",u==="3xl"&&"w-full max-w-3xl",u==="4xl"&&"w-full max-w-4xl",u==="5xl"&&"w-full max-w-5xl",u==="full"&&"w-[calc(100vw-2rem)] min-h-[calc(100vh-2rem)]",!u&&"w-full max-w-md",f),children:[jsxRuntime.jsx(Ko,{children:jsxRuntime.jsx("h2",{id:C,children:r})}),o,!a&&jsxRuntime.jsx(Nt,{size:"sm",className:"absolute right-4 top-4 z-10",onClick:()=>M(false)})]})}),document.body):Ba__namespace.createPortal(jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{"data-state":v?"open":"closed",className:m(lp(),ip[l]),onClick:T,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:P=>{w.current=P,typeof p=="function"?p(P):p&&(p.current=P);},role:"dialog","aria-modal":"true","aria-labelledby":C,"aria-describedby":x,"data-state":v?"open":"closed",className:m(Gi({size:u}),UR[c],"dark:border-0 max-h-[calc(100vh-2rem)] !flex !flex-col overflow-hidden gap-4",f),children:[jsxRuntime.jsx(Ko,{children:jsxRuntime.jsx("h2",{id:C,children:r})}),o,!a&&jsxRuntime.jsx(Nt,{size:"sm",className:"absolute right-4 top-4 z-10",onClick:()=>M(false)})]})]}),document.body);return jsxRuntime.jsxs(Ja.Provider,{value:{open:v,onOpenChange:M,scrollBehavior:d,titleId:C,descriptionId:x},children:[N,E()]})});dp.displayName="Modal";var es=({children:e,open:t,defaultOpen:n=false,onOpenChange:r,scrollBehavior:o="inside"})=>{let[a,s]=Y__namespace.useState(n),i=t!==void 0,l=i?t:a,c=Y__namespace.useId(),d=Y__namespace.useId(),u=Y__namespace.useCallback(f=>{i||s(f),r?.(f);},[i,r]);return jsxRuntime.jsx(Ja.Provider,{value:{open:l,onOpenChange:u,scrollBehavior:o,titleId:c,descriptionId:d},children:e})};es.displayName="ModalRoot";var up=Y__namespace.forwardRef(({children:e,onClick:t,...n},r)=>{let{onOpenChange:o}=kr();return jsxRuntime.jsx("button",{ref:r,type:"button",onClick:s=>{t?.(s),o(true);},...n,children:e})});up.displayName="ModalTrigger";var Ui=({children:e,container:t})=>{let[n,r]=Y__namespace.useState(false);return Y__namespace.useEffect(()=>{r(true);},[]),n?Ba__namespace.createPortal(e,t||document.body):null};Ui.displayName="ModalPortal";var ji=Y__namespace.forwardRef(({className:e,...t},n)=>{let{open:r,onOpenChange:o}=kr();return r?jsxRuntime.jsx("div",{ref:n,"data-state":r?"open":"closed",className:m("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),onClick:()=>o(false),"aria-hidden":"true",...t}):null});ji.displayName="ModalOverlay";var mp=Y__namespace.forwardRef(({children:e,onClick:t,...n},r)=>{let{onOpenChange:o}=kr();return jsxRuntime.jsx("button",{ref:r,type:"button",onClick:s=>{t?.(s),o(false);},...n,children:e})});mp.displayName="ModalClose";var ts=Y__namespace.forwardRef(({className:e,children:t,size:n,showCloseButton:r=true,onEscapeKeyDown:o,onInteractOutside:a,...s},i)=>{let{open:l,onOpenChange:c,titleId:d,descriptionId:u}=kr(),[f,p]=Y__namespace.useState(false);return Y__namespace.useEffect(()=>{p(true);},[]),Y__namespace.useEffect(()=>{if(l)return Gt(),()=>Ut()},[l]),Y__namespace.useEffect(()=>{if(!l)return;let g=h=>{h.key==="Escape"&&(o?.(),c(false));};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[l,c,o]),!f||!l?null:jsxRuntime.jsxs(Ui,{children:[jsxRuntime.jsx(ji,{}),jsxRuntime.jsxs("div",{ref:i,role:"dialog","aria-modal":"true","aria-labelledby":d,"aria-describedby":u,"data-state":l?"open":"closed",className:m(Gi({size:n}),"top-[50%] translate-y-[-50%]",e),...s,children:[t,r&&jsxRuntime.jsx(Nt,{size:"sm",className:"absolute right-4 top-4 z-10",onClick:()=>c(false)})]})]})});ts.displayName="ModalContent";var pp=({className:e,...t})=>jsxRuntime.jsx("div",{className:m("flex-shrink-0 flex flex-col space-y-1.5 text-center sm:text-left",e),...t});pp.displayName="ModalHeader";var fp=({className:e,children:t})=>(Y__namespace.useContext(Ja)?.scrollBehavior??"inside")==="inside"?jsxRuntime.jsx(ke,{className:m("flex-1 min-h-0 -mx-6 px-6",e),children:t}):jsxRuntime.jsx("div",{className:m(e),children:t});fp.displayName="ModalBody";var gp=({className:e,children:t,...n})=>{let{onOpenChange:r}=kr();return jsxRuntime.jsx("div",{className:m("flex-shrink-0 flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...n,children:Y__namespace.Children.map(t,o=>Y__namespace.isValidElement(o)?Y__namespace.cloneElement(o,{onClick:a=>{o.props.onClick?.(a),r(false);}}):o)})};gp.displayName="ModalFooter";var bp=Y__namespace.forwardRef(({className:e,...t},n)=>{let{titleId:r}=kr();return jsxRuntime.jsx("h2",{ref:n,id:r,className:m("text-lg font-semibold leading-none tracking-tight",e),...t})});bp.displayName="ModalTitle";var vp=Y__namespace.forwardRef(({className:e,...t},n)=>{let{descriptionId:r}=kr();return jsxRuntime.jsx("p",{ref:n,id:r,className:m("text-sm text-muted-foreground",e),...t})});vp.displayName="ModalDescription";var Wi=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx(cmdk.Command,{ref:n,className:m("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));Wi.displayName=cmdk.Command.displayName;var _R=({children:e,...t})=>jsxRuntime.jsx(es,{...t,children:jsxRuntime.jsx(ts,{className:"overflow-hidden p-0 shadow-lg",showCloseButton:false,children:jsxRuntime.jsx(Wi,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),hp=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[jsxRuntime.jsx(lucideReact.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),jsxRuntime.jsx(cmdk.Command.Input,{ref:n,className:m("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));hp.displayName=cmdk.Command.Input.displayName;var xp=Y__namespace.forwardRef(({className:e,children:t,...n},r)=>jsxRuntime.jsx(ke,{className:"max-h-[300px]",children:jsxRuntime.jsx(cmdk.Command.List,{ref:r,className:m("overflow-hidden",e),...n,children:t})}));xp.displayName=cmdk.Command.List.displayName;var yp=Y__namespace.forwardRef((e,t)=>jsxRuntime.jsx(cmdk.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));yp.displayName=cmdk.Command.Empty.displayName;var Rp=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx(cmdk.Command.Group,{ref:n,className:m("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));Rp.displayName=cmdk.Command.Group.displayName;var wp=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx(cmdk.Command.Separator,{ref:n,className:m("-mx-1 h-px bg-border",e),...t}));wp.displayName=cmdk.Command.Separator.displayName;var Cp=Y__namespace.forwardRef(({className:e,children:t,startContent:n,endContent:r,...o},a)=>jsxRuntime.jsxs(cmdk.Command.Item,{ref:a,className:m("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...o,children:[n,t&&jsxRuntime.jsx("span",{className:"flex-1",children:t}),r]}));Cp.displayName=cmdk.Command.Item.displayName;var Tp=({className:e,...t})=>jsxRuntime.jsx("span",{className:m("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Tp.displayName="CommandShortcut";var Np=Y__namespace.forwardRef(({className:e,showToggle:t=true,disabled:n,onFocus:r,onBlur:o,style:a,...s},i)=>{let[l,c]=Y__namespace.useState(false),[d,u]=Y__namespace.useState(false);return jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("input",{type:l?"text":"password",className:m("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",t&&"pr-10",e),ref:i,disabled:n,style:{...a,borderColor:d?"var(--color-foreground)":void 0},onFocus:f=>{u(true),r?.(f);},onBlur:f=>{u(false),o?.(f);},...s}),t&&jsxRuntime.jsx("button",{type:"button",className:"absolute right-0 top-0 h-10 w-10 px-3 flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",onClick:()=>c(!l),disabled:n,tabIndex:-1,"aria-label":l?"Hide password":"Show password",children:l?jsxRuntime.jsx(lucideReact.EyeOff,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.Eye,{className:"h-4 w-4"})})]})});Np.displayName="PasswordInput";var kp=Y__namespace.forwardRef(({className:e,showButtons:t=true,step:n=1,min:r,max:o,value:a,defaultValue:s,onChange:i,disabled:l,...c},d)=>{let[u,f]=Y__namespace.useState(s),[p,g]=Y__namespace.useState(false),h=a!==void 0,b=h?a:u,v=T=>{T!==void 0&&(r!==void 0&&T<r&&(T=r),o!==void 0&&T>o&&(T=o)),h||f(T),i?.(T);},y=()=>{v((b??0)+n);},R=()=>{v((b??0)-n);},w=T=>{let N=T.target.value;if(N==="")v(void 0);else {let E=parseFloat(N);isNaN(E)||v(E);}},C=T=>{T.key==="ArrowUp"?(T.preventDefault(),y()):T.key==="ArrowDown"&&(T.preventDefault(),R());},x=r===void 0||(b??0)>r,M=o===void 0||(b??0)<o;return t?jsxRuntime.jsxs("div",{className:m("relative flex items-center rounded-md border transition-colors",p?"border-foreground":"border-input",l&&"opacity-50",e),children:[jsxRuntime.jsx("button",{type:"button",className:"h-10 w-10 shrink-0 flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",onClick:R,disabled:l||!x,tabIndex:-1,"aria-label":"Decrease value",children:jsxRuntime.jsx(lucideReact.Minus,{className:"h-4 w-4"})}),jsxRuntime.jsx("input",{type:"text",inputMode:"numeric",pattern:"[0-9]*",className:"min-w-0 flex-1 h-10 bg-background text-sm text-center focus:outline-none disabled:cursor-not-allowed",ref:d,value:b??"",onChange:w,onKeyDown:C,disabled:l,onFocus:()=>g(true),onBlur:()=>g(false),...c}),jsxRuntime.jsx("button",{type:"button",className:"h-10 w-10 shrink-0 flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",onClick:y,disabled:l||!M,tabIndex:-1,"aria-label":"Increase value",children:jsxRuntime.jsx(lucideReact.Plus,{className:"h-4 w-4"})})]}):jsxRuntime.jsx("input",{type:"text",inputMode:"numeric",pattern:"[0-9]*",className:m("flex h-10 w-full bg-background px-3 py-2 text-sm text-center border rounded-md placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",p?"border-foreground":"border-input",e),ref:d,value:b??"",onChange:w,onKeyDown:C,disabled:l,onFocus:()=>g(true),onBlur:()=>g(false),...c})});kp.displayName="NumberInput";var Sp=classVarianceAuthority.cva("flex -space-x-2",{variants:{size:{sm:"-space-x-2",md:"-space-x-2.5",lg:"-space-x-3"}},defaultVariants:{size:"md"}}),Pp=classVarianceAuthority.cva("border-2 border-background ring-0 cursor-pointer transition-transform duration-200 hover:-translate-y-1",{variants:{size:{sm:"h-8 w-8 text-xs",md:"h-10 w-10 text-sm",lg:"h-12 w-12 text-base"}},defaultVariants:{size:"md"}}),Dp=Y__namespace.forwardRef(({className:e,items:t,max:n=5,size:r,showTooltips:o=false,...a},s)=>{let i=t.slice(0,n),l=t.length-n,c=(u,f)=>{let p=jsxRuntime.jsxs(Cr,{className:m(Pp({size:r})),children:[u.src&&jsxRuntime.jsx(Qr,{src:u.src,alt:u.alt||""}),jsxRuntime.jsx(Tr,{className:"text-xs",children:u.fallback||u.alt?.charAt(0)?.toUpperCase()||"?"})]},f);return o&&u.alt?jsxRuntime.jsxs(_n,{children:[jsxRuntime.jsx(Yn,{children:p}),jsxRuntime.jsx(Xn,{className:"bg-zinc-100 text-zinc-900 dark:bg-zinc-900 dark:text-zinc-100",children:u.alt})]},f):p},d=jsxRuntime.jsxs("div",{ref:s,className:m(Sp({size:r,className:e})),...a,children:[i.map((u,f)=>c(u,f)),l>0&&jsxRuntime.jsx(Cr,{className:m(Pp({size:r})),children:jsxRuntime.jsxs(Tr,{className:"bg-muted text-muted-foreground",children:["+",l]})})]});return o?jsxRuntime.jsx(Wn,{delayDuration:300,children:d}):d});Dp.displayName="AvatarGroup";var Hp=classVarianceAuthority.cva("flex gap-0.5",{variants:{size:{sm:"[&_svg]:h-4 [&_svg]:w-4",md:"[&_svg]:h-5 [&_svg]:w-5",lg:"[&_svg]:h-6 [&_svg]:w-6"}},defaultVariants:{size:"md"}}),Ip=Y__namespace.forwardRef(({className:e,value:t,defaultValue:n=0,onValueChange:r,max:o=5,size:a,icon:s="star",allowHalf:i=false,readOnly:l=false,disabled:c=false,filledColor:d,emptyColor:u,...f},p)=>{let[g,h]=Y__namespace.useState(n),[b,v]=Y__namespace.useState(null),y=t!==void 0,R=y?t:g,w=b!==null?b:R,C=D=>{l||c||(y||h(D),r?.(D));},x=(D,H=false)=>{let L=i&&H?D+.5:D+1;C(L);},M=(D,H)=>{if(l||c)return;let L=D.currentTarget.getBoundingClientRect(),S=i&&D.clientX<L.left+L.width/2;v(S?H+.5:H+1);},T=()=>{v(null);},N=s==="heart"?lucideReact.Heart:lucideReact.Star,E=D=>w>=D+1?"full":w>=D+.5?"half":"empty",P=d?{color:d,fill:d}:{},k=u?{color:u}:{};return jsxRuntime.jsx("div",{ref:p,className:m(Hp({size:a,className:e}),c&&"opacity-50 cursor-not-allowed"),onMouseLeave:T,role:"radiogroup","aria-label":"Rating",...f,children:Array.from({length:o},(D,H)=>{let L=E(H);return jsxRuntime.jsxs("button",{type:"button",className:m("relative focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 rounded-sm",!l&&!c&&"cursor-pointer hover:scale-110 transition-transform"),onClick:S=>{let I=S.currentTarget.getBoundingClientRect(),A=i&&S.clientX<I.left+I.width/2;x(H,A);},onMouseMove:S=>M(S,H),disabled:c||l,"aria-label":`Rate ${H+1} out of ${o}`,role:"radio","aria-checked":R===H+1,children:[jsxRuntime.jsx(N,{className:m("text-muted-foreground/30",L!=="empty"&&"absolute inset-0"),style:L==="empty"?k:void 0}),L!=="empty"&&jsxRuntime.jsx(N,{className:m("text-yellow-500 fill-yellow-500",s==="heart"&&"text-red-500 fill-red-500",L==="half"&&"clip-path-half"),style:{...P,clipPath:L==="half"?"inset(0 50% 0 0)":void 0}})]},H)})})});Ip.displayName="Rating";var Ap=classVarianceAuthority.cva("inline-flex items-center justify-center gap-1.5 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 cursor-default",{variants:{variant:{solid:"border-transparent text-primary-foreground",bordered:"border bg-transparent",ghost:"border-transparent bg-transparent",soft:"border-transparent",surface:"border-transparent bg-muted text-muted-foreground"},color:{primary:"",secondary:"",success:"",warning:"",danger:""},size:{sm:"h-6 px-2 text-xs",md:"h-7 px-2.5 text-sm",lg:"h-8 px-3 text-sm"},radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-full"},clickable:{true:"cursor-pointer",false:""}},compoundVariants:[{variant:"solid",color:"primary",className:"bg-primary hover:bg-primary/90"},{variant:"solid",color:"secondary",className:"bg-secondary text-secondary-foreground hover:bg-secondary/80"},{variant:"solid",color:"success",className:"bg-green-600 text-white hover:bg-green-700 dark:bg-green-700 dark:hover:bg-green-600"},{variant:"solid",color:"warning",className:"bg-amber-600 text-white hover:bg-amber-700 dark:bg-amber-700 dark:hover:bg-amber-600"},{variant:"solid",color:"danger",className:"bg-red-600 text-white hover:bg-red-700 dark:bg-red-700 dark:hover:bg-red-600"},{variant:"bordered",color:"primary",className:"text-primary !border-primary hover:bg-primary/10"},{variant:"bordered",color:"secondary",className:"text-secondary-foreground !border-secondary hover:bg-secondary/10"},{variant:"bordered",color:"success",className:"text-green-600 !border-green-600 hover:bg-green-600/10 dark:text-green-500 dark:!border-green-500"},{variant:"bordered",color:"warning",className:"text-amber-600 !border-amber-600 hover:bg-amber-600/10 dark:text-amber-500 dark:!border-amber-500"},{variant:"bordered",color:"danger",className:"text-red-600 !border-red-600 hover:bg-red-600/10 dark:text-red-500 dark:!border-red-500"},{variant:"ghost",color:"primary",className:"text-primary hover:bg-primary/10"},{variant:"ghost",color:"secondary",className:"text-secondary-foreground hover:bg-secondary"},{variant:"ghost",color:"success",className:"text-green-600 hover:bg-green-600/10 dark:text-green-500 dark:hover:bg-green-500/10"},{variant:"ghost",color:"warning",className:"text-amber-600 hover:bg-amber-600/10 dark:text-amber-500 dark:hover:bg-amber-500/10"},{variant:"ghost",color:"danger",className:"text-red-600 hover:bg-red-600/10 dark:text-red-500 dark:hover:bg-red-500/10"},{variant:"soft",color:"primary",className:"bg-primary/15 text-primary hover:bg-primary/20"},{variant:"soft",color:"secondary",className:"bg-secondary text-secondary-foreground hover:bg-secondary/80"},{variant:"soft",color:"success",className:"bg-green-600/15 text-green-600 hover:bg-green-600/20 dark:bg-green-500/15 dark:text-green-500 dark:hover:bg-green-500/20"},{variant:"soft",color:"warning",className:"bg-amber-600/15 text-amber-600 hover:bg-amber-600/20 dark:bg-amber-500/15 dark:text-amber-500 dark:hover:bg-amber-500/20"},{variant:"soft",color:"danger",className:"bg-red-600/15 text-red-600 hover:bg-red-600/20 dark:bg-red-500/15 dark:text-red-500 dark:hover:bg-red-500/20"}],defaultVariants:{variant:"solid",color:"primary",size:"md",radius:"full",clickable:false}}),aw={sm:"sm",md:"sm",lg:"sm"},zp=Y__namespace.forwardRef(({className:e,variant:t,color:n,size:r,radius:o,clickable:a,startContent:s,endContent:i,closable:l,onClose:c,disabled:d,children:u,onClick:f,...p},g)=>{let h=a||!!f,b=v=>{v.stopPropagation(),c?.();};return jsxRuntime.jsxs("div",{ref:g,role:h?"button":void 0,tabIndex:h&&!d?0:void 0,"aria-disabled":d,onClick:d?void 0:f,onKeyDown:h&&!d?v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),f?.(v));}:void 0,className:m(Ap({variant:t,color:n,size:r,radius:o,clickable:h}),d&&"opacity-50 cursor-not-allowed",e),...p,children:[s&&jsxRuntime.jsx("span",{className:"shrink-0",children:s}),jsxRuntime.jsx("span",{className:"truncate",children:u}),i&&jsxRuntime.jsx("span",{className:"shrink-0",children:i}),l&&jsxRuntime.jsx(Nt,{size:aw[r??"md"],onClick:b,disabled:d,className:"ml-0.5 h-4 w-4"})]})});zp.displayName="Chip";var Op=Y.createContext({direction:"horizontal"}),pw=({className:e,direction:t="horizontal",children:n,...r})=>jsxRuntime.jsx(Op.Provider,{value:{direction:t},children:jsxRuntime.jsx(reactResizablePanels.Group,{orientation:t,className:m("flex h-full w-full data-[orientation=vertical]:flex-col",e),...r,children:n})}),fw=reactResizablePanels.Panel,gw=({withHandle:e,className:t,...n})=>{let{direction:r}=Y.useContext(Op),o=r==="vertical";return jsxRuntime.jsx(reactResizablePanels.Separator,{className:m("relative flex shrink-0 items-center justify-center bg-border outline-none",o?"h-px w-full after:absolute after:inset-x-0 after:top-1/2 after:h-1 after:-translate-y-1/2":"w-px after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2",t),...n,children:e&&jsxRuntime.jsx("div",{className:m("z-10 flex items-center justify-center rounded-sm border bg-border",o?"h-3 w-4 rotate-90":"h-4 w-3"),children:jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-2.5 w-2.5"})})})};var $p=classVarianceAuthority.cva("relative inline-flex items-center justify-center",{variants:{size:{sm:"h-8 w-8",md:"h-12 w-12",lg:"h-16 w-16",xl:"h-24 w-24"},color:{default:"",primary:"",success:"",warning:"",danger:""}},defaultVariants:{size:"md",color:"default"}}),vw={sm:{size:32,strokeWidth:3,fontSize:"text-[10px]"},md:{size:48,strokeWidth:4,fontSize:"text-xs"},lg:{size:64,strokeWidth:5,fontSize:"text-sm"},xl:{size:96,strokeWidth:6,fontSize:"text-base"}},Bp={default:"var(--color-foreground, #18181b)",primary:"var(--color-primary, #18181b)",success:"var(--color-success, #16a34a)",warning:"var(--color-warning, #d97706)",danger:"var(--color-danger, #dc2626)"},Gp=Y__namespace.forwardRef(({className:e,size:t="md",color:n="default",value:r,max:o=100,showValue:a=false,formatValue:s=d=>`${Math.round(d)}%`,trackClassName:i,...l},c)=>{let d=Math.min(100,Math.max(0,r/o*100)),u=vw[t],f=(u.size-u.strokeWidth)/2,p=2*Math.PI*f,g=p-d/100*p;return jsxRuntime.jsxs("div",{ref:c,className:m($p({size:t,color:n}),e),role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":o,...l,children:[jsxRuntime.jsxs("svg",{width:u.size,height:u.size,viewBox:`0 0 ${u.size} ${u.size}`,fill:"none",children:[jsxRuntime.jsx("circle",{className:m("stroke-muted",i),cx:u.size/2,cy:u.size/2,r:f,strokeWidth:u.strokeWidth,fill:"none"}),jsxRuntime.jsx("circle",{cx:u.size/2,cy:u.size/2,r:f,strokeWidth:u.strokeWidth,fill:"none",strokeLinecap:"round",stroke:Bp[n]||Bp.default,strokeDasharray:`${p} ${p}`,strokeDashoffset:g,style:{transformOrigin:"center",transform:"rotate(-90deg)",transition:"stroke-dashoffset 0.3s ease-in-out"}})]}),a&&jsxRuntime.jsx("span",{className:m("absolute font-medium text-foreground",u.fontSize),children:s(d)})]})});Gp.displayName="CircularProgress";var Up=Y__namespace.createContext(null),yw=()=>{let e=Y__namespace.useContext(Up);if(!e)throw new Error("OTP components must be used within InputOTP");return e},jp=classVarianceAuthority.cva("flex items-center gap-2 has-[:disabled]:opacity-50",{variants:{size:{sm:"[&_[data-otp-slot]]:h-8 [&_[data-otp-slot]]:w-8 [&_[data-otp-slot]]:text-xs",md:"[&_[data-otp-slot]]:h-10 [&_[data-otp-slot]]:w-10 [&_[data-otp-slot]]:text-sm",lg:"[&_[data-otp-slot]]:h-12 [&_[data-otp-slot]]:w-12 [&_[data-otp-slot]]:text-base"}},defaultVariants:{size:"md"}}),Wp=Y__namespace.forwardRef(({className:e,containerClassName:t,maxLength:n,value:r,defaultValue:o="",onChange:a,onComplete:s,pattern:i,disabled:l=false,size:c,children:d,...u},f)=>{let[p,g]=Y__namespace.useState(o),[h,b]=Y__namespace.useState(0),[v,y]=Y__namespace.useState(false),R=Y__namespace.useRef(null),w=r!==void 0?r:p;Y__namespace.useImperativeHandle(f,()=>R.current),Y__namespace.useEffect(()=>{b(Math.min(w.length,n-1));},[w,n]),Y__namespace.useEffect(()=>{w.length===n&&s&&s(w);},[w,n,s]);let C=P=>{let k=P.target.value;if(i&&k){let D=new RegExp(i.replace("^","").replace("$","").replace("+",""));k=k.split("").filter(H=>D.test(H)).join("");}k=k.slice(0,n),r===void 0&&g(k),a?.(k);},x=P=>{P.key==="ArrowLeft"?b(k=>Math.max(0,k-1)):P.key==="ArrowRight"&&b(k=>Math.min(w.length,n-1,k+1));},M=()=>{R.current?.focus();},T=()=>{y(true),b(Math.min(w.length,n-1));},N=()=>{y(false);},E={value:w,activeIndex:v?h:-1,maxLength:n,disabled:l};return jsxRuntime.jsx(Up.Provider,{value:E,children:jsxRuntime.jsxs("div",{className:m(jp({size:c}),t),onClick:M,"data-otp-container":true,children:[jsxRuntime.jsx("input",{ref:R,type:"text",inputMode:"numeric",autoComplete:"one-time-code",value:w,onChange:C,onKeyDown:x,onFocus:T,onBlur:N,disabled:l,maxLength:n,className:m("absolute opacity-0 pointer-events-none w-0 h-0",e),...u}),d]})})});Wp.displayName="InputOTP";var _p=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,className:m("flex items-center",e),...t}));_p.displayName="InputOTPGroup";var Yp=Y__namespace.forwardRef(({index:e,className:t,...n},r)=>{let{value:o,activeIndex:a,disabled:s}=yw(),i=o[e]||"",l=a===e,c=l&&o.length===e;return jsxRuntime.jsxs("div",{ref:r,"data-otp-slot":true,"data-active":l,"data-filled":!!i,className:m("relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm font-medium transition-all first:rounded-l-md first:border-l last:rounded-r-md",l&&"z-10 border-foreground",s&&"cursor-not-allowed opacity-50",t),...n,children:[i,c&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:jsxRuntime.jsx("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})});Yp.displayName="InputOTPSlot";var Xp=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,role:"separator",className:m("text-muted-foreground",e),...t,children:jsxRuntime.jsx(lucideReact.Minus,{className:"h-4 w-4"})}));Xp.displayName="InputOTPSeparator";var Qp=classVarianceAuthority.cva("inline-flex items-center gap-1 rounded-full text-xs font-medium transition-colors",{variants:{variant:{solid:"bg-zinc-800 text-white dark:bg-zinc-200 dark:text-zinc-900",bordered:"border border-zinc-300 bg-transparent dark:border-zinc-700",light:"bg-transparent text-zinc-800 hover:bg-zinc-100 dark:text-white dark:hover:bg-zinc-800",flat:"bg-zinc-100 text-zinc-800 dark:bg-zinc-800 dark:text-white",ghost:"border border-zinc-300 dark:border-zinc-700 bg-transparent hover:bg-zinc-900 hover:text-white hover:border-zinc-900 dark:hover:bg-white dark:hover:text-zinc-900 dark:hover:border-white"},size:{sm:"h-5 px-2 text-xs",md:"h-6 px-2.5 text-xs",lg:"h-7 px-3 text-sm"}},defaultVariants:{variant:"flat",size:"md"}}),Jp=Y__namespace.forwardRef(({className:e,variant:t,size:n,value:r=[],onChange:o,placeholder:a="Add tag...",maxTags:s,minTagLength:i=1,maxTagLength:l=50,triggerKeys:c=["Enter",",","Tab"],allowDuplicates:d=false,disabled:u,readOnly:f,renderTag:p,...g},h)=>{let[b,v]=Y__namespace.useState(""),y=Y__namespace.useRef(null);Y__namespace.useImperativeHandle(h,()=>y.current);let R=E=>{let P=E.trim();if(P.length<i||P.length>l||s&&r.length>=s||!d&&r.some(D=>D.text.toLowerCase()===P.toLowerCase()))return;let k={id:crypto.randomUUID(),text:P};o?.([...r,k]),v("");},w=E=>{u||f||o?.(r.filter(P=>P.id!==E));},C=E=>{if(c.includes(E.key)){if(E.key==="Tab"&&!b)return;E.preventDefault(),R(b);}E.key==="Backspace"&&!b&&r.length>0&&w(r[r.length-1].id);},x=E=>{let P=E.target.value;if(P.includes(",")){P.split(",").forEach(D=>{D.trim()&&R(D);});return}v(P);},M=E=>{E.preventDefault(),E.clipboardData.getData("text").split(/[,\n\t]/).filter(Boolean).forEach(D=>{R(D);});},T=()=>{y.current?.focus();},N=s?r.length>=s:false;return jsxRuntime.jsxs("div",{className:m("flex min-h-10 w-full flex-wrap gap-1.5 rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2",u&&"cursor-not-allowed opacity-50",e),onClick:T,children:[r.map(E=>p?p(E,()=>w(E.id)):jsxRuntime.jsxs("span",{className:m(Qp({variant:t,size:n})),children:[E.text,!u&&!f&&jsxRuntime.jsx("button",{type:"button",onClick:P=>{P.stopPropagation(),w(E.id);},className:"ml-0.5 rounded-full p-0.5 hover:bg-black/10 dark:hover:bg-white/10","aria-label":`Remove ${E.text}`,children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3"})})]},E.id)),!N&&!f&&jsxRuntime.jsx("input",{ref:y,type:"text",value:b,onChange:x,onKeyDown:C,onPaste:M,placeholder:r.length===0?a:"",disabled:u,className:m("flex-1 bg-transparent outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed","min-w-[80px]"),...g})]})});Jp.displayName="TagInput";var tf=classVarianceAuthority.cva("flex flex-col items-center justify-center text-center",{variants:{size:{sm:"gap-2 py-6",md:"gap-3 py-10",lg:"gap-4 py-16"}},defaultVariants:{size:"md"}}),nf=Y__namespace.forwardRef(({className:e,size:t,icon:n,title:r,description:o,action:a,children:s,...i},l)=>jsxRuntime.jsxs("div",{ref:l,className:m(tf({size:t,className:e})),...i,children:[n&&jsxRuntime.jsx("div",{className:"text-muted-foreground [&>svg]:h-10 [&>svg]:w-10",children:n}),r&&jsxRuntime.jsx("h3",{className:"text-lg font-semibold text-foreground",children:r}),o&&jsxRuntime.jsx("p",{className:"max-w-sm text-sm text-muted-foreground",children:o}),a&&jsxRuntime.jsx("div",{className:"mt-2",children:a}),s]}));nf.displayName="EmptyState";var of=classVarianceAuthority.cva("border p-6 text-card-foreground shadow-sm",{variants:{variant:{solid:"bg-zinc-800 text-white border-zinc-800 dark:bg-zinc-200 dark:text-zinc-900 dark:border-zinc-200",bordered:"border border-zinc-300 bg-transparent dark:border-zinc-700",light:"bg-transparent border-transparent shadow-none",flat:"bg-zinc-100 border-transparent dark:bg-zinc-800",ghost:"border border-zinc-300 dark:border-zinc-700 bg-transparent hover:bg-zinc-900 hover:text-white hover:border-zinc-900 dark:hover:bg-white dark:hover:text-zinc-900 dark:hover:border-white"},radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-3xl"}},defaultVariants:{variant:"bordered",radius:"md"}}),af=Y__namespace.forwardRef(({className:e,variant:t,radius:n,label:r,value:o,icon:a,trend:s,trendValue:i,description:l,...c},d)=>{let u=s==="up"?lucideReact.TrendingUp:s==="down"?lucideReact.TrendingDown:lucideReact.Minus,f=s==="up"?"text-green-500":s==="down"?"text-red-500":"text-muted-foreground";return jsxRuntime.jsxs("div",{ref:d,className:m(of({variant:t,radius:n,className:e})),...c,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsx("p",{className:m("text-sm font-medium",t==="solid"?"opacity-80":"text-muted-foreground"),children:r}),a&&jsxRuntime.jsx("div",{className:m("[&>svg]:h-4 [&>svg]:w-4",t==="solid"?"opacity-80":"text-muted-foreground"),children:a})]}),jsxRuntime.jsxs("div",{className:"mt-2 flex items-baseline gap-2",children:[jsxRuntime.jsx("p",{className:"text-2xl font-bold",children:o}),s&&i&&jsxRuntime.jsxs("span",{className:m("flex items-center gap-0.5 text-sm",f),children:[jsxRuntime.jsx(u,{className:"h-3 w-3"}),i]})]}),l&&jsxRuntime.jsx("p",{className:m("mt-1 text-xs",t==="solid"?"opacity-70":"text-muted-foreground"),children:l})]})});af.displayName="StatCard";var qi=classVarianceAuthority.cva("flex flex-col",{variants:{variant:{default:"gap-2",bordered:"divide-y divide-border rounded-lg border",striped:"gap-2 [&>*:nth-child(odd)]:bg-muted/50",filled:"gap-2 bg-muted/30 rounded-lg p-2"},size:{sm:"[&>*]:py-2 [&>*]:px-3",md:"[&>*]:py-3 [&>*]:px-4",lg:"[&>*]:py-4 [&>*]:px-5"}},defaultVariants:{variant:"default",size:"md"}}),Sw=({checked:e,disabled:t,onClick:n})=>jsxRuntime.jsx("button",{type:"button",role:"checkbox","aria-checked":e,disabled:t,onClick:r=>{r.stopPropagation(),t||n(r);},className:m("h-4 w-4 shrink-0 rounded-sm border border-primary transition-colors","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",e&&"bg-primary text-primary-foreground",t&&"cursor-not-allowed opacity-50"),children:e&&jsxRuntime.jsx("span",{className:"flex items-center justify-center text-current",children:jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})})});function Dw({className:e,variant:t,size:n,items:r,renderItem:o,draggable:a=false,onReorder:s,showHandle:i=true,dragIcon:l,selectable:c=false,multiple:d=false,selectedKeys:u,defaultSelectedKeys:f=[],onSelect:p,checkable:g=false,checkedKeys:h,defaultCheckedKeys:b=[],onCheck:v,children:y,...R},w){let[C,x]=Y__namespace.useState(null),[M,T]=Y__namespace.useState(null),[N,E]=Y__namespace.useState(new Set(f)),P=u!==void 0,k=P?new Set(u):N,[D,H]=Y__namespace.useState(new Set(b)),L=h!==void 0,S=L?new Set(h):D,I=(B,U)=>{x(U),B.dataTransfer.effectAllowed="move",B.dataTransfer.setData("text/plain",String(U));},A=(B,U)=>{B.preventDefault(),!(C===null||C===U)&&T(U);},O=()=>{T(null);},V=(B,U)=>{if(B.preventDefault(),!r||C===null||C===U){x(null),T(null);return}let j=[...r],[F]=j.splice(C,1);j.splice(U,0,F),s?.(j),x(null),T(null);},z=()=>{x(null),T(null);},K=Y__namespace.useCallback((B,U)=>{if(!r)return;let j=new Set(k),F=!j.has(B.id);d?F?j.add(B.id):j.delete(B.id):(j.clear(),F&&j.add(B.id)),P||E(j);let Z=r.filter(ue=>j.has(ue.id));p?.(Array.from(j),{selected:F,selectedItems:Z,item:B,event:U});},[r,k,d,P,p]),_=Y__namespace.useCallback((B,U)=>{if(!r)return;let j=new Set(S),F=!j.has(B.id);F?j.add(B.id):j.delete(B.id),L||H(j);let Z=r.filter(ue=>j.has(ue.id));v?.(Array.from(j),{checked:F,checkedItems:Z,item:B,event:U});},[r,S,L,v]);return (a||c||g)&&r&&o?jsxRuntime.jsx("div",{ref:w,role:"list",className:m(qi({variant:t,size:n,className:e})),...R,children:r.map((B,U)=>{let j=k.has(B.id),F=S.has(B.id);return jsxRuntime.jsxs("div",{role:"listitem","aria-selected":c?j:void 0,draggable:a,onDragStart:a?G=>I(G,U):void 0,onDragOver:a?G=>A(G,U):void 0,onDragLeave:a?O:void 0,onDrop:a?G=>V(G,U):void 0,onDragEnd:a?z:void 0,onClick:c&&!g?G=>K(B,G):void 0,className:m("flex items-center gap-3 transition-all",a&&"cursor-move",c&&!g&&"cursor-pointer hover:bg-muted/50",g&&"cursor-pointer hover:bg-muted/50",C===U&&"opacity-50 scale-[1.02] z-10",M===U&&"border-primary border-dashed border rounded-md",j&&c&&!g&&"bg-primary/10"),children:[a&&i&&l!==false&&jsxRuntime.jsx("div",{className:"flex-shrink-0 text-muted-foreground cursor-grab active:cursor-grabbing",children:l??jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-5 w-5"})}),g&&jsxRuntime.jsx(Sw,{checked:F,onClick:G=>_(B,G)}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:o(B,U)})]},B.id)})}):jsxRuntime.jsx("div",{ref:w,role:"list",className:m(qi({variant:t,size:n,className:e})),...R,children:y})}var Hw=Y__namespace.forwardRef(Dw),lf=classVarianceAuthority.cva("flex items-center gap-3 transition-colors",{variants:{interactive:{true:"cursor-pointer hover:bg-muted/50",false:""}},defaultVariants:{interactive:false}}),cf=Y__namespace.forwardRef(({className:e,interactive:t,leading:n,trailing:r,children:o,...a},s)=>jsxRuntime.jsxs("div",{ref:s,role:"listitem",className:m(lf({interactive:t,className:e})),...a,children:[n&&jsxRuntime.jsx("div",{className:"flex-shrink-0 text-muted-foreground",children:n}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:o}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0 whitespace-nowrap",children:r})]}));cf.displayName="ListItem";var df=Y__namespace.forwardRef(({className:e,primary:t,secondary:n,children:r,...o},a)=>jsxRuntime.jsxs("div",{ref:a,className:m("min-w-0",e),...o,children:[t&&jsxRuntime.jsx("p",{className:"text-sm font-medium leading-none truncate",children:t}),n&&jsxRuntime.jsx("p",{className:"mt-1 text-sm text-muted-foreground truncate",children:n}),r]}));df.displayName="ListItemText";var pf=classVarianceAuthority.cva("flex flex-col",{variants:{position:{left:"",right:"",alternate:""}},defaultVariants:{position:"left"}}),ff=Y__namespace.forwardRef(({className:e,position:t,...n},r)=>jsxRuntime.jsx("div",{ref:r,"data-position":t,className:m(pf({position:t,className:e})),...n}));ff.displayName="Timeline";var gf=classVarianceAuthority.cva("relative flex gap-4 pb-8 last:pb-0",{variants:{variant:{default:"",success:"[&_[data-timeline-dot]]:bg-green-500 [&_[data-timeline-dot]]:border-green-500",warning:"[&_[data-timeline-dot]]:bg-yellow-500 [&_[data-timeline-dot]]:border-yellow-500",error:"[&_[data-timeline-dot]]:bg-red-500 [&_[data-timeline-dot]]:border-red-500",info:"[&_[data-timeline-dot]]:bg-blue-500 [&_[data-timeline-dot]]:border-blue-500"}},defaultVariants:{variant:"default"}}),bf=Y__namespace.forwardRef(({className:e,variant:t,hideSeparator:n=false,hideConnector:r=false,dot:o,children:a,...s},i)=>jsxRuntime.jsxs("div",{ref:i,className:m(gf({variant:t,className:e})),...s,children:[!n&&jsxRuntime.jsxs("div",{className:"flex flex-col items-center",children:[jsxRuntime.jsx("div",{"data-timeline-dot":true,className:"flex h-3 w-3 items-center justify-center rounded-full border-2 border-primary bg-primary",children:o}),!r&&jsxRuntime.jsx("div",{className:"w-0.5 flex-1 bg-border"})]}),a]}));bf.displayName="TimelineItem";var vf=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,className:m("flex-1 pt-0.5",e),...t}));vf.displayName="TimelineContent";var hf=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,className:m("flex-1 text-sm text-muted-foreground pt-0.5",e),...t}));hf.displayName="TimelineOpposite";var yf=classVarianceAuthority.cva("inline-flex items-center rounded-lg bg-muted p-1 text-muted-foreground",{variants:{size:{sm:"h-8",md:"h-10",lg:"h-12"},fullWidth:{true:"w-full",false:""}},defaultVariants:{size:"md",fullWidth:false}}),Rf=classVarianceAuthority.cva("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{size:{sm:"h-6 text-xs px-2.5",md:"h-8 text-sm px-3",lg:"h-10 text-base px-4"},selected:{true:"bg-background text-foreground shadow-sm",false:""}},defaultVariants:{size:"md",selected:false}}),wf=Y__namespace.createContext({}),Cf=Y__namespace.forwardRef(({className:e,size:t="md",fullWidth:n,children:r,value:o,defaultValue:a,onValueChange:s,disabled:i,...l},c)=>{let[d,u]=Y__namespace.useState(a),f=o!==void 0?o:d,p=Y__namespace.useCallback(g=>{o===void 0&&u(g),s?.(g);},[o,s]);return jsxRuntime.jsx(wf.Provider,{value:{size:t??"md",value:f,onValueChange:p,disabled:i},children:jsxRuntime.jsx("div",{ref:c,role:"group",className:m(yf({size:t,fullWidth:n,className:e})),...l,children:r})})});Cf.displayName="SegmentedControl";var Tf=Y__namespace.forwardRef(({className:e,children:t,value:n,disabled:r,...o},a)=>{let s=Y__namespace.useContext(wf),i=s.value===n,l=r||s.disabled;return jsxRuntime.jsx("button",{ref:a,type:"button",role:"radio","aria-checked":i,"data-state":i?"on":"off",disabled:l,onClick:()=>{l||s.onValueChange?.(n);},className:m(Rf({size:s.size,selected:i}),"flex-1",e),...o,children:t})});Tf.displayName="SegmentedControlItem";var Mf=classVarianceAuthority.cva("relative flex flex-col items-center justify-center rounded-lg border-2 border-dashed transition-colors",{variants:{variant:{default:"border-input bg-background hover:bg-accent/50",active:"border-primary bg-primary/5",error:"border-danger bg-danger/5"},size:{sm:"p-4 min-h-[120px]",md:"p-6 min-h-[160px]",lg:"p-8 min-h-[200px]"}},defaultVariants:{variant:"default",size:"md"}}),Nf=e=>{let t=e.type;return t.startsWith("image/")?lucideReact.Image:t.startsWith("video/")?lucideReact.FileVideo:t.startsWith("audio/")?lucideReact.FileAudio:t.includes("pdf")||t.includes("document")?lucideReact.FileText:t.includes("zip")||t.includes("rar")||t.includes("archive")?lucideReact.FileArchive:lucideReact.File},is=e=>{if(e===0)return "0 Bytes";let t=1024,n=["Bytes","KB","MB","GB"],r=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/Math.pow(t,r)).toFixed(2))+" "+n[r]},kf=(e,t,n)=>{let r=[];return t&&e.size>t&&r.push({code:"file-too-large",message:`File is larger than ${is(t)}`}),n&&n.length>0&&(n.some(a=>{if(a.startsWith("."))return e.name.toLowerCase().endsWith(a.toLowerCase());if(a.endsWith("/*")){let s=a.slice(0,-2);return e.type.startsWith(s)}return e.type===a})||r.push({code:"file-invalid-type",message:`File type not accepted. Accepted: ${n.join(", ")}`})),r},Pf=Y__namespace.forwardRef(({className:e,variant:t,size:n,onFilesChange:r,onFilesRejected:o,onFileRemove:a,files:s=[],showFileList:i=true,children:l,maxSize:c=10*1024*1024,accept:d,multiple:u=true,disabled:f,...p},g)=>{let[h,b]=Y__namespace.useState(false),[v,y]=Y__namespace.useState(false),[R,w]=Y__namespace.useState([]),C=Y__namespace.useRef(null),x=Y__namespace.useCallback(S=>{if(!S||S.length===0)return;let I=Array.from(S),A=[],O=[];(u?I:[I[0]]).forEach(z=>{let K=kf(z,c,d);K.length>0?O.push({file:z,errors:K}):A.push(z);}),w(O),A.length>0&&r?.(A),O.length>0&&o?.(O);},[c,d,u,r,o]),M=Y__namespace.useCallback(S=>{if(S.preventDefault(),S.stopPropagation(),!f&&(b(true),S.dataTransfer.items)){let A=Array.from(S.dataTransfer.items).some(O=>{if(O.kind!=="file")return true;if(d&&d.length>0){let V=O.type;return !d.some(z=>z.endsWith("/*")?V.startsWith(z.slice(0,-2)):V===z)}return false});y(A);}},[f,d]),T=Y__namespace.useCallback(S=>{S.preventDefault(),S.stopPropagation(),!f&&(S.dataTransfer.dropEffect="copy");},[f]),N=Y__namespace.useCallback(S=>{S.preventDefault(),S.stopPropagation();let I=S.currentTarget.getBoundingClientRect(),A=S.clientX,O=S.clientY;(A<I.left||A>I.right||O<I.top||O>I.bottom)&&(b(false),y(false));},[]),E=Y__namespace.useCallback(S=>{S.preventDefault(),S.stopPropagation(),b(false),y(false),!f&&x(S.dataTransfer.files);},[f,x]),P=Y__namespace.useCallback(()=>{f||C.current?.click();},[f]),k=Y__namespace.useCallback(S=>{x(S.target.files),S.target.value="";},[x]),D=Y__namespace.useCallback(S=>{f||(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),C.current?.click());},[f]),H=v?"error":h?"active":t,L=d?.join(",");return jsxRuntime.jsxs("div",{ref:g,className:m("space-y-4",e),...p,children:[jsxRuntime.jsxs("div",{role:"button",tabIndex:f?-1:0,onDragEnter:M,onDragOver:T,onDragLeave:N,onDrop:E,onClick:P,onKeyDown:D,className:m(Mf({variant:H,size:n}),f&&"opacity-50 cursor-not-allowed",!f&&"cursor-pointer focus:outline-none"),"aria-disabled":f,children:[jsxRuntime.jsx("input",{ref:C,type:"file",accept:L,multiple:u,disabled:f,onChange:k,className:"sr-only",tabIndex:-1}),l||jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[jsxRuntime.jsx("div",{className:"rounded-full bg-muted p-3",children:jsxRuntime.jsx(lucideReact.Upload,{className:"h-6 w-6 text-muted-foreground"})}),jsxRuntime.jsxs("div",{className:"space-y-1",children:[jsxRuntime.jsx("p",{className:"text-sm font-medium",children:h?"Drop files here":"Drop files or click to upload"}),jsxRuntime.jsxs("p",{className:"text-xs text-muted-foreground",children:[c&&`Max ${is(c)}`,d&&d.length>0&&` \u2022 ${d.join(", ")}`]})]})]})]}),R.length>0&&jsxRuntime.jsx("div",{className:"rounded-md bg-danger/10 p-3 text-sm text-danger",children:R.map(({file:S,errors:I})=>jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("span",{className:"font-medium",children:S.name}),":"," ",I.map(A=>A.message).join(", ")]},S.name))}),i&&s.length>0&&jsxRuntime.jsx("div",{className:"space-y-2",children:s.map(S=>{let I=Nf(S.file);return jsxRuntime.jsxs("div",{className:m("flex items-center gap-3 rounded-lg border p-3",S.error&&"border-danger bg-danger/5"),children:[jsxRuntime.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-muted",children:jsxRuntime.jsx(I,{className:"h-5 w-5 text-muted-foreground"})}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("p",{className:"truncate text-sm font-medium",children:S.file.name}),jsxRuntime.jsxs("p",{className:"text-xs text-muted-foreground",children:[is(S.file.size),S.error&&jsxRuntime.jsx("span",{className:"ml-2 text-danger",children:S.error})]}),S.progress!==void 0&&S.progress<100&&jsxRuntime.jsx(_a,{value:S.progress,className:"mt-2 h-1"})]}),jsxRuntime.jsxs(ae,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0 text-muted-foreground hover:text-foreground",onClick:A=>{A.stopPropagation(),a?.(S.file);},children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Remove"})]})]},S.id)})})]})});Pf.displayName="FileUpload";var Gw=`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cg fill='%23ccc'%3E%3Crect width='4' height='4'/%3E%3Crect x='4' y='4' width='4' height='4'/%3E%3C/g%3E%3C/svg%3E")`,Lf=classVarianceAuthority.cva("relative rounded-md border border-input shadow-sm transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{xs:"h-4 w-4",sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10",xl:"h-12 w-12"},shape:{square:"rounded-md",circle:"rounded-full"},interactive:{true:"cursor-pointer hover:scale-110 active:scale-105",false:"cursor-default"}},defaultVariants:{size:"md",shape:"square",interactive:false}}),Xo=Y__namespace.forwardRef(({color:e,isSelected:t,showTransparency:n=true,onSelect:r,size:o,shape:a,interactive:s,className:i,onClick:l,disabled:c,selectedRingColor:d,...u},f)=>jsxRuntime.jsx("button",{ref:f,type:"button",disabled:c,onClick:h=>{l?.(h),r?.(e);},className:m(Lf({size:o,shape:a,interactive:s??(!!r||!!l)}),t&&"ring-2 ring-offset-2",i),style:{backgroundImage:n?Gw:void 0,backgroundSize:n?"8px 8px":void 0,...t&&{"--tw-ring-color":d||"var(--color-foreground)"}},"aria-label":`Color ${e}`,"aria-pressed":t,...u,children:jsxRuntime.jsx("span",{className:"absolute inset-0 rounded-[inherit]",style:{backgroundColor:e}})}));Xo.displayName="ColorSwatch";var Sf=classVarianceAuthority.cva("",{variants:{layout:{grid:"grid gap-2",stack:"flex flex-wrap gap-2"}},defaultVariants:{layout:"stack"}}),Df=Y__namespace.forwardRef(({value:e,defaultValue:t,onChange:n,layout:r,columns:o=6,colors:a,swatchSize:s="md",swatchShape:i="square",disabled:l,selectedRingColor:c,className:d,style:u,...f},p)=>{let[g,h]=Y__namespace.useState(t),b=e??g,v=Y__namespace.useCallback(R=>{l||(e===void 0&&h(R),n?.(R));},[e,n,l]),y=R=>R.toLowerCase();return jsxRuntime.jsx("div",{ref:p,role:"listbox","aria-label":"Color options",className:m(Sf({layout:r}),d),style:{...r==="grid"?{gridTemplateColumns:`repeat(${o}, 1fr)`}:{},...u},...f,children:a.map(R=>{let w=b?y(b)===y(R):false;return jsxRuntime.jsx(Xo,{role:"option",color:R,size:s,shape:i,isSelected:w,onSelect:v,disabled:l,selectedRingColor:c,"aria-selected":w},R)})})});Df.displayName="ColorSwatchPicker";var Ww=["#000000","#ffffff","#ef4444","#f97316","#eab308","#22c55e","#06b6d4","#3b82f6","#8b5cf6","#ec4899"],Hf={sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10"},If=Y__namespace.forwardRef(({value:e,defaultValue:t="#3b82f6",onChange:n,disabled:r,presets:o=Ww,showInput:a=true,size:s="md",className:i,variant:l="full"},c)=>{let[d,u]=Y__namespace.useState(e??t),f=Y__namespace.useId();Y__namespace.useEffect(()=>{e!==void 0&&u(e);},[e]);let p=b=>{u(b),n?.(b);},g=b=>{u(b),n?.(b);},h=b=>{let v=b.target.value.toUpperCase();u(v),n?.(v);};return l==="simple"?jsxRuntime.jsxs("label",{className:m("relative rounded-md border border-input shadow-sm transition-colors cursor-pointer hover:border-foreground focus-within:border-foreground overflow-hidden",r&&"opacity-50 cursor-not-allowed",Hf[s],i),children:[jsxRuntime.jsx("input",{type:"color",value:d,onChange:h,disabled:r,className:"absolute inset-0 h-full w-full cursor-pointer opacity-0 disabled:cursor-not-allowed",id:f}),jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundColor:d}})]}):jsxRuntime.jsxs(ot,{children:[jsxRuntime.jsx(qn,{ref:c,disabled:r,className:m("rounded-md border border-input shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",Hf[s],i),style:{backgroundColor:d},"aria-label":`Color picker, current color: ${d}`}),jsxRuntime.jsx(at,{className:"w-auto p-3",align:"start",children:jsxRuntime.jsxs("div",{className:"space-y-3",children:[jsxRuntime.jsx(reactColorful.HexColorPicker,{color:d,onChange:p,className:"!w-[200px]"}),a&&jsxRuntime.jsxs("div",{className:"space-y-1.5",children:[jsxRuntime.jsx(wr,{htmlFor:"color-input",className:"text-xs",children:"Hex Color"}),jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsx("div",{className:"h-9 w-9 shrink-0 rounded-md border",style:{backgroundColor:d}}),jsxRuntime.jsx(reactColorful.HexColorInput,{id:"color-input",color:d,onChange:p,prefixed:true,className:"flex h-9 w-full rounded-md border border-input bg-background text-foreground px-3 py-2 font-mono text-sm uppercase focus:outline-none focus:border-foreground disabled:cursor-not-allowed disabled:opacity-50"})]})]}),o.length>0&&jsxRuntime.jsxs("div",{className:"space-y-1.5",children:[jsxRuntime.jsx(wr,{className:"text-xs",children:"Presets"}),jsxRuntime.jsx("div",{className:"flex flex-wrap gap-1.5",children:o.map(b=>jsxRuntime.jsx(Xo,{color:b,size:"sm",isSelected:d.toLowerCase()===b.toLowerCase(),onSelect:g},b))})]})]})})]})});If.displayName="ColorPicker";var Vf=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),Ji=e=>String(e).padStart(2,"0"),Zw=e=>{let[t,n]=e.split(":").map(Number);return {hours:t||0,minutes:n||0}},Qw=(e,t)=>`${Ji(e)}:${Ji(t)}`,Af=Y__namespace.forwardRef(({className:e,size:t,value:n,onChange:r,use24Hour:o=true,minuteStep:a=1,showPicker:s=true,minTime:i,maxTime:l,disabled:c,...d},u)=>{let[f,p]=Y__namespace.useState(n??""),[g,h]=Y__namespace.useState(false);Y__namespace.useEffect(()=>{n!==void 0&&p(n);},[n]);let{hours:b,minutes:v}=Zw(f||"00:00"),y=N=>{let E=N.target.value;p(E),/^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/.test(E)&&r?.(E);},R=(N,E)=>{let P=Math.max(0,Math.min(23,N)),k=Math.max(0,Math.min(59,E)),D=Qw(P,k);p(D),r?.(D);},w=()=>R(b+1,v),C=()=>R(b-1,v),x=()=>R(b,v+a),M=()=>R(b,v-a),T=({value:N,onIncrement:E,onDecrement:P})=>jsxRuntime.jsxs("div",{className:"flex flex-col items-center",children:[jsxRuntime.jsx(ae,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:E,disabled:c,children:jsxRuntime.jsx(lucideReact.ChevronUp,{className:"h-4 w-4"})}),jsxRuntime.jsx("div",{className:"flex h-10 w-12 items-center justify-center rounded-md bg-muted text-lg font-semibold",children:Ji(N)}),jsxRuntime.jsx(ae,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:P,disabled:c,children:jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"})})]});return jsxRuntime.jsxs("div",{className:"relative flex items-center",children:[jsxRuntime.jsx("input",{ref:u,type:"time",value:f,onChange:y,disabled:c,className:m(Vf({size:t}),s&&"pr-10","[&::-webkit-calendar-picker-indicator]:hidden",e),...d}),s&&jsxRuntime.jsxs(ot,{open:g,onOpenChange:h,children:[jsxRuntime.jsxs(qn,{type:"button",className:"absolute right-1 h-7 w-7 p-0 inline-flex items-center justify-center rounded-md hover:bg-accent hover:text-accent-foreground disabled:cursor-not-allowed disabled:opacity-50",disabled:c,children:[jsxRuntime.jsx(lucideReact.Clock,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Pick time"})]}),jsxRuntime.jsxs(at,{className:"w-auto p-4",align:"end",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(T,{value:b,onIncrement:w,onDecrement:C,max:23}),jsxRuntime.jsx("div",{className:"text-2xl font-bold text-muted-foreground",children:":"}),jsxRuntime.jsx(T,{value:v,onIncrement:x,onDecrement:M,max:59})]}),jsxRuntime.jsxs("div",{className:"mt-4 flex justify-end gap-2",children:[jsxRuntime.jsx(ae,{variant:"bordered",size:"sm",onClick:()=>{let N=new Date;R(N.getHours(),N.getMinutes());},children:"Now"}),jsxRuntime.jsx(ae,{size:"sm",onClick:()=>h(false),children:"Done"})]})]})]})]})});Af.displayName="TimeInput";var zf=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),eC=(e,t)=>{try{return new Intl.NumberFormat(t,{style:"currency",currency:e,currencyDisplay:"narrowSymbol"}).formatToParts(0).find(a=>a.type==="currency")?.value??e}catch{return e}},el=(e,t,n,r)=>{let o=e.toFixed(t),[a,s]=o.split("."),i=a.replace(/\B(?=(\d{3})+(?!\d))/g,n);return s?`${i}${r}${s}`:i},Of=(e,t,n)=>{if(!e)return;let r=e.replace(new RegExp(`\\${t}`,"g"),"");r=r.replace(n,"."),r=r.replace(/[^0-9.-]/g,"");let o=parseFloat(r);return isNaN(o)?void 0:o},Bf=Y__namespace.forwardRef(({className:e,size:t,value:n,defaultValue:r,onChange:o,currency:a="USD",locale:s="en-US",decimals:i=2,min:l,max:c,showCurrency:d=true,currencyPosition:u="prefix",currencySymbol:f,thousandSeparator:p=",",decimalSeparator:g=".",disabled:h,placeholder:b,...v},y)=>{let[R,w]=Y__namespace.useState(r),[C,x]=Y__namespace.useState(""),[M,T]=Y__namespace.useState(false),N=n!==void 0?n:R,E=f??eC(a,s);Y__namespace.useEffect(()=>{!M&&N!==void 0&&x(el(N,i,p,g));},[N,i,p,g,M]);let P=S=>{let I=S.target.value;if(!I){x(""),n===void 0&&w(void 0),o?.(void 0);return}if(!new RegExp(`^[0-9${p}${g}.-]*$`).test(I))return;x(I);let O=Of(I,p,g);if(O!==void 0){let V=O;l!==void 0&&O<l&&(V=l),c!==void 0&&O>c&&(V=c),n===void 0&&w(V),o?.(V);}},k=()=>{T(true),N!==void 0&&x(N.toString().replace(".",g));},D=()=>{T(false),x(N!==void 0?el(N,i,p,g):"");},H=d&&u==="prefix"&&jsxRuntime.jsx("span",{className:"flex items-center text-muted-foreground pr-1",children:E}),L=d&&u==="suffix"&&jsxRuntime.jsx("span",{className:"flex items-center text-muted-foreground pl-1",children:E});return jsxRuntime.jsxs("div",{className:"relative flex items-center",children:[H&&jsxRuntime.jsx("div",{className:"absolute left-3 pointer-events-none",children:H}),jsxRuntime.jsx("input",{ref:y,type:"text",inputMode:"decimal",value:C,onChange:P,onFocus:k,onBlur:D,disabled:h,placeholder:b??`0${g}${"0".repeat(i)}`,className:m(zf({size:t}),H&&"pl-8",L&&"pr-8","text-right",e),style:{borderColor:M?"var(--color-foreground)":void 0},...v}),L&&jsxRuntime.jsx("div",{className:"absolute right-3 pointer-events-none",children:L})]})});Bf.displayName="CurrencyInput";var Ff=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50 font-mono",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),tl={creditCard:{mask:"#### #### #### ####"},creditCardAmex:{mask:"#### ###### #####"},cvv:{mask:"###"},expiry:{mask:"##/##"},date:{mask:"##/##/####"},dateISO:{mask:"####-##-##"},time:{mask:"##:##"},ip:{mask:"###.###.###.###"},mac:{mask:"AA:AA:AA:AA:AA:AA"},id11:{mask:"###########"},id9:{mask:"#########"},id10:{mask:"##########"},postal5:{mask:"#####"},postal9:{mask:"#####-####"}},rC=(e,t)=>{switch(t){case "#":return /\d/.test(e);case "A":return /[a-zA-Z]/.test(e);case "*":return /[a-zA-Z0-9]/.test(e);default:return e===t}},rr=e=>["#","A","*"].includes(e),cs=(e,t,n)=>{let r="",o=0;for(let a=0;a<t.length&&o<=e.length;a++){let s=t[a];if(rr(s)){if(o<e.length){let i=e[o];rC(i,s)?(r+=i,o++):(o++,a--);}}else (o<e.length||n)&&(r+=s);}return r},nl=(e,t)=>{let n="";for(let r=0;r<e.length&&r<t.length;r++){let o=t[r];rr(o)&&(n+=e[r]);}return n},Kf=(e,t)=>e.split("").map(n=>rr(n)?t:n).join(""),oC=(e,t,n)=>{let r=0;for(let i=0;i<n&&i<e.length&&i<t.length;i++)rr(t[i])&&r++;let a=0,s=0;for(let i=0;i<t.length&&s<r;i++)a++,rr(t[i])&&s++;for(;a<t.length&&!rr(t[a]);)a++;return Math.min(a,e.length)},$f=Y__namespace.forwardRef(({className:e,size:t,value:n,defaultValue:r="",onChange:o,mask:a,maskPlaceholder:s="_",showMaskPlaceholder:i=false,includeMaskChars:l=false,disabled:c,placeholder:d,...u},f)=>{let p=typeof a=="string"&&a in tl?tl[a].mask:a,[g,h]=Y__namespace.useState(r),[b,v]=Y__namespace.useState(""),[y,R]=Y__namespace.useState(false),w=Y__namespace.useRef(null),C=n!==void 0?n:g;Y__namespace.useImperativeHandle(f,()=>w.current),Y__namespace.useEffect(()=>{let N=cs(C,p,true);v(N);},[C,p]);let x=N=>{let E=N.target.value,P=N.target.selectionStart??0,k=E.replace(/[^\w]/g,""),D=cs(k,p,true),H=nl(D,p);v(D),n===void 0&&h(l?D:H),o?.(H,D),requestAnimationFrame(()=>{if(w.current){let L=oC(D,p,P);w.current.setSelectionRange(L,L);}});},M=N=>{if(["ArrowLeft","ArrowRight","Home","End","Tab"].includes(N.key)||N.ctrlKey||N.metaKey)return;let E=w.current;if(!E)return;let P=E.selectionStart??0;if(N.key==="Backspace"&&P>0){let k=P-1;for(;k>0&&!rr(p[k]);)k--;let D=nl(b,p),H=0;for(let I=0;I<k&&I<p.length;I++)rr(p[I])&&H++;let L=D.slice(0,Math.max(0,H-1))+D.slice(H),S=cs(L,p,true);v(S),n===void 0&&h(l?S:L),o?.(L,S),N.preventDefault(),requestAnimationFrame(()=>{w.current&&w.current.setSelectionRange(k,k);});}},T=i?Kf(p,s):d;return jsxRuntime.jsx("input",{ref:w,type:"text",value:b,onChange:x,onKeyDown:M,onFocus:()=>R(true),onBlur:()=>R(false),disabled:c,placeholder:T,className:m(Ff({size:t}),e),style:{borderColor:y?"var(--color-foreground)":void 0},...u})});$f.displayName="MaskedInput";var cC=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),Uf=[{code:"AR",name:"Argentina",dialCode:"+54",flag:"\u{1F1E6}\u{1F1F7}",format:"## ####-####"},{code:"AU",name:"Australia",dialCode:"+61",flag:"\u{1F1E6}\u{1F1FA}",format:"### ### ###"},{code:"AT",name:"Austria",dialCode:"+43",flag:"\u{1F1E6}\u{1F1F9}",format:"### #######"},{code:"BE",name:"Belgium",dialCode:"+32",flag:"\u{1F1E7}\u{1F1EA}",format:"### ## ## ##"},{code:"BR",name:"Brazil",dialCode:"+55",flag:"\u{1F1E7}\u{1F1F7}",format:"(##) #####-####"},{code:"BG",name:"Bulgaria",dialCode:"+359",flag:"\u{1F1E7}\u{1F1EC}",format:"### ### ###"},{code:"CA",name:"Canada",dialCode:"+1",flag:"\u{1F1E8}\u{1F1E6}",format:"(###) ###-####"},{code:"CN",name:"China",dialCode:"+86",flag:"\u{1F1E8}\u{1F1F3}",format:"### #### ####"},{code:"HR",name:"Croatia",dialCode:"+385",flag:"\u{1F1ED}\u{1F1F7}",format:"## ### ####"},{code:"CZ",name:"Czech Republic",dialCode:"+420",flag:"\u{1F1E8}\u{1F1FF}",format:"### ### ###"},{code:"DK",name:"Denmark",dialCode:"+45",flag:"\u{1F1E9}\u{1F1F0}",format:"## ## ## ##"},{code:"EG",name:"Egypt",dialCode:"+20",flag:"\u{1F1EA}\u{1F1EC}",format:"### ### ####"},{code:"FI",name:"Finland",dialCode:"+358",flag:"\u{1F1EB}\u{1F1EE}",format:"## ### ####"},{code:"FR",name:"France",dialCode:"+33",flag:"\u{1F1EB}\u{1F1F7}",format:"# ## ## ## ##"},{code:"DE",name:"Germany",dialCode:"+49",flag:"\u{1F1E9}\u{1F1EA}",format:"#### #######"},{code:"GR",name:"Greece",dialCode:"+30",flag:"\u{1F1EC}\u{1F1F7}",format:"### ### ####"},{code:"HK",name:"Hong Kong",dialCode:"+852",flag:"\u{1F1ED}\u{1F1F0}",format:"#### ####"},{code:"HU",name:"Hungary",dialCode:"+36",flag:"\u{1F1ED}\u{1F1FA}",format:"## ### ####"},{code:"IN",name:"India",dialCode:"+91",flag:"\u{1F1EE}\u{1F1F3}",format:"##### #####"},{code:"IL",name:"Israel",dialCode:"+972",flag:"\u{1F1EE}\u{1F1F1}",format:"##-###-####"},{code:"IT",name:"Italy",dialCode:"+39",flag:"\u{1F1EE}\u{1F1F9}",format:"### ### ####"},{code:"JP",name:"Japan",dialCode:"+81",flag:"\u{1F1EF}\u{1F1F5}",format:"##-####-####"},{code:"MX",name:"Mexico",dialCode:"+52",flag:"\u{1F1F2}\u{1F1FD}",format:"### ### ####"},{code:"NL",name:"Netherlands",dialCode:"+31",flag:"\u{1F1F3}\u{1F1F1}",format:"## ########"},{code:"NZ",name:"New Zealand",dialCode:"+64",flag:"\u{1F1F3}\u{1F1FF}",format:"## ### ####"},{code:"NG",name:"Nigeria",dialCode:"+234",flag:"\u{1F1F3}\u{1F1EC}",format:"### ### ####"},{code:"NO",name:"Norway",dialCode:"+47",flag:"\u{1F1F3}\u{1F1F4}",format:"### ## ###"},{code:"PK",name:"Pakistan",dialCode:"+92",flag:"\u{1F1F5}\u{1F1F0}",format:"### #######"},{code:"PL",name:"Poland",dialCode:"+48",flag:"\u{1F1F5}\u{1F1F1}",format:"### ### ###"},{code:"PT",name:"Portugal",dialCode:"+351",flag:"\u{1F1F5}\u{1F1F9}",format:"### ### ###"},{code:"RO",name:"Romania",dialCode:"+40",flag:"\u{1F1F7}\u{1F1F4}",format:"### ### ###"},{code:"RU",name:"Russia",dialCode:"+7",flag:"\u{1F1F7}\u{1F1FA}",format:"(###) ###-##-##"},{code:"SA",name:"Saudi Arabia",dialCode:"+966",flag:"\u{1F1F8}\u{1F1E6}",format:"## ### ####"},{code:"RS",name:"Serbia",dialCode:"+381",flag:"\u{1F1F7}\u{1F1F8}",format:"## ### ####"},{code:"SG",name:"Singapore",dialCode:"+65",flag:"\u{1F1F8}\u{1F1EC}",format:"#### ####"},{code:"SK",name:"Slovakia",dialCode:"+421",flag:"\u{1F1F8}\u{1F1F0}",format:"### ### ###"},{code:"SI",name:"Slovenia",dialCode:"+386",flag:"\u{1F1F8}\u{1F1EE}",format:"## ### ###"},{code:"ZA",name:"South Africa",dialCode:"+27",flag:"\u{1F1FF}\u{1F1E6}",format:"## ### ####"},{code:"KR",name:"South Korea",dialCode:"+82",flag:"\u{1F1F0}\u{1F1F7}",format:"##-####-####"},{code:"ES",name:"Spain",dialCode:"+34",flag:"\u{1F1EA}\u{1F1F8}",format:"### ### ###"},{code:"SE",name:"Sweden",dialCode:"+46",flag:"\u{1F1F8}\u{1F1EA}",format:"##-### ## ##"},{code:"CH",name:"Switzerland",dialCode:"+41",flag:"\u{1F1E8}\u{1F1ED}",format:"## ### ## ##"},{code:"TW",name:"Taiwan",dialCode:"+886",flag:"\u{1F1F9}\u{1F1FC}",format:"### ### ###"},{code:"TR",name:"Turkey",dialCode:"+90",flag:"\u{1F1F9}\u{1F1F7}",format:"(###) ### ## ##"},{code:"UA",name:"Ukraine",dialCode:"+380",flag:"\u{1F1FA}\u{1F1E6}",format:"## ### ## ##"},{code:"AE",name:"United Arab Emirates",dialCode:"+971",flag:"\u{1F1E6}\u{1F1EA}",format:"## ### ####"},{code:"GB",name:"United Kingdom",dialCode:"+44",flag:"\u{1F1EC}\u{1F1E7}",format:"#### ### ####"},{code:"US",name:"United States",dialCode:"+1",flag:"\u{1F1FA}\u{1F1F8}",format:"(###) ###-####"}],ds=(e,t)=>{let n=e.replace(/\D/g,""),r="",o=0;for(let a=0;a<t.length&&o<n.length;a++)t[a]==="#"?(r+=n[o],o++):r+=t[a];return r},dC=e=>e.replace(/#/g,"_"),jf=Y__namespace.forwardRef(({className:e,size:t,value:n,defaultValue:r="",onChange:o,country:a,defaultCountry:s="TR",onCountryChange:i,countries:l=Uf,showCountrySelect:c=true,showDialCode:d=false,disabled:u,placeholder:f,...p},g)=>{let[h,b]=Y__namespace.useState(r),[v,y]=Y__namespace.useState(a??s),[R,w]=Y__namespace.useState(false),[C,x]=Y__namespace.useState(false),[M,T]=Y__namespace.useState(false),[N,E]=Y__namespace.useState({top:0,left:0,width:0}),P=Y__namespace.useRef(null),k=Y__namespace.useRef(null),D=n!==void 0?n:h,H=a??v,L=l.find(z=>z.code===H)??l[0],S=ds(D,L.format);Y__namespace.useEffect(()=>{T(true);},[]),Y__namespace.useEffect(()=>{if(C&&P.current){let z=P.current.getBoundingClientRect();E({top:z.bottom+4,left:z.left,width:Math.max(z.width,280)});}},[C]),Y__namespace.useEffect(()=>{if(!C)return;let z=K=>{P.current&&!P.current.contains(K.target)&&k.current&&!k.current.contains(K.target)&&x(false);};return document.addEventListener("mousedown",z),()=>document.removeEventListener("mousedown",z)},[C]),Y__namespace.useEffect(()=>{if(!C)return;let z=K=>{K.key==="Escape"&&x(false);};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[C]);let I=z=>{let _=z.target.value.replace(/\D/g,"");n===void 0&&b(_);let X=ds(_,L.format),$=`${L.dialCode} ${X}`;o?.(_,$,L);},A=z=>{let K=l.find($=>$.code===z);if(!K)return;a===void 0&&y(z),i?.(K);let _=ds(D,K.format),X=`${K.dialCode} ${_}`;o?.(D,X,K),x(false);},O=t==="sm"?"h-8":t==="lg"?"h-12":"h-10",V=R||C;return jsxRuntime.jsxs("div",{className:m("flex rounded-lg border bg-background transition-colors",u&&"cursor-not-allowed opacity-50"),style:{borderColor:V?"var(--color-foreground)":"var(--color-border)"},children:[c&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("button",{ref:P,type:"button",disabled:u,onClick:()=>x(!C),className:m("flex items-center justify-between bg-transparent px-3 py-2 text-sm focus:outline-none disabled:cursor-not-allowed disabled:opacity-50","w-[100px] shrink-0 border-r",O),style:{borderColor:V?"var(--color-foreground)":"var(--color-border)"},children:[jsxRuntime.jsxs("span",{className:"flex items-center gap-1.5",children:[jsxRuntime.jsx("span",{children:L.flag}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:L.dialCode})]}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:m("h-4 w-4 opacity-50 transition-transform",C&&"rotate-180")})]}),M&&C&&Ba__namespace.createPortal(jsxRuntime.jsx("div",{ref:k,className:"fixed z-50 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95",style:{top:N.top,left:N.left,minWidth:N.width},children:jsxRuntime.jsx(ke,{style:{maxHeight:300},children:jsxRuntime.jsx("div",{className:"p-1",children:l.map(z=>jsxRuntime.jsxs("div",{role:"option","aria-selected":z.code===H,onClick:()=>A(z.code),className:"relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:z.code===H&&jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})}),jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{children:z.flag}),jsxRuntime.jsx("span",{className:"flex-1",children:z.name}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:z.dialCode})]})]},z.code))})})}),document.body)]}),jsxRuntime.jsxs("div",{className:"relative flex-1",children:[d&&!c&&jsxRuntime.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:L.dialCode}),jsxRuntime.jsx("input",{ref:g,type:"tel",inputMode:"tel",value:S,onChange:I,onFocus:()=>w(true),onBlur:()=>w(false),disabled:u,placeholder:f??dC(L.format),className:m("flex h-10 w-full bg-transparent px-3 py-2 text-sm placeholder:text-muted-foreground focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",t==="sm"&&"h-8 px-2 text-xs",t==="lg"&&"h-12 px-4 text-base",d&&!c&&"pl-12",e),...p})]})]})});jf.displayName="PhoneInput";var _f=classVarianceAuthority.cva("flex items-center justify-between w-full px-4 py-3 border-b bg-background",{variants:{variant:{solid:"bg-primary text-primary-foreground border-primary",bordered:"bg-background border-border",ghost:"bg-transparent border-transparent",soft:"bg-primary/10 border-primary/20",surface:"bg-muted border-border"},size:{sm:"h-12 px-3 py-2",md:"h-14 px-4 py-3",lg:"h-16 px-6 py-4"},sticky:{true:"sticky top-0 z-50",false:""}},defaultVariants:{variant:"bordered",size:"md",sticky:false}}),Yf=Y__namespace.forwardRef(({className:e,variant:t,size:n,sticky:r,brand:o,children:a,mobileBreakpoint:s="md",...i},l)=>{let[c,d]=Y__namespace.useState(false),u={sm:"hidden sm:flex",md:"hidden md:flex",lg:"hidden lg:flex"}[s],f={sm:"sm:hidden",md:"md:hidden",lg:"lg:hidden"}[s];return jsxRuntime.jsxs("nav",{ref:l,className:m(_f({variant:t,size:n,sticky:r,className:e})),...i,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between w-full",children:[o&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:o}),jsxRuntime.jsx("div",{className:m("items-center gap-4 flex-1 justify-end",u),children:a}),jsxRuntime.jsx("button",{type:"button",className:m("p-2 rounded-md hover:bg-accent hover:text-accent-foreground transition-colors",f),onClick:()=>d(!c),"aria-label":c?"Close menu":"Open menu","aria-expanded":c,children:c?jsxRuntime.jsx(lucideReact.X,{className:"h-5 w-5"}):jsxRuntime.jsx(lucideReact.Menu,{className:"h-5 w-5"})})]}),c&&jsxRuntime.jsx("div",{className:m("absolute top-full left-0 right-0 flex flex-col gap-2 p-4 bg-background border-b border-border shadow-lg",f),children:a})]})});Yf.displayName="Navbar";var Xf=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,className:m("flex items-center gap-2 font-semibold text-lg",e),...t}));Xf.displayName="NavbarBrand";var qf=Y__namespace.forwardRef(({className:e,justify:t="start",...n},r)=>{let o={start:"justify-start",center:"justify-center",end:"justify-end"}[t];return jsxRuntime.jsx("div",{ref:r,className:m("flex items-center gap-4",o,e),...n})});qf.displayName="NavbarContent";var Zf=Y__namespace.forwardRef(({className:e,isActive:t,...n},r)=>jsxRuntime.jsx("div",{ref:r,className:m("flex items-center",t&&"text-primary font-medium",e),...n}));Zf.displayName="NavbarItem";var Qf=Y__namespace.forwardRef(({className:e,isActive:t,...n},r)=>jsxRuntime.jsx("a",{ref:r,className:m("text-sm font-medium transition-colors hover:text-primary",t?"text-primary":"text-muted-foreground",e),...n}));Qf.displayName="NavbarLink";var eg=classVarianceAuthority.cva("inline-flex items-center gap-1 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{solid:"text-primary-foreground bg-primary px-2 py-0.5 rounded hover:bg-primary/90",bordered:"text-primary underline-offset-4 hover:underline",ghost:"text-foreground hover:text-primary",soft:"text-primary bg-primary/10 px-2 py-0.5 rounded hover:bg-primary/20",surface:"text-foreground bg-muted px-2 py-0.5 rounded hover:bg-muted/80"},size:{sm:"text-xs",md:"text-sm",lg:"text-base"},underline:{none:"",hover:"hover:underline underline-offset-4",always:"underline underline-offset-4"}},defaultVariants:{variant:"bordered",size:"md",underline:"hover"}}),tg=Y__namespace.forwardRef(({className:e,variant:t,size:n,underline:r,isExternal:o,showExternalIcon:a=true,isDisabled:s,children:i,...l},c)=>{let d=o?{target:"_blank",rel:"noopener noreferrer"}:{};return jsxRuntime.jsxs("a",{ref:c,className:m(eg({variant:t,size:n,underline:r,className:e}),s&&"pointer-events-none opacity-50"),"aria-disabled":s,...d,...l,children:[i,o&&a&&jsxRuntime.jsx(lucideReact.ExternalLink,{className:"h-3 w-3 ml-0.5","aria-hidden":"true"})]})});tg.displayName="Link";var ng=classVarianceAuthority.cva("fixed z-50 transition-all duration-300",{variants:{position:{"bottom-right":"bottom-6 right-6","bottom-left":"bottom-6 left-6","bottom-center":"bottom-6 left-1/2 -translate-x-1/2"}},defaultVariants:{position:"bottom-right"}}),rg=Y__namespace.forwardRef(({className:e,position:t,threshold:n=400,icon:r,behavior:o="smooth",variant:a="solid",color:s="default",size:i="md",radius:l="full",target:c,onVisibilityChange:d,onClick:u,...f},p)=>{let[g,h]=Y__namespace.useState(false);Y__namespace.useEffect(()=>{let y=c?.current||window,R=()=>{let C=(c?.current?c.current.scrollTop:window.scrollY||document.documentElement.scrollTop)>n;C!==g&&(h(C),d?.(C));};return y.addEventListener("scroll",R,{passive:true}),R(),()=>{y.removeEventListener("scroll",R);}},[n,c,g,d]);let b=y=>{c?.current?c.current.scrollTo({top:0,behavior:o}):window.scrollTo({top:0,behavior:o}),u?.(y);},v=i==="sm"?"h-4 w-4":i==="lg"?"h-6 w-6":"h-5 w-5";return jsxRuntime.jsx("div",{className:m(ng({position:t}),g?"opacity-100 translate-y-0 pointer-events-auto":"opacity-0 translate-y-4 pointer-events-none",e),children:jsxRuntime.jsx(ae,{ref:p,type:"button",variant:a,color:s,size:i,isIconOnly:true,radius:l,onClick:b,"aria-label":"Back to top",className:"shadow-lg",...f,children:r||jsxRuntime.jsx(lucideReact.ArrowUp,{className:v})})})});rg.displayName="BackTop";var TC=classVarianceAuthority.cva("",{variants:{radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-full"}},defaultVariants:{radius:"sm"}}),MC=classVarianceAuthority.cva("",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"sm"}}),og=classVarianceAuthority.cva("",{variants:{radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-2xl"}},defaultVariants:{radius:"sm"}}),ps=classVarianceAuthority.cva("",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-xl"}},defaultVariants:{radius:"sm"}}),ag=Y__namespace.createContext(null),ar=()=>{let e=Y__namespace.useContext(ag);if(!e)throw new Error("Menubar components must be used within a Menubar");return e},sg=Y__namespace.createContext(null),Zo=()=>{let e=Y__namespace.useContext(sg);if(!e)throw new Error("Menu components must be used within a MenubarMenu");return e},ol=Y__namespace.createContext(null),ig=Y__namespace.createContext(null),lg=Y__namespace.forwardRef(({className:e,children:t,radius:n="sm",...r},o)=>{let[a,s]=Y__namespace.useState(null);return jsxRuntime.jsx(ag.Provider,{value:{activeMenu:a,setActiveMenu:s,radius:n},children:jsxRuntime.jsx("div",{ref:o,role:"menubar",className:m("flex h-10 items-center space-x-1 border bg-background p-1",TC({radius:n}),e),...r,children:t})})});lg.displayName="Menubar";var cg=({children:e})=>{let{activeMenu:t,setActiveMenu:n}=ar(),r=Y__namespace.useId(),o=Y__namespace.useRef(null),a=t===r,s=Y__namespace.useCallback(i=>{n(i?r:null);},[r,n]);return jsxRuntime.jsx(sg.Provider,{value:{menuId:r,triggerRef:o,open:a,onOpenChange:s},children:e})};cg.displayName="MenubarMenu";var dg=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,role:"group",className:e,...t}));dg.displayName="MenubarGroup";var ug=({children:e,container:t})=>{let[n,r]=Y__namespace.useState(false);return Y__namespace.useEffect(()=>{r(true);},[]),n?Ba__namespace.createPortal(e,t||document.body):null};ug.displayName="MenubarPortal";var mg=({children:e,open:t,defaultOpen:n=false,onOpenChange:r})=>{let[o,a]=Y__namespace.useState(n),s=t!==void 0,i=s?t:o,l=Y__namespace.useRef(null),c=Y__namespace.useCallback(d=>{s||a(d),r?.(d);},[s,r]);return jsxRuntime.jsx(ol.Provider,{value:{open:i,onOpenChange:c,triggerRef:l},children:e})};mg.displayName="MenubarSub";var pg=Y__namespace.forwardRef(({value:e="",onValueChange:t,className:n,...r},o)=>jsxRuntime.jsx(ig.Provider,{value:{value:e,onValueChange:t||(()=>{})},children:jsxRuntime.jsx("div",{ref:o,role:"group",className:n,...r})}));pg.displayName="MenubarRadioGroup";var fg=Y__namespace.forwardRef(({className:e,onClick:t,onMouseEnter:n,...r},o)=>{let{activeMenu:a,setActiveMenu:s,radius:i}=ar(),{menuId:l,triggerRef:c,open:d,onOpenChange:u}=Zo(),f=g=>{t?.(g),u(!d);},p=g=>{n?.(g),a&&a!==l&&(s(l),document.activeElement instanceof HTMLElement&&document.activeElement.blur());};return jsxRuntime.jsx("button",{ref:g=>{c.current=g,typeof o=="function"?o(g):o&&(o.current=g);},type:"button",role:"menuitem","aria-haspopup":"menu","aria-expanded":d,"data-state":d?"open":"closed",className:m("flex cursor-default select-none items-center px-3 py-1.5 text-sm font-medium outline-none hover:bg-accent hover:text-accent-foreground focus-visible:bg-accent focus-visible:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",MC({radius:i}),e),onClick:f,onMouseEnter:p,...r})});fg.displayName="MenubarTrigger";var gg=Y__namespace.forwardRef(({className:e,inset:t,children:n,onMouseEnter:r,onMouseLeave:o,...a},s)=>{let{radius:i}=ar(),l=Y__namespace.useContext(ol);if(!l)throw new Error("MenubarSubTrigger must be used within MenubarSub");let{open:c,onOpenChange:d,triggerRef:u}=l,f=g=>{r?.(g),d(true);},p=g=>{o?.(g),d(false);};return jsxRuntime.jsxs("div",{ref:g=>{u.current=g,typeof s=="function"?s(g):s&&(s.current=g);},role:"menuitem","aria-haspopup":"menu","aria-expanded":c,"data-state":c?"open":"closed",className:m("flex cursor-default select-none items-center px-2 py-1.5 text-sm outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",ps({radius:i}),t&&"pl-8",e),onMouseEnter:f,onMouseLeave:p,...a,children:[n,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto h-4 w-4"})]})});gg.displayName="MenubarSubTrigger";var bg=Y__namespace.forwardRef(({className:e,sideOffset:t=2,onMouseEnter:n,onMouseLeave:r,...o},a)=>{let{radius:s}=ar(),i=Y__namespace.useContext(ol);if(!i)throw new Error("MenubarSubContent must be used within MenubarSub");let{open:l,onOpenChange:c,triggerRef:d}=i,[u,f]=Y__namespace.useState({top:0,left:0}),[p,g]=Y__namespace.useState(false),h=Y__namespace.useRef(null);Y__namespace.useEffect(()=>{g(true);},[]),Y__namespace.useEffect(()=>{if(!l||!d.current||!h.current)return;(()=>{if(!d.current||!h.current)return;let R=d.current.getBoundingClientRect(),w=h.current.getBoundingClientRect(),C=R.top,x=R.right+t;x+w.width>window.innerWidth&&(x=R.left-w.width-t),f({top:C,left:x});})();},[l,t,d]);let b=y=>{n?.(y),c(true);},v=y=>{r?.(y),c(false);};return !p||!l?null:Ba__namespace.createPortal(jsxRuntime.jsx("div",{ref:y=>{h.current=y,typeof a=="function"?a(y):a&&(a.current=y);},role:"menu","data-state":l?"open":"closed",className:m("fixed z-50 min-w-[8rem] overflow-hidden border bg-popover p-1 text-popover-foreground shadow-lg","animate-in fade-in-0 zoom-in-95 slide-in-from-left-2",og({radius:s}),e),style:{top:u.top,left:u.left},onMouseEnter:b,onMouseLeave:v,...o}),document.body)});bg.displayName="MenubarSubContent";var vg=Y__namespace.forwardRef(({className:e,align:t="start",alignOffset:n=-4,sideOffset:r=8,children:o,...a},s)=>{let{radius:i}=ar(),{triggerRef:l,open:c,onOpenChange:d}=Zo(),[u,f]=Y__namespace.useState({top:0,left:0}),[p,g]=Y__namespace.useState(false),h=Y__namespace.useRef(null);return Y__namespace.useEffect(()=>{g(true);},[]),Y__namespace.useEffect(()=>{if(!c||!l.current||!h.current)return;let b=()=>{if(!l.current||!h.current)return;let v=l.current.getBoundingClientRect(),y=h.current.getBoundingClientRect(),R=v.bottom+r,w=v.left+n;t==="center"?w=v.left+v.width/2-y.width/2:t==="end"&&(w=v.right-y.width-n),f({top:R,left:w});};return b(),window.addEventListener("resize",b),window.addEventListener("scroll",b,true),()=>{window.removeEventListener("resize",b),window.removeEventListener("scroll",b,true);}},[c,t,n,r,l]),Y__namespace.useEffect(()=>{if(!c)return;let b=v=>{let y=v.target;h.current&&!h.current.contains(y)&&l.current&&!l.current.contains(y)&&d(false);};return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[c,d,l]),Y__namespace.useEffect(()=>{if(!c)return;let b=v=>{v.key==="Escape"&&d(false);};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[c,d]),!p||!c?null:Ba__namespace.createPortal(jsxRuntime.jsx("div",{ref:b=>{h.current=b,typeof s=="function"?s(b):s&&(s.current=b);},role:"menu","data-state":c?"open":"closed",className:m("fixed z-50 min-w-[12rem] overflow-hidden border bg-popover p-1 text-popover-foreground shadow-md","animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",og({radius:i}),e),style:{top:u.top,left:u.left},...a,children:o}),document.body)});vg.displayName="MenubarContent";var hg=Y__namespace.forwardRef(({className:e,inset:t,disabled:n,onSelect:r,onClick:o,...a},s)=>{let{radius:i}=ar(),{onOpenChange:l}=Zo(),c=d=>{if(n){d.preventDefault();return}o?.(d),r?.(),l(false);};return jsxRuntime.jsx("div",{ref:s,role:"menuitem",tabIndex:n?-1:0,"aria-disabled":n,"data-disabled":n?"":void 0,className:m("relative flex cursor-default select-none items-center px-2 py-1.5 text-sm outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",ps({radius:i}),t&&"pl-8",!n&&"cursor-pointer",e),onClick:c,...a})});hg.displayName="MenubarItem";var xg=Y__namespace.forwardRef(({className:e,children:t,checked:n=false,onCheckedChange:r,disabled:o,onClick:a,...s},i)=>{let{radius:l}=ar(),{onOpenChange:c}=Zo(),d=u=>{if(o){u.preventDefault();return}a?.(u),r?.(!n),c(false);};return jsxRuntime.jsxs("div",{ref:i,role:"menuitemcheckbox","aria-checked":n,tabIndex:o?-1:0,"aria-disabled":o,"data-disabled":o?"":void 0,"data-state":n?"checked":"unchecked",className:m("relative flex cursor-default select-none items-center py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",ps({radius:l}),!o&&"cursor-pointer",e),onClick:d,...s,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:n&&jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})}),t]})});xg.displayName="MenubarCheckboxItem";var yg=Y__namespace.forwardRef(({className:e,children:t,value:n,disabled:r,onClick:o,...a},s)=>{let{radius:i}=ar(),{onOpenChange:l}=Zo(),c=Y__namespace.useContext(ig),d=c?.value===n,u=f=>{if(r){f.preventDefault();return}o?.(f),c?.onValueChange(n),l(false);};return jsxRuntime.jsxs("div",{ref:s,role:"menuitemradio","aria-checked":d,tabIndex:r?-1:0,"aria-disabled":r,"data-disabled":r?"":void 0,"data-state":d?"checked":"unchecked",className:m("relative flex cursor-default select-none items-center py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",ps({radius:i}),!r&&"cursor-pointer",e),onClick:u,...a,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d&&jsxRuntime.jsx(lucideReact.Circle,{className:"h-2 w-2 fill-current"})}),t]})});yg.displayName="MenubarRadioItem";var Rg=Y__namespace.forwardRef(({className:e,inset:t,...n},r)=>jsxRuntime.jsx("div",{ref:r,className:m("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));Rg.displayName="MenubarLabel";var wg=Y__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,role:"separator",className:m("-mx-1 my-1 h-px bg-muted",e),...t}));wg.displayName="MenubarSeparator";var Cg=({className:e,...t})=>jsxRuntime.jsx("span",{className:m("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Cg.displayName="MenubarShortcut";var Tg=classVarianceAuthority.cva("flex",{variants:{orientation:{horizontal:"flex-row items-center",vertical:"flex-col"},size:{sm:"gap-2",md:"gap-4",lg:"gap-6"}},defaultVariants:{orientation:"horizontal",size:"md"}}),Mg=Y__namespace.forwardRef(({className:e,orientation:t,size:n,currentStep:r=0,children:o,...a},s)=>{let i=Y__namespace.Children.toArray(o);return jsxRuntime.jsx("div",{ref:s,className:m(Tg({orientation:t,size:n,className:e})),...a,children:i.map((l,c)=>Y__namespace.isValidElement(l)?Y__namespace.cloneElement(l,{...l.props,stepNumber:c+1,status:l.props.status||(c<r?"completed":c===r?"current":"upcoming"),isLast:c===i.length-1,orientation:t,size:n}):l)})});Mg.displayName="Steps";var Ng=classVarianceAuthority.cva("flex items-center",{variants:{orientation:{horizontal:"flex-row",vertical:"flex-col items-start"},size:{sm:"gap-2",md:"gap-3",lg:"gap-4"}},defaultVariants:{orientation:"horizontal",size:"md"}}),kC=classVarianceAuthority.cva("flex items-center justify-center rounded-full font-medium transition-colors",{variants:{status:{completed:"bg-primary text-primary-foreground",current:"bg-primary text-primary-foreground ring-2 ring-primary ring-offset-2 ring-offset-background",upcoming:"bg-muted text-muted-foreground border-2 border-muted-foreground/30"},size:{sm:"h-6 w-6 text-xs",md:"h-8 w-8 text-sm",lg:"h-10 w-10 text-base"}},defaultVariants:{status:"upcoming",size:"md"}}),PC=classVarianceAuthority.cva("bg-muted transition-colors",{variants:{orientation:{horizontal:"h-0.5 flex-1 min-w-8",vertical:"w-0.5 min-h-8 ml-4"},status:{completed:"bg-primary",current:"bg-muted",upcoming:"bg-muted"}},defaultVariants:{orientation:"horizontal",status:"upcoming"}}),kg=Y__namespace.forwardRef(({className:e,orientation:t="horizontal",size:n="md",title:r,description:o,icon:a,status:s="upcoming",stepNumber:i,isLast:l,...c},d)=>jsxRuntime.jsxs("div",{ref:d,className:m(Ng({orientation:t,size:n,className:e}),!l&&t==="horizontal"&&"flex-1"),...c,children:[jsxRuntime.jsx("div",{className:m("flex items-center",t==="vertical"&&"flex-col items-start"),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntime.jsx("div",{className:m(kC({status:s,size:n})),children:s==="completed"?jsxRuntime.jsx(lucideReact.Check,{className:n==="sm"?"h-3 w-3":n==="lg"?"h-5 w-5":"h-4 w-4"}):a||i}),(r||o)&&jsxRuntime.jsxs("div",{className:"flex flex-col",children:[r&&jsxRuntime.jsx("span",{className:m("font-medium",n==="sm"&&"text-sm",n==="lg"&&"text-lg",s==="upcoming"&&"text-muted-foreground"),children:r}),o&&jsxRuntime.jsx("span",{className:m("text-muted-foreground",n==="sm"&&"text-xs",n==="md"&&"text-sm",n==="lg"&&"text-base"),children:o})]})]})}),!l&&jsxRuntime.jsx("div",{className:m(PC({orientation:t,status:s==="completed"?"completed":"upcoming"}),t==="vertical"&&"my-2")})]}));kg.displayName="Step";var Eg=classVarianceAuthority.cva("flex flex-col select-none",{variants:{variant:{default:"",bordered:"rounded-lg border",filled:"bg-muted/30 rounded-lg p-2"},size:{sm:"[--tree-indent:16px] [--tree-item-height:28px] text-xs",md:"[--tree-indent:20px] [--tree-item-height:32px] text-sm",lg:"[--tree-indent:24px] [--tree-item-height:40px] text-base"}},defaultVariants:{variant:"default",size:"md"}}),Lg=classVarianceAuthority.cva("flex items-center py-1.5 px-2 rounded-sm transition-colors",{variants:{size:{sm:"py-1 px-1.5 text-sm min-h-[var(--tree-item-height)]",md:"py-1.5 px-2 text-sm min-h-[var(--tree-item-height)]",lg:"py-2 px-3 text-base min-h-[var(--tree-item-height)]"},isSelected:{true:"bg-primary/10 text-primary",false:""},isDragging:{true:"opacity-50",false:""},isDisabled:{true:"opacity-50 cursor-not-allowed",false:""},isHoverable:{true:"hover:bg-muted/50 cursor-pointer",false:""}},defaultVariants:{size:"md",isSelected:false,isDragging:false,isDisabled:false,isHoverable:true}}),Sg=Y__namespace.createContext(null),AC=()=>{let e=Y__namespace.useContext(Sg);if(!e)throw new Error("TreeNodeComponent must be used within Tree");return e},zC=({checked:e,indeterminate:t,disabled:n,onClick:r})=>jsxRuntime.jsx("button",{type:"button",role:"checkbox","aria-checked":t?"mixed":e,disabled:n,onClick:o=>{o.stopPropagation(),n||r(o);},className:m("h-4 w-4 shrink-0 rounded-sm border border-primary transition-colors","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",(e||t)&&"bg-primary text-primary-foreground",n&&"cursor-not-allowed opacity-50"),children:(e||t)&&jsxRuntime.jsx("span",{className:"flex items-center justify-center text-current",children:t?jsxRuntime.jsx(lucideReact.Minus,{className:"h-3 w-3"}):jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})})}),Dg=({node:e,level:t,isLast:n=false,parentIsLastPath:r=[]})=>{let{expandedKeys:o,toggleExpand:a,selectedKeys:s,handleSelect:i,selectable:l,checkedKeys:c,halfCheckedKeys:d,handleCheck:u,checkable:f,draggable:p,draggedNode:g,setDraggedNode:h,dragOverKey:b,dragOverPosition:v,setDragOver:y,handleDrop:R,allowDrop:w,onDragStart:C,onDragOver:x,onDragEnter:M,onDragLeave:T,onDragEnd:N,showLine:E,showIcon:P,showHandle:k,dragIcon:D,icon:H,leafIcon:L,folderIcon:S,folderOpenIcon:I,blockNode:A,disabled:O,size:V,getAllKeys:z}=AC(),K=e.children&&e.children.length>0,_=e.isLeaf??!K,X=o.has(e.key),$=s.has(e.key),B=c.has(e.key),U=d.has(e.key),j=g?.key===e.key,F=b===e.key,Z=!!(O||e.disabled),ue=l&&e.selectable!==false,G=f&&e.checkable!==false,Ce=Y__namespace.useMemo(()=>Z?false:typeof p=="boolean"?p:typeof p=="function"?p(e):p&&typeof p=="object"?p.nodeDraggable?p.nodeDraggable(e):true:false,[p,e,Z]),Q=Y__namespace.useMemo(()=>D!==void 0?D:typeof p=="object"&&p.icon!==void 0?p.icon:jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-4 w-4"}),[D,p]),le=Y__namespace.useMemo(()=>e.icon?e.icon:H?typeof H=="function"?H({expanded:X,isLeaf:_}):H:_?L:X?I:S,[e.icon,H,X,_,L,S,I]),Be=q=>{if(!Ce)return;q.stopPropagation(),q.dataTransfer.effectAllowed="move";let De=q.currentTarget,de=De.cloneNode(true),je=document.documentElement.classList.contains("dark"),We=je?"#0a0a0a":"#ffffff",Gn=je?"#27272a":"#e4e4e7";de.style.cssText=`
|
|
44
44
|
position: fixed;
|
|
45
45
|
top: -9999px;
|
|
46
46
|
left: -9999px;
|