@reeverdev/ui 0.2.88 → 0.2.89

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- 'use strict';var _=require('react'),classVarianceAuthority=require('class-variance-authority'),lucideReact=require('lucide-react'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime'),$o=require('react-dom'),sonner=require('sonner'),vaul=require('vaul'),reactDayPicker=require('react-day-picker'),dateFns=require('date-fns'),cmdk=require('cmdk'),reactResizablePanels=require('react-resizable-panels'),reactColorful=require('react-colorful'),recharts=require('recharts'),core=require('@dnd-kit/core'),sortable=require('@dnd-kit/sortable'),utilities=require('@dnd-kit/utilities'),UM=require('embla-carousel-react'),react=require('@tiptap/react'),aT=require('@tiptap/starter-kit'),nT=require('@tiptap/extension-link'),oT=require('@tiptap/extension-underline'),sT=require('@tiptap/extension-text-align'),iT=require('@tiptap/extension-placeholder'),kT=require('react-image-crop');require('react-image-crop/dist/ReactCrop.css');var AT=require('react-qr-code'),nextThemes=require('next-themes'),framerMotion=require('framer-motion'),Vn=require('canvas-confetti');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var ___namespace=/*#__PURE__*/_interopNamespace(_);var $o__namespace=/*#__PURE__*/_interopNamespace($o);var UM__default=/*#__PURE__*/_interopDefault(UM);var aT__default=/*#__PURE__*/_interopDefault(aT);var nT__default=/*#__PURE__*/_interopDefault(nT);var oT__default=/*#__PURE__*/_interopDefault(oT);var sT__default=/*#__PURE__*/_interopDefault(sT);var iT__default=/*#__PURE__*/_interopDefault(iT);var kT__default=/*#__PURE__*/_interopDefault(kT);var AT__default=/*#__PURE__*/_interopDefault(AT);var Vn__default=/*#__PURE__*/_interopDefault(Vn);function i(...e){return tailwindMerge.twMerge(clsx.clsx(e))}var Fy=classVarianceAuthority.cva("relative w-full p-4",{variants:{variant:{solid:"border",bordered:"border bg-transparent",flat:""},type:{default:"",success:"",warning:"",error:""},radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-full"}},compoundVariants:[{variant:"solid",type:"default",className:"!border-primary bg-primary text-primary-foreground [&>svg]:text-primary-foreground"},{variant:"bordered",type:"default",className:"!border-primary text-primary [&>svg]:text-primary"},{variant:"flat",type:"default",className:"bg-primary/10 text-primary [&>svg]:text-primary"},{variant:"solid",type:"success",className:"!border-green-600 bg-green-600 text-white dark:!border-green-500 dark:bg-green-500 [&>svg]:text-white"},{variant:"bordered",type:"success",className:"!border-green-600 text-green-600 dark:!border-green-500 dark:text-green-500 [&>svg]:text-green-600 dark:[&>svg]:text-green-500"},{variant:"flat",type:"success",className:"bg-green-600/10 text-green-600 dark:bg-green-500/10 dark:text-green-500 [&>svg]:text-green-600 dark:[&>svg]:text-green-500"},{variant:"solid",type:"warning",className:"!border-amber-600 bg-amber-600 text-white dark:!border-amber-500 dark:bg-amber-500 [&>svg]:text-white"},{variant:"bordered",type:"warning",className:"!border-amber-600 text-amber-600 dark:!border-amber-500 dark:text-amber-500 [&>svg]:text-amber-600 dark:[&>svg]:text-amber-500"},{variant:"flat",type:"warning",className:"bg-amber-600/10 text-amber-600 dark:bg-amber-500/10 dark:text-amber-500 [&>svg]:text-amber-600 dark:[&>svg]:text-amber-500"},{variant:"solid",type:"error",className:"!border-red-600 bg-red-600 text-white dark:!border-red-500 dark:bg-red-500 [&>svg]:text-white"},{variant:"bordered",type:"error",className:"!border-red-600 text-red-600 dark:!border-red-500 dark:text-red-500 [&>svg]:text-red-600 dark:[&>svg]:text-red-500"},{variant:"flat",type:"error",className:"bg-red-600/10 text-red-600 dark:bg-red-500/10 dark:text-red-500 [&>svg]:text-red-600 dark:[&>svg]:text-red-500"}],defaultVariants:{variant:"solid",type:"default",radius:"md"}}),Ky={default:lucideReact.Info,success:lucideReact.CheckCircle2,warning:lucideReact.AlertTriangle,error:lucideReact.AlertCircle},Gy=___namespace.forwardRef(({className:e,variant:t="solid",type:r="default",radius:a="md",icon:n,hideIcon:o=false,endContent:s,children:l,...c},d)=>{let m=Ky[r],u=!o,p=n!==void 0?n:m?jsxRuntime.jsx(m,{className:"h-4 w-4"}):null;return jsxRuntime.jsxs("div",{ref:d,role:"alert",className:i(Fy({variant:t,type:r,radius:a}),s&&"flex items-center justify-between",e),...c,children:[jsxRuntime.jsxs("div",{className:"flex items-start gap-3",children:[u&&p&&jsxRuntime.jsx("span",{className:"mt-0.5 shrink-0",children:p}),jsxRuntime.jsx("div",{children:l})]}),s&&jsxRuntime.jsx("div",{className:"shrink-0 ml-4",children:s})]})});Gy.displayName="Alert";var $y=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("h5",{ref:r,className:i("mb-1 font-medium leading-none tracking-tight",e),...t}));$y.displayName="AlertTitle";var _y=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("text-sm [&_p]:leading-relaxed",e),...t}));_y.displayName="AlertDescription";var Wy=classVarianceAuthority.cva("absolute rounded-full flex items-center justify-center font-semibold",{variants:{variant:{solid:"",bordered:"border-2"},color:{default:"",success:"",warning:"",danger:"",info:""},size:{sm:"",md:"",lg:""},placement:{"top-right":"-top-1 -right-1","top-left":"-top-1 -left-1","bottom-right":"-bottom-1 -right-1","bottom-left":"-bottom-1 -left-1"}},compoundVariants:[{variant:"solid",color:"default",className:"bg-zinc-800 text-white dark:bg-zinc-200 dark:text-zinc-900"},{variant:"solid",color:"success",className:"bg-green-600 text-white dark:bg-green-500"},{variant:"solid",color:"warning",className:"bg-amber-600 text-white dark:bg-amber-500"},{variant:"solid",color:"danger",className:"bg-red-600 text-white dark:bg-red-500"},{variant:"solid",color:"info",className:"bg-blue-600 text-white dark:bg-blue-500"},{variant:"bordered",color:"default",className:"bg-white border-zinc-800 text-zinc-800 dark:bg-zinc-900 dark:border-zinc-200 dark:text-zinc-200"},{variant:"bordered",color:"success",className:"bg-white border-green-600 text-green-600 dark:bg-zinc-900 dark:border-green-500 dark:text-green-500"},{variant:"bordered",color:"warning",className:"bg-white border-amber-600 text-amber-600 dark:bg-zinc-900 dark:border-amber-500 dark:text-amber-500"},{variant:"bordered",color:"danger",className:"bg-white border-red-600 text-red-600 dark:bg-zinc-900 dark:border-red-500 dark:text-red-500"},{variant:"bordered",color:"info",className:"bg-white border-blue-600 text-blue-600 dark:bg-zinc-900 dark:border-blue-500 dark:text-blue-500"},{size:"sm",className:"min-w-4 h-4 text-[10px] px-1"},{size:"md",className:"min-w-5 h-5 text-xs px-1"},{size:"lg",className:"min-w-6 h-6 text-sm px-1.5"}],defaultVariants:{variant:"solid",color:"default",size:"md",placement:"top-right"}}),jy={sm:"w-2 h-2",md:"w-2.5 h-2.5",lg:"w-3 h-3"},Yy=___namespace.forwardRef(({className:e,children:t,content:r,variant:a="solid",color:n="default",size:o="md",placement:s="top-right",isDot:l=false,...c},d)=>jsxRuntime.jsxs("div",{ref:d,className:i("relative inline-flex",e),...c,children:[t,jsxRuntime.jsx("span",{className:i(Wy({variant:a,color:n,size:l?void 0:o,placement:s}),l&&jy[o||"md"],l&&"min-w-0 p-0"),children:!l&&r})]}));Yy.displayName="Badge";var Uy=classVarianceAuthority.cva("inline-flex items-center gap-1 font-medium rounded-full",{variants:{color:{default:"bg-zinc-100 text-zinc-900 dark:bg-zinc-800 dark:text-white",success:"bg-green-600/20 text-green-700 dark:bg-green-500/20 dark:text-green-500",warning:"bg-amber-600/20 text-amber-700 dark:bg-amber-500/20 dark:text-amber-500",danger:"bg-red-600/20 text-red-700 dark:bg-red-500/20 dark:text-red-500",info:"bg-blue-600/20 text-blue-700 dark:bg-blue-500/20 dark:text-blue-500"},size:{sm:"px-2 py-0.5 text-[10px]",md:"px-2.5 py-0.5 text-xs",lg:"px-3 py-1 text-sm"}},defaultVariants:{color:"default",size:"md"}}),Xy=___namespace.forwardRef(({className:e,color:t,size:r,...a},n)=>jsxRuntime.jsx("span",{ref:n,className:i(Uy({color:t,size:r}),e),...a}));Xy.displayName="TextBadge";var fr=classVarianceAuthority.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium ring-offset-background transition-all duration-200 ease-out cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed active:scale-[0.97] [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{solid:"",bordered:"border-2 border-current bg-transparent hover:opacity-70",light:"bg-transparent hover:bg-zinc-100 dark:hover:bg-zinc-800",flat:"bg-zinc-100 dark:bg-zinc-800 hover:opacity-70",ghost:"border-2 bg-transparent"},color:{default:"",success:"",warning:"",danger:"",info:""},size:{sm:"h-9 px-3 text-xs",md:"h-10 px-4",lg:"h-11 px-5 text-base",icon:"h-10 w-10"},radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-full"}},compoundVariants:[{variant:"solid",color:"default",className:"bg-zinc-800 text-white hover:bg-zinc-700 dark:bg-zinc-200 dark:text-zinc-900 dark:hover:bg-zinc-300"},{variant:"bordered",color:"default",className:"text-zinc-900 dark:text-white"},{variant:"light",color:"default",className:"text-zinc-900 hover:bg-zinc-100 dark:text-white dark:hover:bg-zinc-800"},{variant:"flat",color:"default",className:"bg-zinc-100 text-zinc-900 dark:bg-zinc-800 dark:text-white"},{variant:"ghost",color:"default",className:"text-zinc-900 border-zinc-900 hover:bg-zinc-900 hover:text-white dark:text-white dark:border-white dark:hover:bg-white dark:hover:text-zinc-900"},{variant:"solid",color:"success",className:"bg-green-600 text-white hover:bg-green-700 dark:bg-green-700 dark:text-white dark:hover:bg-green-600"},{variant:"bordered",color:"success",className:"text-green-600 dark:text-green-500"},{variant:"light",color:"success",className:"text-green-600 hover:bg-green-600/10 dark:text-green-500 dark:hover:bg-green-500/10"},{variant:"flat",color:"success",className:"bg-green-600/20 text-green-700 dark:bg-green-500/20 dark:text-green-500"},{variant:"ghost",color:"success",className:"text-green-600 border-green-600 hover:bg-green-600 hover:text-white dark:text-green-500 dark:border-green-500 dark:hover:bg-green-500 dark:hover:text-white"},{variant:"solid",color:"warning",className:"bg-amber-600 text-white hover:bg-amber-700 dark:bg-amber-700 dark:text-white dark:hover:bg-amber-600"},{variant:"bordered",color:"warning",className:"text-amber-600 dark:text-amber-500"},{variant:"light",color:"warning",className:"text-amber-600 hover:bg-amber-600/10 dark:text-amber-500 dark:hover:bg-amber-500/10"},{variant:"flat",color:"warning",className:"bg-amber-600/20 text-amber-700 dark:bg-amber-500/20 dark:text-amber-500"},{variant:"ghost",color:"warning",className:"text-amber-600 border-amber-600 hover:bg-amber-600 hover:text-white dark:text-amber-500 dark:border-amber-500 dark:hover:bg-amber-500 dark:hover:text-white"},{variant:"solid",color:"danger",className:"bg-red-600 text-white hover:bg-red-700 dark:bg-red-700 dark:text-white dark:hover:bg-red-600"},{variant:"bordered",color:"danger",className:"text-red-600 dark:text-red-500"},{variant:"light",color:"danger",className:"text-red-600 hover:bg-red-600/10 dark:text-red-500 dark:hover:bg-red-500/10"},{variant:"flat",color:"danger",className:"bg-red-600/20 text-red-700 dark:bg-red-500/20 dark:text-red-500"},{variant:"ghost",color:"danger",className:"text-red-600 border-red-600 hover:bg-red-600 hover:text-white dark:text-red-500 dark:border-red-500 dark:hover:bg-red-500 dark:hover:text-white"},{variant:"solid",color:"info",className:"bg-blue-600 text-white hover:bg-blue-700 dark:bg-blue-700 dark:text-white dark:hover:bg-blue-600"},{variant:"bordered",color:"info",className:"text-blue-600 dark:text-blue-500"},{variant:"light",color:"info",className:"text-blue-600 hover:bg-blue-600/10 dark:text-blue-500 dark:hover:bg-blue-500/10"},{variant:"flat",color:"info",className:"bg-blue-600/20 text-blue-700 dark:bg-blue-500/20 dark:text-blue-500"},{variant:"ghost",color:"info",className:"text-blue-600 border-blue-600 hover:bg-blue-600 hover:text-white dark:text-blue-500 dark:border-blue-500 dark:hover:bg-blue-500 dark:hover:text-white"}],defaultVariants:{variant:"solid",color:"default",size:"md",radius:"md"}}),Mo=___namespace.forwardRef(({children:e,...t},r)=>___namespace.isValidElement(e)?___namespace.cloneElement(e,{...t,...e.props,ref:r,className:i(t.className,e.props.className),style:{...t.style,...e.props.style}}):null);Mo.displayName="Slot";var Z=___namespace.forwardRef(({className:e,variant:t,color:r,size:a,radius:n,asChild:o=false,href:s,loading:l=false,startContent:c,endContent:d,children:m,disabled:u,style:p,...f},b)=>{let x=u||l,v=t==="bordered"?{borderColor:"currentColor",...p}:p,R=l?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(lucideReact.Loader2,{className:"animate-spin"}),m]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[c,m,d]});return o?jsxRuntime.jsx(Mo,{className:i(fr({variant:t,color:r,size:a,radius:n,className:e})),ref:b,style:v,...f,children:R}):s?jsxRuntime.jsx("a",{href:s,className:i(fr({variant:t,color:r,size:a,radius:n,className:e}),x&&"pointer-events-none opacity-50"),style:v,...f,children:R}):jsxRuntime.jsx("button",{className:i(fr({variant:t,color:r,size:a,radius:n,className:e})),ref:b,disabled:x,style:v,...f,children:R})});Z.displayName="Button";var Ec=classVarianceAuthority.cva("border bg-card text-card-foreground shadow-sm",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg"}},defaultVariants:{radius:"lg"}}),Lc=___namespace.forwardRef(({className:e,radius:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i(Ec({radius:t,className:e})),...r}));Lc.displayName="Card";var Dc=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("p-6 text-2xl font-semibold leading-none tracking-tight",e),...t}));Dc.displayName="CardHeader";var Sc=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("p-6 pt-0",e),...t}));Sc.displayName="CardContent";var Hc=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex items-center p-6 pt-0",e),...t}));Hc.displayName="CardFooter";var On=___namespace.forwardRef(({className:e,checked:t,defaultChecked:r=false,onCheckedChange:a,disabled:n,required:o,name:s,value:l="on",text:c,description:d,onKeyDown:m,...u},p)=>{let[f,b]=___namespace.useState(r),x=t!==void 0,g=x?t:f,[v,R]=___namespace.useState(false),w=___namespace.useId(),h=()=>{if(n)return;let E=g==="indeterminate"?true:!g;x||b(E),a?.(E);},C=E=>{E.key==="Enter"&&E.preventDefault(),m?.(E);},y=g===true,T=g==="indeterminate",N=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{type:"button",role:"checkbox",id:c?w:void 0,"aria-checked":T?"mixed":y,"aria-required":o,disabled:n,ref:p,className:i("peer h-4 w-4 shrink-0 rounded-sm border border-primary focus-visible:outline-none cursor-pointer disabled:cursor-not-allowed disabled:opacity-50 transition-colors",y&&"bg-primary text-primary-foreground",T&&"bg-background text-foreground",!c&&e),style:{borderColor:v?"var(--color-foreground)":void 0},onClick:h,onKeyDown:C,onFocus:()=>R(true),onBlur:()=>R(false),...u,children:(y||T)&&jsxRuntime.jsx("span",{className:"flex items-center justify-center text-current",children:T?jsxRuntime.jsx(lucideReact.Minus,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),s&&jsxRuntime.jsx("input",{type:"checkbox","aria-hidden":true,tabIndex:-1,name:s,value:l,checked:y,required:o,disabled:n,onChange:()=>{},style:{position:"absolute",pointerEvents:"none",opacity:0,margin:0,width:0,height:0}})]});return c?jsxRuntime.jsxs("div",{className:i("flex items-start gap-2",e),children:[N,jsxRuntime.jsxs("div",{className:"flex flex-col gap-0.5",children:[jsxRuntime.jsx("label",{htmlFor:w,className:i("text-sm font-medium leading-none cursor-pointer",n&&"cursor-not-allowed opacity-50"),onClick:h,children:c}),d&&jsxRuntime.jsx("p",{className:"text-xs text-muted-foreground",children:d})]})]}):N});On.displayName="Checkbox";var Vc=___namespace.createContext(null),en=()=>{let e=___namespace.useContext(Vc);if(!e)throw new Error("Dialog components must be used within a Dialog");return e},Po=({children:e,open:t,defaultOpen:r=false,onOpenChange:a})=>{let[n,o]=___namespace.useState(r),s=t!==void 0,l=s?t:n,c=___namespace.useId(),d=___namespace.useId(),m=___namespace.useId(),u=___namespace.useCallback(p=>{s||o(p),a?.(p);},[s,a]);return jsxRuntime.jsx(Vc.Provider,{value:{open:l,onOpenChange:u,contentId:c,titleId:d,descriptionId:m},children:e})};Po.displayName="Dialog";var Ac=___namespace.forwardRef(({asChild:e,children:t,onClick:r,...a},n)=>{let{onOpenChange:o}=en(),s=l=>{r?.(l),o(true);};return e&&___namespace.isValidElement(t)?___namespace.cloneElement(t,{ref:n,onClick:l=>{t.props.onClick?.(l),o(true);},...a}):jsxRuntime.jsx("button",{ref:n,type:"button",onClick:s,...a,children:t})});Ac.displayName="DialogTrigger";var zc=___namespace.forwardRef(({asChild:e,children:t,onClick:r,...a},n)=>{let{onOpenChange:o}=en(),s=l=>{r?.(l),o(false);};return e&&___namespace.isValidElement(t)?___namespace.cloneElement(t,{ref:n,onClick:l=>{t.props.onClick?.(l),o(false);},...a}):jsxRuntime.jsx("button",{ref:n,type:"button",onClick:s,...a,children:t})});zc.displayName="DialogClose";var xi=({children:e,container:t})=>{let[r,a]=___namespace.useState(false);return ___namespace.useEffect(()=>{a(true);},[]),r?$o__namespace.createPortal(e,t||document.body):null};xi.displayName="DialogPortal";var yi=___namespace.forwardRef(({className:e,...t},r)=>{let{open:a,onOpenChange:n}=en();return a?jsxRuntime.jsx("div",{ref:r,"data-state":a?"open":"closed",className:i("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),onClick:()=>n(false),"aria-hidden":"true",...t}):null});yi.displayName="DialogOverlay";var ko=___namespace.forwardRef(({className:e,children:t,onEscapeKeyDown:r,onInteractOutside:a,...n},o)=>{let{open:s,onOpenChange:l,contentId:c,titleId:d,descriptionId:m}=en(),[u,p]=___namespace.useState(false);return ___namespace.useEffect(()=>{p(true);},[]),___namespace.useEffect(()=>(s&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="";}),[s]),___namespace.useEffect(()=>{if(!s)return;let f=b=>{b.key==="Escape"&&(r?.(),l(false));};return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[s,l,r]),!u||!s?null:jsxRuntime.jsxs(xi,{children:[jsxRuntime.jsx(yi,{}),jsxRuntime.jsxs("div",{ref:o,id:c,role:"dialog","aria-modal":"true","aria-labelledby":d,"aria-describedby":m,"data-state":s?"open":"closed",className:i("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",e),...n,children:[t,jsxRuntime.jsxs("button",{type:"button",onClick:()=>l(false),className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none cursor-pointer",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]})]})});ko.displayName="DialogContent";var Bc=({className:e,...t})=>jsxRuntime.jsx("div",{className:i("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Bc.displayName="DialogHeader";var Oc=({className:e,...t})=>jsxRuntime.jsx("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Oc.displayName="DialogFooter";var Fc=___namespace.forwardRef(({className:e,...t},r)=>{let{titleId:a}=en();return jsxRuntime.jsx("h2",{ref:r,id:a,className:i("text-lg font-semibold leading-none tracking-tight",e),...t})});Fc.displayName="DialogTitle";var Kc=___namespace.forwardRef(({className:e,...t},r)=>{let{descriptionId:a}=en();return jsxRuntime.jsx("p",{ref:r,id:a,className:i("text-sm text-muted-foreground",e),...t})});Kc.displayName="DialogDescription";var oR=classVarianceAuthority.cva("flex h-10 w-full border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"md"}}),Eo=___namespace.forwardRef(({className:e,type:t,radius:r,label:a,isRequired:n,description:o,errorMessage:s,isInvalid:l,onFocus:c,onBlur:d,style:m,...u},p)=>{let[f,b]=___namespace.useState(false),x=___namespace.useId(),g=u.id||x,v=l||!!s,R=jsxRuntime.jsx("input",{id:g,type:t,className:i(oR({radius:r}),v&&"border-danger focus:border-danger",!a&&e),ref:p,required:n,"aria-invalid":v,"aria-describedby":o||s?`${g}-description`:void 0,style:{...m,borderColor:v?void 0:f?"var(--color-foreground)":void 0},onFocus:w=>{b(true),c?.(w);},onBlur:w=>{b(false),d?.(w);},...u});return !a&&!o&&!s?R:jsxRuntime.jsxs("div",{className:i("flex flex-col gap-1.5",e),children:[a&&jsxRuntime.jsxs("label",{htmlFor:g,className:"text-sm font-medium leading-none",children:[a,n&&jsxRuntime.jsx("span",{className:"text-danger ml-1",children:"*"})]}),R,(o||s)&&jsxRuntime.jsx("p",{id:`${g}-description`,className:i("text-xs",v?"text-danger":"text-muted-foreground"),children:s||o})]})});Eo.displayName="Input";var iR=classVarianceAuthority.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ra=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("label",{ref:r,className:i(iR(),e),...t}));Ra.displayName="Label";var Gr=___namespace.forwardRef(({className:e,orientation:t="horizontal",decorative:r=true,text:a,...n},o)=>{let s=r?{role:"none"}:{role:"separator","aria-orientation":t};return a&&t==="horizontal"?jsxRuntime.jsxs("div",{className:i("flex items-center gap-4",e),children:[jsxRuntime.jsx("div",{...s,className:"shrink-0 bg-border h-[1px] flex-1"}),jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:a}),jsxRuntime.jsx("div",{...s,className:"shrink-0 bg-border h-[1px] flex-1"})]}):jsxRuntime.jsx("div",{ref:o,...s,className:i("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n})});Gr.displayName="Separator";var Wc=___namespace.forwardRef(({className:e,checked:t,defaultChecked:r=false,onCheckedChange:a,disabled:n,required:o,name:s,value:l="on",onKeyDown:c,...d},m)=>{let[u,p]=___namespace.useState(r),f=t!==void 0,b=f?t:u,x=()=>{if(n)return;let v=!b;f||p(v),a?.(v);},g=v=>{v.key==="Enter"&&v.preventDefault(),c?.(v);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{type:"button",role:"switch","aria-checked":b,"aria-required":o,disabled:n,ref:m,className:i("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",b?"bg-primary":"bg-input",e),onClick:x,onKeyDown:g,...d,children:jsxRuntime.jsx("span",{className:i("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform",b?"translate-x-5":"translate-x-0")})}),s&&jsxRuntime.jsx("input",{type:"checkbox","aria-hidden":true,tabIndex:-1,name:s,value:l,checked:b,required:o,disabled:n,onChange:()=>{},style:{position:"absolute",pointerEvents:"none",opacity:0,margin:0,width:0,height:0}})]})});Wc.displayName="Switch";var pR=classVarianceAuthority.cva("flex min-h-[80px] w-full border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg"}},defaultVariants:{radius:"md"}}),jc=___namespace.forwardRef(({className:e,radius:t,onFocus:r,onBlur:a,style:n,...o},s)=>{let[l,c]=___namespace.useState(false);return jsxRuntime.jsx("textarea",{className:i(pR({radius:t,className:e})),ref:s,style:{...n,borderColor:l?"var(--color-foreground)":void 0},onFocus:d=>{c(true),r?.(d);},onBlur:d=>{c(false),a?.(d);},...o})});jc.displayName="Textarea";var Uc=classVarianceAuthority.cva("rounded-md bg-muted",{variants:{variant:{pulse:"animate-pulse",shimmer:"skeleton-shimmer",static:""}},defaultVariants:{variant:"pulse"}}),Ho=___namespace.forwardRef(({className:e,variant:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i(Uc({variant:t,className:e})),...r}));Ho.displayName="Skeleton";var hR=classVarianceAuthority.cva("relative flex shrink-0 overflow-hidden cursor-pointer",{variants:{size:{sm:"h-8 w-8",md:"h-10 w-10",lg:"h-12 w-12"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{size:"md",radius:"full"}}),Xc=___namespace.createContext(null),qc=()=>{let e=___namespace.useContext(Xc);if(!e)throw new Error("Avatar components must be used within an Avatar");return e},wa=___namespace.forwardRef(({className:e,size:t,radius:r,...a},n)=>{let[o,s]=___namespace.useState("idle");return jsxRuntime.jsx(Xc.Provider,{value:{imageLoadingStatus:o,onImageLoadingStatusChange:s},children:jsxRuntime.jsx("span",{ref:n,className:i(hR({size:t,radius:r,className:e})),...a})})});wa.displayName="Avatar";var rn=___namespace.forwardRef(({className:e,src:t,alt:r,onLoadingStatusChange:a,...n},o)=>{let{imageLoadingStatus:s,onImageLoadingStatusChange:l}=qc();return ___namespace.useEffect(()=>{if(!t){l("error");return}l("loading"),a?.("loading");let c=new Image;c.src=t,c.onload=()=>{l("loaded"),a?.("loaded");},c.onerror=()=>{l("error"),a?.("error");};},[t,l,a]),s!=="loaded"?null:jsxRuntime.jsx("img",{ref:o,src:t,alt:r,className:i("aspect-square h-full w-full object-cover",e),...n})});rn.displayName="AvatarImage";var Ca=___namespace.forwardRef(({className:e,delayMs:t=0,children:r,...a},n)=>{let{imageLoadingStatus:o}=qc(),[s,l]=___namespace.useState(t===0);return ___namespace.useEffect(()=>{if(t>0){let c=setTimeout(()=>l(true),t);return ()=>clearTimeout(c)}},[t]),o==="loaded"||!s?null:jsxRuntime.jsx("span",{ref:n,className:i("flex h-full w-full items-center justify-center bg-muted",e),...a,children:r})});Ca.displayName="AvatarFallback";var Jc=___namespace.createContext({delayDuration:700,skipDelayDuration:300}),$r=({children:e,delayDuration:t=700,skipDelayDuration:r=300})=>jsxRuntime.jsx(Jc.Provider,{value:{delayDuration:t,skipDelayDuration:r},children:e});$r.displayName="TooltipProvider";var Qc=___namespace.createContext(null),ed=()=>{let e=___namespace.useContext(Qc);if(!e)throw new Error("Tooltip components must be used within a Tooltip");return e},_r=({children:e,open:t,defaultOpen:r=false,onOpenChange:a,delayDuration:n})=>{let o=___namespace.useContext(Jc),[s,l]=___namespace.useState(r),c=t!==void 0,d=c?t:s,m=___namespace.useRef(null),u=___namespace.useId(),p=___namespace.useRef(null),f=n??o.delayDuration,b=___namespace.useCallback(x=>{p.current&&clearTimeout(p.current),x?p.current=setTimeout(()=>{c||l(true),a?.(true);},f):(c||l(false),a?.(false));},[c,a,f]);return ___namespace.useEffect(()=>()=>{p.current&&clearTimeout(p.current);},[]),jsxRuntime.jsx(Qc.Provider,{value:{open:d,onOpenChange:b,triggerRef:m,contentId:u},children:e})};_r.displayName="Tooltip";var Wr=___namespace.forwardRef(({asChild:e,children:t,onMouseEnter:r,onMouseLeave:a,onFocus:n,onBlur:o,...s},l)=>{let{onOpenChange:c,triggerRef:d,contentId:m,open:u}=ed(),p=g=>{r?.(g),c(true);},f=g=>{a?.(g),c(false);},b=g=>{n?.(g),c(true);},x=g=>{o?.(g),c(false);};return e&&___namespace.isValidElement(t)?___namespace.cloneElement(t,{ref:g=>{d.current=g,typeof l=="function"?l(g):l&&(l.current=g);},onMouseEnter:p,onMouseLeave:f,onFocus:b,onBlur:x,"aria-describedby":u?m:void 0,...s}):jsxRuntime.jsx("button",{ref:g=>{d.current=g,typeof l=="function"?l(g):l&&(l.current=g);},type:"button","aria-describedby":u?m:void 0,onMouseEnter:p,onMouseLeave:f,onFocus:b,onBlur:x,...s,children:t})});Wr.displayName="TooltipTrigger";var jr=___namespace.forwardRef(({className:e,side:t="top",sideOffset:r=4,align:a="center",alignOffset:n=0,children:o,...s},l)=>{let{open:c,triggerRef:d,contentId:m}=ed(),[u,p]=___namespace.useState({top:0,left:0}),[f,b]=___namespace.useState(false),x=___namespace.useRef(null);if(___namespace.useEffect(()=>{b(true);},[]),___namespace.useEffect(()=>{if(!c||!d.current||!x.current)return;let v=d.current.getBoundingClientRect(),R=x.current.getBoundingClientRect(),w=0,h=0;switch(t){case "top":w=v.top-R.height-r;break;case "bottom":w=v.bottom+r;break;case "left":h=v.left-R.width-r;break;case "right":h=v.right+r;break}if(t==="top"||t==="bottom")switch(a){case "start":h=v.left+n;break;case "center":h=v.left+v.width/2-R.width/2;break;case "end":h=v.right-R.width-n;break}else switch(a){case "start":w=v.top+n;break;case "center":w=v.top+v.height/2-R.height/2;break;case "end":w=v.bottom-R.height-n;break}p({top:w,left:h});},[c,t,r,a,n,d]),!f||!c)return null;let g={top:"animate-in fade-in-0 zoom-in-95 slide-in-from-bottom-2",bottom:"animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",left:"animate-in fade-in-0 zoom-in-95 slide-in-from-right-2",right:"animate-in fade-in-0 zoom-in-95 slide-in-from-left-2"}[t];return $o__namespace.createPortal(jsxRuntime.jsx("div",{ref:v=>{x.current=v,typeof l=="function"?l(v):l&&(l.current=v);},id:m,role:"tooltip","data-side":t,className:i("fixed z-50 overflow-hidden rounded-md px-3 py-1.5 text-xs bg-zinc-100 text-zinc-900 dark:bg-zinc-900 dark:text-zinc-100",g,e),style:{top:u.top,left:u.left},...s,children:o}),document.body)});jr.displayName="TooltipContent";var _e=___namespace.forwardRef(({className:e,orientation:t="vertical",visibility:r="visible",children:a,style:n,...o},s)=>{let[l,c]=___namespace.useState(false),d=___namespace.useId().replace(/:/g,""),m=r==="visible"||r==="hover"&&l,u=m?"rgba(0,0,0,0.3)":"transparent",p=m?"rgba(255,255,255,0.3)":"transparent",f=`
1
+ 'use strict';var _=require('react'),classVarianceAuthority=require('class-variance-authority'),lucideReact=require('lucide-react'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime'),$o=require('react-dom'),sonner=require('sonner'),vaul=require('vaul'),reactDayPicker=require('react-day-picker'),dateFns=require('date-fns'),cmdk=require('cmdk'),reactResizablePanels=require('react-resizable-panels'),reactColorful=require('react-colorful'),recharts=require('recharts'),core=require('@dnd-kit/core'),sortable=require('@dnd-kit/sortable'),utilities=require('@dnd-kit/utilities'),XM=require('embla-carousel-react'),react=require('@tiptap/react'),nT=require('@tiptap/starter-kit'),oT=require('@tiptap/extension-link'),sT=require('@tiptap/extension-underline'),iT=require('@tiptap/extension-text-align'),lT=require('@tiptap/extension-placeholder'),ET=require('react-image-crop');require('react-image-crop/dist/ReactCrop.css');var zT=require('react-qr-code'),nextThemes=require('next-themes'),framerMotion=require('framer-motion'),Vn=require('canvas-confetti');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var ___namespace=/*#__PURE__*/_interopNamespace(_);var $o__namespace=/*#__PURE__*/_interopNamespace($o);var XM__default=/*#__PURE__*/_interopDefault(XM);var nT__default=/*#__PURE__*/_interopDefault(nT);var oT__default=/*#__PURE__*/_interopDefault(oT);var sT__default=/*#__PURE__*/_interopDefault(sT);var iT__default=/*#__PURE__*/_interopDefault(iT);var lT__default=/*#__PURE__*/_interopDefault(lT);var ET__default=/*#__PURE__*/_interopDefault(ET);var zT__default=/*#__PURE__*/_interopDefault(zT);var Vn__default=/*#__PURE__*/_interopDefault(Vn);function i(...e){return tailwindMerge.twMerge(clsx.clsx(e))}var Ky=classVarianceAuthority.cva("relative w-full p-4",{variants:{variant:{solid:"border",bordered:"border bg-transparent",flat:""},type:{default:"",success:"",warning:"",error:""},radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-full"}},compoundVariants:[{variant:"solid",type:"default",className:"!border-primary bg-primary text-primary-foreground [&>svg]:text-primary-foreground"},{variant:"bordered",type:"default",className:"!border-primary text-primary [&>svg]:text-primary"},{variant:"flat",type:"default",className:"bg-primary/10 text-primary [&>svg]:text-primary"},{variant:"solid",type:"success",className:"!border-green-600 bg-green-600 text-white dark:!border-green-500 dark:bg-green-500 [&>svg]:text-white"},{variant:"bordered",type:"success",className:"!border-green-600 text-green-600 dark:!border-green-500 dark:text-green-500 [&>svg]:text-green-600 dark:[&>svg]:text-green-500"},{variant:"flat",type:"success",className:"bg-green-600/10 text-green-600 dark:bg-green-500/10 dark:text-green-500 [&>svg]:text-green-600 dark:[&>svg]:text-green-500"},{variant:"solid",type:"warning",className:"!border-amber-600 bg-amber-600 text-white dark:!border-amber-500 dark:bg-amber-500 [&>svg]:text-white"},{variant:"bordered",type:"warning",className:"!border-amber-600 text-amber-600 dark:!border-amber-500 dark:text-amber-500 [&>svg]:text-amber-600 dark:[&>svg]:text-amber-500"},{variant:"flat",type:"warning",className:"bg-amber-600/10 text-amber-600 dark:bg-amber-500/10 dark:text-amber-500 [&>svg]:text-amber-600 dark:[&>svg]:text-amber-500"},{variant:"solid",type:"error",className:"!border-red-600 bg-red-600 text-white dark:!border-red-500 dark:bg-red-500 [&>svg]:text-white"},{variant:"bordered",type:"error",className:"!border-red-600 text-red-600 dark:!border-red-500 dark:text-red-500 [&>svg]:text-red-600 dark:[&>svg]:text-red-500"},{variant:"flat",type:"error",className:"bg-red-600/10 text-red-600 dark:bg-red-500/10 dark:text-red-500 [&>svg]:text-red-600 dark:[&>svg]:text-red-500"}],defaultVariants:{variant:"solid",type:"default",radius:"md"}}),Gy={default:lucideReact.Info,success:lucideReact.CheckCircle2,warning:lucideReact.AlertTriangle,error:lucideReact.AlertCircle},$y=___namespace.forwardRef(({className:e,variant:t="solid",type:r="default",radius:a="md",icon:n,hideIcon:o=false,endContent:s,children:l,...c},d)=>{let m=Gy[r],u=!o,p=n!==void 0?n:m?jsxRuntime.jsx(m,{className:"h-4 w-4"}):null;return jsxRuntime.jsxs("div",{ref:d,role:"alert",className:i(Ky({variant:t,type:r,radius:a}),s&&"flex items-center justify-between",e),...c,children:[jsxRuntime.jsxs("div",{className:"flex items-start gap-3",children:[u&&p&&jsxRuntime.jsx("span",{className:"mt-0.5 shrink-0",children:p}),jsxRuntime.jsx("div",{children:l})]}),s&&jsxRuntime.jsx("div",{className:"shrink-0 ml-4",children:s})]})});$y.displayName="Alert";var _y=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("h5",{ref:r,className:i("mb-1 font-medium leading-none tracking-tight",e),...t}));_y.displayName="AlertTitle";var jy=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("text-sm [&_p]:leading-relaxed",e),...t}));jy.displayName="AlertDescription";var Wy=classVarianceAuthority.cva("absolute rounded-full flex items-center justify-center font-semibold",{variants:{variant:{solid:"",bordered:"border-2"},color:{default:"",success:"",warning:"",danger:"",info:""},size:{sm:"",md:"",lg:""},placement:{"top-right":"-top-1 -right-1","top-left":"-top-1 -left-1","bottom-right":"-bottom-1 -right-1","bottom-left":"-bottom-1 -left-1"}},compoundVariants:[{variant:"solid",color:"default",className:"bg-zinc-800 text-white dark:bg-zinc-200 dark:text-zinc-900"},{variant:"solid",color:"success",className:"bg-green-600 text-white dark:bg-green-500"},{variant:"solid",color:"warning",className:"bg-amber-600 text-white dark:bg-amber-500"},{variant:"solid",color:"danger",className:"bg-red-600 text-white dark:bg-red-500"},{variant:"solid",color:"info",className:"bg-blue-600 text-white dark:bg-blue-500"},{variant:"bordered",color:"default",className:"bg-white border-zinc-800 text-zinc-800 dark:bg-zinc-900 dark:border-zinc-200 dark:text-zinc-200"},{variant:"bordered",color:"success",className:"bg-white border-green-600 text-green-600 dark:bg-zinc-900 dark:border-green-500 dark:text-green-500"},{variant:"bordered",color:"warning",className:"bg-white border-amber-600 text-amber-600 dark:bg-zinc-900 dark:border-amber-500 dark:text-amber-500"},{variant:"bordered",color:"danger",className:"bg-white border-red-600 text-red-600 dark:bg-zinc-900 dark:border-red-500 dark:text-red-500"},{variant:"bordered",color:"info",className:"bg-white border-blue-600 text-blue-600 dark:bg-zinc-900 dark:border-blue-500 dark:text-blue-500"},{size:"sm",className:"min-w-4 h-4 text-[10px] px-1"},{size:"md",className:"min-w-5 h-5 text-xs px-1"},{size:"lg",className:"min-w-6 h-6 text-sm px-1.5"}],defaultVariants:{variant:"solid",color:"default",size:"md",placement:"top-right"}}),Yy={sm:"w-2 h-2",md:"w-2.5 h-2.5",lg:"w-3 h-3"},Uy=___namespace.forwardRef(({className:e,children:t,content:r,variant:a="solid",color:n="default",size:o="md",placement:s="top-right",isDot:l=false,...c},d)=>jsxRuntime.jsxs("div",{ref:d,className:i("relative inline-flex",e),...c,children:[t,jsxRuntime.jsx("span",{className:i(Wy({variant:a,color:n,size:l?void 0:o,placement:s}),l&&Yy[o||"md"],l&&"min-w-0 p-0"),children:!l&&r})]}));Uy.displayName="Badge";var Xy=classVarianceAuthority.cva("inline-flex items-center gap-1 font-medium rounded-full",{variants:{color:{default:"bg-zinc-100 text-zinc-900 dark:bg-zinc-800 dark:text-white",success:"bg-green-600/20 text-green-700 dark:bg-green-500/20 dark:text-green-500",warning:"bg-amber-600/20 text-amber-700 dark:bg-amber-500/20 dark:text-amber-500",danger:"bg-red-600/20 text-red-700 dark:bg-red-500/20 dark:text-red-500",info:"bg-blue-600/20 text-blue-700 dark:bg-blue-500/20 dark:text-blue-500"},size:{sm:"px-2 py-0.5 text-[10px]",md:"px-2.5 py-0.5 text-xs",lg:"px-3 py-1 text-sm"}},defaultVariants:{color:"default",size:"md"}}),qy=___namespace.forwardRef(({className:e,color:t,size:r,...a},n)=>jsxRuntime.jsx("span",{ref:n,className:i(Xy({color:t,size:r}),e),...a}));qy.displayName="TextBadge";var fr=classVarianceAuthority.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium ring-offset-background transition-all duration-200 ease-out cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed active:scale-[0.97] [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{solid:"",bordered:"border-2 border-current bg-transparent hover:opacity-70",light:"bg-transparent hover:bg-zinc-100 dark:hover:bg-zinc-800",flat:"bg-zinc-100 dark:bg-zinc-800 hover:opacity-70",ghost:"border-2 bg-transparent"},color:{default:"",success:"",warning:"",danger:"",info:""},size:{sm:"h-9 px-3 text-xs",md:"h-10 px-4",lg:"h-11 px-5 text-base",icon:"h-10 w-10"},radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-full"}},compoundVariants:[{variant:"solid",color:"default",className:"bg-zinc-800 text-white hover:bg-zinc-700 dark:bg-zinc-200 dark:text-zinc-900 dark:hover:bg-zinc-300"},{variant:"bordered",color:"default",className:"text-zinc-900 dark:text-white"},{variant:"light",color:"default",className:"text-zinc-900 hover:bg-zinc-100 dark:text-white dark:hover:bg-zinc-800"},{variant:"flat",color:"default",className:"bg-zinc-100 text-zinc-900 dark:bg-zinc-800 dark:text-white"},{variant:"ghost",color:"default",className:"text-zinc-900 border-zinc-900 hover:bg-zinc-900 hover:text-white dark:text-white dark:border-white dark:hover:bg-white dark:hover:text-zinc-900"},{variant:"solid",color:"success",className:"bg-green-600 text-white hover:bg-green-700 dark:bg-green-700 dark:text-white dark:hover:bg-green-600"},{variant:"bordered",color:"success",className:"text-green-600 dark:text-green-500"},{variant:"light",color:"success",className:"text-green-600 hover:bg-green-600/10 dark:text-green-500 dark:hover:bg-green-500/10"},{variant:"flat",color:"success",className:"bg-green-600/20 text-green-700 dark:bg-green-500/20 dark:text-green-500"},{variant:"ghost",color:"success",className:"text-green-600 border-green-600 hover:bg-green-600 hover:text-white dark:text-green-500 dark:border-green-500 dark:hover:bg-green-500 dark:hover:text-white"},{variant:"solid",color:"warning",className:"bg-amber-600 text-white hover:bg-amber-700 dark:bg-amber-700 dark:text-white dark:hover:bg-amber-600"},{variant:"bordered",color:"warning",className:"text-amber-600 dark:text-amber-500"},{variant:"light",color:"warning",className:"text-amber-600 hover:bg-amber-600/10 dark:text-amber-500 dark:hover:bg-amber-500/10"},{variant:"flat",color:"warning",className:"bg-amber-600/20 text-amber-700 dark:bg-amber-500/20 dark:text-amber-500"},{variant:"ghost",color:"warning",className:"text-amber-600 border-amber-600 hover:bg-amber-600 hover:text-white dark:text-amber-500 dark:border-amber-500 dark:hover:bg-amber-500 dark:hover:text-white"},{variant:"solid",color:"danger",className:"bg-red-600 text-white hover:bg-red-700 dark:bg-red-700 dark:text-white dark:hover:bg-red-600"},{variant:"bordered",color:"danger",className:"text-red-600 dark:text-red-500"},{variant:"light",color:"danger",className:"text-red-600 hover:bg-red-600/10 dark:text-red-500 dark:hover:bg-red-500/10"},{variant:"flat",color:"danger",className:"bg-red-600/20 text-red-700 dark:bg-red-500/20 dark:text-red-500"},{variant:"ghost",color:"danger",className:"text-red-600 border-red-600 hover:bg-red-600 hover:text-white dark:text-red-500 dark:border-red-500 dark:hover:bg-red-500 dark:hover:text-white"},{variant:"solid",color:"info",className:"bg-blue-600 text-white hover:bg-blue-700 dark:bg-blue-700 dark:text-white dark:hover:bg-blue-600"},{variant:"bordered",color:"info",className:"text-blue-600 dark:text-blue-500"},{variant:"light",color:"info",className:"text-blue-600 hover:bg-blue-600/10 dark:text-blue-500 dark:hover:bg-blue-500/10"},{variant:"flat",color:"info",className:"bg-blue-600/20 text-blue-700 dark:bg-blue-500/20 dark:text-blue-500"},{variant:"ghost",color:"info",className:"text-blue-600 border-blue-600 hover:bg-blue-600 hover:text-white dark:text-blue-500 dark:border-blue-500 dark:hover:bg-blue-500 dark:hover:text-white"}],defaultVariants:{variant:"solid",color:"default",size:"md",radius:"md"}}),Mo=___namespace.forwardRef(({children:e,...t},r)=>___namespace.isValidElement(e)?___namespace.cloneElement(e,{...t,...e.props,ref:r,className:i(t.className,e.props.className),style:{...t.style,...e.props.style}}):null);Mo.displayName="Slot";var Z=___namespace.forwardRef(({className:e,variant:t,color:r,size:a,radius:n,asChild:o=false,href:s,loading:l=false,startContent:c,endContent:d,children:m,disabled:u,style:p,...f},b)=>{let x=u||l,v=t==="bordered"?{borderColor:"currentColor",...p}:p,R=l?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(lucideReact.Loader2,{className:"animate-spin"}),m]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[c,m,d]});return o?jsxRuntime.jsx(Mo,{className:i(fr({variant:t,color:r,size:a,radius:n,className:e})),ref:b,style:v,...f,children:R}):s?jsxRuntime.jsx("a",{href:s,className:i(fr({variant:t,color:r,size:a,radius:n,className:e}),x&&"pointer-events-none opacity-50"),style:v,...f,children:R}):jsxRuntime.jsx("button",{className:i(fr({variant:t,color:r,size:a,radius:n,className:e})),ref:b,disabled:x,style:v,...f,children:R})});Z.displayName="Button";var Lc=classVarianceAuthority.cva("border bg-card text-card-foreground shadow-sm",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg"}},defaultVariants:{radius:"lg"}}),Dc=___namespace.forwardRef(({className:e,radius:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i(Lc({radius:t,className:e})),...r}));Dc.displayName="Card";var Sc=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("p-6 text-2xl font-semibold leading-none tracking-tight",e),...t}));Sc.displayName="CardHeader";var Hc=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("p-6 pt-0",e),...t}));Hc.displayName="CardContent";var Ic=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex items-center p-6 pt-0",e),...t}));Ic.displayName="CardFooter";var On=___namespace.forwardRef(({className:e,checked:t,defaultChecked:r=false,onCheckedChange:a,disabled:n,required:o,name:s,value:l="on",text:c,description:d,onKeyDown:m,...u},p)=>{let[f,b]=___namespace.useState(r),x=t!==void 0,g=x?t:f,[v,R]=___namespace.useState(false),w=___namespace.useId(),h=()=>{if(n)return;let E=g==="indeterminate"?true:!g;x||b(E),a?.(E);},C=E=>{E.key==="Enter"&&E.preventDefault(),m?.(E);},y=g===true,T=g==="indeterminate",N=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{type:"button",role:"checkbox",id:c?w:void 0,"aria-checked":T?"mixed":y,"aria-required":o,disabled:n,ref:p,className:i("peer h-4 w-4 shrink-0 rounded-sm border border-primary focus-visible:outline-none cursor-pointer disabled:cursor-not-allowed disabled:opacity-50 transition-colors",y&&"bg-primary text-primary-foreground",T&&"bg-background text-foreground",!c&&e),style:{borderColor:v?"var(--color-foreground)":void 0},onClick:h,onKeyDown:C,onFocus:()=>R(true),onBlur:()=>R(false),...u,children:(y||T)&&jsxRuntime.jsx("span",{className:"flex items-center justify-center text-current",children:T?jsxRuntime.jsx(lucideReact.Minus,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),s&&jsxRuntime.jsx("input",{type:"checkbox","aria-hidden":true,tabIndex:-1,name:s,value:l,checked:y,required:o,disabled:n,onChange:()=>{},style:{position:"absolute",pointerEvents:"none",opacity:0,margin:0,width:0,height:0}})]});return c?jsxRuntime.jsxs("div",{className:i("flex items-start gap-2",e),children:[N,jsxRuntime.jsxs("div",{className:"flex flex-col gap-0.5",children:[jsxRuntime.jsx("label",{htmlFor:w,className:i("text-sm font-medium leading-none cursor-pointer",n&&"cursor-not-allowed opacity-50"),onClick:h,children:c}),d&&jsxRuntime.jsx("p",{className:"text-xs text-muted-foreground",children:d})]})]}):N});On.displayName="Checkbox";var Ac=___namespace.createContext(null),en=()=>{let e=___namespace.useContext(Ac);if(!e)throw new Error("Dialog components must be used within a Dialog");return e},Po=({children:e,open:t,defaultOpen:r=false,onOpenChange:a})=>{let[n,o]=___namespace.useState(r),s=t!==void 0,l=s?t:n,c=___namespace.useId(),d=___namespace.useId(),m=___namespace.useId(),u=___namespace.useCallback(p=>{s||o(p),a?.(p);},[s,a]);return jsxRuntime.jsx(Ac.Provider,{value:{open:l,onOpenChange:u,contentId:c,titleId:d,descriptionId:m},children:e})};Po.displayName="Dialog";var zc=___namespace.forwardRef(({asChild:e,children:t,onClick:r,...a},n)=>{let{onOpenChange:o}=en(),s=l=>{r?.(l),o(true);};return e&&___namespace.isValidElement(t)?___namespace.cloneElement(t,{ref:n,onClick:l=>{t.props.onClick?.(l),o(true);},...a}):jsxRuntime.jsx("button",{ref:n,type:"button",onClick:s,...a,children:t})});zc.displayName="DialogTrigger";var Bc=___namespace.forwardRef(({asChild:e,children:t,onClick:r,...a},n)=>{let{onOpenChange:o}=en(),s=l=>{r?.(l),o(false);};return e&&___namespace.isValidElement(t)?___namespace.cloneElement(t,{ref:n,onClick:l=>{t.props.onClick?.(l),o(false);},...a}):jsxRuntime.jsx("button",{ref:n,type:"button",onClick:s,...a,children:t})});Bc.displayName="DialogClose";var yi=({children:e,container:t})=>{let[r,a]=___namespace.useState(false);return ___namespace.useEffect(()=>{a(true);},[]),r?$o__namespace.createPortal(e,t||document.body):null};yi.displayName="DialogPortal";var Ri=___namespace.forwardRef(({className:e,...t},r)=>{let{open:a,onOpenChange:n}=en();return a?jsxRuntime.jsx("div",{ref:r,"data-state":a?"open":"closed",className:i("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),onClick:()=>n(false),"aria-hidden":"true",...t}):null});Ri.displayName="DialogOverlay";var ko=___namespace.forwardRef(({className:e,children:t,onEscapeKeyDown:r,onInteractOutside:a,...n},o)=>{let{open:s,onOpenChange:l,contentId:c,titleId:d,descriptionId:m}=en(),[u,p]=___namespace.useState(false);return ___namespace.useEffect(()=>{p(true);},[]),___namespace.useEffect(()=>(s&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="";}),[s]),___namespace.useEffect(()=>{if(!s)return;let f=b=>{b.key==="Escape"&&(r?.(),l(false));};return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[s,l,r]),!u||!s?null:jsxRuntime.jsxs(yi,{children:[jsxRuntime.jsx(Ri,{}),jsxRuntime.jsxs("div",{ref:o,id:c,role:"dialog","aria-modal":"true","aria-labelledby":d,"aria-describedby":m,"data-state":s?"open":"closed",className:i("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",e),...n,children:[t,jsxRuntime.jsxs("button",{type:"button",onClick:()=>l(false),className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none cursor-pointer",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]})]})});ko.displayName="DialogContent";var Oc=({className:e,...t})=>jsxRuntime.jsx("div",{className:i("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Oc.displayName="DialogHeader";var Fc=({className:e,...t})=>jsxRuntime.jsx("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Fc.displayName="DialogFooter";var Kc=___namespace.forwardRef(({className:e,...t},r)=>{let{titleId:a}=en();return jsxRuntime.jsx("h2",{ref:r,id:a,className:i("text-lg font-semibold leading-none tracking-tight",e),...t})});Kc.displayName="DialogTitle";var Gc=___namespace.forwardRef(({className:e,...t},r)=>{let{descriptionId:a}=en();return jsxRuntime.jsx("p",{ref:r,id:a,className:i("text-sm text-muted-foreground",e),...t})});Gc.displayName="DialogDescription";var sR=classVarianceAuthority.cva("flex h-10 w-full border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"md"}}),Eo=___namespace.forwardRef(({className:e,type:t,radius:r,label:a,isRequired:n,description:o,errorMessage:s,isInvalid:l,onFocus:c,onBlur:d,style:m,...u},p)=>{let[f,b]=___namespace.useState(false),x=___namespace.useId(),g=u.id||x,v=l||!!s,R=jsxRuntime.jsx("input",{id:g,type:t,className:i(sR({radius:r}),v&&"border-danger focus:border-danger",!a&&e),ref:p,required:n,"aria-invalid":v,"aria-describedby":o||s?`${g}-description`:void 0,style:{...m,borderColor:v?void 0:f?"var(--color-foreground)":void 0},onFocus:w=>{b(true),c?.(w);},onBlur:w=>{b(false),d?.(w);},...u});return !a&&!o&&!s?R:jsxRuntime.jsxs("div",{className:i("flex flex-col gap-1.5",e),children:[a&&jsxRuntime.jsxs("label",{htmlFor:g,className:"text-sm font-medium leading-none",children:[a,n&&jsxRuntime.jsx("span",{className:"text-danger ml-1",children:"*"})]}),R,(o||s)&&jsxRuntime.jsx("p",{id:`${g}-description`,className:i("text-xs",v?"text-danger":"text-muted-foreground"),children:s||o})]})});Eo.displayName="Input";var lR=classVarianceAuthority.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ra=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("label",{ref:r,className:i(lR(),e),...t}));Ra.displayName="Label";var Gr=___namespace.forwardRef(({className:e,orientation:t="horizontal",decorative:r=true,text:a,...n},o)=>{let s=r?{role:"none"}:{role:"separator","aria-orientation":t};return a&&t==="horizontal"?jsxRuntime.jsxs("div",{className:i("flex items-center gap-4",e),children:[jsxRuntime.jsx("div",{...s,className:"shrink-0 bg-border h-[1px] flex-1"}),jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:a}),jsxRuntime.jsx("div",{...s,className:"shrink-0 bg-border h-[1px] flex-1"})]}):jsxRuntime.jsx("div",{ref:o,...s,className:i("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n})});Gr.displayName="Separator";var Wc=___namespace.forwardRef(({className:e,checked:t,defaultChecked:r=false,onCheckedChange:a,disabled:n,required:o,name:s,value:l="on",onKeyDown:c,...d},m)=>{let[u,p]=___namespace.useState(r),f=t!==void 0,b=f?t:u,x=()=>{if(n)return;let v=!b;f||p(v),a?.(v);},g=v=>{v.key==="Enter"&&v.preventDefault(),c?.(v);};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{type:"button",role:"switch","aria-checked":b,"aria-required":o,disabled:n,ref:m,className:i("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",b?"bg-primary":"bg-input",e),onClick:x,onKeyDown:g,...d,children:jsxRuntime.jsx("span",{className:i("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform",b?"translate-x-5":"translate-x-0")})}),s&&jsxRuntime.jsx("input",{type:"checkbox","aria-hidden":true,tabIndex:-1,name:s,value:l,checked:b,required:o,disabled:n,onChange:()=>{},style:{position:"absolute",pointerEvents:"none",opacity:0,margin:0,width:0,height:0}})]})});Wc.displayName="Switch";var fR=classVarianceAuthority.cva("flex min-h-[80px] w-full border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg"}},defaultVariants:{radius:"md"}}),Yc=___namespace.forwardRef(({className:e,radius:t,onFocus:r,onBlur:a,style:n,...o},s)=>{let[l,c]=___namespace.useState(false);return jsxRuntime.jsx("textarea",{className:i(fR({radius:t,className:e})),ref:s,style:{...n,borderColor:l?"var(--color-foreground)":void 0},onFocus:d=>{c(true),r?.(d);},onBlur:d=>{c(false),a?.(d);},...o})});Yc.displayName="Textarea";var Xc=classVarianceAuthority.cva("rounded-md bg-muted",{variants:{variant:{pulse:"animate-pulse",shimmer:"skeleton-shimmer",static:""}},defaultVariants:{variant:"pulse"}}),Ho=___namespace.forwardRef(({className:e,variant:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i(Xc({variant:t,className:e})),...r}));Ho.displayName="Skeleton";var xR=classVarianceAuthority.cva("relative flex shrink-0 overflow-hidden cursor-pointer",{variants:{size:{sm:"h-8 w-8",md:"h-10 w-10",lg:"h-12 w-12"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{size:"md",radius:"full"}}),qc=___namespace.createContext(null),Zc=()=>{let e=___namespace.useContext(qc);if(!e)throw new Error("Avatar components must be used within an Avatar");return e},wa=___namespace.forwardRef(({className:e,size:t,radius:r,...a},n)=>{let[o,s]=___namespace.useState("idle");return jsxRuntime.jsx(qc.Provider,{value:{imageLoadingStatus:o,onImageLoadingStatusChange:s},children:jsxRuntime.jsx("span",{ref:n,className:i(xR({size:t,radius:r,className:e})),...a})})});wa.displayName="Avatar";var rn=___namespace.forwardRef(({className:e,src:t,alt:r,onLoadingStatusChange:a,...n},o)=>{let{imageLoadingStatus:s,onImageLoadingStatusChange:l}=Zc();return ___namespace.useEffect(()=>{if(!t){l("error");return}l("loading"),a?.("loading");let c=new Image;c.src=t,c.onload=()=>{l("loaded"),a?.("loaded");},c.onerror=()=>{l("error"),a?.("error");};},[t,l,a]),s!=="loaded"?null:jsxRuntime.jsx("img",{ref:o,src:t,alt:r,className:i("aspect-square h-full w-full object-cover",e),...n})});rn.displayName="AvatarImage";var Ca=___namespace.forwardRef(({className:e,delayMs:t=0,children:r,...a},n)=>{let{imageLoadingStatus:o}=Zc(),[s,l]=___namespace.useState(t===0);return ___namespace.useEffect(()=>{if(t>0){let c=setTimeout(()=>l(true),t);return ()=>clearTimeout(c)}},[t]),o==="loaded"||!s?null:jsxRuntime.jsx("span",{ref:n,className:i("flex h-full w-full items-center justify-center bg-muted",e),...a,children:r})});Ca.displayName="AvatarFallback";var Qc=___namespace.createContext({delayDuration:700,skipDelayDuration:300}),$r=({children:e,delayDuration:t=700,skipDelayDuration:r=300})=>jsxRuntime.jsx(Qc.Provider,{value:{delayDuration:t,skipDelayDuration:r},children:e});$r.displayName="TooltipProvider";var ed=___namespace.createContext(null),td=()=>{let e=___namespace.useContext(ed);if(!e)throw new Error("Tooltip components must be used within a Tooltip");return e},_r=({children:e,open:t,defaultOpen:r=false,onOpenChange:a,delayDuration:n})=>{let o=___namespace.useContext(Qc),[s,l]=___namespace.useState(r),c=t!==void 0,d=c?t:s,m=___namespace.useRef(null),u=___namespace.useId(),p=___namespace.useRef(null),f=n??o.delayDuration,b=___namespace.useCallback(x=>{p.current&&clearTimeout(p.current),x?p.current=setTimeout(()=>{c||l(true),a?.(true);},f):(c||l(false),a?.(false));},[c,a,f]);return ___namespace.useEffect(()=>()=>{p.current&&clearTimeout(p.current);},[]),jsxRuntime.jsx(ed.Provider,{value:{open:d,onOpenChange:b,triggerRef:m,contentId:u},children:e})};_r.displayName="Tooltip";var jr=___namespace.forwardRef(({asChild:e,children:t,onMouseEnter:r,onMouseLeave:a,onFocus:n,onBlur:o,...s},l)=>{let{onOpenChange:c,triggerRef:d,contentId:m,open:u}=td(),p=g=>{r?.(g),c(true);},f=g=>{a?.(g),c(false);},b=g=>{n?.(g),c(true);},x=g=>{o?.(g),c(false);};return e&&___namespace.isValidElement(t)?___namespace.cloneElement(t,{ref:g=>{d.current=g,typeof l=="function"?l(g):l&&(l.current=g);},onMouseEnter:p,onMouseLeave:f,onFocus:b,onBlur:x,"aria-describedby":u?m:void 0,...s}):jsxRuntime.jsx("button",{ref:g=>{d.current=g,typeof l=="function"?l(g):l&&(l.current=g);},type:"button","aria-describedby":u?m:void 0,onMouseEnter:p,onMouseLeave:f,onFocus:b,onBlur:x,...s,children:t})});jr.displayName="TooltipTrigger";var Wr=___namespace.forwardRef(({className:e,side:t="top",sideOffset:r=4,align:a="center",alignOffset:n=0,children:o,...s},l)=>{let{open:c,triggerRef:d,contentId:m}=td(),[u,p]=___namespace.useState({top:0,left:0}),[f,b]=___namespace.useState(false),x=___namespace.useRef(null);if(___namespace.useEffect(()=>{b(true);},[]),___namespace.useEffect(()=>{if(!c||!d.current||!x.current)return;let v=d.current.getBoundingClientRect(),R=x.current.getBoundingClientRect(),w=0,h=0;switch(t){case "top":w=v.top-R.height-r;break;case "bottom":w=v.bottom+r;break;case "left":h=v.left-R.width-r;break;case "right":h=v.right+r;break}if(t==="top"||t==="bottom")switch(a){case "start":h=v.left+n;break;case "center":h=v.left+v.width/2-R.width/2;break;case "end":h=v.right-R.width-n;break}else switch(a){case "start":w=v.top+n;break;case "center":w=v.top+v.height/2-R.height/2;break;case "end":w=v.bottom-R.height-n;break}p({top:w,left:h});},[c,t,r,a,n,d]),!f||!c)return null;let g={top:"animate-in fade-in-0 zoom-in-95 slide-in-from-bottom-2",bottom:"animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",left:"animate-in fade-in-0 zoom-in-95 slide-in-from-right-2",right:"animate-in fade-in-0 zoom-in-95 slide-in-from-left-2"}[t];return $o__namespace.createPortal(jsxRuntime.jsx("div",{ref:v=>{x.current=v,typeof l=="function"?l(v):l&&(l.current=v);},id:m,role:"tooltip","data-side":t,className:i("fixed z-50 overflow-hidden rounded-md px-3 py-1.5 text-xs bg-zinc-100 text-zinc-900 dark:bg-zinc-900 dark:text-zinc-100",g,e),style:{top:u.top,left:u.left},...s,children:o}),document.body)});Wr.displayName="TooltipContent";var _e=___namespace.forwardRef(({className:e,orientation:t="vertical",visibility:r="visible",children:a,style:n,...o},s)=>{let[l,c]=___namespace.useState(false),d=___namespace.useId().replace(/:/g,""),m=r==="visible"||r==="hover"&&l,u=m?"rgba(0,0,0,0.3)":"transparent",p=m?"rgba(255,255,255,0.3)":"transparent",f=`
2
2
  #${d} {
3
3
  scrollbar-width: thin;
4
4
  scrollbar-color: ${u} transparent;
@@ -40,12 +40,12 @@
40
40
  scrollbar-width: none;
41
41
  }
42
42
  `:""}
43
- `;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:f}}),jsxRuntime.jsx("div",{ref:s,id:d,onMouseEnter:()=>c(true),onMouseLeave:()=>c(false),style:n,className:i("h-full w-full",t==="vertical"&&"overflow-y-auto overflow-x-hidden",t==="horizontal"&&"overflow-x-auto overflow-y-hidden",t==="both"&&"overflow-auto",e),...o,children:a})]})});_e.displayName="ScrollArea";var od=classVarianceAuthority.cva("flex min-h-10 w-full cursor-pointer items-center justify-between border border-zinc-300 dark:border-zinc-700 bg-background px-3 py-2 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"md"}}),sd=___namespace.forwardRef(({options:e,multiple:t=false,value:r,defaultValue:a,onValueChange:n,placeholder:o="Select...",searchable:s=false,searchPlaceholder:l="Search...",emptyText:c="No results found.",disabled:d=false,clearable:m=false,maxDisplayItems:u=3,maxDropdownHeight:p=240,radius:f,className:b,...x},g)=>{let[v,R]=___namespace.useState(false),[w,h]=___namespace.useState(""),[C,y]=___namespace.useState(a||""),[T,N]=___namespace.useState(a||[]),[E,M]=___namespace.useState({top:0,left:0,width:0}),P=___namespace.useRef(null),k=___namespace.useRef(null),L=___namespace.useRef(null),H=___namespace.useRef(null),S=r!==void 0?r:C,D=r!==void 0?r:T,V=r!==void 0,z=A=>{m&&S===A?(V||y(""),n?.("")):(V||y(A),n?.(A)),R(false),h("");},G=A=>{let j=D.includes(A)?D.filter(Y=>Y!==A):[...D,A];V||N(j),n?.(j);},I=(A,j)=>{j.stopPropagation();let Y=D.filter(Se=>Se!==A);V||N(Y),n?.(Y);},F=A=>{A.stopPropagation(),t?(V||N([]),n?.([])):(V||y(""),n?.(""));},O=e.find(A=>A.value===S),ee=e.filter(A=>D.includes(A.value)),ae=ee.slice(0,u),K=ee.length-u,B=s?e.filter(A=>A.label.toLowerCase().includes(w.toLowerCase())):e;___namespace.useEffect(()=>{if(v&&k.current){let A=k.current.getBoundingClientRect();M({top:A.bottom+4,left:A.left,width:A.width}),s&&setTimeout(()=>H.current?.focus(),0);}v||h("");},[v,s]),___namespace.useEffect(()=>{let A=j=>{let Y=j.target,Se=P.current&&!P.current.contains(Y),pe=L.current&&!L.current.contains(Y);Se&&pe&&(R(false),h(""));};return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)},[]),___namespace.useEffect(()=>{if(!v)return;let A=j=>{L.current?.contains(j.target)||(R(false),h(""));};return window.addEventListener("scroll",A,true),()=>window.removeEventListener("scroll",A,true)},[v]);let W=t?D.length>0:!!S;return jsxRuntime.jsxs("div",{ref:P,className:i("relative",b),...x,children:[jsxRuntime.jsxs("div",{ref:A=>{k.current=A,typeof g=="function"?g(A):g&&(g.current=A);},role:"combobox","aria-expanded":v,"aria-haspopup":"listbox","aria-disabled":d,onClick:()=>!d&&R(!v),className:i(od({radius:f}),t&&"flex-wrap gap-1",d&&"cursor-not-allowed opacity-50"),children:[!t&&jsxRuntime.jsx("span",{className:i(!O&&"text-muted-foreground"),children:O?O.label:o}),t&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:ee.length===0?jsxRuntime.jsx("span",{className:"text-muted-foreground",children:o}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[ae.map(A=>jsxRuntime.jsxs("span",{className:"inline-flex items-center gap-1 rounded-md bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground",children:[A.label,jsxRuntime.jsx("span",{role:"button",tabIndex:0,onClick:j=>I(A.value,j),onKeyDown:j=>{(j.key==="Enter"||j.key===" ")&&I(A.value,j);},className:"rounded-full hover:bg-secondary-foreground/20 cursor-pointer",children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3"})})]},A.value)),K>0&&jsxRuntime.jsxs("span",{className:"text-xs text-muted-foreground",children:["+",K," more"]})]})}),jsxRuntime.jsxs("div",{className:"ml-auto flex items-center gap-1",children:[m&&W&&jsxRuntime.jsx("span",{role:"button",tabIndex:0,onClick:F,onKeyDown:A=>{(A.key==="Enter"||A.key===" ")&&F(A);},className:"rounded-full p-0.5 hover:bg-muted cursor-pointer",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4 opacity-50"})}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:i("h-4 w-4 opacity-50 transition-transform",v&&"rotate-180")})]})]}),v&&!d&&typeof document<"u"&&$o__namespace.createPortal(jsxRuntime.jsxs("div",{ref:L,className:"fixed z-[9999] overflow-hidden rounded-md border border-zinc-300 dark:border-zinc-700 bg-background shadow-md",style:{top:E.top,left:E.left,minWidth:E.width},children:[s&&jsxRuntime.jsxs("div",{className:"flex items-center border-b border-zinc-300 dark:border-zinc-700 px-3",children:[jsxRuntime.jsx(lucideReact.Search,{className:"h-4 w-4 opacity-50 mr-2"}),jsxRuntime.jsx("input",{ref:H,type:"text",value:w,onChange:A=>h(A.target.value),placeholder:l,className:"flex h-10 w-full bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground"})]}),jsxRuntime.jsx(_e,{style:{maxHeight:p},onWheel:A=>A.stopPropagation(),children:jsxRuntime.jsx("div",{className:"p-1",children:B.length===0?jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:c}):B.map(A=>{let j=t?D.includes(A.value):S===A.value;return jsxRuntime.jsxs("div",{role:"option","aria-selected":j,onClick:()=>{A.disabled||(t?G(A.value):z(A.value));},className:i("relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-zinc-100 dark:hover:bg-zinc-800",A.disabled&&"pointer-events-none opacity-50"),children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:j&&jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})}),A.label]},A.value)})})})]}),document.body)]})});sd.displayName="Select";var id=___namespace.createContext(null),Na=()=>{let e=___namespace.useContext(id);if(!e)throw new Error("Dropdown components must be used within a Dropdown");return e},Ni=___namespace.createContext(null),ld=___namespace.createContext(null),Yr=({children:e,open:t,defaultOpen:r=false,onOpenChange:a})=>{let[n,o]=___namespace.useState(r),[s,l]=___namespace.useState(-1),c=t!==void 0,d=c?t:n,m=___namespace.useRef(null),u=___namespace.useRef(null),p=___namespace.useId(),f=___namespace.useRef(new Map),b=___namespace.useCallback(v=>{c||o(v),a?.(v),v||l(-1);},[c,a]),x=___namespace.useCallback((v,R)=>{f.current.set(v,R);},[]),g=___namespace.useCallback(v=>{f.current.delete(v);},[]);return jsxRuntime.jsx(id.Provider,{value:{open:d,onOpenChange:b,triggerRef:m,contentRef:u,contentId:p,activeIndex:s,setActiveIndex:l,items:f,registerItem:x,unregisterItem:g},children:e})};Yr.displayName="Dropdown";var Ur=___namespace.forwardRef(({asChild:e,children:t,onClick:r,onKeyDown:a,...n},o)=>{let{open:s,onOpenChange:l,triggerRef:c,contentId:d}=Na(),m=p=>{r?.(p),l(!s);},u=p=>{a?.(p),(p.key==="ArrowDown"||p.key==="ArrowUp")&&(p.preventDefault(),l(true));};return e&&___namespace.isValidElement(t)?___namespace.cloneElement(t,{ref:p=>{c.current=p,typeof o=="function"?o(p):o&&(o.current=p);},onClick:p=>{t.props.onClick?.(p),l(!s);},onKeyDown:p=>{t.props.onKeyDown?.(p),(p.key==="ArrowDown"||p.key==="ArrowUp")&&(p.preventDefault(),l(true));},"aria-expanded":s,"aria-haspopup":"menu","aria-controls":s?d:void 0,...n}):jsxRuntime.jsx("button",{ref:p=>{c.current=p,typeof o=="function"?o(p):o&&(o.current=p);},type:"button","aria-expanded":s,"aria-haspopup":"menu","aria-controls":s?d:void 0,onClick:m,onKeyDown:u,...n,children:t})});Ur.displayName="DropdownTrigger";var Xr=___namespace.forwardRef(({className:e,side:t="bottom",sideOffset:r=4,align:a="start",alignOffset:n=0,collisionPadding:o=8,onInteractOutside:s,onEscapeKeyDown:l,loop:c=true,children:d,...m},u)=>{let{open:p,onOpenChange:f,triggerRef:b,contentRef:x,contentId:g,activeIndex:v,setActiveIndex:R,items:w}=Na(),[h,C]=___namespace.useState({top:0,left:0}),[y,T]=___namespace.useState(t),[N,E]=___namespace.useState(false),M=___namespace.useRef(0);if(___namespace.useEffect(()=>{E(true);},[]),___namespace.useEffect(()=>{p&&(M.current=w.current.size);},[p,w]),___namespace.useEffect(()=>{if(!p||!b.current||!x.current)return;let k=()=>{if(!b.current||!x.current)return;let L=b.current.getBoundingClientRect(),H=x.current.getBoundingClientRect(),S=window.innerWidth,D=window.innerHeight,V=0,z=0,G=t;switch(t){case "top":V=L.top-H.height-r,V<o&&(V=L.bottom+r,G="bottom");break;case "bottom":V=L.bottom+r,V+H.height>D-o&&(V=L.top-H.height-r,G="top");break;case "left":z=L.left-H.width-r,z<o&&(z=L.right+r,G="right");break;case "right":z=L.right+r,z+H.width>S-o&&(z=L.left-H.width-r,G="left");break}if(G==="top"||G==="bottom"){switch(a){case "start":z=L.left+n;break;case "center":z=L.left+L.width/2-H.width/2;break;case "end":z=L.right-H.width-n;break}z<o?z=o:z+H.width>S-o&&(z=S-H.width-o);}else {switch(a){case "start":V=L.top+n;break;case "center":V=L.top+L.height/2-H.height/2;break;case "end":V=L.bottom-H.height-n;break}V<o?V=o:V+H.height>D-o&&(V=D-H.height-o);}C({top:V,left:z}),T(G);};return k(),window.addEventListener("resize",k),window.addEventListener("scroll",k,true),()=>{window.removeEventListener("resize",k),window.removeEventListener("scroll",k,true);}},[p,t,r,a,n,o,b]),___namespace.useEffect(()=>{if(!p)return;let k=L=>{let H=L.target;x.current&&!x.current.contains(H)&&b.current&&!b.current.contains(H)&&(s?.(),f(false));};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[p,f,s,b,x]),___namespace.useEffect(()=>{if(!p)return;let k=L=>{let H=Array.from(w.current.entries()).sort(([D],[V])=>D-V).map(([,D])=>D),S=H.length;if(S!==0)switch(L.key){case "Escape":L.preventDefault(),l?.(),f(false),b.current?.focus();break;case "ArrowDown":L.preventDefault(),v===-1||v>=S-1?R(c?0:Math.min(v+1,S-1)):R(v+1);break;case "ArrowUp":L.preventDefault(),v<=0?R(c?S-1:0):R(v-1);break;case "Home":L.preventDefault(),R(0);break;case "End":L.preventDefault(),R(S-1);break;case "Enter":case " ":L.preventDefault(),v>=0&&v<S&&H[v]?.click();break;case "Tab":f(false);break}};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[p,f,l,v,R,w,c,b]),___namespace.useEffect(()=>{p&&v>=0&&Array.from(w.current.entries()).sort(([L],[H])=>L-H).map(([,L])=>L)[v]?.focus();},[p,v,w]),!N||!p)return null;let P={top:"animate-in fade-in-0 zoom-in-95 slide-in-from-bottom-2",bottom:"animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",left:"animate-in fade-in-0 zoom-in-95 slide-in-from-right-2",right:"animate-in fade-in-0 zoom-in-95 slide-in-from-left-2"}[y];return $o__namespace.createPortal(jsxRuntime.jsx("div",{ref:k=>{x.current=k,typeof u=="function"?u(k):u&&(u.current=k);},id:g,role:"menu","aria-orientation":"vertical","data-state":p?"open":"closed","data-side":y,className:i("fixed z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md outline-none",P,e),style:{top:h.top,left:h.left},...m,children:d}),document.body)});Xr.displayName="DropdownContent";var Ao=0,qt=___namespace.forwardRef(({className:e,inset:t,disabled:r,onSelect:a,onClick:n,onMouseEnter:o,...s},l)=>{let{onOpenChange:c,activeIndex:d,setActiveIndex:m,registerItem:u,unregisterItem:p}=Na(),[f]=___namespace.useState(()=>Ao++),b=___namespace.useRef(null);___namespace.useEffect(()=>(!r&&b.current&&u(f,b.current),()=>{p(f);}),[r,f,u,p]);let x=R=>{if(r){R.preventDefault();return}n?.(R),a?.(),c(false);},g=R=>{o?.(R),r||m(f);};return jsxRuntime.jsx("div",{ref:R=>{b.current=R,typeof l=="function"?l(R):l&&(l.current=R);},role:"menuitem",tabIndex:r?-1:0,"aria-disabled":r,"data-disabled":r?"":void 0,"data-highlighted":d===f?"":void 0,className:i("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors","focus:bg-accent focus:text-accent-foreground","data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",!r&&"cursor-pointer",e),onClick:x,onMouseEnter:g,...s})});qt.displayName="DropdownItem";var cd=___namespace.forwardRef(({className:e,children:t,checked:r=false,onCheckedChange:a,disabled:n,onClick:o,onMouseEnter:s,...l},c)=>{let{onOpenChange:d,activeIndex:m,setActiveIndex:u,registerItem:p,unregisterItem:f}=Na(),[b]=___namespace.useState(()=>Ao++),x=___namespace.useRef(null);___namespace.useEffect(()=>(!n&&x.current&&p(b,x.current),()=>{f(b);}),[n,b,p,f]);let g=w=>{if(n){w.preventDefault();return}o?.(w),a?.(!r),d(false);},v=w=>{s?.(w),n||u(b);};return jsxRuntime.jsxs("div",{ref:w=>{x.current=w,typeof c=="function"?c(w):c&&(c.current=w);},role:"menuitemcheckbox","aria-checked":r,tabIndex:n?-1:0,"aria-disabled":n,"data-disabled":n?"":void 0,"data-highlighted":m===b?"":void 0,"data-state":r?"checked":"unchecked",className:i("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-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",!n&&"cursor-pointer",e),onClick:g,onMouseEnter:v,...l,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r&&jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})}),t]})});cd.displayName="DropdownCheckboxItem";var dd=___namespace.forwardRef(({value:e="",onValueChange:t,className:r,...a},n)=>jsxRuntime.jsx(ld.Provider,{value:{value:e,onValueChange:t||(()=>{})},children:jsxRuntime.jsx("div",{ref:n,role:"group",className:r,...a})}));dd.displayName="DropdownRadioGroup";var ud=___namespace.forwardRef(({className:e,children:t,value:r,disabled:a,onClick:n,onMouseEnter:o,...s},l)=>{let{onOpenChange:c,activeIndex:d,setActiveIndex:m,registerItem:u,unregisterItem:p}=Na(),f=___namespace.useContext(ld),b=f?.value===r,[x]=___namespace.useState(()=>Ao++),g=___namespace.useRef(null);___namespace.useEffect(()=>(!a&&g.current&&u(x,g.current),()=>{p(x);}),[a,x,u,p]);let v=h=>{if(a){h.preventDefault();return}n?.(h),f?.onValueChange(r),c(false);},R=h=>{o?.(h),a||m(x);};return jsxRuntime.jsxs("div",{ref:h=>{g.current=h,typeof l=="function"?l(h):l&&(l.current=h);},role:"menuitemradio","aria-checked":b,tabIndex:a?-1:0,"aria-disabled":a,"data-disabled":a?"":void 0,"data-highlighted":d===x?"":void 0,"data-state":b?"checked":"unchecked",className:i("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-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",!a&&"cursor-pointer",e),onClick:v,onMouseEnter:R,...s,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:b&&jsxRuntime.jsx(lucideReact.Circle,{className:"h-2 w-2 fill-current"})}),t]})});ud.displayName="DropdownRadioItem";var md=___namespace.forwardRef(({className:e,inset:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));md.displayName="DropdownLabel";var zo=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,role:"separator",className:i("-mx-1 my-1 h-px bg-muted",e),...t}));zo.displayName="DropdownSeparator";var pd=({className:e,...t})=>jsxRuntime.jsx("span",{className:i("ml-auto text-xs tracking-widest opacity-60",e),...t});pd.displayName="DropdownShortcut";var fd=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,role:"group",className:e,...t}));fd.displayName="DropdownGroup";var gd=({children:e,open:t,defaultOpen:r=false,onOpenChange:a})=>{let[n,o]=___namespace.useState(r),{contentRef:s}=Na(),l=t!==void 0,c=l?t:n,d=___namespace.useRef(null),m=___namespace.useCallback(u=>{l||o(u),a?.(u);},[l,a]);return jsxRuntime.jsx(Ni.Provider,{value:{open:c,onOpenChange:m,triggerRef:d,parentMenuRef:s},children:e})};gd.displayName="DropdownSub";var bd=___namespace.forwardRef(({className:e,inset:t,disabled:r,children:a,onMouseEnter:n,onMouseLeave:o,onKeyDown:s,...l},c)=>{let d=___namespace.useContext(Ni),{setActiveIndex:m,registerItem:u,unregisterItem:p}=Na(),[f]=___namespace.useState(()=>Ao++),b=___namespace.useRef(null);if(!d)throw new Error("DropdownSubTrigger must be used within DropdownSub");let{open:x,onOpenChange:g,triggerRef:v}=d;___namespace.useEffect(()=>(!r&&b.current&&u(f,b.current),()=>{p(f);}),[r,f,u,p]);let R=C=>{n?.(C),r||(m(f),g(true));},w=C=>{o?.(C);},h=C=>{s?.(C),(C.key==="ArrowRight"||C.key==="Enter"||C.key===" ")&&(C.preventDefault(),g(true));};return jsxRuntime.jsxs("div",{ref:C=>{b.current=C,v.current=C,typeof c=="function"?c(C):c&&(c.current=C);},role:"menuitem","aria-haspopup":"menu","aria-expanded":x,tabIndex:r?-1:0,"aria-disabled":r,"data-state":x?"open":"closed","data-disabled":r?"":void 0,className:i("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors","focus:bg-accent focus:text-accent-foreground","data-[state=open]:bg-accent","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",!r&&"cursor-pointer",e),onMouseEnter:R,onMouseLeave:w,onKeyDown:h,...l,children:[a,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto"})]})});bd.displayName="DropdownSubTrigger";var vd=___namespace.forwardRef(({className:e,sideOffset:t=2,alignOffset:r=-4,collisionPadding:a=8,onMouseEnter:n,onMouseLeave:o,...s},l)=>{let c=___namespace.useContext(Ni);if(!c)throw new Error("DropdownSubContent must be used within DropdownSub");let{open:d,onOpenChange:m,triggerRef:u,parentMenuRef:p}=c,[f,b]=___namespace.useState({top:0,left:0}),[x,g]=___namespace.useState(false),v=___namespace.useRef(null),R=___namespace.useRef(null);___namespace.useEffect(()=>{g(true);},[]),___namespace.useEffect(()=>{if(!d||!u.current||!v.current)return;(()=>{if(!u.current||!v.current)return;let y=u.current.getBoundingClientRect(),T=v.current.getBoundingClientRect(),N=window.innerWidth,E=window.innerHeight,M=y.top+r,P=y.right+t;P+T.width>N-a&&(P=y.left-T.width-t),M+T.height>E-a&&(M=E-T.height-a),M<a&&(M=a),b({top:M,left:P});})();},[d,t,r,a,u]);let w=C=>{n?.(C),R.current&&(clearTimeout(R.current),R.current=null),m(true);},h=C=>{o?.(C);let y=C.relatedTarget;u.current?.contains(y)||p?.current?.contains(y)||(R.current=setTimeout(()=>{m(false);},100));};return ___namespace.useEffect(()=>()=>{R.current&&clearTimeout(R.current);},[]),!x||!d?null:$o__namespace.createPortal(jsxRuntime.jsx("div",{ref:C=>{v.current=C,typeof l=="function"?l(C):l&&(l.current=C);},role:"menu","data-state":d?"open":"closed",className:i("fixed z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg","animate-in fade-in-0 zoom-in-95 slide-in-from-left-2",e),style:{top:f.top,left:f.left},onMouseEnter:w,onMouseLeave:h,...s}),document.body)});vd.displayName="DropdownSubContent";var xd=___namespace.createContext(null),Ti=()=>{let e=___namespace.useContext(xd);if(!e)throw new Error("Popover components must be used within a Popover");return e},et=({children:e,open:t,defaultOpen:r=false,onOpenChange:a})=>{let[n,o]=___namespace.useState(r),s=t!==void 0,l=s?t:n,c=___namespace.useRef(null),d=___namespace.useId(),m=___namespace.useCallback(u=>{s||o(u),a?.(u);},[s,a]);return jsxRuntime.jsx(xd.Provider,{value:{open:l,onOpenChange:m,triggerRef:c,contentId:d},children:e})};et.displayName="Popover";var gt=___namespace.forwardRef(({asChild:e,children:t,onClick:r,...a},n)=>{let{open:o,onOpenChange:s,triggerRef:l,contentId:c}=Ti(),d=m=>{r?.(m),s(!o);};return e&&___namespace.isValidElement(t)?___namespace.cloneElement(t,{ref:m=>{l.current=m,typeof n=="function"?n(m):n&&(n.current=m);},onClick:m=>{t.props.onClick?.(m),s(!o);},"aria-expanded":o,"aria-haspopup":"dialog","aria-controls":o?c:void 0,...a}):jsxRuntime.jsx("button",{ref:m=>{l.current=m,typeof n=="function"?n(m):n&&(n.current=m);},type:"button","aria-expanded":o,"aria-haspopup":"dialog","aria-controls":o?c:void 0,onClick:d,...a,children:t})});gt.displayName="PopoverTrigger";var Bo=___namespace.forwardRef(({asChild:e,children:t,...r},a)=>{let{triggerRef:n}=Ti();return e&&___namespace.isValidElement(t)?___namespace.cloneElement(t,{ref:o=>{n.current=o,typeof a=="function"?a(o):a&&(a.current=o);},...r}):jsxRuntime.jsx("div",{ref:o=>{n.current=o,typeof a=="function"?a(o):a&&(a.current=o);},...r,children:t})});Bo.displayName="PopoverAnchor";var tt=___namespace.forwardRef(({className:e,side:t="bottom",sideOffset:r=4,align:a="center",alignOffset:n=0,onInteractOutside:o,onEscapeKeyDown:s,onOpenAutoFocus:l,onCloseAutoFocus:c,children:d,...m},u)=>{let{open:p,onOpenChange:f,triggerRef:b,contentId:x}=Ti(),[g,v]=___namespace.useState({top:0,left:0}),[R,w]=___namespace.useState(false),h=___namespace.useRef(null);if(___namespace.useEffect(()=>{w(true);},[]),___namespace.useEffect(()=>{if(!p||!b.current||!h.current)return;let y=()=>{if(!b.current||!h.current)return;let T=b.current.getBoundingClientRect(),N=h.current.getBoundingClientRect(),E=0,M=0;switch(t){case "top":E=T.top-N.height-r;break;case "bottom":E=T.bottom+r;break;case "left":M=T.left-N.width-r;break;case "right":M=T.right+r;break}if(t==="top"||t==="bottom")switch(a){case "start":M=T.left+n;break;case "center":M=T.left+T.width/2-N.width/2;break;case "end":M=T.right-N.width-n;break}else switch(a){case "start":E=T.top+n;break;case "center":E=T.top+T.height/2-N.height/2;break;case "end":E=T.bottom-N.height-n;break}v({top:E,left:M});};return y(),window.addEventListener("resize",y),window.addEventListener("scroll",y,true),()=>{window.removeEventListener("resize",y),window.removeEventListener("scroll",y,true);}},[p,t,r,a,n,b]),___namespace.useEffect(()=>{if(!p)return;let y=T=>{let N=T.target;h.current&&!h.current.contains(N)&&b.current&&!b.current.contains(N)&&(o?.(),f(false));};return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)},[p,f,o,b]),___namespace.useEffect(()=>{if(!p)return;let y=T=>{T.key==="Escape"&&(s?.(),f(false));};return document.addEventListener("keydown",y),()=>document.removeEventListener("keydown",y)},[p,f,s]),!R||!p)return null;let C={top:"animate-in fade-in-0 zoom-in-95 slide-in-from-bottom-2",bottom:"animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",left:"animate-in fade-in-0 zoom-in-95 slide-in-from-right-2",right:"animate-in fade-in-0 zoom-in-95 slide-in-from-left-2"}[t];return $o__namespace.createPortal(jsxRuntime.jsx("div",{ref:y=>{h.current=y,typeof u=="function"?u(y):u&&(u.current=y);},id:x,role:"dialog","data-state":p?"open":"closed","data-side":t,className:i("fixed z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none",C,e),style:{top:g.top,left:g.left},...m,children:d}),document.body)});tt.displayName="PopoverContent";var yd=___namespace.createContext(null),ki=()=>{let e=___namespace.useContext(yd);if(!e)throw new Error("Tabs components must be used within a Tabs");return e},Rd=___namespace.forwardRef(({className:e,value:t,defaultValue:r="",onValueChange:a,variant:n="solid",radius:o="md",orientation:s="horizontal",children:l,...c},d)=>{let[m,u]=___namespace.useState(r),p=t!==void 0,f=p?t:m,b=x=>{p||u(x),a?.(x);};return jsxRuntime.jsx(yd.Provider,{value:{value:f,onValueChange:b,variant:n,radius:o,orientation:s},children:jsxRuntime.jsx("div",{ref:d,"data-orientation":s,className:i(s==="vertical"&&"flex gap-4",e),...c,children:l})})});Rd.displayName="Tabs";var Pi={none:{list:"rounded-none",trigger:"rounded-none",indicator:"rounded-none"},sm:{list:"rounded-md",trigger:"rounded-sm",indicator:"rounded-sm"},md:{list:"rounded-lg",trigger:"rounded-md",indicator:"rounded-md"},lg:{list:"rounded-xl",trigger:"rounded-lg",indicator:"rounded-lg"},full:{list:"rounded-full",trigger:"rounded-full",indicator:"rounded-full"}},wd=___namespace.forwardRef(({className:e,children:t,...r},a)=>{let{variant:n,radius:o,orientation:s,value:l}=ki(),c=___namespace.useRef(null),[d,m]=___namespace.useState({opacity:0});___namespace.useEffect(()=>{let b=c.current;if(!b)return;let x=()=>{let v=b.querySelector('[data-state="active"]');if(v){let R=b.getBoundingClientRect(),w=v.getBoundingClientRect(),h=s==="vertical";n==="underline"?m(h?{width:2,height:w.height,transform:`translateY(${w.top-R.top}px)`,opacity:1}:{width:w.width,height:2,transform:`translateX(${w.left-R.left}px)`,opacity:1}):n==="solid"&&m(h?{width:w.width,height:w.height,transform:`translateY(${w.top-R.top}px)`,opacity:1}:{width:w.width,height:w.height,transform:`translateX(${w.left-R.left}px)`,opacity:1});}};x();let g=new ResizeObserver(x);return g.observe(b),()=>{g.disconnect();}},[n,s,l]);let u={solid:"bg-muted p-1",underline:"border-b border-border bg-transparent p-0 !rounded-none",outline:"bg-transparent p-0 gap-1 !rounded-none"},p=s==="vertical",f=()=>n==="solid"?p?"top-0 left-1 bg-background shadow":"top-1 left-1 bg-background shadow":n==="underline"?p?"top-0 left-0 bg-primary !rounded-full":"bottom-0 left-0 bg-primary !rounded-full":"";return jsxRuntime.jsxs("div",{ref:b=>{c.current=b,typeof a=="function"?a(b):a&&(a.current=b);},role:"tablist","aria-orientation":s,className:i("relative inline-flex h-9 items-center justify-center text-muted-foreground",p&&"flex-col h-auto w-auto",Pi[o].list,u[n],e),...r,children:[(n==="solid"||n==="underline")&&jsxRuntime.jsx("span",{className:i("absolute transition-all duration-200 ease-out",Pi[o].indicator,f()),style:d,"aria-hidden":"true"}),t]})});wd.displayName="TabsList";var Cd=___namespace.forwardRef(({className:e,value:t,disabled:r,onClick:a,...n},o)=>{let{value:s,onValueChange:l,variant:c,radius:d}=ki(),m=s===t,u={solid:"data-[state=active]:text-foreground",underline:"!rounded-none border-b-2 border-transparent pb-2 data-[state=active]:text-foreground",outline:"border border-transparent data-[state=active]:border-border data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm"};return jsxRuntime.jsx("button",{type:"button",role:"tab",ref:o,"aria-selected":m,"data-state":m?"active":"inactive",disabled:r,className:i("relative z-10 inline-flex items-center justify-center whitespace-nowrap px-3 py-1 text-sm font-medium ring-offset-background transition-all cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed",Pi[d].trigger,u[c],e),onClick:p=>{a?.(p),l(t);},...n})});Cd.displayName="TabsTrigger";var Nd=___namespace.forwardRef(({className:e,value:t,children:r,...a},n)=>{let{value:o}=ki(),s=o===t;return s?jsxRuntime.jsx("div",{ref:n,role:"tabpanel","data-state":s?"active":"inactive",className:i("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...a,children:r}):null});Nd.displayName="TabsContent";var Td=___namespace.createContext(null),Fo=()=>{let e=___namespace.useContext(Td);if(!e)throw new Error("Sheet components must be used within a Sheet");return e},Ko=({open:e,defaultOpen:t=false,onOpenChange:r,children:a})=>{let[n,o]=___namespace.useState(t),s=e!==void 0,l=s?e:n,c=___namespace.useCallback(d=>{s||o(d),r?.(d);},[s,r]);return jsxRuntime.jsx(Td.Provider,{value:{open:l,onOpenChange:c},children:a})};Ko.displayName="Sheet";var Pd=___namespace.forwardRef(({asChild:e,onClick:t,children:r,...a},n)=>{let{onOpenChange:o}=Fo(),s=l=>{t?.(l),o(true);};return e&&___namespace.isValidElement(r)?___namespace.cloneElement(r,{onClick:l=>{r.props.onClick?.(l),o(true);}}):jsxRuntime.jsx("button",{ref:n,type:"button",onClick:s,...a,children:r})});Pd.displayName="SheetTrigger";var kd=___namespace.forwardRef(({asChild:e,onClick:t,children:r,...a},n)=>{let{onOpenChange:o}=Fo(),s=l=>{t?.(l),o(false);};return e&&___namespace.isValidElement(r)?___namespace.cloneElement(r,{onClick:l=>{r.props.onClick?.(l),o(false);}}):jsxRuntime.jsx("button",{ref:n,type:"button",onClick:s,...a,children:r})});kd.displayName="SheetClose";var Li=({children:e,container:t})=>{let[r,a]=___namespace.useState(false);return ___namespace.useEffect(()=>{a(true);},[]),r?$o__namespace.createPortal(e,t||document.body):null};Li.displayName="SheetPortal";var Ed=___namespace.forwardRef(({className:e,...t},r)=>{let{open:a,onOpenChange:n}=Fo();return a?jsxRuntime.jsx("div",{ref:r,className:i("fixed inset-0 z-50 bg-black/80",a?"animate-in fade-in-0":"animate-out fade-out-0",e),onClick:()=>n(false),"aria-hidden":"true",...t}):null});Ed.displayName="SheetOverlay";var Ld=classVarianceAuthority.cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition-transform duration-300 ease-in-out",{variants:{side:{top:"inset-x-0 top-0 border-b",bottom:"inset-x-0 bottom-0 border-t",left:"inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm"}},defaultVariants:{side:"right"}}),DR=(e,t)=>({top:t?"animate-in slide-in-from-top":"animate-out slide-out-to-top",bottom:t?"animate-in slide-in-from-bottom":"animate-out slide-out-to-bottom",left:t?"animate-in slide-in-from-left":"animate-out slide-out-to-left",right:t?"animate-in slide-in-from-right":"animate-out slide-out-to-right"})[e],Go=___namespace.forwardRef(({side:e="right",className:t,children:r,hideCloseButton:a,onEscapeKeyDown:n,onInteractOutside:o,...s},l)=>{let{open:c,onOpenChange:d}=Fo(),[m,u]=___namespace.useState(false),[,p]=___namespace.useState(false);return ___namespace.useEffect(()=>{if(c)u(true),p(true),document.body.style.overflow="hidden";else {p(true);let f=setTimeout(()=>{u(false),p(false),document.body.style.overflow="";},300);return ()=>clearTimeout(f)}return ()=>{document.body.style.overflow="";}},[c]),___namespace.useEffect(()=>{let f=b=>{b.key==="Escape"&&c&&(n?.(),d(false));};return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[c,d,n]),!m&&!c?null:jsxRuntime.jsxs(Li,{children:[jsxRuntime.jsx("div",{className:i("fixed inset-0 z-50 bg-black/80 transition-opacity duration-300",c?"opacity-100":"opacity-0"),onClick:()=>{o?.(),d(false);},"aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:l,role:"dialog","aria-modal":"true",className:i(Ld({side:e}),DR(e,c),t),...s,children:[!a&&jsxRuntime.jsxs("button",{type:"button",onClick:()=>d(false),className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none cursor-pointer",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]}),r]})]})});Go.displayName="SheetContent";var Dd=({className:e,...t})=>jsxRuntime.jsx("div",{className:i("flex flex-col space-y-2 text-center sm:text-left",e),...t});Dd.displayName="SheetHeader";var Sd=({className:e,...t})=>jsxRuntime.jsx("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Sd.displayName="SheetFooter";var Hd=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("h2",{ref:r,className:i("text-lg font-semibold text-foreground",e),...t}));Hd.displayName="SheetTitle";var Id=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("p",{ref:r,className:i("text-sm text-muted-foreground",e),...t}));Id.displayName="SheetDescription";var IR=({theme:e="system",...t})=>jsxRuntime.jsx(sonner.Toaster,{theme:e,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...t});var Vd=___namespace.createContext(null),Kn=()=>{let e=___namespace.useContext(Vd);if(!e)throw new Error("ContextMenu components must be used within a ContextMenu");return e},Di=___namespace.createContext(null),Ad=___namespace.createContext(null),zd=({children:e,onOpenChange:t})=>{let[r,a]=___namespace.useState(false),[n,o]=___namespace.useState({x:0,y:0}),s=___namespace.useId(),l=___namespace.useCallback(c=>{a(c),t?.(c);},[t]);return jsxRuntime.jsx(Vd.Provider,{value:{open:r,onOpenChange:l,position:n,setPosition:o,contentId:s},children:e})};zd.displayName="ContextMenu";var Bd=___namespace.forwardRef(({asChild:e,children:t,onContextMenu:r,...a},n)=>{let{onOpenChange:o,setPosition:s}=Kn(),l=c=>{c.preventDefault(),s({x:c.clientX,y:c.clientY}),o(true);};return e&&___namespace.isValidElement(t)?___namespace.cloneElement(t,{ref:n,onContextMenu:c=>{c.preventDefault(),t.props.onContextMenu?.(c),s({x:c.clientX,y:c.clientY}),o(true);},...a}):jsxRuntime.jsx("div",{ref:n,onContextMenu:c=>{r?.(c),l(c);},...a,children:t})});Bd.displayName="ContextMenuTrigger";var Od=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,role:"group",className:e,...t}));Od.displayName="ContextMenuGroup";var Fd=({children:e,container:t})=>{let[r,a]=___namespace.useState(false);return ___namespace.useEffect(()=>{a(true);},[]),r?$o__namespace.createPortal(e,t||document.body):null};Fd.displayName="ContextMenuPortal";var Kd=({children:e,open:t,defaultOpen:r=false,onOpenChange:a})=>{let[n,o]=___namespace.useState(r),s=t!==void 0,l=s?t:n,c=___namespace.useRef(null),d=___namespace.useCallback(m=>{s||o(m),a?.(m);},[s,a]);return jsxRuntime.jsx(Di.Provider,{value:{open:l,onOpenChange:d,triggerRef:c},children:e})};Kd.displayName="ContextMenuSub";var Gd=___namespace.forwardRef(({value:e="",onValueChange:t,className:r,...a},n)=>jsxRuntime.jsx(Ad.Provider,{value:{value:e,onValueChange:t||(()=>{})},children:jsxRuntime.jsx("div",{ref:n,role:"group",className:r,...a})}));Gd.displayName="ContextMenuRadioGroup";var $d=___namespace.forwardRef(({className:e,onInteractOutside:t,onEscapeKeyDown:r,children:a,...n},o)=>{let{open:s,onOpenChange:l,position:c,contentId:d}=Kn(),[m,u]=___namespace.useState(false),[p,f]=___namespace.useState(c),b=___namespace.useRef(null);return ___namespace.useEffect(()=>{u(true);},[]),___namespace.useEffect(()=>{if(!s||!b.current){f(c);return}let g=b.current.getBoundingClientRect(),{x:v,y:R}=c;v+g.width>window.innerWidth&&(v=window.innerWidth-g.width-8),R+g.height>window.innerHeight&&(R=window.innerHeight-g.height-8),f({x:v,y:R});},[s,c]),___namespace.useEffect(()=>{if(!s)return;let x=g=>{let v=g.target;b.current&&!b.current.contains(v)&&(t?.(),l(false));};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[s,l,t]),___namespace.useEffect(()=>{if(!s)return;let x=g=>{g.key==="Escape"&&(r?.(),l(false));};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[s,l,r]),!m||!s?null:$o__namespace.createPortal(jsxRuntime.jsx("div",{ref:x=>{b.current=x,typeof o=="function"?o(x):o&&(o.current=x);},id:d,role:"menu","aria-orientation":"vertical","data-state":s?"open":"closed",className:i("fixed z-50 max-h-[calc(100vh-2rem)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border border-zinc-200 dark:border-zinc-800 bg-white dark:bg-zinc-950 p-1 text-zinc-950 dark:text-zinc-50 shadow-md","animate-in fade-in-0 zoom-in-95",e),style:{top:p.y,left:p.x},...n,children:a}),document.body)});$d.displayName="ContextMenuContent";var _d=___namespace.forwardRef(({className:e,inset:t,children:r,onMouseEnter:a,onMouseLeave:n,...o},s)=>{let l=___namespace.useContext(Di);if(!l)throw new Error("ContextMenuSubTrigger must be used within ContextMenuSub");let{open:c,onOpenChange:d,triggerRef:m}=l,u=f=>{a?.(f),d(true);},p=f=>{n?.(f),d(false);};return jsxRuntime.jsxs("div",{ref:f=>{m.current=f,typeof s=="function"?s(f):s&&(s.current=f);},role:"menuitem","aria-haspopup":"menu","aria-expanded":c,"data-state":c?"open":"closed",className:i("flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none hover:bg-zinc-100 dark:hover:bg-zinc-800 focus:bg-zinc-100 dark:focus:bg-zinc-800 data-[state=open]:bg-zinc-100 dark:data-[state=open]:bg-zinc-800",t&&"pl-8",e),onMouseEnter:u,onMouseLeave:p,...o,children:[r,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto h-4 w-4"})]})});_d.displayName="ContextMenuSubTrigger";var Wd=___namespace.forwardRef(({className:e,sideOffset:t=2,onMouseEnter:r,onMouseLeave:a,...n},o)=>{let s=___namespace.useContext(Di);if(!s)throw new Error("ContextMenuSubContent must be used within ContextMenuSub");let{open:l,onOpenChange:c,triggerRef:d}=s,[m,u]=___namespace.useState({top:0,left:0}),[p,f]=___namespace.useState(false),b=___namespace.useRef(null);___namespace.useEffect(()=>{f(true);},[]),___namespace.useEffect(()=>{if(!l||!d.current||!b.current)return;(()=>{if(!d.current||!b.current)return;let R=d.current.getBoundingClientRect(),w=b.current.getBoundingClientRect(),h=R.top,C=R.right+t;C+w.width>window.innerWidth&&(C=R.left-w.width-t),u({top:h,left:C});})();},[l,t,d]);let x=v=>{r?.(v),c(true);},g=v=>{a?.(v),c(false);};return !p||!l?null:$o__namespace.createPortal(jsxRuntime.jsx("div",{ref:v=>{b.current=v,typeof o=="function"?o(v):o&&(o.current=v);},role:"menu","data-state":l?"open":"closed",className:i("fixed z-50 min-w-[8rem] overflow-hidden rounded-md border border-zinc-200 dark:border-zinc-800 bg-white dark:bg-zinc-950 p-1 text-zinc-950 dark:text-zinc-50 shadow-lg","animate-in fade-in-0 zoom-in-95 slide-in-from-left-2",e),style:{top:m.top,left:m.left},onMouseEnter:x,onMouseLeave:g,...n}),document.body)});Wd.displayName="ContextMenuSubContent";var jd=___namespace.forwardRef(({className:e,inset:t,disabled:r,onSelect:a,onClick:n,...o},s)=>{let{onOpenChange:l}=Kn(),c=d=>{if(r){d.preventDefault();return}n?.(d),a?.(),l(false);};return jsxRuntime.jsx("div",{ref:s,role:"menuitem",tabIndex:r?-1:0,"aria-disabled":r,"data-disabled":r?"":void 0,className:i("relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none hover:bg-zinc-100 dark:hover:bg-zinc-800 focus:bg-zinc-100 dark:focus:bg-zinc-800 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[disabled]:cursor-not-allowed",t&&"pl-8",e),onClick:c,...o})});jd.displayName="ContextMenuItem";var Yd=___namespace.forwardRef(({className:e,children:t,checked:r=false,onCheckedChange:a,disabled:n,onClick:o,...s},l)=>{let{onOpenChange:c}=Kn(),d=m=>{if(n){m.preventDefault();return}o?.(m),a?.(!r),c(false);};return jsxRuntime.jsxs("div",{ref:l,role:"menuitemcheckbox","aria-checked":r,tabIndex:n?-1:0,"aria-disabled":n,"data-disabled":n?"":void 0,"data-state":r?"checked":"unchecked",className:i("relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-zinc-100 dark:hover:bg-zinc-800 focus:bg-zinc-100 dark:focus:bg-zinc-800 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[disabled]:cursor-not-allowed",e),onClick:d,...s,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r&&jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})}),t]})});Yd.displayName="ContextMenuCheckboxItem";var Ud=___namespace.forwardRef(({className:e,children:t,value:r,disabled:a,onClick:n,...o},s)=>{let{onOpenChange:l}=Kn(),c=___namespace.useContext(Ad),d=c?.value===r,m=u=>{if(a){u.preventDefault();return}n?.(u),c?.onValueChange(r),l(false);};return jsxRuntime.jsxs("div",{ref:s,role:"menuitemradio","aria-checked":d,tabIndex:a?-1:0,"aria-disabled":a,"data-disabled":a?"":void 0,"data-state":d?"checked":"unchecked",className:i("relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-zinc-100 dark:hover:bg-zinc-800 focus:bg-zinc-100 dark:focus:bg-zinc-800 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[disabled]:cursor-not-allowed",e),onClick:m,...o,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d&&jsxRuntime.jsx(lucideReact.Circle,{className:"h-4 w-4 fill-current"})}),t]})});Ud.displayName="ContextMenuRadioItem";var Xd=___namespace.forwardRef(({className:e,inset:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...r}));Xd.displayName="ContextMenuLabel";var qd=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,role:"separator",className:i("-mx-1 my-1 h-px bg-border",e),...t}));qd.displayName="ContextMenuSeparator";var Zd=({className:e,...t})=>jsxRuntime.jsx("span",{className:i("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Zd.displayName="ContextMenuShortcut";var Jd=___namespace.createContext(null),FR=()=>{let e=___namespace.useContext(Jd);if(!e)throw new Error("RadioGroupItem must be used within a RadioGroup");return e},Qd=___namespace.forwardRef(({className:e,value:t,defaultValue:r="",onValueChange:a,name:n,disabled:o,required:s,orientation:l="vertical",children:c,...d},m)=>{let[u,p]=___namespace.useState(r),f=t!==void 0,b=f?t:u,x=___namespace.useId(),g=v=>{f||p(v),a?.(v);};return jsxRuntime.jsx("div",{ref:m,role:"radiogroup","aria-required":s,"aria-orientation":l,className:i(l==="vertical"?"grid gap-2":"flex gap-4",e),...d,children:jsxRuntime.jsx(Jd.Provider,{value:{name:n||x,value:b,onValueChange:g,disabled:o,required:s},children:c})})});Qd.displayName="RadioGroup";var eu=___namespace.forwardRef(({className:e,value:t,disabled:r,...a},n)=>{let o=FR(),s=o.value===t,l=r||o.disabled;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{type:"button",role:"radio","aria-checked":s,disabled:l,ref:n,className:i("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer",e),onClick:()=>o.onValueChange(t),...a,children:s&&jsxRuntime.jsx("span",{className:"flex items-center justify-center",children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-2.5 w-2.5 fill-current text-current"})})}),jsxRuntime.jsx("input",{type:"radio","aria-hidden":true,tabIndex:-1,name:o.name,value:t,checked:s,required:o.required,disabled:l,onChange:()=>{},style:{position:"absolute",pointerEvents:"none",opacity:0,margin:0,width:0,height:0}})]})});eu.displayName="RadioGroupItem";var Wo=classVarianceAuthority.cva("inline-flex items-center justify-center 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 gap-2",{variants:{variant:{solid:"bg-transparent hover:bg-muted data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",outline:"border border-input bg-transparent hover:bg-accent data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",ghost:"bg-transparent hover:bg-accent data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",soft:"bg-transparent hover:bg-primary/10 data-[state=on]:bg-primary/15 data-[state=on]:text-primary",surface:"bg-muted/50 hover:bg-muted data-[state=on]:bg-muted data-[state=on]:text-foreground"},size:{sm:"h-9 px-2.5 min-w-9",md:"h-10 px-3 min-w-10",lg:"h-11 px-5 min-w-11"}},defaultVariants:{variant:"solid",size:"md"}}),tu=___namespace.forwardRef(({className:e,variant:t,size:r,pressed:a,defaultPressed:n=false,onPressedChange:o,disabled:s,onKeyDown:l,...c},d)=>{let[m,u]=___namespace.useState(n),p=a!==void 0,f=p?a:m,b=()=>{if(s)return;let g=!f;p||u(g),o?.(g);},x=g=>{g.key==="Enter"&&g.preventDefault(),l?.(g);};return jsxRuntime.jsx("button",{type:"button","aria-pressed":f,"data-state":f?"on":"off",disabled:s,ref:d,className:i(Wo({variant:t,size:r,className:e})),onClick:b,onKeyDown:x,...c})});tu.displayName="Toggle";var ru=___namespace.createContext(null),WR=()=>{let e=___namespace.useContext(ru);if(!e)throw new Error("ToggleGroupItem must be used within a ToggleGroup");return e},au=___namespace.forwardRef(({className:e,variant:t,size:r,type:a,value:n,defaultValue:o,onValueChange:s,disabled:l,children:c,...d},m)=>{let[u,p]=___namespace.useState(()=>a==="single"?o?[o]:[]:o||[]),f=n!==void 0,b=f?a==="single"?n?[n]:[]:n:u,x=g=>{if(a==="single"){let v=b.includes(g)?[]:[g];f||p(v),s?.(v[0]||"");}else {let v=b.includes(g)?b.filter(R=>R!==g):[...b,g];f||p(v),s?.(v);}};return jsxRuntime.jsx("div",{ref:m,role:"group",className:i("flex items-center justify-center gap-1",e),...d,children:jsxRuntime.jsx(ru.Provider,{value:{type:a,variant:t,size:r,value:b,onValueChange:x,disabled:l},children:c})})});au.displayName="ToggleGroup";var nu=___namespace.forwardRef(({className:e,children:t,variant:r,size:a,value:n,disabled:o,...s},l)=>{let c=WR(),d=c.value.includes(n),m=o||c.disabled;return jsxRuntime.jsx("button",{type:"button",role:"radio","aria-checked":d,"aria-pressed":d,"data-state":d?"on":"off",disabled:m,ref:l,className:i(Wo({variant:c.variant||r,size:c.size||a}),e),onClick:()=>c.onValueChange(n),...s,children:t})});nu.displayName="ToggleGroupItem";var Yo=___namespace.forwardRef(({className:e,value:t,defaultValue:r=[0],onValueChange:a,onValueCommit:n,min:o=0,max:s=100,step:l=1,disabled:c=false,orientation:d="horizontal",name:m,...u},p)=>{let[f,b]=___namespace.useState(r),x=t!==void 0,g=x?t:f,v=___namespace.useRef(null),[R,w]=___namespace.useState(false),[h,C]=___namespace.useState(null),y=(H,S)=>{if(!v.current)return g[0];let D=v.current.getBoundingClientRect(),V;d==="horizontal"?V=(H-D.left)/D.width:V=1-(S-D.top)/D.height,V=Math.max(0,Math.min(1,V));let z=o+V*(s-o),G=Math.round(z/l)*l;return Math.max(o,Math.min(s,G))},T=(H,S)=>{let D=[...g];D[S]=H,S>0&&H<g[S-1]&&(D[S]=g[S-1]),S<g.length-1&&H>g[S+1]&&(D[S]=g[S+1]),x||b(D),a?.(D);},N=(H,S)=>{c||(H.preventDefault(),w(true),C(S),H.target.setPointerCapture(H.pointerId));},E=H=>{if(!R||h===null||c)return;let S=y(H.clientX,H.clientY);T(S,h);},M=()=>{R&&(w(false),C(null),n?.(g));},P=H=>{if(c)return;let S=y(H.clientX,H.clientY),D=0,V=Math.abs(g[0]-S);for(let z=1;z<g.length;z++){let G=Math.abs(g[z]-S);G<V&&(V=G,D=z);}T(S,D),n?.([...g.slice(0,D),S,...g.slice(D+1)]);},k=(H,S)=>{if(c)return;let D=g[S];switch(H.key){case "ArrowRight":case "ArrowUp":H.preventDefault(),D=Math.min(s,g[S]+l);break;case "ArrowLeft":case "ArrowDown":H.preventDefault(),D=Math.max(o,g[S]-l);break;case "Home":H.preventDefault(),D=o;break;case "End":H.preventDefault(),D=s;break;default:return}T(D,S),n?.([...g.slice(0,S),D,...g.slice(S+1)]);},L=H=>(H-o)/(s-o)*100;return jsxRuntime.jsxs("div",{ref:p,className:i("relative flex touch-none select-none items-center",d==="vertical"&&"flex-col h-full w-5",c&&"opacity-50 pointer-events-none",e),...u,children:[jsxRuntime.jsx("div",{ref:v,className:i("relative grow overflow-hidden rounded-full bg-secondary",d==="horizontal"?"h-2 w-full":"h-full w-2"),onClick:P,children:jsxRuntime.jsx("div",{className:"absolute bg-primary",style:d==="horizontal"?{left:g.length>1?`${L(g[0])}%`:0,right:`${100-L(g[g.length-1])}%`,top:0,bottom:0}:{bottom:g.length>1?`${L(g[0])}%`:0,top:`${100-L(g[g.length-1])}%`,left:0,right:0}})}),g.map((H,S)=>jsxRuntime.jsx("div",{role:"slider",tabIndex:c?-1:0,"aria-valuemin":o,"aria-valuemax":s,"aria-valuenow":H,"aria-orientation":d,"aria-disabled":c,className:i("absolute block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 cursor-grab",R&&h===S&&"cursor-grabbing"),style:d==="horizontal"?{left:`calc(${L(H)}% - 10px)`,top:"50%",transform:"translateY(-50%)"}:{bottom:`calc(${L(H)}% - 10px)`,left:"50%",transform:"translateX(-50%)"},onPointerDown:D=>N(D,S),onPointerMove:E,onPointerUp:M,onPointerCancel:M,onKeyDown:D=>k(D,S)},S)),m&&g.map((H,S)=>jsxRuntime.jsx("input",{type:"hidden",name:g.length>1?`${m}[${S}]`:m,value:H},S))]})});Yo.displayName="Slider";var ou=___namespace.createContext(null),su=()=>{let e=___namespace.useContext(ou);if(!e)throw new Error("AccordionItem must be used within an Accordion");return e},Ii=___namespace.createContext(null),iu=()=>{let e=___namespace.useContext(Ii);if(!e)throw new Error("AccordionTrigger/AccordionContent must be used within an AccordionItem");return e},lu=___namespace.forwardRef(({className:e,type:t="multiple",value:r,defaultValue:a,onValueChange:n,collapsible:o=true,disabled:s,children:l,...c},d)=>{let[m,u]=___namespace.useState(()=>t==="single"?a?[a]:[]:a||[]),p=___namespace.useRef(new Map),f=___namespace.useRef([]),b=r!==void 0,x=b?t==="single"?r?[r]:[]:r:m,g=h=>{if(t==="single"){let y=x.includes(h)&&o?[]:[h];b||u(y),n?.(y[0]||"");}else {let C=x.includes(h)?x.filter(y=>y!==h):[...x,h];b||u(C),n?.(C);}},v=___namespace.useCallback((h,C)=>{p.current.set(h,C),f.current.includes(h)||f.current.push(h);},[]),R=___namespace.useCallback(h=>{p.current.delete(h),f.current=f.current.filter(C=>C!==h);},[]),w=___namespace.useCallback(h=>{let C=f.current;if(C.length===0)return;let y=document.activeElement,T;p.current.forEach((k,L)=>{k===y&&(T=L);});let N=T?C.indexOf(T):-1,E;switch(h){case "first":E=0;break;case "last":E=C.length-1;break;case "next":E=N===-1?0:(N+1)%C.length;break;case "prev":E=N===-1?C.length-1:(N-1+C.length)%C.length;break}let M=C[E];p.current.get(M)?.focus();},[]);return jsxRuntime.jsx(ou.Provider,{value:{type:t,value:x,onValueChange:g,collapsible:o,disabled:s,registerTrigger:v,unregisterTrigger:R,focusTrigger:w},children:jsxRuntime.jsx("div",{ref:d,"data-orientation":"vertical",className:i("w-full",e),...c,children:l})})});lu.displayName="Accordion";var cu=___namespace.forwardRef(({className:e,value:t,disabled:r,title:a,subtitle:n,startContent:o,children:s,...l},c)=>{let d=su(),m=d.value.includes(t),u=r||d.disabled||false,p=___namespace.useId(),f=___namespace.useId();return a!==void 0?jsxRuntime.jsx(Ii.Provider,{value:{value:t,isOpen:m,isDisabled:u,contentId:p,triggerId:f},children:jsxRuntime.jsxs("div",{ref:c,"data-state":m?"open":"closed","data-disabled":u?"":void 0,className:i("border-b",u&&"opacity-50",e),...l,children:[jsxRuntime.jsx(du,{children:jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[o,jsxRuntime.jsxs("div",{className:"flex flex-col items-start",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium",children:a}),n&&jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:n})]})]})}),jsxRuntime.jsx(uu,{children:s})]})}):jsxRuntime.jsx(Ii.Provider,{value:{value:t,isOpen:m,isDisabled:u,contentId:p,triggerId:f},children:jsxRuntime.jsx("div",{ref:c,"data-state":m?"open":"closed","data-disabled":u?"":void 0,className:i("border-b",u&&"opacity-50",e),...l,children:s})})});cu.displayName="AccordionItem";var du=___namespace.forwardRef(({className:e,children:t,onClick:r,onKeyDown:a,...n},o)=>{let s=su(),{value:l,isOpen:c,isDisabled:d,contentId:m,triggerId:u}=iu(),p=___namespace.useRef(null);___namespace.useEffect(()=>{let b=p.current;return b&&!d&&s.registerTrigger(l,b),()=>{s.unregisterTrigger(l);}},[l,d,s]);let f=b=>{switch(a?.(b),b.key){case "ArrowDown":b.preventDefault(),s.focusTrigger("next");break;case "ArrowUp":b.preventDefault(),s.focusTrigger("prev");break;case "Home":b.preventDefault(),s.focusTrigger("first");break;case "End":b.preventDefault(),s.focusTrigger("last");break}};return jsxRuntime.jsx("h3",{className:"flex",children:jsxRuntime.jsxs("button",{type:"button",ref:b=>{p.current=b,typeof o=="function"?o(b):o&&(o.current=b);},id:u,"aria-controls":m,"aria-expanded":c,disabled:d,"data-state":c?"open":"closed",className:i("flex flex-1 items-center justify-between py-4 font-medium transition-all text-left cursor-pointer disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",e),onClick:b=>{r?.(b),s.onValueChange(l);},onKeyDown:f,...n,children:[t,jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})})});du.displayName="AccordionTrigger";var uu=___namespace.forwardRef(({className:e,children:t,style:r,...a},n)=>{let{isOpen:o,contentId:s,triggerId:l,isDisabled:c}=iu();return jsxRuntime.jsx("div",{ref:n,id:s,role:"region","aria-labelledby":l,"data-state":o?"open":"closed","data-disabled":c?"":void 0,className:i("grid transition-[grid-template-rows] duration-200 ease-out",o?"grid-rows-[1fr]":"grid-rows-[0fr]",e),style:r,...a,children:jsxRuntime.jsx("div",{className:"overflow-hidden",children:jsxRuntime.jsx("div",{className:"pb-4 pt-0 text-sm",children:t})})})});uu.displayName="AccordionContent";var pu=___namespace.createContext(null),fu=()=>{let e=___namespace.useContext(pu);if(!e)throw new Error("Collapsible components must be used within a Collapsible");return e},gu=___namespace.forwardRef(({className:e,open:t,defaultOpen:r=false,onOpenChange:a,disabled:n,title:o,children:s,...l},c)=>{let[d,m]=___namespace.useState(r),u=t!==void 0,p=u?t:d,f=___namespace.useId(),b=___namespace.useId(),x=g=>{n||(u||m(g),a?.(g));};return jsxRuntime.jsx(pu.Provider,{value:{open:p,onOpenChange:x,disabled:n,contentId:f,triggerId:b},children:jsxRuntime.jsxs("div",{ref:c,"data-state":p?"open":"closed","data-disabled":n?"":void 0,className:i("space-y-2",e),...l,children:[o&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between space-x-4 px-4",children:[jsxRuntime.jsx("h4",{className:"text-sm font-semibold",children:o}),jsxRuntime.jsx(Vi,{})]}),s]})})});gu.displayName="Collapsible";var Vi=___namespace.forwardRef(({className:e,children:t,onClick:r,...a},n)=>{let{open:o,onOpenChange:s,disabled:l,contentId:c,triggerId:d}=fu();return jsxRuntime.jsx("button",{ref:n,type:"button",id:d,"aria-controls":c,"aria-expanded":o,disabled:l,"data-state":o?"open":"closed","data-disabled":l?"":void 0,className:i("flex items-center justify-center h-9 w-9 rounded-lg bg-transparent hover:bg-zinc-100 dark:hover:bg-zinc-800 transition-colors cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",e),onClick:m=>{r?.(m),s(!o);},...a,children:t??jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"h-4 w-4"})})});Vi.displayName="CollapsibleTrigger";var bu=___namespace.forwardRef(({className:e,children:t,style:r,...a},n)=>{let{open:o,contentId:s,triggerId:l,disabled:c}=fu(),d=___namespace.useRef(null),[m,u]=___namespace.useState(void 0),[p,f]=___namespace.useState(false),[b,x]=___namespace.useState(o);___namespace.useEffect(()=>{o?(x(true),f(true),requestAnimationFrame(()=>{d.current&&u(d.current.scrollHeight);})):(f(true),u(0));},[o]);let g=()=>{f(false),o||x(false),u(void 0);};return b?jsxRuntime.jsx("div",{ref:n,id:s,role:"region","aria-labelledby":l,"data-state":o?"open":"closed","data-disabled":c?"":void 0,className:i("overflow-hidden",e),style:{...r,height:p?m!==void 0?m:"auto":o?"auto":0,transition:p?"height 0.25s ease-out, opacity 0.25s ease-out":void 0,opacity:o?1:0},onTransitionEnd:g,...a,children:jsxRuntime.jsx("div",{ref:d,children:t})}):null});bu.displayName="CollapsibleContent";var Xo=___namespace.forwardRef(({className:e,value:t=0,max:r=100,...a},n)=>{let o=Math.min(Math.max(t/r*100,0),100);return jsxRuntime.jsx("div",{ref:n,role:"progressbar","aria-valuenow":t,"aria-valuemin":0,"aria-valuemax":r,className:i("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...a,children:jsxRuntime.jsx("div",{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-o}%)`}})})});Xo.displayName="Progress";var yu=___namespace.createContext(null),Ru=()=>{let e=___namespace.useContext(yu);if(!e)throw new Error("HoverCard components must be used within a HoverCard");return e},wu=({children:e,open:t,defaultOpen:r=false,onOpenChange:a,openDelay:n=700,closeDelay:o=300,closeOnScroll:s=true})=>{let[l,c]=___namespace.useState(r),d=t!==void 0,m=d?t:l,u=___namespace.useRef(null),p=___namespace.useId(),f=___namespace.useRef(null),b=___namespace.useRef(null),x=___namespace.useCallback(g=>{f.current&&clearTimeout(f.current),b.current&&clearTimeout(b.current),g?f.current=setTimeout(()=>{d||c(true),a?.(true);},n):b.current=setTimeout(()=>{d||c(false),a?.(false);},o);},[d,a,n,o]);return ___namespace.useEffect(()=>{if(!s||!m)return;let g=()=>{f.current&&clearTimeout(f.current),b.current&&clearTimeout(b.current),d||c(false),a?.(false);};return window.addEventListener("scroll",g,true),()=>window.removeEventListener("scroll",g,true)},[s,m,d,a]),___namespace.useEffect(()=>()=>{f.current&&clearTimeout(f.current),b.current&&clearTimeout(b.current);},[]),jsxRuntime.jsx(yu.Provider,{value:{open:m,onOpenChange:x,triggerRef:u,contentId:p},children:e})};wu.displayName="HoverCard";var Cu=___namespace.forwardRef(({asChild:e,children:t,onMouseEnter:r,onMouseLeave:a,onFocus:n,onBlur:o,...s},l)=>{let{onOpenChange:c,triggerRef:d}=Ru(),m=b=>{r?.(b),c(true);},u=b=>{a?.(b),c(false);},p=b=>{n?.(b),c(true);},f=b=>{o?.(b),c(false);};return e&&___namespace.isValidElement(t)?___namespace.cloneElement(t,{ref:b=>{d.current=b,typeof l=="function"?l(b):l&&(l.current=b);},onMouseEnter:m,onMouseLeave:u,onFocus:p,onBlur:f,...s}):jsxRuntime.jsx("a",{ref:b=>{d.current=b,typeof l=="function"?l(b):l&&(l.current=b);},onMouseEnter:m,onMouseLeave:u,onFocus:p,onBlur:f,...s,children:t})});Cu.displayName="HoverCardTrigger";var Nu=___namespace.forwardRef(({className:e,side:t="bottom",sideOffset:r=4,align:a="center",alignOffset:n=0,onMouseEnter:o,onMouseLeave:s,children:l,...c},d)=>{let{open:m,onOpenChange:u,triggerRef:p,contentId:f}=Ru(),[b,x]=___namespace.useState({top:0,left:0}),[g,v]=___namespace.useState(false),R=___namespace.useRef(null);___namespace.useEffect(()=>{v(true);},[]),___namespace.useEffect(()=>{if(!m||!p.current||!R.current)return;(()=>{if(!p.current||!R.current)return;let T=p.current.getBoundingClientRect(),N=R.current.getBoundingClientRect(),E=0,M=0;switch(t){case "top":E=T.top-N.height-r;break;case "bottom":E=T.bottom+r;break;case "left":M=T.left-N.width-r;break;case "right":M=T.right+r;break}if(t==="top"||t==="bottom")switch(a){case "start":M=T.left+n;break;case "center":M=T.left+T.width/2-N.width/2;break;case "end":M=T.right-N.width-n;break}else switch(a){case "start":E=T.top+n;break;case "center":E=T.top+T.height/2-N.height/2;break;case "end":E=T.bottom-N.height-n;break}x({top:E,left:M});})();},[m,t,r,a,n,p]);let w=y=>{o?.(y),u(true);},h=y=>{s?.(y),u(false);};if(!g||!m)return null;let C={top:"animate-in fade-in-0 zoom-in-95 slide-in-from-bottom-2",bottom:"animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",left:"animate-in fade-in-0 zoom-in-95 slide-in-from-right-2",right:"animate-in fade-in-0 zoom-in-95 slide-in-from-left-2"}[t];return $o__namespace.createPortal(jsxRuntime.jsx("div",{ref:y=>{R.current=y,typeof d=="function"?d(y):d&&(d.current=y);},id:f,"data-state":m?"open":"closed","data-side":t,className:i("fixed z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none",C,e),style:{top:b.top,left:b.left},onMouseEnter:w,onMouseLeave:h,...c,children:l}),document.body)});Nu.displayName="HoverCardContent";var Mu=___namespace.createContext({size:"md",variant:"default",radius:"md"}),Zo=()=>___namespace.useContext(Mu);classVarianceAuthority.cva("",{variants:{size:{sm:"",md:"",lg:""},variant:{default:"",bordered:"",filled:""},radius:{none:"",sm:"",md:"",lg:"",full:""}},defaultVariants:{size:"md",variant:"default",radius:"md"}});var ZR=classVarianceAuthority.cva("flex flex-wrap items-center break-words",{variants:{size:{sm:"gap-1 text-xs",md:"gap-1.5 text-sm sm:gap-2",lg:"gap-2 text-base sm:gap-3"},variant:{default:"text-muted-foreground",bordered:"text-muted-foreground px-3 py-1.5 border",filled:"text-muted-foreground bg-muted px-3 py-1.5"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{size:"md",variant:"default",radius:"md"}}),JR=classVarianceAuthority.cva("",{variants:{size:{sm:"[&>svg]:h-3 [&>svg]:w-3",md:"[&>svg]:h-3.5 [&>svg]:w-3.5",lg:"[&>svg]:h-4 [&>svg]:w-4"}},defaultVariants:{size:"md"}}),QR=classVarianceAuthority.cva("flex items-center justify-center",{variants:{size:{sm:"h-6 w-6 [&>svg]:h-3 [&>svg]:w-3",md:"h-8 w-8 [&>svg]:h-4 [&>svg]:w-4",lg:"h-10 w-10 [&>svg]:h-5 [&>svg]:w-5"}},defaultVariants:{size:"md"}}),Tu=___namespace.forwardRef(({size:e="md",variant:t="default",radius:r="md",children:a,...n},o)=>jsxRuntime.jsx(Mu.Provider,{value:{size:e,variant:t,radius:r},children:jsxRuntime.jsx("nav",{ref:o,"aria-label":"breadcrumb",...n,children:a})}));Tu.displayName="Breadcrumb";var Pu=___namespace.forwardRef(({className:e,...t},r)=>{let{size:a,variant:n,radius:o}=Zo();return jsxRuntime.jsx("ol",{ref:r,className:i(ZR({size:a,variant:n,radius:n==="default"?void 0:o}),e),...t})});Pu.displayName="BreadcrumbList";var ku=___namespace.forwardRef(({className:e,...t},r)=>{let{size:a}=Zo();return jsxRuntime.jsx("li",{ref:r,className:i("inline-flex items-center",a==="sm"&&"gap-1",a==="md"&&"gap-1.5",a==="lg"&&"gap-2",e),...t})});ku.displayName="BreadcrumbItem";var Eu=___namespace.forwardRef(({asChild:e,className:t,...r},a)=>jsxRuntime.jsx(e?Mo:"a",{ref:a,className:i("transition-colors hover:text-foreground cursor-pointer",t),...r}));Eu.displayName="BreadcrumbLink";var Lu=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("span",{ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:i("font-medium text-foreground",e),...t}));Lu.displayName="BreadcrumbPage";var Du=({children:e,className:t,...r})=>{let{size:a}=Zo();return jsxRuntime.jsx("li",{role:"presentation","aria-hidden":"true",className:i(JR({size:a}),"text-muted-foreground/60",t),...r,children:e??jsxRuntime.jsx(lucideReact.ChevronRight,{})})};Du.displayName="BreadcrumbSeparator";var Su=({className:e,...t})=>{let{size:r}=Zo();return jsxRuntime.jsxs("span",{role:"presentation","aria-hidden":"true",className:i(QR({size:r}),e),...t,children:[jsxRuntime.jsx(lucideReact.MoreHorizontal,{}),jsxRuntime.jsx("span",{className:"sr-only",children:"More"})]})};Su.displayName="BreadcrumbEllipsis";var Vu=___namespace.forwardRef(({ratio:e=1,className:t,style:r,children:a,...n},o)=>jsxRuntime.jsx("div",{ref:o,className:i("relative w-full",t),style:{...r,paddingBottom:`${100/e}%`},...n,children:jsxRuntime.jsx("div",{className:"absolute inset-0",children:a})}));Vu.displayName="AspectRatio";var Bu=___namespace.createContext(null),zi=()=>{let e=___namespace.useContext(Bu);if(!e)throw new Error("NavigationMenu components must be used within a NavigationMenu");return e},Ou=___namespace.createContext(null),Fu=()=>{let e=___namespace.useContext(Ou);if(!e)throw new Error("NavigationMenuItem components must be used within a NavigationMenuItem");return e},Ku=___namespace.forwardRef(({className:e,orientation:t="horizontal",children:r,...a},n)=>{let[o,s]=___namespace.useState(null);return jsxRuntime.jsx(Bu.Provider,{value:{activeItem:o,setActiveItem:s,orientation:t},children:jsxRuntime.jsxs("nav",{ref:n,className:i("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:[r,jsxRuntime.jsx(Bi,{})]})})});Ku.displayName="NavigationMenu";var Gu=___namespace.forwardRef(({className:e,...t},r)=>{let{orientation:a}=zi();return jsxRuntime.jsx("ul",{ref:r,className:i("group flex flex-1 list-none items-center justify-center gap-1",a==="vertical"&&"flex-col items-start",e),...t})});Gu.displayName="NavigationMenuList";var $u=___namespace.forwardRef(({className:e,children:t,...r},a)=>{let{activeItem:n,setActiveItem:o}=zi(),s=___namespace.useId(),l=___namespace.useRef(null),c=n===s,d=___namespace.useCallback(m=>{o(m?s:null);},[s,o]);return jsxRuntime.jsx(Ou.Provider,{value:{itemId:s,triggerRef:l,open:c,onOpenChange:d},children:jsxRuntime.jsx("li",{ref:a,className:i("relative",e),...r,children:t})})});$u.displayName="NavigationMenuItem";var _u=classVarianceAuthority.cva("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-accent/50"),Wu=___namespace.forwardRef(({className:e,children:t,onMouseEnter:r,onClick:a,...n},o)=>{let{triggerRef:s,open:l,onOpenChange:c}=Fu(),d=u=>{r?.(u),c(true);},m=u=>{a?.(u),c(!l);};return jsxRuntime.jsxs("button",{ref:u=>{s.current=u,typeof o=="function"?o(u):o&&(o.current=u);},type:"button","data-state":l?"open":"closed",className:i(_u(),"group",e),onMouseEnter:d,onClick:m,"aria-expanded":l,...n,children:[t,jsxRuntime.jsx(lucideReact.ChevronDown,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})});Wu.displayName="NavigationMenuTrigger";var ju=___namespace.forwardRef(({className:e,onMouseEnter:t,onMouseLeave:r,...a},n)=>{let{open:o,onOpenChange:s,triggerRef:l}=Fu(),c=___namespace.useRef(null),[d,m]=___namespace.useState({top:0,left:0});___namespace.useEffect(()=>{if(!o||!l.current)return;let f=()=>{if(!l.current)return;let b=l.current.getBoundingClientRect();m({top:b.bottom+4,left:b.left});};return f(),window.addEventListener("resize",f),window.addEventListener("scroll",f,true),()=>{window.removeEventListener("resize",f),window.removeEventListener("scroll",f,true);}},[o,l]);let u=f=>{t?.(f),s(true);},p=f=>{r?.(f),s(false);};return o?$o__namespace.createPortal(jsxRuntime.jsx("div",{ref:f=>{c.current=f,typeof n=="function"?n(f):n&&(n.current=f);},"data-state":o?"open":"closed",className:i("fixed z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-4 text-popover-foreground shadow-lg","animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",e),style:{top:d.top,left:d.left},onMouseEnter:u,onMouseLeave:p,...a}),document.body):null});ju.displayName="NavigationMenuContent";var Yu=classVarianceAuthority.cva("block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground"),Uu=___namespace.forwardRef(({className:e,active:t,...r},a)=>jsxRuntime.jsx("a",{ref:a,className:i(Yu(),t&&"bg-accent text-accent-foreground",e),...r}));Uu.displayName="NavigationMenuLink";var Bi=___namespace.forwardRef((e,t)=>null);Bi.displayName="NavigationMenuViewport";var Xu=___namespace.forwardRef(({className:e,...t},r)=>{let{activeItem:a}=zi();return a?jsxRuntime.jsx("div",{ref:r,className:i("top-full z-[1] flex h-2.5 items-end justify-center overflow-hidden","data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:jsxRuntime.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}):null});Xu.displayName="NavigationMenuIndicator";var Qu=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-full transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"hover:bg-muted",solid:"bg-muted hover:bg-muted/80",ghost:"hover:bg-accent hover:text-accent-foreground",light:"hover:bg-muted/50",outline:"border border-input hover:bg-accent hover:text-accent-foreground"},size:{sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10"}},defaultVariants:{variant:"default",size:"md"}}),vr=___namespace.forwardRef(({className:e,variant:t,size:r,iconSize:a,...n},o)=>{let l=a??{sm:14,md:16,lg:20}[r??"md"];return jsxRuntime.jsx("button",{ref:o,type:"button",className:i(Qu({variant:t,size:r}),e),"aria-label":"Close",...n,children:jsxRuntime.jsx(lucideReact.X,{style:{width:l,height:l}})})});vr.displayName="CloseButton";var Jo=___namespace.createContext(null);function d0(){let e=___namespace.useContext(Jo);if(!e)throw new Error("useDrawer must be used within a DrawerProvider.");return e}function Zr(){return ___namespace.useContext(Jo)}var u0="16rem",m0="18rem",p0="3rem",f0="b",g0={xs:"256px",sm:"320px",md:"384px",lg:"448px",xl:"512px","2xl":"576px","3xl":"672px","4xl":"768px","5xl":"896px",full:"100%"},b0={xs:"20vh",sm:"30vh",md:"40vh",lg:"50vh",xl:"60vh","2xl":"70vh","3xl":"75vh","4xl":"80vh","5xl":"90vh",full:"100vh"},Oi=___namespace.forwardRef(({defaultOpen:e=false,open:t,onOpenChange:r,placement:a="left",size:n="md",backdrop:o="opaque",isDismissable:s=true,hideCloseButton:l=false,collapsible:c="offcanvas",mode:d,className:m,style:u,children:p,...f},b)=>{let x=d??"overlay",g=x==="overlay",[v,R]=___namespace.useState(false),[w,h]=___namespace.useState(false),[C,y]=___namespace.useState(e),T=t??C,N=___namespace.useCallback(k=>{let L=typeof k=="function"?k(T):k;r?r(L):y(L);},[r,T]);___namespace.useEffect(()=>{let k=()=>{R(window.innerWidth<768);};return k(),window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)},[]);let E=___namespace.useCallback(()=>g?N(k=>!k):v?h(k=>!k):N(k=>!k),[v,N,h,g]);___namespace.useEffect(()=>{if(g)return;let k=L=>{L.key===f0&&(L.metaKey||L.ctrlKey)&&(L.preventDefault(),E());};return window.addEventListener("keydown",k),()=>window.removeEventListener("keydown",k)},[E,g]);let M=T?"expanded":"collapsed",P=___namespace.useMemo(()=>({placement:a,state:M,open:T,setOpen:N,isMobile:v,openMobile:w,setOpenMobile:h,toggleDrawer:E,collapsible:c,mode:x,size:n,backdrop:o,isDismissable:s,hideCloseButton:l}),[a,M,T,N,v,w,h,E,c,x,n,o,s,l]);return g?jsxRuntime.jsx(Jo.Provider,{value:P,children:jsxRuntime.jsx(vaul.Drawer.Root,{open:T,onOpenChange:N,direction:a,dismissible:s,children:p})}):jsxRuntime.jsx(Jo.Provider,{value:P,children:jsxRuntime.jsx($r,{delayDuration:0,children:jsxRuntime.jsx("div",{ref:b,style:{"--drawer-width":u0,"--drawer-width-icon":p0,...u},className:i("group/drawer-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-muted/50",m),...f,children:p})})})});Oi.displayName="Drawer";var tm=___namespace.forwardRef(({variant:e="default",embedded:t=false,className:r,children:a,...n},o)=>{let s=Zr();if(!s)return jsxRuntime.jsx("div",{ref:o,className:i("flex h-full flex-col bg-background text-foreground",r),...n,children:a});let{placement:l,collapsible:c,isMobile:d,state:m,openMobile:u,setOpenMobile:p}=s;if(l==="bottom"||l==="top")return jsxRuntime.jsx(jsxRuntime.Fragment,{children:a});if(c==="none")return jsxRuntime.jsx("div",{ref:o,className:i("flex h-full w-[--drawer-width] flex-col bg-background text-foreground border-r",l==="right"&&"border-l border-r-0",r),...n,children:a});if(d&&!t)return jsxRuntime.jsx(v0,{open:u,onOpenChange:p,placement:l,children:a});if(t){let b=m==="collapsed",x=c==="offcanvas",g=c==="icon";return jsxRuntime.jsx("div",{ref:o,className:i("group peer text-foreground relative"),"data-state":m,"data-collapsible":b?c:"","data-variant":e,"data-placement":l,"data-embedded":"true",children:jsxRuntime.jsx("div",{className:i("flex h-full flex-col overflow-hidden transition-[width,opacity] duration-200 ease-out",x?b?"w-0 opacity-0":"w-[--drawer-width] opacity-100":g&&b?"w-[--drawer-width-icon]":"w-[--drawer-width]",r),...n,children:jsxRuntime.jsx("div",{"data-drawer":"drawer",className:i("flex h-full w-full flex-col bg-background transition-opacity duration-200",e==="floating"&&"overflow-hidden rounded-lg border shadow-sm",e==="inset"&&"overflow-hidden rounded-lg border",e==="default"&&l==="left"&&"border-r",e==="default"&&l==="right"&&"border-l"),children:a})})})}return jsxRuntime.jsxs("div",{ref:o,className:"group peer hidden md:block text-foreground","data-state":m,"data-collapsible":m==="collapsed"?c:"","data-variant":e,"data-placement":l,children:[jsxRuntime.jsx("div",{className:i("duration-200 relative h-svh w-[--drawer-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0",l==="right"&&"group-data-[placement=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--drawer-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--drawer-width-icon]")}),jsxRuntime.jsx("div",{className:i("duration-200 fixed inset-y-0 z-10 hidden h-svh w-[--drawer-width] transition-[left,right,width] ease-linear md:flex",l==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--drawer-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--drawer-width)*-1)]",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--drawer-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--drawer-width-icon] group-data-[placement=left]:border-r group-data-[placement=right]:border-l",r),...n,children:jsxRuntime.jsx("div",{"data-drawer":"drawer",className:i("flex h-full w-full flex-col bg-background",e==="floating"&&"overflow-hidden rounded-lg border shadow-sm",e==="inset"&&"overflow-hidden rounded-lg border"),children:a})})]})});tm.displayName="DrawerSidebar";var v0=({children:e,open:t,onOpenChange:r,placement:a})=>{let[n,o]=___namespace.useState(false);return ___namespace.useEffect(()=>{o(true);},[]),___namespace.useEffect(()=>(t&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="";}),[t]),!n||!t?null:$o__namespace.createPortal(jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"fixed inset-0 z-50 bg-black/80 animate-in fade-in-0",onClick:()=>r(false)}),jsxRuntime.jsx("div",{className:i("fixed z-50 bg-background p-0 text-foreground shadow-lg","animate-in",a==="left"&&"inset-y-0 left-0 h-full w-[--drawer-width] slide-in-from-left",a==="right"&&"inset-y-0 right-0 h-full w-[--drawer-width] slide-in-from-right"),style:{"--drawer-width":m0},children:jsxRuntime.jsx("div",{className:"flex h-full w-full flex-col",children:e})})]}),document.body)},rm=___namespace.forwardRef(({className:e,onClick:t,...r},a)=>{let n=Zr();if(n?.mode==="overlay")return jsxRuntime.jsx(vaul.Drawer.Trigger,{ref:a,className:e,onClick:t,...r});let o=n?.toggleDrawer;return jsxRuntime.jsxs("button",{ref:a,type:"button","data-drawer":"trigger",className:i("flex items-center justify-center h-9 w-9 rounded-lg bg-transparent hover:bg-accent transition-colors cursor-pointer",e),onClick:s=>{t?.(s),o?.();},...r,children:[jsxRuntime.jsx(lucideReact.PanelLeft,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle Drawer"})]})});rm.displayName="DrawerTrigger";var am=___namespace.forwardRef(({className:e,children:t,...r},a)=>{let n=Zr(),o=n?.mode==="overlay",s=n?.placement||"left",l=n?.size||"md",c=n?.backdrop||"opaque",d=n?.hideCloseButton||false;if(o){let m=s==="top"||s==="bottom",u=s==="left"||s==="right",p=u?g0[l]:b0[l],f={opaque:"bg-black/80",blur:"bg-black/50 backdrop-blur-sm",transparent:"bg-transparent"},b={top:"inset-x-0 top-0 rounded-b-[10px]",bottom:"inset-x-0 bottom-0 rounded-t-[10px]",left:"inset-y-0 left-0 rounded-r-[10px]",right:"inset-y-0 right-0 rounded-l-[10px]"};return jsxRuntime.jsxs(vaul.Drawer.Portal,{children:[jsxRuntime.jsx(vaul.Drawer.Overlay,{className:i("fixed inset-0 z-50",f[c])}),jsxRuntime.jsxs(vaul.Drawer.Content,{ref:a,className:i("fixed z-50 flex flex-col border bg-background",b[s],e),style:{...u?{width:p,height:"100%"}:{},...m?{maxHeight:p}:{},...r.style},...r,children:[u&&!d&&jsxRuntime.jsx(vaul.Drawer.Close,{asChild:true,children:jsxRuntime.jsx(vr,{variant:"light",className:"absolute right-4 top-4 z-10"})}),m&&jsxRuntime.jsx("div",{className:i("mx-auto h-2 w-[100px] rounded-full bg-muted",s==="top"?"mb-4 mt-auto":"mt-4")}),t]})]})}return jsxRuntime.jsx("div",{ref:a,className:i("flex flex-col h-full",e),...r,children:t})});am.displayName="DrawerContent";var nm=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-drawer":"header",className:i("flex flex-col gap-2 p-4",e),...t}));nm.displayName="DrawerHeader";var om=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-drawer":"body",className:i("flex min-h-0 flex-1 flex-col gap-2 overflow-auto p-4 group-data-[collapsible=icon]:overflow-hidden",e),...t}));om.displayName="DrawerBody";var sm=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-drawer":"footer",className:i("flex flex-col gap-2 p-4 mt-auto",e),...t}));sm.displayName="DrawerFooter";var im=___namespace.forwardRef(({className:e,...t},r)=>Zr()?.mode==="overlay"?jsxRuntime.jsx(vaul.Drawer.Title,{ref:r,className:i("text-lg font-semibold leading-none tracking-tight",e),...t}):jsxRuntime.jsx("h2",{ref:r,className:i("text-lg font-semibold leading-none tracking-tight",e),...t}));im.displayName="DrawerTitle";var lm=___namespace.forwardRef(({className:e,...t},r)=>Zr()?.mode==="overlay"?jsxRuntime.jsx(vaul.Drawer.Description,{ref:r,className:i("text-sm text-muted-foreground",e),...t}):jsxRuntime.jsx("p",{ref:r,className:i("text-sm text-muted-foreground",e),...t}));lm.displayName="DrawerDescription";var cm=___namespace.forwardRef(({className:e,onClick:t,...r},a)=>{let n=Zr();return n?.mode==="overlay"?jsxRuntime.jsx(vaul.Drawer.Close,{ref:a,className:e,onClick:t,...r}):jsxRuntime.jsx(vr,{ref:a,variant:"light",className:e,onClick:s=>{t?.(s),n?.setOpen(false);},...r})});cm.displayName="DrawerClose";var dm=___namespace.forwardRef(({className:e,onClick:t,showLabel:r=true,...a},n)=>{let o=Zr();if(!o)return null;let{toggleDrawer:s,state:l,placement:c}=o,d=l==="collapsed",m=c==="left",u=m?lucideReact.PanelLeftOpen:lucideReact.PanelRightOpen,p=m?lucideReact.PanelLeftClose:lucideReact.PanelRightClose;return jsxRuntime.jsxs("button",{ref:n,type:"button","data-drawer":"toggle","data-state":l,className:i("flex items-center gap-2 w-full px-2 py-2 rounded-md text-sm text-muted-foreground","hover:bg-accent hover:text-accent-foreground","transition-colors cursor-pointer","group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:px-0",e),onClick:f=>{t?.(f),s();},...a,children:[d?jsxRuntime.jsx(u,{className:"h-4 w-4 shrink-0"}):jsxRuntime.jsx(p,{className:"h-4 w-4 shrink-0"}),r&&jsxRuntime.jsx("span",{className:"group-data-[collapsible=icon]:hidden truncate",children:d?"Expand":"Collapse"})]})});dm.displayName="DrawerToggle";var um=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-drawer":"separator",className:i("mx-4 h-px bg-border",e),...t}));um.displayName="DrawerSeparator";var mm=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("ul",{ref:r,"data-drawer":"menu",className:i("flex w-full min-w-0 flex-col gap-1",e),...t}));mm.displayName="DrawerMenu";var pm=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("li",{ref:r,"data-drawer":"menu-item",className:i("group/menu-item relative",e),...t}));pm.displayName="DrawerMenuItem";var fm=classVarianceAuthority.cva("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-ring transition-[width,height,padding] hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 active:bg-accent active:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-accent data-[active=true]:font-medium data-[active=true]:text-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-accent hover:text-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--border))] hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent/50 hover:text-accent-foreground"},size:{sm:"h-7 text-xs",md:"h-8 text-sm",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"md"}}),gm=___namespace.forwardRef(({asChild:e=false,isActive:t=false,variant:r="default",size:a="md",tooltip:n,className:o,children:s,...l},c)=>{let d=Zr(),m=d?.isMobile??false,u=d?.state??"expanded",p=jsxRuntime.jsx("button",{ref:c,type:"button","data-drawer":"menu-button","data-size":a,"data-active":t,className:i(fm({variant:r,size:a}),o),...l,children:s});return n?jsxRuntime.jsxs(_r,{children:[jsxRuntime.jsx(Wr,{asChild:true,children:p}),jsxRuntime.jsx(jr,{side:"right",align:"center",hidden:u!=="collapsed"||m,...typeof n=="string"?{children:n}:n})]}):p});gm.displayName="DrawerMenuButton";var bm=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-drawer":"group",className:i("relative flex w-full min-w-0 flex-col p-2",e),...t}));bm.displayName="DrawerGroup";var vm=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-drawer":"group-label",className:i("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-muted-foreground outline-none transition-[margin,opacity] ease-linear","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...t}));vm.displayName="DrawerGroupLabel";var hm=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("main",{ref:r,className:i("relative flex min-h-svh flex-1 flex-col bg-background","peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));hm.displayName="DrawerInset";var h0=Oi;var ym=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{className:"relative w-full overflow-auto",children:jsxRuntime.jsx("table",{ref:r,className:i("w-full caption-bottom text-sm",e),...t})}));ym.displayName="Table";var Rm=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("thead",{ref:r,className:i("[&_tr]:border-b",e),...t}));Rm.displayName="TableHeader";var wm=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("tbody",{ref:r,className:i("[&_tr:last-child]:border-0",e),...t}));wm.displayName="TableBody";var Cm=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("tfoot",{ref:r,className:i("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));Cm.displayName="TableFooter";var Nm=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("tr",{ref:r,className:i("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));Nm.displayName="TableRow";var Mm=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("th",{ref:r,className:i("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));Mm.displayName="TableHead";var Tm=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("td",{ref:r,className:i("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));Tm.displayName="TableCell";var Pm=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("caption",{ref:r,className:i("mt-4 text-sm text-muted-foreground",e),...t}));Pm.displayName="TableCaption";var Em=classVarianceAuthority.cva("animate-spin text-muted-foreground",{variants:{size:{sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8"}},defaultVariants:{size:"md"}}),Lm=___namespace.forwardRef(({className:e,size:t,...r},a)=>jsxRuntime.jsx(lucideReact.Loader2,{ref:a,className:i(Em({size:t,className:e})),...r}));Lm.displayName="Spinner";var Fi=["January","February","March","April","May","June","July","August","September","October","November","December"];function k0({currentMonth:e,onMonthChange:t,startYear:r,endYear:a}){let[n,o]=___namespace.useState(false),[s,l]=___namespace.useState(false),c=___namespace.useRef(null),d=___namespace.useRef(null),m=dateFns.getMonth(e),u=dateFns.getYear(e);___namespace.useEffect(()=>{function x(g){c.current&&!c.current.contains(g.target)&&o(false),d.current&&!d.current.contains(g.target)&&l(false);}return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[]);let p=x=>{let g=dateFns.setMonth(e,x);t(g),o(false);},f=x=>{let g=dateFns.setYear(e,x);t(g),l(false);},b=___namespace.useMemo(()=>{let x=[];for(let g=a;g>=r;g--)x.push(g);return x},[r,a]);return jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("div",{ref:c,className:"relative",children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>{o(!n),l(false);},className:i("inline-flex items-center justify-between gap-2 px-3 py-1.5 rounded-md","text-sm font-medium w-[120px]","border border-border bg-background","hover:bg-muted transition-colors cursor-pointer",n&&"ring-2 ring-primary ring-offset-2 ring-offset-background"),children:[jsxRuntime.jsx("span",{children:Fi[m]}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:i("h-4 w-4 text-muted-foreground transition-transform",n&&"rotate-180")})]}),n&&jsxRuntime.jsx("div",{className:"absolute top-full left-0 mt-1 z-50 min-w-[140px] rounded-md border border-border bg-background shadow-lg",children:jsxRuntime.jsx(_e,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"p-1",children:Fi.map((x,g)=>jsxRuntime.jsx("button",{type:"button",onClick:()=>p(g),className:i("w-full text-left px-3 py-2 text-sm rounded-md","hover:bg-muted transition-colors cursor-pointer",m===g&&"bg-primary/10 text-primary font-medium"),children:x},x))})})})]}),jsxRuntime.jsxs("div",{ref:d,className:"relative",children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>{l(!s),o(false);},className:i("inline-flex items-center justify-between gap-2 px-3 py-1.5 rounded-md","text-sm font-medium w-[85px]","border border-border bg-background","hover:bg-muted transition-colors cursor-pointer",s&&"ring-2 ring-primary ring-offset-2 ring-offset-background"),children:[jsxRuntime.jsx("span",{children:u}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:i("h-4 w-4 text-muted-foreground transition-transform",s&&"rotate-180")})]}),s&&jsxRuntime.jsx("div",{className:"absolute top-full left-0 mt-1 z-50 min-w-[100px] rounded-md border border-border bg-background shadow-lg",children:jsxRuntime.jsx(_e,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"p-1",children:b.map(x=>jsxRuntime.jsx("button",{type:"button",onClick:()=>f(x),className:i("w-full text-left px-3 py-2 text-sm rounded-md","hover:bg-muted transition-colors cursor-pointer",u===x&&"bg-primary/10 text-primary font-medium"),children:x},x))})})})]})]})}function E0(e,t,r){return function({calendarMonth:n}){let{goToMonth:o,nextMonth:s,previousMonth:l}=reactDayPicker.useDayPicker();if(e)return jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-2 h-10 mb-2",children:[jsxRuntime.jsx(k0,{currentMonth:n.date,onMonthChange:o,startYear:t,endYear:r}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("button",{type:"button",disabled:!l,onClick:()=>l&&o(l),className:i("h-8 w-8 inline-flex items-center justify-center rounded-md","text-muted-foreground hover:text-foreground hover:bg-muted","transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"),"aria-label":"Previous month",children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx("button",{type:"button",disabled:!s,onClick:()=>s&&o(s),className:i("h-8 w-8 inline-flex items-center justify-center rounded-md","text-muted-foreground hover:text-foreground hover:bg-muted","transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"),"aria-label":"Next month",children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})})]})]});let c=Fi[n.date.getMonth()],d=n.date.getFullYear();return jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-2 h-10 mb-2",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium w-[90px]",children:c}),jsxRuntime.jsx("span",{className:"text-sm font-medium w-[50px]",children:d})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("button",{type:"button",disabled:!l,onClick:()=>l&&o(l),className:i("h-8 w-8 inline-flex items-center justify-center rounded-md","text-muted-foreground hover:text-foreground hover:bg-muted","transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"),"aria-label":"Previous month",children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx("button",{type:"button",disabled:!s,onClick:()=>s&&o(s),className:i("h-8 w-8 inline-flex items-center justify-center rounded-md","text-muted-foreground hover:text-foreground hover:bg-muted","transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"),"aria-label":"Next month",children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})})]})]})}}function on({className:e,classNames:t,showOutsideDays:r=true,showMonthAndYearPickers:a=false,startYear:n=1900,endYear:o=new Date().getFullYear()+50,components:s,...l}){let c=___namespace.useMemo(()=>E0(a,n,o),[a,n,o]);return jsxRuntime.jsx(reactDayPicker.DayPicker,{showOutsideDays:r,className:i("p-4",e),classNames:{months:"flex flex-col sm:flex-row gap-4",month:"flex flex-col gap-2",month_caption:"sr-only",nav:"hidden",month_grid:"w-full border-collapse",weekdays:"flex",weekday:"text-muted-foreground w-10 font-normal text-xs text-center",week:"flex w-full mt-1",day:i("relative h-10 w-10 p-0 text-center text-sm","flex items-center justify-center","focus-within:relative focus-within:z-20","[&:has([aria-selected]:not(.outside-day))]:bg-accent","first:[&:has([aria-selected]:not(.outside-day))]:rounded-l-md","last:[&:has([aria-selected]:not(.outside-day))]:rounded-r-md"),day_button:i("size-10 p-0 font-normal rounded-md text-sm","inline-flex items-center justify-center","hover:bg-primary/10 hover:text-primary","focus:outline-none","transition-colors cursor-pointer"),range_start:"rounded-l-md",range_end:"rounded-r-md",selected:i("bg-primary text-primary-foreground rounded-md","hover:bg-primary/90 hover:!text-primary-foreground","focus:bg-primary focus:text-primary-foreground","[&.outside-day]:bg-transparent [&.outside-day]:text-muted-foreground/50"),today:"bg-accent text-accent-foreground rounded-md",outside:"outside-day text-muted-foreground/50",disabled:"text-muted-foreground/30 cursor-not-allowed",range_middle:"rounded-none",hidden:"invisible",...t},modifiersStyles:{range_middle:{backgroundColor:"var(--color-muted)",color:"var(--color-foreground)",borderRadius:0},outside:{backgroundColor:"transparent"}},components:{...s,MonthCaption:c},...l})}on.displayName="Calendar";var Im=({className:e,...t})=>jsxRuntime.jsx("nav",{role:"navigation","aria-label":"pagination",className:i("mx-auto flex w-full justify-center",e),...t});Im.displayName="Pagination";var Vm=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("ul",{ref:r,className:i("flex flex-row items-center gap-1",e),...t}));Vm.displayName="PaginationContent";var Am=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("li",{ref:r,className:i("",e),...t}));Am.displayName="PaginationItem";var Qo=({className:e,isActive:t,size:r="icon",...a})=>jsxRuntime.jsx("a",{"aria-current":t?"page":void 0,className:i(fr({variant:t?"solid":"light",size:r}),e),...a});Qo.displayName="PaginationLink";var zm=({className:e,...t})=>jsxRuntime.jsxs(Qo,{"aria-label":"Go to previous page",size:"md",className:i("gap-1 pl-2.5",e),...t,children:[jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{children:"Previous"})]});zm.displayName="PaginationPrevious";var Bm=({className:e,...t})=>jsxRuntime.jsxs(Qo,{"aria-label":"Go to next page",size:"md",className:i("gap-1 pr-2.5",e),...t,children:[jsxRuntime.jsx("span",{children:"Next"}),jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})]});Bm.displayName="PaginationNext";var Om=({className:e,...t})=>jsxRuntime.jsxs("span",{"aria-hidden":true,className:i("flex h-9 w-9 items-center justify-center",e),...t,children:[jsxRuntime.jsx(lucideReact.MoreHorizontal,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"More pages"})]});Om.displayName="PaginationEllipsis";var $i=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(cmdk.Command,{ref:r,className:i("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));$i.displayName=cmdk.Command.displayName;var I0=({children:e,...t})=>jsxRuntime.jsx(Po,{...t,children:jsxRuntime.jsx(ko,{className:"overflow-hidden p-0 shadow-lg",children:jsxRuntime.jsx($i,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),Fm=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[jsxRuntime.jsx(lucideReact.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),jsxRuntime.jsx(cmdk.Command.Input,{ref:r,className:i("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Fm.displayName=cmdk.Command.Input.displayName;var Km=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(cmdk.Command.List,{ref:r,className:i("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Km.displayName=cmdk.Command.List.displayName;var Gm=___namespace.forwardRef((e,t)=>jsxRuntime.jsx(cmdk.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Gm.displayName=cmdk.Command.Empty.displayName;var $m=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(cmdk.Command.Group,{ref:r,className:i("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));$m.displayName=cmdk.Command.Group.displayName;var _m=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(cmdk.Command.Separator,{ref:r,className:i("-mx-1 h-px bg-border",e),...t}));_m.displayName=cmdk.Command.Separator.displayName;var Wm=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(cmdk.Command.Item,{ref:r,className:i("relative flex cursor-default gap-2 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 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));Wm.displayName=cmdk.Command.Item.displayName;var jm=({className:e,...t})=>jsxRuntime.jsx("span",{className:i("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});jm.displayName="CommandShortcut";var Ym=___namespace.forwardRef(({className:e,showToggle:t=true,disabled:r,onFocus:a,onBlur:n,style:o,...s},l)=>{let[c,d]=___namespace.useState(false),[m,u]=___namespace.useState(false);return jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("input",{type:c?"text":"password",className:i("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",t&&"pr-10",e),ref:l,disabled:r,style:{...o,borderColor:m?"var(--color-foreground)":void 0},onFocus:p=>{u(true),a?.(p);},onBlur:p=>{u(false),n?.(p);},...s}),t&&jsxRuntime.jsx("button",{type:"button",className:"absolute right-0 top-0 h-10 w-10 px-3 flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",onClick:()=>d(!c),disabled:r,tabIndex:-1,"aria-label":c?"Hide password":"Show password",children:c?jsxRuntime.jsx(lucideReact.EyeOff,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.Eye,{className:"h-4 w-4"})})]})});Ym.displayName="PasswordInput";var Um=___namespace.forwardRef(({className:e,showButtons:t=true,step:r=1,min:a,max:n,value:o,defaultValue:s,onChange:l,disabled:c,...d},m)=>{let[u,p]=___namespace.useState(s),[f,b]=___namespace.useState(false),x=o!==void 0,g=x?o:u,v=N=>{N!==void 0&&(a!==void 0&&N<a&&(N=a),n!==void 0&&N>n&&(N=n)),x||p(N),l?.(N);},R=()=>{v((g??0)+r);},w=()=>{v((g??0)-r);},h=N=>{let E=N.target.value;if(E==="")v(void 0);else {let M=parseFloat(E);isNaN(M)||v(M);}},C=N=>{N.key==="ArrowUp"?(N.preventDefault(),R()):N.key==="ArrowDown"&&(N.preventDefault(),w());},y=a===void 0||(g??0)>a,T=n===void 0||(g??0)<n;return t?jsxRuntime.jsxs("div",{className:i("relative flex items-center rounded-md border transition-colors",f?"border-foreground":"border-input",c&&"opacity-50",e),children:[jsxRuntime.jsx("button",{type:"button",className:"h-10 w-10 shrink-0 flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",onClick:w,disabled:c||!y,tabIndex:-1,"aria-label":"Decrease value",children:jsxRuntime.jsx(lucideReact.Minus,{className:"h-4 w-4"})}),jsxRuntime.jsx("input",{type:"text",inputMode:"numeric",pattern:"[0-9]*",className:"min-w-0 flex-1 h-10 bg-background text-sm text-center focus:outline-none disabled:cursor-not-allowed",ref:m,value:g??"",onChange:h,onKeyDown:C,disabled:c,onFocus:()=>b(true),onBlur:()=>b(false),...d}),jsxRuntime.jsx("button",{type:"button",className:"h-10 w-10 shrink-0 flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",onClick:R,disabled:c||!T,tabIndex:-1,"aria-label":"Increase value",children:jsxRuntime.jsx(lucideReact.Plus,{className:"h-4 w-4"})})]}):jsxRuntime.jsx("input",{type:"text",inputMode:"numeric",pattern:"[0-9]*",className:i("flex h-10 w-full bg-background px-3 py-2 text-sm text-center border rounded-md placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",f?"border-foreground":"border-input",e),ref:m,value:g??"",onChange:h,onKeyDown:C,disabled:c,onFocus:()=>b(true),onBlur:()=>b(false),...d})});Um.displayName="NumberInput";var qm=___namespace.forwardRef(({value:e,defaultValue:t,onValueChange:r,placeholder:a="Pick a date",dateFormat:n="PPP",disabled:o=false,minDate:s,maxDate:l,className:c},d)=>{let[m,u]=___namespace.useState(false),[p,f]=___namespace.useState(t),b=e!==void 0,x=b?e:p,g=v=>{b||f(v),r?.(v),u(false);};return jsxRuntime.jsxs(et,{open:m,onOpenChange:u,children:[jsxRuntime.jsx(gt,{asChild:true,children:jsxRuntime.jsxs(Z,{ref:d,variant:"bordered",disabled:o,className:i("w-full justify-start text-left font-normal",!x&&"text-muted-foreground",c),children:[jsxRuntime.jsx(lucideReact.Calendar,{className:"mr-2 h-4 w-4"}),x?dateFns.format(x,n):a]})}),jsxRuntime.jsx(tt,{className:"w-auto p-0",align:"start",children:jsxRuntime.jsx(on,{mode:"single",selected:x,onSelect:g,disabled:v=>!!(s&&v<s||l&&v>l),initialFocus:true})})]})});qm.displayName="DatePicker";var ep=classVarianceAuthority.cva("flex -space-x-2",{variants:{size:{sm:"-space-x-2",md:"-space-x-2.5",lg:"-space-x-3"}},defaultVariants:{size:"md"}}),Zm=classVarianceAuthority.cva("border-2 border-background ring-0 cursor-pointer transition-transform duration-200 hover:-translate-y-1",{variants:{size:{sm:"h-8 w-8 text-xs",md:"h-10 w-10 text-sm",lg:"h-12 w-12 text-base"}},defaultVariants:{size:"md"}}),tp=___namespace.forwardRef(({className:e,items:t,max:r=5,size:a,showTooltips:n=false,...o},s)=>{let l=t.slice(0,r),c=t.length-r,d=(u,p)=>{let f=jsxRuntime.jsxs(wa,{className:i(Zm({size:a})),children:[u.src&&jsxRuntime.jsx(rn,{src:u.src,alt:u.alt||""}),jsxRuntime.jsx(Ca,{className:"text-xs",children:u.fallback||u.alt?.charAt(0)?.toUpperCase()||"?"})]},p);return n&&u.alt?jsxRuntime.jsxs(_r,{children:[jsxRuntime.jsx(Wr,{asChild:true,children:f}),jsxRuntime.jsx(jr,{className:"bg-zinc-100 text-zinc-900 dark:bg-zinc-900 dark:text-zinc-100",children:u.alt})]},p):f},m=jsxRuntime.jsxs("div",{ref:s,className:i(ep({size:a,className:e})),...o,children:[l.map((u,p)=>d(u,p)),c>0&&jsxRuntime.jsx(wa,{className:i(Zm({size:a})),children:jsxRuntime.jsxs(Ca,{className:"bg-muted text-muted-foreground",children:["+",c]})})]});return n?jsxRuntime.jsx($r,{delayDuration:300,children:m}):m});tp.displayName="AvatarGroup";var rp=classVarianceAuthority.cva("flex gap-0.5",{variants:{size:{sm:"[&_svg]:h-4 [&_svg]:w-4",md:"[&_svg]:h-5 [&_svg]:w-5",lg:"[&_svg]:h-6 [&_svg]:w-6"}},defaultVariants:{size:"md"}}),ap=___namespace.forwardRef(({className:e,value:t,defaultValue:r=0,onValueChange:a,max:n=5,size:o,icon:s="star",allowHalf:l=false,readOnly:c=false,disabled:d=false,filledColor:m,emptyColor:u,...p},f)=>{let[b,x]=___namespace.useState(r),[g,v]=___namespace.useState(null),R=t!==void 0,w=R?t:b,h=g!==null?g:w,C=L=>{c||d||(R||x(L),a?.(L));},y=(L,H=false)=>{let S=l&&H?L+.5:L+1;C(S);},T=(L,H)=>{if(c||d)return;let S=L.currentTarget.getBoundingClientRect(),D=l&&L.clientX<S.left+S.width/2;v(D?H+.5:H+1);},N=()=>{v(null);},E=s==="heart"?lucideReact.Heart:lucideReact.Star,M=L=>h>=L+1?"full":h>=L+.5?"half":"empty",P=m?{color:m,fill:m}:{},k=u?{color:u}:{};return jsxRuntime.jsx("div",{ref:f,className:i(rp({size:o,className:e}),d&&"opacity-50 cursor-not-allowed"),onMouseLeave:N,role:"radiogroup","aria-label":"Rating",...p,children:Array.from({length:n},(L,H)=>{let S=M(H);return jsxRuntime.jsxs("button",{type:"button",className:i("relative focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 rounded-sm",!c&&!d&&"cursor-pointer hover:scale-110 transition-transform"),onClick:D=>{let V=D.currentTarget.getBoundingClientRect(),z=l&&D.clientX<V.left+V.width/2;y(H,z);},onMouseMove:D=>T(D,H),disabled:d||c,"aria-label":`Rate ${H+1} out of ${n}`,role:"radio","aria-checked":w===H+1,children:[jsxRuntime.jsx(E,{className:i("text-muted-foreground/30",S!=="empty"&&"absolute inset-0"),style:S==="empty"?k:void 0}),S!=="empty"&&jsxRuntime.jsx(E,{className:i("text-yellow-500 fill-yellow-500",s==="heart"&&"text-red-500 fill-red-500",S==="half"&&"clip-path-half"),style:{...P,clipPath:S==="half"?"inset(0 50% 0 0)":void 0}})]},H)})})});ap.displayName="Rating";var sp=classVarianceAuthority.cva("inline-flex items-center justify-center gap-1.5 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{solid:"border-transparent text-primary-foreground",outline:"border bg-transparent",ghost:"border-transparent bg-transparent",soft:"border-transparent",surface:"border-transparent bg-muted text-muted-foreground"},color:{primary:"",secondary:"",success:"",warning:"",danger:"",info:""},size:{sm:"h-6 px-2 text-xs",md:"h-7 px-2.5 text-sm",lg:"h-8 px-3 text-sm"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"},clickable:{true:"cursor-pointer",false:""}},compoundVariants:[{variant:"solid",color:"primary",className:"bg-primary hover:bg-primary/90"},{variant:"solid",color:"secondary",className:"bg-secondary text-secondary-foreground hover:bg-secondary/80"},{variant:"solid",color:"success",className:"bg-success hover:bg-success/90"},{variant:"solid",color:"warning",className:"bg-warning text-warning-foreground hover:bg-warning/90"},{variant:"solid",color:"danger",className:"bg-danger hover:bg-danger/90"},{variant:"solid",color:"info",className:"bg-info hover:bg-info/90"},{variant:"outline",color:"primary",className:"border-primary text-primary hover:bg-primary/10"},{variant:"outline",color:"secondary",className:"border-secondary text-secondary-foreground hover:bg-secondary/10"},{variant:"outline",color:"success",className:"border-success text-success hover:bg-success/10"},{variant:"outline",color:"warning",className:"border-warning text-warning hover:bg-warning/10"},{variant:"outline",color:"danger",className:"border-danger text-danger hover:bg-danger/10"},{variant:"outline",color:"info",className:"border-info text-info hover:bg-info/10"},{variant:"ghost",color:"primary",className:"text-primary hover:bg-primary/10"},{variant:"ghost",color:"secondary",className:"text-secondary-foreground hover:bg-secondary"},{variant:"ghost",color:"success",className:"text-success hover:bg-success/10"},{variant:"ghost",color:"warning",className:"text-warning hover:bg-warning/10"},{variant:"ghost",color:"danger",className:"text-danger hover:bg-danger/10"},{variant:"ghost",color:"info",className:"text-info hover:bg-info/10"},{variant:"soft",color:"primary",className:"bg-primary/15 text-primary hover:bg-primary/20"},{variant:"soft",color:"secondary",className:"bg-secondary text-secondary-foreground hover:bg-secondary/80"},{variant:"soft",color:"success",className:"bg-success/15 text-success hover:bg-success/20"},{variant:"soft",color:"warning",className:"bg-warning/15 text-warning hover:bg-warning/20"},{variant:"soft",color:"danger",className:"bg-danger/15 text-danger hover:bg-danger/20"},{variant:"soft",color:"info",className:"bg-info/15 text-info hover:bg-info/20"}],defaultVariants:{variant:"solid",color:"primary",size:"md",radius:"full",clickable:false}}),X0=classVarianceAuthority.cva("ml-1 rounded-full p-0.5 transition-colors hover:bg-black/10 dark:hover:bg-white/10",{variants:{size:{sm:"[&_svg]:size-3",md:"[&_svg]:size-3.5",lg:"[&_svg]:size-4"}},defaultVariants:{size:"md"}}),ip=___namespace.forwardRef(({className:e,variant:t,color:r,size:a,radius:n,clickable:o,startContent:s,endContent:l,closable:c,onClose:d,disabled:m,avatar:u,children:p,onClick:f,...b},x)=>{let g=o||!!f,v=R=>{R.stopPropagation(),d?.();};return jsxRuntime.jsxs("div",{ref:x,role:g?"button":void 0,tabIndex:g&&!m?0:void 0,"aria-disabled":m,onClick:m?void 0:f,onKeyDown:g&&!m?R=>{(R.key==="Enter"||R.key===" ")&&(R.preventDefault(),f?.(R));}:void 0,className:i(sp({variant:t,color:r,size:a,radius:n,clickable:g}),m&&"opacity-50 cursor-not-allowed",e),...b,children:[u&&jsxRuntime.jsx("span",{className:"-ml-1 [&>*]:size-5 [&>*]:rounded-full",children:u}),s&&jsxRuntime.jsx("span",{className:"shrink-0",children:s}),jsxRuntime.jsx("span",{className:"truncate",children:p}),l&&jsxRuntime.jsx("span",{className:"shrink-0",children:l}),c&&jsxRuntime.jsx("button",{type:"button","aria-label":"Remove",onClick:v,disabled:m,className:i(X0({size:a})),children:jsxRuntime.jsx(lucideReact.X,{})})]})});ip.displayName="Chip";var lp=_.createContext({direction:"horizontal"}),aw=({className:e,direction:t="horizontal",children:r,...a})=>jsxRuntime.jsx(lp.Provider,{value:{direction:t},children:jsxRuntime.jsx(reactResizablePanels.Group,{orientation:t,className:i("flex h-full w-full data-[orientation=vertical]:flex-col",e),...a,children:r})}),nw=reactResizablePanels.Panel,ow=({withHandle:e,className:t,...r})=>{let{direction:a}=_.useContext(lp),n=a==="vertical";return jsxRuntime.jsx(reactResizablePanels.Separator,{className:i("relative flex shrink-0 items-center justify-center bg-border outline-none",n?"h-px w-full after:absolute after:inset-x-0 after:top-1/2 after:h-1 after:-translate-y-1/2":"w-px after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2",t),...r,children:e&&jsxRuntime.jsx("div",{className:i("z-10 flex items-center justify-center rounded-sm border bg-border",n?"h-3 w-4 rotate-90":"h-4 w-3"),children:jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-2.5 w-2.5"})})})};var up=classVarianceAuthority.cva("inline-flex items-center gap-1",{variants:{size:{sm:"[&>span]:h-1 [&>span]:w-1",md:"[&>span]:h-1.5 [&>span]:w-1.5",lg:"[&>span]:h-2 [&>span]:w-2",xl:"[&>span]:h-3 [&>span]:w-3"}},defaultVariants:{size:"md"}}),mp=___namespace.forwardRef(({className:e,size:t,count:r=3,...a},n)=>jsxRuntime.jsx("span",{ref:n,role:"status","aria-label":"Loading",className:i(up({size:t,className:e})),...a,children:Array.from({length:r}).map((o,s)=>jsxRuntime.jsx("span",{className:"rounded-full bg-current animate-dots-bounce",style:{animationDelay:`${s*.16}s`}},s))}));mp.displayName="Dots";var gp=classVarianceAuthority.cva("relative inline-flex items-center justify-center",{variants:{size:{sm:"h-8 w-8",md:"h-10 w-10",lg:"h-14 w-14"},color:{default:"",success:"",warning:"",danger:""}},defaultVariants:{size:"md",color:"default"}}),lw={sm:{size:32,strokeWidth:3,fontSize:"text-[10px]"},md:{size:40,strokeWidth:4,fontSize:"text-xs"},lg:{size:56,strokeWidth:5,fontSize:"text-sm"}},pp={default:"#18181b",success:"#16a34a",warning:"#d97706",danger:"#dc2626"},bp=___namespace.forwardRef(({className:e,size:t="md",color:r="default",value:a,showValue:n=false,trackClassName:o,...s},l)=>{let c=a===void 0,d=Math.min(100,Math.max(0,a??0)),m=lw[t],u=(m.size-m.strokeWidth)/2,p=2*Math.PI*u,f=p-d/100*p,b=p*.3;return jsxRuntime.jsxs("div",{ref:l,className:i(gp({size:t,color:r}),e),role:"progressbar","aria-valuenow":c?void 0:d,"aria-valuemin":0,"aria-valuemax":100,...s,children:[jsxRuntime.jsxs("svg",{width:m.size,height:m.size,viewBox:`0 0 ${m.size} ${m.size}`,fill:"none",style:c?{animation:"circular-spin 0.8s linear infinite"}:void 0,children:[jsxRuntime.jsx("style",{children:`
43
+ `;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:f}}),jsxRuntime.jsx("div",{ref:s,id:d,onMouseEnter:()=>c(true),onMouseLeave:()=>c(false),style:n,className:i("h-full w-full",t==="vertical"&&"overflow-y-auto overflow-x-hidden",t==="horizontal"&&"overflow-x-auto overflow-y-hidden",t==="both"&&"overflow-auto",e),...o,children:a})]})});_e.displayName="ScrollArea";var sd=classVarianceAuthority.cva("flex min-h-10 w-full cursor-pointer items-center justify-between border border-zinc-300 dark:border-zinc-700 bg-background px-3 py-2 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"md"}}),id=___namespace.forwardRef(({options:e,multiple:t=false,value:r,defaultValue:a,onValueChange:n,placeholder:o="Select...",searchable:s=false,searchPlaceholder:l="Search...",emptyText:c="No results found.",disabled:d=false,clearable:m=false,maxDisplayItems:u=3,maxDropdownHeight:p=240,radius:f,className:b,...x},g)=>{let[v,R]=___namespace.useState(false),[w,h]=___namespace.useState(""),[C,y]=___namespace.useState(a||""),[T,N]=___namespace.useState(a||[]),[E,M]=___namespace.useState({top:0,left:0,width:0}),P=___namespace.useRef(null),k=___namespace.useRef(null),L=___namespace.useRef(null),H=___namespace.useRef(null),S=r!==void 0?r:C,D=r!==void 0?r:T,V=r!==void 0,z=A=>{m&&S===A?(V||y(""),n?.("")):(V||y(A),n?.(A)),R(false),h("");},G=A=>{let W=D.includes(A)?D.filter(Y=>Y!==A):[...D,A];V||N(W),n?.(W);},I=(A,W)=>{W.stopPropagation();let Y=D.filter(Se=>Se!==A);V||N(Y),n?.(Y);},F=A=>{A.stopPropagation(),t?(V||N([]),n?.([])):(V||y(""),n?.(""));},O=e.find(A=>A.value===S),ee=e.filter(A=>D.includes(A.value)),ae=ee.slice(0,u),K=ee.length-u,B=s?e.filter(A=>A.label.toLowerCase().includes(w.toLowerCase())):e;___namespace.useEffect(()=>{if(v&&k.current){let A=k.current.getBoundingClientRect();M({top:A.bottom+4,left:A.left,width:A.width}),s&&setTimeout(()=>H.current?.focus(),0);}v||h("");},[v,s]),___namespace.useEffect(()=>{let A=W=>{let Y=W.target,Se=P.current&&!P.current.contains(Y),pe=L.current&&!L.current.contains(Y);Se&&pe&&(R(false),h(""));};return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)},[]),___namespace.useEffect(()=>{if(!v)return;let A=W=>{L.current?.contains(W.target)||(R(false),h(""));};return window.addEventListener("scroll",A,true),()=>window.removeEventListener("scroll",A,true)},[v]);let j=t?D.length>0:!!S;return jsxRuntime.jsxs("div",{ref:P,className:i("relative",b),...x,children:[jsxRuntime.jsxs("div",{ref:A=>{k.current=A,typeof g=="function"?g(A):g&&(g.current=A);},role:"combobox","aria-expanded":v,"aria-haspopup":"listbox","aria-disabled":d,onClick:()=>!d&&R(!v),className:i(sd({radius:f}),t&&"flex-wrap gap-1",d&&"cursor-not-allowed opacity-50"),children:[!t&&jsxRuntime.jsx("span",{className:i(!O&&"text-muted-foreground"),children:O?O.label:o}),t&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:ee.length===0?jsxRuntime.jsx("span",{className:"text-muted-foreground",children:o}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[ae.map(A=>jsxRuntime.jsxs("span",{className:"inline-flex items-center gap-1 rounded-md bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground",children:[A.label,jsxRuntime.jsx("span",{role:"button",tabIndex:0,onClick:W=>I(A.value,W),onKeyDown:W=>{(W.key==="Enter"||W.key===" ")&&I(A.value,W);},className:"rounded-full hover:bg-secondary-foreground/20 cursor-pointer",children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3"})})]},A.value)),K>0&&jsxRuntime.jsxs("span",{className:"text-xs text-muted-foreground",children:["+",K," more"]})]})}),jsxRuntime.jsxs("div",{className:"ml-auto flex items-center gap-1",children:[m&&j&&jsxRuntime.jsx("span",{role:"button",tabIndex:0,onClick:F,onKeyDown:A=>{(A.key==="Enter"||A.key===" ")&&F(A);},className:"rounded-full p-0.5 hover:bg-muted cursor-pointer",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4 opacity-50"})}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:i("h-4 w-4 opacity-50 transition-transform",v&&"rotate-180")})]})]}),v&&!d&&typeof document<"u"&&$o__namespace.createPortal(jsxRuntime.jsxs("div",{ref:L,className:"fixed z-[9999] overflow-hidden rounded-md border border-zinc-300 dark:border-zinc-700 bg-background shadow-md",style:{top:E.top,left:E.left,minWidth:E.width},children:[s&&jsxRuntime.jsxs("div",{className:"flex items-center border-b border-zinc-300 dark:border-zinc-700 px-3",children:[jsxRuntime.jsx(lucideReact.Search,{className:"h-4 w-4 opacity-50 mr-2"}),jsxRuntime.jsx("input",{ref:H,type:"text",value:w,onChange:A=>h(A.target.value),placeholder:l,className:"flex h-10 w-full bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground"})]}),jsxRuntime.jsx(_e,{style:{maxHeight:p},onWheel:A=>A.stopPropagation(),children:jsxRuntime.jsx("div",{className:"p-1",children:B.length===0?jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:c}):B.map(A=>{let W=t?D.includes(A.value):S===A.value;return jsxRuntime.jsxs("div",{role:"option","aria-selected":W,onClick:()=>{A.disabled||(t?G(A.value):z(A.value));},className:i("relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-zinc-100 dark:hover:bg-zinc-800",A.disabled&&"pointer-events-none opacity-50"),children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:W&&jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})}),A.label]},A.value)})})})]}),document.body)]})});id.displayName="Select";var ld=___namespace.createContext(null),Na=()=>{let e=___namespace.useContext(ld);if(!e)throw new Error("Dropdown components must be used within a Dropdown");return e},Mi=___namespace.createContext(null),cd=___namespace.createContext(null),Yr=({children:e,open:t,defaultOpen:r=false,onOpenChange:a})=>{let[n,o]=___namespace.useState(r),[s,l]=___namespace.useState(-1),c=t!==void 0,d=c?t:n,m=___namespace.useRef(null),u=___namespace.useRef(null),p=___namespace.useId(),f=___namespace.useRef(new Map),b=___namespace.useCallback(v=>{c||o(v),a?.(v),v||l(-1);},[c,a]),x=___namespace.useCallback((v,R)=>{f.current.set(v,R);},[]),g=___namespace.useCallback(v=>{f.current.delete(v);},[]);return jsxRuntime.jsx(ld.Provider,{value:{open:d,onOpenChange:b,triggerRef:m,contentRef:u,contentId:p,activeIndex:s,setActiveIndex:l,items:f,registerItem:x,unregisterItem:g},children:e})};Yr.displayName="Dropdown";var Ur=___namespace.forwardRef(({asChild:e,children:t,onClick:r,onKeyDown:a,...n},o)=>{let{open:s,onOpenChange:l,triggerRef:c,contentId:d}=Na(),m=p=>{r?.(p),l(!s);},u=p=>{a?.(p),(p.key==="ArrowDown"||p.key==="ArrowUp")&&(p.preventDefault(),l(true));};return e&&___namespace.isValidElement(t)?___namespace.cloneElement(t,{ref:p=>{c.current=p,typeof o=="function"?o(p):o&&(o.current=p);},onClick:p=>{t.props.onClick?.(p),l(!s);},onKeyDown:p=>{t.props.onKeyDown?.(p),(p.key==="ArrowDown"||p.key==="ArrowUp")&&(p.preventDefault(),l(true));},"aria-expanded":s,"aria-haspopup":"menu","aria-controls":s?d:void 0,...n}):jsxRuntime.jsx("button",{ref:p=>{c.current=p,typeof o=="function"?o(p):o&&(o.current=p);},type:"button","aria-expanded":s,"aria-haspopup":"menu","aria-controls":s?d:void 0,onClick:m,onKeyDown:u,...n,children:t})});Ur.displayName="DropdownTrigger";var Xr=___namespace.forwardRef(({className:e,side:t="bottom",sideOffset:r=4,align:a="start",alignOffset:n=0,collisionPadding:o=8,onInteractOutside:s,onEscapeKeyDown:l,loop:c=true,children:d,...m},u)=>{let{open:p,onOpenChange:f,triggerRef:b,contentRef:x,contentId:g,activeIndex:v,setActiveIndex:R,items:w}=Na(),[h,C]=___namespace.useState({top:0,left:0}),[y,T]=___namespace.useState(t),[N,E]=___namespace.useState(false),M=___namespace.useRef(0);if(___namespace.useEffect(()=>{E(true);},[]),___namespace.useEffect(()=>{p&&(M.current=w.current.size);},[p,w]),___namespace.useEffect(()=>{if(!p||!b.current||!x.current)return;let k=()=>{if(!b.current||!x.current)return;let L=b.current.getBoundingClientRect(),H=x.current.getBoundingClientRect(),S=window.innerWidth,D=window.innerHeight,V=0,z=0,G=t;switch(t){case "top":V=L.top-H.height-r,V<o&&(V=L.bottom+r,G="bottom");break;case "bottom":V=L.bottom+r,V+H.height>D-o&&(V=L.top-H.height-r,G="top");break;case "left":z=L.left-H.width-r,z<o&&(z=L.right+r,G="right");break;case "right":z=L.right+r,z+H.width>S-o&&(z=L.left-H.width-r,G="left");break}if(G==="top"||G==="bottom"){switch(a){case "start":z=L.left+n;break;case "center":z=L.left+L.width/2-H.width/2;break;case "end":z=L.right-H.width-n;break}z<o?z=o:z+H.width>S-o&&(z=S-H.width-o);}else {switch(a){case "start":V=L.top+n;break;case "center":V=L.top+L.height/2-H.height/2;break;case "end":V=L.bottom-H.height-n;break}V<o?V=o:V+H.height>D-o&&(V=D-H.height-o);}C({top:V,left:z}),T(G);};return k(),window.addEventListener("resize",k),window.addEventListener("scroll",k,true),()=>{window.removeEventListener("resize",k),window.removeEventListener("scroll",k,true);}},[p,t,r,a,n,o,b]),___namespace.useEffect(()=>{if(!p)return;let k=L=>{let H=L.target;x.current&&!x.current.contains(H)&&b.current&&!b.current.contains(H)&&(s?.(),f(false));};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[p,f,s,b,x]),___namespace.useEffect(()=>{if(!p)return;let k=L=>{let H=Array.from(w.current.entries()).sort(([D],[V])=>D-V).map(([,D])=>D),S=H.length;if(S!==0)switch(L.key){case "Escape":L.preventDefault(),l?.(),f(false),b.current?.focus();break;case "ArrowDown":L.preventDefault(),v===-1||v>=S-1?R(c?0:Math.min(v+1,S-1)):R(v+1);break;case "ArrowUp":L.preventDefault(),v<=0?R(c?S-1:0):R(v-1);break;case "Home":L.preventDefault(),R(0);break;case "End":L.preventDefault(),R(S-1);break;case "Enter":case " ":L.preventDefault(),v>=0&&v<S&&H[v]?.click();break;case "Tab":f(false);break}};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[p,f,l,v,R,w,c,b]),___namespace.useEffect(()=>{p&&v>=0&&Array.from(w.current.entries()).sort(([L],[H])=>L-H).map(([,L])=>L)[v]?.focus();},[p,v,w]),!N||!p)return null;let P={top:"animate-in fade-in-0 zoom-in-95 slide-in-from-bottom-2",bottom:"animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",left:"animate-in fade-in-0 zoom-in-95 slide-in-from-right-2",right:"animate-in fade-in-0 zoom-in-95 slide-in-from-left-2"}[y];return $o__namespace.createPortal(jsxRuntime.jsx("div",{ref:k=>{x.current=k,typeof u=="function"?u(k):u&&(u.current=k);},id:g,role:"menu","aria-orientation":"vertical","data-state":p?"open":"closed","data-side":y,className:i("fixed z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md outline-none",P,e),style:{top:h.top,left:h.left},...m,children:d}),document.body)});Xr.displayName="DropdownContent";var Ao=0,qt=___namespace.forwardRef(({className:e,inset:t,disabled:r,onSelect:a,onClick:n,onMouseEnter:o,...s},l)=>{let{onOpenChange:c,activeIndex:d,setActiveIndex:m,registerItem:u,unregisterItem:p}=Na(),[f]=___namespace.useState(()=>Ao++),b=___namespace.useRef(null);___namespace.useEffect(()=>(!r&&b.current&&u(f,b.current),()=>{p(f);}),[r,f,u,p]);let x=R=>{if(r){R.preventDefault();return}n?.(R),a?.(),c(false);},g=R=>{o?.(R),r||m(f);};return jsxRuntime.jsx("div",{ref:R=>{b.current=R,typeof l=="function"?l(R):l&&(l.current=R);},role:"menuitem",tabIndex:r?-1:0,"aria-disabled":r,"data-disabled":r?"":void 0,"data-highlighted":d===f?"":void 0,className:i("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors","focus:bg-accent focus:text-accent-foreground","data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",!r&&"cursor-pointer",e),onClick:x,onMouseEnter:g,...s})});qt.displayName="DropdownItem";var dd=___namespace.forwardRef(({className:e,children:t,checked:r=false,onCheckedChange:a,disabled:n,onClick:o,onMouseEnter:s,...l},c)=>{let{onOpenChange:d,activeIndex:m,setActiveIndex:u,registerItem:p,unregisterItem:f}=Na(),[b]=___namespace.useState(()=>Ao++),x=___namespace.useRef(null);___namespace.useEffect(()=>(!n&&x.current&&p(b,x.current),()=>{f(b);}),[n,b,p,f]);let g=w=>{if(n){w.preventDefault();return}o?.(w),a?.(!r),d(false);},v=w=>{s?.(w),n||u(b);};return jsxRuntime.jsxs("div",{ref:w=>{x.current=w,typeof c=="function"?c(w):c&&(c.current=w);},role:"menuitemcheckbox","aria-checked":r,tabIndex:n?-1:0,"aria-disabled":n,"data-disabled":n?"":void 0,"data-highlighted":m===b?"":void 0,"data-state":r?"checked":"unchecked",className:i("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-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",!n&&"cursor-pointer",e),onClick:g,onMouseEnter:v,...l,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r&&jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})}),t]})});dd.displayName="DropdownCheckboxItem";var ud=___namespace.forwardRef(({value:e="",onValueChange:t,className:r,...a},n)=>jsxRuntime.jsx(cd.Provider,{value:{value:e,onValueChange:t||(()=>{})},children:jsxRuntime.jsx("div",{ref:n,role:"group",className:r,...a})}));ud.displayName="DropdownRadioGroup";var md=___namespace.forwardRef(({className:e,children:t,value:r,disabled:a,onClick:n,onMouseEnter:o,...s},l)=>{let{onOpenChange:c,activeIndex:d,setActiveIndex:m,registerItem:u,unregisterItem:p}=Na(),f=___namespace.useContext(cd),b=f?.value===r,[x]=___namespace.useState(()=>Ao++),g=___namespace.useRef(null);___namespace.useEffect(()=>(!a&&g.current&&u(x,g.current),()=>{p(x);}),[a,x,u,p]);let v=h=>{if(a){h.preventDefault();return}n?.(h),f?.onValueChange(r),c(false);},R=h=>{o?.(h),a||m(x);};return jsxRuntime.jsxs("div",{ref:h=>{g.current=h,typeof l=="function"?l(h):l&&(l.current=h);},role:"menuitemradio","aria-checked":b,tabIndex:a?-1:0,"aria-disabled":a,"data-disabled":a?"":void 0,"data-highlighted":d===x?"":void 0,"data-state":b?"checked":"unchecked",className:i("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-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",!a&&"cursor-pointer",e),onClick:v,onMouseEnter:R,...s,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:b&&jsxRuntime.jsx(lucideReact.Circle,{className:"h-2 w-2 fill-current"})}),t]})});md.displayName="DropdownRadioItem";var pd=___namespace.forwardRef(({className:e,inset:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));pd.displayName="DropdownLabel";var zo=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,role:"separator",className:i("-mx-1 my-1 h-px bg-muted",e),...t}));zo.displayName="DropdownSeparator";var fd=({className:e,...t})=>jsxRuntime.jsx("span",{className:i("ml-auto text-xs tracking-widest opacity-60",e),...t});fd.displayName="DropdownShortcut";var gd=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,role:"group",className:e,...t}));gd.displayName="DropdownGroup";var bd=({children:e,open:t,defaultOpen:r=false,onOpenChange:a})=>{let[n,o]=___namespace.useState(r),{contentRef:s}=Na(),l=t!==void 0,c=l?t:n,d=___namespace.useRef(null),m=___namespace.useCallback(u=>{l||o(u),a?.(u);},[l,a]);return jsxRuntime.jsx(Mi.Provider,{value:{open:c,onOpenChange:m,triggerRef:d,parentMenuRef:s},children:e})};bd.displayName="DropdownSub";var vd=___namespace.forwardRef(({className:e,inset:t,disabled:r,children:a,onMouseEnter:n,onMouseLeave:o,onKeyDown:s,...l},c)=>{let d=___namespace.useContext(Mi),{setActiveIndex:m,registerItem:u,unregisterItem:p}=Na(),[f]=___namespace.useState(()=>Ao++),b=___namespace.useRef(null);if(!d)throw new Error("DropdownSubTrigger must be used within DropdownSub");let{open:x,onOpenChange:g,triggerRef:v}=d;___namespace.useEffect(()=>(!r&&b.current&&u(f,b.current),()=>{p(f);}),[r,f,u,p]);let R=C=>{n?.(C),r||(m(f),g(true));},w=C=>{o?.(C);},h=C=>{s?.(C),(C.key==="ArrowRight"||C.key==="Enter"||C.key===" ")&&(C.preventDefault(),g(true));};return jsxRuntime.jsxs("div",{ref:C=>{b.current=C,v.current=C,typeof c=="function"?c(C):c&&(c.current=C);},role:"menuitem","aria-haspopup":"menu","aria-expanded":x,tabIndex:r?-1:0,"aria-disabled":r,"data-state":x?"open":"closed","data-disabled":r?"":void 0,className:i("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors","focus:bg-accent focus:text-accent-foreground","data-[state=open]:bg-accent","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",!r&&"cursor-pointer",e),onMouseEnter:R,onMouseLeave:w,onKeyDown:h,...l,children:[a,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto"})]})});vd.displayName="DropdownSubTrigger";var hd=___namespace.forwardRef(({className:e,sideOffset:t=2,alignOffset:r=-4,collisionPadding:a=8,onMouseEnter:n,onMouseLeave:o,...s},l)=>{let c=___namespace.useContext(Mi);if(!c)throw new Error("DropdownSubContent must be used within DropdownSub");let{open:d,onOpenChange:m,triggerRef:u,parentMenuRef:p}=c,[f,b]=___namespace.useState({top:0,left:0}),[x,g]=___namespace.useState(false),v=___namespace.useRef(null),R=___namespace.useRef(null);___namespace.useEffect(()=>{g(true);},[]),___namespace.useEffect(()=>{if(!d||!u.current||!v.current)return;(()=>{if(!u.current||!v.current)return;let y=u.current.getBoundingClientRect(),T=v.current.getBoundingClientRect(),N=window.innerWidth,E=window.innerHeight,M=y.top+r,P=y.right+t;P+T.width>N-a&&(P=y.left-T.width-t),M+T.height>E-a&&(M=E-T.height-a),M<a&&(M=a),b({top:M,left:P});})();},[d,t,r,a,u]);let w=C=>{n?.(C),R.current&&(clearTimeout(R.current),R.current=null),m(true);},h=C=>{o?.(C);let y=C.relatedTarget;u.current?.contains(y)||p?.current?.contains(y)||(R.current=setTimeout(()=>{m(false);},100));};return ___namespace.useEffect(()=>()=>{R.current&&clearTimeout(R.current);},[]),!x||!d?null:$o__namespace.createPortal(jsxRuntime.jsx("div",{ref:C=>{v.current=C,typeof l=="function"?l(C):l&&(l.current=C);},role:"menu","data-state":d?"open":"closed",className:i("fixed z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg","animate-in fade-in-0 zoom-in-95 slide-in-from-left-2",e),style:{top:f.top,left:f.left},onMouseEnter:w,onMouseLeave:h,...s}),document.body)});hd.displayName="DropdownSubContent";var yd=___namespace.createContext(null),Pi=()=>{let e=___namespace.useContext(yd);if(!e)throw new Error("Popover components must be used within a Popover");return e},et=({children:e,open:t,defaultOpen:r=false,onOpenChange:a})=>{let[n,o]=___namespace.useState(r),s=t!==void 0,l=s?t:n,c=___namespace.useRef(null),d=___namespace.useId(),m=___namespace.useCallback(u=>{s||o(u),a?.(u);},[s,a]);return jsxRuntime.jsx(yd.Provider,{value:{open:l,onOpenChange:m,triggerRef:c,contentId:d},children:e})};et.displayName="Popover";var gt=___namespace.forwardRef(({asChild:e,children:t,onClick:r,...a},n)=>{let{open:o,onOpenChange:s,triggerRef:l,contentId:c}=Pi(),d=m=>{r?.(m),s(!o);};return e&&___namespace.isValidElement(t)?___namespace.cloneElement(t,{ref:m=>{l.current=m,typeof n=="function"?n(m):n&&(n.current=m);},onClick:m=>{t.props.onClick?.(m),s(!o);},"aria-expanded":o,"aria-haspopup":"dialog","aria-controls":o?c:void 0,...a}):jsxRuntime.jsx("button",{ref:m=>{l.current=m,typeof n=="function"?n(m):n&&(n.current=m);},type:"button","aria-expanded":o,"aria-haspopup":"dialog","aria-controls":o?c:void 0,onClick:d,...a,children:t})});gt.displayName="PopoverTrigger";var Bo=___namespace.forwardRef(({asChild:e,children:t,...r},a)=>{let{triggerRef:n}=Pi();return e&&___namespace.isValidElement(t)?___namespace.cloneElement(t,{ref:o=>{n.current=o,typeof a=="function"?a(o):a&&(a.current=o);},...r}):jsxRuntime.jsx("div",{ref:o=>{n.current=o,typeof a=="function"?a(o):a&&(a.current=o);},...r,children:t})});Bo.displayName="PopoverAnchor";var tt=___namespace.forwardRef(({className:e,side:t="bottom",sideOffset:r=4,align:a="center",alignOffset:n=0,onInteractOutside:o,onEscapeKeyDown:s,onOpenAutoFocus:l,onCloseAutoFocus:c,children:d,...m},u)=>{let{open:p,onOpenChange:f,triggerRef:b,contentId:x}=Pi(),[g,v]=___namespace.useState({top:0,left:0}),[R,w]=___namespace.useState(false),h=___namespace.useRef(null);if(___namespace.useEffect(()=>{w(true);},[]),___namespace.useEffect(()=>{if(!p||!b.current||!h.current)return;let y=()=>{if(!b.current||!h.current)return;let T=b.current.getBoundingClientRect(),N=h.current.getBoundingClientRect(),E=0,M=0;switch(t){case "top":E=T.top-N.height-r;break;case "bottom":E=T.bottom+r;break;case "left":M=T.left-N.width-r;break;case "right":M=T.right+r;break}if(t==="top"||t==="bottom")switch(a){case "start":M=T.left+n;break;case "center":M=T.left+T.width/2-N.width/2;break;case "end":M=T.right-N.width-n;break}else switch(a){case "start":E=T.top+n;break;case "center":E=T.top+T.height/2-N.height/2;break;case "end":E=T.bottom-N.height-n;break}v({top:E,left:M});};return y(),window.addEventListener("resize",y),window.addEventListener("scroll",y,true),()=>{window.removeEventListener("resize",y),window.removeEventListener("scroll",y,true);}},[p,t,r,a,n,b]),___namespace.useEffect(()=>{if(!p)return;let y=T=>{let N=T.target;h.current&&!h.current.contains(N)&&b.current&&!b.current.contains(N)&&(o?.(),f(false));};return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)},[p,f,o,b]),___namespace.useEffect(()=>{if(!p)return;let y=T=>{T.key==="Escape"&&(s?.(),f(false));};return document.addEventListener("keydown",y),()=>document.removeEventListener("keydown",y)},[p,f,s]),!R||!p)return null;let C={top:"animate-in fade-in-0 zoom-in-95 slide-in-from-bottom-2",bottom:"animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",left:"animate-in fade-in-0 zoom-in-95 slide-in-from-right-2",right:"animate-in fade-in-0 zoom-in-95 slide-in-from-left-2"}[t];return $o__namespace.createPortal(jsxRuntime.jsx("div",{ref:y=>{h.current=y,typeof u=="function"?u(y):u&&(u.current=y);},id:x,role:"dialog","data-state":p?"open":"closed","data-side":t,className:i("fixed z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none",C,e),style:{top:g.top,left:g.left},...m,children:d}),document.body)});tt.displayName="PopoverContent";var Rd=___namespace.createContext(null),Ei=()=>{let e=___namespace.useContext(Rd);if(!e)throw new Error("Tabs components must be used within a Tabs");return e},wd=___namespace.forwardRef(({className:e,value:t,defaultValue:r="",onValueChange:a,variant:n="solid",radius:o="md",orientation:s="horizontal",children:l,...c},d)=>{let[m,u]=___namespace.useState(r),p=t!==void 0,f=p?t:m,b=x=>{p||u(x),a?.(x);};return jsxRuntime.jsx(Rd.Provider,{value:{value:f,onValueChange:b,variant:n,radius:o,orientation:s},children:jsxRuntime.jsx("div",{ref:d,"data-orientation":s,className:i(s==="vertical"&&"flex gap-4",e),...c,children:l})})});wd.displayName="Tabs";var ki={none:{list:"rounded-none",trigger:"rounded-none",indicator:"rounded-none"},sm:{list:"rounded-md",trigger:"rounded-sm",indicator:"rounded-sm"},md:{list:"rounded-lg",trigger:"rounded-md",indicator:"rounded-md"},lg:{list:"rounded-xl",trigger:"rounded-lg",indicator:"rounded-lg"},full:{list:"rounded-full",trigger:"rounded-full",indicator:"rounded-full"}},Cd=___namespace.forwardRef(({className:e,children:t,...r},a)=>{let{variant:n,radius:o,orientation:s,value:l}=Ei(),c=___namespace.useRef(null),[d,m]=___namespace.useState({opacity:0});___namespace.useEffect(()=>{let b=c.current;if(!b)return;let x=()=>{let v=b.querySelector('[data-state="active"]');if(v){let R=b.getBoundingClientRect(),w=v.getBoundingClientRect(),h=s==="vertical";n==="underline"?m(h?{width:2,height:w.height,transform:`translateY(${w.top-R.top}px)`,opacity:1}:{width:w.width,height:2,transform:`translateX(${w.left-R.left}px)`,opacity:1}):n==="solid"&&m(h?{width:w.width,height:w.height,transform:`translateY(${w.top-R.top}px)`,opacity:1}:{width:w.width,height:w.height,transform:`translateX(${w.left-R.left}px)`,opacity:1});}};x();let g=new ResizeObserver(x);return g.observe(b),()=>{g.disconnect();}},[n,s,l]);let u={solid:"bg-muted p-1",underline:"border-b border-border bg-transparent p-0 !rounded-none",outline:"bg-transparent p-0 gap-1 !rounded-none"},p=s==="vertical",f=()=>n==="solid"?p?"top-0 left-1 bg-background shadow":"top-1 left-1 bg-background shadow":n==="underline"?p?"top-0 left-0 bg-primary !rounded-full":"bottom-0 left-0 bg-primary !rounded-full":"";return jsxRuntime.jsxs("div",{ref:b=>{c.current=b,typeof a=="function"?a(b):a&&(a.current=b);},role:"tablist","aria-orientation":s,className:i("relative inline-flex h-9 items-center justify-center text-muted-foreground",p&&"flex-col h-auto w-auto",ki[o].list,u[n],e),...r,children:[(n==="solid"||n==="underline")&&jsxRuntime.jsx("span",{className:i("absolute transition-all duration-200 ease-out",ki[o].indicator,f()),style:d,"aria-hidden":"true"}),t]})});Cd.displayName="TabsList";var Nd=___namespace.forwardRef(({className:e,value:t,disabled:r,onClick:a,...n},o)=>{let{value:s,onValueChange:l,variant:c,radius:d}=Ei(),m=s===t,u={solid:"data-[state=active]:text-foreground",underline:"!rounded-none border-b-2 border-transparent pb-2 data-[state=active]:text-foreground",outline:"border border-transparent data-[state=active]:border-border data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm"};return jsxRuntime.jsx("button",{type:"button",role:"tab",ref:o,"aria-selected":m,"data-state":m?"active":"inactive",disabled:r,className:i("relative z-10 inline-flex items-center justify-center whitespace-nowrap px-3 py-1 text-sm font-medium ring-offset-background transition-all cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed",ki[d].trigger,u[c],e),onClick:p=>{a?.(p),l(t);},...n})});Nd.displayName="TabsTrigger";var Md=___namespace.forwardRef(({className:e,value:t,children:r,...a},n)=>{let{value:o}=Ei(),s=o===t;return s?jsxRuntime.jsx("div",{ref:n,role:"tabpanel","data-state":s?"active":"inactive",className:i("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...a,children:r}):null});Md.displayName="TabsContent";var Pd=___namespace.createContext(null),Fo=()=>{let e=___namespace.useContext(Pd);if(!e)throw new Error("Sheet components must be used within a Sheet");return e},Ko=({open:e,defaultOpen:t=false,onOpenChange:r,children:a})=>{let[n,o]=___namespace.useState(t),s=e!==void 0,l=s?e:n,c=___namespace.useCallback(d=>{s||o(d),r?.(d);},[s,r]);return jsxRuntime.jsx(Pd.Provider,{value:{open:l,onOpenChange:c},children:a})};Ko.displayName="Sheet";var kd=___namespace.forwardRef(({asChild:e,onClick:t,children:r,...a},n)=>{let{onOpenChange:o}=Fo(),s=l=>{t?.(l),o(true);};return e&&___namespace.isValidElement(r)?___namespace.cloneElement(r,{onClick:l=>{r.props.onClick?.(l),o(true);}}):jsxRuntime.jsx("button",{ref:n,type:"button",onClick:s,...a,children:r})});kd.displayName="SheetTrigger";var Ed=___namespace.forwardRef(({asChild:e,onClick:t,children:r,...a},n)=>{let{onOpenChange:o}=Fo(),s=l=>{t?.(l),o(false);};return e&&___namespace.isValidElement(r)?___namespace.cloneElement(r,{onClick:l=>{r.props.onClick?.(l),o(false);}}):jsxRuntime.jsx("button",{ref:n,type:"button",onClick:s,...a,children:r})});Ed.displayName="SheetClose";var Di=({children:e,container:t})=>{let[r,a]=___namespace.useState(false);return ___namespace.useEffect(()=>{a(true);},[]),r?$o__namespace.createPortal(e,t||document.body):null};Di.displayName="SheetPortal";var Ld=___namespace.forwardRef(({className:e,...t},r)=>{let{open:a,onOpenChange:n}=Fo();return a?jsxRuntime.jsx("div",{ref:r,className:i("fixed inset-0 z-50 bg-black/80",a?"animate-in fade-in-0":"animate-out fade-out-0",e),onClick:()=>n(false),"aria-hidden":"true",...t}):null});Ld.displayName="SheetOverlay";var Dd=classVarianceAuthority.cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition-transform duration-300 ease-in-out",{variants:{side:{top:"inset-x-0 top-0 border-b",bottom:"inset-x-0 bottom-0 border-t",left:"inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm"}},defaultVariants:{side:"right"}}),SR=(e,t)=>({top:t?"animate-in slide-in-from-top":"animate-out slide-out-to-top",bottom:t?"animate-in slide-in-from-bottom":"animate-out slide-out-to-bottom",left:t?"animate-in slide-in-from-left":"animate-out slide-out-to-left",right:t?"animate-in slide-in-from-right":"animate-out slide-out-to-right"})[e],Go=___namespace.forwardRef(({side:e="right",className:t,children:r,hideCloseButton:a,onEscapeKeyDown:n,onInteractOutside:o,...s},l)=>{let{open:c,onOpenChange:d}=Fo(),[m,u]=___namespace.useState(false),[,p]=___namespace.useState(false);return ___namespace.useEffect(()=>{if(c)u(true),p(true),document.body.style.overflow="hidden";else {p(true);let f=setTimeout(()=>{u(false),p(false),document.body.style.overflow="";},300);return ()=>clearTimeout(f)}return ()=>{document.body.style.overflow="";}},[c]),___namespace.useEffect(()=>{let f=b=>{b.key==="Escape"&&c&&(n?.(),d(false));};return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[c,d,n]),!m&&!c?null:jsxRuntime.jsxs(Di,{children:[jsxRuntime.jsx("div",{className:i("fixed inset-0 z-50 bg-black/80 transition-opacity duration-300",c?"opacity-100":"opacity-0"),onClick:()=>{o?.(),d(false);},"aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:l,role:"dialog","aria-modal":"true",className:i(Dd({side:e}),SR(e,c),t),...s,children:[!a&&jsxRuntime.jsxs("button",{type:"button",onClick:()=>d(false),className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none cursor-pointer",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]}),r]})]})});Go.displayName="SheetContent";var Sd=({className:e,...t})=>jsxRuntime.jsx("div",{className:i("flex flex-col space-y-2 text-center sm:text-left",e),...t});Sd.displayName="SheetHeader";var Hd=({className:e,...t})=>jsxRuntime.jsx("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Hd.displayName="SheetFooter";var Id=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("h2",{ref:r,className:i("text-lg font-semibold text-foreground",e),...t}));Id.displayName="SheetTitle";var Vd=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("p",{ref:r,className:i("text-sm text-muted-foreground",e),...t}));Vd.displayName="SheetDescription";var VR=({theme:e="system",...t})=>jsxRuntime.jsx(sonner.Toaster,{theme:e,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...t});var Ad=___namespace.createContext(null),Kn=()=>{let e=___namespace.useContext(Ad);if(!e)throw new Error("ContextMenu components must be used within a ContextMenu");return e},Si=___namespace.createContext(null),zd=___namespace.createContext(null),Bd=({children:e,onOpenChange:t})=>{let[r,a]=___namespace.useState(false),[n,o]=___namespace.useState({x:0,y:0}),s=___namespace.useId(),l=___namespace.useCallback(c=>{a(c),t?.(c);},[t]);return jsxRuntime.jsx(Ad.Provider,{value:{open:r,onOpenChange:l,position:n,setPosition:o,contentId:s},children:e})};Bd.displayName="ContextMenu";var Od=___namespace.forwardRef(({asChild:e,children:t,onContextMenu:r,...a},n)=>{let{onOpenChange:o,setPosition:s}=Kn(),l=c=>{c.preventDefault(),s({x:c.clientX,y:c.clientY}),o(true);};return e&&___namespace.isValidElement(t)?___namespace.cloneElement(t,{ref:n,onContextMenu:c=>{c.preventDefault(),t.props.onContextMenu?.(c),s({x:c.clientX,y:c.clientY}),o(true);},...a}):jsxRuntime.jsx("div",{ref:n,onContextMenu:c=>{r?.(c),l(c);},...a,children:t})});Od.displayName="ContextMenuTrigger";var Fd=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,role:"group",className:e,...t}));Fd.displayName="ContextMenuGroup";var Kd=({children:e,container:t})=>{let[r,a]=___namespace.useState(false);return ___namespace.useEffect(()=>{a(true);},[]),r?$o__namespace.createPortal(e,t||document.body):null};Kd.displayName="ContextMenuPortal";var Gd=({children:e,open:t,defaultOpen:r=false,onOpenChange:a})=>{let[n,o]=___namespace.useState(r),s=t!==void 0,l=s?t:n,c=___namespace.useRef(null),d=___namespace.useCallback(m=>{s||o(m),a?.(m);},[s,a]);return jsxRuntime.jsx(Si.Provider,{value:{open:l,onOpenChange:d,triggerRef:c},children:e})};Gd.displayName="ContextMenuSub";var $d=___namespace.forwardRef(({value:e="",onValueChange:t,className:r,...a},n)=>jsxRuntime.jsx(zd.Provider,{value:{value:e,onValueChange:t||(()=>{})},children:jsxRuntime.jsx("div",{ref:n,role:"group",className:r,...a})}));$d.displayName="ContextMenuRadioGroup";var _d=___namespace.forwardRef(({className:e,onInteractOutside:t,onEscapeKeyDown:r,children:a,...n},o)=>{let{open:s,onOpenChange:l,position:c,contentId:d}=Kn(),[m,u]=___namespace.useState(false),[p,f]=___namespace.useState(c),b=___namespace.useRef(null);return ___namespace.useEffect(()=>{u(true);},[]),___namespace.useEffect(()=>{if(!s||!b.current){f(c);return}let g=b.current.getBoundingClientRect(),{x:v,y:R}=c;v+g.width>window.innerWidth&&(v=window.innerWidth-g.width-8),R+g.height>window.innerHeight&&(R=window.innerHeight-g.height-8),f({x:v,y:R});},[s,c]),___namespace.useEffect(()=>{if(!s)return;let x=g=>{let v=g.target;b.current&&!b.current.contains(v)&&(t?.(),l(false));};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[s,l,t]),___namespace.useEffect(()=>{if(!s)return;let x=g=>{g.key==="Escape"&&(r?.(),l(false));};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[s,l,r]),!m||!s?null:$o__namespace.createPortal(jsxRuntime.jsx("div",{ref:x=>{b.current=x,typeof o=="function"?o(x):o&&(o.current=x);},id:d,role:"menu","aria-orientation":"vertical","data-state":s?"open":"closed",className:i("fixed z-50 max-h-[calc(100vh-2rem)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border border-zinc-200 dark:border-zinc-800 bg-white dark:bg-zinc-950 p-1 text-zinc-950 dark:text-zinc-50 shadow-md","animate-in fade-in-0 zoom-in-95",e),style:{top:p.y,left:p.x},...n,children:a}),document.body)});_d.displayName="ContextMenuContent";var jd=___namespace.forwardRef(({className:e,inset:t,children:r,onMouseEnter:a,onMouseLeave:n,...o},s)=>{let l=___namespace.useContext(Si);if(!l)throw new Error("ContextMenuSubTrigger must be used within ContextMenuSub");let{open:c,onOpenChange:d,triggerRef:m}=l,u=f=>{a?.(f),d(true);},p=f=>{n?.(f),d(false);};return jsxRuntime.jsxs("div",{ref:f=>{m.current=f,typeof s=="function"?s(f):s&&(s.current=f);},role:"menuitem","aria-haspopup":"menu","aria-expanded":c,"data-state":c?"open":"closed",className:i("flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none hover:bg-zinc-100 dark:hover:bg-zinc-800 focus:bg-zinc-100 dark:focus:bg-zinc-800 data-[state=open]:bg-zinc-100 dark:data-[state=open]:bg-zinc-800",t&&"pl-8",e),onMouseEnter:u,onMouseLeave:p,...o,children:[r,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto h-4 w-4"})]})});jd.displayName="ContextMenuSubTrigger";var Wd=___namespace.forwardRef(({className:e,sideOffset:t=2,onMouseEnter:r,onMouseLeave:a,...n},o)=>{let s=___namespace.useContext(Si);if(!s)throw new Error("ContextMenuSubContent must be used within ContextMenuSub");let{open:l,onOpenChange:c,triggerRef:d}=s,[m,u]=___namespace.useState({top:0,left:0}),[p,f]=___namespace.useState(false),b=___namespace.useRef(null);___namespace.useEffect(()=>{f(true);},[]),___namespace.useEffect(()=>{if(!l||!d.current||!b.current)return;(()=>{if(!d.current||!b.current)return;let R=d.current.getBoundingClientRect(),w=b.current.getBoundingClientRect(),h=R.top,C=R.right+t;C+w.width>window.innerWidth&&(C=R.left-w.width-t),u({top:h,left:C});})();},[l,t,d]);let x=v=>{r?.(v),c(true);},g=v=>{a?.(v),c(false);};return !p||!l?null:$o__namespace.createPortal(jsxRuntime.jsx("div",{ref:v=>{b.current=v,typeof o=="function"?o(v):o&&(o.current=v);},role:"menu","data-state":l?"open":"closed",className:i("fixed z-50 min-w-[8rem] overflow-hidden rounded-md border border-zinc-200 dark:border-zinc-800 bg-white dark:bg-zinc-950 p-1 text-zinc-950 dark:text-zinc-50 shadow-lg","animate-in fade-in-0 zoom-in-95 slide-in-from-left-2",e),style:{top:m.top,left:m.left},onMouseEnter:x,onMouseLeave:g,...n}),document.body)});Wd.displayName="ContextMenuSubContent";var Yd=___namespace.forwardRef(({className:e,inset:t,disabled:r,onSelect:a,onClick:n,...o},s)=>{let{onOpenChange:l}=Kn(),c=d=>{if(r){d.preventDefault();return}n?.(d),a?.(),l(false);};return jsxRuntime.jsx("div",{ref:s,role:"menuitem",tabIndex:r?-1:0,"aria-disabled":r,"data-disabled":r?"":void 0,className:i("relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none hover:bg-zinc-100 dark:hover:bg-zinc-800 focus:bg-zinc-100 dark:focus:bg-zinc-800 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[disabled]:cursor-not-allowed",t&&"pl-8",e),onClick:c,...o})});Yd.displayName="ContextMenuItem";var Ud=___namespace.forwardRef(({className:e,children:t,checked:r=false,onCheckedChange:a,disabled:n,onClick:o,...s},l)=>{let{onOpenChange:c}=Kn(),d=m=>{if(n){m.preventDefault();return}o?.(m),a?.(!r),c(false);};return jsxRuntime.jsxs("div",{ref:l,role:"menuitemcheckbox","aria-checked":r,tabIndex:n?-1:0,"aria-disabled":n,"data-disabled":n?"":void 0,"data-state":r?"checked":"unchecked",className:i("relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-zinc-100 dark:hover:bg-zinc-800 focus:bg-zinc-100 dark:focus:bg-zinc-800 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[disabled]:cursor-not-allowed",e),onClick:d,...s,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r&&jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})}),t]})});Ud.displayName="ContextMenuCheckboxItem";var Xd=___namespace.forwardRef(({className:e,children:t,value:r,disabled:a,onClick:n,...o},s)=>{let{onOpenChange:l}=Kn(),c=___namespace.useContext(zd),d=c?.value===r,m=u=>{if(a){u.preventDefault();return}n?.(u),c?.onValueChange(r),l(false);};return jsxRuntime.jsxs("div",{ref:s,role:"menuitemradio","aria-checked":d,tabIndex:a?-1:0,"aria-disabled":a,"data-disabled":a?"":void 0,"data-state":d?"checked":"unchecked",className:i("relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-zinc-100 dark:hover:bg-zinc-800 focus:bg-zinc-100 dark:focus:bg-zinc-800 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[disabled]:cursor-not-allowed",e),onClick:m,...o,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d&&jsxRuntime.jsx(lucideReact.Circle,{className:"h-4 w-4 fill-current"})}),t]})});Xd.displayName="ContextMenuRadioItem";var qd=___namespace.forwardRef(({className:e,inset:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...r}));qd.displayName="ContextMenuLabel";var Zd=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,role:"separator",className:i("-mx-1 my-1 h-px bg-border",e),...t}));Zd.displayName="ContextMenuSeparator";var Jd=({className:e,...t})=>jsxRuntime.jsx("span",{className:i("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Jd.displayName="ContextMenuShortcut";var Qd=___namespace.createContext(null),KR=()=>{let e=___namespace.useContext(Qd);if(!e)throw new Error("RadioGroupItem must be used within a RadioGroup");return e},eu=___namespace.forwardRef(({className:e,value:t,defaultValue:r="",onValueChange:a,name:n,disabled:o,required:s,orientation:l="vertical",children:c,...d},m)=>{let[u,p]=___namespace.useState(r),f=t!==void 0,b=f?t:u,x=___namespace.useId(),g=v=>{f||p(v),a?.(v);};return jsxRuntime.jsx("div",{ref:m,role:"radiogroup","aria-required":s,"aria-orientation":l,className:i(l==="vertical"?"grid gap-2":"flex gap-4",e),...d,children:jsxRuntime.jsx(Qd.Provider,{value:{name:n||x,value:b,onValueChange:g,disabled:o,required:s},children:c})})});eu.displayName="RadioGroup";var tu=___namespace.forwardRef(({className:e,value:t,disabled:r,...a},n)=>{let o=KR(),s=o.value===t,l=r||o.disabled;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{type:"button",role:"radio","aria-checked":s,disabled:l,ref:n,className:i("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer",e),onClick:()=>o.onValueChange(t),...a,children:s&&jsxRuntime.jsx("span",{className:"flex items-center justify-center",children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-2.5 w-2.5 fill-current text-current"})})}),jsxRuntime.jsx("input",{type:"radio","aria-hidden":true,tabIndex:-1,name:o.name,value:t,checked:s,required:o.required,disabled:l,onChange:()=>{},style:{position:"absolute",pointerEvents:"none",opacity:0,margin:0,width:0,height:0}})]})});tu.displayName="RadioGroupItem";var jo=classVarianceAuthority.cva("inline-flex items-center justify-center 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 gap-2",{variants:{variant:{solid:"bg-transparent hover:bg-muted data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",outline:"border border-input bg-transparent hover:bg-accent data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",ghost:"bg-transparent hover:bg-accent data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",soft:"bg-transparent hover:bg-primary/10 data-[state=on]:bg-primary/15 data-[state=on]:text-primary",surface:"bg-muted/50 hover:bg-muted data-[state=on]:bg-muted data-[state=on]:text-foreground"},size:{sm:"h-9 px-2.5 min-w-9",md:"h-10 px-3 min-w-10",lg:"h-11 px-5 min-w-11"}},defaultVariants:{variant:"solid",size:"md"}}),ru=___namespace.forwardRef(({className:e,variant:t,size:r,pressed:a,defaultPressed:n=false,onPressedChange:o,disabled:s,onKeyDown:l,...c},d)=>{let[m,u]=___namespace.useState(n),p=a!==void 0,f=p?a:m,b=()=>{if(s)return;let g=!f;p||u(g),o?.(g);},x=g=>{g.key==="Enter"&&g.preventDefault(),l?.(g);};return jsxRuntime.jsx("button",{type:"button","aria-pressed":f,"data-state":f?"on":"off",disabled:s,ref:d,className:i(jo({variant:t,size:r,className:e})),onClick:b,onKeyDown:x,...c})});ru.displayName="Toggle";var au=___namespace.createContext(null),WR=()=>{let e=___namespace.useContext(au);if(!e)throw new Error("ToggleGroupItem must be used within a ToggleGroup");return e},nu=___namespace.forwardRef(({className:e,variant:t,size:r,type:a,value:n,defaultValue:o,onValueChange:s,disabled:l,children:c,...d},m)=>{let[u,p]=___namespace.useState(()=>a==="single"?o?[o]:[]:o||[]),f=n!==void 0,b=f?a==="single"?n?[n]:[]:n:u,x=g=>{if(a==="single"){let v=b.includes(g)?[]:[g];f||p(v),s?.(v[0]||"");}else {let v=b.includes(g)?b.filter(R=>R!==g):[...b,g];f||p(v),s?.(v);}};return jsxRuntime.jsx("div",{ref:m,role:"group",className:i("flex items-center justify-center gap-1",e),...d,children:jsxRuntime.jsx(au.Provider,{value:{type:a,variant:t,size:r,value:b,onValueChange:x,disabled:l},children:c})})});nu.displayName="ToggleGroup";var ou=___namespace.forwardRef(({className:e,children:t,variant:r,size:a,value:n,disabled:o,...s},l)=>{let c=WR(),d=c.value.includes(n),m=o||c.disabled;return jsxRuntime.jsx("button",{type:"button",role:"radio","aria-checked":d,"aria-pressed":d,"data-state":d?"on":"off",disabled:m,ref:l,className:i(jo({variant:c.variant||r,size:c.size||a}),e),onClick:()=>c.onValueChange(n),...s,children:t})});ou.displayName="ToggleGroupItem";var Yo=___namespace.forwardRef(({className:e,value:t,defaultValue:r=[0],onValueChange:a,onValueCommit:n,min:o=0,max:s=100,step:l=1,disabled:c=false,orientation:d="horizontal",name:m,...u},p)=>{let[f,b]=___namespace.useState(r),x=t!==void 0,g=x?t:f,v=___namespace.useRef(null),[R,w]=___namespace.useState(false),[h,C]=___namespace.useState(null),y=(H,S)=>{if(!v.current)return g[0];let D=v.current.getBoundingClientRect(),V;d==="horizontal"?V=(H-D.left)/D.width:V=1-(S-D.top)/D.height,V=Math.max(0,Math.min(1,V));let z=o+V*(s-o),G=Math.round(z/l)*l;return Math.max(o,Math.min(s,G))},T=(H,S)=>{let D=[...g];D[S]=H,S>0&&H<g[S-1]&&(D[S]=g[S-1]),S<g.length-1&&H>g[S+1]&&(D[S]=g[S+1]),x||b(D),a?.(D);},N=(H,S)=>{c||(H.preventDefault(),w(true),C(S),H.target.setPointerCapture(H.pointerId));},E=H=>{if(!R||h===null||c)return;let S=y(H.clientX,H.clientY);T(S,h);},M=()=>{R&&(w(false),C(null),n?.(g));},P=H=>{if(c)return;let S=y(H.clientX,H.clientY),D=0,V=Math.abs(g[0]-S);for(let z=1;z<g.length;z++){let G=Math.abs(g[z]-S);G<V&&(V=G,D=z);}T(S,D),n?.([...g.slice(0,D),S,...g.slice(D+1)]);},k=(H,S)=>{if(c)return;let D=g[S];switch(H.key){case "ArrowRight":case "ArrowUp":H.preventDefault(),D=Math.min(s,g[S]+l);break;case "ArrowLeft":case "ArrowDown":H.preventDefault(),D=Math.max(o,g[S]-l);break;case "Home":H.preventDefault(),D=o;break;case "End":H.preventDefault(),D=s;break;default:return}T(D,S),n?.([...g.slice(0,S),D,...g.slice(S+1)]);},L=H=>(H-o)/(s-o)*100;return jsxRuntime.jsxs("div",{ref:p,className:i("relative flex touch-none select-none items-center",d==="vertical"&&"flex-col h-full w-5",c&&"opacity-50 pointer-events-none",e),...u,children:[jsxRuntime.jsx("div",{ref:v,className:i("relative grow overflow-hidden rounded-full bg-secondary",d==="horizontal"?"h-2 w-full":"h-full w-2"),onClick:P,children:jsxRuntime.jsx("div",{className:"absolute bg-primary",style:d==="horizontal"?{left:g.length>1?`${L(g[0])}%`:0,right:`${100-L(g[g.length-1])}%`,top:0,bottom:0}:{bottom:g.length>1?`${L(g[0])}%`:0,top:`${100-L(g[g.length-1])}%`,left:0,right:0}})}),g.map((H,S)=>jsxRuntime.jsx("div",{role:"slider",tabIndex:c?-1:0,"aria-valuemin":o,"aria-valuemax":s,"aria-valuenow":H,"aria-orientation":d,"aria-disabled":c,className:i("absolute block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 cursor-grab",R&&h===S&&"cursor-grabbing"),style:d==="horizontal"?{left:`calc(${L(H)}% - 10px)`,top:"50%",transform:"translateY(-50%)"}:{bottom:`calc(${L(H)}% - 10px)`,left:"50%",transform:"translateX(-50%)"},onPointerDown:D=>N(D,S),onPointerMove:E,onPointerUp:M,onPointerCancel:M,onKeyDown:D=>k(D,S)},S)),m&&g.map((H,S)=>jsxRuntime.jsx("input",{type:"hidden",name:g.length>1?`${m}[${S}]`:m,value:H},S))]})});Yo.displayName="Slider";var su=___namespace.createContext(null),iu=()=>{let e=___namespace.useContext(su);if(!e)throw new Error("AccordionItem must be used within an Accordion");return e},Vi=___namespace.createContext(null),lu=()=>{let e=___namespace.useContext(Vi);if(!e)throw new Error("AccordionTrigger/AccordionContent must be used within an AccordionItem");return e},cu=___namespace.forwardRef(({className:e,type:t="multiple",value:r,defaultValue:a,onValueChange:n,collapsible:o=true,disabled:s,children:l,...c},d)=>{let[m,u]=___namespace.useState(()=>t==="single"?a?[a]:[]:a||[]),p=___namespace.useRef(new Map),f=___namespace.useRef([]),b=r!==void 0,x=b?t==="single"?r?[r]:[]:r:m,g=h=>{if(t==="single"){let y=x.includes(h)&&o?[]:[h];b||u(y),n?.(y[0]||"");}else {let C=x.includes(h)?x.filter(y=>y!==h):[...x,h];b||u(C),n?.(C);}},v=___namespace.useCallback((h,C)=>{p.current.set(h,C),f.current.includes(h)||f.current.push(h);},[]),R=___namespace.useCallback(h=>{p.current.delete(h),f.current=f.current.filter(C=>C!==h);},[]),w=___namespace.useCallback(h=>{let C=f.current;if(C.length===0)return;let y=document.activeElement,T;p.current.forEach((k,L)=>{k===y&&(T=L);});let N=T?C.indexOf(T):-1,E;switch(h){case "first":E=0;break;case "last":E=C.length-1;break;case "next":E=N===-1?0:(N+1)%C.length;break;case "prev":E=N===-1?C.length-1:(N-1+C.length)%C.length;break}let M=C[E];p.current.get(M)?.focus();},[]);return jsxRuntime.jsx(su.Provider,{value:{type:t,value:x,onValueChange:g,collapsible:o,disabled:s,registerTrigger:v,unregisterTrigger:R,focusTrigger:w},children:jsxRuntime.jsx("div",{ref:d,"data-orientation":"vertical",className:i("w-full",e),...c,children:l})})});cu.displayName="Accordion";var du=___namespace.forwardRef(({className:e,value:t,disabled:r,title:a,subtitle:n,startContent:o,children:s,...l},c)=>{let d=iu(),m=d.value.includes(t),u=r||d.disabled||false,p=___namespace.useId(),f=___namespace.useId();return a!==void 0?jsxRuntime.jsx(Vi.Provider,{value:{value:t,isOpen:m,isDisabled:u,contentId:p,triggerId:f},children:jsxRuntime.jsxs("div",{ref:c,"data-state":m?"open":"closed","data-disabled":u?"":void 0,className:i("border-b",u&&"opacity-50",e),...l,children:[jsxRuntime.jsx(uu,{children:jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[o,jsxRuntime.jsxs("div",{className:"flex flex-col items-start",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium",children:a}),n&&jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:n})]})]})}),jsxRuntime.jsx(mu,{children:s})]})}):jsxRuntime.jsx(Vi.Provider,{value:{value:t,isOpen:m,isDisabled:u,contentId:p,triggerId:f},children:jsxRuntime.jsx("div",{ref:c,"data-state":m?"open":"closed","data-disabled":u?"":void 0,className:i("border-b",u&&"opacity-50",e),...l,children:s})})});du.displayName="AccordionItem";var uu=___namespace.forwardRef(({className:e,children:t,onClick:r,onKeyDown:a,...n},o)=>{let s=iu(),{value:l,isOpen:c,isDisabled:d,contentId:m,triggerId:u}=lu(),p=___namespace.useRef(null);___namespace.useEffect(()=>{let b=p.current;return b&&!d&&s.registerTrigger(l,b),()=>{s.unregisterTrigger(l);}},[l,d,s]);let f=b=>{switch(a?.(b),b.key){case "ArrowDown":b.preventDefault(),s.focusTrigger("next");break;case "ArrowUp":b.preventDefault(),s.focusTrigger("prev");break;case "Home":b.preventDefault(),s.focusTrigger("first");break;case "End":b.preventDefault(),s.focusTrigger("last");break}};return jsxRuntime.jsx("h3",{className:"flex",children:jsxRuntime.jsxs("button",{type:"button",ref:b=>{p.current=b,typeof o=="function"?o(b):o&&(o.current=b);},id:u,"aria-controls":m,"aria-expanded":c,disabled:d,"data-state":c?"open":"closed",className:i("flex flex-1 items-center justify-between py-4 font-medium transition-all text-left cursor-pointer disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",e),onClick:b=>{r?.(b),s.onValueChange(l);},onKeyDown:f,...n,children:[t,jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})})});uu.displayName="AccordionTrigger";var mu=___namespace.forwardRef(({className:e,children:t,style:r,...a},n)=>{let{isOpen:o,contentId:s,triggerId:l,isDisabled:c}=lu();return jsxRuntime.jsx("div",{ref:n,id:s,role:"region","aria-labelledby":l,"data-state":o?"open":"closed","data-disabled":c?"":void 0,className:i("grid transition-[grid-template-rows] duration-200 ease-out",o?"grid-rows-[1fr]":"grid-rows-[0fr]",e),style:r,...a,children:jsxRuntime.jsx("div",{className:"overflow-hidden",children:jsxRuntime.jsx("div",{className:"pb-4 pt-0 text-sm",children:t})})})});mu.displayName="AccordionContent";var fu=___namespace.createContext(null),gu=()=>{let e=___namespace.useContext(fu);if(!e)throw new Error("Collapsible components must be used within a Collapsible");return e},bu=___namespace.forwardRef(({className:e,open:t,defaultOpen:r=false,onOpenChange:a,disabled:n,title:o,children:s,...l},c)=>{let[d,m]=___namespace.useState(r),u=t!==void 0,p=u?t:d,f=___namespace.useId(),b=___namespace.useId(),x=g=>{n||(u||m(g),a?.(g));};return jsxRuntime.jsx(fu.Provider,{value:{open:p,onOpenChange:x,disabled:n,contentId:f,triggerId:b},children:jsxRuntime.jsxs("div",{ref:c,"data-state":p?"open":"closed","data-disabled":n?"":void 0,className:i("space-y-2",e),...l,children:[o&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between space-x-4 px-4",children:[jsxRuntime.jsx("h4",{className:"text-sm font-semibold",children:o}),jsxRuntime.jsx(Ai,{})]}),s]})})});bu.displayName="Collapsible";var Ai=___namespace.forwardRef(({className:e,children:t,onClick:r,...a},n)=>{let{open:o,onOpenChange:s,disabled:l,contentId:c,triggerId:d}=gu();return jsxRuntime.jsx("button",{ref:n,type:"button",id:d,"aria-controls":c,"aria-expanded":o,disabled:l,"data-state":o?"open":"closed","data-disabled":l?"":void 0,className:i("flex items-center justify-center h-9 w-9 rounded-lg bg-transparent hover:bg-zinc-100 dark:hover:bg-zinc-800 transition-colors cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",e),onClick:m=>{r?.(m),s(!o);},...a,children:t??jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"h-4 w-4"})})});Ai.displayName="CollapsibleTrigger";var vu=___namespace.forwardRef(({className:e,children:t,style:r,...a},n)=>{let{open:o,contentId:s,triggerId:l,disabled:c}=gu(),d=___namespace.useRef(null),[m,u]=___namespace.useState(void 0),[p,f]=___namespace.useState(false),[b,x]=___namespace.useState(o);___namespace.useEffect(()=>{o?(x(true),f(true),requestAnimationFrame(()=>{d.current&&u(d.current.scrollHeight);})):(f(true),u(0));},[o]);let g=()=>{f(false),o||x(false),u(void 0);};return b?jsxRuntime.jsx("div",{ref:n,id:s,role:"region","aria-labelledby":l,"data-state":o?"open":"closed","data-disabled":c?"":void 0,className:i("overflow-hidden",e),style:{...r,height:p?m!==void 0?m:"auto":o?"auto":0,transition:p?"height 0.25s ease-out, opacity 0.25s ease-out":void 0,opacity:o?1:0},onTransitionEnd:g,...a,children:jsxRuntime.jsx("div",{ref:d,children:t})}):null});vu.displayName="CollapsibleContent";var qo=___namespace.forwardRef(({className:e,value:t=0,max:r=100,label:a,showPercentage:n=false,formatPercentage:o=c=>`${Math.round(c)}%`,...s},l)=>{let c=Math.min(Math.max(t/r*100,0),100);return jsxRuntime.jsxs("div",{ref:l,className:"w-full",children:[(a||n)&&jsxRuntime.jsxs("div",{className:"flex justify-between text-sm mb-2",children:[a&&jsxRuntime.jsx("span",{className:"text-muted-foreground",children:a}),n&&jsxRuntime.jsx("span",{className:i("text-muted-foreground",!a&&"ml-auto"),children:o(c)})]}),jsxRuntime.jsx("div",{role:"progressbar","aria-valuenow":t,"aria-valuemin":0,"aria-valuemax":r,"aria-label":typeof a=="string"?a:void 0,className:i("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...s,children:jsxRuntime.jsx("div",{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-c}%)`}})})]})});qo.displayName="Progress";var Ru=___namespace.createContext(null),wu=()=>{let e=___namespace.useContext(Ru);if(!e)throw new Error("HoverCard components must be used within a HoverCard");return e},Cu=({children:e,open:t,defaultOpen:r=false,onOpenChange:a,openDelay:n=700,closeDelay:o=300,closeOnScroll:s=true})=>{let[l,c]=___namespace.useState(r),d=t!==void 0,m=d?t:l,u=___namespace.useRef(null),p=___namespace.useId(),f=___namespace.useRef(null),b=___namespace.useRef(null),x=___namespace.useCallback(g=>{f.current&&clearTimeout(f.current),b.current&&clearTimeout(b.current),g?f.current=setTimeout(()=>{d||c(true),a?.(true);},n):b.current=setTimeout(()=>{d||c(false),a?.(false);},o);},[d,a,n,o]);return ___namespace.useEffect(()=>{if(!s||!m)return;let g=()=>{f.current&&clearTimeout(f.current),b.current&&clearTimeout(b.current),d||c(false),a?.(false);};return window.addEventListener("scroll",g,true),()=>window.removeEventListener("scroll",g,true)},[s,m,d,a]),___namespace.useEffect(()=>()=>{f.current&&clearTimeout(f.current),b.current&&clearTimeout(b.current);},[]),jsxRuntime.jsx(Ru.Provider,{value:{open:m,onOpenChange:x,triggerRef:u,contentId:p},children:e})};Cu.displayName="HoverCard";var Nu=___namespace.forwardRef(({asChild:e,children:t,onMouseEnter:r,onMouseLeave:a,onFocus:n,onBlur:o,...s},l)=>{let{onOpenChange:c,triggerRef:d}=wu(),m=b=>{r?.(b),c(true);},u=b=>{a?.(b),c(false);},p=b=>{n?.(b),c(true);},f=b=>{o?.(b),c(false);};return e&&___namespace.isValidElement(t)?___namespace.cloneElement(t,{ref:b=>{d.current=b,typeof l=="function"?l(b):l&&(l.current=b);},onMouseEnter:m,onMouseLeave:u,onFocus:p,onBlur:f,...s}):jsxRuntime.jsx("a",{ref:b=>{d.current=b,typeof l=="function"?l(b):l&&(l.current=b);},onMouseEnter:m,onMouseLeave:u,onFocus:p,onBlur:f,...s,children:t})});Nu.displayName="HoverCardTrigger";var Mu=___namespace.forwardRef(({className:e,side:t="bottom",sideOffset:r=4,align:a="center",alignOffset:n=0,onMouseEnter:o,onMouseLeave:s,children:l,...c},d)=>{let{open:m,onOpenChange:u,triggerRef:p,contentId:f}=wu(),[b,x]=___namespace.useState({top:0,left:0}),[g,v]=___namespace.useState(false),R=___namespace.useRef(null);___namespace.useEffect(()=>{v(true);},[]),___namespace.useEffect(()=>{if(!m||!p.current||!R.current)return;(()=>{if(!p.current||!R.current)return;let T=p.current.getBoundingClientRect(),N=R.current.getBoundingClientRect(),E=0,M=0;switch(t){case "top":E=T.top-N.height-r;break;case "bottom":E=T.bottom+r;break;case "left":M=T.left-N.width-r;break;case "right":M=T.right+r;break}if(t==="top"||t==="bottom")switch(a){case "start":M=T.left+n;break;case "center":M=T.left+T.width/2-N.width/2;break;case "end":M=T.right-N.width-n;break}else switch(a){case "start":E=T.top+n;break;case "center":E=T.top+T.height/2-N.height/2;break;case "end":E=T.bottom-N.height-n;break}x({top:E,left:M});})();},[m,t,r,a,n,p]);let w=y=>{o?.(y),u(true);},h=y=>{s?.(y),u(false);};if(!g||!m)return null;let C={top:"animate-in fade-in-0 zoom-in-95 slide-in-from-bottom-2",bottom:"animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",left:"animate-in fade-in-0 zoom-in-95 slide-in-from-right-2",right:"animate-in fade-in-0 zoom-in-95 slide-in-from-left-2"}[t];return $o__namespace.createPortal(jsxRuntime.jsx("div",{ref:y=>{R.current=y,typeof d=="function"?d(y):d&&(d.current=y);},id:f,"data-state":m?"open":"closed","data-side":t,className:i("fixed z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none",C,e),style:{top:b.top,left:b.left},onMouseEnter:w,onMouseLeave:h,...c,children:l}),document.body)});Mu.displayName="HoverCardContent";var Tu=___namespace.createContext({size:"md",variant:"default",radius:"md"}),Jo=()=>___namespace.useContext(Tu);classVarianceAuthority.cva("",{variants:{size:{sm:"",md:"",lg:""},variant:{default:"",bordered:"",filled:""},radius:{none:"",sm:"",md:"",lg:"",full:""}},defaultVariants:{size:"md",variant:"default",radius:"md"}});var JR=classVarianceAuthority.cva("flex flex-wrap items-center break-words",{variants:{size:{sm:"gap-1 text-xs",md:"gap-1.5 text-sm sm:gap-2",lg:"gap-2 text-base sm:gap-3"},variant:{default:"text-muted-foreground",bordered:"text-muted-foreground px-3 py-1.5 border",filled:"text-muted-foreground bg-muted px-3 py-1.5"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{size:"md",variant:"default",radius:"md"}}),QR=classVarianceAuthority.cva("",{variants:{size:{sm:"[&>svg]:h-3 [&>svg]:w-3",md:"[&>svg]:h-3.5 [&>svg]:w-3.5",lg:"[&>svg]:h-4 [&>svg]:w-4"}},defaultVariants:{size:"md"}}),e0=classVarianceAuthority.cva("flex items-center justify-center",{variants:{size:{sm:"h-6 w-6 [&>svg]:h-3 [&>svg]:w-3",md:"h-8 w-8 [&>svg]:h-4 [&>svg]:w-4",lg:"h-10 w-10 [&>svg]:h-5 [&>svg]:w-5"}},defaultVariants:{size:"md"}}),Pu=___namespace.forwardRef(({size:e="md",variant:t="default",radius:r="md",children:a,...n},o)=>jsxRuntime.jsx(Tu.Provider,{value:{size:e,variant:t,radius:r},children:jsxRuntime.jsx("nav",{ref:o,"aria-label":"breadcrumb",...n,children:a})}));Pu.displayName="Breadcrumb";var ku=___namespace.forwardRef(({className:e,...t},r)=>{let{size:a,variant:n,radius:o}=Jo();return jsxRuntime.jsx("ol",{ref:r,className:i(JR({size:a,variant:n,radius:n==="default"?void 0:o}),e),...t})});ku.displayName="BreadcrumbList";var Eu=___namespace.forwardRef(({className:e,...t},r)=>{let{size:a}=Jo();return jsxRuntime.jsx("li",{ref:r,className:i("inline-flex items-center",a==="sm"&&"gap-1",a==="md"&&"gap-1.5",a==="lg"&&"gap-2",e),...t})});Eu.displayName="BreadcrumbItem";var Lu=___namespace.forwardRef(({asChild:e,className:t,...r},a)=>jsxRuntime.jsx(e?Mo:"a",{ref:a,className:i("transition-colors hover:text-foreground cursor-pointer",t),...r}));Lu.displayName="BreadcrumbLink";var Du=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("span",{ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:i("font-medium text-foreground",e),...t}));Du.displayName="BreadcrumbPage";var Su=({children:e,className:t,...r})=>{let{size:a}=Jo();return jsxRuntime.jsx("li",{role:"presentation","aria-hidden":"true",className:i(QR({size:a}),"text-muted-foreground/60",t),...r,children:e??jsxRuntime.jsx(lucideReact.ChevronRight,{})})};Su.displayName="BreadcrumbSeparator";var Hu=({className:e,...t})=>{let{size:r}=Jo();return jsxRuntime.jsxs("span",{role:"presentation","aria-hidden":"true",className:i(e0({size:r}),e),...t,children:[jsxRuntime.jsx(lucideReact.MoreHorizontal,{}),jsxRuntime.jsx("span",{className:"sr-only",children:"More"})]})};Hu.displayName="BreadcrumbEllipsis";var Au=___namespace.forwardRef(({ratio:e=1,className:t,style:r,children:a,...n},o)=>jsxRuntime.jsx("div",{ref:o,className:i("relative w-full",t),style:{...r,paddingBottom:`${100/e}%`},...n,children:jsxRuntime.jsx("div",{className:"absolute inset-0",children:a})}));Au.displayName="AspectRatio";var Ou=___namespace.createContext(null),Bi=()=>{let e=___namespace.useContext(Ou);if(!e)throw new Error("NavigationMenu components must be used within a NavigationMenu");return e},Fu=___namespace.createContext(null),Ku=()=>{let e=___namespace.useContext(Fu);if(!e)throw new Error("NavigationMenuItem components must be used within a NavigationMenuItem");return e},Gu=___namespace.forwardRef(({className:e,orientation:t="horizontal",children:r,...a},n)=>{let[o,s]=___namespace.useState(null);return jsxRuntime.jsx(Ou.Provider,{value:{activeItem:o,setActiveItem:s,orientation:t},children:jsxRuntime.jsxs("nav",{ref:n,className:i("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:[r,jsxRuntime.jsx(Oi,{})]})})});Gu.displayName="NavigationMenu";var $u=___namespace.forwardRef(({className:e,...t},r)=>{let{orientation:a}=Bi();return jsxRuntime.jsx("ul",{ref:r,className:i("group flex flex-1 list-none items-center justify-center gap-1",a==="vertical"&&"flex-col items-start",e),...t})});$u.displayName="NavigationMenuList";var _u=___namespace.forwardRef(({className:e,children:t,...r},a)=>{let{activeItem:n,setActiveItem:o}=Bi(),s=___namespace.useId(),l=___namespace.useRef(null),c=n===s,d=___namespace.useCallback(m=>{o(m?s:null);},[s,o]);return jsxRuntime.jsx(Fu.Provider,{value:{itemId:s,triggerRef:l,open:c,onOpenChange:d},children:jsxRuntime.jsx("li",{ref:a,className:i("relative",e),...r,children:t})})});_u.displayName="NavigationMenuItem";var ju=classVarianceAuthority.cva("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-accent/50"),Wu=___namespace.forwardRef(({className:e,children:t,onMouseEnter:r,onClick:a,...n},o)=>{let{triggerRef:s,open:l,onOpenChange:c}=Ku(),d=u=>{r?.(u),c(true);},m=u=>{a?.(u),c(!l);};return jsxRuntime.jsxs("button",{ref:u=>{s.current=u,typeof o=="function"?o(u):o&&(o.current=u);},type:"button","data-state":l?"open":"closed",className:i(ju(),"group",e),onMouseEnter:d,onClick:m,"aria-expanded":l,...n,children:[t,jsxRuntime.jsx(lucideReact.ChevronDown,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})});Wu.displayName="NavigationMenuTrigger";var Yu=___namespace.forwardRef(({className:e,onMouseEnter:t,onMouseLeave:r,...a},n)=>{let{open:o,onOpenChange:s,triggerRef:l}=Ku(),c=___namespace.useRef(null),[d,m]=___namespace.useState({top:0,left:0});___namespace.useEffect(()=>{if(!o||!l.current)return;let f=()=>{if(!l.current)return;let b=l.current.getBoundingClientRect();m({top:b.bottom+4,left:b.left});};return f(),window.addEventListener("resize",f),window.addEventListener("scroll",f,true),()=>{window.removeEventListener("resize",f),window.removeEventListener("scroll",f,true);}},[o,l]);let u=f=>{t?.(f),s(true);},p=f=>{r?.(f),s(false);};return o?$o__namespace.createPortal(jsxRuntime.jsx("div",{ref:f=>{c.current=f,typeof n=="function"?n(f):n&&(n.current=f);},"data-state":o?"open":"closed",className:i("fixed z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-4 text-popover-foreground shadow-lg","animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",e),style:{top:d.top,left:d.left},onMouseEnter:u,onMouseLeave:p,...a}),document.body):null});Yu.displayName="NavigationMenuContent";var Uu=classVarianceAuthority.cva("block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground"),Xu=___namespace.forwardRef(({className:e,active:t,...r},a)=>jsxRuntime.jsx("a",{ref:a,className:i(Uu(),t&&"bg-accent text-accent-foreground",e),...r}));Xu.displayName="NavigationMenuLink";var Oi=___namespace.forwardRef((e,t)=>null);Oi.displayName="NavigationMenuViewport";var qu=___namespace.forwardRef(({className:e,...t},r)=>{let{activeItem:a}=Bi();return a?jsxRuntime.jsx("div",{ref:r,className:i("top-full z-[1] flex h-2.5 items-end justify-center overflow-hidden","data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:jsxRuntime.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}):null});qu.displayName="NavigationMenuIndicator";var em=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-full transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"hover:bg-muted",solid:"bg-muted hover:bg-muted/80",ghost:"hover:bg-accent hover:text-accent-foreground",light:"hover:bg-muted/50",outline:"border border-input hover:bg-accent hover:text-accent-foreground"},size:{sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10"}},defaultVariants:{variant:"default",size:"md"}}),vr=___namespace.forwardRef(({className:e,variant:t,size:r,iconSize:a,...n},o)=>{let l=a??{sm:14,md:16,lg:20}[r??"md"];return jsxRuntime.jsx("button",{ref:o,type:"button",className:i(em({variant:t,size:r}),e),"aria-label":"Close",...n,children:jsxRuntime.jsx(lucideReact.X,{style:{width:l,height:l}})})});vr.displayName="CloseButton";var Qo=___namespace.createContext(null);function u0(){let e=___namespace.useContext(Qo);if(!e)throw new Error("useDrawer must be used within a DrawerProvider.");return e}function Zr(){return ___namespace.useContext(Qo)}var m0="16rem",p0="18rem",f0="3rem",g0="b",b0={xs:"256px",sm:"320px",md:"384px",lg:"448px",xl:"512px","2xl":"576px","3xl":"672px","4xl":"768px","5xl":"896px",full:"100%"},v0={xs:"20vh",sm:"30vh",md:"40vh",lg:"50vh",xl:"60vh","2xl":"70vh","3xl":"75vh","4xl":"80vh","5xl":"90vh",full:"100vh"},Fi=___namespace.forwardRef(({defaultOpen:e=false,open:t,onOpenChange:r,placement:a="left",size:n="md",backdrop:o="opaque",isDismissable:s=true,hideCloseButton:l=false,collapsible:c="offcanvas",mode:d,className:m,style:u,children:p,...f},b)=>{let x=d??"overlay",g=x==="overlay",[v,R]=___namespace.useState(false),[w,h]=___namespace.useState(false),[C,y]=___namespace.useState(e),T=t??C,N=___namespace.useCallback(k=>{let L=typeof k=="function"?k(T):k;r?r(L):y(L);},[r,T]);___namespace.useEffect(()=>{let k=()=>{R(window.innerWidth<768);};return k(),window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)},[]);let E=___namespace.useCallback(()=>g?N(k=>!k):v?h(k=>!k):N(k=>!k),[v,N,h,g]);___namespace.useEffect(()=>{if(g)return;let k=L=>{L.key===g0&&(L.metaKey||L.ctrlKey)&&(L.preventDefault(),E());};return window.addEventListener("keydown",k),()=>window.removeEventListener("keydown",k)},[E,g]);let M=T?"expanded":"collapsed",P=___namespace.useMemo(()=>({placement:a,state:M,open:T,setOpen:N,isMobile:v,openMobile:w,setOpenMobile:h,toggleDrawer:E,collapsible:c,mode:x,size:n,backdrop:o,isDismissable:s,hideCloseButton:l}),[a,M,T,N,v,w,h,E,c,x,n,o,s,l]);return g?jsxRuntime.jsx(Qo.Provider,{value:P,children:jsxRuntime.jsx(vaul.Drawer.Root,{open:T,onOpenChange:N,direction:a,dismissible:s,children:p})}):jsxRuntime.jsx(Qo.Provider,{value:P,children:jsxRuntime.jsx($r,{delayDuration:0,children:jsxRuntime.jsx("div",{ref:b,style:{"--drawer-width":m0,"--drawer-width-icon":f0,...u},className:i("group/drawer-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-muted/50",m),...f,children:p})})})});Fi.displayName="Drawer";var rm=___namespace.forwardRef(({variant:e="default",embedded:t=false,className:r,children:a,...n},o)=>{let s=Zr();if(!s)return jsxRuntime.jsx("div",{ref:o,className:i("flex h-full flex-col bg-background text-foreground",r),...n,children:a});let{placement:l,collapsible:c,isMobile:d,state:m,openMobile:u,setOpenMobile:p}=s;if(l==="bottom"||l==="top")return jsxRuntime.jsx(jsxRuntime.Fragment,{children:a});if(c==="none")return jsxRuntime.jsx("div",{ref:o,className:i("flex h-full w-[--drawer-width] flex-col bg-background text-foreground border-r",l==="right"&&"border-l border-r-0",r),...n,children:a});if(d&&!t)return jsxRuntime.jsx(h0,{open:u,onOpenChange:p,placement:l,children:a});if(t){let b=m==="collapsed",x=c==="offcanvas",g=c==="icon";return jsxRuntime.jsx("div",{ref:o,className:i("group peer text-foreground relative"),"data-state":m,"data-collapsible":b?c:"","data-variant":e,"data-placement":l,"data-embedded":"true",children:jsxRuntime.jsx("div",{className:i("flex h-full flex-col overflow-hidden transition-[width,opacity] duration-200 ease-out",x?b?"w-0 opacity-0":"w-[--drawer-width] opacity-100":g&&b?"w-[--drawer-width-icon]":"w-[--drawer-width]",r),...n,children:jsxRuntime.jsx("div",{"data-drawer":"drawer",className:i("flex h-full w-full flex-col bg-background transition-opacity duration-200",e==="floating"&&"overflow-hidden rounded-lg border shadow-sm",e==="inset"&&"overflow-hidden rounded-lg border",e==="default"&&l==="left"&&"border-r",e==="default"&&l==="right"&&"border-l"),children:a})})})}return jsxRuntime.jsxs("div",{ref:o,className:"group peer hidden md:block text-foreground","data-state":m,"data-collapsible":m==="collapsed"?c:"","data-variant":e,"data-placement":l,children:[jsxRuntime.jsx("div",{className:i("duration-200 relative h-svh w-[--drawer-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0",l==="right"&&"group-data-[placement=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--drawer-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--drawer-width-icon]")}),jsxRuntime.jsx("div",{className:i("duration-200 fixed inset-y-0 z-10 hidden h-svh w-[--drawer-width] transition-[left,right,width] ease-linear md:flex",l==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--drawer-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--drawer-width)*-1)]",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--drawer-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--drawer-width-icon] group-data-[placement=left]:border-r group-data-[placement=right]:border-l",r),...n,children:jsxRuntime.jsx("div",{"data-drawer":"drawer",className:i("flex h-full w-full flex-col bg-background",e==="floating"&&"overflow-hidden rounded-lg border shadow-sm",e==="inset"&&"overflow-hidden rounded-lg border"),children:a})})]})});rm.displayName="DrawerSidebar";var h0=({children:e,open:t,onOpenChange:r,placement:a})=>{let[n,o]=___namespace.useState(false);return ___namespace.useEffect(()=>{o(true);},[]),___namespace.useEffect(()=>(t&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="";}),[t]),!n||!t?null:$o__namespace.createPortal(jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"fixed inset-0 z-50 bg-black/80 animate-in fade-in-0",onClick:()=>r(false)}),jsxRuntime.jsx("div",{className:i("fixed z-50 bg-background p-0 text-foreground shadow-lg","animate-in",a==="left"&&"inset-y-0 left-0 h-full w-[--drawer-width] slide-in-from-left",a==="right"&&"inset-y-0 right-0 h-full w-[--drawer-width] slide-in-from-right"),style:{"--drawer-width":p0},children:jsxRuntime.jsx("div",{className:"flex h-full w-full flex-col",children:e})})]}),document.body)},am=___namespace.forwardRef(({className:e,onClick:t,...r},a)=>{let n=Zr();if(n?.mode==="overlay")return jsxRuntime.jsx(vaul.Drawer.Trigger,{ref:a,className:e,onClick:t,...r});let o=n?.toggleDrawer;return jsxRuntime.jsxs("button",{ref:a,type:"button","data-drawer":"trigger",className:i("flex items-center justify-center h-9 w-9 rounded-lg bg-transparent hover:bg-accent transition-colors cursor-pointer",e),onClick:s=>{t?.(s),o?.();},...r,children:[jsxRuntime.jsx(lucideReact.PanelLeft,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle Drawer"})]})});am.displayName="DrawerTrigger";var nm=___namespace.forwardRef(({className:e,children:t,...r},a)=>{let n=Zr(),o=n?.mode==="overlay",s=n?.placement||"left",l=n?.size||"md",c=n?.backdrop||"opaque",d=n?.hideCloseButton||false;if(o){let m=s==="top"||s==="bottom",u=s==="left"||s==="right",p=u?b0[l]:v0[l],f={opaque:"bg-black/80",blur:"bg-black/50 backdrop-blur-sm",transparent:"bg-transparent"},b={top:"inset-x-0 top-0 rounded-b-[10px]",bottom:"inset-x-0 bottom-0 rounded-t-[10px]",left:"inset-y-0 left-0 rounded-r-[10px]",right:"inset-y-0 right-0 rounded-l-[10px]"};return jsxRuntime.jsxs(vaul.Drawer.Portal,{children:[jsxRuntime.jsx(vaul.Drawer.Overlay,{className:i("fixed inset-0 z-50",f[c])}),jsxRuntime.jsxs(vaul.Drawer.Content,{ref:a,className:i("fixed z-50 flex flex-col border bg-background",b[s],e),style:{...u?{width:p,height:"100%"}:{},...m?{maxHeight:p}:{},...r.style},...r,children:[u&&!d&&jsxRuntime.jsx(vaul.Drawer.Close,{asChild:true,children:jsxRuntime.jsx(vr,{variant:"light",className:"absolute right-4 top-4 z-10"})}),m&&jsxRuntime.jsx("div",{className:i("mx-auto h-2 w-[100px] rounded-full bg-muted",s==="top"?"mb-4 mt-auto":"mt-4")}),t]})]})}return jsxRuntime.jsx("div",{ref:a,className:i("flex flex-col h-full",e),...r,children:t})});nm.displayName="DrawerContent";var om=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-drawer":"header",className:i("flex flex-col gap-2 p-4",e),...t}));om.displayName="DrawerHeader";var sm=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-drawer":"body",className:i("flex min-h-0 flex-1 flex-col gap-2 overflow-auto p-4 group-data-[collapsible=icon]:overflow-hidden",e),...t}));sm.displayName="DrawerBody";var im=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-drawer":"footer",className:i("flex flex-col gap-2 p-4 mt-auto",e),...t}));im.displayName="DrawerFooter";var lm=___namespace.forwardRef(({className:e,...t},r)=>Zr()?.mode==="overlay"?jsxRuntime.jsx(vaul.Drawer.Title,{ref:r,className:i("text-lg font-semibold leading-none tracking-tight",e),...t}):jsxRuntime.jsx("h2",{ref:r,className:i("text-lg font-semibold leading-none tracking-tight",e),...t}));lm.displayName="DrawerTitle";var cm=___namespace.forwardRef(({className:e,...t},r)=>Zr()?.mode==="overlay"?jsxRuntime.jsx(vaul.Drawer.Description,{ref:r,className:i("text-sm text-muted-foreground",e),...t}):jsxRuntime.jsx("p",{ref:r,className:i("text-sm text-muted-foreground",e),...t}));cm.displayName="DrawerDescription";var dm=___namespace.forwardRef(({className:e,onClick:t,...r},a)=>{let n=Zr();return n?.mode==="overlay"?jsxRuntime.jsx(vaul.Drawer.Close,{ref:a,className:e,onClick:t,...r}):jsxRuntime.jsx(vr,{ref:a,variant:"light",className:e,onClick:s=>{t?.(s),n?.setOpen(false);},...r})});dm.displayName="DrawerClose";var um=___namespace.forwardRef(({className:e,onClick:t,showLabel:r=true,...a},n)=>{let o=Zr();if(!o)return null;let{toggleDrawer:s,state:l,placement:c}=o,d=l==="collapsed",m=c==="left",u=m?lucideReact.PanelLeftOpen:lucideReact.PanelRightOpen,p=m?lucideReact.PanelLeftClose:lucideReact.PanelRightClose;return jsxRuntime.jsxs("button",{ref:n,type:"button","data-drawer":"toggle","data-state":l,className:i("flex items-center gap-2 w-full px-2 py-2 rounded-md text-sm text-muted-foreground","hover:bg-accent hover:text-accent-foreground","transition-colors cursor-pointer","group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:px-0",e),onClick:f=>{t?.(f),s();},...a,children:[d?jsxRuntime.jsx(u,{className:"h-4 w-4 shrink-0"}):jsxRuntime.jsx(p,{className:"h-4 w-4 shrink-0"}),r&&jsxRuntime.jsx("span",{className:"group-data-[collapsible=icon]:hidden truncate",children:d?"Expand":"Collapse"})]})});um.displayName="DrawerToggle";var mm=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-drawer":"separator",className:i("mx-4 h-px bg-border",e),...t}));mm.displayName="DrawerSeparator";var pm=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("ul",{ref:r,"data-drawer":"menu",className:i("flex w-full min-w-0 flex-col gap-1",e),...t}));pm.displayName="DrawerMenu";var fm=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("li",{ref:r,"data-drawer":"menu-item",className:i("group/menu-item relative",e),...t}));fm.displayName="DrawerMenuItem";var gm=classVarianceAuthority.cva("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-ring transition-[width,height,padding] hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 active:bg-accent active:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-accent data-[active=true]:font-medium data-[active=true]:text-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-accent hover:text-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--border))] hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent/50 hover:text-accent-foreground"},size:{sm:"h-7 text-xs",md:"h-8 text-sm",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"md"}}),bm=___namespace.forwardRef(({asChild:e=false,isActive:t=false,variant:r="default",size:a="md",tooltip:n,className:o,children:s,...l},c)=>{let d=Zr(),m=d?.isMobile??false,u=d?.state??"expanded",p=jsxRuntime.jsx("button",{ref:c,type:"button","data-drawer":"menu-button","data-size":a,"data-active":t,className:i(gm({variant:r,size:a}),o),...l,children:s});return n?jsxRuntime.jsxs(_r,{children:[jsxRuntime.jsx(jr,{asChild:true,children:p}),jsxRuntime.jsx(Wr,{side:"right",align:"center",hidden:u!=="collapsed"||m,...typeof n=="string"?{children:n}:n})]}):p});bm.displayName="DrawerMenuButton";var vm=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-drawer":"group",className:i("relative flex w-full min-w-0 flex-col p-2",e),...t}));vm.displayName="DrawerGroup";var hm=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,"data-drawer":"group-label",className:i("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-muted-foreground outline-none transition-[margin,opacity] ease-linear","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...t}));hm.displayName="DrawerGroupLabel";var xm=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("main",{ref:r,className:i("relative flex min-h-svh flex-1 flex-col bg-background","peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));xm.displayName="DrawerInset";var x0=Fi;var Rm=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{className:"relative w-full overflow-auto",children:jsxRuntime.jsx("table",{ref:r,className:i("w-full caption-bottom text-sm",e),...t})}));Rm.displayName="Table";var wm=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("thead",{ref:r,className:i("[&_tr]:border-b",e),...t}));wm.displayName="TableHeader";var Cm=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("tbody",{ref:r,className:i("[&_tr:last-child]:border-0",e),...t}));Cm.displayName="TableBody";var Nm=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("tfoot",{ref:r,className:i("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));Nm.displayName="TableFooter";var Mm=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("tr",{ref:r,className:i("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));Mm.displayName="TableRow";var Tm=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("th",{ref:r,className:i("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));Tm.displayName="TableHead";var Pm=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("td",{ref:r,className:i("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));Pm.displayName="TableCell";var km=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("caption",{ref:r,className:i("mt-4 text-sm text-muted-foreground",e),...t}));km.displayName="TableCaption";var Lm=classVarianceAuthority.cva("animate-spin text-muted-foreground",{variants:{size:{sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8"}},defaultVariants:{size:"md"}}),Dm=___namespace.forwardRef(({className:e,size:t,...r},a)=>jsxRuntime.jsx(lucideReact.Loader2,{ref:a,className:i(Lm({size:t,className:e})),...r}));Dm.displayName="Spinner";var Ki=["January","February","March","April","May","June","July","August","September","October","November","December"];function E0({currentMonth:e,onMonthChange:t,startYear:r,endYear:a}){let[n,o]=___namespace.useState(false),[s,l]=___namespace.useState(false),c=___namespace.useRef(null),d=___namespace.useRef(null),m=dateFns.getMonth(e),u=dateFns.getYear(e);___namespace.useEffect(()=>{function x(g){c.current&&!c.current.contains(g.target)&&o(false),d.current&&!d.current.contains(g.target)&&l(false);}return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[]);let p=x=>{let g=dateFns.setMonth(e,x);t(g),o(false);},f=x=>{let g=dateFns.setYear(e,x);t(g),l(false);},b=___namespace.useMemo(()=>{let x=[];for(let g=a;g>=r;g--)x.push(g);return x},[r,a]);return jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("div",{ref:c,className:"relative",children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>{o(!n),l(false);},className:i("inline-flex items-center justify-between gap-2 px-3 py-1.5 rounded-md","text-sm font-medium w-[120px]","border border-border bg-background","hover:bg-muted transition-colors cursor-pointer",n&&"ring-2 ring-primary ring-offset-2 ring-offset-background"),children:[jsxRuntime.jsx("span",{children:Ki[m]}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:i("h-4 w-4 text-muted-foreground transition-transform",n&&"rotate-180")})]}),n&&jsxRuntime.jsx("div",{className:"absolute top-full left-0 mt-1 z-50 min-w-[140px] rounded-md border border-border bg-background shadow-lg",children:jsxRuntime.jsx(_e,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"p-1",children:Ki.map((x,g)=>jsxRuntime.jsx("button",{type:"button",onClick:()=>p(g),className:i("w-full text-left px-3 py-2 text-sm rounded-md","hover:bg-muted transition-colors cursor-pointer",m===g&&"bg-primary/10 text-primary font-medium"),children:x},x))})})})]}),jsxRuntime.jsxs("div",{ref:d,className:"relative",children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>{l(!s),o(false);},className:i("inline-flex items-center justify-between gap-2 px-3 py-1.5 rounded-md","text-sm font-medium w-[85px]","border border-border bg-background","hover:bg-muted transition-colors cursor-pointer",s&&"ring-2 ring-primary ring-offset-2 ring-offset-background"),children:[jsxRuntime.jsx("span",{children:u}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:i("h-4 w-4 text-muted-foreground transition-transform",s&&"rotate-180")})]}),s&&jsxRuntime.jsx("div",{className:"absolute top-full left-0 mt-1 z-50 min-w-[100px] rounded-md border border-border bg-background shadow-lg",children:jsxRuntime.jsx(_e,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"p-1",children:b.map(x=>jsxRuntime.jsx("button",{type:"button",onClick:()=>f(x),className:i("w-full text-left px-3 py-2 text-sm rounded-md","hover:bg-muted transition-colors cursor-pointer",u===x&&"bg-primary/10 text-primary font-medium"),children:x},x))})})})]})]})}function L0(e,t,r){return function({calendarMonth:n}){let{goToMonth:o,nextMonth:s,previousMonth:l}=reactDayPicker.useDayPicker();if(e)return jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-2 h-10 mb-2",children:[jsxRuntime.jsx(E0,{currentMonth:n.date,onMonthChange:o,startYear:t,endYear:r}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("button",{type:"button",disabled:!l,onClick:()=>l&&o(l),className:i("h-8 w-8 inline-flex items-center justify-center rounded-md","text-muted-foreground hover:text-foreground hover:bg-muted","transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"),"aria-label":"Previous month",children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx("button",{type:"button",disabled:!s,onClick:()=>s&&o(s),className:i("h-8 w-8 inline-flex items-center justify-center rounded-md","text-muted-foreground hover:text-foreground hover:bg-muted","transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"),"aria-label":"Next month",children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})})]})]});let c=Ki[n.date.getMonth()],d=n.date.getFullYear();return jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-2 h-10 mb-2",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium w-[90px]",children:c}),jsxRuntime.jsx("span",{className:"text-sm font-medium w-[50px]",children:d})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("button",{type:"button",disabled:!l,onClick:()=>l&&o(l),className:i("h-8 w-8 inline-flex items-center justify-center rounded-md","text-muted-foreground hover:text-foreground hover:bg-muted","transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"),"aria-label":"Previous month",children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx("button",{type:"button",disabled:!s,onClick:()=>s&&o(s),className:i("h-8 w-8 inline-flex items-center justify-center rounded-md","text-muted-foreground hover:text-foreground hover:bg-muted","transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"),"aria-label":"Next month",children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})})]})]})}}function on({className:e,classNames:t,showOutsideDays:r=true,showMonthAndYearPickers:a=false,startYear:n=1900,endYear:o=new Date().getFullYear()+50,components:s,...l}){let c=___namespace.useMemo(()=>L0(a,n,o),[a,n,o]);return jsxRuntime.jsx(reactDayPicker.DayPicker,{showOutsideDays:r,className:i("p-4",e),classNames:{months:"flex flex-col sm:flex-row gap-4",month:"flex flex-col gap-2",month_caption:"sr-only",nav:"hidden",month_grid:"w-full border-collapse",weekdays:"flex",weekday:"text-muted-foreground w-10 font-normal text-xs text-center",week:"flex w-full mt-1",day:i("relative h-10 w-10 p-0 text-center text-sm","flex items-center justify-center","focus-within:relative focus-within:z-20","[&:has([aria-selected]:not(.outside-day))]:bg-accent","first:[&:has([aria-selected]:not(.outside-day))]:rounded-l-md","last:[&:has([aria-selected]:not(.outside-day))]:rounded-r-md"),day_button:i("size-10 p-0 font-normal rounded-md text-sm","inline-flex items-center justify-center","hover:bg-primary/10 hover:text-primary","focus:outline-none","transition-colors cursor-pointer"),range_start:"rounded-l-md",range_end:"rounded-r-md",selected:i("bg-primary text-primary-foreground rounded-md","hover:bg-primary/90 hover:!text-primary-foreground","focus:bg-primary focus:text-primary-foreground","[&.outside-day]:bg-transparent [&.outside-day]:text-muted-foreground/50"),today:"bg-accent text-accent-foreground rounded-md",outside:"outside-day text-muted-foreground/50",disabled:"text-muted-foreground/30 cursor-not-allowed",range_middle:"rounded-none",hidden:"invisible",...t},modifiersStyles:{range_middle:{backgroundColor:"var(--color-muted)",color:"var(--color-foreground)",borderRadius:0},outside:{backgroundColor:"transparent"}},components:{...s,MonthCaption:c},...l})}on.displayName="Calendar";var Vm=({className:e,...t})=>jsxRuntime.jsx("nav",{role:"navigation","aria-label":"pagination",className:i("mx-auto flex w-full justify-center",e),...t});Vm.displayName="Pagination";var Am=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("ul",{ref:r,className:i("flex flex-row items-center gap-1",e),...t}));Am.displayName="PaginationContent";var zm=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("li",{ref:r,className:i("",e),...t}));zm.displayName="PaginationItem";var es=({className:e,isActive:t,size:r="icon",...a})=>jsxRuntime.jsx("a",{"aria-current":t?"page":void 0,className:i(fr({variant:t?"solid":"light",size:r}),e),...a});es.displayName="PaginationLink";var Bm=({className:e,...t})=>jsxRuntime.jsxs(es,{"aria-label":"Go to previous page",size:"md",className:i("gap-1 pl-2.5",e),...t,children:[jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{children:"Previous"})]});Bm.displayName="PaginationPrevious";var Om=({className:e,...t})=>jsxRuntime.jsxs(es,{"aria-label":"Go to next page",size:"md",className:i("gap-1 pr-2.5",e),...t,children:[jsxRuntime.jsx("span",{children:"Next"}),jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})]});Om.displayName="PaginationNext";var Fm=({className:e,...t})=>jsxRuntime.jsxs("span",{"aria-hidden":true,className:i("flex h-9 w-9 items-center justify-center",e),...t,children:[jsxRuntime.jsx(lucideReact.MoreHorizontal,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"More pages"})]});Fm.displayName="PaginationEllipsis";var _i=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(cmdk.Command,{ref:r,className:i("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));_i.displayName=cmdk.Command.displayName;var V0=({children:e,...t})=>jsxRuntime.jsx(Po,{...t,children:jsxRuntime.jsx(ko,{className:"overflow-hidden p-0 shadow-lg",children:jsxRuntime.jsx(_i,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),Km=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[jsxRuntime.jsx(lucideReact.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),jsxRuntime.jsx(cmdk.Command.Input,{ref:r,className:i("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Km.displayName=cmdk.Command.Input.displayName;var Gm=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(cmdk.Command.List,{ref:r,className:i("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Gm.displayName=cmdk.Command.List.displayName;var $m=___namespace.forwardRef((e,t)=>jsxRuntime.jsx(cmdk.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));$m.displayName=cmdk.Command.Empty.displayName;var _m=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(cmdk.Command.Group,{ref:r,className:i("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));_m.displayName=cmdk.Command.Group.displayName;var jm=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(cmdk.Command.Separator,{ref:r,className:i("-mx-1 h-px bg-border",e),...t}));jm.displayName=cmdk.Command.Separator.displayName;var Wm=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(cmdk.Command.Item,{ref:r,className:i("relative flex cursor-default gap-2 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 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));Wm.displayName=cmdk.Command.Item.displayName;var Ym=({className:e,...t})=>jsxRuntime.jsx("span",{className:i("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Ym.displayName="CommandShortcut";var Um=___namespace.forwardRef(({className:e,showToggle:t=true,disabled:r,onFocus:a,onBlur:n,style:o,...s},l)=>{let[c,d]=___namespace.useState(false),[m,u]=___namespace.useState(false);return jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("input",{type:c?"text":"password",className:i("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",t&&"pr-10",e),ref:l,disabled:r,style:{...o,borderColor:m?"var(--color-foreground)":void 0},onFocus:p=>{u(true),a?.(p);},onBlur:p=>{u(false),n?.(p);},...s}),t&&jsxRuntime.jsx("button",{type:"button",className:"absolute right-0 top-0 h-10 w-10 px-3 flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",onClick:()=>d(!c),disabled:r,tabIndex:-1,"aria-label":c?"Hide password":"Show password",children:c?jsxRuntime.jsx(lucideReact.EyeOff,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.Eye,{className:"h-4 w-4"})})]})});Um.displayName="PasswordInput";var Xm=___namespace.forwardRef(({className:e,showButtons:t=true,step:r=1,min:a,max:n,value:o,defaultValue:s,onChange:l,disabled:c,...d},m)=>{let[u,p]=___namespace.useState(s),[f,b]=___namespace.useState(false),x=o!==void 0,g=x?o:u,v=N=>{N!==void 0&&(a!==void 0&&N<a&&(N=a),n!==void 0&&N>n&&(N=n)),x||p(N),l?.(N);},R=()=>{v((g??0)+r);},w=()=>{v((g??0)-r);},h=N=>{let E=N.target.value;if(E==="")v(void 0);else {let M=parseFloat(E);isNaN(M)||v(M);}},C=N=>{N.key==="ArrowUp"?(N.preventDefault(),R()):N.key==="ArrowDown"&&(N.preventDefault(),w());},y=a===void 0||(g??0)>a,T=n===void 0||(g??0)<n;return t?jsxRuntime.jsxs("div",{className:i("relative flex items-center rounded-md border transition-colors",f?"border-foreground":"border-input",c&&"opacity-50",e),children:[jsxRuntime.jsx("button",{type:"button",className:"h-10 w-10 shrink-0 flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",onClick:w,disabled:c||!y,tabIndex:-1,"aria-label":"Decrease value",children:jsxRuntime.jsx(lucideReact.Minus,{className:"h-4 w-4"})}),jsxRuntime.jsx("input",{type:"text",inputMode:"numeric",pattern:"[0-9]*",className:"min-w-0 flex-1 h-10 bg-background text-sm text-center focus:outline-none disabled:cursor-not-allowed",ref:m,value:g??"",onChange:h,onKeyDown:C,disabled:c,onFocus:()=>b(true),onBlur:()=>b(false),...d}),jsxRuntime.jsx("button",{type:"button",className:"h-10 w-10 shrink-0 flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",onClick:R,disabled:c||!T,tabIndex:-1,"aria-label":"Increase value",children:jsxRuntime.jsx(lucideReact.Plus,{className:"h-4 w-4"})})]}):jsxRuntime.jsx("input",{type:"text",inputMode:"numeric",pattern:"[0-9]*",className:i("flex h-10 w-full bg-background px-3 py-2 text-sm text-center border rounded-md placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",f?"border-foreground":"border-input",e),ref:m,value:g??"",onChange:h,onKeyDown:C,disabled:c,onFocus:()=>b(true),onBlur:()=>b(false),...d})});Xm.displayName="NumberInput";var Zm=___namespace.forwardRef(({value:e,defaultValue:t,onValueChange:r,placeholder:a="Pick a date",dateFormat:n="PPP",disabled:o=false,minDate:s,maxDate:l,className:c},d)=>{let[m,u]=___namespace.useState(false),[p,f]=___namespace.useState(t),b=e!==void 0,x=b?e:p,g=v=>{b||f(v),r?.(v),u(false);};return jsxRuntime.jsxs(et,{open:m,onOpenChange:u,children:[jsxRuntime.jsx(gt,{asChild:true,children:jsxRuntime.jsxs(Z,{ref:d,variant:"bordered",disabled:o,className:i("w-full justify-start text-left font-normal",!x&&"text-muted-foreground",c),children:[jsxRuntime.jsx(lucideReact.Calendar,{className:"mr-2 h-4 w-4"}),x?dateFns.format(x,n):a]})}),jsxRuntime.jsx(tt,{className:"w-auto p-0",align:"start",children:jsxRuntime.jsx(on,{mode:"single",selected:x,onSelect:g,disabled:v=>!!(s&&v<s||l&&v>l),initialFocus:true})})]})});Zm.displayName="DatePicker";var tp=classVarianceAuthority.cva("flex -space-x-2",{variants:{size:{sm:"-space-x-2",md:"-space-x-2.5",lg:"-space-x-3"}},defaultVariants:{size:"md"}}),Jm=classVarianceAuthority.cva("border-2 border-background ring-0 cursor-pointer transition-transform duration-200 hover:-translate-y-1",{variants:{size:{sm:"h-8 w-8 text-xs",md:"h-10 w-10 text-sm",lg:"h-12 w-12 text-base"}},defaultVariants:{size:"md"}}),rp=___namespace.forwardRef(({className:e,items:t,max:r=5,size:a,showTooltips:n=false,...o},s)=>{let l=t.slice(0,r),c=t.length-r,d=(u,p)=>{let f=jsxRuntime.jsxs(wa,{className:i(Jm({size:a})),children:[u.src&&jsxRuntime.jsx(rn,{src:u.src,alt:u.alt||""}),jsxRuntime.jsx(Ca,{className:"text-xs",children:u.fallback||u.alt?.charAt(0)?.toUpperCase()||"?"})]},p);return n&&u.alt?jsxRuntime.jsxs(_r,{children:[jsxRuntime.jsx(jr,{asChild:true,children:f}),jsxRuntime.jsx(Wr,{className:"bg-zinc-100 text-zinc-900 dark:bg-zinc-900 dark:text-zinc-100",children:u.alt})]},p):f},m=jsxRuntime.jsxs("div",{ref:s,className:i(tp({size:a,className:e})),...o,children:[l.map((u,p)=>d(u,p)),c>0&&jsxRuntime.jsx(wa,{className:i(Jm({size:a})),children:jsxRuntime.jsxs(Ca,{className:"bg-muted text-muted-foreground",children:["+",c]})})]});return n?jsxRuntime.jsx($r,{delayDuration:300,children:m}):m});rp.displayName="AvatarGroup";var ap=classVarianceAuthority.cva("flex gap-0.5",{variants:{size:{sm:"[&_svg]:h-4 [&_svg]:w-4",md:"[&_svg]:h-5 [&_svg]:w-5",lg:"[&_svg]:h-6 [&_svg]:w-6"}},defaultVariants:{size:"md"}}),np=___namespace.forwardRef(({className:e,value:t,defaultValue:r=0,onValueChange:a,max:n=5,size:o,icon:s="star",allowHalf:l=false,readOnly:c=false,disabled:d=false,filledColor:m,emptyColor:u,...p},f)=>{let[b,x]=___namespace.useState(r),[g,v]=___namespace.useState(null),R=t!==void 0,w=R?t:b,h=g!==null?g:w,C=L=>{c||d||(R||x(L),a?.(L));},y=(L,H=false)=>{let S=l&&H?L+.5:L+1;C(S);},T=(L,H)=>{if(c||d)return;let S=L.currentTarget.getBoundingClientRect(),D=l&&L.clientX<S.left+S.width/2;v(D?H+.5:H+1);},N=()=>{v(null);},E=s==="heart"?lucideReact.Heart:lucideReact.Star,M=L=>h>=L+1?"full":h>=L+.5?"half":"empty",P=m?{color:m,fill:m}:{},k=u?{color:u}:{};return jsxRuntime.jsx("div",{ref:f,className:i(ap({size:o,className:e}),d&&"opacity-50 cursor-not-allowed"),onMouseLeave:N,role:"radiogroup","aria-label":"Rating",...p,children:Array.from({length:n},(L,H)=>{let S=M(H);return jsxRuntime.jsxs("button",{type:"button",className:i("relative focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 rounded-sm",!c&&!d&&"cursor-pointer hover:scale-110 transition-transform"),onClick:D=>{let V=D.currentTarget.getBoundingClientRect(),z=l&&D.clientX<V.left+V.width/2;y(H,z);},onMouseMove:D=>T(D,H),disabled:d||c,"aria-label":`Rate ${H+1} out of ${n}`,role:"radio","aria-checked":w===H+1,children:[jsxRuntime.jsx(E,{className:i("text-muted-foreground/30",S!=="empty"&&"absolute inset-0"),style:S==="empty"?k:void 0}),S!=="empty"&&jsxRuntime.jsx(E,{className:i("text-yellow-500 fill-yellow-500",s==="heart"&&"text-red-500 fill-red-500",S==="half"&&"clip-path-half"),style:{...P,clipPath:S==="half"?"inset(0 50% 0 0)":void 0}})]},H)})})});np.displayName="Rating";var ip=classVarianceAuthority.cva("inline-flex items-center justify-center gap-1.5 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{solid:"border-transparent text-primary-foreground",outline:"border bg-transparent",ghost:"border-transparent bg-transparent",soft:"border-transparent",surface:"border-transparent bg-muted text-muted-foreground"},color:{primary:"",secondary:"",success:"",warning:"",danger:"",info:""},size:{sm:"h-6 px-2 text-xs",md:"h-7 px-2.5 text-sm",lg:"h-8 px-3 text-sm"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"},clickable:{true:"cursor-pointer",false:""}},compoundVariants:[{variant:"solid",color:"primary",className:"bg-primary hover:bg-primary/90"},{variant:"solid",color:"secondary",className:"bg-secondary text-secondary-foreground hover:bg-secondary/80"},{variant:"solid",color:"success",className:"bg-success hover:bg-success/90"},{variant:"solid",color:"warning",className:"bg-warning text-warning-foreground hover:bg-warning/90"},{variant:"solid",color:"danger",className:"bg-danger hover:bg-danger/90"},{variant:"solid",color:"info",className:"bg-info hover:bg-info/90"},{variant:"outline",color:"primary",className:"border-primary text-primary hover:bg-primary/10"},{variant:"outline",color:"secondary",className:"border-secondary text-secondary-foreground hover:bg-secondary/10"},{variant:"outline",color:"success",className:"border-success text-success hover:bg-success/10"},{variant:"outline",color:"warning",className:"border-warning text-warning hover:bg-warning/10"},{variant:"outline",color:"danger",className:"border-danger text-danger hover:bg-danger/10"},{variant:"outline",color:"info",className:"border-info text-info hover:bg-info/10"},{variant:"ghost",color:"primary",className:"text-primary hover:bg-primary/10"},{variant:"ghost",color:"secondary",className:"text-secondary-foreground hover:bg-secondary"},{variant:"ghost",color:"success",className:"text-success hover:bg-success/10"},{variant:"ghost",color:"warning",className:"text-warning hover:bg-warning/10"},{variant:"ghost",color:"danger",className:"text-danger hover:bg-danger/10"},{variant:"ghost",color:"info",className:"text-info hover:bg-info/10"},{variant:"soft",color:"primary",className:"bg-primary/15 text-primary hover:bg-primary/20"},{variant:"soft",color:"secondary",className:"bg-secondary text-secondary-foreground hover:bg-secondary/80"},{variant:"soft",color:"success",className:"bg-success/15 text-success hover:bg-success/20"},{variant:"soft",color:"warning",className:"bg-warning/15 text-warning hover:bg-warning/20"},{variant:"soft",color:"danger",className:"bg-danger/15 text-danger hover:bg-danger/20"},{variant:"soft",color:"info",className:"bg-info/15 text-info hover:bg-info/20"}],defaultVariants:{variant:"solid",color:"primary",size:"md",radius:"full",clickable:false}}),q0=classVarianceAuthority.cva("ml-1 rounded-full p-0.5 transition-colors hover:bg-black/10 dark:hover:bg-white/10",{variants:{size:{sm:"[&_svg]:size-3",md:"[&_svg]:size-3.5",lg:"[&_svg]:size-4"}},defaultVariants:{size:"md"}}),lp=___namespace.forwardRef(({className:e,variant:t,color:r,size:a,radius:n,clickable:o,startContent:s,endContent:l,closable:c,onClose:d,disabled:m,avatar:u,children:p,onClick:f,...b},x)=>{let g=o||!!f,v=R=>{R.stopPropagation(),d?.();};return jsxRuntime.jsxs("div",{ref:x,role:g?"button":void 0,tabIndex:g&&!m?0:void 0,"aria-disabled":m,onClick:m?void 0:f,onKeyDown:g&&!m?R=>{(R.key==="Enter"||R.key===" ")&&(R.preventDefault(),f?.(R));}:void 0,className:i(ip({variant:t,color:r,size:a,radius:n,clickable:g}),m&&"opacity-50 cursor-not-allowed",e),...b,children:[u&&jsxRuntime.jsx("span",{className:"-ml-1 [&>*]:size-5 [&>*]:rounded-full",children:u}),s&&jsxRuntime.jsx("span",{className:"shrink-0",children:s}),jsxRuntime.jsx("span",{className:"truncate",children:p}),l&&jsxRuntime.jsx("span",{className:"shrink-0",children:l}),c&&jsxRuntime.jsx("button",{type:"button","aria-label":"Remove",onClick:v,disabled:m,className:i(q0({size:a})),children:jsxRuntime.jsx(lucideReact.X,{})})]})});lp.displayName="Chip";var cp=_.createContext({direction:"horizontal"}),nw=({className:e,direction:t="horizontal",children:r,...a})=>jsxRuntime.jsx(cp.Provider,{value:{direction:t},children:jsxRuntime.jsx(reactResizablePanels.Group,{orientation:t,className:i("flex h-full w-full data-[orientation=vertical]:flex-col",e),...a,children:r})}),ow=reactResizablePanels.Panel,sw=({withHandle:e,className:t,...r})=>{let{direction:a}=_.useContext(cp),n=a==="vertical";return jsxRuntime.jsx(reactResizablePanels.Separator,{className:i("relative flex shrink-0 items-center justify-center bg-border outline-none",n?"h-px w-full after:absolute after:inset-x-0 after:top-1/2 after:h-1 after:-translate-y-1/2":"w-px after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2",t),...r,children:e&&jsxRuntime.jsx("div",{className:i("z-10 flex items-center justify-center rounded-sm border bg-border",n?"h-3 w-4 rotate-90":"h-4 w-3"),children:jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-2.5 w-2.5"})})})};var mp=classVarianceAuthority.cva("inline-flex items-center gap-1",{variants:{size:{sm:"[&>span]:h-1 [&>span]:w-1",md:"[&>span]:h-1.5 [&>span]:w-1.5",lg:"[&>span]:h-2 [&>span]:w-2",xl:"[&>span]:h-3 [&>span]:w-3"}},defaultVariants:{size:"md"}}),pp=___namespace.forwardRef(({className:e,size:t,count:r=3,...a},n)=>jsxRuntime.jsx("span",{ref:n,role:"status","aria-label":"Loading",className:i(mp({size:t,className:e})),...a,children:Array.from({length:r}).map((o,s)=>jsxRuntime.jsx("span",{className:"rounded-full bg-current animate-dots-bounce",style:{animationDelay:`${s*.16}s`}},s))}));pp.displayName="Dots";var bp=classVarianceAuthority.cva("relative inline-flex items-center justify-center",{variants:{size:{sm:"h-8 w-8",md:"h-10 w-10",lg:"h-14 w-14"},color:{default:"",success:"",warning:"",danger:""}},defaultVariants:{size:"md",color:"default"}}),cw={sm:{size:32,strokeWidth:3,fontSize:"text-[10px]"},md:{size:40,strokeWidth:4,fontSize:"text-xs"},lg:{size:56,strokeWidth:5,fontSize:"text-sm"}},fp={default:"#18181b",success:"#16a34a",warning:"#d97706",danger:"#dc2626"},vp=___namespace.forwardRef(({className:e,size:t="md",color:r="default",value:a,showValue:n=false,trackClassName:o,...s},l)=>{let c=a===void 0,d=Math.min(100,Math.max(0,a??0)),m=cw[t],u=(m.size-m.strokeWidth)/2,p=2*Math.PI*u,f=p-d/100*p,b=p*.3;return jsxRuntime.jsxs("div",{ref:l,className:i(bp({size:t,color:r}),e),role:"progressbar","aria-valuenow":c?void 0:d,"aria-valuemin":0,"aria-valuemax":100,...s,children:[jsxRuntime.jsxs("svg",{width:m.size,height:m.size,viewBox:`0 0 ${m.size} ${m.size}`,fill:"none",style:c?{animation:"circular-spin 0.8s linear infinite"}:void 0,children:[jsxRuntime.jsx("style",{children:`
44
44
  @keyframes circular-spin {
45
45
  0% { transform: rotate(0deg); }
46
46
  100% { transform: rotate(360deg); }
47
47
  }
48
- `}),jsxRuntime.jsx("circle",{className:i("stroke-muted",o),cx:m.size/2,cy:m.size/2,r:u,strokeWidth:m.strokeWidth,fill:"none"}),jsxRuntime.jsx("circle",{cx:m.size/2,cy:m.size/2,r:u,strokeWidth:m.strokeWidth,fill:"none",strokeLinecap:"round",stroke:pp[r]||pp.default,strokeDasharray:c?`${b} ${p-b}`:`${p} ${p}`,strokeDashoffset:c?0:f,style:{transformOrigin:"center",transform:"rotate(-90deg)",transition:c?void 0:"stroke-dashoffset 0.3s ease-in-out"}})]}),n&&!c&&jsxRuntime.jsxs("span",{className:i("absolute font-medium text-foreground",m.fontSize),children:[Math.round(d),"%"]})]})});bp.displayName="CircularProgress";var vp=___namespace.createContext(null),uw=()=>{let e=___namespace.useContext(vp);if(!e)throw new Error("OTP components must be used within InputOTP");return e},hp=classVarianceAuthority.cva("flex items-center gap-2 has-[:disabled]:opacity-50",{variants:{size:{sm:"[&_[data-otp-slot]]:h-8 [&_[data-otp-slot]]:w-8 [&_[data-otp-slot]]:text-xs",md:"[&_[data-otp-slot]]:h-10 [&_[data-otp-slot]]:w-10 [&_[data-otp-slot]]:text-sm",lg:"[&_[data-otp-slot]]:h-12 [&_[data-otp-slot]]:w-12 [&_[data-otp-slot]]:text-base"}},defaultVariants:{size:"md"}}),xp=___namespace.forwardRef(({className:e,containerClassName:t,maxLength:r,value:a,defaultValue:n="",onChange:o,onComplete:s,pattern:l,disabled:c=false,size:d,children:m,...u},p)=>{let[f,b]=___namespace.useState(n),[x,g]=___namespace.useState(0),[v,R]=___namespace.useState(false),w=___namespace.useRef(null),h=a!==void 0?a:f;___namespace.useImperativeHandle(p,()=>w.current),___namespace.useEffect(()=>{g(Math.min(h.length,r-1));},[h,r]),___namespace.useEffect(()=>{h.length===r&&s&&s(h);},[h,r,s]);let C=P=>{let k=P.target.value;if(l&&k){let L=new RegExp(l.replace("^","").replace("$","").replace("+",""));k=k.split("").filter(H=>L.test(H)).join("");}k=k.slice(0,r),a===void 0&&b(k),o?.(k);},y=P=>{P.key==="ArrowLeft"?g(k=>Math.max(0,k-1)):P.key==="ArrowRight"&&g(k=>Math.min(h.length,r-1,k+1));},T=()=>{w.current?.focus();},N=()=>{R(true),g(Math.min(h.length,r-1));},E=()=>{R(false);},M={value:h,activeIndex:v?x:-1,maxLength:r,disabled:c};return jsxRuntime.jsx(vp.Provider,{value:M,children:jsxRuntime.jsxs("div",{className:i(hp({size:d}),t),onClick:T,"data-otp-container":true,children:[jsxRuntime.jsx("input",{ref:w,type:"text",inputMode:"numeric",autoComplete:"one-time-code",value:h,onChange:C,onKeyDown:y,onFocus:N,onBlur:E,disabled:c,maxLength:r,className:i("absolute opacity-0 pointer-events-none w-0 h-0",e),...u}),m]})})});xp.displayName="InputOTP";var yp=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex items-center",e),...t}));yp.displayName="InputOTPGroup";var Rp=___namespace.forwardRef(({index:e,className:t,...r},a)=>{let{value:n,activeIndex:o,disabled:s}=uw(),l=n[e]||"",c=o===e,d=c&&n.length===e;return jsxRuntime.jsxs("div",{ref:a,"data-otp-slot":true,"data-active":c,"data-filled":!!l,className:i("relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm font-medium transition-all first:rounded-l-md first:border-l last:rounded-r-md",c&&"z-10 border-foreground",s&&"cursor-not-allowed opacity-50",t),...r,children:[l,d&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:jsxRuntime.jsx("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})});Rp.displayName="InputOTPSlot";var wp=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,role:"separator",className:i("text-muted-foreground",e),...t,children:jsxRuntime.jsx(lucideReact.Minus,{className:"h-4 w-4"})}));wp.displayName="InputOTPSeparator";var Mp=classVarianceAuthority.cva("inline-flex items-center gap-1 rounded-full text-xs font-medium transition-colors",{variants:{variant:{solid:"bg-primary text-primary-foreground",outline:"border border-input bg-transparent",ghost:"bg-transparent text-foreground",soft:"bg-primary/15 text-primary",surface:"bg-muted text-muted-foreground"},size:{sm:"h-5 px-2 text-xs",md:"h-6 px-2.5 text-xs",lg:"h-7 px-3 text-sm"}},defaultVariants:{variant:"soft",size:"md"}}),Tp=___namespace.forwardRef(({className:e,variant:t,size:r,value:a=[],onChange:n,placeholder:o="Add tag...",maxTags:s,minTagLength:l=1,maxTagLength:c=50,triggerKeys:d=["Enter",",","Tab"],allowDuplicates:m=false,disabled:u,readOnly:p,renderTag:f,...b},x)=>{let[g,v]=___namespace.useState(""),R=___namespace.useRef(null);___namespace.useImperativeHandle(x,()=>R.current);let w=M=>{let P=M.trim();if(P.length<l||P.length>c||s&&a.length>=s||!m&&a.some(L=>L.text.toLowerCase()===P.toLowerCase()))return;let k={id:crypto.randomUUID(),text:P};n?.([...a,k]),v("");},h=M=>{u||p||n?.(a.filter(P=>P.id!==M));},C=M=>{if(d.includes(M.key)){if(M.key==="Tab"&&!g)return;M.preventDefault(),w(g);}M.key==="Backspace"&&!g&&a.length>0&&h(a[a.length-1].id);},y=M=>{let P=M.target.value;if(P.includes(",")){P.split(",").forEach(L=>{L.trim()&&w(L);});return}v(P);},T=M=>{M.preventDefault(),M.clipboardData.getData("text").split(/[,\n\t]/).filter(Boolean).forEach(L=>{w(L);});},N=()=>{R.current?.focus();},E=s?a.length>=s:false;return jsxRuntime.jsxs("div",{className:i("flex min-h-10 w-full flex-wrap gap-1.5 rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2",u&&"cursor-not-allowed opacity-50",e),onClick:N,children:[a.map(M=>f?f(M,()=>h(M.id)):jsxRuntime.jsxs("span",{className:i(Mp({variant:t,size:r})),children:[M.text,!u&&!p&&jsxRuntime.jsx("button",{type:"button",onClick:P=>{P.stopPropagation(),h(M.id);},className:"ml-0.5 rounded-full p-0.5 hover:bg-black/10 dark:hover:bg-white/10","aria-label":`Remove ${M.text}`,children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3"})})]},M.id)),!E&&!p&&jsxRuntime.jsx("input",{ref:R,type:"text",value:g,onChange:y,onKeyDown:C,onPaste:T,placeholder:a.length===0?o:"",disabled:u,className:i("flex-1 bg-transparent outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed","min-w-[80px]"),...b})]})});Tp.displayName="TagInput";var kp=classVarianceAuthority.cva("flex flex-col items-center justify-center text-center",{variants:{size:{sm:"gap-2 py-6",md:"gap-3 py-10",lg:"gap-4 py-16"}},defaultVariants:{size:"md"}}),Ep=___namespace.forwardRef(({className:e,size:t,icon:r,title:a,description:n,action:o,children:s,...l},c)=>jsxRuntime.jsxs("div",{ref:c,className:i(kp({size:t,className:e})),...l,children:[r&&jsxRuntime.jsx("div",{className:"text-muted-foreground [&>svg]:h-10 [&>svg]:w-10",children:r}),a&&jsxRuntime.jsx("h3",{className:"text-lg font-semibold text-foreground",children:a}),n&&jsxRuntime.jsx("p",{className:"max-w-sm text-sm text-muted-foreground",children:n}),o&&jsxRuntime.jsx("div",{className:"mt-2",children:o}),s]}));Ep.displayName="EmptyState";var Dp=classVarianceAuthority.cva("rounded-lg border bg-card p-6 text-card-foreground shadow-sm",{variants:{variant:{solid:"bg-primary text-primary-foreground border-primary",outline:"bg-transparent",ghost:"border-transparent shadow-none",soft:"bg-primary/10 border-primary/20",surface:"bg-muted border-muted"}},defaultVariants:{variant:"outline"}}),Sp=___namespace.forwardRef(({className:e,variant:t,label:r,value:a,icon:n,trend:o,trendValue:s,description:l,...c},d)=>{let m=o==="up"?lucideReact.TrendingUp:o==="down"?lucideReact.TrendingDown:lucideReact.Minus,u=o==="up"?"text-green-500":o==="down"?"text-red-500":"text-muted-foreground";return jsxRuntime.jsxs("div",{ref:d,className:i(Dp({variant:t,className:e})),...c,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:r}),n&&jsxRuntime.jsx("div",{className:"text-muted-foreground [&>svg]:h-4 [&>svg]:w-4",children:n})]}),jsxRuntime.jsxs("div",{className:"mt-2 flex items-baseline gap-2",children:[jsxRuntime.jsx("p",{className:"text-2xl font-bold",children:a}),o&&s&&jsxRuntime.jsxs("span",{className:i("flex items-center gap-0.5 text-sm",u),children:[jsxRuntime.jsx(m,{className:"h-3 w-3"}),s]})]}),l&&jsxRuntime.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:l})]})});Sp.displayName="StatCard";var Ui=classVarianceAuthority.cva("flex flex-col",{variants:{variant:{default:"gap-2",bordered:"divide-y divide-border rounded-lg border",striped:"gap-2 [&>*:nth-child(odd)]:bg-muted/50",filled:"gap-2 bg-muted/30 rounded-lg p-2"},size:{sm:"[&>*]:py-2 [&>*]:px-3",md:"[&>*]:py-3 [&>*]:px-4",lg:"[&>*]:py-4 [&>*]:px-5"}},defaultVariants:{variant:"default",size:"md"}}),Vp=classVarianceAuthority.cva("flex items-center py-1.5 px-2 rounded-sm transition-colors",{variants:{size:{sm:"py-1 px-1.5 text-sm",md:"py-1.5 px-2 text-sm",lg:"py-2 px-3 text-base"},isSelected:{true:"bg-primary/10 text-primary",false:""},isDragging:{true:"opacity-50",false:""},isDisabled:{true:"opacity-50 cursor-not-allowed",false:""},isHoverable:{true:"hover:bg-muted/50 cursor-pointer",false:""}},defaultVariants:{size:"md",isSelected:false,isDragging:false,isDisabled:false,isHoverable:true}}),Ap=___namespace.createContext(null),ww=()=>{let e=___namespace.useContext(Ap);if(!e)throw new Error("TreeNode must be used within List with treeData");return e},Cw=({checked:e,indeterminate:t,disabled:r,onClick:a})=>jsxRuntime.jsx("button",{type:"button",role:"checkbox","aria-checked":t?"mixed":e,disabled:r,onClick:n=>{n.stopPropagation(),r||a(n);},className:i("h-4 w-4 shrink-0 rounded-sm border border-primary transition-colors","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",(e||t)&&"bg-primary text-primary-foreground",r&&"cursor-not-allowed opacity-50"),children:(e||t)&&jsxRuntime.jsx("span",{className:"flex items-center justify-center text-current",children:t?jsxRuntime.jsx(lucideReact.Minus,{className:"h-3 w-3"}):jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})})}),zp=({node:e,level:t})=>{let{expandedKeys:r,toggleExpand:a,selectedKeys:n,handleSelect:o,selectable:s,checkedKeys:l,halfCheckedKeys:c,handleCheck:d,checkable:m,draggable:u,draggedNode:p,setDraggedNode:f,dragOverKey:b,dragOverPosition:x,setDragOver:g,handleDrop:v,allowDrop:R,onDragStart:w,onDragOver:h,onDragEnter:C,onDragLeave:y,onDragEnd:T,showLine:N,showIcon:E,showHandle:M,dragIcon:P,icon:k,blockNode:L,disabled:H,size:S,getAllKeys:D}=ww(),V=e.children&&e.children.length>0,z=e.isLeaf??!V,G=r.has(e.key),I=n.has(e.key),F=l.has(e.key),O=c.has(e.key),ee=p?.key===e.key,ae=b===e.key,K=!!(H||e.disabled),B=s&&e.selectable!==false,W=m&&e.checkable!==false,A=___namespace.useMemo(()=>K?false:typeof u=="boolean"?u:typeof u=="function"?u(e):u&&typeof u=="object"?u.nodeDraggable?u.nodeDraggable(e):true:false,[u,e,K]),j=___namespace.useMemo(()=>P!==void 0?P:typeof u=="object"&&u.icon!==void 0?u.icon:jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-4 w-4"}),[P,u]),Y=___namespace.useMemo(()=>e.icon?e.icon:k?typeof k=="function"?k({expanded:G}):k:null,[e.icon,k,G]),Se=oe=>{if(!A)return;oe.stopPropagation(),oe.dataTransfer.effectAllowed="move";let Ht=oe.currentTarget,Xt=Ht.cloneNode(true),It=document.documentElement.classList.contains("dark"),$=It?"#0a0a0a":"#ffffff",te=It?"#27272a":"#e4e4e7";Xt.style.cssText=`
48
+ `}),jsxRuntime.jsx("circle",{className:i("stroke-muted",o),cx:m.size/2,cy:m.size/2,r:u,strokeWidth:m.strokeWidth,fill:"none"}),jsxRuntime.jsx("circle",{cx:m.size/2,cy:m.size/2,r:u,strokeWidth:m.strokeWidth,fill:"none",strokeLinecap:"round",stroke:fp[r]||fp.default,strokeDasharray:c?`${b} ${p-b}`:`${p} ${p}`,strokeDashoffset:c?0:f,style:{transformOrigin:"center",transform:"rotate(-90deg)",transition:c?void 0:"stroke-dashoffset 0.3s ease-in-out"}})]}),n&&!c&&jsxRuntime.jsxs("span",{className:i("absolute font-medium text-foreground",m.fontSize),children:[Math.round(d),"%"]})]})});vp.displayName="CircularProgress";var hp=___namespace.createContext(null),mw=()=>{let e=___namespace.useContext(hp);if(!e)throw new Error("OTP components must be used within InputOTP");return e},xp=classVarianceAuthority.cva("flex items-center gap-2 has-[:disabled]:opacity-50",{variants:{size:{sm:"[&_[data-otp-slot]]:h-8 [&_[data-otp-slot]]:w-8 [&_[data-otp-slot]]:text-xs",md:"[&_[data-otp-slot]]:h-10 [&_[data-otp-slot]]:w-10 [&_[data-otp-slot]]:text-sm",lg:"[&_[data-otp-slot]]:h-12 [&_[data-otp-slot]]:w-12 [&_[data-otp-slot]]:text-base"}},defaultVariants:{size:"md"}}),yp=___namespace.forwardRef(({className:e,containerClassName:t,maxLength:r,value:a,defaultValue:n="",onChange:o,onComplete:s,pattern:l,disabled:c=false,size:d,children:m,...u},p)=>{let[f,b]=___namespace.useState(n),[x,g]=___namespace.useState(0),[v,R]=___namespace.useState(false),w=___namespace.useRef(null),h=a!==void 0?a:f;___namespace.useImperativeHandle(p,()=>w.current),___namespace.useEffect(()=>{g(Math.min(h.length,r-1));},[h,r]),___namespace.useEffect(()=>{h.length===r&&s&&s(h);},[h,r,s]);let C=P=>{let k=P.target.value;if(l&&k){let L=new RegExp(l.replace("^","").replace("$","").replace("+",""));k=k.split("").filter(H=>L.test(H)).join("");}k=k.slice(0,r),a===void 0&&b(k),o?.(k);},y=P=>{P.key==="ArrowLeft"?g(k=>Math.max(0,k-1)):P.key==="ArrowRight"&&g(k=>Math.min(h.length,r-1,k+1));},T=()=>{w.current?.focus();},N=()=>{R(true),g(Math.min(h.length,r-1));},E=()=>{R(false);},M={value:h,activeIndex:v?x:-1,maxLength:r,disabled:c};return jsxRuntime.jsx(hp.Provider,{value:M,children:jsxRuntime.jsxs("div",{className:i(xp({size:d}),t),onClick:T,"data-otp-container":true,children:[jsxRuntime.jsx("input",{ref:w,type:"text",inputMode:"numeric",autoComplete:"one-time-code",value:h,onChange:C,onKeyDown:y,onFocus:N,onBlur:E,disabled:c,maxLength:r,className:i("absolute opacity-0 pointer-events-none w-0 h-0",e),...u}),m]})})});yp.displayName="InputOTP";var Rp=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex items-center",e),...t}));Rp.displayName="InputOTPGroup";var wp=___namespace.forwardRef(({index:e,className:t,...r},a)=>{let{value:n,activeIndex:o,disabled:s}=mw(),l=n[e]||"",c=o===e,d=c&&n.length===e;return jsxRuntime.jsxs("div",{ref:a,"data-otp-slot":true,"data-active":c,"data-filled":!!l,className:i("relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm font-medium transition-all first:rounded-l-md first:border-l last:rounded-r-md",c&&"z-10 border-foreground",s&&"cursor-not-allowed opacity-50",t),...r,children:[l,d&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:jsxRuntime.jsx("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})});wp.displayName="InputOTPSlot";var Cp=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,role:"separator",className:i("text-muted-foreground",e),...t,children:jsxRuntime.jsx(lucideReact.Minus,{className:"h-4 w-4"})}));Cp.displayName="InputOTPSeparator";var Tp=classVarianceAuthority.cva("inline-flex items-center gap-1 rounded-full text-xs font-medium transition-colors",{variants:{variant:{solid:"bg-primary text-primary-foreground",outline:"border border-input bg-transparent",ghost:"bg-transparent text-foreground",soft:"bg-primary/15 text-primary",surface:"bg-muted text-muted-foreground"},size:{sm:"h-5 px-2 text-xs",md:"h-6 px-2.5 text-xs",lg:"h-7 px-3 text-sm"}},defaultVariants:{variant:"soft",size:"md"}}),Pp=___namespace.forwardRef(({className:e,variant:t,size:r,value:a=[],onChange:n,placeholder:o="Add tag...",maxTags:s,minTagLength:l=1,maxTagLength:c=50,triggerKeys:d=["Enter",",","Tab"],allowDuplicates:m=false,disabled:u,readOnly:p,renderTag:f,...b},x)=>{let[g,v]=___namespace.useState(""),R=___namespace.useRef(null);___namespace.useImperativeHandle(x,()=>R.current);let w=M=>{let P=M.trim();if(P.length<l||P.length>c||s&&a.length>=s||!m&&a.some(L=>L.text.toLowerCase()===P.toLowerCase()))return;let k={id:crypto.randomUUID(),text:P};n?.([...a,k]),v("");},h=M=>{u||p||n?.(a.filter(P=>P.id!==M));},C=M=>{if(d.includes(M.key)){if(M.key==="Tab"&&!g)return;M.preventDefault(),w(g);}M.key==="Backspace"&&!g&&a.length>0&&h(a[a.length-1].id);},y=M=>{let P=M.target.value;if(P.includes(",")){P.split(",").forEach(L=>{L.trim()&&w(L);});return}v(P);},T=M=>{M.preventDefault(),M.clipboardData.getData("text").split(/[,\n\t]/).filter(Boolean).forEach(L=>{w(L);});},N=()=>{R.current?.focus();},E=s?a.length>=s:false;return jsxRuntime.jsxs("div",{className:i("flex min-h-10 w-full flex-wrap gap-1.5 rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2",u&&"cursor-not-allowed opacity-50",e),onClick:N,children:[a.map(M=>f?f(M,()=>h(M.id)):jsxRuntime.jsxs("span",{className:i(Tp({variant:t,size:r})),children:[M.text,!u&&!p&&jsxRuntime.jsx("button",{type:"button",onClick:P=>{P.stopPropagation(),h(M.id);},className:"ml-0.5 rounded-full p-0.5 hover:bg-black/10 dark:hover:bg-white/10","aria-label":`Remove ${M.text}`,children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3"})})]},M.id)),!E&&!p&&jsxRuntime.jsx("input",{ref:R,type:"text",value:g,onChange:y,onKeyDown:C,onPaste:T,placeholder:a.length===0?o:"",disabled:u,className:i("flex-1 bg-transparent outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed","min-w-[80px]"),...b})]})});Pp.displayName="TagInput";var Ep=classVarianceAuthority.cva("flex flex-col items-center justify-center text-center",{variants:{size:{sm:"gap-2 py-6",md:"gap-3 py-10",lg:"gap-4 py-16"}},defaultVariants:{size:"md"}}),Lp=___namespace.forwardRef(({className:e,size:t,icon:r,title:a,description:n,action:o,children:s,...l},c)=>jsxRuntime.jsxs("div",{ref:c,className:i(Ep({size:t,className:e})),...l,children:[r&&jsxRuntime.jsx("div",{className:"text-muted-foreground [&>svg]:h-10 [&>svg]:w-10",children:r}),a&&jsxRuntime.jsx("h3",{className:"text-lg font-semibold text-foreground",children:a}),n&&jsxRuntime.jsx("p",{className:"max-w-sm text-sm text-muted-foreground",children:n}),o&&jsxRuntime.jsx("div",{className:"mt-2",children:o}),s]}));Lp.displayName="EmptyState";var Sp=classVarianceAuthority.cva("rounded-lg border bg-card p-6 text-card-foreground shadow-sm",{variants:{variant:{solid:"bg-primary text-primary-foreground border-primary",outline:"bg-transparent",ghost:"border-transparent shadow-none",soft:"bg-primary/10 border-primary/20",surface:"bg-muted border-muted"}},defaultVariants:{variant:"outline"}}),Hp=___namespace.forwardRef(({className:e,variant:t,label:r,value:a,icon:n,trend:o,trendValue:s,description:l,...c},d)=>{let m=o==="up"?lucideReact.TrendingUp:o==="down"?lucideReact.TrendingDown:lucideReact.Minus,u=o==="up"?"text-green-500":o==="down"?"text-red-500":"text-muted-foreground";return jsxRuntime.jsxs("div",{ref:d,className:i(Sp({variant:t,className:e})),...c,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:r}),n&&jsxRuntime.jsx("div",{className:"text-muted-foreground [&>svg]:h-4 [&>svg]:w-4",children:n})]}),jsxRuntime.jsxs("div",{className:"mt-2 flex items-baseline gap-2",children:[jsxRuntime.jsx("p",{className:"text-2xl font-bold",children:a}),o&&s&&jsxRuntime.jsxs("span",{className:i("flex items-center gap-0.5 text-sm",u),children:[jsxRuntime.jsx(m,{className:"h-3 w-3"}),s]})]}),l&&jsxRuntime.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:l})]})});Hp.displayName="StatCard";var Xi=classVarianceAuthority.cva("flex flex-col",{variants:{variant:{default:"gap-2",bordered:"divide-y divide-border rounded-lg border",striped:"gap-2 [&>*:nth-child(odd)]:bg-muted/50",filled:"gap-2 bg-muted/30 rounded-lg p-2"},size:{sm:"[&>*]:py-2 [&>*]:px-3",md:"[&>*]:py-3 [&>*]:px-4",lg:"[&>*]:py-4 [&>*]:px-5"}},defaultVariants:{variant:"default",size:"md"}}),Ap=classVarianceAuthority.cva("flex items-center py-1.5 px-2 rounded-sm transition-colors",{variants:{size:{sm:"py-1 px-1.5 text-sm",md:"py-1.5 px-2 text-sm",lg:"py-2 px-3 text-base"},isSelected:{true:"bg-primary/10 text-primary",false:""},isDragging:{true:"opacity-50",false:""},isDisabled:{true:"opacity-50 cursor-not-allowed",false:""},isHoverable:{true:"hover:bg-muted/50 cursor-pointer",false:""}},defaultVariants:{size:"md",isSelected:false,isDragging:false,isDisabled:false,isHoverable:true}}),zp=___namespace.createContext(null),Cw=()=>{let e=___namespace.useContext(zp);if(!e)throw new Error("TreeNode must be used within List with treeData");return e},Nw=({checked:e,indeterminate:t,disabled:r,onClick:a})=>jsxRuntime.jsx("button",{type:"button",role:"checkbox","aria-checked":t?"mixed":e,disabled:r,onClick:n=>{n.stopPropagation(),r||a(n);},className:i("h-4 w-4 shrink-0 rounded-sm border border-primary transition-colors","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",(e||t)&&"bg-primary text-primary-foreground",r&&"cursor-not-allowed opacity-50"),children:(e||t)&&jsxRuntime.jsx("span",{className:"flex items-center justify-center text-current",children:t?jsxRuntime.jsx(lucideReact.Minus,{className:"h-3 w-3"}):jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})})}),Bp=({node:e,level:t})=>{let{expandedKeys:r,toggleExpand:a,selectedKeys:n,handleSelect:o,selectable:s,checkedKeys:l,halfCheckedKeys:c,handleCheck:d,checkable:m,draggable:u,draggedNode:p,setDraggedNode:f,dragOverKey:b,dragOverPosition:x,setDragOver:g,handleDrop:v,allowDrop:R,onDragStart:w,onDragOver:h,onDragEnter:C,onDragLeave:y,onDragEnd:T,showLine:N,showIcon:E,showHandle:M,dragIcon:P,icon:k,blockNode:L,disabled:H,size:S,getAllKeys:D}=Cw(),V=e.children&&e.children.length>0,z=e.isLeaf??!V,G=r.has(e.key),I=n.has(e.key),F=l.has(e.key),O=c.has(e.key),ee=p?.key===e.key,ae=b===e.key,K=!!(H||e.disabled),B=s&&e.selectable!==false,j=m&&e.checkable!==false,A=___namespace.useMemo(()=>K?false:typeof u=="boolean"?u:typeof u=="function"?u(e):u&&typeof u=="object"?u.nodeDraggable?u.nodeDraggable(e):true:false,[u,e,K]),W=___namespace.useMemo(()=>P!==void 0?P:typeof u=="object"&&u.icon!==void 0?u.icon:jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-4 w-4"}),[P,u]),Y=___namespace.useMemo(()=>e.icon?e.icon:k?typeof k=="function"?k({expanded:G}):k:null,[e.icon,k,G]),Se=oe=>{if(!A)return;oe.stopPropagation(),oe.dataTransfer.effectAllowed="move";let Ht=oe.currentTarget,Xt=Ht.cloneNode(true),It=document.documentElement.classList.contains("dark"),$=It?"#0a0a0a":"#ffffff",te=It?"#27272a":"#e4e4e7";Xt.style.cssText=`
49
49
  position: fixed;
50
50
  top: -9999px;
51
51
  left: -9999px;
@@ -57,7 +57,7 @@
57
57
  width: ${Ht.offsetWidth}px;
58
58
  opacity: 1;
59
59
  z-index: 9999;
60
- `,document.body.appendChild(Xt),oe.dataTransfer.setDragImage(Xt,20,15),setTimeout(()=>{document.body.removeChild(Xt);},0),f(e),w?.({event:oe,node:e});},pe=oe=>{if(oe.preventDefault(),oe.stopPropagation(),!p||p.key===e.key||K)return;let Ht=oe.currentTarget.getBoundingClientRect(),Xt=oe.clientY-Ht.top,It=Ht.height,$;Xt<It*.25?$=-1:Xt>It*.75?$=1:$=0,!(R&&!R({dropNode:e,dropPosition:$,dragNode:p}))&&(g(e.key,$),h?.({event:oe,node:e}));},Xa=oe=>{oe.preventDefault(),oe.stopPropagation(),!(!p||p.key===e.key)&&C?.({event:oe,node:e,expandedKeys:D()});},re=oe=>{oe.stopPropagation(),y?.({event:oe,node:e});},Ue=oe=>{oe.preventDefault(),oe.stopPropagation(),!(!p||p.key===e.key||K)&&(x!==null&&v(e,x),f(null),g(null,null));},Ut=oe=>{f(null),g(null,null),T?.({event:oe,node:e});},St=oe=>{K||B&&o(e.key,e,oe);},mr=oe=>{oe.stopPropagation(),!K&&!z&&a(e.key,e);},qa=___namespace.useMemo(()=>{if(!ae||x===null)return "";switch(x){case -1:return "before:absolute before:left-0 before:right-0 before:top-0 before:h-0.5 before:bg-foreground";case 1:return "after:absolute after:left-0 after:right-0 after:bottom-0 after:h-0.5 after:bg-foreground";case 0:return "ring-2 ring-foreground ring-inset";default:return ""}},[ae,x]);return jsxRuntime.jsxs("div",{className:"relative",children:[N&&t>0&&jsxRuntime.jsx("div",{className:"absolute border-l border-border",style:{left:`${(t-1)*24+12}px`,top:0,height:"50%"}}),jsxRuntime.jsxs("div",{role:"treeitem","aria-expanded":z?void 0:G,"aria-selected":B?I:void 0,"aria-disabled":K,draggable:A,onDragStart:Se,onDragOver:pe,onDragEnter:Xa,onDragLeave:re,onDrop:Ue,onDragEnd:Ut,onClick:St,className:i("relative",Vp({size:S,isSelected:I,isDragging:ee,isDisabled:K,isHoverable:B&&!K}),qa,L&&"flex-1"),style:{paddingLeft:`${t*24+8}px`},children:[A&&M&&j!==false&&jsxRuntime.jsx("div",{className:"flex-shrink-0 text-muted-foreground cursor-grab active:cursor-grabbing",children:j}),!z&&jsxRuntime.jsx("button",{type:"button",onClick:mr,className:"flex-shrink-0 p-0.5 rounded hover:bg-muted/80 transition-transform",tabIndex:-1,children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:i("h-4 w-4 transition-transform duration-200",G&&"rotate-90")})}),W&&jsxRuntime.jsx(Cw,{checked:F,indeterminate:O,disabled:K,onClick:oe=>d(e.key,e,oe)}),E&&Y&&jsxRuntime.jsx("div",{className:"flex-shrink-0 text-muted-foreground ml-1",children:Y}),jsxRuntime.jsx("div",{className:i("flex-1 min-w-0 truncate ml-1",L&&"flex-none"),children:e.title})]}),V&&G&&jsxRuntime.jsx("div",{role:"group",children:e.children.map(oe=>jsxRuntime.jsx(zp,{node:oe,level:t+1},oe.key))})]})},Nw=e=>{let t=[],r=a=>{for(let n of a)t.push(n.key),n.children&&r(n.children);};return r(e),t},Mw=e=>{let t=[],r=a=>{for(let n of a)t.push(n.key),n.children&&r(n.children);};return e.children&&r(e.children),t},Bp=(e,t)=>{if(!e.children)return false;for(let r of e.children)if(r.key===t||Bp(r,t))return true;return false},Tw=({className:e,variant:t,size:r,treeData:a,draggable:n=false,allowDrop:o,expandedKeys:s,defaultExpandedKeys:l=[],defaultExpandAll:c=false,onExpand:d,selectable:m=true,multiple:u=false,selectedKeys:p,defaultSelectedKeys:f=[],onSelect:b,checkable:x=false,checkStrictly:g=false,checkedKeys:v,defaultCheckedKeys:R=[],onCheck:w,showLine:h=false,showIcon:C=false,showHandle:y=true,dragIcon:T,icon:N,onDragStart:E,onDragEnter:M,onDragOver:P,onDragLeave:k,onDragEnd:L,onDrop:H,blockNode:S=false,disabled:D=false,forwardedRef:V,...z})=>{let G=___namespace.useCallback(()=>c?new Set(Nw(a)):new Set(l),[c,l,a]),[I,F]=___namespace.useState(G),O=s!==void 0,ee=O?new Set(s):I,ae=___namespace.useCallback((le,Ae)=>{let pt=new Set(ee),Ve=!pt.has(le);Ve?pt.add(le):pt.delete(le),O||F(pt),d?.(Array.from(pt),{expanded:Ve,node:Ae});},[ee,O,d]),[K,B]=___namespace.useState(new Set(f)),W=p!==void 0,A=W?new Set(p):K,j=___namespace.useCallback((le,Ae,pt)=>{let Ve=new Set(A),pr=!Ve.has(le);u?pr?Ve.add(le):Ve.delete(le):(Ve.clear(),pr&&Ve.add(le)),W||B(Ve);let Za=[],zn=wo=>{for(let Ja of wo)Ve.has(Ja.key)&&Za.push(Ja),Ja.children&&zn(Ja.children);};zn(a),b?.(Array.from(Ve),{selected:pr,selectedNodes:Za,node:Ae,event:pt});},[A,u,W,b,a]),[Y,Se]=___namespace.useState(new Set(R)),[pe,Xa]=___namespace.useState(new Set),re=v!==void 0,Ue=re?new Set(Array.isArray(v)?v:v.checked):Y,Ut=re&&!Array.isArray(v)?new Set(v.halfChecked):pe,St=___namespace.useCallback((le,Ae,pt)=>{let Ve=new Set(Ue),pr=new Set(Ut),Za=!Ve.has(le);if(Za?(Ve.add(le),pr.delete(le)):Ve.delete(le),!g&&Ae.children){let gi=Mw(Ae);for(let Kr of gi)Za?(Ve.add(Kr),pr.delete(Kr)):Ve.delete(Kr);}re||(Se(Ve),Xa(pr));let zn=[],wo=gi=>{for(let Kr of gi)Ve.has(Kr.key)&&zn.push(Kr),Kr.children&&wo(Kr.children);};wo(a);let Ja=g?{checked:Array.from(Ve),halfChecked:Array.from(pr)}:Array.from(Ve);w?.(Ja,{checked:Za,checkedNodes:zn,node:Ae,event:pt,halfCheckedKeys:Array.from(pr)});},[Ue,Ut,g,re,w,a]),[mr,qa]=___namespace.useState(null),[oe,Ht]=___namespace.useState(null),[Xt,It]=___namespace.useState(null),$=___namespace.useCallback((le,Ae)=>{Ht(le),It(Ae);},[]),te=___namespace.useCallback((le,Ae)=>{!mr||!H||Ae===0&&Bp(mr,le.key)||H({event:{},node:le,dragNode:mr,dropPosition:Ae,dropToGap:Ae!==0});},[mr,H]),Ke=___namespace.useCallback(()=>Array.from(ee),[ee]),Vt={expandedKeys:ee,toggleExpand:ae,selectedKeys:A,handleSelect:j,selectable:m,multiple:u,checkedKeys:Ue,halfCheckedKeys:Ut,handleCheck:St,checkable:x,checkStrictly:g,draggable:n,draggedNode:mr,setDraggedNode:qa,dragOverKey:oe,dragOverPosition:Xt,setDragOver:$,handleDrop:te,allowDrop:o,onDragStart:E,onDragEnter:M,onDragOver:P,onDragLeave:k,onDragEnd:L,showLine:h,showIcon:C,showHandle:y,dragIcon:T,icon:N,blockNode:S,disabled:D,size:r,treeData:a,getAllKeys:Ke},Ne=i("flex flex-col select-none",t==="bordered"&&"rounded-lg border",t==="filled"&&"bg-muted/30 rounded-lg p-2",e),yt=le=>{let Ae=le.relatedTarget,pt=le.currentTarget;(!Ae||!pt.contains(Ae))&&$(null,null);};return jsxRuntime.jsx(Ap.Provider,{value:Vt,children:jsxRuntime.jsx("div",{ref:V,role:"tree","aria-multiselectable":u||x,className:Ne,onDragLeave:yt,...z,children:a.map(le=>jsxRuntime.jsx(zp,{node:le,level:0},le.key))})})},Pw=({checked:e,disabled:t,onClick:r})=>jsxRuntime.jsx("button",{type:"button",role:"checkbox","aria-checked":e,disabled:t,onClick:a=>{a.stopPropagation(),t||r(a);},className:i("h-4 w-4 shrink-0 rounded-sm border border-primary transition-colors","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",e&&"bg-primary text-primary-foreground",t&&"cursor-not-allowed opacity-50"),children:e&&jsxRuntime.jsx("span",{className:"flex items-center justify-center text-current",children:jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})})});function kw({className:e,variant:t,size:r,items:a,renderItem:n,draggable:o=false,onReorder:s,showHandle:l=true,dragIcon:c,selectable:d=false,multiple:m=false,selectedKeys:u,defaultSelectedKeys:p=[],onSelect:f,checkable:b=false,checkedKeys:x,defaultCheckedKeys:g=[],onCheck:v,children:R,forwardedRef:w,...h}){let[C,y]=___namespace.useState(null),[T,N]=___namespace.useState(null),[E,M]=___namespace.useState(new Set(p)),P=u!==void 0,k=P?new Set(u):E,[L,H]=___namespace.useState(new Set(g)),S=x!==void 0,D=S?new Set(x):L,V=(B,W)=>{y(W),B.dataTransfer.effectAllowed="move",B.dataTransfer.setData("text/plain",String(W));},z=(B,W)=>{B.preventDefault(),!(C===null||C===W)&&N(W);},G=()=>{N(null);},I=(B,W)=>{if(B.preventDefault(),!a||C===null||C===W){y(null),N(null);return}let A=[...a],[j]=A.splice(C,1);A.splice(W,0,j),s?.(A),y(null),N(null);},F=()=>{y(null),N(null);},O=___namespace.useCallback((B,W)=>{if(!a)return;let A=new Set(k),j=!A.has(B.id);m?j?A.add(B.id):A.delete(B.id):(A.clear(),j&&A.add(B.id)),P||M(A);let Y=a.filter(Se=>A.has(Se.id));f?.(Array.from(A),{selected:j,selectedItems:Y,item:B,event:W});},[a,k,m,P,f]),ee=___namespace.useCallback((B,W)=>{if(!a)return;let A=new Set(D),j=!A.has(B.id);j?A.add(B.id):A.delete(B.id),S||H(A);let Y=a.filter(Se=>A.has(Se.id));v?.(Array.from(A),{checked:j,checkedItems:Y,item:B,event:W});},[a,D,S,v]);return (o||d||b)&&a&&n?jsxRuntime.jsx("div",{ref:w,role:"list",className:i(Ui({variant:t,size:r,className:e})),...h,children:a.map((B,W)=>{let A=k.has(B.id),j=D.has(B.id);return jsxRuntime.jsxs("div",{role:"listitem","aria-selected":d?A:void 0,draggable:o,onDragStart:o?pe=>V(pe,W):void 0,onDragOver:o?pe=>z(pe,W):void 0,onDragLeave:o?G:void 0,onDrop:o?pe=>I(pe,W):void 0,onDragEnd:o?F:void 0,onClick:d&&!b?pe=>O(B,pe):void 0,className:i("flex items-center gap-3 transition-all",o&&"cursor-move",d&&!b&&"cursor-pointer hover:bg-muted/50",b&&"cursor-pointer hover:bg-muted/50",C===W&&"opacity-50 scale-[1.02] z-10",T===W&&"border-primary border-dashed border rounded-md",A&&d&&!b&&"bg-primary/10"),children:[o&&l&&c!==false&&jsxRuntime.jsx("div",{className:"flex-shrink-0 text-muted-foreground cursor-grab active:cursor-grabbing",children:c??jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-5 w-5"})}),b&&jsxRuntime.jsx(Pw,{checked:j,onClick:pe=>ee(B,pe)}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:n(B,W)})]},B.id)})}):jsxRuntime.jsx("div",{ref:w,role:"list",className:i(Ui({variant:t,size:r,className:e})),...h,children:R})}function Ew(e,t){return "treeData"in e&&e.treeData?jsxRuntime.jsx(Tw,{...e,forwardedRef:t}):jsxRuntime.jsx(kw,{...e,forwardedRef:t})}var Lw=___namespace.forwardRef(Ew),Op=classVarianceAuthority.cva("flex items-center gap-3 transition-colors",{variants:{interactive:{true:"cursor-pointer hover:bg-muted/50",false:""}},defaultVariants:{interactive:false}}),Fp=___namespace.forwardRef(({className:e,interactive:t,leading:r,trailing:a,children:n,...o},s)=>jsxRuntime.jsxs("div",{ref:s,role:"listitem",className:i(Op({interactive:t,className:e})),...o,children:[r&&jsxRuntime.jsx("div",{className:"flex-shrink-0 text-muted-foreground",children:r}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:n}),a&&jsxRuntime.jsx("div",{className:"flex-shrink-0 whitespace-nowrap",children:a})]}));Fp.displayName="ListItem";var Kp=___namespace.forwardRef(({className:e,primary:t,secondary:r,children:a,...n},o)=>jsxRuntime.jsxs("div",{ref:o,className:i("min-w-0",e),...n,children:[t&&jsxRuntime.jsx("p",{className:"text-sm font-medium leading-none truncate",children:t}),r&&jsxRuntime.jsx("p",{className:"mt-1 text-sm text-muted-foreground truncate",children:r}),a]}));Kp.displayName="ListItemText";var $p=classVarianceAuthority.cva("flex flex-col",{variants:{position:{left:"",right:"",alternate:""}},defaultVariants:{position:"left"}}),_p=___namespace.forwardRef(({className:e,position:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,"data-position":t,className:i($p({position:t,className:e})),...r}));_p.displayName="Timeline";var Wp=classVarianceAuthority.cva("relative flex gap-4 pb-8 last:pb-0",{variants:{variant:{default:"",success:"[&_[data-timeline-dot]]:bg-green-500 [&_[data-timeline-dot]]:border-green-500",warning:"[&_[data-timeline-dot]]:bg-yellow-500 [&_[data-timeline-dot]]:border-yellow-500",error:"[&_[data-timeline-dot]]:bg-red-500 [&_[data-timeline-dot]]:border-red-500",info:"[&_[data-timeline-dot]]:bg-blue-500 [&_[data-timeline-dot]]:border-blue-500"}},defaultVariants:{variant:"default"}}),jp=___namespace.forwardRef(({className:e,variant:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i(Wp({variant:t,className:e})),...r}));jp.displayName="TimelineItem";var Yp=___namespace.forwardRef(({className:e,dot:t,showConnector:r=true,...a},n)=>jsxRuntime.jsxs("div",{ref:n,className:i("flex flex-col items-center",e),...a,children:[jsxRuntime.jsx("div",{"data-timeline-dot":true,className:"flex h-3 w-3 items-center justify-center rounded-full border-2 border-primary bg-primary",children:t}),r&&jsxRuntime.jsx("div",{className:"w-0.5 flex-1 bg-border"})]}));Yp.displayName="TimelineSeparator";var Up=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex-1 pt-0.5",e),...t}));Up.displayName="TimelineContent";var Xp=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex-1 text-sm text-muted-foreground pt-0.5",e),...t}));Xp.displayName="TimelineOpposite";var Zp=classVarianceAuthority.cva("inline-flex items-center rounded-lg bg-muted p-1 text-muted-foreground",{variants:{size:{sm:"h-8",md:"h-10",lg:"h-12"},fullWidth:{true:"w-full",false:""}},defaultVariants:{size:"md",fullWidth:false}}),Jp=classVarianceAuthority.cva("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{size:{sm:"h-6 text-xs px-2.5",md:"h-8 text-sm px-3",lg:"h-10 text-base px-4"},selected:{true:"bg-background text-foreground shadow-sm",false:""}},defaultVariants:{size:"md",selected:false}}),Qp=___namespace.createContext({}),ef=___namespace.forwardRef(({className:e,size:t="md",fullWidth:r,children:a,value:n,defaultValue:o,onValueChange:s,disabled:l,...c},d)=>{let[m,u]=___namespace.useState(o),p=n!==void 0?n:m,f=___namespace.useCallback(b=>{n===void 0&&u(b),s?.(b);},[n,s]);return jsxRuntime.jsx(Qp.Provider,{value:{size:t??"md",value:p,onValueChange:f,disabled:l},children:jsxRuntime.jsx("div",{ref:d,role:"group",className:i(Zp({size:t,fullWidth:r,className:e})),...c,children:a})})});ef.displayName="SegmentedControl";var tf=___namespace.forwardRef(({className:e,children:t,value:r,disabled:a,...n},o)=>{let s=___namespace.useContext(Qp),l=s.value===r,c=a||s.disabled;return jsxRuntime.jsx("button",{ref:o,type:"button",role:"radio","aria-checked":l,"data-state":l?"on":"off",disabled:c,onClick:()=>{c||s.onValueChange?.(r);},className:i(Jp({size:s.size,selected:l}),"flex-1",e),...n,children:t})});tf.displayName="SegmentedControlItem";var rf=classVarianceAuthority.cva("relative flex flex-col items-center justify-center rounded-lg border-2 border-dashed transition-colors",{variants:{variant:{default:"border-input bg-background hover:bg-accent/50",active:"border-primary bg-primary/5",error:"border-danger bg-danger/5"},size:{sm:"p-4 min-h-[120px]",md:"p-6 min-h-[160px]",lg:"p-8 min-h-[200px]"}},defaultVariants:{variant:"default",size:"md"}}),af=e=>{let t=e.type;return t.startsWith("image/")?lucideReact.Image:t.startsWith("video/")?lucideReact.FileVideo:t.startsWith("audio/")?lucideReact.FileAudio:t.includes("pdf")||t.includes("document")?lucideReact.FileText:t.includes("zip")||t.includes("rar")||t.includes("archive")?lucideReact.FileArchive:lucideReact.File},os=e=>{if(e===0)return "0 Bytes";let t=1024,r=["Bytes","KB","MB","GB"],a=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/Math.pow(t,a)).toFixed(2))+" "+r[a]},nf=(e,t,r)=>{let a=[];return t&&e.size>t&&a.push({code:"file-too-large",message:`File is larger than ${os(t)}`}),r&&r.length>0&&(r.some(o=>{if(o.startsWith("."))return e.name.toLowerCase().endsWith(o.toLowerCase());if(o.endsWith("/*")){let s=o.slice(0,-2);return e.type.startsWith(s)}return e.type===o})||a.push({code:"file-invalid-type",message:`File type not accepted. Accepted: ${r.join(", ")}`})),a},of=___namespace.forwardRef(({className:e,variant:t,size:r,onFilesChange:a,onFilesRejected:n,onFileRemove:o,files:s=[],showFileList:l=true,children:c,maxSize:d=10*1024*1024,accept:m,multiple:u=true,disabled:p,...f},b)=>{let[x,g]=___namespace.useState(false),[v,R]=___namespace.useState(false),[w,h]=___namespace.useState([]),C=___namespace.useRef(null),y=___namespace.useCallback(D=>{if(!D||D.length===0)return;let V=Array.from(D),z=[],G=[];(u?V:[V[0]]).forEach(F=>{let O=nf(F,d,m);O.length>0?G.push({file:F,errors:O}):z.push(F);}),h(G),z.length>0&&a?.(z),G.length>0&&n?.(G);},[d,m,u,a,n]),T=___namespace.useCallback(D=>{if(D.preventDefault(),D.stopPropagation(),!p&&(g(true),D.dataTransfer.items)){let z=Array.from(D.dataTransfer.items).some(G=>{if(G.kind!=="file")return true;if(m&&m.length>0){let I=G.type;return !m.some(F=>F.endsWith("/*")?I.startsWith(F.slice(0,-2)):I===F)}return false});R(z);}},[p,m]),N=___namespace.useCallback(D=>{D.preventDefault(),D.stopPropagation(),!p&&(D.dataTransfer.dropEffect="copy");},[p]),E=___namespace.useCallback(D=>{D.preventDefault(),D.stopPropagation();let V=D.currentTarget.getBoundingClientRect(),z=D.clientX,G=D.clientY;(z<V.left||z>V.right||G<V.top||G>V.bottom)&&(g(false),R(false));},[]),M=___namespace.useCallback(D=>{D.preventDefault(),D.stopPropagation(),g(false),R(false),!p&&y(D.dataTransfer.files);},[p,y]),P=___namespace.useCallback(()=>{p||C.current?.click();},[p]),k=___namespace.useCallback(D=>{y(D.target.files),D.target.value="";},[y]),L=___namespace.useCallback(D=>{p||(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),C.current?.click());},[p]),H=v?"error":x?"active":t,S=m?.join(",");return jsxRuntime.jsxs("div",{ref:b,className:i("space-y-4",e),...f,children:[jsxRuntime.jsxs("div",{role:"button",tabIndex:p?-1:0,onDragEnter:T,onDragOver:N,onDragLeave:E,onDrop:M,onClick:P,onKeyDown:L,className:i(rf({variant:H,size:r}),p&&"opacity-50 cursor-not-allowed",!p&&"cursor-pointer focus:outline-none"),"aria-disabled":p,children:[jsxRuntime.jsx("input",{ref:C,type:"file",accept:S,multiple:u,disabled:p,onChange:k,className:"sr-only",tabIndex:-1}),c||jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[jsxRuntime.jsx("div",{className:"rounded-full bg-muted p-3",children:jsxRuntime.jsx(lucideReact.Upload,{className:"h-6 w-6 text-muted-foreground"})}),jsxRuntime.jsxs("div",{className:"space-y-1",children:[jsxRuntime.jsx("p",{className:"text-sm font-medium",children:x?"Drop files here":"Drop files or click to upload"}),jsxRuntime.jsxs("p",{className:"text-xs text-muted-foreground",children:[d&&`Max ${os(d)}`,m&&m.length>0&&` \u2022 ${m.join(", ")}`]})]})]})]}),w.length>0&&jsxRuntime.jsx("div",{className:"rounded-md bg-danger/10 p-3 text-sm text-danger",children:w.map(({file:D,errors:V})=>jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("span",{className:"font-medium",children:D.name}),":"," ",V.map(z=>z.message).join(", ")]},D.name))}),l&&s.length>0&&jsxRuntime.jsx("div",{className:"space-y-2",children:s.map(D=>{let V=af(D.file);return jsxRuntime.jsxs("div",{className:i("flex items-center gap-3 rounded-lg border p-3",D.error&&"border-danger bg-danger/5"),children:[jsxRuntime.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-muted",children:jsxRuntime.jsx(V,{className:"h-5 w-5 text-muted-foreground"})}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("p",{className:"truncate text-sm font-medium",children:D.file.name}),jsxRuntime.jsxs("p",{className:"text-xs text-muted-foreground",children:[os(D.file.size),D.error&&jsxRuntime.jsx("span",{className:"ml-2 text-danger",children:D.error})]}),D.progress!==void 0&&D.progress<100&&jsxRuntime.jsx(Xo,{value:D.progress,className:"mt-2 h-1"})]}),jsxRuntime.jsxs(Z,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0 text-muted-foreground hover:text-foreground",onClick:z=>{z.stopPropagation(),o?.(D.file);},children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Remove"})]})]},D.id)})})]})});of.displayName="FileUpload";var Kw=`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cg fill='%23ccc'%3E%3Crect width='4' height='4'/%3E%3Crect x='4' y='4' width='4' height='4'/%3E%3C/g%3E%3C/svg%3E")`,lf=classVarianceAuthority.cva("relative rounded-md border border-input shadow-sm transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{xs:"h-4 w-4",sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10",xl:"h-12 w-12"},shape:{square:"rounded-md",circle:"rounded-full"},interactive:{true:"cursor-pointer hover:scale-110 active:scale-105",false:"cursor-default"}},defaultVariants:{size:"md",shape:"square",interactive:false}}),Xn=___namespace.forwardRef(({color:e,isSelected:t,showTransparency:r=true,onSelect:a,size:n,shape:o,interactive:s,className:l,onClick:c,disabled:d,...m},u)=>jsxRuntime.jsx("button",{ref:u,type:"button",disabled:d,onClick:b=>{c?.(b),a?.(e);},className:i(lf({size:n,shape:o,interactive:s??(!!a||!!c)}),t&&"ring-2 ring-ring ring-offset-2",l),style:{backgroundImage:r?Kw:void 0,backgroundSize:r?"8px 8px":void 0},"aria-label":`Color ${e}`,"aria-pressed":t,...m,children:jsxRuntime.jsx("span",{className:"absolute inset-0 rounded-[inherit]",style:{backgroundColor:e}})}));Xn.displayName="ColorSwatch";var cf=classVarianceAuthority.cva("",{variants:{layout:{grid:"grid gap-2",stack:"flex flex-wrap gap-2"}},defaultVariants:{layout:"stack"}}),df=___namespace.forwardRef(({value:e,defaultValue:t,onChange:r,layout:a,columns:n=6,colors:o,swatchSize:s="md",swatchShape:l="square",disabled:c,className:d,style:m,...u},p)=>{let[f,b]=___namespace.useState(t),x=e??f,g=___namespace.useCallback(R=>{c||(e===void 0&&b(R),r?.(R));},[e,r,c]),v=R=>R.toLowerCase();return jsxRuntime.jsx("div",{ref:p,role:"listbox","aria-label":"Color options",className:i(cf({layout:a}),d),style:{...a==="grid"?{gridTemplateColumns:`repeat(${n}, 1fr)`}:{},...m},...u,children:o.map(R=>{let w=x?v(x)===v(R):false;return jsxRuntime.jsx(Xn,{role:"option",color:R,size:s,shape:l,isSelected:w,onSelect:g,disabled:c,"aria-selected":w},R)})})});df.displayName="ColorSwatchPicker";var _w=["#000000","#ffffff","#ef4444","#f97316","#eab308","#22c55e","#06b6d4","#3b82f6","#8b5cf6","#ec4899"],uf={sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10"},mf=___namespace.forwardRef(({value:e,defaultValue:t="#3b82f6",onChange:r,disabled:a,presets:n=_w,showInput:o=true,size:s="md",className:l,variant:c="full"},d)=>{let[m,u]=___namespace.useState(e??t),p=___namespace.useId();___namespace.useEffect(()=>{e!==void 0&&u(e);},[e]);let f=g=>{u(g),r?.(g);},b=g=>{u(g),r?.(g);},x=g=>{let v=g.target.value.toUpperCase();u(v),r?.(v);};return c==="simple"?jsxRuntime.jsxs("label",{className:i("relative rounded-md border border-input shadow-sm transition-colors cursor-pointer hover:border-foreground focus-within:border-foreground overflow-hidden",a&&"opacity-50 cursor-not-allowed",uf[s],l),children:[jsxRuntime.jsx("input",{type:"color",value:m,onChange:x,disabled:a,className:"absolute inset-0 h-full w-full cursor-pointer opacity-0 disabled:cursor-not-allowed",id:p}),jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundColor:m}})]}):jsxRuntime.jsxs(et,{children:[jsxRuntime.jsx(gt,{asChild:true,children:jsxRuntime.jsx("button",{ref:d,disabled:a,className:i("rounded-md border border-input shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",uf[s],l),style:{backgroundColor:m},"aria-label":`Color picker, current color: ${m}`})}),jsxRuntime.jsx(tt,{className:"w-auto p-3",align:"start",children:jsxRuntime.jsxs("div",{className:"space-y-3",children:[jsxRuntime.jsx(reactColorful.HexColorPicker,{color:m,onChange:f,className:"!w-[200px]"}),o&&jsxRuntime.jsxs("div",{className:"space-y-1.5",children:[jsxRuntime.jsx(Ra,{htmlFor:"color-input",className:"text-xs",children:"Hex Color"}),jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsx("div",{className:"h-9 w-9 shrink-0 rounded-md border",style:{backgroundColor:m}}),jsxRuntime.jsx(reactColorful.HexColorInput,{id:"color-input",color:m,onChange:f,prefixed:true,className:"flex h-9 w-full rounded-md border border-input bg-background px-3 py-2 font-mono text-sm uppercase ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"})]})]}),n.length>0&&jsxRuntime.jsxs("div",{className:"space-y-1.5",children:[jsxRuntime.jsx(Ra,{className:"text-xs",children:"Presets"}),jsxRuntime.jsx("div",{className:"flex flex-wrap gap-1.5",children:n.map(g=>jsxRuntime.jsx(Xn,{color:g,size:"sm",isSelected:m.toLowerCase()===g.toLowerCase(),onSelect:b},g))})]})]})})]})});mf.displayName="ColorPicker";var pf=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),Zi=e=>String(e).padStart(2,"0"),Xw=e=>{let[t,r]=e.split(":").map(Number);return {hours:t||0,minutes:r||0}},qw=(e,t)=>`${Zi(e)}:${Zi(t)}`,ff=___namespace.forwardRef(({className:e,size:t,value:r,onChange:a,use24Hour:n=true,minuteStep:o=1,showPicker:s=true,minTime:l,maxTime:c,disabled:d,...m},u)=>{let[p,f]=___namespace.useState(r??""),[b,x]=___namespace.useState(false);___namespace.useEffect(()=>{r!==void 0&&f(r);},[r]);let{hours:g,minutes:v}=Xw(p||"00:00"),R=E=>{let M=E.target.value;f(M),/^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/.test(M)&&a?.(M);},w=(E,M)=>{let P=Math.max(0,Math.min(23,E)),k=Math.max(0,Math.min(59,M)),L=qw(P,k);f(L),a?.(L);},h=()=>w(g+1,v),C=()=>w(g-1,v),y=()=>w(g,v+o),T=()=>w(g,v-o),N=({value:E,onIncrement:M,onDecrement:P})=>jsxRuntime.jsxs("div",{className:"flex flex-col items-center",children:[jsxRuntime.jsx(Z,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:M,disabled:d,children:jsxRuntime.jsx(lucideReact.ChevronUp,{className:"h-4 w-4"})}),jsxRuntime.jsx("div",{className:"flex h-10 w-12 items-center justify-center rounded-md bg-muted text-lg font-semibold",children:Zi(E)}),jsxRuntime.jsx(Z,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:P,disabled:d,children:jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"})})]});return jsxRuntime.jsxs("div",{className:"relative flex items-center",children:[jsxRuntime.jsx("input",{ref:u,type:"time",value:p,onChange:R,disabled:d,className:i(pf({size:t}),s&&"pr-10","[&::-webkit-calendar-picker-indicator]:hidden",e),...m}),s&&jsxRuntime.jsxs(et,{open:b,onOpenChange:x,children:[jsxRuntime.jsx(gt,{asChild:true,children:jsxRuntime.jsxs(Z,{type:"button",variant:"ghost",size:"sm",className:"absolute right-1 h-7 w-7 p-0",disabled:d,children:[jsxRuntime.jsx(lucideReact.Clock,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Pick time"})]})}),jsxRuntime.jsxs(tt,{className:"w-auto p-4",align:"end",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(N,{value:g,onIncrement:h,onDecrement:C,max:23}),jsxRuntime.jsx("div",{className:"text-2xl font-bold text-muted-foreground",children:":"}),jsxRuntime.jsx(N,{value:v,onIncrement:y,onDecrement:T,max:59})]}),jsxRuntime.jsxs("div",{className:"mt-4 flex justify-end gap-2",children:[jsxRuntime.jsx(Z,{variant:"bordered",size:"sm",onClick:()=>{let E=new Date;w(E.getHours(),E.getMinutes());},children:"Now"}),jsxRuntime.jsx(Z,{size:"sm",onClick:()=>x(false),children:"Done"})]})]})]})]})});ff.displayName="TimeInput";var gf=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),Jw=(e,t)=>{try{return new Intl.NumberFormat(t,{style:"currency",currency:e,currencyDisplay:"narrowSymbol"}).formatToParts(0).find(o=>o.type==="currency")?.value??e}catch{return e}},Ji=(e,t,r,a)=>{let n=e.toFixed(t),[o,s]=n.split("."),l=o.replace(/\B(?=(\d{3})+(?!\d))/g,r);return s?`${l}${a}${s}`:l},bf=(e,t,r)=>{if(!e)return;let a=e.replace(new RegExp(`\\${t}`,"g"),"");a=a.replace(r,"."),a=a.replace(/[^0-9.-]/g,"");let n=parseFloat(a);return isNaN(n)?void 0:n},vf=___namespace.forwardRef(({className:e,size:t,value:r,defaultValue:a,onChange:n,currency:o="USD",locale:s="en-US",decimals:l=2,min:c,max:d,showCurrency:m=true,currencyPosition:u="prefix",currencySymbol:p,thousandSeparator:f=",",decimalSeparator:b=".",disabled:x,placeholder:g,...v},R)=>{let[w,h]=___namespace.useState(a),[C,y]=___namespace.useState(""),[T,N]=___namespace.useState(false),E=r!==void 0?r:w,M=p??Jw(o,s);___namespace.useEffect(()=>{!T&&E!==void 0&&y(Ji(E,l,f,b));},[E,l,f,b,T]);let P=D=>{let V=D.target.value;if(!V){y(""),r===void 0&&h(void 0),n?.(void 0);return}if(!new RegExp(`^[0-9${f}${b}.-]*$`).test(V))return;y(V);let G=bf(V,f,b);if(G!==void 0){let I=G;c!==void 0&&G<c&&(I=c),d!==void 0&&G>d&&(I=d),r===void 0&&h(I),n?.(I);}},k=()=>{N(true),E!==void 0&&y(E.toString().replace(".",b));},L=()=>{N(false),y(E!==void 0?Ji(E,l,f,b):"");},H=m&&u==="prefix"&&jsxRuntime.jsx("span",{className:"flex items-center text-muted-foreground pr-1",children:M}),S=m&&u==="suffix"&&jsxRuntime.jsx("span",{className:"flex items-center text-muted-foreground pl-1",children:M});return jsxRuntime.jsxs("div",{className:"relative flex items-center",children:[H&&jsxRuntime.jsx("div",{className:"absolute left-3 pointer-events-none",children:H}),jsxRuntime.jsx("input",{ref:R,type:"text",inputMode:"decimal",value:C,onChange:P,onFocus:k,onBlur:L,disabled:x,placeholder:g??`0${b}${"0".repeat(l)}`,className:i(gf({size:t}),H&&"pl-8",S&&"pr-8","text-right",e),style:{borderColor:T?"var(--color-foreground)":void 0},...v}),S&&jsxRuntime.jsx("div",{className:"absolute right-3 pointer-events-none",children:S})]})});vf.displayName="CurrencyInput";var hf=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50 font-mono",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),Qi={creditCard:{mask:"#### #### #### ####"},creditCardAmex:{mask:"#### ###### #####"},cvv:{mask:"###"},expiry:{mask:"##/##"},date:{mask:"##/##/####"},dateISO:{mask:"####-##-##"},time:{mask:"##:##"},ip:{mask:"###.###.###.###"},mac:{mask:"AA:AA:AA:AA:AA:AA"},id11:{mask:"###########"},id9:{mask:"#########"},id10:{mask:"##########"},postal5:{mask:"#####"},postal9:{mask:"#####-####"}},tC=(e,t)=>{switch(t){case "#":return /\d/.test(e);case "A":return /[a-zA-Z]/.test(e);case "*":return /[a-zA-Z0-9]/.test(e);default:return e===t}},ra=e=>["#","A","*"].includes(e),is=(e,t,r)=>{let a="",n=0;for(let o=0;o<t.length&&n<=e.length;o++){let s=t[o];if(ra(s)){if(n<e.length){let l=e[n];tC(l,s)?(a+=l,n++):(n++,o--);}}else (n<e.length||r)&&(a+=s);}return a},el=(e,t)=>{let r="";for(let a=0;a<e.length&&a<t.length;a++){let n=t[a];ra(n)&&(r+=e[a]);}return r},xf=(e,t)=>e.split("").map(r=>ra(r)?t:r).join(""),rC=(e,t,r)=>{let a=0;for(let l=0;l<r&&l<e.length&&l<t.length;l++)ra(t[l])&&a++;let o=0,s=0;for(let l=0;l<t.length&&s<a;l++)o++,ra(t[l])&&s++;for(;o<t.length&&!ra(t[o]);)o++;return Math.min(o,e.length)},yf=___namespace.forwardRef(({className:e,size:t,value:r,defaultValue:a="",onChange:n,mask:o,maskPlaceholder:s="_",showMaskPlaceholder:l=false,includeMaskChars:c=false,disabled:d,placeholder:m,...u},p)=>{let f=typeof o=="string"&&o in Qi?Qi[o].mask:o,[b,x]=___namespace.useState(a),[g,v]=___namespace.useState(""),[R,w]=___namespace.useState(false),h=___namespace.useRef(null),C=r!==void 0?r:b;___namespace.useImperativeHandle(p,()=>h.current),___namespace.useEffect(()=>{let E=is(C,f,true);v(E);},[C,f]);let y=E=>{let M=E.target.value,P=E.target.selectionStart??0,k=M.replace(/[^\w]/g,""),L=is(k,f,true),H=el(L,f);v(L),r===void 0&&x(c?L:H),n?.(H,L),requestAnimationFrame(()=>{if(h.current){let S=rC(L,f,P);h.current.setSelectionRange(S,S);}});},T=E=>{if(["ArrowLeft","ArrowRight","Home","End","Tab"].includes(E.key)||E.ctrlKey||E.metaKey)return;let M=h.current;if(!M)return;let P=M.selectionStart??0;if(E.key==="Backspace"&&P>0){let k=P-1;for(;k>0&&!ra(f[k]);)k--;let L=el(g,f),H=0;for(let V=0;V<k&&V<f.length;V++)ra(f[V])&&H++;let S=L.slice(0,Math.max(0,H-1))+L.slice(H),D=is(S,f,true);v(D),r===void 0&&x(c?D:S),n?.(S,D),E.preventDefault(),requestAnimationFrame(()=>{h.current&&h.current.setSelectionRange(k,k);});}},N=l?xf(f,s):m;return jsxRuntime.jsx("input",{ref:h,type:"text",value:g,onChange:y,onKeyDown:T,onFocus:()=>w(true),onBlur:()=>w(false),disabled:d,placeholder:N,className:i(hf({size:t}),e),style:{borderColor:R?"var(--color-foreground)":void 0},...u})});yf.displayName="MaskedInput";var Rf=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),ds={"DD/MM/YYYY":"/","MM/DD/YYYY":"/","YYYY-MM-DD":"-","DD.MM.YYYY":"."},rl={"DD/MM/YYYY":["day","month","year"],"MM/DD/YYYY":["month","day","year"],"YYYY-MM-DD":["year","month","day"],"DD.MM.YYYY":["day","month","year"]},tl=(e,t)=>String(e).padStart(t,"0"),cs=(e,t)=>{let r=tl(e.getDate(),2),a=tl(e.getMonth()+1,2),n=tl(e.getFullYear(),4),o=ds[t],s=rl[t],l={day:r,month:a,year:n};return s.map(c=>l[c]).join(o)},wf=(e,t)=>{let r=ds[t],a=e.split(r);if(a.length!==3)return null;let n=rl[t],o={};if(n.forEach((l,c)=>{o[l]=parseInt(a[c],10);}),isNaN(o.day)||isNaN(o.month)||isNaN(o.year)||o.month<1||o.month>12||o.day<1||o.day>31||o.year<1e3||o.year>9999)return null;let s=new Date(o.year,o.month-1,o.day);return s.getFullYear()!==o.year||s.getMonth()!==o.month-1||s.getDate()!==o.day?null:s},sC=e=>e.toLowerCase(),iC=e=>{let t=ds[e];return rl[e].map(a=>a==="year"?"####":"##").join(t)},Cf=___namespace.forwardRef(({className:e,size:t,value:r,defaultValue:a,onChange:n,format:o="DD/MM/YYYY",minDate:s,maxDate:l,showIcon:c=true,disabled:d,placeholder:m,...u},p)=>{let[f,b]=___namespace.useState(a??null),[x,g]=___namespace.useState(""),[v,R]=___namespace.useState(null),w=___namespace.useRef(null),h=r!==void 0?r:f;___namespace.useImperativeHandle(p,()=>w.current),___namespace.useEffect(()=>{h?(g(cs(h,o)),R(null)):g("");},[h,o]);let C=ds[o],y=iC(o),T=M=>{let P=M.target.value;P=P.replace(new RegExp(`[^0-9\\${C}]`,"g"),"");let k=P.replace(new RegExp(`\\${C}`,"g"),""),L="",H=0;for(let S=0;S<y.length&&H<k.length;S++)y[S]==="#"?(L+=k[H],H++):L+=y[S];if(g(L),L.length===y.length){let S=wf(L,o);if(S){if(s&&S<s){R(`Date must be after ${cs(s,o)}`);return}if(l&&S>l){R(`Date must be before ${cs(l,o)}`);return}R(null),r===void 0&&b(S),n?.(S);}else R("Invalid date");}else r===void 0&&b(null),n?.(null),R(null);},N=()=>{x&&x.length!==y.length&&(g(""),R(null),r===void 0&&b(null),n?.(null));},E=t==="sm"?"h-3 w-3":t==="lg"?"h-5 w-5":"h-4 w-4";return jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("input",{ref:w,type:"text",inputMode:"numeric",value:x,onChange:T,onBlur:N,disabled:d,placeholder:m??sC(o),className:i(Rf({size:t}),c&&"pr-10",v&&"border-danger focus-visible:ring-danger",e),"aria-invalid":!!v,"aria-describedby":v?"date-error":void 0,...u}),c&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute right-3 top-1/2 -translate-y-1/2",children:jsxRuntime.jsx(lucideReact.Calendar,{className:i(E,"text-muted-foreground")})}),v&&jsxRuntime.jsx("p",{id:"date-error",className:"mt-1 text-xs text-danger",children:v})]})});Cf.displayName="DateInput";var Mf=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),Tf=[{code:"AR",name:"Argentina",dialCode:"+54",flag:"\u{1F1E6}\u{1F1F7}",format:"## ####-####"},{code:"AU",name:"Australia",dialCode:"+61",flag:"\u{1F1E6}\u{1F1FA}",format:"### ### ###"},{code:"AT",name:"Austria",dialCode:"+43",flag:"\u{1F1E6}\u{1F1F9}",format:"### #######"},{code:"BE",name:"Belgium",dialCode:"+32",flag:"\u{1F1E7}\u{1F1EA}",format:"### ## ## ##"},{code:"BR",name:"Brazil",dialCode:"+55",flag:"\u{1F1E7}\u{1F1F7}",format:"(##) #####-####"},{code:"BG",name:"Bulgaria",dialCode:"+359",flag:"\u{1F1E7}\u{1F1EC}",format:"### ### ###"},{code:"CA",name:"Canada",dialCode:"+1",flag:"\u{1F1E8}\u{1F1E6}",format:"(###) ###-####"},{code:"CN",name:"China",dialCode:"+86",flag:"\u{1F1E8}\u{1F1F3}",format:"### #### ####"},{code:"HR",name:"Croatia",dialCode:"+385",flag:"\u{1F1ED}\u{1F1F7}",format:"## ### ####"},{code:"CZ",name:"Czech Republic",dialCode:"+420",flag:"\u{1F1E8}\u{1F1FF}",format:"### ### ###"},{code:"DK",name:"Denmark",dialCode:"+45",flag:"\u{1F1E9}\u{1F1F0}",format:"## ## ## ##"},{code:"EG",name:"Egypt",dialCode:"+20",flag:"\u{1F1EA}\u{1F1EC}",format:"### ### ####"},{code:"FI",name:"Finland",dialCode:"+358",flag:"\u{1F1EB}\u{1F1EE}",format:"## ### ####"},{code:"FR",name:"France",dialCode:"+33",flag:"\u{1F1EB}\u{1F1F7}",format:"# ## ## ## ##"},{code:"DE",name:"Germany",dialCode:"+49",flag:"\u{1F1E9}\u{1F1EA}",format:"#### #######"},{code:"GR",name:"Greece",dialCode:"+30",flag:"\u{1F1EC}\u{1F1F7}",format:"### ### ####"},{code:"HK",name:"Hong Kong",dialCode:"+852",flag:"\u{1F1ED}\u{1F1F0}",format:"#### ####"},{code:"HU",name:"Hungary",dialCode:"+36",flag:"\u{1F1ED}\u{1F1FA}",format:"## ### ####"},{code:"IN",name:"India",dialCode:"+91",flag:"\u{1F1EE}\u{1F1F3}",format:"##### #####"},{code:"IL",name:"Israel",dialCode:"+972",flag:"\u{1F1EE}\u{1F1F1}",format:"##-###-####"},{code:"IT",name:"Italy",dialCode:"+39",flag:"\u{1F1EE}\u{1F1F9}",format:"### ### ####"},{code:"JP",name:"Japan",dialCode:"+81",flag:"\u{1F1EF}\u{1F1F5}",format:"##-####-####"},{code:"MX",name:"Mexico",dialCode:"+52",flag:"\u{1F1F2}\u{1F1FD}",format:"### ### ####"},{code:"NL",name:"Netherlands",dialCode:"+31",flag:"\u{1F1F3}\u{1F1F1}",format:"## ########"},{code:"NZ",name:"New Zealand",dialCode:"+64",flag:"\u{1F1F3}\u{1F1FF}",format:"## ### ####"},{code:"NG",name:"Nigeria",dialCode:"+234",flag:"\u{1F1F3}\u{1F1EC}",format:"### ### ####"},{code:"NO",name:"Norway",dialCode:"+47",flag:"\u{1F1F3}\u{1F1F4}",format:"### ## ###"},{code:"PK",name:"Pakistan",dialCode:"+92",flag:"\u{1F1F5}\u{1F1F0}",format:"### #######"},{code:"PL",name:"Poland",dialCode:"+48",flag:"\u{1F1F5}\u{1F1F1}",format:"### ### ###"},{code:"PT",name:"Portugal",dialCode:"+351",flag:"\u{1F1F5}\u{1F1F9}",format:"### ### ###"},{code:"RO",name:"Romania",dialCode:"+40",flag:"\u{1F1F7}\u{1F1F4}",format:"### ### ###"},{code:"RU",name:"Russia",dialCode:"+7",flag:"\u{1F1F7}\u{1F1FA}",format:"(###) ###-##-##"},{code:"SA",name:"Saudi Arabia",dialCode:"+966",flag:"\u{1F1F8}\u{1F1E6}",format:"## ### ####"},{code:"RS",name:"Serbia",dialCode:"+381",flag:"\u{1F1F7}\u{1F1F8}",format:"## ### ####"},{code:"SG",name:"Singapore",dialCode:"+65",flag:"\u{1F1F8}\u{1F1EC}",format:"#### ####"},{code:"SK",name:"Slovakia",dialCode:"+421",flag:"\u{1F1F8}\u{1F1F0}",format:"### ### ###"},{code:"SI",name:"Slovenia",dialCode:"+386",flag:"\u{1F1F8}\u{1F1EE}",format:"## ### ###"},{code:"ZA",name:"South Africa",dialCode:"+27",flag:"\u{1F1FF}\u{1F1E6}",format:"## ### ####"},{code:"KR",name:"South Korea",dialCode:"+82",flag:"\u{1F1F0}\u{1F1F7}",format:"##-####-####"},{code:"ES",name:"Spain",dialCode:"+34",flag:"\u{1F1EA}\u{1F1F8}",format:"### ### ###"},{code:"SE",name:"Sweden",dialCode:"+46",flag:"\u{1F1F8}\u{1F1EA}",format:"##-### ## ##"},{code:"CH",name:"Switzerland",dialCode:"+41",flag:"\u{1F1E8}\u{1F1ED}",format:"## ### ## ##"},{code:"TW",name:"Taiwan",dialCode:"+886",flag:"\u{1F1F9}\u{1F1FC}",format:"### ### ###"},{code:"TR",name:"Turkey",dialCode:"+90",flag:"\u{1F1F9}\u{1F1F7}",format:"(###) ### ## ##"},{code:"UA",name:"Ukraine",dialCode:"+380",flag:"\u{1F1FA}\u{1F1E6}",format:"## ### ## ##"},{code:"AE",name:"United Arab Emirates",dialCode:"+971",flag:"\u{1F1E6}\u{1F1EA}",format:"## ### ####"},{code:"GB",name:"United Kingdom",dialCode:"+44",flag:"\u{1F1EC}\u{1F1E7}",format:"#### ### ####"},{code:"US",name:"United States",dialCode:"+1",flag:"\u{1F1FA}\u{1F1F8}",format:"(###) ###-####"}],us=(e,t)=>{let r=e.replace(/\D/g,""),a="",n=0;for(let o=0;o<t.length&&n<r.length;o++)t[o]==="#"?(a+=r[n],n++):a+=t[o];return a},mC=e=>e.replace(/#/g,"_"),Pf=___namespace.forwardRef(({className:e,size:t,value:r,defaultValue:a="",onChange:n,country:o,defaultCountry:s="TR",onCountryChange:l,countries:c=Tf,showCountrySelect:d=true,showDialCode:m=false,disabled:u,placeholder:p,...f},b)=>{let[x,g]=___namespace.useState(a),[v,R]=___namespace.useState(o??s),[w,h]=___namespace.useState(false),[C,y]=___namespace.useState(false),[T,N]=___namespace.useState(false),[E,M]=___namespace.useState({top:0,left:0,width:0}),P=___namespace.useRef(null),k=___namespace.useRef(null),L=r!==void 0?r:x,H=o??v,S=c.find(I=>I.code===H)??c[0],D=us(L,S.format);___namespace.useEffect(()=>{N(true);},[]),___namespace.useEffect(()=>{if(C&&P.current){let I=P.current.getBoundingClientRect();M({top:I.bottom+4,left:I.left,width:Math.max(I.width,280)});}},[C]),___namespace.useEffect(()=>{if(!C)return;let I=F=>{P.current&&!P.current.contains(F.target)&&k.current&&!k.current.contains(F.target)&&y(false);};return document.addEventListener("mousedown",I),()=>document.removeEventListener("mousedown",I)},[C]),___namespace.useEffect(()=>{if(!C)return;let I=F=>{F.key==="Escape"&&y(false);};return document.addEventListener("keydown",I),()=>document.removeEventListener("keydown",I)},[C]);let V=I=>{let O=I.target.value.replace(/\D/g,"");r===void 0&&g(O);let ee=us(O,S.format),ae=`${S.dialCode} ${ee}`;n?.(O,ae,S);},z=I=>{let F=c.find(ae=>ae.code===I);if(!F)return;o===void 0&&R(I),l?.(F);let O=us(L,F.format),ee=`${F.dialCode} ${O}`;n?.(L,ee,F),y(false);};return jsxRuntime.jsxs("div",{className:"flex",children:[d&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("button",{ref:P,type:"button",disabled:u,onClick:()=>y(!C),className:i("flex 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","w-[100px] rounded-r-none border-r-0 shrink-0",t==="sm"?"h-8":t==="lg"?"h-12":"h-10"),children:[jsxRuntime.jsxs("span",{className:"flex items-center gap-1.5",children:[jsxRuntime.jsx("span",{children:S.flag}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:S.dialCode})]}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:i("h-4 w-4 opacity-50 transition-transform",C&&"rotate-180")})]}),T&&C&&$o__namespace.createPortal(jsxRuntime.jsx("div",{ref:k,className:"fixed z-50 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95",style:{top:E.top,left:E.left,minWidth:E.width},children:jsxRuntime.jsx(_e,{style:{maxHeight:300},children:jsxRuntime.jsx("div",{className:"p-1",children:c.map(I=>jsxRuntime.jsxs("div",{role:"option","aria-selected":I.code===H,onClick:()=>z(I.code),className:"relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:I.code===H&&jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})}),jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{children:I.flag}),jsxRuntime.jsx("span",{className:"flex-1",children:I.name}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:I.dialCode})]})]},I.code))})})}),document.body)]}),jsxRuntime.jsxs("div",{className:"relative flex-1",children:[m&&!d&&jsxRuntime.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:S.dialCode}),jsxRuntime.jsx("input",{ref:b,type:"tel",inputMode:"tel",value:D,onChange:V,onFocus:()=>h(true),onBlur:()=>h(false),disabled:u,placeholder:p??mC(S.format),className:i(Mf({size:t}),d&&"rounded-l-none",m&&!d&&"pl-12",e),style:{borderColor:w?"var(--color-foreground)":void 0},...f})]})]})});Pf.displayName="PhoneInput";var Ef=classVarianceAuthority.cva("flex items-center justify-between w-full px-4 py-3 border-b bg-background",{variants:{variant:{solid:"bg-primary text-primary-foreground border-primary",outline:"bg-background border-border",ghost:"bg-transparent border-transparent",soft:"bg-primary/10 border-primary/20",surface:"bg-muted border-border"},size:{sm:"h-12 px-3 py-2",md:"h-14 px-4 py-3",lg:"h-16 px-6 py-4"},sticky:{true:"sticky top-0 z-50",false:""}},defaultVariants:{variant:"outline",size:"md",sticky:false}}),Lf=___namespace.forwardRef(({className:e,variant:t,size:r,sticky:a,brand:n,children:o,mobileBreakpoint:s="md",...l},c)=>{let[d,m]=___namespace.useState(false),u={sm:"hidden sm:flex",md:"hidden md:flex",lg:"hidden lg:flex"}[s],p={sm:"sm:hidden",md:"md:hidden",lg:"lg:hidden"}[s];return jsxRuntime.jsxs("nav",{ref:c,className:i(Ef({variant:t,size:r,sticky:a,className:e})),...l,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between w-full",children:[n&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:n}),jsxRuntime.jsx("div",{className:i("items-center gap-4 flex-1 justify-end",u),children:o}),jsxRuntime.jsx("button",{type:"button",className:i("p-2 rounded-md hover:bg-accent hover:text-accent-foreground transition-colors",p),onClick:()=>m(!d),"aria-label":d?"Close menu":"Open menu","aria-expanded":d,children:d?jsxRuntime.jsx(lucideReact.X,{className:"h-5 w-5"}):jsxRuntime.jsx(lucideReact.Menu,{className:"h-5 w-5"})})]}),d&&jsxRuntime.jsx("div",{className:i("absolute top-full left-0 right-0 flex flex-col gap-2 p-4 bg-background border-b border-border shadow-lg",p),children:o})]})});Lf.displayName="Navbar";var Df=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex items-center gap-2 font-semibold text-lg",e),...t}));Df.displayName="NavbarBrand";var Sf=___namespace.forwardRef(({className:e,justify:t="start",...r},a)=>{let n={start:"justify-start",center:"justify-center",end:"justify-end"}[t];return jsxRuntime.jsx("div",{ref:a,className:i("flex items-center gap-4",n,e),...r})});Sf.displayName="NavbarContent";var Hf=___namespace.forwardRef(({className:e,isActive:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i("flex items-center",t&&"text-primary font-medium",e),...r}));Hf.displayName="NavbarItem";var If=___namespace.forwardRef(({className:e,isActive:t,...r},a)=>jsxRuntime.jsx("a",{ref:a,className:i("text-sm font-medium transition-colors hover:text-primary",t?"text-primary":"text-muted-foreground",e),...r}));If.displayName="NavbarLink";var Af=classVarianceAuthority.cva("inline-flex items-center gap-1 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{solid:"text-primary-foreground bg-primary px-2 py-0.5 rounded hover:bg-primary/90",outline:"text-primary underline-offset-4 hover:underline",ghost:"text-foreground hover:text-primary",soft:"text-primary bg-primary/10 px-2 py-0.5 rounded hover:bg-primary/20",surface:"text-foreground bg-muted px-2 py-0.5 rounded hover:bg-muted/80"},size:{sm:"text-xs",md:"text-sm",lg:"text-base"},underline:{none:"",hover:"hover:underline underline-offset-4",always:"underline underline-offset-4"}},defaultVariants:{variant:"outline",size:"md",underline:"hover"}}),zf=___namespace.forwardRef(({className:e,variant:t,size:r,underline:a,isExternal:n,showExternalIcon:o=true,isDisabled:s,children:l,...c},d)=>{let m=n?{target:"_blank",rel:"noopener noreferrer"}:{};return jsxRuntime.jsxs("a",{ref:d,className:i(Af({variant:t,size:r,underline:a,className:e}),s&&"pointer-events-none opacity-50"),"aria-disabled":s,...m,...c,children:[l,n&&o&&jsxRuntime.jsx(lucideReact.ExternalLink,{className:"h-3 w-3 ml-0.5","aria-hidden":"true"})]})});zf.displayName="Link";var Bf=classVarianceAuthority.cva("fixed z-50 transition-all duration-300",{variants:{position:{"bottom-right":"bottom-6 right-6","bottom-left":"bottom-6 left-6","bottom-center":"bottom-6 left-1/2 -translate-x-1/2"}},defaultVariants:{position:"bottom-right"}}),Of=___namespace.forwardRef(({className:e,position:t,threshold:r=400,icon:a,behavior:n="smooth",variant:o="solid",color:s="default",size:l="md",radius:c="full",target:d,onVisibilityChange:m,onClick:u,...p},f)=>{let[b,x]=___namespace.useState(false);___namespace.useEffect(()=>{let R=d?.current||window,w=()=>{let C=(d?.current?d.current.scrollTop:window.scrollY||document.documentElement.scrollTop)>r;C!==b&&(x(C),m?.(C));};return R.addEventListener("scroll",w,{passive:true}),w(),()=>{R.removeEventListener("scroll",w);}},[r,d,b,m]);let g=R=>{d?.current?d.current.scrollTo({top:0,behavior:n}):window.scrollTo({top:0,behavior:n}),u?.(R);},v=l==="sm"?"h-4 w-4":l==="lg"?"h-6 w-6":"h-5 w-5";return jsxRuntime.jsx("div",{className:i(Bf({position:t}),b?"opacity-100 translate-y-0 pointer-events-auto":"opacity-0 translate-y-4 pointer-events-none",e),children:jsxRuntime.jsx(Z,{ref:f,type:"button",variant:o,color:s,size:"icon",radius:c,onClick:g,"aria-label":"Back to top",className:i("shadow-lg",l==="sm"&&"h-9 w-9",l==="md"&&"h-10 w-10",l==="lg"&&"h-12 w-12"),...p,children:a||jsxRuntime.jsx(lucideReact.ArrowUp,{className:v})})})});Of.displayName="BackTop";var TC=classVarianceAuthority.cva("",{variants:{radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-full"}},defaultVariants:{radius:"sm"}}),PC=classVarianceAuthority.cva("",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"sm"}}),Ff=classVarianceAuthority.cva("",{variants:{radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-2xl"}},defaultVariants:{radius:"sm"}}),fs=classVarianceAuthority.cva("",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-xl"}},defaultVariants:{radius:"sm"}}),Kf=___namespace.createContext(null),na=()=>{let e=___namespace.useContext(Kf);if(!e)throw new Error("Menubar components must be used within a Menubar");return e},Gf=___namespace.createContext(null),Zn=()=>{let e=___namespace.useContext(Gf);if(!e)throw new Error("Menu components must be used within a MenubarMenu");return e},nl=___namespace.createContext(null),$f=___namespace.createContext(null),_f=___namespace.forwardRef(({className:e,children:t,radius:r="sm",...a},n)=>{let[o,s]=___namespace.useState(null);return jsxRuntime.jsx(Kf.Provider,{value:{activeMenu:o,setActiveMenu:s,radius:r},children:jsxRuntime.jsx("div",{ref:n,role:"menubar",className:i("flex h-10 items-center space-x-1 border bg-background p-1",TC({radius:r}),e),...a,children:t})})});_f.displayName="Menubar";var Wf=({children:e})=>{let{activeMenu:t,setActiveMenu:r}=na(),a=___namespace.useId(),n=___namespace.useRef(null),o=t===a,s=___namespace.useCallback(l=>{r(l?a:null);},[a,r]);return jsxRuntime.jsx(Gf.Provider,{value:{menuId:a,triggerRef:n,open:o,onOpenChange:s},children:e})};Wf.displayName="MenubarMenu";var jf=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,role:"group",className:e,...t}));jf.displayName="MenubarGroup";var Yf=({children:e,container:t})=>{let[r,a]=___namespace.useState(false);return ___namespace.useEffect(()=>{a(true);},[]),r?$o__namespace.createPortal(e,t||document.body):null};Yf.displayName="MenubarPortal";var Uf=({children:e,open:t,defaultOpen:r=false,onOpenChange:a})=>{let[n,o]=___namespace.useState(r),s=t!==void 0,l=s?t:n,c=___namespace.useRef(null),d=___namespace.useCallback(m=>{s||o(m),a?.(m);},[s,a]);return jsxRuntime.jsx(nl.Provider,{value:{open:l,onOpenChange:d,triggerRef:c},children:e})};Uf.displayName="MenubarSub";var Xf=___namespace.forwardRef(({value:e="",onValueChange:t,className:r,...a},n)=>jsxRuntime.jsx($f.Provider,{value:{value:e,onValueChange:t||(()=>{})},children:jsxRuntime.jsx("div",{ref:n,role:"group",className:r,...a})}));Xf.displayName="MenubarRadioGroup";var qf=___namespace.forwardRef(({className:e,onClick:t,onMouseEnter:r,...a},n)=>{let{activeMenu:o,setActiveMenu:s,radius:l}=na(),{menuId:c,triggerRef:d,open:m,onOpenChange:u}=Zn(),p=b=>{t?.(b),u(!m);},f=b=>{r?.(b),o&&o!==c&&(s(c),document.activeElement instanceof HTMLElement&&document.activeElement.blur());};return jsxRuntime.jsx("button",{ref:b=>{d.current=b,typeof n=="function"?n(b):n&&(n.current=b);},type:"button",role:"menuitem","aria-haspopup":"menu","aria-expanded":m,"data-state":m?"open":"closed",className:i("flex cursor-default select-none items-center px-3 py-1.5 text-sm font-medium outline-none hover:bg-accent hover:text-accent-foreground focus-visible:bg-accent focus-visible:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",PC({radius:l}),e),onClick:p,onMouseEnter:f,...a})});qf.displayName="MenubarTrigger";var Zf=___namespace.forwardRef(({className:e,inset:t,children:r,onMouseEnter:a,onMouseLeave:n,...o},s)=>{let{radius:l}=na(),c=___namespace.useContext(nl);if(!c)throw new Error("MenubarSubTrigger must be used within MenubarSub");let{open:d,onOpenChange:m,triggerRef:u}=c,p=b=>{a?.(b),m(true);},f=b=>{n?.(b),m(false);};return jsxRuntime.jsxs("div",{ref:b=>{u.current=b,typeof s=="function"?s(b):s&&(s.current=b);},role:"menuitem","aria-haspopup":"menu","aria-expanded":d,"data-state":d?"open":"closed",className:i("flex cursor-default select-none items-center px-2 py-1.5 text-sm outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",fs({radius:l}),t&&"pl-8",e),onMouseEnter:p,onMouseLeave:f,...o,children:[r,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto h-4 w-4"})]})});Zf.displayName="MenubarSubTrigger";var Jf=___namespace.forwardRef(({className:e,sideOffset:t=2,onMouseEnter:r,onMouseLeave:a,...n},o)=>{let{radius:s}=na(),l=___namespace.useContext(nl);if(!l)throw new Error("MenubarSubContent must be used within MenubarSub");let{open:c,onOpenChange:d,triggerRef:m}=l,[u,p]=___namespace.useState({top:0,left:0}),[f,b]=___namespace.useState(false),x=___namespace.useRef(null);___namespace.useEffect(()=>{b(true);},[]),___namespace.useEffect(()=>{if(!c||!m.current||!x.current)return;(()=>{if(!m.current||!x.current)return;let w=m.current.getBoundingClientRect(),h=x.current.getBoundingClientRect(),C=w.top,y=w.right+t;y+h.width>window.innerWidth&&(y=w.left-h.width-t),p({top:C,left:y});})();},[c,t,m]);let g=R=>{r?.(R),d(true);},v=R=>{a?.(R),d(false);};return !f||!c?null:$o__namespace.createPortal(jsxRuntime.jsx("div",{ref:R=>{x.current=R,typeof o=="function"?o(R):o&&(o.current=R);},role:"menu","data-state":c?"open":"closed",className:i("fixed z-50 min-w-[8rem] overflow-hidden border bg-popover p-1 text-popover-foreground shadow-lg","animate-in fade-in-0 zoom-in-95 slide-in-from-left-2",Ff({radius:s}),e),style:{top:u.top,left:u.left},onMouseEnter:g,onMouseLeave:v,...n}),document.body)});Jf.displayName="MenubarSubContent";var Qf=___namespace.forwardRef(({className:e,align:t="start",alignOffset:r=-4,sideOffset:a=8,children:n,...o},s)=>{let{radius:l}=na(),{triggerRef:c,open:d,onOpenChange:m}=Zn(),[u,p]=___namespace.useState({top:0,left:0}),[f,b]=___namespace.useState(false),x=___namespace.useRef(null);return ___namespace.useEffect(()=>{b(true);},[]),___namespace.useEffect(()=>{if(!d||!c.current||!x.current)return;let g=()=>{if(!c.current||!x.current)return;let v=c.current.getBoundingClientRect(),R=x.current.getBoundingClientRect(),w=v.bottom+a,h=v.left+r;t==="center"?h=v.left+v.width/2-R.width/2:t==="end"&&(h=v.right-R.width-r),p({top:w,left:h});};return g(),window.addEventListener("resize",g),window.addEventListener("scroll",g,true),()=>{window.removeEventListener("resize",g),window.removeEventListener("scroll",g,true);}},[d,t,r,a,c]),___namespace.useEffect(()=>{if(!d)return;let g=v=>{let R=v.target;x.current&&!x.current.contains(R)&&c.current&&!c.current.contains(R)&&m(false);};return document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)},[d,m,c]),___namespace.useEffect(()=>{if(!d)return;let g=v=>{v.key==="Escape"&&m(false);};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[d,m]),!f||!d?null:$o__namespace.createPortal(jsxRuntime.jsx("div",{ref:g=>{x.current=g,typeof s=="function"?s(g):s&&(s.current=g);},role:"menu","data-state":d?"open":"closed",className:i("fixed z-50 min-w-[12rem] overflow-hidden border bg-popover p-1 text-popover-foreground shadow-md","animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",Ff({radius:l}),e),style:{top:u.top,left:u.left},...o,children:n}),document.body)});Qf.displayName="MenubarContent";var eg=___namespace.forwardRef(({className:e,inset:t,disabled:r,onSelect:a,onClick:n,...o},s)=>{let{radius:l}=na(),{onOpenChange:c}=Zn(),d=m=>{if(r){m.preventDefault();return}n?.(m),a?.(),c(false);};return jsxRuntime.jsx("div",{ref:s,role:"menuitem",tabIndex:r?-1:0,"aria-disabled":r,"data-disabled":r?"":void 0,className:i("relative flex cursor-default select-none items-center px-2 py-1.5 text-sm outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",fs({radius:l}),t&&"pl-8",!r&&"cursor-pointer",e),onClick:d,...o})});eg.displayName="MenubarItem";var tg=___namespace.forwardRef(({className:e,children:t,checked:r=false,onCheckedChange:a,disabled:n,onClick:o,...s},l)=>{let{radius:c}=na(),{onOpenChange:d}=Zn(),m=u=>{if(n){u.preventDefault();return}o?.(u),a?.(!r),d(false);};return jsxRuntime.jsxs("div",{ref:l,role:"menuitemcheckbox","aria-checked":r,tabIndex:n?-1:0,"aria-disabled":n,"data-disabled":n?"":void 0,"data-state":r?"checked":"unchecked",className:i("relative flex cursor-default select-none items-center py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",fs({radius:c}),!n&&"cursor-pointer",e),onClick:m,...s,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r&&jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})}),t]})});tg.displayName="MenubarCheckboxItem";var rg=___namespace.forwardRef(({className:e,children:t,value:r,disabled:a,onClick:n,...o},s)=>{let{radius:l}=na(),{onOpenChange:c}=Zn(),d=___namespace.useContext($f),m=d?.value===r,u=p=>{if(a){p.preventDefault();return}n?.(p),d?.onValueChange(r),c(false);};return jsxRuntime.jsxs("div",{ref:s,role:"menuitemradio","aria-checked":m,tabIndex:a?-1:0,"aria-disabled":a,"data-disabled":a?"":void 0,"data-state":m?"checked":"unchecked",className:i("relative flex cursor-default select-none items-center py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",fs({radius:l}),!a&&"cursor-pointer",e),onClick:u,...o,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m&&jsxRuntime.jsx(lucideReact.Circle,{className:"h-2 w-2 fill-current"})}),t]})});rg.displayName="MenubarRadioItem";var ag=___namespace.forwardRef(({className:e,inset:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));ag.displayName="MenubarLabel";var ng=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,role:"separator",className:i("-mx-1 my-1 h-px bg-muted",e),...t}));ng.displayName="MenubarSeparator";var og=({className:e,...t})=>jsxRuntime.jsx("span",{className:i("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});og.displayName="MenubarShortcut";var sg=classVarianceAuthority.cva("flex",{variants:{orientation:{horizontal:"flex-row items-center",vertical:"flex-col"},size:{sm:"gap-2",md:"gap-4",lg:"gap-6"}},defaultVariants:{orientation:"horizontal",size:"md"}}),ig=___namespace.forwardRef(({className:e,orientation:t,size:r,currentStep:a=0,children:n,...o},s)=>{let l=___namespace.Children.toArray(n);return jsxRuntime.jsx("div",{ref:s,className:i(sg({orientation:t,size:r,className:e})),...o,children:l.map((c,d)=>___namespace.isValidElement(c)?___namespace.cloneElement(c,{...c.props,stepNumber:d+1,status:c.props.status||(d<a?"completed":d===a?"current":"upcoming"),isLast:d===l.length-1,orientation:t,size:r}):c)})});ig.displayName="Steps";var lg=classVarianceAuthority.cva("flex items-center",{variants:{orientation:{horizontal:"flex-row",vertical:"flex-col items-start"},size:{sm:"gap-2",md:"gap-3",lg:"gap-4"}},defaultVariants:{orientation:"horizontal",size:"md"}}),EC=classVarianceAuthority.cva("flex items-center justify-center rounded-full font-medium transition-colors",{variants:{status:{completed:"bg-primary text-primary-foreground",current:"bg-primary text-primary-foreground ring-2 ring-primary ring-offset-2 ring-offset-background",upcoming:"bg-muted text-muted-foreground border-2 border-muted-foreground/30"},size:{sm:"h-6 w-6 text-xs",md:"h-8 w-8 text-sm",lg:"h-10 w-10 text-base"}},defaultVariants:{status:"upcoming",size:"md"}}),LC=classVarianceAuthority.cva("bg-muted transition-colors",{variants:{orientation:{horizontal:"h-0.5 flex-1 min-w-8",vertical:"w-0.5 min-h-8 ml-4"},status:{completed:"bg-primary",current:"bg-muted",upcoming:"bg-muted"}},defaultVariants:{orientation:"horizontal",status:"upcoming"}}),cg=___namespace.forwardRef(({className:e,orientation:t="horizontal",size:r="md",title:a,description:n,icon:o,status:s="upcoming",stepNumber:l,isLast:c,...d},m)=>jsxRuntime.jsxs("div",{ref:m,className:i(lg({orientation:t,size:r,className:e}),!c&&t==="horizontal"&&"flex-1"),...d,children:[jsxRuntime.jsx("div",{className:i("flex items-center",t==="vertical"&&"flex-col items-start"),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntime.jsx("div",{className:i(EC({status:s,size:r})),children:s==="completed"?jsxRuntime.jsx(lucideReact.Check,{className:r==="sm"?"h-3 w-3":r==="lg"?"h-5 w-5":"h-4 w-4"}):o||l}),(a||n)&&jsxRuntime.jsxs("div",{className:"flex flex-col",children:[a&&jsxRuntime.jsx("span",{className:i("font-medium",r==="sm"&&"text-sm",r==="lg"&&"text-lg",s==="upcoming"&&"text-muted-foreground"),children:a}),n&&jsxRuntime.jsx("span",{className:i("text-muted-foreground",r==="sm"&&"text-xs",r==="md"&&"text-sm",r==="lg"&&"text-base"),children:n})]})]})}),!c&&jsxRuntime.jsx("div",{className:i(LC({orientation:t,status:s==="completed"?"completed":"upcoming"}),t==="vertical"&&"my-2")})]}));cg.displayName="Step";function AC({className:e,data:t,columns:r,selectable:a=false,selectedKeys:n,onSelectionChange:o,getRowKey:s=(h,C)=>String(C),sortable:l=false,sortState:c,onSortChange:d,paginated:m=false,pageSizeOptions:u=[10,20,50],paginationState:p,onPaginationChange:f,emptyContent:b="No data",loading:x=false,striped:g=false,hoverable:v=true,...R},w){let[h,C]=___namespace.useState(new Set),[y,T]=___namespace.useState({columnId:null,direction:null}),[N,E]=___namespace.useState({pageIndex:0,pageSize:u[0]||10}),M=n??h,P=c??y,k=p??N,L=K=>{o?o(K):C(K);},H=K=>{d?d(K):T(K);},S=K=>{f?f(K):E(K);},D=___namespace.useMemo(()=>{if(!P.columnId||!P.direction)return t;let K=r.find(B=>B.id===P.columnId);return K?[...t].sort((B,W)=>{let A=K.accessor(B),j=K.accessor(W);if(A===j)return 0;if(A==null)return 1;if(j==null)return -1;let Y=String(A).localeCompare(String(j),void 0,{numeric:true});return P.direction==="asc"?Y:-Y}):t},[t,P,r]),V=___namespace.useMemo(()=>{if(!m)return D;let K=k.pageIndex*k.pageSize;return D.slice(K,K+k.pageSize)},[D,m,k]),z=Math.ceil(D.length/k.pageSize),G=K=>{if(K===true){let B=new Set(V.map((W,A)=>s(W,A)));L(B);}else L(new Set);},I=(K,B)=>{let W=new Set(M);B?W.add(K):W.delete(K),L(W);},F=V.length>0&&V.every((K,B)=>M.has(s(K,B))),O=V.some((K,B)=>M.has(s(K,B))),ee=K=>{if(!r.find(A=>A.id===K)?.sortable&&!l)return;let W="asc";P.columnId===K&&(P.direction==="asc"?W="desc":P.direction==="desc"&&(W=null)),H({columnId:W?K:null,direction:W});},ae=K=>P.columnId!==K?jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"h-4 w-4 text-muted-foreground/50"}):P.direction==="asc"?jsxRuntime.jsx(lucideReact.ChevronUp,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"});return jsxRuntime.jsxs("div",{ref:w,className:i("w-full",e),...R,children:[jsxRuntime.jsx("div",{className:"relative w-full overflow-auto rounded-md border",children:jsxRuntime.jsxs("table",{className:"w-full caption-bottom text-sm",children:[jsxRuntime.jsx("thead",{className:"[&_tr]:border-b bg-muted/50",children:jsxRuntime.jsxs("tr",{children:[a&&jsxRuntime.jsx("th",{className:"h-12 w-12 px-4",children:jsxRuntime.jsx(On,{checked:F?true:O?"indeterminate":false,onCheckedChange:G,"aria-label":"Select all"})}),r.map(K=>{let B=K.sortable??l;return jsxRuntime.jsx("th",{className:i("h-12 px-4 text-left align-middle font-medium text-muted-foreground",B&&"cursor-pointer select-none hover:text-foreground"),style:{width:K.width},onClick:()=>B&&ee(K.id),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[K.header,B&&ae(K.id)]})},K.id)})]})}),jsxRuntime.jsx("tbody",{className:"[&_tr:last-child]:border-0",children:x?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:r.length+(a?1:0),className:"h-24 text-center text-muted-foreground",children:"Loading..."})}):V.length===0?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:r.length+(a?1:0),className:"h-24 text-center text-muted-foreground",children:b})}):V.map((K,B)=>{let W=s(K,B),A=M.has(W);return jsxRuntime.jsxs("tr",{className:i("border-b transition-colors",v&&"hover:bg-muted/50",g&&B%2===1&&"bg-muted/30",A&&"bg-muted"),"data-state":A?"selected":void 0,children:[a&&jsxRuntime.jsx("td",{className:"w-12 px-4",children:jsxRuntime.jsx(On,{checked:A,onCheckedChange:j=>I(W,!!j),"aria-label":`Select row ${B+1}`})}),r.map(j=>jsxRuntime.jsx("td",{className:"p-4 align-middle",children:j.cell?j.cell(K,B):j.accessor(K)},j.id))]},W)})})]})}),m&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between px-2 py-4",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[jsxRuntime.jsx("span",{children:"Rows per page:"}),jsxRuntime.jsx("select",{value:k.pageSize,onChange:K=>S({pageIndex:0,pageSize:Number(K.target.value)}),className:"h-8 rounded-md border bg-transparent px-2",children:u.map(K=>jsxRuntime.jsx("option",{value:K,children:K},K))})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"text-sm text-muted-foreground",children:["Page ",k.pageIndex+1," of ",z||1]}),jsxRuntime.jsxs("div",{className:"flex gap-1",children:[jsxRuntime.jsx(Z,{variant:"light",size:"icon",className:"h-8 w-8",onClick:()=>S({...k,pageIndex:k.pageIndex-1}),disabled:k.pageIndex===0,"aria-label":"Previous page",children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx(Z,{variant:"light",size:"icon",className:"h-8 w-8",onClick:()=>S({...k,pageIndex:k.pageIndex+1}),disabled:k.pageIndex>=z-1,"aria-label":"Next page",children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})})]})]})]})]})}var zC=___namespace.forwardRef(AC);var ug=classVarianceAuthority.cva("",{variants:{size:{sm:"[--tree-indent:12px] [--tree-item-height:28px] text-xs",md:"[--tree-indent:16px] [--tree-item-height:32px] text-sm",lg:"[--tree-indent:20px] [--tree-item-height:40px] text-base"}},defaultVariants:{size:"md"}}),mg=___namespace.forwardRef(({className:e,size:t,data:r,defaultExpandedIds:a=[],expandedIds:n,onExpandedChange:o,selectedId:s,onSelect:l,showIcons:c=true,leafIcon:d=jsxRuntime.jsx(lucideReact.File,{className:"h-4 w-4"}),folderIcon:m=jsxRuntime.jsx(lucideReact.Folder,{className:"h-4 w-4"}),folderOpenIcon:u=jsxRuntime.jsx(lucideReact.FolderOpen,{className:"h-4 w-4"}),defaultExpandAll:p=false,...f},b)=>{let x=___namespace.useCallback(y=>y.reduce((T,N)=>N.children?.length?[...T,N.id,...x(N.children)]:T,[]),[]),[g,v]=___namespace.useState(()=>p?x(r):a),R=n??g,w=y=>{o?o(y):v(y);},h=y=>{R.includes(y)?w(R.filter(T=>T!==y)):w([...R,y]);},C=(y,T=0)=>{let N=y.children&&y.children.length>0,E=R.includes(y.id),M=s===y.id,P=()=>{y.disabled||l?.(y);},k=H=>{H.stopPropagation(),N&&h(y.id);},L=()=>y.icon?y.icon:N?E?u:m:d;return jsxRuntime.jsxs("div",{role:"treeitem","aria-expanded":N?E:void 0,children:[jsxRuntime.jsxs("div",{className:i("flex items-center gap-1 rounded-md px-2 cursor-pointer transition-colors","h-[var(--tree-item-height)]","hover:bg-muted/50",M&&"bg-primary/10 text-primary",y.disabled&&"opacity-50 cursor-not-allowed"),style:{paddingLeft:`calc(${T} * var(--tree-indent) + 8px)`},onClick:P,children:[jsxRuntime.jsx("button",{type:"button",className:i("flex h-5 w-5 items-center justify-center rounded hover:bg-muted",!N&&"invisible"),onClick:k,tabIndex:-1,"aria-label":E?"Collapse":"Expand",children:E?jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})}),c&&jsxRuntime.jsx("span",{className:"flex-shrink-0 text-muted-foreground",children:L()}),jsxRuntime.jsx("span",{className:"truncate",children:y.name})]}),N&&E&&jsxRuntime.jsx("div",{role:"group",children:y.children.map(H=>C(H,T+1))})]},y.id)};return jsxRuntime.jsx("div",{ref:b,role:"tree",className:i(ug({size:t,className:e})),...f,children:r.map(y=>C(y))})});mg.displayName="TreeView";var fg=classVarianceAuthority.cva("flex rounded-md border border-input bg-background text-sm placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"},fullWidth:{true:"w-full",false:"w-fit min-w-48"}},defaultVariants:{size:"md",fullWidth:false}}),UC=({text:e,query:t})=>{if(!t)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:e});let r=new RegExp(`(${t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")})`,"gi"),a=e.split(r);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:a.map((n,o)=>r.test(n)?jsxRuntime.jsx("mark",{className:"bg-primary/20 text-foreground rounded-sm",children:n},o):jsxRuntime.jsx("span",{children:n},o))})},XC=(e,t)=>{let[r,a]=___namespace.useState(e);return ___namespace.useEffect(()=>{let n=setTimeout(()=>{a(e);},t);return ()=>{clearTimeout(n);}},[e,t]),r},gg=___namespace.forwardRef(({className:e,size:t,value:r,defaultValue:a="",onChange:n,onSelect:o,options:s=[],loadOptions:l,debounceMs:c=300,minChars:d=0,placeholder:m="Type to search...",emptyText:u="No results found.",loadingText:p="Loading...",clearable:f=false,freeSolo:b=true,maxHeight:x=200,highlightMatch:g=true,fullWidth:v=false,disabled:R,...w},h)=>{let[C,y]=___namespace.useState(false),[T,N]=___namespace.useState(a),[E,M]=___namespace.useState([]),[P,k]=___namespace.useState(false),[L,H]=___namespace.useState(false),S=___namespace.useRef(null),D=r!==void 0?r:T,V=XC(D,c);___namespace.useImperativeHandle(h,()=>S.current);let z=l?E:s,G=___namespace.useMemo(()=>l?z:z.filter(Y=>Y.label.toLowerCase().includes(D.toLowerCase())),[z,D,l]);___namespace.useEffect(()=>{if(!l)return;if(V.length<d){M([]);return}let Y=false;return (async()=>{k(true);try{let pe=await l(V);Y||M(pe);}catch{Y||M([]);}finally{Y||k(false);}})(),()=>{Y=true;}},[V,l,d]);let I=Y=>{r===void 0&&N(Y),n?.(Y);},F=Y=>{let Se=Y.target.value;I(Se),Se.length>=d&&y(true);},O=Y=>{I(Y.label),o?.(Y),y(false);},ee=()=>{I(""),S.current?.focus();},ae=()=>{H(true),D.length>=d&&(G.length>0||P)&&y(true);},K=()=>{H(false);},B=Y=>{Y.key==="Escape"&&y(false),Y.key==="ArrowDown"&&!C&&G.length>0&&y(true);},W=C&&D.length>=d,A=t==="sm"?"h-3 w-3":t==="lg"?"h-5 w-5":"h-4 w-4",j=f&&D?"pr-8":"pr-3";return jsxRuntime.jsxs(et,{open:W,onOpenChange:y,children:[jsxRuntime.jsx(Bo,{asChild:true,children:jsxRuntime.jsxs("div",{className:i("relative",v?"w-full":"w-fit"),children:[jsxRuntime.jsx("input",{ref:S,type:"text",value:D,onChange:F,onFocus:ae,onBlur:K,onKeyDown:B,disabled:R,placeholder:m,className:i(fg({size:t,fullWidth:v}),j,e),style:{borderColor:L?"var(--color-foreground)":void 0},role:"combobox","aria-expanded":W,"aria-autocomplete":"list","aria-controls":"autocomplete-list",...w}),f&&D&&!R&&jsxRuntime.jsx("button",{type:"button",onClick:ee,className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground","aria-label":"Clear",children:jsxRuntime.jsx(lucideReact.X,{className:A})})]})}),jsxRuntime.jsx(tt,{className:"w-[--radix-popover-trigger-width] p-0",align:"start",onOpenAutoFocus:Y=>Y.preventDefault(),children:jsxRuntime.jsx(cmdk.Command,{className:"overflow-hidden rounded-md",shouldFilter:false,children:jsxRuntime.jsx(cmdk.Command.List,{id:"autocomplete-list",className:"overflow-y-auto p-1",style:{maxHeight:x},children:P?jsxRuntime.jsxs("div",{className:"flex items-center justify-center gap-2 py-6 text-sm text-muted-foreground",children:[jsxRuntime.jsx(lucideReact.Loader2,{className:i(A,"animate-spin")}),p]}):G.length===0?jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:u}):G.map(Y=>jsxRuntime.jsxs(cmdk.Command.Item,{value:Y.value,disabled:Y.disabled,onSelect:()=>O(Y),className:i("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-[disabled=true]:opacity-50","data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground"),children:[jsxRuntime.jsx(lucideReact.Check,{className:i("mr-2 h-4 w-4 shrink-0",D===Y.label?"opacity-100":"opacity-0")}),jsxRuntime.jsx("span",{className:"flex-1",children:g?jsxRuntime.jsx(UC,{text:Y.label,query:D}):Y.label})]},Y.value))})})})]})});gg.displayName="Autocomplete";var ll=___namespace.createContext(null),cl=___namespace.createContext(null),dl=()=>{let e=___namespace.useContext(ll);if(!e)throw new Error("useFormContext must be used within a Form");return e},vs=()=>{let e=___namespace.useContext(cl);if(!e)throw new Error("useFieldContext must be used within a FormField");return e},qC={required:(e="This field is required")=>({validate:t=>typeof t=="string"?t.trim().length>0:Array.isArray(t)?t.length>0:t!=null,message:e}),minLength:(e,t)=>({validate:r=>typeof r=="string"&&r.length>=e,message:t??`Must be at least ${e} characters`}),maxLength:(e,t)=>({validate:r=>typeof r=="string"&&r.length<=e,message:t??`Must be at most ${e} characters`}),min:(e,t)=>({validate:r=>typeof r=="number"&&r>=e,message:t??`Must be at least ${e}`}),max:(e,t)=>({validate:r=>typeof r=="number"&&r<=e,message:t??`Must be at most ${e}`}),email:(e="Invalid email address")=>({validate:t=>typeof t=="string"&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t),message:e}),pattern:(e,t="Invalid format")=>({validate:r=>typeof r=="string"&&e.test(r),message:t}),custom:(e,t)=>({validate:e,message:t})},bg=___namespace.forwardRef(({defaultValues:e={},onSubmit:t,onError:r,validateOnBlur:a=true,validateOnChange:n=false,children:o,className:s,...l},c)=>{let[d,m]=___namespace.useState(e),[u,p]=___namespace.useState({}),[f,b]=___namespace.useState({}),[x,g]=___namespace.useState({}),[v,R]=___namespace.useState(false),w=___namespace.useRef(new Map),h=___namespace.useCallback((S,D)=>{w.current.set(S,D);},[]),C=___namespace.useCallback(S=>{w.current.delete(S);},[]),y=___namespace.useCallback(S=>{let D=w.current.get(S)||[],V=d[S];for(let z of D)if(!z.validate(V))return p(G=>({...G,[S]:z.message})),false;return p(z=>({...z,[S]:null})),true},[d]),T=___namespace.useCallback(()=>{let S=true,D={};return w.current.forEach((V,z)=>{let G=d[z];for(let I of V)if(!I.validate(G)){D[z]=I.message,S=false;break}D[z]||(D[z]=null);}),p(D),S},[d]),N=___namespace.useCallback((S,D)=>{m(V=>({...V,[S]:D})),g(V=>({...V,[S]:true})),n&&setTimeout(()=>{y(S);},0);},[n,y]),E=___namespace.useCallback((S,D)=>{p(V=>({...V,[S]:D}));},[]),M=___namespace.useCallback((S,D)=>{b(V=>({...V,[S]:D})),D&&a&&y(S);},[a,y]),P=___namespace.useCallback(S=>({value:d[S],error:u[S]??null,touched:f[S]??false,dirty:x[S]??false}),[d,u,f,x]),k=___namespace.useCallback(()=>{m(e),p({}),b({}),g({});},[e]),L=async S=>{S.preventDefault();let D={};if(w.current.forEach((z,G)=>{D[G]=true;}),b(D),!T()){r?.(u);return}if(t){R(true);try{await t(d);}finally{R(false);}}},H={values:d,errors:u,touched:f,dirty:x,isSubmitting:v,setValue:N,setError:E,setTouched:M,validateField:y,validateAll:T,registerField:h,unregisterField:C,getFieldState:P,reset:k};return jsxRuntime.jsx(ll.Provider,{value:H,children:jsxRuntime.jsx("form",{ref:c,onSubmit:L,className:i("space-y-4",s),...l,children:o})})});bg.displayName="Form";var vg=({name:e,rules:t=[],defaultValue:r,children:a})=>{let n=dl(),o=___namespace.useId();___namespace.useEffect(()=>(n.registerField(e,t),r!==void 0&&n.values[e]===void 0&&n.setValue(e,r),()=>{n.unregisterField(e);}),[e,t,r,n]);let s=n.getFieldState(e),l={name:e,id:`${o}-${e}`,value:s.value,error:s.error,touched:s.touched,dirty:s.dirty};return jsxRuntime.jsx(cl.Provider,{value:l,children:a})};vg.displayName="FormField";var hg=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("space-y-1.5",e),...t}));hg.displayName="FormItem";var xg=___namespace.forwardRef(({className:e,required:t,children:r,...a},n)=>{let{id:o,error:s,touched:l}=vs();return jsxRuntime.jsxs(Ra,{ref:n,htmlFor:o,className:i(s&&l&&"text-danger",e),...a,children:[r,t&&jsxRuntime.jsx("span",{className:"ml-1 text-danger",children:"*"})]})});xg.displayName="FormLabel";var yg=({children:e})=>{let{name:t,id:r,error:a,touched:n}=vs(),o=dl(),s=o.getFieldState(t),l=d=>{let m=d.target,u=m.type==="checkbox"?m.checked:m.value;o.setValue(t,u);},c=()=>{o.setTouched(t,true);};return ___namespace.cloneElement(e,{id:r,name:t,value:s.value??"",onChange:l,onBlur:c,"aria-invalid":a&&n?"true":void 0,"aria-describedby":a&&n?`${r}-error`:void 0})};yg.displayName="FormControl";var Rg=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("p",{ref:r,className:i("text-xs text-muted-foreground",e),...t}));Rg.displayName="FormDescription";var wg=___namespace.forwardRef(({className:e,message:t,...r},a)=>{let{id:n,error:o,touched:s}=vs(),l=t??(s?o:null);return l?jsxRuntime.jsx("p",{ref:a,id:`${n}-error`,className:i("text-xs text-danger",e),role:"alert",...r,children:l}):null});wg.displayName="FormMessage";var Ng=classVarianceAuthority.cva("inline-flex items-center gap-3",{variants:{size:{sm:"[&_[data-user-avatar]]:h-8 [&_[data-user-avatar]]:w-8",md:"[&_[data-user-avatar]]:h-10 [&_[data-user-avatar]]:w-10",lg:"[&_[data-user-avatar]]:h-12 [&_[data-user-avatar]]:w-12"}},defaultVariants:{size:"md"}}),Mg=___namespace.forwardRef(({className:e,size:t,name:r,description:a,avatarUrl:n,avatarFallback:o,trailing:s,...l},c)=>{let d=o||r.split(" ").map(m=>m[0]).join("").toUpperCase().slice(0,2);return jsxRuntime.jsxs("div",{ref:c,className:i(Ng({size:t,className:e})),...l,children:[jsxRuntime.jsxs(wa,{"data-user-avatar":true,children:[n&&jsxRuntime.jsx(rn,{src:n,alt:r}),jsxRuntime.jsx(Ca,{children:d})]}),jsxRuntime.jsxs("div",{className:"flex flex-col min-w-0",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium leading-none truncate",children:r}),a&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground truncate",children:a})]}),s&&jsxRuntime.jsx("div",{className:"ml-auto flex-shrink-0",children:s})]})});Mg.displayName="User";var Pg=classVarianceAuthority.cva("font-mono rounded",{variants:{variant:{solid:"bg-primary text-primary-foreground",outline:"border border-input bg-transparent",ghost:"bg-transparent",soft:"bg-muted text-foreground",surface:"bg-muted/50 text-foreground border border-border"},size:{sm:"px-1 py-0.5 text-xs",md:"px-1.5 py-0.5 text-sm",lg:"px-2 py-1 text-base"}},defaultVariants:{variant:"soft",size:"md"}}),kg=___namespace.forwardRef(({className:e,variant:t,size:r,...a},n)=>jsxRuntime.jsx("code",{ref:n,className:i(Pg({variant:t,size:r,className:e})),...a}));kg.displayName="Code";var Eg=classVarianceAuthority.cva("relative flex items-center gap-2 font-mono rounded-lg border",{variants:{variant:{solid:"bg-primary text-primary-foreground border-primary",outline:"bg-transparent border-input",ghost:"bg-transparent border-transparent",soft:"bg-muted border-muted",surface:"bg-muted/50 border-border"},size:{sm:"px-3 py-1.5 text-xs",md:"px-4 py-2 text-sm",lg:"px-5 py-3 text-base"}},defaultVariants:{variant:"surface",size:"md"}}),Lg=___namespace.forwardRef(({className:e,variant:t,size:r,code:a,copyable:n=true,copyLabel:o="Copy",onCopy:s,symbol:l="$",hideSymbol:c=false,...d},m)=>{let[u,p]=___namespace.useState(false),f=async()=>{try{await navigator.clipboard.writeText(a),p(!0),s?.(),setTimeout(()=>p(!1),2e3);}catch(b){console.error("Failed to copy:",b);}};return jsxRuntime.jsxs("div",{ref:m,className:i(Eg({variant:t,size:r,className:e})),...d,children:[!c&&jsxRuntime.jsx("span",{className:"text-muted-foreground select-none",children:l}),jsxRuntime.jsx("code",{className:"flex-1 truncate",children:a}),n&&jsxRuntime.jsx("button",{type:"button",onClick:f,className:i("flex-shrink-0 rounded p-1 transition-colors","hover:bg-black/10 dark:hover:bg-white/10","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"),"aria-label":u?"Copied":o,children:u?jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4 text-green-500"}):jsxRuntime.jsx(lucideReact.Copy,{className:"h-4 w-4 text-muted-foreground"})})]})});Lg.displayName="Snippet";var pl=classVarianceAuthority.cva("overflow-hidden",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"md"}}),Dg=___namespace.forwardRef(({className:e,radius:t,src:r,alt:a,fallback:n,showSkeleton:o=true,onLoad:s,onError:l,fit:c="cover",aspectRatio:d,style:m,...u},p)=>{let[f,b]=___namespace.useState("loading");___namespace.useEffect(()=>{r&&b("loading");},[r]);let x=()=>{b("loaded"),s?.();},g=()=>{b("error"),l?.();},v={contain:"object-contain",cover:"object-cover",fill:"object-fill",none:"object-none","scale-down":"object-scale-down"}[c];return f==="error"&&n?jsxRuntime.jsx("div",{className:i(pl({radius:t}),"flex items-center justify-center bg-muted",e),style:{aspectRatio:d,...m},children:n}):jsxRuntime.jsxs("div",{className:i(pl({radius:t}),"relative",e),style:{aspectRatio:d,...m},children:[f==="loading"&&o&&jsxRuntime.jsx(Ho,{className:"absolute inset-0 h-full w-full"}),jsxRuntime.jsx("img",{ref:p,src:r,alt:a,onLoad:x,onError:g,className:i("h-full w-full transition-opacity duration-300",v,f==="loading"?"opacity-0":"opacity-100"),...u})]})});Dg.displayName="Image";var Ig=classVarianceAuthority.cva("flex flex-col rounded-lg border bg-background",{variants:{size:{sm:"p-1 gap-0.5",md:"p-1.5 gap-1",lg:"p-2 gap-1.5"}},defaultVariants:{size:"md"}}),Vg=classVarianceAuthority.cva("relative flex cursor-pointer select-none items-center rounded-md outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",{variants:{size:{sm:"px-2 py-1 text-xs",md:"px-3 py-1.5 text-sm",lg:"px-4 py-2 text-base"}},defaultVariants:{size:"md"}}),Ag=___namespace.createContext({value:"",onValueChange:()=>{},multiple:false,size:"md"}),zg=___namespace.forwardRef(({className:e,size:t="md",value:r,defaultValue:a="",onValueChange:n,multiple:o=false,children:s,...l},c)=>{let[d,m]=___namespace.useState(a),u=r??d,p=f=>{let b;if(o){let x=Array.isArray(u)?u:[u].filter(Boolean);x.includes(f)?b=x.filter(g=>g!==f):b=[...x,f];}else b=f;n?n(b):m(b);};return jsxRuntime.jsx(Ag.Provider,{value:{value:u,onValueChange:p,multiple:o,size:t??"md"},children:jsxRuntime.jsx("div",{ref:c,role:"listbox","aria-multiselectable":o,className:i(Ig({size:t,className:e})),...l,children:s})})});zg.displayName="Listbox";var Bg=___namespace.forwardRef(({className:e,value:t,disabled:r,icon:a,description:n,children:o,...s},l)=>{let{value:c,onValueChange:d,multiple:m,size:u}=___namespace.useContext(Ag),p=m?Array.isArray(c)&&c.includes(t):c===t,f=()=>{r||d(t);},b=x=>{(x.key==="Enter"||x.key===" ")&&!r&&(x.preventDefault(),d(t));};return jsxRuntime.jsxs("div",{ref:l,role:"option","aria-selected":p,"data-disabled":r?"":void 0,tabIndex:r?-1:0,className:i(Vg({size:u}),p&&"bg-accent text-accent-foreground",e),onClick:f,onKeyDown:b,...s,children:[a&&jsxRuntime.jsx("span",{className:"mr-2 flex-shrink-0",children:a}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:"truncate",children:o}),n&&jsxRuntime.jsx("div",{className:"text-xs text-muted-foreground truncate",children:n})]}),p&&jsxRuntime.jsx(lucideReact.Check,{className:"ml-2 h-4 w-4 flex-shrink-0"})]})});Bg.displayName="ListboxItem";var Fg=classVarianceAuthority.cva("flex flex-col",{variants:{variant:{default:"gap-2",bordered:"divide-y divide-border rounded-lg border",cards:"gap-2"},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"default",size:"md"}}),Kg=classVarianceAuthority.cva("flex items-center gap-3 bg-background transition-all",{variants:{variant:{default:"rounded-lg border p-3",bordered:"p-3",cards:"rounded-lg border p-3 shadow-sm"},size:{sm:"p-2 text-sm",md:"p-3 text-sm",lg:"p-4 text-base"},isDragging:{true:"opacity-50 scale-[1.02] shadow-lg z-10",false:""},isDragOver:{true:"border-primary border-dashed",false:""}},defaultVariants:{variant:"default",size:"md",isDragging:false,isDragOver:false}});function cN({className:e,variant:t,size:r,items:a,onReorder:n,renderItem:o,showHandle:s=true,disabled:l=false,...c},d){let[m,u]=___namespace.useState(null),[p,f]=___namespace.useState(null),b=(w,h)=>{l||(u(h),w.dataTransfer.effectAllowed="move",w.dataTransfer.setData("text/plain",String(h)));},x=(w,h)=>{w.preventDefault(),!(l||m===null||m===h)&&f(h);},g=()=>{f(null);},v=(w,h)=>{if(w.preventDefault(),l||m===null||m===h){u(null),f(null);return}let C=[...a],[y]=C.splice(m,1);C.splice(h,0,y),n?.(C),u(null),f(null);},R=()=>{u(null),f(null);};return jsxRuntime.jsx("div",{ref:d,className:i(Fg({variant:t,size:r,className:e})),...c,children:a.map((w,h)=>jsxRuntime.jsxs("div",{draggable:!l,onDragStart:C=>b(C,h),onDragOver:C=>x(C,h),onDragLeave:g,onDrop:C=>v(C,h),onDragEnd:R,className:i(Kg({variant:t,size:r,isDragging:m===h,isDragOver:p===h}),!l&&"cursor-move"),children:[s&&jsxRuntime.jsx("div",{className:i("flex-shrink-0 text-muted-foreground",l?"opacity-30":"cursor-grab active:cursor-grabbing"),children:jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-5 w-5"})}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:o(w,h)})]},w.id))})}var dN=___namespace.forwardRef(cN);var _g=classVarianceAuthority.cva("absolute inset-0 z-50 flex items-center justify-center transition-opacity",{variants:{variant:{solid:"bg-background",soft:"bg-background/80 backdrop-blur-sm",ghost:"bg-background/50"},visible:{true:"opacity-100 pointer-events-auto",false:"opacity-0 pointer-events-none"}},defaultVariants:{variant:"soft",visible:true}}),fN={sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8"},Wg=___namespace.forwardRef(({className:e,variant:t,loading:r=true,size:a="md",spinner:n,text:o,children:s,...l},c)=>jsxRuntime.jsxs("div",{ref:c,className:i("relative",e),...l,children:[s,jsxRuntime.jsx("div",{className:i(_g({variant:t,visible:r})),"aria-hidden":!r,children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2",children:[n||jsxRuntime.jsx(lucideReact.Loader2,{className:i(fN[a],"animate-spin text-primary")}),o&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:o})]})})]}));Wg.displayName="LoadingOverlay";var jg=classVarianceAuthority.cva("fixed top-0 left-0 z-[9999] h-0.5 transition-all duration-200 ease-out",{variants:{color:{primary:"bg-primary",secondary:"bg-secondary",success:"bg-success",warning:"bg-warning",danger:"bg-danger",info:"bg-info"}},defaultVariants:{color:"primary"}}),Yg=___namespace.forwardRef(({className:e,color:t,isLoading:r=false,progress:a,showSpinner:n=false,...o},s)=>{let[l,c]=___namespace.useState(0),[d,m]=___namespace.useState(false),u=___namespace.useRef(null);return ___namespace.useEffect(()=>{if(a!==void 0){c(a),m(a>0&&a<100);return}return r?(m(true),c(10),u.current=setInterval(()=>{c(p=>{if(p>=90)return p;let f=Math.random()*10;return Math.min(p+f,90)});},500)):l>0&&(c(100),setTimeout(()=>{m(false),c(0);},200)),()=>{u.current&&clearInterval(u.current);}},[r,a]),!d&&a===void 0||a!==void 0&&(a<=0||a>=100)?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{ref:s,className:i(jg({color:t,className:e})),style:{width:`${l}%`},role:"progressbar","aria-valuenow":l,"aria-valuemin":0,"aria-valuemax":100,...o,children:jsxRuntime.jsx("div",{className:"absolute right-0 h-full w-24 -translate-y-1 rotate-3 bg-inherit opacity-50 blur-sm"})}),n&&d&&jsxRuntime.jsx("div",{className:"fixed top-4 right-4 z-[9999]",children:jsxRuntime.jsx("div",{className:i("h-4 w-4 animate-spin rounded-full border-2 border-transparent",t==="primary"&&"border-t-primary",t==="secondary"&&"border-t-secondary",t==="success"&&"border-t-success",t==="warning"&&"border-t-warning",t==="danger"&&"border-t-danger",t==="info"&&"border-t-info")})})]})});Yg.displayName="NProgress";var Zg=classVarianceAuthority.cva("flex items-center justify-center",{variants:{variant:{spinner:"",dots:"",pulse:"",skeleton:""},size:{sm:"gap-1",md:"gap-2",lg:"gap-3"},fullScreen:{true:"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm",false:""}},defaultVariants:{variant:"spinner",size:"md",fullScreen:false}}),Ug={sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8"},yN={sm:"h-1.5 w-1.5",md:"h-2 w-2",lg:"h-3 w-3"},Jg=___namespace.forwardRef(({className:e,variant:t="spinner",size:r="md",fullScreen:a,text:n,color:o="primary",...s},l)=>{let c={primary:"text-primary",secondary:"text-secondary",muted:"text-muted-foreground"}[o],d=()=>{switch(t){case "dots":return jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:[0,1,2].map(m=>jsxRuntime.jsx("div",{className:i(yN[r||"md"],"animate-bounce rounded-full bg-current",c),style:{animationDelay:`${m*.15}s`}},m))});case "pulse":return jsxRuntime.jsx("div",{className:i(Ug[r||"md"],"animate-pulse rounded-full bg-current",c)});case "skeleton":return jsxRuntime.jsxs("div",{className:"w-full space-y-2",children:[jsxRuntime.jsx("div",{className:"h-4 w-3/4 animate-pulse rounded bg-muted"}),jsxRuntime.jsx("div",{className:"h-4 w-1/2 animate-pulse rounded bg-muted"}),jsxRuntime.jsx("div",{className:"h-4 w-5/6 animate-pulse rounded bg-muted"})]});default:return jsxRuntime.jsx(lucideReact.Loader2,{className:i(Ug[r||"md"],"animate-spin",c)})}};return jsxRuntime.jsx("div",{ref:l,className:i(Zg({variant:t,size:r,fullScreen:a,className:e})),role:"status","aria-label":n||"Loading",...s,children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2",children:[d(),n&&jsxRuntime.jsx("span",{className:i("text-sm",c),children:n})]})})});Jg.displayName="Loading";var bl=class extends ___namespace.Component{constructor(t){super(t),this.state={hasError:false,error:null};}static getDerivedStateFromError(t){return {hasError:true,error:t}}componentDidCatch(t,r){this.props.onError?.(t,r);}componentDidUpdate(t){this.state.hasError&&this.props.resetKeys&&this.props.resetKeys.some((a,n)=>a!==t.resetKeys?.[n])&&this.reset();}reset=()=>{this.props.onReset?.(),this.setState({hasError:false,error:null});};render(){return this.state.hasError?this.props.fallback?this.props.fallback:jsxRuntime.jsx(vl,{error:this.state.error,onReset:this.reset}):this.props.children}},vl=___namespace.forwardRef(({error:e,onReset:t,className:r},a)=>jsxRuntime.jsxs("div",{ref:a,className:i("flex min-h-[200px] flex-col items-center justify-center gap-4 rounded-lg border border-danger/20 bg-danger/5 p-6 text-center",r),role:"alert",children:[jsxRuntime.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-danger/10",children:jsxRuntime.jsx(lucideReact.AlertTriangle,{className:"h-6 w-6 text-danger"})}),jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx("h3",{className:"text-lg font-semibold text-foreground",children:"Something went wrong"}),e&&jsxRuntime.jsx("p",{className:"text-sm text-muted-foreground max-w-md",children:e.message||"An unexpected error occurred"})]}),t&&jsxRuntime.jsxs("button",{onClick:t,className:"inline-flex items-center gap-2 rounded-md bg-danger px-4 py-2 text-sm font-medium text-danger-foreground hover:bg-danger/90 transition-colors",children:[jsxRuntime.jsx(lucideReact.RefreshCw,{className:"h-4 w-4"}),"Try again"]})]}));vl.displayName="DefaultErrorFallback";var CN=bl;var eb=___namespace.forwardRef(({value:e,defaultValue:t,onValueChange:r,placeholder:a="Pick a date range",dateFormat:n="LLL dd, y",disabled:o=false,minDate:s,maxDate:l,numberOfMonths:c=2,className:d,align:m="start"},u)=>{let[p,f]=___namespace.useState(false),[b,x]=___namespace.useState(t),g=e!==void 0,v=g?e:b,R=h=>{g||x(h),r?.(h);},w=h=>{if(!h)return a;let{from:C,to:y}=h;return C&&y?`${dateFns.format(C,n)} - ${dateFns.format(y,n)}`:C?dateFns.format(C,n):a};return jsxRuntime.jsxs(et,{open:p,onOpenChange:f,children:[jsxRuntime.jsx(gt,{asChild:true,children:jsxRuntime.jsxs(Z,{ref:u,variant:"bordered",disabled:o,className:i("w-full justify-start text-left font-normal",!v?.from&&"text-muted-foreground",d),children:[jsxRuntime.jsx(lucideReact.Calendar,{className:"mr-2 h-4 w-4"}),w(v)]})}),jsxRuntime.jsx(tt,{className:"w-auto p-0",align:m,children:jsxRuntime.jsx(on,{mode:"range",defaultMonth:v?.from,selected:v,onSelect:R,numberOfMonths:c,disabled:h=>!!(s&&h<s||l&&h>l),initialFocus:true})})]})});eb.displayName="DateRangePicker";var hn=e=>String(e).padStart(2,"0"),tb=___namespace.forwardRef(({value:e,onValueChange:t,placeholder:r="Pick a time",use24Hour:a=true,minuteStep:n=1,disabled:o=false,className:s},l)=>{let[c,d]=___namespace.useState(false),m=a?Array.from({length:24},(w,h)=>h):Array.from({length:12},(w,h)=>h+1),u=Array.from({length:Math.floor(60/n)},(w,h)=>h*n),p=w=>{if(!w)return r;if(a)return `${hn(w.hours)}:${hn(w.minutes)}`;let h=w.hours%12||12,C=w.hours>=12?"PM":"AM";return `${hn(h)}:${hn(w.minutes)} ${C}`},f=w=>{let h=e?.minutes??0,C=w;if(!a&&e){let y=e.hours>=12;y&&w!==12?C=w+12:!y&&w===12&&(C=0);}t?.({hours:C,minutes:h});},b=w=>{let h=e?.hours??0;t?.({hours:h,minutes:w});},x=w=>{if(!e)return;let h=e.hours;w==="AM"&&e.hours>=12?h=e.hours-12:w==="PM"&&e.hours<12&&(h=e.hours+12),t?.({hours:h,minutes:e.minutes});},g=()=>{let w=new Date;t?.({hours:w.getHours(),minutes:w.getMinutes()});},v=e?e.hours>=12?"PM":"AM":void 0,R=e?a?e.hours:e.hours%12||12:void 0;return jsxRuntime.jsxs(et,{open:c,onOpenChange:d,children:[jsxRuntime.jsx(gt,{asChild:true,children:jsxRuntime.jsxs(Z,{ref:l,variant:"bordered",disabled:o,className:i("w-full justify-start text-left font-normal",!e&&"text-muted-foreground",s),children:[jsxRuntime.jsx(lucideReact.Clock,{className:"mr-2 h-4 w-4"}),p(e)]})}),jsxRuntime.jsxs(tt,{className:"w-auto p-0",align:"start",children:[jsxRuntime.jsxs("div",{className:"flex",children:[jsxRuntime.jsxs("div",{className:"flex flex-col",children:[jsxRuntime.jsx("div",{className:"border-b px-3 py-2 text-center text-xs font-medium text-muted-foreground",children:"Hour"}),jsxRuntime.jsx(_e,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"flex flex-col p-1",children:m.map(w=>jsxRuntime.jsx(Z,{variant:R===w?"solid":"ghost",size:"sm",className:"h-8 w-12 justify-center",onClick:()=>f(w),children:hn(w)},w))})})]}),jsxRuntime.jsxs("div",{className:"flex flex-col border-l",children:[jsxRuntime.jsx("div",{className:"border-b px-3 py-2 text-center text-xs font-medium text-muted-foreground",children:"Min"}),jsxRuntime.jsx(_e,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"flex flex-col p-1",children:u.map(w=>jsxRuntime.jsx(Z,{variant:e?.minutes===w?"solid":"ghost",size:"sm",className:"h-8 w-12 justify-center",onClick:()=>b(w),children:hn(w)},w))})})]}),!a&&jsxRuntime.jsxs("div",{className:"flex flex-col border-l",children:[jsxRuntime.jsx("div",{className:"border-b px-3 py-2 text-center text-xs font-medium text-muted-foreground",children:"\xA0"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1 p-1",children:[jsxRuntime.jsx(Z,{variant:v==="AM"?"solid":"ghost",size:"sm",className:"h-8 w-12",onClick:()=>x("AM"),children:"AM"}),jsxRuntime.jsx(Z,{variant:v==="PM"?"solid":"ghost",size:"sm",className:"h-8 w-12",onClick:()=>x("PM"),children:"PM"})]})]})]}),jsxRuntime.jsxs("div",{className:"flex justify-between border-t p-2",children:[jsxRuntime.jsx(Z,{variant:"ghost",size:"sm",onClick:g,children:"Now"}),jsxRuntime.jsx(Z,{size:"sm",onClick:()=>d(false),children:"Done"})]})]})]})});tb.displayName="TimePicker";var rb=classVarianceAuthority.cva("overflow-auto",{variants:{variant:{default:"",bordered:"border rounded-lg",cards:""}},defaultVariants:{variant:"default"}});function PN({className:e,variant:t,items:r,itemHeight:a,height:n,overscan:o=3,renderItem:s,getItemKey:l,gap:c=0,onScrollChange:d,...m},u){let p=___namespace.useRef(null),[f,b]=___namespace.useState(0);___namespace.useImperativeHandle(u,()=>p.current);let x=r.length*(a+c)-c,g=a+c,v=Math.max(0,Math.floor(f/g)-o),R=Math.ceil(n/g)+2*o,w=Math.min(r.length-1,v+R),h=y=>{let T=y.currentTarget.scrollTop;b(T),d?.(T);},C=___namespace.useMemo(()=>{let y=[];for(let T=v;T<=w;T++)r[T]!==void 0&&y.push({item:r[T],index:T,style:{position:"absolute",top:T*g,left:0,right:0,height:a}});return y},[r,v,w,g,a]);return jsxRuntime.jsx("div",{ref:p,className:i(rb({variant:t,className:e})),style:{height:n,position:"relative"},onScroll:h,...m,children:jsxRuntime.jsx("div",{style:{height:x,position:"relative"},children:C.map(({item:y,index:T,style:N})=>jsxRuntime.jsx("div",{style:N,children:s(y,T)},l?l(y,T):T))})})}var kN=___namespace.forwardRef(PN);var nb=classVarianceAuthority.cva("",{variants:{variant:{default:"",bordered:"border rounded-lg overflow-hidden"}},defaultVariants:{variant:"default"}}),yl=classVarianceAuthority.cva("flex items-center justify-center py-4",{variants:{size:{sm:"py-2",md:"py-4",lg:"py-6"}},defaultVariants:{size:"md"}}),ob=___namespace.forwardRef(({className:e,variant:t,size:r,children:a,onLoadMore:n,hasMore:o,isLoading:s=false,loader:l,threshold:c=100,rootMargin:d,useWindow:m=false,endMessage:u,...p},f)=>{let b=___namespace.useRef(null),x=___namespace.useRef(null),g=___namespace.useRef(false);___namespace.useImperativeHandle(f,()=>b.current),___namespace.useEffect(()=>{let R=x.current;if(!R)return;let w=new IntersectionObserver(h=>{let[C]=h;C.isIntersecting&&o&&!s&&!g.current&&(g.current=true,Promise.resolve(n()).finally(()=>{g.current=false;}));},{root:m?null:b.current,rootMargin:d||`${c}px`,threshold:0});return w.observe(R),()=>{w.disconnect();}},[o,s,n,c,d,m]);let v=jsxRuntime.jsx("div",{className:i(yl({size:r})),children:jsxRuntime.jsx(lucideReact.Loader2,{className:"h-6 w-6 animate-spin text-muted-foreground"})});return jsxRuntime.jsxs("div",{ref:b,className:i(nb({variant:t,className:e})),...p,children:[a,jsxRuntime.jsx("div",{ref:x,className:"h-px w-full"}),s&&(l||v),!o&&!s&&u&&jsxRuntime.jsx("div",{className:i(yl({size:r}),"text-muted-foreground text-sm"),children:u})]})});ob.displayName="InfiniteScroll";var ro=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("span",{ref:r,className:i("absolute h-px w-px p-0 -m-px overflow-hidden whitespace-nowrap border-0","[clip:rect(0,0,0,0)]",e),...t}));ro.displayName="VisuallyHidden";var ib={opaque:"bg-black/80",blur:"bg-black/50 backdrop-blur-sm",transparent:"bg-transparent"},SN={auto:"top-[50%] translate-y-[-50%]",center:"top-[50%] translate-y-[-50%]",top:"top-4 translate-y-0",bottom:"top-auto bottom-4 translate-y-0","top-center":"top-[20%] translate-y-0","bottom-center":"top-auto bottom-[20%] translate-y-0"},lb=classVarianceAuthority.cva("fixed inset-0 z-50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"),Rl=classVarianceAuthority.cva("fixed left-[50%] z-50 grid translate-x-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:rounded-lg",{variants:{size:{xs:"w-full max-w-xs",sm:"w-full max-w-sm",md:"w-full max-w-md",lg:"w-full max-w-lg",xl:"w-full max-w-xl","2xl":"w-full max-w-2xl","3xl":"w-full max-w-3xl","4xl":"w-full max-w-4xl","5xl":"w-full max-w-5xl",full:"w-[calc(100vw-2rem)] h-[calc(100vh-2rem)] max-w-none"}},defaultVariants:{size:"md"}}),Ts=___namespace.createContext(null),Ia=()=>{let e=___namespace.useContext(Ts);if(!e)throw new Error("Modal components must be used within a Modal");return e},db=___namespace.forwardRef(({open:e,onOpenChange:t,trigger:r,title:a="Modal",children:n,hideCloseButton:o=false,isDismissable:s=true,isKeyboardDismissDisabled:l=false,backdrop:c="opaque",placement:d="center",scrollBehavior:m="inside",size:u,className:p},f)=>{let[b,x]=___namespace.useState(false),g=e!==void 0,v=g?e:b,[R,w]=___namespace.useState(false),h=___namespace.useRef(null),C=___namespace.useId(),y=___namespace.useId();___namespace.useEffect(()=>{w(true);},[]);let T=___namespace.useCallback(P=>{g||x(P),t?.(P);},[g,t]);___namespace.useEffect(()=>(v&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="";}),[v]),___namespace.useEffect(()=>{if(!v||l)return;let P=k=>{k.key==="Escape"&&T(false);};return document.addEventListener("keydown",P),()=>document.removeEventListener("keydown",P)},[v,l,T]);let N=P=>{s&&P.target===P.currentTarget&&T(false);},E=r?___namespace.isValidElement(r)?___namespace.cloneElement(r,{onClick:P=>{r.props.onClick?.(P),T(true);}}):jsxRuntime.jsx("button",{type:"button",onClick:()=>T(true),children:r}):null,M=()=>!R||!v?null:m==="outside"?$o__namespace.createPortal(jsxRuntime.jsx("div",{"data-state":v?"open":"closed",className:i(lb(),ib[c],"overflow-y-auto flex items-start justify-center py-4"),onClick:N,children:jsxRuntime.jsxs("div",{ref:P=>{h.current=P,typeof f=="function"?f(P):f&&(f.current=P);},role:"dialog","aria-modal":"true","aria-labelledby":C,"aria-describedby":y,"data-state":v?"open":"closed",className:i("relative z-50 grid gap-4 border bg-background p-6 shadow-lg sm:rounded-lg dark:border-0",u==="xs"&&"w-full max-w-xs",u==="sm"&&"w-full max-w-sm",u==="md"&&"w-full max-w-md",u==="lg"&&"w-full max-w-lg",u==="xl"&&"w-full max-w-xl",u==="2xl"&&"w-full max-w-2xl",u==="3xl"&&"w-full max-w-3xl",u==="4xl"&&"w-full max-w-4xl",u==="5xl"&&"w-full max-w-5xl",u==="full"&&"w-[calc(100vw-2rem)] min-h-[calc(100vh-2rem)]",!u&&"w-full max-w-md",p),children:[jsxRuntime.jsx(ro,{children:jsxRuntime.jsx("h2",{id:C,children:a})}),n,!o&&jsxRuntime.jsx(vr,{variant:"light",className:"absolute right-4 top-4 z-10",onClick:()=>T(false)})]})}),document.body):$o__namespace.createPortal(jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{"data-state":v?"open":"closed",className:i(lb(),ib[c]),onClick:N,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:P=>{h.current=P,typeof f=="function"?f(P):f&&(f.current=P);},role:"dialog","aria-modal":"true","aria-labelledby":C,"aria-describedby":y,"data-state":v?"open":"closed",className:i(Rl({size:u}),SN[d],"dark:border-0 max-h-[calc(100vh-2rem)] !flex !flex-col overflow-hidden gap-4",p),children:[jsxRuntime.jsx(ro,{children:jsxRuntime.jsx("h2",{id:C,children:a})}),n,!o&&jsxRuntime.jsx(vr,{variant:"light",className:"absolute right-4 top-4 z-10",onClick:()=>T(false)})]})]}),document.body);return jsxRuntime.jsxs(Ts.Provider,{value:{open:v,onOpenChange:T,scrollBehavior:m,titleId:C,descriptionId:y},children:[E,M()]})});db.displayName="Modal";var ub=({children:e,open:t,defaultOpen:r=false,onOpenChange:a,scrollBehavior:n="inside"})=>{let[o,s]=___namespace.useState(r),l=t!==void 0,c=l?t:o,d=___namespace.useId(),m=___namespace.useId(),u=___namespace.useCallback(p=>{l||s(p),a?.(p);},[l,a]);return jsxRuntime.jsx(Ts.Provider,{value:{open:c,onOpenChange:u,scrollBehavior:n,titleId:d,descriptionId:m},children:e})};ub.displayName="ModalRoot";var mb=___namespace.forwardRef(({asChild:e,children:t,onClick:r,...a},n)=>{let{onOpenChange:o}=Ia(),s=l=>{r?.(l),o(true);};return e&&___namespace.isValidElement(t)?___namespace.cloneElement(t,{ref:n,onClick:l=>{t.props.onClick?.(l),o(true);},...a}):jsxRuntime.jsx("button",{ref:n,type:"button",onClick:s,...a,children:t})});mb.displayName="ModalTrigger";var wl=({children:e,container:t})=>{let[r,a]=___namespace.useState(false);return ___namespace.useEffect(()=>{a(true);},[]),r?$o__namespace.createPortal(e,t||document.body):null};wl.displayName="ModalPortal";var Cl=___namespace.forwardRef(({className:e,...t},r)=>{let{open:a,onOpenChange:n}=Ia();return a?jsxRuntime.jsx("div",{ref:r,"data-state":a?"open":"closed",className:i("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),onClick:()=>n(false),"aria-hidden":"true",...t}):null});Cl.displayName="ModalOverlay";var Nl=___namespace.forwardRef(({asChild:e,children:t,onClick:r,...a},n)=>{let{onOpenChange:o}=Ia(),s=l=>{r?.(l),o(false);};return e&&___namespace.isValidElement(t)?___namespace.cloneElement(t,{ref:n,onClick:l=>{t.props.onClick?.(l),o(false);},...a}):jsxRuntime.jsx("button",{ref:n,type:"button",onClick:s,...a,children:t})});Nl.displayName="ModalClose";var pb=___namespace.forwardRef(({className:e,children:t,size:r,showCloseButton:a=true,onEscapeKeyDown:n,onInteractOutside:o,...s},l)=>{let{open:c,onOpenChange:d,titleId:m,descriptionId:u}=Ia(),[p,f]=___namespace.useState(false);return ___namespace.useEffect(()=>{f(true);},[]),___namespace.useEffect(()=>(c&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="";}),[c]),___namespace.useEffect(()=>{if(!c)return;let b=x=>{x.key==="Escape"&&(n?.(),d(false));};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[c,d,n]),!p||!c?null:jsxRuntime.jsxs(wl,{children:[jsxRuntime.jsx(Cl,{}),jsxRuntime.jsxs("div",{ref:l,role:"dialog","aria-modal":"true","aria-labelledby":m,"aria-describedby":u,"data-state":c?"open":"closed",className:i(Rl({size:r}),"top-[50%] translate-y-[-50%]",e),...s,children:[t,a&&jsxRuntime.jsx(Nl,{asChild:true,children:jsxRuntime.jsx(vr,{variant:"light",className:"absolute right-4 top-4 z-10"})})]})]})});pb.displayName="ModalContent";var fb=({className:e,...t})=>jsxRuntime.jsx("div",{className:i("flex-shrink-0 flex flex-col space-y-1.5 text-center sm:text-left",e),...t});fb.displayName="ModalHeader";var gb=({className:e,children:t})=>(___namespace.useContext(Ts)?.scrollBehavior??"inside")==="inside"?jsxRuntime.jsx(_e,{className:i("flex-1 min-h-0 -mx-6 px-6",e),children:t}):jsxRuntime.jsx("div",{className:i(e),children:t});gb.displayName="ModalBody";var bb=({className:e,children:t,...r})=>{let{onOpenChange:a}=Ia();return jsxRuntime.jsx("div",{className:i("flex-shrink-0 flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...r,children:___namespace.Children.map(t,n=>___namespace.isValidElement(n)?___namespace.cloneElement(n,{onClick:o=>{n.props.onClick?.(o),a(false);}}):n)})};bb.displayName="ModalFooter";var vb=___namespace.forwardRef(({className:e,...t},r)=>{let{titleId:a}=Ia();return jsxRuntime.jsx("h2",{ref:r,id:a,className:i("text-lg font-semibold leading-none tracking-tight",e),...t})});vb.displayName="ModalTitle";var hb=___namespace.forwardRef(({className:e,...t},r)=>{let{descriptionId:a}=Ia();return jsxRuntime.jsx("p",{ref:r,id:a,className:i("text-sm text-muted-foreground",e),...t})});hb.displayName="ModalDescription";var Rb=classVarianceAuthority.cva("h-10 w-10 rounded-full p-2",{variants:{variant:{default:"bg-muted text-foreground",danger:"bg-danger/10 text-danger",warning:"bg-warning/10 text-warning",success:"bg-success/10 text-success",info:"bg-info/10 text-info"}},defaultVariants:{variant:"default"}}),ON=classVarianceAuthority.cva("",{variants:{variant:{default:"",danger:"bg-danger text-danger-foreground hover:bg-danger/90",warning:"bg-warning text-warning-foreground hover:bg-warning/90",success:"bg-success text-success-foreground hover:bg-success/90",info:"bg-info text-info-foreground hover:bg-info/90"}},defaultVariants:{variant:"default"}}),FN=___namespace.createContext(null),KN={default:lucideReact.HelpCircle,danger:lucideReact.XCircle,warning:lucideReact.AlertTriangle,success:lucideReact.CheckCircle,info:lucideReact.Info},Ml=___namespace.forwardRef(({open:e,onOpenChange:t,trigger:r,title:a,description:n,confirmText:o="Confirm",cancelText:s="Cancel",onConfirm:l,onCancel:c,showIcon:d=true,icon:m,variant:u="default",loading:p=false,disabled:f=false,className:b},x)=>{let[g,v]=___namespace.useState(false),[R,w]=___namespace.useState(false),[h,C]=___namespace.useState(false),y=e!==void 0,T=y?e:g,N=KN[u||"default"],E=___namespace.useId(),M=___namespace.useId();___namespace.useEffect(()=>{C(true);},[]);let P=___namespace.useCallback(V=>{y||v(V),t?.(V);},[y,t]);___namespace.useEffect(()=>(T&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="";}),[T]);let k=async()=>{if(l){let V=l();if(V instanceof Promise){w(true);try{await V;}finally{w(false);}}}P(false);},L=()=>{c?.(),P(false);},H=p||R,S=r?___namespace.isValidElement(r)?___namespace.cloneElement(r,{onClick:V=>{r.props.onClick?.(V),P(true);}}):jsxRuntime.jsx("button",{type:"button",onClick:()=>P(true),children:r}):null,D=()=>!h||!T?null:$o__namespace.createPortal(jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{"data-state":T?"open":"closed",className:"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","aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:x,role:"alertdialog","aria-modal":"true","aria-labelledby":E,"aria-describedby":n?M:void 0,"data-state":T?"open":"closed",className:i("fixed left-[50%] top-[50%] z-50 grid w-full max-w-md 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",b),children:[jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-4 sm:flex-row sm:items-start",children:[d&&jsxRuntime.jsx("div",{className:i(Rb({variant:u})),children:m||jsxRuntime.jsx(N,{className:"h-6 w-6"})}),jsxRuntime.jsxs("div",{className:"flex flex-col space-y-2 text-center sm:text-left",children:[jsxRuntime.jsx("h2",{id:E,className:"text-lg font-semibold",children:a}),n&&jsxRuntime.jsx("p",{id:M,className:"text-sm text-muted-foreground",children:n})]})]}),jsxRuntime.jsxs("div",{className:"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",children:[jsxRuntime.jsx("button",{type:"button",className:i(fr({variant:"bordered"})),onClick:L,disabled:H,children:s}),jsxRuntime.jsx("button",{type:"button",className:i(fr(),ON({variant:u}),H&&"opacity-50 cursor-not-allowed"),onClick:k,disabled:f||H,children:H?jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("svg",{className:"h-4 w-4 animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Loading..."]}):o})]})]})]}),document.body);return jsxRuntime.jsxs(FN.Provider,{value:{open:T,onOpenChange:P,titleId:E,descriptionId:M},children:[S,D()]})});Ml.displayName="ConfirmDialog";function GN(){let[e,t]=___namespace.useState({open:false,options:null,resolve:null}),r=___namespace.useCallback(l=>new Promise(c=>{t({open:true,options:l,resolve:c});}),[]),a=___namespace.useCallback(()=>{e.resolve?.(true),t({open:false,options:null,resolve:null});},[e.resolve]),n=___namespace.useCallback(()=>{e.resolve?.(false),t({open:false,options:null,resolve:null});},[e.resolve]),o=___namespace.useCallback(l=>{l||(e.resolve?.(false),t({open:false,options:null,resolve:null}));},[e.resolve]),s=___namespace.useMemo(()=>e.options?jsxRuntime.jsx(Ml,{open:e.open,onOpenChange:o,title:e.options.title,description:e.options.description,confirmText:e.options.confirmText,cancelText:e.options.cancelText,variant:e.options.variant,onConfirm:a,onCancel:n}):null,[e,a,n,o]);return {confirm:r,ConfirmDialog:s}}var QN=e=>e.map(t=>typeof t=="string"?{src:t}:t),Tl=___namespace.forwardRef(({images:e,open:t,onOpenChange:r,initialIndex:a=0,onIndexChange:n,trigger:o,showThumbnails:s=true,showZoom:l=true,showRotate:c=true,showDownload:d=true,showFullscreen:m=true,showNavigation:u=true,showCounter:p=true,closeOnBackdropClick:f=true,className:b},x)=>{let g=___namespace.useMemo(()=>QN(e),[e]),[v,R]=___namespace.useState(a),[w,h]=___namespace.useState(1),[C,y]=___namespace.useState(0),[T,N]=___namespace.useState(false),[E,M]=___namespace.useState(false),[P,k]=___namespace.useState({x:0,y:0}),[L,H]=___namespace.useState({x:0,y:0}),[S,D]=___namespace.useState(false),V=___namespace.useRef(null),z=g[v];___namespace.useEffect(()=>{D(true);},[]),___namespace.useEffect(()=>{R(a);},[a]),___namespace.useEffect(()=>{n?.(v);},[v,n]),___namespace.useEffect(()=>{h(1),y(0),k({x:0,y:0});},[v]),___namespace.useEffect(()=>(t&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="";}),[t]);let G=___namespace.useCallback(()=>{R(re=>re>0?re-1:g.length-1);},[g.length]),I=___namespace.useCallback(()=>{R(re=>re<g.length-1?re+1:0);},[g.length]),F=()=>{h(re=>Math.min(re+.5,4));},O=()=>{h(re=>{let Ue=Math.max(re-.5,.5);return Ue===1&&k({x:0,y:0}),Ue});},ee=()=>{y(re=>(re+90)%360);},ae=async()=>{if(z)try{let Ue=await(await fetch(z.src)).blob(),Ut=URL.createObjectURL(Ue),St=document.createElement("a");St.href=Ut,St.download=z.alt||`image-${v+1}`,document.body.appendChild(St),St.click(),document.body.removeChild(St),URL.revokeObjectURL(Ut);}catch{window.open(z.src,"_blank");}},K=async()=>{if(V.current)if(T)try{await document.exitFullscreen(),N(!1);}catch{}else try{await V.current.requestFullscreen(),N(!0);}catch{}},B=re=>{w>1&&(M(true),H({x:re.clientX-P.x,y:re.clientY-P.y}));},W=re=>{E&&w>1&&k({x:re.clientX-L.x,y:re.clientY-L.y});},A=()=>{M(false);},j=()=>{r?.(false);},Y=re=>{f&&re.target===re.currentTarget&&j();},Se=___namespace.useCallback(re=>{switch(re.key){case "ArrowLeft":G();break;case "ArrowRight":I();break;case "Escape":r?.(false);break;case "+":case "=":F();break;case "-":O();break}},[G,I,r]);if(___namespace.useEffect(()=>{if(t)return window.addEventListener("keydown",Se),()=>window.removeEventListener("keydown",Se)},[t,Se]),___namespace.useEffect(()=>{let re=()=>{N(!!document.fullscreenElement);};return document.addEventListener("fullscreenchange",re),()=>document.removeEventListener("fullscreenchange",re)},[]),g.length===0)return null;let pe=o?___namespace.isValidElement(o)?___namespace.cloneElement(o,{onClick:re=>{o.props.onClick?.(re),r?.(true);}}):jsxRuntime.jsx("button",{type:"button",onClick:()=>r?.(true),children:o}):null;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[pe,!S||!t?null:$o__namespace.createPortal(jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"fixed inset-0 z-50 bg-black/90 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-state":t?"open":"closed",onClick:Y}),jsxRuntime.jsxs("div",{ref:x,className:i("fixed inset-0 z-50 flex flex-col outline-none",b),children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between p-4 text-white",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[p&&g.length>1&&jsxRuntime.jsxs("span",{className:"text-sm",children:[v+1," / ",g.length]}),z?.title&&jsxRuntime.jsx("span",{className:"ml-4 text-sm font-medium",children:z.title})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[l&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:O,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:"Zoom out",children:jsxRuntime.jsx(lucideReact.ZoomOut,{className:"h-5 w-5"})}),jsxRuntime.jsxs("span",{className:"min-w-[3rem] text-center text-sm",children:[Math.round(w*100),"%"]}),jsxRuntime.jsx("button",{onClick:F,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:"Zoom in",children:jsxRuntime.jsx(lucideReact.ZoomIn,{className:"h-5 w-5"})})]}),c&&jsxRuntime.jsx("button",{onClick:ee,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:"Rotate",children:jsxRuntime.jsx(lucideReact.RotateCw,{className:"h-5 w-5"})}),d&&jsxRuntime.jsx("button",{onClick:ae,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:"Download",children:jsxRuntime.jsx(lucideReact.Download,{className:"h-5 w-5"})}),m&&jsxRuntime.jsx("button",{onClick:K,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:T?"Exit fullscreen":"Fullscreen",children:T?jsxRuntime.jsx(lucideReact.Minimize2,{className:"h-5 w-5"}):jsxRuntime.jsx(lucideReact.Maximize2,{className:"h-5 w-5"})}),jsxRuntime.jsxs("button",{onClick:j,className:"rounded-full p-2 hover:bg-white/10 transition-colors ml-2",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-5 w-5"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]})]}),jsxRuntime.jsxs("div",{ref:V,className:"relative flex-1 flex items-center justify-center overflow-hidden",onMouseDown:B,onMouseMove:W,onMouseUp:A,onMouseLeave:A,children:[u&&g.length>1&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:G,className:"absolute left-4 z-10 rounded-full bg-black/50 p-3 text-white hover:bg-black/70 transition-colors",children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-6 w-6"})}),jsxRuntime.jsx("button",{onClick:I,className:"absolute right-4 z-10 rounded-full bg-black/50 p-3 text-white hover:bg-black/70 transition-colors",children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-6 w-6"})})]}),jsxRuntime.jsx("img",{src:z?.src,alt:z?.alt||"",className:i("max-h-full max-w-full object-contain transition-transform duration-200",E?"cursor-grabbing":w>1?"cursor-grab":""),style:{transform:`translate(${P.x}px, ${P.y}px) scale(${w}) rotate(${C}deg)`},draggable:false})]}),z?.description&&jsxRuntime.jsx("div",{className:"p-4 text-center text-white text-sm",children:z.description}),s&&g.length>1&&jsxRuntime.jsx("div",{className:"flex justify-center gap-2 p-4 overflow-x-auto",children:g.map((re,Ue)=>jsxRuntime.jsx("button",{onClick:()=>R(Ue),className:i("h-16 w-16 flex-shrink-0 overflow-hidden rounded border-2 transition-all",v===Ue?"border-white opacity-100":"border-transparent opacity-50 hover:opacity-75"),children:jsxRuntime.jsx("img",{src:re.src,alt:re.alt||`Thumbnail ${Ue+1}`,className:"h-full w-full object-cover"})},Ue))})]})]}),document.body)]})});Tl.displayName="ImageViewer";var Cb=({children:e,images:t,index:r=0,className:a})=>{let[n,o]=___namespace.useState(false);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:()=>o(true),className:i("cursor-zoom-in",a),children:e}),jsxRuntime.jsx(Tl,{images:t,open:n,onOpenChange:o,initialIndex:r})]})};Cb.displayName="ImageViewerTrigger";var Mb=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{solid:"bg-primary text-primary-foreground hover:bg-primary/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground",soft:"bg-primary/10 text-primary hover:bg-primary/20",surface:"bg-muted hover:bg-muted/80"},size:{sm:"h-7 w-7",md:"h-9 w-9",lg:"h-11 w-11"},color:{default:"",primary:"",secondary:"",success:"",warning:"",danger:""},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},compoundVariants:[{variant:"solid",color:"primary",className:"bg-primary text-primary-foreground hover:bg-primary/90"},{variant:"solid",color:"secondary",className:"bg-secondary text-secondary-foreground hover:bg-secondary/90"},{variant:"solid",color:"success",className:"bg-success text-success-foreground hover:bg-success/90"},{variant:"solid",color:"warning",className:"bg-warning text-warning-foreground hover:bg-warning/90"},{variant:"solid",color:"danger",className:"bg-danger text-danger-foreground hover:bg-danger/90"},{variant:"soft",color:"primary",className:"bg-primary/10 text-primary hover:bg-primary/20"},{variant:"soft",color:"secondary",className:"bg-secondary/10 text-secondary-foreground hover:bg-secondary/20"},{variant:"soft",color:"success",className:"bg-success/10 text-success hover:bg-success/20"},{variant:"soft",color:"warning",className:"bg-warning/10 text-warning hover:bg-warning/20"},{variant:"soft",color:"danger",className:"bg-danger/10 text-danger hover:bg-danger/20"},{variant:"outline",color:"primary",className:"border-primary text-primary hover:bg-primary/10"},{variant:"outline",color:"success",className:"border-success text-success hover:bg-success/10"},{variant:"outline",color:"warning",className:"border-warning text-warning hover:bg-warning/10"},{variant:"outline",color:"danger",className:"border-danger text-danger hover:bg-danger/10"}],defaultVariants:{variant:"ghost",size:"md",color:"default",radius:"md"}}),Tb=___namespace.forwardRef(({className:e,variant:t,size:r,color:a,radius:n,loading:o,disabled:s,children:l,...c},d)=>jsxRuntime.jsx("button",{ref:d,type:"button",className:i(Mb({variant:t,size:r,color:a,radius:n}),e),disabled:s||o,...c,children:o?jsxRuntime.jsxs("svg",{className:"animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",style:{width:"1em",height:"1em"},children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):l}));Tb.displayName="ActionIcon";var Eb=({children:e,container:t,disabled:r=false})=>{let[a,n]=___namespace.useState(false);if(___namespace.useEffect(()=>{n(true);},[]),r||!a)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:e});let o=null;return typeof t=="string"?o=document.querySelector(t):t instanceof Element?o=t:o=document.body,o?$o.createPortal(e,o):jsxRuntime.jsx(jsxRuntime.Fragment,{children:e})};Eb.displayName="Portal";var Lb=classVarianceAuthority.cva("absolute rounded-full border-2 border-background",{variants:{color:{default:"bg-muted-foreground",primary:"bg-primary",secondary:"bg-secondary",success:"bg-success",warning:"bg-warning",danger:"bg-danger"},size:{sm:"h-2 w-2",md:"h-2.5 w-2.5",lg:"h-3 w-3"},position:{"top-right":"top-0 right-0 -translate-y-1/3 translate-x-1/3","top-left":"top-0 left-0 -translate-y-1/3 -translate-x-1/3","bottom-right":"bottom-0 right-0 translate-y-1/3 translate-x-1/3","bottom-left":"bottom-0 left-0 translate-y-1/3 -translate-x-1/3"},ping:{true:"",false:""}},defaultVariants:{color:"primary",size:"md",position:"top-right",ping:false}}),Db=___namespace.forwardRef(({className:e,color:t,size:r,position:a,ping:n,content:o,show:s=true,offset:l,style:c,...d},m)=>{if(!s)return null;let u=o!=null;return jsxRuntime.jsxs("span",{ref:m,className:i(Lb({color:t,size:u?void 0:r,position:a,ping:n}),u&&"flex h-auto w-auto min-w-[1.25rem] items-center justify-center px-1 py-0.5 text-[10px] font-medium text-white",e),style:{...c,...l!==void 0&&{transform:`translate(${a?.includes("right")?l:-l}px, ${a?.includes("top")?-l:l}px)`}},...d,children:[n&&jsxRuntime.jsx("span",{className:i("absolute inline-flex h-full w-full animate-ping rounded-full opacity-75",t==="default"&&"bg-muted-foreground",t==="primary"&&"bg-primary",t==="secondary"&&"bg-secondary",t==="success"&&"bg-success",t==="warning"&&"bg-warning",t==="danger"&&"bg-danger")}),o]})});Db.displayName="Indicator";var Sb=___namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i("relative inline-flex",e),...r,children:t}));Sb.displayName="IndicatorWrapper";var Ib=classVarianceAuthority.cva("relative overflow-auto",{variants:{orientation:{vertical:"",horizontal:"",both:""},size:{sm:"",md:"",lg:""}},defaultVariants:{orientation:"vertical",size:"md"}}),Vb=___namespace.forwardRef(({className:e,orientation:t,size:r,hideScrollbar:a=false,shadowColor:n="rgba(0, 0, 0, 0.1)",children:o,...s},l)=>{let c=___namespace.useRef(null),[d,m]=___namespace.useState({top:false,bottom:false,left:false,right:false});___namespace.useImperativeHandle(l,()=>c.current);let u=___namespace.useCallback(()=>{let v=c.current;if(!v)return;let{scrollTop:R,scrollLeft:w,scrollHeight:h,scrollWidth:C,clientHeight:y,clientWidth:T}=v;m({top:R>0,bottom:R<h-y-1,left:w>0,right:w<C-T-1});},[]);___namespace.useEffect(()=>{let v=c.current;if(v)return u(),v.addEventListener("scroll",u),window.addEventListener("resize",u),()=>{v.removeEventListener("scroll",u),window.removeEventListener("resize",u);}},[u]);let f={sm:"20px",md:"40px",lg:"60px"}[r??"md"],b=t==="vertical"||t==="both",x=t==="horizontal"||t==="both",g={maskImage:[b&&d.top&&`linear-gradient(to bottom, transparent, black ${f})`,b&&d.bottom&&`linear-gradient(to top, transparent, black ${f})`,x&&d.left&&`linear-gradient(to right, transparent, black ${f})`,x&&d.right&&`linear-gradient(to left, transparent, black ${f})`].filter(Boolean).join(", ")||void 0,maskComposite:"intersect",WebkitMaskComposite:"source-in"};return jsxRuntime.jsx("div",{ref:c,className:i(Ib({orientation:t,size:r}),a&&"scrollbar-hide [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]",e),style:g,...s,children:o})});Vb.displayName="ScrollShadow";var Ab=classVarianceAuthority.cva("inline-flex items-center justify-center font-mono font-medium",{variants:{variant:{default:"rounded border border-border bg-muted text-muted-foreground shadow-sm",outline:"rounded border border-border text-foreground",ghost:"text-muted-foreground"},size:{sm:"min-w-[1.25rem] px-1 py-0.5 text-[10px]",md:"min-w-[1.5rem] px-1.5 py-0.5 text-xs",lg:"min-w-[2rem] px-2 py-1 text-sm"}},defaultVariants:{variant:"default",size:"md"}}),lM={cmd:"\u2318",command:"\u2318",meta:"\u2318",ctrl:"\u2303",control:"\u2303",alt:"\u2325",option:"\u2325",shift:"\u21E7",enter:"\u21B5",return:"\u21B5",backspace:"\u232B",delete:"\u2326",escape:"\u238B",esc:"\u238B",tab:"\u21E5",space:"\u2423",up:"\u2191",down:"\u2193",left:"\u2190",right:"\u2192",pageup:"\u21DE",pagedown:"\u21DF",home:"\u2912",end:"\u2913",capslock:"\u21EA"},cM={cmd:"meta",command:"meta",ctrl:"control",alt:"alt",option:"alt",shift:"shift",enter:"enter",return:"enter",backspace:"backspace",delete:"delete",escape:"escape",esc:"escape",tab:"tab",space:" ",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright",pageup:"pageup",pagedown:"pagedown",home:"home",end:"end"},dM=e=>{let t=e.toLowerCase();return lM[t]||e.toUpperCase()},no=e=>{let t=e.toLowerCase();return cM[t]||t},ks=e=>{let t=no(e);return ["meta","control","alt","shift"].includes(t)},zb=___namespace.forwardRef(({className:e,variant:t,size:r,keys:a,children:n,onPress:o,disabled:s,preventDefault:l=true,...c},d)=>{___namespace.useEffect(()=>{if(!o||!a||s)return;let u=Array.isArray(a)?a:[a],p=u.filter(ks).map(no),f=u.filter(x=>!ks(x)).map(no),b=x=>{let g=p.includes("meta")===x.metaKey,v=p.includes("control")===x.ctrlKey,R=p.includes("alt")===x.altKey,w=p.includes("shift")===x.shiftKey,h=f.length===0||f.includes(x.key.toLowerCase());g&&v&&R&&w&&h&&(l&&x.preventDefault(),o(x));};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[a,o,s,l]);let m=()=>a?(Array.isArray(a)?a:[a]).map((p,f)=>jsxRuntime.jsxs(___namespace.Fragment,{children:[f>0&&jsxRuntime.jsx("span",{className:"mx-0.5 text-muted-foreground",children:"+"}),jsxRuntime.jsx("span",{children:dM(p)})]},f)):n;return jsxRuntime.jsx("kbd",{ref:d,className:i(Ab({variant:t,size:r}),s&&"opacity-50",e),...c,children:m()})});zb.displayName="Kbd";function uM(e,t,r={}){let{disabled:a=false,preventDefault:n=true}=r;___namespace.useEffect(()=>{if(a)return;let o=Array.isArray(e)?e:[e],s=o.filter(ks).map(no),l=o.filter(d=>!ks(d)).map(no),c=d=>{let m=s.includes("meta")===d.metaKey,u=s.includes("control")===d.ctrlKey,p=s.includes("alt")===d.altKey,f=s.includes("shift")===d.shiftKey,b=l.length===0||l.includes(d.key.toLowerCase());m&&u&&p&&f&&b&&(n&&d.preventDefault(),t(d));};return window.addEventListener("keydown",c),()=>window.removeEventListener("keydown",c)},[e,t,a,n]);}var Ob=___namespace.forwardRef(({className:e,size:t,axis:r="both",style:a,...n},o)=>{let s=typeof t=="number"?`${t}px`:t,l={...a,...t?{width:r==="vertical"?void 0:s,height:r==="horizontal"?void 0:s,minWidth:r==="vertical"?void 0:s,minHeight:r==="horizontal"?void 0:s,flexShrink:0}:{flex:"1 1 auto"}};return jsxRuntime.jsx("div",{ref:o,"aria-hidden":"true",className:i(e),style:l,...n})});Ob.displayName="Spacer";var Fb=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-md transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"hover:bg-muted",solid:"bg-muted hover:bg-muted/80",ghost:"hover:bg-accent hover:text-accent-foreground",outline:"border border-input hover:bg-accent hover:text-accent-foreground"},size:{sm:"h-7 w-7",md:"h-8 w-8",lg:"h-10 w-10"}},defaultVariants:{variant:"default",size:"md"}}),Kb=___namespace.forwardRef(({className:e,variant:t,size:r,value:a,successDuration:n=2e3,onCopySuccess:o,onCopyError:s,copyIcon:l,successIcon:c,...d},m)=>{let[u,p]=___namespace.useState(false),f={sm:14,md:16,lg:20}[r??"md"],b=async()=>{try{await navigator.clipboard.writeText(a),p(!0),o?.(),setTimeout(()=>{p(!1);},n);}catch(x){s?.(x);}};return jsxRuntime.jsx("button",{ref:m,type:"button",className:i(Fb({variant:t,size:r}),e),onClick:b,"aria-label":u?"Copied":"Copy to clipboard",...d,children:u?c??jsxRuntime.jsx(lucideReact.Check,{className:"text-success",style:{width:f,height:f}}):l??jsxRuntime.jsx(lucideReact.Copy,{style:{width:f,height:f}})})});Kb.displayName="CopyButton";var $b=classVarianceAuthority.cva("flex flex-col bg-background",{variants:{variant:{default:"border rounded-lg",bordered:"border-2 rounded-lg",ghost:""},size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{variant:"default",size:"md"}}),yM=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],RM=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];function wM(e,t,r){let a=new Date(e,t,1),n=new Date(e,t+1,0),o=[],s=a.getDay()-r;s<0&&(s+=7);for(let c=s-1;c>=0;c--)o.push(new Date(e,t,-c));for(let c=1;c<=n.getDate();c++)o.push(new Date(e,t,c));let l=42-o.length;for(let c=1;c<=l;c++)o.push(new Date(e,t+1,c));return o}function CM(e,t){let r=[],n=e.getDay()-t;n<0&&(n+=7);let o=new Date(e);o.setDate(e.getDate()-n);for(let s=0;s<7;s++){let l=new Date(o);l.setDate(o.getDate()+s),r.push(l);}return r}function Ds(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function Ls(e){return Ds(e,new Date)}function Gb(e,t){return e.filter(r=>{let a=new Date(r.start),n=new Date(r.end);return Ds(a,t)||Ds(n,t)||a<t&&n>t})}var _b=___namespace.forwardRef(({className:e,variant:t,size:r,events:a=[],view:n="month",onViewChange:o,date:s,onDateChange:l,onEventClick:c,onSlotClick:d,weekStartsOn:m=0,locale:u="en-US",...p},f)=>{let[b,x]=___namespace.useState(new Date),g=s??b,v=M=>{l?l(M):x(M);},R=m===1?RM:yM,w=()=>{let M=new Date(g);n==="month"?M.setMonth(M.getMonth()-1):n==="week"?M.setDate(M.getDate()-7):M.setDate(M.getDate()-1),v(M);},h=()=>{let M=new Date(g);n==="month"?M.setMonth(M.getMonth()+1):n==="week"?M.setDate(M.getDate()+7):M.setDate(M.getDate()+1),v(M);},C=()=>{v(new Date);},y=()=>n==="day"?g.toLocaleDateString(u,{weekday:"long",year:"numeric",month:"long",day:"numeric"}):g.toLocaleDateString(u,{year:"numeric",month:"long"}),T=()=>{let M=wM(g.getFullYear(),g.getMonth(),m);return jsxRuntime.jsxs("div",{className:"flex-1 flex flex-col",children:[jsxRuntime.jsx("div",{className:"grid grid-cols-7 border-b",children:R.map(P=>jsxRuntime.jsx("div",{className:"p-2 text-center font-medium text-muted-foreground",children:P},P))}),jsxRuntime.jsx("div",{className:"flex-1 grid grid-cols-7 grid-rows-6",children:M.map((P,k)=>{let L=Gb(a,P),H=P.getMonth()===g.getMonth();return jsxRuntime.jsxs("div",{className:i("min-h-[80px] border-b border-r p-1 cursor-pointer hover:bg-accent/50 transition-colors",!H&&"bg-muted/30"),onClick:()=>d?.(P),children:[jsxRuntime.jsx("div",{className:i("flex items-center justify-center w-7 h-7 rounded-full text-sm mb-1",Ls(P)&&"bg-primary text-primary-foreground",!H&&"text-muted-foreground"),children:P.getDate()}),jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[L.slice(0,3).map(S=>jsxRuntime.jsx("div",{className:"text-xs px-1 py-0.5 rounded truncate cursor-pointer hover:opacity-80",style:{backgroundColor:S.color||"hsl(var(--primary))",color:"white"},onClick:D=>{D.stopPropagation(),c?.(S);},children:S.title},S.id)),L.length>3&&jsxRuntime.jsxs("div",{className:"text-xs text-muted-foreground px-1",children:["+",L.length-3," more"]})]})]},k)})})]})},N=()=>{let M=CM(g,m),P=Array.from({length:24},(k,L)=>L);return jsxRuntime.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[jsxRuntime.jsxs("div",{className:"grid grid-cols-[60px_repeat(7,1fr)] border-b",children:[jsxRuntime.jsx("div",{className:"p-2"}),M.map((k,L)=>jsxRuntime.jsxs("div",{className:i("p-2 text-center border-l",Ls(k)&&"bg-primary/10"),children:[jsxRuntime.jsx("div",{className:"text-xs text-muted-foreground",children:R[L]}),jsxRuntime.jsx("div",{className:i("text-lg font-semibold",Ls(k)&&"text-primary"),children:k.getDate()})]},L))]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx("div",{className:"grid grid-cols-[60px_repeat(7,1fr)]",children:P.map(k=>jsxRuntime.jsxs(___namespace.Fragment,{children:[jsxRuntime.jsxs("div",{className:"h-12 text-xs text-muted-foreground text-right pr-2 pt-0 border-b",children:[k.toString().padStart(2,"0"),":00"]}),M.map((L,H)=>{let S=new Date(L);S.setHours(k,0,0,0);let D=a.filter(V=>{let z=new Date(V.start);return Ds(z,L)&&z.getHours()===k});return jsxRuntime.jsx("div",{className:"h-12 border-b border-l cursor-pointer hover:bg-accent/50 relative",onClick:()=>d?.(S),children:D.map(V=>jsxRuntime.jsx("div",{className:"absolute inset-x-0.5 top-0.5 text-xs px-1 py-0.5 rounded truncate cursor-pointer",style:{backgroundColor:V.color||"hsl(var(--primary))",color:"white"},onClick:z=>{z.stopPropagation(),c?.(V);},children:V.title},V.id))},H)})]},k))})})]})},E=()=>{let M=Array.from({length:24},(k,L)=>L),P=Gb(a,g);return jsxRuntime.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[jsxRuntime.jsx("div",{className:"p-4 border-b text-center",children:jsxRuntime.jsx("div",{className:i("inline-flex items-center justify-center w-12 h-12 rounded-full text-2xl font-semibold",Ls(g)&&"bg-primary text-primary-foreground"),children:g.getDate()})}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx("div",{className:"grid grid-cols-[60px_1fr]",children:M.map(k=>{let L=new Date(g);L.setHours(k,0,0,0);let H=P.filter(S=>new Date(S.start).getHours()===k);return jsxRuntime.jsxs(___namespace.Fragment,{children:[jsxRuntime.jsxs("div",{className:"h-12 text-xs text-muted-foreground text-right pr-2 pt-0 border-b",children:[k.toString().padStart(2,"0"),":00"]}),jsxRuntime.jsx("div",{className:"h-12 border-b border-l cursor-pointer hover:bg-accent/50 relative",onClick:()=>d?.(L),children:H.map(S=>jsxRuntime.jsx("div",{className:"absolute inset-x-1 top-0.5 text-xs px-2 py-1 rounded truncate cursor-pointer",style:{backgroundColor:S.color||"hsl(var(--primary))",color:"white"},onClick:D=>{D.stopPropagation(),c?.(S);},children:S.title},S.id))})]},k)})})})]})};return jsxRuntime.jsxs("div",{ref:f,className:i($b({variant:t,size:r,className:e})),...p,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between p-4 border-b",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(Z,{variant:"bordered",size:"sm",onClick:C,children:"Today"}),jsxRuntime.jsx(Z,{variant:"ghost",size:"icon",onClick:w,children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx(Z,{variant:"ghost",size:"icon",onClick:h,children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})}),jsxRuntime.jsx("h2",{className:"text-lg font-semibold ml-2",children:y()})]}),jsxRuntime.jsx("div",{className:"flex items-center gap-1 border rounded-lg p-1",children:["month","week","day"].map(M=>jsxRuntime.jsx(Z,{variant:n===M?"solid":"ghost",size:"sm",onClick:()=>o?.(M),children:M.charAt(0).toUpperCase()+M.slice(1)},M))})]}),n==="month"&&T(),n==="week"&&N(),n==="day"&&E()]})});_b.displayName="FullCalendar";var so=classVarianceAuthority.cva("w-full",{variants:{size:{sm:"h-48",md:"h-64",lg:"h-96"}},defaultVariants:{size:"md"}}),io=["hsl(var(--primary))","hsl(var(--chart-1, 220 70% 50%))","hsl(var(--chart-2, 160 60% 45%))","hsl(var(--chart-3, 30 80% 55%))","hsl(var(--chart-4, 280 65% 60%))"],Wb=___namespace.forwardRef(({className:e,size:t,data:r,dataKeys:a,colors:n=io,showGrid:o=true,showLegend:s=true,showTooltip:l=true,xAxisKey:c="name",curveType:d="monotone",...m},u)=>jsxRuntime.jsx("div",{ref:u,className:i(so({size:t,className:e})),...m,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.LineChart,{data:r,children:[o&&jsxRuntime.jsx(recharts.CartesianGrid,{strokeDasharray:"3 3",className:"stroke-muted"}),jsxRuntime.jsx(recharts.XAxis,{dataKey:c,className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),jsxRuntime.jsx(recharts.YAxis,{className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),l&&jsxRuntime.jsx(recharts.Tooltip,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))",borderRadius:"var(--radius)"},labelStyle:{color:"hsl(var(--popover-foreground))"}}),s&&jsxRuntime.jsx(recharts.Legend,{}),a.map((p,f)=>jsxRuntime.jsx(recharts.Line,{type:d,dataKey:p,stroke:n[f%n.length],strokeWidth:2,dot:{fill:n[f%n.length],strokeWidth:0},activeDot:{r:6}},p))]})})}));Wb.displayName="LineChart";var jb=___namespace.forwardRef(({className:e,size:t,data:r,dataKeys:a,colors:n=io,showGrid:o=true,showLegend:s=true,showTooltip:l=true,xAxisKey:c="name",stacked:d=false,layout:m="horizontal",...u},p)=>jsxRuntime.jsx("div",{ref:p,className:i(so({size:t,className:e})),...u,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.BarChart,{data:r,layout:m,children:[o&&jsxRuntime.jsx(recharts.CartesianGrid,{strokeDasharray:"3 3",className:"stroke-muted"}),jsxRuntime.jsx(recharts.XAxis,{dataKey:m==="horizontal"?c:void 0,type:m==="horizontal"?"category":"number",className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),jsxRuntime.jsx(recharts.YAxis,{dataKey:m==="vertical"?c:void 0,type:m==="vertical"?"category":"number",className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),l&&jsxRuntime.jsx(recharts.Tooltip,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))",borderRadius:"var(--radius)"},labelStyle:{color:"hsl(var(--popover-foreground))"}}),s&&jsxRuntime.jsx(recharts.Legend,{}),a.map((f,b)=>jsxRuntime.jsx(recharts.Bar,{dataKey:f,fill:n[b%n.length],stackId:d?"stack":void 0,radius:[4,4,0,0]},f))]})})}));jb.displayName="BarChart";var Yb=___namespace.forwardRef(({className:e,size:t,data:r,dataKey:a="value",nameKey:n="name",colors:o=io,innerRadius:s=0,outerRadius:l=80,showLegend:c=true,showTooltip:d=true,showLabels:m=false,...u},p)=>jsxRuntime.jsx("div",{ref:p,className:i(so({size:t,className:e})),...u,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.PieChart,{children:[d&&jsxRuntime.jsx(recharts.Tooltip,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))",borderRadius:"var(--radius)"}}),c&&jsxRuntime.jsx(recharts.Legend,{}),jsxRuntime.jsx(recharts.Pie,{data:r,dataKey:a,nameKey:n,cx:"50%",cy:"50%",innerRadius:s,outerRadius:l,label:m,labelLine:m,children:r.map((f,b)=>jsxRuntime.jsx(recharts.Cell,{fill:o[b%o.length]},`cell-${b}`))})]})})}));Yb.displayName="PieChart";var Ub=___namespace.forwardRef(({className:e,size:t,data:r,dataKeys:a,colors:n=io,showGrid:o=true,showLegend:s=true,showTooltip:l=true,xAxisKey:c="name",stacked:d=false,curveType:m="monotone",...u},p)=>jsxRuntime.jsx("div",{ref:p,className:i(so({size:t,className:e})),...u,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.AreaChart,{data:r,children:[o&&jsxRuntime.jsx(recharts.CartesianGrid,{strokeDasharray:"3 3",className:"stroke-muted"}),jsxRuntime.jsx(recharts.XAxis,{dataKey:c,className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),jsxRuntime.jsx(recharts.YAxis,{className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),l&&jsxRuntime.jsx(recharts.Tooltip,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))",borderRadius:"var(--radius)"},labelStyle:{color:"hsl(var(--popover-foreground))"}}),s&&jsxRuntime.jsx(recharts.Legend,{}),a.map((f,b)=>jsxRuntime.jsx(recharts.Area,{type:m,dataKey:f,stroke:n[b%n.length],fill:n[b%n.length],fillOpacity:.3,stackId:d?"stack":void 0},f))]})})}));Ub.displayName="AreaChart";var Zb=classVarianceAuthority.cva("flex gap-4 overflow-x-auto p-4",{variants:{variant:{default:"bg-muted/30",bordered:"border rounded-lg bg-background",ghost:""}},defaultVariants:{variant:"default"}}),Jb=classVarianceAuthority.cva("flex flex-col min-w-[280px] w-[280px] rounded-lg",{variants:{variant:{default:"bg-muted/50",bordered:"border bg-background",ghost:"bg-transparent"}},defaultVariants:{variant:"default"}}),Vl=classVarianceAuthority.cva("rounded-lg p-3 cursor-grab active:cursor-grabbing transition-all",{variants:{variant:{default:"bg-background border shadow-sm hover:shadow-md",bordered:"border-2 bg-background hover:border-primary/50",ghost:"bg-muted/50 hover:bg-muted"},isDragging:{true:"opacity-50 scale-[1.02] shadow-lg",false:""}},defaultVariants:{variant:"default",isDragging:false}});function jM({card:e,columnId:t,variant:r,renderCard:a,onCardClick:n}){let{attributes:o,listeners:s,setNodeRef:l,transform:c,transition:d,isDragging:m}=sortable.useSortable({id:e.id,data:{columnId:t}}),u={transform:utilities.CSS.Transform.toString(c),transition:d};return jsxRuntime.jsx("div",{ref:l,style:u,className:i(Vl({variant:r,isDragging:m})),onClick:()=>n?.(e,t),...o,...s,children:a?a(e,t):jsxRuntime.jsxs("div",{className:"flex items-start gap-2",children:[jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-4 w-4 text-muted-foreground flex-shrink-0 mt-0.5"}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("p",{className:"font-medium text-sm truncate",children:e.title}),e.description&&jsxRuntime.jsx("p",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:e.description})]})]})})}function YM({column:e,variant:t,renderCard:r,onCardClick:a,onAddCard:n,showAddCard:o,columnHeight:s}){return jsxRuntime.jsxs("div",{className:i(Jb({variant:t})),children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between p-3 border-b",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[e.color&&jsxRuntime.jsx("div",{className:"w-3 h-3 rounded-full",style:{backgroundColor:e.color}}),jsxRuntime.jsx("h3",{className:"font-semibold text-sm",children:e.title}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground bg-muted px-2 py-0.5 rounded-full",children:e.cards.length})]}),o&&jsxRuntime.jsx(Z,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>n?.(e.id),children:jsxRuntime.jsx(lucideReact.Plus,{className:"h-4 w-4"})})]}),jsxRuntime.jsx(_e,{style:{height:s},children:jsxRuntime.jsxs("div",{className:"p-2 space-y-2",children:[jsxRuntime.jsx(sortable.SortableContext,{items:e.cards.map(l=>l.id),strategy:sortable.verticalListSortingStrategy,children:e.cards.map(l=>jsxRuntime.jsx(jM,{card:l,columnId:e.id,variant:t,renderCard:r,onCardClick:a},l.id))}),e.cards.length===0&&jsxRuntime.jsx("div",{className:"h-20 border-2 border-dashed rounded-lg flex items-center justify-center text-muted-foreground text-sm",children:"Drop here"})]})})]})}var Qb=___namespace.forwardRef(({className:e,variant:t,columns:r,onCardMove:a,onCardClick:n,onAddCard:o,renderCard:s,showAddCard:l=true,columnHeight:c=500,...d},m)=>{let[u,p]=___namespace.useState(null),[f,b]=___namespace.useState(null),x=core.useSensors(core.useSensor(core.PointerSensor,{activationConstraint:{distance:8}}),core.useSensor(core.KeyboardSensor,{coordinateGetter:sortable.sortableKeyboardCoordinates})),g=h=>r.find(C=>C.cards.some(y=>y.id===h));return jsxRuntime.jsxs(core.DndContext,{sensors:x,collisionDetection:core.closestCorners,onDragStart:h=>{let{active:C}=h,y=g(C.id);if(y){let T=y.cards.find(N=>N.id===C.id);T&&(p(T),b(y.id));}},onDragOver:h=>{let{active:C,over:y}=h;if(!y)return;let T=C.id,N=y.id,E=g(T),M=g(N)||r.find(L=>L.id===N);if(!E||!M||E.id===M.id)return;let P=M.cards.findIndex(L=>L.id===N),k=P===-1?M.cards.length:P;a?.(T,E.id,M.id,k);},onDragEnd:h=>{let{active:C,over:y}=h;if(y&&C.id!==y.id){let T=g(C.id),N=g(y.id)||r.find(E=>E.id===y.id);if(T&&N){let E=N.cards.findIndex(P=>P.id===y.id),M=E===-1?N.cards.length:E;a?.(C.id,T.id,N.id,M);}}p(null),b(null);},children:[jsxRuntime.jsx("div",{ref:m,className:i(Zb({variant:t,className:e})),...d,children:r.map(h=>jsxRuntime.jsx(YM,{column:h,variant:t,renderCard:s,onCardClick:n,onAddCard:o,showAddCard:l,columnHeight:c},h.id))}),jsxRuntime.jsx(core.DragOverlay,{children:u&&f&&jsxRuntime.jsx("div",{className:i(Vl({variant:t,isDragging:true})),children:s?s(u,f):jsxRuntime.jsxs("div",{className:"flex items-start gap-2",children:[jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-4 w-4 text-muted-foreground flex-shrink-0 mt-0.5"}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("p",{className:"font-medium text-sm truncate",children:u.title}),u.description&&jsxRuntime.jsx("p",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:u.description})]})]})})})]})});Qb.displayName="KanbanBoard";var ev=classVarianceAuthority.cva("relative",{variants:{variant:{default:"",bordered:"border rounded-lg p-4",cards:"rounded-lg"}},defaultVariants:{variant:"default"}}),tv=___namespace.createContext(null);function Al(){let e=___namespace.useContext(tv);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var rv=___namespace.forwardRef(({className:e,variant:t,children:r,opts:a,plugins:n,orientation:o="horizontal",showArrows:s=true,showDots:l=true,setApi:c,...d},m)=>{let[u,p]=UM__default.default({...a,axis:o==="horizontal"?"x":"y"},n),[f,b]=___namespace.useState(false),[x,g]=___namespace.useState(false),[v,R]=___namespace.useState(0),[w,h]=___namespace.useState([]),C=___namespace.useCallback(M=>{M&&(R(M.selectedScrollSnap()),b(M.canScrollPrev()),g(M.canScrollNext()));},[]),y=___namespace.useCallback(()=>{p?.scrollPrev();},[p]),T=___namespace.useCallback(()=>{p?.scrollNext();},[p]),N=___namespace.useCallback(M=>{p?.scrollTo(M);},[p]),E=___namespace.useCallback(M=>{M.key==="ArrowLeft"?(M.preventDefault(),y()):M.key==="ArrowRight"&&(M.preventDefault(),T());},[y,T]);return ___namespace.useEffect(()=>{!p||!c||c(p);},[p,c]),___namespace.useEffect(()=>{if(p)return h(p.scrollSnapList()),C(p),p.on("reInit",C),p.on("select",C),()=>{p?.off("select",C);}},[p,C]),jsxRuntime.jsx(tv.Provider,{value:{carouselRef:u,api:p,scrollPrev:y,scrollNext:T,canScrollPrev:f,canScrollNext:x,selectedIndex:v,scrollSnaps:w,scrollTo:N},children:jsxRuntime.jsxs("div",{ref:m,className:i(ev({variant:t,className:e})),onKeyDownCapture:E,role:"region","aria-roledescription":"carousel",...d,children:[jsxRuntime.jsx("div",{ref:u,className:"overflow-hidden",children:jsxRuntime.jsx("div",{className:i("flex",o==="horizontal"?"-ml-4":"-mt-4 flex-col"),children:r})}),s&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(zl,{}),jsxRuntime.jsx(Bl,{})]}),l&&w.length>1&&jsxRuntime.jsx("div",{className:"flex justify-center gap-1.5 mt-4",children:w.map((M,P)=>jsxRuntime.jsx("button",{className:i("w-2 h-2 rounded-full transition-all",P===v?"bg-primary w-4":"bg-muted-foreground/30 hover:bg-muted-foreground/50"),onClick:()=>N(P),"aria-label":`Go to slide ${P+1}`},P))})]})})});rv.displayName="Carousel";var av=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex",e),...t}));av.displayName="CarouselContent";var nv=___namespace.forwardRef(({className:e,basis:t="basis-full",...r},a)=>jsxRuntime.jsx("div",{ref:a,role:"group","aria-roledescription":"slide",className:i("min-w-0 shrink-0 grow-0 pl-4",t,e),...r}));nv.displayName="CarouselItem";var zl=___namespace.forwardRef(({className:e,variant:t="bordered",size:r="icon",...a},n)=>{let{scrollPrev:o,canScrollPrev:s}=Al();return jsxRuntime.jsxs(Z,{ref:n,variant:t,size:r,className:i("absolute left-2 top-1/2 -translate-y-1/2 h-8 w-8 rounded-full",e),disabled:!s,onClick:o,...a,children:[jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Previous slide"})]})});zl.displayName="CarouselPrevious";var Bl=___namespace.forwardRef(({className:e,variant:t="bordered",size:r="icon",...a},n)=>{let{scrollNext:o,canScrollNext:s}=Al();return jsxRuntime.jsxs(Z,{ref:n,variant:t,size:r,className:i("absolute right-2 top-1/2 -translate-y-1/2 h-8 w-8 rounded-full",e),disabled:!s,onClick:o,...a,children:[jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Next slide"})]})});Bl.displayName="CarouselNext";var ov=classVarianceAuthority.cva("flex flex-col bg-popover border rounded-lg shadow-md",{variants:{size:{sm:"w-64 h-72",md:"w-80 h-96",lg:"w-96 h-[480px]"}},defaultVariants:{size:"md"}}),zs={recent:{icon:"\u{1F550}",name:"Recent"},smileys:{icon:"\u{1F600}",name:"Smileys & Emotion"},people:{icon:"\u{1F44B}",name:"People & Body"},animals:{icon:"\u{1F43B}",name:"Animals & Nature"},food:{icon:"\u{1F354}",name:"Food & Drink"},travel:{icon:"\u{1F697}",name:"Travel & Places"},activities:{icon:"\u26BD",name:"Activities"},objects:{icon:"\u{1F4A1}",name:"Objects"},symbols:{icon:"\u2764\uFE0F",name:"Symbols"},flags:{icon:"\u{1F3F3}\uFE0F",name:"Flags"}},Fl={smileys:["\u{1F600}","\u{1F603}","\u{1F604}","\u{1F601}","\u{1F606}","\u{1F605}","\u{1F923}","\u{1F602}","\u{1F642}","\u{1F643}","\u{1F609}","\u{1F60A}","\u{1F607}","\u{1F970}","\u{1F60D}","\u{1F929}","\u{1F618}","\u{1F617}","\u263A\uFE0F","\u{1F61A}","\u{1F60B}","\u{1F61B}","\u{1F61C}","\u{1F92A}","\u{1F61D}","\u{1F911}","\u{1F917}","\u{1F92D}","\u{1F92B}","\u{1F914}","\u{1F910}","\u{1F928}","\u{1F610}","\u{1F611}","\u{1F636}","\u{1F60F}","\u{1F612}","\u{1F644}","\u{1F62C}","\u{1F925}","\u{1F60C}","\u{1F614}","\u{1F62A}","\u{1F924}","\u{1F634}","\u{1F637}","\u{1F912}","\u{1F915}","\u{1F922}","\u{1F92E}","\u{1F927}","\u{1F975}","\u{1F976}","\u{1F974}","\u{1F635}","\u{1F92F}","\u{1F920}","\u{1F973}","\u{1F978}","\u{1F60E}","\u{1F913}","\u{1F9D0}","\u{1F615}","\u{1F61F}","\u{1F641}","\u2639\uFE0F","\u{1F62E}","\u{1F62F}","\u{1F632}","\u{1F633}","\u{1F97A}","\u{1F626}","\u{1F627}","\u{1F628}","\u{1F630}","\u{1F625}","\u{1F622}","\u{1F62D}","\u{1F631}","\u{1F616}","\u{1F623}","\u{1F61E}","\u{1F613}","\u{1F629}","\u{1F62B}","\u{1F971}","\u{1F624}","\u{1F621}","\u{1F620}","\u{1F92C}","\u{1F608}","\u{1F47F}","\u{1F480}","\u2620\uFE0F","\u{1F4A9}","\u{1F921}","\u{1F479}","\u{1F47A}","\u{1F47B}","\u{1F47D}"],people:["\u{1F44B}","\u{1F91A}","\u{1F590}\uFE0F","\u270B","\u{1F596}","\u{1F44C}","\u{1F90C}","\u{1F90F}","\u270C\uFE0F","\u{1F91E}","\u{1F91F}","\u{1F918}","\u{1F919}","\u{1F448}","\u{1F449}","\u{1F446}","\u{1F595}","\u{1F447}","\u261D\uFE0F","\u{1F44D}","\u{1F44E}","\u270A","\u{1F44A}","\u{1F91B}","\u{1F91C}","\u{1F44F}","\u{1F64C}","\u{1F450}","\u{1F932}","\u{1F91D}","\u{1F64F}","\u270D\uFE0F","\u{1F485}","\u{1F933}","\u{1F4AA}","\u{1F9BE}","\u{1F9BF}","\u{1F9B5}","\u{1F9B6}","\u{1F442}","\u{1F9BB}","\u{1F443}","\u{1F9E0}","\u{1FAC0}","\u{1FAC1}","\u{1F9B7}","\u{1F9B4}","\u{1F440}","\u{1F441}\uFE0F","\u{1F445}","\u{1F444}","\u{1F476}","\u{1F9D2}","\u{1F466}","\u{1F467}","\u{1F9D1}","\u{1F471}","\u{1F468}","\u{1F9D4}","\u{1F469}","\u{1F9D3}","\u{1F474}","\u{1F475}","\u{1F64D}","\u{1F64E}","\u{1F645}","\u{1F646}","\u{1F481}","\u{1F64B}","\u{1F9CF}","\u{1F647}","\u{1F926}","\u{1F937}","\u{1F46E}","\u{1F575}\uFE0F","\u{1F482}","\u{1F977}","\u{1F477}","\u{1F934}","\u{1F478}"],animals:["\u{1F436}","\u{1F431}","\u{1F42D}","\u{1F439}","\u{1F430}","\u{1F98A}","\u{1F43B}","\u{1F43C}","\u{1F428}","\u{1F42F}","\u{1F981}","\u{1F42E}","\u{1F437}","\u{1F43D}","\u{1F438}","\u{1F435}","\u{1F648}","\u{1F649}","\u{1F64A}","\u{1F412}","\u{1F414}","\u{1F427}","\u{1F426}","\u{1F424}","\u{1F423}","\u{1F425}","\u{1F986}","\u{1F985}","\u{1F989}","\u{1F987}","\u{1F43A}","\u{1F417}","\u{1F434}","\u{1F984}","\u{1F41D}","\u{1FAB1}","\u{1F41B}","\u{1F98B}","\u{1F40C}","\u{1F41E}","\u{1F41C}","\u{1FAB0}","\u{1FAB2}","\u{1FAB3}","\u{1F99F}","\u{1F997}","\u{1F577}\uFE0F","\u{1F578}\uFE0F","\u{1F982}","\u{1F422}","\u{1F40D}","\u{1F98E}","\u{1F996}","\u{1F995}","\u{1F419}","\u{1F991}","\u{1F990}","\u{1F99E}","\u{1F980}","\u{1F421}","\u{1F420}","\u{1F41F}","\u{1F42C}","\u{1F433}","\u{1F40B}","\u{1F988}","\u{1F40A}","\u{1F405}","\u{1F406}","\u{1F993}","\u{1F98D}","\u{1F9A7}","\u{1F9A3}","\u{1F418}","\u{1F99B}","\u{1F98F}","\u{1F42A}","\u{1F42B}","\u{1F992}","\u{1F998}"],food:["\u{1F347}","\u{1F348}","\u{1F349}","\u{1F34A}","\u{1F34B}","\u{1F34C}","\u{1F34D}","\u{1F96D}","\u{1F34E}","\u{1F34F}","\u{1F350}","\u{1F351}","\u{1F352}","\u{1F353}","\u{1FAD0}","\u{1F95D}","\u{1F345}","\u{1FAD2}","\u{1F965}","\u{1F951}","\u{1F346}","\u{1F954}","\u{1F955}","\u{1F33D}","\u{1F336}\uFE0F","\u{1FAD1}","\u{1F952}","\u{1F96C}","\u{1F966}","\u{1F9C4}","\u{1F9C5}","\u{1F344}","\u{1F95C}","\u{1F330}","\u{1F35E}","\u{1F950}","\u{1F956}","\u{1FAD3}","\u{1F968}","\u{1F96F}","\u{1F95E}","\u{1F9C7}","\u{1F9C0}","\u{1F356}","\u{1F357}","\u{1F969}","\u{1F953}","\u{1F354}","\u{1F35F}","\u{1F355}","\u{1F32D}","\u{1F96A}","\u{1F32E}","\u{1F32F}","\u{1FAD4}","\u{1F959}","\u{1F9C6}","\u{1F95A}","\u{1F373}","\u{1F958}","\u{1F372}","\u{1FAD5}","\u{1F963}","\u{1F957}","\u{1F37F}","\u{1F9C8}","\u{1F9C2}","\u{1F96B}","\u{1F371}","\u{1F358}","\u{1F359}","\u{1F35A}","\u{1F35B}","\u{1F35C}","\u{1F35D}","\u{1F360}","\u{1F362}","\u{1F363}","\u{1F364}","\u{1F365}"],travel:["\u{1F697}","\u{1F695}","\u{1F699}","\u{1F68C}","\u{1F68E}","\u{1F3CE}\uFE0F","\u{1F693}","\u{1F691}","\u{1F692}","\u{1F690}","\u{1F6FB}","\u{1F69A}","\u{1F69B}","\u{1F69C}","\u{1F9AF}","\u{1F9BD}","\u{1F9BC}","\u{1F6F4}","\u{1F6B2}","\u{1F6F5}","\u{1F3CD}\uFE0F","\u{1F6FA}","\u{1F6A8}","\u{1F694}","\u{1F68D}","\u{1F698}","\u{1F696}","\u{1F6A1}","\u{1F6A0}","\u{1F69F}","\u{1F683}","\u{1F68B}","\u{1F69E}","\u{1F69D}","\u{1F684}","\u{1F685}","\u{1F688}","\u{1F682}","\u{1F686}","\u{1F687}","\u{1F68A}","\u{1F689}","\u2708\uFE0F","\u{1F6EB}","\u{1F6EC}","\u{1F6E9}\uFE0F","\u{1F4BA}","\u{1F6F0}\uFE0F","\u{1F680}","\u{1F6F8}","\u{1F681}","\u{1F6F6}","\u26F5","\u{1F6A4}","\u{1F6E5}\uFE0F","\u{1F6F3}\uFE0F","\u26F4\uFE0F","\u{1F6A2}","\u2693","\u{1FA9D}","\u26FD","\u{1F6A7}","\u{1F6A6}","\u{1F6A5}","\u{1F68F}","\u{1F5FA}\uFE0F","\u{1F5FF}","\u{1F5FD}","\u{1F5FC}","\u{1F3F0}","\u{1F3EF}","\u{1F3DF}\uFE0F","\u{1F3A1}","\u{1F3A2}","\u{1F3A0}","\u26F2","\u26F1\uFE0F","\u{1F3D6}\uFE0F","\u{1F3DD}\uFE0F","\u{1F3DC}\uFE0F"],activities:["\u26BD","\u{1F3C0}","\u{1F3C8}","\u26BE","\u{1F94E}","\u{1F3BE}","\u{1F3D0}","\u{1F3C9}","\u{1F94F}","\u{1F3B1}","\u{1FA80}","\u{1F3D3}","\u{1F3F8}","\u{1F3D2}","\u{1F3D1}","\u{1F94D}","\u{1F3CF}","\u{1FA83}","\u{1F945}","\u26F3","\u{1FA81}","\u{1F3F9}","\u{1F3A3}","\u{1F93F}","\u{1F94A}","\u{1F94B}","\u{1F3BD}","\u{1F6F9}","\u{1F6FC}","\u{1F6F7}","\u26F8\uFE0F","\u{1F94C}","\u{1F3BF}","\u26F7\uFE0F","\u{1F3C2}","\u{1FA82}","\u{1F3CB}\uFE0F","\u{1F93C}","\u{1F938}","\u26F9\uFE0F","\u{1F93A}","\u{1F93E}","\u{1F3CC}\uFE0F","\u{1F3C7}","\u26D1\uFE0F","\u{1F9D8}","\u{1F3C4}","\u{1F3CA}","\u{1F93D}","\u{1F6A3}","\u{1F9D7}","\u{1F6B5}","\u{1F6B4}","\u{1F3C6}","\u{1F947}","\u{1F948}","\u{1F949}","\u{1F3C5}","\u{1F396}\uFE0F","\u{1F3F5}\uFE0F","\u{1F397}\uFE0F","\u{1F3AB}","\u{1F39F}\uFE0F","\u{1F3AA}","\u{1F939}","\u{1F3AD}","\u{1FA70}","\u{1F3A8}","\u{1F3AC}","\u{1F3A4}","\u{1F3A7}","\u{1F3BC}","\u{1F3B9}","\u{1F941}","\u{1FA98}","\u{1F3B7}","\u{1F3BA}","\u{1FA97}","\u{1F3B8}","\u{1FA95}"],objects:["\u231A","\u{1F4F1}","\u{1F4F2}","\u{1F4BB}","\u2328\uFE0F","\u{1F5A5}\uFE0F","\u{1F5A8}\uFE0F","\u{1F5B1}\uFE0F","\u{1F5B2}\uFE0F","\u{1F579}\uFE0F","\u{1F5DC}\uFE0F","\u{1F4BD}","\u{1F4BE}","\u{1F4BF}","\u{1F4C0}","\u{1F4FC}","\u{1F4F7}","\u{1F4F8}","\u{1F4F9}","\u{1F3A5}","\u{1F4FD}\uFE0F","\u{1F39E}\uFE0F","\u{1F4DE}","\u260E\uFE0F","\u{1F4DF}","\u{1F4E0}","\u{1F4FA}","\u{1F4FB}","\u{1F399}\uFE0F","\u{1F39A}\uFE0F","\u{1F39B}\uFE0F","\u{1F9ED}","\u23F1\uFE0F","\u23F2\uFE0F","\u23F0","\u{1F570}\uFE0F","\u231B","\u23F3","\u{1F4E1}","\u{1F50B}","\u{1F50C}","\u{1F4A1}","\u{1F526}","\u{1F56F}\uFE0F","\u{1FA94}","\u{1F9EF}","\u{1F6E2}\uFE0F","\u{1F4B8}","\u{1F4B5}","\u{1F4B4}","\u{1F4B6}","\u{1F4B7}","\u{1FA99}","\u{1F4B0}","\u{1F4B3}","\u{1F48E}","\u2696\uFE0F","\u{1FA9C}","\u{1F9F0}","\u{1FA9B}","\u{1F527}","\u{1F528}","\u2692\uFE0F","\u{1F6E0}\uFE0F","\u26CF\uFE0F","\u{1FA9A}","\u{1F529}","\u2699\uFE0F","\u{1FAA4}","\u{1F9F1}","\u26D3\uFE0F","\u{1F9F2}","\u{1F52B}","\u{1F4A3}","\u{1F9E8}","\u{1FA93}","\u{1F52A}","\u{1F5E1}\uFE0F","\u2694\uFE0F","\u{1F6E1}\uFE0F"],symbols:["\u2764\uFE0F","\u{1F9E1}","\u{1F49B}","\u{1F49A}","\u{1F499}","\u{1F49C}","\u{1F5A4}","\u{1F90D}","\u{1F90E}","\u{1F494}","\u2763\uFE0F","\u{1F495}","\u{1F49E}","\u{1F493}","\u{1F497}","\u{1F496}","\u{1F498}","\u{1F49D}","\u{1F49F}","\u262E\uFE0F","\u271D\uFE0F","\u262A\uFE0F","\u{1F549}\uFE0F","\u2638\uFE0F","\u2721\uFE0F","\u{1F52F}","\u{1F54E}","\u262F\uFE0F","\u2626\uFE0F","\u{1F6D0}","\u26CE","\u2648","\u2649","\u264A","\u264B","\u264C","\u264D","\u264E","\u264F","\u2650","\u2651","\u2652","\u2653","\u{1F194}","\u269B\uFE0F","\u{1F251}","\u2622\uFE0F","\u2623\uFE0F","\u{1F4F4}","\u{1F4F3}","\u{1F236}","\u{1F21A}","\u{1F238}","\u{1F23A}","\u{1F237}\uFE0F","\u2734\uFE0F","\u{1F19A}","\u{1F4AE}","\u{1F250}","\u3299\uFE0F","\u3297\uFE0F","\u{1F234}","\u{1F235}","\u{1F239}","\u{1F232}","\u{1F170}\uFE0F","\u{1F171}\uFE0F","\u{1F18E}","\u{1F191}","\u{1F17E}\uFE0F","\u{1F198}","\u274C","\u2B55","\u{1F6D1}","\u26D4","\u{1F4DB}","\u{1F6AB}","\u{1F4AF}","\u{1F4A2}","\u2668\uFE0F"],flags:["\u{1F3F3}\uFE0F","\u{1F3F4}","\u{1F3C1}","\u{1F6A9}","\u{1F3F3}\uFE0F\u200D\u{1F308}","\u{1F3F3}\uFE0F\u200D\u26A7\uFE0F","\u{1F1FA}\u{1F1F3}","\u{1F1E6}\u{1F1EB}","\u{1F1E6}\u{1F1F1}","\u{1F1E9}\u{1F1FF}","\u{1F1E6}\u{1F1F8}","\u{1F1E6}\u{1F1E9}","\u{1F1E6}\u{1F1F4}","\u{1F1E6}\u{1F1EE}","\u{1F1E6}\u{1F1F6}","\u{1F1E6}\u{1F1EC}","\u{1F1E6}\u{1F1F7}","\u{1F1E6}\u{1F1F2}","\u{1F1E6}\u{1F1FC}","\u{1F1E6}\u{1F1FA}","\u{1F1E6}\u{1F1F9}","\u{1F1E6}\u{1F1FF}","\u{1F1E7}\u{1F1F8}","\u{1F1E7}\u{1F1ED}","\u{1F1E7}\u{1F1E9}","\u{1F1E7}\u{1F1E7}","\u{1F1E7}\u{1F1FE}","\u{1F1E7}\u{1F1EA}","\u{1F1E7}\u{1F1FF}","\u{1F1E7}\u{1F1EF}","\u{1F1E7}\u{1F1F2}","\u{1F1E7}\u{1F1F9}","\u{1F1E7}\u{1F1F4}","\u{1F1E7}\u{1F1E6}","\u{1F1E7}\u{1F1FC}","\u{1F1E7}\u{1F1F7}","\u{1F1E7}\u{1F1F3}","\u{1F1E7}\u{1F1EC}","\u{1F1E7}\u{1F1EB}","\u{1F1E7}\u{1F1EE}","\u{1F1E8}\u{1F1FB}","\u{1F1F0}\u{1F1ED}","\u{1F1E8}\u{1F1F2}","\u{1F1E8}\u{1F1E6}","\u{1F1E8}\u{1F1EB}","\u{1F1F9}\u{1F1E9}","\u{1F1E8}\u{1F1F1}","\u{1F1E8}\u{1F1F3}","\u{1F1E8}\u{1F1F4}","\u{1F1F0}\u{1F1F2}","\u{1F1E8}\u{1F1EC}","\u{1F1E8}\u{1F1E9}","\u{1F1E8}\u{1F1F7}","\u{1F1ED}\u{1F1F7}","\u{1F1E8}\u{1F1FA}","\u{1F1E8}\u{1F1FE}","\u{1F1E8}\u{1F1FF}","\u{1F1E9}\u{1F1F0}","\u{1F1E9}\u{1F1EF}","\u{1F1E9}\u{1F1F2}","\u{1F1E9}\u{1F1F4}","\u{1F1EA}\u{1F1E8}","\u{1F1EA}\u{1F1EC}","\u{1F1F8}\u{1F1FB}","\u{1F1EC}\u{1F1F6}","\u{1F1EA}\u{1F1F7}","\u{1F1EA}\u{1F1EA}","\u{1F1EA}\u{1F1F9}","\u{1F1EA}\u{1F1FA}","\u{1F1EB}\u{1F1EF}","\u{1F1EB}\u{1F1EE}","\u{1F1EB}\u{1F1F7}","\u{1F1EC}\u{1F1E6}","\u{1F1EC}\u{1F1F2}","\u{1F1EC}\u{1F1EA}","\u{1F1E9}\u{1F1EA}","\u{1F1EC}\u{1F1ED}","\u{1F1EC}\u{1F1F7}","\u{1F1EC}\u{1F1F9}","\u{1F1EC}\u{1F1F3}"]},sv=___namespace.forwardRef(({className:e,size:t,onEmojiSelect:r,recentEmojis:a=[],defaultCategory:n="smileys",showSearch:o=true,showCategories:s=true,...l},c)=>{let[d,m]=___namespace.useState(a.length>0?"recent":n),[u,p]=___namespace.useState(""),b=u?Object.values(Fl).flat().filter(g=>g.toLowerCase().includes(u.toLowerCase())):d==="recent"?a:Fl[d]||[],x=g=>{r?.(g);};return jsxRuntime.jsxs("div",{ref:c,className:i(ov({size:t,className:e})),...l,children:[o&&jsxRuntime.jsx("div",{className:"p-2 border-b",children:jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx(lucideReact.Search,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),jsxRuntime.jsx(Eo,{placeholder:"Search emojis...",value:u,onChange:g=>p(g.target.value),className:"pl-8 h-8"})]})}),s&&!u&&jsxRuntime.jsx("div",{className:"flex border-b px-1",children:Object.entries(zs).map(([g,{icon:v}])=>g==="recent"&&a.length===0?null:jsxRuntime.jsx("button",{className:i("flex-1 p-2 text-lg hover:bg-accent rounded transition-colors",d===g&&"bg-accent"),onClick:()=>m(g),title:zs[g].name,children:v},g))}),!u&&jsxRuntime.jsx("div",{className:"px-3 py-1.5 text-xs font-medium text-muted-foreground",children:zs[d].name}),jsxRuntime.jsx(_e,{className:"flex-1",children:jsxRuntime.jsxs("div",{className:"grid grid-cols-8 gap-1 p-2",children:[b.map((g,v)=>jsxRuntime.jsx("button",{className:"w-8 h-8 flex items-center justify-center text-xl hover:bg-accent rounded transition-colors",onClick:()=>x(g),children:g},`${g}-${v}`)),b.length===0&&jsxRuntime.jsx("div",{className:"col-span-8 py-8 text-center text-muted-foreground text-sm",children:"No emojis found"})]})})]})});sv.displayName="EmojiPicker";var iv=classVarianceAuthority.cva("flex flex-col border rounded-lg bg-background overflow-hidden",{variants:{variant:{default:"",bordered:"border-2",ghost:"border-transparent"},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"default",size:"md"}}),TT=classVarianceAuthority.cva("flex flex-wrap items-center gap-0.5 p-1 border-b",{variants:{size:{sm:"p-0.5",md:"p-1",lg:"p-1.5"}},defaultVariants:{size:"md"}}),PT=classVarianceAuthority.cva("flex-1 overflow-auto prose prose-sm max-w-none dark:prose-invert [&_.ProseMirror]:outline-none [&_.ProseMirror]:min-h-[inherit] [&_.ProseMirror.is-editor-empty:first-child::before]:text-muted-foreground [&_.ProseMirror.is-editor-empty:first-child::before]:content-[attr(data-placeholder)] [&_.ProseMirror.is-editor-empty:first-child::before]:float-left [&_.ProseMirror.is-editor-empty:first-child::before]:pointer-events-none [&_.ProseMirror.is-editor-empty:first-child::before]:h-0",{variants:{size:{sm:"min-h-[100px] [&_.ProseMirror]:p-2 text-sm",md:"min-h-[150px] [&_.ProseMirror]:p-3 text-sm",lg:"min-h-[200px] [&_.ProseMirror]:p-4 text-base"}},defaultVariants:{size:"md"}}),je=({icon:e,title:t,isActive:r,onClick:a,disabled:n})=>jsxRuntime.jsxs(_r,{children:[jsxRuntime.jsx(Wr,{asChild:true,children:jsxRuntime.jsx(Z,{type:"button",variant:r?"solid":"ghost",size:"icon",className:"h-7 w-7",onClick:a,disabled:n,children:e})}),jsxRuntime.jsx(jr,{side:"top",className:"text-xs",children:t})]}),lv=___namespace.forwardRef(({className:e,variant:t,size:r,value:a="",onChange:n,placeholder:o="Start writing...",readOnly:s=false,showToolbar:l=true,minHeight:c,maxHeight:d,onEditorReady:m,...u},p)=>{let f=react.useEditor({extensions:[aT__default.default.configure({heading:{levels:[1,2,3]}}),nT__default.default.configure({openOnClick:false,HTMLAttributes:{class:"text-primary underline"}}),oT__default.default,sT__default.default.configure({types:["heading","paragraph"]}),iT__default.default.configure({placeholder:o})],content:a,editable:!s,onUpdate:({editor:x})=>{n?.(x.getHTML());},onCreate:({editor:x})=>{m?.(x);}});___namespace.useEffect(()=>{f&&a!==f.getHTML()&&f.commands.setContent(a);},[a,f]),___namespace.useEffect(()=>{f&&f.setEditable(!s);},[s,f]);let b=()=>{if(!f)return;let x=f.getAttributes("link").href,g=window.prompt("URL",x);if(g!==null){if(g===""){f.chain().focus().extendMarkRange("link").unsetLink().run();return}f.chain().focus().extendMarkRange("link").setLink({href:g}).run();}};return f?jsxRuntime.jsx($r,{children:jsxRuntime.jsxs("div",{ref:p,className:i(iv({variant:t,size:r,className:e})),...u,children:[l&&!s&&jsxRuntime.jsxs("div",{className:i(TT({size:r})),children:[jsxRuntime.jsx(je,{icon:jsxRuntime.jsx(lucideReact.Undo,{className:"h-4 w-4"}),title:"Undo",onClick:()=>f.chain().focus().undo().run(),disabled:!f.can().undo()}),jsxRuntime.jsx(je,{icon:jsxRuntime.jsx(lucideReact.Redo,{className:"h-4 w-4"}),title:"Redo",onClick:()=>f.chain().focus().redo().run(),disabled:!f.can().redo()}),jsxRuntime.jsx(Gr,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(je,{icon:jsxRuntime.jsx(lucideReact.Heading1,{className:"h-4 w-4"}),title:"Heading 1",isActive:f.isActive("heading",{level:1}),onClick:()=>f.chain().focus().toggleHeading({level:1}).run()}),jsxRuntime.jsx(je,{icon:jsxRuntime.jsx(lucideReact.Heading2,{className:"h-4 w-4"}),title:"Heading 2",isActive:f.isActive("heading",{level:2}),onClick:()=>f.chain().focus().toggleHeading({level:2}).run()}),jsxRuntime.jsx(je,{icon:jsxRuntime.jsx(lucideReact.Heading3,{className:"h-4 w-4"}),title:"Heading 3",isActive:f.isActive("heading",{level:3}),onClick:()=>f.chain().focus().toggleHeading({level:3}).run()}),jsxRuntime.jsx(Gr,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(je,{icon:jsxRuntime.jsx(lucideReact.Bold,{className:"h-4 w-4"}),title:"Bold (Ctrl+B)",isActive:f.isActive("bold"),onClick:()=>f.chain().focus().toggleBold().run()}),jsxRuntime.jsx(je,{icon:jsxRuntime.jsx(lucideReact.Italic,{className:"h-4 w-4"}),title:"Italic (Ctrl+I)",isActive:f.isActive("italic"),onClick:()=>f.chain().focus().toggleItalic().run()}),jsxRuntime.jsx(je,{icon:jsxRuntime.jsx(lucideReact.Underline,{className:"h-4 w-4"}),title:"Underline (Ctrl+U)",isActive:f.isActive("underline"),onClick:()=>f.chain().focus().toggleUnderline().run()}),jsxRuntime.jsx(je,{icon:jsxRuntime.jsx(lucideReact.Strikethrough,{className:"h-4 w-4"}),title:"Strikethrough",isActive:f.isActive("strike"),onClick:()=>f.chain().focus().toggleStrike().run()}),jsxRuntime.jsx(Gr,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(je,{icon:jsxRuntime.jsx(lucideReact.List,{className:"h-4 w-4"}),title:"Bullet List",isActive:f.isActive("bulletList"),onClick:()=>f.chain().focus().toggleBulletList().run()}),jsxRuntime.jsx(je,{icon:jsxRuntime.jsx(lucideReact.ListOrdered,{className:"h-4 w-4"}),title:"Numbered List",isActive:f.isActive("orderedList"),onClick:()=>f.chain().focus().toggleOrderedList().run()}),jsxRuntime.jsx(Gr,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(je,{icon:jsxRuntime.jsx(lucideReact.AlignLeft,{className:"h-4 w-4"}),title:"Align Left",isActive:f.isActive({textAlign:"left"}),onClick:()=>f.chain().focus().setTextAlign("left").run()}),jsxRuntime.jsx(je,{icon:jsxRuntime.jsx(lucideReact.AlignCenter,{className:"h-4 w-4"}),title:"Align Center",isActive:f.isActive({textAlign:"center"}),onClick:()=>f.chain().focus().setTextAlign("center").run()}),jsxRuntime.jsx(je,{icon:jsxRuntime.jsx(lucideReact.AlignRight,{className:"h-4 w-4"}),title:"Align Right",isActive:f.isActive({textAlign:"right"}),onClick:()=>f.chain().focus().setTextAlign("right").run()}),jsxRuntime.jsx(Gr,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(je,{icon:jsxRuntime.jsx(lucideReact.Quote,{className:"h-4 w-4"}),title:"Blockquote",isActive:f.isActive("blockquote"),onClick:()=>f.chain().focus().toggleBlockquote().run()}),jsxRuntime.jsx(je,{icon:jsxRuntime.jsx(lucideReact.Code,{className:"h-4 w-4"}),title:"Code Block",isActive:f.isActive("codeBlock"),onClick:()=>f.chain().focus().toggleCodeBlock().run()}),jsxRuntime.jsx(Gr,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(je,{icon:jsxRuntime.jsx(lucideReact.Link,{className:"h-4 w-4"}),title:"Insert Link",isActive:f.isActive("link"),onClick:b}),jsxRuntime.jsx(je,{icon:jsxRuntime.jsx(lucideReact.Unlink,{className:"h-4 w-4"}),title:"Remove Link",onClick:()=>f.chain().focus().unsetLink().run(),disabled:!f.isActive("link")})]}),jsxRuntime.jsx(react.EditorContent,{editor:f,className:i(PT({size:r})),style:{minHeight:c,maxHeight:d}})]})}):null});lv.displayName="RichTextEditor";var dv=classVarianceAuthority.cva("flex flex-col border rounded-lg bg-background overflow-hidden",{variants:{variant:{default:"",bordered:"border-2",ghost:"border-none bg-transparent"}},defaultVariants:{variant:"default"}});function VT(e,t,r){return kT.centerCrop(kT.makeAspectCrop({unit:"%",width:90},r,e,t),e,t)}async function cv(e,t,r=0,a=1){let n=document.createElement("canvas"),o=n.getContext("2d");if(!o)return null;let s=e.naturalWidth/e.width,l=e.naturalHeight/e.height,c=window.devicePixelRatio||1;n.width=Math.floor(t.width*s*c),n.height=Math.floor(t.height*l*c),o.scale(c,c),o.imageSmoothingQuality="high";let d=t.x*s,m=t.y*l,u=r*Math.PI/180,p=e.naturalWidth/2,f=e.naturalHeight/2;return o.save(),o.translate(-d,-m),o.translate(p,f),o.rotate(u),o.scale(a,a),o.translate(-p,-f),o.drawImage(e,0,0,e.naturalWidth,e.naturalHeight,0,0,e.naturalWidth,e.naturalHeight),o.restore(),new Promise(b=>{n.toBlob(x=>{b(x);},"image/png");})}var uv=___namespace.forwardRef(({className:e,variant:t,src:r,aspectRatio:a,onCropChange:n,onCropComplete:o,showZoom:s=true,showRotation:l=true,minZoom:c=1,maxZoom:d=3,circularCrop:m=false,initialCrop:u,...p},f)=>{let b=___namespace.useRef(null),[x,g]=___namespace.useState(),[v,R]=___namespace.useState(),[w,h]=___namespace.useState(1),[C,y]=___namespace.useState(0),T=P=>{let{width:k,height:L}=P.currentTarget;if(a){let H=VT(k,L,a);g(H);}else g(u||{unit:"%",x:10,y:10,width:80,height:80});},N=P=>{g(P),n?.(P);},E=async P=>{if(R(P),o&&b.current&&P.width&&P.height){let k=await cv(b.current,P,C,w);o(k);}},M=()=>{y(P=>(P+90)%360);};return ___namespace.useEffect(()=>{v&&b.current&&o&&cv(b.current,v,C,w).then(P=>{o(P);});},[w,C,v,o]),jsxRuntime.jsxs("div",{ref:f,className:i(dv({variant:t,className:e})),...p,children:[jsxRuntime.jsx("div",{className:"flex-1 flex items-center justify-center p-4 bg-muted/30 min-h-[300px]",children:jsxRuntime.jsx(kT__default.default,{crop:x,onChange:N,onComplete:E,aspect:a,circularCrop:m,className:"max-h-[400px]",children:jsxRuntime.jsx("img",{ref:b,src:r,alt:"Crop preview",onLoad:T,style:{transform:`scale(${w}) rotate(${C}deg)`,maxHeight:"400px"}})})}),jsxRuntime.jsxs("div",{className:"flex items-center gap-4 p-3 border-t",children:[s&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2 flex-1",children:[jsxRuntime.jsx(lucideReact.ZoomOut,{className:"h-4 w-4 text-muted-foreground"}),jsxRuntime.jsx(Yo,{value:[w],onValueChange:([P])=>h(P),min:c,max:d,step:.1,className:"flex-1"}),jsxRuntime.jsx(lucideReact.ZoomIn,{className:"h-4 w-4 text-muted-foreground"})]}),l&&jsxRuntime.jsx(Z,{variant:"bordered",size:"icon",onClick:M,children:jsxRuntime.jsx(lucideReact.RotateCw,{className:"h-4 w-4"})})]})]})});uv.displayName="ImageCropper";var _l=classVarianceAuthority.cva("inline-block",{variants:{variant:{default:"",bordered:"border rounded-lg p-2",card:"border rounded-lg p-4 bg-card shadow-sm"},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"default",size:"md"}}),BT={sm:96,md:128,lg:192},pv=___namespace.forwardRef(({className:e,variant:t,size:r,value:a,qrSize:n,fgColor:o="currentColor",bgColor:s="transparent",level:l="M",includeMargin:c=false,title:d,logo:m,logoSize:u=40,logoPadding:p=4,logoBackgroundColor:f="white",...b},x)=>{let g=n??BT[r??"md"];return a?jsxRuntime.jsx("div",{ref:x,className:i(_l({variant:t,size:r,className:e})),...b,children:jsxRuntime.jsxs("div",{className:"relative inline-block",children:[jsxRuntime.jsx(AT__default.default,{value:a,size:g,fgColor:o,bgColor:s,level:l,title:d,style:{padding:c?16:0}}),m&&jsxRuntime.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 rounded",style:{padding:p,backgroundColor:f},children:jsxRuntime.jsx("img",{src:m,alt:"Logo",style:{width:u,height:u,objectFit:"contain"}})})]})}):jsxRuntime.jsx("div",{ref:x,className:i(_l({variant:t,size:r,className:e})),...b,children:jsxRuntime.jsx("div",{className:"flex items-center justify-center bg-muted text-muted-foreground text-xs rounded",style:{width:g,height:g},children:"No data"})})});pv.displayName="QRCode";var fv=({children:e,defaultTheme:t="system",storageKey:r="reever-ui-theme",enableSystem:a=true,disableTransitionOnChange:n=false,attribute:o="class",forcedTheme:s,themes:l=["light","dark"]})=>jsxRuntime.jsx(nextThemes.ThemeProvider,{defaultTheme:t,storageKey:r,enableSystem:a,disableTransitionOnChange:n,attribute:o,forcedTheme:s,themes:l,children:e});fv.displayName="ThemeProvider";var WT=classVarianceAuthority.cva("",{variants:{variant:{default:"",bordered:"",ghost:""},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"ghost",size:"md"}}),gv=___namespace.forwardRef(({className:e,variant:t="ghost",size:r="md",mode:a="dropdown"},n)=>{let{theme:o,setTheme:s,resolvedTheme:l}=nextThemes.useTheme(),[c,d]=___namespace.useState(false);___namespace.useEffect(()=>{d(true);},[]);let m=()=>{let u=["light","dark","system"],f=(u.indexOf(o||"system")+1)%u.length;s(u[f]);};return c?a==="cycle"?jsxRuntime.jsxs(Z,{ref:n,variant:t==="default"?"bordered":t,size:"icon",className:i("h-9 w-9",e),onClick:m,children:[l==="dark"?jsxRuntime.jsx(lucideReact.Moon,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.Sun,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle theme"})]}):jsxRuntime.jsxs(Yr,{children:[jsxRuntime.jsx(Ur,{asChild:true,children:jsxRuntime.jsxs(Z,{ref:n,variant:t==="default"?"bordered":t,size:"icon",className:i("h-9 w-9",e),children:[jsxRuntime.jsx(lucideReact.Sun,{className:"h-4 w-4 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),jsxRuntime.jsx(lucideReact.Moon,{className:"absolute h-4 w-4 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}),jsxRuntime.jsxs(Xr,{align:"end",children:[jsxRuntime.jsxs(qt,{onClick:()=>s("light"),children:[jsxRuntime.jsx(lucideReact.Sun,{className:"mr-2 h-4 w-4"}),"Light"]}),jsxRuntime.jsxs(qt,{onClick:()=>s("dark"),children:[jsxRuntime.jsx(lucideReact.Moon,{className:"mr-2 h-4 w-4"}),"Dark"]}),jsxRuntime.jsxs(qt,{onClick:()=>s("system"),children:[jsxRuntime.jsx(lucideReact.Monitor,{className:"mr-2 h-4 w-4"}),"System"]})]})]}):jsxRuntime.jsxs(Z,{ref:n,variant:t==="default"?"bordered":t,size:"icon",className:i("h-9 w-9",e),disabled:true,children:[jsxRuntime.jsx(lucideReact.Sun,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle theme"})]})});gv.displayName="ThemeToggle";var bv=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),vv=classVarianceAuthority.cva("flex w-full rounded-md border border-input bg-background ring-offset-background file:border-0 file:bg-transparent 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",{variants:{size:{sm:"h-8 px-2.5 py-1.5 text-xs",md:"h-10 px-3 py-2 text-sm",lg:"h-12 px-4 py-3 text-base"},isInvalid:{true:"border-danger focus-visible:ring-danger",false:""}},defaultVariants:{size:"md",isInvalid:false}}),hv=classVarianceAuthority.cva("font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),xv=___namespace.forwardRef(({className:e,label:t,description:r,errorMessage:a,isRequired:n,isInvalid:o,size:s,labelClassName:l,inputClassName:c,descriptionClassName:d,errorClassName:m,startContent:u,endContent:p,id:f,...b},x)=>{let g=___namespace.useId(),v=f||g,R=`${v}-description`,w=`${v}-error`,h=o&&a;return jsxRuntime.jsxs("div",{className:i(bv({size:s}),e),children:[t&&jsxRuntime.jsxs("label",{htmlFor:v,className:i(hv({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:"relative",children:[u&&jsxRuntime.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:u}),jsxRuntime.jsx("input",{ref:x,id:v,"aria-invalid":o,"aria-describedby":h?w:r?R:void 0,"aria-required":n,className:i(vv({size:s,isInvalid:o}),u&&"pl-10",p&&"pr-10",c),...b}),p&&jsxRuntime.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:p})]}),r&&!h&&jsxRuntime.jsx("p",{id:R,className:i("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",d),children:r}),h&&jsxRuntime.jsx("p",{id:w,role:"alert",className:i("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a})]})});xv.displayName="TextField";var wv=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),UT=classVarianceAuthority.cva("flex rounded-md border border-input bg-background placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50 text-center [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",{variants:{size:{sm:"h-8 px-8 py-1.5 text-xs",md:"h-10 px-10 py-2 text-sm",lg:"h-12 px-12 py-3 text-base"},isInvalid:{true:"border-danger focus:border-danger",false:""},fullWidth:{true:"w-full",false:"w-fit min-w-24"}},defaultVariants:{size:"md",isInvalid:false,fullWidth:false}}),yv=classVarianceAuthority.cva("absolute top-1/2 -translate-y-1/2 flex items-center justify-center rounded-md text-muted-foreground hover:text-foreground hover:bg-muted disabled:opacity-50 disabled:cursor-not-allowed transition-colors",{variants:{size:{sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10"}},defaultVariants:{size:"md"}}),Rv=classVarianceAuthority.cva("",{variants:{size:{sm:"h-3 w-3",md:"h-4 w-4",lg:"h-5 w-5"}},defaultVariants:{size:"md"}}),XT=classVarianceAuthority.cva("font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),Cv=___namespace.forwardRef(({className:e,label:t,description:r,errorMessage:a,isRequired:n,isInvalid:o,size:s,labelClassName:l,inputClassName:c,descriptionClassName:d,errorClassName:m,min:u,max:p,step:f=1,value:b,defaultValue:x,onChange:g,showButtons:v=true,formatOptions:R,fullWidth:w=false,disabled:h,id:C,...y},T)=>{let N=___namespace.useId(),E=C||N,M=`${E}-description`,P=`${E}-error`,[k,L]=___namespace.useState(x),[H,S]=___namespace.useState(false),D=b!==void 0?b:k,V=o&&a,z=___namespace.useCallback(B=>{B!==void 0&&(u!==void 0&&B<u&&(B=u),p!==void 0&&B>p&&(B=p)),b===void 0&&L(B),g?.(B);},[b,u,p,g]),G=()=>{let B=(D??0)+f;z(B);},I=()=>{let B=(D??0)-f;z(B);},F=B=>{let W=B.target.value;if(W==="")z(void 0);else {let A=parseFloat(W);isNaN(A)||z(A);}},O=B=>{B.key==="ArrowUp"?(B.preventDefault(),G()):B.key==="ArrowDown"&&(B.preventDefault(),I());},ee=___namespace.useMemo(()=>D===void 0?"":R?new Intl.NumberFormat(void 0,R).format(D):D.toString(),[D,R]),ae=u!==void 0&&D!==void 0&&D<=u,K=p!==void 0&&D!==void 0&&D>=p;return jsxRuntime.jsxs("div",{className:i(wv({size:s}),e),children:[t&&jsxRuntime.jsxs("label",{htmlFor:E,className:i(XT({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:"relative",children:[v&&jsxRuntime.jsx("button",{type:"button",onClick:I,disabled:h||ae,className:i(yv({size:s}),"left-1"),tabIndex:-1,"aria-label":"Decrease value",children:jsxRuntime.jsx(lucideReact.Minus,{className:i(Rv({size:s}))})}),jsxRuntime.jsx("input",{ref:T,id:E,type:"text",inputMode:"decimal",value:ee,onChange:F,onKeyDown:O,onFocus:()=>S(true),onBlur:()=>S(false),"aria-invalid":o,"aria-describedby":V?P:r?M:void 0,"aria-required":n,"aria-valuemin":u,"aria-valuemax":p,"aria-valuenow":D,disabled:h,className:i(UT({size:s,isInvalid:o,fullWidth:w}),!v&&"px-3",c),style:{borderColor:H?"var(--color-foreground)":void 0},...y}),v&&jsxRuntime.jsx("button",{type:"button",onClick:G,disabled:h||K,className:i(yv({size:s}),"right-1"),tabIndex:-1,"aria-label":"Increase value",children:jsxRuntime.jsx(lucideReact.Plus,{className:i(Rv({size:s}))})})]}),r&&!V&&jsxRuntime.jsx("p",{id:M,className:i("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",d),children:r}),V&&jsxRuntime.jsx("p",{id:P,role:"alert",className:i("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a})]})});Cv.displayName="NumberField";var Mv=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),JT=classVarianceAuthority.cva("flex w-full rounded-md border border-input bg-background 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",{variants:{size:{sm:"h-8 pl-8 pr-8 py-1.5 text-xs",md:"h-10 pl-10 pr-10 py-2 text-sm",lg:"h-12 pl-12 pr-12 py-3 text-base"},isInvalid:{true:"border-danger focus-visible:ring-danger",false:""}},defaultVariants:{size:"md",isInvalid:false}}),Nv=classVarianceAuthority.cva("text-muted-foreground",{variants:{size:{sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"}},defaultVariants:{size:"md"}}),QT=classVarianceAuthority.cva("font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),eP=classVarianceAuthority.cva("absolute top-1/2 -translate-y-1/2 flex items-center justify-center rounded-full text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",{variants:{size:{sm:"h-5 w-5 right-1.5",md:"h-6 w-6 right-2",lg:"h-7 w-7 right-2.5"}},defaultVariants:{size:"md"}}),Tv=___namespace.forwardRef(({className:e,label:t,description:r,errorMessage:a,isRequired:n,isInvalid:o,size:s,labelClassName:l,inputClassName:c,descriptionClassName:d,errorClassName:m,value:u,defaultValue:p="",onChange:f,onClear:b,onSearch:x,showClearButton:g=true,showSearchIcon:v=true,disabled:R,placeholder:w="Search...",id:h,...C},y)=>{let T=___namespace.useId(),N=h||T,E=`${N}-description`,M=`${N}-error`,[P,k]=___namespace.useState(p),L=u!==void 0?u:P,H=o&&a,S=L.length>0,D=G=>{let I=G.target.value;u===void 0&&k(I),f?.(I);},V=()=>{u===void 0&&k(""),f?.(""),b?.();},z=G=>{G.key==="Enter"?(G.preventDefault(),x?.(L)):G.key==="Escape"&&S&&(G.preventDefault(),V());};return jsxRuntime.jsxs("div",{className:i(Mv({size:s}),e),children:[t&&jsxRuntime.jsxs("label",{htmlFor:N,className:i(QT({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:"relative",children:[v&&jsxRuntime.jsx(lucideReact.Search,{className:i(Nv({size:s}),"absolute left-3 top-1/2 -translate-y-1/2")}),jsxRuntime.jsx("input",{ref:y,id:N,type:"search",value:L,onChange:D,onKeyDown:z,placeholder:w,"aria-invalid":o,"aria-describedby":H?M:r?E:void 0,"aria-required":n,disabled:R,className:i(JT({size:s,isInvalid:o}),!v&&"pl-3",!g&&"pr-3",c),...C}),g&&S&&!R&&jsxRuntime.jsx("button",{type:"button",onClick:V,className:i(eP({size:s})),tabIndex:-1,"aria-label":"Clear search",children:jsxRuntime.jsx(lucideReact.X,{className:i(Nv({size:s}))})})]}),r&&!H&&jsxRuntime.jsx("p",{id:E,className:i("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",d),children:r}),H&&jsxRuntime.jsx("p",{id:M,role:"alert",className:i("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a})]})});Tv.displayName="SearchField";var Pv=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),rP=classVarianceAuthority.cva("flex rounded-md border border-input bg-background placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50 [&::-webkit-calendar-picker-indicator]:hidden",{variants:{size:{sm:"h-8 pl-3 pr-8 py-1.5 text-xs",md:"h-10 pl-3 pr-10 py-2 text-sm",lg:"h-12 pl-4 pr-12 py-3 text-base"},isInvalid:{true:"border-danger focus:border-danger",false:""},fullWidth:{true:"w-full",false:"w-fit"}},defaultVariants:{size:"md",isInvalid:false,fullWidth:false}}),aP=classVarianceAuthority.cva("text-muted-foreground",{variants:{size:{sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"}},defaultVariants:{size:"md"}}),nP=classVarianceAuthority.cva("font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),ql=(e,t="yyyy-MM-dd")=>{if(!e)return "";let r=e.getFullYear(),a=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return t.replace("yyyy",String(r)).replace("MM",a).replace("dd",n)},oP=e=>{if(!e)return null;let t=new Date(e);return isNaN(t.getTime())?null:t},kv=___namespace.forwardRef(({className:e,label:t,description:r,errorMessage:a,isRequired:n,isInvalid:o,size:s,labelClassName:l,inputClassName:c,descriptionClassName:d,errorClassName:m,value:u,defaultValue:p,onChange:f,minDate:b,maxDate:x,dateFormat:g="yyyy-MM-dd",showIcon:v=true,fullWidth:R=false,disabled:w,id:h,...C},y)=>{let T=___namespace.useId(),N=h||T,E=`${N}-description`,M=`${N}-error`,P=___namespace.useRef(null),k=y||P,[L,H]=___namespace.useState(p??null),[S,D]=___namespace.useState(false),V=()=>{!w&&k.current&&k.current.showPicker?.();},z=u!==void 0?u:L,G=o&&a,I=ae=>{let K=oP(ae.target.value);u===void 0&&H(K),f?.(K);},F=z?ql(z,"yyyy-MM-dd"):"",O=b?ql(b,"yyyy-MM-dd"):void 0,ee=x?ql(x,"yyyy-MM-dd"):void 0;return jsxRuntime.jsxs("div",{className:i(Pv({size:s}),e),children:[t&&jsxRuntime.jsxs("label",{htmlFor:N,className:i(nP({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:i("relative",R?"w-full":"w-fit"),children:[jsxRuntime.jsx("input",{ref:k,id:N,type:"date",value:F,onChange:I,onFocus:()=>D(true),onBlur:()=>D(false),min:O,max:ee,"aria-invalid":o,"aria-describedby":G?M:r?E:void 0,"aria-required":n,disabled:w,className:i(rP({size:s,isInvalid:o,fullWidth:R}),!v&&"pr-3",c),style:{borderColor:S?"var(--color-foreground)":void 0},...C}),v&&jsxRuntime.jsx("button",{type:"button",onClick:V,disabled:w,className:"absolute right-3 top-1/2 -translate-y-1/2 cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",tabIndex:-1,"aria-label":"Open calendar",children:jsxRuntime.jsx(lucideReact.Calendar,{className:i(aP({size:s}))})})]}),r&&!G&&jsxRuntime.jsx("p",{id:E,className:i("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",d),children:r}),G&&jsxRuntime.jsx("p",{id:M,role:"alert",className:i("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a})]})});kv.displayName="DateField";var Ev=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),sP=classVarianceAuthority.cva("inline-flex items-center rounded-md border border-input bg-background transition-colors",{variants:{size:{sm:"h-8 px-2 gap-0.5 text-xs",md:"h-10 px-3 gap-1 text-sm",lg:"h-12 px-4 gap-1.5 text-base"},isInvalid:{true:"border-danger",false:""},disabled:{true:"cursor-not-allowed opacity-50",false:""},fullWidth:{true:"w-full justify-center",false:"w-fit"}},defaultVariants:{size:"md",isInvalid:false,disabled:false,fullWidth:false}}),iP=classVarianceAuthority.cva("font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),Lv=___namespace.forwardRef(({className:e,label:t,description:r,errorMessage:a,isRequired:n,isInvalid:o,size:s,labelClassName:l,inputClassName:c,descriptionClassName:d,errorClassName:m,value:u,defaultValue:p,onChange:f,minTime:b,maxTime:x,showSeconds:g=false,hourCycle:v=24,disabled:R,fullWidth:w=false,id:h,...C},y)=>{let T=___namespace.useId(),N=h||T,E=`${N}-description`,M=`${N}-error`,P=___namespace.useRef(null),k=___namespace.useRef(null),L=___namespace.useRef(null),H=___namespace.useRef(null),[S,D]=___namespace.useState(p??null),V=u!==void 0?u:S,z=o&&a,G=$=>v===24?$:$===0?12:$>12?$-12:$,I=$=>$>=12?"PM":"AM",F=($,te)=>te==="AM"?$===12?0:$:$===12?12:$+12,[O,ee]=___namespace.useState(V?String(G(V.hour)).padStart(2,"0"):""),[ae,K]=___namespace.useState(V?String(V.minute).padStart(2,"0"):""),[B,W]=___namespace.useState(V?.second!==void 0?String(V.second).padStart(2,"0"):""),[A,j]=___namespace.useState(V?I(V.hour):"AM"),[Y,Se]=___namespace.useState(false);___namespace.useEffect(()=>{u!==void 0&&(u?(ee(String(G(u.hour)).padStart(2,"0")),K(String(u.minute).padStart(2,"0")),u.second!==void 0&&W(String(u.second).padStart(2,"0")),j(I(u.hour))):(ee(""),K(""),W("")));},[u,v]);let pe=($,te,Ke,Vt)=>{let Ne=parseInt($,10),yt=parseInt(te,10),le=g?parseInt(Ke,10):void 0;if(isNaN(Ne)||isNaN(yt)||g&&isNaN(le)){u===void 0&&D(null),f?.(null);return}let pt={hour:v===12?F(Ne,Vt):Ne,minute:yt,...g&&le!==void 0&&{second:le}};u===void 0&&D(pt),f?.(pt);},Xa=$=>{let te=$.target.value.replace(/\D/g,"").slice(0,2);ee(te);let Ke=v===24?23:12,Vt=v===24?0:1;if(te.length===2){let Ne=parseInt(te,10);Ne>=Vt&&Ne<=Ke&&(k.current?.focus(),k.current?.select());}},re=$=>{let te=$.target.value.replace(/\D/g,"").slice(0,2);if(K(te),te.length===2){let Ke=parseInt(te,10);Ke>=0&&Ke<=59&&(g?(L.current?.focus(),L.current?.select()):v===12&&H.current?.focus());}},Ue=$=>{let te=$.target.value.replace(/\D/g,"").slice(0,2);W(te),te.length===2&&v===12&&H.current?.focus();},Ut=()=>{if(O){let $=parseInt(O,10),te=v===24?23:12,Vt=Math.min(Math.max($,v===24?0:1),te),Ne=String(Vt).padStart(2,"0");ee(Ne),pe(Ne,ae,B,A);}},St=()=>{if(ae){let $=parseInt(ae,10),te=Math.min(Math.max($,0),59),Ke=String(te).padStart(2,"0");K(Ke),pe(O,Ke,B,A);}},mr=()=>{if(B){let $=parseInt(B,10),te=Math.min(Math.max($,0),59),Ke=String(te).padStart(2,"0");W(Ke),pe(O,ae,Ke,A);}},qa=()=>{let $=A==="AM"?"PM":"AM";j($),pe(O,ae,B,$);},oe=$=>{let te=$.key.toLowerCase();te==="a"?($.preventDefault(),A!=="AM"&&(j("AM"),pe(O,ae,B,"AM"))):te==="p"?($.preventDefault(),A!=="PM"&&(j("PM"),pe(O,ae,B,"PM"))):te==="arrowup"||te==="arrowdown"?($.preventDefault(),qa()):te==="arrowleft"&&($.preventDefault(),g?(L.current?.focus(),L.current?.select()):(k.current?.focus(),k.current?.select()));},Ht=($,te)=>{if($.key==="ArrowUp"||$.key==="ArrowDown"){$.preventDefault();let Ke=$.key==="ArrowUp"?1:-1;if(te==="hour"){let Vt=parseInt(O,10)||0,Ne=v===24?23:12,yt=v===24?0:1,le=Vt+Ke;le>Ne&&(le=yt),le<yt&&(le=Ne);let Ae=String(le).padStart(2,"0");ee(Ae),pe(Ae,ae,B,A);}else if(te==="minute"){let Ne=(parseInt(ae,10)||0)+Ke;Ne>59&&(Ne=0),Ne<0&&(Ne=59);let yt=String(Ne).padStart(2,"0");K(yt),pe(O,yt,B,A);}else if(te==="second"){let Ne=(parseInt(B,10)||0)+Ke;Ne>59&&(Ne=0),Ne<0&&(Ne=59);let yt=String(Ne).padStart(2,"0");W(yt),pe(O,ae,yt,A);}}$.key==="ArrowRight"&&($.preventDefault(),te==="hour"?(k.current?.focus(),k.current?.select()):te==="minute"&&g?(L.current?.focus(),L.current?.select()):(te==="minute"&&!g&&v===12||te==="second"&&v===12)&&H.current?.focus()),$.key==="ArrowLeft"&&($.preventDefault(),te==="minute"?(P.current?.focus(),P.current?.select()):te==="second"&&(k.current?.focus(),k.current?.select())),$.key==="Backspace"&&$.currentTarget.value===""&&(te==="minute"?P.current?.focus():te==="second"&&k.current?.focus());},It=i((()=>{switch(s){case "sm":return "w-5";case "lg":return "w-7";default:return "w-6"}})(),"bg-transparent text-center outline-none placeholder:text-muted-foreground tabular-nums",R&&"cursor-not-allowed");return jsxRuntime.jsxs("div",{ref:y,className:i(Ev({size:s}),e),...C,children:[t&&jsxRuntime.jsxs("label",{htmlFor:N,className:i(iP({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:i(sP({size:s,isInvalid:o,disabled:R,fullWidth:w}),c),style:{borderColor:Y?"var(--color-foreground)":void 0},onFocus:()=>Se(true),onBlur:$=>{$.currentTarget.contains($.relatedTarget)||Se(false);},children:[jsxRuntime.jsx("input",{ref:P,id:N,type:"text",inputMode:"numeric",placeholder:v===24?"HH":"hh",value:O,onChange:Xa,onBlur:Ut,onKeyDown:$=>Ht($,"hour"),onFocus:$=>$.target.select(),"aria-label":"Hour","aria-invalid":o,"aria-describedby":z?M:r?E:void 0,"aria-required":n,disabled:R,className:It}),jsxRuntime.jsx("span",{className:"text-muted-foreground",children:":"}),jsxRuntime.jsx("input",{ref:k,type:"text",inputMode:"numeric",placeholder:"mm",value:ae,onChange:re,onBlur:St,onKeyDown:$=>Ht($,"minute"),onFocus:$=>$.target.select(),"aria-label":"Minute",disabled:R,className:It}),g&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"text-muted-foreground",children:":"}),jsxRuntime.jsx("input",{ref:L,type:"text",inputMode:"numeric",placeholder:"ss",value:B,onChange:Ue,onBlur:mr,onKeyDown:$=>Ht($,"second"),onFocus:$=>$.target.select(),"aria-label":"Second",disabled:R,className:It})]}),v===12&&jsxRuntime.jsx("button",{ref:H,type:"button",onClick:qa,onKeyDown:oe,disabled:R,className:i("ml-0.5 rounded text-muted-foreground hover:text-foreground focus:outline-none focus:text-foreground transition-colors tabular-nums",s==="sm"?"w-6":s==="lg"?"w-8":"w-7",R&&"cursor-not-allowed"),"aria-label":"AM/PM",children:A})]}),r&&!z&&jsxRuntime.jsx("p",{id:E,className:i("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",d),children:r}),z&&jsxRuntime.jsx("p",{id:M,role:"alert",className:i("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a})]})});Lv.displayName="TimeField";var Sv=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),cP=classVarianceAuthority.cva("flex rounded-md border border-input bg-background placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50 font-mono uppercase",{variants:{size:{sm:"h-8 pl-10 pr-3 py-1.5 text-xs",md:"h-10 pl-12 pr-3 py-2 text-sm",lg:"h-12 pl-14 pr-4 py-3 text-base"},isInvalid:{true:"border-danger focus:border-danger",false:""},fullWidth:{true:"w-full",false:"w-fit"}},defaultVariants:{size:"md",isInvalid:false,fullWidth:false}}),dP=classVarianceAuthority.cva("absolute left-2 top-1/2 -translate-y-1/2 rounded border border-input overflow-hidden",{variants:{size:{sm:"h-5 w-5",md:"h-6 w-6",lg:"h-8 w-8"}},defaultVariants:{size:"md"}}),uP=classVarianceAuthority.cva("font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),Dv=e=>/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.test(e),mP=e=>(e.startsWith("#")||(e="#"+e),e.length===4&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]),e.toUpperCase()),Hv=___namespace.forwardRef(({className:e,label:t,description:r,errorMessage:a,isRequired:n,isInvalid:o,size:s,labelClassName:l,inputClassName:c,descriptionClassName:d,errorClassName:m,value:u,defaultValue:p="#000000",onChange:f,showSwatch:b=true,showPicker:x=true,allowAlpha:g=false,fullWidth:v=false,disabled:R,id:w,...h},C)=>{let y=___namespace.useId(),T=w||y,N=`${T}-picker`,E=`${T}-description`,M=`${T}-error`,[P,k]=___namespace.useState(p),[L,H]=___namespace.useState(false),S=u!==void 0?u:P,D=o&&a,V=F=>{let O=F.target.value;O&&!O.startsWith("#")&&(O="#"+O),u===void 0&&k(O),f?.(O);},z=F=>{let O=F.target.value.toUpperCase();u===void 0&&k(O),f?.(O);},G=()=>{if(S&&Dv(S)){let F=mP(S);F!==S&&(u===void 0&&k(F),f?.(F));}},I=Dv(S)?S:"#000000";return jsxRuntime.jsxs("div",{className:i(Sv({size:s}),e),children:[t&&jsxRuntime.jsxs("label",{htmlFor:T,className:i(uP({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:"relative",children:[b&&jsxRuntime.jsx("div",{className:i(dP({size:s})),children:x?jsxRuntime.jsxs("label",{htmlFor:N,className:"block h-full w-full cursor-pointer",children:[jsxRuntime.jsx("input",{id:N,type:"color",value:I,onChange:z,disabled:R,className:"absolute inset-0 h-full w-full cursor-pointer opacity-0",tabIndex:-1}),jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundColor:I}})]}):jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundColor:I}})}),jsxRuntime.jsx("input",{ref:C,id:T,type:"text",value:S,onChange:V,onFocus:()=>H(true),onBlur:()=>{H(false),G();},placeholder:"#000000",maxLength:g?9:7,"aria-invalid":o,"aria-describedby":D?M:r?E:void 0,"aria-required":n,disabled:R,className:i(cP({size:s,isInvalid:o,fullWidth:v}),!b&&"pl-3",c),style:{borderColor:L?"var(--color-foreground)":void 0},...h})]}),r&&!D&&jsxRuntime.jsx("p",{id:E,className:i("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",d),children:r}),D&&jsxRuntime.jsx("p",{id:M,role:"alert",className:i("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a})]})});Hv.displayName="ColorField";var Vv=classVarianceAuthority.cva("inline-flex",{variants:{variant:{default:"",attached:"[&>*:not(:first-child):not(:last-child)]:rounded-none [&>*:first-child]:rounded-r-none [&>*:last-child]:rounded-l-none [&>*:not(:first-child)]:-ml-px"},orientation:{horizontal:"flex-row",vertical:"flex-col [&>*:not(:first-child):not(:last-child)]:rounded-none [&>*:first-child]:rounded-b-none [&>*:last-child]:rounded-t-none [&>*:not(:first-child)]:-mt-px [&>*:not(:first-child)]:ml-0"},spacing:{none:"gap-0",sm:"gap-1",md:"gap-2",lg:"gap-3"}},compoundVariants:[{variant:"attached",spacing:["sm","md","lg"],className:"gap-0"}],defaultVariants:{variant:"default",orientation:"horizontal",spacing:"sm"}}),Av=___namespace.createContext({});function fP(){return ___namespace.useContext(Av)}var zv=___namespace.forwardRef(({className:e,variant:t,orientation:r,spacing:a,disabled:n,children:o,...s},l)=>jsxRuntime.jsx(Av.Provider,{value:{disabled:n},children:jsxRuntime.jsx("div",{ref:l,role:"group",className:i(Vv({variant:t,orientation:r,spacing:a,className:e})),...s,children:o})}));zv.displayName="ButtonGroup";var Ov=classVarianceAuthority.cva("inline-flex items-center justify-center transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{solid:"bg-primary text-primary-foreground hover:bg-primary/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground",soft:"bg-primary/10 text-primary hover:bg-primary/20",surface:"bg-muted text-muted-foreground hover:bg-muted/80"},size:{sm:"h-8 w-8",md:"h-9 w-9",lg:"h-10 w-10",xl:"h-12 w-12"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{variant:"ghost",size:"md",radius:"md"}}),Fv=___namespace.forwardRef(({className:e,variant:t,size:r,radius:a,isLoading:n,disabled:o,children:s,...l},c)=>{let d={sm:"h-4 w-4",md:"h-4 w-4",lg:"h-5 w-5",xl:"h-6 w-6"}[r??"md"];return jsxRuntime.jsx("button",{ref:c,type:"button",disabled:o||n,className:i(Ov({variant:t,size:r,radius:a,className:e})),...l,children:n?jsxRuntime.jsxs("svg",{className:i("animate-spin",d),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):jsxRuntime.jsx("span",{className:i("[&>svg]:h-full [&>svg]:w-full",d),children:s})})});Fv.displayName="IconButton";var Gv=classVarianceAuthority.cva("inline-flex items-center",{variants:{variant:{default:"gap-1",compact:"gap-0.5",attached:"[&>*:not(:first-child):not(:last-child)]:rounded-none [&>*:first-child]:rounded-r-none [&>*:last-child]:rounded-l-none [&>*:not(:first-child)]:-ml-px gap-0"},orientation:{horizontal:"flex-row",vertical:"flex-col [&>*:not(:first-child):not(:last-child)]:rounded-none [&>*:first-child]:rounded-b-none [&>*:last-child]:rounded-t-none [&>*:not(:first-child)]:-mt-px [&>*:not(:first-child)]:ml-0"},size:{sm:"",md:"",lg:""},density:{compact:"gap-0.5",regular:"gap-1",spacious:"gap-2"}},defaultVariants:{variant:"default",orientation:"horizontal",size:"md",density:"regular"}}),$v=___namespace.forwardRef(({className:e,variant:t,orientation:r,size:a,density:n,items:o,maxVisibleItems:s,isDisabled:l,onAction:c,showLabels:d=false,renderItem:m,...u},p)=>{let f=s&&s<o.length?o.slice(0,s):o,b=s&&s<o.length?o.slice(s):[],x={sm:"h-8 px-2 text-xs",md:"h-9 px-3 text-sm",lg:"h-10 px-4 text-base"}[a??"md"],g={sm:"h-8 w-8",md:"h-9 w-9",lg:"h-10 w-10"}[a??"md"],v={sm:"h-4 w-4",md:"h-4 w-4",lg:"h-5 w-5"}[a??"md"],R=(h,C)=>{C&&C(),c&&c(h);},w=h=>jsxRuntime.jsxs("button",{type:"button",disabled:l||h.isDisabled,onClick:()=>R(h.key,h.onPress),className:i("inline-flex items-center justify-center gap-2 rounded-md transition-colors","hover:bg-accent hover:text-accent-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",d?x:g),"aria-label":h.label,children:[h.icon&&jsxRuntime.jsx("span",{className:v,children:h.icon}),d&&jsxRuntime.jsx("span",{children:h.label})]},h.key);return jsxRuntime.jsxs("div",{ref:p,role:"group",className:i(Gv({variant:t,orientation:r,size:a,density:n,className:e})),...u,children:[f.map(h=>m?m(h):w(h)),b.length>0&&jsxRuntime.jsxs(Yr,{children:[jsxRuntime.jsx(Ur,{asChild:true,children:jsxRuntime.jsx("button",{type:"button",disabled:l,className:i("inline-flex items-center justify-center rounded-md transition-colors","hover:bg-accent hover:text-accent-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",g),"aria-label":"More actions",children:jsxRuntime.jsx(lucideReact.MoreHorizontal,{className:v})})}),jsxRuntime.jsx(Xr,{align:"end",children:b.map(h=>jsxRuntime.jsxs(qt,{disabled:h.isDisabled,onClick:()=>R(h.key,h.onPress),children:[h.icon&&jsxRuntime.jsx("span",{className:i(v,"mr-2"),children:h.icon}),h.label]},h.key))})]})]})});$v.displayName="ActionGroup";var Yv=classVarianceAuthority.cva("inline-flex items-center gap-2",{variants:{variant:{neutral:"[--status-color:theme(colors.muted.foreground)]",info:"[--status-color:theme(colors.blue.500)]",positive:"[--status-color:theme(colors.green.500)]",notice:"[--status-color:theme(colors.yellow.500)]",negative:"[--status-color:theme(colors.red.500)]"},size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{variant:"neutral",size:"md"}}),xP=classVarianceAuthority.cva("rounded-full bg-[--status-color] flex-shrink-0",{variants:{size:{sm:"h-1.5 w-1.5",md:"h-2 w-2",lg:"h-2.5 w-2.5"},pulse:{true:"animate-pulse",false:""}},defaultVariants:{size:"md",pulse:false}}),Uv=___namespace.forwardRef(({className:e,variant:t,size:r,pulse:a=false,hideLabel:n=false,children:o,...s},l)=>jsxRuntime.jsxs("span",{ref:l,role:"status",className:i(Yv({variant:t,size:r,className:e})),...s,children:[jsxRuntime.jsx("span",{className:i(xP({size:r,pulse:a})),"aria-hidden":"true"}),!n&&o&&jsxRuntime.jsx("span",{className:"text-foreground",children:o})]}));Uv.displayName="StatusLight";var qv=classVarianceAuthority.cva("flex flex-col items-center justify-center text-center",{variants:{size:{sm:"gap-3 max-w-xs",md:"gap-4 max-w-sm",lg:"gap-5 max-w-md"}},defaultVariants:{size:"md"}}),RP=classVarianceAuthority.cva("text-muted-foreground",{variants:{size:{sm:"[&>svg]:h-16 [&>svg]:w-16",md:"[&>svg]:h-24 [&>svg]:w-24",lg:"[&>svg]:h-32 [&>svg]:w-32"}},defaultVariants:{size:"md"}}),wP=classVarianceAuthority.cva("font-semibold text-foreground",{variants:{size:{sm:"text-base",md:"text-lg",lg:"text-xl"}},defaultVariants:{size:"md"}}),CP=classVarianceAuthority.cva("text-muted-foreground",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),Zv=___namespace.forwardRef(({className:e,size:t,illustration:r,heading:a,description:n,children:o,...s},l)=>jsxRuntime.jsxs("div",{ref:l,className:i(qv({size:t,className:e})),...s,children:[r&&jsxRuntime.jsx("div",{className:i(RP({size:t})),"aria-hidden":"true",children:r}),a&&jsxRuntime.jsx("h3",{className:i(wP({size:t})),children:a}),n&&jsxRuntime.jsx("p",{className:i(CP({size:t})),children:n}),o&&jsxRuntime.jsx("div",{className:"mt-2",children:o})]}));Zv.displayName="IllustratedMessage";var eh=classVarianceAuthority.cva("relative flex gap-3 rounded-lg border p-4 text-sm",{variants:{variant:{info:"border-blue-200 bg-blue-50 text-blue-900 dark:border-blue-800 dark:bg-blue-950 dark:text-blue-100 [&>svg]:text-blue-600 dark:[&>svg]:text-blue-400",success:"border-green-200 bg-green-50 text-green-900 dark:border-green-800 dark:bg-green-950 dark:text-green-100 [&>svg]:text-green-600 dark:[&>svg]:text-green-400",warning:"border-amber-200 bg-amber-50 text-amber-900 dark:border-amber-800 dark:bg-amber-950 dark:text-amber-100 [&>svg]:text-amber-600 dark:[&>svg]:text-amber-400",error:"border-red-200 bg-red-50 text-red-900 dark:border-red-800 dark:bg-red-950 dark:text-red-100 [&>svg]:text-red-600 dark:[&>svg]:text-red-400",neutral:"border-border bg-muted text-foreground [&>svg]:text-muted-foreground"}},defaultVariants:{variant:"info"}}),LP={info:lucideReact.Info,success:lucideReact.CheckCircle2,warning:lucideReact.AlertTriangle,error:lucideReact.AlertCircle,neutral:lucideReact.Info},th=___namespace.forwardRef(({className:e,variant:t,title:r,icon:a,hideIcon:n=false,isDismissible:o=false,onDismiss:s,actions:l,children:c,...d},m)=>{let[u,p]=___namespace.useState(true);if(!u)return null;let f=LP[t??"info"],b=()=>{p(false),s?.();};return jsxRuntime.jsxs("div",{ref:m,role:"alert",className:i(eh({variant:t,className:e})),...d,children:[!n&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:a||jsxRuntime.jsx(f,{className:"h-5 w-5"})}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-1",children:[r&&jsxRuntime.jsx("div",{className:"font-medium",children:r}),c&&jsxRuntime.jsx("div",{className:"opacity-90",children:c}),l&&jsxRuntime.jsx("div",{className:"mt-3 flex gap-2",children:l})]}),o&&jsxRuntime.jsx("button",{type:"button",onClick:b,className:"absolute right-2 top-2 rounded-md p-1 opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","aria-label":"Dismiss",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})});th.displayName="InlineAlert";var rh=classVarianceAuthority.cva("fixed flex items-center gap-2 rounded-lg border bg-background shadow-lg transition-all duration-200",{variants:{position:{bottom:"bottom-4 left-1/2 -translate-x-1/2",top:"top-4 left-1/2 -translate-x-1/2","bottom-right":"bottom-4 right-4","bottom-left":"bottom-4 left-4"},size:{sm:"px-3 py-2 gap-1.5",md:"px-4 py-2.5 gap-2",lg:"px-5 py-3 gap-3"}},defaultVariants:{position:"bottom",size:"md"}}),ah=___namespace.forwardRef(({className:e,position:t,size:r,selectedCount:a=0,isOpen:n=true,onClose:o,showClose:s=true,selectedText:l,children:c,...d},m)=>{if(!n||a===0)return null;let u=()=>typeof l=="function"?l(a):l||`${a} item${a>1?"s":""} selected`;return jsxRuntime.jsxs("div",{ref:m,role:"toolbar","aria-label":"Actions for selected items",className:i(rh({position:t,size:r,className:e})),...d,children:[jsxRuntime.jsx("span",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:u()}),jsxRuntime.jsx("div",{className:"h-4 w-px bg-border"}),jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:c}),s&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"h-4 w-px bg-border"}),jsxRuntime.jsx("button",{type:"button",onClick:o,className:"rounded-md p-1 text-muted-foreground hover:bg-accent hover:text-accent-foreground transition-colors","aria-label":"Close action bar",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})]})});ah.displayName="ActionBar";var nh=___namespace.forwardRef(({className:e,icon:t,children:r,...a},n)=>jsxRuntime.jsxs("button",{ref:n,type:"button",className:i("inline-flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-sm font-medium transition-colors","hover:bg-accent hover:text-accent-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:opacity-50",e),...a,children:[t&&jsxRuntime.jsx("span",{className:"h-4 w-4 [&>svg]:h-full [&>svg]:w-full",children:t}),r]}));nh.displayName="ActionBarButton";var oh=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{ghost:"hover:bg-accent hover:text-accent-foreground",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",subtle:"text-muted-foreground hover:text-foreground hover:bg-muted"},size:{sm:"h-7 w-7",md:"h-8 w-8",lg:"h-9 w-9"}},defaultVariants:{variant:"ghost",size:"md"}});function zP(e){return "items"in e}var sh=___namespace.forwardRef(({items:e,align:t="end",side:r="bottom",iconOrientation:a="vertical",trigger:n,variant:o,size:s,onAction:l,"aria-label":c="More actions",triggerClassName:d,disabled:m},u)=>{let p={sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"}[s??"md"],f=a==="horizontal"?lucideReact.MoreHorizontal:lucideReact.MoreVertical,b=g=>{g.onSelect?.(),l?.(g.key);},x=g=>jsxRuntime.jsxs(qt,{disabled:g.isDisabled,onClick:()=>b(g),className:i(g.isDestructive&&"text-destructive focus:text-destructive"),children:[g.icon&&jsxRuntime.jsx("span",{className:"mr-2 h-4 w-4 [&>svg]:h-full [&>svg]:w-full",children:g.icon}),jsxRuntime.jsx("span",{className:"flex-1",children:g.label}),g.shortcut&&jsxRuntime.jsx("span",{className:"ml-auto text-xs text-muted-foreground",children:g.shortcut})]},g.key);return jsxRuntime.jsxs(Yr,{children:[jsxRuntime.jsx(Ur,{asChild:true,children:n||jsxRuntime.jsx("button",{ref:u,type:"button",disabled:m,className:i(oh({variant:o,size:s}),d),"aria-label":c,children:jsxRuntime.jsx(f,{className:p})})}),jsxRuntime.jsx(Xr,{align:t,side:r,children:e.map((g,v)=>zP(g)?jsxRuntime.jsxs(___namespace.Fragment,{children:[v>0&&jsxRuntime.jsx(zo,{}),g.items.map(x)]},g.key):x(g))})]})});sh.displayName="ActionMenu";var ch=classVarianceAuthority.cva("flex flex-col",{variants:{variant:{default:"gap-1",bordered:"border rounded-lg divide-y",cards:"gap-2"},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"default",size:"md"}}),dh=classVarianceAuthority.cva("flex items-center gap-3 transition-colors cursor-pointer",{variants:{variant:{default:"rounded-md hover:bg-accent",bordered:"hover:bg-accent",cards:"rounded-lg border hover:border-primary/50 hover:bg-accent/50"},size:{sm:"px-2 py-1.5 text-sm",md:"px-3 py-2",lg:"px-4 py-3 text-lg"},isSelected:{true:"bg-accent",false:""},isDisabled:{true:"opacity-50 pointer-events-none",false:""}},compoundVariants:[{variant:"cards",isSelected:true,className:"border-primary bg-accent"}],defaultVariants:{variant:"default",size:"md",isSelected:false,isDisabled:false}});function uh({className:e,variant:t,size:r,items:a,selectedKeys:n,selectionMode:o="none",onSelectionChange:s,allowsDragging:l=false,onReorder:c,showCheckbox:d=false,renderItem:m,emptyContent:u,...p}){let[f,b]=___namespace.useState(new Set),[x,g]=___namespace.useState(null),[v,R]=___namespace.useState(null),w=___namespace.useMemo(()=>n?n instanceof Set?n:new Set(n):f,[n,f]),h=N=>{if(o==="none")return;let E;o==="single"?E=w.has(N)?new Set:new Set([N]):(E=new Set(w),E.has(N)?E.delete(N):E.add(N)),n||b(E),s?.(E);},C=(N,E)=>{g(E),N.dataTransfer.effectAllowed="move";},y=(N,E)=>{N.preventDefault(),x!==E&&R(E);},T=()=>{if(x&&v&&x!==v){let N=a.findIndex(k=>k.key===x),E=a.findIndex(k=>k.key===v),M=[...a],[P]=M.splice(N,1);M.splice(E,0,P),c?.(M);}g(null),R(null);};return a.length===0?jsxRuntime.jsx("div",{className:i("flex items-center justify-center p-8 text-muted-foreground",e),children:u||"No items"}):jsxRuntime.jsx("div",{role:"listbox","aria-multiselectable":o==="multiple",className:i(ch({variant:t,size:r,className:e})),...p,children:a.map(N=>{let E=w.has(N.key),M=x===N.key,P=v===N.key;return m?jsxRuntime.jsx("div",{role:"option","aria-selected":E,onClick:()=>h(N.key),children:m(N,E)},N.key):jsxRuntime.jsxs("div",{role:"option","aria-selected":E,"aria-disabled":N.isDisabled,draggable:l&&!N.isDisabled,onDragStart:k=>C(k,N.key),onDragOver:k=>y(k,N.key),onDragEnd:T,onClick:()=>!N.isDisabled&&h(N.key),className:i(dh({variant:t,size:r,isSelected:E,isDisabled:N.isDisabled}),M&&"opacity-50",P&&"border-t-2 border-t-primary"),children:[l&&jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-4 w-4 text-muted-foreground cursor-grab"}),d&&o!=="none"&&jsxRuntime.jsx("div",{className:i("flex h-4 w-4 items-center justify-center rounded border",E?"bg-primary border-primary text-primary-foreground":"border-input"),children:E&&jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})}),N.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 text-muted-foreground [&>svg]:h-full [&>svg]:w-full",children:N.icon}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:"truncate",children:N.label}),N.description&&jsxRuntime.jsx("div",{className:"text-sm text-muted-foreground truncate",children:N.description})]})]},N.key)})})}uh.displayName="ListView";var mh=classVarianceAuthority.cva("relative flex w-full touch-none select-none",{variants:{orientation:{horizontal:"items-center",vertical:"flex-col justify-center h-full"},size:{sm:"",md:"",lg:""}},defaultVariants:{orientation:"horizontal",size:"md"}}),FP=classVarianceAuthority.cva("relative grow overflow-hidden rounded-full bg-secondary",{variants:{orientation:{horizontal:"w-full",vertical:"w-2 h-full"},size:{sm:"h-1",md:"h-2",lg:"h-3"}},compoundVariants:[{orientation:"vertical",size:"sm",className:"w-1 h-full"},{orientation:"vertical",size:"md",className:"w-2 h-full"},{orientation:"vertical",size:"lg",className:"w-3 h-full"}],defaultVariants:{orientation:"horizontal",size:"md"}}),KP=classVarianceAuthority.cva("block 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 cursor-grab",{variants:{size:{sm:"h-3.5 w-3.5",md:"h-5 w-5",lg:"h-6 w-6"}},defaultVariants:{size:"md"}}),ph=___namespace.forwardRef(({className:e,orientation:t="horizontal",size:r="md",value:a,defaultValue:n=[25,75],onValueChange:o,onValueCommit:s,min:l=0,max:c=100,step:d=1,disabled:m=false,showLabels:u=false,formatLabel:p=v=>String(v),trackColor:f="primary",name:b,...x},g)=>{let[v,R]=___namespace.useState(n),w=a!==void 0,h=w?a:v,C=___namespace.useRef(null),[y,T]=___namespace.useState(false),[N,E]=___namespace.useState(null),M=(I,F)=>{if(!C.current)return h[0];let O=C.current.getBoundingClientRect(),ee;t==="horizontal"?ee=(I-O.left)/O.width:ee=1-(F-O.top)/O.height,ee=Math.max(0,Math.min(1,ee));let ae=l+ee*(c-l),K=Math.round(ae/d)*d;return Math.max(l,Math.min(c,K))},P=(I,F)=>{let O=[...h];O[F]=I,F===0&&I>h[1]&&(O[0]=h[1]),F===1&&I<h[0]&&(O[1]=h[0]),w||R(O),o?.(O);},k=(I,F)=>{m||(I.preventDefault(),T(true),E(F),I.target.setPointerCapture(I.pointerId));},L=I=>{if(!y||N===null||m)return;let F=M(I.clientX,I.clientY);P(F,N);},H=()=>{y&&(T(false),E(null),s?.(h));},S=I=>{if(m)return;let F=M(I.clientX,I.clientY),O=Math.abs(h[0]-F),ee=Math.abs(h[1]-F),ae=O<=ee?0:1;P(F,ae);let K=[...h];K[ae]=F,s?.(K);},D=(I,F)=>{if(m)return;let O=h[F];switch(I.key){case "ArrowRight":case "ArrowUp":I.preventDefault(),O=Math.min(c,h[F]+d);break;case "ArrowLeft":case "ArrowDown":I.preventDefault(),O=Math.max(l,h[F]-d);break;case "Home":I.preventDefault(),O=l;break;case "End":I.preventDefault(),O=c;break;default:return}P(O,F);let ee=[...h];ee[F]=O,s?.(ee);},V=I=>(I-l)/(c-l)*100,z={primary:"bg-primary",success:"bg-green-500",warning:"bg-yellow-500",danger:"bg-red-500"}[f],G={sm:14,md:20,lg:24}[r||"md"];return jsxRuntime.jsxs("div",{className:"relative w-full",children:[u&&jsxRuntime.jsxs("div",{className:"flex justify-between mb-2 text-sm text-muted-foreground",children:[jsxRuntime.jsx("span",{children:p(h[0])}),jsxRuntime.jsx("span",{children:p(h[1])})]}),jsxRuntime.jsxs("div",{ref:g,className:i(mh({orientation:t,size:r}),m&&"opacity-50 pointer-events-none",e),...x,children:[jsxRuntime.jsx("div",{ref:C,className:i(FP({orientation:t,size:r})),onClick:S,children:jsxRuntime.jsx("div",{className:i("absolute rounded-full",z,{"h-full":t==="horizontal","w-full":t==="vertical"}),style:t==="horizontal"?{left:`${V(h[0])}%`,right:`${100-V(h[1])}%`,top:0,bottom:0}:{bottom:`${V(h[0])}%`,top:`${100-V(h[1])}%`,left:0,right:0}})}),h.map((I,F)=>jsxRuntime.jsx("div",{role:"slider",tabIndex:m?-1:0,"aria-valuemin":l,"aria-valuemax":c,"aria-valuenow":I,"aria-orientation":t||void 0,"aria-disabled":m,className:i(KP({size:r}),y&&N===F&&"cursor-grabbing"),style:t==="horizontal"?{position:"absolute",left:`calc(${V(I)}% - ${G/2}px)`,top:"50%",transform:"translateY(-50%)"}:{position:"absolute",bottom:`calc(${V(I)}% - ${G/2}px)`,left:"50%",transform:"translateX(-50%)"},onPointerDown:O=>k(O,F),onPointerMove:L,onPointerUp:H,onPointerCancel:H,onKeyDown:O=>D(O,F)},F)),b&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("input",{type:"hidden",name:`${b}[0]`,value:h[0]}),jsxRuntime.jsx("input",{type:"hidden",name:`${b}[1]`,value:h[1]})]})]})]})});ph.displayName="RangeSlider";var nc=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-full transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",{variants:{variant:{help:"text-muted-foreground hover:text-foreground",info:"text-blue-500 hover:text-blue-600",warning:"text-yellow-500 hover:text-yellow-600"},size:{sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6"}},defaultVariants:{variant:"help",size:"md"}}),jP=classVarianceAuthority.cva("z-50 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none animate-in fade-in-0 zoom-in-95",{variants:{size:{sm:"w-56 text-xs",md:"w-72 text-sm",lg:"w-80 text-base"}},defaultVariants:{size:"md"}}),YP={help:lucideReact.HelpCircle,info:lucideReact.Info,warning:lucideReact.AlertCircle},bh=___namespace.forwardRef(({variant:e="help",size:t,title:r,children:a,trigger:n,side:o="top",align:s="center",open:l,onOpenChange:c,learnMoreUrl:d,learnMoreText:m="Learn more",triggerClassName:u,contentClassName:p},f)=>{let[b,x]=___namespace.useState(false),[g,v]=___namespace.useState(false),[R,w]=___namespace.useState({top:0,left:0}),h=___namespace.useRef(null),C=___namespace.useRef(null),y=l!==void 0?l:b,T=___namespace.useCallback(P=>{l===void 0&&x(P),c?.(P);},[l,c]);___namespace.useEffect(()=>{v(true);},[]),___namespace.useEffect(()=>{if(!y||!h.current)return;let P=()=>{let k=h.current.getBoundingClientRect(),L=288,H=8,S=0,D=0;switch(o){case "top":S=k.top-H,D=k.left+k.width/2;break;case "bottom":S=k.bottom+H,D=k.left+k.width/2;break;case "left":S=k.top+k.height/2,D=k.left-H;break;case "right":S=k.top+k.height/2,D=k.right+H;break}if(o==="top"||o==="bottom")switch(s){case "start":D=k.left;break;case "center":D=k.left+k.width/2-L/2;break;case "end":D=k.right-L;break}D=Math.max(8,Math.min(D,window.innerWidth-L-8)),w({top:S,left:D});};return P(),window.addEventListener("resize",P),window.addEventListener("scroll",P,true),()=>{window.removeEventListener("resize",P),window.removeEventListener("scroll",P,true);}},[y,o,s]),___namespace.useEffect(()=>{if(!y)return;let P=k=>{C.current&&!C.current.contains(k.target)&&h.current&&!h.current.contains(k.target)&&T(false);};return document.addEventListener("mousedown",P),()=>document.removeEventListener("mousedown",P)},[y,T]),___namespace.useEffect(()=>{if(!y)return;let P=k=>{k.key==="Escape"&&T(false);};return document.addEventListener("keydown",P),()=>document.removeEventListener("keydown",P)},[y,T]);let N=YP[e??"help"],E=()=>{T(!y);},M=()=>{switch(o){case "top":return "bottom center";case "bottom":return "top center";case "left":return "right center";case "right":return "left center";default:return "center center"}};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[n?___namespace.isValidElement(n)?___namespace.cloneElement(n,{ref:h,onClick:P=>{n.props.onClick?.(P),E();}}):jsxRuntime.jsx("button",{ref:h,type:"button",onClick:E,className:i(nc({variant:e,size:t}),u),"aria-label":"Help",children:n}):jsxRuntime.jsx("button",{ref:P=>{h.current=P,typeof f=="function"?f(P):f&&(f.current=P);},type:"button",onClick:E,className:i(nc({variant:e,size:t}),u),"aria-label":"Help",children:jsxRuntime.jsx(N,{className:"h-full w-full"})}),g&&y&&$o__namespace.createPortal(jsxRuntime.jsxs("div",{ref:C,className:i(jP({size:t}),p),style:{position:"fixed",top:R.top,left:R.left,transformOrigin:M()},role:"tooltip",children:[r&&jsxRuntime.jsx("div",{className:"mb-2 font-semibold text-foreground",children:r}),jsxRuntime.jsx("div",{className:"text-muted-foreground",children:a}),d&&jsxRuntime.jsxs("a",{href:d,target:"_blank",rel:"noopener noreferrer",className:"mt-3 inline-block text-primary hover:underline",children:[m," \u2192"]}),jsxRuntime.jsx("div",{className:"absolute h-2 w-2 rotate-45 border bg-popover",style:{...o==="top"&&{bottom:-4,left:"50%",marginLeft:-4,borderTop:"none",borderLeft:"none"},...o==="bottom"&&{top:-4,left:"50%",marginLeft:-4,borderBottom:"none",borderRight:"none"},...o==="left"&&{right:-4,top:"50%",marginTop:-4,borderBottom:"none",borderLeft:"none"},...o==="right"&&{left:-4,top:"50%",marginTop:-4,borderTop:"none",borderRight:"none"}}})]}),document.body)]})});bh.displayName="ContextualHelp";var hh=classVarianceAuthority.cva("flex flex-wrap",{variants:{spacing:{sm:"gap-1",md:"gap-2",lg:"gap-3"}},defaultVariants:{spacing:"md"}}),oc=classVarianceAuthority.cva("inline-flex items-center gap-1 rounded-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",{variants:{variant:{solid:"bg-primary text-primary-foreground",outline:"border border-input bg-background hover:bg-accent",soft:"bg-primary/10 text-primary",surface:"bg-muted text-muted-foreground"},size:{sm:"px-2 py-0.5 text-xs",md:"px-2.5 py-1 text-sm",lg:"px-3 py-1.5 text-base"},isSelected:{true:"",false:""},isDisabled:{true:"opacity-50 pointer-events-none",false:""}},compoundVariants:[{variant:"outline",isSelected:true,className:"border-primary bg-primary/5"},{variant:"soft",isSelected:true,className:"bg-primary/20"},{variant:"surface",isSelected:true,className:"bg-muted/80 ring-2 ring-primary/20"}],defaultVariants:{variant:"soft",size:"md",isSelected:false,isDisabled:false}});function xh({className:e,spacing:t,variant:r,size:a,items:n,selectedKeys:o,selectionMode:s="none",onSelectionChange:l,allowsRemoving:c=false,onRemove:d,label:m,description:u,errorMessage:p,maxTags:f,...b}){let[x,g]=___namespace.useState(new Set),v=___namespace.useMemo(()=>o?o instanceof Set?o:new Set(o):x,[o,x]),R=y=>{if(s==="none")return;let T;s==="single"?T=v.has(y)?new Set:new Set([y]):(T=new Set(v),T.has(y)?T.delete(y):T.add(y)),o||g(T),l?.(T);},w=(y,T)=>{T.stopPropagation(),d?.(y);},h=f?n.slice(0,f):n,C=f?Math.max(0,n.length-f):0;return jsxRuntime.jsxs("div",{className:"flex flex-col gap-1.5",children:[m&&jsxRuntime.jsx("span",{className:"text-sm font-medium text-foreground",children:m}),u&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:u}),jsxRuntime.jsxs("div",{role:"group","aria-label":m,className:i(hh({spacing:t}),e),...b,children:[h.map(y=>{let T=v.has(y.key),N=s!=="none";return jsxRuntime.jsxs("span",{role:N?"button":void 0,tabIndex:N&&!y.isDisabled?0:void 0,"aria-pressed":N?T:void 0,onClick:()=>!y.isDisabled&&R(y.key),onKeyDown:E=>{(E.key==="Enter"||E.key===" ")&&!y.isDisabled&&(E.preventDefault(),R(y.key));},style:y.color?{backgroundColor:y.color}:void 0,className:i(oc({variant:y.color?void 0:r,size:a,isSelected:T,isDisabled:y.isDisabled}),N&&!y.isDisabled&&"cursor-pointer hover:opacity-80",y.color&&"text-white"),children:[y.icon&&jsxRuntime.jsx("span",{className:"h-3.5 w-3.5 [&>svg]:h-full [&>svg]:w-full",children:y.icon}),y.label,c&&!y.isDisabled&&jsxRuntime.jsx("button",{type:"button",onClick:E=>w(y.key,E),className:"ml-0.5 rounded-full p-0.5 hover:bg-black/10 dark:hover:bg-white/10","aria-label":`Remove ${y.label}`,children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3"})})]},y.key)}),C>0&&jsxRuntime.jsxs("span",{className:i(oc({variant:"surface",size:a}),"cursor-default"),children:["+",C," more"]})]}),p&&jsxRuntime.jsx("span",{className:"text-sm text-destructive",children:p})]})}xh.displayName="TagGroup";var wh=classVarianceAuthority.cva("grid",{variants:{columns:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",auto:"grid-cols-[repeat(auto-fill,minmax(150px,1fr))]"},gap:{sm:"gap-2",md:"gap-4",lg:"gap-6"}},defaultVariants:{columns:"auto",gap:"md"}}),Ch=classVarianceAuthority.cva("relative flex flex-col rounded-lg border transition-all cursor-pointer",{variants:{variant:{default:"hover:border-primary/50 hover:bg-accent/50",card:"bg-card shadow-sm hover:shadow-md hover:border-primary/50"},size:{sm:"p-2",md:"p-3",lg:"p-4"},isSelected:{true:"border-primary bg-accent ring-2 ring-primary/20",false:""},isDisabled:{true:"opacity-50 pointer-events-none",false:""}},defaultVariants:{variant:"default",size:"md",isSelected:false,isDisabled:false}});function Nh({className:e,columns:t,gap:r,items:a,selectedKeys:n,selectionMode:o="none",onSelectionChange:s,showSelectionIndicator:l=true,itemVariant:c="default",itemSize:d="md",renderItem:m,emptyContent:u,...p}){let[f,b]=___namespace.useState(new Set),x=___namespace.useMemo(()=>n?n instanceof Set?n:new Set(n):f,[n,f]),g=v=>{if(o==="none")return;let R;o==="single"?R=x.has(v)?new Set:new Set([v]):(R=new Set(x),R.has(v)?R.delete(v):R.add(v)),n||b(R),s?.(R);};return a.length===0?jsxRuntime.jsx("div",{className:i("flex items-center justify-center p-8 text-muted-foreground",e),children:u||"No items"}):jsxRuntime.jsx("div",{role:"grid","aria-multiselectable":o==="multiple",className:i(wh({columns:t,gap:r,className:e})),...p,children:a.map(v=>{let R=x.has(v.key);return m?jsxRuntime.jsx("div",{role:"gridcell","aria-selected":R,onClick:()=>g(v.key),children:m(v,R)},v.key):jsxRuntime.jsxs("div",{role:"gridcell","aria-selected":R,"aria-disabled":v.isDisabled,onClick:()=>!v.isDisabled&&g(v.key),className:i(Ch({variant:c,size:d,isSelected:R,isDisabled:v.isDisabled})),children:[l&&o!=="none"&&R&&jsxRuntime.jsx("div",{className:"absolute top-2 right-2 flex h-5 w-5 items-center justify-center rounded-full bg-primary text-primary-foreground",children:jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})}),v.thumbnail&&jsxRuntime.jsx("div",{className:"mb-2 aspect-square w-full overflow-hidden rounded-md bg-muted",children:v.thumbnail}),jsxRuntime.jsxs("div",{className:"min-w-0",children:[jsxRuntime.jsx("div",{className:"truncate font-medium",children:v.label}),v.description&&jsxRuntime.jsx("div",{className:"mt-1 truncate text-sm text-muted-foreground",children:v.description})]})]},v.key)})})}Nh.displayName="GridList";var Th=classVarianceAuthority.cva("relative w-full",{variants:{size:{sm:"h-1.5",md:"h-2",lg:"h-3"}},defaultVariants:{size:"md"}}),ZP=classVarianceAuthority.cva("w-full h-full rounded-full overflow-hidden",{variants:{variant:{default:"bg-secondary",subtle:"bg-muted"}},defaultVariants:{variant:"default"}}),JP=classVarianceAuthority.cva("h-full transition-all duration-300 ease-out",{variants:{color:{primary:"bg-primary",success:"bg-green-500",warning:"bg-yellow-500",danger:"bg-red-500",info:"bg-blue-500",auto:""},rounded:{true:"rounded-full",false:"rounded-l-full"}},defaultVariants:{color:"primary",rounded:true}}),ti=___namespace.forwardRef(({className:e,size:t,value:r,min:a=0,max:n=100,optimum:o,low:s,high:l,label:c,showValueLabel:d=false,formatValue:m,color:u="primary",trackVariant:p="default",...f},b)=>{let x=Math.min(100,Math.max(0,(r-a)/(n-a)*100)),g=()=>{if(u!=="auto")return "";let R=(r-a)/(n-a),w=s!==void 0?(s-a)/(n-a):.25,h=l!==void 0?(l-a)/(n-a):.75;return (o!==void 0?(o-a)/(n-a):1)>=.5?R<=w?"bg-red-500":R<=h?"bg-yellow-500":"bg-green-500":R>=h?"bg-red-500":R>=w?"bg-yellow-500":"bg-green-500"},v=m?m(r,x):`${Math.round(x)}%`;return jsxRuntime.jsxs("div",{ref:b,className:i("w-full",e),...f,children:[(c||d)&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[c&&jsxRuntime.jsx("span",{className:"text-sm font-medium text-foreground",children:c}),d&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:v})]}),jsxRuntime.jsx("div",{role:"meter","aria-valuenow":r,"aria-valuemin":a,"aria-valuemax":n,"aria-label":c,className:i(Th({size:t})),children:jsxRuntime.jsx("div",{className:i(ZP({variant:p})),children:jsxRuntime.jsx("div",{className:i(JP({color:u==="auto"?void 0:u,rounded:x>=100}),u==="auto"&&g()),style:{width:`${x}%`}})})})]})});ti.displayName="Meter";var Ph=___namespace.forwardRef((e,t)=>jsxRuntime.jsx(ti,{ref:t,color:"auto",low:50,high:80,optimum:0,...e}));Ph.displayName="DiskUsageMeter";var kh=___namespace.forwardRef((e,t)=>jsxRuntime.jsx(ti,{ref:t,color:"auto",low:20,high:50,optimum:100,...e}));kh.displayName="BatteryMeter";var Eh=classVarianceAuthority.cva("relative rounded-lg overflow-hidden cursor-crosshair touch-none select-none",{variants:{size:{sm:"h-32 w-32",md:"h-48 w-48",lg:"h-64 w-64",full:"h-full w-full min-h-48"}},defaultVariants:{size:"md"}}),ai=(e,t,r)=>{let a=n=>{let o=(n+e/60)%6;return r-r*t*Math.max(Math.min(o,4-o,1),0)};return [Math.round(a(5)*255),Math.round(a(3)*255),Math.round(a(1)*255)]},Lh=(e,t,r)=>{e/=255,t/=255,r/=255;let a=Math.max(e,t,r),n=Math.min(e,t,r),o=a-n,s=0,l=a===0?0:o/a,c=a;if(o!==0)switch(a){case e:s=((t-r)/o+(t<r?6:0))*60;break;case t:s=((r-e)/o+2)*60;break;case r:s=((e-t)/o+4)*60;break}return [s,l,c]},Dh=e=>{let t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:null},Sh=(e,t,r)=>"#"+[e,t,r].map(a=>a.toString(16).padStart(2,"0")).join(""),Hh=___namespace.forwardRef(({hue:e,saturation:t,brightness:r,value:a,defaultValue:n="#ff0000",onChange:o,onColorChange:s,size:l,disabled:c,thumbSize:d=18,className:m,...u},p)=>{let f=___namespace.useRef(null),[b,x]=___namespace.useState(false),g=___namespace.useCallback(I=>{let F=Dh(I);return F?Lh(...F):[0,1,1]},[]),[v,R]=___namespace.useState(()=>g(a||n)),w=e??v[0],h=t??v[1],C=r??v[2];___namespace.useEffect(()=>{if(a){let I=g(a);R(I);}},[a,g]);let y=___namespace.useCallback((I,F)=>{if(c||!f.current)return;let O=f.current.getBoundingClientRect(),ee=Math.max(0,Math.min(1,(I-O.left)/O.width)),ae=Math.max(0,Math.min(1,(F-O.top)/O.height)),K=ee,B=1-ae;t===void 0&&r===void 0&&R([w,K,B]),o?.({hue:w,saturation:K,brightness:B});let W=ai(w,K,B);s?.(Sh(...W));},[c,w,t,r,o,s]),T=I=>{c||(I.preventDefault(),x(true),I.target.setPointerCapture(I.pointerId),y(I.clientX,I.clientY));},N=I=>{b&&y(I.clientX,I.clientY);},E=I=>{x(false),I.target.releasePointerCapture(I.pointerId);},[M,P,k]=ai(w,1,1),L=`rgb(${M}, ${P}, ${k})`,H=h*100,S=(1-C)*100,[D,V,z]=ai(w,h,C),G=`rgb(${D}, ${V}, ${z})`;return jsxRuntime.jsx("div",{ref:p,className:i(Eh({size:l}),c&&"cursor-not-allowed opacity-50",m),...u,children:jsxRuntime.jsxs("div",{ref:f,className:"absolute inset-0",style:{backgroundColor:L},onPointerDown:T,onPointerMove:N,onPointerUp:E,onPointerLeave:E,children:[jsxRuntime.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to right, white, transparent)"}}),jsxRuntime.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to bottom, transparent, black)"}}),jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 border-white pointer-events-none",style:{width:d,height:d,left:`calc(${H}% - ${d/2}px)`,top:`calc(${S}% - ${d/2}px)`,backgroundColor:G,boxShadow:"0 0 0 1px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.2)"}})]})})});Hh.displayName="ColorArea";var Vh=classVarianceAuthority.cva("relative rounded-full cursor-pointer touch-none select-none",{variants:{orientation:{horizontal:"w-full",vertical:"h-full"},size:{sm:"",md:"",lg:""}},compoundVariants:[{orientation:"horizontal",size:"sm",className:"h-3"},{orientation:"horizontal",size:"md",className:"h-4"},{orientation:"horizontal",size:"lg",className:"h-5"},{orientation:"vertical",size:"sm",className:"w-3"},{orientation:"vertical",size:"md",className:"w-4"},{orientation:"vertical",size:"lg",className:"w-5"}],defaultVariants:{orientation:"horizontal",size:"md"}}),rk=`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cg fill='%23ccc'%3E%3Crect width='4' height='4'/%3E%3Crect x='4' y='4' width='4' height='4'/%3E%3C/g%3E%3C/svg%3E")`,Ih="linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000)",Ah=___namespace.forwardRef(({value:e,defaultValue:t,onChange:r,channel:a="hue",baseColor:n="#ff0000",orientation:o,size:s,disabled:l,thumbSize:c=18,showBorder:d=true,className:m,...u},p)=>{let f=___namespace.useRef(null),[b,x]=___namespace.useState(false),g=()=>{switch(a){case "hue":return 0;case "alpha":case "saturation":case "brightness":return 1;default:return 0}},[v,R]=___namespace.useState(t??g()),w=e??v,h=a==="hue"?w/360:w,C=___namespace.useCallback((L,H)=>{if(l||!f.current)return;let S=f.current.getBoundingClientRect(),D=o!=="vertical",V;D?V=Math.max(0,Math.min(1,(L-S.left)/S.width)):V=Math.max(0,Math.min(1,1-(H-S.top)/S.height));let z=a==="hue"?V*360:V;e===void 0&&R(z),r?.(z);},[l,o,a,e,r]),y=L=>{l||(L.preventDefault(),x(true),L.target.setPointerCapture(L.pointerId),C(L.clientX,L.clientY));},T=L=>{b&&C(L.clientX,L.clientY);},N=L=>{x(false),L.target.releasePointerCapture(L.pointerId);},E=()=>{let L=o!=="vertical",H=L?"to right":"to top";switch(a){case "hue":return L?Ih:"linear-gradient(to top, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000)";case "alpha":return `linear-gradient(${H}, transparent, ${n})`;case "saturation":return `linear-gradient(${H}, #808080, ${n})`;case "brightness":return `linear-gradient(${H}, #000000, ${n})`;default:return Ih}},M=()=>a==="hue"?`hsl(${w}, 100%, 50%)`:n,P=o!=="vertical",k=h*100;return jsxRuntime.jsx("div",{ref:p,className:i(Vh({orientation:o,size:s}),l&&"cursor-not-allowed opacity-50",m),...u,children:jsxRuntime.jsxs("div",{ref:f,className:i("absolute inset-0 rounded-full overflow-hidden",d&&"border border-input"),style:{backgroundImage:a==="alpha"?rk:void 0,backgroundSize:a==="alpha"?"8px 8px":void 0},onPointerDown:y,onPointerMove:T,onPointerUp:N,onPointerLeave:N,children:[jsxRuntime.jsx("div",{className:"absolute inset-0 rounded-full",style:{background:E()}}),jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 border-white shadow-md pointer-events-none",style:{width:c,height:c,...P?{left:`calc(${k}% - ${c/2}px)`,top:"50%",transform:"translateY(-50%)"}:{bottom:`calc(${k}% - ${c/2}px)`,left:"50%",transform:"translateX(-50%)"},backgroundColor:M(),boxShadow:"0 0 0 1px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.2)"}})]})})});Ah.displayName="ColorSlider";var zh=classVarianceAuthority.cva("relative cursor-crosshair touch-none select-none",{variants:{size:{sm:"h-32 w-32",md:"h-48 w-48",lg:"h-64 w-64"}},defaultVariants:{size:"md"}}),ok=(e,t,r)=>{let a=e-r,n=t-r,o=Math.atan2(n,a)*180/Math.PI+90;return o<0&&(o+=360),o},Bh=___namespace.forwardRef(({value:e,defaultValue:t=0,onChange:r,size:a,disabled:n,innerRadius:o=.6,thumbSize:s=20,showCenter:l=true,className:c,...d},m)=>{let u=___namespace.useRef(null),[p,f]=___namespace.useState(false),[b,x]=___namespace.useState(t),g=e??b,v=___namespace.useCallback((y,T)=>{if(n||!u.current)return;let N=u.current.getBoundingClientRect(),E=N.width/2,M=y-N.left,P=T-N.top,k=ok(M,P,E);e===void 0&&x(k),r?.(k);},[n,e,r]),R=y=>{n||(y.preventDefault(),f(true),y.target.setPointerCapture(y.pointerId),v(y.clientX,y.clientY));},w=y=>{p&&v(y.clientX,y.clientY);},h=y=>{f(false),y.target.releasePointerCapture(y.pointerId);},C=()=>{let y=[];for(let T=0;T<=360;T+=30)y.push(`hsl(${T}, 100%, 50%) ${T}deg`);return `conic-gradient(from 270deg, ${y.join(", ")})`};return jsxRuntime.jsx("div",{ref:m,className:i(zh({size:a}),n&&"cursor-not-allowed opacity-50",c),...d,children:jsxRuntime.jsxs("div",{ref:u,className:"absolute inset-0 rounded-full",style:{background:C()},onPointerDown:R,onPointerMove:w,onPointerUp:h,onPointerLeave:h,children:[o<1&&jsxRuntime.jsx("div",{className:"absolute bg-background rounded-full",style:{top:`${(1-o)*50}%`,left:`${(1-o)*50}%`,width:`${o*100}%`,height:`${o*100}%`}}),l&&o<1&&jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 border-input bg-background",style:{width:8,height:8,top:"50%",left:"50%",transform:"translate(-50%, -50%)"}}),jsxRuntime.jsx(sk,{hue:g,innerRadius:o,thumbSize:s})]})})});Bh.displayName="ColorWheel";var sk=({hue:e,innerRadius:t,thumbSize:r})=>{let a=(1-(1-t)/2)*50,n=(e-90)*Math.PI/180,o=50+a*Math.cos(n),s=50+a*Math.sin(n);return jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 border-white shadow-md pointer-events-none",style:{width:r,height:r,left:`calc(${o}% - ${r/2}px)`,top:`calc(${s}% - ${r/2}px)`,backgroundColor:`hsl(${e}, 100%, 50%)`,boxShadow:"0 0 0 1px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.2)"}})};var Oh=classVarianceAuthority.cva("flex",{variants:{direction:{row:"flex-row","row-reverse":"flex-row-reverse",column:"flex-col","column-reverse":"flex-col-reverse"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse"},gap:{0:"gap-0",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",8:"gap-8",10:"gap-10",12:"gap-12"},inline:{true:"inline-flex",false:"flex"}},defaultVariants:{direction:"row",align:"stretch",justify:"start",wrap:"nowrap",gap:0,inline:false}}),bo=___namespace.forwardRef(({className:e,direction:t,align:r,justify:a,wrap:n,gap:o,inline:s,as:l="div",...c},d)=>jsxRuntime.jsx(l,{ref:d,className:i(Oh({direction:t,align:r,justify:a,wrap:n,gap:o,inline:s,className:e})),...c}));bo.displayName="Flex";var Fh=___namespace.forwardRef(({gap:e=2,align:t="center",...r},a)=>jsxRuntime.jsx(bo,{ref:a,direction:"row",gap:e,align:t,...r}));Fh.displayName="HStack";var Kh=___namespace.forwardRef(({gap:e=2,align:t="stretch",...r},a)=>jsxRuntime.jsx(bo,{ref:a,direction:"column",gap:e,align:t,...r}));Kh.displayName="VStack";var Gh=___namespace.forwardRef((e,t)=>jsxRuntime.jsx(bo,{ref:t,align:"center",justify:"center",...e}));Gh.displayName="Center";var _h=classVarianceAuthority.cva("grid",{variants:{columns:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12",none:"grid-cols-none",auto:"grid-cols-[repeat(auto-fill,minmax(200px,1fr))]"},rows:{1:"grid-rows-1",2:"grid-rows-2",3:"grid-rows-3",4:"grid-rows-4",5:"grid-rows-5",6:"grid-rows-6",none:"grid-rows-none"},gap:{0:"gap-0",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",8:"gap-8",10:"gap-10",12:"gap-12"},gapX:{0:"gap-x-0",1:"gap-x-1",2:"gap-x-2",3:"gap-x-3",4:"gap-x-4",5:"gap-x-5",6:"gap-x-6",8:"gap-x-8",10:"gap-x-10",12:"gap-x-12"},gapY:{0:"gap-y-0",1:"gap-y-1",2:"gap-y-2",3:"gap-y-3",4:"gap-y-4",5:"gap-y-5",6:"gap-y-6",8:"gap-y-8",10:"gap-y-10",12:"gap-y-12"},flow:{row:"grid-flow-row",col:"grid-flow-col",dense:"grid-flow-dense","row-dense":"grid-flow-row-dense","col-dense":"grid-flow-col-dense"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-items-start",center:"justify-items-center",end:"justify-items-end",stretch:"justify-items-stretch"},placeItems:{start:"place-items-start",center:"place-items-center",end:"place-items-end",stretch:"place-items-stretch"}},defaultVariants:{columns:1,gap:4,flow:"row",align:"stretch",justify:"stretch"}}),oi=___namespace.forwardRef(({className:e,columns:t,rows:r,gap:a,gapX:n,gapY:o,flow:s,align:l,justify:c,placeItems:d,as:m="div",minChildWidth:u,style:p,...f},b)=>{let x=u?{...p,gridTemplateColumns:`repeat(auto-fill, minmax(${u}, 1fr))`}:p;return jsxRuntime.jsx(m,{ref:b,className:i(_h({columns:u?void 0:t,rows:r,gap:a,gapX:n,gapY:o,flow:s,align:l,justify:c,placeItems:d,className:e})),style:x,...f})});oi.displayName="Grid";var Wh=classVarianceAuthority.cva("",{variants:{colSpan:{1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12",full:"col-span-full"},rowSpan:{1:"row-span-1",2:"row-span-2",3:"row-span-3",4:"row-span-4",5:"row-span-5",6:"row-span-6",full:"row-span-full"},colStart:{1:"col-start-1",2:"col-start-2",3:"col-start-3",4:"col-start-4",5:"col-start-5",6:"col-start-6",7:"col-start-7",8:"col-start-8",9:"col-start-9",10:"col-start-10",11:"col-start-11",12:"col-start-12",13:"col-start-13",auto:"col-start-auto"},colEnd:{1:"col-end-1",2:"col-end-2",3:"col-end-3",4:"col-end-4",5:"col-end-5",6:"col-end-6",7:"col-end-7",8:"col-end-8",9:"col-end-9",10:"col-end-10",11:"col-end-11",12:"col-end-12",13:"col-end-13",auto:"col-end-auto"},rowStart:{1:"row-start-1",2:"row-start-2",3:"row-start-3",4:"row-start-4",5:"row-start-5",6:"row-start-6",7:"row-start-7",auto:"row-start-auto"},rowEnd:{1:"row-end-1",2:"row-end-2",3:"row-end-3",4:"row-end-4",5:"row-end-5",6:"row-end-6",7:"row-end-7",auto:"row-end-auto"}}}),jh=___namespace.forwardRef(({className:e,colSpan:t,rowSpan:r,colStart:a,colEnd:n,rowStart:o,rowEnd:s,as:l="div",...c},d)=>jsxRuntime.jsx(l,{ref:d,className:i(Wh({colSpan:t,rowSpan:r,colStart:a,colEnd:n,rowStart:o,rowEnd:s,className:e})),...c}));jh.displayName="GridItem";var Yh=___namespace.forwardRef(({columns:e=2,className:t,...r},a)=>{if(typeof e=="number")return jsxRuntime.jsx(oi,{ref:a,columns:e,className:t,...r});let n=i(e.sm&&`sm:grid-cols-${e.sm}`,e.md&&`md:grid-cols-${e.md}`,e.lg&&`lg:grid-cols-${e.lg}`,e.xl&&`xl:grid-cols-${e.xl}`);return jsxRuntime.jsx(oi,{ref:a,columns:1,className:i(n,t),...r})});Yh.displayName="SimpleGrid";var Xh=classVarianceAuthority.cva("rounded-lg",{variants:{variant:{default:"bg-muted",subtle:"bg-muted/50",outline:"border border-border bg-transparent",filled:"bg-accent",sunken:"bg-muted shadow-inner"},size:{sm:"p-3",md:"p-4",lg:"p-6",xl:"p-8"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-3xl"}},defaultVariants:{variant:"default",size:"md",radius:"lg"}}),qh=___namespace.forwardRef(({className:e,variant:t,size:r,radius:a,as:n="div",...o},s)=>jsxRuntime.jsx(n,{ref:s,className:i(Xh({variant:t,size:r,radius:a,className:e})),...o}));qh.displayName="Well";var Jh=classVarianceAuthority.cva("flex",{variants:{orientation:{horizontal:"flex-row items-center gap-2",vertical:"flex-col gap-1"},size:{sm:"",md:"",lg:""},align:{start:"items-start",center:"items-center",end:"items-end"}},compoundVariants:[{orientation:"horizontal",align:"start",className:"items-start"},{orientation:"horizontal",align:"center",className:"items-center"},{orientation:"horizontal",align:"end",className:"items-end"}],defaultVariants:{orientation:"vertical",size:"md",align:"start"}}),uk=classVarianceAuthority.cva("text-muted-foreground font-medium",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),mk=classVarianceAuthority.cva("text-foreground",{variants:{size:{sm:"text-sm",md:"text-base",lg:"text-lg"},weight:{normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},mono:{true:"font-mono",false:""}},defaultVariants:{size:"md",weight:"normal",mono:false}}),Qh=___namespace.forwardRef(({className:e,orientation:t,size:r,align:a,label:n,value:o,valueWeight:s,mono:l,labelWidth:c,labelClassName:d,valueClassName:m,showColon:u=false,copyable:p=false,onCopy:f,...b},x)=>{let g=async()=>{if(!(!p||o===null||o===void 0))try{let v=typeof o=="string"?o:String(o);await navigator.clipboard.writeText(v),f?.();}catch{}};return jsxRuntime.jsxs("div",{ref:x,className:i(Jh({orientation:t,size:r,align:a,className:e})),...b,children:[jsxRuntime.jsxs("span",{className:i(uk({size:r}),d),style:c?{width:c,flexShrink:0}:void 0,children:[n,u&&":"]}),jsxRuntime.jsx("span",{className:i(mk({size:r,weight:s,mono:l}),p&&"cursor-pointer hover:bg-accent/50 rounded px-1 -mx-1 transition-colors",m),onClick:p?g:void 0,role:p?"button":void 0,tabIndex:p?0:void 0,onKeyDown:p?v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),g());}:void 0,children:o})]})});Qh.displayName="LabeledValue";var ex=classVarianceAuthority.cva("",{variants:{orientation:{horizontal:"flex flex-row flex-wrap",vertical:"flex flex-col"},gap:{sm:"gap-2",md:"gap-4",lg:"gap-6"}},defaultVariants:{orientation:"vertical",gap:"md"}}),tx=___namespace.forwardRef(({className:e,orientation:t,gap:r,...a},n)=>jsxRuntime.jsx("div",{ref:n,className:i(ex({orientation:t,gap:r,className:e})),...a}));tx.displayName="LabeledValueGroup";var ox=classVarianceAuthority.cva("flex items-center rounded-md border border-input bg-background ring-offset-background transition-colors focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2",{variants:{size:{sm:"h-8 text-xs",md:"h-10 text-sm",lg:"h-12 text-base"},variant:{default:"",filled:"bg-muted border-transparent",ghost:"border-transparent hover:bg-muted"}},defaultVariants:{size:"md",variant:"default"}}),En=classVarianceAuthority.cva("text-muted-foreground shrink-0",{variants:{size:{sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"}},defaultVariants:{size:"md"}}),sx=___namespace.forwardRef(({value:e,defaultValue:t="",onChange:r,onSearch:a,onSelect:n,suggestions:o=[],recentSearches:s=[],onClearRecentSearches:l,trendingSearches:c=[],isLoading:d,showClear:m=true,showIcon:u=true,popoverWidth:p="trigger",emptyMessage:f="No results found",size:b,variant:x,className:g,placeholder:v="Search...",disabled:R,...w},h)=>{let[C,y]=___namespace.useState(false),[T,N]=___namespace.useState(t),E=e!==void 0?e:T,M=___namespace.useRef(null);___namespace.useImperativeHandle(h,()=>M.current);let P=E.length>0,k=C&&(o.length>0||s.length>0||c.length>0||P),L=I=>{e===void 0&&N(I),r?.(I);},H=()=>{L(""),M.current?.focus();},S=I=>{I?.preventDefault(),E.trim()&&(a?.(E.trim()),y(false));},D=I=>{L(I.label),n?.(I),y(false);},V=I=>{L(I),a?.(I),y(false);},z=I=>{L(I),a?.(I),y(false);},G=___namespace.useMemo(()=>{let I={};return o.forEach(F=>{let O=F.category||"Results";I[O]||(I[O]=[]),I[O].push(F);}),I},[o]);return jsxRuntime.jsxs(et,{open:k,onOpenChange:y,children:[jsxRuntime.jsx(gt,{asChild:true,children:jsxRuntime.jsxs("form",{onSubmit:S,className:i(ox({size:b,variant:x}),g),children:[u&&jsxRuntime.jsx(lucideReact.Search,{className:i(En({size:b}),"ml-3")}),jsxRuntime.jsx("input",{ref:M,type:"text",value:E,onChange:I=>L(I.target.value),onFocus:()=>y(true),placeholder:v,disabled:R,className:i("flex-1 bg-transparent px-3 py-2 outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",!u&&"pl-3"),...w}),m&&P&&!R&&jsxRuntime.jsx("button",{type:"button",onClick:H,className:i("mr-2 rounded-sm p-1 text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",En({size:b})),children:jsxRuntime.jsx(lucideReact.X,{className:"h-full w-full"})})]})}),jsxRuntime.jsx(tt,{className:"p-0",style:{width:p==="trigger"?"var(--radix-popover-trigger-width)":p},align:"start",onOpenAutoFocus:I=>I.preventDefault(),children:jsxRuntime.jsxs(cmdk.Command,{className:"rounded-lg border-0",children:[s.length>0&&!P&&jsxRuntime.jsxs("div",{className:"p-2",children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between px-2 py-1.5",children:[jsxRuntime.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Recent"}),l&&jsxRuntime.jsx("button",{type:"button",onClick:l,className:"text-xs text-muted-foreground hover:text-foreground",children:"Clear"})]}),s.map((I,F)=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>V(I),className:"flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm hover:bg-muted",children:[jsxRuntime.jsx(lucideReact.Clock,{className:i(En({size:b}))}),jsxRuntime.jsx("span",{className:"flex-1 text-left truncate",children:I}),jsxRuntime.jsx(lucideReact.ArrowRight,{className:i(En({size:b}),"opacity-0 group-hover:opacity-100")})]},F))]}),c.length>0&&!P&&jsxRuntime.jsxs("div",{className:"border-t p-2",children:[jsxRuntime.jsx("div",{className:"px-2 py-1.5",children:jsxRuntime.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Trending"})}),c.map((I,F)=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>z(I),className:"flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm hover:bg-muted",children:[jsxRuntime.jsx(lucideReact.TrendingUp,{className:i(En({size:b}))}),jsxRuntime.jsx("span",{className:"flex-1 text-left truncate",children:I})]},F))]}),P&&jsxRuntime.jsx("div",{className:"p-2",children:d?jsxRuntime.jsx("div",{className:"flex items-center justify-center py-6",children:jsxRuntime.jsx("div",{className:"h-4 w-4 animate-spin rounded-full border-2 border-primary border-t-transparent"})}):o.length>0?Object.entries(G).map(([I,F])=>jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"px-2 py-1.5",children:jsxRuntime.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:I})}),F.map(O=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>D(O),className:"flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm hover:bg-muted",children:[O.icon||jsxRuntime.jsx(lucideReact.Search,{className:i(En({size:b}))}),jsxRuntime.jsxs("div",{className:"flex-1 text-left",children:[jsxRuntime.jsx("div",{className:"truncate",children:O.label}),O.description&&jsxRuntime.jsx("div",{className:"text-xs text-muted-foreground truncate",children:O.description})]})]},O.id))]},I)):jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:f})})]})})]})});sx.displayName="SearchBar";var ix={Pages:jsxRuntime.jsx(lucideReact.File,{className:"h-4 w-4"}),Files:jsxRuntime.jsx(lucideReact.Folder,{className:"h-4 w-4"}),Settings:jsxRuntime.jsx(lucideReact.Settings,{className:"h-4 w-4"}),Users:jsxRuntime.jsx(lucideReact.User,{className:"h-4 w-4"}),Tags:jsxRuntime.jsx(lucideReact.Hash,{className:"h-4 w-4"})},dx=___namespace.forwardRef(({open:e,onOpenChange:t,items:r=[],recentItems:a=[],placeholder:n="Search...",isLoading:o,emptyMessage:s="No results found.",filter:l,shortcut:c="\u2318K",onSelect:d,footer:m},u)=>{let[p,f]=___namespace.useState(""),b=___namespace.useRef(null),[x,g]=___namespace.useState(false);___namespace.useEffect(()=>{g(true);},[]),___namespace.useEffect(()=>{e||f("");},[e]),___namespace.useEffect(()=>{if(!e)return;let y=T=>{T.key==="Escape"&&t?.(false);};return document.addEventListener("keydown",y),()=>document.removeEventListener("keydown",y)},[e,t]),___namespace.useEffect(()=>(e&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="";}),[e]);let v=___namespace.useMemo(()=>{let y={};return r.forEach(T=>{let N=T.category||"Results";y[N]||(y[N]=[]),y[N].push(T);}),y},[r]),R=y=>{y.onSelect?.(),d?.(y),t?.(false);},w=()=>{t?.(false);},h=p.length>0,C=!h&&a.length>0;return !x||!e?null:$o__namespace.createPortal(jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-state":e?"open":"closed",onClick:w}),jsxRuntime.jsx("div",{ref:u,className:"fixed left-1/2 top-[20%] z-50 w-full max-w-2xl -translate-x-1/2 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=open]:slide-in-from-left-1/2","data-state":e?"open":"closed",children:jsxRuntime.jsxs(cmdk.Command,{className:"overflow-hidden rounded-xl border bg-background shadow-2xl",filter:l,shouldFilter:!l,children:[jsxRuntime.jsxs("div",{className:"flex items-center border-b px-4",children:[jsxRuntime.jsx(lucideReact.Search,{className:"h-5 w-5 shrink-0 text-muted-foreground"}),jsxRuntime.jsx(cmdk.Command.Input,{ref:b,value:p,onValueChange:f,placeholder:n,className:"flex h-14 w-full bg-transparent px-4 py-4 text-base outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50"}),p&&jsxRuntime.jsx("button",{type:"button",onClick:()=>f(""),className:"rounded-sm p-1 text-muted-foreground hover:text-foreground",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]}),jsxRuntime.jsx(cmdk.Command.List,{className:"max-h-[400px] overflow-y-auto p-2",children:o?jsxRuntime.jsx("div",{className:"flex items-center justify-center py-10",children:jsxRuntime.jsx("div",{className:"h-6 w-6 animate-spin rounded-full border-2 border-primary border-t-transparent"})}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[C&&jsxRuntime.jsxs(cmdk.Command.Group,{heading:"Recent",children:[jsxRuntime.jsx("div",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:"Recent"}),a.map(y=>jsxRuntime.jsxs(cmdk.Command.Item,{value:y.label,onSelect:()=>R(y),className:"flex cursor-pointer items-center gap-3 rounded-lg px-3 py-2.5 text-sm aria-selected:bg-muted",children:[jsxRuntime.jsx("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-muted",children:y.icon||ix[y.category||""]||jsxRuntime.jsx(lucideReact.File,{className:"h-4 w-4"})}),jsxRuntime.jsxs("div",{className:"flex-1 overflow-hidden",children:[jsxRuntime.jsx("div",{className:"truncate font-medium",children:y.label}),y.description&&jsxRuntime.jsx("div",{className:"truncate text-xs text-muted-foreground",children:y.description})]}),y.shortcut&&jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:y.shortcut.map((T,N)=>jsxRuntime.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 text-xs font-medium",children:T},N))})]},y.id))]}),h&&Object.entries(v).map(([y,T])=>jsxRuntime.jsxs(cmdk.Command.Group,{heading:y,children:[jsxRuntime.jsx("div",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:y}),T.map(N=>jsxRuntime.jsxs(cmdk.Command.Item,{value:`${N.label} ${N.keywords?.join(" ")||""}`,onSelect:()=>R(N),className:"flex cursor-pointer items-center gap-3 rounded-lg px-3 py-2.5 text-sm aria-selected:bg-muted",children:[jsxRuntime.jsx("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-muted",children:N.icon||ix[y]||jsxRuntime.jsx(lucideReact.File,{className:"h-4 w-4"})}),jsxRuntime.jsxs("div",{className:"flex-1 overflow-hidden",children:[jsxRuntime.jsx("div",{className:"truncate font-medium",children:N.label}),N.description&&jsxRuntime.jsx("div",{className:"truncate text-xs text-muted-foreground",children:N.description})]}),jsxRuntime.jsx(lucideReact.ArrowRight,{className:"h-4 w-4 text-muted-foreground opacity-0 group-aria-selected:opacity-100"})]},N.id))]},y)),jsxRuntime.jsx(cmdk.Command.Empty,{className:"py-10 text-center text-sm text-muted-foreground",children:s})]})}),m?jsxRuntime.jsx("div",{className:"border-t px-4 py-3",children:m}):jsxRuntime.jsxs("div",{className:"flex items-center justify-between border-t px-4 py-3 text-xs text-muted-foreground",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-4",children:[jsxRuntime.jsxs("span",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 font-medium",children:"\u2191\u2193"}),"Navigate"]}),jsxRuntime.jsxs("span",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 font-medium",children:"\u21B5"}),"Select"]}),jsxRuntime.jsxs("span",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 font-medium",children:"Esc"}),"Close"]})]}),jsxRuntime.jsxs("span",{className:"flex items-center gap-1",children:["Press ",jsxRuntime.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 font-medium",children:c})," to open"]})]})]})})]}),document.body)});dx.displayName="SpotlightSearch";function Mk(e="k"){let[t,r]=___namespace.useState(false);return ___namespace.useEffect(()=>{let a=n=>{(n.metaKey||n.ctrlKey)&&n.key===e&&(n.preventDefault(),r(o=>!o));};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[e]),{open:t,setOpen:r,toggle:()=>r(a=>!a)}}var px=___namespace.createContext(null),ci=()=>{let e=___namespace.useContext(px);if(!e)throw new Error("useNotificationCenter must be used within a NotificationCenterProvider");return e},Hk=({children:e,notifications:t,onNotificationsChange:r})=>{let[a,n]=___namespace.useState([]),[o,s]=___namespace.useState(false),l=___namespace.useRef(null),c=t!==void 0,d=c?t:a,m=___namespace.useCallback(g=>{c?r?.(g):n(g);},[c,r]),u=d.filter(g=>!g.read).length,p=___namespace.useCallback(g=>{m(d.map(v=>v.id===g?{...v,read:true}:v));},[d,m]),f=___namespace.useCallback(()=>{m(d.map(g=>({...g,read:true})));},[d,m]),b=___namespace.useCallback(g=>{m(d.filter(v=>v.id!==g));},[d,m]),x=___namespace.useCallback(()=>{m([]);},[m]);return jsxRuntime.jsx(px.Provider,{value:{notifications:d,unreadCount:u,markAsRead:p,markAllAsRead:f,removeNotification:b,clearAll:x,open:o,setOpen:s,triggerRef:l},children:e})},fx=___namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i("relative inline-block",e),...r,children:t}));fx.displayName="NotificationCenter";var gx=___namespace.forwardRef(({className:e,showBadge:t=true,children:r,onClick:a,...n},o)=>{let{unreadCount:s,open:l,setOpen:c,triggerRef:d}=ci(),m=p=>{a?.(p),c(!l);},u=s>99?"99+":String(s);return jsxRuntime.jsxs("button",{ref:p=>{d.current=p,typeof o=="function"?o(p):o&&(o.current=p);},type:"button",onClick:m,"aria-label":"Notifications"+(s>0?", "+s+" unread":""),className:i("relative inline-flex items-center justify-center rounded-md p-2 text-muted-foreground hover:bg-accent hover:text-accent-foreground focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",e),...n,children:[r||jsxRuntime.jsx(lucideReact.Bell,{className:"h-5 w-5"}),t&&s>0&&jsxRuntime.jsx("span",{className:"absolute -top-1 -right-1 flex h-5 min-w-5 items-center justify-center rounded-full bg-destructive px-1 text-xs font-medium text-destructive-foreground",children:u})]})});gx.displayName="NotificationCenterTrigger";var bx=___namespace.forwardRef(({className:e,align:t="end",sideOffset:r=8,emptyMessage:a="No notifications",children:n,...o},s)=>{let{open:l,setOpen:c,notifications:d,markAllAsRead:m,clearAll:u,triggerRef:p}=ci(),[f,b]=___namespace.useState(false),x=___namespace.useRef(null),[g,v]=___namespace.useState({top:0,left:0});return ___namespace.useEffect(()=>{b(true);},[]),___namespace.useEffect(()=>{if(!l||!p.current||!x.current)return;let R=()=>{if(!p.current||!x.current)return;let w=p.current.getBoundingClientRect(),h=x.current.getBoundingClientRect(),C=w.bottom+r,y=w.left;t==="center"?y=w.left+w.width/2-h.width/2:t==="end"&&(y=w.right-h.width),y+h.width>window.innerWidth-16&&(y=window.innerWidth-h.width-16),y<16&&(y=16),v({top:C,left:y});};return R(),window.addEventListener("resize",R),window.addEventListener("scroll",R,true),()=>{window.removeEventListener("resize",R),window.removeEventListener("scroll",R,true);}},[l,p,t,r]),___namespace.useEffect(()=>{if(!l)return;let R=h=>{x.current&&!x.current.contains(h.target)&&p.current&&!p.current.contains(h.target)&&c(false);},w=h=>{h.key==="Escape"&&c(false);};return document.addEventListener("mousedown",R),document.addEventListener("keydown",w),()=>{document.removeEventListener("mousedown",R),document.removeEventListener("keydown",w);}},[l,c,p]),!f||!l?null:$o__namespace.createPortal(jsxRuntime.jsxs("div",{ref:R=>{x.current=R,typeof s=="function"?s(R):s&&(s.current=R);},className:i("fixed z-50 w-80 sm:w-96 max-h-[70vh] overflow-hidden rounded-lg border bg-popover text-popover-foreground shadow-lg","animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",e),style:{top:g.top,left:g.left},...o,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between border-b px-4 py-3",children:[jsxRuntime.jsx("h3",{className:"font-semibold",children:"Notifications"}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[d.length>0&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{type:"button",onClick:m,className:"text-xs text-muted-foreground hover:text-foreground",children:"Mark all read"}),jsxRuntime.jsx("button",{type:"button",onClick:u,className:"text-xs text-muted-foreground hover:text-foreground",children:"Clear all"})]}),jsxRuntime.jsx("button",{type:"button",onClick:()=>c(false),className:"rounded-md p-1 hover:bg-accent",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})]}),jsxRuntime.jsx("div",{className:"max-h-[calc(70vh-60px)] overflow-y-auto",children:n||(d.length===0?jsxRuntime.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-muted-foreground",children:[jsxRuntime.jsx(lucideReact.Bell,{className:"h-10 w-10 mb-2 opacity-50"}),jsxRuntime.jsx("p",{className:"text-sm",children:a})]}):d.map(R=>jsxRuntime.jsx(dc,{notification:R},R.id)))})]}),document.body)});bx.displayName="NotificationCenterContent";var Ik={info:"border-l-blue-500",success:"border-l-green-500",warning:"border-l-yellow-500",error:"border-l-red-500"},Vk={info:lucideReact.Info,success:lucideReact.CheckCircle,warning:lucideReact.AlertTriangle,error:lucideReact.AlertCircle},dc=({notification:e,onMarkAsRead:t,onRemove:r})=>{let{markAsRead:a,removeNotification:n}=ci(),{id:o,title:s,description:l,type:c="info",timestamp:d,read:m,avatar:u,action:p}=e,f=Vk[c],b=()=>{t?t():a(o);},x=()=>{r?r():n(o);},g=v=>{if(!v)return null;let R=typeof v=="string"?new Date(v):v,h=new Date().getTime()-R.getTime(),C=Math.floor(h/6e4),y=Math.floor(h/36e5),T=Math.floor(h/864e5);return C<1?"Just now":C<60?C+"m ago":y<24?y+"h ago":T<7?T+"d ago":R.toLocaleDateString()};return jsxRuntime.jsxs("div",{className:i("group relative flex gap-3 border-b border-l-4 px-4 py-3 transition-colors hover:bg-accent/50",Ik[c],!m&&"bg-accent/20"),children:[jsxRuntime.jsx("div",{className:"flex-shrink-0",children:u||jsxRuntime.jsx("div",{className:i("flex h-8 w-8 items-center justify-center rounded-full",c==="info"&&"bg-blue-100 text-blue-600 dark:bg-blue-900 dark:text-blue-400",c==="success"&&"bg-green-100 text-green-600 dark:bg-green-900 dark:text-green-400",c==="warning"&&"bg-yellow-100 text-yellow-600 dark:bg-yellow-900 dark:text-yellow-400",c==="error"&&"bg-red-100 text-red-600 dark:bg-red-900 dark:text-red-400"),children:jsxRuntime.jsx(f,{className:"h-4 w-4"})})}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsxs("div",{className:"flex items-start justify-between gap-2",children:[jsxRuntime.jsx("p",{className:i("text-sm font-medium",!m&&"font-semibold"),children:s}),!m&&jsxRuntime.jsx("span",{className:"h-2 w-2 flex-shrink-0 rounded-full bg-primary"})]}),l&&jsxRuntime.jsx("p",{className:"mt-1 text-sm text-muted-foreground line-clamp-2",children:l}),jsxRuntime.jsxs("div",{className:"mt-2 flex items-center gap-3",children:[d&&jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:g(d)}),p&&jsxRuntime.jsx("button",{type:"button",onClick:p.onClick,className:"text-xs font-medium text-primary hover:underline",children:p.label})]})]}),jsxRuntime.jsx("div",{className:"flex-shrink-0 opacity-0 group-hover:opacity-100 transition-opacity",children:jsxRuntime.jsxs("div",{className:"flex gap-1",children:[!m&&jsxRuntime.jsx("button",{type:"button",onClick:b,className:"rounded-md p-1 hover:bg-accent",title:"Mark as read",children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})}),jsxRuntime.jsx("button",{type:"button",onClick:x,className:"rounded-md p-1 hover:bg-accent text-destructive",title:"Remove",children:jsxRuntime.jsx(lucideReact.Trash2,{className:"h-4 w-4"})})]})})]})};dc.displayName="NotificationItem";var vx=___namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i("divide-y",e),...r,children:t}));vx.displayName="NotificationList";var hx=classVarianceAuthority.cva("relative flex items-center justify-center gap-3 px-4 py-2.5 text-sm",{variants:{variant:{solid:"",flat:""},type:{default:"",success:"",warning:"",error:""},position:{top:"fixed top-0 left-0 right-0 z-50",relative:"relative"}},compoundVariants:[{variant:"solid",type:"default",className:"bg-primary text-primary-foreground [&>svg]:text-primary-foreground"},{variant:"flat",type:"default",className:"bg-primary/10 text-primary [&>svg]:text-primary"},{variant:"solid",type:"success",className:"bg-green-600 text-white dark:bg-green-500 [&>svg]:text-white"},{variant:"flat",type:"success",className:"bg-green-600/10 text-green-600 dark:bg-green-500/10 dark:text-green-500 [&>svg]:text-green-600 dark:[&>svg]:text-green-500"},{variant:"solid",type:"warning",className:"bg-amber-600 text-white dark:bg-amber-500 [&>svg]:text-white"},{variant:"flat",type:"warning",className:"bg-amber-600/10 text-amber-600 dark:bg-amber-500/10 dark:text-amber-500 [&>svg]:text-amber-600 dark:[&>svg]:text-amber-500"},{variant:"solid",type:"error",className:"bg-red-600 text-white dark:bg-red-500 [&>svg]:text-white"},{variant:"flat",type:"error",className:"bg-red-600/10 text-red-600 dark:bg-red-500/10 dark:text-red-500 [&>svg]:text-red-600 dark:[&>svg]:text-red-500"}],defaultVariants:{variant:"solid",type:"default",position:"relative"}}),$k={default:lucideReact.Info,success:lucideReact.CheckCircle2,warning:lucideReact.AlertTriangle,error:lucideReact.AlertCircle},xx=___namespace.forwardRef(({message:e,type:t="default",variant:r="solid",showIcon:a=false,icon:n,dismissible:o=true,onDismiss:s,endContent:l,position:c,animate:d,autoDismiss:m,storageKey:u,className:p,...f},b)=>{let[x,g]=___namespace.useState(true),[v,R]=___namespace.useState(false);___namespace.useEffect(()=>{u&&localStorage.getItem(`banner-${u}`)==="true"&&g(false);},[u]),___namespace.useEffect(()=>{if(m&&x){let y=setTimeout(()=>{w();},m);return ()=>clearTimeout(y)}},[m,x]);let w=()=>{R(true),setTimeout(()=>{g(false),u&&localStorage.setItem(`banner-${u}`,"true"),s?.();},200);};if(!x)return null;let h=$k[t],C=a?n!==void 0?n:h?jsxRuntime.jsx(h,{className:"h-4 w-4"}):null:null;return jsxRuntime.jsxs("div",{ref:b,className:i(hx({variant:r,type:t,position:c}),d&&"animate-pulse",v&&"animate-out fade-out slide-out-to-top duration-200",p),role:"banner",...f,children:[C&&jsxRuntime.jsx("span",{className:"shrink-0",children:C}),jsxRuntime.jsx("span",{className:"text-center font-medium",children:e}),l&&jsxRuntime.jsx("div",{className:"shrink-0 ml-2",children:l}),o&&jsxRuntime.jsx("button",{type:"button",onClick:w,className:i("absolute right-2 top-1/2 -translate-y-1/2 rounded-sm p-1 transition-opacity hover:opacity-70 cursor-pointer",c==="relative"&&"right-4"),"aria-label":"Dismiss banner",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})});xx.displayName="Banner";var vo=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-full shadow-lg transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{solid:"bg-primary text-primary-foreground hover:bg-primary/90",bordered:"border-2 border-primary bg-transparent text-primary hover:opacity-70",light:"bg-transparent text-primary hover:bg-primary/10",flat:"bg-primary/20 text-primary hover:opacity-70",ghost:"border-2 border-primary bg-transparent text-primary hover:bg-primary hover:text-primary-foreground"},size:{sm:"h-10 w-10",md:"h-14 w-14",lg:"h-16 w-16"},position:{"bottom-right":"fixed bottom-6 right-6","bottom-left":"fixed bottom-6 left-6","bottom-center":"fixed bottom-6 left-1/2 -translate-x-1/2",relative:"relative"}},defaultVariants:{variant:"solid",size:"md",position:"bottom-right"}}),jk=classVarianceAuthority.cva("transition-transform duration-200 [&>svg]:h-full [&>svg]:w-full",{variants:{size:{sm:"h-5 w-5",md:"h-6 w-6",lg:"h-8 w-8"}},defaultVariants:{size:"md"}}),mc=___namespace.forwardRef(({icon:e,label:t="Action button",extended:r,extendedLabel:a,actions:n,direction:o="up",showTooltip:s=true,closeIcon:l,animation:c="rotate",variant:d,size:m,position:u,className:p,onClick:f,disabled:b,...x},g)=>{let[v,R]=___namespace.useState(false),w=n&&n.length>0,h=E=>{w&&R(!v),f?.(E);},C=E=>{E.onClick?.(),R(false);},y={up:{container:"flex-col-reverse bottom-full mb-3 gap-3",item:""},down:{container:"flex-col top-full mt-3 gap-3",item:""},left:{container:"flex-row-reverse right-full mr-3 gap-3",item:""},right:{container:"flex-row left-full ml-3 gap-3",item:""}},T=c==="rotate"&&v?"rotate-45":"",N=c==="scale"&&v?"scale-0":"scale-100";return jsxRuntime.jsxs("div",{className:i("relative z-50",u!=="relative"&&u&&vo({position:u})),children:[w&&v&&jsxRuntime.jsx("div",{className:i("absolute left-1/2 -translate-x-1/2 flex items-center",y[o].container),children:n.map((E,M)=>jsxRuntime.jsxs("div",{className:i("flex items-center gap-2 animate-in fade-in zoom-in duration-200",o==="up"||o==="down"?"flex-row":"flex-col"),style:{animationDelay:`${M*50}ms`},children:[s&&(o==="up"||o==="down")&&jsxRuntime.jsx("span",{className:"rounded-md bg-popover px-2 py-1 text-xs font-medium text-popover-foreground shadow-md whitespace-nowrap",children:E.label}),E.href?jsxRuntime.jsx("a",{href:E.href,className:i(vo({variant:E.variant||"flat",size:m==="lg"?"md":"sm",position:"relative"}),"[&>svg]:h-5 [&>svg]:w-5"),"aria-label":E.label,children:E.icon}):jsxRuntime.jsx("button",{type:"button",onClick:()=>C(E),className:i(vo({variant:E.variant||"flat",size:m==="lg"?"md":"sm",position:"relative"}),"[&>svg]:h-5 [&>svg]:w-5"),"aria-label":E.label,children:E.icon}),s&&(o==="left"||o==="right")&&jsxRuntime.jsx("span",{className:"rounded-md bg-popover px-2 py-1 text-xs font-medium text-popover-foreground shadow-md whitespace-nowrap",children:E.label})]},E.id))}),jsxRuntime.jsxs("button",{ref:g,type:"button",onClick:h,disabled:b,className:i(vo({variant:d,size:m,position:"relative"}),r&&"w-auto px-6 gap-2",p),"aria-label":t,"aria-expanded":w?v:void 0,...x,children:[v&&l?l:jsxRuntime.jsx("span",{className:i(jk({size:m}),T,N,"transition-all duration-200"),children:e||jsxRuntime.jsx(lucideReact.Plus,{})}),r&&a&&jsxRuntime.jsx("span",{className:"font-medium",children:a})]}),w&&v&&jsxRuntime.jsx("div",{className:"fixed inset-0 -z-10",onClick:()=>R(false)})]})});mc.displayName="FloatingActionButton";var Yk=mc;var Nx=classVarianceAuthority.cva("fixed bottom-0 left-0 right-0 z-50 flex items-center justify-around border-t bg-background safe-area-pb",{variants:{variant:{default:"border-border",elevated:"border-transparent shadow-[0_-4px_6px_-1px_rgba(0,0,0,0.1)]",filled:"border-transparent bg-primary text-primary-foreground"},size:{sm:"h-14",md:"h-16",lg:"h-20"}},defaultVariants:{variant:"default",size:"md"}}),Rx=classVarianceAuthority.cva("flex flex-1 flex-col items-center justify-center gap-1 transition-colors cursor-pointer",{variants:{variant:{default:"",elevated:"",filled:""}},defaultVariants:{variant:"default"}}),Mx=___namespace.forwardRef(({className:e,variant:t,size:r,items:a,value:n,defaultValue:o,onValueChange:s,hideLabels:l=false,showActiveLabel:c=false,renderItem:d,...m},u)=>{let[p,f]=___namespace.useState(o||a[0]?.key),b=n!==void 0,x=b?n:p,g=h=>{h.disabled||(b||f(h.key),s?.(h.key));},v=h=>t==="filled"?h?"text-primary-foreground":"text-primary-foreground/60 hover:text-primary-foreground/80":h?"text-primary":"text-muted-foreground hover:text-foreground",R=()=>{switch(r){case "sm":return "h-5 w-5";case "lg":return "h-7 w-7";default:return "h-6 w-6"}},w=()=>{switch(r){case "sm":return "text-[10px]";case "lg":return "text-sm";default:return "text-xs"}};return jsxRuntime.jsx("nav",{ref:u,className:i(Nx({variant:t,size:r}),e),role:"navigation","aria-label":"Bottom navigation",...m,children:a.map(h=>{let C=x===h.key,y=!l&&(c?C:true),T=C&&h.activeIcon?h.activeIcon:h.icon;if(d)return jsxRuntime.jsx("div",{onClick:()=>g(h),className:i(Rx({variant:t}),h.disabled&&"opacity-50 cursor-not-allowed"),children:d(h,C)},h.key);let N=jsxRuntime.jsxs("div",{onClick:()=>!h.href&&g(h),className:i(Rx({variant:t}),v(C),h.disabled&&"opacity-50 cursor-not-allowed"),role:"button","aria-current":C?"page":void 0,"aria-disabled":h.disabled,tabIndex:h.disabled?-1:0,onKeyDown:E=>{(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),g(h));},children:[jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("span",{className:i(R(),"[&>svg]:h-full [&>svg]:w-full"),children:T}),h.badge!==void 0&&h.badge>0&&jsxRuntime.jsx("span",{className:"absolute -top-1 -right-1 flex h-4 min-w-4 items-center justify-center rounded-full bg-red-500 px-1 text-[10px] font-medium text-white",children:h.badge>99?"99+":h.badge}),h.showDot&&jsxRuntime.jsx("span",{className:"absolute -top-0.5 -right-0.5 h-2 w-2 rounded-full bg-red-500"})]}),y&&h.label&&jsxRuntime.jsx("span",{className:i(w(),"font-medium truncate max-w-full px-1"),children:h.label})]},h.key);return h.href&&!h.disabled?jsxRuntime.jsx("a",{href:h.href,onClick:()=>g(h),className:i("flex flex-1 flex-col items-center justify-center gap-1 no-underline",v(C)),children:N},h.key):N})})});Mx.displayName="BottomNavigation";var Xk="fixed inset-x-0 bottom-0 z-50 mt-24 flex h-fit max-h-[90vh] flex-col rounded-t-[20px] border-t border-border/40 dark:border-border/20 bg-background",Px=classVarianceAuthority.cva("flex w-full items-center gap-3 px-4 py-3.5 text-left transition-colors focus-visible:outline-none focus-visible:bg-accent disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"hover:bg-accent",destructive:"text-destructive hover:bg-destructive/10"}},defaultVariants:{variant:"default"}}),kx=___namespace.forwardRef(({open:e,onOpenChange:t,trigger:r,title:a,description:n,items:o,cancelLabel:s="Cancel",onCancel:l,showCancel:c=true,children:d,closeOnSelect:m=true,onAction:u},p)=>{let f=b=>{b.isDisabled||(b.onSelect?.(),u?.(b.key),m&&t?.(false));};return jsxRuntime.jsxs(vaul.Drawer.Root,{open:e,onOpenChange:t,children:[r&&jsxRuntime.jsx(vaul.Drawer.Trigger,{asChild:true,children:r}),jsxRuntime.jsxs(vaul.Drawer.Portal,{children:[jsxRuntime.jsx(vaul.Drawer.Overlay,{className:"fixed inset-0 z-50 bg-black/40"}),jsxRuntime.jsxs(vaul.Drawer.Content,{ref:p,className:Xk,children:[jsxRuntime.jsx("div",{className:"mx-auto mt-4 h-1.5 w-12 flex-shrink-0 rounded-full bg-muted"}),(a||n)&&jsxRuntime.jsxs("div",{className:"px-4 py-3 text-center",children:[a&&jsxRuntime.jsx(vaul.Drawer.Title,{className:"text-base font-semibold",children:a}),n&&jsxRuntime.jsx(vaul.Drawer.Description,{className:"mt-1 text-sm text-muted-foreground",children:n})]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto",children:d||jsxRuntime.jsx("div",{className:"divide-y divide-border/40 dark:divide-border/20",children:o?.map(b=>jsxRuntime.jsxs("button",{type:"button",disabled:b.isDisabled,onClick:()=>f(b),className:i(Px({variant:b.isDestructive?"destructive":"default"})),children:[b.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 flex-shrink-0 [&>svg]:h-full [&>svg]:w-full",children:b.icon}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:"font-medium",children:b.label}),b.description&&jsxRuntime.jsx("div",{className:"text-sm text-muted-foreground truncate",children:b.description})]})]},b.key))})}),c&&jsxRuntime.jsx("div",{className:"border-t border-border/40 dark:border-border/20 p-2 pb-safe",children:jsxRuntime.jsx(vaul.Drawer.Close,{asChild:true,children:jsxRuntime.jsx("button",{type:"button",onClick:l,className:"w-full rounded-lg bg-muted py-3.5 text-center font-semibold transition-colors hover:bg-muted/80",children:s})})})]})]})]})});kx.displayName="ActionSheet";var Lx=classVarianceAuthority.cva("relative overflow-hidden touch-pan-y",{variants:{variant:{default:"",card:"rounded-lg border bg-card"}},defaultVariants:{variant:"default"}}),fc=classVarianceAuthority.cva("flex h-full items-center justify-center px-4 text-white font-medium transition-opacity",{variants:{variant:{primary:"bg-primary",secondary:"bg-secondary text-secondary-foreground",success:"bg-green-500",warning:"bg-yellow-500",danger:"bg-red-500",info:"bg-blue-500"},size:{sm:"min-w-16",md:"min-w-20",lg:"min-w-24"}},defaultVariants:{variant:"primary",size:"md"}}),Dx=___namespace.forwardRef(({className:e,variant:t,leftActions:r=[],rightActions:a=[],actionSize:n="md",threshold:o=.3,onSwipeEnd:s,disabled:l=false,fullSwipeAction:c,children:d,...m},u)=>{let p=___namespace.useRef(null),[f,b]=___namespace.useState(0),[x,g]=___namespace.useState(false),v=___namespace.useRef(0),R=___namespace.useRef(0),w=r.length*(n==="sm"?64:n==="lg"?96:80),h=a.length*(n==="sm"?64:n==="lg"?96:80),C=M=>{l||(g(true),v.current=M.touches[0].clientX,R.current=f);},y=M=>{if(!x||l)return;let k=M.touches[0].clientX-v.current,L=R.current+k;(L>0&&r.length===0||L<0&&a.length===0)&&(L=0),L>w?L=w+(L-w)*.3:L<-h&&(L=-h+(L+h)*.3),b(L);},T=()=>{if(!x)return;g(false);let M=p.current?.offsetWidth||0,P=Math.abs(f)/M;if(c&&P>.6){c==="right"&&f>0&&r[0]?(r[0].onAction?.(),s?.("right",r[0].key)):c==="left"&&f<0&&a[0]&&(a[0].onAction?.(),s?.("left",a[0].key)),b(0);return}f>w*o&&r.length>0?(b(w),s?.("right")):f<-h*o&&a.length>0?(b(-h),s?.("left")):b(0);},N=(M,P)=>{M.onAction?.(),s?.(P,M.key),b(0);},E=()=>{b(0);};return jsxRuntime.jsxs("div",{ref:u,className:i(Lx({variant:t,className:e})),...m,children:[r.length>0&&jsxRuntime.jsx("div",{className:"absolute left-0 top-0 bottom-0 flex",style:{width:w},children:r.map(M=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>N(M,"right"),className:i(fc({variant:M.variant,size:n})),style:{opacity:Math.min(1,f/w)},children:[M.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 [&>svg]:h-full [&>svg]:w-full",children:M.icon}),!M.icon&&M.label]},M.key))}),a.length>0&&jsxRuntime.jsx("div",{className:"absolute right-0 top-0 bottom-0 flex",style:{width:h},children:a.map(M=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>N(M,"left"),className:i(fc({variant:M.variant,size:n})),style:{opacity:Math.min(1,Math.abs(f)/h)},children:[M.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 [&>svg]:h-full [&>svg]:w-full",children:M.icon}),!M.icon&&M.label]},M.key))}),jsxRuntime.jsx("div",{ref:p,className:i("relative bg-background",x?"":"transition-transform duration-200"),style:{transform:`translateX(${f}px)`},onTouchStart:C,onTouchMove:y,onTouchEnd:T,onClick:f!==0?E:void 0,children:d})]})});Dx.displayName="SwipeActions";var Hx=classVarianceAuthority.cva("relative overflow-hidden",{variants:{variant:{default:"",contained:"h-full"}},defaultVariants:{variant:"default"}}),Jk=classVarianceAuthority.cva("absolute left-1/2 -translate-x-1/2 flex items-center justify-center transition-all duration-200",{variants:{size:{sm:"h-8 w-8",md:"h-10 w-10",lg:"h-12 w-12"}},defaultVariants:{size:"md"}}),Ix=___namespace.forwardRef(({className:e,variant:t,onRefresh:r,pullThreshold:a=80,maxPullDistance:n=120,loadingIndicator:o,pullIndicator:s,indicatorSize:l="md",disabled:c=false,pullText:d="Pull to refresh",releaseText:m="Release to refresh",refreshingText:u="Refreshing...",children:p,...f},b)=>{let x=___namespace.useRef(null),[g,v]=___namespace.useState(0),[R,w]=___namespace.useState("idle"),h=___namespace.useRef(0),C=___namespace.useRef(false),y=()=>c||R==="refreshing"?false:(x.current?.scrollTop??window.scrollY)<=0,T=k=>{y()&&(h.current=k.touches[0].clientY,C.current=true);},N=k=>{if(!C.current||!y())return;let H=k.touches[0].clientY-h.current;if(H<0){v(0),w("idle");return}let D=Math.min(H*.5,n);v(D),w(D>=a?"ready":"pulling");},E=async()=>{if(C.current)if(C.current=false,R==="ready"){w("refreshing"),v(a*.6);try{await r();}finally{w("idle"),v(0);}}else w("idle"),v(0);},M={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6"}[l],P=()=>{if(R==="refreshing")return o||jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-1",children:[jsxRuntime.jsx(lucideReact.Loader2,{className:i(M,"animate-spin text-primary")}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:u})]});let k=Math.min(g/a*180,180);return s||jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-1",children:[jsxRuntime.jsx(lucideReact.ArrowDown,{className:i(M,"text-muted-foreground transition-transform"),style:{transform:`rotate(${k}deg)`}}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:R==="ready"?m:d})]})};return jsxRuntime.jsxs("div",{ref:b,className:i(Hx({variant:t,className:e})),...f,children:[jsxRuntime.jsx("div",{className:i(Jk({size:l}),"z-10",R==="idle"&&g===0&&"opacity-0"),style:{top:Math.max(g-60,-60),opacity:Math.min(g/(a*.5),1)},children:P()}),jsxRuntime.jsx("div",{ref:x,className:i("transition-transform duration-200",R==="refreshing"&&"ease-out"),style:{transform:`translateY(${g}px)`,transition:C.current?"none":void 0},onTouchStart:T,onTouchMove:N,onTouchEnd:E,children:p})]})});Ix.displayName="PullToRefresh";var Ax=classVarianceAuthority.cva("flex min-h-screen w-full",{variants:{layout:{default:"flex-col",sidebar:"flex-row"}},defaultVariants:{layout:"default"}}),zx=___namespace.forwardRef(({className:e,layout:t="default",header:r,footer:a,sidebar:n,aside:o,sidebarCollapsed:s=false,sidebarWidth:l="16rem",sidebarCollapsedWidth:c="4rem",asideWidth:d="16rem",fixed:m=false,children:u,...p},f)=>{let b=s?c:l;return jsxRuntime.jsxs("div",{ref:f,className:i(Ax({layout:t}),e),style:{"--app-shell-sidebar-width":b,"--app-shell-aside-width":d},...p,children:[r&&jsxRuntime.jsx(bc,{fixed:m,hasSidebar:!!n,children:r}),jsxRuntime.jsxs("div",{className:"flex flex-1",children:[n&&jsxRuntime.jsx(vc,{collapsed:s,fixed:m,children:n}),jsxRuntime.jsx("main",{className:i("flex-1 flex flex-col min-h-0",m&&r&&"pt-14",m&&a&&"pb-14"),children:u}),o&&jsxRuntime.jsx(hc,{fixed:m,children:o})]}),a&&jsxRuntime.jsx(xc,{fixed:m,hasSidebar:!!n,children:a})]})});zx.displayName="AppShell";var bc=___namespace.forwardRef(({className:e,fixed:t,hasSidebar:r,children:a,...n},o)=>jsxRuntime.jsx("header",{ref:o,className:i("flex h-14 items-center border-b bg-background px-4",t&&"fixed top-0 right-0 z-40",t&&r&&"left-[var(--app-shell-sidebar-width)]",t&&!r&&"left-0",e),...n,children:a}));bc.displayName="AppShellHeader";var vc=___namespace.forwardRef(({className:e,collapsed:t,fixed:r,children:a,...n},o)=>jsxRuntime.jsx("aside",{ref:o,className:i("w-[var(--app-shell-sidebar-width)] shrink-0 border-r bg-background transition-[width] duration-200",r&&"fixed left-0 top-0 bottom-0 z-50",e),"data-collapsed":t,...n,children:a}));vc.displayName="AppShellSidebar";var hc=___namespace.forwardRef(({className:e,fixed:t,children:r,...a},n)=>jsxRuntime.jsx("aside",{ref:n,className:i("w-[var(--app-shell-aside-width)] shrink-0 border-l bg-background",t&&"fixed right-0 top-14 bottom-0 z-40",e),...a,children:r}));hc.displayName="AppShellAside";var xc=___namespace.forwardRef(({className:e,fixed:t,hasSidebar:r,children:a,...n},o)=>jsxRuntime.jsx("footer",{ref:o,className:i("flex h-14 items-center border-t bg-background px-4",t&&"fixed bottom-0 right-0 z-40",t&&r&&"left-[var(--app-shell-sidebar-width)]",t&&!r&&"left-0",e),...n,children:a}));xc.displayName="AppShellFooter";var Bx=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex-1 overflow-auto p-4",e),...t}));Bx.displayName="AppShellMain";var Fx=classVarianceAuthority.cva("flex min-h-screen w-full bg-muted/40",{variants:{variant:{default:"",bordered:"[&_[data-slot=sidebar]]:border-r [&_[data-slot=header]]:border-b",filled:"[&_[data-slot=sidebar]]:bg-background [&_[data-slot=header]]:bg-background"}},defaultVariants:{variant:"bordered"}}),Kx=___namespace.forwardRef(({className:e,variant:t,navigation:r,logo:a,userMenu:n,headerActions:o,breadcrumb:s,defaultCollapsed:l=false,collapsed:c,onCollapsedChange:d,children:m,...u},p)=>{let[f,b]=___namespace.useState(l),[x,g]=___namespace.useState(false),v=c??f,R=___namespace.useCallback(w=>{b(w),d?.(w);},[d]);return jsxRuntime.jsxs("div",{ref:p,className:i(Fx({variant:t}),e),...u,children:[jsxRuntime.jsxs("aside",{"data-slot":"sidebar","data-collapsed":v,className:i("hidden lg:flex flex-col fixed inset-y-0 left-0 z-50 bg-background transition-[width] duration-200",v?"w-16":"w-64"),children:[jsxRuntime.jsx("div",{className:"flex h-14 items-center border-b px-4",children:a}),jsxRuntime.jsx("nav",{className:"flex-1 overflow-auto py-4",children:r}),n&&jsxRuntime.jsx("div",{className:"border-t p-4",children:n})]}),jsxRuntime.jsx(Ko,{open:x,onOpenChange:g,children:jsxRuntime.jsxs(Go,{side:"left",className:"w-64 p-0",children:[jsxRuntime.jsx("div",{className:"flex h-14 items-center border-b px-4",children:a}),jsxRuntime.jsx("nav",{className:"flex-1 overflow-auto py-4",children:r}),n&&jsxRuntime.jsx("div",{className:"border-t p-4",children:n})]})}),jsxRuntime.jsxs("div",{className:i("flex flex-1 flex-col transition-[margin-left] duration-200",v?"lg:ml-16":"lg:ml-64"),children:[jsxRuntime.jsxs("header",{"data-slot":"header",className:"sticky top-0 z-40 flex h-14 items-center gap-4 bg-background px-4 lg:px-6",children:[jsxRuntime.jsxs(Z,{variant:"ghost",size:"icon",className:"lg:hidden",onClick:()=>g(true),children:[jsxRuntime.jsx(lucideReact.Menu,{className:"h-5 w-5"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle menu"})]}),jsxRuntime.jsxs(Z,{variant:"ghost",size:"icon",className:"hidden lg:flex",onClick:()=>R(!v),children:[jsxRuntime.jsx(lucideReact.Menu,{className:"h-5 w-5"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle sidebar"})]}),s&&jsxRuntime.jsx("div",{className:"flex-1",children:s}),o&&jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:o})]}),jsxRuntime.jsx("main",{className:"flex-1 p-4 lg:p-6",children:m})]})]})});Kx.displayName="DashboardLayout";var Gx=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("space-y-6",e),...t}));Gx.displayName="DashboardPage";var $x=___namespace.forwardRef(({className:e,title:t,description:r,actions:a,children:n,...o},s)=>jsxRuntime.jsxs("div",{ref:s,className:i("flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",e),...o,children:[jsxRuntime.jsxs("div",{className:"space-y-1",children:[t&&jsxRuntime.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:t}),r&&jsxRuntime.jsx("p",{className:"text-muted-foreground",children:r}),n]}),a&&jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:a})]}));$x.displayName="DashboardPageHeader";var _x=___namespace.forwardRef(({className:e,columns:t=4,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i("grid gap-4",{1:"grid-cols-1",2:"grid-cols-1 md:grid-cols-2",3:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 md:grid-cols-2 lg:grid-cols-4"}[t],e),...r}));_x.displayName="DashboardGrid";var mi=classVarianceAuthority.cva("min-h-screen w-full",{variants:{variant:{centered:"flex items-center justify-center bg-muted/40",split:"flex flex-col lg:flex-row",cover:"relative flex items-center justify-center"}},defaultVariants:{variant:"centered"}}),Wx=___namespace.forwardRef(({className:e,variant:t="centered",logo:r,sideContent:a,backgroundImage:n,sidePosition:o="left",footer:s,children:l,...c},d)=>t==="split"?jsxRuntime.jsxs("div",{ref:d,className:i(mi({variant:t}),e),...c,children:[jsxRuntime.jsx("div",{className:i("hidden lg:flex lg:w-1/2 flex-col bg-primary text-primary-foreground",o==="right"&&"order-2"),children:a||jsxRuntime.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center p-8",children:[r&&jsxRuntime.jsx("div",{className:"mb-8",children:r}),jsxRuntime.jsxs("div",{className:"max-w-md text-center",children:[jsxRuntime.jsx("h2",{className:"text-3xl font-bold",children:"Welcome back"}),jsxRuntime.jsx("p",{className:"mt-4 text-primary-foreground/80",children:"Sign in to your account to continue"})]})]})}),jsxRuntime.jsxs("div",{className:i("flex flex-1 flex-col lg:w-1/2",o==="right"&&"order-1"),children:[r&&jsxRuntime.jsx("div",{className:"flex items-center justify-center p-6 lg:hidden",children:r}),jsxRuntime.jsx("div",{className:"flex flex-1 items-center justify-center p-6",children:jsxRuntime.jsx("div",{className:"w-full max-w-md space-y-6",children:l})}),s&&jsxRuntime.jsx("div",{className:"p-6 text-center text-sm text-muted-foreground",children:s})]})]}):t==="cover"?jsxRuntime.jsxs("div",{ref:d,className:i(mi({variant:t}),e),style:n?{backgroundImage:`url(${n})`,backgroundSize:"cover",backgroundPosition:"center"}:void 0,...c,children:[n&&jsxRuntime.jsx("div",{className:"absolute inset-0 bg-background/80 backdrop-blur-sm"}),jsxRuntime.jsxs("div",{className:"relative z-10 w-full max-w-md p-6",children:[r&&jsxRuntime.jsx("div",{className:"mb-8 flex justify-center",children:r}),jsxRuntime.jsx("div",{className:"rounded-lg border bg-card p-6 shadow-lg",children:l}),s&&jsxRuntime.jsx("div",{className:"mt-6 text-center text-sm text-muted-foreground",children:s})]})]}):jsxRuntime.jsx("div",{ref:d,className:i(mi({variant:t}),e),...c,children:jsxRuntime.jsxs("div",{className:"w-full max-w-md p-6",children:[r&&jsxRuntime.jsx("div",{className:"mb-8 flex justify-center",children:r}),jsxRuntime.jsx("div",{className:"rounded-lg border bg-card p-6 shadow-sm",children:l}),s&&jsxRuntime.jsx("div",{className:"mt-6 text-center text-sm text-muted-foreground",children:s})]})}));Wx.displayName="AuthLayout";var jx=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("form",{ref:r,className:i("space-y-4",e),...t}));jx.displayName="AuthForm";var Yx=___namespace.forwardRef(({className:e,title:t,description:r,children:a,...n},o)=>jsxRuntime.jsxs("div",{ref:o,className:i("space-y-2 text-center",e),...n,children:[t&&jsxRuntime.jsx("h1",{className:"text-2xl font-bold",children:t}),r&&jsxRuntime.jsx("p",{className:"text-muted-foreground",children:r}),a]}));Yx.displayName="AuthHeader";var Ux=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex flex-col gap-2 text-center text-sm",e),...t}));Ux.displayName="AuthFooterLinks";var Xx=___namespace.forwardRef(({className:e,text:t="or continue with",...r},a)=>jsxRuntime.jsxs("div",{ref:a,className:i("relative my-4",e),...r,children:[jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center",children:jsxRuntime.jsx("span",{className:"w-full border-t"})}),jsxRuntime.jsx("div",{className:"relative flex justify-center text-xs uppercase",children:jsxRuntime.jsx("span",{className:"bg-card px-2 text-muted-foreground",children:t})})]}));Xx.displayName="AuthDivider";var qx=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("grid grid-cols-2 gap-2",e),...t}));qx.displayName="AuthSocialButtons";var pi=classVarianceAuthority.cva("w-full",{variants:{variant:{sidebar:"flex flex-col lg:flex-row gap-8",tabs:"space-y-6",stacked:"space-y-8"}},defaultVariants:{variant:"sidebar"}}),Zx=___namespace.forwardRef(({className:e,variant:t="sidebar",navigation:r,title:a,description:n,children:o,...s},l)=>t==="sidebar"?jsxRuntime.jsxs("div",{ref:l,className:i(pi({variant:t}),e),...s,children:[r&&jsxRuntime.jsx("aside",{className:"lg:w-64 shrink-0",children:jsxRuntime.jsx("nav",{className:"flex flex-col gap-1",children:r})}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-6",children:[(a||n)&&jsxRuntime.jsx(xo,{title:a,description:n}),o]})]}):t==="tabs"?jsxRuntime.jsxs("div",{ref:l,className:i(pi({variant:t}),e),...s,children:[(a||n)&&jsxRuntime.jsx(xo,{title:a,description:n}),r,jsxRuntime.jsx("div",{className:"pt-4",children:o})]}):jsxRuntime.jsxs("div",{ref:l,className:i(pi({variant:t}),e),...s,children:[(a||n)&&jsxRuntime.jsx(xo,{title:a,description:n}),o]}));Zx.displayName="SettingsLayout";var xo=___namespace.forwardRef(({className:e,title:t,description:r,children:a,...n},o)=>jsxRuntime.jsxs("div",{ref:o,className:i("space-y-1",e),...n,children:[t&&jsxRuntime.jsx("h1",{className:"text-2xl font-bold",children:t}),r&&jsxRuntime.jsx("p",{className:"text-muted-foreground",children:r}),a]}));xo.displayName="SettingsHeader";var Jx=___namespace.forwardRef(({className:e,title:t,description:r,children:a,...n},o)=>jsxRuntime.jsxs("div",{ref:o,className:i("space-y-4",e),...n,children:[(t||r)&&jsxRuntime.jsxs("div",{className:"space-y-1",children:[t&&jsxRuntime.jsx("h2",{className:"text-lg font-medium",children:t}),r&&jsxRuntime.jsx("p",{className:"text-sm text-muted-foreground",children:r})]}),a]}));Jx.displayName="SettingsSection";var Qx=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("rounded-lg border bg-card p-6",e),...t}));Qx.displayName="SettingsCard";var ey=___namespace.forwardRef(({className:e,label:t,description:r,htmlFor:a,children:n,...o},s)=>jsxRuntime.jsxs("div",{ref:s,className:i("flex flex-col gap-4 py-4 sm:flex-row sm:items-center sm:justify-between","border-b last:border-0 first:pt-0 last:pb-0",e),...o,children:[jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[t&&jsxRuntime.jsx("label",{htmlFor:a,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:t}),r&&jsxRuntime.jsx("p",{className:"text-sm text-muted-foreground",children:r})]}),jsxRuntime.jsx("div",{className:"shrink-0",children:n})]}));ey.displayName="SettingsRow";var ty=___namespace.forwardRef(({className:e,active:t,icon:r,children:a,...n},o)=>jsxRuntime.jsxs("button",{ref:o,type:"button",className:i("flex items-center gap-3 rounded-md px-3 py-2 text-sm font-medium transition-colors","hover:bg-muted",t&&"bg-muted",e),...n,children:[r&&jsxRuntime.jsx("span",{className:"h-4 w-4 [&>svg]:h-full [&>svg]:w-full",children:r}),a]}));ty.displayName="SettingsNavItem";var ry=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("h-px bg-border my-4",e),...t}));ry.displayName="SettingsSeparator";var Ua=(e,t,r)=>({duration:e,delay:t,ease:r||[.4,0,.2,1]}),aE={hidden:e=>({opacity:e}),visible:{opacity:1},exit:e=>({opacity:e})},ay=___namespace.forwardRef(({show:e=true,children:t,duration:r=.3,delay:a=0,ease:n,className:o,unmountOnExit:s=true,initialOpacity:l=0,onAnimationStart:c,onAnimationComplete:d},m)=>{let u=jsxRuntime.jsx(framerMotion.motion.div,{ref:m,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:aE,custom:l,transition:Ua(r,a,n),className:i(o),onAnimationStart:c,onAnimationComplete:d,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&u}):u});ay.displayName="Fade";var nE=(e,t)=>{let r=typeof t=="number"?`${t}px`:t,a={up:{y:r},down:{y:`-${r}`},left:{x:r},right:{x:`-${r}`}};return {hidden:{opacity:0,...a[e]},visible:{opacity:1,x:0,y:0},exit:{opacity:0,...a[e]}}},ny=___namespace.forwardRef(({show:e=true,children:t,duration:r=.3,delay:a=0,ease:n,className:o,unmountOnExit:s=true,direction:l="up",offset:c=20,onAnimationStart:d,onAnimationComplete:m},u)=>{let p=___namespace.useMemo(()=>nE(l,c),[l,c]),f=jsxRuntime.jsx(framerMotion.motion.div,{ref:u,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:p,transition:Ua(r,a,n),className:i(o),onAnimationStart:d,onAnimationComplete:m,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&f}):f});ny.displayName="Slide";var oE={center:"center center",top:"center top",bottom:"center bottom",left:"left center",right:"right center","top-left":"left top","top-right":"right top","bottom-left":"left bottom","bottom-right":"right bottom"},sE={hidden:e=>({opacity:0,scale:e}),visible:{opacity:1,scale:1},exit:e=>({opacity:0,scale:e})},oy=___namespace.forwardRef(({show:e=true,children:t,duration:r=.3,delay:a=0,ease:n,className:o,unmountOnExit:s=true,initialScale:l=.9,origin:c="center",onAnimationStart:d,onAnimationComplete:m},u)=>{let p=jsxRuntime.jsx(framerMotion.motion.div,{ref:u,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:sE,custom:l,transition:Ua(r,a,n),className:i(o),style:{transformOrigin:oE[c]},onAnimationStart:d,onAnimationComplete:m,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&p}):p});oy.displayName="Scale";var sy=___namespace.forwardRef(({show:e=true,children:t,duration:r=.3,delay:a=0,ease:n,className:o,horizontal:s=false,startingSize:l=0,animateOpacity:c=true,onAnimationStart:d,onAnimationComplete:m},u)=>{let p=s?"width":"height",f={hidden:{[p]:l,opacity:c?0:1},visible:{[p]:"auto",opacity:1},exit:{[p]:l,opacity:c?0:1}};return jsxRuntime.jsx(framerMotion.AnimatePresence,{initial:false,children:e&&jsxRuntime.jsx(framerMotion.motion.div,{ref:u,initial:"hidden",animate:"visible",exit:"exit",variants:f,transition:Ua(r,a,n),className:i("overflow-hidden",o),onAnimationStart:d,onAnimationComplete:m,children:t})})});sy.displayName="Collapse";var iy=___namespace.forwardRef(({show:e=true,children:t,duration:r=.4,delay:a=0,ease:n,className:o,initialWidth:s=0,initialHeight:l=0,animateOpacity:c=true,onAnimationStart:d,onAnimationComplete:m},u)=>{let p={hidden:{width:s,height:l,opacity:c?0:1},visible:{width:"auto",height:"auto",opacity:1},exit:{width:s,height:l,opacity:c?0:1}};return jsxRuntime.jsx(framerMotion.AnimatePresence,{initial:false,children:e&&jsxRuntime.jsx(framerMotion.motion.div,{ref:u,initial:"hidden",animate:"visible",exit:"exit",variants:p,transition:Ua(r,a,n),className:i("overflow-hidden",o),onAnimationStart:d,onAnimationComplete:m,children:t})})});iy.displayName="Expand";var ly=___namespace.forwardRef(({show:e=true,children:t,duration:r=.3,delay:a=0,ease:n,className:o,unmountOnExit:s=true,initialRotation:l=-180,finalRotation:c=0,onAnimationStart:d,onAnimationComplete:m},u)=>{let p={hidden:{opacity:0,rotate:l},visible:{opacity:1,rotate:c},exit:{opacity:0,rotate:l}},f=jsxRuntime.jsx(framerMotion.motion.div,{ref:u,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:p,transition:Ua(r,a,n),className:i(o),onAnimationStart:d,onAnimationComplete:m,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&f}):f});ly.displayName="Rotate";var cy=___namespace.forwardRef(({front:e,back:t,direction:r="horizontal",flipped:a=false,duration:n=.6,delay:o=0,ease:s,className:l,onAnimationStart:c,onAnimationComplete:d},m)=>{let u=r==="horizontal"?"rotateY":"rotateX";return jsxRuntime.jsx("div",{ref:m,className:i("relative",l),style:{perspective:1e3},children:jsxRuntime.jsxs(framerMotion.motion.div,{animate:{[u]:a?180:0},transition:Ua(n,o,s),style:{transformStyle:"preserve-3d"},onAnimationStart:c,onAnimationComplete:d,children:[jsxRuntime.jsx("div",{className:"absolute inset-0",style:{backfaceVisibility:"hidden"},children:e}),jsxRuntime.jsx("div",{className:"absolute inset-0",style:{backfaceVisibility:"hidden",transform:`${u}(180deg)`},children:t})]})})});cy.displayName="Flip";var dy=___namespace.forwardRef(({color:e="currentColor",duration:t=.6,children:r,className:a,disabled:n=false},o)=>{let[s,l]=___namespace.useState([]),c=___namespace.useRef(null),d=u=>{if(n)return;let p=c.current;if(!p)return;let f=p.getBoundingClientRect(),b=u.clientX-f.left,x=u.clientY-f.top,g=Math.max(f.width,f.height)*2,v={id:Date.now(),x:b,y:x,size:g};l(R=>[...R,v]);},m=u=>{l(p=>p.filter(f=>f.id!==u));};return jsxRuntime.jsxs("div",{ref:o,className:i("relative overflow-hidden",a),onClick:d,children:[jsxRuntime.jsx("div",{ref:c,className:"relative z-0",children:r}),jsxRuntime.jsx(framerMotion.AnimatePresence,{children:s.map(u=>jsxRuntime.jsx(framerMotion.motion.span,{initial:{scale:0,opacity:.35},animate:{scale:1,opacity:0},exit:{opacity:0},transition:{duration:t,ease:"easeOut"},onAnimationComplete:()=>m(u.id),className:"pointer-events-none absolute rounded-full",style:{left:u.x-u.size/2,top:u.y-u.size/2,width:u.size,height:u.size,backgroundColor:e}},u.id))})]})});dy.displayName="Ripple";var uy=___namespace.forwardRef(({children:e,animate:t=true,height:r=10,duration:a=.5,count:n=0,className:o,triggerOnHover:s=false},l)=>{let[c,d]=___namespace.useState(false),m=s?c:t,u={idle:{y:0},bounce:{y:[0,-r,0],transition:{duration:a,ease:"easeInOut",repeat:n===0?1/0:n-1,repeatType:"loop"}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,variants:u,initial:"idle",animate:m?"bounce":"idle",className:i(o),onMouseEnter:()=>s&&d(true),onMouseLeave:()=>s&&d(false),children:e})});uy.displayName="Bounce";var cE={subtle:[0,-2,2,-2,2,-1,1,0],normal:[0,-5,5,-5,5,-3,3,0],strong:[0,-10,10,-10,10,-5,5,0]},my=___namespace.forwardRef(({children:e,animate:t=true,intensity:r="normal",duration:a=.5,count:n=1,className:o,triggerOnHover:s=false},l)=>{let[c,d]=___namespace.useState(false),m=s?c:t,u={idle:{x:0},shake:{x:cE[r],transition:{duration:a,ease:"easeInOut",repeat:n-1}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,variants:u,initial:"idle",animate:m?"shake":"idle",className:i(o),onMouseEnter:()=>s&&d(true),onMouseLeave:()=>s&&d(false),children:e})});my.displayName="Shake";var dE={slow:"animate-[pulse_3s_ease-in-out_infinite]",normal:"animate-[pulse_2s_ease-in-out_infinite]",fast:"animate-[pulse_1s_ease-in-out_infinite]"},py=___namespace.forwardRef(({children:e,animate:t=true,speed:r="normal",className:a},n)=>jsxRuntime.jsx("div",{ref:n,className:i(t&&dE[r],a),children:e}));py.displayName="Pulse";var fy=___namespace.forwardRef(({children:e,animate:t=true,angle:r=10,duration:a=.3,count:n=0,className:o,triggerOnHover:s=false},l)=>{let[c,d]=___namespace.useState(false),m=s?c:t,u={idle:{rotate:0},wiggle:{rotate:[0,-r,r,-r,r,0],transition:{duration:a,ease:"easeInOut",repeat:n===0?1/0:n-1,repeatType:"loop"}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,variants:u,initial:"idle",animate:m?"wiggle":"idle",className:i(o),onMouseEnter:()=>s&&d(true),onMouseLeave:()=>s&&d(false),children:e})});fy.displayName="Wiggle";var gy=___namespace.forwardRef(({children:e,animate:t=false,scale:r=1.2,duration:a=.2,className:n,triggerOnHover:o=false,triggerOnClick:s=false},l)=>{let[c,d]=___namespace.useState(false),m=t||c,u={type:"spring",stiffness:400,damping:17,duration:a},p=()=>{s&&(d(true),setTimeout(()=>d(false),a*1e3));};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,animate:{scale:m?r:1},transition:u,className:i(n),onMouseEnter:()=>o&&d(true),onMouseLeave:()=>o&&d(false),onClick:p,children:e})});gy.displayName="Pop";var gE=(e,t,r,a)=>{let n=e.toFixed(t),[o,s]=n.split("."),l=o.replace(/\B(?=(\d{3})+(?!\d))/g,r);return s?`${l}${a}${s}`:l},by=___namespace.forwardRef(({value:e,from:t=0,duration:r=2,decimals:a=0,prefix:n="",suffix:o="",separator:s=",",decimalSeparator:l=".",animateOnView:c=true,delay:d=0,className:m,onComplete:u},p)=>{let f=___namespace.useRef(null),b=framerMotion.useInView(f,{once:true}),[x,g]=___namespace.useState(!c);___namespace.useEffect(()=>{if(c&&b){let h=setTimeout(()=>g(true),d*1e3);return ()=>clearTimeout(h)}},[c,b,d]);let v={damping:30,stiffness:100,duration:r*1e3},R=framerMotion.useSpring(x?e:t,v),w=framerMotion.useTransform(R,h=>gE(h,a,s,l));return ___namespace.useEffect(()=>{x&&R.set(e);},[x,e,R]),___namespace.useEffect(()=>{let h=R.on("change",C=>{Math.abs(C-e)<.01&&u&&u();});return ()=>h()},[R,e,u]),jsxRuntime.jsx("span",{ref:f,className:i(m),children:jsxRuntime.jsxs("span",{ref:p,children:[n,jsxRuntime.jsx(framerMotion.motion.span,{children:w}),o]})})});by.displayName="Counter";var vy=___namespace.forwardRef(({text:e,speed:t=50,delay:r=0,pauseBetween:a=1500,cursor:n=true,cursorChar:o="|",loop:s=false,deleteSpeed:l=30,animateOnView:c=true,className:d,cursorClassName:m,onComplete:u},p)=>{let f=Array.isArray(e)?e:[e],[b,x]=___namespace.useState(""),[g,v]=___namespace.useState(0),[R,w]=___namespace.useState(false),[h,C]=___namespace.useState(false),y=___namespace.useRef(null),T=framerMotion.useInView(y,{once:true}),[N,E]=___namespace.useState(!c);return ___namespace.useEffect(()=>{if(c&&T){let M=setTimeout(()=>E(true),r*1e3);return ()=>clearTimeout(M)}},[c,T,r]),___namespace.useEffect(()=>{if(!N||h)return;let M=f[g],P;return R?b.length>0?P=setTimeout(()=>{x(b.slice(0,-1));},l):(w(false),v(k=>(k+1)%f.length)):b.length<M.length?P=setTimeout(()=>{x(M.slice(0,b.length+1));},t):g<f.length-1||s?P=setTimeout(()=>{w(true);},a):(C(true),u?.()),()=>clearTimeout(P)},[N,b,g,R,h,f,t,l,a,s,u]),jsxRuntime.jsxs("span",{ref:y,className:i(d),children:[jsxRuntime.jsx("span",{ref:p,children:b}),n&&jsxRuntime.jsx(framerMotion.motion.span,{animate:{opacity:[1,0]},transition:{duration:.8,repeat:1/0,repeatType:"reverse"},className:i("ml-0.5",m),children:o})]})});vy.displayName="Typewriter";var hy=___namespace.forwardRef(({children:e,direction:t="up",stagger:r=.05,duration:a=.5,delay:n=0,splitBy:o="word",animateOnView:s=true,className:l},c)=>{let d=___namespace.useRef(null),m=framerMotion.useInView(d,{once:true,amount:.5}),u=s?m:true,p=typeof e=="string"?e:"",f=o==="word"?p.split(" "):p.split(""),b={up:{y:20},down:{y:-20},left:{x:20},right:{x:-20}},x={hidden:{},visible:{transition:{staggerChildren:r,delayChildren:n}}},g={hidden:{opacity:0,...b[t]},visible:{opacity:1,x:0,y:0,transition:{duration:a,ease:"easeInOut"}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:c,className:i("inline-flex flex-wrap",l),variants:x,initial:"hidden",animate:u?"visible":"hidden",children:jsxRuntime.jsx("span",{ref:d,children:f.map((v,R)=>jsxRuntime.jsxs(framerMotion.motion.span,{variants:g,className:"inline-block",children:[v,o==="word"&&R<f.length-1&&"\xA0"]},R))})})});hy.displayName="TextReveal";var xy=___namespace.forwardRef(({words:e,duration:t=2,animation:r="slide",animationDuration:a=.5,className:n,loop:o=true},s)=>{let[l,c]=___namespace.useState(0);___namespace.useEffect(()=>{if(!o&&l===e.length-1)return;let m=setInterval(()=>{c(u=>(u+1)%e.length);},t*1e3);return ()=>clearInterval(m)},[e.length,t,o,l]);let d=()=>{switch(r){case "fade":return {initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}};case "slide":return {initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20}};case "scale":return {initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:1.2}};case "blur":return {initial:{opacity:0,filter:"blur(10px)"},animate:{opacity:1,filter:"blur(0px)"},exit:{opacity:0,filter:"blur(10px)"}}}};return jsxRuntime.jsx("span",{ref:s,className:i("relative inline-block",n),children:jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:"wait",children:jsxRuntime.jsx(framerMotion.motion.span,{variants:d(),initial:"initial",animate:"animate",exit:"exit",transition:{duration:a},className:"inline-block",children:e[l]},e[l])})})});xy.displayName="WordRotate";var Cy=___namespace.forwardRef(({children:e,direction:t="up",distance:r=50,duration:a=.6,delay:n=0,once:o=true,threshold:s=.1,className:l,scale:c,rotate:d,blur:m,ease:u=[.4,0,.2,1]},p)=>{let f=___namespace.useRef(null),b=framerMotion.useInView(f,{once:o,amount:s}),g={up:{x:0,y:r},down:{x:0,y:-r},left:{x:r,y:0},right:{x:-r,y:0},none:{x:0,y:0}}[t],v={hidden:{opacity:0,x:g.x,y:g.y,scale:c??1,rotate:d??0,filter:m?`blur(${m}px)`:"blur(0px)"},visible:{opacity:1,x:0,y:0,scale:1,rotate:0,filter:"blur(0px)",transition:{duration:a,delay:n,ease:u}}};return jsxRuntime.jsx("div",{ref:f,children:jsxRuntime.jsx(framerMotion.motion.div,{ref:p,variants:v,initial:"hidden",animate:b?"visible":"hidden",className:i(l),children:e})})});Cy.displayName="ScrollReveal";var Ny=___namespace.forwardRef(({position:e="top",size:t=4,color:r="hsl(var(--primary))",backgroundColor:a="transparent",zIndex:n=50,className:o,container:s,showPercentage:l=false,useSpring:c=true},d)=>{let{scrollYProgress:m}=framerMotion.useScroll({container:s}),u=framerMotion.useSpring(m,{stiffness:100,damping:30,restDelta:.001}),p=c?u:m,f=e==="top"||e==="bottom",b={top:{top:0,left:0,right:0,height:t},bottom:{bottom:0,left:0,right:0,height:t},left:{top:0,left:0,bottom:0,width:t},right:{top:0,right:0,bottom:0,width:t}},x=f?"scaleX":"scaleY",g=f?"left":"top";return jsxRuntime.jsxs("div",{ref:d,className:i("fixed",o),style:{...b[e],zIndex:n,backgroundColor:a},children:[jsxRuntime.jsx(framerMotion.motion.div,{className:"h-full w-full",style:{[x]:p,transformOrigin:g,backgroundColor:r}}),l&&jsxRuntime.jsx(vE,{progress:p,position:e})]})});Ny.displayName="ScrollProgress";var vE=({progress:e,position:t})=>{let r=framerMotion.useTransform(e,s=>Math.round(s*100)),[a,n]=___namespace.useState(0);return ___namespace.useEffect(()=>{let s=r.on("change",n);return ()=>s()},[r]),jsxRuntime.jsxs("span",{className:i("fixed rounded bg-background/80 px-2 py-1 text-xs font-medium backdrop-blur-sm",{top:"top-2 right-4",bottom:"bottom-2 right-4",left:"top-4 left-2",right:"top-4 right-2"}[t]),children:[a,"%"]})},My=___namespace.forwardRef(({children:e,speed:t=.5,direction:r="vertical",className:a,container:n},o)=>{let s=___namespace.useRef(null),{scrollYProgress:l}=framerMotion.useScroll({target:s,container:n,offset:["start end","end start"]}),c=[-100*t,100*t],d=framerMotion.useTransform(l,[0,1],c),m=framerMotion.useSpring(d,{stiffness:100,damping:30}),u=r==="horizontal"?m:0,p=r==="vertical"?m:0;return jsxRuntime.jsx("div",{ref:s,className:i("overflow-hidden",a),children:jsxRuntime.jsx(framerMotion.motion.div,{ref:o,style:{x:u,y:p},children:e})})});My.displayName="Parallax";var ky=___namespace.forwardRef(({children:e,width:t,height:r,duration:a=1.5,direction:n="right",baseColor:o="hsl(var(--muted))",highlightColor:s="hsl(var(--muted-foreground) / 0.1)",borderRadius:l,className:c,active:d=true},m)=>{let u={left:"to left",right:"to right",top:"to top",bottom:"to bottom"},p={left:"shimmer-left",right:"shimmer-right",top:"shimmer-top",bottom:"shimmer-bottom"};return jsxRuntime.jsxs("div",{ref:m,className:i("relative overflow-hidden",c),style:{width:t,height:r,borderRadius:l,backgroundColor:o},children:[e,d&&jsxRuntime.jsx("div",{className:"absolute inset-0",style:{background:`linear-gradient(${u[n]}, transparent, ${s}, transparent)`,animation:`${p[n]} ${a}s infinite`}}),jsxRuntime.jsx("style",{children:`
60
+ `,document.body.appendChild(Xt),oe.dataTransfer.setDragImage(Xt,20,15),setTimeout(()=>{document.body.removeChild(Xt);},0),f(e),w?.({event:oe,node:e});},pe=oe=>{if(oe.preventDefault(),oe.stopPropagation(),!p||p.key===e.key||K)return;let Ht=oe.currentTarget.getBoundingClientRect(),Xt=oe.clientY-Ht.top,It=Ht.height,$;Xt<It*.25?$=-1:Xt>It*.75?$=1:$=0,!(R&&!R({dropNode:e,dropPosition:$,dragNode:p}))&&(g(e.key,$),h?.({event:oe,node:e}));},Xa=oe=>{oe.preventDefault(),oe.stopPropagation(),!(!p||p.key===e.key)&&C?.({event:oe,node:e,expandedKeys:D()});},re=oe=>{oe.stopPropagation(),y?.({event:oe,node:e});},Ue=oe=>{oe.preventDefault(),oe.stopPropagation(),!(!p||p.key===e.key||K)&&(x!==null&&v(e,x),f(null),g(null,null));},Ut=oe=>{f(null),g(null,null),T?.({event:oe,node:e});},St=oe=>{K||B&&o(e.key,e,oe);},mr=oe=>{oe.stopPropagation(),!K&&!z&&a(e.key,e);},qa=___namespace.useMemo(()=>{if(!ae||x===null)return "";switch(x){case -1:return "before:absolute before:left-0 before:right-0 before:top-0 before:h-0.5 before:bg-foreground";case 1:return "after:absolute after:left-0 after:right-0 after:bottom-0 after:h-0.5 after:bg-foreground";case 0:return "ring-2 ring-foreground ring-inset";default:return ""}},[ae,x]);return jsxRuntime.jsxs("div",{className:"relative",children:[N&&t>0&&jsxRuntime.jsx("div",{className:"absolute border-l border-border",style:{left:`${(t-1)*24+12}px`,top:0,height:"50%"}}),jsxRuntime.jsxs("div",{role:"treeitem","aria-expanded":z?void 0:G,"aria-selected":B?I:void 0,"aria-disabled":K,draggable:A,onDragStart:Se,onDragOver:pe,onDragEnter:Xa,onDragLeave:re,onDrop:Ue,onDragEnd:Ut,onClick:St,className:i("relative",Ap({size:S,isSelected:I,isDragging:ee,isDisabled:K,isHoverable:B&&!K}),qa,L&&"flex-1"),style:{paddingLeft:`${t*24+8}px`},children:[A&&M&&W!==false&&jsxRuntime.jsx("div",{className:"flex-shrink-0 text-muted-foreground cursor-grab active:cursor-grabbing",children:W}),!z&&jsxRuntime.jsx("button",{type:"button",onClick:mr,className:"flex-shrink-0 p-0.5 rounded hover:bg-muted/80 transition-transform",tabIndex:-1,children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:i("h-4 w-4 transition-transform duration-200",G&&"rotate-90")})}),j&&jsxRuntime.jsx(Nw,{checked:F,indeterminate:O,disabled:K,onClick:oe=>d(e.key,e,oe)}),E&&Y&&jsxRuntime.jsx("div",{className:"flex-shrink-0 text-muted-foreground ml-1",children:Y}),jsxRuntime.jsx("div",{className:i("flex-1 min-w-0 truncate ml-1",L&&"flex-none"),children:e.title})]}),V&&G&&jsxRuntime.jsx("div",{role:"group",children:e.children.map(oe=>jsxRuntime.jsx(Bp,{node:oe,level:t+1},oe.key))})]})},Mw=e=>{let t=[],r=a=>{for(let n of a)t.push(n.key),n.children&&r(n.children);};return r(e),t},Tw=e=>{let t=[],r=a=>{for(let n of a)t.push(n.key),n.children&&r(n.children);};return e.children&&r(e.children),t},Op=(e,t)=>{if(!e.children)return false;for(let r of e.children)if(r.key===t||Op(r,t))return true;return false},Pw=({className:e,variant:t,size:r,treeData:a,draggable:n=false,allowDrop:o,expandedKeys:s,defaultExpandedKeys:l=[],defaultExpandAll:c=false,onExpand:d,selectable:m=true,multiple:u=false,selectedKeys:p,defaultSelectedKeys:f=[],onSelect:b,checkable:x=false,checkStrictly:g=false,checkedKeys:v,defaultCheckedKeys:R=[],onCheck:w,showLine:h=false,showIcon:C=false,showHandle:y=true,dragIcon:T,icon:N,onDragStart:E,onDragEnter:M,onDragOver:P,onDragLeave:k,onDragEnd:L,onDrop:H,blockNode:S=false,disabled:D=false,forwardedRef:V,...z})=>{let G=___namespace.useCallback(()=>c?new Set(Mw(a)):new Set(l),[c,l,a]),[I,F]=___namespace.useState(G),O=s!==void 0,ee=O?new Set(s):I,ae=___namespace.useCallback((le,Ae)=>{let pt=new Set(ee),Ve=!pt.has(le);Ve?pt.add(le):pt.delete(le),O||F(pt),d?.(Array.from(pt),{expanded:Ve,node:Ae});},[ee,O,d]),[K,B]=___namespace.useState(new Set(f)),j=p!==void 0,A=j?new Set(p):K,W=___namespace.useCallback((le,Ae,pt)=>{let Ve=new Set(A),pr=!Ve.has(le);u?pr?Ve.add(le):Ve.delete(le):(Ve.clear(),pr&&Ve.add(le)),j||B(Ve);let Za=[],zn=wo=>{for(let Ja of wo)Ve.has(Ja.key)&&Za.push(Ja),Ja.children&&zn(Ja.children);};zn(a),b?.(Array.from(Ve),{selected:pr,selectedNodes:Za,node:Ae,event:pt});},[A,u,j,b,a]),[Y,Se]=___namespace.useState(new Set(R)),[pe,Xa]=___namespace.useState(new Set),re=v!==void 0,Ue=re?new Set(Array.isArray(v)?v:v.checked):Y,Ut=re&&!Array.isArray(v)?new Set(v.halfChecked):pe,St=___namespace.useCallback((le,Ae,pt)=>{let Ve=new Set(Ue),pr=new Set(Ut),Za=!Ve.has(le);if(Za?(Ve.add(le),pr.delete(le)):Ve.delete(le),!g&&Ae.children){let bi=Tw(Ae);for(let Kr of bi)Za?(Ve.add(Kr),pr.delete(Kr)):Ve.delete(Kr);}re||(Se(Ve),Xa(pr));let zn=[],wo=bi=>{for(let Kr of bi)Ve.has(Kr.key)&&zn.push(Kr),Kr.children&&wo(Kr.children);};wo(a);let Ja=g?{checked:Array.from(Ve),halfChecked:Array.from(pr)}:Array.from(Ve);w?.(Ja,{checked:Za,checkedNodes:zn,node:Ae,event:pt,halfCheckedKeys:Array.from(pr)});},[Ue,Ut,g,re,w,a]),[mr,qa]=___namespace.useState(null),[oe,Ht]=___namespace.useState(null),[Xt,It]=___namespace.useState(null),$=___namespace.useCallback((le,Ae)=>{Ht(le),It(Ae);},[]),te=___namespace.useCallback((le,Ae)=>{!mr||!H||Ae===0&&Op(mr,le.key)||H({event:{},node:le,dragNode:mr,dropPosition:Ae,dropToGap:Ae!==0});},[mr,H]),Ke=___namespace.useCallback(()=>Array.from(ee),[ee]),Vt={expandedKeys:ee,toggleExpand:ae,selectedKeys:A,handleSelect:W,selectable:m,multiple:u,checkedKeys:Ue,halfCheckedKeys:Ut,handleCheck:St,checkable:x,checkStrictly:g,draggable:n,draggedNode:mr,setDraggedNode:qa,dragOverKey:oe,dragOverPosition:Xt,setDragOver:$,handleDrop:te,allowDrop:o,onDragStart:E,onDragEnter:M,onDragOver:P,onDragLeave:k,onDragEnd:L,showLine:h,showIcon:C,showHandle:y,dragIcon:T,icon:N,blockNode:S,disabled:D,size:r,treeData:a,getAllKeys:Ke},Ne=i("flex flex-col select-none",t==="bordered"&&"rounded-lg border",t==="filled"&&"bg-muted/30 rounded-lg p-2",e),yt=le=>{let Ae=le.relatedTarget,pt=le.currentTarget;(!Ae||!pt.contains(Ae))&&$(null,null);};return jsxRuntime.jsx(zp.Provider,{value:Vt,children:jsxRuntime.jsx("div",{ref:V,role:"tree","aria-multiselectable":u||x,className:Ne,onDragLeave:yt,...z,children:a.map(le=>jsxRuntime.jsx(Bp,{node:le,level:0},le.key))})})},kw=({checked:e,disabled:t,onClick:r})=>jsxRuntime.jsx("button",{type:"button",role:"checkbox","aria-checked":e,disabled:t,onClick:a=>{a.stopPropagation(),t||r(a);},className:i("h-4 w-4 shrink-0 rounded-sm border border-primary transition-colors","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",e&&"bg-primary text-primary-foreground",t&&"cursor-not-allowed opacity-50"),children:e&&jsxRuntime.jsx("span",{className:"flex items-center justify-center text-current",children:jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})})});function Ew({className:e,variant:t,size:r,items:a,renderItem:n,draggable:o=false,onReorder:s,showHandle:l=true,dragIcon:c,selectable:d=false,multiple:m=false,selectedKeys:u,defaultSelectedKeys:p=[],onSelect:f,checkable:b=false,checkedKeys:x,defaultCheckedKeys:g=[],onCheck:v,children:R,forwardedRef:w,...h}){let[C,y]=___namespace.useState(null),[T,N]=___namespace.useState(null),[E,M]=___namespace.useState(new Set(p)),P=u!==void 0,k=P?new Set(u):E,[L,H]=___namespace.useState(new Set(g)),S=x!==void 0,D=S?new Set(x):L,V=(B,j)=>{y(j),B.dataTransfer.effectAllowed="move",B.dataTransfer.setData("text/plain",String(j));},z=(B,j)=>{B.preventDefault(),!(C===null||C===j)&&N(j);},G=()=>{N(null);},I=(B,j)=>{if(B.preventDefault(),!a||C===null||C===j){y(null),N(null);return}let A=[...a],[W]=A.splice(C,1);A.splice(j,0,W),s?.(A),y(null),N(null);},F=()=>{y(null),N(null);},O=___namespace.useCallback((B,j)=>{if(!a)return;let A=new Set(k),W=!A.has(B.id);m?W?A.add(B.id):A.delete(B.id):(A.clear(),W&&A.add(B.id)),P||M(A);let Y=a.filter(Se=>A.has(Se.id));f?.(Array.from(A),{selected:W,selectedItems:Y,item:B,event:j});},[a,k,m,P,f]),ee=___namespace.useCallback((B,j)=>{if(!a)return;let A=new Set(D),W=!A.has(B.id);W?A.add(B.id):A.delete(B.id),S||H(A);let Y=a.filter(Se=>A.has(Se.id));v?.(Array.from(A),{checked:W,checkedItems:Y,item:B,event:j});},[a,D,S,v]);return (o||d||b)&&a&&n?jsxRuntime.jsx("div",{ref:w,role:"list",className:i(Xi({variant:t,size:r,className:e})),...h,children:a.map((B,j)=>{let A=k.has(B.id),W=D.has(B.id);return jsxRuntime.jsxs("div",{role:"listitem","aria-selected":d?A:void 0,draggable:o,onDragStart:o?pe=>V(pe,j):void 0,onDragOver:o?pe=>z(pe,j):void 0,onDragLeave:o?G:void 0,onDrop:o?pe=>I(pe,j):void 0,onDragEnd:o?F:void 0,onClick:d&&!b?pe=>O(B,pe):void 0,className:i("flex items-center gap-3 transition-all",o&&"cursor-move",d&&!b&&"cursor-pointer hover:bg-muted/50",b&&"cursor-pointer hover:bg-muted/50",C===j&&"opacity-50 scale-[1.02] z-10",T===j&&"border-primary border-dashed border rounded-md",A&&d&&!b&&"bg-primary/10"),children:[o&&l&&c!==false&&jsxRuntime.jsx("div",{className:"flex-shrink-0 text-muted-foreground cursor-grab active:cursor-grabbing",children:c??jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-5 w-5"})}),b&&jsxRuntime.jsx(kw,{checked:W,onClick:pe=>ee(B,pe)}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:n(B,j)})]},B.id)})}):jsxRuntime.jsx("div",{ref:w,role:"list",className:i(Xi({variant:t,size:r,className:e})),...h,children:R})}function Lw(e,t){return "treeData"in e&&e.treeData?jsxRuntime.jsx(Pw,{...e,forwardedRef:t}):jsxRuntime.jsx(Ew,{...e,forwardedRef:t})}var Dw=___namespace.forwardRef(Lw),Fp=classVarianceAuthority.cva("flex items-center gap-3 transition-colors",{variants:{interactive:{true:"cursor-pointer hover:bg-muted/50",false:""}},defaultVariants:{interactive:false}}),Kp=___namespace.forwardRef(({className:e,interactive:t,leading:r,trailing:a,children:n,...o},s)=>jsxRuntime.jsxs("div",{ref:s,role:"listitem",className:i(Fp({interactive:t,className:e})),...o,children:[r&&jsxRuntime.jsx("div",{className:"flex-shrink-0 text-muted-foreground",children:r}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:n}),a&&jsxRuntime.jsx("div",{className:"flex-shrink-0 whitespace-nowrap",children:a})]}));Kp.displayName="ListItem";var Gp=___namespace.forwardRef(({className:e,primary:t,secondary:r,children:a,...n},o)=>jsxRuntime.jsxs("div",{ref:o,className:i("min-w-0",e),...n,children:[t&&jsxRuntime.jsx("p",{className:"text-sm font-medium leading-none truncate",children:t}),r&&jsxRuntime.jsx("p",{className:"mt-1 text-sm text-muted-foreground truncate",children:r}),a]}));Gp.displayName="ListItemText";var _p=classVarianceAuthority.cva("flex flex-col",{variants:{position:{left:"",right:"",alternate:""}},defaultVariants:{position:"left"}}),jp=___namespace.forwardRef(({className:e,position:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,"data-position":t,className:i(_p({position:t,className:e})),...r}));jp.displayName="Timeline";var Wp=classVarianceAuthority.cva("relative flex gap-4 pb-8 last:pb-0",{variants:{variant:{default:"",success:"[&_[data-timeline-dot]]:bg-green-500 [&_[data-timeline-dot]]:border-green-500",warning:"[&_[data-timeline-dot]]:bg-yellow-500 [&_[data-timeline-dot]]:border-yellow-500",error:"[&_[data-timeline-dot]]:bg-red-500 [&_[data-timeline-dot]]:border-red-500",info:"[&_[data-timeline-dot]]:bg-blue-500 [&_[data-timeline-dot]]:border-blue-500"}},defaultVariants:{variant:"default"}}),Yp=___namespace.forwardRef(({className:e,variant:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i(Wp({variant:t,className:e})),...r}));Yp.displayName="TimelineItem";var Up=___namespace.forwardRef(({className:e,dot:t,showConnector:r=true,...a},n)=>jsxRuntime.jsxs("div",{ref:n,className:i("flex flex-col items-center",e),...a,children:[jsxRuntime.jsx("div",{"data-timeline-dot":true,className:"flex h-3 w-3 items-center justify-center rounded-full border-2 border-primary bg-primary",children:t}),r&&jsxRuntime.jsx("div",{className:"w-0.5 flex-1 bg-border"})]}));Up.displayName="TimelineSeparator";var Xp=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex-1 pt-0.5",e),...t}));Xp.displayName="TimelineContent";var qp=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex-1 text-sm text-muted-foreground pt-0.5",e),...t}));qp.displayName="TimelineOpposite";var Jp=classVarianceAuthority.cva("inline-flex items-center rounded-lg bg-muted p-1 text-muted-foreground",{variants:{size:{sm:"h-8",md:"h-10",lg:"h-12"},fullWidth:{true:"w-full",false:""}},defaultVariants:{size:"md",fullWidth:false}}),Qp=classVarianceAuthority.cva("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{size:{sm:"h-6 text-xs px-2.5",md:"h-8 text-sm px-3",lg:"h-10 text-base px-4"},selected:{true:"bg-background text-foreground shadow-sm",false:""}},defaultVariants:{size:"md",selected:false}}),ef=___namespace.createContext({}),tf=___namespace.forwardRef(({className:e,size:t="md",fullWidth:r,children:a,value:n,defaultValue:o,onValueChange:s,disabled:l,...c},d)=>{let[m,u]=___namespace.useState(o),p=n!==void 0?n:m,f=___namespace.useCallback(b=>{n===void 0&&u(b),s?.(b);},[n,s]);return jsxRuntime.jsx(ef.Provider,{value:{size:t??"md",value:p,onValueChange:f,disabled:l},children:jsxRuntime.jsx("div",{ref:d,role:"group",className:i(Jp({size:t,fullWidth:r,className:e})),...c,children:a})})});tf.displayName="SegmentedControl";var rf=___namespace.forwardRef(({className:e,children:t,value:r,disabled:a,...n},o)=>{let s=___namespace.useContext(ef),l=s.value===r,c=a||s.disabled;return jsxRuntime.jsx("button",{ref:o,type:"button",role:"radio","aria-checked":l,"data-state":l?"on":"off",disabled:c,onClick:()=>{c||s.onValueChange?.(r);},className:i(Qp({size:s.size,selected:l}),"flex-1",e),...n,children:t})});rf.displayName="SegmentedControlItem";var af=classVarianceAuthority.cva("relative flex flex-col items-center justify-center rounded-lg border-2 border-dashed transition-colors",{variants:{variant:{default:"border-input bg-background hover:bg-accent/50",active:"border-primary bg-primary/5",error:"border-danger bg-danger/5"},size:{sm:"p-4 min-h-[120px]",md:"p-6 min-h-[160px]",lg:"p-8 min-h-[200px]"}},defaultVariants:{variant:"default",size:"md"}}),nf=e=>{let t=e.type;return t.startsWith("image/")?lucideReact.Image:t.startsWith("video/")?lucideReact.FileVideo:t.startsWith("audio/")?lucideReact.FileAudio:t.includes("pdf")||t.includes("document")?lucideReact.FileText:t.includes("zip")||t.includes("rar")||t.includes("archive")?lucideReact.FileArchive:lucideReact.File},ss=e=>{if(e===0)return "0 Bytes";let t=1024,r=["Bytes","KB","MB","GB"],a=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/Math.pow(t,a)).toFixed(2))+" "+r[a]},of=(e,t,r)=>{let a=[];return t&&e.size>t&&a.push({code:"file-too-large",message:`File is larger than ${ss(t)}`}),r&&r.length>0&&(r.some(o=>{if(o.startsWith("."))return e.name.toLowerCase().endsWith(o.toLowerCase());if(o.endsWith("/*")){let s=o.slice(0,-2);return e.type.startsWith(s)}return e.type===o})||a.push({code:"file-invalid-type",message:`File type not accepted. Accepted: ${r.join(", ")}`})),a},sf=___namespace.forwardRef(({className:e,variant:t,size:r,onFilesChange:a,onFilesRejected:n,onFileRemove:o,files:s=[],showFileList:l=true,children:c,maxSize:d=10*1024*1024,accept:m,multiple:u=true,disabled:p,...f},b)=>{let[x,g]=___namespace.useState(false),[v,R]=___namespace.useState(false),[w,h]=___namespace.useState([]),C=___namespace.useRef(null),y=___namespace.useCallback(D=>{if(!D||D.length===0)return;let V=Array.from(D),z=[],G=[];(u?V:[V[0]]).forEach(F=>{let O=of(F,d,m);O.length>0?G.push({file:F,errors:O}):z.push(F);}),h(G),z.length>0&&a?.(z),G.length>0&&n?.(G);},[d,m,u,a,n]),T=___namespace.useCallback(D=>{if(D.preventDefault(),D.stopPropagation(),!p&&(g(true),D.dataTransfer.items)){let z=Array.from(D.dataTransfer.items).some(G=>{if(G.kind!=="file")return true;if(m&&m.length>0){let I=G.type;return !m.some(F=>F.endsWith("/*")?I.startsWith(F.slice(0,-2)):I===F)}return false});R(z);}},[p,m]),N=___namespace.useCallback(D=>{D.preventDefault(),D.stopPropagation(),!p&&(D.dataTransfer.dropEffect="copy");},[p]),E=___namespace.useCallback(D=>{D.preventDefault(),D.stopPropagation();let V=D.currentTarget.getBoundingClientRect(),z=D.clientX,G=D.clientY;(z<V.left||z>V.right||G<V.top||G>V.bottom)&&(g(false),R(false));},[]),M=___namespace.useCallback(D=>{D.preventDefault(),D.stopPropagation(),g(false),R(false),!p&&y(D.dataTransfer.files);},[p,y]),P=___namespace.useCallback(()=>{p||C.current?.click();},[p]),k=___namespace.useCallback(D=>{y(D.target.files),D.target.value="";},[y]),L=___namespace.useCallback(D=>{p||(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),C.current?.click());},[p]),H=v?"error":x?"active":t,S=m?.join(",");return jsxRuntime.jsxs("div",{ref:b,className:i("space-y-4",e),...f,children:[jsxRuntime.jsxs("div",{role:"button",tabIndex:p?-1:0,onDragEnter:T,onDragOver:N,onDragLeave:E,onDrop:M,onClick:P,onKeyDown:L,className:i(af({variant:H,size:r}),p&&"opacity-50 cursor-not-allowed",!p&&"cursor-pointer focus:outline-none"),"aria-disabled":p,children:[jsxRuntime.jsx("input",{ref:C,type:"file",accept:S,multiple:u,disabled:p,onChange:k,className:"sr-only",tabIndex:-1}),c||jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[jsxRuntime.jsx("div",{className:"rounded-full bg-muted p-3",children:jsxRuntime.jsx(lucideReact.Upload,{className:"h-6 w-6 text-muted-foreground"})}),jsxRuntime.jsxs("div",{className:"space-y-1",children:[jsxRuntime.jsx("p",{className:"text-sm font-medium",children:x?"Drop files here":"Drop files or click to upload"}),jsxRuntime.jsxs("p",{className:"text-xs text-muted-foreground",children:[d&&`Max ${ss(d)}`,m&&m.length>0&&` \u2022 ${m.join(", ")}`]})]})]})]}),w.length>0&&jsxRuntime.jsx("div",{className:"rounded-md bg-danger/10 p-3 text-sm text-danger",children:w.map(({file:D,errors:V})=>jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("span",{className:"font-medium",children:D.name}),":"," ",V.map(z=>z.message).join(", ")]},D.name))}),l&&s.length>0&&jsxRuntime.jsx("div",{className:"space-y-2",children:s.map(D=>{let V=nf(D.file);return jsxRuntime.jsxs("div",{className:i("flex items-center gap-3 rounded-lg border p-3",D.error&&"border-danger bg-danger/5"),children:[jsxRuntime.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-muted",children:jsxRuntime.jsx(V,{className:"h-5 w-5 text-muted-foreground"})}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("p",{className:"truncate text-sm font-medium",children:D.file.name}),jsxRuntime.jsxs("p",{className:"text-xs text-muted-foreground",children:[ss(D.file.size),D.error&&jsxRuntime.jsx("span",{className:"ml-2 text-danger",children:D.error})]}),D.progress!==void 0&&D.progress<100&&jsxRuntime.jsx(qo,{value:D.progress,className:"mt-2 h-1"})]}),jsxRuntime.jsxs(Z,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0 text-muted-foreground hover:text-foreground",onClick:z=>{z.stopPropagation(),o?.(D.file);},children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Remove"})]})]},D.id)})})]})});sf.displayName="FileUpload";var Gw=`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cg fill='%23ccc'%3E%3Crect width='4' height='4'/%3E%3Crect x='4' y='4' width='4' height='4'/%3E%3C/g%3E%3C/svg%3E")`,cf=classVarianceAuthority.cva("relative rounded-md border border-input shadow-sm transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{xs:"h-4 w-4",sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10",xl:"h-12 w-12"},shape:{square:"rounded-md",circle:"rounded-full"},interactive:{true:"cursor-pointer hover:scale-110 active:scale-105",false:"cursor-default"}},defaultVariants:{size:"md",shape:"square",interactive:false}}),Xn=___namespace.forwardRef(({color:e,isSelected:t,showTransparency:r=true,onSelect:a,size:n,shape:o,interactive:s,className:l,onClick:c,disabled:d,...m},u)=>jsxRuntime.jsx("button",{ref:u,type:"button",disabled:d,onClick:b=>{c?.(b),a?.(e);},className:i(cf({size:n,shape:o,interactive:s??(!!a||!!c)}),t&&"ring-2 ring-ring ring-offset-2",l),style:{backgroundImage:r?Gw:void 0,backgroundSize:r?"8px 8px":void 0},"aria-label":`Color ${e}`,"aria-pressed":t,...m,children:jsxRuntime.jsx("span",{className:"absolute inset-0 rounded-[inherit]",style:{backgroundColor:e}})}));Xn.displayName="ColorSwatch";var df=classVarianceAuthority.cva("",{variants:{layout:{grid:"grid gap-2",stack:"flex flex-wrap gap-2"}},defaultVariants:{layout:"stack"}}),uf=___namespace.forwardRef(({value:e,defaultValue:t,onChange:r,layout:a,columns:n=6,colors:o,swatchSize:s="md",swatchShape:l="square",disabled:c,className:d,style:m,...u},p)=>{let[f,b]=___namespace.useState(t),x=e??f,g=___namespace.useCallback(R=>{c||(e===void 0&&b(R),r?.(R));},[e,r,c]),v=R=>R.toLowerCase();return jsxRuntime.jsx("div",{ref:p,role:"listbox","aria-label":"Color options",className:i(df({layout:a}),d),style:{...a==="grid"?{gridTemplateColumns:`repeat(${n}, 1fr)`}:{},...m},...u,children:o.map(R=>{let w=x?v(x)===v(R):false;return jsxRuntime.jsx(Xn,{role:"option",color:R,size:s,shape:l,isSelected:w,onSelect:g,disabled:c,"aria-selected":w},R)})})});uf.displayName="ColorSwatchPicker";var jw=["#000000","#ffffff","#ef4444","#f97316","#eab308","#22c55e","#06b6d4","#3b82f6","#8b5cf6","#ec4899"],mf={sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10"},pf=___namespace.forwardRef(({value:e,defaultValue:t="#3b82f6",onChange:r,disabled:a,presets:n=jw,showInput:o=true,size:s="md",className:l,variant:c="full"},d)=>{let[m,u]=___namespace.useState(e??t),p=___namespace.useId();___namespace.useEffect(()=>{e!==void 0&&u(e);},[e]);let f=g=>{u(g),r?.(g);},b=g=>{u(g),r?.(g);},x=g=>{let v=g.target.value.toUpperCase();u(v),r?.(v);};return c==="simple"?jsxRuntime.jsxs("label",{className:i("relative rounded-md border border-input shadow-sm transition-colors cursor-pointer hover:border-foreground focus-within:border-foreground overflow-hidden",a&&"opacity-50 cursor-not-allowed",mf[s],l),children:[jsxRuntime.jsx("input",{type:"color",value:m,onChange:x,disabled:a,className:"absolute inset-0 h-full w-full cursor-pointer opacity-0 disabled:cursor-not-allowed",id:p}),jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundColor:m}})]}):jsxRuntime.jsxs(et,{children:[jsxRuntime.jsx(gt,{asChild:true,children:jsxRuntime.jsx("button",{ref:d,disabled:a,className:i("rounded-md border border-input shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",mf[s],l),style:{backgroundColor:m},"aria-label":`Color picker, current color: ${m}`})}),jsxRuntime.jsx(tt,{className:"w-auto p-3",align:"start",children:jsxRuntime.jsxs("div",{className:"space-y-3",children:[jsxRuntime.jsx(reactColorful.HexColorPicker,{color:m,onChange:f,className:"!w-[200px]"}),o&&jsxRuntime.jsxs("div",{className:"space-y-1.5",children:[jsxRuntime.jsx(Ra,{htmlFor:"color-input",className:"text-xs",children:"Hex Color"}),jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsx("div",{className:"h-9 w-9 shrink-0 rounded-md border",style:{backgroundColor:m}}),jsxRuntime.jsx(reactColorful.HexColorInput,{id:"color-input",color:m,onChange:f,prefixed:true,className:"flex h-9 w-full rounded-md border border-input bg-background px-3 py-2 font-mono text-sm uppercase ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"})]})]}),n.length>0&&jsxRuntime.jsxs("div",{className:"space-y-1.5",children:[jsxRuntime.jsx(Ra,{className:"text-xs",children:"Presets"}),jsxRuntime.jsx("div",{className:"flex flex-wrap gap-1.5",children:n.map(g=>jsxRuntime.jsx(Xn,{color:g,size:"sm",isSelected:m.toLowerCase()===g.toLowerCase(),onSelect:b},g))})]})]})})]})});pf.displayName="ColorPicker";var ff=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),Ji=e=>String(e).padStart(2,"0"),qw=e=>{let[t,r]=e.split(":").map(Number);return {hours:t||0,minutes:r||0}},Zw=(e,t)=>`${Ji(e)}:${Ji(t)}`,gf=___namespace.forwardRef(({className:e,size:t,value:r,onChange:a,use24Hour:n=true,minuteStep:o=1,showPicker:s=true,minTime:l,maxTime:c,disabled:d,...m},u)=>{let[p,f]=___namespace.useState(r??""),[b,x]=___namespace.useState(false);___namespace.useEffect(()=>{r!==void 0&&f(r);},[r]);let{hours:g,minutes:v}=qw(p||"00:00"),R=E=>{let M=E.target.value;f(M),/^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/.test(M)&&a?.(M);},w=(E,M)=>{let P=Math.max(0,Math.min(23,E)),k=Math.max(0,Math.min(59,M)),L=Zw(P,k);f(L),a?.(L);},h=()=>w(g+1,v),C=()=>w(g-1,v),y=()=>w(g,v+o),T=()=>w(g,v-o),N=({value:E,onIncrement:M,onDecrement:P})=>jsxRuntime.jsxs("div",{className:"flex flex-col items-center",children:[jsxRuntime.jsx(Z,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:M,disabled:d,children:jsxRuntime.jsx(lucideReact.ChevronUp,{className:"h-4 w-4"})}),jsxRuntime.jsx("div",{className:"flex h-10 w-12 items-center justify-center rounded-md bg-muted text-lg font-semibold",children:Ji(E)}),jsxRuntime.jsx(Z,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:P,disabled:d,children:jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"})})]});return jsxRuntime.jsxs("div",{className:"relative flex items-center",children:[jsxRuntime.jsx("input",{ref:u,type:"time",value:p,onChange:R,disabled:d,className:i(ff({size:t}),s&&"pr-10","[&::-webkit-calendar-picker-indicator]:hidden",e),...m}),s&&jsxRuntime.jsxs(et,{open:b,onOpenChange:x,children:[jsxRuntime.jsx(gt,{asChild:true,children:jsxRuntime.jsxs(Z,{type:"button",variant:"ghost",size:"sm",className:"absolute right-1 h-7 w-7 p-0",disabled:d,children:[jsxRuntime.jsx(lucideReact.Clock,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Pick time"})]})}),jsxRuntime.jsxs(tt,{className:"w-auto p-4",align:"end",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(N,{value:g,onIncrement:h,onDecrement:C,max:23}),jsxRuntime.jsx("div",{className:"text-2xl font-bold text-muted-foreground",children:":"}),jsxRuntime.jsx(N,{value:v,onIncrement:y,onDecrement:T,max:59})]}),jsxRuntime.jsxs("div",{className:"mt-4 flex justify-end gap-2",children:[jsxRuntime.jsx(Z,{variant:"bordered",size:"sm",onClick:()=>{let E=new Date;w(E.getHours(),E.getMinutes());},children:"Now"}),jsxRuntime.jsx(Z,{size:"sm",onClick:()=>x(false),children:"Done"})]})]})]})]})});gf.displayName="TimeInput";var bf=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),Qw=(e,t)=>{try{return new Intl.NumberFormat(t,{style:"currency",currency:e,currencyDisplay:"narrowSymbol"}).formatToParts(0).find(o=>o.type==="currency")?.value??e}catch{return e}},Qi=(e,t,r,a)=>{let n=e.toFixed(t),[o,s]=n.split("."),l=o.replace(/\B(?=(\d{3})+(?!\d))/g,r);return s?`${l}${a}${s}`:l},vf=(e,t,r)=>{if(!e)return;let a=e.replace(new RegExp(`\\${t}`,"g"),"");a=a.replace(r,"."),a=a.replace(/[^0-9.-]/g,"");let n=parseFloat(a);return isNaN(n)?void 0:n},hf=___namespace.forwardRef(({className:e,size:t,value:r,defaultValue:a,onChange:n,currency:o="USD",locale:s="en-US",decimals:l=2,min:c,max:d,showCurrency:m=true,currencyPosition:u="prefix",currencySymbol:p,thousandSeparator:f=",",decimalSeparator:b=".",disabled:x,placeholder:g,...v},R)=>{let[w,h]=___namespace.useState(a),[C,y]=___namespace.useState(""),[T,N]=___namespace.useState(false),E=r!==void 0?r:w,M=p??Qw(o,s);___namespace.useEffect(()=>{!T&&E!==void 0&&y(Qi(E,l,f,b));},[E,l,f,b,T]);let P=D=>{let V=D.target.value;if(!V){y(""),r===void 0&&h(void 0),n?.(void 0);return}if(!new RegExp(`^[0-9${f}${b}.-]*$`).test(V))return;y(V);let G=vf(V,f,b);if(G!==void 0){let I=G;c!==void 0&&G<c&&(I=c),d!==void 0&&G>d&&(I=d),r===void 0&&h(I),n?.(I);}},k=()=>{N(true),E!==void 0&&y(E.toString().replace(".",b));},L=()=>{N(false),y(E!==void 0?Qi(E,l,f,b):"");},H=m&&u==="prefix"&&jsxRuntime.jsx("span",{className:"flex items-center text-muted-foreground pr-1",children:M}),S=m&&u==="suffix"&&jsxRuntime.jsx("span",{className:"flex items-center text-muted-foreground pl-1",children:M});return jsxRuntime.jsxs("div",{className:"relative flex items-center",children:[H&&jsxRuntime.jsx("div",{className:"absolute left-3 pointer-events-none",children:H}),jsxRuntime.jsx("input",{ref:R,type:"text",inputMode:"decimal",value:C,onChange:P,onFocus:k,onBlur:L,disabled:x,placeholder:g??`0${b}${"0".repeat(l)}`,className:i(bf({size:t}),H&&"pl-8",S&&"pr-8","text-right",e),style:{borderColor:T?"var(--color-foreground)":void 0},...v}),S&&jsxRuntime.jsx("div",{className:"absolute right-3 pointer-events-none",children:S})]})});hf.displayName="CurrencyInput";var xf=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50 font-mono",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),el={creditCard:{mask:"#### #### #### ####"},creditCardAmex:{mask:"#### ###### #####"},cvv:{mask:"###"},expiry:{mask:"##/##"},date:{mask:"##/##/####"},dateISO:{mask:"####-##-##"},time:{mask:"##:##"},ip:{mask:"###.###.###.###"},mac:{mask:"AA:AA:AA:AA:AA:AA"},id11:{mask:"###########"},id9:{mask:"#########"},id10:{mask:"##########"},postal5:{mask:"#####"},postal9:{mask:"#####-####"}},rC=(e,t)=>{switch(t){case "#":return /\d/.test(e);case "A":return /[a-zA-Z]/.test(e);case "*":return /[a-zA-Z0-9]/.test(e);default:return e===t}},ra=e=>["#","A","*"].includes(e),ls=(e,t,r)=>{let a="",n=0;for(let o=0;o<t.length&&n<=e.length;o++){let s=t[o];if(ra(s)){if(n<e.length){let l=e[n];rC(l,s)?(a+=l,n++):(n++,o--);}}else (n<e.length||r)&&(a+=s);}return a},tl=(e,t)=>{let r="";for(let a=0;a<e.length&&a<t.length;a++){let n=t[a];ra(n)&&(r+=e[a]);}return r},yf=(e,t)=>e.split("").map(r=>ra(r)?t:r).join(""),aC=(e,t,r)=>{let a=0;for(let l=0;l<r&&l<e.length&&l<t.length;l++)ra(t[l])&&a++;let o=0,s=0;for(let l=0;l<t.length&&s<a;l++)o++,ra(t[l])&&s++;for(;o<t.length&&!ra(t[o]);)o++;return Math.min(o,e.length)},Rf=___namespace.forwardRef(({className:e,size:t,value:r,defaultValue:a="",onChange:n,mask:o,maskPlaceholder:s="_",showMaskPlaceholder:l=false,includeMaskChars:c=false,disabled:d,placeholder:m,...u},p)=>{let f=typeof o=="string"&&o in el?el[o].mask:o,[b,x]=___namespace.useState(a),[g,v]=___namespace.useState(""),[R,w]=___namespace.useState(false),h=___namespace.useRef(null),C=r!==void 0?r:b;___namespace.useImperativeHandle(p,()=>h.current),___namespace.useEffect(()=>{let E=ls(C,f,true);v(E);},[C,f]);let y=E=>{let M=E.target.value,P=E.target.selectionStart??0,k=M.replace(/[^\w]/g,""),L=ls(k,f,true),H=tl(L,f);v(L),r===void 0&&x(c?L:H),n?.(H,L),requestAnimationFrame(()=>{if(h.current){let S=aC(L,f,P);h.current.setSelectionRange(S,S);}});},T=E=>{if(["ArrowLeft","ArrowRight","Home","End","Tab"].includes(E.key)||E.ctrlKey||E.metaKey)return;let M=h.current;if(!M)return;let P=M.selectionStart??0;if(E.key==="Backspace"&&P>0){let k=P-1;for(;k>0&&!ra(f[k]);)k--;let L=tl(g,f),H=0;for(let V=0;V<k&&V<f.length;V++)ra(f[V])&&H++;let S=L.slice(0,Math.max(0,H-1))+L.slice(H),D=ls(S,f,true);v(D),r===void 0&&x(c?D:S),n?.(S,D),E.preventDefault(),requestAnimationFrame(()=>{h.current&&h.current.setSelectionRange(k,k);});}},N=l?yf(f,s):m;return jsxRuntime.jsx("input",{ref:h,type:"text",value:g,onChange:y,onKeyDown:T,onFocus:()=>w(true),onBlur:()=>w(false),disabled:d,placeholder:N,className:i(xf({size:t}),e),style:{borderColor:R?"var(--color-foreground)":void 0},...u})});Rf.displayName="MaskedInput";var wf=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),us={"DD/MM/YYYY":"/","MM/DD/YYYY":"/","YYYY-MM-DD":"-","DD.MM.YYYY":"."},al={"DD/MM/YYYY":["day","month","year"],"MM/DD/YYYY":["month","day","year"],"YYYY-MM-DD":["year","month","day"],"DD.MM.YYYY":["day","month","year"]},rl=(e,t)=>String(e).padStart(t,"0"),ds=(e,t)=>{let r=rl(e.getDate(),2),a=rl(e.getMonth()+1,2),n=rl(e.getFullYear(),4),o=us[t],s=al[t],l={day:r,month:a,year:n};return s.map(c=>l[c]).join(o)},Cf=(e,t)=>{let r=us[t],a=e.split(r);if(a.length!==3)return null;let n=al[t],o={};if(n.forEach((l,c)=>{o[l]=parseInt(a[c],10);}),isNaN(o.day)||isNaN(o.month)||isNaN(o.year)||o.month<1||o.month>12||o.day<1||o.day>31||o.year<1e3||o.year>9999)return null;let s=new Date(o.year,o.month-1,o.day);return s.getFullYear()!==o.year||s.getMonth()!==o.month-1||s.getDate()!==o.day?null:s},iC=e=>e.toLowerCase(),lC=e=>{let t=us[e];return al[e].map(a=>a==="year"?"####":"##").join(t)},Nf=___namespace.forwardRef(({className:e,size:t,value:r,defaultValue:a,onChange:n,format:o="DD/MM/YYYY",minDate:s,maxDate:l,showIcon:c=true,disabled:d,placeholder:m,...u},p)=>{let[f,b]=___namespace.useState(a??null),[x,g]=___namespace.useState(""),[v,R]=___namespace.useState(null),w=___namespace.useRef(null),h=r!==void 0?r:f;___namespace.useImperativeHandle(p,()=>w.current),___namespace.useEffect(()=>{h?(g(ds(h,o)),R(null)):g("");},[h,o]);let C=us[o],y=lC(o),T=M=>{let P=M.target.value;P=P.replace(new RegExp(`[^0-9\\${C}]`,"g"),"");let k=P.replace(new RegExp(`\\${C}`,"g"),""),L="",H=0;for(let S=0;S<y.length&&H<k.length;S++)y[S]==="#"?(L+=k[H],H++):L+=y[S];if(g(L),L.length===y.length){let S=Cf(L,o);if(S){if(s&&S<s){R(`Date must be after ${ds(s,o)}`);return}if(l&&S>l){R(`Date must be before ${ds(l,o)}`);return}R(null),r===void 0&&b(S),n?.(S);}else R("Invalid date");}else r===void 0&&b(null),n?.(null),R(null);},N=()=>{x&&x.length!==y.length&&(g(""),R(null),r===void 0&&b(null),n?.(null));},E=t==="sm"?"h-3 w-3":t==="lg"?"h-5 w-5":"h-4 w-4";return jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("input",{ref:w,type:"text",inputMode:"numeric",value:x,onChange:T,onBlur:N,disabled:d,placeholder:m??iC(o),className:i(wf({size:t}),c&&"pr-10",v&&"border-danger focus-visible:ring-danger",e),"aria-invalid":!!v,"aria-describedby":v?"date-error":void 0,...u}),c&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute right-3 top-1/2 -translate-y-1/2",children:jsxRuntime.jsx(lucideReact.Calendar,{className:i(E,"text-muted-foreground")})}),v&&jsxRuntime.jsx("p",{id:"date-error",className:"mt-1 text-xs text-danger",children:v})]})});Nf.displayName="DateInput";var Tf=classVarianceAuthority.cva("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{size:"md"}}),Pf=[{code:"AR",name:"Argentina",dialCode:"+54",flag:"\u{1F1E6}\u{1F1F7}",format:"## ####-####"},{code:"AU",name:"Australia",dialCode:"+61",flag:"\u{1F1E6}\u{1F1FA}",format:"### ### ###"},{code:"AT",name:"Austria",dialCode:"+43",flag:"\u{1F1E6}\u{1F1F9}",format:"### #######"},{code:"BE",name:"Belgium",dialCode:"+32",flag:"\u{1F1E7}\u{1F1EA}",format:"### ## ## ##"},{code:"BR",name:"Brazil",dialCode:"+55",flag:"\u{1F1E7}\u{1F1F7}",format:"(##) #####-####"},{code:"BG",name:"Bulgaria",dialCode:"+359",flag:"\u{1F1E7}\u{1F1EC}",format:"### ### ###"},{code:"CA",name:"Canada",dialCode:"+1",flag:"\u{1F1E8}\u{1F1E6}",format:"(###) ###-####"},{code:"CN",name:"China",dialCode:"+86",flag:"\u{1F1E8}\u{1F1F3}",format:"### #### ####"},{code:"HR",name:"Croatia",dialCode:"+385",flag:"\u{1F1ED}\u{1F1F7}",format:"## ### ####"},{code:"CZ",name:"Czech Republic",dialCode:"+420",flag:"\u{1F1E8}\u{1F1FF}",format:"### ### ###"},{code:"DK",name:"Denmark",dialCode:"+45",flag:"\u{1F1E9}\u{1F1F0}",format:"## ## ## ##"},{code:"EG",name:"Egypt",dialCode:"+20",flag:"\u{1F1EA}\u{1F1EC}",format:"### ### ####"},{code:"FI",name:"Finland",dialCode:"+358",flag:"\u{1F1EB}\u{1F1EE}",format:"## ### ####"},{code:"FR",name:"France",dialCode:"+33",flag:"\u{1F1EB}\u{1F1F7}",format:"# ## ## ## ##"},{code:"DE",name:"Germany",dialCode:"+49",flag:"\u{1F1E9}\u{1F1EA}",format:"#### #######"},{code:"GR",name:"Greece",dialCode:"+30",flag:"\u{1F1EC}\u{1F1F7}",format:"### ### ####"},{code:"HK",name:"Hong Kong",dialCode:"+852",flag:"\u{1F1ED}\u{1F1F0}",format:"#### ####"},{code:"HU",name:"Hungary",dialCode:"+36",flag:"\u{1F1ED}\u{1F1FA}",format:"## ### ####"},{code:"IN",name:"India",dialCode:"+91",flag:"\u{1F1EE}\u{1F1F3}",format:"##### #####"},{code:"IL",name:"Israel",dialCode:"+972",flag:"\u{1F1EE}\u{1F1F1}",format:"##-###-####"},{code:"IT",name:"Italy",dialCode:"+39",flag:"\u{1F1EE}\u{1F1F9}",format:"### ### ####"},{code:"JP",name:"Japan",dialCode:"+81",flag:"\u{1F1EF}\u{1F1F5}",format:"##-####-####"},{code:"MX",name:"Mexico",dialCode:"+52",flag:"\u{1F1F2}\u{1F1FD}",format:"### ### ####"},{code:"NL",name:"Netherlands",dialCode:"+31",flag:"\u{1F1F3}\u{1F1F1}",format:"## ########"},{code:"NZ",name:"New Zealand",dialCode:"+64",flag:"\u{1F1F3}\u{1F1FF}",format:"## ### ####"},{code:"NG",name:"Nigeria",dialCode:"+234",flag:"\u{1F1F3}\u{1F1EC}",format:"### ### ####"},{code:"NO",name:"Norway",dialCode:"+47",flag:"\u{1F1F3}\u{1F1F4}",format:"### ## ###"},{code:"PK",name:"Pakistan",dialCode:"+92",flag:"\u{1F1F5}\u{1F1F0}",format:"### #######"},{code:"PL",name:"Poland",dialCode:"+48",flag:"\u{1F1F5}\u{1F1F1}",format:"### ### ###"},{code:"PT",name:"Portugal",dialCode:"+351",flag:"\u{1F1F5}\u{1F1F9}",format:"### ### ###"},{code:"RO",name:"Romania",dialCode:"+40",flag:"\u{1F1F7}\u{1F1F4}",format:"### ### ###"},{code:"RU",name:"Russia",dialCode:"+7",flag:"\u{1F1F7}\u{1F1FA}",format:"(###) ###-##-##"},{code:"SA",name:"Saudi Arabia",dialCode:"+966",flag:"\u{1F1F8}\u{1F1E6}",format:"## ### ####"},{code:"RS",name:"Serbia",dialCode:"+381",flag:"\u{1F1F7}\u{1F1F8}",format:"## ### ####"},{code:"SG",name:"Singapore",dialCode:"+65",flag:"\u{1F1F8}\u{1F1EC}",format:"#### ####"},{code:"SK",name:"Slovakia",dialCode:"+421",flag:"\u{1F1F8}\u{1F1F0}",format:"### ### ###"},{code:"SI",name:"Slovenia",dialCode:"+386",flag:"\u{1F1F8}\u{1F1EE}",format:"## ### ###"},{code:"ZA",name:"South Africa",dialCode:"+27",flag:"\u{1F1FF}\u{1F1E6}",format:"## ### ####"},{code:"KR",name:"South Korea",dialCode:"+82",flag:"\u{1F1F0}\u{1F1F7}",format:"##-####-####"},{code:"ES",name:"Spain",dialCode:"+34",flag:"\u{1F1EA}\u{1F1F8}",format:"### ### ###"},{code:"SE",name:"Sweden",dialCode:"+46",flag:"\u{1F1F8}\u{1F1EA}",format:"##-### ## ##"},{code:"CH",name:"Switzerland",dialCode:"+41",flag:"\u{1F1E8}\u{1F1ED}",format:"## ### ## ##"},{code:"TW",name:"Taiwan",dialCode:"+886",flag:"\u{1F1F9}\u{1F1FC}",format:"### ### ###"},{code:"TR",name:"Turkey",dialCode:"+90",flag:"\u{1F1F9}\u{1F1F7}",format:"(###) ### ## ##"},{code:"UA",name:"Ukraine",dialCode:"+380",flag:"\u{1F1FA}\u{1F1E6}",format:"## ### ## ##"},{code:"AE",name:"United Arab Emirates",dialCode:"+971",flag:"\u{1F1E6}\u{1F1EA}",format:"## ### ####"},{code:"GB",name:"United Kingdom",dialCode:"+44",flag:"\u{1F1EC}\u{1F1E7}",format:"#### ### ####"},{code:"US",name:"United States",dialCode:"+1",flag:"\u{1F1FA}\u{1F1F8}",format:"(###) ###-####"}],ms=(e,t)=>{let r=e.replace(/\D/g,""),a="",n=0;for(let o=0;o<t.length&&n<r.length;o++)t[o]==="#"?(a+=r[n],n++):a+=t[o];return a},pC=e=>e.replace(/#/g,"_"),kf=___namespace.forwardRef(({className:e,size:t,value:r,defaultValue:a="",onChange:n,country:o,defaultCountry:s="TR",onCountryChange:l,countries:c=Pf,showCountrySelect:d=true,showDialCode:m=false,disabled:u,placeholder:p,...f},b)=>{let[x,g]=___namespace.useState(a),[v,R]=___namespace.useState(o??s),[w,h]=___namespace.useState(false),[C,y]=___namespace.useState(false),[T,N]=___namespace.useState(false),[E,M]=___namespace.useState({top:0,left:0,width:0}),P=___namespace.useRef(null),k=___namespace.useRef(null),L=r!==void 0?r:x,H=o??v,S=c.find(I=>I.code===H)??c[0],D=ms(L,S.format);___namespace.useEffect(()=>{N(true);},[]),___namespace.useEffect(()=>{if(C&&P.current){let I=P.current.getBoundingClientRect();M({top:I.bottom+4,left:I.left,width:Math.max(I.width,280)});}},[C]),___namespace.useEffect(()=>{if(!C)return;let I=F=>{P.current&&!P.current.contains(F.target)&&k.current&&!k.current.contains(F.target)&&y(false);};return document.addEventListener("mousedown",I),()=>document.removeEventListener("mousedown",I)},[C]),___namespace.useEffect(()=>{if(!C)return;let I=F=>{F.key==="Escape"&&y(false);};return document.addEventListener("keydown",I),()=>document.removeEventListener("keydown",I)},[C]);let V=I=>{let O=I.target.value.replace(/\D/g,"");r===void 0&&g(O);let ee=ms(O,S.format),ae=`${S.dialCode} ${ee}`;n?.(O,ae,S);},z=I=>{let F=c.find(ae=>ae.code===I);if(!F)return;o===void 0&&R(I),l?.(F);let O=ms(L,F.format),ee=`${F.dialCode} ${O}`;n?.(L,ee,F),y(false);};return jsxRuntime.jsxs("div",{className:"flex",children:[d&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("button",{ref:P,type:"button",disabled:u,onClick:()=>y(!C),className:i("flex 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","w-[100px] rounded-r-none border-r-0 shrink-0",t==="sm"?"h-8":t==="lg"?"h-12":"h-10"),children:[jsxRuntime.jsxs("span",{className:"flex items-center gap-1.5",children:[jsxRuntime.jsx("span",{children:S.flag}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:S.dialCode})]}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:i("h-4 w-4 opacity-50 transition-transform",C&&"rotate-180")})]}),T&&C&&$o__namespace.createPortal(jsxRuntime.jsx("div",{ref:k,className:"fixed z-50 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95",style:{top:E.top,left:E.left,minWidth:E.width},children:jsxRuntime.jsx(_e,{style:{maxHeight:300},children:jsxRuntime.jsx("div",{className:"p-1",children:c.map(I=>jsxRuntime.jsxs("div",{role:"option","aria-selected":I.code===H,onClick:()=>z(I.code),className:"relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:I.code===H&&jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})}),jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{children:I.flag}),jsxRuntime.jsx("span",{className:"flex-1",children:I.name}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:I.dialCode})]})]},I.code))})})}),document.body)]}),jsxRuntime.jsxs("div",{className:"relative flex-1",children:[m&&!d&&jsxRuntime.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:S.dialCode}),jsxRuntime.jsx("input",{ref:b,type:"tel",inputMode:"tel",value:D,onChange:V,onFocus:()=>h(true),onBlur:()=>h(false),disabled:u,placeholder:p??pC(S.format),className:i(Tf({size:t}),d&&"rounded-l-none",m&&!d&&"pl-12",e),style:{borderColor:w?"var(--color-foreground)":void 0},...f})]})]})});kf.displayName="PhoneInput";var Lf=classVarianceAuthority.cva("flex items-center justify-between w-full px-4 py-3 border-b bg-background",{variants:{variant:{solid:"bg-primary text-primary-foreground border-primary",outline:"bg-background border-border",ghost:"bg-transparent border-transparent",soft:"bg-primary/10 border-primary/20",surface:"bg-muted border-border"},size:{sm:"h-12 px-3 py-2",md:"h-14 px-4 py-3",lg:"h-16 px-6 py-4"},sticky:{true:"sticky top-0 z-50",false:""}},defaultVariants:{variant:"outline",size:"md",sticky:false}}),Df=___namespace.forwardRef(({className:e,variant:t,size:r,sticky:a,brand:n,children:o,mobileBreakpoint:s="md",...l},c)=>{let[d,m]=___namespace.useState(false),u={sm:"hidden sm:flex",md:"hidden md:flex",lg:"hidden lg:flex"}[s],p={sm:"sm:hidden",md:"md:hidden",lg:"lg:hidden"}[s];return jsxRuntime.jsxs("nav",{ref:c,className:i(Lf({variant:t,size:r,sticky:a,className:e})),...l,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between w-full",children:[n&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:n}),jsxRuntime.jsx("div",{className:i("items-center gap-4 flex-1 justify-end",u),children:o}),jsxRuntime.jsx("button",{type:"button",className:i("p-2 rounded-md hover:bg-accent hover:text-accent-foreground transition-colors",p),onClick:()=>m(!d),"aria-label":d?"Close menu":"Open menu","aria-expanded":d,children:d?jsxRuntime.jsx(lucideReact.X,{className:"h-5 w-5"}):jsxRuntime.jsx(lucideReact.Menu,{className:"h-5 w-5"})})]}),d&&jsxRuntime.jsx("div",{className:i("absolute top-full left-0 right-0 flex flex-col gap-2 p-4 bg-background border-b border-border shadow-lg",p),children:o})]})});Df.displayName="Navbar";var Sf=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex items-center gap-2 font-semibold text-lg",e),...t}));Sf.displayName="NavbarBrand";var Hf=___namespace.forwardRef(({className:e,justify:t="start",...r},a)=>{let n={start:"justify-start",center:"justify-center",end:"justify-end"}[t];return jsxRuntime.jsx("div",{ref:a,className:i("flex items-center gap-4",n,e),...r})});Hf.displayName="NavbarContent";var If=___namespace.forwardRef(({className:e,isActive:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i("flex items-center",t&&"text-primary font-medium",e),...r}));If.displayName="NavbarItem";var Vf=___namespace.forwardRef(({className:e,isActive:t,...r},a)=>jsxRuntime.jsx("a",{ref:a,className:i("text-sm font-medium transition-colors hover:text-primary",t?"text-primary":"text-muted-foreground",e),...r}));Vf.displayName="NavbarLink";var zf=classVarianceAuthority.cva("inline-flex items-center gap-1 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{solid:"text-primary-foreground bg-primary px-2 py-0.5 rounded hover:bg-primary/90",outline:"text-primary underline-offset-4 hover:underline",ghost:"text-foreground hover:text-primary",soft:"text-primary bg-primary/10 px-2 py-0.5 rounded hover:bg-primary/20",surface:"text-foreground bg-muted px-2 py-0.5 rounded hover:bg-muted/80"},size:{sm:"text-xs",md:"text-sm",lg:"text-base"},underline:{none:"",hover:"hover:underline underline-offset-4",always:"underline underline-offset-4"}},defaultVariants:{variant:"outline",size:"md",underline:"hover"}}),Bf=___namespace.forwardRef(({className:e,variant:t,size:r,underline:a,isExternal:n,showExternalIcon:o=true,isDisabled:s,children:l,...c},d)=>{let m=n?{target:"_blank",rel:"noopener noreferrer"}:{};return jsxRuntime.jsxs("a",{ref:d,className:i(zf({variant:t,size:r,underline:a,className:e}),s&&"pointer-events-none opacity-50"),"aria-disabled":s,...m,...c,children:[l,n&&o&&jsxRuntime.jsx(lucideReact.ExternalLink,{className:"h-3 w-3 ml-0.5","aria-hidden":"true"})]})});Bf.displayName="Link";var Of=classVarianceAuthority.cva("fixed z-50 transition-all duration-300",{variants:{position:{"bottom-right":"bottom-6 right-6","bottom-left":"bottom-6 left-6","bottom-center":"bottom-6 left-1/2 -translate-x-1/2"}},defaultVariants:{position:"bottom-right"}}),Ff=___namespace.forwardRef(({className:e,position:t,threshold:r=400,icon:a,behavior:n="smooth",variant:o="solid",color:s="default",size:l="md",radius:c="full",target:d,onVisibilityChange:m,onClick:u,...p},f)=>{let[b,x]=___namespace.useState(false);___namespace.useEffect(()=>{let R=d?.current||window,w=()=>{let C=(d?.current?d.current.scrollTop:window.scrollY||document.documentElement.scrollTop)>r;C!==b&&(x(C),m?.(C));};return R.addEventListener("scroll",w,{passive:true}),w(),()=>{R.removeEventListener("scroll",w);}},[r,d,b,m]);let g=R=>{d?.current?d.current.scrollTo({top:0,behavior:n}):window.scrollTo({top:0,behavior:n}),u?.(R);},v=l==="sm"?"h-4 w-4":l==="lg"?"h-6 w-6":"h-5 w-5";return jsxRuntime.jsx("div",{className:i(Of({position:t}),b?"opacity-100 translate-y-0 pointer-events-auto":"opacity-0 translate-y-4 pointer-events-none",e),children:jsxRuntime.jsx(Z,{ref:f,type:"button",variant:o,color:s,size:"icon",radius:c,onClick:g,"aria-label":"Back to top",className:i("shadow-lg",l==="sm"&&"h-9 w-9",l==="md"&&"h-10 w-10",l==="lg"&&"h-12 w-12"),...p,children:a||jsxRuntime.jsx(lucideReact.ArrowUp,{className:v})})})});Ff.displayName="BackTop";var PC=classVarianceAuthority.cva("",{variants:{radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-full"}},defaultVariants:{radius:"sm"}}),kC=classVarianceAuthority.cva("",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"sm"}}),Kf=classVarianceAuthority.cva("",{variants:{radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-2xl"}},defaultVariants:{radius:"sm"}}),gs=classVarianceAuthority.cva("",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-xl"}},defaultVariants:{radius:"sm"}}),Gf=___namespace.createContext(null),na=()=>{let e=___namespace.useContext(Gf);if(!e)throw new Error("Menubar components must be used within a Menubar");return e},$f=___namespace.createContext(null),Zn=()=>{let e=___namespace.useContext($f);if(!e)throw new Error("Menu components must be used within a MenubarMenu");return e},ol=___namespace.createContext(null),_f=___namespace.createContext(null),jf=___namespace.forwardRef(({className:e,children:t,radius:r="sm",...a},n)=>{let[o,s]=___namespace.useState(null);return jsxRuntime.jsx(Gf.Provider,{value:{activeMenu:o,setActiveMenu:s,radius:r},children:jsxRuntime.jsx("div",{ref:n,role:"menubar",className:i("flex h-10 items-center space-x-1 border bg-background p-1",PC({radius:r}),e),...a,children:t})})});jf.displayName="Menubar";var Wf=({children:e})=>{let{activeMenu:t,setActiveMenu:r}=na(),a=___namespace.useId(),n=___namespace.useRef(null),o=t===a,s=___namespace.useCallback(l=>{r(l?a:null);},[a,r]);return jsxRuntime.jsx($f.Provider,{value:{menuId:a,triggerRef:n,open:o,onOpenChange:s},children:e})};Wf.displayName="MenubarMenu";var Yf=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,role:"group",className:e,...t}));Yf.displayName="MenubarGroup";var Uf=({children:e,container:t})=>{let[r,a]=___namespace.useState(false);return ___namespace.useEffect(()=>{a(true);},[]),r?$o__namespace.createPortal(e,t||document.body):null};Uf.displayName="MenubarPortal";var Xf=({children:e,open:t,defaultOpen:r=false,onOpenChange:a})=>{let[n,o]=___namespace.useState(r),s=t!==void 0,l=s?t:n,c=___namespace.useRef(null),d=___namespace.useCallback(m=>{s||o(m),a?.(m);},[s,a]);return jsxRuntime.jsx(ol.Provider,{value:{open:l,onOpenChange:d,triggerRef:c},children:e})};Xf.displayName="MenubarSub";var qf=___namespace.forwardRef(({value:e="",onValueChange:t,className:r,...a},n)=>jsxRuntime.jsx(_f.Provider,{value:{value:e,onValueChange:t||(()=>{})},children:jsxRuntime.jsx("div",{ref:n,role:"group",className:r,...a})}));qf.displayName="MenubarRadioGroup";var Zf=___namespace.forwardRef(({className:e,onClick:t,onMouseEnter:r,...a},n)=>{let{activeMenu:o,setActiveMenu:s,radius:l}=na(),{menuId:c,triggerRef:d,open:m,onOpenChange:u}=Zn(),p=b=>{t?.(b),u(!m);},f=b=>{r?.(b),o&&o!==c&&(s(c),document.activeElement instanceof HTMLElement&&document.activeElement.blur());};return jsxRuntime.jsx("button",{ref:b=>{d.current=b,typeof n=="function"?n(b):n&&(n.current=b);},type:"button",role:"menuitem","aria-haspopup":"menu","aria-expanded":m,"data-state":m?"open":"closed",className:i("flex cursor-default select-none items-center px-3 py-1.5 text-sm font-medium outline-none hover:bg-accent hover:text-accent-foreground focus-visible:bg-accent focus-visible:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",kC({radius:l}),e),onClick:p,onMouseEnter:f,...a})});Zf.displayName="MenubarTrigger";var Jf=___namespace.forwardRef(({className:e,inset:t,children:r,onMouseEnter:a,onMouseLeave:n,...o},s)=>{let{radius:l}=na(),c=___namespace.useContext(ol);if(!c)throw new Error("MenubarSubTrigger must be used within MenubarSub");let{open:d,onOpenChange:m,triggerRef:u}=c,p=b=>{a?.(b),m(true);},f=b=>{n?.(b),m(false);};return jsxRuntime.jsxs("div",{ref:b=>{u.current=b,typeof s=="function"?s(b):s&&(s.current=b);},role:"menuitem","aria-haspopup":"menu","aria-expanded":d,"data-state":d?"open":"closed",className:i("flex cursor-default select-none items-center px-2 py-1.5 text-sm outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",gs({radius:l}),t&&"pl-8",e),onMouseEnter:p,onMouseLeave:f,...o,children:[r,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto h-4 w-4"})]})});Jf.displayName="MenubarSubTrigger";var Qf=___namespace.forwardRef(({className:e,sideOffset:t=2,onMouseEnter:r,onMouseLeave:a,...n},o)=>{let{radius:s}=na(),l=___namespace.useContext(ol);if(!l)throw new Error("MenubarSubContent must be used within MenubarSub");let{open:c,onOpenChange:d,triggerRef:m}=l,[u,p]=___namespace.useState({top:0,left:0}),[f,b]=___namespace.useState(false),x=___namespace.useRef(null);___namespace.useEffect(()=>{b(true);},[]),___namespace.useEffect(()=>{if(!c||!m.current||!x.current)return;(()=>{if(!m.current||!x.current)return;let w=m.current.getBoundingClientRect(),h=x.current.getBoundingClientRect(),C=w.top,y=w.right+t;y+h.width>window.innerWidth&&(y=w.left-h.width-t),p({top:C,left:y});})();},[c,t,m]);let g=R=>{r?.(R),d(true);},v=R=>{a?.(R),d(false);};return !f||!c?null:$o__namespace.createPortal(jsxRuntime.jsx("div",{ref:R=>{x.current=R,typeof o=="function"?o(R):o&&(o.current=R);},role:"menu","data-state":c?"open":"closed",className:i("fixed z-50 min-w-[8rem] overflow-hidden border bg-popover p-1 text-popover-foreground shadow-lg","animate-in fade-in-0 zoom-in-95 slide-in-from-left-2",Kf({radius:s}),e),style:{top:u.top,left:u.left},onMouseEnter:g,onMouseLeave:v,...n}),document.body)});Qf.displayName="MenubarSubContent";var eg=___namespace.forwardRef(({className:e,align:t="start",alignOffset:r=-4,sideOffset:a=8,children:n,...o},s)=>{let{radius:l}=na(),{triggerRef:c,open:d,onOpenChange:m}=Zn(),[u,p]=___namespace.useState({top:0,left:0}),[f,b]=___namespace.useState(false),x=___namespace.useRef(null);return ___namespace.useEffect(()=>{b(true);},[]),___namespace.useEffect(()=>{if(!d||!c.current||!x.current)return;let g=()=>{if(!c.current||!x.current)return;let v=c.current.getBoundingClientRect(),R=x.current.getBoundingClientRect(),w=v.bottom+a,h=v.left+r;t==="center"?h=v.left+v.width/2-R.width/2:t==="end"&&(h=v.right-R.width-r),p({top:w,left:h});};return g(),window.addEventListener("resize",g),window.addEventListener("scroll",g,true),()=>{window.removeEventListener("resize",g),window.removeEventListener("scroll",g,true);}},[d,t,r,a,c]),___namespace.useEffect(()=>{if(!d)return;let g=v=>{let R=v.target;x.current&&!x.current.contains(R)&&c.current&&!c.current.contains(R)&&m(false);};return document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)},[d,m,c]),___namespace.useEffect(()=>{if(!d)return;let g=v=>{v.key==="Escape"&&m(false);};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[d,m]),!f||!d?null:$o__namespace.createPortal(jsxRuntime.jsx("div",{ref:g=>{x.current=g,typeof s=="function"?s(g):s&&(s.current=g);},role:"menu","data-state":d?"open":"closed",className:i("fixed z-50 min-w-[12rem] overflow-hidden border bg-popover p-1 text-popover-foreground shadow-md","animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",Kf({radius:l}),e),style:{top:u.top,left:u.left},...o,children:n}),document.body)});eg.displayName="MenubarContent";var tg=___namespace.forwardRef(({className:e,inset:t,disabled:r,onSelect:a,onClick:n,...o},s)=>{let{radius:l}=na(),{onOpenChange:c}=Zn(),d=m=>{if(r){m.preventDefault();return}n?.(m),a?.(),c(false);};return jsxRuntime.jsx("div",{ref:s,role:"menuitem",tabIndex:r?-1:0,"aria-disabled":r,"data-disabled":r?"":void 0,className:i("relative flex cursor-default select-none items-center px-2 py-1.5 text-sm outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",gs({radius:l}),t&&"pl-8",!r&&"cursor-pointer",e),onClick:d,...o})});tg.displayName="MenubarItem";var rg=___namespace.forwardRef(({className:e,children:t,checked:r=false,onCheckedChange:a,disabled:n,onClick:o,...s},l)=>{let{radius:c}=na(),{onOpenChange:d}=Zn(),m=u=>{if(n){u.preventDefault();return}o?.(u),a?.(!r),d(false);};return jsxRuntime.jsxs("div",{ref:l,role:"menuitemcheckbox","aria-checked":r,tabIndex:n?-1:0,"aria-disabled":n,"data-disabled":n?"":void 0,"data-state":r?"checked":"unchecked",className:i("relative flex cursor-default select-none items-center py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",gs({radius:c}),!n&&"cursor-pointer",e),onClick:m,...s,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r&&jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})}),t]})});rg.displayName="MenubarCheckboxItem";var ag=___namespace.forwardRef(({className:e,children:t,value:r,disabled:a,onClick:n,...o},s)=>{let{radius:l}=na(),{onOpenChange:c}=Zn(),d=___namespace.useContext(_f),m=d?.value===r,u=p=>{if(a){p.preventDefault();return}n?.(p),d?.onValueChange(r),c(false);};return jsxRuntime.jsxs("div",{ref:s,role:"menuitemradio","aria-checked":m,tabIndex:a?-1:0,"aria-disabled":a,"data-disabled":a?"":void 0,"data-state":m?"checked":"unchecked",className:i("relative flex cursor-default select-none items-center py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",gs({radius:l}),!a&&"cursor-pointer",e),onClick:u,...o,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m&&jsxRuntime.jsx(lucideReact.Circle,{className:"h-2 w-2 fill-current"})}),t]})});ag.displayName="MenubarRadioItem";var ng=___namespace.forwardRef(({className:e,inset:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));ng.displayName="MenubarLabel";var og=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,role:"separator",className:i("-mx-1 my-1 h-px bg-muted",e),...t}));og.displayName="MenubarSeparator";var sg=({className:e,...t})=>jsxRuntime.jsx("span",{className:i("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});sg.displayName="MenubarShortcut";var ig=classVarianceAuthority.cva("flex",{variants:{orientation:{horizontal:"flex-row items-center",vertical:"flex-col"},size:{sm:"gap-2",md:"gap-4",lg:"gap-6"}},defaultVariants:{orientation:"horizontal",size:"md"}}),lg=___namespace.forwardRef(({className:e,orientation:t,size:r,currentStep:a=0,children:n,...o},s)=>{let l=___namespace.Children.toArray(n);return jsxRuntime.jsx("div",{ref:s,className:i(ig({orientation:t,size:r,className:e})),...o,children:l.map((c,d)=>___namespace.isValidElement(c)?___namespace.cloneElement(c,{...c.props,stepNumber:d+1,status:c.props.status||(d<a?"completed":d===a?"current":"upcoming"),isLast:d===l.length-1,orientation:t,size:r}):c)})});lg.displayName="Steps";var cg=classVarianceAuthority.cva("flex items-center",{variants:{orientation:{horizontal:"flex-row",vertical:"flex-col items-start"},size:{sm:"gap-2",md:"gap-3",lg:"gap-4"}},defaultVariants:{orientation:"horizontal",size:"md"}}),LC=classVarianceAuthority.cva("flex items-center justify-center rounded-full font-medium transition-colors",{variants:{status:{completed:"bg-primary text-primary-foreground",current:"bg-primary text-primary-foreground ring-2 ring-primary ring-offset-2 ring-offset-background",upcoming:"bg-muted text-muted-foreground border-2 border-muted-foreground/30"},size:{sm:"h-6 w-6 text-xs",md:"h-8 w-8 text-sm",lg:"h-10 w-10 text-base"}},defaultVariants:{status:"upcoming",size:"md"}}),DC=classVarianceAuthority.cva("bg-muted transition-colors",{variants:{orientation:{horizontal:"h-0.5 flex-1 min-w-8",vertical:"w-0.5 min-h-8 ml-4"},status:{completed:"bg-primary",current:"bg-muted",upcoming:"bg-muted"}},defaultVariants:{orientation:"horizontal",status:"upcoming"}}),dg=___namespace.forwardRef(({className:e,orientation:t="horizontal",size:r="md",title:a,description:n,icon:o,status:s="upcoming",stepNumber:l,isLast:c,...d},m)=>jsxRuntime.jsxs("div",{ref:m,className:i(cg({orientation:t,size:r,className:e}),!c&&t==="horizontal"&&"flex-1"),...d,children:[jsxRuntime.jsx("div",{className:i("flex items-center",t==="vertical"&&"flex-col items-start"),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntime.jsx("div",{className:i(LC({status:s,size:r})),children:s==="completed"?jsxRuntime.jsx(lucideReact.Check,{className:r==="sm"?"h-3 w-3":r==="lg"?"h-5 w-5":"h-4 w-4"}):o||l}),(a||n)&&jsxRuntime.jsxs("div",{className:"flex flex-col",children:[a&&jsxRuntime.jsx("span",{className:i("font-medium",r==="sm"&&"text-sm",r==="lg"&&"text-lg",s==="upcoming"&&"text-muted-foreground"),children:a}),n&&jsxRuntime.jsx("span",{className:i("text-muted-foreground",r==="sm"&&"text-xs",r==="md"&&"text-sm",r==="lg"&&"text-base"),children:n})]})]})}),!c&&jsxRuntime.jsx("div",{className:i(DC({orientation:t,status:s==="completed"?"completed":"upcoming"}),t==="vertical"&&"my-2")})]}));dg.displayName="Step";function zC({className:e,data:t,columns:r,selectable:a=false,selectedKeys:n,onSelectionChange:o,getRowKey:s=(h,C)=>String(C),sortable:l=false,sortState:c,onSortChange:d,paginated:m=false,pageSizeOptions:u=[10,20,50],paginationState:p,onPaginationChange:f,emptyContent:b="No data",loading:x=false,striped:g=false,hoverable:v=true,...R},w){let[h,C]=___namespace.useState(new Set),[y,T]=___namespace.useState({columnId:null,direction:null}),[N,E]=___namespace.useState({pageIndex:0,pageSize:u[0]||10}),M=n??h,P=c??y,k=p??N,L=K=>{o?o(K):C(K);},H=K=>{d?d(K):T(K);},S=K=>{f?f(K):E(K);},D=___namespace.useMemo(()=>{if(!P.columnId||!P.direction)return t;let K=r.find(B=>B.id===P.columnId);return K?[...t].sort((B,j)=>{let A=K.accessor(B),W=K.accessor(j);if(A===W)return 0;if(A==null)return 1;if(W==null)return -1;let Y=String(A).localeCompare(String(W),void 0,{numeric:true});return P.direction==="asc"?Y:-Y}):t},[t,P,r]),V=___namespace.useMemo(()=>{if(!m)return D;let K=k.pageIndex*k.pageSize;return D.slice(K,K+k.pageSize)},[D,m,k]),z=Math.ceil(D.length/k.pageSize),G=K=>{if(K===true){let B=new Set(V.map((j,A)=>s(j,A)));L(B);}else L(new Set);},I=(K,B)=>{let j=new Set(M);B?j.add(K):j.delete(K),L(j);},F=V.length>0&&V.every((K,B)=>M.has(s(K,B))),O=V.some((K,B)=>M.has(s(K,B))),ee=K=>{if(!r.find(A=>A.id===K)?.sortable&&!l)return;let j="asc";P.columnId===K&&(P.direction==="asc"?j="desc":P.direction==="desc"&&(j=null)),H({columnId:j?K:null,direction:j});},ae=K=>P.columnId!==K?jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"h-4 w-4 text-muted-foreground/50"}):P.direction==="asc"?jsxRuntime.jsx(lucideReact.ChevronUp,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"});return jsxRuntime.jsxs("div",{ref:w,className:i("w-full",e),...R,children:[jsxRuntime.jsx("div",{className:"relative w-full overflow-auto rounded-md border",children:jsxRuntime.jsxs("table",{className:"w-full caption-bottom text-sm",children:[jsxRuntime.jsx("thead",{className:"[&_tr]:border-b bg-muted/50",children:jsxRuntime.jsxs("tr",{children:[a&&jsxRuntime.jsx("th",{className:"h-12 w-12 px-4",children:jsxRuntime.jsx(On,{checked:F?true:O?"indeterminate":false,onCheckedChange:G,"aria-label":"Select all"})}),r.map(K=>{let B=K.sortable??l;return jsxRuntime.jsx("th",{className:i("h-12 px-4 text-left align-middle font-medium text-muted-foreground",B&&"cursor-pointer select-none hover:text-foreground"),style:{width:K.width},onClick:()=>B&&ee(K.id),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[K.header,B&&ae(K.id)]})},K.id)})]})}),jsxRuntime.jsx("tbody",{className:"[&_tr:last-child]:border-0",children:x?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:r.length+(a?1:0),className:"h-24 text-center text-muted-foreground",children:"Loading..."})}):V.length===0?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:r.length+(a?1:0),className:"h-24 text-center text-muted-foreground",children:b})}):V.map((K,B)=>{let j=s(K,B),A=M.has(j);return jsxRuntime.jsxs("tr",{className:i("border-b transition-colors",v&&"hover:bg-muted/50",g&&B%2===1&&"bg-muted/30",A&&"bg-muted"),"data-state":A?"selected":void 0,children:[a&&jsxRuntime.jsx("td",{className:"w-12 px-4",children:jsxRuntime.jsx(On,{checked:A,onCheckedChange:W=>I(j,!!W),"aria-label":`Select row ${B+1}`})}),r.map(W=>jsxRuntime.jsx("td",{className:"p-4 align-middle",children:W.cell?W.cell(K,B):W.accessor(K)},W.id))]},j)})})]})}),m&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between px-2 py-4",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[jsxRuntime.jsx("span",{children:"Rows per page:"}),jsxRuntime.jsx("select",{value:k.pageSize,onChange:K=>S({pageIndex:0,pageSize:Number(K.target.value)}),className:"h-8 rounded-md border bg-transparent px-2",children:u.map(K=>jsxRuntime.jsx("option",{value:K,children:K},K))})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("span",{className:"text-sm text-muted-foreground",children:["Page ",k.pageIndex+1," of ",z||1]}),jsxRuntime.jsxs("div",{className:"flex gap-1",children:[jsxRuntime.jsx(Z,{variant:"light",size:"icon",className:"h-8 w-8",onClick:()=>S({...k,pageIndex:k.pageIndex-1}),disabled:k.pageIndex===0,"aria-label":"Previous page",children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx(Z,{variant:"light",size:"icon",className:"h-8 w-8",onClick:()=>S({...k,pageIndex:k.pageIndex+1}),disabled:k.pageIndex>=z-1,"aria-label":"Next page",children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})})]})]})]})]})}var BC=___namespace.forwardRef(zC);var mg=classVarianceAuthority.cva("",{variants:{size:{sm:"[--tree-indent:12px] [--tree-item-height:28px] text-xs",md:"[--tree-indent:16px] [--tree-item-height:32px] text-sm",lg:"[--tree-indent:20px] [--tree-item-height:40px] text-base"}},defaultVariants:{size:"md"}}),pg=___namespace.forwardRef(({className:e,size:t,data:r,defaultExpandedIds:a=[],expandedIds:n,onExpandedChange:o,selectedId:s,onSelect:l,showIcons:c=true,leafIcon:d=jsxRuntime.jsx(lucideReact.File,{className:"h-4 w-4"}),folderIcon:m=jsxRuntime.jsx(lucideReact.Folder,{className:"h-4 w-4"}),folderOpenIcon:u=jsxRuntime.jsx(lucideReact.FolderOpen,{className:"h-4 w-4"}),defaultExpandAll:p=false,...f},b)=>{let x=___namespace.useCallback(y=>y.reduce((T,N)=>N.children?.length?[...T,N.id,...x(N.children)]:T,[]),[]),[g,v]=___namespace.useState(()=>p?x(r):a),R=n??g,w=y=>{o?o(y):v(y);},h=y=>{R.includes(y)?w(R.filter(T=>T!==y)):w([...R,y]);},C=(y,T=0)=>{let N=y.children&&y.children.length>0,E=R.includes(y.id),M=s===y.id,P=()=>{y.disabled||l?.(y);},k=H=>{H.stopPropagation(),N&&h(y.id);},L=()=>y.icon?y.icon:N?E?u:m:d;return jsxRuntime.jsxs("div",{role:"treeitem","aria-expanded":N?E:void 0,children:[jsxRuntime.jsxs("div",{className:i("flex items-center gap-1 rounded-md px-2 cursor-pointer transition-colors","h-[var(--tree-item-height)]","hover:bg-muted/50",M&&"bg-primary/10 text-primary",y.disabled&&"opacity-50 cursor-not-allowed"),style:{paddingLeft:`calc(${T} * var(--tree-indent) + 8px)`},onClick:P,children:[jsxRuntime.jsx("button",{type:"button",className:i("flex h-5 w-5 items-center justify-center rounded hover:bg-muted",!N&&"invisible"),onClick:k,tabIndex:-1,"aria-label":E?"Collapse":"Expand",children:E?jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})}),c&&jsxRuntime.jsx("span",{className:"flex-shrink-0 text-muted-foreground",children:L()}),jsxRuntime.jsx("span",{className:"truncate",children:y.name})]}),N&&E&&jsxRuntime.jsx("div",{role:"group",children:y.children.map(H=>C(H,T+1))})]},y.id)};return jsxRuntime.jsx("div",{ref:b,role:"tree",className:i(mg({size:t,className:e})),...f,children:r.map(y=>C(y))})});pg.displayName="TreeView";var gg=classVarianceAuthority.cva("flex rounded-md border border-input bg-background text-sm placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{sm:"h-8 px-2 text-xs",md:"h-10 px-3 text-sm",lg:"h-12 px-4 text-base"},fullWidth:{true:"w-full",false:"w-fit min-w-48"}},defaultVariants:{size:"md",fullWidth:false}}),XC=({text:e,query:t})=>{if(!t)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:e});let r=new RegExp(`(${t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")})`,"gi"),a=e.split(r);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:a.map((n,o)=>r.test(n)?jsxRuntime.jsx("mark",{className:"bg-primary/20 text-foreground rounded-sm",children:n},o):jsxRuntime.jsx("span",{children:n},o))})},qC=(e,t)=>{let[r,a]=___namespace.useState(e);return ___namespace.useEffect(()=>{let n=setTimeout(()=>{a(e);},t);return ()=>{clearTimeout(n);}},[e,t]),r},bg=___namespace.forwardRef(({className:e,size:t,value:r,defaultValue:a="",onChange:n,onSelect:o,options:s=[],loadOptions:l,debounceMs:c=300,minChars:d=0,placeholder:m="Type to search...",emptyText:u="No results found.",loadingText:p="Loading...",clearable:f=false,freeSolo:b=true,maxHeight:x=200,highlightMatch:g=true,fullWidth:v=false,disabled:R,...w},h)=>{let[C,y]=___namespace.useState(false),[T,N]=___namespace.useState(a),[E,M]=___namespace.useState([]),[P,k]=___namespace.useState(false),[L,H]=___namespace.useState(false),S=___namespace.useRef(null),D=r!==void 0?r:T,V=qC(D,c);___namespace.useImperativeHandle(h,()=>S.current);let z=l?E:s,G=___namespace.useMemo(()=>l?z:z.filter(Y=>Y.label.toLowerCase().includes(D.toLowerCase())),[z,D,l]);___namespace.useEffect(()=>{if(!l)return;if(V.length<d){M([]);return}let Y=false;return (async()=>{k(true);try{let pe=await l(V);Y||M(pe);}catch{Y||M([]);}finally{Y||k(false);}})(),()=>{Y=true;}},[V,l,d]);let I=Y=>{r===void 0&&N(Y),n?.(Y);},F=Y=>{let Se=Y.target.value;I(Se),Se.length>=d&&y(true);},O=Y=>{I(Y.label),o?.(Y),y(false);},ee=()=>{I(""),S.current?.focus();},ae=()=>{H(true),D.length>=d&&(G.length>0||P)&&y(true);},K=()=>{H(false);},B=Y=>{Y.key==="Escape"&&y(false),Y.key==="ArrowDown"&&!C&&G.length>0&&y(true);},j=C&&D.length>=d,A=t==="sm"?"h-3 w-3":t==="lg"?"h-5 w-5":"h-4 w-4",W=f&&D?"pr-8":"pr-3";return jsxRuntime.jsxs(et,{open:j,onOpenChange:y,children:[jsxRuntime.jsx(Bo,{asChild:true,children:jsxRuntime.jsxs("div",{className:i("relative",v?"w-full":"w-fit"),children:[jsxRuntime.jsx("input",{ref:S,type:"text",value:D,onChange:F,onFocus:ae,onBlur:K,onKeyDown:B,disabled:R,placeholder:m,className:i(gg({size:t,fullWidth:v}),W,e),style:{borderColor:L?"var(--color-foreground)":void 0},role:"combobox","aria-expanded":j,"aria-autocomplete":"list","aria-controls":"autocomplete-list",...w}),f&&D&&!R&&jsxRuntime.jsx("button",{type:"button",onClick:ee,className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground","aria-label":"Clear",children:jsxRuntime.jsx(lucideReact.X,{className:A})})]})}),jsxRuntime.jsx(tt,{className:"w-[--radix-popover-trigger-width] p-0",align:"start",onOpenAutoFocus:Y=>Y.preventDefault(),children:jsxRuntime.jsx(cmdk.Command,{className:"overflow-hidden rounded-md",shouldFilter:false,children:jsxRuntime.jsx(cmdk.Command.List,{id:"autocomplete-list",className:"overflow-y-auto p-1",style:{maxHeight:x},children:P?jsxRuntime.jsxs("div",{className:"flex items-center justify-center gap-2 py-6 text-sm text-muted-foreground",children:[jsxRuntime.jsx(lucideReact.Loader2,{className:i(A,"animate-spin")}),p]}):G.length===0?jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:u}):G.map(Y=>jsxRuntime.jsxs(cmdk.Command.Item,{value:Y.value,disabled:Y.disabled,onSelect:()=>O(Y),className:i("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-[disabled=true]:opacity-50","data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground"),children:[jsxRuntime.jsx(lucideReact.Check,{className:i("mr-2 h-4 w-4 shrink-0",D===Y.label?"opacity-100":"opacity-0")}),jsxRuntime.jsx("span",{className:"flex-1",children:g?jsxRuntime.jsx(XC,{text:Y.label,query:D}):Y.label})]},Y.value))})})})]})});bg.displayName="Autocomplete";var cl=___namespace.createContext(null),dl=___namespace.createContext(null),ul=()=>{let e=___namespace.useContext(cl);if(!e)throw new Error("useFormContext must be used within a Form");return e},hs=()=>{let e=___namespace.useContext(dl);if(!e)throw new Error("useFieldContext must be used within a FormField");return e},ZC={required:(e="This field is required")=>({validate:t=>typeof t=="string"?t.trim().length>0:Array.isArray(t)?t.length>0:t!=null,message:e}),minLength:(e,t)=>({validate:r=>typeof r=="string"&&r.length>=e,message:t??`Must be at least ${e} characters`}),maxLength:(e,t)=>({validate:r=>typeof r=="string"&&r.length<=e,message:t??`Must be at most ${e} characters`}),min:(e,t)=>({validate:r=>typeof r=="number"&&r>=e,message:t??`Must be at least ${e}`}),max:(e,t)=>({validate:r=>typeof r=="number"&&r<=e,message:t??`Must be at most ${e}`}),email:(e="Invalid email address")=>({validate:t=>typeof t=="string"&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t),message:e}),pattern:(e,t="Invalid format")=>({validate:r=>typeof r=="string"&&e.test(r),message:t}),custom:(e,t)=>({validate:e,message:t})},vg=___namespace.forwardRef(({defaultValues:e={},onSubmit:t,onError:r,validateOnBlur:a=true,validateOnChange:n=false,children:o,className:s,...l},c)=>{let[d,m]=___namespace.useState(e),[u,p]=___namespace.useState({}),[f,b]=___namespace.useState({}),[x,g]=___namespace.useState({}),[v,R]=___namespace.useState(false),w=___namespace.useRef(new Map),h=___namespace.useCallback((S,D)=>{w.current.set(S,D);},[]),C=___namespace.useCallback(S=>{w.current.delete(S);},[]),y=___namespace.useCallback(S=>{let D=w.current.get(S)||[],V=d[S];for(let z of D)if(!z.validate(V))return p(G=>({...G,[S]:z.message})),false;return p(z=>({...z,[S]:null})),true},[d]),T=___namespace.useCallback(()=>{let S=true,D={};return w.current.forEach((V,z)=>{let G=d[z];for(let I of V)if(!I.validate(G)){D[z]=I.message,S=false;break}D[z]||(D[z]=null);}),p(D),S},[d]),N=___namespace.useCallback((S,D)=>{m(V=>({...V,[S]:D})),g(V=>({...V,[S]:true})),n&&setTimeout(()=>{y(S);},0);},[n,y]),E=___namespace.useCallback((S,D)=>{p(V=>({...V,[S]:D}));},[]),M=___namespace.useCallback((S,D)=>{b(V=>({...V,[S]:D})),D&&a&&y(S);},[a,y]),P=___namespace.useCallback(S=>({value:d[S],error:u[S]??null,touched:f[S]??false,dirty:x[S]??false}),[d,u,f,x]),k=___namespace.useCallback(()=>{m(e),p({}),b({}),g({});},[e]),L=async S=>{S.preventDefault();let D={};if(w.current.forEach((z,G)=>{D[G]=true;}),b(D),!T()){r?.(u);return}if(t){R(true);try{await t(d);}finally{R(false);}}},H={values:d,errors:u,touched:f,dirty:x,isSubmitting:v,setValue:N,setError:E,setTouched:M,validateField:y,validateAll:T,registerField:h,unregisterField:C,getFieldState:P,reset:k};return jsxRuntime.jsx(cl.Provider,{value:H,children:jsxRuntime.jsx("form",{ref:c,onSubmit:L,className:i("space-y-4",s),...l,children:o})})});vg.displayName="Form";var hg=({name:e,rules:t=[],defaultValue:r,children:a})=>{let n=ul(),o=___namespace.useId();___namespace.useEffect(()=>(n.registerField(e,t),r!==void 0&&n.values[e]===void 0&&n.setValue(e,r),()=>{n.unregisterField(e);}),[e,t,r,n]);let s=n.getFieldState(e),l={name:e,id:`${o}-${e}`,value:s.value,error:s.error,touched:s.touched,dirty:s.dirty};return jsxRuntime.jsx(dl.Provider,{value:l,children:a})};hg.displayName="FormField";var xg=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("space-y-1.5",e),...t}));xg.displayName="FormItem";var yg=___namespace.forwardRef(({className:e,required:t,children:r,...a},n)=>{let{id:o,error:s,touched:l}=hs();return jsxRuntime.jsxs(Ra,{ref:n,htmlFor:o,className:i(s&&l&&"text-danger",e),...a,children:[r,t&&jsxRuntime.jsx("span",{className:"ml-1 text-danger",children:"*"})]})});yg.displayName="FormLabel";var Rg=({children:e})=>{let{name:t,id:r,error:a,touched:n}=hs(),o=ul(),s=o.getFieldState(t),l=d=>{let m=d.target,u=m.type==="checkbox"?m.checked:m.value;o.setValue(t,u);},c=()=>{o.setTouched(t,true);};return ___namespace.cloneElement(e,{id:r,name:t,value:s.value??"",onChange:l,onBlur:c,"aria-invalid":a&&n?"true":void 0,"aria-describedby":a&&n?`${r}-error`:void 0})};Rg.displayName="FormControl";var wg=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("p",{ref:r,className:i("text-xs text-muted-foreground",e),...t}));wg.displayName="FormDescription";var Cg=___namespace.forwardRef(({className:e,message:t,...r},a)=>{let{id:n,error:o,touched:s}=hs(),l=t??(s?o:null);return l?jsxRuntime.jsx("p",{ref:a,id:`${n}-error`,className:i("text-xs text-danger",e),role:"alert",...r,children:l}):null});Cg.displayName="FormMessage";var Mg=classVarianceAuthority.cva("inline-flex items-center gap-3",{variants:{size:{sm:"[&_[data-user-avatar]]:h-8 [&_[data-user-avatar]]:w-8",md:"[&_[data-user-avatar]]:h-10 [&_[data-user-avatar]]:w-10",lg:"[&_[data-user-avatar]]:h-12 [&_[data-user-avatar]]:w-12"}},defaultVariants:{size:"md"}}),Tg=___namespace.forwardRef(({className:e,size:t,name:r,description:a,avatarUrl:n,avatarFallback:o,trailing:s,...l},c)=>{let d=o||r.split(" ").map(m=>m[0]).join("").toUpperCase().slice(0,2);return jsxRuntime.jsxs("div",{ref:c,className:i(Mg({size:t,className:e})),...l,children:[jsxRuntime.jsxs(wa,{"data-user-avatar":true,children:[n&&jsxRuntime.jsx(rn,{src:n,alt:r}),jsxRuntime.jsx(Ca,{children:d})]}),jsxRuntime.jsxs("div",{className:"flex flex-col min-w-0",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium leading-none truncate",children:r}),a&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground truncate",children:a})]}),s&&jsxRuntime.jsx("div",{className:"ml-auto flex-shrink-0",children:s})]})});Tg.displayName="User";var kg=classVarianceAuthority.cva("font-mono rounded",{variants:{variant:{solid:"bg-primary text-primary-foreground",outline:"border border-input bg-transparent",ghost:"bg-transparent",soft:"bg-muted text-foreground",surface:"bg-muted/50 text-foreground border border-border"},size:{sm:"px-1 py-0.5 text-xs",md:"px-1.5 py-0.5 text-sm",lg:"px-2 py-1 text-base"}},defaultVariants:{variant:"soft",size:"md"}}),Eg=___namespace.forwardRef(({className:e,variant:t,size:r,...a},n)=>jsxRuntime.jsx("code",{ref:n,className:i(kg({variant:t,size:r,className:e})),...a}));Eg.displayName="Code";var Lg=classVarianceAuthority.cva("relative flex items-center gap-2 font-mono rounded-lg border",{variants:{variant:{solid:"bg-primary text-primary-foreground border-primary",outline:"bg-transparent border-input",ghost:"bg-transparent border-transparent",soft:"bg-muted border-muted",surface:"bg-muted/50 border-border"},size:{sm:"px-3 py-1.5 text-xs",md:"px-4 py-2 text-sm",lg:"px-5 py-3 text-base"}},defaultVariants:{variant:"surface",size:"md"}}),Dg=___namespace.forwardRef(({className:e,variant:t,size:r,code:a,copyable:n=true,copyLabel:o="Copy",onCopy:s,symbol:l="$",hideSymbol:c=false,...d},m)=>{let[u,p]=___namespace.useState(false),f=async()=>{try{await navigator.clipboard.writeText(a),p(!0),s?.(),setTimeout(()=>p(!1),2e3);}catch(b){console.error("Failed to copy:",b);}};return jsxRuntime.jsxs("div",{ref:m,className:i(Lg({variant:t,size:r,className:e})),...d,children:[!c&&jsxRuntime.jsx("span",{className:"text-muted-foreground select-none",children:l}),jsxRuntime.jsx("code",{className:"flex-1 truncate",children:a}),n&&jsxRuntime.jsx("button",{type:"button",onClick:f,className:i("flex-shrink-0 rounded p-1 transition-colors","hover:bg-black/10 dark:hover:bg-white/10","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"),"aria-label":u?"Copied":o,children:u?jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4 text-green-500"}):jsxRuntime.jsx(lucideReact.Copy,{className:"h-4 w-4 text-muted-foreground"})})]})});Dg.displayName="Snippet";var fl=classVarianceAuthority.cva("overflow-hidden",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"md"}}),Sg=___namespace.forwardRef(({className:e,radius:t,src:r,alt:a,fallback:n,showSkeleton:o=true,onLoad:s,onError:l,fit:c="cover",aspectRatio:d,style:m,...u},p)=>{let[f,b]=___namespace.useState("loading");___namespace.useEffect(()=>{r&&b("loading");},[r]);let x=()=>{b("loaded"),s?.();},g=()=>{b("error"),l?.();},v={contain:"object-contain",cover:"object-cover",fill:"object-fill",none:"object-none","scale-down":"object-scale-down"}[c];return f==="error"&&n?jsxRuntime.jsx("div",{className:i(fl({radius:t}),"flex items-center justify-center bg-muted",e),style:{aspectRatio:d,...m},children:n}):jsxRuntime.jsxs("div",{className:i(fl({radius:t}),"relative",e),style:{aspectRatio:d,...m},children:[f==="loading"&&o&&jsxRuntime.jsx(Ho,{className:"absolute inset-0 h-full w-full"}),jsxRuntime.jsx("img",{ref:p,src:r,alt:a,onLoad:x,onError:g,className:i("h-full w-full transition-opacity duration-300",v,f==="loading"?"opacity-0":"opacity-100"),...u})]})});Sg.displayName="Image";var Vg=classVarianceAuthority.cva("flex flex-col rounded-lg border bg-background",{variants:{size:{sm:"p-1 gap-0.5",md:"p-1.5 gap-1",lg:"p-2 gap-1.5"}},defaultVariants:{size:"md"}}),Ag=classVarianceAuthority.cva("relative flex cursor-pointer select-none items-center rounded-md outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",{variants:{size:{sm:"px-2 py-1 text-xs",md:"px-3 py-1.5 text-sm",lg:"px-4 py-2 text-base"}},defaultVariants:{size:"md"}}),zg=___namespace.createContext({value:"",onValueChange:()=>{},multiple:false,size:"md"}),Bg=___namespace.forwardRef(({className:e,size:t="md",value:r,defaultValue:a="",onValueChange:n,multiple:o=false,children:s,...l},c)=>{let[d,m]=___namespace.useState(a),u=r??d,p=f=>{let b;if(o){let x=Array.isArray(u)?u:[u].filter(Boolean);x.includes(f)?b=x.filter(g=>g!==f):b=[...x,f];}else b=f;n?n(b):m(b);};return jsxRuntime.jsx(zg.Provider,{value:{value:u,onValueChange:p,multiple:o,size:t??"md"},children:jsxRuntime.jsx("div",{ref:c,role:"listbox","aria-multiselectable":o,className:i(Vg({size:t,className:e})),...l,children:s})})});Bg.displayName="Listbox";var Og=___namespace.forwardRef(({className:e,value:t,disabled:r,icon:a,description:n,children:o,...s},l)=>{let{value:c,onValueChange:d,multiple:m,size:u}=___namespace.useContext(zg),p=m?Array.isArray(c)&&c.includes(t):c===t,f=()=>{r||d(t);},b=x=>{(x.key==="Enter"||x.key===" ")&&!r&&(x.preventDefault(),d(t));};return jsxRuntime.jsxs("div",{ref:l,role:"option","aria-selected":p,"data-disabled":r?"":void 0,tabIndex:r?-1:0,className:i(Ag({size:u}),p&&"bg-accent text-accent-foreground",e),onClick:f,onKeyDown:b,...s,children:[a&&jsxRuntime.jsx("span",{className:"mr-2 flex-shrink-0",children:a}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:"truncate",children:o}),n&&jsxRuntime.jsx("div",{className:"text-xs text-muted-foreground truncate",children:n})]}),p&&jsxRuntime.jsx(lucideReact.Check,{className:"ml-2 h-4 w-4 flex-shrink-0"})]})});Og.displayName="ListboxItem";var Kg=classVarianceAuthority.cva("flex flex-col",{variants:{variant:{default:"gap-2",bordered:"divide-y divide-border rounded-lg border",cards:"gap-2"},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"default",size:"md"}}),Gg=classVarianceAuthority.cva("flex items-center gap-3 bg-background transition-all",{variants:{variant:{default:"rounded-lg border p-3",bordered:"p-3",cards:"rounded-lg border p-3 shadow-sm"},size:{sm:"p-2 text-sm",md:"p-3 text-sm",lg:"p-4 text-base"},isDragging:{true:"opacity-50 scale-[1.02] shadow-lg z-10",false:""},isDragOver:{true:"border-primary border-dashed",false:""}},defaultVariants:{variant:"default",size:"md",isDragging:false,isDragOver:false}});function dN({className:e,variant:t,size:r,items:a,onReorder:n,renderItem:o,showHandle:s=true,disabled:l=false,...c},d){let[m,u]=___namespace.useState(null),[p,f]=___namespace.useState(null),b=(w,h)=>{l||(u(h),w.dataTransfer.effectAllowed="move",w.dataTransfer.setData("text/plain",String(h)));},x=(w,h)=>{w.preventDefault(),!(l||m===null||m===h)&&f(h);},g=()=>{f(null);},v=(w,h)=>{if(w.preventDefault(),l||m===null||m===h){u(null),f(null);return}let C=[...a],[y]=C.splice(m,1);C.splice(h,0,y),n?.(C),u(null),f(null);},R=()=>{u(null),f(null);};return jsxRuntime.jsx("div",{ref:d,className:i(Kg({variant:t,size:r,className:e})),...c,children:a.map((w,h)=>jsxRuntime.jsxs("div",{draggable:!l,onDragStart:C=>b(C,h),onDragOver:C=>x(C,h),onDragLeave:g,onDrop:C=>v(C,h),onDragEnd:R,className:i(Gg({variant:t,size:r,isDragging:m===h,isDragOver:p===h}),!l&&"cursor-move"),children:[s&&jsxRuntime.jsx("div",{className:i("flex-shrink-0 text-muted-foreground",l?"opacity-30":"cursor-grab active:cursor-grabbing"),children:jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-5 w-5"})}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:o(w,h)})]},w.id))})}var uN=___namespace.forwardRef(dN);var jg=classVarianceAuthority.cva("absolute inset-0 z-50 flex items-center justify-center transition-opacity",{variants:{variant:{solid:"bg-background",soft:"bg-background/80 backdrop-blur-sm",ghost:"bg-background/50"},visible:{true:"opacity-100 pointer-events-auto",false:"opacity-0 pointer-events-none"}},defaultVariants:{variant:"soft",visible:true}}),gN={sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8"},Wg=___namespace.forwardRef(({className:e,variant:t,loading:r=true,size:a="md",spinner:n,text:o,children:s,...l},c)=>jsxRuntime.jsxs("div",{ref:c,className:i("relative",e),...l,children:[s,jsxRuntime.jsx("div",{className:i(jg({variant:t,visible:r})),"aria-hidden":!r,children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2",children:[n||jsxRuntime.jsx(lucideReact.Loader2,{className:i(gN[a],"animate-spin text-primary")}),o&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:o})]})})]}));Wg.displayName="LoadingOverlay";var Yg=classVarianceAuthority.cva("fixed top-0 left-0 z-[9999] h-0.5 transition-all duration-200 ease-out",{variants:{color:{primary:"bg-primary",secondary:"bg-secondary",success:"bg-success",warning:"bg-warning",danger:"bg-danger",info:"bg-info"}},defaultVariants:{color:"primary"}}),Ug=___namespace.forwardRef(({className:e,color:t,isLoading:r=false,progress:a,showSpinner:n=false,...o},s)=>{let[l,c]=___namespace.useState(0),[d,m]=___namespace.useState(false),u=___namespace.useRef(null);return ___namespace.useEffect(()=>{if(a!==void 0){c(a),m(a>0&&a<100);return}return r?(m(true),c(10),u.current=setInterval(()=>{c(p=>{if(p>=90)return p;let f=Math.random()*10;return Math.min(p+f,90)});},500)):l>0&&(c(100),setTimeout(()=>{m(false),c(0);},200)),()=>{u.current&&clearInterval(u.current);}},[r,a]),!d&&a===void 0||a!==void 0&&(a<=0||a>=100)?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{ref:s,className:i(Yg({color:t,className:e})),style:{width:`${l}%`},role:"progressbar","aria-valuenow":l,"aria-valuemin":0,"aria-valuemax":100,...o,children:jsxRuntime.jsx("div",{className:"absolute right-0 h-full w-24 -translate-y-1 rotate-3 bg-inherit opacity-50 blur-sm"})}),n&&d&&jsxRuntime.jsx("div",{className:"fixed top-4 right-4 z-[9999]",children:jsxRuntime.jsx("div",{className:i("h-4 w-4 animate-spin rounded-full border-2 border-transparent",t==="primary"&&"border-t-primary",t==="secondary"&&"border-t-secondary",t==="success"&&"border-t-success",t==="warning"&&"border-t-warning",t==="danger"&&"border-t-danger",t==="info"&&"border-t-info")})})]})});Ug.displayName="NProgress";var Jg=classVarianceAuthority.cva("flex items-center justify-center",{variants:{variant:{spinner:"",dots:"",pulse:"",skeleton:""},size:{sm:"gap-1",md:"gap-2",lg:"gap-3"},fullScreen:{true:"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm",false:""}},defaultVariants:{variant:"spinner",size:"md",fullScreen:false}}),Xg={sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8"},RN={sm:"h-1.5 w-1.5",md:"h-2 w-2",lg:"h-3 w-3"},Qg=___namespace.forwardRef(({className:e,variant:t="spinner",size:r="md",fullScreen:a,text:n,color:o="primary",...s},l)=>{let c={primary:"text-primary",secondary:"text-secondary",muted:"text-muted-foreground"}[o],d=()=>{switch(t){case "dots":return jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:[0,1,2].map(m=>jsxRuntime.jsx("div",{className:i(RN[r||"md"],"animate-bounce rounded-full bg-current",c),style:{animationDelay:`${m*.15}s`}},m))});case "pulse":return jsxRuntime.jsx("div",{className:i(Xg[r||"md"],"animate-pulse rounded-full bg-current",c)});case "skeleton":return jsxRuntime.jsxs("div",{className:"w-full space-y-2",children:[jsxRuntime.jsx("div",{className:"h-4 w-3/4 animate-pulse rounded bg-muted"}),jsxRuntime.jsx("div",{className:"h-4 w-1/2 animate-pulse rounded bg-muted"}),jsxRuntime.jsx("div",{className:"h-4 w-5/6 animate-pulse rounded bg-muted"})]});default:return jsxRuntime.jsx(lucideReact.Loader2,{className:i(Xg[r||"md"],"animate-spin",c)})}};return jsxRuntime.jsx("div",{ref:l,className:i(Jg({variant:t,size:r,fullScreen:a,className:e})),role:"status","aria-label":n||"Loading",...s,children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2",children:[d(),n&&jsxRuntime.jsx("span",{className:i("text-sm",c),children:n})]})})});Qg.displayName="Loading";var vl=class extends ___namespace.Component{constructor(t){super(t),this.state={hasError:false,error:null};}static getDerivedStateFromError(t){return {hasError:true,error:t}}componentDidCatch(t,r){this.props.onError?.(t,r);}componentDidUpdate(t){this.state.hasError&&this.props.resetKeys&&this.props.resetKeys.some((a,n)=>a!==t.resetKeys?.[n])&&this.reset();}reset=()=>{this.props.onReset?.(),this.setState({hasError:false,error:null});};render(){return this.state.hasError?this.props.fallback?this.props.fallback:jsxRuntime.jsx(hl,{error:this.state.error,onReset:this.reset}):this.props.children}},hl=___namespace.forwardRef(({error:e,onReset:t,className:r},a)=>jsxRuntime.jsxs("div",{ref:a,className:i("flex min-h-[200px] flex-col items-center justify-center gap-4 rounded-lg border border-danger/20 bg-danger/5 p-6 text-center",r),role:"alert",children:[jsxRuntime.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-danger/10",children:jsxRuntime.jsx(lucideReact.AlertTriangle,{className:"h-6 w-6 text-danger"})}),jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx("h3",{className:"text-lg font-semibold text-foreground",children:"Something went wrong"}),e&&jsxRuntime.jsx("p",{className:"text-sm text-muted-foreground max-w-md",children:e.message||"An unexpected error occurred"})]}),t&&jsxRuntime.jsxs("button",{onClick:t,className:"inline-flex items-center gap-2 rounded-md bg-danger px-4 py-2 text-sm font-medium text-danger-foreground hover:bg-danger/90 transition-colors",children:[jsxRuntime.jsx(lucideReact.RefreshCw,{className:"h-4 w-4"}),"Try again"]})]}));hl.displayName="DefaultErrorFallback";var NN=vl;var tb=___namespace.forwardRef(({value:e,defaultValue:t,onValueChange:r,placeholder:a="Pick a date range",dateFormat:n="LLL dd, y",disabled:o=false,minDate:s,maxDate:l,numberOfMonths:c=2,className:d,align:m="start"},u)=>{let[p,f]=___namespace.useState(false),[b,x]=___namespace.useState(t),g=e!==void 0,v=g?e:b,R=h=>{g||x(h),r?.(h);},w=h=>{if(!h)return a;let{from:C,to:y}=h;return C&&y?`${dateFns.format(C,n)} - ${dateFns.format(y,n)}`:C?dateFns.format(C,n):a};return jsxRuntime.jsxs(et,{open:p,onOpenChange:f,children:[jsxRuntime.jsx(gt,{asChild:true,children:jsxRuntime.jsxs(Z,{ref:u,variant:"bordered",disabled:o,className:i("w-full justify-start text-left font-normal",!v?.from&&"text-muted-foreground",d),children:[jsxRuntime.jsx(lucideReact.Calendar,{className:"mr-2 h-4 w-4"}),w(v)]})}),jsxRuntime.jsx(tt,{className:"w-auto p-0",align:m,children:jsxRuntime.jsx(on,{mode:"range",defaultMonth:v?.from,selected:v,onSelect:R,numberOfMonths:c,disabled:h=>!!(s&&h<s||l&&h>l),initialFocus:true})})]})});tb.displayName="DateRangePicker";var hn=e=>String(e).padStart(2,"0"),rb=___namespace.forwardRef(({value:e,onValueChange:t,placeholder:r="Pick a time",use24Hour:a=true,minuteStep:n=1,disabled:o=false,className:s},l)=>{let[c,d]=___namespace.useState(false),m=a?Array.from({length:24},(w,h)=>h):Array.from({length:12},(w,h)=>h+1),u=Array.from({length:Math.floor(60/n)},(w,h)=>h*n),p=w=>{if(!w)return r;if(a)return `${hn(w.hours)}:${hn(w.minutes)}`;let h=w.hours%12||12,C=w.hours>=12?"PM":"AM";return `${hn(h)}:${hn(w.minutes)} ${C}`},f=w=>{let h=e?.minutes??0,C=w;if(!a&&e){let y=e.hours>=12;y&&w!==12?C=w+12:!y&&w===12&&(C=0);}t?.({hours:C,minutes:h});},b=w=>{let h=e?.hours??0;t?.({hours:h,minutes:w});},x=w=>{if(!e)return;let h=e.hours;w==="AM"&&e.hours>=12?h=e.hours-12:w==="PM"&&e.hours<12&&(h=e.hours+12),t?.({hours:h,minutes:e.minutes});},g=()=>{let w=new Date;t?.({hours:w.getHours(),minutes:w.getMinutes()});},v=e?e.hours>=12?"PM":"AM":void 0,R=e?a?e.hours:e.hours%12||12:void 0;return jsxRuntime.jsxs(et,{open:c,onOpenChange:d,children:[jsxRuntime.jsx(gt,{asChild:true,children:jsxRuntime.jsxs(Z,{ref:l,variant:"bordered",disabled:o,className:i("w-full justify-start text-left font-normal",!e&&"text-muted-foreground",s),children:[jsxRuntime.jsx(lucideReact.Clock,{className:"mr-2 h-4 w-4"}),p(e)]})}),jsxRuntime.jsxs(tt,{className:"w-auto p-0",align:"start",children:[jsxRuntime.jsxs("div",{className:"flex",children:[jsxRuntime.jsxs("div",{className:"flex flex-col",children:[jsxRuntime.jsx("div",{className:"border-b px-3 py-2 text-center text-xs font-medium text-muted-foreground",children:"Hour"}),jsxRuntime.jsx(_e,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"flex flex-col p-1",children:m.map(w=>jsxRuntime.jsx(Z,{variant:R===w?"solid":"ghost",size:"sm",className:"h-8 w-12 justify-center",onClick:()=>f(w),children:hn(w)},w))})})]}),jsxRuntime.jsxs("div",{className:"flex flex-col border-l",children:[jsxRuntime.jsx("div",{className:"border-b px-3 py-2 text-center text-xs font-medium text-muted-foreground",children:"Min"}),jsxRuntime.jsx(_e,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"flex flex-col p-1",children:u.map(w=>jsxRuntime.jsx(Z,{variant:e?.minutes===w?"solid":"ghost",size:"sm",className:"h-8 w-12 justify-center",onClick:()=>b(w),children:hn(w)},w))})})]}),!a&&jsxRuntime.jsxs("div",{className:"flex flex-col border-l",children:[jsxRuntime.jsx("div",{className:"border-b px-3 py-2 text-center text-xs font-medium text-muted-foreground",children:"\xA0"}),jsxRuntime.jsxs("div",{className:"flex flex-col gap-1 p-1",children:[jsxRuntime.jsx(Z,{variant:v==="AM"?"solid":"ghost",size:"sm",className:"h-8 w-12",onClick:()=>x("AM"),children:"AM"}),jsxRuntime.jsx(Z,{variant:v==="PM"?"solid":"ghost",size:"sm",className:"h-8 w-12",onClick:()=>x("PM"),children:"PM"})]})]})]}),jsxRuntime.jsxs("div",{className:"flex justify-between border-t p-2",children:[jsxRuntime.jsx(Z,{variant:"ghost",size:"sm",onClick:g,children:"Now"}),jsxRuntime.jsx(Z,{size:"sm",onClick:()=>d(false),children:"Done"})]})]})]})});rb.displayName="TimePicker";var ab=classVarianceAuthority.cva("overflow-auto",{variants:{variant:{default:"",bordered:"border rounded-lg",cards:""}},defaultVariants:{variant:"default"}});function kN({className:e,variant:t,items:r,itemHeight:a,height:n,overscan:o=3,renderItem:s,getItemKey:l,gap:c=0,onScrollChange:d,...m},u){let p=___namespace.useRef(null),[f,b]=___namespace.useState(0);___namespace.useImperativeHandle(u,()=>p.current);let x=r.length*(a+c)-c,g=a+c,v=Math.max(0,Math.floor(f/g)-o),R=Math.ceil(n/g)+2*o,w=Math.min(r.length-1,v+R),h=y=>{let T=y.currentTarget.scrollTop;b(T),d?.(T);},C=___namespace.useMemo(()=>{let y=[];for(let T=v;T<=w;T++)r[T]!==void 0&&y.push({item:r[T],index:T,style:{position:"absolute",top:T*g,left:0,right:0,height:a}});return y},[r,v,w,g,a]);return jsxRuntime.jsx("div",{ref:p,className:i(ab({variant:t,className:e})),style:{height:n,position:"relative"},onScroll:h,...m,children:jsxRuntime.jsx("div",{style:{height:x,position:"relative"},children:C.map(({item:y,index:T,style:N})=>jsxRuntime.jsx("div",{style:N,children:s(y,T)},l?l(y,T):T))})})}var EN=___namespace.forwardRef(kN);var ob=classVarianceAuthority.cva("",{variants:{variant:{default:"",bordered:"border rounded-lg overflow-hidden"}},defaultVariants:{variant:"default"}}),Rl=classVarianceAuthority.cva("flex items-center justify-center py-4",{variants:{size:{sm:"py-2",md:"py-4",lg:"py-6"}},defaultVariants:{size:"md"}}),sb=___namespace.forwardRef(({className:e,variant:t,size:r,children:a,onLoadMore:n,hasMore:o,isLoading:s=false,loader:l,threshold:c=100,rootMargin:d,useWindow:m=false,endMessage:u,...p},f)=>{let b=___namespace.useRef(null),x=___namespace.useRef(null),g=___namespace.useRef(false);___namespace.useImperativeHandle(f,()=>b.current),___namespace.useEffect(()=>{let R=x.current;if(!R)return;let w=new IntersectionObserver(h=>{let[C]=h;C.isIntersecting&&o&&!s&&!g.current&&(g.current=true,Promise.resolve(n()).finally(()=>{g.current=false;}));},{root:m?null:b.current,rootMargin:d||`${c}px`,threshold:0});return w.observe(R),()=>{w.disconnect();}},[o,s,n,c,d,m]);let v=jsxRuntime.jsx("div",{className:i(Rl({size:r})),children:jsxRuntime.jsx(lucideReact.Loader2,{className:"h-6 w-6 animate-spin text-muted-foreground"})});return jsxRuntime.jsxs("div",{ref:b,className:i(ob({variant:t,className:e})),...p,children:[a,jsxRuntime.jsx("div",{ref:x,className:"h-px w-full"}),s&&(l||v),!o&&!s&&u&&jsxRuntime.jsx("div",{className:i(Rl({size:r}),"text-muted-foreground text-sm"),children:u})]})});sb.displayName="InfiniteScroll";var ro=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("span",{ref:r,className:i("absolute h-px w-px p-0 -m-px overflow-hidden whitespace-nowrap border-0","[clip:rect(0,0,0,0)]",e),...t}));ro.displayName="VisuallyHidden";var lb={opaque:"bg-black/80",blur:"bg-black/50 backdrop-blur-sm",transparent:"bg-transparent"},HN={auto:"top-[50%] translate-y-[-50%]",center:"top-[50%] translate-y-[-50%]",top:"top-4 translate-y-0",bottom:"top-auto bottom-4 translate-y-0","top-center":"top-[20%] translate-y-0","bottom-center":"top-auto bottom-[20%] translate-y-0"},cb=classVarianceAuthority.cva("fixed inset-0 z-50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"),wl=classVarianceAuthority.cva("fixed left-[50%] z-50 grid translate-x-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:rounded-lg",{variants:{size:{xs:"w-full max-w-xs",sm:"w-full max-w-sm",md:"w-full max-w-md",lg:"w-full max-w-lg",xl:"w-full max-w-xl","2xl":"w-full max-w-2xl","3xl":"w-full max-w-3xl","4xl":"w-full max-w-4xl","5xl":"w-full max-w-5xl",full:"w-[calc(100vw-2rem)] h-[calc(100vh-2rem)] max-w-none"}},defaultVariants:{size:"md"}}),Ps=___namespace.createContext(null),Ia=()=>{let e=___namespace.useContext(Ps);if(!e)throw new Error("Modal components must be used within a Modal");return e},ub=___namespace.forwardRef(({open:e,onOpenChange:t,trigger:r,title:a="Modal",children:n,hideCloseButton:o=false,isDismissable:s=true,isKeyboardDismissDisabled:l=false,backdrop:c="opaque",placement:d="center",scrollBehavior:m="inside",size:u,className:p},f)=>{let[b,x]=___namespace.useState(false),g=e!==void 0,v=g?e:b,[R,w]=___namespace.useState(false),h=___namespace.useRef(null),C=___namespace.useId(),y=___namespace.useId();___namespace.useEffect(()=>{w(true);},[]);let T=___namespace.useCallback(P=>{g||x(P),t?.(P);},[g,t]);___namespace.useEffect(()=>(v&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="";}),[v]),___namespace.useEffect(()=>{if(!v||l)return;let P=k=>{k.key==="Escape"&&T(false);};return document.addEventListener("keydown",P),()=>document.removeEventListener("keydown",P)},[v,l,T]);let N=P=>{s&&P.target===P.currentTarget&&T(false);},E=r?___namespace.isValidElement(r)?___namespace.cloneElement(r,{onClick:P=>{r.props.onClick?.(P),T(true);}}):jsxRuntime.jsx("button",{type:"button",onClick:()=>T(true),children:r}):null,M=()=>!R||!v?null:m==="outside"?$o__namespace.createPortal(jsxRuntime.jsx("div",{"data-state":v?"open":"closed",className:i(cb(),lb[c],"overflow-y-auto flex items-start justify-center py-4"),onClick:N,children:jsxRuntime.jsxs("div",{ref:P=>{h.current=P,typeof f=="function"?f(P):f&&(f.current=P);},role:"dialog","aria-modal":"true","aria-labelledby":C,"aria-describedby":y,"data-state":v?"open":"closed",className:i("relative z-50 grid gap-4 border bg-background p-6 shadow-lg sm:rounded-lg dark:border-0",u==="xs"&&"w-full max-w-xs",u==="sm"&&"w-full max-w-sm",u==="md"&&"w-full max-w-md",u==="lg"&&"w-full max-w-lg",u==="xl"&&"w-full max-w-xl",u==="2xl"&&"w-full max-w-2xl",u==="3xl"&&"w-full max-w-3xl",u==="4xl"&&"w-full max-w-4xl",u==="5xl"&&"w-full max-w-5xl",u==="full"&&"w-[calc(100vw-2rem)] min-h-[calc(100vh-2rem)]",!u&&"w-full max-w-md",p),children:[jsxRuntime.jsx(ro,{children:jsxRuntime.jsx("h2",{id:C,children:a})}),n,!o&&jsxRuntime.jsx(vr,{variant:"light",className:"absolute right-4 top-4 z-10",onClick:()=>T(false)})]})}),document.body):$o__namespace.createPortal(jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{"data-state":v?"open":"closed",className:i(cb(),lb[c]),onClick:N,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:P=>{h.current=P,typeof f=="function"?f(P):f&&(f.current=P);},role:"dialog","aria-modal":"true","aria-labelledby":C,"aria-describedby":y,"data-state":v?"open":"closed",className:i(wl({size:u}),HN[d],"dark:border-0 max-h-[calc(100vh-2rem)] !flex !flex-col overflow-hidden gap-4",p),children:[jsxRuntime.jsx(ro,{children:jsxRuntime.jsx("h2",{id:C,children:a})}),n,!o&&jsxRuntime.jsx(vr,{variant:"light",className:"absolute right-4 top-4 z-10",onClick:()=>T(false)})]})]}),document.body);return jsxRuntime.jsxs(Ps.Provider,{value:{open:v,onOpenChange:T,scrollBehavior:m,titleId:C,descriptionId:y},children:[E,M()]})});ub.displayName="Modal";var mb=({children:e,open:t,defaultOpen:r=false,onOpenChange:a,scrollBehavior:n="inside"})=>{let[o,s]=___namespace.useState(r),l=t!==void 0,c=l?t:o,d=___namespace.useId(),m=___namespace.useId(),u=___namespace.useCallback(p=>{l||s(p),a?.(p);},[l,a]);return jsxRuntime.jsx(Ps.Provider,{value:{open:c,onOpenChange:u,scrollBehavior:n,titleId:d,descriptionId:m},children:e})};mb.displayName="ModalRoot";var pb=___namespace.forwardRef(({asChild:e,children:t,onClick:r,...a},n)=>{let{onOpenChange:o}=Ia(),s=l=>{r?.(l),o(true);};return e&&___namespace.isValidElement(t)?___namespace.cloneElement(t,{ref:n,onClick:l=>{t.props.onClick?.(l),o(true);},...a}):jsxRuntime.jsx("button",{ref:n,type:"button",onClick:s,...a,children:t})});pb.displayName="ModalTrigger";var Cl=({children:e,container:t})=>{let[r,a]=___namespace.useState(false);return ___namespace.useEffect(()=>{a(true);},[]),r?$o__namespace.createPortal(e,t||document.body):null};Cl.displayName="ModalPortal";var Nl=___namespace.forwardRef(({className:e,...t},r)=>{let{open:a,onOpenChange:n}=Ia();return a?jsxRuntime.jsx("div",{ref:r,"data-state":a?"open":"closed",className:i("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),onClick:()=>n(false),"aria-hidden":"true",...t}):null});Nl.displayName="ModalOverlay";var Ml=___namespace.forwardRef(({asChild:e,children:t,onClick:r,...a},n)=>{let{onOpenChange:o}=Ia(),s=l=>{r?.(l),o(false);};return e&&___namespace.isValidElement(t)?___namespace.cloneElement(t,{ref:n,onClick:l=>{t.props.onClick?.(l),o(false);},...a}):jsxRuntime.jsx("button",{ref:n,type:"button",onClick:s,...a,children:t})});Ml.displayName="ModalClose";var fb=___namespace.forwardRef(({className:e,children:t,size:r,showCloseButton:a=true,onEscapeKeyDown:n,onInteractOutside:o,...s},l)=>{let{open:c,onOpenChange:d,titleId:m,descriptionId:u}=Ia(),[p,f]=___namespace.useState(false);return ___namespace.useEffect(()=>{f(true);},[]),___namespace.useEffect(()=>(c&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="";}),[c]),___namespace.useEffect(()=>{if(!c)return;let b=x=>{x.key==="Escape"&&(n?.(),d(false));};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[c,d,n]),!p||!c?null:jsxRuntime.jsxs(Cl,{children:[jsxRuntime.jsx(Nl,{}),jsxRuntime.jsxs("div",{ref:l,role:"dialog","aria-modal":"true","aria-labelledby":m,"aria-describedby":u,"data-state":c?"open":"closed",className:i(wl({size:r}),"top-[50%] translate-y-[-50%]",e),...s,children:[t,a&&jsxRuntime.jsx(Ml,{asChild:true,children:jsxRuntime.jsx(vr,{variant:"light",className:"absolute right-4 top-4 z-10"})})]})]})});fb.displayName="ModalContent";var gb=({className:e,...t})=>jsxRuntime.jsx("div",{className:i("flex-shrink-0 flex flex-col space-y-1.5 text-center sm:text-left",e),...t});gb.displayName="ModalHeader";var bb=({className:e,children:t})=>(___namespace.useContext(Ps)?.scrollBehavior??"inside")==="inside"?jsxRuntime.jsx(_e,{className:i("flex-1 min-h-0 -mx-6 px-6",e),children:t}):jsxRuntime.jsx("div",{className:i(e),children:t});bb.displayName="ModalBody";var vb=({className:e,children:t,...r})=>{let{onOpenChange:a}=Ia();return jsxRuntime.jsx("div",{className:i("flex-shrink-0 flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...r,children:___namespace.Children.map(t,n=>___namespace.isValidElement(n)?___namespace.cloneElement(n,{onClick:o=>{n.props.onClick?.(o),a(false);}}):n)})};vb.displayName="ModalFooter";var hb=___namespace.forwardRef(({className:e,...t},r)=>{let{titleId:a}=Ia();return jsxRuntime.jsx("h2",{ref:r,id:a,className:i("text-lg font-semibold leading-none tracking-tight",e),...t})});hb.displayName="ModalTitle";var xb=___namespace.forwardRef(({className:e,...t},r)=>{let{descriptionId:a}=Ia();return jsxRuntime.jsx("p",{ref:r,id:a,className:i("text-sm text-muted-foreground",e),...t})});xb.displayName="ModalDescription";var wb=classVarianceAuthority.cva("h-10 w-10 rounded-full p-2",{variants:{variant:{default:"bg-muted text-foreground",danger:"bg-danger/10 text-danger",warning:"bg-warning/10 text-warning",success:"bg-success/10 text-success",info:"bg-info/10 text-info"}},defaultVariants:{variant:"default"}}),FN=classVarianceAuthority.cva("",{variants:{variant:{default:"",danger:"bg-danger text-danger-foreground hover:bg-danger/90",warning:"bg-warning text-warning-foreground hover:bg-warning/90",success:"bg-success text-success-foreground hover:bg-success/90",info:"bg-info text-info-foreground hover:bg-info/90"}},defaultVariants:{variant:"default"}}),KN=___namespace.createContext(null),GN={default:lucideReact.HelpCircle,danger:lucideReact.XCircle,warning:lucideReact.AlertTriangle,success:lucideReact.CheckCircle,info:lucideReact.Info},Tl=___namespace.forwardRef(({open:e,onOpenChange:t,trigger:r,title:a,description:n,confirmText:o="Confirm",cancelText:s="Cancel",onConfirm:l,onCancel:c,showIcon:d=true,icon:m,variant:u="default",loading:p=false,disabled:f=false,className:b},x)=>{let[g,v]=___namespace.useState(false),[R,w]=___namespace.useState(false),[h,C]=___namespace.useState(false),y=e!==void 0,T=y?e:g,N=GN[u||"default"],E=___namespace.useId(),M=___namespace.useId();___namespace.useEffect(()=>{C(true);},[]);let P=___namespace.useCallback(V=>{y||v(V),t?.(V);},[y,t]);___namespace.useEffect(()=>(T&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="";}),[T]);let k=async()=>{if(l){let V=l();if(V instanceof Promise){w(true);try{await V;}finally{w(false);}}}P(false);},L=()=>{c?.(),P(false);},H=p||R,S=r?___namespace.isValidElement(r)?___namespace.cloneElement(r,{onClick:V=>{r.props.onClick?.(V),P(true);}}):jsxRuntime.jsx("button",{type:"button",onClick:()=>P(true),children:r}):null,D=()=>!h||!T?null:$o__namespace.createPortal(jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{"data-state":T?"open":"closed",className:"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","aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:x,role:"alertdialog","aria-modal":"true","aria-labelledby":E,"aria-describedby":n?M:void 0,"data-state":T?"open":"closed",className:i("fixed left-[50%] top-[50%] z-50 grid w-full max-w-md 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",b),children:[jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-4 sm:flex-row sm:items-start",children:[d&&jsxRuntime.jsx("div",{className:i(wb({variant:u})),children:m||jsxRuntime.jsx(N,{className:"h-6 w-6"})}),jsxRuntime.jsxs("div",{className:"flex flex-col space-y-2 text-center sm:text-left",children:[jsxRuntime.jsx("h2",{id:E,className:"text-lg font-semibold",children:a}),n&&jsxRuntime.jsx("p",{id:M,className:"text-sm text-muted-foreground",children:n})]})]}),jsxRuntime.jsxs("div",{className:"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",children:[jsxRuntime.jsx("button",{type:"button",className:i(fr({variant:"bordered"})),onClick:L,disabled:H,children:s}),jsxRuntime.jsx("button",{type:"button",className:i(fr(),FN({variant:u}),H&&"opacity-50 cursor-not-allowed"),onClick:k,disabled:f||H,children:H?jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("svg",{className:"h-4 w-4 animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Loading..."]}):o})]})]})]}),document.body);return jsxRuntime.jsxs(KN.Provider,{value:{open:T,onOpenChange:P,titleId:E,descriptionId:M},children:[S,D()]})});Tl.displayName="ConfirmDialog";function $N(){let[e,t]=___namespace.useState({open:false,options:null,resolve:null}),r=___namespace.useCallback(l=>new Promise(c=>{t({open:true,options:l,resolve:c});}),[]),a=___namespace.useCallback(()=>{e.resolve?.(true),t({open:false,options:null,resolve:null});},[e.resolve]),n=___namespace.useCallback(()=>{e.resolve?.(false),t({open:false,options:null,resolve:null});},[e.resolve]),o=___namespace.useCallback(l=>{l||(e.resolve?.(false),t({open:false,options:null,resolve:null}));},[e.resolve]),s=___namespace.useMemo(()=>e.options?jsxRuntime.jsx(Tl,{open:e.open,onOpenChange:o,title:e.options.title,description:e.options.description,confirmText:e.options.confirmText,cancelText:e.options.cancelText,variant:e.options.variant,onConfirm:a,onCancel:n}):null,[e,a,n,o]);return {confirm:r,ConfirmDialog:s}}var eM=e=>e.map(t=>typeof t=="string"?{src:t}:t),Pl=___namespace.forwardRef(({images:e,open:t,onOpenChange:r,initialIndex:a=0,onIndexChange:n,trigger:o,showThumbnails:s=true,showZoom:l=true,showRotate:c=true,showDownload:d=true,showFullscreen:m=true,showNavigation:u=true,showCounter:p=true,closeOnBackdropClick:f=true,className:b},x)=>{let g=___namespace.useMemo(()=>eM(e),[e]),[v,R]=___namespace.useState(a),[w,h]=___namespace.useState(1),[C,y]=___namespace.useState(0),[T,N]=___namespace.useState(false),[E,M]=___namespace.useState(false),[P,k]=___namespace.useState({x:0,y:0}),[L,H]=___namespace.useState({x:0,y:0}),[S,D]=___namespace.useState(false),V=___namespace.useRef(null),z=g[v];___namespace.useEffect(()=>{D(true);},[]),___namespace.useEffect(()=>{R(a);},[a]),___namespace.useEffect(()=>{n?.(v);},[v,n]),___namespace.useEffect(()=>{h(1),y(0),k({x:0,y:0});},[v]),___namespace.useEffect(()=>(t&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="";}),[t]);let G=___namespace.useCallback(()=>{R(re=>re>0?re-1:g.length-1);},[g.length]),I=___namespace.useCallback(()=>{R(re=>re<g.length-1?re+1:0);},[g.length]),F=()=>{h(re=>Math.min(re+.5,4));},O=()=>{h(re=>{let Ue=Math.max(re-.5,.5);return Ue===1&&k({x:0,y:0}),Ue});},ee=()=>{y(re=>(re+90)%360);},ae=async()=>{if(z)try{let Ue=await(await fetch(z.src)).blob(),Ut=URL.createObjectURL(Ue),St=document.createElement("a");St.href=Ut,St.download=z.alt||`image-${v+1}`,document.body.appendChild(St),St.click(),document.body.removeChild(St),URL.revokeObjectURL(Ut);}catch{window.open(z.src,"_blank");}},K=async()=>{if(V.current)if(T)try{await document.exitFullscreen(),N(!1);}catch{}else try{await V.current.requestFullscreen(),N(!0);}catch{}},B=re=>{w>1&&(M(true),H({x:re.clientX-P.x,y:re.clientY-P.y}));},j=re=>{E&&w>1&&k({x:re.clientX-L.x,y:re.clientY-L.y});},A=()=>{M(false);},W=()=>{r?.(false);},Y=re=>{f&&re.target===re.currentTarget&&W();},Se=___namespace.useCallback(re=>{switch(re.key){case "ArrowLeft":G();break;case "ArrowRight":I();break;case "Escape":r?.(false);break;case "+":case "=":F();break;case "-":O();break}},[G,I,r]);if(___namespace.useEffect(()=>{if(t)return window.addEventListener("keydown",Se),()=>window.removeEventListener("keydown",Se)},[t,Se]),___namespace.useEffect(()=>{let re=()=>{N(!!document.fullscreenElement);};return document.addEventListener("fullscreenchange",re),()=>document.removeEventListener("fullscreenchange",re)},[]),g.length===0)return null;let pe=o?___namespace.isValidElement(o)?___namespace.cloneElement(o,{onClick:re=>{o.props.onClick?.(re),r?.(true);}}):jsxRuntime.jsx("button",{type:"button",onClick:()=>r?.(true),children:o}):null;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[pe,!S||!t?null:$o__namespace.createPortal(jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"fixed inset-0 z-50 bg-black/90 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-state":t?"open":"closed",onClick:Y}),jsxRuntime.jsxs("div",{ref:x,className:i("fixed inset-0 z-50 flex flex-col outline-none",b),children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between p-4 text-white",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[p&&g.length>1&&jsxRuntime.jsxs("span",{className:"text-sm",children:[v+1," / ",g.length]}),z?.title&&jsxRuntime.jsx("span",{className:"ml-4 text-sm font-medium",children:z.title})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[l&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:O,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:"Zoom out",children:jsxRuntime.jsx(lucideReact.ZoomOut,{className:"h-5 w-5"})}),jsxRuntime.jsxs("span",{className:"min-w-[3rem] text-center text-sm",children:[Math.round(w*100),"%"]}),jsxRuntime.jsx("button",{onClick:F,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:"Zoom in",children:jsxRuntime.jsx(lucideReact.ZoomIn,{className:"h-5 w-5"})})]}),c&&jsxRuntime.jsx("button",{onClick:ee,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:"Rotate",children:jsxRuntime.jsx(lucideReact.RotateCw,{className:"h-5 w-5"})}),d&&jsxRuntime.jsx("button",{onClick:ae,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:"Download",children:jsxRuntime.jsx(lucideReact.Download,{className:"h-5 w-5"})}),m&&jsxRuntime.jsx("button",{onClick:K,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:T?"Exit fullscreen":"Fullscreen",children:T?jsxRuntime.jsx(lucideReact.Minimize2,{className:"h-5 w-5"}):jsxRuntime.jsx(lucideReact.Maximize2,{className:"h-5 w-5"})}),jsxRuntime.jsxs("button",{onClick:W,className:"rounded-full p-2 hover:bg-white/10 transition-colors ml-2",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-5 w-5"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]})]}),jsxRuntime.jsxs("div",{ref:V,className:"relative flex-1 flex items-center justify-center overflow-hidden",onMouseDown:B,onMouseMove:j,onMouseUp:A,onMouseLeave:A,children:[u&&g.length>1&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:G,className:"absolute left-4 z-10 rounded-full bg-black/50 p-3 text-white hover:bg-black/70 transition-colors",children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-6 w-6"})}),jsxRuntime.jsx("button",{onClick:I,className:"absolute right-4 z-10 rounded-full bg-black/50 p-3 text-white hover:bg-black/70 transition-colors",children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-6 w-6"})})]}),jsxRuntime.jsx("img",{src:z?.src,alt:z?.alt||"",className:i("max-h-full max-w-full object-contain transition-transform duration-200",E?"cursor-grabbing":w>1?"cursor-grab":""),style:{transform:`translate(${P.x}px, ${P.y}px) scale(${w}) rotate(${C}deg)`},draggable:false})]}),z?.description&&jsxRuntime.jsx("div",{className:"p-4 text-center text-white text-sm",children:z.description}),s&&g.length>1&&jsxRuntime.jsx("div",{className:"flex justify-center gap-2 p-4 overflow-x-auto",children:g.map((re,Ue)=>jsxRuntime.jsx("button",{onClick:()=>R(Ue),className:i("h-16 w-16 flex-shrink-0 overflow-hidden rounded border-2 transition-all",v===Ue?"border-white opacity-100":"border-transparent opacity-50 hover:opacity-75"),children:jsxRuntime.jsx("img",{src:re.src,alt:re.alt||`Thumbnail ${Ue+1}`,className:"h-full w-full object-cover"})},Ue))})]})]}),document.body)]})});Pl.displayName="ImageViewer";var Nb=({children:e,images:t,index:r=0,className:a})=>{let[n,o]=___namespace.useState(false);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:()=>o(true),className:i("cursor-zoom-in",a),children:e}),jsxRuntime.jsx(Pl,{images:t,open:n,onOpenChange:o,initialIndex:r})]})};Nb.displayName="ImageViewerTrigger";var Tb=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{solid:"bg-primary text-primary-foreground hover:bg-primary/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground",soft:"bg-primary/10 text-primary hover:bg-primary/20",surface:"bg-muted hover:bg-muted/80"},size:{sm:"h-7 w-7",md:"h-9 w-9",lg:"h-11 w-11"},color:{default:"",primary:"",secondary:"",success:"",warning:"",danger:""},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},compoundVariants:[{variant:"solid",color:"primary",className:"bg-primary text-primary-foreground hover:bg-primary/90"},{variant:"solid",color:"secondary",className:"bg-secondary text-secondary-foreground hover:bg-secondary/90"},{variant:"solid",color:"success",className:"bg-success text-success-foreground hover:bg-success/90"},{variant:"solid",color:"warning",className:"bg-warning text-warning-foreground hover:bg-warning/90"},{variant:"solid",color:"danger",className:"bg-danger text-danger-foreground hover:bg-danger/90"},{variant:"soft",color:"primary",className:"bg-primary/10 text-primary hover:bg-primary/20"},{variant:"soft",color:"secondary",className:"bg-secondary/10 text-secondary-foreground hover:bg-secondary/20"},{variant:"soft",color:"success",className:"bg-success/10 text-success hover:bg-success/20"},{variant:"soft",color:"warning",className:"bg-warning/10 text-warning hover:bg-warning/20"},{variant:"soft",color:"danger",className:"bg-danger/10 text-danger hover:bg-danger/20"},{variant:"outline",color:"primary",className:"border-primary text-primary hover:bg-primary/10"},{variant:"outline",color:"success",className:"border-success text-success hover:bg-success/10"},{variant:"outline",color:"warning",className:"border-warning text-warning hover:bg-warning/10"},{variant:"outline",color:"danger",className:"border-danger text-danger hover:bg-danger/10"}],defaultVariants:{variant:"ghost",size:"md",color:"default",radius:"md"}}),Pb=___namespace.forwardRef(({className:e,variant:t,size:r,color:a,radius:n,loading:o,disabled:s,children:l,...c},d)=>jsxRuntime.jsx("button",{ref:d,type:"button",className:i(Tb({variant:t,size:r,color:a,radius:n}),e),disabled:s||o,...c,children:o?jsxRuntime.jsxs("svg",{className:"animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",style:{width:"1em",height:"1em"},children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):l}));Pb.displayName="ActionIcon";var Lb=({children:e,container:t,disabled:r=false})=>{let[a,n]=___namespace.useState(false);if(___namespace.useEffect(()=>{n(true);},[]),r||!a)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:e});let o=null;return typeof t=="string"?o=document.querySelector(t):t instanceof Element?o=t:o=document.body,o?$o.createPortal(e,o):jsxRuntime.jsx(jsxRuntime.Fragment,{children:e})};Lb.displayName="Portal";var Db=classVarianceAuthority.cva("absolute rounded-full border-2 border-background",{variants:{color:{default:"bg-muted-foreground",primary:"bg-primary",secondary:"bg-secondary",success:"bg-success",warning:"bg-warning",danger:"bg-danger"},size:{sm:"h-2 w-2",md:"h-2.5 w-2.5",lg:"h-3 w-3"},position:{"top-right":"top-0 right-0 -translate-y-1/3 translate-x-1/3","top-left":"top-0 left-0 -translate-y-1/3 -translate-x-1/3","bottom-right":"bottom-0 right-0 translate-y-1/3 translate-x-1/3","bottom-left":"bottom-0 left-0 translate-y-1/3 -translate-x-1/3"},ping:{true:"",false:""}},defaultVariants:{color:"primary",size:"md",position:"top-right",ping:false}}),Sb=___namespace.forwardRef(({className:e,color:t,size:r,position:a,ping:n,content:o,show:s=true,offset:l,style:c,...d},m)=>{if(!s)return null;let u=o!=null;return jsxRuntime.jsxs("span",{ref:m,className:i(Db({color:t,size:u?void 0:r,position:a,ping:n}),u&&"flex h-auto w-auto min-w-[1.25rem] items-center justify-center px-1 py-0.5 text-[10px] font-medium text-white",e),style:{...c,...l!==void 0&&{transform:`translate(${a?.includes("right")?l:-l}px, ${a?.includes("top")?-l:l}px)`}},...d,children:[n&&jsxRuntime.jsx("span",{className:i("absolute inline-flex h-full w-full animate-ping rounded-full opacity-75",t==="default"&&"bg-muted-foreground",t==="primary"&&"bg-primary",t==="secondary"&&"bg-secondary",t==="success"&&"bg-success",t==="warning"&&"bg-warning",t==="danger"&&"bg-danger")}),o]})});Sb.displayName="Indicator";var Hb=___namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i("relative inline-flex",e),...r,children:t}));Hb.displayName="IndicatorWrapper";var Vb=classVarianceAuthority.cva("relative overflow-auto",{variants:{orientation:{vertical:"",horizontal:"",both:""},size:{sm:"",md:"",lg:""}},defaultVariants:{orientation:"vertical",size:"md"}}),Ab=___namespace.forwardRef(({className:e,orientation:t,size:r,hideScrollbar:a=false,shadowColor:n="rgba(0, 0, 0, 0.1)",children:o,...s},l)=>{let c=___namespace.useRef(null),[d,m]=___namespace.useState({top:false,bottom:false,left:false,right:false});___namespace.useImperativeHandle(l,()=>c.current);let u=___namespace.useCallback(()=>{let v=c.current;if(!v)return;let{scrollTop:R,scrollLeft:w,scrollHeight:h,scrollWidth:C,clientHeight:y,clientWidth:T}=v;m({top:R>0,bottom:R<h-y-1,left:w>0,right:w<C-T-1});},[]);___namespace.useEffect(()=>{let v=c.current;if(v)return u(),v.addEventListener("scroll",u),window.addEventListener("resize",u),()=>{v.removeEventListener("scroll",u),window.removeEventListener("resize",u);}},[u]);let f={sm:"20px",md:"40px",lg:"60px"}[r??"md"],b=t==="vertical"||t==="both",x=t==="horizontal"||t==="both",g={maskImage:[b&&d.top&&`linear-gradient(to bottom, transparent, black ${f})`,b&&d.bottom&&`linear-gradient(to top, transparent, black ${f})`,x&&d.left&&`linear-gradient(to right, transparent, black ${f})`,x&&d.right&&`linear-gradient(to left, transparent, black ${f})`].filter(Boolean).join(", ")||void 0,maskComposite:"intersect",WebkitMaskComposite:"source-in"};return jsxRuntime.jsx("div",{ref:c,className:i(Vb({orientation:t,size:r}),a&&"scrollbar-hide [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]",e),style:g,...s,children:o})});Ab.displayName="ScrollShadow";var zb=classVarianceAuthority.cva("inline-flex items-center justify-center font-mono font-medium",{variants:{variant:{default:"rounded border border-border bg-muted text-muted-foreground shadow-sm",outline:"rounded border border-border text-foreground",ghost:"text-muted-foreground"},size:{sm:"min-w-[1.25rem] px-1 py-0.5 text-[10px]",md:"min-w-[1.5rem] px-1.5 py-0.5 text-xs",lg:"min-w-[2rem] px-2 py-1 text-sm"}},defaultVariants:{variant:"default",size:"md"}}),cM={cmd:"\u2318",command:"\u2318",meta:"\u2318",ctrl:"\u2303",control:"\u2303",alt:"\u2325",option:"\u2325",shift:"\u21E7",enter:"\u21B5",return:"\u21B5",backspace:"\u232B",delete:"\u2326",escape:"\u238B",esc:"\u238B",tab:"\u21E5",space:"\u2423",up:"\u2191",down:"\u2193",left:"\u2190",right:"\u2192",pageup:"\u21DE",pagedown:"\u21DF",home:"\u2912",end:"\u2913",capslock:"\u21EA"},dM={cmd:"meta",command:"meta",ctrl:"control",alt:"alt",option:"alt",shift:"shift",enter:"enter",return:"enter",backspace:"backspace",delete:"delete",escape:"escape",esc:"escape",tab:"tab",space:" ",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright",pageup:"pageup",pagedown:"pagedown",home:"home",end:"end"},uM=e=>{let t=e.toLowerCase();return cM[t]||e.toUpperCase()},no=e=>{let t=e.toLowerCase();return dM[t]||t},Es=e=>{let t=no(e);return ["meta","control","alt","shift"].includes(t)},Bb=___namespace.forwardRef(({className:e,variant:t,size:r,keys:a,children:n,onPress:o,disabled:s,preventDefault:l=true,...c},d)=>{___namespace.useEffect(()=>{if(!o||!a||s)return;let u=Array.isArray(a)?a:[a],p=u.filter(Es).map(no),f=u.filter(x=>!Es(x)).map(no),b=x=>{let g=p.includes("meta")===x.metaKey,v=p.includes("control")===x.ctrlKey,R=p.includes("alt")===x.altKey,w=p.includes("shift")===x.shiftKey,h=f.length===0||f.includes(x.key.toLowerCase());g&&v&&R&&w&&h&&(l&&x.preventDefault(),o(x));};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[a,o,s,l]);let m=()=>a?(Array.isArray(a)?a:[a]).map((p,f)=>jsxRuntime.jsxs(___namespace.Fragment,{children:[f>0&&jsxRuntime.jsx("span",{className:"mx-0.5 text-muted-foreground",children:"+"}),jsxRuntime.jsx("span",{children:uM(p)})]},f)):n;return jsxRuntime.jsx("kbd",{ref:d,className:i(zb({variant:t,size:r}),s&&"opacity-50",e),...c,children:m()})});Bb.displayName="Kbd";function mM(e,t,r={}){let{disabled:a=false,preventDefault:n=true}=r;___namespace.useEffect(()=>{if(a)return;let o=Array.isArray(e)?e:[e],s=o.filter(Es).map(no),l=o.filter(d=>!Es(d)).map(no),c=d=>{let m=s.includes("meta")===d.metaKey,u=s.includes("control")===d.ctrlKey,p=s.includes("alt")===d.altKey,f=s.includes("shift")===d.shiftKey,b=l.length===0||l.includes(d.key.toLowerCase());m&&u&&p&&f&&b&&(n&&d.preventDefault(),t(d));};return window.addEventListener("keydown",c),()=>window.removeEventListener("keydown",c)},[e,t,a,n]);}var Fb=___namespace.forwardRef(({className:e,size:t,axis:r="both",style:a,...n},o)=>{let s=typeof t=="number"?`${t}px`:t,l={...a,...t?{width:r==="vertical"?void 0:s,height:r==="horizontal"?void 0:s,minWidth:r==="vertical"?void 0:s,minHeight:r==="horizontal"?void 0:s,flexShrink:0}:{flex:"1 1 auto"}};return jsxRuntime.jsx("div",{ref:o,"aria-hidden":"true",className:i(e),style:l,...n})});Fb.displayName="Spacer";var Kb=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-md transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"hover:bg-muted",solid:"bg-muted hover:bg-muted/80",ghost:"hover:bg-accent hover:text-accent-foreground",outline:"border border-input hover:bg-accent hover:text-accent-foreground"},size:{sm:"h-7 w-7",md:"h-8 w-8",lg:"h-10 w-10"}},defaultVariants:{variant:"default",size:"md"}}),Gb=___namespace.forwardRef(({className:e,variant:t,size:r,value:a,successDuration:n=2e3,onCopySuccess:o,onCopyError:s,copyIcon:l,successIcon:c,...d},m)=>{let[u,p]=___namespace.useState(false),f={sm:14,md:16,lg:20}[r??"md"],b=async()=>{try{await navigator.clipboard.writeText(a),p(!0),o?.(),setTimeout(()=>{p(!1);},n);}catch(x){s?.(x);}};return jsxRuntime.jsx("button",{ref:m,type:"button",className:i(Kb({variant:t,size:r}),e),onClick:b,"aria-label":u?"Copied":"Copy to clipboard",...d,children:u?c??jsxRuntime.jsx(lucideReact.Check,{className:"text-success",style:{width:f,height:f}}):l??jsxRuntime.jsx(lucideReact.Copy,{style:{width:f,height:f}})})});Gb.displayName="CopyButton";var _b=classVarianceAuthority.cva("flex flex-col bg-background",{variants:{variant:{default:"border rounded-lg",bordered:"border-2 rounded-lg",ghost:""},size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{variant:"default",size:"md"}}),RM=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wM=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];function CM(e,t,r){let a=new Date(e,t,1),n=new Date(e,t+1,0),o=[],s=a.getDay()-r;s<0&&(s+=7);for(let c=s-1;c>=0;c--)o.push(new Date(e,t,-c));for(let c=1;c<=n.getDate();c++)o.push(new Date(e,t,c));let l=42-o.length;for(let c=1;c<=l;c++)o.push(new Date(e,t+1,c));return o}function NM(e,t){let r=[],n=e.getDay()-t;n<0&&(n+=7);let o=new Date(e);o.setDate(e.getDate()-n);for(let s=0;s<7;s++){let l=new Date(o);l.setDate(o.getDate()+s),r.push(l);}return r}function Ss(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function Ds(e){return Ss(e,new Date)}function $b(e,t){return e.filter(r=>{let a=new Date(r.start),n=new Date(r.end);return Ss(a,t)||Ss(n,t)||a<t&&n>t})}var jb=___namespace.forwardRef(({className:e,variant:t,size:r,events:a=[],view:n="month",onViewChange:o,date:s,onDateChange:l,onEventClick:c,onSlotClick:d,weekStartsOn:m=0,locale:u="en-US",...p},f)=>{let[b,x]=___namespace.useState(new Date),g=s??b,v=M=>{l?l(M):x(M);},R=m===1?wM:RM,w=()=>{let M=new Date(g);n==="month"?M.setMonth(M.getMonth()-1):n==="week"?M.setDate(M.getDate()-7):M.setDate(M.getDate()-1),v(M);},h=()=>{let M=new Date(g);n==="month"?M.setMonth(M.getMonth()+1):n==="week"?M.setDate(M.getDate()+7):M.setDate(M.getDate()+1),v(M);},C=()=>{v(new Date);},y=()=>n==="day"?g.toLocaleDateString(u,{weekday:"long",year:"numeric",month:"long",day:"numeric"}):g.toLocaleDateString(u,{year:"numeric",month:"long"}),T=()=>{let M=CM(g.getFullYear(),g.getMonth(),m);return jsxRuntime.jsxs("div",{className:"flex-1 flex flex-col",children:[jsxRuntime.jsx("div",{className:"grid grid-cols-7 border-b",children:R.map(P=>jsxRuntime.jsx("div",{className:"p-2 text-center font-medium text-muted-foreground",children:P},P))}),jsxRuntime.jsx("div",{className:"flex-1 grid grid-cols-7 grid-rows-6",children:M.map((P,k)=>{let L=$b(a,P),H=P.getMonth()===g.getMonth();return jsxRuntime.jsxs("div",{className:i("min-h-[80px] border-b border-r p-1 cursor-pointer hover:bg-accent/50 transition-colors",!H&&"bg-muted/30"),onClick:()=>d?.(P),children:[jsxRuntime.jsx("div",{className:i("flex items-center justify-center w-7 h-7 rounded-full text-sm mb-1",Ds(P)&&"bg-primary text-primary-foreground",!H&&"text-muted-foreground"),children:P.getDate()}),jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[L.slice(0,3).map(S=>jsxRuntime.jsx("div",{className:"text-xs px-1 py-0.5 rounded truncate cursor-pointer hover:opacity-80",style:{backgroundColor:S.color||"hsl(var(--primary))",color:"white"},onClick:D=>{D.stopPropagation(),c?.(S);},children:S.title},S.id)),L.length>3&&jsxRuntime.jsxs("div",{className:"text-xs text-muted-foreground px-1",children:["+",L.length-3," more"]})]})]},k)})})]})},N=()=>{let M=NM(g,m),P=Array.from({length:24},(k,L)=>L);return jsxRuntime.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[jsxRuntime.jsxs("div",{className:"grid grid-cols-[60px_repeat(7,1fr)] border-b",children:[jsxRuntime.jsx("div",{className:"p-2"}),M.map((k,L)=>jsxRuntime.jsxs("div",{className:i("p-2 text-center border-l",Ds(k)&&"bg-primary/10"),children:[jsxRuntime.jsx("div",{className:"text-xs text-muted-foreground",children:R[L]}),jsxRuntime.jsx("div",{className:i("text-lg font-semibold",Ds(k)&&"text-primary"),children:k.getDate()})]},L))]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx("div",{className:"grid grid-cols-[60px_repeat(7,1fr)]",children:P.map(k=>jsxRuntime.jsxs(___namespace.Fragment,{children:[jsxRuntime.jsxs("div",{className:"h-12 text-xs text-muted-foreground text-right pr-2 pt-0 border-b",children:[k.toString().padStart(2,"0"),":00"]}),M.map((L,H)=>{let S=new Date(L);S.setHours(k,0,0,0);let D=a.filter(V=>{let z=new Date(V.start);return Ss(z,L)&&z.getHours()===k});return jsxRuntime.jsx("div",{className:"h-12 border-b border-l cursor-pointer hover:bg-accent/50 relative",onClick:()=>d?.(S),children:D.map(V=>jsxRuntime.jsx("div",{className:"absolute inset-x-0.5 top-0.5 text-xs px-1 py-0.5 rounded truncate cursor-pointer",style:{backgroundColor:V.color||"hsl(var(--primary))",color:"white"},onClick:z=>{z.stopPropagation(),c?.(V);},children:V.title},V.id))},H)})]},k))})})]})},E=()=>{let M=Array.from({length:24},(k,L)=>L),P=$b(a,g);return jsxRuntime.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[jsxRuntime.jsx("div",{className:"p-4 border-b text-center",children:jsxRuntime.jsx("div",{className:i("inline-flex items-center justify-center w-12 h-12 rounded-full text-2xl font-semibold",Ds(g)&&"bg-primary text-primary-foreground"),children:g.getDate()})}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx("div",{className:"grid grid-cols-[60px_1fr]",children:M.map(k=>{let L=new Date(g);L.setHours(k,0,0,0);let H=P.filter(S=>new Date(S.start).getHours()===k);return jsxRuntime.jsxs(___namespace.Fragment,{children:[jsxRuntime.jsxs("div",{className:"h-12 text-xs text-muted-foreground text-right pr-2 pt-0 border-b",children:[k.toString().padStart(2,"0"),":00"]}),jsxRuntime.jsx("div",{className:"h-12 border-b border-l cursor-pointer hover:bg-accent/50 relative",onClick:()=>d?.(L),children:H.map(S=>jsxRuntime.jsx("div",{className:"absolute inset-x-1 top-0.5 text-xs px-2 py-1 rounded truncate cursor-pointer",style:{backgroundColor:S.color||"hsl(var(--primary))",color:"white"},onClick:D=>{D.stopPropagation(),c?.(S);},children:S.title},S.id))})]},k)})})})]})};return jsxRuntime.jsxs("div",{ref:f,className:i(_b({variant:t,size:r,className:e})),...p,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between p-4 border-b",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(Z,{variant:"bordered",size:"sm",onClick:C,children:"Today"}),jsxRuntime.jsx(Z,{variant:"ghost",size:"icon",onClick:w,children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx(Z,{variant:"ghost",size:"icon",onClick:h,children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})}),jsxRuntime.jsx("h2",{className:"text-lg font-semibold ml-2",children:y()})]}),jsxRuntime.jsx("div",{className:"flex items-center gap-1 border rounded-lg p-1",children:["month","week","day"].map(M=>jsxRuntime.jsx(Z,{variant:n===M?"solid":"ghost",size:"sm",onClick:()=>o?.(M),children:M.charAt(0).toUpperCase()+M.slice(1)},M))})]}),n==="month"&&T(),n==="week"&&N(),n==="day"&&E()]})});jb.displayName="FullCalendar";var so=classVarianceAuthority.cva("w-full",{variants:{size:{sm:"h-48",md:"h-64",lg:"h-96"}},defaultVariants:{size:"md"}}),io=["hsl(var(--primary))","hsl(var(--chart-1, 220 70% 50%))","hsl(var(--chart-2, 160 60% 45%))","hsl(var(--chart-3, 30 80% 55%))","hsl(var(--chart-4, 280 65% 60%))"],Wb=___namespace.forwardRef(({className:e,size:t,data:r,dataKeys:a,colors:n=io,showGrid:o=true,showLegend:s=true,showTooltip:l=true,xAxisKey:c="name",curveType:d="monotone",...m},u)=>jsxRuntime.jsx("div",{ref:u,className:i(so({size:t,className:e})),...m,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.LineChart,{data:r,children:[o&&jsxRuntime.jsx(recharts.CartesianGrid,{strokeDasharray:"3 3",className:"stroke-muted"}),jsxRuntime.jsx(recharts.XAxis,{dataKey:c,className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),jsxRuntime.jsx(recharts.YAxis,{className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),l&&jsxRuntime.jsx(recharts.Tooltip,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))",borderRadius:"var(--radius)"},labelStyle:{color:"hsl(var(--popover-foreground))"}}),s&&jsxRuntime.jsx(recharts.Legend,{}),a.map((p,f)=>jsxRuntime.jsx(recharts.Line,{type:d,dataKey:p,stroke:n[f%n.length],strokeWidth:2,dot:{fill:n[f%n.length],strokeWidth:0},activeDot:{r:6}},p))]})})}));Wb.displayName="LineChart";var Yb=___namespace.forwardRef(({className:e,size:t,data:r,dataKeys:a,colors:n=io,showGrid:o=true,showLegend:s=true,showTooltip:l=true,xAxisKey:c="name",stacked:d=false,layout:m="horizontal",...u},p)=>jsxRuntime.jsx("div",{ref:p,className:i(so({size:t,className:e})),...u,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.BarChart,{data:r,layout:m,children:[o&&jsxRuntime.jsx(recharts.CartesianGrid,{strokeDasharray:"3 3",className:"stroke-muted"}),jsxRuntime.jsx(recharts.XAxis,{dataKey:m==="horizontal"?c:void 0,type:m==="horizontal"?"category":"number",className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),jsxRuntime.jsx(recharts.YAxis,{dataKey:m==="vertical"?c:void 0,type:m==="vertical"?"category":"number",className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),l&&jsxRuntime.jsx(recharts.Tooltip,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))",borderRadius:"var(--radius)"},labelStyle:{color:"hsl(var(--popover-foreground))"}}),s&&jsxRuntime.jsx(recharts.Legend,{}),a.map((f,b)=>jsxRuntime.jsx(recharts.Bar,{dataKey:f,fill:n[b%n.length],stackId:d?"stack":void 0,radius:[4,4,0,0]},f))]})})}));Yb.displayName="BarChart";var Ub=___namespace.forwardRef(({className:e,size:t,data:r,dataKey:a="value",nameKey:n="name",colors:o=io,innerRadius:s=0,outerRadius:l=80,showLegend:c=true,showTooltip:d=true,showLabels:m=false,...u},p)=>jsxRuntime.jsx("div",{ref:p,className:i(so({size:t,className:e})),...u,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.PieChart,{children:[d&&jsxRuntime.jsx(recharts.Tooltip,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))",borderRadius:"var(--radius)"}}),c&&jsxRuntime.jsx(recharts.Legend,{}),jsxRuntime.jsx(recharts.Pie,{data:r,dataKey:a,nameKey:n,cx:"50%",cy:"50%",innerRadius:s,outerRadius:l,label:m,labelLine:m,children:r.map((f,b)=>jsxRuntime.jsx(recharts.Cell,{fill:o[b%o.length]},`cell-${b}`))})]})})}));Ub.displayName="PieChart";var Xb=___namespace.forwardRef(({className:e,size:t,data:r,dataKeys:a,colors:n=io,showGrid:o=true,showLegend:s=true,showTooltip:l=true,xAxisKey:c="name",stacked:d=false,curveType:m="monotone",...u},p)=>jsxRuntime.jsx("div",{ref:p,className:i(so({size:t,className:e})),...u,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.AreaChart,{data:r,children:[o&&jsxRuntime.jsx(recharts.CartesianGrid,{strokeDasharray:"3 3",className:"stroke-muted"}),jsxRuntime.jsx(recharts.XAxis,{dataKey:c,className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),jsxRuntime.jsx(recharts.YAxis,{className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),l&&jsxRuntime.jsx(recharts.Tooltip,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))",borderRadius:"var(--radius)"},labelStyle:{color:"hsl(var(--popover-foreground))"}}),s&&jsxRuntime.jsx(recharts.Legend,{}),a.map((f,b)=>jsxRuntime.jsx(recharts.Area,{type:m,dataKey:f,stroke:n[b%n.length],fill:n[b%n.length],fillOpacity:.3,stackId:d?"stack":void 0},f))]})})}));Xb.displayName="AreaChart";var Jb=classVarianceAuthority.cva("flex gap-4 overflow-x-auto p-4",{variants:{variant:{default:"bg-muted/30",bordered:"border rounded-lg bg-background",ghost:""}},defaultVariants:{variant:"default"}}),Qb=classVarianceAuthority.cva("flex flex-col min-w-[280px] w-[280px] rounded-lg",{variants:{variant:{default:"bg-muted/50",bordered:"border bg-background",ghost:"bg-transparent"}},defaultVariants:{variant:"default"}}),Al=classVarianceAuthority.cva("rounded-lg p-3 cursor-grab active:cursor-grabbing transition-all",{variants:{variant:{default:"bg-background border shadow-sm hover:shadow-md",bordered:"border-2 bg-background hover:border-primary/50",ghost:"bg-muted/50 hover:bg-muted"},isDragging:{true:"opacity-50 scale-[1.02] shadow-lg",false:""}},defaultVariants:{variant:"default",isDragging:false}});function YM({card:e,columnId:t,variant:r,renderCard:a,onCardClick:n}){let{attributes:o,listeners:s,setNodeRef:l,transform:c,transition:d,isDragging:m}=sortable.useSortable({id:e.id,data:{columnId:t}}),u={transform:utilities.CSS.Transform.toString(c),transition:d};return jsxRuntime.jsx("div",{ref:l,style:u,className:i(Al({variant:r,isDragging:m})),onClick:()=>n?.(e,t),...o,...s,children:a?a(e,t):jsxRuntime.jsxs("div",{className:"flex items-start gap-2",children:[jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-4 w-4 text-muted-foreground flex-shrink-0 mt-0.5"}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("p",{className:"font-medium text-sm truncate",children:e.title}),e.description&&jsxRuntime.jsx("p",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:e.description})]})]})})}function UM({column:e,variant:t,renderCard:r,onCardClick:a,onAddCard:n,showAddCard:o,columnHeight:s}){return jsxRuntime.jsxs("div",{className:i(Qb({variant:t})),children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between p-3 border-b",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[e.color&&jsxRuntime.jsx("div",{className:"w-3 h-3 rounded-full",style:{backgroundColor:e.color}}),jsxRuntime.jsx("h3",{className:"font-semibold text-sm",children:e.title}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground bg-muted px-2 py-0.5 rounded-full",children:e.cards.length})]}),o&&jsxRuntime.jsx(Z,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>n?.(e.id),children:jsxRuntime.jsx(lucideReact.Plus,{className:"h-4 w-4"})})]}),jsxRuntime.jsx(_e,{style:{height:s},children:jsxRuntime.jsxs("div",{className:"p-2 space-y-2",children:[jsxRuntime.jsx(sortable.SortableContext,{items:e.cards.map(l=>l.id),strategy:sortable.verticalListSortingStrategy,children:e.cards.map(l=>jsxRuntime.jsx(YM,{card:l,columnId:e.id,variant:t,renderCard:r,onCardClick:a},l.id))}),e.cards.length===0&&jsxRuntime.jsx("div",{className:"h-20 border-2 border-dashed rounded-lg flex items-center justify-center text-muted-foreground text-sm",children:"Drop here"})]})})]})}var ev=___namespace.forwardRef(({className:e,variant:t,columns:r,onCardMove:a,onCardClick:n,onAddCard:o,renderCard:s,showAddCard:l=true,columnHeight:c=500,...d},m)=>{let[u,p]=___namespace.useState(null),[f,b]=___namespace.useState(null),x=core.useSensors(core.useSensor(core.PointerSensor,{activationConstraint:{distance:8}}),core.useSensor(core.KeyboardSensor,{coordinateGetter:sortable.sortableKeyboardCoordinates})),g=h=>r.find(C=>C.cards.some(y=>y.id===h));return jsxRuntime.jsxs(core.DndContext,{sensors:x,collisionDetection:core.closestCorners,onDragStart:h=>{let{active:C}=h,y=g(C.id);if(y){let T=y.cards.find(N=>N.id===C.id);T&&(p(T),b(y.id));}},onDragOver:h=>{let{active:C,over:y}=h;if(!y)return;let T=C.id,N=y.id,E=g(T),M=g(N)||r.find(L=>L.id===N);if(!E||!M||E.id===M.id)return;let P=M.cards.findIndex(L=>L.id===N),k=P===-1?M.cards.length:P;a?.(T,E.id,M.id,k);},onDragEnd:h=>{let{active:C,over:y}=h;if(y&&C.id!==y.id){let T=g(C.id),N=g(y.id)||r.find(E=>E.id===y.id);if(T&&N){let E=N.cards.findIndex(P=>P.id===y.id),M=E===-1?N.cards.length:E;a?.(C.id,T.id,N.id,M);}}p(null),b(null);},children:[jsxRuntime.jsx("div",{ref:m,className:i(Jb({variant:t,className:e})),...d,children:r.map(h=>jsxRuntime.jsx(UM,{column:h,variant:t,renderCard:s,onCardClick:n,onAddCard:o,showAddCard:l,columnHeight:c},h.id))}),jsxRuntime.jsx(core.DragOverlay,{children:u&&f&&jsxRuntime.jsx("div",{className:i(Al({variant:t,isDragging:true})),children:s?s(u,f):jsxRuntime.jsxs("div",{className:"flex items-start gap-2",children:[jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-4 w-4 text-muted-foreground flex-shrink-0 mt-0.5"}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("p",{className:"font-medium text-sm truncate",children:u.title}),u.description&&jsxRuntime.jsx("p",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:u.description})]})]})})})]})});ev.displayName="KanbanBoard";var tv=classVarianceAuthority.cva("relative",{variants:{variant:{default:"",bordered:"border rounded-lg p-4",cards:"rounded-lg"}},defaultVariants:{variant:"default"}}),rv=___namespace.createContext(null);function zl(){let e=___namespace.useContext(rv);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var av=___namespace.forwardRef(({className:e,variant:t,children:r,opts:a,plugins:n,orientation:o="horizontal",showArrows:s=true,showDots:l=true,setApi:c,...d},m)=>{let[u,p]=XM__default.default({...a,axis:o==="horizontal"?"x":"y"},n),[f,b]=___namespace.useState(false),[x,g]=___namespace.useState(false),[v,R]=___namespace.useState(0),[w,h]=___namespace.useState([]),C=___namespace.useCallback(M=>{M&&(R(M.selectedScrollSnap()),b(M.canScrollPrev()),g(M.canScrollNext()));},[]),y=___namespace.useCallback(()=>{p?.scrollPrev();},[p]),T=___namespace.useCallback(()=>{p?.scrollNext();},[p]),N=___namespace.useCallback(M=>{p?.scrollTo(M);},[p]),E=___namespace.useCallback(M=>{M.key==="ArrowLeft"?(M.preventDefault(),y()):M.key==="ArrowRight"&&(M.preventDefault(),T());},[y,T]);return ___namespace.useEffect(()=>{!p||!c||c(p);},[p,c]),___namespace.useEffect(()=>{if(p)return h(p.scrollSnapList()),C(p),p.on("reInit",C),p.on("select",C),()=>{p?.off("select",C);}},[p,C]),jsxRuntime.jsx(rv.Provider,{value:{carouselRef:u,api:p,scrollPrev:y,scrollNext:T,canScrollPrev:f,canScrollNext:x,selectedIndex:v,scrollSnaps:w,scrollTo:N},children:jsxRuntime.jsxs("div",{ref:m,className:i(tv({variant:t,className:e})),onKeyDownCapture:E,role:"region","aria-roledescription":"carousel",...d,children:[jsxRuntime.jsx("div",{ref:u,className:"overflow-hidden",children:jsxRuntime.jsx("div",{className:i("flex",o==="horizontal"?"-ml-4":"-mt-4 flex-col"),children:r})}),s&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Bl,{}),jsxRuntime.jsx(Ol,{})]}),l&&w.length>1&&jsxRuntime.jsx("div",{className:"flex justify-center gap-1.5 mt-4",children:w.map((M,P)=>jsxRuntime.jsx("button",{className:i("w-2 h-2 rounded-full transition-all",P===v?"bg-primary w-4":"bg-muted-foreground/30 hover:bg-muted-foreground/50"),onClick:()=>N(P),"aria-label":`Go to slide ${P+1}`},P))})]})})});av.displayName="Carousel";var nv=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex",e),...t}));nv.displayName="CarouselContent";var ov=___namespace.forwardRef(({className:e,basis:t="basis-full",...r},a)=>jsxRuntime.jsx("div",{ref:a,role:"group","aria-roledescription":"slide",className:i("min-w-0 shrink-0 grow-0 pl-4",t,e),...r}));ov.displayName="CarouselItem";var Bl=___namespace.forwardRef(({className:e,variant:t="bordered",size:r="icon",...a},n)=>{let{scrollPrev:o,canScrollPrev:s}=zl();return jsxRuntime.jsxs(Z,{ref:n,variant:t,size:r,className:i("absolute left-2 top-1/2 -translate-y-1/2 h-8 w-8 rounded-full",e),disabled:!s,onClick:o,...a,children:[jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Previous slide"})]})});Bl.displayName="CarouselPrevious";var Ol=___namespace.forwardRef(({className:e,variant:t="bordered",size:r="icon",...a},n)=>{let{scrollNext:o,canScrollNext:s}=zl();return jsxRuntime.jsxs(Z,{ref:n,variant:t,size:r,className:i("absolute right-2 top-1/2 -translate-y-1/2 h-8 w-8 rounded-full",e),disabled:!s,onClick:o,...a,children:[jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Next slide"})]})});Ol.displayName="CarouselNext";var sv=classVarianceAuthority.cva("flex flex-col bg-popover border rounded-lg shadow-md",{variants:{size:{sm:"w-64 h-72",md:"w-80 h-96",lg:"w-96 h-[480px]"}},defaultVariants:{size:"md"}}),Bs={recent:{icon:"\u{1F550}",name:"Recent"},smileys:{icon:"\u{1F600}",name:"Smileys & Emotion"},people:{icon:"\u{1F44B}",name:"People & Body"},animals:{icon:"\u{1F43B}",name:"Animals & Nature"},food:{icon:"\u{1F354}",name:"Food & Drink"},travel:{icon:"\u{1F697}",name:"Travel & Places"},activities:{icon:"\u26BD",name:"Activities"},objects:{icon:"\u{1F4A1}",name:"Objects"},symbols:{icon:"\u2764\uFE0F",name:"Symbols"},flags:{icon:"\u{1F3F3}\uFE0F",name:"Flags"}},Kl={smileys:["\u{1F600}","\u{1F603}","\u{1F604}","\u{1F601}","\u{1F606}","\u{1F605}","\u{1F923}","\u{1F602}","\u{1F642}","\u{1F643}","\u{1F609}","\u{1F60A}","\u{1F607}","\u{1F970}","\u{1F60D}","\u{1F929}","\u{1F618}","\u{1F617}","\u263A\uFE0F","\u{1F61A}","\u{1F60B}","\u{1F61B}","\u{1F61C}","\u{1F92A}","\u{1F61D}","\u{1F911}","\u{1F917}","\u{1F92D}","\u{1F92B}","\u{1F914}","\u{1F910}","\u{1F928}","\u{1F610}","\u{1F611}","\u{1F636}","\u{1F60F}","\u{1F612}","\u{1F644}","\u{1F62C}","\u{1F925}","\u{1F60C}","\u{1F614}","\u{1F62A}","\u{1F924}","\u{1F634}","\u{1F637}","\u{1F912}","\u{1F915}","\u{1F922}","\u{1F92E}","\u{1F927}","\u{1F975}","\u{1F976}","\u{1F974}","\u{1F635}","\u{1F92F}","\u{1F920}","\u{1F973}","\u{1F978}","\u{1F60E}","\u{1F913}","\u{1F9D0}","\u{1F615}","\u{1F61F}","\u{1F641}","\u2639\uFE0F","\u{1F62E}","\u{1F62F}","\u{1F632}","\u{1F633}","\u{1F97A}","\u{1F626}","\u{1F627}","\u{1F628}","\u{1F630}","\u{1F625}","\u{1F622}","\u{1F62D}","\u{1F631}","\u{1F616}","\u{1F623}","\u{1F61E}","\u{1F613}","\u{1F629}","\u{1F62B}","\u{1F971}","\u{1F624}","\u{1F621}","\u{1F620}","\u{1F92C}","\u{1F608}","\u{1F47F}","\u{1F480}","\u2620\uFE0F","\u{1F4A9}","\u{1F921}","\u{1F479}","\u{1F47A}","\u{1F47B}","\u{1F47D}"],people:["\u{1F44B}","\u{1F91A}","\u{1F590}\uFE0F","\u270B","\u{1F596}","\u{1F44C}","\u{1F90C}","\u{1F90F}","\u270C\uFE0F","\u{1F91E}","\u{1F91F}","\u{1F918}","\u{1F919}","\u{1F448}","\u{1F449}","\u{1F446}","\u{1F595}","\u{1F447}","\u261D\uFE0F","\u{1F44D}","\u{1F44E}","\u270A","\u{1F44A}","\u{1F91B}","\u{1F91C}","\u{1F44F}","\u{1F64C}","\u{1F450}","\u{1F932}","\u{1F91D}","\u{1F64F}","\u270D\uFE0F","\u{1F485}","\u{1F933}","\u{1F4AA}","\u{1F9BE}","\u{1F9BF}","\u{1F9B5}","\u{1F9B6}","\u{1F442}","\u{1F9BB}","\u{1F443}","\u{1F9E0}","\u{1FAC0}","\u{1FAC1}","\u{1F9B7}","\u{1F9B4}","\u{1F440}","\u{1F441}\uFE0F","\u{1F445}","\u{1F444}","\u{1F476}","\u{1F9D2}","\u{1F466}","\u{1F467}","\u{1F9D1}","\u{1F471}","\u{1F468}","\u{1F9D4}","\u{1F469}","\u{1F9D3}","\u{1F474}","\u{1F475}","\u{1F64D}","\u{1F64E}","\u{1F645}","\u{1F646}","\u{1F481}","\u{1F64B}","\u{1F9CF}","\u{1F647}","\u{1F926}","\u{1F937}","\u{1F46E}","\u{1F575}\uFE0F","\u{1F482}","\u{1F977}","\u{1F477}","\u{1F934}","\u{1F478}"],animals:["\u{1F436}","\u{1F431}","\u{1F42D}","\u{1F439}","\u{1F430}","\u{1F98A}","\u{1F43B}","\u{1F43C}","\u{1F428}","\u{1F42F}","\u{1F981}","\u{1F42E}","\u{1F437}","\u{1F43D}","\u{1F438}","\u{1F435}","\u{1F648}","\u{1F649}","\u{1F64A}","\u{1F412}","\u{1F414}","\u{1F427}","\u{1F426}","\u{1F424}","\u{1F423}","\u{1F425}","\u{1F986}","\u{1F985}","\u{1F989}","\u{1F987}","\u{1F43A}","\u{1F417}","\u{1F434}","\u{1F984}","\u{1F41D}","\u{1FAB1}","\u{1F41B}","\u{1F98B}","\u{1F40C}","\u{1F41E}","\u{1F41C}","\u{1FAB0}","\u{1FAB2}","\u{1FAB3}","\u{1F99F}","\u{1F997}","\u{1F577}\uFE0F","\u{1F578}\uFE0F","\u{1F982}","\u{1F422}","\u{1F40D}","\u{1F98E}","\u{1F996}","\u{1F995}","\u{1F419}","\u{1F991}","\u{1F990}","\u{1F99E}","\u{1F980}","\u{1F421}","\u{1F420}","\u{1F41F}","\u{1F42C}","\u{1F433}","\u{1F40B}","\u{1F988}","\u{1F40A}","\u{1F405}","\u{1F406}","\u{1F993}","\u{1F98D}","\u{1F9A7}","\u{1F9A3}","\u{1F418}","\u{1F99B}","\u{1F98F}","\u{1F42A}","\u{1F42B}","\u{1F992}","\u{1F998}"],food:["\u{1F347}","\u{1F348}","\u{1F349}","\u{1F34A}","\u{1F34B}","\u{1F34C}","\u{1F34D}","\u{1F96D}","\u{1F34E}","\u{1F34F}","\u{1F350}","\u{1F351}","\u{1F352}","\u{1F353}","\u{1FAD0}","\u{1F95D}","\u{1F345}","\u{1FAD2}","\u{1F965}","\u{1F951}","\u{1F346}","\u{1F954}","\u{1F955}","\u{1F33D}","\u{1F336}\uFE0F","\u{1FAD1}","\u{1F952}","\u{1F96C}","\u{1F966}","\u{1F9C4}","\u{1F9C5}","\u{1F344}","\u{1F95C}","\u{1F330}","\u{1F35E}","\u{1F950}","\u{1F956}","\u{1FAD3}","\u{1F968}","\u{1F96F}","\u{1F95E}","\u{1F9C7}","\u{1F9C0}","\u{1F356}","\u{1F357}","\u{1F969}","\u{1F953}","\u{1F354}","\u{1F35F}","\u{1F355}","\u{1F32D}","\u{1F96A}","\u{1F32E}","\u{1F32F}","\u{1FAD4}","\u{1F959}","\u{1F9C6}","\u{1F95A}","\u{1F373}","\u{1F958}","\u{1F372}","\u{1FAD5}","\u{1F963}","\u{1F957}","\u{1F37F}","\u{1F9C8}","\u{1F9C2}","\u{1F96B}","\u{1F371}","\u{1F358}","\u{1F359}","\u{1F35A}","\u{1F35B}","\u{1F35C}","\u{1F35D}","\u{1F360}","\u{1F362}","\u{1F363}","\u{1F364}","\u{1F365}"],travel:["\u{1F697}","\u{1F695}","\u{1F699}","\u{1F68C}","\u{1F68E}","\u{1F3CE}\uFE0F","\u{1F693}","\u{1F691}","\u{1F692}","\u{1F690}","\u{1F6FB}","\u{1F69A}","\u{1F69B}","\u{1F69C}","\u{1F9AF}","\u{1F9BD}","\u{1F9BC}","\u{1F6F4}","\u{1F6B2}","\u{1F6F5}","\u{1F3CD}\uFE0F","\u{1F6FA}","\u{1F6A8}","\u{1F694}","\u{1F68D}","\u{1F698}","\u{1F696}","\u{1F6A1}","\u{1F6A0}","\u{1F69F}","\u{1F683}","\u{1F68B}","\u{1F69E}","\u{1F69D}","\u{1F684}","\u{1F685}","\u{1F688}","\u{1F682}","\u{1F686}","\u{1F687}","\u{1F68A}","\u{1F689}","\u2708\uFE0F","\u{1F6EB}","\u{1F6EC}","\u{1F6E9}\uFE0F","\u{1F4BA}","\u{1F6F0}\uFE0F","\u{1F680}","\u{1F6F8}","\u{1F681}","\u{1F6F6}","\u26F5","\u{1F6A4}","\u{1F6E5}\uFE0F","\u{1F6F3}\uFE0F","\u26F4\uFE0F","\u{1F6A2}","\u2693","\u{1FA9D}","\u26FD","\u{1F6A7}","\u{1F6A6}","\u{1F6A5}","\u{1F68F}","\u{1F5FA}\uFE0F","\u{1F5FF}","\u{1F5FD}","\u{1F5FC}","\u{1F3F0}","\u{1F3EF}","\u{1F3DF}\uFE0F","\u{1F3A1}","\u{1F3A2}","\u{1F3A0}","\u26F2","\u26F1\uFE0F","\u{1F3D6}\uFE0F","\u{1F3DD}\uFE0F","\u{1F3DC}\uFE0F"],activities:["\u26BD","\u{1F3C0}","\u{1F3C8}","\u26BE","\u{1F94E}","\u{1F3BE}","\u{1F3D0}","\u{1F3C9}","\u{1F94F}","\u{1F3B1}","\u{1FA80}","\u{1F3D3}","\u{1F3F8}","\u{1F3D2}","\u{1F3D1}","\u{1F94D}","\u{1F3CF}","\u{1FA83}","\u{1F945}","\u26F3","\u{1FA81}","\u{1F3F9}","\u{1F3A3}","\u{1F93F}","\u{1F94A}","\u{1F94B}","\u{1F3BD}","\u{1F6F9}","\u{1F6FC}","\u{1F6F7}","\u26F8\uFE0F","\u{1F94C}","\u{1F3BF}","\u26F7\uFE0F","\u{1F3C2}","\u{1FA82}","\u{1F3CB}\uFE0F","\u{1F93C}","\u{1F938}","\u26F9\uFE0F","\u{1F93A}","\u{1F93E}","\u{1F3CC}\uFE0F","\u{1F3C7}","\u26D1\uFE0F","\u{1F9D8}","\u{1F3C4}","\u{1F3CA}","\u{1F93D}","\u{1F6A3}","\u{1F9D7}","\u{1F6B5}","\u{1F6B4}","\u{1F3C6}","\u{1F947}","\u{1F948}","\u{1F949}","\u{1F3C5}","\u{1F396}\uFE0F","\u{1F3F5}\uFE0F","\u{1F397}\uFE0F","\u{1F3AB}","\u{1F39F}\uFE0F","\u{1F3AA}","\u{1F939}","\u{1F3AD}","\u{1FA70}","\u{1F3A8}","\u{1F3AC}","\u{1F3A4}","\u{1F3A7}","\u{1F3BC}","\u{1F3B9}","\u{1F941}","\u{1FA98}","\u{1F3B7}","\u{1F3BA}","\u{1FA97}","\u{1F3B8}","\u{1FA95}"],objects:["\u231A","\u{1F4F1}","\u{1F4F2}","\u{1F4BB}","\u2328\uFE0F","\u{1F5A5}\uFE0F","\u{1F5A8}\uFE0F","\u{1F5B1}\uFE0F","\u{1F5B2}\uFE0F","\u{1F579}\uFE0F","\u{1F5DC}\uFE0F","\u{1F4BD}","\u{1F4BE}","\u{1F4BF}","\u{1F4C0}","\u{1F4FC}","\u{1F4F7}","\u{1F4F8}","\u{1F4F9}","\u{1F3A5}","\u{1F4FD}\uFE0F","\u{1F39E}\uFE0F","\u{1F4DE}","\u260E\uFE0F","\u{1F4DF}","\u{1F4E0}","\u{1F4FA}","\u{1F4FB}","\u{1F399}\uFE0F","\u{1F39A}\uFE0F","\u{1F39B}\uFE0F","\u{1F9ED}","\u23F1\uFE0F","\u23F2\uFE0F","\u23F0","\u{1F570}\uFE0F","\u231B","\u23F3","\u{1F4E1}","\u{1F50B}","\u{1F50C}","\u{1F4A1}","\u{1F526}","\u{1F56F}\uFE0F","\u{1FA94}","\u{1F9EF}","\u{1F6E2}\uFE0F","\u{1F4B8}","\u{1F4B5}","\u{1F4B4}","\u{1F4B6}","\u{1F4B7}","\u{1FA99}","\u{1F4B0}","\u{1F4B3}","\u{1F48E}","\u2696\uFE0F","\u{1FA9C}","\u{1F9F0}","\u{1FA9B}","\u{1F527}","\u{1F528}","\u2692\uFE0F","\u{1F6E0}\uFE0F","\u26CF\uFE0F","\u{1FA9A}","\u{1F529}","\u2699\uFE0F","\u{1FAA4}","\u{1F9F1}","\u26D3\uFE0F","\u{1F9F2}","\u{1F52B}","\u{1F4A3}","\u{1F9E8}","\u{1FA93}","\u{1F52A}","\u{1F5E1}\uFE0F","\u2694\uFE0F","\u{1F6E1}\uFE0F"],symbols:["\u2764\uFE0F","\u{1F9E1}","\u{1F49B}","\u{1F49A}","\u{1F499}","\u{1F49C}","\u{1F5A4}","\u{1F90D}","\u{1F90E}","\u{1F494}","\u2763\uFE0F","\u{1F495}","\u{1F49E}","\u{1F493}","\u{1F497}","\u{1F496}","\u{1F498}","\u{1F49D}","\u{1F49F}","\u262E\uFE0F","\u271D\uFE0F","\u262A\uFE0F","\u{1F549}\uFE0F","\u2638\uFE0F","\u2721\uFE0F","\u{1F52F}","\u{1F54E}","\u262F\uFE0F","\u2626\uFE0F","\u{1F6D0}","\u26CE","\u2648","\u2649","\u264A","\u264B","\u264C","\u264D","\u264E","\u264F","\u2650","\u2651","\u2652","\u2653","\u{1F194}","\u269B\uFE0F","\u{1F251}","\u2622\uFE0F","\u2623\uFE0F","\u{1F4F4}","\u{1F4F3}","\u{1F236}","\u{1F21A}","\u{1F238}","\u{1F23A}","\u{1F237}\uFE0F","\u2734\uFE0F","\u{1F19A}","\u{1F4AE}","\u{1F250}","\u3299\uFE0F","\u3297\uFE0F","\u{1F234}","\u{1F235}","\u{1F239}","\u{1F232}","\u{1F170}\uFE0F","\u{1F171}\uFE0F","\u{1F18E}","\u{1F191}","\u{1F17E}\uFE0F","\u{1F198}","\u274C","\u2B55","\u{1F6D1}","\u26D4","\u{1F4DB}","\u{1F6AB}","\u{1F4AF}","\u{1F4A2}","\u2668\uFE0F"],flags:["\u{1F3F3}\uFE0F","\u{1F3F4}","\u{1F3C1}","\u{1F6A9}","\u{1F3F3}\uFE0F\u200D\u{1F308}","\u{1F3F3}\uFE0F\u200D\u26A7\uFE0F","\u{1F1FA}\u{1F1F3}","\u{1F1E6}\u{1F1EB}","\u{1F1E6}\u{1F1F1}","\u{1F1E9}\u{1F1FF}","\u{1F1E6}\u{1F1F8}","\u{1F1E6}\u{1F1E9}","\u{1F1E6}\u{1F1F4}","\u{1F1E6}\u{1F1EE}","\u{1F1E6}\u{1F1F6}","\u{1F1E6}\u{1F1EC}","\u{1F1E6}\u{1F1F7}","\u{1F1E6}\u{1F1F2}","\u{1F1E6}\u{1F1FC}","\u{1F1E6}\u{1F1FA}","\u{1F1E6}\u{1F1F9}","\u{1F1E6}\u{1F1FF}","\u{1F1E7}\u{1F1F8}","\u{1F1E7}\u{1F1ED}","\u{1F1E7}\u{1F1E9}","\u{1F1E7}\u{1F1E7}","\u{1F1E7}\u{1F1FE}","\u{1F1E7}\u{1F1EA}","\u{1F1E7}\u{1F1FF}","\u{1F1E7}\u{1F1EF}","\u{1F1E7}\u{1F1F2}","\u{1F1E7}\u{1F1F9}","\u{1F1E7}\u{1F1F4}","\u{1F1E7}\u{1F1E6}","\u{1F1E7}\u{1F1FC}","\u{1F1E7}\u{1F1F7}","\u{1F1E7}\u{1F1F3}","\u{1F1E7}\u{1F1EC}","\u{1F1E7}\u{1F1EB}","\u{1F1E7}\u{1F1EE}","\u{1F1E8}\u{1F1FB}","\u{1F1F0}\u{1F1ED}","\u{1F1E8}\u{1F1F2}","\u{1F1E8}\u{1F1E6}","\u{1F1E8}\u{1F1EB}","\u{1F1F9}\u{1F1E9}","\u{1F1E8}\u{1F1F1}","\u{1F1E8}\u{1F1F3}","\u{1F1E8}\u{1F1F4}","\u{1F1F0}\u{1F1F2}","\u{1F1E8}\u{1F1EC}","\u{1F1E8}\u{1F1E9}","\u{1F1E8}\u{1F1F7}","\u{1F1ED}\u{1F1F7}","\u{1F1E8}\u{1F1FA}","\u{1F1E8}\u{1F1FE}","\u{1F1E8}\u{1F1FF}","\u{1F1E9}\u{1F1F0}","\u{1F1E9}\u{1F1EF}","\u{1F1E9}\u{1F1F2}","\u{1F1E9}\u{1F1F4}","\u{1F1EA}\u{1F1E8}","\u{1F1EA}\u{1F1EC}","\u{1F1F8}\u{1F1FB}","\u{1F1EC}\u{1F1F6}","\u{1F1EA}\u{1F1F7}","\u{1F1EA}\u{1F1EA}","\u{1F1EA}\u{1F1F9}","\u{1F1EA}\u{1F1FA}","\u{1F1EB}\u{1F1EF}","\u{1F1EB}\u{1F1EE}","\u{1F1EB}\u{1F1F7}","\u{1F1EC}\u{1F1E6}","\u{1F1EC}\u{1F1F2}","\u{1F1EC}\u{1F1EA}","\u{1F1E9}\u{1F1EA}","\u{1F1EC}\u{1F1ED}","\u{1F1EC}\u{1F1F7}","\u{1F1EC}\u{1F1F9}","\u{1F1EC}\u{1F1F3}"]},iv=___namespace.forwardRef(({className:e,size:t,onEmojiSelect:r,recentEmojis:a=[],defaultCategory:n="smileys",showSearch:o=true,showCategories:s=true,...l},c)=>{let[d,m]=___namespace.useState(a.length>0?"recent":n),[u,p]=___namespace.useState(""),b=u?Object.values(Kl).flat().filter(g=>g.toLowerCase().includes(u.toLowerCase())):d==="recent"?a:Kl[d]||[],x=g=>{r?.(g);};return jsxRuntime.jsxs("div",{ref:c,className:i(sv({size:t,className:e})),...l,children:[o&&jsxRuntime.jsx("div",{className:"p-2 border-b",children:jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx(lucideReact.Search,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),jsxRuntime.jsx(Eo,{placeholder:"Search emojis...",value:u,onChange:g=>p(g.target.value),className:"pl-8 h-8"})]})}),s&&!u&&jsxRuntime.jsx("div",{className:"flex border-b px-1",children:Object.entries(Bs).map(([g,{icon:v}])=>g==="recent"&&a.length===0?null:jsxRuntime.jsx("button",{className:i("flex-1 p-2 text-lg hover:bg-accent rounded transition-colors",d===g&&"bg-accent"),onClick:()=>m(g),title:Bs[g].name,children:v},g))}),!u&&jsxRuntime.jsx("div",{className:"px-3 py-1.5 text-xs font-medium text-muted-foreground",children:Bs[d].name}),jsxRuntime.jsx(_e,{className:"flex-1",children:jsxRuntime.jsxs("div",{className:"grid grid-cols-8 gap-1 p-2",children:[b.map((g,v)=>jsxRuntime.jsx("button",{className:"w-8 h-8 flex items-center justify-center text-xl hover:bg-accent rounded transition-colors",onClick:()=>x(g),children:g},`${g}-${v}`)),b.length===0&&jsxRuntime.jsx("div",{className:"col-span-8 py-8 text-center text-muted-foreground text-sm",children:"No emojis found"})]})})]})});iv.displayName="EmojiPicker";var lv=classVarianceAuthority.cva("flex flex-col border rounded-lg bg-background overflow-hidden",{variants:{variant:{default:"",bordered:"border-2",ghost:"border-transparent"},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"default",size:"md"}}),PT=classVarianceAuthority.cva("flex flex-wrap items-center gap-0.5 p-1 border-b",{variants:{size:{sm:"p-0.5",md:"p-1",lg:"p-1.5"}},defaultVariants:{size:"md"}}),kT=classVarianceAuthority.cva("flex-1 overflow-auto prose prose-sm max-w-none dark:prose-invert [&_.ProseMirror]:outline-none [&_.ProseMirror]:min-h-[inherit] [&_.ProseMirror.is-editor-empty:first-child::before]:text-muted-foreground [&_.ProseMirror.is-editor-empty:first-child::before]:content-[attr(data-placeholder)] [&_.ProseMirror.is-editor-empty:first-child::before]:float-left [&_.ProseMirror.is-editor-empty:first-child::before]:pointer-events-none [&_.ProseMirror.is-editor-empty:first-child::before]:h-0",{variants:{size:{sm:"min-h-[100px] [&_.ProseMirror]:p-2 text-sm",md:"min-h-[150px] [&_.ProseMirror]:p-3 text-sm",lg:"min-h-[200px] [&_.ProseMirror]:p-4 text-base"}},defaultVariants:{size:"md"}}),We=({icon:e,title:t,isActive:r,onClick:a,disabled:n})=>jsxRuntime.jsxs(_r,{children:[jsxRuntime.jsx(jr,{asChild:true,children:jsxRuntime.jsx(Z,{type:"button",variant:r?"solid":"ghost",size:"icon",className:"h-7 w-7",onClick:a,disabled:n,children:e})}),jsxRuntime.jsx(Wr,{side:"top",className:"text-xs",children:t})]}),cv=___namespace.forwardRef(({className:e,variant:t,size:r,value:a="",onChange:n,placeholder:o="Start writing...",readOnly:s=false,showToolbar:l=true,minHeight:c,maxHeight:d,onEditorReady:m,...u},p)=>{let f=react.useEditor({extensions:[nT__default.default.configure({heading:{levels:[1,2,3]}}),oT__default.default.configure({openOnClick:false,HTMLAttributes:{class:"text-primary underline"}}),sT__default.default,iT__default.default.configure({types:["heading","paragraph"]}),lT__default.default.configure({placeholder:o})],content:a,editable:!s,onUpdate:({editor:x})=>{n?.(x.getHTML());},onCreate:({editor:x})=>{m?.(x);}});___namespace.useEffect(()=>{f&&a!==f.getHTML()&&f.commands.setContent(a);},[a,f]),___namespace.useEffect(()=>{f&&f.setEditable(!s);},[s,f]);let b=()=>{if(!f)return;let x=f.getAttributes("link").href,g=window.prompt("URL",x);if(g!==null){if(g===""){f.chain().focus().extendMarkRange("link").unsetLink().run();return}f.chain().focus().extendMarkRange("link").setLink({href:g}).run();}};return f?jsxRuntime.jsx($r,{children:jsxRuntime.jsxs("div",{ref:p,className:i(lv({variant:t,size:r,className:e})),...u,children:[l&&!s&&jsxRuntime.jsxs("div",{className:i(PT({size:r})),children:[jsxRuntime.jsx(We,{icon:jsxRuntime.jsx(lucideReact.Undo,{className:"h-4 w-4"}),title:"Undo",onClick:()=>f.chain().focus().undo().run(),disabled:!f.can().undo()}),jsxRuntime.jsx(We,{icon:jsxRuntime.jsx(lucideReact.Redo,{className:"h-4 w-4"}),title:"Redo",onClick:()=>f.chain().focus().redo().run(),disabled:!f.can().redo()}),jsxRuntime.jsx(Gr,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(We,{icon:jsxRuntime.jsx(lucideReact.Heading1,{className:"h-4 w-4"}),title:"Heading 1",isActive:f.isActive("heading",{level:1}),onClick:()=>f.chain().focus().toggleHeading({level:1}).run()}),jsxRuntime.jsx(We,{icon:jsxRuntime.jsx(lucideReact.Heading2,{className:"h-4 w-4"}),title:"Heading 2",isActive:f.isActive("heading",{level:2}),onClick:()=>f.chain().focus().toggleHeading({level:2}).run()}),jsxRuntime.jsx(We,{icon:jsxRuntime.jsx(lucideReact.Heading3,{className:"h-4 w-4"}),title:"Heading 3",isActive:f.isActive("heading",{level:3}),onClick:()=>f.chain().focus().toggleHeading({level:3}).run()}),jsxRuntime.jsx(Gr,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(We,{icon:jsxRuntime.jsx(lucideReact.Bold,{className:"h-4 w-4"}),title:"Bold (Ctrl+B)",isActive:f.isActive("bold"),onClick:()=>f.chain().focus().toggleBold().run()}),jsxRuntime.jsx(We,{icon:jsxRuntime.jsx(lucideReact.Italic,{className:"h-4 w-4"}),title:"Italic (Ctrl+I)",isActive:f.isActive("italic"),onClick:()=>f.chain().focus().toggleItalic().run()}),jsxRuntime.jsx(We,{icon:jsxRuntime.jsx(lucideReact.Underline,{className:"h-4 w-4"}),title:"Underline (Ctrl+U)",isActive:f.isActive("underline"),onClick:()=>f.chain().focus().toggleUnderline().run()}),jsxRuntime.jsx(We,{icon:jsxRuntime.jsx(lucideReact.Strikethrough,{className:"h-4 w-4"}),title:"Strikethrough",isActive:f.isActive("strike"),onClick:()=>f.chain().focus().toggleStrike().run()}),jsxRuntime.jsx(Gr,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(We,{icon:jsxRuntime.jsx(lucideReact.List,{className:"h-4 w-4"}),title:"Bullet List",isActive:f.isActive("bulletList"),onClick:()=>f.chain().focus().toggleBulletList().run()}),jsxRuntime.jsx(We,{icon:jsxRuntime.jsx(lucideReact.ListOrdered,{className:"h-4 w-4"}),title:"Numbered List",isActive:f.isActive("orderedList"),onClick:()=>f.chain().focus().toggleOrderedList().run()}),jsxRuntime.jsx(Gr,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(We,{icon:jsxRuntime.jsx(lucideReact.AlignLeft,{className:"h-4 w-4"}),title:"Align Left",isActive:f.isActive({textAlign:"left"}),onClick:()=>f.chain().focus().setTextAlign("left").run()}),jsxRuntime.jsx(We,{icon:jsxRuntime.jsx(lucideReact.AlignCenter,{className:"h-4 w-4"}),title:"Align Center",isActive:f.isActive({textAlign:"center"}),onClick:()=>f.chain().focus().setTextAlign("center").run()}),jsxRuntime.jsx(We,{icon:jsxRuntime.jsx(lucideReact.AlignRight,{className:"h-4 w-4"}),title:"Align Right",isActive:f.isActive({textAlign:"right"}),onClick:()=>f.chain().focus().setTextAlign("right").run()}),jsxRuntime.jsx(Gr,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(We,{icon:jsxRuntime.jsx(lucideReact.Quote,{className:"h-4 w-4"}),title:"Blockquote",isActive:f.isActive("blockquote"),onClick:()=>f.chain().focus().toggleBlockquote().run()}),jsxRuntime.jsx(We,{icon:jsxRuntime.jsx(lucideReact.Code,{className:"h-4 w-4"}),title:"Code Block",isActive:f.isActive("codeBlock"),onClick:()=>f.chain().focus().toggleCodeBlock().run()}),jsxRuntime.jsx(Gr,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(We,{icon:jsxRuntime.jsx(lucideReact.Link,{className:"h-4 w-4"}),title:"Insert Link",isActive:f.isActive("link"),onClick:b}),jsxRuntime.jsx(We,{icon:jsxRuntime.jsx(lucideReact.Unlink,{className:"h-4 w-4"}),title:"Remove Link",onClick:()=>f.chain().focus().unsetLink().run(),disabled:!f.isActive("link")})]}),jsxRuntime.jsx(react.EditorContent,{editor:f,className:i(kT({size:r})),style:{minHeight:c,maxHeight:d}})]})}):null});cv.displayName="RichTextEditor";var uv=classVarianceAuthority.cva("flex flex-col border rounded-lg bg-background overflow-hidden",{variants:{variant:{default:"",bordered:"border-2",ghost:"border-none bg-transparent"}},defaultVariants:{variant:"default"}});function AT(e,t,r){return ET.centerCrop(ET.makeAspectCrop({unit:"%",width:90},r,e,t),e,t)}async function dv(e,t,r=0,a=1){let n=document.createElement("canvas"),o=n.getContext("2d");if(!o)return null;let s=e.naturalWidth/e.width,l=e.naturalHeight/e.height,c=window.devicePixelRatio||1;n.width=Math.floor(t.width*s*c),n.height=Math.floor(t.height*l*c),o.scale(c,c),o.imageSmoothingQuality="high";let d=t.x*s,m=t.y*l,u=r*Math.PI/180,p=e.naturalWidth/2,f=e.naturalHeight/2;return o.save(),o.translate(-d,-m),o.translate(p,f),o.rotate(u),o.scale(a,a),o.translate(-p,-f),o.drawImage(e,0,0,e.naturalWidth,e.naturalHeight,0,0,e.naturalWidth,e.naturalHeight),o.restore(),new Promise(b=>{n.toBlob(x=>{b(x);},"image/png");})}var mv=___namespace.forwardRef(({className:e,variant:t,src:r,aspectRatio:a,onCropChange:n,onCropComplete:o,showZoom:s=true,showRotation:l=true,minZoom:c=1,maxZoom:d=3,circularCrop:m=false,initialCrop:u,...p},f)=>{let b=___namespace.useRef(null),[x,g]=___namespace.useState(),[v,R]=___namespace.useState(),[w,h]=___namespace.useState(1),[C,y]=___namespace.useState(0),T=P=>{let{width:k,height:L}=P.currentTarget;if(a){let H=AT(k,L,a);g(H);}else g(u||{unit:"%",x:10,y:10,width:80,height:80});},N=P=>{g(P),n?.(P);},E=async P=>{if(R(P),o&&b.current&&P.width&&P.height){let k=await dv(b.current,P,C,w);o(k);}},M=()=>{y(P=>(P+90)%360);};return ___namespace.useEffect(()=>{v&&b.current&&o&&dv(b.current,v,C,w).then(P=>{o(P);});},[w,C,v,o]),jsxRuntime.jsxs("div",{ref:f,className:i(uv({variant:t,className:e})),...p,children:[jsxRuntime.jsx("div",{className:"flex-1 flex items-center justify-center p-4 bg-muted/30 min-h-[300px]",children:jsxRuntime.jsx(ET__default.default,{crop:x,onChange:N,onComplete:E,aspect:a,circularCrop:m,className:"max-h-[400px]",children:jsxRuntime.jsx("img",{ref:b,src:r,alt:"Crop preview",onLoad:T,style:{transform:`scale(${w}) rotate(${C}deg)`,maxHeight:"400px"}})})}),jsxRuntime.jsxs("div",{className:"flex items-center gap-4 p-3 border-t",children:[s&&jsxRuntime.jsxs("div",{className:"flex items-center gap-2 flex-1",children:[jsxRuntime.jsx(lucideReact.ZoomOut,{className:"h-4 w-4 text-muted-foreground"}),jsxRuntime.jsx(Yo,{value:[w],onValueChange:([P])=>h(P),min:c,max:d,step:.1,className:"flex-1"}),jsxRuntime.jsx(lucideReact.ZoomIn,{className:"h-4 w-4 text-muted-foreground"})]}),l&&jsxRuntime.jsx(Z,{variant:"bordered",size:"icon",onClick:M,children:jsxRuntime.jsx(lucideReact.RotateCw,{className:"h-4 w-4"})})]})]})});mv.displayName="ImageCropper";var jl=classVarianceAuthority.cva("inline-block",{variants:{variant:{default:"",bordered:"border rounded-lg p-2",card:"border rounded-lg p-4 bg-card shadow-sm"},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"default",size:"md"}}),OT={sm:96,md:128,lg:192},fv=___namespace.forwardRef(({className:e,variant:t,size:r,value:a,qrSize:n,fgColor:o="currentColor",bgColor:s="transparent",level:l="M",includeMargin:c=false,title:d,logo:m,logoSize:u=40,logoPadding:p=4,logoBackgroundColor:f="white",...b},x)=>{let g=n??OT[r??"md"];return a?jsxRuntime.jsx("div",{ref:x,className:i(jl({variant:t,size:r,className:e})),...b,children:jsxRuntime.jsxs("div",{className:"relative inline-block",children:[jsxRuntime.jsx(zT__default.default,{value:a,size:g,fgColor:o,bgColor:s,level:l,title:d,style:{padding:c?16:0}}),m&&jsxRuntime.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 rounded",style:{padding:p,backgroundColor:f},children:jsxRuntime.jsx("img",{src:m,alt:"Logo",style:{width:u,height:u,objectFit:"contain"}})})]})}):jsxRuntime.jsx("div",{ref:x,className:i(jl({variant:t,size:r,className:e})),...b,children:jsxRuntime.jsx("div",{className:"flex items-center justify-center bg-muted text-muted-foreground text-xs rounded",style:{width:g,height:g},children:"No data"})})});fv.displayName="QRCode";var gv=({children:e,defaultTheme:t="system",storageKey:r="reever-ui-theme",enableSystem:a=true,disableTransitionOnChange:n=false,attribute:o="class",forcedTheme:s,themes:l=["light","dark"]})=>jsxRuntime.jsx(nextThemes.ThemeProvider,{defaultTheme:t,storageKey:r,enableSystem:a,disableTransitionOnChange:n,attribute:o,forcedTheme:s,themes:l,children:e});gv.displayName="ThemeProvider";var WT=classVarianceAuthority.cva("",{variants:{variant:{default:"",bordered:"",ghost:""},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"ghost",size:"md"}}),bv=___namespace.forwardRef(({className:e,variant:t="ghost",size:r="md",mode:a="dropdown"},n)=>{let{theme:o,setTheme:s,resolvedTheme:l}=nextThemes.useTheme(),[c,d]=___namespace.useState(false);___namespace.useEffect(()=>{d(true);},[]);let m=()=>{let u=["light","dark","system"],f=(u.indexOf(o||"system")+1)%u.length;s(u[f]);};return c?a==="cycle"?jsxRuntime.jsxs(Z,{ref:n,variant:t==="default"?"bordered":t,size:"icon",className:i("h-9 w-9",e),onClick:m,children:[l==="dark"?jsxRuntime.jsx(lucideReact.Moon,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.Sun,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle theme"})]}):jsxRuntime.jsxs(Yr,{children:[jsxRuntime.jsx(Ur,{asChild:true,children:jsxRuntime.jsxs(Z,{ref:n,variant:t==="default"?"bordered":t,size:"icon",className:i("h-9 w-9",e),children:[jsxRuntime.jsx(lucideReact.Sun,{className:"h-4 w-4 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),jsxRuntime.jsx(lucideReact.Moon,{className:"absolute h-4 w-4 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}),jsxRuntime.jsxs(Xr,{align:"end",children:[jsxRuntime.jsxs(qt,{onClick:()=>s("light"),children:[jsxRuntime.jsx(lucideReact.Sun,{className:"mr-2 h-4 w-4"}),"Light"]}),jsxRuntime.jsxs(qt,{onClick:()=>s("dark"),children:[jsxRuntime.jsx(lucideReact.Moon,{className:"mr-2 h-4 w-4"}),"Dark"]}),jsxRuntime.jsxs(qt,{onClick:()=>s("system"),children:[jsxRuntime.jsx(lucideReact.Monitor,{className:"mr-2 h-4 w-4"}),"System"]})]})]}):jsxRuntime.jsxs(Z,{ref:n,variant:t==="default"?"bordered":t,size:"icon",className:i("h-9 w-9",e),disabled:true,children:[jsxRuntime.jsx(lucideReact.Sun,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle theme"})]})});bv.displayName="ThemeToggle";var vv=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),hv=classVarianceAuthority.cva("flex w-full rounded-md border border-input bg-background ring-offset-background file:border-0 file:bg-transparent 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",{variants:{size:{sm:"h-8 px-2.5 py-1.5 text-xs",md:"h-10 px-3 py-2 text-sm",lg:"h-12 px-4 py-3 text-base"},isInvalid:{true:"border-danger focus-visible:ring-danger",false:""}},defaultVariants:{size:"md",isInvalid:false}}),xv=classVarianceAuthority.cva("font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),yv=___namespace.forwardRef(({className:e,label:t,description:r,errorMessage:a,isRequired:n,isInvalid:o,size:s,labelClassName:l,inputClassName:c,descriptionClassName:d,errorClassName:m,startContent:u,endContent:p,id:f,...b},x)=>{let g=___namespace.useId(),v=f||g,R=`${v}-description`,w=`${v}-error`,h=o&&a;return jsxRuntime.jsxs("div",{className:i(vv({size:s}),e),children:[t&&jsxRuntime.jsxs("label",{htmlFor:v,className:i(xv({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:"relative",children:[u&&jsxRuntime.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:u}),jsxRuntime.jsx("input",{ref:x,id:v,"aria-invalid":o,"aria-describedby":h?w:r?R:void 0,"aria-required":n,className:i(hv({size:s,isInvalid:o}),u&&"pl-10",p&&"pr-10",c),...b}),p&&jsxRuntime.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:p})]}),r&&!h&&jsxRuntime.jsx("p",{id:R,className:i("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",d),children:r}),h&&jsxRuntime.jsx("p",{id:w,role:"alert",className:i("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a})]})});yv.displayName="TextField";var Cv=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),XT=classVarianceAuthority.cva("flex rounded-md border border-input bg-background placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50 text-center [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",{variants:{size:{sm:"h-8 px-8 py-1.5 text-xs",md:"h-10 px-10 py-2 text-sm",lg:"h-12 px-12 py-3 text-base"},isInvalid:{true:"border-danger focus:border-danger",false:""},fullWidth:{true:"w-full",false:"w-fit min-w-24"}},defaultVariants:{size:"md",isInvalid:false,fullWidth:false}}),Rv=classVarianceAuthority.cva("absolute top-1/2 -translate-y-1/2 flex items-center justify-center rounded-md text-muted-foreground hover:text-foreground hover:bg-muted disabled:opacity-50 disabled:cursor-not-allowed transition-colors",{variants:{size:{sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10"}},defaultVariants:{size:"md"}}),wv=classVarianceAuthority.cva("",{variants:{size:{sm:"h-3 w-3",md:"h-4 w-4",lg:"h-5 w-5"}},defaultVariants:{size:"md"}}),qT=classVarianceAuthority.cva("font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),Nv=___namespace.forwardRef(({className:e,label:t,description:r,errorMessage:a,isRequired:n,isInvalid:o,size:s,labelClassName:l,inputClassName:c,descriptionClassName:d,errorClassName:m,min:u,max:p,step:f=1,value:b,defaultValue:x,onChange:g,showButtons:v=true,formatOptions:R,fullWidth:w=false,disabled:h,id:C,...y},T)=>{let N=___namespace.useId(),E=C||N,M=`${E}-description`,P=`${E}-error`,[k,L]=___namespace.useState(x),[H,S]=___namespace.useState(false),D=b!==void 0?b:k,V=o&&a,z=___namespace.useCallback(B=>{B!==void 0&&(u!==void 0&&B<u&&(B=u),p!==void 0&&B>p&&(B=p)),b===void 0&&L(B),g?.(B);},[b,u,p,g]),G=()=>{let B=(D??0)+f;z(B);},I=()=>{let B=(D??0)-f;z(B);},F=B=>{let j=B.target.value;if(j==="")z(void 0);else {let A=parseFloat(j);isNaN(A)||z(A);}},O=B=>{B.key==="ArrowUp"?(B.preventDefault(),G()):B.key==="ArrowDown"&&(B.preventDefault(),I());},ee=___namespace.useMemo(()=>D===void 0?"":R?new Intl.NumberFormat(void 0,R).format(D):D.toString(),[D,R]),ae=u!==void 0&&D!==void 0&&D<=u,K=p!==void 0&&D!==void 0&&D>=p;return jsxRuntime.jsxs("div",{className:i(Cv({size:s}),e),children:[t&&jsxRuntime.jsxs("label",{htmlFor:E,className:i(qT({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:"relative",children:[v&&jsxRuntime.jsx("button",{type:"button",onClick:I,disabled:h||ae,className:i(Rv({size:s}),"left-1"),tabIndex:-1,"aria-label":"Decrease value",children:jsxRuntime.jsx(lucideReact.Minus,{className:i(wv({size:s}))})}),jsxRuntime.jsx("input",{ref:T,id:E,type:"text",inputMode:"decimal",value:ee,onChange:F,onKeyDown:O,onFocus:()=>S(true),onBlur:()=>S(false),"aria-invalid":o,"aria-describedby":V?P:r?M:void 0,"aria-required":n,"aria-valuemin":u,"aria-valuemax":p,"aria-valuenow":D,disabled:h,className:i(XT({size:s,isInvalid:o,fullWidth:w}),!v&&"px-3",c),style:{borderColor:H?"var(--color-foreground)":void 0},...y}),v&&jsxRuntime.jsx("button",{type:"button",onClick:G,disabled:h||K,className:i(Rv({size:s}),"right-1"),tabIndex:-1,"aria-label":"Increase value",children:jsxRuntime.jsx(lucideReact.Plus,{className:i(wv({size:s}))})})]}),r&&!V&&jsxRuntime.jsx("p",{id:M,className:i("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",d),children:r}),V&&jsxRuntime.jsx("p",{id:P,role:"alert",className:i("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a})]})});Nv.displayName="NumberField";var Tv=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),QT=classVarianceAuthority.cva("flex w-full rounded-md border border-input bg-background 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",{variants:{size:{sm:"h-8 pl-8 pr-8 py-1.5 text-xs",md:"h-10 pl-10 pr-10 py-2 text-sm",lg:"h-12 pl-12 pr-12 py-3 text-base"},isInvalid:{true:"border-danger focus-visible:ring-danger",false:""}},defaultVariants:{size:"md",isInvalid:false}}),Mv=classVarianceAuthority.cva("text-muted-foreground",{variants:{size:{sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"}},defaultVariants:{size:"md"}}),eP=classVarianceAuthority.cva("font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),tP=classVarianceAuthority.cva("absolute top-1/2 -translate-y-1/2 flex items-center justify-center rounded-full text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",{variants:{size:{sm:"h-5 w-5 right-1.5",md:"h-6 w-6 right-2",lg:"h-7 w-7 right-2.5"}},defaultVariants:{size:"md"}}),Pv=___namespace.forwardRef(({className:e,label:t,description:r,errorMessage:a,isRequired:n,isInvalid:o,size:s,labelClassName:l,inputClassName:c,descriptionClassName:d,errorClassName:m,value:u,defaultValue:p="",onChange:f,onClear:b,onSearch:x,showClearButton:g=true,showSearchIcon:v=true,disabled:R,placeholder:w="Search...",id:h,...C},y)=>{let T=___namespace.useId(),N=h||T,E=`${N}-description`,M=`${N}-error`,[P,k]=___namespace.useState(p),L=u!==void 0?u:P,H=o&&a,S=L.length>0,D=G=>{let I=G.target.value;u===void 0&&k(I),f?.(I);},V=()=>{u===void 0&&k(""),f?.(""),b?.();},z=G=>{G.key==="Enter"?(G.preventDefault(),x?.(L)):G.key==="Escape"&&S&&(G.preventDefault(),V());};return jsxRuntime.jsxs("div",{className:i(Tv({size:s}),e),children:[t&&jsxRuntime.jsxs("label",{htmlFor:N,className:i(eP({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:"relative",children:[v&&jsxRuntime.jsx(lucideReact.Search,{className:i(Mv({size:s}),"absolute left-3 top-1/2 -translate-y-1/2")}),jsxRuntime.jsx("input",{ref:y,id:N,type:"search",value:L,onChange:D,onKeyDown:z,placeholder:w,"aria-invalid":o,"aria-describedby":H?M:r?E:void 0,"aria-required":n,disabled:R,className:i(QT({size:s,isInvalid:o}),!v&&"pl-3",!g&&"pr-3",c),...C}),g&&S&&!R&&jsxRuntime.jsx("button",{type:"button",onClick:V,className:i(tP({size:s})),tabIndex:-1,"aria-label":"Clear search",children:jsxRuntime.jsx(lucideReact.X,{className:i(Mv({size:s}))})})]}),r&&!H&&jsxRuntime.jsx("p",{id:E,className:i("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",d),children:r}),H&&jsxRuntime.jsx("p",{id:M,role:"alert",className:i("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a})]})});Pv.displayName="SearchField";var kv=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),aP=classVarianceAuthority.cva("flex rounded-md border border-input bg-background placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50 [&::-webkit-calendar-picker-indicator]:hidden",{variants:{size:{sm:"h-8 pl-3 pr-8 py-1.5 text-xs",md:"h-10 pl-3 pr-10 py-2 text-sm",lg:"h-12 pl-4 pr-12 py-3 text-base"},isInvalid:{true:"border-danger focus:border-danger",false:""},fullWidth:{true:"w-full",false:"w-fit"}},defaultVariants:{size:"md",isInvalid:false,fullWidth:false}}),nP=classVarianceAuthority.cva("text-muted-foreground",{variants:{size:{sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"}},defaultVariants:{size:"md"}}),oP=classVarianceAuthority.cva("font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),Zl=(e,t="yyyy-MM-dd")=>{if(!e)return "";let r=e.getFullYear(),a=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return t.replace("yyyy",String(r)).replace("MM",a).replace("dd",n)},sP=e=>{if(!e)return null;let t=new Date(e);return isNaN(t.getTime())?null:t},Ev=___namespace.forwardRef(({className:e,label:t,description:r,errorMessage:a,isRequired:n,isInvalid:o,size:s,labelClassName:l,inputClassName:c,descriptionClassName:d,errorClassName:m,value:u,defaultValue:p,onChange:f,minDate:b,maxDate:x,dateFormat:g="yyyy-MM-dd",showIcon:v=true,fullWidth:R=false,disabled:w,id:h,...C},y)=>{let T=___namespace.useId(),N=h||T,E=`${N}-description`,M=`${N}-error`,P=___namespace.useRef(null),k=y||P,[L,H]=___namespace.useState(p??null),[S,D]=___namespace.useState(false),V=()=>{!w&&k.current&&k.current.showPicker?.();},z=u!==void 0?u:L,G=o&&a,I=ae=>{let K=sP(ae.target.value);u===void 0&&H(K),f?.(K);},F=z?Zl(z,"yyyy-MM-dd"):"",O=b?Zl(b,"yyyy-MM-dd"):void 0,ee=x?Zl(x,"yyyy-MM-dd"):void 0;return jsxRuntime.jsxs("div",{className:i(kv({size:s}),e),children:[t&&jsxRuntime.jsxs("label",{htmlFor:N,className:i(oP({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:i("relative",R?"w-full":"w-fit"),children:[jsxRuntime.jsx("input",{ref:k,id:N,type:"date",value:F,onChange:I,onFocus:()=>D(true),onBlur:()=>D(false),min:O,max:ee,"aria-invalid":o,"aria-describedby":G?M:r?E:void 0,"aria-required":n,disabled:w,className:i(aP({size:s,isInvalid:o,fullWidth:R}),!v&&"pr-3",c),style:{borderColor:S?"var(--color-foreground)":void 0},...C}),v&&jsxRuntime.jsx("button",{type:"button",onClick:V,disabled:w,className:"absolute right-3 top-1/2 -translate-y-1/2 cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",tabIndex:-1,"aria-label":"Open calendar",children:jsxRuntime.jsx(lucideReact.Calendar,{className:i(nP({size:s}))})})]}),r&&!G&&jsxRuntime.jsx("p",{id:E,className:i("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",d),children:r}),G&&jsxRuntime.jsx("p",{id:M,role:"alert",className:i("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a})]})});Ev.displayName="DateField";var Lv=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),iP=classVarianceAuthority.cva("inline-flex items-center rounded-md border border-input bg-background transition-colors",{variants:{size:{sm:"h-8 px-2 gap-0.5 text-xs",md:"h-10 px-3 gap-1 text-sm",lg:"h-12 px-4 gap-1.5 text-base"},isInvalid:{true:"border-danger",false:""},disabled:{true:"cursor-not-allowed opacity-50",false:""},fullWidth:{true:"w-full justify-center",false:"w-fit"}},defaultVariants:{size:"md",isInvalid:false,disabled:false,fullWidth:false}}),lP=classVarianceAuthority.cva("font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),Dv=___namespace.forwardRef(({className:e,label:t,description:r,errorMessage:a,isRequired:n,isInvalid:o,size:s,labelClassName:l,inputClassName:c,descriptionClassName:d,errorClassName:m,value:u,defaultValue:p,onChange:f,minTime:b,maxTime:x,showSeconds:g=false,hourCycle:v=24,disabled:R,fullWidth:w=false,id:h,...C},y)=>{let T=___namespace.useId(),N=h||T,E=`${N}-description`,M=`${N}-error`,P=___namespace.useRef(null),k=___namespace.useRef(null),L=___namespace.useRef(null),H=___namespace.useRef(null),[S,D]=___namespace.useState(p??null),V=u!==void 0?u:S,z=o&&a,G=$=>v===24?$:$===0?12:$>12?$-12:$,I=$=>$>=12?"PM":"AM",F=($,te)=>te==="AM"?$===12?0:$:$===12?12:$+12,[O,ee]=___namespace.useState(V?String(G(V.hour)).padStart(2,"0"):""),[ae,K]=___namespace.useState(V?String(V.minute).padStart(2,"0"):""),[B,j]=___namespace.useState(V?.second!==void 0?String(V.second).padStart(2,"0"):""),[A,W]=___namespace.useState(V?I(V.hour):"AM"),[Y,Se]=___namespace.useState(false);___namespace.useEffect(()=>{u!==void 0&&(u?(ee(String(G(u.hour)).padStart(2,"0")),K(String(u.minute).padStart(2,"0")),u.second!==void 0&&j(String(u.second).padStart(2,"0")),W(I(u.hour))):(ee(""),K(""),j("")));},[u,v]);let pe=($,te,Ke,Vt)=>{let Ne=parseInt($,10),yt=parseInt(te,10),le=g?parseInt(Ke,10):void 0;if(isNaN(Ne)||isNaN(yt)||g&&isNaN(le)){u===void 0&&D(null),f?.(null);return}let pt={hour:v===12?F(Ne,Vt):Ne,minute:yt,...g&&le!==void 0&&{second:le}};u===void 0&&D(pt),f?.(pt);},Xa=$=>{let te=$.target.value.replace(/\D/g,"").slice(0,2);ee(te);let Ke=v===24?23:12,Vt=v===24?0:1;if(te.length===2){let Ne=parseInt(te,10);Ne>=Vt&&Ne<=Ke&&(k.current?.focus(),k.current?.select());}},re=$=>{let te=$.target.value.replace(/\D/g,"").slice(0,2);if(K(te),te.length===2){let Ke=parseInt(te,10);Ke>=0&&Ke<=59&&(g?(L.current?.focus(),L.current?.select()):v===12&&H.current?.focus());}},Ue=$=>{let te=$.target.value.replace(/\D/g,"").slice(0,2);j(te),te.length===2&&v===12&&H.current?.focus();},Ut=()=>{if(O){let $=parseInt(O,10),te=v===24?23:12,Vt=Math.min(Math.max($,v===24?0:1),te),Ne=String(Vt).padStart(2,"0");ee(Ne),pe(Ne,ae,B,A);}},St=()=>{if(ae){let $=parseInt(ae,10),te=Math.min(Math.max($,0),59),Ke=String(te).padStart(2,"0");K(Ke),pe(O,Ke,B,A);}},mr=()=>{if(B){let $=parseInt(B,10),te=Math.min(Math.max($,0),59),Ke=String(te).padStart(2,"0");j(Ke),pe(O,ae,Ke,A);}},qa=()=>{let $=A==="AM"?"PM":"AM";W($),pe(O,ae,B,$);},oe=$=>{let te=$.key.toLowerCase();te==="a"?($.preventDefault(),A!=="AM"&&(W("AM"),pe(O,ae,B,"AM"))):te==="p"?($.preventDefault(),A!=="PM"&&(W("PM"),pe(O,ae,B,"PM"))):te==="arrowup"||te==="arrowdown"?($.preventDefault(),qa()):te==="arrowleft"&&($.preventDefault(),g?(L.current?.focus(),L.current?.select()):(k.current?.focus(),k.current?.select()));},Ht=($,te)=>{if($.key==="ArrowUp"||$.key==="ArrowDown"){$.preventDefault();let Ke=$.key==="ArrowUp"?1:-1;if(te==="hour"){let Vt=parseInt(O,10)||0,Ne=v===24?23:12,yt=v===24?0:1,le=Vt+Ke;le>Ne&&(le=yt),le<yt&&(le=Ne);let Ae=String(le).padStart(2,"0");ee(Ae),pe(Ae,ae,B,A);}else if(te==="minute"){let Ne=(parseInt(ae,10)||0)+Ke;Ne>59&&(Ne=0),Ne<0&&(Ne=59);let yt=String(Ne).padStart(2,"0");K(yt),pe(O,yt,B,A);}else if(te==="second"){let Ne=(parseInt(B,10)||0)+Ke;Ne>59&&(Ne=0),Ne<0&&(Ne=59);let yt=String(Ne).padStart(2,"0");j(yt),pe(O,ae,yt,A);}}$.key==="ArrowRight"&&($.preventDefault(),te==="hour"?(k.current?.focus(),k.current?.select()):te==="minute"&&g?(L.current?.focus(),L.current?.select()):(te==="minute"&&!g&&v===12||te==="second"&&v===12)&&H.current?.focus()),$.key==="ArrowLeft"&&($.preventDefault(),te==="minute"?(P.current?.focus(),P.current?.select()):te==="second"&&(k.current?.focus(),k.current?.select())),$.key==="Backspace"&&$.currentTarget.value===""&&(te==="minute"?P.current?.focus():te==="second"&&k.current?.focus());},It=i((()=>{switch(s){case "sm":return "w-5";case "lg":return "w-7";default:return "w-6"}})(),"bg-transparent text-center outline-none placeholder:text-muted-foreground tabular-nums",R&&"cursor-not-allowed");return jsxRuntime.jsxs("div",{ref:y,className:i(Lv({size:s}),e),...C,children:[t&&jsxRuntime.jsxs("label",{htmlFor:N,className:i(lP({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:i(iP({size:s,isInvalid:o,disabled:R,fullWidth:w}),c),style:{borderColor:Y?"var(--color-foreground)":void 0},onFocus:()=>Se(true),onBlur:$=>{$.currentTarget.contains($.relatedTarget)||Se(false);},children:[jsxRuntime.jsx("input",{ref:P,id:N,type:"text",inputMode:"numeric",placeholder:v===24?"HH":"hh",value:O,onChange:Xa,onBlur:Ut,onKeyDown:$=>Ht($,"hour"),onFocus:$=>$.target.select(),"aria-label":"Hour","aria-invalid":o,"aria-describedby":z?M:r?E:void 0,"aria-required":n,disabled:R,className:It}),jsxRuntime.jsx("span",{className:"text-muted-foreground",children:":"}),jsxRuntime.jsx("input",{ref:k,type:"text",inputMode:"numeric",placeholder:"mm",value:ae,onChange:re,onBlur:St,onKeyDown:$=>Ht($,"minute"),onFocus:$=>$.target.select(),"aria-label":"Minute",disabled:R,className:It}),g&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"text-muted-foreground",children:":"}),jsxRuntime.jsx("input",{ref:L,type:"text",inputMode:"numeric",placeholder:"ss",value:B,onChange:Ue,onBlur:mr,onKeyDown:$=>Ht($,"second"),onFocus:$=>$.target.select(),"aria-label":"Second",disabled:R,className:It})]}),v===12&&jsxRuntime.jsx("button",{ref:H,type:"button",onClick:qa,onKeyDown:oe,disabled:R,className:i("ml-0.5 rounded text-muted-foreground hover:text-foreground focus:outline-none focus:text-foreground transition-colors tabular-nums",s==="sm"?"w-6":s==="lg"?"w-8":"w-7",R&&"cursor-not-allowed"),"aria-label":"AM/PM",children:A})]}),r&&!z&&jsxRuntime.jsx("p",{id:E,className:i("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",d),children:r}),z&&jsxRuntime.jsx("p",{id:M,role:"alert",className:i("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a})]})});Dv.displayName="TimeField";var Hv=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),dP=classVarianceAuthority.cva("flex rounded-md border border-input bg-background placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50 font-mono uppercase",{variants:{size:{sm:"h-8 pl-10 pr-3 py-1.5 text-xs",md:"h-10 pl-12 pr-3 py-2 text-sm",lg:"h-12 pl-14 pr-4 py-3 text-base"},isInvalid:{true:"border-danger focus:border-danger",false:""},fullWidth:{true:"w-full",false:"w-fit"}},defaultVariants:{size:"md",isInvalid:false,fullWidth:false}}),uP=classVarianceAuthority.cva("absolute left-2 top-1/2 -translate-y-1/2 rounded border border-input overflow-hidden",{variants:{size:{sm:"h-5 w-5",md:"h-6 w-6",lg:"h-8 w-8"}},defaultVariants:{size:"md"}}),mP=classVarianceAuthority.cva("font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),Sv=e=>/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.test(e),pP=e=>(e.startsWith("#")||(e="#"+e),e.length===4&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]),e.toUpperCase()),Iv=___namespace.forwardRef(({className:e,label:t,description:r,errorMessage:a,isRequired:n,isInvalid:o,size:s,labelClassName:l,inputClassName:c,descriptionClassName:d,errorClassName:m,value:u,defaultValue:p="#000000",onChange:f,showSwatch:b=true,showPicker:x=true,allowAlpha:g=false,fullWidth:v=false,disabled:R,id:w,...h},C)=>{let y=___namespace.useId(),T=w||y,N=`${T}-picker`,E=`${T}-description`,M=`${T}-error`,[P,k]=___namespace.useState(p),[L,H]=___namespace.useState(false),S=u!==void 0?u:P,D=o&&a,V=F=>{let O=F.target.value;O&&!O.startsWith("#")&&(O="#"+O),u===void 0&&k(O),f?.(O);},z=F=>{let O=F.target.value.toUpperCase();u===void 0&&k(O),f?.(O);},G=()=>{if(S&&Sv(S)){let F=pP(S);F!==S&&(u===void 0&&k(F),f?.(F));}},I=Sv(S)?S:"#000000";return jsxRuntime.jsxs("div",{className:i(Hv({size:s}),e),children:[t&&jsxRuntime.jsxs("label",{htmlFor:T,className:i(mP({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:"relative",children:[b&&jsxRuntime.jsx("div",{className:i(uP({size:s})),children:x?jsxRuntime.jsxs("label",{htmlFor:N,className:"block h-full w-full cursor-pointer",children:[jsxRuntime.jsx("input",{id:N,type:"color",value:I,onChange:z,disabled:R,className:"absolute inset-0 h-full w-full cursor-pointer opacity-0",tabIndex:-1}),jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundColor:I}})]}):jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundColor:I}})}),jsxRuntime.jsx("input",{ref:C,id:T,type:"text",value:S,onChange:V,onFocus:()=>H(true),onBlur:()=>{H(false),G();},placeholder:"#000000",maxLength:g?9:7,"aria-invalid":o,"aria-describedby":D?M:r?E:void 0,"aria-required":n,disabled:R,className:i(dP({size:s,isInvalid:o,fullWidth:v}),!b&&"pl-3",c),style:{borderColor:L?"var(--color-foreground)":void 0},...h})]}),r&&!D&&jsxRuntime.jsx("p",{id:E,className:i("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",d),children:r}),D&&jsxRuntime.jsx("p",{id:M,role:"alert",className:i("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a})]})});Iv.displayName="ColorField";var Av=classVarianceAuthority.cva("inline-flex",{variants:{variant:{default:"",attached:"[&>*:not(:first-child):not(:last-child)]:rounded-none [&>*:first-child]:rounded-r-none [&>*:last-child]:rounded-l-none [&>*:not(:first-child)]:-ml-px"},orientation:{horizontal:"flex-row",vertical:"flex-col [&>*:not(:first-child):not(:last-child)]:rounded-none [&>*:first-child]:rounded-b-none [&>*:last-child]:rounded-t-none [&>*:not(:first-child)]:-mt-px [&>*:not(:first-child)]:ml-0"},spacing:{none:"gap-0",sm:"gap-1",md:"gap-2",lg:"gap-3"}},compoundVariants:[{variant:"attached",spacing:["sm","md","lg"],className:"gap-0"}],defaultVariants:{variant:"default",orientation:"horizontal",spacing:"sm"}}),zv=___namespace.createContext({});function gP(){return ___namespace.useContext(zv)}var Bv=___namespace.forwardRef(({className:e,variant:t,orientation:r,spacing:a,disabled:n,children:o,...s},l)=>jsxRuntime.jsx(zv.Provider,{value:{disabled:n},children:jsxRuntime.jsx("div",{ref:l,role:"group",className:i(Av({variant:t,orientation:r,spacing:a,className:e})),...s,children:o})}));Bv.displayName="ButtonGroup";var Fv=classVarianceAuthority.cva("inline-flex items-center justify-center transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{solid:"bg-primary text-primary-foreground hover:bg-primary/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground",soft:"bg-primary/10 text-primary hover:bg-primary/20",surface:"bg-muted text-muted-foreground hover:bg-muted/80"},size:{sm:"h-8 w-8",md:"h-9 w-9",lg:"h-10 w-10",xl:"h-12 w-12"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{variant:"ghost",size:"md",radius:"md"}}),Kv=___namespace.forwardRef(({className:e,variant:t,size:r,radius:a,isLoading:n,disabled:o,children:s,...l},c)=>{let d={sm:"h-4 w-4",md:"h-4 w-4",lg:"h-5 w-5",xl:"h-6 w-6"}[r??"md"];return jsxRuntime.jsx("button",{ref:c,type:"button",disabled:o||n,className:i(Fv({variant:t,size:r,radius:a,className:e})),...l,children:n?jsxRuntime.jsxs("svg",{className:i("animate-spin",d),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[jsxRuntime.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),jsxRuntime.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):jsxRuntime.jsx("span",{className:i("[&>svg]:h-full [&>svg]:w-full",d),children:s})})});Kv.displayName="IconButton";var $v=classVarianceAuthority.cva("inline-flex items-center",{variants:{variant:{default:"gap-1",compact:"gap-0.5",attached:"[&>*:not(:first-child):not(:last-child)]:rounded-none [&>*:first-child]:rounded-r-none [&>*:last-child]:rounded-l-none [&>*:not(:first-child)]:-ml-px gap-0"},orientation:{horizontal:"flex-row",vertical:"flex-col [&>*:not(:first-child):not(:last-child)]:rounded-none [&>*:first-child]:rounded-b-none [&>*:last-child]:rounded-t-none [&>*:not(:first-child)]:-mt-px [&>*:not(:first-child)]:ml-0"},size:{sm:"",md:"",lg:""},density:{compact:"gap-0.5",regular:"gap-1",spacious:"gap-2"}},defaultVariants:{variant:"default",orientation:"horizontal",size:"md",density:"regular"}}),_v=___namespace.forwardRef(({className:e,variant:t,orientation:r,size:a,density:n,items:o,maxVisibleItems:s,isDisabled:l,onAction:c,showLabels:d=false,renderItem:m,...u},p)=>{let f=s&&s<o.length?o.slice(0,s):o,b=s&&s<o.length?o.slice(s):[],x={sm:"h-8 px-2 text-xs",md:"h-9 px-3 text-sm",lg:"h-10 px-4 text-base"}[a??"md"],g={sm:"h-8 w-8",md:"h-9 w-9",lg:"h-10 w-10"}[a??"md"],v={sm:"h-4 w-4",md:"h-4 w-4",lg:"h-5 w-5"}[a??"md"],R=(h,C)=>{C&&C(),c&&c(h);},w=h=>jsxRuntime.jsxs("button",{type:"button",disabled:l||h.isDisabled,onClick:()=>R(h.key,h.onPress),className:i("inline-flex items-center justify-center gap-2 rounded-md transition-colors","hover:bg-accent hover:text-accent-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",d?x:g),"aria-label":h.label,children:[h.icon&&jsxRuntime.jsx("span",{className:v,children:h.icon}),d&&jsxRuntime.jsx("span",{children:h.label})]},h.key);return jsxRuntime.jsxs("div",{ref:p,role:"group",className:i($v({variant:t,orientation:r,size:a,density:n,className:e})),...u,children:[f.map(h=>m?m(h):w(h)),b.length>0&&jsxRuntime.jsxs(Yr,{children:[jsxRuntime.jsx(Ur,{asChild:true,children:jsxRuntime.jsx("button",{type:"button",disabled:l,className:i("inline-flex items-center justify-center rounded-md transition-colors","hover:bg-accent hover:text-accent-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",g),"aria-label":"More actions",children:jsxRuntime.jsx(lucideReact.MoreHorizontal,{className:v})})}),jsxRuntime.jsx(Xr,{align:"end",children:b.map(h=>jsxRuntime.jsxs(qt,{disabled:h.isDisabled,onClick:()=>R(h.key,h.onPress),children:[h.icon&&jsxRuntime.jsx("span",{className:i(v,"mr-2"),children:h.icon}),h.label]},h.key))})]})]})});_v.displayName="ActionGroup";var Uv=classVarianceAuthority.cva("inline-flex items-center gap-2",{variants:{variant:{neutral:"[--status-color:theme(colors.muted.foreground)]",info:"[--status-color:theme(colors.blue.500)]",positive:"[--status-color:theme(colors.green.500)]",notice:"[--status-color:theme(colors.yellow.500)]",negative:"[--status-color:theme(colors.red.500)]"},size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{variant:"neutral",size:"md"}}),yP=classVarianceAuthority.cva("rounded-full bg-[--status-color] flex-shrink-0",{variants:{size:{sm:"h-1.5 w-1.5",md:"h-2 w-2",lg:"h-2.5 w-2.5"},pulse:{true:"animate-pulse",false:""}},defaultVariants:{size:"md",pulse:false}}),Xv=___namespace.forwardRef(({className:e,variant:t,size:r,pulse:a=false,hideLabel:n=false,children:o,...s},l)=>jsxRuntime.jsxs("span",{ref:l,role:"status",className:i(Uv({variant:t,size:r,className:e})),...s,children:[jsxRuntime.jsx("span",{className:i(yP({size:r,pulse:a})),"aria-hidden":"true"}),!n&&o&&jsxRuntime.jsx("span",{className:"text-foreground",children:o})]}));Xv.displayName="StatusLight";var Zv=classVarianceAuthority.cva("flex flex-col items-center justify-center text-center",{variants:{size:{sm:"gap-3 max-w-xs",md:"gap-4 max-w-sm",lg:"gap-5 max-w-md"}},defaultVariants:{size:"md"}}),wP=classVarianceAuthority.cva("text-muted-foreground",{variants:{size:{sm:"[&>svg]:h-16 [&>svg]:w-16",md:"[&>svg]:h-24 [&>svg]:w-24",lg:"[&>svg]:h-32 [&>svg]:w-32"}},defaultVariants:{size:"md"}}),CP=classVarianceAuthority.cva("font-semibold text-foreground",{variants:{size:{sm:"text-base",md:"text-lg",lg:"text-xl"}},defaultVariants:{size:"md"}}),NP=classVarianceAuthority.cva("text-muted-foreground",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),Jv=___namespace.forwardRef(({className:e,size:t,illustration:r,heading:a,description:n,children:o,...s},l)=>jsxRuntime.jsxs("div",{ref:l,className:i(Zv({size:t,className:e})),...s,children:[r&&jsxRuntime.jsx("div",{className:i(wP({size:t})),"aria-hidden":"true",children:r}),a&&jsxRuntime.jsx("h3",{className:i(CP({size:t})),children:a}),n&&jsxRuntime.jsx("p",{className:i(NP({size:t})),children:n}),o&&jsxRuntime.jsx("div",{className:"mt-2",children:o})]}));Jv.displayName="IllustratedMessage";var th=classVarianceAuthority.cva("relative flex gap-3 rounded-lg border p-4 text-sm",{variants:{variant:{info:"border-blue-200 bg-blue-50 text-blue-900 dark:border-blue-800 dark:bg-blue-950 dark:text-blue-100 [&>svg]:text-blue-600 dark:[&>svg]:text-blue-400",success:"border-green-200 bg-green-50 text-green-900 dark:border-green-800 dark:bg-green-950 dark:text-green-100 [&>svg]:text-green-600 dark:[&>svg]:text-green-400",warning:"border-amber-200 bg-amber-50 text-amber-900 dark:border-amber-800 dark:bg-amber-950 dark:text-amber-100 [&>svg]:text-amber-600 dark:[&>svg]:text-amber-400",error:"border-red-200 bg-red-50 text-red-900 dark:border-red-800 dark:bg-red-950 dark:text-red-100 [&>svg]:text-red-600 dark:[&>svg]:text-red-400",neutral:"border-border bg-muted text-foreground [&>svg]:text-muted-foreground"}},defaultVariants:{variant:"info"}}),DP={info:lucideReact.Info,success:lucideReact.CheckCircle2,warning:lucideReact.AlertTriangle,error:lucideReact.AlertCircle,neutral:lucideReact.Info},rh=___namespace.forwardRef(({className:e,variant:t,title:r,icon:a,hideIcon:n=false,isDismissible:o=false,onDismiss:s,actions:l,children:c,...d},m)=>{let[u,p]=___namespace.useState(true);if(!u)return null;let f=DP[t??"info"],b=()=>{p(false),s?.();};return jsxRuntime.jsxs("div",{ref:m,role:"alert",className:i(th({variant:t,className:e})),...d,children:[!n&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:a||jsxRuntime.jsx(f,{className:"h-5 w-5"})}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-1",children:[r&&jsxRuntime.jsx("div",{className:"font-medium",children:r}),c&&jsxRuntime.jsx("div",{className:"opacity-90",children:c}),l&&jsxRuntime.jsx("div",{className:"mt-3 flex gap-2",children:l})]}),o&&jsxRuntime.jsx("button",{type:"button",onClick:b,className:"absolute right-2 top-2 rounded-md p-1 opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","aria-label":"Dismiss",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})});rh.displayName="InlineAlert";var ah=classVarianceAuthority.cva("fixed flex items-center gap-2 rounded-lg border bg-background shadow-lg transition-all duration-200",{variants:{position:{bottom:"bottom-4 left-1/2 -translate-x-1/2",top:"top-4 left-1/2 -translate-x-1/2","bottom-right":"bottom-4 right-4","bottom-left":"bottom-4 left-4"},size:{sm:"px-3 py-2 gap-1.5",md:"px-4 py-2.5 gap-2",lg:"px-5 py-3 gap-3"}},defaultVariants:{position:"bottom",size:"md"}}),nh=___namespace.forwardRef(({className:e,position:t,size:r,selectedCount:a=0,isOpen:n=true,onClose:o,showClose:s=true,selectedText:l,children:c,...d},m)=>{if(!n||a===0)return null;let u=()=>typeof l=="function"?l(a):l||`${a} item${a>1?"s":""} selected`;return jsxRuntime.jsxs("div",{ref:m,role:"toolbar","aria-label":"Actions for selected items",className:i(ah({position:t,size:r,className:e})),...d,children:[jsxRuntime.jsx("span",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:u()}),jsxRuntime.jsx("div",{className:"h-4 w-px bg-border"}),jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:c}),s&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"h-4 w-px bg-border"}),jsxRuntime.jsx("button",{type:"button",onClick:o,className:"rounded-md p-1 text-muted-foreground hover:bg-accent hover:text-accent-foreground transition-colors","aria-label":"Close action bar",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})]})});nh.displayName="ActionBar";var oh=___namespace.forwardRef(({className:e,icon:t,children:r,...a},n)=>jsxRuntime.jsxs("button",{ref:n,type:"button",className:i("inline-flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-sm font-medium transition-colors","hover:bg-accent hover:text-accent-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:opacity-50",e),...a,children:[t&&jsxRuntime.jsx("span",{className:"h-4 w-4 [&>svg]:h-full [&>svg]:w-full",children:t}),r]}));oh.displayName="ActionBarButton";var sh=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{ghost:"hover:bg-accent hover:text-accent-foreground",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",subtle:"text-muted-foreground hover:text-foreground hover:bg-muted"},size:{sm:"h-7 w-7",md:"h-8 w-8",lg:"h-9 w-9"}},defaultVariants:{variant:"ghost",size:"md"}});function BP(e){return "items"in e}var ih=___namespace.forwardRef(({items:e,align:t="end",side:r="bottom",iconOrientation:a="vertical",trigger:n,variant:o,size:s,onAction:l,"aria-label":c="More actions",triggerClassName:d,disabled:m},u)=>{let p={sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"}[s??"md"],f=a==="horizontal"?lucideReact.MoreHorizontal:lucideReact.MoreVertical,b=g=>{g.onSelect?.(),l?.(g.key);},x=g=>jsxRuntime.jsxs(qt,{disabled:g.isDisabled,onClick:()=>b(g),className:i(g.isDestructive&&"text-destructive focus:text-destructive"),children:[g.icon&&jsxRuntime.jsx("span",{className:"mr-2 h-4 w-4 [&>svg]:h-full [&>svg]:w-full",children:g.icon}),jsxRuntime.jsx("span",{className:"flex-1",children:g.label}),g.shortcut&&jsxRuntime.jsx("span",{className:"ml-auto text-xs text-muted-foreground",children:g.shortcut})]},g.key);return jsxRuntime.jsxs(Yr,{children:[jsxRuntime.jsx(Ur,{asChild:true,children:n||jsxRuntime.jsx("button",{ref:u,type:"button",disabled:m,className:i(sh({variant:o,size:s}),d),"aria-label":c,children:jsxRuntime.jsx(f,{className:p})})}),jsxRuntime.jsx(Xr,{align:t,side:r,children:e.map((g,v)=>BP(g)?jsxRuntime.jsxs(___namespace.Fragment,{children:[v>0&&jsxRuntime.jsx(zo,{}),g.items.map(x)]},g.key):x(g))})]})});ih.displayName="ActionMenu";var dh=classVarianceAuthority.cva("flex flex-col",{variants:{variant:{default:"gap-1",bordered:"border rounded-lg divide-y",cards:"gap-2"},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"default",size:"md"}}),uh=classVarianceAuthority.cva("flex items-center gap-3 transition-colors cursor-pointer",{variants:{variant:{default:"rounded-md hover:bg-accent",bordered:"hover:bg-accent",cards:"rounded-lg border hover:border-primary/50 hover:bg-accent/50"},size:{sm:"px-2 py-1.5 text-sm",md:"px-3 py-2",lg:"px-4 py-3 text-lg"},isSelected:{true:"bg-accent",false:""},isDisabled:{true:"opacity-50 pointer-events-none",false:""}},compoundVariants:[{variant:"cards",isSelected:true,className:"border-primary bg-accent"}],defaultVariants:{variant:"default",size:"md",isSelected:false,isDisabled:false}});function mh({className:e,variant:t,size:r,items:a,selectedKeys:n,selectionMode:o="none",onSelectionChange:s,allowsDragging:l=false,onReorder:c,showCheckbox:d=false,renderItem:m,emptyContent:u,...p}){let[f,b]=___namespace.useState(new Set),[x,g]=___namespace.useState(null),[v,R]=___namespace.useState(null),w=___namespace.useMemo(()=>n?n instanceof Set?n:new Set(n):f,[n,f]),h=N=>{if(o==="none")return;let E;o==="single"?E=w.has(N)?new Set:new Set([N]):(E=new Set(w),E.has(N)?E.delete(N):E.add(N)),n||b(E),s?.(E);},C=(N,E)=>{g(E),N.dataTransfer.effectAllowed="move";},y=(N,E)=>{N.preventDefault(),x!==E&&R(E);},T=()=>{if(x&&v&&x!==v){let N=a.findIndex(k=>k.key===x),E=a.findIndex(k=>k.key===v),M=[...a],[P]=M.splice(N,1);M.splice(E,0,P),c?.(M);}g(null),R(null);};return a.length===0?jsxRuntime.jsx("div",{className:i("flex items-center justify-center p-8 text-muted-foreground",e),children:u||"No items"}):jsxRuntime.jsx("div",{role:"listbox","aria-multiselectable":o==="multiple",className:i(dh({variant:t,size:r,className:e})),...p,children:a.map(N=>{let E=w.has(N.key),M=x===N.key,P=v===N.key;return m?jsxRuntime.jsx("div",{role:"option","aria-selected":E,onClick:()=>h(N.key),children:m(N,E)},N.key):jsxRuntime.jsxs("div",{role:"option","aria-selected":E,"aria-disabled":N.isDisabled,draggable:l&&!N.isDisabled,onDragStart:k=>C(k,N.key),onDragOver:k=>y(k,N.key),onDragEnd:T,onClick:()=>!N.isDisabled&&h(N.key),className:i(uh({variant:t,size:r,isSelected:E,isDisabled:N.isDisabled}),M&&"opacity-50",P&&"border-t-2 border-t-primary"),children:[l&&jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-4 w-4 text-muted-foreground cursor-grab"}),d&&o!=="none"&&jsxRuntime.jsx("div",{className:i("flex h-4 w-4 items-center justify-center rounded border",E?"bg-primary border-primary text-primary-foreground":"border-input"),children:E&&jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})}),N.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 text-muted-foreground [&>svg]:h-full [&>svg]:w-full",children:N.icon}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:"truncate",children:N.label}),N.description&&jsxRuntime.jsx("div",{className:"text-sm text-muted-foreground truncate",children:N.description})]})]},N.key)})})}mh.displayName="ListView";var ph=classVarianceAuthority.cva("relative flex w-full touch-none select-none",{variants:{orientation:{horizontal:"items-center",vertical:"flex-col justify-center h-full"},size:{sm:"",md:"",lg:""}},defaultVariants:{orientation:"horizontal",size:"md"}}),KP=classVarianceAuthority.cva("relative grow overflow-hidden rounded-full bg-secondary",{variants:{orientation:{horizontal:"w-full",vertical:"w-2 h-full"},size:{sm:"h-1",md:"h-2",lg:"h-3"}},compoundVariants:[{orientation:"vertical",size:"sm",className:"w-1 h-full"},{orientation:"vertical",size:"md",className:"w-2 h-full"},{orientation:"vertical",size:"lg",className:"w-3 h-full"}],defaultVariants:{orientation:"horizontal",size:"md"}}),GP=classVarianceAuthority.cva("block 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 cursor-grab",{variants:{size:{sm:"h-3.5 w-3.5",md:"h-5 w-5",lg:"h-6 w-6"}},defaultVariants:{size:"md"}}),fh=___namespace.forwardRef(({className:e,orientation:t="horizontal",size:r="md",value:a,defaultValue:n=[25,75],onValueChange:o,onValueCommit:s,min:l=0,max:c=100,step:d=1,disabled:m=false,showLabels:u=false,formatLabel:p=v=>String(v),trackColor:f="primary",name:b,...x},g)=>{let[v,R]=___namespace.useState(n),w=a!==void 0,h=w?a:v,C=___namespace.useRef(null),[y,T]=___namespace.useState(false),[N,E]=___namespace.useState(null),M=(I,F)=>{if(!C.current)return h[0];let O=C.current.getBoundingClientRect(),ee;t==="horizontal"?ee=(I-O.left)/O.width:ee=1-(F-O.top)/O.height,ee=Math.max(0,Math.min(1,ee));let ae=l+ee*(c-l),K=Math.round(ae/d)*d;return Math.max(l,Math.min(c,K))},P=(I,F)=>{let O=[...h];O[F]=I,F===0&&I>h[1]&&(O[0]=h[1]),F===1&&I<h[0]&&(O[1]=h[0]),w||R(O),o?.(O);},k=(I,F)=>{m||(I.preventDefault(),T(true),E(F),I.target.setPointerCapture(I.pointerId));},L=I=>{if(!y||N===null||m)return;let F=M(I.clientX,I.clientY);P(F,N);},H=()=>{y&&(T(false),E(null),s?.(h));},S=I=>{if(m)return;let F=M(I.clientX,I.clientY),O=Math.abs(h[0]-F),ee=Math.abs(h[1]-F),ae=O<=ee?0:1;P(F,ae);let K=[...h];K[ae]=F,s?.(K);},D=(I,F)=>{if(m)return;let O=h[F];switch(I.key){case "ArrowRight":case "ArrowUp":I.preventDefault(),O=Math.min(c,h[F]+d);break;case "ArrowLeft":case "ArrowDown":I.preventDefault(),O=Math.max(l,h[F]-d);break;case "Home":I.preventDefault(),O=l;break;case "End":I.preventDefault(),O=c;break;default:return}P(O,F);let ee=[...h];ee[F]=O,s?.(ee);},V=I=>(I-l)/(c-l)*100,z={primary:"bg-primary",success:"bg-green-500",warning:"bg-yellow-500",danger:"bg-red-500"}[f],G={sm:14,md:20,lg:24}[r||"md"];return jsxRuntime.jsxs("div",{className:"relative w-full",children:[u&&jsxRuntime.jsxs("div",{className:"flex justify-between mb-2 text-sm text-muted-foreground",children:[jsxRuntime.jsx("span",{children:p(h[0])}),jsxRuntime.jsx("span",{children:p(h[1])})]}),jsxRuntime.jsxs("div",{ref:g,className:i(ph({orientation:t,size:r}),m&&"opacity-50 pointer-events-none",e),...x,children:[jsxRuntime.jsx("div",{ref:C,className:i(KP({orientation:t,size:r})),onClick:S,children:jsxRuntime.jsx("div",{className:i("absolute rounded-full",z,{"h-full":t==="horizontal","w-full":t==="vertical"}),style:t==="horizontal"?{left:`${V(h[0])}%`,right:`${100-V(h[1])}%`,top:0,bottom:0}:{bottom:`${V(h[0])}%`,top:`${100-V(h[1])}%`,left:0,right:0}})}),h.map((I,F)=>jsxRuntime.jsx("div",{role:"slider",tabIndex:m?-1:0,"aria-valuemin":l,"aria-valuemax":c,"aria-valuenow":I,"aria-orientation":t||void 0,"aria-disabled":m,className:i(GP({size:r}),y&&N===F&&"cursor-grabbing"),style:t==="horizontal"?{position:"absolute",left:`calc(${V(I)}% - ${G/2}px)`,top:"50%",transform:"translateY(-50%)"}:{position:"absolute",bottom:`calc(${V(I)}% - ${G/2}px)`,left:"50%",transform:"translateX(-50%)"},onPointerDown:O=>k(O,F),onPointerMove:L,onPointerUp:H,onPointerCancel:H,onKeyDown:O=>D(O,F)},F)),b&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("input",{type:"hidden",name:`${b}[0]`,value:h[0]}),jsxRuntime.jsx("input",{type:"hidden",name:`${b}[1]`,value:h[1]})]})]})]})});fh.displayName="RangeSlider";var oc=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-full transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",{variants:{variant:{help:"text-muted-foreground hover:text-foreground",info:"text-blue-500 hover:text-blue-600",warning:"text-yellow-500 hover:text-yellow-600"},size:{sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6"}},defaultVariants:{variant:"help",size:"md"}}),YP=classVarianceAuthority.cva("z-50 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none animate-in fade-in-0 zoom-in-95",{variants:{size:{sm:"w-56 text-xs",md:"w-72 text-sm",lg:"w-80 text-base"}},defaultVariants:{size:"md"}}),UP={help:lucideReact.HelpCircle,info:lucideReact.Info,warning:lucideReact.AlertCircle},vh=___namespace.forwardRef(({variant:e="help",size:t,title:r,children:a,trigger:n,side:o="top",align:s="center",open:l,onOpenChange:c,learnMoreUrl:d,learnMoreText:m="Learn more",triggerClassName:u,contentClassName:p},f)=>{let[b,x]=___namespace.useState(false),[g,v]=___namespace.useState(false),[R,w]=___namespace.useState({top:0,left:0}),h=___namespace.useRef(null),C=___namespace.useRef(null),y=l!==void 0?l:b,T=___namespace.useCallback(P=>{l===void 0&&x(P),c?.(P);},[l,c]);___namespace.useEffect(()=>{v(true);},[]),___namespace.useEffect(()=>{if(!y||!h.current)return;let P=()=>{let k=h.current.getBoundingClientRect(),L=288,H=8,S=0,D=0;switch(o){case "top":S=k.top-H,D=k.left+k.width/2;break;case "bottom":S=k.bottom+H,D=k.left+k.width/2;break;case "left":S=k.top+k.height/2,D=k.left-H;break;case "right":S=k.top+k.height/2,D=k.right+H;break}if(o==="top"||o==="bottom")switch(s){case "start":D=k.left;break;case "center":D=k.left+k.width/2-L/2;break;case "end":D=k.right-L;break}D=Math.max(8,Math.min(D,window.innerWidth-L-8)),w({top:S,left:D});};return P(),window.addEventListener("resize",P),window.addEventListener("scroll",P,true),()=>{window.removeEventListener("resize",P),window.removeEventListener("scroll",P,true);}},[y,o,s]),___namespace.useEffect(()=>{if(!y)return;let P=k=>{C.current&&!C.current.contains(k.target)&&h.current&&!h.current.contains(k.target)&&T(false);};return document.addEventListener("mousedown",P),()=>document.removeEventListener("mousedown",P)},[y,T]),___namespace.useEffect(()=>{if(!y)return;let P=k=>{k.key==="Escape"&&T(false);};return document.addEventListener("keydown",P),()=>document.removeEventListener("keydown",P)},[y,T]);let N=UP[e??"help"],E=()=>{T(!y);},M=()=>{switch(o){case "top":return "bottom center";case "bottom":return "top center";case "left":return "right center";case "right":return "left center";default:return "center center"}};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[n?___namespace.isValidElement(n)?___namespace.cloneElement(n,{ref:h,onClick:P=>{n.props.onClick?.(P),E();}}):jsxRuntime.jsx("button",{ref:h,type:"button",onClick:E,className:i(oc({variant:e,size:t}),u),"aria-label":"Help",children:n}):jsxRuntime.jsx("button",{ref:P=>{h.current=P,typeof f=="function"?f(P):f&&(f.current=P);},type:"button",onClick:E,className:i(oc({variant:e,size:t}),u),"aria-label":"Help",children:jsxRuntime.jsx(N,{className:"h-full w-full"})}),g&&y&&$o__namespace.createPortal(jsxRuntime.jsxs("div",{ref:C,className:i(YP({size:t}),p),style:{position:"fixed",top:R.top,left:R.left,transformOrigin:M()},role:"tooltip",children:[r&&jsxRuntime.jsx("div",{className:"mb-2 font-semibold text-foreground",children:r}),jsxRuntime.jsx("div",{className:"text-muted-foreground",children:a}),d&&jsxRuntime.jsxs("a",{href:d,target:"_blank",rel:"noopener noreferrer",className:"mt-3 inline-block text-primary hover:underline",children:[m," \u2192"]}),jsxRuntime.jsx("div",{className:"absolute h-2 w-2 rotate-45 border bg-popover",style:{...o==="top"&&{bottom:-4,left:"50%",marginLeft:-4,borderTop:"none",borderLeft:"none"},...o==="bottom"&&{top:-4,left:"50%",marginLeft:-4,borderBottom:"none",borderRight:"none"},...o==="left"&&{right:-4,top:"50%",marginTop:-4,borderBottom:"none",borderLeft:"none"},...o==="right"&&{left:-4,top:"50%",marginTop:-4,borderTop:"none",borderRight:"none"}}})]}),document.body)]})});vh.displayName="ContextualHelp";var xh=classVarianceAuthority.cva("flex flex-wrap",{variants:{spacing:{sm:"gap-1",md:"gap-2",lg:"gap-3"}},defaultVariants:{spacing:"md"}}),sc=classVarianceAuthority.cva("inline-flex items-center gap-1 rounded-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",{variants:{variant:{solid:"bg-primary text-primary-foreground",outline:"border border-input bg-background hover:bg-accent",soft:"bg-primary/10 text-primary",surface:"bg-muted text-muted-foreground"},size:{sm:"px-2 py-0.5 text-xs",md:"px-2.5 py-1 text-sm",lg:"px-3 py-1.5 text-base"},isSelected:{true:"",false:""},isDisabled:{true:"opacity-50 pointer-events-none",false:""}},compoundVariants:[{variant:"outline",isSelected:true,className:"border-primary bg-primary/5"},{variant:"soft",isSelected:true,className:"bg-primary/20"},{variant:"surface",isSelected:true,className:"bg-muted/80 ring-2 ring-primary/20"}],defaultVariants:{variant:"soft",size:"md",isSelected:false,isDisabled:false}});function yh({className:e,spacing:t,variant:r,size:a,items:n,selectedKeys:o,selectionMode:s="none",onSelectionChange:l,allowsRemoving:c=false,onRemove:d,label:m,description:u,errorMessage:p,maxTags:f,...b}){let[x,g]=___namespace.useState(new Set),v=___namespace.useMemo(()=>o?o instanceof Set?o:new Set(o):x,[o,x]),R=y=>{if(s==="none")return;let T;s==="single"?T=v.has(y)?new Set:new Set([y]):(T=new Set(v),T.has(y)?T.delete(y):T.add(y)),o||g(T),l?.(T);},w=(y,T)=>{T.stopPropagation(),d?.(y);},h=f?n.slice(0,f):n,C=f?Math.max(0,n.length-f):0;return jsxRuntime.jsxs("div",{className:"flex flex-col gap-1.5",children:[m&&jsxRuntime.jsx("span",{className:"text-sm font-medium text-foreground",children:m}),u&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:u}),jsxRuntime.jsxs("div",{role:"group","aria-label":m,className:i(xh({spacing:t}),e),...b,children:[h.map(y=>{let T=v.has(y.key),N=s!=="none";return jsxRuntime.jsxs("span",{role:N?"button":void 0,tabIndex:N&&!y.isDisabled?0:void 0,"aria-pressed":N?T:void 0,onClick:()=>!y.isDisabled&&R(y.key),onKeyDown:E=>{(E.key==="Enter"||E.key===" ")&&!y.isDisabled&&(E.preventDefault(),R(y.key));},style:y.color?{backgroundColor:y.color}:void 0,className:i(sc({variant:y.color?void 0:r,size:a,isSelected:T,isDisabled:y.isDisabled}),N&&!y.isDisabled&&"cursor-pointer hover:opacity-80",y.color&&"text-white"),children:[y.icon&&jsxRuntime.jsx("span",{className:"h-3.5 w-3.5 [&>svg]:h-full [&>svg]:w-full",children:y.icon}),y.label,c&&!y.isDisabled&&jsxRuntime.jsx("button",{type:"button",onClick:E=>w(y.key,E),className:"ml-0.5 rounded-full p-0.5 hover:bg-black/10 dark:hover:bg-white/10","aria-label":`Remove ${y.label}`,children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3"})})]},y.key)}),C>0&&jsxRuntime.jsxs("span",{className:i(sc({variant:"surface",size:a}),"cursor-default"),children:["+",C," more"]})]}),p&&jsxRuntime.jsx("span",{className:"text-sm text-destructive",children:p})]})}yh.displayName="TagGroup";var Ch=classVarianceAuthority.cva("grid",{variants:{columns:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",auto:"grid-cols-[repeat(auto-fill,minmax(150px,1fr))]"},gap:{sm:"gap-2",md:"gap-4",lg:"gap-6"}},defaultVariants:{columns:"auto",gap:"md"}}),Nh=classVarianceAuthority.cva("relative flex flex-col rounded-lg border transition-all cursor-pointer",{variants:{variant:{default:"hover:border-primary/50 hover:bg-accent/50",card:"bg-card shadow-sm hover:shadow-md hover:border-primary/50"},size:{sm:"p-2",md:"p-3",lg:"p-4"},isSelected:{true:"border-primary bg-accent ring-2 ring-primary/20",false:""},isDisabled:{true:"opacity-50 pointer-events-none",false:""}},defaultVariants:{variant:"default",size:"md",isSelected:false,isDisabled:false}});function Mh({className:e,columns:t,gap:r,items:a,selectedKeys:n,selectionMode:o="none",onSelectionChange:s,showSelectionIndicator:l=true,itemVariant:c="default",itemSize:d="md",renderItem:m,emptyContent:u,...p}){let[f,b]=___namespace.useState(new Set),x=___namespace.useMemo(()=>n?n instanceof Set?n:new Set(n):f,[n,f]),g=v=>{if(o==="none")return;let R;o==="single"?R=x.has(v)?new Set:new Set([v]):(R=new Set(x),R.has(v)?R.delete(v):R.add(v)),n||b(R),s?.(R);};return a.length===0?jsxRuntime.jsx("div",{className:i("flex items-center justify-center p-8 text-muted-foreground",e),children:u||"No items"}):jsxRuntime.jsx("div",{role:"grid","aria-multiselectable":o==="multiple",className:i(Ch({columns:t,gap:r,className:e})),...p,children:a.map(v=>{let R=x.has(v.key);return m?jsxRuntime.jsx("div",{role:"gridcell","aria-selected":R,onClick:()=>g(v.key),children:m(v,R)},v.key):jsxRuntime.jsxs("div",{role:"gridcell","aria-selected":R,"aria-disabled":v.isDisabled,onClick:()=>!v.isDisabled&&g(v.key),className:i(Nh({variant:c,size:d,isSelected:R,isDisabled:v.isDisabled})),children:[l&&o!=="none"&&R&&jsxRuntime.jsx("div",{className:"absolute top-2 right-2 flex h-5 w-5 items-center justify-center rounded-full bg-primary text-primary-foreground",children:jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})}),v.thumbnail&&jsxRuntime.jsx("div",{className:"mb-2 aspect-square w-full overflow-hidden rounded-md bg-muted",children:v.thumbnail}),jsxRuntime.jsxs("div",{className:"min-w-0",children:[jsxRuntime.jsx("div",{className:"truncate font-medium",children:v.label}),v.description&&jsxRuntime.jsx("div",{className:"mt-1 truncate text-sm text-muted-foreground",children:v.description})]})]},v.key)})})}Mh.displayName="GridList";var Ph=classVarianceAuthority.cva("relative w-full",{variants:{size:{sm:"h-1.5",md:"h-2",lg:"h-3"}},defaultVariants:{size:"md"}}),JP=classVarianceAuthority.cva("w-full h-full rounded-full overflow-hidden",{variants:{variant:{default:"bg-secondary",subtle:"bg-muted"}},defaultVariants:{variant:"default"}}),QP=classVarianceAuthority.cva("h-full transition-all duration-300 ease-out",{variants:{color:{primary:"bg-primary",success:"bg-green-500",warning:"bg-yellow-500",danger:"bg-red-500",info:"bg-blue-500",auto:""},rounded:{true:"rounded-full",false:"rounded-l-full"}},defaultVariants:{color:"primary",rounded:true}}),ri=___namespace.forwardRef(({className:e,size:t,value:r,min:a=0,max:n=100,optimum:o,low:s,high:l,label:c,showValueLabel:d=false,formatValue:m,color:u="primary",trackVariant:p="default",...f},b)=>{let x=Math.min(100,Math.max(0,(r-a)/(n-a)*100)),g=()=>{if(u!=="auto")return "";let R=(r-a)/(n-a),w=s!==void 0?(s-a)/(n-a):.25,h=l!==void 0?(l-a)/(n-a):.75;return (o!==void 0?(o-a)/(n-a):1)>=.5?R<=w?"bg-red-500":R<=h?"bg-yellow-500":"bg-green-500":R>=h?"bg-red-500":R>=w?"bg-yellow-500":"bg-green-500"},v=m?m(r,x):`${Math.round(x)}%`;return jsxRuntime.jsxs("div",{ref:b,className:i("w-full",e),...f,children:[(c||d)&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[c&&jsxRuntime.jsx("span",{className:"text-sm font-medium text-foreground",children:c}),d&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:v})]}),jsxRuntime.jsx("div",{role:"meter","aria-valuenow":r,"aria-valuemin":a,"aria-valuemax":n,"aria-label":c,className:i(Ph({size:t})),children:jsxRuntime.jsx("div",{className:i(JP({variant:p})),children:jsxRuntime.jsx("div",{className:i(QP({color:u==="auto"?void 0:u,rounded:x>=100}),u==="auto"&&g()),style:{width:`${x}%`}})})})]})});ri.displayName="Meter";var kh=___namespace.forwardRef((e,t)=>jsxRuntime.jsx(ri,{ref:t,color:"auto",low:50,high:80,optimum:0,...e}));kh.displayName="DiskUsageMeter";var Eh=___namespace.forwardRef((e,t)=>jsxRuntime.jsx(ri,{ref:t,color:"auto",low:20,high:50,optimum:100,...e}));Eh.displayName="BatteryMeter";var Lh=classVarianceAuthority.cva("relative rounded-lg overflow-hidden cursor-crosshair touch-none select-none",{variants:{size:{sm:"h-32 w-32",md:"h-48 w-48",lg:"h-64 w-64",full:"h-full w-full min-h-48"}},defaultVariants:{size:"md"}}),ni=(e,t,r)=>{let a=n=>{let o=(n+e/60)%6;return r-r*t*Math.max(Math.min(o,4-o,1),0)};return [Math.round(a(5)*255),Math.round(a(3)*255),Math.round(a(1)*255)]},Dh=(e,t,r)=>{e/=255,t/=255,r/=255;let a=Math.max(e,t,r),n=Math.min(e,t,r),o=a-n,s=0,l=a===0?0:o/a,c=a;if(o!==0)switch(a){case e:s=((t-r)/o+(t<r?6:0))*60;break;case t:s=((r-e)/o+2)*60;break;case r:s=((e-t)/o+4)*60;break}return [s,l,c]},Sh=e=>{let t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:null},Hh=(e,t,r)=>"#"+[e,t,r].map(a=>a.toString(16).padStart(2,"0")).join(""),Ih=___namespace.forwardRef(({hue:e,saturation:t,brightness:r,value:a,defaultValue:n="#ff0000",onChange:o,onColorChange:s,size:l,disabled:c,thumbSize:d=18,className:m,...u},p)=>{let f=___namespace.useRef(null),[b,x]=___namespace.useState(false),g=___namespace.useCallback(I=>{let F=Sh(I);return F?Dh(...F):[0,1,1]},[]),[v,R]=___namespace.useState(()=>g(a||n)),w=e??v[0],h=t??v[1],C=r??v[2];___namespace.useEffect(()=>{if(a){let I=g(a);R(I);}},[a,g]);let y=___namespace.useCallback((I,F)=>{if(c||!f.current)return;let O=f.current.getBoundingClientRect(),ee=Math.max(0,Math.min(1,(I-O.left)/O.width)),ae=Math.max(0,Math.min(1,(F-O.top)/O.height)),K=ee,B=1-ae;t===void 0&&r===void 0&&R([w,K,B]),o?.({hue:w,saturation:K,brightness:B});let j=ni(w,K,B);s?.(Hh(...j));},[c,w,t,r,o,s]),T=I=>{c||(I.preventDefault(),x(true),I.target.setPointerCapture(I.pointerId),y(I.clientX,I.clientY));},N=I=>{b&&y(I.clientX,I.clientY);},E=I=>{x(false),I.target.releasePointerCapture(I.pointerId);},[M,P,k]=ni(w,1,1),L=`rgb(${M}, ${P}, ${k})`,H=h*100,S=(1-C)*100,[D,V,z]=ni(w,h,C),G=`rgb(${D}, ${V}, ${z})`;return jsxRuntime.jsx("div",{ref:p,className:i(Lh({size:l}),c&&"cursor-not-allowed opacity-50",m),...u,children:jsxRuntime.jsxs("div",{ref:f,className:"absolute inset-0",style:{backgroundColor:L},onPointerDown:T,onPointerMove:N,onPointerUp:E,onPointerLeave:E,children:[jsxRuntime.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to right, white, transparent)"}}),jsxRuntime.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to bottom, transparent, black)"}}),jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 border-white pointer-events-none",style:{width:d,height:d,left:`calc(${H}% - ${d/2}px)`,top:`calc(${S}% - ${d/2}px)`,backgroundColor:G,boxShadow:"0 0 0 1px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.2)"}})]})})});Ih.displayName="ColorArea";var Ah=classVarianceAuthority.cva("relative rounded-full cursor-pointer touch-none select-none",{variants:{orientation:{horizontal:"w-full",vertical:"h-full"},size:{sm:"",md:"",lg:""}},compoundVariants:[{orientation:"horizontal",size:"sm",className:"h-3"},{orientation:"horizontal",size:"md",className:"h-4"},{orientation:"horizontal",size:"lg",className:"h-5"},{orientation:"vertical",size:"sm",className:"w-3"},{orientation:"vertical",size:"md",className:"w-4"},{orientation:"vertical",size:"lg",className:"w-5"}],defaultVariants:{orientation:"horizontal",size:"md"}}),ak=`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cg fill='%23ccc'%3E%3Crect width='4' height='4'/%3E%3Crect x='4' y='4' width='4' height='4'/%3E%3C/g%3E%3C/svg%3E")`,Vh="linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000)",zh=___namespace.forwardRef(({value:e,defaultValue:t,onChange:r,channel:a="hue",baseColor:n="#ff0000",orientation:o,size:s,disabled:l,thumbSize:c=18,showBorder:d=true,className:m,...u},p)=>{let f=___namespace.useRef(null),[b,x]=___namespace.useState(false),g=()=>{switch(a){case "hue":return 0;case "alpha":case "saturation":case "brightness":return 1;default:return 0}},[v,R]=___namespace.useState(t??g()),w=e??v,h=a==="hue"?w/360:w,C=___namespace.useCallback((L,H)=>{if(l||!f.current)return;let S=f.current.getBoundingClientRect(),D=o!=="vertical",V;D?V=Math.max(0,Math.min(1,(L-S.left)/S.width)):V=Math.max(0,Math.min(1,1-(H-S.top)/S.height));let z=a==="hue"?V*360:V;e===void 0&&R(z),r?.(z);},[l,o,a,e,r]),y=L=>{l||(L.preventDefault(),x(true),L.target.setPointerCapture(L.pointerId),C(L.clientX,L.clientY));},T=L=>{b&&C(L.clientX,L.clientY);},N=L=>{x(false),L.target.releasePointerCapture(L.pointerId);},E=()=>{let L=o!=="vertical",H=L?"to right":"to top";switch(a){case "hue":return L?Vh:"linear-gradient(to top, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000)";case "alpha":return `linear-gradient(${H}, transparent, ${n})`;case "saturation":return `linear-gradient(${H}, #808080, ${n})`;case "brightness":return `linear-gradient(${H}, #000000, ${n})`;default:return Vh}},M=()=>a==="hue"?`hsl(${w}, 100%, 50%)`:n,P=o!=="vertical",k=h*100;return jsxRuntime.jsx("div",{ref:p,className:i(Ah({orientation:o,size:s}),l&&"cursor-not-allowed opacity-50",m),...u,children:jsxRuntime.jsxs("div",{ref:f,className:i("absolute inset-0 rounded-full overflow-hidden",d&&"border border-input"),style:{backgroundImage:a==="alpha"?ak:void 0,backgroundSize:a==="alpha"?"8px 8px":void 0},onPointerDown:y,onPointerMove:T,onPointerUp:N,onPointerLeave:N,children:[jsxRuntime.jsx("div",{className:"absolute inset-0 rounded-full",style:{background:E()}}),jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 border-white shadow-md pointer-events-none",style:{width:c,height:c,...P?{left:`calc(${k}% - ${c/2}px)`,top:"50%",transform:"translateY(-50%)"}:{bottom:`calc(${k}% - ${c/2}px)`,left:"50%",transform:"translateX(-50%)"},backgroundColor:M(),boxShadow:"0 0 0 1px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.2)"}})]})})});zh.displayName="ColorSlider";var Bh=classVarianceAuthority.cva("relative cursor-crosshair touch-none select-none",{variants:{size:{sm:"h-32 w-32",md:"h-48 w-48",lg:"h-64 w-64"}},defaultVariants:{size:"md"}}),sk=(e,t,r)=>{let a=e-r,n=t-r,o=Math.atan2(n,a)*180/Math.PI+90;return o<0&&(o+=360),o},Oh=___namespace.forwardRef(({value:e,defaultValue:t=0,onChange:r,size:a,disabled:n,innerRadius:o=.6,thumbSize:s=20,showCenter:l=true,className:c,...d},m)=>{let u=___namespace.useRef(null),[p,f]=___namespace.useState(false),[b,x]=___namespace.useState(t),g=e??b,v=___namespace.useCallback((y,T)=>{if(n||!u.current)return;let N=u.current.getBoundingClientRect(),E=N.width/2,M=y-N.left,P=T-N.top,k=sk(M,P,E);e===void 0&&x(k),r?.(k);},[n,e,r]),R=y=>{n||(y.preventDefault(),f(true),y.target.setPointerCapture(y.pointerId),v(y.clientX,y.clientY));},w=y=>{p&&v(y.clientX,y.clientY);},h=y=>{f(false),y.target.releasePointerCapture(y.pointerId);},C=()=>{let y=[];for(let T=0;T<=360;T+=30)y.push(`hsl(${T}, 100%, 50%) ${T}deg`);return `conic-gradient(from 270deg, ${y.join(", ")})`};return jsxRuntime.jsx("div",{ref:m,className:i(Bh({size:a}),n&&"cursor-not-allowed opacity-50",c),...d,children:jsxRuntime.jsxs("div",{ref:u,className:"absolute inset-0 rounded-full",style:{background:C()},onPointerDown:R,onPointerMove:w,onPointerUp:h,onPointerLeave:h,children:[o<1&&jsxRuntime.jsx("div",{className:"absolute bg-background rounded-full",style:{top:`${(1-o)*50}%`,left:`${(1-o)*50}%`,width:`${o*100}%`,height:`${o*100}%`}}),l&&o<1&&jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 border-input bg-background",style:{width:8,height:8,top:"50%",left:"50%",transform:"translate(-50%, -50%)"}}),jsxRuntime.jsx(ik,{hue:g,innerRadius:o,thumbSize:s})]})})});Oh.displayName="ColorWheel";var ik=({hue:e,innerRadius:t,thumbSize:r})=>{let a=(1-(1-t)/2)*50,n=(e-90)*Math.PI/180,o=50+a*Math.cos(n),s=50+a*Math.sin(n);return jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 border-white shadow-md pointer-events-none",style:{width:r,height:r,left:`calc(${o}% - ${r/2}px)`,top:`calc(${s}% - ${r/2}px)`,backgroundColor:`hsl(${e}, 100%, 50%)`,boxShadow:"0 0 0 1px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.2)"}})};var Fh=classVarianceAuthority.cva("flex",{variants:{direction:{row:"flex-row","row-reverse":"flex-row-reverse",column:"flex-col","column-reverse":"flex-col-reverse"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse"},gap:{0:"gap-0",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",8:"gap-8",10:"gap-10",12:"gap-12"},inline:{true:"inline-flex",false:"flex"}},defaultVariants:{direction:"row",align:"stretch",justify:"start",wrap:"nowrap",gap:0,inline:false}}),bo=___namespace.forwardRef(({className:e,direction:t,align:r,justify:a,wrap:n,gap:o,inline:s,as:l="div",...c},d)=>jsxRuntime.jsx(l,{ref:d,className:i(Fh({direction:t,align:r,justify:a,wrap:n,gap:o,inline:s,className:e})),...c}));bo.displayName="Flex";var Kh=___namespace.forwardRef(({gap:e=2,align:t="center",...r},a)=>jsxRuntime.jsx(bo,{ref:a,direction:"row",gap:e,align:t,...r}));Kh.displayName="HStack";var Gh=___namespace.forwardRef(({gap:e=2,align:t="stretch",...r},a)=>jsxRuntime.jsx(bo,{ref:a,direction:"column",gap:e,align:t,...r}));Gh.displayName="VStack";var $h=___namespace.forwardRef((e,t)=>jsxRuntime.jsx(bo,{ref:t,align:"center",justify:"center",...e}));$h.displayName="Center";var jh=classVarianceAuthority.cva("grid",{variants:{columns:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12",none:"grid-cols-none",auto:"grid-cols-[repeat(auto-fill,minmax(200px,1fr))]"},rows:{1:"grid-rows-1",2:"grid-rows-2",3:"grid-rows-3",4:"grid-rows-4",5:"grid-rows-5",6:"grid-rows-6",none:"grid-rows-none"},gap:{0:"gap-0",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",8:"gap-8",10:"gap-10",12:"gap-12"},gapX:{0:"gap-x-0",1:"gap-x-1",2:"gap-x-2",3:"gap-x-3",4:"gap-x-4",5:"gap-x-5",6:"gap-x-6",8:"gap-x-8",10:"gap-x-10",12:"gap-x-12"},gapY:{0:"gap-y-0",1:"gap-y-1",2:"gap-y-2",3:"gap-y-3",4:"gap-y-4",5:"gap-y-5",6:"gap-y-6",8:"gap-y-8",10:"gap-y-10",12:"gap-y-12"},flow:{row:"grid-flow-row",col:"grid-flow-col",dense:"grid-flow-dense","row-dense":"grid-flow-row-dense","col-dense":"grid-flow-col-dense"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-items-start",center:"justify-items-center",end:"justify-items-end",stretch:"justify-items-stretch"},placeItems:{start:"place-items-start",center:"place-items-center",end:"place-items-end",stretch:"place-items-stretch"}},defaultVariants:{columns:1,gap:4,flow:"row",align:"stretch",justify:"stretch"}}),si=___namespace.forwardRef(({className:e,columns:t,rows:r,gap:a,gapX:n,gapY:o,flow:s,align:l,justify:c,placeItems:d,as:m="div",minChildWidth:u,style:p,...f},b)=>{let x=u?{...p,gridTemplateColumns:`repeat(auto-fill, minmax(${u}, 1fr))`}:p;return jsxRuntime.jsx(m,{ref:b,className:i(jh({columns:u?void 0:t,rows:r,gap:a,gapX:n,gapY:o,flow:s,align:l,justify:c,placeItems:d,className:e})),style:x,...f})});si.displayName="Grid";var Wh=classVarianceAuthority.cva("",{variants:{colSpan:{1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12",full:"col-span-full"},rowSpan:{1:"row-span-1",2:"row-span-2",3:"row-span-3",4:"row-span-4",5:"row-span-5",6:"row-span-6",full:"row-span-full"},colStart:{1:"col-start-1",2:"col-start-2",3:"col-start-3",4:"col-start-4",5:"col-start-5",6:"col-start-6",7:"col-start-7",8:"col-start-8",9:"col-start-9",10:"col-start-10",11:"col-start-11",12:"col-start-12",13:"col-start-13",auto:"col-start-auto"},colEnd:{1:"col-end-1",2:"col-end-2",3:"col-end-3",4:"col-end-4",5:"col-end-5",6:"col-end-6",7:"col-end-7",8:"col-end-8",9:"col-end-9",10:"col-end-10",11:"col-end-11",12:"col-end-12",13:"col-end-13",auto:"col-end-auto"},rowStart:{1:"row-start-1",2:"row-start-2",3:"row-start-3",4:"row-start-4",5:"row-start-5",6:"row-start-6",7:"row-start-7",auto:"row-start-auto"},rowEnd:{1:"row-end-1",2:"row-end-2",3:"row-end-3",4:"row-end-4",5:"row-end-5",6:"row-end-6",7:"row-end-7",auto:"row-end-auto"}}}),Yh=___namespace.forwardRef(({className:e,colSpan:t,rowSpan:r,colStart:a,colEnd:n,rowStart:o,rowEnd:s,as:l="div",...c},d)=>jsxRuntime.jsx(l,{ref:d,className:i(Wh({colSpan:t,rowSpan:r,colStart:a,colEnd:n,rowStart:o,rowEnd:s,className:e})),...c}));Yh.displayName="GridItem";var Uh=___namespace.forwardRef(({columns:e=2,className:t,...r},a)=>{if(typeof e=="number")return jsxRuntime.jsx(si,{ref:a,columns:e,className:t,...r});let n=i(e.sm&&`sm:grid-cols-${e.sm}`,e.md&&`md:grid-cols-${e.md}`,e.lg&&`lg:grid-cols-${e.lg}`,e.xl&&`xl:grid-cols-${e.xl}`);return jsxRuntime.jsx(si,{ref:a,columns:1,className:i(n,t),...r})});Uh.displayName="SimpleGrid";var qh=classVarianceAuthority.cva("rounded-lg",{variants:{variant:{default:"bg-muted",subtle:"bg-muted/50",outline:"border border-border bg-transparent",filled:"bg-accent",sunken:"bg-muted shadow-inner"},size:{sm:"p-3",md:"p-4",lg:"p-6",xl:"p-8"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-3xl"}},defaultVariants:{variant:"default",size:"md",radius:"lg"}}),Zh=___namespace.forwardRef(({className:e,variant:t,size:r,radius:a,as:n="div",...o},s)=>jsxRuntime.jsx(n,{ref:s,className:i(qh({variant:t,size:r,radius:a,className:e})),...o}));Zh.displayName="Well";var Qh=classVarianceAuthority.cva("flex",{variants:{orientation:{horizontal:"flex-row items-center gap-2",vertical:"flex-col gap-1"},size:{sm:"",md:"",lg:""},align:{start:"items-start",center:"items-center",end:"items-end"}},compoundVariants:[{orientation:"horizontal",align:"start",className:"items-start"},{orientation:"horizontal",align:"center",className:"items-center"},{orientation:"horizontal",align:"end",className:"items-end"}],defaultVariants:{orientation:"vertical",size:"md",align:"start"}}),mk=classVarianceAuthority.cva("text-muted-foreground font-medium",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),pk=classVarianceAuthority.cva("text-foreground",{variants:{size:{sm:"text-sm",md:"text-base",lg:"text-lg"},weight:{normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},mono:{true:"font-mono",false:""}},defaultVariants:{size:"md",weight:"normal",mono:false}}),ex=___namespace.forwardRef(({className:e,orientation:t,size:r,align:a,label:n,value:o,valueWeight:s,mono:l,labelWidth:c,labelClassName:d,valueClassName:m,showColon:u=false,copyable:p=false,onCopy:f,...b},x)=>{let g=async()=>{if(!(!p||o===null||o===void 0))try{let v=typeof o=="string"?o:String(o);await navigator.clipboard.writeText(v),f?.();}catch{}};return jsxRuntime.jsxs("div",{ref:x,className:i(Qh({orientation:t,size:r,align:a,className:e})),...b,children:[jsxRuntime.jsxs("span",{className:i(mk({size:r}),d),style:c?{width:c,flexShrink:0}:void 0,children:[n,u&&":"]}),jsxRuntime.jsx("span",{className:i(pk({size:r,weight:s,mono:l}),p&&"cursor-pointer hover:bg-accent/50 rounded px-1 -mx-1 transition-colors",m),onClick:p?g:void 0,role:p?"button":void 0,tabIndex:p?0:void 0,onKeyDown:p?v=>{(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),g());}:void 0,children:o})]})});ex.displayName="LabeledValue";var tx=classVarianceAuthority.cva("",{variants:{orientation:{horizontal:"flex flex-row flex-wrap",vertical:"flex flex-col"},gap:{sm:"gap-2",md:"gap-4",lg:"gap-6"}},defaultVariants:{orientation:"vertical",gap:"md"}}),rx=___namespace.forwardRef(({className:e,orientation:t,gap:r,...a},n)=>jsxRuntime.jsx("div",{ref:n,className:i(tx({orientation:t,gap:r,className:e})),...a}));rx.displayName="LabeledValueGroup";var sx=classVarianceAuthority.cva("flex items-center rounded-md border border-input bg-background ring-offset-background transition-colors focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2",{variants:{size:{sm:"h-8 text-xs",md:"h-10 text-sm",lg:"h-12 text-base"},variant:{default:"",filled:"bg-muted border-transparent",ghost:"border-transparent hover:bg-muted"}},defaultVariants:{size:"md",variant:"default"}}),En=classVarianceAuthority.cva("text-muted-foreground shrink-0",{variants:{size:{sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"}},defaultVariants:{size:"md"}}),ix=___namespace.forwardRef(({value:e,defaultValue:t="",onChange:r,onSearch:a,onSelect:n,suggestions:o=[],recentSearches:s=[],onClearRecentSearches:l,trendingSearches:c=[],isLoading:d,showClear:m=true,showIcon:u=true,popoverWidth:p="trigger",emptyMessage:f="No results found",size:b,variant:x,className:g,placeholder:v="Search...",disabled:R,...w},h)=>{let[C,y]=___namespace.useState(false),[T,N]=___namespace.useState(t),E=e!==void 0?e:T,M=___namespace.useRef(null);___namespace.useImperativeHandle(h,()=>M.current);let P=E.length>0,k=C&&(o.length>0||s.length>0||c.length>0||P),L=I=>{e===void 0&&N(I),r?.(I);},H=()=>{L(""),M.current?.focus();},S=I=>{I?.preventDefault(),E.trim()&&(a?.(E.trim()),y(false));},D=I=>{L(I.label),n?.(I),y(false);},V=I=>{L(I),a?.(I),y(false);},z=I=>{L(I),a?.(I),y(false);},G=___namespace.useMemo(()=>{let I={};return o.forEach(F=>{let O=F.category||"Results";I[O]||(I[O]=[]),I[O].push(F);}),I},[o]);return jsxRuntime.jsxs(et,{open:k,onOpenChange:y,children:[jsxRuntime.jsx(gt,{asChild:true,children:jsxRuntime.jsxs("form",{onSubmit:S,className:i(sx({size:b,variant:x}),g),children:[u&&jsxRuntime.jsx(lucideReact.Search,{className:i(En({size:b}),"ml-3")}),jsxRuntime.jsx("input",{ref:M,type:"text",value:E,onChange:I=>L(I.target.value),onFocus:()=>y(true),placeholder:v,disabled:R,className:i("flex-1 bg-transparent px-3 py-2 outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",!u&&"pl-3"),...w}),m&&P&&!R&&jsxRuntime.jsx("button",{type:"button",onClick:H,className:i("mr-2 rounded-sm p-1 text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",En({size:b})),children:jsxRuntime.jsx(lucideReact.X,{className:"h-full w-full"})})]})}),jsxRuntime.jsx(tt,{className:"p-0",style:{width:p==="trigger"?"var(--radix-popover-trigger-width)":p},align:"start",onOpenAutoFocus:I=>I.preventDefault(),children:jsxRuntime.jsxs(cmdk.Command,{className:"rounded-lg border-0",children:[s.length>0&&!P&&jsxRuntime.jsxs("div",{className:"p-2",children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between px-2 py-1.5",children:[jsxRuntime.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Recent"}),l&&jsxRuntime.jsx("button",{type:"button",onClick:l,className:"text-xs text-muted-foreground hover:text-foreground",children:"Clear"})]}),s.map((I,F)=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>V(I),className:"flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm hover:bg-muted",children:[jsxRuntime.jsx(lucideReact.Clock,{className:i(En({size:b}))}),jsxRuntime.jsx("span",{className:"flex-1 text-left truncate",children:I}),jsxRuntime.jsx(lucideReact.ArrowRight,{className:i(En({size:b}),"opacity-0 group-hover:opacity-100")})]},F))]}),c.length>0&&!P&&jsxRuntime.jsxs("div",{className:"border-t p-2",children:[jsxRuntime.jsx("div",{className:"px-2 py-1.5",children:jsxRuntime.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Trending"})}),c.map((I,F)=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>z(I),className:"flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm hover:bg-muted",children:[jsxRuntime.jsx(lucideReact.TrendingUp,{className:i(En({size:b}))}),jsxRuntime.jsx("span",{className:"flex-1 text-left truncate",children:I})]},F))]}),P&&jsxRuntime.jsx("div",{className:"p-2",children:d?jsxRuntime.jsx("div",{className:"flex items-center justify-center py-6",children:jsxRuntime.jsx("div",{className:"h-4 w-4 animate-spin rounded-full border-2 border-primary border-t-transparent"})}):o.length>0?Object.entries(G).map(([I,F])=>jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"px-2 py-1.5",children:jsxRuntime.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:I})}),F.map(O=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>D(O),className:"flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm hover:bg-muted",children:[O.icon||jsxRuntime.jsx(lucideReact.Search,{className:i(En({size:b}))}),jsxRuntime.jsxs("div",{className:"flex-1 text-left",children:[jsxRuntime.jsx("div",{className:"truncate",children:O.label}),O.description&&jsxRuntime.jsx("div",{className:"text-xs text-muted-foreground truncate",children:O.description})]})]},O.id))]},I)):jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:f})})]})})]})});ix.displayName="SearchBar";var lx={Pages:jsxRuntime.jsx(lucideReact.File,{className:"h-4 w-4"}),Files:jsxRuntime.jsx(lucideReact.Folder,{className:"h-4 w-4"}),Settings:jsxRuntime.jsx(lucideReact.Settings,{className:"h-4 w-4"}),Users:jsxRuntime.jsx(lucideReact.User,{className:"h-4 w-4"}),Tags:jsxRuntime.jsx(lucideReact.Hash,{className:"h-4 w-4"})},ux=___namespace.forwardRef(({open:e,onOpenChange:t,items:r=[],recentItems:a=[],placeholder:n="Search...",isLoading:o,emptyMessage:s="No results found.",filter:l,shortcut:c="\u2318K",onSelect:d,footer:m},u)=>{let[p,f]=___namespace.useState(""),b=___namespace.useRef(null),[x,g]=___namespace.useState(false);___namespace.useEffect(()=>{g(true);},[]),___namespace.useEffect(()=>{e||f("");},[e]),___namespace.useEffect(()=>{if(!e)return;let y=T=>{T.key==="Escape"&&t?.(false);};return document.addEventListener("keydown",y),()=>document.removeEventListener("keydown",y)},[e,t]),___namespace.useEffect(()=>(e&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow="";}),[e]);let v=___namespace.useMemo(()=>{let y={};return r.forEach(T=>{let N=T.category||"Results";y[N]||(y[N]=[]),y[N].push(T);}),y},[r]),R=y=>{y.onSelect?.(),d?.(y),t?.(false);},w=()=>{t?.(false);},h=p.length>0,C=!h&&a.length>0;return !x||!e?null:$o__namespace.createPortal(jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-state":e?"open":"closed",onClick:w}),jsxRuntime.jsx("div",{ref:u,className:"fixed left-1/2 top-[20%] z-50 w-full max-w-2xl -translate-x-1/2 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=open]:slide-in-from-left-1/2","data-state":e?"open":"closed",children:jsxRuntime.jsxs(cmdk.Command,{className:"overflow-hidden rounded-xl border bg-background shadow-2xl",filter:l,shouldFilter:!l,children:[jsxRuntime.jsxs("div",{className:"flex items-center border-b px-4",children:[jsxRuntime.jsx(lucideReact.Search,{className:"h-5 w-5 shrink-0 text-muted-foreground"}),jsxRuntime.jsx(cmdk.Command.Input,{ref:b,value:p,onValueChange:f,placeholder:n,className:"flex h-14 w-full bg-transparent px-4 py-4 text-base outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50"}),p&&jsxRuntime.jsx("button",{type:"button",onClick:()=>f(""),className:"rounded-sm p-1 text-muted-foreground hover:text-foreground",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]}),jsxRuntime.jsx(cmdk.Command.List,{className:"max-h-[400px] overflow-y-auto p-2",children:o?jsxRuntime.jsx("div",{className:"flex items-center justify-center py-10",children:jsxRuntime.jsx("div",{className:"h-6 w-6 animate-spin rounded-full border-2 border-primary border-t-transparent"})}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[C&&jsxRuntime.jsxs(cmdk.Command.Group,{heading:"Recent",children:[jsxRuntime.jsx("div",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:"Recent"}),a.map(y=>jsxRuntime.jsxs(cmdk.Command.Item,{value:y.label,onSelect:()=>R(y),className:"flex cursor-pointer items-center gap-3 rounded-lg px-3 py-2.5 text-sm aria-selected:bg-muted",children:[jsxRuntime.jsx("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-muted",children:y.icon||lx[y.category||""]||jsxRuntime.jsx(lucideReact.File,{className:"h-4 w-4"})}),jsxRuntime.jsxs("div",{className:"flex-1 overflow-hidden",children:[jsxRuntime.jsx("div",{className:"truncate font-medium",children:y.label}),y.description&&jsxRuntime.jsx("div",{className:"truncate text-xs text-muted-foreground",children:y.description})]}),y.shortcut&&jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:y.shortcut.map((T,N)=>jsxRuntime.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 text-xs font-medium",children:T},N))})]},y.id))]}),h&&Object.entries(v).map(([y,T])=>jsxRuntime.jsxs(cmdk.Command.Group,{heading:y,children:[jsxRuntime.jsx("div",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:y}),T.map(N=>jsxRuntime.jsxs(cmdk.Command.Item,{value:`${N.label} ${N.keywords?.join(" ")||""}`,onSelect:()=>R(N),className:"flex cursor-pointer items-center gap-3 rounded-lg px-3 py-2.5 text-sm aria-selected:bg-muted",children:[jsxRuntime.jsx("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-muted",children:N.icon||lx[y]||jsxRuntime.jsx(lucideReact.File,{className:"h-4 w-4"})}),jsxRuntime.jsxs("div",{className:"flex-1 overflow-hidden",children:[jsxRuntime.jsx("div",{className:"truncate font-medium",children:N.label}),N.description&&jsxRuntime.jsx("div",{className:"truncate text-xs text-muted-foreground",children:N.description})]}),jsxRuntime.jsx(lucideReact.ArrowRight,{className:"h-4 w-4 text-muted-foreground opacity-0 group-aria-selected:opacity-100"})]},N.id))]},y)),jsxRuntime.jsx(cmdk.Command.Empty,{className:"py-10 text-center text-sm text-muted-foreground",children:s})]})}),m?jsxRuntime.jsx("div",{className:"border-t px-4 py-3",children:m}):jsxRuntime.jsxs("div",{className:"flex items-center justify-between border-t px-4 py-3 text-xs text-muted-foreground",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-4",children:[jsxRuntime.jsxs("span",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 font-medium",children:"\u2191\u2193"}),"Navigate"]}),jsxRuntime.jsxs("span",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 font-medium",children:"\u21B5"}),"Select"]}),jsxRuntime.jsxs("span",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 font-medium",children:"Esc"}),"Close"]})]}),jsxRuntime.jsxs("span",{className:"flex items-center gap-1",children:["Press ",jsxRuntime.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 font-medium",children:c})," to open"]})]})]})})]}),document.body)});ux.displayName="SpotlightSearch";function Tk(e="k"){let[t,r]=___namespace.useState(false);return ___namespace.useEffect(()=>{let a=n=>{(n.metaKey||n.ctrlKey)&&n.key===e&&(n.preventDefault(),r(o=>!o));};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[e]),{open:t,setOpen:r,toggle:()=>r(a=>!a)}}var fx=___namespace.createContext(null),di=()=>{let e=___namespace.useContext(fx);if(!e)throw new Error("useNotificationCenter must be used within a NotificationCenterProvider");return e},Ik=({children:e,notifications:t,onNotificationsChange:r})=>{let[a,n]=___namespace.useState([]),[o,s]=___namespace.useState(false),l=___namespace.useRef(null),c=t!==void 0,d=c?t:a,m=___namespace.useCallback(g=>{c?r?.(g):n(g);},[c,r]),u=d.filter(g=>!g.read).length,p=___namespace.useCallback(g=>{m(d.map(v=>v.id===g?{...v,read:true}:v));},[d,m]),f=___namespace.useCallback(()=>{m(d.map(g=>({...g,read:true})));},[d,m]),b=___namespace.useCallback(g=>{m(d.filter(v=>v.id!==g));},[d,m]),x=___namespace.useCallback(()=>{m([]);},[m]);return jsxRuntime.jsx(fx.Provider,{value:{notifications:d,unreadCount:u,markAsRead:p,markAllAsRead:f,removeNotification:b,clearAll:x,open:o,setOpen:s,triggerRef:l},children:e})},gx=___namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i("relative inline-block",e),...r,children:t}));gx.displayName="NotificationCenter";var bx=___namespace.forwardRef(({className:e,showBadge:t=true,children:r,onClick:a,...n},o)=>{let{unreadCount:s,open:l,setOpen:c,triggerRef:d}=di(),m=p=>{a?.(p),c(!l);},u=s>99?"99+":String(s);return jsxRuntime.jsxs("button",{ref:p=>{d.current=p,typeof o=="function"?o(p):o&&(o.current=p);},type:"button",onClick:m,"aria-label":"Notifications"+(s>0?", "+s+" unread":""),className:i("relative inline-flex items-center justify-center rounded-md p-2 text-muted-foreground hover:bg-accent hover:text-accent-foreground focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",e),...n,children:[r||jsxRuntime.jsx(lucideReact.Bell,{className:"h-5 w-5"}),t&&s>0&&jsxRuntime.jsx("span",{className:"absolute -top-1 -right-1 flex h-5 min-w-5 items-center justify-center rounded-full bg-destructive px-1 text-xs font-medium text-destructive-foreground",children:u})]})});bx.displayName="NotificationCenterTrigger";var vx=___namespace.forwardRef(({className:e,align:t="end",sideOffset:r=8,emptyMessage:a="No notifications",children:n,...o},s)=>{let{open:l,setOpen:c,notifications:d,markAllAsRead:m,clearAll:u,triggerRef:p}=di(),[f,b]=___namespace.useState(false),x=___namespace.useRef(null),[g,v]=___namespace.useState({top:0,left:0});return ___namespace.useEffect(()=>{b(true);},[]),___namespace.useEffect(()=>{if(!l||!p.current||!x.current)return;let R=()=>{if(!p.current||!x.current)return;let w=p.current.getBoundingClientRect(),h=x.current.getBoundingClientRect(),C=w.bottom+r,y=w.left;t==="center"?y=w.left+w.width/2-h.width/2:t==="end"&&(y=w.right-h.width),y+h.width>window.innerWidth-16&&(y=window.innerWidth-h.width-16),y<16&&(y=16),v({top:C,left:y});};return R(),window.addEventListener("resize",R),window.addEventListener("scroll",R,true),()=>{window.removeEventListener("resize",R),window.removeEventListener("scroll",R,true);}},[l,p,t,r]),___namespace.useEffect(()=>{if(!l)return;let R=h=>{x.current&&!x.current.contains(h.target)&&p.current&&!p.current.contains(h.target)&&c(false);},w=h=>{h.key==="Escape"&&c(false);};return document.addEventListener("mousedown",R),document.addEventListener("keydown",w),()=>{document.removeEventListener("mousedown",R),document.removeEventListener("keydown",w);}},[l,c,p]),!f||!l?null:$o__namespace.createPortal(jsxRuntime.jsxs("div",{ref:R=>{x.current=R,typeof s=="function"?s(R):s&&(s.current=R);},className:i("fixed z-50 w-80 sm:w-96 max-h-[70vh] overflow-hidden rounded-lg border bg-popover text-popover-foreground shadow-lg","animate-in fade-in-0 zoom-in-95 slide-in-from-top-2",e),style:{top:g.top,left:g.left},...o,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between border-b px-4 py-3",children:[jsxRuntime.jsx("h3",{className:"font-semibold",children:"Notifications"}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[d.length>0&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{type:"button",onClick:m,className:"text-xs text-muted-foreground hover:text-foreground",children:"Mark all read"}),jsxRuntime.jsx("button",{type:"button",onClick:u,className:"text-xs text-muted-foreground hover:text-foreground",children:"Clear all"})]}),jsxRuntime.jsx("button",{type:"button",onClick:()=>c(false),className:"rounded-md p-1 hover:bg-accent",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})]}),jsxRuntime.jsx("div",{className:"max-h-[calc(70vh-60px)] overflow-y-auto",children:n||(d.length===0?jsxRuntime.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-muted-foreground",children:[jsxRuntime.jsx(lucideReact.Bell,{className:"h-10 w-10 mb-2 opacity-50"}),jsxRuntime.jsx("p",{className:"text-sm",children:a})]}):d.map(R=>jsxRuntime.jsx(uc,{notification:R},R.id)))})]}),document.body)});vx.displayName="NotificationCenterContent";var Vk={info:"border-l-blue-500",success:"border-l-green-500",warning:"border-l-yellow-500",error:"border-l-red-500"},Ak={info:lucideReact.Info,success:lucideReact.CheckCircle,warning:lucideReact.AlertTriangle,error:lucideReact.AlertCircle},uc=({notification:e,onMarkAsRead:t,onRemove:r})=>{let{markAsRead:a,removeNotification:n}=di(),{id:o,title:s,description:l,type:c="info",timestamp:d,read:m,avatar:u,action:p}=e,f=Ak[c],b=()=>{t?t():a(o);},x=()=>{r?r():n(o);},g=v=>{if(!v)return null;let R=typeof v=="string"?new Date(v):v,h=new Date().getTime()-R.getTime(),C=Math.floor(h/6e4),y=Math.floor(h/36e5),T=Math.floor(h/864e5);return C<1?"Just now":C<60?C+"m ago":y<24?y+"h ago":T<7?T+"d ago":R.toLocaleDateString()};return jsxRuntime.jsxs("div",{className:i("group relative flex gap-3 border-b border-l-4 px-4 py-3 transition-colors hover:bg-accent/50",Vk[c],!m&&"bg-accent/20"),children:[jsxRuntime.jsx("div",{className:"flex-shrink-0",children:u||jsxRuntime.jsx("div",{className:i("flex h-8 w-8 items-center justify-center rounded-full",c==="info"&&"bg-blue-100 text-blue-600 dark:bg-blue-900 dark:text-blue-400",c==="success"&&"bg-green-100 text-green-600 dark:bg-green-900 dark:text-green-400",c==="warning"&&"bg-yellow-100 text-yellow-600 dark:bg-yellow-900 dark:text-yellow-400",c==="error"&&"bg-red-100 text-red-600 dark:bg-red-900 dark:text-red-400"),children:jsxRuntime.jsx(f,{className:"h-4 w-4"})})}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsxs("div",{className:"flex items-start justify-between gap-2",children:[jsxRuntime.jsx("p",{className:i("text-sm font-medium",!m&&"font-semibold"),children:s}),!m&&jsxRuntime.jsx("span",{className:"h-2 w-2 flex-shrink-0 rounded-full bg-primary"})]}),l&&jsxRuntime.jsx("p",{className:"mt-1 text-sm text-muted-foreground line-clamp-2",children:l}),jsxRuntime.jsxs("div",{className:"mt-2 flex items-center gap-3",children:[d&&jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:g(d)}),p&&jsxRuntime.jsx("button",{type:"button",onClick:p.onClick,className:"text-xs font-medium text-primary hover:underline",children:p.label})]})]}),jsxRuntime.jsx("div",{className:"flex-shrink-0 opacity-0 group-hover:opacity-100 transition-opacity",children:jsxRuntime.jsxs("div",{className:"flex gap-1",children:[!m&&jsxRuntime.jsx("button",{type:"button",onClick:b,className:"rounded-md p-1 hover:bg-accent",title:"Mark as read",children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})}),jsxRuntime.jsx("button",{type:"button",onClick:x,className:"rounded-md p-1 hover:bg-accent text-destructive",title:"Remove",children:jsxRuntime.jsx(lucideReact.Trash2,{className:"h-4 w-4"})})]})})]})};uc.displayName="NotificationItem";var hx=___namespace.forwardRef(({className:e,children:t,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i("divide-y",e),...r,children:t}));hx.displayName="NotificationList";var xx=classVarianceAuthority.cva("relative flex items-center justify-center gap-3 px-4 py-2.5 text-sm",{variants:{variant:{solid:"",flat:""},type:{default:"",success:"",warning:"",error:""},position:{top:"fixed top-0 left-0 right-0 z-50",relative:"relative"}},compoundVariants:[{variant:"solid",type:"default",className:"bg-primary text-primary-foreground [&>svg]:text-primary-foreground"},{variant:"flat",type:"default",className:"bg-primary/10 text-primary [&>svg]:text-primary"},{variant:"solid",type:"success",className:"bg-green-600 text-white dark:bg-green-500 [&>svg]:text-white"},{variant:"flat",type:"success",className:"bg-green-600/10 text-green-600 dark:bg-green-500/10 dark:text-green-500 [&>svg]:text-green-600 dark:[&>svg]:text-green-500"},{variant:"solid",type:"warning",className:"bg-amber-600 text-white dark:bg-amber-500 [&>svg]:text-white"},{variant:"flat",type:"warning",className:"bg-amber-600/10 text-amber-600 dark:bg-amber-500/10 dark:text-amber-500 [&>svg]:text-amber-600 dark:[&>svg]:text-amber-500"},{variant:"solid",type:"error",className:"bg-red-600 text-white dark:bg-red-500 [&>svg]:text-white"},{variant:"flat",type:"error",className:"bg-red-600/10 text-red-600 dark:bg-red-500/10 dark:text-red-500 [&>svg]:text-red-600 dark:[&>svg]:text-red-500"}],defaultVariants:{variant:"solid",type:"default",position:"relative"}}),_k={default:lucideReact.Info,success:lucideReact.CheckCircle2,warning:lucideReact.AlertTriangle,error:lucideReact.AlertCircle},yx=___namespace.forwardRef(({message:e,type:t="default",variant:r="solid",showIcon:a=false,icon:n,dismissible:o=true,onDismiss:s,endContent:l,position:c,animate:d,autoDismiss:m,storageKey:u,className:p,...f},b)=>{let[x,g]=___namespace.useState(true),[v,R]=___namespace.useState(false);___namespace.useEffect(()=>{u&&localStorage.getItem(`banner-${u}`)==="true"&&g(false);},[u]),___namespace.useEffect(()=>{if(m&&x){let y=setTimeout(()=>{w();},m);return ()=>clearTimeout(y)}},[m,x]);let w=()=>{R(true),setTimeout(()=>{g(false),u&&localStorage.setItem(`banner-${u}`,"true"),s?.();},200);};if(!x)return null;let h=_k[t],C=a?n!==void 0?n:h?jsxRuntime.jsx(h,{className:"h-4 w-4"}):null:null;return jsxRuntime.jsxs("div",{ref:b,className:i(xx({variant:r,type:t,position:c}),d&&"animate-pulse",v&&"animate-out fade-out slide-out-to-top duration-200",p),role:"banner",...f,children:[C&&jsxRuntime.jsx("span",{className:"shrink-0",children:C}),jsxRuntime.jsx("span",{className:"text-center font-medium",children:e}),l&&jsxRuntime.jsx("div",{className:"shrink-0 ml-2",children:l}),o&&jsxRuntime.jsx("button",{type:"button",onClick:w,className:i("absolute right-2 top-1/2 -translate-y-1/2 rounded-sm p-1 transition-opacity hover:opacity-70 cursor-pointer",c==="relative"&&"right-4"),"aria-label":"Dismiss banner",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})});yx.displayName="Banner";var vo=classVarianceAuthority.cva("inline-flex items-center justify-center rounded-full shadow-lg transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{solid:"bg-primary text-primary-foreground hover:bg-primary/90",bordered:"border-2 border-primary bg-transparent text-primary hover:opacity-70",light:"bg-transparent text-primary hover:bg-primary/10",flat:"bg-primary/20 text-primary hover:opacity-70",ghost:"border-2 border-primary bg-transparent text-primary hover:bg-primary hover:text-primary-foreground"},size:{sm:"h-10 w-10",md:"h-14 w-14",lg:"h-16 w-16"},position:{"bottom-right":"fixed bottom-6 right-6","bottom-left":"fixed bottom-6 left-6","bottom-center":"fixed bottom-6 left-1/2 -translate-x-1/2",relative:"relative"}},defaultVariants:{variant:"solid",size:"md",position:"bottom-right"}}),Yk=classVarianceAuthority.cva("transition-transform duration-200 [&>svg]:h-full [&>svg]:w-full",{variants:{size:{sm:"h-5 w-5",md:"h-6 w-6",lg:"h-8 w-8"}},defaultVariants:{size:"md"}}),pc=___namespace.forwardRef(({icon:e,label:t="Action button",extended:r,extendedLabel:a,actions:n,direction:o="up",showTooltip:s=true,closeIcon:l,animation:c="rotate",variant:d,size:m,position:u,className:p,onClick:f,disabled:b,...x},g)=>{let[v,R]=___namespace.useState(false),w=n&&n.length>0,h=E=>{w&&R(!v),f?.(E);},C=E=>{E.onClick?.(),R(false);},y={up:{container:"flex-col-reverse bottom-full mb-3 gap-3",item:""},down:{container:"flex-col top-full mt-3 gap-3",item:""},left:{container:"flex-row-reverse right-full mr-3 gap-3",item:""},right:{container:"flex-row left-full ml-3 gap-3",item:""}},T=c==="rotate"&&v?"rotate-45":"",N=c==="scale"&&v?"scale-0":"scale-100";return jsxRuntime.jsxs("div",{className:i("relative z-50",u!=="relative"&&u&&vo({position:u})),children:[w&&v&&jsxRuntime.jsx("div",{className:i("absolute left-1/2 -translate-x-1/2 flex items-center",y[o].container),children:n.map((E,M)=>jsxRuntime.jsxs("div",{className:i("flex items-center gap-2 animate-in fade-in zoom-in duration-200",o==="up"||o==="down"?"flex-row":"flex-col"),style:{animationDelay:`${M*50}ms`},children:[s&&(o==="up"||o==="down")&&jsxRuntime.jsx("span",{className:"rounded-md bg-popover px-2 py-1 text-xs font-medium text-popover-foreground shadow-md whitespace-nowrap",children:E.label}),E.href?jsxRuntime.jsx("a",{href:E.href,className:i(vo({variant:E.variant||"flat",size:m==="lg"?"md":"sm",position:"relative"}),"[&>svg]:h-5 [&>svg]:w-5"),"aria-label":E.label,children:E.icon}):jsxRuntime.jsx("button",{type:"button",onClick:()=>C(E),className:i(vo({variant:E.variant||"flat",size:m==="lg"?"md":"sm",position:"relative"}),"[&>svg]:h-5 [&>svg]:w-5"),"aria-label":E.label,children:E.icon}),s&&(o==="left"||o==="right")&&jsxRuntime.jsx("span",{className:"rounded-md bg-popover px-2 py-1 text-xs font-medium text-popover-foreground shadow-md whitespace-nowrap",children:E.label})]},E.id))}),jsxRuntime.jsxs("button",{ref:g,type:"button",onClick:h,disabled:b,className:i(vo({variant:d,size:m,position:"relative"}),r&&"w-auto px-6 gap-2",p),"aria-label":t,"aria-expanded":w?v:void 0,...x,children:[v&&l?l:jsxRuntime.jsx("span",{className:i(Yk({size:m}),T,N,"transition-all duration-200"),children:e||jsxRuntime.jsx(lucideReact.Plus,{})}),r&&a&&jsxRuntime.jsx("span",{className:"font-medium",children:a})]}),w&&v&&jsxRuntime.jsx("div",{className:"fixed inset-0 -z-10",onClick:()=>R(false)})]})});pc.displayName="FloatingActionButton";var Uk=pc;var Mx=classVarianceAuthority.cva("fixed bottom-0 left-0 right-0 z-50 flex items-center justify-around border-t bg-background safe-area-pb",{variants:{variant:{default:"border-border",elevated:"border-transparent shadow-[0_-4px_6px_-1px_rgba(0,0,0,0.1)]",filled:"border-transparent bg-primary text-primary-foreground"},size:{sm:"h-14",md:"h-16",lg:"h-20"}},defaultVariants:{variant:"default",size:"md"}}),wx=classVarianceAuthority.cva("flex flex-1 flex-col items-center justify-center gap-1 transition-colors cursor-pointer",{variants:{variant:{default:"",elevated:"",filled:""}},defaultVariants:{variant:"default"}}),Tx=___namespace.forwardRef(({className:e,variant:t,size:r,items:a,value:n,defaultValue:o,onValueChange:s,hideLabels:l=false,showActiveLabel:c=false,renderItem:d,...m},u)=>{let[p,f]=___namespace.useState(o||a[0]?.key),b=n!==void 0,x=b?n:p,g=h=>{h.disabled||(b||f(h.key),s?.(h.key));},v=h=>t==="filled"?h?"text-primary-foreground":"text-primary-foreground/60 hover:text-primary-foreground/80":h?"text-primary":"text-muted-foreground hover:text-foreground",R=()=>{switch(r){case "sm":return "h-5 w-5";case "lg":return "h-7 w-7";default:return "h-6 w-6"}},w=()=>{switch(r){case "sm":return "text-[10px]";case "lg":return "text-sm";default:return "text-xs"}};return jsxRuntime.jsx("nav",{ref:u,className:i(Mx({variant:t,size:r}),e),role:"navigation","aria-label":"Bottom navigation",...m,children:a.map(h=>{let C=x===h.key,y=!l&&(c?C:true),T=C&&h.activeIcon?h.activeIcon:h.icon;if(d)return jsxRuntime.jsx("div",{onClick:()=>g(h),className:i(wx({variant:t}),h.disabled&&"opacity-50 cursor-not-allowed"),children:d(h,C)},h.key);let N=jsxRuntime.jsxs("div",{onClick:()=>!h.href&&g(h),className:i(wx({variant:t}),v(C),h.disabled&&"opacity-50 cursor-not-allowed"),role:"button","aria-current":C?"page":void 0,"aria-disabled":h.disabled,tabIndex:h.disabled?-1:0,onKeyDown:E=>{(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),g(h));},children:[jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("span",{className:i(R(),"[&>svg]:h-full [&>svg]:w-full"),children:T}),h.badge!==void 0&&h.badge>0&&jsxRuntime.jsx("span",{className:"absolute -top-1 -right-1 flex h-4 min-w-4 items-center justify-center rounded-full bg-red-500 px-1 text-[10px] font-medium text-white",children:h.badge>99?"99+":h.badge}),h.showDot&&jsxRuntime.jsx("span",{className:"absolute -top-0.5 -right-0.5 h-2 w-2 rounded-full bg-red-500"})]}),y&&h.label&&jsxRuntime.jsx("span",{className:i(w(),"font-medium truncate max-w-full px-1"),children:h.label})]},h.key);return h.href&&!h.disabled?jsxRuntime.jsx("a",{href:h.href,onClick:()=>g(h),className:i("flex flex-1 flex-col items-center justify-center gap-1 no-underline",v(C)),children:N},h.key):N})})});Tx.displayName="BottomNavigation";var qk="fixed inset-x-0 bottom-0 z-50 mt-24 flex h-fit max-h-[90vh] flex-col rounded-t-[20px] border-t border-border/40 dark:border-border/20 bg-background",kx=classVarianceAuthority.cva("flex w-full items-center gap-3 px-4 py-3.5 text-left transition-colors focus-visible:outline-none focus-visible:bg-accent disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"hover:bg-accent",destructive:"text-destructive hover:bg-destructive/10"}},defaultVariants:{variant:"default"}}),Ex=___namespace.forwardRef(({open:e,onOpenChange:t,trigger:r,title:a,description:n,items:o,cancelLabel:s="Cancel",onCancel:l,showCancel:c=true,children:d,closeOnSelect:m=true,onAction:u},p)=>{let f=b=>{b.isDisabled||(b.onSelect?.(),u?.(b.key),m&&t?.(false));};return jsxRuntime.jsxs(vaul.Drawer.Root,{open:e,onOpenChange:t,children:[r&&jsxRuntime.jsx(vaul.Drawer.Trigger,{asChild:true,children:r}),jsxRuntime.jsxs(vaul.Drawer.Portal,{children:[jsxRuntime.jsx(vaul.Drawer.Overlay,{className:"fixed inset-0 z-50 bg-black/40"}),jsxRuntime.jsxs(vaul.Drawer.Content,{ref:p,className:qk,children:[jsxRuntime.jsx("div",{className:"mx-auto mt-4 h-1.5 w-12 flex-shrink-0 rounded-full bg-muted"}),(a||n)&&jsxRuntime.jsxs("div",{className:"px-4 py-3 text-center",children:[a&&jsxRuntime.jsx(vaul.Drawer.Title,{className:"text-base font-semibold",children:a}),n&&jsxRuntime.jsx(vaul.Drawer.Description,{className:"mt-1 text-sm text-muted-foreground",children:n})]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto",children:d||jsxRuntime.jsx("div",{className:"divide-y divide-border/40 dark:divide-border/20",children:o?.map(b=>jsxRuntime.jsxs("button",{type:"button",disabled:b.isDisabled,onClick:()=>f(b),className:i(kx({variant:b.isDestructive?"destructive":"default"})),children:[b.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 flex-shrink-0 [&>svg]:h-full [&>svg]:w-full",children:b.icon}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:"font-medium",children:b.label}),b.description&&jsxRuntime.jsx("div",{className:"text-sm text-muted-foreground truncate",children:b.description})]})]},b.key))})}),c&&jsxRuntime.jsx("div",{className:"border-t border-border/40 dark:border-border/20 p-2 pb-safe",children:jsxRuntime.jsx(vaul.Drawer.Close,{asChild:true,children:jsxRuntime.jsx("button",{type:"button",onClick:l,className:"w-full rounded-lg bg-muted py-3.5 text-center font-semibold transition-colors hover:bg-muted/80",children:s})})})]})]})]})});Ex.displayName="ActionSheet";var Dx=classVarianceAuthority.cva("relative overflow-hidden touch-pan-y",{variants:{variant:{default:"",card:"rounded-lg border bg-card"}},defaultVariants:{variant:"default"}}),gc=classVarianceAuthority.cva("flex h-full items-center justify-center px-4 text-white font-medium transition-opacity",{variants:{variant:{primary:"bg-primary",secondary:"bg-secondary text-secondary-foreground",success:"bg-green-500",warning:"bg-yellow-500",danger:"bg-red-500",info:"bg-blue-500"},size:{sm:"min-w-16",md:"min-w-20",lg:"min-w-24"}},defaultVariants:{variant:"primary",size:"md"}}),Sx=___namespace.forwardRef(({className:e,variant:t,leftActions:r=[],rightActions:a=[],actionSize:n="md",threshold:o=.3,onSwipeEnd:s,disabled:l=false,fullSwipeAction:c,children:d,...m},u)=>{let p=___namespace.useRef(null),[f,b]=___namespace.useState(0),[x,g]=___namespace.useState(false),v=___namespace.useRef(0),R=___namespace.useRef(0),w=r.length*(n==="sm"?64:n==="lg"?96:80),h=a.length*(n==="sm"?64:n==="lg"?96:80),C=M=>{l||(g(true),v.current=M.touches[0].clientX,R.current=f);},y=M=>{if(!x||l)return;let k=M.touches[0].clientX-v.current,L=R.current+k;(L>0&&r.length===0||L<0&&a.length===0)&&(L=0),L>w?L=w+(L-w)*.3:L<-h&&(L=-h+(L+h)*.3),b(L);},T=()=>{if(!x)return;g(false);let M=p.current?.offsetWidth||0,P=Math.abs(f)/M;if(c&&P>.6){c==="right"&&f>0&&r[0]?(r[0].onAction?.(),s?.("right",r[0].key)):c==="left"&&f<0&&a[0]&&(a[0].onAction?.(),s?.("left",a[0].key)),b(0);return}f>w*o&&r.length>0?(b(w),s?.("right")):f<-h*o&&a.length>0?(b(-h),s?.("left")):b(0);},N=(M,P)=>{M.onAction?.(),s?.(P,M.key),b(0);},E=()=>{b(0);};return jsxRuntime.jsxs("div",{ref:u,className:i(Dx({variant:t,className:e})),...m,children:[r.length>0&&jsxRuntime.jsx("div",{className:"absolute left-0 top-0 bottom-0 flex",style:{width:w},children:r.map(M=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>N(M,"right"),className:i(gc({variant:M.variant,size:n})),style:{opacity:Math.min(1,f/w)},children:[M.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 [&>svg]:h-full [&>svg]:w-full",children:M.icon}),!M.icon&&M.label]},M.key))}),a.length>0&&jsxRuntime.jsx("div",{className:"absolute right-0 top-0 bottom-0 flex",style:{width:h},children:a.map(M=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>N(M,"left"),className:i(gc({variant:M.variant,size:n})),style:{opacity:Math.min(1,Math.abs(f)/h)},children:[M.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 [&>svg]:h-full [&>svg]:w-full",children:M.icon}),!M.icon&&M.label]},M.key))}),jsxRuntime.jsx("div",{ref:p,className:i("relative bg-background",x?"":"transition-transform duration-200"),style:{transform:`translateX(${f}px)`},onTouchStart:C,onTouchMove:y,onTouchEnd:T,onClick:f!==0?E:void 0,children:d})]})});Sx.displayName="SwipeActions";var Ix=classVarianceAuthority.cva("relative overflow-hidden",{variants:{variant:{default:"",contained:"h-full"}},defaultVariants:{variant:"default"}}),Qk=classVarianceAuthority.cva("absolute left-1/2 -translate-x-1/2 flex items-center justify-center transition-all duration-200",{variants:{size:{sm:"h-8 w-8",md:"h-10 w-10",lg:"h-12 w-12"}},defaultVariants:{size:"md"}}),Vx=___namespace.forwardRef(({className:e,variant:t,onRefresh:r,pullThreshold:a=80,maxPullDistance:n=120,loadingIndicator:o,pullIndicator:s,indicatorSize:l="md",disabled:c=false,pullText:d="Pull to refresh",releaseText:m="Release to refresh",refreshingText:u="Refreshing...",children:p,...f},b)=>{let x=___namespace.useRef(null),[g,v]=___namespace.useState(0),[R,w]=___namespace.useState("idle"),h=___namespace.useRef(0),C=___namespace.useRef(false),y=()=>c||R==="refreshing"?false:(x.current?.scrollTop??window.scrollY)<=0,T=k=>{y()&&(h.current=k.touches[0].clientY,C.current=true);},N=k=>{if(!C.current||!y())return;let H=k.touches[0].clientY-h.current;if(H<0){v(0),w("idle");return}let D=Math.min(H*.5,n);v(D),w(D>=a?"ready":"pulling");},E=async()=>{if(C.current)if(C.current=false,R==="ready"){w("refreshing"),v(a*.6);try{await r();}finally{w("idle"),v(0);}}else w("idle"),v(0);},M={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6"}[l],P=()=>{if(R==="refreshing")return o||jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-1",children:[jsxRuntime.jsx(lucideReact.Loader2,{className:i(M,"animate-spin text-primary")}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:u})]});let k=Math.min(g/a*180,180);return s||jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-1",children:[jsxRuntime.jsx(lucideReact.ArrowDown,{className:i(M,"text-muted-foreground transition-transform"),style:{transform:`rotate(${k}deg)`}}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:R==="ready"?m:d})]})};return jsxRuntime.jsxs("div",{ref:b,className:i(Ix({variant:t,className:e})),...f,children:[jsxRuntime.jsx("div",{className:i(Qk({size:l}),"z-10",R==="idle"&&g===0&&"opacity-0"),style:{top:Math.max(g-60,-60),opacity:Math.min(g/(a*.5),1)},children:P()}),jsxRuntime.jsx("div",{ref:x,className:i("transition-transform duration-200",R==="refreshing"&&"ease-out"),style:{transform:`translateY(${g}px)`,transition:C.current?"none":void 0},onTouchStart:T,onTouchMove:N,onTouchEnd:E,children:p})]})});Vx.displayName="PullToRefresh";var zx=classVarianceAuthority.cva("flex min-h-screen w-full",{variants:{layout:{default:"flex-col",sidebar:"flex-row"}},defaultVariants:{layout:"default"}}),Bx=___namespace.forwardRef(({className:e,layout:t="default",header:r,footer:a,sidebar:n,aside:o,sidebarCollapsed:s=false,sidebarWidth:l="16rem",sidebarCollapsedWidth:c="4rem",asideWidth:d="16rem",fixed:m=false,children:u,...p},f)=>{let b=s?c:l;return jsxRuntime.jsxs("div",{ref:f,className:i(zx({layout:t}),e),style:{"--app-shell-sidebar-width":b,"--app-shell-aside-width":d},...p,children:[r&&jsxRuntime.jsx(vc,{fixed:m,hasSidebar:!!n,children:r}),jsxRuntime.jsxs("div",{className:"flex flex-1",children:[n&&jsxRuntime.jsx(hc,{collapsed:s,fixed:m,children:n}),jsxRuntime.jsx("main",{className:i("flex-1 flex flex-col min-h-0",m&&r&&"pt-14",m&&a&&"pb-14"),children:u}),o&&jsxRuntime.jsx(xc,{fixed:m,children:o})]}),a&&jsxRuntime.jsx(yc,{fixed:m,hasSidebar:!!n,children:a})]})});Bx.displayName="AppShell";var vc=___namespace.forwardRef(({className:e,fixed:t,hasSidebar:r,children:a,...n},o)=>jsxRuntime.jsx("header",{ref:o,className:i("flex h-14 items-center border-b bg-background px-4",t&&"fixed top-0 right-0 z-40",t&&r&&"left-[var(--app-shell-sidebar-width)]",t&&!r&&"left-0",e),...n,children:a}));vc.displayName="AppShellHeader";var hc=___namespace.forwardRef(({className:e,collapsed:t,fixed:r,children:a,...n},o)=>jsxRuntime.jsx("aside",{ref:o,className:i("w-[var(--app-shell-sidebar-width)] shrink-0 border-r bg-background transition-[width] duration-200",r&&"fixed left-0 top-0 bottom-0 z-50",e),"data-collapsed":t,...n,children:a}));hc.displayName="AppShellSidebar";var xc=___namespace.forwardRef(({className:e,fixed:t,children:r,...a},n)=>jsxRuntime.jsx("aside",{ref:n,className:i("w-[var(--app-shell-aside-width)] shrink-0 border-l bg-background",t&&"fixed right-0 top-14 bottom-0 z-40",e),...a,children:r}));xc.displayName="AppShellAside";var yc=___namespace.forwardRef(({className:e,fixed:t,hasSidebar:r,children:a,...n},o)=>jsxRuntime.jsx("footer",{ref:o,className:i("flex h-14 items-center border-t bg-background px-4",t&&"fixed bottom-0 right-0 z-40",t&&r&&"left-[var(--app-shell-sidebar-width)]",t&&!r&&"left-0",e),...n,children:a}));yc.displayName="AppShellFooter";var Ox=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex-1 overflow-auto p-4",e),...t}));Ox.displayName="AppShellMain";var Kx=classVarianceAuthority.cva("flex min-h-screen w-full bg-muted/40",{variants:{variant:{default:"",bordered:"[&_[data-slot=sidebar]]:border-r [&_[data-slot=header]]:border-b",filled:"[&_[data-slot=sidebar]]:bg-background [&_[data-slot=header]]:bg-background"}},defaultVariants:{variant:"bordered"}}),Gx=___namespace.forwardRef(({className:e,variant:t,navigation:r,logo:a,userMenu:n,headerActions:o,breadcrumb:s,defaultCollapsed:l=false,collapsed:c,onCollapsedChange:d,children:m,...u},p)=>{let[f,b]=___namespace.useState(l),[x,g]=___namespace.useState(false),v=c??f,R=___namespace.useCallback(w=>{b(w),d?.(w);},[d]);return jsxRuntime.jsxs("div",{ref:p,className:i(Kx({variant:t}),e),...u,children:[jsxRuntime.jsxs("aside",{"data-slot":"sidebar","data-collapsed":v,className:i("hidden lg:flex flex-col fixed inset-y-0 left-0 z-50 bg-background transition-[width] duration-200",v?"w-16":"w-64"),children:[jsxRuntime.jsx("div",{className:"flex h-14 items-center border-b px-4",children:a}),jsxRuntime.jsx("nav",{className:"flex-1 overflow-auto py-4",children:r}),n&&jsxRuntime.jsx("div",{className:"border-t p-4",children:n})]}),jsxRuntime.jsx(Ko,{open:x,onOpenChange:g,children:jsxRuntime.jsxs(Go,{side:"left",className:"w-64 p-0",children:[jsxRuntime.jsx("div",{className:"flex h-14 items-center border-b px-4",children:a}),jsxRuntime.jsx("nav",{className:"flex-1 overflow-auto py-4",children:r}),n&&jsxRuntime.jsx("div",{className:"border-t p-4",children:n})]})}),jsxRuntime.jsxs("div",{className:i("flex flex-1 flex-col transition-[margin-left] duration-200",v?"lg:ml-16":"lg:ml-64"),children:[jsxRuntime.jsxs("header",{"data-slot":"header",className:"sticky top-0 z-40 flex h-14 items-center gap-4 bg-background px-4 lg:px-6",children:[jsxRuntime.jsxs(Z,{variant:"ghost",size:"icon",className:"lg:hidden",onClick:()=>g(true),children:[jsxRuntime.jsx(lucideReact.Menu,{className:"h-5 w-5"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle menu"})]}),jsxRuntime.jsxs(Z,{variant:"ghost",size:"icon",className:"hidden lg:flex",onClick:()=>R(!v),children:[jsxRuntime.jsx(lucideReact.Menu,{className:"h-5 w-5"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle sidebar"})]}),s&&jsxRuntime.jsx("div",{className:"flex-1",children:s}),o&&jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:o})]}),jsxRuntime.jsx("main",{className:"flex-1 p-4 lg:p-6",children:m})]})]})});Gx.displayName="DashboardLayout";var $x=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("space-y-6",e),...t}));$x.displayName="DashboardPage";var _x=___namespace.forwardRef(({className:e,title:t,description:r,actions:a,children:n,...o},s)=>jsxRuntime.jsxs("div",{ref:s,className:i("flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",e),...o,children:[jsxRuntime.jsxs("div",{className:"space-y-1",children:[t&&jsxRuntime.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:t}),r&&jsxRuntime.jsx("p",{className:"text-muted-foreground",children:r}),n]}),a&&jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:a})]}));_x.displayName="DashboardPageHeader";var jx=___namespace.forwardRef(({className:e,columns:t=4,...r},a)=>jsxRuntime.jsx("div",{ref:a,className:i("grid gap-4",{1:"grid-cols-1",2:"grid-cols-1 md:grid-cols-2",3:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 md:grid-cols-2 lg:grid-cols-4"}[t],e),...r}));jx.displayName="DashboardGrid";var pi=classVarianceAuthority.cva("min-h-screen w-full",{variants:{variant:{centered:"flex items-center justify-center bg-muted/40",split:"flex flex-col lg:flex-row",cover:"relative flex items-center justify-center"}},defaultVariants:{variant:"centered"}}),Wx=___namespace.forwardRef(({className:e,variant:t="centered",logo:r,sideContent:a,backgroundImage:n,sidePosition:o="left",footer:s,children:l,...c},d)=>t==="split"?jsxRuntime.jsxs("div",{ref:d,className:i(pi({variant:t}),e),...c,children:[jsxRuntime.jsx("div",{className:i("hidden lg:flex lg:w-1/2 flex-col bg-primary text-primary-foreground",o==="right"&&"order-2"),children:a||jsxRuntime.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center p-8",children:[r&&jsxRuntime.jsx("div",{className:"mb-8",children:r}),jsxRuntime.jsxs("div",{className:"max-w-md text-center",children:[jsxRuntime.jsx("h2",{className:"text-3xl font-bold",children:"Welcome back"}),jsxRuntime.jsx("p",{className:"mt-4 text-primary-foreground/80",children:"Sign in to your account to continue"})]})]})}),jsxRuntime.jsxs("div",{className:i("flex flex-1 flex-col lg:w-1/2",o==="right"&&"order-1"),children:[r&&jsxRuntime.jsx("div",{className:"flex items-center justify-center p-6 lg:hidden",children:r}),jsxRuntime.jsx("div",{className:"flex flex-1 items-center justify-center p-6",children:jsxRuntime.jsx("div",{className:"w-full max-w-md space-y-6",children:l})}),s&&jsxRuntime.jsx("div",{className:"p-6 text-center text-sm text-muted-foreground",children:s})]})]}):t==="cover"?jsxRuntime.jsxs("div",{ref:d,className:i(pi({variant:t}),e),style:n?{backgroundImage:`url(${n})`,backgroundSize:"cover",backgroundPosition:"center"}:void 0,...c,children:[n&&jsxRuntime.jsx("div",{className:"absolute inset-0 bg-background/80 backdrop-blur-sm"}),jsxRuntime.jsxs("div",{className:"relative z-10 w-full max-w-md p-6",children:[r&&jsxRuntime.jsx("div",{className:"mb-8 flex justify-center",children:r}),jsxRuntime.jsx("div",{className:"rounded-lg border bg-card p-6 shadow-lg",children:l}),s&&jsxRuntime.jsx("div",{className:"mt-6 text-center text-sm text-muted-foreground",children:s})]})]}):jsxRuntime.jsx("div",{ref:d,className:i(pi({variant:t}),e),...c,children:jsxRuntime.jsxs("div",{className:"w-full max-w-md p-6",children:[r&&jsxRuntime.jsx("div",{className:"mb-8 flex justify-center",children:r}),jsxRuntime.jsx("div",{className:"rounded-lg border bg-card p-6 shadow-sm",children:l}),s&&jsxRuntime.jsx("div",{className:"mt-6 text-center text-sm text-muted-foreground",children:s})]})}));Wx.displayName="AuthLayout";var Yx=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("form",{ref:r,className:i("space-y-4",e),...t}));Yx.displayName="AuthForm";var Ux=___namespace.forwardRef(({className:e,title:t,description:r,children:a,...n},o)=>jsxRuntime.jsxs("div",{ref:o,className:i("space-y-2 text-center",e),...n,children:[t&&jsxRuntime.jsx("h1",{className:"text-2xl font-bold",children:t}),r&&jsxRuntime.jsx("p",{className:"text-muted-foreground",children:r}),a]}));Ux.displayName="AuthHeader";var Xx=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("flex flex-col gap-2 text-center text-sm",e),...t}));Xx.displayName="AuthFooterLinks";var qx=___namespace.forwardRef(({className:e,text:t="or continue with",...r},a)=>jsxRuntime.jsxs("div",{ref:a,className:i("relative my-4",e),...r,children:[jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center",children:jsxRuntime.jsx("span",{className:"w-full border-t"})}),jsxRuntime.jsx("div",{className:"relative flex justify-center text-xs uppercase",children:jsxRuntime.jsx("span",{className:"bg-card px-2 text-muted-foreground",children:t})})]}));qx.displayName="AuthDivider";var Zx=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("grid grid-cols-2 gap-2",e),...t}));Zx.displayName="AuthSocialButtons";var fi=classVarianceAuthority.cva("w-full",{variants:{variant:{sidebar:"flex flex-col lg:flex-row gap-8",tabs:"space-y-6",stacked:"space-y-8"}},defaultVariants:{variant:"sidebar"}}),Jx=___namespace.forwardRef(({className:e,variant:t="sidebar",navigation:r,title:a,description:n,children:o,...s},l)=>t==="sidebar"?jsxRuntime.jsxs("div",{ref:l,className:i(fi({variant:t}),e),...s,children:[r&&jsxRuntime.jsx("aside",{className:"lg:w-64 shrink-0",children:jsxRuntime.jsx("nav",{className:"flex flex-col gap-1",children:r})}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-6",children:[(a||n)&&jsxRuntime.jsx(xo,{title:a,description:n}),o]})]}):t==="tabs"?jsxRuntime.jsxs("div",{ref:l,className:i(fi({variant:t}),e),...s,children:[(a||n)&&jsxRuntime.jsx(xo,{title:a,description:n}),r,jsxRuntime.jsx("div",{className:"pt-4",children:o})]}):jsxRuntime.jsxs("div",{ref:l,className:i(fi({variant:t}),e),...s,children:[(a||n)&&jsxRuntime.jsx(xo,{title:a,description:n}),o]}));Jx.displayName="SettingsLayout";var xo=___namespace.forwardRef(({className:e,title:t,description:r,children:a,...n},o)=>jsxRuntime.jsxs("div",{ref:o,className:i("space-y-1",e),...n,children:[t&&jsxRuntime.jsx("h1",{className:"text-2xl font-bold",children:t}),r&&jsxRuntime.jsx("p",{className:"text-muted-foreground",children:r}),a]}));xo.displayName="SettingsHeader";var Qx=___namespace.forwardRef(({className:e,title:t,description:r,children:a,...n},o)=>jsxRuntime.jsxs("div",{ref:o,className:i("space-y-4",e),...n,children:[(t||r)&&jsxRuntime.jsxs("div",{className:"space-y-1",children:[t&&jsxRuntime.jsx("h2",{className:"text-lg font-medium",children:t}),r&&jsxRuntime.jsx("p",{className:"text-sm text-muted-foreground",children:r})]}),a]}));Qx.displayName="SettingsSection";var ey=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("rounded-lg border bg-card p-6",e),...t}));ey.displayName="SettingsCard";var ty=___namespace.forwardRef(({className:e,label:t,description:r,htmlFor:a,children:n,...o},s)=>jsxRuntime.jsxs("div",{ref:s,className:i("flex flex-col gap-4 py-4 sm:flex-row sm:items-center sm:justify-between","border-b last:border-0 first:pt-0 last:pb-0",e),...o,children:[jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[t&&jsxRuntime.jsx("label",{htmlFor:a,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:t}),r&&jsxRuntime.jsx("p",{className:"text-sm text-muted-foreground",children:r})]}),jsxRuntime.jsx("div",{className:"shrink-0",children:n})]}));ty.displayName="SettingsRow";var ry=___namespace.forwardRef(({className:e,active:t,icon:r,children:a,...n},o)=>jsxRuntime.jsxs("button",{ref:o,type:"button",className:i("flex items-center gap-3 rounded-md px-3 py-2 text-sm font-medium transition-colors","hover:bg-muted",t&&"bg-muted",e),...n,children:[r&&jsxRuntime.jsx("span",{className:"h-4 w-4 [&>svg]:h-full [&>svg]:w-full",children:r}),a]}));ry.displayName="SettingsNavItem";var ay=___namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:i("h-px bg-border my-4",e),...t}));ay.displayName="SettingsSeparator";var Ua=(e,t,r)=>({duration:e,delay:t,ease:r||[.4,0,.2,1]}),nE={hidden:e=>({opacity:e}),visible:{opacity:1},exit:e=>({opacity:e})},ny=___namespace.forwardRef(({show:e=true,children:t,duration:r=.3,delay:a=0,ease:n,className:o,unmountOnExit:s=true,initialOpacity:l=0,onAnimationStart:c,onAnimationComplete:d},m)=>{let u=jsxRuntime.jsx(framerMotion.motion.div,{ref:m,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:nE,custom:l,transition:Ua(r,a,n),className:i(o),onAnimationStart:c,onAnimationComplete:d,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&u}):u});ny.displayName="Fade";var oE=(e,t)=>{let r=typeof t=="number"?`${t}px`:t,a={up:{y:r},down:{y:`-${r}`},left:{x:r},right:{x:`-${r}`}};return {hidden:{opacity:0,...a[e]},visible:{opacity:1,x:0,y:0},exit:{opacity:0,...a[e]}}},oy=___namespace.forwardRef(({show:e=true,children:t,duration:r=.3,delay:a=0,ease:n,className:o,unmountOnExit:s=true,direction:l="up",offset:c=20,onAnimationStart:d,onAnimationComplete:m},u)=>{let p=___namespace.useMemo(()=>oE(l,c),[l,c]),f=jsxRuntime.jsx(framerMotion.motion.div,{ref:u,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:p,transition:Ua(r,a,n),className:i(o),onAnimationStart:d,onAnimationComplete:m,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&f}):f});oy.displayName="Slide";var sE={center:"center center",top:"center top",bottom:"center bottom",left:"left center",right:"right center","top-left":"left top","top-right":"right top","bottom-left":"left bottom","bottom-right":"right bottom"},iE={hidden:e=>({opacity:0,scale:e}),visible:{opacity:1,scale:1},exit:e=>({opacity:0,scale:e})},sy=___namespace.forwardRef(({show:e=true,children:t,duration:r=.3,delay:a=0,ease:n,className:o,unmountOnExit:s=true,initialScale:l=.9,origin:c="center",onAnimationStart:d,onAnimationComplete:m},u)=>{let p=jsxRuntime.jsx(framerMotion.motion.div,{ref:u,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:iE,custom:l,transition:Ua(r,a,n),className:i(o),style:{transformOrigin:sE[c]},onAnimationStart:d,onAnimationComplete:m,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&p}):p});sy.displayName="Scale";var iy=___namespace.forwardRef(({show:e=true,children:t,duration:r=.3,delay:a=0,ease:n,className:o,horizontal:s=false,startingSize:l=0,animateOpacity:c=true,onAnimationStart:d,onAnimationComplete:m},u)=>{let p=s?"width":"height",f={hidden:{[p]:l,opacity:c?0:1},visible:{[p]:"auto",opacity:1},exit:{[p]:l,opacity:c?0:1}};return jsxRuntime.jsx(framerMotion.AnimatePresence,{initial:false,children:e&&jsxRuntime.jsx(framerMotion.motion.div,{ref:u,initial:"hidden",animate:"visible",exit:"exit",variants:f,transition:Ua(r,a,n),className:i("overflow-hidden",o),onAnimationStart:d,onAnimationComplete:m,children:t})})});iy.displayName="Collapse";var ly=___namespace.forwardRef(({show:e=true,children:t,duration:r=.4,delay:a=0,ease:n,className:o,initialWidth:s=0,initialHeight:l=0,animateOpacity:c=true,onAnimationStart:d,onAnimationComplete:m},u)=>{let p={hidden:{width:s,height:l,opacity:c?0:1},visible:{width:"auto",height:"auto",opacity:1},exit:{width:s,height:l,opacity:c?0:1}};return jsxRuntime.jsx(framerMotion.AnimatePresence,{initial:false,children:e&&jsxRuntime.jsx(framerMotion.motion.div,{ref:u,initial:"hidden",animate:"visible",exit:"exit",variants:p,transition:Ua(r,a,n),className:i("overflow-hidden",o),onAnimationStart:d,onAnimationComplete:m,children:t})})});ly.displayName="Expand";var cy=___namespace.forwardRef(({show:e=true,children:t,duration:r=.3,delay:a=0,ease:n,className:o,unmountOnExit:s=true,initialRotation:l=-180,finalRotation:c=0,onAnimationStart:d,onAnimationComplete:m},u)=>{let p={hidden:{opacity:0,rotate:l},visible:{opacity:1,rotate:c},exit:{opacity:0,rotate:l}},f=jsxRuntime.jsx(framerMotion.motion.div,{ref:u,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:p,transition:Ua(r,a,n),className:i(o),onAnimationStart:d,onAnimationComplete:m,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&f}):f});cy.displayName="Rotate";var dy=___namespace.forwardRef(({front:e,back:t,direction:r="horizontal",flipped:a=false,duration:n=.6,delay:o=0,ease:s,className:l,onAnimationStart:c,onAnimationComplete:d},m)=>{let u=r==="horizontal"?"rotateY":"rotateX";return jsxRuntime.jsx("div",{ref:m,className:i("relative",l),style:{perspective:1e3},children:jsxRuntime.jsxs(framerMotion.motion.div,{animate:{[u]:a?180:0},transition:Ua(n,o,s),style:{transformStyle:"preserve-3d"},onAnimationStart:c,onAnimationComplete:d,children:[jsxRuntime.jsx("div",{className:"absolute inset-0",style:{backfaceVisibility:"hidden"},children:e}),jsxRuntime.jsx("div",{className:"absolute inset-0",style:{backfaceVisibility:"hidden",transform:`${u}(180deg)`},children:t})]})})});dy.displayName="Flip";var uy=___namespace.forwardRef(({color:e="currentColor",duration:t=.6,children:r,className:a,disabled:n=false},o)=>{let[s,l]=___namespace.useState([]),c=___namespace.useRef(null),d=u=>{if(n)return;let p=c.current;if(!p)return;let f=p.getBoundingClientRect(),b=u.clientX-f.left,x=u.clientY-f.top,g=Math.max(f.width,f.height)*2,v={id:Date.now(),x:b,y:x,size:g};l(R=>[...R,v]);},m=u=>{l(p=>p.filter(f=>f.id!==u));};return jsxRuntime.jsxs("div",{ref:o,className:i("relative overflow-hidden",a),onClick:d,children:[jsxRuntime.jsx("div",{ref:c,className:"relative z-0",children:r}),jsxRuntime.jsx(framerMotion.AnimatePresence,{children:s.map(u=>jsxRuntime.jsx(framerMotion.motion.span,{initial:{scale:0,opacity:.35},animate:{scale:1,opacity:0},exit:{opacity:0},transition:{duration:t,ease:"easeOut"},onAnimationComplete:()=>m(u.id),className:"pointer-events-none absolute rounded-full",style:{left:u.x-u.size/2,top:u.y-u.size/2,width:u.size,height:u.size,backgroundColor:e}},u.id))})]})});uy.displayName="Ripple";var my=___namespace.forwardRef(({children:e,animate:t=true,height:r=10,duration:a=.5,count:n=0,className:o,triggerOnHover:s=false},l)=>{let[c,d]=___namespace.useState(false),m=s?c:t,u={idle:{y:0},bounce:{y:[0,-r,0],transition:{duration:a,ease:"easeInOut",repeat:n===0?1/0:n-1,repeatType:"loop"}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,variants:u,initial:"idle",animate:m?"bounce":"idle",className:i(o),onMouseEnter:()=>s&&d(true),onMouseLeave:()=>s&&d(false),children:e})});my.displayName="Bounce";var dE={subtle:[0,-2,2,-2,2,-1,1,0],normal:[0,-5,5,-5,5,-3,3,0],strong:[0,-10,10,-10,10,-5,5,0]},py=___namespace.forwardRef(({children:e,animate:t=true,intensity:r="normal",duration:a=.5,count:n=1,className:o,triggerOnHover:s=false},l)=>{let[c,d]=___namespace.useState(false),m=s?c:t,u={idle:{x:0},shake:{x:dE[r],transition:{duration:a,ease:"easeInOut",repeat:n-1}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,variants:u,initial:"idle",animate:m?"shake":"idle",className:i(o),onMouseEnter:()=>s&&d(true),onMouseLeave:()=>s&&d(false),children:e})});py.displayName="Shake";var uE={slow:"animate-[pulse_3s_ease-in-out_infinite]",normal:"animate-[pulse_2s_ease-in-out_infinite]",fast:"animate-[pulse_1s_ease-in-out_infinite]"},fy=___namespace.forwardRef(({children:e,animate:t=true,speed:r="normal",className:a},n)=>jsxRuntime.jsx("div",{ref:n,className:i(t&&uE[r],a),children:e}));fy.displayName="Pulse";var gy=___namespace.forwardRef(({children:e,animate:t=true,angle:r=10,duration:a=.3,count:n=0,className:o,triggerOnHover:s=false},l)=>{let[c,d]=___namespace.useState(false),m=s?c:t,u={idle:{rotate:0},wiggle:{rotate:[0,-r,r,-r,r,0],transition:{duration:a,ease:"easeInOut",repeat:n===0?1/0:n-1,repeatType:"loop"}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,variants:u,initial:"idle",animate:m?"wiggle":"idle",className:i(o),onMouseEnter:()=>s&&d(true),onMouseLeave:()=>s&&d(false),children:e})});gy.displayName="Wiggle";var by=___namespace.forwardRef(({children:e,animate:t=false,scale:r=1.2,duration:a=.2,className:n,triggerOnHover:o=false,triggerOnClick:s=false},l)=>{let[c,d]=___namespace.useState(false),m=t||c,u={type:"spring",stiffness:400,damping:17,duration:a},p=()=>{s&&(d(true),setTimeout(()=>d(false),a*1e3));};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,animate:{scale:m?r:1},transition:u,className:i(n),onMouseEnter:()=>o&&d(true),onMouseLeave:()=>o&&d(false),onClick:p,children:e})});by.displayName="Pop";var bE=(e,t,r,a)=>{let n=e.toFixed(t),[o,s]=n.split("."),l=o.replace(/\B(?=(\d{3})+(?!\d))/g,r);return s?`${l}${a}${s}`:l},vy=___namespace.forwardRef(({value:e,from:t=0,duration:r=2,decimals:a=0,prefix:n="",suffix:o="",separator:s=",",decimalSeparator:l=".",animateOnView:c=true,delay:d=0,className:m,onComplete:u},p)=>{let f=___namespace.useRef(null),b=framerMotion.useInView(f,{once:true}),[x,g]=___namespace.useState(!c);___namespace.useEffect(()=>{if(c&&b){let h=setTimeout(()=>g(true),d*1e3);return ()=>clearTimeout(h)}},[c,b,d]);let v={damping:30,stiffness:100,duration:r*1e3},R=framerMotion.useSpring(x?e:t,v),w=framerMotion.useTransform(R,h=>bE(h,a,s,l));return ___namespace.useEffect(()=>{x&&R.set(e);},[x,e,R]),___namespace.useEffect(()=>{let h=R.on("change",C=>{Math.abs(C-e)<.01&&u&&u();});return ()=>h()},[R,e,u]),jsxRuntime.jsx("span",{ref:f,className:i(m),children:jsxRuntime.jsxs("span",{ref:p,children:[n,jsxRuntime.jsx(framerMotion.motion.span,{children:w}),o]})})});vy.displayName="Counter";var hy=___namespace.forwardRef(({text:e,speed:t=50,delay:r=0,pauseBetween:a=1500,cursor:n=true,cursorChar:o="|",loop:s=false,deleteSpeed:l=30,animateOnView:c=true,className:d,cursorClassName:m,onComplete:u},p)=>{let f=Array.isArray(e)?e:[e],[b,x]=___namespace.useState(""),[g,v]=___namespace.useState(0),[R,w]=___namespace.useState(false),[h,C]=___namespace.useState(false),y=___namespace.useRef(null),T=framerMotion.useInView(y,{once:true}),[N,E]=___namespace.useState(!c);return ___namespace.useEffect(()=>{if(c&&T){let M=setTimeout(()=>E(true),r*1e3);return ()=>clearTimeout(M)}},[c,T,r]),___namespace.useEffect(()=>{if(!N||h)return;let M=f[g],P;return R?b.length>0?P=setTimeout(()=>{x(b.slice(0,-1));},l):(w(false),v(k=>(k+1)%f.length)):b.length<M.length?P=setTimeout(()=>{x(M.slice(0,b.length+1));},t):g<f.length-1||s?P=setTimeout(()=>{w(true);},a):(C(true),u?.()),()=>clearTimeout(P)},[N,b,g,R,h,f,t,l,a,s,u]),jsxRuntime.jsxs("span",{ref:y,className:i(d),children:[jsxRuntime.jsx("span",{ref:p,children:b}),n&&jsxRuntime.jsx(framerMotion.motion.span,{animate:{opacity:[1,0]},transition:{duration:.8,repeat:1/0,repeatType:"reverse"},className:i("ml-0.5",m),children:o})]})});hy.displayName="Typewriter";var xy=___namespace.forwardRef(({children:e,direction:t="up",stagger:r=.05,duration:a=.5,delay:n=0,splitBy:o="word",animateOnView:s=true,className:l},c)=>{let d=___namespace.useRef(null),m=framerMotion.useInView(d,{once:true,amount:.5}),u=s?m:true,p=typeof e=="string"?e:"",f=o==="word"?p.split(" "):p.split(""),b={up:{y:20},down:{y:-20},left:{x:20},right:{x:-20}},x={hidden:{},visible:{transition:{staggerChildren:r,delayChildren:n}}},g={hidden:{opacity:0,...b[t]},visible:{opacity:1,x:0,y:0,transition:{duration:a,ease:"easeInOut"}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:c,className:i("inline-flex flex-wrap",l),variants:x,initial:"hidden",animate:u?"visible":"hidden",children:jsxRuntime.jsx("span",{ref:d,children:f.map((v,R)=>jsxRuntime.jsxs(framerMotion.motion.span,{variants:g,className:"inline-block",children:[v,o==="word"&&R<f.length-1&&"\xA0"]},R))})})});xy.displayName="TextReveal";var yy=___namespace.forwardRef(({words:e,duration:t=2,animation:r="slide",animationDuration:a=.5,className:n,loop:o=true},s)=>{let[l,c]=___namespace.useState(0);___namespace.useEffect(()=>{if(!o&&l===e.length-1)return;let m=setInterval(()=>{c(u=>(u+1)%e.length);},t*1e3);return ()=>clearInterval(m)},[e.length,t,o,l]);let d=()=>{switch(r){case "fade":return {initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}};case "slide":return {initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20}};case "scale":return {initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:1.2}};case "blur":return {initial:{opacity:0,filter:"blur(10px)"},animate:{opacity:1,filter:"blur(0px)"},exit:{opacity:0,filter:"blur(10px)"}}}};return jsxRuntime.jsx("span",{ref:s,className:i("relative inline-block",n),children:jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:"wait",children:jsxRuntime.jsx(framerMotion.motion.span,{variants:d(),initial:"initial",animate:"animate",exit:"exit",transition:{duration:a},className:"inline-block",children:e[l]},e[l])})})});yy.displayName="WordRotate";var Ny=___namespace.forwardRef(({children:e,direction:t="up",distance:r=50,duration:a=.6,delay:n=0,once:o=true,threshold:s=.1,className:l,scale:c,rotate:d,blur:m,ease:u=[.4,0,.2,1]},p)=>{let f=___namespace.useRef(null),b=framerMotion.useInView(f,{once:o,amount:s}),g={up:{x:0,y:r},down:{x:0,y:-r},left:{x:r,y:0},right:{x:-r,y:0},none:{x:0,y:0}}[t],v={hidden:{opacity:0,x:g.x,y:g.y,scale:c??1,rotate:d??0,filter:m?`blur(${m}px)`:"blur(0px)"},visible:{opacity:1,x:0,y:0,scale:1,rotate:0,filter:"blur(0px)",transition:{duration:a,delay:n,ease:u}}};return jsxRuntime.jsx("div",{ref:f,children:jsxRuntime.jsx(framerMotion.motion.div,{ref:p,variants:v,initial:"hidden",animate:b?"visible":"hidden",className:i(l),children:e})})});Ny.displayName="ScrollReveal";var My=___namespace.forwardRef(({position:e="top",size:t=4,color:r="hsl(var(--primary))",backgroundColor:a="transparent",zIndex:n=50,className:o,container:s,showPercentage:l=false,useSpring:c=true},d)=>{let{scrollYProgress:m}=framerMotion.useScroll({container:s}),u=framerMotion.useSpring(m,{stiffness:100,damping:30,restDelta:.001}),p=c?u:m,f=e==="top"||e==="bottom",b={top:{top:0,left:0,right:0,height:t},bottom:{bottom:0,left:0,right:0,height:t},left:{top:0,left:0,bottom:0,width:t},right:{top:0,right:0,bottom:0,width:t}},x=f?"scaleX":"scaleY",g=f?"left":"top";return jsxRuntime.jsxs("div",{ref:d,className:i("fixed",o),style:{...b[e],zIndex:n,backgroundColor:a},children:[jsxRuntime.jsx(framerMotion.motion.div,{className:"h-full w-full",style:{[x]:p,transformOrigin:g,backgroundColor:r}}),l&&jsxRuntime.jsx(hE,{progress:p,position:e})]})});My.displayName="ScrollProgress";var hE=({progress:e,position:t})=>{let r=framerMotion.useTransform(e,s=>Math.round(s*100)),[a,n]=___namespace.useState(0);return ___namespace.useEffect(()=>{let s=r.on("change",n);return ()=>s()},[r]),jsxRuntime.jsxs("span",{className:i("fixed rounded bg-background/80 px-2 py-1 text-xs font-medium backdrop-blur-sm",{top:"top-2 right-4",bottom:"bottom-2 right-4",left:"top-4 left-2",right:"top-4 right-2"}[t]),children:[a,"%"]})},Ty=___namespace.forwardRef(({children:e,speed:t=.5,direction:r="vertical",className:a,container:n},o)=>{let s=___namespace.useRef(null),{scrollYProgress:l}=framerMotion.useScroll({target:s,container:n,offset:["start end","end start"]}),c=[-100*t,100*t],d=framerMotion.useTransform(l,[0,1],c),m=framerMotion.useSpring(d,{stiffness:100,damping:30}),u=r==="horizontal"?m:0,p=r==="vertical"?m:0;return jsxRuntime.jsx("div",{ref:s,className:i("overflow-hidden",a),children:jsxRuntime.jsx(framerMotion.motion.div,{ref:o,style:{x:u,y:p},children:e})})});Ty.displayName="Parallax";var Ey=___namespace.forwardRef(({children:e,width:t,height:r,duration:a=1.5,direction:n="right",baseColor:o="hsl(var(--muted))",highlightColor:s="hsl(var(--muted-foreground) / 0.1)",borderRadius:l,className:c,active:d=true},m)=>{let u={left:"to left",right:"to right",top:"to top",bottom:"to bottom"},p={left:"shimmer-left",right:"shimmer-right",top:"shimmer-top",bottom:"shimmer-bottom"};return jsxRuntime.jsxs("div",{ref:m,className:i("relative overflow-hidden",c),style:{width:t,height:r,borderRadius:l,backgroundColor:o},children:[e,d&&jsxRuntime.jsx("div",{className:"absolute inset-0",style:{background:`linear-gradient(${u[n]}, transparent, ${s}, transparent)`,animation:`${p[n]} ${a}s infinite`}}),jsxRuntime.jsx("style",{children:`
61
61
  @keyframes shimmer-right {
62
62
  0% { transform: translateX(-100%); }
63
63
  100% { transform: translateX(100%); }
@@ -74,5 +74,5 @@
74
74
  0% { transform: translateY(-100%); }
75
75
  100% { transform: translateY(100%); }
76
76
  }
77
- `})]})});ky.displayName="Shimmer";var hE={sm:24,md:40,lg:56,xl:80},xE={default:{circle:"stroke-muted-foreground",check:"stroke-foreground"},success:{circle:"stroke-green-500",check:"stroke-green-500"},primary:{circle:"stroke-primary",check:"stroke-primary"},outline:{circle:"stroke-border",check:"stroke-foreground"}},Ey=___namespace.forwardRef(({show:e=true,size:t="md",variant:r="success",strokeWidth:a=2,duration:n=.6,delay:o=0,className:s,onComplete:l},c)=>{let d=hE[t],m=xE[r],u={hidden:{pathLength:0,opacity:0},visible:{pathLength:1,opacity:1,transition:{duration:n*.5,delay:o,ease:"easeOut"}}},p={hidden:{pathLength:0,opacity:0},visible:{pathLength:1,opacity:1,transition:{duration:n*.5,delay:o+n*.4,ease:"easeOut"}}};return jsxRuntime.jsxs("svg",{ref:c,width:d,height:d,viewBox:"0 0 50 50",className:i(s),children:[jsxRuntime.jsx(framerMotion.motion.circle,{cx:"25",cy:"25",r:"22",fill:"none",strokeWidth:a,className:m.circle,variants:u,initial:"hidden",animate:e?"visible":"hidden"}),jsxRuntime.jsx(framerMotion.motion.path,{d:"M14 27 L22 35 L36 18",fill:"none",strokeWidth:a,strokeLinecap:"round",strokeLinejoin:"round",className:m.check,variants:p,initial:"hidden",animate:e?"visible":"hidden",onAnimationComplete:()=>e&&l?.()})]})});Ey.displayName="Checkmark";var An={particleCount:100,spread:70,startVelocity:30,decay:.95,gravity:1,colors:["#ff0000","#00ff00","#0000ff","#ffff00","#ff00ff","#00ffff"],origin:{x:.5,y:.5},shapes:["square","circle"],scalar:1,drift:0,ticks:200},Ly=___namespace.forwardRef(({autoTrigger:e=false,delay:t=0,options:r={},children:a,onTrigger:n},o)=>{let s=___namespace.useCallback(()=>{let l={...An,...r};Vn__default.default(l),n?.();},[r,n]);return ___namespace.useEffect(()=>{if(e){let l=setTimeout(s,t);return ()=>clearTimeout(l)}},[e,t,s]),a?jsxRuntime.jsx("button",{ref:o,type:"button",onClick:s,children:a}):null});Ly.displayName="Confetti";var yE=()=>{let e=___namespace.useCallback(a=>{let n={...An,...a};Vn__default.default(n);},[]),t=___namespace.useCallback(()=>{let n=Date.now()+3e3,o=setInterval(()=>{let s=n-Date.now();if(s<=0){clearInterval(o);return}let l=50*(s/3e3);Vn__default.default({...An,particleCount:l,origin:{x:Math.random()*.4+.1,y:Math.random()-.2}}),Vn__default.default({...An,particleCount:l,origin:{x:Math.random()*.4+.5,y:Math.random()-.2}});},250);},[]),r=___namespace.useCallback((a="both")=>{let n={x:0,y:1},o={x:1,y:1};(a==="left"||a==="both")&&Vn__default.default({...An,particleCount:50,angle:60,spread:55,origin:n}),(a==="right"||a==="both")&&Vn__default.default({...An,particleCount:50,angle:120,spread:55,origin:o});},[]);return {fire:e,fireworks:t,cannon:r}},Dy=___namespace.forwardRef(({children:e,color:t="hsl(var(--primary))",intensity:r=20,spread:a=0,animate:n=false,duration:o=2,className:s},l)=>{let c={boxShadow:`0 0 ${r}px ${a}px ${t}`};return n?jsxRuntime.jsx(framerMotion.motion.div,{ref:l,className:i(s),animate:{boxShadow:[`0 0 ${r}px ${a}px ${t}`,`0 0 ${r*1.5}px ${a+5}px ${t}`,`0 0 ${r}px ${a}px ${t}`]},transition:{duration:o,repeat:1/0,ease:"easeInOut"},children:e}):jsxRuntime.jsx("div",{ref:l,className:i(s),style:c,children:e})});Dy.displayName="Glow";var Py=(e,t)=>({id:Math.random().toString(36).substr(2,9),x:`${Math.random()*100}%`,y:`${Math.random()*100}%`,size:Math.random()*(t-e)+e,delay:Math.random()*2}),Sy=___namespace.forwardRef(({children:e,count:t=10,color:r="hsl(var(--primary))",minSize:a=4,maxSize:n=8,duration:o=1.5,className:s},l)=>{let[c,d]=___namespace.useState([]);return ___namespace.useEffect(()=>{let m=Array.from({length:t},()=>Py(a,n));d(m);let u=setInterval(()=>{d(p=>{let f=[...p],b=Math.floor(Math.random()*t);return f[b]=Py(a,n),f});},o*500);return ()=>clearInterval(u)},[t,a,n,o]),jsxRuntime.jsxs("div",{ref:l,className:i("relative inline-block",s),children:[e,c.map(m=>jsxRuntime.jsx(framerMotion.motion.svg,{className:"pointer-events-none absolute",style:{left:m.x,top:m.y,width:m.size,height:m.size},viewBox:"0 0 24 24",initial:{scale:0,opacity:0,rotate:0},animate:{scale:[0,1,0],opacity:[0,1,0],rotate:[0,180]},transition:{duration:o,delay:m.delay,repeat:1/0,ease:"easeInOut"},children:jsxRuntime.jsx("path",{d:"M12 0L14.59 9.41L24 12L14.59 14.59L12 24L9.41 14.59L0 12L9.41 9.41L12 0Z",fill:r})},m.id))]})});Sy.displayName="Sparkles";Object.defineProperty(exports,"toast",{enumerable:true,get:function(){return sonner.toast}});Object.defineProperty(exports,"useTheme",{enumerable:true,get:function(){return nextThemes.useTheme}});exports.Accordion=lu;exports.AccordionItem=cu;exports.ActionBar=ah;exports.ActionBarButton=nh;exports.ActionGroup=$v;exports.ActionIcon=Tb;exports.ActionMenu=sh;exports.ActionSheet=kx;exports.Alert=Gy;exports.AlertDescription=_y;exports.AlertTitle=$y;exports.AppShell=zx;exports.AppShellAside=hc;exports.AppShellFooter=xc;exports.AppShellHeader=bc;exports.AppShellMain=Bx;exports.AppShellSidebar=vc;exports.AreaChart=Ub;exports.AspectRatio=Vu;exports.AuthDivider=Xx;exports.AuthFooterLinks=Ux;exports.AuthForm=jx;exports.AuthHeader=Yx;exports.AuthLayout=Wx;exports.AuthSocialButtons=qx;exports.Autocomplete=gg;exports.Avatar=wa;exports.AvatarFallback=Ca;exports.AvatarGroup=tp;exports.AvatarImage=rn;exports.BackTop=Of;exports.Badge=Yy;exports.Banner=xx;exports.BarChart=jb;exports.BatteryMeter=kh;exports.BottomNavigation=Mx;exports.Bounce=uy;exports.Breadcrumb=Tu;exports.BreadcrumbEllipsis=Su;exports.BreadcrumbItem=ku;exports.BreadcrumbLink=Eu;exports.BreadcrumbList=Pu;exports.BreadcrumbPage=Lu;exports.BreadcrumbSeparator=Du;exports.Button=Z;exports.ButtonGroup=zv;exports.COUNTRIES=Tf;exports.Calendar=on;exports.Card=Lc;exports.CardContent=Sc;exports.CardFooter=Hc;exports.CardHeader=Dc;exports.Carousel=rv;exports.CarouselContent=av;exports.CarouselItem=nv;exports.CarouselNext=Bl;exports.CarouselPrevious=zl;exports.Center=Gh;exports.Checkbox=On;exports.Checkmark=Ey;exports.Chip=ip;exports.CircularProgress=bp;exports.CloseButton=vr;exports.Code=kg;exports.Collapse=sy;exports.Collapsible=gu;exports.CollapsibleContent=bu;exports.CollapsibleTrigger=Vi;exports.ColorArea=Hh;exports.ColorField=Hv;exports.ColorPicker=mf;exports.ColorSlider=Ah;exports.ColorSwatch=Xn;exports.ColorSwatchPicker=df;exports.ColorWheel=Bh;exports.Command=$i;exports.CommandDialog=I0;exports.CommandEmpty=Gm;exports.CommandGroup=$m;exports.CommandInput=Fm;exports.CommandItem=Wm;exports.CommandList=Km;exports.CommandSeparator=_m;exports.CommandShortcut=jm;exports.Confetti=Ly;exports.ConfirmDialog=Ml;exports.ContextMenu=zd;exports.ContextMenuCheckboxItem=Yd;exports.ContextMenuContent=$d;exports.ContextMenuGroup=Od;exports.ContextMenuItem=jd;exports.ContextMenuLabel=Xd;exports.ContextMenuPortal=Fd;exports.ContextMenuRadioGroup=Gd;exports.ContextMenuRadioItem=Ud;exports.ContextMenuSeparator=qd;exports.ContextMenuShortcut=Zd;exports.ContextMenuSub=Kd;exports.ContextMenuSubContent=Wd;exports.ContextMenuSubTrigger=_d;exports.ContextMenuTrigger=Bd;exports.ContextualHelp=bh;exports.CopyButton=Kb;exports.Counter=by;exports.CurrencyInput=vf;exports.DEFAULT_COLORS=io;exports.DashboardGrid=_x;exports.DashboardLayout=Kx;exports.DashboardPage=Gx;exports.DashboardPageHeader=$x;exports.DataTable=zC;exports.DateField=kv;exports.DateInput=Cf;exports.DatePicker=qm;exports.DateRangePicker=eb;exports.DefaultErrorFallback=vl;exports.Dialog=Po;exports.DialogClose=zc;exports.DialogContent=ko;exports.DialogDescription=Kc;exports.DialogFooter=Oc;exports.DialogHeader=Bc;exports.DialogOverlay=yi;exports.DialogPortal=xi;exports.DialogTitle=Fc;exports.DialogTrigger=Ac;exports.DiskUsageMeter=Ph;exports.Dots=mp;exports.Drawer=Oi;exports.DrawerBody=om;exports.DrawerClose=cm;exports.DrawerContent=am;exports.DrawerDescription=lm;exports.DrawerFooter=sm;exports.DrawerGroup=bm;exports.DrawerGroupLabel=vm;exports.DrawerHeader=nm;exports.DrawerInset=hm;exports.DrawerMenu=mm;exports.DrawerMenuButton=gm;exports.DrawerMenuItem=pm;exports.DrawerProvider=h0;exports.DrawerSeparator=um;exports.DrawerSidebar=tm;exports.DrawerTitle=im;exports.DrawerToggle=dm;exports.DrawerTrigger=rm;exports.Dropdown=Yr;exports.DropdownCheckboxItem=cd;exports.DropdownContent=Xr;exports.DropdownGroup=fd;exports.DropdownItem=qt;exports.DropdownLabel=md;exports.DropdownRadioGroup=dd;exports.DropdownRadioItem=ud;exports.DropdownSeparator=zo;exports.DropdownShortcut=pd;exports.DropdownSub=gd;exports.DropdownSubContent=vd;exports.DropdownSubTrigger=bd;exports.DropdownTrigger=Ur;exports.EMOJIS=Fl;exports.EMOJI_CATEGORIES=zs;exports.EmojiPicker=sv;exports.EmptyState=Ep;exports.ErrorBoundary=CN;exports.Expand=iy;exports.FAB=Yk;exports.Fade=ay;exports.FieldContext=cl;exports.FileUpload=of;exports.Flex=bo;exports.Flip=cy;exports.FloatingActionButton=mc;exports.Form=bg;exports.FormContext=ll;exports.FormControl=yg;exports.FormDescription=Rg;exports.FormField=vg;exports.FormItem=hg;exports.FormLabel=xg;exports.FormMessage=wg;exports.FullCalendar=_b;exports.Glow=Dy;exports.Grid=oi;exports.GridItem=jh;exports.GridList=Nh;exports.HStack=Fh;exports.HoverCard=wu;exports.HoverCardContent=Nu;exports.HoverCardTrigger=Cu;exports.IconButton=Fv;exports.IllustratedMessage=Zv;exports.Image=Dg;exports.ImageCropper=uv;exports.ImageViewer=Tl;exports.ImageViewerTrigger=Cb;exports.Indicator=Db;exports.IndicatorWrapper=Sb;exports.InfiniteScroll=ob;exports.InlineAlert=th;exports.Input=Eo;exports.InputOTP=xp;exports.InputOTPGroup=yp;exports.InputOTPSeparator=wp;exports.InputOTPSlot=Rp;exports.KanbanBoard=Qb;exports.Kbd=zb;exports.Label=Ra;exports.LabeledValue=Qh;exports.LabeledValueGroup=tx;exports.LineChart=Wb;exports.Link=zf;exports.List=Lw;exports.ListItem=Fp;exports.ListItemText=Kp;exports.ListView=uh;exports.Listbox=zg;exports.ListboxItem=Bg;exports.Loading=Jg;exports.LoadingOverlay=Wg;exports.MASK_PRESETS=Qi;exports.MaskedInput=yf;exports.Menubar=_f;exports.MenubarCheckboxItem=tg;exports.MenubarContent=Qf;exports.MenubarGroup=jf;exports.MenubarItem=eg;exports.MenubarLabel=ag;exports.MenubarMenu=Wf;exports.MenubarPortal=Yf;exports.MenubarRadioGroup=Xf;exports.MenubarRadioItem=rg;exports.MenubarSeparator=ng;exports.MenubarShortcut=og;exports.MenubarSub=Uf;exports.MenubarSubContent=Jf;exports.MenubarSubTrigger=Zf;exports.MenubarTrigger=qf;exports.Meter=ti;exports.Modal=db;exports.ModalBody=gb;exports.ModalClose=Nl;exports.ModalContent=pb;exports.ModalDescription=hb;exports.ModalFooter=bb;exports.ModalHeader=fb;exports.ModalOverlay=Cl;exports.ModalPortal=wl;exports.ModalRoot=ub;exports.ModalTitle=vb;exports.ModalTrigger=mb;exports.NProgress=Yg;exports.Navbar=Lf;exports.NavbarBrand=Df;exports.NavbarContent=Sf;exports.NavbarItem=Hf;exports.NavbarLink=If;exports.NavigationMenu=Ku;exports.NavigationMenuContent=ju;exports.NavigationMenuIndicator=Xu;exports.NavigationMenuItem=$u;exports.NavigationMenuLink=Uu;exports.NavigationMenuList=Gu;exports.NavigationMenuTrigger=Wu;exports.NavigationMenuViewport=Bi;exports.NotificationCenter=fx;exports.NotificationCenterContent=bx;exports.NotificationCenterProvider=Hk;exports.NotificationCenterTrigger=gx;exports.NotificationItem=dc;exports.NotificationList=vx;exports.NumberField=Cv;exports.NumberInput=Um;exports.Pagination=Im;exports.PaginationContent=Vm;exports.PaginationEllipsis=Om;exports.PaginationItem=Am;exports.PaginationLink=Qo;exports.PaginationNext=Bm;exports.PaginationPrevious=zm;exports.Parallax=My;exports.PasswordInput=Ym;exports.PhoneInput=Pf;exports.PieChart=Yb;exports.Pop=gy;exports.Popover=et;exports.PopoverAnchor=Bo;exports.PopoverContent=tt;exports.PopoverTrigger=gt;exports.Portal=Eb;exports.Progress=Xo;exports.PullToRefresh=Ix;exports.Pulse=py;exports.QRCode=pv;exports.RadioGroup=Qd;exports.RadioGroupItem=eu;exports.RangeSlider=ph;exports.Rating=ap;exports.ResizableHandle=ow;exports.ResizablePanel=nw;exports.ResizablePanelGroup=aw;exports.RichTextEditor=lv;exports.Ripple=dy;exports.Rotate=ly;exports.Scale=oy;exports.ScrollArea=_e;exports.ScrollProgress=Ny;exports.ScrollReveal=Cy;exports.ScrollShadow=Vb;exports.SearchBar=sx;exports.SearchField=Tv;exports.SegmentedControl=ef;exports.SegmentedControlItem=tf;exports.Select=sd;exports.Separator=Gr;exports.SettingsCard=Qx;exports.SettingsHeader=xo;exports.SettingsLayout=Zx;exports.SettingsNavItem=ty;exports.SettingsRow=ey;exports.SettingsSection=Jx;exports.SettingsSeparator=ry;exports.Shake=my;exports.Sheet=Ko;exports.SheetClose=kd;exports.SheetContent=Go;exports.SheetDescription=Id;exports.SheetFooter=Sd;exports.SheetHeader=Dd;exports.SheetOverlay=Ed;exports.SheetPortal=Li;exports.SheetTitle=Hd;exports.SheetTrigger=Pd;exports.Shimmer=ky;exports.SimpleGrid=Yh;exports.Skeleton=Ho;exports.Slide=ny;exports.Slider=Yo;exports.Snippet=Lg;exports.SortableList=dN;exports.Spacer=Ob;exports.Sparkles=Sy;exports.Spinner=Lm;exports.SpotlightSearch=dx;exports.StatCard=Sp;exports.StatusLight=Uv;exports.Step=cg;exports.Steps=ig;exports.SwipeActions=Dx;exports.Switch=Wc;exports.Table=ym;exports.TableBody=wm;exports.TableCaption=Pm;exports.TableCell=Tm;exports.TableFooter=Cm;exports.TableHead=Mm;exports.TableHeader=Rm;exports.TableRow=Nm;exports.Tabs=Rd;exports.TabsContent=Nd;exports.TabsList=wd;exports.TabsTrigger=Cd;exports.TagGroup=xh;exports.TagInput=Tp;exports.TextBadge=Xy;exports.TextField=xv;exports.TextReveal=hy;exports.Textarea=jc;exports.ThemeProvider=fv;exports.ThemeToggle=gv;exports.TimeField=Lv;exports.TimeInput=ff;exports.TimePicker=tb;exports.Timeline=_p;exports.TimelineContent=Up;exports.TimelineItem=jp;exports.TimelineOpposite=Xp;exports.TimelineSeparator=Yp;exports.Toaster=IR;exports.Toggle=tu;exports.ToggleGroup=au;exports.ToggleGroupItem=nu;exports.Tooltip=_r;exports.TooltipContent=jr;exports.TooltipProvider=$r;exports.TooltipTrigger=Wr;exports.TreeView=mg;exports.Typewriter=vy;exports.User=Mg;exports.VStack=Kh;exports.VirtualList=kN;exports.VisuallyHidden=ro;exports.Well=qh;exports.Wiggle=fy;exports.WordRotate=xy;exports.actionBarVariants=rh;exports.actionGroupVariants=Gv;exports.actionIconVariants=Mb;exports.actionMenuTriggerVariants=oh;exports.actionSheetItemVariants=Px;exports.alertVariants=Fy;exports.appShellVariants=Ax;exports.applyMask=is;exports.authLayoutVariants=mi;exports.autocompleteInputVariants=fg;exports.avatarGroupVariants=ep;exports.backTopVariants=Bf;exports.badgeIndicatorVariants=Wy;exports.bannerVariants=hx;exports.bottomNavigationVariants=Nx;exports.buttonGroupVariants=Vv;exports.buttonVariants=fr;exports.cardVariants=Ec;exports.carouselVariants=ev;exports.chartContainerVariants=so;exports.chipVariants=sp;exports.circularProgressVariants=gp;exports.closeButtonVariants=Qu;exports.cn=i;exports.codeVariants=Pg;exports.colorAreaVariants=Eh;exports.colorFieldVariants=Sv;exports.colorSliderVariants=Vh;exports.colorSwatchPickerVariants=cf;exports.colorSwatchVariants=lf;exports.colorWheelVariants=zh;exports.confirmDialogIconVariants=Rb;exports.contextualHelpTriggerVariants=nc;exports.copyButtonVariants=Fb;exports.currencyInputVariants=gf;exports.dashboardLayoutVariants=Fx;exports.dateFieldVariants=Pv;exports.dateInputVariants=Rf;exports.dotsVariants=up;exports.drawerMenuButtonVariants=fm;exports.emojiPickerVariants=ov;exports.emptyStateVariants=kp;exports.fabVariants=vo;exports.fileUploadVariants=rf;exports.flexVariants=Oh;exports.formatCurrency=Ji;exports.formatDate=cs;exports.formatFileSize=os;exports.formatPhoneNumber=us;exports.fullCalendarVariants=$b;exports.getFileIcon=af;exports.getMaskPlaceholder=xf;exports.gridItemVariants=Wh;exports.gridListItemVariants=Ch;exports.gridListVariants=wh;exports.gridVariants=_h;exports.hexToRgb=Dh;exports.hsvToRgb=ai;exports.iconButtonVariants=Ov;exports.illustratedMessageVariants=qv;exports.imageCropperVariants=dv;exports.imageVariants=pl;exports.indicatorVariants=Lb;exports.infiniteScrollLoaderVariants=yl;exports.infiniteScrollVariants=nb;exports.inlineAlertVariants=eh;exports.inputOTPVariants=hp;exports.inputSizeVariants=vv;exports.kanbanBoardVariants=Zb;exports.kanbanCardVariants=Vl;exports.kanbanColumnVariants=Jb;exports.kbdVariants=Ab;exports.labelSizeVariants=hv;exports.labeledValueGroupVariants=ex;exports.labeledValueVariants=Jh;exports.linkVariants=Af;exports.listItemVariants=Op;exports.listVariants=Ui;exports.listViewItemVariants=dh;exports.listViewVariants=ch;exports.listboxItemVariants=Vg;exports.listboxVariants=Ig;exports.loadingOverlayVariants=_g;exports.loadingVariants=Zg;exports.maskedInputVariants=hf;exports.meterVariants=Th;exports.modalContentVariants=Rl;exports.navbarVariants=Ef;exports.navigationMenuLinkStyle=Yu;exports.navigationMenuTriggerStyle=_u;exports.nprogressVariants=jg;exports.numberFieldVariants=wv;exports.parseDate=wf;exports.parseFormattedValue=bf;exports.phoneInputVariants=Mf;exports.pullToRefreshVariants=Hx;exports.qrCodeVariants=_l;exports.rangeSliderVariants=mh;exports.ratingVariants=rp;exports.rgbToHex=Sh;exports.rgbToHsv=Lh;exports.richTextEditorVariants=iv;exports.scrollShadowVariants=Ib;exports.searchBarVariants=ox;exports.searchFieldVariants=Mv;exports.segmentedControlItemVariants=Jp;exports.segmentedControlVariants=Zp;exports.selectVariants=od;exports.settingsLayoutVariants=pi;exports.sheetVariants=Ld;exports.skeletonVariants=Uc;exports.snippetVariants=Eg;exports.sortableItemVariants=Kg;exports.sortableListVariants=Fg;exports.spinnerVariants=Em;exports.statCardVariants=Dp;exports.statusLightVariants=Yv;exports.stepVariants=lg;exports.stepsVariants=sg;exports.swipeActionVariants=fc;exports.swipeActionsVariants=Lx;exports.tagGroupItemVariants=oc;exports.tagGroupVariants=hh;exports.tagVariants=Mp;exports.textBadgeVariants=Uy;exports.textFieldVariants=bv;exports.themeToggleVariants=WT;exports.timeFieldVariants=Ev;exports.timeInputVariants=pf;exports.timelineItemVariants=Wp;exports.timelineVariants=$p;exports.toggleVariants=Wo;exports.treeItemVariants=Vp;exports.treeViewVariants=ug;exports.unmask=el;exports.useButtonGroup=fP;exports.useCarousel=Al;exports.useConfetti=yE;exports.useConfirmDialog=GN;exports.useDrawer=d0;exports.useFieldContext=vs;exports.useFormContext=dl;exports.useKeyboardShortcut=uM;exports.useNotificationCenter=ci;exports.useSpotlight=Mk;exports.userVariants=Ng;exports.validateFile=nf;exports.validators=qC;exports.virtualListVariants=rb;exports.wellVariants=Xh;//# sourceMappingURL=index.cjs.map
77
+ `})]})});Ey.displayName="Shimmer";var xE={sm:24,md:40,lg:56,xl:80},yE={default:{circle:"stroke-muted-foreground",check:"stroke-foreground"},success:{circle:"stroke-green-500",check:"stroke-green-500"},primary:{circle:"stroke-primary",check:"stroke-primary"},outline:{circle:"stroke-border",check:"stroke-foreground"}},Ly=___namespace.forwardRef(({show:e=true,size:t="md",variant:r="success",strokeWidth:a=2,duration:n=.6,delay:o=0,className:s,onComplete:l},c)=>{let d=xE[t],m=yE[r],u={hidden:{pathLength:0,opacity:0},visible:{pathLength:1,opacity:1,transition:{duration:n*.5,delay:o,ease:"easeOut"}}},p={hidden:{pathLength:0,opacity:0},visible:{pathLength:1,opacity:1,transition:{duration:n*.5,delay:o+n*.4,ease:"easeOut"}}};return jsxRuntime.jsxs("svg",{ref:c,width:d,height:d,viewBox:"0 0 50 50",className:i(s),children:[jsxRuntime.jsx(framerMotion.motion.circle,{cx:"25",cy:"25",r:"22",fill:"none",strokeWidth:a,className:m.circle,variants:u,initial:"hidden",animate:e?"visible":"hidden"}),jsxRuntime.jsx(framerMotion.motion.path,{d:"M14 27 L22 35 L36 18",fill:"none",strokeWidth:a,strokeLinecap:"round",strokeLinejoin:"round",className:m.check,variants:p,initial:"hidden",animate:e?"visible":"hidden",onAnimationComplete:()=>e&&l?.()})]})});Ly.displayName="Checkmark";var An={particleCount:100,spread:70,startVelocity:30,decay:.95,gravity:1,colors:["#ff0000","#00ff00","#0000ff","#ffff00","#ff00ff","#00ffff"],origin:{x:.5,y:.5},shapes:["square","circle"],scalar:1,drift:0,ticks:200},Dy=___namespace.forwardRef(({autoTrigger:e=false,delay:t=0,options:r={},children:a,onTrigger:n},o)=>{let s=___namespace.useCallback(()=>{let l={...An,...r};Vn__default.default(l),n?.();},[r,n]);return ___namespace.useEffect(()=>{if(e){let l=setTimeout(s,t);return ()=>clearTimeout(l)}},[e,t,s]),a?jsxRuntime.jsx("button",{ref:o,type:"button",onClick:s,children:a}):null});Dy.displayName="Confetti";var RE=()=>{let e=___namespace.useCallback(a=>{let n={...An,...a};Vn__default.default(n);},[]),t=___namespace.useCallback(()=>{let n=Date.now()+3e3,o=setInterval(()=>{let s=n-Date.now();if(s<=0){clearInterval(o);return}let l=50*(s/3e3);Vn__default.default({...An,particleCount:l,origin:{x:Math.random()*.4+.1,y:Math.random()-.2}}),Vn__default.default({...An,particleCount:l,origin:{x:Math.random()*.4+.5,y:Math.random()-.2}});},250);},[]),r=___namespace.useCallback((a="both")=>{let n={x:0,y:1},o={x:1,y:1};(a==="left"||a==="both")&&Vn__default.default({...An,particleCount:50,angle:60,spread:55,origin:n}),(a==="right"||a==="both")&&Vn__default.default({...An,particleCount:50,angle:120,spread:55,origin:o});},[]);return {fire:e,fireworks:t,cannon:r}},Sy=___namespace.forwardRef(({children:e,color:t="hsl(var(--primary))",intensity:r=20,spread:a=0,animate:n=false,duration:o=2,className:s},l)=>{let c={boxShadow:`0 0 ${r}px ${a}px ${t}`};return n?jsxRuntime.jsx(framerMotion.motion.div,{ref:l,className:i(s),animate:{boxShadow:[`0 0 ${r}px ${a}px ${t}`,`0 0 ${r*1.5}px ${a+5}px ${t}`,`0 0 ${r}px ${a}px ${t}`]},transition:{duration:o,repeat:1/0,ease:"easeInOut"},children:e}):jsxRuntime.jsx("div",{ref:l,className:i(s),style:c,children:e})});Sy.displayName="Glow";var ky=(e,t)=>({id:Math.random().toString(36).substr(2,9),x:`${Math.random()*100}%`,y:`${Math.random()*100}%`,size:Math.random()*(t-e)+e,delay:Math.random()*2}),Hy=___namespace.forwardRef(({children:e,count:t=10,color:r="hsl(var(--primary))",minSize:a=4,maxSize:n=8,duration:o=1.5,className:s},l)=>{let[c,d]=___namespace.useState([]);return ___namespace.useEffect(()=>{let m=Array.from({length:t},()=>ky(a,n));d(m);let u=setInterval(()=>{d(p=>{let f=[...p],b=Math.floor(Math.random()*t);return f[b]=ky(a,n),f});},o*500);return ()=>clearInterval(u)},[t,a,n,o]),jsxRuntime.jsxs("div",{ref:l,className:i("relative inline-block",s),children:[e,c.map(m=>jsxRuntime.jsx(framerMotion.motion.svg,{className:"pointer-events-none absolute",style:{left:m.x,top:m.y,width:m.size,height:m.size},viewBox:"0 0 24 24",initial:{scale:0,opacity:0,rotate:0},animate:{scale:[0,1,0],opacity:[0,1,0],rotate:[0,180]},transition:{duration:o,delay:m.delay,repeat:1/0,ease:"easeInOut"},children:jsxRuntime.jsx("path",{d:"M12 0L14.59 9.41L24 12L14.59 14.59L12 24L9.41 14.59L0 12L9.41 9.41L12 0Z",fill:r})},m.id))]})});Hy.displayName="Sparkles";Object.defineProperty(exports,"toast",{enumerable:true,get:function(){return sonner.toast}});Object.defineProperty(exports,"useTheme",{enumerable:true,get:function(){return nextThemes.useTheme}});exports.Accordion=cu;exports.AccordionItem=du;exports.ActionBar=nh;exports.ActionBarButton=oh;exports.ActionGroup=_v;exports.ActionIcon=Pb;exports.ActionMenu=ih;exports.ActionSheet=Ex;exports.Alert=$y;exports.AlertDescription=jy;exports.AlertTitle=_y;exports.AppShell=Bx;exports.AppShellAside=xc;exports.AppShellFooter=yc;exports.AppShellHeader=vc;exports.AppShellMain=Ox;exports.AppShellSidebar=hc;exports.AreaChart=Xb;exports.AspectRatio=Au;exports.AuthDivider=qx;exports.AuthFooterLinks=Xx;exports.AuthForm=Yx;exports.AuthHeader=Ux;exports.AuthLayout=Wx;exports.AuthSocialButtons=Zx;exports.Autocomplete=bg;exports.Avatar=wa;exports.AvatarFallback=Ca;exports.AvatarGroup=rp;exports.AvatarImage=rn;exports.BackTop=Ff;exports.Badge=Uy;exports.Banner=yx;exports.BarChart=Yb;exports.BatteryMeter=Eh;exports.BottomNavigation=Tx;exports.Bounce=my;exports.Breadcrumb=Pu;exports.BreadcrumbEllipsis=Hu;exports.BreadcrumbItem=Eu;exports.BreadcrumbLink=Lu;exports.BreadcrumbList=ku;exports.BreadcrumbPage=Du;exports.BreadcrumbSeparator=Su;exports.Button=Z;exports.ButtonGroup=Bv;exports.COUNTRIES=Pf;exports.Calendar=on;exports.Card=Dc;exports.CardContent=Hc;exports.CardFooter=Ic;exports.CardHeader=Sc;exports.Carousel=av;exports.CarouselContent=nv;exports.CarouselItem=ov;exports.CarouselNext=Ol;exports.CarouselPrevious=Bl;exports.Center=$h;exports.Checkbox=On;exports.Checkmark=Ly;exports.Chip=lp;exports.CircularProgress=vp;exports.CloseButton=vr;exports.Code=Eg;exports.Collapse=iy;exports.Collapsible=bu;exports.CollapsibleContent=vu;exports.CollapsibleTrigger=Ai;exports.ColorArea=Ih;exports.ColorField=Iv;exports.ColorPicker=pf;exports.ColorSlider=zh;exports.ColorSwatch=Xn;exports.ColorSwatchPicker=uf;exports.ColorWheel=Oh;exports.Command=_i;exports.CommandDialog=V0;exports.CommandEmpty=$m;exports.CommandGroup=_m;exports.CommandInput=Km;exports.CommandItem=Wm;exports.CommandList=Gm;exports.CommandSeparator=jm;exports.CommandShortcut=Ym;exports.Confetti=Dy;exports.ConfirmDialog=Tl;exports.ContextMenu=Bd;exports.ContextMenuCheckboxItem=Ud;exports.ContextMenuContent=_d;exports.ContextMenuGroup=Fd;exports.ContextMenuItem=Yd;exports.ContextMenuLabel=qd;exports.ContextMenuPortal=Kd;exports.ContextMenuRadioGroup=$d;exports.ContextMenuRadioItem=Xd;exports.ContextMenuSeparator=Zd;exports.ContextMenuShortcut=Jd;exports.ContextMenuSub=Gd;exports.ContextMenuSubContent=Wd;exports.ContextMenuSubTrigger=jd;exports.ContextMenuTrigger=Od;exports.ContextualHelp=vh;exports.CopyButton=Gb;exports.Counter=vy;exports.CurrencyInput=hf;exports.DEFAULT_COLORS=io;exports.DashboardGrid=jx;exports.DashboardLayout=Gx;exports.DashboardPage=$x;exports.DashboardPageHeader=_x;exports.DataTable=BC;exports.DateField=Ev;exports.DateInput=Nf;exports.DatePicker=Zm;exports.DateRangePicker=tb;exports.DefaultErrorFallback=hl;exports.Dialog=Po;exports.DialogClose=Bc;exports.DialogContent=ko;exports.DialogDescription=Gc;exports.DialogFooter=Fc;exports.DialogHeader=Oc;exports.DialogOverlay=Ri;exports.DialogPortal=yi;exports.DialogTitle=Kc;exports.DialogTrigger=zc;exports.DiskUsageMeter=kh;exports.Dots=pp;exports.Drawer=Fi;exports.DrawerBody=sm;exports.DrawerClose=dm;exports.DrawerContent=nm;exports.DrawerDescription=cm;exports.DrawerFooter=im;exports.DrawerGroup=vm;exports.DrawerGroupLabel=hm;exports.DrawerHeader=om;exports.DrawerInset=xm;exports.DrawerMenu=pm;exports.DrawerMenuButton=bm;exports.DrawerMenuItem=fm;exports.DrawerProvider=x0;exports.DrawerSeparator=mm;exports.DrawerSidebar=rm;exports.DrawerTitle=lm;exports.DrawerToggle=um;exports.DrawerTrigger=am;exports.Dropdown=Yr;exports.DropdownCheckboxItem=dd;exports.DropdownContent=Xr;exports.DropdownGroup=gd;exports.DropdownItem=qt;exports.DropdownLabel=pd;exports.DropdownRadioGroup=ud;exports.DropdownRadioItem=md;exports.DropdownSeparator=zo;exports.DropdownShortcut=fd;exports.DropdownSub=bd;exports.DropdownSubContent=hd;exports.DropdownSubTrigger=vd;exports.DropdownTrigger=Ur;exports.EMOJIS=Kl;exports.EMOJI_CATEGORIES=Bs;exports.EmojiPicker=iv;exports.EmptyState=Lp;exports.ErrorBoundary=NN;exports.Expand=ly;exports.FAB=Uk;exports.Fade=ny;exports.FieldContext=dl;exports.FileUpload=sf;exports.Flex=bo;exports.Flip=dy;exports.FloatingActionButton=pc;exports.Form=vg;exports.FormContext=cl;exports.FormControl=Rg;exports.FormDescription=wg;exports.FormField=hg;exports.FormItem=xg;exports.FormLabel=yg;exports.FormMessage=Cg;exports.FullCalendar=jb;exports.Glow=Sy;exports.Grid=si;exports.GridItem=Yh;exports.GridList=Mh;exports.HStack=Kh;exports.HoverCard=Cu;exports.HoverCardContent=Mu;exports.HoverCardTrigger=Nu;exports.IconButton=Kv;exports.IllustratedMessage=Jv;exports.Image=Sg;exports.ImageCropper=mv;exports.ImageViewer=Pl;exports.ImageViewerTrigger=Nb;exports.Indicator=Sb;exports.IndicatorWrapper=Hb;exports.InfiniteScroll=sb;exports.InlineAlert=rh;exports.Input=Eo;exports.InputOTP=yp;exports.InputOTPGroup=Rp;exports.InputOTPSeparator=Cp;exports.InputOTPSlot=wp;exports.KanbanBoard=ev;exports.Kbd=Bb;exports.Label=Ra;exports.LabeledValue=ex;exports.LabeledValueGroup=rx;exports.LineChart=Wb;exports.Link=Bf;exports.List=Dw;exports.ListItem=Kp;exports.ListItemText=Gp;exports.ListView=mh;exports.Listbox=Bg;exports.ListboxItem=Og;exports.Loading=Qg;exports.LoadingOverlay=Wg;exports.MASK_PRESETS=el;exports.MaskedInput=Rf;exports.Menubar=jf;exports.MenubarCheckboxItem=rg;exports.MenubarContent=eg;exports.MenubarGroup=Yf;exports.MenubarItem=tg;exports.MenubarLabel=ng;exports.MenubarMenu=Wf;exports.MenubarPortal=Uf;exports.MenubarRadioGroup=qf;exports.MenubarRadioItem=ag;exports.MenubarSeparator=og;exports.MenubarShortcut=sg;exports.MenubarSub=Xf;exports.MenubarSubContent=Qf;exports.MenubarSubTrigger=Jf;exports.MenubarTrigger=Zf;exports.Meter=ri;exports.Modal=ub;exports.ModalBody=bb;exports.ModalClose=Ml;exports.ModalContent=fb;exports.ModalDescription=xb;exports.ModalFooter=vb;exports.ModalHeader=gb;exports.ModalOverlay=Nl;exports.ModalPortal=Cl;exports.ModalRoot=mb;exports.ModalTitle=hb;exports.ModalTrigger=pb;exports.NProgress=Ug;exports.Navbar=Df;exports.NavbarBrand=Sf;exports.NavbarContent=Hf;exports.NavbarItem=If;exports.NavbarLink=Vf;exports.NavigationMenu=Gu;exports.NavigationMenuContent=Yu;exports.NavigationMenuIndicator=qu;exports.NavigationMenuItem=_u;exports.NavigationMenuLink=Xu;exports.NavigationMenuList=$u;exports.NavigationMenuTrigger=Wu;exports.NavigationMenuViewport=Oi;exports.NotificationCenter=gx;exports.NotificationCenterContent=vx;exports.NotificationCenterProvider=Ik;exports.NotificationCenterTrigger=bx;exports.NotificationItem=uc;exports.NotificationList=hx;exports.NumberField=Nv;exports.NumberInput=Xm;exports.Pagination=Vm;exports.PaginationContent=Am;exports.PaginationEllipsis=Fm;exports.PaginationItem=zm;exports.PaginationLink=es;exports.PaginationNext=Om;exports.PaginationPrevious=Bm;exports.Parallax=Ty;exports.PasswordInput=Um;exports.PhoneInput=kf;exports.PieChart=Ub;exports.Pop=by;exports.Popover=et;exports.PopoverAnchor=Bo;exports.PopoverContent=tt;exports.PopoverTrigger=gt;exports.Portal=Lb;exports.Progress=qo;exports.PullToRefresh=Vx;exports.Pulse=fy;exports.QRCode=fv;exports.RadioGroup=eu;exports.RadioGroupItem=tu;exports.RangeSlider=fh;exports.Rating=np;exports.ResizableHandle=sw;exports.ResizablePanel=ow;exports.ResizablePanelGroup=nw;exports.RichTextEditor=cv;exports.Ripple=uy;exports.Rotate=cy;exports.Scale=sy;exports.ScrollArea=_e;exports.ScrollProgress=My;exports.ScrollReveal=Ny;exports.ScrollShadow=Ab;exports.SearchBar=ix;exports.SearchField=Pv;exports.SegmentedControl=tf;exports.SegmentedControlItem=rf;exports.Select=id;exports.Separator=Gr;exports.SettingsCard=ey;exports.SettingsHeader=xo;exports.SettingsLayout=Jx;exports.SettingsNavItem=ry;exports.SettingsRow=ty;exports.SettingsSection=Qx;exports.SettingsSeparator=ay;exports.Shake=py;exports.Sheet=Ko;exports.SheetClose=Ed;exports.SheetContent=Go;exports.SheetDescription=Vd;exports.SheetFooter=Hd;exports.SheetHeader=Sd;exports.SheetOverlay=Ld;exports.SheetPortal=Di;exports.SheetTitle=Id;exports.SheetTrigger=kd;exports.Shimmer=Ey;exports.SimpleGrid=Uh;exports.Skeleton=Ho;exports.Slide=oy;exports.Slider=Yo;exports.Snippet=Dg;exports.SortableList=uN;exports.Spacer=Fb;exports.Sparkles=Hy;exports.Spinner=Dm;exports.SpotlightSearch=ux;exports.StatCard=Hp;exports.StatusLight=Xv;exports.Step=dg;exports.Steps=lg;exports.SwipeActions=Sx;exports.Switch=Wc;exports.Table=Rm;exports.TableBody=Cm;exports.TableCaption=km;exports.TableCell=Pm;exports.TableFooter=Nm;exports.TableHead=Tm;exports.TableHeader=wm;exports.TableRow=Mm;exports.Tabs=wd;exports.TabsContent=Md;exports.TabsList=Cd;exports.TabsTrigger=Nd;exports.TagGroup=yh;exports.TagInput=Pp;exports.TextBadge=qy;exports.TextField=yv;exports.TextReveal=xy;exports.Textarea=Yc;exports.ThemeProvider=gv;exports.ThemeToggle=bv;exports.TimeField=Dv;exports.TimeInput=gf;exports.TimePicker=rb;exports.Timeline=jp;exports.TimelineContent=Xp;exports.TimelineItem=Yp;exports.TimelineOpposite=qp;exports.TimelineSeparator=Up;exports.Toaster=VR;exports.Toggle=ru;exports.ToggleGroup=nu;exports.ToggleGroupItem=ou;exports.Tooltip=_r;exports.TooltipContent=Wr;exports.TooltipProvider=$r;exports.TooltipTrigger=jr;exports.TreeView=pg;exports.Typewriter=hy;exports.User=Tg;exports.VStack=Gh;exports.VirtualList=EN;exports.VisuallyHidden=ro;exports.Well=Zh;exports.Wiggle=gy;exports.WordRotate=yy;exports.actionBarVariants=ah;exports.actionGroupVariants=$v;exports.actionIconVariants=Tb;exports.actionMenuTriggerVariants=sh;exports.actionSheetItemVariants=kx;exports.alertVariants=Ky;exports.appShellVariants=zx;exports.applyMask=ls;exports.authLayoutVariants=pi;exports.autocompleteInputVariants=gg;exports.avatarGroupVariants=tp;exports.backTopVariants=Of;exports.badgeIndicatorVariants=Wy;exports.bannerVariants=xx;exports.bottomNavigationVariants=Mx;exports.buttonGroupVariants=Av;exports.buttonVariants=fr;exports.cardVariants=Lc;exports.carouselVariants=tv;exports.chartContainerVariants=so;exports.chipVariants=ip;exports.circularProgressVariants=bp;exports.closeButtonVariants=em;exports.cn=i;exports.codeVariants=kg;exports.colorAreaVariants=Lh;exports.colorFieldVariants=Hv;exports.colorSliderVariants=Ah;exports.colorSwatchPickerVariants=df;exports.colorSwatchVariants=cf;exports.colorWheelVariants=Bh;exports.confirmDialogIconVariants=wb;exports.contextualHelpTriggerVariants=oc;exports.copyButtonVariants=Kb;exports.currencyInputVariants=bf;exports.dashboardLayoutVariants=Kx;exports.dateFieldVariants=kv;exports.dateInputVariants=wf;exports.dotsVariants=mp;exports.drawerMenuButtonVariants=gm;exports.emojiPickerVariants=sv;exports.emptyStateVariants=Ep;exports.fabVariants=vo;exports.fileUploadVariants=af;exports.flexVariants=Fh;exports.formatCurrency=Qi;exports.formatDate=ds;exports.formatFileSize=ss;exports.formatPhoneNumber=ms;exports.fullCalendarVariants=_b;exports.getFileIcon=nf;exports.getMaskPlaceholder=yf;exports.gridItemVariants=Wh;exports.gridListItemVariants=Nh;exports.gridListVariants=Ch;exports.gridVariants=jh;exports.hexToRgb=Sh;exports.hsvToRgb=ni;exports.iconButtonVariants=Fv;exports.illustratedMessageVariants=Zv;exports.imageCropperVariants=uv;exports.imageVariants=fl;exports.indicatorVariants=Db;exports.infiniteScrollLoaderVariants=Rl;exports.infiniteScrollVariants=ob;exports.inlineAlertVariants=th;exports.inputOTPVariants=xp;exports.inputSizeVariants=hv;exports.kanbanBoardVariants=Jb;exports.kanbanCardVariants=Al;exports.kanbanColumnVariants=Qb;exports.kbdVariants=zb;exports.labelSizeVariants=xv;exports.labeledValueGroupVariants=tx;exports.labeledValueVariants=Qh;exports.linkVariants=zf;exports.listItemVariants=Fp;exports.listVariants=Xi;exports.listViewItemVariants=uh;exports.listViewVariants=dh;exports.listboxItemVariants=Ag;exports.listboxVariants=Vg;exports.loadingOverlayVariants=jg;exports.loadingVariants=Jg;exports.maskedInputVariants=xf;exports.meterVariants=Ph;exports.modalContentVariants=wl;exports.navbarVariants=Lf;exports.navigationMenuLinkStyle=Uu;exports.navigationMenuTriggerStyle=ju;exports.nprogressVariants=Yg;exports.numberFieldVariants=Cv;exports.parseDate=Cf;exports.parseFormattedValue=vf;exports.phoneInputVariants=Tf;exports.pullToRefreshVariants=Ix;exports.qrCodeVariants=jl;exports.rangeSliderVariants=ph;exports.ratingVariants=ap;exports.rgbToHex=Hh;exports.rgbToHsv=Dh;exports.richTextEditorVariants=lv;exports.scrollShadowVariants=Vb;exports.searchBarVariants=sx;exports.searchFieldVariants=Tv;exports.segmentedControlItemVariants=Qp;exports.segmentedControlVariants=Jp;exports.selectVariants=sd;exports.settingsLayoutVariants=fi;exports.sheetVariants=Dd;exports.skeletonVariants=Xc;exports.snippetVariants=Lg;exports.sortableItemVariants=Gg;exports.sortableListVariants=Kg;exports.spinnerVariants=Lm;exports.statCardVariants=Sp;exports.statusLightVariants=Uv;exports.stepVariants=cg;exports.stepsVariants=ig;exports.swipeActionVariants=gc;exports.swipeActionsVariants=Dx;exports.tagGroupItemVariants=sc;exports.tagGroupVariants=xh;exports.tagVariants=Tp;exports.textBadgeVariants=Xy;exports.textFieldVariants=vv;exports.themeToggleVariants=WT;exports.timeFieldVariants=Lv;exports.timeInputVariants=ff;exports.timelineItemVariants=Wp;exports.timelineVariants=_p;exports.toggleVariants=jo;exports.treeItemVariants=Ap;exports.treeViewVariants=mg;exports.unmask=tl;exports.useButtonGroup=gP;exports.useCarousel=zl;exports.useConfetti=RE;exports.useConfirmDialog=$N;exports.useDrawer=u0;exports.useFieldContext=hs;exports.useFormContext=ul;exports.useKeyboardShortcut=mM;exports.useNotificationCenter=di;exports.useSpotlight=Tk;exports.userVariants=Mg;exports.validateFile=of;exports.validators=ZC;exports.virtualListVariants=ab;exports.wellVariants=qh;//# sourceMappingURL=index.cjs.map
78
78
  //# sourceMappingURL=index.cjs.map