@ghostly-solutions/ui 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-yhwkdmmt.js +11 -0
- package/dist/components/breadcrumb/breadcrumb.builders.d.ts +36 -11
- package/dist/components/breadcrumb/breadcrumb.builders.d.ts.map +1 -1
- package/dist/components/breadcrumb/index.d.ts +1 -1
- package/dist/components/breadcrumb/index.d.ts.map +1 -1
- package/dist/components/otp-input/otp-input.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/server.d.ts +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/styles/themes/base.css +1 -1
- package/dist/styles/themes/ghost-guard.css +1 -1
- package/dist/styles/themes/ghostly-solutions.css +1 -1
- package/package.json +1 -1
- package/dist/chunk-9t5my8xn.js +0 -11
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{$ as Ag,A as Ga,B as xn,C as Jn,D as ax,E as St,F as ix,G as sx,H as zt,I as Pg,J as xg,K as Mg,L as Ng,M as Lg,N as zg,O as Rg,P as vo,Q as Lt,R as Cg,S as Hg,T as ia,U as la,V as ma,W as Si,X as da,Y as wg,Z as kg,_ as sa,a,aa as pa,b as Fg,c as qP,d as I,e as QP,f as ZP,g as EP,h as DP,i as jP,j as ex,k as tx,l as oo,m as rx,n as ox,o as Yb,p as ka,q as Aa,r as Sa,s as Vb,t as Xb,u as Jb,v as Rd,w as Za,x as Cd,y as nx,z as Fa}from"./chunk-9t5my8xn.js";import{cva as ok}from"class-variance-authority";import*as yt from"@radix-ui/react-accordion";import{cva as ya}from"class-variance-authority";import{ChevronDown as Wg}from"lucide-react";import{createContext as Kg,forwardRef as tn,useContext as Gi}from"react";var Gg="md",Og=()=>{return"md"};function f(e){if(e!==void 0)return e;return"md"}import{jsxDEV as Gt}from"react/jsx-dev-runtime";var Fe={sm:"sm",md:"md",lg:"lg"},va=Kg(Fe.md),Oi=ya("border-b border-border"),Wi=ya("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] flex flex-1 items-center justify-between font-medium hover:underline [&[data-state=open]>svg]:rotate-180",{variants:{size:{[Fe.sm]:"py-3 text-xs [&>svg]:size-3.5",[Fe.md]:"py-4 text-sm [&>svg]:size-4",[Fe.lg]:"py-5 text-base [&>svg]:size-5"}},defaultVariants:{size:Fe.md}}),Ki=ya("gs-accordion-content overflow-hidden",{variants:{size:{[Fe.sm]:"text-xs",[Fe.md]:"text-sm",[Fe.lg]:"text-base"}},defaultVariants:{size:Fe.md}}),_g={[Fe.sm]:"pt-0 pb-3",[Fe.md]:"pt-0 pb-4",[Fe.lg]:"pt-0 pb-5"},_i=tn(({size:e=Fe.md,...t},r)=>{let o=f(e)??Fe.md;return Gt(va.Provider,{value:o,children:Gt(yt.Root,{ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});_i.displayName="Accordion";var Ui=tn(({className:e,...t},r)=>Gt(yt.Item,{ref:r,className:a(Oi(),e),...t},void 0,!1,void 0,this));Ui.displayName="AccordionItem";var $i=tn(({className:e,children:t,...r},o)=>{let n=Gi(va);return Gt(yt.Header,{className:"flex",children:Gt(yt.Trigger,{ref:o,className:a(Wi({size:n}),e),...r,children:[t,Gt(Wg,{className:"shrink-0 transition-transform"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});$i.displayName="AccordionTrigger";var Yi=tn(({className:e,children:t,...r},o)=>{let n=Gi(va);return Gt(yt.Content,{ref:o,className:a(Ki({size:n}),e),...r,children:Gt("div",{className:_g[n],children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Yi.displayName="AccordionContent";import{cva as Ta}from"class-variance-authority";import{TriangleAlert as Ug,CircleCheck as $g,Info as Yg,CircleAlert as Vg}from"lucide-react";import{forwardRef as ha}from"react";import{jsxDEV as Pa}from"react/jsx-dev-runtime";var Ar={default:"default",success:"success",warning:"warning",error:"error",info:"info"},ho={sm:"sm",md:"md",lg:"lg",xl:"xl"},Vi=Ta("gs-alert relative w-full rounded-[var(--radius)] border [&>svg~*]:pl-8 [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:size-4 [&>svg]:text-foreground h-min",{variants:{variant:{[Ar.default]:"border-border bg-secondary text-foreground",[Ar.success]:"border-success/50 text-success [&>svg]:text-success bg-success/10",[Ar.warning]:"border-warning/50 text-warning [&>svg]:text-warning bg-warning/10",[Ar.error]:"border-destructive/50 text-destructive [&>svg]:text-destructive bg-destructive/10",[Ar.info]:"border-info/50 text-info [&>svg]:text-info bg-info/10"},size:{[ho.sm]:"p-3 text-sm [&>svg]:left-3 [&>svg]:top-3 [&>svg]:size-3.5 [&>svg~*]:pl-7",[ho.md]:"p-4 text-sm",[ho.lg]:"p-5 text-sm [&>svg]:left-5 [&>svg]:top-5",[ho.xl]:"p-6 text-base [&>svg]:left-6 [&>svg]:top-6 [&>svg]:size-5 [&>svg~*]:pl-10"}},defaultVariants:{variant:Ar.default,size:ho.md}}),Xi=Ta("mb-1 font-medium leading-none tracking-tight [.gs-alert[data-size=sm]_&]:text-sm [.gs-alert[data-size=md]_&]:text-sm [.gs-alert[data-size=lg]_&]:text-base [.gs-alert[data-size=xl]_&]:text-lg h-min"),Ji=Ta("[&_p]:leading-relaxed [.gs-alert[data-size=sm]_&]:text-[13px] [.gs-alert[data-size=md]_&]:text-sm [.gs-alert[data-size=lg]_&]:text-sm [.gs-alert[data-size=xl]_&]:text-base"),qi=ha(({className:e,variant:t,size:r,...o},n)=>{let i=f(r);return Pa("div",{ref:n,role:"alert","data-size":i,className:a(Vi({variant:t,size:i}),e),...o},void 0,!1,void 0,this)});qi.displayName="Alert";var Qi=ha(({className:e,...t},r)=>Pa("h5",{ref:r,className:a(Xi(),e),...t},void 0,!1,void 0,this));Qi.displayName="AlertTitle";var Zi=ha(({className:e,...t},r)=>Pa("div",{ref:r,className:a(Ji(),e),...t},void 0,!1,void 0,this));Zi.displayName="AlertDescription";import*as ze from"@radix-ui/react-alert-dialog";import{cva as ns}from"class-variance-authority";import{createContext as ab,forwardRef as Br,useCallback as ib,useContext as sb,useEffect as lb,useState as as}from"react";import{Slot as Ei}from"@radix-ui/react-slot";import{cva as Ma}from"class-variance-authority";import{forwardRef as rn}from"react";import{forwardRef as Xg}from"react";import{jsxDEV as xa}from"react/jsx-dev-runtime";var Sr={sm:"sm",md:"md",lg:"lg",xl:"xl"},Jg={[Sr.sm]:"h-4 w-4",[Sr.md]:"h-5 w-5",[Sr.lg]:"h-6 w-6",[Sr.xl]:"h-8 w-8"},Ot=Xg(({className:e,size:t=Sr.md,label:r="Loading",...o},n)=>{let i=f(t);return xa("span",{ref:n,className:a("inline-flex items-center justify-center",e),role:"status","aria-label":r,...o,children:[xa("span",{"data-gs-motion":"essential",className:a("gs-loading-motion animate-spin rounded-full border-2 border-current border-r-transparent",Jg[i])},void 0,!1,void 0,this),xa("span",{className:"sr-only",children:r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Ot.displayName="Spinner";import{jsxDEV as Ht}from"react/jsx-dev-runtime";var Ct={primary:"primary",secondary:"secondary",neutral:"neutral",outline:"outline",ghost:"ghost",danger:"danger"},Je={sm:"sm",md:"md",lg:"lg",xl:"xl",icon:"icon",iconSm:"icon-sm",iconLg:"icon-lg"},Wt={default:"default",success:"success",warning:"warning",error:"error",info:"info"},Ir={sm:"sm",md:"md",lg:"lg"},qg="Loading",Qg="button",Po=Ma("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] relative inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-[var(--radius)] border border-transparent font-semibold outline-none focus-visible:border-primary disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-55",{variants:{variant:{[Ct.primary]:"border-primary bg-primary text-primary-foreground enabled:hover:bg-primary/90",[Ct.secondary]:"border-secondary bg-secondary text-secondary-foreground enabled:hover:bg-secondary/90",[Ct.neutral]:"border-border bg-muted text-foreground enabled:hover:bg-muted/90",[Ct.outline]:"border-border bg-background text-foreground enabled:hover:border-primary enabled:hover:bg-muted/50",[Ct.ghost]:"border-transparent bg-transparent text-foreground enabled:hover:bg-muted/70",[Ct.danger]:"border-destructive bg-destructive text-destructive-foreground enabled:hover:bg-destructive/90"},size:{[Je.sm]:"h-8 px-2.5 text-xs",[Je.md]:"h-10 px-4 text-sm",[Je.lg]:"h-11 px-5 text-sm",[Je.xl]:"h-12 px-6 text-base",[Je.icon]:"h-10 w-10 p-0",[Je.iconSm]:"h-9 w-9 p-0",[Je.iconLg]:"h-11 w-11 p-0"}},defaultVariants:{variant:Ct.primary,size:Je.md}}),Di=Ma("shrink-0",{variants:{size:{[Ir.sm]:"size-3",[Ir.md]:"size-4",[Ir.lg]:"size-4.5"}},defaultVariants:{size:Ir.md}}),ji=Ma("inline-flex items-center rounded-full border px-1.5 py-0.5 font-semibold text-[11px] leading-none",{variants:{tone:{[Wt.default]:"border-border/70 bg-background/75 text-muted-foreground",[Wt.success]:"border-success/35 bg-success/12 text-success",[Wt.warning]:"border-warning/35 bg-warning/12 text-warning",[Wt.error]:"border-destructive/35 bg-destructive/12 text-destructive",[Wt.info]:"border-info/35 bg-info/12 text-info"}},defaultVariants:{tone:Wt.default}});function Zg(e){return e===Je.icon||e===Je.iconSm||e===Je.iconLg}function Eg(e,t,r){return e&&t?-1:r}function Dg(e){return e["aria-label"]??e["aria-labelledby"]??e.title}function jg(){if(typeof process>"u")return!0;return!0}var es=rn(({className:e,size:t=Ir.md,...r},o)=>Ht(Ei,{ref:o,className:a(Di({size:t}),e),...r},void 0,!1,void 0,this));es.displayName="ButtonIcon";var ts=rn(({className:e,...t},r)=>Ht("span",{ref:r,className:a("truncate",e),...t},void 0,!1,void 0,this));ts.displayName="ButtonLabel";var rs=rn(({className:e,tone:t=Wt.default,...r},o)=>Ht("span",{ref:o,className:a(ji({tone:t}),e),...r},void 0,!1,void 0,this));rs.displayName="ButtonBadge";var os=rn(({className:e,variant:t=Ct.primary,size:r=Je.md,asChild:o=!1,loading:n=!1,loadingText:i=qg,fullWidth:s=!1,leadingIcon:l,trailingIcon:m,disabled:d,children:c,type:u,tabIndex:g,onClick:T,...b},h)=>{let N=f(r),v=N??r,p=Dg(b);if(jg()&&Zg(v)&&!p)throw Error("Icon-size Button requires aria-label, aria-labelledby, or title.");let P=Boolean(d||n),M=a(Po({variant:t,size:N}),P&&"pointer-events-none cursor-not-allowed opacity-55",s&&"w-full",e);if(o)return Ht(Ei,{ref:h,className:M,"aria-disabled":P||void 0,"aria-busy":n||void 0,tabIndex:Eg(!0,P,g),onClick:P?(k)=>{k.preventDefault()}:T,...b,children:c},void 0,!1,void 0,this);return Ht("button",{ref:h,className:M,disabled:P,"aria-disabled":P,"aria-busy":n,tabIndex:g,type:u??Qg,onClick:n?void 0:T,...b,children:[Ht("span",{className:a("absolute inset-0 flex items-center justify-center transition-opacity duration-150",n?"opacity-100":"opacity-0"),"aria-hidden":"true",children:Ht(Ot,{size:"sm"},void 0,!1,void 0,this)},void 0,!1,void 0,this),n&&Ht("span",{className:"sr-only",children:i},void 0,!1,void 0,this),Ht("span",{className:a("inline-flex items-center justify-center gap-2 transition-opacity duration-150",n&&"opacity-0"),children:[l,c,m]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});os.displayName="Button";var le=!0,it=4,Kt="fixed inset-0 z-50 bg-black/50",on="transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] absolute top-4 right-4 rounded-[var(--radius)] border border-border p-1.5 text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none";import{useSyncExternalStore as eb}from"react";var La="(prefers-reduced-motion: reduce)",Na="data-gs-demo-reduced-motion";function tb(){if(typeof document>"u")return!1;return document.documentElement.getAttribute(Na)==="true"}function rb(){if(typeof window>"u"||typeof window.matchMedia!=="function")return!1;return window.matchMedia(La).matches}function xo(){return tb()||rb()}var ob=()=>!1;function nb(e){if(typeof window>"u")return()=>{return};let t=window.matchMedia(La);t.addEventListener("change",e);let r=typeof MutationObserver<"u"?new MutationObserver((o)=>{for(let n of o)if(n.type==="attributes"&&n.attributeName===Na){e();break}}):null;return r?.observe(document.documentElement,{attributes:!0,attributeFilter:[Na]}),()=>{t.removeEventListener("change",e),r?.disconnect()}}function ve(){return eb(nb,xo,ob)}import{jsxDEV as qe,Fragment as cb}from"react/jsx-dev-runtime";var _t={sm:I.sm,md:I.md,lg:I.lg,xl:I.xl,full:"full"},mb=160,is=ns(a("gs-dialog-overlay",Kt)),ss=ns("gs-dialog-content fixed left-1/2 top-1/2 z-50 grid w-full gap-4 border border-border bg-card p-6 text-foreground shadow-[var(--shadow-xl)] rounded-[var(--radius)]",{variants:{size:{[_t.sm]:"max-w-sm",[_t.md]:"max-w-md",[_t.lg]:"max-w-lg",[_t.xl]:"max-w-xl",[_t.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:_t.md}}),ls=ab(!1),db=({children:e,open:t,defaultOpen:r=!1,onOpenChange:o,...n})=>{let[i,s]=as(r),l=t!==void 0,m=l?t:i,d=ib((c)=>{if(!l)s(c);o?.(c)},[l,o]);return qe(ls.Provider,{value:m,children:qe(ze.Root,{open:m,onOpenChange:d,...n,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},ub=ze.Trigger,ms=ze.Portal,za=Br(({className:e,...t},r)=>qe(ze.Overlay,{ref:r,className:a(is(),e),...t},void 0,!1,void 0,this));za.displayName="AlertDialogOverlay";var ds=Br(({className:e,size:t=_t.md,showOverlay:r=!0,portal:o=le,portalContainer:n,forceMount:i=!1,...s},l)=>{let m=sb(ls),[d,c]=as(i||m),u=f(t),g=ve();if(lb(()=>{if(i||m){c(!0);return}let h=setTimeout(()=>{c(!1)},g?0:mb);return()=>{clearTimeout(h)}},[i,m,g]),!(i||m||d))return null;let b=qe(cb,{children:[r?qe(za,{forceMount:!0},void 0,!1,void 0,this):null,qe(ze.Content,{ref:l,forceMount:!0,className:a(ss({size:u}),e),...s},void 0,!1,void 0,this)]},void 0,!0,void 0,this);if(!o)return b;return qe(ms,{forceMount:!0,container:n??void 0,children:b},void 0,!1,void 0,this)});ds.displayName="AlertDialogContent";var us=({className:e,...t})=>qe("div",{className:a("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);us.displayName="AlertDialogHeader";var cs=({className:e,...t})=>qe("div",{className:a("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);cs.displayName="AlertDialogFooter";var ps=Br(({className:e,...t},r)=>qe(ze.Title,{ref:r,className:a("font-semibold text-lg",e),...t},void 0,!1,void 0,this));ps.displayName="AlertDialogTitle";var fs=Br(({className:e,...t},r)=>qe(ze.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));fs.displayName="AlertDialogDescription";var gs=Br(({className:e,...t},r)=>qe(ze.Action,{ref:r,className:a(Po(),e),...t},void 0,!1,void 0,this));gs.displayName="AlertDialogAction";var bs=Br(({className:e,...t},r)=>qe(ze.Cancel,{ref:r,className:a(Po({variant:"outline"}),"mt-2 sm:mt-0",e),...t},void 0,!1,void 0,this));bs.displayName="AlertDialogCancel";import*as Ra from"@radix-ui/react-aspect-ratio";import{cva as pb}from"class-variance-authority";import{forwardRef as fb}from"react";import{jsxDEV as gb}from"react/jsx-dev-runtime";var ys=pb("relative overflow-hidden rounded-[calc(var(--radius)-2px)] border border-border/40"),vs=fb(({className:e,...t},r)=>gb(Ra.Root,{ref:r,className:a(ys(),e),...t},void 0,!1,void 0,this));vs.displayName=Ra.Root.displayName;import*as Gr from"@radix-ui/react-avatar";import{cva as bb}from"class-variance-authority";import{forwardRef as nn}from"react";import{jsxDEV as Fr}from"react/jsx-dev-runtime";var Ze={sm:"sm",md:"md",lg:"lg",xl:"xl"},Ts=bb("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{[Ze.sm]:"h-7 w-7 text-xs",[Ze.md]:"h-10 w-10 text-sm",[Ze.lg]:"h-12 w-12 text-base",[Ze.xl]:"h-16 w-16 text-lg"}},defaultVariants:{size:Ze.md}}),Ca=nn(({className:e,size:t=Ze.md,...r},o)=>{let n=f(t);return Fr(Gr.Root,{ref:o,className:a(Ts({size:n}),e),...r},void 0,!1,void 0,this)});Ca.displayName="Avatar";var hs=nn(({className:e,...t},r)=>Fr(Gr.Image,{ref:r,className:a("aspect-square h-full w-full object-cover",e),...t},void 0,!1,void 0,this));hs.displayName="AvatarImage";var Ha=nn(({className:e,...t},r)=>Fr(Gr.Fallback,{ref:r,className:a("flex h-full w-full items-center justify-center rounded-full bg-muted font-medium text-muted-foreground",e),...t},void 0,!1,void 0,this));Ha.displayName="AvatarFallback";var yb={[Ze.sm]:"-space-x-2",[Ze.md]:"-space-x-3",[Ze.lg]:"-space-x-4",[Ze.xl]:"-space-x-5"},Ps=nn(({className:e,children:t,max:r,size:o=Ze.md,...n},i)=>{let s=f(o),l=Array.isArray(t)?t:[t],m=r?l.slice(0,r):l,d=r?Math.max(0,l.length-r):0;return Fr("div",{ref:i,className:a("flex items-center",yb[s],e),...n,children:[m,d>0&&Fr(Ca,{size:s,className:"border-2 border-background",children:Fr(Ha,{className:"text-xs",children:["+",d]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Ps.displayName="AvatarGroup";import{Slot as vb}from"@radix-ui/react-slot";import{cva as Tb}from"class-variance-authority";import{X as xs}from"lucide-react";import{forwardRef as hb}from"react";import{jsxDEV as dr}from"react/jsx-dev-runtime";var He={default:"default",primary:"primary",success:"success",warning:"warning",error:"error",info:"info",outline:"outline"},wt={sm:"sm",md:"md",lg:"lg",xl:"xl",dot:"dot"},Ms=Tb("group/badge inline-flex items-center justify-center gap-1 whitespace-nowrap rounded-full border font-medium leading-none",{variants:{variant:{[He.default]:"border-border bg-muted text-muted-foreground",[He.primary]:"border-primary/30 bg-primary/10 text-primary",[He.success]:"border-success/30 bg-success/10 text-success",[He.warning]:"border-warning/30 bg-warning/10 text-warning",[He.error]:"border-destructive/30 bg-destructive/10 text-destructive",[He.info]:"border-info/30 bg-info/10 text-info",[He.outline]:"border-border bg-transparent text-foreground"},solid:{true:"",false:""},size:{[wt.sm]:"h-5 px-1.5 text-[11px]",[wt.md]:"h-5 px-2 text-[11px]",[wt.lg]:"h-6 px-2.5 text-xs",[wt.xl]:"h-7 px-3 text-sm",[wt.dot]:"h-2 w-2 p-0"}},compoundVariants:[{solid:!0,variant:He.default,className:"border-transparent bg-foreground text-background"},{solid:!0,variant:He.primary,className:"border-primary bg-primary text-primary-foreground"},{solid:!0,variant:He.success,className:"border-success bg-success text-background"},{solid:!0,variant:He.warning,className:"border-warning bg-warning text-background"},{solid:!0,variant:He.error,className:"border-destructive bg-destructive text-destructive-foreground"},{solid:!0,variant:He.info,className:"border-info bg-info text-background"},{solid:!0,variant:He.outline,className:"border-border bg-foreground text-background"}],defaultVariants:{variant:He.default,solid:!1,size:wt.md}}),Mo=hb(({className:e,variant:t=He.default,size:r=wt.md,solid:o=!1,pulse:n=!1,removable:i=!1,removeControl:s="button",removeLabel:l="Remove",onRemove:m,onClick:d,children:c,asChild:u=!1,...g},T)=>{let b=f(r),h=Boolean(d),N=b===wt.dot,v=h&&s==="button"?"span":s,p=(H)=>{H.preventDefault(),H.stopPropagation(),m?.(H)},P=(H)=>{if(H.key!=="Enter"&&H.key!==" ")return;H.preventDefault(),H.stopPropagation()},M=a(Ms({variant:t,solid:o,size:b}),h&&"cursor-pointer",n&&"animate-pulse",i&&!N&&"pr-1",e),k=i&&!N&&v==="button"?dr("button",{type:"button",className:a("ml-0.5 inline-flex items-center justify-center rounded-full text-current opacity-60 transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] hover:opacity-100","size-3.5 group-data-[size=lg]/badge:size-4 group-data-[size=xl]/badge:size-4"),onClick:p,"aria-label":l,tabIndex:-1,children:dr(xs,{className:"size-2.5 group-data-[size=lg]/badge:size-3 group-data-[size=xl]/badge:size-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this):i&&!N?dr("span",{role:"button",className:a("ml-0.5 inline-flex items-center justify-center rounded-full text-current opacity-60 transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] hover:opacity-100","size-3.5 group-data-[size=lg]/badge:size-4 group-data-[size=xl]/badge:size-4"),onClick:p,onKeyDown:P,"aria-label":l,tabIndex:-1,children:dr(xs,{className:"size-2.5 group-data-[size=lg]/badge:size-3 group-data-[size=xl]/badge:size-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null;if(u)return dr(vb,{ref:T,className:M,onClick:d,"data-size":b,...g,children:c},void 0,!1,void 0,this);if(h)return dr("button",{ref:T,className:M,onClick:d,type:"button","data-size":b,...g,children:[!N&&c,k]},void 0,!0,void 0,this);return dr("span",{ref:T,className:M,"data-size":b,...g,children:[!N&&c,k]},void 0,!0,void 0,this)});Mo.displayName="Badge";import{Children as Pb,cloneElement as xb,forwardRef as Mb,isValidElement as Nb,useCallback as Ns,useEffect as Lb,useLayoutEffect as zb,useRef as Rb,useState as Cb}from"react";import{jsxDEV as Ls}from"react/jsx-dev-runtime";function Hb(e){let t=[];return Pb.forEach(e,(r,o)=>{if(!Nb(r))return;let n=r.key??o;t.push({key:n,element:r,isLeaving:!1})}),t}function wb(e,t){let r=new Set(t.map((i)=>i.key)),o=new Set(e.map((i)=>i.key)),n=[];for(let i of e)if(r.has(i.key)){let s=t.find((l)=>l.key===i.key);if(s)n.push({...s,isLeaving:!1})}else n.push({...i,isLeaving:!0});for(let i of t)if(!o.has(i.key))n.push(i);return n}function kb(e,t,r){if(r.current)return r.current=!1,t;return wb(e,t)}var Ab=typeof window<"u"?zb:Lb,zs=Mb(({children:e,className:t,onRemove:r,gap:o="sm"},n)=>{let[i,s]=Cb([]),l=Rb(!0);Ab(()=>{let u=Hb(e);s((g)=>kb(g,u,l))},[e]);let m=Ns((u)=>{s((g)=>g.filter((T)=>T.key!==u))},[]),d=Ns((u)=>{r?.(u)},[r]),c={sm:"gap-1",md:"gap-2",lg:"gap-3"}[o];return Ls("div",{ref:n,className:a("inline-flex flex-wrap items-center",c,t),children:i.map((u)=>{let g={};if(u.element.props.removable&&r)g.onRemove=()=>{d(u.key)};let T=a("inline-flex transition-all duration-200",u.isLeaving&&"pointer-events-none scale-95 opacity-0");return Ls("span",{className:T,onTransitionEnd:u.isLeaving?()=>m(u.key):void 0,children:xb(u.element,g)},u.key,!1,void 0,this)})},void 0,!1,void 0,this)});zs.displayName="BadgeGroup";import{Slot as Sb}from"@radix-ui/react-slot";import{cva as Or}from"class-variance-authority";import{ChevronRight as Ib,MoreHorizontal as Bb}from"lucide-react";import{createContext as Fb,forwardRef as No,useContext as wa}from"react";import{jsxDEV as st}from"react/jsx-dev-runtime";var Te={sm:"sm",md:"md",lg:"lg"},an=Fb(Te.md),Rs=Or("flex flex-wrap items-center break-words text-muted-foreground",{variants:{size:{[Te.sm]:"gap-1 text-xs",[Te.md]:"gap-1.5 text-sm sm:gap-2.5",[Te.lg]:"gap-2 text-base sm:gap-3"}},defaultVariants:{size:Te.md}}),Cs=Or("inline-flex items-center gap-1.5"),Hs=Or("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] hover:text-foreground focus-visible:outline-none focus-visible:text-foreground"),ws=Or("font-normal text-foreground"),ks=Or("",{variants:{size:{[Te.sm]:"[&>svg]:size-3",[Te.md]:"[&>svg]:size-3.5",[Te.lg]:"[&>svg]:size-4"}},defaultVariants:{size:Te.md}}),As=Or("flex items-center justify-center",{variants:{size:{[Te.sm]:"h-7 w-7 [&>svg]:size-3.5",[Te.md]:"h-9 w-9 [&>svg]:size-4",[Te.lg]:"h-10 w-10 [&>svg]:size-5"}},defaultVariants:{size:Te.md}}),Ss=No(({size:e=Te.md,...t},r)=>{let o=f(e)??Te.md;return st(an.Provider,{value:o,children:st("nav",{ref:r,"aria-label":"breadcrumb",...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Ss.displayName="Breadcrumb";var Is=No(({className:e,...t},r)=>{let o=wa(an);return st("ol",{ref:r,className:a(Rs({size:o}),e),...t},void 0,!1,void 0,this)});Is.displayName="BreadcrumbList";var Bs=No(({className:e,...t},r)=>st("li",{ref:r,className:a(Cs(),e),...t},void 0,!1,void 0,this));Bs.displayName="BreadcrumbItem";var Fs=No(({asChild:e,className:t,...r},o)=>{return st(e?Sb:"a",{ref:o,className:a(Hs(),t),...r},void 0,!1,void 0,this)});Fs.displayName="BreadcrumbLink";var Gs=No(({className:e,...t},r)=>st("span",{ref:r,role:"link",tabIndex:0,"aria-disabled":"true","aria-current":"page",className:a(ws(),e),...t},void 0,!1,void 0,this));Gs.displayName="BreadcrumbPage";var Os=({children:e,className:t,...r})=>{let o=wa(an),n={[Te.sm]:"size-3",[Te.md]:"size-3.5",[Te.lg]:"size-4"};return st("li",{role:"presentation","aria-hidden":"true",className:a(ks({size:o}),t),...r,children:e??st(Ib,{className:n[o]},void 0,!1,void 0,this)},void 0,!1,void 0,this)};Os.displayName="BreadcrumbSeparator";var Ws=({className:e,...t})=>{let r=wa(an);return st("span",{role:"presentation","aria-hidden":"true",className:a(As({size:r}),e),...t,children:[st(Bb,{},void 0,!1,void 0,this),st("span",{className:"sr-only",children:"More"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};Ws.displayName="BreadcrumbEllipsis";import{createContext as Gb,useCallback as Ks,useContext as Ob,useEffect as _s,useMemo as sn,useState as Wb}from"react";import{jsxDEV as $b}from"react/jsx-dev-runtime";var Us=Gb(null),Kb=(e,t,r)=>{let o={item:e,index:t,nativeEvent:r,defaultPrevented:!1,preventDefault:()=>{o.defaultPrevented=!0,r.preventDefault()}};return o},_b=({items:e,resolveContext:t,entityResolvers:r,collapse:o,onBeforeNavigate:n,onNavigate:i,onItemClick:s,children:l})=>{let m=sn(()=>ka(e,{resolveContext:t,entityResolvers:r}),[r,e,t]),d=sn(()=>e.some((v)=>{if(v.label||!v.entity)return!1;return Boolean(r?.[v.entity.kind])}),[r,e]),[c,u]=Wb(null);_s(()=>{if(!d&&c!==null)u(null)},[c,d]),_s(()=>{if(!d)return;let v=!0;return Aa(e,{resolveContext:t,entityResolvers:r}).then((p)=>{if(v)u(p)}),()=>{v=!1}},[r,e,d,t]);let g=c??m,T=sn(()=>Sa(g,o),[g,o]),b=Ks((v,p,P)=>{if(v.disabled){P.preventDefault();return}let M=Kb(v,p,P);if(v.onClick?.(M),s?.(v,p),v.current)return;if(v.onBeforeNavigate?.(M),n?.(M),M.defaultPrevented)return;v.onNavigate?.(M),i?.(M)},[n,s,i]),h=Ks((v,p,P)=>{return{onClick:(M)=>{if(P?.onClick?.(M),M.defaultPrevented)return;b(v,p,M)},onKeyDown:(M)=>{if(P?.onKeyDown?.(M),M.defaultPrevented)return;if(M.key==="Enter"||M.key===" "){if(M.key===" ")M.preventDefault();b(v,p,M)}},"aria-current":v.current?"page":void 0,"aria-disabled":v.disabled?!0:void 0,tabIndex:v.disabled?-1:void 0,"data-breadcrumb-id":v.id}},[b]),N=sn(()=>({items:g,visibleItems:T.visibleItems,hiddenItems:T.hiddenItems,getItemProps:h}),[T.hiddenItems,T.visibleItems,h,g]);return $b(Us.Provider,{value:N,children:l},void 0,!1,void 0,this)},Ub=()=>{let e=Ob(Us);if(!e)throw Error("useBreadcrumbs must be used within BreadcrumbProvider");return e};import{cva as qb}from"class-variance-authority";import{forwardRef as Qb}from"react";import{jsxDEV as Zb}from"react/jsx-dev-runtime";var Lo={horizontal:"horizontal",vertical:"vertical"},$s=qb("inline-flex items-stretch",{variants:{orientation:{[Lo.horizontal]:"flex-row",[Lo.vertical]:"flex-col"},attached:{true:"gap-0 [&>*:not(:first-child)]:rounded-l-none [&>*:not(:last-child)]:rounded-r-none",false:"gap-2"}},defaultVariants:{orientation:Lo.horizontal,attached:!1}}),Ys=Qb(({className:e,orientation:t=Lo.horizontal,attached:r=!1,fullWidth:o=!1,...n},i)=>Zb("div",{ref:i,className:a($s({orientation:t,attached:r}),o&&"w-full",e),...n},void 0,!1,void 0,this));Ys.displayName="ButtonGroup";import{cva as Ut}from"class-variance-authority";import{forwardRef as Eb,useCallback as Wr,useEffect as Db,useMemo as Vs,useState as Xs}from"react";import{jsxDEV as Qe}from"react/jsx-dev-runtime";var G={sm:"sm",md:"md",lg:"lg",xl:"xl"},qs=Ut("flex flex-col rounded-xl border border-border bg-card/95 shadow-[var(--shadow-sm)] transition-[color,background-color,border-color,box-shadow] duration-150",{variants:{size:{[G.sm]:"p-3 text-sm",[G.md]:"p-4 text-sm",[G.lg]:"p-5 text-base",[G.xl]:"p-6 text-base"}},defaultVariants:{size:G.md}}),Qs=Ut("mb-3 flex items-center justify-between",{variants:{size:{[G.sm]:"gap-1",[G.md]:"gap-2",[G.lg]:"gap-3",[G.xl]:"gap-3"}},defaultVariants:{size:G.md}}),Zs=Ut("font-semibold text-foreground",{variants:{size:{[G.sm]:"text-sm",[G.md]:"text-base",[G.lg]:"text-lg",[G.xl]:"text-xl"}},defaultVariants:{size:G.md}}),Ia=Ut(["inline-flex items-center justify-center rounded-md border border-transparent","text-muted-foreground hover:border-border/70 hover:bg-accent/60 hover:text-foreground","active:scale-[0.98]","transition-[color,background-color,border-color,box-shadow,transform,opacity] duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:cursor-not-allowed disabled:border-transparent disabled:bg-muted/40 disabled:text-muted-foreground/70"],{variants:{size:{[G.sm]:"size-7",[G.md]:"size-8",[G.lg]:"size-10",[G.xl]:"size-10"}},defaultVariants:{size:G.md}}),Es=Ut("grid grid-cols-7",{variants:{size:{[G.sm]:"gap-0",[G.md]:"gap-0",[G.lg]:"gap-0",[G.xl]:"gap-0"}},defaultVariants:{size:G.md}}),Ds=Ut("text-center font-semibold uppercase tracking-wide text-muted-foreground",{variants:{size:{[G.sm]:"py-1 text-[11px]",[G.md]:"py-1.5 text-xs",[G.lg]:"py-2 text-sm",[G.xl]:"py-2 text-sm"}},defaultVariants:{size:G.md}}),js=Ut(["inline-flex items-center justify-center rounded-md border border-transparent font-medium","transition-[color,background-color,border-color,box-shadow,transform,opacity] duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1","active:scale-[0.98]"],{variants:{size:{[G.sm]:"size-7 text-xs",[G.md]:"size-9 text-sm",[G.lg]:"size-10 text-base",[G.xl]:"size-11 text-base"},state:{default:"cursor-pointer text-foreground hover:border-border/70 hover:bg-accent/60",selected:"border-primary/35 bg-primary text-primary-foreground shadow-[var(--glow-brand-sm)] hover:bg-primary/90",today:"border-primary/30 bg-primary/10 text-primary",disabled:"cursor-not-allowed border-transparent bg-muted/40 text-muted-foreground/60",outside:"",rangeStart:"cursor-pointer rounded-r-none border-primary/35 bg-primary text-primary-foreground hover:bg-primary/90",rangeEnd:"cursor-pointer rounded-l-none border-primary/35 bg-primary text-primary-foreground hover:bg-primary/90",range:"cursor-pointer rounded-none border-transparent bg-primary/12 text-primary hover:bg-primary/20"}},defaultVariants:{size:G.md,state:"default"}}),jb=Ut("rounded-md border border-transparent",{variants:{size:{[G.sm]:"size-7",[G.md]:"size-9",[G.lg]:"size-10",[G.xl]:"size-11"}},defaultVariants:{size:G.md}}),Js=["Su","Mo","Tu","We","Th","Fr","Sa"],ey=["January","February","March","April","May","June","July","August","September","October","November","December"],kt=(e)=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),Kr=(e,t)=>{return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()},el=Eb(({className:e,size:t="md",cellSize:r,mode:o="single",value:n,defaultValue:i,onChange:s,rangeValue:l,onRangeChange:m,viewMonth:d,onViewMonthChange:c,minDate:u,maxDate:g,disabledDates:T=[],weekStartsOn:b=1,highlightToday:h=!0,...N},v)=>{let p=f(t)??G.md,P=f(r??p)??p,[M,k]=Xs(n??i??null),[H,B]=Xs(n??i??new Date),w=d??H,J=Wr((y)=>{if(c){let x=typeof y==="function"?y(d??H):y;c(x)}else B((x)=>{return typeof y==="function"?y(x):y})},[d,H,c]),Y=n!==void 0?n:M,q=u?kt(u):null,ee=g?kt(g):null;Db(()=>{if(n!==void 0){if(k(n??null),n&&!d)B(n)}},[n,d]);let me=Wr((y,x)=>{return(new Date(y,x,1).getDay()-b+7)%7},[b]),X=Vs(()=>{let y=w.getFullYear(),x=w.getMonth(),C=me(y,x),ne=new Date(y,x+1,0).getDate(),_=[];for(let W=0;W<C;W+=1)_.push({key:`leading-${y}-${x}-${W}`,date:null});for(let W=1;W<=ne;W+=1)_.push({key:`day-${y}-${x}-${W}`,date:new Date(y,x,W)});let Ce=(7-_.length%7)%7;for(let W=0;W<Ce;W+=1)_.push({key:`trailing-${y}-${x}-${W}`,date:null});return _},[w,me]),Q=Wr((y)=>{let x=kt(y);if(q&&x<q)return!0;if(ee&&x>ee)return!0;return T.some((C)=>Kr(x,kt(C)))},[q,ee,T]),A=Wr((y)=>{if(Q(y))return"disabled";if(o==="range"&&l){let{from:x,to:C}=l;if(x&&Kr(y,x))return"rangeStart";if(C&&Kr(y,C))return"rangeEnd";if(x&&C){let ne=kt(y),_=kt(x),Ce=kt(C);if(ne>_&&ne<Ce)return"range"}}if(o==="single"&&Y&&Kr(y,Y))return"selected";if(h&&Kr(y,new Date))return"today";return"default"},[Y,h,Q,o,l]),oe=Wr((y)=>{if(Q(y))return;let x=new Date(y);if(o==="range"){if(!l?.from||l.from&&l.to)m?.({from:x,to:void 0});else{let C=kt(l.from);if(kt(x)<C)m?.({from:x,to:l.from});else m?.({from:l.from,to:x})}return}if(n===void 0)k(x);s?.(x)},[Q,o,s,m,l,n]),z=Wr((y)=>{J((x)=>{let C=new Date(x);return C.setMonth(C.getMonth()+y),C})},[J]),K=Vs(()=>{return[...Js.slice(b),...Js.slice(0,b)]},[b]);return Qe("div",{ref:v,className:a(qs({size:p}),e),...N,children:[Qe("div",{className:a(Qs({size:p})),children:[Qe("button",{type:"button",onClick:()=>z(-1),className:a(Ia({size:p})),"aria-label":"Previous month",children:Qe("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Qe("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19l-7-7 7-7"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Qe("span",{className:a(Zs({size:p})),children:[ey[w.getMonth()]," ",w.getFullYear()]},void 0,!0,void 0,this),Qe("button",{type:"button",onClick:()=>z(1),className:a(Ia({size:p})),"aria-label":"Next month",children:Qe("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Qe("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Qe("div",{className:a(Es({size:p})),children:[K.map((y)=>Qe("div",{className:a(Ds({size:P})),children:y},y,!1,void 0,this)),X.map((y)=>{if(!y.date)return Qe("div",{"aria-hidden":"true",className:a(jb({size:P}))},y.key,!1,void 0,this);let x=y.date,C=A(x);return Qe("button",{type:"button",onClick:()=>oe(x),disabled:C==="disabled",className:a(js({size:P,state:C})),children:x.getDate()},y.key,!1,void 0,this)})]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});el.displayName="Calendar";import{Slot as _r}from"@radix-ui/react-slot";import{cva as ty}from"class-variance-authority";import{forwardRef as Ur}from"react";import{jsxDEV as $r}from"react/jsx-dev-runtime";var ln={default:"default",muted:"muted",danger:"danger"},tl=ty("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] relative overflow-hidden rounded-[var(--radius)] border bg-card text-card-foreground shadow-[var(--shadow-sm)]",{variants:{variant:{[ln.default]:"border-border",[ln.muted]:"border-border bg-muted/70",[ln.danger]:"border-destructive/30 bg-destructive/[0.06]"}},defaultVariants:{variant:ln.default}}),rl=Ur(({asChild:e=!1,className:t,variant:r,...o},n)=>{return $r(e?_r:"div",{ref:n,className:a(tl({variant:r}),t),...o},void 0,!1,void 0,this)});rl.displayName="Card";var ol=Ur(({asChild:e=!1,className:t,...r},o)=>{return $r(e?_r:"div",{ref:o,className:a("flex flex-col gap-1.5 border-border border-b p-4",t),...r},void 0,!1,void 0,this)});ol.displayName="CardHeader";var nl=Ur(({asChild:e=!1,className:t,...r},o)=>{return $r(e?_r:"div",{ref:o,className:a("p-4",t),...r},void 0,!1,void 0,this)});nl.displayName="CardContent";var al=Ur(({asChild:e=!1,className:t,...r},o)=>{return $r(e?_r:"div",{ref:o,className:a("flex items-center border-border border-t p-4",t),...r},void 0,!1,void 0,this)});al.displayName="CardFooter";var il=Ur(({asChild:e=!1,className:t,...r},o)=>{return $r(e?_r:"h3",{ref:o,className:a("font-semibold text-base leading-none tracking-tight",t),...r},void 0,!1,void 0,this)});il.displayName="CardTitle";var sl=Ur(({asChild:e=!1,className:t,...r},o)=>{return $r(e?_r:"p",{ref:o,className:a("text-muted-foreground text-sm",t),...r},void 0,!1,void 0,this)});sl.displayName="CardDescription";import*as dn from"@radix-ui/react-checkbox";import{cva as ry}from"class-variance-authority";import{Check as oy,Minus as ny}from"lucide-react";import{forwardRef as ay}from"react";import{jsxDEV as mn}from"react/jsx-dev-runtime";var lt={sm:"sm",md:"md",lg:"lg",xl:"xl"},Yr={default:"default",error:"error",success:"success"},ml=ry("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] inline-flex shrink-0 items-center justify-center rounded border border-border bg-background text-foreground enabled:active:scale-[0.94] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground",{variants:{size:{[lt.sm]:"h-4 w-4",[lt.md]:"h-5 w-5",[lt.lg]:"h-6 w-6",[lt.xl]:"h-7 w-7"},status:{[Yr.default]:"enabled:hover:border-primary/70",[Yr.error]:"enabled:hover:border-destructive/70 focus-visible:ring-destructive data-[state=checked]:border-destructive data-[state=checked]:bg-destructive data-[state=checked]:text-destructive-foreground data-[state=indeterminate]:border-destructive data-[state=indeterminate]:bg-destructive data-[state=indeterminate]:text-destructive-foreground",[Yr.success]:"enabled:hover:border-success/70 focus-visible:ring-success data-[state=checked]:border-success data-[state=checked]:bg-success data-[state=checked]:text-success-foreground data-[state=indeterminate]:border-success data-[state=indeterminate]:bg-success data-[state=indeterminate]:text-success-foreground"}},defaultVariants:{size:lt.md,status:Yr.default}}),ll={[lt.sm]:"size-3.5",[lt.md]:"size-3.5",[lt.lg]:"size-4",[lt.xl]:"size-5"},dl=ay(({className:e,size:t=lt.md,status:r=Yr.default,checked:o,disabled:n,...i},s)=>{let l=f(t);return mn(dn.Root,{ref:s,checked:o,disabled:n,className:a(ml({size:l,status:r}),e),...i,children:mn(dn.Indicator,{className:"gs-checkbox-indicator flex items-center justify-center text-current",children:o==="indeterminate"?mn(ny,{className:ll[l]},void 0,!1,void 0,this):mn(oy,{className:ll[l]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});dl.displayName="Checkbox";import{cva as $t}from"class-variance-authority";import{forwardRef as iy,useCallback as sy,useState as ly}from"react";import{jsxDEV as Ge,Fragment as ul}from"react/jsx-dev-runtime";var j={sm:"sm",md:"md",lg:"lg"},Ba={default:"default",ghost:"ghost"},cl=$t("relative rounded-lg overflow-hidden font-mono",{variants:{size:{[j.sm]:"text-xs",[j.md]:"text-sm",[j.lg]:"text-base"},variant:{[Ba.default]:"bg-muted border border-border",[Ba.ghost]:"bg-transparent"}},defaultVariants:{size:j.md,variant:Ba.default}}),pl=$t("flex items-center justify-between border-b border-border bg-muted",{variants:{size:{[j.sm]:"px-2.5 py-1.5 text-xs",[j.md]:"px-4 py-2 text-sm",[j.lg]:"px-5 py-2.5 text-base"}},defaultVariants:{size:j.md}}),fl=$t("text-muted-foreground font-medium",{variants:{size:{[j.sm]:"text-[11px]",[j.md]:"text-xs",[j.lg]:"text-sm"}},defaultVariants:{size:j.md}}),gl=$t(["inline-flex items-center gap-1.5 rounded-md font-medium","text-muted-foreground hover:text-foreground hover:bg-muted","transition-all duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary"],{variants:{size:{[j.sm]:"px-2 py-1 text-xs",[j.md]:"px-2.5 py-1 text-xs",[j.lg]:"px-3 py-1.5 text-sm"},copied:{true:"text-success",false:""}},defaultVariants:{size:j.md,copied:!1}}),bl=$t("overflow-x-auto",{variants:{size:{[j.sm]:"p-2.5",[j.md]:"p-4",[j.lg]:"p-5"}},defaultVariants:{size:j.md}}),yl=$t("text-foreground",{variants:{size:{[j.sm]:"",[j.md]:"",[j.lg]:""},showLineNumbers:{true:"",false:""}},defaultVariants:{size:j.md,showLineNumbers:!1}}),vl=$t("block",{variants:{size:{[j.sm]:"min-h-[1.25rem]",[j.md]:"min-h-[1.5rem]",[j.lg]:"min-h-[1.75rem]"},highlighted:{true:"bg-primary/10 -mx-4 px-4",false:""}},defaultVariants:{size:j.md,highlighted:!1}}),Tl=$t("inline-block text-right text-muted-foreground select-none",{variants:{size:{[j.sm]:"w-6 mr-2 text-[11px]",[j.md]:"w-8 mr-4 text-xs",[j.lg]:"w-10 mr-5 text-sm"}},defaultVariants:{size:j.md}}),hl=iy(({className:e,code:t,language:r,showLineNumbers:o=!1,highlightedLines:n=[],showCopy:i=!0,size:s="md",variant:l="default",onCopy:m,...d},c)=>{let u=f(s),[g,T]=ly(!1),b=sy(async()=>{try{await navigator.clipboard.writeText(t),T(!0),m?.(t),setTimeout(()=>T(!1),2000)}catch(v){}},[t,m]),h=t.split(`
|
|
2
|
+
import{$ as da,A as Za,B as Cd,C as lx,D as Fa,E as Ga,F as xn,G as Jn,H as mx,I as Bt,J as dx,K as ux,L as zt,M as Pg,N as xg,O as Mg,P as Ng,Q as Lg,R as zg,S as Rg,T as vo,U as Lt,V as Cg,W as Hg,X as ia,Y as la,Z as ma,_ as Bi,a,aa as wg,b as Fg,ba as kg,c as DP,ca as sa,d as I,da as Ag,e as jP,ea as pa,f as ex,g as tx,h as rx,i as ox,j as nx,k as ax,l as oo,m as ix,n as sx,o as Yb,p as ka,q as Aa,r as Ba,s as Vb,t as Xb,u as Jb,v as qb,w as Qb,x as Zb,y as Eb,z as Rd}from"./chunk-yhwkdmmt.js";import{cva as sk}from"class-variance-authority";import*as yt from"@radix-ui/react-accordion";import{cva as ya}from"class-variance-authority";import{ChevronDown as Wg}from"lucide-react";import{createContext as Kg,forwardRef as tn,useContext as Gi}from"react";var Gg="md",Og=()=>{return"md"};function f(e){if(e!==void 0)return e;return"md"}import{jsxDEV as Gt}from"react/jsx-dev-runtime";var Fe={sm:"sm",md:"md",lg:"lg"},va=Kg(Fe.md),Oi=ya("border-b border-border"),Wi=ya("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] flex flex-1 items-center justify-between font-medium hover:underline [&[data-state=open]>svg]:rotate-180",{variants:{size:{[Fe.sm]:"py-3 text-xs [&>svg]:size-3.5",[Fe.md]:"py-4 text-sm [&>svg]:size-4",[Fe.lg]:"py-5 text-base [&>svg]:size-5"}},defaultVariants:{size:Fe.md}}),Ki=ya("gs-accordion-content overflow-hidden",{variants:{size:{[Fe.sm]:"text-xs",[Fe.md]:"text-sm",[Fe.lg]:"text-base"}},defaultVariants:{size:Fe.md}}),_g={[Fe.sm]:"pt-0 pb-3",[Fe.md]:"pt-0 pb-4",[Fe.lg]:"pt-0 pb-5"},_i=tn(({size:e=Fe.md,...t},r)=>{let o=f(e)??Fe.md;return Gt(va.Provider,{value:o,children:Gt(yt.Root,{ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});_i.displayName="Accordion";var Ui=tn(({className:e,...t},r)=>Gt(yt.Item,{ref:r,className:a(Oi(),e),...t},void 0,!1,void 0,this));Ui.displayName="AccordionItem";var $i=tn(({className:e,children:t,...r},o)=>{let n=Gi(va);return Gt(yt.Header,{className:"flex",children:Gt(yt.Trigger,{ref:o,className:a(Wi({size:n}),e),...r,children:[t,Gt(Wg,{className:"shrink-0 transition-transform"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});$i.displayName="AccordionTrigger";var Yi=tn(({className:e,children:t,...r},o)=>{let n=Gi(va);return Gt(yt.Content,{ref:o,className:a(Ki({size:n}),e),...r,children:Gt("div",{className:_g[n],children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Yi.displayName="AccordionContent";import{cva as Ta}from"class-variance-authority";import{TriangleAlert as Ug,CircleCheck as $g,Info as Yg,CircleAlert as Vg}from"lucide-react";import{forwardRef as ha}from"react";import{jsxDEV as Pa}from"react/jsx-dev-runtime";var Ar={default:"default",success:"success",warning:"warning",error:"error",info:"info"},ho={sm:"sm",md:"md",lg:"lg",xl:"xl"},Vi=Ta("gs-alert relative w-full rounded-[var(--radius)] border [&>svg~*]:pl-8 [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:size-4 [&>svg]:text-foreground h-min",{variants:{variant:{[Ar.default]:"border-border bg-secondary text-foreground",[Ar.success]:"border-success/50 text-success [&>svg]:text-success bg-success/10",[Ar.warning]:"border-warning/50 text-warning [&>svg]:text-warning bg-warning/10",[Ar.error]:"border-destructive/50 text-destructive [&>svg]:text-destructive bg-destructive/10",[Ar.info]:"border-info/50 text-info [&>svg]:text-info bg-info/10"},size:{[ho.sm]:"p-3 text-sm [&>svg]:left-3 [&>svg]:top-3 [&>svg]:size-3.5 [&>svg~*]:pl-7",[ho.md]:"p-4 text-sm",[ho.lg]:"p-5 text-sm [&>svg]:left-5 [&>svg]:top-5",[ho.xl]:"p-6 text-base [&>svg]:left-6 [&>svg]:top-6 [&>svg]:size-5 [&>svg~*]:pl-10"}},defaultVariants:{variant:Ar.default,size:ho.md}}),Xi=Ta("mb-1 font-medium leading-none tracking-tight [.gs-alert[data-size=sm]_&]:text-sm [.gs-alert[data-size=md]_&]:text-sm [.gs-alert[data-size=lg]_&]:text-base [.gs-alert[data-size=xl]_&]:text-lg h-min"),Ji=Ta("[&_p]:leading-relaxed [.gs-alert[data-size=sm]_&]:text-[13px] [.gs-alert[data-size=md]_&]:text-sm [.gs-alert[data-size=lg]_&]:text-sm [.gs-alert[data-size=xl]_&]:text-base"),qi=ha(({className:e,variant:t,size:r,...o},n)=>{let i=f(r);return Pa("div",{ref:n,role:"alert","data-size":i,className:a(Vi({variant:t,size:i}),e),...o},void 0,!1,void 0,this)});qi.displayName="Alert";var Qi=ha(({className:e,...t},r)=>Pa("h5",{ref:r,className:a(Xi(),e),...t},void 0,!1,void 0,this));Qi.displayName="AlertTitle";var Zi=ha(({className:e,...t},r)=>Pa("div",{ref:r,className:a(Ji(),e),...t},void 0,!1,void 0,this));Zi.displayName="AlertDescription";import*as ze from"@radix-ui/react-alert-dialog";import{cva as ns}from"class-variance-authority";import{createContext as ab,forwardRef as Sr,useCallback as ib,useContext as sb,useEffect as lb,useState as as}from"react";import{Slot as Ei}from"@radix-ui/react-slot";import{cva as Ma}from"class-variance-authority";import{forwardRef as rn}from"react";import{forwardRef as Xg}from"react";import{jsxDEV as xa}from"react/jsx-dev-runtime";var Br={sm:"sm",md:"md",lg:"lg",xl:"xl"},Jg={[Br.sm]:"h-4 w-4",[Br.md]:"h-5 w-5",[Br.lg]:"h-6 w-6",[Br.xl]:"h-8 w-8"},Ot=Xg(({className:e,size:t=Br.md,label:r="Loading",...o},n)=>{let i=f(t);return xa("span",{ref:n,className:a("inline-flex items-center justify-center",e),role:"status","aria-label":r,...o,children:[xa("span",{"data-gs-motion":"essential",className:a("gs-loading-motion animate-spin rounded-full border-2 border-current border-r-transparent",Jg[i])},void 0,!1,void 0,this),xa("span",{className:"sr-only",children:r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Ot.displayName="Spinner";import{jsxDEV as Ht}from"react/jsx-dev-runtime";var Ct={primary:"primary",secondary:"secondary",neutral:"neutral",outline:"outline",ghost:"ghost",danger:"danger"},Je={sm:"sm",md:"md",lg:"lg",xl:"xl",icon:"icon",iconSm:"icon-sm",iconLg:"icon-lg"},Wt={default:"default",success:"success",warning:"warning",error:"error",info:"info"},Ir={sm:"sm",md:"md",lg:"lg"},qg="Loading",Qg="button",Po=Ma("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] relative inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-[var(--radius)] border border-transparent font-semibold outline-none focus-visible:border-primary disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-55",{variants:{variant:{[Ct.primary]:"border-primary bg-primary text-primary-foreground enabled:hover:bg-primary/90",[Ct.secondary]:"border-secondary bg-secondary text-secondary-foreground enabled:hover:bg-secondary/90",[Ct.neutral]:"border-border bg-muted text-foreground enabled:hover:bg-muted/90",[Ct.outline]:"border-border bg-background text-foreground enabled:hover:border-primary enabled:hover:bg-muted/50",[Ct.ghost]:"border-transparent bg-transparent text-foreground enabled:hover:bg-muted/70",[Ct.danger]:"border-destructive bg-destructive text-destructive-foreground enabled:hover:bg-destructive/90"},size:{[Je.sm]:"h-8 px-2.5 text-xs",[Je.md]:"h-10 px-4 text-sm",[Je.lg]:"h-11 px-5 text-sm",[Je.xl]:"h-12 px-6 text-base",[Je.icon]:"h-10 w-10 p-0",[Je.iconSm]:"h-9 w-9 p-0",[Je.iconLg]:"h-11 w-11 p-0"}},defaultVariants:{variant:Ct.primary,size:Je.md}}),Di=Ma("shrink-0",{variants:{size:{[Ir.sm]:"size-3",[Ir.md]:"size-4",[Ir.lg]:"size-4.5"}},defaultVariants:{size:Ir.md}}),ji=Ma("inline-flex items-center rounded-full border px-1.5 py-0.5 font-semibold text-[11px] leading-none",{variants:{tone:{[Wt.default]:"border-border/70 bg-background/75 text-muted-foreground",[Wt.success]:"border-success/35 bg-success/12 text-success",[Wt.warning]:"border-warning/35 bg-warning/12 text-warning",[Wt.error]:"border-destructive/35 bg-destructive/12 text-destructive",[Wt.info]:"border-info/35 bg-info/12 text-info"}},defaultVariants:{tone:Wt.default}});function Zg(e){return e===Je.icon||e===Je.iconSm||e===Je.iconLg}function Eg(e,t,r){return e&&t?-1:r}function Dg(e){return e["aria-label"]??e["aria-labelledby"]??e.title}function jg(){if(typeof process>"u")return!0;return!0}var es=rn(({className:e,size:t=Ir.md,...r},o)=>Ht(Ei,{ref:o,className:a(Di({size:t}),e),...r},void 0,!1,void 0,this));es.displayName="ButtonIcon";var ts=rn(({className:e,...t},r)=>Ht("span",{ref:r,className:a("truncate",e),...t},void 0,!1,void 0,this));ts.displayName="ButtonLabel";var rs=rn(({className:e,tone:t=Wt.default,...r},o)=>Ht("span",{ref:o,className:a(ji({tone:t}),e),...r},void 0,!1,void 0,this));rs.displayName="ButtonBadge";var os=rn(({className:e,variant:t=Ct.primary,size:r=Je.md,asChild:o=!1,loading:n=!1,loadingText:i=qg,fullWidth:s=!1,leadingIcon:l,trailingIcon:m,disabled:d,children:c,type:u,tabIndex:g,onClick:T,...b},h)=>{let N=f(r),v=N??r,p=Dg(b);if(jg()&&Zg(v)&&!p)throw Error("Icon-size Button requires aria-label, aria-labelledby, or title.");let P=Boolean(d||n),M=a(Po({variant:t,size:N}),P&&"pointer-events-none cursor-not-allowed opacity-55",s&&"w-full",e);if(o)return Ht(Ei,{ref:h,className:M,"aria-disabled":P||void 0,"aria-busy":n||void 0,tabIndex:Eg(!0,P,g),onClick:P?(k)=>{k.preventDefault()}:T,...b,children:c},void 0,!1,void 0,this);return Ht("button",{ref:h,className:M,disabled:P,"aria-disabled":P,"aria-busy":n,tabIndex:g,type:u??Qg,onClick:n?void 0:T,...b,children:[Ht("span",{className:a("absolute inset-0 flex items-center justify-center transition-opacity duration-150",n?"opacity-100":"opacity-0"),"aria-hidden":"true",children:Ht(Ot,{size:"sm"},void 0,!1,void 0,this)},void 0,!1,void 0,this),n&&Ht("span",{className:"sr-only",children:i},void 0,!1,void 0,this),Ht("span",{className:a("inline-flex items-center justify-center gap-2 transition-opacity duration-150",n&&"opacity-0"),children:[l,c,m]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});os.displayName="Button";var le=!0,it=4,Kt="fixed inset-0 z-50 bg-black/50",on="transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] absolute top-4 right-4 rounded-[var(--radius)] border border-border p-1.5 text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none";import{useSyncExternalStore as eb}from"react";var La="(prefers-reduced-motion: reduce)",Na="data-gs-demo-reduced-motion";function tb(){if(typeof document>"u")return!1;return document.documentElement.getAttribute(Na)==="true"}function rb(){if(typeof window>"u"||typeof window.matchMedia!=="function")return!1;return window.matchMedia(La).matches}function xo(){return tb()||rb()}var ob=()=>!1;function nb(e){if(typeof window>"u")return()=>{return};let t=window.matchMedia(La);t.addEventListener("change",e);let r=typeof MutationObserver<"u"?new MutationObserver((o)=>{for(let n of o)if(n.type==="attributes"&&n.attributeName===Na){e();break}}):null;return r?.observe(document.documentElement,{attributes:!0,attributeFilter:[Na]}),()=>{t.removeEventListener("change",e),r?.disconnect()}}function ve(){return eb(nb,xo,ob)}import{jsxDEV as qe,Fragment as cb}from"react/jsx-dev-runtime";var _t={sm:I.sm,md:I.md,lg:I.lg,xl:I.xl,full:"full"},mb=160,is=ns(a("gs-dialog-overlay",Kt)),ss=ns("gs-dialog-content fixed left-1/2 top-1/2 z-50 grid w-full gap-4 border border-border bg-card p-6 text-foreground shadow-[var(--shadow-xl)] rounded-[var(--radius)]",{variants:{size:{[_t.sm]:"max-w-sm",[_t.md]:"max-w-md",[_t.lg]:"max-w-lg",[_t.xl]:"max-w-xl",[_t.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:_t.md}}),ls=ab(!1),db=({children:e,open:t,defaultOpen:r=!1,onOpenChange:o,...n})=>{let[i,s]=as(r),l=t!==void 0,m=l?t:i,d=ib((c)=>{if(!l)s(c);o?.(c)},[l,o]);return qe(ls.Provider,{value:m,children:qe(ze.Root,{open:m,onOpenChange:d,...n,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},ub=ze.Trigger,ms=ze.Portal,za=Sr(({className:e,...t},r)=>qe(ze.Overlay,{ref:r,className:a(is(),e),...t},void 0,!1,void 0,this));za.displayName="AlertDialogOverlay";var ds=Sr(({className:e,size:t=_t.md,showOverlay:r=!0,portal:o=le,portalContainer:n,forceMount:i=!1,...s},l)=>{let m=sb(ls),[d,c]=as(i||m),u=f(t),g=ve();if(lb(()=>{if(i||m){c(!0);return}let h=setTimeout(()=>{c(!1)},g?0:mb);return()=>{clearTimeout(h)}},[i,m,g]),!(i||m||d))return null;let b=qe(cb,{children:[r?qe(za,{forceMount:!0},void 0,!1,void 0,this):null,qe(ze.Content,{ref:l,forceMount:!0,className:a(ss({size:u}),e),...s},void 0,!1,void 0,this)]},void 0,!0,void 0,this);if(!o)return b;return qe(ms,{forceMount:!0,container:n??void 0,children:b},void 0,!1,void 0,this)});ds.displayName="AlertDialogContent";var us=({className:e,...t})=>qe("div",{className:a("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);us.displayName="AlertDialogHeader";var cs=({className:e,...t})=>qe("div",{className:a("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);cs.displayName="AlertDialogFooter";var ps=Sr(({className:e,...t},r)=>qe(ze.Title,{ref:r,className:a("font-semibold text-lg",e),...t},void 0,!1,void 0,this));ps.displayName="AlertDialogTitle";var fs=Sr(({className:e,...t},r)=>qe(ze.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));fs.displayName="AlertDialogDescription";var gs=Sr(({className:e,...t},r)=>qe(ze.Action,{ref:r,className:a(Po(),e),...t},void 0,!1,void 0,this));gs.displayName="AlertDialogAction";var bs=Sr(({className:e,...t},r)=>qe(ze.Cancel,{ref:r,className:a(Po({variant:"outline"}),"mt-2 sm:mt-0",e),...t},void 0,!1,void 0,this));bs.displayName="AlertDialogCancel";import*as Ra from"@radix-ui/react-aspect-ratio";import{cva as pb}from"class-variance-authority";import{forwardRef as fb}from"react";import{jsxDEV as gb}from"react/jsx-dev-runtime";var ys=pb("relative overflow-hidden rounded-[calc(var(--radius)-2px)] border border-border/40"),vs=fb(({className:e,...t},r)=>gb(Ra.Root,{ref:r,className:a(ys(),e),...t},void 0,!1,void 0,this));vs.displayName=Ra.Root.displayName;import*as Gr from"@radix-ui/react-avatar";import{cva as bb}from"class-variance-authority";import{forwardRef as nn}from"react";import{jsxDEV as Fr}from"react/jsx-dev-runtime";var Ze={sm:"sm",md:"md",lg:"lg",xl:"xl"},Ts=bb("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{[Ze.sm]:"h-7 w-7 text-xs",[Ze.md]:"h-10 w-10 text-sm",[Ze.lg]:"h-12 w-12 text-base",[Ze.xl]:"h-16 w-16 text-lg"}},defaultVariants:{size:Ze.md}}),Ca=nn(({className:e,size:t=Ze.md,...r},o)=>{let n=f(t);return Fr(Gr.Root,{ref:o,className:a(Ts({size:n}),e),...r},void 0,!1,void 0,this)});Ca.displayName="Avatar";var hs=nn(({className:e,...t},r)=>Fr(Gr.Image,{ref:r,className:a("aspect-square h-full w-full object-cover",e),...t},void 0,!1,void 0,this));hs.displayName="AvatarImage";var Ha=nn(({className:e,...t},r)=>Fr(Gr.Fallback,{ref:r,className:a("flex h-full w-full items-center justify-center rounded-full bg-muted font-medium text-muted-foreground",e),...t},void 0,!1,void 0,this));Ha.displayName="AvatarFallback";var yb={[Ze.sm]:"-space-x-2",[Ze.md]:"-space-x-3",[Ze.lg]:"-space-x-4",[Ze.xl]:"-space-x-5"},Ps=nn(({className:e,children:t,max:r,size:o=Ze.md,...n},i)=>{let s=f(o),l=Array.isArray(t)?t:[t],m=r?l.slice(0,r):l,d=r?Math.max(0,l.length-r):0;return Fr("div",{ref:i,className:a("flex items-center",yb[s],e),...n,children:[m,d>0&&Fr(Ca,{size:s,className:"border-2 border-background",children:Fr(Ha,{className:"text-xs",children:["+",d]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Ps.displayName="AvatarGroup";import{Slot as vb}from"@radix-ui/react-slot";import{cva as Tb}from"class-variance-authority";import{X as xs}from"lucide-react";import{forwardRef as hb}from"react";import{jsxDEV as dr}from"react/jsx-dev-runtime";var He={default:"default",primary:"primary",success:"success",warning:"warning",error:"error",info:"info",outline:"outline"},wt={sm:"sm",md:"md",lg:"lg",xl:"xl",dot:"dot"},Ms=Tb("group/badge inline-flex items-center justify-center gap-1 whitespace-nowrap rounded-full border font-medium leading-none",{variants:{variant:{[He.default]:"border-border bg-muted text-muted-foreground",[He.primary]:"border-primary/30 bg-primary/10 text-primary",[He.success]:"border-success/30 bg-success/10 text-success",[He.warning]:"border-warning/30 bg-warning/10 text-warning",[He.error]:"border-destructive/30 bg-destructive/10 text-destructive",[He.info]:"border-info/30 bg-info/10 text-info",[He.outline]:"border-border bg-transparent text-foreground"},solid:{true:"",false:""},size:{[wt.sm]:"h-5 px-1.5 text-[11px]",[wt.md]:"h-5 px-2 text-[11px]",[wt.lg]:"h-6 px-2.5 text-xs",[wt.xl]:"h-7 px-3 text-sm",[wt.dot]:"h-2 w-2 p-0"}},compoundVariants:[{solid:!0,variant:He.default,className:"border-transparent bg-foreground text-background"},{solid:!0,variant:He.primary,className:"border-primary bg-primary text-primary-foreground"},{solid:!0,variant:He.success,className:"border-success bg-success text-background"},{solid:!0,variant:He.warning,className:"border-warning bg-warning text-background"},{solid:!0,variant:He.error,className:"border-destructive bg-destructive text-destructive-foreground"},{solid:!0,variant:He.info,className:"border-info bg-info text-background"},{solid:!0,variant:He.outline,className:"border-border bg-foreground text-background"}],defaultVariants:{variant:He.default,solid:!1,size:wt.md}}),Mo=hb(({className:e,variant:t=He.default,size:r=wt.md,solid:o=!1,pulse:n=!1,removable:i=!1,removeControl:s="button",removeLabel:l="Remove",onRemove:m,onClick:d,children:c,asChild:u=!1,...g},T)=>{let b=f(r),h=Boolean(d),N=b===wt.dot,v=h&&s==="button"?"span":s,p=(H)=>{H.preventDefault(),H.stopPropagation(),m?.(H)},P=(H)=>{if(H.key!=="Enter"&&H.key!==" ")return;H.preventDefault(),H.stopPropagation()},M=a(Ms({variant:t,solid:o,size:b}),h&&"cursor-pointer",n&&"animate-pulse",i&&!N&&"pr-1",e),k=i&&!N&&v==="button"?dr("button",{type:"button",className:a("ml-0.5 inline-flex items-center justify-center rounded-full text-current opacity-60 transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] hover:opacity-100","size-3.5 group-data-[size=lg]/badge:size-4 group-data-[size=xl]/badge:size-4"),onClick:p,"aria-label":l,tabIndex:-1,children:dr(xs,{className:"size-2.5 group-data-[size=lg]/badge:size-3 group-data-[size=xl]/badge:size-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this):i&&!N?dr("span",{role:"button",className:a("ml-0.5 inline-flex items-center justify-center rounded-full text-current opacity-60 transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] hover:opacity-100","size-3.5 group-data-[size=lg]/badge:size-4 group-data-[size=xl]/badge:size-4"),onClick:p,onKeyDown:P,"aria-label":l,tabIndex:-1,children:dr(xs,{className:"size-2.5 group-data-[size=lg]/badge:size-3 group-data-[size=xl]/badge:size-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null;if(u)return dr(vb,{ref:T,className:M,onClick:d,"data-size":b,...g,children:c},void 0,!1,void 0,this);if(h)return dr("button",{ref:T,className:M,onClick:d,type:"button","data-size":b,...g,children:[!N&&c,k]},void 0,!0,void 0,this);return dr("span",{ref:T,className:M,"data-size":b,...g,children:[!N&&c,k]},void 0,!0,void 0,this)});Mo.displayName="Badge";import{Children as Pb,cloneElement as xb,forwardRef as Mb,isValidElement as Nb,useCallback as Ns,useEffect as Lb,useLayoutEffect as zb,useRef as Rb,useState as Cb}from"react";import{jsxDEV as Ls}from"react/jsx-dev-runtime";function Hb(e){let t=[];return Pb.forEach(e,(r,o)=>{if(!Nb(r))return;let n=r.key??o;t.push({key:n,element:r,isLeaving:!1})}),t}function wb(e,t){let r=new Set(t.map((i)=>i.key)),o=new Set(e.map((i)=>i.key)),n=[];for(let i of e)if(r.has(i.key)){let s=t.find((l)=>l.key===i.key);if(s)n.push({...s,isLeaving:!1})}else n.push({...i,isLeaving:!0});for(let i of t)if(!o.has(i.key))n.push(i);return n}function kb(e,t,r){if(r.current)return r.current=!1,t;return wb(e,t)}var Ab=typeof window<"u"?zb:Lb,zs=Mb(({children:e,className:t,onRemove:r,gap:o="sm"},n)=>{let[i,s]=Cb([]),l=Rb(!0);Ab(()=>{let u=Hb(e);s((g)=>kb(g,u,l))},[e]);let m=Ns((u)=>{s((g)=>g.filter((T)=>T.key!==u))},[]),d=Ns((u)=>{r?.(u)},[r]),c={sm:"gap-1",md:"gap-2",lg:"gap-3"}[o];return Ls("div",{ref:n,className:a("inline-flex flex-wrap items-center",c,t),children:i.map((u)=>{let g={};if(u.element.props.removable&&r)g.onRemove=()=>{d(u.key)};let T=a("inline-flex transition-all duration-200",u.isLeaving&&"pointer-events-none scale-95 opacity-0");return Ls("span",{className:T,onTransitionEnd:u.isLeaving?()=>m(u.key):void 0,children:xb(u.element,g)},u.key,!1,void 0,this)})},void 0,!1,void 0,this)});zs.displayName="BadgeGroup";import{Slot as Bb}from"@radix-ui/react-slot";import{cva as Or}from"class-variance-authority";import{ChevronRight as Ib,MoreHorizontal as Sb}from"lucide-react";import{createContext as Fb,forwardRef as No,useContext as wa}from"react";import{jsxDEV as st}from"react/jsx-dev-runtime";var Te={sm:"sm",md:"md",lg:"lg"},an=Fb(Te.md),Rs=Or("flex flex-wrap items-center break-words text-muted-foreground",{variants:{size:{[Te.sm]:"gap-1 text-xs",[Te.md]:"gap-1.5 text-sm sm:gap-2.5",[Te.lg]:"gap-2 text-base sm:gap-3"}},defaultVariants:{size:Te.md}}),Cs=Or("inline-flex items-center gap-1.5"),Hs=Or("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] hover:text-foreground focus-visible:outline-none focus-visible:text-foreground"),ws=Or("font-normal text-foreground"),ks=Or("",{variants:{size:{[Te.sm]:"[&>svg]:size-3",[Te.md]:"[&>svg]:size-3.5",[Te.lg]:"[&>svg]:size-4"}},defaultVariants:{size:Te.md}}),As=Or("flex items-center justify-center",{variants:{size:{[Te.sm]:"h-7 w-7 [&>svg]:size-3.5",[Te.md]:"h-9 w-9 [&>svg]:size-4",[Te.lg]:"h-10 w-10 [&>svg]:size-5"}},defaultVariants:{size:Te.md}}),Bs=No(({size:e=Te.md,...t},r)=>{let o=f(e)??Te.md;return st(an.Provider,{value:o,children:st("nav",{ref:r,"aria-label":"breadcrumb",...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Bs.displayName="Breadcrumb";var Is=No(({className:e,...t},r)=>{let o=wa(an);return st("ol",{ref:r,className:a(Rs({size:o}),e),...t},void 0,!1,void 0,this)});Is.displayName="BreadcrumbList";var Ss=No(({className:e,...t},r)=>st("li",{ref:r,className:a(Cs(),e),...t},void 0,!1,void 0,this));Ss.displayName="BreadcrumbItem";var Fs=No(({asChild:e,className:t,...r},o)=>{return st(e?Bb:"a",{ref:o,className:a(Hs(),t),...r},void 0,!1,void 0,this)});Fs.displayName="BreadcrumbLink";var Gs=No(({className:e,...t},r)=>st("span",{ref:r,role:"link",tabIndex:0,"aria-disabled":"true","aria-current":"page",className:a(ws(),e),...t},void 0,!1,void 0,this));Gs.displayName="BreadcrumbPage";var Os=({children:e,className:t,...r})=>{let o=wa(an),n={[Te.sm]:"size-3",[Te.md]:"size-3.5",[Te.lg]:"size-4"};return st("li",{role:"presentation","aria-hidden":"true",className:a(ks({size:o}),t),...r,children:e??st(Ib,{className:n[o]},void 0,!1,void 0,this)},void 0,!1,void 0,this)};Os.displayName="BreadcrumbSeparator";var Ws=({className:e,...t})=>{let r=wa(an);return st("span",{role:"presentation","aria-hidden":"true",className:a(As({size:r}),e),...t,children:[st(Sb,{},void 0,!1,void 0,this),st("span",{className:"sr-only",children:"More"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};Ws.displayName="BreadcrumbEllipsis";import{createContext as Gb,useCallback as Ks,useContext as Ob,useEffect as _s,useMemo as sn,useState as Wb}from"react";import{jsxDEV as $b}from"react/jsx-dev-runtime";var Us=Gb(null),Kb=(e,t,r)=>{let o={item:e,index:t,nativeEvent:r,defaultPrevented:!1,preventDefault:()=>{o.defaultPrevented=!0,r.preventDefault()}};return o},_b=({items:e,resolveContext:t,entityResolvers:r,collapse:o,onBeforeNavigate:n,onNavigate:i,onItemClick:s,children:l})=>{let m=sn(()=>ka(e,{resolveContext:t,entityResolvers:r}),[r,e,t]),d=sn(()=>e.some((v)=>{if(v.label||!v.entity)return!1;return Boolean(r?.[v.entity.kind])}),[r,e]),[c,u]=Wb(null);_s(()=>{if(!d&&c!==null)u(null)},[c,d]),_s(()=>{if(!d)return;let v=!0;return Aa(e,{resolveContext:t,entityResolvers:r}).then((p)=>{if(v)u(p)}),()=>{v=!1}},[r,e,d,t]);let g=c??m,T=sn(()=>Ba(g,o),[g,o]),b=Ks((v,p,P)=>{if(v.disabled){P.preventDefault();return}let M=Kb(v,p,P);if(v.onClick?.(M),s?.(v,p),v.current)return;if(v.onBeforeNavigate?.(M),n?.(M),M.defaultPrevented)return;v.onNavigate?.(M),i?.(M)},[n,s,i]),h=Ks((v,p,P)=>{return{onClick:(M)=>{if(P?.onClick?.(M),M.defaultPrevented)return;b(v,p,M)},onKeyDown:(M)=>{if(P?.onKeyDown?.(M),M.defaultPrevented)return;if(M.key==="Enter"||M.key===" "){if(M.key===" ")M.preventDefault();b(v,p,M)}},"aria-current":v.current?"page":void 0,"aria-disabled":v.disabled?!0:void 0,tabIndex:v.disabled?-1:void 0,"data-breadcrumb-id":v.id}},[b]),N=sn(()=>({items:g,visibleItems:T.visibleItems,hiddenItems:T.hiddenItems,getItemProps:h}),[T.hiddenItems,T.visibleItems,h,g]);return $b(Us.Provider,{value:N,children:l},void 0,!1,void 0,this)},Ub=()=>{let e=Ob(Us);if(!e)throw Error("useBreadcrumbs must be used within BreadcrumbProvider");return e};import{cva as Db}from"class-variance-authority";import{forwardRef as jb}from"react";import{jsxDEV as ey}from"react/jsx-dev-runtime";var Lo={horizontal:"horizontal",vertical:"vertical"},$s=Db("inline-flex items-stretch",{variants:{orientation:{[Lo.horizontal]:"flex-row",[Lo.vertical]:"flex-col"},attached:{true:"gap-0 [&>*:not(:first-child)]:rounded-l-none [&>*:not(:last-child)]:rounded-r-none",false:"gap-2"}},defaultVariants:{orientation:Lo.horizontal,attached:!1}}),Ys=jb(({className:e,orientation:t=Lo.horizontal,attached:r=!1,fullWidth:o=!1,...n},i)=>ey("div",{ref:i,className:a($s({orientation:t,attached:r}),o&&"w-full",e),...n},void 0,!1,void 0,this));Ys.displayName="ButtonGroup";import{cva as Ut}from"class-variance-authority";import{forwardRef as ty,useCallback as Wr,useEffect as ry,useMemo as Vs,useState as Xs}from"react";import{jsxDEV as Qe}from"react/jsx-dev-runtime";var G={sm:"sm",md:"md",lg:"lg",xl:"xl"},qs=Ut("flex flex-col rounded-xl border border-border bg-card/95 shadow-[var(--shadow-sm)] transition-[color,background-color,border-color,box-shadow] duration-150",{variants:{size:{[G.sm]:"p-3 text-sm",[G.md]:"p-4 text-sm",[G.lg]:"p-5 text-base",[G.xl]:"p-6 text-base"}},defaultVariants:{size:G.md}}),Qs=Ut("mb-3 flex items-center justify-between",{variants:{size:{[G.sm]:"gap-1",[G.md]:"gap-2",[G.lg]:"gap-3",[G.xl]:"gap-3"}},defaultVariants:{size:G.md}}),Zs=Ut("font-semibold text-foreground",{variants:{size:{[G.sm]:"text-sm",[G.md]:"text-base",[G.lg]:"text-lg",[G.xl]:"text-xl"}},defaultVariants:{size:G.md}}),Ia=Ut(["inline-flex items-center justify-center rounded-md border border-transparent","text-muted-foreground hover:border-border/70 hover:bg-accent/60 hover:text-foreground","active:scale-[0.98]","transition-[color,background-color,border-color,box-shadow,transform,opacity] duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:cursor-not-allowed disabled:border-transparent disabled:bg-muted/40 disabled:text-muted-foreground/70"],{variants:{size:{[G.sm]:"size-7",[G.md]:"size-8",[G.lg]:"size-10",[G.xl]:"size-10"}},defaultVariants:{size:G.md}}),Es=Ut("grid grid-cols-7",{variants:{size:{[G.sm]:"gap-0",[G.md]:"gap-0",[G.lg]:"gap-0",[G.xl]:"gap-0"}},defaultVariants:{size:G.md}}),Ds=Ut("text-center font-semibold uppercase tracking-wide text-muted-foreground",{variants:{size:{[G.sm]:"py-1 text-[11px]",[G.md]:"py-1.5 text-xs",[G.lg]:"py-2 text-sm",[G.xl]:"py-2 text-sm"}},defaultVariants:{size:G.md}}),js=Ut(["inline-flex items-center justify-center rounded-md border border-transparent font-medium","transition-[color,background-color,border-color,box-shadow,transform,opacity] duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1","active:scale-[0.98]"],{variants:{size:{[G.sm]:"size-7 text-xs",[G.md]:"size-9 text-sm",[G.lg]:"size-10 text-base",[G.xl]:"size-11 text-base"},state:{default:"cursor-pointer text-foreground hover:border-border/70 hover:bg-accent/60",selected:"border-primary/35 bg-primary text-primary-foreground shadow-[var(--glow-brand-sm)] hover:bg-primary/90",today:"border-primary/30 bg-primary/10 text-primary",disabled:"cursor-not-allowed border-transparent bg-muted/40 text-muted-foreground/60",outside:"",rangeStart:"cursor-pointer rounded-r-none border-primary/35 bg-primary text-primary-foreground hover:bg-primary/90",rangeEnd:"cursor-pointer rounded-l-none border-primary/35 bg-primary text-primary-foreground hover:bg-primary/90",range:"cursor-pointer rounded-none border-transparent bg-primary/12 text-primary hover:bg-primary/20"}},defaultVariants:{size:G.md,state:"default"}}),oy=Ut("rounded-md border border-transparent",{variants:{size:{[G.sm]:"size-7",[G.md]:"size-9",[G.lg]:"size-10",[G.xl]:"size-11"}},defaultVariants:{size:G.md}}),Js=["Su","Mo","Tu","We","Th","Fr","Sa"],ny=["January","February","March","April","May","June","July","August","September","October","November","December"],kt=(e)=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),Kr=(e,t)=>{return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()},el=ty(({className:e,size:t="md",cellSize:r,mode:o="single",value:n,defaultValue:i,onChange:s,rangeValue:l,onRangeChange:m,viewMonth:d,onViewMonthChange:c,minDate:u,maxDate:g,disabledDates:T=[],weekStartsOn:b=1,highlightToday:h=!0,...N},v)=>{let p=f(t)??G.md,P=f(r??p)??p,[M,k]=Xs(n??i??null),[H,S]=Xs(n??i??new Date),w=d??H,J=Wr((y)=>{if(c){let x=typeof y==="function"?y(d??H):y;c(x)}else S((x)=>{return typeof y==="function"?y(x):y})},[d,H,c]),Y=n!==void 0?n:M,q=u?kt(u):null,ee=g?kt(g):null;ry(()=>{if(n!==void 0){if(k(n??null),n&&!d)S(n)}},[n,d]);let me=Wr((y,x)=>{return(new Date(y,x,1).getDay()-b+7)%7},[b]),X=Vs(()=>{let y=w.getFullYear(),x=w.getMonth(),C=me(y,x),ne=new Date(y,x+1,0).getDate(),_=[];for(let W=0;W<C;W+=1)_.push({key:`leading-${y}-${x}-${W}`,date:null});for(let W=1;W<=ne;W+=1)_.push({key:`day-${y}-${x}-${W}`,date:new Date(y,x,W)});let Ce=(7-_.length%7)%7;for(let W=0;W<Ce;W+=1)_.push({key:`trailing-${y}-${x}-${W}`,date:null});return _},[w,me]),Q=Wr((y)=>{let x=kt(y);if(q&&x<q)return!0;if(ee&&x>ee)return!0;return T.some((C)=>Kr(x,kt(C)))},[q,ee,T]),A=Wr((y)=>{if(Q(y))return"disabled";if(o==="range"&&l){let{from:x,to:C}=l;if(x&&Kr(y,x))return"rangeStart";if(C&&Kr(y,C))return"rangeEnd";if(x&&C){let ne=kt(y),_=kt(x),Ce=kt(C);if(ne>_&&ne<Ce)return"range"}}if(o==="single"&&Y&&Kr(y,Y))return"selected";if(h&&Kr(y,new Date))return"today";return"default"},[Y,h,Q,o,l]),oe=Wr((y)=>{if(Q(y))return;let x=new Date(y);if(o==="range"){if(!l?.from||l.from&&l.to)m?.({from:x,to:void 0});else{let C=kt(l.from);if(kt(x)<C)m?.({from:x,to:l.from});else m?.({from:l.from,to:x})}return}if(n===void 0)k(x);s?.(x)},[Q,o,s,m,l,n]),z=Wr((y)=>{J((x)=>{let C=new Date(x);return C.setMonth(C.getMonth()+y),C})},[J]),K=Vs(()=>{return[...Js.slice(b),...Js.slice(0,b)]},[b]);return Qe("div",{ref:v,className:a(qs({size:p}),e),...N,children:[Qe("div",{className:a(Qs({size:p})),children:[Qe("button",{type:"button",onClick:()=>z(-1),className:a(Ia({size:p})),"aria-label":"Previous month",children:Qe("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Qe("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19l-7-7 7-7"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Qe("span",{className:a(Zs({size:p})),children:[ny[w.getMonth()]," ",w.getFullYear()]},void 0,!0,void 0,this),Qe("button",{type:"button",onClick:()=>z(1),className:a(Ia({size:p})),"aria-label":"Next month",children:Qe("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Qe("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Qe("div",{className:a(Es({size:p})),children:[K.map((y)=>Qe("div",{className:a(Ds({size:P})),children:y},y,!1,void 0,this)),X.map((y)=>{if(!y.date)return Qe("div",{"aria-hidden":"true",className:a(oy({size:P}))},y.key,!1,void 0,this);let x=y.date,C=A(x);return Qe("button",{type:"button",onClick:()=>oe(x),disabled:C==="disabled",className:a(js({size:P,state:C})),children:x.getDate()},y.key,!1,void 0,this)})]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});el.displayName="Calendar";import{Slot as _r}from"@radix-ui/react-slot";import{cva as ay}from"class-variance-authority";import{forwardRef as Ur}from"react";import{jsxDEV as $r}from"react/jsx-dev-runtime";var ln={default:"default",muted:"muted",danger:"danger"},tl=ay("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] relative overflow-hidden rounded-[var(--radius)] border bg-card text-card-foreground shadow-[var(--shadow-sm)]",{variants:{variant:{[ln.default]:"border-border",[ln.muted]:"border-border bg-muted/70",[ln.danger]:"border-destructive/30 bg-destructive/[0.06]"}},defaultVariants:{variant:ln.default}}),rl=Ur(({asChild:e=!1,className:t,variant:r,...o},n)=>{return $r(e?_r:"div",{ref:n,className:a(tl({variant:r}),t),...o},void 0,!1,void 0,this)});rl.displayName="Card";var ol=Ur(({asChild:e=!1,className:t,...r},o)=>{return $r(e?_r:"div",{ref:o,className:a("flex flex-col gap-1.5 border-border border-b p-4",t),...r},void 0,!1,void 0,this)});ol.displayName="CardHeader";var nl=Ur(({asChild:e=!1,className:t,...r},o)=>{return $r(e?_r:"div",{ref:o,className:a("p-4",t),...r},void 0,!1,void 0,this)});nl.displayName="CardContent";var al=Ur(({asChild:e=!1,className:t,...r},o)=>{return $r(e?_r:"div",{ref:o,className:a("flex items-center border-border border-t p-4",t),...r},void 0,!1,void 0,this)});al.displayName="CardFooter";var il=Ur(({asChild:e=!1,className:t,...r},o)=>{return $r(e?_r:"h3",{ref:o,className:a("font-semibold text-base leading-none tracking-tight",t),...r},void 0,!1,void 0,this)});il.displayName="CardTitle";var sl=Ur(({asChild:e=!1,className:t,...r},o)=>{return $r(e?_r:"p",{ref:o,className:a("text-muted-foreground text-sm",t),...r},void 0,!1,void 0,this)});sl.displayName="CardDescription";import*as dn from"@radix-ui/react-checkbox";import{cva as iy}from"class-variance-authority";import{Check as sy,Minus as ly}from"lucide-react";import{forwardRef as my}from"react";import{jsxDEV as mn}from"react/jsx-dev-runtime";var lt={sm:"sm",md:"md",lg:"lg",xl:"xl"},Yr={default:"default",error:"error",success:"success"},ml=iy("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] inline-flex shrink-0 items-center justify-center rounded border border-border bg-background text-foreground enabled:active:scale-[0.94] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground",{variants:{size:{[lt.sm]:"h-4 w-4",[lt.md]:"h-5 w-5",[lt.lg]:"h-6 w-6",[lt.xl]:"h-7 w-7"},status:{[Yr.default]:"enabled:hover:border-primary/70",[Yr.error]:"enabled:hover:border-destructive/70 focus-visible:ring-destructive data-[state=checked]:border-destructive data-[state=checked]:bg-destructive data-[state=checked]:text-destructive-foreground data-[state=indeterminate]:border-destructive data-[state=indeterminate]:bg-destructive data-[state=indeterminate]:text-destructive-foreground",[Yr.success]:"enabled:hover:border-success/70 focus-visible:ring-success data-[state=checked]:border-success data-[state=checked]:bg-success data-[state=checked]:text-success-foreground data-[state=indeterminate]:border-success data-[state=indeterminate]:bg-success data-[state=indeterminate]:text-success-foreground"}},defaultVariants:{size:lt.md,status:Yr.default}}),ll={[lt.sm]:"size-3.5",[lt.md]:"size-3.5",[lt.lg]:"size-4",[lt.xl]:"size-5"},dl=my(({className:e,size:t=lt.md,status:r=Yr.default,checked:o,disabled:n,...i},s)=>{let l=f(t);return mn(dn.Root,{ref:s,checked:o,disabled:n,className:a(ml({size:l,status:r}),e),...i,children:mn(dn.Indicator,{className:"gs-checkbox-indicator flex items-center justify-center text-current",children:o==="indeterminate"?mn(ly,{className:ll[l]},void 0,!1,void 0,this):mn(sy,{className:ll[l]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});dl.displayName="Checkbox";import{cva as $t}from"class-variance-authority";import{forwardRef as dy,useCallback as uy,useState as cy}from"react";import{jsxDEV as Ge,Fragment as ul}from"react/jsx-dev-runtime";var j={sm:"sm",md:"md",lg:"lg"},Sa={default:"default",ghost:"ghost"},cl=$t("relative rounded-lg overflow-hidden font-mono",{variants:{size:{[j.sm]:"text-xs",[j.md]:"text-sm",[j.lg]:"text-base"},variant:{[Sa.default]:"bg-muted border border-border",[Sa.ghost]:"bg-transparent"}},defaultVariants:{size:j.md,variant:Sa.default}}),pl=$t("flex items-center justify-between border-b border-border bg-muted",{variants:{size:{[j.sm]:"px-2.5 py-1.5 text-xs",[j.md]:"px-4 py-2 text-sm",[j.lg]:"px-5 py-2.5 text-base"}},defaultVariants:{size:j.md}}),fl=$t("text-muted-foreground font-medium",{variants:{size:{[j.sm]:"text-[11px]",[j.md]:"text-xs",[j.lg]:"text-sm"}},defaultVariants:{size:j.md}}),gl=$t(["inline-flex items-center gap-1.5 rounded-md font-medium","text-muted-foreground hover:text-foreground hover:bg-muted","transition-all duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary"],{variants:{size:{[j.sm]:"px-2 py-1 text-xs",[j.md]:"px-2.5 py-1 text-xs",[j.lg]:"px-3 py-1.5 text-sm"},copied:{true:"text-success",false:""}},defaultVariants:{size:j.md,copied:!1}}),bl=$t("overflow-x-auto",{variants:{size:{[j.sm]:"p-2.5",[j.md]:"p-4",[j.lg]:"p-5"}},defaultVariants:{size:j.md}}),yl=$t("text-foreground",{variants:{size:{[j.sm]:"",[j.md]:"",[j.lg]:""},showLineNumbers:{true:"",false:""}},defaultVariants:{size:j.md,showLineNumbers:!1}}),vl=$t("block",{variants:{size:{[j.sm]:"min-h-[1.25rem]",[j.md]:"min-h-[1.5rem]",[j.lg]:"min-h-[1.75rem]"},highlighted:{true:"bg-primary/10 -mx-4 px-4",false:""}},defaultVariants:{size:j.md,highlighted:!1}}),Tl=$t("inline-block text-right text-muted-foreground select-none",{variants:{size:{[j.sm]:"w-6 mr-2 text-[11px]",[j.md]:"w-8 mr-4 text-xs",[j.lg]:"w-10 mr-5 text-sm"}},defaultVariants:{size:j.md}}),hl=dy(({className:e,code:t,language:r,showLineNumbers:o=!1,highlightedLines:n=[],showCopy:i=!0,size:s="md",variant:l="default",onCopy:m,...d},c)=>{let u=f(s),[g,T]=cy(!1),b=uy(async()=>{try{await navigator.clipboard.writeText(t),T(!0),m?.(t),setTimeout(()=>T(!1),2000)}catch(v){}},[t,m]),h=t.split(`
|
|
3
3
|
`),N=new Set(n);return Ge("div",{ref:c,className:a(cl({size:u,variant:l}),e),...d,children:[(r||i)&&Ge("div",{className:a(pl({size:u})),children:[Ge("span",{className:a(fl({size:u})),children:r},void 0,!1,void 0,this),i&&Ge("button",{type:"button",onClick:b,className:a(gl({size:u,copied:g})),children:g?Ge(ul,{children:[Ge("svg",{className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Ge("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"},void 0,!1,void 0,this)},void 0,!1,void 0,this),"Copied!"]},void 0,!0,void 0,this):Ge(ul,{children:[Ge("svg",{className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Ge("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),"Copy"]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ge("div",{className:a(bl({size:u})),children:Ge("pre",{className:a(yl({size:u,showLineNumbers:o})),children:Ge("code",{children:h.map((v,p)=>Ge("span",{className:a(vl({size:u,highlighted:N.has(p+1)})),children:[o&&Ge("span",{className:a(Tl({size:u})),children:p+1},void 0,!1,void 0,this),v,`
|
|
4
|
-
`]},`line-${String(p)}`,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});hl.displayName="CodeBlock";import*as Vr from"@radix-ui/react-collapsible";import{cva as my}from"class-variance-authority";import{forwardRef as dy}from"react";import{jsxDEV as py}from"react/jsx-dev-runtime";var Pl=my("gs-collapsible-content overflow-hidden"),uy=Vr.Root,cy=Vr.CollapsibleTrigger,xl=dy(({className:e,...t},r)=>py(Vr.CollapsibleContent,{ref:r,className:a(Pl(),e),...t},void 0,!1,void 0,this));xl.displayName="CollapsibleContent";import*as Yt from"@radix-ui/react-dialog";import{cva as mt}from"class-variance-authority";import{createContext as by,forwardRef as vt,useCallback as Nl,useContext as yy,useId as vy,useLayoutEffect as Ty,useMemo as hy,useState as Oa}from"react";import{useCallback as fy,useEffect as gy,useRef as Ml}from"react";function zo(e,t,r={}){let{enabled:o=!0,preventDefault:n=!0,stopPropagation:i=!1,target:s="global"}=r,l=Ml(t);l.current=t;let m=Ml([]),d=Array.isArray(e)?e:[e];m.current=d.map((u)=>({combo:u,def:Fa(u)}));let c=fy((u)=>{if(!o)return;for(let{combo:g,def:T}of m.current)if(Ga(u,T)){if(n)u.preventDefault();if(i)u.stopPropagation();l.current(u,g);return}},[o,n,i]);gy(()=>{if(!o)return;let u=s==="global"?document:s.current;if(!u)return;return u.addEventListener("keydown",c),()=>{u.removeEventListener("keydown",c)}},[o,c,s])}import{jsxDEV as he,Fragment as xy}from"react/jsx-dev-runtime";var un={sm:I.sm,md:I.md,lg:I.lg},Ll=mt(["gs-dialog-content fixed left-1/2 top-1/2 z-50","w-full border border-border rounded-xl bg-background","overflow-hidden shadow-[var(--shadow-xl)]"],{variants:{size:{[un.sm]:"max-w-sm",[un.md]:"max-w-lg",[un.lg]:"max-w-2xl"}},defaultVariants:{size:un.md}}),zl=mt(["gs-dialog-overlay fixed inset-0 z-50 bg-black/50 backdrop-blur-sm"]),Rl=mt(["flex h-12 w-full bg-transparent px-4 py-3","text-base text-foreground placeholder:text-muted-foreground","border-b border-border","focus:outline-none","disabled:cursor-not-allowed disabled:border-transparent disabled:bg-muted/40 disabled:text-muted-foreground/70"]),Cl=mt(["max-h-[300px] overflow-y-auto overflow-x-hidden p-2"]),Hl=mt(["py-6 text-center text-sm text-muted-foreground"]),wl=mt(["overflow-hidden"]),kl=mt(["px-2 py-1.5 text-xs font-medium text-muted-foreground"]),cn={default:"default",danger:"danger"},Al=mt(["relative flex items-center gap-2 rounded-lg px-2 py-2","text-sm cursor-pointer select-none","outline-none transition-none","data-[disabled=true]:pointer-events-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:border-transparent data-[disabled=true]:bg-muted/40 data-[disabled=true]:text-muted-foreground/70"],{variants:{selected:{true:"bg-primary/10 text-primary",false:"hover:bg-accent hover:text-accent-foreground"},variant:{[cn.default]:"text-foreground",[cn.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{selected:!1,variant:cn.default}}),Sl=mt(["-mx-1 my-1 h-px bg-border"]),Il=mt(["ml-auto text-xs tracking-widest text-muted-foreground"]),Bl=mt(["flex items-center justify-center py-6"]),Fl=by(null),pn=()=>{let e=yy(Fl);if(!e)throw Error("useCommand must be used within a Command");return e},Wa=vt(({className:e,children:t,loop:r=!0,...o},n)=>{let[i,s]=Oa(""),[l,m]=Oa(0),[d,c]=Oa({}),u=Nl((b,h)=>{c((N)=>{if(N[b]===h)return N;return{...N,[b]:h}})},[]),g=Nl((b)=>{c((h)=>{if(!(b in h))return h;let N={...h};return delete N[b],N})},[]),T=hy(()=>{return Object.values(d).filter(Boolean).length},[d]);return he(Fl.Provider,{value:{search:i,setSearch:s,selectedIndex:l,setSelectedIndex:m,visibleItemsCount:T,setItemVisible:u,removeItem:g},children:he("div",{ref:n,className:a("flex flex-col overflow-hidden rounded-xl bg-card",e),...o,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Wa.displayName="Command";var Gl=vt(({children:e,size:t,showOverlay:r=!0,portal:o=le,portalContainer:n,forceMount:i=!1,...s},l)=>{let m=he(xy,{children:[r?he(Yt.Overlay,{forceMount:i?!0:void 0,className:a(zl())},void 0,!1,void 0,this):null,he(Yt.Content,{ref:l,forceMount:i?!0:void 0,className:a(Ll({size:t})),children:he(Wa,{children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return he(Yt.Root,{...s,children:o?he(Yt.Portal,{forceMount:i?!0:void 0,container:n??void 0,children:m},void 0,!1,void 0,this):m},void 0,!1,void 0,this)});Gl.displayName="CommandDialog";var Ol=vt(({className:e,icon:t,...r},o)=>{let{search:n,setSearch:i,setSelectedIndex:s}=pn();return he("div",{className:"flex items-center border-border border-b px-3",children:[t&&he("span",{className:"mr-2 shrink-0 text-muted-foreground",children:t},void 0,!1,void 0,this),he("input",{ref:o,value:n,onChange:(l)=>{i(l.target.value),s(0)},className:a(Rl(),e),...r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Ol.displayName="CommandInput";var Wl=vt(({className:e,children:t,...r},o)=>{return he("div",{ref:o,className:a(Cl(),e),...r,children:t},void 0,!1,void 0,this)});Wl.displayName="CommandList";var Kl=vt(({className:e,children:t="No results found.",...r},o)=>{let{visibleItemsCount:n}=pn();if(n>0)return null;return he("div",{ref:o,className:a(Hl(),e),...r,children:t},void 0,!1,void 0,this)});Kl.displayName="CommandEmpty";var _l=vt(({className:e,heading:t,children:r,...o},n)=>{return he("div",{ref:n,className:a(wl(),e),...o,children:[t&&he("div",{className:a(kl()),children:t},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)});_l.displayName="CommandGroup";var Ul=vt(({className:e,disabled:t,selected:r=!1,onSelect:o,children:n,keywords:i,variant:s,...l},m)=>{let{search:d,removeItem:c,setItemVisible:u}=pn(),g=vy(),b=(()=>{if(!d)return!0;let h=d.toLowerCase();if((typeof n==="string"?n.toLowerCase():"").includes(h))return!0;if(i?.some((v)=>v.toLowerCase().includes(h)))return!0;return!1})();if(Ty(()=>{return u(g,b),()=>{c(g)}},[b,g,c,u]),!b)return null;return he("div",{ref:m,role:"option","aria-selected":r,"aria-disabled":t,"data-disabled":t,"data-selected":r,onClick:()=>!t&&o?.(),onKeyDown:(h)=>{if(h.key==="Enter"&&!t)h.preventDefault(),o?.()},tabIndex:t?-1:0,className:a(Al({selected:r,variant:s}),e),...l,children:n},void 0,!1,void 0,this)});Ul.displayName="CommandItem";var $l=vt(({className:e,...t},r)=>{return he("div",{ref:r,className:a(Sl(),e),...t},void 0,!1,void 0,this)});$l.displayName="CommandSeparator";var Yl=vt(({className:e,children:t,...r},o)=>{return he("span",{ref:o,className:a(Il(),e),...r,children:t},void 0,!1,void 0,this)});Yl.displayName="CommandShortcut";var Vl=vt(({className:e,children:t,...r},o)=>{return he("div",{ref:o,className:a(Bl(),e),...r,children:t},void 0,!1,void 0,this)});Vl.displayName="CommandLoading";var Py=({key:e,modifier:t="meta",callback:r})=>{zo(`${t}+${e}`,r)};import*as F from"@radix-ui/react-context-menu";import{cva as ur}from"class-variance-authority";import{Check as My,ChevronRight as Ny,Circle as Ly}from"lucide-react";import{createContext as Xl,forwardRef as Vt,useContext as cr}from"react";import{jsxDEV as be}from"react/jsx-dev-runtime";var Z={sm:I.sm,md:I.md,lg:I.lg},fn={default:"default",danger:"danger"},pr=Xl(Z.md),Jl=Xl(void 0),Ka=ur("z-50 min-w-[8rem] overflow-hidden rounded-[var(--radius)] border border-border/70 bg-popover p-1 text-popover-foreground shadow-[var(--shadow-md)] gs-float-content origin-[var(--radix-context-menu-content-transform-origin)]"),_a=ur("relative flex cursor-pointer select-none items-center rounded-md outline-none transition-none data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{size:{[Z.sm]:"h-7 gap-1.5 px-2 text-xs [&_svg]:size-3.5",[Z.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[Z.lg]:"h-9 gap-2 px-2.5 text-sm [&_svg]:size-4"},variant:{[fn.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[fn.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{size:Z.md,variant:fn.default}}),ql=ur("relative flex cursor-pointer select-none items-center rounded-md outline-none transition-none hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed",{variants:{size:{[Z.sm]:"h-7 pl-7 pr-2 text-xs",[Z.md]:"h-8 pl-8 pr-2 text-sm",[Z.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:Z.md}}),Ql=ur("relative flex cursor-pointer select-none items-center rounded-md outline-none transition-none hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed",{variants:{size:{[Z.sm]:"h-7 pl-7 pr-2 text-xs",[Z.md]:"h-8 pl-8 pr-2 text-sm",[Z.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:Z.md}}),Zl=ur("font-semibold text-muted-foreground",{variants:{size:{[Z.sm]:"px-2 py-1 text-[11px]",[Z.md]:"px-2 py-1.5 text-xs",[Z.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:Z.md}}),El=ur("-mx-1 my-1 h-px bg-border/50"),Dl=ur("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[Z.sm]:"text-[11px]",[Z.md]:"text-xs",[Z.lg]:"text-xs"}},defaultVariants:{size:Z.md}}),jl={[Z.sm]:"absolute left-2 flex size-3.5 items-center justify-center",[Z.md]:"absolute left-2 flex size-3.5 items-center justify-center",[Z.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},zy={[Z.sm]:"size-3",[Z.md]:"size-3.5",[Z.lg]:"size-4"},Ry={[Z.sm]:"size-1.5 fill-current",[Z.md]:"size-2 fill-current",[Z.lg]:"size-2.5 fill-current"},em=({size:e,...t})=>{let r=f(e??Z.md),o=e===void 0?void 0:r;return be(Jl.Provider,{value:o,children:be(F.Root,{...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)};em.displayName=F.Root.displayName;var Cy=F.Trigger,Hy=F.Group,wy=F.Portal,ky=F.Sub,Ay=F.RadioGroup,tm=Vt(({className:e,inset:t,children:r,...o},n)=>{let i=cr(pr),s=f(i);return be(F.SubTrigger,{ref:n,className:a(_a({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,be(Ny,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});tm.displayName=F.SubTrigger.displayName;var rm=Vt(({className:e,sideOffset:t=it,portal:r=le,portalContainer:o,...n},i)=>{let s=be(F.SubContent,{ref:i,sideOffset:t,className:a(Ka(),e),...n},void 0,!1,void 0,this);if(!r)return s;return be(F.Portal,{container:o??void 0,children:s},void 0,!1,void 0,this)});rm.displayName=F.SubContent.displayName;var om=Vt(({className:e,size:t,portal:r=le,portalContainer:o,...n},i)=>{let s=cr(Jl),l=f(t??s??Z.md),m=be(F.Content,{ref:i,className:a(Ka(),e),...n},void 0,!1,void 0,this);return be(pr.Provider,{value:l,children:r?be(F.Portal,{container:o??void 0,children:m},void 0,!1,void 0,this):m},void 0,!1,void 0,this)});om.displayName=F.Content.displayName;var nm=Vt(({className:e,inset:t,variant:r,...o},n)=>{let i=cr(pr),s=f(i);return be(F.Item,{ref:n,className:a(_a({size:s,variant:r}),t&&"pl-8",e),...o},void 0,!1,void 0,this)});nm.displayName=F.Item.displayName;var am=Vt(({className:e,children:t,checked:r,...o},n)=>{let i=cr(pr),s=f(i)??Z.md;return be(F.CheckboxItem,{ref:n,className:a(ql({size:s}),e),checked:r,...o,children:[be("span",{className:jl[s],children:be(F.ItemIndicator,{children:be(My,{className:zy[s]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),t]},void 0,!0,void 0,this)});am.displayName=F.CheckboxItem.displayName;var im=Vt(({className:e,children:t,...r},o)=>{let n=cr(pr),i=f(n)??Z.md;return be(F.RadioItem,{ref:o,className:a(Ql({size:i}),e),...r,children:[be("span",{className:jl[i],children:be(F.ItemIndicator,{children:be(Ly,{className:Ry[i]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),t]},void 0,!0,void 0,this)});im.displayName=F.RadioItem.displayName;var sm=Vt(({className:e,inset:t,...r},o)=>{let n=cr(pr),i=f(n);return be(F.Label,{ref:o,className:a(Zl({size:i}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});sm.displayName=F.Label.displayName;var lm=Vt(({className:e,...t},r)=>be(F.Separator,{ref:r,className:a(El(),e),...t},void 0,!1,void 0,this));lm.displayName=F.Separator.displayName;var mm=({className:e,...t})=>{let r=cr(pr),o=f(r);return be("span",{className:a(Dl({size:o}),e),...t},void 0,!1,void 0,this)};mm.displayName="ContextMenuShortcut";import*as Re from"@radix-ui/react-dialog";import{cva as Sy}from"class-variance-authority";import{X as Iy}from"lucide-react";import{createContext as By,forwardRef as gn,useCallback as Fy,useContext as Gy,useEffect as Oy,useState as dm}from"react";import{jsxDEV as $e,Fragment as Uy}from"react/jsx-dev-runtime";var Xt={sm:I.sm,md:I.md,lg:I.lg,xl:I.xl,full:"full"},Wy=160,um=By(!1),Ro=({children:e,open:t,defaultOpen:r=!1,onOpenChange:o,...n})=>{let[i,s]=dm(r),l=t!==void 0,m=l?t:i,d=Fy((c)=>{if(!l)s(c);o?.(c)},[l,o]);return $e(um.Provider,{value:m,children:$e(Re.Root,{open:m,onOpenChange:d,...n,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},Ky=Re.Trigger,bn=Re.Portal,_y=Re.Close,Ua=Re.Content,Co=gn(({className:e,...t},r)=>$e(Re.Overlay,{ref:r,className:a("gs-dialog-overlay",Kt,e),...t},void 0,!1,void 0,this));Co.displayName="DialogOverlay";var cm=Sy("gs-dialog-content fixed left-1/2 top-1/2 z-50 grid w-full gap-4 rounded-[var(--radius)] border border-border bg-card p-6 text-foreground shadow-[var(--shadow-xl)]",{variants:{size:{[Xt.sm]:"max-w-sm",[Xt.md]:"max-w-md",[Xt.lg]:"max-w-lg",[Xt.xl]:"max-w-xl",[Xt.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:Xt.md}}),yn=gn(({className:e,children:t,size:r=Xt.md,showClose:o=!0,showOverlay:n=!0,portal:i=le,portalContainer:s,forceMount:l=!1,...m},d)=>{let c=Gy(um),[u,g]=dm(l||c),T=f(r),b=ve();if(Oy(()=>{if(l||c){g(!0);return}let v=setTimeout(()=>{g(!1)},b?0:Wy);return()=>{clearTimeout(v)}},[l,c,b]),!(l||c||u))return null;let N=$e(Uy,{children:[n?$e(Co,{forceMount:!0},void 0,!1,void 0,this):null,$e(Re.Content,{ref:d,forceMount:!0,className:a(cm({size:T}),e),...m,children:[t,o&&$e(Re.Close,{className:on,children:[$e(Iy,{className:"size-4"},void 0,!1,void 0,this),$e("span",{className:"sr-only",children:"Close"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);if(!i)return N;return $e(bn,{forceMount:!0,container:s??void 0,children:N},void 0,!1,void 0,this)});yn.displayName="DialogContent";var pm=({className:e,...t})=>$e("div",{className:a("flex flex-col space-y-1.5 text-center sm:text-left",e),...t},void 0,!1,void 0,this);pm.displayName="DialogHeader";var fm=({className:e,...t})=>$e("div",{className:a("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);fm.displayName="DialogFooter";var vn=gn(({className:e,...t},r)=>$e(Re.Title,{ref:r,className:a("font-semibold text-lg leading-none tracking-tight",e),...t},void 0,!1,void 0,this));vn.displayName="DialogTitle";var gm=gn(({className:e,...t},r)=>$e(Re.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));gm.displayName="DialogDescription";import{cva as Ya}from"class-variance-authority";import{X as $y}from"lucide-react";import{forwardRef as Tn}from"react";import{Drawer as Tt}from"vaul";import{jsxDEV as we}from"react/jsx-dev-runtime";var Ee={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},Yy={[Ee.sm]:"sm:max-w-sm",[Ee.md]:"sm:max-w-md",[Ee.lg]:"sm:max-w-lg",[Ee.xl]:"sm:max-w-xl",[Ee.full]:"sm:max-w-full"},Vy={[Ee.sm]:"sm:max-h-[30vh]",[Ee.md]:"sm:max-h-[50vh]",[Ee.lg]:"sm:max-h-[70vh]",[Ee.xl]:"sm:max-h-[85vh]",[Ee.full]:"sm:max-h-full"},vm=Ya(a("gs-sheet-overlay",Kt)),Tm=Ya(["group/drawer-content fixed z-50 flex h-auto flex-col border border-border bg-card shadow-[var(--shadow-xl)]","data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=top]:border-t-0","data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=bottom]:border-b-0","data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:h-full data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-r-0","data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:h-full data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-l-0"]),$a=Ya("shrink-0 rounded-full bg-muted-foreground/25 transition-colors duration-150 hover:bg-muted-foreground/40",{variants:{direction:{top:"h-1.5 w-[60px]",bottom:"h-1.5 w-[60px]",left:"h-[60px] w-1.5",right:"h-[60px] w-1.5"}},defaultVariants:{direction:"bottom"}}),bm={top:"flex justify-center pb-2 pt-4",bottom:"flex justify-center pt-4 pb-2",left:"absolute right-0 top-0 flex h-full items-center pr-2 pl-0",right:"absolute left-0 top-0 flex h-full items-center pl-2 pr-0"},Xy=Tt.Root,Jy=Tt.Trigger,qy=Tt.Close,hm=Tt.Portal,ym=Tt.Handle,Va=Tn(({className:e,...t},r)=>we(Tt.Overlay,{ref:r,className:a(vm(),e),...t},void 0,!1,void 0,this));Va.displayName="DrawerOverlay";var Pm=Tn(({size:e=Ee.md,showClose:t=!1,direction:r="bottom",className:o,children:n,...i},s)=>{let m=r==="left"||r==="right"?Yy[e]:Vy[e];return we(hm,{children:[we(Va,{},void 0,!1,void 0,this),we(Tt.Content,{ref:s,className:a(Tm(),m,o),...i,children:[r!=="top"&&we("div",{className:a(bm[r]),children:we(ym,{className:"!m-0 !h-auto !w-auto !rounded-none !bg-transparent !opacity-100",children:we("div",{className:a($a({direction:r}))},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),n,r==="top"&&we("div",{className:a(bm[r]),children:we(ym,{className:"!m-0 !h-auto !w-auto !rounded-none !bg-transparent !opacity-100",children:we("div",{className:a($a({direction:r}))},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),t&&we(Tt.Close,{className:"absolute top-4 right-4 rounded-[var(--radius)] border border-border p-1.5 text-muted-foreground transition-[color,background-color,border-color] duration-150 hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none",children:[we($y,{className:"size-4"},void 0,!1,void 0,this),we("span",{className:"sr-only",children:"Close"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Pm.displayName="DrawerContent";var xm=({className:e,...t})=>we("div",{className:a("flex flex-col gap-1.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center sm:text-left",e),...t},void 0,!1,void 0,this);xm.displayName="DrawerHeader";var Mm=({className:e,...t})=>we("div",{className:a("mt-auto flex flex-col gap-2 p-4",e),...t},void 0,!1,void 0,this);Mm.displayName="DrawerFooter";var Nm=Tn(({className:e,...t},r)=>we(Tt.Title,{ref:r,className:a("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));Nm.displayName="DrawerTitle";var Lm=Tn(({className:e,...t},r)=>we(Tt.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));Lm.displayName="DrawerDescription";import*as O from"@radix-ui/react-dropdown-menu";import{cva as fr}from"class-variance-authority";import{Check as Qy,ChevronRight as Zy,Circle as Ey}from"lucide-react";import{createContext as Dy,forwardRef as Jt,useContext as Xr}from"react";import{jsxDEV as Pe}from"react/jsx-dev-runtime";var E={sm:I.sm,md:I.md,lg:I.lg},hn={default:"default",danger:"danger"},gr=Dy(E.md),Xa=fr("z-50 min-w-[8rem] overflow-hidden rounded-[var(--radius)] border border-border/70 bg-popover p-1 text-popover-foreground shadow-[var(--shadow-md)] gs-float-content origin-[var(--radix-dropdown-menu-content-transform-origin)]"),Ja=fr("relative flex cursor-pointer select-none items-center rounded-md outline-none data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{size:{[E.sm]:"h-7 gap-1.5 px-2 text-xs [&_svg]:size-3.5",[E.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[E.lg]:"h-9 gap-2 px-2.5 text-sm [&_svg]:size-4"},variant:{[hn.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[hn.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{size:E.md,variant:hn.default}}),zm=fr("relative flex cursor-pointer select-none items-center rounded-md outline-none hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed",{variants:{size:{[E.sm]:"h-7 pl-7 pr-2 text-xs",[E.md]:"h-8 pl-8 pr-2 text-sm",[E.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:E.md}}),Rm=fr("relative flex cursor-pointer select-none items-center rounded-md outline-none hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed",{variants:{size:{[E.sm]:"h-7 pl-7 pr-2 text-xs",[E.md]:"h-8 pl-8 pr-2 text-sm",[E.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:E.md}}),Cm=fr("font-semibold text-muted-foreground",{variants:{size:{[E.sm]:"px-2 py-1 text-[11px]",[E.md]:"px-2 py-1.5 text-xs",[E.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:E.md}}),Hm=fr("-mx-1 my-1 h-px bg-border/50"),wm=fr("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[E.sm]:"text-[11px]",[E.md]:"text-xs",[E.lg]:"text-xs"}},defaultVariants:{size:E.md}}),km={[E.sm]:"absolute left-2 flex size-3.5 items-center justify-center",[E.md]:"absolute left-2 flex size-3.5 items-center justify-center",[E.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},jy={[E.sm]:"size-3",[E.md]:"size-3.5",[E.lg]:"size-4"},ev={[E.sm]:"size-1.5 fill-current",[E.md]:"size-2 fill-current",[E.lg]:"size-2.5 fill-current"},tv=O.Root,rv=O.Trigger,ov=O.Group,nv=O.Portal,av=O.Sub,iv=O.RadioGroup,Am=Jt(({className:e,inset:t,children:r,...o},n)=>{let i=Xr(gr),s=f(i);return Pe(O.SubTrigger,{ref:n,className:a(Ja({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,Pe(Zy,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Am.displayName=O.SubTrigger.displayName;var Sm=Jt(({className:e,sideOffset:t=it,portal:r=le,portalContainer:o,...n},i)=>{let s=Pe(O.SubContent,{ref:i,sideOffset:t,className:a(Xa(),e),...n},void 0,!1,void 0,this);if(!r)return s;return Pe(O.Portal,{container:o??void 0,children:s},void 0,!1,void 0,this)});Sm.displayName=O.SubContent.displayName;var Im=Jt(({className:e,sideOffset:t=it,size:r,portal:o=le,portalContainer:n,...i},s)=>{let l=f(r)??E.md,m=Pe(O.Content,{ref:s,sideOffset:t,className:a(Xa(),e),...i},void 0,!1,void 0,this);return Pe(gr.Provider,{value:l,children:o?Pe(O.Portal,{container:n??void 0,children:m},void 0,!1,void 0,this):m},void 0,!1,void 0,this)});Im.displayName=O.Content.displayName;var Bm=Jt(({className:e,inset:t,variant:r,...o},n)=>{let i=Xr(gr),s=f(i);return Pe(O.Item,{ref:n,className:a(Ja({size:s,variant:r}),t&&"pl-8",e),...o},void 0,!1,void 0,this)});Bm.displayName=O.Item.displayName;var Fm=Jt(({className:e,children:t,checked:r,...o},n)=>{let i=Xr(gr),s=f(i)??E.md;return Pe(O.CheckboxItem,{ref:n,className:a(zm({size:s}),e),checked:r,...o,children:[Pe("span",{className:km[s],children:Pe(O.ItemIndicator,{children:Pe(Qy,{className:jy[s]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),t]},void 0,!0,void 0,this)});Fm.displayName=O.CheckboxItem.displayName;var Gm=Jt(({className:e,children:t,...r},o)=>{let n=Xr(gr),i=f(n)??E.md;return Pe(O.RadioItem,{ref:o,className:a(Rm({size:i}),e),...r,children:[Pe("span",{className:km[i],children:Pe(O.ItemIndicator,{children:Pe(Ey,{className:ev[i]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),t]},void 0,!0,void 0,this)});Gm.displayName=O.RadioItem.displayName;var Om=Jt(({className:e,inset:t,...r},o)=>{let n=Xr(gr),i=f(n);return Pe(O.Label,{ref:o,className:a(Cm({size:i}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});Om.displayName=O.Label.displayName;var Wm=Jt(({className:e,...t},r)=>Pe(O.Separator,{ref:r,className:a(Hm(),e),...t},void 0,!1,void 0,this));Wm.displayName=O.Separator.displayName;var Km=({className:e,...t})=>{let r=Xr(gr),o=f(r);return Pe("span",{className:a(wm({size:o}),e),...t},void 0,!1,void 0,this)};Km.displayName="DropdownMenuShortcut";import{cva as wo}from"class-variance-authority";import{forwardRef as sv}from"react";import{jsxDEV as Ho}from"react/jsx-dev-runtime";var ke={sm:"sm",md:"md",lg:"lg"},_m=wo("flex flex-col items-center justify-center text-center rounded-[var(--radius)] border border-dashed border-border/70 bg-muted/35",{variants:{size:{[ke.sm]:"gap-2 p-4",[ke.md]:"gap-4 p-8",[ke.lg]:"gap-6 p-12"}},defaultVariants:{size:ke.md}}),Um=wo("flex items-center justify-center rounded-full border border-border/60 bg-muted/70 text-muted-foreground",{variants:{size:{[ke.sm]:"h-10 w-10 [&>svg]:h-4 [&>svg]:w-4",[ke.md]:"h-16 w-16 [&>svg]:h-7 [&>svg]:w-7",[ke.lg]:"h-20 w-20 [&>svg]:h-9 [&>svg]:w-9"}},defaultVariants:{size:ke.md}}),$m=wo("font-semibold text-foreground",{variants:{size:{[ke.sm]:"text-sm",[ke.md]:"text-lg",[ke.lg]:"text-xl"}},defaultVariants:{size:ke.md}}),Ym=wo("text-muted-foreground max-w-sm",{variants:{size:{[ke.sm]:"text-xs",[ke.md]:"text-sm",[ke.lg]:"text-base"}},defaultVariants:{size:ke.md}}),Vm=wo("flex items-center gap-2 mt-2"),Xm=sv(({className:e,icon:t,title:r,description:o,actions:n,size:i=ke.md,children:s,...l},m)=>{let d=f(i);return Ho("div",{ref:m,className:a(_m({size:d}),e),...l,children:[t&&Ho("div",{className:Um({size:d}),children:t},void 0,!1,void 0,this),r&&Ho("h3",{className:$m({size:d}),children:r},void 0,!1,void 0,this),o&&Ho("p",{className:Ym({size:d}),children:o},void 0,!1,void 0,this),n&&Ho("div",{className:Vm(),children:n},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)});Xm.displayName="EmptyState";import{cva as Jr}from"class-variance-authority";import{Component as lv,createElement as Jm}from"react";import{jsxDEV as Oe,Fragment as dv}from"react/jsx-dev-runtime";var qm=Jr(["flex flex-col items-center justify-center rounded-xl border text-center","transition-colors duration-200 ease-out"],{variants:{size:{sm:"gap-3 p-6",md:"gap-4 p-8",lg:"gap-6 p-12",xl:"gap-7 p-14"},variant:{destructive:"border-destructive/30 bg-destructive/8",warning:"border-warning/30 bg-warning/8",info:"border-info/30 bg-info/8"}},defaultVariants:{size:"md",variant:"destructive"}}),Qm=Jr(["flex items-center justify-center rounded-full","transition-colors duration-200 ease-out"],{variants:{size:{sm:"h-12 w-12 [&>svg]:h-5 [&>svg]:w-5",md:"h-16 w-16 [&>svg]:h-7 [&>svg]:w-7",lg:"h-20 w-20 [&>svg]:h-9 [&>svg]:w-9",xl:"h-24 w-24 [&>svg]:h-10 [&>svg]:w-10"},variant:{destructive:"bg-destructive/10 text-destructive",warning:"bg-warning/10 text-warning",info:"bg-info/10 text-info"}},defaultVariants:{size:"md",variant:"destructive"}}),Zm=Jr("font-semibold transition-colors duration-300",{variants:{size:{sm:"text-lg",md:"text-xl",lg:"text-2xl",xl:"text-3xl"},variant:{destructive:"text-destructive",warning:"text-warning",info:"text-info"}},defaultVariants:{size:"md",variant:"destructive"}}),Em=Jr("max-w-xl text-muted-foreground transition-all duration-200",{variants:{size:{sm:"text-sm",md:"text-sm",lg:"text-base",xl:"text-lg"}},defaultVariants:{size:"md"}}),Dm=Jr("mt-2 flex flex-wrap items-center justify-center gap-2"),jm=Jr("mt-4 max-h-48 w-full max-w-2xl overflow-auto rounded-md border border-border/70 bg-background/80 p-3 text-left font-mono text-xs text-muted-foreground");class ed extends lv{static displayName="ErrorBoundary";constructor(e){super(e);this.state={hasError:!1,error:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){this.props.onError?.(e,t)}handleReset=()=>{this.setState({hasError:!1,error:null}),this.props.onReset?.()};render(){let{children:e,fallback:t,showDetails:r=!1,size:o="md",variant:n="destructive",className:i,title:s="Something went wrong",description:l="An unexpected error occurred. Please try again.",icon:m,actions:d,resetLabel:c="Try again",hideReset:u=!1,renderDetails:g}=this.props;if(this.state.hasError&&this.state.error){let T={error:this.state.error,reset:this.handleReset};if(t){if(typeof t==="function")return Jm(t,T);return t}let b=null;if(d)b=typeof d==="function"?Jm(d,T):d;else if(!u){let N={destructive:"border-destructive/30 bg-destructive text-destructive-foreground hover:bg-destructive/90",warning:"border-warning/30 bg-warning text-warning-foreground hover:bg-warning/90",info:"border-info/30 bg-info text-info-foreground hover:bg-info/90"};b=Oe("button",{type:"button",onClick:this.handleReset,className:a("inline-flex items-center justify-center rounded-md border px-4 py-2 font-medium text-sm","transition-colors duration-150 ease-out","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",N[n]),children:c},void 0,!1,void 0,this)}let h=g?g(this.state.error):Oe(dv,{children:[Oe("strong",{children:"Error:"},void 0,!1,void 0,this)," ",this.state.error.message,this.state.error.stack&&Oe("pre",{className:"mt-2 whitespace-pre-wrap",children:this.state.error.stack},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return Oe("div",{className:a(qm({size:o,variant:n}),i),children:[Oe("div",{className:a(Qm({size:o,variant:n})),children:m??Oe(mv,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),Oe("h3",{className:a(Zm({size:o,variant:n})),children:s},void 0,!1,void 0,this),Oe("p",{className:a(Em({size:o})),children:l},void 0,!1,void 0,this),b&&Oe("div",{className:a(Dm()),children:b},void 0,!1,void 0,this),r&&Oe("div",{className:a(jm()),children:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}return e}}function mv(){return Oe("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[Oe("circle",{cx:"12",cy:"12",r:"10"},void 0,!1,void 0,this),Oe("line",{x1:"12",x2:"12",y1:"8",y2:"12"},void 0,!1,void 0,this),Oe("line",{x1:"12",x2:"12.01",y1:"16",y2:"16"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}import{cva as qt}from"class-variance-authority";import{forwardRef as uv,useCallback as dt,useRef as cv,useState as td}from"react";import{jsxDEV as Se}from"react/jsx-dev-runtime";var de={sm:"sm",md:"md",lg:"lg",xl:"xl"},rd=qt(["relative flex flex-col items-center justify-center","rounded-xl border-2 border-dashed","shadow-[var(--shadow-xs)]","transition-[color,background-color,border-color,box-shadow,transform,opacity] duration-150","cursor-pointer","hover:border-primary/45 hover:bg-primary/8","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2"],{variants:{size:{[de.sm]:"min-h-28 p-5",[de.md]:"min-h-36 p-8",[de.lg]:"min-h-44 p-10",[de.xl]:"min-h-52 p-12"},isDragging:{true:"scale-[1.01] border-primary bg-primary/12 shadow-[var(--glow-brand-sm)]",false:"border-border bg-card/75"},disabled:{true:"cursor-not-allowed border-border/70 bg-muted/35 text-muted-foreground pointer-events-none",false:""},hasError:{true:"border-destructive bg-destructive/5",false:""}},defaultVariants:{size:de.md,isDragging:!1,disabled:!1,hasError:!1}}),od=qt("text-muted-foreground transition-colors duration-200",{variants:{size:{[de.sm]:"mb-2 size-6",[de.md]:"size-8 mb-3",[de.lg]:"size-10 mb-4",[de.xl]:"size-12 mb-5"},isDragging:{true:"text-primary",false:""}},defaultVariants:{size:de.md,isDragging:!1}}),qa=qt("text-center",{variants:{size:{[de.sm]:"text-sm",[de.md]:"text-sm",[de.lg]:"text-base",[de.xl]:"text-lg"}},defaultVariants:{size:de.md}}),nd=qt("mt-4 w-full space-y-2"),ad=qt(["flex items-center gap-3 rounded-lg border border-border/75 bg-card p-3.5","transition-[color,background-color,border-color,box-shadow,transform,opacity] duration-150","hover:border-primary/30 hover:bg-accent/45"]),id=qt("min-w-0 flex-1 truncate font-medium text-foreground",{variants:{size:{[de.sm]:"text-sm",[de.md]:"text-sm",[de.lg]:"text-base",[de.xl]:"text-base"}},defaultVariants:{size:"md"}}),sd=qt("text-muted-foreground",{variants:{size:{[de.sm]:"text-xs",[de.md]:"text-sm",[de.lg]:"text-sm",[de.xl]:"text-base"}},defaultVariants:{size:"md"}}),ld=qt(["size-7 shrink-0 rounded-full border border-transparent","flex items-center justify-center","text-muted-foreground hover:border-destructive/25 hover:bg-destructive/10 hover:text-destructive","transition-colors duration-150","cursor-pointer"]),md=uv(({className:e,size:t="md",disabled:r=!1,accept:o,multiple:n=!1,maxSize:i,maxFiles:s,value:l=[],onChange:m,onError:d,icon:c,title:u="Drop files here or click to upload",description:g,showFileList:T=!0,...b},h)=>{let N=f(t),[v,p]=td(!1),[P,M]=td(!1),k=cv(null),H=dt((z)=>{if(z===0)return"0 Bytes";let K=1024,y=["Bytes","KB","MB","GB"],x=Math.floor(Math.log(z)/Math.log(K));return`${parseFloat((z/K**x).toFixed(2))} ${y[x]}`},[]),B=dt((z)=>{let K=[...z];if(M(!1),o){let y=o.split(",").map((x)=>x.trim());if(K=K.filter((x)=>{return y.some((C)=>{if(C.startsWith("."))return x.name.toLowerCase().endsWith(C.toLowerCase());if(C.endsWith("/*"))return x.type.startsWith(C.slice(0,-1));return x.type===C})}),K.length<z.length)d?.("Some files were rejected due to file type"),M(!0)}if(i){let y=K.length;if(K=K.filter((x)=>x.size<=i),K.length<y)d?.(`File size must be less than ${H(i)}`),M(!0)}if(s&&K.length+l.length>s)K=K.slice(0,s-l.length),d?.(`Maximum ${s} files allowed`),M(!0);return K},[o,i,s,l.length,d,H]),w=dt((z)=>{if(!z||z.length===0)return;let K=Array.from(z),y=B(K);if(y.length>0)if(n)m?.([...l,...y]);else m?.(y.slice(0,1))},[n,l,m,B]),J=dt((z)=>{z.preventDefault(),z.stopPropagation(),p(!0)},[]),Y=dt((z)=>{z.preventDefault(),z.stopPropagation(),p(!1)},[]),q=dt((z)=>{z.preventDefault(),z.stopPropagation()},[]),ee=dt((z)=>{if(z.preventDefault(),z.stopPropagation(),p(!1),r)return;w(z.dataTransfer.files)},[r,w]),me=dt((z)=>{if(w(z.target.files),k.current)k.current.value=""},[w]),X=dt(()=>{if(!r)k.current?.click()},[r]),Q=dt((z)=>{if(z.key==="Enter"||z.key===" ")z.preventDefault(),X()},[X]),A=dt((z)=>{let K=l.filter((y,x)=>x!==z);m?.(K)},[l,m]),oe=Se("svg",{className:a(od({size:N,isDragging:v})),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:Se("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5m-13.5-9L12 3m0 0l4.5 4.5M12 3v13.5"},void 0,!1,void 0,this)},void 0,!1,void 0,this);return Se("div",{ref:h,className:a("w-full",e),...b,children:[Se("div",{role:"button",tabIndex:r?-1:0,onClick:X,onKeyDown:Q,onDragEnter:J,onDragLeave:Y,onDragOver:q,onDrop:ee,className:a(rd({size:N,isDragging:v,disabled:r,hasError:P})),children:[Se("input",{ref:k,type:"file",accept:o,multiple:n,disabled:r,onChange:me,className:"sr-only"},void 0,!1,void 0,this),c||oe,Se("p",{className:a(qa({size:N}),"font-medium text-foreground"),children:u},void 0,!1,void 0,this),g&&Se("p",{className:a(qa({size:N}),"mt-1 text-muted-foreground"),children:g},void 0,!1,void 0,this)]},void 0,!0,void 0,this),T&&l.length>0&&Se("div",{className:a(nd()),children:l.map((z,K)=>Se("div",{className:a(ad()),children:[Se("svg",{className:"size-5 shrink-0 text-muted-foreground",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:Se("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Se("span",{className:a(id({size:N})),children:z.name},void 0,!1,void 0,this),Se("span",{className:a(sd({size:N})),children:H(z.size)},void 0,!1,void 0,this),Se("button",{type:"button",onClick:(y)=>{y.stopPropagation(),A(K)},className:a(ld()),"aria-label":`Remove ${z.name}`,children:Se("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Se("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},`${z.name}-${K}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});md.displayName="FileUpload";import{cva as pv}from"class-variance-authority";import{createContext as fv,forwardRef as Pn,useCallback as dd,useContext as gv,useEffect as cd,useId as bv,useMemo as yv,useState as ud}from"react";import{jsxDEV as br,Fragment as Tv}from"react/jsx-dev-runtime";var De={sm:"sm",md:"md",lg:"lg"},pd=fv(null),ko=()=>{let e=gv(pd);if(!e)throw Error("useFormField must be used within a FormField");return e},fd=pv("flex flex-col",{variants:{size:{[De.sm]:"gap-1",[De.md]:"gap-1.5",[De.lg]:"gap-2"}},defaultVariants:{size:De.md}}),gd=Pn(({className:e,size:t=De.md,error:r,disabled:o=!1,required:n=!1,children:i,...s},l)=>{let m=bv(),d=f(t),[c,u]=ud([]),[g,T]=ud([]),b=dd((v)=>{return u((p)=>p.includes(v)?p:[...p,v]),()=>{u((p)=>p.filter((P)=>P!==v))}},[]),h=dd((v)=>{return T((p)=>p.includes(v)?p:[...p,v]),()=>{T((p)=>p.filter((P)=>P!==v))}},[]),N=yv(()=>({id:m,size:d,error:r,disabled:o,required:n,descriptionIds:c,errorIds:g,registerDescriptionId:b,registerErrorId:h}),[c,o,d,r,g,m,b,h,n]);return br(pd.Provider,{value:N,children:br("div",{ref:l,className:a(fd({size:d}),e),...s,children:i},void 0,!1,void 0,this)},void 0,!1,void 0,this)});gd.displayName="FormField";var vv={[De.sm]:"text-xs",[De.md]:"text-sm",[De.lg]:"text-base"},bd=Pn(({className:e,htmlFor:t,children:r,...o},n)=>{let{id:i,size:s,disabled:l,required:m}=ko();return br("label",{ref:n,htmlFor:t??i,className:a("inline-block select-none font-medium text-foreground",vv[s],l&&"cursor-not-allowed opacity-60",e),...o,children:[r,m&&br("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});bd.displayName="FormFieldLabel";var yd={[De.sm]:"text-[11px]",[De.md]:"text-xs",[De.lg]:"text-sm"},vd=Pn(({className:e,id:t,...r},o)=>{let{id:n,size:i,registerDescriptionId:s}=ko(),l=t??`${n}-description`;return cd(()=>{return s(l)},[l,s]),br("p",{ref:o,id:l,className:a("text-muted-foreground",yd[i],e),...r},void 0,!1,void 0,this)});vd.displayName="FormFieldDescription";var Td=Pn(({className:e,children:t,id:r,...o},n)=>{let{id:i,size:s,error:l,registerErrorId:m}=ko(),d=t??l,c=r??`${i}-error`;if(cd(()=>{if(!d)return;return m(c)},[c,d,m]),!d)return null;return br("p",{ref:n,id:c,role:"alert",className:a("text-destructive",yd[s],e),...o,children:d},void 0,!1,void 0,this)});Td.displayName="FormFieldError";var hd=({children:e})=>{let{id:t,disabled:r,required:o,error:n,descriptionIds:i,errorIds:s}=ko(),l=[...i,...s].join(" ");return br(Tv,{children:e({id:t,disabled:r,required:o,status:n||s.length>0?"error":"default","aria-describedby":l||void 0,"aria-invalid":n||s.length>0?!0:void 0})},void 0,!1,void 0,this)};hd.displayName="FormFieldControl";import*as At from"@radix-ui/react-hover-card";import{cva as hv}from"class-variance-authority";import{forwardRef as Pv}from"react";import{jsxDEV as Qa}from"react/jsx-dev-runtime";var qr={sm:I.sm,md:I.md,lg:I.lg},Pd=hv("z-50 rounded-[var(--radius)] border border-border/70 bg-popover text-popover-foreground shadow-[var(--shadow-md)] gs-float-content origin-[var(--radix-hover-card-content-transform-origin)]",{variants:{size:{[qr.sm]:"w-52 p-3 text-xs",[qr.md]:"w-64 p-4 text-sm",[qr.lg]:"w-80 p-5 text-sm"}},defaultVariants:{size:qr.md}}),xd=({openDelay:e,closeDelay:t,...r})=>{let o=ve();return Qa(At.Root,{openDelay:o?0:e,closeDelay:o?0:t,...r},void 0,!1,void 0,this)};xd.displayName="HoverCard";var xv=At.Trigger,Md=Pv(({className:e,align:t="center",sideOffset:r=it,portal:o=le,portalContainer:n,size:i=qr.md,...s},l)=>{let m=f(i),d=Qa(At.Content,{ref:l,align:t,sideOffset:r,className:a(Pd({size:m}),e),...s},void 0,!1,void 0,this);if(!o)return d;return Qa(At.Portal,{container:n??void 0,children:d},void 0,!1,void 0,this)});Md.displayName=At.Content.displayName;import{cva as Mv}from"class-variance-authority";import{X as Nv}from"lucide-react";import{forwardRef as Lv,useRef as zv,useState as Rv}from"react";import{jsxDEV as yr}from"react/jsx-dev-runtime";var Ao={default:"default",error:"error",success:"success"},re={sm:"sm",md:"md",lg:"lg",xl:"xl"},Cv="Clear input",Ld=Mv("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] w-full rounded-[var(--radius)] border border-input bg-background text-sm text-foreground outline-none placeholder:text-muted-foreground focus-visible:ring-2 disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground",{variants:{status:{[Ao.default]:"focus-visible:ring-primary",[Ao.error]:"border-destructive focus-visible:ring-destructive",[Ao.success]:"border-success focus-visible:ring-success"},size:{[re.sm]:"h-8 px-2 text-xs",[re.md]:"h-10 px-3",[re.lg]:"h-11 px-4",[re.xl]:"h-12 px-4 text-base"}},defaultVariants:{status:Ao.default,size:re.md}}),Hv={[re.sm]:"pl-7",[re.md]:"pl-9",[re.lg]:"pl-10",[re.xl]:"pl-10"},wv={[re.sm]:"pr-7",[re.md]:"pr-9",[re.lg]:"pr-10",[re.xl]:"pr-10"},kv={[re.sm]:"pr-12",[re.md]:"pr-16",[re.lg]:"pr-18",[re.xl]:"pr-18"},Av={[re.sm]:"text-xs left-2",[re.md]:"text-sm left-3",[re.lg]:"text-sm left-3.5",[re.xl]:"text-base left-3.5"},Sv={[re.sm]:"text-xs",[re.md]:"text-sm",[re.lg]:"text-sm",[re.xl]:"text-base"},Iv={[re.sm]:"size-4",[re.md]:"size-5",[re.lg]:"size-5",[re.xl]:"size-6"};function Nd(e){if(e===void 0||e===null)return"";if(Array.isArray(e))return e.join("");return String(e)}var zd=Lv(({className:e,status:t=Ao.default,size:r=re.md,fullWidth:o=!1,prefix:n,suffix:i,clearable:s=!1,clearAriaLabel:l=Cv,onClear:m,onValueChange:d,disabled:c,readOnly:u,onChange:g,value:T,defaultValue:b,...h},N)=>{let v=Boolean(n),p=Boolean(i),P=f(r),M=zv(null),k=St(N,M),[H,B]=Rv(()=>Nd(b)),w=T!==void 0,J=w?Nd(T):H,Y=s&&!c&&!u&&J.length>0,q=p||Y,ee=p&&Y,me=(Q)=>{let A=Q.target.value;if(!w)B(A);d?.(A),g?.(Q)},X=()=>{if(!w)B("");d?.("");let Q=M.current;if(Q)Q.value="",Q.dispatchEvent(new Event("input",{bubbles:!0})),Q.focus();m?.()};return yr("div",{className:a("relative flex items-center",o&&"w-full"),children:[v&&yr("span",{className:a("absolute inset-y-0 flex items-center text-muted-foreground",Av[P]),children:n},void 0,!1,void 0,this),yr("input",{ref:k,className:a(Ld({status:t,size:P}),v&&Hv[P],ee&&kv[P],!ee&&q&&wv[P],e),disabled:c,readOnly:u,onChange:me,value:J,...h},void 0,!1,void 0,this),q&&yr("span",{className:a("absolute inset-y-0 right-2 flex items-center gap-1 text-muted-foreground",Sv[P]),children:[p&&yr("span",{className:"inline-flex items-center",children:i},void 0,!1,void 0,this),Y&&yr("button",{type:"button","aria-label":l,onMouseDown:(Q)=>Q.preventDefault(),onClick:X,className:a("inline-flex items-center justify-center rounded-[calc(var(--radius)-4px)] text-muted-foreground transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",Iv[P]),children:yr(Nv,{className:"size-3.5"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});zd.displayName="Input";import{cva as Ov}from"class-variance-authority";import{forwardRef as Wv}from"react";import{useSyncExternalStore as Bv}from"react";var Fv=()=>Za(),Gv=()=>Rd;function So(){return Bv(Cd,Fv,Gv)}import{jsxDEV as Kv}from"react/jsx-dev-runtime";var Qr={sm:"sm",md:"md",lg:"lg"},Zr=Ov("inline-flex items-center justify-center rounded border border-border bg-muted font-mono font-medium text-muted-foreground shadow-[0_1px_0_1px] shadow-border/50",{variants:{size:{[Qr.sm]:"min-w-5 h-5 px-1 text-[11px]",[Qr.md]:"min-w-6 h-6 px-1.5 text-xs",[Qr.lg]:"min-w-7 h-7 px-2 text-sm"}},defaultVariants:{size:Qr.md}}),Hd=Wv(({className:e,size:t=Qr.md,combo:r,keys:o,children:n,...i},s)=>{let l=f(t),{isMac:m}=So(),d=r?xn(r,m):o?xn(o,m):n;return Kv("kbd",{ref:s,className:a(Zr({size:l}),e),...i,children:d},void 0,!1,void 0,this)});Hd.displayName="Kbd";import{cva as _v}from"class-variance-authority";import{forwardRef as Uv}from"react";import{jsxDEV as wd}from"react/jsx-dev-runtime";var Er={sm:"sm",md:"md",lg:"lg"},kd=_v("inline-block font-medium text-foreground select-none peer-disabled:cursor-not-allowed peer-disabled:text-muted-foreground/70",{variants:{size:{[Er.sm]:"text-xs",[Er.md]:"text-sm",[Er.lg]:"text-base"}},defaultVariants:{size:Er.md}}),Ad=Uv(({className:e,size:t=Er.md,required:r=!1,disabled:o=!1,children:n,htmlFor:i,...s},l)=>{let m=f(t);return wd("label",{ref:l,htmlFor:i,className:a(kd({size:m}),o&&"cursor-not-allowed text-muted-foreground/70",e),"aria-disabled":o||void 0,...s,children:[n,r&&wd("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Ad.displayName="Label";import{forwardRef as $v}from"react";import{jsxDEV as Yv}from"react/jsx-dev-runtime";var Sd=$v((e,t)=>{return Yv(Ot,{ref:t,...e},void 0,!1,void 0,this)});Sd.displayName="Loader";import*as Qt from"@radix-ui/react-popover";import{cva as Ev}from"class-variance-authority";import{Check as Dv,ChevronDown as jv,X as eT}from"lucide-react";import{forwardRef as tT,useCallback as It,useEffect as Ea,useLayoutEffect as Fd,useMemo as jr,useRef as eo,useState as Mn}from"react";import*as je from"@radix-ui/react-popover";import{cva as Vv}from"class-variance-authority";import{forwardRef as Xv}from"react";import{jsxDEV as Id}from"react/jsx-dev-runtime";var vr={sm:I.sm,md:I.md,lg:I.lg,xl:I.xl},Dr=Vv("z-50 rounded-[var(--radius)] border border-border bg-popover text-popover-foreground outline-none shadow-[var(--shadow-md)] gs-float-content origin-[var(--radix-popover-content-transform-origin)]",{variants:{size:{[vr.sm]:"w-56 p-3 text-sm",[vr.md]:"w-72 p-4 text-sm",[vr.lg]:"w-96 p-5 text-sm",[vr.xl]:"w-[28rem] p-6 text-sm"}},defaultVariants:{size:vr.md}}),Jv=je.Root,qv=je.Trigger,Qv=je.Anchor,Zv=je.Close,Bd=Xv(({className:e,align:t="center",sideOffset:r=it,portal:o=le,portalContainer:n,size:i=vr.md,...s},l)=>{let m=f(i),d=Id(je.Content,{ref:l,align:t,sideOffset:r,className:a(Dr({size:m}),e),...s},void 0,!1,void 0,this);if(o)return Id(je.Portal,{container:n??void 0,children:d},void 0,!1,void 0,this);return d});Bd.displayName="PopoverContent";import{jsxDEV as ue,Fragment as pT}from"react/jsx-dev-runtime";var U={sm:"sm",md:"md",lg:"lg",xl:"xl"},Gd=Ev(["group flex w-full items-center gap-2 rounded-[var(--radius)] border border-input","bg-background text-sm text-foreground outline-none","placeholder:text-muted-foreground focus-visible:ring-2","data-[state=open]:ring-2","disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground"].join(" "),{variants:{size:{[U.sm]:"min-h-8 px-2.5 py-1 text-xs",[U.md]:"min-h-10 px-3.5 py-1.5",[U.lg]:"min-h-11 px-4.5 py-2 text-sm",[U.xl]:"min-h-12 px-4 py-2 text-base"},status:{default:"focus-visible:ring-primary data-[state=open]:ring-primary",error:"border-destructive focus-visible:ring-destructive data-[state=open]:ring-destructive",success:"border-success focus-visible:ring-success data-[state=open]:ring-success"}},defaultVariants:{size:U.md,status:"default"}}),rT={[U.sm]:"sm",[U.md]:"md",[U.lg]:"lg",[U.xl]:"xl"},oT={[U.sm]:"min-h-7.5 py-1.5 px-2.5 text-xs",[U.md]:"min-h-9 py-2 px-3 text-sm",[U.lg]:"min-h-10 py-2.5 px-3.5 text-sm",[U.xl]:"min-h-11 py-3 px-4 text-base"},Nn={[U.sm]:"size-3.5",[U.md]:"size-4",[U.lg]:"size-4",[U.xl]:"size-4.5"},nT={[U.sm]:"text-[11px]",[U.md]:"text-xs",[U.lg]:"text-xs",[U.xl]:"text-sm"},aT=4,iT={[U.sm]:34,[U.md]:36,[U.lg]:40,[U.xl]:44},sT={[U.sm]:5.8,[U.md]:6,[U.lg]:6.2,[U.xl]:7},lT={[U.sm]:14,[U.md]:16,[U.lg]:18,[U.xl]:20},mT={[U.sm]:5.6,[U.md]:5.8,[U.lg]:6,[U.xl]:6.4},dT=(e,t)=>{return Math.ceil(iT[t]+Math.max(1,e.trim().length)*sT[t])},uT=(e,t)=>{let r=`+${e}`;return Math.ceil(lT[t]+r.length*mT[t])},cT=({containerWidth:e,badgeWidths:t,getSummaryWidth:r,gapPx:o=aT})=>{if(t.length===0)return{visibleCount:0,hiddenCount:0};if(e<=0)return{visibleCount:0,hiddenCount:t.length};let n=0,i=0;for(let s=0;s<t.length;s+=1){let l=t[s]??0,m=i>0,d=n+(m?o:0)+l,c=t.length-(s+1);if(c>0){let u=r(c),g=d>0?o:0;if(d+g+u<=e){n=d,i+=1;continue}break}if(d<=e)n=d,i+=1}return{visibleCount:i,hiddenCount:t.length-i}},Od=tT(({className:e,options:t,value:r,defaultValue:o=[],onValueChange:n,placeholder:i="Select options...",size:s=U.md,status:l="default",clearable:m=!1,open:d,defaultOpen:c=!1,onOpenChange:u,portal:g=le,portalContainer:T,disabled:b,...h},N)=>{let v=f(s)??s,[p,P]=Mn(c),[M,k]=Mn(o),[H,B]=Mn(null),[w,J]=Mn(null),Y=eo(null),q=eo(null),ee=eo(null),me=eo(o),X=eo(new Map),Q=eo(new Map),A=r!==void 0,oe=d!==void 0,z=A?r:M,K=oe?d:p,y=It((L)=>{if(!oe)P(L);u?.(L)},[oe,u]),x=jr(()=>{return new Map(t.map((L)=>[L.value,L]))},[t]),C=jr(()=>{return z.flatMap((L)=>{let D=x.get(L);return D?[D]:[]})},[x,z]),ne=jr(()=>{if(!H)return;return x.get(H)},[x,H]),_=It((L)=>{let D=z.includes(L)?z.filter((te)=>te!==L):[...z,L];if(!A)k(D);n?.(D)},[A,n,z]),Ce=It((L)=>{let D=z.filter((te)=>te!==L);if(!A)k(D);n?.(D)},[A,n,z]),W=It(()=>{if(!A)k([]);n?.([])},[A,n]),ie=It((L)=>{L.stopPropagation(),L.preventDefault(),W()},[W]),Rt=It((L)=>{if(L.key==="Enter"||L.key===" ")L.stopPropagation(),L.preventDefault(),W()},[W]),at=It((L)=>{let D=Y.current;if(!D)return;let te=Array.from(D.querySelectorAll('[role="option"]:not([data-disabled])'));if(te.length===0)return;let mr=D.querySelector('[role="option"]:focus'),en=mr?te.indexOf(mr):-1,To;switch(L){case"first":To=te[0];break;case"last":To=te[te.length-1];break;case"next":To=te[en+1]??te[0];break;case"prev":To=te[en-1]??te[te.length-1];break}To?.focus()},[]),V=It((L)=>{switch(L.key){case"ArrowDown":L.preventDefault(),at("next");break;case"ArrowUp":L.preventDefault(),at("prev");break;case"Home":L.preventDefault(),at("first");break;case"End":L.preventDefault(),at("last");break;case"Escape":L.preventDefault(),y(!1);break}},[at,y]);Ea(()=>{if(K)requestAnimationFrame(()=>at("first"))},[at,K]),Ea(()=>{if(H&&!ne)B(null)},[ne,H]),Ea(()=>{let L=me.current,D=z.filter((te)=>!L.includes(te));if(D.length>0){let te=D[D.length-1];if(te&&!X.current.has(`${v}:${te}`))B(te)}me.current=z},[v,z]),Fd(()=>{let L=q.current;if(!L)return;if((()=>{J(Math.ceil(L.getBoundingClientRect().width))})(),typeof ResizeObserver>"u")return;let te=new ResizeObserver((mr)=>{let en=Math.ceil(mr[0]?.contentRect.width??L.getBoundingClientRect().width);J(en)});return te.observe(L),()=>{te.disconnect()}},[]),Fd(()=>{if(!H)return;let L=ee.current;if(!L)return;let D=Math.ceil(L.getBoundingClientRect().width);if(D>0)X.current.set(`${v}:${H}`,D);B(null)},[v,H]);let fe=rT[v],se=C.length>0,Ne=m&&se&&!b,Ue=It((L)=>{let D=`${v}:${L}`,te=Q.current.get(D);if(te!==void 0)return te;let mr=uT(L,v);return Q.current.set(D,mr),mr},[v]),bt=jr(()=>{return C.map((L)=>{let D=`${v}:${L.value}`;return X.current.get(D)??dT(L.label,v)})},[v,C]),S=jr(()=>{if(!se)return{visibleCount:0,hiddenCount:0};if(w===null||w<=0)return{visibleCount:C.length,hiddenCount:0};return cT({containerWidth:w,badgeWidths:bt,getSummaryWidth:Ue})},[w,Ue,se,bt,C.length]),ge=jr(()=>{return C.slice(0,S.visibleCount)},[S.visibleCount,C]),Le=ue(Qt.Content,{ref:Y,role:"listbox","aria-multiselectable":"true",align:"start",sideOffset:4,onKeyDown:V,onOpenAutoFocus:(L)=>L.preventDefault(),className:a(Dr(),"max-h-96 w-[var(--radix-popover-trigger-width)] overflow-y-auto overflow-x-hidden p-1"),children:[t.map((L)=>{let D=z.includes(L.value);return ue("div",{role:"option",tabIndex:L.disabled?void 0:-1,"aria-selected":D,"aria-disabled":L.disabled||void 0,"data-disabled":L.disabled?"":void 0,className:a("relative flex w-full cursor-pointer select-none items-center gap-2","rounded-[calc(var(--radius)-3px)] outline-none","hover:bg-accent focus-visible:bg-accent focus-visible:text-accent-foreground","data-disabled:cursor-not-allowed data-disabled:border-transparent data-disabled:bg-muted/40 data-disabled:text-muted-foreground/70",oT[v]),onClick:()=>!L.disabled&&_(L.value),onKeyDown:(te)=>{if(te.key==="Enter"||te.key===" "){if(te.preventDefault(),!L.disabled)_(L.value)}},children:[ue("span",{className:a("flex shrink-0 items-center justify-center",Nn[v]),children:D?ue(Dv,{className:Nn[v]},void 0,!1,void 0,this):null},void 0,!1,void 0,this),ue("span",{className:"min-w-0 flex-1 truncate",children:L.label},void 0,!1,void 0,this)]},L.value,!0,void 0,this)}),t.length===0?ue("div",{className:"px-3 py-6 text-center text-muted-foreground text-sm",children:"No options available"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this);return ue(Qt.Root,{open:K,onOpenChange:y,children:[ue(Qt.Trigger,{asChild:!0,children:ue("button",{ref:N,type:"button",disabled:b,"data-state":K?"open":"closed","data-placeholder":se?void 0:"",className:a(Gd({size:v,status:l}),e),...h,children:[ue("span",{ref:q,className:"flex min-w-0 flex-1 flex-wrap items-center gap-1 text-left",children:se?ue(pT,{children:[ge.map((L)=>ue(Mo,{variant:"outline",size:fe,removable:!0,removeControl:"span",removeLabel:`Remove ${L.label}`,onRemove:()=>Ce(L.value),className:"max-w-[180px]",children:ue("span",{className:"truncate",children:L.label},void 0,!1,void 0,this)},L.value,!1,void 0,this)),S.hiddenCount>0?ue("span",{className:a("text-muted-foreground",nT[v]),children:["+",S.hiddenCount]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this):ue("span",{className:"text-muted-foreground",children:i},void 0,!1,void 0,this)},void 0,!1,void 0,this),ue("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[Ne?ue("span",{role:"button",tabIndex:-1,"aria-label":"Clear all",onMouseDown:(L)=>L.preventDefault(),onKeyDown:Rt,onClick:ie,className:"inline-flex items-center justify-center rounded-[calc(var(--radius)-4px)] text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:ue(eT,{className:Nn[v]},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,ue(jv,{className:a(Nn[v],"opacity-60 transition-transform duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-productive)]",K&&"rotate-180")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),g?ue(Qt.Portal,{container:T??void 0,children:Le},void 0,!1,void 0,this):Le,ne?ue("span",{className:"pointer-events-none invisible absolute top-0 left-0 -z-10","aria-hidden":!0,children:ue(Mo,{ref:ee,variant:"outline",size:fe,removable:!0,removeControl:"span",className:"max-w-[180px]",children:ue("span",{className:"truncate",children:ne.label},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)});Od.displayName="Multiselect";import{cva as Zt}from"class-variance-authority";import{createContext as fT,forwardRef as Tr,useContext as gT}from"react";import{jsxDEV as et}from"react/jsx-dev-runtime";var Wd=Zt(["transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] flex w-full items-center justify-between border-b","transition-colors duration-200 ease-out"],{variants:{variant:{default:["border-border bg-background/95 backdrop-blur-xl","shadow-[var(--shadow-sm)]"],transparent:"bg-transparent border-transparent",blur:["bg-[var(--surface-glass)] dark:bg-[var(--surface-glass-dark)] border-[color:color-mix(in_srgb,var(--primary)_18%,var(--border))] backdrop-blur-[14px] shadow-[var(--shadow-glass)]","shadow-[var(--shadow-md)]"],solid:["border-border bg-background","shadow-[var(--shadow-xs)]"]},size:{sm:"h-12 px-3",md:"h-14 px-5",lg:"h-16 px-8",xl:"h-[4.5rem] px-10"},sticky:{true:"sticky top-0 z-50",false:""}},defaultVariants:{variant:"default",size:"md",sticky:!1}}),Kd=Zt("flex items-center gap-2 font-semibold text-foreground",{variants:{size:{sm:"text-sm",md:"text-sm",lg:"text-base",xl:"text-lg"}},defaultVariants:{size:"md"}}),bT=Zt("truncate text-muted-foreground",{variants:{size:{sm:"text-xs",md:"text-xs",lg:"text-sm",xl:"text-sm"}},defaultVariants:{size:"md"}}),_d=Zt("flex items-center",{variants:{align:{start:"justify-start",center:"justify-center",end:"justify-end"},gap:{sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-7"},size:{sm:"text-sm",md:"text-sm",lg:"text-base",xl:"text-lg"}},defaultVariants:{align:"center",gap:"md",size:"md"}}),Ud=Zt(["relative inline-flex items-center rounded-lg font-medium text-muted-foreground","transition-colors duration-150 ease-out","hover:bg-accent/60 hover:text-foreground"],{variants:{active:{true:"bg-accent text-foreground",false:""},size:{sm:"h-8 px-2.5 text-sm",md:"h-9 px-3 text-sm",lg:"h-10 px-3.5 text-base",xl:"h-11 px-4 text-base"}},defaultVariants:{active:!1,size:"md"}}),$d=Zt(["relative inline-flex items-center rounded-lg font-medium text-muted-foreground","transition-colors duration-150 ease-out","hover:bg-accent/60 hover:text-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1"],{variants:{active:{true:["bg-accent text-foreground"],false:""},size:{sm:"h-8 px-2.5 text-sm",md:"h-9 px-3 text-sm",lg:"h-10 px-3.5 text-base",xl:"h-11 px-4 text-base"}},defaultVariants:{active:!1,size:"md"}}),Yd=Zt("flex items-center",{variants:{size:{sm:"gap-1.5",md:"gap-2",lg:"gap-2.5",xl:"gap-3"}},defaultVariants:{size:"md"}}),Vd=Zt("w-px rounded-full bg-gradient-to-b from-transparent via-border to-transparent transition-opacity duration-300",{variants:{size:{sm:"mx-1.5 h-5",md:"mx-2 h-6",lg:"mx-2.5 h-7",xl:"mx-3 h-8"}},defaultVariants:{size:"md"}});var Xd={sm:"sm",md:"md",lg:"lg",xl:"xl"};var Jd=fT(null),to=()=>{return gT(Jd)?.size??Xd.md},qd=Tr(({className:e,variant:t,size:r,sticky:o,...n},i)=>{let s=f(r)??Xd.md;return et(Jd.Provider,{value:{size:s},children:et("nav",{ref:i,className:a(Wd({variant:t,size:s,sticky:o}),e),...n},void 0,!1,void 0,this)},void 0,!1,void 0,this)});qd.displayName="Navbar";var Qd=Tr(({className:e,logo:t,tagline:r,size:o,children:n,...i},s)=>{let l=to(),m=f(o??l)??l;return et("div",{ref:s,className:a(Kd({size:m}),e),...i,children:[t&&et("span",{className:"inline-flex shrink-0 items-center",children:t},void 0,!1,void 0,this),et("div",{className:"flex min-w-0 flex-col",children:[et("span",{className:"truncate",children:n},void 0,!1,void 0,this),r&&et("span",{className:a(bT({size:m})),children:r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Qd.displayName="NavbarBrand";var Zd=Tr(({className:e,align:t,gap:r,size:o,...n},i)=>{let s=to(),l=f(o??s)??s;return et("div",{ref:i,className:a(_d({align:t,gap:r??l,size:l}),e),...n},void 0,!1,void 0,this)});Zd.displayName="NavbarContent";var Ed=Tr(({className:e,active:t,size:r,...o},n)=>{let i=to(),s=f(r??i)??i;return et("div",{ref:n,className:a(Ud({active:t,size:s}),e),"data-active":t,...o},void 0,!1,void 0,this)});Ed.displayName="NavbarItem";var Dd=Tr(({className:e,active:t,href:r="#",size:o,...n},i)=>{let s=to(),l=f(o??s)??s;return et("a",{ref:i,href:r,className:a($d({active:t,size:l}),e),"data-active":t,...n},void 0,!1,void 0,this)});Dd.displayName="NavbarLink";var jd=Tr(({className:e,size:t,...r},o)=>{let n=to(),i=f(t??n)??n;return et("div",{ref:o,className:a(Yd({size:i}),e),...r},void 0,!1,void 0,this)});jd.displayName="NavbarActions";var eu=Tr(({className:e,size:t,...r},o)=>{let n=to(),i=f(t??n)??n;return et("div",{ref:o,className:a(Vd({size:i}),e),...r},void 0,!1,void 0,this)});eu.displayName="NavbarDivider";import*as Ie from"@radix-ui/react-navigation-menu";import{cva as hr}from"class-variance-authority";import{createContext as yT,forwardRef as Et,useContext as tu}from"react";import{jsxDEV as We}from"react/jsx-dev-runtime";var ut={sm:I.sm,md:I.md,lg:I.lg},Da=yT(ut.md),ru=hr("group/navigation-menu relative z-10 flex max-w-max flex-1 items-center justify-center"),ou=hr("group relative flex flex-1 list-none items-center justify-center gap-0.5"),nu=hr(["group/trigger inline-flex w-max items-center justify-center gap-1 rounded-[var(--radius)] border border-transparent bg-transparent font-medium outline-none","transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)]","hover:bg-accent hover:text-accent-foreground","focus-visible:ring-2 focus-visible:ring-ring/50 focus-visible:ring-offset-1 focus-visible:ring-offset-background","disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-muted/40 disabled:text-muted-foreground/70","data-[state=open]:border-border data-[state=open]:bg-accent data-[state=open]:text-accent-foreground"],{variants:{size:{[ut.sm]:"h-8 px-3 py-1.5 text-xs",[ut.md]:"h-9 px-3 py-2 text-sm",[ut.lg]:"h-11 px-4 py-2.5 text-sm"}},defaultVariants:{size:ut.md}}),au=hr(["left-0 top-0 w-full p-1 md:absolute md:w-auto","gs-nav-content"]),iu=hr(["flex select-none items-center gap-2 rounded-[var(--radius-md)] leading-none no-underline outline-none","transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)]","hover:bg-accent/80 hover:text-accent-foreground","focus:bg-accent focus:text-accent-foreground","focus-visible:ring-2 focus-visible:ring-ring/50 focus-visible:outline-none"],{variants:{size:{[ut.sm]:"p-2 text-xs [&_svg:not([class*='size-'])]:size-3.5",[ut.md]:"p-2.5 text-sm [&_svg:not([class*='size-'])]:size-4",[ut.lg]:"p-3 text-sm [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{size:ut.md}}),su=hr(["gs-nav-viewport origin-[top_center] relative mt-1.5 w-full overflow-hidden rounded-[var(--radius)] border border-border bg-popover text-popover-foreground shadow-[var(--shadow-lg)]","h-[var(--radix-navigation-menu-viewport-height)] md:w-[var(--radix-navigation-menu-viewport-width)]"]),lu=hr(["gs-nav-indicator top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden"]),vT=()=>We("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"relative top-px ml-0.5 size-3 transition-transform duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-emphasized)] group-data-[state=open]/trigger:rotate-180","aria-hidden":"true",children:We("path",{d:"m6 9 6 6 6-6"},void 0,!1,void 0,this)},void 0,!1,void 0,this),mu=Et(({className:e,children:t,size:r,viewport:o=!0,...n},i)=>{let s=f(r??ut.md);return We(Da.Provider,{value:s,children:We(Ie.Root,{ref:i,"data-viewport":o,className:a(ru(),e),...n,children:[t,o&&We(ja,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});mu.displayName="NavigationMenu";var du=Et(({className:e,...t},r)=>We(Ie.List,{ref:r,className:a(ou(),e),...t},void 0,!1,void 0,this));du.displayName="NavigationMenuList";var uu=Et(({className:e,...t},r)=>We(Ie.Item,{ref:r,className:a("relative",e),...t},void 0,!1,void 0,this));uu.displayName="NavigationMenuItem";var cu=Et(({className:e,children:t,...r},o)=>{let n=tu(Da);return We(Ie.Trigger,{ref:o,className:a(nu({size:n}),e),...r,children:[t,We(vT,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});cu.displayName="NavigationMenuTrigger";var pu=Et(({className:e,...t},r)=>We(Ie.Content,{ref:r,className:a(au(),e),...t},void 0,!1,void 0,this));pu.displayName="NavigationMenuContent";var fu=Et(({className:e,...t},r)=>{let o=tu(Da);return We(Ie.Link,{ref:r,className:a(iu({size:o}),e),...t},void 0,!1,void 0,this)});fu.displayName="NavigationMenuLink";var ja=Et(({className:e,...t},r)=>We("div",{className:"pointer-events-none absolute top-full left-0 isolate z-50 flex justify-center [&>*]:pointer-events-auto",children:We(Ie.Viewport,{ref:r,forceMount:!0,className:a(su(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));ja.displayName="NavigationMenuViewport";var gu=Et(({className:e,...t},r)=>We(Ie.Indicator,{ref:r,forceMount:!0,className:a(lu(),e),...t,children:We("div",{className:"relative top-[60%] size-2 rotate-45 rounded-tl-sm bg-border shadow-sm"},void 0,!1,void 0,this)},void 0,!1,void 0,this));gu.displayName="NavigationMenuIndicator";import{cva as ro}from"class-variance-authority";import{Fragment as TT,forwardRef as hT,useCallback as Pr,useEffect as bu,useMemo as yu,useRef as PT,useState as vu}from"react";import{jsxDEV as xr}from"react/jsx-dev-runtime";var Mr={sm:"sm",md:"md",lg:"lg",xl:"xl"},Bo={default:"default",error:"error",success:"success"},Io={single:"single",first:"first",middle:"middle",last:"last"},Tu=ro("relative inline-flex items-center",{variants:{size:{sm:"gap-1",md:"gap-1.5",lg:"gap-2",xl:"gap-2.5"}},defaultVariants:{size:Mr.md}}),hu=ro("relative inline-flex items-center",{variants:{size:{sm:"gap-0",md:"gap-0",lg:"gap-0",xl:"gap-0"},status:{default:"",error:"text-destructive",success:"text-success"}},defaultVariants:{size:Mr.md,status:Bo.default}}),Pu=ro(["relative flex items-center justify-center border bg-background","transition-[color,background-color,border-color,box-shadow,transform,opacity] duration-150","motion-reduce:transition-none"],{variants:{size:{sm:"h-8 w-8",md:"h-10 w-10",lg:"h-11 w-11",xl:"h-12 w-12"},filled:{true:"border-border bg-card",false:"border-input bg-background"},focused:{true:"scale-[1.02]",false:""},status:{default:"focus-within:border-ring",error:"border-destructive/70 focus-within:border-destructive focus-within:ring-2 focus-within:ring-destructive/20",success:"border-success/70 focus-within:border-success focus-within:ring-2 focus-within:ring-success/20"},disabled:{true:"border-border/80 bg-muted/45",false:""},position:{single:"rounded-[calc(var(--radius)-2px)]",first:"rounded-l-[calc(var(--radius)-2px)] rounded-r-none",middle:"rounded-none border-l-0",last:"rounded-r-[calc(var(--radius)-2px)] rounded-l-none border-l-0"}},defaultVariants:{size:Mr.md,filled:!1,focused:!1,status:Bo.default,disabled:!1,position:Io.single}}),xu=ro(["h-full w-full rounded-[inherit] bg-transparent text-center font-sans font-medium outline-none","transition-[color,opacity] duration-150 motion-reduce:transition-none","disabled:cursor-not-allowed disabled:text-muted-foreground"],{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base",xl:"text-lg"},status:{default:"caret-primary",error:"caret-destructive",success:"caret-success"},filled:{true:"text-foreground",false:"text-muted-foreground"}},defaultVariants:{size:Mr.md,status:Bo.default,filled:!1}}),Mu=ro(["pointer-events-none absolute inset-0 flex items-center justify-center select-none","font-medium text-muted-foreground/45","transition-[opacity,transform] duration-150 motion-reduce:transition-none"],{variants:{size:{sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl"},focused:{true:"opacity-0 scale-95",false:"opacity-100 scale-100"}},defaultVariants:{size:Mr.md,focused:!1}}),Nu=ro("select-none font-medium text-muted-foreground",{variants:{size:{sm:"px-0.5 text-sm",md:"px-0.5 text-base",lg:"px-1 text-lg",xl:"px-1.5 text-xl"}},defaultVariants:{size:Mr.md}});function xT(e){if(!Number.isFinite(e))return 6;return Math.max(1,Math.floor(e))}function ei(e,t){let r=(e??"").split("").slice(0,t);if(r.length<t)return r.concat(Array(t-r.length).fill(""));return r}var Lu=hT(({className:e,length:t=6,value:r,onChange:o,onComplete:n,size:i=Mr.md,status:s=Bo.default,disabled:l=!1,autoFocus:m=!1,mask:d=!1,groupSize:c,separator:u,separatorChar:g="—",placeholder:T="•",inputMode:b="numeric",pattern:h="[0-9]*",...N},v)=>{let p=f(i),P=xT(t),M=PT([]),[k,H]=vu(null),[B,w]=vu(()=>ei(r,P));bu(()=>{if(r!==void 0){w(ei(r,P));return}w((y)=>ei(y.join(""),P))},[r,P]),bu(()=>{if(m)M.current[0]?.focus()},[m]);let J=yu(()=>{if(typeof c==="number"&&Number.isFinite(c)){let y=Math.floor(c);if(y<=0)return P;return Math.min(P,Math.max(1,y))}if(typeof u==="number"&&Number.isFinite(u)){let y=Math.floor(u);if(y<=0)return P;return Math.min(P,Math.max(1,y))}if(u)return Math.max(1,Math.floor(P/2));return P},[c,P,u]),Y=yu(()=>{let y=[];for(let x=0;x<P;x+=J){let C=Math.min(x+J,P),ne=[];for(let _=x;_<C;_+=1)ne.push(_);y.push(ne)}return y},[J,P]),q=Pr((y)=>{let x=M.current[y];if(!x)return;x.focus(),x.select()},[]),ee=Pr((y)=>{w(y);let x=y.join("");if(o?.(x),y.every((C)=>C!=="")&&x.length===P)n?.(x)},[o,n,P]),me=Pr((y,x)=>{if(l)return;let ne=(b==="numeric"?x.replace(/\D/g,""):x).slice(-1),_=[...B];if(_[y]=ne,ee(_),ne&&y<P-1)q(y+1)},[B,l,ee,q,b,P]),X=Pr((y,x)=>{if(l)return;if(x.key==="Backspace"){if(x.preventDefault(),B[y]){let C=[...B];C[y]="",ee(C);return}if(y>0){let C=[...B];C[y-1]="",ee(C),q(y-1)}return}if(x.key==="Delete"){if(x.preventDefault(),B[y]){let C=[...B];C[y]="",ee(C)}return}if(x.key==="ArrowLeft"){if(x.preventDefault(),y>0)q(y-1);return}if(x.key==="ArrowRight"){if(x.preventDefault(),y<P-1)q(y+1);return}if(x.key==="Home"){x.preventDefault(),q(0);return}if(x.key==="End")x.preventDefault(),q(P-1)},[B,l,ee,q,P]),Q=Pr((y,x)=>{if(x.preventDefault(),l)return;let C=x.clipboardData.getData("text"),_=(b==="numeric"?C.replace(/\D/g,""):C.replace(/\s/g,"")).split("");if(_.length===0)return;let Ce=[...B];for(let ie=0;ie<_.length;ie+=1){let Rt=y+ie;if(Rt>=P)break;Ce[Rt]=_[ie]??""}ee(Ce);let W=Math.min(P-1,y+_.length-1);if(W<P-1){q(W+1);return}M.current[W]?.blur()},[B,l,ee,q,b,P]),A=Pr((y,x)=>{H(y),x.target.select()},[]),oe=Pr(()=>{H(null)},[]),z=u!==void 0,K=g.length>0&&u!==!1&&(z||Y.length>1);return xr("div",{ref:v,className:a(Tu({size:p}),e),role:"group","aria-label":"One-time password input",...N,children:Y.map((y,x)=>xr(TT,{children:[xr("div",{"data-gs-otp-group":"true",className:a(hu({size:p,status:s})),children:y.map((C,ne)=>{let _=B[C]??"",Ce=k===C,W=Io.middle;if(y.length===1)W=Io.single;else if(ne===0)W=Io.first;else if(ne===y.length-1)W=Io.last;return xr("div",{"data-gs-otp-slot":"true","data-disabled":l,className:a(Pu({size:p,filled:Boolean(_),focused:Ce,status:s,disabled:l,position:W})),children:[xr("input",{ref:(ie)=>{M.current[C]=ie},type:d?"password":"text",inputMode:b,pattern:h,maxLength:1,value:_,placeholder:"",disabled:l,"aria-invalid":s===Bo.error,"aria-label":`Digit ${C+1} of ${P}`,autoComplete:"one-time-code",onChange:(ie)=>me(C,ie.target.value),onKeyDown:(ie)=>X(C,ie),onPaste:(ie)=>Q(C,ie),onFocus:(ie)=>A(C,ie),onBlur:oe,className:a(xu({size:p,status:s,filled:Boolean(_)}))},void 0,!1,void 0,this),!_&&xr("div",{"data-gs-otp-placeholder":"true","aria-hidden":"true",className:a(Mu({size:p,focused:Ce})),children:T},void 0,!1,void 0,this)]},`slot-${C}`,!0,void 0,this)})},void 0,!1,void 0,this),K&&x<Y.length-1&&xr("span",{"data-gs-otp-separator":"true",className:a(Nu({size:p})),children:g},void 0,!1,void 0,this)]},`group-${y[0]}-${y[y.length-1]}`,!0,void 0,this))},void 0,!1,void 0,this)});Lu.displayName="OTPInput";import{createContext as IT,createElement as Fu,useCallback as ct,useContext as BT,useEffect as FT,useMemo as GT,useRef as Gu,useState as OT}from"react";import*as ye from"@radix-ui/react-dialog";import{cva as zu}from"class-variance-authority";import{X as MT}from"lucide-react";import{createContext as NT,forwardRef as Ln,useCallback as LT,useContext as zT,useEffect as RT,useState as Ru}from"react";import{jsxDEV as Ye,Fragment as ST}from"react/jsx-dev-runtime";var Ve={top:oo.top,right:oo.right,bottom:oo.bottom,left:oo.left},ce={sm:I.sm,md:I.md,lg:I.lg,xl:I.xl,full:"full"},CT=160,HT={[Ve.top]:"gs-sheet-content gs-sheet-content-top",[Ve.right]:"gs-sheet-content gs-sheet-content-right",[Ve.bottom]:"gs-sheet-content gs-sheet-content-bottom",[Ve.left]:"gs-sheet-content gs-sheet-content-left"},wT={[Ve.right]:{[ce.sm]:"sm:max-w-sm",[ce.md]:"sm:max-w-md",[ce.lg]:"sm:max-w-lg",[ce.xl]:"sm:max-w-xl",[ce.full]:"sm:max-w-full"},[Ve.left]:{[ce.sm]:"sm:max-w-sm",[ce.md]:"sm:max-w-md",[ce.lg]:"sm:max-w-lg",[ce.xl]:"sm:max-w-xl",[ce.full]:"sm:max-w-full"},[Ve.top]:{[ce.sm]:"sm:max-h-[30vh]",[ce.md]:"sm:max-h-[50vh]",[ce.lg]:"sm:max-h-[70vh]",[ce.xl]:"sm:max-h-[85vh]",[ce.full]:"sm:max-h-full"},[Ve.bottom]:{[ce.sm]:"sm:max-h-[30vh]",[ce.md]:"sm:max-h-[50vh]",[ce.lg]:"sm:max-h-[70vh]",[ce.xl]:"sm:max-h-[85vh]",[ce.full]:"sm:max-h-full"}},Cu=zu(a("gs-sheet-overlay",Kt)),Hu=zu("fixed z-50 flex flex-col gap-4 border border-border bg-card p-6 shadow-[var(--shadow-xl)]",{variants:{side:{[Ve.top]:"inset-x-0 top-0 border-b",[Ve.bottom]:"inset-x-0 bottom-0 border-t",[Ve.left]:"inset-y-0 left-0 h-full w-3/4 border-r",[Ve.right]:"inset-y-0 right-0 h-full w-3/4 border-l"}},defaultVariants:{side:Ve.right}}),wu=NT(!1),ti=({children:e,open:t,defaultOpen:r=!1,onOpenChange:o,...n})=>{let[i,s]=Ru(r),l=t!==void 0,m=l?t:i,d=LT((c)=>{if(!l)s(c);o?.(c)},[l,o]);return Ye(wu.Provider,{value:m,children:Ye(ye.Root,{open:m,onOpenChange:d,...n,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},kT=ye.Trigger,AT=ye.Close,ku=ye.Portal,ri=Ln(({className:e,...t},r)=>Ye(ye.Overlay,{className:a(Cu(),e),...t,ref:r},void 0,!1,void 0,this));ri.displayName=ye.Overlay.displayName;var zn=Ln(({side:e=Ve.right,size:t=ce.md,showClose:r=!0,showOverlay:o=!0,portal:n=le,portalContainer:i,forceMount:s=!1,className:l,children:m,...d},c)=>{let u=zT(wu),[g,T]=Ru(s||u),b=f(t)??ce.md,h=ve(),N=HT[e],v=wT[e][b];if(RT(()=>{if(s||u){T(!0);return}let M=setTimeout(()=>{T(!1)},h?0:CT);return()=>{clearTimeout(M)}},[s,u,h]),!(s||u||g))return null;let P=Ye(ST,{children:[o?Ye(ri,{forceMount:!0},void 0,!1,void 0,this):null,Ye(ye.Content,{ref:c,forceMount:!0,className:a(Hu({side:e}),N,v,l),...d,children:[m,r&&Ye(ye.Close,{className:on,children:[Ye(MT,{className:"size-4"},void 0,!1,void 0,this),Ye("span",{className:"sr-only",children:"Close"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);if(!n)return P;return Ye(ku,{forceMount:!0,container:i??void 0,children:P},void 0,!1,void 0,this)});zn.displayName=ye.Content.displayName;var Au=({className:e,...t})=>Ye("div",{className:a("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);Au.displayName="SheetHeader";var Su=({className:e,...t})=>Ye("div",{className:a("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);Su.displayName="SheetFooter";var Iu=Ln(({className:e,...t},r)=>Ye(ye.Title,{ref:r,className:a("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));Iu.displayName=ye.Title.displayName;var Bu=Ln(({className:e,...t},r)=>Ye(ye.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));Bu.displayName=ye.Description.displayName;import{jsxDEV as no}from"react/jsx-dev-runtime";var Ou=IT(null),Wu=250;function Ku({children:e,removeDelay:t=Wu}){let r=ve(),[o,n]=OT([]),i=Gu(0),s=Gu(new Map),l=ct((p)=>{let P=s.current.get(p);if(P===void 0)return;window.clearTimeout(P),s.current.delete(p)},[]),m=ct((p)=>{l(p),n((P)=>P.filter((M)=>M.id!==p))},[l]),d=ct((p)=>{l(p);let P=r?0:t;if(P<=0){m(p);return}let M=window.setTimeout(()=>{m(p)},P);s.current.set(p,M)},[l,r,t,m]),c=ct((p)=>{n((P)=>P.map((M)=>M.id===p?{...M,open:!1}:M)),d(p)},[d]),u=ct(()=>{n((p)=>{for(let P of p)d(P.id);return p.map((P)=>({...P,open:!1}))})},[d]),g=ct(()=>{return i.current+=1,`overlay-${i.current}`},[]),T=ct((p,P)=>{let M=g();l(M);let k={id:M,kind:"dialog",render:p,open:!0,options:P};return n((H)=>[...H,k]),{id:M,close:()=>c(M)}},[l,c,g]),b=ct((p,P)=>{let M=g();l(M);let k={id:M,kind:"sheet",render:p,open:!0,options:P};return n((H)=>[...H,k]),{id:M,close:()=>c(M)}},[l,c,g]),h=ct((p,P,M)=>{return T((k)=>Fu(p,{...P,close:k}),M)},[T]),N=ct((p,P,M)=>{return b((k)=>Fu(p,{...P,close:k}),M)},[b]);FT(()=>{return()=>{for(let p of s.current.values())window.clearTimeout(p);s.current.clear()}},[]);let v=GT(()=>({dialog:h,sheet:N,close:c,closeAll:u}),[u,c,h,N]);return no(Ou.Provider,{value:v,children:[e,o.map((p)=>no(WT,{entry:p,onClose:c},p.id,!1,void 0,this))]},void 0,!0,void 0,this)}Ku.displayName="OverlayProvider";function WT({entry:e,onClose:t}){let r=ct(()=>t(e.id),[e.id,t]);if(e.kind==="dialog")return no(Ro,{open:e.open,onOpenChange:(o)=>!o&&r(),children:no(yn,{...e.options,children:e.render(r)},void 0,!1,void 0,this)},void 0,!1,void 0,this);return no(ti,{open:e.open,onOpenChange:(o)=>!o&&r(),children:no(zn,{...e.options,children:e.render(r)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function KT(){let e=BT(Ou);if(!e)throw Error("useOverlay must be used within an OverlayProvider");return e}import{cva as Fo}from"class-variance-authority";import{ChevronLeft as _T,ChevronRight as UT,MoreHorizontal as $T}from"lucide-react";import{createContext as YT,forwardRef as Go,useContext as Rn}from"react";import{jsxDEV as Xe}from"react/jsx-dev-runtime";var tt={sm:"sm",md:"md",lg:"lg"},Oo=YT(tt.md),_u=Fo("mx-auto flex w-full justify-center"),Uu=Fo("flex flex-row items-center gap-1"),$u=Fo(""),Cn=Fo("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] inline-flex items-center justify-center whitespace-nowrap rounded-[var(--radius)] font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:cursor-not-allowed disabled:border-transparent disabled:bg-muted/40 disabled:text-muted-foreground/70 hover:bg-accent hover:text-accent-foreground",{variants:{isActive:{true:"border border-border bg-background shadow-[var(--shadow-sm)]",false:""},size:{[tt.sm]:"h-7 w-7 text-xs [&_svg]:size-3.5",[tt.md]:"h-9 w-9 text-sm [&_svg]:size-4",[tt.lg]:"h-10 w-10 text-sm [&_svg]:size-5"}},defaultVariants:{isActive:!1,size:tt.md}}),Yu=Fo("flex items-center justify-center",{variants:{size:{[tt.sm]:"h-7 w-7 [&_svg]:size-3.5",[tt.md]:"h-9 w-9 [&_svg]:size-4",[tt.lg]:"h-10 w-10 [&_svg]:size-5"}},defaultVariants:{size:tt.md}}),Vu=({className:e,size:t=tt.md,...r})=>{let o=f(t)??tt.md;return Xe(Oo.Provider,{value:o,children:Xe("nav",{"aria-label":"pagination",className:a(_u(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)};Vu.displayName="Pagination";var Xu=Go(({className:e,...t},r)=>Xe("ul",{ref:r,className:a(Uu(),e),...t},void 0,!1,void 0,this));Xu.displayName="PaginationContent";var Ju=Go(({className:e,...t},r)=>Xe("li",{ref:r,className:a($u(),e),...t},void 0,!1,void 0,this));Ju.displayName="PaginationItem";var qu=Go(({className:e,isActive:t,...r},o)=>{let n=Rn(Oo);return Xe("button",{ref:o,type:"button","aria-current":t?"page":void 0,className:a(Cn({isActive:t,size:n}),e),...r},void 0,!1,void 0,this)});qu.displayName="PaginationLink";var Qu=Go(({className:e,...t},r)=>{let o=Rn(Oo);return Xe("button",{ref:r,type:"button","aria-label":"Go to previous page",className:a(Cn({size:o}),"w-auto gap-1 pr-3 pl-2.5",e),...t,children:[Xe(_T,{},void 0,!1,void 0,this),Xe("span",{children:"Previous"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Qu.displayName="PaginationPrevious";var Zu=Go(({className:e,...t},r)=>{let o=Rn(Oo);return Xe("button",{ref:r,type:"button","aria-label":"Go to next page",className:a(Cn({size:o}),"w-auto gap-1 pr-2.5 pl-3",e),...t,children:[Xe("span",{children:"Next"},void 0,!1,void 0,this),Xe(UT,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Zu.displayName="PaginationNext";var Eu=({className:e,...t})=>{let r=Rn(Oo);return Xe("span",{"aria-hidden":!0,className:a(Yu({size:r}),e),...t,children:[Xe($T,{},void 0,!1,void 0,this),Xe("span",{className:"sr-only",children:"More pages"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};Eu.displayName="PaginationEllipsis";import*as _o from"@radix-ui/react-progress";import{cva as Du}from"class-variance-authority";import{forwardRef as VT,useEffect as XT,useRef as JT}from"react";import{jsxDEV as Hn}from"react/jsx-dev-runtime";var Wo={sm:"sm",md:"md",lg:"lg",xl:"xl"},Ko={default:"default",success:"success",warning:"warning",error:"error"},ju=Du("relative w-full overflow-hidden rounded-full bg-muted",{variants:{size:{[Wo.sm]:"h-2",[Wo.md]:"h-2.5",[Wo.lg]:"h-3",[Wo.xl]:"h-3.5"}},defaultVariants:{size:Wo.md}}),ec=Du("h-full w-full flex-1 rounded-full transition-transform duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-productive)]",{variants:{variant:{[Ko.default]:"bg-primary",[Ko.success]:"bg-success",[Ko.warning]:"bg-warning",[Ko.error]:"bg-destructive"}},defaultVariants:{variant:Ko.default}});function qT(e){if(typeof e!=="number"||Number.isNaN(e))return 0;return Math.max(0,Math.min(100,e))}var tc=VT(({className:e,value:t,size:r,variant:o,showValue:n,...i},s)=>{let l=f(r),m=JT(null),d=qT(t);return XT(()=>{let c=m.current;if(!c)return;c.style.setProperty("--gs-progress-value",`${d}%`)},[d]),Hn("div",{className:"flex w-full items-center gap-2",children:[Hn(_o.Root,{ref:s,className:a(ju({size:l}),e),...i,children:Hn(_o.Indicator,{ref:m,className:a(ec({variant:o}),"[transform:translateX(calc(-100%+var(--gs-progress-value,0%)))]")},void 0,!1,void 0,this)},void 0,!1,void 0,this),n&&Hn("span",{className:"font-medium text-muted-foreground text-sm tabular-nums",children:[d,"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});tc.displayName=_o.Root.displayName;import*as io from"@radix-ui/react-radio-group";import{cva as rc}from"class-variance-authority";import{forwardRef as oc}from"react";import{jsxDEV as wn}from"react/jsx-dev-runtime";var pt={sm:"sm",md:"md",lg:"lg",xl:"xl"},ao={default:"default",error:"error",success:"success"},nc=rc("grid gap-2"),ac=rc("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] aspect-square rounded-full border border-input bg-background ring-offset-background enabled:active:scale-[0.94] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 data-[state=checked]:border-primary data-[state=checked]:text-primary disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground",{variants:{size:{[pt.sm]:"h-4 w-4",[pt.md]:"h-5 w-5",[pt.lg]:"h-6 w-6",[pt.xl]:"h-7 w-7"},status:{[ao.default]:"enabled:hover:border-primary/70",[ao.error]:"border-destructive enabled:hover:border-destructive/70 focus-visible:ring-destructive data-[state=checked]:border-destructive data-[state=checked]:text-destructive",[ao.success]:"border-success enabled:hover:border-success/70 focus-visible:ring-success data-[state=checked]:border-success data-[state=checked]:text-success"}},defaultVariants:{size:pt.md,status:ao.default}}),QT={[pt.sm]:"h-2 w-2",[pt.md]:"h-2.5 w-2.5",[pt.lg]:"h-3 w-3",[pt.xl]:"h-3.5 w-3.5"},ic=oc(({className:e,...t},r)=>wn(io.Root,{ref:r,className:a(nc(),e),...t},void 0,!1,void 0,this));ic.displayName="RadioGroup";var sc=oc(({className:e,size:t=pt.md,status:r=ao.default,...o},n)=>{let i=f(t);return wn(io.Item,{ref:n,className:a(ac({size:i,status:r}),e),...o,children:wn(io.Indicator,{className:"flex items-center justify-center",children:wn("span",{className:a("block rounded-full bg-current transition-transform duration-150",QT[i])},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});sc.displayName="RadioGroupItem";import{cva as An}from"class-variance-authority";import{forwardRef as ni,useCallback as Uo,useEffect as uc,useRef as cc,useState as lc}from"react";import{jsxDEV as kn}from"react/jsx-dev-runtime";var ZT=10,ET=90,oi=50,pc=An("flex h-full w-full",{variants:{direction:{horizontal:"flex-row",vertical:"flex-col"}},defaultVariants:{direction:"horizontal"}}),fc=An("relative basis-[var(--gs-panel-basis,50%)] overflow-hidden grow-0 shrink-0"),gc=An("relative flex items-center justify-center bg-border transition-colors duration-150 hover:bg-primary/40 active:bg-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",{variants:{direction:{horizontal:"h-full w-1 cursor-col-resize",vertical:"h-1 w-full cursor-row-resize"},withHandle:{true:"",false:""}},compoundVariants:[{direction:"horizontal",withHandle:!0,class:"w-3"},{direction:"vertical",withHandle:!0,class:"h-3"}],defaultVariants:{direction:"horizontal",withHandle:!1}}),bc=An("z-10 flex items-center justify-center rounded-sm bg-border",{variants:{direction:{horizontal:"h-6 w-1",vertical:"h-1 w-6"}},defaultVariants:{direction:"horizontal"}});function yc(e){return Math.max(ZT,Math.min(ET,e))}function vc(e){return e.dataset.direction==="vertical"?"vertical":"horizontal"}function DT(e,t){let r=Array.from(e.children),o=r.indexOf(t),n;for(let s=o-1;s>=0;s-=1){let l=r[s];if(l instanceof HTMLElement&&l.matches("[data-panel]")){n=l;break}}let i;for(let s=o+1;s<r.length;s+=1){let l=r[s];if(l instanceof HTMLElement&&l.matches("[data-panel]")){i=l;break}}return{prevPanel:n,nextPanel:i}}function mc(e){if(!e)return null;let t=e.closest("[data-panel-group]");if(!(t instanceof HTMLElement))return null;let{prevPanel:r,nextPanel:o}=DT(t,e);if(!(r&&o))return null;return{group:t,direction:vc(t),prevPanel:r,nextPanel:o}}function jT(e){if("touches"in e){let t=e.touches[0];if(!t)return null;return{x:t.clientX,y:t.clientY}}return{x:e.clientX,y:e.clientY}}function dc(e,t,r){let o=yc(r);e.style.setProperty("--gs-panel-basis",`${o}%`),t.style.setProperty("--gs-panel-basis",`${100-o}%`)}function eh(e){let t=e.style.getPropertyValue("--gs-panel-basis").trim();if(t.endsWith("%"))return Number.parseFloat(t)||oi;let r=e.dataset.defaultSize;if(r)return Number.parseFloat(r)||oi;return oi}function th(e,t,r){if(t==="horizontal"){if(e==="ArrowLeft")return-r;if(e==="ArrowRight")return r;return 0}if(e==="ArrowUp")return-r;if(e==="ArrowDown")return r;return 0}var Tc=ni(({className:e,direction:t="horizontal",children:r,...o},n)=>kn("div",{ref:n,"data-panel-group":"","data-direction":t,className:a(pc({direction:t}),e),...o,children:r},void 0,!1,void 0,this));Tc.displayName="ResizablePanelGroup";var hc=ni(({className:e,defaultSize:t=50,children:r,...o},n)=>{let i=cc(null),s=yc(t);uc(()=>{let m=i.current;if(!m)return;m.style.setProperty("--gs-panel-basis",`${s}%`)},[s]);let l=Uo((m)=>{if(i.current=m,typeof n==="function")n(m);else if(n)n.current=m},[n]);return kn("div",{ref:l,"data-panel":"","data-default-size":s,className:a(fc(),e),...o,children:r},void 0,!1,void 0,this)});hc.displayName="ResizablePanel";var Pc=ni(({className:e,withHandle:t=!1,disabled:r=!1,...o},n)=>{let[i,s]=lc(!1),[l,m]=lc("horizontal"),d=cc(null);uc(()=>{let b=d.current;if(!b)return;let h=b.closest("[data-panel-group]");if(!(h instanceof HTMLElement))return;let N=()=>m(vc(h));N();let v=new MutationObserver(N);return v.observe(h,{attributes:!0,attributeFilter:["data-direction"]}),()=>v.disconnect()},[]);let c=Uo(()=>{if(r)return;s(!0);let b=(N)=>{let v=jT(N);if(!v)return;let p=mc(d.current);if(!p)return;let P=p.group.getBoundingClientRect(),M=p.direction==="horizontal"?P.width:P.height;if(M<=0)return;let H=(p.direction==="horizontal"?v.x-P.left:v.y-P.top)/M*100;dc(p.prevPanel,p.nextPanel,H)},h=()=>{s(!1),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",h),document.removeEventListener("touchmove",b),document.removeEventListener("touchend",h)};document.addEventListener("mousemove",b),document.addEventListener("mouseup",h),document.addEventListener("touchmove",b),document.addEventListener("touchend",h)},[r]),u=Uo((b)=>{b.preventDefault(),c()},[c]),g=Uo((b)=>{if(b.touches.length===0)return;c()},[c]),T=Uo((b)=>{if(r)return;let h=mc(d.current??b.currentTarget);if(!h)return;let N=b.shiftKey?10:1,v=th(b.key,h.direction,N);if(v===0)return;b.preventDefault();let p=eh(h.prevPanel);dc(h.prevPanel,h.nextPanel,p+v)},[r]);return kn("div",{ref:(b)=>{if(d.current=b,typeof n==="function")n(b);else if(n)n.current=b},role:"separator","aria-orientation":l,"aria-valuemin":10,"aria-valuemax":90,"aria-valuenow":50,tabIndex:r?-1:0,"data-panel-resize-handle":"","data-dragging":i,onMouseDown:u,onTouchStart:g,onKeyDown:T,className:a(gc({direction:l,withHandle:t}),i&&"bg-primary",r&&"pointer-events-none cursor-not-allowed bg-muted/40 text-muted-foreground/70",e),...o,children:t&&kn("div",{className:a(bc({direction:l}))},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Pc.displayName="ResizableHandle";import*as ht from"@radix-ui/react-scroll-area";import{cva as ai}from"class-variance-authority";import{forwardRef as xc}from"react";import{jsxDEV as so}from"react/jsx-dev-runtime";var Mc=ai("relative flex flex-col overflow-hidden"),Nc=ai("flex touch-none select-none transition-colors duration-150",{variants:{orientation:{vertical:"h-full w-2.5 border-l border-l-transparent p-px",horizontal:"h-2.5 flex-col border-t border-t-transparent p-px"}},defaultVariants:{orientation:"vertical"}}),Lc=ai("relative flex-1 rounded-full bg-border"),zc=xc(({className:e,children:t,...r},o)=>so(ht.Root,{ref:o,className:a(Mc(),e),...r,children:[so(ht.Viewport,{className:"min-h-0 w-full flex-1 rounded-[inherit]",children:t},void 0,!1,void 0,this),so(ii,{},void 0,!1,void 0,this),so(ht.Corner,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this));zc.displayName="ScrollArea";var ii=xc(({className:e,orientation:t="vertical",...r},o)=>so(ht.ScrollAreaScrollbar,{ref:o,orientation:t,className:a(Nc({orientation:t}),e),...r,children:so(ht.ScrollAreaThumb,{className:a(Lc())},void 0,!1,void 0,this)},void 0,!1,void 0,this));ii.displayName="ScrollBar";import{cva as li}from"class-variance-authority";import{createContext as ih,forwardRef as mi,useCallback as sh,useContext as Hc,useRef as Cc,useState as lh}from"react";import{useLayoutEffect as Rc,useRef as lo}from"react";var rh={x:0,y:0,width:0,height:0};function oh(e,t){let r=e.querySelector(t);if(!r)return null;return{x:r.offsetLeft,y:r.offsetTop,width:r.offsetWidth,height:r.offsetHeight}}function nh(e,t){let r=e.getBoundingClientRect(),o=t.getBoundingClientRect();return{x:r.left-o.left-t.clientLeft,y:r.top-o.top-t.clientTop,width:r.width,height:r.height}}function si(e,t){let r=e.style;r.transform=`translate3d(${t.x}px,${t.y}px,0)`,r.width=`${t.width}px`,r.height=`${t.height}px`}function ah(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Sn(e,t,r){let o=ve(),n=lo(!1),i=lo(rh),s=lo(r.activeSelector);s.current=r.activeSelector;let l=lo(r.observeAttributes);l.current=r.observeAttributes;let m=lo(o);m.current=o;let d=lo(null);d.current=(c,u)=>{let g=oh(c,s.current);if(!g){u.style.opacity="0";return}if(ah(i.current,g)&&n.current)return;if(!n.current||m.current){u.style.transition="none",si(u,g),u.style.opacity="1",u.offsetHeight,u.style.transition="",n.current=!0,i.current=g;return}let T=nh(u,c);u.style.transition="none",si(u,T),u.style.opacity="1",u.offsetHeight,u.style.transition="",si(u,g),i.current=g},Rc(()=>{r.activeKey;let c=e.current,u=t.current;if(!(c&&u))return;d.current?.(c,u)},[r.activeKey,o,e.current,t.current]),Rc(()=>{let c=e.current,u=t.current;if(!(c&&u))return;let g=0;function T(){if(!(c&&u))return;d.current?.(c,u)}function b(){cancelAnimationFrame(g),g=requestAnimationFrame(T)}let h=typeof ResizeObserver<"u"?new ResizeObserver(b):null;h?.observe(c);let N=l.current,v=null;if(N&&N.length>0)v=typeof MutationObserver<"u"?new MutationObserver(b):null,v?.observe(c,{subtree:!0,attributes:!0,attributeFilter:N});return()=>{cancelAnimationFrame(g),h?.disconnect(),v?.disconnect()}},[e.current,t.current])}var In="pointer-events-none absolute top-0 left-0 z-0 rounded-[calc(var(--radius)-2px)] border border-border bg-accent shadow-[var(--shadow-xs)] transition-[transform,width,height,opacity] duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-emphasized)]";import{jsxDEV as Nr}from"react/jsx-dev-runtime";var xe={sm:"sm",md:"md",lg:"lg"},wc=li("relative inline-flex items-center rounded-[var(--radius)] border border-border bg-secondary p-1 text-muted-foreground",{variants:{size:{[xe.sm]:"h-8 gap-0.5",[xe.md]:"h-10 gap-0.5",[xe.lg]:"h-11 gap-1"}},defaultVariants:{size:xe.md}}),kc=li(["relative z-10 inline-flex items-center justify-center rounded-[calc(var(--radius)-2px)]","cursor-pointer select-none outline-none","transition-[color,background-color,box-shadow] duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]","focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:text-muted-foreground/40","leading-none"],{variants:{size:{[xe.sm]:"size-6",[xe.md]:"size-8",[xe.lg]:"size-9"},active:{true:"text-foreground",false:"text-muted-foreground hover:text-foreground/70"}},defaultVariants:{size:xe.md,active:!1}}),Ac=li(["relative z-10 inline-flex items-center justify-center gap-1.5 rounded-[calc(var(--radius)-2px)]","cursor-pointer select-none whitespace-nowrap font-medium leading-none outline-none","transition-[color,background-color,box-shadow] duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]","focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:text-muted-foreground/40"],{variants:{size:{[xe.sm]:"h-6 px-2.5 text-xs",[xe.md]:"h-8 px-3 text-sm",[xe.lg]:"h-9 px-4 text-sm"},active:{true:"text-foreground",false:"text-muted-foreground hover:text-foreground/70"}},defaultVariants:{size:xe.md,active:!1}}),Sc={[xe.sm]:"size-3",[xe.md]:"size-3.5",[xe.lg]:"size-4"},mh=(e)=>{return},di=ih({activeValue:"",onSelect:mh,size:xe.md,disabled:!1}),Ic=mi(({className:e,value:t,defaultValue:r,onValueChange:o,size:n,disabled:i=!1,children:s,...l},m)=>{let d=f(n),[c,u]=lh(r??""),g=Cc(null),T=St(m,g),b=Cc(null),h=t!==void 0?t:c,N=sh((v)=>{if(i)return;if(t===void 0)u(v);o?.(v)},[i,o,t]);return Sn(g,b,{activeSelector:"button[data-state='active']",activeKey:h}),Nr(di.Provider,{value:{activeValue:h,onSelect:N,size:d,disabled:i},children:Nr("div",{ref:T,role:"radiogroup",className:a(wc({size:d}),i&&"pointer-events-none cursor-not-allowed border-transparent bg-muted/40 text-muted-foreground/70",e),...l,children:[Nr("span",{ref:b,"aria-hidden":!0,"data-slot":"indicator",className:In,style:{opacity:0}},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Ic.displayName="SegmentedControl";var Bc=mi(({className:e,value:t,icon:r,disabled:o=!1,...n},i)=>{let{activeValue:s,onSelect:l,size:m,disabled:d}=Hc(di),c=s===t,u=o||d;return Nr("button",{ref:i,type:"button",role:"radio","aria-checked":c,"aria-disabled":u||void 0,"data-state":c?"active":"inactive","data-value":t,disabled:u,onClick:()=>l(t),className:a(kc({size:m,active:c}),e),...n,children:Nr("span",{className:a(Sc[m??xe.md],"[&>svg]:size-full"),children:r},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Bc.displayName="SegmentedControlItem";var Fc=mi(({className:e,value:t,icon:r,disabled:o=!1,children:n,...i},s)=>{let{activeValue:l,onSelect:m,size:d,disabled:c}=Hc(di),u=l===t,g=o||c;return Nr("button",{ref:s,type:"button",role:"radio","aria-checked":u,"aria-disabled":g||void 0,"data-state":u?"active":"inactive","data-value":t,disabled:g,onClick:()=>m(t),className:a(Ac({size:d,active:u}),e),...i,children:[r&&Nr("span",{className:a(Sc[d??xe.md],"[&>svg]:size-full"),children:r},void 0,!1,void 0,this),n]},void 0,!0,void 0,this)});Fc.displayName="SegmentedControlLabelItem";var dh=xe;import*as Dt from"@radix-ui/react-popover";import{cva as Oc}from"class-variance-authority";import{Check as uh,ChevronDown as ch,X as ph}from"lucide-react";import{Children as fh,createContext as gh,forwardRef as Xo,isValidElement as ci,useCallback as Yo,useContext as Wc,useEffect as Bn,useId as Gc,useMemo as bh,useRef as Kc,useState as $o}from"react";import{jsxDEV as pe,Fragment as Nh}from"react/jsx-dev-runtime";var ae={sm:"sm",md:"md",lg:"lg",xl:"xl"},mo={default:"default",error:"error",success:"success"},Vo={trigger:"trigger",auto:"auto"},yh={start:"start",center:"center",end:"end"},_c=Oc(["group flex items-center gap-2 rounded-[var(--radius)] border border-input","bg-background text-sm text-foreground outline-none","placeholder:text-muted-foreground focus-visible:ring-2","data-[state=open]:ring-2","disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground","data-[placeholder]:text-muted-foreground","[&_[data-slot=select-value]]:line-clamp-1"].join(" "),{variants:{size:{[ae.sm]:"h-8 px-2.5 text-xs",[ae.md]:"h-10 px-3.5",[ae.lg]:"h-11 px-4.5 text-sm",[ae.xl]:"h-12 px-4 text-base"},status:{[mo.default]:"focus-visible:ring-primary data-[state=open]:ring-primary",[mo.error]:"border-destructive focus-visible:ring-destructive data-[state=open]:ring-destructive",[mo.success]:"border-success focus-visible:ring-success data-[state=open]:ring-success"}},defaultVariants:{size:ae.md,status:mo.default}}),Uc=Oc(["max-h-96 overflow-y-auto overflow-x-hidden"].join(" "),{variants:{widthMode:{[Vo.trigger]:"w-[var(--radix-popover-trigger-width)]",[Vo.auto]:"w-max min-w-0"},size:{[ae.sm]:"text-xs",[ae.md]:"text-sm",[ae.lg]:"text-sm",[ae.xl]:"text-base"}},defaultVariants:{widthMode:Vo.auto,size:ae.md}}),vh={[ae.sm]:"min-h-7.5 py-1.5 px-2.5 pr-3 text-xs",[ae.md]:"min-h-9 py-2 px-3 pr-4.5 text-sm",[ae.lg]:"min-h-10 py-2.5 px-3.5 pr-5.5 text-sm",[ae.xl]:"min-h-11 py-3 px-4 pr-6 text-base"},Th={[ae.sm]:"px-2 py-1 text-xs",[ae.md]:"px-2 py-1.5 text-sm",[ae.lg]:"px-2.5 py-1.5 text-sm",[ae.xl]:"px-3 py-2 text-base"},Fn={[ae.sm]:"size-3.5",[ae.md]:"size-4",[ae.lg]:"size-4",[ae.xl]:"size-4.5"};function hh(e){if(!ci(e))return!1;let t=e.type;if(typeof t==="string"||typeof t!=="function"&&typeof t!=="object"||t===null)return!1;return Reflect.get(t,"displayName")==="SelectItem"}function ui(e,t){if(e===null||e===void 0||typeof e==="boolean")return;if(Array.isArray(e)){for(let o of e)ui(o,t);return}if(!ci(e))return;if(hh(e)){let o=typeof e.props.value==="string"?e.props.value:"";if(o.length>0){let n=typeof e.props.label==="string"?e.props.label:Gn(e.props.children).trim();if(n.length>0)t.set(o,n)}}let r=e.props.children;if(r!==void 0)ui(r,t)}function Gn(e){if(e===null||e===void 0||typeof e==="boolean")return"";if(typeof e==="string"||typeof e==="number")return String(e);if(Array.isArray(e))return e.map((t)=>Gn(t)).join("");if(ci(e))return Gn(e.props.children);return""}var pi=gh(null);function On(){let e=Wc(pi);if(!e)throw Error("Select components must be used within Select");return e}function fi(e){let t=Wc(pi);if(e)return e;return t?.triggerSize??ae.md}var Ph=({children:e,value:t,defaultValue:r="",onValueChange:o,open:n,defaultOpen:i=!1,onOpenChange:s,disabled:l=!1})=>{let[m,d]=$o(ae.md),[c,u]=$o(!1),[g,T]=$o(r),[b,h]=$o(i),[,N]=$o(0),v=Kc(new Map),p=bh(()=>{let X=new Map;return ui(e,X),X},[e]),P=t!==void 0,M=n!==void 0,k=P?t:g,H=M?n:b,B=Yo((X)=>{if(!P)T(X);if(o?.(X),!M)h(!1);s?.(!1)},[P,M,o,s]),w=Yo((X)=>{if(l)return;if(!M)h(X);s?.(X)},[l,M,s]),J=Yo((X,Q)=>{if(v.current.get(X)!==Q)v.current.set(X,Q),N((oe)=>oe+1)},[]),Y=Yo((X)=>{return v.current.get(X)??p.get(X)},[p]),q=Gc(),ee=Gc(),me={value:k,onValueChange:B,open:H,onOpenChange:w,triggerSize:m,setTriggerSize:d,triggerFullWidth:c,setTriggerFullWidth:u,disabled:l,triggerId:q,contentId:ee,registerItem:J,getLabel:Y};return pe(pi.Provider,{value:me,children:pe(Dt.Root,{open:H,onOpenChange:w,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},xh=({children:e,className:t})=>pe("div",{role:"group",className:t,children:e},void 0,!1,void 0,this),Mh=({placeholder:e})=>{let{value:t,getLabel:r}=On();if(!t)return e?pe("span",{className:"text-muted-foreground",children:e},void 0,!1,void 0,this):null;let o=r(t);return pe(Nh,{children:o??t},void 0,!1,void 0,this)},$c=Xo(({className:e,children:t,size:r=ae.md,status:o=mo.default,fullWidth:n=!1,clearable:i=!1,leadingIcon:s,indicatorIcon:l,renderValue:m,placeholder:d,onKeyDown:c,...u},g)=>{let T=On(),b=f(r)??r,h=T.setTriggerSize,N=T.setTriggerFullWidth;Bn(()=>{h(b)},[b,h]),Bn(()=>{N(n)},[n,N]);let v=T.value.length>0,p=i&&v&&!T.disabled,P=()=>{T.onValueChange("")},M;if(m)M=v?m(T.value):d?pe("span",{className:"text-muted-foreground",children:d},void 0,!1,void 0,this):null;else M=t;let k=(H)=>{if(c?.(H),H.defaultPrevented)return;if(H.key==="ArrowDown"||H.key==="ArrowUp"||H.key==="Enter"||H.key===" "){if(!T.open)H.preventDefault(),T.onOpenChange(!0)}};return pe(Dt.Trigger,{asChild:!0,children:pe("button",{ref:g,type:"button",role:"combobox","aria-expanded":T.open,"aria-haspopup":"listbox","aria-controls":T.contentId,id:T.triggerId,disabled:T.disabled,"data-state":T.open?"open":"closed","data-placeholder":v?void 0:"",className:a(_c({size:b,status:o}),n?"w-full":"w-auto",e),onKeyDown:k,...u,children:[s&&pe("i",{className:"inline-flex shrink-0 items-center text-muted-foreground not-italic",children:s},void 0,!1,void 0,this),pe("span",{"data-slot":"select-value",className:"min-w-0 flex-1 text-left",children:M},void 0,!1,void 0,this),pe("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[p&&pe("span",{role:"button",tabIndex:-1,"aria-label":"Clear selection",onPointerDown:(H)=>{H.stopPropagation(),H.preventDefault(),P()},className:"inline-flex items-center justify-center rounded-[calc(var(--radius)-4px)] text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:pe(ph,{className:Fn[b]},void 0,!1,void 0,this)},void 0,!1,void 0,this),l??pe(ch,{className:a(Fn[b],"opacity-60 transition-transform duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-productive)]",T.open&&"rotate-180")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});$c.displayName="SelectTrigger";var Yc=Xo(({className:e,children:t,widthMode:r,size:o,align:n="start",side:i="bottom",sideOffset:s=4,portal:l=le,portalContainer:m,forceMount:d=!1,onKeyDown:c,...u},g)=>{let T=On(),b=fi(o),h=r??Vo.auto,N=Kc(null),v=St(g,N),p=Yo((k)=>{let H=N.current;if(!H)return;let B=Array.from(H.querySelectorAll('[role="option"]:not([data-disabled])'));if(B.length===0)return;let w=H.querySelector('[role="option"]:focus'),J=w?B.indexOf(w):-1,Y;switch(k){case"first":Y=B[0];break;case"last":Y=B[B.length-1];break;case"next":Y=B[J+1]??B[0];break;case"prev":Y=B[J-1]??B[B.length-1];break}Y?.focus()},[]),P=(k)=>{if(c?.(k),k.defaultPrevented)return;switch(k.key){case"ArrowDown":k.preventDefault(),p("next");break;case"ArrowUp":k.preventDefault(),p("prev");break;case"Home":k.preventDefault(),p("first");break;case"End":k.preventDefault(),p("last");break;case"Escape":k.preventDefault(),T.onOpenChange(!1);break}};Bn(()=>{if(T.open)requestAnimationFrame(()=>p("first"))},[T.open,p]);let M=pe(Dt.Content,{ref:v,id:T.contentId,role:"listbox","aria-labelledby":T.triggerId,side:i,align:n,sideOffset:s,forceMount:d?!0:void 0,onKeyDown:P,onOpenAutoFocus:(k)=>k.preventDefault(),className:a(Dr(),Uc({widthMode:h,size:b}),"p-1",e),...u,children:t},void 0,!1,void 0,this);if(l)return pe(Dt.Portal,{container:m??void 0,children:M},void 0,!1,void 0,this);return M});Yc.displayName="SelectContent";var Vc=Xo(({className:e,size:t,...r},o)=>{let n=fi(t);return pe("div",{ref:o,className:a("font-semibold text-foreground",Th[n],e),...r},void 0,!1,void 0,this)});Vc.displayName="SelectLabel";var Xc=Xo(({className:e,children:t,value:r,label:o,size:n,disabled:i=!1,...s},l)=>{let m=On(),d=fi(n),c=m.value===r,u=m.registerItem,g=Gn(fh.toArray(t)).trim();Bn(()=>{let h=o??(g.length>0?g:r);u(r,h)},[g,r,o,u]);let T=()=>{if(!i)m.onValueChange(r)},b=(h)=>{if(h.key==="Enter"||h.key===" ")h.preventDefault(),T()};return pe("div",{ref:l,role:"option",tabIndex:i?void 0:-1,"aria-selected":c,"aria-disabled":i||void 0,"data-selected":c?"":void 0,"data-disabled":i?"":void 0,"data-value":r,className:a("relative flex w-full cursor-pointer select-none items-center gap-2","rounded-[calc(var(--radius)-3px)] outline-none","hover:bg-accent focus-visible:bg-accent focus-visible:text-accent-foreground","data-disabled:cursor-not-allowed data-disabled:border-transparent data-disabled:bg-muted/40 data-disabled:text-muted-foreground/70",vh[d],c&&"bg-accent/50",e),onClick:T,onKeyDown:b,...s,children:[pe("span",{className:a("flex shrink-0 items-center justify-center",Fn[d]),children:c&&pe(uh,{className:Fn[d]},void 0,!1,void 0,this)},void 0,!1,void 0,this),pe("span",{className:"min-w-0 flex-1 truncate",children:t},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Xc.displayName="SelectItem";var Jc=Xo(({className:e,...t},r)=>pe("div",{ref:r,className:a("-mx-1 my-1 h-px bg-border",e),...t},void 0,!1,void 0,this));Jc.displayName="SelectSeparator";import{cva as Lh}from"class-variance-authority";import{forwardRef as zh}from"react";import{jsxDEV as Rh}from"react/jsx-dev-runtime";var Jo={horizontal:"horizontal",vertical:"vertical"},qc=Lh("shrink-0 bg-border",{variants:{orientation:{[Jo.horizontal]:"h-px w-full",[Jo.vertical]:"h-full w-px"}},defaultVariants:{orientation:Jo.horizontal}}),Qc=zh(({className:e,orientation:t=Jo.horizontal,decorative:r=!0,...o},n)=>{let i=r?{role:"none"}:{role:"separator","aria-orientation":t};return Rh("div",{ref:n,className:a(qc({orientation:t}),e),...i,...o},void 0,!1,void 0,this)});Qc.displayName="Separator";import{cva as Wn}from"class-variance-authority";import{forwardRef as Kn}from"react";import{jsxDEV as _n}from"react/jsx-dev-runtime";var Me={sm:"sm",md:"md",lg:"lg"},Zc=Wn("animate-pulse rounded-[var(--radius)] bg-muted"),Ec=Wn("w-full",{variants:{size:{[Me.sm]:"h-3",[Me.md]:"h-4",[Me.lg]:"h-5"}},defaultVariants:{size:Me.md}}),Dc=Wn("",{variants:{size:{[Me.sm]:"h-8 w-8",[Me.md]:"h-10 w-10",[Me.lg]:"h-12 w-12"}},defaultVariants:{size:Me.md}}),jc=Wn("",{variants:{size:{[Me.sm]:"h-8 w-20",[Me.md]:"h-9 w-24",[Me.lg]:"h-10 w-28"}},defaultVariants:{size:Me.md}}),qo=Kn(({className:e,circle:t=!1,...r},o)=>_n("div",{ref:o,className:a(Zc(),t&&"rounded-full",e),...r},void 0,!1,void 0,this));qo.displayName="Skeleton";var ep=Kn(({className:e,size:t=Me.md,...r},o)=>{let n=f(t)??Me.md;return _n(qo,{ref:o,className:a(Ec({size:n}),e),...r},void 0,!1,void 0,this)});ep.displayName="SkeletonText";var tp=Kn(({className:e,size:t=Me.md,...r},o)=>{let n=f(t)??Me.md;return _n(qo,{ref:o,circle:!0,className:a(Dc({size:n}),e),...r},void 0,!1,void 0,this)});tp.displayName="SkeletonAvatar";var rp=Kn(({className:e,size:t=Me.md,...r},o)=>{let n=f(t)??Me.md;return _n(qo,{ref:o,className:a(jc({size:n}),e),...r},void 0,!1,void 0,this)});rp.displayName="SkeletonButton";import*as jt from"@radix-ui/react-slider";import{cva as $n}from"class-variance-authority";import{forwardRef as Ch}from"react";import{jsxDEV as Un}from"react/jsx-dev-runtime";var uo={sm:"sm",md:"md",lg:"lg"},op=$n("relative flex w-full touch-none select-none items-center"),np=$n("relative w-full grow overflow-hidden rounded-full bg-secondary"),ap=$n("absolute h-full bg-primary"),ip=$n("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] block cursor-grab rounded-full border-2 border-primary bg-background ring-offset-background active:cursor-grabbing focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/40 disabled:text-muted-foreground/70"),Hh={[uo.sm]:"h-2",[uo.md]:"h-2.5",[uo.lg]:"h-3"},wh={[uo.sm]:"h-4 w-4",[uo.md]:"h-5 w-5",[uo.lg]:"h-6 w-6"},sp=Ch(({className:e,size:t,...r},o)=>{let n=f(t);return Un(jt.Root,{ref:o,className:a(op(),e),...r,children:[Un(jt.Track,{"data-slider-track":!0,className:a(np(),Hh[n]),children:Un(jt.Range,{className:a(ap())},void 0,!1,void 0,this)},void 0,!1,void 0,this),(r.defaultValue??r.value??[0]).map((i,s)=>Un(jt.Thumb,{"data-slider-thumb":!0,className:a(ip(),wh[n])},`thumb-${String(s)}`,!1,void 0,this))]},void 0,!0,void 0,this)});sp.displayName="Slider";import{cva as Ae}from"class-variance-authority";import{forwardRef as Ih,useCallback as gi,useEffect as yi,useLayoutEffect as Bh,useMemo as co,useRef as Pt,useState as bi}from"react";import{useCallback as lp,useSyncExternalStore as kh}from"react";var Ah=()=>!1,Sh=()=>{return};function mp(e){let t=lp((o)=>{if(typeof window>"u")return Sh;let n=window.matchMedia(e);return n.addEventListener("change",o),()=>n.removeEventListener("change",o)},[e]),r=lp(()=>{if(typeof window>"u")return!1;return window.matchMedia(e).matches},[e]);return kh(t,r,Ah)}import{jsxDEV as $,Fragment as Rp}from"react/jsx-dev-runtime";var Fh="(max-width: 639px)",R={sm:"sm",md:"md",lg:"lg",xl:"xl"},vi={sm:"sm",md:"sm",lg:"md",xl:"md"},Yn={idle:"idle",loading:"loading",error:"error"},Gh=160,dp=Ae("z-[120] bg-black/40"),up=Ae(["gs-spotlight-content fixed inset-x-0 top-[15vh] z-[120] w-full mx-auto","rounded-[calc(var(--radius)+6px)] border border-border bg-popover shadow-2xl","overflow-hidden"],{variants:{size:{[R.sm]:"max-w-md",[R.md]:"max-w-xl",[R.lg]:"max-w-2xl",[R.xl]:"max-w-3xl"}},defaultVariants:{size:R.md}}),cp=Ae(["gs-sheet-content gs-sheet-content-bottom","fixed inset-x-0 bottom-0 z-[120] w-full flex flex-col","rounded-t-2xl border-t border-x border-border bg-popover shadow-2xl","overflow-hidden"]),pp=Ae("flex items-center border-b border-border",{variants:{size:{[R.sm]:"gap-2 px-3 py-2",[R.md]:"gap-3 px-4 py-3",[R.lg]:"gap-3 px-5 py-3.5",[R.xl]:"gap-4 px-6 py-4"}},defaultVariants:{size:R.md}}),fp=Ae(["w-full flex-1 bg-transparent text-foreground","placeholder:text-muted-foreground","outline-none border-none"],{variants:{size:{[R.sm]:"text-sm",[R.md]:"text-base",[R.lg]:"text-lg",[R.xl]:"text-xl"}},defaultVariants:{size:R.md}}),gp=Ae("text-muted-foreground shrink-0",{variants:{size:{[R.sm]:"size-3.5",[R.md]:"size-4",[R.lg]:"size-5",[R.xl]:"size-5"}},defaultVariants:{size:R.md}}),bp=Ae("overflow-y-auto py-1",{variants:{size:{[R.sm]:"max-h-64",[R.md]:"max-h-80",[R.lg]:"max-h-96",[R.xl]:"max-h-[28rem]"}},defaultVariants:{size:R.md}}),yp=Ae("font-semibold text-muted-foreground uppercase tracking-wide",{variants:{size:{[R.sm]:"px-2.5 py-1.5 text-[11px]",[R.md]:"px-3 py-2 text-xs",[R.lg]:"px-3.5 py-2 text-xs",[R.xl]:"px-4 py-2.5 text-xs"}},defaultVariants:{size:R.md}}),vp=Ae(["group flex items-center cursor-pointer rounded-lg","text-foreground","transition-[color,background-color,box-shadow] duration-100","active:scale-[0.98]"],{variants:{size:{[R.sm]:"gap-2 px-2.5 py-1.5 mx-1.5",[R.md]:"gap-3 px-3 py-2 mx-2",[R.lg]:"gap-3 px-3.5 py-2.5 mx-2",[R.xl]:"gap-4 px-4 py-3 mx-2.5"},selected:{true:"bg-primary/10",false:"hover:bg-muted"},disabled:{true:"text-muted-foreground cursor-not-allowed pointer-events-none bg-muted/40",false:""}},defaultVariants:{size:R.md,selected:!1,disabled:!1}}),Tp=Ae("shrink-0",{variants:{size:{[R.sm]:"size-3.5",[R.md]:"size-4",[R.lg]:"size-5",[R.xl]:"size-5"},selected:{true:"text-primary",false:"text-muted-foreground"}},defaultVariants:{size:R.md,selected:!1}}),hp=Ae("flex-1 min-w-0"),Pp=Ae("font-medium truncate",{variants:{size:{[R.sm]:"text-xs",[R.md]:"text-sm",[R.lg]:"text-sm",[R.xl]:"text-base"}},defaultVariants:{size:R.md}}),xp=Ae("text-muted-foreground truncate",{variants:{size:{[R.sm]:"text-[11px]",[R.md]:"text-xs",[R.lg]:"text-xs",[R.xl]:"text-sm"}},defaultVariants:{size:R.md}}),Mp=Ae("flex items-center gap-1 text-muted-foreground shrink-0",{variants:{size:{[R.sm]:"text-[11px]",[R.md]:"text-[11px]",[R.lg]:"text-xs",[R.xl]:"text-xs"}},defaultVariants:{size:R.md}}),Vn=Ae("flex flex-col items-center justify-center text-muted-foreground",{variants:{size:{[R.sm]:"py-6 min-h-20",[R.md]:"py-8 min-h-24",[R.lg]:"py-10 min-h-28",[R.xl]:"py-12 min-h-32"},state:{empty:"text-muted-foreground",loading:"text-muted-foreground",error:"text-destructive"}},defaultVariants:{size:R.md,state:"empty"}}),Xn=Ae("font-medium",{variants:{size:{[R.sm]:"text-xs",[R.md]:"text-sm",[R.lg]:"text-sm",[R.xl]:"text-base"}},defaultVariants:{size:R.md}}),Np=Ae("mt-1",{variants:{size:{[R.sm]:"text-[11px]",[R.md]:"text-xs",[R.lg]:"text-xs",[R.xl]:"text-sm"}},defaultVariants:{size:R.md}}),Lp=(e,t)=>{if(!t)return!0;let r=t.toLowerCase();return e.title.toLowerCase().includes(r)||(e.description?.toLowerCase().includes(r)??!1)||(e.keywords?.some((o)=>o.toLowerCase().includes(r))??!1)};function Oh(e,t){let r=Pt(null),o=Pt(null),n=Pt(null),i=Pt(!0),s=Pt(t);return yi(()=>{if(e)i.current=!0},[e]),Bh(()=>{let l=r.current,m=o.current,d=n.current;if(!(l&&m&&d))return;let c=m.scrollHeight,u=s.current!==t;if(s.current=t,i.current)l.style.transition="none",l.style.height=`${c}px`,d.style.transition="none",d.style.opacity="1",requestAnimationFrame(()=>{l.style.transition="",d.style.transition="",i.current=!1});else if(u)d.style.transition="none",d.style.opacity="0",l.style.height=`${c}px`,requestAnimationFrame(()=>{d.style.transition="opacity 200ms var(--motion-ease-emphasized)",d.style.opacity="1"});else l.style.height=`${c}px`}),{wrapperRef:r,contentRef:o,viewRef:n}}function Wh({action:e,size:t,isActive:r,isDisabled:o,isMac:n,onClick:i,renderItem:s,index:l}){let m=e.shortcut?Jn(e.shortcut,n):[],d=new Map,c=m.map((u)=>{let g=(d.get(u)??0)+1;return d.set(u,g),{token:u,key:`${u}-${g}`}});return $("div",{role:"option","aria-selected":r,"aria-disabled":o,tabIndex:o?-1:0,onClick:i,onKeyDown:(u)=>{if(u.key==="Enter"||u.key===" ")u.preventDefault(),i()},className:a(vp({size:t,selected:r,disabled:o})),children:s?s(e,{active:r,disabled:o,index:l}):$(Rp,{children:[e.icon&&$("span",{className:a(Tp({size:t,selected:r})),children:e.icon},void 0,!1,void 0,this),$("div",{className:a(hp()),children:[$("div",{className:a(Pp({size:t})),children:e.title},void 0,!1,void 0,this),e.description&&$("div",{className:a(xp({size:t})),children:e.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c.length>0&&$("div",{className:a(Mp({size:t})),children:c.map((u)=>$("kbd",{className:a(Zr({size:vi[t]})),children:u.token},u.key,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var zp=Ih(({className:e,open:t,onOpenChange:r,actions:o,onActionSelect:n,value:i,defaultValue:s="",onValueChange:l,placeholder:m="Search commands, pages, or actions...",size:d=R.md,status:c=Yn.idle,statusMessage:u,emptyText:g="No command found for this query.",hotkey:T,portal:b=!0,filterFn:h,renderItem:N,footer:v,...p},P)=>{let M=Pt(null),k=Pt(null),[H,B]=bi(s),[w,J]=bi(0),[Y,q]=bi(t),{isMac:ee}=So(),me=mp(Fh),X=ve(),Q=co(()=>T&&T.length>0?T.join("+"):null,[T]),A=co(()=>T?Jn(T,ee):[],[T,ee]),oe=co(()=>{let S=new Map;return A.map((ge)=>{let Le=(S.get(ge)??0)+1;return S.set(ge,Le),{token:ge,key:`${ge}-${Le}`}})},[A]);zo(Q??"",()=>r(!t),{enabled:!!Q});let z=i!==void 0?i:H,K=h??Lp,y=co(()=>o.filter((S)=>K(S,z)),[o,z,K]),x=co(()=>y.flatMap((S,ge)=>S.disabled?[]:[ge]),[y]),C=co(()=>{let S=new Map,ge=new Map,Le=0;for(let L of y){let D=L.group??"";if(!S.has(D))S.set(D,[]);S.get(D)?.push(L),ge.set(L,Le++)}return{groups:S,indexMap:ge}},[y]),ne=Pt(!1),_=Pt(t);if(_.current!==t)ne.current=!t,_.current=t;let Ce=Pt({query:z,status:c,statusMessage:u??null,filtered:y,grouped:C,activeIndex:w,emptyText:g});if(!ne.current)Ce.current={query:z,status:c,statusMessage:u??null,filtered:y,grouped:C,activeIndex:w,emptyText:g};let W=Ce.current,ie=W.status===Yn.loading?"loading":W.status===Yn.error?"error":W.filtered.length===0?"empty":"results",{wrapperRef:Rt,contentRef:at,viewRef:V}=Oh(t,ie);yi(()=>{if(t)J(0)},[t]),yi(()=>{if(t){q(!0);return}let S=setTimeout(()=>{q(!1)},X?0:Gh);return()=>{clearTimeout(S)}},[t,X]);let fe=t||Y,se=gi((S)=>{B(S.target.value),l?.(S.target.value),J(0)},[l]),Ne=gi((S)=>{k.current?.querySelectorAll('[role="option"]')[S]?.scrollIntoView({block:"nearest"})},[]),Ue=gi((S)=>{if(S.key==="ArrowDown"||S.key==="ArrowUp"){if(S.preventDefault(),x.length===0)return;let ge=x.indexOf(w),Le=S.key==="ArrowDown"?x[(ge+1)%x.length]:x[(ge-1+x.length)%x.length];if(Le!==void 0)J(Le),Ne(Le);return}if(S.key==="Enter"){S.preventDefault();let ge=y[w];if(ge&&!ge.disabled)n(ge,w)}},[w,x,y,n,Ne]),bt=$(Rp,{children:[$(Co,{forceMount:!0,"data-testid":"spotlight-overlay",className:a(dp()),onClick:()=>r(!1)},void 0,!1,void 0,this),$(Ua,{...p,ref:P,forceMount:!0,className:a(me?cp():up({size:d}),e),"aria-label":"Spotlight search","aria-describedby":void 0,onOpenAutoFocus:(S)=>{S.preventDefault(),M.current?.focus()},onCloseAutoFocus:(S)=>S.preventDefault(),onKeyDown:Ue,children:[$(vn,{className:"sr-only",children:"Spotlight search"},void 0,!1,void 0,this),me&&$("div",{className:"flex justify-center pt-2 pb-1",children:$("div",{className:"h-1 w-8 rounded-full bg-muted-foreground/30"},void 0,!1,void 0,this)},void 0,!1,void 0,this),$("div",{className:a(pp({size:d})),children:[$("svg",{className:a(gp({size:d})),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:$("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),$("input",{ref:M,type:"text",value:W.query,onChange:se,placeholder:m,"aria-label":"Search",className:a(fp({size:d}))},void 0,!1,void 0,this),!me&&(T?$("div",{className:"flex items-center gap-1",children:oe.map((S)=>$("kbd",{className:a(Zr({size:vi[d]})),children:S.token},S.key,!1,void 0,this))},void 0,!1,void 0,this):$("kbd",{className:a(Zr({size:vi[d]})),children:"ESC"},void 0,!1,void 0,this))]},void 0,!0,void 0,this),$("div",{ref:Rt,className:"overflow-hidden transition-[height] duration-200 ease-[var(--motion-ease-emphasized)] motion-reduce:transition-none",children:$("div",{ref:at,children:$("div",{ref:V,children:[ie==="loading"&&$("div",{className:a(Vn({size:d,state:"loading"})),children:[$(Ot,{size:"sm",className:"mb-2 text-muted-foreground"},void 0,!1,void 0,this),$("div",{className:a(Xn({size:d})),children:"Searching commands..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ie==="error"&&$("div",{className:a(Vn({size:d,state:"error"})),children:[$("div",{className:a(Xn({size:d})),children:"Search failed"},void 0,!1,void 0,this),W.statusMessage&&$("div",{className:a(Np({size:d})),children:W.statusMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ie==="empty"&&$("div",{className:a(Vn({size:d,state:"empty"})),children:$("div",{className:a(Xn({size:d})),children:W.emptyText},void 0,!1,void 0,this)},void 0,!1,void 0,this),ie==="results"&&$("div",{ref:k,role:"listbox","aria-label":"Search results",className:a(bp({size:d}),me&&"max-h-none min-h-0 flex-1"),children:Array.from(W.grouped.groups.entries()).map(([S,ge])=>$("div",{children:[S&&$("div",{className:a(yp({size:d})),children:S},void 0,!1,void 0,this),ge.map((Le)=>{let L=W.grouped.indexMap.get(Le)??0;return $(Wh,{action:Le,size:d,isActive:L===W.activeIndex,isDisabled:Le.disabled??!1,isMac:ee,index:L,onClick:()=>{if(!Le.disabled)n(Le,L)},renderItem:N},Le.id,!1,void 0,this)})]},S||"__ungrouped__",!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),v&&$("div",{className:"border-border border-t px-3 py-2",children:v},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);return $(Ro,{open:t,onOpenChange:r,children:fe?b?$(bn,{forceMount:!0,children:bt},void 0,!1,void 0,this):bt:null},void 0,!1,void 0,this)});zp.displayName="Spotlight";import{cva as Kh}from"class-variance-authority";import{forwardRef as _h}from"react";import{jsxDEV as er}from"react/jsx-dev-runtime";var rt={sm:"sm",md:"md",lg:"lg"},Lr={up:"up",down:"down",neutral:"neutral"},Cp=Kh("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] relative flex flex-col rounded-lg border border-border bg-card text-card-foreground shadow-sm transition-[color,background-color,border-color,box-shadow] duration-150 hover:shadow-md",{variants:{size:{[rt.sm]:"gap-1 p-3",[rt.md]:"gap-1.5 p-4",[rt.lg]:"gap-2 p-5"}},defaultVariants:{size:rt.md}}),Uh={[rt.sm]:"text-lg font-semibold",[rt.md]:"text-2xl font-bold",[rt.lg]:"text-3xl font-bold"},$h={[rt.sm]:"text-xs",[rt.md]:"text-sm",[rt.lg]:"text-base"},Yh={[Lr.up]:"text-success",[Lr.down]:"text-destructive",[Lr.neutral]:"text-muted-foreground"},Vh={[Lr.up]:"↑",[Lr.down]:"↓",[Lr.neutral]:"→"},Hp=_h(({className:e,size:t=rt.md,label:r,value:o,trend:n,trendValue:i,icon:s,...l},m)=>{let d=f(t);return er("div",{ref:m,className:a(Cp({size:d}),e),...l,children:[er("div",{className:"flex items-center justify-between",children:[er("span",{className:a("text-muted-foreground",$h[d]),children:r},void 0,!1,void 0,this),s&&er("span",{className:"text-muted-foreground/70","aria-hidden":"true",children:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this),er("div",{className:"flex items-baseline gap-2",children:[er("span",{className:a("text-foreground tracking-tight",Uh[d]),children:o},void 0,!1,void 0,this),n&&i&&er("span",{className:a("inline-flex items-center gap-0.5 font-medium text-xs",Yh[n]),children:[er("span",{"aria-hidden":"true",children:Vh[n]},void 0,!1,void 0,this),i]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Hp.displayName="StatCard";import{cva as zr}from"class-variance-authority";import{Check as Xh}from"lucide-react";import{forwardRef as Rr}from"react";import{jsxDEV as tr}from"react/jsx-dev-runtime";var wp=zr("flex w-full",{variants:{orientation:{horizontal:"flex-row items-start",vertical:"flex-col"}},defaultVariants:{orientation:"horizontal"}}),kp=zr("flex",{variants:{orientation:{horizontal:"flex-1 flex-col items-center",vertical:"gap-4 flex-row"}},defaultVariants:{orientation:"horizontal"}}),Ap=zr(["relative z-10 flex shrink-0 items-center justify-center rounded-full border-2 font-semibold","transition-[color,background-color,border-color,box-shadow] duration-200 ease-out"],{variants:{status:{incomplete:["border-border bg-card text-muted-foreground","shadow-[var(--shadow-xs)]"],current:["border-primary bg-primary text-primary-foreground","shadow-[var(--glow-brand-sm)]"],complete:["border-success/60 bg-success text-success-foreground","shadow-[var(--shadow-sm)]","[&>svg]:gs-step-check-animated"]},size:{sm:"h-8 w-8 text-xs",md:"h-10 w-10 text-sm",lg:"h-12 w-12 text-base",xl:"h-14 w-14 text-lg"},animated:{true:"gs-step-indicator-animated",false:""}},defaultVariants:{status:"incomplete",size:"md",animated:!0}}),Sp=zr("rounded-full transition-[background-color,opacity] duration-300 ease-out",{variants:{orientation:{horizontal:"mx-2 mt-5 h-1 flex-1",vertical:"ml-5 min-h-10 w-1"},status:{incomplete:"bg-border/60",complete:"bg-gradient-to-r from-primary to-success"},size:{sm:"opacity-80",md:"",lg:"opacity-95",xl:"opacity-100"},animated:{true:"",false:""}},compoundVariants:[{status:"complete",orientation:"horizontal",animated:!0,className:"gs-connector-fill-animated"},{status:"complete",orientation:"vertical",animated:!0,className:"gs-connector-fill-vertical-animated"}],defaultVariants:{orientation:"horizontal",status:"incomplete",size:"md",animated:!0}}),Ip=zr("flex flex-col",{variants:{orientation:{horizontal:"mt-3 items-center text-center",vertical:"flex-1 pb-8 last:pb-0"}},defaultVariants:{orientation:"horizontal"}}),Bp=zr("font-medium transition-colors duration-200 ease-out",{variants:{status:{incomplete:"text-muted-foreground",current:"text-foreground",complete:"text-foreground"},size:{sm:"text-sm",md:"text-sm",lg:"text-base",xl:"text-lg"}},defaultVariants:{status:"incomplete",size:"md"}}),Fp=zr("text-muted-foreground transition-colors duration-200 ease-out",{variants:{size:{sm:"text-sm",md:"text-xs",lg:"text-sm",xl:"text-base"}},defaultVariants:{size:"md"}});var Gp=Rr(({className:e,orientation:t="horizontal",activeStep:r,...o},n)=>{return tr("div",{ref:n,role:"group","aria-label":"Progress steps",className:a(wp({orientation:t}),e),"data-orientation":t,"data-active-step":r,...o},void 0,!1,void 0,this)});Gp.displayName="Stepper";var Op=Rr(({className:e,orientation:t="horizontal",isLast:r,isCurrent:o,...n},i)=>{return tr("div",{ref:i,className:a(kp({orientation:t}),e),"data-last":r,"aria-current":o?"step":void 0,...n},void 0,!1,void 0,this)});Op.displayName="Step";var Wp=Rr(({className:e,status:t="incomplete",size:r="md",icon:o,step:n,children:i,animated:s=!0,...l},m)=>{let d=f(r);return tr("div",{ref:m,className:a(Ap({status:t,size:d,animated:s}),e),"data-status":t,"aria-hidden":"true",...l,children:t==="complete"?o||tr(Xh,{className:"size-4",strokeWidth:3},void 0,!1,void 0,this):i||n},void 0,!1,void 0,this)});Wp.displayName="StepIndicator";var Kp=Rr(({className:e,orientation:t="horizontal",status:r="incomplete",size:o="md",animated:n=!0,...i},s)=>{let l=f(o);return tr("div",{ref:s,className:a(Sp({orientation:t,status:r,size:l,animated:n}),e),"data-status":r,...i},void 0,!1,void 0,this)});Kp.displayName="StepConnector";var _p=Rr(({className:e,orientation:t="horizontal",...r},o)=>{return tr("div",{ref:o,className:a(Ip({orientation:t}),e),...r},void 0,!1,void 0,this)});_p.displayName="StepContent";var Up=Rr(({className:e,status:t="incomplete",size:r="md",...o},n)=>{let i=f(r);return tr("h4",{ref:n,className:a(Bp({status:t,size:i}),e),...o},void 0,!1,void 0,this)});Up.displayName="StepTitle";var $p=Rr(({className:e,size:t="md",...r},o)=>{let n=f(t);return tr("p",{ref:o,className:a(Fp({size:n}),e),...r},void 0,!1,void 0,this)});$p.displayName="StepDescription";import*as qn from"@radix-ui/react-switch";import{cva as Jh}from"class-variance-authority";import{forwardRef as qh}from"react";import{jsxDEV as Yp}from"react/jsx-dev-runtime";var Ke={sm:"sm",md:"md",lg:"lg",xl:"xl"},po={default:"default",error:"error",success:"success"},Vp=Jh("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] relative inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent bg-input enabled:active:scale-[0.96] 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:bg-input/70",{variants:{size:{[Ke.sm]:"h-4.5 w-8",[Ke.md]:"h-5 w-9",[Ke.lg]:"h-6 w-11",[Ke.xl]:"h-7 w-[3.25rem]"},status:{[po.default]:"disabled:data-[state=checked]:bg-muted-foreground/40 enabled:data-[state=unchecked]:hover:bg-input/80 data-[state=checked]:bg-primary data-[state=checked]:hover:bg-primary/90",[po.error]:"bg-destructive/30 disabled:bg-destructive/25 disabled:data-[state=checked]:bg-destructive/50 enabled:data-[state=unchecked]:hover:bg-destructive/45 focus-visible:ring-destructive data-[state=checked]:bg-destructive data-[state=checked]:hover:bg-destructive/90",[po.success]:"disabled:bg-success/20 disabled:data-[state=checked]:bg-success/45 focus-visible:ring-success enabled:data-[state=unchecked]:hover:bg-input/80 data-[state=checked]:bg-success data-[state=checked]:hover:bg-success/90"}},defaultVariants:{size:Ke.md,status:po.default}}),Qh={[Ke.sm]:"h-3.5 w-3.5",[Ke.md]:"h-4 w-4",[Ke.lg]:"h-5 w-5",[Ke.xl]:"h-6 w-6"},Zh={[Ke.sm]:"data-[state=checked]:translate-x-3.5",[Ke.md]:"data-[state=checked]:translate-x-4",[Ke.lg]:"data-[state=checked]:translate-x-5",[Ke.xl]:"data-[state=checked]:translate-x-6"},Xp=qh(({className:e,size:t=Ke.md,status:r=po.default,checked:o,disabled:n,...i},s)=>{let l=f(t);return Yp(qn.Root,{ref:s,checked:o,disabled:n,className:a(Vp({size:l,status:r}),e),...i,children:Yp(qn.Thumb,{className:a("pointer-events-none block rounded-full bg-background shadow-sm transition-transform duration-150",Qh[l],Zh[l])},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Xp.displayName="Switch";import{cva as Bt}from"class-variance-authority";import{createContext as Eh,forwardRef as rr,useContext as Jp}from"react";import{jsxDEV as xt}from"react/jsx-dev-runtime";var Be={sm:"sm",md:"md",lg:"lg"},Ti=Eh(Be.md),qp=Bt("relative w-full overflow-auto rounded-[var(--radius)] border border-border bg-card shadow-[var(--shadow-sm)]"),Qp=Bt("w-full caption-bottom",{variants:{size:{[Be.sm]:"text-xs",[Be.md]:"text-sm",[Be.lg]:"text-sm"}},defaultVariants:{size:Be.md}}),Zp=Bt("sticky top-0 z-[1] [&_tr]:border-b [&_tr]:border-border [&_th]:bg-muted"),Ep=Bt("[&_tr:last-child]:border-0"),Dp=Bt("border-t border-border bg-muted font-medium text-muted-foreground [&>tr]:last:border-b-0"),jp=Bt("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] border-b border-border hover:bg-muted/50 data-[state=selected]:bg-primary/10"),ef=Bt("text-left align-middle font-semibold text-muted-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[Be.sm]:"h-8 px-2",[Be.md]:"h-10 px-3",[Be.lg]:"h-12 px-4"}},defaultVariants:{size:Be.md}}),tf=Bt("align-middle text-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[Be.sm]:"p-2",[Be.md]:"p-3",[Be.lg]:"p-4"}},defaultVariants:{size:Be.md}}),rf=Bt("mt-4 text-sm text-muted-foreground"),of=rr(({className:e,containerClassName:t,size:r=Be.md,...o},n)=>{let i=f(r)??Be.md;return xt(Ti.Provider,{value:i,children:xt("div",{className:a(qp(),t),children:xt("table",{ref:n,className:a(Qp({size:i}),e),...o},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});of.displayName="Table";var nf=rr(({className:e,...t},r)=>xt("thead",{ref:r,className:a(Zp(),e),...t},void 0,!1,void 0,this));nf.displayName="TableHeader";var af=rr(({className:e,...t},r)=>xt("tbody",{ref:r,className:a(Ep(),e),...t},void 0,!1,void 0,this));af.displayName="TableBody";var sf=rr(({className:e,...t},r)=>xt("tfoot",{ref:r,className:a(Dp(),e),...t},void 0,!1,void 0,this));sf.displayName="TableFooter";var lf=rr(({className:e,...t},r)=>xt("tr",{ref:r,className:a(jp(),e),...t},void 0,!1,void 0,this));lf.displayName="TableRow";var mf=rr(({className:e,size:t,...r},o)=>{let n=Jp(Ti);return xt("th",{ref:o,className:a(ef({size:t??n}),e),...r},void 0,!1,void 0,this)});mf.displayName="TableHead";var df=rr(({className:e,size:t,...r},o)=>{let n=Jp(Ti);return xt("td",{ref:o,className:a(tf({size:t??n}),e),...r},void 0,!1,void 0,this)});df.displayName="TableCell";var uf=rr(({className:e,...t},r)=>xt("caption",{ref:r,className:a(rf(),e),...t},void 0,!1,void 0,this));uf.displayName="TableCaption";import*as ft from"@radix-ui/react-tabs";import{cva as hi}from"class-variance-authority";import{forwardRef as Pi,useRef as cf}from"react";import{jsxDEV as Qn}from"react/jsx-dev-runtime";var or={sm:"sm",md:"md",lg:"lg"},pf=hi("relative inline-flex items-center justify-center rounded-[var(--radius)] border border-border bg-secondary p-1 text-muted-foreground",{variants:{size:{[or.sm]:"h-9 gap-0.5",[or.md]:"h-11 gap-1",[or.lg]:"h-12 gap-1"}},defaultVariants:{size:or.md}}),ff=hi("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] relative z-10 inline-flex items-center justify-center whitespace-nowrap rounded-[calc(var(--radius)-2px)] font-semibold leading-none text-muted-foreground outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:cursor-not-allowed disabled:text-muted-foreground/50 data-[state=active]:text-foreground data-[state=inactive]:hover:text-foreground/80",{variants:{size:{[or.sm]:"h-7 px-2.5 text-xs",[or.md]:"h-9 px-3 text-sm",[or.lg]:"h-10 px-4 text-sm"}},defaultVariants:{size:or.md}}),gf=hi("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),Dh=ft.Root,jh=["data-state","aria-selected"],bf=Pi(({className:e,size:t,children:r,...o},n)=>{let i=f(t),s=cf(null),l=St(n,s),m=cf(null);return Sn(s,m,{activeSelector:"button[role='tab'][data-state='active']",observeAttributes:jh}),Qn(ft.List,{ref:l,className:a(pf({size:i}),e),...o,children:[Qn("span",{ref:m,"aria-hidden":!0,"data-slot":"indicator",className:In,style:{opacity:0}},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)});bf.displayName=ft.List.displayName;var yf=Pi(({className:e,size:t,...r},o)=>{let n=f(t);return Qn(ft.Trigger,{ref:o,className:a(ff({size:n}),e),...r},void 0,!1,void 0,this)});yf.displayName=ft.Trigger.displayName;var vf=Pi(({className:e,...t},r)=>Qn(ft.Content,{ref:r,className:a(gf(),e),...t},void 0,!1,void 0,this));vf.displayName=ft.Content.displayName;import{cva as eP}from"class-variance-authority";import{forwardRef as tP}from"react";import{jsxDEV as rP}from"react/jsx-dev-runtime";var Qo={default:"default",error:"error",success:"success"},fo={sm:"sm",md:"md",lg:"lg",xl:"xl"},Tf=eP("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] w-full resize-y rounded-[var(--radius)] border border-input bg-background text-sm text-foreground outline-none placeholder:text-muted-foreground focus-visible:ring-2 disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground",{variants:{status:{[Qo.default]:"focus-visible:ring-primary",[Qo.error]:"border-destructive focus-visible:ring-destructive",[Qo.success]:"border-success focus-visible:ring-success"},size:{[fo.sm]:"min-h-[64px] px-2 py-1.5 text-xs",[fo.md]:"min-h-[96px] px-3 py-2",[fo.lg]:"min-h-[112px] px-4 py-2.5",[fo.xl]:"min-h-[128px] px-4 py-3 text-base"}},defaultVariants:{status:Qo.default,size:fo.md}}),hf=tP(({className:e,status:t=Qo.default,size:r=fo.md,fullWidth:o=!1,noResize:n=!1,disabled:i,...s},l)=>{let m=f(r);return rP("textarea",{ref:l,className:a(Tf({status:t,size:m}),i&&"bg-muted",o&&"w-full",n&&"resize-none",e),disabled:i,...s},void 0,!1,void 0,this)});hf.displayName="Textarea";import{cva as nr}from"class-variance-authority";import{forwardRef as ar}from"react";import{jsxDEV as Mt}from"react/jsx-dev-runtime";var Pf=nr("relative flex flex-col"),xf=nr(["group relative flex pb-8 last:pb-0","transition-opacity duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)]"],{variants:{align:{left:"flex-row gap-4",right:"flex-row-reverse gap-4"},animated:{true:"gs-timeline-item-animated",false:""}},defaultVariants:{align:"left",animated:!0}}),Mf=nr(["absolute bottom-0 w-0.5 rounded-full","transition-[background-color,opacity,height] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)]"],{variants:{variant:{default:"bg-border",success:"bg-gradient-to-b from-success/50 to-success/30",warning:"bg-gradient-to-b from-warning/50 to-warning/30",error:"bg-gradient-to-b from-destructive/50 to-destructive/30",info:"bg-gradient-to-b from-info/50 to-info/30",primary:"bg-gradient-to-b from-primary/50 to-primary/30"},size:{sm:"left-[7px] top-5",md:"left-[15px] top-9",lg:"left-[21px] top-12",xl:"left-[25px] top-14"},animated:{true:"gs-timeline-connector-animated",false:""}},defaultVariants:{variant:"default",size:"md",animated:!0}}),Nf=nr(["relative z-10 flex shrink-0 items-center justify-center rounded-full border-2","transition-[color,background-color,border-color,box-shadow] duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]","[&>svg]:shrink-0"],{variants:{variant:{default:["border-border bg-card text-muted-foreground","shadow-[var(--shadow-sm)]","hover:border-border hover:shadow-[var(--shadow-md)]"],success:["border-success/60 bg-success/10 text-success","shadow-[var(--shadow-success-sm)]","hover:bg-success/15 hover:border-success/70 hover:shadow-[var(--shadow-success-md)]"],warning:["border-warning/60 bg-warning/10 text-warning","shadow-[var(--shadow-warning-sm)]","hover:bg-warning/15 hover:border-warning/70 hover:shadow-[var(--shadow-warning-md)]"],error:["border-destructive/60 bg-destructive/10 text-destructive","shadow-[var(--shadow-destructive-sm)]","hover:bg-destructive/15 hover:border-destructive/70 hover:shadow-[var(--shadow-destructive-md)]"],info:["border-info/60 bg-info/10 text-info","shadow-[var(--shadow-info-sm)]","hover:bg-info/15 hover:border-info/70 hover:shadow-[var(--shadow-info-md)]"],primary:["border-primary/60 bg-primary/10 text-primary","shadow-[var(--shadow-primary-sm)]","hover:bg-primary/15 hover:border-primary/70 hover:shadow-[var(--shadow-primary-md)]"]},size:{sm:"h-4 w-4 [&>svg]:size-2",md:"h-8 w-8 [&>svg]:size-4",lg:"h-11 w-11 [&>svg]:size-5",xl:"h-14 w-14 [&>svg]:size-6"},pulse:{true:"gs-timeline-dot-pulse-enabled gs-timeline-dot-pulse",false:""},animated:{true:"gs-timeline-dot-animated",false:""}},defaultVariants:{variant:"default",size:"md",pulse:!1,animated:!0}}),Lf=nr("flex min-w-0 flex-col gap-1 pt-0.5 transition-opacity duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]"),zf=nr("font-semibold leading-tight text-foreground transition-colors duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]",{variants:{size:{sm:"text-[11px]",md:"text-base",lg:"text-lg",xl:"text-xl"}},defaultVariants:{size:"md"}}),Rf=nr("text-muted-foreground transition-colors duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]",{variants:{size:{sm:"text-[11px]",md:"text-sm",lg:"text-base",xl:"text-lg"}},defaultVariants:{size:"md"}}),Cf=nr("font-medium text-muted-foreground/70 transition-colors duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]",{variants:{size:{sm:"text-[11px]",md:"text-sm",lg:"text-base",xl:"text-base"}},defaultVariants:{size:"md"}});var Hf=ar(({className:e,...t},r)=>{return Mt("div",{ref:r,role:"list","aria-label":"Timeline events",className:a(Pf(),e),...t},void 0,!1,void 0,this)});Hf.displayName="Timeline";var wf=ar(({className:e,align:t,isLast:r,animated:o=!0,...n},i)=>{return Mt("div",{ref:i,role:"listitem",className:a(xf({align:t,animated:o}),e),"data-last":r,...n},void 0,!1,void 0,this)});wf.displayName="TimelineItem";var kf=ar(({className:e,variant:t,size:r,animated:o=!0,...n},i)=>{let s=f(r);return Mt("div",{ref:i,className:a(Mf({variant:t,size:s,animated:o}),e),...n},void 0,!1,void 0,this)});kf.displayName="TimelineConnector";var Af=ar(({className:e,variant:t,size:r,icon:o,children:n,pulse:i=!1,animated:s=!0,...l},m)=>{let d=f(r);return Mt("div",{ref:m,className:a(Nf({variant:t,size:d,pulse:i,animated:s}),e),"aria-hidden":"true",...l,children:o||n||Mt(oP,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Af.displayName="TimelineDot";var Sf=ar(({className:e,...t},r)=>{return Mt("div",{ref:r,className:a(Lf(),e),...t},void 0,!1,void 0,this)});Sf.displayName="TimelineContent";var If=ar(({className:e,size:t,...r},o)=>{let n=f(t);return Mt("h4",{ref:o,className:a(zf({size:n}),e),...r},void 0,!1,void 0,this)});If.displayName="TimelineTitle";var Bf=ar(({className:e,size:t,...r},o)=>{let n=f(t);return Mt("p",{ref:o,className:a(Rf({size:n}),e),...r},void 0,!1,void 0,this)});Bf.displayName="TimelineDescription";var Ff=ar(({className:e,size:t,...r},o)=>{let n=f(t);return Mt("time",{ref:o,className:a(Cf({size:n}),e),...r},void 0,!1,void 0,this)});Ff.displayName="TimelineTime";function oP(){return Mt("span",{className:"size-2 rounded-full bg-current"},void 0,!1,void 0,this)}import{cva as Gf}from"class-variance-authority";var go={default:"default",success:"success",info:"info",warning:"warning",error:"error"},ot={sm:"sm",md:"md",lg:"lg"},xi=Gf("pointer-events-auto relative flex w-full items-center overflow-hidden rounded-[var(--radius)] border shadow-[var(--shadow-md)]",{variants:{variant:{[go.default]:"border-border bg-card text-card-foreground",[go.success]:"border-success/30 bg-card text-card-foreground",[go.info]:"border-info/30 bg-card text-card-foreground",[go.warning]:"border-warning/30 bg-card text-card-foreground",[go.error]:"border-destructive/30 bg-card text-card-foreground"},size:{[ot.sm]:"gap-2 p-3",[ot.md]:"gap-3 p-4",[ot.lg]:"gap-3.5 p-5"}},defaultVariants:{variant:go.default,size:ot.md}}),Mi=Gf("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] inline-flex shrink-0 items-center justify-center rounded-[var(--radius)] border border-border bg-transparent font-medium text-foreground hover:bg-secondary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:cursor-not-allowed disabled:border-transparent disabled:bg-muted/40 disabled:text-muted-foreground/70",{variants:{size:{[ot.sm]:"h-6 px-2 text-xs",[ot.md]:"h-7 px-2.5 text-xs",[ot.lg]:"h-8 px-3 text-sm"}},defaultVariants:{size:ot.md}});import{AlertTriangle as cP,CheckCircle2 as pP,Info as $f,X as fP,XCircle as gP}from"lucide-react";import{forwardRef as bP,useCallback as Dn,useEffect as bo,useRef as Ci,useState as Hi}from"react";import{useSyncExternalStore as nP}from"react";var aP=5,Wf=5000,iP=500,Ni=0;function sP(){return Ni=(Ni+1)%Number.MAX_SAFE_INTEGER,`toast-${Ni}-${Date.now()}`}var Li=new Set,nt=[],Hr=new Map,Eo=new Map,Do=!1,Cr=new Map;function Zn(){for(let e of Li)e()}function Of(){return nt}function lP(e){return Li.add(e),()=>{Li.delete(e)}}function zi(e,t){if(Do){Cr.set(e,t);return}clearTimeout(Hr.get(e));let r=Date.now(),o=setTimeout(()=>{Hr.delete(e),Cr.delete(e),En(e)},t);Hr.set(e,o),Cr.set(e,t);let n=setInterval(()=>{let i=Date.now()-r,s=t-i;if(s<=0)clearInterval(n),Cr.delete(e);else Cr.set(e,s)},100)}function mP(e){clearTimeout(Eo.get(e));let t=xo()?0:iP,r=setTimeout(()=>{nt=nt.filter((o)=>o.id!==e),Eo.delete(e),Zn()},t);Eo.set(e,r)}function Kf(e){clearTimeout(Hr.get(e)),Hr.delete(e),Cr.delete(e)}function Zo(e){let t=e.id??sP(),r=e.duration===void 0?Wf:e.duration;if(nt.find((i)=>i.id===t)){if(nt=nt.map((i)=>i.id===t?{...i,...e,id:t,open:!0,createdAt:Date.now()}:i),clearTimeout(Eo.get(t)),Eo.delete(t),Kf(t),typeof r==="number")zi(t,r);return Zn(),t}if(nt=[{...e,id:t,variant:e.variant??"default",dismissible:e.dismissible??!0,open:!0,createdAt:Date.now()},...nt].slice(0,aP),typeof r==="number")zi(t,r);return Zn(),t}function En(e){Kf(e),nt=nt.map((t)=>t.id===e?{...t,open:!1}:t),Zn(),mP(e)}function _f(){for(let e of nt)En(e.id)}function dP(){if(Do)return;Do=!0;for(let[e,t]of Hr)clearTimeout(t),Hr.delete(e)}function uP(){if(!Do)return;Do=!1;for(let e of nt)if(e.open){if(e.duration===null)continue;let t=e.duration??Wf,r=Cr.get(e.id)??t;zi(e.id,r)}}var Uf=Object.assign((e)=>Zo(e),{success:(e,t)=>Zo({...t,variant:"success",title:e}),info:(e,t)=>Zo({...t,variant:"info",title:e}),warning:(e,t)=>Zo({...t,variant:"warning",title:e}),error:(e,t)=>Zo({...t,variant:"error",title:e}),dismiss:En,dismissAll:_f});function Ri(){return{toasts:nP(lP,Of,Of),toast:Uf,dismiss:En,dismissAll:_f,pauseAll:dP,resumeAll:uP}}import{jsxDEV as _e}from"react/jsx-dev-runtime";var Vf=10,Yf=0.05,yP=200,vP={"top-right":"top-4 right-4","top-left":"top-4 left-4","bottom-right":"bottom-4 right-4","bottom-left":"bottom-4 left-4","top-center":"top-4 left-1/2 -translate-x-1/2","bottom-center":"bottom-4 left-1/2 -translate-x-1/2"},TP={success:(e)=>_e(pP,{className:a("mt-0.5 shrink-0 text-success",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),info:(e)=>_e($f,{className:a("mt-0.5 shrink-0 text-info",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),warning:(e)=>_e(cP,{className:a("mt-0.5 shrink-0 text-warning",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),error:(e)=>_e(gP,{className:a("mt-0.5 shrink-0 text-destructive",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),default:(e)=>_e($f,{className:a("mt-0.5 shrink-0 text-muted-foreground",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this)};function hP(e,t,r,o,n){let i=e<o,s=r?n:e*Vf,l=r?1:i?1-e*Yf:1-o*Yf,m=i||r?1:0,d=t-e;return{offset:s,scale:l,opacity:m,zIndex:d}}var Xf=bP(({position:e="bottom-right",gap:t=12,visibleCount:r=3,size:o=ot.md,className:n,...i},s)=>{let{toasts:l,dismiss:m,pauseAll:d,resumeAll:c}=Ri(),u=ve(),g=f(o)??ot.md,[T,b]=Hi(!1),[h,N]=Hi({}),v=Ci(null),p=Ci(void 0),P=e.startsWith("bottom"),M=Dn((A)=>{if(v.current=A,typeof s==="function")s(A);else if(s)s.current=A},[s]),k=Dn(()=>{clearTimeout(p.current),b(!0),d()},[d]),H=Dn(()=>{clearTimeout(p.current),p.current=setTimeout(()=>{b(!1),c()},u?0:yP)},[u,c]);bo(()=>{return()=>clearTimeout(p.current)},[]);let B=Dn((A,oe)=>{N((z)=>{if(z[A]===oe)return z;return{...z,[A]:oe}})},[]);bo(()=>{let A=new Set(l.map((oe)=>oe.id));N((oe)=>{let z=!1,K={};for(let[y,x]of Object.entries(oe))if(A.has(y))K[y]=x;else z=!0;return z?K:oe})},[l]);let w=l.filter((A)=>A.open),J=new Map,Y=0;for(let[A,oe]of w.entries()){let z=h[oe.id]??0;J.set(oe.id,hP(A,w.length,T,r,Y)),Y+=z+t}let q=w[0],me=(q?h[q.id]??0:0)+Math.min(w.length-1,r-1)*Vf,X=Y-(w.length>0?t:0),Q=T?X:me;if(bo(()=>{let A=v.current;if(!A)return;A.style.setProperty("--gs-toast-stack-height",`${Math.max(Q,0)}px`)},[Q]),l.length===0)return null;return _e("ol",{ref:M,role:"region","aria-label":"Notifications",tabIndex:-1,onMouseEnter:k,onMouseLeave:H,className:a("pointer-events-auto fixed z-[100] h-[var(--gs-toast-stack-height,0px)] w-full max-w-[400px] outline-none transition-[height] duration-[var(--motion-duration-spring)] ease-[var(--motion-ease-emphasized)]",vP[e],n),...i,children:l.map((A)=>{let oe=!A.open,z=J.get(A.id);return _e(PP,{toast:A,layout:z??{offset:0,scale:1,opacity:0,zIndex:0},isClosed:oe,isBottom:P,size:g,onDismiss:m,onMeasure:B,reducedMotion:u},A.id,!1,void 0,this)})},void 0,!1,void 0,this)});Xf.displayName="Toaster";function PP({toast:e,layout:t,isClosed:r,isBottom:o,size:n,onDismiss:i,onMeasure:s,reducedMotion:l}){let m=Ci(null),[d,c]=Hi(!1);bo(()=>{if(l){c(!0);return}let h=requestAnimationFrame(()=>c(!0));return()=>cancelAnimationFrame(h)},[l]),bo(()=>{let h=m.current;if(!h)return;let N=new ResizeObserver((v)=>{for(let p of v){let P=p.borderBoxSize?.[0];if(P)s(e.id,P.blockSize)}});return N.observe(h),()=>N.disconnect()},[e.id,s]);let u=o?"bottom-0 left-0 right-0 origin-bottom":"top-0 left-0 right-0 origin-top",g,T,b;if(!d)g=`translateY(${o?80:-80}px) scale(0.9)`,T=0,b="false";else if(r)g=`translateY(${o?80:-80}px) scale(0.95)`,T=0,b="false";else g=`translateY(${o?-t.offset:t.offset}px) scale(${t.scale})`,T=t.opacity,b="true";return bo(()=>{let h=m.current;if(!h)return;h.style.setProperty("--gs-toast-transform",g),h.style.setProperty("--gs-toast-opacity",`${T}`),h.style.setProperty("--gs-toast-z-index",`${t.zIndex}`)},[t.zIndex,T,g]),_e("li",{ref:m,"data-state":e.open?"open":"closed","data-variant":e.variant,"data-interactive":b,className:a("absolute list-none transition-[transform,opacity] duration-[var(--motion-duration-spring)] ease-[var(--motion-ease-emphasized)] [opacity:var(--gs-toast-opacity,0)] [transform:var(--gs-toast-transform)] [z-index:var(--gs-toast-z-index,0)]","data-[interactive=false]:pointer-events-none data-[interactive=true]:pointer-events-auto",u),children:_e("div",{className:a(xi({variant:e.variant,size:n}),"w-full"),children:[TP[e.variant]?.(n),_e("div",{className:"flex-1 space-y-0.5",children:[e.title&&_e("p",{className:a("font-semibold leading-tight",n==="sm"?"text-xs":"text-sm"),children:e.title},void 0,!1,void 0,this),e.description&&_e("p",{className:a("text-muted-foreground leading-snug",n==="sm"?"text-xs":"text-sm"),children:e.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.action&&_e("button",{type:"button",className:a(Mi({size:n}),"mt-0.5"),onClick:e.action.onClick,"aria-label":e.action.altText,children:e.action.label},void 0,!1,void 0,this),e.dismissible!==!1&&_e("button",{type:"button",className:a("mt-0.5 shrink-0 rounded-[var(--radius)] p-1 text-muted-foreground transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",n==="sm"?"[&>svg]:size-3.5":"[&>svg]:size-4"),onClick:()=>i(e.id),"aria-label":"Dismiss",children:_e(fP,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}import*as Jf from"@radix-ui/react-toggle";import{cva as xP}from"class-variance-authority";import{forwardRef as MP}from"react";import{jsxDEV as NP}from"react/jsx-dev-runtime";var wi={default:"default",outline:"outline"},jn={sm:"sm",md:"md",lg:"lg"},ea=xP("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] inline-flex items-center justify-center gap-2 rounded-[var(--radius)] border border-transparent text-sm font-medium outline-none transition-[color,background-color,border-color] duration-150 hover:bg-muted hover:text-muted-foreground focus-visible:border-primary disabled:cursor-not-allowed disabled:pointer-events-none data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{[wi.default]:"bg-transparent disabled:bg-transparent disabled:text-foreground/50",[wi.outline]:"border-input bg-transparent hover:bg-accent hover:text-accent-foreground disabled:bg-transparent disabled:text-foreground/50 disabled:border-border/50"},size:{[jn.sm]:"h-7 px-1.5 min-w-7 text-xs",[jn.md]:"h-10 px-3 min-w-10",[jn.lg]:"h-11 px-5 min-w-11"}},defaultVariants:{variant:wi.default,size:jn.md}}),qf=MP(({className:e,variant:t,size:r,...o},n)=>{let i=f(r);return NP(Jf.Root,{ref:n,className:a(ea({variant:t,size:i}),e),...o},void 0,!1,void 0,this)});qf.displayName="Toggle";import*as ta from"@radix-ui/react-toggle-group";import{cva as LP}from"class-variance-authority";import{createContext as zP,forwardRef as Qf,useContext as RP}from"react";import{jsxDEV as ki}from"react/jsx-dev-runtime";var CP={default:"default",outline:"outline"},HP={sm:"sm",md:"md",lg:"lg"},Zf=LP("flex items-center justify-center gap-1"),Ef=zP({size:HP.md,variant:CP.default}),Df=Qf(({className:e,variant:t,size:r,children:o,...n},i)=>{let s=f(r);return ki(ta.Root,{ref:i,className:a(Zf(),e),...n,children:ki(Ef.Provider,{value:{variant:t,size:s},children:o},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Df.displayName="ToggleGroup";var jf=Qf(({className:e,children:t,variant:r,size:o,...n},i)=>{let s=RP(Ef),l=f(o);return ki(ta.Item,{ref:i,className:a(ea({variant:r??s.variant,size:l??s.size}),e),...n,children:t},void 0,!1,void 0,this)});jf.displayName="ToggleGroupItem";import{cva as eg}from"class-variance-authority";import{forwardRef as ra}from"react";import{jsxDEV as oa}from"react/jsx-dev-runtime";var gt={sm:"sm",md:"md",lg:"lg"},tg=eg("flex items-center border-b border-border bg-secondary",{variants:{size:{[gt.sm]:"gap-1.5 px-3 py-1.5",[gt.md]:"gap-2 px-4 py-2",[gt.lg]:"gap-3 px-5 py-2.5"}},defaultVariants:{size:gt.md}}),rg=ra(({className:e,size:t=gt.md,...r},o)=>{let n=f(t);return oa("div",{ref:o,role:"toolbar",className:a(tg({size:n}),e),...r},void 0,!1,void 0,this)});rg.displayName="Toolbar";var og=eg("flex items-center",{variants:{size:{[gt.sm]:"gap-1",[gt.md]:"gap-1.5",[gt.lg]:"gap-2"}},defaultVariants:{size:gt.md}}),ng=ra(({className:e,size:t=gt.md,...r},o)=>{let n=f(t);return oa("div",{ref:o,role:"group",className:a(og({size:n}),e),...r},void 0,!1,void 0,this)});ng.displayName="ToolbarGroup";var ag=ra(({className:e,...t},r)=>{return oa("div",{ref:r,role:"none",className:a("h-5 w-px shrink-0 bg-border",e),...t},void 0,!1,void 0,this)});ag.displayName="ToolbarSeparator";var ig=ra(({className:e,...t},r)=>{return oa("div",{ref:r,className:a("flex-1",e),...t},void 0,!1,void 0,this)});ig.displayName="ToolbarSpacer";import*as Nt from"@radix-ui/react-tooltip";import{cva as wP}from"class-variance-authority";import{createContext as kP,forwardRef as sg,useContext as lg}from"react";import{jsxDEV as yo}from"react/jsx-dev-runtime";var mg=({delayDuration:e,skipDelayDuration:t,...r})=>{let o=ve();return yo(Nt.Provider,{delayDuration:o?0:e,skipDelayDuration:o?0:t,...r},void 0,!1,void 0,this)};mg.displayName="TooltipProvider";var Ai=kP(!1),dg=({persistOnClick:e=!1,children:t,delayDuration:r,...o})=>{let n=ve();return yo(Ai.Provider,{value:e,children:yo(Nt.Root,{delayDuration:n?0:r,...o,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)};dg.displayName="Tooltip";var ug=sg(({onClick:e,onPointerDown:t,...r},o)=>{let n=lg(Ai);return yo(Nt.Trigger,{ref:o,onClick:n?(i)=>{i.preventDefault(),e?.(i)}:e,onPointerDown:n?(i)=>{i.preventDefault(),t?.(i)}:t,...r},void 0,!1,void 0,this)});ug.displayName="TooltipTrigger";var wr={sm:I.sm,md:I.md,lg:I.lg,xl:I.xl},cg=wP("z-50 overflow-hidden rounded-[var(--radius)] border border-primary/20 bg-primary text-primary-foreground shadow-[var(--shadow-md)] gs-float-content origin-[var(--radix-tooltip-content-transform-origin)]",{variants:{size:{[wr.sm]:"px-2 py-1 text-xs",[wr.md]:"px-3 py-1.5 text-xs",[wr.lg]:"px-4 py-2 text-sm",[wr.xl]:"px-5 py-2.5 text-sm"}},defaultVariants:{size:wr.md}}),pg=sg(({className:e,sideOffset:t=it,onPointerDownOutside:r,size:o=wr.md,portal:n=le,portalContainer:i,...s},l)=>{let m=lg(Ai),d=f(o),c=yo(Nt.Content,{ref:l,sideOffset:t,className:a(cg({size:d}),e),onPointerDownOutside:m?(u)=>{u.preventDefault(),r?.(u)}:r,...s},void 0,!1,void 0,this);if(!n)return c;return yo(Nt.Portal,{container:i??void 0,children:c},void 0,!1,void 0,this)});pg.displayName="TooltipContent";import{createContext as AP,useCallback as ir,useContext as SP,useEffect as jo,useInsertionEffect as IP,useLayoutEffect as BP,useMemo as na,useRef as sr,useState as fg}from"react";import{jsxDEV as OP}from"react/jsx-dev-runtime";var FP=typeof window<"u"?BP:jo,GP=typeof window<"u"?IP:jo,Ii=AP(null);function aa(e,t){return e.theme===t.theme&&e.colorScheme===t.colorScheme}var kr=({children:e,value:t,initialState:r,onChange:o,onStateChange:n,transformState:i,readState:s,writeState:l,syncWithSystem:m=!0,enableTransition:d=!1,transitionDuration:c,defaultTheme:u,defaultColorScheme:g,themes:T,attribute:b,colorSchemeAttribute:h,darkClassName:N,storage:v})=>{let p=na(()=>vo({defaultTheme:u,defaultColorScheme:g,themes:T,attribute:b,colorSchemeAttribute:h,darkClassName:N,storage:v}),[u,g,T,b,h,N,v]),[P,M]=fg(()=>Lt(typeof window<"u"?ia(p)??r:r,p)),[k,H]=fg(da),w=na(()=>t?Lt(t,p):null,[t,p])??P,J=na(()=>({...w,resolvedColorScheme:Si(w.colorScheme,k)}),[w,k]),Y=t!==void 0,q=sr(w);q.current=w;let ee=sr(!1),me=sr(!1),X=sr(!1),Q=sr(w),A=sr(null),oe=sr(d);oe.current=d;let z=sr(c);z.current=c;let K=ir((V)=>{return la(V)},[]),y=ir((V)=>{return ia(V)},[]),x=ir((V,fe)=>{ma(V,fe)},[]),C=s??K,ne=l??x;jo(()=>{if(!m||typeof window>"u"||typeof window.matchMedia!=="function")return;let V=window.matchMedia("(prefers-color-scheme: dark)"),fe=()=>{H(V.matches?zt.dark:zt.light)};return fe(),V.addEventListener("change",fe),()=>V.removeEventListener("change",fe)},[m]),jo(()=>{if(Y)return;M((V)=>{let fe=Lt(V,p);return aa(V,fe)?V:fe})},[p,Y]),FP(()=>{if(Y||ee.current)return;ee.current=!0;let V=C(p)??y(p);if(!V)return;let fe=q.current,se=Lt(V,p),Ne={reason:"hydrate",previousState:fe},Ue=i?Lt(i(se,Ne),p):se;if(aa(fe,Ue))return;A.current=Ne,M(Ue),o?.(Ue,Ne),n?.(Ue,Ne)},[p,Y,o,n,y,C,i]),GP(()=>{if(typeof document>"u")return;let V=!X.current;if(X.current=!0,!V&&oe.current&&!xo()){let se=z.current??200,Ne=document.createElement("style");Ne.setAttribute("data-gs-theme-transition",""),Ne.textContent=`*, *::before, *::after { transition: color ${se}ms ease, background-color ${se}ms ease, border-color ${se}ms ease, box-shadow ${se}ms ease, fill ${se}ms ease, stroke ${se}ms ease !important; }`,document.head.appendChild(Ne),sa(document.documentElement,J,p);let Ue=requestAnimationFrame(()=>{setTimeout(()=>Ne.remove(),se)});return()=>{cancelAnimationFrame(Ue),Ne.remove()}}sa(document.documentElement,J,p);return},[p,J]),jo(()=>{if(typeof window>"u")return;if(!me.current){me.current=!0,Q.current=w;return}let V=Q.current;if(aa(V,w))return;let fe=A.current??{reason:"set-state",previousState:V};A.current=null,ne(w,p,fe),Q.current=w},[p,w,ne]);let _=ir((V,fe)=>{let se=q.current,Ne=typeof V==="function"?V(se):V,Ue=Lt({theme:Ne.theme??se.theme,colorScheme:Ne.colorScheme??se.colorScheme},p),bt={reason:fe,previousState:se},S=i?Lt(i(Ue,bt),p):Ue;if(aa(se,S))return;if(A.current=bt,!Y)M(S);o?.(S,bt),n?.(S,bt)},[p,Y,o,n,i]),Ce=ir((V)=>{_(V,"set-state")},[_]),W=ir((V)=>{_({theme:V},"set-theme")},[_]),ie=ir((V)=>{_({colorScheme:V},"set-color-scheme")},[_]),Rt=ir(()=>{let V=J.resolvedColorScheme===zt.dark?zt.light:zt.dark;_({colorScheme:V},"toggle-color-scheme")},[J.resolvedColorScheme,_]),at=na(()=>({theme:w.theme,colorScheme:w.colorScheme,resolvedColorScheme:J.resolvedColorScheme,state:w,resolvedState:J,contract:p,themes:p.themes,setTheme:W,setColorScheme:ie,setState:Ce,toggleColorScheme:Rt}),[w,J,p,W,ie,Ce,Rt]);return OP(Ii.Provider,{value:at,children:e},void 0,!1,void 0,this)};kr.displayName="ThemeProvider";var ua=()=>{let e=SP(Ii);if(!e)throw Error("useTheme must be used within a ThemeProvider");return e};import{jsxDEV as ca}from"react/jsx-dev-runtime";function fa(e){return typeof e==="object"&&e!==null}function Ft(e){return typeof e==="string"&&e.trim().length>0}function gg(e){if(!fa(e))return!1;return Object.values(e).every(Ft)}function yg(e){if(!fa(e))return!1;if(!gg(e.light))return!1;if(e.dark===void 0)return!0;return gg(e.dark)}function vg(e){return fa(e)&&Ft(e.cssText)}function WP(e){return fa(e)&&Ft(e.theme)}function Bi(e){return Error(`Invalid theme registry definition: ${e}`)}function bg(e){let t=new Set,r=[];for(let o of e){if(!Ft(o)||t.has(o))continue;t.add(o),r.push(o)}return r}function KP(e){return e.filter(Ft).join(`
|
|
4
|
+
`]},`line-${String(p)}`,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});hl.displayName="CodeBlock";import*as Vr from"@radix-ui/react-collapsible";import{cva as py}from"class-variance-authority";import{forwardRef as fy}from"react";import{jsxDEV as yy}from"react/jsx-dev-runtime";var Pl=py("gs-collapsible-content overflow-hidden"),gy=Vr.Root,by=Vr.CollapsibleTrigger,xl=fy(({className:e,...t},r)=>yy(Vr.CollapsibleContent,{ref:r,className:a(Pl(),e),...t},void 0,!1,void 0,this));xl.displayName="CollapsibleContent";import*as Yt from"@radix-ui/react-dialog";import{cva as mt}from"class-variance-authority";import{createContext as hy,forwardRef as vt,useCallback as Nl,useContext as Py,useId as xy,useLayoutEffect as My,useMemo as Ny,useState as Oa}from"react";import{useCallback as vy,useEffect as Ty,useRef as Ml}from"react";function zo(e,t,r={}){let{enabled:o=!0,preventDefault:n=!0,stopPropagation:i=!1,target:s="global"}=r,l=Ml(t);l.current=t;let m=Ml([]),d=Array.isArray(e)?e:[e];m.current=d.map((u)=>({combo:u,def:Fa(u)}));let c=vy((u)=>{if(!o)return;for(let{combo:g,def:T}of m.current)if(Ga(u,T)){if(n)u.preventDefault();if(i)u.stopPropagation();l.current(u,g);return}},[o,n,i]);Ty(()=>{if(!o)return;let u=s==="global"?document:s.current;if(!u)return;return u.addEventListener("keydown",c),()=>{u.removeEventListener("keydown",c)}},[o,c,s])}import{jsxDEV as he,Fragment as zy}from"react/jsx-dev-runtime";var un={sm:I.sm,md:I.md,lg:I.lg},Ll=mt(["gs-dialog-content fixed left-1/2 top-1/2 z-50","w-full border border-border rounded-xl bg-background","overflow-hidden shadow-[var(--shadow-xl)]"],{variants:{size:{[un.sm]:"max-w-sm",[un.md]:"max-w-lg",[un.lg]:"max-w-2xl"}},defaultVariants:{size:un.md}}),zl=mt(["gs-dialog-overlay fixed inset-0 z-50 bg-black/50 backdrop-blur-sm"]),Rl=mt(["flex h-12 w-full bg-transparent px-4 py-3","text-base text-foreground placeholder:text-muted-foreground","border-b border-border","focus:outline-none","disabled:cursor-not-allowed disabled:border-transparent disabled:bg-muted/40 disabled:text-muted-foreground/70"]),Cl=mt(["max-h-[300px] overflow-y-auto overflow-x-hidden p-2"]),Hl=mt(["py-6 text-center text-sm text-muted-foreground"]),wl=mt(["overflow-hidden"]),kl=mt(["px-2 py-1.5 text-xs font-medium text-muted-foreground"]),cn={default:"default",danger:"danger"},Al=mt(["relative flex items-center gap-2 rounded-lg px-2 py-2","text-sm cursor-pointer select-none","outline-none transition-none","data-[disabled=true]:pointer-events-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:border-transparent data-[disabled=true]:bg-muted/40 data-[disabled=true]:text-muted-foreground/70"],{variants:{selected:{true:"bg-primary/10 text-primary",false:"hover:bg-accent hover:text-accent-foreground"},variant:{[cn.default]:"text-foreground",[cn.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{selected:!1,variant:cn.default}}),Bl=mt(["-mx-1 my-1 h-px bg-border"]),Il=mt(["ml-auto text-xs tracking-widest text-muted-foreground"]),Sl=mt(["flex items-center justify-center py-6"]),Fl=hy(null),pn=()=>{let e=Py(Fl);if(!e)throw Error("useCommand must be used within a Command");return e},Wa=vt(({className:e,children:t,loop:r=!0,...o},n)=>{let[i,s]=Oa(""),[l,m]=Oa(0),[d,c]=Oa({}),u=Nl((b,h)=>{c((N)=>{if(N[b]===h)return N;return{...N,[b]:h}})},[]),g=Nl((b)=>{c((h)=>{if(!(b in h))return h;let N={...h};return delete N[b],N})},[]),T=Ny(()=>{return Object.values(d).filter(Boolean).length},[d]);return he(Fl.Provider,{value:{search:i,setSearch:s,selectedIndex:l,setSelectedIndex:m,visibleItemsCount:T,setItemVisible:u,removeItem:g},children:he("div",{ref:n,className:a("flex flex-col overflow-hidden rounded-xl bg-card",e),...o,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Wa.displayName="Command";var Gl=vt(({children:e,size:t,showOverlay:r=!0,portal:o=le,portalContainer:n,forceMount:i=!1,...s},l)=>{let m=he(zy,{children:[r?he(Yt.Overlay,{forceMount:i?!0:void 0,className:a(zl())},void 0,!1,void 0,this):null,he(Yt.Content,{ref:l,forceMount:i?!0:void 0,className:a(Ll({size:t})),children:he(Wa,{children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return he(Yt.Root,{...s,children:o?he(Yt.Portal,{forceMount:i?!0:void 0,container:n??void 0,children:m},void 0,!1,void 0,this):m},void 0,!1,void 0,this)});Gl.displayName="CommandDialog";var Ol=vt(({className:e,icon:t,...r},o)=>{let{search:n,setSearch:i,setSelectedIndex:s}=pn();return he("div",{className:"flex items-center border-border border-b px-3",children:[t&&he("span",{className:"mr-2 shrink-0 text-muted-foreground",children:t},void 0,!1,void 0,this),he("input",{ref:o,value:n,onChange:(l)=>{i(l.target.value),s(0)},className:a(Rl(),e),...r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Ol.displayName="CommandInput";var Wl=vt(({className:e,children:t,...r},o)=>{return he("div",{ref:o,className:a(Cl(),e),...r,children:t},void 0,!1,void 0,this)});Wl.displayName="CommandList";var Kl=vt(({className:e,children:t="No results found.",...r},o)=>{let{visibleItemsCount:n}=pn();if(n>0)return null;return he("div",{ref:o,className:a(Hl(),e),...r,children:t},void 0,!1,void 0,this)});Kl.displayName="CommandEmpty";var _l=vt(({className:e,heading:t,children:r,...o},n)=>{return he("div",{ref:n,className:a(wl(),e),...o,children:[t&&he("div",{className:a(kl()),children:t},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)});_l.displayName="CommandGroup";var Ul=vt(({className:e,disabled:t,selected:r=!1,onSelect:o,children:n,keywords:i,variant:s,...l},m)=>{let{search:d,removeItem:c,setItemVisible:u}=pn(),g=xy(),b=(()=>{if(!d)return!0;let h=d.toLowerCase();if((typeof n==="string"?n.toLowerCase():"").includes(h))return!0;if(i?.some((v)=>v.toLowerCase().includes(h)))return!0;return!1})();if(My(()=>{return u(g,b),()=>{c(g)}},[b,g,c,u]),!b)return null;return he("div",{ref:m,role:"option","aria-selected":r,"aria-disabled":t,"data-disabled":t,"data-selected":r,onClick:()=>!t&&o?.(),onKeyDown:(h)=>{if(h.key==="Enter"&&!t)h.preventDefault(),o?.()},tabIndex:t?-1:0,className:a(Al({selected:r,variant:s}),e),...l,children:n},void 0,!1,void 0,this)});Ul.displayName="CommandItem";var $l=vt(({className:e,...t},r)=>{return he("div",{ref:r,className:a(Bl(),e),...t},void 0,!1,void 0,this)});$l.displayName="CommandSeparator";var Yl=vt(({className:e,children:t,...r},o)=>{return he("span",{ref:o,className:a(Il(),e),...r,children:t},void 0,!1,void 0,this)});Yl.displayName="CommandShortcut";var Vl=vt(({className:e,children:t,...r},o)=>{return he("div",{ref:o,className:a(Sl(),e),...r,children:t},void 0,!1,void 0,this)});Vl.displayName="CommandLoading";var Ly=({key:e,modifier:t="meta",callback:r})=>{zo(`${t}+${e}`,r)};import*as F from"@radix-ui/react-context-menu";import{cva as ur}from"class-variance-authority";import{Check as Ry,ChevronRight as Cy,Circle as Hy}from"lucide-react";import{createContext as Xl,forwardRef as Vt,useContext as cr}from"react";import{jsxDEV as be}from"react/jsx-dev-runtime";var Z={sm:I.sm,md:I.md,lg:I.lg},fn={default:"default",danger:"danger"},pr=Xl(Z.md),Jl=Xl(void 0),Ka=ur("z-50 min-w-[8rem] overflow-hidden rounded-[var(--radius)] border border-border/70 bg-popover p-1 text-popover-foreground shadow-[var(--shadow-md)] gs-float-content origin-[var(--radix-context-menu-content-transform-origin)]"),_a=ur("relative flex cursor-pointer select-none items-center rounded-md outline-none transition-none data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{size:{[Z.sm]:"h-7 gap-1.5 px-2 text-xs [&_svg]:size-3.5",[Z.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[Z.lg]:"h-9 gap-2 px-2.5 text-sm [&_svg]:size-4"},variant:{[fn.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[fn.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{size:Z.md,variant:fn.default}}),ql=ur("relative flex cursor-pointer select-none items-center rounded-md outline-none transition-none hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed",{variants:{size:{[Z.sm]:"h-7 pl-7 pr-2 text-xs",[Z.md]:"h-8 pl-8 pr-2 text-sm",[Z.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:Z.md}}),Ql=ur("relative flex cursor-pointer select-none items-center rounded-md outline-none transition-none hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed",{variants:{size:{[Z.sm]:"h-7 pl-7 pr-2 text-xs",[Z.md]:"h-8 pl-8 pr-2 text-sm",[Z.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:Z.md}}),Zl=ur("font-semibold text-muted-foreground",{variants:{size:{[Z.sm]:"px-2 py-1 text-[11px]",[Z.md]:"px-2 py-1.5 text-xs",[Z.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:Z.md}}),El=ur("-mx-1 my-1 h-px bg-border/50"),Dl=ur("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[Z.sm]:"text-[11px]",[Z.md]:"text-xs",[Z.lg]:"text-xs"}},defaultVariants:{size:Z.md}}),jl={[Z.sm]:"absolute left-2 flex size-3.5 items-center justify-center",[Z.md]:"absolute left-2 flex size-3.5 items-center justify-center",[Z.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},wy={[Z.sm]:"size-3",[Z.md]:"size-3.5",[Z.lg]:"size-4"},ky={[Z.sm]:"size-1.5 fill-current",[Z.md]:"size-2 fill-current",[Z.lg]:"size-2.5 fill-current"},em=({size:e,...t})=>{let r=f(e??Z.md),o=e===void 0?void 0:r;return be(Jl.Provider,{value:o,children:be(F.Root,{...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)};em.displayName=F.Root.displayName;var Ay=F.Trigger,By=F.Group,Iy=F.Portal,Sy=F.Sub,Fy=F.RadioGroup,tm=Vt(({className:e,inset:t,children:r,...o},n)=>{let i=cr(pr),s=f(i);return be(F.SubTrigger,{ref:n,className:a(_a({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,be(Cy,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});tm.displayName=F.SubTrigger.displayName;var rm=Vt(({className:e,sideOffset:t=it,portal:r=le,portalContainer:o,...n},i)=>{let s=be(F.SubContent,{ref:i,sideOffset:t,className:a(Ka(),e),...n},void 0,!1,void 0,this);if(!r)return s;return be(F.Portal,{container:o??void 0,children:s},void 0,!1,void 0,this)});rm.displayName=F.SubContent.displayName;var om=Vt(({className:e,size:t,portal:r=le,portalContainer:o,...n},i)=>{let s=cr(Jl),l=f(t??s??Z.md),m=be(F.Content,{ref:i,className:a(Ka(),e),...n},void 0,!1,void 0,this);return be(pr.Provider,{value:l,children:r?be(F.Portal,{container:o??void 0,children:m},void 0,!1,void 0,this):m},void 0,!1,void 0,this)});om.displayName=F.Content.displayName;var nm=Vt(({className:e,inset:t,variant:r,...o},n)=>{let i=cr(pr),s=f(i);return be(F.Item,{ref:n,className:a(_a({size:s,variant:r}),t&&"pl-8",e),...o},void 0,!1,void 0,this)});nm.displayName=F.Item.displayName;var am=Vt(({className:e,children:t,checked:r,...o},n)=>{let i=cr(pr),s=f(i)??Z.md;return be(F.CheckboxItem,{ref:n,className:a(ql({size:s}),e),checked:r,...o,children:[be("span",{className:jl[s],children:be(F.ItemIndicator,{children:be(Ry,{className:wy[s]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),t]},void 0,!0,void 0,this)});am.displayName=F.CheckboxItem.displayName;var im=Vt(({className:e,children:t,...r},o)=>{let n=cr(pr),i=f(n)??Z.md;return be(F.RadioItem,{ref:o,className:a(Ql({size:i}),e),...r,children:[be("span",{className:jl[i],children:be(F.ItemIndicator,{children:be(Hy,{className:ky[i]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),t]},void 0,!0,void 0,this)});im.displayName=F.RadioItem.displayName;var sm=Vt(({className:e,inset:t,...r},o)=>{let n=cr(pr),i=f(n);return be(F.Label,{ref:o,className:a(Zl({size:i}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});sm.displayName=F.Label.displayName;var lm=Vt(({className:e,...t},r)=>be(F.Separator,{ref:r,className:a(El(),e),...t},void 0,!1,void 0,this));lm.displayName=F.Separator.displayName;var mm=({className:e,...t})=>{let r=cr(pr),o=f(r);return be("span",{className:a(Dl({size:o}),e),...t},void 0,!1,void 0,this)};mm.displayName="ContextMenuShortcut";import*as Re from"@radix-ui/react-dialog";import{cva as Gy}from"class-variance-authority";import{X as Oy}from"lucide-react";import{createContext as Wy,forwardRef as gn,useCallback as Ky,useContext as _y,useEffect as Uy,useState as dm}from"react";import{jsxDEV as $e,Fragment as Xy}from"react/jsx-dev-runtime";var Xt={sm:I.sm,md:I.md,lg:I.lg,xl:I.xl,full:"full"},$y=160,um=Wy(!1),Ro=({children:e,open:t,defaultOpen:r=!1,onOpenChange:o,...n})=>{let[i,s]=dm(r),l=t!==void 0,m=l?t:i,d=Ky((c)=>{if(!l)s(c);o?.(c)},[l,o]);return $e(um.Provider,{value:m,children:$e(Re.Root,{open:m,onOpenChange:d,...n,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},Yy=Re.Trigger,bn=Re.Portal,Vy=Re.Close,Ua=Re.Content,Co=gn(({className:e,...t},r)=>$e(Re.Overlay,{ref:r,className:a("gs-dialog-overlay",Kt,e),...t},void 0,!1,void 0,this));Co.displayName="DialogOverlay";var cm=Gy("gs-dialog-content fixed left-1/2 top-1/2 z-50 grid w-full gap-4 rounded-[var(--radius)] border border-border bg-card p-6 text-foreground shadow-[var(--shadow-xl)]",{variants:{size:{[Xt.sm]:"max-w-sm",[Xt.md]:"max-w-md",[Xt.lg]:"max-w-lg",[Xt.xl]:"max-w-xl",[Xt.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:Xt.md}}),yn=gn(({className:e,children:t,size:r=Xt.md,showClose:o=!0,showOverlay:n=!0,portal:i=le,portalContainer:s,forceMount:l=!1,...m},d)=>{let c=_y(um),[u,g]=dm(l||c),T=f(r),b=ve();if(Uy(()=>{if(l||c){g(!0);return}let v=setTimeout(()=>{g(!1)},b?0:$y);return()=>{clearTimeout(v)}},[l,c,b]),!(l||c||u))return null;let N=$e(Xy,{children:[n?$e(Co,{forceMount:!0},void 0,!1,void 0,this):null,$e(Re.Content,{ref:d,forceMount:!0,className:a(cm({size:T}),e),...m,children:[t,o&&$e(Re.Close,{className:on,children:[$e(Oy,{className:"size-4"},void 0,!1,void 0,this),$e("span",{className:"sr-only",children:"Close"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);if(!i)return N;return $e(bn,{forceMount:!0,container:s??void 0,children:N},void 0,!1,void 0,this)});yn.displayName="DialogContent";var pm=({className:e,...t})=>$e("div",{className:a("flex flex-col space-y-1.5 text-center sm:text-left",e),...t},void 0,!1,void 0,this);pm.displayName="DialogHeader";var fm=({className:e,...t})=>$e("div",{className:a("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);fm.displayName="DialogFooter";var vn=gn(({className:e,...t},r)=>$e(Re.Title,{ref:r,className:a("font-semibold text-lg leading-none tracking-tight",e),...t},void 0,!1,void 0,this));vn.displayName="DialogTitle";var gm=gn(({className:e,...t},r)=>$e(Re.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));gm.displayName="DialogDescription";import{cva as Ya}from"class-variance-authority";import{X as Jy}from"lucide-react";import{forwardRef as Tn}from"react";import{Drawer as Tt}from"vaul";import{jsxDEV as we}from"react/jsx-dev-runtime";var Ee={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},qy={[Ee.sm]:"sm:max-w-sm",[Ee.md]:"sm:max-w-md",[Ee.lg]:"sm:max-w-lg",[Ee.xl]:"sm:max-w-xl",[Ee.full]:"sm:max-w-full"},Qy={[Ee.sm]:"sm:max-h-[30vh]",[Ee.md]:"sm:max-h-[50vh]",[Ee.lg]:"sm:max-h-[70vh]",[Ee.xl]:"sm:max-h-[85vh]",[Ee.full]:"sm:max-h-full"},vm=Ya(a("gs-sheet-overlay",Kt)),Tm=Ya(["group/drawer-content fixed z-50 flex h-auto flex-col border border-border bg-card shadow-[var(--shadow-xl)]","data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=top]:border-t-0","data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=bottom]:border-b-0","data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:h-full data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-r-0","data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:h-full data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-l-0"]),$a=Ya("shrink-0 rounded-full bg-muted-foreground/25 transition-colors duration-150 hover:bg-muted-foreground/40",{variants:{direction:{top:"h-1.5 w-[60px]",bottom:"h-1.5 w-[60px]",left:"h-[60px] w-1.5",right:"h-[60px] w-1.5"}},defaultVariants:{direction:"bottom"}}),bm={top:"flex justify-center pb-2 pt-4",bottom:"flex justify-center pt-4 pb-2",left:"absolute right-0 top-0 flex h-full items-center pr-2 pl-0",right:"absolute left-0 top-0 flex h-full items-center pl-2 pr-0"},Zy=Tt.Root,Ey=Tt.Trigger,Dy=Tt.Close,hm=Tt.Portal,ym=Tt.Handle,Va=Tn(({className:e,...t},r)=>we(Tt.Overlay,{ref:r,className:a(vm(),e),...t},void 0,!1,void 0,this));Va.displayName="DrawerOverlay";var Pm=Tn(({size:e=Ee.md,showClose:t=!1,direction:r="bottom",className:o,children:n,...i},s)=>{let m=r==="left"||r==="right"?qy[e]:Qy[e];return we(hm,{children:[we(Va,{},void 0,!1,void 0,this),we(Tt.Content,{ref:s,className:a(Tm(),m,o),...i,children:[r!=="top"&&we("div",{className:a(bm[r]),children:we(ym,{className:"!m-0 !h-auto !w-auto !rounded-none !bg-transparent !opacity-100",children:we("div",{className:a($a({direction:r}))},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),n,r==="top"&&we("div",{className:a(bm[r]),children:we(ym,{className:"!m-0 !h-auto !w-auto !rounded-none !bg-transparent !opacity-100",children:we("div",{className:a($a({direction:r}))},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),t&&we(Tt.Close,{className:"absolute top-4 right-4 rounded-[var(--radius)] border border-border p-1.5 text-muted-foreground transition-[color,background-color,border-color] duration-150 hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none",children:[we(Jy,{className:"size-4"},void 0,!1,void 0,this),we("span",{className:"sr-only",children:"Close"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Pm.displayName="DrawerContent";var xm=({className:e,...t})=>we("div",{className:a("flex flex-col gap-1.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center sm:text-left",e),...t},void 0,!1,void 0,this);xm.displayName="DrawerHeader";var Mm=({className:e,...t})=>we("div",{className:a("mt-auto flex flex-col gap-2 p-4",e),...t},void 0,!1,void 0,this);Mm.displayName="DrawerFooter";var Nm=Tn(({className:e,...t},r)=>we(Tt.Title,{ref:r,className:a("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));Nm.displayName="DrawerTitle";var Lm=Tn(({className:e,...t},r)=>we(Tt.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));Lm.displayName="DrawerDescription";import*as O from"@radix-ui/react-dropdown-menu";import{cva as fr}from"class-variance-authority";import{Check as jy,ChevronRight as ev,Circle as tv}from"lucide-react";import{createContext as rv,forwardRef as Jt,useContext as Xr}from"react";import{jsxDEV as Pe}from"react/jsx-dev-runtime";var E={sm:I.sm,md:I.md,lg:I.lg},hn={default:"default",danger:"danger"},gr=rv(E.md),Xa=fr("z-50 min-w-[8rem] overflow-hidden rounded-[var(--radius)] border border-border/70 bg-popover p-1 text-popover-foreground shadow-[var(--shadow-md)] gs-float-content origin-[var(--radix-dropdown-menu-content-transform-origin)]"),Ja=fr("relative flex cursor-pointer select-none items-center rounded-md outline-none data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{size:{[E.sm]:"h-7 gap-1.5 px-2 text-xs [&_svg]:size-3.5",[E.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[E.lg]:"h-9 gap-2 px-2.5 text-sm [&_svg]:size-4"},variant:{[hn.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[hn.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{size:E.md,variant:hn.default}}),zm=fr("relative flex cursor-pointer select-none items-center rounded-md outline-none hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed",{variants:{size:{[E.sm]:"h-7 pl-7 pr-2 text-xs",[E.md]:"h-8 pl-8 pr-2 text-sm",[E.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:E.md}}),Rm=fr("relative flex cursor-pointer select-none items-center rounded-md outline-none hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:text-muted-foreground/50 data-[disabled]:cursor-not-allowed",{variants:{size:{[E.sm]:"h-7 pl-7 pr-2 text-xs",[E.md]:"h-8 pl-8 pr-2 text-sm",[E.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:E.md}}),Cm=fr("font-semibold text-muted-foreground",{variants:{size:{[E.sm]:"px-2 py-1 text-[11px]",[E.md]:"px-2 py-1.5 text-xs",[E.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:E.md}}),Hm=fr("-mx-1 my-1 h-px bg-border/50"),wm=fr("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[E.sm]:"text-[11px]",[E.md]:"text-xs",[E.lg]:"text-xs"}},defaultVariants:{size:E.md}}),km={[E.sm]:"absolute left-2 flex size-3.5 items-center justify-center",[E.md]:"absolute left-2 flex size-3.5 items-center justify-center",[E.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},ov={[E.sm]:"size-3",[E.md]:"size-3.5",[E.lg]:"size-4"},nv={[E.sm]:"size-1.5 fill-current",[E.md]:"size-2 fill-current",[E.lg]:"size-2.5 fill-current"},av=O.Root,iv=O.Trigger,sv=O.Group,lv=O.Portal,mv=O.Sub,dv=O.RadioGroup,Am=Jt(({className:e,inset:t,children:r,...o},n)=>{let i=Xr(gr),s=f(i);return Pe(O.SubTrigger,{ref:n,className:a(Ja({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,Pe(ev,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Am.displayName=O.SubTrigger.displayName;var Bm=Jt(({className:e,sideOffset:t=it,portal:r=le,portalContainer:o,...n},i)=>{let s=Pe(O.SubContent,{ref:i,sideOffset:t,className:a(Xa(),e),...n},void 0,!1,void 0,this);if(!r)return s;return Pe(O.Portal,{container:o??void 0,children:s},void 0,!1,void 0,this)});Bm.displayName=O.SubContent.displayName;var Im=Jt(({className:e,sideOffset:t=it,size:r,portal:o=le,portalContainer:n,...i},s)=>{let l=f(r)??E.md,m=Pe(O.Content,{ref:s,sideOffset:t,className:a(Xa(),e),...i},void 0,!1,void 0,this);return Pe(gr.Provider,{value:l,children:o?Pe(O.Portal,{container:n??void 0,children:m},void 0,!1,void 0,this):m},void 0,!1,void 0,this)});Im.displayName=O.Content.displayName;var Sm=Jt(({className:e,inset:t,variant:r,...o},n)=>{let i=Xr(gr),s=f(i);return Pe(O.Item,{ref:n,className:a(Ja({size:s,variant:r}),t&&"pl-8",e),...o},void 0,!1,void 0,this)});Sm.displayName=O.Item.displayName;var Fm=Jt(({className:e,children:t,checked:r,...o},n)=>{let i=Xr(gr),s=f(i)??E.md;return Pe(O.CheckboxItem,{ref:n,className:a(zm({size:s}),e),checked:r,...o,children:[Pe("span",{className:km[s],children:Pe(O.ItemIndicator,{children:Pe(jy,{className:ov[s]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),t]},void 0,!0,void 0,this)});Fm.displayName=O.CheckboxItem.displayName;var Gm=Jt(({className:e,children:t,...r},o)=>{let n=Xr(gr),i=f(n)??E.md;return Pe(O.RadioItem,{ref:o,className:a(Rm({size:i}),e),...r,children:[Pe("span",{className:km[i],children:Pe(O.ItemIndicator,{children:Pe(tv,{className:nv[i]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),t]},void 0,!0,void 0,this)});Gm.displayName=O.RadioItem.displayName;var Om=Jt(({className:e,inset:t,...r},o)=>{let n=Xr(gr),i=f(n);return Pe(O.Label,{ref:o,className:a(Cm({size:i}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});Om.displayName=O.Label.displayName;var Wm=Jt(({className:e,...t},r)=>Pe(O.Separator,{ref:r,className:a(Hm(),e),...t},void 0,!1,void 0,this));Wm.displayName=O.Separator.displayName;var Km=({className:e,...t})=>{let r=Xr(gr),o=f(r);return Pe("span",{className:a(wm({size:o}),e),...t},void 0,!1,void 0,this)};Km.displayName="DropdownMenuShortcut";import{cva as wo}from"class-variance-authority";import{forwardRef as uv}from"react";import{jsxDEV as Ho}from"react/jsx-dev-runtime";var ke={sm:"sm",md:"md",lg:"lg"},_m=wo("flex flex-col items-center justify-center text-center rounded-[var(--radius)] border border-dashed border-border/70 bg-muted/35",{variants:{size:{[ke.sm]:"gap-2 p-4",[ke.md]:"gap-4 p-8",[ke.lg]:"gap-6 p-12"}},defaultVariants:{size:ke.md}}),Um=wo("flex items-center justify-center rounded-full border border-border/60 bg-muted/70 text-muted-foreground",{variants:{size:{[ke.sm]:"h-10 w-10 [&>svg]:h-4 [&>svg]:w-4",[ke.md]:"h-16 w-16 [&>svg]:h-7 [&>svg]:w-7",[ke.lg]:"h-20 w-20 [&>svg]:h-9 [&>svg]:w-9"}},defaultVariants:{size:ke.md}}),$m=wo("font-semibold text-foreground",{variants:{size:{[ke.sm]:"text-sm",[ke.md]:"text-lg",[ke.lg]:"text-xl"}},defaultVariants:{size:ke.md}}),Ym=wo("text-muted-foreground max-w-sm",{variants:{size:{[ke.sm]:"text-xs",[ke.md]:"text-sm",[ke.lg]:"text-base"}},defaultVariants:{size:ke.md}}),Vm=wo("flex items-center gap-2 mt-2"),Xm=uv(({className:e,icon:t,title:r,description:o,actions:n,size:i=ke.md,children:s,...l},m)=>{let d=f(i);return Ho("div",{ref:m,className:a(_m({size:d}),e),...l,children:[t&&Ho("div",{className:Um({size:d}),children:t},void 0,!1,void 0,this),r&&Ho("h3",{className:$m({size:d}),children:r},void 0,!1,void 0,this),o&&Ho("p",{className:Ym({size:d}),children:o},void 0,!1,void 0,this),n&&Ho("div",{className:Vm(),children:n},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)});Xm.displayName="EmptyState";import{cva as Jr}from"class-variance-authority";import{Component as cv,createElement as Jm}from"react";import{jsxDEV as Oe,Fragment as fv}from"react/jsx-dev-runtime";var qm=Jr(["flex flex-col items-center justify-center rounded-xl border text-center","transition-colors duration-200 ease-out"],{variants:{size:{sm:"gap-3 p-6",md:"gap-4 p-8",lg:"gap-6 p-12",xl:"gap-7 p-14"},variant:{destructive:"border-destructive/30 bg-destructive/8",warning:"border-warning/30 bg-warning/8",info:"border-info/30 bg-info/8"}},defaultVariants:{size:"md",variant:"destructive"}}),Qm=Jr(["flex items-center justify-center rounded-full","transition-colors duration-200 ease-out"],{variants:{size:{sm:"h-12 w-12 [&>svg]:h-5 [&>svg]:w-5",md:"h-16 w-16 [&>svg]:h-7 [&>svg]:w-7",lg:"h-20 w-20 [&>svg]:h-9 [&>svg]:w-9",xl:"h-24 w-24 [&>svg]:h-10 [&>svg]:w-10"},variant:{destructive:"bg-destructive/10 text-destructive",warning:"bg-warning/10 text-warning",info:"bg-info/10 text-info"}},defaultVariants:{size:"md",variant:"destructive"}}),Zm=Jr("font-semibold transition-colors duration-300",{variants:{size:{sm:"text-lg",md:"text-xl",lg:"text-2xl",xl:"text-3xl"},variant:{destructive:"text-destructive",warning:"text-warning",info:"text-info"}},defaultVariants:{size:"md",variant:"destructive"}}),Em=Jr("max-w-xl text-muted-foreground transition-all duration-200",{variants:{size:{sm:"text-sm",md:"text-sm",lg:"text-base",xl:"text-lg"}},defaultVariants:{size:"md"}}),Dm=Jr("mt-2 flex flex-wrap items-center justify-center gap-2"),jm=Jr("mt-4 max-h-48 w-full max-w-2xl overflow-auto rounded-md border border-border/70 bg-background/80 p-3 text-left font-mono text-xs text-muted-foreground");class ed extends cv{static displayName="ErrorBoundary";constructor(e){super(e);this.state={hasError:!1,error:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){this.props.onError?.(e,t)}handleReset=()=>{this.setState({hasError:!1,error:null}),this.props.onReset?.()};render(){let{children:e,fallback:t,showDetails:r=!1,size:o="md",variant:n="destructive",className:i,title:s="Something went wrong",description:l="An unexpected error occurred. Please try again.",icon:m,actions:d,resetLabel:c="Try again",hideReset:u=!1,renderDetails:g}=this.props;if(this.state.hasError&&this.state.error){let T={error:this.state.error,reset:this.handleReset};if(t){if(typeof t==="function")return Jm(t,T);return t}let b=null;if(d)b=typeof d==="function"?Jm(d,T):d;else if(!u){let N={destructive:"border-destructive/30 bg-destructive text-destructive-foreground hover:bg-destructive/90",warning:"border-warning/30 bg-warning text-warning-foreground hover:bg-warning/90",info:"border-info/30 bg-info text-info-foreground hover:bg-info/90"};b=Oe("button",{type:"button",onClick:this.handleReset,className:a("inline-flex items-center justify-center rounded-md border px-4 py-2 font-medium text-sm","transition-colors duration-150 ease-out","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",N[n]),children:c},void 0,!1,void 0,this)}let h=g?g(this.state.error):Oe(fv,{children:[Oe("strong",{children:"Error:"},void 0,!1,void 0,this)," ",this.state.error.message,this.state.error.stack&&Oe("pre",{className:"mt-2 whitespace-pre-wrap",children:this.state.error.stack},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return Oe("div",{className:a(qm({size:o,variant:n}),i),children:[Oe("div",{className:a(Qm({size:o,variant:n})),children:m??Oe(pv,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),Oe("h3",{className:a(Zm({size:o,variant:n})),children:s},void 0,!1,void 0,this),Oe("p",{className:a(Em({size:o})),children:l},void 0,!1,void 0,this),b&&Oe("div",{className:a(Dm()),children:b},void 0,!1,void 0,this),r&&Oe("div",{className:a(jm()),children:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}return e}}function pv(){return Oe("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[Oe("circle",{cx:"12",cy:"12",r:"10"},void 0,!1,void 0,this),Oe("line",{x1:"12",x2:"12",y1:"8",y2:"12"},void 0,!1,void 0,this),Oe("line",{x1:"12",x2:"12.01",y1:"16",y2:"16"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}import{cva as qt}from"class-variance-authority";import{forwardRef as gv,useCallback as dt,useRef as bv,useState as td}from"react";import{jsxDEV as Be}from"react/jsx-dev-runtime";var de={sm:"sm",md:"md",lg:"lg",xl:"xl"},rd=qt(["relative flex flex-col items-center justify-center","rounded-xl border-2 border-dashed","shadow-[var(--shadow-xs)]","transition-[color,background-color,border-color,box-shadow,transform,opacity] duration-150","cursor-pointer","hover:border-primary/45 hover:bg-primary/8","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2"],{variants:{size:{[de.sm]:"min-h-28 p-5",[de.md]:"min-h-36 p-8",[de.lg]:"min-h-44 p-10",[de.xl]:"min-h-52 p-12"},isDragging:{true:"scale-[1.01] border-primary bg-primary/12 shadow-[var(--glow-brand-sm)]",false:"border-border bg-card/75"},disabled:{true:"cursor-not-allowed border-border/70 bg-muted/35 text-muted-foreground pointer-events-none",false:""},hasError:{true:"border-destructive bg-destructive/5",false:""}},defaultVariants:{size:de.md,isDragging:!1,disabled:!1,hasError:!1}}),od=qt("text-muted-foreground transition-colors duration-200",{variants:{size:{[de.sm]:"mb-2 size-6",[de.md]:"size-8 mb-3",[de.lg]:"size-10 mb-4",[de.xl]:"size-12 mb-5"},isDragging:{true:"text-primary",false:""}},defaultVariants:{size:de.md,isDragging:!1}}),qa=qt("text-center",{variants:{size:{[de.sm]:"text-sm",[de.md]:"text-sm",[de.lg]:"text-base",[de.xl]:"text-lg"}},defaultVariants:{size:de.md}}),nd=qt("mt-4 w-full space-y-2"),ad=qt(["flex items-center gap-3 rounded-lg border border-border/75 bg-card p-3.5","transition-[color,background-color,border-color,box-shadow,transform,opacity] duration-150","hover:border-primary/30 hover:bg-accent/45"]),id=qt("min-w-0 flex-1 truncate font-medium text-foreground",{variants:{size:{[de.sm]:"text-sm",[de.md]:"text-sm",[de.lg]:"text-base",[de.xl]:"text-base"}},defaultVariants:{size:"md"}}),sd=qt("text-muted-foreground",{variants:{size:{[de.sm]:"text-xs",[de.md]:"text-sm",[de.lg]:"text-sm",[de.xl]:"text-base"}},defaultVariants:{size:"md"}}),ld=qt(["size-7 shrink-0 rounded-full border border-transparent","flex items-center justify-center","text-muted-foreground hover:border-destructive/25 hover:bg-destructive/10 hover:text-destructive","transition-colors duration-150","cursor-pointer"]),md=gv(({className:e,size:t="md",disabled:r=!1,accept:o,multiple:n=!1,maxSize:i,maxFiles:s,value:l=[],onChange:m,onError:d,icon:c,title:u="Drop files here or click to upload",description:g,showFileList:T=!0,...b},h)=>{let N=f(t),[v,p]=td(!1),[P,M]=td(!1),k=bv(null),H=dt((z)=>{if(z===0)return"0 Bytes";let K=1024,y=["Bytes","KB","MB","GB"],x=Math.floor(Math.log(z)/Math.log(K));return`${parseFloat((z/K**x).toFixed(2))} ${y[x]}`},[]),S=dt((z)=>{let K=[...z];if(M(!1),o){let y=o.split(",").map((x)=>x.trim());if(K=K.filter((x)=>{return y.some((C)=>{if(C.startsWith("."))return x.name.toLowerCase().endsWith(C.toLowerCase());if(C.endsWith("/*"))return x.type.startsWith(C.slice(0,-1));return x.type===C})}),K.length<z.length)d?.("Some files were rejected due to file type"),M(!0)}if(i){let y=K.length;if(K=K.filter((x)=>x.size<=i),K.length<y)d?.(`File size must be less than ${H(i)}`),M(!0)}if(s&&K.length+l.length>s)K=K.slice(0,s-l.length),d?.(`Maximum ${s} files allowed`),M(!0);return K},[o,i,s,l.length,d,H]),w=dt((z)=>{if(!z||z.length===0)return;let K=Array.from(z),y=S(K);if(y.length>0)if(n)m?.([...l,...y]);else m?.(y.slice(0,1))},[n,l,m,S]),J=dt((z)=>{z.preventDefault(),z.stopPropagation(),p(!0)},[]),Y=dt((z)=>{z.preventDefault(),z.stopPropagation(),p(!1)},[]),q=dt((z)=>{z.preventDefault(),z.stopPropagation()},[]),ee=dt((z)=>{if(z.preventDefault(),z.stopPropagation(),p(!1),r)return;w(z.dataTransfer.files)},[r,w]),me=dt((z)=>{if(w(z.target.files),k.current)k.current.value=""},[w]),X=dt(()=>{if(!r)k.current?.click()},[r]),Q=dt((z)=>{if(z.key==="Enter"||z.key===" ")z.preventDefault(),X()},[X]),A=dt((z)=>{let K=l.filter((y,x)=>x!==z);m?.(K)},[l,m]),oe=Be("svg",{className:a(od({size:N,isDragging:v})),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:Be("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5m-13.5-9L12 3m0 0l4.5 4.5M12 3v13.5"},void 0,!1,void 0,this)},void 0,!1,void 0,this);return Be("div",{ref:h,className:a("w-full",e),...b,children:[Be("div",{role:"button",tabIndex:r?-1:0,onClick:X,onKeyDown:Q,onDragEnter:J,onDragLeave:Y,onDragOver:q,onDrop:ee,className:a(rd({size:N,isDragging:v,disabled:r,hasError:P})),children:[Be("input",{ref:k,type:"file",accept:o,multiple:n,disabled:r,onChange:me,className:"sr-only"},void 0,!1,void 0,this),c||oe,Be("p",{className:a(qa({size:N}),"font-medium text-foreground"),children:u},void 0,!1,void 0,this),g&&Be("p",{className:a(qa({size:N}),"mt-1 text-muted-foreground"),children:g},void 0,!1,void 0,this)]},void 0,!0,void 0,this),T&&l.length>0&&Be("div",{className:a(nd()),children:l.map((z,K)=>Be("div",{className:a(ad()),children:[Be("svg",{className:"size-5 shrink-0 text-muted-foreground",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:Be("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Be("span",{className:a(id({size:N})),children:z.name},void 0,!1,void 0,this),Be("span",{className:a(sd({size:N})),children:H(z.size)},void 0,!1,void 0,this),Be("button",{type:"button",onClick:(y)=>{y.stopPropagation(),A(K)},className:a(ld()),"aria-label":`Remove ${z.name}`,children:Be("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Be("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},`${z.name}-${K}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});md.displayName="FileUpload";import{cva as yv}from"class-variance-authority";import{createContext as vv,forwardRef as Pn,useCallback as dd,useContext as Tv,useEffect as cd,useId as hv,useMemo as Pv,useState as ud}from"react";import{jsxDEV as br,Fragment as Mv}from"react/jsx-dev-runtime";var De={sm:"sm",md:"md",lg:"lg"},pd=vv(null),ko=()=>{let e=Tv(pd);if(!e)throw Error("useFormField must be used within a FormField");return e},fd=yv("flex flex-col",{variants:{size:{[De.sm]:"gap-1",[De.md]:"gap-1.5",[De.lg]:"gap-2"}},defaultVariants:{size:De.md}}),gd=Pn(({className:e,size:t=De.md,error:r,disabled:o=!1,required:n=!1,children:i,...s},l)=>{let m=hv(),d=f(t),[c,u]=ud([]),[g,T]=ud([]),b=dd((v)=>{return u((p)=>p.includes(v)?p:[...p,v]),()=>{u((p)=>p.filter((P)=>P!==v))}},[]),h=dd((v)=>{return T((p)=>p.includes(v)?p:[...p,v]),()=>{T((p)=>p.filter((P)=>P!==v))}},[]),N=Pv(()=>({id:m,size:d,error:r,disabled:o,required:n,descriptionIds:c,errorIds:g,registerDescriptionId:b,registerErrorId:h}),[c,o,d,r,g,m,b,h,n]);return br(pd.Provider,{value:N,children:br("div",{ref:l,className:a(fd({size:d}),e),...s,children:i},void 0,!1,void 0,this)},void 0,!1,void 0,this)});gd.displayName="FormField";var xv={[De.sm]:"text-xs",[De.md]:"text-sm",[De.lg]:"text-base"},bd=Pn(({className:e,htmlFor:t,children:r,...o},n)=>{let{id:i,size:s,disabled:l,required:m}=ko();return br("label",{ref:n,htmlFor:t??i,className:a("inline-block select-none font-medium text-foreground",xv[s],l&&"cursor-not-allowed opacity-60",e),...o,children:[r,m&&br("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});bd.displayName="FormFieldLabel";var yd={[De.sm]:"text-[11px]",[De.md]:"text-xs",[De.lg]:"text-sm"},vd=Pn(({className:e,id:t,...r},o)=>{let{id:n,size:i,registerDescriptionId:s}=ko(),l=t??`${n}-description`;return cd(()=>{return s(l)},[l,s]),br("p",{ref:o,id:l,className:a("text-muted-foreground",yd[i],e),...r},void 0,!1,void 0,this)});vd.displayName="FormFieldDescription";var Td=Pn(({className:e,children:t,id:r,...o},n)=>{let{id:i,size:s,error:l,registerErrorId:m}=ko(),d=t??l,c=r??`${i}-error`;if(cd(()=>{if(!d)return;return m(c)},[c,d,m]),!d)return null;return br("p",{ref:n,id:c,role:"alert",className:a("text-destructive",yd[s],e),...o,children:d},void 0,!1,void 0,this)});Td.displayName="FormFieldError";var hd=({children:e})=>{let{id:t,disabled:r,required:o,error:n,descriptionIds:i,errorIds:s}=ko(),l=[...i,...s].join(" ");return br(Mv,{children:e({id:t,disabled:r,required:o,status:n||s.length>0?"error":"default","aria-describedby":l||void 0,"aria-invalid":n||s.length>0?!0:void 0})},void 0,!1,void 0,this)};hd.displayName="FormFieldControl";import*as At from"@radix-ui/react-hover-card";import{cva as Nv}from"class-variance-authority";import{forwardRef as Lv}from"react";import{jsxDEV as Qa}from"react/jsx-dev-runtime";var qr={sm:I.sm,md:I.md,lg:I.lg},Pd=Nv("z-50 rounded-[var(--radius)] border border-border/70 bg-popover text-popover-foreground shadow-[var(--shadow-md)] gs-float-content origin-[var(--radix-hover-card-content-transform-origin)]",{variants:{size:{[qr.sm]:"w-52 p-3 text-xs",[qr.md]:"w-64 p-4 text-sm",[qr.lg]:"w-80 p-5 text-sm"}},defaultVariants:{size:qr.md}}),xd=({openDelay:e,closeDelay:t,...r})=>{let o=ve();return Qa(At.Root,{openDelay:o?0:e,closeDelay:o?0:t,...r},void 0,!1,void 0,this)};xd.displayName="HoverCard";var zv=At.Trigger,Md=Lv(({className:e,align:t="center",sideOffset:r=it,portal:o=le,portalContainer:n,size:i=qr.md,...s},l)=>{let m=f(i),d=Qa(At.Content,{ref:l,align:t,sideOffset:r,className:a(Pd({size:m}),e),...s},void 0,!1,void 0,this);if(!o)return d;return Qa(At.Portal,{container:n??void 0,children:d},void 0,!1,void 0,this)});Md.displayName=At.Content.displayName;import{cva as Rv}from"class-variance-authority";import{X as Cv}from"lucide-react";import{forwardRef as Hv,useRef as wv,useState as kv}from"react";import{jsxDEV as yr}from"react/jsx-dev-runtime";var Ao={default:"default",error:"error",success:"success"},re={sm:"sm",md:"md",lg:"lg",xl:"xl"},Av="Clear input",Ld=Rv("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] w-full rounded-[var(--radius)] border border-input bg-background text-sm text-foreground outline-none placeholder:text-muted-foreground focus-visible:ring-2 disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground",{variants:{status:{[Ao.default]:"focus-visible:ring-primary",[Ao.error]:"border-destructive focus-visible:ring-destructive",[Ao.success]:"border-success focus-visible:ring-success"},size:{[re.sm]:"h-8 px-2 text-xs",[re.md]:"h-10 px-3",[re.lg]:"h-11 px-4",[re.xl]:"h-12 px-4 text-base"}},defaultVariants:{status:Ao.default,size:re.md}}),Bv={[re.sm]:"pl-7",[re.md]:"pl-9",[re.lg]:"pl-10",[re.xl]:"pl-10"},Iv={[re.sm]:"pr-7",[re.md]:"pr-9",[re.lg]:"pr-10",[re.xl]:"pr-10"},Sv={[re.sm]:"pr-12",[re.md]:"pr-16",[re.lg]:"pr-18",[re.xl]:"pr-18"},Fv={[re.sm]:"text-xs left-2",[re.md]:"text-sm left-3",[re.lg]:"text-sm left-3.5",[re.xl]:"text-base left-3.5"},Gv={[re.sm]:"text-xs",[re.md]:"text-sm",[re.lg]:"text-sm",[re.xl]:"text-base"},Ov={[re.sm]:"size-4",[re.md]:"size-5",[re.lg]:"size-5",[re.xl]:"size-6"};function Nd(e){if(e===void 0||e===null)return"";if(Array.isArray(e))return e.join("");return String(e)}var zd=Hv(({className:e,status:t=Ao.default,size:r=re.md,fullWidth:o=!1,prefix:n,suffix:i,clearable:s=!1,clearAriaLabel:l=Av,onClear:m,onValueChange:d,disabled:c,readOnly:u,onChange:g,value:T,defaultValue:b,...h},N)=>{let v=Boolean(n),p=Boolean(i),P=f(r),M=wv(null),k=Bt(N,M),[H,S]=kv(()=>Nd(b)),w=T!==void 0,J=w?Nd(T):H,Y=s&&!c&&!u&&J.length>0,q=p||Y,ee=p&&Y,me=(Q)=>{let A=Q.target.value;if(!w)S(A);d?.(A),g?.(Q)},X=()=>{if(!w)S("");d?.("");let Q=M.current;if(Q)Q.value="",Q.dispatchEvent(new Event("input",{bubbles:!0})),Q.focus();m?.()};return yr("div",{className:a("relative flex items-center",o&&"w-full"),children:[v&&yr("span",{className:a("absolute inset-y-0 flex items-center text-muted-foreground",Fv[P]),children:n},void 0,!1,void 0,this),yr("input",{ref:k,className:a(Ld({status:t,size:P}),v&&Bv[P],ee&&Sv[P],!ee&&q&&Iv[P],e),disabled:c,readOnly:u,onChange:me,value:J,...h},void 0,!1,void 0,this),q&&yr("span",{className:a("absolute inset-y-0 right-2 flex items-center gap-1 text-muted-foreground",Gv[P]),children:[p&&yr("span",{className:"inline-flex items-center",children:i},void 0,!1,void 0,this),Y&&yr("button",{type:"button","aria-label":l,onMouseDown:(Q)=>Q.preventDefault(),onClick:X,className:a("inline-flex items-center justify-center rounded-[calc(var(--radius)-4px)] text-muted-foreground transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",Ov[P]),children:yr(Cv,{className:"size-3.5"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});zd.displayName="Input";import{cva as Uv}from"class-variance-authority";import{forwardRef as $v}from"react";import{useSyncExternalStore as Wv}from"react";var Kv=()=>Za(),_v=()=>Rd;function Bo(){return Wv(Cd,Kv,_v)}import{jsxDEV as Yv}from"react/jsx-dev-runtime";var Qr={sm:"sm",md:"md",lg:"lg"},Zr=Uv("inline-flex items-center justify-center rounded border border-border bg-muted font-mono font-medium text-muted-foreground shadow-[0_1px_0_1px] shadow-border/50",{variants:{size:{[Qr.sm]:"min-w-5 h-5 px-1 text-[11px]",[Qr.md]:"min-w-6 h-6 px-1.5 text-xs",[Qr.lg]:"min-w-7 h-7 px-2 text-sm"}},defaultVariants:{size:Qr.md}}),Hd=$v(({className:e,size:t=Qr.md,combo:r,keys:o,children:n,...i},s)=>{let l=f(t),{isMac:m}=Bo(),d=r?xn(r,m):o?xn(o,m):n;return Yv("kbd",{ref:s,className:a(Zr({size:l}),e),...i,children:d},void 0,!1,void 0,this)});Hd.displayName="Kbd";import{cva as Vv}from"class-variance-authority";import{forwardRef as Xv}from"react";import{jsxDEV as wd}from"react/jsx-dev-runtime";var Er={sm:"sm",md:"md",lg:"lg"},kd=Vv("inline-block font-medium text-foreground select-none peer-disabled:cursor-not-allowed peer-disabled:text-muted-foreground/70",{variants:{size:{[Er.sm]:"text-xs",[Er.md]:"text-sm",[Er.lg]:"text-base"}},defaultVariants:{size:Er.md}}),Ad=Xv(({className:e,size:t=Er.md,required:r=!1,disabled:o=!1,children:n,htmlFor:i,...s},l)=>{let m=f(t);return wd("label",{ref:l,htmlFor:i,className:a(kd({size:m}),o&&"cursor-not-allowed text-muted-foreground/70",e),"aria-disabled":o||void 0,...s,children:[n,r&&wd("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Ad.displayName="Label";import{forwardRef as Jv}from"react";import{jsxDEV as qv}from"react/jsx-dev-runtime";var Bd=Jv((e,t)=>{return qv(Ot,{ref:t,...e},void 0,!1,void 0,this)});Bd.displayName="Loader";import*as Qt from"@radix-ui/react-popover";import{cva as tT}from"class-variance-authority";import{Check as rT,ChevronDown as oT,X as nT}from"lucide-react";import{forwardRef as aT,useCallback as It,useEffect as Ea,useLayoutEffect as Fd,useMemo as jr,useRef as eo,useState as Mn}from"react";import*as je from"@radix-ui/react-popover";import{cva as Qv}from"class-variance-authority";import{forwardRef as Zv}from"react";import{jsxDEV as Id}from"react/jsx-dev-runtime";var vr={sm:I.sm,md:I.md,lg:I.lg,xl:I.xl},Dr=Qv("z-50 rounded-[var(--radius)] border border-border bg-popover text-popover-foreground outline-none shadow-[var(--shadow-md)] gs-float-content origin-[var(--radix-popover-content-transform-origin)]",{variants:{size:{[vr.sm]:"w-56 p-3 text-sm",[vr.md]:"w-72 p-4 text-sm",[vr.lg]:"w-96 p-5 text-sm",[vr.xl]:"w-[28rem] p-6 text-sm"}},defaultVariants:{size:vr.md}}),Ev=je.Root,Dv=je.Trigger,jv=je.Anchor,eT=je.Close,Sd=Zv(({className:e,align:t="center",sideOffset:r=it,portal:o=le,portalContainer:n,size:i=vr.md,...s},l)=>{let m=f(i),d=Id(je.Content,{ref:l,align:t,sideOffset:r,className:a(Dr({size:m}),e),...s},void 0,!1,void 0,this);if(o)return Id(je.Portal,{container:n??void 0,children:d},void 0,!1,void 0,this);return d});Sd.displayName="PopoverContent";import{jsxDEV as ue,Fragment as yT}from"react/jsx-dev-runtime";var U={sm:"sm",md:"md",lg:"lg",xl:"xl"},Gd=tT(["group flex w-full items-center gap-2 rounded-[var(--radius)] border border-input","bg-background text-sm text-foreground outline-none","placeholder:text-muted-foreground focus-visible:ring-2","data-[state=open]:ring-2","disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground"].join(" "),{variants:{size:{[U.sm]:"min-h-8 px-2.5 py-1 text-xs",[U.md]:"min-h-10 px-3.5 py-1.5",[U.lg]:"min-h-11 px-4.5 py-2 text-sm",[U.xl]:"min-h-12 px-4 py-2 text-base"},status:{default:"focus-visible:ring-primary data-[state=open]:ring-primary",error:"border-destructive focus-visible:ring-destructive data-[state=open]:ring-destructive",success:"border-success focus-visible:ring-success data-[state=open]:ring-success"}},defaultVariants:{size:U.md,status:"default"}}),iT={[U.sm]:"sm",[U.md]:"md",[U.lg]:"lg",[U.xl]:"xl"},sT={[U.sm]:"min-h-7.5 py-1.5 px-2.5 text-xs",[U.md]:"min-h-9 py-2 px-3 text-sm",[U.lg]:"min-h-10 py-2.5 px-3.5 text-sm",[U.xl]:"min-h-11 py-3 px-4 text-base"},Nn={[U.sm]:"size-3.5",[U.md]:"size-4",[U.lg]:"size-4",[U.xl]:"size-4.5"},lT={[U.sm]:"text-[11px]",[U.md]:"text-xs",[U.lg]:"text-xs",[U.xl]:"text-sm"},mT=4,dT={[U.sm]:34,[U.md]:36,[U.lg]:40,[U.xl]:44},uT={[U.sm]:5.8,[U.md]:6,[U.lg]:6.2,[U.xl]:7},cT={[U.sm]:14,[U.md]:16,[U.lg]:18,[U.xl]:20},pT={[U.sm]:5.6,[U.md]:5.8,[U.lg]:6,[U.xl]:6.4},fT=(e,t)=>{return Math.ceil(dT[t]+Math.max(1,e.trim().length)*uT[t])},gT=(e,t)=>{let r=`+${e}`;return Math.ceil(cT[t]+r.length*pT[t])},bT=({containerWidth:e,badgeWidths:t,getSummaryWidth:r,gapPx:o=mT})=>{if(t.length===0)return{visibleCount:0,hiddenCount:0};if(e<=0)return{visibleCount:0,hiddenCount:t.length};let n=0,i=0;for(let s=0;s<t.length;s+=1){let l=t[s]??0,m=i>0,d=n+(m?o:0)+l,c=t.length-(s+1);if(c>0){let u=r(c),g=d>0?o:0;if(d+g+u<=e){n=d,i+=1;continue}break}if(d<=e)n=d,i+=1}return{visibleCount:i,hiddenCount:t.length-i}},Od=aT(({className:e,options:t,value:r,defaultValue:o=[],onValueChange:n,placeholder:i="Select options...",size:s=U.md,status:l="default",clearable:m=!1,open:d,defaultOpen:c=!1,onOpenChange:u,portal:g=le,portalContainer:T,disabled:b,...h},N)=>{let v=f(s)??s,[p,P]=Mn(c),[M,k]=Mn(o),[H,S]=Mn(null),[w,J]=Mn(null),Y=eo(null),q=eo(null),ee=eo(null),me=eo(o),X=eo(new Map),Q=eo(new Map),A=r!==void 0,oe=d!==void 0,z=A?r:M,K=oe?d:p,y=It((L)=>{if(!oe)P(L);u?.(L)},[oe,u]),x=jr(()=>{return new Map(t.map((L)=>[L.value,L]))},[t]),C=jr(()=>{return z.flatMap((L)=>{let D=x.get(L);return D?[D]:[]})},[x,z]),ne=jr(()=>{if(!H)return;return x.get(H)},[x,H]),_=It((L)=>{let D=z.includes(L)?z.filter((te)=>te!==L):[...z,L];if(!A)k(D);n?.(D)},[A,n,z]),Ce=It((L)=>{let D=z.filter((te)=>te!==L);if(!A)k(D);n?.(D)},[A,n,z]),W=It(()=>{if(!A)k([]);n?.([])},[A,n]),ie=It((L)=>{L.stopPropagation(),L.preventDefault(),W()},[W]),Rt=It((L)=>{if(L.key==="Enter"||L.key===" ")L.stopPropagation(),L.preventDefault(),W()},[W]),at=It((L)=>{let D=Y.current;if(!D)return;let te=Array.from(D.querySelectorAll('[role="option"]:not([data-disabled])'));if(te.length===0)return;let mr=D.querySelector('[role="option"]:focus'),en=mr?te.indexOf(mr):-1,To;switch(L){case"first":To=te[0];break;case"last":To=te[te.length-1];break;case"next":To=te[en+1]??te[0];break;case"prev":To=te[en-1]??te[te.length-1];break}To?.focus()},[]),V=It((L)=>{switch(L.key){case"ArrowDown":L.preventDefault(),at("next");break;case"ArrowUp":L.preventDefault(),at("prev");break;case"Home":L.preventDefault(),at("first");break;case"End":L.preventDefault(),at("last");break;case"Escape":L.preventDefault(),y(!1);break}},[at,y]);Ea(()=>{if(K)requestAnimationFrame(()=>at("first"))},[at,K]),Ea(()=>{if(H&&!ne)S(null)},[ne,H]),Ea(()=>{let L=me.current,D=z.filter((te)=>!L.includes(te));if(D.length>0){let te=D[D.length-1];if(te&&!X.current.has(`${v}:${te}`))S(te)}me.current=z},[v,z]),Fd(()=>{let L=q.current;if(!L)return;if((()=>{J(Math.ceil(L.getBoundingClientRect().width))})(),typeof ResizeObserver>"u")return;let te=new ResizeObserver((mr)=>{let en=Math.ceil(mr[0]?.contentRect.width??L.getBoundingClientRect().width);J(en)});return te.observe(L),()=>{te.disconnect()}},[]),Fd(()=>{if(!H)return;let L=ee.current;if(!L)return;let D=Math.ceil(L.getBoundingClientRect().width);if(D>0)X.current.set(`${v}:${H}`,D);S(null)},[v,H]);let fe=iT[v],se=C.length>0,Ne=m&&se&&!b,Ue=It((L)=>{let D=`${v}:${L}`,te=Q.current.get(D);if(te!==void 0)return te;let mr=gT(L,v);return Q.current.set(D,mr),mr},[v]),bt=jr(()=>{return C.map((L)=>{let D=`${v}:${L.value}`;return X.current.get(D)??fT(L.label,v)})},[v,C]),B=jr(()=>{if(!se)return{visibleCount:0,hiddenCount:0};if(w===null||w<=0)return{visibleCount:C.length,hiddenCount:0};return bT({containerWidth:w,badgeWidths:bt,getSummaryWidth:Ue})},[w,Ue,se,bt,C.length]),ge=jr(()=>{return C.slice(0,B.visibleCount)},[B.visibleCount,C]),Le=ue(Qt.Content,{ref:Y,role:"listbox","aria-multiselectable":"true",align:"start",sideOffset:4,onKeyDown:V,onOpenAutoFocus:(L)=>L.preventDefault(),className:a(Dr(),"max-h-96 w-[var(--radix-popover-trigger-width)] overflow-y-auto overflow-x-hidden p-1"),children:[t.map((L)=>{let D=z.includes(L.value);return ue("div",{role:"option",tabIndex:L.disabled?void 0:-1,"aria-selected":D,"aria-disabled":L.disabled||void 0,"data-disabled":L.disabled?"":void 0,className:a("relative flex w-full cursor-pointer select-none items-center gap-2","rounded-[calc(var(--radius)-3px)] outline-none","hover:bg-accent focus-visible:bg-accent focus-visible:text-accent-foreground","data-disabled:cursor-not-allowed data-disabled:border-transparent data-disabled:bg-muted/40 data-disabled:text-muted-foreground/70",sT[v]),onClick:()=>!L.disabled&&_(L.value),onKeyDown:(te)=>{if(te.key==="Enter"||te.key===" "){if(te.preventDefault(),!L.disabled)_(L.value)}},children:[ue("span",{className:a("flex shrink-0 items-center justify-center",Nn[v]),children:D?ue(rT,{className:Nn[v]},void 0,!1,void 0,this):null},void 0,!1,void 0,this),ue("span",{className:"min-w-0 flex-1 truncate",children:L.label},void 0,!1,void 0,this)]},L.value,!0,void 0,this)}),t.length===0?ue("div",{className:"px-3 py-6 text-center text-muted-foreground text-sm",children:"No options available"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this);return ue(Qt.Root,{open:K,onOpenChange:y,children:[ue(Qt.Trigger,{asChild:!0,children:ue("button",{ref:N,type:"button",disabled:b,"data-state":K?"open":"closed","data-placeholder":se?void 0:"",className:a(Gd({size:v,status:l}),e),...h,children:[ue("span",{ref:q,className:"flex min-w-0 flex-1 flex-wrap items-center gap-1 text-left",children:se?ue(yT,{children:[ge.map((L)=>ue(Mo,{variant:"outline",size:fe,removable:!0,removeControl:"span",removeLabel:`Remove ${L.label}`,onRemove:()=>Ce(L.value),className:"max-w-[180px]",children:ue("span",{className:"truncate",children:L.label},void 0,!1,void 0,this)},L.value,!1,void 0,this)),B.hiddenCount>0?ue("span",{className:a("text-muted-foreground",lT[v]),children:["+",B.hiddenCount]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this):ue("span",{className:"text-muted-foreground",children:i},void 0,!1,void 0,this)},void 0,!1,void 0,this),ue("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[Ne?ue("span",{role:"button",tabIndex:-1,"aria-label":"Clear all",onMouseDown:(L)=>L.preventDefault(),onKeyDown:Rt,onClick:ie,className:"inline-flex items-center justify-center rounded-[calc(var(--radius)-4px)] text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:ue(nT,{className:Nn[v]},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,ue(oT,{className:a(Nn[v],"opacity-60 transition-transform duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-productive)]",K&&"rotate-180")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),g?ue(Qt.Portal,{container:T??void 0,children:Le},void 0,!1,void 0,this):Le,ne?ue("span",{className:"pointer-events-none invisible absolute top-0 left-0 -z-10","aria-hidden":!0,children:ue(Mo,{ref:ee,variant:"outline",size:fe,removable:!0,removeControl:"span",className:"max-w-[180px]",children:ue("span",{className:"truncate",children:ne.label},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)});Od.displayName="Multiselect";import{cva as Zt}from"class-variance-authority";import{createContext as vT,forwardRef as Tr,useContext as TT}from"react";import{jsxDEV as et}from"react/jsx-dev-runtime";var Wd=Zt(["transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] flex w-full items-center justify-between border-b","transition-colors duration-200 ease-out"],{variants:{variant:{default:["border-border bg-background/95 backdrop-blur-xl","shadow-[var(--shadow-sm)]"],transparent:"bg-transparent border-transparent",blur:["bg-[var(--surface-glass)] dark:bg-[var(--surface-glass-dark)] border-[color:color-mix(in_srgb,var(--primary)_18%,var(--border))] backdrop-blur-[14px] shadow-[var(--shadow-glass)]","shadow-[var(--shadow-md)]"],solid:["border-border bg-background","shadow-[var(--shadow-xs)]"]},size:{sm:"h-12 px-3",md:"h-14 px-5",lg:"h-16 px-8",xl:"h-[4.5rem] px-10"},sticky:{true:"sticky top-0 z-50",false:""}},defaultVariants:{variant:"default",size:"md",sticky:!1}}),Kd=Zt("flex items-center gap-2 font-semibold text-foreground",{variants:{size:{sm:"text-sm",md:"text-sm",lg:"text-base",xl:"text-lg"}},defaultVariants:{size:"md"}}),hT=Zt("truncate text-muted-foreground",{variants:{size:{sm:"text-xs",md:"text-xs",lg:"text-sm",xl:"text-sm"}},defaultVariants:{size:"md"}}),_d=Zt("flex items-center",{variants:{align:{start:"justify-start",center:"justify-center",end:"justify-end"},gap:{sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-7"},size:{sm:"text-sm",md:"text-sm",lg:"text-base",xl:"text-lg"}},defaultVariants:{align:"center",gap:"md",size:"md"}}),Ud=Zt(["relative inline-flex items-center rounded-lg font-medium text-muted-foreground","transition-colors duration-150 ease-out","hover:bg-accent/60 hover:text-foreground"],{variants:{active:{true:"bg-accent text-foreground",false:""},size:{sm:"h-8 px-2.5 text-sm",md:"h-9 px-3 text-sm",lg:"h-10 px-3.5 text-base",xl:"h-11 px-4 text-base"}},defaultVariants:{active:!1,size:"md"}}),$d=Zt(["relative inline-flex items-center rounded-lg font-medium text-muted-foreground","transition-colors duration-150 ease-out","hover:bg-accent/60 hover:text-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1"],{variants:{active:{true:["bg-accent text-foreground"],false:""},size:{sm:"h-8 px-2.5 text-sm",md:"h-9 px-3 text-sm",lg:"h-10 px-3.5 text-base",xl:"h-11 px-4 text-base"}},defaultVariants:{active:!1,size:"md"}}),Yd=Zt("flex items-center",{variants:{size:{sm:"gap-1.5",md:"gap-2",lg:"gap-2.5",xl:"gap-3"}},defaultVariants:{size:"md"}}),Vd=Zt("w-px rounded-full bg-gradient-to-b from-transparent via-border to-transparent transition-opacity duration-300",{variants:{size:{sm:"mx-1.5 h-5",md:"mx-2 h-6",lg:"mx-2.5 h-7",xl:"mx-3 h-8"}},defaultVariants:{size:"md"}});var Xd={sm:"sm",md:"md",lg:"lg",xl:"xl"};var Jd=vT(null),to=()=>{return TT(Jd)?.size??Xd.md},qd=Tr(({className:e,variant:t,size:r,sticky:o,...n},i)=>{let s=f(r)??Xd.md;return et(Jd.Provider,{value:{size:s},children:et("nav",{ref:i,className:a(Wd({variant:t,size:s,sticky:o}),e),...n},void 0,!1,void 0,this)},void 0,!1,void 0,this)});qd.displayName="Navbar";var Qd=Tr(({className:e,logo:t,tagline:r,size:o,children:n,...i},s)=>{let l=to(),m=f(o??l)??l;return et("div",{ref:s,className:a(Kd({size:m}),e),...i,children:[t&&et("span",{className:"inline-flex shrink-0 items-center",children:t},void 0,!1,void 0,this),et("div",{className:"flex min-w-0 flex-col",children:[et("span",{className:"truncate",children:n},void 0,!1,void 0,this),r&&et("span",{className:a(hT({size:m})),children:r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Qd.displayName="NavbarBrand";var Zd=Tr(({className:e,align:t,gap:r,size:o,...n},i)=>{let s=to(),l=f(o??s)??s;return et("div",{ref:i,className:a(_d({align:t,gap:r??l,size:l}),e),...n},void 0,!1,void 0,this)});Zd.displayName="NavbarContent";var Ed=Tr(({className:e,active:t,size:r,...o},n)=>{let i=to(),s=f(r??i)??i;return et("div",{ref:n,className:a(Ud({active:t,size:s}),e),"data-active":t,...o},void 0,!1,void 0,this)});Ed.displayName="NavbarItem";var Dd=Tr(({className:e,active:t,href:r="#",size:o,...n},i)=>{let s=to(),l=f(o??s)??s;return et("a",{ref:i,href:r,className:a($d({active:t,size:l}),e),"data-active":t,...n},void 0,!1,void 0,this)});Dd.displayName="NavbarLink";var jd=Tr(({className:e,size:t,...r},o)=>{let n=to(),i=f(t??n)??n;return et("div",{ref:o,className:a(Yd({size:i}),e),...r},void 0,!1,void 0,this)});jd.displayName="NavbarActions";var eu=Tr(({className:e,size:t,...r},o)=>{let n=to(),i=f(t??n)??n;return et("div",{ref:o,className:a(Vd({size:i}),e),...r},void 0,!1,void 0,this)});eu.displayName="NavbarDivider";import*as Ie from"@radix-ui/react-navigation-menu";import{cva as hr}from"class-variance-authority";import{createContext as PT,forwardRef as Et,useContext as tu}from"react";import{jsxDEV as We}from"react/jsx-dev-runtime";var ut={sm:I.sm,md:I.md,lg:I.lg},Da=PT(ut.md),ru=hr("group/navigation-menu relative z-10 flex max-w-max flex-1 items-center justify-center"),ou=hr("group relative flex flex-1 list-none items-center justify-center gap-0.5"),nu=hr(["group/trigger inline-flex w-max items-center justify-center gap-1 rounded-[var(--radius)] border border-transparent bg-transparent font-medium outline-none","transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)]","hover:bg-accent hover:text-accent-foreground","focus-visible:ring-2 focus-visible:ring-ring/50 focus-visible:ring-offset-1 focus-visible:ring-offset-background","disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-muted/40 disabled:text-muted-foreground/70","data-[state=open]:border-border data-[state=open]:bg-accent data-[state=open]:text-accent-foreground"],{variants:{size:{[ut.sm]:"h-8 px-3 py-1.5 text-xs",[ut.md]:"h-9 px-3 py-2 text-sm",[ut.lg]:"h-11 px-4 py-2.5 text-sm"}},defaultVariants:{size:ut.md}}),au=hr(["left-0 top-0 w-full p-1 md:absolute md:w-auto","gs-nav-content"]),iu=hr(["flex select-none items-center gap-2 rounded-[var(--radius-md)] leading-none no-underline outline-none","transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)]","hover:bg-accent/80 hover:text-accent-foreground","focus:bg-accent focus:text-accent-foreground","focus-visible:ring-2 focus-visible:ring-ring/50 focus-visible:outline-none"],{variants:{size:{[ut.sm]:"p-2 text-xs [&_svg:not([class*='size-'])]:size-3.5",[ut.md]:"p-2.5 text-sm [&_svg:not([class*='size-'])]:size-4",[ut.lg]:"p-3 text-sm [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{size:ut.md}}),su=hr(["gs-nav-viewport origin-[top_center] relative mt-1.5 w-full overflow-hidden rounded-[var(--radius)] border border-border bg-popover text-popover-foreground shadow-[var(--shadow-lg)]","h-[var(--radix-navigation-menu-viewport-height)] md:w-[var(--radix-navigation-menu-viewport-width)]"]),lu=hr(["gs-nav-indicator top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden"]),xT=()=>We("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"relative top-px ml-0.5 size-3 transition-transform duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-emphasized)] group-data-[state=open]/trigger:rotate-180","aria-hidden":"true",children:We("path",{d:"m6 9 6 6 6-6"},void 0,!1,void 0,this)},void 0,!1,void 0,this),mu=Et(({className:e,children:t,size:r,viewport:o=!0,...n},i)=>{let s=f(r??ut.md);return We(Da.Provider,{value:s,children:We(Ie.Root,{ref:i,"data-viewport":o,className:a(ru(),e),...n,children:[t,o&&We(ja,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});mu.displayName="NavigationMenu";var du=Et(({className:e,...t},r)=>We(Ie.List,{ref:r,className:a(ou(),e),...t},void 0,!1,void 0,this));du.displayName="NavigationMenuList";var uu=Et(({className:e,...t},r)=>We(Ie.Item,{ref:r,className:a("relative",e),...t},void 0,!1,void 0,this));uu.displayName="NavigationMenuItem";var cu=Et(({className:e,children:t,...r},o)=>{let n=tu(Da);return We(Ie.Trigger,{ref:o,className:a(nu({size:n}),e),...r,children:[t,We(xT,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});cu.displayName="NavigationMenuTrigger";var pu=Et(({className:e,...t},r)=>We(Ie.Content,{ref:r,className:a(au(),e),...t},void 0,!1,void 0,this));pu.displayName="NavigationMenuContent";var fu=Et(({className:e,...t},r)=>{let o=tu(Da);return We(Ie.Link,{ref:r,className:a(iu({size:o}),e),...t},void 0,!1,void 0,this)});fu.displayName="NavigationMenuLink";var ja=Et(({className:e,...t},r)=>We("div",{className:"pointer-events-none absolute top-full left-0 isolate z-50 flex justify-center [&>*]:pointer-events-auto",children:We(Ie.Viewport,{ref:r,forceMount:!0,className:a(su(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));ja.displayName="NavigationMenuViewport";var gu=Et(({className:e,...t},r)=>We(Ie.Indicator,{ref:r,forceMount:!0,className:a(lu(),e),...t,children:We("div",{className:"relative top-[60%] size-2 rotate-45 rounded-tl-sm bg-border shadow-sm"},void 0,!1,void 0,this)},void 0,!1,void 0,this));gu.displayName="NavigationMenuIndicator";import{cva as ro}from"class-variance-authority";import{Fragment as MT,forwardRef as NT,useCallback as Pr,useEffect as bu,useMemo as yu,useRef as LT,useState as vu}from"react";import{jsxDEV as xr}from"react/jsx-dev-runtime";var Mr={sm:"sm",md:"md",lg:"lg",xl:"xl"},So={default:"default",error:"error",success:"success"},Io={single:"single",first:"first",middle:"middle",last:"last"},Tu=ro("relative inline-flex items-center",{variants:{size:{sm:"gap-1",md:"gap-1.5",lg:"gap-2",xl:"gap-2.5"}},defaultVariants:{size:Mr.md}}),hu=ro("relative inline-flex items-center",{variants:{size:{sm:"gap-0",md:"gap-0",lg:"gap-0",xl:"gap-0"},status:{default:"",error:"text-destructive",success:"text-success"}},defaultVariants:{size:Mr.md,status:So.default}}),Pu=ro(["relative flex items-center justify-center border bg-background","transition-[color,background-color,border-color,box-shadow,transform,opacity] duration-150","motion-reduce:transition-none"],{variants:{size:{sm:"h-8 w-8",md:"h-10 w-10",lg:"h-11 w-11",xl:"h-12 w-12"},filled:{true:"border-border bg-card",false:"border-input bg-background"},focused:{true:"scale-[1.02]",false:""},status:{default:"focus-within:border-ring",error:"border-destructive/70 focus-within:border-destructive focus-within:ring-2 focus-within:ring-destructive/20",success:"border-success/70 focus-within:border-success focus-within:ring-2 focus-within:ring-success/20"},disabled:{true:"border-border/80 bg-muted/45",false:""},position:{single:"rounded-[calc(var(--radius)-2px)]",first:"rounded-l-[calc(var(--radius)-2px)] rounded-r-none",middle:"rounded-none border-l-0",last:"rounded-r-[calc(var(--radius)-2px)] rounded-l-none border-l-0"}},defaultVariants:{size:Mr.md,filled:!1,focused:!1,status:So.default,disabled:!1,position:Io.single}}),xu=ro(["h-full w-full rounded-[inherit] bg-transparent text-center font-sans font-medium outline-none","transition-[color,opacity] duration-150 motion-reduce:transition-none","disabled:cursor-not-allowed disabled:text-muted-foreground"],{variants:{size:{sm:"text-xs",md:"text-sm",lg:"text-base",xl:"text-lg"},status:{default:"caret-primary",error:"caret-destructive",success:"caret-success"},filled:{true:"text-foreground",false:"text-muted-foreground"}},defaultVariants:{size:Mr.md,status:So.default,filled:!1}}),Mu=ro(["pointer-events-none absolute inset-0 flex items-center justify-center select-none","font-medium text-muted-foreground/45","transition-[opacity,transform] duration-150 motion-reduce:transition-none"],{variants:{size:{sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl"},focused:{true:"opacity-0 scale-95",false:"opacity-100 scale-100"}},defaultVariants:{size:Mr.md,focused:!1}}),Nu=ro("select-none font-medium text-muted-foreground",{variants:{size:{sm:"px-0.5 text-sm",md:"px-0.5 text-base",lg:"px-1 text-lg",xl:"px-1.5 text-xl"}},defaultVariants:{size:Mr.md}});function zT(e){if(!Number.isFinite(e))return 6;return Math.max(1,Math.floor(e))}function ei(e,t){let r=(e??"").split("").slice(0,t);if(r.length<t)return r.concat(Array(t-r.length).fill(""));return r}var Lu=NT(({className:e,length:t=6,value:r,onChange:o,onComplete:n,size:i=Mr.md,status:s=So.default,disabled:l=!1,autoFocus:m=!1,mask:d=!1,groupSize:c,separator:u,separatorChar:g="—",placeholder:T="•",inputMode:b="numeric",pattern:h="[0-9]*",...N},v)=>{let p=f(i),P=zT(t),M=LT([]),[k,H]=vu(null),[S,w]=vu(()=>ei(r,P));bu(()=>{if(r!==void 0){w(ei(r,P));return}w((y)=>ei(y.join(""),P))},[r,P]),bu(()=>{if(m)M.current[0]?.focus()},[m]);let J=yu(()=>{if(typeof c==="number"&&Number.isFinite(c)){let y=Math.floor(c);if(y<=0)return P;return Math.min(P,Math.max(1,y))}if(typeof u==="number"&&Number.isFinite(u)){let y=Math.floor(u);if(y<=0)return P;return Math.min(P,Math.max(1,y))}if(u)return Math.max(1,Math.floor(P/2));return P},[c,P,u]),Y=yu(()=>{let y=[];for(let x=0;x<P;x+=J){let C=Math.min(x+J,P),ne=[];for(let _=x;_<C;_+=1)ne.push(_);y.push(ne)}return y},[J,P]),q=Pr((y)=>{let x=M.current[y];if(!x)return;x.focus(),x.select()},[]),ee=Pr((y)=>{w(y);let x=y.join("");if(o?.(x),y.every((C)=>C!=="")&&x.length===P)n?.(x)},[o,n,P]),me=Pr((y,x)=>{if(l)return;let ne=(b==="numeric"?x.replace(/\D/g,""):x).slice(-1),_=[...S];if(_[y]=ne,ee(_),ne&&y<P-1)q(y+1)},[S,l,ee,q,b,P]),X=Pr((y,x)=>{if(l)return;if(x.key==="Backspace"){if(x.preventDefault(),S[y]){let C=[...S];C[y]="",ee(C);return}if(y>0){let C=[...S];C[y-1]="",ee(C),q(y-1)}return}if(x.key==="Delete"){if(x.preventDefault(),S[y]){let C=[...S];C[y]="",ee(C)}return}if(x.key==="ArrowLeft"){if(x.preventDefault(),y>0)q(y-1);return}if(x.key==="ArrowRight"){if(x.preventDefault(),y<P-1)q(y+1);return}if(x.key==="Home"){x.preventDefault(),q(0);return}if(x.key==="End")x.preventDefault(),q(P-1)},[S,l,ee,q,P]),Q=Pr((y,x)=>{if(x.preventDefault(),l)return;let C=x.clipboardData.getData("text"),_=(b==="numeric"?C.replace(/\D/g,""):C.replace(/\s/g,"")).split("");if(_.length===0)return;let Ce=[...S];for(let ie=0;ie<_.length;ie+=1){let Rt=y+ie;if(Rt>=P)break;Ce[Rt]=_[ie]??""}ee(Ce);let W=Math.min(P-1,y+_.length-1);if(W<P-1){q(W+1);return}M.current[W]?.blur()},[S,l,ee,q,b,P]),A=Pr((y,x)=>{H(y),x.target.select()},[]),oe=Pr(()=>{H(null)},[]),z=u!==void 0,K=g.length>0&&u!==!1&&(z||Y.length>1);return xr("div",{ref:v,className:a(Tu({size:p}),e),role:"group","aria-label":"One-time password input",...N,children:Y.map((y,x)=>xr(MT,{children:[xr("div",{"data-gs-otp-group":"true",className:a(hu({size:p,status:s})),children:y.map((C,ne)=>{let _=S[C]??"",Ce=k===C,W=Io.middle;if(y.length===1)W=Io.single;else if(ne===0)W=Io.first;else if(ne===y.length-1)W=Io.last;return xr("div",{"data-gs-otp-slot":"true","data-disabled":l,className:a(Pu({size:p,filled:Boolean(_),focused:Ce,status:s,disabled:l,position:W})),children:[xr("input",{ref:(ie)=>{M.current[C]=ie},type:d?"password":"text",inputMode:b,pattern:h,maxLength:1,value:_,placeholder:"",disabled:l,"aria-invalid":s===So.error,"aria-label":`Digit ${C+1} of ${P}`,autoComplete:"one-time-code",onChange:(ie)=>me(C,ie.target.value),onKeyDown:(ie)=>X(C,ie),onPaste:(ie)=>Q(C,ie),onFocus:(ie)=>A(C,ie),onBlur:oe,className:a(xu({size:p,status:s,filled:Boolean(_)}))},void 0,!1,void 0,this),!_&&xr("div",{"data-gs-otp-placeholder":"true","aria-hidden":"true",className:a(Mu({size:p,focused:Ce})),children:T},void 0,!1,void 0,this)]},`slot-${C}`,!0,void 0,this)})},void 0,!1,void 0,this),K&&x<Y.length-1&&xr("span",{"data-gs-otp-separator":"true",className:a(Nu({size:p})),children:g},void 0,!1,void 0,this)]},`group-${y[0]}-${y[y.length-1]}`,!0,void 0,this))},void 0,!1,void 0,this)});Lu.displayName="OTPInput";import{createContext as OT,createElement as Fu,useCallback as ct,useContext as WT,useEffect as KT,useMemo as _T,useRef as Gu,useState as UT}from"react";import*as ye from"@radix-ui/react-dialog";import{cva as zu}from"class-variance-authority";import{X as RT}from"lucide-react";import{createContext as CT,forwardRef as Ln,useCallback as HT,useContext as wT,useEffect as kT,useState as Ru}from"react";import{jsxDEV as Ye,Fragment as GT}from"react/jsx-dev-runtime";var Ve={top:oo.top,right:oo.right,bottom:oo.bottom,left:oo.left},ce={sm:I.sm,md:I.md,lg:I.lg,xl:I.xl,full:"full"},AT=160,BT={[Ve.top]:"gs-sheet-content gs-sheet-content-top",[Ve.right]:"gs-sheet-content gs-sheet-content-right",[Ve.bottom]:"gs-sheet-content gs-sheet-content-bottom",[Ve.left]:"gs-sheet-content gs-sheet-content-left"},IT={[Ve.right]:{[ce.sm]:"sm:max-w-sm",[ce.md]:"sm:max-w-md",[ce.lg]:"sm:max-w-lg",[ce.xl]:"sm:max-w-xl",[ce.full]:"sm:max-w-full"},[Ve.left]:{[ce.sm]:"sm:max-w-sm",[ce.md]:"sm:max-w-md",[ce.lg]:"sm:max-w-lg",[ce.xl]:"sm:max-w-xl",[ce.full]:"sm:max-w-full"},[Ve.top]:{[ce.sm]:"sm:max-h-[30vh]",[ce.md]:"sm:max-h-[50vh]",[ce.lg]:"sm:max-h-[70vh]",[ce.xl]:"sm:max-h-[85vh]",[ce.full]:"sm:max-h-full"},[Ve.bottom]:{[ce.sm]:"sm:max-h-[30vh]",[ce.md]:"sm:max-h-[50vh]",[ce.lg]:"sm:max-h-[70vh]",[ce.xl]:"sm:max-h-[85vh]",[ce.full]:"sm:max-h-full"}},Cu=zu(a("gs-sheet-overlay",Kt)),Hu=zu("fixed z-50 flex flex-col gap-4 border border-border bg-card p-6 shadow-[var(--shadow-xl)]",{variants:{side:{[Ve.top]:"inset-x-0 top-0 border-b",[Ve.bottom]:"inset-x-0 bottom-0 border-t",[Ve.left]:"inset-y-0 left-0 h-full w-3/4 border-r",[Ve.right]:"inset-y-0 right-0 h-full w-3/4 border-l"}},defaultVariants:{side:Ve.right}}),wu=CT(!1),ti=({children:e,open:t,defaultOpen:r=!1,onOpenChange:o,...n})=>{let[i,s]=Ru(r),l=t!==void 0,m=l?t:i,d=HT((c)=>{if(!l)s(c);o?.(c)},[l,o]);return Ye(wu.Provider,{value:m,children:Ye(ye.Root,{open:m,onOpenChange:d,...n,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},ST=ye.Trigger,FT=ye.Close,ku=ye.Portal,ri=Ln(({className:e,...t},r)=>Ye(ye.Overlay,{className:a(Cu(),e),...t,ref:r},void 0,!1,void 0,this));ri.displayName=ye.Overlay.displayName;var zn=Ln(({side:e=Ve.right,size:t=ce.md,showClose:r=!0,showOverlay:o=!0,portal:n=le,portalContainer:i,forceMount:s=!1,className:l,children:m,...d},c)=>{let u=wT(wu),[g,T]=Ru(s||u),b=f(t)??ce.md,h=ve(),N=BT[e],v=IT[e][b];if(kT(()=>{if(s||u){T(!0);return}let M=setTimeout(()=>{T(!1)},h?0:AT);return()=>{clearTimeout(M)}},[s,u,h]),!(s||u||g))return null;let P=Ye(GT,{children:[o?Ye(ri,{forceMount:!0},void 0,!1,void 0,this):null,Ye(ye.Content,{ref:c,forceMount:!0,className:a(Hu({side:e}),N,v,l),...d,children:[m,r&&Ye(ye.Close,{className:on,children:[Ye(RT,{className:"size-4"},void 0,!1,void 0,this),Ye("span",{className:"sr-only",children:"Close"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);if(!n)return P;return Ye(ku,{forceMount:!0,container:i??void 0,children:P},void 0,!1,void 0,this)});zn.displayName=ye.Content.displayName;var Au=({className:e,...t})=>Ye("div",{className:a("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);Au.displayName="SheetHeader";var Bu=({className:e,...t})=>Ye("div",{className:a("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);Bu.displayName="SheetFooter";var Iu=Ln(({className:e,...t},r)=>Ye(ye.Title,{ref:r,className:a("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));Iu.displayName=ye.Title.displayName;var Su=Ln(({className:e,...t},r)=>Ye(ye.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));Su.displayName=ye.Description.displayName;import{jsxDEV as no}from"react/jsx-dev-runtime";var Ou=OT(null),Wu=250;function Ku({children:e,removeDelay:t=Wu}){let r=ve(),[o,n]=UT([]),i=Gu(0),s=Gu(new Map),l=ct((p)=>{let P=s.current.get(p);if(P===void 0)return;window.clearTimeout(P),s.current.delete(p)},[]),m=ct((p)=>{l(p),n((P)=>P.filter((M)=>M.id!==p))},[l]),d=ct((p)=>{l(p);let P=r?0:t;if(P<=0){m(p);return}let M=window.setTimeout(()=>{m(p)},P);s.current.set(p,M)},[l,r,t,m]),c=ct((p)=>{n((P)=>P.map((M)=>M.id===p?{...M,open:!1}:M)),d(p)},[d]),u=ct(()=>{n((p)=>{for(let P of p)d(P.id);return p.map((P)=>({...P,open:!1}))})},[d]),g=ct(()=>{return i.current+=1,`overlay-${i.current}`},[]),T=ct((p,P)=>{let M=g();l(M);let k={id:M,kind:"dialog",render:p,open:!0,options:P};return n((H)=>[...H,k]),{id:M,close:()=>c(M)}},[l,c,g]),b=ct((p,P)=>{let M=g();l(M);let k={id:M,kind:"sheet",render:p,open:!0,options:P};return n((H)=>[...H,k]),{id:M,close:()=>c(M)}},[l,c,g]),h=ct((p,P,M)=>{return T((k)=>Fu(p,{...P,close:k}),M)},[T]),N=ct((p,P,M)=>{return b((k)=>Fu(p,{...P,close:k}),M)},[b]);KT(()=>{return()=>{for(let p of s.current.values())window.clearTimeout(p);s.current.clear()}},[]);let v=_T(()=>({dialog:h,sheet:N,close:c,closeAll:u}),[u,c,h,N]);return no(Ou.Provider,{value:v,children:[e,o.map((p)=>no($T,{entry:p,onClose:c},p.id,!1,void 0,this))]},void 0,!0,void 0,this)}Ku.displayName="OverlayProvider";function $T({entry:e,onClose:t}){let r=ct(()=>t(e.id),[e.id,t]);if(e.kind==="dialog")return no(Ro,{open:e.open,onOpenChange:(o)=>!o&&r(),children:no(yn,{...e.options,children:e.render(r)},void 0,!1,void 0,this)},void 0,!1,void 0,this);return no(ti,{open:e.open,onOpenChange:(o)=>!o&&r(),children:no(zn,{...e.options,children:e.render(r)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function YT(){let e=WT(Ou);if(!e)throw Error("useOverlay must be used within an OverlayProvider");return e}import{cva as Fo}from"class-variance-authority";import{ChevronLeft as VT,ChevronRight as XT,MoreHorizontal as JT}from"lucide-react";import{createContext as qT,forwardRef as Go,useContext as Rn}from"react";import{jsxDEV as Xe}from"react/jsx-dev-runtime";var tt={sm:"sm",md:"md",lg:"lg"},Oo=qT(tt.md),_u=Fo("mx-auto flex w-full justify-center"),Uu=Fo("flex flex-row items-center gap-1"),$u=Fo(""),Cn=Fo("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] inline-flex items-center justify-center whitespace-nowrap rounded-[var(--radius)] font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:cursor-not-allowed disabled:border-transparent disabled:bg-muted/40 disabled:text-muted-foreground/70 hover:bg-accent hover:text-accent-foreground",{variants:{isActive:{true:"border border-border bg-background shadow-[var(--shadow-sm)]",false:""},size:{[tt.sm]:"h-7 w-7 text-xs [&_svg]:size-3.5",[tt.md]:"h-9 w-9 text-sm [&_svg]:size-4",[tt.lg]:"h-10 w-10 text-sm [&_svg]:size-5"}},defaultVariants:{isActive:!1,size:tt.md}}),Yu=Fo("flex items-center justify-center",{variants:{size:{[tt.sm]:"h-7 w-7 [&_svg]:size-3.5",[tt.md]:"h-9 w-9 [&_svg]:size-4",[tt.lg]:"h-10 w-10 [&_svg]:size-5"}},defaultVariants:{size:tt.md}}),Vu=({className:e,size:t=tt.md,...r})=>{let o=f(t)??tt.md;return Xe(Oo.Provider,{value:o,children:Xe("nav",{"aria-label":"pagination",className:a(_u(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)};Vu.displayName="Pagination";var Xu=Go(({className:e,...t},r)=>Xe("ul",{ref:r,className:a(Uu(),e),...t},void 0,!1,void 0,this));Xu.displayName="PaginationContent";var Ju=Go(({className:e,...t},r)=>Xe("li",{ref:r,className:a($u(),e),...t},void 0,!1,void 0,this));Ju.displayName="PaginationItem";var qu=Go(({className:e,isActive:t,...r},o)=>{let n=Rn(Oo);return Xe("button",{ref:o,type:"button","aria-current":t?"page":void 0,className:a(Cn({isActive:t,size:n}),e),...r},void 0,!1,void 0,this)});qu.displayName="PaginationLink";var Qu=Go(({className:e,...t},r)=>{let o=Rn(Oo);return Xe("button",{ref:r,type:"button","aria-label":"Go to previous page",className:a(Cn({size:o}),"w-auto gap-1 pr-3 pl-2.5",e),...t,children:[Xe(VT,{},void 0,!1,void 0,this),Xe("span",{children:"Previous"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Qu.displayName="PaginationPrevious";var Zu=Go(({className:e,...t},r)=>{let o=Rn(Oo);return Xe("button",{ref:r,type:"button","aria-label":"Go to next page",className:a(Cn({size:o}),"w-auto gap-1 pr-2.5 pl-3",e),...t,children:[Xe("span",{children:"Next"},void 0,!1,void 0,this),Xe(XT,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Zu.displayName="PaginationNext";var Eu=({className:e,...t})=>{let r=Rn(Oo);return Xe("span",{"aria-hidden":!0,className:a(Yu({size:r}),e),...t,children:[Xe(JT,{},void 0,!1,void 0,this),Xe("span",{className:"sr-only",children:"More pages"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};Eu.displayName="PaginationEllipsis";import*as _o from"@radix-ui/react-progress";import{cva as Du}from"class-variance-authority";import{forwardRef as QT,useEffect as ZT,useRef as ET}from"react";import{jsxDEV as Hn}from"react/jsx-dev-runtime";var Wo={sm:"sm",md:"md",lg:"lg",xl:"xl"},Ko={default:"default",success:"success",warning:"warning",error:"error"},ju=Du("relative w-full overflow-hidden rounded-full bg-muted",{variants:{size:{[Wo.sm]:"h-2",[Wo.md]:"h-2.5",[Wo.lg]:"h-3",[Wo.xl]:"h-3.5"}},defaultVariants:{size:Wo.md}}),ec=Du("h-full w-full flex-1 rounded-full transition-transform duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-productive)]",{variants:{variant:{[Ko.default]:"bg-primary",[Ko.success]:"bg-success",[Ko.warning]:"bg-warning",[Ko.error]:"bg-destructive"}},defaultVariants:{variant:Ko.default}});function DT(e){if(typeof e!=="number"||Number.isNaN(e))return 0;return Math.max(0,Math.min(100,e))}var tc=QT(({className:e,value:t,size:r,variant:o,showValue:n,...i},s)=>{let l=f(r),m=ET(null),d=DT(t);return ZT(()=>{let c=m.current;if(!c)return;c.style.setProperty("--gs-progress-value",`${d}%`)},[d]),Hn("div",{className:"flex w-full items-center gap-2",children:[Hn(_o.Root,{ref:s,className:a(ju({size:l}),e),...i,children:Hn(_o.Indicator,{ref:m,className:a(ec({variant:o}),"[transform:translateX(calc(-100%+var(--gs-progress-value,0%)))]")},void 0,!1,void 0,this)},void 0,!1,void 0,this),n&&Hn("span",{className:"font-medium text-muted-foreground text-sm tabular-nums",children:[d,"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});tc.displayName=_o.Root.displayName;import*as io from"@radix-ui/react-radio-group";import{cva as rc}from"class-variance-authority";import{forwardRef as oc}from"react";import{jsxDEV as wn}from"react/jsx-dev-runtime";var pt={sm:"sm",md:"md",lg:"lg",xl:"xl"},ao={default:"default",error:"error",success:"success"},nc=rc("grid gap-2"),ac=rc("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] aspect-square rounded-full border border-input bg-background ring-offset-background enabled:active:scale-[0.94] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 data-[state=checked]:border-primary data-[state=checked]:text-primary disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground",{variants:{size:{[pt.sm]:"h-4 w-4",[pt.md]:"h-5 w-5",[pt.lg]:"h-6 w-6",[pt.xl]:"h-7 w-7"},status:{[ao.default]:"enabled:hover:border-primary/70",[ao.error]:"border-destructive enabled:hover:border-destructive/70 focus-visible:ring-destructive data-[state=checked]:border-destructive data-[state=checked]:text-destructive",[ao.success]:"border-success enabled:hover:border-success/70 focus-visible:ring-success data-[state=checked]:border-success data-[state=checked]:text-success"}},defaultVariants:{size:pt.md,status:ao.default}}),jT={[pt.sm]:"h-2 w-2",[pt.md]:"h-2.5 w-2.5",[pt.lg]:"h-3 w-3",[pt.xl]:"h-3.5 w-3.5"},ic=oc(({className:e,...t},r)=>wn(io.Root,{ref:r,className:a(nc(),e),...t},void 0,!1,void 0,this));ic.displayName="RadioGroup";var sc=oc(({className:e,size:t=pt.md,status:r=ao.default,...o},n)=>{let i=f(t);return wn(io.Item,{ref:n,className:a(ac({size:i,status:r}),e),...o,children:wn(io.Indicator,{className:"flex items-center justify-center",children:wn("span",{className:a("block rounded-full bg-current transition-transform duration-150",jT[i])},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});sc.displayName="RadioGroupItem";import{cva as An}from"class-variance-authority";import{forwardRef as ni,useCallback as Uo,useEffect as uc,useRef as cc,useState as lc}from"react";import{jsxDEV as kn}from"react/jsx-dev-runtime";var eh=10,th=90,oi=50,pc=An("flex h-full w-full",{variants:{direction:{horizontal:"flex-row",vertical:"flex-col"}},defaultVariants:{direction:"horizontal"}}),fc=An("relative basis-[var(--gs-panel-basis,50%)] overflow-hidden grow-0 shrink-0"),gc=An("relative flex items-center justify-center bg-border transition-colors duration-150 hover:bg-primary/40 active:bg-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",{variants:{direction:{horizontal:"h-full w-1 cursor-col-resize",vertical:"h-1 w-full cursor-row-resize"},withHandle:{true:"",false:""}},compoundVariants:[{direction:"horizontal",withHandle:!0,class:"w-3"},{direction:"vertical",withHandle:!0,class:"h-3"}],defaultVariants:{direction:"horizontal",withHandle:!1}}),bc=An("z-10 flex items-center justify-center rounded-sm bg-border",{variants:{direction:{horizontal:"h-6 w-1",vertical:"h-1 w-6"}},defaultVariants:{direction:"horizontal"}});function yc(e){return Math.max(eh,Math.min(th,e))}function vc(e){return e.dataset.direction==="vertical"?"vertical":"horizontal"}function rh(e,t){let r=Array.from(e.children),o=r.indexOf(t),n;for(let s=o-1;s>=0;s-=1){let l=r[s];if(l instanceof HTMLElement&&l.matches("[data-panel]")){n=l;break}}let i;for(let s=o+1;s<r.length;s+=1){let l=r[s];if(l instanceof HTMLElement&&l.matches("[data-panel]")){i=l;break}}return{prevPanel:n,nextPanel:i}}function mc(e){if(!e)return null;let t=e.closest("[data-panel-group]");if(!(t instanceof HTMLElement))return null;let{prevPanel:r,nextPanel:o}=rh(t,e);if(!(r&&o))return null;return{group:t,direction:vc(t),prevPanel:r,nextPanel:o}}function oh(e){if("touches"in e){let t=e.touches[0];if(!t)return null;return{x:t.clientX,y:t.clientY}}return{x:e.clientX,y:e.clientY}}function dc(e,t,r){let o=yc(r);e.style.setProperty("--gs-panel-basis",`${o}%`),t.style.setProperty("--gs-panel-basis",`${100-o}%`)}function nh(e){let t=e.style.getPropertyValue("--gs-panel-basis").trim();if(t.endsWith("%"))return Number.parseFloat(t)||oi;let r=e.dataset.defaultSize;if(r)return Number.parseFloat(r)||oi;return oi}function ah(e,t,r){if(t==="horizontal"){if(e==="ArrowLeft")return-r;if(e==="ArrowRight")return r;return 0}if(e==="ArrowUp")return-r;if(e==="ArrowDown")return r;return 0}var Tc=ni(({className:e,direction:t="horizontal",children:r,...o},n)=>kn("div",{ref:n,"data-panel-group":"","data-direction":t,className:a(pc({direction:t}),e),...o,children:r},void 0,!1,void 0,this));Tc.displayName="ResizablePanelGroup";var hc=ni(({className:e,defaultSize:t=50,children:r,...o},n)=>{let i=cc(null),s=yc(t);uc(()=>{let m=i.current;if(!m)return;m.style.setProperty("--gs-panel-basis",`${s}%`)},[s]);let l=Uo((m)=>{if(i.current=m,typeof n==="function")n(m);else if(n)n.current=m},[n]);return kn("div",{ref:l,"data-panel":"","data-default-size":s,className:a(fc(),e),...o,children:r},void 0,!1,void 0,this)});hc.displayName="ResizablePanel";var Pc=ni(({className:e,withHandle:t=!1,disabled:r=!1,...o},n)=>{let[i,s]=lc(!1),[l,m]=lc("horizontal"),d=cc(null);uc(()=>{let b=d.current;if(!b)return;let h=b.closest("[data-panel-group]");if(!(h instanceof HTMLElement))return;let N=()=>m(vc(h));N();let v=new MutationObserver(N);return v.observe(h,{attributes:!0,attributeFilter:["data-direction"]}),()=>v.disconnect()},[]);let c=Uo(()=>{if(r)return;s(!0);let b=(N)=>{let v=oh(N);if(!v)return;let p=mc(d.current);if(!p)return;let P=p.group.getBoundingClientRect(),M=p.direction==="horizontal"?P.width:P.height;if(M<=0)return;let H=(p.direction==="horizontal"?v.x-P.left:v.y-P.top)/M*100;dc(p.prevPanel,p.nextPanel,H)},h=()=>{s(!1),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",h),document.removeEventListener("touchmove",b),document.removeEventListener("touchend",h)};document.addEventListener("mousemove",b),document.addEventListener("mouseup",h),document.addEventListener("touchmove",b),document.addEventListener("touchend",h)},[r]),u=Uo((b)=>{b.preventDefault(),c()},[c]),g=Uo((b)=>{if(b.touches.length===0)return;c()},[c]),T=Uo((b)=>{if(r)return;let h=mc(d.current??b.currentTarget);if(!h)return;let N=b.shiftKey?10:1,v=ah(b.key,h.direction,N);if(v===0)return;b.preventDefault();let p=nh(h.prevPanel);dc(h.prevPanel,h.nextPanel,p+v)},[r]);return kn("div",{ref:(b)=>{if(d.current=b,typeof n==="function")n(b);else if(n)n.current=b},role:"separator","aria-orientation":l,"aria-valuemin":10,"aria-valuemax":90,"aria-valuenow":50,tabIndex:r?-1:0,"data-panel-resize-handle":"","data-dragging":i,onMouseDown:u,onTouchStart:g,onKeyDown:T,className:a(gc({direction:l,withHandle:t}),i&&"bg-primary",r&&"pointer-events-none cursor-not-allowed bg-muted/40 text-muted-foreground/70",e),...o,children:t&&kn("div",{className:a(bc({direction:l}))},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Pc.displayName="ResizableHandle";import*as ht from"@radix-ui/react-scroll-area";import{cva as ai}from"class-variance-authority";import{forwardRef as xc}from"react";import{jsxDEV as so}from"react/jsx-dev-runtime";var Mc=ai("relative flex flex-col overflow-hidden"),Nc=ai("flex touch-none select-none transition-colors duration-150",{variants:{orientation:{vertical:"h-full w-2.5 border-l border-l-transparent p-px",horizontal:"h-2.5 flex-col border-t border-t-transparent p-px"}},defaultVariants:{orientation:"vertical"}}),Lc=ai("relative flex-1 rounded-full bg-border"),zc=xc(({className:e,children:t,...r},o)=>so(ht.Root,{ref:o,className:a(Mc(),e),...r,children:[so(ht.Viewport,{className:"min-h-0 w-full flex-1 rounded-[inherit]",children:t},void 0,!1,void 0,this),so(ii,{},void 0,!1,void 0,this),so(ht.Corner,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this));zc.displayName="ScrollArea";var ii=xc(({className:e,orientation:t="vertical",...r},o)=>so(ht.ScrollAreaScrollbar,{ref:o,orientation:t,className:a(Nc({orientation:t}),e),...r,children:so(ht.ScrollAreaThumb,{className:a(Lc())},void 0,!1,void 0,this)},void 0,!1,void 0,this));ii.displayName="ScrollBar";import{cva as li}from"class-variance-authority";import{createContext as dh,forwardRef as mi,useCallback as uh,useContext as Hc,useRef as Cc,useState as ch}from"react";import{useLayoutEffect as Rc,useRef as lo}from"react";var ih={x:0,y:0,width:0,height:0};function sh(e,t){let r=e.querySelector(t);if(!r)return null;return{x:r.offsetLeft,y:r.offsetTop,width:r.offsetWidth,height:r.offsetHeight}}function lh(e,t){let r=e.getBoundingClientRect(),o=t.getBoundingClientRect();return{x:r.left-o.left-t.clientLeft,y:r.top-o.top-t.clientTop,width:r.width,height:r.height}}function si(e,t){let r=e.style;r.transform=`translate3d(${t.x}px,${t.y}px,0)`,r.width=`${t.width}px`,r.height=`${t.height}px`}function mh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Bn(e,t,r){let o=ve(),n=lo(!1),i=lo(ih),s=lo(r.activeSelector);s.current=r.activeSelector;let l=lo(r.observeAttributes);l.current=r.observeAttributes;let m=lo(o);m.current=o;let d=lo(null);d.current=(c,u)=>{let g=sh(c,s.current);if(!g){u.style.opacity="0";return}if(mh(i.current,g)&&n.current)return;if(!n.current||m.current){u.style.transition="none",si(u,g),u.style.opacity="1",u.offsetHeight,u.style.transition="",n.current=!0,i.current=g;return}let T=lh(u,c);u.style.transition="none",si(u,T),u.style.opacity="1",u.offsetHeight,u.style.transition="",si(u,g),i.current=g},Rc(()=>{r.activeKey;let c=e.current,u=t.current;if(!(c&&u))return;d.current?.(c,u)},[r.activeKey,o,e.current,t.current]),Rc(()=>{let c=e.current,u=t.current;if(!(c&&u))return;let g=0;function T(){if(!(c&&u))return;d.current?.(c,u)}function b(){cancelAnimationFrame(g),g=requestAnimationFrame(T)}let h=typeof ResizeObserver<"u"?new ResizeObserver(b):null;h?.observe(c);let N=l.current,v=null;if(N&&N.length>0)v=typeof MutationObserver<"u"?new MutationObserver(b):null,v?.observe(c,{subtree:!0,attributes:!0,attributeFilter:N});return()=>{cancelAnimationFrame(g),h?.disconnect(),v?.disconnect()}},[e.current,t.current])}var In="pointer-events-none absolute top-0 left-0 z-0 rounded-[calc(var(--radius)-2px)] border border-border bg-accent shadow-[var(--shadow-xs)] transition-[transform,width,height,opacity] duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-emphasized)]";import{jsxDEV as Nr}from"react/jsx-dev-runtime";var xe={sm:"sm",md:"md",lg:"lg"},wc=li("relative inline-flex items-center rounded-[var(--radius)] border border-border bg-secondary p-1 text-muted-foreground",{variants:{size:{[xe.sm]:"h-8 gap-0.5",[xe.md]:"h-10 gap-0.5",[xe.lg]:"h-11 gap-1"}},defaultVariants:{size:xe.md}}),kc=li(["relative z-10 inline-flex items-center justify-center rounded-[calc(var(--radius)-2px)]","cursor-pointer select-none outline-none","transition-[color,background-color,box-shadow] duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]","focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:text-muted-foreground/40","leading-none"],{variants:{size:{[xe.sm]:"size-6",[xe.md]:"size-8",[xe.lg]:"size-9"},active:{true:"text-foreground",false:"text-muted-foreground hover:text-foreground/70"}},defaultVariants:{size:xe.md,active:!1}}),Ac=li(["relative z-10 inline-flex items-center justify-center gap-1.5 rounded-[calc(var(--radius)-2px)]","cursor-pointer select-none whitespace-nowrap font-medium leading-none outline-none","transition-[color,background-color,box-shadow] duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]","focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:text-muted-foreground/40"],{variants:{size:{[xe.sm]:"h-6 px-2.5 text-xs",[xe.md]:"h-8 px-3 text-sm",[xe.lg]:"h-9 px-4 text-sm"},active:{true:"text-foreground",false:"text-muted-foreground hover:text-foreground/70"}},defaultVariants:{size:xe.md,active:!1}}),Bc={[xe.sm]:"size-3",[xe.md]:"size-3.5",[xe.lg]:"size-4"},ph=(e)=>{return},di=dh({activeValue:"",onSelect:ph,size:xe.md,disabled:!1}),Ic=mi(({className:e,value:t,defaultValue:r,onValueChange:o,size:n,disabled:i=!1,children:s,...l},m)=>{let d=f(n),[c,u]=ch(r??""),g=Cc(null),T=Bt(m,g),b=Cc(null),h=t!==void 0?t:c,N=uh((v)=>{if(i)return;if(t===void 0)u(v);o?.(v)},[i,o,t]);return Bn(g,b,{activeSelector:"button[data-state='active']",activeKey:h}),Nr(di.Provider,{value:{activeValue:h,onSelect:N,size:d,disabled:i},children:Nr("div",{ref:T,role:"radiogroup",className:a(wc({size:d}),i&&"pointer-events-none cursor-not-allowed border-transparent bg-muted/40 text-muted-foreground/70",e),...l,children:[Nr("span",{ref:b,"aria-hidden":!0,"data-slot":"indicator",className:In,style:{opacity:0}},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Ic.displayName="SegmentedControl";var Sc=mi(({className:e,value:t,icon:r,disabled:o=!1,...n},i)=>{let{activeValue:s,onSelect:l,size:m,disabled:d}=Hc(di),c=s===t,u=o||d;return Nr("button",{ref:i,type:"button",role:"radio","aria-checked":c,"aria-disabled":u||void 0,"data-state":c?"active":"inactive","data-value":t,disabled:u,onClick:()=>l(t),className:a(kc({size:m,active:c}),e),...n,children:Nr("span",{className:a(Bc[m??xe.md],"[&>svg]:size-full"),children:r},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Sc.displayName="SegmentedControlItem";var Fc=mi(({className:e,value:t,icon:r,disabled:o=!1,children:n,...i},s)=>{let{activeValue:l,onSelect:m,size:d,disabled:c}=Hc(di),u=l===t,g=o||c;return Nr("button",{ref:s,type:"button",role:"radio","aria-checked":u,"aria-disabled":g||void 0,"data-state":u?"active":"inactive","data-value":t,disabled:g,onClick:()=>m(t),className:a(Ac({size:d,active:u}),e),...i,children:[r&&Nr("span",{className:a(Bc[d??xe.md],"[&>svg]:size-full"),children:r},void 0,!1,void 0,this),n]},void 0,!0,void 0,this)});Fc.displayName="SegmentedControlLabelItem";var fh=xe;import*as Dt from"@radix-ui/react-popover";import{cva as Oc}from"class-variance-authority";import{Check as gh,ChevronDown as bh,X as yh}from"lucide-react";import{Children as vh,createContext as Th,forwardRef as Xo,isValidElement as ci,useCallback as Yo,useContext as Wc,useEffect as Sn,useId as Gc,useMemo as hh,useRef as Kc,useState as $o}from"react";import{jsxDEV as pe,Fragment as Ch}from"react/jsx-dev-runtime";var ae={sm:"sm",md:"md",lg:"lg",xl:"xl"},mo={default:"default",error:"error",success:"success"},Vo={trigger:"trigger",auto:"auto"},Ph={start:"start",center:"center",end:"end"},_c=Oc(["group flex items-center gap-2 rounded-[var(--radius)] border border-input","bg-background text-sm text-foreground outline-none","placeholder:text-muted-foreground focus-visible:ring-2","data-[state=open]:ring-2","disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground","data-[placeholder]:text-muted-foreground","[&_[data-slot=select-value]]:line-clamp-1"].join(" "),{variants:{size:{[ae.sm]:"h-8 px-2.5 text-xs",[ae.md]:"h-10 px-3.5",[ae.lg]:"h-11 px-4.5 text-sm",[ae.xl]:"h-12 px-4 text-base"},status:{[mo.default]:"focus-visible:ring-primary data-[state=open]:ring-primary",[mo.error]:"border-destructive focus-visible:ring-destructive data-[state=open]:ring-destructive",[mo.success]:"border-success focus-visible:ring-success data-[state=open]:ring-success"}},defaultVariants:{size:ae.md,status:mo.default}}),Uc=Oc(["max-h-96 overflow-y-auto overflow-x-hidden"].join(" "),{variants:{widthMode:{[Vo.trigger]:"w-[var(--radix-popover-trigger-width)]",[Vo.auto]:"w-max min-w-0"},size:{[ae.sm]:"text-xs",[ae.md]:"text-sm",[ae.lg]:"text-sm",[ae.xl]:"text-base"}},defaultVariants:{widthMode:Vo.auto,size:ae.md}}),xh={[ae.sm]:"min-h-7.5 py-1.5 px-2.5 pr-3 text-xs",[ae.md]:"min-h-9 py-2 px-3 pr-4.5 text-sm",[ae.lg]:"min-h-10 py-2.5 px-3.5 pr-5.5 text-sm",[ae.xl]:"min-h-11 py-3 px-4 pr-6 text-base"},Mh={[ae.sm]:"px-2 py-1 text-xs",[ae.md]:"px-2 py-1.5 text-sm",[ae.lg]:"px-2.5 py-1.5 text-sm",[ae.xl]:"px-3 py-2 text-base"},Fn={[ae.sm]:"size-3.5",[ae.md]:"size-4",[ae.lg]:"size-4",[ae.xl]:"size-4.5"};function Nh(e){if(!ci(e))return!1;let t=e.type;if(typeof t==="string"||typeof t!=="function"&&typeof t!=="object"||t===null)return!1;return Reflect.get(t,"displayName")==="SelectItem"}function ui(e,t){if(e===null||e===void 0||typeof e==="boolean")return;if(Array.isArray(e)){for(let o of e)ui(o,t);return}if(!ci(e))return;if(Nh(e)){let o=typeof e.props.value==="string"?e.props.value:"";if(o.length>0){let n=typeof e.props.label==="string"?e.props.label:Gn(e.props.children).trim();if(n.length>0)t.set(o,n)}}let r=e.props.children;if(r!==void 0)ui(r,t)}function Gn(e){if(e===null||e===void 0||typeof e==="boolean")return"";if(typeof e==="string"||typeof e==="number")return String(e);if(Array.isArray(e))return e.map((t)=>Gn(t)).join("");if(ci(e))return Gn(e.props.children);return""}var pi=Th(null);function On(){let e=Wc(pi);if(!e)throw Error("Select components must be used within Select");return e}function fi(e){let t=Wc(pi);if(e)return e;return t?.triggerSize??ae.md}var Lh=({children:e,value:t,defaultValue:r="",onValueChange:o,open:n,defaultOpen:i=!1,onOpenChange:s,disabled:l=!1})=>{let[m,d]=$o(ae.md),[c,u]=$o(!1),[g,T]=$o(r),[b,h]=$o(i),[,N]=$o(0),v=Kc(new Map),p=hh(()=>{let X=new Map;return ui(e,X),X},[e]),P=t!==void 0,M=n!==void 0,k=P?t:g,H=M?n:b,S=Yo((X)=>{if(!P)T(X);if(o?.(X),!M)h(!1);s?.(!1)},[P,M,o,s]),w=Yo((X)=>{if(l)return;if(!M)h(X);s?.(X)},[l,M,s]),J=Yo((X,Q)=>{if(v.current.get(X)!==Q)v.current.set(X,Q),N((oe)=>oe+1)},[]),Y=Yo((X)=>{return v.current.get(X)??p.get(X)},[p]),q=Gc(),ee=Gc(),me={value:k,onValueChange:S,open:H,onOpenChange:w,triggerSize:m,setTriggerSize:d,triggerFullWidth:c,setTriggerFullWidth:u,disabled:l,triggerId:q,contentId:ee,registerItem:J,getLabel:Y};return pe(pi.Provider,{value:me,children:pe(Dt.Root,{open:H,onOpenChange:w,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},zh=({children:e,className:t})=>pe("div",{role:"group",className:t,children:e},void 0,!1,void 0,this),Rh=({placeholder:e})=>{let{value:t,getLabel:r}=On();if(!t)return e?pe("span",{className:"text-muted-foreground",children:e},void 0,!1,void 0,this):null;let o=r(t);return pe(Ch,{children:o??t},void 0,!1,void 0,this)},$c=Xo(({className:e,children:t,size:r=ae.md,status:o=mo.default,fullWidth:n=!1,clearable:i=!1,leadingIcon:s,indicatorIcon:l,renderValue:m,placeholder:d,onKeyDown:c,...u},g)=>{let T=On(),b=f(r)??r,h=T.setTriggerSize,N=T.setTriggerFullWidth;Sn(()=>{h(b)},[b,h]),Sn(()=>{N(n)},[n,N]);let v=T.value.length>0,p=i&&v&&!T.disabled,P=()=>{T.onValueChange("")},M;if(m)M=v?m(T.value):d?pe("span",{className:"text-muted-foreground",children:d},void 0,!1,void 0,this):null;else M=t;let k=(H)=>{if(c?.(H),H.defaultPrevented)return;if(H.key==="ArrowDown"||H.key==="ArrowUp"||H.key==="Enter"||H.key===" "){if(!T.open)H.preventDefault(),T.onOpenChange(!0)}};return pe(Dt.Trigger,{asChild:!0,children:pe("button",{ref:g,type:"button",role:"combobox","aria-expanded":T.open,"aria-haspopup":"listbox","aria-controls":T.contentId,id:T.triggerId,disabled:T.disabled,"data-state":T.open?"open":"closed","data-placeholder":v?void 0:"",className:a(_c({size:b,status:o}),n?"w-full":"w-auto",e),onKeyDown:k,...u,children:[s&&pe("i",{className:"inline-flex shrink-0 items-center text-muted-foreground not-italic",children:s},void 0,!1,void 0,this),pe("span",{"data-slot":"select-value",className:"min-w-0 flex-1 text-left",children:M},void 0,!1,void 0,this),pe("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[p&&pe("span",{role:"button",tabIndex:-1,"aria-label":"Clear selection",onPointerDown:(H)=>{H.stopPropagation(),H.preventDefault(),P()},className:"inline-flex items-center justify-center rounded-[calc(var(--radius)-4px)] text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:pe(yh,{className:Fn[b]},void 0,!1,void 0,this)},void 0,!1,void 0,this),l??pe(bh,{className:a(Fn[b],"opacity-60 transition-transform duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-productive)]",T.open&&"rotate-180")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});$c.displayName="SelectTrigger";var Yc=Xo(({className:e,children:t,widthMode:r,size:o,align:n="start",side:i="bottom",sideOffset:s=4,portal:l=le,portalContainer:m,forceMount:d=!1,onKeyDown:c,...u},g)=>{let T=On(),b=fi(o),h=r??Vo.auto,N=Kc(null),v=Bt(g,N),p=Yo((k)=>{let H=N.current;if(!H)return;let S=Array.from(H.querySelectorAll('[role="option"]:not([data-disabled])'));if(S.length===0)return;let w=H.querySelector('[role="option"]:focus'),J=w?S.indexOf(w):-1,Y;switch(k){case"first":Y=S[0];break;case"last":Y=S[S.length-1];break;case"next":Y=S[J+1]??S[0];break;case"prev":Y=S[J-1]??S[S.length-1];break}Y?.focus()},[]),P=(k)=>{if(c?.(k),k.defaultPrevented)return;switch(k.key){case"ArrowDown":k.preventDefault(),p("next");break;case"ArrowUp":k.preventDefault(),p("prev");break;case"Home":k.preventDefault(),p("first");break;case"End":k.preventDefault(),p("last");break;case"Escape":k.preventDefault(),T.onOpenChange(!1);break}};Sn(()=>{if(T.open)requestAnimationFrame(()=>p("first"))},[T.open,p]);let M=pe(Dt.Content,{ref:v,id:T.contentId,role:"listbox","aria-labelledby":T.triggerId,side:i,align:n,sideOffset:s,forceMount:d?!0:void 0,onKeyDown:P,onOpenAutoFocus:(k)=>k.preventDefault(),className:a(Dr(),Uc({widthMode:h,size:b}),"p-1",e),...u,children:t},void 0,!1,void 0,this);if(l)return pe(Dt.Portal,{container:m??void 0,children:M},void 0,!1,void 0,this);return M});Yc.displayName="SelectContent";var Vc=Xo(({className:e,size:t,...r},o)=>{let n=fi(t);return pe("div",{ref:o,className:a("font-semibold text-foreground",Mh[n],e),...r},void 0,!1,void 0,this)});Vc.displayName="SelectLabel";var Xc=Xo(({className:e,children:t,value:r,label:o,size:n,disabled:i=!1,...s},l)=>{let m=On(),d=fi(n),c=m.value===r,u=m.registerItem,g=Gn(vh.toArray(t)).trim();Sn(()=>{let h=o??(g.length>0?g:r);u(r,h)},[g,r,o,u]);let T=()=>{if(!i)m.onValueChange(r)},b=(h)=>{if(h.key==="Enter"||h.key===" ")h.preventDefault(),T()};return pe("div",{ref:l,role:"option",tabIndex:i?void 0:-1,"aria-selected":c,"aria-disabled":i||void 0,"data-selected":c?"":void 0,"data-disabled":i?"":void 0,"data-value":r,className:a("relative flex w-full cursor-pointer select-none items-center gap-2","rounded-[calc(var(--radius)-3px)] outline-none","hover:bg-accent focus-visible:bg-accent focus-visible:text-accent-foreground","data-disabled:cursor-not-allowed data-disabled:border-transparent data-disabled:bg-muted/40 data-disabled:text-muted-foreground/70",xh[d],c&&"bg-accent/50",e),onClick:T,onKeyDown:b,...s,children:[pe("span",{className:a("flex shrink-0 items-center justify-center",Fn[d]),children:c&&pe(gh,{className:Fn[d]},void 0,!1,void 0,this)},void 0,!1,void 0,this),pe("span",{className:"min-w-0 flex-1 truncate",children:t},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Xc.displayName="SelectItem";var Jc=Xo(({className:e,...t},r)=>pe("div",{ref:r,className:a("-mx-1 my-1 h-px bg-border",e),...t},void 0,!1,void 0,this));Jc.displayName="SelectSeparator";import{cva as Hh}from"class-variance-authority";import{forwardRef as wh}from"react";import{jsxDEV as kh}from"react/jsx-dev-runtime";var Jo={horizontal:"horizontal",vertical:"vertical"},qc=Hh("shrink-0 bg-border",{variants:{orientation:{[Jo.horizontal]:"h-px w-full",[Jo.vertical]:"h-full w-px"}},defaultVariants:{orientation:Jo.horizontal}}),Qc=wh(({className:e,orientation:t=Jo.horizontal,decorative:r=!0,...o},n)=>{let i=r?{role:"none"}:{role:"separator","aria-orientation":t};return kh("div",{ref:n,className:a(qc({orientation:t}),e),...i,...o},void 0,!1,void 0,this)});Qc.displayName="Separator";import{cva as Wn}from"class-variance-authority";import{forwardRef as Kn}from"react";import{jsxDEV as _n}from"react/jsx-dev-runtime";var Me={sm:"sm",md:"md",lg:"lg"},Zc=Wn("animate-pulse rounded-[var(--radius)] bg-muted"),Ec=Wn("w-full",{variants:{size:{[Me.sm]:"h-3",[Me.md]:"h-4",[Me.lg]:"h-5"}},defaultVariants:{size:Me.md}}),Dc=Wn("",{variants:{size:{[Me.sm]:"h-8 w-8",[Me.md]:"h-10 w-10",[Me.lg]:"h-12 w-12"}},defaultVariants:{size:Me.md}}),jc=Wn("",{variants:{size:{[Me.sm]:"h-8 w-20",[Me.md]:"h-9 w-24",[Me.lg]:"h-10 w-28"}},defaultVariants:{size:Me.md}}),qo=Kn(({className:e,circle:t=!1,...r},o)=>_n("div",{ref:o,className:a(Zc(),t&&"rounded-full",e),...r},void 0,!1,void 0,this));qo.displayName="Skeleton";var ep=Kn(({className:e,size:t=Me.md,...r},o)=>{let n=f(t)??Me.md;return _n(qo,{ref:o,className:a(Ec({size:n}),e),...r},void 0,!1,void 0,this)});ep.displayName="SkeletonText";var tp=Kn(({className:e,size:t=Me.md,...r},o)=>{let n=f(t)??Me.md;return _n(qo,{ref:o,circle:!0,className:a(Dc({size:n}),e),...r},void 0,!1,void 0,this)});tp.displayName="SkeletonAvatar";var rp=Kn(({className:e,size:t=Me.md,...r},o)=>{let n=f(t)??Me.md;return _n(qo,{ref:o,className:a(jc({size:n}),e),...r},void 0,!1,void 0,this)});rp.displayName="SkeletonButton";import*as jt from"@radix-ui/react-slider";import{cva as $n}from"class-variance-authority";import{forwardRef as Ah}from"react";import{jsxDEV as Un}from"react/jsx-dev-runtime";var uo={sm:"sm",md:"md",lg:"lg"},op=$n("relative flex w-full touch-none select-none items-center"),np=$n("relative w-full grow overflow-hidden rounded-full bg-secondary"),ap=$n("absolute h-full bg-primary"),ip=$n("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] block cursor-grab rounded-full border-2 border-primary bg-background ring-offset-background active:cursor-grabbing focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/40 disabled:text-muted-foreground/70"),Bh={[uo.sm]:"h-2",[uo.md]:"h-2.5",[uo.lg]:"h-3"},Ih={[uo.sm]:"h-4 w-4",[uo.md]:"h-5 w-5",[uo.lg]:"h-6 w-6"},sp=Ah(({className:e,size:t,...r},o)=>{let n=f(t);return Un(jt.Root,{ref:o,className:a(op(),e),...r,children:[Un(jt.Track,{"data-slider-track":!0,className:a(np(),Bh[n]),children:Un(jt.Range,{className:a(ap())},void 0,!1,void 0,this)},void 0,!1,void 0,this),(r.defaultValue??r.value??[0]).map((i,s)=>Un(jt.Thumb,{"data-slider-thumb":!0,className:a(ip(),Ih[n])},`thumb-${String(s)}`,!1,void 0,this))]},void 0,!0,void 0,this)});sp.displayName="Slider";import{cva as Ae}from"class-variance-authority";import{forwardRef as Oh,useCallback as gi,useEffect as yi,useLayoutEffect as Wh,useMemo as co,useRef as Pt,useState as bi}from"react";import{useCallback as lp,useSyncExternalStore as Sh}from"react";var Fh=()=>!1,Gh=()=>{return};function mp(e){let t=lp((o)=>{if(typeof window>"u")return Gh;let n=window.matchMedia(e);return n.addEventListener("change",o),()=>n.removeEventListener("change",o)},[e]),r=lp(()=>{if(typeof window>"u")return!1;return window.matchMedia(e).matches},[e]);return Sh(t,r,Fh)}import{jsxDEV as $,Fragment as Rp}from"react/jsx-dev-runtime";var Kh="(max-width: 639px)",R={sm:"sm",md:"md",lg:"lg",xl:"xl"},vi={sm:"sm",md:"sm",lg:"md",xl:"md"},Yn={idle:"idle",loading:"loading",error:"error"},_h=160,dp=Ae("z-[120] bg-black/40"),up=Ae(["gs-spotlight-content fixed inset-x-0 top-[15vh] z-[120] w-full mx-auto","rounded-[calc(var(--radius)+6px)] border border-border bg-popover shadow-2xl","overflow-hidden"],{variants:{size:{[R.sm]:"max-w-md",[R.md]:"max-w-xl",[R.lg]:"max-w-2xl",[R.xl]:"max-w-3xl"}},defaultVariants:{size:R.md}}),cp=Ae(["gs-sheet-content gs-sheet-content-bottom","fixed inset-x-0 bottom-0 z-[120] w-full flex flex-col","rounded-t-2xl border-t border-x border-border bg-popover shadow-2xl","overflow-hidden"]),pp=Ae("flex items-center border-b border-border",{variants:{size:{[R.sm]:"gap-2 px-3 py-2",[R.md]:"gap-3 px-4 py-3",[R.lg]:"gap-3 px-5 py-3.5",[R.xl]:"gap-4 px-6 py-4"}},defaultVariants:{size:R.md}}),fp=Ae(["w-full flex-1 bg-transparent text-foreground","placeholder:text-muted-foreground","outline-none border-none"],{variants:{size:{[R.sm]:"text-sm",[R.md]:"text-base",[R.lg]:"text-lg",[R.xl]:"text-xl"}},defaultVariants:{size:R.md}}),gp=Ae("text-muted-foreground shrink-0",{variants:{size:{[R.sm]:"size-3.5",[R.md]:"size-4",[R.lg]:"size-5",[R.xl]:"size-5"}},defaultVariants:{size:R.md}}),bp=Ae("overflow-y-auto py-1",{variants:{size:{[R.sm]:"max-h-64",[R.md]:"max-h-80",[R.lg]:"max-h-96",[R.xl]:"max-h-[28rem]"}},defaultVariants:{size:R.md}}),yp=Ae("font-semibold text-muted-foreground uppercase tracking-wide",{variants:{size:{[R.sm]:"px-2.5 py-1.5 text-[11px]",[R.md]:"px-3 py-2 text-xs",[R.lg]:"px-3.5 py-2 text-xs",[R.xl]:"px-4 py-2.5 text-xs"}},defaultVariants:{size:R.md}}),vp=Ae(["group flex items-center cursor-pointer rounded-lg","text-foreground","transition-[color,background-color,box-shadow] duration-100","active:scale-[0.98]"],{variants:{size:{[R.sm]:"gap-2 px-2.5 py-1.5 mx-1.5",[R.md]:"gap-3 px-3 py-2 mx-2",[R.lg]:"gap-3 px-3.5 py-2.5 mx-2",[R.xl]:"gap-4 px-4 py-3 mx-2.5"},selected:{true:"bg-primary/10",false:"hover:bg-muted"},disabled:{true:"text-muted-foreground cursor-not-allowed pointer-events-none bg-muted/40",false:""}},defaultVariants:{size:R.md,selected:!1,disabled:!1}}),Tp=Ae("shrink-0",{variants:{size:{[R.sm]:"size-3.5",[R.md]:"size-4",[R.lg]:"size-5",[R.xl]:"size-5"},selected:{true:"text-primary",false:"text-muted-foreground"}},defaultVariants:{size:R.md,selected:!1}}),hp=Ae("flex-1 min-w-0"),Pp=Ae("font-medium truncate",{variants:{size:{[R.sm]:"text-xs",[R.md]:"text-sm",[R.lg]:"text-sm",[R.xl]:"text-base"}},defaultVariants:{size:R.md}}),xp=Ae("text-muted-foreground truncate",{variants:{size:{[R.sm]:"text-[11px]",[R.md]:"text-xs",[R.lg]:"text-xs",[R.xl]:"text-sm"}},defaultVariants:{size:R.md}}),Mp=Ae("flex items-center gap-1 text-muted-foreground shrink-0",{variants:{size:{[R.sm]:"text-[11px]",[R.md]:"text-[11px]",[R.lg]:"text-xs",[R.xl]:"text-xs"}},defaultVariants:{size:R.md}}),Vn=Ae("flex flex-col items-center justify-center text-muted-foreground",{variants:{size:{[R.sm]:"py-6 min-h-20",[R.md]:"py-8 min-h-24",[R.lg]:"py-10 min-h-28",[R.xl]:"py-12 min-h-32"},state:{empty:"text-muted-foreground",loading:"text-muted-foreground",error:"text-destructive"}},defaultVariants:{size:R.md,state:"empty"}}),Xn=Ae("font-medium",{variants:{size:{[R.sm]:"text-xs",[R.md]:"text-sm",[R.lg]:"text-sm",[R.xl]:"text-base"}},defaultVariants:{size:R.md}}),Np=Ae("mt-1",{variants:{size:{[R.sm]:"text-[11px]",[R.md]:"text-xs",[R.lg]:"text-xs",[R.xl]:"text-sm"}},defaultVariants:{size:R.md}}),Lp=(e,t)=>{if(!t)return!0;let r=t.toLowerCase();return e.title.toLowerCase().includes(r)||(e.description?.toLowerCase().includes(r)??!1)||(e.keywords?.some((o)=>o.toLowerCase().includes(r))??!1)};function Uh(e,t){let r=Pt(null),o=Pt(null),n=Pt(null),i=Pt(!0),s=Pt(t);return yi(()=>{if(e)i.current=!0},[e]),Wh(()=>{let l=r.current,m=o.current,d=n.current;if(!(l&&m&&d))return;let c=m.scrollHeight,u=s.current!==t;if(s.current=t,i.current)l.style.transition="none",l.style.height=`${c}px`,d.style.transition="none",d.style.opacity="1",requestAnimationFrame(()=>{l.style.transition="",d.style.transition="",i.current=!1});else if(u)d.style.transition="none",d.style.opacity="0",l.style.height=`${c}px`,requestAnimationFrame(()=>{d.style.transition="opacity 200ms var(--motion-ease-emphasized)",d.style.opacity="1"});else l.style.height=`${c}px`}),{wrapperRef:r,contentRef:o,viewRef:n}}function $h({action:e,size:t,isActive:r,isDisabled:o,isMac:n,onClick:i,renderItem:s,index:l}){let m=e.shortcut?Jn(e.shortcut,n):[],d=new Map,c=m.map((u)=>{let g=(d.get(u)??0)+1;return d.set(u,g),{token:u,key:`${u}-${g}`}});return $("div",{role:"option","aria-selected":r,"aria-disabled":o,tabIndex:o?-1:0,onClick:i,onKeyDown:(u)=>{if(u.key==="Enter"||u.key===" ")u.preventDefault(),i()},className:a(vp({size:t,selected:r,disabled:o})),children:s?s(e,{active:r,disabled:o,index:l}):$(Rp,{children:[e.icon&&$("span",{className:a(Tp({size:t,selected:r})),children:e.icon},void 0,!1,void 0,this),$("div",{className:a(hp()),children:[$("div",{className:a(Pp({size:t})),children:e.title},void 0,!1,void 0,this),e.description&&$("div",{className:a(xp({size:t})),children:e.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c.length>0&&$("div",{className:a(Mp({size:t})),children:c.map((u)=>$("kbd",{className:a(Zr({size:vi[t]})),children:u.token},u.key,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var zp=Oh(({className:e,open:t,onOpenChange:r,actions:o,onActionSelect:n,value:i,defaultValue:s="",onValueChange:l,placeholder:m="Search commands, pages, or actions...",size:d=R.md,status:c=Yn.idle,statusMessage:u,emptyText:g="No command found for this query.",hotkey:T,portal:b=!0,filterFn:h,renderItem:N,footer:v,...p},P)=>{let M=Pt(null),k=Pt(null),[H,S]=bi(s),[w,J]=bi(0),[Y,q]=bi(t),{isMac:ee}=Bo(),me=mp(Kh),X=ve(),Q=co(()=>T&&T.length>0?T.join("+"):null,[T]),A=co(()=>T?Jn(T,ee):[],[T,ee]),oe=co(()=>{let B=new Map;return A.map((ge)=>{let Le=(B.get(ge)??0)+1;return B.set(ge,Le),{token:ge,key:`${ge}-${Le}`}})},[A]);zo(Q??"",()=>r(!t),{enabled:!!Q});let z=i!==void 0?i:H,K=h??Lp,y=co(()=>o.filter((B)=>K(B,z)),[o,z,K]),x=co(()=>y.flatMap((B,ge)=>B.disabled?[]:[ge]),[y]),C=co(()=>{let B=new Map,ge=new Map,Le=0;for(let L of y){let D=L.group??"";if(!B.has(D))B.set(D,[]);B.get(D)?.push(L),ge.set(L,Le++)}return{groups:B,indexMap:ge}},[y]),ne=Pt(!1),_=Pt(t);if(_.current!==t)ne.current=!t,_.current=t;let Ce=Pt({query:z,status:c,statusMessage:u??null,filtered:y,grouped:C,activeIndex:w,emptyText:g});if(!ne.current)Ce.current={query:z,status:c,statusMessage:u??null,filtered:y,grouped:C,activeIndex:w,emptyText:g};let W=Ce.current,ie=W.status===Yn.loading?"loading":W.status===Yn.error?"error":W.filtered.length===0?"empty":"results",{wrapperRef:Rt,contentRef:at,viewRef:V}=Uh(t,ie);yi(()=>{if(t)J(0)},[t]),yi(()=>{if(t){q(!0);return}let B=setTimeout(()=>{q(!1)},X?0:_h);return()=>{clearTimeout(B)}},[t,X]);let fe=t||Y,se=gi((B)=>{S(B.target.value),l?.(B.target.value),J(0)},[l]),Ne=gi((B)=>{k.current?.querySelectorAll('[role="option"]')[B]?.scrollIntoView({block:"nearest"})},[]),Ue=gi((B)=>{if(B.key==="ArrowDown"||B.key==="ArrowUp"){if(B.preventDefault(),x.length===0)return;let ge=x.indexOf(w),Le=B.key==="ArrowDown"?x[(ge+1)%x.length]:x[(ge-1+x.length)%x.length];if(Le!==void 0)J(Le),Ne(Le);return}if(B.key==="Enter"){B.preventDefault();let ge=y[w];if(ge&&!ge.disabled)n(ge,w)}},[w,x,y,n,Ne]),bt=$(Rp,{children:[$(Co,{forceMount:!0,"data-testid":"spotlight-overlay",className:a(dp()),onClick:()=>r(!1)},void 0,!1,void 0,this),$(Ua,{...p,ref:P,forceMount:!0,className:a(me?cp():up({size:d}),e),"aria-label":"Spotlight search","aria-describedby":void 0,onOpenAutoFocus:(B)=>{B.preventDefault(),M.current?.focus()},onCloseAutoFocus:(B)=>B.preventDefault(),onKeyDown:Ue,children:[$(vn,{className:"sr-only",children:"Spotlight search"},void 0,!1,void 0,this),me&&$("div",{className:"flex justify-center pt-2 pb-1",children:$("div",{className:"h-1 w-8 rounded-full bg-muted-foreground/30"},void 0,!1,void 0,this)},void 0,!1,void 0,this),$("div",{className:a(pp({size:d})),children:[$("svg",{className:a(gp({size:d})),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:$("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),$("input",{ref:M,type:"text",value:W.query,onChange:se,placeholder:m,"aria-label":"Search",className:a(fp({size:d}))},void 0,!1,void 0,this),!me&&(T?$("div",{className:"flex items-center gap-1",children:oe.map((B)=>$("kbd",{className:a(Zr({size:vi[d]})),children:B.token},B.key,!1,void 0,this))},void 0,!1,void 0,this):$("kbd",{className:a(Zr({size:vi[d]})),children:"ESC"},void 0,!1,void 0,this))]},void 0,!0,void 0,this),$("div",{ref:Rt,className:"overflow-hidden transition-[height] duration-200 ease-[var(--motion-ease-emphasized)] motion-reduce:transition-none",children:$("div",{ref:at,children:$("div",{ref:V,children:[ie==="loading"&&$("div",{className:a(Vn({size:d,state:"loading"})),children:[$(Ot,{size:"sm",className:"mb-2 text-muted-foreground"},void 0,!1,void 0,this),$("div",{className:a(Xn({size:d})),children:"Searching commands..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ie==="error"&&$("div",{className:a(Vn({size:d,state:"error"})),children:[$("div",{className:a(Xn({size:d})),children:"Search failed"},void 0,!1,void 0,this),W.statusMessage&&$("div",{className:a(Np({size:d})),children:W.statusMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ie==="empty"&&$("div",{className:a(Vn({size:d,state:"empty"})),children:$("div",{className:a(Xn({size:d})),children:W.emptyText},void 0,!1,void 0,this)},void 0,!1,void 0,this),ie==="results"&&$("div",{ref:k,role:"listbox","aria-label":"Search results",className:a(bp({size:d}),me&&"max-h-none min-h-0 flex-1"),children:Array.from(W.grouped.groups.entries()).map(([B,ge])=>$("div",{children:[B&&$("div",{className:a(yp({size:d})),children:B},void 0,!1,void 0,this),ge.map((Le)=>{let L=W.grouped.indexMap.get(Le)??0;return $($h,{action:Le,size:d,isActive:L===W.activeIndex,isDisabled:Le.disabled??!1,isMac:ee,index:L,onClick:()=>{if(!Le.disabled)n(Le,L)},renderItem:N},Le.id,!1,void 0,this)})]},B||"__ungrouped__",!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),v&&$("div",{className:"border-border border-t px-3 py-2",children:v},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);return $(Ro,{open:t,onOpenChange:r,children:fe?b?$(bn,{forceMount:!0,children:bt},void 0,!1,void 0,this):bt:null},void 0,!1,void 0,this)});zp.displayName="Spotlight";import{cva as Yh}from"class-variance-authority";import{forwardRef as Vh}from"react";import{jsxDEV as er}from"react/jsx-dev-runtime";var rt={sm:"sm",md:"md",lg:"lg"},Lr={up:"up",down:"down",neutral:"neutral"},Cp=Yh("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] relative flex flex-col rounded-lg border border-border bg-card text-card-foreground shadow-sm transition-[color,background-color,border-color,box-shadow] duration-150 hover:shadow-md",{variants:{size:{[rt.sm]:"gap-1 p-3",[rt.md]:"gap-1.5 p-4",[rt.lg]:"gap-2 p-5"}},defaultVariants:{size:rt.md}}),Xh={[rt.sm]:"text-lg font-semibold",[rt.md]:"text-2xl font-bold",[rt.lg]:"text-3xl font-bold"},Jh={[rt.sm]:"text-xs",[rt.md]:"text-sm",[rt.lg]:"text-base"},qh={[Lr.up]:"text-success",[Lr.down]:"text-destructive",[Lr.neutral]:"text-muted-foreground"},Qh={[Lr.up]:"↑",[Lr.down]:"↓",[Lr.neutral]:"→"},Hp=Vh(({className:e,size:t=rt.md,label:r,value:o,trend:n,trendValue:i,icon:s,...l},m)=>{let d=f(t);return er("div",{ref:m,className:a(Cp({size:d}),e),...l,children:[er("div",{className:"flex items-center justify-between",children:[er("span",{className:a("text-muted-foreground",Jh[d]),children:r},void 0,!1,void 0,this),s&&er("span",{className:"text-muted-foreground/70","aria-hidden":"true",children:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this),er("div",{className:"flex items-baseline gap-2",children:[er("span",{className:a("text-foreground tracking-tight",Xh[d]),children:o},void 0,!1,void 0,this),n&&i&&er("span",{className:a("inline-flex items-center gap-0.5 font-medium text-xs",qh[n]),children:[er("span",{"aria-hidden":"true",children:Qh[n]},void 0,!1,void 0,this),i]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Hp.displayName="StatCard";import{cva as zr}from"class-variance-authority";import{Check as Zh}from"lucide-react";import{forwardRef as Rr}from"react";import{jsxDEV as tr}from"react/jsx-dev-runtime";var wp=zr("flex w-full",{variants:{orientation:{horizontal:"flex-row items-start",vertical:"flex-col"}},defaultVariants:{orientation:"horizontal"}}),kp=zr("flex",{variants:{orientation:{horizontal:"flex-1 flex-col items-center",vertical:"gap-4 flex-row"}},defaultVariants:{orientation:"horizontal"}}),Ap=zr(["relative z-10 flex shrink-0 items-center justify-center rounded-full border-2 font-semibold","transition-[color,background-color,border-color,box-shadow] duration-200 ease-out"],{variants:{status:{incomplete:["border-border bg-card text-muted-foreground","shadow-[var(--shadow-xs)]"],current:["border-primary bg-primary text-primary-foreground","shadow-[var(--glow-brand-sm)]"],complete:["border-success/60 bg-success text-success-foreground","shadow-[var(--shadow-sm)]","[&>svg]:gs-step-check-animated"]},size:{sm:"h-8 w-8 text-xs",md:"h-10 w-10 text-sm",lg:"h-12 w-12 text-base",xl:"h-14 w-14 text-lg"},animated:{true:"gs-step-indicator-animated",false:""}},defaultVariants:{status:"incomplete",size:"md",animated:!0}}),Bp=zr("rounded-full transition-[background-color,opacity] duration-300 ease-out",{variants:{orientation:{horizontal:"mx-2 mt-5 h-1 flex-1",vertical:"ml-5 min-h-10 w-1"},status:{incomplete:"bg-border/60",complete:"bg-gradient-to-r from-primary to-success"},size:{sm:"opacity-80",md:"",lg:"opacity-95",xl:"opacity-100"},animated:{true:"",false:""}},compoundVariants:[{status:"complete",orientation:"horizontal",animated:!0,className:"gs-connector-fill-animated"},{status:"complete",orientation:"vertical",animated:!0,className:"gs-connector-fill-vertical-animated"}],defaultVariants:{orientation:"horizontal",status:"incomplete",size:"md",animated:!0}}),Ip=zr("flex flex-col",{variants:{orientation:{horizontal:"mt-3 items-center text-center",vertical:"flex-1 pb-8 last:pb-0"}},defaultVariants:{orientation:"horizontal"}}),Sp=zr("font-medium transition-colors duration-200 ease-out",{variants:{status:{incomplete:"text-muted-foreground",current:"text-foreground",complete:"text-foreground"},size:{sm:"text-sm",md:"text-sm",lg:"text-base",xl:"text-lg"}},defaultVariants:{status:"incomplete",size:"md"}}),Fp=zr("text-muted-foreground transition-colors duration-200 ease-out",{variants:{size:{sm:"text-sm",md:"text-xs",lg:"text-sm",xl:"text-base"}},defaultVariants:{size:"md"}});var Gp=Rr(({className:e,orientation:t="horizontal",activeStep:r,...o},n)=>{return tr("div",{ref:n,role:"group","aria-label":"Progress steps",className:a(wp({orientation:t}),e),"data-orientation":t,"data-active-step":r,...o},void 0,!1,void 0,this)});Gp.displayName="Stepper";var Op=Rr(({className:e,orientation:t="horizontal",isLast:r,isCurrent:o,...n},i)=>{return tr("div",{ref:i,className:a(kp({orientation:t}),e),"data-last":r,"aria-current":o?"step":void 0,...n},void 0,!1,void 0,this)});Op.displayName="Step";var Wp=Rr(({className:e,status:t="incomplete",size:r="md",icon:o,step:n,children:i,animated:s=!0,...l},m)=>{let d=f(r);return tr("div",{ref:m,className:a(Ap({status:t,size:d,animated:s}),e),"data-status":t,"aria-hidden":"true",...l,children:t==="complete"?o||tr(Zh,{className:"size-4",strokeWidth:3},void 0,!1,void 0,this):i||n},void 0,!1,void 0,this)});Wp.displayName="StepIndicator";var Kp=Rr(({className:e,orientation:t="horizontal",status:r="incomplete",size:o="md",animated:n=!0,...i},s)=>{let l=f(o);return tr("div",{ref:s,className:a(Bp({orientation:t,status:r,size:l,animated:n}),e),"data-status":r,...i},void 0,!1,void 0,this)});Kp.displayName="StepConnector";var _p=Rr(({className:e,orientation:t="horizontal",...r},o)=>{return tr("div",{ref:o,className:a(Ip({orientation:t}),e),...r},void 0,!1,void 0,this)});_p.displayName="StepContent";var Up=Rr(({className:e,status:t="incomplete",size:r="md",...o},n)=>{let i=f(r);return tr("h4",{ref:n,className:a(Sp({status:t,size:i}),e),...o},void 0,!1,void 0,this)});Up.displayName="StepTitle";var $p=Rr(({className:e,size:t="md",...r},o)=>{let n=f(t);return tr("p",{ref:o,className:a(Fp({size:n}),e),...r},void 0,!1,void 0,this)});$p.displayName="StepDescription";import*as qn from"@radix-ui/react-switch";import{cva as Eh}from"class-variance-authority";import{forwardRef as Dh}from"react";import{jsxDEV as Yp}from"react/jsx-dev-runtime";var Ke={sm:"sm",md:"md",lg:"lg",xl:"xl"},po={default:"default",error:"error",success:"success"},Vp=Eh("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] relative inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent bg-input enabled:active:scale-[0.96] 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:bg-input/70",{variants:{size:{[Ke.sm]:"h-4.5 w-8",[Ke.md]:"h-5 w-9",[Ke.lg]:"h-6 w-11",[Ke.xl]:"h-7 w-[3.25rem]"},status:{[po.default]:"disabled:data-[state=checked]:bg-muted-foreground/40 enabled:data-[state=unchecked]:hover:bg-input/80 data-[state=checked]:bg-primary data-[state=checked]:hover:bg-primary/90",[po.error]:"bg-destructive/30 disabled:bg-destructive/25 disabled:data-[state=checked]:bg-destructive/50 enabled:data-[state=unchecked]:hover:bg-destructive/45 focus-visible:ring-destructive data-[state=checked]:bg-destructive data-[state=checked]:hover:bg-destructive/90",[po.success]:"disabled:bg-success/20 disabled:data-[state=checked]:bg-success/45 focus-visible:ring-success enabled:data-[state=unchecked]:hover:bg-input/80 data-[state=checked]:bg-success data-[state=checked]:hover:bg-success/90"}},defaultVariants:{size:Ke.md,status:po.default}}),jh={[Ke.sm]:"h-3.5 w-3.5",[Ke.md]:"h-4 w-4",[Ke.lg]:"h-5 w-5",[Ke.xl]:"h-6 w-6"},eP={[Ke.sm]:"data-[state=checked]:translate-x-3.5",[Ke.md]:"data-[state=checked]:translate-x-4",[Ke.lg]:"data-[state=checked]:translate-x-5",[Ke.xl]:"data-[state=checked]:translate-x-6"},Xp=Dh(({className:e,size:t=Ke.md,status:r=po.default,checked:o,disabled:n,...i},s)=>{let l=f(t);return Yp(qn.Root,{ref:s,checked:o,disabled:n,className:a(Vp({size:l,status:r}),e),...i,children:Yp(qn.Thumb,{className:a("pointer-events-none block rounded-full bg-background shadow-sm transition-transform duration-150",jh[l],eP[l])},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Xp.displayName="Switch";import{cva as St}from"class-variance-authority";import{createContext as tP,forwardRef as rr,useContext as Jp}from"react";import{jsxDEV as xt}from"react/jsx-dev-runtime";var Se={sm:"sm",md:"md",lg:"lg"},Ti=tP(Se.md),qp=St("relative w-full overflow-auto rounded-[var(--radius)] border border-border bg-card shadow-[var(--shadow-sm)]"),Qp=St("w-full caption-bottom",{variants:{size:{[Se.sm]:"text-xs",[Se.md]:"text-sm",[Se.lg]:"text-sm"}},defaultVariants:{size:Se.md}}),Zp=St("sticky top-0 z-[1] [&_tr]:border-b [&_tr]:border-border [&_th]:bg-muted"),Ep=St("[&_tr:last-child]:border-0"),Dp=St("border-t border-border bg-muted font-medium text-muted-foreground [&>tr]:last:border-b-0"),jp=St("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] border-b border-border hover:bg-muted/50 data-[state=selected]:bg-primary/10"),ef=St("text-left align-middle font-semibold text-muted-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[Se.sm]:"h-8 px-2",[Se.md]:"h-10 px-3",[Se.lg]:"h-12 px-4"}},defaultVariants:{size:Se.md}}),tf=St("align-middle text-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[Se.sm]:"p-2",[Se.md]:"p-3",[Se.lg]:"p-4"}},defaultVariants:{size:Se.md}}),rf=St("mt-4 text-sm text-muted-foreground"),of=rr(({className:e,containerClassName:t,size:r=Se.md,...o},n)=>{let i=f(r)??Se.md;return xt(Ti.Provider,{value:i,children:xt("div",{className:a(qp(),t),children:xt("table",{ref:n,className:a(Qp({size:i}),e),...o},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});of.displayName="Table";var nf=rr(({className:e,...t},r)=>xt("thead",{ref:r,className:a(Zp(),e),...t},void 0,!1,void 0,this));nf.displayName="TableHeader";var af=rr(({className:e,...t},r)=>xt("tbody",{ref:r,className:a(Ep(),e),...t},void 0,!1,void 0,this));af.displayName="TableBody";var sf=rr(({className:e,...t},r)=>xt("tfoot",{ref:r,className:a(Dp(),e),...t},void 0,!1,void 0,this));sf.displayName="TableFooter";var lf=rr(({className:e,...t},r)=>xt("tr",{ref:r,className:a(jp(),e),...t},void 0,!1,void 0,this));lf.displayName="TableRow";var mf=rr(({className:e,size:t,...r},o)=>{let n=Jp(Ti);return xt("th",{ref:o,className:a(ef({size:t??n}),e),...r},void 0,!1,void 0,this)});mf.displayName="TableHead";var df=rr(({className:e,size:t,...r},o)=>{let n=Jp(Ti);return xt("td",{ref:o,className:a(tf({size:t??n}),e),...r},void 0,!1,void 0,this)});df.displayName="TableCell";var uf=rr(({className:e,...t},r)=>xt("caption",{ref:r,className:a(rf(),e),...t},void 0,!1,void 0,this));uf.displayName="TableCaption";import*as ft from"@radix-ui/react-tabs";import{cva as hi}from"class-variance-authority";import{forwardRef as Pi,useRef as cf}from"react";import{jsxDEV as Qn}from"react/jsx-dev-runtime";var or={sm:"sm",md:"md",lg:"lg"},pf=hi("relative inline-flex items-center justify-center rounded-[var(--radius)] border border-border bg-secondary p-1 text-muted-foreground",{variants:{size:{[or.sm]:"h-9 gap-0.5",[or.md]:"h-11 gap-1",[or.lg]:"h-12 gap-1"}},defaultVariants:{size:or.md}}),ff=hi("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] relative z-10 inline-flex items-center justify-center whitespace-nowrap rounded-[calc(var(--radius)-2px)] font-semibold leading-none text-muted-foreground outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:cursor-not-allowed disabled:text-muted-foreground/50 data-[state=active]:text-foreground data-[state=inactive]:hover:text-foreground/80",{variants:{size:{[or.sm]:"h-7 px-2.5 text-xs",[or.md]:"h-9 px-3 text-sm",[or.lg]:"h-10 px-4 text-sm"}},defaultVariants:{size:or.md}}),gf=hi("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),rP=ft.Root,oP=["data-state","aria-selected"],bf=Pi(({className:e,size:t,children:r,...o},n)=>{let i=f(t),s=cf(null),l=Bt(n,s),m=cf(null);return Bn(s,m,{activeSelector:"button[role='tab'][data-state='active']",observeAttributes:oP}),Qn(ft.List,{ref:l,className:a(pf({size:i}),e),...o,children:[Qn("span",{ref:m,"aria-hidden":!0,"data-slot":"indicator",className:In,style:{opacity:0}},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)});bf.displayName=ft.List.displayName;var yf=Pi(({className:e,size:t,...r},o)=>{let n=f(t);return Qn(ft.Trigger,{ref:o,className:a(ff({size:n}),e),...r},void 0,!1,void 0,this)});yf.displayName=ft.Trigger.displayName;var vf=Pi(({className:e,...t},r)=>Qn(ft.Content,{ref:r,className:a(gf(),e),...t},void 0,!1,void 0,this));vf.displayName=ft.Content.displayName;import{cva as nP}from"class-variance-authority";import{forwardRef as aP}from"react";import{jsxDEV as iP}from"react/jsx-dev-runtime";var Qo={default:"default",error:"error",success:"success"},fo={sm:"sm",md:"md",lg:"lg",xl:"xl"},Tf=nP("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] w-full resize-y rounded-[var(--radius)] border border-input bg-background text-sm text-foreground outline-none placeholder:text-muted-foreground focus-visible:ring-2 disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground",{variants:{status:{[Qo.default]:"focus-visible:ring-primary",[Qo.error]:"border-destructive focus-visible:ring-destructive",[Qo.success]:"border-success focus-visible:ring-success"},size:{[fo.sm]:"min-h-[64px] px-2 py-1.5 text-xs",[fo.md]:"min-h-[96px] px-3 py-2",[fo.lg]:"min-h-[112px] px-4 py-2.5",[fo.xl]:"min-h-[128px] px-4 py-3 text-base"}},defaultVariants:{status:Qo.default,size:fo.md}}),hf=aP(({className:e,status:t=Qo.default,size:r=fo.md,fullWidth:o=!1,noResize:n=!1,disabled:i,...s},l)=>{let m=f(r);return iP("textarea",{ref:l,className:a(Tf({status:t,size:m}),i&&"bg-muted",o&&"w-full",n&&"resize-none",e),disabled:i,...s},void 0,!1,void 0,this)});hf.displayName="Textarea";import{cva as nr}from"class-variance-authority";import{forwardRef as ar}from"react";import{jsxDEV as Mt}from"react/jsx-dev-runtime";var Pf=nr("relative flex flex-col"),xf=nr(["group relative flex pb-8 last:pb-0","transition-opacity duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)]"],{variants:{align:{left:"flex-row gap-4",right:"flex-row-reverse gap-4"},animated:{true:"gs-timeline-item-animated",false:""}},defaultVariants:{align:"left",animated:!0}}),Mf=nr(["absolute bottom-0 w-0.5 rounded-full","transition-[background-color,opacity,height] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)]"],{variants:{variant:{default:"bg-border",success:"bg-gradient-to-b from-success/50 to-success/30",warning:"bg-gradient-to-b from-warning/50 to-warning/30",error:"bg-gradient-to-b from-destructive/50 to-destructive/30",info:"bg-gradient-to-b from-info/50 to-info/30",primary:"bg-gradient-to-b from-primary/50 to-primary/30"},size:{sm:"left-[7px] top-5",md:"left-[15px] top-9",lg:"left-[21px] top-12",xl:"left-[25px] top-14"},animated:{true:"gs-timeline-connector-animated",false:""}},defaultVariants:{variant:"default",size:"md",animated:!0}}),Nf=nr(["relative z-10 flex shrink-0 items-center justify-center rounded-full border-2","transition-[color,background-color,border-color,box-shadow] duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]","[&>svg]:shrink-0"],{variants:{variant:{default:["border-border bg-card text-muted-foreground","shadow-[var(--shadow-sm)]","hover:border-border hover:shadow-[var(--shadow-md)]"],success:["border-success/60 bg-success/10 text-success","shadow-[var(--shadow-success-sm)]","hover:bg-success/15 hover:border-success/70 hover:shadow-[var(--shadow-success-md)]"],warning:["border-warning/60 bg-warning/10 text-warning","shadow-[var(--shadow-warning-sm)]","hover:bg-warning/15 hover:border-warning/70 hover:shadow-[var(--shadow-warning-md)]"],error:["border-destructive/60 bg-destructive/10 text-destructive","shadow-[var(--shadow-destructive-sm)]","hover:bg-destructive/15 hover:border-destructive/70 hover:shadow-[var(--shadow-destructive-md)]"],info:["border-info/60 bg-info/10 text-info","shadow-[var(--shadow-info-sm)]","hover:bg-info/15 hover:border-info/70 hover:shadow-[var(--shadow-info-md)]"],primary:["border-primary/60 bg-primary/10 text-primary","shadow-[var(--shadow-primary-sm)]","hover:bg-primary/15 hover:border-primary/70 hover:shadow-[var(--shadow-primary-md)]"]},size:{sm:"h-4 w-4 [&>svg]:size-2",md:"h-8 w-8 [&>svg]:size-4",lg:"h-11 w-11 [&>svg]:size-5",xl:"h-14 w-14 [&>svg]:size-6"},pulse:{true:"gs-timeline-dot-pulse-enabled gs-timeline-dot-pulse",false:""},animated:{true:"gs-timeline-dot-animated",false:""}},defaultVariants:{variant:"default",size:"md",pulse:!1,animated:!0}}),Lf=nr("flex min-w-0 flex-col gap-1 pt-0.5 transition-opacity duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]"),zf=nr("font-semibold leading-tight text-foreground transition-colors duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]",{variants:{size:{sm:"text-[11px]",md:"text-base",lg:"text-lg",xl:"text-xl"}},defaultVariants:{size:"md"}}),Rf=nr("text-muted-foreground transition-colors duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]",{variants:{size:{sm:"text-[11px]",md:"text-sm",lg:"text-base",xl:"text-lg"}},defaultVariants:{size:"md"}}),Cf=nr("font-medium text-muted-foreground/70 transition-colors duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]",{variants:{size:{sm:"text-[11px]",md:"text-sm",lg:"text-base",xl:"text-base"}},defaultVariants:{size:"md"}});var Hf=ar(({className:e,...t},r)=>{return Mt("div",{ref:r,role:"list","aria-label":"Timeline events",className:a(Pf(),e),...t},void 0,!1,void 0,this)});Hf.displayName="Timeline";var wf=ar(({className:e,align:t,isLast:r,animated:o=!0,...n},i)=>{return Mt("div",{ref:i,role:"listitem",className:a(xf({align:t,animated:o}),e),"data-last":r,...n},void 0,!1,void 0,this)});wf.displayName="TimelineItem";var kf=ar(({className:e,variant:t,size:r,animated:o=!0,...n},i)=>{let s=f(r);return Mt("div",{ref:i,className:a(Mf({variant:t,size:s,animated:o}),e),...n},void 0,!1,void 0,this)});kf.displayName="TimelineConnector";var Af=ar(({className:e,variant:t,size:r,icon:o,children:n,pulse:i=!1,animated:s=!0,...l},m)=>{let d=f(r);return Mt("div",{ref:m,className:a(Nf({variant:t,size:d,pulse:i,animated:s}),e),"aria-hidden":"true",...l,children:o||n||Mt(sP,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Af.displayName="TimelineDot";var Bf=ar(({className:e,...t},r)=>{return Mt("div",{ref:r,className:a(Lf(),e),...t},void 0,!1,void 0,this)});Bf.displayName="TimelineContent";var If=ar(({className:e,size:t,...r},o)=>{let n=f(t);return Mt("h4",{ref:o,className:a(zf({size:n}),e),...r},void 0,!1,void 0,this)});If.displayName="TimelineTitle";var Sf=ar(({className:e,size:t,...r},o)=>{let n=f(t);return Mt("p",{ref:o,className:a(Rf({size:n}),e),...r},void 0,!1,void 0,this)});Sf.displayName="TimelineDescription";var Ff=ar(({className:e,size:t,...r},o)=>{let n=f(t);return Mt("time",{ref:o,className:a(Cf({size:n}),e),...r},void 0,!1,void 0,this)});Ff.displayName="TimelineTime";function sP(){return Mt("span",{className:"size-2 rounded-full bg-current"},void 0,!1,void 0,this)}import{cva as Gf}from"class-variance-authority";var go={default:"default",success:"success",info:"info",warning:"warning",error:"error"},ot={sm:"sm",md:"md",lg:"lg"},xi=Gf("pointer-events-auto relative flex w-full items-center overflow-hidden rounded-[var(--radius)] border shadow-[var(--shadow-md)]",{variants:{variant:{[go.default]:"border-border bg-card text-card-foreground",[go.success]:"border-success/30 bg-card text-card-foreground",[go.info]:"border-info/30 bg-card text-card-foreground",[go.warning]:"border-warning/30 bg-card text-card-foreground",[go.error]:"border-destructive/30 bg-card text-card-foreground"},size:{[ot.sm]:"gap-2 p-3",[ot.md]:"gap-3 p-4",[ot.lg]:"gap-3.5 p-5"}},defaultVariants:{variant:go.default,size:ot.md}}),Mi=Gf("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] inline-flex shrink-0 items-center justify-center rounded-[var(--radius)] border border-border bg-transparent font-medium text-foreground hover:bg-secondary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:cursor-not-allowed disabled:border-transparent disabled:bg-muted/40 disabled:text-muted-foreground/70",{variants:{size:{[ot.sm]:"h-6 px-2 text-xs",[ot.md]:"h-7 px-2.5 text-xs",[ot.lg]:"h-8 px-3 text-sm"}},defaultVariants:{size:ot.md}});import{AlertTriangle as bP,CheckCircle2 as yP,Info as $f,X as vP,XCircle as TP}from"lucide-react";import{forwardRef as hP,useCallback as Dn,useEffect as bo,useRef as Ci,useState as Hi}from"react";import{useSyncExternalStore as lP}from"react";var mP=5,Wf=5000,dP=500,Ni=0;function uP(){return Ni=(Ni+1)%Number.MAX_SAFE_INTEGER,`toast-${Ni}-${Date.now()}`}var Li=new Set,nt=[],Hr=new Map,Eo=new Map,Do=!1,Cr=new Map;function Zn(){for(let e of Li)e()}function Of(){return nt}function cP(e){return Li.add(e),()=>{Li.delete(e)}}function zi(e,t){if(Do){Cr.set(e,t);return}clearTimeout(Hr.get(e));let r=Date.now(),o=setTimeout(()=>{Hr.delete(e),Cr.delete(e),En(e)},t);Hr.set(e,o),Cr.set(e,t);let n=setInterval(()=>{let i=Date.now()-r,s=t-i;if(s<=0)clearInterval(n),Cr.delete(e);else Cr.set(e,s)},100)}function pP(e){clearTimeout(Eo.get(e));let t=xo()?0:dP,r=setTimeout(()=>{nt=nt.filter((o)=>o.id!==e),Eo.delete(e),Zn()},t);Eo.set(e,r)}function Kf(e){clearTimeout(Hr.get(e)),Hr.delete(e),Cr.delete(e)}function Zo(e){let t=e.id??uP(),r=e.duration===void 0?Wf:e.duration;if(nt.find((i)=>i.id===t)){if(nt=nt.map((i)=>i.id===t?{...i,...e,id:t,open:!0,createdAt:Date.now()}:i),clearTimeout(Eo.get(t)),Eo.delete(t),Kf(t),typeof r==="number")zi(t,r);return Zn(),t}if(nt=[{...e,id:t,variant:e.variant??"default",dismissible:e.dismissible??!0,open:!0,createdAt:Date.now()},...nt].slice(0,mP),typeof r==="number")zi(t,r);return Zn(),t}function En(e){Kf(e),nt=nt.map((t)=>t.id===e?{...t,open:!1}:t),Zn(),pP(e)}function _f(){for(let e of nt)En(e.id)}function fP(){if(Do)return;Do=!0;for(let[e,t]of Hr)clearTimeout(t),Hr.delete(e)}function gP(){if(!Do)return;Do=!1;for(let e of nt)if(e.open){if(e.duration===null)continue;let t=e.duration??Wf,r=Cr.get(e.id)??t;zi(e.id,r)}}var Uf=Object.assign((e)=>Zo(e),{success:(e,t)=>Zo({...t,variant:"success",title:e}),info:(e,t)=>Zo({...t,variant:"info",title:e}),warning:(e,t)=>Zo({...t,variant:"warning",title:e}),error:(e,t)=>Zo({...t,variant:"error",title:e}),dismiss:En,dismissAll:_f});function Ri(){return{toasts:lP(cP,Of,Of),toast:Uf,dismiss:En,dismissAll:_f,pauseAll:fP,resumeAll:gP}}import{jsxDEV as _e}from"react/jsx-dev-runtime";var Vf=10,Yf=0.05,PP=200,xP={"top-right":"top-4 right-4","top-left":"top-4 left-4","bottom-right":"bottom-4 right-4","bottom-left":"bottom-4 left-4","top-center":"top-4 left-1/2 -translate-x-1/2","bottom-center":"bottom-4 left-1/2 -translate-x-1/2"},MP={success:(e)=>_e(yP,{className:a("mt-0.5 shrink-0 text-success",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),info:(e)=>_e($f,{className:a("mt-0.5 shrink-0 text-info",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),warning:(e)=>_e(bP,{className:a("mt-0.5 shrink-0 text-warning",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),error:(e)=>_e(TP,{className:a("mt-0.5 shrink-0 text-destructive",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),default:(e)=>_e($f,{className:a("mt-0.5 shrink-0 text-muted-foreground",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this)};function NP(e,t,r,o,n){let i=e<o,s=r?n:e*Vf,l=r?1:i?1-e*Yf:1-o*Yf,m=i||r?1:0,d=t-e;return{offset:s,scale:l,opacity:m,zIndex:d}}var Xf=hP(({position:e="bottom-right",gap:t=12,visibleCount:r=3,size:o=ot.md,className:n,...i},s)=>{let{toasts:l,dismiss:m,pauseAll:d,resumeAll:c}=Ri(),u=ve(),g=f(o)??ot.md,[T,b]=Hi(!1),[h,N]=Hi({}),v=Ci(null),p=Ci(void 0),P=e.startsWith("bottom"),M=Dn((A)=>{if(v.current=A,typeof s==="function")s(A);else if(s)s.current=A},[s]),k=Dn(()=>{clearTimeout(p.current),b(!0),d()},[d]),H=Dn(()=>{clearTimeout(p.current),p.current=setTimeout(()=>{b(!1),c()},u?0:PP)},[u,c]);bo(()=>{return()=>clearTimeout(p.current)},[]);let S=Dn((A,oe)=>{N((z)=>{if(z[A]===oe)return z;return{...z,[A]:oe}})},[]);bo(()=>{let A=new Set(l.map((oe)=>oe.id));N((oe)=>{let z=!1,K={};for(let[y,x]of Object.entries(oe))if(A.has(y))K[y]=x;else z=!0;return z?K:oe})},[l]);let w=l.filter((A)=>A.open),J=new Map,Y=0;for(let[A,oe]of w.entries()){let z=h[oe.id]??0;J.set(oe.id,NP(A,w.length,T,r,Y)),Y+=z+t}let q=w[0],me=(q?h[q.id]??0:0)+Math.min(w.length-1,r-1)*Vf,X=Y-(w.length>0?t:0),Q=T?X:me;if(bo(()=>{let A=v.current;if(!A)return;A.style.setProperty("--gs-toast-stack-height",`${Math.max(Q,0)}px`)},[Q]),l.length===0)return null;return _e("ol",{ref:M,role:"region","aria-label":"Notifications",tabIndex:-1,onMouseEnter:k,onMouseLeave:H,className:a("pointer-events-auto fixed z-[100] h-[var(--gs-toast-stack-height,0px)] w-full max-w-[400px] outline-none transition-[height] duration-[var(--motion-duration-spring)] ease-[var(--motion-ease-emphasized)]",xP[e],n),...i,children:l.map((A)=>{let oe=!A.open,z=J.get(A.id);return _e(LP,{toast:A,layout:z??{offset:0,scale:1,opacity:0,zIndex:0},isClosed:oe,isBottom:P,size:g,onDismiss:m,onMeasure:S,reducedMotion:u},A.id,!1,void 0,this)})},void 0,!1,void 0,this)});Xf.displayName="Toaster";function LP({toast:e,layout:t,isClosed:r,isBottom:o,size:n,onDismiss:i,onMeasure:s,reducedMotion:l}){let m=Ci(null),[d,c]=Hi(!1);bo(()=>{if(l){c(!0);return}let h=requestAnimationFrame(()=>c(!0));return()=>cancelAnimationFrame(h)},[l]),bo(()=>{let h=m.current;if(!h)return;let N=new ResizeObserver((v)=>{for(let p of v){let P=p.borderBoxSize?.[0];if(P)s(e.id,P.blockSize)}});return N.observe(h),()=>N.disconnect()},[e.id,s]);let u=o?"bottom-0 left-0 right-0 origin-bottom":"top-0 left-0 right-0 origin-top",g,T,b;if(!d)g=`translateY(${o?80:-80}px) scale(0.9)`,T=0,b="false";else if(r)g=`translateY(${o?80:-80}px) scale(0.95)`,T=0,b="false";else g=`translateY(${o?-t.offset:t.offset}px) scale(${t.scale})`,T=t.opacity,b="true";return bo(()=>{let h=m.current;if(!h)return;h.style.setProperty("--gs-toast-transform",g),h.style.setProperty("--gs-toast-opacity",`${T}`),h.style.setProperty("--gs-toast-z-index",`${t.zIndex}`)},[t.zIndex,T,g]),_e("li",{ref:m,"data-state":e.open?"open":"closed","data-variant":e.variant,"data-interactive":b,className:a("absolute list-none transition-[transform,opacity] duration-[var(--motion-duration-spring)] ease-[var(--motion-ease-emphasized)] [opacity:var(--gs-toast-opacity,0)] [transform:var(--gs-toast-transform)] [z-index:var(--gs-toast-z-index,0)]","data-[interactive=false]:pointer-events-none data-[interactive=true]:pointer-events-auto",u),children:_e("div",{className:a(xi({variant:e.variant,size:n}),"w-full"),children:[MP[e.variant]?.(n),_e("div",{className:"flex-1 space-y-0.5",children:[e.title&&_e("p",{className:a("font-semibold leading-tight",n==="sm"?"text-xs":"text-sm"),children:e.title},void 0,!1,void 0,this),e.description&&_e("p",{className:a("text-muted-foreground leading-snug",n==="sm"?"text-xs":"text-sm"),children:e.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.action&&_e("button",{type:"button",className:a(Mi({size:n}),"mt-0.5"),onClick:e.action.onClick,"aria-label":e.action.altText,children:e.action.label},void 0,!1,void 0,this),e.dismissible!==!1&&_e("button",{type:"button",className:a("mt-0.5 shrink-0 rounded-[var(--radius)] p-1 text-muted-foreground transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",n==="sm"?"[&>svg]:size-3.5":"[&>svg]:size-4"),onClick:()=>i(e.id),"aria-label":"Dismiss",children:_e(vP,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}import*as Jf from"@radix-ui/react-toggle";import{cva as zP}from"class-variance-authority";import{forwardRef as RP}from"react";import{jsxDEV as CP}from"react/jsx-dev-runtime";var wi={default:"default",outline:"outline"},jn={sm:"sm",md:"md",lg:"lg"},ea=zP("transition-[color,background-color,border-color,box-shadow,transform,opacity,filter] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)] inline-flex items-center justify-center gap-2 rounded-[var(--radius)] border border-transparent text-sm font-medium outline-none transition-[color,background-color,border-color] duration-150 hover:bg-muted hover:text-muted-foreground focus-visible:border-primary disabled:cursor-not-allowed disabled:pointer-events-none data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{[wi.default]:"bg-transparent disabled:bg-transparent disabled:text-foreground/50",[wi.outline]:"border-input bg-transparent hover:bg-accent hover:text-accent-foreground disabled:bg-transparent disabled:text-foreground/50 disabled:border-border/50"},size:{[jn.sm]:"h-7 px-1.5 min-w-7 text-xs",[jn.md]:"h-10 px-3 min-w-10",[jn.lg]:"h-11 px-5 min-w-11"}},defaultVariants:{variant:wi.default,size:jn.md}}),qf=RP(({className:e,variant:t,size:r,...o},n)=>{let i=f(r);return CP(Jf.Root,{ref:n,className:a(ea({variant:t,size:i}),e),...o},void 0,!1,void 0,this)});qf.displayName="Toggle";import*as ta from"@radix-ui/react-toggle-group";import{cva as HP}from"class-variance-authority";import{createContext as wP,forwardRef as Qf,useContext as kP}from"react";import{jsxDEV as ki}from"react/jsx-dev-runtime";var AP={default:"default",outline:"outline"},BP={sm:"sm",md:"md",lg:"lg"},Zf=HP("flex items-center justify-center gap-1"),Ef=wP({size:BP.md,variant:AP.default}),Df=Qf(({className:e,variant:t,size:r,children:o,...n},i)=>{let s=f(r);return ki(ta.Root,{ref:i,className:a(Zf(),e),...n,children:ki(Ef.Provider,{value:{variant:t,size:s},children:o},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Df.displayName="ToggleGroup";var jf=Qf(({className:e,children:t,variant:r,size:o,...n},i)=>{let s=kP(Ef),l=f(o);return ki(ta.Item,{ref:i,className:a(ea({variant:r??s.variant,size:l??s.size}),e),...n,children:t},void 0,!1,void 0,this)});jf.displayName="ToggleGroupItem";import{cva as eg}from"class-variance-authority";import{forwardRef as ra}from"react";import{jsxDEV as oa}from"react/jsx-dev-runtime";var gt={sm:"sm",md:"md",lg:"lg"},tg=eg("flex items-center border-b border-border bg-secondary",{variants:{size:{[gt.sm]:"gap-1.5 px-3 py-1.5",[gt.md]:"gap-2 px-4 py-2",[gt.lg]:"gap-3 px-5 py-2.5"}},defaultVariants:{size:gt.md}}),rg=ra(({className:e,size:t=gt.md,...r},o)=>{let n=f(t);return oa("div",{ref:o,role:"toolbar",className:a(tg({size:n}),e),...r},void 0,!1,void 0,this)});rg.displayName="Toolbar";var og=eg("flex items-center",{variants:{size:{[gt.sm]:"gap-1",[gt.md]:"gap-1.5",[gt.lg]:"gap-2"}},defaultVariants:{size:gt.md}}),ng=ra(({className:e,size:t=gt.md,...r},o)=>{let n=f(t);return oa("div",{ref:o,role:"group",className:a(og({size:n}),e),...r},void 0,!1,void 0,this)});ng.displayName="ToolbarGroup";var ag=ra(({className:e,...t},r)=>{return oa("div",{ref:r,role:"none",className:a("h-5 w-px shrink-0 bg-border",e),...t},void 0,!1,void 0,this)});ag.displayName="ToolbarSeparator";var ig=ra(({className:e,...t},r)=>{return oa("div",{ref:r,className:a("flex-1",e),...t},void 0,!1,void 0,this)});ig.displayName="ToolbarSpacer";import*as Nt from"@radix-ui/react-tooltip";import{cva as IP}from"class-variance-authority";import{createContext as SP,forwardRef as sg,useContext as lg}from"react";import{jsxDEV as yo}from"react/jsx-dev-runtime";var mg=({delayDuration:e,skipDelayDuration:t,...r})=>{let o=ve();return yo(Nt.Provider,{delayDuration:o?0:e,skipDelayDuration:o?0:t,...r},void 0,!1,void 0,this)};mg.displayName="TooltipProvider";var Ai=SP(!1),dg=({persistOnClick:e=!1,children:t,delayDuration:r,...o})=>{let n=ve();return yo(Ai.Provider,{value:e,children:yo(Nt.Root,{delayDuration:n?0:r,...o,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)};dg.displayName="Tooltip";var ug=sg(({onClick:e,onPointerDown:t,...r},o)=>{let n=lg(Ai);return yo(Nt.Trigger,{ref:o,onClick:n?(i)=>{i.preventDefault(),e?.(i)}:e,onPointerDown:n?(i)=>{i.preventDefault(),t?.(i)}:t,...r},void 0,!1,void 0,this)});ug.displayName="TooltipTrigger";var wr={sm:I.sm,md:I.md,lg:I.lg,xl:I.xl},cg=IP("z-50 overflow-hidden rounded-[var(--radius)] border border-primary/20 bg-primary text-primary-foreground shadow-[var(--shadow-md)] gs-float-content origin-[var(--radix-tooltip-content-transform-origin)]",{variants:{size:{[wr.sm]:"px-2 py-1 text-xs",[wr.md]:"px-3 py-1.5 text-xs",[wr.lg]:"px-4 py-2 text-sm",[wr.xl]:"px-5 py-2.5 text-sm"}},defaultVariants:{size:wr.md}}),pg=sg(({className:e,sideOffset:t=it,onPointerDownOutside:r,size:o=wr.md,portal:n=le,portalContainer:i,...s},l)=>{let m=lg(Ai),d=f(o),c=yo(Nt.Content,{ref:l,sideOffset:t,className:a(cg({size:d}),e),onPointerDownOutside:m?(u)=>{u.preventDefault(),r?.(u)}:r,...s},void 0,!1,void 0,this);if(!n)return c;return yo(Nt.Portal,{container:i??void 0,children:c},void 0,!1,void 0,this)});pg.displayName="TooltipContent";import{createContext as FP,useCallback as ir,useContext as GP,useEffect as jo,useInsertionEffect as OP,useLayoutEffect as WP,useMemo as na,useRef as sr,useState as fg}from"react";import{jsxDEV as UP}from"react/jsx-dev-runtime";var KP=typeof window<"u"?WP:jo,_P=typeof window<"u"?OP:jo,Ii=FP(null);function aa(e,t){return e.theme===t.theme&&e.colorScheme===t.colorScheme}var kr=({children:e,value:t,initialState:r,onChange:o,onStateChange:n,transformState:i,readState:s,writeState:l,syncWithSystem:m=!0,enableTransition:d=!1,transitionDuration:c,defaultTheme:u,defaultColorScheme:g,themes:T,attribute:b,colorSchemeAttribute:h,darkClassName:N,storage:v})=>{let p=na(()=>vo({defaultTheme:u,defaultColorScheme:g,themes:T,attribute:b,colorSchemeAttribute:h,darkClassName:N,storage:v}),[u,g,T,b,h,N,v]),[P,M]=fg(()=>Lt(typeof window<"u"?ia(p)??r:r,p)),[k,H]=fg(da),w=na(()=>t?Lt(t,p):null,[t,p])??P,J=na(()=>({...w,resolvedColorScheme:Bi(w.colorScheme,k)}),[w,k]),Y=t!==void 0,q=sr(w);q.current=w;let ee=sr(!1),me=sr(!1),X=sr(!1),Q=sr(w),A=sr(null),oe=sr(d);oe.current=d;let z=sr(c);z.current=c;let K=ir((V)=>{return la(V)},[]),y=ir((V)=>{return ia(V)},[]),x=ir((V,fe)=>{ma(V,fe)},[]),C=s??K,ne=l??x;jo(()=>{if(!m||typeof window>"u"||typeof window.matchMedia!=="function")return;let V=window.matchMedia("(prefers-color-scheme: dark)"),fe=()=>{H(V.matches?zt.dark:zt.light)};return fe(),V.addEventListener("change",fe),()=>V.removeEventListener("change",fe)},[m]),jo(()=>{if(Y)return;M((V)=>{let fe=Lt(V,p);return aa(V,fe)?V:fe})},[p,Y]),KP(()=>{if(Y||ee.current)return;ee.current=!0;let V=C(p)??y(p);if(!V)return;let fe=q.current,se=Lt(V,p),Ne={reason:"hydrate",previousState:fe},Ue=i?Lt(i(se,Ne),p):se;if(aa(fe,Ue))return;A.current=Ne,M(Ue),o?.(Ue,Ne),n?.(Ue,Ne)},[p,Y,o,n,y,C,i]),_P(()=>{if(typeof document>"u")return;let V=!X.current;if(X.current=!0,!V&&oe.current&&!xo()){let se=z.current??200,Ne=document.createElement("style");Ne.setAttribute("data-gs-theme-transition",""),Ne.textContent=`*, *::before, *::after { transition: color ${se}ms ease, background-color ${se}ms ease, border-color ${se}ms ease, box-shadow ${se}ms ease, fill ${se}ms ease, stroke ${se}ms ease !important; }`,document.head.appendChild(Ne),sa(document.documentElement,J,p);let Ue=requestAnimationFrame(()=>{setTimeout(()=>Ne.remove(),se)});return()=>{cancelAnimationFrame(Ue),Ne.remove()}}sa(document.documentElement,J,p);return},[p,J]),jo(()=>{if(typeof window>"u")return;if(!me.current){me.current=!0,Q.current=w;return}let V=Q.current;if(aa(V,w))return;let fe=A.current??{reason:"set-state",previousState:V};A.current=null,ne(w,p,fe),Q.current=w},[p,w,ne]);let _=ir((V,fe)=>{let se=q.current,Ne=typeof V==="function"?V(se):V,Ue=Lt({theme:Ne.theme??se.theme,colorScheme:Ne.colorScheme??se.colorScheme},p),bt={reason:fe,previousState:se},B=i?Lt(i(Ue,bt),p):Ue;if(aa(se,B))return;if(A.current=bt,!Y)M(B);o?.(B,bt),n?.(B,bt)},[p,Y,o,n,i]),Ce=ir((V)=>{_(V,"set-state")},[_]),W=ir((V)=>{_({theme:V},"set-theme")},[_]),ie=ir((V)=>{_({colorScheme:V},"set-color-scheme")},[_]),Rt=ir(()=>{let V=J.resolvedColorScheme===zt.dark?zt.light:zt.dark;_({colorScheme:V},"toggle-color-scheme")},[J.resolvedColorScheme,_]),at=na(()=>({theme:w.theme,colorScheme:w.colorScheme,resolvedColorScheme:J.resolvedColorScheme,state:w,resolvedState:J,contract:p,themes:p.themes,setTheme:W,setColorScheme:ie,setState:Ce,toggleColorScheme:Rt}),[w,J,p,W,ie,Ce,Rt]);return UP(Ii.Provider,{value:at,children:e},void 0,!1,void 0,this)};kr.displayName="ThemeProvider";var ua=()=>{let e=GP(Ii);if(!e)throw Error("useTheme must be used within a ThemeProvider");return e};import{jsxDEV as ca}from"react/jsx-dev-runtime";function fa(e){return typeof e==="object"&&e!==null}function Ft(e){return typeof e==="string"&&e.trim().length>0}function gg(e){if(!fa(e))return!1;return Object.values(e).every(Ft)}function yg(e){if(!fa(e))return!1;if(!gg(e.light))return!1;if(e.dark===void 0)return!0;return gg(e.dark)}function vg(e){return fa(e)&&Ft(e.cssText)}function $P(e){return fa(e)&&Ft(e.theme)}function Si(e){return Error(`Invalid theme registry definition: ${e}`)}function bg(e){let t=new Set,r=[];for(let o of e){if(!Ft(o)||t.has(o))continue;t.add(o),r.push(o)}return r}function YP(e){return e.filter(Ft).join(`
|
|
5
5
|
|
|
6
|
-
`)}function _P(e){let t=[],r=[],o=[];for(let[n,i]of Object.entries(e)){if(!Ft(n))continue;if(t.push(n),Ft(i)){o.push(i);continue}if(vg(i)){o.push(i.cssText);continue}if(yg(i)){r.push({theme:n,light:i.light,dark:i.dark});continue}throw Bi(`record key "${n}" has unsupported value shape`)}return{themeNames:t,tokenDefinitions:r,cssBlocks:o}}function UP(e){let t=[],r=[],o=[];for(let n of e){if(Ft(n)){t.push(n);continue}if(!WP(n))throw Bi("array entry must be a theme name or an object with `theme`");let i=n.theme;if(t.push(i),vg(n)){o.push(n.cssText);continue}if(yg(n)){r.push({theme:i,light:n.light,dark:n.dark});continue}throw Bi(`array entry "${i}" has unsupported value shape`)}return{themeNames:t,tokenDefinitions:r,cssBlocks:o}}function $P(e){if(Array.isArray(e))return UP(e);return _P(e)}function Tg(e){return e}function Fi(e){let{themes:t,cssText:r,...o}=e,n=$P(t),i=bg(n.themeNames),s=vo({...o,themes:i}),l=pa({themes:n.tokenDefinitions,attribute:s.attribute,darkClassName:s.darkClassName}),m=KP([l,...n.cssBlocks,r??""]),d=bg(s.themes);if(d.length===0)d.push(s.defaultTheme);return{defaultTheme:s.defaultTheme,themes:d,cssText:m,contract:s}}function ga({registry:e,children:t,...r}){return ca(kr,{defaultTheme:e.defaultTheme,themes:e.themes,attribute:e.contract.attribute,colorSchemeAttribute:e.contract.colorSchemeAttribute,darkClassName:e.contract.darkClassName,storage:e.contract.storage,...r,children:t},void 0,!1,void 0,this)}ga.displayName="ThemeRegistryProvider";function ba({registry:e,id:t,nonce:r,media:o}){if(!Ft(e.cssText))return null;return ca("style",{id:t,nonce:r,media:o,children:e.cssText},void 0,!1,void 0,this)}ba.displayName="ThemeStyles";function hg(e){let t=Fi(e),{themes:r,cssText:o,...n}=e;return{registry:t,provider:({children:m,...d})=>{return ca(ga,{registry:t,...n,...d,children:m},void 0,!1,void 0,this)},styles:(m={})=>{return ca(ba,{registry:t,...m},void 0,!1,void 0,this)},useTheme:()=>{let m=ua(),d=(g)=>{return t.themes.some((T)=>T===g)},c=(g)=>{return d(g)?g:t.defaultTheme},u=(g)=>{if(typeof g==="function"){m.setState((T)=>{let b={...T,theme:c(T.theme)},h=g(b);return{theme:c(h.theme??b.theme),colorScheme:h.colorScheme??b.colorScheme}});return}m.setState({theme:c(g.theme??m.state.theme),colorScheme:g.colorScheme??m.state.colorScheme})};return{...m,theme:c(m.theme),state:{...m.state,theme:c(m.state.theme)},resolvedState:{...m.resolvedState,theme:c(m.resolvedState.theme)},themes:t.themes,setTheme:(g)=>{m.setTheme(g)},setState:u}}}}import{jsxDEV as YP}from"react/jsx-dev-runtime";var Sg="ghostly-solutions",Ig=zt.system;function Bg({children:e,defaultTheme:t=Sg,defaultColorScheme:r=Ig,...o}){return YP(kr,{defaultTheme:t,defaultColorScheme:r,...o,children:e},void 0,!1,void 0,this)}Bg.displayName="UIProvider";import*as lr from"react";var VP=()=>{};function XP({prop:e,defaultProp:t,onChange:r=VP}){let[o,n]=JP({defaultProp:t,onChange:r}),i=e!==void 0,s=i?e:o,l=lr.useCallback((m)=>{if(i){let c=typeof m==="function"?m(e):m;if(c!==e)r(c)}else n(m)},[i,e,n,r]);return[s,l]}function JP({defaultProp:e,onChange:t}){let r=lr.useState(e),[o]=r,n=lr.useRef(o),i=t;return lr.useEffect(()=>{if(n.current!==o)i?.(o),n.current=o},[o,i]),r}export{ma as writeThemeStateToBrowserStorage,Ri as useToast,ua as useTheme,ve as useReducedMotion,So as usePlatform,KT as useOverlay,zo as useHotkey,ko as useFormField,f as useDensitySize,Og as useDensity,XP as useControllableState,St as useComposedRefs,Py as useCommandShortcut,pn as useCommand,Ub as useBreadcrumbs,cg as tooltipContentVariants,tg as toolbarVariants,og as toolbarGroupVariants,ea as toggleVariants,Zf as toggleGroupVariants,xi as toastVariants,Mi as toastActionVariants,Uf as toast,Pf as timelineVariants,zf as timelineTitleVariants,Cf as timelineTimeVariants,xf as timelineItemVariants,Nf as timelineDotVariants,Rf as timelineDescriptionVariants,Lf as timelineContentVariants,Mf as timelineConnectorVariants,Tf as textareaVariants,ff as tabsTriggerVariants,pf as tabsListVariants,gf as tabsContentVariants,Qp as tableVariants,jp as tableRowVariants,Zp as tableHeaderVariants,ef as tableHeadVariants,Dp as tableFooterVariants,qp as tableContainerVariants,tf as tableCellVariants,rf as tableCaptionVariants,Ep as tableBodyVariants,Vp as switchVariants,wp as stepperVariants,kp as stepVariants,Bp as stepTitleVariants,Ap as stepIndicatorVariants,Fp as stepDescriptionVariants,Ip as stepContentVariants,Sp as stepConnectorVariants,Cp as statCardVariants,Vn as spotlightStatusVariants,Xn as spotlightStatusTitleVariants,Np as spotlightStatusDescriptionVariants,Mp as spotlightShortcutVariants,bp as spotlightResultsVariants,up as spotlightPanelVariants,dp as spotlightOverlayVariants,vp as spotlightOptionVariants,Pp as spotlightOptionTitleVariants,Tp as spotlightOptionIconVariants,xp as spotlightOptionDescriptionVariants,hp as spotlightOptionContentVariants,fp as spotlightInputVariants,gp as spotlightIconVariants,pp as spotlightHeaderVariants,yp as spotlightGroupLabelVariants,cp as spotlightDrawerPanelVariants,op as sliderVariants,np as sliderTrackVariants,ip as sliderThumbVariants,ap as sliderRangeVariants,Zc as skeletonVariants,Ec as skeletonTextVariants,jc as skeletonButtonVariants,Dc as skeletonAvatarVariants,Cu as sheetOverlayVariants,Hu as sheetContentVariants,Cg as serializeThemeState,qc as separatorVariants,_c as selectTriggerVariants,Uc as selectContentVariants,wc as segmentedControlVariants,Ac as segmentedControlLabelVariants,kc as segmentedControlItemVariants,Nc as scrollBarVariants,Lc as scrollBarThumbVariants,Mc as scrollAreaVariants,wg as resolveThemeState,Jb as resolveBuiltBreadcrumbItems,ka as resolveBreadcrumbItemsSync,Aa as resolveBreadcrumbItems,fc as resizablePanelVariants,pc as resizablePanelGroupVariants,gc as resizableHandleVariants,bc as resizableHandleIconVariants,la as readThemeStateFromBrowserStorage,ac as radioItemVariants,nc as radioGroupVariants,ju as progressVariants,ec as progressIndicatorVariants,Dr as popoverContentVariants,Hg as parseThemeState,Fa as parseHotkey,_u as paginationVariants,Cn as paginationLinkVariants,$u as paginationItemVariants,Yu as paginationEllipsisVariants,Uu as paginationContentVariants,Pu as otpSlotVariants,Nu as otpSeparatorVariants,Mu as otpPlaceholderVariants,xu as otpInputVariants,hu as otpGroupVariants,Tu as otpContainerVariants,Lt as normalizeThemeState,su as navigationMenuViewportVariants,ru as navigationMenuVariants,nu as navigationMenuTriggerVariants,ou as navigationMenuListVariants,iu as navigationMenuLinkVariants,lu as navigationMenuIndicatorVariants,au as navigationMenuContentVariants,Wd as navbarVariants,$d as navbarLinkVariants,Ud as navbarItemVariants,Vd as navbarDividerVariants,_d as navbarContentVariants,Kd as navbarBrandVariants,Yd as navbarActionsVariants,Gd as multiselectTriggerVariants,Lp as matchesQuery,Ga as matchHotkey,kd as labelVariants,Zr as kbdVariants,Kr as isSameDay,Ld as inputVariants,Pd as hoverCardContentVariants,nx as hotkey,kg as getThemeRootProps,da as getSystemColorScheme,Jn as formatHotkeyTokens,xn as formatHotkey,fd as formFieldVariants,rd as fileUploadVariants,qa as fileUploadTextVariants,nd as fileUploadListVariants,ad as fileUploadItemVariants,sd as fileUploadItemSizeVariants,ld as fileUploadItemRemoveVariants,id as fileUploadItemNameVariants,od as fileUploadIconVariants,qm as errorBoundaryVariants,Zm as errorBoundaryTitleVariants,Qm as errorBoundaryIconVariants,jm as errorBoundaryDetailsVariants,Em as errorBoundaryDescriptionVariants,Dm as errorBoundaryActionsVariants,_m as emptyStateVariants,$m as emptyStateTitleVariants,Um as emptyStateIconVariants,Ym as emptyStateDescriptionVariants,Vm as emptyStateActionsVariants,wm as dropdownMenuShortcutVariants,Hm as dropdownMenuSeparatorVariants,Rm as dropdownMenuRadioItemVariants,Cm as dropdownMenuLabelVariants,Ja as dropdownMenuItemVariants,Xa as dropdownMenuContentVariants,zm as dropdownMenuCheckboxItemVariants,vm as drawerOverlayVariants,$a as drawerHandleVariants,Tm as drawerContentVariants,cm as dialogContentVariants,Za as detectPlatform,Tg as defineThemes,ok as cva,pa as createThemesCss,hg as createThemeSystem,Fi as createThemeRegistry,Ag as createThemeCss,vo as createThemeContract,Vb as createRouteBreadcrumbItems,sx as createOptionalContext,Xb as createEntityBreadcrumbItems,ix as createContext,Dl as contextMenuShortcutVariants,El as contextMenuSeparatorVariants,Ql as contextMenuRadioItemVariants,Zl as contextMenuLabelVariants,_a as contextMenuItemVariants,Ka as contextMenuContentVariants,ql as contextMenuCheckboxItemVariants,ax as composeRefs,Il as commandShortcutVariants,Sl as commandSeparatorVariants,zl as commandOverlayVariants,Bl as commandLoadingVariants,Cl as commandListVariants,Al as commandItemVariants,Rl as commandInputVariants,wl as commandGroupVariants,kl as commandGroupHeadingVariants,Hl as commandEmptyVariants,Ll as commandDialogVariants,Pl as collapsibleContentVariants,Sa as collapseBreadcrumbItems,cl as codeBlockVariants,yl as codeBlockPreVariants,vl as codeBlockLineVariants,Tl as codeBlockLineNumberVariants,fl as codeBlockLanguageVariants,pl as codeBlockHeaderVariants,gl as codeBlockCopyVariants,bl as codeBlockContentVariants,a as cn,ml as checkboxVariants,tl as cardVariants,Ds as calendarWeekdayVariants,qs as calendarVariants,Zs as calendarTitleVariants,Ia as calendarNavButtonVariants,Qs as calendarHeaderVariants,Es as calendarGridVariants,js as calendarDayVariants,Po as buttonVariants,Di as buttonIconVariants,$s as buttonGroupVariants,ji as buttonBadgeVariants,ks as breadcrumbSeparatorVariants,ws as breadcrumbPageVariants,Rs as breadcrumbListVariants,Hs as breadcrumbLinkVariants,Cs as breadcrumbItemVariants,As as breadcrumbEllipsisVariants,Ms as badgeVariants,Ts as avatarVariants,ys as aspectRatioVariants,Vi as alertVariants,Xi as alertTitleVariants,is as alertDialogOverlayVariants,ss as alertDialogContentVariants,Ji as alertDescriptionVariants,Wi as accordionTriggerVariants,Oi as accordionItemVariants,Ki as accordionContentVariants,Vg as XCircleIcon,QP as Variant,Sg as UI_DEFAULT_THEME,Ig as UI_DEFAULT_COLOR_SCHEME,Bg as UIProvider,ug as TooltipTrigger,wr as TooltipSize,mg as TooltipProvider,pg as TooltipContent,dg as Tooltip,ig as ToolbarSpacer,gt as ToolbarSize,ag as ToolbarSeparator,ng as ToolbarGroup,rg as Toolbar,jf as ToggleGroupItem,Df as ToggleGroup,qf as Toggle,Xf as Toaster,ot as ToastSize,If as TimelineTitle,Ff as TimelineTime,wf as TimelineItem,Af as TimelineDot,Bf as TimelineDescription,Sf as TimelineContent,kf as TimelineConnector,Hf as Timeline,ba as ThemeStyles,ga as ThemeRegistryProvider,kr as ThemeProvider,ox as ThemeColorScheme,hf as Textarea,yf as TabsTrigger,bf as TabsList,vf as TabsContent,Dh as Tabs,Be as TableSize,lf as TableRow,nf as TableHeader,mf as TableHead,sf as TableFooter,df as TableCell,uf as TableCaption,af as TableBody,of as Table,xg as THEME_COLOR_SCHEME_ATTR,Pg as THEME_ATTR,po as SwitchStatus,Ke as SwitchSize,Xp as Switch,jP as SurfaceStyle,Gp as Stepper,Up as StepTitle,Wp as StepIndicator,$p as StepDescription,_p as StepContent,Kp as StepConnector,Op as Step,ZP as Status,Lr as StatCardTrend,rt as StatCardSize,Hp as StatCard,Yn as SpotlightStatus,R as SpotlightSize,zp as Spotlight,Sr as SpinnerSize,Ot as Spinner,sp as Slider,ep as SkeletonText,Me as SkeletonSize,rp as SkeletonButton,tp as SkeletonAvatar,qo as Skeleton,I as Size,oo as Side,kT as SheetTrigger,Iu as SheetTitle,ce as SheetSize,ku as SheetPortal,ri as SheetOverlay,Au as SheetHeader,Su as SheetFooter,Bu as SheetDescription,zn as SheetContent,AT as SheetClose,ti as Sheet,Jo as SeparatorOrientation,Qc as Separator,Mh as SelectValue,$c as SelectTrigger,mo as SelectStatus,ae as SelectSize,Jc as SelectSeparator,Vc as SelectLabel,Xc as SelectItem,xh as SelectGroup,Vo as SelectContentWidthMode,yh as SelectContentAlign,Yc as SelectContent,Ph as Select,dh as SegmentedControlSize,Fc as SegmentedControlLabelItem,Bc as SegmentedControlItem,Ic as SegmentedControl,ii as ScrollBar,zc as ScrollArea,Ng as STORAGE_VERSION,zg as STORAGE_THEME_STATE_KEY,Lg as STORAGE_PREFIX,Rg as STORAGE_DENSITY_KEY,Tc as ResizablePanelGroup,hc as ResizablePanel,Pc as ResizableHandle,ao as RadioStatus,pt as RadioSize,sc as RadioGroupItem,ic as RadioGroup,La as REDUCED_MOTION_QUERY,tc as Progress,qv as PopoverTrigger,vr as PopoverSize,Bd as PopoverContent,Zv as PopoverClose,Qv as PopoverAnchor,Jv as Popover,tt as PaginationSize,Qu as PaginationPrevious,Zu as PaginationNext,qu as PaginationLink,Ju as PaginationItem,Eu as PaginationEllipsis,Xu as PaginationContent,Vu as Pagination,Ku as OverlayProvider,tx as Orientation,Wu as OVERLAY_REMOVE_DELAY_DEFAULT,Lu as OTPInput,ja as NavigationMenuViewport,cu as NavigationMenuTrigger,ut as NavigationMenuSize,du as NavigationMenuList,fu as NavigationMenuLink,uu as NavigationMenuItem,gu as NavigationMenuIndicator,pu as NavigationMenuContent,mu as NavigationMenu,Dd as NavbarLink,Ed as NavbarItem,eu as NavbarDivider,Zd as NavbarContent,Qd as NavbarBrand,jd as NavbarActions,qd as Navbar,U as MultiselectSize,Od as Multiselect,DP as MotionLevel,Sd as Loader,Er as LabelSize,Ad as Label,Fg as Key,Qr as KbdSize,Hd as Kbd,zd as Input,Yg as InfoIcon,Ir as IconSize,xv as HoverCardTrigger,qr as HoverCardSize,Md as HoverCardContent,xd as HoverCard,qP as HotkeyModifierKey,Fg as HotkeyKey,Lo as GroupOrientation,De as FormFieldSize,bd as FormFieldLabel,Td as FormFieldError,vd as FormFieldDescription,hd as FormFieldControl,gd as FormField,md as FileUpload,ed as ErrorBoundary,Xm as EmptyState,ex as EmphasisLevel,rv as DropdownMenuTrigger,Am as DropdownMenuSubTrigger,Sm as DropdownMenuSubContent,av as DropdownMenuSub,Km as DropdownMenuShortcut,Wm as DropdownMenuSeparator,Gm as DropdownMenuRadioItem,iv as DropdownMenuRadioGroup,nv as DropdownMenuPortal,Om as DropdownMenuLabel,hn as DropdownMenuItemVariant,Bm as DropdownMenuItem,ov as DropdownMenuGroup,Im as DropdownMenuContent,Fm as DropdownMenuCheckboxItem,tv as DropdownMenu,Jy as DrawerTrigger,Nm as DrawerTitle,Ee as DrawerSize,hm as DrawerPortal,Va as DrawerOverlay,xm as DrawerHeader,Mm as DrawerFooter,Lm as DrawerDescription,Pm as DrawerContent,qy as DrawerClose,Xy as Drawer,Ky as DialogTrigger,vn as DialogTitle,Xt as DialogSize,bn as DialogPortal,Co as DialogOverlay,pm as DialogHeader,fm as DialogFooter,gm as DialogDescription,Ua as DialogContentPrimitive,yn as DialogContent,_y as DialogClose,Ro as Dialog,EP as Density,Gg as DENSITY_DEFAULT,Mg as DARK_CLASS,Cy as ContextMenuTrigger,tm as ContextMenuSubTrigger,rm as ContextMenuSubContent,ky as ContextMenuSub,mm as ContextMenuShortcut,lm as ContextMenuSeparator,im as ContextMenuRadioItem,Ay as ContextMenuRadioGroup,wy as ContextMenuPortal,sm as ContextMenuLabel,fn as ContextMenuItemVariant,nm as ContextMenuItem,Hy as ContextMenuGroup,om as ContextMenuContent,am as ContextMenuCheckboxItem,em as ContextMenu,Yl as CommandShortcut,$l as CommandSeparator,Vl as CommandLoading,Wl as CommandList,cn as CommandItemVariant,Ul as CommandItem,Ol as CommandInput,_l as CommandGroup,Kl as CommandEmpty,Gl as CommandDialog,Wa as Command,zt as ColorScheme,cy as CollapsibleTrigger,xl as CollapsibleContent,uy as Collapsible,hl as CodeBlock,Yr as CheckboxStatus,lt as CheckboxSize,dl as Checkbox,$g as CheckCircleIcon,il as CardTitle,ol as CardHeader,al as CardFooter,sl as CardDescription,nl as CardContent,rl as Card,el as Calendar,ts as ButtonLabel,es as ButtonIcon,Ys as ButtonGroup,rs as ButtonBadge,os as Button,Te as BreadcrumbSize,Os as BreadcrumbSeparator,_b as BreadcrumbProvider,Gs as BreadcrumbPage,Is as BreadcrumbList,Fs as BreadcrumbLink,Bs as BreadcrumbItem,Ws as BreadcrumbEllipsis,Ss as Breadcrumb,He as BadgeVariant,Wt as BadgeTone,wt as BadgeSize,zs as BadgeGroup,Mo as Badge,Yb as BREADCRUMB_DEFAULT_COLLAPSE_CONFIG,Ze as AvatarSize,hs as AvatarImage,Ps as AvatarGroup,Ha as AvatarFallback,Ca as Avatar,vs as AspectRatio,rx as Align,Ug as AlertTriangleIcon,Qi as AlertTitle,ub as AlertDialogTrigger,ps as AlertDialogTitle,_t as AlertDialogSize,ms as AlertDialogPortal,za as AlertDialogOverlay,us as AlertDialogHeader,cs as AlertDialogFooter,fs as AlertDialogDescription,ds as AlertDialogContent,bs as AlertDialogCancel,gs as AlertDialogAction,db as AlertDialog,Zi as AlertDescription,qi as Alert,$i as AccordionTrigger,Fe as AccordionSize,Ui as AccordionItem,Yi as AccordionContent,_i as Accordion};
|
|
6
|
+
`)}function VP(e){let t=[],r=[],o=[];for(let[n,i]of Object.entries(e)){if(!Ft(n))continue;if(t.push(n),Ft(i)){o.push(i);continue}if(vg(i)){o.push(i.cssText);continue}if(yg(i)){r.push({theme:n,light:i.light,dark:i.dark});continue}throw Si(`record key "${n}" has unsupported value shape`)}return{themeNames:t,tokenDefinitions:r,cssBlocks:o}}function XP(e){let t=[],r=[],o=[];for(let n of e){if(Ft(n)){t.push(n);continue}if(!$P(n))throw Si("array entry must be a theme name or an object with `theme`");let i=n.theme;if(t.push(i),vg(n)){o.push(n.cssText);continue}if(yg(n)){r.push({theme:i,light:n.light,dark:n.dark});continue}throw Si(`array entry "${i}" has unsupported value shape`)}return{themeNames:t,tokenDefinitions:r,cssBlocks:o}}function JP(e){if(Array.isArray(e))return XP(e);return VP(e)}function Tg(e){return e}function Fi(e){let{themes:t,cssText:r,...o}=e,n=JP(t),i=bg(n.themeNames),s=vo({...o,themes:i}),l=pa({themes:n.tokenDefinitions,attribute:s.attribute,darkClassName:s.darkClassName}),m=YP([l,...n.cssBlocks,r??""]),d=bg(s.themes);if(d.length===0)d.push(s.defaultTheme);return{defaultTheme:s.defaultTheme,themes:d,cssText:m,contract:s}}function ga({registry:e,children:t,...r}){return ca(kr,{defaultTheme:e.defaultTheme,themes:e.themes,attribute:e.contract.attribute,colorSchemeAttribute:e.contract.colorSchemeAttribute,darkClassName:e.contract.darkClassName,storage:e.contract.storage,...r,children:t},void 0,!1,void 0,this)}ga.displayName="ThemeRegistryProvider";function ba({registry:e,id:t,nonce:r,media:o}){if(!Ft(e.cssText))return null;return ca("style",{id:t,nonce:r,media:o,children:e.cssText},void 0,!1,void 0,this)}ba.displayName="ThemeStyles";function hg(e){let t=Fi(e),{themes:r,cssText:o,...n}=e;return{registry:t,provider:({children:m,...d})=>{return ca(ga,{registry:t,...n,...d,children:m},void 0,!1,void 0,this)},styles:(m={})=>{return ca(ba,{registry:t,...m},void 0,!1,void 0,this)},useTheme:()=>{let m=ua(),d=(g)=>{return t.themes.some((T)=>T===g)},c=(g)=>{return d(g)?g:t.defaultTheme},u=(g)=>{if(typeof g==="function"){m.setState((T)=>{let b={...T,theme:c(T.theme)},h=g(b);return{theme:c(h.theme??b.theme),colorScheme:h.colorScheme??b.colorScheme}});return}m.setState({theme:c(g.theme??m.state.theme),colorScheme:g.colorScheme??m.state.colorScheme})};return{...m,theme:c(m.theme),state:{...m.state,theme:c(m.state.theme)},resolvedState:{...m.resolvedState,theme:c(m.resolvedState.theme)},themes:t.themes,setTheme:(g)=>{m.setTheme(g)},setState:u}}}}import{jsxDEV as qP}from"react/jsx-dev-runtime";var Bg="ghostly-solutions",Ig=zt.system;function Sg({children:e,defaultTheme:t=Bg,defaultColorScheme:r=Ig,...o}){return qP(kr,{defaultTheme:t,defaultColorScheme:r,...o,children:e},void 0,!1,void 0,this)}Sg.displayName="UIProvider";import*as lr from"react";var QP=()=>{};function ZP({prop:e,defaultProp:t,onChange:r=QP}){let[o,n]=EP({defaultProp:t,onChange:r}),i=e!==void 0,s=i?e:o,l=lr.useCallback((m)=>{if(i){let c=typeof m==="function"?m(e):m;if(c!==e)r(c)}else n(m)},[i,e,n,r]);return[s,l]}function EP({defaultProp:e,onChange:t}){let r=lr.useState(e),[o]=r,n=lr.useRef(o),i=t;return lr.useEffect(()=>{if(n.current!==o)i?.(o),n.current=o},[o,i]),r}export{ma as writeThemeStateToBrowserStorage,Ri as useToast,ua as useTheme,ve as useReducedMotion,Bo as usePlatform,YT as useOverlay,zo as useHotkey,ko as useFormField,f as useDensitySize,Og as useDensity,ZP as useControllableState,Bt as useComposedRefs,Ly as useCommandShortcut,pn as useCommand,Ub as useBreadcrumbs,cg as tooltipContentVariants,tg as toolbarVariants,og as toolbarGroupVariants,ea as toggleVariants,Zf as toggleGroupVariants,xi as toastVariants,Mi as toastActionVariants,Uf as toast,Pf as timelineVariants,zf as timelineTitleVariants,Cf as timelineTimeVariants,xf as timelineItemVariants,Nf as timelineDotVariants,Rf as timelineDescriptionVariants,Lf as timelineContentVariants,Mf as timelineConnectorVariants,Tf as textareaVariants,ff as tabsTriggerVariants,pf as tabsListVariants,gf as tabsContentVariants,Qp as tableVariants,jp as tableRowVariants,Zp as tableHeaderVariants,ef as tableHeadVariants,Dp as tableFooterVariants,qp as tableContainerVariants,tf as tableCellVariants,rf as tableCaptionVariants,Ep as tableBodyVariants,Vp as switchVariants,wp as stepperVariants,kp as stepVariants,Sp as stepTitleVariants,Ap as stepIndicatorVariants,Fp as stepDescriptionVariants,Ip as stepContentVariants,Bp as stepConnectorVariants,Cp as statCardVariants,Vn as spotlightStatusVariants,Xn as spotlightStatusTitleVariants,Np as spotlightStatusDescriptionVariants,Mp as spotlightShortcutVariants,bp as spotlightResultsVariants,up as spotlightPanelVariants,dp as spotlightOverlayVariants,vp as spotlightOptionVariants,Pp as spotlightOptionTitleVariants,Tp as spotlightOptionIconVariants,xp as spotlightOptionDescriptionVariants,hp as spotlightOptionContentVariants,fp as spotlightInputVariants,gp as spotlightIconVariants,pp as spotlightHeaderVariants,yp as spotlightGroupLabelVariants,cp as spotlightDrawerPanelVariants,op as sliderVariants,np as sliderTrackVariants,ip as sliderThumbVariants,ap as sliderRangeVariants,Zc as skeletonVariants,Ec as skeletonTextVariants,jc as skeletonButtonVariants,Dc as skeletonAvatarVariants,Cu as sheetOverlayVariants,Hu as sheetContentVariants,Cg as serializeThemeState,qc as separatorVariants,_c as selectTriggerVariants,Uc as selectContentVariants,wc as segmentedControlVariants,Ac as segmentedControlLabelVariants,kc as segmentedControlItemVariants,Nc as scrollBarVariants,Lc as scrollBarThumbVariants,Mc as scrollAreaVariants,wg as resolveThemeState,Eb as resolveBuiltBreadcrumbItems,ka as resolveBreadcrumbItemsSync,Aa as resolveBreadcrumbItems,fc as resizablePanelVariants,pc as resizablePanelGroupVariants,gc as resizableHandleVariants,bc as resizableHandleIconVariants,la as readThemeStateFromBrowserStorage,ac as radioItemVariants,nc as radioGroupVariants,ju as progressVariants,ec as progressIndicatorVariants,Dr as popoverContentVariants,Hg as parseThemeState,Fa as parseHotkey,_u as paginationVariants,Cn as paginationLinkVariants,$u as paginationItemVariants,Yu as paginationEllipsisVariants,Uu as paginationContentVariants,Pu as otpSlotVariants,Nu as otpSeparatorVariants,Mu as otpPlaceholderVariants,xu as otpInputVariants,hu as otpGroupVariants,Tu as otpContainerVariants,Lt as normalizeThemeState,su as navigationMenuViewportVariants,ru as navigationMenuVariants,nu as navigationMenuTriggerVariants,ou as navigationMenuListVariants,iu as navigationMenuLinkVariants,lu as navigationMenuIndicatorVariants,au as navigationMenuContentVariants,Wd as navbarVariants,$d as navbarLinkVariants,Ud as navbarItemVariants,Vd as navbarDividerVariants,_d as navbarContentVariants,Kd as navbarBrandVariants,Yd as navbarActionsVariants,Gd as multiselectTriggerVariants,Lp as matchesQuery,Ga as matchHotkey,kd as labelVariants,Zr as kbdVariants,Kr as isSameDay,Ld as inputVariants,Pd as hoverCardContentVariants,lx as hotkey,kg as getThemeRootProps,da as getSystemColorScheme,Jn as formatHotkeyTokens,xn as formatHotkey,fd as formFieldVariants,rd as fileUploadVariants,qa as fileUploadTextVariants,nd as fileUploadListVariants,ad as fileUploadItemVariants,sd as fileUploadItemSizeVariants,ld as fileUploadItemRemoveVariants,id as fileUploadItemNameVariants,od as fileUploadIconVariants,qm as errorBoundaryVariants,Zm as errorBoundaryTitleVariants,Qm as errorBoundaryIconVariants,jm as errorBoundaryDetailsVariants,Em as errorBoundaryDescriptionVariants,Dm as errorBoundaryActionsVariants,_m as emptyStateVariants,$m as emptyStateTitleVariants,Um as emptyStateIconVariants,Ym as emptyStateDescriptionVariants,Vm as emptyStateActionsVariants,wm as dropdownMenuShortcutVariants,Hm as dropdownMenuSeparatorVariants,Rm as dropdownMenuRadioItemVariants,Cm as dropdownMenuLabelVariants,Ja as dropdownMenuItemVariants,Xa as dropdownMenuContentVariants,zm as dropdownMenuCheckboxItemVariants,vm as drawerOverlayVariants,$a as drawerHandleVariants,Tm as drawerContentVariants,cm as dialogContentVariants,Za as detectPlatform,Tg as defineThemes,sk as cva,pa as createThemesCss,hg as createThemeSystem,Fi as createThemeRegistry,Ag as createThemeCss,vo as createThemeContract,Jb as createTextBreadcrumbNode,Qb as createRouteBreadcrumbItems,ux as createOptionalContext,qb as createEntityBreadcrumbNode,Zb as createEntityBreadcrumbItems,dx as createContext,Xb as createBreadcrumbItems,Dl as contextMenuShortcutVariants,El as contextMenuSeparatorVariants,Ql as contextMenuRadioItemVariants,Zl as contextMenuLabelVariants,_a as contextMenuItemVariants,Ka as contextMenuContentVariants,ql as contextMenuCheckboxItemVariants,mx as composeRefs,Il as commandShortcutVariants,Bl as commandSeparatorVariants,zl as commandOverlayVariants,Sl as commandLoadingVariants,Cl as commandListVariants,Al as commandItemVariants,Rl as commandInputVariants,wl as commandGroupVariants,kl as commandGroupHeadingVariants,Hl as commandEmptyVariants,Ll as commandDialogVariants,Pl as collapsibleContentVariants,Ba as collapseBreadcrumbItems,cl as codeBlockVariants,yl as codeBlockPreVariants,vl as codeBlockLineVariants,Tl as codeBlockLineNumberVariants,fl as codeBlockLanguageVariants,pl as codeBlockHeaderVariants,gl as codeBlockCopyVariants,bl as codeBlockContentVariants,a as cn,ml as checkboxVariants,tl as cardVariants,Ds as calendarWeekdayVariants,qs as calendarVariants,Zs as calendarTitleVariants,Ia as calendarNavButtonVariants,Qs as calendarHeaderVariants,Es as calendarGridVariants,js as calendarDayVariants,Po as buttonVariants,Di as buttonIconVariants,$s as buttonGroupVariants,ji as buttonBadgeVariants,ks as breadcrumbSeparatorVariants,ws as breadcrumbPageVariants,Rs as breadcrumbListVariants,Hs as breadcrumbLinkVariants,Cs as breadcrumbItemVariants,As as breadcrumbEllipsisVariants,Ms as badgeVariants,Ts as avatarVariants,ys as aspectRatioVariants,Vi as alertVariants,Xi as alertTitleVariants,is as alertDialogOverlayVariants,ss as alertDialogContentVariants,Ji as alertDescriptionVariants,Wi as accordionTriggerVariants,Oi as accordionItemVariants,Ki as accordionContentVariants,Vg as XCircleIcon,jP as Variant,Bg as UI_DEFAULT_THEME,Ig as UI_DEFAULT_COLOR_SCHEME,Sg as UIProvider,ug as TooltipTrigger,wr as TooltipSize,mg as TooltipProvider,pg as TooltipContent,dg as Tooltip,ig as ToolbarSpacer,gt as ToolbarSize,ag as ToolbarSeparator,ng as ToolbarGroup,rg as Toolbar,jf as ToggleGroupItem,Df as ToggleGroup,qf as Toggle,Xf as Toaster,ot as ToastSize,If as TimelineTitle,Ff as TimelineTime,wf as TimelineItem,Af as TimelineDot,Sf as TimelineDescription,Bf as TimelineContent,kf as TimelineConnector,Hf as Timeline,ba as ThemeStyles,ga as ThemeRegistryProvider,kr as ThemeProvider,sx as ThemeColorScheme,hf as Textarea,yf as TabsTrigger,bf as TabsList,vf as TabsContent,rP as Tabs,Se as TableSize,lf as TableRow,nf as TableHeader,mf as TableHead,sf as TableFooter,df as TableCell,uf as TableCaption,af as TableBody,of as Table,xg as THEME_COLOR_SCHEME_ATTR,Pg as THEME_ATTR,po as SwitchStatus,Ke as SwitchSize,Xp as Switch,ox as SurfaceStyle,Gp as Stepper,Up as StepTitle,Wp as StepIndicator,$p as StepDescription,_p as StepContent,Kp as StepConnector,Op as Step,ex as Status,Lr as StatCardTrend,rt as StatCardSize,Hp as StatCard,Yn as SpotlightStatus,R as SpotlightSize,zp as Spotlight,Br as SpinnerSize,Ot as Spinner,sp as Slider,ep as SkeletonText,Me as SkeletonSize,rp as SkeletonButton,tp as SkeletonAvatar,qo as Skeleton,I as Size,oo as Side,ST as SheetTrigger,Iu as SheetTitle,ce as SheetSize,ku as SheetPortal,ri as SheetOverlay,Au as SheetHeader,Bu as SheetFooter,Su as SheetDescription,zn as SheetContent,FT as SheetClose,ti as Sheet,Jo as SeparatorOrientation,Qc as Separator,Rh as SelectValue,$c as SelectTrigger,mo as SelectStatus,ae as SelectSize,Jc as SelectSeparator,Vc as SelectLabel,Xc as SelectItem,zh as SelectGroup,Vo as SelectContentWidthMode,Ph as SelectContentAlign,Yc as SelectContent,Lh as Select,fh as SegmentedControlSize,Fc as SegmentedControlLabelItem,Sc as SegmentedControlItem,Ic as SegmentedControl,ii as ScrollBar,zc as ScrollArea,Ng as STORAGE_VERSION,zg as STORAGE_THEME_STATE_KEY,Lg as STORAGE_PREFIX,Rg as STORAGE_DENSITY_KEY,Tc as ResizablePanelGroup,hc as ResizablePanel,Pc as ResizableHandle,ao as RadioStatus,pt as RadioSize,sc as RadioGroupItem,ic as RadioGroup,La as REDUCED_MOTION_QUERY,tc as Progress,Dv as PopoverTrigger,vr as PopoverSize,Sd as PopoverContent,eT as PopoverClose,jv as PopoverAnchor,Ev as Popover,tt as PaginationSize,Qu as PaginationPrevious,Zu as PaginationNext,qu as PaginationLink,Ju as PaginationItem,Eu as PaginationEllipsis,Xu as PaginationContent,Vu as Pagination,Ku as OverlayProvider,ax as Orientation,Wu as OVERLAY_REMOVE_DELAY_DEFAULT,Lu as OTPInput,ja as NavigationMenuViewport,cu as NavigationMenuTrigger,ut as NavigationMenuSize,du as NavigationMenuList,fu as NavigationMenuLink,uu as NavigationMenuItem,gu as NavigationMenuIndicator,pu as NavigationMenuContent,mu as NavigationMenu,Dd as NavbarLink,Ed as NavbarItem,eu as NavbarDivider,Zd as NavbarContent,Qd as NavbarBrand,jd as NavbarActions,qd as Navbar,U as MultiselectSize,Od as Multiselect,rx as MotionLevel,Bd as Loader,Er as LabelSize,Ad as Label,Fg as Key,Qr as KbdSize,Hd as Kbd,zd as Input,Yg as InfoIcon,Ir as IconSize,zv as HoverCardTrigger,qr as HoverCardSize,Md as HoverCardContent,xd as HoverCard,DP as HotkeyModifierKey,Fg as HotkeyKey,Lo as GroupOrientation,De as FormFieldSize,bd as FormFieldLabel,Td as FormFieldError,vd as FormFieldDescription,hd as FormFieldControl,gd as FormField,md as FileUpload,ed as ErrorBoundary,Xm as EmptyState,nx as EmphasisLevel,iv as DropdownMenuTrigger,Am as DropdownMenuSubTrigger,Bm as DropdownMenuSubContent,mv as DropdownMenuSub,Km as DropdownMenuShortcut,Wm as DropdownMenuSeparator,Gm as DropdownMenuRadioItem,dv as DropdownMenuRadioGroup,lv as DropdownMenuPortal,Om as DropdownMenuLabel,hn as DropdownMenuItemVariant,Sm as DropdownMenuItem,sv as DropdownMenuGroup,Im as DropdownMenuContent,Fm as DropdownMenuCheckboxItem,av as DropdownMenu,Ey as DrawerTrigger,Nm as DrawerTitle,Ee as DrawerSize,hm as DrawerPortal,Va as DrawerOverlay,xm as DrawerHeader,Mm as DrawerFooter,Lm as DrawerDescription,Pm as DrawerContent,Dy as DrawerClose,Zy as Drawer,Yy as DialogTrigger,vn as DialogTitle,Xt as DialogSize,bn as DialogPortal,Co as DialogOverlay,pm as DialogHeader,fm as DialogFooter,gm as DialogDescription,Ua as DialogContentPrimitive,yn as DialogContent,Vy as DialogClose,Ro as Dialog,tx as Density,Gg as DENSITY_DEFAULT,Mg as DARK_CLASS,Ay as ContextMenuTrigger,tm as ContextMenuSubTrigger,rm as ContextMenuSubContent,Sy as ContextMenuSub,mm as ContextMenuShortcut,lm as ContextMenuSeparator,im as ContextMenuRadioItem,Fy as ContextMenuRadioGroup,Iy as ContextMenuPortal,sm as ContextMenuLabel,fn as ContextMenuItemVariant,nm as ContextMenuItem,By as ContextMenuGroup,om as ContextMenuContent,am as ContextMenuCheckboxItem,em as ContextMenu,Yl as CommandShortcut,$l as CommandSeparator,Vl as CommandLoading,Wl as CommandList,cn as CommandItemVariant,Ul as CommandItem,Ol as CommandInput,_l as CommandGroup,Kl as CommandEmpty,Gl as CommandDialog,Wa as Command,zt as ColorScheme,by as CollapsibleTrigger,xl as CollapsibleContent,gy as Collapsible,hl as CodeBlock,Yr as CheckboxStatus,lt as CheckboxSize,dl as Checkbox,$g as CheckCircleIcon,il as CardTitle,ol as CardHeader,al as CardFooter,sl as CardDescription,nl as CardContent,rl as Card,el as Calendar,ts as ButtonLabel,es as ButtonIcon,Ys as ButtonGroup,rs as ButtonBadge,os as Button,Te as BreadcrumbSize,Os as BreadcrumbSeparator,_b as BreadcrumbProvider,Gs as BreadcrumbPage,Is as BreadcrumbList,Fs as BreadcrumbLink,Ss as BreadcrumbItem,Ws as BreadcrumbEllipsis,Vb as BreadcrumbBuilderKind,Bs as Breadcrumb,He as BadgeVariant,Wt as BadgeTone,wt as BadgeSize,zs as BadgeGroup,Mo as Badge,Yb as BREADCRUMB_DEFAULT_COLLAPSE_CONFIG,Ze as AvatarSize,hs as AvatarImage,Ps as AvatarGroup,Ha as AvatarFallback,Ca as Avatar,vs as AspectRatio,ix as Align,Ug as AlertTriangleIcon,Qi as AlertTitle,ub as AlertDialogTrigger,ps as AlertDialogTitle,_t as AlertDialogSize,ms as AlertDialogPortal,za as AlertDialogOverlay,us as AlertDialogHeader,cs as AlertDialogFooter,fs as AlertDialogDescription,ds as AlertDialogContent,bs as AlertDialogCancel,gs as AlertDialogAction,db as AlertDialog,Zi as AlertDescription,qi as Alert,$i as AccordionTrigger,Fe as AccordionSize,Ui as AccordionItem,Yi as AccordionContent,_i as Accordion};
|