@reeverdev/ui 0.2.17 → 0.2.18
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 +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -3
- package/dist/index.d.ts +8 -3
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var K=require('react'),classVarianceAuthority=require('class-variance-authority'),lucideReact=require('lucide-react'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime'),reactSlot=require('@radix-ui/react-slot'),No=require('@radix-ui/react-checkbox'),ne=require('@radix-ui/react-dialog'),os=require('@radix-ui/react-label'),So=require('@radix-ui/react-separator'),To=require('@radix-ui/react-switch'),Zt=require('@radix-ui/react-avatar'),ht=require('@radix-ui/react-tooltip'),J=require('@radix-ui/react-select'),X=require('@radix-ui/react-dropdown-menu'),xt=require('@radix-ui/react-popover'),yt=require('@radix-ui/react-tabs'),ng=require('@radix-ui/react-visually-hidden'),sonner=require('sonner'),ot=require('@radix-ui/react-scroll-area'),q=require('@radix-ui/react-context-menu'),La=require('@radix-ui/react-radio-group'),ys=require('@radix-ui/react-toggle'),Ar=require('@radix-ui/react-toggle-group'),ea=require('@radix-ui/react-slider'),It=require('@radix-ui/react-accordion'),cr=require('@radix-ui/react-collapsible'),Vo=require('@radix-ui/react-progress'),mr=require('@radix-ui/react-hover-card'),Wc=require('@radix-ui/react-aspect-ratio'),Re=require('@radix-ui/react-navigation-menu'),vaul=require('vaul'),reactDayPicker=require('react-day-picker'),dateFns=require('date-fns'),cmdk=require('cmdk'),reactResizablePanels=require('react-resizable-panels'),reactColorful=require('react-colorful'),Y=require('@radix-ui/react-menubar'),ke=require('@radix-ui/react-alert-dialog'),reactDom=require('react-dom'),recharts=require('recharts'),core=require('@dnd-kit/core'),sortable=require('@dnd-kit/sortable'),utilities=require('@dnd-kit/utilities'),mC=require('embla-carousel-react'),react=require('@tiptap/react'),yC=require('@tiptap/starter-kit'),RC=require('@tiptap/extension-link'),wC=require('@tiptap/extension-underline'),NC=require('@tiptap/extension-text-align'),PC=require('@tiptap/extension-placeholder'),KC=require('react-image-crop');require('react-image-crop/dist/ReactCrop.css');var QC=require('react-qr-code'),nextThemes=require('next-themes'),framerMotion=require('framer-motion'),xo=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 K__namespace=/*#__PURE__*/_interopNamespace(K);var No__namespace=/*#__PURE__*/_interopNamespace(No);var ne__namespace=/*#__PURE__*/_interopNamespace(ne);var os__namespace=/*#__PURE__*/_interopNamespace(os);var So__namespace=/*#__PURE__*/_interopNamespace(So);var To__namespace=/*#__PURE__*/_interopNamespace(To);var Zt__namespace=/*#__PURE__*/_interopNamespace(Zt);var ht__namespace=/*#__PURE__*/_interopNamespace(ht);var J__namespace=/*#__PURE__*/_interopNamespace(J);var X__namespace=/*#__PURE__*/_interopNamespace(X);var xt__namespace=/*#__PURE__*/_interopNamespace(xt);var yt__namespace=/*#__PURE__*/_interopNamespace(yt);var ng__namespace=/*#__PURE__*/_interopNamespace(ng);var ot__namespace=/*#__PURE__*/_interopNamespace(ot);var q__namespace=/*#__PURE__*/_interopNamespace(q);var La__namespace=/*#__PURE__*/_interopNamespace(La);var ys__namespace=/*#__PURE__*/_interopNamespace(ys);var Ar__namespace=/*#__PURE__*/_interopNamespace(Ar);var ea__namespace=/*#__PURE__*/_interopNamespace(ea);var It__namespace=/*#__PURE__*/_interopNamespace(It);var cr__namespace=/*#__PURE__*/_interopNamespace(cr);var Vo__namespace=/*#__PURE__*/_interopNamespace(Vo);var mr__namespace=/*#__PURE__*/_interopNamespace(mr);var Wc__namespace=/*#__PURE__*/_interopNamespace(Wc);var Re__namespace=/*#__PURE__*/_interopNamespace(Re);var Y__namespace=/*#__PURE__*/_interopNamespace(Y);var ke__namespace=/*#__PURE__*/_interopNamespace(ke);var mC__default=/*#__PURE__*/_interopDefault(mC);var yC__default=/*#__PURE__*/_interopDefault(yC);var RC__default=/*#__PURE__*/_interopDefault(RC);var wC__default=/*#__PURE__*/_interopDefault(wC);var NC__default=/*#__PURE__*/_interopDefault(NC);var PC__default=/*#__PURE__*/_interopDefault(PC);var KC__default=/*#__PURE__*/_interopDefault(KC);var QC__default=/*#__PURE__*/_interopDefault(QC);var xo__default=/*#__PURE__*/_interopDefault(xo);function o(...e){return tailwindMerge.twMerge(clsx.clsx(e))}var Qx=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"}}),ey={default:lucideReact.Info,success:lucideReact.CheckCircle2,warning:lucideReact.AlertTriangle,error:lucideReact.AlertCircle},ty=K__namespace.forwardRef(({className:e,variant:t="solid",type:a="default",radius:r="md",icon:n,hideIcon:i=false,endContent:s,children:l,...d},m)=>{let u=ey[a],c=!i,f=n!==void 0?n:u?jsxRuntime.jsx(u,{className:"h-4 w-4"}):null;return jsxRuntime.jsxs("div",{ref:m,role:"alert",className:o(Qx({variant:t,type:a,radius:r}),s&&"flex items-center justify-between",e),...d,children:[jsxRuntime.jsxs("div",{className:"flex items-start gap-3",children:[c&&f&&jsxRuntime.jsx("span",{className:"mt-0.5 shrink-0",children:f}),jsxRuntime.jsx("div",{children:l})]}),s&&jsxRuntime.jsx("div",{className:"shrink-0 ml-4",children:s})]})});ty.displayName="Alert";var ay=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("h5",{ref:a,className:o("mb-1 font-medium leading-none tracking-tight",e),...t}));ay.displayName="AlertTitle";var ry=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("text-sm [&_p]:leading-relaxed",e),...t}));ry.displayName="AlertDescription";var oy=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"}}),ny={sm:"w-2 h-2",md:"w-2.5 h-2.5",lg:"w-3 h-3"},iy=K__namespace.forwardRef(({className:e,children:t,content:a,variant:r="solid",color:n="default",size:i="md",placement:s="top-right",isDot:l=false,...d},m)=>jsxRuntime.jsxs("div",{ref:m,className:o("relative inline-flex",e),...d,children:[t,jsxRuntime.jsx("span",{className:o(oy({variant:r,color:n,size:l?void 0:i,placement:s}),l&&ny[i||"md"],l&&"min-w-0 p-0"),children:!l&&a})]}));iy.displayName="Badge";var sy=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"}}),Ro=K__namespace.forwardRef(({className:e,color:t,size:a,...r},n)=>jsxRuntime.jsx("span",{ref:n,className:o(sy({color:t,size:a}),e),...r}));Ro.displayName="TextBadge";var qt=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"}}),G=K__namespace.forwardRef(({className:e,variant:t,color:a,size:r,radius:n,asChild:i=false,href:s,loading:l=false,startContent:d,endContent:m,children:u,disabled:c,style:f,...p},h)=>{let R=c||l,x=t==="bordered"?{borderColor:"currentColor",...f}:f,w=l?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(lucideReact.Loader2,{className:"animate-spin"}),u]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[d,u,m]});return i?jsxRuntime.jsx(reactSlot.Slot,{className:o(qt({variant:t,color:a,size:r,radius:n,className:e})),ref:h,style:x,...p,children:w}):s?jsxRuntime.jsx("a",{href:s,className:o(qt({variant:t,color:a,size:r,radius:n,className:e}),R&&"pointer-events-none opacity-50"),style:x,...p,children:w}):jsxRuntime.jsx("button",{className:o(qt({variant:t,color:a,size:r,radius:n,className:e})),ref:h,disabled:R,style:x,...p,children:w})});G.displayName="Button";var bd=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"}}),vd=K__namespace.forwardRef(({className:e,radius:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,className:o(bd({radius:t,className:e})),...a}));vd.displayName="Card";var hd=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("p-6 text-2xl font-semibold leading-none tracking-tight",e),...t}));hd.displayName="CardHeader";var xd=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("p-6 pt-0",e),...t}));xd.displayName="CardContent";var yd=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex items-center p-6 pt-0",e),...t}));yd.displayName="CardFooter";var Po=K__namespace.forwardRef(({className:e,checked:t,onFocus:a,onBlur:r,style:n,...i},s)=>{let[l,d]=K__namespace.useState(false);return jsxRuntime.jsx(No__namespace.Root,{ref:s,checked:t,className:o("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 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:bg-background data-[state=indeterminate]:text-foreground transition-colors",e),style:{...n,borderColor:l?"var(--color-foreground)":void 0},onFocus:m=>{d(true),a?.(m);},onBlur:m=>{d(false),r?.(m);},...i,children:jsxRuntime.jsx(No__namespace.Indicator,{className:o("flex items-center justify-center text-current"),children:t==="indeterminate"?jsxRuntime.jsx(lucideReact.Minus,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})})});Po.displayName=No__namespace.Root.displayName;var as=ne__namespace.Root,by=ne__namespace.Trigger,Rd=ne__namespace.Portal,vy=ne__namespace.Close,rs=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ne__namespace.Overlay,{ref:a,className:o("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),...t}));rs.displayName=ne__namespace.Overlay.displayName;var vn=K__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(Rd,{children:[jsxRuntime.jsx(rs,{}),jsxRuntime.jsxs(ne__namespace.Content,{ref:r,className:o("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),...a,children:[t,jsxRuntime.jsxs(ne__namespace.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));vn.displayName=ne__namespace.Content.displayName;var wd=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});wd.displayName="DialogHeader";var Nd=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Nd.displayName="DialogFooter";var Pd=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ne__namespace.Title,{ref:a,className:o("text-lg font-semibold leading-none tracking-tight",e),...t}));Pd.displayName=ne__namespace.Title.displayName;var Cd=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ne__namespace.Description,{ref:a,className:o("text-sm text-muted-foreground",e),...t}));Cd.displayName=ne__namespace.Description.displayName;var xy=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"}}),xn=K__namespace.forwardRef(({className:e,type:t,radius:a,onFocus:r,onBlur:n,style:i,...s},l)=>{let[d,m]=K__namespace.useState(false);return jsxRuntime.jsx("input",{type:t,className:o(xy({radius:a,className:e})),ref:l,style:{...i,borderColor:d?"var(--color-foreground)":void 0},onFocus:u=>{m(true),r?.(u);},onBlur:u=>{m(false),n?.(u);},...s})});xn.displayName="Input";var wy=classVarianceAuthority.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),er=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(os__namespace.Root,{ref:a,className:o(wy(),e),...t}));er.displayName=os__namespace.Root.displayName;var Ta=K__namespace.forwardRef(({className:e,orientation:t="horizontal",decorative:a=true,text:r,...n},i)=>r&&t==="horizontal"?jsxRuntime.jsxs("div",{className:o("flex items-center gap-4",e),children:[jsxRuntime.jsx(So__namespace.Root,{decorative:a,orientation:t,className:"shrink-0 bg-border h-[1px] flex-1",...n}),jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:r}),jsxRuntime.jsx(So__namespace.Root,{decorative:a,orientation:t,className:"shrink-0 bg-border h-[1px] flex-1",...n})]}):jsxRuntime.jsx(So__namespace.Root,{ref:i,decorative:a,orientation:t,className:o("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));Ta.displayName=So__namespace.Root.displayName;var Dd=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(To__namespace.Root,{className:o("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:a,children:jsxRuntime.jsx(To__namespace.Thumb,{className:o("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));Dd.displayName=To__namespace.Root.displayName;var Sy=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"}}),Ld=K__namespace.forwardRef(({className:e,radius:t,onFocus:a,onBlur:r,style:n,...i},s)=>{let[l,d]=K__namespace.useState(false);return jsxRuntime.jsx("textarea",{className:o(Sy({radius:t,className:e})),ref:s,style:{...n,borderColor:l?"var(--color-foreground)":void 0},onFocus:m=>{d(true),a?.(m);},onBlur:m=>{d(false),r?.(m);},...i})});Ld.displayName="Textarea";var Id=classVarianceAuthority.cva("rounded-md bg-muted",{variants:{variant:{pulse:"animate-pulse",shimmer:"skeleton-shimmer",static:""}},defaultVariants:{variant:"pulse"}}),wn=K__namespace.forwardRef(({className:e,variant:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,className:o(Id({variant:t,className:e})),...a}));wn.displayName="Skeleton";var Ly=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"}}),tr=K__namespace.forwardRef(({className:e,size:t,radius:a,...r},n)=>jsxRuntime.jsx(Zt__namespace.Root,{ref:n,className:o(Ly({size:t,radius:a,className:e})),...r}));tr.displayName=Zt__namespace.Root.displayName;var Er=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Zt__namespace.Image,{ref:a,className:o("aspect-square h-full w-full",e),...t}));Er.displayName=Zt__namespace.Image.displayName;var ar=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Zt__namespace.Fallback,{ref:a,className:o("flex h-full w-full items-center justify-center bg-muted",e),...t}));ar.displayName=Zt__namespace.Fallback.displayName;var rr=ht__namespace.Provider,or=ht__namespace.Root,nr=ht__namespace.Trigger,Ma=K__namespace.forwardRef(({className:e,sideOffset:t=4,...a},r)=>jsxRuntime.jsx(ht__namespace.Portal,{children:jsxRuntime.jsx(ht__namespace.Content,{ref:r,sideOffset:t,className:o("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 animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));Ma.displayName=ht__namespace.Content.displayName;var is=J__namespace.Root,Ey=J__namespace.Group,ss=J__namespace.Value,Pn=K__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(J__namespace.Trigger,{ref:r,className:o("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...a,children:[t,jsxRuntime.jsx(J__namespace.Icon,{asChild:true,children:jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Pn.displayName=J__namespace.Trigger.displayName;var ls=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(J__namespace.ScrollUpButton,{ref:a,className:o("flex cursor-default items-center justify-center py-1",e),...t,children:jsxRuntime.jsx(lucideReact.ChevronUp,{className:"h-4 w-4"})}));ls.displayName=J__namespace.ScrollUpButton.displayName;var ds=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(J__namespace.ScrollDownButton,{ref:a,className:o("flex cursor-default items-center justify-center py-1",e),...t,children:jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"})}));ds.displayName=J__namespace.ScrollDownButton.displayName;var Cn=K__namespace.forwardRef(({className:e,children:t,position:a="popper",...r},n)=>jsxRuntime.jsx(J__namespace.Portal,{children:jsxRuntime.jsxs(J__namespace.Content,{ref:n,className:o("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:a,...r,children:[jsxRuntime.jsx(ls,{}),jsxRuntime.jsx(J__namespace.Viewport,{className:o("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),jsxRuntime.jsx(ds,{})]})}));Cn.displayName=J__namespace.Content.displayName;var zd=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(J__namespace.Label,{ref:a,className:o("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));zd.displayName=J__namespace.Label.displayName;var Sn=K__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(J__namespace.Item,{ref:r,className:o("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(J__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),jsxRuntime.jsx(J__namespace.ItemText,{children:t})]}));Sn.displayName=J__namespace.Item.displayName;var Bd=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(J__namespace.Separator,{ref:a,className:o("-mx-1 my-1 h-px bg-muted",e),...t}));Bd.displayName=J__namespace.Separator.displayName;var ir=X__namespace.Root,sr=X__namespace.Trigger,By=X__namespace.Group,Fy=X__namespace.Portal,Oy=X__namespace.Sub,Gy=X__namespace.RadioGroup,Fd=K__namespace.forwardRef(({className:e,inset:t,children:a,...r},n)=>jsxRuntime.jsxs(X__namespace.SubTrigger,{ref:n,className:o("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[a,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto"})]}));Fd.displayName=X__namespace.SubTrigger.displayName;var Od=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(X__namespace.SubContent,{ref:a,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Od.displayName=X__namespace.SubContent.displayName;var Da=K__namespace.forwardRef(({className:e,sideOffset:t=4,...a},r)=>jsxRuntime.jsx(X__namespace.Portal,{children:jsxRuntime.jsx(X__namespace.Content,{ref:r,sideOffset:t,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));Da.displayName=X__namespace.Content.displayName;var Lt=K__namespace.forwardRef(({className:e,inset:t,...a},r)=>jsxRuntime.jsx(X__namespace.Item,{ref:r,className:o("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-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));Lt.displayName=X__namespace.Item.displayName;var Gd=K__namespace.forwardRef(({className:e,children:t,checked:a,...r},n)=>jsxRuntime.jsxs(X__namespace.CheckboxItem,{ref:n,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...r,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(X__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),t]}));Gd.displayName=X__namespace.CheckboxItem.displayName;var Wd=K__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(X__namespace.RadioItem,{ref:r,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(X__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));Wd.displayName=X__namespace.RadioItem.displayName;var $d=K__namespace.forwardRef(({className:e,inset:t,...a},r)=>jsxRuntime.jsx(X__namespace.Label,{ref:r,className:o("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));$d.displayName=X__namespace.Label.displayName;var Tn=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(X__namespace.Separator,{ref:a,className:o("-mx-1 my-1 h-px bg-muted",e),...t}));Tn.displayName=X__namespace.Separator.displayName;var _d=({className:e,...t})=>jsxRuntime.jsx("span",{className:o("ml-auto text-xs tracking-widest opacity-60",e),...t});_d.displayName="DropdownMenuShortcut";var Ne=xt__namespace.Root,Se=xt__namespace.Trigger,us=xt__namespace.Anchor,xe=K__namespace.forwardRef(({className:e,align:t="center",sideOffset:a=4,...r},n)=>jsxRuntime.jsx(xt__namespace.Portal,{children:jsxRuntime.jsx(xt__namespace.Content,{ref:n,align:t,sideOffset:a,className:o("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",e),...r})}));xe.displayName=xt__namespace.Content.displayName;var Yd=K__namespace.createContext({variant:"solid",radius:"md"}),jd=()=>K__namespace.useContext(Yd),Xd=K__namespace.forwardRef(({variant:e="solid",radius:t="md",...a},r)=>jsxRuntime.jsx(Yd.Provider,{value:{variant:e,radius:t},children:jsxRuntime.jsx(yt__namespace.Root,{ref:r,...a})}));Xd.displayName="Tabs";var ps={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"}},qd=K__namespace.forwardRef(({className:e,...t},a)=>{let{variant:r,radius:n}=jd(),i=K__namespace.useRef(null),[s,l]=K__namespace.useState({opacity:0});K__namespace.useEffect(()=>{let p=i.current;if(!p)return;let h=()=>{let x=p.querySelector('[data-state="active"]');if(x){let w=p.getBoundingClientRect(),b=x.getBoundingClientRect(),v=p.getAttribute("aria-orientation")==="vertical"||window.getComputedStyle(p).flexDirection==="column";r==="underline"?l(v?{width:2,height:b.height,transform:`translateY(${b.top-w.top}px)`,opacity:1}:{width:b.width,height:2,transform:`translateX(${b.left-w.left}px)`,opacity:1}):r==="solid"&&l(v?{width:b.width,height:b.height,transform:`translateY(${b.top-w.top}px)`,opacity:1}:{width:b.width,height:b.height,transform:`translateX(${b.left-w.left}px)`,opacity:1});}};h();let R=new MutationObserver(h);R.observe(p,{attributes:true,subtree:true,attributeFilter:["data-state"]});let g=new ResizeObserver(h);return g.observe(p),()=>{R.disconnect(),g.disconnect();}},[r]);let d={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"},m=()=>{let p=i.current;return p?p.getAttribute("aria-orientation")==="vertical"||window.getComputedStyle(p).flexDirection==="column":false},[u,c]=K__namespace.useState(false);K__namespace.useEffect(()=>{c(m());},[]);let f=()=>r==="solid"?u?"top-0 left-1 bg-background shadow":"top-1 left-1 bg-background shadow":r==="underline"?u?"top-0 left-0 bg-primary !rounded-full":"bottom-0 left-0 bg-primary !rounded-full":"";return jsxRuntime.jsxs(yt__namespace.List,{ref:p=>{if(i.current=p,typeof a=="function"?a(p):a&&(a.current=p),p){let h=p.getAttribute("aria-orientation")==="vertical"||window.getComputedStyle(p).flexDirection==="column";c(h);}},className:o("relative inline-flex h-9 items-center justify-center text-muted-foreground",ps[n].list,d[r],e),...t,children:[(r==="solid"||r==="underline")&&jsxRuntime.jsx("span",{className:o("absolute transition-all duration-200 ease-out",ps[n].indicator,f()),style:s,"aria-hidden":"true"}),t.children]})});qd.displayName=yt__namespace.List.displayName;var Zd=K__namespace.forwardRef(({className:e,...t},a)=>{let{variant:r,radius:n}=jd(),i={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(yt__namespace.Trigger,{ref:a,className:o("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",ps[n].trigger,i[r],e),...t})});Zd.displayName=yt__namespace.Trigger.displayName;var Jd=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(yt__namespace.Content,{ref:a,className:o("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 animate-in animate-out",e),...t}));Jd.displayName=yt__namespace.Content.displayName;var Do=ne__namespace.Root,Uy=ne__namespace.Trigger,Yy=ne__namespace.Close,Qd=ne__namespace.Portal,gs=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ne__namespace.Overlay,{className:o("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),...t,ref:a}));gs.displayName=ne__namespace.Overlay.displayName;var ec=classVarianceAuthority.cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Hr=K__namespace.forwardRef(({side:e="right",className:t,children:a,hideCloseButton:r,...n},i)=>jsxRuntime.jsxs(Qd,{children:[jsxRuntime.jsx(gs,{}),jsxRuntime.jsxs(ne__namespace.Content,{ref:i,className:o(ec({side:e}),t),"aria-describedby":void 0,...n,children:[jsxRuntime.jsx(ng.VisuallyHidden,{asChild:true,children:jsxRuntime.jsx(ne__namespace.Title,{children:"Sheet"})}),!r&&jsxRuntime.jsxs(ne__namespace.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]}),a]})]}));Hr.displayName=ne__namespace.Content.displayName;var tc=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col space-y-2 text-center sm:text-left",e),...t});tc.displayName="SheetHeader";var ac=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ac.displayName="SheetFooter";var rc=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ne__namespace.Title,{ref:a,className:o("text-lg font-semibold text-foreground",e),...t}));rc.displayName=ne__namespace.Title.displayName;var oc=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ne__namespace.Description,{ref:a,className:o("text-sm text-muted-foreground",e),...t}));oc.displayName=ne__namespace.Description.displayName;var qy=({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 ze=K__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(ot__namespace.Root,{ref:r,className:o("relative overflow-hidden group/scroll",e),...a,children:[jsxRuntime.jsx(ot__namespace.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),jsxRuntime.jsx(vs,{}),jsxRuntime.jsx(ot__namespace.Corner,{})]}));ze.displayName=ot__namespace.Root.displayName;var vs=K__namespace.forwardRef(({className:e,orientation:t="vertical",...a},r)=>jsxRuntime.jsx(ot__namespace.ScrollAreaScrollbar,{ref:r,orientation:t,className:o("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2 flex-col border-t border-t-transparent p-[1px]",e),...a,children:jsxRuntime.jsx(ot__namespace.ScrollAreaThumb,{className:o("relative flex-1 rounded-full transition-colors","bg-transparent group-hover/scroll:bg-border hover:!bg-muted-foreground")})}));vs.displayName=ot__namespace.ScrollAreaScrollbar.displayName;var a0=q__namespace.Root,r0=q__namespace.Trigger,o0=q__namespace.Group,n0=q__namespace.Portal,i0=q__namespace.Sub,s0=q__namespace.RadioGroup,nc=K__namespace.forwardRef(({className:e,inset:t,children:a,...r},n)=>jsxRuntime.jsxs(q__namespace.SubTrigger,{ref:n,className:o("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",e),...r,children:[a,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto h-4 w-4"})]}));nc.displayName=q__namespace.SubTrigger.displayName;var ic=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(q__namespace.SubContent,{ref:a,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-context-menu-content-transform-origin]",e),...t}));ic.displayName=q__namespace.SubContent.displayName;var sc=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(q__namespace.Portal,{children:jsxRuntime.jsx(q__namespace.Content,{ref:a,className:o("z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-context-menu-content-transform-origin]",e),...t})}));sc.displayName=q__namespace.Content.displayName;var lc=K__namespace.forwardRef(({className:e,inset:t,...a},r)=>jsxRuntime.jsx(q__namespace.Item,{ref:r,className:o("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...a}));lc.displayName=q__namespace.Item.displayName;var dc=K__namespace.forwardRef(({className:e,children:t,checked:a,...r},n)=>jsxRuntime.jsxs(q__namespace.CheckboxItem,{ref:n,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...r,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(q__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),t]}));dc.displayName=q__namespace.CheckboxItem.displayName;var cc=K__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(q__namespace.RadioItem,{ref:r,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(q__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-4 w-4 fill-current"})})}),t]}));cc.displayName=q__namespace.RadioItem.displayName;var mc=K__namespace.forwardRef(({className:e,inset:t,...a},r)=>jsxRuntime.jsx(q__namespace.Label,{ref:r,className:o("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...a}));mc.displayName=q__namespace.Label.displayName;var uc=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(q__namespace.Separator,{ref:a,className:o("-mx-1 my-1 h-px bg-border",e),...t}));uc.displayName=q__namespace.Separator.displayName;var pc=({className:e,...t})=>jsxRuntime.jsx("span",{className:o("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});pc.displayName="ContextMenuShortcut";var fc=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(La__namespace.Root,{className:o("grid gap-2",e),...t,ref:a}));fc.displayName=La__namespace.Root.displayName;var gc=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(La__namespace.Item,{ref:a,className:o("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",e),...t,children:jsxRuntime.jsx(La__namespace.Indicator,{className:"flex items-center justify-center",children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-2.5 w-2.5 fill-current text-current"})})}));gc.displayName=La__namespace.Item.displayName;var kn=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"}}),vc=K__namespace.forwardRef(({className:e,variant:t,size:a,...r},n)=>jsxRuntime.jsx(ys__namespace.Root,{ref:n,className:o(kn({variant:t,size:a,className:e})),...r}));vc.displayName=ys__namespace.Root.displayName;var hc=K__namespace.createContext({size:"md",variant:"solid"}),xc=K__namespace.forwardRef(({className:e,variant:t,size:a,children:r,...n},i)=>jsxRuntime.jsx(Ar__namespace.Root,{ref:i,className:o("flex items-center justify-center gap-1",e),...n,children:jsxRuntime.jsx(hc.Provider,{value:{variant:t,size:a},children:r})}));xc.displayName=Ar__namespace.Root.displayName;var yc=K__namespace.forwardRef(({className:e,children:t,variant:a,size:r,...n},i)=>{let s=K__namespace.useContext(hc);return jsxRuntime.jsx(Ar__namespace.Item,{ref:i,className:o(kn({variant:s.variant||a,size:s.size||r}),e),...n,children:t})});yc.displayName=Ar__namespace.Item.displayName;var Dn=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsxs(ea__namespace.Root,{ref:a,className:o("relative flex w-full touch-none select-none items-center",e),...t,children:[jsxRuntime.jsx(ea__namespace.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:jsxRuntime.jsx(ea__namespace.Range,{className:"absolute h-full bg-primary"})}),jsxRuntime.jsx(ea__namespace.Thumb,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));Dn.displayName=ea__namespace.Root.displayName;var p0=`
|
|
1
|
+
'use strict';var K=require('react'),classVarianceAuthority=require('class-variance-authority'),lucideReact=require('lucide-react'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime'),reactSlot=require('@radix-ui/react-slot'),No=require('@radix-ui/react-checkbox'),ne=require('@radix-ui/react-dialog'),is=require('@radix-ui/react-label'),So=require('@radix-ui/react-separator'),To=require('@radix-ui/react-switch'),Qt=require('@radix-ui/react-avatar'),ht=require('@radix-ui/react-tooltip'),J=require('@radix-ui/react-select'),X=require('@radix-ui/react-dropdown-menu'),xt=require('@radix-ui/react-popover'),yt=require('@radix-ui/react-tabs'),lg=require('@radix-ui/react-visually-hidden'),sonner=require('sonner'),ot=require('@radix-ui/react-scroll-area'),q=require('@radix-ui/react-context-menu'),La=require('@radix-ui/react-radio-group'),ws=require('@radix-ui/react-toggle'),zr=require('@radix-ui/react-toggle-group'),aa=require('@radix-ui/react-slider'),It=require('@radix-ui/react-accordion'),mr=require('@radix-ui/react-collapsible'),Lo=require('@radix-ui/react-progress'),ur=require('@radix-ui/react-hover-card'),Kc=require('@radix-ui/react-aspect-ratio'),Re=require('@radix-ui/react-navigation-menu'),vaul=require('vaul'),reactDayPicker=require('react-day-picker'),dateFns=require('date-fns'),cmdk=require('cmdk'),reactResizablePanels=require('react-resizable-panels'),reactColorful=require('react-colorful'),Y=require('@radix-ui/react-menubar'),ke=require('@radix-ui/react-alert-dialog'),reactDom=require('react-dom'),recharts=require('recharts'),core=require('@dnd-kit/core'),sortable=require('@dnd-kit/sortable'),utilities=require('@dnd-kit/utilities'),vC=require('embla-carousel-react'),react=require('@tiptap/react'),SC=require('@tiptap/starter-kit'),TC=require('@tiptap/extension-link'),MC=require('@tiptap/extension-underline'),kC=require('@tiptap/extension-text-align'),DC=require('@tiptap/extension-placeholder'),ZC=require('react-image-crop');require('react-image-crop/dist/ReactCrop.css');var nS=require('react-qr-code'),nextThemes=require('next-themes'),framerMotion=require('framer-motion'),xo=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 K__namespace=/*#__PURE__*/_interopNamespace(K);var No__namespace=/*#__PURE__*/_interopNamespace(No);var ne__namespace=/*#__PURE__*/_interopNamespace(ne);var is__namespace=/*#__PURE__*/_interopNamespace(is);var So__namespace=/*#__PURE__*/_interopNamespace(So);var To__namespace=/*#__PURE__*/_interopNamespace(To);var Qt__namespace=/*#__PURE__*/_interopNamespace(Qt);var ht__namespace=/*#__PURE__*/_interopNamespace(ht);var J__namespace=/*#__PURE__*/_interopNamespace(J);var X__namespace=/*#__PURE__*/_interopNamespace(X);var xt__namespace=/*#__PURE__*/_interopNamespace(xt);var yt__namespace=/*#__PURE__*/_interopNamespace(yt);var lg__namespace=/*#__PURE__*/_interopNamespace(lg);var ot__namespace=/*#__PURE__*/_interopNamespace(ot);var q__namespace=/*#__PURE__*/_interopNamespace(q);var La__namespace=/*#__PURE__*/_interopNamespace(La);var ws__namespace=/*#__PURE__*/_interopNamespace(ws);var zr__namespace=/*#__PURE__*/_interopNamespace(zr);var aa__namespace=/*#__PURE__*/_interopNamespace(aa);var It__namespace=/*#__PURE__*/_interopNamespace(It);var mr__namespace=/*#__PURE__*/_interopNamespace(mr);var Lo__namespace=/*#__PURE__*/_interopNamespace(Lo);var ur__namespace=/*#__PURE__*/_interopNamespace(ur);var Kc__namespace=/*#__PURE__*/_interopNamespace(Kc);var Re__namespace=/*#__PURE__*/_interopNamespace(Re);var Y__namespace=/*#__PURE__*/_interopNamespace(Y);var ke__namespace=/*#__PURE__*/_interopNamespace(ke);var vC__default=/*#__PURE__*/_interopDefault(vC);var SC__default=/*#__PURE__*/_interopDefault(SC);var TC__default=/*#__PURE__*/_interopDefault(TC);var MC__default=/*#__PURE__*/_interopDefault(MC);var kC__default=/*#__PURE__*/_interopDefault(kC);var DC__default=/*#__PURE__*/_interopDefault(DC);var ZC__default=/*#__PURE__*/_interopDefault(ZC);var nS__default=/*#__PURE__*/_interopDefault(nS);var xo__default=/*#__PURE__*/_interopDefault(xo);function o(...e){return tailwindMerge.twMerge(clsx.clsx(e))}var ay=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"}}),ry={default:lucideReact.Info,success:lucideReact.CheckCircle2,warning:lucideReact.AlertTriangle,error:lucideReact.AlertCircle},oy=K__namespace.forwardRef(({className:e,variant:t="solid",type:a="default",radius:r="md",icon:n,hideIcon:i=false,endContent:s,children:l,...d},m)=>{let u=ry[a],c=!i,f=n!==void 0?n:u?jsxRuntime.jsx(u,{className:"h-4 w-4"}):null;return jsxRuntime.jsxs("div",{ref:m,role:"alert",className:o(ay({variant:t,type:a,radius:r}),s&&"flex items-center justify-between",e),...d,children:[jsxRuntime.jsxs("div",{className:"flex items-start gap-3",children:[c&&f&&jsxRuntime.jsx("span",{className:"mt-0.5 shrink-0",children:f}),jsxRuntime.jsx("div",{children:l})]}),s&&jsxRuntime.jsx("div",{className:"shrink-0 ml-4",children:s})]})});oy.displayName="Alert";var ny=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("h5",{ref:a,className:o("mb-1 font-medium leading-none tracking-tight",e),...t}));ny.displayName="AlertTitle";var iy=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("text-sm [&_p]:leading-relaxed",e),...t}));iy.displayName="AlertDescription";var sy=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"}}),ly={sm:"w-2 h-2",md:"w-2.5 h-2.5",lg:"w-3 h-3"},dy=K__namespace.forwardRef(({className:e,children:t,content:a,variant:r="solid",color:n="default",size:i="md",placement:s="top-right",isDot:l=false,...d},m)=>jsxRuntime.jsxs("div",{ref:m,className:o("relative inline-flex",e),...d,children:[t,jsxRuntime.jsx("span",{className:o(sy({variant:r,color:n,size:l?void 0:i,placement:s}),l&&ly[i||"md"],l&&"min-w-0 p-0"),children:!l&&a})]}));dy.displayName="Badge";var cy=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"}}),Ro=K__namespace.forwardRef(({className:e,color:t,size:a,...r},n)=>jsxRuntime.jsx("span",{ref:n,className:o(cy({color:t,size:a}),e),...r}));Ro.displayName="TextBadge";var Jt=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"}}),G=K__namespace.forwardRef(({className:e,variant:t,color:a,size:r,radius:n,asChild:i=false,href:s,loading:l=false,startContent:d,endContent:m,children:u,disabled:c,style:f,...p},h)=>{let R=c||l,x=t==="bordered"?{borderColor:"currentColor",...f}:f,w=l?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(lucideReact.Loader2,{className:"animate-spin"}),u]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[d,u,m]});return i?jsxRuntime.jsx(reactSlot.Slot,{className:o(Jt({variant:t,color:a,size:r,radius:n,className:e})),ref:h,style:x,...p,children:w}):s?jsxRuntime.jsx("a",{href:s,className:o(Jt({variant:t,color:a,size:r,radius:n,className:e}),R&&"pointer-events-none opacity-50"),style:x,...p,children:w}):jsxRuntime.jsx("button",{className:o(Jt({variant:t,color:a,size:r,radius:n,className:e})),ref:h,disabled:R,style:x,...p,children:w})});G.displayName="Button";var hd=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"}}),xd=K__namespace.forwardRef(({className:e,radius:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,className:o(hd({radius:t,className:e})),...a}));xd.displayName="Card";var yd=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("p-6 text-2xl font-semibold leading-none tracking-tight",e),...t}));yd.displayName="CardHeader";var Rd=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("p-6 pt-0",e),...t}));Rd.displayName="CardContent";var wd=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex items-center p-6 pt-0",e),...t}));wd.displayName="CardFooter";var Po=K__namespace.forwardRef(({className:e,checked:t,onFocus:a,onBlur:r,style:n,...i},s)=>{let[l,d]=K__namespace.useState(false);return jsxRuntime.jsx(No__namespace.Root,{ref:s,checked:t,className:o("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 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:bg-background data-[state=indeterminate]:text-foreground transition-colors",e),style:{...n,borderColor:l?"var(--color-foreground)":void 0},onFocus:m=>{d(true),a?.(m);},onBlur:m=>{d(false),r?.(m);},...i,children:jsxRuntime.jsx(No__namespace.Indicator,{className:o("flex items-center justify-center text-current"),children:t==="indeterminate"?jsxRuntime.jsx(lucideReact.Minus,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})})});Po.displayName=No__namespace.Root.displayName;var os=ne__namespace.Root,xy=ne__namespace.Trigger,Nd=ne__namespace.Portal,yy=ne__namespace.Close,ns=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ne__namespace.Overlay,{ref:a,className:o("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),...t}));ns.displayName=ne__namespace.Overlay.displayName;var vn=K__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(Nd,{children:[jsxRuntime.jsx(ns,{}),jsxRuntime.jsxs(ne__namespace.Content,{ref:r,className:o("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),...a,children:[t,jsxRuntime.jsxs(ne__namespace.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));vn.displayName=ne__namespace.Content.displayName;var Pd=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Pd.displayName="DialogHeader";var Cd=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Cd.displayName="DialogFooter";var Sd=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ne__namespace.Title,{ref:a,className:o("text-lg font-semibold leading-none tracking-tight",e),...t}));Sd.displayName=ne__namespace.Title.displayName;var Td=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ne__namespace.Description,{ref:a,className:o("text-sm text-muted-foreground",e),...t}));Td.displayName=ne__namespace.Description.displayName;var wy=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"}}),xn=K__namespace.forwardRef(({className:e,type:t,radius:a,onFocus:r,onBlur:n,style:i,...s},l)=>{let[d,m]=K__namespace.useState(false);return jsxRuntime.jsx("input",{type:t,className:o(wy({radius:a,className:e})),ref:l,style:{...i,borderColor:d?"var(--color-foreground)":void 0},onFocus:u=>{m(true),r?.(u);},onBlur:u=>{m(false),n?.(u);},...s})});xn.displayName="Input";var Cy=classVarianceAuthority.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),tr=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(is__namespace.Root,{ref:a,className:o(Cy(),e),...t}));tr.displayName=is__namespace.Root.displayName;var Ma=K__namespace.forwardRef(({className:e,orientation:t="horizontal",decorative:a=true,text:r,...n},i)=>r&&t==="horizontal"?jsxRuntime.jsxs("div",{className:o("flex items-center gap-4",e),children:[jsxRuntime.jsx(So__namespace.Root,{decorative:a,orientation:t,className:"shrink-0 bg-border h-[1px] flex-1",...n}),jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:r}),jsxRuntime.jsx(So__namespace.Root,{decorative:a,orientation:t,className:"shrink-0 bg-border h-[1px] flex-1",...n})]}):jsxRuntime.jsx(So__namespace.Root,{ref:i,decorative:a,orientation:t,className:o("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));Ma.displayName=So__namespace.Root.displayName;var Ld=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(To__namespace.Root,{className:o("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:a,children:jsxRuntime.jsx(To__namespace.Thumb,{className:o("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));Ld.displayName=To__namespace.Root.displayName;var ky=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"}}),Id=K__namespace.forwardRef(({className:e,radius:t,onFocus:a,onBlur:r,style:n,...i},s)=>{let[l,d]=K__namespace.useState(false);return jsxRuntime.jsx("textarea",{className:o(ky({radius:t,className:e})),ref:s,style:{...n,borderColor:l?"var(--color-foreground)":void 0},onFocus:m=>{d(true),a?.(m);},onBlur:m=>{d(false),r?.(m);},...i})});Id.displayName="Textarea";var Hd=classVarianceAuthority.cva("rounded-md bg-muted",{variants:{variant:{pulse:"animate-pulse",shimmer:"skeleton-shimmer",static:""}},defaultVariants:{variant:"pulse"}}),wn=K__namespace.forwardRef(({className:e,variant:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,className:o(Hd({variant:t,className:e})),...a}));wn.displayName="Skeleton";var Ey=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"}}),ar=K__namespace.forwardRef(({className:e,size:t,radius:a,...r},n)=>jsxRuntime.jsx(Qt__namespace.Root,{ref:n,className:o(Ey({size:t,radius:a,className:e})),...r}));ar.displayName=Qt__namespace.Root.displayName;var Hr=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Qt__namespace.Image,{ref:a,className:o("aspect-square h-full w-full",e),...t}));Hr.displayName=Qt__namespace.Image.displayName;var rr=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Qt__namespace.Fallback,{ref:a,className:o("flex h-full w-full items-center justify-center bg-muted",e),...t}));rr.displayName=Qt__namespace.Fallback.displayName;var or=ht__namespace.Provider,nr=ht__namespace.Root,ir=ht__namespace.Trigger,ka=K__namespace.forwardRef(({className:e,sideOffset:t=4,...a},r)=>jsxRuntime.jsx(ht__namespace.Portal,{children:jsxRuntime.jsx(ht__namespace.Content,{ref:r,sideOffset:t,className:o("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 animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));ka.displayName=ht__namespace.Content.displayName;var ls=J__namespace.Root,zy=J__namespace.Group,ds=J__namespace.Value,Pn=K__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(J__namespace.Trigger,{ref:r,className:o("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...a,children:[t,jsxRuntime.jsx(J__namespace.Icon,{asChild:true,children:jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Pn.displayName=J__namespace.Trigger.displayName;var cs=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(J__namespace.ScrollUpButton,{ref:a,className:o("flex cursor-default items-center justify-center py-1",e),...t,children:jsxRuntime.jsx(lucideReact.ChevronUp,{className:"h-4 w-4"})}));cs.displayName=J__namespace.ScrollUpButton.displayName;var ms=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(J__namespace.ScrollDownButton,{ref:a,className:o("flex cursor-default items-center justify-center py-1",e),...t,children:jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"})}));ms.displayName=J__namespace.ScrollDownButton.displayName;var Cn=K__namespace.forwardRef(({className:e,children:t,position:a="popper",...r},n)=>jsxRuntime.jsx(J__namespace.Portal,{children:jsxRuntime.jsxs(J__namespace.Content,{ref:n,className:o("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:a,...r,children:[jsxRuntime.jsx(cs,{}),jsxRuntime.jsx(J__namespace.Viewport,{className:o("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),jsxRuntime.jsx(ms,{})]})}));Cn.displayName=J__namespace.Content.displayName;var Fd=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(J__namespace.Label,{ref:a,className:o("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Fd.displayName=J__namespace.Label.displayName;var Sn=K__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(J__namespace.Item,{ref:r,className:o("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(J__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),jsxRuntime.jsx(J__namespace.ItemText,{children:t})]}));Sn.displayName=J__namespace.Item.displayName;var Od=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(J__namespace.Separator,{ref:a,className:o("-mx-1 my-1 h-px bg-muted",e),...t}));Od.displayName=J__namespace.Separator.displayName;var sr=X__namespace.Root,lr=X__namespace.Trigger,Gy=X__namespace.Group,Wy=X__namespace.Portal,$y=X__namespace.Sub,_y=X__namespace.RadioGroup,Gd=K__namespace.forwardRef(({className:e,inset:t,children:a,...r},n)=>jsxRuntime.jsxs(X__namespace.SubTrigger,{ref:n,className:o("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[a,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto"})]}));Gd.displayName=X__namespace.SubTrigger.displayName;var Wd=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(X__namespace.SubContent,{ref:a,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Wd.displayName=X__namespace.SubContent.displayName;var Va=K__namespace.forwardRef(({className:e,sideOffset:t=4,...a},r)=>jsxRuntime.jsx(X__namespace.Portal,{children:jsxRuntime.jsx(X__namespace.Content,{ref:r,sideOffset:t,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));Va.displayName=X__namespace.Content.displayName;var Vt=K__namespace.forwardRef(({className:e,inset:t,...a},r)=>jsxRuntime.jsx(X__namespace.Item,{ref:r,className:o("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-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));Vt.displayName=X__namespace.Item.displayName;var $d=K__namespace.forwardRef(({className:e,children:t,checked:a,...r},n)=>jsxRuntime.jsxs(X__namespace.CheckboxItem,{ref:n,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...r,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(X__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),t]}));$d.displayName=X__namespace.CheckboxItem.displayName;var _d=K__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(X__namespace.RadioItem,{ref:r,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(X__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));_d.displayName=X__namespace.RadioItem.displayName;var Kd=K__namespace.forwardRef(({className:e,inset:t,...a},r)=>jsxRuntime.jsx(X__namespace.Label,{ref:r,className:o("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));Kd.displayName=X__namespace.Label.displayName;var Tn=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(X__namespace.Separator,{ref:a,className:o("-mx-1 my-1 h-px bg-muted",e),...t}));Tn.displayName=X__namespace.Separator.displayName;var Ud=({className:e,...t})=>jsxRuntime.jsx("span",{className:o("ml-auto text-xs tracking-widest opacity-60",e),...t});Ud.displayName="DropdownMenuShortcut";var Ne=xt__namespace.Root,Se=xt__namespace.Trigger,fs=xt__namespace.Anchor,xe=K__namespace.forwardRef(({className:e,align:t="center",sideOffset:a=4,...r},n)=>jsxRuntime.jsx(xt__namespace.Portal,{children:jsxRuntime.jsx(xt__namespace.Content,{ref:n,align:t,sideOffset:a,className:o("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",e),...r})}));xe.displayName=xt__namespace.Content.displayName;var Xd=K__namespace.createContext({variant:"solid",radius:"md"}),qd=()=>K__namespace.useContext(Xd),Zd=K__namespace.forwardRef(({variant:e="solid",radius:t="md",...a},r)=>jsxRuntime.jsx(Xd.Provider,{value:{variant:e,radius:t},children:jsxRuntime.jsx(yt__namespace.Root,{ref:r,...a})}));Zd.displayName="Tabs";var gs={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"}},Jd=K__namespace.forwardRef(({className:e,...t},a)=>{let{variant:r,radius:n}=qd(),i=K__namespace.useRef(null),[s,l]=K__namespace.useState({opacity:0});K__namespace.useEffect(()=>{let p=i.current;if(!p)return;let h=()=>{let x=p.querySelector('[data-state="active"]');if(x){let w=p.getBoundingClientRect(),b=x.getBoundingClientRect(),v=p.getAttribute("aria-orientation")==="vertical"||window.getComputedStyle(p).flexDirection==="column";r==="underline"?l(v?{width:2,height:b.height,transform:`translateY(${b.top-w.top}px)`,opacity:1}:{width:b.width,height:2,transform:`translateX(${b.left-w.left}px)`,opacity:1}):r==="solid"&&l(v?{width:b.width,height:b.height,transform:`translateY(${b.top-w.top}px)`,opacity:1}:{width:b.width,height:b.height,transform:`translateX(${b.left-w.left}px)`,opacity:1});}};h();let R=new MutationObserver(h);R.observe(p,{attributes:true,subtree:true,attributeFilter:["data-state"]});let g=new ResizeObserver(h);return g.observe(p),()=>{R.disconnect(),g.disconnect();}},[r]);let d={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"},m=()=>{let p=i.current;return p?p.getAttribute("aria-orientation")==="vertical"||window.getComputedStyle(p).flexDirection==="column":false},[u,c]=K__namespace.useState(false);K__namespace.useEffect(()=>{c(m());},[]);let f=()=>r==="solid"?u?"top-0 left-1 bg-background shadow":"top-1 left-1 bg-background shadow":r==="underline"?u?"top-0 left-0 bg-primary !rounded-full":"bottom-0 left-0 bg-primary !rounded-full":"";return jsxRuntime.jsxs(yt__namespace.List,{ref:p=>{if(i.current=p,typeof a=="function"?a(p):a&&(a.current=p),p){let h=p.getAttribute("aria-orientation")==="vertical"||window.getComputedStyle(p).flexDirection==="column";c(h);}},className:o("relative inline-flex h-9 items-center justify-center text-muted-foreground",gs[n].list,d[r],e),...t,children:[(r==="solid"||r==="underline")&&jsxRuntime.jsx("span",{className:o("absolute transition-all duration-200 ease-out",gs[n].indicator,f()),style:s,"aria-hidden":"true"}),t.children]})});Jd.displayName=yt__namespace.List.displayName;var Qd=K__namespace.forwardRef(({className:e,...t},a)=>{let{variant:r,radius:n}=qd(),i={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(yt__namespace.Trigger,{ref:a,className:o("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",gs[n].trigger,i[r],e),...t})});Qd.displayName=yt__namespace.Trigger.displayName;var ec=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(yt__namespace.Content,{ref:a,className:o("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 animate-in animate-out",e),...t}));ec.displayName=yt__namespace.Content.displayName;var Do=ne__namespace.Root,Xy=ne__namespace.Trigger,qy=ne__namespace.Close,tc=ne__namespace.Portal,vs=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ne__namespace.Overlay,{className:o("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),...t,ref:a}));vs.displayName=ne__namespace.Overlay.displayName;var ac=classVarianceAuthority.cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Ar=K__namespace.forwardRef(({side:e="right",className:t,children:a,hideCloseButton:r,...n},i)=>jsxRuntime.jsxs(tc,{children:[jsxRuntime.jsx(vs,{}),jsxRuntime.jsxs(ne__namespace.Content,{ref:i,className:o(ac({side:e}),t),"aria-describedby":void 0,...n,children:[jsxRuntime.jsx(lg.VisuallyHidden,{asChild:true,children:jsxRuntime.jsx(ne__namespace.Title,{children:"Sheet"})}),!r&&jsxRuntime.jsxs(ne__namespace.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]}),a]})]}));Ar.displayName=ne__namespace.Content.displayName;var rc=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col space-y-2 text-center sm:text-left",e),...t});rc.displayName="SheetHeader";var oc=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});oc.displayName="SheetFooter";var nc=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ne__namespace.Title,{ref:a,className:o("text-lg font-semibold text-foreground",e),...t}));nc.displayName=ne__namespace.Title.displayName;var ic=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ne__namespace.Description,{ref:a,className:o("text-sm text-muted-foreground",e),...t}));ic.displayName=ne__namespace.Description.displayName;var Qy=({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 ze=K__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(ot__namespace.Root,{ref:r,className:o("relative overflow-hidden group/scroll",e),...a,children:[jsxRuntime.jsx(ot__namespace.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),jsxRuntime.jsx(xs,{}),jsxRuntime.jsx(ot__namespace.Corner,{})]}));ze.displayName=ot__namespace.Root.displayName;var xs=K__namespace.forwardRef(({className:e,orientation:t="vertical",...a},r)=>jsxRuntime.jsx(ot__namespace.ScrollAreaScrollbar,{ref:r,orientation:t,className:o("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2 flex-col border-t border-t-transparent p-[1px]",e),...a,children:jsxRuntime.jsx(ot__namespace.ScrollAreaThumb,{className:o("relative flex-1 rounded-full transition-colors","bg-transparent group-hover/scroll:bg-border hover:!bg-muted-foreground")})}));xs.displayName=ot__namespace.ScrollAreaScrollbar.displayName;var n0=q__namespace.Root,i0=q__namespace.Trigger,s0=q__namespace.Group,l0=q__namespace.Portal,d0=q__namespace.Sub,c0=q__namespace.RadioGroup,sc=K__namespace.forwardRef(({className:e,inset:t,children:a,...r},n)=>jsxRuntime.jsxs(q__namespace.SubTrigger,{ref:n,className:o("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",e),...r,children:[a,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto h-4 w-4"})]}));sc.displayName=q__namespace.SubTrigger.displayName;var lc=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(q__namespace.SubContent,{ref:a,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-context-menu-content-transform-origin]",e),...t}));lc.displayName=q__namespace.SubContent.displayName;var dc=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(q__namespace.Portal,{children:jsxRuntime.jsx(q__namespace.Content,{ref:a,className:o("z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-context-menu-content-transform-origin]",e),...t})}));dc.displayName=q__namespace.Content.displayName;var cc=K__namespace.forwardRef(({className:e,inset:t,...a},r)=>jsxRuntime.jsx(q__namespace.Item,{ref:r,className:o("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...a}));cc.displayName=q__namespace.Item.displayName;var mc=K__namespace.forwardRef(({className:e,children:t,checked:a,...r},n)=>jsxRuntime.jsxs(q__namespace.CheckboxItem,{ref:n,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...r,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(q__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),t]}));mc.displayName=q__namespace.CheckboxItem.displayName;var uc=K__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(q__namespace.RadioItem,{ref:r,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(q__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-4 w-4 fill-current"})})}),t]}));uc.displayName=q__namespace.RadioItem.displayName;var pc=K__namespace.forwardRef(({className:e,inset:t,...a},r)=>jsxRuntime.jsx(q__namespace.Label,{ref:r,className:o("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...a}));pc.displayName=q__namespace.Label.displayName;var fc=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(q__namespace.Separator,{ref:a,className:o("-mx-1 my-1 h-px bg-border",e),...t}));fc.displayName=q__namespace.Separator.displayName;var gc=({className:e,...t})=>jsxRuntime.jsx("span",{className:o("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});gc.displayName="ContextMenuShortcut";var bc=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(La__namespace.Root,{className:o("grid gap-2",e),...t,ref:a}));bc.displayName=La__namespace.Root.displayName;var vc=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(La__namespace.Item,{ref:a,className:o("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",e),...t,children:jsxRuntime.jsx(La__namespace.Indicator,{className:"flex items-center justify-center",children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-2.5 w-2.5 fill-current text-current"})})}));vc.displayName=La__namespace.Item.displayName;var kn=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"}}),xc=K__namespace.forwardRef(({className:e,variant:t,size:a,...r},n)=>jsxRuntime.jsx(ws__namespace.Root,{ref:n,className:o(kn({variant:t,size:a,className:e})),...r}));xc.displayName=ws__namespace.Root.displayName;var yc=K__namespace.createContext({size:"md",variant:"solid"}),Rc=K__namespace.forwardRef(({className:e,variant:t,size:a,children:r,...n},i)=>jsxRuntime.jsx(zr__namespace.Root,{ref:i,className:o("flex items-center justify-center gap-1",e),...n,children:jsxRuntime.jsx(yc.Provider,{value:{variant:t,size:a},children:r})}));Rc.displayName=zr__namespace.Root.displayName;var wc=K__namespace.forwardRef(({className:e,children:t,variant:a,size:r,...n},i)=>{let s=K__namespace.useContext(yc);return jsxRuntime.jsx(zr__namespace.Item,{ref:i,className:o(kn({variant:s.variant||a,size:s.size||r}),e),...n,children:t})});wc.displayName=zr__namespace.Item.displayName;var Dn=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsxs(aa__namespace.Root,{ref:a,className:o("relative flex w-full touch-none select-none items-center",e),...t,children:[jsxRuntime.jsx(aa__namespace.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:jsxRuntime.jsx(aa__namespace.Range,{className:"absolute h-full bg-primary"})}),jsxRuntime.jsx(aa__namespace.Thumb,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));Dn.displayName=aa__namespace.Root.displayName;var b0=`
|
|
2
2
|
@keyframes accordion-down {
|
|
3
3
|
from { height: 0; opacity: 0; }
|
|
4
4
|
to { height: var(--radix-accordion-content-height); opacity: 1; }
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
.accordion-content[data-state="closed"] {
|
|
14
14
|
animation: accordion-up 0.2s ease-out;
|
|
15
15
|
}
|
|
16
|
-
`,
|
|
16
|
+
`,Pc=false,v0=()=>{if(Pc||typeof document>"u")return;let e=document.createElement("style");e.textContent=b0,document.head.appendChild(e),Pc=true;},Cc=({className:e,...t})=>(K__namespace.useEffect(()=>{v0();},[]),jsxRuntime.jsx(It__namespace.Root,{className:o("w-full",e),...t}));Cc.displayName="Accordion";var h0=Cc,Sc=K__namespace.forwardRef(({className:e,title:t,subtitle:a,startContent:r,children:n,...i},s)=>jsxRuntime.jsxs(It__namespace.Item,{ref:s,className:o("border-b data-[disabled]:opacity-50",e),...i,children:[jsxRuntime.jsx(It__namespace.Header,{className:"flex",children:jsxRuntime.jsxs(It__namespace.Trigger,{className:"flex flex-1 items-center justify-between py-4 font-medium transition-all text-left cursor-pointer [&[data-state=open]>svg]:rotate-180 disabled:pointer-events-none disabled:opacity-50",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[r,jsxRuntime.jsxs("div",{className:"flex flex-col items-start",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium",children:t}),a&&jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:a})]})]}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}),jsxRuntime.jsx(It__namespace.Content,{className:"accordion-content overflow-hidden text-sm",children:jsxRuntime.jsx("div",{className:"pb-4 pt-0",children:n})})]}));Sc.displayName="AccordionItem";var x0=`
|
|
17
17
|
@keyframes collapsible-down {
|
|
18
18
|
from { height: 0; opacity: 0; }
|
|
19
19
|
to { height: var(--radix-collapsible-content-height); opacity: 1; }
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
.collapsible-content[data-state="closed"] {
|
|
29
29
|
animation: collapsible-up 0.2s ease-out;
|
|
30
30
|
}
|
|
31
|
-
`,Cc=false,v0=()=>{if(Cc||typeof document>"u")return;let e=document.createElement("style");e.textContent=b0,document.head.appendChild(e),Cc=true;},Mc=K__namespace.forwardRef(({className:e,title:t,children:a,...r},n)=>(K__namespace.useEffect(()=>{v0();},[]),jsxRuntime.jsxs(cr__namespace.Root,{ref:n,className:o("space-y-2",e),...r,children:[t&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between space-x-4 px-4",children:[jsxRuntime.jsx("h4",{className:"text-sm font-semibold",children:t}),jsxRuntime.jsx(cr__namespace.CollapsibleTrigger,{className:"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",children:jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"h-4 w-4"})})]}),a]})));Mc.displayName="Collapsible";var kc=K__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsx(cr__namespace.CollapsibleTrigger,{ref:r,className:o("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",e),...a,children:t??jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"h-4 w-4"})}));kc.displayName="CollapsibleTrigger";var Dc=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(cr__namespace.CollapsibleContent,{ref:a,className:o("collapsible-content overflow-hidden",e),...t}));Dc.displayName="CollapsibleContent";var In=K__namespace.forwardRef(({className:e,value:t,...a},r)=>jsxRuntime.jsx(Vo__namespace.Root,{ref:r,className:o("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...a,children:jsxRuntime.jsx(Vo__namespace.Indicator,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));In.displayName=Vo__namespace.Root.displayName;var h0=mr__namespace.Root,x0=mr__namespace.Trigger,Ec=K__namespace.forwardRef(({className:e,align:t="center",sideOffset:a=4,...r},n)=>jsxRuntime.jsx(mr__namespace.Content,{ref:n,align:t,sideOffset:a,className:o("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));Ec.displayName=mr__namespace.Content.displayName;var Hc=K__namespace.forwardRef(({...e},t)=>jsxRuntime.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));Hc.displayName="Breadcrumb";var Ac=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("ol",{ref:a,className:o("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));Ac.displayName="BreadcrumbList";var zc=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("li",{ref:a,className:o("inline-flex items-center gap-1.5",e),...t}));zc.displayName="BreadcrumbItem";var Bc=K__namespace.forwardRef(({asChild:e,className:t,...a},r)=>jsxRuntime.jsx(e?reactSlot.Slot:"a",{ref:r,className:o("transition-colors hover:text-foreground cursor-pointer",t),...a}));Bc.displayName="BreadcrumbLink";var Fc=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:o("font-normal text-foreground",e),...t}));Fc.displayName="BreadcrumbPage";var Oc=({children:e,className:t,...a})=>jsxRuntime.jsx("li",{role:"presentation","aria-hidden":"true",className:o("[&>svg]:h-3.5 [&>svg]:w-3.5",t),...a,children:e??jsxRuntime.jsx(lucideReact.ChevronRight,{})});Oc.displayName="BreadcrumbSeparator";var Gc=({className:e,...t})=>jsxRuntime.jsxs("span",{role:"presentation","aria-hidden":"true",className:o("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"})]});Gc.displayName="BreadcrumbEllipsis";var C0=Wc__namespace.Root;var $c=K__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(Re__namespace.Root,{ref:r,className:o("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:[t,jsxRuntime.jsx(Ns,{})]}));$c.displayName=Re__namespace.Root.displayName;var _c=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Re__namespace.List,{ref:a,className:o("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));_c.displayName=Re__namespace.List.displayName;var M0=Re__namespace.Item,Kc=classVarianceAuthority.cva("group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"),Uc=K__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(Re__namespace.Trigger,{ref:r,className:o(Kc(),"group",e),...a,children:[t," ",jsxRuntime.jsx(lucideReact.ChevronDown,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));Uc.displayName=Re__namespace.Trigger.displayName;var Yc=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Re__namespace.Content,{ref:a,className:o("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto",e),...t}));Yc.displayName=Re__namespace.Content.displayName;var k0=Re__namespace.Link,Ns=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{className:o("absolute left-0 top-full flex justify-center"),children:jsxRuntime.jsx(Re__namespace.Viewport,{className:o("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:a,...t})}));Ns.displayName=Re__namespace.Viewport.displayName;var jc=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Re__namespace.Indicator,{ref:a,className:o("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:jsxRuntime.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));jc.displayName=Re__namespace.Indicator.displayName;var Zc=({shouldScaleBackground:e=true,...t})=>jsxRuntime.jsx(vaul.Drawer.Root,{shouldScaleBackground:e,...t});Zc.displayName="Drawer";var D0=vaul.Drawer.Trigger,Jc=vaul.Drawer.Portal,L0=vaul.Drawer.Close,Ps=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(vaul.Drawer.Overlay,{ref:a,className:o("fixed inset-0 z-50 bg-black/80",e),...t}));Ps.displayName=vaul.Drawer.Overlay.displayName;var Qc=K__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(Jc,{children:[jsxRuntime.jsx(Ps,{}),jsxRuntime.jsxs(vaul.Drawer.Content,{ref:r,className:o("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...a,children:[jsxRuntime.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));Qc.displayName="DrawerContent";var em=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("grid gap-1.5 p-4 text-center sm:text-left",e),...t});em.displayName="DrawerHeader";var tm=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("mt-auto flex flex-col gap-2 p-4",e),...t});tm.displayName="DrawerFooter";var am=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(vaul.Drawer.Title,{ref:a,className:o("text-lg font-semibold leading-none tracking-tight",e),...t}));am.displayName=vaul.Drawer.Title.displayName;var rm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(vaul.Drawer.Description,{ref:a,className:o("text-sm text-muted-foreground",e),...t}));rm.displayName=vaul.Drawer.Description.displayName;var om=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{className:"relative w-full overflow-auto",children:jsxRuntime.jsx("table",{ref:a,className:o("w-full caption-bottom text-sm",e),...t})}));om.displayName="Table";var nm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("thead",{ref:a,className:o("[&_tr]:border-b",e),...t}));nm.displayName="TableHeader";var im=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("tbody",{ref:a,className:o("[&_tr:last-child]:border-0",e),...t}));im.displayName="TableBody";var sm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("tfoot",{ref:a,className:o("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));sm.displayName="TableFooter";var lm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("tr",{ref:a,className:o("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));lm.displayName="TableRow";var dm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("th",{ref:a,className:o("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));dm.displayName="TableHead";var cm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("td",{ref:a,className:o("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));cm.displayName="TableCell";var mm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("caption",{ref:a,className:o("mt-4 text-sm text-muted-foreground",e),...t}));mm.displayName="TableCaption";var pm=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"}}),fm=K__namespace.forwardRef(({className:e,size:t,...a},r)=>jsxRuntime.jsx(lucideReact.Loader2,{ref:r,className:o(pm({size:t,className:e})),...a}));fm.displayName="Spinner";var Cs=["January","February","March","April","May","June","July","August","September","October","November","December"];function G0({currentMonth:e,onMonthChange:t,startYear:a,endYear:r}){let[n,i]=K__namespace.useState(false),[s,l]=K__namespace.useState(false),d=K__namespace.useRef(null),m=K__namespace.useRef(null),u=dateFns.getMonth(e),c=dateFns.getYear(e);K__namespace.useEffect(()=>{function R(g){d.current&&!d.current.contains(g.target)&&i(false),m.current&&!m.current.contains(g.target)&&l(false);}return document.addEventListener("mousedown",R),()=>document.removeEventListener("mousedown",R)},[]);let f=R=>{let g=dateFns.setMonth(e,R);t(g),i(false);},p=R=>{let g=dateFns.setYear(e,R);t(g),l(false);},h=K__namespace.useMemo(()=>{let R=[];for(let g=r;g>=a;g--)R.push(g);return R},[a,r]);return jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("div",{ref:d,className:"relative",children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>{i(!n),l(false);},className:o("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:Cs[u]}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:o("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(ze,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"p-1",children:Cs.map((R,g)=>jsxRuntime.jsx("button",{type:"button",onClick:()=>f(g),className:o("w-full text-left px-3 py-2 text-sm rounded-md","hover:bg-muted transition-colors cursor-pointer",u===g&&"bg-primary/10 text-primary font-medium"),children:R},R))})})})]}),jsxRuntime.jsxs("div",{ref:m,className:"relative",children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>{l(!s),i(false);},className:o("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:c}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:o("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(ze,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"p-1",children:h.map(R=>jsxRuntime.jsx("button",{type:"button",onClick:()=>p(R),className:o("w-full text-left px-3 py-2 text-sm rounded-md","hover:bg-muted transition-colors cursor-pointer",c===R&&"bg-primary/10 text-primary font-medium"),children:R},R))})})})]})]})}function W0(e,t,a){return function({calendarMonth:n}){let{goToMonth:i,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(G0,{currentMonth:n.date,onMonthChange:i,startYear:t,endYear:a}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("button",{type:"button",disabled:!l,onClick:()=>l&&i(l),className:o("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&&i(s),className:o("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 d=Cs[n.date.getMonth()],m=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:d}),jsxRuntime.jsx("span",{className:"text-sm font-medium w-[50px]",children:m})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("button",{type:"button",disabled:!l,onClick:()=>l&&i(l),className:o("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&&i(s),className:o("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 Or({className:e,classNames:t,showOutsideDays:a=true,showMonthAndYearPickers:r=false,startYear:n=1900,endYear:i=new Date().getFullYear()+50,components:s,...l}){let d=K__namespace.useMemo(()=>W0(r,n,i),[r,n,i]);return jsxRuntime.jsx(reactDayPicker.DayPicker,{showOutsideDays:a,className:o("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:o("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:o("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:o("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:d},...l})}Or.displayName="Calendar";var hm=({className:e,...t})=>jsxRuntime.jsx("nav",{role:"navigation","aria-label":"pagination",className:o("mx-auto flex w-full justify-center",e),...t});hm.displayName="Pagination";var xm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("ul",{ref:a,className:o("flex flex-row items-center gap-1",e),...t}));xm.displayName="PaginationContent";var ym=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("li",{ref:a,className:o("",e),...t}));ym.displayName="PaginationItem";var En=({className:e,isActive:t,size:a="icon",...r})=>jsxRuntime.jsx("a",{"aria-current":t?"page":void 0,className:o(qt({variant:t?"bordered":"ghost",size:a}),e),...r});En.displayName="PaginationLink";var Rm=({className:e,...t})=>jsxRuntime.jsxs(En,{"aria-label":"Go to previous page",size:"md",className:o("gap-1 pl-2.5",e),...t,children:[jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{children:"Previous"})]});Rm.displayName="PaginationPrevious";var wm=({className:e,...t})=>jsxRuntime.jsxs(En,{"aria-label":"Go to next page",size:"md",className:o("gap-1 pr-2.5",e),...t,children:[jsxRuntime.jsx("span",{children:"Next"}),jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})]});wm.displayName="PaginationNext";var Nm=({className:e,...t})=>jsxRuntime.jsxs("span",{"aria-hidden":true,className:o("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"})]});Nm.displayName="PaginationEllipsis";var Ms=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(cmdk.Command,{ref:a,className:o("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));Ms.displayName=cmdk.Command.displayName;var Y0=({children:e,...t})=>jsxRuntime.jsx(as,{...t,children:jsxRuntime.jsx(vn,{className:"overflow-hidden p-0 shadow-lg",children:jsxRuntime.jsx(Ms,{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})})}),Pm=K__namespace.forwardRef(({className:e,...t},a)=>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:a,className:o("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})]}));Pm.displayName=cmdk.Command.Input.displayName;var Cm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(cmdk.Command.List,{ref:a,className:o("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Cm.displayName=cmdk.Command.List.displayName;var Sm=K__namespace.forwardRef((e,t)=>jsxRuntime.jsx(cmdk.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Sm.displayName=cmdk.Command.Empty.displayName;var Tm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(cmdk.Command.Group,{ref:a,className:o("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}));Tm.displayName=cmdk.Command.Group.displayName;var Mm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(cmdk.Command.Separator,{ref:a,className:o("-mx-1 h-px bg-border",e),...t}));Mm.displayName=cmdk.Command.Separator.displayName;var km=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(cmdk.Command.Item,{ref:a,className:o("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}));km.displayName=cmdk.Command.Item.displayName;var Dm=({className:e,...t})=>jsxRuntime.jsx("span",{className:o("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Dm.displayName="CommandShortcut";var Lm=K__namespace.forwardRef(({className:e,showToggle:t=true,disabled:a,onFocus:r,onBlur:n,style:i,...s},l)=>{let[d,m]=K__namespace.useState(false),[u,c]=K__namespace.useState(false);return jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("input",{type:d?"text":"password",className:o("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:a,style:{...i,borderColor:u?"var(--color-foreground)":void 0},onFocus:f=>{c(true),r?.(f);},onBlur:f=>{c(false),n?.(f);},...s}),t&&jsxRuntime.jsx(G,{type:"button",variant:"ghost",size:"icon",className:"absolute right-0 top-0 h-10 w-10 px-3 hover:bg-transparent",onClick:()=>m(!d),disabled:a,tabIndex:-1,"aria-label":d?"Hide password":"Show password",children:d?jsxRuntime.jsx(lucideReact.EyeOff,{className:"h-4 w-4 text-muted-foreground"}):jsxRuntime.jsx(lucideReact.Eye,{className:"h-4 w-4 text-muted-foreground"})})]})});Lm.displayName="PasswordInput";var Vm=K__namespace.forwardRef(({className:e,showButtons:t=true,step:a=1,min:r,max:n,value:i,defaultValue:s,onChange:l,disabled:d,...m},u)=>{let[c,f]=K__namespace.useState(s),p=i!==void 0,h=p?i:c,R=y=>{y!==void 0&&(r!==void 0&&y<r&&(y=r),n!==void 0&&y>n&&(y=n)),p||f(y),l?.(y);},g=()=>{R((h??0)+a);},x=()=>{R((h??0)-a);},w=y=>{let C=y.target.value;if(C==="")R(void 0);else {let M=parseFloat(C);isNaN(M)||R(M);}},b=y=>{y.key==="ArrowUp"?(y.preventDefault(),g()):y.key==="ArrowDown"&&(y.preventDefault(),x());},v=r===void 0||(h??0)>r,P=n===void 0||(h??0)<n;return jsxRuntime.jsxs("div",{className:"relative flex items-center",children:[t&&jsxRuntime.jsx(G,{type:"button",variant:"bordered",size:"icon",className:"h-10 w-10 rounded-r-none border-r-0",onClick:x,disabled:d||!v,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:o("flex h-10 w-full bg-background px-3 py-2 text-sm text-center 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",t?"border-y border-input rounded-none":"border border-input rounded-md",e),ref:u,value:h??"",onChange:w,onKeyDown:b,disabled:d,...m}),t&&jsxRuntime.jsx(G,{type:"button",variant:"bordered",size:"icon",className:"h-10 w-10 rounded-l-none border-l-0",onClick:g,disabled:d||!P,tabIndex:-1,"aria-label":"Increase value",children:jsxRuntime.jsx(lucideReact.Plus,{className:"h-4 w-4"})})]})});Vm.displayName="NumberInput";var Im=K__namespace.forwardRef(({options:e,value:t,defaultValue:a=[],onValueChange:r,placeholder:n="Select items...",searchPlaceholder:i="Search...",emptyText:s="No items found.",maxItems:l,showCount:d=false,disabled:m=false,className:u},c)=>{let[f,p]=K__namespace.useState(false),[h,R]=K__namespace.useState(""),[g,x]=K__namespace.useState(a),w=t!==void 0,b=w?t:g,v=N=>{w||x(N),r?.(N);},P=N=>{let S=b.includes(N)?b.filter(k=>k!==N):l&&b.length>=l?b:[...b,N];v(S);},y=N=>{v(b.filter(S=>S!==N));},C=()=>{v([]);},M=e.filter(N=>b.includes(N.value)),T=e.filter(N=>N.label.toLowerCase().includes(h.toLowerCase()));return jsxRuntime.jsxs(Ne,{open:f,onOpenChange:p,children:[jsxRuntime.jsx(Se,{asChild:true,children:jsxRuntime.jsxs(G,{ref:c,variant:"bordered",role:"combobox","aria-expanded":f,disabled:m,className:o("w-full justify-between h-auto min-h-10",b.length>0?"px-2 py-1.5":"px-3 py-2",u),children:[b.length===0?jsxRuntime.jsx("span",{className:"text-muted-foreground font-normal",children:n}):d?jsxRuntime.jsxs("span",{className:"font-normal",children:[b.length," selected"]}):jsxRuntime.jsx("div",{className:"flex flex-wrap gap-1",children:M.map(N=>jsxRuntime.jsxs(Ro,{className:"mr-1",children:[N.label,jsxRuntime.jsx("button",{type:"button",className:"ml-1 rounded-full outline-none ring-offset-background focus:ring-2 focus:ring-ring focus:ring-offset-2",onKeyDown:S=>{S.key==="Enter"&&(S.preventDefault(),S.stopPropagation(),y(N.value));},onMouseDown:S=>{S.preventDefault(),S.stopPropagation();},onClick:S=>{S.preventDefault(),S.stopPropagation(),y(N.value);},children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3 text-muted-foreground hover:text-foreground"})})]},N.value))}),jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),jsxRuntime.jsx(xe,{className:"w-[--radix-popover-trigger-width] p-0",align:"start",children:jsxRuntime.jsxs(cmdk.Command,{className:"overflow-hidden rounded-md",children:[jsxRuntime.jsxs("div",{className:"flex items-center border-b px-3",children:[jsxRuntime.jsx(cmdk.Command.Input,{value:h,onValueChange:R,placeholder:i,className:"flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50"}),b.length>0&&jsxRuntime.jsx("button",{type:"button",onClick:C,className:"ml-2 text-xs text-muted-foreground hover:text-foreground",children:"Clear"})]}),jsxRuntime.jsxs(cmdk.Command.List,{className:"max-h-[200px] overflow-y-auto p-1",children:[T.length===0&&jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:s}),T.map(N=>{let S=b.includes(N.value),k=N.disabled||!S&&l!==void 0&&b.length>=l;return jsxRuntime.jsxs(cmdk.Command.Item,{value:N.value,disabled:k,onSelect:()=>P(N.value),className:o("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("div",{className:o("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",S?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})}),N.label]},N.value)})]})]})})]})});Im.displayName="MultiSelect";var Em=K__namespace.forwardRef(({options:e,value:t,defaultValue:a="",onValueChange:r,placeholder:n="Select...",searchPlaceholder:i="Search...",emptyText:s="No results found.",disabled:l=false,clearable:d=false,className:m},u)=>{let[c,f]=K__namespace.useState(false),[p,h]=K__namespace.useState(""),[R,g]=K__namespace.useState(a),x=t!==void 0,w=x?t:R,b=C=>{x||g(C),r?.(C);},v=C=>{b(d&&w===C?"":C),f(false),h("");},P=e.find(C=>C.value===w),y=e.filter(C=>C.label.toLowerCase().includes(p.toLowerCase()));return jsxRuntime.jsxs(Ne,{open:c,onOpenChange:f,children:[jsxRuntime.jsx(Se,{asChild:true,children:jsxRuntime.jsxs(G,{ref:u,variant:"bordered",role:"combobox","aria-expanded":c,disabled:l,className:o("w-full justify-between font-normal",!w&&"text-muted-foreground",m),children:[P?P.label:n,jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),jsxRuntime.jsx(xe,{className:"w-[--radix-popover-trigger-width] p-0",align:"start",children:jsxRuntime.jsxs(cmdk.Command,{className:"overflow-hidden rounded-md",children:[jsxRuntime.jsx("div",{className:"flex items-center border-b px-3",children:jsxRuntime.jsx(cmdk.Command.Input,{value:p,onValueChange:h,placeholder:i,className:"flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50"})}),jsxRuntime.jsxs(cmdk.Command.List,{className:"max-h-[200px] overflow-y-auto p-1",children:[y.length===0&&jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:s}),y.map(C=>jsxRuntime.jsxs(cmdk.Command.Item,{value:C.value,disabled:C.disabled,onSelect:()=>v(C.value),className:o("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:o("mr-2 h-4 w-4",w===C.value?"opacity-100":"opacity-0")}),C.label]},C.value))]})]})})]})});Em.displayName="Combobox";var Am=K__namespace.forwardRef(({value:e,defaultValue:t,onValueChange:a,placeholder:r="Pick a date",dateFormat:n="PPP",disabled:i=false,minDate:s,maxDate:l,className:d},m)=>{let[u,c]=K__namespace.useState(false),[f,p]=K__namespace.useState(t),h=e!==void 0,R=h?e:f,g=x=>{h||p(x),a?.(x),c(false);};return jsxRuntime.jsxs(Ne,{open:u,onOpenChange:c,children:[jsxRuntime.jsx(Se,{asChild:true,children:jsxRuntime.jsxs(G,{ref:m,variant:"bordered",disabled:i,className:o("w-full justify-start text-left font-normal",!R&&"text-muted-foreground",d),children:[jsxRuntime.jsx(lucideReact.Calendar,{className:"mr-2 h-4 w-4"}),R?dateFns.format(R,n):r]})}),jsxRuntime.jsx(xe,{className:"w-auto p-0",align:"start",children:jsxRuntime.jsx(Or,{mode:"single",selected:R,onSelect:g,disabled:x=>!!(s&&x<s||l&&x>l),initialFocus:true})})]})});Am.displayName="DatePicker";var Om=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"}}),Gm=K__namespace.forwardRef(({className:e,items:t,max:a=5,size:r,showTooltips:n=false,...i},s)=>{let l=t.slice(0,a),d=t.length-a,m=(c,f)=>{let p=jsxRuntime.jsxs(tr,{className:o(zm({size:r})),children:[c.src&&jsxRuntime.jsx(Er,{src:c.src,alt:c.alt||""}),jsxRuntime.jsx(ar,{className:"text-xs",children:c.fallback||c.alt?.charAt(0)?.toUpperCase()||"?"})]},f);return n&&c.alt?jsxRuntime.jsxs(or,{children:[jsxRuntime.jsx(nr,{asChild:true,children:p}),jsxRuntime.jsx(Ma,{className:"bg-zinc-100 text-zinc-900 dark:bg-zinc-900 dark:text-zinc-100",children:c.alt})]},f):p},u=jsxRuntime.jsxs("div",{ref:s,className:o(Om({size:r,className:e})),...i,children:[l.map((c,f)=>m(c,f)),d>0&&jsxRuntime.jsx(tr,{className:o(zm({size:r})),children:jsxRuntime.jsxs(ar,{className:"bg-muted text-muted-foreground",children:["+",d]})})]});return n?jsxRuntime.jsx(rr,{delayDuration:300,children:u}):u});Gm.displayName="AvatarGroup";var Wm=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"}}),$m=K__namespace.forwardRef(({className:e,value:t,defaultValue:a=0,onValueChange:r,max:n=5,size:i,icon:s="star",allowHalf:l=false,readOnly:d=false,disabled:m=false,filledColor:u,emptyColor:c,...f},p)=>{let[h,R]=K__namespace.useState(a),[g,x]=K__namespace.useState(null),w=t!==void 0,b=w?t:h,v=g!==null?g:b,P=L=>{d||m||(w||R(L),r?.(L));},y=(L,E=false)=>{let V=l&&E?L+.5:L+1;P(V);},C=(L,E)=>{if(d||m)return;let V=L.currentTarget.getBoundingClientRect(),D=l&&L.clientX<V.left+V.width/2;x(D?E+.5:E+1);},M=()=>{x(null);},T=s==="heart"?lucideReact.Heart:lucideReact.Star,N=L=>v>=L+1?"full":v>=L+.5?"half":"empty",S=u?{color:u,fill:u}:{},k=c?{color:c}:{};return jsxRuntime.jsx("div",{ref:p,className:o(Wm({size:i,className:e}),m&&"opacity-50 cursor-not-allowed"),onMouseLeave:M,role:"radiogroup","aria-label":"Rating",...f,children:Array.from({length:n},(L,E)=>{let V=N(E);return jsxRuntime.jsxs("button",{type:"button",className:o("relative focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 rounded-sm",!d&&!m&&"cursor-pointer hover:scale-110 transition-transform"),onClick:D=>{let I=D.currentTarget.getBoundingClientRect(),z=l&&D.clientX<I.left+I.width/2;y(E,z);},onMouseMove:D=>C(D,E),disabled:m||d,"aria-label":`Rate ${E+1} out of ${n}`,role:"radio","aria-checked":b===E+1,children:[jsxRuntime.jsx(T,{className:o("text-muted-foreground/30",V!=="empty"&&"absolute inset-0"),style:V==="empty"?k:void 0}),V!=="empty"&&jsxRuntime.jsx(T,{className:o("text-yellow-500 fill-yellow-500",s==="heart"&&"text-red-500 fill-red-500",V==="half"&&"clip-path-half"),style:{...S,clipPath:V==="half"?"inset(0 50% 0 0)":void 0}})]},E)})})});$m.displayName="Rating";var fR="16rem",gR="18rem",bR="3rem",vR="b",Ls=K__namespace.createContext(null);function Gn(){let e=K__namespace.useContext(Ls);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function Vs(){return K__namespace.useContext(Ls)}var Km=K__namespace.forwardRef(({defaultOpen:e=true,open:t,onOpenChange:a,className:r,style:n,children:i,...s},l)=>{let[d,m]=K__namespace.useState(false),[u,c]=K__namespace.useState(false),[f,p]=K__namespace.useState(e),h=t??f,R=K__namespace.useCallback(b=>{let v=typeof b=="function"?b(h):b;a?a(v):p(v);},[a,h]);K__namespace.useEffect(()=>{let b=()=>{m(window.innerWidth<768);};return b(),window.addEventListener("resize",b),()=>window.removeEventListener("resize",b)},[]);let g=K__namespace.useCallback(()=>d?c(b=>!b):R(b=>!b),[d,R,c]);K__namespace.useEffect(()=>{let b=v=>{v.key===vR&&(v.metaKey||v.ctrlKey)&&(v.preventDefault(),g());};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[g]);let x=h?"expanded":"collapsed",w=K__namespace.useMemo(()=>({state:x,open:h,setOpen:R,isMobile:d,openMobile:u,setOpenMobile:c,toggleSidebar:g}),[x,h,R,d,u,c,g]);return jsxRuntime.jsx(Ls.Provider,{value:w,children:jsxRuntime.jsx(rr,{delayDuration:0,children:jsxRuntime.jsx("div",{ref:l,style:{"--sidebar-width":fR,"--sidebar-width-icon":bR,...n},className:o("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),...s,children:i})})})});Km.displayName="SidebarProvider";var Um=K__namespace.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",embedded:r=false,resizable:n=false,minWidth:i=200,maxWidth:s=480,defaultWidth:l=256,onWidthChange:d,className:m,children:u,...c},f)=>{let[p,h]=K__namespace.useState(l),[R,g]=K__namespace.useState(false),x=K__namespace.useRef(null),w=K__namespace.useCallback(C=>{C.preventDefault(),g(true);},[]);if(K__namespace.useEffect(()=>{if(!R)return;let C=T=>{if(!x.current)return;let N=x.current.getBoundingClientRect(),S;e==="left"?S=T.clientX-N.left:S=N.right-T.clientX,S=Math.max(i,Math.min(s,S)),h(S),d?.(S);},M=()=>{g(false);};return document.addEventListener("mousemove",C),document.addEventListener("mouseup",M),()=>{document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",M);}},[R,e,i,s,d]),a==="none"){if(n){let C={width:`${p}px`,minWidth:`${i}px`,maxWidth:`${s}px`};return jsxRuntime.jsxs("div",{ref:M=>{typeof f=="function"?f(M):f&&(f.current=M),x.current=M;},className:o("relative text-sidebar-foreground h-full min-h-0",R&&"select-none"),"data-sidebar":"sidebar-wrapper","data-resizing":R,children:[jsxRuntime.jsx("div",{className:o("flex h-full min-h-0 flex-col bg-sidebar overflow-hidden",!R&&"transition-all duration-200 ease-in-out",e==="left"&&"border-r-0",e==="right"&&"border-l-0",m),style:C,...c,children:u}),jsxRuntime.jsx("div",{onMouseDown:w,className:o("absolute top-0 bottom-0 z-20 w-1 cursor-ew-resize",e==="left"?"right-0":"left-0"),"data-sidebar":"resize-handle",children:jsxRuntime.jsx("div",{className:o("absolute top-0 bottom-0 w-px transition-colors",e==="left"?"right-0":"left-0","bg-sidebar-border")})})]})}return jsxRuntime.jsx("div",{ref:f,className:o("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",m),style:{"--sidebar-width":"16rem"},...c,children:u})}let{isMobile:b,state:v,openMobile:P,setOpenMobile:y}=Gn();if(b&&!r)return jsxRuntime.jsx(Do,{open:P,onOpenChange:y,children:jsxRuntime.jsx(Hr,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":gR},side:e,children:jsxRuntime.jsx("div",{className:"flex h-full w-full flex-col",children:u})})});if(r){let C=v==="collapsed",M=a==="offcanvas",T=a==="icon",N=n&&!C&&!T?{width:`${p}px`,minWidth:`${i}px`,maxWidth:`${s}px`}:void 0;return jsxRuntime.jsxs("div",{ref:S=>{typeof f=="function"?f(S):f&&(f.current=S),x.current=S;},className:o("group peer text-sidebar-foreground relative",R&&"select-none"),"data-state":v,"data-collapsible":C?a:"","data-variant":t,"data-side":e,"data-embedded":"true","data-resizing":R,children:[jsxRuntime.jsx("div",{className:o("flex h-full flex-col overflow-hidden",!R&&"transition-[width,opacity] duration-200 ease-out",!n&&(M?C?"w-0 opacity-0":"w-[--sidebar-width] opacity-100":T&&C?"w-[--sidebar-width-icon]":"w-[--sidebar-width]"),n&&M&&C&&"w-0 opacity-0",n&&T&&C&&"w-[--sidebar-width-icon]",m),style:N,...c,children:jsxRuntime.jsx("div",{"data-sidebar":"sidebar",className:o("flex h-full w-full flex-col bg-sidebar transition-opacity duration-200",t==="floating"&&"overflow-hidden rounded-lg border border-sidebar-border shadow-sm",t==="inset"&&"overflow-hidden rounded-lg border border-sidebar-border",t==="sidebar"&&e==="left"&&!n&&"border-r",t==="sidebar"&&e==="right"&&!n&&"border-l"),children:u})}),n&&!C&&jsxRuntime.jsx("div",{onMouseDown:w,className:o("absolute top-0 bottom-0 z-20 w-1 cursor-ew-resize",e==="left"?"right-0":"left-0"),"data-sidebar":"resize-handle",children:jsxRuntime.jsx("div",{className:o("absolute top-0 bottom-0 w-px transition-colors",e==="left"?"right-0":"left-0","bg-sidebar-border")})})]})}return jsxRuntime.jsxs("div",{ref:f,className:"group peer hidden md:block text-sidebar-foreground","data-state":v,"data-collapsible":v==="collapsed"?a:"","data-variant":t,"data-side":e,children:[jsxRuntime.jsx("div",{className:o("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),jsxRuntime.jsx("div",{className:o("duration-200 fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",m),...c,children:jsxRuntime.jsx("div",{"data-sidebar":"sidebar",className:o("flex h-full w-full flex-col bg-sidebar",t==="floating"&&"overflow-hidden rounded-lg border border-sidebar-border shadow-sm",t==="inset"&&"overflow-hidden rounded-lg border border-sidebar-border"),children:u})})]})});Um.displayName="Sidebar";var Ym=K__namespace.forwardRef(({className:e,onClick:t,...a},r)=>{let{toggleSidebar:n}=Gn();return jsxRuntime.jsxs("button",{ref:r,type:"button","data-sidebar":"trigger",className:o("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",e),onClick:i=>{t?.(i),n();},...a,children:[jsxRuntime.jsx(lucideReact.PanelLeft,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});Ym.displayName="SidebarTrigger";var jm=K__namespace.forwardRef(({className:e,onClick:t,showLabel:a=true,...r},n)=>{let i=Vs();if(!i)return null;let{toggleSidebar:s,state:l}=i,d=l==="collapsed";return jsxRuntime.jsxs("button",{ref:n,type:"button","data-sidebar":"toggle","data-state":l,className:o("flex items-center gap-2 w-full px-2 py-2 rounded-md text-sm text-sidebar-foreground/70","hover:bg-sidebar-accent hover:text-sidebar-accent-foreground","transition-colors cursor-pointer","group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:px-0",e),onClick:m=>{t?.(m),s();},...r,children:[d?jsxRuntime.jsx(lucideReact.PanelLeftOpen,{className:"h-4 w-4 shrink-0"}):jsxRuntime.jsx(lucideReact.PanelLeftClose,{className:"h-4 w-4 shrink-0"}),a&&jsxRuntime.jsx("span",{className:"group-data-[collapsible=icon]:hidden truncate",children:d?"Expand":"Collapse"})]})});jm.displayName="SidebarToggle";var Xm=K__namespace.forwardRef(({className:e,onClick:t,expandedLabel:a="Collapse",collapsedLabel:r="Expand",...n},i)=>{let s=Vs();if(!s)return null;let{toggleSidebar:l,state:d}=s,m=d==="collapsed";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("button",{ref:i,type:"button","data-sidebar":"toggle","data-state":d,className:o("flex items-center gap-2 w-full px-2 py-2 rounded-md text-sm text-sidebar-foreground/70","hover:bg-sidebar-accent hover:text-sidebar-accent-foreground","transition-colors cursor-pointer","group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:px-0","group-data-[collapsible=offcanvas]:group-data-[state=collapsed]:hidden",e),onClick:u=>{t?.(u),l();},...n,children:[m?jsxRuntime.jsx(lucideReact.PanelLeftOpen,{className:"h-4 w-4 shrink-0"}):jsxRuntime.jsx(lucideReact.PanelLeftClose,{className:"h-4 w-4 shrink-0"}),jsxRuntime.jsx("span",{className:"group-data-[collapsible=icon]:hidden truncate",children:m?r:a})]}),jsxRuntime.jsxs("button",{type:"button","data-sidebar":"floating-toggle","data-state":d,className:o("fixed left-3 bottom-4 z-50 flex items-center justify-center h-10 w-10 rounded-lg","bg-sidebar border border-sidebar-border shadow-md","text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground","transition-all duration-200 cursor-pointer","opacity-0 pointer-events-none scale-90","group-data-[collapsible=offcanvas]:group-data-[state=collapsed]:opacity-100","group-data-[collapsible=offcanvas]:group-data-[state=collapsed]:pointer-events-auto","group-data-[collapsible=offcanvas]:group-data-[state=collapsed]:scale-100"),onClick:u=>{t?.(u),l();},children:[jsxRuntime.jsx(lucideReact.PanelLeftOpen,{className:"h-5 w-5"}),jsxRuntime.jsx("span",{className:"sr-only",children:r})]})]})});Xm.displayName="SidebarPersistentToggle";var qm=K__namespace.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:r}=Gn();return jsxRuntime.jsx("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:o("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});qm.displayName="SidebarRail";var Zm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("main",{ref:a,className:o("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}));Zm.displayName="SidebarInset";var Jm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"header",className:o("flex flex-col gap-2 p-2",e),...t}));Jm.displayName="SidebarHeader";var Qm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"footer",className:o("flex flex-col gap-2 p-2",e),...t}));Qm.displayName="SidebarFooter";var eu=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"separator",className:o("mx-2 h-px w-auto bg-sidebar-border",e),...t}));eu.displayName="SidebarSeparator";var tu=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"content",className:o("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));tu.displayName="SidebarContent";var au=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"group",className:o("relative flex w-full min-w-0 flex-col p-2",e),...t}));au.displayName="SidebarGroup";var ru=K__namespace.forwardRef(({className:e,asChild:t=false,...a},r)=>jsxRuntime.jsx(t?reactSlot.Slot:"div",{ref:r,"data-sidebar":"group-label",className:o("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...a}));ru.displayName="SidebarGroupLabel";var ou=K__namespace.forwardRef(({className:e,asChild:t=false,...a},r)=>jsxRuntime.jsx(t?reactSlot.Slot:"button",{ref:r,"data-sidebar":"group-action",className:o("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...a}));ou.displayName="SidebarGroupAction";var nu=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"group-content",className:o("w-full text-sm",e),...t}));nu.displayName="SidebarGroupContent";var iu=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("ul",{ref:a,"data-sidebar":"menu",className:o("flex w-full min-w-0 flex-col gap-1",e),...t}));iu.displayName="SidebarMenu";var su=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("li",{ref:a,"data-sidebar":"menu-item",className:o("group/menu-item relative",e),...t}));su.displayName="SidebarMenuItem";var lu=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-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{solid:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]",ghost:"hover:bg-sidebar-accent/50 hover:text-sidebar-accent-foreground",soft:"hover:bg-primary/10 hover:text-primary",surface:"bg-sidebar-accent/30 hover:bg-sidebar-accent hover:text-sidebar-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:"solid",size:"md"}}),du=K__namespace.forwardRef(({asChild:e=false,isActive:t=false,variant:a="solid",size:r="md",tooltip:n,className:i,...s},l)=>{let d=e?reactSlot.Slot:"button",m=Vs(),u=m?.isMobile??false,c=m?.state??"expanded",f=jsxRuntime.jsx(d,{ref:l,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:o(lu({variant:a,size:r}),i),...s});return n?(typeof n=="string"&&(n={children:n}),jsxRuntime.jsxs(or,{children:[jsxRuntime.jsx(nr,{asChild:true,children:f}),jsxRuntime.jsx(Ma,{side:"right",align:"center",hidden:c!=="collapsed"||u,...n})]})):f});du.displayName="SidebarMenuButton";var cu=K__namespace.forwardRef(({className:e,asChild:t=false,showOnHover:a=false,...r},n)=>jsxRuntime.jsx(t?reactSlot.Slot:"button",{ref:n,"data-sidebar":"menu-action",className:o("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r}));cu.displayName="SidebarMenuAction";var mu=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"menu-badge",className:o("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));mu.displayName="SidebarMenuBadge";var uu=K__namespace.forwardRef(({className:e,showIcon:t=false,...a},r)=>{let n=K__namespace.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return jsxRuntime.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:o("rounded-md h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&jsxRuntime.jsx("div",{className:"size-4 rounded-md bg-sidebar-accent animate-pulse"}),jsxRuntime.jsx("div",{className:"h-4 flex-1 max-w-[--skeleton-width] bg-sidebar-accent animate-pulse rounded-md",style:{"--skeleton-width":n}})]})});uu.displayName="SidebarMenuSkeleton";var pu=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("ul",{ref:a,"data-sidebar":"menu-sub",className:o("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));pu.displayName="SidebarMenuSub";var fu=K__namespace.forwardRef(({...e},t)=>jsxRuntime.jsx("li",{ref:t,...e}));fu.displayName="SidebarMenuSubItem";var gu=K__namespace.forwardRef(({asChild:e=false,size:t="md",isActive:a,className:r,...n},i)=>jsxRuntime.jsx(e?reactSlot.Slot:"a",{ref:i,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:o("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...n}));gu.displayName="SidebarMenuSubButton";var hu=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}}),yR=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"}}),xu=K__namespace.forwardRef(({className:e,variant:t,color:a,size:r,radius:n,clickable:i,startContent:s,endContent:l,closable:d,onClose:m,disabled:u,avatar:c,children:f,onClick:p,...h},R)=>{let g=i||!!p,x=w=>{w.stopPropagation(),m?.();};return jsxRuntime.jsxs("div",{ref:R,role:g?"button":void 0,tabIndex:g&&!u?0:void 0,"aria-disabled":u,onClick:u?void 0:p,onKeyDown:g&&!u?w=>{(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),p?.(w));}:void 0,className:o(hu({variant:t,color:a,size:r,radius:n,clickable:g}),u&&"opacity-50 cursor-not-allowed",e),...h,children:[c&&jsxRuntime.jsx("span",{className:"-ml-1 [&>*]:size-5 [&>*]:rounded-full",children:c}),s&&jsxRuntime.jsx("span",{className:"shrink-0",children:s}),jsxRuntime.jsx("span",{className:"truncate",children:f}),l&&jsxRuntime.jsx("span",{className:"shrink-0",children:l}),d&&jsxRuntime.jsx("button",{type:"button","aria-label":"Remove",onClick:x,disabled:u,className:o(yR({size:r})),children:jsxRuntime.jsx(lucideReact.X,{})})]})});xu.displayName="Chip";var yu=K.createContext({direction:"horizontal"}),MR=({className:e,direction:t="horizontal",children:a,...r})=>jsxRuntime.jsx(yu.Provider,{value:{direction:t},children:jsxRuntime.jsx(reactResizablePanels.Group,{orientation:t,className:o("flex h-full w-full data-[orientation=vertical]:flex-col",e),...r,children:a})}),kR=reactResizablePanels.Panel,DR=({withHandle:e,className:t,...a})=>{let{direction:r}=K.useContext(yu),n=r==="vertical";return jsxRuntime.jsx(reactResizablePanels.Separator,{className:o("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),...a,children:e&&jsxRuntime.jsx("div",{className:o("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 Nu=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"}}),Pu=K__namespace.forwardRef(({className:e,size:t,count:a=3,...r},n)=>jsxRuntime.jsx("span",{ref:n,role:"status","aria-label":"Loading",className:o(Nu({size:t,className:e})),...r,children:Array.from({length:a}).map((i,s)=>jsxRuntime.jsx("span",{className:"rounded-full bg-current animate-dots-bounce",style:{animationDelay:`${s*.16}s`}},s))}));Pu.displayName="Dots";var Su=classVarianceAuthority.cva("",{variants:{size:{sm:"h-4 w-4",md:"h-8 w-8",lg:"h-12 w-12",xl:"h-16 w-16"}},defaultVariants:{size:"md"}}),Tu=K__namespace.forwardRef(({className:e,size:t,value:a,strokeWidth:r=4,showValue:n=false,label:i,...s},l)=>{let d=a===void 0,m=50-r/2,u=2*Math.PI*m,c=d?0:u-Math.min(100,Math.max(0,a))/100*u;return jsxRuntime.jsxs("svg",{ref:l,viewBox:"0 0 100 100",className:o(Su({size:t,className:e}),d&&"animate-spin"),role:"progressbar","aria-valuenow":d?void 0:a,"aria-valuemin":0,"aria-valuemax":100,...s,children:[jsxRuntime.jsx("circle",{cx:"50",cy:"50",r:m,fill:"none",stroke:"currentColor",strokeWidth:r,className:"text-muted opacity-20"}),jsxRuntime.jsx("circle",{cx:"50",cy:"50",r:m,fill:"none",stroke:"currentColor",strokeWidth:r,strokeLinecap:"round",strokeDasharray:u,strokeDashoffset:d?u*.75:c,className:"text-primary transition-[stroke-dashoffset] duration-300 ease-in-out",style:{transformOrigin:"center",transform:"rotate(-90deg)"}}),n&&!d&&jsxRuntime.jsx("text",{x:"50",y:"50",textAnchor:"middle",dominantBaseline:"central",className:"fill-current text-[0.65rem] font-medium",children:i??`${Math.round(a)}%`})]})});Tu.displayName="CircularProgress";var Mu=K__namespace.createContext(null),AR=()=>{let e=K__namespace.useContext(Mu);if(!e)throw new Error("OTP components must be used within InputOTP");return e},ku=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"}}),Du=K__namespace.forwardRef(({className:e,containerClassName:t,maxLength:a,value:r,defaultValue:n="",onChange:i,onComplete:s,pattern:l,disabled:d=false,size:m,children:u,...c},f)=>{let[p,h]=K__namespace.useState(n),[R,g]=K__namespace.useState(0),[x,w]=K__namespace.useState(false),b=K__namespace.useRef(null),v=r!==void 0?r:p;K__namespace.useImperativeHandle(f,()=>b.current),K__namespace.useEffect(()=>{g(Math.min(v.length,a-1));},[v,a]),K__namespace.useEffect(()=>{v.length===a&&s&&s(v);},[v,a,s]);let P=S=>{let k=S.target.value;if(l&&k){let L=new RegExp(l.replace("^","").replace("$","").replace("+",""));k=k.split("").filter(E=>L.test(E)).join("");}k=k.slice(0,a),r===void 0&&h(k),i?.(k);},y=S=>{S.key==="ArrowLeft"?g(k=>Math.max(0,k-1)):S.key==="ArrowRight"&&g(k=>Math.min(v.length,a-1,k+1));},C=()=>{b.current?.focus();},M=()=>{w(true),g(Math.min(v.length,a-1));},T=()=>{w(false);},N={value:v,activeIndex:x?R:-1,maxLength:a,disabled:d};return jsxRuntime.jsx(Mu.Provider,{value:N,children:jsxRuntime.jsxs("div",{className:o(ku({size:m}),t),onClick:C,"data-otp-container":true,children:[jsxRuntime.jsx("input",{ref:b,type:"text",inputMode:"numeric",autoComplete:"one-time-code",value:v,onChange:P,onKeyDown:y,onFocus:M,onBlur:T,disabled:d,maxLength:a,className:o("absolute opacity-0 pointer-events-none w-0 h-0",e),...c}),u]})})});Du.displayName="InputOTP";var Lu=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex items-center",e),...t}));Lu.displayName="InputOTPGroup";var Vu=K__namespace.forwardRef(({index:e,className:t,...a},r)=>{let{value:n,activeIndex:i,disabled:s}=AR(),l=n[e]||"",d=i===e,m=d&&n.length===e;return jsxRuntime.jsxs("div",{ref:r,"data-otp-slot":true,"data-active":d,"data-filled":!!l,className:o("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",d&&"z-10 border-foreground",s&&"cursor-not-allowed opacity-50",t),...a,children:[l,m&&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"})})]})});Vu.displayName="InputOTPSlot";var Iu=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,role:"separator",className:o("text-muted-foreground",e),...t,children:jsxRuntime.jsx(lucideReact.Minus,{className:"h-4 w-4"})}));Iu.displayName="InputOTPSeparator";var Au=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"}}),zu=K__namespace.forwardRef(({className:e,variant:t,size:a,value:r=[],onChange:n,placeholder:i="Add tag...",maxTags:s,minTagLength:l=1,maxTagLength:d=50,triggerKeys:m=["Enter",",","Tab"],allowDuplicates:u=false,disabled:c,readOnly:f,renderTag:p,...h},R)=>{let[g,x]=K__namespace.useState(""),w=K__namespace.useRef(null);K__namespace.useImperativeHandle(R,()=>w.current);let b=N=>{let S=N.trim();if(S.length<l||S.length>d||s&&r.length>=s||!u&&r.some(L=>L.text.toLowerCase()===S.toLowerCase()))return;let k={id:crypto.randomUUID(),text:S};n?.([...r,k]),x("");},v=N=>{c||f||n?.(r.filter(S=>S.id!==N));},P=N=>{if(m.includes(N.key)){if(N.key==="Tab"&&!g)return;N.preventDefault(),b(g);}N.key==="Backspace"&&!g&&r.length>0&&v(r[r.length-1].id);},y=N=>{let S=N.target.value;if(S.includes(",")){S.split(",").forEach(L=>{L.trim()&&b(L);});return}x(S);},C=N=>{N.preventDefault(),N.clipboardData.getData("text").split(/[,\n\t]/).filter(Boolean).forEach(L=>{b(L);});},M=()=>{w.current?.focus();},T=s?r.length>=s:false;return jsxRuntime.jsxs("div",{className:o("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",c&&"cursor-not-allowed opacity-50",e),onClick:M,children:[r.map(N=>p?p(N,()=>v(N.id)):jsxRuntime.jsxs("span",{className:o(Au({variant:t,size:a})),children:[N.text,!c&&!f&&jsxRuntime.jsx("button",{type:"button",onClick:S=>{S.stopPropagation(),v(N.id);},className:"ml-0.5 rounded-full p-0.5 hover:bg-black/10 dark:hover:bg-white/10","aria-label":`Remove ${N.text}`,children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3"})})]},N.id)),!T&&!f&&jsxRuntime.jsx("input",{ref:w,type:"text",value:g,onChange:y,onKeyDown:P,onPaste:C,placeholder:r.length===0?i:"",disabled:c,className:o("flex-1 bg-transparent outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed","min-w-[80px]"),...h})]})});zu.displayName="TagInput";var Fu=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"}}),Ou=K__namespace.forwardRef(({className:e,size:t,icon:a,title:r,description:n,action:i,children:s,...l},d)=>jsxRuntime.jsxs("div",{ref:d,className:o(Fu({size:t,className:e})),...l,children:[a&&jsxRuntime.jsx("div",{className:"text-muted-foreground [&>svg]:h-10 [&>svg]:w-10",children:a}),r&&jsxRuntime.jsx("h3",{className:"text-lg font-semibold text-foreground",children:r}),n&&jsxRuntime.jsx("p",{className:"max-w-sm text-sm text-muted-foreground",children:n}),i&&jsxRuntime.jsx("div",{className:"mt-2",children:i}),s]}));Ou.displayName="EmptyState";var Wu=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"}}),$u=K__namespace.forwardRef(({className:e,variant:t,label:a,value:r,icon:n,trend:i,trendValue:s,description:l,...d},m)=>{let u=i==="up"?lucideReact.TrendingUp:i==="down"?lucideReact.TrendingDown:lucideReact.Minus,c=i==="up"?"text-green-500":i==="down"?"text-red-500":"text-muted-foreground";return jsxRuntime.jsxs("div",{ref:m,className:o(Wu({variant:t,className:e})),...d,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:a}),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:r}),i&&s&&jsxRuntime.jsxs("span",{className:o("flex items-center gap-0.5 text-sm",c),children:[jsxRuntime.jsx(u,{className:"h-3 w-3"}),s]})]}),l&&jsxRuntime.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:l})]})});$u.displayName="StatCard";var Ku=classVarianceAuthority.cva("flex flex-col",{variants:{variant:{default:"",bordered:"divide-y divide-border rounded-lg border",striped:"[&>*:nth-child(odd)]:bg-muted/50"},size:{sm:"gap-1 [&>*]:py-2 [&>*]:px-3",md:"gap-2 [&>*]:py-3 [&>*]:px-4",lg:"gap-3 [&>*]:py-4 [&>*]:px-5"}},defaultVariants:{variant:"default",size:"md"}}),Uu=K__namespace.forwardRef(({className:e,variant:t,size:a,...r},n)=>jsxRuntime.jsx("div",{ref:n,role:"list",className:o(Ku({variant:t,size:a,className:e})),...r}));Uu.displayName="List";var Yu=classVarianceAuthority.cva("flex items-center gap-3 transition-colors",{variants:{interactive:{true:"cursor-pointer hover:bg-muted/50",false:""}},defaultVariants:{interactive:false}}),ju=K__namespace.forwardRef(({className:e,interactive:t,leading:a,trailing:r,children:n,...i},s)=>jsxRuntime.jsxs("div",{ref:s,role:"listitem",className:o(Yu({interactive:t,className:e})),...i,children:[a&&jsxRuntime.jsx("div",{className:"flex-shrink-0 text-muted-foreground",children:a}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:n}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:r})]}));ju.displayName="ListItem";var Xu=K__namespace.forwardRef(({className:e,primary:t,secondary:a,children:r,...n},i)=>jsxRuntime.jsxs("div",{ref:i,className:o("min-w-0",e),...n,children:[t&&jsxRuntime.jsx("p",{className:"text-sm font-medium leading-none truncate",children:t}),a&&jsxRuntime.jsx("p",{className:"mt-1 text-sm text-muted-foreground truncate",children:a}),r]}));Xu.displayName="ListItemText";var Ju=classVarianceAuthority.cva("flex flex-col",{variants:{position:{left:"",right:"",alternate:""}},defaultVariants:{position:"left"}}),Qu=K__namespace.forwardRef(({className:e,position:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,"data-position":t,className:o(Ju({position:t,className:e})),...a}));Qu.displayName="Timeline";var ep=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"}}),tp=K__namespace.forwardRef(({className:e,variant:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,className:o(ep({variant:t,className:e})),...a}));tp.displayName="TimelineItem";var ap=K__namespace.forwardRef(({className:e,dot:t,showConnector:a=true,...r},n)=>jsxRuntime.jsxs("div",{ref:n,className:o("flex flex-col items-center",e),...r,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}),a&&jsxRuntime.jsx("div",{className:"w-0.5 flex-1 bg-border"})]}));ap.displayName="TimelineSeparator";var rp=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex-1 pt-0.5",e),...t}));rp.displayName="TimelineContent";var op=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex-1 text-sm text-muted-foreground pt-0.5",e),...t}));op.displayName="TimelineOpposite";var ip=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}}),sp=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 data-[state=on]:bg-background data-[state=on]:text-foreground data-[state=on]:shadow-sm",{variants:{size:{sm:"h-6 text-xs px-2.5",md:"h-8 text-sm px-3",lg:"h-10 text-base px-4"}},defaultVariants:{size:"md"}}),lp=K__namespace.createContext({}),dp=K__namespace.forwardRef(({className:e,size:t,fullWidth:a,children:r,...n},i)=>jsxRuntime.jsx(Ar__namespace.Root,{ref:i,type:"single",rovingFocus:false,className:o(ip({size:t,fullWidth:a,className:e})),...n,children:jsxRuntime.jsx(lp.Provider,{value:{size:t??"md"},children:r})}));dp.displayName="SegmentedControl";var cp=K__namespace.forwardRef(({className:e,children:t,...a},r)=>{let{size:n}=K__namespace.useContext(lp);return jsxRuntime.jsx(Ar__namespace.Item,{ref:r,className:o(sp({size:n}),"flex-1",e),...a,children:t})});cp.displayName="SegmentedControlItem";var mp=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"}}),up=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},Un=e=>{if(e===0)return "0 Bytes";let t=1024,a=["Bytes","KB","MB","GB"],r=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/Math.pow(t,r)).toFixed(2))+" "+a[r]},pp=(e,t,a)=>{let r=[];return t&&e.size>t&&r.push({code:"file-too-large",message:`File is larger than ${Un(t)}`}),a&&a.length>0&&(a.some(i=>{if(i.startsWith("."))return e.name.toLowerCase().endsWith(i.toLowerCase());if(i.endsWith("/*")){let s=i.slice(0,-2);return e.type.startsWith(s)}return e.type===i})||r.push({code:"file-invalid-type",message:`File type not accepted. Accepted: ${a.join(", ")}`})),r},fp=K__namespace.forwardRef(({className:e,variant:t,size:a,onFilesChange:r,onFilesRejected:n,onFileRemove:i,files:s=[],showFileList:l=true,children:d,maxSize:m=10*1024*1024,accept:u,multiple:c=true,disabled:f,...p},h)=>{let[R,g]=K__namespace.useState(false),[x,w]=K__namespace.useState(false),[b,v]=K__namespace.useState([]),P=K__namespace.useRef(null),y=K__namespace.useCallback(D=>{if(!D||D.length===0)return;let I=Array.from(D),z=[],W=[];(c?I:[I[0]]).forEach(j=>{let $=pp(j,m,u);$.length>0?W.push({file:j,errors:$}):z.push(j);}),v(W),z.length>0&&r?.(z),W.length>0&&n?.(W);},[m,u,c,r,n]),C=K__namespace.useCallback(D=>{if(D.preventDefault(),D.stopPropagation(),!f&&(g(true),D.dataTransfer.items)){let z=Array.from(D.dataTransfer.items).some(W=>{if(W.kind!=="file")return true;if(u&&u.length>0){let H=W.type;return !u.some(j=>j.endsWith("/*")?H.startsWith(j.slice(0,-2)):H===j)}return false});w(z);}},[f,u]),M=K__namespace.useCallback(D=>{D.preventDefault(),D.stopPropagation(),!f&&(D.dataTransfer.dropEffect="copy");},[f]),T=K__namespace.useCallback(D=>{D.preventDefault(),D.stopPropagation();let I=D.currentTarget.getBoundingClientRect(),z=D.clientX,W=D.clientY;(z<I.left||z>I.right||W<I.top||W>I.bottom)&&(g(false),w(false));},[]),N=K__namespace.useCallback(D=>{D.preventDefault(),D.stopPropagation(),g(false),w(false),!f&&y(D.dataTransfer.files);},[f,y]),S=K__namespace.useCallback(()=>{f||P.current?.click();},[f]),k=K__namespace.useCallback(D=>{y(D.target.files),D.target.value="";},[y]),L=K__namespace.useCallback(D=>{f||(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),P.current?.click());},[f]),E=x?"error":R?"active":t,V=u?.join(",");return jsxRuntime.jsxs("div",{ref:h,className:o("space-y-4",e),...p,children:[jsxRuntime.jsxs("div",{role:"button",tabIndex:f?-1:0,onDragEnter:C,onDragOver:M,onDragLeave:T,onDrop:N,onClick:S,onKeyDown:L,className:o(mp({variant:E,size:a}),f&&"opacity-50 cursor-not-allowed",!f&&"cursor-pointer focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2"),"aria-disabled":f,children:[jsxRuntime.jsx("input",{ref:P,type:"file",accept:V,multiple:c,disabled:f,onChange:k,className:"sr-only",tabIndex:-1}),d||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:R?"Drop files here":"Drop files or click to upload"}),jsxRuntime.jsxs("p",{className:"text-xs text-muted-foreground",children:[m&&`Max ${Un(m)}`,u&&u.length>0&&` \u2022 ${u.join(", ")}`]})]})]})]}),b.length>0&&jsxRuntime.jsx("div",{className:"rounded-md bg-danger/10 p-3 text-sm text-danger",children:b.map(({file:D,errors:I})=>jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("span",{className:"font-medium",children:D.name}),":"," ",I.map(z=>z.message).join(", ")]},D.name))}),l&&s.length>0&&jsxRuntime.jsx("div",{className:"space-y-2",children:s.map(D=>{let I=up(D.file);return jsxRuntime.jsxs("div",{className:o("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(I,{className:"h-5 w-5 text-muted-foreground"})}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("p",{className:"truncate text-sm font-medium",children:D.file.name}),jsxRuntime.jsxs("p",{className:"text-xs text-muted-foreground",children:[Un(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(In,{value:D.progress,className:"mt-2 h-1"})]}),jsxRuntime.jsxs(G,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0 text-muted-foreground hover:text-foreground",onClick:z=>{z.stopPropagation(),i?.(D.file);},children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Remove"})]})]},D.id)})})]})});fp.displayName="FileUpload";var vp=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}}),aw=`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")`,jr=K__namespace.forwardRef(({color:e,isSelected:t,showTransparency:a=true,onSelect:r,size:n,shape:i,interactive:s,className:l,onClick:d,disabled:m,...u},c)=>jsxRuntime.jsx("button",{ref:c,type:"button",disabled:m,onClick:h=>{d?.(h),r?.(e);},className:o(vp({size:n,shape:i,interactive:s??(!!r||!!d)}),t&&"ring-2 ring-ring ring-offset-2",l),style:{backgroundImage:a?aw:void 0,backgroundSize:a?"8px 8px":void 0},"aria-label":`Color ${e}`,"aria-pressed":t,...u,children:jsxRuntime.jsx("span",{className:"absolute inset-0 rounded-[inherit]",style:{backgroundColor:e}})}));jr.displayName="ColorSwatch";var nw=["#000000","#ffffff","#ef4444","#f97316","#eab308","#22c55e","#06b6d4","#3b82f6","#8b5cf6","#ec4899"],hp={sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10"},xp=K__namespace.forwardRef(({value:e,defaultValue:t="#3b82f6",onChange:a,disabled:r,presets:n=nw,showInput:i=true,size:s="md",className:l,variant:d="full"},m)=>{let[u,c]=K__namespace.useState(e??t),f=K__namespace.useId();K__namespace.useEffect(()=>{e!==void 0&&c(e);},[e]);let p=g=>{c(g),a?.(g);},h=g=>{c(g),a?.(g);},R=g=>{let x=g.target.value.toUpperCase();c(x),a?.(x);};return d==="simple"?jsxRuntime.jsxs("label",{className:o("relative rounded-md border border-input shadow-sm transition-colors cursor-pointer hover:border-foreground focus-within:border-foreground overflow-hidden",r&&"opacity-50 cursor-not-allowed",hp[s],l),children:[jsxRuntime.jsx("input",{type:"color",value:u,onChange:R,disabled:r,className:"absolute inset-0 h-full w-full cursor-pointer opacity-0 disabled:cursor-not-allowed",id:f}),jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundColor:u}})]}):jsxRuntime.jsxs(Ne,{children:[jsxRuntime.jsx(Se,{asChild:true,children:jsxRuntime.jsx("button",{ref:m,disabled:r,className:o("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",hp[s],l),style:{backgroundColor:u},"aria-label":`Color picker, current color: ${u}`})}),jsxRuntime.jsx(xe,{className:"w-auto p-3",align:"start",children:jsxRuntime.jsxs("div",{className:"space-y-3",children:[jsxRuntime.jsx(reactColorful.HexColorPicker,{color:u,onChange:p,className:"!w-[200px]"}),i&&jsxRuntime.jsxs("div",{className:"space-y-1.5",children:[jsxRuntime.jsx(er,{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:u}}),jsxRuntime.jsx(reactColorful.HexColorInput,{id:"color-input",color:u,onChange:p,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(er,{className:"text-xs",children:"Presets"}),jsxRuntime.jsx("div",{className:"flex flex-wrap gap-1.5",children:n.map(g=>jsxRuntime.jsx(jr,{color:g,size:"sm",isSelected:u.toLowerCase()===g.toLowerCase(),onSelect:h},g))})]})]})})]})});xp.displayName="ColorPicker";var yp=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"}}),As=e=>String(e).padStart(2,"0"),cw=e=>{let[t,a]=e.split(":").map(Number);return {hours:t||0,minutes:a||0}},mw=(e,t)=>`${As(e)}:${As(t)}`,Rp=K__namespace.forwardRef(({className:e,size:t,value:a,onChange:r,use24Hour:n=true,minuteStep:i=1,showPicker:s=true,minTime:l,maxTime:d,disabled:m,...u},c)=>{let[f,p]=K__namespace.useState(a??""),[h,R]=K__namespace.useState(false);K__namespace.useEffect(()=>{a!==void 0&&p(a);},[a]);let{hours:g,minutes:x}=cw(f||"00:00"),w=T=>{let N=T.target.value;p(N),/^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/.test(N)&&r?.(N);},b=(T,N)=>{let S=Math.max(0,Math.min(23,T)),k=Math.max(0,Math.min(59,N)),L=mw(S,k);p(L),r?.(L);},v=()=>b(g+1,x),P=()=>b(g-1,x),y=()=>b(g,x+i),C=()=>b(g,x-i),M=({value:T,onIncrement:N,onDecrement:S})=>jsxRuntime.jsxs("div",{className:"flex flex-col items-center",children:[jsxRuntime.jsx(G,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:N,disabled:m,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:As(T)}),jsxRuntime.jsx(G,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:S,disabled:m,children:jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"})})]});return jsxRuntime.jsxs("div",{className:"relative flex items-center",children:[jsxRuntime.jsx("input",{ref:c,type:"time",value:f,onChange:w,disabled:m,className:o(yp({size:t}),s&&"pr-10","[&::-webkit-calendar-picker-indicator]:hidden",e),...u}),s&&jsxRuntime.jsxs(Ne,{open:h,onOpenChange:R,children:[jsxRuntime.jsx(Se,{asChild:true,children:jsxRuntime.jsxs(G,{type:"button",variant:"ghost",size:"sm",className:"absolute right-1 h-7 w-7 p-0",disabled:m,children:[jsxRuntime.jsx(lucideReact.Clock,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Pick time"})]})}),jsxRuntime.jsxs(xe,{className:"w-auto p-4",align:"end",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(M,{value:g,onIncrement:v,onDecrement:P,max:23}),jsxRuntime.jsx("div",{className:"text-2xl font-bold text-muted-foreground",children:":"}),jsxRuntime.jsx(M,{value:x,onIncrement:y,onDecrement:C,max:59})]}),jsxRuntime.jsxs("div",{className:"mt-4 flex justify-end gap-2",children:[jsxRuntime.jsx(G,{variant:"bordered",size:"sm",onClick:()=>{let T=new Date;b(T.getHours(),T.getMinutes());},children:"Now"}),jsxRuntime.jsx(G,{size:"sm",onClick:()=>R(false),children:"Done"})]})]})]})]})});Rp.displayName="TimeInput";var wp=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"}}),pw=(e,t)=>{try{return new Intl.NumberFormat(t,{style:"currency",currency:e,currencyDisplay:"narrowSymbol"}).formatToParts(0).find(i=>i.type==="currency")?.value??e}catch{return e}},zs=(e,t,a,r)=>{let n=e.toFixed(t),[i,s]=n.split("."),l=i.replace(/\B(?=(\d{3})+(?!\d))/g,a);return s?`${l}${r}${s}`:l},Np=(e,t,a)=>{if(!e)return;let r=e.replace(new RegExp(`\\${t}`,"g"),"");r=r.replace(a,"."),r=r.replace(/[^0-9.-]/g,"");let n=parseFloat(r);return isNaN(n)?void 0:n},Pp=K__namespace.forwardRef(({className:e,size:t,value:a,defaultValue:r,onChange:n,currency:i="USD",locale:s="en-US",decimals:l=2,min:d,max:m,showCurrency:u=true,currencyPosition:c="prefix",currencySymbol:f,thousandSeparator:p=",",decimalSeparator:h=".",disabled:R,placeholder:g,...x},w)=>{let[b,v]=K__namespace.useState(r),[P,y]=K__namespace.useState(""),[C,M]=K__namespace.useState(false),T=a!==void 0?a:b,N=f??pw(i,s);K__namespace.useEffect(()=>{!C&&T!==void 0&&y(zs(T,l,p,h));},[T,l,p,h,C]);let S=D=>{let I=D.target.value;if(!I){y(""),a===void 0&&v(void 0),n?.(void 0);return}if(!new RegExp(`^[0-9${p}${h}.-]*$`).test(I))return;y(I);let W=Np(I,p,h);if(W!==void 0){let H=W;d!==void 0&&W<d&&(H=d),m!==void 0&&W>m&&(H=m),a===void 0&&v(H),n?.(H);}},k=()=>{M(true),T!==void 0&&y(T.toString().replace(".",h));},L=()=>{M(false),y(T!==void 0?zs(T,l,p,h):"");},E=u&&c==="prefix"&&jsxRuntime.jsx("span",{className:"flex items-center text-muted-foreground pr-1",children:N}),V=u&&c==="suffix"&&jsxRuntime.jsx("span",{className:"flex items-center text-muted-foreground pl-1",children:N});return jsxRuntime.jsxs("div",{className:"relative flex items-center",children:[E&&jsxRuntime.jsx("div",{className:"absolute left-3 pointer-events-none",children:E}),jsxRuntime.jsx("input",{ref:w,type:"text",inputMode:"decimal",value:P,onChange:S,onFocus:k,onBlur:L,disabled:R,placeholder:g??`0${h}${"0".repeat(l)}`,className:o(wp({size:t}),E&&"pl-8",V&&"pr-8","text-right",e),style:{borderColor:C?"var(--color-foreground)":void 0},...x}),V&&jsxRuntime.jsx("div",{className:"absolute right-3 pointer-events-none",children:V})]})});Pp.displayName="CurrencyInput";var Cp=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"}}),Bs={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:"#####-####"}},bw=(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}},Fa=e=>["#","A","*"].includes(e),Yn=(e,t,a)=>{let r="",n=0;for(let i=0;i<t.length&&n<=e.length;i++){let s=t[i];if(Fa(s)){if(n<e.length){let l=e[n];bw(l,s)?(r+=l,n++):(n++,i--);}}else (n<e.length||a)&&(r+=s);}return r},Fs=(e,t)=>{let a="";for(let r=0;r<e.length&&r<t.length;r++){let n=t[r];Fa(n)&&(a+=e[r]);}return a},Sp=(e,t)=>e.split("").map(a=>Fa(a)?t:a).join(""),vw=(e,t,a)=>{let r=0;for(let l=0;l<a&&l<e.length&&l<t.length;l++)Fa(t[l])&&r++;let i=0,s=0;for(let l=0;l<t.length&&s<r;l++)i++,Fa(t[l])&&s++;for(;i<t.length&&!Fa(t[i]);)i++;return Math.min(i,e.length)},Tp=K__namespace.forwardRef(({className:e,size:t,value:a,defaultValue:r="",onChange:n,mask:i,maskPlaceholder:s="_",showMaskPlaceholder:l=false,includeMaskChars:d=false,disabled:m,placeholder:u,...c},f)=>{let p=typeof i=="string"&&i in Bs?Bs[i].mask:i,[h,R]=K__namespace.useState(r),[g,x]=K__namespace.useState(""),[w,b]=K__namespace.useState(false),v=K__namespace.useRef(null),P=a!==void 0?a:h;K__namespace.useImperativeHandle(f,()=>v.current),K__namespace.useEffect(()=>{let T=Yn(P,p,true);x(T);},[P,p]);let y=T=>{let N=T.target.value,S=T.target.selectionStart??0,k=N.replace(/[^\w]/g,""),L=Yn(k,p,true),E=Fs(L,p);x(L),a===void 0&&R(d?L:E),n?.(E,L),requestAnimationFrame(()=>{if(v.current){let V=vw(L,p,S);v.current.setSelectionRange(V,V);}});},C=T=>{if(["ArrowLeft","ArrowRight","Home","End","Tab"].includes(T.key)||T.ctrlKey||T.metaKey)return;let N=v.current;if(!N)return;let S=N.selectionStart??0;if(T.key==="Backspace"&&S>0){let k=S-1;for(;k>0&&!Fa(p[k]);)k--;let L=Fs(g,p),E=0;for(let I=0;I<k&&I<p.length;I++)Fa(p[I])&&E++;let V=L.slice(0,Math.max(0,E-1))+L.slice(E),D=Yn(V,p,true);x(D),a===void 0&&R(d?D:V),n?.(V,D),T.preventDefault(),requestAnimationFrame(()=>{v.current&&v.current.setSelectionRange(k,k);});}},M=l?Sp(p,s):u;return jsxRuntime.jsx("input",{ref:v,type:"text",value:g,onChange:y,onKeyDown:C,onFocus:()=>b(true),onBlur:()=>b(false),disabled:m,placeholder:M,className:o(Cp({size:t}),e),style:{borderColor:w?"var(--color-foreground)":void 0},...c})});Tp.displayName="MaskedInput";var Mp=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"}}),qn={"DD/MM/YYYY":"/","MM/DD/YYYY":"/","YYYY-MM-DD":"-","DD.MM.YYYY":"."},Gs={"DD/MM/YYYY":["day","month","year"],"MM/DD/YYYY":["month","day","year"],"YYYY-MM-DD":["year","month","day"],"DD.MM.YYYY":["day","month","year"]},Os=(e,t)=>String(e).padStart(t,"0"),Xn=(e,t)=>{let a=Os(e.getDate(),2),r=Os(e.getMonth()+1,2),n=Os(e.getFullYear(),4),i=qn[t],s=Gs[t],l={day:a,month:r,year:n};return s.map(d=>l[d]).join(i)},kp=(e,t)=>{let a=qn[t],r=e.split(a);if(r.length!==3)return null;let n=Gs[t],i={};if(n.forEach((l,d)=>{i[l]=parseInt(r[d],10);}),isNaN(i.day)||isNaN(i.month)||isNaN(i.year)||i.month<1||i.month>12||i.day<1||i.day>31||i.year<1e3||i.year>9999)return null;let s=new Date(i.year,i.month-1,i.day);return s.getFullYear()!==i.year||s.getMonth()!==i.month-1||s.getDate()!==i.day?null:s},Rw=e=>e.toLowerCase(),ww=e=>{let t=qn[e];return Gs[e].map(r=>r==="year"?"####":"##").join(t)},Dp=K__namespace.forwardRef(({className:e,size:t,value:a,defaultValue:r,onChange:n,format:i="DD/MM/YYYY",minDate:s,maxDate:l,showIcon:d=true,disabled:m,placeholder:u,...c},f)=>{let[p,h]=K__namespace.useState(r??null),[R,g]=K__namespace.useState(""),[x,w]=K__namespace.useState(null),b=K__namespace.useRef(null),v=a!==void 0?a:p;K__namespace.useImperativeHandle(f,()=>b.current),K__namespace.useEffect(()=>{v?(g(Xn(v,i)),w(null)):g("");},[v,i]);let P=qn[i],y=ww(i),C=N=>{let S=N.target.value;S=S.replace(new RegExp(`[^0-9\\${P}]`,"g"),"");let k=S.replace(new RegExp(`\\${P}`,"g"),""),L="",E=0;for(let V=0;V<y.length&&E<k.length;V++)y[V]==="#"?(L+=k[E],E++):L+=y[V];if(g(L),L.length===y.length){let V=kp(L,i);if(V){if(s&&V<s){w(`Date must be after ${Xn(s,i)}`);return}if(l&&V>l){w(`Date must be before ${Xn(l,i)}`);return}w(null),a===void 0&&h(V),n?.(V);}else w("Invalid date");}else a===void 0&&h(null),n?.(null),w(null);},M=()=>{R&&R.length!==y.length&&(g(""),w(null),a===void 0&&h(null),n?.(null));},T=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:b,type:"text",inputMode:"numeric",value:R,onChange:C,onBlur:M,disabled:m,placeholder:u??Rw(i),className:o(Mp({size:t}),d&&"pr-10",x&&"border-danger focus-visible:ring-danger",e),"aria-invalid":!!x,"aria-describedby":x?"date-error":void 0,...c}),d&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute right-3 top-1/2 -translate-y-1/2",children:jsxRuntime.jsx(lucideReact.Calendar,{className:o(T,"text-muted-foreground")})}),x&&jsxRuntime.jsx("p",{id:"date-error",className:"mt-1 text-xs text-danger",children:x})]})});Dp.displayName="DateInput";var Lp=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"}}),Vp=[{code:"TR",name:"Turkey",dialCode:"+90",flag:"\u{1F1F9}\u{1F1F7}",format:"(###) ### ## ##"},{code:"US",name:"United States",dialCode:"+1",flag:"\u{1F1FA}\u{1F1F8}",format:"(###) ###-####"},{code:"GB",name:"United Kingdom",dialCode:"+44",flag:"\u{1F1EC}\u{1F1E7}",format:"#### ### ####"},{code:"DE",name:"Germany",dialCode:"+49",flag:"\u{1F1E9}\u{1F1EA}",format:"#### #######"},{code:"FR",name:"France",dialCode:"+33",flag:"\u{1F1EB}\u{1F1F7}",format:"# ## ## ## ##"},{code:"IT",name:"Italy",dialCode:"+39",flag:"\u{1F1EE}\u{1F1F9}",format:"### ### ####"},{code:"ES",name:"Spain",dialCode:"+34",flag:"\u{1F1EA}\u{1F1F8}",format:"### ### ###"},{code:"NL",name:"Netherlands",dialCode:"+31",flag:"\u{1F1F3}\u{1F1F1}",format:"## ########"},{code:"BE",name:"Belgium",dialCode:"+32",flag:"\u{1F1E7}\u{1F1EA}",format:"### ## ## ##"},{code:"AT",name:"Austria",dialCode:"+43",flag:"\u{1F1E6}\u{1F1F9}",format:"### #######"},{code:"CH",name:"Switzerland",dialCode:"+41",flag:"\u{1F1E8}\u{1F1ED}",format:"## ### ## ##"},{code:"SE",name:"Sweden",dialCode:"+46",flag:"\u{1F1F8}\u{1F1EA}",format:"##-### ## ##"},{code:"NO",name:"Norway",dialCode:"+47",flag:"\u{1F1F3}\u{1F1F4}",format:"### ## ###"},{code:"DK",name:"Denmark",dialCode:"+45",flag:"\u{1F1E9}\u{1F1F0}",format:"## ## ## ##"},{code:"FI",name:"Finland",dialCode:"+358",flag:"\u{1F1EB}\u{1F1EE}",format:"## ### ####"},{code:"PL",name:"Poland",dialCode:"+48",flag:"\u{1F1F5}\u{1F1F1}",format:"### ### ###"},{code:"CZ",name:"Czech Republic",dialCode:"+420",flag:"\u{1F1E8}\u{1F1FF}",format:"### ### ###"},{code:"GR",name:"Greece",dialCode:"+30",flag:"\u{1F1EC}\u{1F1F7}",format:"### ### ####"},{code:"PT",name:"Portugal",dialCode:"+351",flag:"\u{1F1F5}\u{1F1F9}",format:"### ### ###"},{code:"RU",name:"Russia",dialCode:"+7",flag:"\u{1F1F7}\u{1F1FA}",format:"(###) ###-##-##"},{code:"UA",name:"Ukraine",dialCode:"+380",flag:"\u{1F1FA}\u{1F1E6}",format:"## ### ## ##"},{code:"RO",name:"Romania",dialCode:"+40",flag:"\u{1F1F7}\u{1F1F4}",format:"### ### ###"},{code:"HU",name:"Hungary",dialCode:"+36",flag:"\u{1F1ED}\u{1F1FA}",format:"## ### ####"},{code:"BG",name:"Bulgaria",dialCode:"+359",flag:"\u{1F1E7}\u{1F1EC}",format:"### ### ###"},{code:"HR",name:"Croatia",dialCode:"+385",flag:"\u{1F1ED}\u{1F1F7}",format:"## ### ####"},{code:"RS",name:"Serbia",dialCode:"+381",flag:"\u{1F1F7}\u{1F1F8}",format:"## ### ####"},{code:"SI",name:"Slovenia",dialCode:"+386",flag:"\u{1F1F8}\u{1F1EE}",format:"## ### ###"},{code:"SK",name:"Slovakia",dialCode:"+421",flag:"\u{1F1F8}\u{1F1F0}",format:"### ### ###"},{code:"CA",name:"Canada",dialCode:"+1",flag:"\u{1F1E8}\u{1F1E6}",format:"(###) ###-####"},{code:"MX",name:"Mexico",dialCode:"+52",flag:"\u{1F1F2}\u{1F1FD}",format:"### ### ####"},{code:"BR",name:"Brazil",dialCode:"+55",flag:"\u{1F1E7}\u{1F1F7}",format:"(##) #####-####"},{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:"NZ",name:"New Zealand",dialCode:"+64",flag:"\u{1F1F3}\u{1F1FF}",format:"## ### ####"},{code:"JP",name:"Japan",dialCode:"+81",flag:"\u{1F1EF}\u{1F1F5}",format:"##-####-####"},{code:"KR",name:"South Korea",dialCode:"+82",flag:"\u{1F1F0}\u{1F1F7}",format:"##-####-####"},{code:"CN",name:"China",dialCode:"+86",flag:"\u{1F1E8}\u{1F1F3}",format:"### #### ####"},{code:"HK",name:"Hong Kong",dialCode:"+852",flag:"\u{1F1ED}\u{1F1F0}",format:"#### ####"},{code:"TW",name:"Taiwan",dialCode:"+886",flag:"\u{1F1F9}\u{1F1FC}",format:"### ### ###"},{code:"SG",name:"Singapore",dialCode:"+65",flag:"\u{1F1F8}\u{1F1EC}",format:"#### ####"},{code:"IN",name:"India",dialCode:"+91",flag:"\u{1F1EE}\u{1F1F3}",format:"##### #####"},{code:"PK",name:"Pakistan",dialCode:"+92",flag:"\u{1F1F5}\u{1F1F0}",format:"### #######"},{code:"AE",name:"United Arab Emirates",dialCode:"+971",flag:"\u{1F1E6}\u{1F1EA}",format:"## ### ####"},{code:"SA",name:"Saudi Arabia",dialCode:"+966",flag:"\u{1F1F8}\u{1F1E6}",format:"## ### ####"},{code:"EG",name:"Egypt",dialCode:"+20",flag:"\u{1F1EA}\u{1F1EC}",format:"### ### ####"},{code:"ZA",name:"South Africa",dialCode:"+27",flag:"\u{1F1FF}\u{1F1E6}",format:"## ### ####"},{code:"NG",name:"Nigeria",dialCode:"+234",flag:"\u{1F1F3}\u{1F1EC}",format:"### ### ####"},{code:"IL",name:"Israel",dialCode:"+972",flag:"\u{1F1EE}\u{1F1F1}",format:"##-###-####"}],Zn=(e,t)=>{let a=e.replace(/\D/g,""),r="",n=0;for(let i=0;i<t.length&&n<a.length;i++)t[i]==="#"?(r+=a[n],n++):r+=t[i];return r},Cw=e=>e.replace(/#/g,"_"),Ip=K__namespace.forwardRef(({className:e,size:t,value:a,defaultValue:r="",onChange:n,country:i,defaultCountry:s="TR",onCountryChange:l,countries:d=Vp,showCountrySelect:m=true,showDialCode:u=false,disabled:c,placeholder:f,...p},h)=>{let[R,g]=K__namespace.useState(r),[x,w]=K__namespace.useState(i??s),[b,v]=K__namespace.useState(false),P=a!==void 0?a:R,y=i??x,C=d.find(k=>k.code===y)??d[0],M=Zn(P,C.format),T=k=>{let E=k.target.value.replace(/\D/g,"");a===void 0&&g(E);let V=Zn(E,C.format),D=`${C.dialCode} ${V}`;n?.(E,D,C);};return jsxRuntime.jsxs("div",{className:"flex",children:[m&&jsxRuntime.jsxs(is,{value:y,onValueChange:k=>{let L=d.find(D=>D.code===k);if(!L)return;i===void 0&&w(k),l?.(L);let E=Zn(P,L.format),V=`${L.dialCode} ${E}`;n?.(P,V,L);},disabled:c,children:[jsxRuntime.jsx(Pn,{className:o("w-[100px] rounded-r-none border-r-0 shrink-0",t==="sm"?"h-8":t==="lg"?"h-12":"h-10"),children:jsxRuntime.jsx(ss,{children:jsxRuntime.jsxs("span",{className:"flex items-center gap-1.5",children:[jsxRuntime.jsx("span",{children:C.flag}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:C.dialCode})]})})}),jsxRuntime.jsx(Cn,{className:"max-h-[300px]",children:d.map(k=>jsxRuntime.jsx(Sn,{value:k.code,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{children:k.flag}),jsxRuntime.jsx("span",{className:"flex-1",children:k.name}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:k.dialCode})]})},k.code))})]}),jsxRuntime.jsxs("div",{className:"relative flex-1",children:[u&&!m&&jsxRuntime.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:C.dialCode}),jsxRuntime.jsx("input",{ref:h,type:"tel",inputMode:"tel",value:M,onChange:T,onFocus:()=>v(true),onBlur:()=>v(false),disabled:c,placeholder:f??Cw(C.format),className:o(Lp({size:t}),m&&"rounded-l-none",u&&!m&&"pl-12",e),style:{borderColor:b?"var(--color-foreground)":void 0},...p})]})]})});Ip.displayName="PhoneInput";var Hp=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}}),Ap=K__namespace.forwardRef(({className:e,variant:t,size:a,sticky:r,brand:n,children:i,mobileBreakpoint:s="md",...l},d)=>{let[m,u]=K__namespace.useState(false),c={sm:"hidden sm:flex",md:"hidden md:flex",lg:"hidden lg:flex"}[s],f={sm:"sm:hidden",md:"md:hidden",lg:"lg:hidden"}[s];return jsxRuntime.jsxs("nav",{ref:d,className:o(Hp({variant:t,size:a,sticky:r,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:o("items-center gap-4 flex-1 justify-end",c),children:i}),jsxRuntime.jsx("button",{type:"button",className:o("p-2 rounded-md hover:bg-accent hover:text-accent-foreground transition-colors",f),onClick:()=>u(!m),"aria-label":m?"Close menu":"Open menu","aria-expanded":m,children:m?jsxRuntime.jsx(lucideReact.X,{className:"h-5 w-5"}):jsxRuntime.jsx(lucideReact.Menu,{className:"h-5 w-5"})})]}),m&&jsxRuntime.jsx("div",{className:o("absolute top-full left-0 right-0 flex flex-col gap-2 p-4 bg-background border-b border-border shadow-lg",f),children:i})]})});Ap.displayName="Navbar";var zp=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex items-center gap-2 font-semibold text-lg",e),...t}));zp.displayName="NavbarBrand";var Bp=K__namespace.forwardRef(({className:e,justify:t="start",...a},r)=>{let n={start:"justify-start",center:"justify-center",end:"justify-end"}[t];return jsxRuntime.jsx("div",{ref:r,className:o("flex items-center gap-4",n,e),...a})});Bp.displayName="NavbarContent";var Fp=K__namespace.forwardRef(({className:e,isActive:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,className:o("flex items-center",t&&"text-primary font-medium",e),...a}));Fp.displayName="NavbarItem";var Op=K__namespace.forwardRef(({className:e,isActive:t,...a},r)=>jsxRuntime.jsx("a",{ref:r,className:o("text-sm font-medium transition-colors hover:text-primary",t?"text-primary":"text-muted-foreground",e),...a}));Op.displayName="NavbarLink";var Wp=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"}}),$p=K__namespace.forwardRef(({className:e,variant:t,size:a,underline:r,isExternal:n,showExternalIcon:i=true,isDisabled:s,children:l,...d},m)=>{let u=n?{target:"_blank",rel:"noopener noreferrer"}:{};return jsxRuntime.jsxs("a",{ref:m,className:o(Wp({variant:t,size:a,underline:r,className:e}),s&&"pointer-events-none opacity-50"),"aria-disabled":s,...u,...d,children:[l,n&&i&&jsxRuntime.jsx(lucideReact.ExternalLink,{className:"h-3 w-3 ml-0.5","aria-hidden":"true"})]})});$p.displayName="Link";var _p=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"}}),Kp=K__namespace.forwardRef(({className:e,position:t,threshold:a=400,icon:r,behavior:n="smooth",variant:i="solid",color:s="default",size:l="md",radius:d="full",target:m,onVisibilityChange:u,onClick:c,...f},p)=>{let[h,R]=K__namespace.useState(false);K__namespace.useEffect(()=>{let w=m?.current||window,b=()=>{let P=(m?.current?m.current.scrollTop:window.scrollY||document.documentElement.scrollTop)>a;P!==h&&(R(P),u?.(P));};return w.addEventListener("scroll",b,{passive:true}),b(),()=>{w.removeEventListener("scroll",b);}},[a,m,h,u]);let g=w=>{m?.current?m.current.scrollTo({top:0,behavior:n}):window.scrollTo({top:0,behavior:n}),c?.(w);},x=l==="sm"?"h-4 w-4":l==="lg"?"h-6 w-6":"h-5 w-5";return jsxRuntime.jsx("div",{className:o(_p({position:t}),h?"opacity-100 translate-y-0 pointer-events-auto":"opacity-0 translate-y-4 pointer-events-none",e),children:jsxRuntime.jsx(G,{ref:p,type:"button",variant:i,color:s,size:"icon",radius:d,onClick:g,"aria-label":"Back to top",className:o("shadow-lg",l==="sm"&&"h-9 w-9",l==="md"&&"h-10 w-10",l==="lg"&&"h-12 w-12"),...f,children:r||jsxRuntime.jsx(lucideReact.ArrowUp,{className:x})})})});Kp.displayName="BackTop";var Bw=Y__namespace.Menu,Fw=Y__namespace.Group,Ow=Y__namespace.Portal,Gw=Y__namespace.Sub,Ww=Y__namespace.RadioGroup,Up=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Y__namespace.Root,{ref:a,className:o("flex h-10 items-center space-x-1 rounded-md border bg-background p-1",e),...t}));Up.displayName=Y__namespace.Root.displayName;var Yp=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Y__namespace.Trigger,{ref:a,className:o("flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",e),...t}));Yp.displayName=Y__namespace.Trigger.displayName;var jp=K__namespace.forwardRef(({className:e,inset:t,children:a,...r},n)=>jsxRuntime.jsxs(Y__namespace.SubTrigger,{ref:n,className:o("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",e),...r,children:[a,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto h-4 w-4"})]}));jp.displayName=Y__namespace.SubTrigger.displayName;var Xp=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Y__namespace.SubContent,{ref:a,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Xp.displayName=Y__namespace.SubContent.displayName;var qp=K__namespace.forwardRef(({className:e,align:t="start",alignOffset:a=-4,sideOffset:r=8,...n},i)=>jsxRuntime.jsx(Y__namespace.Portal,{children:jsxRuntime.jsx(Y__namespace.Content,{ref:i,align:t,alignOffset:a,sideOffset:r,className:o("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));qp.displayName=Y__namespace.Content.displayName;var Zp=K__namespace.forwardRef(({className:e,inset:t,...a},r)=>jsxRuntime.jsx(Y__namespace.Item,{ref:r,className:o("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...a}));Zp.displayName=Y__namespace.Item.displayName;var Jp=K__namespace.forwardRef(({className:e,children:t,checked:a,...r},n)=>jsxRuntime.jsxs(Y__namespace.CheckboxItem,{ref:n,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...r,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(Y__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),t]}));Jp.displayName=Y__namespace.CheckboxItem.displayName;var Qp=K__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(Y__namespace.RadioItem,{ref:r,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(Y__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));Qp.displayName=Y__namespace.RadioItem.displayName;var ef=K__namespace.forwardRef(({className:e,inset:t,...a},r)=>jsxRuntime.jsx(Y__namespace.Label,{ref:r,className:o("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));ef.displayName=Y__namespace.Label.displayName;var tf=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Y__namespace.Separator,{ref:a,className:o("-mx-1 my-1 h-px bg-muted",e),...t}));tf.displayName=Y__namespace.Separator.displayName;var af=({className:e,...t})=>jsxRuntime.jsx("span",{className:o("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});af.displayName="MenubarShortcut";var rf=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"}}),of=K__namespace.forwardRef(({className:e,orientation:t,size:a,currentStep:r=0,children:n,...i},s)=>{let l=K__namespace.Children.toArray(n);return jsxRuntime.jsx("div",{ref:s,className:o(rf({orientation:t,size:a,className:e})),...i,children:l.map((d,m)=>K__namespace.isValidElement(d)?K__namespace.cloneElement(d,{...d.props,stepNumber:m+1,status:d.props.status||(m<r?"completed":m===r?"current":"upcoming"),isLast:m===l.length-1,orientation:t,size:a}):d)})});of.displayName="Steps";var nf=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"}}),_w=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"}}),Kw=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"}}),sf=K__namespace.forwardRef(({className:e,orientation:t="horizontal",size:a="md",title:r,description:n,icon:i,status:s="upcoming",stepNumber:l,isLast:d,...m},u)=>jsxRuntime.jsxs("div",{ref:u,className:o(nf({orientation:t,size:a,className:e}),!d&&t==="horizontal"&&"flex-1"),...m,children:[jsxRuntime.jsx("div",{className:o("flex items-center",t==="vertical"&&"flex-col items-start"),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntime.jsx("div",{className:o(_w({status:s,size:a})),children:s==="completed"?jsxRuntime.jsx(lucideReact.Check,{className:a==="sm"?"h-3 w-3":a==="lg"?"h-5 w-5":"h-4 w-4"}):i||l}),(r||n)&&jsxRuntime.jsxs("div",{className:"flex flex-col",children:[r&&jsxRuntime.jsx("span",{className:o("font-medium",a==="sm"&&"text-sm",a==="lg"&&"text-lg",s==="upcoming"&&"text-muted-foreground"),children:r}),n&&jsxRuntime.jsx("span",{className:o("text-muted-foreground",a==="sm"&&"text-xs",a==="md"&&"text-sm",a==="lg"&&"text-base"),children:n})]})]})}),!d&&jsxRuntime.jsx("div",{className:o(Kw({orientation:t,status:s==="completed"?"completed":"upcoming"}),t==="vertical"&&"my-2")})]}));sf.displayName="Step";function Zw({className:e,data:t,columns:a,selectable:r=false,selectedKeys:n,onSelectionChange:i,getRowKey:s=(v,P)=>String(P),sortable:l=false,sortState:d,onSortChange:m,paginated:u=false,pageSizeOptions:c=[10,20,50],paginationState:f,onPaginationChange:p,emptyContent:h="No data",loading:R=false,striped:g=false,hoverable:x=true,...w},b){let[v,P]=K__namespace.useState(new Set),[y,C]=K__namespace.useState({columnId:null,direction:null}),[M,T]=K__namespace.useState({pageIndex:0,pageSize:c[0]||10}),N=n??v,S=d??y,k=f??M,L=A=>{i?i(A):P(A);},E=A=>{m?m(A):C(A);},V=A=>{p?p(A):T(A);},D=K__namespace.useMemo(()=>{if(!S.columnId||!S.direction)return t;let A=a.find(B=>B.id===S.columnId);return A?[...t].sort((B,te)=>{let F=A.accessor(B),oe=A.accessor(te);if(F===oe)return 0;if(F==null)return 1;if(oe==null)return -1;let ee=String(F).localeCompare(String(oe),void 0,{numeric:true});return S.direction==="asc"?ee:-ee}):t},[t,S,a]),I=K__namespace.useMemo(()=>{if(!u)return D;let A=k.pageIndex*k.pageSize;return D.slice(A,A+k.pageSize)},[D,u,k]),z=Math.ceil(D.length/k.pageSize),W=A=>{if(A){let B=new Set(I.map((te,F)=>s(te,F)));L(B);}else L(new Set);},H=(A,B)=>{let te=new Set(N);B?te.add(A):te.delete(A),L(te);},j=I.length>0&&I.every((A,B)=>N.has(s(A,B))),$=I.some((A,B)=>N.has(s(A,B))),Ve=A=>{if(!a.find(F=>F.id===A)?.sortable&&!l)return;let te="asc";S.columnId===A&&(S.direction==="asc"?te="desc":S.direction==="desc"&&(te=null)),E({columnId:te?A:null,direction:te});},ve=A=>S.columnId!==A?jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"h-4 w-4 text-muted-foreground/50"}):S.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:b,className:o("w-full",e),...w,children:[jsxRuntime.jsx("div",{className:"relative w-full overflow-auto rounded-md border",children:jsxRuntime.jsxs("table",{className:"w-full caption-bottom text-sm",children:[jsxRuntime.jsx("thead",{className:"[&_tr]:border-b bg-muted/50",children:jsxRuntime.jsxs("tr",{children:[r&&jsxRuntime.jsx("th",{className:"h-12 w-12 px-4",children:jsxRuntime.jsx(Po,{checked:j?true:$?"indeterminate":false,onCheckedChange:W,"aria-label":"Select all"})}),a.map(A=>{let B=A.sortable??l;return jsxRuntime.jsx("th",{className:o("h-12 px-4 text-left align-middle font-medium text-muted-foreground",B&&"cursor-pointer select-none hover:text-foreground"),style:{width:A.width},onClick:()=>B&&Ve(A.id),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[A.header,B&&ve(A.id)]})},A.id)})]})}),jsxRuntime.jsx("tbody",{className:"[&_tr:last-child]:border-0",children:R?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:a.length+(r?1:0),className:"h-24 text-center text-muted-foreground",children:"Loading..."})}):I.length===0?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:a.length+(r?1:0),className:"h-24 text-center text-muted-foreground",children:h})}):I.map((A,B)=>{let te=s(A,B),F=N.has(te);return jsxRuntime.jsxs("tr",{className:o("border-b transition-colors",x&&"hover:bg-muted/50",g&&B%2===1&&"bg-muted/30",F&&"bg-muted"),"data-state":F?"selected":void 0,children:[r&&jsxRuntime.jsx("td",{className:"w-12 px-4",children:jsxRuntime.jsx(Po,{checked:F,onCheckedChange:oe=>H(te,!!oe),"aria-label":`Select row ${B+1}`})}),a.map(oe=>jsxRuntime.jsx("td",{className:"p-4 align-middle",children:oe.cell?oe.cell(A,B):oe.accessor(A)},oe.id))]},te)})})]})}),u&&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:A=>V({pageIndex:0,pageSize:Number(A.target.value)}),className:"h-8 rounded-md border bg-transparent px-2",children:c.map(A=>jsxRuntime.jsx("option",{value:A,children:A},A))})]}),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("button",{onClick:()=>V({...k,pageIndex:k.pageIndex-1}),disabled:k.pageIndex===0,className:"inline-flex h-8 w-8 items-center justify-center rounded-md border bg-transparent hover:bg-muted disabled:opacity-50 disabled:pointer-events-none","aria-label":"Previous page",children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx("button",{onClick:()=>V({...k,pageIndex:k.pageIndex+1}),disabled:k.pageIndex>=z-1,className:"inline-flex h-8 w-8 items-center justify-center rounded-md border bg-transparent hover:bg-muted disabled:opacity-50 disabled:pointer-events-none","aria-label":"Next page",children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})})]})]})]})]})}var Jw=K__namespace.forwardRef(Zw);var df=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"}}),cf=K__namespace.forwardRef(({className:e,size:t,data:a,defaultExpandedIds:r=[],expandedIds:n,onExpandedChange:i,selectedId:s,onSelect:l,showIcons:d=true,leafIcon:m=jsxRuntime.jsx(lucideReact.File,{className:"h-4 w-4"}),folderIcon:u=jsxRuntime.jsx(lucideReact.Folder,{className:"h-4 w-4"}),folderOpenIcon:c=jsxRuntime.jsx(lucideReact.FolderOpen,{className:"h-4 w-4"}),defaultExpandAll:f=false,...p},h)=>{let R=K__namespace.useCallback(y=>y.reduce((C,M)=>M.children?.length?[...C,M.id,...R(M.children)]:C,[]),[]),[g,x]=K__namespace.useState(()=>f?R(a):r),w=n??g,b=y=>{i?i(y):x(y);},v=y=>{w.includes(y)?b(w.filter(C=>C!==y)):b([...w,y]);},P=(y,C=0)=>{let M=y.children&&y.children.length>0,T=w.includes(y.id),N=s===y.id,S=()=>{y.disabled||l?.(y);},k=E=>{E.stopPropagation(),M&&v(y.id);},L=()=>y.icon?y.icon:M?T?c:u:m;return jsxRuntime.jsxs("div",{role:"treeitem","aria-expanded":M?T:void 0,children:[jsxRuntime.jsxs("div",{className:o("flex items-center gap-1 rounded-md px-2 cursor-pointer transition-colors","h-[var(--tree-item-height)]","hover:bg-muted/50",N&&"bg-primary/10 text-primary",y.disabled&&"opacity-50 cursor-not-allowed"),style:{paddingLeft:`calc(${C} * var(--tree-indent) + 8px)`},onClick:S,children:[jsxRuntime.jsx("button",{type:"button",className:o("flex h-5 w-5 items-center justify-center rounded hover:bg-muted",!M&&"invisible"),onClick:k,tabIndex:-1,"aria-label":T?"Collapse":"Expand",children:T?jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})}),d&&jsxRuntime.jsx("span",{className:"flex-shrink-0 text-muted-foreground",children:L()}),jsxRuntime.jsx("span",{className:"truncate",children:y.name})]}),M&&T&&jsxRuntime.jsx("div",{role:"group",children:y.children.map(E=>P(E,C+1))})]},y.id)};return jsxRuntime.jsx("div",{ref:h,role:"tree",className:o(df({size:t,className:e})),...p,children:a.map(y=>P(y))})});cf.displayName="TreeView";var uf=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}}),dN=({text:e,query:t})=>{if(!t)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:e});let a=new RegExp(`(${t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")})`,"gi"),r=e.split(a);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:r.map((n,i)=>a.test(n)?jsxRuntime.jsx("mark",{className:"bg-primary/20 text-foreground rounded-sm",children:n},i):jsxRuntime.jsx("span",{children:n},i))})},cN=(e,t)=>{let[a,r]=K__namespace.useState(e);return K__namespace.useEffect(()=>{let n=setTimeout(()=>{r(e);},t);return ()=>{clearTimeout(n);}},[e,t]),a},pf=K__namespace.forwardRef(({className:e,size:t,value:a,defaultValue:r="",onChange:n,onSelect:i,options:s=[],loadOptions:l,debounceMs:d=300,minChars:m=0,placeholder:u="Type to search...",emptyText:c="No results found.",loadingText:f="Loading...",clearable:p=false,freeSolo:h=true,maxHeight:R=200,highlightMatch:g=true,fullWidth:x=false,disabled:w,...b},v)=>{let[P,y]=K__namespace.useState(false),[C,M]=K__namespace.useState(r),[T,N]=K__namespace.useState([]),[S,k]=K__namespace.useState(false),[L,E]=K__namespace.useState(false),V=K__namespace.useRef(null),D=a!==void 0?a:C,I=cN(D,d);K__namespace.useImperativeHandle(v,()=>V.current);let z=l?T:s,W=K__namespace.useMemo(()=>l?z:z.filter(ee=>ee.label.toLowerCase().includes(D.toLowerCase())),[z,D,l]);K__namespace.useEffect(()=>{if(!l)return;if(I.length<m){N([]);return}let ee=false;return (async()=>{k(true);try{let rt=await l(I);ee||N(rt);}catch{ee||N([]);}finally{ee||k(false);}})(),()=>{ee=true;}},[I,l,m]);let H=ee=>{a===void 0&&M(ee),n?.(ee);},j=ee=>{let at=ee.target.value;H(at),at.length>=m&&y(true);},$=ee=>{H(ee.label),i?.(ee),y(false);},Ve=()=>{H(""),V.current?.focus();},ve=()=>{E(true),D.length>=m&&(W.length>0||S)&&y(true);},A=()=>{E(false);},B=ee=>{ee.key==="Escape"&&y(false),ee.key==="ArrowDown"&&!P&&W.length>0&&y(true);},te=P&&D.length>=m,F=t==="sm"?"h-3 w-3":t==="lg"?"h-5 w-5":"h-4 w-4",oe=p&&D?"pr-8":"pr-3";return jsxRuntime.jsxs(Ne,{open:te,onOpenChange:y,children:[jsxRuntime.jsx(us,{asChild:true,children:jsxRuntime.jsxs("div",{className:o("relative",x?"w-full":"w-fit"),children:[jsxRuntime.jsx("input",{ref:V,type:"text",value:D,onChange:j,onFocus:ve,onBlur:A,onKeyDown:B,disabled:w,placeholder:u,className:o(uf({size:t,fullWidth:x}),oe,e),style:{borderColor:L?"var(--color-foreground)":void 0},role:"combobox","aria-expanded":te,"aria-autocomplete":"list","aria-controls":"autocomplete-list",...b}),p&&D&&!w&&jsxRuntime.jsx("button",{type:"button",onClick:Ve,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:F})})]})}),jsxRuntime.jsx(xe,{className:"w-[--radix-popover-trigger-width] p-0",align:"start",onOpenAutoFocus:ee=>ee.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:R},children:S?jsxRuntime.jsxs("div",{className:"flex items-center justify-center gap-2 py-6 text-sm text-muted-foreground",children:[jsxRuntime.jsx(lucideReact.Loader2,{className:o(F,"animate-spin")}),f]}):W.length===0?jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:c}):W.map(ee=>jsxRuntime.jsxs(cmdk.Command.Item,{value:ee.value,disabled:ee.disabled,onSelect:()=>$(ee),className:o("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:o("mr-2 h-4 w-4 shrink-0",D===ee.label?"opacity-100":"opacity-0")}),jsxRuntime.jsx("span",{className:"flex-1",children:g?jsxRuntime.jsx(dN,{text:ee.label,query:D}):ee.label})]},ee.value))})})})]})});pf.displayName="Autocomplete";var Us=K__namespace.createContext(null),Ys=K__namespace.createContext(null),js=()=>{let e=K__namespace.useContext(Us);if(!e)throw new Error("useFormContext must be used within a Form");return e},ei=()=>{let e=K__namespace.useContext(Ys);if(!e)throw new Error("useFieldContext must be used within a FormField");return e},mN={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:a=>typeof a=="string"&&a.length>=e,message:t??`Must be at least ${e} characters`}),maxLength:(e,t)=>({validate:a=>typeof a=="string"&&a.length<=e,message:t??`Must be at most ${e} characters`}),min:(e,t)=>({validate:a=>typeof a=="number"&&a>=e,message:t??`Must be at least ${e}`}),max:(e,t)=>({validate:a=>typeof a=="number"&&a<=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:a=>typeof a=="string"&&e.test(a),message:t}),custom:(e,t)=>({validate:e,message:t})},ff=K__namespace.forwardRef(({defaultValues:e={},onSubmit:t,onError:a,validateOnBlur:r=true,validateOnChange:n=false,children:i,className:s,...l},d)=>{let[m,u]=K__namespace.useState(e),[c,f]=K__namespace.useState({}),[p,h]=K__namespace.useState({}),[R,g]=K__namespace.useState({}),[x,w]=K__namespace.useState(false),b=K__namespace.useRef(new Map),v=K__namespace.useCallback((V,D)=>{b.current.set(V,D);},[]),P=K__namespace.useCallback(V=>{b.current.delete(V);},[]),y=K__namespace.useCallback(V=>{let D=b.current.get(V)||[],I=m[V];for(let z of D)if(!z.validate(I))return f(W=>({...W,[V]:z.message})),false;return f(z=>({...z,[V]:null})),true},[m]),C=K__namespace.useCallback(()=>{let V=true,D={};return b.current.forEach((I,z)=>{let W=m[z];for(let H of I)if(!H.validate(W)){D[z]=H.message,V=false;break}D[z]||(D[z]=null);}),f(D),V},[m]),M=K__namespace.useCallback((V,D)=>{u(I=>({...I,[V]:D})),g(I=>({...I,[V]:true})),n&&setTimeout(()=>{y(V);},0);},[n,y]),T=K__namespace.useCallback((V,D)=>{f(I=>({...I,[V]:D}));},[]),N=K__namespace.useCallback((V,D)=>{h(I=>({...I,[V]:D})),D&&r&&y(V);},[r,y]),S=K__namespace.useCallback(V=>({value:m[V],error:c[V]??null,touched:p[V]??false,dirty:R[V]??false}),[m,c,p,R]),k=K__namespace.useCallback(()=>{u(e),f({}),h({}),g({});},[e]),L=async V=>{V.preventDefault();let D={};if(b.current.forEach((z,W)=>{D[W]=true;}),h(D),!C()){a?.(c);return}if(t){w(true);try{await t(m);}finally{w(false);}}},E={values:m,errors:c,touched:p,dirty:R,isSubmitting:x,setValue:M,setError:T,setTouched:N,validateField:y,validateAll:C,registerField:v,unregisterField:P,getFieldState:S,reset:k};return jsxRuntime.jsx(Us.Provider,{value:E,children:jsxRuntime.jsx("form",{ref:d,onSubmit:L,className:o("space-y-4",s),...l,children:i})})});ff.displayName="Form";var gf=({name:e,rules:t=[],defaultValue:a,children:r})=>{let n=js(),i=K__namespace.useId();K__namespace.useEffect(()=>(n.registerField(e,t),a!==void 0&&n.values[e]===void 0&&n.setValue(e,a),()=>{n.unregisterField(e);}),[e,t,a,n]);let s=n.getFieldState(e),l={name:e,id:`${i}-${e}`,value:s.value,error:s.error,touched:s.touched,dirty:s.dirty};return jsxRuntime.jsx(Ys.Provider,{value:l,children:r})};gf.displayName="FormField";var bf=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("space-y-1.5",e),...t}));bf.displayName="FormItem";var vf=K__namespace.forwardRef(({className:e,required:t,children:a,...r},n)=>{let{id:i,error:s,touched:l}=ei();return jsxRuntime.jsxs(er,{ref:n,htmlFor:i,className:o(s&&l&&"text-danger",e),...r,children:[a,t&&jsxRuntime.jsx("span",{className:"ml-1 text-danger",children:"*"})]})});vf.displayName="FormLabel";var hf=({children:e})=>{let{name:t,id:a,error:r,touched:n}=ei(),i=js(),s=i.getFieldState(t),l=m=>{let u=m.target,c=u.type==="checkbox"?u.checked:u.value;i.setValue(t,c);},d=()=>{i.setTouched(t,true);};return K__namespace.cloneElement(e,{id:a,name:t,value:s.value??"",onChange:l,onBlur:d,"aria-invalid":r&&n?"true":void 0,"aria-describedby":r&&n?`${a}-error`:void 0})};hf.displayName="FormControl";var xf=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("p",{ref:a,className:o("text-xs text-muted-foreground",e),...t}));xf.displayName="FormDescription";var yf=K__namespace.forwardRef(({className:e,message:t,...a},r)=>{let{id:n,error:i,touched:s}=ei(),l=t??(s?i:null);return l?jsxRuntime.jsx("p",{ref:r,id:`${n}-error`,className:o("text-xs text-danger",e),role:"alert",...a,children:l}):null});yf.displayName="FormMessage";var wf=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"}}),Nf=K__namespace.forwardRef(({className:e,size:t,name:a,description:r,avatarUrl:n,avatarFallback:i,trailing:s,...l},d)=>{let m=i||a.split(" ").map(u=>u[0]).join("").toUpperCase().slice(0,2);return jsxRuntime.jsxs("div",{ref:d,className:o(wf({size:t,className:e})),...l,children:[jsxRuntime.jsxs(tr,{"data-user-avatar":true,children:[n&&jsxRuntime.jsx(Er,{src:n,alt:a}),jsxRuntime.jsx(ar,{children:m})]}),jsxRuntime.jsxs("div",{className:"flex flex-col min-w-0",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium leading-none truncate",children:a}),r&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground truncate",children:r})]}),s&&jsxRuntime.jsx("div",{className:"ml-auto flex-shrink-0",children:s})]})});Nf.displayName="User";var Cf=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"}}),Sf=K__namespace.forwardRef(({className:e,variant:t,size:a,...r},n)=>jsxRuntime.jsx("code",{ref:n,className:o(Cf({variant:t,size:a,className:e})),...r}));Sf.displayName="Code";var Tf=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"}}),Mf=K__namespace.forwardRef(({className:e,variant:t,size:a,code:r,copyable:n=true,copyLabel:i="Copy",onCopy:s,symbol:l="$",hideSymbol:d=false,...m},u)=>{let[c,f]=K__namespace.useState(false),p=async()=>{try{await navigator.clipboard.writeText(r),f(!0),s?.(),setTimeout(()=>f(!1),2e3);}catch(h){console.error("Failed to copy:",h);}};return jsxRuntime.jsxs("div",{ref:u,className:o(Tf({variant:t,size:a,className:e})),...m,children:[!d&&jsxRuntime.jsx("span",{className:"text-muted-foreground select-none",children:l}),jsxRuntime.jsx("code",{className:"flex-1 truncate",children:r}),n&&jsxRuntime.jsx("button",{type:"button",onClick:p,className:o("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":c?"Copied":i,children:c?jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4 text-green-500"}):jsxRuntime.jsx(lucideReact.Copy,{className:"h-4 w-4 text-muted-foreground"})})]})});Mf.displayName="Snippet";var Zs=classVarianceAuthority.cva("overflow-hidden",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"md"}}),kf=K__namespace.forwardRef(({className:e,radius:t,src:a,alt:r,fallback:n,showSkeleton:i=true,onLoad:s,onError:l,fit:d="cover",aspectRatio:m,style:u,...c},f)=>{let[p,h]=K__namespace.useState("loading");K__namespace.useEffect(()=>{a&&h("loading");},[a]);let R=()=>{h("loaded"),s?.();},g=()=>{h("error"),l?.();},x={contain:"object-contain",cover:"object-cover",fill:"object-fill",none:"object-none","scale-down":"object-scale-down"}[d];return p==="error"&&n?jsxRuntime.jsx("div",{className:o(Zs({radius:t}),"flex items-center justify-center bg-muted",e),style:{aspectRatio:m,...u},children:n}):jsxRuntime.jsxs("div",{className:o(Zs({radius:t}),"relative",e),style:{aspectRatio:m,...u},children:[p==="loading"&&i&&jsxRuntime.jsx(wn,{className:"absolute inset-0 h-full w-full"}),jsxRuntime.jsx("img",{ref:f,src:a,alt:r,onLoad:R,onError:g,className:o("h-full w-full transition-opacity duration-300",x,p==="loading"?"opacity-0":"opacity-100"),...c})]})});kf.displayName="Image";var Vf=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"}}),If=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"}}),Ef=K__namespace.createContext({value:"",onValueChange:()=>{},multiple:false,size:"md"}),Hf=K__namespace.forwardRef(({className:e,size:t="md",value:a,defaultValue:r="",onValueChange:n,multiple:i=false,children:s,...l},d)=>{let[m,u]=K__namespace.useState(r),c=a??m,f=p=>{let h;if(i){let R=Array.isArray(c)?c:[c].filter(Boolean);R.includes(p)?h=R.filter(g=>g!==p):h=[...R,p];}else h=p;n?n(h):u(h);};return jsxRuntime.jsx(Ef.Provider,{value:{value:c,onValueChange:f,multiple:i,size:t??"md"},children:jsxRuntime.jsx("div",{ref:d,role:"listbox","aria-multiselectable":i,className:o(Vf({size:t,className:e})),...l,children:s})})});Hf.displayName="Listbox";var Af=K__namespace.forwardRef(({className:e,value:t,disabled:a,icon:r,description:n,children:i,...s},l)=>{let{value:d,onValueChange:m,multiple:u,size:c}=K__namespace.useContext(Ef),f=u?Array.isArray(d)&&d.includes(t):d===t,p=()=>{a||m(t);},h=R=>{(R.key==="Enter"||R.key===" ")&&!a&&(R.preventDefault(),m(t));};return jsxRuntime.jsxs("div",{ref:l,role:"option","aria-selected":f,"data-disabled":a?"":void 0,tabIndex:a?-1:0,className:o(If({size:c}),f&&"bg-accent text-accent-foreground",e),onClick:p,onKeyDown:h,...s,children:[r&&jsxRuntime.jsx("span",{className:"mr-2 flex-shrink-0",children:r}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:"truncate",children:i}),n&&jsxRuntime.jsx("div",{className:"text-xs text-muted-foreground truncate",children:n})]}),f&&jsxRuntime.jsx(lucideReact.Check,{className:"ml-2 h-4 w-4 flex-shrink-0"})]})});Af.displayName="ListboxItem";var Bf=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"}}),Ff=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 PN({className:e,variant:t,size:a,items:r,onReorder:n,renderItem:i,showHandle:s=true,disabled:l=false,...d},m){let[u,c]=K__namespace.useState(null),[f,p]=K__namespace.useState(null),h=(b,v)=>{l||(c(v),b.dataTransfer.effectAllowed="move",b.dataTransfer.setData("text/plain",String(v)));},R=(b,v)=>{b.preventDefault(),!(l||u===null||u===v)&&p(v);},g=()=>{p(null);},x=(b,v)=>{if(b.preventDefault(),l||u===null||u===v){c(null),p(null);return}let P=[...r],[y]=P.splice(u,1);P.splice(v,0,y),n?.(P),c(null),p(null);},w=()=>{c(null),p(null);};return jsxRuntime.jsx("div",{ref:m,className:o(Bf({variant:t,size:a,className:e})),...d,children:r.map((b,v)=>jsxRuntime.jsxs("div",{draggable:!l,onDragStart:P=>h(P,v),onDragOver:P=>R(P,v),onDragLeave:g,onDrop:P=>x(P,v),onDragEnd:w,className:o(Ff({variant:t,size:a,isDragging:u===v,isDragOver:f===v}),!l&&"cursor-move"),children:[s&&jsxRuntime.jsx("div",{className:o("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:i(b,v)})]},b.id))})}var CN=K__namespace.forwardRef(PN);var Wf=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}}),kN={sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8"},$f=K__namespace.forwardRef(({className:e,variant:t,loading:a=true,size:r="md",spinner:n,text:i,children:s,...l},d)=>jsxRuntime.jsxs("div",{ref:d,className:o("relative",e),...l,children:[s,jsxRuntime.jsx("div",{className:o(Wf({variant:t,visible:a})),"aria-hidden":!a,children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2",children:[n||jsxRuntime.jsx(lucideReact.Loader2,{className:o(kN[r],"animate-spin text-primary")}),i&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:i})]})})]}));$f.displayName="LoadingOverlay";var _f=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"}}),Kf=K__namespace.forwardRef(({className:e,color:t,isLoading:a=false,progress:r,showSpinner:n=false,...i},s)=>{let[l,d]=K__namespace.useState(0),[m,u]=K__namespace.useState(false),c=K__namespace.useRef(null);return K__namespace.useEffect(()=>{if(r!==void 0){d(r),u(r>0&&r<100);return}return a?(u(true),d(10),c.current=setInterval(()=>{d(f=>{if(f>=90)return f;let p=Math.random()*10;return Math.min(f+p,90)});},500)):l>0&&(d(100),setTimeout(()=>{u(false),d(0);},200)),()=>{c.current&&clearInterval(c.current);}},[a,r]),!m&&r===void 0||r!==void 0&&(r<=0||r>=100)?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{ref:s,className:o(_f({color:t,className:e})),style:{width:`${l}%`},role:"progressbar","aria-valuenow":l,"aria-valuemin":0,"aria-valuemax":100,...i,children:jsxRuntime.jsx("div",{className:"absolute right-0 h-full w-24 -translate-y-1 rotate-3 bg-inherit opacity-50 blur-sm"})}),n&&m&&jsxRuntime.jsx("div",{className:"fixed top-4 right-4 z-[9999]",children:jsxRuntime.jsx("div",{className:o("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")})})]})});Kf.displayName="NProgress";var Xf=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}}),Uf={sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8"},HN={sm:"h-1.5 w-1.5",md:"h-2 w-2",lg:"h-3 w-3"},qf=K__namespace.forwardRef(({className:e,variant:t="spinner",size:a="md",fullScreen:r,text:n,color:i="primary",...s},l)=>{let d={primary:"text-primary",secondary:"text-secondary",muted:"text-muted-foreground"}[i],m=()=>{switch(t){case "dots":return jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:[0,1,2].map(u=>jsxRuntime.jsx("div",{className:o(HN[a||"md"],"animate-bounce rounded-full bg-current",d),style:{animationDelay:`${u*.15}s`}},u))});case "pulse":return jsxRuntime.jsx("div",{className:o(Uf[a||"md"],"animate-pulse rounded-full bg-current",d)});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:o(Uf[a||"md"],"animate-spin",d)})}};return jsxRuntime.jsx("div",{ref:l,className:o(Xf({variant:t,size:a,fullScreen:r,className:e})),role:"status","aria-label":n||"Loading",...s,children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2",children:[m(),n&&jsxRuntime.jsx("span",{className:o("text-sm",d),children:n})]})})});qf.displayName="Loading";var el=class extends K__namespace.Component{constructor(t){super(t),this.state={hasError:false,error:null};}static getDerivedStateFromError(t){return {hasError:true,error:t}}componentDidCatch(t,a){this.props.onError?.(t,a);}componentDidUpdate(t){this.state.hasError&&this.props.resetKeys&&this.props.resetKeys.some((r,n)=>r!==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(tl,{error:this.state.error,onReset:this.reset}):this.props.children}},tl=K__namespace.forwardRef(({error:e,onReset:t,className:a},r)=>jsxRuntime.jsxs("div",{ref:r,className:o("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",a),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"]})]}));tl.displayName="DefaultErrorFallback";var BN=el;var Jf=K__namespace.forwardRef(({value:e,defaultValue:t,onValueChange:a,placeholder:r="Pick a date range",dateFormat:n="LLL dd, y",disabled:i=false,minDate:s,maxDate:l,numberOfMonths:d=2,className:m,align:u="start"},c)=>{let[f,p]=K__namespace.useState(false),[h,R]=K__namespace.useState(t),g=e!==void 0,x=g?e:h,w=v=>{g||R(v),a?.(v);},b=v=>{if(!v)return r;let{from:P,to:y}=v;return P&&y?`${dateFns.format(P,n)} - ${dateFns.format(y,n)}`:P?dateFns.format(P,n):r};return jsxRuntime.jsxs(Ne,{open:f,onOpenChange:p,children:[jsxRuntime.jsx(Se,{asChild:true,children:jsxRuntime.jsxs(G,{ref:c,variant:"bordered",disabled:i,className:o("w-full justify-start text-left font-normal",!x?.from&&"text-muted-foreground",m),children:[jsxRuntime.jsx(lucideReact.Calendar,{className:"mr-2 h-4 w-4"}),b(x)]})}),jsxRuntime.jsx(xe,{className:"w-auto p-0",align:u,children:jsxRuntime.jsx(Or,{mode:"range",defaultMonth:x?.from,selected:x,onSelect:w,numberOfMonths:d,disabled:v=>!!(s&&v<s||l&&v>l),initialFocus:true})})]})});Jf.displayName="DateRangePicker";var ao=e=>String(e).padStart(2,"0"),Qf=K__namespace.forwardRef(({value:e,onValueChange:t,placeholder:a="Pick a time",use24Hour:r=true,minuteStep:n=1,disabled:i=false,className:s},l)=>{let[d,m]=K__namespace.useState(false),u=r?Array.from({length:24},(b,v)=>v):Array.from({length:12},(b,v)=>v+1),c=Array.from({length:Math.floor(60/n)},(b,v)=>v*n),f=b=>{if(!b)return a;if(r)return `${ao(b.hours)}:${ao(b.minutes)}`;let v=b.hours%12||12,P=b.hours>=12?"PM":"AM";return `${ao(v)}:${ao(b.minutes)} ${P}`},p=b=>{let v=e?.minutes??0,P=b;if(!r&&e){let y=e.hours>=12;y&&b!==12?P=b+12:!y&&b===12&&(P=0);}t?.({hours:P,minutes:v});},h=b=>{let v=e?.hours??0;t?.({hours:v,minutes:b});},R=b=>{if(!e)return;let v=e.hours;b==="AM"&&e.hours>=12?v=e.hours-12:b==="PM"&&e.hours<12&&(v=e.hours+12),t?.({hours:v,minutes:e.minutes});},g=()=>{let b=new Date;t?.({hours:b.getHours(),minutes:b.getMinutes()});},x=e?e.hours>=12?"PM":"AM":void 0,w=e?r?e.hours:e.hours%12||12:void 0;return jsxRuntime.jsxs(Ne,{open:d,onOpenChange:m,children:[jsxRuntime.jsx(Se,{asChild:true,children:jsxRuntime.jsxs(G,{ref:l,variant:"bordered",disabled:i,className:o("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"}),f(e)]})}),jsxRuntime.jsxs(xe,{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(ze,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"flex flex-col p-1",children:u.map(b=>jsxRuntime.jsx(G,{variant:w===b?"solid":"ghost",size:"sm",className:"h-8 w-12 justify-center",onClick:()=>p(b),children:ao(b)},b))})})]}),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(ze,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"flex flex-col p-1",children:c.map(b=>jsxRuntime.jsx(G,{variant:e?.minutes===b?"solid":"ghost",size:"sm",className:"h-8 w-12 justify-center",onClick:()=>h(b),children:ao(b)},b))})})]}),!r&&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(G,{variant:x==="AM"?"solid":"ghost",size:"sm",className:"h-8 w-12",onClick:()=>R("AM"),children:"AM"}),jsxRuntime.jsx(G,{variant:x==="PM"?"solid":"ghost",size:"sm",className:"h-8 w-12",onClick:()=>R("PM"),children:"PM"})]})]})]}),jsxRuntime.jsxs("div",{className:"flex justify-between border-t p-2",children:[jsxRuntime.jsx(G,{variant:"ghost",size:"sm",onClick:g,children:"Now"}),jsxRuntime.jsx(G,{size:"sm",onClick:()=>m(false),children:"Done"})]})]})]})});Qf.displayName="TimePicker";var eg=classVarianceAuthority.cva("overflow-auto",{variants:{variant:{default:"",bordered:"border rounded-lg",cards:""}},defaultVariants:{variant:"default"}});function WN({className:e,variant:t,items:a,itemHeight:r,height:n,overscan:i=3,renderItem:s,getItemKey:l,gap:d=0,onScrollChange:m,...u},c){let f=K__namespace.useRef(null),[p,h]=K__namespace.useState(0);K__namespace.useImperativeHandle(c,()=>f.current);let R=a.length*(r+d)-d,g=r+d,x=Math.max(0,Math.floor(p/g)-i),w=Math.ceil(n/g)+2*i,b=Math.min(a.length-1,x+w),v=y=>{let C=y.currentTarget.scrollTop;h(C),m?.(C);},P=K__namespace.useMemo(()=>{let y=[];for(let C=x;C<=b;C++)a[C]!==void 0&&y.push({item:a[C],index:C,style:{position:"absolute",top:C*g,left:0,right:0,height:r}});return y},[a,x,b,g,r]);return jsxRuntime.jsx("div",{ref:f,className:o(eg({variant:t,className:e})),style:{height:n,position:"relative"},onScroll:v,...u,children:jsxRuntime.jsx("div",{style:{height:R,position:"relative"},children:P.map(({item:y,index:C,style:M})=>jsxRuntime.jsx("div",{style:M,children:s(y,C)},l?l(y,C):C))})})}var $N=K__namespace.forwardRef(WN);var ag=classVarianceAuthority.cva("",{variants:{variant:{default:"",bordered:"border rounded-lg overflow-hidden"}},defaultVariants:{variant:"default"}}),ol=classVarianceAuthority.cva("flex items-center justify-center py-4",{variants:{size:{sm:"py-2",md:"py-4",lg:"py-6"}},defaultVariants:{size:"md"}}),rg=K__namespace.forwardRef(({className:e,variant:t,size:a,children:r,onLoadMore:n,hasMore:i,isLoading:s=false,loader:l,threshold:d=100,rootMargin:m,useWindow:u=false,endMessage:c,...f},p)=>{let h=K__namespace.useRef(null),R=K__namespace.useRef(null),g=K__namespace.useRef(false);K__namespace.useImperativeHandle(p,()=>h.current),K__namespace.useEffect(()=>{let w=R.current;if(!w)return;let b=new IntersectionObserver(v=>{let[P]=v;P.isIntersecting&&i&&!s&&!g.current&&(g.current=true,Promise.resolve(n()).finally(()=>{g.current=false;}));},{root:u?null:h.current,rootMargin:m||`${d}px`,threshold:0});return b.observe(w),()=>{b.disconnect();}},[i,s,n,d,m,u]);let x=jsxRuntime.jsx("div",{className:o(ol({size:a})),children:jsxRuntime.jsx(lucideReact.Loader2,{className:"h-6 w-6 animate-spin text-muted-foreground"})});return jsxRuntime.jsxs("div",{ref:h,className:o(ag({variant:t,className:e})),...f,children:[r,jsxRuntime.jsx("div",{ref:R,className:"h-px w-full"}),s&&(l||x),!i&&!s&&c&&jsxRuntime.jsx("div",{className:o(ol({size:a}),"text-muted-foreground text-sm"),children:c})]})});rg.displayName="InfiniteScroll";var jo=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ng__namespace.Root,{ref:a,className:o(e),...t}));jo.displayName="VisuallyHidden";var YN={opaque:"bg-black/80",blur:"bg-black/50 backdrop-blur-sm",transparent:"bg-transparent"},jN={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"},sg=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"),il=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"}}),lg=K__namespace.createContext({scrollBehavior:"inside"}),XN=()=>K__namespace.useContext(lg),dg=K__namespace.forwardRef(({open:e,onOpenChange:t,trigger:a,title:r="Modal",children:n,hideCloseButton:i=false,isDismissable:s=true,isKeyboardDismissDisabled:l=false,backdrop:d="opaque",placement:m="center",scrollBehavior:u="inside",size:c,className:f},p)=>jsxRuntime.jsx(lg.Provider,{value:{scrollBehavior:u},children:jsxRuntime.jsxs(ne__namespace.Root,{open:e,onOpenChange:t,children:[a&&jsxRuntime.jsx(ne__namespace.Trigger,{asChild:true,children:a}),jsxRuntime.jsxs(ne__namespace.Portal,{children:[jsxRuntime.jsx(ne__namespace.Overlay,{className:o(sg(),YN[d],u==="outside"&&"overflow-y-auto flex items-start justify-center py-4"),children:u==="outside"?jsxRuntime.jsxs(ne__namespace.Content,{ref:p,className:o("relative z-50 grid gap-4 border bg-background p-6 shadow-lg sm:rounded-lg dark:border-0",c==="xs"&&"w-full max-w-xs",c==="sm"&&"w-full max-w-sm",c==="md"&&"w-full max-w-md",c==="lg"&&"w-full max-w-lg",c==="xl"&&"w-full max-w-xl",c==="2xl"&&"w-full max-w-2xl",c==="3xl"&&"w-full max-w-3xl",c==="4xl"&&"w-full max-w-4xl",c==="5xl"&&"w-full max-w-5xl",c==="full"&&"w-[calc(100vw-2rem)] min-h-[calc(100vh-2rem)]",!c&&"w-full max-w-md",f),onEscapeKeyDown:l?h=>h.preventDefault():void 0,onPointerDownOutside:s?void 0:h=>h.preventDefault(),children:[jsxRuntime.jsx(jo,{children:jsxRuntime.jsx(ne__namespace.Title,{children:r})}),n,!i&&jsxRuntime.jsx(ne__namespace.Close,{asChild:true,children:jsxRuntime.jsxs(G,{variant:"light",size:"icon",radius:"full",className:"absolute right-2 top-2 h-8 w-8",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})})]}):null}),u==="inside"&&jsxRuntime.jsxs(ne__namespace.Content,{ref:p,className:o(il({size:c}),jN[m],"dark:border-0 max-h-[calc(100vh-2rem)] !flex !flex-col overflow-hidden gap-4",f),onEscapeKeyDown:l?h=>h.preventDefault():void 0,onPointerDownOutside:s?void 0:h=>h.preventDefault(),children:[jsxRuntime.jsx(jo,{children:jsxRuntime.jsx(ne__namespace.Title,{children:r})}),n,!i&&jsxRuntime.jsx(ne__namespace.Close,{asChild:true,children:jsxRuntime.jsxs(G,{variant:"light",size:"icon",radius:"full",className:"absolute right-2 top-2 h-8 w-8",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})})]})]})]})}));dg.displayName="Modal";var qN=ne__namespace.Root,ZN=ne__namespace.Trigger,cg=ne__namespace.Portal,JN=ne__namespace.Close,sl=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ne__namespace.Overlay,{ref:a,className:o(sg(),e),...t}));sl.displayName="ModalOverlay";var mg=K__namespace.forwardRef(({className:e,children:t,size:a,showCloseButton:r=true,...n},i)=>jsxRuntime.jsxs(cg,{children:[jsxRuntime.jsx(sl,{}),jsxRuntime.jsxs(ne__namespace.Content,{ref:i,className:o(il({size:a}),e),...n,children:[t,r&&jsxRuntime.jsx(ne__namespace.Close,{asChild:true,children:jsxRuntime.jsxs(G,{variant:"light",size:"icon",radius:"full",className:"absolute right-2 top-2 h-8 w-8",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})})]})]}));mg.displayName="ModalContent";var ug=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex-shrink-0 flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ug.displayName="ModalHeader";var pg=({className:e,children:t})=>{let{scrollBehavior:a}=XN();return a==="inside"?jsxRuntime.jsx(ze,{className:o("flex-1 min-h-0 -mx-6 px-6",e),children:t}):jsxRuntime.jsx("div",{className:o(e),children:t})};pg.displayName="ModalBody";var fg=({className:e,children:t,...a})=>jsxRuntime.jsx("div",{className:o("flex-shrink-0 flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...a,children:K__namespace.Children.map(t,r=>K__namespace.isValidElement(r)?jsxRuntime.jsx(ne__namespace.Close,{asChild:true,children:r}):r)});fg.displayName="ModalFooter";var gg=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ne__namespace.Title,{ref:a,className:o("text-lg font-semibold leading-none tracking-tight",e),...t}));gg.displayName="ModalTitle";var bg=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ne__namespace.Description,{ref:a,className:o("text-sm text-muted-foreground",e),...t}));bg.displayName="ModalDescription";var hg=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"}}),oP=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"}}),nP={default:lucideReact.HelpCircle,danger:lucideReact.XCircle,warning:lucideReact.AlertTriangle,success:lucideReact.CheckCircle,info:lucideReact.Info},ll=K__namespace.forwardRef(({open:e,onOpenChange:t,trigger:a,title:r,description:n,confirmText:i="Confirm",cancelText:s="Cancel",onConfirm:l,onCancel:d,showIcon:m=true,icon:u,variant:c="default",loading:f=false,disabled:p=false,className:h},R)=>{let[g,x]=K__namespace.useState(false),w=nP[c||"default"],b=async()=>{if(l){let y=l();if(y instanceof Promise){x(true);try{await y;}finally{x(false);}}}},v=()=>{d?.();},P=f||g;return jsxRuntime.jsxs(ke__namespace.Root,{open:e,onOpenChange:t,children:[a&&jsxRuntime.jsx(ke__namespace.Trigger,{asChild:true,children:a}),jsxRuntime.jsxs(ke__namespace.Portal,{children:[jsxRuntime.jsx(ke__namespace.Overlay,{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"}),jsxRuntime.jsxs(ke__namespace.Content,{ref:R,className:o("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",h),children:[jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-4 sm:flex-row sm:items-start",children:[m&&jsxRuntime.jsx("div",{className:o(hg({variant:c})),children:u||jsxRuntime.jsx(w,{className:"h-6 w-6"})}),jsxRuntime.jsxs("div",{className:"flex flex-col space-y-2 text-center sm:text-left",children:[jsxRuntime.jsx(ke__namespace.Title,{className:"text-lg font-semibold",children:r}),n&&jsxRuntime.jsx(ke__namespace.Description,{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(ke__namespace.Cancel,{className:o(qt({variant:"bordered"})),onClick:v,disabled:P,children:s}),jsxRuntime.jsx(ke__namespace.Action,{className:o(qt(),oP({variant:c}),P&&"opacity-50 cursor-not-allowed"),onClick:b,disabled:p||P,children:P?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..."]}):i})]})]})]})]})});ll.displayName="ConfirmDialog";function iP(){let[e,t]=K__namespace.useState({open:false,options:null,resolve:null}),a=K__namespace.useCallback(l=>new Promise(d=>{t({open:true,options:l,resolve:d});}),[]),r=K__namespace.useCallback(()=>{e.resolve?.(true),t({open:false,options:null,resolve:null});},[e.resolve]),n=K__namespace.useCallback(()=>{e.resolve?.(false),t({open:false,options:null,resolve:null});},[e.resolve]),i=K__namespace.useCallback(l=>{l||(e.resolve?.(false),t({open:false,options:null,resolve:null}));},[e.resolve]),s=K__namespace.useMemo(()=>e.options?jsxRuntime.jsx(ll,{open:e.open,onOpenChange:i,title:e.options.title,description:e.options.description,confirmText:e.options.confirmText,cancelText:e.options.cancelText,variant:e.options.variant,onConfirm:r,onCancel:n}):null,[e,r,n,i]);return {confirm:a,ConfirmDialog:s}}var bP=e=>e.map(t=>typeof t=="string"?{src:t}:t),cl=K__namespace.forwardRef(({images:e,open:t,onOpenChange:a,initialIndex:r=0,onIndexChange:n,trigger:i,showThumbnails:s=true,showZoom:l=true,showRotate:d=true,showDownload:m=true,showFullscreen:u=true,showNavigation:c=true,showCounter:f=true,closeOnBackdropClick:p=true,className:h},R)=>{let g=K__namespace.useMemo(()=>bP(e),[e]),[x,w]=K__namespace.useState(r),[b,v]=K__namespace.useState(1),[P,y]=K__namespace.useState(0),[C,M]=K__namespace.useState(false),[T,N]=K__namespace.useState(false),[S,k]=K__namespace.useState({x:0,y:0}),[L,E]=K__namespace.useState({x:0,y:0}),V=K__namespace.useRef(null),D=g[x];K__namespace.useEffect(()=>{w(r);},[r]),K__namespace.useEffect(()=>{n?.(x);},[x,n]),K__namespace.useEffect(()=>{v(1),y(0),k({x:0,y:0});},[x]);let I=K__namespace.useCallback(()=>{w(F=>F>0?F-1:g.length-1);},[g.length]),z=K__namespace.useCallback(()=>{w(F=>F<g.length-1?F+1:0);},[g.length]),W=()=>{v(F=>Math.min(F+.5,4));},H=()=>{v(F=>{let oe=Math.max(F-.5,.5);return oe===1&&k({x:0,y:0}),oe});},j=()=>{y(F=>(F+90)%360);},$=async()=>{if(D)try{let oe=await(await fetch(D.src)).blob(),ee=URL.createObjectURL(oe),at=document.createElement("a");at.href=ee,at.download=D.alt||`image-${x+1}`,document.body.appendChild(at),at.click(),document.body.removeChild(at),URL.revokeObjectURL(ee);}catch{window.open(D.src,"_blank");}},Ve=async()=>{if(V.current)if(C)try{await document.exitFullscreen(),M(!1);}catch{}else try{await V.current.requestFullscreen(),M(!0);}catch{}},ve=F=>{b>1&&(N(true),E({x:F.clientX-S.x,y:F.clientY-S.y}));},A=F=>{T&&b>1&&k({x:F.clientX-L.x,y:F.clientY-L.y});},B=()=>{N(false);},te=K__namespace.useCallback(F=>{switch(F.key){case "ArrowLeft":I();break;case "ArrowRight":z();break;case "Escape":a?.(false);break;case "+":case "=":W();break;case "-":H();break}},[I,z,a]);return K__namespace.useEffect(()=>{if(t)return window.addEventListener("keydown",te),()=>window.removeEventListener("keydown",te)},[t,te]),K__namespace.useEffect(()=>{let F=()=>{M(!!document.fullscreenElement);};return document.addEventListener("fullscreenchange",F),()=>document.removeEventListener("fullscreenchange",F)},[]),g.length===0?null:jsxRuntime.jsxs(ne__namespace.Root,{open:t,onOpenChange:a,children:[i&&jsxRuntime.jsx(ne__namespace.Trigger,{asChild:true,children:i}),jsxRuntime.jsxs(ne__namespace.Portal,{children:[jsxRuntime.jsx(ne__namespace.Overlay,{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",onClick:p?void 0:F=>F.stopPropagation()}),jsxRuntime.jsxs(ne__namespace.Content,{ref:R,className:o("fixed inset-0 z-50 flex flex-col outline-none",h),onPointerDownOutside:p?void 0:F=>F.preventDefault(),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:[f&&g.length>1&&jsxRuntime.jsxs("span",{className:"text-sm",children:[x+1," / ",g.length]}),D?.title&&jsxRuntime.jsx("span",{className:"ml-4 text-sm font-medium",children:D.title})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[l&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:H,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(b*100),"%"]}),jsxRuntime.jsx("button",{onClick:W,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:"Zoom in",children:jsxRuntime.jsx(lucideReact.ZoomIn,{className:"h-5 w-5"})})]}),d&&jsxRuntime.jsx("button",{onClick:j,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:"Rotate",children:jsxRuntime.jsx(lucideReact.RotateCw,{className:"h-5 w-5"})}),m&&jsxRuntime.jsx("button",{onClick:$,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:"Download",children:jsxRuntime.jsx(lucideReact.Download,{className:"h-5 w-5"})}),u&&jsxRuntime.jsx("button",{onClick:Ve,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:C?"Exit fullscreen":"Fullscreen",children:C?jsxRuntime.jsx(lucideReact.Minimize2,{className:"h-5 w-5"}):jsxRuntime.jsx(lucideReact.Maximize2,{className:"h-5 w-5"})}),jsxRuntime.jsxs(ne__namespace.Close,{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:ve,onMouseMove:A,onMouseUp:B,onMouseLeave:B,children:[c&&g.length>1&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:I,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:z,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:D?.src,alt:D?.alt||"",className:o("max-h-full max-w-full object-contain transition-transform duration-200",T?"cursor-grabbing":b>1?"cursor-grab":""),style:{transform:`translate(${S.x}px, ${S.y}px) scale(${b}) rotate(${P}deg)`},draggable:false})]}),D?.description&&jsxRuntime.jsx("div",{className:"p-4 text-center text-white text-sm",children:D.description}),s&&g.length>1&&jsxRuntime.jsx("div",{className:"flex justify-center gap-2 p-4 overflow-x-auto",children:g.map((F,oe)=>jsxRuntime.jsx("button",{onClick:()=>w(oe),className:o("h-16 w-16 flex-shrink-0 overflow-hidden rounded border-2 transition-all",x===oe?"border-white opacity-100":"border-transparent opacity-50 hover:opacity-75"),children:jsxRuntime.jsx("img",{src:F.src,alt:F.alt||`Thumbnail ${oe+1}`,className:"h-full w-full object-cover"})},oe))})]})]})]})});cl.displayName="ImageViewer";var xg=({children:e,images:t,index:a=0,className:r})=>{let[n,i]=K__namespace.useState(false);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:()=>i(true),className:o("cursor-zoom-in",r),children:e}),jsxRuntime.jsx(cl,{images:t,open:n,onOpenChange:i,initialIndex:a})]})};xg.displayName="ImageViewerTrigger";var wg=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:{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-6 w-6",md:"h-8 w-8",lg:"h-10 w-10"}},defaultVariants:{variant:"default",size:"md"}}),Ng=K__namespace.forwardRef(({className:e,variant:t,size:a,iconSize:r,...n},i)=>{let l=r??{sm:14,md:16,lg:20}[a??"md"];return jsxRuntime.jsx("button",{ref:i,type:"button",className:o(wg({variant:t,size:a}),e),"aria-label":"Close",...n,children:jsxRuntime.jsx(lucideReact.X,{style:{width:l,height:l}})})});Ng.displayName="CloseButton";var Cg=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"}}),Sg=K__namespace.forwardRef(({className:e,variant:t,size:a,color:r,radius:n,loading:i,disabled:s,children:l,...d},m)=>jsxRuntime.jsx("button",{ref:m,type:"button",className:o(Cg({variant:t,size:a,color:r,radius:n}),e),disabled:s||i,...d,children:i?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}));Sg.displayName="ActionIcon";var kg=({children:e,container:t,disabled:a=false})=>{let[r,n]=K__namespace.useState(false);if(K__namespace.useEffect(()=>{n(true);},[]),a||!r)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:e});let i=null;return typeof t=="string"?i=document.querySelector(t):t instanceof Element?i=t:i=document.body,i?reactDom.createPortal(e,i):jsxRuntime.jsx(jsxRuntime.Fragment,{children:e})};kg.displayName="Portal";var Dg=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}}),Lg=K__namespace.forwardRef(({className:e,color:t,size:a,position:r,ping:n,content:i,show:s=true,offset:l,style:d,...m},u)=>{if(!s)return null;let c=i!=null;return jsxRuntime.jsxs("span",{ref:u,className:o(Dg({color:t,size:c?void 0:a,position:r,ping:n}),c&&"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:{...d,...l!==void 0&&{transform:`translate(${r?.includes("right")?l:-l}px, ${r?.includes("top")?-l:l}px)`}},...m,children:[n&&jsxRuntime.jsx("span",{className:o("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")}),i]})});Lg.displayName="Indicator";var Vg=K__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,className:o("relative inline-flex",e),...a,children:t}));Vg.displayName="IndicatorWrapper";var Eg=classVarianceAuthority.cva("relative overflow-auto",{variants:{orientation:{vertical:"",horizontal:"",both:""},size:{sm:"",md:"",lg:""}},defaultVariants:{orientation:"vertical",size:"md"}}),Hg=K__namespace.forwardRef(({className:e,orientation:t,size:a,hideScrollbar:r=false,shadowColor:n="rgba(0, 0, 0, 0.1)",children:i,...s},l)=>{let d=K__namespace.useRef(null),[m,u]=K__namespace.useState({top:false,bottom:false,left:false,right:false});K__namespace.useImperativeHandle(l,()=>d.current);let c=K__namespace.useCallback(()=>{let x=d.current;if(!x)return;let{scrollTop:w,scrollLeft:b,scrollHeight:v,scrollWidth:P,clientHeight:y,clientWidth:C}=x;u({top:w>0,bottom:w<v-y-1,left:b>0,right:b<P-C-1});},[]);K__namespace.useEffect(()=>{let x=d.current;if(x)return c(),x.addEventListener("scroll",c),window.addEventListener("resize",c),()=>{x.removeEventListener("scroll",c),window.removeEventListener("resize",c);}},[c]);let p={sm:"20px",md:"40px",lg:"60px"}[a??"md"],h=t==="vertical"||t==="both",R=t==="horizontal"||t==="both",g={maskImage:[h&&m.top&&`linear-gradient(to bottom, transparent, black ${p})`,h&&m.bottom&&`linear-gradient(to top, transparent, black ${p})`,R&&m.left&&`linear-gradient(to right, transparent, black ${p})`,R&&m.right&&`linear-gradient(to left, transparent, black ${p})`].filter(Boolean).join(", ")||void 0,maskComposite:"intersect",WebkitMaskComposite:"source-in"};return jsxRuntime.jsx("div",{ref:d,className:o(Eg({orientation:t,size:a}),r&&"scrollbar-hide [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]",e),style:g,...s,children:i})});Hg.displayName="ScrollShadow";var Ag=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"}}),TP={cmd:"\u2318",command:"\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"},MP=e=>{let t=e.toLowerCase();return TP[t]||e.toUpperCase()},zg=K__namespace.forwardRef(({className:e,variant:t,size:a,keys:r,children:n,...i},s)=>{let l=()=>r?(Array.isArray(r)?r:[r]).map((m,u)=>jsxRuntime.jsxs(K__namespace.Fragment,{children:[u>0&&jsxRuntime.jsx("span",{className:"mx-0.5 text-muted-foreground",children:"+"}),jsxRuntime.jsx("span",{children:MP(m)})]},u)):n;return jsxRuntime.jsx("kbd",{ref:s,className:o(Ag({variant:t,size:a}),e),...i,children:l()})});zg.displayName="Kbd";var Fg=K__namespace.forwardRef(({className:e,size:t,axis:a="both",style:r,...n},i)=>{let s=typeof t=="number"?`${t}px`:t,l={...r,...t?{width:a==="vertical"?void 0:s,height:a==="horizontal"?void 0:s,minWidth:a==="vertical"?void 0:s,minHeight:a==="horizontal"?void 0:s,flexShrink:0}:{flex:"1 1 auto"}};return jsxRuntime.jsx("div",{ref:i,"aria-hidden":"true",className:o(e),style:l,...n})});Fg.displayName="Spacer";var Og=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"}}),Gg=K__namespace.forwardRef(({className:e,variant:t,size:a,value:r,successDuration:n=2e3,onCopySuccess:i,onCopyError:s,copyIcon:l,successIcon:d,...m},u)=>{let[c,f]=K__namespace.useState(false),p={sm:14,md:16,lg:20}[a??"md"],h=async()=>{try{await navigator.clipboard.writeText(r),f(!0),i?.(),setTimeout(()=>{f(!1);},n);}catch(R){s?.(R);}};return jsxRuntime.jsx("button",{ref:u,type:"button",className:o(Og({variant:t,size:a}),e),onClick:h,"aria-label":c?"Copied":"Copy to clipboard",...m,children:c?d??jsxRuntime.jsx(lucideReact.Check,{className:"text-success",style:{width:p,height:p}}):l??jsxRuntime.jsx(lucideReact.Copy,{style:{width:p,height:p}})})});Gg.displayName="CopyButton";var $g=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"}}),zP=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],BP=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];function FP(e,t,a){let r=new Date(e,t,1),n=new Date(e,t+1,0),i=[],s=r.getDay()-a;s<0&&(s+=7);for(let d=s-1;d>=0;d--)i.push(new Date(e,t,-d));for(let d=1;d<=n.getDate();d++)i.push(new Date(e,t,d));let l=42-i.length;for(let d=1;d<=l;d++)i.push(new Date(e,t+1,d));return i}function OP(e,t){let a=[],n=e.getDay()-t;n<0&&(n+=7);let i=new Date(e);i.setDate(e.getDate()-n);for(let s=0;s<7;s++){let l=new Date(i);l.setDate(i.getDate()+s),a.push(l);}return a}function ui(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function mi(e){return ui(e,new Date)}function Wg(e,t){return e.filter(a=>{let r=new Date(a.start),n=new Date(a.end);return ui(r,t)||ui(n,t)||r<t&&n>t})}var _g=K__namespace.forwardRef(({className:e,variant:t,size:a,events:r=[],view:n="month",onViewChange:i,date:s,onDateChange:l,onEventClick:d,onSlotClick:m,weekStartsOn:u=0,locale:c="en-US",...f},p)=>{let[h,R]=K__namespace.useState(new Date),g=s??h,x=N=>{l?l(N):R(N);},w=u===1?BP:zP,b=()=>{let N=new Date(g);n==="month"?N.setMonth(N.getMonth()-1):n==="week"?N.setDate(N.getDate()-7):N.setDate(N.getDate()-1),x(N);},v=()=>{let N=new Date(g);n==="month"?N.setMonth(N.getMonth()+1):n==="week"?N.setDate(N.getDate()+7):N.setDate(N.getDate()+1),x(N);},P=()=>{x(new Date);},y=()=>n==="day"?g.toLocaleDateString(c,{weekday:"long",year:"numeric",month:"long",day:"numeric"}):g.toLocaleDateString(c,{year:"numeric",month:"long"}),C=()=>{let N=FP(g.getFullYear(),g.getMonth(),u);return jsxRuntime.jsxs("div",{className:"flex-1 flex flex-col",children:[jsxRuntime.jsx("div",{className:"grid grid-cols-7 border-b",children:w.map(S=>jsxRuntime.jsx("div",{className:"p-2 text-center font-medium text-muted-foreground",children:S},S))}),jsxRuntime.jsx("div",{className:"flex-1 grid grid-cols-7 grid-rows-6",children:N.map((S,k)=>{let L=Wg(r,S),E=S.getMonth()===g.getMonth();return jsxRuntime.jsxs("div",{className:o("min-h-[80px] border-b border-r p-1 cursor-pointer hover:bg-accent/50 transition-colors",!E&&"bg-muted/30"),onClick:()=>m?.(S),children:[jsxRuntime.jsx("div",{className:o("flex items-center justify-center w-7 h-7 rounded-full text-sm mb-1",mi(S)&&"bg-primary text-primary-foreground",!E&&"text-muted-foreground"),children:S.getDate()}),jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[L.slice(0,3).map(V=>jsxRuntime.jsx("div",{className:"text-xs px-1 py-0.5 rounded truncate cursor-pointer hover:opacity-80",style:{backgroundColor:V.color||"hsl(var(--primary))",color:"white"},onClick:D=>{D.stopPropagation(),d?.(V);},children:V.title},V.id)),L.length>3&&jsxRuntime.jsxs("div",{className:"text-xs text-muted-foreground px-1",children:["+",L.length-3," more"]})]})]},k)})})]})},M=()=>{let N=OP(g,u),S=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"}),N.map((k,L)=>jsxRuntime.jsxs("div",{className:o("p-2 text-center border-l",mi(k)&&"bg-primary/10"),children:[jsxRuntime.jsx("div",{className:"text-xs text-muted-foreground",children:w[L]}),jsxRuntime.jsx("div",{className:o("text-lg font-semibold",mi(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:S.map(k=>jsxRuntime.jsxs(K__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"]}),N.map((L,E)=>{let V=new Date(L);V.setHours(k,0,0,0);let D=r.filter(I=>{let z=new Date(I.start);return ui(z,L)&&z.getHours()===k});return jsxRuntime.jsx("div",{className:"h-12 border-b border-l cursor-pointer hover:bg-accent/50 relative",onClick:()=>m?.(V),children:D.map(I=>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:I.color||"hsl(var(--primary))",color:"white"},onClick:z=>{z.stopPropagation(),d?.(I);},children:I.title},I.id))},E)})]},k))})})]})},T=()=>{let N=Array.from({length:24},(k,L)=>L),S=Wg(r,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:o("inline-flex items-center justify-center w-12 h-12 rounded-full text-2xl font-semibold",mi(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:N.map(k=>{let L=new Date(g);L.setHours(k,0,0,0);let E=S.filter(V=>new Date(V.start).getHours()===k);return jsxRuntime.jsxs(K__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:()=>m?.(L),children:E.map(V=>jsxRuntime.jsx("div",{className:"absolute inset-x-1 top-0.5 text-xs px-2 py-1 rounded truncate cursor-pointer",style:{backgroundColor:V.color||"hsl(var(--primary))",color:"white"},onClick:D=>{D.stopPropagation(),d?.(V);},children:V.title},V.id))})]},k)})})})]})};return jsxRuntime.jsxs("div",{ref:p,className:o($g({variant:t,size:a,className:e})),...f,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(G,{variant:"bordered",size:"sm",onClick:P,children:"Today"}),jsxRuntime.jsx(G,{variant:"ghost",size:"icon",onClick:b,children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx(G,{variant:"ghost",size:"icon",onClick:v,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(N=>jsxRuntime.jsx(G,{variant:n===N?"solid":"ghost",size:"sm",onClick:()=>i?.(N),children:N.charAt(0).toUpperCase()+N.slice(1)},N))})]}),n==="month"&&C(),n==="week"&&M(),n==="day"&&T()]})});_g.displayName="FullCalendar";var qo=classVarianceAuthority.cva("w-full",{variants:{size:{sm:"h-48",md:"h-64",lg:"h-96"}},defaultVariants:{size:"md"}}),Zo=["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%))"],Kg=K__namespace.forwardRef(({className:e,size:t,data:a,dataKeys:r,colors:n=Zo,showGrid:i=true,showLegend:s=true,showTooltip:l=true,xAxisKey:d="name",curveType:m="monotone",...u},c)=>jsxRuntime.jsx("div",{ref:c,className:o(qo({size:t,className:e})),...u,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.LineChart,{data:a,children:[i&&jsxRuntime.jsx(recharts.CartesianGrid,{strokeDasharray:"3 3",className:"stroke-muted"}),jsxRuntime.jsx(recharts.XAxis,{dataKey:d,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,{}),r.map((f,p)=>jsxRuntime.jsx(recharts.Line,{type:m,dataKey:f,stroke:n[p%n.length],strokeWidth:2,dot:{fill:n[p%n.length],strokeWidth:0},activeDot:{r:6}},f))]})})}));Kg.displayName="LineChart";var Ug=K__namespace.forwardRef(({className:e,size:t,data:a,dataKeys:r,colors:n=Zo,showGrid:i=true,showLegend:s=true,showTooltip:l=true,xAxisKey:d="name",stacked:m=false,layout:u="horizontal",...c},f)=>jsxRuntime.jsx("div",{ref:f,className:o(qo({size:t,className:e})),...c,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.BarChart,{data:a,layout:u,children:[i&&jsxRuntime.jsx(recharts.CartesianGrid,{strokeDasharray:"3 3",className:"stroke-muted"}),jsxRuntime.jsx(recharts.XAxis,{dataKey:u==="horizontal"?d:void 0,type:u==="horizontal"?"category":"number",className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),jsxRuntime.jsx(recharts.YAxis,{dataKey:u==="vertical"?d:void 0,type:u==="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,{}),r.map((p,h)=>jsxRuntime.jsx(recharts.Bar,{dataKey:p,fill:n[h%n.length],stackId:m?"stack":void 0,radius:[4,4,0,0]},p))]})})}));Ug.displayName="BarChart";var Yg=K__namespace.forwardRef(({className:e,size:t,data:a,dataKey:r="value",nameKey:n="name",colors:i=Zo,innerRadius:s=0,outerRadius:l=80,showLegend:d=true,showTooltip:m=true,showLabels:u=false,...c},f)=>jsxRuntime.jsx("div",{ref:f,className:o(qo({size:t,className:e})),...c,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.PieChart,{children:[m&&jsxRuntime.jsx(recharts.Tooltip,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))",borderRadius:"var(--radius)"}}),d&&jsxRuntime.jsx(recharts.Legend,{}),jsxRuntime.jsx(recharts.Pie,{data:a,dataKey:r,nameKey:n,cx:"50%",cy:"50%",innerRadius:s,outerRadius:l,label:u,labelLine:u,children:a.map((p,h)=>jsxRuntime.jsx(recharts.Cell,{fill:i[h%i.length]},`cell-${h}`))})]})})}));Yg.displayName="PieChart";var jg=K__namespace.forwardRef(({className:e,size:t,data:a,dataKeys:r,colors:n=Zo,showGrid:i=true,showLegend:s=true,showTooltip:l=true,xAxisKey:d="name",stacked:m=false,curveType:u="monotone",...c},f)=>jsxRuntime.jsx("div",{ref:f,className:o(qo({size:t,className:e})),...c,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.AreaChart,{data:a,children:[i&&jsxRuntime.jsx(recharts.CartesianGrid,{strokeDasharray:"3 3",className:"stroke-muted"}),jsxRuntime.jsx(recharts.XAxis,{dataKey:d,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,{}),r.map((p,h)=>jsxRuntime.jsx(recharts.Area,{type:u,dataKey:p,stroke:n[h%n.length],fill:n[h%n.length],fillOpacity:.3,stackId:m?"stack":void 0},p))]})})}));jg.displayName="AreaChart";var Zg=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"}}),Jg=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"}}),xl=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 dC({card:e,columnId:t,variant:a,renderCard:r,onCardClick:n}){let{attributes:i,listeners:s,setNodeRef:l,transform:d,transition:m,isDragging:u}=sortable.useSortable({id:e.id,data:{columnId:t}}),c={transform:utilities.CSS.Transform.toString(d),transition:m};return jsxRuntime.jsx("div",{ref:l,style:c,className:o(xl({variant:a,isDragging:u})),onClick:()=>n?.(e,t),...i,...s,children:r?r(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 cC({column:e,variant:t,renderCard:a,onCardClick:r,onAddCard:n,showAddCard:i,columnHeight:s}){return jsxRuntime.jsxs("div",{className:o(Jg({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})]}),i&&jsxRuntime.jsx(G,{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(ze,{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(dC,{card:l,columnId:e.id,variant:t,renderCard:a,onCardClick:r},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 Qg=K__namespace.forwardRef(({className:e,variant:t,columns:a,onCardMove:r,onCardClick:n,onAddCard:i,renderCard:s,showAddCard:l=true,columnHeight:d=500,...m},u)=>{let[c,f]=K__namespace.useState(null),[p,h]=K__namespace.useState(null),R=core.useSensors(core.useSensor(core.PointerSensor,{activationConstraint:{distance:8}}),core.useSensor(core.KeyboardSensor,{coordinateGetter:sortable.sortableKeyboardCoordinates})),g=v=>a.find(P=>P.cards.some(y=>y.id===v));return jsxRuntime.jsxs(core.DndContext,{sensors:R,collisionDetection:core.closestCorners,onDragStart:v=>{let{active:P}=v,y=g(P.id);if(y){let C=y.cards.find(M=>M.id===P.id);C&&(f(C),h(y.id));}},onDragOver:v=>{let{active:P,over:y}=v;if(!y)return;let C=P.id,M=y.id,T=g(C),N=g(M)||a.find(L=>L.id===M);if(!T||!N||T.id===N.id)return;let S=N.cards.findIndex(L=>L.id===M),k=S===-1?N.cards.length:S;r?.(C,T.id,N.id,k);},onDragEnd:v=>{let{active:P,over:y}=v;if(y&&P.id!==y.id){let C=g(P.id),M=g(y.id)||a.find(T=>T.id===y.id);if(C&&M){let T=M.cards.findIndex(S=>S.id===y.id),N=T===-1?M.cards.length:T;r?.(P.id,C.id,M.id,N);}}f(null),h(null);},children:[jsxRuntime.jsx("div",{ref:u,className:o(Zg({variant:t,className:e})),...m,children:a.map(v=>jsxRuntime.jsx(cC,{column:v,variant:t,renderCard:s,onCardClick:n,onAddCard:i,showAddCard:l,columnHeight:d},v.id))}),jsxRuntime.jsx(core.DragOverlay,{children:c&&p&&jsxRuntime.jsx("div",{className:o(xl({variant:t,isDragging:true})),children:s?s(c,p):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:c.title}),c.description&&jsxRuntime.jsx("p",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:c.description})]})]})})})]})});Qg.displayName="KanbanBoard";var eb=classVarianceAuthority.cva("relative",{variants:{variant:{default:"",bordered:"border rounded-lg p-4",cards:"rounded-lg"}},defaultVariants:{variant:"default"}}),tb=K__namespace.createContext(null);function yl(){let e=K__namespace.useContext(tb);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var ab=K__namespace.forwardRef(({className:e,variant:t,children:a,opts:r,plugins:n,orientation:i="horizontal",showArrows:s=true,showDots:l=true,setApi:d,...m},u)=>{let[c,f]=mC__default.default({...r,axis:i==="horizontal"?"x":"y"},n),[p,h]=K__namespace.useState(false),[R,g]=K__namespace.useState(false),[x,w]=K__namespace.useState(0),[b,v]=K__namespace.useState([]),P=K__namespace.useCallback(N=>{N&&(w(N.selectedScrollSnap()),h(N.canScrollPrev()),g(N.canScrollNext()));},[]),y=K__namespace.useCallback(()=>{f?.scrollPrev();},[f]),C=K__namespace.useCallback(()=>{f?.scrollNext();},[f]),M=K__namespace.useCallback(N=>{f?.scrollTo(N);},[f]),T=K__namespace.useCallback(N=>{N.key==="ArrowLeft"?(N.preventDefault(),y()):N.key==="ArrowRight"&&(N.preventDefault(),C());},[y,C]);return K__namespace.useEffect(()=>{!f||!d||d(f);},[f,d]),K__namespace.useEffect(()=>{if(f)return v(f.scrollSnapList()),P(f),f.on("reInit",P),f.on("select",P),()=>{f?.off("select",P);}},[f,P]),jsxRuntime.jsx(tb.Provider,{value:{carouselRef:c,api:f,scrollPrev:y,scrollNext:C,canScrollPrev:p,canScrollNext:R,selectedIndex:x,scrollSnaps:b,scrollTo:M},children:jsxRuntime.jsxs("div",{ref:u,className:o(eb({variant:t,className:e})),onKeyDownCapture:T,role:"region","aria-roledescription":"carousel",...m,children:[jsxRuntime.jsx("div",{ref:c,className:"overflow-hidden",children:jsxRuntime.jsx("div",{className:o("flex",i==="horizontal"?"-ml-4":"-mt-4 flex-col"),children:a})}),s&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Rl,{}),jsxRuntime.jsx(wl,{})]}),l&&b.length>1&&jsxRuntime.jsx("div",{className:"flex justify-center gap-1.5 mt-4",children:b.map((N,S)=>jsxRuntime.jsx("button",{className:o("w-2 h-2 rounded-full transition-all",S===x?"bg-primary w-4":"bg-muted-foreground/30 hover:bg-muted-foreground/50"),onClick:()=>M(S),"aria-label":`Go to slide ${S+1}`},S))})]})})});ab.displayName="Carousel";var rb=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex",e),...t}));rb.displayName="CarouselContent";var ob=K__namespace.forwardRef(({className:e,basis:t="basis-full",...a},r)=>jsxRuntime.jsx("div",{ref:r,role:"group","aria-roledescription":"slide",className:o("min-w-0 shrink-0 grow-0 pl-4",t,e),...a}));ob.displayName="CarouselItem";var Rl=K__namespace.forwardRef(({className:e,variant:t="bordered",size:a="icon",...r},n)=>{let{scrollPrev:i,canScrollPrev:s}=yl();return jsxRuntime.jsxs(G,{ref:n,variant:t,size:a,className:o("absolute left-2 top-1/2 -translate-y-1/2 h-8 w-8 rounded-full",e),disabled:!s,onClick:i,...r,children:[jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Previous slide"})]})});Rl.displayName="CarouselPrevious";var wl=K__namespace.forwardRef(({className:e,variant:t="bordered",size:a="icon",...r},n)=>{let{scrollNext:i,canScrollNext:s}=yl();return jsxRuntime.jsxs(G,{ref:n,variant:t,size:a,className:o("absolute right-2 top-1/2 -translate-y-1/2 h-8 w-8 rounded-full",e),disabled:!s,onClick:i,...r,children:[jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Next slide"})]})});wl.displayName="CarouselNext";var nb=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"}}),hi={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"}},Pl={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}"]},ib=K__namespace.forwardRef(({className:e,size:t,onEmojiSelect:a,recentEmojis:r=[],defaultCategory:n="smileys",showSearch:i=true,showCategories:s=true,...l},d)=>{let[m,u]=K__namespace.useState(r.length>0?"recent":n),[c,f]=K__namespace.useState(""),h=c?Object.values(Pl).flat().filter(g=>g.toLowerCase().includes(c.toLowerCase())):m==="recent"?r:Pl[m]||[],R=g=>{a?.(g);};return jsxRuntime.jsxs("div",{ref:d,className:o(nb({size:t,className:e})),...l,children:[i&&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(xn,{placeholder:"Search emojis...",value:c,onChange:g=>f(g.target.value),className:"pl-8 h-8"})]})}),s&&!c&&jsxRuntime.jsx("div",{className:"flex border-b px-1",children:Object.entries(hi).map(([g,{icon:x}])=>g==="recent"&&r.length===0?null:jsxRuntime.jsx("button",{className:o("flex-1 p-2 text-lg hover:bg-accent rounded transition-colors",m===g&&"bg-accent"),onClick:()=>u(g),title:hi[g].name,children:x},g))}),!c&&jsxRuntime.jsx("div",{className:"px-3 py-1.5 text-xs font-medium text-muted-foreground",children:hi[m].name}),jsxRuntime.jsx(ze,{className:"flex-1",children:jsxRuntime.jsxs("div",{className:"grid grid-cols-8 gap-1 p-2",children:[h.map((g,x)=>jsxRuntime.jsx("button",{className:"w-8 h-8 flex items-center justify-center text-xl hover:bg-accent rounded transition-colors",onClick:()=>R(g),children:g},`${g}-${x}`)),h.length===0&&jsxRuntime.jsx("div",{className:"col-span-8 py-8 text-center text-muted-foreground text-sm",children:"No emojis found"})]})})]})});ib.displayName="EmojiPicker";var sb=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"}}),$C=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"}}),_C=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"}}),De=({icon:e,title:t,isActive:a,onClick:r,disabled:n})=>jsxRuntime.jsxs(or,{children:[jsxRuntime.jsx(nr,{asChild:true,children:jsxRuntime.jsx(G,{type:"button",variant:a?"solid":"ghost",size:"icon",className:"h-7 w-7",onClick:r,disabled:n,children:e})}),jsxRuntime.jsx(Ma,{side:"top",className:"text-xs",children:t})]}),lb=K__namespace.forwardRef(({className:e,variant:t,size:a,value:r="",onChange:n,placeholder:i="Start writing...",readOnly:s=false,showToolbar:l=true,minHeight:d,maxHeight:m,onEditorReady:u,...c},f)=>{let p=react.useEditor({extensions:[yC__default.default.configure({heading:{levels:[1,2,3]}}),RC__default.default.configure({openOnClick:false,HTMLAttributes:{class:"text-primary underline"}}),wC__default.default,NC__default.default.configure({types:["heading","paragraph"]}),PC__default.default.configure({placeholder:i})],content:r,editable:!s,onUpdate:({editor:R})=>{n?.(R.getHTML());},onCreate:({editor:R})=>{u?.(R);}});K__namespace.useEffect(()=>{p&&r!==p.getHTML()&&p.commands.setContent(r);},[r,p]),K__namespace.useEffect(()=>{p&&p.setEditable(!s);},[s,p]);let h=()=>{if(!p)return;let R=p.getAttributes("link").href,g=window.prompt("URL",R);if(g!==null){if(g===""){p.chain().focus().extendMarkRange("link").unsetLink().run();return}p.chain().focus().extendMarkRange("link").setLink({href:g}).run();}};return p?jsxRuntime.jsx(rr,{children:jsxRuntime.jsxs("div",{ref:f,className:o(sb({variant:t,size:a,className:e})),...c,children:[l&&!s&&jsxRuntime.jsxs("div",{className:o($C({size:a})),children:[jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Undo,{className:"h-4 w-4"}),title:"Undo",onClick:()=>p.chain().focus().undo().run(),disabled:!p.can().undo()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Redo,{className:"h-4 w-4"}),title:"Redo",onClick:()=>p.chain().focus().redo().run(),disabled:!p.can().redo()}),jsxRuntime.jsx(Ta,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Heading1,{className:"h-4 w-4"}),title:"Heading 1",isActive:p.isActive("heading",{level:1}),onClick:()=>p.chain().focus().toggleHeading({level:1}).run()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Heading2,{className:"h-4 w-4"}),title:"Heading 2",isActive:p.isActive("heading",{level:2}),onClick:()=>p.chain().focus().toggleHeading({level:2}).run()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Heading3,{className:"h-4 w-4"}),title:"Heading 3",isActive:p.isActive("heading",{level:3}),onClick:()=>p.chain().focus().toggleHeading({level:3}).run()}),jsxRuntime.jsx(Ta,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Bold,{className:"h-4 w-4"}),title:"Bold (Ctrl+B)",isActive:p.isActive("bold"),onClick:()=>p.chain().focus().toggleBold().run()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Italic,{className:"h-4 w-4"}),title:"Italic (Ctrl+I)",isActive:p.isActive("italic"),onClick:()=>p.chain().focus().toggleItalic().run()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Underline,{className:"h-4 w-4"}),title:"Underline (Ctrl+U)",isActive:p.isActive("underline"),onClick:()=>p.chain().focus().toggleUnderline().run()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Strikethrough,{className:"h-4 w-4"}),title:"Strikethrough",isActive:p.isActive("strike"),onClick:()=>p.chain().focus().toggleStrike().run()}),jsxRuntime.jsx(Ta,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.List,{className:"h-4 w-4"}),title:"Bullet List",isActive:p.isActive("bulletList"),onClick:()=>p.chain().focus().toggleBulletList().run()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.ListOrdered,{className:"h-4 w-4"}),title:"Numbered List",isActive:p.isActive("orderedList"),onClick:()=>p.chain().focus().toggleOrderedList().run()}),jsxRuntime.jsx(Ta,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.AlignLeft,{className:"h-4 w-4"}),title:"Align Left",isActive:p.isActive({textAlign:"left"}),onClick:()=>p.chain().focus().setTextAlign("left").run()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.AlignCenter,{className:"h-4 w-4"}),title:"Align Center",isActive:p.isActive({textAlign:"center"}),onClick:()=>p.chain().focus().setTextAlign("center").run()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.AlignRight,{className:"h-4 w-4"}),title:"Align Right",isActive:p.isActive({textAlign:"right"}),onClick:()=>p.chain().focus().setTextAlign("right").run()}),jsxRuntime.jsx(Ta,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Quote,{className:"h-4 w-4"}),title:"Blockquote",isActive:p.isActive("blockquote"),onClick:()=>p.chain().focus().toggleBlockquote().run()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Code,{className:"h-4 w-4"}),title:"Code Block",isActive:p.isActive("codeBlock"),onClick:()=>p.chain().focus().toggleCodeBlock().run()}),jsxRuntime.jsx(Ta,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Link,{className:"h-4 w-4"}),title:"Insert Link",isActive:p.isActive("link"),onClick:h}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Unlink,{className:"h-4 w-4"}),title:"Remove Link",onClick:()=>p.chain().focus().unsetLink().run(),disabled:!p.isActive("link")})]}),jsxRuntime.jsx(react.EditorContent,{editor:p,className:o(_C({size:a})),style:{minHeight:d,maxHeight:m}})]})}):null});lb.displayName="RichTextEditor";var cb=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 JC(e,t,a){return KC.centerCrop(KC.makeAspectCrop({unit:"%",width:90},a,e,t),e,t)}async function db(e,t,a=0,r=1){let n=document.createElement("canvas"),i=n.getContext("2d");if(!i)return null;let s=e.naturalWidth/e.width,l=e.naturalHeight/e.height,d=window.devicePixelRatio||1;n.width=Math.floor(t.width*s*d),n.height=Math.floor(t.height*l*d),i.scale(d,d),i.imageSmoothingQuality="high";let m=t.x*s,u=t.y*l,c=a*Math.PI/180,f=e.naturalWidth/2,p=e.naturalHeight/2;return i.save(),i.translate(-m,-u),i.translate(f,p),i.rotate(c),i.scale(r,r),i.translate(-f,-p),i.drawImage(e,0,0,e.naturalWidth,e.naturalHeight,0,0,e.naturalWidth,e.naturalHeight),i.restore(),new Promise(h=>{n.toBlob(R=>{h(R);},"image/png");})}var mb=K__namespace.forwardRef(({className:e,variant:t,src:a,aspectRatio:r,onCropChange:n,onCropComplete:i,showZoom:s=true,showRotation:l=true,minZoom:d=1,maxZoom:m=3,circularCrop:u=false,initialCrop:c,...f},p)=>{let h=K__namespace.useRef(null),[R,g]=K__namespace.useState(),[x,w]=K__namespace.useState(),[b,v]=K__namespace.useState(1),[P,y]=K__namespace.useState(0),C=S=>{let{width:k,height:L}=S.currentTarget;if(r){let E=JC(k,L,r);g(E);}else g(c||{unit:"%",x:10,y:10,width:80,height:80});},M=S=>{g(S),n?.(S);},T=async S=>{if(w(S),i&&h.current&&S.width&&S.height){let k=await db(h.current,S,P,b);i(k);}},N=()=>{y(S=>(S+90)%360);};return K__namespace.useEffect(()=>{x&&h.current&&i&&db(h.current,x,P,b).then(S=>{i(S);});},[b,P,x,i]),jsxRuntime.jsxs("div",{ref:p,className:o(cb({variant:t,className:e})),...f,children:[jsxRuntime.jsx("div",{className:"flex-1 flex items-center justify-center p-4 bg-muted/30 min-h-[300px]",children:jsxRuntime.jsx(KC__default.default,{crop:R,onChange:M,onComplete:T,aspect:r,circularCrop:u,className:"max-h-[400px]",children:jsxRuntime.jsx("img",{ref:h,src:a,alt:"Crop preview",onLoad:C,style:{transform:`scale(${b}) rotate(${P}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(Dn,{value:[b],onValueChange:([S])=>v(S),min:d,max:m,step:.1,className:"flex-1"}),jsxRuntime.jsx(lucideReact.ZoomIn,{className:"h-4 w-4 text-muted-foreground"})]}),l&&jsxRuntime.jsx(G,{variant:"bordered",size:"icon",onClick:N,children:jsxRuntime.jsx(lucideReact.RotateCw,{className:"h-4 w-4"})})]})]})});mb.displayName="ImageCropper";var Ml=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"}}),tS={sm:96,md:128,lg:192},pb=K__namespace.forwardRef(({className:e,variant:t,size:a,value:r,qrSize:n,fgColor:i="currentColor",bgColor:s="transparent",level:l="M",includeMargin:d=false,title:m,logo:u,logoSize:c=40,logoPadding:f=4,logoBackgroundColor:p="white",...h},R)=>{let g=n??tS[a??"md"];return r?jsxRuntime.jsx("div",{ref:R,className:o(Ml({variant:t,size:a,className:e})),...h,children:jsxRuntime.jsxs("div",{className:"relative inline-block",children:[jsxRuntime.jsx(QC__default.default,{value:r,size:g,fgColor:i,bgColor:s,level:l,title:m,style:{padding:d?16:0}}),u&&jsxRuntime.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 rounded",style:{padding:f,backgroundColor:p},children:jsxRuntime.jsx("img",{src:u,alt:"Logo",style:{width:c,height:c,objectFit:"contain"}})})]})}):jsxRuntime.jsx("div",{ref:R,className:o(Ml({variant:t,size:a,className:e})),...h,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"})})});pb.displayName="QRCode";var fb=({children:e,defaultTheme:t="system",storageKey:a="reever-ui-theme",enableSystem:r=true,disableTransitionOnChange:n=false,attribute:i="class",forcedTheme:s,themes:l=["light","dark"]})=>jsxRuntime.jsx(nextThemes.ThemeProvider,{defaultTheme:t,storageKey:a,enableSystem:r,disableTransitionOnChange:n,attribute:i,forcedTheme:s,themes:l,children:e});fb.displayName="ThemeProvider";var lS=classVarianceAuthority.cva("",{variants:{variant:{default:"",bordered:"",ghost:""},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"ghost",size:"md"}}),gb=K__namespace.forwardRef(({className:e,variant:t="ghost",size:a="md",mode:r="dropdown"},n)=>{let{theme:i,setTheme:s,resolvedTheme:l}=nextThemes.useTheme(),[d,m]=K__namespace.useState(false);K__namespace.useEffect(()=>{m(true);},[]);let u=()=>{let c=["light","dark","system"],p=(c.indexOf(i||"system")+1)%c.length;s(c[p]);};return d?r==="cycle"?jsxRuntime.jsxs(G,{ref:n,variant:t==="default"?"bordered":t,size:"icon",className:o("h-9 w-9",e),onClick:u,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(ir,{children:[jsxRuntime.jsx(sr,{asChild:true,children:jsxRuntime.jsxs(G,{ref:n,variant:t==="default"?"bordered":t,size:"icon",className:o("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(Da,{align:"end",children:[jsxRuntime.jsxs(Lt,{onClick:()=>s("light"),children:[jsxRuntime.jsx(lucideReact.Sun,{className:"mr-2 h-4 w-4"}),"Light"]}),jsxRuntime.jsxs(Lt,{onClick:()=>s("dark"),children:[jsxRuntime.jsx(lucideReact.Moon,{className:"mr-2 h-4 w-4"}),"Dark"]}),jsxRuntime.jsxs(Lt,{onClick:()=>s("system"),children:[jsxRuntime.jsx(lucideReact.Monitor,{className:"mr-2 h-4 w-4"}),"System"]})]})]}):jsxRuntime.jsxs(G,{ref:n,variant:t==="default"?"bordered":t,size:"icon",className:o("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"})]})});gb.displayName="ThemeToggle";var vb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),hb=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}}),xb=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"}}),yb=K__namespace.forwardRef(({className:e,label:t,description:a,errorMessage:r,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,startContent:c,endContent:f,id:p,...h},R)=>{let g=K__namespace.useId(),x=p||g,w=`${x}-description`,b=`${x}-error`,v=i&&r;return jsxRuntime.jsxs("div",{className:o(vb({size:s}),e),children:[t&&jsxRuntime.jsxs(os__namespace.Root,{htmlFor:x,className:o(xb({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:[c&&jsxRuntime.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:c}),jsxRuntime.jsx("input",{ref:R,id:x,"aria-invalid":i,"aria-describedby":v?b:a?w:void 0,"aria-required":n,className:o(hb({size:s,isInvalid:i}),c&&"pl-10",f&&"pr-10",d),...h}),f&&jsxRuntime.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:f})]}),a&&!v&&jsxRuntime.jsx("p",{id:w,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a}),v&&jsxRuntime.jsx("p",{id:b,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:r})]})});yb.displayName="TextField";var Pb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),mS=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}}),Rb=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"}}),wb=classVarianceAuthority.cva("",{variants:{size:{sm:"h-3 w-3",md:"h-4 w-4",lg:"h-5 w-5"}},defaultVariants:{size:"md"}}),uS=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"}}),Cb=K__namespace.forwardRef(({className:e,label:t,description:a,errorMessage:r,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,min:c,max:f,step:p=1,value:h,defaultValue:R,onChange:g,showButtons:x=true,formatOptions:w,fullWidth:b=false,disabled:v,id:P,...y},C)=>{let M=K__namespace.useId(),T=P||M,N=`${T}-description`,S=`${T}-error`,[k,L]=K__namespace.useState(R),[E,V]=K__namespace.useState(false),D=h!==void 0?h:k,I=i&&r,z=K__namespace.useCallback(B=>{B!==void 0&&(c!==void 0&&B<c&&(B=c),f!==void 0&&B>f&&(B=f)),h===void 0&&L(B),g?.(B);},[h,c,f,g]),W=()=>{let B=(D??0)+p;z(B);},H=()=>{let B=(D??0)-p;z(B);},j=B=>{let te=B.target.value;if(te==="")z(void 0);else {let F=parseFloat(te);isNaN(F)||z(F);}},$=B=>{B.key==="ArrowUp"?(B.preventDefault(),W()):B.key==="ArrowDown"&&(B.preventDefault(),H());},Ve=K__namespace.useMemo(()=>D===void 0?"":w?new Intl.NumberFormat(void 0,w).format(D):D.toString(),[D,w]),ve=c!==void 0&&D!==void 0&&D<=c,A=f!==void 0&&D!==void 0&&D>=f;return jsxRuntime.jsxs("div",{className:o(Pb({size:s}),e),children:[t&&jsxRuntime.jsxs(os__namespace.Root,{htmlFor:T,className:o(uS({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:[x&&jsxRuntime.jsx("button",{type:"button",onClick:H,disabled:v||ve,className:o(Rb({size:s}),"left-1"),tabIndex:-1,"aria-label":"Decrease value",children:jsxRuntime.jsx(lucideReact.Minus,{className:o(wb({size:s}))})}),jsxRuntime.jsx("input",{ref:C,id:T,type:"text",inputMode:"decimal",value:Ve,onChange:j,onKeyDown:$,onFocus:()=>V(true),onBlur:()=>V(false),"aria-invalid":i,"aria-describedby":I?S:a?N:void 0,"aria-required":n,"aria-valuemin":c,"aria-valuemax":f,"aria-valuenow":D,disabled:v,className:o(mS({size:s,isInvalid:i,fullWidth:b}),!x&&"px-3",d),style:{borderColor:E?"var(--color-foreground)":void 0},...y}),x&&jsxRuntime.jsx("button",{type:"button",onClick:W,disabled:v||A,className:o(Rb({size:s}),"right-1"),tabIndex:-1,"aria-label":"Increase value",children:jsxRuntime.jsx(lucideReact.Plus,{className:o(wb({size:s}))})})]}),a&&!I&&jsxRuntime.jsx("p",{id:N,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a}),I&&jsxRuntime.jsx("p",{id:S,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:r})]})});Cb.displayName="NumberField";var Mb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),gS=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}}),Sb=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"}}),bS=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"}}),vS=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"}}),kb=K__namespace.forwardRef(({className:e,label:t,description:a,errorMessage:r,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,value:c,defaultValue:f="",onChange:p,onClear:h,onSearch:R,showClearButton:g=true,showSearchIcon:x=true,disabled:w,placeholder:b="Search...",id:v,...P},y)=>{let C=K__namespace.useId(),M=v||C,T=`${M}-description`,N=`${M}-error`,[S,k]=K__namespace.useState(f),L=c!==void 0?c:S,E=i&&r,V=L.length>0,D=W=>{let H=W.target.value;c===void 0&&k(H),p?.(H);},I=()=>{c===void 0&&k(""),p?.(""),h?.();},z=W=>{W.key==="Enter"?(W.preventDefault(),R?.(L)):W.key==="Escape"&&V&&(W.preventDefault(),I());};return jsxRuntime.jsxs("div",{className:o(Mb({size:s}),e),children:[t&&jsxRuntime.jsxs(os__namespace.Root,{htmlFor:M,className:o(bS({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:[x&&jsxRuntime.jsx(lucideReact.Search,{className:o(Sb({size:s}),"absolute left-3 top-1/2 -translate-y-1/2")}),jsxRuntime.jsx("input",{ref:y,id:M,type:"search",value:L,onChange:D,onKeyDown:z,placeholder:b,"aria-invalid":i,"aria-describedby":E?N:a?T:void 0,"aria-required":n,disabled:w,className:o(gS({size:s,isInvalid:i}),!x&&"pl-3",!g&&"pr-3",d),...P}),g&&V&&!w&&jsxRuntime.jsx("button",{type:"button",onClick:I,className:o(vS({size:s})),tabIndex:-1,"aria-label":"Clear search",children:jsxRuntime.jsx(lucideReact.X,{className:o(Sb({size:s}))})})]}),a&&!E&&jsxRuntime.jsx("p",{id:T,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a}),E&&jsxRuntime.jsx("p",{id:N,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:r})]})});kb.displayName="SearchField";var Lb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),xS=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}}),yS=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"}}),RS=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"}}),El=(e,t="yyyy-MM-dd")=>{if(!e)return "";let a=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return t.replace("yyyy",String(a)).replace("MM",r).replace("dd",n)},wS=e=>{if(!e)return null;let t=new Date(e);return isNaN(t.getTime())?null:t},Vb=K__namespace.forwardRef(({className:e,label:t,description:a,errorMessage:r,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,value:c,defaultValue:f,onChange:p,minDate:h,maxDate:R,dateFormat:g="yyyy-MM-dd",showIcon:x=true,fullWidth:w=false,disabled:b,id:v,...P},y)=>{let C=K__namespace.useId(),M=v||C,T=`${M}-description`,N=`${M}-error`,S=K__namespace.useRef(null),k=y||S,[L,E]=K__namespace.useState(f??null),[V,D]=K__namespace.useState(false),I=()=>{!b&&k.current&&k.current.showPicker?.();},z=c!==void 0?c:L,W=i&&r,H=ve=>{let A=wS(ve.target.value);c===void 0&&E(A),p?.(A);},j=z?El(z,"yyyy-MM-dd"):"",$=h?El(h,"yyyy-MM-dd"):void 0,Ve=R?El(R,"yyyy-MM-dd"):void 0;return jsxRuntime.jsxs("div",{className:o(Lb({size:s}),e),children:[t&&jsxRuntime.jsxs(os__namespace.Root,{htmlFor:M,className:o(RS({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:o("relative",w?"w-full":"w-fit"),children:[jsxRuntime.jsx("input",{ref:k,id:M,type:"date",value:j,onChange:H,onFocus:()=>D(true),onBlur:()=>D(false),min:$,max:Ve,"aria-invalid":i,"aria-describedby":W?N:a?T:void 0,"aria-required":n,disabled:b,className:o(xS({size:s,isInvalid:i,fullWidth:w}),!x&&"pr-3",d),style:{borderColor:V?"var(--color-foreground)":void 0},...P}),x&&jsxRuntime.jsx("button",{type:"button",onClick:I,disabled:b,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:o(yS({size:s}))})})]}),a&&!W&&jsxRuntime.jsx("p",{id:T,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a}),W&&jsxRuntime.jsx("p",{id:N,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:r})]})});Vb.displayName="DateField";var Eb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),NS=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}}),PS=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"}}),Hb=K__namespace.forwardRef(({className:e,label:t,description:a,errorMessage:r,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,value:c,defaultValue:f,onChange:p,minTime:h,maxTime:R,showSeconds:g=false,hourCycle:x=24,disabled:w,fullWidth:b=false,id:v,...P},y)=>{let C=K__namespace.useId(),M=v||C,T=`${M}-description`,N=`${M}-error`,S=K__namespace.useRef(null),k=K__namespace.useRef(null),L=K__namespace.useRef(null),E=K__namespace.useRef(null),[V,D]=K__namespace.useState(f??null),I=c!==void 0?c:V,z=i&&r,W=O=>x===24?O:O===0?12:O>12?O-12:O,H=O=>O>=12?"PM":"AM",j=(O,Z)=>Z==="AM"?O===12?0:O:O===12?12:O+12,[$,Ve]=K__namespace.useState(I?String(W(I.hour)).padStart(2,"0"):""),[ve,A]=K__namespace.useState(I?String(I.minute).padStart(2,"0"):""),[B,te]=K__namespace.useState(I?.second!==void 0?String(I.second).padStart(2,"0"):""),[F,oe]=K__namespace.useState(I?H(I.hour):"AM"),[ee,at]=K__namespace.useState(false);K__namespace.useEffect(()=>{c!==void 0&&(c?(Ve(String(W(c.hour)).padStart(2,"0")),A(String(c.minute).padStart(2,"0")),c.second!==void 0&&te(String(c.second).padStart(2,"0")),oe(H(c.hour))):(Ve(""),A(""),te("")));},[c,x]);let rt=(O,Z,Ie,jt)=>{let ue=parseInt(O,10),vt=parseInt(Z,10),Xt=g?parseInt(Ie,10):void 0;if(isNaN(ue)||isNaN(vt)||g&&isNaN(Xt)){c===void 0&&D(null),p?.(null);return}let dd={hour:x===12?j(ue,jt):ue,minute:vt,...g&&Xt!==void 0&&{second:Xt}};c===void 0&&D(dd),p?.(dd);},Fx=O=>{let Z=O.target.value.replace(/\D/g,"").slice(0,2);Ve(Z);let Ie=x===24?23:12,jt=x===24?0:1;if(Z.length===2){let ue=parseInt(Z,10);ue>=jt&&ue<=Ie&&(k.current?.focus(),k.current?.select());}},Ox=O=>{let Z=O.target.value.replace(/\D/g,"").slice(0,2);if(A(Z),Z.length===2){let Ie=parseInt(Z,10);Ie>=0&&Ie<=59&&(g?(L.current?.focus(),L.current?.select()):x===12&&E.current?.focus());}},Gx=O=>{let Z=O.target.value.replace(/\D/g,"").slice(0,2);te(Z),Z.length===2&&x===12&&E.current?.focus();},Wx=()=>{if($){let O=parseInt($,10),Z=x===24?23:12,jt=Math.min(Math.max(O,x===24?0:1),Z),ue=String(jt).padStart(2,"0");Ve(ue),rt(ue,ve,B,F);}},$x=()=>{if(ve){let O=parseInt(ve,10),Z=Math.min(Math.max(O,0),59),Ie=String(Z).padStart(2,"0");A(Ie),rt($,Ie,B,F);}},_x=()=>{if(B){let O=parseInt(B,10),Z=Math.min(Math.max(O,0),59),Ie=String(Z).padStart(2,"0");te(Ie),rt($,ve,Ie,F);}},ld=()=>{let O=F==="AM"?"PM":"AM";oe(O),rt($,ve,B,O);},Kx=O=>{let Z=O.key.toLowerCase();Z==="a"?(O.preventDefault(),F!=="AM"&&(oe("AM"),rt($,ve,B,"AM"))):Z==="p"?(O.preventDefault(),F!=="PM"&&(oe("PM"),rt($,ve,B,"PM"))):Z==="arrowup"||Z==="arrowdown"?(O.preventDefault(),ld()):Z==="arrowleft"&&(O.preventDefault(),g?(L.current?.focus(),L.current?.select()):(k.current?.focus(),k.current?.select()));},Zi=(O,Z)=>{if(O.key==="ArrowUp"||O.key==="ArrowDown"){O.preventDefault();let Ie=O.key==="ArrowUp"?1:-1;if(Z==="hour"){let jt=parseInt($,10)||0,ue=x===24?23:12,vt=x===24?0:1,Xt=jt+Ie;Xt>ue&&(Xt=vt),Xt<vt&&(Xt=ue);let Qi=String(Xt).padStart(2,"0");Ve(Qi),rt(Qi,ve,B,F);}else if(Z==="minute"){let ue=(parseInt(ve,10)||0)+Ie;ue>59&&(ue=0),ue<0&&(ue=59);let vt=String(ue).padStart(2,"0");A(vt),rt($,vt,B,F);}else if(Z==="second"){let ue=(parseInt(B,10)||0)+Ie;ue>59&&(ue=0),ue<0&&(ue=59);let vt=String(ue).padStart(2,"0");te(vt),rt($,ve,vt,F);}}O.key==="ArrowRight"&&(O.preventDefault(),Z==="hour"?(k.current?.focus(),k.current?.select()):Z==="minute"&&g?(L.current?.focus(),L.current?.select()):(Z==="minute"&&!g&&x===12||Z==="second"&&x===12)&&E.current?.focus()),O.key==="ArrowLeft"&&(O.preventDefault(),Z==="minute"?(S.current?.focus(),S.current?.select()):Z==="second"&&(k.current?.focus(),k.current?.select())),O.key==="Backspace"&&O.currentTarget.value===""&&(Z==="minute"?S.current?.focus():Z==="second"&&k.current?.focus());},Ji=o((()=>{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",w&&"cursor-not-allowed");return jsxRuntime.jsxs("div",{ref:y,className:o(Eb({size:s}),e),...P,children:[t&&jsxRuntime.jsxs(os__namespace.Root,{htmlFor:M,className:o(PS({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:o(NS({size:s,isInvalid:i,disabled:w,fullWidth:b}),d),style:{borderColor:ee?"var(--color-foreground)":void 0},onFocus:()=>at(true),onBlur:O=>{O.currentTarget.contains(O.relatedTarget)||at(false);},children:[jsxRuntime.jsx("input",{ref:S,id:M,type:"text",inputMode:"numeric",placeholder:x===24?"HH":"hh",value:$,onChange:Fx,onBlur:Wx,onKeyDown:O=>Zi(O,"hour"),onFocus:O=>O.target.select(),"aria-label":"Hour","aria-invalid":i,"aria-describedby":z?N:a?T:void 0,"aria-required":n,disabled:w,className:Ji}),jsxRuntime.jsx("span",{className:"text-muted-foreground",children:":"}),jsxRuntime.jsx("input",{ref:k,type:"text",inputMode:"numeric",placeholder:"mm",value:ve,onChange:Ox,onBlur:$x,onKeyDown:O=>Zi(O,"minute"),onFocus:O=>O.target.select(),"aria-label":"Minute",disabled:w,className:Ji}),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:Gx,onBlur:_x,onKeyDown:O=>Zi(O,"second"),onFocus:O=>O.target.select(),"aria-label":"Second",disabled:w,className:Ji})]}),x===12&&jsxRuntime.jsx("button",{ref:E,type:"button",onClick:ld,onKeyDown:Kx,disabled:w,className:o("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",w&&"cursor-not-allowed"),"aria-label":"AM/PM",children:F})]}),a&&!z&&jsxRuntime.jsx("p",{id:T,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a}),z&&jsxRuntime.jsx("p",{id:N,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:r})]})});Hb.displayName="TimeField";var Bb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),SS=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}}),TS=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"}}),MS=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"}}),Ab=e=>/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.test(e),kS=e=>(e.startsWith("#")||(e="#"+e),e.length===4&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]),e.toUpperCase()),Fb=K__namespace.forwardRef(({className:e,label:t,description:a,errorMessage:r,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,value:c,defaultValue:f="#000000",onChange:p,showSwatch:h=true,showPicker:R=true,allowAlpha:g=false,fullWidth:x=false,disabled:w,id:b,...v},P)=>{let y=K__namespace.useId(),C=b||y,M=`${C}-picker`,T=`${C}-description`,N=`${C}-error`,[S,k]=K__namespace.useState(f),[L,E]=K__namespace.useState(false),V=c!==void 0?c:S,D=i&&r,I=j=>{let $=j.target.value;$&&!$.startsWith("#")&&($="#"+$),c===void 0&&k($),p?.($);},z=j=>{let $=j.target.value.toUpperCase();c===void 0&&k($),p?.($);},W=()=>{if(V&&Ab(V)){let j=kS(V);j!==V&&(c===void 0&&k(j),p?.(j));}},H=Ab(V)?V:"#000000";return jsxRuntime.jsxs("div",{className:o(Bb({size:s}),e),children:[t&&jsxRuntime.jsxs(os__namespace.Root,{htmlFor:C,className:o(MS({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:[h&&jsxRuntime.jsx("div",{className:o(TS({size:s})),children:R?jsxRuntime.jsxs("label",{htmlFor:M,className:"block h-full w-full cursor-pointer",children:[jsxRuntime.jsx("input",{id:M,type:"color",value:H,onChange:z,disabled:w,className:"absolute inset-0 h-full w-full cursor-pointer opacity-0",tabIndex:-1}),jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundColor:H}})]}):jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundColor:H}})}),jsxRuntime.jsx("input",{ref:P,id:C,type:"text",value:V,onChange:I,onFocus:()=>E(true),onBlur:()=>{E(false),W();},placeholder:"#000000",maxLength:g?9:7,"aria-invalid":i,"aria-describedby":D?N:a?T:void 0,"aria-required":n,disabled:w,className:o(SS({size:s,isInvalid:i,fullWidth:x}),!h&&"pl-3",d),style:{borderColor:L?"var(--color-foreground)":void 0},...v})]}),a&&!D&&jsxRuntime.jsx("p",{id:T,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a}),D&&jsxRuntime.jsx("p",{id:N,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:r})]})});Fb.displayName="ColorField";var Gb=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"}}),Wb=K__namespace.createContext({});function LS(){return K__namespace.useContext(Wb)}var $b=K__namespace.forwardRef(({className:e,variant:t,orientation:a,spacing:r,disabled:n,children:i,...s},l)=>jsxRuntime.jsx(Wb.Provider,{value:{disabled:n},children:jsxRuntime.jsx("div",{ref:l,role:"group",className:o(Gb({variant:t,orientation:a,spacing:r,className:e})),...s,children:i})}));$b.displayName="ButtonGroup";var Kb=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"}}),Ub=K__namespace.forwardRef(({className:e,variant:t,size:a,radius:r,isLoading:n,disabled:i,children:s,...l},d)=>{let m={sm:"h-4 w-4",md:"h-4 w-4",lg:"h-5 w-5",xl:"h-6 w-6"}[a??"md"];return jsxRuntime.jsx("button",{ref:d,type:"button",disabled:i||n,className:o(Kb({variant:t,size:a,radius:r,className:e})),...l,children:n?jsxRuntime.jsxs("svg",{className:o("animate-spin",m),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:o("[&>svg]:h-full [&>svg]:w-full",m),children:s})})});Ub.displayName="IconButton";var jb=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"}}),Xb=K__namespace.forwardRef(({className:e,variant:t,orientation:a,size:r,density:n,items:i,maxVisibleItems:s,isDisabled:l,onAction:d,showLabels:m=false,renderItem:u,...c},f)=>{let p=s&&s<i.length?i.slice(0,s):i,h=s&&s<i.length?i.slice(s):[],R={sm:"h-8 px-2 text-xs",md:"h-9 px-3 text-sm",lg:"h-10 px-4 text-base"}[r??"md"],g={sm:"h-8 w-8",md:"h-9 w-9",lg:"h-10 w-10"}[r??"md"],x={sm:"h-4 w-4",md:"h-4 w-4",lg:"h-5 w-5"}[r??"md"],w=(v,P)=>{P&&P(),d&&d(v);},b=v=>jsxRuntime.jsxs("button",{type:"button",disabled:l||v.isDisabled,onClick:()=>w(v.key,v.onPress),className:o("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",m?R:g),"aria-label":v.label,children:[v.icon&&jsxRuntime.jsx("span",{className:x,children:v.icon}),m&&jsxRuntime.jsx("span",{children:v.label})]},v.key);return jsxRuntime.jsxs("div",{ref:f,role:"group",className:o(jb({variant:t,orientation:a,size:r,density:n,className:e})),...c,children:[p.map(v=>u?u(v):b(v)),h.length>0&&jsxRuntime.jsxs(ir,{children:[jsxRuntime.jsx(sr,{asChild:true,children:jsxRuntime.jsx("button",{type:"button",disabled:l,className:o("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:x})})}),jsxRuntime.jsx(Da,{align:"end",children:h.map(v=>jsxRuntime.jsxs(Lt,{disabled:v.isDisabled,onClick:()=>w(v.key,v.onPress),children:[v.icon&&jsxRuntime.jsx("span",{className:o(x,"mr-2"),children:v.icon}),v.label]},v.key))})]})]})});Xb.displayName="ActionGroup";var Qb=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"}}),AS=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}}),ev=K__namespace.forwardRef(({className:e,variant:t,size:a,pulse:r=false,hideLabel:n=false,children:i,...s},l)=>jsxRuntime.jsxs("span",{ref:l,role:"status",className:o(Qb({variant:t,size:a,className:e})),...s,children:[jsxRuntime.jsx("span",{className:o(AS({size:a,pulse:r})),"aria-hidden":"true"}),!n&&i&&jsxRuntime.jsx("span",{className:"text-foreground",children:i})]}));ev.displayName="StatusLight";var av=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"}}),BS=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"}}),FS=classVarianceAuthority.cva("font-semibold text-foreground",{variants:{size:{sm:"text-base",md:"text-lg",lg:"text-xl"}},defaultVariants:{size:"md"}}),OS=classVarianceAuthority.cva("text-muted-foreground",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),rv=K__namespace.forwardRef(({className:e,size:t,illustration:a,heading:r,description:n,children:i,...s},l)=>jsxRuntime.jsxs("div",{ref:l,className:o(av({size:t,className:e})),...s,children:[a&&jsxRuntime.jsx("div",{className:o(BS({size:t})),"aria-hidden":"true",children:a}),r&&jsxRuntime.jsx("h3",{className:o(FS({size:t})),children:r}),n&&jsxRuntime.jsx("p",{className:o(OS({size:t})),children:n}),i&&jsxRuntime.jsx("div",{className:"mt-2",children:i})]}));rv.displayName="IllustratedMessage";var iv=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"}}),YS={info:lucideReact.Info,success:lucideReact.CheckCircle2,warning:lucideReact.AlertTriangle,error:lucideReact.AlertCircle,neutral:lucideReact.Info},sv=K__namespace.forwardRef(({className:e,variant:t,title:a,icon:r,hideIcon:n=false,isDismissible:i=false,onDismiss:s,actions:l,children:d,...m},u)=>{let[c,f]=K__namespace.useState(true);if(!c)return null;let p=YS[t??"info"],h=()=>{f(false),s?.();};return jsxRuntime.jsxs("div",{ref:u,role:"alert",className:o(iv({variant:t,className:e})),...m,children:[!n&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:r||jsxRuntime.jsx(p,{className:"h-5 w-5"})}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-1",children:[a&&jsxRuntime.jsx("div",{className:"font-medium",children:a}),d&&jsxRuntime.jsx("div",{className:"opacity-90",children:d}),l&&jsxRuntime.jsx("div",{className:"mt-3 flex gap-2",children:l})]}),i&&jsxRuntime.jsx("button",{type:"button",onClick:h,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"})})]})});sv.displayName="InlineAlert";var lv=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"}}),dv=K__namespace.forwardRef(({className:e,position:t,size:a,selectedCount:r=0,isOpen:n=true,onClose:i,showClose:s=true,selectedText:l,children:d,...m},u)=>{if(!n||r===0)return null;let c=()=>typeof l=="function"?l(r):l||`${r} item${r>1?"s":""} selected`;return jsxRuntime.jsxs("div",{ref:u,role:"toolbar","aria-label":"Actions for selected items",className:o(lv({position:t,size:a,className:e})),...m,children:[jsxRuntime.jsx("span",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:c()}),jsxRuntime.jsx("div",{className:"h-4 w-px bg-border"}),jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:d}),s&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"h-4 w-px bg-border"}),jsxRuntime.jsx("button",{type:"button",onClick:i,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"})})]})]})});dv.displayName="ActionBar";var cv=K__namespace.forwardRef(({className:e,icon:t,children:a,...r},n)=>jsxRuntime.jsxs("button",{ref:n,type:"button",className:o("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),...r,children:[t&&jsxRuntime.jsx("span",{className:"h-4 w-4 [&>svg]:h-full [&>svg]:w-full",children:t}),a]}));cv.displayName="ActionBarButton";var mv=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 eT(e){return "items"in e}var uv=K__namespace.forwardRef(({items:e,align:t="end",side:a="bottom",iconOrientation:r="vertical",trigger:n,variant:i,size:s,onAction:l,"aria-label":d="More actions",triggerClassName:m,disabled:u},c)=>{let f={sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"}[s??"md"],p=r==="horizontal"?lucideReact.MoreHorizontal:lucideReact.MoreVertical,h=g=>{g.onSelect?.(),l?.(g.key);},R=g=>jsxRuntime.jsxs(Lt,{disabled:g.isDisabled,onClick:()=>h(g),className:o(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(ir,{children:[jsxRuntime.jsx(sr,{asChild:true,children:n||jsxRuntime.jsx("button",{ref:c,type:"button",disabled:u,className:o(mv({variant:i,size:s}),m),"aria-label":d,children:jsxRuntime.jsx(p,{className:f})})}),jsxRuntime.jsx(Da,{align:t,side:a,children:e.map((g,x)=>eT(g)?jsxRuntime.jsxs(K__namespace.Fragment,{children:[x>0&&jsxRuntime.jsx(Tn,{}),g.items.map(R)]},g.key):R(g))})]})});uv.displayName="ActionMenu";var gv=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"}}),bv=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 vv({className:e,variant:t,size:a,items:r,selectedKeys:n,selectionMode:i="none",onSelectionChange:s,allowsDragging:l=false,onReorder:d,showCheckbox:m=false,renderItem:u,emptyContent:c,...f}){let[p,h]=K__namespace.useState(new Set),[R,g]=K__namespace.useState(null),[x,w]=K__namespace.useState(null),b=K__namespace.useMemo(()=>n?n instanceof Set?n:new Set(n):p,[n,p]),v=M=>{if(i==="none")return;let T;i==="single"?T=b.has(M)?new Set:new Set([M]):(T=new Set(b),T.has(M)?T.delete(M):T.add(M)),n||h(T),s?.(T);},P=(M,T)=>{g(T),M.dataTransfer.effectAllowed="move";},y=(M,T)=>{M.preventDefault(),R!==T&&w(T);},C=()=>{if(R&&x&&R!==x){let M=r.findIndex(k=>k.key===R),T=r.findIndex(k=>k.key===x),N=[...r],[S]=N.splice(M,1);N.splice(T,0,S),d?.(N);}g(null),w(null);};return r.length===0?jsxRuntime.jsx("div",{className:o("flex items-center justify-center p-8 text-muted-foreground",e),children:c||"No items"}):jsxRuntime.jsx("div",{role:"listbox","aria-multiselectable":i==="multiple",className:o(gv({variant:t,size:a,className:e})),...f,children:r.map(M=>{let T=b.has(M.key),N=R===M.key,S=x===M.key;return u?jsxRuntime.jsx("div",{role:"option","aria-selected":T,onClick:()=>v(M.key),children:u(M,T)},M.key):jsxRuntime.jsxs("div",{role:"option","aria-selected":T,"aria-disabled":M.isDisabled,draggable:l&&!M.isDisabled,onDragStart:k=>P(k,M.key),onDragOver:k=>y(k,M.key),onDragEnd:C,onClick:()=>!M.isDisabled&&v(M.key),className:o(bv({variant:t,size:a,isSelected:T,isDisabled:M.isDisabled}),N&&"opacity-50",S&&"border-t-2 border-t-primary"),children:[l&&jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-4 w-4 text-muted-foreground cursor-grab"}),m&&i!=="none"&&jsxRuntime.jsx("div",{className:o("flex h-4 w-4 items-center justify-center rounded border",T?"bg-primary border-primary text-primary-foreground":"border-input"),children:T&&jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})}),M.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 text-muted-foreground [&>svg]:h-full [&>svg]:w-full",children:M.icon}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:"truncate",children:M.label}),M.description&&jsxRuntime.jsx("div",{className:"text-sm text-muted-foreground truncate",children:M.description})]})]},M.key)})})}vv.displayName="ListView";var xv=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"}}),rT=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"}}),hv=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",{variants:{size:{sm:"h-3.5 w-3.5",md:"h-5 w-5",lg:"h-6 w-6"}},defaultVariants:{size:"md"}}),yv=K__namespace.forwardRef(({className:e,orientation:t="horizontal",size:a,value:r,defaultValue:n=[25,75],onValueChange:i,onValueCommit:s,showLabels:l=false,formatLabel:d=g=>String(g),trackColor:m="primary",min:u=0,max:c=100,step:f=1,disabled:p,...h},R)=>{let[g,x]=K__namespace.useState(n),w=r??g,b=y=>{let C=y;r||x(C),i?.(C);},v=y=>{s?.(y);},P={primary:"bg-primary",success:"bg-green-500",warning:"bg-yellow-500",danger:"bg-red-500"}[m];return jsxRuntime.jsxs("div",{className:"relative w-full",children:[l&&jsxRuntime.jsxs("div",{className:"flex justify-between mb-2 text-sm text-muted-foreground",children:[jsxRuntime.jsx("span",{children:d(w[0])}),jsxRuntime.jsx("span",{children:d(w[1])})]}),jsxRuntime.jsxs(ea__namespace.Root,{ref:R,value:w,onValueChange:b,onValueCommit:v,min:u,max:c,step:f,disabled:p,orientation:t??"horizontal",className:o(xv({orientation:t,size:a,className:e})),...h,children:[jsxRuntime.jsx(ea__namespace.Track,{className:o(rT({orientation:t,size:a})),children:jsxRuntime.jsx(ea__namespace.Range,{className:o("absolute rounded-full",P,{"h-full":t==="horizontal","w-full":t==="vertical"})})}),jsxRuntime.jsx(ea__namespace.Thumb,{className:o(hv({size:a}))}),jsxRuntime.jsx(ea__namespace.Thumb,{className:o(hv({size:a}))})]})]})});yv.displayName="RangeSlider";var Nv=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"}}),sT=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"}}),lT={help:lucideReact.HelpCircle,info:lucideReact.Info,warning:lucideReact.AlertCircle},Pv=K__namespace.forwardRef(({variant:e="help",size:t,title:a,children:r,trigger:n,side:i="top",align:s="center",open:l,onOpenChange:d,learnMoreUrl:m,learnMoreText:u="Learn more",triggerClassName:c,contentClassName:f},p)=>{let h=lT[e??"help"];return jsxRuntime.jsxs(xt__namespace.Root,{open:l,onOpenChange:d,children:[jsxRuntime.jsx(xt__namespace.Trigger,{asChild:true,children:n||jsxRuntime.jsx("button",{ref:p,type:"button",className:o(Nv({variant:e,size:t}),c),"aria-label":"Help",children:jsxRuntime.jsx(h,{className:"h-full w-full"})})}),jsxRuntime.jsx(xt__namespace.Portal,{children:jsxRuntime.jsxs(xt__namespace.Content,{side:i,align:s,sideOffset:8,className:o(sT({size:t}),f),children:[a&&jsxRuntime.jsx("div",{className:"mb-2 font-semibold text-foreground",children:a}),jsxRuntime.jsx("div",{className:"text-muted-foreground",children:r}),m&&jsxRuntime.jsxs("a",{href:m,target:"_blank",rel:"noopener noreferrer",className:"mt-3 inline-block text-primary hover:underline",children:[u," \u2192"]}),jsxRuntime.jsx(xt__namespace.Arrow,{className:"fill-popover"})]})})]})});Pv.displayName="ContextualHelp";var Sv=classVarianceAuthority.cva("flex flex-wrap",{variants:{spacing:{sm:"gap-1",md:"gap-2",lg:"gap-3"}},defaultVariants:{spacing:"md"}}),$l=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 Tv({className:e,spacing:t,variant:a,size:r,items:n,selectedKeys:i,selectionMode:s="none",onSelectionChange:l,allowsRemoving:d=false,onRemove:m,label:u,description:c,errorMessage:f,maxTags:p,...h}){let[R,g]=K__namespace.useState(new Set),x=K__namespace.useMemo(()=>i?i instanceof Set?i:new Set(i):R,[i,R]),w=y=>{if(s==="none")return;let C;s==="single"?C=x.has(y)?new Set:new Set([y]):(C=new Set(x),C.has(y)?C.delete(y):C.add(y)),i||g(C),l?.(C);},b=(y,C)=>{C.stopPropagation(),m?.(y);},v=p?n.slice(0,p):n,P=p?Math.max(0,n.length-p):0;return jsxRuntime.jsxs("div",{className:"flex flex-col gap-1.5",children:[u&&jsxRuntime.jsx("span",{className:"text-sm font-medium text-foreground",children:u}),c&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:c}),jsxRuntime.jsxs("div",{role:"group","aria-label":u,className:o(Sv({spacing:t}),e),...h,children:[v.map(y=>{let C=x.has(y.key),M=s!=="none";return jsxRuntime.jsxs("span",{role:M?"button":void 0,tabIndex:M&&!y.isDisabled?0:void 0,"aria-pressed":M?C:void 0,onClick:()=>!y.isDisabled&&w(y.key),onKeyDown:T=>{(T.key==="Enter"||T.key===" ")&&!y.isDisabled&&(T.preventDefault(),w(y.key));},style:y.color?{backgroundColor:y.color}:void 0,className:o($l({variant:y.color?void 0:a,size:r,isSelected:C,isDisabled:y.isDisabled}),M&&!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,d&&!y.isDisabled&&jsxRuntime.jsx("button",{type:"button",onClick:T=>b(y.key,T),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)}),P>0&&jsxRuntime.jsxs("span",{className:o($l({variant:"surface",size:r}),"cursor-default"),children:["+",P," more"]})]}),f&&jsxRuntime.jsx("span",{className:"text-sm text-destructive",children:f})]})}Tv.displayName="TagGroup";var Dv=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"}}),Lv=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 Vv({className:e,columns:t,gap:a,items:r,selectedKeys:n,selectionMode:i="none",onSelectionChange:s,showSelectionIndicator:l=true,itemVariant:d="default",itemSize:m="md",renderItem:u,emptyContent:c,...f}){let[p,h]=K__namespace.useState(new Set),R=K__namespace.useMemo(()=>n?n instanceof Set?n:new Set(n):p,[n,p]),g=x=>{if(i==="none")return;let w;i==="single"?w=R.has(x)?new Set:new Set([x]):(w=new Set(R),w.has(x)?w.delete(x):w.add(x)),n||h(w),s?.(w);};return r.length===0?jsxRuntime.jsx("div",{className:o("flex items-center justify-center p-8 text-muted-foreground",e),children:c||"No items"}):jsxRuntime.jsx("div",{role:"grid","aria-multiselectable":i==="multiple",className:o(Dv({columns:t,gap:a,className:e})),...f,children:r.map(x=>{let w=R.has(x.key);return u?jsxRuntime.jsx("div",{role:"gridcell","aria-selected":w,onClick:()=>g(x.key),children:u(x,w)},x.key):jsxRuntime.jsxs("div",{role:"gridcell","aria-selected":w,"aria-disabled":x.isDisabled,onClick:()=>!x.isDisabled&&g(x.key),className:o(Lv({variant:d,size:m,isSelected:w,isDisabled:x.isDisabled})),children:[l&&i!=="none"&&w&&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"})}),x.thumbnail&&jsxRuntime.jsx("div",{className:"mb-2 aspect-square w-full overflow-hidden rounded-md bg-muted",children:x.thumbnail}),jsxRuntime.jsxs("div",{className:"min-w-0",children:[jsxRuntime.jsx("div",{className:"truncate font-medium",children:x.label}),x.description&&jsxRuntime.jsx("div",{className:"mt-1 truncate text-sm text-muted-foreground",children:x.description})]})]},x.key)})})}Vv.displayName="GridList";var Ev=classVarianceAuthority.cva("relative w-full",{variants:{size:{sm:"h-1.5",md:"h-2",lg:"h-3"}},defaultVariants:{size:"md"}}),mT=classVarianceAuthority.cva("w-full h-full rounded-full overflow-hidden",{variants:{variant:{default:"bg-secondary",subtle:"bg-muted"}},defaultVariants:{variant:"default"}}),uT=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}}),Ai=K__namespace.forwardRef(({className:e,size:t,value:a,min:r=0,max:n=100,optimum:i,low:s,high:l,label:d,showValueLabel:m=false,formatValue:u,color:c="primary",trackVariant:f="default",...p},h)=>{let R=Math.min(100,Math.max(0,(a-r)/(n-r)*100)),g=()=>{if(c!=="auto")return "";let w=(a-r)/(n-r),b=s!==void 0?(s-r)/(n-r):.25,v=l!==void 0?(l-r)/(n-r):.75;return (i!==void 0?(i-r)/(n-r):1)>=.5?w<=b?"bg-red-500":w<=v?"bg-yellow-500":"bg-green-500":w>=v?"bg-red-500":w>=b?"bg-yellow-500":"bg-green-500"},x=u?u(a,R):`${Math.round(R)}%`;return jsxRuntime.jsxs("div",{ref:h,className:o("w-full",e),...p,children:[(d||m)&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[d&&jsxRuntime.jsx("span",{className:"text-sm font-medium text-foreground",children:d}),m&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:x})]}),jsxRuntime.jsx("div",{role:"meter","aria-valuenow":a,"aria-valuemin":r,"aria-valuemax":n,"aria-label":d,className:o(Ev({size:t})),children:jsxRuntime.jsx("div",{className:o(mT({variant:f})),children:jsxRuntime.jsx("div",{className:o(uT({color:c==="auto"?void 0:c,rounded:R>=100}),c==="auto"&&g()),style:{width:`${R}%`}})})})]})});Ai.displayName="Meter";var Hv=K__namespace.forwardRef((e,t)=>jsxRuntime.jsx(Ai,{ref:t,color:"auto",low:50,high:80,optimum:0,...e}));Hv.displayName="DiskUsageMeter";var Av=K__namespace.forwardRef((e,t)=>jsxRuntime.jsx(Ai,{ref:t,color:"auto",low:20,high:50,optimum:100,...e}));Av.displayName="BatteryMeter";var Bv=classVarianceAuthority.cva("flex flex-wrap",{variants:{size:{sm:"gap-1",md:"gap-1.5",lg:"gap-2"},layout:{wrap:"flex-wrap",grid:"grid"}},defaultVariants:{size:"md",layout:"wrap"}}),Fv=["#000000","#ffffff","#ef4444","#f97316","#eab308","#22c55e","#06b6d4","#3b82f6","#8b5cf6","#ec4899"],Ov=["#f8fafc","#f1f5f9","#e2e8f0","#cbd5e1","#94a3b8","#64748b","#475569","#334155","#1e293b","#0f172a","#fef2f2","#fee2e2","#fecaca","#fca5a5","#f87171","#ef4444","#dc2626","#b91c1c","#991b1b","#7f1d1d","#fff7ed","#ffedd5","#fed7aa","#fdba74","#fb923c","#f97316","#ea580c","#c2410c","#9a3412","#7c2d12","#fefce8","#fef9c3","#fef08a","#fde047","#facc15","#eab308","#ca8a04","#a16207","#854d0e","#713f12","#f0fdf4","#dcfce7","#bbf7d0","#86efac","#4ade80","#22c55e","#16a34a","#15803d","#166534","#14532d","#eff6ff","#dbeafe","#bfdbfe","#93c5fd","#60a5fa","#3b82f6","#2563eb","#1d4ed8","#1e40af","#1e3a8a","#faf5ff","#f3e8ff","#e9d5ff","#d8b4fe","#c084fc","#a855f7","#9333ea","#7e22ce","#6b21a8","#581c87","#fdf2f8","#fce7f3","#fbcfe8","#f9a8d4","#f472b6","#ec4899","#db2777","#be185d","#9d174d","#831843"],Gv=["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#795548","#9e9e9e","#607d8b"],Wv=K__namespace.forwardRef(({value:e,defaultValue:t,onChange:a,colors:r="default",customColors:n,size:i,layout:s,swatchSize:l="md",swatchShape:d="square",columns:m,disabled:u,showSelection:c=true,className:f,...p},h)=>{let[R,g]=K__namespace.useState(t),x=e!==void 0?e:R,b=(()=>{if(n)return n;if(Array.isArray(r))return r;switch(r){case "tailwind":return Ov;case "material":return Gv;default:return Fv}})(),v=y=>{u||(e===void 0&&g(y),a?.(y));},P=s==="grid"&&m?{gridTemplateColumns:`repeat(${m}, 1fr)`}:{};return jsxRuntime.jsx("div",{ref:h,role:"listbox","aria-label":"Color palette",className:o(Bv({size:i,layout:s}),f),style:P,...p,children:b.map((y,C)=>jsxRuntime.jsx(jr,{color:y,size:l,shape:d,isSelected:c&&x?.toLowerCase()===y.toLowerCase(),onSelect:v,disabled:u,role:"option","aria-selected":x?.toLowerCase()===y.toLowerCase()},`${y}-${C}`))})});Wv.displayName="ColorSwatchPicker";var $v=classVarianceAuthority.cva("relative rounded-md border border-input 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"}},defaultVariants:{size:"md"}}),Fi=(e,t,a)=>{let r=n=>{let i=(n+e/60)%6;return a-a*t*Math.max(Math.min(i,4-i,1),0)};return [Math.round(r(5)*255),Math.round(r(3)*255),Math.round(r(1)*255)]},_v=(e,t,a)=>{e/=255,t/=255,a/=255;let r=Math.max(e,t,a),n=Math.min(e,t,a),i=r-n,s=0,l=r===0?0:i/r,d=r;if(i!==0)switch(r){case e:s=((t-a)/i+(t<a?6:0))*60;break;case t:s=((a-e)/i+2)*60;break;case a:s=((e-t)/i+4)*60;break}return [s,l,d]},Kv=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},Uv=(e,t,a)=>"#"+[e,t,a].map(r=>r.toString(16).padStart(2,"0")).join(""),Yv=K__namespace.forwardRef(({hue:e,saturation:t,brightness:a,value:r,defaultValue:n="#ff0000",onChange:i,onColorChange:s,size:l,disabled:d,thumbSize:m=16,className:u,...c},f)=>{let p=K__namespace.useRef(null),[h,R]=K__namespace.useState(false),g=K__namespace.useCallback(H=>{let j=Kv(H);return j?_v(...j):[0,1,1]},[]),[x,w]=K__namespace.useState(()=>g(r||n)),b=e??x[0],v=t??x[1],P=a??x[2];K__namespace.useEffect(()=>{if(r){let H=g(r);w(H);}},[r,g]);let y=K__namespace.useCallback((H,j)=>{if(d||!p.current)return;let $=p.current.getBoundingClientRect(),Ve=Math.max(0,Math.min(1,(H-$.left)/$.width)),ve=Math.max(0,Math.min(1,(j-$.top)/$.height)),A=Ve,B=1-ve;t===void 0&&a===void 0&&w([b,A,B]),i?.({hue:b,saturation:A,brightness:B});let te=Fi(b,A,B);s?.(Uv(...te));},[d,b,t,a,i,s]),C=H=>{d||(H.preventDefault(),R(true),H.target.setPointerCapture(H.pointerId),y(H.clientX,H.clientY));},M=H=>{h&&y(H.clientX,H.clientY);},T=H=>{R(false),H.target.releasePointerCapture(H.pointerId);},[N,S,k]=Fi(b,1,1),L=`rgb(${N}, ${S}, ${k})`,E=v*100,V=(1-P)*100,[D,I,z]=Fi(b,v,P),W=`rgb(${D}, ${I}, ${z})`;return jsxRuntime.jsx("div",{ref:f,className:o($v({size:l}),d&&"cursor-not-allowed opacity-50",u),...c,children:jsxRuntime.jsxs("div",{ref:p,className:"absolute inset-0",style:{backgroundColor:L},onPointerDown:C,onPointerMove:M,onPointerUp:T,onPointerLeave:T,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 shadow-md pointer-events-none",style:{width:m,height:m,left:`calc(${E}% - ${m/2}px)`,top:`calc(${V}% - ${m/2}px)`,backgroundColor:W,boxShadow:"0 0 0 1px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.2)"}})]})})});Yv.displayName="ColorArea";var Xv=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"}}),vT=`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")`,jv="linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000)",qv=K__namespace.forwardRef(({value:e,defaultValue:t,onChange:a,channel:r="hue",baseColor:n="#ff0000",orientation:i,size:s,disabled:l,thumbSize:d=18,showBorder:m=true,className:u,...c},f)=>{let p=K__namespace.useRef(null),[h,R]=K__namespace.useState(false),g=()=>{switch(r){case "hue":return 0;case "alpha":case "saturation":case "brightness":return 1;default:return 0}},[x,w]=K__namespace.useState(t??g()),b=e??x,v=r==="hue"?b/360:b,P=K__namespace.useCallback((L,E)=>{if(l||!p.current)return;let V=p.current.getBoundingClientRect(),D=i!=="vertical",I;D?I=Math.max(0,Math.min(1,(L-V.left)/V.width)):I=Math.max(0,Math.min(1,1-(E-V.top)/V.height));let z=r==="hue"?I*360:I;e===void 0&&w(z),a?.(z);},[l,i,r,e,a]),y=L=>{l||(L.preventDefault(),R(true),L.target.setPointerCapture(L.pointerId),P(L.clientX,L.clientY));},C=L=>{h&&P(L.clientX,L.clientY);},M=L=>{R(false),L.target.releasePointerCapture(L.pointerId);},T=()=>{let L=i!=="vertical",E=L?"to right":"to top";switch(r){case "hue":return L?jv:"linear-gradient(to top, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000)";case "alpha":return `linear-gradient(${E}, transparent, ${n})`;case "saturation":return `linear-gradient(${E}, #808080, ${n})`;case "brightness":return `linear-gradient(${E}, #000000, ${n})`;default:return jv}},N=()=>r==="hue"?`hsl(${b}, 100%, 50%)`:n,S=i!=="vertical",k=v*100;return jsxRuntime.jsx("div",{ref:f,className:o(Xv({orientation:i,size:s}),l&&"cursor-not-allowed opacity-50",u),...c,children:jsxRuntime.jsxs("div",{ref:p,className:o("absolute inset-0 rounded-full overflow-hidden",m&&"border border-input"),style:{backgroundImage:r==="alpha"?vT:void 0,backgroundSize:r==="alpha"?"8px 8px":void 0},onPointerDown:y,onPointerMove:C,onPointerUp:M,onPointerLeave:M,children:[jsxRuntime.jsx("div",{className:"absolute inset-0 rounded-full",style:{background:T()}}),jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 border-white shadow-md pointer-events-none",style:{width:d,height:d,...S?{left:`calc(${k}% - ${d/2}px)`,top:"50%",transform:"translateY(-50%)"}:{bottom:`calc(${k}% - ${d/2}px)`,left:"50%",transform:"translateX(-50%)"},backgroundColor:N(),boxShadow:"0 0 0 1px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.2)"}})]})})});qv.displayName="ColorSlider";var Zv=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"}}),yT=(e,t,a)=>{let r=e-a,n=t-a,i=Math.atan2(n,r)*180/Math.PI+90;return i<0&&(i+=360),i},Jv=K__namespace.forwardRef(({value:e,defaultValue:t=0,onChange:a,size:r,disabled:n,innerRadius:i=.6,thumbSize:s=20,showCenter:l=true,className:d,...m},u)=>{let c=K__namespace.useRef(null),[f,p]=K__namespace.useState(false),[h,R]=K__namespace.useState(t),g=e??h,x=K__namespace.useCallback((y,C)=>{if(n||!c.current)return;let M=c.current.getBoundingClientRect(),T=M.width/2,N=y-M.left,S=C-M.top,k=yT(N,S,T);e===void 0&&R(k),a?.(k);},[n,e,a]),w=y=>{n||(y.preventDefault(),p(true),y.target.setPointerCapture(y.pointerId),x(y.clientX,y.clientY));},b=y=>{f&&x(y.clientX,y.clientY);},v=y=>{p(false),y.target.releasePointerCapture(y.pointerId);},P=()=>{let y=[];for(let C=0;C<=360;C+=30)y.push(`hsl(${C}, 100%, 50%) ${C}deg`);return `conic-gradient(from 270deg, ${y.join(", ")})`};return jsxRuntime.jsx("div",{ref:u,className:o(Zv({size:r}),n&&"cursor-not-allowed opacity-50",d),...m,children:jsxRuntime.jsxs("div",{ref:c,className:"absolute inset-0 rounded-full",style:{background:P()},onPointerDown:w,onPointerMove:b,onPointerUp:v,onPointerLeave:v,children:[i<1&&jsxRuntime.jsx("div",{className:"absolute bg-background rounded-full",style:{top:`${(1-i)*50}%`,left:`${(1-i)*50}%`,width:`${i*100}%`,height:`${i*100}%`}}),l&&i<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(RT,{hue:g,innerRadius:i,thumbSize:s})]})})});Jv.displayName="ColorWheel";var RT=({hue:e,innerRadius:t,thumbSize:a})=>{let r=(1-(1-t)/2)*50,n=(e-90)*Math.PI/180,i=50+r*Math.cos(n),s=50+r*Math.sin(n);return jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 border-white shadow-md pointer-events-none",style:{width:a,height:a,left:`calc(${i}% - ${a/2}px)`,top:`calc(${s}% - ${a/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 Qv=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}}),nn=K__namespace.forwardRef(({className:e,direction:t,align:a,justify:r,wrap:n,gap:i,inline:s,as:l="div",...d},m)=>jsxRuntime.jsx(l,{ref:m,className:o(Qv({direction:t,align:a,justify:r,wrap:n,gap:i,inline:s,className:e})),...d}));nn.displayName="Flex";var eh=K__namespace.forwardRef(({gap:e=2,align:t="center",...a},r)=>jsxRuntime.jsx(nn,{ref:r,direction:"row",gap:e,align:t,...a}));eh.displayName="HStack";var th=K__namespace.forwardRef(({gap:e=2,align:t="stretch",...a},r)=>jsxRuntime.jsx(nn,{ref:r,direction:"column",gap:e,align:t,...a}));th.displayName="VStack";var ah=K__namespace.forwardRef((e,t)=>jsxRuntime.jsx(nn,{ref:t,align:"center",justify:"center",...e}));ah.displayName="Center";var oh=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"}}),Gi=K__namespace.forwardRef(({className:e,columns:t,rows:a,gap:r,gapX:n,gapY:i,flow:s,align:l,justify:d,placeItems:m,as:u="div",minChildWidth:c,style:f,...p},h)=>{let R=c?{...f,gridTemplateColumns:`repeat(auto-fill, minmax(${c}, 1fr))`}:f;return jsxRuntime.jsx(u,{ref:h,className:o(oh({columns:c?void 0:t,rows:a,gap:r,gapX:n,gapY:i,flow:s,align:l,justify:d,placeItems:m,className:e})),style:R,...p})});Gi.displayName="Grid";var nh=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"}}}),ih=K__namespace.forwardRef(({className:e,colSpan:t,rowSpan:a,colStart:r,colEnd:n,rowStart:i,rowEnd:s,as:l="div",...d},m)=>jsxRuntime.jsx(l,{ref:m,className:o(nh({colSpan:t,rowSpan:a,colStart:r,colEnd:n,rowStart:i,rowEnd:s,className:e})),...d}));ih.displayName="GridItem";var sh=K__namespace.forwardRef(({columns:e=2,className:t,...a},r)=>{if(typeof e=="number")return jsxRuntime.jsx(Gi,{ref:r,columns:e,className:t,...a});let n=o(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(Gi,{ref:r,columns:1,className:o(n,t),...a})});sh.displayName="SimpleGrid";var dh=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"}}),ch=K__namespace.forwardRef(({className:e,variant:t,size:a,radius:r,as:n="div",...i},s)=>jsxRuntime.jsx(n,{ref:s,className:o(dh({variant:t,size:a,radius:r,className:e})),...i}));ch.displayName="Well";var uh=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"}}),ST=classVarianceAuthority.cva("text-muted-foreground font-medium",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),TT=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}}),ph=K__namespace.forwardRef(({className:e,orientation:t,size:a,align:r,label:n,value:i,valueWeight:s,mono:l,labelWidth:d,labelClassName:m,valueClassName:u,showColon:c=false,copyable:f=false,onCopy:p,...h},R)=>{let g=async()=>{if(!(!f||i===null||i===void 0))try{let x=typeof i=="string"?i:String(i);await navigator.clipboard.writeText(x),p?.();}catch{}};return jsxRuntime.jsxs("div",{ref:R,className:o(uh({orientation:t,size:a,align:r,className:e})),...h,children:[jsxRuntime.jsxs("span",{className:o(ST({size:a}),m),style:d?{width:d,flexShrink:0}:void 0,children:[n,c&&":"]}),jsxRuntime.jsx("span",{className:o(TT({size:a,weight:s,mono:l}),f&&"cursor-pointer hover:bg-accent/50 rounded px-1 -mx-1 transition-colors",u),onClick:f?g:void 0,role:f?"button":void 0,tabIndex:f?0:void 0,onKeyDown:f?x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),g());}:void 0,children:i})]})});ph.displayName="LabeledValue";var fh=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"}}),gh=K__namespace.forwardRef(({className:e,orientation:t,gap:a,...r},n)=>jsxRuntime.jsx("div",{ref:n,className:o(fh({orientation:t,gap:a,className:e})),...r}));gh.displayName="LabeledValueGroup";var xh=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"}}),po=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"}}),yh=K__namespace.forwardRef(({value:e,defaultValue:t="",onChange:a,onSearch:r,onSelect:n,suggestions:i=[],recentSearches:s=[],onClearRecentSearches:l,trendingSearches:d=[],isLoading:m,showClear:u=true,showIcon:c=true,popoverWidth:f="trigger",emptyMessage:p="No results found",size:h,variant:R,className:g,placeholder:x="Search...",disabled:w,...b},v)=>{let[P,y]=K__namespace.useState(false),[C,M]=K__namespace.useState(t),T=e!==void 0?e:C,N=K__namespace.useRef(null);K__namespace.useImperativeHandle(v,()=>N.current);let S=T.length>0,k=P&&(i.length>0||s.length>0||d.length>0||S),L=H=>{e===void 0&&M(H),a?.(H);},E=()=>{L(""),N.current?.focus();},V=H=>{H?.preventDefault(),T.trim()&&(r?.(T.trim()),y(false));},D=H=>{L(H.label),n?.(H),y(false);},I=H=>{L(H),r?.(H),y(false);},z=H=>{L(H),r?.(H),y(false);},W=K__namespace.useMemo(()=>{let H={};return i.forEach(j=>{let $=j.category||"Results";H[$]||(H[$]=[]),H[$].push(j);}),H},[i]);return jsxRuntime.jsxs(Ne,{open:k,onOpenChange:y,children:[jsxRuntime.jsx(Se,{asChild:true,children:jsxRuntime.jsxs("form",{onSubmit:V,className:o(xh({size:h,variant:R}),g),children:[c&&jsxRuntime.jsx(lucideReact.Search,{className:o(po({size:h}),"ml-3")}),jsxRuntime.jsx("input",{ref:N,type:"text",value:T,onChange:H=>L(H.target.value),onFocus:()=>y(true),placeholder:x,disabled:w,className:o("flex-1 bg-transparent px-3 py-2 outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",!c&&"pl-3"),...b}),u&&S&&!w&&jsxRuntime.jsx("button",{type:"button",onClick:E,className:o("mr-2 rounded-sm p-1 text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",po({size:h})),children:jsxRuntime.jsx(lucideReact.X,{className:"h-full w-full"})})]})}),jsxRuntime.jsx(xe,{className:"p-0",style:{width:f==="trigger"?"var(--radix-popover-trigger-width)":f},align:"start",onOpenAutoFocus:H=>H.preventDefault(),children:jsxRuntime.jsxs(cmdk.Command,{className:"rounded-lg border-0",children:[s.length>0&&!S&&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((H,j)=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>I(H),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:o(po({size:h}))}),jsxRuntime.jsx("span",{className:"flex-1 text-left truncate",children:H}),jsxRuntime.jsx(lucideReact.ArrowRight,{className:o(po({size:h}),"opacity-0 group-hover:opacity-100")})]},j))]}),d.length>0&&!S&&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"})}),d.map((H,j)=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>z(H),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:o(po({size:h}))}),jsxRuntime.jsx("span",{className:"flex-1 text-left truncate",children:H})]},j))]}),S&&jsxRuntime.jsx("div",{className:"p-2",children:m?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"})}):i.length>0?Object.entries(W).map(([H,j])=>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:H})}),j.map($=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>D($),className:"flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm hover:bg-muted",children:[$.icon||jsxRuntime.jsx(lucideReact.Search,{className:o(po({size:h}))}),jsxRuntime.jsxs("div",{className:"flex-1 text-left",children:[jsxRuntime.jsx("div",{className:"truncate",children:$.label}),$.description&&jsxRuntime.jsx("div",{className:"text-xs text-muted-foreground truncate",children:$.description})]})]},$.id))]},H)):jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:p})})]})})]})});yh.displayName="SearchBar";var Rh={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"})},wh=K__namespace.forwardRef(({open:e,onOpenChange:t,items:a=[],recentItems:r=[],placeholder:n="Search...",isLoading:i,emptyMessage:s="No results found.",filter:l,shortcut:d="\u2318K",onSelect:m,footer:u},c)=>{let[f,p]=K__namespace.useState(""),h=K__namespace.useRef(null);K__namespace.useEffect(()=>{e||p("");},[e]);let R=K__namespace.useMemo(()=>{let b={};return a.forEach(v=>{let P=v.category||"Results";b[P]||(b[P]=[]),b[P].push(v);}),b},[a]),g=b=>{b.onSelect?.(),m?.(b),t?.(false);},x=f.length>0,w=!x&&r.length>0;return jsxRuntime.jsx(ne__namespace.Root,{open:e,onOpenChange:t,children:jsxRuntime.jsxs(ne__namespace.Portal,{children:[jsxRuntime.jsx(ne__namespace.Overlay,{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"}),jsxRuntime.jsx(ne__namespace.Content,{ref:c,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",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:h,value:f,onValueChange:p,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"}),f&&jsxRuntime.jsx("button",{type:"button",onClick:()=>p(""),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:i?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:[w&&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"}),r.map(b=>jsxRuntime.jsxs(cmdk.Command.Item,{value:b.label,onSelect:()=>g(b),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:b.icon||Rh[b.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:b.label}),b.description&&jsxRuntime.jsx("div",{className:"truncate text-xs text-muted-foreground",children:b.description})]}),b.shortcut&&jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:b.shortcut.map((v,P)=>jsxRuntime.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 text-xs font-medium",children:v},P))})]},b.id))]}),x&&Object.entries(R).map(([b,v])=>jsxRuntime.jsxs(cmdk.Command.Group,{heading:b,children:[jsxRuntime.jsx("div",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:b}),v.map(P=>jsxRuntime.jsxs(cmdk.Command.Item,{value:`${P.label} ${P.keywords?.join(" ")||""}`,onSelect:()=>g(P),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:P.icon||Rh[b]||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:P.label}),P.description&&jsxRuntime.jsx("div",{className:"truncate text-xs text-muted-foreground",children:P.description})]}),jsxRuntime.jsx(lucideReact.ArrowRight,{className:"h-4 w-4 text-muted-foreground opacity-0 group-aria-selected:opacity-100"})]},P.id))]},b)),jsxRuntime.jsx(cmdk.Command.Empty,{className:"py-10 text-center text-sm text-muted-foreground",children:s})]})}),u?jsxRuntime.jsx("div",{className:"border-t px-4 py-3",children:u}):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:d})," to open"]})]})]})})]})})});wh.displayName="SpotlightSearch";function OT(e="k"){let[t,a]=K__namespace.useState(false);return K__namespace.useEffect(()=>{let r=n=>{(n.metaKey||n.ctrlKey)&&n.key===e&&(n.preventDefault(),a(i=>!i));};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[e]),{open:t,setOpen:a,toggle:()=>a(r=>!r)}}var jT=classVarianceAuthority.cva("",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),XT={default:"bg-muted",info:"bg-blue-500/10 text-blue-600 dark:text-blue-400",success:"bg-green-500/10 text-green-600 dark:text-green-400",warning:"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400",error:"bg-red-500/10 text-red-600 dark:text-red-400"},qT=e=>{let t=typeof e=="string"?new Date(e):e,r=new Date().getTime()-t.getTime(),n=Math.floor(r/6e4),i=Math.floor(r/36e5),s=Math.floor(r/864e5);return n<1?"Just now":n<60?`${n}m ago`:i<24?`${i}h ago`:s<7?`${s}d ago`:t.toLocaleDateString()},Nh=K__namespace.forwardRef(({notifications:e=[],onNotificationClick:t,onMarkAsRead:a,onMarkAllAsRead:r,onDismiss:n,onClearAll:i,showSettings:s,onSettingsClick:l,trigger:d,align:m="end",emptyMessage:u="No notifications",maxHeight:c=400,className:f},p)=>{let[h,R]=K__namespace.useState(false),g=e.filter(b=>!b.read).length,x=e.length>0,w=b=>{b.read||a?.(b.id),t?.(b);};return jsxRuntime.jsxs(Ne,{open:h,onOpenChange:R,children:[jsxRuntime.jsx(Se,{asChild:true,children:d||jsxRuntime.jsxs("button",{ref:p,className:o("relative inline-flex h-10 w-10 items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground transition-colors",f),children:[jsxRuntime.jsx(lucideReact.Bell,{className:"h-5 w-5"}),g>0&&jsxRuntime.jsx("span",{className:"absolute -right-1 -top-1 flex h-5 min-w-5 items-center justify-center rounded-full bg-primary px-1 text-[10px] font-medium text-primary-foreground",children:g>99?"99+":g})]})}),jsxRuntime.jsxs(xe,{className:"w-80 p-0 sm:w-96",align:m,sideOffset:8,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between border-b px-4 py-3",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("h3",{className:"font-semibold",children:"Notifications"}),g>0&&jsxRuntime.jsxs(Ro,{size:"sm",children:[g," new"]})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[x&&r&&g>0&&jsxRuntime.jsx("button",{type:"button",onClick:r,className:"rounded-sm p-1.5 text-muted-foreground hover:bg-muted hover:text-foreground",title:"Mark all as read",children:jsxRuntime.jsx(lucideReact.CheckCheck,{className:"h-4 w-4"})}),x&&i&&jsxRuntime.jsx("button",{type:"button",onClick:i,className:"rounded-sm p-1.5 text-muted-foreground hover:bg-muted hover:text-foreground",title:"Clear all",children:jsxRuntime.jsx(lucideReact.Trash2,{className:"h-4 w-4"})}),s&&l&&jsxRuntime.jsx("button",{type:"button",onClick:l,className:"rounded-sm p-1.5 text-muted-foreground hover:bg-muted hover:text-foreground",title:"Settings",children:jsxRuntime.jsx(lucideReact.Settings,{className:"h-4 w-4"})})]})]}),x?jsxRuntime.jsx(ze,{style:{maxHeight:c},children:jsxRuntime.jsx("div",{className:"divide-y",children:e.map(b=>jsxRuntime.jsxs("div",{className:o("group relative flex gap-3 px-4 py-3 transition-colors hover:bg-muted/50",!b.read&&"bg-muted/30"),children:[jsxRuntime.jsx("div",{className:o("flex h-9 w-9 shrink-0 items-center justify-center rounded-full",b.avatar?"overflow-hidden":XT[b.type||"default"]),children:b.avatar?jsxRuntime.jsx("img",{src:b.avatar,alt:"",className:"h-full w-full object-cover"}):b.icon?b.icon:jsxRuntime.jsx(lucideReact.Bell,{className:"h-4 w-4"})}),jsxRuntime.jsxs("button",{type:"button",onClick:()=>w(b),className:"flex-1 text-left",children:[jsxRuntime.jsxs("div",{className:"flex items-start justify-between gap-2",children:[jsxRuntime.jsx("p",{className:o("text-sm",!b.read&&"font-medium"),children:b.title}),!b.read&&jsxRuntime.jsx("span",{className:"mt-1.5 h-2 w-2 shrink-0 rounded-full bg-primary"})]}),b.description&&jsxRuntime.jsx("p",{className:"mt-0.5 text-xs text-muted-foreground line-clamp-2",children:b.description}),jsxRuntime.jsx("p",{className:"mt-1 text-[10px] text-muted-foreground",children:qT(b.timestamp)})]}),jsxRuntime.jsxs("div",{className:"absolute right-2 top-2 flex gap-1 opacity-0 transition-opacity group-hover:opacity-100",children:[!b.read&&a&&jsxRuntime.jsx("button",{type:"button",onClick:v=>{v.stopPropagation(),a(b.id);},className:"rounded-sm p-1 text-muted-foreground hover:bg-background hover:text-foreground",title:"Mark as read",children:jsxRuntime.jsx(lucideReact.Check,{className:"h-3.5 w-3.5"})}),(n||b.onDismiss)&&jsxRuntime.jsx("button",{type:"button",onClick:v=>{v.stopPropagation(),b.onDismiss?.(),n?.(b.id);},className:"rounded-sm p-1 text-muted-foreground hover:bg-background hover:text-foreground",title:"Dismiss",children:jsxRuntime.jsx(lucideReact.X,{className:"h-3.5 w-3.5"})})]})]},b.id))})}):jsxRuntime.jsxs("div",{className:"flex flex-col items-center justify-center py-10 text-center",children:[jsxRuntime.jsx(lucideReact.Bell,{className:"h-10 w-10 text-muted-foreground/50"}),jsxRuntime.jsx("p",{className:"mt-3 text-sm text-muted-foreground",children:u})]})]})]})});Nh.displayName="NotificationCenter";var Ph=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"}}),rM={default:lucideReact.Info,success:lucideReact.CheckCircle2,warning:lucideReact.AlertTriangle,error:lucideReact.AlertCircle},Ch=K__namespace.forwardRef(({message:e,type:t="default",variant:a="solid",showIcon:r=false,icon:n,dismissible:i=true,onDismiss:s,endContent:l,position:d,animate:m,autoDismiss:u,storageKey:c,className:f,...p},h)=>{let[R,g]=K__namespace.useState(true),[x,w]=K__namespace.useState(false);K__namespace.useEffect(()=>{c&&localStorage.getItem(`banner-${c}`)==="true"&&g(false);},[c]),K__namespace.useEffect(()=>{if(u&&R){let y=setTimeout(()=>{b();},u);return ()=>clearTimeout(y)}},[u,R]);let b=()=>{w(true),setTimeout(()=>{g(false),c&&localStorage.setItem(`banner-${c}`,"true"),s?.();},200);};if(!R)return null;let v=rM[t],P=r?n!==void 0?n:v?jsxRuntime.jsx(v,{className:"h-4 w-4"}):null:null;return jsxRuntime.jsxs("div",{ref:h,className:o(Ph({variant:a,type:t,position:d}),m&&"animate-pulse",x&&"animate-out fade-out slide-out-to-top duration-200",f),role:"banner",...p,children:[P&&jsxRuntime.jsx("span",{className:"shrink-0",children:P}),jsxRuntime.jsx("span",{className:"text-center font-medium",children:e}),l&&jsxRuntime.jsx("div",{className:"shrink-0 ml-2",children:l}),i&&jsxRuntime.jsx("button",{type:"button",onClick:b,className:o("absolute right-2 top-1/2 -translate-y-1/2 rounded-sm p-1 transition-opacity hover:opacity-70 cursor-pointer",d==="relative"&&"right-4"),"aria-label":"Dismiss banner",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})});Ch.displayName="Banner";var sn=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:{default:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-muted",ghost:"bg-background hover:bg-muted shadow-md"},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:"default",size:"md",position:"bottom-right"}}),iM=classVarianceAuthority.cva("transition-transform duration-200",{variants:{size:{sm:"h-4 w-4",md:"h-6 w-6",lg:"h-7 w-7"}},defaultVariants:{size:"md"}}),ql=K__namespace.forwardRef(({icon:e,label:t="Action button",extended:a,extendedLabel:r,actions:n,direction:i="up",showTooltip:s=true,closeIcon:l,animation:d="rotate",variant:m,size:u,position:c,className:f,onClick:p,disabled:h,...R},g)=>{let[x,w]=K__namespace.useState(false),b=n&&n.length>0,v=T=>{b&&w(!x),p?.(T);},P=T=>{T.onClick?.(),w(false);},y={up:{container:"flex-col-reverse bottom-full mb-3",item:"mb-3"},down:{container:"flex-col top-full mt-3",item:"mt-3"},left:{container:"flex-row-reverse right-full mr-3",item:"mr-3"},right:{container:"flex-row left-full ml-3",item:"ml-3"}},C=d==="rotate"&&x?"rotate-45":"",M=d==="scale"&&x?"scale-0":"scale-100";return jsxRuntime.jsxs("div",{className:o("z-50",c!=="relative"&&c&&sn({position:c})),children:[b&&x&&jsxRuntime.jsx("div",{className:o("absolute flex items-center gap-2",y[i].container),children:n.map((T,N)=>jsxRuntime.jsxs("div",{className:o("flex items-center gap-2 animate-in fade-in zoom-in duration-200",i==="up"||i==="down"?"flex-row":"flex-col"),style:{animationDelay:`${N*50}ms`},children:[s&&(i==="up"||i==="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:T.label}),T.href?jsxRuntime.jsx("a",{href:T.href,className:o(sn({variant:T.variant||"secondary",size:u==="lg"?"md":"sm"})),"aria-label":T.label,children:T.icon}):jsxRuntime.jsx("button",{type:"button",onClick:()=>P(T),className:o(sn({variant:T.variant||"secondary",size:u==="lg"?"md":"sm"})),"aria-label":T.label,children:T.icon}),s&&(i==="left"||i==="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:T.label})]},T.id))}),jsxRuntime.jsxs("button",{ref:g,type:"button",onClick:v,disabled:h,className:o(sn({variant:m,size:u,position:"relative"}),a&&"px-6 gap-2",f),"aria-label":t,"aria-expanded":b?x:void 0,...R,children:[x&&l?l:jsxRuntime.jsx("span",{className:o(iM({size:u}),C,M,"transition-all duration-200"),children:e||jsxRuntime.jsx(lucideReact.Plus,{})}),a&&r&&jsxRuntime.jsx("span",{className:"font-medium",children:r})]}),b&&x&&jsxRuntime.jsx("div",{className:"fixed inset-0 -z-10",onClick:()=>w(false)})]})});ql.displayName="FloatingActionButton";var sM=ql;var Dh=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"}}),Th=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"}}),Lh=K__namespace.forwardRef(({className:e,variant:t,size:a,items:r,value:n,defaultValue:i,onValueChange:s,hideLabels:l=false,showActiveLabel:d=false,renderItem:m,...u},c)=>{let[f,p]=K__namespace.useState(i||r[0]?.key),h=n!==void 0,R=h?n:f,g=v=>{v.disabled||(h||p(v.key),s?.(v.key));},x=v=>t==="filled"?v?"text-primary-foreground":"text-primary-foreground/60 hover:text-primary-foreground/80":v?"text-primary":"text-muted-foreground hover:text-foreground",w=()=>{switch(a){case "sm":return "h-5 w-5";case "lg":return "h-7 w-7";default:return "h-6 w-6"}},b=()=>{switch(a){case "sm":return "text-[10px]";case "lg":return "text-sm";default:return "text-xs"}};return jsxRuntime.jsx("nav",{ref:c,className:o(Dh({variant:t,size:a}),e),role:"navigation","aria-label":"Bottom navigation",...u,children:r.map(v=>{let P=R===v.key,y=!l&&(d?P:true),C=P&&v.activeIcon?v.activeIcon:v.icon;if(m)return jsxRuntime.jsx("div",{onClick:()=>g(v),className:o(Th({variant:t}),v.disabled&&"opacity-50 cursor-not-allowed"),children:m(v,P)},v.key);let M=jsxRuntime.jsxs("div",{onClick:()=>!v.href&&g(v),className:o(Th({variant:t}),x(P),v.disabled&&"opacity-50 cursor-not-allowed"),role:"button","aria-current":P?"page":void 0,"aria-disabled":v.disabled,tabIndex:v.disabled?-1:0,onKeyDown:T=>{(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),g(v));},children:[jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("span",{className:o(w(),"[&>svg]:h-full [&>svg]:w-full"),children:C}),v.badge!==void 0&&v.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:v.badge>99?"99+":v.badge}),v.showDot&&jsxRuntime.jsx("span",{className:"absolute -top-0.5 -right-0.5 h-2 w-2 rounded-full bg-red-500"})]}),y&&v.label&&jsxRuntime.jsx("span",{className:o(b(),"font-medium truncate max-w-full px-1"),children:v.label})]},v.key);return v.href&&!v.disabled?jsxRuntime.jsx("a",{href:v.href,onClick:()=>g(v),className:o("flex flex-1 flex-col items-center justify-center gap-1 no-underline",x(P)),children:M},v.key):M})})});Lh.displayName="BottomNavigation";var dM="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",Ih=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"}}),Eh=K__namespace.forwardRef(({open:e,onOpenChange:t,trigger:a,title:r,description:n,items:i,cancelLabel:s="Cancel",onCancel:l,showCancel:d=true,children:m,closeOnSelect:u=true,onAction:c},f)=>{let p=h=>{h.isDisabled||(h.onSelect?.(),c?.(h.key),u&&t?.(false));};return jsxRuntime.jsxs(vaul.Drawer.Root,{open:e,onOpenChange:t,children:[a&&jsxRuntime.jsx(vaul.Drawer.Trigger,{asChild:true,children:a}),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:f,className:dM,children:[jsxRuntime.jsx("div",{className:"mx-auto mt-4 h-1.5 w-12 flex-shrink-0 rounded-full bg-muted"}),(r||n)&&jsxRuntime.jsxs("div",{className:"px-4 py-3 text-center",children:[r&&jsxRuntime.jsx(vaul.Drawer.Title,{className:"text-base font-semibold",children:r}),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:m||jsxRuntime.jsx("div",{className:"divide-y divide-border/40 dark:divide-border/20",children:i?.map(h=>jsxRuntime.jsxs("button",{type:"button",disabled:h.isDisabled,onClick:()=>p(h),className:o(Ih({variant:h.isDestructive?"destructive":"default"})),children:[h.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 flex-shrink-0 [&>svg]:h-full [&>svg]:w-full",children:h.icon}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:"font-medium",children:h.label}),h.description&&jsxRuntime.jsx("div",{className:"text-sm text-muted-foreground truncate",children:h.description})]})]},h.key))})}),d&&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})})})]})]})]})});Eh.displayName="ActionSheet";var Ah=classVarianceAuthority.cva("relative overflow-hidden touch-pan-y",{variants:{variant:{default:"",card:"rounded-lg border bg-card"}},defaultVariants:{variant:"default"}}),Jl=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"}}),zh=K__namespace.forwardRef(({className:e,variant:t,leftActions:a=[],rightActions:r=[],actionSize:n="md",threshold:i=.3,onSwipeEnd:s,disabled:l=false,fullSwipeAction:d,children:m,...u},c)=>{let f=K__namespace.useRef(null),[p,h]=K__namespace.useState(0),[R,g]=K__namespace.useState(false),x=K__namespace.useRef(0),w=K__namespace.useRef(0),b=a.length*(n==="sm"?64:n==="lg"?96:80),v=r.length*(n==="sm"?64:n==="lg"?96:80),P=N=>{l||(g(true),x.current=N.touches[0].clientX,w.current=p);},y=N=>{if(!R||l)return;let k=N.touches[0].clientX-x.current,L=w.current+k;(L>0&&a.length===0||L<0&&r.length===0)&&(L=0),L>b?L=b+(L-b)*.3:L<-v&&(L=-v+(L+v)*.3),h(L);},C=()=>{if(!R)return;g(false);let N=f.current?.offsetWidth||0,S=Math.abs(p)/N;if(d&&S>.6){d==="right"&&p>0&&a[0]?(a[0].onAction?.(),s?.("right",a[0].key)):d==="left"&&p<0&&r[0]&&(r[0].onAction?.(),s?.("left",r[0].key)),h(0);return}p>b*i&&a.length>0?(h(b),s?.("right")):p<-v*i&&r.length>0?(h(-v),s?.("left")):h(0);},M=(N,S)=>{N.onAction?.(),s?.(S,N.key),h(0);},T=()=>{h(0);};return jsxRuntime.jsxs("div",{ref:c,className:o(Ah({variant:t,className:e})),...u,children:[a.length>0&&jsxRuntime.jsx("div",{className:"absolute left-0 top-0 bottom-0 flex",style:{width:b},children:a.map(N=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>M(N,"right"),className:o(Jl({variant:N.variant,size:n})),style:{opacity:Math.min(1,p/b)},children:[N.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 [&>svg]:h-full [&>svg]:w-full",children:N.icon}),!N.icon&&N.label]},N.key))}),r.length>0&&jsxRuntime.jsx("div",{className:"absolute right-0 top-0 bottom-0 flex",style:{width:v},children:r.map(N=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>M(N,"left"),className:o(Jl({variant:N.variant,size:n})),style:{opacity:Math.min(1,Math.abs(p)/v)},children:[N.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 [&>svg]:h-full [&>svg]:w-full",children:N.icon}),!N.icon&&N.label]},N.key))}),jsxRuntime.jsx("div",{ref:f,className:o("relative bg-background",R?"":"transition-transform duration-200"),style:{transform:`translateX(${p}px)`},onTouchStart:P,onTouchMove:y,onTouchEnd:C,onClick:p!==0?T:void 0,children:m})]})});zh.displayName="SwipeActions";var Fh=classVarianceAuthority.cva("relative overflow-hidden",{variants:{variant:{default:"",contained:"h-full"}},defaultVariants:{variant:"default"}}),uM=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"}}),Oh=K__namespace.forwardRef(({className:e,variant:t,onRefresh:a,pullThreshold:r=80,maxPullDistance:n=120,loadingIndicator:i,pullIndicator:s,indicatorSize:l="md",disabled:d=false,pullText:m="Pull to refresh",releaseText:u="Release to refresh",refreshingText:c="Refreshing...",children:f,...p},h)=>{let R=K__namespace.useRef(null),[g,x]=K__namespace.useState(0),[w,b]=K__namespace.useState("idle"),v=K__namespace.useRef(0),P=K__namespace.useRef(false),y=()=>d||w==="refreshing"?false:(R.current?.scrollTop??window.scrollY)<=0,C=k=>{y()&&(v.current=k.touches[0].clientY,P.current=true);},M=k=>{if(!P.current||!y())return;let E=k.touches[0].clientY-v.current;if(E<0){x(0),b("idle");return}let D=Math.min(E*.5,n);x(D),b(D>=r?"ready":"pulling");},T=async()=>{if(P.current)if(P.current=false,w==="ready"){b("refreshing"),x(r*.6);try{await a();}finally{b("idle"),x(0);}}else b("idle"),x(0);},N={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6"}[l],S=()=>{if(w==="refreshing")return i||jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-1",children:[jsxRuntime.jsx(lucideReact.Loader2,{className:o(N,"animate-spin text-primary")}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:c})]});let k=Math.min(g/r*180,180);return s||jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-1",children:[jsxRuntime.jsx(lucideReact.ArrowDown,{className:o(N,"text-muted-foreground transition-transform"),style:{transform:`rotate(${k}deg)`}}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:w==="ready"?u:m})]})};return jsxRuntime.jsxs("div",{ref:h,className:o(Fh({variant:t,className:e})),...p,children:[jsxRuntime.jsx("div",{className:o(uM({size:l}),"z-10",w==="idle"&&g===0&&"opacity-0"),style:{top:Math.max(g-60,-60),opacity:Math.min(g/(r*.5),1)},children:S()}),jsxRuntime.jsx("div",{ref:R,className:o("transition-transform duration-200",w==="refreshing"&&"ease-out"),style:{transform:`translateY(${g}px)`,transition:P.current?"none":void 0},onTouchStart:C,onTouchMove:M,onTouchEnd:T,children:f})]})});Oh.displayName="PullToRefresh";var Wh=classVarianceAuthority.cva("flex min-h-screen w-full",{variants:{layout:{default:"flex-col",sidebar:"flex-row"}},defaultVariants:{layout:"default"}}),$h=K__namespace.forwardRef(({className:e,layout:t="default",header:a,footer:r,sidebar:n,aside:i,sidebarCollapsed:s=false,sidebarWidth:l="16rem",sidebarCollapsedWidth:d="4rem",asideWidth:m="16rem",fixed:u=false,children:c,...f},p)=>{let h=s?d:l;return jsxRuntime.jsxs("div",{ref:p,className:o(Wh({layout:t}),e),style:{"--app-shell-sidebar-width":h,"--app-shell-aside-width":m},...f,children:[a&&jsxRuntime.jsx(ed,{fixed:u,hasSidebar:!!n,children:a}),jsxRuntime.jsxs("div",{className:"flex flex-1",children:[n&&jsxRuntime.jsx(td,{collapsed:s,fixed:u,children:n}),jsxRuntime.jsx("main",{className:o("flex-1 flex flex-col min-h-0",u&&a&&"pt-14",u&&r&&"pb-14"),children:c}),i&&jsxRuntime.jsx(ad,{fixed:u,children:i})]}),r&&jsxRuntime.jsx(rd,{fixed:u,hasSidebar:!!n,children:r})]})});$h.displayName="AppShell";var ed=K__namespace.forwardRef(({className:e,fixed:t,hasSidebar:a,children:r,...n},i)=>jsxRuntime.jsx("header",{ref:i,className:o("flex h-14 items-center border-b bg-background px-4",t&&"fixed top-0 right-0 z-40",t&&a&&"left-[var(--app-shell-sidebar-width)]",t&&!a&&"left-0",e),...n,children:r}));ed.displayName="AppShellHeader";var td=K__namespace.forwardRef(({className:e,collapsed:t,fixed:a,children:r,...n},i)=>jsxRuntime.jsx("aside",{ref:i,className:o("w-[var(--app-shell-sidebar-width)] shrink-0 border-r bg-background transition-[width] duration-200",a&&"fixed left-0 top-0 bottom-0 z-50",e),"data-collapsed":t,...n,children:r}));td.displayName="AppShellSidebar";var ad=K__namespace.forwardRef(({className:e,fixed:t,children:a,...r},n)=>jsxRuntime.jsx("aside",{ref:n,className:o("w-[var(--app-shell-aside-width)] shrink-0 border-l bg-background",t&&"fixed right-0 top-14 bottom-0 z-40",e),...r,children:a}));ad.displayName="AppShellAside";var rd=K__namespace.forwardRef(({className:e,fixed:t,hasSidebar:a,children:r,...n},i)=>jsxRuntime.jsx("footer",{ref:i,className:o("flex h-14 items-center border-t bg-background px-4",t&&"fixed bottom-0 right-0 z-40",t&&a&&"left-[var(--app-shell-sidebar-width)]",t&&!a&&"left-0",e),...n,children:r}));rd.displayName="AppShellFooter";var _h=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex-1 overflow-auto p-4",e),...t}));_h.displayName="AppShellMain";var Uh=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"}}),Yh=K__namespace.forwardRef(({className:e,variant:t,navigation:a,logo:r,userMenu:n,headerActions:i,breadcrumb:s,defaultCollapsed:l=false,collapsed:d,onCollapsedChange:m,children:u,...c},f)=>{let[p,h]=K__namespace.useState(l),[R,g]=K__namespace.useState(false),x=d??p,w=K__namespace.useCallback(b=>{h(b),m?.(b);},[m]);return jsxRuntime.jsxs("div",{ref:f,className:o(Uh({variant:t}),e),...c,children:[jsxRuntime.jsxs("aside",{"data-slot":"sidebar","data-collapsed":x,className:o("hidden lg:flex flex-col fixed inset-y-0 left-0 z-50 bg-background transition-[width] duration-200",x?"w-16":"w-64"),children:[jsxRuntime.jsx("div",{className:"flex h-14 items-center border-b px-4",children:r}),jsxRuntime.jsx("nav",{className:"flex-1 overflow-auto py-4",children:a}),n&&jsxRuntime.jsx("div",{className:"border-t p-4",children:n})]}),jsxRuntime.jsx(Do,{open:R,onOpenChange:g,children:jsxRuntime.jsxs(Hr,{side:"left",className:"w-64 p-0",children:[jsxRuntime.jsx("div",{className:"flex h-14 items-center border-b px-4",children:r}),jsxRuntime.jsx("nav",{className:"flex-1 overflow-auto py-4",children:a}),n&&jsxRuntime.jsx("div",{className:"border-t p-4",children:n})]})}),jsxRuntime.jsxs("div",{className:o("flex flex-1 flex-col transition-[margin-left] duration-200",x?"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(G,{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(G,{variant:"ghost",size:"icon",className:"hidden lg:flex",onClick:()=>w(!x),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}),i&&jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:i})]}),jsxRuntime.jsx("main",{className:"flex-1 p-4 lg:p-6",children:u})]})]})});Yh.displayName="DashboardLayout";var jh=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("space-y-6",e),...t}));jh.displayName="DashboardPage";var Xh=K__namespace.forwardRef(({className:e,title:t,description:a,actions:r,children:n,...i},s)=>jsxRuntime.jsxs("div",{ref:s,className:o("flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",e),...i,children:[jsxRuntime.jsxs("div",{className:"space-y-1",children:[t&&jsxRuntime.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:t}),a&&jsxRuntime.jsx("p",{className:"text-muted-foreground",children:a}),n]}),r&&jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:r})]}));Xh.displayName="DashboardPageHeader";var qh=K__namespace.forwardRef(({className:e,columns:t=4,...a},r)=>jsxRuntime.jsx("div",{ref:r,className:o("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),...a}));qh.displayName="DashboardGrid";var ji=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"}}),Zh=K__namespace.forwardRef(({className:e,variant:t="centered",logo:a,sideContent:r,backgroundImage:n,sidePosition:i="left",footer:s,children:l,...d},m)=>t==="split"?jsxRuntime.jsxs("div",{ref:m,className:o(ji({variant:t}),e),...d,children:[jsxRuntime.jsx("div",{className:o("hidden lg:flex lg:w-1/2 flex-col bg-primary text-primary-foreground",i==="right"&&"order-2"),children:r||jsxRuntime.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center p-8",children:[a&&jsxRuntime.jsx("div",{className:"mb-8",children:a}),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:o("flex flex-1 flex-col lg:w-1/2",i==="right"&&"order-1"),children:[a&&jsxRuntime.jsx("div",{className:"flex items-center justify-center p-6 lg:hidden",children:a}),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:m,className:o(ji({variant:t}),e),style:n?{backgroundImage:`url(${n})`,backgroundSize:"cover",backgroundPosition:"center"}:void 0,...d,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:[a&&jsxRuntime.jsx("div",{className:"mb-8 flex justify-center",children:a}),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:m,className:o(ji({variant:t}),e),...d,children:jsxRuntime.jsxs("div",{className:"w-full max-w-md p-6",children:[a&&jsxRuntime.jsx("div",{className:"mb-8 flex justify-center",children:a}),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})]})}));Zh.displayName="AuthLayout";var Jh=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("form",{ref:a,className:o("space-y-4",e),...t}));Jh.displayName="AuthForm";var Qh=K__namespace.forwardRef(({className:e,title:t,description:a,children:r,...n},i)=>jsxRuntime.jsxs("div",{ref:i,className:o("space-y-2 text-center",e),...n,children:[t&&jsxRuntime.jsx("h1",{className:"text-2xl font-bold",children:t}),a&&jsxRuntime.jsx("p",{className:"text-muted-foreground",children:a}),r]}));Qh.displayName="AuthHeader";var ex=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex flex-col gap-2 text-center text-sm",e),...t}));ex.displayName="AuthFooterLinks";var tx=K__namespace.forwardRef(({className:e,text:t="or continue with",...a},r)=>jsxRuntime.jsxs("div",{ref:r,className:o("relative my-4",e),...a,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})})]}));tx.displayName="AuthDivider";var ax=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("grid grid-cols-2 gap-2",e),...t}));ax.displayName="AuthSocialButtons";var Xi=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"}}),rx=K__namespace.forwardRef(({className:e,variant:t="sidebar",navigation:a,title:r,description:n,children:i,...s},l)=>t==="sidebar"?jsxRuntime.jsxs("div",{ref:l,className:o(Xi({variant:t}),e),...s,children:[a&&jsxRuntime.jsx("aside",{className:"lg:w-64 shrink-0",children:jsxRuntime.jsx("nav",{className:"flex flex-col gap-1",children:a})}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-6",children:[(r||n)&&jsxRuntime.jsx(dn,{title:r,description:n}),i]})]}):t==="tabs"?jsxRuntime.jsxs("div",{ref:l,className:o(Xi({variant:t}),e),...s,children:[(r||n)&&jsxRuntime.jsx(dn,{title:r,description:n}),a,jsxRuntime.jsx("div",{className:"pt-4",children:i})]}):jsxRuntime.jsxs("div",{ref:l,className:o(Xi({variant:t}),e),...s,children:[(r||n)&&jsxRuntime.jsx(dn,{title:r,description:n}),i]}));rx.displayName="SettingsLayout";var dn=K__namespace.forwardRef(({className:e,title:t,description:a,children:r,...n},i)=>jsxRuntime.jsxs("div",{ref:i,className:o("space-y-1",e),...n,children:[t&&jsxRuntime.jsx("h1",{className:"text-2xl font-bold",children:t}),a&&jsxRuntime.jsx("p",{className:"text-muted-foreground",children:a}),r]}));dn.displayName="SettingsHeader";var ox=K__namespace.forwardRef(({className:e,title:t,description:a,children:r,...n},i)=>jsxRuntime.jsxs("div",{ref:i,className:o("space-y-4",e),...n,children:[(t||a)&&jsxRuntime.jsxs("div",{className:"space-y-1",children:[t&&jsxRuntime.jsx("h2",{className:"text-lg font-medium",children:t}),a&&jsxRuntime.jsx("p",{className:"text-sm text-muted-foreground",children:a})]}),r]}));ox.displayName="SettingsSection";var nx=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("rounded-lg border bg-card p-6",e),...t}));nx.displayName="SettingsCard";var ix=K__namespace.forwardRef(({className:e,label:t,description:a,htmlFor:r,children:n,...i},s)=>jsxRuntime.jsxs("div",{ref:s,className:o("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),...i,children:[jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[t&&jsxRuntime.jsx("label",{htmlFor:r,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:t}),a&&jsxRuntime.jsx("p",{className:"text-sm text-muted-foreground",children:a})]}),jsxRuntime.jsx("div",{className:"shrink-0",children:n})]}));ix.displayName="SettingsRow";var sx=K__namespace.forwardRef(({className:e,active:t,icon:a,children:r,...n},i)=>jsxRuntime.jsxs("button",{ref:i,type:"button",className:o("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:[a&&jsxRuntime.jsx("span",{className:"h-4 w-4 [&>svg]:h-full [&>svg]:w-full",children:a}),r]}));sx.displayName="SettingsNavItem";var lx=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("h-px bg-border my-4",e),...t}));lx.displayName="SettingsSeparator";var Vr=(e,t,a)=>({duration:e,delay:t,ease:a||[.4,0,.2,1]}),vM={hidden:e=>({opacity:e}),visible:{opacity:1},exit:e=>({opacity:e})},dx=K__namespace.forwardRef(({show:e=true,children:t,duration:a=.3,delay:r=0,ease:n,className:i,unmountOnExit:s=true,initialOpacity:l=0,onAnimationStart:d,onAnimationComplete:m},u)=>{let c=jsxRuntime.jsx(framerMotion.motion.div,{ref:u,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:vM,custom:l,transition:Vr(a,r,n),className:o(i),onAnimationStart:d,onAnimationComplete:m,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&c}):c});dx.displayName="Fade";var hM=(e,t)=>{let a=typeof t=="number"?`${t}px`:t,r={up:{y:a},down:{y:`-${a}`},left:{x:a},right:{x:`-${a}`}};return {hidden:{opacity:0,...r[e]},visible:{opacity:1,x:0,y:0},exit:{opacity:0,...r[e]}}},cx=K__namespace.forwardRef(({show:e=true,children:t,duration:a=.3,delay:r=0,ease:n,className:i,unmountOnExit:s=true,direction:l="up",offset:d=20,onAnimationStart:m,onAnimationComplete:u},c)=>{let f=K__namespace.useMemo(()=>hM(l,d),[l,d]),p=jsxRuntime.jsx(framerMotion.motion.div,{ref:c,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:f,transition:Vr(a,r,n),className:o(i),onAnimationStart:m,onAnimationComplete:u,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&p}):p});cx.displayName="Slide";var xM={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"},yM={hidden:e=>({opacity:0,scale:e}),visible:{opacity:1,scale:1},exit:e=>({opacity:0,scale:e})},mx=K__namespace.forwardRef(({show:e=true,children:t,duration:a=.3,delay:r=0,ease:n,className:i,unmountOnExit:s=true,initialScale:l=.9,origin:d="center",onAnimationStart:m,onAnimationComplete:u},c)=>{let f=jsxRuntime.jsx(framerMotion.motion.div,{ref:c,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:yM,custom:l,transition:Vr(a,r,n),className:o(i),style:{transformOrigin:xM[d]},onAnimationStart:m,onAnimationComplete:u,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&f}):f});mx.displayName="Scale";var ux=K__namespace.forwardRef(({show:e=true,children:t,duration:a=.3,delay:r=0,ease:n,className:i,horizontal:s=false,startingSize:l=0,animateOpacity:d=true,onAnimationStart:m,onAnimationComplete:u},c)=>{let f=s?"width":"height",p={hidden:{[f]:l,opacity:d?0:1},visible:{[f]:"auto",opacity:1},exit:{[f]:l,opacity:d?0:1}};return jsxRuntime.jsx(framerMotion.AnimatePresence,{initial:false,children:e&&jsxRuntime.jsx(framerMotion.motion.div,{ref:c,initial:"hidden",animate:"visible",exit:"exit",variants:p,transition:Vr(a,r,n),className:o("overflow-hidden",i),onAnimationStart:m,onAnimationComplete:u,children:t})})});ux.displayName="Collapse";var px=K__namespace.forwardRef(({show:e=true,children:t,duration:a=.4,delay:r=0,ease:n,className:i,initialWidth:s=0,initialHeight:l=0,animateOpacity:d=true,onAnimationStart:m,onAnimationComplete:u},c)=>{let f={hidden:{width:s,height:l,opacity:d?0:1},visible:{width:"auto",height:"auto",opacity:1},exit:{width:s,height:l,opacity:d?0:1}};return jsxRuntime.jsx(framerMotion.AnimatePresence,{initial:false,children:e&&jsxRuntime.jsx(framerMotion.motion.div,{ref:c,initial:"hidden",animate:"visible",exit:"exit",variants:f,transition:Vr(a,r,n),className:o("overflow-hidden",i),onAnimationStart:m,onAnimationComplete:u,children:t})})});px.displayName="Expand";var fx=K__namespace.forwardRef(({show:e=true,children:t,duration:a=.3,delay:r=0,ease:n,className:i,unmountOnExit:s=true,initialRotation:l=-180,finalRotation:d=0,onAnimationStart:m,onAnimationComplete:u},c)=>{let f={hidden:{opacity:0,rotate:l},visible:{opacity:1,rotate:d},exit:{opacity:0,rotate:l}},p=jsxRuntime.jsx(framerMotion.motion.div,{ref:c,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:f,transition:Vr(a,r,n),className:o(i),onAnimationStart:m,onAnimationComplete:u,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&p}):p});fx.displayName="Rotate";var gx=K__namespace.forwardRef(({front:e,back:t,direction:a="horizontal",flipped:r=false,duration:n=.6,delay:i=0,ease:s,className:l,onAnimationStart:d,onAnimationComplete:m},u)=>{let c=a==="horizontal"?"rotateY":"rotateX";return jsxRuntime.jsx("div",{ref:u,className:o("relative",l),style:{perspective:1e3},children:jsxRuntime.jsxs(framerMotion.motion.div,{animate:{[c]:r?180:0},transition:Vr(n,i,s),style:{transformStyle:"preserve-3d"},onAnimationStart:d,onAnimationComplete:m,children:[jsxRuntime.jsx("div",{className:"absolute inset-0",style:{backfaceVisibility:"hidden"},children:e}),jsxRuntime.jsx("div",{className:"absolute inset-0",style:{backfaceVisibility:"hidden",transform:`${c}(180deg)`},children:t})]})})});gx.displayName="Flip";var bx=K__namespace.forwardRef(({color:e="currentColor",duration:t=.6,children:a,className:r,disabled:n=false},i)=>{let[s,l]=K__namespace.useState([]),d=K__namespace.useRef(null),m=c=>{if(n)return;let f=d.current;if(!f)return;let p=f.getBoundingClientRect(),h=c.clientX-p.left,R=c.clientY-p.top,g=Math.max(p.width,p.height)*2,x={id:Date.now(),x:h,y:R,size:g};l(w=>[...w,x]);},u=c=>{l(f=>f.filter(p=>p.id!==c));};return jsxRuntime.jsxs("div",{ref:i,className:o("relative overflow-hidden",r),onClick:m,children:[jsxRuntime.jsx("div",{ref:d,className:"relative z-0",children:a}),jsxRuntime.jsx(framerMotion.AnimatePresence,{children:s.map(c=>jsxRuntime.jsx(framerMotion.motion.span,{initial:{scale:0,opacity:.35},animate:{scale:1,opacity:0},exit:{opacity:0},transition:{duration:t,ease:"easeOut"},onAnimationComplete:()=>u(c.id),className:"pointer-events-none absolute rounded-full",style:{left:c.x-c.size/2,top:c.y-c.size/2,width:c.size,height:c.size,backgroundColor:e}},c.id))})]})});bx.displayName="Ripple";var vx=K__namespace.forwardRef(({children:e,animate:t=true,height:a=10,duration:r=.5,count:n=0,className:i,triggerOnHover:s=false},l)=>{let[d,m]=K__namespace.useState(false),u=s?d:t,c={idle:{y:0},bounce:{y:[0,-a,0],transition:{duration:r,ease:"easeInOut",repeat:n===0?1/0:n-1,repeatType:"loop"}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,variants:c,initial:"idle",animate:u?"bounce":"idle",className:o(i),onMouseEnter:()=>s&&m(true),onMouseLeave:()=>s&&m(false),children:e})});vx.displayName="Bounce";var NM={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]},hx=K__namespace.forwardRef(({children:e,animate:t=true,intensity:a="normal",duration:r=.5,count:n=1,className:i,triggerOnHover:s=false},l)=>{let[d,m]=K__namespace.useState(false),u=s?d:t,c={idle:{x:0},shake:{x:NM[a],transition:{duration:r,ease:"easeInOut",repeat:n-1}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,variants:c,initial:"idle",animate:u?"shake":"idle",className:o(i),onMouseEnter:()=>s&&m(true),onMouseLeave:()=>s&&m(false),children:e})});hx.displayName="Shake";var PM={slow:"animate-[pulse_3s_ease-in-out_infinite]",normal:"animate-[pulse_2s_ease-in-out_infinite]",fast:"animate-[pulse_1s_ease-in-out_infinite]"},xx=K__namespace.forwardRef(({children:e,animate:t=true,speed:a="normal",className:r},n)=>jsxRuntime.jsx("div",{ref:n,className:o(t&&PM[a],r),children:e}));xx.displayName="Pulse";var yx=K__namespace.forwardRef(({children:e,animate:t=true,angle:a=10,duration:r=.3,count:n=0,className:i,triggerOnHover:s=false},l)=>{let[d,m]=K__namespace.useState(false),u=s?d:t,c={idle:{rotate:0},wiggle:{rotate:[0,-a,a,-a,a,0],transition:{duration:r,ease:"easeInOut",repeat:n===0?1/0:n-1,repeatType:"loop"}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,variants:c,initial:"idle",animate:u?"wiggle":"idle",className:o(i),onMouseEnter:()=>s&&m(true),onMouseLeave:()=>s&&m(false),children:e})});yx.displayName="Wiggle";var Rx=K__namespace.forwardRef(({children:e,animate:t=false,scale:a=1.2,duration:r=.2,className:n,triggerOnHover:i=false,triggerOnClick:s=false},l)=>{let[d,m]=K__namespace.useState(false),u=t||d,c={type:"spring",stiffness:400,damping:17,duration:r},f=()=>{s&&(m(true),setTimeout(()=>m(false),r*1e3));};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,animate:{scale:u?a:1},transition:c,className:o(n),onMouseEnter:()=>i&&m(true),onMouseLeave:()=>i&&m(false),onClick:f,children:e})});Rx.displayName="Pop";var kM=(e,t,a,r)=>{let n=e.toFixed(t),[i,s]=n.split("."),l=i.replace(/\B(?=(\d{3})+(?!\d))/g,a);return s?`${l}${r}${s}`:l},wx=K__namespace.forwardRef(({value:e,from:t=0,duration:a=2,decimals:r=0,prefix:n="",suffix:i="",separator:s=",",decimalSeparator:l=".",animateOnView:d=true,delay:m=0,className:u,onComplete:c},f)=>{let p=K__namespace.useRef(null),h=framerMotion.useInView(p,{once:true}),[R,g]=K__namespace.useState(!d);K__namespace.useEffect(()=>{if(d&&h){let v=setTimeout(()=>g(true),m*1e3);return ()=>clearTimeout(v)}},[d,h,m]);let x={damping:30,stiffness:100,duration:a*1e3},w=framerMotion.useSpring(R?e:t,x),b=framerMotion.useTransform(w,v=>kM(v,r,s,l));return K__namespace.useEffect(()=>{R&&w.set(e);},[R,e,w]),K__namespace.useEffect(()=>{let v=w.on("change",P=>{Math.abs(P-e)<.01&&c&&c();});return ()=>v()},[w,e,c]),jsxRuntime.jsx("span",{ref:p,className:o(u),children:jsxRuntime.jsxs("span",{ref:f,children:[n,jsxRuntime.jsx(framerMotion.motion.span,{children:b}),i]})})});wx.displayName="Counter";var Nx=K__namespace.forwardRef(({text:e,speed:t=50,delay:a=0,pauseBetween:r=1500,cursor:n=true,cursorChar:i="|",loop:s=false,deleteSpeed:l=30,animateOnView:d=true,className:m,cursorClassName:u,onComplete:c},f)=>{let p=Array.isArray(e)?e:[e],[h,R]=K__namespace.useState(""),[g,x]=K__namespace.useState(0),[w,b]=K__namespace.useState(false),[v,P]=K__namespace.useState(false),y=K__namespace.useRef(null),C=framerMotion.useInView(y,{once:true}),[M,T]=K__namespace.useState(!d);return K__namespace.useEffect(()=>{if(d&&C){let N=setTimeout(()=>T(true),a*1e3);return ()=>clearTimeout(N)}},[d,C,a]),K__namespace.useEffect(()=>{if(!M||v)return;let N=p[g],S;return w?h.length>0?S=setTimeout(()=>{R(h.slice(0,-1));},l):(b(false),x(k=>(k+1)%p.length)):h.length<N.length?S=setTimeout(()=>{R(N.slice(0,h.length+1));},t):g<p.length-1||s?S=setTimeout(()=>{b(true);},r):(P(true),c?.()),()=>clearTimeout(S)},[M,h,g,w,v,p,t,l,r,s,c]),jsxRuntime.jsxs("span",{ref:y,className:o(m),children:[jsxRuntime.jsx("span",{ref:f,children:h}),n&&jsxRuntime.jsx(framerMotion.motion.span,{animate:{opacity:[1,0]},transition:{duration:.8,repeat:1/0,repeatType:"reverse"},className:o("ml-0.5",u),children:i})]})});Nx.displayName="Typewriter";var Px=K__namespace.forwardRef(({children:e,direction:t="up",stagger:a=.05,duration:r=.5,delay:n=0,splitBy:i="word",animateOnView:s=true,className:l},d)=>{let m=K__namespace.useRef(null),u=framerMotion.useInView(m,{once:true,amount:.5}),c=s?u:true,f=typeof e=="string"?e:"",p=i==="word"?f.split(" "):f.split(""),h={up:{y:20},down:{y:-20},left:{x:20},right:{x:-20}},R={hidden:{},visible:{transition:{staggerChildren:a,delayChildren:n}}},g={hidden:{opacity:0,...h[t]},visible:{opacity:1,x:0,y:0,transition:{duration:r,ease:"easeInOut"}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:d,className:o("inline-flex flex-wrap",l),variants:R,initial:"hidden",animate:c?"visible":"hidden",children:jsxRuntime.jsx("span",{ref:m,children:p.map((x,w)=>jsxRuntime.jsxs(framerMotion.motion.span,{variants:g,className:"inline-block",children:[x,i==="word"&&w<p.length-1&&"\xA0"]},w))})})});Px.displayName="TextReveal";var Cx=K__namespace.forwardRef(({words:e,duration:t=2,animation:a="slide",animationDuration:r=.5,className:n,loop:i=true},s)=>{let[l,d]=K__namespace.useState(0);K__namespace.useEffect(()=>{if(!i&&l===e.length-1)return;let u=setInterval(()=>{d(c=>(c+1)%e.length);},t*1e3);return ()=>clearInterval(u)},[e.length,t,i,l]);let m=()=>{switch(a){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:o("relative inline-block",n),children:jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:"wait",children:jsxRuntime.jsx(framerMotion.motion.span,{variants:m(),initial:"initial",animate:"animate",exit:"exit",transition:{duration:r},className:"inline-block",children:e[l]},e[l])})})});Cx.displayName="WordRotate";var kx=K__namespace.forwardRef(({children:e,direction:t="up",distance:a=50,duration:r=.6,delay:n=0,once:i=true,threshold:s=.1,className:l,scale:d,rotate:m,blur:u,ease:c=[.4,0,.2,1]},f)=>{let p=K__namespace.useRef(null),h=framerMotion.useInView(p,{once:i,amount:s}),g={up:{x:0,y:a},down:{x:0,y:-a},left:{x:a,y:0},right:{x:-a,y:0},none:{x:0,y:0}}[t],x={hidden:{opacity:0,x:g.x,y:g.y,scale:d??1,rotate:m??0,filter:u?`blur(${u}px)`:"blur(0px)"},visible:{opacity:1,x:0,y:0,scale:1,rotate:0,filter:"blur(0px)",transition:{duration:r,delay:n,ease:c}}};return jsxRuntime.jsx("div",{ref:p,children:jsxRuntime.jsx(framerMotion.motion.div,{ref:f,variants:x,initial:"hidden",animate:h?"visible":"hidden",className:o(l),children:e})})});kx.displayName="ScrollReveal";var Dx=K__namespace.forwardRef(({position:e="top",size:t=4,color:a="hsl(var(--primary))",backgroundColor:r="transparent",zIndex:n=50,className:i,container:s,showPercentage:l=false,useSpring:d=true},m)=>{let{scrollYProgress:u}=framerMotion.useScroll({container:s}),c=framerMotion.useSpring(u,{stiffness:100,damping:30,restDelta:.001}),f=d?c:u,p=e==="top"||e==="bottom",h={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}},R=p?"scaleX":"scaleY",g=p?"left":"top";return jsxRuntime.jsxs("div",{ref:m,className:o("fixed",i),style:{...h[e],zIndex:n,backgroundColor:r},children:[jsxRuntime.jsx(framerMotion.motion.div,{className:"h-full w-full",style:{[R]:f,transformOrigin:g,backgroundColor:a}}),l&&jsxRuntime.jsx(LM,{progress:f,position:e})]})});Dx.displayName="ScrollProgress";var LM=({progress:e,position:t})=>{let a=framerMotion.useTransform(e,s=>Math.round(s*100)),[r,n]=K__namespace.useState(0);return K__namespace.useEffect(()=>{let s=a.on("change",n);return ()=>s()},[a]),jsxRuntime.jsxs("span",{className:o("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:[r,"%"]})},Lx=K__namespace.forwardRef(({children:e,speed:t=.5,direction:a="vertical",className:r,container:n},i)=>{let s=K__namespace.useRef(null),{scrollYProgress:l}=framerMotion.useScroll({target:s,container:n,offset:["start end","end start"]}),d=[-100*t,100*t],m=framerMotion.useTransform(l,[0,1],d),u=framerMotion.useSpring(m,{stiffness:100,damping:30}),c=a==="horizontal"?u:0,f=a==="vertical"?u:0;return jsxRuntime.jsx("div",{ref:s,className:o("overflow-hidden",r),children:jsxRuntime.jsx(framerMotion.motion.div,{ref:i,style:{x:c,y:f},children:e})})});Lx.displayName="Parallax";var Ex=K__namespace.forwardRef(({children:e,width:t,height:a,duration:r=1.5,direction:n="right",baseColor:i="hsl(var(--muted))",highlightColor:s="hsl(var(--muted-foreground) / 0.1)",borderRadius:l,className:d,active:m=true},u)=>{let c={left:"to left",right:"to right",top:"to top",bottom:"to bottom"},f={left:"shimmer-left",right:"shimmer-right",top:"shimmer-top",bottom:"shimmer-bottom"};return jsxRuntime.jsxs("div",{ref:u,className:o("relative overflow-hidden",d),style:{width:t,height:a,borderRadius:l,backgroundColor:i},children:[e,m&&jsxRuntime.jsx("div",{className:"absolute inset-0",style:{background:`linear-gradient(${c[n]}, transparent, ${s}, transparent)`,animation:`${f[n]} ${r}s infinite`}}),jsxRuntime.jsx("style",{children:`
|
|
31
|
+
`,Tc=false,y0=()=>{if(Tc||typeof document>"u")return;let e=document.createElement("style");e.textContent=x0,document.head.appendChild(e),Tc=true;},Dc=K__namespace.forwardRef(({className:e,title:t,children:a,...r},n)=>(K__namespace.useEffect(()=>{y0();},[]),jsxRuntime.jsxs(mr__namespace.Root,{ref:n,className:o("space-y-2",e),...r,children:[t&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between space-x-4 px-4",children:[jsxRuntime.jsx("h4",{className:"text-sm font-semibold",children:t}),jsxRuntime.jsx(mr__namespace.CollapsibleTrigger,{className:"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",children:jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"h-4 w-4"})})]}),a]})));Dc.displayName="Collapsible";var Vc=K__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsx(mr__namespace.CollapsibleTrigger,{ref:r,className:o("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",e),...a,children:t??jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"h-4 w-4"})}));Vc.displayName="CollapsibleTrigger";var Lc=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(mr__namespace.CollapsibleContent,{ref:a,className:o("collapsible-content overflow-hidden",e),...t}));Lc.displayName="CollapsibleContent";var In=K__namespace.forwardRef(({className:e,value:t,...a},r)=>jsxRuntime.jsx(Lo__namespace.Root,{ref:r,className:o("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...a,children:jsxRuntime.jsx(Lo__namespace.Indicator,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));In.displayName=Lo__namespace.Root.displayName;var R0=ur__namespace.Root,w0=ur__namespace.Trigger,Ac=K__namespace.forwardRef(({className:e,align:t="center",sideOffset:a=4,...r},n)=>jsxRuntime.jsx(ur__namespace.Content,{ref:n,align:t,sideOffset:a,className:o("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));Ac.displayName=ur__namespace.Content.displayName;var zc=K__namespace.createContext({size:"md",variant:"default",radius:"md"}),Hn=()=>K__namespace.useContext(zc);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 T0=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"}}),M0=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"}}),k0=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"}}),Bc=K__namespace.forwardRef(({size:e="md",variant:t="default",radius:a="md",children:r,...n},i)=>jsxRuntime.jsx(zc.Provider,{value:{size:e,variant:t,radius:a},children:jsxRuntime.jsx("nav",{ref:i,"aria-label":"breadcrumb",...n,children:r})}));Bc.displayName="Breadcrumb";var Fc=K__namespace.forwardRef(({className:e,...t},a)=>{let{size:r,variant:n,radius:i}=Hn();return jsxRuntime.jsx("ol",{ref:a,className:o(T0({size:r,variant:n,radius:n==="default"?void 0:i}),e),...t})});Fc.displayName="BreadcrumbList";var Oc=K__namespace.forwardRef(({className:e,...t},a)=>{let{size:r}=Hn();return jsxRuntime.jsx("li",{ref:a,className:o("inline-flex items-center",r==="sm"&&"gap-1",r==="md"&&"gap-1.5",r==="lg"&&"gap-2",e),...t})});Oc.displayName="BreadcrumbItem";var Gc=K__namespace.forwardRef(({asChild:e,className:t,...a},r)=>jsxRuntime.jsx(e?reactSlot.Slot:"a",{ref:r,className:o("transition-colors hover:text-foreground cursor-pointer",t),...a}));Gc.displayName="BreadcrumbLink";var Wc=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:o("font-medium text-foreground",e),...t}));Wc.displayName="BreadcrumbPage";var $c=({children:e,className:t,...a})=>{let{size:r}=Hn();return jsxRuntime.jsx("li",{role:"presentation","aria-hidden":"true",className:o(M0({size:r}),"text-muted-foreground/60",t),...a,children:e??jsxRuntime.jsx(lucideReact.ChevronRight,{})})};$c.displayName="BreadcrumbSeparator";var _c=({className:e,...t})=>{let{size:a}=Hn();return jsxRuntime.jsxs("span",{role:"presentation","aria-hidden":"true",className:o(k0({size:a}),e),...t,children:[jsxRuntime.jsx(lucideReact.MoreHorizontal,{}),jsxRuntime.jsx("span",{className:"sr-only",children:"More"})]})};_c.displayName="BreadcrumbEllipsis";var V0=Kc__namespace.Root;var Uc=K__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(Re__namespace.Root,{ref:r,className:o("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:[t,jsxRuntime.jsx(Cs,{})]}));Uc.displayName=Re__namespace.Root.displayName;var Yc=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Re__namespace.List,{ref:a,className:o("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));Yc.displayName=Re__namespace.List.displayName;var E0=Re__namespace.Item,jc=classVarianceAuthority.cva("group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"),Xc=K__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(Re__namespace.Trigger,{ref:r,className:o(jc(),"group",e),...a,children:[t," ",jsxRuntime.jsx(lucideReact.ChevronDown,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));Xc.displayName=Re__namespace.Trigger.displayName;var qc=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Re__namespace.Content,{ref:a,className:o("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto",e),...t}));qc.displayName=Re__namespace.Content.displayName;var H0=Re__namespace.Link,Cs=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{className:o("absolute left-0 top-full flex justify-center"),children:jsxRuntime.jsx(Re__namespace.Viewport,{className:o("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:a,...t})}));Cs.displayName=Re__namespace.Viewport.displayName;var Zc=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Re__namespace.Indicator,{ref:a,className:o("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:jsxRuntime.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));Zc.displayName=Re__namespace.Indicator.displayName;var em=({shouldScaleBackground:e=true,...t})=>jsxRuntime.jsx(vaul.Drawer.Root,{shouldScaleBackground:e,...t});em.displayName="Drawer";var A0=vaul.Drawer.Trigger,tm=vaul.Drawer.Portal,z0=vaul.Drawer.Close,Ss=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(vaul.Drawer.Overlay,{ref:a,className:o("fixed inset-0 z-50 bg-black/80",e),...t}));Ss.displayName=vaul.Drawer.Overlay.displayName;var am=K__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(tm,{children:[jsxRuntime.jsx(Ss,{}),jsxRuntime.jsxs(vaul.Drawer.Content,{ref:r,className:o("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...a,children:[jsxRuntime.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));am.displayName="DrawerContent";var rm=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("grid gap-1.5 p-4 text-center sm:text-left",e),...t});rm.displayName="DrawerHeader";var om=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("mt-auto flex flex-col gap-2 p-4",e),...t});om.displayName="DrawerFooter";var nm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(vaul.Drawer.Title,{ref:a,className:o("text-lg font-semibold leading-none tracking-tight",e),...t}));nm.displayName=vaul.Drawer.Title.displayName;var im=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(vaul.Drawer.Description,{ref:a,className:o("text-sm text-muted-foreground",e),...t}));im.displayName=vaul.Drawer.Description.displayName;var sm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{className:"relative w-full overflow-auto",children:jsxRuntime.jsx("table",{ref:a,className:o("w-full caption-bottom text-sm",e),...t})}));sm.displayName="Table";var lm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("thead",{ref:a,className:o("[&_tr]:border-b",e),...t}));lm.displayName="TableHeader";var dm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("tbody",{ref:a,className:o("[&_tr:last-child]:border-0",e),...t}));dm.displayName="TableBody";var cm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("tfoot",{ref:a,className:o("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));cm.displayName="TableFooter";var mm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("tr",{ref:a,className:o("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));mm.displayName="TableRow";var um=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("th",{ref:a,className:o("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));um.displayName="TableHead";var pm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("td",{ref:a,className:o("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));pm.displayName="TableCell";var fm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("caption",{ref:a,className:o("mt-4 text-sm text-muted-foreground",e),...t}));fm.displayName="TableCaption";var bm=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"}}),vm=K__namespace.forwardRef(({className:e,size:t,...a},r)=>jsxRuntime.jsx(lucideReact.Loader2,{ref:r,className:o(bm({size:t,className:e})),...a}));vm.displayName="Spinner";var Ts=["January","February","March","April","May","June","July","August","September","October","November","December"];function Y0({currentMonth:e,onMonthChange:t,startYear:a,endYear:r}){let[n,i]=K__namespace.useState(false),[s,l]=K__namespace.useState(false),d=K__namespace.useRef(null),m=K__namespace.useRef(null),u=dateFns.getMonth(e),c=dateFns.getYear(e);K__namespace.useEffect(()=>{function R(g){d.current&&!d.current.contains(g.target)&&i(false),m.current&&!m.current.contains(g.target)&&l(false);}return document.addEventListener("mousedown",R),()=>document.removeEventListener("mousedown",R)},[]);let f=R=>{let g=dateFns.setMonth(e,R);t(g),i(false);},p=R=>{let g=dateFns.setYear(e,R);t(g),l(false);},h=K__namespace.useMemo(()=>{let R=[];for(let g=r;g>=a;g--)R.push(g);return R},[a,r]);return jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsxs("div",{ref:d,className:"relative",children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>{i(!n),l(false);},className:o("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:Ts[u]}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:o("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(ze,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"p-1",children:Ts.map((R,g)=>jsxRuntime.jsx("button",{type:"button",onClick:()=>f(g),className:o("w-full text-left px-3 py-2 text-sm rounded-md","hover:bg-muted transition-colors cursor-pointer",u===g&&"bg-primary/10 text-primary font-medium"),children:R},R))})})})]}),jsxRuntime.jsxs("div",{ref:m,className:"relative",children:[jsxRuntime.jsxs("button",{type:"button",onClick:()=>{l(!s),i(false);},className:o("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:c}),jsxRuntime.jsx(lucideReact.ChevronDown,{className:o("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(ze,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"p-1",children:h.map(R=>jsxRuntime.jsx("button",{type:"button",onClick:()=>p(R),className:o("w-full text-left px-3 py-2 text-sm rounded-md","hover:bg-muted transition-colors cursor-pointer",c===R&&"bg-primary/10 text-primary font-medium"),children:R},R))})})})]})]})}function j0(e,t,a){return function({calendarMonth:n}){let{goToMonth:i,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(Y0,{currentMonth:n.date,onMonthChange:i,startYear:t,endYear:a}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("button",{type:"button",disabled:!l,onClick:()=>l&&i(l),className:o("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&&i(s),className:o("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 d=Ts[n.date.getMonth()],m=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:d}),jsxRuntime.jsx("span",{className:"text-sm font-medium w-[50px]",children:m})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("button",{type:"button",disabled:!l,onClick:()=>l&&i(l),className:o("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&&i(s),className:o("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 Or({className:e,classNames:t,showOutsideDays:a=true,showMonthAndYearPickers:r=false,startYear:n=1900,endYear:i=new Date().getFullYear()+50,components:s,...l}){let d=K__namespace.useMemo(()=>j0(r,n,i),[r,n,i]);return jsxRuntime.jsx(reactDayPicker.DayPicker,{showOutsideDays:a,className:o("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:o("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:o("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:o("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:d},...l})}Or.displayName="Calendar";var Rm=({className:e,...t})=>jsxRuntime.jsx("nav",{role:"navigation","aria-label":"pagination",className:o("mx-auto flex w-full justify-center",e),...t});Rm.displayName="Pagination";var wm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("ul",{ref:a,className:o("flex flex-row items-center gap-1",e),...t}));wm.displayName="PaginationContent";var Nm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("li",{ref:a,className:o("",e),...t}));Nm.displayName="PaginationItem";var An=({className:e,isActive:t,size:a="icon",...r})=>jsxRuntime.jsx("a",{"aria-current":t?"page":void 0,className:o(Jt({variant:t?"bordered":"ghost",size:a}),e),...r});An.displayName="PaginationLink";var Pm=({className:e,...t})=>jsxRuntime.jsxs(An,{"aria-label":"Go to previous page",size:"md",className:o("gap-1 pl-2.5",e),...t,children:[jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{children:"Previous"})]});Pm.displayName="PaginationPrevious";var Cm=({className:e,...t})=>jsxRuntime.jsxs(An,{"aria-label":"Go to next page",size:"md",className:o("gap-1 pr-2.5",e),...t,children:[jsxRuntime.jsx("span",{children:"Next"}),jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})]});Cm.displayName="PaginationNext";var Sm=({className:e,...t})=>jsxRuntime.jsxs("span",{"aria-hidden":true,className:o("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"})]});Sm.displayName="PaginationEllipsis";var Ds=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(cmdk.Command,{ref:a,className:o("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));Ds.displayName=cmdk.Command.displayName;var Q0=({children:e,...t})=>jsxRuntime.jsx(os,{...t,children:jsxRuntime.jsx(vn,{className:"overflow-hidden p-0 shadow-lg",children:jsxRuntime.jsx(Ds,{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})})}),Tm=K__namespace.forwardRef(({className:e,...t},a)=>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:a,className:o("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})]}));Tm.displayName=cmdk.Command.Input.displayName;var Mm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(cmdk.Command.List,{ref:a,className:o("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Mm.displayName=cmdk.Command.List.displayName;var km=K__namespace.forwardRef((e,t)=>jsxRuntime.jsx(cmdk.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));km.displayName=cmdk.Command.Empty.displayName;var Dm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(cmdk.Command.Group,{ref:a,className:o("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}));Dm.displayName=cmdk.Command.Group.displayName;var Vm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(cmdk.Command.Separator,{ref:a,className:o("-mx-1 h-px bg-border",e),...t}));Vm.displayName=cmdk.Command.Separator.displayName;var Lm=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(cmdk.Command.Item,{ref:a,className:o("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}));Lm.displayName=cmdk.Command.Item.displayName;var Im=({className:e,...t})=>jsxRuntime.jsx("span",{className:o("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Im.displayName="CommandShortcut";var Em=K__namespace.forwardRef(({className:e,showToggle:t=true,disabled:a,onFocus:r,onBlur:n,style:i,...s},l)=>{let[d,m]=K__namespace.useState(false),[u,c]=K__namespace.useState(false);return jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("input",{type:d?"text":"password",className:o("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:a,style:{...i,borderColor:u?"var(--color-foreground)":void 0},onFocus:f=>{c(true),r?.(f);},onBlur:f=>{c(false),n?.(f);},...s}),t&&jsxRuntime.jsx(G,{type:"button",variant:"ghost",size:"icon",className:"absolute right-0 top-0 h-10 w-10 px-3 hover:bg-transparent",onClick:()=>m(!d),disabled:a,tabIndex:-1,"aria-label":d?"Hide password":"Show password",children:d?jsxRuntime.jsx(lucideReact.EyeOff,{className:"h-4 w-4 text-muted-foreground"}):jsxRuntime.jsx(lucideReact.Eye,{className:"h-4 w-4 text-muted-foreground"})})]})});Em.displayName="PasswordInput";var Hm=K__namespace.forwardRef(({className:e,showButtons:t=true,step:a=1,min:r,max:n,value:i,defaultValue:s,onChange:l,disabled:d,...m},u)=>{let[c,f]=K__namespace.useState(s),p=i!==void 0,h=p?i:c,R=y=>{y!==void 0&&(r!==void 0&&y<r&&(y=r),n!==void 0&&y>n&&(y=n)),p||f(y),l?.(y);},g=()=>{R((h??0)+a);},x=()=>{R((h??0)-a);},w=y=>{let C=y.target.value;if(C==="")R(void 0);else {let M=parseFloat(C);isNaN(M)||R(M);}},b=y=>{y.key==="ArrowUp"?(y.preventDefault(),g()):y.key==="ArrowDown"&&(y.preventDefault(),x());},v=r===void 0||(h??0)>r,P=n===void 0||(h??0)<n;return jsxRuntime.jsxs("div",{className:"relative flex items-center",children:[t&&jsxRuntime.jsx(G,{type:"button",variant:"bordered",size:"icon",className:"h-10 w-10 rounded-r-none border-r-0",onClick:x,disabled:d||!v,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:o("flex h-10 w-full bg-background px-3 py-2 text-sm text-center 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",t?"border-y border-input rounded-none":"border border-input rounded-md",e),ref:u,value:h??"",onChange:w,onKeyDown:b,disabled:d,...m}),t&&jsxRuntime.jsx(G,{type:"button",variant:"bordered",size:"icon",className:"h-10 w-10 rounded-l-none border-l-0",onClick:g,disabled:d||!P,tabIndex:-1,"aria-label":"Increase value",children:jsxRuntime.jsx(lucideReact.Plus,{className:"h-4 w-4"})})]})});Hm.displayName="NumberInput";var Am=K__namespace.forwardRef(({options:e,value:t,defaultValue:a=[],onValueChange:r,placeholder:n="Select items...",searchPlaceholder:i="Search...",emptyText:s="No items found.",maxItems:l,showCount:d=false,disabled:m=false,className:u},c)=>{let[f,p]=K__namespace.useState(false),[h,R]=K__namespace.useState(""),[g,x]=K__namespace.useState(a),w=t!==void 0,b=w?t:g,v=N=>{w||x(N),r?.(N);},P=N=>{let S=b.includes(N)?b.filter(k=>k!==N):l&&b.length>=l?b:[...b,N];v(S);},y=N=>{v(b.filter(S=>S!==N));},C=()=>{v([]);},M=e.filter(N=>b.includes(N.value)),T=e.filter(N=>N.label.toLowerCase().includes(h.toLowerCase()));return jsxRuntime.jsxs(Ne,{open:f,onOpenChange:p,children:[jsxRuntime.jsx(Se,{asChild:true,children:jsxRuntime.jsxs(G,{ref:c,variant:"bordered",role:"combobox","aria-expanded":f,disabled:m,className:o("w-full justify-between h-auto min-h-10",b.length>0?"px-2 py-1.5":"px-3 py-2",u),children:[b.length===0?jsxRuntime.jsx("span",{className:"text-muted-foreground font-normal",children:n}):d?jsxRuntime.jsxs("span",{className:"font-normal",children:[b.length," selected"]}):jsxRuntime.jsx("div",{className:"flex flex-wrap gap-1",children:M.map(N=>jsxRuntime.jsxs(Ro,{className:"mr-1",children:[N.label,jsxRuntime.jsx("button",{type:"button",className:"ml-1 rounded-full outline-none ring-offset-background focus:ring-2 focus:ring-ring focus:ring-offset-2",onKeyDown:S=>{S.key==="Enter"&&(S.preventDefault(),S.stopPropagation(),y(N.value));},onMouseDown:S=>{S.preventDefault(),S.stopPropagation();},onClick:S=>{S.preventDefault(),S.stopPropagation(),y(N.value);},children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3 text-muted-foreground hover:text-foreground"})})]},N.value))}),jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),jsxRuntime.jsx(xe,{className:"w-[--radix-popover-trigger-width] p-0",align:"start",children:jsxRuntime.jsxs(cmdk.Command,{className:"overflow-hidden rounded-md",children:[jsxRuntime.jsxs("div",{className:"flex items-center border-b px-3",children:[jsxRuntime.jsx(cmdk.Command.Input,{value:h,onValueChange:R,placeholder:i,className:"flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50"}),b.length>0&&jsxRuntime.jsx("button",{type:"button",onClick:C,className:"ml-2 text-xs text-muted-foreground hover:text-foreground",children:"Clear"})]}),jsxRuntime.jsxs(cmdk.Command.List,{className:"max-h-[200px] overflow-y-auto p-1",children:[T.length===0&&jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:s}),T.map(N=>{let S=b.includes(N.value),k=N.disabled||!S&&l!==void 0&&b.length>=l;return jsxRuntime.jsxs(cmdk.Command.Item,{value:N.value,disabled:k,onSelect:()=>P(N.value),className:o("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("div",{className:o("mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",S?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})}),N.label]},N.value)})]})]})})]})});Am.displayName="MultiSelect";var zm=K__namespace.forwardRef(({options:e,value:t,defaultValue:a="",onValueChange:r,placeholder:n="Select...",searchPlaceholder:i="Search...",emptyText:s="No results found.",disabled:l=false,clearable:d=false,className:m},u)=>{let[c,f]=K__namespace.useState(false),[p,h]=K__namespace.useState(""),[R,g]=K__namespace.useState(a),x=t!==void 0,w=x?t:R,b=C=>{x||g(C),r?.(C);},v=C=>{b(d&&w===C?"":C),f(false),h("");},P=e.find(C=>C.value===w),y=e.filter(C=>C.label.toLowerCase().includes(p.toLowerCase()));return jsxRuntime.jsxs(Ne,{open:c,onOpenChange:f,children:[jsxRuntime.jsx(Se,{asChild:true,children:jsxRuntime.jsxs(G,{ref:u,variant:"bordered",role:"combobox","aria-expanded":c,disabled:l,className:o("w-full justify-between font-normal",!w&&"text-muted-foreground",m),children:[P?P.label:n,jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),jsxRuntime.jsx(xe,{className:"w-[--radix-popover-trigger-width] p-0",align:"start",children:jsxRuntime.jsxs(cmdk.Command,{className:"overflow-hidden rounded-md",children:[jsxRuntime.jsx("div",{className:"flex items-center border-b px-3",children:jsxRuntime.jsx(cmdk.Command.Input,{value:p,onValueChange:h,placeholder:i,className:"flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50"})}),jsxRuntime.jsxs(cmdk.Command.List,{className:"max-h-[200px] overflow-y-auto p-1",children:[y.length===0&&jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:s}),y.map(C=>jsxRuntime.jsxs(cmdk.Command.Item,{value:C.value,disabled:C.disabled,onSelect:()=>v(C.value),className:o("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:o("mr-2 h-4 w-4",w===C.value?"opacity-100":"opacity-0")}),C.label]},C.value))]})]})})]})});zm.displayName="Combobox";var Fm=K__namespace.forwardRef(({value:e,defaultValue:t,onValueChange:a,placeholder:r="Pick a date",dateFormat:n="PPP",disabled:i=false,minDate:s,maxDate:l,className:d},m)=>{let[u,c]=K__namespace.useState(false),[f,p]=K__namespace.useState(t),h=e!==void 0,R=h?e:f,g=x=>{h||p(x),a?.(x),c(false);};return jsxRuntime.jsxs(Ne,{open:u,onOpenChange:c,children:[jsxRuntime.jsx(Se,{asChild:true,children:jsxRuntime.jsxs(G,{ref:m,variant:"bordered",disabled:i,className:o("w-full justify-start text-left font-normal",!R&&"text-muted-foreground",d),children:[jsxRuntime.jsx(lucideReact.Calendar,{className:"mr-2 h-4 w-4"}),R?dateFns.format(R,n):r]})}),jsxRuntime.jsx(xe,{className:"w-auto p-0",align:"start",children:jsxRuntime.jsx(Or,{mode:"single",selected:R,onSelect:g,disabled:x=>!!(s&&x<s||l&&x>l),initialFocus:true})})]})});Fm.displayName="DatePicker";var $m=classVarianceAuthority.cva("flex -space-x-2",{variants:{size:{sm:"-space-x-2",md:"-space-x-2.5",lg:"-space-x-3"}},defaultVariants:{size:"md"}}),Om=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"}}),_m=K__namespace.forwardRef(({className:e,items:t,max:a=5,size:r,showTooltips:n=false,...i},s)=>{let l=t.slice(0,a),d=t.length-a,m=(c,f)=>{let p=jsxRuntime.jsxs(ar,{className:o(Om({size:r})),children:[c.src&&jsxRuntime.jsx(Hr,{src:c.src,alt:c.alt||""}),jsxRuntime.jsx(rr,{className:"text-xs",children:c.fallback||c.alt?.charAt(0)?.toUpperCase()||"?"})]},f);return n&&c.alt?jsxRuntime.jsxs(nr,{children:[jsxRuntime.jsx(ir,{asChild:true,children:p}),jsxRuntime.jsx(ka,{className:"bg-zinc-100 text-zinc-900 dark:bg-zinc-900 dark:text-zinc-100",children:c.alt})]},f):p},u=jsxRuntime.jsxs("div",{ref:s,className:o($m({size:r,className:e})),...i,children:[l.map((c,f)=>m(c,f)),d>0&&jsxRuntime.jsx(ar,{className:o(Om({size:r})),children:jsxRuntime.jsxs(rr,{className:"bg-muted text-muted-foreground",children:["+",d]})})]});return n?jsxRuntime.jsx(or,{delayDuration:300,children:u}):u});_m.displayName="AvatarGroup";var Km=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"}}),Um=K__namespace.forwardRef(({className:e,value:t,defaultValue:a=0,onValueChange:r,max:n=5,size:i,icon:s="star",allowHalf:l=false,readOnly:d=false,disabled:m=false,filledColor:u,emptyColor:c,...f},p)=>{let[h,R]=K__namespace.useState(a),[g,x]=K__namespace.useState(null),w=t!==void 0,b=w?t:h,v=g!==null?g:b,P=V=>{d||m||(w||R(V),r?.(V));},y=(V,E=false)=>{let L=l&&E?V+.5:V+1;P(L);},C=(V,E)=>{if(d||m)return;let L=V.currentTarget.getBoundingClientRect(),D=l&&V.clientX<L.left+L.width/2;x(D?E+.5:E+1);},M=()=>{x(null);},T=s==="heart"?lucideReact.Heart:lucideReact.Star,N=V=>v>=V+1?"full":v>=V+.5?"half":"empty",S=u?{color:u,fill:u}:{},k=c?{color:c}:{};return jsxRuntime.jsx("div",{ref:p,className:o(Km({size:i,className:e}),m&&"opacity-50 cursor-not-allowed"),onMouseLeave:M,role:"radiogroup","aria-label":"Rating",...f,children:Array.from({length:n},(V,E)=>{let L=N(E);return jsxRuntime.jsxs("button",{type:"button",className:o("relative focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 rounded-sm",!d&&!m&&"cursor-pointer hover:scale-110 transition-transform"),onClick:D=>{let I=D.currentTarget.getBoundingClientRect(),z=l&&D.clientX<I.left+I.width/2;y(E,z);},onMouseMove:D=>C(D,E),disabled:m||d,"aria-label":`Rate ${E+1} out of ${n}`,role:"radio","aria-checked":b===E+1,children:[jsxRuntime.jsx(T,{className:o("text-muted-foreground/30",L!=="empty"&&"absolute inset-0"),style:L==="empty"?k:void 0}),L!=="empty"&&jsxRuntime.jsx(T,{className:o("text-yellow-500 fill-yellow-500",s==="heart"&&"text-red-500 fill-red-500",L==="half"&&"clip-path-half"),style:{...S,clipPath:L==="half"?"inset(0 50% 0 0)":void 0}})]},E)})})});Um.displayName="Rating";var yR="16rem",RR="18rem",wR="3rem",NR="b",Is=K__namespace.createContext(null);function $n(){let e=K__namespace.useContext(Is);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function Es(){return K__namespace.useContext(Is)}var jm=K__namespace.forwardRef(({defaultOpen:e=true,open:t,onOpenChange:a,className:r,style:n,children:i,...s},l)=>{let[d,m]=K__namespace.useState(false),[u,c]=K__namespace.useState(false),[f,p]=K__namespace.useState(e),h=t??f,R=K__namespace.useCallback(b=>{let v=typeof b=="function"?b(h):b;a?a(v):p(v);},[a,h]);K__namespace.useEffect(()=>{let b=()=>{m(window.innerWidth<768);};return b(),window.addEventListener("resize",b),()=>window.removeEventListener("resize",b)},[]);let g=K__namespace.useCallback(()=>d?c(b=>!b):R(b=>!b),[d,R,c]);K__namespace.useEffect(()=>{let b=v=>{v.key===NR&&(v.metaKey||v.ctrlKey)&&(v.preventDefault(),g());};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[g]);let x=h?"expanded":"collapsed",w=K__namespace.useMemo(()=>({state:x,open:h,setOpen:R,isMobile:d,openMobile:u,setOpenMobile:c,toggleSidebar:g}),[x,h,R,d,u,c,g]);return jsxRuntime.jsx(Is.Provider,{value:w,children:jsxRuntime.jsx(or,{delayDuration:0,children:jsxRuntime.jsx("div",{ref:l,style:{"--sidebar-width":yR,"--sidebar-width-icon":wR,...n},className:o("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),...s,children:i})})})});jm.displayName="SidebarProvider";var Xm=K__namespace.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",embedded:r=false,resizable:n=false,minWidth:i=200,maxWidth:s=480,defaultWidth:l=256,onWidthChange:d,className:m,children:u,...c},f)=>{let[p,h]=K__namespace.useState(l),[R,g]=K__namespace.useState(false),x=K__namespace.useRef(null),w=K__namespace.useCallback(C=>{C.preventDefault(),g(true);},[]);if(K__namespace.useEffect(()=>{if(!R)return;let C=T=>{if(!x.current)return;let N=x.current.getBoundingClientRect(),S;e==="left"?S=T.clientX-N.left:S=N.right-T.clientX,S=Math.max(i,Math.min(s,S)),h(S),d?.(S);},M=()=>{g(false);};return document.addEventListener("mousemove",C),document.addEventListener("mouseup",M),()=>{document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",M);}},[R,e,i,s,d]),a==="none"){if(n){let C={width:`${p}px`,minWidth:`${i}px`,maxWidth:`${s}px`};return jsxRuntime.jsxs("div",{ref:M=>{typeof f=="function"?f(M):f&&(f.current=M),x.current=M;},className:o("relative text-sidebar-foreground h-full min-h-0",R&&"select-none"),"data-sidebar":"sidebar-wrapper","data-resizing":R,children:[jsxRuntime.jsx("div",{className:o("flex h-full min-h-0 flex-col bg-sidebar overflow-hidden",!R&&"transition-all duration-200 ease-in-out",e==="left"&&"border-r-0",e==="right"&&"border-l-0",m),style:C,...c,children:u}),jsxRuntime.jsx("div",{onMouseDown:w,className:o("absolute top-0 bottom-0 z-20 w-1 cursor-ew-resize",e==="left"?"right-0":"left-0"),"data-sidebar":"resize-handle",children:jsxRuntime.jsx("div",{className:o("absolute top-0 bottom-0 w-px transition-colors",e==="left"?"right-0":"left-0","bg-sidebar-border")})})]})}return jsxRuntime.jsx("div",{ref:f,className:o("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",m),style:{"--sidebar-width":"16rem"},...c,children:u})}let{isMobile:b,state:v,openMobile:P,setOpenMobile:y}=$n();if(b&&!r)return jsxRuntime.jsx(Do,{open:P,onOpenChange:y,children:jsxRuntime.jsx(Ar,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":RR},side:e,children:jsxRuntime.jsx("div",{className:"flex h-full w-full flex-col",children:u})})});if(r){let C=v==="collapsed",M=a==="offcanvas",T=a==="icon",N=n&&!C&&!T?{width:`${p}px`,minWidth:`${i}px`,maxWidth:`${s}px`}:void 0;return jsxRuntime.jsxs("div",{ref:S=>{typeof f=="function"?f(S):f&&(f.current=S),x.current=S;},className:o("group peer text-sidebar-foreground relative",R&&"select-none"),"data-state":v,"data-collapsible":C?a:"","data-variant":t,"data-side":e,"data-embedded":"true","data-resizing":R,children:[jsxRuntime.jsx("div",{className:o("flex h-full flex-col overflow-hidden",!R&&"transition-[width,opacity] duration-200 ease-out",!n&&(M?C?"w-0 opacity-0":"w-[--sidebar-width] opacity-100":T&&C?"w-[--sidebar-width-icon]":"w-[--sidebar-width]"),n&&M&&C&&"w-0 opacity-0",n&&T&&C&&"w-[--sidebar-width-icon]",m),style:N,...c,children:jsxRuntime.jsx("div",{"data-sidebar":"sidebar",className:o("flex h-full w-full flex-col bg-sidebar transition-opacity duration-200",t==="floating"&&"overflow-hidden rounded-lg border border-sidebar-border shadow-sm",t==="inset"&&"overflow-hidden rounded-lg border border-sidebar-border",t==="sidebar"&&e==="left"&&!n&&"border-r",t==="sidebar"&&e==="right"&&!n&&"border-l"),children:u})}),n&&!C&&jsxRuntime.jsx("div",{onMouseDown:w,className:o("absolute top-0 bottom-0 z-20 w-1 cursor-ew-resize",e==="left"?"right-0":"left-0"),"data-sidebar":"resize-handle",children:jsxRuntime.jsx("div",{className:o("absolute top-0 bottom-0 w-px transition-colors",e==="left"?"right-0":"left-0","bg-sidebar-border")})})]})}return jsxRuntime.jsxs("div",{ref:f,className:"group peer hidden md:block text-sidebar-foreground","data-state":v,"data-collapsible":v==="collapsed"?a:"","data-variant":t,"data-side":e,children:[jsxRuntime.jsx("div",{className:o("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),jsxRuntime.jsx("div",{className:o("duration-200 fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",m),...c,children:jsxRuntime.jsx("div",{"data-sidebar":"sidebar",className:o("flex h-full w-full flex-col bg-sidebar",t==="floating"&&"overflow-hidden rounded-lg border border-sidebar-border shadow-sm",t==="inset"&&"overflow-hidden rounded-lg border border-sidebar-border"),children:u})})]})});Xm.displayName="Sidebar";var qm=K__namespace.forwardRef(({className:e,onClick:t,...a},r)=>{let{toggleSidebar:n}=$n();return jsxRuntime.jsxs("button",{ref:r,type:"button","data-sidebar":"trigger",className:o("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",e),onClick:i=>{t?.(i),n();},...a,children:[jsxRuntime.jsx(lucideReact.PanelLeft,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});qm.displayName="SidebarTrigger";var Zm=K__namespace.forwardRef(({className:e,onClick:t,showLabel:a=true,...r},n)=>{let i=Es();if(!i)return null;let{toggleSidebar:s,state:l}=i,d=l==="collapsed";return jsxRuntime.jsxs("button",{ref:n,type:"button","data-sidebar":"toggle","data-state":l,className:o("flex items-center gap-2 w-full px-2 py-2 rounded-md text-sm text-sidebar-foreground/70","hover:bg-sidebar-accent hover:text-sidebar-accent-foreground","transition-colors cursor-pointer","group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:px-0",e),onClick:m=>{t?.(m),s();},...r,children:[d?jsxRuntime.jsx(lucideReact.PanelLeftOpen,{className:"h-4 w-4 shrink-0"}):jsxRuntime.jsx(lucideReact.PanelLeftClose,{className:"h-4 w-4 shrink-0"}),a&&jsxRuntime.jsx("span",{className:"group-data-[collapsible=icon]:hidden truncate",children:d?"Expand":"Collapse"})]})});Zm.displayName="SidebarToggle";var Jm=K__namespace.forwardRef(({className:e,onClick:t,expandedLabel:a="Collapse",collapsedLabel:r="Expand",...n},i)=>{let s=Es();if(!s)return null;let{toggleSidebar:l,state:d}=s,m=d==="collapsed";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("button",{ref:i,type:"button","data-sidebar":"toggle","data-state":d,className:o("flex items-center gap-2 w-full px-2 py-2 rounded-md text-sm text-sidebar-foreground/70","hover:bg-sidebar-accent hover:text-sidebar-accent-foreground","transition-colors cursor-pointer","group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:px-0","group-data-[collapsible=offcanvas]:group-data-[state=collapsed]:hidden",e),onClick:u=>{t?.(u),l();},...n,children:[m?jsxRuntime.jsx(lucideReact.PanelLeftOpen,{className:"h-4 w-4 shrink-0"}):jsxRuntime.jsx(lucideReact.PanelLeftClose,{className:"h-4 w-4 shrink-0"}),jsxRuntime.jsx("span",{className:"group-data-[collapsible=icon]:hidden truncate",children:m?r:a})]}),jsxRuntime.jsxs("button",{type:"button","data-sidebar":"floating-toggle","data-state":d,className:o("fixed left-3 bottom-4 z-50 flex items-center justify-center h-10 w-10 rounded-lg","bg-sidebar border border-sidebar-border shadow-md","text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground","transition-all duration-200 cursor-pointer","opacity-0 pointer-events-none scale-90","group-data-[collapsible=offcanvas]:group-data-[state=collapsed]:opacity-100","group-data-[collapsible=offcanvas]:group-data-[state=collapsed]:pointer-events-auto","group-data-[collapsible=offcanvas]:group-data-[state=collapsed]:scale-100"),onClick:u=>{t?.(u),l();},children:[jsxRuntime.jsx(lucideReact.PanelLeftOpen,{className:"h-5 w-5"}),jsxRuntime.jsx("span",{className:"sr-only",children:r})]})]})});Jm.displayName="SidebarPersistentToggle";var Qm=K__namespace.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:r}=$n();return jsxRuntime.jsx("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:o("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});Qm.displayName="SidebarRail";var eu=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("main",{ref:a,className:o("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}));eu.displayName="SidebarInset";var tu=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"header",className:o("flex flex-col gap-2 p-2",e),...t}));tu.displayName="SidebarHeader";var au=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"footer",className:o("flex flex-col gap-2 p-2",e),...t}));au.displayName="SidebarFooter";var ru=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"separator",className:o("mx-2 h-px w-auto bg-sidebar-border",e),...t}));ru.displayName="SidebarSeparator";var ou=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"content",className:o("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));ou.displayName="SidebarContent";var nu=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"group",className:o("relative flex w-full min-w-0 flex-col p-2",e),...t}));nu.displayName="SidebarGroup";var iu=K__namespace.forwardRef(({className:e,asChild:t=false,...a},r)=>jsxRuntime.jsx(t?reactSlot.Slot:"div",{ref:r,"data-sidebar":"group-label",className:o("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...a}));iu.displayName="SidebarGroupLabel";var su=K__namespace.forwardRef(({className:e,asChild:t=false,...a},r)=>jsxRuntime.jsx(t?reactSlot.Slot:"button",{ref:r,"data-sidebar":"group-action",className:o("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...a}));su.displayName="SidebarGroupAction";var lu=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"group-content",className:o("w-full text-sm",e),...t}));lu.displayName="SidebarGroupContent";var du=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("ul",{ref:a,"data-sidebar":"menu",className:o("flex w-full min-w-0 flex-col gap-1",e),...t}));du.displayName="SidebarMenu";var cu=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("li",{ref:a,"data-sidebar":"menu-item",className:o("group/menu-item relative",e),...t}));cu.displayName="SidebarMenuItem";var mu=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-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{solid:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]",ghost:"hover:bg-sidebar-accent/50 hover:text-sidebar-accent-foreground",soft:"hover:bg-primary/10 hover:text-primary",surface:"bg-sidebar-accent/30 hover:bg-sidebar-accent hover:text-sidebar-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:"solid",size:"md"}}),uu=K__namespace.forwardRef(({asChild:e=false,isActive:t=false,variant:a="solid",size:r="md",tooltip:n,className:i,...s},l)=>{let d=e?reactSlot.Slot:"button",m=Es(),u=m?.isMobile??false,c=m?.state??"expanded",f=jsxRuntime.jsx(d,{ref:l,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:o(mu({variant:a,size:r}),i),...s});return n?(typeof n=="string"&&(n={children:n}),jsxRuntime.jsxs(nr,{children:[jsxRuntime.jsx(ir,{asChild:true,children:f}),jsxRuntime.jsx(ka,{side:"right",align:"center",hidden:c!=="collapsed"||u,...n})]})):f});uu.displayName="SidebarMenuButton";var pu=K__namespace.forwardRef(({className:e,asChild:t=false,showOnHover:a=false,...r},n)=>jsxRuntime.jsx(t?reactSlot.Slot:"button",{ref:n,"data-sidebar":"menu-action",className:o("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r}));pu.displayName="SidebarMenuAction";var fu=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,"data-sidebar":"menu-badge",className:o("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));fu.displayName="SidebarMenuBadge";var gu=K__namespace.forwardRef(({className:e,showIcon:t=false,...a},r)=>{let n=K__namespace.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return jsxRuntime.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:o("rounded-md h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&jsxRuntime.jsx("div",{className:"size-4 rounded-md bg-sidebar-accent animate-pulse"}),jsxRuntime.jsx("div",{className:"h-4 flex-1 max-w-[--skeleton-width] bg-sidebar-accent animate-pulse rounded-md",style:{"--skeleton-width":n}})]})});gu.displayName="SidebarMenuSkeleton";var bu=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("ul",{ref:a,"data-sidebar":"menu-sub",className:o("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));bu.displayName="SidebarMenuSub";var vu=K__namespace.forwardRef(({...e},t)=>jsxRuntime.jsx("li",{ref:t,...e}));vu.displayName="SidebarMenuSubItem";var hu=K__namespace.forwardRef(({asChild:e=false,size:t="md",isActive:a,className:r,...n},i)=>jsxRuntime.jsx(e?reactSlot.Slot:"a",{ref:i,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:o("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...n}));hu.displayName="SidebarMenuSubButton";var Ru=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}}),SR=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"}}),wu=K__namespace.forwardRef(({className:e,variant:t,color:a,size:r,radius:n,clickable:i,startContent:s,endContent:l,closable:d,onClose:m,disabled:u,avatar:c,children:f,onClick:p,...h},R)=>{let g=i||!!p,x=w=>{w.stopPropagation(),m?.();};return jsxRuntime.jsxs("div",{ref:R,role:g?"button":void 0,tabIndex:g&&!u?0:void 0,"aria-disabled":u,onClick:u?void 0:p,onKeyDown:g&&!u?w=>{(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),p?.(w));}:void 0,className:o(Ru({variant:t,color:a,size:r,radius:n,clickable:g}),u&&"opacity-50 cursor-not-allowed",e),...h,children:[c&&jsxRuntime.jsx("span",{className:"-ml-1 [&>*]:size-5 [&>*]:rounded-full",children:c}),s&&jsxRuntime.jsx("span",{className:"shrink-0",children:s}),jsxRuntime.jsx("span",{className:"truncate",children:f}),l&&jsxRuntime.jsx("span",{className:"shrink-0",children:l}),d&&jsxRuntime.jsx("button",{type:"button","aria-label":"Remove",onClick:x,disabled:u,className:o(SR({size:r})),children:jsxRuntime.jsx(lucideReact.X,{})})]})});wu.displayName="Chip";var Nu=K.createContext({direction:"horizontal"}),ER=({className:e,direction:t="horizontal",children:a,...r})=>jsxRuntime.jsx(Nu.Provider,{value:{direction:t},children:jsxRuntime.jsx(reactResizablePanels.Group,{orientation:t,className:o("flex h-full w-full data-[orientation=vertical]:flex-col",e),...r,children:a})}),HR=reactResizablePanels.Panel,AR=({withHandle:e,className:t,...a})=>{let{direction:r}=K.useContext(Nu),n=r==="vertical";return jsxRuntime.jsx(reactResizablePanels.Separator,{className:o("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),...a,children:e&&jsxRuntime.jsx("div",{className:o("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 Su=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"}}),Tu=K__namespace.forwardRef(({className:e,size:t,count:a=3,...r},n)=>jsxRuntime.jsx("span",{ref:n,role:"status","aria-label":"Loading",className:o(Su({size:t,className:e})),...r,children:Array.from({length:a}).map((i,s)=>jsxRuntime.jsx("span",{className:"rounded-full bg-current animate-dots-bounce",style:{animationDelay:`${s*.16}s`}},s))}));Tu.displayName="Dots";var ku=classVarianceAuthority.cva("",{variants:{size:{sm:"h-4 w-4",md:"h-8 w-8",lg:"h-12 w-12",xl:"h-16 w-16"}},defaultVariants:{size:"md"}}),Du=K__namespace.forwardRef(({className:e,size:t,value:a,strokeWidth:r=4,showValue:n=false,label:i,...s},l)=>{let d=a===void 0,m=50-r/2,u=2*Math.PI*m,c=d?0:u-Math.min(100,Math.max(0,a))/100*u;return jsxRuntime.jsxs("svg",{ref:l,viewBox:"0 0 100 100",className:o(ku({size:t,className:e}),d&&"animate-spin"),role:"progressbar","aria-valuenow":d?void 0:a,"aria-valuemin":0,"aria-valuemax":100,...s,children:[jsxRuntime.jsx("circle",{cx:"50",cy:"50",r:m,fill:"none",stroke:"currentColor",strokeWidth:r,className:"text-muted opacity-20"}),jsxRuntime.jsx("circle",{cx:"50",cy:"50",r:m,fill:"none",stroke:"currentColor",strokeWidth:r,strokeLinecap:"round",strokeDasharray:u,strokeDashoffset:d?u*.75:c,className:"text-primary transition-[stroke-dashoffset] duration-300 ease-in-out",style:{transformOrigin:"center",transform:"rotate(-90deg)"}}),n&&!d&&jsxRuntime.jsx("text",{x:"50",y:"50",textAnchor:"middle",dominantBaseline:"central",className:"fill-current text-[0.65rem] font-medium",children:i??`${Math.round(a)}%`})]})});Du.displayName="CircularProgress";var Vu=K__namespace.createContext(null),WR=()=>{let e=K__namespace.useContext(Vu);if(!e)throw new Error("OTP components must be used within InputOTP");return e},Lu=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"}}),Iu=K__namespace.forwardRef(({className:e,containerClassName:t,maxLength:a,value:r,defaultValue:n="",onChange:i,onComplete:s,pattern:l,disabled:d=false,size:m,children:u,...c},f)=>{let[p,h]=K__namespace.useState(n),[R,g]=K__namespace.useState(0),[x,w]=K__namespace.useState(false),b=K__namespace.useRef(null),v=r!==void 0?r:p;K__namespace.useImperativeHandle(f,()=>b.current),K__namespace.useEffect(()=>{g(Math.min(v.length,a-1));},[v,a]),K__namespace.useEffect(()=>{v.length===a&&s&&s(v);},[v,a,s]);let P=S=>{let k=S.target.value;if(l&&k){let V=new RegExp(l.replace("^","").replace("$","").replace("+",""));k=k.split("").filter(E=>V.test(E)).join("");}k=k.slice(0,a),r===void 0&&h(k),i?.(k);},y=S=>{S.key==="ArrowLeft"?g(k=>Math.max(0,k-1)):S.key==="ArrowRight"&&g(k=>Math.min(v.length,a-1,k+1));},C=()=>{b.current?.focus();},M=()=>{w(true),g(Math.min(v.length,a-1));},T=()=>{w(false);},N={value:v,activeIndex:x?R:-1,maxLength:a,disabled:d};return jsxRuntime.jsx(Vu.Provider,{value:N,children:jsxRuntime.jsxs("div",{className:o(Lu({size:m}),t),onClick:C,"data-otp-container":true,children:[jsxRuntime.jsx("input",{ref:b,type:"text",inputMode:"numeric",autoComplete:"one-time-code",value:v,onChange:P,onKeyDown:y,onFocus:M,onBlur:T,disabled:d,maxLength:a,className:o("absolute opacity-0 pointer-events-none w-0 h-0",e),...c}),u]})})});Iu.displayName="InputOTP";var Eu=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex items-center",e),...t}));Eu.displayName="InputOTPGroup";var Hu=K__namespace.forwardRef(({index:e,className:t,...a},r)=>{let{value:n,activeIndex:i,disabled:s}=WR(),l=n[e]||"",d=i===e,m=d&&n.length===e;return jsxRuntime.jsxs("div",{ref:r,"data-otp-slot":true,"data-active":d,"data-filled":!!l,className:o("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",d&&"z-10 border-foreground",s&&"cursor-not-allowed opacity-50",t),...a,children:[l,m&&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"})})]})});Hu.displayName="InputOTPSlot";var Au=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,role:"separator",className:o("text-muted-foreground",e),...t,children:jsxRuntime.jsx(lucideReact.Minus,{className:"h-4 w-4"})}));Au.displayName="InputOTPSeparator";var Fu=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"}}),Ou=K__namespace.forwardRef(({className:e,variant:t,size:a,value:r=[],onChange:n,placeholder:i="Add tag...",maxTags:s,minTagLength:l=1,maxTagLength:d=50,triggerKeys:m=["Enter",",","Tab"],allowDuplicates:u=false,disabled:c,readOnly:f,renderTag:p,...h},R)=>{let[g,x]=K__namespace.useState(""),w=K__namespace.useRef(null);K__namespace.useImperativeHandle(R,()=>w.current);let b=N=>{let S=N.trim();if(S.length<l||S.length>d||s&&r.length>=s||!u&&r.some(V=>V.text.toLowerCase()===S.toLowerCase()))return;let k={id:crypto.randomUUID(),text:S};n?.([...r,k]),x("");},v=N=>{c||f||n?.(r.filter(S=>S.id!==N));},P=N=>{if(m.includes(N.key)){if(N.key==="Tab"&&!g)return;N.preventDefault(),b(g);}N.key==="Backspace"&&!g&&r.length>0&&v(r[r.length-1].id);},y=N=>{let S=N.target.value;if(S.includes(",")){S.split(",").forEach(V=>{V.trim()&&b(V);});return}x(S);},C=N=>{N.preventDefault(),N.clipboardData.getData("text").split(/[,\n\t]/).filter(Boolean).forEach(V=>{b(V);});},M=()=>{w.current?.focus();},T=s?r.length>=s:false;return jsxRuntime.jsxs("div",{className:o("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",c&&"cursor-not-allowed opacity-50",e),onClick:M,children:[r.map(N=>p?p(N,()=>v(N.id)):jsxRuntime.jsxs("span",{className:o(Fu({variant:t,size:a})),children:[N.text,!c&&!f&&jsxRuntime.jsx("button",{type:"button",onClick:S=>{S.stopPropagation(),v(N.id);},className:"ml-0.5 rounded-full p-0.5 hover:bg-black/10 dark:hover:bg-white/10","aria-label":`Remove ${N.text}`,children:jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3"})})]},N.id)),!T&&!f&&jsxRuntime.jsx("input",{ref:w,type:"text",value:g,onChange:y,onKeyDown:P,onPaste:C,placeholder:r.length===0?i:"",disabled:c,className:o("flex-1 bg-transparent outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed","min-w-[80px]"),...h})]})});Ou.displayName="TagInput";var Wu=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"}}),$u=K__namespace.forwardRef(({className:e,size:t,icon:a,title:r,description:n,action:i,children:s,...l},d)=>jsxRuntime.jsxs("div",{ref:d,className:o(Wu({size:t,className:e})),...l,children:[a&&jsxRuntime.jsx("div",{className:"text-muted-foreground [&>svg]:h-10 [&>svg]:w-10",children:a}),r&&jsxRuntime.jsx("h3",{className:"text-lg font-semibold text-foreground",children:r}),n&&jsxRuntime.jsx("p",{className:"max-w-sm text-sm text-muted-foreground",children:n}),i&&jsxRuntime.jsx("div",{className:"mt-2",children:i}),s]}));$u.displayName="EmptyState";var Ku=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"}}),Uu=K__namespace.forwardRef(({className:e,variant:t,label:a,value:r,icon:n,trend:i,trendValue:s,description:l,...d},m)=>{let u=i==="up"?lucideReact.TrendingUp:i==="down"?lucideReact.TrendingDown:lucideReact.Minus,c=i==="up"?"text-green-500":i==="down"?"text-red-500":"text-muted-foreground";return jsxRuntime.jsxs("div",{ref:m,className:o(Ku({variant:t,className:e})),...d,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:a}),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:r}),i&&s&&jsxRuntime.jsxs("span",{className:o("flex items-center gap-0.5 text-sm",c),children:[jsxRuntime.jsx(u,{className:"h-3 w-3"}),s]})]}),l&&jsxRuntime.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:l})]})});Uu.displayName="StatCard";var ju=classVarianceAuthority.cva("flex flex-col",{variants:{variant:{default:"",bordered:"divide-y divide-border rounded-lg border",striped:"[&>*:nth-child(odd)]:bg-muted/50"},size:{sm:"gap-1 [&>*]:py-2 [&>*]:px-3",md:"gap-2 [&>*]:py-3 [&>*]:px-4",lg:"gap-3 [&>*]:py-4 [&>*]:px-5"}},defaultVariants:{variant:"default",size:"md"}}),Xu=K__namespace.forwardRef(({className:e,variant:t,size:a,...r},n)=>jsxRuntime.jsx("div",{ref:n,role:"list",className:o(ju({variant:t,size:a,className:e})),...r}));Xu.displayName="List";var qu=classVarianceAuthority.cva("flex items-center gap-3 transition-colors",{variants:{interactive:{true:"cursor-pointer hover:bg-muted/50",false:""}},defaultVariants:{interactive:false}}),Zu=K__namespace.forwardRef(({className:e,interactive:t,leading:a,trailing:r,children:n,...i},s)=>jsxRuntime.jsxs("div",{ref:s,role:"listitem",className:o(qu({interactive:t,className:e})),...i,children:[a&&jsxRuntime.jsx("div",{className:"flex-shrink-0 text-muted-foreground",children:a}),jsxRuntime.jsx("div",{className:"flex-1 min-w-0",children:n}),r&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:r})]}));Zu.displayName="ListItem";var Ju=K__namespace.forwardRef(({className:e,primary:t,secondary:a,children:r,...n},i)=>jsxRuntime.jsxs("div",{ref:i,className:o("min-w-0",e),...n,children:[t&&jsxRuntime.jsx("p",{className:"text-sm font-medium leading-none truncate",children:t}),a&&jsxRuntime.jsx("p",{className:"mt-1 text-sm text-muted-foreground truncate",children:a}),r]}));Ju.displayName="ListItemText";var tp=classVarianceAuthority.cva("flex flex-col",{variants:{position:{left:"",right:"",alternate:""}},defaultVariants:{position:"left"}}),ap=K__namespace.forwardRef(({className:e,position:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,"data-position":t,className:o(tp({position:t,className:e})),...a}));ap.displayName="Timeline";var rp=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"}}),op=K__namespace.forwardRef(({className:e,variant:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,className:o(rp({variant:t,className:e})),...a}));op.displayName="TimelineItem";var np=K__namespace.forwardRef(({className:e,dot:t,showConnector:a=true,...r},n)=>jsxRuntime.jsxs("div",{ref:n,className:o("flex flex-col items-center",e),...r,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}),a&&jsxRuntime.jsx("div",{className:"w-0.5 flex-1 bg-border"})]}));np.displayName="TimelineSeparator";var ip=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex-1 pt-0.5",e),...t}));ip.displayName="TimelineContent";var sp=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex-1 text-sm text-muted-foreground pt-0.5",e),...t}));sp.displayName="TimelineOpposite";var dp=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}}),cp=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 data-[state=on]:bg-background data-[state=on]:text-foreground data-[state=on]:shadow-sm",{variants:{size:{sm:"h-6 text-xs px-2.5",md:"h-8 text-sm px-3",lg:"h-10 text-base px-4"}},defaultVariants:{size:"md"}}),mp=K__namespace.createContext({}),up=K__namespace.forwardRef(({className:e,size:t,fullWidth:a,children:r,...n},i)=>jsxRuntime.jsx(zr__namespace.Root,{ref:i,type:"single",rovingFocus:false,className:o(dp({size:t,fullWidth:a,className:e})),...n,children:jsxRuntime.jsx(mp.Provider,{value:{size:t??"md"},children:r})}));up.displayName="SegmentedControl";var pp=K__namespace.forwardRef(({className:e,children:t,...a},r)=>{let{size:n}=K__namespace.useContext(mp);return jsxRuntime.jsx(zr__namespace.Item,{ref:r,className:o(cp({size:n}),"flex-1",e),...a,children:t})});pp.displayName="SegmentedControlItem";var fp=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"}}),gp=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},jn=e=>{if(e===0)return "0 Bytes";let t=1024,a=["Bytes","KB","MB","GB"],r=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/Math.pow(t,r)).toFixed(2))+" "+a[r]},bp=(e,t,a)=>{let r=[];return t&&e.size>t&&r.push({code:"file-too-large",message:`File is larger than ${jn(t)}`}),a&&a.length>0&&(a.some(i=>{if(i.startsWith("."))return e.name.toLowerCase().endsWith(i.toLowerCase());if(i.endsWith("/*")){let s=i.slice(0,-2);return e.type.startsWith(s)}return e.type===i})||r.push({code:"file-invalid-type",message:`File type not accepted. Accepted: ${a.join(", ")}`})),r},vp=K__namespace.forwardRef(({className:e,variant:t,size:a,onFilesChange:r,onFilesRejected:n,onFileRemove:i,files:s=[],showFileList:l=true,children:d,maxSize:m=10*1024*1024,accept:u,multiple:c=true,disabled:f,...p},h)=>{let[R,g]=K__namespace.useState(false),[x,w]=K__namespace.useState(false),[b,v]=K__namespace.useState([]),P=K__namespace.useRef(null),y=K__namespace.useCallback(D=>{if(!D||D.length===0)return;let I=Array.from(D),z=[],W=[];(c?I:[I[0]]).forEach(j=>{let $=bp(j,m,u);$.length>0?W.push({file:j,errors:$}):z.push(j);}),v(W),z.length>0&&r?.(z),W.length>0&&n?.(W);},[m,u,c,r,n]),C=K__namespace.useCallback(D=>{if(D.preventDefault(),D.stopPropagation(),!f&&(g(true),D.dataTransfer.items)){let z=Array.from(D.dataTransfer.items).some(W=>{if(W.kind!=="file")return true;if(u&&u.length>0){let H=W.type;return !u.some(j=>j.endsWith("/*")?H.startsWith(j.slice(0,-2)):H===j)}return false});w(z);}},[f,u]),M=K__namespace.useCallback(D=>{D.preventDefault(),D.stopPropagation(),!f&&(D.dataTransfer.dropEffect="copy");},[f]),T=K__namespace.useCallback(D=>{D.preventDefault(),D.stopPropagation();let I=D.currentTarget.getBoundingClientRect(),z=D.clientX,W=D.clientY;(z<I.left||z>I.right||W<I.top||W>I.bottom)&&(g(false),w(false));},[]),N=K__namespace.useCallback(D=>{D.preventDefault(),D.stopPropagation(),g(false),w(false),!f&&y(D.dataTransfer.files);},[f,y]),S=K__namespace.useCallback(()=>{f||P.current?.click();},[f]),k=K__namespace.useCallback(D=>{y(D.target.files),D.target.value="";},[y]),V=K__namespace.useCallback(D=>{f||(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),P.current?.click());},[f]),E=x?"error":R?"active":t,L=u?.join(",");return jsxRuntime.jsxs("div",{ref:h,className:o("space-y-4",e),...p,children:[jsxRuntime.jsxs("div",{role:"button",tabIndex:f?-1:0,onDragEnter:C,onDragOver:M,onDragLeave:T,onDrop:N,onClick:S,onKeyDown:V,className:o(fp({variant:E,size:a}),f&&"opacity-50 cursor-not-allowed",!f&&"cursor-pointer focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2"),"aria-disabled":f,children:[jsxRuntime.jsx("input",{ref:P,type:"file",accept:L,multiple:c,disabled:f,onChange:k,className:"sr-only",tabIndex:-1}),d||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:R?"Drop files here":"Drop files or click to upload"}),jsxRuntime.jsxs("p",{className:"text-xs text-muted-foreground",children:[m&&`Max ${jn(m)}`,u&&u.length>0&&` \u2022 ${u.join(", ")}`]})]})]})]}),b.length>0&&jsxRuntime.jsx("div",{className:"rounded-md bg-danger/10 p-3 text-sm text-danger",children:b.map(({file:D,errors:I})=>jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("span",{className:"font-medium",children:D.name}),":"," ",I.map(z=>z.message).join(", ")]},D.name))}),l&&s.length>0&&jsxRuntime.jsx("div",{className:"space-y-2",children:s.map(D=>{let I=gp(D.file);return jsxRuntime.jsxs("div",{className:o("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(I,{className:"h-5 w-5 text-muted-foreground"})}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("p",{className:"truncate text-sm font-medium",children:D.file.name}),jsxRuntime.jsxs("p",{className:"text-xs text-muted-foreground",children:[jn(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(In,{value:D.progress,className:"mt-2 h-1"})]}),jsxRuntime.jsxs(G,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0 text-muted-foreground hover:text-foreground",onClick:z=>{z.stopPropagation(),i?.(D.file);},children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Remove"})]})]},D.id)})})]})});vp.displayName="FileUpload";var yp=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}}),lw=`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")`,jr=K__namespace.forwardRef(({color:e,isSelected:t,showTransparency:a=true,onSelect:r,size:n,shape:i,interactive:s,className:l,onClick:d,disabled:m,...u},c)=>jsxRuntime.jsx("button",{ref:c,type:"button",disabled:m,onClick:h=>{d?.(h),r?.(e);},className:o(yp({size:n,shape:i,interactive:s??(!!r||!!d)}),t&&"ring-2 ring-ring ring-offset-2",l),style:{backgroundImage:a?lw:void 0,backgroundSize:a?"8px 8px":void 0},"aria-label":`Color ${e}`,"aria-pressed":t,...u,children:jsxRuntime.jsx("span",{className:"absolute inset-0 rounded-[inherit]",style:{backgroundColor:e}})}));jr.displayName="ColorSwatch";var mw=["#000000","#ffffff","#ef4444","#f97316","#eab308","#22c55e","#06b6d4","#3b82f6","#8b5cf6","#ec4899"],Rp={sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10"},wp=K__namespace.forwardRef(({value:e,defaultValue:t="#3b82f6",onChange:a,disabled:r,presets:n=mw,showInput:i=true,size:s="md",className:l,variant:d="full"},m)=>{let[u,c]=K__namespace.useState(e??t),f=K__namespace.useId();K__namespace.useEffect(()=>{e!==void 0&&c(e);},[e]);let p=g=>{c(g),a?.(g);},h=g=>{c(g),a?.(g);},R=g=>{let x=g.target.value.toUpperCase();c(x),a?.(x);};return d==="simple"?jsxRuntime.jsxs("label",{className:o("relative rounded-md border border-input shadow-sm transition-colors cursor-pointer hover:border-foreground focus-within:border-foreground overflow-hidden",r&&"opacity-50 cursor-not-allowed",Rp[s],l),children:[jsxRuntime.jsx("input",{type:"color",value:u,onChange:R,disabled:r,className:"absolute inset-0 h-full w-full cursor-pointer opacity-0 disabled:cursor-not-allowed",id:f}),jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundColor:u}})]}):jsxRuntime.jsxs(Ne,{children:[jsxRuntime.jsx(Se,{asChild:true,children:jsxRuntime.jsx("button",{ref:m,disabled:r,className:o("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",Rp[s],l),style:{backgroundColor:u},"aria-label":`Color picker, current color: ${u}`})}),jsxRuntime.jsx(xe,{className:"w-auto p-3",align:"start",children:jsxRuntime.jsxs("div",{className:"space-y-3",children:[jsxRuntime.jsx(reactColorful.HexColorPicker,{color:u,onChange:p,className:"!w-[200px]"}),i&&jsxRuntime.jsxs("div",{className:"space-y-1.5",children:[jsxRuntime.jsx(tr,{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:u}}),jsxRuntime.jsx(reactColorful.HexColorInput,{id:"color-input",color:u,onChange:p,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(tr,{className:"text-xs",children:"Presets"}),jsxRuntime.jsx("div",{className:"flex flex-wrap gap-1.5",children:n.map(g=>jsxRuntime.jsx(jr,{color:g,size:"sm",isSelected:u.toLowerCase()===g.toLowerCase(),onSelect:h},g))})]})]})})]})});wp.displayName="ColorPicker";var Np=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"}}),Bs=e=>String(e).padStart(2,"0"),bw=e=>{let[t,a]=e.split(":").map(Number);return {hours:t||0,minutes:a||0}},vw=(e,t)=>`${Bs(e)}:${Bs(t)}`,Pp=K__namespace.forwardRef(({className:e,size:t,value:a,onChange:r,use24Hour:n=true,minuteStep:i=1,showPicker:s=true,minTime:l,maxTime:d,disabled:m,...u},c)=>{let[f,p]=K__namespace.useState(a??""),[h,R]=K__namespace.useState(false);K__namespace.useEffect(()=>{a!==void 0&&p(a);},[a]);let{hours:g,minutes:x}=bw(f||"00:00"),w=T=>{let N=T.target.value;p(N),/^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/.test(N)&&r?.(N);},b=(T,N)=>{let S=Math.max(0,Math.min(23,T)),k=Math.max(0,Math.min(59,N)),V=vw(S,k);p(V),r?.(V);},v=()=>b(g+1,x),P=()=>b(g-1,x),y=()=>b(g,x+i),C=()=>b(g,x-i),M=({value:T,onIncrement:N,onDecrement:S})=>jsxRuntime.jsxs("div",{className:"flex flex-col items-center",children:[jsxRuntime.jsx(G,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:N,disabled:m,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:Bs(T)}),jsxRuntime.jsx(G,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:S,disabled:m,children:jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"})})]});return jsxRuntime.jsxs("div",{className:"relative flex items-center",children:[jsxRuntime.jsx("input",{ref:c,type:"time",value:f,onChange:w,disabled:m,className:o(Np({size:t}),s&&"pr-10","[&::-webkit-calendar-picker-indicator]:hidden",e),...u}),s&&jsxRuntime.jsxs(Ne,{open:h,onOpenChange:R,children:[jsxRuntime.jsx(Se,{asChild:true,children:jsxRuntime.jsxs(G,{type:"button",variant:"ghost",size:"sm",className:"absolute right-1 h-7 w-7 p-0",disabled:m,children:[jsxRuntime.jsx(lucideReact.Clock,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Pick time"})]})}),jsxRuntime.jsxs(xe,{className:"w-auto p-4",align:"end",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx(M,{value:g,onIncrement:v,onDecrement:P,max:23}),jsxRuntime.jsx("div",{className:"text-2xl font-bold text-muted-foreground",children:":"}),jsxRuntime.jsx(M,{value:x,onIncrement:y,onDecrement:C,max:59})]}),jsxRuntime.jsxs("div",{className:"mt-4 flex justify-end gap-2",children:[jsxRuntime.jsx(G,{variant:"bordered",size:"sm",onClick:()=>{let T=new Date;b(T.getHours(),T.getMinutes());},children:"Now"}),jsxRuntime.jsx(G,{size:"sm",onClick:()=>R(false),children:"Done"})]})]})]})]})});Pp.displayName="TimeInput";var Cp=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"}}),xw=(e,t)=>{try{return new Intl.NumberFormat(t,{style:"currency",currency:e,currencyDisplay:"narrowSymbol"}).formatToParts(0).find(i=>i.type==="currency")?.value??e}catch{return e}},Fs=(e,t,a,r)=>{let n=e.toFixed(t),[i,s]=n.split("."),l=i.replace(/\B(?=(\d{3})+(?!\d))/g,a);return s?`${l}${r}${s}`:l},Sp=(e,t,a)=>{if(!e)return;let r=e.replace(new RegExp(`\\${t}`,"g"),"");r=r.replace(a,"."),r=r.replace(/[^0-9.-]/g,"");let n=parseFloat(r);return isNaN(n)?void 0:n},Tp=K__namespace.forwardRef(({className:e,size:t,value:a,defaultValue:r,onChange:n,currency:i="USD",locale:s="en-US",decimals:l=2,min:d,max:m,showCurrency:u=true,currencyPosition:c="prefix",currencySymbol:f,thousandSeparator:p=",",decimalSeparator:h=".",disabled:R,placeholder:g,...x},w)=>{let[b,v]=K__namespace.useState(r),[P,y]=K__namespace.useState(""),[C,M]=K__namespace.useState(false),T=a!==void 0?a:b,N=f??xw(i,s);K__namespace.useEffect(()=>{!C&&T!==void 0&&y(Fs(T,l,p,h));},[T,l,p,h,C]);let S=D=>{let I=D.target.value;if(!I){y(""),a===void 0&&v(void 0),n?.(void 0);return}if(!new RegExp(`^[0-9${p}${h}.-]*$`).test(I))return;y(I);let W=Sp(I,p,h);if(W!==void 0){let H=W;d!==void 0&&W<d&&(H=d),m!==void 0&&W>m&&(H=m),a===void 0&&v(H),n?.(H);}},k=()=>{M(true),T!==void 0&&y(T.toString().replace(".",h));},V=()=>{M(false),y(T!==void 0?Fs(T,l,p,h):"");},E=u&&c==="prefix"&&jsxRuntime.jsx("span",{className:"flex items-center text-muted-foreground pr-1",children:N}),L=u&&c==="suffix"&&jsxRuntime.jsx("span",{className:"flex items-center text-muted-foreground pl-1",children:N});return jsxRuntime.jsxs("div",{className:"relative flex items-center",children:[E&&jsxRuntime.jsx("div",{className:"absolute left-3 pointer-events-none",children:E}),jsxRuntime.jsx("input",{ref:w,type:"text",inputMode:"decimal",value:P,onChange:S,onFocus:k,onBlur:V,disabled:R,placeholder:g??`0${h}${"0".repeat(l)}`,className:o(Cp({size:t}),E&&"pl-8",L&&"pr-8","text-right",e),style:{borderColor:C?"var(--color-foreground)":void 0},...x}),L&&jsxRuntime.jsx("div",{className:"absolute right-3 pointer-events-none",children:L})]})});Tp.displayName="CurrencyInput";var Mp=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"}}),Os={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:"#####-####"}},ww=(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}},Oa=e=>["#","A","*"].includes(e),Xn=(e,t,a)=>{let r="",n=0;for(let i=0;i<t.length&&n<=e.length;i++){let s=t[i];if(Oa(s)){if(n<e.length){let l=e[n];ww(l,s)?(r+=l,n++):(n++,i--);}}else (n<e.length||a)&&(r+=s);}return r},Gs=(e,t)=>{let a="";for(let r=0;r<e.length&&r<t.length;r++){let n=t[r];Oa(n)&&(a+=e[r]);}return a},kp=(e,t)=>e.split("").map(a=>Oa(a)?t:a).join(""),Nw=(e,t,a)=>{let r=0;for(let l=0;l<a&&l<e.length&&l<t.length;l++)Oa(t[l])&&r++;let i=0,s=0;for(let l=0;l<t.length&&s<r;l++)i++,Oa(t[l])&&s++;for(;i<t.length&&!Oa(t[i]);)i++;return Math.min(i,e.length)},Dp=K__namespace.forwardRef(({className:e,size:t,value:a,defaultValue:r="",onChange:n,mask:i,maskPlaceholder:s="_",showMaskPlaceholder:l=false,includeMaskChars:d=false,disabled:m,placeholder:u,...c},f)=>{let p=typeof i=="string"&&i in Os?Os[i].mask:i,[h,R]=K__namespace.useState(r),[g,x]=K__namespace.useState(""),[w,b]=K__namespace.useState(false),v=K__namespace.useRef(null),P=a!==void 0?a:h;K__namespace.useImperativeHandle(f,()=>v.current),K__namespace.useEffect(()=>{let T=Xn(P,p,true);x(T);},[P,p]);let y=T=>{let N=T.target.value,S=T.target.selectionStart??0,k=N.replace(/[^\w]/g,""),V=Xn(k,p,true),E=Gs(V,p);x(V),a===void 0&&R(d?V:E),n?.(E,V),requestAnimationFrame(()=>{if(v.current){let L=Nw(V,p,S);v.current.setSelectionRange(L,L);}});},C=T=>{if(["ArrowLeft","ArrowRight","Home","End","Tab"].includes(T.key)||T.ctrlKey||T.metaKey)return;let N=v.current;if(!N)return;let S=N.selectionStart??0;if(T.key==="Backspace"&&S>0){let k=S-1;for(;k>0&&!Oa(p[k]);)k--;let V=Gs(g,p),E=0;for(let I=0;I<k&&I<p.length;I++)Oa(p[I])&&E++;let L=V.slice(0,Math.max(0,E-1))+V.slice(E),D=Xn(L,p,true);x(D),a===void 0&&R(d?D:L),n?.(L,D),T.preventDefault(),requestAnimationFrame(()=>{v.current&&v.current.setSelectionRange(k,k);});}},M=l?kp(p,s):u;return jsxRuntime.jsx("input",{ref:v,type:"text",value:g,onChange:y,onKeyDown:C,onFocus:()=>b(true),onBlur:()=>b(false),disabled:m,placeholder:M,className:o(Mp({size:t}),e),style:{borderColor:w?"var(--color-foreground)":void 0},...c})});Dp.displayName="MaskedInput";var Vp=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"}}),Jn={"DD/MM/YYYY":"/","MM/DD/YYYY":"/","YYYY-MM-DD":"-","DD.MM.YYYY":"."},$s={"DD/MM/YYYY":["day","month","year"],"MM/DD/YYYY":["month","day","year"],"YYYY-MM-DD":["year","month","day"],"DD.MM.YYYY":["day","month","year"]},Ws=(e,t)=>String(e).padStart(t,"0"),Zn=(e,t)=>{let a=Ws(e.getDate(),2),r=Ws(e.getMonth()+1,2),n=Ws(e.getFullYear(),4),i=Jn[t],s=$s[t],l={day:a,month:r,year:n};return s.map(d=>l[d]).join(i)},Lp=(e,t)=>{let a=Jn[t],r=e.split(a);if(r.length!==3)return null;let n=$s[t],i={};if(n.forEach((l,d)=>{i[l]=parseInt(r[d],10);}),isNaN(i.day)||isNaN(i.month)||isNaN(i.year)||i.month<1||i.month>12||i.day<1||i.day>31||i.year<1e3||i.year>9999)return null;let s=new Date(i.year,i.month-1,i.day);return s.getFullYear()!==i.year||s.getMonth()!==i.month-1||s.getDate()!==i.day?null:s},Tw=e=>e.toLowerCase(),Mw=e=>{let t=Jn[e];return $s[e].map(r=>r==="year"?"####":"##").join(t)},Ip=K__namespace.forwardRef(({className:e,size:t,value:a,defaultValue:r,onChange:n,format:i="DD/MM/YYYY",minDate:s,maxDate:l,showIcon:d=true,disabled:m,placeholder:u,...c},f)=>{let[p,h]=K__namespace.useState(r??null),[R,g]=K__namespace.useState(""),[x,w]=K__namespace.useState(null),b=K__namespace.useRef(null),v=a!==void 0?a:p;K__namespace.useImperativeHandle(f,()=>b.current),K__namespace.useEffect(()=>{v?(g(Zn(v,i)),w(null)):g("");},[v,i]);let P=Jn[i],y=Mw(i),C=N=>{let S=N.target.value;S=S.replace(new RegExp(`[^0-9\\${P}]`,"g"),"");let k=S.replace(new RegExp(`\\${P}`,"g"),""),V="",E=0;for(let L=0;L<y.length&&E<k.length;L++)y[L]==="#"?(V+=k[E],E++):V+=y[L];if(g(V),V.length===y.length){let L=Lp(V,i);if(L){if(s&&L<s){w(`Date must be after ${Zn(s,i)}`);return}if(l&&L>l){w(`Date must be before ${Zn(l,i)}`);return}w(null),a===void 0&&h(L),n?.(L);}else w("Invalid date");}else a===void 0&&h(null),n?.(null),w(null);},M=()=>{R&&R.length!==y.length&&(g(""),w(null),a===void 0&&h(null),n?.(null));},T=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:b,type:"text",inputMode:"numeric",value:R,onChange:C,onBlur:M,disabled:m,placeholder:u??Tw(i),className:o(Vp({size:t}),d&&"pr-10",x&&"border-danger focus-visible:ring-danger",e),"aria-invalid":!!x,"aria-describedby":x?"date-error":void 0,...c}),d&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute right-3 top-1/2 -translate-y-1/2",children:jsxRuntime.jsx(lucideReact.Calendar,{className:o(T,"text-muted-foreground")})}),x&&jsxRuntime.jsx("p",{id:"date-error",className:"mt-1 text-xs text-danger",children:x})]})});Ip.displayName="DateInput";var Ep=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"}}),Hp=[{code:"TR",name:"Turkey",dialCode:"+90",flag:"\u{1F1F9}\u{1F1F7}",format:"(###) ### ## ##"},{code:"US",name:"United States",dialCode:"+1",flag:"\u{1F1FA}\u{1F1F8}",format:"(###) ###-####"},{code:"GB",name:"United Kingdom",dialCode:"+44",flag:"\u{1F1EC}\u{1F1E7}",format:"#### ### ####"},{code:"DE",name:"Germany",dialCode:"+49",flag:"\u{1F1E9}\u{1F1EA}",format:"#### #######"},{code:"FR",name:"France",dialCode:"+33",flag:"\u{1F1EB}\u{1F1F7}",format:"# ## ## ## ##"},{code:"IT",name:"Italy",dialCode:"+39",flag:"\u{1F1EE}\u{1F1F9}",format:"### ### ####"},{code:"ES",name:"Spain",dialCode:"+34",flag:"\u{1F1EA}\u{1F1F8}",format:"### ### ###"},{code:"NL",name:"Netherlands",dialCode:"+31",flag:"\u{1F1F3}\u{1F1F1}",format:"## ########"},{code:"BE",name:"Belgium",dialCode:"+32",flag:"\u{1F1E7}\u{1F1EA}",format:"### ## ## ##"},{code:"AT",name:"Austria",dialCode:"+43",flag:"\u{1F1E6}\u{1F1F9}",format:"### #######"},{code:"CH",name:"Switzerland",dialCode:"+41",flag:"\u{1F1E8}\u{1F1ED}",format:"## ### ## ##"},{code:"SE",name:"Sweden",dialCode:"+46",flag:"\u{1F1F8}\u{1F1EA}",format:"##-### ## ##"},{code:"NO",name:"Norway",dialCode:"+47",flag:"\u{1F1F3}\u{1F1F4}",format:"### ## ###"},{code:"DK",name:"Denmark",dialCode:"+45",flag:"\u{1F1E9}\u{1F1F0}",format:"## ## ## ##"},{code:"FI",name:"Finland",dialCode:"+358",flag:"\u{1F1EB}\u{1F1EE}",format:"## ### ####"},{code:"PL",name:"Poland",dialCode:"+48",flag:"\u{1F1F5}\u{1F1F1}",format:"### ### ###"},{code:"CZ",name:"Czech Republic",dialCode:"+420",flag:"\u{1F1E8}\u{1F1FF}",format:"### ### ###"},{code:"GR",name:"Greece",dialCode:"+30",flag:"\u{1F1EC}\u{1F1F7}",format:"### ### ####"},{code:"PT",name:"Portugal",dialCode:"+351",flag:"\u{1F1F5}\u{1F1F9}",format:"### ### ###"},{code:"RU",name:"Russia",dialCode:"+7",flag:"\u{1F1F7}\u{1F1FA}",format:"(###) ###-##-##"},{code:"UA",name:"Ukraine",dialCode:"+380",flag:"\u{1F1FA}\u{1F1E6}",format:"## ### ## ##"},{code:"RO",name:"Romania",dialCode:"+40",flag:"\u{1F1F7}\u{1F1F4}",format:"### ### ###"},{code:"HU",name:"Hungary",dialCode:"+36",flag:"\u{1F1ED}\u{1F1FA}",format:"## ### ####"},{code:"BG",name:"Bulgaria",dialCode:"+359",flag:"\u{1F1E7}\u{1F1EC}",format:"### ### ###"},{code:"HR",name:"Croatia",dialCode:"+385",flag:"\u{1F1ED}\u{1F1F7}",format:"## ### ####"},{code:"RS",name:"Serbia",dialCode:"+381",flag:"\u{1F1F7}\u{1F1F8}",format:"## ### ####"},{code:"SI",name:"Slovenia",dialCode:"+386",flag:"\u{1F1F8}\u{1F1EE}",format:"## ### ###"},{code:"SK",name:"Slovakia",dialCode:"+421",flag:"\u{1F1F8}\u{1F1F0}",format:"### ### ###"},{code:"CA",name:"Canada",dialCode:"+1",flag:"\u{1F1E8}\u{1F1E6}",format:"(###) ###-####"},{code:"MX",name:"Mexico",dialCode:"+52",flag:"\u{1F1F2}\u{1F1FD}",format:"### ### ####"},{code:"BR",name:"Brazil",dialCode:"+55",flag:"\u{1F1E7}\u{1F1F7}",format:"(##) #####-####"},{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:"NZ",name:"New Zealand",dialCode:"+64",flag:"\u{1F1F3}\u{1F1FF}",format:"## ### ####"},{code:"JP",name:"Japan",dialCode:"+81",flag:"\u{1F1EF}\u{1F1F5}",format:"##-####-####"},{code:"KR",name:"South Korea",dialCode:"+82",flag:"\u{1F1F0}\u{1F1F7}",format:"##-####-####"},{code:"CN",name:"China",dialCode:"+86",flag:"\u{1F1E8}\u{1F1F3}",format:"### #### ####"},{code:"HK",name:"Hong Kong",dialCode:"+852",flag:"\u{1F1ED}\u{1F1F0}",format:"#### ####"},{code:"TW",name:"Taiwan",dialCode:"+886",flag:"\u{1F1F9}\u{1F1FC}",format:"### ### ###"},{code:"SG",name:"Singapore",dialCode:"+65",flag:"\u{1F1F8}\u{1F1EC}",format:"#### ####"},{code:"IN",name:"India",dialCode:"+91",flag:"\u{1F1EE}\u{1F1F3}",format:"##### #####"},{code:"PK",name:"Pakistan",dialCode:"+92",flag:"\u{1F1F5}\u{1F1F0}",format:"### #######"},{code:"AE",name:"United Arab Emirates",dialCode:"+971",flag:"\u{1F1E6}\u{1F1EA}",format:"## ### ####"},{code:"SA",name:"Saudi Arabia",dialCode:"+966",flag:"\u{1F1F8}\u{1F1E6}",format:"## ### ####"},{code:"EG",name:"Egypt",dialCode:"+20",flag:"\u{1F1EA}\u{1F1EC}",format:"### ### ####"},{code:"ZA",name:"South Africa",dialCode:"+27",flag:"\u{1F1FF}\u{1F1E6}",format:"## ### ####"},{code:"NG",name:"Nigeria",dialCode:"+234",flag:"\u{1F1F3}\u{1F1EC}",format:"### ### ####"},{code:"IL",name:"Israel",dialCode:"+972",flag:"\u{1F1EE}\u{1F1F1}",format:"##-###-####"}],Qn=(e,t)=>{let a=e.replace(/\D/g,""),r="",n=0;for(let i=0;i<t.length&&n<a.length;i++)t[i]==="#"?(r+=a[n],n++):r+=t[i];return r},Vw=e=>e.replace(/#/g,"_"),Ap=K__namespace.forwardRef(({className:e,size:t,value:a,defaultValue:r="",onChange:n,country:i,defaultCountry:s="TR",onCountryChange:l,countries:d=Hp,showCountrySelect:m=true,showDialCode:u=false,disabled:c,placeholder:f,...p},h)=>{let[R,g]=K__namespace.useState(r),[x,w]=K__namespace.useState(i??s),[b,v]=K__namespace.useState(false),P=a!==void 0?a:R,y=i??x,C=d.find(k=>k.code===y)??d[0],M=Qn(P,C.format),T=k=>{let E=k.target.value.replace(/\D/g,"");a===void 0&&g(E);let L=Qn(E,C.format),D=`${C.dialCode} ${L}`;n?.(E,D,C);};return jsxRuntime.jsxs("div",{className:"flex",children:[m&&jsxRuntime.jsxs(ls,{value:y,onValueChange:k=>{let V=d.find(D=>D.code===k);if(!V)return;i===void 0&&w(k),l?.(V);let E=Qn(P,V.format),L=`${V.dialCode} ${E}`;n?.(P,L,V);},disabled:c,children:[jsxRuntime.jsx(Pn,{className:o("w-[100px] rounded-r-none border-r-0 shrink-0",t==="sm"?"h-8":t==="lg"?"h-12":"h-10"),children:jsxRuntime.jsx(ds,{children:jsxRuntime.jsxs("span",{className:"flex items-center gap-1.5",children:[jsxRuntime.jsx("span",{children:C.flag}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:C.dialCode})]})})}),jsxRuntime.jsx(Cn,{className:"max-h-[300px]",children:d.map(k=>jsxRuntime.jsx(Sn,{value:k.code,children:jsxRuntime.jsxs("span",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{children:k.flag}),jsxRuntime.jsx("span",{className:"flex-1",children:k.name}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:k.dialCode})]})},k.code))})]}),jsxRuntime.jsxs("div",{className:"relative flex-1",children:[u&&!m&&jsxRuntime.jsx("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:C.dialCode}),jsxRuntime.jsx("input",{ref:h,type:"tel",inputMode:"tel",value:M,onChange:T,onFocus:()=>v(true),onBlur:()=>v(false),disabled:c,placeholder:f??Vw(C.format),className:o(Ep({size:t}),m&&"rounded-l-none",u&&!m&&"pl-12",e),style:{borderColor:b?"var(--color-foreground)":void 0},...p})]})]})});Ap.displayName="PhoneInput";var Bp=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}}),Fp=K__namespace.forwardRef(({className:e,variant:t,size:a,sticky:r,brand:n,children:i,mobileBreakpoint:s="md",...l},d)=>{let[m,u]=K__namespace.useState(false),c={sm:"hidden sm:flex",md:"hidden md:flex",lg:"hidden lg:flex"}[s],f={sm:"sm:hidden",md:"md:hidden",lg:"lg:hidden"}[s];return jsxRuntime.jsxs("nav",{ref:d,className:o(Bp({variant:t,size:a,sticky:r,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:o("items-center gap-4 flex-1 justify-end",c),children:i}),jsxRuntime.jsx("button",{type:"button",className:o("p-2 rounded-md hover:bg-accent hover:text-accent-foreground transition-colors",f),onClick:()=>u(!m),"aria-label":m?"Close menu":"Open menu","aria-expanded":m,children:m?jsxRuntime.jsx(lucideReact.X,{className:"h-5 w-5"}):jsxRuntime.jsx(lucideReact.Menu,{className:"h-5 w-5"})})]}),m&&jsxRuntime.jsx("div",{className:o("absolute top-full left-0 right-0 flex flex-col gap-2 p-4 bg-background border-b border-border shadow-lg",f),children:i})]})});Fp.displayName="Navbar";var Op=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex items-center gap-2 font-semibold text-lg",e),...t}));Op.displayName="NavbarBrand";var Gp=K__namespace.forwardRef(({className:e,justify:t="start",...a},r)=>{let n={start:"justify-start",center:"justify-center",end:"justify-end"}[t];return jsxRuntime.jsx("div",{ref:r,className:o("flex items-center gap-4",n,e),...a})});Gp.displayName="NavbarContent";var Wp=K__namespace.forwardRef(({className:e,isActive:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,className:o("flex items-center",t&&"text-primary font-medium",e),...a}));Wp.displayName="NavbarItem";var $p=K__namespace.forwardRef(({className:e,isActive:t,...a},r)=>jsxRuntime.jsx("a",{ref:r,className:o("text-sm font-medium transition-colors hover:text-primary",t?"text-primary":"text-muted-foreground",e),...a}));$p.displayName="NavbarLink";var Kp=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"}}),Up=K__namespace.forwardRef(({className:e,variant:t,size:a,underline:r,isExternal:n,showExternalIcon:i=true,isDisabled:s,children:l,...d},m)=>{let u=n?{target:"_blank",rel:"noopener noreferrer"}:{};return jsxRuntime.jsxs("a",{ref:m,className:o(Kp({variant:t,size:a,underline:r,className:e}),s&&"pointer-events-none opacity-50"),"aria-disabled":s,...u,...d,children:[l,n&&i&&jsxRuntime.jsx(lucideReact.ExternalLink,{className:"h-3 w-3 ml-0.5","aria-hidden":"true"})]})});Up.displayName="Link";var Yp=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"}}),jp=K__namespace.forwardRef(({className:e,position:t,threshold:a=400,icon:r,behavior:n="smooth",variant:i="solid",color:s="default",size:l="md",radius:d="full",target:m,onVisibilityChange:u,onClick:c,...f},p)=>{let[h,R]=K__namespace.useState(false);K__namespace.useEffect(()=>{let w=m?.current||window,b=()=>{let P=(m?.current?m.current.scrollTop:window.scrollY||document.documentElement.scrollTop)>a;P!==h&&(R(P),u?.(P));};return w.addEventListener("scroll",b,{passive:true}),b(),()=>{w.removeEventListener("scroll",b);}},[a,m,h,u]);let g=w=>{m?.current?m.current.scrollTo({top:0,behavior:n}):window.scrollTo({top:0,behavior:n}),c?.(w);},x=l==="sm"?"h-4 w-4":l==="lg"?"h-6 w-6":"h-5 w-5";return jsxRuntime.jsx("div",{className:o(Yp({position:t}),h?"opacity-100 translate-y-0 pointer-events-auto":"opacity-0 translate-y-4 pointer-events-none",e),children:jsxRuntime.jsx(G,{ref:p,type:"button",variant:i,color:s,size:"icon",radius:d,onClick:g,"aria-label":"Back to top",className:o("shadow-lg",l==="sm"&&"h-9 w-9",l==="md"&&"h-10 w-10",l==="lg"&&"h-12 w-12"),...f,children:r||jsxRuntime.jsx(lucideReact.ArrowUp,{className:x})})})});jp.displayName="BackTop";var _w=Y__namespace.Menu,Kw=Y__namespace.Group,Uw=Y__namespace.Portal,Yw=Y__namespace.Sub,jw=Y__namespace.RadioGroup,Xp=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Y__namespace.Root,{ref:a,className:o("flex h-10 items-center space-x-1 rounded-md border bg-background p-1",e),...t}));Xp.displayName=Y__namespace.Root.displayName;var qp=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Y__namespace.Trigger,{ref:a,className:o("flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",e),...t}));qp.displayName=Y__namespace.Trigger.displayName;var Zp=K__namespace.forwardRef(({className:e,inset:t,children:a,...r},n)=>jsxRuntime.jsxs(Y__namespace.SubTrigger,{ref:n,className:o("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",e),...r,children:[a,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto h-4 w-4"})]}));Zp.displayName=Y__namespace.SubTrigger.displayName;var Jp=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Y__namespace.SubContent,{ref:a,className:o("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Jp.displayName=Y__namespace.SubContent.displayName;var Qp=K__namespace.forwardRef(({className:e,align:t="start",alignOffset:a=-4,sideOffset:r=8,...n},i)=>jsxRuntime.jsx(Y__namespace.Portal,{children:jsxRuntime.jsx(Y__namespace.Content,{ref:i,align:t,alignOffset:a,sideOffset:r,className:o("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));Qp.displayName=Y__namespace.Content.displayName;var ef=K__namespace.forwardRef(({className:e,inset:t,...a},r)=>jsxRuntime.jsx(Y__namespace.Item,{ref:r,className:o("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...a}));ef.displayName=Y__namespace.Item.displayName;var tf=K__namespace.forwardRef(({className:e,children:t,checked:a,...r},n)=>jsxRuntime.jsxs(Y__namespace.CheckboxItem,{ref:n,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...r,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(Y__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),t]}));tf.displayName=Y__namespace.CheckboxItem.displayName;var af=K__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsxs(Y__namespace.RadioItem,{ref:r,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(Y__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));af.displayName=Y__namespace.RadioItem.displayName;var rf=K__namespace.forwardRef(({className:e,inset:t,...a},r)=>jsxRuntime.jsx(Y__namespace.Label,{ref:r,className:o("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));rf.displayName=Y__namespace.Label.displayName;var of=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(Y__namespace.Separator,{ref:a,className:o("-mx-1 my-1 h-px bg-muted",e),...t}));of.displayName=Y__namespace.Separator.displayName;var nf=({className:e,...t})=>jsxRuntime.jsx("span",{className:o("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});nf.displayName="MenubarShortcut";var sf=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"}}),lf=K__namespace.forwardRef(({className:e,orientation:t,size:a,currentStep:r=0,children:n,...i},s)=>{let l=K__namespace.Children.toArray(n);return jsxRuntime.jsx("div",{ref:s,className:o(sf({orientation:t,size:a,className:e})),...i,children:l.map((d,m)=>K__namespace.isValidElement(d)?K__namespace.cloneElement(d,{...d.props,stepNumber:m+1,status:d.props.status||(m<r?"completed":m===r?"current":"upcoming"),isLast:m===l.length-1,orientation:t,size:a}):d)})});lf.displayName="Steps";var df=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"}}),qw=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"}}),Zw=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"}}),cf=K__namespace.forwardRef(({className:e,orientation:t="horizontal",size:a="md",title:r,description:n,icon:i,status:s="upcoming",stepNumber:l,isLast:d,...m},u)=>jsxRuntime.jsxs("div",{ref:u,className:o(df({orientation:t,size:a,className:e}),!d&&t==="horizontal"&&"flex-1"),...m,children:[jsxRuntime.jsx("div",{className:o("flex items-center",t==="vertical"&&"flex-col items-start"),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntime.jsx("div",{className:o(qw({status:s,size:a})),children:s==="completed"?jsxRuntime.jsx(lucideReact.Check,{className:a==="sm"?"h-3 w-3":a==="lg"?"h-5 w-5":"h-4 w-4"}):i||l}),(r||n)&&jsxRuntime.jsxs("div",{className:"flex flex-col",children:[r&&jsxRuntime.jsx("span",{className:o("font-medium",a==="sm"&&"text-sm",a==="lg"&&"text-lg",s==="upcoming"&&"text-muted-foreground"),children:r}),n&&jsxRuntime.jsx("span",{className:o("text-muted-foreground",a==="sm"&&"text-xs",a==="md"&&"text-sm",a==="lg"&&"text-base"),children:n})]})]})}),!d&&jsxRuntime.jsx("div",{className:o(Zw({orientation:t,status:s==="completed"?"completed":"upcoming"}),t==="vertical"&&"my-2")})]}));cf.displayName="Step";function rN({className:e,data:t,columns:a,selectable:r=false,selectedKeys:n,onSelectionChange:i,getRowKey:s=(v,P)=>String(P),sortable:l=false,sortState:d,onSortChange:m,paginated:u=false,pageSizeOptions:c=[10,20,50],paginationState:f,onPaginationChange:p,emptyContent:h="No data",loading:R=false,striped:g=false,hoverable:x=true,...w},b){let[v,P]=K__namespace.useState(new Set),[y,C]=K__namespace.useState({columnId:null,direction:null}),[M,T]=K__namespace.useState({pageIndex:0,pageSize:c[0]||10}),N=n??v,S=d??y,k=f??M,V=A=>{i?i(A):P(A);},E=A=>{m?m(A):C(A);},L=A=>{p?p(A):T(A);},D=K__namespace.useMemo(()=>{if(!S.columnId||!S.direction)return t;let A=a.find(B=>B.id===S.columnId);return A?[...t].sort((B,te)=>{let F=A.accessor(B),oe=A.accessor(te);if(F===oe)return 0;if(F==null)return 1;if(oe==null)return -1;let ee=String(F).localeCompare(String(oe),void 0,{numeric:true});return S.direction==="asc"?ee:-ee}):t},[t,S,a]),I=K__namespace.useMemo(()=>{if(!u)return D;let A=k.pageIndex*k.pageSize;return D.slice(A,A+k.pageSize)},[D,u,k]),z=Math.ceil(D.length/k.pageSize),W=A=>{if(A){let B=new Set(I.map((te,F)=>s(te,F)));V(B);}else V(new Set);},H=(A,B)=>{let te=new Set(N);B?te.add(A):te.delete(A),V(te);},j=I.length>0&&I.every((A,B)=>N.has(s(A,B))),$=I.some((A,B)=>N.has(s(A,B))),Le=A=>{if(!a.find(F=>F.id===A)?.sortable&&!l)return;let te="asc";S.columnId===A&&(S.direction==="asc"?te="desc":S.direction==="desc"&&(te=null)),E({columnId:te?A:null,direction:te});},ve=A=>S.columnId!==A?jsxRuntime.jsx(lucideReact.ChevronsUpDown,{className:"h-4 w-4 text-muted-foreground/50"}):S.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:b,className:o("w-full",e),...w,children:[jsxRuntime.jsx("div",{className:"relative w-full overflow-auto rounded-md border",children:jsxRuntime.jsxs("table",{className:"w-full caption-bottom text-sm",children:[jsxRuntime.jsx("thead",{className:"[&_tr]:border-b bg-muted/50",children:jsxRuntime.jsxs("tr",{children:[r&&jsxRuntime.jsx("th",{className:"h-12 w-12 px-4",children:jsxRuntime.jsx(Po,{checked:j?true:$?"indeterminate":false,onCheckedChange:W,"aria-label":"Select all"})}),a.map(A=>{let B=A.sortable??l;return jsxRuntime.jsx("th",{className:o("h-12 px-4 text-left align-middle font-medium text-muted-foreground",B&&"cursor-pointer select-none hover:text-foreground"),style:{width:A.width},onClick:()=>B&&Le(A.id),children:jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[A.header,B&&ve(A.id)]})},A.id)})]})}),jsxRuntime.jsx("tbody",{className:"[&_tr:last-child]:border-0",children:R?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:a.length+(r?1:0),className:"h-24 text-center text-muted-foreground",children:"Loading..."})}):I.length===0?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:a.length+(r?1:0),className:"h-24 text-center text-muted-foreground",children:h})}):I.map((A,B)=>{let te=s(A,B),F=N.has(te);return jsxRuntime.jsxs("tr",{className:o("border-b transition-colors",x&&"hover:bg-muted/50",g&&B%2===1&&"bg-muted/30",F&&"bg-muted"),"data-state":F?"selected":void 0,children:[r&&jsxRuntime.jsx("td",{className:"w-12 px-4",children:jsxRuntime.jsx(Po,{checked:F,onCheckedChange:oe=>H(te,!!oe),"aria-label":`Select row ${B+1}`})}),a.map(oe=>jsxRuntime.jsx("td",{className:"p-4 align-middle",children:oe.cell?oe.cell(A,B):oe.accessor(A)},oe.id))]},te)})})]})}),u&&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:A=>L({pageIndex:0,pageSize:Number(A.target.value)}),className:"h-8 rounded-md border bg-transparent px-2",children:c.map(A=>jsxRuntime.jsx("option",{value:A,children:A},A))})]}),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("button",{onClick:()=>L({...k,pageIndex:k.pageIndex-1}),disabled:k.pageIndex===0,className:"inline-flex h-8 w-8 items-center justify-center rounded-md border bg-transparent hover:bg-muted disabled:opacity-50 disabled:pointer-events-none","aria-label":"Previous page",children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx("button",{onClick:()=>L({...k,pageIndex:k.pageIndex+1}),disabled:k.pageIndex>=z-1,className:"inline-flex h-8 w-8 items-center justify-center rounded-md border bg-transparent hover:bg-muted disabled:opacity-50 disabled:pointer-events-none","aria-label":"Next page",children:jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})})]})]})]})]})}var oN=K__namespace.forwardRef(rN);var uf=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"}}),pf=K__namespace.forwardRef(({className:e,size:t,data:a,defaultExpandedIds:r=[],expandedIds:n,onExpandedChange:i,selectedId:s,onSelect:l,showIcons:d=true,leafIcon:m=jsxRuntime.jsx(lucideReact.File,{className:"h-4 w-4"}),folderIcon:u=jsxRuntime.jsx(lucideReact.Folder,{className:"h-4 w-4"}),folderOpenIcon:c=jsxRuntime.jsx(lucideReact.FolderOpen,{className:"h-4 w-4"}),defaultExpandAll:f=false,...p},h)=>{let R=K__namespace.useCallback(y=>y.reduce((C,M)=>M.children?.length?[...C,M.id,...R(M.children)]:C,[]),[]),[g,x]=K__namespace.useState(()=>f?R(a):r),w=n??g,b=y=>{i?i(y):x(y);},v=y=>{w.includes(y)?b(w.filter(C=>C!==y)):b([...w,y]);},P=(y,C=0)=>{let M=y.children&&y.children.length>0,T=w.includes(y.id),N=s===y.id,S=()=>{y.disabled||l?.(y);},k=E=>{E.stopPropagation(),M&&v(y.id);},V=()=>y.icon?y.icon:M?T?c:u:m;return jsxRuntime.jsxs("div",{role:"treeitem","aria-expanded":M?T:void 0,children:[jsxRuntime.jsxs("div",{className:o("flex items-center gap-1 rounded-md px-2 cursor-pointer transition-colors","h-[var(--tree-item-height)]","hover:bg-muted/50",N&&"bg-primary/10 text-primary",y.disabled&&"opacity-50 cursor-not-allowed"),style:{paddingLeft:`calc(${C} * var(--tree-indent) + 8px)`},onClick:S,children:[jsxRuntime.jsx("button",{type:"button",className:o("flex h-5 w-5 items-center justify-center rounded hover:bg-muted",!M&&"invisible"),onClick:k,tabIndex:-1,"aria-label":T?"Collapse":"Expand",children:T?jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4"}):jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"})}),d&&jsxRuntime.jsx("span",{className:"flex-shrink-0 text-muted-foreground",children:V()}),jsxRuntime.jsx("span",{className:"truncate",children:y.name})]}),M&&T&&jsxRuntime.jsx("div",{role:"group",children:y.children.map(E=>P(E,C+1))})]},y.id)};return jsxRuntime.jsx("div",{ref:h,role:"tree",className:o(uf({size:t,className:e})),...p,children:a.map(y=>P(y))})});pf.displayName="TreeView";var gf=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}}),gN=({text:e,query:t})=>{if(!t)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:e});let a=new RegExp(`(${t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")})`,"gi"),r=e.split(a);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:r.map((n,i)=>a.test(n)?jsxRuntime.jsx("mark",{className:"bg-primary/20 text-foreground rounded-sm",children:n},i):jsxRuntime.jsx("span",{children:n},i))})},bN=(e,t)=>{let[a,r]=K__namespace.useState(e);return K__namespace.useEffect(()=>{let n=setTimeout(()=>{r(e);},t);return ()=>{clearTimeout(n);}},[e,t]),a},bf=K__namespace.forwardRef(({className:e,size:t,value:a,defaultValue:r="",onChange:n,onSelect:i,options:s=[],loadOptions:l,debounceMs:d=300,minChars:m=0,placeholder:u="Type to search...",emptyText:c="No results found.",loadingText:f="Loading...",clearable:p=false,freeSolo:h=true,maxHeight:R=200,highlightMatch:g=true,fullWidth:x=false,disabled:w,...b},v)=>{let[P,y]=K__namespace.useState(false),[C,M]=K__namespace.useState(r),[T,N]=K__namespace.useState([]),[S,k]=K__namespace.useState(false),[V,E]=K__namespace.useState(false),L=K__namespace.useRef(null),D=a!==void 0?a:C,I=bN(D,d);K__namespace.useImperativeHandle(v,()=>L.current);let z=l?T:s,W=K__namespace.useMemo(()=>l?z:z.filter(ee=>ee.label.toLowerCase().includes(D.toLowerCase())),[z,D,l]);K__namespace.useEffect(()=>{if(!l)return;if(I.length<m){N([]);return}let ee=false;return (async()=>{k(true);try{let rt=await l(I);ee||N(rt);}catch{ee||N([]);}finally{ee||k(false);}})(),()=>{ee=true;}},[I,l,m]);let H=ee=>{a===void 0&&M(ee),n?.(ee);},j=ee=>{let at=ee.target.value;H(at),at.length>=m&&y(true);},$=ee=>{H(ee.label),i?.(ee),y(false);},Le=()=>{H(""),L.current?.focus();},ve=()=>{E(true),D.length>=m&&(W.length>0||S)&&y(true);},A=()=>{E(false);},B=ee=>{ee.key==="Escape"&&y(false),ee.key==="ArrowDown"&&!P&&W.length>0&&y(true);},te=P&&D.length>=m,F=t==="sm"?"h-3 w-3":t==="lg"?"h-5 w-5":"h-4 w-4",oe=p&&D?"pr-8":"pr-3";return jsxRuntime.jsxs(Ne,{open:te,onOpenChange:y,children:[jsxRuntime.jsx(fs,{asChild:true,children:jsxRuntime.jsxs("div",{className:o("relative",x?"w-full":"w-fit"),children:[jsxRuntime.jsx("input",{ref:L,type:"text",value:D,onChange:j,onFocus:ve,onBlur:A,onKeyDown:B,disabled:w,placeholder:u,className:o(gf({size:t,fullWidth:x}),oe,e),style:{borderColor:V?"var(--color-foreground)":void 0},role:"combobox","aria-expanded":te,"aria-autocomplete":"list","aria-controls":"autocomplete-list",...b}),p&&D&&!w&&jsxRuntime.jsx("button",{type:"button",onClick:Le,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:F})})]})}),jsxRuntime.jsx(xe,{className:"w-[--radix-popover-trigger-width] p-0",align:"start",onOpenAutoFocus:ee=>ee.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:R},children:S?jsxRuntime.jsxs("div",{className:"flex items-center justify-center gap-2 py-6 text-sm text-muted-foreground",children:[jsxRuntime.jsx(lucideReact.Loader2,{className:o(F,"animate-spin")}),f]}):W.length===0?jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:c}):W.map(ee=>jsxRuntime.jsxs(cmdk.Command.Item,{value:ee.value,disabled:ee.disabled,onSelect:()=>$(ee),className:o("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:o("mr-2 h-4 w-4 shrink-0",D===ee.label?"opacity-100":"opacity-0")}),jsxRuntime.jsx("span",{className:"flex-1",children:g?jsxRuntime.jsx(gN,{text:ee.label,query:D}):ee.label})]},ee.value))})})})]})});bf.displayName="Autocomplete";var js=K__namespace.createContext(null),Xs=K__namespace.createContext(null),qs=()=>{let e=K__namespace.useContext(js);if(!e)throw new Error("useFormContext must be used within a Form");return e},ai=()=>{let e=K__namespace.useContext(Xs);if(!e)throw new Error("useFieldContext must be used within a FormField");return e},vN={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:a=>typeof a=="string"&&a.length>=e,message:t??`Must be at least ${e} characters`}),maxLength:(e,t)=>({validate:a=>typeof a=="string"&&a.length<=e,message:t??`Must be at most ${e} characters`}),min:(e,t)=>({validate:a=>typeof a=="number"&&a>=e,message:t??`Must be at least ${e}`}),max:(e,t)=>({validate:a=>typeof a=="number"&&a<=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:a=>typeof a=="string"&&e.test(a),message:t}),custom:(e,t)=>({validate:e,message:t})},vf=K__namespace.forwardRef(({defaultValues:e={},onSubmit:t,onError:a,validateOnBlur:r=true,validateOnChange:n=false,children:i,className:s,...l},d)=>{let[m,u]=K__namespace.useState(e),[c,f]=K__namespace.useState({}),[p,h]=K__namespace.useState({}),[R,g]=K__namespace.useState({}),[x,w]=K__namespace.useState(false),b=K__namespace.useRef(new Map),v=K__namespace.useCallback((L,D)=>{b.current.set(L,D);},[]),P=K__namespace.useCallback(L=>{b.current.delete(L);},[]),y=K__namespace.useCallback(L=>{let D=b.current.get(L)||[],I=m[L];for(let z of D)if(!z.validate(I))return f(W=>({...W,[L]:z.message})),false;return f(z=>({...z,[L]:null})),true},[m]),C=K__namespace.useCallback(()=>{let L=true,D={};return b.current.forEach((I,z)=>{let W=m[z];for(let H of I)if(!H.validate(W)){D[z]=H.message,L=false;break}D[z]||(D[z]=null);}),f(D),L},[m]),M=K__namespace.useCallback((L,D)=>{u(I=>({...I,[L]:D})),g(I=>({...I,[L]:true})),n&&setTimeout(()=>{y(L);},0);},[n,y]),T=K__namespace.useCallback((L,D)=>{f(I=>({...I,[L]:D}));},[]),N=K__namespace.useCallback((L,D)=>{h(I=>({...I,[L]:D})),D&&r&&y(L);},[r,y]),S=K__namespace.useCallback(L=>({value:m[L],error:c[L]??null,touched:p[L]??false,dirty:R[L]??false}),[m,c,p,R]),k=K__namespace.useCallback(()=>{u(e),f({}),h({}),g({});},[e]),V=async L=>{L.preventDefault();let D={};if(b.current.forEach((z,W)=>{D[W]=true;}),h(D),!C()){a?.(c);return}if(t){w(true);try{await t(m);}finally{w(false);}}},E={values:m,errors:c,touched:p,dirty:R,isSubmitting:x,setValue:M,setError:T,setTouched:N,validateField:y,validateAll:C,registerField:v,unregisterField:P,getFieldState:S,reset:k};return jsxRuntime.jsx(js.Provider,{value:E,children:jsxRuntime.jsx("form",{ref:d,onSubmit:V,className:o("space-y-4",s),...l,children:i})})});vf.displayName="Form";var hf=({name:e,rules:t=[],defaultValue:a,children:r})=>{let n=qs(),i=K__namespace.useId();K__namespace.useEffect(()=>(n.registerField(e,t),a!==void 0&&n.values[e]===void 0&&n.setValue(e,a),()=>{n.unregisterField(e);}),[e,t,a,n]);let s=n.getFieldState(e),l={name:e,id:`${i}-${e}`,value:s.value,error:s.error,touched:s.touched,dirty:s.dirty};return jsxRuntime.jsx(Xs.Provider,{value:l,children:r})};hf.displayName="FormField";var xf=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("space-y-1.5",e),...t}));xf.displayName="FormItem";var yf=K__namespace.forwardRef(({className:e,required:t,children:a,...r},n)=>{let{id:i,error:s,touched:l}=ai();return jsxRuntime.jsxs(tr,{ref:n,htmlFor:i,className:o(s&&l&&"text-danger",e),...r,children:[a,t&&jsxRuntime.jsx("span",{className:"ml-1 text-danger",children:"*"})]})});yf.displayName="FormLabel";var Rf=({children:e})=>{let{name:t,id:a,error:r,touched:n}=ai(),i=qs(),s=i.getFieldState(t),l=m=>{let u=m.target,c=u.type==="checkbox"?u.checked:u.value;i.setValue(t,c);},d=()=>{i.setTouched(t,true);};return K__namespace.cloneElement(e,{id:a,name:t,value:s.value??"",onChange:l,onBlur:d,"aria-invalid":r&&n?"true":void 0,"aria-describedby":r&&n?`${a}-error`:void 0})};Rf.displayName="FormControl";var wf=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("p",{ref:a,className:o("text-xs text-muted-foreground",e),...t}));wf.displayName="FormDescription";var Nf=K__namespace.forwardRef(({className:e,message:t,...a},r)=>{let{id:n,error:i,touched:s}=ai(),l=t??(s?i:null);return l?jsxRuntime.jsx("p",{ref:r,id:`${n}-error`,className:o("text-xs text-danger",e),role:"alert",...a,children:l}):null});Nf.displayName="FormMessage";var Cf=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"}}),Sf=K__namespace.forwardRef(({className:e,size:t,name:a,description:r,avatarUrl:n,avatarFallback:i,trailing:s,...l},d)=>{let m=i||a.split(" ").map(u=>u[0]).join("").toUpperCase().slice(0,2);return jsxRuntime.jsxs("div",{ref:d,className:o(Cf({size:t,className:e})),...l,children:[jsxRuntime.jsxs(ar,{"data-user-avatar":true,children:[n&&jsxRuntime.jsx(Hr,{src:n,alt:a}),jsxRuntime.jsx(rr,{children:m})]}),jsxRuntime.jsxs("div",{className:"flex flex-col min-w-0",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium leading-none truncate",children:a}),r&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground truncate",children:r})]}),s&&jsxRuntime.jsx("div",{className:"ml-auto flex-shrink-0",children:s})]})});Sf.displayName="User";var Mf=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"}}),kf=K__namespace.forwardRef(({className:e,variant:t,size:a,...r},n)=>jsxRuntime.jsx("code",{ref:n,className:o(Mf({variant:t,size:a,className:e})),...r}));kf.displayName="Code";var Df=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"}}),Vf=K__namespace.forwardRef(({className:e,variant:t,size:a,code:r,copyable:n=true,copyLabel:i="Copy",onCopy:s,symbol:l="$",hideSymbol:d=false,...m},u)=>{let[c,f]=K__namespace.useState(false),p=async()=>{try{await navigator.clipboard.writeText(r),f(!0),s?.(),setTimeout(()=>f(!1),2e3);}catch(h){console.error("Failed to copy:",h);}};return jsxRuntime.jsxs("div",{ref:u,className:o(Df({variant:t,size:a,className:e})),...m,children:[!d&&jsxRuntime.jsx("span",{className:"text-muted-foreground select-none",children:l}),jsxRuntime.jsx("code",{className:"flex-1 truncate",children:r}),n&&jsxRuntime.jsx("button",{type:"button",onClick:p,className:o("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":c?"Copied":i,children:c?jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4 text-green-500"}):jsxRuntime.jsx(lucideReact.Copy,{className:"h-4 w-4 text-muted-foreground"})})]})});Vf.displayName="Snippet";var Qs=classVarianceAuthority.cva("overflow-hidden",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"md"}}),Lf=K__namespace.forwardRef(({className:e,radius:t,src:a,alt:r,fallback:n,showSkeleton:i=true,onLoad:s,onError:l,fit:d="cover",aspectRatio:m,style:u,...c},f)=>{let[p,h]=K__namespace.useState("loading");K__namespace.useEffect(()=>{a&&h("loading");},[a]);let R=()=>{h("loaded"),s?.();},g=()=>{h("error"),l?.();},x={contain:"object-contain",cover:"object-cover",fill:"object-fill",none:"object-none","scale-down":"object-scale-down"}[d];return p==="error"&&n?jsxRuntime.jsx("div",{className:o(Qs({radius:t}),"flex items-center justify-center bg-muted",e),style:{aspectRatio:m,...u},children:n}):jsxRuntime.jsxs("div",{className:o(Qs({radius:t}),"relative",e),style:{aspectRatio:m,...u},children:[p==="loading"&&i&&jsxRuntime.jsx(wn,{className:"absolute inset-0 h-full w-full"}),jsxRuntime.jsx("img",{ref:f,src:a,alt:r,onLoad:R,onError:g,className:o("h-full w-full transition-opacity duration-300",x,p==="loading"?"opacity-0":"opacity-100"),...c})]})});Lf.displayName="Image";var Hf=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"}}),Af=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"}}),zf=K__namespace.createContext({value:"",onValueChange:()=>{},multiple:false,size:"md"}),Bf=K__namespace.forwardRef(({className:e,size:t="md",value:a,defaultValue:r="",onValueChange:n,multiple:i=false,children:s,...l},d)=>{let[m,u]=K__namespace.useState(r),c=a??m,f=p=>{let h;if(i){let R=Array.isArray(c)?c:[c].filter(Boolean);R.includes(p)?h=R.filter(g=>g!==p):h=[...R,p];}else h=p;n?n(h):u(h);};return jsxRuntime.jsx(zf.Provider,{value:{value:c,onValueChange:f,multiple:i,size:t??"md"},children:jsxRuntime.jsx("div",{ref:d,role:"listbox","aria-multiselectable":i,className:o(Hf({size:t,className:e})),...l,children:s})})});Bf.displayName="Listbox";var Ff=K__namespace.forwardRef(({className:e,value:t,disabled:a,icon:r,description:n,children:i,...s},l)=>{let{value:d,onValueChange:m,multiple:u,size:c}=K__namespace.useContext(zf),f=u?Array.isArray(d)&&d.includes(t):d===t,p=()=>{a||m(t);},h=R=>{(R.key==="Enter"||R.key===" ")&&!a&&(R.preventDefault(),m(t));};return jsxRuntime.jsxs("div",{ref:l,role:"option","aria-selected":f,"data-disabled":a?"":void 0,tabIndex:a?-1:0,className:o(Af({size:c}),f&&"bg-accent text-accent-foreground",e),onClick:p,onKeyDown:h,...s,children:[r&&jsxRuntime.jsx("span",{className:"mr-2 flex-shrink-0",children:r}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:"truncate",children:i}),n&&jsxRuntime.jsx("div",{className:"text-xs text-muted-foreground truncate",children:n})]}),f&&jsxRuntime.jsx(lucideReact.Check,{className:"ml-2 h-4 w-4 flex-shrink-0"})]})});Ff.displayName="ListboxItem";var Gf=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"}}),Wf=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:a,items:r,onReorder:n,renderItem:i,showHandle:s=true,disabled:l=false,...d},m){let[u,c]=K__namespace.useState(null),[f,p]=K__namespace.useState(null),h=(b,v)=>{l||(c(v),b.dataTransfer.effectAllowed="move",b.dataTransfer.setData("text/plain",String(v)));},R=(b,v)=>{b.preventDefault(),!(l||u===null||u===v)&&p(v);},g=()=>{p(null);},x=(b,v)=>{if(b.preventDefault(),l||u===null||u===v){c(null),p(null);return}let P=[...r],[y]=P.splice(u,1);P.splice(v,0,y),n?.(P),c(null),p(null);},w=()=>{c(null),p(null);};return jsxRuntime.jsx("div",{ref:m,className:o(Gf({variant:t,size:a,className:e})),...d,children:r.map((b,v)=>jsxRuntime.jsxs("div",{draggable:!l,onDragStart:P=>h(P,v),onDragOver:P=>R(P,v),onDragLeave:g,onDrop:P=>x(P,v),onDragEnd:w,className:o(Wf({variant:t,size:a,isDragging:u===v,isDragOver:f===v}),!l&&"cursor-move"),children:[s&&jsxRuntime.jsx("div",{className:o("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:i(b,v)})]},b.id))})}var VN=K__namespace.forwardRef(DN);var Kf=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}}),HN={sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8"},Uf=K__namespace.forwardRef(({className:e,variant:t,loading:a=true,size:r="md",spinner:n,text:i,children:s,...l},d)=>jsxRuntime.jsxs("div",{ref:d,className:o("relative",e),...l,children:[s,jsxRuntime.jsx("div",{className:o(Kf({variant:t,visible:a})),"aria-hidden":!a,children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2",children:[n||jsxRuntime.jsx(lucideReact.Loader2,{className:o(HN[r],"animate-spin text-primary")}),i&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:i})]})})]}));Uf.displayName="LoadingOverlay";var Yf=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"}}),jf=K__namespace.forwardRef(({className:e,color:t,isLoading:a=false,progress:r,showSpinner:n=false,...i},s)=>{let[l,d]=K__namespace.useState(0),[m,u]=K__namespace.useState(false),c=K__namespace.useRef(null);return K__namespace.useEffect(()=>{if(r!==void 0){d(r),u(r>0&&r<100);return}return a?(u(true),d(10),c.current=setInterval(()=>{d(f=>{if(f>=90)return f;let p=Math.random()*10;return Math.min(f+p,90)});},500)):l>0&&(d(100),setTimeout(()=>{u(false),d(0);},200)),()=>{c.current&&clearInterval(c.current);}},[a,r]),!m&&r===void 0||r!==void 0&&(r<=0||r>=100)?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{ref:s,className:o(Yf({color:t,className:e})),style:{width:`${l}%`},role:"progressbar","aria-valuenow":l,"aria-valuemin":0,"aria-valuemax":100,...i,children:jsxRuntime.jsx("div",{className:"absolute right-0 h-full w-24 -translate-y-1 rotate-3 bg-inherit opacity-50 blur-sm"})}),n&&m&&jsxRuntime.jsx("div",{className:"fixed top-4 right-4 z-[9999]",children:jsxRuntime.jsx("div",{className:o("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")})})]})});jf.displayName="NProgress";var Jf=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}}),Xf={sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8"},GN={sm:"h-1.5 w-1.5",md:"h-2 w-2",lg:"h-3 w-3"},Qf=K__namespace.forwardRef(({className:e,variant:t="spinner",size:a="md",fullScreen:r,text:n,color:i="primary",...s},l)=>{let d={primary:"text-primary",secondary:"text-secondary",muted:"text-muted-foreground"}[i],m=()=>{switch(t){case "dots":return jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:[0,1,2].map(u=>jsxRuntime.jsx("div",{className:o(GN[a||"md"],"animate-bounce rounded-full bg-current",d),style:{animationDelay:`${u*.15}s`}},u))});case "pulse":return jsxRuntime.jsx("div",{className:o(Xf[a||"md"],"animate-pulse rounded-full bg-current",d)});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:o(Xf[a||"md"],"animate-spin",d)})}};return jsxRuntime.jsx("div",{ref:l,className:o(Jf({variant:t,size:a,fullScreen:r,className:e})),role:"status","aria-label":n||"Loading",...s,children:jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-2",children:[m(),n&&jsxRuntime.jsx("span",{className:o("text-sm",d),children:n})]})})});Qf.displayName="Loading";var al=class extends K__namespace.Component{constructor(t){super(t),this.state={hasError:false,error:null};}static getDerivedStateFromError(t){return {hasError:true,error:t}}componentDidCatch(t,a){this.props.onError?.(t,a);}componentDidUpdate(t){this.state.hasError&&this.props.resetKeys&&this.props.resetKeys.some((r,n)=>r!==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(rl,{error:this.state.error,onReset:this.reset}):this.props.children}},rl=K__namespace.forwardRef(({error:e,onReset:t,className:a},r)=>jsxRuntime.jsxs("div",{ref:r,className:o("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",a),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"]})]}));rl.displayName="DefaultErrorFallback";var _N=al;var tg=K__namespace.forwardRef(({value:e,defaultValue:t,onValueChange:a,placeholder:r="Pick a date range",dateFormat:n="LLL dd, y",disabled:i=false,minDate:s,maxDate:l,numberOfMonths:d=2,className:m,align:u="start"},c)=>{let[f,p]=K__namespace.useState(false),[h,R]=K__namespace.useState(t),g=e!==void 0,x=g?e:h,w=v=>{g||R(v),a?.(v);},b=v=>{if(!v)return r;let{from:P,to:y}=v;return P&&y?`${dateFns.format(P,n)} - ${dateFns.format(y,n)}`:P?dateFns.format(P,n):r};return jsxRuntime.jsxs(Ne,{open:f,onOpenChange:p,children:[jsxRuntime.jsx(Se,{asChild:true,children:jsxRuntime.jsxs(G,{ref:c,variant:"bordered",disabled:i,className:o("w-full justify-start text-left font-normal",!x?.from&&"text-muted-foreground",m),children:[jsxRuntime.jsx(lucideReact.Calendar,{className:"mr-2 h-4 w-4"}),b(x)]})}),jsxRuntime.jsx(xe,{className:"w-auto p-0",align:u,children:jsxRuntime.jsx(Or,{mode:"range",defaultMonth:x?.from,selected:x,onSelect:w,numberOfMonths:d,disabled:v=>!!(s&&v<s||l&&v>l),initialFocus:true})})]})});tg.displayName="DateRangePicker";var ao=e=>String(e).padStart(2,"0"),ag=K__namespace.forwardRef(({value:e,onValueChange:t,placeholder:a="Pick a time",use24Hour:r=true,minuteStep:n=1,disabled:i=false,className:s},l)=>{let[d,m]=K__namespace.useState(false),u=r?Array.from({length:24},(b,v)=>v):Array.from({length:12},(b,v)=>v+1),c=Array.from({length:Math.floor(60/n)},(b,v)=>v*n),f=b=>{if(!b)return a;if(r)return `${ao(b.hours)}:${ao(b.minutes)}`;let v=b.hours%12||12,P=b.hours>=12?"PM":"AM";return `${ao(v)}:${ao(b.minutes)} ${P}`},p=b=>{let v=e?.minutes??0,P=b;if(!r&&e){let y=e.hours>=12;y&&b!==12?P=b+12:!y&&b===12&&(P=0);}t?.({hours:P,minutes:v});},h=b=>{let v=e?.hours??0;t?.({hours:v,minutes:b});},R=b=>{if(!e)return;let v=e.hours;b==="AM"&&e.hours>=12?v=e.hours-12:b==="PM"&&e.hours<12&&(v=e.hours+12),t?.({hours:v,minutes:e.minutes});},g=()=>{let b=new Date;t?.({hours:b.getHours(),minutes:b.getMinutes()});},x=e?e.hours>=12?"PM":"AM":void 0,w=e?r?e.hours:e.hours%12||12:void 0;return jsxRuntime.jsxs(Ne,{open:d,onOpenChange:m,children:[jsxRuntime.jsx(Se,{asChild:true,children:jsxRuntime.jsxs(G,{ref:l,variant:"bordered",disabled:i,className:o("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"}),f(e)]})}),jsxRuntime.jsxs(xe,{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(ze,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"flex flex-col p-1",children:u.map(b=>jsxRuntime.jsx(G,{variant:w===b?"solid":"ghost",size:"sm",className:"h-8 w-12 justify-center",onClick:()=>p(b),children:ao(b)},b))})})]}),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(ze,{className:"h-[200px]",children:jsxRuntime.jsx("div",{className:"flex flex-col p-1",children:c.map(b=>jsxRuntime.jsx(G,{variant:e?.minutes===b?"solid":"ghost",size:"sm",className:"h-8 w-12 justify-center",onClick:()=>h(b),children:ao(b)},b))})})]}),!r&&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(G,{variant:x==="AM"?"solid":"ghost",size:"sm",className:"h-8 w-12",onClick:()=>R("AM"),children:"AM"}),jsxRuntime.jsx(G,{variant:x==="PM"?"solid":"ghost",size:"sm",className:"h-8 w-12",onClick:()=>R("PM"),children:"PM"})]})]})]}),jsxRuntime.jsxs("div",{className:"flex justify-between border-t p-2",children:[jsxRuntime.jsx(G,{variant:"ghost",size:"sm",onClick:g,children:"Now"}),jsxRuntime.jsx(G,{size:"sm",onClick:()=>m(false),children:"Done"})]})]})]})});ag.displayName="TimePicker";var rg=classVarianceAuthority.cva("overflow-auto",{variants:{variant:{default:"",bordered:"border rounded-lg",cards:""}},defaultVariants:{variant:"default"}});function jN({className:e,variant:t,items:a,itemHeight:r,height:n,overscan:i=3,renderItem:s,getItemKey:l,gap:d=0,onScrollChange:m,...u},c){let f=K__namespace.useRef(null),[p,h]=K__namespace.useState(0);K__namespace.useImperativeHandle(c,()=>f.current);let R=a.length*(r+d)-d,g=r+d,x=Math.max(0,Math.floor(p/g)-i),w=Math.ceil(n/g)+2*i,b=Math.min(a.length-1,x+w),v=y=>{let C=y.currentTarget.scrollTop;h(C),m?.(C);},P=K__namespace.useMemo(()=>{let y=[];for(let C=x;C<=b;C++)a[C]!==void 0&&y.push({item:a[C],index:C,style:{position:"absolute",top:C*g,left:0,right:0,height:r}});return y},[a,x,b,g,r]);return jsxRuntime.jsx("div",{ref:f,className:o(rg({variant:t,className:e})),style:{height:n,position:"relative"},onScroll:v,...u,children:jsxRuntime.jsx("div",{style:{height:R,position:"relative"},children:P.map(({item:y,index:C,style:M})=>jsxRuntime.jsx("div",{style:M,children:s(y,C)},l?l(y,C):C))})})}var XN=K__namespace.forwardRef(jN);var ng=classVarianceAuthority.cva("",{variants:{variant:{default:"",bordered:"border rounded-lg overflow-hidden"}},defaultVariants:{variant:"default"}}),il=classVarianceAuthority.cva("flex items-center justify-center py-4",{variants:{size:{sm:"py-2",md:"py-4",lg:"py-6"}},defaultVariants:{size:"md"}}),ig=K__namespace.forwardRef(({className:e,variant:t,size:a,children:r,onLoadMore:n,hasMore:i,isLoading:s=false,loader:l,threshold:d=100,rootMargin:m,useWindow:u=false,endMessage:c,...f},p)=>{let h=K__namespace.useRef(null),R=K__namespace.useRef(null),g=K__namespace.useRef(false);K__namespace.useImperativeHandle(p,()=>h.current),K__namespace.useEffect(()=>{let w=R.current;if(!w)return;let b=new IntersectionObserver(v=>{let[P]=v;P.isIntersecting&&i&&!s&&!g.current&&(g.current=true,Promise.resolve(n()).finally(()=>{g.current=false;}));},{root:u?null:h.current,rootMargin:m||`${d}px`,threshold:0});return b.observe(w),()=>{b.disconnect();}},[i,s,n,d,m,u]);let x=jsxRuntime.jsx("div",{className:o(il({size:a})),children:jsxRuntime.jsx(lucideReact.Loader2,{className:"h-6 w-6 animate-spin text-muted-foreground"})});return jsxRuntime.jsxs("div",{ref:h,className:o(ng({variant:t,className:e})),...f,children:[r,jsxRuntime.jsx("div",{ref:R,className:"h-px w-full"}),s&&(l||x),!i&&!s&&c&&jsxRuntime.jsx("div",{className:o(il({size:a}),"text-muted-foreground text-sm"),children:c})]})});ig.displayName="InfiniteScroll";var jo=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(lg__namespace.Root,{ref:a,className:o(e),...t}));jo.displayName="VisuallyHidden";var QN={opaque:"bg-black/80",blur:"bg-black/50 backdrop-blur-sm",transparent:"bg-transparent"},eP={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"},cg=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"),ll=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"}}),mg=K__namespace.createContext({scrollBehavior:"inside"}),tP=()=>K__namespace.useContext(mg),ug=K__namespace.forwardRef(({open:e,onOpenChange:t,trigger:a,title:r="Modal",children:n,hideCloseButton:i=false,isDismissable:s=true,isKeyboardDismissDisabled:l=false,backdrop:d="opaque",placement:m="center",scrollBehavior:u="inside",size:c,className:f},p)=>jsxRuntime.jsx(mg.Provider,{value:{scrollBehavior:u},children:jsxRuntime.jsxs(ne__namespace.Root,{open:e,onOpenChange:t,children:[a&&jsxRuntime.jsx(ne__namespace.Trigger,{asChild:true,children:a}),jsxRuntime.jsxs(ne__namespace.Portal,{children:[jsxRuntime.jsx(ne__namespace.Overlay,{className:o(cg(),QN[d],u==="outside"&&"overflow-y-auto flex items-start justify-center py-4"),children:u==="outside"?jsxRuntime.jsxs(ne__namespace.Content,{ref:p,className:o("relative z-50 grid gap-4 border bg-background p-6 shadow-lg sm:rounded-lg dark:border-0",c==="xs"&&"w-full max-w-xs",c==="sm"&&"w-full max-w-sm",c==="md"&&"w-full max-w-md",c==="lg"&&"w-full max-w-lg",c==="xl"&&"w-full max-w-xl",c==="2xl"&&"w-full max-w-2xl",c==="3xl"&&"w-full max-w-3xl",c==="4xl"&&"w-full max-w-4xl",c==="5xl"&&"w-full max-w-5xl",c==="full"&&"w-[calc(100vw-2rem)] min-h-[calc(100vh-2rem)]",!c&&"w-full max-w-md",f),onEscapeKeyDown:l?h=>h.preventDefault():void 0,onPointerDownOutside:s?void 0:h=>h.preventDefault(),children:[jsxRuntime.jsx(jo,{children:jsxRuntime.jsx(ne__namespace.Title,{children:r})}),n,!i&&jsxRuntime.jsx(ne__namespace.Close,{asChild:true,children:jsxRuntime.jsxs(G,{variant:"light",size:"icon",radius:"full",className:"absolute right-2 top-2 h-8 w-8",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})})]}):null}),u==="inside"&&jsxRuntime.jsxs(ne__namespace.Content,{ref:p,className:o(ll({size:c}),eP[m],"dark:border-0 max-h-[calc(100vh-2rem)] !flex !flex-col overflow-hidden gap-4",f),onEscapeKeyDown:l?h=>h.preventDefault():void 0,onPointerDownOutside:s?void 0:h=>h.preventDefault(),children:[jsxRuntime.jsx(jo,{children:jsxRuntime.jsx(ne__namespace.Title,{children:r})}),n,!i&&jsxRuntime.jsx(ne__namespace.Close,{asChild:true,children:jsxRuntime.jsxs(G,{variant:"light",size:"icon",radius:"full",className:"absolute right-2 top-2 h-8 w-8",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})})]})]})]})}));ug.displayName="Modal";var aP=ne__namespace.Root,rP=ne__namespace.Trigger,pg=ne__namespace.Portal,oP=ne__namespace.Close,dl=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ne__namespace.Overlay,{ref:a,className:o(cg(),e),...t}));dl.displayName="ModalOverlay";var fg=K__namespace.forwardRef(({className:e,children:t,size:a,showCloseButton:r=true,...n},i)=>jsxRuntime.jsxs(pg,{children:[jsxRuntime.jsx(dl,{}),jsxRuntime.jsxs(ne__namespace.Content,{ref:i,className:o(ll({size:a}),e),...n,children:[t,r&&jsxRuntime.jsx(ne__namespace.Close,{asChild:true,children:jsxRuntime.jsxs(G,{variant:"light",size:"icon",radius:"full",className:"absolute right-2 top-2 h-8 w-8",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})})]})]}));fg.displayName="ModalContent";var gg=({className:e,...t})=>jsxRuntime.jsx("div",{className:o("flex-shrink-0 flex flex-col space-y-1.5 text-center sm:text-left",e),...t});gg.displayName="ModalHeader";var bg=({className:e,children:t})=>{let{scrollBehavior:a}=tP();return a==="inside"?jsxRuntime.jsx(ze,{className:o("flex-1 min-h-0 -mx-6 px-6",e),children:t}):jsxRuntime.jsx("div",{className:o(e),children:t})};bg.displayName="ModalBody";var vg=({className:e,children:t,...a})=>jsxRuntime.jsx("div",{className:o("flex-shrink-0 flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...a,children:K__namespace.Children.map(t,r=>K__namespace.isValidElement(r)?jsxRuntime.jsx(ne__namespace.Close,{asChild:true,children:r}):r)});vg.displayName="ModalFooter";var hg=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ne__namespace.Title,{ref:a,className:o("text-lg font-semibold leading-none tracking-tight",e),...t}));hg.displayName="ModalTitle";var xg=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx(ne__namespace.Description,{ref:a,className:o("text-sm text-muted-foreground",e),...t}));xg.displayName="ModalDescription";var Rg=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"}}),cP=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"}}),mP={default:lucideReact.HelpCircle,danger:lucideReact.XCircle,warning:lucideReact.AlertTriangle,success:lucideReact.CheckCircle,info:lucideReact.Info},cl=K__namespace.forwardRef(({open:e,onOpenChange:t,trigger:a,title:r,description:n,confirmText:i="Confirm",cancelText:s="Cancel",onConfirm:l,onCancel:d,showIcon:m=true,icon:u,variant:c="default",loading:f=false,disabled:p=false,className:h},R)=>{let[g,x]=K__namespace.useState(false),w=mP[c||"default"],b=async()=>{if(l){let y=l();if(y instanceof Promise){x(true);try{await y;}finally{x(false);}}}},v=()=>{d?.();},P=f||g;return jsxRuntime.jsxs(ke__namespace.Root,{open:e,onOpenChange:t,children:[a&&jsxRuntime.jsx(ke__namespace.Trigger,{asChild:true,children:a}),jsxRuntime.jsxs(ke__namespace.Portal,{children:[jsxRuntime.jsx(ke__namespace.Overlay,{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"}),jsxRuntime.jsxs(ke__namespace.Content,{ref:R,className:o("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",h),children:[jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-4 sm:flex-row sm:items-start",children:[m&&jsxRuntime.jsx("div",{className:o(Rg({variant:c})),children:u||jsxRuntime.jsx(w,{className:"h-6 w-6"})}),jsxRuntime.jsxs("div",{className:"flex flex-col space-y-2 text-center sm:text-left",children:[jsxRuntime.jsx(ke__namespace.Title,{className:"text-lg font-semibold",children:r}),n&&jsxRuntime.jsx(ke__namespace.Description,{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(ke__namespace.Cancel,{className:o(Jt({variant:"bordered"})),onClick:v,disabled:P,children:s}),jsxRuntime.jsx(ke__namespace.Action,{className:o(Jt(),cP({variant:c}),P&&"opacity-50 cursor-not-allowed"),onClick:b,disabled:p||P,children:P?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..."]}):i})]})]})]})]})});cl.displayName="ConfirmDialog";function uP(){let[e,t]=K__namespace.useState({open:false,options:null,resolve:null}),a=K__namespace.useCallback(l=>new Promise(d=>{t({open:true,options:l,resolve:d});}),[]),r=K__namespace.useCallback(()=>{e.resolve?.(true),t({open:false,options:null,resolve:null});},[e.resolve]),n=K__namespace.useCallback(()=>{e.resolve?.(false),t({open:false,options:null,resolve:null});},[e.resolve]),i=K__namespace.useCallback(l=>{l||(e.resolve?.(false),t({open:false,options:null,resolve:null}));},[e.resolve]),s=K__namespace.useMemo(()=>e.options?jsxRuntime.jsx(cl,{open:e.open,onOpenChange:i,title:e.options.title,description:e.options.description,confirmText:e.options.confirmText,cancelText:e.options.cancelText,variant:e.options.variant,onConfirm:r,onCancel:n}):null,[e,r,n,i]);return {confirm:a,ConfirmDialog:s}}var wP=e=>e.map(t=>typeof t=="string"?{src:t}:t),ul=K__namespace.forwardRef(({images:e,open:t,onOpenChange:a,initialIndex:r=0,onIndexChange:n,trigger:i,showThumbnails:s=true,showZoom:l=true,showRotate:d=true,showDownload:m=true,showFullscreen:u=true,showNavigation:c=true,showCounter:f=true,closeOnBackdropClick:p=true,className:h},R)=>{let g=K__namespace.useMemo(()=>wP(e),[e]),[x,w]=K__namespace.useState(r),[b,v]=K__namespace.useState(1),[P,y]=K__namespace.useState(0),[C,M]=K__namespace.useState(false),[T,N]=K__namespace.useState(false),[S,k]=K__namespace.useState({x:0,y:0}),[V,E]=K__namespace.useState({x:0,y:0}),L=K__namespace.useRef(null),D=g[x];K__namespace.useEffect(()=>{w(r);},[r]),K__namespace.useEffect(()=>{n?.(x);},[x,n]),K__namespace.useEffect(()=>{v(1),y(0),k({x:0,y:0});},[x]);let I=K__namespace.useCallback(()=>{w(F=>F>0?F-1:g.length-1);},[g.length]),z=K__namespace.useCallback(()=>{w(F=>F<g.length-1?F+1:0);},[g.length]),W=()=>{v(F=>Math.min(F+.5,4));},H=()=>{v(F=>{let oe=Math.max(F-.5,.5);return oe===1&&k({x:0,y:0}),oe});},j=()=>{y(F=>(F+90)%360);},$=async()=>{if(D)try{let oe=await(await fetch(D.src)).blob(),ee=URL.createObjectURL(oe),at=document.createElement("a");at.href=ee,at.download=D.alt||`image-${x+1}`,document.body.appendChild(at),at.click(),document.body.removeChild(at),URL.revokeObjectURL(ee);}catch{window.open(D.src,"_blank");}},Le=async()=>{if(L.current)if(C)try{await document.exitFullscreen(),M(!1);}catch{}else try{await L.current.requestFullscreen(),M(!0);}catch{}},ve=F=>{b>1&&(N(true),E({x:F.clientX-S.x,y:F.clientY-S.y}));},A=F=>{T&&b>1&&k({x:F.clientX-V.x,y:F.clientY-V.y});},B=()=>{N(false);},te=K__namespace.useCallback(F=>{switch(F.key){case "ArrowLeft":I();break;case "ArrowRight":z();break;case "Escape":a?.(false);break;case "+":case "=":W();break;case "-":H();break}},[I,z,a]);return K__namespace.useEffect(()=>{if(t)return window.addEventListener("keydown",te),()=>window.removeEventListener("keydown",te)},[t,te]),K__namespace.useEffect(()=>{let F=()=>{M(!!document.fullscreenElement);};return document.addEventListener("fullscreenchange",F),()=>document.removeEventListener("fullscreenchange",F)},[]),g.length===0?null:jsxRuntime.jsxs(ne__namespace.Root,{open:t,onOpenChange:a,children:[i&&jsxRuntime.jsx(ne__namespace.Trigger,{asChild:true,children:i}),jsxRuntime.jsxs(ne__namespace.Portal,{children:[jsxRuntime.jsx(ne__namespace.Overlay,{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",onClick:p?void 0:F=>F.stopPropagation()}),jsxRuntime.jsxs(ne__namespace.Content,{ref:R,className:o("fixed inset-0 z-50 flex flex-col outline-none",h),onPointerDownOutside:p?void 0:F=>F.preventDefault(),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:[f&&g.length>1&&jsxRuntime.jsxs("span",{className:"text-sm",children:[x+1," / ",g.length]}),D?.title&&jsxRuntime.jsx("span",{className:"ml-4 text-sm font-medium",children:D.title})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[l&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:H,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(b*100),"%"]}),jsxRuntime.jsx("button",{onClick:W,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:"Zoom in",children:jsxRuntime.jsx(lucideReact.ZoomIn,{className:"h-5 w-5"})})]}),d&&jsxRuntime.jsx("button",{onClick:j,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:"Rotate",children:jsxRuntime.jsx(lucideReact.RotateCw,{className:"h-5 w-5"})}),m&&jsxRuntime.jsx("button",{onClick:$,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:"Download",children:jsxRuntime.jsx(lucideReact.Download,{className:"h-5 w-5"})}),u&&jsxRuntime.jsx("button",{onClick:Le,className:"rounded-full p-2 hover:bg-white/10 transition-colors",title:C?"Exit fullscreen":"Fullscreen",children:C?jsxRuntime.jsx(lucideReact.Minimize2,{className:"h-5 w-5"}):jsxRuntime.jsx(lucideReact.Maximize2,{className:"h-5 w-5"})}),jsxRuntime.jsxs(ne__namespace.Close,{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:L,className:"relative flex-1 flex items-center justify-center overflow-hidden",onMouseDown:ve,onMouseMove:A,onMouseUp:B,onMouseLeave:B,children:[c&&g.length>1&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:I,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:z,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:D?.src,alt:D?.alt||"",className:o("max-h-full max-w-full object-contain transition-transform duration-200",T?"cursor-grabbing":b>1?"cursor-grab":""),style:{transform:`translate(${S.x}px, ${S.y}px) scale(${b}) rotate(${P}deg)`},draggable:false})]}),D?.description&&jsxRuntime.jsx("div",{className:"p-4 text-center text-white text-sm",children:D.description}),s&&g.length>1&&jsxRuntime.jsx("div",{className:"flex justify-center gap-2 p-4 overflow-x-auto",children:g.map((F,oe)=>jsxRuntime.jsx("button",{onClick:()=>w(oe),className:o("h-16 w-16 flex-shrink-0 overflow-hidden rounded border-2 transition-all",x===oe?"border-white opacity-100":"border-transparent opacity-50 hover:opacity-75"),children:jsxRuntime.jsx("img",{src:F.src,alt:F.alt||`Thumbnail ${oe+1}`,className:"h-full w-full object-cover"})},oe))})]})]})]})});ul.displayName="ImageViewer";var wg=({children:e,images:t,index:a=0,className:r})=>{let[n,i]=K__namespace.useState(false);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{onClick:()=>i(true),className:o("cursor-zoom-in",r),children:e}),jsxRuntime.jsx(ul,{images:t,open:n,onOpenChange:i,initialIndex:a})]})};wg.displayName="ImageViewerTrigger";var Cg=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:{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-6 w-6",md:"h-8 w-8",lg:"h-10 w-10"}},defaultVariants:{variant:"default",size:"md"}}),Sg=K__namespace.forwardRef(({className:e,variant:t,size:a,iconSize:r,...n},i)=>{let l=r??{sm:14,md:16,lg:20}[a??"md"];return jsxRuntime.jsx("button",{ref:i,type:"button",className:o(Cg({variant:t,size:a}),e),"aria-label":"Close",...n,children:jsxRuntime.jsx(lucideReact.X,{style:{width:l,height:l}})})});Sg.displayName="CloseButton";var Mg=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"}}),kg=K__namespace.forwardRef(({className:e,variant:t,size:a,color:r,radius:n,loading:i,disabled:s,children:l,...d},m)=>jsxRuntime.jsx("button",{ref:m,type:"button",className:o(Mg({variant:t,size:a,color:r,radius:n}),e),disabled:s||i,...d,children:i?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}));kg.displayName="ActionIcon";var Lg=({children:e,container:t,disabled:a=false})=>{let[r,n]=K__namespace.useState(false);if(K__namespace.useEffect(()=>{n(true);},[]),a||!r)return jsxRuntime.jsx(jsxRuntime.Fragment,{children:e});let i=null;return typeof t=="string"?i=document.querySelector(t):t instanceof Element?i=t:i=document.body,i?reactDom.createPortal(e,i):jsxRuntime.jsx(jsxRuntime.Fragment,{children:e})};Lg.displayName="Portal";var Ig=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}}),Eg=K__namespace.forwardRef(({className:e,color:t,size:a,position:r,ping:n,content:i,show:s=true,offset:l,style:d,...m},u)=>{if(!s)return null;let c=i!=null;return jsxRuntime.jsxs("span",{ref:u,className:o(Ig({color:t,size:c?void 0:a,position:r,ping:n}),c&&"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:{...d,...l!==void 0&&{transform:`translate(${r?.includes("right")?l:-l}px, ${r?.includes("top")?-l:l}px)`}},...m,children:[n&&jsxRuntime.jsx("span",{className:o("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")}),i]})});Eg.displayName="Indicator";var Hg=K__namespace.forwardRef(({className:e,children:t,...a},r)=>jsxRuntime.jsx("div",{ref:r,className:o("relative inline-flex",e),...a,children:t}));Hg.displayName="IndicatorWrapper";var zg=classVarianceAuthority.cva("relative overflow-auto",{variants:{orientation:{vertical:"",horizontal:"",both:""},size:{sm:"",md:"",lg:""}},defaultVariants:{orientation:"vertical",size:"md"}}),Bg=K__namespace.forwardRef(({className:e,orientation:t,size:a,hideScrollbar:r=false,shadowColor:n="rgba(0, 0, 0, 0.1)",children:i,...s},l)=>{let d=K__namespace.useRef(null),[m,u]=K__namespace.useState({top:false,bottom:false,left:false,right:false});K__namespace.useImperativeHandle(l,()=>d.current);let c=K__namespace.useCallback(()=>{let x=d.current;if(!x)return;let{scrollTop:w,scrollLeft:b,scrollHeight:v,scrollWidth:P,clientHeight:y,clientWidth:C}=x;u({top:w>0,bottom:w<v-y-1,left:b>0,right:b<P-C-1});},[]);K__namespace.useEffect(()=>{let x=d.current;if(x)return c(),x.addEventListener("scroll",c),window.addEventListener("resize",c),()=>{x.removeEventListener("scroll",c),window.removeEventListener("resize",c);}},[c]);let p={sm:"20px",md:"40px",lg:"60px"}[a??"md"],h=t==="vertical"||t==="both",R=t==="horizontal"||t==="both",g={maskImage:[h&&m.top&&`linear-gradient(to bottom, transparent, black ${p})`,h&&m.bottom&&`linear-gradient(to top, transparent, black ${p})`,R&&m.left&&`linear-gradient(to right, transparent, black ${p})`,R&&m.right&&`linear-gradient(to left, transparent, black ${p})`].filter(Boolean).join(", ")||void 0,maskComposite:"intersect",WebkitMaskComposite:"source-in"};return jsxRuntime.jsx("div",{ref:d,className:o(zg({orientation:t,size:a}),r&&"scrollbar-hide [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]",e),style:g,...s,children:i})});Bg.displayName="ScrollShadow";var Fg=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"}}),IP={cmd:"\u2318",command:"\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"},EP=e=>{let t=e.toLowerCase();return IP[t]||e.toUpperCase()},Og=K__namespace.forwardRef(({className:e,variant:t,size:a,keys:r,children:n,...i},s)=>{let l=()=>r?(Array.isArray(r)?r:[r]).map((m,u)=>jsxRuntime.jsxs(K__namespace.Fragment,{children:[u>0&&jsxRuntime.jsx("span",{className:"mx-0.5 text-muted-foreground",children:"+"}),jsxRuntime.jsx("span",{children:EP(m)})]},u)):n;return jsxRuntime.jsx("kbd",{ref:s,className:o(Fg({variant:t,size:a}),e),...i,children:l()})});Og.displayName="Kbd";var Wg=K__namespace.forwardRef(({className:e,size:t,axis:a="both",style:r,...n},i)=>{let s=typeof t=="number"?`${t}px`:t,l={...r,...t?{width:a==="vertical"?void 0:s,height:a==="horizontal"?void 0:s,minWidth:a==="vertical"?void 0:s,minHeight:a==="horizontal"?void 0:s,flexShrink:0}:{flex:"1 1 auto"}};return jsxRuntime.jsx("div",{ref:i,"aria-hidden":"true",className:o(e),style:l,...n})});Wg.displayName="Spacer";var $g=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"}}),_g=K__namespace.forwardRef(({className:e,variant:t,size:a,value:r,successDuration:n=2e3,onCopySuccess:i,onCopyError:s,copyIcon:l,successIcon:d,...m},u)=>{let[c,f]=K__namespace.useState(false),p={sm:14,md:16,lg:20}[a??"md"],h=async()=>{try{await navigator.clipboard.writeText(r),f(!0),i?.(),setTimeout(()=>{f(!1);},n);}catch(R){s?.(R);}};return jsxRuntime.jsx("button",{ref:u,type:"button",className:o($g({variant:t,size:a}),e),onClick:h,"aria-label":c?"Copied":"Copy to clipboard",...m,children:c?d??jsxRuntime.jsx(lucideReact.Check,{className:"text-success",style:{width:p,height:p}}):l??jsxRuntime.jsx(lucideReact.Copy,{style:{width:p,height:p}})})});_g.displayName="CopyButton";var Ug=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"}}),$P=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],_P=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];function KP(e,t,a){let r=new Date(e,t,1),n=new Date(e,t+1,0),i=[],s=r.getDay()-a;s<0&&(s+=7);for(let d=s-1;d>=0;d--)i.push(new Date(e,t,-d));for(let d=1;d<=n.getDate();d++)i.push(new Date(e,t,d));let l=42-i.length;for(let d=1;d<=l;d++)i.push(new Date(e,t+1,d));return i}function UP(e,t){let a=[],n=e.getDay()-t;n<0&&(n+=7);let i=new Date(e);i.setDate(e.getDate()-n);for(let s=0;s<7;s++){let l=new Date(i);l.setDate(i.getDate()+s),a.push(l);}return a}function fi(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function pi(e){return fi(e,new Date)}function Kg(e,t){return e.filter(a=>{let r=new Date(a.start),n=new Date(a.end);return fi(r,t)||fi(n,t)||r<t&&n>t})}var Yg=K__namespace.forwardRef(({className:e,variant:t,size:a,events:r=[],view:n="month",onViewChange:i,date:s,onDateChange:l,onEventClick:d,onSlotClick:m,weekStartsOn:u=0,locale:c="en-US",...f},p)=>{let[h,R]=K__namespace.useState(new Date),g=s??h,x=N=>{l?l(N):R(N);},w=u===1?_P:$P,b=()=>{let N=new Date(g);n==="month"?N.setMonth(N.getMonth()-1):n==="week"?N.setDate(N.getDate()-7):N.setDate(N.getDate()-1),x(N);},v=()=>{let N=new Date(g);n==="month"?N.setMonth(N.getMonth()+1):n==="week"?N.setDate(N.getDate()+7):N.setDate(N.getDate()+1),x(N);},P=()=>{x(new Date);},y=()=>n==="day"?g.toLocaleDateString(c,{weekday:"long",year:"numeric",month:"long",day:"numeric"}):g.toLocaleDateString(c,{year:"numeric",month:"long"}),C=()=>{let N=KP(g.getFullYear(),g.getMonth(),u);return jsxRuntime.jsxs("div",{className:"flex-1 flex flex-col",children:[jsxRuntime.jsx("div",{className:"grid grid-cols-7 border-b",children:w.map(S=>jsxRuntime.jsx("div",{className:"p-2 text-center font-medium text-muted-foreground",children:S},S))}),jsxRuntime.jsx("div",{className:"flex-1 grid grid-cols-7 grid-rows-6",children:N.map((S,k)=>{let V=Kg(r,S),E=S.getMonth()===g.getMonth();return jsxRuntime.jsxs("div",{className:o("min-h-[80px] border-b border-r p-1 cursor-pointer hover:bg-accent/50 transition-colors",!E&&"bg-muted/30"),onClick:()=>m?.(S),children:[jsxRuntime.jsx("div",{className:o("flex items-center justify-center w-7 h-7 rounded-full text-sm mb-1",pi(S)&&"bg-primary text-primary-foreground",!E&&"text-muted-foreground"),children:S.getDate()}),jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[V.slice(0,3).map(L=>jsxRuntime.jsx("div",{className:"text-xs px-1 py-0.5 rounded truncate cursor-pointer hover:opacity-80",style:{backgroundColor:L.color||"hsl(var(--primary))",color:"white"},onClick:D=>{D.stopPropagation(),d?.(L);},children:L.title},L.id)),V.length>3&&jsxRuntime.jsxs("div",{className:"text-xs text-muted-foreground px-1",children:["+",V.length-3," more"]})]})]},k)})})]})},M=()=>{let N=UP(g,u),S=Array.from({length:24},(k,V)=>V);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"}),N.map((k,V)=>jsxRuntime.jsxs("div",{className:o("p-2 text-center border-l",pi(k)&&"bg-primary/10"),children:[jsxRuntime.jsx("div",{className:"text-xs text-muted-foreground",children:w[V]}),jsxRuntime.jsx("div",{className:o("text-lg font-semibold",pi(k)&&"text-primary"),children:k.getDate()})]},V))]}),jsxRuntime.jsx("div",{className:"flex-1 overflow-auto",children:jsxRuntime.jsx("div",{className:"grid grid-cols-[60px_repeat(7,1fr)]",children:S.map(k=>jsxRuntime.jsxs(K__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"]}),N.map((V,E)=>{let L=new Date(V);L.setHours(k,0,0,0);let D=r.filter(I=>{let z=new Date(I.start);return fi(z,V)&&z.getHours()===k});return jsxRuntime.jsx("div",{className:"h-12 border-b border-l cursor-pointer hover:bg-accent/50 relative",onClick:()=>m?.(L),children:D.map(I=>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:I.color||"hsl(var(--primary))",color:"white"},onClick:z=>{z.stopPropagation(),d?.(I);},children:I.title},I.id))},E)})]},k))})})]})},T=()=>{let N=Array.from({length:24},(k,V)=>V),S=Kg(r,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:o("inline-flex items-center justify-center w-12 h-12 rounded-full text-2xl font-semibold",pi(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:N.map(k=>{let V=new Date(g);V.setHours(k,0,0,0);let E=S.filter(L=>new Date(L.start).getHours()===k);return jsxRuntime.jsxs(K__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:()=>m?.(V),children:E.map(L=>jsxRuntime.jsx("div",{className:"absolute inset-x-1 top-0.5 text-xs px-2 py-1 rounded truncate cursor-pointer",style:{backgroundColor:L.color||"hsl(var(--primary))",color:"white"},onClick:D=>{D.stopPropagation(),d?.(L);},children:L.title},L.id))})]},k)})})})]})};return jsxRuntime.jsxs("div",{ref:p,className:o(Ug({variant:t,size:a,className:e})),...f,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(G,{variant:"bordered",size:"sm",onClick:P,children:"Today"}),jsxRuntime.jsx(G,{variant:"ghost",size:"icon",onClick:b,children:jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"})}),jsxRuntime.jsx(G,{variant:"ghost",size:"icon",onClick:v,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(N=>jsxRuntime.jsx(G,{variant:n===N?"solid":"ghost",size:"sm",onClick:()=>i?.(N),children:N.charAt(0).toUpperCase()+N.slice(1)},N))})]}),n==="month"&&C(),n==="week"&&M(),n==="day"&&T()]})});Yg.displayName="FullCalendar";var qo=classVarianceAuthority.cva("w-full",{variants:{size:{sm:"h-48",md:"h-64",lg:"h-96"}},defaultVariants:{size:"md"}}),Zo=["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%))"],jg=K__namespace.forwardRef(({className:e,size:t,data:a,dataKeys:r,colors:n=Zo,showGrid:i=true,showLegend:s=true,showTooltip:l=true,xAxisKey:d="name",curveType:m="monotone",...u},c)=>jsxRuntime.jsx("div",{ref:c,className:o(qo({size:t,className:e})),...u,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.LineChart,{data:a,children:[i&&jsxRuntime.jsx(recharts.CartesianGrid,{strokeDasharray:"3 3",className:"stroke-muted"}),jsxRuntime.jsx(recharts.XAxis,{dataKey:d,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,{}),r.map((f,p)=>jsxRuntime.jsx(recharts.Line,{type:m,dataKey:f,stroke:n[p%n.length],strokeWidth:2,dot:{fill:n[p%n.length],strokeWidth:0},activeDot:{r:6}},f))]})})}));jg.displayName="LineChart";var Xg=K__namespace.forwardRef(({className:e,size:t,data:a,dataKeys:r,colors:n=Zo,showGrid:i=true,showLegend:s=true,showTooltip:l=true,xAxisKey:d="name",stacked:m=false,layout:u="horizontal",...c},f)=>jsxRuntime.jsx("div",{ref:f,className:o(qo({size:t,className:e})),...c,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.BarChart,{data:a,layout:u,children:[i&&jsxRuntime.jsx(recharts.CartesianGrid,{strokeDasharray:"3 3",className:"stroke-muted"}),jsxRuntime.jsx(recharts.XAxis,{dataKey:u==="horizontal"?d:void 0,type:u==="horizontal"?"category":"number",className:"text-xs fill-muted-foreground",tickLine:false,axisLine:false}),jsxRuntime.jsx(recharts.YAxis,{dataKey:u==="vertical"?d:void 0,type:u==="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,{}),r.map((p,h)=>jsxRuntime.jsx(recharts.Bar,{dataKey:p,fill:n[h%n.length],stackId:m?"stack":void 0,radius:[4,4,0,0]},p))]})})}));Xg.displayName="BarChart";var qg=K__namespace.forwardRef(({className:e,size:t,data:a,dataKey:r="value",nameKey:n="name",colors:i=Zo,innerRadius:s=0,outerRadius:l=80,showLegend:d=true,showTooltip:m=true,showLabels:u=false,...c},f)=>jsxRuntime.jsx("div",{ref:f,className:o(qo({size:t,className:e})),...c,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.PieChart,{children:[m&&jsxRuntime.jsx(recharts.Tooltip,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))",borderRadius:"var(--radius)"}}),d&&jsxRuntime.jsx(recharts.Legend,{}),jsxRuntime.jsx(recharts.Pie,{data:a,dataKey:r,nameKey:n,cx:"50%",cy:"50%",innerRadius:s,outerRadius:l,label:u,labelLine:u,children:a.map((p,h)=>jsxRuntime.jsx(recharts.Cell,{fill:i[h%i.length]},`cell-${h}`))})]})})}));qg.displayName="PieChart";var Zg=K__namespace.forwardRef(({className:e,size:t,data:a,dataKeys:r,colors:n=Zo,showGrid:i=true,showLegend:s=true,showTooltip:l=true,xAxisKey:d="name",stacked:m=false,curveType:u="monotone",...c},f)=>jsxRuntime.jsx("div",{ref:f,className:o(qo({size:t,className:e})),...c,children:jsxRuntime.jsx(recharts.ResponsiveContainer,{width:"100%",height:"100%",children:jsxRuntime.jsxs(recharts.AreaChart,{data:a,children:[i&&jsxRuntime.jsx(recharts.CartesianGrid,{strokeDasharray:"3 3",className:"stroke-muted"}),jsxRuntime.jsx(recharts.XAxis,{dataKey:d,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,{}),r.map((p,h)=>jsxRuntime.jsx(recharts.Area,{type:u,dataKey:p,stroke:n[h%n.length],fill:n[h%n.length],fillOpacity:.3,stackId:m?"stack":void 0},p))]})})}));Zg.displayName="AreaChart";var eb=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"}}),tb=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"}}),Rl=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 gC({card:e,columnId:t,variant:a,renderCard:r,onCardClick:n}){let{attributes:i,listeners:s,setNodeRef:l,transform:d,transition:m,isDragging:u}=sortable.useSortable({id:e.id,data:{columnId:t}}),c={transform:utilities.CSS.Transform.toString(d),transition:m};return jsxRuntime.jsx("div",{ref:l,style:c,className:o(Rl({variant:a,isDragging:u})),onClick:()=>n?.(e,t),...i,...s,children:r?r(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 bC({column:e,variant:t,renderCard:a,onCardClick:r,onAddCard:n,showAddCard:i,columnHeight:s}){return jsxRuntime.jsxs("div",{className:o(tb({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})]}),i&&jsxRuntime.jsx(G,{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(ze,{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(gC,{card:l,columnId:e.id,variant:t,renderCard:a,onCardClick:r},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 ab=K__namespace.forwardRef(({className:e,variant:t,columns:a,onCardMove:r,onCardClick:n,onAddCard:i,renderCard:s,showAddCard:l=true,columnHeight:d=500,...m},u)=>{let[c,f]=K__namespace.useState(null),[p,h]=K__namespace.useState(null),R=core.useSensors(core.useSensor(core.PointerSensor,{activationConstraint:{distance:8}}),core.useSensor(core.KeyboardSensor,{coordinateGetter:sortable.sortableKeyboardCoordinates})),g=v=>a.find(P=>P.cards.some(y=>y.id===v));return jsxRuntime.jsxs(core.DndContext,{sensors:R,collisionDetection:core.closestCorners,onDragStart:v=>{let{active:P}=v,y=g(P.id);if(y){let C=y.cards.find(M=>M.id===P.id);C&&(f(C),h(y.id));}},onDragOver:v=>{let{active:P,over:y}=v;if(!y)return;let C=P.id,M=y.id,T=g(C),N=g(M)||a.find(V=>V.id===M);if(!T||!N||T.id===N.id)return;let S=N.cards.findIndex(V=>V.id===M),k=S===-1?N.cards.length:S;r?.(C,T.id,N.id,k);},onDragEnd:v=>{let{active:P,over:y}=v;if(y&&P.id!==y.id){let C=g(P.id),M=g(y.id)||a.find(T=>T.id===y.id);if(C&&M){let T=M.cards.findIndex(S=>S.id===y.id),N=T===-1?M.cards.length:T;r?.(P.id,C.id,M.id,N);}}f(null),h(null);},children:[jsxRuntime.jsx("div",{ref:u,className:o(eb({variant:t,className:e})),...m,children:a.map(v=>jsxRuntime.jsx(bC,{column:v,variant:t,renderCard:s,onCardClick:n,onAddCard:i,showAddCard:l,columnHeight:d},v.id))}),jsxRuntime.jsx(core.DragOverlay,{children:c&&p&&jsxRuntime.jsx("div",{className:o(Rl({variant:t,isDragging:true})),children:s?s(c,p):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:c.title}),c.description&&jsxRuntime.jsx("p",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:c.description})]})]})})})]})});ab.displayName="KanbanBoard";var rb=classVarianceAuthority.cva("relative",{variants:{variant:{default:"",bordered:"border rounded-lg p-4",cards:"rounded-lg"}},defaultVariants:{variant:"default"}}),ob=K__namespace.createContext(null);function wl(){let e=K__namespace.useContext(ob);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var nb=K__namespace.forwardRef(({className:e,variant:t,children:a,opts:r,plugins:n,orientation:i="horizontal",showArrows:s=true,showDots:l=true,setApi:d,...m},u)=>{let[c,f]=vC__default.default({...r,axis:i==="horizontal"?"x":"y"},n),[p,h]=K__namespace.useState(false),[R,g]=K__namespace.useState(false),[x,w]=K__namespace.useState(0),[b,v]=K__namespace.useState([]),P=K__namespace.useCallback(N=>{N&&(w(N.selectedScrollSnap()),h(N.canScrollPrev()),g(N.canScrollNext()));},[]),y=K__namespace.useCallback(()=>{f?.scrollPrev();},[f]),C=K__namespace.useCallback(()=>{f?.scrollNext();},[f]),M=K__namespace.useCallback(N=>{f?.scrollTo(N);},[f]),T=K__namespace.useCallback(N=>{N.key==="ArrowLeft"?(N.preventDefault(),y()):N.key==="ArrowRight"&&(N.preventDefault(),C());},[y,C]);return K__namespace.useEffect(()=>{!f||!d||d(f);},[f,d]),K__namespace.useEffect(()=>{if(f)return v(f.scrollSnapList()),P(f),f.on("reInit",P),f.on("select",P),()=>{f?.off("select",P);}},[f,P]),jsxRuntime.jsx(ob.Provider,{value:{carouselRef:c,api:f,scrollPrev:y,scrollNext:C,canScrollPrev:p,canScrollNext:R,selectedIndex:x,scrollSnaps:b,scrollTo:M},children:jsxRuntime.jsxs("div",{ref:u,className:o(rb({variant:t,className:e})),onKeyDownCapture:T,role:"region","aria-roledescription":"carousel",...m,children:[jsxRuntime.jsx("div",{ref:c,className:"overflow-hidden",children:jsxRuntime.jsx("div",{className:o("flex",i==="horizontal"?"-ml-4":"-mt-4 flex-col"),children:a})}),s&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Nl,{}),jsxRuntime.jsx(Pl,{})]}),l&&b.length>1&&jsxRuntime.jsx("div",{className:"flex justify-center gap-1.5 mt-4",children:b.map((N,S)=>jsxRuntime.jsx("button",{className:o("w-2 h-2 rounded-full transition-all",S===x?"bg-primary w-4":"bg-muted-foreground/30 hover:bg-muted-foreground/50"),onClick:()=>M(S),"aria-label":`Go to slide ${S+1}`},S))})]})})});nb.displayName="Carousel";var ib=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex",e),...t}));ib.displayName="CarouselContent";var sb=K__namespace.forwardRef(({className:e,basis:t="basis-full",...a},r)=>jsxRuntime.jsx("div",{ref:r,role:"group","aria-roledescription":"slide",className:o("min-w-0 shrink-0 grow-0 pl-4",t,e),...a}));sb.displayName="CarouselItem";var Nl=K__namespace.forwardRef(({className:e,variant:t="bordered",size:a="icon",...r},n)=>{let{scrollPrev:i,canScrollPrev:s}=wl();return jsxRuntime.jsxs(G,{ref:n,variant:t,size:a,className:o("absolute left-2 top-1/2 -translate-y-1/2 h-8 w-8 rounded-full",e),disabled:!s,onClick:i,...r,children:[jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Previous slide"})]})});Nl.displayName="CarouselPrevious";var Pl=K__namespace.forwardRef(({className:e,variant:t="bordered",size:a="icon",...r},n)=>{let{scrollNext:i,canScrollNext:s}=wl();return jsxRuntime.jsxs(G,{ref:n,variant:t,size:a,className:o("absolute right-2 top-1/2 -translate-y-1/2 h-8 w-8 rounded-full",e),disabled:!s,onClick:i,...r,children:[jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Next slide"})]})});Pl.displayName="CarouselNext";var lb=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"}}),yi={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"}},Sl={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}"]},db=K__namespace.forwardRef(({className:e,size:t,onEmojiSelect:a,recentEmojis:r=[],defaultCategory:n="smileys",showSearch:i=true,showCategories:s=true,...l},d)=>{let[m,u]=K__namespace.useState(r.length>0?"recent":n),[c,f]=K__namespace.useState(""),h=c?Object.values(Sl).flat().filter(g=>g.toLowerCase().includes(c.toLowerCase())):m==="recent"?r:Sl[m]||[],R=g=>{a?.(g);};return jsxRuntime.jsxs("div",{ref:d,className:o(lb({size:t,className:e})),...l,children:[i&&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(xn,{placeholder:"Search emojis...",value:c,onChange:g=>f(g.target.value),className:"pl-8 h-8"})]})}),s&&!c&&jsxRuntime.jsx("div",{className:"flex border-b px-1",children:Object.entries(yi).map(([g,{icon:x}])=>g==="recent"&&r.length===0?null:jsxRuntime.jsx("button",{className:o("flex-1 p-2 text-lg hover:bg-accent rounded transition-colors",m===g&&"bg-accent"),onClick:()=>u(g),title:yi[g].name,children:x},g))}),!c&&jsxRuntime.jsx("div",{className:"px-3 py-1.5 text-xs font-medium text-muted-foreground",children:yi[m].name}),jsxRuntime.jsx(ze,{className:"flex-1",children:jsxRuntime.jsxs("div",{className:"grid grid-cols-8 gap-1 p-2",children:[h.map((g,x)=>jsxRuntime.jsx("button",{className:"w-8 h-8 flex items-center justify-center text-xl hover:bg-accent rounded transition-colors",onClick:()=>R(g),children:g},`${g}-${x}`)),h.length===0&&jsxRuntime.jsx("div",{className:"col-span-8 py-8 text-center text-muted-foreground text-sm",children:"No emojis found"})]})})]})});db.displayName="EmojiPicker";var cb=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"}}),XC=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"}}),qC=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"}}),De=({icon:e,title:t,isActive:a,onClick:r,disabled:n})=>jsxRuntime.jsxs(nr,{children:[jsxRuntime.jsx(ir,{asChild:true,children:jsxRuntime.jsx(G,{type:"button",variant:a?"solid":"ghost",size:"icon",className:"h-7 w-7",onClick:r,disabled:n,children:e})}),jsxRuntime.jsx(ka,{side:"top",className:"text-xs",children:t})]}),mb=K__namespace.forwardRef(({className:e,variant:t,size:a,value:r="",onChange:n,placeholder:i="Start writing...",readOnly:s=false,showToolbar:l=true,minHeight:d,maxHeight:m,onEditorReady:u,...c},f)=>{let p=react.useEditor({extensions:[SC__default.default.configure({heading:{levels:[1,2,3]}}),TC__default.default.configure({openOnClick:false,HTMLAttributes:{class:"text-primary underline"}}),MC__default.default,kC__default.default.configure({types:["heading","paragraph"]}),DC__default.default.configure({placeholder:i})],content:r,editable:!s,onUpdate:({editor:R})=>{n?.(R.getHTML());},onCreate:({editor:R})=>{u?.(R);}});K__namespace.useEffect(()=>{p&&r!==p.getHTML()&&p.commands.setContent(r);},[r,p]),K__namespace.useEffect(()=>{p&&p.setEditable(!s);},[s,p]);let h=()=>{if(!p)return;let R=p.getAttributes("link").href,g=window.prompt("URL",R);if(g!==null){if(g===""){p.chain().focus().extendMarkRange("link").unsetLink().run();return}p.chain().focus().extendMarkRange("link").setLink({href:g}).run();}};return p?jsxRuntime.jsx(or,{children:jsxRuntime.jsxs("div",{ref:f,className:o(cb({variant:t,size:a,className:e})),...c,children:[l&&!s&&jsxRuntime.jsxs("div",{className:o(XC({size:a})),children:[jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Undo,{className:"h-4 w-4"}),title:"Undo",onClick:()=>p.chain().focus().undo().run(),disabled:!p.can().undo()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Redo,{className:"h-4 w-4"}),title:"Redo",onClick:()=>p.chain().focus().redo().run(),disabled:!p.can().redo()}),jsxRuntime.jsx(Ma,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Heading1,{className:"h-4 w-4"}),title:"Heading 1",isActive:p.isActive("heading",{level:1}),onClick:()=>p.chain().focus().toggleHeading({level:1}).run()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Heading2,{className:"h-4 w-4"}),title:"Heading 2",isActive:p.isActive("heading",{level:2}),onClick:()=>p.chain().focus().toggleHeading({level:2}).run()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Heading3,{className:"h-4 w-4"}),title:"Heading 3",isActive:p.isActive("heading",{level:3}),onClick:()=>p.chain().focus().toggleHeading({level:3}).run()}),jsxRuntime.jsx(Ma,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Bold,{className:"h-4 w-4"}),title:"Bold (Ctrl+B)",isActive:p.isActive("bold"),onClick:()=>p.chain().focus().toggleBold().run()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Italic,{className:"h-4 w-4"}),title:"Italic (Ctrl+I)",isActive:p.isActive("italic"),onClick:()=>p.chain().focus().toggleItalic().run()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Underline,{className:"h-4 w-4"}),title:"Underline (Ctrl+U)",isActive:p.isActive("underline"),onClick:()=>p.chain().focus().toggleUnderline().run()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Strikethrough,{className:"h-4 w-4"}),title:"Strikethrough",isActive:p.isActive("strike"),onClick:()=>p.chain().focus().toggleStrike().run()}),jsxRuntime.jsx(Ma,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.List,{className:"h-4 w-4"}),title:"Bullet List",isActive:p.isActive("bulletList"),onClick:()=>p.chain().focus().toggleBulletList().run()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.ListOrdered,{className:"h-4 w-4"}),title:"Numbered List",isActive:p.isActive("orderedList"),onClick:()=>p.chain().focus().toggleOrderedList().run()}),jsxRuntime.jsx(Ma,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.AlignLeft,{className:"h-4 w-4"}),title:"Align Left",isActive:p.isActive({textAlign:"left"}),onClick:()=>p.chain().focus().setTextAlign("left").run()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.AlignCenter,{className:"h-4 w-4"}),title:"Align Center",isActive:p.isActive({textAlign:"center"}),onClick:()=>p.chain().focus().setTextAlign("center").run()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.AlignRight,{className:"h-4 w-4"}),title:"Align Right",isActive:p.isActive({textAlign:"right"}),onClick:()=>p.chain().focus().setTextAlign("right").run()}),jsxRuntime.jsx(Ma,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Quote,{className:"h-4 w-4"}),title:"Blockquote",isActive:p.isActive("blockquote"),onClick:()=>p.chain().focus().toggleBlockquote().run()}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Code,{className:"h-4 w-4"}),title:"Code Block",isActive:p.isActive("codeBlock"),onClick:()=>p.chain().focus().toggleCodeBlock().run()}),jsxRuntime.jsx(Ma,{orientation:"vertical",className:"h-6 mx-1"}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Link,{className:"h-4 w-4"}),title:"Insert Link",isActive:p.isActive("link"),onClick:h}),jsxRuntime.jsx(De,{icon:jsxRuntime.jsx(lucideReact.Unlink,{className:"h-4 w-4"}),title:"Remove Link",onClick:()=>p.chain().focus().unsetLink().run(),disabled:!p.isActive("link")})]}),jsxRuntime.jsx(react.EditorContent,{editor:p,className:o(qC({size:a})),style:{minHeight:d,maxHeight:m}})]})}):null});mb.displayName="RichTextEditor";var pb=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 oS(e,t,a){return ZC.centerCrop(ZC.makeAspectCrop({unit:"%",width:90},a,e,t),e,t)}async function ub(e,t,a=0,r=1){let n=document.createElement("canvas"),i=n.getContext("2d");if(!i)return null;let s=e.naturalWidth/e.width,l=e.naturalHeight/e.height,d=window.devicePixelRatio||1;n.width=Math.floor(t.width*s*d),n.height=Math.floor(t.height*l*d),i.scale(d,d),i.imageSmoothingQuality="high";let m=t.x*s,u=t.y*l,c=a*Math.PI/180,f=e.naturalWidth/2,p=e.naturalHeight/2;return i.save(),i.translate(-m,-u),i.translate(f,p),i.rotate(c),i.scale(r,r),i.translate(-f,-p),i.drawImage(e,0,0,e.naturalWidth,e.naturalHeight,0,0,e.naturalWidth,e.naturalHeight),i.restore(),new Promise(h=>{n.toBlob(R=>{h(R);},"image/png");})}var fb=K__namespace.forwardRef(({className:e,variant:t,src:a,aspectRatio:r,onCropChange:n,onCropComplete:i,showZoom:s=true,showRotation:l=true,minZoom:d=1,maxZoom:m=3,circularCrop:u=false,initialCrop:c,...f},p)=>{let h=K__namespace.useRef(null),[R,g]=K__namespace.useState(),[x,w]=K__namespace.useState(),[b,v]=K__namespace.useState(1),[P,y]=K__namespace.useState(0),C=S=>{let{width:k,height:V}=S.currentTarget;if(r){let E=oS(k,V,r);g(E);}else g(c||{unit:"%",x:10,y:10,width:80,height:80});},M=S=>{g(S),n?.(S);},T=async S=>{if(w(S),i&&h.current&&S.width&&S.height){let k=await ub(h.current,S,P,b);i(k);}},N=()=>{y(S=>(S+90)%360);};return K__namespace.useEffect(()=>{x&&h.current&&i&&ub(h.current,x,P,b).then(S=>{i(S);});},[b,P,x,i]),jsxRuntime.jsxs("div",{ref:p,className:o(pb({variant:t,className:e})),...f,children:[jsxRuntime.jsx("div",{className:"flex-1 flex items-center justify-center p-4 bg-muted/30 min-h-[300px]",children:jsxRuntime.jsx(ZC__default.default,{crop:R,onChange:M,onComplete:T,aspect:r,circularCrop:u,className:"max-h-[400px]",children:jsxRuntime.jsx("img",{ref:h,src:a,alt:"Crop preview",onLoad:C,style:{transform:`scale(${b}) rotate(${P}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(Dn,{value:[b],onValueChange:([S])=>v(S),min:d,max:m,step:.1,className:"flex-1"}),jsxRuntime.jsx(lucideReact.ZoomIn,{className:"h-4 w-4 text-muted-foreground"})]}),l&&jsxRuntime.jsx(G,{variant:"bordered",size:"icon",onClick:N,children:jsxRuntime.jsx(lucideReact.RotateCw,{className:"h-4 w-4"})})]})]})});fb.displayName="ImageCropper";var Dl=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"}}),sS={sm:96,md:128,lg:192},bb=K__namespace.forwardRef(({className:e,variant:t,size:a,value:r,qrSize:n,fgColor:i="currentColor",bgColor:s="transparent",level:l="M",includeMargin:d=false,title:m,logo:u,logoSize:c=40,logoPadding:f=4,logoBackgroundColor:p="white",...h},R)=>{let g=n??sS[a??"md"];return r?jsxRuntime.jsx("div",{ref:R,className:o(Dl({variant:t,size:a,className:e})),...h,children:jsxRuntime.jsxs("div",{className:"relative inline-block",children:[jsxRuntime.jsx(nS__default.default,{value:r,size:g,fgColor:i,bgColor:s,level:l,title:m,style:{padding:d?16:0}}),u&&jsxRuntime.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 rounded",style:{padding:f,backgroundColor:p},children:jsxRuntime.jsx("img",{src:u,alt:"Logo",style:{width:c,height:c,objectFit:"contain"}})})]})}):jsxRuntime.jsx("div",{ref:R,className:o(Dl({variant:t,size:a,className:e})),...h,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"})})});bb.displayName="QRCode";var vb=({children:e,defaultTheme:t="system",storageKey:a="reever-ui-theme",enableSystem:r=true,disableTransitionOnChange:n=false,attribute:i="class",forcedTheme:s,themes:l=["light","dark"]})=>jsxRuntime.jsx(nextThemes.ThemeProvider,{defaultTheme:t,storageKey:a,enableSystem:r,disableTransitionOnChange:n,attribute:i,forcedTheme:s,themes:l,children:e});vb.displayName="ThemeProvider";var fS=classVarianceAuthority.cva("",{variants:{variant:{default:"",bordered:"",ghost:""},size:{sm:"",md:"",lg:""}},defaultVariants:{variant:"ghost",size:"md"}}),hb=K__namespace.forwardRef(({className:e,variant:t="ghost",size:a="md",mode:r="dropdown"},n)=>{let{theme:i,setTheme:s,resolvedTheme:l}=nextThemes.useTheme(),[d,m]=K__namespace.useState(false);K__namespace.useEffect(()=>{m(true);},[]);let u=()=>{let c=["light","dark","system"],p=(c.indexOf(i||"system")+1)%c.length;s(c[p]);};return d?r==="cycle"?jsxRuntime.jsxs(G,{ref:n,variant:t==="default"?"bordered":t,size:"icon",className:o("h-9 w-9",e),onClick:u,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(sr,{children:[jsxRuntime.jsx(lr,{asChild:true,children:jsxRuntime.jsxs(G,{ref:n,variant:t==="default"?"bordered":t,size:"icon",className:o("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(Va,{align:"end",children:[jsxRuntime.jsxs(Vt,{onClick:()=>s("light"),children:[jsxRuntime.jsx(lucideReact.Sun,{className:"mr-2 h-4 w-4"}),"Light"]}),jsxRuntime.jsxs(Vt,{onClick:()=>s("dark"),children:[jsxRuntime.jsx(lucideReact.Moon,{className:"mr-2 h-4 w-4"}),"Dark"]}),jsxRuntime.jsxs(Vt,{onClick:()=>s("system"),children:[jsxRuntime.jsx(lucideReact.Monitor,{className:"mr-2 h-4 w-4"}),"System"]})]})]}):jsxRuntime.jsxs(G,{ref:n,variant:t==="default"?"bordered":t,size:"icon",className:o("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"})]})});hb.displayName="ThemeToggle";var yb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),Rb=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}}),wb=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"}}),Nb=K__namespace.forwardRef(({className:e,label:t,description:a,errorMessage:r,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,startContent:c,endContent:f,id:p,...h},R)=>{let g=K__namespace.useId(),x=p||g,w=`${x}-description`,b=`${x}-error`,v=i&&r;return jsxRuntime.jsxs("div",{className:o(yb({size:s}),e),children:[t&&jsxRuntime.jsxs(is__namespace.Root,{htmlFor:x,className:o(wb({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:[c&&jsxRuntime.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:c}),jsxRuntime.jsx("input",{ref:R,id:x,"aria-invalid":i,"aria-describedby":v?b:a?w:void 0,"aria-required":n,className:o(Rb({size:s,isInvalid:i}),c&&"pl-10",f&&"pr-10",d),...h}),f&&jsxRuntime.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:f})]}),a&&!v&&jsxRuntime.jsx("p",{id:w,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a}),v&&jsxRuntime.jsx("p",{id:b,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:r})]})});Nb.displayName="TextField";var Tb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),vS=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}}),Pb=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"}}),Cb=classVarianceAuthority.cva("",{variants:{size:{sm:"h-3 w-3",md:"h-4 w-4",lg:"h-5 w-5"}},defaultVariants:{size:"md"}}),hS=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"}}),Mb=K__namespace.forwardRef(({className:e,label:t,description:a,errorMessage:r,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,min:c,max:f,step:p=1,value:h,defaultValue:R,onChange:g,showButtons:x=true,formatOptions:w,fullWidth:b=false,disabled:v,id:P,...y},C)=>{let M=K__namespace.useId(),T=P||M,N=`${T}-description`,S=`${T}-error`,[k,V]=K__namespace.useState(R),[E,L]=K__namespace.useState(false),D=h!==void 0?h:k,I=i&&r,z=K__namespace.useCallback(B=>{B!==void 0&&(c!==void 0&&B<c&&(B=c),f!==void 0&&B>f&&(B=f)),h===void 0&&V(B),g?.(B);},[h,c,f,g]),W=()=>{let B=(D??0)+p;z(B);},H=()=>{let B=(D??0)-p;z(B);},j=B=>{let te=B.target.value;if(te==="")z(void 0);else {let F=parseFloat(te);isNaN(F)||z(F);}},$=B=>{B.key==="ArrowUp"?(B.preventDefault(),W()):B.key==="ArrowDown"&&(B.preventDefault(),H());},Le=K__namespace.useMemo(()=>D===void 0?"":w?new Intl.NumberFormat(void 0,w).format(D):D.toString(),[D,w]),ve=c!==void 0&&D!==void 0&&D<=c,A=f!==void 0&&D!==void 0&&D>=f;return jsxRuntime.jsxs("div",{className:o(Tb({size:s}),e),children:[t&&jsxRuntime.jsxs(is__namespace.Root,{htmlFor:T,className:o(hS({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:[x&&jsxRuntime.jsx("button",{type:"button",onClick:H,disabled:v||ve,className:o(Pb({size:s}),"left-1"),tabIndex:-1,"aria-label":"Decrease value",children:jsxRuntime.jsx(lucideReact.Minus,{className:o(Cb({size:s}))})}),jsxRuntime.jsx("input",{ref:C,id:T,type:"text",inputMode:"decimal",value:Le,onChange:j,onKeyDown:$,onFocus:()=>L(true),onBlur:()=>L(false),"aria-invalid":i,"aria-describedby":I?S:a?N:void 0,"aria-required":n,"aria-valuemin":c,"aria-valuemax":f,"aria-valuenow":D,disabled:v,className:o(vS({size:s,isInvalid:i,fullWidth:b}),!x&&"px-3",d),style:{borderColor:E?"var(--color-foreground)":void 0},...y}),x&&jsxRuntime.jsx("button",{type:"button",onClick:W,disabled:v||A,className:o(Pb({size:s}),"right-1"),tabIndex:-1,"aria-label":"Increase value",children:jsxRuntime.jsx(lucideReact.Plus,{className:o(Cb({size:s}))})})]}),a&&!I&&jsxRuntime.jsx("p",{id:N,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a}),I&&jsxRuntime.jsx("p",{id:S,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:r})]})});Mb.displayName="NumberField";var Vb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),RS=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}}),kb=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"}}),wS=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"}}),NS=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"}}),Lb=K__namespace.forwardRef(({className:e,label:t,description:a,errorMessage:r,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,value:c,defaultValue:f="",onChange:p,onClear:h,onSearch:R,showClearButton:g=true,showSearchIcon:x=true,disabled:w,placeholder:b="Search...",id:v,...P},y)=>{let C=K__namespace.useId(),M=v||C,T=`${M}-description`,N=`${M}-error`,[S,k]=K__namespace.useState(f),V=c!==void 0?c:S,E=i&&r,L=V.length>0,D=W=>{let H=W.target.value;c===void 0&&k(H),p?.(H);},I=()=>{c===void 0&&k(""),p?.(""),h?.();},z=W=>{W.key==="Enter"?(W.preventDefault(),R?.(V)):W.key==="Escape"&&L&&(W.preventDefault(),I());};return jsxRuntime.jsxs("div",{className:o(Vb({size:s}),e),children:[t&&jsxRuntime.jsxs(is__namespace.Root,{htmlFor:M,className:o(wS({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:[x&&jsxRuntime.jsx(lucideReact.Search,{className:o(kb({size:s}),"absolute left-3 top-1/2 -translate-y-1/2")}),jsxRuntime.jsx("input",{ref:y,id:M,type:"search",value:V,onChange:D,onKeyDown:z,placeholder:b,"aria-invalid":i,"aria-describedby":E?N:a?T:void 0,"aria-required":n,disabled:w,className:o(RS({size:s,isInvalid:i}),!x&&"pl-3",!g&&"pr-3",d),...P}),g&&L&&!w&&jsxRuntime.jsx("button",{type:"button",onClick:I,className:o(NS({size:s})),tabIndex:-1,"aria-label":"Clear search",children:jsxRuntime.jsx(lucideReact.X,{className:o(kb({size:s}))})})]}),a&&!E&&jsxRuntime.jsx("p",{id:T,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a}),E&&jsxRuntime.jsx("p",{id:N,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:r})]})});Lb.displayName="SearchField";var Eb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),CS=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}}),SS=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"}}),TS=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"}}),Al=(e,t="yyyy-MM-dd")=>{if(!e)return "";let a=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return t.replace("yyyy",String(a)).replace("MM",r).replace("dd",n)},MS=e=>{if(!e)return null;let t=new Date(e);return isNaN(t.getTime())?null:t},Hb=K__namespace.forwardRef(({className:e,label:t,description:a,errorMessage:r,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,value:c,defaultValue:f,onChange:p,minDate:h,maxDate:R,dateFormat:g="yyyy-MM-dd",showIcon:x=true,fullWidth:w=false,disabled:b,id:v,...P},y)=>{let C=K__namespace.useId(),M=v||C,T=`${M}-description`,N=`${M}-error`,S=K__namespace.useRef(null),k=y||S,[V,E]=K__namespace.useState(f??null),[L,D]=K__namespace.useState(false),I=()=>{!b&&k.current&&k.current.showPicker?.();},z=c!==void 0?c:V,W=i&&r,H=ve=>{let A=MS(ve.target.value);c===void 0&&E(A),p?.(A);},j=z?Al(z,"yyyy-MM-dd"):"",$=h?Al(h,"yyyy-MM-dd"):void 0,Le=R?Al(R,"yyyy-MM-dd"):void 0;return jsxRuntime.jsxs("div",{className:o(Eb({size:s}),e),children:[t&&jsxRuntime.jsxs(is__namespace.Root,{htmlFor:M,className:o(TS({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:o("relative",w?"w-full":"w-fit"),children:[jsxRuntime.jsx("input",{ref:k,id:M,type:"date",value:j,onChange:H,onFocus:()=>D(true),onBlur:()=>D(false),min:$,max:Le,"aria-invalid":i,"aria-describedby":W?N:a?T:void 0,"aria-required":n,disabled:b,className:o(CS({size:s,isInvalid:i,fullWidth:w}),!x&&"pr-3",d),style:{borderColor:L?"var(--color-foreground)":void 0},...P}),x&&jsxRuntime.jsx("button",{type:"button",onClick:I,disabled:b,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:o(SS({size:s}))})})]}),a&&!W&&jsxRuntime.jsx("p",{id:T,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a}),W&&jsxRuntime.jsx("p",{id:N,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:r})]})});Hb.displayName="DateField";var zb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),kS=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}}),DS=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"}}),Bb=K__namespace.forwardRef(({className:e,label:t,description:a,errorMessage:r,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,value:c,defaultValue:f,onChange:p,minTime:h,maxTime:R,showSeconds:g=false,hourCycle:x=24,disabled:w,fullWidth:b=false,id:v,...P},y)=>{let C=K__namespace.useId(),M=v||C,T=`${M}-description`,N=`${M}-error`,S=K__namespace.useRef(null),k=K__namespace.useRef(null),V=K__namespace.useRef(null),E=K__namespace.useRef(null),[L,D]=K__namespace.useState(f??null),I=c!==void 0?c:L,z=i&&r,W=O=>x===24?O:O===0?12:O>12?O-12:O,H=O=>O>=12?"PM":"AM",j=(O,Z)=>Z==="AM"?O===12?0:O:O===12?12:O+12,[$,Le]=K__namespace.useState(I?String(W(I.hour)).padStart(2,"0"):""),[ve,A]=K__namespace.useState(I?String(I.minute).padStart(2,"0"):""),[B,te]=K__namespace.useState(I?.second!==void 0?String(I.second).padStart(2,"0"):""),[F,oe]=K__namespace.useState(I?H(I.hour):"AM"),[ee,at]=K__namespace.useState(false);K__namespace.useEffect(()=>{c!==void 0&&(c?(Le(String(W(c.hour)).padStart(2,"0")),A(String(c.minute).padStart(2,"0")),c.second!==void 0&&te(String(c.second).padStart(2,"0")),oe(H(c.hour))):(Le(""),A(""),te("")));},[c,x]);let rt=(O,Z,Ie,qt)=>{let ue=parseInt(O,10),vt=parseInt(Z,10),Zt=g?parseInt(Ie,10):void 0;if(isNaN(ue)||isNaN(vt)||g&&isNaN(Zt)){c===void 0&&D(null),p?.(null);return}let md={hour:x===12?j(ue,qt):ue,minute:vt,...g&&Zt!==void 0&&{second:Zt}};c===void 0&&D(md),p?.(md);},Wx=O=>{let Z=O.target.value.replace(/\D/g,"").slice(0,2);Le(Z);let Ie=x===24?23:12,qt=x===24?0:1;if(Z.length===2){let ue=parseInt(Z,10);ue>=qt&&ue<=Ie&&(k.current?.focus(),k.current?.select());}},$x=O=>{let Z=O.target.value.replace(/\D/g,"").slice(0,2);if(A(Z),Z.length===2){let Ie=parseInt(Z,10);Ie>=0&&Ie<=59&&(g?(V.current?.focus(),V.current?.select()):x===12&&E.current?.focus());}},_x=O=>{let Z=O.target.value.replace(/\D/g,"").slice(0,2);te(Z),Z.length===2&&x===12&&E.current?.focus();},Kx=()=>{if($){let O=parseInt($,10),Z=x===24?23:12,qt=Math.min(Math.max(O,x===24?0:1),Z),ue=String(qt).padStart(2,"0");Le(ue),rt(ue,ve,B,F);}},Ux=()=>{if(ve){let O=parseInt(ve,10),Z=Math.min(Math.max(O,0),59),Ie=String(Z).padStart(2,"0");A(Ie),rt($,Ie,B,F);}},Yx=()=>{if(B){let O=parseInt(B,10),Z=Math.min(Math.max(O,0),59),Ie=String(Z).padStart(2,"0");te(Ie),rt($,ve,Ie,F);}},cd=()=>{let O=F==="AM"?"PM":"AM";oe(O),rt($,ve,B,O);},jx=O=>{let Z=O.key.toLowerCase();Z==="a"?(O.preventDefault(),F!=="AM"&&(oe("AM"),rt($,ve,B,"AM"))):Z==="p"?(O.preventDefault(),F!=="PM"&&(oe("PM"),rt($,ve,B,"PM"))):Z==="arrowup"||Z==="arrowdown"?(O.preventDefault(),cd()):Z==="arrowleft"&&(O.preventDefault(),g?(V.current?.focus(),V.current?.select()):(k.current?.focus(),k.current?.select()));},Qi=(O,Z)=>{if(O.key==="ArrowUp"||O.key==="ArrowDown"){O.preventDefault();let Ie=O.key==="ArrowUp"?1:-1;if(Z==="hour"){let qt=parseInt($,10)||0,ue=x===24?23:12,vt=x===24?0:1,Zt=qt+Ie;Zt>ue&&(Zt=vt),Zt<vt&&(Zt=ue);let ts=String(Zt).padStart(2,"0");Le(ts),rt(ts,ve,B,F);}else if(Z==="minute"){let ue=(parseInt(ve,10)||0)+Ie;ue>59&&(ue=0),ue<0&&(ue=59);let vt=String(ue).padStart(2,"0");A(vt),rt($,vt,B,F);}else if(Z==="second"){let ue=(parseInt(B,10)||0)+Ie;ue>59&&(ue=0),ue<0&&(ue=59);let vt=String(ue).padStart(2,"0");te(vt),rt($,ve,vt,F);}}O.key==="ArrowRight"&&(O.preventDefault(),Z==="hour"?(k.current?.focus(),k.current?.select()):Z==="minute"&&g?(V.current?.focus(),V.current?.select()):(Z==="minute"&&!g&&x===12||Z==="second"&&x===12)&&E.current?.focus()),O.key==="ArrowLeft"&&(O.preventDefault(),Z==="minute"?(S.current?.focus(),S.current?.select()):Z==="second"&&(k.current?.focus(),k.current?.select())),O.key==="Backspace"&&O.currentTarget.value===""&&(Z==="minute"?S.current?.focus():Z==="second"&&k.current?.focus());},es=o((()=>{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",w&&"cursor-not-allowed");return jsxRuntime.jsxs("div",{ref:y,className:o(zb({size:s}),e),...P,children:[t&&jsxRuntime.jsxs(is__namespace.Root,{htmlFor:M,className:o(DS({size:s}),l),children:[t,n&&jsxRuntime.jsx("span",{className:"text-danger ml-0.5","aria-hidden":"true",children:"*"})]}),jsxRuntime.jsxs("div",{className:o(kS({size:s,isInvalid:i,disabled:w,fullWidth:b}),d),style:{borderColor:ee?"var(--color-foreground)":void 0},onFocus:()=>at(true),onBlur:O=>{O.currentTarget.contains(O.relatedTarget)||at(false);},children:[jsxRuntime.jsx("input",{ref:S,id:M,type:"text",inputMode:"numeric",placeholder:x===24?"HH":"hh",value:$,onChange:Wx,onBlur:Kx,onKeyDown:O=>Qi(O,"hour"),onFocus:O=>O.target.select(),"aria-label":"Hour","aria-invalid":i,"aria-describedby":z?N:a?T:void 0,"aria-required":n,disabled:w,className:es}),jsxRuntime.jsx("span",{className:"text-muted-foreground",children:":"}),jsxRuntime.jsx("input",{ref:k,type:"text",inputMode:"numeric",placeholder:"mm",value:ve,onChange:$x,onBlur:Ux,onKeyDown:O=>Qi(O,"minute"),onFocus:O=>O.target.select(),"aria-label":"Minute",disabled:w,className:es}),g&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"text-muted-foreground",children:":"}),jsxRuntime.jsx("input",{ref:V,type:"text",inputMode:"numeric",placeholder:"ss",value:B,onChange:_x,onBlur:Yx,onKeyDown:O=>Qi(O,"second"),onFocus:O=>O.target.select(),"aria-label":"Second",disabled:w,className:es})]}),x===12&&jsxRuntime.jsx("button",{ref:E,type:"button",onClick:cd,onKeyDown:jx,disabled:w,className:o("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",w&&"cursor-not-allowed"),"aria-label":"AM/PM",children:F})]}),a&&!z&&jsxRuntime.jsx("p",{id:T,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a}),z&&jsxRuntime.jsx("p",{id:N,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:r})]})});Bb.displayName="TimeField";var Gb=classVarianceAuthority.cva("flex flex-col gap-1.5",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),LS=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}}),IS=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"}}),ES=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"}}),Fb=e=>/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.test(e),HS=e=>(e.startsWith("#")||(e="#"+e),e.length===4&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]),e.toUpperCase()),Wb=K__namespace.forwardRef(({className:e,label:t,description:a,errorMessage:r,isRequired:n,isInvalid:i,size:s,labelClassName:l,inputClassName:d,descriptionClassName:m,errorClassName:u,value:c,defaultValue:f="#000000",onChange:p,showSwatch:h=true,showPicker:R=true,allowAlpha:g=false,fullWidth:x=false,disabled:w,id:b,...v},P)=>{let y=K__namespace.useId(),C=b||y,M=`${C}-picker`,T=`${C}-description`,N=`${C}-error`,[S,k]=K__namespace.useState(f),[V,E]=K__namespace.useState(false),L=c!==void 0?c:S,D=i&&r,I=j=>{let $=j.target.value;$&&!$.startsWith("#")&&($="#"+$),c===void 0&&k($),p?.($);},z=j=>{let $=j.target.value.toUpperCase();c===void 0&&k($),p?.($);},W=()=>{if(L&&Fb(L)){let j=HS(L);j!==L&&(c===void 0&&k(j),p?.(j));}},H=Fb(L)?L:"#000000";return jsxRuntime.jsxs("div",{className:o(Gb({size:s}),e),children:[t&&jsxRuntime.jsxs(is__namespace.Root,{htmlFor:C,className:o(ES({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:[h&&jsxRuntime.jsx("div",{className:o(IS({size:s})),children:R?jsxRuntime.jsxs("label",{htmlFor:M,className:"block h-full w-full cursor-pointer",children:[jsxRuntime.jsx("input",{id:M,type:"color",value:H,onChange:z,disabled:w,className:"absolute inset-0 h-full w-full cursor-pointer opacity-0",tabIndex:-1}),jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundColor:H}})]}):jsxRuntime.jsx("div",{className:"h-full w-full",style:{backgroundColor:H}})}),jsxRuntime.jsx("input",{ref:P,id:C,type:"text",value:L,onChange:I,onFocus:()=>E(true),onBlur:()=>{E(false),W();},placeholder:"#000000",maxLength:g?9:7,"aria-invalid":i,"aria-describedby":D?N:a?T:void 0,"aria-required":n,disabled:w,className:o(LS({size:s,isInvalid:i,fullWidth:x}),!h&&"pl-3",d),style:{borderColor:V?"var(--color-foreground)":void 0},...v})]}),a&&!D&&jsxRuntime.jsx("p",{id:T,className:o("text-muted-foreground",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",m),children:a}),D&&jsxRuntime.jsx("p",{id:N,role:"alert",className:o("text-danger",s==="sm"?"text-xs":s==="lg"?"text-sm":"text-xs",u),children:r})]})});Wb.displayName="ColorField";var _b=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"}}),Kb=K__namespace.createContext({});function zS(){return K__namespace.useContext(Kb)}var Ub=K__namespace.forwardRef(({className:e,variant:t,orientation:a,spacing:r,disabled:n,children:i,...s},l)=>jsxRuntime.jsx(Kb.Provider,{value:{disabled:n},children:jsxRuntime.jsx("div",{ref:l,role:"group",className:o(_b({variant:t,orientation:a,spacing:r,className:e})),...s,children:i})}));Ub.displayName="ButtonGroup";var jb=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"}}),Xb=K__namespace.forwardRef(({className:e,variant:t,size:a,radius:r,isLoading:n,disabled:i,children:s,...l},d)=>{let m={sm:"h-4 w-4",md:"h-4 w-4",lg:"h-5 w-5",xl:"h-6 w-6"}[a??"md"];return jsxRuntime.jsx("button",{ref:d,type:"button",disabled:i||n,className:o(jb({variant:t,size:a,radius:r,className:e})),...l,children:n?jsxRuntime.jsxs("svg",{className:o("animate-spin",m),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:o("[&>svg]:h-full [&>svg]:w-full",m),children:s})})});Xb.displayName="IconButton";var Zb=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"}}),Jb=K__namespace.forwardRef(({className:e,variant:t,orientation:a,size:r,density:n,items:i,maxVisibleItems:s,isDisabled:l,onAction:d,showLabels:m=false,renderItem:u,...c},f)=>{let p=s&&s<i.length?i.slice(0,s):i,h=s&&s<i.length?i.slice(s):[],R={sm:"h-8 px-2 text-xs",md:"h-9 px-3 text-sm",lg:"h-10 px-4 text-base"}[r??"md"],g={sm:"h-8 w-8",md:"h-9 w-9",lg:"h-10 w-10"}[r??"md"],x={sm:"h-4 w-4",md:"h-4 w-4",lg:"h-5 w-5"}[r??"md"],w=(v,P)=>{P&&P(),d&&d(v);},b=v=>jsxRuntime.jsxs("button",{type:"button",disabled:l||v.isDisabled,onClick:()=>w(v.key,v.onPress),className:o("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",m?R:g),"aria-label":v.label,children:[v.icon&&jsxRuntime.jsx("span",{className:x,children:v.icon}),m&&jsxRuntime.jsx("span",{children:v.label})]},v.key);return jsxRuntime.jsxs("div",{ref:f,role:"group",className:o(Zb({variant:t,orientation:a,size:r,density:n,className:e})),...c,children:[p.map(v=>u?u(v):b(v)),h.length>0&&jsxRuntime.jsxs(sr,{children:[jsxRuntime.jsx(lr,{asChild:true,children:jsxRuntime.jsx("button",{type:"button",disabled:l,className:o("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:x})})}),jsxRuntime.jsx(Va,{align:"end",children:h.map(v=>jsxRuntime.jsxs(Vt,{disabled:v.isDisabled,onClick:()=>w(v.key,v.onPress),children:[v.icon&&jsxRuntime.jsx("span",{className:o(x,"mr-2"),children:v.icon}),v.label]},v.key))})]})]})});Jb.displayName="ActionGroup";var av=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"}}),WS=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}}),rv=K__namespace.forwardRef(({className:e,variant:t,size:a,pulse:r=false,hideLabel:n=false,children:i,...s},l)=>jsxRuntime.jsxs("span",{ref:l,role:"status",className:o(av({variant:t,size:a,className:e})),...s,children:[jsxRuntime.jsx("span",{className:o(WS({size:a,pulse:r})),"aria-hidden":"true"}),!n&&i&&jsxRuntime.jsx("span",{className:"text-foreground",children:i})]}));rv.displayName="StatusLight";var nv=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"}}),_S=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"}}),KS=classVarianceAuthority.cva("font-semibold text-foreground",{variants:{size:{sm:"text-base",md:"text-lg",lg:"text-xl"}},defaultVariants:{size:"md"}}),US=classVarianceAuthority.cva("text-muted-foreground",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),iv=K__namespace.forwardRef(({className:e,size:t,illustration:a,heading:r,description:n,children:i,...s},l)=>jsxRuntime.jsxs("div",{ref:l,className:o(nv({size:t,className:e})),...s,children:[a&&jsxRuntime.jsx("div",{className:o(_S({size:t})),"aria-hidden":"true",children:a}),r&&jsxRuntime.jsx("h3",{className:o(KS({size:t})),children:r}),n&&jsxRuntime.jsx("p",{className:o(US({size:t})),children:n}),i&&jsxRuntime.jsx("div",{className:"mt-2",children:i})]}));iv.displayName="IllustratedMessage";var dv=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"}}),QS={info:lucideReact.Info,success:lucideReact.CheckCircle2,warning:lucideReact.AlertTriangle,error:lucideReact.AlertCircle,neutral:lucideReact.Info},cv=K__namespace.forwardRef(({className:e,variant:t,title:a,icon:r,hideIcon:n=false,isDismissible:i=false,onDismiss:s,actions:l,children:d,...m},u)=>{let[c,f]=K__namespace.useState(true);if(!c)return null;let p=QS[t??"info"],h=()=>{f(false),s?.();};return jsxRuntime.jsxs("div",{ref:u,role:"alert",className:o(dv({variant:t,className:e})),...m,children:[!n&&jsxRuntime.jsx("div",{className:"flex-shrink-0",children:r||jsxRuntime.jsx(p,{className:"h-5 w-5"})}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-1",children:[a&&jsxRuntime.jsx("div",{className:"font-medium",children:a}),d&&jsxRuntime.jsx("div",{className:"opacity-90",children:d}),l&&jsxRuntime.jsx("div",{className:"mt-3 flex gap-2",children:l})]}),i&&jsxRuntime.jsx("button",{type:"button",onClick:h,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"})})]})});cv.displayName="InlineAlert";var mv=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"}}),uv=K__namespace.forwardRef(({className:e,position:t,size:a,selectedCount:r=0,isOpen:n=true,onClose:i,showClose:s=true,selectedText:l,children:d,...m},u)=>{if(!n||r===0)return null;let c=()=>typeof l=="function"?l(r):l||`${r} item${r>1?"s":""} selected`;return jsxRuntime.jsxs("div",{ref:u,role:"toolbar","aria-label":"Actions for selected items",className:o(mv({position:t,size:a,className:e})),...m,children:[jsxRuntime.jsx("span",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:c()}),jsxRuntime.jsx("div",{className:"h-4 w-px bg-border"}),jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:d}),s&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"h-4 w-px bg-border"}),jsxRuntime.jsx("button",{type:"button",onClick:i,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"})})]})]})});uv.displayName="ActionBar";var pv=K__namespace.forwardRef(({className:e,icon:t,children:a,...r},n)=>jsxRuntime.jsxs("button",{ref:n,type:"button",className:o("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),...r,children:[t&&jsxRuntime.jsx("span",{className:"h-4 w-4 [&>svg]:h-full [&>svg]:w-full",children:t}),a]}));pv.displayName="ActionBarButton";var fv=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 iT(e){return "items"in e}var gv=K__namespace.forwardRef(({items:e,align:t="end",side:a="bottom",iconOrientation:r="vertical",trigger:n,variant:i,size:s,onAction:l,"aria-label":d="More actions",triggerClassName:m,disabled:u},c)=>{let f={sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5"}[s??"md"],p=r==="horizontal"?lucideReact.MoreHorizontal:lucideReact.MoreVertical,h=g=>{g.onSelect?.(),l?.(g.key);},R=g=>jsxRuntime.jsxs(Vt,{disabled:g.isDisabled,onClick:()=>h(g),className:o(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(sr,{children:[jsxRuntime.jsx(lr,{asChild:true,children:n||jsxRuntime.jsx("button",{ref:c,type:"button",disabled:u,className:o(fv({variant:i,size:s}),m),"aria-label":d,children:jsxRuntime.jsx(p,{className:f})})}),jsxRuntime.jsx(Va,{align:t,side:a,children:e.map((g,x)=>iT(g)?jsxRuntime.jsxs(K__namespace.Fragment,{children:[x>0&&jsxRuntime.jsx(Tn,{}),g.items.map(R)]},g.key):R(g))})]})});gv.displayName="ActionMenu";var hv=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"}}),xv=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 yv({className:e,variant:t,size:a,items:r,selectedKeys:n,selectionMode:i="none",onSelectionChange:s,allowsDragging:l=false,onReorder:d,showCheckbox:m=false,renderItem:u,emptyContent:c,...f}){let[p,h]=K__namespace.useState(new Set),[R,g]=K__namespace.useState(null),[x,w]=K__namespace.useState(null),b=K__namespace.useMemo(()=>n?n instanceof Set?n:new Set(n):p,[n,p]),v=M=>{if(i==="none")return;let T;i==="single"?T=b.has(M)?new Set:new Set([M]):(T=new Set(b),T.has(M)?T.delete(M):T.add(M)),n||h(T),s?.(T);},P=(M,T)=>{g(T),M.dataTransfer.effectAllowed="move";},y=(M,T)=>{M.preventDefault(),R!==T&&w(T);},C=()=>{if(R&&x&&R!==x){let M=r.findIndex(k=>k.key===R),T=r.findIndex(k=>k.key===x),N=[...r],[S]=N.splice(M,1);N.splice(T,0,S),d?.(N);}g(null),w(null);};return r.length===0?jsxRuntime.jsx("div",{className:o("flex items-center justify-center p-8 text-muted-foreground",e),children:c||"No items"}):jsxRuntime.jsx("div",{role:"listbox","aria-multiselectable":i==="multiple",className:o(hv({variant:t,size:a,className:e})),...f,children:r.map(M=>{let T=b.has(M.key),N=R===M.key,S=x===M.key;return u?jsxRuntime.jsx("div",{role:"option","aria-selected":T,onClick:()=>v(M.key),children:u(M,T)},M.key):jsxRuntime.jsxs("div",{role:"option","aria-selected":T,"aria-disabled":M.isDisabled,draggable:l&&!M.isDisabled,onDragStart:k=>P(k,M.key),onDragOver:k=>y(k,M.key),onDragEnd:C,onClick:()=>!M.isDisabled&&v(M.key),className:o(xv({variant:t,size:a,isSelected:T,isDisabled:M.isDisabled}),N&&"opacity-50",S&&"border-t-2 border-t-primary"),children:[l&&jsxRuntime.jsx(lucideReact.GripVertical,{className:"h-4 w-4 text-muted-foreground cursor-grab"}),m&&i!=="none"&&jsxRuntime.jsx("div",{className:o("flex h-4 w-4 items-center justify-center rounded border",T?"bg-primary border-primary text-primary-foreground":"border-input"),children:T&&jsxRuntime.jsx(lucideReact.Check,{className:"h-3 w-3"})}),M.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 text-muted-foreground [&>svg]:h-full [&>svg]:w-full",children:M.icon}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:"truncate",children:M.label}),M.description&&jsxRuntime.jsx("div",{className:"text-sm text-muted-foreground truncate",children:M.description})]})]},M.key)})})}yv.displayName="ListView";var wv=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"}}),dT=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"}}),Rv=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",{variants:{size:{sm:"h-3.5 w-3.5",md:"h-5 w-5",lg:"h-6 w-6"}},defaultVariants:{size:"md"}}),Nv=K__namespace.forwardRef(({className:e,orientation:t="horizontal",size:a,value:r,defaultValue:n=[25,75],onValueChange:i,onValueCommit:s,showLabels:l=false,formatLabel:d=g=>String(g),trackColor:m="primary",min:u=0,max:c=100,step:f=1,disabled:p,...h},R)=>{let[g,x]=K__namespace.useState(n),w=r??g,b=y=>{let C=y;r||x(C),i?.(C);},v=y=>{s?.(y);},P={primary:"bg-primary",success:"bg-green-500",warning:"bg-yellow-500",danger:"bg-red-500"}[m];return jsxRuntime.jsxs("div",{className:"relative w-full",children:[l&&jsxRuntime.jsxs("div",{className:"flex justify-between mb-2 text-sm text-muted-foreground",children:[jsxRuntime.jsx("span",{children:d(w[0])}),jsxRuntime.jsx("span",{children:d(w[1])})]}),jsxRuntime.jsxs(aa__namespace.Root,{ref:R,value:w,onValueChange:b,onValueCommit:v,min:u,max:c,step:f,disabled:p,orientation:t??"horizontal",className:o(wv({orientation:t,size:a,className:e})),...h,children:[jsxRuntime.jsx(aa__namespace.Track,{className:o(dT({orientation:t,size:a})),children:jsxRuntime.jsx(aa__namespace.Range,{className:o("absolute rounded-full",P,{"h-full":t==="horizontal","w-full":t==="vertical"})})}),jsxRuntime.jsx(aa__namespace.Thumb,{className:o(Rv({size:a}))}),jsxRuntime.jsx(aa__namespace.Thumb,{className:o(Rv({size:a}))})]})]})});Nv.displayName="RangeSlider";var Sv=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"}}),pT=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"}}),fT={help:lucideReact.HelpCircle,info:lucideReact.Info,warning:lucideReact.AlertCircle},Tv=K__namespace.forwardRef(({variant:e="help",size:t,title:a,children:r,trigger:n,side:i="top",align:s="center",open:l,onOpenChange:d,learnMoreUrl:m,learnMoreText:u="Learn more",triggerClassName:c,contentClassName:f},p)=>{let h=fT[e??"help"];return jsxRuntime.jsxs(xt__namespace.Root,{open:l,onOpenChange:d,children:[jsxRuntime.jsx(xt__namespace.Trigger,{asChild:true,children:n||jsxRuntime.jsx("button",{ref:p,type:"button",className:o(Sv({variant:e,size:t}),c),"aria-label":"Help",children:jsxRuntime.jsx(h,{className:"h-full w-full"})})}),jsxRuntime.jsx(xt__namespace.Portal,{children:jsxRuntime.jsxs(xt__namespace.Content,{side:i,align:s,sideOffset:8,className:o(pT({size:t}),f),children:[a&&jsxRuntime.jsx("div",{className:"mb-2 font-semibold text-foreground",children:a}),jsxRuntime.jsx("div",{className:"text-muted-foreground",children:r}),m&&jsxRuntime.jsxs("a",{href:m,target:"_blank",rel:"noopener noreferrer",className:"mt-3 inline-block text-primary hover:underline",children:[u," \u2192"]}),jsxRuntime.jsx(xt__namespace.Arrow,{className:"fill-popover"})]})})]})});Tv.displayName="ContextualHelp";var kv=classVarianceAuthority.cva("flex flex-wrap",{variants:{spacing:{sm:"gap-1",md:"gap-2",lg:"gap-3"}},defaultVariants:{spacing:"md"}}),Kl=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 Dv({className:e,spacing:t,variant:a,size:r,items:n,selectedKeys:i,selectionMode:s="none",onSelectionChange:l,allowsRemoving:d=false,onRemove:m,label:u,description:c,errorMessage:f,maxTags:p,...h}){let[R,g]=K__namespace.useState(new Set),x=K__namespace.useMemo(()=>i?i instanceof Set?i:new Set(i):R,[i,R]),w=y=>{if(s==="none")return;let C;s==="single"?C=x.has(y)?new Set:new Set([y]):(C=new Set(x),C.has(y)?C.delete(y):C.add(y)),i||g(C),l?.(C);},b=(y,C)=>{C.stopPropagation(),m?.(y);},v=p?n.slice(0,p):n,P=p?Math.max(0,n.length-p):0;return jsxRuntime.jsxs("div",{className:"flex flex-col gap-1.5",children:[u&&jsxRuntime.jsx("span",{className:"text-sm font-medium text-foreground",children:u}),c&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:c}),jsxRuntime.jsxs("div",{role:"group","aria-label":u,className:o(kv({spacing:t}),e),...h,children:[v.map(y=>{let C=x.has(y.key),M=s!=="none";return jsxRuntime.jsxs("span",{role:M?"button":void 0,tabIndex:M&&!y.isDisabled?0:void 0,"aria-pressed":M?C:void 0,onClick:()=>!y.isDisabled&&w(y.key),onKeyDown:T=>{(T.key==="Enter"||T.key===" ")&&!y.isDisabled&&(T.preventDefault(),w(y.key));},style:y.color?{backgroundColor:y.color}:void 0,className:o(Kl({variant:y.color?void 0:a,size:r,isSelected:C,isDisabled:y.isDisabled}),M&&!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,d&&!y.isDisabled&&jsxRuntime.jsx("button",{type:"button",onClick:T=>b(y.key,T),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)}),P>0&&jsxRuntime.jsxs("span",{className:o(Kl({variant:"surface",size:r}),"cursor-default"),children:["+",P," more"]})]}),f&&jsxRuntime.jsx("span",{className:"text-sm text-destructive",children:f})]})}Dv.displayName="TagGroup";var Iv=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"}}),Ev=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 Hv({className:e,columns:t,gap:a,items:r,selectedKeys:n,selectionMode:i="none",onSelectionChange:s,showSelectionIndicator:l=true,itemVariant:d="default",itemSize:m="md",renderItem:u,emptyContent:c,...f}){let[p,h]=K__namespace.useState(new Set),R=K__namespace.useMemo(()=>n?n instanceof Set?n:new Set(n):p,[n,p]),g=x=>{if(i==="none")return;let w;i==="single"?w=R.has(x)?new Set:new Set([x]):(w=new Set(R),w.has(x)?w.delete(x):w.add(x)),n||h(w),s?.(w);};return r.length===0?jsxRuntime.jsx("div",{className:o("flex items-center justify-center p-8 text-muted-foreground",e),children:c||"No items"}):jsxRuntime.jsx("div",{role:"grid","aria-multiselectable":i==="multiple",className:o(Iv({columns:t,gap:a,className:e})),...f,children:r.map(x=>{let w=R.has(x.key);return u?jsxRuntime.jsx("div",{role:"gridcell","aria-selected":w,onClick:()=>g(x.key),children:u(x,w)},x.key):jsxRuntime.jsxs("div",{role:"gridcell","aria-selected":w,"aria-disabled":x.isDisabled,onClick:()=>!x.isDisabled&&g(x.key),className:o(Ev({variant:d,size:m,isSelected:w,isDisabled:x.isDisabled})),children:[l&&i!=="none"&&w&&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"})}),x.thumbnail&&jsxRuntime.jsx("div",{className:"mb-2 aspect-square w-full overflow-hidden rounded-md bg-muted",children:x.thumbnail}),jsxRuntime.jsxs("div",{className:"min-w-0",children:[jsxRuntime.jsx("div",{className:"truncate font-medium",children:x.label}),x.description&&jsxRuntime.jsx("div",{className:"mt-1 truncate text-sm text-muted-foreground",children:x.description})]})]},x.key)})})}Hv.displayName="GridList";var zv=classVarianceAuthority.cva("relative w-full",{variants:{size:{sm:"h-1.5",md:"h-2",lg:"h-3"}},defaultVariants:{size:"md"}}),vT=classVarianceAuthority.cva("w-full h-full rounded-full overflow-hidden",{variants:{variant:{default:"bg-secondary",subtle:"bg-muted"}},defaultVariants:{variant:"default"}}),hT=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}}),Bi=K__namespace.forwardRef(({className:e,size:t,value:a,min:r=0,max:n=100,optimum:i,low:s,high:l,label:d,showValueLabel:m=false,formatValue:u,color:c="primary",trackVariant:f="default",...p},h)=>{let R=Math.min(100,Math.max(0,(a-r)/(n-r)*100)),g=()=>{if(c!=="auto")return "";let w=(a-r)/(n-r),b=s!==void 0?(s-r)/(n-r):.25,v=l!==void 0?(l-r)/(n-r):.75;return (i!==void 0?(i-r)/(n-r):1)>=.5?w<=b?"bg-red-500":w<=v?"bg-yellow-500":"bg-green-500":w>=v?"bg-red-500":w>=b?"bg-yellow-500":"bg-green-500"},x=u?u(a,R):`${Math.round(R)}%`;return jsxRuntime.jsxs("div",{ref:h,className:o("w-full",e),...p,children:[(d||m)&&jsxRuntime.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[d&&jsxRuntime.jsx("span",{className:"text-sm font-medium text-foreground",children:d}),m&&jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground",children:x})]}),jsxRuntime.jsx("div",{role:"meter","aria-valuenow":a,"aria-valuemin":r,"aria-valuemax":n,"aria-label":d,className:o(zv({size:t})),children:jsxRuntime.jsx("div",{className:o(vT({variant:f})),children:jsxRuntime.jsx("div",{className:o(hT({color:c==="auto"?void 0:c,rounded:R>=100}),c==="auto"&&g()),style:{width:`${R}%`}})})})]})});Bi.displayName="Meter";var Bv=K__namespace.forwardRef((e,t)=>jsxRuntime.jsx(Bi,{ref:t,color:"auto",low:50,high:80,optimum:0,...e}));Bv.displayName="DiskUsageMeter";var Fv=K__namespace.forwardRef((e,t)=>jsxRuntime.jsx(Bi,{ref:t,color:"auto",low:20,high:50,optimum:100,...e}));Fv.displayName="BatteryMeter";var Gv=classVarianceAuthority.cva("flex flex-wrap",{variants:{size:{sm:"gap-1",md:"gap-1.5",lg:"gap-2"},layout:{wrap:"flex-wrap",grid:"grid"}},defaultVariants:{size:"md",layout:"wrap"}}),Wv=["#000000","#ffffff","#ef4444","#f97316","#eab308","#22c55e","#06b6d4","#3b82f6","#8b5cf6","#ec4899"],$v=["#f8fafc","#f1f5f9","#e2e8f0","#cbd5e1","#94a3b8","#64748b","#475569","#334155","#1e293b","#0f172a","#fef2f2","#fee2e2","#fecaca","#fca5a5","#f87171","#ef4444","#dc2626","#b91c1c","#991b1b","#7f1d1d","#fff7ed","#ffedd5","#fed7aa","#fdba74","#fb923c","#f97316","#ea580c","#c2410c","#9a3412","#7c2d12","#fefce8","#fef9c3","#fef08a","#fde047","#facc15","#eab308","#ca8a04","#a16207","#854d0e","#713f12","#f0fdf4","#dcfce7","#bbf7d0","#86efac","#4ade80","#22c55e","#16a34a","#15803d","#166534","#14532d","#eff6ff","#dbeafe","#bfdbfe","#93c5fd","#60a5fa","#3b82f6","#2563eb","#1d4ed8","#1e40af","#1e3a8a","#faf5ff","#f3e8ff","#e9d5ff","#d8b4fe","#c084fc","#a855f7","#9333ea","#7e22ce","#6b21a8","#581c87","#fdf2f8","#fce7f3","#fbcfe8","#f9a8d4","#f472b6","#ec4899","#db2777","#be185d","#9d174d","#831843"],_v=["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#795548","#9e9e9e","#607d8b"],Kv=K__namespace.forwardRef(({value:e,defaultValue:t,onChange:a,colors:r="default",customColors:n,size:i,layout:s,swatchSize:l="md",swatchShape:d="square",columns:m,disabled:u,showSelection:c=true,className:f,...p},h)=>{let[R,g]=K__namespace.useState(t),x=e!==void 0?e:R,b=(()=>{if(n)return n;if(Array.isArray(r))return r;switch(r){case "tailwind":return $v;case "material":return _v;default:return Wv}})(),v=y=>{u||(e===void 0&&g(y),a?.(y));},P=s==="grid"&&m?{gridTemplateColumns:`repeat(${m}, 1fr)`}:{};return jsxRuntime.jsx("div",{ref:h,role:"listbox","aria-label":"Color palette",className:o(Gv({size:i,layout:s}),f),style:P,...p,children:b.map((y,C)=>jsxRuntime.jsx(jr,{color:y,size:l,shape:d,isSelected:c&&x?.toLowerCase()===y.toLowerCase(),onSelect:v,disabled:u,role:"option","aria-selected":x?.toLowerCase()===y.toLowerCase()},`${y}-${C}`))})});Kv.displayName="ColorSwatchPicker";var Uv=classVarianceAuthority.cva("relative rounded-md border border-input 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"}},defaultVariants:{size:"md"}}),Gi=(e,t,a)=>{let r=n=>{let i=(n+e/60)%6;return a-a*t*Math.max(Math.min(i,4-i,1),0)};return [Math.round(r(5)*255),Math.round(r(3)*255),Math.round(r(1)*255)]},Yv=(e,t,a)=>{e/=255,t/=255,a/=255;let r=Math.max(e,t,a),n=Math.min(e,t,a),i=r-n,s=0,l=r===0?0:i/r,d=r;if(i!==0)switch(r){case e:s=((t-a)/i+(t<a?6:0))*60;break;case t:s=((a-e)/i+2)*60;break;case a:s=((e-t)/i+4)*60;break}return [s,l,d]},jv=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},Xv=(e,t,a)=>"#"+[e,t,a].map(r=>r.toString(16).padStart(2,"0")).join(""),qv=K__namespace.forwardRef(({hue:e,saturation:t,brightness:a,value:r,defaultValue:n="#ff0000",onChange:i,onColorChange:s,size:l,disabled:d,thumbSize:m=16,className:u,...c},f)=>{let p=K__namespace.useRef(null),[h,R]=K__namespace.useState(false),g=K__namespace.useCallback(H=>{let j=jv(H);return j?Yv(...j):[0,1,1]},[]),[x,w]=K__namespace.useState(()=>g(r||n)),b=e??x[0],v=t??x[1],P=a??x[2];K__namespace.useEffect(()=>{if(r){let H=g(r);w(H);}},[r,g]);let y=K__namespace.useCallback((H,j)=>{if(d||!p.current)return;let $=p.current.getBoundingClientRect(),Le=Math.max(0,Math.min(1,(H-$.left)/$.width)),ve=Math.max(0,Math.min(1,(j-$.top)/$.height)),A=Le,B=1-ve;t===void 0&&a===void 0&&w([b,A,B]),i?.({hue:b,saturation:A,brightness:B});let te=Gi(b,A,B);s?.(Xv(...te));},[d,b,t,a,i,s]),C=H=>{d||(H.preventDefault(),R(true),H.target.setPointerCapture(H.pointerId),y(H.clientX,H.clientY));},M=H=>{h&&y(H.clientX,H.clientY);},T=H=>{R(false),H.target.releasePointerCapture(H.pointerId);},[N,S,k]=Gi(b,1,1),V=`rgb(${N}, ${S}, ${k})`,E=v*100,L=(1-P)*100,[D,I,z]=Gi(b,v,P),W=`rgb(${D}, ${I}, ${z})`;return jsxRuntime.jsx("div",{ref:f,className:o(Uv({size:l}),d&&"cursor-not-allowed opacity-50",u),...c,children:jsxRuntime.jsxs("div",{ref:p,className:"absolute inset-0",style:{backgroundColor:V},onPointerDown:C,onPointerMove:M,onPointerUp:T,onPointerLeave:T,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 shadow-md pointer-events-none",style:{width:m,height:m,left:`calc(${E}% - ${m/2}px)`,top:`calc(${L}% - ${m/2}px)`,backgroundColor:W,boxShadow:"0 0 0 1px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.2)"}})]})})});qv.displayName="ColorArea";var Jv=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"}}),NT=`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")`,Zv="linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000)",Qv=K__namespace.forwardRef(({value:e,defaultValue:t,onChange:a,channel:r="hue",baseColor:n="#ff0000",orientation:i,size:s,disabled:l,thumbSize:d=18,showBorder:m=true,className:u,...c},f)=>{let p=K__namespace.useRef(null),[h,R]=K__namespace.useState(false),g=()=>{switch(r){case "hue":return 0;case "alpha":case "saturation":case "brightness":return 1;default:return 0}},[x,w]=K__namespace.useState(t??g()),b=e??x,v=r==="hue"?b/360:b,P=K__namespace.useCallback((V,E)=>{if(l||!p.current)return;let L=p.current.getBoundingClientRect(),D=i!=="vertical",I;D?I=Math.max(0,Math.min(1,(V-L.left)/L.width)):I=Math.max(0,Math.min(1,1-(E-L.top)/L.height));let z=r==="hue"?I*360:I;e===void 0&&w(z),a?.(z);},[l,i,r,e,a]),y=V=>{l||(V.preventDefault(),R(true),V.target.setPointerCapture(V.pointerId),P(V.clientX,V.clientY));},C=V=>{h&&P(V.clientX,V.clientY);},M=V=>{R(false),V.target.releasePointerCapture(V.pointerId);},T=()=>{let V=i!=="vertical",E=V?"to right":"to top";switch(r){case "hue":return V?Zv:"linear-gradient(to top, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000)";case "alpha":return `linear-gradient(${E}, transparent, ${n})`;case "saturation":return `linear-gradient(${E}, #808080, ${n})`;case "brightness":return `linear-gradient(${E}, #000000, ${n})`;default:return Zv}},N=()=>r==="hue"?`hsl(${b}, 100%, 50%)`:n,S=i!=="vertical",k=v*100;return jsxRuntime.jsx("div",{ref:f,className:o(Jv({orientation:i,size:s}),l&&"cursor-not-allowed opacity-50",u),...c,children:jsxRuntime.jsxs("div",{ref:p,className:o("absolute inset-0 rounded-full overflow-hidden",m&&"border border-input"),style:{backgroundImage:r==="alpha"?NT:void 0,backgroundSize:r==="alpha"?"8px 8px":void 0},onPointerDown:y,onPointerMove:C,onPointerUp:M,onPointerLeave:M,children:[jsxRuntime.jsx("div",{className:"absolute inset-0 rounded-full",style:{background:T()}}),jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 border-white shadow-md pointer-events-none",style:{width:d,height:d,...S?{left:`calc(${k}% - ${d/2}px)`,top:"50%",transform:"translateY(-50%)"}:{bottom:`calc(${k}% - ${d/2}px)`,left:"50%",transform:"translateX(-50%)"},backgroundColor:N(),boxShadow:"0 0 0 1px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.2)"}})]})})});Qv.displayName="ColorSlider";var eh=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"}}),ST=(e,t,a)=>{let r=e-a,n=t-a,i=Math.atan2(n,r)*180/Math.PI+90;return i<0&&(i+=360),i},th=K__namespace.forwardRef(({value:e,defaultValue:t=0,onChange:a,size:r,disabled:n,innerRadius:i=.6,thumbSize:s=20,showCenter:l=true,className:d,...m},u)=>{let c=K__namespace.useRef(null),[f,p]=K__namespace.useState(false),[h,R]=K__namespace.useState(t),g=e??h,x=K__namespace.useCallback((y,C)=>{if(n||!c.current)return;let M=c.current.getBoundingClientRect(),T=M.width/2,N=y-M.left,S=C-M.top,k=ST(N,S,T);e===void 0&&R(k),a?.(k);},[n,e,a]),w=y=>{n||(y.preventDefault(),p(true),y.target.setPointerCapture(y.pointerId),x(y.clientX,y.clientY));},b=y=>{f&&x(y.clientX,y.clientY);},v=y=>{p(false),y.target.releasePointerCapture(y.pointerId);},P=()=>{let y=[];for(let C=0;C<=360;C+=30)y.push(`hsl(${C}, 100%, 50%) ${C}deg`);return `conic-gradient(from 270deg, ${y.join(", ")})`};return jsxRuntime.jsx("div",{ref:u,className:o(eh({size:r}),n&&"cursor-not-allowed opacity-50",d),...m,children:jsxRuntime.jsxs("div",{ref:c,className:"absolute inset-0 rounded-full",style:{background:P()},onPointerDown:w,onPointerMove:b,onPointerUp:v,onPointerLeave:v,children:[i<1&&jsxRuntime.jsx("div",{className:"absolute bg-background rounded-full",style:{top:`${(1-i)*50}%`,left:`${(1-i)*50}%`,width:`${i*100}%`,height:`${i*100}%`}}),l&&i<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(TT,{hue:g,innerRadius:i,thumbSize:s})]})})});th.displayName="ColorWheel";var TT=({hue:e,innerRadius:t,thumbSize:a})=>{let r=(1-(1-t)/2)*50,n=(e-90)*Math.PI/180,i=50+r*Math.cos(n),s=50+r*Math.sin(n);return jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 border-white shadow-md pointer-events-none",style:{width:a,height:a,left:`calc(${i}% - ${a/2}px)`,top:`calc(${s}% - ${a/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 ah=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}}),nn=K__namespace.forwardRef(({className:e,direction:t,align:a,justify:r,wrap:n,gap:i,inline:s,as:l="div",...d},m)=>jsxRuntime.jsx(l,{ref:m,className:o(ah({direction:t,align:a,justify:r,wrap:n,gap:i,inline:s,className:e})),...d}));nn.displayName="Flex";var rh=K__namespace.forwardRef(({gap:e=2,align:t="center",...a},r)=>jsxRuntime.jsx(nn,{ref:r,direction:"row",gap:e,align:t,...a}));rh.displayName="HStack";var oh=K__namespace.forwardRef(({gap:e=2,align:t="stretch",...a},r)=>jsxRuntime.jsx(nn,{ref:r,direction:"column",gap:e,align:t,...a}));oh.displayName="VStack";var nh=K__namespace.forwardRef((e,t)=>jsxRuntime.jsx(nn,{ref:t,align:"center",justify:"center",...e}));nh.displayName="Center";var sh=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"}}),$i=K__namespace.forwardRef(({className:e,columns:t,rows:a,gap:r,gapX:n,gapY:i,flow:s,align:l,justify:d,placeItems:m,as:u="div",minChildWidth:c,style:f,...p},h)=>{let R=c?{...f,gridTemplateColumns:`repeat(auto-fill, minmax(${c}, 1fr))`}:f;return jsxRuntime.jsx(u,{ref:h,className:o(sh({columns:c?void 0:t,rows:a,gap:r,gapX:n,gapY:i,flow:s,align:l,justify:d,placeItems:m,className:e})),style:R,...p})});$i.displayName="Grid";var lh=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"}}}),dh=K__namespace.forwardRef(({className:e,colSpan:t,rowSpan:a,colStart:r,colEnd:n,rowStart:i,rowEnd:s,as:l="div",...d},m)=>jsxRuntime.jsx(l,{ref:m,className:o(lh({colSpan:t,rowSpan:a,colStart:r,colEnd:n,rowStart:i,rowEnd:s,className:e})),...d}));dh.displayName="GridItem";var ch=K__namespace.forwardRef(({columns:e=2,className:t,...a},r)=>{if(typeof e=="number")return jsxRuntime.jsx($i,{ref:r,columns:e,className:t,...a});let n=o(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($i,{ref:r,columns:1,className:o(n,t),...a})});ch.displayName="SimpleGrid";var uh=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"}}),ph=K__namespace.forwardRef(({className:e,variant:t,size:a,radius:r,as:n="div",...i},s)=>jsxRuntime.jsx(n,{ref:s,className:o(uh({variant:t,size:a,radius:r,className:e})),...i}));ph.displayName="Well";var gh=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"}}),LT=classVarianceAuthority.cva("text-muted-foreground font-medium",{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base"}},defaultVariants:{size:"md"}}),IT=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}}),bh=K__namespace.forwardRef(({className:e,orientation:t,size:a,align:r,label:n,value:i,valueWeight:s,mono:l,labelWidth:d,labelClassName:m,valueClassName:u,showColon:c=false,copyable:f=false,onCopy:p,...h},R)=>{let g=async()=>{if(!(!f||i===null||i===void 0))try{let x=typeof i=="string"?i:String(i);await navigator.clipboard.writeText(x),p?.();}catch{}};return jsxRuntime.jsxs("div",{ref:R,className:o(gh({orientation:t,size:a,align:r,className:e})),...h,children:[jsxRuntime.jsxs("span",{className:o(LT({size:a}),m),style:d?{width:d,flexShrink:0}:void 0,children:[n,c&&":"]}),jsxRuntime.jsx("span",{className:o(IT({size:a,weight:s,mono:l}),f&&"cursor-pointer hover:bg-accent/50 rounded px-1 -mx-1 transition-colors",u),onClick:f?g:void 0,role:f?"button":void 0,tabIndex:f?0:void 0,onKeyDown:f?x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),g());}:void 0,children:i})]})});bh.displayName="LabeledValue";var vh=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"}}),hh=K__namespace.forwardRef(({className:e,orientation:t,gap:a,...r},n)=>jsxRuntime.jsx("div",{ref:n,className:o(vh({orientation:t,gap:a,className:e})),...r}));hh.displayName="LabeledValueGroup";var wh=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"}}),po=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"}}),Nh=K__namespace.forwardRef(({value:e,defaultValue:t="",onChange:a,onSearch:r,onSelect:n,suggestions:i=[],recentSearches:s=[],onClearRecentSearches:l,trendingSearches:d=[],isLoading:m,showClear:u=true,showIcon:c=true,popoverWidth:f="trigger",emptyMessage:p="No results found",size:h,variant:R,className:g,placeholder:x="Search...",disabled:w,...b},v)=>{let[P,y]=K__namespace.useState(false),[C,M]=K__namespace.useState(t),T=e!==void 0?e:C,N=K__namespace.useRef(null);K__namespace.useImperativeHandle(v,()=>N.current);let S=T.length>0,k=P&&(i.length>0||s.length>0||d.length>0||S),V=H=>{e===void 0&&M(H),a?.(H);},E=()=>{V(""),N.current?.focus();},L=H=>{H?.preventDefault(),T.trim()&&(r?.(T.trim()),y(false));},D=H=>{V(H.label),n?.(H),y(false);},I=H=>{V(H),r?.(H),y(false);},z=H=>{V(H),r?.(H),y(false);},W=K__namespace.useMemo(()=>{let H={};return i.forEach(j=>{let $=j.category||"Results";H[$]||(H[$]=[]),H[$].push(j);}),H},[i]);return jsxRuntime.jsxs(Ne,{open:k,onOpenChange:y,children:[jsxRuntime.jsx(Se,{asChild:true,children:jsxRuntime.jsxs("form",{onSubmit:L,className:o(wh({size:h,variant:R}),g),children:[c&&jsxRuntime.jsx(lucideReact.Search,{className:o(po({size:h}),"ml-3")}),jsxRuntime.jsx("input",{ref:N,type:"text",value:T,onChange:H=>V(H.target.value),onFocus:()=>y(true),placeholder:x,disabled:w,className:o("flex-1 bg-transparent px-3 py-2 outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",!c&&"pl-3"),...b}),u&&S&&!w&&jsxRuntime.jsx("button",{type:"button",onClick:E,className:o("mr-2 rounded-sm p-1 text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",po({size:h})),children:jsxRuntime.jsx(lucideReact.X,{className:"h-full w-full"})})]})}),jsxRuntime.jsx(xe,{className:"p-0",style:{width:f==="trigger"?"var(--radix-popover-trigger-width)":f},align:"start",onOpenAutoFocus:H=>H.preventDefault(),children:jsxRuntime.jsxs(cmdk.Command,{className:"rounded-lg border-0",children:[s.length>0&&!S&&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((H,j)=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>I(H),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:o(po({size:h}))}),jsxRuntime.jsx("span",{className:"flex-1 text-left truncate",children:H}),jsxRuntime.jsx(lucideReact.ArrowRight,{className:o(po({size:h}),"opacity-0 group-hover:opacity-100")})]},j))]}),d.length>0&&!S&&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"})}),d.map((H,j)=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>z(H),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:o(po({size:h}))}),jsxRuntime.jsx("span",{className:"flex-1 text-left truncate",children:H})]},j))]}),S&&jsxRuntime.jsx("div",{className:"p-2",children:m?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"})}):i.length>0?Object.entries(W).map(([H,j])=>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:H})}),j.map($=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>D($),className:"flex w-full items-center gap-2 rounded-sm px-2 py-1.5 text-sm hover:bg-muted",children:[$.icon||jsxRuntime.jsx(lucideReact.Search,{className:o(po({size:h}))}),jsxRuntime.jsxs("div",{className:"flex-1 text-left",children:[jsxRuntime.jsx("div",{className:"truncate",children:$.label}),$.description&&jsxRuntime.jsx("div",{className:"text-xs text-muted-foreground truncate",children:$.description})]})]},$.id))]},H)):jsxRuntime.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:p})})]})})]})});Nh.displayName="SearchBar";var Ph={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"})},Ch=K__namespace.forwardRef(({open:e,onOpenChange:t,items:a=[],recentItems:r=[],placeholder:n="Search...",isLoading:i,emptyMessage:s="No results found.",filter:l,shortcut:d="\u2318K",onSelect:m,footer:u},c)=>{let[f,p]=K__namespace.useState(""),h=K__namespace.useRef(null);K__namespace.useEffect(()=>{e||p("");},[e]);let R=K__namespace.useMemo(()=>{let b={};return a.forEach(v=>{let P=v.category||"Results";b[P]||(b[P]=[]),b[P].push(v);}),b},[a]),g=b=>{b.onSelect?.(),m?.(b),t?.(false);},x=f.length>0,w=!x&&r.length>0;return jsxRuntime.jsx(ne__namespace.Root,{open:e,onOpenChange:t,children:jsxRuntime.jsxs(ne__namespace.Portal,{children:[jsxRuntime.jsx(ne__namespace.Overlay,{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"}),jsxRuntime.jsx(ne__namespace.Content,{ref:c,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",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:h,value:f,onValueChange:p,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"}),f&&jsxRuntime.jsx("button",{type:"button",onClick:()=>p(""),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:i?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:[w&&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"}),r.map(b=>jsxRuntime.jsxs(cmdk.Command.Item,{value:b.label,onSelect:()=>g(b),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:b.icon||Ph[b.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:b.label}),b.description&&jsxRuntime.jsx("div",{className:"truncate text-xs text-muted-foreground",children:b.description})]}),b.shortcut&&jsxRuntime.jsx("div",{className:"flex items-center gap-1",children:b.shortcut.map((v,P)=>jsxRuntime.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 text-xs font-medium",children:v},P))})]},b.id))]}),x&&Object.entries(R).map(([b,v])=>jsxRuntime.jsxs(cmdk.Command.Group,{heading:b,children:[jsxRuntime.jsx("div",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:b}),v.map(P=>jsxRuntime.jsxs(cmdk.Command.Item,{value:`${P.label} ${P.keywords?.join(" ")||""}`,onSelect:()=>g(P),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:P.icon||Ph[b]||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:P.label}),P.description&&jsxRuntime.jsx("div",{className:"truncate text-xs text-muted-foreground",children:P.description})]}),jsxRuntime.jsx(lucideReact.ArrowRight,{className:"h-4 w-4 text-muted-foreground opacity-0 group-aria-selected:opacity-100"})]},P.id))]},b)),jsxRuntime.jsx(cmdk.Command.Empty,{className:"py-10 text-center text-sm text-muted-foreground",children:s})]})}),u?jsxRuntime.jsx("div",{className:"border-t px-4 py-3",children:u}):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:d})," to open"]})]})]})})]})})});Ch.displayName="SpotlightSearch";function UT(e="k"){let[t,a]=K__namespace.useState(false);return K__namespace.useEffect(()=>{let r=n=>{(n.metaKey||n.ctrlKey)&&n.key===e&&(n.preventDefault(),a(i=>!i));};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[e]),{open:t,setOpen:a,toggle:()=>a(r=>!r)}}var eM=classVarianceAuthority.cva("",{variants:{size:{sm:"",md:"",lg:""}},defaultVariants:{size:"md"}}),tM={default:"bg-muted",info:"bg-blue-500/10 text-blue-600 dark:text-blue-400",success:"bg-green-500/10 text-green-600 dark:text-green-400",warning:"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400",error:"bg-red-500/10 text-red-600 dark:text-red-400"},aM=e=>{let t=typeof e=="string"?new Date(e):e,r=new Date().getTime()-t.getTime(),n=Math.floor(r/6e4),i=Math.floor(r/36e5),s=Math.floor(r/864e5);return n<1?"Just now":n<60?`${n}m ago`:i<24?`${i}h ago`:s<7?`${s}d ago`:t.toLocaleDateString()},Sh=K__namespace.forwardRef(({notifications:e=[],onNotificationClick:t,onMarkAsRead:a,onMarkAllAsRead:r,onDismiss:n,onClearAll:i,showSettings:s,onSettingsClick:l,trigger:d,align:m="end",emptyMessage:u="No notifications",maxHeight:c=400,className:f},p)=>{let[h,R]=K__namespace.useState(false),g=e.filter(b=>!b.read).length,x=e.length>0,w=b=>{b.read||a?.(b.id),t?.(b);};return jsxRuntime.jsxs(Ne,{open:h,onOpenChange:R,children:[jsxRuntime.jsx(Se,{asChild:true,children:d||jsxRuntime.jsxs("button",{ref:p,className:o("relative inline-flex h-10 w-10 items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground transition-colors",f),children:[jsxRuntime.jsx(lucideReact.Bell,{className:"h-5 w-5"}),g>0&&jsxRuntime.jsx("span",{className:"absolute -right-1 -top-1 flex h-5 min-w-5 items-center justify-center rounded-full bg-primary px-1 text-[10px] font-medium text-primary-foreground",children:g>99?"99+":g})]})}),jsxRuntime.jsxs(xe,{className:"w-80 p-0 sm:w-96",align:m,sideOffset:8,children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between border-b px-4 py-3",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("h3",{className:"font-semibold",children:"Notifications"}),g>0&&jsxRuntime.jsxs(Ro,{size:"sm",children:[g," new"]})]}),jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[x&&r&&g>0&&jsxRuntime.jsx("button",{type:"button",onClick:r,className:"rounded-sm p-1.5 text-muted-foreground hover:bg-muted hover:text-foreground",title:"Mark all as read",children:jsxRuntime.jsx(lucideReact.CheckCheck,{className:"h-4 w-4"})}),x&&i&&jsxRuntime.jsx("button",{type:"button",onClick:i,className:"rounded-sm p-1.5 text-muted-foreground hover:bg-muted hover:text-foreground",title:"Clear all",children:jsxRuntime.jsx(lucideReact.Trash2,{className:"h-4 w-4"})}),s&&l&&jsxRuntime.jsx("button",{type:"button",onClick:l,className:"rounded-sm p-1.5 text-muted-foreground hover:bg-muted hover:text-foreground",title:"Settings",children:jsxRuntime.jsx(lucideReact.Settings,{className:"h-4 w-4"})})]})]}),x?jsxRuntime.jsx(ze,{style:{maxHeight:c},children:jsxRuntime.jsx("div",{className:"divide-y",children:e.map(b=>jsxRuntime.jsxs("div",{className:o("group relative flex gap-3 px-4 py-3 transition-colors hover:bg-muted/50",!b.read&&"bg-muted/30"),children:[jsxRuntime.jsx("div",{className:o("flex h-9 w-9 shrink-0 items-center justify-center rounded-full",b.avatar?"overflow-hidden":tM[b.type||"default"]),children:b.avatar?jsxRuntime.jsx("img",{src:b.avatar,alt:"",className:"h-full w-full object-cover"}):b.icon?b.icon:jsxRuntime.jsx(lucideReact.Bell,{className:"h-4 w-4"})}),jsxRuntime.jsxs("button",{type:"button",onClick:()=>w(b),className:"flex-1 text-left",children:[jsxRuntime.jsxs("div",{className:"flex items-start justify-between gap-2",children:[jsxRuntime.jsx("p",{className:o("text-sm",!b.read&&"font-medium"),children:b.title}),!b.read&&jsxRuntime.jsx("span",{className:"mt-1.5 h-2 w-2 shrink-0 rounded-full bg-primary"})]}),b.description&&jsxRuntime.jsx("p",{className:"mt-0.5 text-xs text-muted-foreground line-clamp-2",children:b.description}),jsxRuntime.jsx("p",{className:"mt-1 text-[10px] text-muted-foreground",children:aM(b.timestamp)})]}),jsxRuntime.jsxs("div",{className:"absolute right-2 top-2 flex gap-1 opacity-0 transition-opacity group-hover:opacity-100",children:[!b.read&&a&&jsxRuntime.jsx("button",{type:"button",onClick:v=>{v.stopPropagation(),a(b.id);},className:"rounded-sm p-1 text-muted-foreground hover:bg-background hover:text-foreground",title:"Mark as read",children:jsxRuntime.jsx(lucideReact.Check,{className:"h-3.5 w-3.5"})}),(n||b.onDismiss)&&jsxRuntime.jsx("button",{type:"button",onClick:v=>{v.stopPropagation(),b.onDismiss?.(),n?.(b.id);},className:"rounded-sm p-1 text-muted-foreground hover:bg-background hover:text-foreground",title:"Dismiss",children:jsxRuntime.jsx(lucideReact.X,{className:"h-3.5 w-3.5"})})]})]},b.id))})}):jsxRuntime.jsxs("div",{className:"flex flex-col items-center justify-center py-10 text-center",children:[jsxRuntime.jsx(lucideReact.Bell,{className:"h-10 w-10 text-muted-foreground/50"}),jsxRuntime.jsx("p",{className:"mt-3 text-sm text-muted-foreground",children:u})]})]})]})});Sh.displayName="NotificationCenter";var Th=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"}}),dM={default:lucideReact.Info,success:lucideReact.CheckCircle2,warning:lucideReact.AlertTriangle,error:lucideReact.AlertCircle},Mh=K__namespace.forwardRef(({message:e,type:t="default",variant:a="solid",showIcon:r=false,icon:n,dismissible:i=true,onDismiss:s,endContent:l,position:d,animate:m,autoDismiss:u,storageKey:c,className:f,...p},h)=>{let[R,g]=K__namespace.useState(true),[x,w]=K__namespace.useState(false);K__namespace.useEffect(()=>{c&&localStorage.getItem(`banner-${c}`)==="true"&&g(false);},[c]),K__namespace.useEffect(()=>{if(u&&R){let y=setTimeout(()=>{b();},u);return ()=>clearTimeout(y)}},[u,R]);let b=()=>{w(true),setTimeout(()=>{g(false),c&&localStorage.setItem(`banner-${c}`,"true"),s?.();},200);};if(!R)return null;let v=dM[t],P=r?n!==void 0?n:v?jsxRuntime.jsx(v,{className:"h-4 w-4"}):null:null;return jsxRuntime.jsxs("div",{ref:h,className:o(Th({variant:a,type:t,position:d}),m&&"animate-pulse",x&&"animate-out fade-out slide-out-to-top duration-200",f),role:"banner",...p,children:[P&&jsxRuntime.jsx("span",{className:"shrink-0",children:P}),jsxRuntime.jsx("span",{className:"text-center font-medium",children:e}),l&&jsxRuntime.jsx("div",{className:"shrink-0 ml-2",children:l}),i&&jsxRuntime.jsx("button",{type:"button",onClick:b,className:o("absolute right-2 top-1/2 -translate-y-1/2 rounded-sm p-1 transition-opacity hover:opacity-70 cursor-pointer",d==="relative"&&"right-4"),"aria-label":"Dismiss banner",children:jsxRuntime.jsx(lucideReact.X,{className:"h-4 w-4"})})]})});Mh.displayName="Banner";var sn=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:{default:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-muted",ghost:"bg-background hover:bg-muted shadow-md"},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:"default",size:"md",position:"bottom-right"}}),uM=classVarianceAuthority.cva("transition-transform duration-200",{variants:{size:{sm:"h-4 w-4",md:"h-6 w-6",lg:"h-7 w-7"}},defaultVariants:{size:"md"}}),Jl=K__namespace.forwardRef(({icon:e,label:t="Action button",extended:a,extendedLabel:r,actions:n,direction:i="up",showTooltip:s=true,closeIcon:l,animation:d="rotate",variant:m,size:u,position:c,className:f,onClick:p,disabled:h,...R},g)=>{let[x,w]=K__namespace.useState(false),b=n&&n.length>0,v=T=>{b&&w(!x),p?.(T);},P=T=>{T.onClick?.(),w(false);},y={up:{container:"flex-col-reverse bottom-full mb-3",item:"mb-3"},down:{container:"flex-col top-full mt-3",item:"mt-3"},left:{container:"flex-row-reverse right-full mr-3",item:"mr-3"},right:{container:"flex-row left-full ml-3",item:"ml-3"}},C=d==="rotate"&&x?"rotate-45":"",M=d==="scale"&&x?"scale-0":"scale-100";return jsxRuntime.jsxs("div",{className:o("z-50",c!=="relative"&&c&&sn({position:c})),children:[b&&x&&jsxRuntime.jsx("div",{className:o("absolute flex items-center gap-2",y[i].container),children:n.map((T,N)=>jsxRuntime.jsxs("div",{className:o("flex items-center gap-2 animate-in fade-in zoom-in duration-200",i==="up"||i==="down"?"flex-row":"flex-col"),style:{animationDelay:`${N*50}ms`},children:[s&&(i==="up"||i==="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:T.label}),T.href?jsxRuntime.jsx("a",{href:T.href,className:o(sn({variant:T.variant||"secondary",size:u==="lg"?"md":"sm"})),"aria-label":T.label,children:T.icon}):jsxRuntime.jsx("button",{type:"button",onClick:()=>P(T),className:o(sn({variant:T.variant||"secondary",size:u==="lg"?"md":"sm"})),"aria-label":T.label,children:T.icon}),s&&(i==="left"||i==="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:T.label})]},T.id))}),jsxRuntime.jsxs("button",{ref:g,type:"button",onClick:v,disabled:h,className:o(sn({variant:m,size:u,position:"relative"}),a&&"px-6 gap-2",f),"aria-label":t,"aria-expanded":b?x:void 0,...R,children:[x&&l?l:jsxRuntime.jsx("span",{className:o(uM({size:u}),C,M,"transition-all duration-200"),children:e||jsxRuntime.jsx(lucideReact.Plus,{})}),a&&r&&jsxRuntime.jsx("span",{className:"font-medium",children:r})]}),b&&x&&jsxRuntime.jsx("div",{className:"fixed inset-0 -z-10",onClick:()=>w(false)})]})});Jl.displayName="FloatingActionButton";var pM=Jl;var Ih=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"}}),Dh=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"}}),Eh=K__namespace.forwardRef(({className:e,variant:t,size:a,items:r,value:n,defaultValue:i,onValueChange:s,hideLabels:l=false,showActiveLabel:d=false,renderItem:m,...u},c)=>{let[f,p]=K__namespace.useState(i||r[0]?.key),h=n!==void 0,R=h?n:f,g=v=>{v.disabled||(h||p(v.key),s?.(v.key));},x=v=>t==="filled"?v?"text-primary-foreground":"text-primary-foreground/60 hover:text-primary-foreground/80":v?"text-primary":"text-muted-foreground hover:text-foreground",w=()=>{switch(a){case "sm":return "h-5 w-5";case "lg":return "h-7 w-7";default:return "h-6 w-6"}},b=()=>{switch(a){case "sm":return "text-[10px]";case "lg":return "text-sm";default:return "text-xs"}};return jsxRuntime.jsx("nav",{ref:c,className:o(Ih({variant:t,size:a}),e),role:"navigation","aria-label":"Bottom navigation",...u,children:r.map(v=>{let P=R===v.key,y=!l&&(d?P:true),C=P&&v.activeIcon?v.activeIcon:v.icon;if(m)return jsxRuntime.jsx("div",{onClick:()=>g(v),className:o(Dh({variant:t}),v.disabled&&"opacity-50 cursor-not-allowed"),children:m(v,P)},v.key);let M=jsxRuntime.jsxs("div",{onClick:()=>!v.href&&g(v),className:o(Dh({variant:t}),x(P),v.disabled&&"opacity-50 cursor-not-allowed"),role:"button","aria-current":P?"page":void 0,"aria-disabled":v.disabled,tabIndex:v.disabled?-1:0,onKeyDown:T=>{(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),g(v));},children:[jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx("span",{className:o(w(),"[&>svg]:h-full [&>svg]:w-full"),children:C}),v.badge!==void 0&&v.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:v.badge>99?"99+":v.badge}),v.showDot&&jsxRuntime.jsx("span",{className:"absolute -top-0.5 -right-0.5 h-2 w-2 rounded-full bg-red-500"})]}),y&&v.label&&jsxRuntime.jsx("span",{className:o(b(),"font-medium truncate max-w-full px-1"),children:v.label})]},v.key);return v.href&&!v.disabled?jsxRuntime.jsx("a",{href:v.href,onClick:()=>g(v),className:o("flex flex-1 flex-col items-center justify-center gap-1 no-underline",x(P)),children:M},v.key):M})})});Eh.displayName="BottomNavigation";var gM="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",Ah=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"}}),zh=K__namespace.forwardRef(({open:e,onOpenChange:t,trigger:a,title:r,description:n,items:i,cancelLabel:s="Cancel",onCancel:l,showCancel:d=true,children:m,closeOnSelect:u=true,onAction:c},f)=>{let p=h=>{h.isDisabled||(h.onSelect?.(),c?.(h.key),u&&t?.(false));};return jsxRuntime.jsxs(vaul.Drawer.Root,{open:e,onOpenChange:t,children:[a&&jsxRuntime.jsx(vaul.Drawer.Trigger,{asChild:true,children:a}),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:f,className:gM,children:[jsxRuntime.jsx("div",{className:"mx-auto mt-4 h-1.5 w-12 flex-shrink-0 rounded-full bg-muted"}),(r||n)&&jsxRuntime.jsxs("div",{className:"px-4 py-3 text-center",children:[r&&jsxRuntime.jsx(vaul.Drawer.Title,{className:"text-base font-semibold",children:r}),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:m||jsxRuntime.jsx("div",{className:"divide-y divide-border/40 dark:divide-border/20",children:i?.map(h=>jsxRuntime.jsxs("button",{type:"button",disabled:h.isDisabled,onClick:()=>p(h),className:o(Ah({variant:h.isDestructive?"destructive":"default"})),children:[h.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 flex-shrink-0 [&>svg]:h-full [&>svg]:w-full",children:h.icon}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("div",{className:"font-medium",children:h.label}),h.description&&jsxRuntime.jsx("div",{className:"text-sm text-muted-foreground truncate",children:h.description})]})]},h.key))})}),d&&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})})})]})]})]})});zh.displayName="ActionSheet";var Fh=classVarianceAuthority.cva("relative overflow-hidden touch-pan-y",{variants:{variant:{default:"",card:"rounded-lg border bg-card"}},defaultVariants:{variant:"default"}}),ed=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"}}),Oh=K__namespace.forwardRef(({className:e,variant:t,leftActions:a=[],rightActions:r=[],actionSize:n="md",threshold:i=.3,onSwipeEnd:s,disabled:l=false,fullSwipeAction:d,children:m,...u},c)=>{let f=K__namespace.useRef(null),[p,h]=K__namespace.useState(0),[R,g]=K__namespace.useState(false),x=K__namespace.useRef(0),w=K__namespace.useRef(0),b=a.length*(n==="sm"?64:n==="lg"?96:80),v=r.length*(n==="sm"?64:n==="lg"?96:80),P=N=>{l||(g(true),x.current=N.touches[0].clientX,w.current=p);},y=N=>{if(!R||l)return;let k=N.touches[0].clientX-x.current,V=w.current+k;(V>0&&a.length===0||V<0&&r.length===0)&&(V=0),V>b?V=b+(V-b)*.3:V<-v&&(V=-v+(V+v)*.3),h(V);},C=()=>{if(!R)return;g(false);let N=f.current?.offsetWidth||0,S=Math.abs(p)/N;if(d&&S>.6){d==="right"&&p>0&&a[0]?(a[0].onAction?.(),s?.("right",a[0].key)):d==="left"&&p<0&&r[0]&&(r[0].onAction?.(),s?.("left",r[0].key)),h(0);return}p>b*i&&a.length>0?(h(b),s?.("right")):p<-v*i&&r.length>0?(h(-v),s?.("left")):h(0);},M=(N,S)=>{N.onAction?.(),s?.(S,N.key),h(0);},T=()=>{h(0);};return jsxRuntime.jsxs("div",{ref:c,className:o(Fh({variant:t,className:e})),...u,children:[a.length>0&&jsxRuntime.jsx("div",{className:"absolute left-0 top-0 bottom-0 flex",style:{width:b},children:a.map(N=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>M(N,"right"),className:o(ed({variant:N.variant,size:n})),style:{opacity:Math.min(1,p/b)},children:[N.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 [&>svg]:h-full [&>svg]:w-full",children:N.icon}),!N.icon&&N.label]},N.key))}),r.length>0&&jsxRuntime.jsx("div",{className:"absolute right-0 top-0 bottom-0 flex",style:{width:v},children:r.map(N=>jsxRuntime.jsxs("button",{type:"button",onClick:()=>M(N,"left"),className:o(ed({variant:N.variant,size:n})),style:{opacity:Math.min(1,Math.abs(p)/v)},children:[N.icon&&jsxRuntime.jsx("span",{className:"h-5 w-5 [&>svg]:h-full [&>svg]:w-full",children:N.icon}),!N.icon&&N.label]},N.key))}),jsxRuntime.jsx("div",{ref:f,className:o("relative bg-background",R?"":"transition-transform duration-200"),style:{transform:`translateX(${p}px)`},onTouchStart:P,onTouchMove:y,onTouchEnd:C,onClick:p!==0?T:void 0,children:m})]})});Oh.displayName="SwipeActions";var Wh=classVarianceAuthority.cva("relative overflow-hidden",{variants:{variant:{default:"",contained:"h-full"}},defaultVariants:{variant:"default"}}),hM=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"}}),$h=K__namespace.forwardRef(({className:e,variant:t,onRefresh:a,pullThreshold:r=80,maxPullDistance:n=120,loadingIndicator:i,pullIndicator:s,indicatorSize:l="md",disabled:d=false,pullText:m="Pull to refresh",releaseText:u="Release to refresh",refreshingText:c="Refreshing...",children:f,...p},h)=>{let R=K__namespace.useRef(null),[g,x]=K__namespace.useState(0),[w,b]=K__namespace.useState("idle"),v=K__namespace.useRef(0),P=K__namespace.useRef(false),y=()=>d||w==="refreshing"?false:(R.current?.scrollTop??window.scrollY)<=0,C=k=>{y()&&(v.current=k.touches[0].clientY,P.current=true);},M=k=>{if(!P.current||!y())return;let E=k.touches[0].clientY-v.current;if(E<0){x(0),b("idle");return}let D=Math.min(E*.5,n);x(D),b(D>=r?"ready":"pulling");},T=async()=>{if(P.current)if(P.current=false,w==="ready"){b("refreshing"),x(r*.6);try{await a();}finally{b("idle"),x(0);}}else b("idle"),x(0);},N={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6"}[l],S=()=>{if(w==="refreshing")return i||jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-1",children:[jsxRuntime.jsx(lucideReact.Loader2,{className:o(N,"animate-spin text-primary")}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:c})]});let k=Math.min(g/r*180,180);return s||jsxRuntime.jsxs("div",{className:"flex flex-col items-center gap-1",children:[jsxRuntime.jsx(lucideReact.ArrowDown,{className:o(N,"text-muted-foreground transition-transform"),style:{transform:`rotate(${k}deg)`}}),jsxRuntime.jsx("span",{className:"text-xs text-muted-foreground",children:w==="ready"?u:m})]})};return jsxRuntime.jsxs("div",{ref:h,className:o(Wh({variant:t,className:e})),...p,children:[jsxRuntime.jsx("div",{className:o(hM({size:l}),"z-10",w==="idle"&&g===0&&"opacity-0"),style:{top:Math.max(g-60,-60),opacity:Math.min(g/(r*.5),1)},children:S()}),jsxRuntime.jsx("div",{ref:R,className:o("transition-transform duration-200",w==="refreshing"&&"ease-out"),style:{transform:`translateY(${g}px)`,transition:P.current?"none":void 0},onTouchStart:C,onTouchMove:M,onTouchEnd:T,children:f})]})});$h.displayName="PullToRefresh";var Kh=classVarianceAuthority.cva("flex min-h-screen w-full",{variants:{layout:{default:"flex-col",sidebar:"flex-row"}},defaultVariants:{layout:"default"}}),Uh=K__namespace.forwardRef(({className:e,layout:t="default",header:a,footer:r,sidebar:n,aside:i,sidebarCollapsed:s=false,sidebarWidth:l="16rem",sidebarCollapsedWidth:d="4rem",asideWidth:m="16rem",fixed:u=false,children:c,...f},p)=>{let h=s?d:l;return jsxRuntime.jsxs("div",{ref:p,className:o(Kh({layout:t}),e),style:{"--app-shell-sidebar-width":h,"--app-shell-aside-width":m},...f,children:[a&&jsxRuntime.jsx(ad,{fixed:u,hasSidebar:!!n,children:a}),jsxRuntime.jsxs("div",{className:"flex flex-1",children:[n&&jsxRuntime.jsx(rd,{collapsed:s,fixed:u,children:n}),jsxRuntime.jsx("main",{className:o("flex-1 flex flex-col min-h-0",u&&a&&"pt-14",u&&r&&"pb-14"),children:c}),i&&jsxRuntime.jsx(od,{fixed:u,children:i})]}),r&&jsxRuntime.jsx(nd,{fixed:u,hasSidebar:!!n,children:r})]})});Uh.displayName="AppShell";var ad=K__namespace.forwardRef(({className:e,fixed:t,hasSidebar:a,children:r,...n},i)=>jsxRuntime.jsx("header",{ref:i,className:o("flex h-14 items-center border-b bg-background px-4",t&&"fixed top-0 right-0 z-40",t&&a&&"left-[var(--app-shell-sidebar-width)]",t&&!a&&"left-0",e),...n,children:r}));ad.displayName="AppShellHeader";var rd=K__namespace.forwardRef(({className:e,collapsed:t,fixed:a,children:r,...n},i)=>jsxRuntime.jsx("aside",{ref:i,className:o("w-[var(--app-shell-sidebar-width)] shrink-0 border-r bg-background transition-[width] duration-200",a&&"fixed left-0 top-0 bottom-0 z-50",e),"data-collapsed":t,...n,children:r}));rd.displayName="AppShellSidebar";var od=K__namespace.forwardRef(({className:e,fixed:t,children:a,...r},n)=>jsxRuntime.jsx("aside",{ref:n,className:o("w-[var(--app-shell-aside-width)] shrink-0 border-l bg-background",t&&"fixed right-0 top-14 bottom-0 z-40",e),...r,children:a}));od.displayName="AppShellAside";var nd=K__namespace.forwardRef(({className:e,fixed:t,hasSidebar:a,children:r,...n},i)=>jsxRuntime.jsx("footer",{ref:i,className:o("flex h-14 items-center border-t bg-background px-4",t&&"fixed bottom-0 right-0 z-40",t&&a&&"left-[var(--app-shell-sidebar-width)]",t&&!a&&"left-0",e),...n,children:r}));nd.displayName="AppShellFooter";var Yh=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex-1 overflow-auto p-4",e),...t}));Yh.displayName="AppShellMain";var Xh=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"}}),qh=K__namespace.forwardRef(({className:e,variant:t,navigation:a,logo:r,userMenu:n,headerActions:i,breadcrumb:s,defaultCollapsed:l=false,collapsed:d,onCollapsedChange:m,children:u,...c},f)=>{let[p,h]=K__namespace.useState(l),[R,g]=K__namespace.useState(false),x=d??p,w=K__namespace.useCallback(b=>{h(b),m?.(b);},[m]);return jsxRuntime.jsxs("div",{ref:f,className:o(Xh({variant:t}),e),...c,children:[jsxRuntime.jsxs("aside",{"data-slot":"sidebar","data-collapsed":x,className:o("hidden lg:flex flex-col fixed inset-y-0 left-0 z-50 bg-background transition-[width] duration-200",x?"w-16":"w-64"),children:[jsxRuntime.jsx("div",{className:"flex h-14 items-center border-b px-4",children:r}),jsxRuntime.jsx("nav",{className:"flex-1 overflow-auto py-4",children:a}),n&&jsxRuntime.jsx("div",{className:"border-t p-4",children:n})]}),jsxRuntime.jsx(Do,{open:R,onOpenChange:g,children:jsxRuntime.jsxs(Ar,{side:"left",className:"w-64 p-0",children:[jsxRuntime.jsx("div",{className:"flex h-14 items-center border-b px-4",children:r}),jsxRuntime.jsx("nav",{className:"flex-1 overflow-auto py-4",children:a}),n&&jsxRuntime.jsx("div",{className:"border-t p-4",children:n})]})}),jsxRuntime.jsxs("div",{className:o("flex flex-1 flex-col transition-[margin-left] duration-200",x?"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(G,{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(G,{variant:"ghost",size:"icon",className:"hidden lg:flex",onClick:()=>w(!x),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}),i&&jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:i})]}),jsxRuntime.jsx("main",{className:"flex-1 p-4 lg:p-6",children:u})]})]})});qh.displayName="DashboardLayout";var Zh=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("space-y-6",e),...t}));Zh.displayName="DashboardPage";var Jh=K__namespace.forwardRef(({className:e,title:t,description:a,actions:r,children:n,...i},s)=>jsxRuntime.jsxs("div",{ref:s,className:o("flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",e),...i,children:[jsxRuntime.jsxs("div",{className:"space-y-1",children:[t&&jsxRuntime.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:t}),a&&jsxRuntime.jsx("p",{className:"text-muted-foreground",children:a}),n]}),r&&jsxRuntime.jsx("div",{className:"flex items-center gap-2",children:r})]}));Jh.displayName="DashboardPageHeader";var Qh=K__namespace.forwardRef(({className:e,columns:t=4,...a},r)=>jsxRuntime.jsx("div",{ref:r,className:o("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),...a}));Qh.displayName="DashboardGrid";var qi=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"}}),ex=K__namespace.forwardRef(({className:e,variant:t="centered",logo:a,sideContent:r,backgroundImage:n,sidePosition:i="left",footer:s,children:l,...d},m)=>t==="split"?jsxRuntime.jsxs("div",{ref:m,className:o(qi({variant:t}),e),...d,children:[jsxRuntime.jsx("div",{className:o("hidden lg:flex lg:w-1/2 flex-col bg-primary text-primary-foreground",i==="right"&&"order-2"),children:r||jsxRuntime.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center p-8",children:[a&&jsxRuntime.jsx("div",{className:"mb-8",children:a}),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:o("flex flex-1 flex-col lg:w-1/2",i==="right"&&"order-1"),children:[a&&jsxRuntime.jsx("div",{className:"flex items-center justify-center p-6 lg:hidden",children:a}),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:m,className:o(qi({variant:t}),e),style:n?{backgroundImage:`url(${n})`,backgroundSize:"cover",backgroundPosition:"center"}:void 0,...d,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:[a&&jsxRuntime.jsx("div",{className:"mb-8 flex justify-center",children:a}),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:m,className:o(qi({variant:t}),e),...d,children:jsxRuntime.jsxs("div",{className:"w-full max-w-md p-6",children:[a&&jsxRuntime.jsx("div",{className:"mb-8 flex justify-center",children:a}),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})]})}));ex.displayName="AuthLayout";var tx=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("form",{ref:a,className:o("space-y-4",e),...t}));tx.displayName="AuthForm";var ax=K__namespace.forwardRef(({className:e,title:t,description:a,children:r,...n},i)=>jsxRuntime.jsxs("div",{ref:i,className:o("space-y-2 text-center",e),...n,children:[t&&jsxRuntime.jsx("h1",{className:"text-2xl font-bold",children:t}),a&&jsxRuntime.jsx("p",{className:"text-muted-foreground",children:a}),r]}));ax.displayName="AuthHeader";var rx=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("flex flex-col gap-2 text-center text-sm",e),...t}));rx.displayName="AuthFooterLinks";var ox=K__namespace.forwardRef(({className:e,text:t="or continue with",...a},r)=>jsxRuntime.jsxs("div",{ref:r,className:o("relative my-4",e),...a,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})})]}));ox.displayName="AuthDivider";var nx=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("grid grid-cols-2 gap-2",e),...t}));nx.displayName="AuthSocialButtons";var Zi=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"}}),ix=K__namespace.forwardRef(({className:e,variant:t="sidebar",navigation:a,title:r,description:n,children:i,...s},l)=>t==="sidebar"?jsxRuntime.jsxs("div",{ref:l,className:o(Zi({variant:t}),e),...s,children:[a&&jsxRuntime.jsx("aside",{className:"lg:w-64 shrink-0",children:jsxRuntime.jsx("nav",{className:"flex flex-col gap-1",children:a})}),jsxRuntime.jsxs("div",{className:"flex-1 space-y-6",children:[(r||n)&&jsxRuntime.jsx(dn,{title:r,description:n}),i]})]}):t==="tabs"?jsxRuntime.jsxs("div",{ref:l,className:o(Zi({variant:t}),e),...s,children:[(r||n)&&jsxRuntime.jsx(dn,{title:r,description:n}),a,jsxRuntime.jsx("div",{className:"pt-4",children:i})]}):jsxRuntime.jsxs("div",{ref:l,className:o(Zi({variant:t}),e),...s,children:[(r||n)&&jsxRuntime.jsx(dn,{title:r,description:n}),i]}));ix.displayName="SettingsLayout";var dn=K__namespace.forwardRef(({className:e,title:t,description:a,children:r,...n},i)=>jsxRuntime.jsxs("div",{ref:i,className:o("space-y-1",e),...n,children:[t&&jsxRuntime.jsx("h1",{className:"text-2xl font-bold",children:t}),a&&jsxRuntime.jsx("p",{className:"text-muted-foreground",children:a}),r]}));dn.displayName="SettingsHeader";var sx=K__namespace.forwardRef(({className:e,title:t,description:a,children:r,...n},i)=>jsxRuntime.jsxs("div",{ref:i,className:o("space-y-4",e),...n,children:[(t||a)&&jsxRuntime.jsxs("div",{className:"space-y-1",children:[t&&jsxRuntime.jsx("h2",{className:"text-lg font-medium",children:t}),a&&jsxRuntime.jsx("p",{className:"text-sm text-muted-foreground",children:a})]}),r]}));sx.displayName="SettingsSection";var lx=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("rounded-lg border bg-card p-6",e),...t}));lx.displayName="SettingsCard";var dx=K__namespace.forwardRef(({className:e,label:t,description:a,htmlFor:r,children:n,...i},s)=>jsxRuntime.jsxs("div",{ref:s,className:o("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),...i,children:[jsxRuntime.jsxs("div",{className:"space-y-0.5",children:[t&&jsxRuntime.jsx("label",{htmlFor:r,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:t}),a&&jsxRuntime.jsx("p",{className:"text-sm text-muted-foreground",children:a})]}),jsxRuntime.jsx("div",{className:"shrink-0",children:n})]}));dx.displayName="SettingsRow";var cx=K__namespace.forwardRef(({className:e,active:t,icon:a,children:r,...n},i)=>jsxRuntime.jsxs("button",{ref:i,type:"button",className:o("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:[a&&jsxRuntime.jsx("span",{className:"h-4 w-4 [&>svg]:h-full [&>svg]:w-full",children:a}),r]}));cx.displayName="SettingsNavItem";var mx=K__namespace.forwardRef(({className:e,...t},a)=>jsxRuntime.jsx("div",{ref:a,className:o("h-px bg-border my-4",e),...t}));mx.displayName="SettingsSeparator";var Ir=(e,t,a)=>({duration:e,delay:t,ease:a||[.4,0,.2,1]}),NM={hidden:e=>({opacity:e}),visible:{opacity:1},exit:e=>({opacity:e})},ux=K__namespace.forwardRef(({show:e=true,children:t,duration:a=.3,delay:r=0,ease:n,className:i,unmountOnExit:s=true,initialOpacity:l=0,onAnimationStart:d,onAnimationComplete:m},u)=>{let c=jsxRuntime.jsx(framerMotion.motion.div,{ref:u,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:NM,custom:l,transition:Ir(a,r,n),className:o(i),onAnimationStart:d,onAnimationComplete:m,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&c}):c});ux.displayName="Fade";var PM=(e,t)=>{let a=typeof t=="number"?`${t}px`:t,r={up:{y:a},down:{y:`-${a}`},left:{x:a},right:{x:`-${a}`}};return {hidden:{opacity:0,...r[e]},visible:{opacity:1,x:0,y:0},exit:{opacity:0,...r[e]}}},px=K__namespace.forwardRef(({show:e=true,children:t,duration:a=.3,delay:r=0,ease:n,className:i,unmountOnExit:s=true,direction:l="up",offset:d=20,onAnimationStart:m,onAnimationComplete:u},c)=>{let f=K__namespace.useMemo(()=>PM(l,d),[l,d]),p=jsxRuntime.jsx(framerMotion.motion.div,{ref:c,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:f,transition:Ir(a,r,n),className:o(i),onAnimationStart:m,onAnimationComplete:u,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&p}):p});px.displayName="Slide";var CM={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"},SM={hidden:e=>({opacity:0,scale:e}),visible:{opacity:1,scale:1},exit:e=>({opacity:0,scale:e})},fx=K__namespace.forwardRef(({show:e=true,children:t,duration:a=.3,delay:r=0,ease:n,className:i,unmountOnExit:s=true,initialScale:l=.9,origin:d="center",onAnimationStart:m,onAnimationComplete:u},c)=>{let f=jsxRuntime.jsx(framerMotion.motion.div,{ref:c,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:SM,custom:l,transition:Ir(a,r,n),className:o(i),style:{transformOrigin:CM[d]},onAnimationStart:m,onAnimationComplete:u,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&f}):f});fx.displayName="Scale";var gx=K__namespace.forwardRef(({show:e=true,children:t,duration:a=.3,delay:r=0,ease:n,className:i,horizontal:s=false,startingSize:l=0,animateOpacity:d=true,onAnimationStart:m,onAnimationComplete:u},c)=>{let f=s?"width":"height",p={hidden:{[f]:l,opacity:d?0:1},visible:{[f]:"auto",opacity:1},exit:{[f]:l,opacity:d?0:1}};return jsxRuntime.jsx(framerMotion.AnimatePresence,{initial:false,children:e&&jsxRuntime.jsx(framerMotion.motion.div,{ref:c,initial:"hidden",animate:"visible",exit:"exit",variants:p,transition:Ir(a,r,n),className:o("overflow-hidden",i),onAnimationStart:m,onAnimationComplete:u,children:t})})});gx.displayName="Collapse";var bx=K__namespace.forwardRef(({show:e=true,children:t,duration:a=.4,delay:r=0,ease:n,className:i,initialWidth:s=0,initialHeight:l=0,animateOpacity:d=true,onAnimationStart:m,onAnimationComplete:u},c)=>{let f={hidden:{width:s,height:l,opacity:d?0:1},visible:{width:"auto",height:"auto",opacity:1},exit:{width:s,height:l,opacity:d?0:1}};return jsxRuntime.jsx(framerMotion.AnimatePresence,{initial:false,children:e&&jsxRuntime.jsx(framerMotion.motion.div,{ref:c,initial:"hidden",animate:"visible",exit:"exit",variants:f,transition:Ir(a,r,n),className:o("overflow-hidden",i),onAnimationStart:m,onAnimationComplete:u,children:t})})});bx.displayName="Expand";var vx=K__namespace.forwardRef(({show:e=true,children:t,duration:a=.3,delay:r=0,ease:n,className:i,unmountOnExit:s=true,initialRotation:l=-180,finalRotation:d=0,onAnimationStart:m,onAnimationComplete:u},c)=>{let f={hidden:{opacity:0,rotate:l},visible:{opacity:1,rotate:d},exit:{opacity:0,rotate:l}},p=jsxRuntime.jsx(framerMotion.motion.div,{ref:c,initial:"hidden",animate:e?"visible":"hidden",exit:s?"exit":void 0,variants:f,transition:Ir(a,r,n),className:o(i),onAnimationStart:m,onAnimationComplete:u,children:t});return s?jsxRuntime.jsx(framerMotion.AnimatePresence,{children:e&&p}):p});vx.displayName="Rotate";var hx=K__namespace.forwardRef(({front:e,back:t,direction:a="horizontal",flipped:r=false,duration:n=.6,delay:i=0,ease:s,className:l,onAnimationStart:d,onAnimationComplete:m},u)=>{let c=a==="horizontal"?"rotateY":"rotateX";return jsxRuntime.jsx("div",{ref:u,className:o("relative",l),style:{perspective:1e3},children:jsxRuntime.jsxs(framerMotion.motion.div,{animate:{[c]:r?180:0},transition:Ir(n,i,s),style:{transformStyle:"preserve-3d"},onAnimationStart:d,onAnimationComplete:m,children:[jsxRuntime.jsx("div",{className:"absolute inset-0",style:{backfaceVisibility:"hidden"},children:e}),jsxRuntime.jsx("div",{className:"absolute inset-0",style:{backfaceVisibility:"hidden",transform:`${c}(180deg)`},children:t})]})})});hx.displayName="Flip";var xx=K__namespace.forwardRef(({color:e="currentColor",duration:t=.6,children:a,className:r,disabled:n=false},i)=>{let[s,l]=K__namespace.useState([]),d=K__namespace.useRef(null),m=c=>{if(n)return;let f=d.current;if(!f)return;let p=f.getBoundingClientRect(),h=c.clientX-p.left,R=c.clientY-p.top,g=Math.max(p.width,p.height)*2,x={id:Date.now(),x:h,y:R,size:g};l(w=>[...w,x]);},u=c=>{l(f=>f.filter(p=>p.id!==c));};return jsxRuntime.jsxs("div",{ref:i,className:o("relative overflow-hidden",r),onClick:m,children:[jsxRuntime.jsx("div",{ref:d,className:"relative z-0",children:a}),jsxRuntime.jsx(framerMotion.AnimatePresence,{children:s.map(c=>jsxRuntime.jsx(framerMotion.motion.span,{initial:{scale:0,opacity:.35},animate:{scale:1,opacity:0},exit:{opacity:0},transition:{duration:t,ease:"easeOut"},onAnimationComplete:()=>u(c.id),className:"pointer-events-none absolute rounded-full",style:{left:c.x-c.size/2,top:c.y-c.size/2,width:c.size,height:c.size,backgroundColor:e}},c.id))})]})});xx.displayName="Ripple";var yx=K__namespace.forwardRef(({children:e,animate:t=true,height:a=10,duration:r=.5,count:n=0,className:i,triggerOnHover:s=false},l)=>{let[d,m]=K__namespace.useState(false),u=s?d:t,c={idle:{y:0},bounce:{y:[0,-a,0],transition:{duration:r,ease:"easeInOut",repeat:n===0?1/0:n-1,repeatType:"loop"}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,variants:c,initial:"idle",animate:u?"bounce":"idle",className:o(i),onMouseEnter:()=>s&&m(true),onMouseLeave:()=>s&&m(false),children:e})});yx.displayName="Bounce";var kM={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]},Rx=K__namespace.forwardRef(({children:e,animate:t=true,intensity:a="normal",duration:r=.5,count:n=1,className:i,triggerOnHover:s=false},l)=>{let[d,m]=K__namespace.useState(false),u=s?d:t,c={idle:{x:0},shake:{x:kM[a],transition:{duration:r,ease:"easeInOut",repeat:n-1}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,variants:c,initial:"idle",animate:u?"shake":"idle",className:o(i),onMouseEnter:()=>s&&m(true),onMouseLeave:()=>s&&m(false),children:e})});Rx.displayName="Shake";var DM={slow:"animate-[pulse_3s_ease-in-out_infinite]",normal:"animate-[pulse_2s_ease-in-out_infinite]",fast:"animate-[pulse_1s_ease-in-out_infinite]"},wx=K__namespace.forwardRef(({children:e,animate:t=true,speed:a="normal",className:r},n)=>jsxRuntime.jsx("div",{ref:n,className:o(t&&DM[a],r),children:e}));wx.displayName="Pulse";var Nx=K__namespace.forwardRef(({children:e,animate:t=true,angle:a=10,duration:r=.3,count:n=0,className:i,triggerOnHover:s=false},l)=>{let[d,m]=K__namespace.useState(false),u=s?d:t,c={idle:{rotate:0},wiggle:{rotate:[0,-a,a,-a,a,0],transition:{duration:r,ease:"easeInOut",repeat:n===0?1/0:n-1,repeatType:"loop"}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,variants:c,initial:"idle",animate:u?"wiggle":"idle",className:o(i),onMouseEnter:()=>s&&m(true),onMouseLeave:()=>s&&m(false),children:e})});Nx.displayName="Wiggle";var Px=K__namespace.forwardRef(({children:e,animate:t=false,scale:a=1.2,duration:r=.2,className:n,triggerOnHover:i=false,triggerOnClick:s=false},l)=>{let[d,m]=K__namespace.useState(false),u=t||d,c={type:"spring",stiffness:400,damping:17,duration:r},f=()=>{s&&(m(true),setTimeout(()=>m(false),r*1e3));};return jsxRuntime.jsx(framerMotion.motion.div,{ref:l,animate:{scale:u?a:1},transition:c,className:o(n),onMouseEnter:()=>i&&m(true),onMouseLeave:()=>i&&m(false),onClick:f,children:e})});Px.displayName="Pop";var HM=(e,t,a,r)=>{let n=e.toFixed(t),[i,s]=n.split("."),l=i.replace(/\B(?=(\d{3})+(?!\d))/g,a);return s?`${l}${r}${s}`:l},Cx=K__namespace.forwardRef(({value:e,from:t=0,duration:a=2,decimals:r=0,prefix:n="",suffix:i="",separator:s=",",decimalSeparator:l=".",animateOnView:d=true,delay:m=0,className:u,onComplete:c},f)=>{let p=K__namespace.useRef(null),h=framerMotion.useInView(p,{once:true}),[R,g]=K__namespace.useState(!d);K__namespace.useEffect(()=>{if(d&&h){let v=setTimeout(()=>g(true),m*1e3);return ()=>clearTimeout(v)}},[d,h,m]);let x={damping:30,stiffness:100,duration:a*1e3},w=framerMotion.useSpring(R?e:t,x),b=framerMotion.useTransform(w,v=>HM(v,r,s,l));return K__namespace.useEffect(()=>{R&&w.set(e);},[R,e,w]),K__namespace.useEffect(()=>{let v=w.on("change",P=>{Math.abs(P-e)<.01&&c&&c();});return ()=>v()},[w,e,c]),jsxRuntime.jsx("span",{ref:p,className:o(u),children:jsxRuntime.jsxs("span",{ref:f,children:[n,jsxRuntime.jsx(framerMotion.motion.span,{children:b}),i]})})});Cx.displayName="Counter";var Sx=K__namespace.forwardRef(({text:e,speed:t=50,delay:a=0,pauseBetween:r=1500,cursor:n=true,cursorChar:i="|",loop:s=false,deleteSpeed:l=30,animateOnView:d=true,className:m,cursorClassName:u,onComplete:c},f)=>{let p=Array.isArray(e)?e:[e],[h,R]=K__namespace.useState(""),[g,x]=K__namespace.useState(0),[w,b]=K__namespace.useState(false),[v,P]=K__namespace.useState(false),y=K__namespace.useRef(null),C=framerMotion.useInView(y,{once:true}),[M,T]=K__namespace.useState(!d);return K__namespace.useEffect(()=>{if(d&&C){let N=setTimeout(()=>T(true),a*1e3);return ()=>clearTimeout(N)}},[d,C,a]),K__namespace.useEffect(()=>{if(!M||v)return;let N=p[g],S;return w?h.length>0?S=setTimeout(()=>{R(h.slice(0,-1));},l):(b(false),x(k=>(k+1)%p.length)):h.length<N.length?S=setTimeout(()=>{R(N.slice(0,h.length+1));},t):g<p.length-1||s?S=setTimeout(()=>{b(true);},r):(P(true),c?.()),()=>clearTimeout(S)},[M,h,g,w,v,p,t,l,r,s,c]),jsxRuntime.jsxs("span",{ref:y,className:o(m),children:[jsxRuntime.jsx("span",{ref:f,children:h}),n&&jsxRuntime.jsx(framerMotion.motion.span,{animate:{opacity:[1,0]},transition:{duration:.8,repeat:1/0,repeatType:"reverse"},className:o("ml-0.5",u),children:i})]})});Sx.displayName="Typewriter";var Tx=K__namespace.forwardRef(({children:e,direction:t="up",stagger:a=.05,duration:r=.5,delay:n=0,splitBy:i="word",animateOnView:s=true,className:l},d)=>{let m=K__namespace.useRef(null),u=framerMotion.useInView(m,{once:true,amount:.5}),c=s?u:true,f=typeof e=="string"?e:"",p=i==="word"?f.split(" "):f.split(""),h={up:{y:20},down:{y:-20},left:{x:20},right:{x:-20}},R={hidden:{},visible:{transition:{staggerChildren:a,delayChildren:n}}},g={hidden:{opacity:0,...h[t]},visible:{opacity:1,x:0,y:0,transition:{duration:r,ease:"easeInOut"}}};return jsxRuntime.jsx(framerMotion.motion.div,{ref:d,className:o("inline-flex flex-wrap",l),variants:R,initial:"hidden",animate:c?"visible":"hidden",children:jsxRuntime.jsx("span",{ref:m,children:p.map((x,w)=>jsxRuntime.jsxs(framerMotion.motion.span,{variants:g,className:"inline-block",children:[x,i==="word"&&w<p.length-1&&"\xA0"]},w))})})});Tx.displayName="TextReveal";var Mx=K__namespace.forwardRef(({words:e,duration:t=2,animation:a="slide",animationDuration:r=.5,className:n,loop:i=true},s)=>{let[l,d]=K__namespace.useState(0);K__namespace.useEffect(()=>{if(!i&&l===e.length-1)return;let u=setInterval(()=>{d(c=>(c+1)%e.length);},t*1e3);return ()=>clearInterval(u)},[e.length,t,i,l]);let m=()=>{switch(a){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:o("relative inline-block",n),children:jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:"wait",children:jsxRuntime.jsx(framerMotion.motion.span,{variants:m(),initial:"initial",animate:"animate",exit:"exit",transition:{duration:r},className:"inline-block",children:e[l]},e[l])})})});Mx.displayName="WordRotate";var Lx=K__namespace.forwardRef(({children:e,direction:t="up",distance:a=50,duration:r=.6,delay:n=0,once:i=true,threshold:s=.1,className:l,scale:d,rotate:m,blur:u,ease:c=[.4,0,.2,1]},f)=>{let p=K__namespace.useRef(null),h=framerMotion.useInView(p,{once:i,amount:s}),g={up:{x:0,y:a},down:{x:0,y:-a},left:{x:a,y:0},right:{x:-a,y:0},none:{x:0,y:0}}[t],x={hidden:{opacity:0,x:g.x,y:g.y,scale:d??1,rotate:m??0,filter:u?`blur(${u}px)`:"blur(0px)"},visible:{opacity:1,x:0,y:0,scale:1,rotate:0,filter:"blur(0px)",transition:{duration:r,delay:n,ease:c}}};return jsxRuntime.jsx("div",{ref:p,children:jsxRuntime.jsx(framerMotion.motion.div,{ref:f,variants:x,initial:"hidden",animate:h?"visible":"hidden",className:o(l),children:e})})});Lx.displayName="ScrollReveal";var Ix=K__namespace.forwardRef(({position:e="top",size:t=4,color:a="hsl(var(--primary))",backgroundColor:r="transparent",zIndex:n=50,className:i,container:s,showPercentage:l=false,useSpring:d=true},m)=>{let{scrollYProgress:u}=framerMotion.useScroll({container:s}),c=framerMotion.useSpring(u,{stiffness:100,damping:30,restDelta:.001}),f=d?c:u,p=e==="top"||e==="bottom",h={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}},R=p?"scaleX":"scaleY",g=p?"left":"top";return jsxRuntime.jsxs("div",{ref:m,className:o("fixed",i),style:{...h[e],zIndex:n,backgroundColor:r},children:[jsxRuntime.jsx(framerMotion.motion.div,{className:"h-full w-full",style:{[R]:f,transformOrigin:g,backgroundColor:a}}),l&&jsxRuntime.jsx(zM,{progress:f,position:e})]})});Ix.displayName="ScrollProgress";var zM=({progress:e,position:t})=>{let a=framerMotion.useTransform(e,s=>Math.round(s*100)),[r,n]=K__namespace.useState(0);return K__namespace.useEffect(()=>{let s=a.on("change",n);return ()=>s()},[a]),jsxRuntime.jsxs("span",{className:o("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:[r,"%"]})},Ex=K__namespace.forwardRef(({children:e,speed:t=.5,direction:a="vertical",className:r,container:n},i)=>{let s=K__namespace.useRef(null),{scrollYProgress:l}=framerMotion.useScroll({target:s,container:n,offset:["start end","end start"]}),d=[-100*t,100*t],m=framerMotion.useTransform(l,[0,1],d),u=framerMotion.useSpring(m,{stiffness:100,damping:30}),c=a==="horizontal"?u:0,f=a==="vertical"?u:0;return jsxRuntime.jsx("div",{ref:s,className:o("overflow-hidden",r),children:jsxRuntime.jsx(framerMotion.motion.div,{ref:i,style:{x:c,y:f},children:e})})});Ex.displayName="Parallax";var zx=K__namespace.forwardRef(({children:e,width:t,height:a,duration:r=1.5,direction:n="right",baseColor:i="hsl(var(--muted))",highlightColor:s="hsl(var(--muted-foreground) / 0.1)",borderRadius:l,className:d,active:m=true},u)=>{let c={left:"to left",right:"to right",top:"to top",bottom:"to bottom"},f={left:"shimmer-left",right:"shimmer-right",top:"shimmer-top",bottom:"shimmer-bottom"};return jsxRuntime.jsxs("div",{ref:u,className:o("relative overflow-hidden",d),style:{width:t,height:a,borderRadius:l,backgroundColor:i},children:[e,m&&jsxRuntime.jsx("div",{className:"absolute inset-0",style:{background:`linear-gradient(${c[n]}, transparent, ${s}, transparent)`,animation:`${f[n]} ${r}s infinite`}}),jsxRuntime.jsx("style",{children:`
|
|
32
32
|
@keyframes shimmer-right {
|
|
33
33
|
0% { transform: translateX(-100%); }
|
|
34
34
|
100% { transform: translateX(100%); }
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
0% { transform: translateY(-100%); }
|
|
46
46
|
100% { transform: translateY(100%); }
|
|
47
47
|
}
|
|
48
|
-
`})]})});Ex.displayName="Shimmer";var VM={sm:24,md:40,lg:56,xl:80},IM={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"}},Hx=K__namespace.forwardRef(({show:e=true,size:t="md",variant:a="success",strokeWidth:r=2,duration:n=.6,delay:i=0,className:s,onComplete:l},d)=>{let m=VM[t],u=IM[a],c={hidden:{pathLength:0,opacity:0},visible:{pathLength:1,opacity:1,transition:{duration:n*.5,delay:i,ease:"easeOut"}}},f={hidden:{pathLength:0,opacity:0},visible:{pathLength:1,opacity:1,transition:{duration:n*.5,delay:i+n*.4,ease:"easeOut"}}};return jsxRuntime.jsxs("svg",{ref:d,width:m,height:m,viewBox:"0 0 50 50",className:o(s),children:[jsxRuntime.jsx(framerMotion.motion.circle,{cx:"25",cy:"25",r:"22",fill:"none",strokeWidth:r,className:u.circle,variants:c,initial:"hidden",animate:e?"visible":"hidden"}),jsxRuntime.jsx(framerMotion.motion.path,{d:"M14 27 L22 35 L36 18",fill:"none",strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round",className:u.check,variants:f,initial:"hidden",animate:e?"visible":"hidden",onAnimationComplete:()=>e&&l?.()})]})});Hx.displayName="Checkmark";var yo={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},Ax=K__namespace.forwardRef(({autoTrigger:e=false,delay:t=0,options:a={},children:r,onTrigger:n},i)=>{let s=K__namespace.useCallback(()=>{let l={...yo,...a};xo__default.default(l),n?.();},[a,n]);return K__namespace.useEffect(()=>{if(e){let l=setTimeout(s,t);return ()=>clearTimeout(l)}},[e,t,s]),r?jsxRuntime.jsx("button",{ref:i,type:"button",onClick:s,children:r}):null});Ax.displayName="Confetti";var EM=()=>{let e=K__namespace.useCallback(r=>{let n={...yo,...r};xo__default.default(n);},[]),t=K__namespace.useCallback(()=>{let n=Date.now()+3e3,i=setInterval(()=>{let s=n-Date.now();if(s<=0){clearInterval(i);return}let l=50*(s/3e3);xo__default.default({...yo,particleCount:l,origin:{x:Math.random()*.4+.1,y:Math.random()-.2}}),xo__default.default({...yo,particleCount:l,origin:{x:Math.random()*.4+.5,y:Math.random()-.2}});},250);},[]),a=K__namespace.useCallback((r="both")=>{let n={x:0,y:1},i={x:1,y:1};(r==="left"||r==="both")&&xo__default.default({...yo,particleCount:50,angle:60,spread:55,origin:n}),(r==="right"||r==="both")&&xo__default.default({...yo,particleCount:50,angle:120,spread:55,origin:i});},[]);return {fire:e,fireworks:t,cannon:a}},zx=K__namespace.forwardRef(({children:e,color:t="hsl(var(--primary))",intensity:a=20,spread:r=0,animate:n=false,duration:i=2,className:s},l)=>{let d={boxShadow:`0 0 ${a}px ${r}px ${t}`};return n?jsxRuntime.jsx(framerMotion.motion.div,{ref:l,className:o(s),animate:{boxShadow:[`0 0 ${a}px ${r}px ${t}`,`0 0 ${a*1.5}px ${r+5}px ${t}`,`0 0 ${a}px ${r}px ${t}`]},transition:{duration:i,repeat:1/0,ease:"easeInOut"},children:e}):jsxRuntime.jsx("div",{ref:l,className:o(s),style:d,children:e})});zx.displayName="Glow";var Ix=(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}),Bx=K__namespace.forwardRef(({children:e,count:t=10,color:a="hsl(var(--primary))",minSize:r=4,maxSize:n=8,duration:i=1.5,className:s},l)=>{let[d,m]=K__namespace.useState([]);return K__namespace.useEffect(()=>{let u=Array.from({length:t},()=>Ix(r,n));m(u);let c=setInterval(()=>{m(f=>{let p=[...f],h=Math.floor(Math.random()*t);return p[h]=Ix(r,n),p});},i*500);return ()=>clearInterval(c)},[t,r,n,i]),jsxRuntime.jsxs("div",{ref:l,className:o("relative inline-block",s),children:[e,d.map(u=>jsxRuntime.jsx(framerMotion.motion.svg,{className:"pointer-events-none absolute",style:{left:u.x,top:u.y,width:u.size,height:u.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:i,delay:u.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:a})},u.id))]})});Bx.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=g0;exports.AccordionItem=Pc;exports.ActionBar=dv;exports.ActionBarButton=cv;exports.ActionGroup=Xb;exports.ActionIcon=Sg;exports.ActionMenu=uv;exports.ActionSheet=Eh;exports.Alert=ty;exports.AlertDescription=ry;exports.AlertTitle=ay;exports.AppShell=$h;exports.AppShellAside=ad;exports.AppShellFooter=rd;exports.AppShellHeader=ed;exports.AppShellMain=_h;exports.AppShellSidebar=td;exports.AreaChart=jg;exports.AspectRatio=C0;exports.AuthDivider=tx;exports.AuthFooterLinks=ex;exports.AuthForm=Jh;exports.AuthHeader=Qh;exports.AuthLayout=Zh;exports.AuthSocialButtons=ax;exports.Autocomplete=pf;exports.Avatar=tr;exports.AvatarFallback=ar;exports.AvatarGroup=Gm;exports.AvatarImage=Er;exports.BackTop=Kp;exports.Badge=iy;exports.Banner=Ch;exports.BarChart=Ug;exports.BatteryMeter=Av;exports.BottomNavigation=Lh;exports.Bounce=vx;exports.Breadcrumb=Hc;exports.BreadcrumbEllipsis=Gc;exports.BreadcrumbItem=zc;exports.BreadcrumbLink=Bc;exports.BreadcrumbList=Ac;exports.BreadcrumbPage=Fc;exports.BreadcrumbSeparator=Oc;exports.Button=G;exports.ButtonGroup=$b;exports.COUNTRIES=Vp;exports.Calendar=Or;exports.Card=vd;exports.CardContent=xd;exports.CardFooter=yd;exports.CardHeader=hd;exports.Carousel=ab;exports.CarouselContent=rb;exports.CarouselItem=ob;exports.CarouselNext=wl;exports.CarouselPrevious=Rl;exports.Center=ah;exports.Checkbox=Po;exports.Checkmark=Hx;exports.Chip=xu;exports.CircularProgress=Tu;exports.CloseButton=Ng;exports.Code=Sf;exports.Collapse=ux;exports.Collapsible=Mc;exports.CollapsibleContent=Dc;exports.CollapsibleTrigger=kc;exports.ColorArea=Yv;exports.ColorField=Fb;exports.ColorPicker=xp;exports.ColorSlider=qv;exports.ColorSwatch=jr;exports.ColorSwatchPicker=Wv;exports.ColorWheel=Jv;exports.Combobox=Em;exports.Command=Ms;exports.CommandDialog=Y0;exports.CommandEmpty=Sm;exports.CommandGroup=Tm;exports.CommandInput=Pm;exports.CommandItem=km;exports.CommandList=Cm;exports.CommandSeparator=Mm;exports.CommandShortcut=Dm;exports.Confetti=Ax;exports.ConfirmDialog=ll;exports.ContextMenu=a0;exports.ContextMenuCheckboxItem=dc;exports.ContextMenuContent=sc;exports.ContextMenuGroup=o0;exports.ContextMenuItem=lc;exports.ContextMenuLabel=mc;exports.ContextMenuPortal=n0;exports.ContextMenuRadioGroup=s0;exports.ContextMenuRadioItem=cc;exports.ContextMenuSeparator=uc;exports.ContextMenuShortcut=pc;exports.ContextMenuSub=i0;exports.ContextMenuSubContent=ic;exports.ContextMenuSubTrigger=nc;exports.ContextMenuTrigger=r0;exports.ContextualHelp=Pv;exports.CopyButton=Gg;exports.Counter=wx;exports.CurrencyInput=Pp;exports.DEFAULT_COLORS=Zo;exports.DashboardGrid=qh;exports.DashboardLayout=Yh;exports.DashboardPage=jh;exports.DashboardPageHeader=Xh;exports.DataTable=Jw;exports.DateField=Vb;exports.DateInput=Dp;exports.DatePicker=Am;exports.DateRangePicker=Jf;exports.DefaultErrorFallback=tl;exports.Dialog=as;exports.DialogClose=vy;exports.DialogContent=vn;exports.DialogDescription=Cd;exports.DialogFooter=Nd;exports.DialogHeader=wd;exports.DialogOverlay=rs;exports.DialogPortal=Rd;exports.DialogTitle=Pd;exports.DialogTrigger=by;exports.DiskUsageMeter=Hv;exports.Dots=Pu;exports.Drawer=Zc;exports.DrawerClose=L0;exports.DrawerContent=Qc;exports.DrawerDescription=rm;exports.DrawerFooter=tm;exports.DrawerHeader=em;exports.DrawerOverlay=Ps;exports.DrawerPortal=Jc;exports.DrawerTitle=am;exports.DrawerTrigger=D0;exports.DropdownMenu=ir;exports.DropdownMenuCheckboxItem=Gd;exports.DropdownMenuContent=Da;exports.DropdownMenuGroup=By;exports.DropdownMenuItem=Lt;exports.DropdownMenuLabel=$d;exports.DropdownMenuPortal=Fy;exports.DropdownMenuRadioGroup=Gy;exports.DropdownMenuRadioItem=Wd;exports.DropdownMenuSeparator=Tn;exports.DropdownMenuShortcut=_d;exports.DropdownMenuSub=Oy;exports.DropdownMenuSubContent=Od;exports.DropdownMenuSubTrigger=Fd;exports.DropdownMenuTrigger=sr;exports.EMOJIS=Pl;exports.EMOJI_CATEGORIES=hi;exports.EmojiPicker=ib;exports.EmptyState=Ou;exports.ErrorBoundary=BN;exports.Expand=px;exports.FAB=sM;exports.Fade=dx;exports.FieldContext=Ys;exports.FileUpload=fp;exports.Flex=nn;exports.Flip=gx;exports.FloatingActionButton=ql;exports.Form=ff;exports.FormContext=Us;exports.FormControl=hf;exports.FormDescription=xf;exports.FormField=gf;exports.FormItem=bf;exports.FormLabel=vf;exports.FormMessage=yf;exports.FullCalendar=_g;exports.Glow=zx;exports.Grid=Gi;exports.GridItem=ih;exports.GridList=Vv;exports.HStack=eh;exports.HoverCard=h0;exports.HoverCardContent=Ec;exports.HoverCardTrigger=x0;exports.IconButton=Ub;exports.IllustratedMessage=rv;exports.Image=kf;exports.ImageCropper=mb;exports.ImageViewer=cl;exports.ImageViewerTrigger=xg;exports.Indicator=Lg;exports.IndicatorWrapper=Vg;exports.InfiniteScroll=rg;exports.InlineAlert=sv;exports.Input=xn;exports.InputOTP=Du;exports.InputOTPGroup=Lu;exports.InputOTPSeparator=Iu;exports.InputOTPSlot=Vu;exports.KanbanBoard=Qg;exports.Kbd=zg;exports.Label=er;exports.LabeledValue=ph;exports.LabeledValueGroup=gh;exports.LineChart=Kg;exports.Link=$p;exports.List=Uu;exports.ListItem=ju;exports.ListItemText=Xu;exports.ListView=vv;exports.Listbox=Hf;exports.ListboxItem=Af;exports.Loading=qf;exports.LoadingOverlay=$f;exports.MASK_PRESETS=Bs;exports.MaskedInput=Tp;exports.Menubar=Up;exports.MenubarCheckboxItem=Jp;exports.MenubarContent=qp;exports.MenubarGroup=Fw;exports.MenubarItem=Zp;exports.MenubarLabel=ef;exports.MenubarMenu=Bw;exports.MenubarPortal=Ow;exports.MenubarRadioGroup=Ww;exports.MenubarRadioItem=Qp;exports.MenubarSeparator=tf;exports.MenubarShortcut=af;exports.MenubarSub=Gw;exports.MenubarSubContent=Xp;exports.MenubarSubTrigger=jp;exports.MenubarTrigger=Yp;exports.Meter=Ai;exports.Modal=dg;exports.ModalBody=pg;exports.ModalClose=JN;exports.ModalContent=mg;exports.ModalDescription=bg;exports.ModalFooter=fg;exports.ModalHeader=ug;exports.ModalOverlay=sl;exports.ModalPortal=cg;exports.ModalRoot=qN;exports.ModalTitle=gg;exports.ModalTrigger=ZN;exports.MultiSelect=Im;exports.NProgress=Kf;exports.Navbar=Ap;exports.NavbarBrand=zp;exports.NavbarContent=Bp;exports.NavbarItem=Fp;exports.NavbarLink=Op;exports.NavigationMenu=$c;exports.NavigationMenuContent=Yc;exports.NavigationMenuIndicator=jc;exports.NavigationMenuItem=M0;exports.NavigationMenuLink=k0;exports.NavigationMenuList=_c;exports.NavigationMenuTrigger=Uc;exports.NavigationMenuViewport=Ns;exports.NotificationCenter=Nh;exports.NumberField=Cb;exports.NumberInput=Vm;exports.Pagination=hm;exports.PaginationContent=xm;exports.PaginationEllipsis=Nm;exports.PaginationItem=ym;exports.PaginationLink=En;exports.PaginationNext=wm;exports.PaginationPrevious=Rm;exports.Parallax=Lx;exports.PasswordInput=Lm;exports.PhoneInput=Ip;exports.PieChart=Yg;exports.Pop=Rx;exports.Popover=Ne;exports.PopoverAnchor=us;exports.PopoverContent=xe;exports.PopoverTrigger=Se;exports.Portal=kg;exports.Progress=In;exports.PullToRefresh=Oh;exports.Pulse=xx;exports.QRCode=pb;exports.RadioGroup=fc;exports.RadioGroupItem=gc;exports.RangeSlider=yv;exports.Rating=$m;exports.ResizableHandle=DR;exports.ResizablePanel=kR;exports.ResizablePanelGroup=MR;exports.RichTextEditor=lb;exports.Ripple=bx;exports.Rotate=fx;exports.Scale=mx;exports.ScrollArea=ze;exports.ScrollBar=vs;exports.ScrollProgress=Dx;exports.ScrollReveal=kx;exports.ScrollShadow=Hg;exports.SearchBar=yh;exports.SearchField=kb;exports.SegmentedControl=dp;exports.SegmentedControlItem=cp;exports.Select=is;exports.SelectContent=Cn;exports.SelectGroup=Ey;exports.SelectItem=Sn;exports.SelectLabel=zd;exports.SelectScrollDownButton=ds;exports.SelectScrollUpButton=ls;exports.SelectSeparator=Bd;exports.SelectTrigger=Pn;exports.SelectValue=ss;exports.Separator=Ta;exports.SettingsCard=nx;exports.SettingsHeader=dn;exports.SettingsLayout=rx;exports.SettingsNavItem=sx;exports.SettingsRow=ix;exports.SettingsSection=ox;exports.SettingsSeparator=lx;exports.Shake=hx;exports.Sheet=Do;exports.SheetClose=Yy;exports.SheetContent=Hr;exports.SheetDescription=oc;exports.SheetFooter=ac;exports.SheetHeader=tc;exports.SheetOverlay=gs;exports.SheetPortal=Qd;exports.SheetTitle=rc;exports.SheetTrigger=Uy;exports.Shimmer=Ex;exports.Sidebar=Um;exports.SidebarContent=tu;exports.SidebarFooter=Qm;exports.SidebarGroup=au;exports.SidebarGroupAction=ou;exports.SidebarGroupContent=nu;exports.SidebarGroupLabel=ru;exports.SidebarHeader=Jm;exports.SidebarInset=Zm;exports.SidebarMenu=iu;exports.SidebarMenuAction=cu;exports.SidebarMenuBadge=mu;exports.SidebarMenuButton=du;exports.SidebarMenuItem=su;exports.SidebarMenuSkeleton=uu;exports.SidebarMenuSub=pu;exports.SidebarMenuSubButton=gu;exports.SidebarMenuSubItem=fu;exports.SidebarPersistentToggle=Xm;exports.SidebarProvider=Km;exports.SidebarRail=qm;exports.SidebarSeparator=eu;exports.SidebarToggle=jm;exports.SidebarTrigger=Ym;exports.SimpleGrid=sh;exports.Skeleton=wn;exports.Slide=cx;exports.Slider=Dn;exports.Snippet=Mf;exports.SortableList=CN;exports.Spacer=Fg;exports.Sparkles=Bx;exports.Spinner=fm;exports.SpotlightSearch=wh;exports.StatCard=$u;exports.StatusLight=ev;exports.Step=sf;exports.Steps=of;exports.SwipeActions=zh;exports.Switch=Dd;exports.Table=om;exports.TableBody=im;exports.TableCaption=mm;exports.TableCell=cm;exports.TableFooter=sm;exports.TableHead=dm;exports.TableHeader=nm;exports.TableRow=lm;exports.Tabs=Xd;exports.TabsContent=Jd;exports.TabsList=qd;exports.TabsTrigger=Zd;exports.TagGroup=Tv;exports.TagInput=zu;exports.TextBadge=Ro;exports.TextField=yb;exports.TextReveal=Px;exports.Textarea=Ld;exports.ThemeProvider=fb;exports.ThemeToggle=gb;exports.TimeField=Hb;exports.TimeInput=Rp;exports.TimePicker=Qf;exports.Timeline=Qu;exports.TimelineContent=rp;exports.TimelineItem=tp;exports.TimelineOpposite=op;exports.TimelineSeparator=ap;exports.Toaster=qy;exports.Toggle=vc;exports.ToggleGroup=xc;exports.ToggleGroupItem=yc;exports.Tooltip=or;exports.TooltipContent=Ma;exports.TooltipProvider=rr;exports.TooltipTrigger=nr;exports.TreeView=cf;exports.Typewriter=Nx;exports.User=Nf;exports.VStack=th;exports.VirtualList=$N;exports.VisuallyHidden=jo;exports.Well=ch;exports.Wiggle=yx;exports.WordRotate=Cx;exports.actionBarVariants=lv;exports.actionGroupVariants=jb;exports.actionIconVariants=Cg;exports.actionMenuTriggerVariants=mv;exports.actionSheetItemVariants=Ih;exports.alertVariants=Qx;exports.appShellVariants=Wh;exports.applyMask=Yn;exports.authLayoutVariants=ji;exports.autocompleteInputVariants=uf;exports.avatarGroupVariants=Om;exports.backTopVariants=_p;exports.badgeIndicatorVariants=oy;exports.bannerVariants=Ph;exports.bottomNavigationVariants=Dh;exports.buttonGroupVariants=Gb;exports.buttonVariants=qt;exports.cardVariants=bd;exports.carouselVariants=eb;exports.chartContainerVariants=qo;exports.chipVariants=hu;exports.circularProgressVariants=Su;exports.closeButtonVariants=wg;exports.cn=o;exports.codeVariants=Cf;exports.colorAreaVariants=$v;exports.colorFieldVariants=Bb;exports.colorSliderVariants=Xv;exports.colorSwatchPickerVariants=Bv;exports.colorSwatchVariants=vp;exports.colorWheelVariants=Zv;exports.confirmDialogIconVariants=hg;exports.contextualHelpTriggerVariants=Nv;exports.copyButtonVariants=Og;exports.currencyInputVariants=wp;exports.dashboardLayoutVariants=Uh;exports.dateFieldVariants=Lb;exports.dateInputVariants=Mp;exports.defaultColors=Fv;exports.dotsVariants=Nu;exports.emojiPickerVariants=nb;exports.emptyStateVariants=Fu;exports.fabVariants=sn;exports.fileUploadVariants=mp;exports.flexVariants=Qv;exports.formatCurrency=zs;exports.formatDate=Xn;exports.formatFileSize=Un;exports.formatPhoneNumber=Zn;exports.fullCalendarVariants=$g;exports.getFileIcon=up;exports.getMaskPlaceholder=Sp;exports.gridItemVariants=nh;exports.gridListItemVariants=Lv;exports.gridListVariants=Dv;exports.gridVariants=oh;exports.hexToRgb=Kv;exports.hsvToRgb=Fi;exports.iconButtonVariants=Kb;exports.illustratedMessageVariants=av;exports.imageCropperVariants=cb;exports.imageVariants=Zs;exports.indicatorVariants=Dg;exports.infiniteScrollLoaderVariants=ol;exports.infiniteScrollVariants=ag;exports.inlineAlertVariants=iv;exports.inputOTPVariants=ku;exports.inputSizeVariants=hb;exports.kanbanBoardVariants=Zg;exports.kanbanCardVariants=xl;exports.kanbanColumnVariants=Jg;exports.kbdVariants=Ag;exports.labelSizeVariants=xb;exports.labeledValueGroupVariants=fh;exports.labeledValueVariants=uh;exports.linkVariants=Wp;exports.listItemVariants=Yu;exports.listVariants=Ku;exports.listViewItemVariants=bv;exports.listViewVariants=gv;exports.listboxItemVariants=If;exports.listboxVariants=Vf;exports.loadingOverlayVariants=Wf;exports.loadingVariants=Xf;exports.maskedInputVariants=Cp;exports.materialColors=Gv;exports.meterVariants=Ev;exports.modalContentVariants=il;exports.navbarVariants=Hp;exports.navigationMenuTriggerStyle=Kc;exports.notificationCenterVariants=jT;exports.nprogressVariants=_f;exports.numberFieldVariants=Pb;exports.parseDate=kp;exports.parseFormattedValue=Np;exports.phoneInputVariants=Lp;exports.pullToRefreshVariants=Fh;exports.qrCodeVariants=Ml;exports.rangeSliderVariants=xv;exports.ratingVariants=Wm;exports.rgbToHex=Uv;exports.rgbToHsv=_v;exports.richTextEditorVariants=sb;exports.scrollShadowVariants=Eg;exports.searchBarVariants=xh;exports.searchFieldVariants=Mb;exports.segmentedControlItemVariants=sp;exports.segmentedControlVariants=ip;exports.settingsLayoutVariants=Xi;exports.sheetVariants=ec;exports.sidebarMenuButtonVariants=lu;exports.skeletonVariants=Id;exports.snippetVariants=Tf;exports.sortableItemVariants=Ff;exports.sortableListVariants=Bf;exports.spinnerVariants=pm;exports.statCardVariants=Wu;exports.statusLightVariants=Qb;exports.stepVariants=nf;exports.stepsVariants=rf;exports.swipeActionVariants=Jl;exports.swipeActionsVariants=Ah;exports.tagGroupItemVariants=$l;exports.tagGroupVariants=Sv;exports.tagVariants=Au;exports.tailwindColors=Ov;exports.textBadgeVariants=sy;exports.textFieldVariants=vb;exports.themeToggleVariants=lS;exports.timeFieldVariants=Eb;exports.timeInputVariants=yp;exports.timelineItemVariants=ep;exports.timelineVariants=Ju;exports.toggleVariants=kn;exports.treeViewVariants=df;exports.unmask=Fs;exports.useButtonGroup=LS;exports.useCarousel=yl;exports.useConfetti=EM;exports.useConfirmDialog=iP;exports.useFieldContext=ei;exports.useFormContext=js;exports.useSidebar=Gn;exports.useSpotlight=OT;exports.userVariants=wf;exports.validateFile=pp;exports.validators=mN;exports.virtualListVariants=eg;exports.wellVariants=dh;//# sourceMappingURL=index.cjs.map
|
|
48
|
+
`})]})});zx.displayName="Shimmer";var BM={sm:24,md:40,lg:56,xl:80},FM={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"}},Bx=K__namespace.forwardRef(({show:e=true,size:t="md",variant:a="success",strokeWidth:r=2,duration:n=.6,delay:i=0,className:s,onComplete:l},d)=>{let m=BM[t],u=FM[a],c={hidden:{pathLength:0,opacity:0},visible:{pathLength:1,opacity:1,transition:{duration:n*.5,delay:i,ease:"easeOut"}}},f={hidden:{pathLength:0,opacity:0},visible:{pathLength:1,opacity:1,transition:{duration:n*.5,delay:i+n*.4,ease:"easeOut"}}};return jsxRuntime.jsxs("svg",{ref:d,width:m,height:m,viewBox:"0 0 50 50",className:o(s),children:[jsxRuntime.jsx(framerMotion.motion.circle,{cx:"25",cy:"25",r:"22",fill:"none",strokeWidth:r,className:u.circle,variants:c,initial:"hidden",animate:e?"visible":"hidden"}),jsxRuntime.jsx(framerMotion.motion.path,{d:"M14 27 L22 35 L36 18",fill:"none",strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round",className:u.check,variants:f,initial:"hidden",animate:e?"visible":"hidden",onAnimationComplete:()=>e&&l?.()})]})});Bx.displayName="Checkmark";var yo={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},Fx=K__namespace.forwardRef(({autoTrigger:e=false,delay:t=0,options:a={},children:r,onTrigger:n},i)=>{let s=K__namespace.useCallback(()=>{let l={...yo,...a};xo__default.default(l),n?.();},[a,n]);return K__namespace.useEffect(()=>{if(e){let l=setTimeout(s,t);return ()=>clearTimeout(l)}},[e,t,s]),r?jsxRuntime.jsx("button",{ref:i,type:"button",onClick:s,children:r}):null});Fx.displayName="Confetti";var OM=()=>{let e=K__namespace.useCallback(r=>{let n={...yo,...r};xo__default.default(n);},[]),t=K__namespace.useCallback(()=>{let n=Date.now()+3e3,i=setInterval(()=>{let s=n-Date.now();if(s<=0){clearInterval(i);return}let l=50*(s/3e3);xo__default.default({...yo,particleCount:l,origin:{x:Math.random()*.4+.1,y:Math.random()-.2}}),xo__default.default({...yo,particleCount:l,origin:{x:Math.random()*.4+.5,y:Math.random()-.2}});},250);},[]),a=K__namespace.useCallback((r="both")=>{let n={x:0,y:1},i={x:1,y:1};(r==="left"||r==="both")&&xo__default.default({...yo,particleCount:50,angle:60,spread:55,origin:n}),(r==="right"||r==="both")&&xo__default.default({...yo,particleCount:50,angle:120,spread:55,origin:i});},[]);return {fire:e,fireworks:t,cannon:a}},Ox=K__namespace.forwardRef(({children:e,color:t="hsl(var(--primary))",intensity:a=20,spread:r=0,animate:n=false,duration:i=2,className:s},l)=>{let d={boxShadow:`0 0 ${a}px ${r}px ${t}`};return n?jsxRuntime.jsx(framerMotion.motion.div,{ref:l,className:o(s),animate:{boxShadow:[`0 0 ${a}px ${r}px ${t}`,`0 0 ${a*1.5}px ${r+5}px ${t}`,`0 0 ${a}px ${r}px ${t}`]},transition:{duration:i,repeat:1/0,ease:"easeInOut"},children:e}):jsxRuntime.jsx("div",{ref:l,className:o(s),style:d,children:e})});Ox.displayName="Glow";var Ax=(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}),Gx=K__namespace.forwardRef(({children:e,count:t=10,color:a="hsl(var(--primary))",minSize:r=4,maxSize:n=8,duration:i=1.5,className:s},l)=>{let[d,m]=K__namespace.useState([]);return K__namespace.useEffect(()=>{let u=Array.from({length:t},()=>Ax(r,n));m(u);let c=setInterval(()=>{m(f=>{let p=[...f],h=Math.floor(Math.random()*t);return p[h]=Ax(r,n),p});},i*500);return ()=>clearInterval(c)},[t,r,n,i]),jsxRuntime.jsxs("div",{ref:l,className:o("relative inline-block",s),children:[e,d.map(u=>jsxRuntime.jsx(framerMotion.motion.svg,{className:"pointer-events-none absolute",style:{left:u.x,top:u.y,width:u.size,height:u.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:i,delay:u.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:a})},u.id))]})});Gx.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=h0;exports.AccordionItem=Sc;exports.ActionBar=uv;exports.ActionBarButton=pv;exports.ActionGroup=Jb;exports.ActionIcon=kg;exports.ActionMenu=gv;exports.ActionSheet=zh;exports.Alert=oy;exports.AlertDescription=iy;exports.AlertTitle=ny;exports.AppShell=Uh;exports.AppShellAside=od;exports.AppShellFooter=nd;exports.AppShellHeader=ad;exports.AppShellMain=Yh;exports.AppShellSidebar=rd;exports.AreaChart=Zg;exports.AspectRatio=V0;exports.AuthDivider=ox;exports.AuthFooterLinks=rx;exports.AuthForm=tx;exports.AuthHeader=ax;exports.AuthLayout=ex;exports.AuthSocialButtons=nx;exports.Autocomplete=bf;exports.Avatar=ar;exports.AvatarFallback=rr;exports.AvatarGroup=_m;exports.AvatarImage=Hr;exports.BackTop=jp;exports.Badge=dy;exports.Banner=Mh;exports.BarChart=Xg;exports.BatteryMeter=Fv;exports.BottomNavigation=Eh;exports.Bounce=yx;exports.Breadcrumb=Bc;exports.BreadcrumbEllipsis=_c;exports.BreadcrumbItem=Oc;exports.BreadcrumbLink=Gc;exports.BreadcrumbList=Fc;exports.BreadcrumbPage=Wc;exports.BreadcrumbSeparator=$c;exports.Button=G;exports.ButtonGroup=Ub;exports.COUNTRIES=Hp;exports.Calendar=Or;exports.Card=xd;exports.CardContent=Rd;exports.CardFooter=wd;exports.CardHeader=yd;exports.Carousel=nb;exports.CarouselContent=ib;exports.CarouselItem=sb;exports.CarouselNext=Pl;exports.CarouselPrevious=Nl;exports.Center=nh;exports.Checkbox=Po;exports.Checkmark=Bx;exports.Chip=wu;exports.CircularProgress=Du;exports.CloseButton=Sg;exports.Code=kf;exports.Collapse=gx;exports.Collapsible=Dc;exports.CollapsibleContent=Lc;exports.CollapsibleTrigger=Vc;exports.ColorArea=qv;exports.ColorField=Wb;exports.ColorPicker=wp;exports.ColorSlider=Qv;exports.ColorSwatch=jr;exports.ColorSwatchPicker=Kv;exports.ColorWheel=th;exports.Combobox=zm;exports.Command=Ds;exports.CommandDialog=Q0;exports.CommandEmpty=km;exports.CommandGroup=Dm;exports.CommandInput=Tm;exports.CommandItem=Lm;exports.CommandList=Mm;exports.CommandSeparator=Vm;exports.CommandShortcut=Im;exports.Confetti=Fx;exports.ConfirmDialog=cl;exports.ContextMenu=n0;exports.ContextMenuCheckboxItem=mc;exports.ContextMenuContent=dc;exports.ContextMenuGroup=s0;exports.ContextMenuItem=cc;exports.ContextMenuLabel=pc;exports.ContextMenuPortal=l0;exports.ContextMenuRadioGroup=c0;exports.ContextMenuRadioItem=uc;exports.ContextMenuSeparator=fc;exports.ContextMenuShortcut=gc;exports.ContextMenuSub=d0;exports.ContextMenuSubContent=lc;exports.ContextMenuSubTrigger=sc;exports.ContextMenuTrigger=i0;exports.ContextualHelp=Tv;exports.CopyButton=_g;exports.Counter=Cx;exports.CurrencyInput=Tp;exports.DEFAULT_COLORS=Zo;exports.DashboardGrid=Qh;exports.DashboardLayout=qh;exports.DashboardPage=Zh;exports.DashboardPageHeader=Jh;exports.DataTable=oN;exports.DateField=Hb;exports.DateInput=Ip;exports.DatePicker=Fm;exports.DateRangePicker=tg;exports.DefaultErrorFallback=rl;exports.Dialog=os;exports.DialogClose=yy;exports.DialogContent=vn;exports.DialogDescription=Td;exports.DialogFooter=Cd;exports.DialogHeader=Pd;exports.DialogOverlay=ns;exports.DialogPortal=Nd;exports.DialogTitle=Sd;exports.DialogTrigger=xy;exports.DiskUsageMeter=Bv;exports.Dots=Tu;exports.Drawer=em;exports.DrawerClose=z0;exports.DrawerContent=am;exports.DrawerDescription=im;exports.DrawerFooter=om;exports.DrawerHeader=rm;exports.DrawerOverlay=Ss;exports.DrawerPortal=tm;exports.DrawerTitle=nm;exports.DrawerTrigger=A0;exports.DropdownMenu=sr;exports.DropdownMenuCheckboxItem=$d;exports.DropdownMenuContent=Va;exports.DropdownMenuGroup=Gy;exports.DropdownMenuItem=Vt;exports.DropdownMenuLabel=Kd;exports.DropdownMenuPortal=Wy;exports.DropdownMenuRadioGroup=_y;exports.DropdownMenuRadioItem=_d;exports.DropdownMenuSeparator=Tn;exports.DropdownMenuShortcut=Ud;exports.DropdownMenuSub=$y;exports.DropdownMenuSubContent=Wd;exports.DropdownMenuSubTrigger=Gd;exports.DropdownMenuTrigger=lr;exports.EMOJIS=Sl;exports.EMOJI_CATEGORIES=yi;exports.EmojiPicker=db;exports.EmptyState=$u;exports.ErrorBoundary=_N;exports.Expand=bx;exports.FAB=pM;exports.Fade=ux;exports.FieldContext=Xs;exports.FileUpload=vp;exports.Flex=nn;exports.Flip=hx;exports.FloatingActionButton=Jl;exports.Form=vf;exports.FormContext=js;exports.FormControl=Rf;exports.FormDescription=wf;exports.FormField=hf;exports.FormItem=xf;exports.FormLabel=yf;exports.FormMessage=Nf;exports.FullCalendar=Yg;exports.Glow=Ox;exports.Grid=$i;exports.GridItem=dh;exports.GridList=Hv;exports.HStack=rh;exports.HoverCard=R0;exports.HoverCardContent=Ac;exports.HoverCardTrigger=w0;exports.IconButton=Xb;exports.IllustratedMessage=iv;exports.Image=Lf;exports.ImageCropper=fb;exports.ImageViewer=ul;exports.ImageViewerTrigger=wg;exports.Indicator=Eg;exports.IndicatorWrapper=Hg;exports.InfiniteScroll=ig;exports.InlineAlert=cv;exports.Input=xn;exports.InputOTP=Iu;exports.InputOTPGroup=Eu;exports.InputOTPSeparator=Au;exports.InputOTPSlot=Hu;exports.KanbanBoard=ab;exports.Kbd=Og;exports.Label=tr;exports.LabeledValue=bh;exports.LabeledValueGroup=hh;exports.LineChart=jg;exports.Link=Up;exports.List=Xu;exports.ListItem=Zu;exports.ListItemText=Ju;exports.ListView=yv;exports.Listbox=Bf;exports.ListboxItem=Ff;exports.Loading=Qf;exports.LoadingOverlay=Uf;exports.MASK_PRESETS=Os;exports.MaskedInput=Dp;exports.Menubar=Xp;exports.MenubarCheckboxItem=tf;exports.MenubarContent=Qp;exports.MenubarGroup=Kw;exports.MenubarItem=ef;exports.MenubarLabel=rf;exports.MenubarMenu=_w;exports.MenubarPortal=Uw;exports.MenubarRadioGroup=jw;exports.MenubarRadioItem=af;exports.MenubarSeparator=of;exports.MenubarShortcut=nf;exports.MenubarSub=Yw;exports.MenubarSubContent=Jp;exports.MenubarSubTrigger=Zp;exports.MenubarTrigger=qp;exports.Meter=Bi;exports.Modal=ug;exports.ModalBody=bg;exports.ModalClose=oP;exports.ModalContent=fg;exports.ModalDescription=xg;exports.ModalFooter=vg;exports.ModalHeader=gg;exports.ModalOverlay=dl;exports.ModalPortal=pg;exports.ModalRoot=aP;exports.ModalTitle=hg;exports.ModalTrigger=rP;exports.MultiSelect=Am;exports.NProgress=jf;exports.Navbar=Fp;exports.NavbarBrand=Op;exports.NavbarContent=Gp;exports.NavbarItem=Wp;exports.NavbarLink=$p;exports.NavigationMenu=Uc;exports.NavigationMenuContent=qc;exports.NavigationMenuIndicator=Zc;exports.NavigationMenuItem=E0;exports.NavigationMenuLink=H0;exports.NavigationMenuList=Yc;exports.NavigationMenuTrigger=Xc;exports.NavigationMenuViewport=Cs;exports.NotificationCenter=Sh;exports.NumberField=Mb;exports.NumberInput=Hm;exports.Pagination=Rm;exports.PaginationContent=wm;exports.PaginationEllipsis=Sm;exports.PaginationItem=Nm;exports.PaginationLink=An;exports.PaginationNext=Cm;exports.PaginationPrevious=Pm;exports.Parallax=Ex;exports.PasswordInput=Em;exports.PhoneInput=Ap;exports.PieChart=qg;exports.Pop=Px;exports.Popover=Ne;exports.PopoverAnchor=fs;exports.PopoverContent=xe;exports.PopoverTrigger=Se;exports.Portal=Lg;exports.Progress=In;exports.PullToRefresh=$h;exports.Pulse=wx;exports.QRCode=bb;exports.RadioGroup=bc;exports.RadioGroupItem=vc;exports.RangeSlider=Nv;exports.Rating=Um;exports.ResizableHandle=AR;exports.ResizablePanel=HR;exports.ResizablePanelGroup=ER;exports.RichTextEditor=mb;exports.Ripple=xx;exports.Rotate=vx;exports.Scale=fx;exports.ScrollArea=ze;exports.ScrollBar=xs;exports.ScrollProgress=Ix;exports.ScrollReveal=Lx;exports.ScrollShadow=Bg;exports.SearchBar=Nh;exports.SearchField=Lb;exports.SegmentedControl=up;exports.SegmentedControlItem=pp;exports.Select=ls;exports.SelectContent=Cn;exports.SelectGroup=zy;exports.SelectItem=Sn;exports.SelectLabel=Fd;exports.SelectScrollDownButton=ms;exports.SelectScrollUpButton=cs;exports.SelectSeparator=Od;exports.SelectTrigger=Pn;exports.SelectValue=ds;exports.Separator=Ma;exports.SettingsCard=lx;exports.SettingsHeader=dn;exports.SettingsLayout=ix;exports.SettingsNavItem=cx;exports.SettingsRow=dx;exports.SettingsSection=sx;exports.SettingsSeparator=mx;exports.Shake=Rx;exports.Sheet=Do;exports.SheetClose=qy;exports.SheetContent=Ar;exports.SheetDescription=ic;exports.SheetFooter=oc;exports.SheetHeader=rc;exports.SheetOverlay=vs;exports.SheetPortal=tc;exports.SheetTitle=nc;exports.SheetTrigger=Xy;exports.Shimmer=zx;exports.Sidebar=Xm;exports.SidebarContent=ou;exports.SidebarFooter=au;exports.SidebarGroup=nu;exports.SidebarGroupAction=su;exports.SidebarGroupContent=lu;exports.SidebarGroupLabel=iu;exports.SidebarHeader=tu;exports.SidebarInset=eu;exports.SidebarMenu=du;exports.SidebarMenuAction=pu;exports.SidebarMenuBadge=fu;exports.SidebarMenuButton=uu;exports.SidebarMenuItem=cu;exports.SidebarMenuSkeleton=gu;exports.SidebarMenuSub=bu;exports.SidebarMenuSubButton=hu;exports.SidebarMenuSubItem=vu;exports.SidebarPersistentToggle=Jm;exports.SidebarProvider=jm;exports.SidebarRail=Qm;exports.SidebarSeparator=ru;exports.SidebarToggle=Zm;exports.SidebarTrigger=qm;exports.SimpleGrid=ch;exports.Skeleton=wn;exports.Slide=px;exports.Slider=Dn;exports.Snippet=Vf;exports.SortableList=VN;exports.Spacer=Wg;exports.Sparkles=Gx;exports.Spinner=vm;exports.SpotlightSearch=Ch;exports.StatCard=Uu;exports.StatusLight=rv;exports.Step=cf;exports.Steps=lf;exports.SwipeActions=Oh;exports.Switch=Ld;exports.Table=sm;exports.TableBody=dm;exports.TableCaption=fm;exports.TableCell=pm;exports.TableFooter=cm;exports.TableHead=um;exports.TableHeader=lm;exports.TableRow=mm;exports.Tabs=Zd;exports.TabsContent=ec;exports.TabsList=Jd;exports.TabsTrigger=Qd;exports.TagGroup=Dv;exports.TagInput=Ou;exports.TextBadge=Ro;exports.TextField=Nb;exports.TextReveal=Tx;exports.Textarea=Id;exports.ThemeProvider=vb;exports.ThemeToggle=hb;exports.TimeField=Bb;exports.TimeInput=Pp;exports.TimePicker=ag;exports.Timeline=ap;exports.TimelineContent=ip;exports.TimelineItem=op;exports.TimelineOpposite=sp;exports.TimelineSeparator=np;exports.Toaster=Qy;exports.Toggle=xc;exports.ToggleGroup=Rc;exports.ToggleGroupItem=wc;exports.Tooltip=nr;exports.TooltipContent=ka;exports.TooltipProvider=or;exports.TooltipTrigger=ir;exports.TreeView=pf;exports.Typewriter=Sx;exports.User=Sf;exports.VStack=oh;exports.VirtualList=XN;exports.VisuallyHidden=jo;exports.Well=ph;exports.Wiggle=Nx;exports.WordRotate=Mx;exports.actionBarVariants=mv;exports.actionGroupVariants=Zb;exports.actionIconVariants=Mg;exports.actionMenuTriggerVariants=fv;exports.actionSheetItemVariants=Ah;exports.alertVariants=ay;exports.appShellVariants=Kh;exports.applyMask=Xn;exports.authLayoutVariants=qi;exports.autocompleteInputVariants=gf;exports.avatarGroupVariants=$m;exports.backTopVariants=Yp;exports.badgeIndicatorVariants=sy;exports.bannerVariants=Th;exports.bottomNavigationVariants=Ih;exports.buttonGroupVariants=_b;exports.buttonVariants=Jt;exports.cardVariants=hd;exports.carouselVariants=rb;exports.chartContainerVariants=qo;exports.chipVariants=Ru;exports.circularProgressVariants=ku;exports.closeButtonVariants=Cg;exports.cn=o;exports.codeVariants=Mf;exports.colorAreaVariants=Uv;exports.colorFieldVariants=Gb;exports.colorSliderVariants=Jv;exports.colorSwatchPickerVariants=Gv;exports.colorSwatchVariants=yp;exports.colorWheelVariants=eh;exports.confirmDialogIconVariants=Rg;exports.contextualHelpTriggerVariants=Sv;exports.copyButtonVariants=$g;exports.currencyInputVariants=Cp;exports.dashboardLayoutVariants=Xh;exports.dateFieldVariants=Eb;exports.dateInputVariants=Vp;exports.defaultColors=Wv;exports.dotsVariants=Su;exports.emojiPickerVariants=lb;exports.emptyStateVariants=Wu;exports.fabVariants=sn;exports.fileUploadVariants=fp;exports.flexVariants=ah;exports.formatCurrency=Fs;exports.formatDate=Zn;exports.formatFileSize=jn;exports.formatPhoneNumber=Qn;exports.fullCalendarVariants=Ug;exports.getFileIcon=gp;exports.getMaskPlaceholder=kp;exports.gridItemVariants=lh;exports.gridListItemVariants=Ev;exports.gridListVariants=Iv;exports.gridVariants=sh;exports.hexToRgb=jv;exports.hsvToRgb=Gi;exports.iconButtonVariants=jb;exports.illustratedMessageVariants=nv;exports.imageCropperVariants=pb;exports.imageVariants=Qs;exports.indicatorVariants=Ig;exports.infiniteScrollLoaderVariants=il;exports.infiniteScrollVariants=ng;exports.inlineAlertVariants=dv;exports.inputOTPVariants=Lu;exports.inputSizeVariants=Rb;exports.kanbanBoardVariants=eb;exports.kanbanCardVariants=Rl;exports.kanbanColumnVariants=tb;exports.kbdVariants=Fg;exports.labelSizeVariants=wb;exports.labeledValueGroupVariants=vh;exports.labeledValueVariants=gh;exports.linkVariants=Kp;exports.listItemVariants=qu;exports.listVariants=ju;exports.listViewItemVariants=xv;exports.listViewVariants=hv;exports.listboxItemVariants=Af;exports.listboxVariants=Hf;exports.loadingOverlayVariants=Kf;exports.loadingVariants=Jf;exports.maskedInputVariants=Mp;exports.materialColors=_v;exports.meterVariants=zv;exports.modalContentVariants=ll;exports.navbarVariants=Bp;exports.navigationMenuTriggerStyle=jc;exports.notificationCenterVariants=eM;exports.nprogressVariants=Yf;exports.numberFieldVariants=Tb;exports.parseDate=Lp;exports.parseFormattedValue=Sp;exports.phoneInputVariants=Ep;exports.pullToRefreshVariants=Wh;exports.qrCodeVariants=Dl;exports.rangeSliderVariants=wv;exports.ratingVariants=Km;exports.rgbToHex=Xv;exports.rgbToHsv=Yv;exports.richTextEditorVariants=cb;exports.scrollShadowVariants=zg;exports.searchBarVariants=wh;exports.searchFieldVariants=Vb;exports.segmentedControlItemVariants=cp;exports.segmentedControlVariants=dp;exports.settingsLayoutVariants=Zi;exports.sheetVariants=ac;exports.sidebarMenuButtonVariants=mu;exports.skeletonVariants=Hd;exports.snippetVariants=Df;exports.sortableItemVariants=Wf;exports.sortableListVariants=Gf;exports.spinnerVariants=bm;exports.statCardVariants=Ku;exports.statusLightVariants=av;exports.stepVariants=df;exports.stepsVariants=sf;exports.swipeActionVariants=ed;exports.swipeActionsVariants=Fh;exports.tagGroupItemVariants=Kl;exports.tagGroupVariants=kv;exports.tagVariants=Fu;exports.tailwindColors=$v;exports.textBadgeVariants=cy;exports.textFieldVariants=yb;exports.themeToggleVariants=fS;exports.timeFieldVariants=zb;exports.timeInputVariants=Np;exports.timelineItemVariants=rp;exports.timelineVariants=tp;exports.toggleVariants=kn;exports.treeViewVariants=uf;exports.unmask=Gs;exports.useButtonGroup=zS;exports.useCarousel=wl;exports.useConfetti=OM;exports.useConfirmDialog=uP;exports.useFieldContext=ai;exports.useFormContext=qs;exports.useSidebar=$n;exports.useSpotlight=UT;exports.userVariants=Cf;exports.validateFile=bp;exports.validators=vN;exports.virtualListVariants=rg;exports.wellVariants=uh;//# sourceMappingURL=index.cjs.map
|
|
49
49
|
//# sourceMappingURL=index.cjs.map
|