@syscore/ui-library 1.1.3 → 1.1.4

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.
Files changed (36) hide show
  1. package/client/components/ui/badge.tsx +1 -1
  2. package/client/components/ui/breadcrumb.tsx +1 -1
  3. package/client/components/ui/button.tsx +1 -1
  4. package/client/components/ui/card.tsx +1 -1
  5. package/client/components/ui/chart.tsx +3 -3
  6. package/client/components/ui/checkbox.tsx +1 -1
  7. package/client/components/ui/command.tsx +4 -4
  8. package/client/components/ui/context-menu.tsx +6 -6
  9. package/client/components/ui/dialog.tsx +1 -1
  10. package/client/components/ui/dropdown-menu.tsx +6 -6
  11. package/client/components/ui/hover-card.tsx +1 -1
  12. package/client/components/ui/input-otp.tsx +1 -1
  13. package/client/components/ui/input.tsx +1 -1
  14. package/client/components/ui/menubar.tsx +7 -7
  15. package/client/components/ui/navigation-menu.tsx +4 -4
  16. package/client/components/ui/pagination.tsx +1 -1
  17. package/client/components/ui/popover.tsx +1 -1
  18. package/client/components/ui/radio-group.tsx +1 -1
  19. package/client/components/ui/resizable.tsx +1 -1
  20. package/client/components/ui/scroll-area.tsx +2 -2
  21. package/client/components/ui/select.tsx +4 -4
  22. package/client/components/ui/separator.tsx +1 -1
  23. package/client/components/ui/sheet.tsx +1 -1
  24. package/client/components/ui/sidebar.tsx +22 -22
  25. package/client/components/ui/slider.tsx +1 -1
  26. package/client/components/ui/sonner.tsx +1 -1
  27. package/client/components/ui/switch.tsx +1 -1
  28. package/client/components/ui/table.tsx +1 -1
  29. package/client/components/ui/tabs.tsx +2 -2
  30. package/client/components/ui/textarea.tsx +1 -1
  31. package/client/components/ui/toast.tsx +4 -4
  32. package/client/components/ui/toggle.tsx +1 -1
  33. package/client/global.css +420 -9
  34. package/dist/ui/index.cjs.js +1 -1
  35. package/dist/ui/index.es.js +83 -83
  36. package/package.json +7 -7
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("react"),t=require("@radix-ui/react-accordion"),s=require("lucide-react"),r=require("clsx"),o=require("tailwind-merge"),i=require("@radix-ui/react-aspect-ratio"),n=require("@radix-ui/react-separator"),d=require("@radix-ui/react-scroll-area"),l=require("react-resizable-panels"),c=require("@radix-ui/react-slot"),m=require("class-variance-authority"),f=require("@radix-ui/react-dialog"),p=require("@radix-ui/react-tooltip"),u=require("@radix-ui/react-label"),x=require("@radix-ui/react-checkbox"),g=require("@radix-ui/react-radio-group"),b=require("@radix-ui/react-switch"),N=require("@radix-ui/react-slider"),h=require("input-otp"),v=require("@radix-ui/react-select"),y=require("react-hook-form"),w=require("@radix-ui/react-toggle-group"),j=require("@radix-ui/react-toggle"),C=require("@radix-ui/react-alert-dialog"),R=require("@radix-ui/react-avatar"),S=require("@radix-ui/react-progress"),k=require("react-day-picker"),T=require("@radix-ui/react-tabs"),I=require("@radix-ui/react-navigation-menu"),z=require("@radix-ui/react-menubar"),D=require("@radix-ui/react-dropdown-menu"),M=require("vaul"),_=require("@radix-ui/react-popover"),P=require("@radix-ui/react-hover-card"),A=require("@radix-ui/react-context-menu"),O=require("embla-carousel-react"),L=require("@radix-ui/react-collapsible"),q=require("cmdk"),F=require("@radix-ui/react-toast"),G=require("recharts"),B=require("next-themes"),E=require("sonner");function H(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const t in e)if("default"!==t){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,s.get?s:{enumerable:!0,get:()=>e[t]})}return a.default=e,Object.freeze(a)}const V=H(a),$=H(t),K=H(i),U=H(n),X=H(d),W=H(l),J=H(f),Q=H(p),Y=H(u),Z=H(x),ee=H(g),ae=H(b),te=H(N),se=H(v),re=H(w),oe=H(j),ie=H(C),ne=H(R),de=H(S),le=H(T),ce=H(I),me=H(z),fe=H(D),pe=H(_),ue=H(P),xe=H(A),ge=H(L),be=H(F),Ne=H(G);function he(...e){return o.twMerge(r.clsx(e))}const ve=$.Root,ye=V.forwardRef(({className:a,...t},s)=>e.jsx($.Item,{ref:s,className:he("border-b",a),...t}));ye.displayName="AccordionItem";const we=V.forwardRef(({className:a,children:t,...r},o)=>e.jsx($.Header,{className:"flex",children:e.jsxs($.Trigger,{ref:o,className:he("flex flex-1 items-center justify-between py-4 font-medium transition-all [&[data-state=open]>svg]:rotate-180",a),...r,children:[t,e.jsx(s.ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));we.displayName=$.Trigger.displayName;const je=V.forwardRef(({className:a,children:t,...s},r)=>e.jsx($.Content,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...s,children:e.jsx("div",{className:he("pb-4 pt-0",a),children:t})}));je.displayName=$.Content.displayName;const Ce=K.Root,Re=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,className:he("rounded-lg border bg-card text-card-foreground shadow-sm",a),...t}));Re.displayName="Card";const Se=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,className:he("flex flex-col space-y-1.5 p-6",a),...t}));Se.displayName="CardHeader";const ke=V.forwardRef(({className:a,...t},s)=>e.jsx("h3",{ref:s,className:he("text-2xl font-semibold leading-none tracking-tight",a),...t}));ke.displayName="CardTitle";const Te=V.forwardRef(({className:a,...t},s)=>e.jsx("p",{ref:s,className:he("text-sm text-muted-foreground",a),...t}));Te.displayName="CardDescription";const Ie=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,className:he("p-6 pt-0",a),...t}));Ie.displayName="CardContent";const ze=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,className:he("flex items-center p-6 pt-0",a),...t}));ze.displayName="CardFooter";const De=V.forwardRef(({className:a,orientation:t="horizontal",decorative:s=!0,...r},o)=>e.jsx(U.Root,{ref:o,decorative:s,orientation:t,className:he("shrink-0 bg-border","horizontal"===t?"h-[1px] w-full":"h-full w-[1px]",a),...r}));De.displayName=U.Root.displayName;const Me=V.forwardRef(({className:a,children:t,...s},r)=>e.jsxs(X.Root,{ref:r,className:he("relative overflow-hidden",a),...s,children:[e.jsx(X.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),e.jsx(_e,{}),e.jsx(X.Corner,{})]}));Me.displayName=X.Root.displayName;const _e=V.forwardRef(({className:a,orientation:t="vertical",...s},r)=>e.jsx(X.ScrollAreaScrollbar,{ref:r,orientation:t,className:he("flex touch-none select-none transition-colors","vertical"===t&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===t&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",a),...s,children:e.jsx(X.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));_e.displayName=X.ScrollAreaScrollbar.displayName;const Pe=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{className:"relative w-full overflow-auto",children:e.jsx("table",{ref:s,className:he("w-full caption-bottom text-sm",a),...t})}));Pe.displayName="Table";const Ae=V.forwardRef(({className:a,...t},s)=>e.jsx("thead",{ref:s,className:he("[&_tr]:border-b",a),...t}));Ae.displayName="TableHeader";const Oe=V.forwardRef(({className:a,...t},s)=>e.jsx("tbody",{ref:s,className:he("[&_tr:last-child]:border-0",a),...t}));Oe.displayName="TableBody";const Le=V.forwardRef(({className:a,...t},s)=>e.jsx("tfoot",{ref:s,className:he("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",a),...t}));Le.displayName="TableFooter";const qe=V.forwardRef(({className:a,...t},s)=>e.jsx("tr",{ref:s,className:he("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",a),...t}));qe.displayName="TableRow";const Fe=V.forwardRef(({className:a,...t},s)=>e.jsx("th",{ref:s,className:he("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",a),...t}));Fe.displayName="TableHead";const Ge=V.forwardRef(({className:a,...t},s)=>e.jsx("td",{ref:s,className:he("p-4 align-middle [&:has([role=checkbox])]:pr-0",a),...t}));Ge.displayName="TableCell";const Be=V.forwardRef(({className:a,...t},s)=>e.jsx("caption",{ref:s,className:he("mt-4 text-sm text-muted-foreground",a),...t}));Be.displayName="TableCaption";const Ee=W.Panel;const He=m.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background 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 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Ve=V.forwardRef(({className:a,variant:t,size:s,asChild:r=!1,...o},i)=>{const n=r?c.Slot:"button";return e.jsx(n,{className:he(He({variant:t,size:s,className:a})),ref:i,...o})});Ve.displayName="Button";const $e=V.forwardRef(({className:a,type:t,...s},r)=>e.jsx("input",{type:t,className:he("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground 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 md:text-sm",a),ref:r,...s}));$e.displayName="Input";const Ke=J.Root,Ue=J.Trigger,Xe=J.Close,We=J.Portal,Je=V.forwardRef(({className:a,...t},s)=>e.jsx(J.Overlay,{className:he("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",a),...t,ref:s}));Je.displayName=J.Overlay.displayName;const Qe=m.cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Ye=V.forwardRef(({side:a="right",className:t,children:r,...o},i)=>e.jsxs(We,{children:[e.jsx(Je,{}),e.jsxs(J.Content,{ref:i,className:he(Qe({side:a}),t),...o,children:[r,e.jsxs(J.Close,{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 data-[state=open]:bg-secondary",children:[e.jsx(s.X,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ye.displayName=J.Content.displayName;const Ze=({className:a,...t})=>e.jsx("div",{className:he("flex flex-col space-y-2 text-center sm:text-left",a),...t});Ze.displayName="SheetHeader";const ea=({className:a,...t})=>e.jsx("div",{className:he("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",a),...t});ea.displayName="SheetFooter";const aa=V.forwardRef(({className:a,...t},s)=>e.jsx(J.Title,{ref:s,className:he("text-lg font-semibold text-foreground",a),...t}));aa.displayName=J.Title.displayName;const ta=V.forwardRef(({className:a,...t},s)=>e.jsx(J.Description,{ref:s,className:he("text-sm text-muted-foreground",a),...t}));function sa({className:a,...t}){return e.jsx("div",{className:he("animate-pulse rounded-md bg-muted",a),...t})}ta.displayName=J.Description.displayName;const ra=Q.Provider,oa=Q.Root,ia=Q.Trigger,na=V.forwardRef(({className:a,sideOffset:t=4,...s},r)=>e.jsx(Q.Content,{ref:r,sideOffset:t,className:he("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...s}));na.displayName=Q.Content.displayName;const da=V.createContext(null);function la(){const e=V.useContext(da);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}V.forwardRef(({defaultOpen:a=!0,open:t,onOpenChange:s,className:r,style:o,children:i,...n},d)=>{const l=function(){const[e,a]=V.useState(void 0);return V.useEffect(()=>{const e=window.matchMedia("(max-width: 767px)"),t=()=>{a(window.innerWidth<768)};return e.addEventListener("change",t),a(window.innerWidth<768),()=>e.removeEventListener("change",t)},[]),!!e}(),[c,m]=V.useState(!1),[f,p]=V.useState(a),u=t??f,x=V.useCallback(e=>{const a="function"==typeof e?e(u):e;s?s(a):p(a),document.cookie=`sidebar:state=${a}; path=/; max-age=604800`},[s,u]),g=V.useCallback(()=>l?m(e=>!e):x(e=>!e),[l,x,m]);V.useEffect(()=>{const e=e=>{"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),g())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[g]);const b=u?"expanded":"collapsed",N=V.useMemo(()=>({state:b,open:u,setOpen:x,isMobile:l,openMobile:c,setOpenMobile:m,toggleSidebar:g}),[b,u,x,l,c,m,g]);return e.jsx(da.Provider,{value:N,children:e.jsx(ra,{delayDuration:0,children:e.jsx("div",{style:{"--sidebar-width":"16rem","--sidebar-width-icon":"3rem",...o},className:he("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),ref:d,...n,children:i})})})}).displayName="SidebarProvider";const ca=V.forwardRef(({side:a="left",variant:t="sidebar",collapsible:s="offcanvas",className:r,children:o,...i},n)=>{const{isMobile:d,state:l,openMobile:c,setOpenMobile:m}=la();return"none"===s?e.jsx("div",{className:he("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:n,...i,children:o}):d?e.jsx(Ke,{open:c,onOpenChange:m,...i,children:e.jsx(Ye,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":"18rem"},side:a,children:e.jsx("div",{className:"flex h-full w-full flex-col",children:o})})}):e.jsxs("div",{ref:n,className:"group peer hidden md:block text-sidebar-foreground","data-state":l,"data-collapsible":"collapsed"===l?s:"","data-variant":t,"data-side":a,children:[e.jsx("div",{className:he("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===t||"inset"===t?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),e.jsx("div",{className:he("duration-200 fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex","left"===a?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]","floating"===t||"inset"===t?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...i,children:e.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:o})})]})});ca.displayName="Sidebar";V.forwardRef(({className:a,onClick:t,...r},o)=>{const{toggleSidebar:i}=la();return e.jsxs(Ve,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:he("h-7 w-7",a),onClick:e=>{null==t||t(e),i()},...r,children:[e.jsx(s.PanelLeft,{}),e.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}).displayName="SidebarTrigger";V.forwardRef(({className:a,...t},s)=>{const{toggleSidebar:r}=la();return e.jsx("button",{ref:s,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:he("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",a),...t})}).displayName="SidebarRail";V.forwardRef(({className:a,...t},s)=>e.jsx("main",{ref:s,className:he("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",a),...t})).displayName="SidebarInset";V.forwardRef(({className:a,...t},s)=>e.jsx($e,{ref:s,"data-sidebar":"input",className:he("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",a),...t})).displayName="SidebarInput";const ma=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,"data-sidebar":"header",className:he("flex flex-col gap-2 p-2",a),...t}));ma.displayName="SidebarHeader";const fa=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,"data-sidebar":"footer",className:he("flex flex-col gap-2 p-2",a),...t}));fa.displayName="SidebarFooter";V.forwardRef(({className:a,...t},s)=>e.jsx(De,{ref:s,"data-sidebar":"separator",className:he("mx-2 w-auto bg-sidebar-border",a),...t})).displayName="SidebarSeparator";const pa=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,"data-sidebar":"content",className:he("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",a),...t}));pa.displayName="SidebarContent";const ua=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,"data-sidebar":"group",className:he("relative flex w-full min-w-0 flex-col p-2",a),...t}));ua.displayName="SidebarGroup";const xa=V.forwardRef(({className:a,asChild:t=!1,...s},r)=>{const o=t?c.Slot:"div";return e.jsx(o,{ref:r,"data-sidebar":"group-label",className:he("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",a),...s})});xa.displayName="SidebarGroupLabel";V.forwardRef(({className:a,asChild:t=!1,...s},r)=>{const o=t?c.Slot:"button";return e.jsx(o,{ref:r,"data-sidebar":"group-action",className:he("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",a),...s})}).displayName="SidebarGroupAction";const ga=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,"data-sidebar":"group-content",className:he("w-full text-sm",a),...t}));ga.displayName="SidebarGroupContent";const ba=V.forwardRef(({className:a,...t},s)=>e.jsx("ul",{ref:s,"data-sidebar":"menu",className:he("flex w-full min-w-0 flex-col gap-1",a),...t}));ba.displayName="SidebarMenu";const Na=V.forwardRef(({className:a,...t},s)=>e.jsx("li",{ref:s,"data-sidebar":"menu-item",className:he("group/menu-item relative",a),...t}));Na.displayName="SidebarMenuItem";const ha=m.cva("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-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-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),va=V.forwardRef(({asChild:a=!1,isActive:t=!1,variant:s="default",size:r="default",tooltip:o,className:i,...n},d)=>{const l=a?c.Slot:"button",{isMobile:m,state:f}=la(),p=e.jsx(l,{ref:d,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:he(ha({variant:s,size:r}),i),...n});return o?("string"==typeof o&&(o={children:o}),e.jsxs(oa,{children:[e.jsx(ia,{asChild:!0,children:p}),e.jsx(na,{side:"right",align:"center",hidden:"collapsed"!==f||m,...o})]})):p});va.displayName="SidebarMenuButton";V.forwardRef(({className:a,asChild:t=!1,showOnHover:s=!1,...r},o)=>{const i=t?c.Slot:"button";return e.jsx(i,{ref:o,"data-sidebar":"menu-action",className:he("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",s&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",a),...r})}).displayName="SidebarMenuAction";V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,"data-sidebar":"menu-badge",className:he("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a),...t})).displayName="SidebarMenuBadge";V.forwardRef(({className:a,showIcon:t=!1,...s},r)=>{const o=V.useMemo(()=>`${Math.floor(40*Math.random())+50}%`,[]);return e.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:he("rounded-md h-8 flex gap-2 px-2 items-center",a),...s,children:[t&&e.jsx(sa,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),e.jsx(sa,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})}).displayName="SidebarMenuSkeleton";const ya=V.forwardRef(({className:a,...t},s)=>e.jsx("ul",{ref:s,"data-sidebar":"menu-sub",className:he("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",a),...t}));ya.displayName="SidebarMenuSub";const wa=V.forwardRef(({...a},t)=>e.jsx("li",{ref:t,...a}));wa.displayName="SidebarMenuSubItem";const ja=V.forwardRef(({asChild:a=!1,size:t="md",isActive:s,className:r,...o},i)=>{const n=a?c.Slot:"a";return e.jsx(n,{ref:i,"data-sidebar":"menu-sub-button","data-size":t,"data-active":s,className:he("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground","sm"===t&&"text-xs","md"===t&&"text-sm","group-data-[collapsible=icon]:hidden",r),...o})});ja.displayName="SidebarMenuSubButton";const Ca=m.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ra=V.forwardRef(({className:a,...t},s)=>e.jsx(Y.Root,{ref:s,className:he(Ca(),a),...t}));Ra.displayName=Y.Root.displayName;const Sa=V.forwardRef(({className:a,...t},s)=>e.jsx("textarea",{className:he("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background 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",a),ref:s,...t}));Sa.displayName="Textarea";const ka=V.forwardRef(({className:a,...t},r)=>e.jsx(Z.Root,{ref:r,className:he("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",a),...t,children:e.jsx(Z.Indicator,{className:he("flex items-center justify-center text-current"),children:e.jsx(s.Check,{className:"h-4 w-4"})})}));ka.displayName=Z.Root.displayName;const Ta=V.forwardRef(({className:a,...t},s)=>e.jsx(ee.Root,{className:he("grid gap-2",a),...t,ref:s}));Ta.displayName=ee.Root.displayName;const Ia=V.forwardRef(({className:a,...t},r)=>e.jsx(ee.Item,{ref:r,className:he("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",a),...t,children:e.jsx(ee.Indicator,{className:"flex items-center justify-center",children:e.jsx(s.Circle,{className:"h-2.5 w-2.5 fill-current text-current"})})}));Ia.displayName=ee.Item.displayName;const za=V.forwardRef(({className:a,...t},s)=>e.jsx(ae.Root,{className:he("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",a),...t,ref:s,children:e.jsx(ae.Thumb,{className:he("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));za.displayName=ae.Root.displayName;const Da=V.forwardRef(({className:a,...t},s)=>e.jsxs(te.Root,{ref:s,className:he("relative flex w-full touch-none select-none items-center",a),...t,children:[e.jsx(te.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:e.jsx(te.Range,{className:"absolute h-full bg-primary"})}),e.jsx(te.Thumb,{className:"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 disabled:pointer-events-none disabled:opacity-50"})]}));Da.displayName=te.Root.displayName;const Ma=V.forwardRef(({className:a,containerClassName:t,...s},r)=>e.jsx(h.OTPInput,{ref:r,containerClassName:he("flex items-center gap-2 has-[:disabled]:opacity-50",t),className:he("disabled:cursor-not-allowed",a),...s}));Ma.displayName="InputOTP";const _a=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,className:he("flex items-center",a),...t}));_a.displayName="InputOTPGroup";const Pa=V.forwardRef(({index:a,className:t,...s},r)=>{const o=V.useContext(h.OTPInputContext),{char:i,hasFakeCaret:n,isActive:d}=o.slots[a];return e.jsxs("div",{ref:r,className:he("relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",d&&"z-10 ring-2 ring-ring ring-offset-background",t),...s,children:[i,n&&e.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:e.jsx("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})});Pa.displayName="InputOTPSlot";const Aa=V.forwardRef(({...a},t)=>e.jsx("div",{ref:t,role:"separator",...a,children:e.jsx(s.Dot,{})}));Aa.displayName="InputOTPSeparator";const Oa=se.Root,La=se.Group,qa=se.Value,Fa=V.forwardRef(({className:a,children:t,...r},o)=>e.jsxs(se.Trigger,{ref:o,className:he("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",a),...r,children:[t,e.jsx(se.Icon,{asChild:!0,children:e.jsx(s.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Fa.displayName=se.Trigger.displayName;const Ga=V.forwardRef(({className:a,...t},r)=>e.jsx(se.ScrollUpButton,{ref:r,className:he("flex cursor-default items-center justify-center py-1",a),...t,children:e.jsx(s.ChevronUp,{className:"h-4 w-4"})}));Ga.displayName=se.ScrollUpButton.displayName;const Ba=V.forwardRef(({className:a,...t},r)=>e.jsx(se.ScrollDownButton,{ref:r,className:he("flex cursor-default items-center justify-center py-1",a),...t,children:e.jsx(s.ChevronDown,{className:"h-4 w-4"})}));Ba.displayName=se.ScrollDownButton.displayName;const Ea=V.forwardRef(({className:a,children:t,position:s="popper",...r},o)=>e.jsx(se.Portal,{children:e.jsxs(se.Content,{ref:o,className:he("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===s&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:s,...r,children:[e.jsx(Ga,{}),e.jsx(se.Viewport,{className:he("p-1","popper"===s&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),e.jsx(Ba,{})]})}));Ea.displayName=se.Content.displayName;const Ha=V.forwardRef(({className:a,...t},s)=>e.jsx(se.Label,{ref:s,className:he("py-1.5 pl-8 pr-2 text-sm font-semibold",a),...t}));Ha.displayName=se.Label.displayName;const Va=V.forwardRef(({className:a,children:t,...r},o)=>e.jsxs(se.Item,{ref:o,className:he("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...r,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(se.ItemIndicator,{children:e.jsx(s.Check,{className:"h-4 w-4"})})}),e.jsx(se.ItemText,{children:t})]}));Va.displayName=se.Item.displayName;const $a=V.forwardRef(({className:a,...t},s)=>e.jsx(se.Separator,{ref:s,className:he("-mx-1 my-1 h-px bg-muted",a),...t}));$a.displayName=se.Separator.displayName;const Ka=y.FormProvider,Ua=V.createContext({}),Xa=()=>{const e=V.useContext(Ua),a=V.useContext(Wa),{getFieldState:t,formState:s}=y.useFormContext(),r=t(e.name,s);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:o}=a;return{id:o,name:e.name,formItemId:`${o}-form-item`,formDescriptionId:`${o}-form-item-description`,formMessageId:`${o}-form-item-message`,...r}},Wa=V.createContext({}),Ja=V.forwardRef(({className:a,...t},s)=>{const r=V.useId();return e.jsx(Wa.Provider,{value:{id:r},children:e.jsx("div",{ref:s,className:he("space-y-2",a),...t})})});Ja.displayName="FormItem";const Qa=V.forwardRef(({className:a,...t},s)=>{const{error:r,formItemId:o}=Xa();return e.jsx(Ra,{ref:s,className:he(r&&"text-destructive",a),htmlFor:o,...t})});Qa.displayName="FormLabel";const Ya=V.forwardRef(({...a},t)=>{const{error:s,formItemId:r,formDescriptionId:o,formMessageId:i}=Xa();return e.jsx(c.Slot,{ref:t,id:r,"aria-describedby":s?`${o} ${i}`:`${o}`,"aria-invalid":!!s,...a})});Ya.displayName="FormControl";const Za=V.forwardRef(({className:a,...t},s)=>{const{formDescriptionId:r}=Xa();return e.jsx("p",{ref:s,id:r,className:he("text-sm text-muted-foreground",a),...t})});Za.displayName="FormDescription";const et=V.forwardRef(({className:a,children:t,...s},r)=>{const{error:o,formMessageId:i}=Xa(),n=o?String(null==o?void 0:o.message):t;return n?e.jsx("p",{ref:r,id:i,className:he("text-sm font-medium text-destructive",a),...s,children:n}):null});et.displayName="FormMessage";const at=m.cva("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-3",sm:"h-9 px-2.5",lg:"h-11 px-5"}},defaultVariants:{variant:"default",size:"default"}}),tt=V.forwardRef(({className:a,variant:t,size:s,...r},o)=>e.jsx(oe.Root,{ref:o,className:he(at({variant:t,size:s,className:a})),...r}));tt.displayName=oe.Root.displayName;const st=V.createContext({size:"default",variant:"default"}),rt=V.forwardRef(({className:a,variant:t,size:s,children:r,...o},i)=>e.jsx(re.Root,{ref:i,className:he("flex items-center justify-center gap-1",a),...o,children:e.jsx(st.Provider,{value:{variant:t,size:s},children:r})}));rt.displayName=re.Root.displayName;const ot=V.forwardRef(({className:a,children:t,variant:s,size:r,...o},i)=>{const n=V.useContext(st);return e.jsx(re.Item,{ref:i,className:he(at({variant:n.variant||s,size:n.size||r}),a),...o,children:t})});ot.displayName=re.Item.displayName;const it=m.cva("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});const nt=m.cva("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),dt=V.forwardRef(({className:a,variant:t,...s},r)=>e.jsx("div",{ref:r,role:"alert",className:he(nt({variant:t}),a),...s}));dt.displayName="Alert";const lt=V.forwardRef(({className:a,...t},s)=>e.jsx("h5",{ref:s,className:he("mb-1 font-medium leading-none tracking-tight",a),...t}));lt.displayName="AlertTitle";const ct=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,className:he("text-sm [&_p]:leading-relaxed",a),...t}));ct.displayName="AlertDescription";const mt=ie.Root,ft=ie.Trigger,pt=ie.Portal,ut=V.forwardRef(({className:a,...t},s)=>e.jsx(ie.Overlay,{className:he("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",a),...t,ref:s}));ut.displayName=ie.Overlay.displayName;const xt=V.forwardRef(({className:a,...t},s)=>e.jsxs(pt,{children:[e.jsx(ut,{}),e.jsx(ie.Content,{ref:s,className:he("fixed left-[50%] top-[50%] z-50 border-green grid w-full max-w-lg translate-x-[-50%] translate-y-[-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 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",a),...t})]}));xt.displayName=ie.Content.displayName;const gt=({className:a,...t})=>e.jsx("div",{className:he("flex flex-col space-y-2 text-center sm:text-left",a),...t});gt.displayName="AlertDialogHeader";const bt=({className:a,...t})=>e.jsx("div",{className:he("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",a),...t});bt.displayName="AlertDialogFooter";const Nt=V.forwardRef(({className:a,...t},s)=>e.jsx(ie.Title,{ref:s,className:he("text-lg font-semibold",a),...t}));Nt.displayName=ie.Title.displayName;const ht=V.forwardRef(({className:a,...t},s)=>e.jsx(ie.Description,{ref:s,className:he("text-sm text-muted-foreground",a),...t}));ht.displayName=ie.Description.displayName;const vt=V.forwardRef(({className:a,...t},s)=>e.jsx(ie.Action,{ref:s,className:he(He(),a),...t}));vt.displayName=ie.Action.displayName;const yt=V.forwardRef(({className:a,...t},s)=>e.jsx(ie.Cancel,{ref:s,className:he(He({variant:"outline"}),"mt-2 sm:mt-0",a),...t}));yt.displayName=ie.Cancel.displayName;const wt=V.forwardRef(({className:a,...t},s)=>e.jsx(ne.Root,{ref:s,className:he("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",a),...t}));wt.displayName=ne.Root.displayName;const jt=V.forwardRef(({className:a,...t},s)=>e.jsx(ne.Image,{ref:s,className:he("aspect-square h-full w-full",a),...t}));jt.displayName=ne.Image.displayName;const Ct=V.forwardRef(({className:a,...t},s)=>e.jsx(ne.Fallback,{ref:s,className:he("flex h-full w-full items-center justify-center rounded-full bg-muted",a),...t}));Ct.displayName=ne.Fallback.displayName;const Rt=V.forwardRef(({...a},t)=>e.jsx("nav",{ref:t,"aria-label":"breadcrumb",...a}));Rt.displayName="Breadcrumb";const St=V.forwardRef(({className:a,...t},s)=>e.jsx("ol",{ref:s,className:he("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",a),...t}));St.displayName="BreadcrumbList";const kt=V.forwardRef(({className:a,...t},s)=>e.jsx("li",{ref:s,className:he("inline-flex items-center gap-1.5",a),...t}));kt.displayName="BreadcrumbItem";const Tt=V.forwardRef(({asChild:a,className:t,...s},r)=>{const o=a?c.Slot:"a";return e.jsx(o,{ref:r,className:he("transition-colors hover:text-foreground",t),...s})});Tt.displayName="BreadcrumbLink";const It=V.forwardRef(({className:a,...t},s)=>e.jsx("span",{ref:s,role:"link","aria-disabled":"true","aria-current":"page",className:he("font-normal text-foreground",a),...t}));It.displayName="BreadcrumbPage";const zt=({children:a,className:t,...r})=>e.jsx("li",{role:"presentation","aria-hidden":"true",className:he("[&>svg]:size-3.5",t),...r,children:a??e.jsx(s.ChevronRight,{})});zt.displayName="BreadcrumbSeparator";const Dt=V.forwardRef(({className:a,value:t,...s},r)=>e.jsx(de.Root,{ref:r,className:he("relative h-4 w-full overflow-hidden rounded-full bg-secondary",a),...s,children:e.jsx(de.Indicator,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));function Mt({className:a,classNames:t,showOutsideDays:r=!0,...o}){return e.jsx(k.DayPicker,{showOutsideDays:r,className:he("p-3",a),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:he(He({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:he(He({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{Chevron:a=>"left"===a.orientation?e.jsx(s.ChevronLeft,{className:"h-4 w-4"}):e.jsx(s.ChevronRight,{className:"h-4 w-4"})},...o})}Dt.displayName=de.Root.displayName,Mt.displayName="Calendar";const _t=le.Root,Pt=V.forwardRef(({className:a,...t},s)=>e.jsx(le.List,{ref:s,className:he("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",a),...t}));Pt.displayName=le.List.displayName;const At=V.forwardRef(({className:a,...t},s)=>e.jsx(le.Trigger,{ref:s,className:he("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm 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 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",a),...t}));At.displayName=le.Trigger.displayName;const Ot=V.forwardRef(({className:a,...t},s)=>e.jsx(le.Content,{ref:s,className:he("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",a),...t}));Ot.displayName=le.Content.displayName;const Lt=({className:a,...t})=>e.jsx("nav",{role:"navigation","aria-label":"pagination",className:he("mx-auto flex w-full justify-center",a),...t});Lt.displayName="Pagination";const qt=V.forwardRef(({className:a,...t},s)=>e.jsx("ul",{ref:s,className:he("flex flex-row items-center gap-1",a),...t}));qt.displayName="PaginationContent";const Ft=V.forwardRef(({className:a,...t},s)=>e.jsx("li",{ref:s,className:he("",a),...t}));Ft.displayName="PaginationItem";const Gt=({className:a,isActive:t,size:s="icon",...r})=>e.jsx("a",{"aria-current":t?"page":void 0,className:he(He({variant:t?"outline":"ghost",size:s}),a),...r});Gt.displayName="PaginationLink";const Bt=({className:a,...t})=>e.jsxs(Gt,{"aria-label":"Go to previous page",size:"default",className:he("gap-1 pl-2.5",a),...t,children:[e.jsx(s.ChevronLeft,{className:"h-4 w-4"}),e.jsx("span",{children:"Previous"})]});Bt.displayName="PaginationPrevious";const Et=({className:a,...t})=>e.jsxs(Gt,{"aria-label":"Go to next page",size:"default",className:he("gap-1 pr-2.5",a),...t,children:[e.jsx("span",{children:"Next"}),e.jsx(s.ChevronRight,{className:"h-4 w-4"})]});Et.displayName="PaginationNext";const Ht=({className:a,...t})=>e.jsxs("span",{"aria-hidden":!0,className:he("flex h-9 w-9 items-center justify-center",a),...t,children:[e.jsx(s.MoreHorizontal,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"More pages"})]});Ht.displayName="PaginationEllipsis";const Vt=V.forwardRef(({className:a,children:t,...s},r)=>e.jsxs(ce.Root,{ref:r,className:he("relative z-10 flex max-w-max flex-1 items-center justify-center",a),...s,children:[t,e.jsx(Qt,{})]}));Vt.displayName=ce.Root.displayName;const $t=V.forwardRef(({className:a,...t},s)=>e.jsx(ce.List,{ref:s,className:he("group flex flex-1 list-none items-center justify-center space-x-1",a),...t}));$t.displayName=ce.List.displayName;const Kt=ce.Item,Ut=m.cva("group inline-flex h-10 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-[active]:bg-accent/50 data-[state=open]:bg-accent/50"),Xt=V.forwardRef(({className:a,children:t,...r},o)=>e.jsxs(ce.Trigger,{ref:o,className:he(Ut(),"group",a),...r,children:[t," ",e.jsx(s.ChevronDown,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));Xt.displayName=ce.Trigger.displayName;const Wt=V.forwardRef(({className:a,...t},s)=>e.jsx(ce.Content,{ref:s,className:he("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",a),...t}));Wt.displayName=ce.Content.displayName;const Jt=ce.Link,Qt=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{className:he("absolute left-0 top-full flex justify-center"),children:e.jsx(ce.Viewport,{className:he("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",a),ref:s,...t})}));Qt.displayName=ce.Viewport.displayName;V.forwardRef(({className:a,...t},s)=>e.jsx(ce.Indicator,{ref:s,className:he("top-full z-[1] flex h-1.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",a),...t,children:e.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})})).displayName=ce.Indicator.displayName;const Yt=me.Menu,Zt=me.Sub,es=me.RadioGroup,as=V.forwardRef(({className:a,...t},s)=>e.jsx(me.Root,{ref:s,className:he("flex h-10 items-center space-x-1 rounded-md border bg-background p-1",a),...t}));as.displayName=me.Root.displayName;const ts=V.forwardRef(({className:a,...t},s)=>e.jsx(me.Trigger,{ref:s,className:he("flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",a),...t}));ts.displayName=me.Trigger.displayName;const ss=V.forwardRef(({className:a,inset:t,children:r,...o},i)=>e.jsxs(me.SubTrigger,{ref:i,className:he("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",a),...o,children:[r,e.jsx(s.ChevronRight,{className:"ml-auto h-4 w-4"})]}));ss.displayName=me.SubTrigger.displayName;const rs=V.forwardRef(({className:a,...t},s)=>e.jsx(me.SubContent,{ref:s,className:he("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...t}));rs.displayName=me.SubContent.displayName;const os=V.forwardRef(({className:a,align:t="start",alignOffset:s=-4,sideOffset:r=8,...o},i)=>e.jsx(me.Portal,{children:e.jsx(me.Content,{ref:i,align:t,alignOffset:s,sideOffset:r,className:he("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...o})}));os.displayName=me.Content.displayName;const is=V.forwardRef(({className:a,inset:t,...s},r)=>e.jsx(me.Item,{ref:r,className:he("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",a),...s}));is.displayName=me.Item.displayName;const ns=V.forwardRef(({className:a,children:t,checked:r,...o},i)=>e.jsxs(me.CheckboxItem,{ref:i,className:he("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),checked:r,...o,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(me.ItemIndicator,{children:e.jsx(s.Check,{className:"h-4 w-4"})})}),t]}));ns.displayName=me.CheckboxItem.displayName;const ds=V.forwardRef(({className:a,children:t,...r},o)=>e.jsxs(me.RadioItem,{ref:o,className:he("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...r,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(me.ItemIndicator,{children:e.jsx(s.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));ds.displayName=me.RadioItem.displayName;const ls=V.forwardRef(({className:a,inset:t,...s},r)=>e.jsx(me.Label,{ref:r,className:he("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",a),...s}));ls.displayName=me.Label.displayName;const cs=V.forwardRef(({className:a,...t},s)=>e.jsx(me.Separator,{ref:s,className:he("-mx-1 my-1 h-px bg-muted",a),...t}));cs.displayName=me.Separator.displayName;const ms=({className:a,...t})=>e.jsx("span",{className:he("ml-auto text-xs tracking-widest text-muted-foreground",a),...t});ms.displayname="MenubarShortcut";const fs=fe.Root,ps=fe.Trigger,us=fe.Group,xs=fe.Portal,gs=fe.Sub,bs=fe.RadioGroup,Ns=V.forwardRef(({className:a,inset:t,children:r,...o},i)=>e.jsxs(fe.SubTrigger,{ref:i,className:he("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",a),...o,children:[r,e.jsx(s.ChevronRight,{className:"ml-auto h-4 w-4"})]}));Ns.displayName=fe.SubTrigger.displayName;const hs=V.forwardRef(({className:a,...t},s)=>e.jsx(fe.SubContent,{ref:s,className:he("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...t}));hs.displayName=fe.SubContent.displayName;const vs=V.forwardRef(({className:a,sideOffset:t=4,...s},r)=>e.jsx(fe.Portal,{children:e.jsx(fe.Content,{ref:r,sideOffset:t,className:he("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...s})}));vs.displayName=fe.Content.displayName;const ys=V.forwardRef(({className:a,inset:t,...s},r)=>e.jsx(fe.Item,{ref:r,className:he("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",a),...s}));ys.displayName=fe.Item.displayName;const ws=V.forwardRef(({className:a,children:t,checked:r,...o},i)=>e.jsxs(fe.CheckboxItem,{ref:i,className:he("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),checked:r,...o,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(fe.ItemIndicator,{children:e.jsx(s.Check,{className:"h-4 w-4"})})}),t]}));ws.displayName=fe.CheckboxItem.displayName;const js=V.forwardRef(({className:a,children:t,...r},o)=>e.jsxs(fe.RadioItem,{ref:o,className:he("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...r,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(fe.ItemIndicator,{children:e.jsx(s.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));js.displayName=fe.RadioItem.displayName;const Cs=V.forwardRef(({className:a,inset:t,...s},r)=>e.jsx(fe.Label,{ref:r,className:he("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",a),...s}));Cs.displayName=fe.Label.displayName;const Rs=V.forwardRef(({className:a,...t},s)=>e.jsx(fe.Separator,{ref:s,className:he("-mx-1 my-1 h-px bg-muted",a),...t}));Rs.displayName=fe.Separator.displayName;const Ss=({className:a,...t})=>e.jsx("span",{className:he("ml-auto text-xs tracking-widest opacity-60",a),...t});Ss.displayName="DropdownMenuShortcut";const ks=J.Root,Ts=J.Trigger,Is=J.Portal,zs=J.Close,Ds=V.forwardRef(({className:a,...t},s)=>e.jsx(J.Overlay,{ref:s,className:he("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",a),...t}));Ds.displayName=J.Overlay.displayName;const Ms=V.forwardRef(({className:a,children:t,...r},o)=>e.jsxs(Is,{children:[e.jsx(Ds,{}),e.jsxs(J.Content,{ref:o,className:he("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-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 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",a),...r,children:[t,e.jsxs(J.Close,{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 data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[e.jsx(s.X,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ms.displayName=J.Content.displayName;const _s=({className:a,...t})=>e.jsx("div",{className:he("flex flex-col space-y-1.5 text-center sm:text-left",a),...t});_s.displayName="DialogHeader";const Ps=({className:a,...t})=>e.jsx("div",{className:he("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",a),...t});Ps.displayName="DialogFooter";const As=V.forwardRef(({className:a,...t},s)=>e.jsx(J.Title,{ref:s,className:he("text-lg font-semibold leading-none tracking-tight",a),...t}));As.displayName=J.Title.displayName;const Os=V.forwardRef(({className:a,...t},s)=>e.jsx(J.Description,{ref:s,className:he("text-sm text-muted-foreground",a),...t}));Os.displayName=J.Description.displayName;const Ls=({shouldScaleBackground:a=!0,...t})=>e.jsx(M.Drawer.Root,{shouldScaleBackground:a,...t});Ls.displayName="Drawer";const qs=M.Drawer.Trigger,Fs=M.Drawer.Portal,Gs=M.Drawer.Close,Bs=V.forwardRef(({className:a,...t},s)=>e.jsx(M.Drawer.Overlay,{ref:s,className:he("fixed inset-0 z-50 bg-black/80",a),...t}));Bs.displayName=M.Drawer.Overlay.displayName;const Es=V.forwardRef(({className:a,children:t,...s},r)=>e.jsxs(Fs,{children:[e.jsx(Bs,{}),e.jsxs(M.Drawer.Content,{ref:r,className:he("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",a),...s,children:[e.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));Es.displayName="DrawerContent";const Hs=({className:a,...t})=>e.jsx("div",{className:he("grid gap-1.5 p-4 text-center sm:text-left",a),...t});Hs.displayName="DrawerHeader";const Vs=({className:a,...t})=>e.jsx("div",{className:he("mt-auto flex flex-col gap-2 p-4",a),...t});Vs.displayName="DrawerFooter";const $s=V.forwardRef(({className:a,...t},s)=>e.jsx(M.Drawer.Title,{ref:s,className:he("text-lg font-semibold leading-none tracking-tight",a),...t}));$s.displayName=M.Drawer.Title.displayName;const Ks=V.forwardRef(({className:a,...t},s)=>e.jsx(M.Drawer.Description,{ref:s,className:he("text-sm text-muted-foreground",a),...t}));Ks.displayName=M.Drawer.Description.displayName;const Us=pe.Root,Xs=pe.Trigger,Ws=V.forwardRef(({className:a,align:t="center",sideOffset:s=4,...r},o)=>e.jsx(pe.Portal,{children:e.jsx(pe.Content,{ref:o,align:t,sideOffset:s,className:he("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...r})}));Ws.displayName=pe.Content.displayName;const Js=ue.Root,Qs=ue.Trigger,Ys=V.forwardRef(({className:a,align:t="center",sideOffset:s=4,...r},o)=>e.jsx(ue.Content,{ref:o,align:t,sideOffset:s,className:he("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...r}));Ys.displayName=ue.Content.displayName;const Zs=xe.Root,er=xe.Trigger,ar=xe.Group,tr=xe.Portal,sr=xe.Sub,rr=xe.RadioGroup,or=V.forwardRef(({className:a,inset:t,children:r,...o},i)=>e.jsxs(xe.SubTrigger,{ref:i,className:he("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",a),...o,children:[r,e.jsx(s.ChevronRight,{className:"ml-auto h-4 w-4"})]}));or.displayName=xe.SubTrigger.displayName;const ir=V.forwardRef(({className:a,...t},s)=>e.jsx(xe.SubContent,{ref:s,className:he("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...t}));ir.displayName=xe.SubContent.displayName;const nr=V.forwardRef(({className:a,...t},s)=>e.jsx(xe.Portal,{children:e.jsx(xe.Content,{ref:s,className:he("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...t})}));nr.displayName=xe.Content.displayName;const dr=V.forwardRef(({className:a,inset:t,...s},r)=>e.jsx(xe.Item,{ref:r,className:he("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",a),...s}));dr.displayName=xe.Item.displayName;const lr=V.forwardRef(({className:a,children:t,checked:r,...o},i)=>e.jsxs(xe.CheckboxItem,{ref:i,className:he("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),checked:r,...o,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(xe.ItemIndicator,{children:e.jsx(s.Check,{className:"h-4 w-4"})})}),t]}));lr.displayName=xe.CheckboxItem.displayName;const cr=V.forwardRef(({className:a,children:t,...r},o)=>e.jsxs(xe.RadioItem,{ref:o,className:he("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...r,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(xe.ItemIndicator,{children:e.jsx(s.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));cr.displayName=xe.RadioItem.displayName;const mr=V.forwardRef(({className:a,inset:t,...s},r)=>e.jsx(xe.Label,{ref:r,className:he("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",a),...s}));mr.displayName=xe.Label.displayName;const fr=V.forwardRef(({className:a,...t},s)=>e.jsx(xe.Separator,{ref:s,className:he("-mx-1 my-1 h-px bg-border",a),...t}));fr.displayName=xe.Separator.displayName;const pr=({className:a,...t})=>e.jsx("span",{className:he("ml-auto text-xs tracking-widest text-muted-foreground",a),...t});pr.displayName="ContextMenuShortcut";const ur=V.createContext(null);function xr(){const e=V.useContext(ur);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const gr=V.forwardRef(({orientation:a="horizontal",opts:t,setApi:s,plugins:r,className:o,children:i,...n},d)=>{const[l,c]=O({...t,axis:"horizontal"===a?"x":"y"},r),[m,f]=V.useState(!1),[p,u]=V.useState(!1),x=V.useCallback(e=>{e&&(f(e.canScrollPrev()),u(e.canScrollNext()))},[]),g=V.useCallback(()=>{null==c||c.scrollPrev()},[c]),b=V.useCallback(()=>{null==c||c.scrollNext()},[c]),N=V.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),g()):"ArrowRight"===e.key&&(e.preventDefault(),b())},[g,b]);return V.useEffect(()=>{c&&s&&s(c)},[c,s]),V.useEffect(()=>{if(c)return x(c),c.on("reInit",x),c.on("select",x),()=>{null==c||c.off("select",x)}},[c,x]),e.jsx(ur.Provider,{value:{carouselRef:l,api:c,opts:t,orientation:a||("y"===(null==t?void 0:t.axis)?"vertical":"horizontal"),scrollPrev:g,scrollNext:b,canScrollPrev:m,canScrollNext:p},children:e.jsx("div",{ref:d,onKeyDownCapture:N,className:he("relative",o),role:"region","aria-roledescription":"carousel",...n,children:i})})});gr.displayName="Carousel";const br=V.forwardRef(({className:a,...t},s)=>{const{carouselRef:r,orientation:o}=xr();return e.jsx("div",{ref:r,className:"overflow-hidden",children:e.jsx("div",{ref:s,className:he("flex","horizontal"===o?"-ml-4":"-mt-4 flex-col",a),...t})})});br.displayName="CarouselContent";const Nr=V.forwardRef(({className:a,...t},s)=>{const{orientation:r}=xr();return e.jsx("div",{ref:s,role:"group","aria-roledescription":"slide",className:he("min-w-0 shrink-0 grow-0 basis-full","horizontal"===r?"pl-4":"pt-4",a),...t})});Nr.displayName="CarouselItem";const hr=V.forwardRef(({className:a,variant:t="outline",size:r="icon",...o},i)=>{const{orientation:n,scrollPrev:d,canScrollPrev:l}=xr();return e.jsxs(Ve,{ref:i,variant:t,size:r,className:he("absolute h-8 w-8 rounded-full","horizontal"===n?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",a),disabled:!l,onClick:d,...o,children:[e.jsx(s.ArrowLeft,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Previous slide"})]})});hr.displayName="CarouselPrevious";const vr=V.forwardRef(({className:a,variant:t="outline",size:r="icon",...o},i)=>{const{orientation:n,scrollNext:d,canScrollNext:l}=xr();return e.jsxs(Ve,{ref:i,variant:t,size:r,className:he("absolute h-8 w-8 rounded-full","horizontal"===n?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",a),disabled:!l,onClick:d,...o,children:[e.jsx(s.ArrowRight,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Next slide"})]})});vr.displayName="CarouselNext";const yr=ge.Root,wr=ge.CollapsibleTrigger,jr=ge.CollapsibleContent,Cr=V.forwardRef(({className:a,...t},s)=>e.jsx(q.Command,{ref:s,className:he("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",a),...t}));Cr.displayName=q.Command.displayName;const Rr=V.forwardRef(({className:a,...t},r)=>e.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[e.jsx(s.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),e.jsx(q.Command.Input,{ref:r,className:he("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",a),...t})]}));Rr.displayName=q.Command.Input.displayName;const Sr=V.forwardRef(({className:a,...t},s)=>e.jsx(q.Command.List,{ref:s,className:he("max-h-[300px] overflow-y-auto overflow-x-hidden",a),...t}));Sr.displayName=q.Command.List.displayName;const kr=V.forwardRef((a,t)=>e.jsx(q.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...a}));kr.displayName=q.Command.Empty.displayName;const Tr=V.forwardRef(({className:a,...t},s)=>e.jsx(q.Command.Group,{ref:s,className:he("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",a),...t}));Tr.displayName=q.Command.Group.displayName;const Ir=V.forwardRef(({className:a,...t},s)=>e.jsx(q.Command.Separator,{ref:s,className:he("-mx-1 h-px bg-border",a),...t}));Ir.displayName=q.Command.Separator.displayName;const zr=V.forwardRef(({className:a,...t},s)=>e.jsx(q.Command.Item,{ref:s,className:he("relative flex cursor-default select-none items-center 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",a),...t}));zr.displayName=q.Command.Item.displayName;const Dr=({className:a,...t})=>e.jsx("span",{className:he("ml-auto text-xs tracking-widest text-muted-foreground",a),...t});Dr.displayName="CommandShortcut";const Mr=be.Provider,_r=V.forwardRef(({className:a,...t},s)=>e.jsx(be.Viewport,{ref:s,className:he("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",a),...t}));_r.displayName=be.Viewport.displayName;const Pr=m.cva("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Ar=V.forwardRef(({className:a,variant:t,...s},r)=>e.jsx(be.Root,{ref:r,className:he(Pr({variant:t}),a),...s}));Ar.displayName=be.Root.displayName;const Or=V.forwardRef(({className:a,...t},s)=>e.jsx(be.Action,{ref:s,className:he("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",a),...t}));Or.displayName=be.Action.displayName;const Lr=V.forwardRef(({className:a,...t},r)=>e.jsx(be.Close,{ref:r,className:he("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",a),"toast-close":"",...t,children:e.jsx(s.X,{className:"h-4 w-4"})}));Lr.displayName=be.Close.displayName;const qr=V.forwardRef(({className:a,...t},s)=>e.jsx(be.Title,{ref:s,className:he("text-sm font-semibold",a),...t}));qr.displayName=be.Title.displayName;const Fr=V.forwardRef(({className:a,...t},s)=>e.jsx(be.Description,{ref:s,className:he("text-sm opacity-90",a),...t}));Fr.displayName=be.Description.displayName;let Gr=0;const Br=new Map,Er=e=>{if(Br.has(e))return;const a=setTimeout(()=>{Br.delete(e),Kr({type:"REMOVE_TOAST",toastId:e})},1e6);Br.set(e,a)},Hr=(e,a)=>{switch(a.type){case"ADD_TOAST":return{...e,toasts:[a.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===a.toast.id?{...e,...a.toast}:e)};case"DISMISS_TOAST":{const{toastId:t}=a;return t?Er(t):e.toasts.forEach(e=>{Er(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===t||void 0===t?{...e,open:!1}:e)}}case"REMOVE_TOAST":return void 0===a.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==a.toastId)}}},Vr=[];let $r={toasts:[]};function Kr(e){$r=Hr($r,e),Vr.forEach(e=>{e($r)})}function Ur({...e}){const a=(Gr=(Gr+1)%Number.MAX_SAFE_INTEGER,Gr.toString()),t=()=>Kr({type:"DISMISS_TOAST",toastId:a});return Kr({type:"ADD_TOAST",toast:{...e,id:a,open:!0,onOpenChange:e=>{e||t()}}}),{id:a,dismiss:t,update:e=>Kr({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function Xr(){const[e,a]=V.useState($r);return V.useEffect(()=>(Vr.push(a),()=>{const e=Vr.indexOf(a);e>-1&&Vr.splice(e,1)}),[e]),{...e,toast:Ur,dismiss:e=>Kr({type:"DISMISS_TOAST",toastId:e})}}const Wr={light:"",dark:".dark"},Jr=V.createContext(null);function Qr(){const e=V.useContext(Jr);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const Yr=V.forwardRef(({id:a,className:t,children:s,config:r,...o},i)=>{const n=V.useId(),d=`chart-${a||n.replace(/:/g,"")}`;return e.jsx(Jr.Provider,{value:{config:r},children:e.jsxs("div",{"data-chart":d,ref:i,className:he("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",t),...o,children:[e.jsx(Zr,{id:d,config:r}),e.jsx(Ne.ResponsiveContainer,{children:s})]})})});Yr.displayName="Chart";const Zr=({id:a,config:t})=>{const s=Object.entries(t).filter(([e,a])=>a.theme||a.color);return s.length?e.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(Wr).map(([e,t])=>`\n${t} [data-chart=${a}] {\n${s.map(([a,t])=>{var s;const r=(null==(s=t.theme)?void 0:s[e])||t.color;return r?` --color-${a}: ${r};`:null}).join("\n")}\n}\n`).join("\n")}}):null},eo=Ne.Tooltip,ao=V.forwardRef(({active:a,payload:t,className:s,indicator:r="dot",hideLabel:o=!1,hideIndicator:i=!1,label:n,labelFormatter:d,labelClassName:l,formatter:c,color:m,nameKey:f,labelKey:p},u)=>{const{config:x}=Qr(),g=V.useMemo(()=>{var a;if(o||!(null==t?void 0:t.length))return null;const[s]=t,r=`${p||s.dataKey||s.name||"value"}`,i=so(x,s,r),c=p||"string"!=typeof n?null==i?void 0:i.label:(null==(a=x[n])?void 0:a.label)||n;return d?e.jsx("div",{className:he("font-medium",l),children:d(c,t)}):c?e.jsx("div",{className:he("font-medium",l),children:c}):null},[n,d,t,o,l,x,p]);if(!a||!(null==t?void 0:t.length))return null;const b=1===t.length&&"dot"!==r;return e.jsxs("div",{ref:u,className:he("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",s),children:[b?null:g,e.jsx("div",{className:"grid gap-1.5",children:t.map((a,t)=>{const s=`${f||a.name||a.dataKey||"value"}`,o=so(x,a,s),n=m||a.payload.fill||a.color;return e.jsx("div",{className:he("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===r&&"items-center"),children:c&&void 0!==(null==a?void 0:a.value)&&a.name?c(a.value,a.name,a,t,a.payload):e.jsxs(e.Fragment,{children:[(null==o?void 0:o.icon)?e.jsx(o.icon,{}):!i&&e.jsx("div",{className:he("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":"dot"===r,"w-1":"line"===r,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===r,"my-0.5":b&&"dashed"===r}),style:{"--color-bg":n,"--color-border":n}}),e.jsxs("div",{className:he("flex flex-1 justify-between leading-none",b?"items-end":"items-center"),children:[e.jsxs("div",{className:"grid gap-1.5",children:[b?g:null,e.jsx("span",{className:"text-muted-foreground",children:(null==o?void 0:o.label)||a.name})]}),a.value&&e.jsx("span",{className:"font-mono font-medium tabular-nums text-foreground",children:a.value.toLocaleString()})]})]})},a.dataKey)})})]})});ao.displayName="ChartTooltip";const to=Ne.Legend;function so(e,a,t){if("object"!=typeof a||null===a)return;const s="payload"in a&&"object"==typeof a.payload&&null!==a.payload?a.payload:void 0;let r=t;return t in a&&"string"==typeof a[t]?r=a[t]:s&&t in s&&"string"==typeof s[t]&&(r=s[t]),r in e?e[r]:e[t]}V.forwardRef(({className:a,hideIcon:t=!1,payload:s,verticalAlign:r="bottom",nameKey:o},i)=>{const{config:n}=Qr();return(null==s?void 0:s.length)?e.jsx("div",{ref:i,className:he("flex items-center justify-center gap-4","top"===r?"pb-3":"pt-3",a),children:s.map(a=>{const s=`${o||a.dataKey||"value"}`,r=so(n,a,s);return e.jsxs("div",{className:he("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[(null==r?void 0:r.icon)&&!t?e.jsx(r.icon,{}):e.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:a.color}}),null==r?void 0:r.label]},a.value)})}):null}).displayName="ChartLegend";exports.Accordion=ve,exports.AccordionContent=je,exports.AccordionItem=ye,exports.AccordionTrigger=we,exports.Alert=dt,exports.AlertDescription=ct,exports.AlertDialog=mt,exports.AlertDialogAction=vt,exports.AlertDialogCancel=yt,exports.AlertDialogContent=xt,exports.AlertDialogDescription=ht,exports.AlertDialogFooter=bt,exports.AlertDialogHeader=gt,exports.AlertDialogTitle=Nt,exports.AlertDialogTrigger=ft,exports.AlertTitle=lt,exports.AspectRatio=Ce,exports.Avatar=wt,exports.AvatarFallback=Ct,exports.AvatarImage=jt,exports.Badge=function({className:a,variant:t,...s}){return e.jsx("div",{className:he(it({variant:t}),a),...s})},exports.Breadcrumb=Rt,exports.BreadcrumbItem=kt,exports.BreadcrumbLink=Tt,exports.BreadcrumbList=St,exports.BreadcrumbPage=It,exports.BreadcrumbSeparator=zt,exports.Button=Ve,exports.Calendar=Mt,exports.Card=Re,exports.CardContent=Ie,exports.CardDescription=Te,exports.CardFooter=ze,exports.CardHeader=Se,exports.CardTitle=ke,exports.Carousel=gr,exports.CarouselContent=br,exports.CarouselItem=Nr,exports.CarouselNext=vr,exports.CarouselPrevious=hr,exports.ChartContainer=Yr,exports.ChartLegend=to,exports.ChartStyle=Zr,exports.ChartTooltip=eo,exports.ChartTooltipContent=ao,exports.Checkbox=ka,exports.Collapsible=yr,exports.CollapsibleContent=jr,exports.CollapsibleTrigger=wr,exports.Command=Cr,exports.CommandDialog=({children:a,...t})=>e.jsx(ks,{...t,children:e.jsx(Ms,{className:"overflow-hidden p-0 shadow-lg",children:e.jsx(Cr,{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:a})})}),exports.CommandEmpty=kr,exports.CommandGroup=Tr,exports.CommandInput=Rr,exports.CommandItem=zr,exports.CommandList=Sr,exports.CommandSeparator=Ir,exports.CommandShortcut=Dr,exports.ContextMenu=Zs,exports.ContextMenuCheckboxItem=lr,exports.ContextMenuContent=nr,exports.ContextMenuGroup=ar,exports.ContextMenuItem=dr,exports.ContextMenuLabel=mr,exports.ContextMenuPortal=tr,exports.ContextMenuRadioGroup=rr,exports.ContextMenuRadioItem=cr,exports.ContextMenuSeparator=fr,exports.ContextMenuShortcut=pr,exports.ContextMenuSub=sr,exports.ContextMenuSubContent=ir,exports.ContextMenuSubTrigger=or,exports.ContextMenuTrigger=er,exports.Dialog=ks,exports.DialogClose=zs,exports.DialogContent=Ms,exports.DialogDescription=Os,exports.DialogFooter=Ps,exports.DialogHeader=_s,exports.DialogTitle=As,exports.DialogTrigger=Ts,exports.Drawer=Ls,exports.DrawerClose=Gs,exports.DrawerContent=Es,exports.DrawerDescription=Ks,exports.DrawerFooter=Vs,exports.DrawerHeader=Hs,exports.DrawerTitle=$s,exports.DrawerTrigger=qs,exports.DropdownMenu=fs,exports.DropdownMenuCheckboxItem=ws,exports.DropdownMenuContent=vs,exports.DropdownMenuGroup=us,exports.DropdownMenuItem=ys,exports.DropdownMenuLabel=Cs,exports.DropdownMenuPortal=xs,exports.DropdownMenuRadioGroup=bs,exports.DropdownMenuRadioItem=js,exports.DropdownMenuSeparator=Rs,exports.DropdownMenuShortcut=Ss,exports.DropdownMenuSub=gs,exports.DropdownMenuSubContent=hs,exports.DropdownMenuSubTrigger=Ns,exports.DropdownMenuTrigger=ps,exports.Form=Ka,exports.FormControl=Ya,exports.FormDescription=Za,exports.FormField=({...a})=>e.jsx(Ua.Provider,{value:{name:a.name},children:e.jsx(y.Controller,{...a})}),exports.FormItem=Ja,exports.FormLabel=Qa,exports.FormMessage=et,exports.HoverCard=Js,exports.HoverCardContent=Ys,exports.HoverCardTrigger=Qs,exports.Input=$e,exports.InputOTP=Ma,exports.InputOTPGroup=_a,exports.InputOTPSeparator=Aa,exports.InputOTPSlot=Pa,exports.Label=Ra,exports.Menubar=as,exports.MenubarCheckboxItem=ns,exports.MenubarContent=os,exports.MenubarItem=is,exports.MenubarLabel=ls,exports.MenubarMenu=Yt,exports.MenubarRadioGroup=es,exports.MenubarRadioItem=ds,exports.MenubarSeparator=cs,exports.MenubarShortcut=ms,exports.MenubarSub=Zt,exports.MenubarSubContent=rs,exports.MenubarSubTrigger=ss,exports.MenubarTrigger=ts,exports.NavigationMenu=Vt,exports.NavigationMenuContent=Wt,exports.NavigationMenuItem=Kt,exports.NavigationMenuLink=Jt,exports.NavigationMenuList=$t,exports.NavigationMenuTrigger=Xt,exports.Pagination=Lt,exports.PaginationContent=qt,exports.PaginationEllipsis=Ht,exports.PaginationItem=Ft,exports.PaginationLink=Gt,exports.PaginationNext=Et,exports.PaginationPrevious=Bt,exports.Popover=Us,exports.PopoverContent=Ws,exports.PopoverTrigger=Xs,exports.Progress=Dt,exports.RadioGroup=Ta,exports.RadioGroupItem=Ia,exports.ResizableHandle=({withHandle:a,className:t,...r})=>e.jsx(W.PanelResizeHandle,{className:he("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),...r,children:a&&e.jsx("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:e.jsx(s.GripVertical,{className:"h-2.5 w-2.5"})})}),exports.ResizablePanel=Ee,exports.ResizablePanelGroup=({className:a,...t})=>e.jsx(W.PanelGroup,{className:he("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",a),...t}),exports.ScrollArea=Me,exports.ScrollBar=_e,exports.Select=Oa,exports.SelectContent=Ea,exports.SelectGroup=La,exports.SelectItem=Va,exports.SelectLabel=Ha,exports.SelectScrollDownButton=Ba,exports.SelectScrollUpButton=Ga,exports.SelectSeparator=$a,exports.SelectTrigger=Fa,exports.SelectValue=qa,exports.Separator=De,exports.Sheet=Ke,exports.SheetClose=Xe,exports.SheetContent=Ye,exports.SheetDescription=ta,exports.SheetFooter=ea,exports.SheetHeader=Ze,exports.SheetTitle=aa,exports.SheetTrigger=Ue,exports.Sidebar=ca,exports.SidebarContent=pa,exports.SidebarFooter=fa,exports.SidebarGroup=ua,exports.SidebarGroupContent=ga,exports.SidebarGroupLabel=xa,exports.SidebarHeader=ma,exports.SidebarMenu=ba,exports.SidebarMenuButton=va,exports.SidebarMenuItem=Na,exports.SidebarMenuSub=ya,exports.SidebarMenuSubButton=ja,exports.SidebarMenuSubItem=wa,exports.Skeleton=sa,exports.Slider=Da,exports.Sonner=({...a})=>{const{theme:t="system"}=B.useTheme();return e.jsx(E.Toaster,{theme:t,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"}},...a})},exports.Switch=za,exports.Table=Pe,exports.TableBody=Oe,exports.TableCaption=Be,exports.TableCell=Ge,exports.TableFooter=Le,exports.TableHead=Fe,exports.TableHeader=Ae,exports.TableRow=qe,exports.Tabs=_t,exports.TabsContent=Ot,exports.TabsList=Pt,exports.TabsTrigger=At,exports.Textarea=Sa,exports.Toast=Ar,exports.ToastAction=Or,exports.ToastClose=Lr,exports.ToastDescription=Fr,exports.ToastProvider=Mr,exports.ToastTitle=qr,exports.ToastViewport=_r,exports.Toaster=function(){const{toasts:a}=Xr();return e.jsxs(Mr,{children:[a.map(function({id:a,title:t,description:s,action:r,...o}){return e.jsxs(Ar,{...o,children:[e.jsxs("div",{className:"grid gap-1",children:[t&&e.jsx(qr,{children:t}),s&&e.jsx(Fr,{children:s})]}),r,e.jsx(Lr,{})]},a)}),e.jsx(_r,{})]})},exports.Toggle=tt,exports.ToggleGroup=rt,exports.ToggleGroupItem=ot,exports.Tooltip=oa,exports.TooltipContent=na,exports.TooltipProvider=ra,exports.TooltipTrigger=ia,exports.badgeVariants=it,exports.buttonVariants=He,exports.navigationMenuTriggerStyle=Ut,exports.toggleVariants=at,exports.useToast=Xr;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("react"),t=require("@radix-ui/react-accordion"),s=require("lucide-react"),r=require("clsx"),o=require("tailwind-merge"),i=require("@radix-ui/react-aspect-ratio"),n=require("@radix-ui/react-separator"),d=require("@radix-ui/react-scroll-area"),l=require("react-resizable-panels"),c=require("@radix-ui/react-slot"),m=require("class-variance-authority"),f=require("@radix-ui/react-dialog"),p=require("@radix-ui/react-tooltip"),u=require("@radix-ui/react-label"),x=require("@radix-ui/react-checkbox"),g=require("@radix-ui/react-radio-group"),b=require("@radix-ui/react-switch"),h=require("@radix-ui/react-slider"),N=require("input-otp"),v=require("@radix-ui/react-select"),y=require("react-hook-form"),w=require("@radix-ui/react-toggle-group"),j=require("@radix-ui/react-toggle"),C=require("@radix-ui/react-alert-dialog"),R=require("@radix-ui/react-avatar"),S=require("@radix-ui/react-progress"),k=require("react-day-picker"),T=require("@radix-ui/react-tabs"),I=require("@radix-ui/react-navigation-menu"),z=require("@radix-ui/react-menubar"),D=require("@radix-ui/react-dropdown-menu"),M=require("vaul"),P=require("@radix-ui/react-popover"),_=require("@radix-ui/react-hover-card"),A=require("@radix-ui/react-context-menu"),O=require("embla-carousel-react"),L=require("@radix-ui/react-collapsible"),q=require("cmdk"),F=require("@radix-ui/react-toast"),G=require("recharts"),B=require("next-themes"),E=require("sonner");function H(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const t in e)if("default"!==t){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,s.get?s:{enumerable:!0,get:()=>e[t]})}return a.default=e,Object.freeze(a)}const V=H(a),$=H(t),K=H(i),U=H(n),X=H(d),W=H(l),J=H(f),Q=H(p),Y=H(u),Z=H(x),ee=H(g),ae=H(b),te=H(h),se=H(v),re=H(w),oe=H(j),ie=H(C),ne=H(R),de=H(S),le=H(T),ce=H(I),me=H(z),fe=H(D),pe=H(P),ue=H(_),xe=H(A),ge=H(L),be=H(F),he=H(G);function Ne(...e){return o.twMerge(r.clsx(e))}const ve=$.Root,ye=V.forwardRef(({className:a,...t},s)=>e.jsx($.Item,{ref:s,className:Ne("border-b",a),...t}));ye.displayName="AccordionItem";const we=V.forwardRef(({className:a,children:t,...r},o)=>e.jsx($.Header,{className:"flex",children:e.jsxs($.Trigger,{ref:o,className:Ne("flex flex-1 items-center justify-between py-4 font-medium transition-all [&[data-state=open]>svg]:rotate-180",a),...r,children:[t,e.jsx(s.ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));we.displayName=$.Trigger.displayName;const je=V.forwardRef(({className:a,children:t,...s},r)=>e.jsx($.Content,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...s,children:e.jsx("div",{className:Ne("pb-4 pt-0",a),children:t})}));je.displayName=$.Content.displayName;const Ce=K.Root,Re=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,className:Ne("rounded-lg border bg-card text-card-foreground shadow-xs",a),...t}));Re.displayName="Card";const Se=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,className:Ne("flex flex-col space-y-1.5 p-6",a),...t}));Se.displayName="CardHeader";const ke=V.forwardRef(({className:a,...t},s)=>e.jsx("h3",{ref:s,className:Ne("text-2xl font-semibold leading-none tracking-tight",a),...t}));ke.displayName="CardTitle";const Te=V.forwardRef(({className:a,...t},s)=>e.jsx("p",{ref:s,className:Ne("text-sm text-muted-foreground",a),...t}));Te.displayName="CardDescription";const Ie=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,className:Ne("p-6 pt-0",a),...t}));Ie.displayName="CardContent";const ze=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,className:Ne("flex items-center p-6 pt-0",a),...t}));ze.displayName="CardFooter";const De=V.forwardRef(({className:a,orientation:t="horizontal",decorative:s=!0,...r},o)=>e.jsx(U.Root,{ref:o,decorative:s,orientation:t,className:Ne("shrink-0 bg-border","horizontal"===t?"h-px w-full":"h-full w-px",a),...r}));De.displayName=U.Root.displayName;const Me=V.forwardRef(({className:a,children:t,...s},r)=>e.jsxs(X.Root,{ref:r,className:Ne("relative overflow-hidden",a),...s,children:[e.jsx(X.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),e.jsx(Pe,{}),e.jsx(X.Corner,{})]}));Me.displayName=X.Root.displayName;const Pe=V.forwardRef(({className:a,orientation:t="vertical",...s},r)=>e.jsx(X.ScrollAreaScrollbar,{ref:r,orientation:t,className:Ne("flex touch-none select-none transition-colors","vertical"===t&&"h-full w-2.5 border-l border-l-transparent p-px","horizontal"===t&&"h-2.5 flex-col border-t border-t-transparent p-px",a),...s,children:e.jsx(X.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Pe.displayName=X.ScrollAreaScrollbar.displayName;const _e=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{className:"relative w-full overflow-auto",children:e.jsx("table",{ref:s,className:Ne("w-full caption-bottom text-sm",a),...t})}));_e.displayName="Table";const Ae=V.forwardRef(({className:a,...t},s)=>e.jsx("thead",{ref:s,className:Ne("[&_tr]:border-b",a),...t}));Ae.displayName="TableHeader";const Oe=V.forwardRef(({className:a,...t},s)=>e.jsx("tbody",{ref:s,className:Ne("[&_tr:last-child]:border-0",a),...t}));Oe.displayName="TableBody";const Le=V.forwardRef(({className:a,...t},s)=>e.jsx("tfoot",{ref:s,className:Ne("border-t bg-muted/50 font-medium last:[&>tr]:border-b-0",a),...t}));Le.displayName="TableFooter";const qe=V.forwardRef(({className:a,...t},s)=>e.jsx("tr",{ref:s,className:Ne("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",a),...t}));qe.displayName="TableRow";const Fe=V.forwardRef(({className:a,...t},s)=>e.jsx("th",{ref:s,className:Ne("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",a),...t}));Fe.displayName="TableHead";const Ge=V.forwardRef(({className:a,...t},s)=>e.jsx("td",{ref:s,className:Ne("p-4 align-middle [&:has([role=checkbox])]:pr-0",a),...t}));Ge.displayName="TableCell";const Be=V.forwardRef(({className:a,...t},s)=>e.jsx("caption",{ref:s,className:Ne("mt-4 text-sm text-muted-foreground",a),...t}));Be.displayName="TableCaption";const Ee=W.Panel;const He=m.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Ve=V.forwardRef(({className:a,variant:t,size:s,asChild:r=!1,...o},i)=>{const n=r?c.Slot:"button";return e.jsx(n,{className:Ne(He({variant:t,size:s,className:a})),ref:i,...o})});Ve.displayName="Button";const $e=V.forwardRef(({className:a,type:t,...s},r)=>e.jsx("input",{type:t,className:Ne("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",a),ref:r,...s}));$e.displayName="Input";const Ke=J.Root,Ue=J.Trigger,Xe=J.Close,We=J.Portal,Je=V.forwardRef(({className:a,...t},s)=>e.jsx(J.Overlay,{className:Ne("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",a),...t,ref:s}));Je.displayName=J.Overlay.displayName;const Qe=m.cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Ye=V.forwardRef(({side:a="right",className:t,children:r,...o},i)=>e.jsxs(We,{children:[e.jsx(Je,{}),e.jsxs(J.Content,{ref:i,className:Ne(Qe({side:a}),t),...o,children:[r,e.jsxs(J.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[e.jsx(s.X,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ye.displayName=J.Content.displayName;const Ze=({className:a,...t})=>e.jsx("div",{className:Ne("flex flex-col space-y-2 text-center sm:text-left",a),...t});Ze.displayName="SheetHeader";const ea=({className:a,...t})=>e.jsx("div",{className:Ne("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",a),...t});ea.displayName="SheetFooter";const aa=V.forwardRef(({className:a,...t},s)=>e.jsx(J.Title,{ref:s,className:Ne("text-lg font-semibold text-foreground",a),...t}));aa.displayName=J.Title.displayName;const ta=V.forwardRef(({className:a,...t},s)=>e.jsx(J.Description,{ref:s,className:Ne("text-sm text-muted-foreground",a),...t}));function sa({className:a,...t}){return e.jsx("div",{className:Ne("animate-pulse rounded-md bg-muted",a),...t})}ta.displayName=J.Description.displayName;const ra=Q.Provider,oa=Q.Root,ia=Q.Trigger,na=V.forwardRef(({className:a,sideOffset:t=4,...s},r)=>e.jsx(Q.Content,{ref:r,sideOffset:t,className:Ne("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...s}));na.displayName=Q.Content.displayName;const da=V.createContext(null);function la(){const e=V.useContext(da);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}V.forwardRef(({defaultOpen:a=!0,open:t,onOpenChange:s,className:r,style:o,children:i,...n},d)=>{const l=function(){const[e,a]=V.useState(void 0);return V.useEffect(()=>{const e=window.matchMedia("(max-width: 767px)"),t=()=>{a(window.innerWidth<768)};return e.addEventListener("change",t),a(window.innerWidth<768),()=>e.removeEventListener("change",t)},[]),!!e}(),[c,m]=V.useState(!1),[f,p]=V.useState(a),u=t??f,x=V.useCallback(e=>{const a="function"==typeof e?e(u):e;s?s(a):p(a),document.cookie=`sidebar:state=${a}; path=/; max-age=604800`},[s,u]),g=V.useCallback(()=>l?m(e=>!e):x(e=>!e),[l,x,m]);V.useEffect(()=>{const e=e=>{"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),g())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[g]);const b=u?"expanded":"collapsed",h=V.useMemo(()=>({state:b,open:u,setOpen:x,isMobile:l,openMobile:c,setOpenMobile:m,toggleSidebar:g}),[b,u,x,l,c,m,g]);return e.jsx(da.Provider,{value:h,children:e.jsx(ra,{delayDuration:0,children:e.jsx("div",{style:{"--sidebar-width":"16rem","--sidebar-width-icon":"3rem",...o},className:Ne("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",r),ref:d,...n,children:i})})})}).displayName="SidebarProvider";const ca=V.forwardRef(({side:a="left",variant:t="sidebar",collapsible:s="offcanvas",className:r,children:o,...i},n)=>{const{isMobile:d,state:l,openMobile:c,setOpenMobile:m}=la();return"none"===s?e.jsx("div",{className:Ne("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",r),ref:n,...i,children:o}):d?e.jsx(Ke,{open:c,onOpenChange:m,...i,children:e.jsx(Ye,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":"18rem"},side:a,children:e.jsx("div",{className:"flex h-full w-full flex-col",children:o})})}):e.jsxs("div",{ref:n,className:"group peer hidden md:block text-sidebar-foreground","data-state":l,"data-collapsible":"collapsed"===l?s:"","data-variant":t,"data-side":a,children:[e.jsx("div",{className:Ne("duration-200 relative h-svh w-(--sidebar-width) bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===t||"inset"===t?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),e.jsx("div",{className:Ne("duration-200 fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] ease-linear md:flex","left"===a?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]","floating"===t||"inset"===t?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...i,children:e.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm",children:o})})]})});ca.displayName="Sidebar";V.forwardRef(({className:a,onClick:t,...r},o)=>{const{toggleSidebar:i}=la();return e.jsxs(Ve,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:Ne("h-7 w-7",a),onClick:e=>{null==t||t(e),i()},...r,children:[e.jsx(s.PanelLeft,{}),e.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}).displayName="SidebarTrigger";V.forwardRef(({className:a,...t},s)=>{const{toggleSidebar:r}=la();return e.jsx("button",{ref:s,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:Ne("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",a),...t})}).displayName="SidebarRail";V.forwardRef(({className:a,...t},s)=>e.jsx("main",{ref:s,className:Ne("relative flex min-h-svh flex-1 flex-col bg-background","peer-data-[variant=inset]:min-h-[calc(100svh-(--spacing(4)))] md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",a),...t})).displayName="SidebarInset";V.forwardRef(({className:a,...t},s)=>e.jsx($e,{ref:s,"data-sidebar":"input",className:Ne("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",a),...t})).displayName="SidebarInput";const ma=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,"data-sidebar":"header",className:Ne("flex flex-col gap-2 p-2",a),...t}));ma.displayName="SidebarHeader";const fa=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,"data-sidebar":"footer",className:Ne("flex flex-col gap-2 p-2",a),...t}));fa.displayName="SidebarFooter";V.forwardRef(({className:a,...t},s)=>e.jsx(De,{ref:s,"data-sidebar":"separator",className:Ne("mx-2 w-auto bg-sidebar-border",a),...t})).displayName="SidebarSeparator";const pa=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,"data-sidebar":"content",className:Ne("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",a),...t}));pa.displayName="SidebarContent";const ua=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,"data-sidebar":"group",className:Ne("relative flex w-full min-w-0 flex-col p-2",a),...t}));ua.displayName="SidebarGroup";const xa=V.forwardRef(({className:a,asChild:t=!1,...s},r)=>{const o=t?c.Slot:"div";return e.jsx(o,{ref:r,"data-sidebar":"group-label",className:Ne("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-hidden ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",a),...s})});xa.displayName="SidebarGroupLabel";V.forwardRef(({className:a,asChild:t=!1,...s},r)=>{const o=t?c.Slot:"button";return e.jsx(o,{ref:r,"data-sidebar":"group-action",className:Ne("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",a),...s})}).displayName="SidebarGroupAction";const ga=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,"data-sidebar":"group-content",className:Ne("w-full text-sm",a),...t}));ga.displayName="SidebarGroupContent";const ba=V.forwardRef(({className:a,...t},s)=>e.jsx("ul",{ref:s,"data-sidebar":"menu",className:Ne("flex w-full min-w-0 flex-col gap-1",a),...t}));ba.displayName="SidebarMenu";const ha=V.forwardRef(({className:a,...t},s)=>e.jsx("li",{ref:s,"data-sidebar":"menu-item",className:Ne("group/menu-item relative",a),...t}));ha.displayName="SidebarMenuItem";const Na=m.cva("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-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-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}}),va=V.forwardRef(({asChild:a=!1,isActive:t=!1,variant:s="default",size:r="default",tooltip:o,className:i,...n},d)=>{const l=a?c.Slot:"button",{isMobile:m,state:f}=la(),p=e.jsx(l,{ref:d,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:Ne(Na({variant:s,size:r}),i),...n});return o?("string"==typeof o&&(o={children:o}),e.jsxs(oa,{children:[e.jsx(ia,{asChild:!0,children:p}),e.jsx(na,{side:"right",align:"center",hidden:"collapsed"!==f||m,...o})]})):p});va.displayName="SidebarMenuButton";V.forwardRef(({className:a,asChild:t=!1,showOnHover:s=!1,...r},o)=>{const i=t?c.Slot:"button";return e.jsx(i,{ref:o,"data-sidebar":"menu-action",className:Ne("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",s&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",a),...r})}).displayName="SidebarMenuAction";V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,"data-sidebar":"menu-badge",className:Ne("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a),...t})).displayName="SidebarMenuBadge";V.forwardRef(({className:a,showIcon:t=!1,...s},r)=>{const o=V.useMemo(()=>`${Math.floor(40*Math.random())+50}%`,[]);return e.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:Ne("rounded-md h-8 flex gap-2 px-2 items-center",a),...s,children:[t&&e.jsx(sa,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),e.jsx(sa,{className:"h-4 flex-1 max-w-(--skeleton-width)","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})}).displayName="SidebarMenuSkeleton";const ya=V.forwardRef(({className:a,...t},s)=>e.jsx("ul",{ref:s,"data-sidebar":"menu-sub",className:Ne("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",a),...t}));ya.displayName="SidebarMenuSub";const wa=V.forwardRef(({...a},t)=>e.jsx("li",{ref:t,...a}));wa.displayName="SidebarMenuSubItem";const ja=V.forwardRef(({asChild:a=!1,size:t="md",isActive:s,className:r,...o},i)=>{const n=a?c.Slot:"a";return e.jsx(n,{ref:i,"data-sidebar":"menu-sub-button","data-size":t,"data-active":s,className:Ne("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-hidden ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground","sm"===t&&"text-xs","md"===t&&"text-sm","group-data-[collapsible=icon]:hidden",r),...o})});ja.displayName="SidebarMenuSubButton";const Ca=m.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ra=V.forwardRef(({className:a,...t},s)=>e.jsx(Y.Root,{ref:s,className:Ne(Ca(),a),...t}));Ra.displayName=Y.Root.displayName;const Sa=V.forwardRef(({className:a,...t},s)=>e.jsx("textarea",{className:Ne("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",a),ref:s,...t}));Sa.displayName="Textarea";const ka=V.forwardRef(({className:a,...t},r)=>e.jsx(Z.Root,{ref:r,className:Ne("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",a),...t,children:e.jsx(Z.Indicator,{className:Ne("flex items-center justify-center text-current"),children:e.jsx(s.Check,{className:"h-4 w-4"})})}));ka.displayName=Z.Root.displayName;const Ta=V.forwardRef(({className:a,...t},s)=>e.jsx(ee.Root,{className:Ne("grid gap-2",a),...t,ref:s}));Ta.displayName=ee.Root.displayName;const Ia=V.forwardRef(({className:a,...t},r)=>e.jsx(ee.Item,{ref:r,className:Ne("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",a),...t,children:e.jsx(ee.Indicator,{className:"flex items-center justify-center",children:e.jsx(s.Circle,{className:"h-2.5 w-2.5 fill-current text-current"})})}));Ia.displayName=ee.Item.displayName;const za=V.forwardRef(({className:a,...t},s)=>e.jsx(ae.Root,{className:Ne("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",a),...t,ref:s,children:e.jsx(ae.Thumb,{className:Ne("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));za.displayName=ae.Root.displayName;const Da=V.forwardRef(({className:a,...t},s)=>e.jsxs(te.Root,{ref:s,className:Ne("relative flex w-full touch-none select-none items-center",a),...t,children:[e.jsx(te.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:e.jsx(te.Range,{className:"absolute h-full bg-primary"})}),e.jsx(te.Thumb,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));Da.displayName=te.Root.displayName;const Ma=V.forwardRef(({className:a,containerClassName:t,...s},r)=>e.jsx(N.OTPInput,{ref:r,containerClassName:Ne("flex items-center gap-2 has-disabled:opacity-50",t),className:Ne("disabled:cursor-not-allowed",a),...s}));Ma.displayName="InputOTP";const Pa=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,className:Ne("flex items-center",a),...t}));Pa.displayName="InputOTPGroup";const _a=V.forwardRef(({index:a,className:t,...s},r)=>{const o=V.useContext(N.OTPInputContext),{char:i,hasFakeCaret:n,isActive:d}=o.slots[a];return e.jsxs("div",{ref:r,className:Ne("relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",d&&"z-10 ring-2 ring-ring ring-offset-background",t),...s,children:[i,n&&e.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:e.jsx("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})});_a.displayName="InputOTPSlot";const Aa=V.forwardRef(({...a},t)=>e.jsx("div",{ref:t,role:"separator",...a,children:e.jsx(s.Dot,{})}));Aa.displayName="InputOTPSeparator";const Oa=se.Root,La=se.Group,qa=se.Value,Fa=V.forwardRef(({className:a,children:t,...r},o)=>e.jsxs(se.Trigger,{ref:o,className:Ne("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",a),...r,children:[t,e.jsx(se.Icon,{asChild:!0,children:e.jsx(s.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Fa.displayName=se.Trigger.displayName;const Ga=V.forwardRef(({className:a,...t},r)=>e.jsx(se.ScrollUpButton,{ref:r,className:Ne("flex cursor-default items-center justify-center py-1",a),...t,children:e.jsx(s.ChevronUp,{className:"h-4 w-4"})}));Ga.displayName=se.ScrollUpButton.displayName;const Ba=V.forwardRef(({className:a,...t},r)=>e.jsx(se.ScrollDownButton,{ref:r,className:Ne("flex cursor-default items-center justify-center py-1",a),...t,children:e.jsx(s.ChevronDown,{className:"h-4 w-4"})}));Ba.displayName=se.ScrollDownButton.displayName;const Ea=V.forwardRef(({className:a,children:t,position:s="popper",...r},o)=>e.jsx(se.Portal,{children:e.jsxs(se.Content,{ref:o,className:Ne("relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===s&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:s,...r,children:[e.jsx(Ga,{}),e.jsx(se.Viewport,{className:Ne("p-1","popper"===s&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)"),children:t}),e.jsx(Ba,{})]})}));Ea.displayName=se.Content.displayName;const Ha=V.forwardRef(({className:a,...t},s)=>e.jsx(se.Label,{ref:s,className:Ne("py-1.5 pl-8 pr-2 text-sm font-semibold",a),...t}));Ha.displayName=se.Label.displayName;const Va=V.forwardRef(({className:a,children:t,...r},o)=>e.jsxs(se.Item,{ref:o,className:Ne("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",a),...r,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(se.ItemIndicator,{children:e.jsx(s.Check,{className:"h-4 w-4"})})}),e.jsx(se.ItemText,{children:t})]}));Va.displayName=se.Item.displayName;const $a=V.forwardRef(({className:a,...t},s)=>e.jsx(se.Separator,{ref:s,className:Ne("-mx-1 my-1 h-px bg-muted",a),...t}));$a.displayName=se.Separator.displayName;const Ka=y.FormProvider,Ua=V.createContext({}),Xa=()=>{const e=V.useContext(Ua),a=V.useContext(Wa),{getFieldState:t,formState:s}=y.useFormContext(),r=t(e.name,s);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:o}=a;return{id:o,name:e.name,formItemId:`${o}-form-item`,formDescriptionId:`${o}-form-item-description`,formMessageId:`${o}-form-item-message`,...r}},Wa=V.createContext({}),Ja=V.forwardRef(({className:a,...t},s)=>{const r=V.useId();return e.jsx(Wa.Provider,{value:{id:r},children:e.jsx("div",{ref:s,className:Ne("space-y-2",a),...t})})});Ja.displayName="FormItem";const Qa=V.forwardRef(({className:a,...t},s)=>{const{error:r,formItemId:o}=Xa();return e.jsx(Ra,{ref:s,className:Ne(r&&"text-destructive",a),htmlFor:o,...t})});Qa.displayName="FormLabel";const Ya=V.forwardRef(({...a},t)=>{const{error:s,formItemId:r,formDescriptionId:o,formMessageId:i}=Xa();return e.jsx(c.Slot,{ref:t,id:r,"aria-describedby":s?`${o} ${i}`:`${o}`,"aria-invalid":!!s,...a})});Ya.displayName="FormControl";const Za=V.forwardRef(({className:a,...t},s)=>{const{formDescriptionId:r}=Xa();return e.jsx("p",{ref:s,id:r,className:Ne("text-sm text-muted-foreground",a),...t})});Za.displayName="FormDescription";const et=V.forwardRef(({className:a,children:t,...s},r)=>{const{error:o,formMessageId:i}=Xa(),n=o?String(null==o?void 0:o.message):t;return n?e.jsx("p",{ref:r,id:i,className:Ne("text-sm font-medium text-destructive",a),...s,children:n}):null});et.displayName="FormMessage";const at=m.cva("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-3",sm:"h-9 px-2.5",lg:"h-11 px-5"}},defaultVariants:{variant:"default",size:"default"}}),tt=V.forwardRef(({className:a,variant:t,size:s,...r},o)=>e.jsx(oe.Root,{ref:o,className:Ne(at({variant:t,size:s,className:a})),...r}));tt.displayName=oe.Root.displayName;const st=V.createContext({size:"default",variant:"default"}),rt=V.forwardRef(({className:a,variant:t,size:s,children:r,...o},i)=>e.jsx(re.Root,{ref:i,className:Ne("flex items-center justify-center gap-1",a),...o,children:e.jsx(st.Provider,{value:{variant:t,size:s},children:r})}));rt.displayName=re.Root.displayName;const ot=V.forwardRef(({className:a,children:t,variant:s,size:r,...o},i)=>{const n=V.useContext(st);return e.jsx(re.Item,{ref:i,className:Ne(at({variant:n.variant||s,size:n.size||r}),a),...o,children:t})});ot.displayName=re.Item.displayName;const it=m.cva("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});const nt=m.cva("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),dt=V.forwardRef(({className:a,variant:t,...s},r)=>e.jsx("div",{ref:r,role:"alert",className:Ne(nt({variant:t}),a),...s}));dt.displayName="Alert";const lt=V.forwardRef(({className:a,...t},s)=>e.jsx("h5",{ref:s,className:Ne("mb-1 font-medium leading-none tracking-tight",a),...t}));lt.displayName="AlertTitle";const ct=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,className:Ne("text-sm [&_p]:leading-relaxed",a),...t}));ct.displayName="AlertDescription";const mt=ie.Root,ft=ie.Trigger,pt=ie.Portal,ut=V.forwardRef(({className:a,...t},s)=>e.jsx(ie.Overlay,{className:Ne("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",a),...t,ref:s}));ut.displayName=ie.Overlay.displayName;const xt=V.forwardRef(({className:a,...t},s)=>e.jsxs(pt,{children:[e.jsx(ut,{}),e.jsx(ie.Content,{ref:s,className:Ne("fixed left-[50%] top-[50%] z-50 border-green grid w-full max-w-lg translate-x-[-50%] translate-y-[-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 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",a),...t})]}));xt.displayName=ie.Content.displayName;const gt=({className:a,...t})=>e.jsx("div",{className:Ne("flex flex-col space-y-2 text-center sm:text-left",a),...t});gt.displayName="AlertDialogHeader";const bt=({className:a,...t})=>e.jsx("div",{className:Ne("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",a),...t});bt.displayName="AlertDialogFooter";const ht=V.forwardRef(({className:a,...t},s)=>e.jsx(ie.Title,{ref:s,className:Ne("text-lg font-semibold",a),...t}));ht.displayName=ie.Title.displayName;const Nt=V.forwardRef(({className:a,...t},s)=>e.jsx(ie.Description,{ref:s,className:Ne("text-sm text-muted-foreground",a),...t}));Nt.displayName=ie.Description.displayName;const vt=V.forwardRef(({className:a,...t},s)=>e.jsx(ie.Action,{ref:s,className:Ne(He(),a),...t}));vt.displayName=ie.Action.displayName;const yt=V.forwardRef(({className:a,...t},s)=>e.jsx(ie.Cancel,{ref:s,className:Ne(He({variant:"outline"}),"mt-2 sm:mt-0",a),...t}));yt.displayName=ie.Cancel.displayName;const wt=V.forwardRef(({className:a,...t},s)=>e.jsx(ne.Root,{ref:s,className:Ne("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",a),...t}));wt.displayName=ne.Root.displayName;const jt=V.forwardRef(({className:a,...t},s)=>e.jsx(ne.Image,{ref:s,className:Ne("aspect-square h-full w-full",a),...t}));jt.displayName=ne.Image.displayName;const Ct=V.forwardRef(({className:a,...t},s)=>e.jsx(ne.Fallback,{ref:s,className:Ne("flex h-full w-full items-center justify-center rounded-full bg-muted",a),...t}));Ct.displayName=ne.Fallback.displayName;const Rt=V.forwardRef(({...a},t)=>e.jsx("nav",{ref:t,"aria-label":"breadcrumb",...a}));Rt.displayName="Breadcrumb";const St=V.forwardRef(({className:a,...t},s)=>e.jsx("ol",{ref:s,className:Ne("flex flex-wrap items-center gap-1.5 wrap-break-word text-sm text-muted-foreground sm:gap-2.5",a),...t}));St.displayName="BreadcrumbList";const kt=V.forwardRef(({className:a,...t},s)=>e.jsx("li",{ref:s,className:Ne("inline-flex items-center gap-1.5",a),...t}));kt.displayName="BreadcrumbItem";const Tt=V.forwardRef(({asChild:a,className:t,...s},r)=>{const o=a?c.Slot:"a";return e.jsx(o,{ref:r,className:Ne("transition-colors hover:text-foreground",t),...s})});Tt.displayName="BreadcrumbLink";const It=V.forwardRef(({className:a,...t},s)=>e.jsx("span",{ref:s,role:"link","aria-disabled":"true","aria-current":"page",className:Ne("font-normal text-foreground",a),...t}));It.displayName="BreadcrumbPage";const zt=({children:a,className:t,...r})=>e.jsx("li",{role:"presentation","aria-hidden":"true",className:Ne("[&>svg]:size-3.5",t),...r,children:a??e.jsx(s.ChevronRight,{})});zt.displayName="BreadcrumbSeparator";const Dt=V.forwardRef(({className:a,value:t,...s},r)=>e.jsx(de.Root,{ref:r,className:Ne("relative h-4 w-full overflow-hidden rounded-full bg-secondary",a),...s,children:e.jsx(de.Indicator,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));function Mt({className:a,classNames:t,showOutsideDays:r=!0,...o}){return e.jsx(k.DayPicker,{showOutsideDays:r,className:Ne("p-3",a),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:Ne(He({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:Ne(He({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{Chevron:a=>"left"===a.orientation?e.jsx(s.ChevronLeft,{className:"h-4 w-4"}):e.jsx(s.ChevronRight,{className:"h-4 w-4"})},...o})}Dt.displayName=de.Root.displayName,Mt.displayName="Calendar";const Pt=le.Root,_t=V.forwardRef(({className:a,...t},s)=>e.jsx(le.List,{ref:s,className:Ne("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",a),...t}));_t.displayName=le.List.displayName;const At=V.forwardRef(({className:a,...t},s)=>e.jsx(le.Trigger,{ref:s,className:Ne("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-xs",a),...t}));At.displayName=le.Trigger.displayName;const Ot=V.forwardRef(({className:a,...t},s)=>e.jsx(le.Content,{ref:s,className:Ne("mt-2 ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",a),...t}));Ot.displayName=le.Content.displayName;const Lt=({className:a,...t})=>e.jsx("nav",{role:"navigation","aria-label":"pagination",className:Ne("mx-auto flex w-full justify-center",a),...t});Lt.displayName="Pagination";const qt=V.forwardRef(({className:a,...t},s)=>e.jsx("ul",{ref:s,className:Ne("flex flex-row items-center gap-1",a),...t}));qt.displayName="PaginationContent";const Ft=V.forwardRef(({className:a,...t},s)=>e.jsx("li",{ref:s,className:Ne("",a),...t}));Ft.displayName="PaginationItem";const Gt=({className:a,isActive:t,size:s="icon",...r})=>e.jsx("a",{"aria-current":t?"page":void 0,className:Ne(He({variant:t?"outline-solid":"ghost",size:s}),a),...r});Gt.displayName="PaginationLink";const Bt=({className:a,...t})=>e.jsxs(Gt,{"aria-label":"Go to previous page",size:"default",className:Ne("gap-1 pl-2.5",a),...t,children:[e.jsx(s.ChevronLeft,{className:"h-4 w-4"}),e.jsx("span",{children:"Previous"})]});Bt.displayName="PaginationPrevious";const Et=({className:a,...t})=>e.jsxs(Gt,{"aria-label":"Go to next page",size:"default",className:Ne("gap-1 pr-2.5",a),...t,children:[e.jsx("span",{children:"Next"}),e.jsx(s.ChevronRight,{className:"h-4 w-4"})]});Et.displayName="PaginationNext";const Ht=({className:a,...t})=>e.jsxs("span",{"aria-hidden":!0,className:Ne("flex h-9 w-9 items-center justify-center",a),...t,children:[e.jsx(s.MoreHorizontal,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"More pages"})]});Ht.displayName="PaginationEllipsis";const Vt=V.forwardRef(({className:a,children:t,...s},r)=>e.jsxs(ce.Root,{ref:r,className:Ne("relative z-10 flex max-w-max flex-1 items-center justify-center",a),...s,children:[t,e.jsx(Qt,{})]}));Vt.displayName=ce.Root.displayName;const $t=V.forwardRef(({className:a,...t},s)=>e.jsx(ce.List,{ref:s,className:Ne("group flex flex-1 list-none items-center justify-center space-x-1",a),...t}));$t.displayName=ce.List.displayName;const Kt=ce.Item,Ut=m.cva("group inline-flex h-10 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-hidden disabled:pointer-events-none disabled:opacity-50 data-active:bg-accent/50 data-[state=open]:bg-accent/50"),Xt=V.forwardRef(({className:a,children:t,...r},o)=>e.jsxs(ce.Trigger,{ref:o,className:Ne(Ut(),"group",a),...r,children:[t," ",e.jsx(s.ChevronDown,{className:"relative top-px ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));Xt.displayName=ce.Trigger.displayName;const Wt=V.forwardRef(({className:a,...t},s)=>e.jsx(ce.Content,{ref:s,className:Ne("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",a),...t}));Wt.displayName=ce.Content.displayName;const Jt=ce.Link,Qt=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{className:Ne("absolute left-0 top-full flex justify-center"),children:e.jsx(ce.Viewport,{className:Ne("origin-top-center relative mt-1.5 h-(--radix-navigation-menu-viewport-height) w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-(--radix-navigation-menu-viewport-width)",a),ref:s,...t})}));Qt.displayName=ce.Viewport.displayName;V.forwardRef(({className:a,...t},s)=>e.jsx(ce.Indicator,{ref:s,className:Ne("top-full z-1 flex h-1.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",a),...t,children:e.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})})).displayName=ce.Indicator.displayName;const Yt=me.Menu,Zt=me.Sub,es=me.RadioGroup,as=V.forwardRef(({className:a,...t},s)=>e.jsx(me.Root,{ref:s,className:Ne("flex h-10 items-center space-x-1 rounded-md border bg-background p-1",a),...t}));as.displayName=me.Root.displayName;const ts=V.forwardRef(({className:a,...t},s)=>e.jsx(me.Trigger,{ref:s,className:Ne("flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-hidden focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",a),...t}));ts.displayName=me.Trigger.displayName;const ss=V.forwardRef(({className:a,inset:t,children:r,...o},i)=>e.jsxs(me.SubTrigger,{ref:i,className:Ne("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",a),...o,children:[r,e.jsx(s.ChevronRight,{className:"ml-auto h-4 w-4"})]}));ss.displayName=me.SubTrigger.displayName;const rs=V.forwardRef(({className:a,...t},s)=>e.jsx(me.SubContent,{ref:s,className:Ne("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...t}));rs.displayName=me.SubContent.displayName;const os=V.forwardRef(({className:a,align:t="start",alignOffset:s=-4,sideOffset:r=8,...o},i)=>e.jsx(me.Portal,{children:e.jsx(me.Content,{ref:i,align:t,alignOffset:s,sideOffset:r,className:Ne("z-50 min-w-48 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...o})}));os.displayName=me.Content.displayName;const is=V.forwardRef(({className:a,inset:t,...s},r)=>e.jsx(me.Item,{ref:r,className:Ne("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",t&&"pl-8",a),...s}));is.displayName=me.Item.displayName;const ns=V.forwardRef(({className:a,children:t,checked:r,...o},i)=>e.jsxs(me.CheckboxItem,{ref:i,className:Ne("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",a),checked:r,...o,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(me.ItemIndicator,{children:e.jsx(s.Check,{className:"h-4 w-4"})})}),t]}));ns.displayName=me.CheckboxItem.displayName;const ds=V.forwardRef(({className:a,children:t,...r},o)=>e.jsxs(me.RadioItem,{ref:o,className:Ne("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",a),...r,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(me.ItemIndicator,{children:e.jsx(s.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));ds.displayName=me.RadioItem.displayName;const ls=V.forwardRef(({className:a,inset:t,...s},r)=>e.jsx(me.Label,{ref:r,className:Ne("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",a),...s}));ls.displayName=me.Label.displayName;const cs=V.forwardRef(({className:a,...t},s)=>e.jsx(me.Separator,{ref:s,className:Ne("-mx-1 my-1 h-px bg-muted",a),...t}));cs.displayName=me.Separator.displayName;const ms=({className:a,...t})=>e.jsx("span",{className:Ne("ml-auto text-xs tracking-widest text-muted-foreground",a),...t});ms.displayname="MenubarShortcut";const fs=fe.Root,ps=fe.Trigger,us=fe.Group,xs=fe.Portal,gs=fe.Sub,bs=fe.RadioGroup,hs=V.forwardRef(({className:a,inset:t,children:r,...o},i)=>e.jsxs(fe.SubTrigger,{ref:i,className:Ne("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",a),...o,children:[r,e.jsx(s.ChevronRight,{className:"ml-auto h-4 w-4"})]}));hs.displayName=fe.SubTrigger.displayName;const Ns=V.forwardRef(({className:a,...t},s)=>e.jsx(fe.SubContent,{ref:s,className:Ne("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...t}));Ns.displayName=fe.SubContent.displayName;const vs=V.forwardRef(({className:a,sideOffset:t=4,...s},r)=>e.jsx(fe.Portal,{children:e.jsx(fe.Content,{ref:r,sideOffset:t,className:Ne("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...s})}));vs.displayName=fe.Content.displayName;const ys=V.forwardRef(({className:a,inset:t,...s},r)=>e.jsx(fe.Item,{ref:r,className:Ne("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",t&&"pl-8",a),...s}));ys.displayName=fe.Item.displayName;const ws=V.forwardRef(({className:a,children:t,checked:r,...o},i)=>e.jsxs(fe.CheckboxItem,{ref:i,className:Ne("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",a),checked:r,...o,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(fe.ItemIndicator,{children:e.jsx(s.Check,{className:"h-4 w-4"})})}),t]}));ws.displayName=fe.CheckboxItem.displayName;const js=V.forwardRef(({className:a,children:t,...r},o)=>e.jsxs(fe.RadioItem,{ref:o,className:Ne("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",a),...r,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(fe.ItemIndicator,{children:e.jsx(s.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));js.displayName=fe.RadioItem.displayName;const Cs=V.forwardRef(({className:a,inset:t,...s},r)=>e.jsx(fe.Label,{ref:r,className:Ne("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",a),...s}));Cs.displayName=fe.Label.displayName;const Rs=V.forwardRef(({className:a,...t},s)=>e.jsx(fe.Separator,{ref:s,className:Ne("-mx-1 my-1 h-px bg-muted",a),...t}));Rs.displayName=fe.Separator.displayName;const Ss=({className:a,...t})=>e.jsx("span",{className:Ne("ml-auto text-xs tracking-widest opacity-60",a),...t});Ss.displayName="DropdownMenuShortcut";const ks=J.Root,Ts=J.Trigger,Is=J.Portal,zs=J.Close,Ds=V.forwardRef(({className:a,...t},s)=>e.jsx(J.Overlay,{ref:s,className:Ne("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",a),...t}));Ds.displayName=J.Overlay.displayName;const Ms=V.forwardRef(({className:a,children:t,...r},o)=>e.jsxs(Is,{children:[e.jsx(Ds,{}),e.jsxs(J.Content,{ref:o,className:Ne("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-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 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",a),...r,children:[t,e.jsxs(J.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[e.jsx(s.X,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ms.displayName=J.Content.displayName;const Ps=({className:a,...t})=>e.jsx("div",{className:Ne("flex flex-col space-y-1.5 text-center sm:text-left",a),...t});Ps.displayName="DialogHeader";const _s=({className:a,...t})=>e.jsx("div",{className:Ne("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",a),...t});_s.displayName="DialogFooter";const As=V.forwardRef(({className:a,...t},s)=>e.jsx(J.Title,{ref:s,className:Ne("text-lg font-semibold leading-none tracking-tight",a),...t}));As.displayName=J.Title.displayName;const Os=V.forwardRef(({className:a,...t},s)=>e.jsx(J.Description,{ref:s,className:Ne("text-sm text-muted-foreground",a),...t}));Os.displayName=J.Description.displayName;const Ls=({shouldScaleBackground:a=!0,...t})=>e.jsx(M.Drawer.Root,{shouldScaleBackground:a,...t});Ls.displayName="Drawer";const qs=M.Drawer.Trigger,Fs=M.Drawer.Portal,Gs=M.Drawer.Close,Bs=V.forwardRef(({className:a,...t},s)=>e.jsx(M.Drawer.Overlay,{ref:s,className:Ne("fixed inset-0 z-50 bg-black/80",a),...t}));Bs.displayName=M.Drawer.Overlay.displayName;const Es=V.forwardRef(({className:a,children:t,...s},r)=>e.jsxs(Fs,{children:[e.jsx(Bs,{}),e.jsxs(M.Drawer.Content,{ref:r,className:Ne("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",a),...s,children:[e.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));Es.displayName="DrawerContent";const Hs=({className:a,...t})=>e.jsx("div",{className:Ne("grid gap-1.5 p-4 text-center sm:text-left",a),...t});Hs.displayName="DrawerHeader";const Vs=({className:a,...t})=>e.jsx("div",{className:Ne("mt-auto flex flex-col gap-2 p-4",a),...t});Vs.displayName="DrawerFooter";const $s=V.forwardRef(({className:a,...t},s)=>e.jsx(M.Drawer.Title,{ref:s,className:Ne("text-lg font-semibold leading-none tracking-tight",a),...t}));$s.displayName=M.Drawer.Title.displayName;const Ks=V.forwardRef(({className:a,...t},s)=>e.jsx(M.Drawer.Description,{ref:s,className:Ne("text-sm text-muted-foreground",a),...t}));Ks.displayName=M.Drawer.Description.displayName;const Us=pe.Root,Xs=pe.Trigger,Ws=V.forwardRef(({className:a,align:t="center",sideOffset:s=4,...r},o)=>e.jsx(pe.Portal,{children:e.jsx(pe.Content,{ref:o,align:t,sideOffset:s,className:Ne("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...r})}));Ws.displayName=pe.Content.displayName;const Js=ue.Root,Qs=ue.Trigger,Ys=V.forwardRef(({className:a,align:t="center",sideOffset:s=4,...r},o)=>e.jsx(ue.Content,{ref:o,align:t,sideOffset:s,className:Ne("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...r}));Ys.displayName=ue.Content.displayName;const Zs=xe.Root,er=xe.Trigger,ar=xe.Group,tr=xe.Portal,sr=xe.Sub,rr=xe.RadioGroup,or=V.forwardRef(({className:a,inset:t,children:r,...o},i)=>e.jsxs(xe.SubTrigger,{ref:i,className:Ne("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",a),...o,children:[r,e.jsx(s.ChevronRight,{className:"ml-auto h-4 w-4"})]}));or.displayName=xe.SubTrigger.displayName;const ir=V.forwardRef(({className:a,...t},s)=>e.jsx(xe.SubContent,{ref:s,className:Ne("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...t}));ir.displayName=xe.SubContent.displayName;const nr=V.forwardRef(({className:a,...t},s)=>e.jsx(xe.Portal,{children:e.jsx(xe.Content,{ref:s,className:Ne("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...t})}));nr.displayName=xe.Content.displayName;const dr=V.forwardRef(({className:a,inset:t,...s},r)=>e.jsx(xe.Item,{ref:r,className:Ne("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",t&&"pl-8",a),...s}));dr.displayName=xe.Item.displayName;const lr=V.forwardRef(({className:a,children:t,checked:r,...o},i)=>e.jsxs(xe.CheckboxItem,{ref:i,className:Ne("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",a),checked:r,...o,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(xe.ItemIndicator,{children:e.jsx(s.Check,{className:"h-4 w-4"})})}),t]}));lr.displayName=xe.CheckboxItem.displayName;const cr=V.forwardRef(({className:a,children:t,...r},o)=>e.jsxs(xe.RadioItem,{ref:o,className:Ne("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",a),...r,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(xe.ItemIndicator,{children:e.jsx(s.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));cr.displayName=xe.RadioItem.displayName;const mr=V.forwardRef(({className:a,inset:t,...s},r)=>e.jsx(xe.Label,{ref:r,className:Ne("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",a),...s}));mr.displayName=xe.Label.displayName;const fr=V.forwardRef(({className:a,...t},s)=>e.jsx(xe.Separator,{ref:s,className:Ne("-mx-1 my-1 h-px bg-border",a),...t}));fr.displayName=xe.Separator.displayName;const pr=({className:a,...t})=>e.jsx("span",{className:Ne("ml-auto text-xs tracking-widest text-muted-foreground",a),...t});pr.displayName="ContextMenuShortcut";const ur=V.createContext(null);function xr(){const e=V.useContext(ur);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const gr=V.forwardRef(({orientation:a="horizontal",opts:t,setApi:s,plugins:r,className:o,children:i,...n},d)=>{const[l,c]=O({...t,axis:"horizontal"===a?"x":"y"},r),[m,f]=V.useState(!1),[p,u]=V.useState(!1),x=V.useCallback(e=>{e&&(f(e.canScrollPrev()),u(e.canScrollNext()))},[]),g=V.useCallback(()=>{null==c||c.scrollPrev()},[c]),b=V.useCallback(()=>{null==c||c.scrollNext()},[c]),h=V.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),g()):"ArrowRight"===e.key&&(e.preventDefault(),b())},[g,b]);return V.useEffect(()=>{c&&s&&s(c)},[c,s]),V.useEffect(()=>{if(c)return x(c),c.on("reInit",x),c.on("select",x),()=>{null==c||c.off("select",x)}},[c,x]),e.jsx(ur.Provider,{value:{carouselRef:l,api:c,opts:t,orientation:a||("y"===(null==t?void 0:t.axis)?"vertical":"horizontal"),scrollPrev:g,scrollNext:b,canScrollPrev:m,canScrollNext:p},children:e.jsx("div",{ref:d,onKeyDownCapture:h,className:Ne("relative",o),role:"region","aria-roledescription":"carousel",...n,children:i})})});gr.displayName="Carousel";const br=V.forwardRef(({className:a,...t},s)=>{const{carouselRef:r,orientation:o}=xr();return e.jsx("div",{ref:r,className:"overflow-hidden",children:e.jsx("div",{ref:s,className:Ne("flex","horizontal"===o?"-ml-4":"-mt-4 flex-col",a),...t})})});br.displayName="CarouselContent";const hr=V.forwardRef(({className:a,...t},s)=>{const{orientation:r}=xr();return e.jsx("div",{ref:s,role:"group","aria-roledescription":"slide",className:Ne("min-w-0 shrink-0 grow-0 basis-full","horizontal"===r?"pl-4":"pt-4",a),...t})});hr.displayName="CarouselItem";const Nr=V.forwardRef(({className:a,variant:t="outline",size:r="icon",...o},i)=>{const{orientation:n,scrollPrev:d,canScrollPrev:l}=xr();return e.jsxs(Ve,{ref:i,variant:t,size:r,className:Ne("absolute h-8 w-8 rounded-full","horizontal"===n?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",a),disabled:!l,onClick:d,...o,children:[e.jsx(s.ArrowLeft,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Previous slide"})]})});Nr.displayName="CarouselPrevious";const vr=V.forwardRef(({className:a,variant:t="outline",size:r="icon",...o},i)=>{const{orientation:n,scrollNext:d,canScrollNext:l}=xr();return e.jsxs(Ve,{ref:i,variant:t,size:r,className:Ne("absolute h-8 w-8 rounded-full","horizontal"===n?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",a),disabled:!l,onClick:d,...o,children:[e.jsx(s.ArrowRight,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Next slide"})]})});vr.displayName="CarouselNext";const yr=ge.Root,wr=ge.CollapsibleTrigger,jr=ge.CollapsibleContent,Cr=V.forwardRef(({className:a,...t},s)=>e.jsx(q.Command,{ref:s,className:Ne("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",a),...t}));Cr.displayName=q.Command.displayName;const Rr=V.forwardRef(({className:a,...t},r)=>e.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[e.jsx(s.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),e.jsx(q.Command.Input,{ref:r,className:Ne("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",a),...t})]}));Rr.displayName=q.Command.Input.displayName;const Sr=V.forwardRef(({className:a,...t},s)=>e.jsx(q.Command.List,{ref:s,className:Ne("max-h-[300px] overflow-y-auto overflow-x-hidden",a),...t}));Sr.displayName=q.Command.List.displayName;const kr=V.forwardRef((a,t)=>e.jsx(q.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...a}));kr.displayName=q.Command.Empty.displayName;const Tr=V.forwardRef(({className:a,...t},s)=>e.jsx(q.Command.Group,{ref:s,className:Ne("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",a),...t}));Tr.displayName=q.Command.Group.displayName;const Ir=V.forwardRef(({className:a,...t},s)=>e.jsx(q.Command.Separator,{ref:s,className:Ne("-mx-1 h-px bg-border",a),...t}));Ir.displayName=q.Command.Separator.displayName;const zr=V.forwardRef(({className:a,...t},s)=>e.jsx(q.Command.Item,{ref:s,className:Ne("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",a),...t}));zr.displayName=q.Command.Item.displayName;const Dr=({className:a,...t})=>e.jsx("span",{className:Ne("ml-auto text-xs tracking-widest text-muted-foreground",a),...t});Dr.displayName="CommandShortcut";const Mr=be.Provider,Pr=V.forwardRef(({className:a,...t},s)=>e.jsx(be.Viewport,{ref:s,className:Ne("fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",a),...t}));Pr.displayName=be.Viewport.displayName;const _r=m.cva("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-(--radix-toast-swipe-end-x) data-[swipe=move]:translate-x-(--radix-toast-swipe-move-x) data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full sm:data-[state=open]:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Ar=V.forwardRef(({className:a,variant:t,...s},r)=>e.jsx(be.Root,{ref:r,className:Ne(_r({variant:t}),a),...s}));Ar.displayName=be.Root.displayName;const Or=V.forwardRef(({className:a,...t},s)=>e.jsx(be.Action,{ref:s,className:Ne("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 hover:group-[.destructive]:border-destructive/30 hover:group-[.destructive]:bg-destructive hover:group-[.destructive]:text-destructive-foreground focus:group-[.destructive]:ring-destructive",a),...t}));Or.displayName=be.Action.displayName;const Lr=V.forwardRef(({className:a,...t},r)=>e.jsx(be.Close,{ref:r,className:Ne("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-hidden focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 hover:group-[.destructive]:text-red-50 focus:group-[.destructive]:ring-red-400 focus:group-[.destructive]:ring-offset-red-600",a),"toast-close":"",...t,children:e.jsx(s.X,{className:"h-4 w-4"})}));Lr.displayName=be.Close.displayName;const qr=V.forwardRef(({className:a,...t},s)=>e.jsx(be.Title,{ref:s,className:Ne("text-sm font-semibold",a),...t}));qr.displayName=be.Title.displayName;const Fr=V.forwardRef(({className:a,...t},s)=>e.jsx(be.Description,{ref:s,className:Ne("text-sm opacity-90",a),...t}));Fr.displayName=be.Description.displayName;let Gr=0;const Br=new Map,Er=e=>{if(Br.has(e))return;const a=setTimeout(()=>{Br.delete(e),Kr({type:"REMOVE_TOAST",toastId:e})},1e6);Br.set(e,a)},Hr=(e,a)=>{switch(a.type){case"ADD_TOAST":return{...e,toasts:[a.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===a.toast.id?{...e,...a.toast}:e)};case"DISMISS_TOAST":{const{toastId:t}=a;return t?Er(t):e.toasts.forEach(e=>{Er(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===t||void 0===t?{...e,open:!1}:e)}}case"REMOVE_TOAST":return void 0===a.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==a.toastId)}}},Vr=[];let $r={toasts:[]};function Kr(e){$r=Hr($r,e),Vr.forEach(e=>{e($r)})}function Ur({...e}){const a=(Gr=(Gr+1)%Number.MAX_SAFE_INTEGER,Gr.toString()),t=()=>Kr({type:"DISMISS_TOAST",toastId:a});return Kr({type:"ADD_TOAST",toast:{...e,id:a,open:!0,onOpenChange:e=>{e||t()}}}),{id:a,dismiss:t,update:e=>Kr({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function Xr(){const[e,a]=V.useState($r);return V.useEffect(()=>(Vr.push(a),()=>{const e=Vr.indexOf(a);e>-1&&Vr.splice(e,1)}),[e]),{...e,toast:Ur,dismiss:e=>Kr({type:"DISMISS_TOAST",toastId:e})}}const Wr={light:"",dark:".dark"},Jr=V.createContext(null);function Qr(){const e=V.useContext(Jr);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const Yr=V.forwardRef(({id:a,className:t,children:s,config:r,...o},i)=>{const n=V.useId(),d=`chart-${a||n.replace(/:/g,"")}`;return e.jsx(Jr.Provider,{value:{config:r},children:e.jsxs("div",{"data-chart":d,ref:i,className:Ne("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-hidden [&_.recharts-surface]:outline-hidden",t),...o,children:[e.jsx(Zr,{id:d,config:r}),e.jsx(he.ResponsiveContainer,{children:s})]})})});Yr.displayName="Chart";const Zr=({id:a,config:t})=>{const s=Object.entries(t).filter(([e,a])=>a.theme||a.color);return s.length?e.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(Wr).map(([e,t])=>`\n${t} [data-chart=${a}] {\n${s.map(([a,t])=>{var s;const r=(null==(s=t.theme)?void 0:s[e])||t.color;return r?` --color-${a}: ${r};`:null}).join("\n")}\n}\n`).join("\n")}}):null},eo=he.Tooltip,ao=V.forwardRef(({active:a,payload:t,className:s,indicator:r="dot",hideLabel:o=!1,hideIndicator:i=!1,label:n,labelFormatter:d,labelClassName:l,formatter:c,color:m,nameKey:f,labelKey:p},u)=>{const{config:x}=Qr(),g=V.useMemo(()=>{var a;if(o||!(null==t?void 0:t.length))return null;const[s]=t,r=`${p||s.dataKey||s.name||"value"}`,i=so(x,s,r),c=p||"string"!=typeof n?null==i?void 0:i.label:(null==(a=x[n])?void 0:a.label)||n;return d?e.jsx("div",{className:Ne("font-medium",l),children:d(c,t)}):c?e.jsx("div",{className:Ne("font-medium",l),children:c}):null},[n,d,t,o,l,x,p]);if(!a||!(null==t?void 0:t.length))return null;const b=1===t.length&&"dot"!==r;return e.jsxs("div",{ref:u,className:Ne("grid min-w-32 items-start gap-1.5 rounded-lg border bg-background px-2.5 py-1.5 text-xs shadow-xl",s),children:[b?null:g,e.jsx("div",{className:"grid gap-1.5",children:t.map((a,t)=>{const s=`${f||a.name||a.dataKey||"value"}`,o=so(x,a,s),n=m||a.payload.fill||a.color;return e.jsx("div",{className:Ne("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===r&&"items-center"),children:c&&void 0!==(null==a?void 0:a.value)&&a.name?c(a.value,a.name,a,t,a.payload):e.jsxs(e.Fragment,{children:[(null==o?void 0:o.icon)?e.jsx(o.icon,{}):!i&&e.jsx("div",{className:Ne("shrink-0 rounded-[2px] border-border bg-(--color-bg)",{"h-2.5 w-2.5":"dot"===r,"w-1":"line"===r,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===r,"my-0.5":b&&"dashed"===r}),style:{"--color-bg":n,"--color-border":n}}),e.jsxs("div",{className:Ne("flex flex-1 justify-between leading-none",b?"items-end":"items-center"),children:[e.jsxs("div",{className:"grid gap-1.5",children:[b?g:null,e.jsx("span",{className:"text-muted-foreground",children:(null==o?void 0:o.label)||a.name})]}),a.value&&e.jsx("span",{className:"font-mono font-medium tabular-nums text-foreground",children:a.value.toLocaleString()})]})]})},a.dataKey)})})]})});ao.displayName="ChartTooltip";const to=he.Legend;function so(e,a,t){if("object"!=typeof a||null===a)return;const s="payload"in a&&"object"==typeof a.payload&&null!==a.payload?a.payload:void 0;let r=t;return t in a&&"string"==typeof a[t]?r=a[t]:s&&t in s&&"string"==typeof s[t]&&(r=s[t]),r in e?e[r]:e[t]}V.forwardRef(({className:a,hideIcon:t=!1,payload:s,verticalAlign:r="bottom",nameKey:o},i)=>{const{config:n}=Qr();return(null==s?void 0:s.length)?e.jsx("div",{ref:i,className:Ne("flex items-center justify-center gap-4","top"===r?"pb-3":"pt-3",a),children:s.map(a=>{const s=`${o||a.dataKey||"value"}`,r=so(n,a,s);return e.jsxs("div",{className:Ne("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[(null==r?void 0:r.icon)&&!t?e.jsx(r.icon,{}):e.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:a.color}}),null==r?void 0:r.label]},a.value)})}):null}).displayName="ChartLegend";exports.Accordion=ve,exports.AccordionContent=je,exports.AccordionItem=ye,exports.AccordionTrigger=we,exports.Alert=dt,exports.AlertDescription=ct,exports.AlertDialog=mt,exports.AlertDialogAction=vt,exports.AlertDialogCancel=yt,exports.AlertDialogContent=xt,exports.AlertDialogDescription=Nt,exports.AlertDialogFooter=bt,exports.AlertDialogHeader=gt,exports.AlertDialogTitle=ht,exports.AlertDialogTrigger=ft,exports.AlertTitle=lt,exports.AspectRatio=Ce,exports.Avatar=wt,exports.AvatarFallback=Ct,exports.AvatarImage=jt,exports.Badge=function({className:a,variant:t,...s}){return e.jsx("div",{className:Ne(it({variant:t}),a),...s})},exports.Breadcrumb=Rt,exports.BreadcrumbItem=kt,exports.BreadcrumbLink=Tt,exports.BreadcrumbList=St,exports.BreadcrumbPage=It,exports.BreadcrumbSeparator=zt,exports.Button=Ve,exports.Calendar=Mt,exports.Card=Re,exports.CardContent=Ie,exports.CardDescription=Te,exports.CardFooter=ze,exports.CardHeader=Se,exports.CardTitle=ke,exports.Carousel=gr,exports.CarouselContent=br,exports.CarouselItem=hr,exports.CarouselNext=vr,exports.CarouselPrevious=Nr,exports.ChartContainer=Yr,exports.ChartLegend=to,exports.ChartStyle=Zr,exports.ChartTooltip=eo,exports.ChartTooltipContent=ao,exports.Checkbox=ka,exports.Collapsible=yr,exports.CollapsibleContent=jr,exports.CollapsibleTrigger=wr,exports.Command=Cr,exports.CommandDialog=({children:a,...t})=>e.jsx(ks,{...t,children:e.jsx(Ms,{className:"overflow-hidden p-0 shadow-lg",children:e.jsx(Cr,{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:a})})}),exports.CommandEmpty=kr,exports.CommandGroup=Tr,exports.CommandInput=Rr,exports.CommandItem=zr,exports.CommandList=Sr,exports.CommandSeparator=Ir,exports.CommandShortcut=Dr,exports.ContextMenu=Zs,exports.ContextMenuCheckboxItem=lr,exports.ContextMenuContent=nr,exports.ContextMenuGroup=ar,exports.ContextMenuItem=dr,exports.ContextMenuLabel=mr,exports.ContextMenuPortal=tr,exports.ContextMenuRadioGroup=rr,exports.ContextMenuRadioItem=cr,exports.ContextMenuSeparator=fr,exports.ContextMenuShortcut=pr,exports.ContextMenuSub=sr,exports.ContextMenuSubContent=ir,exports.ContextMenuSubTrigger=or,exports.ContextMenuTrigger=er,exports.Dialog=ks,exports.DialogClose=zs,exports.DialogContent=Ms,exports.DialogDescription=Os,exports.DialogFooter=_s,exports.DialogHeader=Ps,exports.DialogTitle=As,exports.DialogTrigger=Ts,exports.Drawer=Ls,exports.DrawerClose=Gs,exports.DrawerContent=Es,exports.DrawerDescription=Ks,exports.DrawerFooter=Vs,exports.DrawerHeader=Hs,exports.DrawerTitle=$s,exports.DrawerTrigger=qs,exports.DropdownMenu=fs,exports.DropdownMenuCheckboxItem=ws,exports.DropdownMenuContent=vs,exports.DropdownMenuGroup=us,exports.DropdownMenuItem=ys,exports.DropdownMenuLabel=Cs,exports.DropdownMenuPortal=xs,exports.DropdownMenuRadioGroup=bs,exports.DropdownMenuRadioItem=js,exports.DropdownMenuSeparator=Rs,exports.DropdownMenuShortcut=Ss,exports.DropdownMenuSub=gs,exports.DropdownMenuSubContent=Ns,exports.DropdownMenuSubTrigger=hs,exports.DropdownMenuTrigger=ps,exports.Form=Ka,exports.FormControl=Ya,exports.FormDescription=Za,exports.FormField=({...a})=>e.jsx(Ua.Provider,{value:{name:a.name},children:e.jsx(y.Controller,{...a})}),exports.FormItem=Ja,exports.FormLabel=Qa,exports.FormMessage=et,exports.HoverCard=Js,exports.HoverCardContent=Ys,exports.HoverCardTrigger=Qs,exports.Input=$e,exports.InputOTP=Ma,exports.InputOTPGroup=Pa,exports.InputOTPSeparator=Aa,exports.InputOTPSlot=_a,exports.Label=Ra,exports.Menubar=as,exports.MenubarCheckboxItem=ns,exports.MenubarContent=os,exports.MenubarItem=is,exports.MenubarLabel=ls,exports.MenubarMenu=Yt,exports.MenubarRadioGroup=es,exports.MenubarRadioItem=ds,exports.MenubarSeparator=cs,exports.MenubarShortcut=ms,exports.MenubarSub=Zt,exports.MenubarSubContent=rs,exports.MenubarSubTrigger=ss,exports.MenubarTrigger=ts,exports.NavigationMenu=Vt,exports.NavigationMenuContent=Wt,exports.NavigationMenuItem=Kt,exports.NavigationMenuLink=Jt,exports.NavigationMenuList=$t,exports.NavigationMenuTrigger=Xt,exports.Pagination=Lt,exports.PaginationContent=qt,exports.PaginationEllipsis=Ht,exports.PaginationItem=Ft,exports.PaginationLink=Gt,exports.PaginationNext=Et,exports.PaginationPrevious=Bt,exports.Popover=Us,exports.PopoverContent=Ws,exports.PopoverTrigger=Xs,exports.Progress=Dt,exports.RadioGroup=Ta,exports.RadioGroupItem=Ia,exports.ResizableHandle=({withHandle:a,className:t,...r})=>e.jsx(W.PanelResizeHandle,{className:Ne("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),...r,children:a&&e.jsx("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:e.jsx(s.GripVertical,{className:"h-2.5 w-2.5"})})}),exports.ResizablePanel=Ee,exports.ResizablePanelGroup=({className:a,...t})=>e.jsx(W.PanelGroup,{className:Ne("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",a),...t}),exports.ScrollArea=Me,exports.ScrollBar=Pe,exports.Select=Oa,exports.SelectContent=Ea,exports.SelectGroup=La,exports.SelectItem=Va,exports.SelectLabel=Ha,exports.SelectScrollDownButton=Ba,exports.SelectScrollUpButton=Ga,exports.SelectSeparator=$a,exports.SelectTrigger=Fa,exports.SelectValue=qa,exports.Separator=De,exports.Sheet=Ke,exports.SheetClose=Xe,exports.SheetContent=Ye,exports.SheetDescription=ta,exports.SheetFooter=ea,exports.SheetHeader=Ze,exports.SheetTitle=aa,exports.SheetTrigger=Ue,exports.Sidebar=ca,exports.SidebarContent=pa,exports.SidebarFooter=fa,exports.SidebarGroup=ua,exports.SidebarGroupContent=ga,exports.SidebarGroupLabel=xa,exports.SidebarHeader=ma,exports.SidebarMenu=ba,exports.SidebarMenuButton=va,exports.SidebarMenuItem=ha,exports.SidebarMenuSub=ya,exports.SidebarMenuSubButton=ja,exports.SidebarMenuSubItem=wa,exports.Skeleton=sa,exports.Slider=Da,exports.Sonner=({...a})=>{const{theme:t="system"}=B.useTheme();return e.jsx(E.Toaster,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster] 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"}},...a})},exports.Switch=za,exports.Table=_e,exports.TableBody=Oe,exports.TableCaption=Be,exports.TableCell=Ge,exports.TableFooter=Le,exports.TableHead=Fe,exports.TableHeader=Ae,exports.TableRow=qe,exports.Tabs=Pt,exports.TabsContent=Ot,exports.TabsList=_t,exports.TabsTrigger=At,exports.Textarea=Sa,exports.Toast=Ar,exports.ToastAction=Or,exports.ToastClose=Lr,exports.ToastDescription=Fr,exports.ToastProvider=Mr,exports.ToastTitle=qr,exports.ToastViewport=Pr,exports.Toaster=function(){const{toasts:a}=Xr();return e.jsxs(Mr,{children:[a.map(function({id:a,title:t,description:s,action:r,...o}){return e.jsxs(Ar,{...o,children:[e.jsxs("div",{className:"grid gap-1",children:[t&&e.jsx(qr,{children:t}),s&&e.jsx(Fr,{children:s})]}),r,e.jsx(Lr,{})]},a)}),e.jsx(Pr,{})]})},exports.Toggle=tt,exports.ToggleGroup=rt,exports.ToggleGroupItem=ot,exports.Tooltip=oa,exports.TooltipContent=na,exports.TooltipProvider=ra,exports.TooltipTrigger=ia,exports.badgeVariants=it,exports.buttonVariants=He,exports.navigationMenuTriggerStyle=Ut,exports.toggleVariants=at,exports.useToast=Xr;