@ghostly-solutions/ui 0.3.6 → 0.3.7

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.
@@ -1 +1 @@
1
- {"version":3,"file":"segmented-control.d.ts","sourceRoot":"","sources":["../../../src/components/segmented-control/segmented-control.tsx"],"names":[],"mappings":"AAGA,OAAO,EAGN,KAAK,cAAc,EACnB,KAAK,SAAS,EAOd,MAAM,OAAO,CAAC;AAIf,QAAA,MAAM,IAAI;;;;CAIA,CAAC;AAEX,KAAK,SAAS,GAAG,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,OAAO,IAAI,CAAC,CAAC;AAElD,QAAA,MAAM,wBAAwB;;8EAc7B,CAAC;AAEF,QAAA,MAAM,4BAA4B;;;8EAyBjC,CAAC;AAEF,QAAA,MAAM,6BAA6B;;;8EAyBlC,CAAC;AAuBF,UAAU,qBACT,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC;IACzE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,gBAAgB,kHA+GrB,CAAC;AAIF,UAAU,yBAA0B,SAAQ,IAAI,CAAC,cAAc,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC3F,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,SAAS,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,oBAAoB,yHA6BzB,CAAC;AAIF,UAAU,8BAA+B,SAAQ,IAAI,CAAC,cAAc,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAChG,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,yBAAyB,8HA8B9B,CAAC;AAIF,OAAO,EACN,gBAAgB,EAChB,oBAAoB,EACpB,yBAAyB,EACzB,wBAAwB,EACxB,4BAA4B,EAC5B,6BAA6B,EAC7B,IAAI,IAAI,oBAAoB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,EACnC,KAAK,SAAS,IAAI,yBAAyB,GAC3C,CAAC"}
1
+ {"version":3,"file":"segmented-control.d.ts","sourceRoot":"","sources":["../../../src/components/segmented-control/segmented-control.tsx"],"names":[],"mappings":"AAGA,OAAO,EAGN,KAAK,cAAc,EACnB,KAAK,SAAS,EAOd,MAAM,OAAO,CAAC;AAIf,QAAA,MAAM,IAAI;;;;CAIA,CAAC;AAEX,KAAK,SAAS,GAAG,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,OAAO,IAAI,CAAC,CAAC;AAElD,QAAA,MAAM,wBAAwB;;8EAc7B,CAAC;AAEF,QAAA,MAAM,4BAA4B;;;8EAyBjC,CAAC;AAEF,QAAA,MAAM,6BAA6B;;;8EAyBlC,CAAC;AA6BF,UAAU,qBACT,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC;IACzE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,gBAAgB,kHA+GrB,CAAC;AAIF,UAAU,yBAA0B,SAAQ,IAAI,CAAC,cAAc,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC3F,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,SAAS,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,oBAAoB,yHA6BzB,CAAC;AAIF,UAAU,8BAA+B,SAAQ,IAAI,CAAC,cAAc,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAChG,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,yBAAyB,8HA8B9B,CAAC;AAIF,OAAO,EACN,gBAAgB,EAChB,oBAAoB,EACpB,yBAAyB,EACzB,wBAAwB,EACxB,4BAA4B,EAC5B,6BAA6B,EAC7B,IAAI,IAAI,oBAAoB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,EACnC,KAAK,SAAS,IAAI,yBAAyB,GAC3C,CAAC"}
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import{A as Li,B as $a,C as Hi,D as Qu,E as Eu,F as Ri,G as ju,H as Ii,a as i,b as dT,c as eo,d as pT,e as cT,f as ma,g as Sa,h as Na,i as ro,j as uT,k as dt,l as Bu,m as _u,n as Gu,o as Wu,p as Uu,q as $u,r as Ku,s as Yu,t as Ur,u as mt,v as Xu,w as Zu,x as qu,y as Ju,z as Mi}from"./chunk-gv8xjarq.js";import{cva as qw}from"class-variance-authority";import*as tt from"@radix-ui/react-accordion";import{cva as Bi}from"class-variance-authority";import{ChevronDown as nf}from"lucide-react";import{createContext as sf,forwardRef as Ro,useContext as qa}from"react";import{createContext as rf,useContext as Za}from"react";import{jsxDEV as af}from"react/jsx-dev-runtime";var No="md",Oi=rf(No),wo=({density:e,children:t})=>{return af(Oi.Provider,{value:e,children:t},void 0,!1,void 0,this)};wo.displayName="DensityProvider";var of=()=>{return Za(Oi)};function c(e){let t=Za(Oi);if(e!==void 0)return e;return t}import{jsxDEV as Tt}from"react/jsx-dev-runtime";var Se={sm:"sm",md:"md",lg:"lg"},_i=sf(Se.md),Ja=Bi("border-b border-border"),Qa=Bi("gs-interactive flex flex-1 items-center justify-between font-medium hover:underline [&[data-state=open]>svg]:rotate-180",{variants:{size:{[Se.sm]:"py-3 text-xs [&>svg]:size-3.5",[Se.md]:"py-4 text-sm [&>svg]:size-4",[Se.lg]:"py-5 text-base [&>svg]:size-5"}},defaultVariants:{size:Se.md}}),Ea=Bi("gs-accordion-content overflow-hidden",{variants:{size:{[Se.sm]:"text-xs",[Se.md]:"text-sm",[Se.lg]:"text-base"}},defaultVariants:{size:Se.md}}),lf={[Se.sm]:"pt-0 pb-3",[Se.md]:"pt-0 pb-4",[Se.lg]:"pt-0 pb-5"},ja=Ro(({size:e=Se.md,...t},r)=>{let o=c(e)??Se.md;return Tt(_i.Provider,{value:o,children:Tt(tt.Root,{ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});ja.displayName="Accordion";var en=Ro(({className:e,...t},r)=>Tt(tt.Item,{ref:r,className:i(Ja(),e),...t},void 0,!1,void 0,this));en.displayName="AccordionItem";var tn=Ro(({className:e,children:t,...r},o)=>{let a=qa(_i);return Tt(tt.Header,{className:"flex",children:Tt(tt.Trigger,{ref:o,className:i(Qa({size:a}),e),...r,children:[t,Tt(nf,{className:"shrink-0 transition-transform"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});tn.displayName="AccordionTrigger";var rn=Ro(({className:e,children:t,...r},o)=>{let a=qa(_i);return Tt(tt.Content,{ref:o,className:i(Ea({size:a}),e),...r,children:Tt("div",{className:lf[a],children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});rn.displayName="AccordionContent";import{cva as Gi}from"class-variance-authority";import{TriangleAlert as mf,CircleCheck as df,Info as pf,CircleAlert as cf}from"lucide-react";import{forwardRef as Wi}from"react";import{jsxDEV as Ui}from"react/jsx-dev-runtime";var lr={default:"default",success:"success",warning:"warning",error:"error",info:"info"},$r={sm:"sm",md:"md",lg:"lg",xl:"xl"},on=Gi("relative w-full rounded-[var(--radius)] border [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{[lr.default]:"bg-background text-foreground",[lr.success]:"border-success/50 text-success [&>svg]:text-success bg-success/10",[lr.warning]:"border-warning/50 text-warning [&>svg]:text-warning bg-warning/10",[lr.error]:"border-destructive/50 text-destructive [&>svg]:text-destructive bg-destructive/10",[lr.info]:"border-info/50 text-info [&>svg]:text-info bg-info/10"},size:{[$r.sm]:"p-3 text-xs [&>svg]:top-3 [&>svg]:left-3 [&>svg~*]:pl-6",[$r.md]:"p-4 text-sm",[$r.lg]:"p-5 text-sm",[$r.xl]:"p-6 text-base [&>svg]:top-6 [&>svg]:left-6 [&>svg~*]:pl-8"}},defaultVariants:{variant:lr.default,size:$r.md}}),an=Gi("mb-1 font-medium leading-none tracking-tight"),nn=Gi("text-sm [&_p]:leading-relaxed"),sn=Wi(({className:e,variant:t,size:r,...o},a)=>{let n=c(r);return Ui("div",{ref:a,role:"alert",className:i(on({variant:t,size:n}),e),...o},void 0,!1,void 0,this)});sn.displayName="Alert";var ln=Wi(({className:e,...t},r)=>Ui("h5",{ref:r,className:i(an(),e),...t},void 0,!1,void 0,this));ln.displayName="AlertTitle";var mn=Wi(({className:e,...t},r)=>Ui("div",{ref:r,className:i(nn(),e),...t},void 0,!1,void 0,this));mn.displayName="AlertDescription";import*as ge from"@radix-ui/react-alert-dialog";import{cva as vn}from"class-variance-authority";import{forwardRef as cr}from"react";import{Slot as dn}from"@radix-ui/react-slot";import{cva as Ki}from"class-variance-authority";import{forwardRef as Mo}from"react";import{forwardRef as uf}from"react";import{jsxDEV as $i}from"react/jsx-dev-runtime";var mr={sm:"sm",md:"md",lg:"lg",xl:"xl"},ff={[mr.sm]:"h-4 w-4",[mr.md]:"h-5 w-5",[mr.lg]:"h-6 w-6",[mr.xl]:"h-8 w-8"},dr=uf(({className:e,size:t=mr.md,label:r="Loading",...o},a)=>{let n=c(t);return $i("span",{ref:a,className:i("inline-flex items-center justify-center",e),role:"status","aria-label":r,...o,children:[$i("span",{className:i("animate-spin rounded-full border-2 border-current border-r-transparent",ff[n])},void 0,!1,void 0,this),$i("span",{className:"sr-only",children:r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});dr.displayName="Spinner";import{jsxDEV as ut}from"react/jsx-dev-runtime";var ct={primary:"primary",secondary:"secondary",neutral:"neutral",outline:"outline",ghost:"ghost",danger:"danger"},ke={sm:"sm",md:"md",lg:"lg",xl:"xl",icon:"icon",iconSm:"icon-sm",iconLg:"icon-lg"},ht={default:"default",success:"success",warning:"warning",error:"error",info:"info"},pr={sm:"sm",md:"md",lg:"lg"},gf="Loading",yf="button",Kr=Ki("gs-interactive 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:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground",{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:{[ke.sm]:"h-8 px-2.5 text-xs",[ke.md]:"h-10 px-4 text-sm",[ke.lg]:"h-11 px-5 text-sm",[ke.xl]:"h-12 px-6 text-base",[ke.icon]:"h-10 w-10 p-0",[ke.iconSm]:"h-9 w-9 p-0",[ke.iconLg]:"h-11 w-11 p-0"}},defaultVariants:{variant:ct.primary,size:ke.md}}),pn=Ki("shrink-0",{variants:{size:{[pr.sm]:"size-3",[pr.md]:"size-4",[pr.lg]:"size-4.5"}},defaultVariants:{size:pr.md}}),cn=Ki("inline-flex items-center rounded-full border px-1.5 py-0.5 font-semibold text-[10px] leading-none",{variants:{tone:{[ht.default]:"border-border/70 bg-background/75 text-muted-foreground",[ht.success]:"border-success/35 bg-success/12 text-success",[ht.warning]:"border-warning/35 bg-warning/12 text-warning",[ht.error]:"border-destructive/35 bg-destructive/12 text-destructive",[ht.info]:"border-info/35 bg-info/12 text-info"}},defaultVariants:{tone:ht.default}});function vf(e){return e===ke.icon||e===ke.iconSm||e===ke.iconLg}function bf(e,t,r){return e&&t?-1:r}function Tf(e){return e["aria-label"]??e["aria-labelledby"]??e.title}function hf(){if(typeof process>"u")return!0;return!0}var un=Mo(({className:e,size:t=pr.md,...r},o)=>ut(dn,{ref:o,className:i(pn({size:t}),e),...r},void 0,!1,void 0,this));un.displayName="ButtonIcon";var fn=Mo(({className:e,...t},r)=>ut("span",{ref:r,className:i("truncate",e),...t},void 0,!1,void 0,this));fn.displayName="ButtonLabel";var gn=Mo(({className:e,tone:t=ht.default,...r},o)=>ut("span",{ref:o,className:i(cn({tone:t}),e),...r},void 0,!1,void 0,this));gn.displayName="ButtonBadge";var yn=Mo(({className:e,variant:t=ct.primary,size:r=ke.md,asChild:o=!1,loading:a=!1,loadingText:n=gf,fullWidth:s=!1,leadingIcon:l,trailingIcon:m,disabled:d,children:f,type:u,tabIndex:h,onClick:p,...y},C)=>{let R=c(r),w=R??r,T=Tf(y);if(hf()&&vf(w)&&!T)throw Error("Icon-size Button requires aria-label, aria-labelledby, or title.");let v=Boolean(d||a),x=i(Kr({variant:t,size:R}),s&&"w-full",e);if(o)return ut(dn,{ref:C,className:x,"aria-disabled":v||void 0,"aria-busy":a||void 0,tabIndex:bf(!0,v,h),onClick:v?(I)=>{I.preventDefault()}:p,...y,children:f},void 0,!1,void 0,this);return ut("button",{ref:C,className:x,disabled:v,"aria-disabled":v,"aria-busy":a,tabIndex:h,type:u??yf,onClick:a?void 0:p,...y,children:[ut("span",{className:i("absolute inset-0 flex items-center justify-center transition-opacity duration-150",a?"opacity-100":"opacity-0"),"aria-hidden":"true",children:ut(dr,{size:"sm"},void 0,!1,void 0,this)},void 0,!1,void 0,this),a&&ut("span",{className:"sr-only",children:n},void 0,!1,void 0,this),ut("span",{className:i("inline-flex items-center justify-center gap-2 transition-opacity duration-150",a&&"opacity-0"),children:[l,f,m]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});yn.displayName="Button";import{jsxDEV as rt}from"react/jsx-dev-runtime";var Pt={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},bn=vn("gs-dialog-overlay fixed inset-0 z-50 bg-black/50"),Tn=vn("gs-dialog-content fixed left-1/2 top-1/2 z-50 grid w-full gap-4 border border-border bg-background p-6 text-foreground shadow-[var(--shadow-xl)] rounded-[var(--radius)]",{variants:{size:{[Pt.sm]:"max-w-sm",[Pt.md]:"max-w-md",[Pt.lg]:"max-w-lg",[Pt.xl]:"max-w-xl",[Pt.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:Pt.md}}),Pf=ge.Root,xf=ge.Trigger,hn=ge.Portal,Yi=cr(({className:e,...t},r)=>rt(ge.Overlay,{ref:r,className:i(bn(),e),...t},void 0,!1,void 0,this));Yi.displayName="AlertDialogOverlay";var Pn=cr(({className:e,size:t=Pt.md,...r},o)=>{let a=c(t);return rt(hn,{children:[rt(Yi,{},void 0,!1,void 0,this),rt(ge.Content,{ref:o,className:i(Tn({size:a}),e),...r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Pn.displayName="AlertDialogContent";var xn=({className:e,...t})=>rt("div",{className:i("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);xn.displayName="AlertDialogHeader";var Cn=({className:e,...t})=>rt("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);Cn.displayName="AlertDialogFooter";var zn=cr(({className:e,...t},r)=>rt(ge.Title,{ref:r,className:i("text-lg font-semibold",e),...t},void 0,!1,void 0,this));zn.displayName="AlertDialogTitle";var Sn=cr(({className:e,...t},r)=>rt(ge.Description,{ref:r,className:i("text-sm text-muted-foreground",e),...t},void 0,!1,void 0,this));Sn.displayName="AlertDialogDescription";var Nn=cr(({className:e,...t},r)=>rt(ge.Action,{ref:r,className:i(Kr(),e),...t},void 0,!1,void 0,this));Nn.displayName="AlertDialogAction";var wn=cr(({className:e,...t},r)=>rt(ge.Cancel,{ref:r,className:i(Kr({variant:"outline"}),"mt-2 sm:mt-0",e),...t},void 0,!1,void 0,this));wn.displayName="AlertDialogCancel";import*as Rn from"@radix-ui/react-aspect-ratio";var Cf=Rn.Root;import*as fr from"@radix-ui/react-avatar";import{cva as zf}from"class-variance-authority";import{forwardRef as Lo}from"react";import{jsxDEV as ur}from"react/jsx-dev-runtime";var De={sm:"sm",md:"md",lg:"lg",xl:"xl"},Mn=zf("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{[De.sm]:"h-7 w-7 text-[10px]",[De.md]:"h-10 w-10 text-sm",[De.lg]:"h-12 w-12 text-base",[De.xl]:"h-16 w-16 text-lg"}},defaultVariants:{size:De.md}}),Xi=Lo(({className:e,size:t=De.md,...r},o)=>{let a=c(t);return ur(fr.Root,{ref:o,className:i(Mn({size:a}),e),...r},void 0,!1,void 0,this)});Xi.displayName="Avatar";var Ln=Lo(({className:e,...t},r)=>ur(fr.Image,{ref:r,className:i("aspect-square h-full w-full object-cover",e),...t},void 0,!1,void 0,this));Ln.displayName="AvatarImage";var Zi=Lo(({className:e,...t},r)=>ur(fr.Fallback,{ref:r,className:i("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));Zi.displayName="AvatarFallback";var Sf={[De.sm]:"-space-x-2",[De.md]:"-space-x-3",[De.lg]:"-space-x-4",[De.xl]:"-space-x-5"},Hn=Lo(({className:e,children:t,max:r,size:o=De.md,...a},n)=>{let s=c(o),l=Array.isArray(t)?t:[t],m=r?l.slice(0,r):l,d=r?Math.max(0,l.length-r):0;return ur("div",{ref:n,className:i("flex items-center",Sf[s],e),...a,children:[m,d>0&&ur(Xi,{size:s,className:"border-2 border-background",children:ur(Zi,{className:"text-xs",children:["+",d]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Hn.displayName="AvatarGroup";import{Slot as Nf}from"@radix-ui/react-slot";import{cva as wf}from"class-variance-authority";import{X as Rf}from"lucide-react";import{forwardRef as Mf}from"react";import{jsxDEV as Yr}from"react/jsx-dev-runtime";var ve={default:"default",primary:"primary",success:"success",warning:"warning",error:"error",info:"info",outline:"outline"},xt={sm:"sm",md:"md",lg:"lg",dot:"dot"},kn=wf("inline-flex items-center justify-center gap-1 whitespace-nowrap rounded-full border font-medium",{variants:{variant:{[ve.default]:"border-border bg-muted text-muted-foreground",[ve.primary]:"border-primary/30 bg-primary/10 text-primary",[ve.success]:"border-success/30 bg-success/10 text-success",[ve.warning]:"border-warning/30 bg-warning/10 text-warning",[ve.error]:"border-destructive/30 bg-destructive/10 text-destructive",[ve.info]:"border-info/30 bg-info/10 text-info",[ve.outline]:"border-border bg-transparent text-foreground"},solid:{true:"",false:""},size:{[xt.sm]:"h-5 px-2 text-[10px]",[xt.md]:"h-6 px-2.5 text-xs",[xt.lg]:"h-7 px-3 text-sm",[xt.dot]:"h-2 w-2 p-0"}},compoundVariants:[{solid:!0,variant:ve.default,className:"border-transparent bg-foreground text-background"},{solid:!0,variant:ve.primary,className:"border-primary bg-primary text-primary-foreground"},{solid:!0,variant:ve.success,className:"border-success bg-success text-background"},{solid:!0,variant:ve.warning,className:"border-warning bg-warning text-background"},{solid:!0,variant:ve.error,className:"border-destructive bg-destructive text-destructive-foreground"},{solid:!0,variant:ve.info,className:"border-info bg-info text-background"},{solid:!0,variant:ve.outline,className:"border-border bg-foreground text-background"}],defaultVariants:{variant:ve.default,solid:!1,size:xt.md}}),Ho=Mf(({className:e,variant:t=ve.default,size:r=xt.md,solid:o=!1,pulse:a=!1,removable:n=!1,onRemove:s,onClick:l,children:m,asChild:d=!1,...f},u)=>{let h=c(r),p=Boolean(l),y=h===xt.dot,C=(T)=>{T.stopPropagation(),s?.(T)},R=i(kn({variant:t,solid:o,size:h}),p&&"cursor-pointer",a&&"animate-pulse",n&&!y&&"pr-1",e),w=n&&!y&&Yr("button",{type:"button",className:"gs-interactive ml-0.5 inline-flex size-4 items-center justify-center rounded-full text-current opacity-60 hover:opacity-100",onClick:C,"aria-label":"Remove",tabIndex:-1,children:Yr(Rf,{className:"size-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(d)return Yr(Nf,{ref:u,className:R,onClick:l,...f,children:m},void 0,!1,void 0,this);if(p)return Yr("button",{ref:u,className:R,onClick:l,type:"button",...f,children:[!y&&m,w]},void 0,!0,void 0,this);return Yr("span",{ref:u,className:R,...f,children:[!y&&m,w]},void 0,!0,void 0,this)});Ho.displayName="Badge";import{Children as Lf,cloneElement as Hf,forwardRef as kf,isValidElement as Af,useCallback as An,useEffect as If,useLayoutEffect as Vf,useRef as Df,useState as Ff}from"react";import{jsxDEV as In}from"react/jsx-dev-runtime";function Of(e){let t=[];return Lf.forEach(e,(r,o)=>{if(!Af(r))return;let a=r.key??o;t.push({key:a,element:r,isLeaving:!1})}),t}function Bf(e,t){let r=new Set(t.map((n)=>n.key)),o=new Set(e.map((n)=>n.key)),a=[];for(let n of e)if(r.has(n.key)){let s=t.find((l)=>l.key===n.key);if(s)a.push({...s,isLeaving:!1})}else a.push({...n,isLeaving:!0});for(let n of t)if(!o.has(n.key))a.push(n);return a}function _f(e,t,r){if(r.current)return r.current=!1,t;return Bf(e,t)}var Gf=typeof window<"u"?Vf:If,Vn=kf(({children:e,className:t,onRemove:r,gap:o="sm"},a)=>{let[n,s]=Ff([]),l=Df(!0);Gf(()=>{let u=Of(e);s((h)=>_f(h,u,l))},[e]);let m=An((u)=>{s((h)=>h.filter((p)=>p.key!==u))},[]),d=An((u)=>{r?.(u)},[r]),f={sm:"gap-1",md:"gap-2",lg:"gap-3"}[o];return In("div",{ref:a,className:i("inline-flex flex-wrap items-center",f,t),children:n.map((u)=>{let h={};if(u.element.props.removable&&r)h.onRemove=()=>{d(u.key)};let p=i("inline-flex transition-all duration-200",u.isLeaving&&"pointer-events-none scale-95 opacity-0");return In("span",{className:p,onTransitionEnd:u.isLeaving?()=>m(u.key):void 0,children:Hf(u.element,h)},u.key,!1,void 0,this)})},void 0,!1,void 0,this)});Vn.displayName="BadgeGroup";import{Slot as Wf}from"@radix-ui/react-slot";import{cva as gr}from"class-variance-authority";import{ChevronRight as Uf,MoreHorizontal as $f}from"lucide-react";import{createContext as Kf,forwardRef as Xr,useContext as qi}from"react";import{jsxDEV as Ke}from"react/jsx-dev-runtime";var pe={sm:"sm",md:"md",lg:"lg"},ko=Kf(pe.md),Dn=gr("flex flex-wrap items-center break-words text-muted-foreground",{variants:{size:{[pe.sm]:"gap-1 text-xs",[pe.md]:"gap-1.5 text-sm sm:gap-2.5",[pe.lg]:"gap-2 text-base sm:gap-3"}},defaultVariants:{size:pe.md}}),Fn=gr("inline-flex items-center gap-1.5"),On=gr("gs-interactive hover:text-foreground focus-visible:outline-none focus-visible:text-foreground"),Bn=gr("font-normal text-foreground"),_n=gr("",{variants:{size:{[pe.sm]:"[&>svg]:size-3",[pe.md]:"[&>svg]:size-3.5",[pe.lg]:"[&>svg]:size-4"}},defaultVariants:{size:pe.md}}),Gn=gr("flex items-center justify-center",{variants:{size:{[pe.sm]:"h-7 w-7 [&>svg]:size-3.5",[pe.md]:"h-9 w-9 [&>svg]:size-4",[pe.lg]:"h-10 w-10 [&>svg]:size-5"}},defaultVariants:{size:pe.md}}),Wn=Xr(({size:e=pe.md,...t},r)=>{let o=c(e)??pe.md;return Ke(ko.Provider,{value:o,children:Ke("nav",{ref:r,"aria-label":"breadcrumb",...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Wn.displayName="Breadcrumb";var Un=Xr(({className:e,...t},r)=>{let o=qi(ko);return Ke("ol",{ref:r,className:i(Dn({size:o}),e),...t},void 0,!1,void 0,this)});Un.displayName="BreadcrumbList";var $n=Xr(({className:e,...t},r)=>Ke("li",{ref:r,className:i(Fn(),e),...t},void 0,!1,void 0,this));$n.displayName="BreadcrumbItem";var Kn=Xr(({asChild:e,className:t,...r},o)=>{return Ke(e?Wf:"a",{ref:o,className:i(On(),t),...r},void 0,!1,void 0,this)});Kn.displayName="BreadcrumbLink";var Yn=Xr(({className:e,...t},r)=>Ke("span",{ref:r,role:"link",tabIndex:0,"aria-disabled":"true","aria-current":"page",className:i(Bn(),e),...t},void 0,!1,void 0,this));Yn.displayName="BreadcrumbPage";var Xn=({children:e,className:t,...r})=>{let o=qi(ko),a={[pe.sm]:"size-3",[pe.md]:"size-3.5",[pe.lg]:"size-4"};return Ke("li",{role:"presentation","aria-hidden":"true",className:i(_n({size:o}),t),...r,children:e??Ke(Uf,{className:a[o]},void 0,!1,void 0,this)},void 0,!1,void 0,this)};Xn.displayName="BreadcrumbSeparator";var Zn=({className:e,...t})=>{let r=qi(ko);return Ke("span",{role:"presentation","aria-hidden":"true",className:i(Gn({size:r}),e),...t,children:[Ke($f,{},void 0,!1,void 0,this),Ke("span",{className:"sr-only",children:"More"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};Zn.displayName="BreadcrumbEllipsis";import{cva as Yf}from"class-variance-authority";import{forwardRef as Xf}from"react";import{jsxDEV as Zf}from"react/jsx-dev-runtime";var Zr={horizontal:"horizontal",vertical:"vertical"},qn=Yf("inline-flex items-stretch",{variants:{orientation:{[Zr.horizontal]:"flex-row",[Zr.vertical]:"flex-col"},attached:{true:"gap-0 [&>*:not(:first-child)]:rounded-l-none [&>*:not(:last-child)]:rounded-r-none",false:"gap-2"}},defaultVariants:{orientation:Zr.horizontal,attached:!1}}),Jn=Xf(({className:e,orientation:t=Zr.horizontal,attached:r=!1,fullWidth:o=!1,...a},n)=>Zf("div",{ref:n,className:i(qn({orientation:t,attached:r}),o&&"w-full",e),...a},void 0,!1,void 0,this));Jn.displayName="ButtonGroup";import{cva as Ct}from"class-variance-authority";import{forwardRef as qf,useCallback as yr,useEffect as Jf,useMemo as Qn,useState as En}from"react";import{jsxDEV as Ae}from"react/jsx-dev-runtime";var B={sm:"sm",md:"md",lg:"lg",xl:"xl"},es=Ct("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:{[B.sm]:"p-3 text-sm",[B.md]:"p-4 text-sm",[B.lg]:"p-5 text-base",[B.xl]:"p-6 text-base"}},defaultVariants:{size:B.md}}),ts=Ct("mb-3 flex items-center justify-between",{variants:{size:{[B.sm]:"gap-1",[B.md]:"gap-2",[B.lg]:"gap-3",[B.xl]:"gap-3"}},defaultVariants:{size:B.md}}),rs=Ct("font-semibold text-foreground",{variants:{size:{[B.sm]:"text-sm",[B.md]:"text-base",[B.lg]:"text-lg",[B.xl]:"text-xl"}},defaultVariants:{size:B.md}}),Ji=Ct(["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:opacity-50"],{variants:{size:{[B.sm]:"size-7",[B.md]:"size-8",[B.lg]:"size-10",[B.xl]:"size-10"}},defaultVariants:{size:B.md}}),os=Ct("grid grid-cols-7",{variants:{size:{[B.sm]:"gap-0.5",[B.md]:"gap-1",[B.lg]:"gap-1.5",[B.xl]:"gap-2"}},defaultVariants:{size:B.md}}),is=Ct("text-center font-semibold uppercase tracking-wide text-muted-foreground",{variants:{size:{[B.sm]:"py-1 text-[10px]",[B.md]:"py-1.5 text-xs",[B.lg]:"py-2 text-sm",[B.xl]:"py-2 text-sm"}},defaultVariants:{size:B.md}}),as=Ct(["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:{[B.sm]:"size-7 text-xs",[B.md]:"size-9 text-sm",[B.lg]:"size-10 text-base",[B.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:B.md,state:"default"}}),Qf=Ct("rounded-md border border-transparent",{variants:{size:{[B.sm]:"size-7",[B.md]:"size-9",[B.lg]:"size-10",[B.xl]:"size-11"}},defaultVariants:{size:B.md}}),jn=["Su","Mo","Tu","We","Th","Fr","Sa"],Ef=["January","February","March","April","May","June","July","August","September","October","November","December"],ft=(e)=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),vr=(e,t)=>{return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()},ns=qf(({className:e,size:t="md",cellSize:r,mode:o="single",value:a,defaultValue:n,onChange:s,rangeValue:l,onRangeChange:m,viewMonth:d,onViewMonthChange:f,minDate:u,maxDate:h,disabledDates:p=[],weekStartsOn:y=1,highlightToday:C=!0,...R},w)=>{let T=c(t)??B.md,v=c(r??T)??T,[x,I]=En(a??n??null),[S,A]=En(a??n??new Date),z=d??S,D=yr((g)=>{if(f){let b=typeof g==="function"?g(d??S):g;f(b)}else A((b)=>{return typeof g==="function"?g(b):g})},[d,S,f]),W=a!==void 0?a:x,O=u?ft(u):null,U=h?ft(h):null;Jf(()=>{if(a!==void 0){if(I(a??null),a&&!d)A(a)}},[a,d]);let N=yr((g,b)=>{return(new Date(g,b,1).getDay()-y+7)%7},[y]),V=Qn(()=>{let g=z.getFullYear(),b=z.getMonth(),M=N(g,b),E=new Date(g,b+1,0).getDate(),Z=[];for(let j=0;j<M;j+=1)Z.push({key:`leading-${g}-${b}-${j}`,date:null});for(let j=1;j<=E;j+=1)Z.push({key:`day-${g}-${b}-${j}`,date:new Date(g,b,j)});let ze=(7-Z.length%7)%7;for(let j=0;j<ze;j+=1)Z.push({key:`trailing-${g}-${b}-${j}`,date:null});return Z},[z,N]),P=yr((g)=>{let b=ft(g);if(O&&b<O)return!0;if(U&&b>U)return!0;return p.some((M)=>vr(b,ft(M)))},[O,U,p]),F=yr((g)=>{if(P(g))return"disabled";if(o==="range"&&l){let{from:b,to:M}=l;if(b&&vr(g,b))return"rangeStart";if(M&&vr(g,M))return"rangeEnd";if(b&&M){let E=ft(g),Z=ft(b),ze=ft(M);if(E>Z&&E<ze)return"range"}}if(o==="single"&&W&&vr(g,W))return"selected";if(C&&vr(g,new Date))return"today";return"default"},[W,C,P,o,l]),Q=yr((g)=>{if(P(g))return;let b=new Date(g);if(o==="range"){if(!l?.from||l.from&&l.to)m?.({from:b,to:void 0});else{let M=ft(l.from);if(ft(b)<M)m?.({from:b,to:l.from});else m?.({from:l.from,to:b})}return}if(a===void 0)I(b);s?.(b)},[P,o,s,m,l,a]),L=yr((g)=>{D((b)=>{let M=new Date(b);return M.setMonth(M.getMonth()+g),M})},[D]),Y=Qn(()=>{return[...jn.slice(y),...jn.slice(0,y)]},[y]);return Ae("div",{ref:w,className:i(es({size:T}),e),...R,children:[Ae("div",{className:i(ts({size:T})),children:[Ae("button",{type:"button",onClick:()=>L(-1),className:i(Ji({size:T})),"aria-label":"Previous month",children:Ae("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Ae("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),Ae("span",{className:i(rs({size:T})),children:[Ef[z.getMonth()]," ",z.getFullYear()]},void 0,!0,void 0,this),Ae("button",{type:"button",onClick:()=>L(1),className:i(Ji({size:T})),"aria-label":"Next month",children:Ae("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Ae("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),Ae("div",{className:i(os({size:T})),children:[Y.map((g)=>Ae("div",{className:i(is({size:v})),children:g},g,!1,void 0,this)),V.map((g)=>{if(!g.date)return Ae("div",{"aria-hidden":"true",className:i(Qf({size:v}))},g.key,!1,void 0,this);let b=g.date,M=F(b);return Ae("button",{type:"button",onClick:()=>Q(b),disabled:M==="disabled",className:i(as({size:v,state:M})),children:b.getDate()},g.key,!1,void 0,this)})]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});ns.displayName="Calendar";import{Slot as br}from"@radix-ui/react-slot";import{cva as jf}from"class-variance-authority";import{forwardRef as Tr}from"react";import{jsxDEV as hr}from"react/jsx-dev-runtime";var Ao={default:"default",muted:"muted",danger:"danger"},ss=jf("gs-interactive relative overflow-hidden rounded-[var(--radius)] border bg-card text-card-foreground shadow-[var(--shadow-sm)]",{variants:{variant:{[Ao.default]:"border-border",[Ao.muted]:"border-border/70 bg-muted/40",[Ao.danger]:"border-destructive/30 bg-destructive/[0.06]"}},defaultVariants:{variant:Ao.default}}),ls=Tr(({asChild:e=!1,className:t,variant:r,...o},a)=>{return hr(e?br:"div",{ref:a,className:i(ss({variant:r}),t),...o},void 0,!1,void 0,this)});ls.displayName="Card";var ms=Tr(({asChild:e=!1,className:t,...r},o)=>{return hr(e?br:"div",{ref:o,className:i("flex flex-col gap-1.5 border-b border-border/50 p-4",t),...r},void 0,!1,void 0,this)});ms.displayName="CardHeader";var ds=Tr(({asChild:e=!1,className:t,...r},o)=>{return hr(e?br:"div",{ref:o,className:i("p-4",t),...r},void 0,!1,void 0,this)});ds.displayName="CardContent";var ps=Tr(({asChild:e=!1,className:t,...r},o)=>{return hr(e?br:"div",{ref:o,className:i("flex items-center border-t border-border/50 p-4",t),...r},void 0,!1,void 0,this)});ps.displayName="CardFooter";var cs=Tr(({asChild:e=!1,className:t,...r},o)=>{return hr(e?br:"h3",{ref:o,className:i("font-semibold text-base leading-none tracking-tight",t),...r},void 0,!1,void 0,this)});cs.displayName="CardTitle";var us=Tr(({asChild:e=!1,className:t,...r},o)=>{return hr(e?br:"p",{ref:o,className:i("text-sm text-muted-foreground",t),...r},void 0,!1,void 0,this)});us.displayName="CardDescription";import*as Vo from"@radix-ui/react-checkbox";import{cva as eg}from"class-variance-authority";import{Check as tg,Minus as rg}from"lucide-react";import{forwardRef as og}from"react";import{jsxDEV as Io}from"react/jsx-dev-runtime";var Ye={sm:"sm",md:"md",lg:"lg",xl:"xl"},Pr={default:"default",error:"error",success:"success"},gs=eg("gs-interactive 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:{[Ye.sm]:"h-4 w-4",[Ye.md]:"h-5 w-5",[Ye.lg]:"h-6 w-6",[Ye.xl]:"h-7 w-7"},status:{[Pr.default]:"enabled:hover:border-primary/70",[Pr.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",[Pr.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:Ye.md,status:Pr.default}}),fs={[Ye.sm]:"size-3.5",[Ye.md]:"size-3.5",[Ye.lg]:"size-4",[Ye.xl]:"size-5"},ys=og(({className:e,size:t=Ye.md,status:r=Pr.default,checked:o,disabled:a,...n},s)=>{let l=c(t);return Io(Vo.Root,{ref:s,checked:o,disabled:a,className:i(gs({size:l,status:r}),e),...n,children:Io(Vo.Indicator,{className:"gs-checkbox-indicator flex items-center justify-center text-current",children:o==="indeterminate"?Io(rg,{className:fs[l]},void 0,!1,void 0,this):Io(tg,{className:fs[l]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});ys.displayName="Checkbox";import{cva as zt}from"class-variance-authority";import{forwardRef as ig,useCallback as ag,useState as ng}from"react";import{jsxDEV as Ne,Fragment as vs}from"react/jsx-dev-runtime";var X={sm:"sm",md:"md",lg:"lg"},Qi={default:"default",ghost:"ghost"},bs=zt("relative rounded-lg overflow-hidden font-mono",{variants:{size:{[X.sm]:"text-xs",[X.md]:"text-sm",[X.lg]:"text-base"},variant:{[Qi.default]:"bg-muted border border-border",[Qi.ghost]:"bg-transparent"}},defaultVariants:{size:X.md,variant:Qi.default}}),Ts=zt("flex items-center justify-between border-b border-border bg-muted",{variants:{size:{[X.sm]:"px-2.5 py-1.5 text-xs",[X.md]:"px-4 py-2 text-sm",[X.lg]:"px-5 py-2.5 text-base"}},defaultVariants:{size:X.md}}),hs=zt("text-muted-foreground font-medium",{variants:{size:{[X.sm]:"text-[11px]",[X.md]:"text-xs",[X.lg]:"text-sm"}},defaultVariants:{size:X.md}}),Ps=zt(["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:{[X.sm]:"px-2 py-1 text-xs",[X.md]:"px-2.5 py-1 text-xs",[X.lg]:"px-3 py-1.5 text-sm"},copied:{true:"text-success",false:""}},defaultVariants:{size:X.md,copied:!1}}),xs=zt("overflow-x-auto",{variants:{size:{[X.sm]:"p-2.5",[X.md]:"p-4",[X.lg]:"p-5"}},defaultVariants:{size:X.md}}),Cs=zt("text-foreground",{variants:{size:{[X.sm]:"",[X.md]:"",[X.lg]:""},showLineNumbers:{true:"",false:""}},defaultVariants:{size:X.md,showLineNumbers:!1}}),zs=zt("block",{variants:{size:{[X.sm]:"min-h-[1.25rem]",[X.md]:"min-h-[1.5rem]",[X.lg]:"min-h-[1.75rem]"},highlighted:{true:"bg-primary/10 -mx-4 px-4",false:""}},defaultVariants:{size:X.md,highlighted:!1}}),Ss=zt("inline-block text-right text-muted-foreground select-none",{variants:{size:{[X.sm]:"w-6 mr-2 text-[10px]",[X.md]:"w-8 mr-4 text-xs",[X.lg]:"w-10 mr-5 text-sm"}},defaultVariants:{size:X.md}}),Ns=ig(({className:e,code:t,language:r,showLineNumbers:o=!1,highlightedLines:a=[],showCopy:n=!0,size:s="md",variant:l="default",onCopy:m,...d},f)=>{let u=c(s),[h,p]=ng(!1),y=ag(async()=>{try{await navigator.clipboard.writeText(t),p(!0),m?.(t),setTimeout(()=>p(!1),2000)}catch(w){}},[t,m]),C=t.split(`
3
- `),R=new Set(a);return Ne("div",{ref:f,className:i(bs({size:u,variant:l}),e),...d,children:[(r||n)&&Ne("div",{className:i(Ts({size:u})),children:[Ne("span",{className:i(hs({size:u})),children:r},void 0,!1,void 0,this),n&&Ne("button",{type:"button",onClick:y,className:i(Ps({size:u,copied:h})),children:h?Ne(vs,{children:[Ne("svg",{className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Ne("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):Ne(vs,{children:[Ne("svg",{className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Ne("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),Ne("div",{className:i(xs({size:u})),children:Ne("pre",{className:i(Cs({size:u,showLineNumbers:o})),children:Ne("code",{children:C.map((w,T)=>Ne("span",{className:i(zs({size:u,highlighted:R.has(T+1)})),children:[o&&Ne("span",{className:i(Ss({size:u})),children:T+1},void 0,!1,void 0,this),w,`
4
- `]},`line-${String(T)}`,!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)});Ns.displayName="CodeBlock";import*as xr from"@radix-ui/react-collapsible";import{cva as sg}from"class-variance-authority";import{forwardRef as lg}from"react";import{jsxDEV as pg}from"react/jsx-dev-runtime";var ws=sg("gs-collapsible-content overflow-hidden"),mg=xr.Root,dg=xr.CollapsibleTrigger,Rs=lg(({className:e,...t},r)=>pg(xr.CollapsibleContent,{ref:r,className:i(ws(),e),...t},void 0,!1,void 0,this));Rs.displayName="CollapsibleContent";import*as St from"@radix-ui/react-dialog";import{cva as Xe}from"class-variance-authority";import{createContext as cg,forwardRef as ot,useContext as ug,useEffect as fg,useState as Ms}from"react";import{jsxDEV as ye}from"react/jsx-dev-runtime";var Ls=Xe(["fixed left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 z-50","w-full max-w-lg","bg-background border border-border rounded-xl shadow-2xl","overflow-hidden","animate-in fade-in-0 zoom-in-95 duration-200","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95"],{variants:{size:{sm:"max-w-sm",md:"max-w-lg",lg:"max-w-2xl"}},defaultVariants:{size:"md"}}),Hs=Xe(["fixed inset-0 z-50 bg-black/50 backdrop-blur-sm","animate-in fade-in-0 duration-200","data-[state=closed]:animate-out data-[state=closed]:fade-out-0"]),ks=Xe(["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:opacity-50"]),As=Xe(["max-h-[300px] overflow-y-auto overflow-x-hidden p-2"]),Is=Xe(["py-6 text-center text-sm text-muted-foreground"]),Vs=Xe(["overflow-hidden"]),Ds=Xe(["px-2 py-1.5 text-xs font-medium text-muted-foreground"]),Do={default:"default",danger:"danger"},Fs=Xe(["relative flex items-center gap-2 rounded-lg px-2 py-2","text-sm cursor-pointer select-none","outline-none transition-colors duration-150","data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50"],{variants:{selected:{true:"bg-primary/10 text-primary",false:"hover:bg-background-subtle"},variant:{[Do.default]:"text-foreground",[Do.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{selected:!1,variant:Do.default}}),Os=Xe(["-mx-1 my-1 h-px bg-border"]),Bs=Xe(["ml-auto text-xs tracking-widest text-muted-foreground"]),_s=Xe(["flex items-center justify-center py-6"]),Gs=cg(null),Ei=()=>{let e=ug(Gs);if(!e)throw Error("useCommand must be used within a Command");return e},ji=ot(({className:e,children:t,loop:r=!0,...o},a)=>{let[n,s]=Ms(""),[l,m]=Ms(0);return ye(Gs.Provider,{value:{search:n,setSearch:s,selectedIndex:l,setSelectedIndex:m},children:ye("div",{ref:a,className:i("flex flex-col overflow-hidden rounded-xl bg-background",e),...o,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});ji.displayName="Command";var Ws=ot(({children:e,size:t,...r},o)=>{return ye(St.Root,{...r,children:ye(St.Portal,{children:[ye(St.Overlay,{className:i(Hs())},void 0,!1,void 0,this),ye(St.Content,{ref:o,className:i(Ls({size:t})),children:ye(ji,{children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Ws.displayName="CommandDialog";var Us=ot(({className:e,icon:t,...r},o)=>{let{search:a,setSearch:n,setSelectedIndex:s}=Ei();return ye("div",{className:"flex items-center border-border border-b px-3",children:[t&&ye("span",{className:"mr-2 shrink-0 text-muted-foreground",children:t},void 0,!1,void 0,this),ye("input",{ref:o,value:a,onChange:(l)=>{n(l.target.value),s(0)},className:i(ks(),e),...r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Us.displayName="CommandInput";var $s=ot(({className:e,children:t,...r},o)=>{return ye("div",{ref:o,className:i(As(),e),...r,children:t},void 0,!1,void 0,this)});$s.displayName="CommandList";var Ks=ot(({className:e,children:t="No results found.",...r},o)=>{return ye("div",{ref:o,className:i(Is(),e),...r,children:t},void 0,!1,void 0,this)});Ks.displayName="CommandEmpty";var Ys=ot(({className:e,heading:t,children:r,...o},a)=>{return ye("div",{ref:a,className:i(Vs(),e),...o,children:[t&&ye("div",{className:i(Ds()),children:t},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)});Ys.displayName="CommandGroup";var Xs=ot(({className:e,disabled:t,onSelect:r,children:o,keywords:a,variant:n,...s},l)=>{let{search:m}=Ei();if(!(()=>{if(!m)return!0;let f=m.toLowerCase();if((typeof o==="string"?o.toLowerCase():"").includes(f))return!0;if(a?.some((h)=>h.toLowerCase().includes(f)))return!0;return!1})())return null;return ye("div",{ref:l,role:"option","aria-selected":!1,"aria-disabled":t,"data-disabled":t,onClick:()=>!t&&r?.(),onKeyDown:(f)=>{if(f.key==="Enter"&&!t)f.preventDefault(),r?.()},tabIndex:t?-1:0,className:i(Fs({selected:!1,variant:n}),e),...s,children:o},void 0,!1,void 0,this)});Xs.displayName="CommandItem";var Zs=ot(({className:e,...t},r)=>{return ye("div",{ref:r,className:i(Os(),e),...t},void 0,!1,void 0,this)});Zs.displayName="CommandSeparator";var qs=ot(({className:e,children:t,...r},o)=>{return ye("span",{ref:o,className:i(Bs(),e),...r,children:t},void 0,!1,void 0,this)});qs.displayName="CommandShortcut";var Js=ot(({className:e,children:t,...r},o)=>{return ye("div",{ref:o,className:i(_s(),e),...r,children:t},void 0,!1,void 0,this)});Js.displayName="CommandLoading";var gg=({key:e,modifier:t="meta",callback:r})=>{fg(()=>{let o=(a)=>{if({ctrl:a.ctrlKey,meta:a.metaKey,alt:a.altKey,shift:a.shiftKey}[t]&&a.key.toLowerCase()===e.toLowerCase())a.preventDefault(),r()};return document.addEventListener("keydown",o),()=>document.removeEventListener("keydown",o)},[e,t,r])};import*as _ from"@radix-ui/react-context-menu";import{cva as _t}from"class-variance-authority";import{Check as yg,ChevronRight as vg,Circle as bg}from"lucide-react";import{createContext as Tg,forwardRef as Nt,useContext as Cr}from"react";import{jsxDEV as ce}from"react/jsx-dev-runtime";var $={sm:"sm",md:"md",lg:"lg"},Fo={default:"default",danger:"danger"},Gt=Tg($.md),ea=_t("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)]"),ta=_t("gs-interactive 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:{[$.sm]:"h-6 gap-1.5 px-1.5 text-xs [&_svg]:size-3",[$.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[$.lg]:"h-9 gap-2 px-2.5 text-sm [&_svg]:size-4"},variant:{[Fo.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[Fo.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{size:$.md,variant:Fo.default}}),Qs=_t("gs-interactive 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:{[$.sm]:"h-6 pl-6 pr-1.5 text-xs",[$.md]:"h-8 pl-8 pr-2 text-sm",[$.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:$.md}}),Es=_t("gs-interactive 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:{[$.sm]:"h-6 pl-6 pr-1.5 text-xs",[$.md]:"h-8 pl-8 pr-2 text-sm",[$.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:$.md}}),js=_t("font-semibold text-muted-foreground",{variants:{size:{[$.sm]:"px-1.5 py-0.5 text-[10px]",[$.md]:"px-2 py-1.5 text-xs",[$.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:$.md}}),el=_t("-mx-1 my-1 h-px bg-border/50"),tl=_t("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[$.sm]:"text-[10px]",[$.md]:"text-xs",[$.lg]:"text-xs"}},defaultVariants:{size:$.md}}),rl={[$.sm]:"absolute left-1.5 flex size-3 items-center justify-center",[$.md]:"absolute left-2 flex size-3.5 items-center justify-center",[$.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},hg={[$.sm]:"size-3",[$.md]:"size-3.5",[$.lg]:"size-4"},Pg={[$.sm]:"size-1.5 fill-current",[$.md]:"size-2 fill-current",[$.lg]:"size-2.5 fill-current"},xg=_.Root,Cg=_.Trigger,zg=_.Group,Sg=_.Portal,Ng=_.Sub,wg=_.RadioGroup,ol=Nt(({className:e,inset:t,children:r,...o},a)=>{let n=Cr(Gt),s=c(n);return ce(_.SubTrigger,{ref:a,className:i(ta({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,ce(vg,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});ol.displayName=_.SubTrigger.displayName;var il=Nt(({className:e,...t},r)=>ce(_.Portal,{children:ce(_.SubContent,{ref:r,className:i(ea(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));il.displayName=_.SubContent.displayName;var al=Nt(({className:e,size:t,...r},o)=>{let a=c(t)??$.md;return ce(Gt.Provider,{value:a,children:ce(_.Portal,{children:ce(_.Content,{ref:o,className:i(ea(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});al.displayName=_.Content.displayName;var nl=Nt(({className:e,inset:t,variant:r,...o},a)=>{let n=Cr(Gt),s=c(n);return ce(_.Item,{ref:a,className:i(ta({size:s,variant:r}),t&&"pl-8",e),...o},void 0,!1,void 0,this)});nl.displayName=_.Item.displayName;var sl=Nt(({className:e,children:t,checked:r,...o},a)=>{let n=Cr(Gt),s=c(n)??$.md;return ce(_.CheckboxItem,{ref:a,className:i(Qs({size:s}),e),checked:r,...o,children:[ce("span",{className:rl[s],children:ce(_.ItemIndicator,{children:ce(yg,{className:hg[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)});sl.displayName=_.CheckboxItem.displayName;var ll=Nt(({className:e,children:t,...r},o)=>{let a=Cr(Gt),n=c(a)??$.md;return ce(_.RadioItem,{ref:o,className:i(Es({size:n}),e),...r,children:[ce("span",{className:rl[n],children:ce(_.ItemIndicator,{children:ce(bg,{className:Pg[n]},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)});ll.displayName=_.RadioItem.displayName;var ml=Nt(({className:e,inset:t,...r},o)=>{let a=Cr(Gt),n=c(a);return ce(_.Label,{ref:o,className:i(js({size:n}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});ml.displayName=_.Label.displayName;var dl=Nt(({className:e,...t},r)=>ce(_.Separator,{ref:r,className:i(el(),e),...t},void 0,!1,void 0,this));dl.displayName=_.Separator.displayName;var pl=({className:e,...t})=>{let r=Cr(Gt),o=c(r);return ce("span",{className:i(tl({size:o}),e),...t},void 0,!1,void 0,this)};pl.displayName="ContextMenuShortcut";import*as be from"@radix-ui/react-dialog";import{cva as Rg}from"class-variance-authority";import{X as Mg}from"lucide-react";import{forwardRef as Oo}from"react";import{jsxDEV as Ze}from"react/jsx-dev-runtime";var wt={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},ra=be.Root,Lg=be.Trigger,cl=be.Portal,Hg=be.Close,oa=Oo(({className:e,...t},r)=>Ze(be.Overlay,{ref:r,className:i("gs-dialog-overlay fixed inset-0 z-50 bg-black/50",e),...t},void 0,!1,void 0,this));oa.displayName="DialogOverlay";var ul=Rg("gs-dialog-content fixed left-1/2 top-1/2 z-50 grid w-full gap-4 border border-border bg-background p-6 text-foreground shadow-[var(--shadow-xl)] rounded-[var(--radius)]",{variants:{size:{[wt.sm]:"max-w-sm",[wt.md]:"max-w-md",[wt.lg]:"max-w-lg",[wt.xl]:"max-w-xl",[wt.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:wt.md}}),Bo=Oo(({className:e,children:t,size:r=wt.md,showClose:o=!0,...a},n)=>{let s=c(r);return Ze(cl,{children:[Ze(oa,{},void 0,!1,void 0,this),Ze(be.Content,{ref:n,className:i(ul({size:s}),e),...a,children:[t,o&&Ze(be.Close,{className:"gs-interactive 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",children:[Ze(Mg,{className:"size-4"},void 0,!1,void 0,this),Ze("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)});Bo.displayName="DialogContent";var fl=({className:e,...t})=>Ze("div",{className:i("flex flex-col space-y-1.5 text-center sm:text-left",e),...t},void 0,!1,void 0,this);fl.displayName="DialogHeader";var gl=({className:e,...t})=>Ze("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);gl.displayName="DialogFooter";var yl=Oo(({className:e,...t},r)=>Ze(be.Title,{ref:r,className:i("font-semibold text-lg leading-none tracking-tight",e),...t},void 0,!1,void 0,this));yl.displayName="DialogTitle";var vl=Oo(({className:e,...t},r)=>Ze(be.Description,{ref:r,className:i("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));vl.displayName="DialogDescription";import{cva as ia}from"class-variance-authority";import{X as kg}from"lucide-react";import{forwardRef as _o}from"react";import{Drawer as gt}from"vaul";import{jsxDEV as Fe}from"react/jsx-dev-runtime";var Oe={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},Ag={[Oe.sm]:"sm:max-w-sm",[Oe.md]:"sm:max-w-md",[Oe.lg]:"sm:max-w-lg",[Oe.xl]:"sm:max-w-xl",[Oe.full]:"sm:max-w-full"},Ig={[Oe.sm]:"sm:max-h-[30vh]",[Oe.md]:"sm:max-h-[50vh]",[Oe.lg]:"sm:max-h-[70vh]",[Oe.xl]:"sm:max-h-[85vh]",[Oe.full]:"sm:max-h-full"},bl=ia(["fixed inset-0 z-50 bg-black/50","data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:duration-200","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:duration-150"]),Tl=ia(["group/drawer-content fixed z-50 flex h-auto flex-col border border-border bg-background 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"]),hl=ia("mx-auto shrink-0 rounded-full bg-muted-foreground/25 transition-colors duration-150 hover:bg-muted-foreground/40",{variants:{direction:{top:"mb-4 mt-2 h-1.5 w-[60px]",bottom:"mb-2 mt-4 h-1.5 w-[60px]",left:"ml-auto mr-2 mt-auto mb-auto h-[60px] w-1.5",right:"ml-2 mr-auto mt-auto mb-auto h-[60px] w-1.5"}},defaultVariants:{direction:"bottom"}}),Vg=gt.Root,Dg=gt.Trigger,Fg=gt.Close,Pl=gt.Portal,aa=_o(({className:e,...t},r)=>Fe(gt.Overlay,{ref:r,className:i(bl(),e),...t},void 0,!1,void 0,this));aa.displayName="DrawerOverlay";var xl=_o(({size:e=Oe.md,showClose:t=!1,direction:r="bottom",className:o,children:a,...n},s)=>{let m=r==="left"||r==="right"?Ag[e]:Ig[e];return Fe(Pl,{children:[Fe(aa,{},void 0,!1,void 0,this),Fe(gt.Content,{ref:s,className:i(Tl(),m,o),...n,children:[(r==="top"||r==="bottom")&&Fe("div",{className:i(hl({direction:r}))},void 0,!1,void 0,this),a,t&&Fe(gt.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:[Fe(kg,{className:"size-4"},void 0,!1,void 0,this),Fe("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)});xl.displayName="DrawerContent";var Cl=({className:e,...t})=>Fe("div",{className:i("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);Cl.displayName="DrawerHeader";var zl=({className:e,...t})=>Fe("div",{className:i("mt-auto flex flex-col gap-2 p-4",e),...t},void 0,!1,void 0,this);zl.displayName="DrawerFooter";var Sl=_o(({className:e,...t},r)=>Fe(gt.Title,{ref:r,className:i("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));Sl.displayName="DrawerTitle";var Nl=_o(({className:e,...t},r)=>Fe(gt.Description,{ref:r,className:i("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));Nl.displayName="DrawerDescription";import*as G from"@radix-ui/react-dropdown-menu";import{cva as Ut}from"class-variance-authority";import{Check as Og,ChevronRight as Bg,Circle as _g}from"lucide-react";import{createContext as Gg,forwardRef as Rt,useCallback as Wg,useContext as zr,useEffect as Ug,useRef as wl,useState as $g}from"react";import{jsxDEV as me}from"react/jsx-dev-runtime";var K={sm:"sm",md:"md",lg:"lg"},Go={default:"default",danger:"danger"},$t=Gg(K.md),Wt=null,qr=null,Kg=0,na=Ut("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)]"),sa=Ut("gs-interactive 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:{[K.sm]:"h-7 gap-1.5 px-2 text-xs [&_svg]:size-3.5",[K.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[K.lg]:"h-9 gap-2 px-2.5 text-sm [&_svg]:size-4"},variant:{[Go.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[Go.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{size:K.md,variant:Go.default}}),Rl=Ut("gs-interactive 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:{[K.sm]:"h-7 pl-7 pr-2 text-xs",[K.md]:"h-8 pl-8 pr-2 text-sm",[K.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:K.md}}),Ml=Ut("gs-interactive 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:{[K.sm]:"h-7 pl-7 pr-2 text-xs",[K.md]:"h-8 pl-8 pr-2 text-sm",[K.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:K.md}}),Ll=Ut("font-semibold text-muted-foreground",{variants:{size:{[K.sm]:"px-2 py-1 text-[11px]",[K.md]:"px-2 py-1.5 text-xs",[K.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:K.md}}),Hl=Ut("-mx-1 my-1 h-px bg-border/50"),kl=Ut("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[K.sm]:"text-[11px]",[K.md]:"text-xs",[K.lg]:"text-xs"}},defaultVariants:{size:K.md}}),Al={[K.sm]:"absolute left-2 flex size-3.5 items-center justify-center",[K.md]:"absolute left-2 flex size-3.5 items-center justify-center",[K.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},Yg={[K.sm]:"size-3",[K.md]:"size-3.5",[K.lg]:"size-4"},Xg={[K.sm]:"size-1.5 fill-current",[K.md]:"size-2 fill-current",[K.lg]:"size-2.5 fill-current"},Il=({children:e,open:t,defaultOpen:r,onOpenChange:o,...a})=>{let[n,s]=$g(r??!1),l=t!==void 0,m=l?t:n,d=wl(++Kg),f=wl({onOpenChange:o,isControlled:l});f.current={onOpenChange:o,isControlled:l};let u=Wg((h)=>{let{onOpenChange:p,isControlled:y}=f.current;if(h){if(Wt!==null&&Wt!==d.current&&qr)qr();Wt=d.current,qr=()=>{let{onOpenChange:C,isControlled:R}=f.current;if(!R)s(!1);C?.(!1)}}else if(Wt===d.current)Wt=null,qr=null;if(!y)s(h);p?.(h)},[]);return Ug(()=>{return()=>{if(Wt===d.current)Wt=null,qr=null}},[]),me(G.Root,{open:m,onOpenChange:u,...a,children:e},void 0,!1,void 0,this)};Il.displayName="DropdownMenu";var Zg=G.Trigger,qg=G.Group,Jg=G.Portal,Qg=G.Sub,Eg=G.RadioGroup,Vl=Rt(({className:e,inset:t,children:r,...o},a)=>{let n=zr($t),s=c(n);return me(G.SubTrigger,{ref:a,className:i(sa({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,me(Bg,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Vl.displayName=G.SubTrigger.displayName;var Dl=Rt(({className:e,...t},r)=>me(G.Portal,{children:me(G.SubContent,{ref:r,className:i(na(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));Dl.displayName=G.SubContent.displayName;var Fl=Rt(({className:e,sideOffset:t=4,size:r,...o},a)=>{let n=c(r)??K.md;return me($t.Provider,{value:n,children:me(G.Portal,{children:me(G.Content,{ref:a,sideOffset:t,className:i(na(),e),...o},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Fl.displayName=G.Content.displayName;var Ol=Rt(({className:e,inset:t,variant:r,...o},a)=>{let n=zr($t),s=c(n);return me(G.Item,{ref:a,className:i(sa({size:s,variant:r}),t&&"pl-8",e),...o},void 0,!1,void 0,this)});Ol.displayName=G.Item.displayName;var Bl=Rt(({className:e,children:t,checked:r,...o},a)=>{let n=zr($t),s=c(n)??K.md;return me(G.CheckboxItem,{ref:a,className:i(Rl({size:s}),e),checked:r,...o,children:[me("span",{className:Al[s],children:me(G.ItemIndicator,{children:me(Og,{className:Yg[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)});Bl.displayName=G.CheckboxItem.displayName;var _l=Rt(({className:e,children:t,...r},o)=>{let a=zr($t),n=c(a)??K.md;return me(G.RadioItem,{ref:o,className:i(Ml({size:n}),e),...r,children:[me("span",{className:Al[n],children:me(G.ItemIndicator,{children:me(_g,{className:Xg[n]},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)});_l.displayName=G.RadioItem.displayName;var Gl=Rt(({className:e,inset:t,...r},o)=>{let a=zr($t),n=c(a);return me(G.Label,{ref:o,className:i(Ll({size:n}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});Gl.displayName=G.Label.displayName;var Wl=Rt(({className:e,...t},r)=>me(G.Separator,{ref:r,className:i(Hl(),e),...t},void 0,!1,void 0,this));Wl.displayName=G.Separator.displayName;var Ul=({className:e,...t})=>{let r=zr($t),o=c(r);return me("span",{className:i(kl({size:o}),e),...t},void 0,!1,void 0,this)};Ul.displayName="DropdownMenuShortcut";import{cva as Qr}from"class-variance-authority";import{forwardRef as jg}from"react";import{jsxDEV as Jr}from"react/jsx-dev-runtime";var Te={sm:"sm",md:"md",lg:"lg"},$l=Qr("flex flex-col items-center justify-center text-center rounded-[var(--radius)] border border-dashed border-border/50 bg-muted/20",{variants:{size:{[Te.sm]:"gap-2 p-4",[Te.md]:"gap-4 p-8",[Te.lg]:"gap-6 p-12"}},defaultVariants:{size:Te.md}}),Kl=Qr("flex items-center justify-center rounded-full bg-muted/50 text-muted-foreground",{variants:{size:{[Te.sm]:"h-10 w-10 [&>svg]:h-4 [&>svg]:w-4",[Te.md]:"h-16 w-16 [&>svg]:h-7 [&>svg]:w-7",[Te.lg]:"h-20 w-20 [&>svg]:h-9 [&>svg]:w-9"}},defaultVariants:{size:Te.md}}),Yl=Qr("font-semibold text-foreground",{variants:{size:{[Te.sm]:"text-sm",[Te.md]:"text-lg",[Te.lg]:"text-xl"}},defaultVariants:{size:Te.md}}),Xl=Qr("text-muted-foreground max-w-sm",{variants:{size:{[Te.sm]:"text-xs",[Te.md]:"text-sm",[Te.lg]:"text-base"}},defaultVariants:{size:Te.md}}),Zl=Qr("flex items-center gap-2 mt-2"),ql=jg(({className:e,icon:t,title:r,description:o,actions:a,size:n=Te.md,children:s,...l},m)=>{let d=c(n);return Jr("div",{ref:m,className:i($l({size:d}),e),...l,children:[t&&Jr("div",{className:Kl({size:d}),children:t},void 0,!1,void 0,this),r&&Jr("h3",{className:Yl({size:d}),children:r},void 0,!1,void 0,this),o&&Jr("p",{className:Xl({size:d}),children:o},void 0,!1,void 0,this),a&&Jr("div",{className:Zl(),children:a},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)});ql.displayName="EmptyState";import{cva as Sr}from"class-variance-authority";import{Component as ey,createElement as Jl}from"react";import{jsxDEV as we,Fragment as ry}from"react/jsx-dev-runtime";var Ql=Sr(["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"}}),El=Sr(["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"}}),jl=Sr("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=Sr("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"}}),tm=Sr("mt-2 flex flex-wrap items-center justify-center gap-2"),rm=Sr("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 om extends ey{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:a="destructive",className:n,title:s="Something went wrong",description:l="An unexpected error occurred. Please try again.",icon:m,actions:d,resetLabel:f="Try again",hideReset:u=!1,renderDetails:h}=this.props;if(this.state.hasError&&this.state.error){let p={error:this.state.error,reset:this.handleReset};if(t){if(typeof t==="function")return Jl(t,p);return t}let y=null;if(d)y=typeof d==="function"?Jl(d,p):d;else if(!u){let R={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"};y=we("button",{type:"button",onClick:this.handleReset,className:i("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",R[a]),children:f},void 0,!1,void 0,this)}let C=h?h(this.state.error):we(ry,{children:[we("strong",{children:"Error:"},void 0,!1,void 0,this)," ",this.state.error.message,this.state.error.stack&&we("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 we("div",{className:i(Ql({size:o,variant:a}),n),children:[we("div",{className:i(El({size:o,variant:a})),children:m??we(ty,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),we("h3",{className:i(jl({size:o,variant:a})),children:s},void 0,!1,void 0,this),we("p",{className:i(em({size:o})),children:l},void 0,!1,void 0,this),y&&we("div",{className:i(tm()),children:y},void 0,!1,void 0,this),r&&we("div",{className:i(rm()),children:C},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}return e}}function ty(){return we("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:[we("circle",{cx:"12",cy:"12",r:"10"},void 0,!1,void 0,this),we("line",{x1:"12",x2:"12",y1:"8",y2:"12"},void 0,!1,void 0,this),we("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 Mt}from"class-variance-authority";import{forwardRef as oy,useCallback as qe,useRef as iy,useState as im}from"react";import{jsxDEV as xe}from"react/jsx-dev-runtime";var ie={sm:"sm",md:"md",lg:"lg",xl:"xl"},am=Mt(["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:{[ie.sm]:"min-h-28 p-5",[ie.md]:"min-h-36 p-8",[ie.lg]:"min-h-44 p-10",[ie.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:ie.md,isDragging:!1,disabled:!1,hasError:!1}}),nm=Mt("text-muted-foreground transition-colors duration-200",{variants:{size:{[ie.sm]:"mb-2 size-6",[ie.md]:"size-8 mb-3",[ie.lg]:"size-10 mb-4",[ie.xl]:"size-12 mb-5"},isDragging:{true:"text-primary",false:""}},defaultVariants:{size:ie.md,isDragging:!1}}),la=Mt("text-center",{variants:{size:{[ie.sm]:"text-sm",[ie.md]:"text-sm",[ie.lg]:"text-base",[ie.xl]:"text-lg"}},defaultVariants:{size:ie.md}}),sm=Mt("mt-4 w-full space-y-2"),lm=Mt(["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"]),mm=Mt("min-w-0 flex-1 truncate font-medium text-foreground",{variants:{size:{[ie.sm]:"text-sm",[ie.md]:"text-sm",[ie.lg]:"text-base",[ie.xl]:"text-base"}},defaultVariants:{size:"md"}}),dm=Mt("text-muted-foreground",{variants:{size:{[ie.sm]:"text-xs",[ie.md]:"text-sm",[ie.lg]:"text-sm",[ie.xl]:"text-base"}},defaultVariants:{size:"md"}}),pm=Mt(["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"]),cm=oy(({className:e,size:t="md",disabled:r=!1,accept:o,multiple:a=!1,maxSize:n,maxFiles:s,value:l=[],onChange:m,onError:d,icon:f,title:u="Drop files here or click to upload",description:h,showFileList:p=!0,...y},C)=>{let R=c(t),[w,T]=im(!1),[v,x]=im(!1),I=iy(null),S=qe((L)=>{if(L===0)return"0 Bytes";let Y=1024,g=["Bytes","KB","MB","GB"],b=Math.floor(Math.log(L)/Math.log(Y));return`${parseFloat((L/Y**b).toFixed(2))} ${g[b]}`},[]),A=qe((L)=>{let Y=[...L];if(x(!1),o){let g=o.split(",").map((b)=>b.trim());if(Y=Y.filter((b)=>{return g.some((M)=>{if(M.startsWith("."))return b.name.toLowerCase().endsWith(M.toLowerCase());if(M.endsWith("/*"))return b.type.startsWith(M.slice(0,-1));return b.type===M})}),Y.length<L.length)d?.("Some files were rejected due to file type"),x(!0)}if(n){let g=Y.length;if(Y=Y.filter((b)=>b.size<=n),Y.length<g)d?.(`File size must be less than ${S(n)}`),x(!0)}if(s&&Y.length+l.length>s)Y=Y.slice(0,s-l.length),d?.(`Maximum ${s} files allowed`),x(!0);return Y},[o,n,s,l.length,d,S]),z=qe((L)=>{if(!L||L.length===0)return;let Y=Array.from(L),g=A(Y);if(g.length>0)if(a)m?.([...l,...g]);else m?.(g.slice(0,1))},[a,l,m,A]),D=qe((L)=>{L.preventDefault(),L.stopPropagation(),T(!0)},[]),W=qe((L)=>{L.preventDefault(),L.stopPropagation(),T(!1)},[]),O=qe((L)=>{L.preventDefault(),L.stopPropagation()},[]),U=qe((L)=>{if(L.preventDefault(),L.stopPropagation(),T(!1),r)return;z(L.dataTransfer.files)},[r,z]),N=qe((L)=>{if(z(L.target.files),I.current)I.current.value=""},[z]),V=qe(()=>{if(!r)I.current?.click()},[r]),P=qe((L)=>{if(L.key==="Enter"||L.key===" ")L.preventDefault(),V()},[V]),F=qe((L)=>{let Y=l.filter((g,b)=>b!==L);m?.(Y)},[l,m]),Q=xe("svg",{className:i(nm({size:R,isDragging:w})),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:xe("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 xe("div",{ref:C,className:i("w-full",e),...y,children:[xe("div",{role:"button",tabIndex:r?-1:0,onClick:V,onKeyDown:P,onDragEnter:D,onDragLeave:W,onDragOver:O,onDrop:U,className:i(am({size:R,isDragging:w,disabled:r,hasError:v})),children:[xe("input",{ref:I,type:"file",accept:o,multiple:a,disabled:r,onChange:N,className:"sr-only"},void 0,!1,void 0,this),f||Q,xe("p",{className:i(la({size:R}),"font-medium text-foreground"),children:u},void 0,!1,void 0,this),h&&xe("p",{className:i(la({size:R}),"mt-1 text-muted-foreground"),children:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p&&l.length>0&&xe("div",{className:i(sm()),children:l.map((L,Y)=>xe("div",{className:i(lm()),children:[xe("svg",{className:"size-5 shrink-0 text-muted-foreground",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:xe("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),xe("span",{className:i(mm({size:R})),children:L.name},void 0,!1,void 0,this),xe("span",{className:i(dm({size:R})),children:S(L.size)},void 0,!1,void 0,this),xe("button",{type:"button",onClick:(g)=>{g.stopPropagation(),F(Y)},className:i(pm()),"aria-label":`Remove ${L.name}`,children:xe("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:xe("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)]},`${L.name}-${Y}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});cm.displayName="FileUpload";import{cva as ay}from"class-variance-authority";import{createContext as ny,forwardRef as Wo,useContext as sy,useId as ly}from"react";import{jsxDEV as Kt,Fragment as dy}from"react/jsx-dev-runtime";var Be={sm:"sm",md:"md",lg:"lg"},um=ny(null),Er=()=>{let e=sy(um);if(!e)throw Error("useFormField must be used within a FormField");return e},fm=ay("flex flex-col",{variants:{size:{[Be.sm]:"gap-1",[Be.md]:"gap-1.5",[Be.lg]:"gap-2"}},defaultVariants:{size:Be.md}}),gm=Wo(({className:e,size:t=Be.md,error:r,disabled:o=!1,required:a=!1,children:n,...s},l)=>{let m=ly(),d=c(t),f={id:m,size:d,error:r,disabled:o,required:a};return Kt(um.Provider,{value:f,children:Kt("div",{ref:l,className:i(fm({size:d}),e),...s,children:n},void 0,!1,void 0,this)},void 0,!1,void 0,this)});gm.displayName="FormField";var my={[Be.sm]:"text-xs",[Be.md]:"text-sm",[Be.lg]:"text-base"},ym=Wo(({className:e,htmlFor:t,children:r,...o},a)=>{let{id:n,size:s,disabled:l,required:m}=Er();return Kt("label",{ref:a,htmlFor:t??n,className:i("inline-block font-medium text-foreground select-none",my[s],l&&"cursor-not-allowed opacity-60",e),...o,children:[r,m&&Kt("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});ym.displayName="FormFieldLabel";var vm={[Be.sm]:"text-[10px]",[Be.md]:"text-xs",[Be.lg]:"text-sm"},bm=Wo(({className:e,...t},r)=>{let{id:o,size:a}=Er();return Kt("p",{ref:r,id:`${o}-description`,className:i("text-muted-foreground",vm[a],e),...t},void 0,!1,void 0,this)});bm.displayName="FormFieldDescription";var Tm=Wo(({className:e,children:t,...r},o)=>{let{id:a,size:n,error:s}=Er(),l=t??s;if(!l)return null;return Kt("p",{ref:o,id:`${a}-error`,role:"alert",className:i("text-destructive",vm[n],e),...r,children:l},void 0,!1,void 0,this)});Tm.displayName="FormFieldError";var hm=({children:e})=>{let{id:t,disabled:r,required:o,error:a}=Er(),n=[a?`${t}-error`:void 0,`${t}-description`].filter(Boolean).join(" ");return Kt(dy,{children:e({id:t,disabled:r,required:o,status:a?"error":"default","aria-describedby":n||void 0,"aria-invalid":a?!0:void 0})},void 0,!1,void 0,this)};hm.displayName="FormFieldControl";import*as Yt from"@radix-ui/react-hover-card";import{cva as py}from"class-variance-authority";import{forwardRef as cy}from"react";import{jsxDEV as gy}from"react/jsx-dev-runtime";var Nr={sm:"sm",md:"md",lg:"lg"},Pm=py("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:{[Nr.sm]:"w-52 p-3 text-xs",[Nr.md]:"w-64 p-4 text-sm",[Nr.lg]:"w-80 p-5 text-sm"}},defaultVariants:{size:Nr.md}}),uy=Yt.Root,fy=Yt.Trigger,xm=cy(({className:e,align:t="center",sideOffset:r=4,size:o=Nr.md,...a},n)=>{let s=c(o);return gy(Yt.Content,{ref:n,align:t,sideOffset:r,className:i(Pm({size:s}),e),...a},void 0,!1,void 0,this)});xm.displayName=Yt.Content.displayName;import{cva as yy}from"class-variance-authority";import{X as vy}from"lucide-react";import{forwardRef as by,useRef as Ty,useState as hy}from"react";import{jsxDEV as Xt}from"react/jsx-dev-runtime";var jr={default:"default",error:"error",success:"success"},J={sm:"sm",md:"md",lg:"lg",xl:"xl"},Py="Clear input",zm=yy("gs-interactive 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:{[jr.default]:"focus-visible:ring-primary",[jr.error]:"border-destructive focus-visible:ring-destructive",[jr.success]:"border-success focus-visible:ring-success"},size:{[J.sm]:"h-8 px-2 text-xs",[J.md]:"h-10 px-3",[J.lg]:"h-11 px-4",[J.xl]:"h-12 px-4 text-base"}},defaultVariants:{status:jr.default,size:J.md}}),xy={[J.sm]:"pl-7",[J.md]:"pl-9",[J.lg]:"pl-10",[J.xl]:"pl-10"},Cy={[J.sm]:"pr-7",[J.md]:"pr-9",[J.lg]:"pr-10",[J.xl]:"pr-10"},zy={[J.sm]:"pr-12",[J.md]:"pr-16",[J.lg]:"pr-18",[J.xl]:"pr-18"},Sy={[J.sm]:"text-xs left-2",[J.md]:"text-sm left-3",[J.lg]:"text-sm left-3.5",[J.xl]:"text-base left-3.5"},Ny={[J.sm]:"text-xs",[J.md]:"text-sm",[J.lg]:"text-sm",[J.xl]:"text-base"},wy={[J.sm]:"size-4",[J.md]:"size-5",[J.lg]:"size-5",[J.xl]:"size-6"};function Cm(e){if(e===void 0||e===null)return"";if(Array.isArray(e))return e.join("");return String(e)}var Sm=by(({className:e,status:t=jr.default,size:r=J.md,fullWidth:o=!1,prefix:a,suffix:n,clearable:s=!1,clearAriaLabel:l=Py,onClear:m,onValueChange:d,disabled:f,readOnly:u,onChange:h,value:p,defaultValue:y,...C},R)=>{let w=Boolean(a),T=Boolean(n),v=c(r),x=Ty(null),I=eo(R,x),[S,A]=hy(()=>Cm(y)),z=p!==void 0,D=z?Cm(p):S,W=s&&!f&&!u&&D.length>0,O=T||W,U=T&&W,N=(P)=>{let F=P.target.value;if(!z)A(F);d?.(F),h?.(P)},V=()=>{if(!z)A("");d?.("");let P=x.current;if(P)P.value="",P.dispatchEvent(new Event("input",{bubbles:!0})),P.focus();m?.()};return Xt("div",{className:i("relative flex items-center",o&&"w-full"),children:[w&&Xt("span",{className:i("absolute inset-y-0 flex items-center text-muted-foreground",Sy[v]),children:a},void 0,!1,void 0,this),Xt("input",{ref:I,className:i(zm({status:t,size:v}),w&&xy[v],U&&zy[v],!U&&O&&Cy[v],e),disabled:f,readOnly:u,onChange:N,value:D,...C},void 0,!1,void 0,this),O&&Xt("span",{className:i("absolute inset-y-0 right-2 flex items-center gap-1 text-muted-foreground",Ny[v]),children:[T&&Xt("span",{className:"inline-flex items-center",children:n},void 0,!1,void 0,this),W&&Xt("button",{type:"button","aria-label":l,onMouseDown:(P)=>P.preventDefault(),onClick:V,className:i("gs-interactive 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",wy[v]),children:Xt(vy,{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)});Sm.displayName="Input";import{cva as Ry}from"class-variance-authority";import{forwardRef as My}from"react";function to(){return ma()}import{jsxDEV as Ly}from"react/jsx-dev-runtime";var wr={sm:"sm",md:"md",lg:"lg"},Nm=Ry("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:{[wr.sm]:"min-w-5 h-5 px-1 text-[10px]",[wr.md]:"min-w-6 h-6 px-1.5 text-xs",[wr.lg]:"min-w-7 h-7 px-2 text-sm"}},defaultVariants:{size:wr.md}}),wm=My(({className:e,size:t=wr.md,keys:r,children:o,...a},n)=>{let s=c(t),{isMac:l}=to(),m=r?ro(r,l):o;return Ly("kbd",{ref:n,className:i(Nm({size:s}),e),...a,children:m},void 0,!1,void 0,this)});wm.displayName="Kbd";import{cva as Hy}from"class-variance-authority";import{forwardRef as ky}from"react";import{jsxDEV as Rm}from"react/jsx-dev-runtime";var Rr={sm:"sm",md:"md",lg:"lg"},Mm=Hy("inline-block font-medium text-foreground select-none peer-disabled:cursor-not-allowed peer-disabled:opacity-60",{variants:{size:{[Rr.sm]:"text-xs",[Rr.md]:"text-sm",[Rr.lg]:"text-base"}},defaultVariants:{size:Rr.md}}),Lm=ky(({className:e,size:t=Rr.md,required:r=!1,disabled:o=!1,children:a,...n},s)=>{let l=c(t);return Rm("label",{ref:s,className:i(Mm({size:l}),o&&"cursor-not-allowed opacity-60",e),"aria-disabled":o||void 0,...n,children:[a,r&&Rm("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Lm.displayName="Label";var Ay=dr;import*as Lt from"@radix-ui/react-popover";import{cva as _y}from"class-variance-authority";import{Check as Gy,ChevronDown as Wy,X as Uy}from"lucide-react";import{forwardRef as $y,useCallback as oo,useEffect as Ky,useRef as Yy,useState as Am}from"react";import*as _e from"@radix-ui/react-popover";import{cva as Iy}from"class-variance-authority";import{forwardRef as Vy}from"react";import{jsxDEV as Hm}from"react/jsx-dev-runtime";var Mr={sm:"sm",md:"md",lg:"lg"},Lr=Iy("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:{[Mr.sm]:"w-56 p-3 text-sm",[Mr.md]:"w-72 p-4 text-sm",[Mr.lg]:"w-96 p-5 text-sm"}},defaultVariants:{size:Mr.md}}),Dy=_e.Root,Fy=_e.Trigger,Oy=_e.Anchor,By=_e.Close,km=Vy(({className:e,align:t="center",sideOffset:r=4,portal:o=!0,portalContainer:a,size:n=Mr.md,...s},l)=>{let m=c(n),d=Hm(_e.Content,{ref:l,align:t,sideOffset:r,className:i(Lr({size:m}),e),...s},void 0,!1,void 0,this);if(o)return Hm(_e.Portal,{container:a??void 0,children:d},void 0,!1,void 0,this);return d});km.displayName="PopoverContent";import{jsxDEV as de,Fragment as qy}from"react/jsx-dev-runtime";var ue={sm:"sm",md:"md",lg:"lg",xl:"xl"},Im=_y(["gs-interactive 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:{[ue.sm]:"min-h-8 px-2.5 py-1 text-xs",[ue.md]:"min-h-10 px-3.5 py-1.5",[ue.lg]:"min-h-11 px-4.5 py-2 text-sm",[ue.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:ue.md,status:"default"}}),Xy={[ue.sm]:"sm",[ue.md]:"md",[ue.lg]:"lg",[ue.xl]:"lg"},Zy={[ue.sm]:"min-h-7.5 py-1.5 px-2.5 text-xs",[ue.md]:"min-h-9 py-2 px-3 text-sm",[ue.lg]:"min-h-10 py-2.5 px-3.5 text-sm",[ue.xl]:"min-h-11 py-3 px-4 text-base"},Uo={[ue.sm]:"size-3.5",[ue.md]:"size-4",[ue.lg]:"size-4",[ue.xl]:"size-4.5"},Vm=$y(({className:e,options:t,value:r,defaultValue:o=[],onValueChange:a,placeholder:n="Select options...",size:s=ue.md,status:l="default",clearable:m=!1,maxDisplayItems:d=3,disabled:f,...u},h)=>{let p=c(s)??s,[y,C]=Am(!1),[R,w]=Am(o),T=Yy(null),v=r!==void 0,x=v?r:R,I=oo((N)=>{let V=x.includes(N)?x.filter((P)=>P!==N):[...x,N];if(!v)w(V);a?.(V)},[x,v,a]),S=oo((N,V)=>{V.stopPropagation();let P=x.filter((F)=>F!==N);if(!v)w(P);a?.(P)},[x,v,a]),A=oo((N)=>{if(N.stopPropagation(),N.preventDefault(),!v)w([]);a?.([])},[v,a]),z=t.filter((N)=>x.includes(N.value)),D=z.length>0,W=m&&D&&!f,O=oo((N)=>{let V=T.current;if(!V)return;let P=Array.from(V.querySelectorAll('[role="option"]:not([data-disabled])'));if(P.length===0)return;let F=V.querySelector('[role="option"]:focus'),Q=F?P.indexOf(F):-1,L;switch(N){case"first":L=P[0];break;case"last":L=P[P.length-1];break;case"next":L=P[Q+1]??P[0];break;case"prev":L=P[Q-1]??P[P.length-1];break}L?.focus()},[]),U=oo((N)=>{switch(N.key){case"ArrowDown":N.preventDefault(),O("next");break;case"ArrowUp":N.preventDefault(),O("prev");break;case"Home":N.preventDefault(),O("first");break;case"End":N.preventDefault(),O("last");break;case"Escape":N.preventDefault(),C(!1);break}},[O]);return Ky(()=>{if(y)requestAnimationFrame(()=>O("first"))},[y,O]),de(Lt.Root,{open:y,onOpenChange:C,children:[de(Lt.Trigger,{asChild:!0,children:de("button",{ref:h,type:"button",disabled:f,"data-state":y?"open":"closed","data-placeholder":D?void 0:"",className:i(Im({size:p,status:l}),e),...u,children:[de("span",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-1 text-left",children:D?de(qy,{children:[z.slice(0,d).map((N)=>de(Ho,{variant:"outline",size:Xy[s],removable:!0,onRemove:(V)=>S(N.value,V),className:"max-w-[120px] rounded-[calc(var(--radius)-4px)]",children:de("span",{className:"truncate",children:N.label},void 0,!1,void 0,this)},N.value,!1,void 0,this)),z.length>d&&de("span",{className:"text-muted-foreground text-xs",children:["+",z.length-d]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):de("span",{className:"text-muted-foreground",children:n},void 0,!1,void 0,this)},void 0,!1,void 0,this),de("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[W&&de("span",{role:"button",tabIndex:-1,"aria-label":"Clear all",onMouseDown:(N)=>N.preventDefault(),onClick:A,className:"gs-interactive 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:de(Uy,{className:Uo[p]},void 0,!1,void 0,this)},void 0,!1,void 0,this),de(Wy,{className:i(Uo[p],"opacity-60 transition-transform duration-200 ease-[cubic-bezier(0.16,1,0.3,1)]",y&&"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),de(Lt.Portal,{children:de(Lt.Content,{ref:T,role:"listbox","aria-multiselectable":"true",align:"start",sideOffset:4,onKeyDown:U,onOpenAutoFocus:(N)=>N.preventDefault(),className:i(Lr(),"max-h-96 w-[var(--radix-popover-trigger-width)] overflow-y-auto overflow-x-hidden p-1"),children:[t.map((N)=>{let V=x.includes(N.value);return de("div",{role:"option",tabIndex:N.disabled?void 0:-1,"aria-selected":V,"aria-disabled":N.disabled||void 0,"data-disabled":N.disabled?"":void 0,className:i("gs-interactive 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:opacity-50",Zy[p]),onClick:()=>!N.disabled&&I(N.value),onKeyDown:(P)=>{if(P.key==="Enter"||P.key===" "){if(P.preventDefault(),!N.disabled)I(N.value)}},children:[de("span",{className:i("flex shrink-0 items-center justify-center",Uo[p]),children:V&&de(Gy,{className:Uo[p]},void 0,!1,void 0,this)},void 0,!1,void 0,this),de("span",{className:"min-w-0 flex-1 truncate",children:N.label},void 0,!1,void 0,this)]},N.value,!0,void 0,this)}),t.length===0&&de("div",{className:"px-3 py-6 text-center text-muted-foreground text-sm",children:"No options available"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Vm.displayName="Multiselect";import*as ne from"@radix-ui/react-navigation-menu";import{cva as Zt}from"class-variance-authority";import{createContext as Jy,forwardRef as Hr,useContext as Qy}from"react";import{jsxDEV as Ie}from"react/jsx-dev-runtime";var Je={sm:"sm",md:"md",lg:"lg"},Dm=Jy(Je.md),Fm=Zt("relative z-10 flex max-w-max flex-1 items-center justify-center"),Om=Zt("group flex flex-1 list-none items-center justify-center space-x-1"),Bm=Zt(["group inline-flex w-max items-center justify-center rounded-md bg-background font-medium","gs-interactive","hover:bg-accent hover:text-accent-foreground","focus:bg-accent focus:text-accent-foreground focus:outline-none","disabled:pointer-events-none disabled:opacity-50","data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"],{variants:{size:{[Je.sm]:"h-8 px-3 py-1.5 text-xs",[Je.md]:"h-10 px-4 py-2 text-sm",[Je.lg]:"h-12 px-5 py-2.5 text-sm"}},defaultVariants:{size:Je.md}}),_m=Zt(["left-0 top-0 w-full","data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out","data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out","data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52","data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52","md:absolute md:w-auto"]),Ey=Zt(["block select-none space-y-1 rounded-md leading-none no-underline outline-none","gs-interactive","hover:bg-accent hover:text-accent-foreground","focus:bg-accent focus:text-accent-foreground"],{variants:{size:{[Je.sm]:"p-2 text-xs",[Je.md]:"p-3 text-sm",[Je.lg]:"p-4 text-sm"}},defaultVariants:{size:Je.md}}),Gm=Zt(["origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg","gs-float-content","transition-[width,height] duration-300 ease-[var(--motion-ease-emphasized)]","md:w-[var(--radix-navigation-menu-viewport-width)]"]),Wm=Zt(["top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden","data-[state=visible]:animate-in data-[state=hidden]:animate-out","data-[state=hidden]:fade-out data-[state=visible]:fade-in"]),jy=()=>Ie("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-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true",children:Ie("path",{d:"m6 9 6 6 6-6"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Um=Hr(({className:e,children:t,size:r,...o},a)=>{let n=c(r??Je.md);return Ie(Dm.Provider,{value:n,children:Ie(ne.Root,{ref:a,className:i(Fm(),e),...o,children:[t,Ie(da,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Um.displayName=ne.Root.displayName;var $m=Hr(({className:e,...t},r)=>Ie(ne.List,{ref:r,className:i(Om(),e),...t},void 0,!1,void 0,this));$m.displayName=ne.List.displayName;var ev=ne.Item,Km=Hr(({className:e,children:t,...r},o)=>{let a=Qy(Dm);return Ie(ne.Trigger,{ref:o,className:i(Bm({size:a}),"group",e),...r,children:[t,Ie(jy,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Km.displayName=ne.Trigger.displayName;var Ym=Hr(({className:e,...t},r)=>Ie(ne.Content,{ref:r,className:i(_m(),e),...t},void 0,!1,void 0,this));Ym.displayName=ne.Content.displayName;var tv=ne.Link,da=Hr(({className:e,...t},r)=>Ie("div",{className:"absolute top-full left-0 flex justify-center",children:Ie(ne.Viewport,{className:i(Gm(),e),ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));da.displayName=ne.Viewport.displayName;var Xm=Hr(({className:e,...t},r)=>Ie(ne.Indicator,{ref:r,className:i(Wm(),e),...t,children:Ie("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"},void 0,!1,void 0,this)},void 0,!1,void 0,this));Xm.displayName=ne.Indicator.displayName;import{cva as kr}from"class-variance-authority";import{Fragment as rv,forwardRef as ov,useCallback as qt,useEffect as Zm,useMemo as qm,useRef as iv,useState as Jm}from"react";import{jsxDEV as Jt}from"react/jsx-dev-runtime";var Qt={sm:"sm",md:"md",lg:"lg",xl:"xl"},ao={default:"default",error:"error",success:"success"},io={single:"single",first:"first",middle:"middle",last:"last"},Qm=kr("relative inline-flex items-center",{variants:{size:{sm:"gap-1",md:"gap-1.5",lg:"gap-2",xl:"gap-2.5"}},defaultVariants:{size:Qt.md}}),Em=kr("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:Qt.md,status:ao.default}}),jm=kr(["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:Qt.md,filled:!1,focused:!1,status:ao.default,disabled:!1,position:io.single}}),ed=kr(["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:Qt.md,status:ao.default,filled:!1}}),td=kr(["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:Qt.md,focused:!1}}),rd=kr("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:Qt.md}});function av(e){if(!Number.isFinite(e))return 6;return Math.max(1,Math.floor(e))}function pa(e,t){let r=(e??"").split("").slice(0,t);if(r.length<t)return r.concat(Array(t-r.length).fill(""));return r}var od=ov(({className:e,length:t=6,value:r,onChange:o,onComplete:a,size:n=Qt.md,status:s=ao.default,disabled:l=!1,autoFocus:m=!1,mask:d=!1,groupSize:f,separator:u,separatorChar:h="—",placeholder:p="•",inputMode:y="numeric",pattern:C="[0-9]*",...R},w)=>{let T=c(n),v=av(t),x=iv([]),[I,S]=Jm(null),[A,z]=Jm(()=>pa(r,v));Zm(()=>{if(r!==void 0){z(pa(r,v));return}z((g)=>pa(g.join(""),v))},[r,v]),Zm(()=>{if(m)x.current[0]?.focus()},[m]);let D=qm(()=>{if(typeof f==="number"&&Number.isFinite(f)){let g=Math.floor(f);if(g<=0)return v;return Math.min(v,Math.max(1,g))}if(typeof u==="number"&&Number.isFinite(u)){let g=Math.floor(u);if(g<=0)return v;return Math.min(v,Math.max(1,g))}if(u)return Math.max(1,Math.floor(v/2));return v},[f,v,u]),W=qm(()=>{let g=[];for(let b=0;b<v;b+=D){let M=Math.min(b+D,v),E=[];for(let Z=b;Z<M;Z+=1)E.push(Z);g.push(E)}return g},[D,v]),O=qt((g)=>{let b=x.current[g];if(!b)return;b.focus(),b.select()},[]),U=qt((g)=>{z(g);let b=g.join("");if(o?.(b),g.every((M)=>M!=="")&&b.length===v)a?.(b)},[o,a,v]),N=qt((g,b)=>{if(l)return;let E=(y==="numeric"?b.replace(/\D/g,""):b).slice(-1),Z=[...A];if(Z[g]=E,U(Z),E&&g<v-1)O(g+1)},[A,l,U,O,y,v]),V=qt((g,b)=>{if(l)return;if(b.key==="Backspace"){if(b.preventDefault(),A[g]){let M=[...A];M[g]="",U(M);return}if(g>0){let M=[...A];M[g-1]="",U(M),O(g-1)}return}if(b.key==="Delete"){if(b.preventDefault(),A[g]){let M=[...A];M[g]="",U(M)}return}if(b.key==="ArrowLeft"){if(b.preventDefault(),g>0)O(g-1);return}if(b.key==="ArrowRight"){if(b.preventDefault(),g<v-1)O(g+1);return}if(b.key==="Home"){b.preventDefault(),O(0);return}if(b.key==="End")b.preventDefault(),O(v-1)},[A,l,U,O,v]),P=qt((g,b)=>{if(b.preventDefault(),l)return;let M=b.clipboardData.getData("text"),Z=(y==="numeric"?M.replace(/\D/g,""):M.replace(/\s/g,"")).split("");if(Z.length===0)return;let ze=[...A];for(let H=0;H<Z.length;H+=1){let re=g+H;if(re>=v)break;ze[re]=Z[H]??""}U(ze);let j=Math.min(v-1,g+Z.length-1);if(j<v-1){O(j+1);return}x.current[j]?.blur()},[A,l,U,O,y,v]),F=qt((g,b)=>{S(g),b.target.select()},[]),Q=qt(()=>{S(null)},[]),L=u!==void 0,Y=h.length>0&&u!==!1&&(L||W.length>1);return Jt("div",{ref:w,className:i(Qm({size:T}),e),role:"group","aria-label":"One-time password input",...R,children:W.map((g,b)=>Jt(rv,{children:[Jt("div",{"data-gs-otp-group":"true",className:i(Em({size:T,status:s})),children:g.map((M,E)=>{let Z=A[M]??"",ze=I===M,j=io.middle;if(g.length===1)j=io.single;else if(E===0)j=io.first;else if(E===g.length-1)j=io.last;return Jt("div",{"data-gs-otp-slot":"true","data-disabled":l,className:i(jm({size:T,filled:Boolean(Z),focused:ze,status:s,disabled:l,position:j})),children:[Jt("input",{ref:(H)=>{x.current[M]=H},type:d?"password":"text",inputMode:y,pattern:C,maxLength:1,value:Z,placeholder:"",disabled:l,"aria-invalid":s===ao.error,"aria-label":`Digit ${M+1} of ${v}`,autoComplete:"one-time-code",onChange:(H)=>N(M,H.target.value),onKeyDown:(H)=>V(M,H),onPaste:(H)=>P(M,H),onFocus:(H)=>F(M,H),onBlur:Q,className:i(ed({size:T,status:s,filled:Boolean(Z)}))},void 0,!1,void 0,this),!Z&&Jt("div",{"data-gs-otp-placeholder":"true","aria-hidden":"true",className:i(td({size:T,focused:ze})),children:p},void 0,!1,void 0,this)]},`slot-${M}`,!0,void 0,this)})},void 0,!1,void 0,this),Y&&b<W.length-1&&Jt("span",{"data-gs-otp-separator":"true",className:i(rd({size:T})),children:h},void 0,!1,void 0,this)]},`group-${g[0]}-${g[g.length-1]}`,!0,void 0,this))},void 0,!1,void 0,this)});od.displayName="OTPInput";import{createContext as pv,useCallback as Ar,useContext as cv,useMemo as uv,useState as fv}from"react";import*as le from"@radix-ui/react-dialog";import{cva as id}from"class-variance-authority";import{X as nv}from"lucide-react";import{forwardRef as $o}from"react";import{jsxDEV as Qe}from"react/jsx-dev-runtime";var Ve={top:"top",right:"right",bottom:"bottom",left:"left"},ae={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},sv={[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"},lv={[Ve.right]:{[ae.sm]:"sm:max-w-sm",[ae.md]:"sm:max-w-md",[ae.lg]:"sm:max-w-lg",[ae.xl]:"sm:max-w-xl",[ae.full]:"sm:max-w-full"},[Ve.left]:{[ae.sm]:"sm:max-w-sm",[ae.md]:"sm:max-w-md",[ae.lg]:"sm:max-w-lg",[ae.xl]:"sm:max-w-xl",[ae.full]:"sm:max-w-full"},[Ve.top]:{[ae.sm]:"sm:max-h-[30vh]",[ae.md]:"sm:max-h-[50vh]",[ae.lg]:"sm:max-h-[70vh]",[ae.xl]:"sm:max-h-[85vh]",[ae.full]:"sm:max-h-full"},[Ve.bottom]:{[ae.sm]:"sm:max-h-[30vh]",[ae.md]:"sm:max-h-[50vh]",[ae.lg]:"sm:max-h-[70vh]",[ae.xl]:"sm:max-h-[85vh]",[ae.full]:"sm:max-h-full"}},ad=id("gs-sheet-overlay fixed inset-0 z-50 bg-black/50"),nd=id("fixed z-50 flex flex-col gap-4 border border-border bg-background 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}}),ca=le.Root,mv=le.Trigger,dv=le.Close,sd=le.Portal,ua=$o(({className:e,...t},r)=>Qe(le.Overlay,{className:i(ad(),e),...t,ref:r},void 0,!1,void 0,this));ua.displayName=le.Overlay.displayName;var Ko=$o(({side:e="right",size:t=ae.md,showClose:r=!0,className:o,children:a,...n},s)=>{let l=c(t)??ae.md,m=sv[e],d=lv[e][l];return Qe(sd,{children:[Qe(ua,{},void 0,!1,void 0,this),Qe(le.Content,{ref:s,className:i(nd({side:e}),m,d,o),...n,children:[a,r&&Qe(le.Close,{className:"gs-interactive 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",children:[Qe(nv,{className:"size-4"},void 0,!1,void 0,this),Qe("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)});Ko.displayName=le.Content.displayName;var ld=({className:e,...t})=>Qe("div",{className:i("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);ld.displayName="SheetHeader";var md=({className:e,...t})=>Qe("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);md.displayName="SheetFooter";var dd=$o(({className:e,...t},r)=>Qe(le.Title,{ref:r,className:i("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));dd.displayName=le.Title.displayName;var pd=$o(({className:e,...t},r)=>Qe(le.Description,{ref:r,className:i("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));pd.displayName=le.Description.displayName;import{jsxDEV as yt}from"react/jsx-dev-runtime";var fa=0;function gv(){return fa=(fa+1)%Number.MAX_SAFE_INTEGER,`overlay-${fa}-${Date.now()}`}var ud=pv(null),cd=400;function fd({children:e}){let[t,r]=fv([]),o=Ar((d)=>{r((f)=>f.map((u)=>u.id===d?{...u,open:!1}:u)),setTimeout(()=>{r((f)=>f.filter((u)=>u.id!==d))},cd)},[]),a=Ar(()=>{r((d)=>d.map((f)=>({...f,open:!1}))),setTimeout(()=>{r([])},cd)},[]),n=Ar((d,f,u,h={})=>{let p=gv(),y=(w)=>{return yt(f,{...u,close:w.close},void 0,!1,void 0,this)};y.displayName=`OverlayWrapper(${f.displayName??f.name??"Component"})`;let C={id:p,type:d,component:y,wrapperProps:h,open:!0};return r((w)=>[...w,C]),{id:p,close:()=>o(p)}},[o]),s=Ar((d,f,u)=>{return n("dialog",d,f,u)},[n]),l=Ar((d,f,u)=>{return n("sheet",d,f,u)},[n]),m=uv(()=>({dialog:s,sheet:l,close:o,closeAll:a}),[s,l,o,a]);return yt(ud.Provider,{value:m,children:[e,t.map((d)=>yt(yv,{entry:d,onClose:o},d.id,!1,void 0,this))]},void 0,!0,void 0,this)}fd.displayName="OverlayProvider";function yv({entry:e,onClose:t}){let{id:r,type:o,component:a,wrapperProps:n,open:s}=e,l=Ar(()=>t(r),[r,t]);if(o==="dialog"){let{showClose:m,size:d,...f}=n;return yt(ra,{open:s,onOpenChange:(u)=>!u&&l(),children:yt(Bo,{showClose:m,size:d,...f,children:yt(a,{close:l},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}if(o==="sheet"){let{side:m,showClose:d,...f}=n;return yt(ca,{open:s,onOpenChange:(u)=>!u&&l(),children:yt(Ko,{side:m,showClose:d,...f,children:yt(a,{close:l},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}return null}function vv(){let e=cv(ud);if(!e)throw Error("useOverlay must be used within an OverlayProvider");return e}import{cva as no}from"class-variance-authority";import{ChevronLeft as bv,ChevronRight as Tv,MoreHorizontal as hv}from"lucide-react";import{createContext as Pv,forwardRef as so,useContext as Yo}from"react";import{jsxDEV as Le}from"react/jsx-dev-runtime";var Ge={sm:"sm",md:"md",lg:"lg"},lo=Pv(Ge.md),gd=no("mx-auto flex w-full justify-center"),yd=no("flex flex-row items-center gap-1"),vd=no(""),Xo=no("gs-interactive 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:opacity-50 hover:bg-accent hover:text-accent-foreground",{variants:{isActive:{true:"border border-border bg-background shadow-[var(--shadow-sm)]",false:""},size:{[Ge.sm]:"h-7 w-7 text-xs [&_svg]:size-3.5",[Ge.md]:"h-9 w-9 text-sm [&_svg]:size-4",[Ge.lg]:"h-10 w-10 text-sm [&_svg]:size-5"}},defaultVariants:{isActive:!1,size:Ge.md}}),bd=no("flex items-center justify-center",{variants:{size:{[Ge.sm]:"h-7 w-7 [&_svg]:size-3.5",[Ge.md]:"h-9 w-9 [&_svg]:size-4",[Ge.lg]:"h-10 w-10 [&_svg]:size-5"}},defaultVariants:{size:Ge.md}}),Td=({className:e,size:t=Ge.md,...r})=>{let o=c(t)??Ge.md;return Le(lo.Provider,{value:o,children:Le("nav",{"aria-label":"pagination",className:i(gd(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)};Td.displayName="Pagination";var hd=so(({className:e,...t},r)=>Le("ul",{ref:r,className:i(yd(),e),...t},void 0,!1,void 0,this));hd.displayName="PaginationContent";var Pd=so(({className:e,...t},r)=>Le("li",{ref:r,className:i(vd(),e),...t},void 0,!1,void 0,this));Pd.displayName="PaginationItem";var xd=so(({className:e,isActive:t,...r},o)=>{let a=Yo(lo);return Le("button",{ref:o,type:"button","aria-current":t?"page":void 0,className:i(Xo({isActive:t,size:a}),e),...r},void 0,!1,void 0,this)});xd.displayName="PaginationLink";var Cd=so(({className:e,...t},r)=>{let o=Yo(lo);return Le("button",{ref:r,type:"button","aria-label":"Go to previous page",className:i(Xo({size:o}),"gap-1 pl-2.5 pr-3 w-auto",e),...t,children:[Le(bv,{},void 0,!1,void 0,this),Le("span",{children:"Previous"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Cd.displayName="PaginationPrevious";var zd=so(({className:e,...t},r)=>{let o=Yo(lo);return Le("button",{ref:r,type:"button","aria-label":"Go to next page",className:i(Xo({size:o}),"gap-1 pl-3 pr-2.5 w-auto",e),...t,children:[Le("span",{children:"Next"},void 0,!1,void 0,this),Le(Tv,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});zd.displayName="PaginationNext";var Sd=({className:e,...t})=>{let r=Yo(lo);return Le("span",{"aria-hidden":!0,className:i(bd({size:r}),e),...t,children:[Le(hv,{},void 0,!1,void 0,this),Le("span",{className:"sr-only",children:"More pages"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};Sd.displayName="PaginationEllipsis";import*as co from"@radix-ui/react-progress";import{cva as Nd}from"class-variance-authority";import{forwardRef as xv}from"react";import{jsxDEV as Zo}from"react/jsx-dev-runtime";var mo={sm:"sm",md:"md",lg:"lg",xl:"xl"},po={default:"default",success:"success",warning:"warning",error:"error"},wd=Nd("relative w-full overflow-hidden rounded-full bg-muted",{variants:{size:{[mo.sm]:"h-1",[mo.md]:"h-2.5",[mo.lg]:"h-4",[mo.xl]:"h-5"}},defaultVariants:{size:mo.md}}),Rd=Nd("h-full w-full flex-1 rounded-full transition-transform duration-100 ease-out",{variants:{variant:{[po.default]:"bg-primary",[po.success]:"bg-success",[po.warning]:"bg-warning",[po.error]:"bg-destructive"}},defaultVariants:{variant:po.default}}),Md=xv(({className:e,value:t,size:r,variant:o,showValue:a,...n},s)=>{let l=c(r);return Zo("div",{className:"flex w-full items-center gap-2",children:[Zo(co.Root,{ref:s,className:i(wd({size:l}),e),...n,children:Zo(co.Indicator,{className:i(Rd({variant:o})),style:{transform:`translateX(-${100-(t||0)}%)`}},void 0,!1,void 0,this)},void 0,!1,void 0,this),a&&Zo("span",{className:"font-medium text-muted-foreground text-sm tabular-nums",children:[t,"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Md.displayName=co.Root.displayName;import*as Vr from"@radix-ui/react-radio-group";import{cva as Ld}from"class-variance-authority";import{forwardRef as Hd}from"react";import{jsxDEV as qo}from"react/jsx-dev-runtime";var Ee={sm:"sm",md:"md",lg:"lg",xl:"xl"},Ir={default:"default",error:"error",success:"success"},kd=Ld("grid gap-2"),Ad=Ld("gs-interactive 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:{[Ee.sm]:"h-4 w-4",[Ee.md]:"h-5 w-5",[Ee.lg]:"h-6 w-6",[Ee.xl]:"h-7 w-7"},status:{[Ir.default]:"enabled:hover:border-primary/70",[Ir.error]:"border-destructive enabled:hover:border-destructive/70 focus-visible:ring-destructive data-[state=checked]:border-destructive data-[state=checked]:text-destructive",[Ir.success]:"border-success enabled:hover:border-success/70 focus-visible:ring-success data-[state=checked]:border-success data-[state=checked]:text-success"}},defaultVariants:{size:Ee.md,status:Ir.default}}),Cv={[Ee.sm]:"h-2 w-2",[Ee.md]:"h-2.5 w-2.5",[Ee.lg]:"h-3 w-3",[Ee.xl]:"h-3.5 w-3.5"},Id=Hd(({className:e,...t},r)=>qo(Vr.Root,{ref:r,className:i(kd(),e),...t},void 0,!1,void 0,this));Id.displayName="RadioGroup";var Vd=Hd(({className:e,size:t=Ee.md,status:r=Ir.default,...o},a)=>{let n=c(t);return qo(Vr.Item,{ref:a,className:i(Ad({size:n,status:r}),e),...o,children:qo(Vr.Indicator,{className:"flex items-center justify-center",children:qo("span",{className:i("block rounded-full bg-current transition-transform duration-150",Cv[n])},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Vd.displayName="RadioGroupItem";import{cva as Eo}from"class-variance-authority";import{forwardRef as ga,useCallback as Jo,useRef as zv,useState as Sv}from"react";import{jsxDEV as Qo}from"react/jsx-dev-runtime";var Dd=Eo("flex h-full w-full",{variants:{direction:{horizontal:"flex-row",vertical:"flex-col"}},defaultVariants:{direction:"horizontal"}}),Fd=Eo("relative overflow-hidden"),Od=Eo("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}}),Bd=Eo("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"}}),_d=ga(({className:e,direction:t="horizontal",children:r,...o},a)=>Qo("div",{ref:a,"data-panel-group":"","data-direction":t,className:i(Dd({direction:t}),e),...o,children:r},void 0,!1,void 0,this));_d.displayName="ResizablePanelGroup";var Gd=ga(({className:e,defaultSize:t=50,children:r,style:o,...a},n)=>Qo("div",{ref:n,"data-panel":"",className:i(Fd(),e),style:{...o,flexGrow:0,flexShrink:0,flexBasis:`${t}%`},...a,children:r},void 0,!1,void 0,this));Gd.displayName="ResizablePanel";var Wd=ga(({className:e,withHandle:t=!1,disabled:r=!1,...o},a)=>{let[n,s]=Sv(!1),l=zv(null),m=Jo((p,y)=>{if(r)return;s(!0);let C=(w)=>{let T="touches"in w?w.touches[0]:null,v=T?T.clientX:w.clientX,x=T?T.clientY:w.clientY,I=l.current;if(!I)return;let S=I.closest("[data-panel-group]");if(!S)return;let A=S.dataset.direction,z=S.getBoundingClientRect(),D=Array.from(S.querySelectorAll(":scope > [data-panel]")),W=Array.from(S.children).indexOf(I),O,U;for(let N of D){let V=Array.from(S.children).indexOf(N);if(V<W)O=N;if(V>W&&!U)U=N}if(O&&U){let N=A==="horizontal"?z.width:z.height,P=(A==="horizontal"?v-z.left:x-z.top)/N*100,F=Math.max(10,Math.min(90,P)),Q=100-F;O.style.flexBasis=`${F}%`,U.style.flexBasis=`${Q}%`}},R=()=>{s(!1),document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",R),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",R)};document.addEventListener("mousemove",C),document.addEventListener("mouseup",R),document.addEventListener("touchmove",C),document.addEventListener("touchend",R)},[r]),d=Jo((p)=>{p.preventDefault(),m(p.clientX,p.clientY)},[m]),f=Jo((p)=>{let y=p.touches[0];if(y)m(y.clientX,y.clientY)},[m]),u=Jo((p)=>{if(r)return;let y=l.current??p.currentTarget,C=y.closest("[data-panel-group]");if(!C)return;let R=C.dataset.direction,w=p.shiftKey?10:1,T=Array.from(C.querySelectorAll(":scope > [data-panel]")),v=Array.from(C.children).indexOf(y),x,I;for(let z of T){let D=Array.from(C.children).indexOf(z);if(D<v)x=z;if(D>v&&!I)I=z}if(!(x&&I))return;let S=Number.parseFloat(x.style.flexBasis)||50,A=0;if(R==="horizontal"){if(p.key==="ArrowLeft")A=-w;if(p.key==="ArrowRight")A=w}else{if(p.key==="ArrowUp")A=-w;if(p.key==="ArrowDown")A=w}if(A!==0){p.preventDefault();let z=Math.max(10,Math.min(90,S+A));x.style.flexBasis=`${z}%`,I.style.flexBasis=`${100-z}%`}},[r]),h="horizontal";return Qo("div",{ref:(p)=>{if(l.current=p,typeof a==="function")a(p);else if(a)a.current=p},role:"separator","aria-orientation":"horizontal",tabIndex:r?-1:0,"data-panel-resize-handle":"","data-dragging":n,onMouseDown:d,onTouchStart:f,onKeyDown:u,className:i(Od({direction:"horizontal",withHandle:t}),n&&"bg-primary",r&&"pointer-events-none opacity-50",e),...o,children:t&&Qo("div",{className:i(Bd({direction:"horizontal"}))},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Wd.displayName="ResizableHandle";import*as it from"@radix-ui/react-scroll-area";import{cva as ya}from"class-variance-authority";import{forwardRef as Ud}from"react";import{jsxDEV as Dr}from"react/jsx-dev-runtime";var $d=ya("relative overflow-hidden"),Nv={display:"flex",flexDirection:"column"},wv={flex:"1 1 0%",minHeight:0},Kd=ya("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"}}),Yd=ya("relative flex-1 rounded-full bg-border"),Xd=Ud(({className:e,children:t,style:r,...o},a)=>Dr(it.Root,{ref:a,className:i($d(),e),style:{...r,...Nv},...o,children:[Dr(it.Viewport,{className:"w-full rounded-[inherit]",style:wv,children:t},void 0,!1,void 0,this),Dr(va,{},void 0,!1,void 0,this),Dr(it.Corner,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this));Xd.displayName="ScrollArea";var va=Ud(({className:e,orientation:t="vertical",...r},o)=>Dr(it.ScrollAreaScrollbar,{ref:o,orientation:t,className:i(Kd({orientation:t}),e),...r,children:Dr(it.ScrollAreaThumb,{className:i(Yd())},void 0,!1,void 0,this)},void 0,!1,void 0,this));va.displayName="ScrollBar";import{cva as Ta}from"class-variance-authority";import{createContext as Rv,forwardRef as ha,useCallback as Zd,useContext as Qd,useEffect as ba,useLayoutEffect as Mv,useRef as qd,useState as Jd}from"react";import{jsxDEV as Et}from"react/jsx-dev-runtime";var He={sm:"sm",md:"md",lg:"lg"},Ed=Ta("relative inline-flex items-center rounded-[var(--radius)] border border-border bg-muted/50 p-1 text-muted-foreground",{variants:{size:{[He.sm]:"h-9 gap-0.5",[He.md]:"h-10 gap-0.5",[He.lg]:"h-11 gap-1"}},defaultVariants:{size:He.md}}),jd=Ta(["relative z-10 inline-flex items-center justify-center rounded-[calc(var(--radius)-2px)]","cursor-pointer outline-none select-none","transition-[color] duration-150","focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:text-muted-foreground/40"],{variants:{size:{[He.sm]:"size-7",[He.md]:"size-8",[He.lg]:"size-9"},active:{true:"text-foreground",false:"text-muted-foreground hover:text-foreground/70"}},defaultVariants:{size:He.md,active:!1}}),ep=Ta(["relative z-10 inline-flex items-center justify-center gap-1.5 rounded-[calc(var(--radius)-2px)]","cursor-pointer outline-none select-none whitespace-nowrap font-medium","transition-[color] duration-150","focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:text-muted-foreground/40"],{variants:{size:{[He.sm]:"h-7 px-3 text-xs",[He.md]:"h-8 px-3 text-sm",[He.lg]:"h-9 px-4 text-sm"},active:{true:"text-foreground",false:"text-muted-foreground hover:text-foreground/70"}},defaultVariants:{size:He.md,active:!1}}),Pa=Rv({activeValue:"",onSelect:()=>{},size:He.md,disabled:!1}),Lv=typeof window<"u"?Mv:ba,tp=ha(({className:e,value:t,defaultValue:r,onValueChange:o,size:a,disabled:n=!1,children:s,...l},m)=>{let d=c(a),f=qd(null),[u,h]=Jd(r??""),[p,y]=Jd(null),C=qd(!0),R=t!==void 0?t:u,w=Zd((v)=>{if(n)return;if(t===void 0)h(v);o?.(v)},[n,t,o]),T=Zd(()=>{let v=f.current;if(!v)return;let x=v.querySelector('[data-state="active"]');if(!x){y(null);return}let I=v.getBoundingClientRect(),S=x.getBoundingClientRect();y({left:S.left-I.left,width:S.width})},[]);return Lv(()=>{T()},[T,R]),ba(()=>{if(C.current)requestAnimationFrame(()=>{C.current=!1})},[]),ba(()=>{let v=f.current;if(!v)return;let x=new MutationObserver(()=>{T()});return x.observe(v,{attributes:!0,attributeFilter:["data-state"],subtree:!0}),()=>x.disconnect()},[T]),Et(Pa.Provider,{value:{activeValue:R,onSelect:w,size:d,disabled:n},children:Et("div",{ref:(v)=>{if(f.current=v,typeof m==="function")m(v);else if(m)m.current=v},role:"radiogroup",className:i(Ed({size:d}),n&&"opacity-50 pointer-events-none",e),...l,children:[p&&Et("span",{"aria-hidden":"true",className:i("absolute rounded-[calc(var(--radius)-2px)] bg-background shadow-sm",!C.current&&"transition-[left,width] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-emphasized)]"),style:{left:p.left,width:p.width,top:"4px",bottom:"4px"}},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});tp.displayName="SegmentedControl";var rp=ha(({className:e,value:t,icon:r,disabled:o=!1,...a},n)=>{let{activeValue:s,onSelect:l,size:m,disabled:d}=Qd(Pa),f=s===t,u=o||d;return Et("button",{ref:n,type:"button",role:"radio","aria-checked":f,"aria-disabled":u||void 0,"data-state":f?"active":"inactive","data-value":t,disabled:u,onClick:()=>l(t),className:i(jd({size:m,active:f}),e),...a,children:Et("span",{className:"size-4 [&>svg]:size-full",children:r},void 0,!1,void 0,this)},void 0,!1,void 0,this)});rp.displayName="SegmentedControlItem";var op=ha(({className:e,value:t,icon:r,disabled:o=!1,children:a,...n},s)=>{let{activeValue:l,onSelect:m,size:d,disabled:f}=Qd(Pa),u=l===t,h=o||f;return Et("button",{ref:s,type:"button",role:"radio","aria-checked":u,"aria-disabled":h||void 0,"data-state":u?"active":"inactive","data-value":t,disabled:h,onClick:()=>m(t),className:i(ep({size:d,active:u}),e),...n,children:[r&&Et("span",{className:"size-4 [&>svg]:size-full",children:r},void 0,!1,void 0,this),a]},void 0,!0,void 0,this)});op.displayName="SegmentedControlLabelItem";import*as Ht from"@radix-ui/react-popover";import{cva as ap}from"class-variance-authority";import{Check as Hv,ChevronDown as kv,X as Av}from"lucide-react";import{Children as Iv,createContext as Vv,forwardRef as go,isValidElement as Dv,useCallback as jo,useContext as np,useEffect as ei,useId as ip,useMemo as Fv,useRef as sp,useState as uo}from"react";import{jsxDEV as se,Fragment as $v}from"react/jsx-dev-runtime";var te={sm:"sm",md:"md",lg:"lg",xl:"xl"},Fr={default:"default",error:"error",success:"success"},fo={trigger:"trigger",auto:"auto"},Ov={start:"start",center:"center",end:"end"},lp=ap(["gs-interactive 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:{[te.sm]:"h-8 px-2.5 text-xs",[te.md]:"h-10 px-3.5",[te.lg]:"h-11 px-4.5 text-sm",[te.xl]:"h-12 px-4 text-base"},status:{[Fr.default]:"focus-visible:ring-primary data-[state=open]:ring-primary",[Fr.error]:"border-destructive focus-visible:ring-destructive data-[state=open]:ring-destructive",[Fr.success]:"border-success focus-visible:ring-success data-[state=open]:ring-success"}},defaultVariants:{size:te.md,status:Fr.default}}),mp=ap(["max-h-96 overflow-y-auto overflow-x-hidden"].join(" "),{variants:{widthMode:{[fo.trigger]:"w-[var(--radix-popover-trigger-width)]",[fo.auto]:"w-max min-w-0"},size:{[te.sm]:"text-xs",[te.md]:"text-sm",[te.lg]:"text-sm",[te.xl]:"text-base"}},defaultVariants:{widthMode:fo.auto,size:te.md}}),Bv={[te.sm]:"min-h-7.5 py-1.5 px-2.5 pr-3 text-xs",[te.md]:"min-h-9 py-2 px-3 pr-4.5 text-sm",[te.lg]:"min-h-10 py-2.5 px-3.5 pr-5.5 text-sm",[te.xl]:"min-h-11 py-3 px-4 pr-6 text-base"},_v={[te.sm]:"px-2 py-1 text-xs",[te.md]:"px-2 py-1.5 text-sm",[te.lg]:"px-2.5 py-1.5 text-sm",[te.xl]:"px-3 py-2 text-base"},ti={[te.sm]:"size-3.5",[te.md]:"size-4",[te.lg]:"size-4",[te.xl]:"size-4.5"};function xa(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)=>xa(t)).join("");if(Dv(e))return xa(e.props.children);return""}var Ca=Vv(null);function ri(){let e=np(Ca);if(!e)throw Error("Select components must be used within Select");return e}function za(e){let t=np(Ca);if(e)return e;return t?.triggerSize??te.md}var Gv=({children:e,value:t,defaultValue:r="",onValueChange:o,open:a,defaultOpen:n=!1,onOpenChange:s,disabled:l=!1})=>{let[m,d]=uo(te.md),[f,u]=uo(!1),[h,p]=uo(r),[y,C]=uo(n),[R,w]=uo(0),T=sp(new Map),v=t!==void 0,x=a!==void 0,I=v?t:h,S=x?a:y,A=jo((V)=>{if(!v)p(V);if(o?.(V),!x)C(!1);s?.(!1)},[v,x,o,s]),z=jo((V)=>{if(l)return;if(!x)C(V);s?.(V)},[l,x,s]),D=jo((V,P)=>{if(T.current.get(V)!==P)T.current.set(V,P),w((Q)=>Q+1)},[]),W=jo((V)=>{return T.current.get(V)},[]),O=ip(),U=ip(),N=Fv(()=>({value:I,onValueChange:A,open:S,onOpenChange:z,triggerSize:m,setTriggerSize:d,triggerFullWidth:f,setTriggerFullWidth:u,disabled:l,triggerId:O,contentId:U,registerItem:D,getLabel:W}),[I,A,S,z,m,f,l,O,U,D,W,R]);return se(Ca.Provider,{value:N,children:se(Ht.Root,{open:S,onOpenChange:z,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},Wv=({children:e,className:t})=>se("div",{role:"group",className:t,children:e},void 0,!1,void 0,this),Uv=({placeholder:e})=>{let{value:t,getLabel:r}=ri();if(!t)return e?se("span",{className:"text-muted-foreground",children:e},void 0,!1,void 0,this):null;let o=r(t);return se($v,{children:o??t},void 0,!1,void 0,this)},dp=go(({className:e,children:t,size:r=te.md,status:o=Fr.default,fullWidth:a=!1,clearable:n=!1,leadingIcon:s,indicatorIcon:l,renderValue:m,placeholder:d,onKeyDown:f,...u},h)=>{let p=ri(),y=c(r)??r,C=p.setTriggerSize,R=p.setTriggerFullWidth;ei(()=>{C(y)},[y,C]),ei(()=>{R(a)},[a,R]);let w=p.value.length>0,T=n&&w&&!p.disabled,v=(S)=>{S.stopPropagation(),S.preventDefault(),p.onValueChange("")},x;if(m)x=w?m(p.value):d?se("span",{className:"text-muted-foreground",children:d},void 0,!1,void 0,this):null;else x=t;let I=(S)=>{if(f?.(S),S.defaultPrevented)return;if(S.key==="ArrowDown"||S.key==="ArrowUp"||S.key==="Enter"||S.key===" "){if(!p.open)S.preventDefault(),p.onOpenChange(!0)}};return se(Ht.Trigger,{asChild:!0,children:se("button",{ref:h,type:"button",role:"combobox","aria-expanded":p.open,"aria-haspopup":"listbox","aria-controls":p.contentId,id:p.triggerId,disabled:p.disabled,"data-state":p.open?"open":"closed","data-placeholder":w?void 0:"",className:i(lp({size:y,status:o}),a?"w-full":"w-auto",e),onKeyDown:I,...u,children:[s&&se("i",{className:"inline-flex shrink-0 items-center text-muted-foreground not-italic",children:s},void 0,!1,void 0,this),se("span",{"data-slot":"select-value",className:"min-w-0 flex-1 text-left",children:x},void 0,!1,void 0,this),se("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[T&&se("span",{role:"button",tabIndex:-1,"aria-label":"Clear selection",onMouseDown:(S)=>S.preventDefault(),onClick:v,className:"gs-interactive 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:se(Av,{className:ti[y]},void 0,!1,void 0,this)},void 0,!1,void 0,this),l??se(kv,{className:i(ti[y],"opacity-60 transition-transform duration-200 ease-[cubic-bezier(0.16,1,0.3,1)]",p.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)});dp.displayName="SelectTrigger";var pp=go(({className:e,children:t,widthMode:r,size:o,align:a="start",side:n="bottom",sideOffset:s=4,portal:l=!0,forceMount:m=!0,onKeyDown:d,...f},u)=>{let h=ri(),p=za(o),y=r??fo.auto,C=sp(null),R=eo(u,C),w=(x)=>{let I=C.current;if(!I)return;let S=Array.from(I.querySelectorAll('[role="option"]:not([data-disabled])'));if(S.length===0)return;let A=I.querySelector('[role="option"]:focus'),z=A?S.indexOf(A):-1,D;switch(x){case"first":D=S[0];break;case"last":D=S[S.length-1];break;case"next":D=S[z+1]??S[0];break;case"prev":D=S[z-1]??S[S.length-1];break}D?.focus()},T=(x)=>{if(d?.(x),x.defaultPrevented)return;switch(x.key){case"ArrowDown":x.preventDefault(),w("next");break;case"ArrowUp":x.preventDefault(),w("prev");break;case"Home":x.preventDefault(),w("first");break;case"End":x.preventDefault(),w("last");break;case"Escape":x.preventDefault(),h.onOpenChange(!1);break}};ei(()=>{if(h.open)requestAnimationFrame(()=>w("first"))},[h.open]);let v=se(Ht.Content,{ref:R,id:h.contentId,role:"listbox","aria-labelledby":h.triggerId,side:n,align:a,sideOffset:s,forceMount:m,onKeyDown:T,onOpenAutoFocus:(x)=>x.preventDefault(),className:i(Lr(),mp({widthMode:y,size:p}),"p-1",e),...f,children:t},void 0,!1,void 0,this);if(l)return se(Ht.Portal,{children:v},void 0,!1,void 0,this);return v});pp.displayName="SelectContent";var cp=go(({className:e,size:t,...r},o)=>{let a=za(t);return se("div",{ref:o,className:i("font-semibold text-foreground",_v[a],e),...r},void 0,!1,void 0,this)});cp.displayName="SelectLabel";var up=go(({className:e,children:t,value:r,label:o,size:a,disabled:n=!1,...s},l)=>{let m=ri(),d=za(a),f=m.value===r,u=m.registerItem,h=xa(Iv.toArray(t)).trim();ei(()=>{let C=o??(h.length>0?h:r);u(r,C)},[h,r,o,u]);let p=()=>{if(!n)m.onValueChange(r)},y=(C)=>{if(C.key==="Enter"||C.key===" ")C.preventDefault(),p()};return se("div",{ref:l,role:"option",tabIndex:n?void 0:-1,"aria-selected":f,"aria-disabled":n||void 0,"data-selected":f?"":void 0,"data-disabled":n?"":void 0,"data-value":r,className:i("gs-interactive 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:opacity-50",Bv[d],f&&"bg-accent/50",e),onClick:p,onKeyDown:y,...s,children:[se("span",{className:i("flex shrink-0 items-center justify-center",ti[d]),children:f&&se(Hv,{className:ti[d]},void 0,!1,void 0,this)},void 0,!1,void 0,this),se("span",{className:"min-w-0 flex-1 truncate",children:t},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});up.displayName="SelectItem";var fp=go(({className:e,...t},r)=>se("div",{ref:r,className:i("-mx-1 my-1 h-px bg-border",e),...t},void 0,!1,void 0,this));fp.displayName="SelectSeparator";import{cva as Kv}from"class-variance-authority";import{forwardRef as Yv}from"react";import{jsxDEV as Xv}from"react/jsx-dev-runtime";var yo={horizontal:"horizontal",vertical:"vertical"},gp=Kv("shrink-0 bg-border",{variants:{orientation:{[yo.horizontal]:"h-px w-full",[yo.vertical]:"h-full w-px"}},defaultVariants:{orientation:yo.horizontal}}),yp=Yv(({className:e,orientation:t=yo.horizontal,decorative:r=!0,...o},a)=>{let n=r?{role:"none"}:{role:"separator","aria-orientation":t};return Xv("div",{ref:a,className:i(gp({orientation:t}),e),...n,...o},void 0,!1,void 0,this)});yp.displayName="Separator";import{cva as oi}from"class-variance-authority";import{forwardRef as ii}from"react";import{jsxDEV as ai}from"react/jsx-dev-runtime";var fe={sm:"sm",md:"md",lg:"lg"},vp=oi("animate-pulse rounded-[var(--radius)] bg-muted"),bp=oi("w-full",{variants:{size:{[fe.sm]:"h-3",[fe.md]:"h-4",[fe.lg]:"h-5"}},defaultVariants:{size:fe.md}}),Tp=oi("",{variants:{size:{[fe.sm]:"h-8 w-8",[fe.md]:"h-10 w-10",[fe.lg]:"h-12 w-12"}},defaultVariants:{size:fe.md}}),hp=oi("",{variants:{size:{[fe.sm]:"h-8 w-20",[fe.md]:"h-9 w-24",[fe.lg]:"h-10 w-28"}},defaultVariants:{size:fe.md}}),vo=ii(({className:e,circle:t=!1,...r},o)=>ai("div",{ref:o,className:i(vp(),t&&"rounded-full",e),...r},void 0,!1,void 0,this));vo.displayName="Skeleton";var Pp=ii(({className:e,size:t=fe.md,...r},o)=>{let a=c(t)??fe.md;return ai(vo,{ref:o,className:i(bp({size:a}),e),...r},void 0,!1,void 0,this)});Pp.displayName="SkeletonText";var xp=ii(({className:e,size:t=fe.md,...r},o)=>{let a=c(t)??fe.md;return ai(vo,{ref:o,circle:!0,className:i(Tp({size:a}),e),...r},void 0,!1,void 0,this)});xp.displayName="SkeletonAvatar";var Cp=ii(({className:e,size:t=fe.md,...r},o)=>{let a=c(t)??fe.md;return ai(vo,{ref:o,className:i(hp({size:a}),e),...r},void 0,!1,void 0,this)});Cp.displayName="SkeletonButton";import*as kt from"@radix-ui/react-slider";import{cva as li}from"class-variance-authority";import{forwardRef as Zv}from"react";import{jsxDEV as si}from"react/jsx-dev-runtime";var ni={sm:"sm",md:"md",lg:"lg"},zp=li("relative flex w-full touch-none select-none items-center",{variants:{size:{[ni.sm]:"[&_[data-slider-track]]:h-0.5 [&_[data-slider-thumb]]:h-3 [&_[data-slider-thumb]]:w-3",[ni.md]:"[&_[data-slider-track]]:h-2 [&_[data-slider-thumb]]:h-5 [&_[data-slider-thumb]]:w-5",[ni.lg]:"[&_[data-slider-track]]:h-3 [&_[data-slider-thumb]]:h-6 [&_[data-slider-thumb]]:w-6"}},defaultVariants:{size:ni.md}}),Sp=li("relative w-full grow overflow-hidden rounded-full bg-secondary"),Np=li("absolute h-full bg-primary"),wp=li("gs-interactive block rounded-full border-2 border-primary bg-background ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"),Rp=Zv(({className:e,size:t,...r},o)=>{let a=c(t);return si(kt.Root,{ref:o,className:i(zp({size:a}),e),...r,children:[si(kt.Track,{"data-slider-track":!0,className:i(Sp()),children:si(kt.Range,{className:i(Np())},void 0,!1,void 0,this)},void 0,!1,void 0,this),(r.defaultValue??r.value??[0]).map((n,s)=>si(kt.Thumb,{"data-slider-thumb":!0,className:i(wp())},`thumb-${String(s)}`,!1,void 0,this))]},void 0,!0,void 0,this)});Rp.displayName="Slider";import{cva as he}from"class-variance-authority";import{forwardRef as Qv,useCallback as Or,useEffect as Ra,useMemo as mi,useRef as Lp,useState as di}from"react";import{createPortal as Ev}from"react-dom";import{useCallback as qv,useEffect as Jv,useRef as Mp}from"react";function wa(e,t,r={}){let{enabled:o=!0,preventDefault:a=!0,stopPropagation:n=!1,target:s="global"}=r,l=Mp(t);l.current=t;let m=Mp([]),d=Array.isArray(e)?e:[e];m.current=d.map((u)=>({combo:u,def:Sa(u)}));let f=qv((u)=>{if(!o)return;for(let{combo:h,def:p}of m.current)if(Na(u,p)){if(a)u.preventDefault();if(n)u.stopPropagation();l.current(u,h);return}},[o,a,n]);Jv(()=>{if(!o)return;let u=s==="global"?document:s.current;if(!u)return;return u.addEventListener("keydown",f),()=>{u.removeEventListener("keydown",f)}},[o,f,s])}import{jsxDEV as ee}from"react/jsx-dev-runtime";var jt={sm:"sm",md:"md",lg:"lg",xl:"xl"},Br={idle:"idle",loading:"loading",error:"error"},Hp=he("fixed inset-0 z-[120] bg-black/60 backdrop-blur-sm",{variants:{state:{open:"animate-in fade-in-0",closing:"animate-out fade-out-0"}},defaultVariants:{state:"open"}}),kp=he(["fixed left-1/2 top-[15vh] z-[120] w-full -translate-x-1/2","rounded-[calc(var(--radius)+6px)] border border-border bg-popover shadow-2xl","overflow-hidden"],{variants:{size:{[jt.sm]:"max-w-md",[jt.md]:"max-w-xl",[jt.lg]:"max-w-2xl",[jt.xl]:"max-w-3xl"},state:{open:"animate-in fade-in-0 slide-in-from-top-4",closing:"animate-out fade-out-0 slide-out-to-top-4"}},defaultVariants:{size:jt.md,state:"open"}}),Ap=he("flex items-center gap-3 border-b border-border px-4 py-3"),Ip=he(["w-full flex-1 bg-transparent text-foreground text-base","placeholder:text-muted-foreground","outline-none border-none"]),Vp=he("size-4 text-muted-foreground shrink-0"),pi=he(["inline-flex items-center justify-center px-1.5 py-0.5 rounded","font-mono text-[10px] font-medium","bg-muted border border-border text-muted-foreground"]),Dp=he("overflow-y-auto max-h-80 py-1"),Fp=he("px-3 py-2 text-xs font-semibold text-muted-foreground uppercase tracking-wide"),Op=he(["group flex items-center gap-3 px-3 py-2 mx-2 rounded-lg cursor-pointer","text-foreground transition-colors duration-100"],{variants:{selected:{true:"bg-primary/10",false:"hover:bg-muted"},disabled:{true:"opacity-50 cursor-not-allowed pointer-events-none",false:""}},defaultVariants:{selected:!1,disabled:!1}}),Bp=he("size-4 shrink-0",{variants:{selected:{true:"text-primary",false:"text-muted-foreground"}},defaultVariants:{selected:!1}}),_p=he("flex-1 min-w-0"),Gp=he("text-sm font-medium truncate"),Wp=he("text-xs text-muted-foreground truncate"),Up=he("flex items-center gap-1 text-[11px] text-muted-foreground shrink-0"),ci=he("flex flex-col items-center justify-center py-8 text-muted-foreground min-h-24",{variants:{state:{empty:"text-muted-foreground",loading:"text-muted-foreground",error:"text-destructive"}},defaultVariants:{state:"empty"}}),ui=he("text-sm font-medium"),$p=he("text-xs mt-1"),jv=(e,t)=>{if(!t)return!0;let r=t.toLowerCase();if(e.title.toLowerCase().includes(r))return!0;if(e.description?.toLowerCase().includes(r))return!0;if(e.keywords?.some((o)=>o.toLowerCase().includes(r)))return!0;return!1},Kp=Qv(({className:e,open:t,onOpenChange:r,actions:o,onActionSelect:a,value:n,defaultValue:s="",onValueChange:l,placeholder:m="Search commands, pages, or actions...",size:d=jt.md,status:f=Br.idle,statusMessage:u,emptyText:h="No command found for this query.",hotkey:p,portal:y=!0,...C},R)=>{let w=Lp(null),T=Lp(null),[v,x]=di(s),[I,S]=di(0),[A,z]=di(!1),[D,W]=di(!1),{isMac:O}=to(),U=Or((H)=>ro(H,O),[O]),N=mi(()=>p&&p.length>0?p.join("+"):null,[p]);wa(N??"",()=>r(!t),{enabled:!!N});let V=n!==void 0?n:v,P=mi(()=>o.filter((H)=>jv(H,V)),[o,V]),F=mi(()=>P.map((H,re)=>H.disabled?-1:re).filter((H)=>H>=0),[P]),Q=mi(()=>{let H=new Map,re=new Map,k=0;for(let q of P){let oe=q.group??"";if(!H.has(oe))H.set(oe,[]);H.get(oe).push(q),re.set(q,k),k++}return{groups:H,indexMap:re}},[P]);Ra(()=>{if(t){z(!0),W(!1),S(0);return}if(A)W(!0)},[t]);let L=Or(()=>{if(D)z(!1),W(!1)},[D]);Ra(()=>{if(t)document.body.style.overflow="hidden";else document.body.style.overflow="";return()=>{document.body.style.overflow=""}},[t]),Ra(()=>{if(t&&A)requestAnimationFrame(()=>w.current?.focus())},[t,A]);let Y=Or((H)=>{let re=H.target.value;x(re),l?.(re),S(0)},[l]),g=Or((H)=>{let re=T.current;if(!re)return;re.querySelectorAll('[role="option"]')[H]?.scrollIntoView({block:"nearest"})},[]),b=Or((H)=>{if(H.key==="Escape"){H.preventDefault(),r(!1);return}if(H.key==="ArrowDown"){if(H.preventDefault(),F.length===0)return;let k=(F.indexOf(I)+1)%F.length,q=F[k];S(q),g(q);return}if(H.key==="ArrowUp"){if(H.preventDefault(),F.length===0)return;let k=(F.indexOf(I)-1+F.length)%F.length,q=F[k];S(q),g(q);return}if(H.key==="Enter"){H.preventDefault();let re=P[I];if(re&&!re.disabled)a(re,I)}},[I,F,P,a,r,g]),M=Or((H,re)=>{if(H.disabled)return;a(H,re)},[a]);if(!A)return null;let E=D?"closing":"open",Z=f===Br.idle,ze=f!==Br.idle,j=ee("div",{ref:R,role:"dialog","aria-modal":"true",onKeyDown:b,className:i(e),...C,children:[ee("div",{"data-testid":"spotlight-overlay",className:i(Hp({state:E})),onClick:()=>r(!1),onKeyDown:(H)=>{if(H.key==="Escape")r(!1)}},void 0,!1,void 0,this),ee("div",{className:i(kp({size:d,state:E})),onAnimationEnd:L,children:[ee("div",{className:i(Ap()),children:[ee("svg",{className:i(Vp()),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:ee("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),ee("input",{ref:w,type:"text",value:V,onChange:Y,placeholder:m,className:i(Ip())},void 0,!1,void 0,this),p?ee("div",{className:"flex items-center gap-1",children:p.map((H)=>ee("kbd",{className:i(pi()),children:U(H)},H,!1,void 0,this))},void 0,!1,void 0,this):ee("kbd",{className:i(pi()),children:"ESC"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ze&&f===Br.loading&&ee("div",{className:i(ci({state:"loading"})),children:ee("div",{className:i(ui()),children:"Searching commands..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),ze&&f===Br.error&&ee("div",{className:i(ci({state:"error"})),children:[ee("div",{className:i(ui()),children:"Search failed"},void 0,!1,void 0,this),u&&ee("div",{className:i($p()),children:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z&&P.length===0&&ee("div",{className:i(ci({state:"empty"})),children:ee("div",{className:i(ui()),children:h},void 0,!1,void 0,this)},void 0,!1,void 0,this),Z&&P.length>0&&ee("div",{ref:T,className:i(Dp()),children:Array.from(Q.groups.entries()).map(([H,re])=>ee("div",{children:[H&&ee("div",{className:i(Fp()),children:H},void 0,!1,void 0,this),re.map((k)=>{let q=Q.indexMap.get(k)??0,oe=q===I;return ee("div",{role:"option","aria-selected":oe,"aria-disabled":k.disabled??!1,onClick:()=>M(k,q),className:i(Op({selected:oe,disabled:k.disabled??!1})),children:[k.icon&&ee("span",{className:i(Bp({selected:oe})),children:k.icon},void 0,!1,void 0,this),ee("div",{className:i(_p()),children:[ee("div",{className:i(Gp()),children:k.title},void 0,!1,void 0,this),k.description&&ee("div",{className:i(Wp()),children:k.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),k.shortcut&&k.shortcut.length>0&&ee("div",{className:i(Up()),children:k.shortcut.map((Pe)=>ee("kbd",{className:i(pi()),children:U(Pe)},Pe,!1,void 0,this))},void 0,!1,void 0,this)]},k.id,!0,void 0,this)})]},H||"__ungrouped__",!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);if(y)return Ev(j,document.body);return j});Kp.displayName="Spotlight";import{cva as eb}from"class-variance-authority";import{forwardRef as tb}from"react";import{jsxDEV as At}from"react/jsx-dev-runtime";var We={sm:"sm",md:"md",lg:"lg"},er={up:"up",down:"down",neutral:"neutral"},Yp=eb("gs-interactive 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:{[We.sm]:"gap-1 p-3",[We.md]:"gap-1.5 p-4",[We.lg]:"gap-2 p-5"}},defaultVariants:{size:We.md}}),rb={[We.sm]:"text-lg font-semibold",[We.md]:"text-2xl font-bold",[We.lg]:"text-3xl font-bold"},ob={[We.sm]:"text-xs",[We.md]:"text-sm",[We.lg]:"text-base"},ib={[er.up]:"text-success",[er.down]:"text-destructive",[er.neutral]:"text-muted-foreground"},ab={[er.up]:"↑",[er.down]:"↓",[er.neutral]:"→"},Xp=tb(({className:e,size:t=We.md,label:r,value:o,trend:a,trendValue:n,icon:s,...l},m)=>{let d=c(t);return At("div",{ref:m,className:i(Yp({size:d}),e),...l,children:[At("div",{className:"flex items-center justify-between",children:[At("span",{className:i("text-muted-foreground",ob[d]),children:r},void 0,!1,void 0,this),s&&At("span",{className:"text-muted-foreground/70","aria-hidden":"true",children:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this),At("div",{className:"flex items-baseline gap-2",children:[At("span",{className:i("tracking-tight text-foreground",rb[d]),children:o},void 0,!1,void 0,this),a&&n&&At("span",{className:i("inline-flex items-center gap-0.5 text-xs font-medium",ib[a]),children:[At("span",{"aria-hidden":"true",children:ab[a]},void 0,!1,void 0,this),n]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Xp.displayName="StatCard";import{cva as tr}from"class-variance-authority";import{Check as nb}from"lucide-react";import{forwardRef as rr}from"react";import{jsxDEV as It}from"react/jsx-dev-runtime";var Zp=tr("flex w-full",{variants:{orientation:{horizontal:"flex-row items-start",vertical:"flex-col"}},defaultVariants:{orientation:"horizontal"}}),qp=tr("flex",{variants:{orientation:{horizontal:"flex-1 flex-col items-center",vertical:"gap-4 flex-row"}},defaultVariants:{orientation:"horizontal"}}),Jp=tr(["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/80 bg-card text-muted-foreground","shadow-[0_1px_2px_rgba(0,0,0,0.05)]"],current:["border-primary bg-primary text-primary-foreground","shadow-[0_2px_4px_rgba(99,102,241,0.2)]"],complete:["border-success/60 bg-success text-success-foreground","shadow-[0_1px_3px_rgba(0,0,0,0.1)]","[&>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}}),Qp=tr("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}}),Ep=tr("flex flex-col",{variants:{orientation:{horizontal:"mt-3 items-center text-center",vertical:"flex-1 pb-8 last:pb-0"}},defaultVariants:{orientation:"horizontal"}}),jp=tr("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"}}),ec=tr("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 tc=rr(({className:e,orientation:t="horizontal",activeStep:r,...o},a)=>{return It("div",{ref:a,role:"group","aria-label":"Progress steps",className:i(Zp({orientation:t}),e),"data-orientation":t,"data-active-step":r,...o},void 0,!1,void 0,this)});tc.displayName="Stepper";var rc=rr(({className:e,orientation:t="horizontal",isLast:r,isCurrent:o,...a},n)=>{return It("div",{ref:n,className:i(qp({orientation:t}),e),"data-last":r,"aria-current":o?"step":void 0,...a},void 0,!1,void 0,this)});rc.displayName="Step";var oc=rr(({className:e,status:t="incomplete",size:r="md",icon:o,step:a,children:n,animated:s=!0,...l},m)=>{let d=c(r);return It("div",{ref:m,className:i(Jp({status:t,size:d,animated:s}),e),"data-status":t,"aria-hidden":"true",...l,children:t==="complete"?o||It(nb,{className:"size-4",strokeWidth:3},void 0,!1,void 0,this):n||a},void 0,!1,void 0,this)});oc.displayName="StepIndicator";var ic=rr(({className:e,orientation:t="horizontal",status:r="incomplete",size:o="md",animated:a=!0,...n},s)=>{let l=c(o);return It("div",{ref:s,className:i(Qp({orientation:t,status:r,size:l,animated:a}),e),"data-status":r,...n},void 0,!1,void 0,this)});ic.displayName="StepConnector";var ac=rr(({className:e,orientation:t="horizontal",...r},o)=>{return It("div",{ref:o,className:i(Ep({orientation:t}),e),...r},void 0,!1,void 0,this)});ac.displayName="StepContent";var nc=rr(({className:e,status:t="incomplete",size:r="md",...o},a)=>{let n=c(r);return It("h4",{ref:a,className:i(jp({status:t,size:n}),e),...o},void 0,!1,void 0,this)});nc.displayName="StepTitle";var sc=rr(({className:e,size:t="md",...r},o)=>{let a=c(t);return It("p",{ref:o,className:i(ec({size:a}),e),...r},void 0,!1,void 0,this)});sc.displayName="StepDescription";import*as fi from"@radix-ui/react-switch";import{cva as sb}from"class-variance-authority";import{forwardRef as lb}from"react";import{jsxDEV as lc}from"react/jsx-dev-runtime";var Re={sm:"sm",md:"md",lg:"lg",xl:"xl"},_r={default:"default",error:"error",success:"success"},mc=sb("gs-interactive 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:{[Re.sm]:"h-4.5 w-8",[Re.md]:"h-5 w-9",[Re.lg]:"h-6 w-11",[Re.xl]:"h-7 w-[3.25rem]"},status:{[_r.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",[_r.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",[_r.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:Re.md,status:_r.default}}),mb={[Re.sm]:"h-3.5 w-3.5",[Re.md]:"h-4 w-4",[Re.lg]:"h-5 w-5",[Re.xl]:"h-6 w-6"},db={[Re.sm]:"data-[state=checked]:translate-x-3.5",[Re.md]:"data-[state=checked]:translate-x-4",[Re.lg]:"data-[state=checked]:translate-x-5",[Re.xl]:"data-[state=checked]:translate-x-6"},dc=lb(({className:e,size:t=Re.md,status:r=_r.default,checked:o,disabled:a,...n},s)=>{let l=c(t);return lc(fi.Root,{ref:s,checked:o,disabled:a,className:i(mc({size:l,status:r}),e),...n,children:lc(fi.Thumb,{className:i("pointer-events-none block rounded-full bg-background shadow-sm transition-transform duration-150",mb[l],db[l])},void 0,!1,void 0,this)},void 0,!1,void 0,this)});dc.displayName="Switch";import{cva as vt}from"class-variance-authority";import{createContext as pb,forwardRef as Vt,useContext as pc}from"react";import{jsxDEV as at}from"react/jsx-dev-runtime";var Ce={sm:"sm",md:"md",lg:"lg"},Ma=pb(Ce.md),cc=vt("relative w-full overflow-auto rounded-[var(--radius)] border border-border bg-card shadow-[var(--shadow-sm)]"),uc=vt("w-full caption-bottom",{variants:{size:{[Ce.sm]:"text-xs",[Ce.md]:"text-sm",[Ce.lg]:"text-sm"}},defaultVariants:{size:Ce.md}}),fc=vt("sticky top-0 z-[1] [&_tr]:border-b [&_tr]:border-border [&_th]:bg-muted"),gc=vt("[&_tr:last-child]:border-0"),yc=vt("border-t border-border bg-muted font-medium text-muted-foreground [&>tr]:last:border-b-0"),vc=vt("gs-interactive border-b border-border hover:bg-muted/50 data-[state=selected]:bg-primary/10"),bc=vt("text-left align-middle font-semibold text-muted-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[Ce.sm]:"h-8 px-2",[Ce.md]:"h-10 px-3",[Ce.lg]:"h-12 px-4"}},defaultVariants:{size:Ce.md}}),Tc=vt("align-middle text-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[Ce.sm]:"p-2",[Ce.md]:"p-3",[Ce.lg]:"p-4"}},defaultVariants:{size:Ce.md}}),hc=vt("mt-4 text-sm text-muted-foreground"),Pc=Vt(({className:e,containerClassName:t,size:r=Ce.md,...o},a)=>{let n=c(r)??Ce.md;return at(Ma.Provider,{value:n,children:at("div",{className:i(cc(),t),children:at("table",{ref:a,className:i(uc({size:n}),e),...o},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Pc.displayName="Table";var xc=Vt(({className:e,...t},r)=>at("thead",{ref:r,className:i(fc(),e),...t},void 0,!1,void 0,this));xc.displayName="TableHeader";var Cc=Vt(({className:e,...t},r)=>at("tbody",{ref:r,className:i(gc(),e),...t},void 0,!1,void 0,this));Cc.displayName="TableBody";var zc=Vt(({className:e,...t},r)=>at("tfoot",{ref:r,className:i(yc(),e),...t},void 0,!1,void 0,this));zc.displayName="TableFooter";var Sc=Vt(({className:e,...t},r)=>at("tr",{ref:r,className:i(vc(),e),...t},void 0,!1,void 0,this));Sc.displayName="TableRow";var Nc=Vt(({className:e,size:t,...r},o)=>{let a=pc(Ma);return at("th",{ref:o,className:i(bc({size:t??a}),e),...r},void 0,!1,void 0,this)});Nc.displayName="TableHead";var wc=Vt(({className:e,size:t,...r},o)=>{let a=pc(Ma);return at("td",{ref:o,className:i(Tc({size:t??a}),e),...r},void 0,!1,void 0,this)});wc.displayName="TableCell";var Rc=Vt(({className:e,...t},r)=>at("caption",{ref:r,className:i(hc(),e),...t},void 0,!1,void 0,this));Rc.displayName="TableCaption";import*as je from"@radix-ui/react-tabs";import{cva as La}from"class-variance-authority";import{createContext as cb,forwardRef as Ha,useCallback as Mc,useContext as ub,useEffect as ka,useLayoutEffect as fb,useRef as gi,useState as gb}from"react";import{jsxDEV as bo}from"react/jsx-dev-runtime";var nt={sm:"sm",md:"md",lg:"lg",xl:"xl"},Lc=La("relative inline-flex items-center justify-center rounded-[var(--radius)] border border-border bg-muted/50 p-1 text-muted-foreground",{variants:{size:{[nt.sm]:"h-9 gap-0.5",[nt.md]:"h-11 gap-1",[nt.lg]:"h-12 gap-1",[nt.xl]:"h-14 gap-1.5"}},defaultVariants:{size:nt.md}}),Hc=La("gs-interactive relative z-10 inline-flex items-center justify-center whitespace-nowrap rounded-[calc(var(--radius)-2px)] font-semibold 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:{[nt.sm]:"px-2.5 py-1 text-xs",[nt.md]:"px-3 py-1.5 text-sm",[nt.lg]:"px-4 py-2 text-sm",[nt.xl]:"px-5 py-2.5 text-base"}},defaultVariants:{size:nt.md}}),kc=La("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),Ac=cb({registerTrigger:()=>{}}),yb=typeof window<"u"?fb:ka,vb=je.Root,Ic=Ha(({className:e,size:t,children:r,...o},a)=>{let n=c(t),s=gi(null),l=gi(new Map),[m,d]=gb(null),f=gi(!0),u=Mc((p,y)=>{if(y)l.current.set(p,y);else l.current.delete(p)},[]),h=Mc(()=>{let p=s.current;if(!p)return;let y=p.querySelector('[data-state="active"]');if(!y){d(null);return}let C=p.getBoundingClientRect(),R=y.getBoundingClientRect();d({left:R.left-C.left,width:R.width})},[]);return yb(()=>{h()},[h]),ka(()=>{let p=s.current;if(!p)return;let y=new MutationObserver(()=>{f.current=!1,h()});return y.observe(p,{attributes:!0,attributeFilter:["data-state"],subtree:!0}),()=>y.disconnect()},[h]),bo(Ac.Provider,{value:{registerTrigger:u},children:bo(je.List,{ref:(p)=>{if(s.current=p,typeof a==="function")a(p);else if(a)a.current=p},className:i(Lc({size:n}),e),...o,children:[m&&bo("span",{"aria-hidden":"true",className:i("absolute rounded-[calc(var(--radius)-2px)] bg-background shadow-sm",!f.current&&"transition-[left,width] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-emphasized)]"),style:{left:m.left,width:m.width,top:"4px",bottom:"4px"}},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Ic.displayName=je.List.displayName;var Vc=Ha(({className:e,size:t,value:r,...o},a)=>{let n=c(t),{registerTrigger:s}=ub(Ac),l=gi(null);return ka(()=>{return s(r,l.current),()=>s(r,null)},[r,s]),bo(je.Trigger,{ref:(m)=>{if(l.current=m,typeof a==="function")a(m);else if(a)a.current=m},value:r,className:i(Hc({size:n}),e),...o},void 0,!1,void 0,this)});Vc.displayName=je.Trigger.displayName;var Dc=Ha(({className:e,...t},r)=>bo(je.Content,{ref:r,className:i(kc(),e),...t},void 0,!1,void 0,this));Dc.displayName=je.Content.displayName;import{cva as bb}from"class-variance-authority";import{forwardRef as Tb}from"react";import{jsxDEV as hb}from"react/jsx-dev-runtime";var To={default:"default",error:"error",success:"success"},Gr={sm:"sm",md:"md",lg:"lg",xl:"xl"},Fc=bb("gs-interactive 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:{[To.default]:"focus-visible:ring-primary",[To.error]:"border-destructive focus-visible:ring-destructive",[To.success]:"border-success focus-visible:ring-success"},size:{[Gr.sm]:"min-h-[64px] px-2 py-1.5 text-xs",[Gr.md]:"min-h-[96px] px-3 py-2",[Gr.lg]:"min-h-[112px] px-4 py-2.5",[Gr.xl]:"min-h-[128px] px-4 py-3 text-base"}},defaultVariants:{status:To.default,size:Gr.md}}),Oc=Tb(({className:e,status:t=To.default,size:r=Gr.md,fullWidth:o=!1,noResize:a=!1,disabled:n,...s},l)=>{let m=c(r);return hb("textarea",{ref:l,className:i(Fc({status:t,size:m}),n&&"bg-muted",o&&"w-full",a&&"resize-none",e),disabled:n,...s},void 0,!1,void 0,this)});Oc.displayName="Textarea";import{cva as Dt}from"class-variance-authority";import{forwardRef as Ft}from"react";import{jsxDEV as st}from"react/jsx-dev-runtime";var Bc=Dt("relative flex flex-col"),_c=Dt(["group relative flex pb-8 last:pb-0","transition-opacity duration-300 ease-[cubic-bezier(0.22,1,0.36,1)]"],{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}}),Gc=Dt(["absolute bottom-0 w-0.5 rounded-full","transition-[background-color,opacity,height] duration-300 ease-[cubic-bezier(0.22,1,0.36,1)]"],{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-[11px] top-7",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}}),Wc=Dt(["relative z-10 flex shrink-0 items-center justify-center rounded-full border-2","transition-[color,background-color,border-color,box-shadow] duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]","[&>svg]:shrink-0"],{variants:{variant:{default:["border-border/80 bg-card text-muted-foreground","shadow-[0_1px_3px_rgba(0,0,0,0.12),0_0_0_2px_rgba(0,0,0,0.04)]","hover:border-border hover:shadow-[0_2px_6px_rgba(0,0,0,0.16),0_0_0_2px_rgba(0,0,0,0.06)]"],success:["border-success/60 bg-success/10 text-success","shadow-[0_1px_4px_rgba(0,0,0,0.1),0_0_0_2px_rgba(var(--success-rgb,34,197,94),0.2)]","hover:bg-success/15 hover:border-success/70 hover:shadow-[0_2px_8px_rgba(0,0,0,0.12),0_0_0_3px_rgba(var(--success-rgb,34,197,94),0.25)]"],warning:["border-warning/60 bg-warning/10 text-warning","shadow-[0_1px_4px_rgba(0,0,0,0.1),0_0_0_2px_rgba(var(--warning-rgb,234,179,8),0.2)]","hover:bg-warning/15 hover:border-warning/70 hover:shadow-[0_2px_8px_rgba(0,0,0,0.12),0_0_0_3px_rgba(var(--warning-rgb,234,179,8),0.25)]"],error:["border-destructive/60 bg-destructive/10 text-destructive","shadow-[0_1px_4px_rgba(0,0,0,0.1),0_0_0_2px_rgba(var(--destructive-rgb,239,68,68),0.2)]","hover:bg-destructive/15 hover:border-destructive/70 hover:shadow-[0_2px_8px_rgba(0,0,0,0.12),0_0_0_3px_rgba(var(--destructive-rgb,239,68,68),0.25)]"],info:["border-info/60 bg-info/10 text-info","shadow-[0_1px_4px_rgba(0,0,0,0.1),0_0_0_2px_rgba(var(--info-rgb,59,130,246),0.2)]","hover:bg-info/15 hover:border-info/70 hover:shadow-[0_2px_8px_rgba(0,0,0,0.12),0_0_0_3px_rgba(var(--info-rgb,59,130,246),0.25)]"],primary:["border-primary/60 bg-primary/10 text-primary","shadow-[0_1px_4px_rgba(0,0,0,0.1),0_0_0_2px_rgba(var(--primary-rgb,99,102,241),0.2)]","hover:bg-primary/15 hover:border-primary/70 hover:shadow-[0_2px_8px_rgba(0,0,0,0.12),0_0_0_3px_rgba(var(--primary-rgb,99,102,241),0.25)]"]},size:{sm:"h-6 w-6 [&>svg]:size-3",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}}),Uc=Dt("flex flex-col gap-1 pt-0.5 min-w-0 transition-opacity duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]"),$c=Dt("font-semibold text-foreground leading-tight transition-colors duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]",{variants:{size:{sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl"}},defaultVariants:{size:"md"}}),Kc=Dt("text-muted-foreground transition-colors duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]",{variants:{size:{sm:"text-sm",md:"text-sm",lg:"text-base",xl:"text-lg"}},defaultVariants:{size:"md"}}),Yc=Dt("font-medium text-muted-foreground/70 transition-colors duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]",{variants:{size:{sm:"text-sm",md:"text-sm",lg:"text-base",xl:"text-base"}},defaultVariants:{size:"md"}});var Xc=Ft(({className:e,...t},r)=>{return st("div",{ref:r,role:"list","aria-label":"Timeline events",className:i(Bc(),e),...t},void 0,!1,void 0,this)});Xc.displayName="Timeline";var Zc=Ft(({className:e,align:t,isLast:r,animated:o=!0,...a},n)=>{return st("div",{ref:n,role:"listitem",className:i(_c({align:t,animated:o}),e),"data-last":r,...a},void 0,!1,void 0,this)});Zc.displayName="TimelineItem";var qc=Ft(({className:e,variant:t,size:r,animated:o=!0,...a},n)=>{let s=c(r);return st("div",{ref:n,className:i(Gc({variant:t,size:s,animated:o}),e),...a},void 0,!1,void 0,this)});qc.displayName="TimelineConnector";var Jc=Ft(({className:e,variant:t,size:r,icon:o,children:a,pulse:n=!1,animated:s=!0,...l},m)=>{let d=c(r);return st("div",{ref:m,className:i(Wc({variant:t,size:d,pulse:n,animated:s}),e),"aria-hidden":"true",...l,children:o||a||st(Pb,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Jc.displayName="TimelineDot";var Qc=Ft(({className:e,...t},r)=>{return st("div",{ref:r,className:i(Uc(),e),...t},void 0,!1,void 0,this)});Qc.displayName="TimelineContent";var Ec=Ft(({className:e,size:t,...r},o)=>{let a=c(t);return st("h4",{ref:o,className:i($c({size:a}),e),...r},void 0,!1,void 0,this)});Ec.displayName="TimelineTitle";var jc=Ft(({className:e,size:t,...r},o)=>{let a=c(t);return st("p",{ref:o,className:i(Kc({size:a}),e),...r},void 0,!1,void 0,this)});jc.displayName="TimelineDescription";var eu=Ft(({className:e,size:t,...r},o)=>{let a=c(t);return st("time",{ref:o,className:i(Yc({size:a}),e),...r},void 0,!1,void 0,this)});eu.displayName="TimelineTime";function Pb(){return st("span",{className:"size-2 rounded-full bg-current"},void 0,!1,void 0,this)}import{cva as tu}from"class-variance-authority";var Wr={default:"default",success:"success",info:"info",warning:"warning",error:"error"},Ue={sm:"sm",md:"md",lg:"lg"},Aa=tu("pointer-events-auto relative flex w-full items-center overflow-hidden rounded-[var(--radius)] border shadow-[var(--shadow-md)]",{variants:{variant:{[Wr.default]:"border-border bg-card text-card-foreground",[Wr.success]:"border-success/30 bg-card text-card-foreground",[Wr.info]:"border-info/30 bg-card text-card-foreground",[Wr.warning]:"border-warning/30 bg-card text-card-foreground",[Wr.error]:"border-destructive/30 bg-card text-card-foreground"},size:{[Ue.sm]:"gap-2 p-3",[Ue.md]:"gap-3 p-4",[Ue.lg]:"gap-3.5 p-5"}},defaultVariants:{variant:Wr.default,size:Ue.md}}),Ia=tu("gs-interactive 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:opacity-50",{variants:{size:{[Ue.sm]:"h-6 px-2 text-xs",[Ue.md]:"h-7 px-2.5 text-xs",[Ue.lg]:"h-8 px-3 text-sm"}},defaultVariants:{size:Ue.md}});import{AlertTriangle as Lb,CheckCircle2 as Hb,Info as nu,X as kb,XCircle as Ab}from"lucide-react";import{forwardRef as Ib,useCallback as bi,useEffect as Ti,useRef as Ba,useState as _a}from"react";import{useSyncExternalStore as xb}from"react";var Cb=5,ou=5000,zb=500,Va=0;function Sb(){return Va=(Va+1)%Number.MAX_SAFE_INTEGER,`toast-${Va}-${Date.now()}`}var Da=new Set,$e=[],ir=new Map,Po=new Map,xo=!1,or=new Map;function yi(){for(let e of Da)e()}function ru(){return $e}function Nb(e){return Da.add(e),()=>{Da.delete(e)}}function Fa(e,t){if(xo){or.set(e,t);return}clearTimeout(ir.get(e));let r=Date.now(),o=setTimeout(()=>{ir.delete(e),or.delete(e),vi(e)},t);ir.set(e,o),or.set(e,t);let a=setInterval(()=>{let n=Date.now()-r,s=t-n;if(s<=0)clearInterval(a),or.delete(e);else or.set(e,s)},100)}function wb(e){clearTimeout(Po.get(e));let t=setTimeout(()=>{$e=$e.filter((r)=>r.id!==e),Po.delete(e),yi()},zb);Po.set(e,t)}function ho(e){let t=e.id??Sb(),r=e.duration??ou;if($e.find((n)=>n.id===t))return $e=$e.map((n)=>n.id===t?{...n,...e,id:t,open:!0,createdAt:Date.now()}:n),clearTimeout(Po.get(t)),Po.delete(t),Fa(t,r),yi(),t;return $e=[{...e,id:t,variant:e.variant??"default",dismissible:e.dismissible??!0,open:!0,createdAt:Date.now()},...$e].slice(0,Cb),Fa(t,r),yi(),t}function vi(e){clearTimeout(ir.get(e)),ir.delete(e),or.delete(e),$e=$e.map((t)=>t.id===e?{...t,open:!1}:t),yi(),wb(e)}function iu(){for(let e of $e)vi(e.id)}function Rb(){if(xo)return;xo=!0;for(let[e,t]of ir)clearTimeout(t),ir.delete(e)}function Mb(){if(!xo)return;xo=!1;for(let e of $e)if(e.open){let t=or.get(e.id)??ou;Fa(e.id,t)}}var au=Object.assign((e)=>ho(e),{success:(e,t)=>ho({...t,variant:"success",title:e}),info:(e,t)=>ho({...t,variant:"info",title:e}),warning:(e,t)=>ho({...t,variant:"warning",title:e}),error:(e,t)=>ho({...t,variant:"error",title:e}),dismiss:vi,dismissAll:iu});function Oa(){return{toasts:xb(Nb,ru,ru),toast:au,dismiss:vi,dismissAll:iu,pauseAll:Rb,resumeAll:Mb}}import{jsxDEV as Me}from"react/jsx-dev-runtime";var lu=10,su=0.05,Vb=200,mu="cubic-bezier(0.2, 0.8, 0.2, 1)",Db="cubic-bezier(0.22, 1, 0.36, 1)",Fb={"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"},Ob={success:(e)=>Me(Hb,{className:i("mt-0.5 shrink-0 text-success",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),info:(e)=>Me(nu,{className:i("mt-0.5 shrink-0 text-info",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),warning:(e)=>Me(Lb,{className:i("mt-0.5 shrink-0 text-warning",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),error:(e)=>Me(Ab,{className:i("mt-0.5 shrink-0 text-destructive",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),default:(e)=>Me(nu,{className:i("mt-0.5 shrink-0 text-muted-foreground",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this)};function Bb(e,t,r,o,a){let n=e<o,s=r?a:e*lu,l=r?1:n?1-e*su:1-o*su,m=n||r?1:0,d=t-e;return{offset:s,scale:l,opacity:m,zIndex:d}}var du=Ib(({position:e="bottom-right",gap:t=12,visibleCount:r=3,size:o=Ue.md,className:a,...n},s)=>{let{toasts:l,dismiss:m,pauseAll:d,resumeAll:f}=Oa(),u=c(o)??Ue.md,[h,p]=_a(!1),[y,C]=_a({}),R=Ba(null),w=Ba(void 0),T=e.startsWith("bottom"),v=bi((P)=>{if(R.current=P,typeof s==="function")s(P);else if(s)s.current=P},[s]),x=bi(()=>{clearTimeout(w.current),p(!0),d()},[d]),I=bi(()=>{clearTimeout(w.current),w.current=setTimeout(()=>{p(!1),f()},Vb)},[f]);Ti(()=>{return()=>clearTimeout(w.current)},[]);let S=bi((P,F)=>{C((Q)=>{if(Q[P]===F)return Q;return{...Q,[P]:F}})},[]);if(Ti(()=>{let P=new Set(l.map((F)=>F.id));C((F)=>{let Q=!1,L={};for(let[Y,g]of Object.entries(F))if(P.has(Y))L[Y]=g;else Q=!0;return Q?L:F})},[l]),l.length===0)return null;let A=l.filter((P)=>P.open),z=new Map,D=0;for(let[P,F]of A.entries()){let Q=y[F.id]??0;z.set(F.id,Bb(P,A.length,h,r,D)),D+=Q+t}let W=A[0],U=(W?y[W.id]??0:0)+Math.min(A.length-1,r-1)*lu,N=D-(A.length>0?t:0),V=h?N:U;return Me("ol",{ref:v,role:"region","aria-label":"Notifications",tabIndex:-1,onMouseEnter:x,onMouseLeave:I,className:i("pointer-events-auto fixed z-[100] w-full max-w-[400px] outline-none",Fb[e],a),style:{height:Math.max(V,0),transition:`height 400ms ${mu}`},...n,children:l.map((P)=>{let F=!P.open,Q=z.get(P.id);return Me(_b,{toast:P,layout:Q??{offset:0,scale:1,opacity:0,zIndex:0},isClosed:F,isBottom:T,size:u,onDismiss:m,onMeasure:S},P.id,!1,void 0,this)})},void 0,!1,void 0,this)});du.displayName="Toaster";function _b({toast:e,layout:t,isClosed:r,isBottom:o,size:a,onDismiss:n,onMeasure:s}){let l=Ba(null),[m,d]=_a(!1);Ti(()=>{let y=requestAnimationFrame(()=>d(!0));return()=>cancelAnimationFrame(y)},[]),Ti(()=>{let y=l.current;if(!y)return;let C=new ResizeObserver((R)=>{for(let w of R){let T=w.borderBoxSize?.[0];if(T)s(e.id,T.blockSize)}});return C.observe(y),()=>C.disconnect()},[e.id,s]);let f=o?{bottom:0,left:0,right:0}:{top:0,left:0,right:0},u,h,p;if(!m)u=`translateY(${o?80:-80}px) scale(0.9)`,h=0,p="none";else if(r)u=`translateY(${o?80:-80}px) scale(0.95)`,h=0,p="none";else u=`translateY(${o?-t.offset:t.offset}px) scale(${t.scale})`,h=t.opacity,p="auto";return Me("li",{ref:l,"data-state":e.open?"open":"closed","data-variant":e.variant,className:"absolute list-none",style:{...f,zIndex:t.zIndex,transformOrigin:o?"center bottom":"center top",transform:u,opacity:h,pointerEvents:p,transition:[`transform 400ms ${mu}`,`opacity 250ms ${Db}`].join(", ")},children:Me("div",{className:i(Aa({variant:e.variant,size:a}),"w-full"),children:[Ob[e.variant]?.(a),Me("div",{className:"flex-1 space-y-0.5",children:[e.title&&Me("p",{className:i("font-semibold leading-tight",a==="sm"?"text-xs":"text-sm"),children:e.title},void 0,!1,void 0,this),e.description&&Me("p",{className:i("leading-snug text-muted-foreground",a==="sm"?"text-xs":"text-sm"),children:e.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.action&&Me("button",{type:"button",className:i(Ia({size:a}),"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&&Me("button",{type:"button",className:i("gs-interactive mt-0.5 shrink-0 rounded-[var(--radius)] p-1 text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",a==="sm"?"[&>svg]:size-3.5":"[&>svg]:size-4"),onClick:()=>n(e.id),"aria-label":"Dismiss",children:Me(kb,{},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 pu from"@radix-ui/react-toggle";import{cva as Gb}from"class-variance-authority";import{forwardRef as Wb}from"react";import{jsxDEV as Ub}from"react/jsx-dev-runtime";var Ga={default:"default",outline:"outline"},hi={sm:"sm",md:"md",lg:"lg"},Pi=Gb("gs-interactive 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:{[Ga.default]:"bg-transparent disabled:bg-transparent disabled:text-foreground/50",[Ga.outline]:"border-input bg-transparent hover:bg-accent hover:text-accent-foreground disabled:bg-transparent disabled:text-foreground/50 disabled:border-border/50"},size:{[hi.sm]:"h-7 px-1.5 min-w-7 text-xs",[hi.md]:"h-10 px-3 min-w-10",[hi.lg]:"h-11 px-5 min-w-11"}},defaultVariants:{variant:Ga.default,size:hi.md}}),cu=Wb(({className:e,variant:t,size:r,...o},a)=>{let n=c(r);return Ub(pu.Root,{ref:a,className:i(Pi({variant:t,size:n}),e),...o},void 0,!1,void 0,this)});cu.displayName="Toggle";import*as xi from"@radix-ui/react-toggle-group";import{cva as $b}from"class-variance-authority";import{createContext as Kb,forwardRef as uu,useContext as Yb}from"react";import{jsxDEV as Wa}from"react/jsx-dev-runtime";var Xb={default:"default",outline:"outline"},Zb={sm:"sm",md:"md",lg:"lg"},fu=$b("flex items-center justify-center gap-1"),gu=Kb({size:Zb.md,variant:Xb.default}),yu=uu(({className:e,variant:t,size:r,children:o,...a},n)=>{let s=c(r);return Wa(xi.Root,{ref:n,className:i(fu(),e),...a,children:Wa(gu.Provider,{value:{variant:t,size:s},children:o},void 0,!1,void 0,this)},void 0,!1,void 0,this)});yu.displayName="ToggleGroup";var vu=uu(({className:e,children:t,variant:r,size:o,...a},n)=>{let s=Yb(gu),l=c(o);return Wa(xi.Item,{ref:n,className:i(Pi({variant:r??s.variant,size:l??s.size}),e),...a,children:t},void 0,!1,void 0,this)});vu.displayName="ToggleGroupItem";import{cva as bu}from"class-variance-authority";import{forwardRef as Ci}from"react";import{jsxDEV as zi}from"react/jsx-dev-runtime";var et={sm:"sm",md:"md",lg:"lg"},Tu=bu("flex items-center border-b border-border bg-background",{variants:{size:{[et.sm]:"gap-1.5 px-3 py-1.5",[et.md]:"gap-2 px-4 py-2",[et.lg]:"gap-3 px-5 py-2.5"}},defaultVariants:{size:et.md}}),hu=Ci(({className:e,size:t=et.md,...r},o)=>{let a=c(t);return zi("div",{ref:o,role:"toolbar",className:i(Tu({size:a}),e),...r},void 0,!1,void 0,this)});hu.displayName="Toolbar";var Pu=bu("flex items-center",{variants:{size:{[et.sm]:"gap-1",[et.md]:"gap-1.5",[et.lg]:"gap-2"}},defaultVariants:{size:et.md}}),xu=Ci(({className:e,size:t=et.md,...r},o)=>{let a=c(t);return zi("div",{ref:o,role:"group",className:i(Pu({size:a}),e),...r},void 0,!1,void 0,this)});xu.displayName="ToolbarGroup";var Cu=Ci(({className:e,...t},r)=>{return zi("div",{ref:r,role:"none",className:i("h-5 w-px shrink-0 bg-border",e),...t},void 0,!1,void 0,this)});Cu.displayName="ToolbarSeparator";var zu=Ci(({className:e,...t},r)=>{return zi("div",{ref:r,className:i("flex-1",e),...t},void 0,!1,void 0,this)});zu.displayName="ToolbarSpacer";import*as lt from"@radix-ui/react-tooltip";import{cva as qb}from"class-variance-authority";import{createContext as Jb,forwardRef as Su,useContext as Nu}from"react";import{jsxDEV as Co}from"react/jsx-dev-runtime";var Qb=lt.Provider,Ua=Jb(!1),wu=({persistOnClick:e=!1,children:t,...r})=>Co(Ua.Provider,{value:e,children:Co(lt.Root,{...r,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this);wu.displayName="Tooltip";var Ru=Su(({onClick:e,onPointerDown:t,...r},o)=>{let a=Nu(Ua);return Co(lt.Trigger,{ref:o,onClick:a?(n)=>{n.preventDefault(),e?.(n)}:e,onPointerDown:a?(n)=>{n.preventDefault(),t?.(n)}:t,...r},void 0,!1,void 0,this)});Ru.displayName="TooltipTrigger";var ar={sm:"sm",md:"md",lg:"lg",xl:"xl"},Mu=qb("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:{[ar.sm]:"px-1.5 py-0.5 text-xs",[ar.md]:"px-3 py-1.5 text-xs",[ar.lg]:"px-4 py-2 text-sm",[ar.xl]:"px-5 py-2.5 text-sm"}},defaultVariants:{size:ar.md}}),Lu=Su(({className:e,sideOffset:t=4,onPointerDownOutside:r,size:o=ar.md,...a},n)=>{let s=Nu(Ua),l=c(o);return Co(lt.Portal,{children:Co(lt.Content,{ref:n,sideOffset:t,className:i(Mu({size:l}),e),onPointerDownOutside:s?(m)=>{m.preventDefault(),r?.(m)}:r,...a},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Lu.displayName="TooltipContent";import{createContext as Eb,useCallback as nr,useContext as jb,useEffect as wi,useLayoutEffect as eT,useMemo as Si,useRef as Ot,useState as Hu}from"react";import{jsxDEV as tT}from"react/jsx-dev-runtime";var ku=typeof window<"u"?eT:wi,Ka=Eb(null);function Ni(e,t){return e.theme===t.theme&&e.colorScheme===t.colorScheme}var sr=({children:e,value:t,initialState:r,onChange:o,onStateChange:a,transformState:n,readState:s,writeState:l,syncWithSystem:m=!0,enableTransition:d=!1,transitionDuration:f,defaultTheme:u,defaultColorScheme:h,themes:p,attribute:y,colorSchemeAttribute:C,darkClassName:R,storage:w})=>{let T=Si(()=>Ur({defaultTheme:u,defaultColorScheme:h,themes:p,attribute:y,colorSchemeAttribute:C,darkClassName:R,storage:w}),[u,h,p,y,C,R,w]),[v,x]=Hu(()=>mt(r,T)),[I,S]=Hu(Hi),z=Si(()=>t?mt(t,T):null,[t,T])??v,D=Si(()=>({...z,resolvedColorScheme:$a(z.colorScheme,I)}),[z,I]),W=t!==void 0,O=Ot(z);O.current=z;let U=Ot(!1),N=Ot(!1),V=Ot(!1),P=Ot(z),F=Ot(null),Q=Ot(d);Q.current=d;let L=Ot(f);L.current=f;let Y=nr((k)=>{return Mi(k)},[]),g=nr((k,q)=>{Li(k,q)},[]),b=s??Y,M=l??g;wi(()=>{if(!m||typeof window>"u"||typeof window.matchMedia!=="function")return;let k=window.matchMedia("(prefers-color-scheme: dark)"),q=()=>{S(k.matches?dt.dark:dt.light)};return q(),k.addEventListener("change",q),()=>k.removeEventListener("change",q)},[m]),wi(()=>{if(W)return;x((k)=>{let q=mt(k,T);return Ni(k,q)?k:q})},[T,W]),ku(()=>{if(W||U.current)return;U.current=!0;let k=b(T);if(!k)return;let q=O.current,oe=mt(k,T),Pe={reason:"hydrate",previousState:q},pt=n?mt(n(oe,Pe),T):oe;if(Ni(q,pt))return;F.current=Pe,x(pt),o?.(pt,Pe),a?.(pt,Pe)},[T,W,o,a,b,n]),ku(()=>{if(typeof document>"u")return;let k=!V.current;if(V.current=!0,!k&&Q.current&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches){let oe=L.current??200,Pe=document.createElement("style");Pe.setAttribute("data-gs-theme-transition",""),Pe.textContent=`*, *::before, *::after { transition: color ${oe}ms ease, background-color ${oe}ms ease, border-color ${oe}ms ease, box-shadow ${oe}ms ease, fill ${oe}ms ease, stroke ${oe}ms ease !important; }`,document.head.appendChild(Pe),Ri(document.documentElement,D,T);let pt=requestAnimationFrame(()=>{setTimeout(()=>Pe.remove(),oe)});return()=>{cancelAnimationFrame(pt),Pe.remove()}}Ri(document.documentElement,D,T);return},[T,D]),wi(()=>{if(typeof window>"u")return;if(!N.current){N.current=!0,P.current=z;return}let k=P.current;if(Ni(k,z))return;let q=F.current??{reason:"set-state",previousState:k};F.current=null,M(z,T,q),P.current=z},[T,z,M]);let E=nr((k,q)=>{let oe=O.current,Pe=typeof k==="function"?k(oe):k,pt=mt({theme:Pe.theme??oe.theme,colorScheme:Pe.colorScheme??oe.colorScheme},T),zo={reason:q,previousState:oe},So=n?mt(n(pt,zo),T):pt;if(Ni(oe,So))return;if(F.current=zo,!W)x(So);o?.(So,zo),a?.(So,zo)},[T,W,o,a,n]),Z=nr((k)=>{E(k,"set-state")},[E]),ze=nr((k)=>{E({theme:k},"set-theme")},[E]),j=nr((k)=>{E({colorScheme:k},"set-color-scheme")},[E]),H=nr(()=>{let k=D.resolvedColorScheme===dt.dark?dt.light:dt.dark;E({colorScheme:k},"toggle-color-scheme")},[D.resolvedColorScheme,E]),re=Si(()=>({theme:z.theme,colorScheme:z.colorScheme,resolvedColorScheme:D.resolvedColorScheme,state:z,resolvedState:D,contract:T,themes:T.themes,setTheme:ze,setColorScheme:j,setState:Z,toggleColorScheme:H}),[z,D,T,ze,j,Z,H]);return tT(Ka.Provider,{value:re,children:e},void 0,!1,void 0,this)};sr.displayName="ThemeProvider";var ki=()=>{let e=jb(Ka);if(!e)throw Error("useTheme must be used within a ThemeProvider");return e};import{jsxDEV as Ai}from"react/jsx-dev-runtime";function Vi(e){return typeof e==="object"&&e!==null}function bt(e){return typeof e==="string"&&e.trim().length>0}function Au(e){if(!Vi(e))return!1;return Object.values(e).every(bt)}function Vu(e){if(!Vi(e))return!1;if(!Au(e.light))return!1;if(e.dark===void 0)return!0;return Au(e.dark)}function Du(e){return Vi(e)&&bt(e.cssText)}function rT(e){return Vi(e)&&bt(e.theme)}function Ya(e){return Error(`Invalid theme registry definition: ${e}`)}function Iu(e){let t=new Set,r=[];for(let o of e){if(!bt(o)||t.has(o))continue;t.add(o),r.push(o)}return r}function oT(e){return e.filter(bt).join(`
2
+ import{A as Li,B as $a,C as Hi,D as Eu,E as ju,F as Ri,G as ef,H as Ii,a as i,b as pT,c as eo,d as cT,e as uT,f as ma,g as Sa,h as Na,i as ro,j as fT,k as dt,l as _u,m as Gu,n as Wu,o as Uu,p as $u,q as Ku,r as Yu,s as Xu,t as Ur,u as mt,v as Zu,w as qu,x as Ju,y as Qu,z as Mi}from"./chunk-gv8xjarq.js";import{cva as Jw}from"class-variance-authority";import*as tt from"@radix-ui/react-accordion";import{cva as Bi}from"class-variance-authority";import{ChevronDown as sf}from"lucide-react";import{createContext as lf,forwardRef as Ro,useContext as qa}from"react";import{createContext as of,useContext as Za}from"react";import{jsxDEV as nf}from"react/jsx-dev-runtime";var No="md",Oi=of(No),wo=({density:e,children:t})=>{return nf(Oi.Provider,{value:e,children:t},void 0,!1,void 0,this)};wo.displayName="DensityProvider";var af=()=>{return Za(Oi)};function c(e){let t=Za(Oi);if(e!==void 0)return e;return t}import{jsxDEV as Tt}from"react/jsx-dev-runtime";var Ne={sm:"sm",md:"md",lg:"lg"},_i=lf(Ne.md),Ja=Bi("border-b border-border"),Qa=Bi("gs-interactive flex flex-1 items-center justify-between font-medium hover:underline [&[data-state=open]>svg]:rotate-180",{variants:{size:{[Ne.sm]:"py-3 text-xs [&>svg]:size-3.5",[Ne.md]:"py-4 text-sm [&>svg]:size-4",[Ne.lg]:"py-5 text-base [&>svg]:size-5"}},defaultVariants:{size:Ne.md}}),Ea=Bi("gs-accordion-content overflow-hidden",{variants:{size:{[Ne.sm]:"text-xs",[Ne.md]:"text-sm",[Ne.lg]:"text-base"}},defaultVariants:{size:Ne.md}}),mf={[Ne.sm]:"pt-0 pb-3",[Ne.md]:"pt-0 pb-4",[Ne.lg]:"pt-0 pb-5"},ja=Ro(({size:e=Ne.md,...t},r)=>{let o=c(e)??Ne.md;return Tt(_i.Provider,{value:o,children:Tt(tt.Root,{ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});ja.displayName="Accordion";var en=Ro(({className:e,...t},r)=>Tt(tt.Item,{ref:r,className:i(Ja(),e),...t},void 0,!1,void 0,this));en.displayName="AccordionItem";var tn=Ro(({className:e,children:t,...r},o)=>{let a=qa(_i);return Tt(tt.Header,{className:"flex",children:Tt(tt.Trigger,{ref:o,className:i(Qa({size:a}),e),...r,children:[t,Tt(sf,{className:"shrink-0 transition-transform"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});tn.displayName="AccordionTrigger";var rn=Ro(({className:e,children:t,...r},o)=>{let a=qa(_i);return Tt(tt.Content,{ref:o,className:i(Ea({size:a}),e),...r,children:Tt("div",{className:mf[a],children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});rn.displayName="AccordionContent";import{cva as Gi}from"class-variance-authority";import{TriangleAlert as df,CircleCheck as pf,Info as cf,CircleAlert as uf}from"lucide-react";import{forwardRef as Wi}from"react";import{jsxDEV as Ui}from"react/jsx-dev-runtime";var lr={default:"default",success:"success",warning:"warning",error:"error",info:"info"},$r={sm:"sm",md:"md",lg:"lg",xl:"xl"},on=Gi("relative w-full rounded-[var(--radius)] border [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{[lr.default]:"bg-background text-foreground",[lr.success]:"border-success/50 text-success [&>svg]:text-success bg-success/10",[lr.warning]:"border-warning/50 text-warning [&>svg]:text-warning bg-warning/10",[lr.error]:"border-destructive/50 text-destructive [&>svg]:text-destructive bg-destructive/10",[lr.info]:"border-info/50 text-info [&>svg]:text-info bg-info/10"},size:{[$r.sm]:"p-3 text-xs [&>svg]:top-3 [&>svg]:left-3 [&>svg~*]:pl-6",[$r.md]:"p-4 text-sm",[$r.lg]:"p-5 text-sm",[$r.xl]:"p-6 text-base [&>svg]:top-6 [&>svg]:left-6 [&>svg~*]:pl-8"}},defaultVariants:{variant:lr.default,size:$r.md}}),an=Gi("mb-1 font-medium leading-none tracking-tight"),nn=Gi("text-sm [&_p]:leading-relaxed"),sn=Wi(({className:e,variant:t,size:r,...o},a)=>{let n=c(r);return Ui("div",{ref:a,role:"alert",className:i(on({variant:t,size:n}),e),...o},void 0,!1,void 0,this)});sn.displayName="Alert";var ln=Wi(({className:e,...t},r)=>Ui("h5",{ref:r,className:i(an(),e),...t},void 0,!1,void 0,this));ln.displayName="AlertTitle";var mn=Wi(({className:e,...t},r)=>Ui("div",{ref:r,className:i(nn(),e),...t},void 0,!1,void 0,this));mn.displayName="AlertDescription";import*as ye from"@radix-ui/react-alert-dialog";import{cva as vn}from"class-variance-authority";import{forwardRef as cr}from"react";import{Slot as dn}from"@radix-ui/react-slot";import{cva as Ki}from"class-variance-authority";import{forwardRef as Mo}from"react";import{forwardRef as ff}from"react";import{jsxDEV as $i}from"react/jsx-dev-runtime";var mr={sm:"sm",md:"md",lg:"lg",xl:"xl"},gf={[mr.sm]:"h-4 w-4",[mr.md]:"h-5 w-5",[mr.lg]:"h-6 w-6",[mr.xl]:"h-8 w-8"},dr=ff(({className:e,size:t=mr.md,label:r="Loading",...o},a)=>{let n=c(t);return $i("span",{ref:a,className:i("inline-flex items-center justify-center",e),role:"status","aria-label":r,...o,children:[$i("span",{className:i("animate-spin rounded-full border-2 border-current border-r-transparent",gf[n])},void 0,!1,void 0,this),$i("span",{className:"sr-only",children:r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});dr.displayName="Spinner";import{jsxDEV as ut}from"react/jsx-dev-runtime";var ct={primary:"primary",secondary:"secondary",neutral:"neutral",outline:"outline",ghost:"ghost",danger:"danger"},ke={sm:"sm",md:"md",lg:"lg",xl:"xl",icon:"icon",iconSm:"icon-sm",iconLg:"icon-lg"},ht={default:"default",success:"success",warning:"warning",error:"error",info:"info"},pr={sm:"sm",md:"md",lg:"lg"},yf="Loading",vf="button",Kr=Ki("gs-interactive 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:cursor-not-allowed disabled:border-border disabled:bg-muted/45 disabled:text-muted-foreground",{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:{[ke.sm]:"h-8 px-2.5 text-xs",[ke.md]:"h-10 px-4 text-sm",[ke.lg]:"h-11 px-5 text-sm",[ke.xl]:"h-12 px-6 text-base",[ke.icon]:"h-10 w-10 p-0",[ke.iconSm]:"h-9 w-9 p-0",[ke.iconLg]:"h-11 w-11 p-0"}},defaultVariants:{variant:ct.primary,size:ke.md}}),pn=Ki("shrink-0",{variants:{size:{[pr.sm]:"size-3",[pr.md]:"size-4",[pr.lg]:"size-4.5"}},defaultVariants:{size:pr.md}}),cn=Ki("inline-flex items-center rounded-full border px-1.5 py-0.5 font-semibold text-[10px] leading-none",{variants:{tone:{[ht.default]:"border-border/70 bg-background/75 text-muted-foreground",[ht.success]:"border-success/35 bg-success/12 text-success",[ht.warning]:"border-warning/35 bg-warning/12 text-warning",[ht.error]:"border-destructive/35 bg-destructive/12 text-destructive",[ht.info]:"border-info/35 bg-info/12 text-info"}},defaultVariants:{tone:ht.default}});function bf(e){return e===ke.icon||e===ke.iconSm||e===ke.iconLg}function Tf(e,t,r){return e&&t?-1:r}function hf(e){return e["aria-label"]??e["aria-labelledby"]??e.title}function Pf(){if(typeof process>"u")return!0;return!0}var un=Mo(({className:e,size:t=pr.md,...r},o)=>ut(dn,{ref:o,className:i(pn({size:t}),e),...r},void 0,!1,void 0,this));un.displayName="ButtonIcon";var fn=Mo(({className:e,...t},r)=>ut("span",{ref:r,className:i("truncate",e),...t},void 0,!1,void 0,this));fn.displayName="ButtonLabel";var gn=Mo(({className:e,tone:t=ht.default,...r},o)=>ut("span",{ref:o,className:i(cn({tone:t}),e),...r},void 0,!1,void 0,this));gn.displayName="ButtonBadge";var yn=Mo(({className:e,variant:t=ct.primary,size:r=ke.md,asChild:o=!1,loading:a=!1,loadingText:n=yf,fullWidth:s=!1,leadingIcon:l,trailingIcon:m,disabled:d,children:f,type:u,tabIndex:h,onClick:p,...y},C)=>{let R=c(r),w=R??r,T=hf(y);if(Pf()&&bf(w)&&!T)throw Error("Icon-size Button requires aria-label, aria-labelledby, or title.");let v=Boolean(d||a),x=i(Kr({variant:t,size:R}),s&&"w-full",e);if(o)return ut(dn,{ref:C,className:x,"aria-disabled":v||void 0,"aria-busy":a||void 0,tabIndex:Tf(!0,v,h),onClick:v?(I)=>{I.preventDefault()}:p,...y,children:f},void 0,!1,void 0,this);return ut("button",{ref:C,className:x,disabled:v,"aria-disabled":v,"aria-busy":a,tabIndex:h,type:u??vf,onClick:a?void 0:p,...y,children:[ut("span",{className:i("absolute inset-0 flex items-center justify-center transition-opacity duration-150",a?"opacity-100":"opacity-0"),"aria-hidden":"true",children:ut(dr,{size:"sm"},void 0,!1,void 0,this)},void 0,!1,void 0,this),a&&ut("span",{className:"sr-only",children:n},void 0,!1,void 0,this),ut("span",{className:i("inline-flex items-center justify-center gap-2 transition-opacity duration-150",a&&"opacity-0"),children:[l,f,m]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});yn.displayName="Button";import{jsxDEV as rt}from"react/jsx-dev-runtime";var Pt={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},bn=vn("gs-dialog-overlay fixed inset-0 z-50 bg-black/50"),Tn=vn("gs-dialog-content fixed left-1/2 top-1/2 z-50 grid w-full gap-4 border border-border bg-background p-6 text-foreground shadow-[var(--shadow-xl)] rounded-[var(--radius)]",{variants:{size:{[Pt.sm]:"max-w-sm",[Pt.md]:"max-w-md",[Pt.lg]:"max-w-lg",[Pt.xl]:"max-w-xl",[Pt.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:Pt.md}}),xf=ye.Root,Cf=ye.Trigger,hn=ye.Portal,Yi=cr(({className:e,...t},r)=>rt(ye.Overlay,{ref:r,className:i(bn(),e),...t},void 0,!1,void 0,this));Yi.displayName="AlertDialogOverlay";var Pn=cr(({className:e,size:t=Pt.md,...r},o)=>{let a=c(t);return rt(hn,{children:[rt(Yi,{},void 0,!1,void 0,this),rt(ye.Content,{ref:o,className:i(Tn({size:a}),e),...r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Pn.displayName="AlertDialogContent";var xn=({className:e,...t})=>rt("div",{className:i("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);xn.displayName="AlertDialogHeader";var Cn=({className:e,...t})=>rt("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);Cn.displayName="AlertDialogFooter";var zn=cr(({className:e,...t},r)=>rt(ye.Title,{ref:r,className:i("text-lg font-semibold",e),...t},void 0,!1,void 0,this));zn.displayName="AlertDialogTitle";var Sn=cr(({className:e,...t},r)=>rt(ye.Description,{ref:r,className:i("text-sm text-muted-foreground",e),...t},void 0,!1,void 0,this));Sn.displayName="AlertDialogDescription";var Nn=cr(({className:e,...t},r)=>rt(ye.Action,{ref:r,className:i(Kr(),e),...t},void 0,!1,void 0,this));Nn.displayName="AlertDialogAction";var wn=cr(({className:e,...t},r)=>rt(ye.Cancel,{ref:r,className:i(Kr({variant:"outline"}),"mt-2 sm:mt-0",e),...t},void 0,!1,void 0,this));wn.displayName="AlertDialogCancel";import*as Rn from"@radix-ui/react-aspect-ratio";var zf=Rn.Root;import*as fr from"@radix-ui/react-avatar";import{cva as Sf}from"class-variance-authority";import{forwardRef as Lo}from"react";import{jsxDEV as ur}from"react/jsx-dev-runtime";var De={sm:"sm",md:"md",lg:"lg",xl:"xl"},Mn=Sf("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{[De.sm]:"h-7 w-7 text-xs",[De.md]:"h-10 w-10 text-sm",[De.lg]:"h-12 w-12 text-base",[De.xl]:"h-16 w-16 text-lg"}},defaultVariants:{size:De.md}}),Xi=Lo(({className:e,size:t=De.md,...r},o)=>{let a=c(t);return ur(fr.Root,{ref:o,className:i(Mn({size:a}),e),...r},void 0,!1,void 0,this)});Xi.displayName="Avatar";var Ln=Lo(({className:e,...t},r)=>ur(fr.Image,{ref:r,className:i("aspect-square h-full w-full object-cover",e),...t},void 0,!1,void 0,this));Ln.displayName="AvatarImage";var Zi=Lo(({className:e,...t},r)=>ur(fr.Fallback,{ref:r,className:i("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));Zi.displayName="AvatarFallback";var Nf={[De.sm]:"-space-x-2",[De.md]:"-space-x-3",[De.lg]:"-space-x-4",[De.xl]:"-space-x-5"},Hn=Lo(({className:e,children:t,max:r,size:o=De.md,...a},n)=>{let s=c(o),l=Array.isArray(t)?t:[t],m=r?l.slice(0,r):l,d=r?Math.max(0,l.length-r):0;return ur("div",{ref:n,className:i("flex items-center",Nf[s],e),...a,children:[m,d>0&&ur(Xi,{size:s,className:"border-2 border-background",children:ur(Zi,{className:"text-xs",children:["+",d]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Hn.displayName="AvatarGroup";import{Slot as wf}from"@radix-ui/react-slot";import{cva as Rf}from"class-variance-authority";import{X as Mf}from"lucide-react";import{forwardRef as Lf}from"react";import{jsxDEV as Yr}from"react/jsx-dev-runtime";var be={default:"default",primary:"primary",success:"success",warning:"warning",error:"error",info:"info",outline:"outline"},xt={sm:"sm",md:"md",lg:"lg",dot:"dot"},kn=Rf("inline-flex items-center justify-center gap-1 whitespace-nowrap rounded-full border font-medium",{variants:{variant:{[be.default]:"border-border bg-muted text-muted-foreground",[be.primary]:"border-primary/30 bg-primary/10 text-primary",[be.success]:"border-success/30 bg-success/10 text-success",[be.warning]:"border-warning/30 bg-warning/10 text-warning",[be.error]:"border-destructive/30 bg-destructive/10 text-destructive",[be.info]:"border-info/30 bg-info/10 text-info",[be.outline]:"border-border bg-transparent text-foreground"},solid:{true:"",false:""},size:{[xt.sm]:"h-5 px-2 text-[10px]",[xt.md]:"h-6 px-2.5 text-xs",[xt.lg]:"h-7 px-3 text-sm",[xt.dot]:"h-2 w-2 p-0"}},compoundVariants:[{solid:!0,variant:be.default,className:"border-transparent bg-foreground text-background"},{solid:!0,variant:be.primary,className:"border-primary bg-primary text-primary-foreground"},{solid:!0,variant:be.success,className:"border-success bg-success text-background"},{solid:!0,variant:be.warning,className:"border-warning bg-warning text-background"},{solid:!0,variant:be.error,className:"border-destructive bg-destructive text-destructive-foreground"},{solid:!0,variant:be.info,className:"border-info bg-info text-background"},{solid:!0,variant:be.outline,className:"border-border bg-foreground text-background"}],defaultVariants:{variant:be.default,solid:!1,size:xt.md}}),Ho=Lf(({className:e,variant:t=be.default,size:r=xt.md,solid:o=!1,pulse:a=!1,removable:n=!1,onRemove:s,onClick:l,children:m,asChild:d=!1,...f},u)=>{let h=c(r),p=Boolean(l),y=h===xt.dot,C=(T)=>{T.stopPropagation(),s?.(T)},R=i(kn({variant:t,solid:o,size:h}),p&&"cursor-pointer",a&&"animate-pulse",n&&!y&&"pr-1",e),w=n&&!y&&Yr("button",{type:"button",className:"gs-interactive ml-0.5 inline-flex size-4 items-center justify-center rounded-full text-current opacity-60 hover:opacity-100",onClick:C,"aria-label":"Remove",tabIndex:-1,children:Yr(Mf,{className:"size-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(d)return Yr(wf,{ref:u,className:R,onClick:l,...f,children:m},void 0,!1,void 0,this);if(p)return Yr("button",{ref:u,className:R,onClick:l,type:"button",...f,children:[!y&&m,w]},void 0,!0,void 0,this);return Yr("span",{ref:u,className:R,...f,children:[!y&&m,w]},void 0,!0,void 0,this)});Ho.displayName="Badge";import{Children as Hf,cloneElement as kf,forwardRef as Af,isValidElement as If,useCallback as An,useEffect as Vf,useLayoutEffect as Df,useRef as Ff,useState as Of}from"react";import{jsxDEV as In}from"react/jsx-dev-runtime";function Bf(e){let t=[];return Hf.forEach(e,(r,o)=>{if(!If(r))return;let a=r.key??o;t.push({key:a,element:r,isLeaving:!1})}),t}function _f(e,t){let r=new Set(t.map((n)=>n.key)),o=new Set(e.map((n)=>n.key)),a=[];for(let n of e)if(r.has(n.key)){let s=t.find((l)=>l.key===n.key);if(s)a.push({...s,isLeaving:!1})}else a.push({...n,isLeaving:!0});for(let n of t)if(!o.has(n.key))a.push(n);return a}function Gf(e,t,r){if(r.current)return r.current=!1,t;return _f(e,t)}var Wf=typeof window<"u"?Df:Vf,Vn=Af(({children:e,className:t,onRemove:r,gap:o="sm"},a)=>{let[n,s]=Of([]),l=Ff(!0);Wf(()=>{let u=Bf(e);s((h)=>Gf(h,u,l))},[e]);let m=An((u)=>{s((h)=>h.filter((p)=>p.key!==u))},[]),d=An((u)=>{r?.(u)},[r]),f={sm:"gap-1",md:"gap-2",lg:"gap-3"}[o];return In("div",{ref:a,className:i("inline-flex flex-wrap items-center",f,t),children:n.map((u)=>{let h={};if(u.element.props.removable&&r)h.onRemove=()=>{d(u.key)};let p=i("inline-flex transition-all duration-200",u.isLeaving&&"pointer-events-none scale-95 opacity-0");return In("span",{className:p,onTransitionEnd:u.isLeaving?()=>m(u.key):void 0,children:kf(u.element,h)},u.key,!1,void 0,this)})},void 0,!1,void 0,this)});Vn.displayName="BadgeGroup";import{Slot as Uf}from"@radix-ui/react-slot";import{cva as gr}from"class-variance-authority";import{ChevronRight as $f,MoreHorizontal as Kf}from"lucide-react";import{createContext as Yf,forwardRef as Xr,useContext as qi}from"react";import{jsxDEV as Ke}from"react/jsx-dev-runtime";var pe={sm:"sm",md:"md",lg:"lg"},ko=Yf(pe.md),Dn=gr("flex flex-wrap items-center break-words text-muted-foreground",{variants:{size:{[pe.sm]:"gap-1 text-xs",[pe.md]:"gap-1.5 text-sm sm:gap-2.5",[pe.lg]:"gap-2 text-base sm:gap-3"}},defaultVariants:{size:pe.md}}),Fn=gr("inline-flex items-center gap-1.5"),On=gr("gs-interactive hover:text-foreground focus-visible:outline-none focus-visible:text-foreground"),Bn=gr("font-normal text-foreground"),_n=gr("",{variants:{size:{[pe.sm]:"[&>svg]:size-3",[pe.md]:"[&>svg]:size-3.5",[pe.lg]:"[&>svg]:size-4"}},defaultVariants:{size:pe.md}}),Gn=gr("flex items-center justify-center",{variants:{size:{[pe.sm]:"h-7 w-7 [&>svg]:size-3.5",[pe.md]:"h-9 w-9 [&>svg]:size-4",[pe.lg]:"h-10 w-10 [&>svg]:size-5"}},defaultVariants:{size:pe.md}}),Wn=Xr(({size:e=pe.md,...t},r)=>{let o=c(e)??pe.md;return Ke(ko.Provider,{value:o,children:Ke("nav",{ref:r,"aria-label":"breadcrumb",...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Wn.displayName="Breadcrumb";var Un=Xr(({className:e,...t},r)=>{let o=qi(ko);return Ke("ol",{ref:r,className:i(Dn({size:o}),e),...t},void 0,!1,void 0,this)});Un.displayName="BreadcrumbList";var $n=Xr(({className:e,...t},r)=>Ke("li",{ref:r,className:i(Fn(),e),...t},void 0,!1,void 0,this));$n.displayName="BreadcrumbItem";var Kn=Xr(({asChild:e,className:t,...r},o)=>{return Ke(e?Uf:"a",{ref:o,className:i(On(),t),...r},void 0,!1,void 0,this)});Kn.displayName="BreadcrumbLink";var Yn=Xr(({className:e,...t},r)=>Ke("span",{ref:r,role:"link",tabIndex:0,"aria-disabled":"true","aria-current":"page",className:i(Bn(),e),...t},void 0,!1,void 0,this));Yn.displayName="BreadcrumbPage";var Xn=({children:e,className:t,...r})=>{let o=qi(ko),a={[pe.sm]:"size-3",[pe.md]:"size-3.5",[pe.lg]:"size-4"};return Ke("li",{role:"presentation","aria-hidden":"true",className:i(_n({size:o}),t),...r,children:e??Ke($f,{className:a[o]},void 0,!1,void 0,this)},void 0,!1,void 0,this)};Xn.displayName="BreadcrumbSeparator";var Zn=({className:e,...t})=>{let r=qi(ko);return Ke("span",{role:"presentation","aria-hidden":"true",className:i(Gn({size:r}),e),...t,children:[Ke(Kf,{},void 0,!1,void 0,this),Ke("span",{className:"sr-only",children:"More"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};Zn.displayName="BreadcrumbEllipsis";import{cva as Xf}from"class-variance-authority";import{forwardRef as Zf}from"react";import{jsxDEV as qf}from"react/jsx-dev-runtime";var Zr={horizontal:"horizontal",vertical:"vertical"},qn=Xf("inline-flex items-stretch",{variants:{orientation:{[Zr.horizontal]:"flex-row",[Zr.vertical]:"flex-col"},attached:{true:"gap-0 [&>*:not(:first-child)]:rounded-l-none [&>*:not(:last-child)]:rounded-r-none",false:"gap-2"}},defaultVariants:{orientation:Zr.horizontal,attached:!1}}),Jn=Zf(({className:e,orientation:t=Zr.horizontal,attached:r=!1,fullWidth:o=!1,...a},n)=>qf("div",{ref:n,className:i(qn({orientation:t,attached:r}),o&&"w-full",e),...a},void 0,!1,void 0,this));Jn.displayName="ButtonGroup";import{cva as Ct}from"class-variance-authority";import{forwardRef as Jf,useCallback as yr,useEffect as Qf,useMemo as Qn,useState as En}from"react";import{jsxDEV as Ae}from"react/jsx-dev-runtime";var B={sm:"sm",md:"md",lg:"lg",xl:"xl"},es=Ct("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:{[B.sm]:"p-3 text-sm",[B.md]:"p-4 text-sm",[B.lg]:"p-5 text-base",[B.xl]:"p-6 text-base"}},defaultVariants:{size:B.md}}),ts=Ct("mb-3 flex items-center justify-between",{variants:{size:{[B.sm]:"gap-1",[B.md]:"gap-2",[B.lg]:"gap-3",[B.xl]:"gap-3"}},defaultVariants:{size:B.md}}),rs=Ct("font-semibold text-foreground",{variants:{size:{[B.sm]:"text-sm",[B.md]:"text-base",[B.lg]:"text-lg",[B.xl]:"text-xl"}},defaultVariants:{size:B.md}}),Ji=Ct(["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:opacity-50"],{variants:{size:{[B.sm]:"size-7",[B.md]:"size-8",[B.lg]:"size-10",[B.xl]:"size-10"}},defaultVariants:{size:B.md}}),os=Ct("grid grid-cols-7",{variants:{size:{[B.sm]:"gap-0.5",[B.md]:"gap-1",[B.lg]:"gap-1.5",[B.xl]:"gap-2"}},defaultVariants:{size:B.md}}),is=Ct("text-center font-semibold uppercase tracking-wide text-muted-foreground",{variants:{size:{[B.sm]:"py-1 text-[10px]",[B.md]:"py-1.5 text-xs",[B.lg]:"py-2 text-sm",[B.xl]:"py-2 text-sm"}},defaultVariants:{size:B.md}}),as=Ct(["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:{[B.sm]:"size-7 text-xs",[B.md]:"size-9 text-sm",[B.lg]:"size-10 text-base",[B.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:B.md,state:"default"}}),Ef=Ct("rounded-md border border-transparent",{variants:{size:{[B.sm]:"size-7",[B.md]:"size-9",[B.lg]:"size-10",[B.xl]:"size-11"}},defaultVariants:{size:B.md}}),jn=["Su","Mo","Tu","We","Th","Fr","Sa"],jf=["January","February","March","April","May","June","July","August","September","October","November","December"],ft=(e)=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),vr=(e,t)=>{return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()},ns=Jf(({className:e,size:t="md",cellSize:r,mode:o="single",value:a,defaultValue:n,onChange:s,rangeValue:l,onRangeChange:m,viewMonth:d,onViewMonthChange:f,minDate:u,maxDate:h,disabledDates:p=[],weekStartsOn:y=1,highlightToday:C=!0,...R},w)=>{let T=c(t)??B.md,v=c(r??T)??T,[x,I]=En(a??n??null),[S,A]=En(a??n??new Date),z=d??S,D=yr((g)=>{if(f){let b=typeof g==="function"?g(d??S):g;f(b)}else A((b)=>{return typeof g==="function"?g(b):g})},[d,S,f]),W=a!==void 0?a:x,O=u?ft(u):null,U=h?ft(h):null;Qf(()=>{if(a!==void 0){if(I(a??null),a&&!d)A(a)}},[a,d]);let N=yr((g,b)=>{return(new Date(g,b,1).getDay()-y+7)%7},[y]),V=Qn(()=>{let g=z.getFullYear(),b=z.getMonth(),M=N(g,b),E=new Date(g,b+1,0).getDate(),Z=[];for(let j=0;j<M;j+=1)Z.push({key:`leading-${g}-${b}-${j}`,date:null});for(let j=1;j<=E;j+=1)Z.push({key:`day-${g}-${b}-${j}`,date:new Date(g,b,j)});let Se=(7-Z.length%7)%7;for(let j=0;j<Se;j+=1)Z.push({key:`trailing-${g}-${b}-${j}`,date:null});return Z},[z,N]),P=yr((g)=>{let b=ft(g);if(O&&b<O)return!0;if(U&&b>U)return!0;return p.some((M)=>vr(b,ft(M)))},[O,U,p]),F=yr((g)=>{if(P(g))return"disabled";if(o==="range"&&l){let{from:b,to:M}=l;if(b&&vr(g,b))return"rangeStart";if(M&&vr(g,M))return"rangeEnd";if(b&&M){let E=ft(g),Z=ft(b),Se=ft(M);if(E>Z&&E<Se)return"range"}}if(o==="single"&&W&&vr(g,W))return"selected";if(C&&vr(g,new Date))return"today";return"default"},[W,C,P,o,l]),Q=yr((g)=>{if(P(g))return;let b=new Date(g);if(o==="range"){if(!l?.from||l.from&&l.to)m?.({from:b,to:void 0});else{let M=ft(l.from);if(ft(b)<M)m?.({from:b,to:l.from});else m?.({from:l.from,to:b})}return}if(a===void 0)I(b);s?.(b)},[P,o,s,m,l,a]),L=yr((g)=>{D((b)=>{let M=new Date(b);return M.setMonth(M.getMonth()+g),M})},[D]),Y=Qn(()=>{return[...jn.slice(y),...jn.slice(0,y)]},[y]);return Ae("div",{ref:w,className:i(es({size:T}),e),...R,children:[Ae("div",{className:i(ts({size:T})),children:[Ae("button",{type:"button",onClick:()=>L(-1),className:i(Ji({size:T})),"aria-label":"Previous month",children:Ae("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Ae("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),Ae("span",{className:i(rs({size:T})),children:[jf[z.getMonth()]," ",z.getFullYear()]},void 0,!0,void 0,this),Ae("button",{type:"button",onClick:()=>L(1),className:i(Ji({size:T})),"aria-label":"Next month",children:Ae("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Ae("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),Ae("div",{className:i(os({size:T})),children:[Y.map((g)=>Ae("div",{className:i(is({size:v})),children:g},g,!1,void 0,this)),V.map((g)=>{if(!g.date)return Ae("div",{"aria-hidden":"true",className:i(Ef({size:v}))},g.key,!1,void 0,this);let b=g.date,M=F(b);return Ae("button",{type:"button",onClick:()=>Q(b),disabled:M==="disabled",className:i(as({size:v,state:M})),children:b.getDate()},g.key,!1,void 0,this)})]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});ns.displayName="Calendar";import{Slot as br}from"@radix-ui/react-slot";import{cva as eg}from"class-variance-authority";import{forwardRef as Tr}from"react";import{jsxDEV as hr}from"react/jsx-dev-runtime";var Ao={default:"default",muted:"muted",danger:"danger"},ss=eg("gs-interactive relative overflow-hidden rounded-[var(--radius)] border bg-card text-card-foreground shadow-[var(--shadow-sm)]",{variants:{variant:{[Ao.default]:"border-border",[Ao.muted]:"border-border/70 bg-muted/40",[Ao.danger]:"border-destructive/30 bg-destructive/[0.06]"}},defaultVariants:{variant:Ao.default}}),ls=Tr(({asChild:e=!1,className:t,variant:r,...o},a)=>{return hr(e?br:"div",{ref:a,className:i(ss({variant:r}),t),...o},void 0,!1,void 0,this)});ls.displayName="Card";var ms=Tr(({asChild:e=!1,className:t,...r},o)=>{return hr(e?br:"div",{ref:o,className:i("flex flex-col gap-1.5 border-b border-border/50 p-4",t),...r},void 0,!1,void 0,this)});ms.displayName="CardHeader";var ds=Tr(({asChild:e=!1,className:t,...r},o)=>{return hr(e?br:"div",{ref:o,className:i("p-4",t),...r},void 0,!1,void 0,this)});ds.displayName="CardContent";var ps=Tr(({asChild:e=!1,className:t,...r},o)=>{return hr(e?br:"div",{ref:o,className:i("flex items-center border-t border-border/50 p-4",t),...r},void 0,!1,void 0,this)});ps.displayName="CardFooter";var cs=Tr(({asChild:e=!1,className:t,...r},o)=>{return hr(e?br:"h3",{ref:o,className:i("font-semibold text-base leading-none tracking-tight",t),...r},void 0,!1,void 0,this)});cs.displayName="CardTitle";var us=Tr(({asChild:e=!1,className:t,...r},o)=>{return hr(e?br:"p",{ref:o,className:i("text-sm text-muted-foreground",t),...r},void 0,!1,void 0,this)});us.displayName="CardDescription";import*as Vo from"@radix-ui/react-checkbox";import{cva as tg}from"class-variance-authority";import{Check as rg,Minus as og}from"lucide-react";import{forwardRef as ig}from"react";import{jsxDEV as Io}from"react/jsx-dev-runtime";var Ye={sm:"sm",md:"md",lg:"lg",xl:"xl"},Pr={default:"default",error:"error",success:"success"},gs=tg("gs-interactive 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:{[Ye.sm]:"h-4 w-4",[Ye.md]:"h-5 w-5",[Ye.lg]:"h-6 w-6",[Ye.xl]:"h-7 w-7"},status:{[Pr.default]:"enabled:hover:border-primary/70",[Pr.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",[Pr.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:Ye.md,status:Pr.default}}),fs={[Ye.sm]:"size-3.5",[Ye.md]:"size-3.5",[Ye.lg]:"size-4",[Ye.xl]:"size-5"},ys=ig(({className:e,size:t=Ye.md,status:r=Pr.default,checked:o,disabled:a,...n},s)=>{let l=c(t);return Io(Vo.Root,{ref:s,checked:o,disabled:a,className:i(gs({size:l,status:r}),e),...n,children:Io(Vo.Indicator,{className:"gs-checkbox-indicator flex items-center justify-center text-current",children:o==="indeterminate"?Io(og,{className:fs[l]},void 0,!1,void 0,this):Io(rg,{className:fs[l]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});ys.displayName="Checkbox";import{cva as zt}from"class-variance-authority";import{forwardRef as ag,useCallback as ng,useState as sg}from"react";import{jsxDEV as we,Fragment as vs}from"react/jsx-dev-runtime";var X={sm:"sm",md:"md",lg:"lg"},Qi={default:"default",ghost:"ghost"},bs=zt("relative rounded-lg overflow-hidden font-mono",{variants:{size:{[X.sm]:"text-xs",[X.md]:"text-sm",[X.lg]:"text-base"},variant:{[Qi.default]:"bg-muted border border-border",[Qi.ghost]:"bg-transparent"}},defaultVariants:{size:X.md,variant:Qi.default}}),Ts=zt("flex items-center justify-between border-b border-border bg-muted",{variants:{size:{[X.sm]:"px-2.5 py-1.5 text-xs",[X.md]:"px-4 py-2 text-sm",[X.lg]:"px-5 py-2.5 text-base"}},defaultVariants:{size:X.md}}),hs=zt("text-muted-foreground font-medium",{variants:{size:{[X.sm]:"text-[11px]",[X.md]:"text-xs",[X.lg]:"text-sm"}},defaultVariants:{size:X.md}}),Ps=zt(["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:{[X.sm]:"px-2 py-1 text-xs",[X.md]:"px-2.5 py-1 text-xs",[X.lg]:"px-3 py-1.5 text-sm"},copied:{true:"text-success",false:""}},defaultVariants:{size:X.md,copied:!1}}),xs=zt("overflow-x-auto",{variants:{size:{[X.sm]:"p-2.5",[X.md]:"p-4",[X.lg]:"p-5"}},defaultVariants:{size:X.md}}),Cs=zt("text-foreground",{variants:{size:{[X.sm]:"",[X.md]:"",[X.lg]:""},showLineNumbers:{true:"",false:""}},defaultVariants:{size:X.md,showLineNumbers:!1}}),zs=zt("block",{variants:{size:{[X.sm]:"min-h-[1.25rem]",[X.md]:"min-h-[1.5rem]",[X.lg]:"min-h-[1.75rem]"},highlighted:{true:"bg-primary/10 -mx-4 px-4",false:""}},defaultVariants:{size:X.md,highlighted:!1}}),Ss=zt("inline-block text-right text-muted-foreground select-none",{variants:{size:{[X.sm]:"w-6 mr-2 text-[10px]",[X.md]:"w-8 mr-4 text-xs",[X.lg]:"w-10 mr-5 text-sm"}},defaultVariants:{size:X.md}}),Ns=ag(({className:e,code:t,language:r,showLineNumbers:o=!1,highlightedLines:a=[],showCopy:n=!0,size:s="md",variant:l="default",onCopy:m,...d},f)=>{let u=c(s),[h,p]=sg(!1),y=ng(async()=>{try{await navigator.clipboard.writeText(t),p(!0),m?.(t),setTimeout(()=>p(!1),2000)}catch(w){}},[t,m]),C=t.split(`
3
+ `),R=new Set(a);return we("div",{ref:f,className:i(bs({size:u,variant:l}),e),...d,children:[(r||n)&&we("div",{className:i(Ts({size:u})),children:[we("span",{className:i(hs({size:u})),children:r},void 0,!1,void 0,this),n&&we("button",{type:"button",onClick:y,className:i(Ps({size:u,copied:h})),children:h?we(vs,{children:[we("svg",{className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:we("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):we(vs,{children:[we("svg",{className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:we("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),we("div",{className:i(xs({size:u})),children:we("pre",{className:i(Cs({size:u,showLineNumbers:o})),children:we("code",{children:C.map((w,T)=>we("span",{className:i(zs({size:u,highlighted:R.has(T+1)})),children:[o&&we("span",{className:i(Ss({size:u})),children:T+1},void 0,!1,void 0,this),w,`
4
+ `]},`line-${String(T)}`,!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)});Ns.displayName="CodeBlock";import*as xr from"@radix-ui/react-collapsible";import{cva as lg}from"class-variance-authority";import{forwardRef as mg}from"react";import{jsxDEV as cg}from"react/jsx-dev-runtime";var ws=lg("gs-collapsible-content overflow-hidden"),dg=xr.Root,pg=xr.CollapsibleTrigger,Rs=mg(({className:e,...t},r)=>cg(xr.CollapsibleContent,{ref:r,className:i(ws(),e),...t},void 0,!1,void 0,this));Rs.displayName="CollapsibleContent";import*as St from"@radix-ui/react-dialog";import{cva as Xe}from"class-variance-authority";import{createContext as ug,forwardRef as ot,useContext as fg,useEffect as gg,useState as Ms}from"react";import{jsxDEV as ve}from"react/jsx-dev-runtime";var Ls=Xe(["fixed left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 z-50","w-full max-w-lg","bg-background border border-border rounded-xl shadow-2xl","overflow-hidden","animate-in fade-in-0 zoom-in-95 duration-200","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95"],{variants:{size:{sm:"max-w-sm",md:"max-w-lg",lg:"max-w-2xl"}},defaultVariants:{size:"md"}}),Hs=Xe(["fixed inset-0 z-50 bg-black/50 backdrop-blur-sm","animate-in fade-in-0 duration-200","data-[state=closed]:animate-out data-[state=closed]:fade-out-0"]),ks=Xe(["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:opacity-50"]),As=Xe(["max-h-[300px] overflow-y-auto overflow-x-hidden p-2"]),Is=Xe(["py-6 text-center text-sm text-muted-foreground"]),Vs=Xe(["overflow-hidden"]),Ds=Xe(["px-2 py-1.5 text-xs font-medium text-muted-foreground"]),Do={default:"default",danger:"danger"},Fs=Xe(["relative flex items-center gap-2 rounded-lg px-2 py-2","text-sm cursor-pointer select-none","outline-none transition-colors duration-150","data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50"],{variants:{selected:{true:"bg-primary/10 text-primary",false:"hover:bg-background-subtle"},variant:{[Do.default]:"text-foreground",[Do.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{selected:!1,variant:Do.default}}),Os=Xe(["-mx-1 my-1 h-px bg-border"]),Bs=Xe(["ml-auto text-xs tracking-widest text-muted-foreground"]),_s=Xe(["flex items-center justify-center py-6"]),Gs=ug(null),Ei=()=>{let e=fg(Gs);if(!e)throw Error("useCommand must be used within a Command");return e},ji=ot(({className:e,children:t,loop:r=!0,...o},a)=>{let[n,s]=Ms(""),[l,m]=Ms(0);return ve(Gs.Provider,{value:{search:n,setSearch:s,selectedIndex:l,setSelectedIndex:m},children:ve("div",{ref:a,className:i("flex flex-col overflow-hidden rounded-xl bg-background",e),...o,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});ji.displayName="Command";var Ws=ot(({children:e,size:t,...r},o)=>{return ve(St.Root,{...r,children:ve(St.Portal,{children:[ve(St.Overlay,{className:i(Hs())},void 0,!1,void 0,this),ve(St.Content,{ref:o,className:i(Ls({size:t})),children:ve(ji,{children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Ws.displayName="CommandDialog";var Us=ot(({className:e,icon:t,...r},o)=>{let{search:a,setSearch:n,setSelectedIndex:s}=Ei();return ve("div",{className:"flex items-center border-border border-b px-3",children:[t&&ve("span",{className:"mr-2 shrink-0 text-muted-foreground",children:t},void 0,!1,void 0,this),ve("input",{ref:o,value:a,onChange:(l)=>{n(l.target.value),s(0)},className:i(ks(),e),...r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Us.displayName="CommandInput";var $s=ot(({className:e,children:t,...r},o)=>{return ve("div",{ref:o,className:i(As(),e),...r,children:t},void 0,!1,void 0,this)});$s.displayName="CommandList";var Ks=ot(({className:e,children:t="No results found.",...r},o)=>{return ve("div",{ref:o,className:i(Is(),e),...r,children:t},void 0,!1,void 0,this)});Ks.displayName="CommandEmpty";var Ys=ot(({className:e,heading:t,children:r,...o},a)=>{return ve("div",{ref:a,className:i(Vs(),e),...o,children:[t&&ve("div",{className:i(Ds()),children:t},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)});Ys.displayName="CommandGroup";var Xs=ot(({className:e,disabled:t,onSelect:r,children:o,keywords:a,variant:n,...s},l)=>{let{search:m}=Ei();if(!(()=>{if(!m)return!0;let f=m.toLowerCase();if((typeof o==="string"?o.toLowerCase():"").includes(f))return!0;if(a?.some((h)=>h.toLowerCase().includes(f)))return!0;return!1})())return null;return ve("div",{ref:l,role:"option","aria-selected":!1,"aria-disabled":t,"data-disabled":t,onClick:()=>!t&&r?.(),onKeyDown:(f)=>{if(f.key==="Enter"&&!t)f.preventDefault(),r?.()},tabIndex:t?-1:0,className:i(Fs({selected:!1,variant:n}),e),...s,children:o},void 0,!1,void 0,this)});Xs.displayName="CommandItem";var Zs=ot(({className:e,...t},r)=>{return ve("div",{ref:r,className:i(Os(),e),...t},void 0,!1,void 0,this)});Zs.displayName="CommandSeparator";var qs=ot(({className:e,children:t,...r},o)=>{return ve("span",{ref:o,className:i(Bs(),e),...r,children:t},void 0,!1,void 0,this)});qs.displayName="CommandShortcut";var Js=ot(({className:e,children:t,...r},o)=>{return ve("div",{ref:o,className:i(_s(),e),...r,children:t},void 0,!1,void 0,this)});Js.displayName="CommandLoading";var yg=({key:e,modifier:t="meta",callback:r})=>{gg(()=>{let o=(a)=>{if({ctrl:a.ctrlKey,meta:a.metaKey,alt:a.altKey,shift:a.shiftKey}[t]&&a.key.toLowerCase()===e.toLowerCase())a.preventDefault(),r()};return document.addEventListener("keydown",o),()=>document.removeEventListener("keydown",o)},[e,t,r])};import*as _ from"@radix-ui/react-context-menu";import{cva as _t}from"class-variance-authority";import{Check as vg,ChevronRight as bg,Circle as Tg}from"lucide-react";import{createContext as hg,forwardRef as Nt,useContext as Cr}from"react";import{jsxDEV as ce}from"react/jsx-dev-runtime";var $={sm:"sm",md:"md",lg:"lg"},Fo={default:"default",danger:"danger"},Gt=hg($.md),ea=_t("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)]"),ta=_t("gs-interactive 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:{[$.sm]:"h-6 gap-1.5 px-1.5 text-xs [&_svg]:size-3",[$.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[$.lg]:"h-9 gap-2 px-2.5 text-sm [&_svg]:size-4"},variant:{[Fo.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[Fo.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{size:$.md,variant:Fo.default}}),Qs=_t("gs-interactive 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:{[$.sm]:"h-6 pl-6 pr-1.5 text-xs",[$.md]:"h-8 pl-8 pr-2 text-sm",[$.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:$.md}}),Es=_t("gs-interactive 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:{[$.sm]:"h-6 pl-6 pr-1.5 text-xs",[$.md]:"h-8 pl-8 pr-2 text-sm",[$.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:$.md}}),js=_t("font-semibold text-muted-foreground",{variants:{size:{[$.sm]:"px-1.5 py-0.5 text-[10px]",[$.md]:"px-2 py-1.5 text-xs",[$.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:$.md}}),el=_t("-mx-1 my-1 h-px bg-border/50"),tl=_t("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[$.sm]:"text-[10px]",[$.md]:"text-xs",[$.lg]:"text-xs"}},defaultVariants:{size:$.md}}),rl={[$.sm]:"absolute left-1.5 flex size-3 items-center justify-center",[$.md]:"absolute left-2 flex size-3.5 items-center justify-center",[$.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},Pg={[$.sm]:"size-3",[$.md]:"size-3.5",[$.lg]:"size-4"},xg={[$.sm]:"size-1.5 fill-current",[$.md]:"size-2 fill-current",[$.lg]:"size-2.5 fill-current"},Cg=_.Root,zg=_.Trigger,Sg=_.Group,Ng=_.Portal,wg=_.Sub,Rg=_.RadioGroup,ol=Nt(({className:e,inset:t,children:r,...o},a)=>{let n=Cr(Gt),s=c(n);return ce(_.SubTrigger,{ref:a,className:i(ta({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,ce(bg,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});ol.displayName=_.SubTrigger.displayName;var il=Nt(({className:e,...t},r)=>ce(_.Portal,{children:ce(_.SubContent,{ref:r,className:i(ea(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));il.displayName=_.SubContent.displayName;var al=Nt(({className:e,size:t,...r},o)=>{let a=c(t)??$.md;return ce(Gt.Provider,{value:a,children:ce(_.Portal,{children:ce(_.Content,{ref:o,className:i(ea(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});al.displayName=_.Content.displayName;var nl=Nt(({className:e,inset:t,variant:r,...o},a)=>{let n=Cr(Gt),s=c(n);return ce(_.Item,{ref:a,className:i(ta({size:s,variant:r}),t&&"pl-8",e),...o},void 0,!1,void 0,this)});nl.displayName=_.Item.displayName;var sl=Nt(({className:e,children:t,checked:r,...o},a)=>{let n=Cr(Gt),s=c(n)??$.md;return ce(_.CheckboxItem,{ref:a,className:i(Qs({size:s}),e),checked:r,...o,children:[ce("span",{className:rl[s],children:ce(_.ItemIndicator,{children:ce(vg,{className:Pg[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)});sl.displayName=_.CheckboxItem.displayName;var ll=Nt(({className:e,children:t,...r},o)=>{let a=Cr(Gt),n=c(a)??$.md;return ce(_.RadioItem,{ref:o,className:i(Es({size:n}),e),...r,children:[ce("span",{className:rl[n],children:ce(_.ItemIndicator,{children:ce(Tg,{className:xg[n]},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)});ll.displayName=_.RadioItem.displayName;var ml=Nt(({className:e,inset:t,...r},o)=>{let a=Cr(Gt),n=c(a);return ce(_.Label,{ref:o,className:i(js({size:n}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});ml.displayName=_.Label.displayName;var dl=Nt(({className:e,...t},r)=>ce(_.Separator,{ref:r,className:i(el(),e),...t},void 0,!1,void 0,this));dl.displayName=_.Separator.displayName;var pl=({className:e,...t})=>{let r=Cr(Gt),o=c(r);return ce("span",{className:i(tl({size:o}),e),...t},void 0,!1,void 0,this)};pl.displayName="ContextMenuShortcut";import*as Te from"@radix-ui/react-dialog";import{cva as Mg}from"class-variance-authority";import{X as Lg}from"lucide-react";import{forwardRef as Oo}from"react";import{jsxDEV as Ze}from"react/jsx-dev-runtime";var wt={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},ra=Te.Root,Hg=Te.Trigger,cl=Te.Portal,kg=Te.Close,oa=Oo(({className:e,...t},r)=>Ze(Te.Overlay,{ref:r,className:i("gs-dialog-overlay fixed inset-0 z-50 bg-black/50",e),...t},void 0,!1,void 0,this));oa.displayName="DialogOverlay";var ul=Mg("gs-dialog-content fixed left-1/2 top-1/2 z-50 grid w-full gap-4 border border-border bg-background p-6 text-foreground shadow-[var(--shadow-xl)] rounded-[var(--radius)]",{variants:{size:{[wt.sm]:"max-w-sm",[wt.md]:"max-w-md",[wt.lg]:"max-w-lg",[wt.xl]:"max-w-xl",[wt.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:wt.md}}),Bo=Oo(({className:e,children:t,size:r=wt.md,showClose:o=!0,...a},n)=>{let s=c(r);return Ze(cl,{children:[Ze(oa,{},void 0,!1,void 0,this),Ze(Te.Content,{ref:n,className:i(ul({size:s}),e),...a,children:[t,o&&Ze(Te.Close,{className:"gs-interactive 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",children:[Ze(Lg,{className:"size-4"},void 0,!1,void 0,this),Ze("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)});Bo.displayName="DialogContent";var fl=({className:e,...t})=>Ze("div",{className:i("flex flex-col space-y-1.5 text-center sm:text-left",e),...t},void 0,!1,void 0,this);fl.displayName="DialogHeader";var gl=({className:e,...t})=>Ze("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);gl.displayName="DialogFooter";var yl=Oo(({className:e,...t},r)=>Ze(Te.Title,{ref:r,className:i("font-semibold text-lg leading-none tracking-tight",e),...t},void 0,!1,void 0,this));yl.displayName="DialogTitle";var vl=Oo(({className:e,...t},r)=>Ze(Te.Description,{ref:r,className:i("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));vl.displayName="DialogDescription";import{cva as ia}from"class-variance-authority";import{X as Ag}from"lucide-react";import{forwardRef as _o}from"react";import{Drawer as gt}from"vaul";import{jsxDEV as Fe}from"react/jsx-dev-runtime";var Oe={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},Ig={[Oe.sm]:"sm:max-w-sm",[Oe.md]:"sm:max-w-md",[Oe.lg]:"sm:max-w-lg",[Oe.xl]:"sm:max-w-xl",[Oe.full]:"sm:max-w-full"},Vg={[Oe.sm]:"sm:max-h-[30vh]",[Oe.md]:"sm:max-h-[50vh]",[Oe.lg]:"sm:max-h-[70vh]",[Oe.xl]:"sm:max-h-[85vh]",[Oe.full]:"sm:max-h-full"},bl=ia(["fixed inset-0 z-50 bg-black/50","data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:duration-200","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:duration-150"]),Tl=ia(["group/drawer-content fixed z-50 flex h-auto flex-col border border-border bg-background 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"]),hl=ia("mx-auto shrink-0 rounded-full bg-muted-foreground/25 transition-colors duration-150 hover:bg-muted-foreground/40",{variants:{direction:{top:"mb-4 mt-2 h-1.5 w-[60px]",bottom:"mb-2 mt-4 h-1.5 w-[60px]",left:"ml-auto mr-2 mt-auto mb-auto h-[60px] w-1.5",right:"ml-2 mr-auto mt-auto mb-auto h-[60px] w-1.5"}},defaultVariants:{direction:"bottom"}}),Dg=gt.Root,Fg=gt.Trigger,Og=gt.Close,Pl=gt.Portal,aa=_o(({className:e,...t},r)=>Fe(gt.Overlay,{ref:r,className:i(bl(),e),...t},void 0,!1,void 0,this));aa.displayName="DrawerOverlay";var xl=_o(({size:e=Oe.md,showClose:t=!1,direction:r="bottom",className:o,children:a,...n},s)=>{let m=r==="left"||r==="right"?Ig[e]:Vg[e];return Fe(Pl,{children:[Fe(aa,{},void 0,!1,void 0,this),Fe(gt.Content,{ref:s,className:i(Tl(),m,o),...n,children:[(r==="top"||r==="bottom")&&Fe("div",{className:i(hl({direction:r}))},void 0,!1,void 0,this),a,t&&Fe(gt.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:[Fe(Ag,{className:"size-4"},void 0,!1,void 0,this),Fe("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)});xl.displayName="DrawerContent";var Cl=({className:e,...t})=>Fe("div",{className:i("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);Cl.displayName="DrawerHeader";var zl=({className:e,...t})=>Fe("div",{className:i("mt-auto flex flex-col gap-2 p-4",e),...t},void 0,!1,void 0,this);zl.displayName="DrawerFooter";var Sl=_o(({className:e,...t},r)=>Fe(gt.Title,{ref:r,className:i("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));Sl.displayName="DrawerTitle";var Nl=_o(({className:e,...t},r)=>Fe(gt.Description,{ref:r,className:i("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));Nl.displayName="DrawerDescription";import*as G from"@radix-ui/react-dropdown-menu";import{cva as Ut}from"class-variance-authority";import{Check as Bg,ChevronRight as _g,Circle as Gg}from"lucide-react";import{createContext as Wg,forwardRef as Rt,useCallback as Ug,useContext as zr,useEffect as $g,useRef as wl,useState as Kg}from"react";import{jsxDEV as me}from"react/jsx-dev-runtime";var K={sm:"sm",md:"md",lg:"lg"},Go={default:"default",danger:"danger"},$t=Wg(K.md),Wt=null,qr=null,Yg=0,na=Ut("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)]"),sa=Ut("gs-interactive 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:{[K.sm]:"h-7 gap-1.5 px-2 text-xs [&_svg]:size-3.5",[K.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[K.lg]:"h-9 gap-2 px-2.5 text-sm [&_svg]:size-4"},variant:{[Go.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[Go.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{size:K.md,variant:Go.default}}),Rl=Ut("gs-interactive 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:{[K.sm]:"h-7 pl-7 pr-2 text-xs",[K.md]:"h-8 pl-8 pr-2 text-sm",[K.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:K.md}}),Ml=Ut("gs-interactive 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:{[K.sm]:"h-7 pl-7 pr-2 text-xs",[K.md]:"h-8 pl-8 pr-2 text-sm",[K.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:K.md}}),Ll=Ut("font-semibold text-muted-foreground",{variants:{size:{[K.sm]:"px-2 py-1 text-[11px]",[K.md]:"px-2 py-1.5 text-xs",[K.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:K.md}}),Hl=Ut("-mx-1 my-1 h-px bg-border/50"),kl=Ut("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[K.sm]:"text-[11px]",[K.md]:"text-xs",[K.lg]:"text-xs"}},defaultVariants:{size:K.md}}),Al={[K.sm]:"absolute left-2 flex size-3.5 items-center justify-center",[K.md]:"absolute left-2 flex size-3.5 items-center justify-center",[K.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},Xg={[K.sm]:"size-3",[K.md]:"size-3.5",[K.lg]:"size-4"},Zg={[K.sm]:"size-1.5 fill-current",[K.md]:"size-2 fill-current",[K.lg]:"size-2.5 fill-current"},Il=({children:e,open:t,defaultOpen:r,onOpenChange:o,...a})=>{let[n,s]=Kg(r??!1),l=t!==void 0,m=l?t:n,d=wl(++Yg),f=wl({onOpenChange:o,isControlled:l});f.current={onOpenChange:o,isControlled:l};let u=Ug((h)=>{let{onOpenChange:p,isControlled:y}=f.current;if(h){if(Wt!==null&&Wt!==d.current&&qr)qr();Wt=d.current,qr=()=>{let{onOpenChange:C,isControlled:R}=f.current;if(!R)s(!1);C?.(!1)}}else if(Wt===d.current)Wt=null,qr=null;if(!y)s(h);p?.(h)},[]);return $g(()=>{return()=>{if(Wt===d.current)Wt=null,qr=null}},[]),me(G.Root,{open:m,onOpenChange:u,...a,children:e},void 0,!1,void 0,this)};Il.displayName="DropdownMenu";var qg=G.Trigger,Jg=G.Group,Qg=G.Portal,Eg=G.Sub,jg=G.RadioGroup,Vl=Rt(({className:e,inset:t,children:r,...o},a)=>{let n=zr($t),s=c(n);return me(G.SubTrigger,{ref:a,className:i(sa({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,me(_g,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Vl.displayName=G.SubTrigger.displayName;var Dl=Rt(({className:e,...t},r)=>me(G.Portal,{children:me(G.SubContent,{ref:r,className:i(na(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));Dl.displayName=G.SubContent.displayName;var Fl=Rt(({className:e,sideOffset:t=4,size:r,...o},a)=>{let n=c(r)??K.md;return me($t.Provider,{value:n,children:me(G.Portal,{children:me(G.Content,{ref:a,sideOffset:t,className:i(na(),e),...o},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Fl.displayName=G.Content.displayName;var Ol=Rt(({className:e,inset:t,variant:r,...o},a)=>{let n=zr($t),s=c(n);return me(G.Item,{ref:a,className:i(sa({size:s,variant:r}),t&&"pl-8",e),...o},void 0,!1,void 0,this)});Ol.displayName=G.Item.displayName;var Bl=Rt(({className:e,children:t,checked:r,...o},a)=>{let n=zr($t),s=c(n)??K.md;return me(G.CheckboxItem,{ref:a,className:i(Rl({size:s}),e),checked:r,...o,children:[me("span",{className:Al[s],children:me(G.ItemIndicator,{children:me(Bg,{className:Xg[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)});Bl.displayName=G.CheckboxItem.displayName;var _l=Rt(({className:e,children:t,...r},o)=>{let a=zr($t),n=c(a)??K.md;return me(G.RadioItem,{ref:o,className:i(Ml({size:n}),e),...r,children:[me("span",{className:Al[n],children:me(G.ItemIndicator,{children:me(Gg,{className:Zg[n]},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)});_l.displayName=G.RadioItem.displayName;var Gl=Rt(({className:e,inset:t,...r},o)=>{let a=zr($t),n=c(a);return me(G.Label,{ref:o,className:i(Ll({size:n}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});Gl.displayName=G.Label.displayName;var Wl=Rt(({className:e,...t},r)=>me(G.Separator,{ref:r,className:i(Hl(),e),...t},void 0,!1,void 0,this));Wl.displayName=G.Separator.displayName;var Ul=({className:e,...t})=>{let r=zr($t),o=c(r);return me("span",{className:i(kl({size:o}),e),...t},void 0,!1,void 0,this)};Ul.displayName="DropdownMenuShortcut";import{cva as Qr}from"class-variance-authority";import{forwardRef as ey}from"react";import{jsxDEV as Jr}from"react/jsx-dev-runtime";var he={sm:"sm",md:"md",lg:"lg"},$l=Qr("flex flex-col items-center justify-center text-center rounded-[var(--radius)] border border-dashed border-border/50 bg-muted/20",{variants:{size:{[he.sm]:"gap-2 p-4",[he.md]:"gap-4 p-8",[he.lg]:"gap-6 p-12"}},defaultVariants:{size:he.md}}),Kl=Qr("flex items-center justify-center rounded-full bg-muted/50 text-muted-foreground",{variants:{size:{[he.sm]:"h-10 w-10 [&>svg]:h-4 [&>svg]:w-4",[he.md]:"h-16 w-16 [&>svg]:h-7 [&>svg]:w-7",[he.lg]:"h-20 w-20 [&>svg]:h-9 [&>svg]:w-9"}},defaultVariants:{size:he.md}}),Yl=Qr("font-semibold text-foreground",{variants:{size:{[he.sm]:"text-sm",[he.md]:"text-lg",[he.lg]:"text-xl"}},defaultVariants:{size:he.md}}),Xl=Qr("text-muted-foreground max-w-sm",{variants:{size:{[he.sm]:"text-xs",[he.md]:"text-sm",[he.lg]:"text-base"}},defaultVariants:{size:he.md}}),Zl=Qr("flex items-center gap-2 mt-2"),ql=ey(({className:e,icon:t,title:r,description:o,actions:a,size:n=he.md,children:s,...l},m)=>{let d=c(n);return Jr("div",{ref:m,className:i($l({size:d}),e),...l,children:[t&&Jr("div",{className:Kl({size:d}),children:t},void 0,!1,void 0,this),r&&Jr("h3",{className:Yl({size:d}),children:r},void 0,!1,void 0,this),o&&Jr("p",{className:Xl({size:d}),children:o},void 0,!1,void 0,this),a&&Jr("div",{className:Zl(),children:a},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)});ql.displayName="EmptyState";import{cva as Sr}from"class-variance-authority";import{Component as ty,createElement as Jl}from"react";import{jsxDEV as Re,Fragment as oy}from"react/jsx-dev-runtime";var Ql=Sr(["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"}}),El=Sr(["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"}}),jl=Sr("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=Sr("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"}}),tm=Sr("mt-2 flex flex-wrap items-center justify-center gap-2"),rm=Sr("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 om extends ty{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:a="destructive",className:n,title:s="Something went wrong",description:l="An unexpected error occurred. Please try again.",icon:m,actions:d,resetLabel:f="Try again",hideReset:u=!1,renderDetails:h}=this.props;if(this.state.hasError&&this.state.error){let p={error:this.state.error,reset:this.handleReset};if(t){if(typeof t==="function")return Jl(t,p);return t}let y=null;if(d)y=typeof d==="function"?Jl(d,p):d;else if(!u){let R={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"};y=Re("button",{type:"button",onClick:this.handleReset,className:i("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",R[a]),children:f},void 0,!1,void 0,this)}let C=h?h(this.state.error):Re(oy,{children:[Re("strong",{children:"Error:"},void 0,!1,void 0,this)," ",this.state.error.message,this.state.error.stack&&Re("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 Re("div",{className:i(Ql({size:o,variant:a}),n),children:[Re("div",{className:i(El({size:o,variant:a})),children:m??Re(ry,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),Re("h3",{className:i(jl({size:o,variant:a})),children:s},void 0,!1,void 0,this),Re("p",{className:i(em({size:o})),children:l},void 0,!1,void 0,this),y&&Re("div",{className:i(tm()),children:y},void 0,!1,void 0,this),r&&Re("div",{className:i(rm()),children:C},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}return e}}function ry(){return Re("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:[Re("circle",{cx:"12",cy:"12",r:"10"},void 0,!1,void 0,this),Re("line",{x1:"12",x2:"12",y1:"8",y2:"12"},void 0,!1,void 0,this),Re("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 Mt}from"class-variance-authority";import{forwardRef as iy,useCallback as qe,useRef as ay,useState as im}from"react";import{jsxDEV as Ce}from"react/jsx-dev-runtime";var ie={sm:"sm",md:"md",lg:"lg",xl:"xl"},am=Mt(["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:{[ie.sm]:"min-h-28 p-5",[ie.md]:"min-h-36 p-8",[ie.lg]:"min-h-44 p-10",[ie.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:ie.md,isDragging:!1,disabled:!1,hasError:!1}}),nm=Mt("text-muted-foreground transition-colors duration-200",{variants:{size:{[ie.sm]:"mb-2 size-6",[ie.md]:"size-8 mb-3",[ie.lg]:"size-10 mb-4",[ie.xl]:"size-12 mb-5"},isDragging:{true:"text-primary",false:""}},defaultVariants:{size:ie.md,isDragging:!1}}),la=Mt("text-center",{variants:{size:{[ie.sm]:"text-sm",[ie.md]:"text-sm",[ie.lg]:"text-base",[ie.xl]:"text-lg"}},defaultVariants:{size:ie.md}}),sm=Mt("mt-4 w-full space-y-2"),lm=Mt(["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"]),mm=Mt("min-w-0 flex-1 truncate font-medium text-foreground",{variants:{size:{[ie.sm]:"text-sm",[ie.md]:"text-sm",[ie.lg]:"text-base",[ie.xl]:"text-base"}},defaultVariants:{size:"md"}}),dm=Mt("text-muted-foreground",{variants:{size:{[ie.sm]:"text-xs",[ie.md]:"text-sm",[ie.lg]:"text-sm",[ie.xl]:"text-base"}},defaultVariants:{size:"md"}}),pm=Mt(["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"]),cm=iy(({className:e,size:t="md",disabled:r=!1,accept:o,multiple:a=!1,maxSize:n,maxFiles:s,value:l=[],onChange:m,onError:d,icon:f,title:u="Drop files here or click to upload",description:h,showFileList:p=!0,...y},C)=>{let R=c(t),[w,T]=im(!1),[v,x]=im(!1),I=ay(null),S=qe((L)=>{if(L===0)return"0 Bytes";let Y=1024,g=["Bytes","KB","MB","GB"],b=Math.floor(Math.log(L)/Math.log(Y));return`${parseFloat((L/Y**b).toFixed(2))} ${g[b]}`},[]),A=qe((L)=>{let Y=[...L];if(x(!1),o){let g=o.split(",").map((b)=>b.trim());if(Y=Y.filter((b)=>{return g.some((M)=>{if(M.startsWith("."))return b.name.toLowerCase().endsWith(M.toLowerCase());if(M.endsWith("/*"))return b.type.startsWith(M.slice(0,-1));return b.type===M})}),Y.length<L.length)d?.("Some files were rejected due to file type"),x(!0)}if(n){let g=Y.length;if(Y=Y.filter((b)=>b.size<=n),Y.length<g)d?.(`File size must be less than ${S(n)}`),x(!0)}if(s&&Y.length+l.length>s)Y=Y.slice(0,s-l.length),d?.(`Maximum ${s} files allowed`),x(!0);return Y},[o,n,s,l.length,d,S]),z=qe((L)=>{if(!L||L.length===0)return;let Y=Array.from(L),g=A(Y);if(g.length>0)if(a)m?.([...l,...g]);else m?.(g.slice(0,1))},[a,l,m,A]),D=qe((L)=>{L.preventDefault(),L.stopPropagation(),T(!0)},[]),W=qe((L)=>{L.preventDefault(),L.stopPropagation(),T(!1)},[]),O=qe((L)=>{L.preventDefault(),L.stopPropagation()},[]),U=qe((L)=>{if(L.preventDefault(),L.stopPropagation(),T(!1),r)return;z(L.dataTransfer.files)},[r,z]),N=qe((L)=>{if(z(L.target.files),I.current)I.current.value=""},[z]),V=qe(()=>{if(!r)I.current?.click()},[r]),P=qe((L)=>{if(L.key==="Enter"||L.key===" ")L.preventDefault(),V()},[V]),F=qe((L)=>{let Y=l.filter((g,b)=>b!==L);m?.(Y)},[l,m]),Q=Ce("svg",{className:i(nm({size:R,isDragging:w})),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:Ce("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 Ce("div",{ref:C,className:i("w-full",e),...y,children:[Ce("div",{role:"button",tabIndex:r?-1:0,onClick:V,onKeyDown:P,onDragEnter:D,onDragLeave:W,onDragOver:O,onDrop:U,className:i(am({size:R,isDragging:w,disabled:r,hasError:v})),children:[Ce("input",{ref:I,type:"file",accept:o,multiple:a,disabled:r,onChange:N,className:"sr-only"},void 0,!1,void 0,this),f||Q,Ce("p",{className:i(la({size:R}),"font-medium text-foreground"),children:u},void 0,!1,void 0,this),h&&Ce("p",{className:i(la({size:R}),"mt-1 text-muted-foreground"),children:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p&&l.length>0&&Ce("div",{className:i(sm()),children:l.map((L,Y)=>Ce("div",{className:i(lm()),children:[Ce("svg",{className:"size-5 shrink-0 text-muted-foreground",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:Ce("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),Ce("span",{className:i(mm({size:R})),children:L.name},void 0,!1,void 0,this),Ce("span",{className:i(dm({size:R})),children:S(L.size)},void 0,!1,void 0,this),Ce("button",{type:"button",onClick:(g)=>{g.stopPropagation(),F(Y)},className:i(pm()),"aria-label":`Remove ${L.name}`,children:Ce("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Ce("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)]},`${L.name}-${Y}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});cm.displayName="FileUpload";import{cva as ny}from"class-variance-authority";import{createContext as sy,forwardRef as Wo,useContext as ly,useId as my}from"react";import{jsxDEV as Kt,Fragment as py}from"react/jsx-dev-runtime";var Be={sm:"sm",md:"md",lg:"lg"},um=sy(null),Er=()=>{let e=ly(um);if(!e)throw Error("useFormField must be used within a FormField");return e},fm=ny("flex flex-col",{variants:{size:{[Be.sm]:"gap-1",[Be.md]:"gap-1.5",[Be.lg]:"gap-2"}},defaultVariants:{size:Be.md}}),gm=Wo(({className:e,size:t=Be.md,error:r,disabled:o=!1,required:a=!1,children:n,...s},l)=>{let m=my(),d=c(t),f={id:m,size:d,error:r,disabled:o,required:a};return Kt(um.Provider,{value:f,children:Kt("div",{ref:l,className:i(fm({size:d}),e),...s,children:n},void 0,!1,void 0,this)},void 0,!1,void 0,this)});gm.displayName="FormField";var dy={[Be.sm]:"text-xs",[Be.md]:"text-sm",[Be.lg]:"text-base"},ym=Wo(({className:e,htmlFor:t,children:r,...o},a)=>{let{id:n,size:s,disabled:l,required:m}=Er();return Kt("label",{ref:a,htmlFor:t??n,className:i("inline-block font-medium text-foreground select-none",dy[s],l&&"cursor-not-allowed opacity-60",e),...o,children:[r,m&&Kt("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});ym.displayName="FormFieldLabel";var vm={[Be.sm]:"text-[10px]",[Be.md]:"text-xs",[Be.lg]:"text-sm"},bm=Wo(({className:e,...t},r)=>{let{id:o,size:a}=Er();return Kt("p",{ref:r,id:`${o}-description`,className:i("text-muted-foreground",vm[a],e),...t},void 0,!1,void 0,this)});bm.displayName="FormFieldDescription";var Tm=Wo(({className:e,children:t,...r},o)=>{let{id:a,size:n,error:s}=Er(),l=t??s;if(!l)return null;return Kt("p",{ref:o,id:`${a}-error`,role:"alert",className:i("text-destructive",vm[n],e),...r,children:l},void 0,!1,void 0,this)});Tm.displayName="FormFieldError";var hm=({children:e})=>{let{id:t,disabled:r,required:o,error:a}=Er(),n=[a?`${t}-error`:void 0,`${t}-description`].filter(Boolean).join(" ");return Kt(py,{children:e({id:t,disabled:r,required:o,status:a?"error":"default","aria-describedby":n||void 0,"aria-invalid":a?!0:void 0})},void 0,!1,void 0,this)};hm.displayName="FormFieldControl";import*as Yt from"@radix-ui/react-hover-card";import{cva as cy}from"class-variance-authority";import{forwardRef as uy}from"react";import{jsxDEV as yy}from"react/jsx-dev-runtime";var Nr={sm:"sm",md:"md",lg:"lg"},Pm=cy("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:{[Nr.sm]:"w-52 p-3 text-xs",[Nr.md]:"w-64 p-4 text-sm",[Nr.lg]:"w-80 p-5 text-sm"}},defaultVariants:{size:Nr.md}}),fy=Yt.Root,gy=Yt.Trigger,xm=uy(({className:e,align:t="center",sideOffset:r=4,size:o=Nr.md,...a},n)=>{let s=c(o);return yy(Yt.Content,{ref:n,align:t,sideOffset:r,className:i(Pm({size:s}),e),...a},void 0,!1,void 0,this)});xm.displayName=Yt.Content.displayName;import{cva as vy}from"class-variance-authority";import{X as by}from"lucide-react";import{forwardRef as Ty,useRef as hy,useState as Py}from"react";import{jsxDEV as Xt}from"react/jsx-dev-runtime";var jr={default:"default",error:"error",success:"success"},J={sm:"sm",md:"md",lg:"lg",xl:"xl"},xy="Clear input",zm=vy("gs-interactive 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:{[jr.default]:"focus-visible:ring-primary",[jr.error]:"border-destructive focus-visible:ring-destructive",[jr.success]:"border-success focus-visible:ring-success"},size:{[J.sm]:"h-8 px-2 text-xs",[J.md]:"h-10 px-3",[J.lg]:"h-11 px-4",[J.xl]:"h-12 px-4 text-base"}},defaultVariants:{status:jr.default,size:J.md}}),Cy={[J.sm]:"pl-7",[J.md]:"pl-9",[J.lg]:"pl-10",[J.xl]:"pl-10"},zy={[J.sm]:"pr-7",[J.md]:"pr-9",[J.lg]:"pr-10",[J.xl]:"pr-10"},Sy={[J.sm]:"pr-12",[J.md]:"pr-16",[J.lg]:"pr-18",[J.xl]:"pr-18"},Ny={[J.sm]:"text-xs left-2",[J.md]:"text-sm left-3",[J.lg]:"text-sm left-3.5",[J.xl]:"text-base left-3.5"},wy={[J.sm]:"text-xs",[J.md]:"text-sm",[J.lg]:"text-sm",[J.xl]:"text-base"},Ry={[J.sm]:"size-4",[J.md]:"size-5",[J.lg]:"size-5",[J.xl]:"size-6"};function Cm(e){if(e===void 0||e===null)return"";if(Array.isArray(e))return e.join("");return String(e)}var Sm=Ty(({className:e,status:t=jr.default,size:r=J.md,fullWidth:o=!1,prefix:a,suffix:n,clearable:s=!1,clearAriaLabel:l=xy,onClear:m,onValueChange:d,disabled:f,readOnly:u,onChange:h,value:p,defaultValue:y,...C},R)=>{let w=Boolean(a),T=Boolean(n),v=c(r),x=hy(null),I=eo(R,x),[S,A]=Py(()=>Cm(y)),z=p!==void 0,D=z?Cm(p):S,W=s&&!f&&!u&&D.length>0,O=T||W,U=T&&W,N=(P)=>{let F=P.target.value;if(!z)A(F);d?.(F),h?.(P)},V=()=>{if(!z)A("");d?.("");let P=x.current;if(P)P.value="",P.dispatchEvent(new Event("input",{bubbles:!0})),P.focus();m?.()};return Xt("div",{className:i("relative flex items-center",o&&"w-full"),children:[w&&Xt("span",{className:i("absolute inset-y-0 flex items-center text-muted-foreground",Ny[v]),children:a},void 0,!1,void 0,this),Xt("input",{ref:I,className:i(zm({status:t,size:v}),w&&Cy[v],U&&Sy[v],!U&&O&&zy[v],e),disabled:f,readOnly:u,onChange:N,value:D,...C},void 0,!1,void 0,this),O&&Xt("span",{className:i("absolute inset-y-0 right-2 flex items-center gap-1 text-muted-foreground",wy[v]),children:[T&&Xt("span",{className:"inline-flex items-center",children:n},void 0,!1,void 0,this),W&&Xt("button",{type:"button","aria-label":l,onMouseDown:(P)=>P.preventDefault(),onClick:V,className:i("gs-interactive 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",Ry[v]),children:Xt(by,{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)});Sm.displayName="Input";import{cva as My}from"class-variance-authority";import{forwardRef as Ly}from"react";function to(){return ma()}import{jsxDEV as Hy}from"react/jsx-dev-runtime";var wr={sm:"sm",md:"md",lg:"lg"},Nm=My("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:{[wr.sm]:"min-w-5 h-5 px-1 text-[10px]",[wr.md]:"min-w-6 h-6 px-1.5 text-xs",[wr.lg]:"min-w-7 h-7 px-2 text-sm"}},defaultVariants:{size:wr.md}}),wm=Ly(({className:e,size:t=wr.md,keys:r,children:o,...a},n)=>{let s=c(t),{isMac:l}=to(),m=r?ro(r,l):o;return Hy("kbd",{ref:n,className:i(Nm({size:s}),e),...a,children:m},void 0,!1,void 0,this)});wm.displayName="Kbd";import{cva as ky}from"class-variance-authority";import{forwardRef as Ay}from"react";import{jsxDEV as Rm}from"react/jsx-dev-runtime";var Rr={sm:"sm",md:"md",lg:"lg"},Mm=ky("inline-block font-medium text-foreground select-none peer-disabled:cursor-not-allowed peer-disabled:opacity-60",{variants:{size:{[Rr.sm]:"text-xs",[Rr.md]:"text-sm",[Rr.lg]:"text-base"}},defaultVariants:{size:Rr.md}}),Lm=Ay(({className:e,size:t=Rr.md,required:r=!1,disabled:o=!1,children:a,...n},s)=>{let l=c(t);return Rm("label",{ref:s,className:i(Mm({size:l}),o&&"cursor-not-allowed opacity-60",e),"aria-disabled":o||void 0,...n,children:[a,r&&Rm("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Lm.displayName="Label";var Iy=dr;import*as Lt from"@radix-ui/react-popover";import{cva as Gy}from"class-variance-authority";import{Check as Wy,ChevronDown as Uy,X as $y}from"lucide-react";import{forwardRef as Ky,useCallback as oo,useEffect as Yy,useRef as Xy,useState as Am}from"react";import*as _e from"@radix-ui/react-popover";import{cva as Vy}from"class-variance-authority";import{forwardRef as Dy}from"react";import{jsxDEV as Hm}from"react/jsx-dev-runtime";var Mr={sm:"sm",md:"md",lg:"lg"},Lr=Vy("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:{[Mr.sm]:"w-56 p-3 text-sm",[Mr.md]:"w-72 p-4 text-sm",[Mr.lg]:"w-96 p-5 text-sm"}},defaultVariants:{size:Mr.md}}),Fy=_e.Root,Oy=_e.Trigger,By=_e.Anchor,_y=_e.Close,km=Dy(({className:e,align:t="center",sideOffset:r=4,portal:o=!0,portalContainer:a,size:n=Mr.md,...s},l)=>{let m=c(n),d=Hm(_e.Content,{ref:l,align:t,sideOffset:r,className:i(Lr({size:m}),e),...s},void 0,!1,void 0,this);if(o)return Hm(_e.Portal,{container:a??void 0,children:d},void 0,!1,void 0,this);return d});km.displayName="PopoverContent";import{jsxDEV as de,Fragment as Jy}from"react/jsx-dev-runtime";var ue={sm:"sm",md:"md",lg:"lg",xl:"xl"},Im=Gy(["gs-interactive 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:{[ue.sm]:"min-h-8 px-2.5 py-1 text-xs",[ue.md]:"min-h-10 px-3.5 py-1.5",[ue.lg]:"min-h-11 px-4.5 py-2 text-sm",[ue.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:ue.md,status:"default"}}),Zy={[ue.sm]:"sm",[ue.md]:"md",[ue.lg]:"lg",[ue.xl]:"lg"},qy={[ue.sm]:"min-h-7.5 py-1.5 px-2.5 text-xs",[ue.md]:"min-h-9 py-2 px-3 text-sm",[ue.lg]:"min-h-10 py-2.5 px-3.5 text-sm",[ue.xl]:"min-h-11 py-3 px-4 text-base"},Uo={[ue.sm]:"size-3.5",[ue.md]:"size-4",[ue.lg]:"size-4",[ue.xl]:"size-4.5"},Vm=Ky(({className:e,options:t,value:r,defaultValue:o=[],onValueChange:a,placeholder:n="Select options...",size:s=ue.md,status:l="default",clearable:m=!1,maxDisplayItems:d=3,disabled:f,...u},h)=>{let p=c(s)??s,[y,C]=Am(!1),[R,w]=Am(o),T=Xy(null),v=r!==void 0,x=v?r:R,I=oo((N)=>{let V=x.includes(N)?x.filter((P)=>P!==N):[...x,N];if(!v)w(V);a?.(V)},[x,v,a]),S=oo((N,V)=>{V.stopPropagation();let P=x.filter((F)=>F!==N);if(!v)w(P);a?.(P)},[x,v,a]),A=oo((N)=>{if(N.stopPropagation(),N.preventDefault(),!v)w([]);a?.([])},[v,a]),z=t.filter((N)=>x.includes(N.value)),D=z.length>0,W=m&&D&&!f,O=oo((N)=>{let V=T.current;if(!V)return;let P=Array.from(V.querySelectorAll('[role="option"]:not([data-disabled])'));if(P.length===0)return;let F=V.querySelector('[role="option"]:focus'),Q=F?P.indexOf(F):-1,L;switch(N){case"first":L=P[0];break;case"last":L=P[P.length-1];break;case"next":L=P[Q+1]??P[0];break;case"prev":L=P[Q-1]??P[P.length-1];break}L?.focus()},[]),U=oo((N)=>{switch(N.key){case"ArrowDown":N.preventDefault(),O("next");break;case"ArrowUp":N.preventDefault(),O("prev");break;case"Home":N.preventDefault(),O("first");break;case"End":N.preventDefault(),O("last");break;case"Escape":N.preventDefault(),C(!1);break}},[O]);return Yy(()=>{if(y)requestAnimationFrame(()=>O("first"))},[y,O]),de(Lt.Root,{open:y,onOpenChange:C,children:[de(Lt.Trigger,{asChild:!0,children:de("button",{ref:h,type:"button",disabled:f,"data-state":y?"open":"closed","data-placeholder":D?void 0:"",className:i(Im({size:p,status:l}),e),...u,children:[de("span",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-1 text-left",children:D?de(Jy,{children:[z.slice(0,d).map((N)=>de(Ho,{variant:"outline",size:Zy[s],removable:!0,onRemove:(V)=>S(N.value,V),className:"max-w-[120px] rounded-[calc(var(--radius)-4px)]",children:de("span",{className:"truncate",children:N.label},void 0,!1,void 0,this)},N.value,!1,void 0,this)),z.length>d&&de("span",{className:"text-muted-foreground text-xs",children:["+",z.length-d]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):de("span",{className:"text-muted-foreground",children:n},void 0,!1,void 0,this)},void 0,!1,void 0,this),de("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[W&&de("span",{role:"button",tabIndex:-1,"aria-label":"Clear all",onMouseDown:(N)=>N.preventDefault(),onClick:A,className:"gs-interactive 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:de($y,{className:Uo[p]},void 0,!1,void 0,this)},void 0,!1,void 0,this),de(Uy,{className:i(Uo[p],"opacity-60 transition-transform duration-200 ease-[cubic-bezier(0.16,1,0.3,1)]",y&&"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),de(Lt.Portal,{children:de(Lt.Content,{ref:T,role:"listbox","aria-multiselectable":"true",align:"start",sideOffset:4,onKeyDown:U,onOpenAutoFocus:(N)=>N.preventDefault(),className:i(Lr(),"max-h-96 w-[var(--radix-popover-trigger-width)] overflow-y-auto overflow-x-hidden p-1"),children:[t.map((N)=>{let V=x.includes(N.value);return de("div",{role:"option",tabIndex:N.disabled?void 0:-1,"aria-selected":V,"aria-disabled":N.disabled||void 0,"data-disabled":N.disabled?"":void 0,className:i("gs-interactive 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:opacity-50",qy[p]),onClick:()=>!N.disabled&&I(N.value),onKeyDown:(P)=>{if(P.key==="Enter"||P.key===" "){if(P.preventDefault(),!N.disabled)I(N.value)}},children:[de("span",{className:i("flex shrink-0 items-center justify-center",Uo[p]),children:V&&de(Wy,{className:Uo[p]},void 0,!1,void 0,this)},void 0,!1,void 0,this),de("span",{className:"min-w-0 flex-1 truncate",children:N.label},void 0,!1,void 0,this)]},N.value,!0,void 0,this)}),t.length===0&&de("div",{className:"px-3 py-6 text-center text-muted-foreground text-sm",children:"No options available"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Vm.displayName="Multiselect";import*as ne from"@radix-ui/react-navigation-menu";import{cva as Zt}from"class-variance-authority";import{createContext as Qy,forwardRef as Hr,useContext as Ey}from"react";import{jsxDEV as Ie}from"react/jsx-dev-runtime";var Je={sm:"sm",md:"md",lg:"lg"},Dm=Qy(Je.md),Fm=Zt("relative z-10 flex max-w-max flex-1 items-center justify-center"),Om=Zt("group flex flex-1 list-none items-center justify-center space-x-1"),Bm=Zt(["group inline-flex w-max items-center justify-center rounded-md bg-background font-medium","gs-interactive","hover:bg-accent hover:text-accent-foreground","focus:bg-accent focus:text-accent-foreground focus:outline-none","disabled:pointer-events-none disabled:opacity-50","data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"],{variants:{size:{[Je.sm]:"h-8 px-3 py-1.5 text-xs",[Je.md]:"h-10 px-4 py-2 text-sm",[Je.lg]:"h-12 px-5 py-2.5 text-sm"}},defaultVariants:{size:Je.md}}),_m=Zt(["left-0 top-0 w-full","data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out","data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out","data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52","data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52","md:absolute md:w-auto"]),jy=Zt(["block select-none space-y-1 rounded-md leading-none no-underline outline-none","gs-interactive","hover:bg-accent hover:text-accent-foreground","focus:bg-accent focus:text-accent-foreground"],{variants:{size:{[Je.sm]:"p-2 text-xs",[Je.md]:"p-3 text-sm",[Je.lg]:"p-4 text-sm"}},defaultVariants:{size:Je.md}}),Gm=Zt(["origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg","gs-float-content","transition-[width,height] duration-300 ease-[var(--motion-ease-emphasized)]","md:w-[var(--radix-navigation-menu-viewport-width)]"]),Wm=Zt(["top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden","data-[state=visible]:animate-in data-[state=hidden]:animate-out","data-[state=hidden]:fade-out data-[state=visible]:fade-in"]),ev=()=>Ie("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-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true",children:Ie("path",{d:"m6 9 6 6 6-6"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Um=Hr(({className:e,children:t,size:r,...o},a)=>{let n=c(r??Je.md);return Ie(Dm.Provider,{value:n,children:Ie(ne.Root,{ref:a,className:i(Fm(),e),...o,children:[t,Ie(da,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Um.displayName=ne.Root.displayName;var $m=Hr(({className:e,...t},r)=>Ie(ne.List,{ref:r,className:i(Om(),e),...t},void 0,!1,void 0,this));$m.displayName=ne.List.displayName;var tv=ne.Item,Km=Hr(({className:e,children:t,...r},o)=>{let a=Ey(Dm);return Ie(ne.Trigger,{ref:o,className:i(Bm({size:a}),"group",e),...r,children:[t,Ie(ev,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Km.displayName=ne.Trigger.displayName;var Ym=Hr(({className:e,...t},r)=>Ie(ne.Content,{ref:r,className:i(_m(),e),...t},void 0,!1,void 0,this));Ym.displayName=ne.Content.displayName;var rv=ne.Link,da=Hr(({className:e,...t},r)=>Ie("div",{className:"absolute top-full left-0 flex justify-center",children:Ie(ne.Viewport,{className:i(Gm(),e),ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));da.displayName=ne.Viewport.displayName;var Xm=Hr(({className:e,...t},r)=>Ie(ne.Indicator,{ref:r,className:i(Wm(),e),...t,children:Ie("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"},void 0,!1,void 0,this)},void 0,!1,void 0,this));Xm.displayName=ne.Indicator.displayName;import{cva as kr}from"class-variance-authority";import{Fragment as ov,forwardRef as iv,useCallback as qt,useEffect as Zm,useMemo as qm,useRef as av,useState as Jm}from"react";import{jsxDEV as Jt}from"react/jsx-dev-runtime";var Qt={sm:"sm",md:"md",lg:"lg",xl:"xl"},ao={default:"default",error:"error",success:"success"},io={single:"single",first:"first",middle:"middle",last:"last"},Qm=kr("relative inline-flex items-center",{variants:{size:{sm:"gap-1",md:"gap-1.5",lg:"gap-2",xl:"gap-2.5"}},defaultVariants:{size:Qt.md}}),Em=kr("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:Qt.md,status:ao.default}}),jm=kr(["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:Qt.md,filled:!1,focused:!1,status:ao.default,disabled:!1,position:io.single}}),ed=kr(["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:Qt.md,status:ao.default,filled:!1}}),td=kr(["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:Qt.md,focused:!1}}),rd=kr("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:Qt.md}});function nv(e){if(!Number.isFinite(e))return 6;return Math.max(1,Math.floor(e))}function pa(e,t){let r=(e??"").split("").slice(0,t);if(r.length<t)return r.concat(Array(t-r.length).fill(""));return r}var od=iv(({className:e,length:t=6,value:r,onChange:o,onComplete:a,size:n=Qt.md,status:s=ao.default,disabled:l=!1,autoFocus:m=!1,mask:d=!1,groupSize:f,separator:u,separatorChar:h="—",placeholder:p="•",inputMode:y="numeric",pattern:C="[0-9]*",...R},w)=>{let T=c(n),v=nv(t),x=av([]),[I,S]=Jm(null),[A,z]=Jm(()=>pa(r,v));Zm(()=>{if(r!==void 0){z(pa(r,v));return}z((g)=>pa(g.join(""),v))},[r,v]),Zm(()=>{if(m)x.current[0]?.focus()},[m]);let D=qm(()=>{if(typeof f==="number"&&Number.isFinite(f)){let g=Math.floor(f);if(g<=0)return v;return Math.min(v,Math.max(1,g))}if(typeof u==="number"&&Number.isFinite(u)){let g=Math.floor(u);if(g<=0)return v;return Math.min(v,Math.max(1,g))}if(u)return Math.max(1,Math.floor(v/2));return v},[f,v,u]),W=qm(()=>{let g=[];for(let b=0;b<v;b+=D){let M=Math.min(b+D,v),E=[];for(let Z=b;Z<M;Z+=1)E.push(Z);g.push(E)}return g},[D,v]),O=qt((g)=>{let b=x.current[g];if(!b)return;b.focus(),b.select()},[]),U=qt((g)=>{z(g);let b=g.join("");if(o?.(b),g.every((M)=>M!=="")&&b.length===v)a?.(b)},[o,a,v]),N=qt((g,b)=>{if(l)return;let E=(y==="numeric"?b.replace(/\D/g,""):b).slice(-1),Z=[...A];if(Z[g]=E,U(Z),E&&g<v-1)O(g+1)},[A,l,U,O,y,v]),V=qt((g,b)=>{if(l)return;if(b.key==="Backspace"){if(b.preventDefault(),A[g]){let M=[...A];M[g]="",U(M);return}if(g>0){let M=[...A];M[g-1]="",U(M),O(g-1)}return}if(b.key==="Delete"){if(b.preventDefault(),A[g]){let M=[...A];M[g]="",U(M)}return}if(b.key==="ArrowLeft"){if(b.preventDefault(),g>0)O(g-1);return}if(b.key==="ArrowRight"){if(b.preventDefault(),g<v-1)O(g+1);return}if(b.key==="Home"){b.preventDefault(),O(0);return}if(b.key==="End")b.preventDefault(),O(v-1)},[A,l,U,O,v]),P=qt((g,b)=>{if(b.preventDefault(),l)return;let M=b.clipboardData.getData("text"),Z=(y==="numeric"?M.replace(/\D/g,""):M.replace(/\s/g,"")).split("");if(Z.length===0)return;let Se=[...A];for(let H=0;H<Z.length;H+=1){let re=g+H;if(re>=v)break;Se[re]=Z[H]??""}U(Se);let j=Math.min(v-1,g+Z.length-1);if(j<v-1){O(j+1);return}x.current[j]?.blur()},[A,l,U,O,y,v]),F=qt((g,b)=>{S(g),b.target.select()},[]),Q=qt(()=>{S(null)},[]),L=u!==void 0,Y=h.length>0&&u!==!1&&(L||W.length>1);return Jt("div",{ref:w,className:i(Qm({size:T}),e),role:"group","aria-label":"One-time password input",...R,children:W.map((g,b)=>Jt(ov,{children:[Jt("div",{"data-gs-otp-group":"true",className:i(Em({size:T,status:s})),children:g.map((M,E)=>{let Z=A[M]??"",Se=I===M,j=io.middle;if(g.length===1)j=io.single;else if(E===0)j=io.first;else if(E===g.length-1)j=io.last;return Jt("div",{"data-gs-otp-slot":"true","data-disabled":l,className:i(jm({size:T,filled:Boolean(Z),focused:Se,status:s,disabled:l,position:j})),children:[Jt("input",{ref:(H)=>{x.current[M]=H},type:d?"password":"text",inputMode:y,pattern:C,maxLength:1,value:Z,placeholder:"",disabled:l,"aria-invalid":s===ao.error,"aria-label":`Digit ${M+1} of ${v}`,autoComplete:"one-time-code",onChange:(H)=>N(M,H.target.value),onKeyDown:(H)=>V(M,H),onPaste:(H)=>P(M,H),onFocus:(H)=>F(M,H),onBlur:Q,className:i(ed({size:T,status:s,filled:Boolean(Z)}))},void 0,!1,void 0,this),!Z&&Jt("div",{"data-gs-otp-placeholder":"true","aria-hidden":"true",className:i(td({size:T,focused:Se})),children:p},void 0,!1,void 0,this)]},`slot-${M}`,!0,void 0,this)})},void 0,!1,void 0,this),Y&&b<W.length-1&&Jt("span",{"data-gs-otp-separator":"true",className:i(rd({size:T})),children:h},void 0,!1,void 0,this)]},`group-${g[0]}-${g[g.length-1]}`,!0,void 0,this))},void 0,!1,void 0,this)});od.displayName="OTPInput";import{createContext as cv,useCallback as Ar,useContext as uv,useMemo as fv,useState as gv}from"react";import*as le from"@radix-ui/react-dialog";import{cva as id}from"class-variance-authority";import{X as sv}from"lucide-react";import{forwardRef as $o}from"react";import{jsxDEV as Qe}from"react/jsx-dev-runtime";var Ve={top:"top",right:"right",bottom:"bottom",left:"left"},ae={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},lv={[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"},mv={[Ve.right]:{[ae.sm]:"sm:max-w-sm",[ae.md]:"sm:max-w-md",[ae.lg]:"sm:max-w-lg",[ae.xl]:"sm:max-w-xl",[ae.full]:"sm:max-w-full"},[Ve.left]:{[ae.sm]:"sm:max-w-sm",[ae.md]:"sm:max-w-md",[ae.lg]:"sm:max-w-lg",[ae.xl]:"sm:max-w-xl",[ae.full]:"sm:max-w-full"},[Ve.top]:{[ae.sm]:"sm:max-h-[30vh]",[ae.md]:"sm:max-h-[50vh]",[ae.lg]:"sm:max-h-[70vh]",[ae.xl]:"sm:max-h-[85vh]",[ae.full]:"sm:max-h-full"},[Ve.bottom]:{[ae.sm]:"sm:max-h-[30vh]",[ae.md]:"sm:max-h-[50vh]",[ae.lg]:"sm:max-h-[70vh]",[ae.xl]:"sm:max-h-[85vh]",[ae.full]:"sm:max-h-full"}},ad=id("gs-sheet-overlay fixed inset-0 z-50 bg-black/50"),nd=id("fixed z-50 flex flex-col gap-4 border border-border bg-background 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}}),ca=le.Root,dv=le.Trigger,pv=le.Close,sd=le.Portal,ua=$o(({className:e,...t},r)=>Qe(le.Overlay,{className:i(ad(),e),...t,ref:r},void 0,!1,void 0,this));ua.displayName=le.Overlay.displayName;var Ko=$o(({side:e="right",size:t=ae.md,showClose:r=!0,className:o,children:a,...n},s)=>{let l=c(t)??ae.md,m=lv[e],d=mv[e][l];return Qe(sd,{children:[Qe(ua,{},void 0,!1,void 0,this),Qe(le.Content,{ref:s,className:i(nd({side:e}),m,d,o),...n,children:[a,r&&Qe(le.Close,{className:"gs-interactive 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",children:[Qe(sv,{className:"size-4"},void 0,!1,void 0,this),Qe("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)});Ko.displayName=le.Content.displayName;var ld=({className:e,...t})=>Qe("div",{className:i("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);ld.displayName="SheetHeader";var md=({className:e,...t})=>Qe("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);md.displayName="SheetFooter";var dd=$o(({className:e,...t},r)=>Qe(le.Title,{ref:r,className:i("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));dd.displayName=le.Title.displayName;var pd=$o(({className:e,...t},r)=>Qe(le.Description,{ref:r,className:i("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));pd.displayName=le.Description.displayName;import{jsxDEV as yt}from"react/jsx-dev-runtime";var fa=0;function yv(){return fa=(fa+1)%Number.MAX_SAFE_INTEGER,`overlay-${fa}-${Date.now()}`}var ud=cv(null),cd=400;function fd({children:e}){let[t,r]=gv([]),o=Ar((d)=>{r((f)=>f.map((u)=>u.id===d?{...u,open:!1}:u)),setTimeout(()=>{r((f)=>f.filter((u)=>u.id!==d))},cd)},[]),a=Ar(()=>{r((d)=>d.map((f)=>({...f,open:!1}))),setTimeout(()=>{r([])},cd)},[]),n=Ar((d,f,u,h={})=>{let p=yv(),y=(w)=>{return yt(f,{...u,close:w.close},void 0,!1,void 0,this)};y.displayName=`OverlayWrapper(${f.displayName??f.name??"Component"})`;let C={id:p,type:d,component:y,wrapperProps:h,open:!0};return r((w)=>[...w,C]),{id:p,close:()=>o(p)}},[o]),s=Ar((d,f,u)=>{return n("dialog",d,f,u)},[n]),l=Ar((d,f,u)=>{return n("sheet",d,f,u)},[n]),m=fv(()=>({dialog:s,sheet:l,close:o,closeAll:a}),[s,l,o,a]);return yt(ud.Provider,{value:m,children:[e,t.map((d)=>yt(vv,{entry:d,onClose:o},d.id,!1,void 0,this))]},void 0,!0,void 0,this)}fd.displayName="OverlayProvider";function vv({entry:e,onClose:t}){let{id:r,type:o,component:a,wrapperProps:n,open:s}=e,l=Ar(()=>t(r),[r,t]);if(o==="dialog"){let{showClose:m,size:d,...f}=n;return yt(ra,{open:s,onOpenChange:(u)=>!u&&l(),children:yt(Bo,{showClose:m,size:d,...f,children:yt(a,{close:l},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}if(o==="sheet"){let{side:m,showClose:d,...f}=n;return yt(ca,{open:s,onOpenChange:(u)=>!u&&l(),children:yt(Ko,{side:m,showClose:d,...f,children:yt(a,{close:l},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}return null}function bv(){let e=uv(ud);if(!e)throw Error("useOverlay must be used within an OverlayProvider");return e}import{cva as no}from"class-variance-authority";import{ChevronLeft as Tv,ChevronRight as hv,MoreHorizontal as Pv}from"lucide-react";import{createContext as xv,forwardRef as so,useContext as Yo}from"react";import{jsxDEV as He}from"react/jsx-dev-runtime";var Ge={sm:"sm",md:"md",lg:"lg"},lo=xv(Ge.md),gd=no("mx-auto flex w-full justify-center"),yd=no("flex flex-row items-center gap-1"),vd=no(""),Xo=no("gs-interactive 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:opacity-50 hover:bg-accent hover:text-accent-foreground",{variants:{isActive:{true:"border border-border bg-background shadow-[var(--shadow-sm)]",false:""},size:{[Ge.sm]:"h-7 w-7 text-xs [&_svg]:size-3.5",[Ge.md]:"h-9 w-9 text-sm [&_svg]:size-4",[Ge.lg]:"h-10 w-10 text-sm [&_svg]:size-5"}},defaultVariants:{isActive:!1,size:Ge.md}}),bd=no("flex items-center justify-center",{variants:{size:{[Ge.sm]:"h-7 w-7 [&_svg]:size-3.5",[Ge.md]:"h-9 w-9 [&_svg]:size-4",[Ge.lg]:"h-10 w-10 [&_svg]:size-5"}},defaultVariants:{size:Ge.md}}),Td=({className:e,size:t=Ge.md,...r})=>{let o=c(t)??Ge.md;return He(lo.Provider,{value:o,children:He("nav",{"aria-label":"pagination",className:i(gd(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)};Td.displayName="Pagination";var hd=so(({className:e,...t},r)=>He("ul",{ref:r,className:i(yd(),e),...t},void 0,!1,void 0,this));hd.displayName="PaginationContent";var Pd=so(({className:e,...t},r)=>He("li",{ref:r,className:i(vd(),e),...t},void 0,!1,void 0,this));Pd.displayName="PaginationItem";var xd=so(({className:e,isActive:t,...r},o)=>{let a=Yo(lo);return He("button",{ref:o,type:"button","aria-current":t?"page":void 0,className:i(Xo({isActive:t,size:a}),e),...r},void 0,!1,void 0,this)});xd.displayName="PaginationLink";var Cd=so(({className:e,...t},r)=>{let o=Yo(lo);return He("button",{ref:r,type:"button","aria-label":"Go to previous page",className:i(Xo({size:o}),"gap-1 pl-2.5 pr-3 w-auto",e),...t,children:[He(Tv,{},void 0,!1,void 0,this),He("span",{children:"Previous"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Cd.displayName="PaginationPrevious";var zd=so(({className:e,...t},r)=>{let o=Yo(lo);return He("button",{ref:r,type:"button","aria-label":"Go to next page",className:i(Xo({size:o}),"gap-1 pl-3 pr-2.5 w-auto",e),...t,children:[He("span",{children:"Next"},void 0,!1,void 0,this),He(hv,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});zd.displayName="PaginationNext";var Sd=({className:e,...t})=>{let r=Yo(lo);return He("span",{"aria-hidden":!0,className:i(bd({size:r}),e),...t,children:[He(Pv,{},void 0,!1,void 0,this),He("span",{className:"sr-only",children:"More pages"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};Sd.displayName="PaginationEllipsis";import*as co from"@radix-ui/react-progress";import{cva as Nd}from"class-variance-authority";import{forwardRef as Cv}from"react";import{jsxDEV as Zo}from"react/jsx-dev-runtime";var mo={sm:"sm",md:"md",lg:"lg",xl:"xl"},po={default:"default",success:"success",warning:"warning",error:"error"},wd=Nd("relative w-full overflow-hidden rounded-full bg-muted",{variants:{size:{[mo.sm]:"h-1",[mo.md]:"h-2.5",[mo.lg]:"h-4",[mo.xl]:"h-5"}},defaultVariants:{size:mo.md}}),Rd=Nd("h-full w-full flex-1 rounded-full transition-transform duration-100 ease-out",{variants:{variant:{[po.default]:"bg-primary",[po.success]:"bg-success",[po.warning]:"bg-warning",[po.error]:"bg-destructive"}},defaultVariants:{variant:po.default}}),Md=Cv(({className:e,value:t,size:r,variant:o,showValue:a,...n},s)=>{let l=c(r);return Zo("div",{className:"flex w-full items-center gap-2",children:[Zo(co.Root,{ref:s,className:i(wd({size:l}),e),...n,children:Zo(co.Indicator,{className:i(Rd({variant:o})),style:{transform:`translateX(-${100-(t||0)}%)`}},void 0,!1,void 0,this)},void 0,!1,void 0,this),a&&Zo("span",{className:"font-medium text-muted-foreground text-sm tabular-nums",children:[t,"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Md.displayName=co.Root.displayName;import*as Vr from"@radix-ui/react-radio-group";import{cva as Ld}from"class-variance-authority";import{forwardRef as Hd}from"react";import{jsxDEV as qo}from"react/jsx-dev-runtime";var Ee={sm:"sm",md:"md",lg:"lg",xl:"xl"},Ir={default:"default",error:"error",success:"success"},kd=Ld("grid gap-2"),Ad=Ld("gs-interactive 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:{[Ee.sm]:"h-4 w-4",[Ee.md]:"h-5 w-5",[Ee.lg]:"h-6 w-6",[Ee.xl]:"h-7 w-7"},status:{[Ir.default]:"enabled:hover:border-primary/70",[Ir.error]:"border-destructive enabled:hover:border-destructive/70 focus-visible:ring-destructive data-[state=checked]:border-destructive data-[state=checked]:text-destructive",[Ir.success]:"border-success enabled:hover:border-success/70 focus-visible:ring-success data-[state=checked]:border-success data-[state=checked]:text-success"}},defaultVariants:{size:Ee.md,status:Ir.default}}),zv={[Ee.sm]:"h-2 w-2",[Ee.md]:"h-2.5 w-2.5",[Ee.lg]:"h-3 w-3",[Ee.xl]:"h-3.5 w-3.5"},Id=Hd(({className:e,...t},r)=>qo(Vr.Root,{ref:r,className:i(kd(),e),...t},void 0,!1,void 0,this));Id.displayName="RadioGroup";var Vd=Hd(({className:e,size:t=Ee.md,status:r=Ir.default,...o},a)=>{let n=c(t);return qo(Vr.Item,{ref:a,className:i(Ad({size:n,status:r}),e),...o,children:qo(Vr.Indicator,{className:"flex items-center justify-center",children:qo("span",{className:i("block rounded-full bg-current transition-transform duration-150",zv[n])},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Vd.displayName="RadioGroupItem";import{cva as Eo}from"class-variance-authority";import{forwardRef as ga,useCallback as Jo,useRef as Sv,useState as Nv}from"react";import{jsxDEV as Qo}from"react/jsx-dev-runtime";var Dd=Eo("flex h-full w-full",{variants:{direction:{horizontal:"flex-row",vertical:"flex-col"}},defaultVariants:{direction:"horizontal"}}),Fd=Eo("relative overflow-hidden"),Od=Eo("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}}),Bd=Eo("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"}}),_d=ga(({className:e,direction:t="horizontal",children:r,...o},a)=>Qo("div",{ref:a,"data-panel-group":"","data-direction":t,className:i(Dd({direction:t}),e),...o,children:r},void 0,!1,void 0,this));_d.displayName="ResizablePanelGroup";var Gd=ga(({className:e,defaultSize:t=50,children:r,style:o,...a},n)=>Qo("div",{ref:n,"data-panel":"",className:i(Fd(),e),style:{...o,flexGrow:0,flexShrink:0,flexBasis:`${t}%`},...a,children:r},void 0,!1,void 0,this));Gd.displayName="ResizablePanel";var Wd=ga(({className:e,withHandle:t=!1,disabled:r=!1,...o},a)=>{let[n,s]=Nv(!1),l=Sv(null),m=Jo((p,y)=>{if(r)return;s(!0);let C=(w)=>{let T="touches"in w?w.touches[0]:null,v=T?T.clientX:w.clientX,x=T?T.clientY:w.clientY,I=l.current;if(!I)return;let S=I.closest("[data-panel-group]");if(!S)return;let A=S.dataset.direction,z=S.getBoundingClientRect(),D=Array.from(S.querySelectorAll(":scope > [data-panel]")),W=Array.from(S.children).indexOf(I),O,U;for(let N of D){let V=Array.from(S.children).indexOf(N);if(V<W)O=N;if(V>W&&!U)U=N}if(O&&U){let N=A==="horizontal"?z.width:z.height,P=(A==="horizontal"?v-z.left:x-z.top)/N*100,F=Math.max(10,Math.min(90,P)),Q=100-F;O.style.flexBasis=`${F}%`,U.style.flexBasis=`${Q}%`}},R=()=>{s(!1),document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",R),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",R)};document.addEventListener("mousemove",C),document.addEventListener("mouseup",R),document.addEventListener("touchmove",C),document.addEventListener("touchend",R)},[r]),d=Jo((p)=>{p.preventDefault(),m(p.clientX,p.clientY)},[m]),f=Jo((p)=>{let y=p.touches[0];if(y)m(y.clientX,y.clientY)},[m]),u=Jo((p)=>{if(r)return;let y=l.current??p.currentTarget,C=y.closest("[data-panel-group]");if(!C)return;let R=C.dataset.direction,w=p.shiftKey?10:1,T=Array.from(C.querySelectorAll(":scope > [data-panel]")),v=Array.from(C.children).indexOf(y),x,I;for(let z of T){let D=Array.from(C.children).indexOf(z);if(D<v)x=z;if(D>v&&!I)I=z}if(!(x&&I))return;let S=Number.parseFloat(x.style.flexBasis)||50,A=0;if(R==="horizontal"){if(p.key==="ArrowLeft")A=-w;if(p.key==="ArrowRight")A=w}else{if(p.key==="ArrowUp")A=-w;if(p.key==="ArrowDown")A=w}if(A!==0){p.preventDefault();let z=Math.max(10,Math.min(90,S+A));x.style.flexBasis=`${z}%`,I.style.flexBasis=`${100-z}%`}},[r]),h="horizontal";return Qo("div",{ref:(p)=>{if(l.current=p,typeof a==="function")a(p);else if(a)a.current=p},role:"separator","aria-orientation":"horizontal",tabIndex:r?-1:0,"data-panel-resize-handle":"","data-dragging":n,onMouseDown:d,onTouchStart:f,onKeyDown:u,className:i(Od({direction:"horizontal",withHandle:t}),n&&"bg-primary",r&&"pointer-events-none opacity-50",e),...o,children:t&&Qo("div",{className:i(Bd({direction:"horizontal"}))},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Wd.displayName="ResizableHandle";import*as it from"@radix-ui/react-scroll-area";import{cva as ya}from"class-variance-authority";import{forwardRef as Ud}from"react";import{jsxDEV as Dr}from"react/jsx-dev-runtime";var $d=ya("relative overflow-hidden"),wv={display:"flex",flexDirection:"column"},Rv={flex:"1 1 0%",minHeight:0},Kd=ya("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"}}),Yd=ya("relative flex-1 rounded-full bg-border"),Xd=Ud(({className:e,children:t,style:r,...o},a)=>Dr(it.Root,{ref:a,className:i($d(),e),style:{...r,...wv},...o,children:[Dr(it.Viewport,{className:"w-full rounded-[inherit]",style:Rv,children:t},void 0,!1,void 0,this),Dr(va,{},void 0,!1,void 0,this),Dr(it.Corner,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this));Xd.displayName="ScrollArea";var va=Ud(({className:e,orientation:t="vertical",...r},o)=>Dr(it.ScrollAreaScrollbar,{ref:o,orientation:t,className:i(Kd({orientation:t}),e),...r,children:Dr(it.ScrollAreaThumb,{className:i(Yd())},void 0,!1,void 0,this)},void 0,!1,void 0,this));va.displayName="ScrollBar";import{cva as Ta}from"class-variance-authority";import{createContext as Mv,forwardRef as ha,useCallback as Zd,useContext as Qd,useEffect as ba,useLayoutEffect as Lv,useRef as qd,useState as Jd}from"react";import{jsxDEV as Et}from"react/jsx-dev-runtime";var fe={sm:"sm",md:"md",lg:"lg"},Ed=Ta("relative inline-flex items-center rounded-[var(--radius)] border border-border bg-muted/50 p-1 text-muted-foreground",{variants:{size:{[fe.sm]:"h-8 gap-0.5",[fe.md]:"h-10 gap-0.5",[fe.lg]:"h-11 gap-1"}},defaultVariants:{size:fe.md}}),jd=Ta(["relative z-10 inline-flex items-center justify-center rounded-[calc(var(--radius)-2px)]","cursor-pointer outline-none select-none","transition-[color] duration-150","focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:text-muted-foreground/40"],{variants:{size:{[fe.sm]:"size-6",[fe.md]:"size-8",[fe.lg]:"size-9"},active:{true:"text-foreground",false:"text-muted-foreground hover:text-foreground/70"}},defaultVariants:{size:fe.md,active:!1}}),ep=Ta(["relative z-10 inline-flex items-center justify-center gap-1.5 rounded-[calc(var(--radius)-2px)]","cursor-pointer outline-none select-none whitespace-nowrap font-medium","transition-[color] duration-150","focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:text-muted-foreground/40"],{variants:{size:{[fe.sm]:"h-6 px-2.5 text-xs",[fe.md]:"h-8 px-3 text-sm",[fe.lg]:"h-9 px-4 text-sm"},active:{true:"text-foreground",false:"text-muted-foreground hover:text-foreground/70"}},defaultVariants:{size:fe.md,active:!1}}),tp={[fe.sm]:"size-3",[fe.md]:"size-3.5",[fe.lg]:"size-4"},Pa=Mv({activeValue:"",onSelect:()=>{},size:fe.md,disabled:!1}),Hv=typeof window<"u"?Lv:ba,rp=ha(({className:e,value:t,defaultValue:r,onValueChange:o,size:a,disabled:n=!1,children:s,...l},m)=>{let d=c(a),f=qd(null),[u,h]=Jd(r??""),[p,y]=Jd(null),C=qd(!0),R=t!==void 0?t:u,w=Zd((v)=>{if(n)return;if(t===void 0)h(v);o?.(v)},[n,t,o]),T=Zd(()=>{let v=f.current;if(!v)return;let x=v.querySelector('[data-state="active"]');if(!x){y(null);return}let I=v.getBoundingClientRect(),S=x.getBoundingClientRect();y({left:S.left-I.left,width:S.width})},[]);return Hv(()=>{T()},[T,R]),ba(()=>{if(C.current)requestAnimationFrame(()=>{C.current=!1})},[]),ba(()=>{let v=f.current;if(!v)return;let x=new MutationObserver(()=>{T()});return x.observe(v,{attributes:!0,attributeFilter:["data-state"],subtree:!0}),()=>x.disconnect()},[T]),Et(Pa.Provider,{value:{activeValue:R,onSelect:w,size:d,disabled:n},children:Et("div",{ref:(v)=>{if(f.current=v,typeof m==="function")m(v);else if(m)m.current=v},role:"radiogroup",className:i(Ed({size:d}),n&&"opacity-50 pointer-events-none",e),...l,children:[p&&Et("span",{"aria-hidden":"true",className:i("absolute rounded-[calc(var(--radius)-2px)] bg-background shadow-sm",!C.current&&"transition-[left,width] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-emphasized)]"),style:{left:p.left,width:p.width,top:"4px",bottom:"4px"}},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});rp.displayName="SegmentedControl";var op=ha(({className:e,value:t,icon:r,disabled:o=!1,...a},n)=>{let{activeValue:s,onSelect:l,size:m,disabled:d}=Qd(Pa),f=s===t,u=o||d;return Et("button",{ref:n,type:"button",role:"radio","aria-checked":f,"aria-disabled":u||void 0,"data-state":f?"active":"inactive","data-value":t,disabled:u,onClick:()=>l(t),className:i(jd({size:m,active:f}),e),...a,children:Et("span",{className:i(tp[m??fe.md],"[&>svg]:size-full"),children:r},void 0,!1,void 0,this)},void 0,!1,void 0,this)});op.displayName="SegmentedControlItem";var ip=ha(({className:e,value:t,icon:r,disabled:o=!1,children:a,...n},s)=>{let{activeValue:l,onSelect:m,size:d,disabled:f}=Qd(Pa),u=l===t,h=o||f;return Et("button",{ref:s,type:"button",role:"radio","aria-checked":u,"aria-disabled":h||void 0,"data-state":u?"active":"inactive","data-value":t,disabled:h,onClick:()=>m(t),className:i(ep({size:d,active:u}),e),...n,children:[r&&Et("span",{className:i(tp[d??fe.md],"[&>svg]:size-full"),children:r},void 0,!1,void 0,this),a]},void 0,!0,void 0,this)});ip.displayName="SegmentedControlLabelItem";import*as Ht from"@radix-ui/react-popover";import{cva as np}from"class-variance-authority";import{Check as kv,ChevronDown as Av,X as Iv}from"lucide-react";import{Children as Vv,createContext as Dv,forwardRef as go,isValidElement as Fv,useCallback as jo,useContext as sp,useEffect as ei,useId as ap,useMemo as Ov,useRef as lp,useState as uo}from"react";import{jsxDEV as se,Fragment as Kv}from"react/jsx-dev-runtime";var te={sm:"sm",md:"md",lg:"lg",xl:"xl"},Fr={default:"default",error:"error",success:"success"},fo={trigger:"trigger",auto:"auto"},Bv={start:"start",center:"center",end:"end"},mp=np(["gs-interactive 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:{[te.sm]:"h-8 px-2.5 text-xs",[te.md]:"h-10 px-3.5",[te.lg]:"h-11 px-4.5 text-sm",[te.xl]:"h-12 px-4 text-base"},status:{[Fr.default]:"focus-visible:ring-primary data-[state=open]:ring-primary",[Fr.error]:"border-destructive focus-visible:ring-destructive data-[state=open]:ring-destructive",[Fr.success]:"border-success focus-visible:ring-success data-[state=open]:ring-success"}},defaultVariants:{size:te.md,status:Fr.default}}),dp=np(["max-h-96 overflow-y-auto overflow-x-hidden"].join(" "),{variants:{widthMode:{[fo.trigger]:"w-[var(--radix-popover-trigger-width)]",[fo.auto]:"w-max min-w-0"},size:{[te.sm]:"text-xs",[te.md]:"text-sm",[te.lg]:"text-sm",[te.xl]:"text-base"}},defaultVariants:{widthMode:fo.auto,size:te.md}}),_v={[te.sm]:"min-h-7.5 py-1.5 px-2.5 pr-3 text-xs",[te.md]:"min-h-9 py-2 px-3 pr-4.5 text-sm",[te.lg]:"min-h-10 py-2.5 px-3.5 pr-5.5 text-sm",[te.xl]:"min-h-11 py-3 px-4 pr-6 text-base"},Gv={[te.sm]:"px-2 py-1 text-xs",[te.md]:"px-2 py-1.5 text-sm",[te.lg]:"px-2.5 py-1.5 text-sm",[te.xl]:"px-3 py-2 text-base"},ti={[te.sm]:"size-3.5",[te.md]:"size-4",[te.lg]:"size-4",[te.xl]:"size-4.5"};function xa(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)=>xa(t)).join("");if(Fv(e))return xa(e.props.children);return""}var Ca=Dv(null);function ri(){let e=sp(Ca);if(!e)throw Error("Select components must be used within Select");return e}function za(e){let t=sp(Ca);if(e)return e;return t?.triggerSize??te.md}var Wv=({children:e,value:t,defaultValue:r="",onValueChange:o,open:a,defaultOpen:n=!1,onOpenChange:s,disabled:l=!1})=>{let[m,d]=uo(te.md),[f,u]=uo(!1),[h,p]=uo(r),[y,C]=uo(n),[R,w]=uo(0),T=lp(new Map),v=t!==void 0,x=a!==void 0,I=v?t:h,S=x?a:y,A=jo((V)=>{if(!v)p(V);if(o?.(V),!x)C(!1);s?.(!1)},[v,x,o,s]),z=jo((V)=>{if(l)return;if(!x)C(V);s?.(V)},[l,x,s]),D=jo((V,P)=>{if(T.current.get(V)!==P)T.current.set(V,P),w((Q)=>Q+1)},[]),W=jo((V)=>{return T.current.get(V)},[]),O=ap(),U=ap(),N=Ov(()=>({value:I,onValueChange:A,open:S,onOpenChange:z,triggerSize:m,setTriggerSize:d,triggerFullWidth:f,setTriggerFullWidth:u,disabled:l,triggerId:O,contentId:U,registerItem:D,getLabel:W}),[I,A,S,z,m,f,l,O,U,D,W,R]);return se(Ca.Provider,{value:N,children:se(Ht.Root,{open:S,onOpenChange:z,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},Uv=({children:e,className:t})=>se("div",{role:"group",className:t,children:e},void 0,!1,void 0,this),$v=({placeholder:e})=>{let{value:t,getLabel:r}=ri();if(!t)return e?se("span",{className:"text-muted-foreground",children:e},void 0,!1,void 0,this):null;let o=r(t);return se(Kv,{children:o??t},void 0,!1,void 0,this)},pp=go(({className:e,children:t,size:r=te.md,status:o=Fr.default,fullWidth:a=!1,clearable:n=!1,leadingIcon:s,indicatorIcon:l,renderValue:m,placeholder:d,onKeyDown:f,...u},h)=>{let p=ri(),y=c(r)??r,C=p.setTriggerSize,R=p.setTriggerFullWidth;ei(()=>{C(y)},[y,C]),ei(()=>{R(a)},[a,R]);let w=p.value.length>0,T=n&&w&&!p.disabled,v=(S)=>{S.stopPropagation(),S.preventDefault(),p.onValueChange("")},x;if(m)x=w?m(p.value):d?se("span",{className:"text-muted-foreground",children:d},void 0,!1,void 0,this):null;else x=t;let I=(S)=>{if(f?.(S),S.defaultPrevented)return;if(S.key==="ArrowDown"||S.key==="ArrowUp"||S.key==="Enter"||S.key===" "){if(!p.open)S.preventDefault(),p.onOpenChange(!0)}};return se(Ht.Trigger,{asChild:!0,children:se("button",{ref:h,type:"button",role:"combobox","aria-expanded":p.open,"aria-haspopup":"listbox","aria-controls":p.contentId,id:p.triggerId,disabled:p.disabled,"data-state":p.open?"open":"closed","data-placeholder":w?void 0:"",className:i(mp({size:y,status:o}),a?"w-full":"w-auto",e),onKeyDown:I,...u,children:[s&&se("i",{className:"inline-flex shrink-0 items-center text-muted-foreground not-italic",children:s},void 0,!1,void 0,this),se("span",{"data-slot":"select-value",className:"min-w-0 flex-1 text-left",children:x},void 0,!1,void 0,this),se("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[T&&se("span",{role:"button",tabIndex:-1,"aria-label":"Clear selection",onMouseDown:(S)=>S.preventDefault(),onClick:v,className:"gs-interactive 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:se(Iv,{className:ti[y]},void 0,!1,void 0,this)},void 0,!1,void 0,this),l??se(Av,{className:i(ti[y],"opacity-60 transition-transform duration-200 ease-[cubic-bezier(0.16,1,0.3,1)]",p.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)});pp.displayName="SelectTrigger";var cp=go(({className:e,children:t,widthMode:r,size:o,align:a="start",side:n="bottom",sideOffset:s=4,portal:l=!0,forceMount:m=!0,onKeyDown:d,...f},u)=>{let h=ri(),p=za(o),y=r??fo.auto,C=lp(null),R=eo(u,C),w=(x)=>{let I=C.current;if(!I)return;let S=Array.from(I.querySelectorAll('[role="option"]:not([data-disabled])'));if(S.length===0)return;let A=I.querySelector('[role="option"]:focus'),z=A?S.indexOf(A):-1,D;switch(x){case"first":D=S[0];break;case"last":D=S[S.length-1];break;case"next":D=S[z+1]??S[0];break;case"prev":D=S[z-1]??S[S.length-1];break}D?.focus()},T=(x)=>{if(d?.(x),x.defaultPrevented)return;switch(x.key){case"ArrowDown":x.preventDefault(),w("next");break;case"ArrowUp":x.preventDefault(),w("prev");break;case"Home":x.preventDefault(),w("first");break;case"End":x.preventDefault(),w("last");break;case"Escape":x.preventDefault(),h.onOpenChange(!1);break}};ei(()=>{if(h.open)requestAnimationFrame(()=>w("first"))},[h.open]);let v=se(Ht.Content,{ref:R,id:h.contentId,role:"listbox","aria-labelledby":h.triggerId,side:n,align:a,sideOffset:s,forceMount:m,onKeyDown:T,onOpenAutoFocus:(x)=>x.preventDefault(),className:i(Lr(),dp({widthMode:y,size:p}),"p-1",e),...f,children:t},void 0,!1,void 0,this);if(l)return se(Ht.Portal,{children:v},void 0,!1,void 0,this);return v});cp.displayName="SelectContent";var up=go(({className:e,size:t,...r},o)=>{let a=za(t);return se("div",{ref:o,className:i("font-semibold text-foreground",Gv[a],e),...r},void 0,!1,void 0,this)});up.displayName="SelectLabel";var fp=go(({className:e,children:t,value:r,label:o,size:a,disabled:n=!1,...s},l)=>{let m=ri(),d=za(a),f=m.value===r,u=m.registerItem,h=xa(Vv.toArray(t)).trim();ei(()=>{let C=o??(h.length>0?h:r);u(r,C)},[h,r,o,u]);let p=()=>{if(!n)m.onValueChange(r)},y=(C)=>{if(C.key==="Enter"||C.key===" ")C.preventDefault(),p()};return se("div",{ref:l,role:"option",tabIndex:n?void 0:-1,"aria-selected":f,"aria-disabled":n||void 0,"data-selected":f?"":void 0,"data-disabled":n?"":void 0,"data-value":r,className:i("gs-interactive 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:opacity-50",_v[d],f&&"bg-accent/50",e),onClick:p,onKeyDown:y,...s,children:[se("span",{className:i("flex shrink-0 items-center justify-center",ti[d]),children:f&&se(kv,{className:ti[d]},void 0,!1,void 0,this)},void 0,!1,void 0,this),se("span",{className:"min-w-0 flex-1 truncate",children:t},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});fp.displayName="SelectItem";var gp=go(({className:e,...t},r)=>se("div",{ref:r,className:i("-mx-1 my-1 h-px bg-border",e),...t},void 0,!1,void 0,this));gp.displayName="SelectSeparator";import{cva as Yv}from"class-variance-authority";import{forwardRef as Xv}from"react";import{jsxDEV as Zv}from"react/jsx-dev-runtime";var yo={horizontal:"horizontal",vertical:"vertical"},yp=Yv("shrink-0 bg-border",{variants:{orientation:{[yo.horizontal]:"h-px w-full",[yo.vertical]:"h-full w-px"}},defaultVariants:{orientation:yo.horizontal}}),vp=Xv(({className:e,orientation:t=yo.horizontal,decorative:r=!0,...o},a)=>{let n=r?{role:"none"}:{role:"separator","aria-orientation":t};return Zv("div",{ref:a,className:i(yp({orientation:t}),e),...n,...o},void 0,!1,void 0,this)});vp.displayName="Separator";import{cva as oi}from"class-variance-authority";import{forwardRef as ii}from"react";import{jsxDEV as ai}from"react/jsx-dev-runtime";var ge={sm:"sm",md:"md",lg:"lg"},bp=oi("animate-pulse rounded-[var(--radius)] bg-muted"),Tp=oi("w-full",{variants:{size:{[ge.sm]:"h-3",[ge.md]:"h-4",[ge.lg]:"h-5"}},defaultVariants:{size:ge.md}}),hp=oi("",{variants:{size:{[ge.sm]:"h-8 w-8",[ge.md]:"h-10 w-10",[ge.lg]:"h-12 w-12"}},defaultVariants:{size:ge.md}}),Pp=oi("",{variants:{size:{[ge.sm]:"h-8 w-20",[ge.md]:"h-9 w-24",[ge.lg]:"h-10 w-28"}},defaultVariants:{size:ge.md}}),vo=ii(({className:e,circle:t=!1,...r},o)=>ai("div",{ref:o,className:i(bp(),t&&"rounded-full",e),...r},void 0,!1,void 0,this));vo.displayName="Skeleton";var xp=ii(({className:e,size:t=ge.md,...r},o)=>{let a=c(t)??ge.md;return ai(vo,{ref:o,className:i(Tp({size:a}),e),...r},void 0,!1,void 0,this)});xp.displayName="SkeletonText";var Cp=ii(({className:e,size:t=ge.md,...r},o)=>{let a=c(t)??ge.md;return ai(vo,{ref:o,circle:!0,className:i(hp({size:a}),e),...r},void 0,!1,void 0,this)});Cp.displayName="SkeletonAvatar";var zp=ii(({className:e,size:t=ge.md,...r},o)=>{let a=c(t)??ge.md;return ai(vo,{ref:o,className:i(Pp({size:a}),e),...r},void 0,!1,void 0,this)});zp.displayName="SkeletonButton";import*as kt from"@radix-ui/react-slider";import{cva as li}from"class-variance-authority";import{forwardRef as qv}from"react";import{jsxDEV as si}from"react/jsx-dev-runtime";var ni={sm:"sm",md:"md",lg:"lg"},Sp=li("relative flex w-full touch-none select-none items-center",{variants:{size:{[ni.sm]:"[&_[data-slider-track]]:h-0.5 [&_[data-slider-thumb]]:h-3 [&_[data-slider-thumb]]:w-3",[ni.md]:"[&_[data-slider-track]]:h-2 [&_[data-slider-thumb]]:h-5 [&_[data-slider-thumb]]:w-5",[ni.lg]:"[&_[data-slider-track]]:h-3 [&_[data-slider-thumb]]:h-6 [&_[data-slider-thumb]]:w-6"}},defaultVariants:{size:ni.md}}),Np=li("relative w-full grow overflow-hidden rounded-full bg-secondary"),wp=li("absolute h-full bg-primary"),Rp=li("gs-interactive block rounded-full border-2 border-primary bg-background ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"),Mp=qv(({className:e,size:t,...r},o)=>{let a=c(t);return si(kt.Root,{ref:o,className:i(Sp({size:a}),e),...r,children:[si(kt.Track,{"data-slider-track":!0,className:i(Np()),children:si(kt.Range,{className:i(wp())},void 0,!1,void 0,this)},void 0,!1,void 0,this),(r.defaultValue??r.value??[0]).map((n,s)=>si(kt.Thumb,{"data-slider-thumb":!0,className:i(Rp())},`thumb-${String(s)}`,!1,void 0,this))]},void 0,!0,void 0,this)});Mp.displayName="Slider";import{cva as Pe}from"class-variance-authority";import{forwardRef as Ev,useCallback as Or,useEffect as Ra,useMemo as mi,useRef as Hp,useState as di}from"react";import{createPortal as jv}from"react-dom";import{useCallback as Jv,useEffect as Qv,useRef as Lp}from"react";function wa(e,t,r={}){let{enabled:o=!0,preventDefault:a=!0,stopPropagation:n=!1,target:s="global"}=r,l=Lp(t);l.current=t;let m=Lp([]),d=Array.isArray(e)?e:[e];m.current=d.map((u)=>({combo:u,def:Sa(u)}));let f=Jv((u)=>{if(!o)return;for(let{combo:h,def:p}of m.current)if(Na(u,p)){if(a)u.preventDefault();if(n)u.stopPropagation();l.current(u,h);return}},[o,a,n]);Qv(()=>{if(!o)return;let u=s==="global"?document:s.current;if(!u)return;return u.addEventListener("keydown",f),()=>{u.removeEventListener("keydown",f)}},[o,f,s])}import{jsxDEV as ee}from"react/jsx-dev-runtime";var jt={sm:"sm",md:"md",lg:"lg",xl:"xl"},Br={idle:"idle",loading:"loading",error:"error"},kp=Pe("fixed inset-0 z-[120] bg-black/60 backdrop-blur-sm",{variants:{state:{open:"animate-in fade-in-0",closing:"animate-out fade-out-0"}},defaultVariants:{state:"open"}}),Ap=Pe(["fixed left-1/2 top-[15vh] z-[120] w-full -translate-x-1/2","rounded-[calc(var(--radius)+6px)] border border-border bg-popover shadow-2xl","overflow-hidden"],{variants:{size:{[jt.sm]:"max-w-md",[jt.md]:"max-w-xl",[jt.lg]:"max-w-2xl",[jt.xl]:"max-w-3xl"},state:{open:"animate-in fade-in-0 slide-in-from-top-4",closing:"animate-out fade-out-0 slide-out-to-top-4"}},defaultVariants:{size:jt.md,state:"open"}}),Ip=Pe("flex items-center gap-3 border-b border-border px-4 py-3"),Vp=Pe(["w-full flex-1 bg-transparent text-foreground text-base","placeholder:text-muted-foreground","outline-none border-none"]),Dp=Pe("size-4 text-muted-foreground shrink-0"),pi=Pe(["inline-flex items-center justify-center px-1.5 py-0.5 rounded","font-mono text-[10px] font-medium","bg-muted border border-border text-muted-foreground"]),Fp=Pe("overflow-y-auto max-h-80 py-1"),Op=Pe("px-3 py-2 text-xs font-semibold text-muted-foreground uppercase tracking-wide"),Bp=Pe(["group flex items-center gap-3 px-3 py-2 mx-2 rounded-lg cursor-pointer","text-foreground transition-colors duration-100"],{variants:{selected:{true:"bg-primary/10",false:"hover:bg-muted"},disabled:{true:"opacity-50 cursor-not-allowed pointer-events-none",false:""}},defaultVariants:{selected:!1,disabled:!1}}),_p=Pe("size-4 shrink-0",{variants:{selected:{true:"text-primary",false:"text-muted-foreground"}},defaultVariants:{selected:!1}}),Gp=Pe("flex-1 min-w-0"),Wp=Pe("text-sm font-medium truncate"),Up=Pe("text-xs text-muted-foreground truncate"),$p=Pe("flex items-center gap-1 text-[11px] text-muted-foreground shrink-0"),ci=Pe("flex flex-col items-center justify-center py-8 text-muted-foreground min-h-24",{variants:{state:{empty:"text-muted-foreground",loading:"text-muted-foreground",error:"text-destructive"}},defaultVariants:{state:"empty"}}),ui=Pe("text-sm font-medium"),Kp=Pe("text-xs mt-1"),eb=(e,t)=>{if(!t)return!0;let r=t.toLowerCase();if(e.title.toLowerCase().includes(r))return!0;if(e.description?.toLowerCase().includes(r))return!0;if(e.keywords?.some((o)=>o.toLowerCase().includes(r)))return!0;return!1},Yp=Ev(({className:e,open:t,onOpenChange:r,actions:o,onActionSelect:a,value:n,defaultValue:s="",onValueChange:l,placeholder:m="Search commands, pages, or actions...",size:d=jt.md,status:f=Br.idle,statusMessage:u,emptyText:h="No command found for this query.",hotkey:p,portal:y=!0,...C},R)=>{let w=Hp(null),T=Hp(null),[v,x]=di(s),[I,S]=di(0),[A,z]=di(!1),[D,W]=di(!1),{isMac:O}=to(),U=Or((H)=>ro(H,O),[O]),N=mi(()=>p&&p.length>0?p.join("+"):null,[p]);wa(N??"",()=>r(!t),{enabled:!!N});let V=n!==void 0?n:v,P=mi(()=>o.filter((H)=>eb(H,V)),[o,V]),F=mi(()=>P.map((H,re)=>H.disabled?-1:re).filter((H)=>H>=0),[P]),Q=mi(()=>{let H=new Map,re=new Map,k=0;for(let q of P){let oe=q.group??"";if(!H.has(oe))H.set(oe,[]);H.get(oe).push(q),re.set(q,k),k++}return{groups:H,indexMap:re}},[P]);Ra(()=>{if(t){z(!0),W(!1),S(0);return}if(A)W(!0)},[t]);let L=Or(()=>{if(D)z(!1),W(!1)},[D]);Ra(()=>{if(t)document.body.style.overflow="hidden";else document.body.style.overflow="";return()=>{document.body.style.overflow=""}},[t]),Ra(()=>{if(t&&A)requestAnimationFrame(()=>w.current?.focus())},[t,A]);let Y=Or((H)=>{let re=H.target.value;x(re),l?.(re),S(0)},[l]),g=Or((H)=>{let re=T.current;if(!re)return;re.querySelectorAll('[role="option"]')[H]?.scrollIntoView({block:"nearest"})},[]),b=Or((H)=>{if(H.key==="Escape"){H.preventDefault(),r(!1);return}if(H.key==="ArrowDown"){if(H.preventDefault(),F.length===0)return;let k=(F.indexOf(I)+1)%F.length,q=F[k];S(q),g(q);return}if(H.key==="ArrowUp"){if(H.preventDefault(),F.length===0)return;let k=(F.indexOf(I)-1+F.length)%F.length,q=F[k];S(q),g(q);return}if(H.key==="Enter"){H.preventDefault();let re=P[I];if(re&&!re.disabled)a(re,I)}},[I,F,P,a,r,g]),M=Or((H,re)=>{if(H.disabled)return;a(H,re)},[a]);if(!A)return null;let E=D?"closing":"open",Z=f===Br.idle,Se=f!==Br.idle,j=ee("div",{ref:R,role:"dialog","aria-modal":"true",onKeyDown:b,className:i(e),...C,children:[ee("div",{"data-testid":"spotlight-overlay",className:i(kp({state:E})),onClick:()=>r(!1),onKeyDown:(H)=>{if(H.key==="Escape")r(!1)}},void 0,!1,void 0,this),ee("div",{className:i(Ap({size:d,state:E})),onAnimationEnd:L,children:[ee("div",{className:i(Ip()),children:[ee("svg",{className:i(Dp()),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:ee("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),ee("input",{ref:w,type:"text",value:V,onChange:Y,placeholder:m,className:i(Vp())},void 0,!1,void 0,this),p?ee("div",{className:"flex items-center gap-1",children:p.map((H)=>ee("kbd",{className:i(pi()),children:U(H)},H,!1,void 0,this))},void 0,!1,void 0,this):ee("kbd",{className:i(pi()),children:"ESC"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Se&&f===Br.loading&&ee("div",{className:i(ci({state:"loading"})),children:ee("div",{className:i(ui()),children:"Searching commands..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),Se&&f===Br.error&&ee("div",{className:i(ci({state:"error"})),children:[ee("div",{className:i(ui()),children:"Search failed"},void 0,!1,void 0,this),u&&ee("div",{className:i(Kp()),children:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z&&P.length===0&&ee("div",{className:i(ci({state:"empty"})),children:ee("div",{className:i(ui()),children:h},void 0,!1,void 0,this)},void 0,!1,void 0,this),Z&&P.length>0&&ee("div",{ref:T,className:i(Fp()),children:Array.from(Q.groups.entries()).map(([H,re])=>ee("div",{children:[H&&ee("div",{className:i(Op()),children:H},void 0,!1,void 0,this),re.map((k)=>{let q=Q.indexMap.get(k)??0,oe=q===I;return ee("div",{role:"option","aria-selected":oe,"aria-disabled":k.disabled??!1,onClick:()=>M(k,q),className:i(Bp({selected:oe,disabled:k.disabled??!1})),children:[k.icon&&ee("span",{className:i(_p({selected:oe})),children:k.icon},void 0,!1,void 0,this),ee("div",{className:i(Gp()),children:[ee("div",{className:i(Wp()),children:k.title},void 0,!1,void 0,this),k.description&&ee("div",{className:i(Up()),children:k.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),k.shortcut&&k.shortcut.length>0&&ee("div",{className:i($p()),children:k.shortcut.map((xe)=>ee("kbd",{className:i(pi()),children:U(xe)},xe,!1,void 0,this))},void 0,!1,void 0,this)]},k.id,!0,void 0,this)})]},H||"__ungrouped__",!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);if(y)return jv(j,document.body);return j});Yp.displayName="Spotlight";import{cva as tb}from"class-variance-authority";import{forwardRef as rb}from"react";import{jsxDEV as At}from"react/jsx-dev-runtime";var We={sm:"sm",md:"md",lg:"lg"},er={up:"up",down:"down",neutral:"neutral"},Xp=tb("gs-interactive 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:{[We.sm]:"gap-1 p-3",[We.md]:"gap-1.5 p-4",[We.lg]:"gap-2 p-5"}},defaultVariants:{size:We.md}}),ob={[We.sm]:"text-lg font-semibold",[We.md]:"text-2xl font-bold",[We.lg]:"text-3xl font-bold"},ib={[We.sm]:"text-xs",[We.md]:"text-sm",[We.lg]:"text-base"},ab={[er.up]:"text-success",[er.down]:"text-destructive",[er.neutral]:"text-muted-foreground"},nb={[er.up]:"↑",[er.down]:"↓",[er.neutral]:"→"},Zp=rb(({className:e,size:t=We.md,label:r,value:o,trend:a,trendValue:n,icon:s,...l},m)=>{let d=c(t);return At("div",{ref:m,className:i(Xp({size:d}),e),...l,children:[At("div",{className:"flex items-center justify-between",children:[At("span",{className:i("text-muted-foreground",ib[d]),children:r},void 0,!1,void 0,this),s&&At("span",{className:"text-muted-foreground/70","aria-hidden":"true",children:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this),At("div",{className:"flex items-baseline gap-2",children:[At("span",{className:i("tracking-tight text-foreground",ob[d]),children:o},void 0,!1,void 0,this),a&&n&&At("span",{className:i("inline-flex items-center gap-0.5 text-xs font-medium",ab[a]),children:[At("span",{"aria-hidden":"true",children:nb[a]},void 0,!1,void 0,this),n]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Zp.displayName="StatCard";import{cva as tr}from"class-variance-authority";import{Check as sb}from"lucide-react";import{forwardRef as rr}from"react";import{jsxDEV as It}from"react/jsx-dev-runtime";var qp=tr("flex w-full",{variants:{orientation:{horizontal:"flex-row items-start",vertical:"flex-col"}},defaultVariants:{orientation:"horizontal"}}),Jp=tr("flex",{variants:{orientation:{horizontal:"flex-1 flex-col items-center",vertical:"gap-4 flex-row"}},defaultVariants:{orientation:"horizontal"}}),Qp=tr(["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/80 bg-card text-muted-foreground","shadow-[0_1px_2px_rgba(0,0,0,0.05)]"],current:["border-primary bg-primary text-primary-foreground","shadow-[0_2px_4px_rgba(99,102,241,0.2)]"],complete:["border-success/60 bg-success text-success-foreground","shadow-[0_1px_3px_rgba(0,0,0,0.1)]","[&>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}}),Ep=tr("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}}),jp=tr("flex flex-col",{variants:{orientation:{horizontal:"mt-3 items-center text-center",vertical:"flex-1 pb-8 last:pb-0"}},defaultVariants:{orientation:"horizontal"}}),ec=tr("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"}}),tc=tr("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 rc=rr(({className:e,orientation:t="horizontal",activeStep:r,...o},a)=>{return It("div",{ref:a,role:"group","aria-label":"Progress steps",className:i(qp({orientation:t}),e),"data-orientation":t,"data-active-step":r,...o},void 0,!1,void 0,this)});rc.displayName="Stepper";var oc=rr(({className:e,orientation:t="horizontal",isLast:r,isCurrent:o,...a},n)=>{return It("div",{ref:n,className:i(Jp({orientation:t}),e),"data-last":r,"aria-current":o?"step":void 0,...a},void 0,!1,void 0,this)});oc.displayName="Step";var ic=rr(({className:e,status:t="incomplete",size:r="md",icon:o,step:a,children:n,animated:s=!0,...l},m)=>{let d=c(r);return It("div",{ref:m,className:i(Qp({status:t,size:d,animated:s}),e),"data-status":t,"aria-hidden":"true",...l,children:t==="complete"?o||It(sb,{className:"size-4",strokeWidth:3},void 0,!1,void 0,this):n||a},void 0,!1,void 0,this)});ic.displayName="StepIndicator";var ac=rr(({className:e,orientation:t="horizontal",status:r="incomplete",size:o="md",animated:a=!0,...n},s)=>{let l=c(o);return It("div",{ref:s,className:i(Ep({orientation:t,status:r,size:l,animated:a}),e),"data-status":r,...n},void 0,!1,void 0,this)});ac.displayName="StepConnector";var nc=rr(({className:e,orientation:t="horizontal",...r},o)=>{return It("div",{ref:o,className:i(jp({orientation:t}),e),...r},void 0,!1,void 0,this)});nc.displayName="StepContent";var sc=rr(({className:e,status:t="incomplete",size:r="md",...o},a)=>{let n=c(r);return It("h4",{ref:a,className:i(ec({status:t,size:n}),e),...o},void 0,!1,void 0,this)});sc.displayName="StepTitle";var lc=rr(({className:e,size:t="md",...r},o)=>{let a=c(t);return It("p",{ref:o,className:i(tc({size:a}),e),...r},void 0,!1,void 0,this)});lc.displayName="StepDescription";import*as fi from"@radix-ui/react-switch";import{cva as lb}from"class-variance-authority";import{forwardRef as mb}from"react";import{jsxDEV as mc}from"react/jsx-dev-runtime";var Me={sm:"sm",md:"md",lg:"lg",xl:"xl"},_r={default:"default",error:"error",success:"success"},dc=lb("gs-interactive 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:{[Me.sm]:"h-4.5 w-8",[Me.md]:"h-5 w-9",[Me.lg]:"h-6 w-11",[Me.xl]:"h-7 w-[3.25rem]"},status:{[_r.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",[_r.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",[_r.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:Me.md,status:_r.default}}),db={[Me.sm]:"h-3.5 w-3.5",[Me.md]:"h-4 w-4",[Me.lg]:"h-5 w-5",[Me.xl]:"h-6 w-6"},pb={[Me.sm]:"data-[state=checked]:translate-x-3.5",[Me.md]:"data-[state=checked]:translate-x-4",[Me.lg]:"data-[state=checked]:translate-x-5",[Me.xl]:"data-[state=checked]:translate-x-6"},pc=mb(({className:e,size:t=Me.md,status:r=_r.default,checked:o,disabled:a,...n},s)=>{let l=c(t);return mc(fi.Root,{ref:s,checked:o,disabled:a,className:i(dc({size:l,status:r}),e),...n,children:mc(fi.Thumb,{className:i("pointer-events-none block rounded-full bg-background shadow-sm transition-transform duration-150",db[l],pb[l])},void 0,!1,void 0,this)},void 0,!1,void 0,this)});pc.displayName="Switch";import{cva as vt}from"class-variance-authority";import{createContext as cb,forwardRef as Vt,useContext as cc}from"react";import{jsxDEV as at}from"react/jsx-dev-runtime";var ze={sm:"sm",md:"md",lg:"lg"},Ma=cb(ze.md),uc=vt("relative w-full overflow-auto rounded-[var(--radius)] border border-border bg-card shadow-[var(--shadow-sm)]"),fc=vt("w-full caption-bottom",{variants:{size:{[ze.sm]:"text-xs",[ze.md]:"text-sm",[ze.lg]:"text-sm"}},defaultVariants:{size:ze.md}}),gc=vt("sticky top-0 z-[1] [&_tr]:border-b [&_tr]:border-border [&_th]:bg-muted"),yc=vt("[&_tr:last-child]:border-0"),vc=vt("border-t border-border bg-muted font-medium text-muted-foreground [&>tr]:last:border-b-0"),bc=vt("gs-interactive border-b border-border hover:bg-muted/50 data-[state=selected]:bg-primary/10"),Tc=vt("text-left align-middle font-semibold text-muted-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[ze.sm]:"h-8 px-2",[ze.md]:"h-10 px-3",[ze.lg]:"h-12 px-4"}},defaultVariants:{size:ze.md}}),hc=vt("align-middle text-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[ze.sm]:"p-2",[ze.md]:"p-3",[ze.lg]:"p-4"}},defaultVariants:{size:ze.md}}),Pc=vt("mt-4 text-sm text-muted-foreground"),xc=Vt(({className:e,containerClassName:t,size:r=ze.md,...o},a)=>{let n=c(r)??ze.md;return at(Ma.Provider,{value:n,children:at("div",{className:i(uc(),t),children:at("table",{ref:a,className:i(fc({size:n}),e),...o},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});xc.displayName="Table";var Cc=Vt(({className:e,...t},r)=>at("thead",{ref:r,className:i(gc(),e),...t},void 0,!1,void 0,this));Cc.displayName="TableHeader";var zc=Vt(({className:e,...t},r)=>at("tbody",{ref:r,className:i(yc(),e),...t},void 0,!1,void 0,this));zc.displayName="TableBody";var Sc=Vt(({className:e,...t},r)=>at("tfoot",{ref:r,className:i(vc(),e),...t},void 0,!1,void 0,this));Sc.displayName="TableFooter";var Nc=Vt(({className:e,...t},r)=>at("tr",{ref:r,className:i(bc(),e),...t},void 0,!1,void 0,this));Nc.displayName="TableRow";var wc=Vt(({className:e,size:t,...r},o)=>{let a=cc(Ma);return at("th",{ref:o,className:i(Tc({size:t??a}),e),...r},void 0,!1,void 0,this)});wc.displayName="TableHead";var Rc=Vt(({className:e,size:t,...r},o)=>{let a=cc(Ma);return at("td",{ref:o,className:i(hc({size:t??a}),e),...r},void 0,!1,void 0,this)});Rc.displayName="TableCell";var Mc=Vt(({className:e,...t},r)=>at("caption",{ref:r,className:i(Pc(),e),...t},void 0,!1,void 0,this));Mc.displayName="TableCaption";import*as je from"@radix-ui/react-tabs";import{cva as La}from"class-variance-authority";import{createContext as ub,forwardRef as Ha,useCallback as Lc,useContext as fb,useEffect as ka,useLayoutEffect as gb,useRef as gi,useState as yb}from"react";import{jsxDEV as bo}from"react/jsx-dev-runtime";var nt={sm:"sm",md:"md",lg:"lg",xl:"xl"},Hc=La("relative inline-flex items-center justify-center rounded-[var(--radius)] border border-border bg-muted/50 p-1 text-muted-foreground",{variants:{size:{[nt.sm]:"h-9 gap-0.5",[nt.md]:"h-11 gap-1",[nt.lg]:"h-12 gap-1",[nt.xl]:"h-14 gap-1.5"}},defaultVariants:{size:nt.md}}),kc=La("gs-interactive relative z-10 inline-flex items-center justify-center whitespace-nowrap rounded-[calc(var(--radius)-2px)] font-semibold 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:{[nt.sm]:"px-2.5 py-1 text-xs",[nt.md]:"px-3 py-1.5 text-sm",[nt.lg]:"px-4 py-2 text-sm",[nt.xl]:"px-5 py-2.5 text-base"}},defaultVariants:{size:nt.md}}),Ac=La("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),Ic=ub({registerTrigger:()=>{}}),vb=typeof window<"u"?gb:ka,bb=je.Root,Vc=Ha(({className:e,size:t,children:r,...o},a)=>{let n=c(t),s=gi(null),l=gi(new Map),[m,d]=yb(null),f=gi(!0),u=Lc((p,y)=>{if(y)l.current.set(p,y);else l.current.delete(p)},[]),h=Lc(()=>{let p=s.current;if(!p)return;let y=p.querySelector('[data-state="active"]');if(!y){d(null);return}let C=p.getBoundingClientRect(),R=y.getBoundingClientRect();d({left:R.left-C.left,width:R.width})},[]);return vb(()=>{h()},[h]),ka(()=>{let p=s.current;if(!p)return;let y=new MutationObserver(()=>{f.current=!1,h()});return y.observe(p,{attributes:!0,attributeFilter:["data-state"],subtree:!0}),()=>y.disconnect()},[h]),bo(Ic.Provider,{value:{registerTrigger:u},children:bo(je.List,{ref:(p)=>{if(s.current=p,typeof a==="function")a(p);else if(a)a.current=p},className:i(Hc({size:n}),e),...o,children:[m&&bo("span",{"aria-hidden":"true",className:i("absolute rounded-[calc(var(--radius)-2px)] bg-background shadow-sm",!f.current&&"transition-[left,width] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-emphasized)]"),style:{left:m.left,width:m.width,top:"4px",bottom:"4px"}},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Vc.displayName=je.List.displayName;var Dc=Ha(({className:e,size:t,value:r,...o},a)=>{let n=c(t),{registerTrigger:s}=fb(Ic),l=gi(null);return ka(()=>{return s(r,l.current),()=>s(r,null)},[r,s]),bo(je.Trigger,{ref:(m)=>{if(l.current=m,typeof a==="function")a(m);else if(a)a.current=m},value:r,className:i(kc({size:n}),e),...o},void 0,!1,void 0,this)});Dc.displayName=je.Trigger.displayName;var Fc=Ha(({className:e,...t},r)=>bo(je.Content,{ref:r,className:i(Ac(),e),...t},void 0,!1,void 0,this));Fc.displayName=je.Content.displayName;import{cva as Tb}from"class-variance-authority";import{forwardRef as hb}from"react";import{jsxDEV as Pb}from"react/jsx-dev-runtime";var To={default:"default",error:"error",success:"success"},Gr={sm:"sm",md:"md",lg:"lg",xl:"xl"},Oc=Tb("gs-interactive 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:{[To.default]:"focus-visible:ring-primary",[To.error]:"border-destructive focus-visible:ring-destructive",[To.success]:"border-success focus-visible:ring-success"},size:{[Gr.sm]:"min-h-[64px] px-2 py-1.5 text-xs",[Gr.md]:"min-h-[96px] px-3 py-2",[Gr.lg]:"min-h-[112px] px-4 py-2.5",[Gr.xl]:"min-h-[128px] px-4 py-3 text-base"}},defaultVariants:{status:To.default,size:Gr.md}}),Bc=hb(({className:e,status:t=To.default,size:r=Gr.md,fullWidth:o=!1,noResize:a=!1,disabled:n,...s},l)=>{let m=c(r);return Pb("textarea",{ref:l,className:i(Oc({status:t,size:m}),n&&"bg-muted",o&&"w-full",a&&"resize-none",e),disabled:n,...s},void 0,!1,void 0,this)});Bc.displayName="Textarea";import{cva as Dt}from"class-variance-authority";import{forwardRef as Ft}from"react";import{jsxDEV as st}from"react/jsx-dev-runtime";var _c=Dt("relative flex flex-col"),Gc=Dt(["group relative flex pb-8 last:pb-0","transition-opacity duration-300 ease-[cubic-bezier(0.22,1,0.36,1)]"],{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}}),Wc=Dt(["absolute bottom-0 w-0.5 rounded-full","transition-[background-color,opacity,height] duration-300 ease-[cubic-bezier(0.22,1,0.36,1)]"],{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-[11px] top-7",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}}),Uc=Dt(["relative z-10 flex shrink-0 items-center justify-center rounded-full border-2","transition-[color,background-color,border-color,box-shadow] duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]","[&>svg]:shrink-0"],{variants:{variant:{default:["border-border/80 bg-card text-muted-foreground","shadow-[0_1px_3px_rgba(0,0,0,0.12),0_0_0_2px_rgba(0,0,0,0.04)]","hover:border-border hover:shadow-[0_2px_6px_rgba(0,0,0,0.16),0_0_0_2px_rgba(0,0,0,0.06)]"],success:["border-success/60 bg-success/10 text-success","shadow-[0_1px_4px_rgba(0,0,0,0.1),0_0_0_2px_rgba(var(--success-rgb,34,197,94),0.2)]","hover:bg-success/15 hover:border-success/70 hover:shadow-[0_2px_8px_rgba(0,0,0,0.12),0_0_0_3px_rgba(var(--success-rgb,34,197,94),0.25)]"],warning:["border-warning/60 bg-warning/10 text-warning","shadow-[0_1px_4px_rgba(0,0,0,0.1),0_0_0_2px_rgba(var(--warning-rgb,234,179,8),0.2)]","hover:bg-warning/15 hover:border-warning/70 hover:shadow-[0_2px_8px_rgba(0,0,0,0.12),0_0_0_3px_rgba(var(--warning-rgb,234,179,8),0.25)]"],error:["border-destructive/60 bg-destructive/10 text-destructive","shadow-[0_1px_4px_rgba(0,0,0,0.1),0_0_0_2px_rgba(var(--destructive-rgb,239,68,68),0.2)]","hover:bg-destructive/15 hover:border-destructive/70 hover:shadow-[0_2px_8px_rgba(0,0,0,0.12),0_0_0_3px_rgba(var(--destructive-rgb,239,68,68),0.25)]"],info:["border-info/60 bg-info/10 text-info","shadow-[0_1px_4px_rgba(0,0,0,0.1),0_0_0_2px_rgba(var(--info-rgb,59,130,246),0.2)]","hover:bg-info/15 hover:border-info/70 hover:shadow-[0_2px_8px_rgba(0,0,0,0.12),0_0_0_3px_rgba(var(--info-rgb,59,130,246),0.25)]"],primary:["border-primary/60 bg-primary/10 text-primary","shadow-[0_1px_4px_rgba(0,0,0,0.1),0_0_0_2px_rgba(var(--primary-rgb,99,102,241),0.2)]","hover:bg-primary/15 hover:border-primary/70 hover:shadow-[0_2px_8px_rgba(0,0,0,0.12),0_0_0_3px_rgba(var(--primary-rgb,99,102,241),0.25)]"]},size:{sm:"h-6 w-6 [&>svg]:size-3",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}}),$c=Dt("flex flex-col gap-1 pt-0.5 min-w-0 transition-opacity duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]"),Kc=Dt("font-semibold text-foreground leading-tight transition-colors duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]",{variants:{size:{sm:"text-sm",md:"text-base",lg:"text-lg",xl:"text-xl"}},defaultVariants:{size:"md"}}),Yc=Dt("text-muted-foreground transition-colors duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]",{variants:{size:{sm:"text-sm",md:"text-sm",lg:"text-base",xl:"text-lg"}},defaultVariants:{size:"md"}}),Xc=Dt("font-medium text-muted-foreground/70 transition-colors duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]",{variants:{size:{sm:"text-sm",md:"text-sm",lg:"text-base",xl:"text-base"}},defaultVariants:{size:"md"}});var Zc=Ft(({className:e,...t},r)=>{return st("div",{ref:r,role:"list","aria-label":"Timeline events",className:i(_c(),e),...t},void 0,!1,void 0,this)});Zc.displayName="Timeline";var qc=Ft(({className:e,align:t,isLast:r,animated:o=!0,...a},n)=>{return st("div",{ref:n,role:"listitem",className:i(Gc({align:t,animated:o}),e),"data-last":r,...a},void 0,!1,void 0,this)});qc.displayName="TimelineItem";var Jc=Ft(({className:e,variant:t,size:r,animated:o=!0,...a},n)=>{let s=c(r);return st("div",{ref:n,className:i(Wc({variant:t,size:s,animated:o}),e),...a},void 0,!1,void 0,this)});Jc.displayName="TimelineConnector";var Qc=Ft(({className:e,variant:t,size:r,icon:o,children:a,pulse:n=!1,animated:s=!0,...l},m)=>{let d=c(r);return st("div",{ref:m,className:i(Uc({variant:t,size:d,pulse:n,animated:s}),e),"aria-hidden":"true",...l,children:o||a||st(xb,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Qc.displayName="TimelineDot";var Ec=Ft(({className:e,...t},r)=>{return st("div",{ref:r,className:i($c(),e),...t},void 0,!1,void 0,this)});Ec.displayName="TimelineContent";var jc=Ft(({className:e,size:t,...r},o)=>{let a=c(t);return st("h4",{ref:o,className:i(Kc({size:a}),e),...r},void 0,!1,void 0,this)});jc.displayName="TimelineTitle";var eu=Ft(({className:e,size:t,...r},o)=>{let a=c(t);return st("p",{ref:o,className:i(Yc({size:a}),e),...r},void 0,!1,void 0,this)});eu.displayName="TimelineDescription";var tu=Ft(({className:e,size:t,...r},o)=>{let a=c(t);return st("time",{ref:o,className:i(Xc({size:a}),e),...r},void 0,!1,void 0,this)});tu.displayName="TimelineTime";function xb(){return st("span",{className:"size-2 rounded-full bg-current"},void 0,!1,void 0,this)}import{cva as ru}from"class-variance-authority";var Wr={default:"default",success:"success",info:"info",warning:"warning",error:"error"},Ue={sm:"sm",md:"md",lg:"lg"},Aa=ru("pointer-events-auto relative flex w-full items-center overflow-hidden rounded-[var(--radius)] border shadow-[var(--shadow-md)]",{variants:{variant:{[Wr.default]:"border-border bg-card text-card-foreground",[Wr.success]:"border-success/30 bg-card text-card-foreground",[Wr.info]:"border-info/30 bg-card text-card-foreground",[Wr.warning]:"border-warning/30 bg-card text-card-foreground",[Wr.error]:"border-destructive/30 bg-card text-card-foreground"},size:{[Ue.sm]:"gap-2 p-3",[Ue.md]:"gap-3 p-4",[Ue.lg]:"gap-3.5 p-5"}},defaultVariants:{variant:Wr.default,size:Ue.md}}),Ia=ru("gs-interactive 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:opacity-50",{variants:{size:{[Ue.sm]:"h-6 px-2 text-xs",[Ue.md]:"h-7 px-2.5 text-xs",[Ue.lg]:"h-8 px-3 text-sm"}},defaultVariants:{size:Ue.md}});import{AlertTriangle as Hb,CheckCircle2 as kb,Info as su,X as Ab,XCircle as Ib}from"lucide-react";import{forwardRef as Vb,useCallback as bi,useEffect as Ti,useRef as Ba,useState as _a}from"react";import{useSyncExternalStore as Cb}from"react";var zb=5,iu=5000,Sb=500,Va=0;function Nb(){return Va=(Va+1)%Number.MAX_SAFE_INTEGER,`toast-${Va}-${Date.now()}`}var Da=new Set,$e=[],ir=new Map,Po=new Map,xo=!1,or=new Map;function yi(){for(let e of Da)e()}function ou(){return $e}function wb(e){return Da.add(e),()=>{Da.delete(e)}}function Fa(e,t){if(xo){or.set(e,t);return}clearTimeout(ir.get(e));let r=Date.now(),o=setTimeout(()=>{ir.delete(e),or.delete(e),vi(e)},t);ir.set(e,o),or.set(e,t);let a=setInterval(()=>{let n=Date.now()-r,s=t-n;if(s<=0)clearInterval(a),or.delete(e);else or.set(e,s)},100)}function Rb(e){clearTimeout(Po.get(e));let t=setTimeout(()=>{$e=$e.filter((r)=>r.id!==e),Po.delete(e),yi()},Sb);Po.set(e,t)}function ho(e){let t=e.id??Nb(),r=e.duration??iu;if($e.find((n)=>n.id===t))return $e=$e.map((n)=>n.id===t?{...n,...e,id:t,open:!0,createdAt:Date.now()}:n),clearTimeout(Po.get(t)),Po.delete(t),Fa(t,r),yi(),t;return $e=[{...e,id:t,variant:e.variant??"default",dismissible:e.dismissible??!0,open:!0,createdAt:Date.now()},...$e].slice(0,zb),Fa(t,r),yi(),t}function vi(e){clearTimeout(ir.get(e)),ir.delete(e),or.delete(e),$e=$e.map((t)=>t.id===e?{...t,open:!1}:t),yi(),Rb(e)}function au(){for(let e of $e)vi(e.id)}function Mb(){if(xo)return;xo=!0;for(let[e,t]of ir)clearTimeout(t),ir.delete(e)}function Lb(){if(!xo)return;xo=!1;for(let e of $e)if(e.open){let t=or.get(e.id)??iu;Fa(e.id,t)}}var nu=Object.assign((e)=>ho(e),{success:(e,t)=>ho({...t,variant:"success",title:e}),info:(e,t)=>ho({...t,variant:"info",title:e}),warning:(e,t)=>ho({...t,variant:"warning",title:e}),error:(e,t)=>ho({...t,variant:"error",title:e}),dismiss:vi,dismissAll:au});function Oa(){return{toasts:Cb(wb,ou,ou),toast:nu,dismiss:vi,dismissAll:au,pauseAll:Mb,resumeAll:Lb}}import{jsxDEV as Le}from"react/jsx-dev-runtime";var mu=10,lu=0.05,Db=200,du="cubic-bezier(0.2, 0.8, 0.2, 1)",Fb="cubic-bezier(0.22, 1, 0.36, 1)",Ob={"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"},Bb={success:(e)=>Le(kb,{className:i("mt-0.5 shrink-0 text-success",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),info:(e)=>Le(su,{className:i("mt-0.5 shrink-0 text-info",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),warning:(e)=>Le(Hb,{className:i("mt-0.5 shrink-0 text-warning",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),error:(e)=>Le(Ib,{className:i("mt-0.5 shrink-0 text-destructive",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),default:(e)=>Le(su,{className:i("mt-0.5 shrink-0 text-muted-foreground",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this)};function _b(e,t,r,o,a){let n=e<o,s=r?a:e*mu,l=r?1:n?1-e*lu:1-o*lu,m=n||r?1:0,d=t-e;return{offset:s,scale:l,opacity:m,zIndex:d}}var pu=Vb(({position:e="bottom-right",gap:t=12,visibleCount:r=3,size:o=Ue.md,className:a,...n},s)=>{let{toasts:l,dismiss:m,pauseAll:d,resumeAll:f}=Oa(),u=c(o)??Ue.md,[h,p]=_a(!1),[y,C]=_a({}),R=Ba(null),w=Ba(void 0),T=e.startsWith("bottom"),v=bi((P)=>{if(R.current=P,typeof s==="function")s(P);else if(s)s.current=P},[s]),x=bi(()=>{clearTimeout(w.current),p(!0),d()},[d]),I=bi(()=>{clearTimeout(w.current),w.current=setTimeout(()=>{p(!1),f()},Db)},[f]);Ti(()=>{return()=>clearTimeout(w.current)},[]);let S=bi((P,F)=>{C((Q)=>{if(Q[P]===F)return Q;return{...Q,[P]:F}})},[]);if(Ti(()=>{let P=new Set(l.map((F)=>F.id));C((F)=>{let Q=!1,L={};for(let[Y,g]of Object.entries(F))if(P.has(Y))L[Y]=g;else Q=!0;return Q?L:F})},[l]),l.length===0)return null;let A=l.filter((P)=>P.open),z=new Map,D=0;for(let[P,F]of A.entries()){let Q=y[F.id]??0;z.set(F.id,_b(P,A.length,h,r,D)),D+=Q+t}let W=A[0],U=(W?y[W.id]??0:0)+Math.min(A.length-1,r-1)*mu,N=D-(A.length>0?t:0),V=h?N:U;return Le("ol",{ref:v,role:"region","aria-label":"Notifications",tabIndex:-1,onMouseEnter:x,onMouseLeave:I,className:i("pointer-events-auto fixed z-[100] w-full max-w-[400px] outline-none",Ob[e],a),style:{height:Math.max(V,0),transition:`height 400ms ${du}`},...n,children:l.map((P)=>{let F=!P.open,Q=z.get(P.id);return Le(Gb,{toast:P,layout:Q??{offset:0,scale:1,opacity:0,zIndex:0},isClosed:F,isBottom:T,size:u,onDismiss:m,onMeasure:S},P.id,!1,void 0,this)})},void 0,!1,void 0,this)});pu.displayName="Toaster";function Gb({toast:e,layout:t,isClosed:r,isBottom:o,size:a,onDismiss:n,onMeasure:s}){let l=Ba(null),[m,d]=_a(!1);Ti(()=>{let y=requestAnimationFrame(()=>d(!0));return()=>cancelAnimationFrame(y)},[]),Ti(()=>{let y=l.current;if(!y)return;let C=new ResizeObserver((R)=>{for(let w of R){let T=w.borderBoxSize?.[0];if(T)s(e.id,T.blockSize)}});return C.observe(y),()=>C.disconnect()},[e.id,s]);let f=o?{bottom:0,left:0,right:0}:{top:0,left:0,right:0},u,h,p;if(!m)u=`translateY(${o?80:-80}px) scale(0.9)`,h=0,p="none";else if(r)u=`translateY(${o?80:-80}px) scale(0.95)`,h=0,p="none";else u=`translateY(${o?-t.offset:t.offset}px) scale(${t.scale})`,h=t.opacity,p="auto";return Le("li",{ref:l,"data-state":e.open?"open":"closed","data-variant":e.variant,className:"absolute list-none",style:{...f,zIndex:t.zIndex,transformOrigin:o?"center bottom":"center top",transform:u,opacity:h,pointerEvents:p,transition:[`transform 400ms ${du}`,`opacity 250ms ${Fb}`].join(", ")},children:Le("div",{className:i(Aa({variant:e.variant,size:a}),"w-full"),children:[Bb[e.variant]?.(a),Le("div",{className:"flex-1 space-y-0.5",children:[e.title&&Le("p",{className:i("font-semibold leading-tight",a==="sm"?"text-xs":"text-sm"),children:e.title},void 0,!1,void 0,this),e.description&&Le("p",{className:i("leading-snug text-muted-foreground",a==="sm"?"text-xs":"text-sm"),children:e.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.action&&Le("button",{type:"button",className:i(Ia({size:a}),"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&&Le("button",{type:"button",className:i("gs-interactive mt-0.5 shrink-0 rounded-[var(--radius)] p-1 text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",a==="sm"?"[&>svg]:size-3.5":"[&>svg]:size-4"),onClick:()=>n(e.id),"aria-label":"Dismiss",children:Le(Ab,{},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 cu from"@radix-ui/react-toggle";import{cva as Wb}from"class-variance-authority";import{forwardRef as Ub}from"react";import{jsxDEV as $b}from"react/jsx-dev-runtime";var Ga={default:"default",outline:"outline"},hi={sm:"sm",md:"md",lg:"lg"},Pi=Wb("gs-interactive 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:{[Ga.default]:"bg-transparent disabled:bg-transparent disabled:text-foreground/50",[Ga.outline]:"border-input bg-transparent hover:bg-accent hover:text-accent-foreground disabled:bg-transparent disabled:text-foreground/50 disabled:border-border/50"},size:{[hi.sm]:"h-7 px-1.5 min-w-7 text-xs",[hi.md]:"h-10 px-3 min-w-10",[hi.lg]:"h-11 px-5 min-w-11"}},defaultVariants:{variant:Ga.default,size:hi.md}}),uu=Ub(({className:e,variant:t,size:r,...o},a)=>{let n=c(r);return $b(cu.Root,{ref:a,className:i(Pi({variant:t,size:n}),e),...o},void 0,!1,void 0,this)});uu.displayName="Toggle";import*as xi from"@radix-ui/react-toggle-group";import{cva as Kb}from"class-variance-authority";import{createContext as Yb,forwardRef as fu,useContext as Xb}from"react";import{jsxDEV as Wa}from"react/jsx-dev-runtime";var Zb={default:"default",outline:"outline"},qb={sm:"sm",md:"md",lg:"lg"},gu=Kb("flex items-center justify-center gap-1"),yu=Yb({size:qb.md,variant:Zb.default}),vu=fu(({className:e,variant:t,size:r,children:o,...a},n)=>{let s=c(r);return Wa(xi.Root,{ref:n,className:i(gu(),e),...a,children:Wa(yu.Provider,{value:{variant:t,size:s},children:o},void 0,!1,void 0,this)},void 0,!1,void 0,this)});vu.displayName="ToggleGroup";var bu=fu(({className:e,children:t,variant:r,size:o,...a},n)=>{let s=Xb(yu),l=c(o);return Wa(xi.Item,{ref:n,className:i(Pi({variant:r??s.variant,size:l??s.size}),e),...a,children:t},void 0,!1,void 0,this)});bu.displayName="ToggleGroupItem";import{cva as Tu}from"class-variance-authority";import{forwardRef as Ci}from"react";import{jsxDEV as zi}from"react/jsx-dev-runtime";var et={sm:"sm",md:"md",lg:"lg"},hu=Tu("flex items-center border-b border-border bg-background",{variants:{size:{[et.sm]:"gap-1.5 px-3 py-1.5",[et.md]:"gap-2 px-4 py-2",[et.lg]:"gap-3 px-5 py-2.5"}},defaultVariants:{size:et.md}}),Pu=Ci(({className:e,size:t=et.md,...r},o)=>{let a=c(t);return zi("div",{ref:o,role:"toolbar",className:i(hu({size:a}),e),...r},void 0,!1,void 0,this)});Pu.displayName="Toolbar";var xu=Tu("flex items-center",{variants:{size:{[et.sm]:"gap-1",[et.md]:"gap-1.5",[et.lg]:"gap-2"}},defaultVariants:{size:et.md}}),Cu=Ci(({className:e,size:t=et.md,...r},o)=>{let a=c(t);return zi("div",{ref:o,role:"group",className:i(xu({size:a}),e),...r},void 0,!1,void 0,this)});Cu.displayName="ToolbarGroup";var zu=Ci(({className:e,...t},r)=>{return zi("div",{ref:r,role:"none",className:i("h-5 w-px shrink-0 bg-border",e),...t},void 0,!1,void 0,this)});zu.displayName="ToolbarSeparator";var Su=Ci(({className:e,...t},r)=>{return zi("div",{ref:r,className:i("flex-1",e),...t},void 0,!1,void 0,this)});Su.displayName="ToolbarSpacer";import*as lt from"@radix-ui/react-tooltip";import{cva as Jb}from"class-variance-authority";import{createContext as Qb,forwardRef as Nu,useContext as wu}from"react";import{jsxDEV as Co}from"react/jsx-dev-runtime";var Eb=lt.Provider,Ua=Qb(!1),Ru=({persistOnClick:e=!1,children:t,...r})=>Co(Ua.Provider,{value:e,children:Co(lt.Root,{...r,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this);Ru.displayName="Tooltip";var Mu=Nu(({onClick:e,onPointerDown:t,...r},o)=>{let a=wu(Ua);return Co(lt.Trigger,{ref:o,onClick:a?(n)=>{n.preventDefault(),e?.(n)}:e,onPointerDown:a?(n)=>{n.preventDefault(),t?.(n)}:t,...r},void 0,!1,void 0,this)});Mu.displayName="TooltipTrigger";var ar={sm:"sm",md:"md",lg:"lg",xl:"xl"},Lu=Jb("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:{[ar.sm]:"px-2 py-1 text-xs",[ar.md]:"px-3 py-1.5 text-xs",[ar.lg]:"px-4 py-2 text-sm",[ar.xl]:"px-5 py-2.5 text-sm"}},defaultVariants:{size:ar.md}}),Hu=Nu(({className:e,sideOffset:t=4,onPointerDownOutside:r,size:o=ar.md,...a},n)=>{let s=wu(Ua),l=c(o);return Co(lt.Portal,{children:Co(lt.Content,{ref:n,sideOffset:t,className:i(Lu({size:l}),e),onPointerDownOutside:s?(m)=>{m.preventDefault(),r?.(m)}:r,...a},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Hu.displayName="TooltipContent";import{createContext as jb,useCallback as nr,useContext as eT,useEffect as wi,useLayoutEffect as tT,useMemo as Si,useRef as Ot,useState as ku}from"react";import{jsxDEV as rT}from"react/jsx-dev-runtime";var Au=typeof window<"u"?tT:wi,Ka=jb(null);function Ni(e,t){return e.theme===t.theme&&e.colorScheme===t.colorScheme}var sr=({children:e,value:t,initialState:r,onChange:o,onStateChange:a,transformState:n,readState:s,writeState:l,syncWithSystem:m=!0,enableTransition:d=!1,transitionDuration:f,defaultTheme:u,defaultColorScheme:h,themes:p,attribute:y,colorSchemeAttribute:C,darkClassName:R,storage:w})=>{let T=Si(()=>Ur({defaultTheme:u,defaultColorScheme:h,themes:p,attribute:y,colorSchemeAttribute:C,darkClassName:R,storage:w}),[u,h,p,y,C,R,w]),[v,x]=ku(()=>mt(r,T)),[I,S]=ku(Hi),z=Si(()=>t?mt(t,T):null,[t,T])??v,D=Si(()=>({...z,resolvedColorScheme:$a(z.colorScheme,I)}),[z,I]),W=t!==void 0,O=Ot(z);O.current=z;let U=Ot(!1),N=Ot(!1),V=Ot(!1),P=Ot(z),F=Ot(null),Q=Ot(d);Q.current=d;let L=Ot(f);L.current=f;let Y=nr((k)=>{return Mi(k)},[]),g=nr((k,q)=>{Li(k,q)},[]),b=s??Y,M=l??g;wi(()=>{if(!m||typeof window>"u"||typeof window.matchMedia!=="function")return;let k=window.matchMedia("(prefers-color-scheme: dark)"),q=()=>{S(k.matches?dt.dark:dt.light)};return q(),k.addEventListener("change",q),()=>k.removeEventListener("change",q)},[m]),wi(()=>{if(W)return;x((k)=>{let q=mt(k,T);return Ni(k,q)?k:q})},[T,W]),Au(()=>{if(W||U.current)return;U.current=!0;let k=b(T);if(!k)return;let q=O.current,oe=mt(k,T),xe={reason:"hydrate",previousState:q},pt=n?mt(n(oe,xe),T):oe;if(Ni(q,pt))return;F.current=xe,x(pt),o?.(pt,xe),a?.(pt,xe)},[T,W,o,a,b,n]),Au(()=>{if(typeof document>"u")return;let k=!V.current;if(V.current=!0,!k&&Q.current&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches){let oe=L.current??200,xe=document.createElement("style");xe.setAttribute("data-gs-theme-transition",""),xe.textContent=`*, *::before, *::after { transition: color ${oe}ms ease, background-color ${oe}ms ease, border-color ${oe}ms ease, box-shadow ${oe}ms ease, fill ${oe}ms ease, stroke ${oe}ms ease !important; }`,document.head.appendChild(xe),Ri(document.documentElement,D,T);let pt=requestAnimationFrame(()=>{setTimeout(()=>xe.remove(),oe)});return()=>{cancelAnimationFrame(pt),xe.remove()}}Ri(document.documentElement,D,T);return},[T,D]),wi(()=>{if(typeof window>"u")return;if(!N.current){N.current=!0,P.current=z;return}let k=P.current;if(Ni(k,z))return;let q=F.current??{reason:"set-state",previousState:k};F.current=null,M(z,T,q),P.current=z},[T,z,M]);let E=nr((k,q)=>{let oe=O.current,xe=typeof k==="function"?k(oe):k,pt=mt({theme:xe.theme??oe.theme,colorScheme:xe.colorScheme??oe.colorScheme},T),zo={reason:q,previousState:oe},So=n?mt(n(pt,zo),T):pt;if(Ni(oe,So))return;if(F.current=zo,!W)x(So);o?.(So,zo),a?.(So,zo)},[T,W,o,a,n]),Z=nr((k)=>{E(k,"set-state")},[E]),Se=nr((k)=>{E({theme:k},"set-theme")},[E]),j=nr((k)=>{E({colorScheme:k},"set-color-scheme")},[E]),H=nr(()=>{let k=D.resolvedColorScheme===dt.dark?dt.light:dt.dark;E({colorScheme:k},"toggle-color-scheme")},[D.resolvedColorScheme,E]),re=Si(()=>({theme:z.theme,colorScheme:z.colorScheme,resolvedColorScheme:D.resolvedColorScheme,state:z,resolvedState:D,contract:T,themes:T.themes,setTheme:Se,setColorScheme:j,setState:Z,toggleColorScheme:H}),[z,D,T,Se,j,Z,H]);return rT(Ka.Provider,{value:re,children:e},void 0,!1,void 0,this)};sr.displayName="ThemeProvider";var ki=()=>{let e=eT(Ka);if(!e)throw Error("useTheme must be used within a ThemeProvider");return e};import{jsxDEV as Ai}from"react/jsx-dev-runtime";function Vi(e){return typeof e==="object"&&e!==null}function bt(e){return typeof e==="string"&&e.trim().length>0}function Iu(e){if(!Vi(e))return!1;return Object.values(e).every(bt)}function Du(e){if(!Vi(e))return!1;if(!Iu(e.light))return!1;if(e.dark===void 0)return!0;return Iu(e.dark)}function Fu(e){return Vi(e)&&bt(e.cssText)}function oT(e){return Vi(e)&&bt(e.theme)}function Ya(e){return Error(`Invalid theme registry definition: ${e}`)}function Vu(e){let t=new Set,r=[];for(let o of e){if(!bt(o)||t.has(o))continue;t.add(o),r.push(o)}return r}function iT(e){return e.filter(bt).join(`
5
5
 
6
- `)}function iT(e){let t=[],r=[],o=[];for(let[a,n]of Object.entries(e)){if(!bt(a))continue;if(t.push(a),bt(n)){o.push(n);continue}if(Du(n)){o.push(n.cssText);continue}if(Vu(n)){r.push({theme:a,light:n.light,dark:n.dark});continue}throw Ya(`record key "${a}" has unsupported value shape`)}return{themeNames:t,tokenDefinitions:r,cssBlocks:o}}function aT(e){let t=[],r=[],o=[];for(let a of e){if(bt(a)){t.push(a);continue}if(!rT(a))throw Ya("array entry must be a theme name or an object with `theme`");let n=a.theme;if(t.push(n),Du(a)){o.push(a.cssText);continue}if(Vu(a)){r.push({theme:n,light:a.light,dark:a.dark});continue}throw Ya(`array entry "${n}" has unsupported value shape`)}return{themeNames:t,tokenDefinitions:r,cssBlocks:o}}function nT(e){if(Array.isArray(e))return aT(e);return iT(e)}function Fu(e){return e}function Xa(e){let{themes:t,cssText:r,...o}=e,a=nT(t),n=Iu(a.themeNames),s=Ur({...o,themes:n}),l=Ii({themes:a.tokenDefinitions,attribute:s.attribute,darkClassName:s.darkClassName}),m=oT([l,...a.cssBlocks,r??""]),d=Iu(s.themes);if(d.length===0)d.push(s.defaultTheme);return{defaultTheme:s.defaultTheme,themes:d,cssText:m,contract:s}}function Di({registry:e,children:t,...r}){return Ai(sr,{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)}Di.displayName="ThemeRegistryProvider";function Fi({registry:e,id:t,nonce:r,media:o}){if(!bt(e.cssText))return null;return Ai("style",{id:t,nonce:r,media:o,children:e.cssText},void 0,!1,void 0,this)}Fi.displayName="ThemeStyles";function Ou(e){let t=Xa(e),{themes:r,cssText:o,...a}=e;return{registry:t,provider:({children:m,...d})=>{return Ai(Di,{registry:t,...a,...d,children:m},void 0,!1,void 0,this)},styles:(m={})=>{return Ai(Fi,{registry:t,...m},void 0,!1,void 0,this)},useTheme:()=>{return ki()}}}import{jsxDEV as ef}from"react/jsx-dev-runtime";function tf({children:e,density:t=No,defaultTheme:r="ghostly-solutions",defaultColorScheme:o=dt.system,...a}){return ef(sr,{defaultTheme:r,defaultColorScheme:o,...a,children:ef(wo,{density:t,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)}tf.displayName="UIProvider";import*as Bt from"react";var sT=()=>{};function lT({prop:e,defaultProp:t,onChange:r=sT}){let[o,a]=mT({defaultProp:t,onChange:r}),n=e!==void 0,s=n?e:o,l=Bt.useCallback((m)=>{if(n){let f=typeof m==="function"?m(e):m;if(f!==e)r(f)}else a(m)},[n,e,a,r]);return[s,l]}function mT({defaultProp:e,onChange:t}){let r=Bt.useState(e),[o]=r,a=Bt.useRef(o),n=t;return Bt.useEffect(()=>{if(a.current!==o)n?.(o),a.current=o},[o,n]),r}export{Li as writeThemeStateToBrowserStorage,Oa as useToast,ki as useTheme,to as usePlatform,vv as useOverlay,wa as useHotkey,Er as useFormField,c as useDensitySize,of as useDensity,lT as useControllableState,eo as useComposedRefs,gg as useCommandShortcut,Ei as useCommand,Mu as tooltipContentVariants,Tu as toolbarVariants,Pu as toolbarGroupVariants,Pi as toggleVariants,fu as toggleGroupVariants,Aa as toastVariants,Ia as toastActionVariants,au as toast,Bc as timelineVariants,$c as timelineTitleVariants,Yc as timelineTimeVariants,_c as timelineItemVariants,Wc as timelineDotVariants,Kc as timelineDescriptionVariants,Uc as timelineContentVariants,Gc as timelineConnectorVariants,Fc as textareaVariants,Hc as tabsTriggerVariants,Lc as tabsListVariants,kc as tabsContentVariants,uc as tableVariants,vc as tableRowVariants,fc as tableHeaderVariants,bc as tableHeadVariants,yc as tableFooterVariants,cc as tableContainerVariants,Tc as tableCellVariants,hc as tableCaptionVariants,gc as tableBodyVariants,mc as switchVariants,Zp as stepperVariants,qp as stepVariants,jp as stepTitleVariants,Jp as stepIndicatorVariants,ec as stepDescriptionVariants,Ep as stepContentVariants,Qp as stepConnectorVariants,Yp as statCardVariants,ci as spotlightStatusVariants,ui as spotlightStatusTitleVariants,$p as spotlightStatusDescriptionVariants,Up as spotlightShortcutVariants,Dp as spotlightResultsVariants,kp as spotlightPanelVariants,Hp as spotlightOverlayVariants,Op as spotlightOptionVariants,Gp as spotlightOptionTitleVariants,Bp as spotlightOptionIconVariants,Wp as spotlightOptionDescriptionVariants,_p as spotlightOptionContentVariants,pi as spotlightKbdVariants,Ip as spotlightInputVariants,Vp as spotlightIconVariants,Ap as spotlightHeaderVariants,Fp as spotlightGroupLabelVariants,zp as sliderVariants,Sp as sliderTrackVariants,wp as sliderThumbVariants,Np as sliderRangeVariants,vp as skeletonVariants,bp as skeletonTextVariants,hp as skeletonButtonVariants,Tp as skeletonAvatarVariants,ad as sheetOverlayVariants,nd as sheetContentVariants,Xu as serializeThemeState,gp as separatorVariants,lp as selectTriggerVariants,mp as selectContentVariants,Ed as segmentedControlVariants,ep as segmentedControlLabelVariants,jd as segmentedControlItemVariants,Kd as scrollBarVariants,Yd as scrollBarThumbVariants,$d as scrollAreaVariants,Qu as resolveThemeState,Fd as resizablePanelVariants,Dd as resizablePanelGroupVariants,Od as resizableHandleVariants,Bd as resizableHandleIconVariants,qu as readThemeStateFromCookieHeader,Mi as readThemeStateFromBrowserStorage,Ad as radioItemVariants,kd as radioGroupVariants,wd as progressVariants,Rd as progressIndicatorVariants,Lr as popoverContentVariants,Zu as parseThemeState,Sa as parseHotkey,gd as paginationVariants,Xo as paginationLinkVariants,vd as paginationItemVariants,bd as paginationEllipsisVariants,yd as paginationContentVariants,jm as otpSlotVariants,rd as otpSeparatorVariants,td as otpPlaceholderVariants,ed as otpInputVariants,Em as otpGroupVariants,Qm as otpContainerVariants,mt as normalizeThemeState,Gm as navigationMenuViewportVariants,Fm as navigationMenuVariants,Bm as navigationMenuTriggerVariants,Om as navigationMenuListVariants,Ey as navigationMenuLinkVariants,Wm as navigationMenuIndicatorVariants,_m as navigationMenuContentVariants,Im as multiselectTriggerVariants,Na as matchHotkey,Mm as labelVariants,Nm as kbdVariants,vr as isSameDay,zm as inputVariants,Pm as hoverCardContentVariants,Eu as getThemeRootProps,Hi as getSystemColorScheme,uT as formatHotkeyTokens,ro as formatHotkey,fm as formFieldVariants,am as fileUploadVariants,la as fileUploadTextVariants,sm as fileUploadListVariants,lm as fileUploadItemVariants,dm as fileUploadItemSizeVariants,pm as fileUploadItemRemoveVariants,mm as fileUploadItemNameVariants,nm as fileUploadIconVariants,Ql as errorBoundaryVariants,jl as errorBoundaryTitleVariants,El as errorBoundaryIconVariants,rm as errorBoundaryDetailsVariants,em as errorBoundaryDescriptionVariants,tm as errorBoundaryActionsVariants,$l as emptyStateVariants,Yl as emptyStateTitleVariants,Kl as emptyStateIconVariants,Xl as emptyStateDescriptionVariants,Zl as emptyStateActionsVariants,kl as dropdownMenuShortcutVariants,Hl as dropdownMenuSeparatorVariants,Ml as dropdownMenuRadioItemVariants,Ll as dropdownMenuLabelVariants,sa as dropdownMenuItemVariants,na as dropdownMenuContentVariants,Rl as dropdownMenuCheckboxItemVariants,bl as drawerOverlayVariants,hl as drawerHandleVariants,Tl as drawerContentVariants,ul as dialogContentVariants,ma as detectPlatform,Fu as defineThemes,qw as cva,Ii as createThemesCss,Ou as createThemeSystem,Ju as createThemeSetCookieHeader,Xa as createThemeRegistry,ju as createThemeCss,Ur as createThemeContract,cT as createOptionalContext,pT as createContext,tl as contextMenuShortcutVariants,el as contextMenuSeparatorVariants,Es as contextMenuRadioItemVariants,js as contextMenuLabelVariants,ta as contextMenuItemVariants,ea as contextMenuContentVariants,Qs as contextMenuCheckboxItemVariants,dT as composeRefs,Bs as commandShortcutVariants,Os as commandSeparatorVariants,Hs as commandOverlayVariants,_s as commandLoadingVariants,As as commandListVariants,Fs as commandItemVariants,ks as commandInputVariants,Vs as commandGroupVariants,Ds as commandGroupHeadingVariants,Is as commandEmptyVariants,Ls as commandDialogVariants,ws as collapsibleContentVariants,bs as codeBlockVariants,Cs as codeBlockPreVariants,zs as codeBlockLineVariants,Ss as codeBlockLineNumberVariants,hs as codeBlockLanguageVariants,Ts as codeBlockHeaderVariants,Ps as codeBlockCopyVariants,xs as codeBlockContentVariants,i as cn,gs as checkboxVariants,ss as cardVariants,is as calendarWeekdayVariants,es as calendarVariants,rs as calendarTitleVariants,Ji as calendarNavButtonVariants,ts as calendarHeaderVariants,os as calendarGridVariants,as as calendarDayVariants,Kr as buttonVariants,pn as buttonIconVariants,qn as buttonGroupVariants,cn as buttonBadgeVariants,_n as breadcrumbSeparatorVariants,Bn as breadcrumbPageVariants,Dn as breadcrumbListVariants,On as breadcrumbLinkVariants,Fn as breadcrumbItemVariants,Gn as breadcrumbEllipsisVariants,kn as badgeVariants,Mn as avatarVariants,on as alertVariants,an as alertTitleVariants,bn as alertDialogOverlayVariants,Tn as alertDialogContentVariants,nn as alertDescriptionVariants,Qa as accordionTriggerVariants,Ja as accordionItemVariants,Ea as accordionContentVariants,cf as XCircleIcon,ct as Variant,tf as UIProvider,Ru as TooltipTrigger,ar as TooltipSize,Qb as TooltipProvider,Lu as TooltipContent,wu as Tooltip,zu as ToolbarSpacer,et as ToolbarSize,Cu as ToolbarSeparator,xu as ToolbarGroup,hu as Toolbar,vu as ToggleGroupItem,yu as ToggleGroup,cu as Toggle,du as Toaster,Ue as ToastSize,Ec as TimelineTitle,eu as TimelineTime,Zc as TimelineItem,Jc as TimelineDot,jc as TimelineDescription,Qc as TimelineContent,qc as TimelineConnector,Xc as Timeline,Fi as ThemeStyles,Di as ThemeRegistryProvider,sr as ThemeProvider,Oc as Textarea,Vc as TabsTrigger,Ic as TabsList,Dc as TabsContent,vb as Tabs,Ce as TableSize,Sc as TableRow,xc as TableHeader,Nc as TableHead,zc as TableFooter,wc as TableCell,Rc as TableCaption,Cc as TableBody,Pc as Table,Yu as THEME_COOKIE_NAME,_u as THEME_COLOR_SCHEME_ATTR,Bu as THEME_ATTR,_r as SwitchStatus,Re as SwitchSize,dc as Switch,tc as Stepper,nc as StepTitle,oc as StepIndicator,sc as StepDescription,ac as StepContent,ic as StepConnector,rc as Step,er as StatCardTrend,We as StatCardSize,Xp as StatCard,Br as SpotlightStatus,jt as SpotlightSize,Kp as Spotlight,mr as SpinnerSize,dr as Spinner,Rp as Slider,Pp as SkeletonText,fe as SkeletonSize,Cp as SkeletonButton,xp as SkeletonAvatar,vo as Skeleton,ke as Size,mv as SheetTrigger,dd as SheetTitle,ae as SheetSize,sd as SheetPortal,ua as SheetOverlay,ld as SheetHeader,md as SheetFooter,pd as SheetDescription,Ko as SheetContent,dv as SheetClose,ca as Sheet,yo as SeparatorOrientation,yp as Separator,Uv as SelectValue,dp as SelectTrigger,Fr as SelectStatus,te as SelectSize,fp as SelectSeparator,cp as SelectLabel,up as SelectItem,Wv as SelectGroup,fo as SelectContentWidthMode,Ov as SelectContentAlign,pp as SelectContent,Gv as Select,He as SegmentedControlSize,op as SegmentedControlLabelItem,rp as SegmentedControlItem,tp as SegmentedControl,va as ScrollBar,Xd as ScrollArea,Wu as STORAGE_VERSION,$u as STORAGE_THEME_STATE_KEY,Uu as STORAGE_PREFIX,Ku as STORAGE_DENSITY_KEY,_d as ResizablePanelGroup,Gd as ResizablePanel,Wd as ResizableHandle,Ir as RadioStatus,Ee as RadioSize,Vd as RadioGroupItem,Id as RadioGroup,Md as Progress,Fy as PopoverTrigger,Mr as PopoverSize,km as PopoverContent,By as PopoverClose,Oy as PopoverAnchor,Dy as Popover,Ge as PaginationSize,Cd as PaginationPrevious,zd as PaginationNext,xd as PaginationLink,Pd as PaginationItem,Sd as PaginationEllipsis,hd as PaginationContent,Td as Pagination,fd as OverlayProvider,od as OTPInput,da as NavigationMenuViewport,Km as NavigationMenuTrigger,Je as NavigationMenuSize,$m as NavigationMenuList,tv as NavigationMenuLink,ev as NavigationMenuItem,Xm as NavigationMenuIndicator,Ym as NavigationMenuContent,Um as NavigationMenu,ue as MultiselectSize,Vm as Multiselect,Ay as Loader,Rr as LabelSize,Lm as Label,wr as KbdSize,wm as Kbd,Sm as Input,pf as InfoIcon,pr as IconSize,fy as HoverCardTrigger,Nr as HoverCardSize,xm as HoverCardContent,uy as HoverCard,Zr as GroupOrientation,Be as FormFieldSize,ym as FormFieldLabel,Tm as FormFieldError,bm as FormFieldDescription,hm as FormFieldControl,gm as FormField,cm as FileUpload,om as ErrorBoundary,ql as EmptyState,Zg as DropdownMenuTrigger,Vl as DropdownMenuSubTrigger,Dl as DropdownMenuSubContent,Qg as DropdownMenuSub,Ul as DropdownMenuShortcut,Wl as DropdownMenuSeparator,_l as DropdownMenuRadioItem,Eg as DropdownMenuRadioGroup,Jg as DropdownMenuPortal,Gl as DropdownMenuLabel,Go as DropdownMenuItemVariant,Ol as DropdownMenuItem,qg as DropdownMenuGroup,Fl as DropdownMenuContent,Bl as DropdownMenuCheckboxItem,Il as DropdownMenu,Dg as DrawerTrigger,Sl as DrawerTitle,Oe as DrawerSize,Pl as DrawerPortal,aa as DrawerOverlay,Cl as DrawerHeader,zl as DrawerFooter,Nl as DrawerDescription,xl as DrawerContent,Fg as DrawerClose,Vg as Drawer,Lg as DialogTrigger,yl as DialogTitle,wt as DialogSize,cl as DialogPortal,oa as DialogOverlay,fl as DialogHeader,gl as DialogFooter,vl as DialogDescription,Bo as DialogContent,Hg as DialogClose,ra as Dialog,wo as DensityProvider,No as DENSITY_DEFAULT,Gu as DARK_CLASS,Cg as ContextMenuTrigger,ol as ContextMenuSubTrigger,il as ContextMenuSubContent,Ng as ContextMenuSub,pl as ContextMenuShortcut,dl as ContextMenuSeparator,ll as ContextMenuRadioItem,wg as ContextMenuRadioGroup,Sg as ContextMenuPortal,ml as ContextMenuLabel,Fo as ContextMenuItemVariant,nl as ContextMenuItem,zg as ContextMenuGroup,al as ContextMenuContent,sl as ContextMenuCheckboxItem,xg as ContextMenu,qs as CommandShortcut,Zs as CommandSeparator,Js as CommandLoading,$s as CommandList,Do as CommandItemVariant,Xs as CommandItem,Us as CommandInput,Ys as CommandGroup,Ks as CommandEmpty,Ws as CommandDialog,ji as Command,dt as ColorScheme,dg as CollapsibleTrigger,Rs as CollapsibleContent,mg as Collapsible,Ns as CodeBlock,Pr as CheckboxStatus,Ye as CheckboxSize,ys as Checkbox,df as CheckCircleIcon,cs as CardTitle,ms as CardHeader,ps as CardFooter,us as CardDescription,ds as CardContent,ls as Card,ns as Calendar,fn as ButtonLabel,un as ButtonIcon,Jn as ButtonGroup,gn as ButtonBadge,yn as Button,pe as BreadcrumbSize,Xn as BreadcrumbSeparator,Yn as BreadcrumbPage,Un as BreadcrumbList,Kn as BreadcrumbLink,$n as BreadcrumbItem,Zn as BreadcrumbEllipsis,Wn as Breadcrumb,ve as BadgeVariant,ht as BadgeTone,xt as BadgeSize,Vn as BadgeGroup,Ho as Badge,De as AvatarSize,Ln as AvatarImage,Hn as AvatarGroup,Zi as AvatarFallback,Xi as Avatar,Cf as AspectRatio,mf as AlertTriangleIcon,ln as AlertTitle,xf as AlertDialogTrigger,zn as AlertDialogTitle,Pt as AlertDialogSize,hn as AlertDialogPortal,Yi as AlertDialogOverlay,xn as AlertDialogHeader,Cn as AlertDialogFooter,Sn as AlertDialogDescription,Pn as AlertDialogContent,wn as AlertDialogCancel,Nn as AlertDialogAction,Pf as AlertDialog,mn as AlertDescription,sn as Alert,tn as AccordionTrigger,Se as AccordionSize,en as AccordionItem,rn as AccordionContent,ja as Accordion};
6
+ `)}function aT(e){let t=[],r=[],o=[];for(let[a,n]of Object.entries(e)){if(!bt(a))continue;if(t.push(a),bt(n)){o.push(n);continue}if(Fu(n)){o.push(n.cssText);continue}if(Du(n)){r.push({theme:a,light:n.light,dark:n.dark});continue}throw Ya(`record key "${a}" has unsupported value shape`)}return{themeNames:t,tokenDefinitions:r,cssBlocks:o}}function nT(e){let t=[],r=[],o=[];for(let a of e){if(bt(a)){t.push(a);continue}if(!oT(a))throw Ya("array entry must be a theme name or an object with `theme`");let n=a.theme;if(t.push(n),Fu(a)){o.push(a.cssText);continue}if(Du(a)){r.push({theme:n,light:a.light,dark:a.dark});continue}throw Ya(`array entry "${n}" has unsupported value shape`)}return{themeNames:t,tokenDefinitions:r,cssBlocks:o}}function sT(e){if(Array.isArray(e))return nT(e);return aT(e)}function Ou(e){return e}function Xa(e){let{themes:t,cssText:r,...o}=e,a=sT(t),n=Vu(a.themeNames),s=Ur({...o,themes:n}),l=Ii({themes:a.tokenDefinitions,attribute:s.attribute,darkClassName:s.darkClassName}),m=iT([l,...a.cssBlocks,r??""]),d=Vu(s.themes);if(d.length===0)d.push(s.defaultTheme);return{defaultTheme:s.defaultTheme,themes:d,cssText:m,contract:s}}function Di({registry:e,children:t,...r}){return Ai(sr,{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)}Di.displayName="ThemeRegistryProvider";function Fi({registry:e,id:t,nonce:r,media:o}){if(!bt(e.cssText))return null;return Ai("style",{id:t,nonce:r,media:o,children:e.cssText},void 0,!1,void 0,this)}Fi.displayName="ThemeStyles";function Bu(e){let t=Xa(e),{themes:r,cssText:o,...a}=e;return{registry:t,provider:({children:m,...d})=>{return Ai(Di,{registry:t,...a,...d,children:m},void 0,!1,void 0,this)},styles:(m={})=>{return Ai(Fi,{registry:t,...m},void 0,!1,void 0,this)},useTheme:()=>{return ki()}}}import{jsxDEV as tf}from"react/jsx-dev-runtime";function rf({children:e,density:t=No,defaultTheme:r="ghostly-solutions",defaultColorScheme:o=dt.system,...a}){return tf(sr,{defaultTheme:r,defaultColorScheme:o,...a,children:tf(wo,{density:t,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)}rf.displayName="UIProvider";import*as Bt from"react";var lT=()=>{};function mT({prop:e,defaultProp:t,onChange:r=lT}){let[o,a]=dT({defaultProp:t,onChange:r}),n=e!==void 0,s=n?e:o,l=Bt.useCallback((m)=>{if(n){let f=typeof m==="function"?m(e):m;if(f!==e)r(f)}else a(m)},[n,e,a,r]);return[s,l]}function dT({defaultProp:e,onChange:t}){let r=Bt.useState(e),[o]=r,a=Bt.useRef(o),n=t;return Bt.useEffect(()=>{if(a.current!==o)n?.(o),a.current=o},[o,n]),r}export{Li as writeThemeStateToBrowserStorage,Oa as useToast,ki as useTheme,to as usePlatform,bv as useOverlay,wa as useHotkey,Er as useFormField,c as useDensitySize,af as useDensity,mT as useControllableState,eo as useComposedRefs,yg as useCommandShortcut,Ei as useCommand,Lu as tooltipContentVariants,hu as toolbarVariants,xu as toolbarGroupVariants,Pi as toggleVariants,gu as toggleGroupVariants,Aa as toastVariants,Ia as toastActionVariants,nu as toast,_c as timelineVariants,Kc as timelineTitleVariants,Xc as timelineTimeVariants,Gc as timelineItemVariants,Uc as timelineDotVariants,Yc as timelineDescriptionVariants,$c as timelineContentVariants,Wc as timelineConnectorVariants,Oc as textareaVariants,kc as tabsTriggerVariants,Hc as tabsListVariants,Ac as tabsContentVariants,fc as tableVariants,bc as tableRowVariants,gc as tableHeaderVariants,Tc as tableHeadVariants,vc as tableFooterVariants,uc as tableContainerVariants,hc as tableCellVariants,Pc as tableCaptionVariants,yc as tableBodyVariants,dc as switchVariants,qp as stepperVariants,Jp as stepVariants,ec as stepTitleVariants,Qp as stepIndicatorVariants,tc as stepDescriptionVariants,jp as stepContentVariants,Ep as stepConnectorVariants,Xp as statCardVariants,ci as spotlightStatusVariants,ui as spotlightStatusTitleVariants,Kp as spotlightStatusDescriptionVariants,$p as spotlightShortcutVariants,Fp as spotlightResultsVariants,Ap as spotlightPanelVariants,kp as spotlightOverlayVariants,Bp as spotlightOptionVariants,Wp as spotlightOptionTitleVariants,_p as spotlightOptionIconVariants,Up as spotlightOptionDescriptionVariants,Gp as spotlightOptionContentVariants,pi as spotlightKbdVariants,Vp as spotlightInputVariants,Dp as spotlightIconVariants,Ip as spotlightHeaderVariants,Op as spotlightGroupLabelVariants,Sp as sliderVariants,Np as sliderTrackVariants,Rp as sliderThumbVariants,wp as sliderRangeVariants,bp as skeletonVariants,Tp as skeletonTextVariants,Pp as skeletonButtonVariants,hp as skeletonAvatarVariants,ad as sheetOverlayVariants,nd as sheetContentVariants,Zu as serializeThemeState,yp as separatorVariants,mp as selectTriggerVariants,dp as selectContentVariants,Ed as segmentedControlVariants,ep as segmentedControlLabelVariants,jd as segmentedControlItemVariants,Kd as scrollBarVariants,Yd as scrollBarThumbVariants,$d as scrollAreaVariants,Eu as resolveThemeState,Fd as resizablePanelVariants,Dd as resizablePanelGroupVariants,Od as resizableHandleVariants,Bd as resizableHandleIconVariants,Ju as readThemeStateFromCookieHeader,Mi as readThemeStateFromBrowserStorage,Ad as radioItemVariants,kd as radioGroupVariants,wd as progressVariants,Rd as progressIndicatorVariants,Lr as popoverContentVariants,qu as parseThemeState,Sa as parseHotkey,gd as paginationVariants,Xo as paginationLinkVariants,vd as paginationItemVariants,bd as paginationEllipsisVariants,yd as paginationContentVariants,jm as otpSlotVariants,rd as otpSeparatorVariants,td as otpPlaceholderVariants,ed as otpInputVariants,Em as otpGroupVariants,Qm as otpContainerVariants,mt as normalizeThemeState,Gm as navigationMenuViewportVariants,Fm as navigationMenuVariants,Bm as navigationMenuTriggerVariants,Om as navigationMenuListVariants,jy as navigationMenuLinkVariants,Wm as navigationMenuIndicatorVariants,_m as navigationMenuContentVariants,Im as multiselectTriggerVariants,Na as matchHotkey,Mm as labelVariants,Nm as kbdVariants,vr as isSameDay,zm as inputVariants,Pm as hoverCardContentVariants,ju as getThemeRootProps,Hi as getSystemColorScheme,fT as formatHotkeyTokens,ro as formatHotkey,fm as formFieldVariants,am as fileUploadVariants,la as fileUploadTextVariants,sm as fileUploadListVariants,lm as fileUploadItemVariants,dm as fileUploadItemSizeVariants,pm as fileUploadItemRemoveVariants,mm as fileUploadItemNameVariants,nm as fileUploadIconVariants,Ql as errorBoundaryVariants,jl as errorBoundaryTitleVariants,El as errorBoundaryIconVariants,rm as errorBoundaryDetailsVariants,em as errorBoundaryDescriptionVariants,tm as errorBoundaryActionsVariants,$l as emptyStateVariants,Yl as emptyStateTitleVariants,Kl as emptyStateIconVariants,Xl as emptyStateDescriptionVariants,Zl as emptyStateActionsVariants,kl as dropdownMenuShortcutVariants,Hl as dropdownMenuSeparatorVariants,Ml as dropdownMenuRadioItemVariants,Ll as dropdownMenuLabelVariants,sa as dropdownMenuItemVariants,na as dropdownMenuContentVariants,Rl as dropdownMenuCheckboxItemVariants,bl as drawerOverlayVariants,hl as drawerHandleVariants,Tl as drawerContentVariants,ul as dialogContentVariants,ma as detectPlatform,Ou as defineThemes,Jw as cva,Ii as createThemesCss,Bu as createThemeSystem,Qu as createThemeSetCookieHeader,Xa as createThemeRegistry,ef as createThemeCss,Ur as createThemeContract,uT as createOptionalContext,cT as createContext,tl as contextMenuShortcutVariants,el as contextMenuSeparatorVariants,Es as contextMenuRadioItemVariants,js as contextMenuLabelVariants,ta as contextMenuItemVariants,ea as contextMenuContentVariants,Qs as contextMenuCheckboxItemVariants,pT as composeRefs,Bs as commandShortcutVariants,Os as commandSeparatorVariants,Hs as commandOverlayVariants,_s as commandLoadingVariants,As as commandListVariants,Fs as commandItemVariants,ks as commandInputVariants,Vs as commandGroupVariants,Ds as commandGroupHeadingVariants,Is as commandEmptyVariants,Ls as commandDialogVariants,ws as collapsibleContentVariants,bs as codeBlockVariants,Cs as codeBlockPreVariants,zs as codeBlockLineVariants,Ss as codeBlockLineNumberVariants,hs as codeBlockLanguageVariants,Ts as codeBlockHeaderVariants,Ps as codeBlockCopyVariants,xs as codeBlockContentVariants,i as cn,gs as checkboxVariants,ss as cardVariants,is as calendarWeekdayVariants,es as calendarVariants,rs as calendarTitleVariants,Ji as calendarNavButtonVariants,ts as calendarHeaderVariants,os as calendarGridVariants,as as calendarDayVariants,Kr as buttonVariants,pn as buttonIconVariants,qn as buttonGroupVariants,cn as buttonBadgeVariants,_n as breadcrumbSeparatorVariants,Bn as breadcrumbPageVariants,Dn as breadcrumbListVariants,On as breadcrumbLinkVariants,Fn as breadcrumbItemVariants,Gn as breadcrumbEllipsisVariants,kn as badgeVariants,Mn as avatarVariants,on as alertVariants,an as alertTitleVariants,bn as alertDialogOverlayVariants,Tn as alertDialogContentVariants,nn as alertDescriptionVariants,Qa as accordionTriggerVariants,Ja as accordionItemVariants,Ea as accordionContentVariants,uf as XCircleIcon,ct as Variant,rf as UIProvider,Mu as TooltipTrigger,ar as TooltipSize,Eb as TooltipProvider,Hu as TooltipContent,Ru as Tooltip,Su as ToolbarSpacer,et as ToolbarSize,zu as ToolbarSeparator,Cu as ToolbarGroup,Pu as Toolbar,bu as ToggleGroupItem,vu as ToggleGroup,uu as Toggle,pu as Toaster,Ue as ToastSize,jc as TimelineTitle,tu as TimelineTime,qc as TimelineItem,Qc as TimelineDot,eu as TimelineDescription,Ec as TimelineContent,Jc as TimelineConnector,Zc as Timeline,Fi as ThemeStyles,Di as ThemeRegistryProvider,sr as ThemeProvider,Bc as Textarea,Dc as TabsTrigger,Vc as TabsList,Fc as TabsContent,bb as Tabs,ze as TableSize,Nc as TableRow,Cc as TableHeader,wc as TableHead,Sc as TableFooter,Rc as TableCell,Mc as TableCaption,zc as TableBody,xc as Table,Xu as THEME_COOKIE_NAME,Gu as THEME_COLOR_SCHEME_ATTR,_u as THEME_ATTR,_r as SwitchStatus,Me as SwitchSize,pc as Switch,rc as Stepper,sc as StepTitle,ic as StepIndicator,lc as StepDescription,nc as StepContent,ac as StepConnector,oc as Step,er as StatCardTrend,We as StatCardSize,Zp as StatCard,Br as SpotlightStatus,jt as SpotlightSize,Yp as Spotlight,mr as SpinnerSize,dr as Spinner,Mp as Slider,xp as SkeletonText,ge as SkeletonSize,zp as SkeletonButton,Cp as SkeletonAvatar,vo as Skeleton,ke as Size,dv as SheetTrigger,dd as SheetTitle,ae as SheetSize,sd as SheetPortal,ua as SheetOverlay,ld as SheetHeader,md as SheetFooter,pd as SheetDescription,Ko as SheetContent,pv as SheetClose,ca as Sheet,yo as SeparatorOrientation,vp as Separator,$v as SelectValue,pp as SelectTrigger,Fr as SelectStatus,te as SelectSize,gp as SelectSeparator,up as SelectLabel,fp as SelectItem,Uv as SelectGroup,fo as SelectContentWidthMode,Bv as SelectContentAlign,cp as SelectContent,Wv as Select,fe as SegmentedControlSize,ip as SegmentedControlLabelItem,op as SegmentedControlItem,rp as SegmentedControl,va as ScrollBar,Xd as ScrollArea,Uu as STORAGE_VERSION,Ku as STORAGE_THEME_STATE_KEY,$u as STORAGE_PREFIX,Yu as STORAGE_DENSITY_KEY,_d as ResizablePanelGroup,Gd as ResizablePanel,Wd as ResizableHandle,Ir as RadioStatus,Ee as RadioSize,Vd as RadioGroupItem,Id as RadioGroup,Md as Progress,Oy as PopoverTrigger,Mr as PopoverSize,km as PopoverContent,_y as PopoverClose,By as PopoverAnchor,Fy as Popover,Ge as PaginationSize,Cd as PaginationPrevious,zd as PaginationNext,xd as PaginationLink,Pd as PaginationItem,Sd as PaginationEllipsis,hd as PaginationContent,Td as Pagination,fd as OverlayProvider,od as OTPInput,da as NavigationMenuViewport,Km as NavigationMenuTrigger,Je as NavigationMenuSize,$m as NavigationMenuList,rv as NavigationMenuLink,tv as NavigationMenuItem,Xm as NavigationMenuIndicator,Ym as NavigationMenuContent,Um as NavigationMenu,ue as MultiselectSize,Vm as Multiselect,Iy as Loader,Rr as LabelSize,Lm as Label,wr as KbdSize,wm as Kbd,Sm as Input,cf as InfoIcon,pr as IconSize,gy as HoverCardTrigger,Nr as HoverCardSize,xm as HoverCardContent,fy as HoverCard,Zr as GroupOrientation,Be as FormFieldSize,ym as FormFieldLabel,Tm as FormFieldError,bm as FormFieldDescription,hm as FormFieldControl,gm as FormField,cm as FileUpload,om as ErrorBoundary,ql as EmptyState,qg as DropdownMenuTrigger,Vl as DropdownMenuSubTrigger,Dl as DropdownMenuSubContent,Eg as DropdownMenuSub,Ul as DropdownMenuShortcut,Wl as DropdownMenuSeparator,_l as DropdownMenuRadioItem,jg as DropdownMenuRadioGroup,Qg as DropdownMenuPortal,Gl as DropdownMenuLabel,Go as DropdownMenuItemVariant,Ol as DropdownMenuItem,Jg as DropdownMenuGroup,Fl as DropdownMenuContent,Bl as DropdownMenuCheckboxItem,Il as DropdownMenu,Fg as DrawerTrigger,Sl as DrawerTitle,Oe as DrawerSize,Pl as DrawerPortal,aa as DrawerOverlay,Cl as DrawerHeader,zl as DrawerFooter,Nl as DrawerDescription,xl as DrawerContent,Og as DrawerClose,Dg as Drawer,Hg as DialogTrigger,yl as DialogTitle,wt as DialogSize,cl as DialogPortal,oa as DialogOverlay,fl as DialogHeader,gl as DialogFooter,vl as DialogDescription,Bo as DialogContent,kg as DialogClose,ra as Dialog,wo as DensityProvider,No as DENSITY_DEFAULT,Wu as DARK_CLASS,zg as ContextMenuTrigger,ol as ContextMenuSubTrigger,il as ContextMenuSubContent,wg as ContextMenuSub,pl as ContextMenuShortcut,dl as ContextMenuSeparator,ll as ContextMenuRadioItem,Rg as ContextMenuRadioGroup,Ng as ContextMenuPortal,ml as ContextMenuLabel,Fo as ContextMenuItemVariant,nl as ContextMenuItem,Sg as ContextMenuGroup,al as ContextMenuContent,sl as ContextMenuCheckboxItem,Cg as ContextMenu,qs as CommandShortcut,Zs as CommandSeparator,Js as CommandLoading,$s as CommandList,Do as CommandItemVariant,Xs as CommandItem,Us as CommandInput,Ys as CommandGroup,Ks as CommandEmpty,Ws as CommandDialog,ji as Command,dt as ColorScheme,pg as CollapsibleTrigger,Rs as CollapsibleContent,dg as Collapsible,Ns as CodeBlock,Pr as CheckboxStatus,Ye as CheckboxSize,ys as Checkbox,pf as CheckCircleIcon,cs as CardTitle,ms as CardHeader,ps as CardFooter,us as CardDescription,ds as CardContent,ls as Card,ns as Calendar,fn as ButtonLabel,un as ButtonIcon,Jn as ButtonGroup,gn as ButtonBadge,yn as Button,pe as BreadcrumbSize,Xn as BreadcrumbSeparator,Yn as BreadcrumbPage,Un as BreadcrumbList,Kn as BreadcrumbLink,$n as BreadcrumbItem,Zn as BreadcrumbEllipsis,Wn as Breadcrumb,be as BadgeVariant,ht as BadgeTone,xt as BadgeSize,Vn as BadgeGroup,Ho as Badge,De as AvatarSize,Ln as AvatarImage,Hn as AvatarGroup,Zi as AvatarFallback,Xi as Avatar,zf as AspectRatio,df as AlertTriangleIcon,ln as AlertTitle,Cf as AlertDialogTrigger,zn as AlertDialogTitle,Pt as AlertDialogSize,hn as AlertDialogPortal,Yi as AlertDialogOverlay,xn as AlertDialogHeader,Cn as AlertDialogFooter,Sn as AlertDialogDescription,Pn as AlertDialogContent,wn as AlertDialogCancel,Nn as AlertDialogAction,xf as AlertDialog,mn as AlertDescription,sn as Alert,tn as AccordionTrigger,Ne as AccordionSize,en as AccordionItem,rn as AccordionContent,ja as Accordion};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghostly-solutions/ui",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "Core UI components — Radix + Tailwind + cva",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",