@ghostly-solutions/ui 0.3.10 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/dist/chunk-fqe20k50.js +11 -0
  2. package/dist/components/alert-dialog/alert-dialog.d.ts +3 -1
  3. package/dist/components/alert-dialog/alert-dialog.d.ts.map +1 -1
  4. package/dist/components/aspect-ratio/aspect-ratio.d.ts +6 -2
  5. package/dist/components/aspect-ratio/aspect-ratio.d.ts.map +1 -1
  6. package/dist/components/aspect-ratio/index.d.ts +1 -1
  7. package/dist/components/aspect-ratio/index.d.ts.map +1 -1
  8. package/dist/components/badge/badge.d.ts +6 -3
  9. package/dist/components/badge/badge.d.ts.map +1 -1
  10. package/dist/components/breadcrumb/breadcrumb.builders.d.ts +23 -0
  11. package/dist/components/breadcrumb/breadcrumb.builders.d.ts.map +1 -0
  12. package/dist/components/breadcrumb/breadcrumb.contract.d.ts +63 -0
  13. package/dist/components/breadcrumb/breadcrumb.contract.d.ts.map +1 -0
  14. package/dist/components/breadcrumb/breadcrumb.logic.d.ts +7 -0
  15. package/dist/components/breadcrumb/breadcrumb.logic.d.ts.map +1 -0
  16. package/dist/components/breadcrumb/breadcrumb.smart.d.ts +34 -0
  17. package/dist/components/breadcrumb/breadcrumb.smart.d.ts.map +1 -0
  18. package/dist/components/breadcrumb/index.d.ts +4 -0
  19. package/dist/components/breadcrumb/index.d.ts.map +1 -1
  20. package/dist/components/button/button.d.ts +1 -1
  21. package/dist/components/calendar/calendar.d.ts.map +1 -1
  22. package/dist/components/command/command.d.ts +5 -1
  23. package/dist/components/command/command.d.ts.map +1 -1
  24. package/dist/components/context-menu/context-menu.d.ts +3 -2
  25. package/dist/components/context-menu/context-menu.d.ts.map +1 -1
  26. package/dist/components/dialog/dialog.d.ts +8 -3
  27. package/dist/components/dialog/dialog.d.ts.map +1 -1
  28. package/dist/components/drawer/drawer.d.ts.map +1 -1
  29. package/dist/components/dropdown-menu/dropdown-menu.d.ts +4 -6
  30. package/dist/components/dropdown-menu/dropdown-menu.d.ts.map +1 -1
  31. package/dist/components/error-boundary/error-boundary.d.ts +3 -3
  32. package/dist/components/form-field/form-field.d.ts.map +1 -1
  33. package/dist/components/hover-card/hover-card.d.ts +2 -1
  34. package/dist/components/hover-card/hover-card.d.ts.map +1 -1
  35. package/dist/components/kbd/kbd.d.ts +2 -0
  36. package/dist/components/kbd/kbd.d.ts.map +1 -1
  37. package/dist/components/label/label.d.ts.map +1 -1
  38. package/dist/components/loader/loader.d.ts +3 -2
  39. package/dist/components/loader/loader.d.ts.map +1 -1
  40. package/dist/components/multiselect/multiselect.d.ts.map +1 -1
  41. package/dist/components/navbar/navbar.d.ts +1 -1
  42. package/dist/components/otp-input/otp-input.d.ts +1 -1
  43. package/dist/components/overlay/index.d.ts +1 -1
  44. package/dist/components/overlay/index.d.ts.map +1 -1
  45. package/dist/components/overlay/overlay.d.ts +11 -9
  46. package/dist/components/overlay/overlay.d.ts.map +1 -1
  47. package/dist/components/overlay/overlay.shared.d.ts +6 -0
  48. package/dist/components/overlay/overlay.shared.d.ts.map +1 -0
  49. package/dist/components/popover/popover.d.ts +4 -4
  50. package/dist/components/popover/popover.d.ts.map +1 -1
  51. package/dist/components/progress/progress.d.ts.map +1 -1
  52. package/dist/components/resizable-panel/resizable-panel.d.ts +1 -1
  53. package/dist/components/resizable-panel/resizable-panel.d.ts.map +1 -1
  54. package/dist/components/scroll-area/scroll-area.d.ts.map +1 -1
  55. package/dist/components/segmented-control/segmented-control.d.ts +6 -1
  56. package/dist/components/segmented-control/segmented-control.d.ts.map +1 -1
  57. package/dist/components/select/select.d.ts.map +1 -1
  58. package/dist/components/sheet/sheet.d.ts +8 -3
  59. package/dist/components/sheet/sheet.d.ts.map +1 -1
  60. package/dist/components/slider/slider.d.ts +1 -3
  61. package/dist/components/slider/slider.d.ts.map +1 -1
  62. package/dist/components/spotlight/index.d.ts +1 -1
  63. package/dist/components/spotlight/index.d.ts.map +1 -1
  64. package/dist/components/spotlight/spotlight.d.ts +4 -7
  65. package/dist/components/spotlight/spotlight.d.ts.map +1 -1
  66. package/dist/components/tabs/tabs.d.ts +2 -3
  67. package/dist/components/tabs/tabs.d.ts.map +1 -1
  68. package/dist/components/toast/toaster.d.ts.map +1 -1
  69. package/dist/components/toast/use-toast.d.ts.map +1 -1
  70. package/dist/components/tooltip/tooltip.d.ts +2 -1
  71. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  72. package/dist/components/ui-provider/index.d.ts +1 -1
  73. package/dist/components/ui-provider/index.d.ts.map +1 -1
  74. package/dist/components/ui-provider/ui-provider.d.ts +7 -5
  75. package/dist/components/ui-provider/ui-provider.d.ts.map +1 -1
  76. package/dist/contracts/component-contracts.d.ts +75 -0
  77. package/dist/contracts/component-contracts.d.ts.map +1 -0
  78. package/dist/contracts/events.d.ts +14 -0
  79. package/dist/contracts/events.d.ts.map +1 -0
  80. package/dist/contracts/hotkeys.d.ts +108 -0
  81. package/dist/contracts/hotkeys.d.ts.map +1 -0
  82. package/dist/contracts/index.d.ts +7 -0
  83. package/dist/contracts/index.d.ts.map +1 -0
  84. package/dist/contracts/overlay.d.ts +17 -0
  85. package/dist/contracts/overlay.d.ts.map +1 -0
  86. package/dist/contracts/primitives.d.ts +72 -0
  87. package/dist/contracts/primitives.d.ts.map +1 -0
  88. package/dist/contracts/theme.d.ts +24 -0
  89. package/dist/contracts/theme.d.ts.map +1 -0
  90. package/dist/hooks/index.d.ts +1 -0
  91. package/dist/hooks/index.d.ts.map +1 -1
  92. package/dist/hooks/use-hotkey.d.ts.map +1 -1
  93. package/dist/hooks/use-media-query.d.ts.map +1 -1
  94. package/dist/hooks/use-platform.d.ts.map +1 -1
  95. package/dist/hooks/use-reduced-motion.d.ts +4 -0
  96. package/dist/hooks/use-reduced-motion.d.ts.map +1 -0
  97. package/dist/index.d.ts +7 -4
  98. package/dist/index.d.ts.map +1 -1
  99. package/dist/index.js +4 -4
  100. package/dist/lib/density.d.ts +2 -13
  101. package/dist/lib/density.d.ts.map +1 -1
  102. package/dist/lib/hotkey.d.ts +6 -91
  103. package/dist/lib/hotkey.d.ts.map +1 -1
  104. package/dist/lib/index.d.ts +1 -1
  105. package/dist/lib/index.d.ts.map +1 -1
  106. package/dist/lib/platform.d.ts +6 -3
  107. package/dist/lib/platform.d.ts.map +1 -1
  108. package/dist/lib/theme/constants.d.ts +4 -4
  109. package/dist/lib/theme/constants.d.ts.map +1 -1
  110. package/dist/lib/theme/core.d.ts +2 -15
  111. package/dist/lib/theme/core.d.ts.map +1 -1
  112. package/dist/lib/theme/index.d.ts +3 -3
  113. package/dist/lib/theme/index.d.ts.map +1 -1
  114. package/dist/lib/theme/system.d.ts.map +1 -1
  115. package/dist/lib/types.d.ts +2 -37
  116. package/dist/lib/types.d.ts.map +1 -1
  117. package/dist/server.d.ts +9 -4
  118. package/dist/server.d.ts.map +1 -1
  119. package/dist/server.js +1 -1
  120. package/dist/styles/index.css +1 -1
  121. package/dist/styles/themes/base.css +1 -1
  122. package/dist/styles/themes/ghost-guard.css +1 -1
  123. package/dist/styles/themes/ghostly-solutions.css +1 -1
  124. package/package.json +1 -1
  125. package/dist/chunk-h6zev10f.js +0 -11
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import{A as af,B as Ia,C as Va,D as Jn,E as Fa,F as nf,G as sf,H as Aa,I as lf,J as Da,a,b as hT,c as ao,d as PT,e as xT,f as gn,g as CT,h as zT,i as Hn,j as kn,k as io,l as ST,m as ut,n as Xu,o as Zu,p as qu,q as Ju,r as Qu,s as Eu,t as ju,u as ef,v as Kr,w as ct,x as tf,y as rf,z as of}from"./chunk-h6zev10f.js";import{cva as pR}from"class-variance-authority";import*as at from"@radix-ui/react-accordion";import{cva as Ka}from"class-variance-authority";import{ChevronDown as ff}from"lucide-react";import{createContext as gf,forwardRef as ko,useContext as ri}from"react";import{createContext as pf,useContext as ti}from"react";import{jsxDEV as uf}from"react/jsx-dev-runtime";var Lo="md",$a=pf(Lo),Ho=({density:e,children:t})=>{return uf($a.Provider,{value:e,children:t},void 0,!1,void 0,this)};Ho.displayName="DensityProvider";var cf=()=>{return ti($a)};function c(e){let t=ti($a);if(e!==void 0)return e;return t}import{jsxDEV as xt}from"react/jsx-dev-runtime";var Re={sm:"sm",md:"md",lg:"lg"},Ya=gf(Re.md),oi=Ka("border-b border-border"),ai=Ka("gs-interactive flex flex-1 items-center justify-between font-medium hover:underline [&[data-state=open]>svg]:rotate-180",{variants:{size:{[Re.sm]:"py-3 text-xs [&>svg]:size-3.5",[Re.md]:"py-4 text-sm [&>svg]:size-4",[Re.lg]:"py-5 text-base [&>svg]:size-5"}},defaultVariants:{size:Re.md}}),ni=Ka("gs-accordion-content overflow-hidden",{variants:{size:{[Re.sm]:"text-xs",[Re.md]:"text-sm",[Re.lg]:"text-base"}},defaultVariants:{size:Re.md}}),yf={[Re.sm]:"pt-0 pb-3",[Re.md]:"pt-0 pb-4",[Re.lg]:"pt-0 pb-5"},ii=ko(({size:e=Re.md,...t},r)=>{let o=c(e)??Re.md;return xt(Ya.Provider,{value:o,children:xt(at.Root,{ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});ii.displayName="Accordion";var si=ko(({className:e,...t},r)=>xt(at.Item,{ref:r,className:a(oi(),e),...t},void 0,!1,void 0,this));si.displayName="AccordionItem";var li=ko(({className:e,children:t,...r},o)=>{let n=ri(Ya);return xt(at.Header,{className:"flex",children:xt(at.Trigger,{ref:o,className:a(ai({size:n}),e),...r,children:[t,xt(ff,{className:"shrink-0 transition-transform"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});li.displayName="AccordionTrigger";var mi=ko(({className:e,children:t,...r},o)=>{let n=ri(Ya);return xt(at.Content,{ref:o,className:a(ni({size:n}),e),...r,children:xt("div",{className:yf[n],children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});mi.displayName="AccordionContent";import{cva as Xa}from"class-variance-authority";import{TriangleAlert as vf,CircleCheck as bf,Info as Tf,CircleAlert as hf}from"lucide-react";import{forwardRef as Za}from"react";import{jsxDEV as qa}from"react/jsx-dev-runtime";var cr={default:"default",success:"success",warning:"warning",error:"error",info:"info"},Yr={sm:"sm",md:"md",lg:"lg",xl:"xl"},di=Xa("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:{[cr.default]:"bg-background text-foreground",[cr.success]:"border-success/50 text-success [&>svg]:text-success bg-success/10",[cr.warning]:"border-warning/50 text-warning [&>svg]:text-warning bg-warning/10",[cr.error]:"border-destructive/50 text-destructive [&>svg]:text-destructive bg-destructive/10",[cr.info]:"border-info/50 text-info [&>svg]:text-info bg-info/10"},size:{[Yr.sm]:"p-3 text-xs [&>svg]:top-3 [&>svg]:left-3 [&>svg~*]:pl-6",[Yr.md]:"p-4 text-sm",[Yr.lg]:"p-5 text-sm",[Yr.xl]:"p-6 text-base [&>svg]:top-6 [&>svg]:left-6 [&>svg~*]:pl-8"}},defaultVariants:{variant:cr.default,size:Yr.md}}),pi=Xa("mb-1 font-medium leading-none tracking-tight"),ci=Xa("text-sm [&_p]:leading-relaxed"),ui=Za(({className:e,variant:t,size:r,...o},n)=>{let i=c(r);return qa("div",{ref:n,role:"alert",className:a(di({variant:t,size:i}),e),...o},void 0,!1,void 0,this)});ui.displayName="Alert";var fi=Za(({className:e,...t},r)=>qa("h5",{ref:r,className:a(pi(),e),...t},void 0,!1,void 0,this));fi.displayName="AlertTitle";var gi=Za(({className:e,...t},r)=>qa("div",{ref:r,className:a(ci(),e),...t},void 0,!1,void 0,this));gi.displayName="AlertDescription";import*as he from"@radix-ui/react-alert-dialog";import{cva as Ci}from"class-variance-authority";import{forwardRef as gr}from"react";import{Slot as yi}from"@radix-ui/react-slot";import{cva as Qa}from"class-variance-authority";import{forwardRef as Ao}from"react";import{forwardRef as Pf}from"react";import{jsxDEV as Ja}from"react/jsx-dev-runtime";var ur={sm:"sm",md:"md",lg:"lg",xl:"xl"},xf={[ur.sm]:"h-4 w-4",[ur.md]:"h-5 w-5",[ur.lg]:"h-6 w-6",[ur.xl]:"h-8 w-8"},Ct=Pf(({className:e,size:t=ur.md,label:r="Loading",...o},n)=>{let i=c(t);return Ja("span",{ref:n,className:a("inline-flex items-center justify-center",e),role:"status","aria-label":r,...o,children:[Ja("span",{className:a("animate-spin rounded-full border-2 border-current border-r-transparent",xf[i])},void 0,!1,void 0,this),Ja("span",{className:"sr-only",children:r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Ct.displayName="Spinner";import{jsxDEV as gt}from"react/jsx-dev-runtime";var ft={primary:"primary",secondary:"secondary",neutral:"neutral",outline:"outline",ghost:"ghost",danger:"danger"},Ve={sm:"sm",md:"md",lg:"lg",xl:"xl",icon:"icon",iconSm:"icon-sm",iconLg:"icon-lg"},zt={default:"default",success:"success",warning:"warning",error:"error",info:"info"},fr={sm:"sm",md:"md",lg:"lg"},Cf="Loading",zf="button",Xr=Qa("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:{[ft.primary]:"border-primary bg-primary text-primary-foreground enabled:hover:bg-primary/90",[ft.secondary]:"border-secondary bg-secondary text-secondary-foreground enabled:hover:bg-secondary/90",[ft.neutral]:"border-border bg-muted text-foreground enabled:hover:bg-muted/90",[ft.outline]:"border-border bg-background text-foreground enabled:hover:border-primary enabled:hover:bg-muted/50",[ft.ghost]:"border-transparent bg-transparent text-foreground enabled:hover:bg-muted/70",[ft.danger]:"border-destructive bg-destructive text-destructive-foreground enabled:hover:bg-destructive/90"},size:{[Ve.sm]:"h-8 px-2.5 text-xs",[Ve.md]:"h-10 px-4 text-sm",[Ve.lg]:"h-11 px-5 text-sm",[Ve.xl]:"h-12 px-6 text-base",[Ve.icon]:"h-10 w-10 p-0",[Ve.iconSm]:"h-9 w-9 p-0",[Ve.iconLg]:"h-11 w-11 p-0"}},defaultVariants:{variant:ft.primary,size:Ve.md}}),vi=Qa("shrink-0",{variants:{size:{[fr.sm]:"size-3",[fr.md]:"size-4",[fr.lg]:"size-4.5"}},defaultVariants:{size:fr.md}}),bi=Qa("inline-flex items-center rounded-full border px-1.5 py-0.5 font-semibold text-[10px] leading-none",{variants:{tone:{[zt.default]:"border-border/70 bg-background/75 text-muted-foreground",[zt.success]:"border-success/35 bg-success/12 text-success",[zt.warning]:"border-warning/35 bg-warning/12 text-warning",[zt.error]:"border-destructive/35 bg-destructive/12 text-destructive",[zt.info]:"border-info/35 bg-info/12 text-info"}},defaultVariants:{tone:zt.default}});function Sf(e){return e===Ve.icon||e===Ve.iconSm||e===Ve.iconLg}function Nf(e,t,r){return e&&t?-1:r}function wf(e){return e["aria-label"]??e["aria-labelledby"]??e.title}function Rf(){if(typeof process>"u")return!0;return!0}var Ti=Ao(({className:e,size:t=fr.md,...r},o)=>gt(yi,{ref:o,className:a(vi({size:t}),e),...r},void 0,!1,void 0,this));Ti.displayName="ButtonIcon";var hi=Ao(({className:e,...t},r)=>gt("span",{ref:r,className:a("truncate",e),...t},void 0,!1,void 0,this));hi.displayName="ButtonLabel";var Pi=Ao(({className:e,tone:t=zt.default,...r},o)=>gt("span",{ref:o,className:a(bi({tone:t}),e),...r},void 0,!1,void 0,this));Pi.displayName="ButtonBadge";var xi=Ao(({className:e,variant:t=ft.primary,size:r=Ve.md,asChild:o=!1,loading:n=!1,loadingText:i=Cf,fullWidth:s=!1,leadingIcon:l,trailingIcon:d,disabled:m,children:f,type:u,tabIndex:h,onClick:p,...y},S)=>{let M=c(r),w=M??r,T=wf(y);if(Rf()&&Sf(w)&&!T)throw Error("Icon-size Button requires aria-label, aria-labelledby, or title.");let b=Boolean(m||n),x=a(Xr({variant:t,size:M}),s&&"w-full",e);if(o)return gt(yi,{ref:S,className:x,"aria-disabled":b||void 0,"aria-busy":n||void 0,tabIndex:Nf(!0,b,h),onClick:b?(O)=>{O.preventDefault()}:p,...y,children:f},void 0,!1,void 0,this);return gt("button",{ref:S,className:x,disabled:b,"aria-disabled":b,"aria-busy":n,tabIndex:h,type:u??zf,onClick:n?void 0:p,...y,children:[gt("span",{className:a("absolute inset-0 flex items-center justify-center transition-opacity duration-150",n?"opacity-100":"opacity-0"),"aria-hidden":"true",children:gt(Ct,{size:"sm"},void 0,!1,void 0,this)},void 0,!1,void 0,this),n&&gt("span",{className:"sr-only",children:i},void 0,!1,void 0,this),gt("span",{className:a("inline-flex items-center justify-center gap-2 transition-opacity duration-150",n&&"opacity-0"),children:[l,f,d]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});xi.displayName="Button";import{jsxDEV as nt}from"react/jsx-dev-runtime";var St={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},zi=Ci("gs-dialog-overlay fixed inset-0 z-50 bg-black/50"),Si=Ci("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:{[St.sm]:"max-w-sm",[St.md]:"max-w-md",[St.lg]:"max-w-lg",[St.xl]:"max-w-xl",[St.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:St.md}}),Mf=he.Root,Lf=he.Trigger,Ni=he.Portal,Ea=gr(({className:e,...t},r)=>nt(he.Overlay,{ref:r,className:a(zi(),e),...t},void 0,!1,void 0,this));Ea.displayName="AlertDialogOverlay";var wi=gr(({className:e,size:t=St.md,...r},o)=>{let n=c(t);return nt(Ni,{children:[nt(Ea,{},void 0,!1,void 0,this),nt(he.Content,{ref:o,className:a(Si({size:n}),e),...r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});wi.displayName="AlertDialogContent";var Ri=({className:e,...t})=>nt("div",{className:a("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);Ri.displayName="AlertDialogHeader";var Mi=({className:e,...t})=>nt("div",{className:a("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);Mi.displayName="AlertDialogFooter";var Li=gr(({className:e,...t},r)=>nt(he.Title,{ref:r,className:a("text-lg font-semibold",e),...t},void 0,!1,void 0,this));Li.displayName="AlertDialogTitle";var Hi=gr(({className:e,...t},r)=>nt(he.Description,{ref:r,className:a("text-sm text-muted-foreground",e),...t},void 0,!1,void 0,this));Hi.displayName="AlertDialogDescription";var ki=gr(({className:e,...t},r)=>nt(he.Action,{ref:r,className:a(Xr(),e),...t},void 0,!1,void 0,this));ki.displayName="AlertDialogAction";var Ai=gr(({className:e,...t},r)=>nt(he.Cancel,{ref:r,className:a(Xr({variant:"outline"}),"mt-2 sm:mt-0",e),...t},void 0,!1,void 0,this));Ai.displayName="AlertDialogCancel";import*as Ii from"@radix-ui/react-aspect-ratio";var Hf=Ii.Root;import*as vr from"@radix-ui/react-avatar";import{cva as kf}from"class-variance-authority";import{forwardRef as Io}from"react";import{jsxDEV as yr}from"react/jsx-dev-runtime";var De={sm:"sm",md:"md",lg:"lg",xl:"xl"},Vi=kf("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}}),ja=Io(({className:e,size:t=De.md,...r},o)=>{let n=c(t);return yr(vr.Root,{ref:o,className:a(Vi({size:n}),e),...r},void 0,!1,void 0,this)});ja.displayName="Avatar";var Fi=Io(({className:e,...t},r)=>yr(vr.Image,{ref:r,className:a("aspect-square h-full w-full object-cover",e),...t},void 0,!1,void 0,this));Fi.displayName="AvatarImage";var en=Io(({className:e,...t},r)=>yr(vr.Fallback,{ref:r,className:a("flex h-full w-full items-center justify-center rounded-full bg-muted font-medium text-muted-foreground",e),...t},void 0,!1,void 0,this));en.displayName="AvatarFallback";var Af={[De.sm]:"-space-x-2",[De.md]:"-space-x-3",[De.lg]:"-space-x-4",[De.xl]:"-space-x-5"},Oi=Io(({className:e,children:t,max:r,size:o=De.md,...n},i)=>{let s=c(o),l=Array.isArray(t)?t:[t],d=r?l.slice(0,r):l,m=r?Math.max(0,l.length-r):0;return yr("div",{ref:i,className:a("flex items-center",Af[s],e),...n,children:[d,m>0&&yr(ja,{size:s,className:"border-2 border-background",children:yr(en,{className:"text-xs",children:["+",m]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Oi.displayName="AvatarGroup";import{Slot as If}from"@radix-ui/react-slot";import{cva as Vf}from"class-variance-authority";import{X as Ff}from"lucide-react";import{forwardRef as Of}from"react";import{jsxDEV as Zr}from"react/jsx-dev-runtime";var ze={default:"default",primary:"primary",success:"success",warning:"warning",error:"error",info:"info",outline:"outline"},Nt={sm:"sm",md:"md",lg:"lg",dot:"dot"},Bi=Vf("inline-flex items-center justify-center gap-1 whitespace-nowrap rounded-full border font-medium",{variants:{variant:{[ze.default]:"border-border bg-muted text-muted-foreground",[ze.primary]:"border-primary/30 bg-primary/10 text-primary",[ze.success]:"border-success/30 bg-success/10 text-success",[ze.warning]:"border-warning/30 bg-warning/10 text-warning",[ze.error]:"border-destructive/30 bg-destructive/10 text-destructive",[ze.info]:"border-info/30 bg-info/10 text-info",[ze.outline]:"border-border bg-transparent text-foreground"},solid:{true:"",false:""},size:{[Nt.sm]:"h-5 px-2 text-[10px]",[Nt.md]:"h-6 px-2.5 text-xs",[Nt.lg]:"h-7 px-3 text-sm",[Nt.dot]:"h-2 w-2 p-0"}},compoundVariants:[{solid:!0,variant:ze.default,className:"border-transparent bg-foreground text-background"},{solid:!0,variant:ze.primary,className:"border-primary bg-primary text-primary-foreground"},{solid:!0,variant:ze.success,className:"border-success bg-success text-background"},{solid:!0,variant:ze.warning,className:"border-warning bg-warning text-background"},{solid:!0,variant:ze.error,className:"border-destructive bg-destructive text-destructive-foreground"},{solid:!0,variant:ze.info,className:"border-info bg-info text-background"},{solid:!0,variant:ze.outline,className:"border-border bg-foreground text-background"}],defaultVariants:{variant:ze.default,solid:!1,size:Nt.md}}),Vo=Of(({className:e,variant:t=ze.default,size:r=Nt.md,solid:o=!1,pulse:n=!1,removable:i=!1,onRemove:s,onClick:l,children:d,asChild:m=!1,...f},u)=>{let h=c(r),p=Boolean(l),y=h===Nt.dot,S=(T)=>{T.stopPropagation(),s?.(T)},M=a(Bi({variant:t,solid:o,size:h}),p&&"cursor-pointer",n&&"animate-pulse",i&&!y&&"pr-1",e),w=i&&!y&&Zr("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:S,"aria-label":"Remove",tabIndex:-1,children:Zr(Ff,{className:"size-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(m)return Zr(If,{ref:u,className:M,onClick:l,...f,children:d},void 0,!1,void 0,this);if(p)return Zr("button",{ref:u,className:M,onClick:l,type:"button",...f,children:[!y&&d,w]},void 0,!0,void 0,this);return Zr("span",{ref:u,className:M,...f,children:[!y&&d,w]},void 0,!0,void 0,this)});Vo.displayName="Badge";import{Children as Bf,cloneElement as Df,forwardRef as _f,isValidElement as Gf,useCallback as Di,useEffect as Wf,useLayoutEffect as Uf,useRef as $f,useState as Kf}from"react";import{jsxDEV as _i}from"react/jsx-dev-runtime";function Yf(e){let t=[];return Bf.forEach(e,(r,o)=>{if(!Gf(r))return;let n=r.key??o;t.push({key:n,element:r,isLeaving:!1})}),t}function Xf(e,t){let r=new Set(t.map((i)=>i.key)),o=new Set(e.map((i)=>i.key)),n=[];for(let i of e)if(r.has(i.key)){let s=t.find((l)=>l.key===i.key);if(s)n.push({...s,isLeaving:!1})}else n.push({...i,isLeaving:!0});for(let i of t)if(!o.has(i.key))n.push(i);return n}function Zf(e,t,r){if(r.current)return r.current=!1,t;return Xf(e,t)}var qf=typeof window<"u"?Uf:Wf,Gi=_f(({children:e,className:t,onRemove:r,gap:o="sm"},n)=>{let[i,s]=Kf([]),l=$f(!0);qf(()=>{let u=Yf(e);s((h)=>Zf(h,u,l))},[e]);let d=Di((u)=>{s((h)=>h.filter((p)=>p.key!==u))},[]),m=Di((u)=>{r?.(u)},[r]),f={sm:"gap-1",md:"gap-2",lg:"gap-3"}[o];return _i("div",{ref:n,className:a("inline-flex flex-wrap items-center",f,t),children:i.map((u)=>{let h={};if(u.element.props.removable&&r)h.onRemove=()=>{m(u.key)};let p=a("inline-flex transition-all duration-200",u.isLeaving&&"pointer-events-none scale-95 opacity-0");return _i("span",{className:p,onTransitionEnd:u.isLeaving?()=>d(u.key):void 0,children:Df(u.element,h)},u.key,!1,void 0,this)})},void 0,!1,void 0,this)});Gi.displayName="BadgeGroup";import{Slot as Jf}from"@radix-ui/react-slot";import{cva as br}from"class-variance-authority";import{ChevronRight as Qf,MoreHorizontal as Ef}from"lucide-react";import{createContext as jf,forwardRef as qr,useContext as tn}from"react";import{jsxDEV as Ze}from"react/jsx-dev-runtime";var ge={sm:"sm",md:"md",lg:"lg"},Fo=jf(ge.md),Wi=br("flex flex-wrap items-center break-words text-muted-foreground",{variants:{size:{[ge.sm]:"gap-1 text-xs",[ge.md]:"gap-1.5 text-sm sm:gap-2.5",[ge.lg]:"gap-2 text-base sm:gap-3"}},defaultVariants:{size:ge.md}}),Ui=br("inline-flex items-center gap-1.5"),$i=br("gs-interactive hover:text-foreground focus-visible:outline-none focus-visible:text-foreground"),Ki=br("font-normal text-foreground"),Yi=br("",{variants:{size:{[ge.sm]:"[&>svg]:size-3",[ge.md]:"[&>svg]:size-3.5",[ge.lg]:"[&>svg]:size-4"}},defaultVariants:{size:ge.md}}),Xi=br("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}}),Zi=qr(({size:e=ge.md,...t},r)=>{let o=c(e)??ge.md;return Ze(Fo.Provider,{value:o,children:Ze("nav",{ref:r,"aria-label":"breadcrumb",...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Zi.displayName="Breadcrumb";var qi=qr(({className:e,...t},r)=>{let o=tn(Fo);return Ze("ol",{ref:r,className:a(Wi({size:o}),e),...t},void 0,!1,void 0,this)});qi.displayName="BreadcrumbList";var Ji=qr(({className:e,...t},r)=>Ze("li",{ref:r,className:a(Ui(),e),...t},void 0,!1,void 0,this));Ji.displayName="BreadcrumbItem";var Qi=qr(({asChild:e,className:t,...r},o)=>{return Ze(e?Jf:"a",{ref:o,className:a($i(),t),...r},void 0,!1,void 0,this)});Qi.displayName="BreadcrumbLink";var Ei=qr(({className:e,...t},r)=>Ze("span",{ref:r,role:"link",tabIndex:0,"aria-disabled":"true","aria-current":"page",className:a(Ki(),e),...t},void 0,!1,void 0,this));Ei.displayName="BreadcrumbPage";var ji=({children:e,className:t,...r})=>{let o=tn(Fo),n={[ge.sm]:"size-3",[ge.md]:"size-3.5",[ge.lg]:"size-4"};return Ze("li",{role:"presentation","aria-hidden":"true",className:a(Yi({size:o}),t),...r,children:e??Ze(Qf,{className:n[o]},void 0,!1,void 0,this)},void 0,!1,void 0,this)};ji.displayName="BreadcrumbSeparator";var es=({className:e,...t})=>{let r=tn(Fo);return Ze("span",{role:"presentation","aria-hidden":"true",className:a(Xi({size:r}),e),...t,children:[Ze(Ef,{},void 0,!1,void 0,this),Ze("span",{className:"sr-only",children:"More"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};es.displayName="BreadcrumbEllipsis";import{cva as eg}from"class-variance-authority";import{forwardRef as tg}from"react";import{jsxDEV as rg}from"react/jsx-dev-runtime";var Jr={horizontal:"horizontal",vertical:"vertical"},ts=eg("inline-flex items-stretch",{variants:{orientation:{[Jr.horizontal]:"flex-row",[Jr.vertical]:"flex-col"},attached:{true:"gap-0 [&>*:not(:first-child)]:rounded-l-none [&>*:not(:last-child)]:rounded-r-none",false:"gap-2"}},defaultVariants:{orientation:Jr.horizontal,attached:!1}}),rs=tg(({className:e,orientation:t=Jr.horizontal,attached:r=!1,fullWidth:o=!1,...n},i)=>rg("div",{ref:i,className:a(ts({orientation:t,attached:r}),o&&"w-full",e),...n},void 0,!1,void 0,this));rs.displayName="ButtonGroup";import{cva as wt}from"class-variance-authority";import{forwardRef as og,useCallback as Tr,useEffect as ag,useMemo as os,useState as as}from"react";import{jsxDEV as Fe}from"react/jsx-dev-runtime";var D={sm:"sm",md:"md",lg:"lg",xl:"xl"},is=wt("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:{[D.sm]:"p-3 text-sm",[D.md]:"p-4 text-sm",[D.lg]:"p-5 text-base",[D.xl]:"p-6 text-base"}},defaultVariants:{size:D.md}}),ss=wt("mb-3 flex items-center justify-between",{variants:{size:{[D.sm]:"gap-1",[D.md]:"gap-2",[D.lg]:"gap-3",[D.xl]:"gap-3"}},defaultVariants:{size:D.md}}),ls=wt("font-semibold text-foreground",{variants:{size:{[D.sm]:"text-sm",[D.md]:"text-base",[D.lg]:"text-lg",[D.xl]:"text-xl"}},defaultVariants:{size:D.md}}),rn=wt(["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:{[D.sm]:"size-7",[D.md]:"size-8",[D.lg]:"size-10",[D.xl]:"size-10"}},defaultVariants:{size:D.md}}),ms=wt("grid grid-cols-7",{variants:{size:{[D.sm]:"gap-0.5",[D.md]:"gap-1",[D.lg]:"gap-1.5",[D.xl]:"gap-2"}},defaultVariants:{size:D.md}}),ds=wt("text-center font-semibold uppercase tracking-wide text-muted-foreground",{variants:{size:{[D.sm]:"py-1 text-[10px]",[D.md]:"py-1.5 text-xs",[D.lg]:"py-2 text-sm",[D.xl]:"py-2 text-sm"}},defaultVariants:{size:D.md}}),ps=wt(["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:{[D.sm]:"size-7 text-xs",[D.md]:"size-9 text-sm",[D.lg]:"size-10 text-base",[D.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:D.md,state:"default"}}),ng=wt("rounded-md border border-transparent",{variants:{size:{[D.sm]:"size-7",[D.md]:"size-9",[D.lg]:"size-10",[D.xl]:"size-11"}},defaultVariants:{size:D.md}}),ns=["Su","Mo","Tu","We","Th","Fr","Sa"],ig=["January","February","March","April","May","June","July","August","September","October","November","December"],yt=(e)=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),hr=(e,t)=>{return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()},cs=og(({className:e,size:t="md",cellSize:r,mode:o="single",value:n,defaultValue:i,onChange:s,rangeValue:l,onRangeChange:d,viewMonth:m,onViewMonthChange:f,minDate:u,maxDate:h,disabledDates:p=[],weekStartsOn:y=1,highlightToday:S=!0,...M},w)=>{let T=c(t)??D.md,b=c(r??T)??T,[x,O]=as(n??i??null),[R,I]=as(n??i??new Date),C=m??R,V=Tr((g)=>{if(f){let v=typeof g==="function"?g(m??R):g;f(v)}else I((v)=>{return typeof g==="function"?g(v):g})},[m,R,f]),Y=n!==void 0?n:x,F=u?yt(u):null,K=h?yt(h):null;ag(()=>{if(n!==void 0){if(O(n??null),n&&!m)I(n)}},[n,m]);let N=Tr((g,v)=>{return(new Date(g,v,1).getDay()-y+7)%7},[y]),A=os(()=>{let g=C.getFullYear(),v=C.getMonth(),H=N(g,v),te=new Date(g,v+1,0).getDate(),ee=[];for(let W=0;W<H;W+=1)ee.push({key:`leading-${g}-${v}-${W}`,date:null});for(let W=1;W<=te;W+=1)ee.push({key:`day-${g}-${v}-${W}`,date:new Date(g,v,W)});let Ae=(7-ee.length%7)%7;for(let W=0;W<Ae;W+=1)ee.push({key:`trailing-${g}-${v}-${W}`,date:null});return ee},[C,N]),z=Tr((g)=>{let v=yt(g);if(F&&v<F)return!0;if(K&&v>K)return!0;return p.some((H)=>hr(v,yt(H)))},[F,K,p]),B=Tr((g)=>{if(z(g))return"disabled";if(o==="range"&&l){let{from:v,to:H}=l;if(v&&hr(g,v))return"rangeStart";if(H&&hr(g,H))return"rangeEnd";if(v&&H){let te=yt(g),ee=yt(v),Ae=yt(H);if(te>ee&&te<Ae)return"range"}}if(o==="single"&&Y&&hr(g,Y))return"selected";if(S&&hr(g,new Date))return"today";return"default"},[Y,S,z,o,l]),U=Tr((g)=>{if(z(g))return;let v=new Date(g);if(o==="range"){if(!l?.from||l.from&&l.to)d?.({from:v,to:void 0});else{let H=yt(l.from);if(yt(v)<H)d?.({from:v,to:l.from});else d?.({from:l.from,to:v})}return}if(n===void 0)O(v);s?.(v)},[z,o,s,d,l,n]),L=Tr((g)=>{V((v)=>{let H=new Date(v);return H.setMonth(H.getMonth()+g),H})},[V]),X=os(()=>{return[...ns.slice(y),...ns.slice(0,y)]},[y]);return Fe("div",{ref:w,className:a(is({size:T}),e),...M,children:[Fe("div",{className:a(ss({size:T})),children:[Fe("button",{type:"button",onClick:()=>L(-1),className:a(rn({size:T})),"aria-label":"Previous month",children:Fe("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Fe("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),Fe("span",{className:a(ls({size:T})),children:[ig[C.getMonth()]," ",C.getFullYear()]},void 0,!0,void 0,this),Fe("button",{type:"button",onClick:()=>L(1),className:a(rn({size:T})),"aria-label":"Next month",children:Fe("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Fe("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),Fe("div",{className:a(ms({size:T})),children:[X.map((g)=>Fe("div",{className:a(ds({size:b})),children:g},g,!1,void 0,this)),A.map((g)=>{if(!g.date)return Fe("div",{"aria-hidden":"true",className:a(ng({size:b}))},g.key,!1,void 0,this);let v=g.date,H=B(v);return Fe("button",{type:"button",onClick:()=>U(v),disabled:H==="disabled",className:a(ps({size:b,state:H})),children:v.getDate()},g.key,!1,void 0,this)})]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});cs.displayName="Calendar";import{Slot as Pr}from"@radix-ui/react-slot";import{cva as sg}from"class-variance-authority";import{forwardRef as xr}from"react";import{jsxDEV as Cr}from"react/jsx-dev-runtime";var Oo={default:"default",muted:"muted",danger:"danger"},us=sg("gs-interactive relative overflow-hidden rounded-[var(--radius)] border bg-card text-card-foreground shadow-[var(--shadow-sm)]",{variants:{variant:{[Oo.default]:"border-border",[Oo.muted]:"border-border/70 bg-muted/40",[Oo.danger]:"border-destructive/30 bg-destructive/[0.06]"}},defaultVariants:{variant:Oo.default}}),fs=xr(({asChild:e=!1,className:t,variant:r,...o},n)=>{return Cr(e?Pr:"div",{ref:n,className:a(us({variant:r}),t),...o},void 0,!1,void 0,this)});fs.displayName="Card";var gs=xr(({asChild:e=!1,className:t,...r},o)=>{return Cr(e?Pr:"div",{ref:o,className:a("flex flex-col gap-1.5 border-b border-border/50 p-4",t),...r},void 0,!1,void 0,this)});gs.displayName="CardHeader";var ys=xr(({asChild:e=!1,className:t,...r},o)=>{return Cr(e?Pr:"div",{ref:o,className:a("p-4",t),...r},void 0,!1,void 0,this)});ys.displayName="CardContent";var vs=xr(({asChild:e=!1,className:t,...r},o)=>{return Cr(e?Pr:"div",{ref:o,className:a("flex items-center border-t border-border/50 p-4",t),...r},void 0,!1,void 0,this)});vs.displayName="CardFooter";var bs=xr(({asChild:e=!1,className:t,...r},o)=>{return Cr(e?Pr:"h3",{ref:o,className:a("font-semibold text-base leading-none tracking-tight",t),...r},void 0,!1,void 0,this)});bs.displayName="CardTitle";var Ts=xr(({asChild:e=!1,className:t,...r},o)=>{return Cr(e?Pr:"p",{ref:o,className:a("text-sm text-muted-foreground",t),...r},void 0,!1,void 0,this)});Ts.displayName="CardDescription";import*as Do from"@radix-ui/react-checkbox";import{cva as lg}from"class-variance-authority";import{Check as mg,Minus as dg}from"lucide-react";import{forwardRef as pg}from"react";import{jsxDEV as Bo}from"react/jsx-dev-runtime";var qe={sm:"sm",md:"md",lg:"lg",xl:"xl"},zr={default:"default",error:"error",success:"success"},Ps=lg("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:{[qe.sm]:"h-4 w-4",[qe.md]:"h-5 w-5",[qe.lg]:"h-6 w-6",[qe.xl]:"h-7 w-7"},status:{[zr.default]:"enabled:hover:border-primary/70",[zr.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",[zr.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:qe.md,status:zr.default}}),hs={[qe.sm]:"size-3.5",[qe.md]:"size-3.5",[qe.lg]:"size-4",[qe.xl]:"size-5"},xs=pg(({className:e,size:t=qe.md,status:r=zr.default,checked:o,disabled:n,...i},s)=>{let l=c(t);return Bo(Do.Root,{ref:s,checked:o,disabled:n,className:a(Ps({size:l,status:r}),e),...i,children:Bo(Do.Indicator,{className:"gs-checkbox-indicator flex items-center justify-center text-current",children:o==="indeterminate"?Bo(dg,{className:hs[l]},void 0,!1,void 0,this):Bo(mg,{className:hs[l]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});xs.displayName="Checkbox";import{cva as Rt}from"class-variance-authority";import{forwardRef as cg,useCallback as ug,useState as fg}from"react";import{jsxDEV as Me,Fragment as Cs}from"react/jsx-dev-runtime";var Q={sm:"sm",md:"md",lg:"lg"},on={default:"default",ghost:"ghost"},zs=Rt("relative rounded-lg overflow-hidden font-mono",{variants:{size:{[Q.sm]:"text-xs",[Q.md]:"text-sm",[Q.lg]:"text-base"},variant:{[on.default]:"bg-muted border border-border",[on.ghost]:"bg-transparent"}},defaultVariants:{size:Q.md,variant:on.default}}),Ss=Rt("flex items-center justify-between border-b border-border bg-muted",{variants:{size:{[Q.sm]:"px-2.5 py-1.5 text-xs",[Q.md]:"px-4 py-2 text-sm",[Q.lg]:"px-5 py-2.5 text-base"}},defaultVariants:{size:Q.md}}),Ns=Rt("text-muted-foreground font-medium",{variants:{size:{[Q.sm]:"text-[11px]",[Q.md]:"text-xs",[Q.lg]:"text-sm"}},defaultVariants:{size:Q.md}}),ws=Rt(["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:{[Q.sm]:"px-2 py-1 text-xs",[Q.md]:"px-2.5 py-1 text-xs",[Q.lg]:"px-3 py-1.5 text-sm"},copied:{true:"text-success",false:""}},defaultVariants:{size:Q.md,copied:!1}}),Rs=Rt("overflow-x-auto",{variants:{size:{[Q.sm]:"p-2.5",[Q.md]:"p-4",[Q.lg]:"p-5"}},defaultVariants:{size:Q.md}}),Ms=Rt("text-foreground",{variants:{size:{[Q.sm]:"",[Q.md]:"",[Q.lg]:""},showLineNumbers:{true:"",false:""}},defaultVariants:{size:Q.md,showLineNumbers:!1}}),Ls=Rt("block",{variants:{size:{[Q.sm]:"min-h-[1.25rem]",[Q.md]:"min-h-[1.5rem]",[Q.lg]:"min-h-[1.75rem]"},highlighted:{true:"bg-primary/10 -mx-4 px-4",false:""}},defaultVariants:{size:Q.md,highlighted:!1}}),Hs=Rt("inline-block text-right text-muted-foreground select-none",{variants:{size:{[Q.sm]:"w-6 mr-2 text-[10px]",[Q.md]:"w-8 mr-4 text-xs",[Q.lg]:"w-10 mr-5 text-sm"}},defaultVariants:{size:Q.md}}),ks=cg(({className:e,code:t,language:r,showLineNumbers:o=!1,highlightedLines:n=[],showCopy:i=!0,size:s="md",variant:l="default",onCopy:d,...m},f)=>{let u=c(s),[h,p]=fg(!1),y=ug(async()=>{try{await navigator.clipboard.writeText(t),p(!0),d?.(t),setTimeout(()=>p(!1),2000)}catch(w){}},[t,d]),S=t.split(`
3
- `),M=new Set(n);return Me("div",{ref:f,className:a(zs({size:u,variant:l}),e),...m,children:[(r||i)&&Me("div",{className:a(Ss({size:u})),children:[Me("span",{className:a(Ns({size:u})),children:r},void 0,!1,void 0,this),i&&Me("button",{type:"button",onClick:y,className:a(ws({size:u,copied:h})),children:h?Me(Cs,{children:[Me("svg",{className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Me("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):Me(Cs,{children:[Me("svg",{className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Me("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),Me("div",{className:a(Rs({size:u})),children:Me("pre",{className:a(Ms({size:u,showLineNumbers:o})),children:Me("code",{children:S.map((w,T)=>Me("span",{className:a(Ls({size:u,highlighted:M.has(T+1)})),children:[o&&Me("span",{className:a(Hs({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)});ks.displayName="CodeBlock";import*as Sr from"@radix-ui/react-collapsible";import{cva as gg}from"class-variance-authority";import{forwardRef as yg}from"react";import{jsxDEV as Tg}from"react/jsx-dev-runtime";var As=gg("gs-collapsible-content overflow-hidden"),vg=Sr.Root,bg=Sr.CollapsibleTrigger,Is=yg(({className:e,...t},r)=>Tg(Sr.CollapsibleContent,{ref:r,className:a(As(),e),...t},void 0,!1,void 0,this));Is.displayName="CollapsibleContent";import*as Mt from"@radix-ui/react-dialog";import{cva as Je}from"class-variance-authority";import{createContext as hg,forwardRef as it,useContext as Pg,useEffect as xg,useState as Vs}from"react";import{jsxDEV as Pe}from"react/jsx-dev-runtime";var Fs=Je(["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"}}),Os=Je(["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"]),Bs=Je(["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"]),Ds=Je(["max-h-[300px] overflow-y-auto overflow-x-hidden p-2"]),_s=Je(["py-6 text-center text-sm text-muted-foreground"]),Gs=Je(["overflow-hidden"]),Ws=Je(["px-2 py-1.5 text-xs font-medium text-muted-foreground"]),_o={default:"default",danger:"danger"},Us=Je(["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:{[_o.default]:"text-foreground",[_o.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{selected:!1,variant:_o.default}}),$s=Je(["-mx-1 my-1 h-px bg-border"]),Ks=Je(["ml-auto text-xs tracking-widest text-muted-foreground"]),Ys=Je(["flex items-center justify-center py-6"]),Xs=hg(null),an=()=>{let e=Pg(Xs);if(!e)throw Error("useCommand must be used within a Command");return e},nn=it(({className:e,children:t,loop:r=!0,...o},n)=>{let[i,s]=Vs(""),[l,d]=Vs(0);return Pe(Xs.Provider,{value:{search:i,setSearch:s,selectedIndex:l,setSelectedIndex:d},children:Pe("div",{ref:n,className:a("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)});nn.displayName="Command";var Zs=it(({children:e,size:t,...r},o)=>{return Pe(Mt.Root,{...r,children:Pe(Mt.Portal,{children:[Pe(Mt.Overlay,{className:a(Os())},void 0,!1,void 0,this),Pe(Mt.Content,{ref:o,className:a(Fs({size:t})),children:Pe(nn,{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)});Zs.displayName="CommandDialog";var qs=it(({className:e,icon:t,...r},o)=>{let{search:n,setSearch:i,setSelectedIndex:s}=an();return Pe("div",{className:"flex items-center border-border border-b px-3",children:[t&&Pe("span",{className:"mr-2 shrink-0 text-muted-foreground",children:t},void 0,!1,void 0,this),Pe("input",{ref:o,value:n,onChange:(l)=>{i(l.target.value),s(0)},className:a(Bs(),e),...r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});qs.displayName="CommandInput";var Js=it(({className:e,children:t,...r},o)=>{return Pe("div",{ref:o,className:a(Ds(),e),...r,children:t},void 0,!1,void 0,this)});Js.displayName="CommandList";var Qs=it(({className:e,children:t="No results found.",...r},o)=>{return Pe("div",{ref:o,className:a(_s(),e),...r,children:t},void 0,!1,void 0,this)});Qs.displayName="CommandEmpty";var Es=it(({className:e,heading:t,children:r,...o},n)=>{return Pe("div",{ref:n,className:a(Gs(),e),...o,children:[t&&Pe("div",{className:a(Ws()),children:t},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)});Es.displayName="CommandGroup";var js=it(({className:e,disabled:t,onSelect:r,children:o,keywords:n,variant:i,...s},l)=>{let{search:d}=an();if(!(()=>{if(!d)return!0;let f=d.toLowerCase();if((typeof o==="string"?o.toLowerCase():"").includes(f))return!0;if(n?.some((h)=>h.toLowerCase().includes(f)))return!0;return!1})())return null;return Pe("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:a(Us({selected:!1,variant:i}),e),...s,children:o},void 0,!1,void 0,this)});js.displayName="CommandItem";var el=it(({className:e,...t},r)=>{return Pe("div",{ref:r,className:a($s(),e),...t},void 0,!1,void 0,this)});el.displayName="CommandSeparator";var tl=it(({className:e,children:t,...r},o)=>{return Pe("span",{ref:o,className:a(Ks(),e),...r,children:t},void 0,!1,void 0,this)});tl.displayName="CommandShortcut";var rl=it(({className:e,children:t,...r},o)=>{return Pe("div",{ref:o,className:a(Ys(),e),...r,children:t},void 0,!1,void 0,this)});rl.displayName="CommandLoading";var Cg=({key:e,modifier:t="meta",callback:r})=>{xg(()=>{let o=(n)=>{if({ctrl:n.ctrlKey,meta:n.metaKey,alt:n.altKey,shift:n.shiftKey}[t]&&n.key.toLowerCase()===e.toLowerCase())n.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 Kt}from"class-variance-authority";import{Check as zg,ChevronRight as Sg,Circle as Ng}from"lucide-react";import{createContext as wg,forwardRef as Lt,useContext as Nr}from"react";import{jsxDEV as ye}from"react/jsx-dev-runtime";var q={sm:"sm",md:"md",lg:"lg"},Go={default:"default",danger:"danger"},Yt=wg(q.md),sn=Kt("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)]"),ln=Kt("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:{[q.sm]:"h-6 gap-1.5 px-1.5 text-xs [&_svg]:size-3",[q.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[q.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:q.md,variant:Go.default}}),ol=Kt("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:{[q.sm]:"h-6 pl-6 pr-1.5 text-xs",[q.md]:"h-8 pl-8 pr-2 text-sm",[q.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:q.md}}),al=Kt("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:{[q.sm]:"h-6 pl-6 pr-1.5 text-xs",[q.md]:"h-8 pl-8 pr-2 text-sm",[q.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:q.md}}),nl=Kt("font-semibold text-muted-foreground",{variants:{size:{[q.sm]:"px-1.5 py-0.5 text-[10px]",[q.md]:"px-2 py-1.5 text-xs",[q.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:q.md}}),il=Kt("-mx-1 my-1 h-px bg-border/50"),sl=Kt("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[q.sm]:"text-[10px]",[q.md]:"text-xs",[q.lg]:"text-xs"}},defaultVariants:{size:q.md}}),ll={[q.sm]:"absolute left-1.5 flex size-3 items-center justify-center",[q.md]:"absolute left-2 flex size-3.5 items-center justify-center",[q.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},Rg={[q.sm]:"size-3",[q.md]:"size-3.5",[q.lg]:"size-4"},Mg={[q.sm]:"size-1.5 fill-current",[q.md]:"size-2 fill-current",[q.lg]:"size-2.5 fill-current"},Lg=_.Root,Hg=_.Trigger,kg=_.Group,Ag=_.Portal,Ig=_.Sub,Vg=_.RadioGroup,ml=Lt(({className:e,inset:t,children:r,...o},n)=>{let i=Nr(Yt),s=c(i);return ye(_.SubTrigger,{ref:n,className:a(ln({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,ye(Sg,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});ml.displayName=_.SubTrigger.displayName;var dl=Lt(({className:e,...t},r)=>ye(_.Portal,{children:ye(_.SubContent,{ref:r,className:a(sn(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));dl.displayName=_.SubContent.displayName;var pl=Lt(({className:e,size:t,...r},o)=>{let n=c(t)??q.md;return ye(Yt.Provider,{value:n,children:ye(_.Portal,{children:ye(_.Content,{ref:o,className:a(sn(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});pl.displayName=_.Content.displayName;var cl=Lt(({className:e,inset:t,variant:r,...o},n)=>{let i=Nr(Yt),s=c(i);return ye(_.Item,{ref:n,className:a(ln({size:s,variant:r}),t&&"pl-8",e),...o},void 0,!1,void 0,this)});cl.displayName=_.Item.displayName;var ul=Lt(({className:e,children:t,checked:r,...o},n)=>{let i=Nr(Yt),s=c(i)??q.md;return ye(_.CheckboxItem,{ref:n,className:a(ol({size:s}),e),checked:r,...o,children:[ye("span",{className:ll[s],children:ye(_.ItemIndicator,{children:ye(zg,{className:Rg[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)});ul.displayName=_.CheckboxItem.displayName;var fl=Lt(({className:e,children:t,...r},o)=>{let n=Nr(Yt),i=c(n)??q.md;return ye(_.RadioItem,{ref:o,className:a(al({size:i}),e),...r,children:[ye("span",{className:ll[i],children:ye(_.ItemIndicator,{children:ye(Ng,{className:Mg[i]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),t]},void 0,!0,void 0,this)});fl.displayName=_.RadioItem.displayName;var gl=Lt(({className:e,inset:t,...r},o)=>{let n=Nr(Yt),i=c(n);return ye(_.Label,{ref:o,className:a(nl({size:i}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});gl.displayName=_.Label.displayName;var yl=Lt(({className:e,...t},r)=>ye(_.Separator,{ref:r,className:a(il(),e),...t},void 0,!1,void 0,this));yl.displayName=_.Separator.displayName;var vl=({className:e,...t})=>{let r=Nr(Yt),o=c(r);return ye("span",{className:a(sl({size:o}),e),...t},void 0,!1,void 0,this)};vl.displayName="ContextMenuShortcut";import*as xe from"@radix-ui/react-dialog";import{cva as Fg}from"class-variance-authority";import{X as Og}from"lucide-react";import{forwardRef as Wo}from"react";import{jsxDEV as Qe}from"react/jsx-dev-runtime";var Ht={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},Qr=xe.Root,Bg=xe.Trigger,Uo=xe.Portal,Dg=xe.Close,mn=xe.Content,Er=Wo(({className:e,...t},r)=>Qe(xe.Overlay,{ref:r,className:a("gs-dialog-overlay fixed inset-0 z-50 bg-black/50",e),...t},void 0,!1,void 0,this));Er.displayName="DialogOverlay";var bl=Fg("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:{[Ht.sm]:"max-w-sm",[Ht.md]:"max-w-md",[Ht.lg]:"max-w-lg",[Ht.xl]:"max-w-xl",[Ht.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:Ht.md}}),$o=Wo(({className:e,children:t,size:r=Ht.md,showClose:o=!0,...n},i)=>{let s=c(r);return Qe(Uo,{children:[Qe(Er,{},void 0,!1,void 0,this),Qe(xe.Content,{ref:i,className:a(bl({size:s}),e),...n,children:[t,o&&Qe(xe.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(Og,{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)});$o.displayName="DialogContent";var Tl=({className:e,...t})=>Qe("div",{className:a("flex flex-col space-y-1.5 text-center sm:text-left",e),...t},void 0,!1,void 0,this);Tl.displayName="DialogHeader";var hl=({className:e,...t})=>Qe("div",{className:a("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);hl.displayName="DialogFooter";var Ko=Wo(({className:e,...t},r)=>Qe(xe.Title,{ref:r,className:a("font-semibold text-lg leading-none tracking-tight",e),...t},void 0,!1,void 0,this));Ko.displayName="DialogTitle";var Pl=Wo(({className:e,...t},r)=>Qe(xe.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));Pl.displayName="DialogDescription";import{cva as dn}from"class-variance-authority";import{X as _g}from"lucide-react";import{forwardRef as Yo}from"react";import{Drawer as vt}from"vaul";import{jsxDEV as _e}from"react/jsx-dev-runtime";var Ge={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},Gg={[Ge.sm]:"sm:max-w-sm",[Ge.md]:"sm:max-w-md",[Ge.lg]:"sm:max-w-lg",[Ge.xl]:"sm:max-w-xl",[Ge.full]:"sm:max-w-full"},Wg={[Ge.sm]:"sm:max-h-[30vh]",[Ge.md]:"sm:max-h-[50vh]",[Ge.lg]:"sm:max-h-[70vh]",[Ge.xl]:"sm:max-h-[85vh]",[Ge.full]:"sm:max-h-full"},xl=dn(["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"]),Cl=dn(["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"]),zl=dn("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"}}),Ug=vt.Root,$g=vt.Trigger,Kg=vt.Close,Sl=vt.Portal,pn=Yo(({className:e,...t},r)=>_e(vt.Overlay,{ref:r,className:a(xl(),e),...t},void 0,!1,void 0,this));pn.displayName="DrawerOverlay";var Nl=Yo(({size:e=Ge.md,showClose:t=!1,direction:r="bottom",className:o,children:n,...i},s)=>{let d=r==="left"||r==="right"?Gg[e]:Wg[e];return _e(Sl,{children:[_e(pn,{},void 0,!1,void 0,this),_e(vt.Content,{ref:s,className:a(Cl(),d,o),...i,children:[(r==="top"||r==="bottom")&&_e("div",{className:a(zl({direction:r}))},void 0,!1,void 0,this),n,t&&_e(vt.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:[_e(_g,{className:"size-4"},void 0,!1,void 0,this),_e("span",{className:"sr-only",children:"Close"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Nl.displayName="DrawerContent";var wl=({className:e,...t})=>_e("div",{className:a("flex flex-col gap-1.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center sm:text-left",e),...t},void 0,!1,void 0,this);wl.displayName="DrawerHeader";var Rl=({className:e,...t})=>_e("div",{className:a("mt-auto flex flex-col gap-2 p-4",e),...t},void 0,!1,void 0,this);Rl.displayName="DrawerFooter";var Ml=Yo(({className:e,...t},r)=>_e(vt.Title,{ref:r,className:a("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));Ml.displayName="DrawerTitle";var Ll=Yo(({className:e,...t},r)=>_e(vt.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));Ll.displayName="DrawerDescription";import*as G from"@radix-ui/react-dropdown-menu";import{cva as Zt}from"class-variance-authority";import{Check as Yg,ChevronRight as Xg,Circle as Zg}from"lucide-react";import{createContext as qg,forwardRef as kt,useCallback as Jg,useContext as wr,useEffect as Qg,useRef as Hl,useState as Eg}from"react";import{jsxDEV as de}from"react/jsx-dev-runtime";var J={sm:"sm",md:"md",lg:"lg"},Xo={default:"default",danger:"danger"},qt=qg(J.md),Xt=null,jr=null,jg=0,cn=Zt("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)]"),un=Zt("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:{[J.sm]:"h-7 gap-1.5 px-2 text-xs [&_svg]:size-3.5",[J.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[J.lg]:"h-9 gap-2 px-2.5 text-sm [&_svg]:size-4"},variant:{[Xo.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[Xo.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{size:J.md,variant:Xo.default}}),kl=Zt("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:{[J.sm]:"h-7 pl-7 pr-2 text-xs",[J.md]:"h-8 pl-8 pr-2 text-sm",[J.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:J.md}}),Al=Zt("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:{[J.sm]:"h-7 pl-7 pr-2 text-xs",[J.md]:"h-8 pl-8 pr-2 text-sm",[J.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:J.md}}),Il=Zt("font-semibold text-muted-foreground",{variants:{size:{[J.sm]:"px-2 py-1 text-[11px]",[J.md]:"px-2 py-1.5 text-xs",[J.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:J.md}}),Vl=Zt("-mx-1 my-1 h-px bg-border/50"),Fl=Zt("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[J.sm]:"text-[11px]",[J.md]:"text-xs",[J.lg]:"text-xs"}},defaultVariants:{size:J.md}}),Ol={[J.sm]:"absolute left-2 flex size-3.5 items-center justify-center",[J.md]:"absolute left-2 flex size-3.5 items-center justify-center",[J.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},ey={[J.sm]:"size-3",[J.md]:"size-3.5",[J.lg]:"size-4"},ty={[J.sm]:"size-1.5 fill-current",[J.md]:"size-2 fill-current",[J.lg]:"size-2.5 fill-current"},Bl=({children:e,open:t,defaultOpen:r,onOpenChange:o,...n})=>{let[i,s]=Eg(r??!1),l=t!==void 0,d=l?t:i,m=Hl(++jg),f=Hl({onOpenChange:o,isControlled:l});f.current={onOpenChange:o,isControlled:l};let u=Jg((h)=>{let{onOpenChange:p,isControlled:y}=f.current;if(h){if(Xt!==null&&Xt!==m.current&&jr)jr();Xt=m.current,jr=()=>{let{onOpenChange:S,isControlled:M}=f.current;if(!M)s(!1);S?.(!1)}}else if(Xt===m.current)Xt=null,jr=null;if(!y)s(h);p?.(h)},[]);return Qg(()=>{return()=>{if(Xt===m.current)Xt=null,jr=null}},[]),de(G.Root,{open:d,onOpenChange:u,...n,children:e},void 0,!1,void 0,this)};Bl.displayName="DropdownMenu";var ry=G.Trigger,oy=G.Group,ay=G.Portal,ny=G.Sub,iy=G.RadioGroup,Dl=kt(({className:e,inset:t,children:r,...o},n)=>{let i=wr(qt),s=c(i);return de(G.SubTrigger,{ref:n,className:a(un({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,de(Xg,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Dl.displayName=G.SubTrigger.displayName;var _l=kt(({className:e,...t},r)=>de(G.Portal,{children:de(G.SubContent,{ref:r,className:a(cn(),e),...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));_l.displayName=G.SubContent.displayName;var Gl=kt(({className:e,sideOffset:t=4,size:r,...o},n)=>{let i=c(r)??J.md;return de(qt.Provider,{value:i,children:de(G.Portal,{children:de(G.Content,{ref:n,sideOffset:t,className:a(cn(),e),...o},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Gl.displayName=G.Content.displayName;var Wl=kt(({className:e,inset:t,variant:r,...o},n)=>{let i=wr(qt),s=c(i);return de(G.Item,{ref:n,className:a(un({size:s,variant:r}),t&&"pl-8",e),...o},void 0,!1,void 0,this)});Wl.displayName=G.Item.displayName;var Ul=kt(({className:e,children:t,checked:r,...o},n)=>{let i=wr(qt),s=c(i)??J.md;return de(G.CheckboxItem,{ref:n,className:a(kl({size:s}),e),checked:r,...o,children:[de("span",{className:Ol[s],children:de(G.ItemIndicator,{children:de(Yg,{className:ey[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)});Ul.displayName=G.CheckboxItem.displayName;var $l=kt(({className:e,children:t,...r},o)=>{let n=wr(qt),i=c(n)??J.md;return de(G.RadioItem,{ref:o,className:a(Al({size:i}),e),...r,children:[de("span",{className:Ol[i],children:de(G.ItemIndicator,{children:de(Zg,{className:ty[i]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),t]},void 0,!0,void 0,this)});$l.displayName=G.RadioItem.displayName;var Kl=kt(({className:e,inset:t,...r},o)=>{let n=wr(qt),i=c(n);return de(G.Label,{ref:o,className:a(Il({size:i}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});Kl.displayName=G.Label.displayName;var Yl=kt(({className:e,...t},r)=>de(G.Separator,{ref:r,className:a(Vl(),e),...t},void 0,!1,void 0,this));Yl.displayName=G.Separator.displayName;var Xl=({className:e,...t})=>{let r=wr(qt),o=c(r);return de("span",{className:a(Fl({size:o}),e),...t},void 0,!1,void 0,this)};Xl.displayName="DropdownMenuShortcut";import{cva as to}from"class-variance-authority";import{forwardRef as sy}from"react";import{jsxDEV as eo}from"react/jsx-dev-runtime";var Se={sm:"sm",md:"md",lg:"lg"},Zl=to("flex flex-col items-center justify-center text-center rounded-[var(--radius)] border border-dashed border-border/50 bg-muted/20",{variants:{size:{[Se.sm]:"gap-2 p-4",[Se.md]:"gap-4 p-8",[Se.lg]:"gap-6 p-12"}},defaultVariants:{size:Se.md}}),ql=to("flex items-center justify-center rounded-full bg-muted/50 text-muted-foreground",{variants:{size:{[Se.sm]:"h-10 w-10 [&>svg]:h-4 [&>svg]:w-4",[Se.md]:"h-16 w-16 [&>svg]:h-7 [&>svg]:w-7",[Se.lg]:"h-20 w-20 [&>svg]:h-9 [&>svg]:w-9"}},defaultVariants:{size:Se.md}}),Jl=to("font-semibold text-foreground",{variants:{size:{[Se.sm]:"text-sm",[Se.md]:"text-lg",[Se.lg]:"text-xl"}},defaultVariants:{size:Se.md}}),Ql=to("text-muted-foreground max-w-sm",{variants:{size:{[Se.sm]:"text-xs",[Se.md]:"text-sm",[Se.lg]:"text-base"}},defaultVariants:{size:Se.md}}),El=to("flex items-center gap-2 mt-2"),jl=sy(({className:e,icon:t,title:r,description:o,actions:n,size:i=Se.md,children:s,...l},d)=>{let m=c(i);return eo("div",{ref:d,className:a(Zl({size:m}),e),...l,children:[t&&eo("div",{className:ql({size:m}),children:t},void 0,!1,void 0,this),r&&eo("h3",{className:Jl({size:m}),children:r},void 0,!1,void 0,this),o&&eo("p",{className:Ql({size:m}),children:o},void 0,!1,void 0,this),n&&eo("div",{className:El(),children:n},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)});jl.displayName="EmptyState";import{cva as Rr}from"class-variance-authority";import{Component as ly,createElement as em}from"react";import{jsxDEV as Le,Fragment as dy}from"react/jsx-dev-runtime";var tm=Rr(["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"}}),rm=Rr(["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"}}),om=Rr("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"}}),am=Rr("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"}}),nm=Rr("mt-2 flex flex-wrap items-center justify-center gap-2"),im=Rr("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 sm extends ly{static displayName="ErrorBoundary";constructor(e){super(e);this.state={hasError:!1,error:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){this.props.onError?.(e,t)}handleReset=()=>{this.setState({hasError:!1,error:null}),this.props.onReset?.()};render(){let{children:e,fallback:t,showDetails:r=!1,size:o="md",variant:n="destructive",className:i,title:s="Something went wrong",description:l="An unexpected error occurred. Please try again.",icon:d,actions:m,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 em(t,p);return t}let y=null;if(m)y=typeof m==="function"?em(m,p):m;else if(!u){let M={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=Le("button",{type:"button",onClick:this.handleReset,className:a("inline-flex items-center justify-center rounded-md border px-4 py-2 font-medium text-sm","transition-colors duration-150 ease-out","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",M[n]),children:f},void 0,!1,void 0,this)}let S=h?h(this.state.error):Le(dy,{children:[Le("strong",{children:"Error:"},void 0,!1,void 0,this)," ",this.state.error.message,this.state.error.stack&&Le("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 Le("div",{className:a(tm({size:o,variant:n}),i),children:[Le("div",{className:a(rm({size:o,variant:n})),children:d??Le(my,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),Le("h3",{className:a(om({size:o,variant:n})),children:s},void 0,!1,void 0,this),Le("p",{className:a(am({size:o})),children:l},void 0,!1,void 0,this),y&&Le("div",{className:a(nm()),children:y},void 0,!1,void 0,this),r&&Le("div",{className:a(im()),children:S},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}return e}}function my(){return Le("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:[Le("circle",{cx:"12",cy:"12",r:"10"},void 0,!1,void 0,this),Le("line",{x1:"12",x2:"12",y1:"8",y2:"12"},void 0,!1,void 0,this),Le("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 At}from"class-variance-authority";import{forwardRef as py,useCallback as Ee,useRef as cy,useState as lm}from"react";import{jsxDEV as Ne}from"react/jsx-dev-runtime";var ae={sm:"sm",md:"md",lg:"lg",xl:"xl"},mm=At(["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:{[ae.sm]:"min-h-28 p-5",[ae.md]:"min-h-36 p-8",[ae.lg]:"min-h-44 p-10",[ae.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:ae.md,isDragging:!1,disabled:!1,hasError:!1}}),dm=At("text-muted-foreground transition-colors duration-200",{variants:{size:{[ae.sm]:"mb-2 size-6",[ae.md]:"size-8 mb-3",[ae.lg]:"size-10 mb-4",[ae.xl]:"size-12 mb-5"},isDragging:{true:"text-primary",false:""}},defaultVariants:{size:ae.md,isDragging:!1}}),fn=At("text-center",{variants:{size:{[ae.sm]:"text-sm",[ae.md]:"text-sm",[ae.lg]:"text-base",[ae.xl]:"text-lg"}},defaultVariants:{size:ae.md}}),pm=At("mt-4 w-full space-y-2"),cm=At(["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"]),um=At("min-w-0 flex-1 truncate font-medium text-foreground",{variants:{size:{[ae.sm]:"text-sm",[ae.md]:"text-sm",[ae.lg]:"text-base",[ae.xl]:"text-base"}},defaultVariants:{size:"md"}}),fm=At("text-muted-foreground",{variants:{size:{[ae.sm]:"text-xs",[ae.md]:"text-sm",[ae.lg]:"text-sm",[ae.xl]:"text-base"}},defaultVariants:{size:"md"}}),gm=At(["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"]),ym=py(({className:e,size:t="md",disabled:r=!1,accept:o,multiple:n=!1,maxSize:i,maxFiles:s,value:l=[],onChange:d,onError:m,icon:f,title:u="Drop files here or click to upload",description:h,showFileList:p=!0,...y},S)=>{let M=c(t),[w,T]=lm(!1),[b,x]=lm(!1),O=cy(null),R=Ee((L)=>{if(L===0)return"0 Bytes";let X=1024,g=["Bytes","KB","MB","GB"],v=Math.floor(Math.log(L)/Math.log(X));return`${parseFloat((L/X**v).toFixed(2))} ${g[v]}`},[]),I=Ee((L)=>{let X=[...L];if(x(!1),o){let g=o.split(",").map((v)=>v.trim());if(X=X.filter((v)=>{return g.some((H)=>{if(H.startsWith("."))return v.name.toLowerCase().endsWith(H.toLowerCase());if(H.endsWith("/*"))return v.type.startsWith(H.slice(0,-1));return v.type===H})}),X.length<L.length)m?.("Some files were rejected due to file type"),x(!0)}if(i){let g=X.length;if(X=X.filter((v)=>v.size<=i),X.length<g)m?.(`File size must be less than ${R(i)}`),x(!0)}if(s&&X.length+l.length>s)X=X.slice(0,s-l.length),m?.(`Maximum ${s} files allowed`),x(!0);return X},[o,i,s,l.length,m,R]),C=Ee((L)=>{if(!L||L.length===0)return;let X=Array.from(L),g=I(X);if(g.length>0)if(n)d?.([...l,...g]);else d?.(g.slice(0,1))},[n,l,d,I]),V=Ee((L)=>{L.preventDefault(),L.stopPropagation(),T(!0)},[]),Y=Ee((L)=>{L.preventDefault(),L.stopPropagation(),T(!1)},[]),F=Ee((L)=>{L.preventDefault(),L.stopPropagation()},[]),K=Ee((L)=>{if(L.preventDefault(),L.stopPropagation(),T(!1),r)return;C(L.dataTransfer.files)},[r,C]),N=Ee((L)=>{if(C(L.target.files),O.current)O.current.value=""},[C]),A=Ee(()=>{if(!r)O.current?.click()},[r]),z=Ee((L)=>{if(L.key==="Enter"||L.key===" ")L.preventDefault(),A()},[A]),B=Ee((L)=>{let X=l.filter((g,v)=>v!==L);d?.(X)},[l,d]),U=Ne("svg",{className:a(dm({size:M,isDragging:w})),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:Ne("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 Ne("div",{ref:S,className:a("w-full",e),...y,children:[Ne("div",{role:"button",tabIndex:r?-1:0,onClick:A,onKeyDown:z,onDragEnter:V,onDragLeave:Y,onDragOver:F,onDrop:K,className:a(mm({size:M,isDragging:w,disabled:r,hasError:b})),children:[Ne("input",{ref:O,type:"file",accept:o,multiple:n,disabled:r,onChange:N,className:"sr-only"},void 0,!1,void 0,this),f||U,Ne("p",{className:a(fn({size:M}),"font-medium text-foreground"),children:u},void 0,!1,void 0,this),h&&Ne("p",{className:a(fn({size:M}),"mt-1 text-muted-foreground"),children:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p&&l.length>0&&Ne("div",{className:a(pm()),children:l.map((L,X)=>Ne("div",{className:a(cm()),children:[Ne("svg",{className:"size-5 shrink-0 text-muted-foreground",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:Ne("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),Ne("span",{className:a(um({size:M})),children:L.name},void 0,!1,void 0,this),Ne("span",{className:a(fm({size:M})),children:R(L.size)},void 0,!1,void 0,this),Ne("button",{type:"button",onClick:(g)=>{g.stopPropagation(),B(X)},className:a(gm()),"aria-label":`Remove ${L.name}`,children:Ne("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Ne("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}-${X}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});ym.displayName="FileUpload";import{cva as uy}from"class-variance-authority";import{createContext as fy,forwardRef as Zo,useContext as gy,useId as yy}from"react";import{jsxDEV as Jt,Fragment as by}from"react/jsx-dev-runtime";var We={sm:"sm",md:"md",lg:"lg"},vm=fy(null),ro=()=>{let e=gy(vm);if(!e)throw Error("useFormField must be used within a FormField");return e},bm=uy("flex flex-col",{variants:{size:{[We.sm]:"gap-1",[We.md]:"gap-1.5",[We.lg]:"gap-2"}},defaultVariants:{size:We.md}}),Tm=Zo(({className:e,size:t=We.md,error:r,disabled:o=!1,required:n=!1,children:i,...s},l)=>{let d=yy(),m=c(t),f={id:d,size:m,error:r,disabled:o,required:n};return Jt(vm.Provider,{value:f,children:Jt("div",{ref:l,className:a(bm({size:m}),e),...s,children:i},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Tm.displayName="FormField";var vy={[We.sm]:"text-xs",[We.md]:"text-sm",[We.lg]:"text-base"},hm=Zo(({className:e,htmlFor:t,children:r,...o},n)=>{let{id:i,size:s,disabled:l,required:d}=ro();return Jt("label",{ref:n,htmlFor:t??i,className:a("inline-block font-medium text-foreground select-none",vy[s],l&&"cursor-not-allowed opacity-60",e),...o,children:[r,d&&Jt("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});hm.displayName="FormFieldLabel";var Pm={[We.sm]:"text-[10px]",[We.md]:"text-xs",[We.lg]:"text-sm"},xm=Zo(({className:e,...t},r)=>{let{id:o,size:n}=ro();return Jt("p",{ref:r,id:`${o}-description`,className:a("text-muted-foreground",Pm[n],e),...t},void 0,!1,void 0,this)});xm.displayName="FormFieldDescription";var Cm=Zo(({className:e,children:t,...r},o)=>{let{id:n,size:i,error:s}=ro(),l=t??s;if(!l)return null;return Jt("p",{ref:o,id:`${n}-error`,role:"alert",className:a("text-destructive",Pm[i],e),...r,children:l},void 0,!1,void 0,this)});Cm.displayName="FormFieldError";var zm=({children:e})=>{let{id:t,disabled:r,required:o,error:n}=ro(),i=[n?`${t}-error`:void 0,`${t}-description`].filter(Boolean).join(" ");return Jt(by,{children:e({id:t,disabled:r,required:o,status:n?"error":"default","aria-describedby":i||void 0,"aria-invalid":n?!0:void 0})},void 0,!1,void 0,this)};zm.displayName="FormFieldControl";import*as Qt from"@radix-ui/react-hover-card";import{cva as Ty}from"class-variance-authority";import{forwardRef as hy}from"react";import{jsxDEV as Cy}from"react/jsx-dev-runtime";var Mr={sm:"sm",md:"md",lg:"lg"},Sm=Ty("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:{[Mr.sm]:"w-52 p-3 text-xs",[Mr.md]:"w-64 p-4 text-sm",[Mr.lg]:"w-80 p-5 text-sm"}},defaultVariants:{size:Mr.md}}),Py=Qt.Root,xy=Qt.Trigger,Nm=hy(({className:e,align:t="center",sideOffset:r=4,size:o=Mr.md,...n},i)=>{let s=c(o);return Cy(Qt.Content,{ref:i,align:t,sideOffset:r,className:a(Sm({size:s}),e),...n},void 0,!1,void 0,this)});Nm.displayName=Qt.Content.displayName;import{cva as zy}from"class-variance-authority";import{X as Sy}from"lucide-react";import{forwardRef as Ny,useRef as wy,useState as Ry}from"react";import{jsxDEV as Et}from"react/jsx-dev-runtime";var oo={default:"default",error:"error",success:"success"},j={sm:"sm",md:"md",lg:"lg",xl:"xl"},My="Clear input",Rm=zy("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:{[oo.default]:"focus-visible:ring-primary",[oo.error]:"border-destructive focus-visible:ring-destructive",[oo.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:oo.default,size:j.md}}),Ly={[j.sm]:"pl-7",[j.md]:"pl-9",[j.lg]:"pl-10",[j.xl]:"pl-10"},Hy={[j.sm]:"pr-7",[j.md]:"pr-9",[j.lg]:"pr-10",[j.xl]:"pr-10"},ky={[j.sm]:"pr-12",[j.md]:"pr-16",[j.lg]:"pr-18",[j.xl]:"pr-18"},Ay={[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"},Iy={[j.sm]:"text-xs",[j.md]:"text-sm",[j.lg]:"text-sm",[j.xl]:"text-base"},Vy={[j.sm]:"size-4",[j.md]:"size-5",[j.lg]:"size-5",[j.xl]:"size-6"};function wm(e){if(e===void 0||e===null)return"";if(Array.isArray(e))return e.join("");return String(e)}var Mm=Ny(({className:e,status:t=oo.default,size:r=j.md,fullWidth:o=!1,prefix:n,suffix:i,clearable:s=!1,clearAriaLabel:l=My,onClear:d,onValueChange:m,disabled:f,readOnly:u,onChange:h,value:p,defaultValue:y,...S},M)=>{let w=Boolean(n),T=Boolean(i),b=c(r),x=wy(null),O=ao(M,x),[R,I]=Ry(()=>wm(y)),C=p!==void 0,V=C?wm(p):R,Y=s&&!f&&!u&&V.length>0,F=T||Y,K=T&&Y,N=(z)=>{let B=z.target.value;if(!C)I(B);m?.(B),h?.(z)},A=()=>{if(!C)I("");m?.("");let z=x.current;if(z)z.value="",z.dispatchEvent(new Event("input",{bubbles:!0})),z.focus();d?.()};return Et("div",{className:a("relative flex items-center",o&&"w-full"),children:[w&&Et("span",{className:a("absolute inset-y-0 flex items-center text-muted-foreground",Ay[b]),children:n},void 0,!1,void 0,this),Et("input",{ref:O,className:a(Rm({status:t,size:b}),w&&Ly[b],K&&ky[b],!K&&F&&Hy[b],e),disabled:f,readOnly:u,onChange:N,value:V,...S},void 0,!1,void 0,this),F&&Et("span",{className:a("absolute inset-y-0 right-2 flex items-center gap-1 text-muted-foreground",Iy[b]),children:[T&&Et("span",{className:"inline-flex items-center",children:i},void 0,!1,void 0,this),Y&&Et("button",{type:"button","aria-label":l,onMouseDown:(z)=>z.preventDefault(),onClick:A,className:a("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",Vy[b]),children:Et(Sy,{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)});Mm.displayName="Input";import{cva as Fy}from"class-variance-authority";import{forwardRef as Oy}from"react";function no(){return gn()}import{jsxDEV as By}from"react/jsx-dev-runtime";var Lr={sm:"sm",md:"md",lg:"lg"},Lm=Fy("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:{[Lr.sm]:"min-w-5 h-5 px-1 text-[10px]",[Lr.md]:"min-w-6 h-6 px-1.5 text-xs",[Lr.lg]:"min-w-7 h-7 px-2 text-sm"}},defaultVariants:{size:Lr.md}}),Hm=Oy(({className:e,size:t=Lr.md,keys:r,children:o,...n},i)=>{let s=c(t),{isMac:l}=no(),d=r?io(r,l):o;return By("kbd",{ref:i,className:a(Lm({size:s}),e),...n,children:d},void 0,!1,void 0,this)});Hm.displayName="Kbd";import{cva as Dy}from"class-variance-authority";import{forwardRef as _y}from"react";import{jsxDEV as km}from"react/jsx-dev-runtime";var Hr={sm:"sm",md:"md",lg:"lg"},Am=Dy("inline-block font-medium text-foreground select-none peer-disabled:cursor-not-allowed peer-disabled:opacity-60",{variants:{size:{[Hr.sm]:"text-xs",[Hr.md]:"text-sm",[Hr.lg]:"text-base"}},defaultVariants:{size:Hr.md}}),Im=_y(({className:e,size:t=Hr.md,required:r=!1,disabled:o=!1,children:n,...i},s)=>{let l=c(t);return km("label",{ref:s,className:a(Am({size:l}),o&&"cursor-not-allowed opacity-60",e),"aria-disabled":o||void 0,...i,children:[n,r&&km("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Im.displayName="Label";var Gy=Ct;import*as It from"@radix-ui/react-popover";import{cva as Zy}from"class-variance-authority";import{Check as qy,ChevronDown as Jy,X as Qy}from"lucide-react";import{forwardRef as Ey,useCallback as so,useEffect as jy,useRef as ev,useState as Om}from"react";import*as Ue from"@radix-ui/react-popover";import{cva as Wy}from"class-variance-authority";import{forwardRef as Uy}from"react";import{jsxDEV as Vm}from"react/jsx-dev-runtime";var kr={sm:"sm",md:"md",lg:"lg"},Ar=Wy("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:{[kr.sm]:"w-56 p-3 text-sm",[kr.md]:"w-72 p-4 text-sm",[kr.lg]:"w-96 p-5 text-sm"}},defaultVariants:{size:kr.md}}),$y=Ue.Root,Ky=Ue.Trigger,Yy=Ue.Anchor,Xy=Ue.Close,Fm=Uy(({className:e,align:t="center",sideOffset:r=4,portal:o=!0,portalContainer:n,size:i=kr.md,...s},l)=>{let d=c(i),m=Vm(Ue.Content,{ref:l,align:t,sideOffset:r,className:a(Ar({size:d}),e),...s},void 0,!1,void 0,this);if(o)return Vm(Ue.Portal,{container:n??void 0,children:m},void 0,!1,void 0,this);return m});Fm.displayName="PopoverContent";import{jsxDEV as pe,Fragment as ov}from"react/jsx-dev-runtime";var ve={sm:"sm",md:"md",lg:"lg",xl:"xl"},Bm=Zy(["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:{[ve.sm]:"min-h-8 px-2.5 py-1 text-xs",[ve.md]:"min-h-10 px-3.5 py-1.5",[ve.lg]:"min-h-11 px-4.5 py-2 text-sm",[ve.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:ve.md,status:"default"}}),tv={[ve.sm]:"sm",[ve.md]:"md",[ve.lg]:"lg",[ve.xl]:"lg"},rv={[ve.sm]:"min-h-7.5 py-1.5 px-2.5 text-xs",[ve.md]:"min-h-9 py-2 px-3 text-sm",[ve.lg]:"min-h-10 py-2.5 px-3.5 text-sm",[ve.xl]:"min-h-11 py-3 px-4 text-base"},qo={[ve.sm]:"size-3.5",[ve.md]:"size-4",[ve.lg]:"size-4",[ve.xl]:"size-4.5"},Dm=Ey(({className:e,options:t,value:r,defaultValue:o=[],onValueChange:n,placeholder:i="Select options...",size:s=ve.md,status:l="default",clearable:d=!1,maxDisplayItems:m=3,disabled:f,...u},h)=>{let p=c(s)??s,[y,S]=Om(!1),[M,w]=Om(o),T=ev(null),b=r!==void 0,x=b?r:M,O=so((N)=>{let A=x.includes(N)?x.filter((z)=>z!==N):[...x,N];if(!b)w(A);n?.(A)},[x,b,n]),R=so((N,A)=>{A.stopPropagation();let z=x.filter((B)=>B!==N);if(!b)w(z);n?.(z)},[x,b,n]),I=so((N)=>{if(N.stopPropagation(),N.preventDefault(),!b)w([]);n?.([])},[b,n]),C=t.filter((N)=>x.includes(N.value)),V=C.length>0,Y=d&&V&&!f,F=so((N)=>{let A=T.current;if(!A)return;let z=Array.from(A.querySelectorAll('[role="option"]:not([data-disabled])'));if(z.length===0)return;let B=A.querySelector('[role="option"]:focus'),U=B?z.indexOf(B):-1,L;switch(N){case"first":L=z[0];break;case"last":L=z[z.length-1];break;case"next":L=z[U+1]??z[0];break;case"prev":L=z[U-1]??z[z.length-1];break}L?.focus()},[]),K=so((N)=>{switch(N.key){case"ArrowDown":N.preventDefault(),F("next");break;case"ArrowUp":N.preventDefault(),F("prev");break;case"Home":N.preventDefault(),F("first");break;case"End":N.preventDefault(),F("last");break;case"Escape":N.preventDefault(),S(!1);break}},[F]);return jy(()=>{if(y)requestAnimationFrame(()=>F("first"))},[y,F]),pe(It.Root,{open:y,onOpenChange:S,children:[pe(It.Trigger,{asChild:!0,children:pe("button",{ref:h,type:"button",disabled:f,"data-state":y?"open":"closed","data-placeholder":V?void 0:"",className:a(Bm({size:p,status:l}),e),...u,children:[pe("span",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-1 text-left",children:V?pe(ov,{children:[C.slice(0,m).map((N)=>pe(Vo,{variant:"outline",size:tv[s],removable:!0,onRemove:(A)=>R(N.value,A),className:"max-w-[120px] rounded-[calc(var(--radius)-4px)]",children:pe("span",{className:"truncate",children:N.label},void 0,!1,void 0,this)},N.value,!1,void 0,this)),C.length>m&&pe("span",{className:"text-muted-foreground text-xs",children:["+",C.length-m]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):pe("span",{className:"text-muted-foreground",children:i},void 0,!1,void 0,this)},void 0,!1,void 0,this),pe("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[Y&&pe("span",{role:"button",tabIndex:-1,"aria-label":"Clear all",onMouseDown:(N)=>N.preventDefault(),onClick:I,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:pe(Qy,{className:qo[p]},void 0,!1,void 0,this)},void 0,!1,void 0,this),pe(Jy,{className:a(qo[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),pe(It.Portal,{children:pe(It.Content,{ref:T,role:"listbox","aria-multiselectable":"true",align:"start",sideOffset:4,onKeyDown:K,onOpenAutoFocus:(N)=>N.preventDefault(),className:a(Ar(),"max-h-96 w-[var(--radix-popover-trigger-width)] overflow-y-auto overflow-x-hidden p-1"),children:[t.map((N)=>{let A=x.includes(N.value);return pe("div",{role:"option",tabIndex:N.disabled?void 0:-1,"aria-selected":A,"aria-disabled":N.disabled||void 0,"data-disabled":N.disabled?"":void 0,className:a("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",rv[p]),onClick:()=>!N.disabled&&O(N.value),onKeyDown:(z)=>{if(z.key==="Enter"||z.key===" "){if(z.preventDefault(),!N.disabled)O(N.value)}},children:[pe("span",{className:a("flex shrink-0 items-center justify-center",qo[p]),children:A&&pe(qy,{className:qo[p]},void 0,!1,void 0,this)},void 0,!1,void 0,this),pe("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&&pe("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)});Dm.displayName="Multiselect";import*as ie from"@radix-ui/react-navigation-menu";import{cva as jt}from"class-variance-authority";import{createContext as av,forwardRef as Ir,useContext as nv}from"react";import{jsxDEV as Oe}from"react/jsx-dev-runtime";var je={sm:"sm",md:"md",lg:"lg"},_m=av(je.md),Gm=jt("relative z-10 flex max-w-max flex-1 items-center justify-center"),Wm=jt("group flex flex-1 list-none items-center justify-center space-x-1"),Um=jt(["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=jt(["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"]),iv=jt(["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}}),Km=jt(["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)]"]),Ym=jt(["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"]),sv=()=>Oe("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:Oe("path",{d:"m6 9 6 6 6-6"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Xm=Ir(({className:e,children:t,size:r,...o},n)=>{let i=c(r??je.md);return Oe(_m.Provider,{value:i,children:Oe(ie.Root,{ref:n,className:a(Gm(),e),...o,children:[t,Oe(yn,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Xm.displayName=ie.Root.displayName;var Zm=Ir(({className:e,...t},r)=>Oe(ie.List,{ref:r,className:a(Wm(),e),...t},void 0,!1,void 0,this));Zm.displayName=ie.List.displayName;var lv=ie.Item,qm=Ir(({className:e,children:t,...r},o)=>{let n=nv(_m);return Oe(ie.Trigger,{ref:o,className:a(Um({size:n}),"group",e),...r,children:[t,Oe(sv,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});qm.displayName=ie.Trigger.displayName;var Jm=Ir(({className:e,...t},r)=>Oe(ie.Content,{ref:r,className:a($m(),e),...t},void 0,!1,void 0,this));Jm.displayName=ie.Content.displayName;var mv=ie.Link,yn=Ir(({className:e,...t},r)=>Oe("div",{className:"absolute top-full left-0 flex justify-center",children:Oe(ie.Viewport,{className:a(Km(),e),ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));yn.displayName=ie.Viewport.displayName;var Qm=Ir(({className:e,...t},r)=>Oe(ie.Indicator,{ref:r,className:a(Ym(),e),...t,children:Oe("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));Qm.displayName=ie.Indicator.displayName;import{cva as Vr}from"class-variance-authority";import{Fragment as dv,forwardRef as pv,useCallback as er,useEffect as Em,useMemo as jm,useRef as cv,useState as ed}from"react";import{jsxDEV as tr}from"react/jsx-dev-runtime";var rr={sm:"sm",md:"md",lg:"lg",xl:"xl"},mo={default:"default",error:"error",success:"success"},lo={single:"single",first:"first",middle:"middle",last:"last"},td=Vr("relative inline-flex items-center",{variants:{size:{sm:"gap-1",md:"gap-1.5",lg:"gap-2",xl:"gap-2.5"}},defaultVariants:{size:rr.md}}),rd=Vr("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:rr.md,status:mo.default}}),od=Vr(["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:rr.md,filled:!1,focused:!1,status:mo.default,disabled:!1,position:lo.single}}),ad=Vr(["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:rr.md,status:mo.default,filled:!1}}),nd=Vr(["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:rr.md,focused:!1}}),id=Vr("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:rr.md}});function uv(e){if(!Number.isFinite(e))return 6;return Math.max(1,Math.floor(e))}function vn(e,t){let r=(e??"").split("").slice(0,t);if(r.length<t)return r.concat(Array(t-r.length).fill(""));return r}var sd=pv(({className:e,length:t=6,value:r,onChange:o,onComplete:n,size:i=rr.md,status:s=mo.default,disabled:l=!1,autoFocus:d=!1,mask:m=!1,groupSize:f,separator:u,separatorChar:h="—",placeholder:p="•",inputMode:y="numeric",pattern:S="[0-9]*",...M},w)=>{let T=c(i),b=uv(t),x=cv([]),[O,R]=ed(null),[I,C]=ed(()=>vn(r,b));Em(()=>{if(r!==void 0){C(vn(r,b));return}C((g)=>vn(g.join(""),b))},[r,b]),Em(()=>{if(d)x.current[0]?.focus()},[d]);let V=jm(()=>{if(typeof f==="number"&&Number.isFinite(f)){let g=Math.floor(f);if(g<=0)return b;return Math.min(b,Math.max(1,g))}if(typeof u==="number"&&Number.isFinite(u)){let g=Math.floor(u);if(g<=0)return b;return Math.min(b,Math.max(1,g))}if(u)return Math.max(1,Math.floor(b/2));return b},[f,b,u]),Y=jm(()=>{let g=[];for(let v=0;v<b;v+=V){let H=Math.min(v+V,b),te=[];for(let ee=v;ee<H;ee+=1)te.push(ee);g.push(te)}return g},[V,b]),F=er((g)=>{let v=x.current[g];if(!v)return;v.focus(),v.select()},[]),K=er((g)=>{C(g);let v=g.join("");if(o?.(v),g.every((H)=>H!=="")&&v.length===b)n?.(v)},[o,n,b]),N=er((g,v)=>{if(l)return;let te=(y==="numeric"?v.replace(/\D/g,""):v).slice(-1),ee=[...I];if(ee[g]=te,K(ee),te&&g<b-1)F(g+1)},[I,l,K,F,y,b]),A=er((g,v)=>{if(l)return;if(v.key==="Backspace"){if(v.preventDefault(),I[g]){let H=[...I];H[g]="",K(H);return}if(g>0){let H=[...I];H[g-1]="",K(H),F(g-1)}return}if(v.key==="Delete"){if(v.preventDefault(),I[g]){let H=[...I];H[g]="",K(H)}return}if(v.key==="ArrowLeft"){if(v.preventDefault(),g>0)F(g-1);return}if(v.key==="ArrowRight"){if(v.preventDefault(),g<b-1)F(g+1);return}if(v.key==="Home"){v.preventDefault(),F(0);return}if(v.key==="End")v.preventDefault(),F(b-1)},[I,l,K,F,b]),z=er((g,v)=>{if(v.preventDefault(),l)return;let H=v.clipboardData.getData("text"),ee=(y==="numeric"?H.replace(/\D/g,""):H.replace(/\s/g,"")).split("");if(ee.length===0)return;let Ae=[...I];for(let me=0;me<ee.length;me+=1){let $t=g+me;if($t>=b)break;Ae[$t]=ee[me]??""}K(Ae);let W=Math.min(b-1,g+ee.length-1);if(W<b-1){F(W+1);return}x.current[W]?.blur()},[I,l,K,F,y,b]),B=er((g,v)=>{R(g),v.target.select()},[]),U=er(()=>{R(null)},[]),L=u!==void 0,X=h.length>0&&u!==!1&&(L||Y.length>1);return tr("div",{ref:w,className:a(td({size:T}),e),role:"group","aria-label":"One-time password input",...M,children:Y.map((g,v)=>tr(dv,{children:[tr("div",{"data-gs-otp-group":"true",className:a(rd({size:T,status:s})),children:g.map((H,te)=>{let ee=I[H]??"",Ae=O===H,W=lo.middle;if(g.length===1)W=lo.single;else if(te===0)W=lo.first;else if(te===g.length-1)W=lo.last;return tr("div",{"data-gs-otp-slot":"true","data-disabled":l,className:a(od({size:T,filled:Boolean(ee),focused:Ae,status:s,disabled:l,position:W})),children:[tr("input",{ref:(me)=>{x.current[H]=me},type:m?"password":"text",inputMode:y,pattern:S,maxLength:1,value:ee,placeholder:"",disabled:l,"aria-invalid":s===mo.error,"aria-label":`Digit ${H+1} of ${b}`,autoComplete:"one-time-code",onChange:(me)=>N(H,me.target.value),onKeyDown:(me)=>A(H,me),onPaste:(me)=>z(H,me),onFocus:(me)=>B(H,me),onBlur:U,className:a(ad({size:T,status:s,filled:Boolean(ee)}))},void 0,!1,void 0,this),!ee&&tr("div",{"data-gs-otp-placeholder":"true","aria-hidden":"true",className:a(nd({size:T,focused:Ae})),children:p},void 0,!1,void 0,this)]},`slot-${H}`,!0,void 0,this)})},void 0,!1,void 0,this),X&&v<Y.length-1&&tr("span",{"data-gs-otp-separator":"true",className:a(id({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)});sd.displayName="OTPInput";import{createContext as Tv,useCallback as Fr,useContext as hv,useMemo as Pv,useState as xv}from"react";import*as le from"@radix-ui/react-dialog";import{cva as ld}from"class-variance-authority";import{X as fv}from"lucide-react";import{forwardRef as Jo}from"react";import{jsxDEV as et}from"react/jsx-dev-runtime";var Be={top:"top",right:"right",bottom:"bottom",left:"left"},ne={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},gv={[Be.top]:"gs-sheet-content gs-sheet-content-top",[Be.right]:"gs-sheet-content gs-sheet-content-right",[Be.bottom]:"gs-sheet-content gs-sheet-content-bottom",[Be.left]:"gs-sheet-content gs-sheet-content-left"},yv={[Be.right]:{[ne.sm]:"sm:max-w-sm",[ne.md]:"sm:max-w-md",[ne.lg]:"sm:max-w-lg",[ne.xl]:"sm:max-w-xl",[ne.full]:"sm:max-w-full"},[Be.left]:{[ne.sm]:"sm:max-w-sm",[ne.md]:"sm:max-w-md",[ne.lg]:"sm:max-w-lg",[ne.xl]:"sm:max-w-xl",[ne.full]:"sm:max-w-full"},[Be.top]:{[ne.sm]:"sm:max-h-[30vh]",[ne.md]:"sm:max-h-[50vh]",[ne.lg]:"sm:max-h-[70vh]",[ne.xl]:"sm:max-h-[85vh]",[ne.full]:"sm:max-h-full"},[Be.bottom]:{[ne.sm]:"sm:max-h-[30vh]",[ne.md]:"sm:max-h-[50vh]",[ne.lg]:"sm:max-h-[70vh]",[ne.xl]:"sm:max-h-[85vh]",[ne.full]:"sm:max-h-full"}},md=ld("gs-sheet-overlay fixed inset-0 z-50 bg-black/50"),dd=ld("fixed z-50 flex flex-col gap-4 border border-border bg-background p-6 shadow-[var(--shadow-xl)]",{variants:{side:{[Be.top]:"inset-x-0 top-0 border-b",[Be.bottom]:"inset-x-0 bottom-0 border-t",[Be.left]:"inset-y-0 left-0 h-full w-3/4 border-r",[Be.right]:"inset-y-0 right-0 h-full w-3/4 border-l"}},defaultVariants:{side:Be.right}}),bn=le.Root,vv=le.Trigger,bv=le.Close,pd=le.Portal,Tn=Jo(({className:e,...t},r)=>et(le.Overlay,{className:a(md(),e),...t,ref:r},void 0,!1,void 0,this));Tn.displayName=le.Overlay.displayName;var Qo=Jo(({side:e="right",size:t=ne.md,showClose:r=!0,className:o,children:n,...i},s)=>{let l=c(t)??ne.md,d=gv[e],m=yv[e][l];return et(pd,{children:[et(Tn,{},void 0,!1,void 0,this),et(le.Content,{ref:s,className:a(dd({side:e}),d,m,o),...i,children:[n,r&&et(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:[et(fv,{className:"size-4"},void 0,!1,void 0,this),et("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)});Qo.displayName=le.Content.displayName;var cd=({className:e,...t})=>et("div",{className:a("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);cd.displayName="SheetHeader";var ud=({className:e,...t})=>et("div",{className:a("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);ud.displayName="SheetFooter";var fd=Jo(({className:e,...t},r)=>et(le.Title,{ref:r,className:a("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));fd.displayName=le.Title.displayName;var gd=Jo(({className:e,...t},r)=>et(le.Description,{ref:r,className:a("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));gd.displayName=le.Description.displayName;import{jsxDEV as bt}from"react/jsx-dev-runtime";var hn=0;function Cv(){return hn=(hn+1)%Number.MAX_SAFE_INTEGER,`overlay-${hn}-${Date.now()}`}var vd=Tv(null),yd=400;function bd({children:e}){let[t,r]=xv([]),o=Fr((m)=>{r((f)=>f.map((u)=>u.id===m?{...u,open:!1}:u)),setTimeout(()=>{r((f)=>f.filter((u)=>u.id!==m))},yd)},[]),n=Fr(()=>{r((m)=>m.map((f)=>({...f,open:!1}))),setTimeout(()=>{r([])},yd)},[]),i=Fr((m,f,u,h={})=>{let p=Cv(),y=(w)=>{return bt(f,{...u,close:w.close},void 0,!1,void 0,this)};y.displayName=`OverlayWrapper(${f.displayName??f.name??"Component"})`;let S={id:p,type:m,component:y,wrapperProps:h,open:!0};return r((w)=>[...w,S]),{id:p,close:()=>o(p)}},[o]),s=Fr((m,f,u)=>{return i("dialog",m,f,u)},[i]),l=Fr((m,f,u)=>{return i("sheet",m,f,u)},[i]),d=Pv(()=>({dialog:s,sheet:l,close:o,closeAll:n}),[s,l,o,n]);return bt(vd.Provider,{value:d,children:[e,t.map((m)=>bt(zv,{entry:m,onClose:o},m.id,!1,void 0,this))]},void 0,!0,void 0,this)}bd.displayName="OverlayProvider";function zv({entry:e,onClose:t}){let{id:r,type:o,component:n,wrapperProps:i,open:s}=e,l=Fr(()=>t(r),[r,t]);if(o==="dialog"){let{showClose:d,size:m,...f}=i;return bt(Qr,{open:s,onOpenChange:(u)=>!u&&l(),children:bt($o,{showClose:d,size:m,...f,children:bt(n,{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:d,showClose:m,...f}=i;return bt(bn,{open:s,onOpenChange:(u)=>!u&&l(),children:bt(Qo,{side:d,showClose:m,...f,children:bt(n,{close:l},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}return null}function Sv(){let e=hv(vd);if(!e)throw Error("useOverlay must be used within an OverlayProvider");return e}import{cva as po}from"class-variance-authority";import{ChevronLeft as Nv,ChevronRight as wv,MoreHorizontal as Rv}from"lucide-react";import{createContext as Mv,forwardRef as co,useContext as Eo}from"react";import{jsxDEV as Ie}from"react/jsx-dev-runtime";var $e={sm:"sm",md:"md",lg:"lg"},uo=Mv($e.md),Td=po("mx-auto flex w-full justify-center"),hd=po("flex flex-row items-center gap-1"),Pd=po(""),jo=po("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:{[$e.sm]:"h-7 w-7 text-xs [&_svg]:size-3.5",[$e.md]:"h-9 w-9 text-sm [&_svg]:size-4",[$e.lg]:"h-10 w-10 text-sm [&_svg]:size-5"}},defaultVariants:{isActive:!1,size:$e.md}}),xd=po("flex items-center justify-center",{variants:{size:{[$e.sm]:"h-7 w-7 [&_svg]:size-3.5",[$e.md]:"h-9 w-9 [&_svg]:size-4",[$e.lg]:"h-10 w-10 [&_svg]:size-5"}},defaultVariants:{size:$e.md}}),Cd=({className:e,size:t=$e.md,...r})=>{let o=c(t)??$e.md;return Ie(uo.Provider,{value:o,children:Ie("nav",{"aria-label":"pagination",className:a(Td(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)};Cd.displayName="Pagination";var zd=co(({className:e,...t},r)=>Ie("ul",{ref:r,className:a(hd(),e),...t},void 0,!1,void 0,this));zd.displayName="PaginationContent";var Sd=co(({className:e,...t},r)=>Ie("li",{ref:r,className:a(Pd(),e),...t},void 0,!1,void 0,this));Sd.displayName="PaginationItem";var Nd=co(({className:e,isActive:t,...r},o)=>{let n=Eo(uo);return Ie("button",{ref:o,type:"button","aria-current":t?"page":void 0,className:a(jo({isActive:t,size:n}),e),...r},void 0,!1,void 0,this)});Nd.displayName="PaginationLink";var wd=co(({className:e,...t},r)=>{let o=Eo(uo);return Ie("button",{ref:r,type:"button","aria-label":"Go to previous page",className:a(jo({size:o}),"gap-1 pl-2.5 pr-3 w-auto",e),...t,children:[Ie(Nv,{},void 0,!1,void 0,this),Ie("span",{children:"Previous"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});wd.displayName="PaginationPrevious";var Rd=co(({className:e,...t},r)=>{let o=Eo(uo);return Ie("button",{ref:r,type:"button","aria-label":"Go to next page",className:a(jo({size:o}),"gap-1 pl-3 pr-2.5 w-auto",e),...t,children:[Ie("span",{children:"Next"},void 0,!1,void 0,this),Ie(wv,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Rd.displayName="PaginationNext";var Md=({className:e,...t})=>{let r=Eo(uo);return Ie("span",{"aria-hidden":!0,className:a(xd({size:r}),e),...t,children:[Ie(Rv,{},void 0,!1,void 0,this),Ie("span",{className:"sr-only",children:"More pages"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};Md.displayName="PaginationEllipsis";import*as yo from"@radix-ui/react-progress";import{cva as Ld}from"class-variance-authority";import{forwardRef as Lv}from"react";import{jsxDEV as ea}from"react/jsx-dev-runtime";var fo={sm:"sm",md:"md",lg:"lg",xl:"xl"},go={default:"default",success:"success",warning:"warning",error:"error"},Hd=Ld("relative w-full overflow-hidden rounded-full bg-muted",{variants:{size:{[fo.sm]:"h-1",[fo.md]:"h-2.5",[fo.lg]:"h-4",[fo.xl]:"h-5"}},defaultVariants:{size:fo.md}}),kd=Ld("h-full w-full flex-1 rounded-full transition-transform duration-100 ease-out",{variants:{variant:{[go.default]:"bg-primary",[go.success]:"bg-success",[go.warning]:"bg-warning",[go.error]:"bg-destructive"}},defaultVariants:{variant:go.default}}),Ad=Lv(({className:e,value:t,size:r,variant:o,showValue:n,...i},s)=>{let l=c(r);return ea("div",{className:"flex w-full items-center gap-2",children:[ea(yo.Root,{ref:s,className:a(Hd({size:l}),e),...i,children:ea(yo.Indicator,{className:a(kd({variant:o})),style:{transform:`translateX(-${100-(t||0)}%)`}},void 0,!1,void 0,this)},void 0,!1,void 0,this),n&&ea("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)});Ad.displayName=yo.Root.displayName;import*as Br from"@radix-ui/react-radio-group";import{cva as Id}from"class-variance-authority";import{forwardRef as Vd}from"react";import{jsxDEV as ta}from"react/jsx-dev-runtime";var tt={sm:"sm",md:"md",lg:"lg",xl:"xl"},Or={default:"default",error:"error",success:"success"},Fd=Id("grid gap-2"),Od=Id("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:{[tt.sm]:"h-4 w-4",[tt.md]:"h-5 w-5",[tt.lg]:"h-6 w-6",[tt.xl]:"h-7 w-7"},status:{[Or.default]:"enabled:hover:border-primary/70",[Or.error]:"border-destructive enabled:hover:border-destructive/70 focus-visible:ring-destructive data-[state=checked]:border-destructive data-[state=checked]:text-destructive",[Or.success]:"border-success enabled:hover:border-success/70 focus-visible:ring-success data-[state=checked]:border-success data-[state=checked]:text-success"}},defaultVariants:{size:tt.md,status:Or.default}}),Hv={[tt.sm]:"h-2 w-2",[tt.md]:"h-2.5 w-2.5",[tt.lg]:"h-3 w-3",[tt.xl]:"h-3.5 w-3.5"},Bd=Vd(({className:e,...t},r)=>ta(Br.Root,{ref:r,className:a(Fd(),e),...t},void 0,!1,void 0,this));Bd.displayName="RadioGroup";var Dd=Vd(({className:e,size:t=tt.md,status:r=Or.default,...o},n)=>{let i=c(t);return ta(Br.Item,{ref:n,className:a(Od({size:i,status:r}),e),...o,children:ta(Br.Indicator,{className:"flex items-center justify-center",children:ta("span",{className:a("block rounded-full bg-current transition-transform duration-150",Hv[i])},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Dd.displayName="RadioGroupItem";import{cva as aa}from"class-variance-authority";import{forwardRef as Pn,useCallback as ra,useRef as kv,useState as Av}from"react";import{jsxDEV as oa}from"react/jsx-dev-runtime";var _d=aa("flex h-full w-full",{variants:{direction:{horizontal:"flex-row",vertical:"flex-col"}},defaultVariants:{direction:"horizontal"}}),Gd=aa("relative overflow-hidden"),Wd=aa("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}}),Ud=aa("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=Pn(({className:e,direction:t="horizontal",children:r,...o},n)=>oa("div",{ref:n,"data-panel-group":"","data-direction":t,className:a(_d({direction:t}),e),...o,children:r},void 0,!1,void 0,this));$d.displayName="ResizablePanelGroup";var Kd=Pn(({className:e,defaultSize:t=50,children:r,style:o,...n},i)=>oa("div",{ref:i,"data-panel":"",className:a(Gd(),e),style:{...o,flexGrow:0,flexShrink:0,flexBasis:`${t}%`},...n,children:r},void 0,!1,void 0,this));Kd.displayName="ResizablePanel";var Yd=Pn(({className:e,withHandle:t=!1,disabled:r=!1,...o},n)=>{let[i,s]=Av(!1),l=kv(null),d=ra((p,y)=>{if(r)return;s(!0);let S=(w)=>{let T="touches"in w?w.touches[0]:null,b=T?T.clientX:w.clientX,x=T?T.clientY:w.clientY,O=l.current;if(!O)return;let R=O.closest("[data-panel-group]");if(!R)return;let I=R.dataset.direction,C=R.getBoundingClientRect(),V=Array.from(R.querySelectorAll(":scope > [data-panel]")),Y=Array.from(R.children).indexOf(O),F,K;for(let N of V){let A=Array.from(R.children).indexOf(N);if(A<Y)F=N;if(A>Y&&!K)K=N}if(F&&K){let N=I==="horizontal"?C.width:C.height,z=(I==="horizontal"?b-C.left:x-C.top)/N*100,B=Math.max(10,Math.min(90,z)),U=100-B;F.style.flexBasis=`${B}%`,K.style.flexBasis=`${U}%`}},M=()=>{s(!1),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",M),document.removeEventListener("touchmove",S),document.removeEventListener("touchend",M)};document.addEventListener("mousemove",S),document.addEventListener("mouseup",M),document.addEventListener("touchmove",S),document.addEventListener("touchend",M)},[r]),m=ra((p)=>{p.preventDefault(),d(p.clientX,p.clientY)},[d]),f=ra((p)=>{let y=p.touches[0];if(y)d(y.clientX,y.clientY)},[d]),u=ra((p)=>{if(r)return;let y=l.current??p.currentTarget,S=y.closest("[data-panel-group]");if(!S)return;let M=S.dataset.direction,w=p.shiftKey?10:1,T=Array.from(S.querySelectorAll(":scope > [data-panel]")),b=Array.from(S.children).indexOf(y),x,O;for(let C of T){let V=Array.from(S.children).indexOf(C);if(V<b)x=C;if(V>b&&!O)O=C}if(!(x&&O))return;let R=Number.parseFloat(x.style.flexBasis)||50,I=0;if(M==="horizontal"){if(p.key==="ArrowLeft")I=-w;if(p.key==="ArrowRight")I=w}else{if(p.key==="ArrowUp")I=-w;if(p.key==="ArrowDown")I=w}if(I!==0){p.preventDefault();let C=Math.max(10,Math.min(90,R+I));x.style.flexBasis=`${C}%`,O.style.flexBasis=`${100-C}%`}},[r]),h="horizontal";return oa("div",{ref:(p)=>{if(l.current=p,typeof n==="function")n(p);else if(n)n.current=p},role:"separator","aria-orientation":"horizontal",tabIndex:r?-1:0,"data-panel-resize-handle":"","data-dragging":i,onMouseDown:m,onTouchStart:f,onKeyDown:u,className:a(Wd({direction:"horizontal",withHandle:t}),i&&"bg-primary",r&&"pointer-events-none opacity-50",e),...o,children:t&&oa("div",{className:a(Ud({direction:"horizontal"}))},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Yd.displayName="ResizableHandle";import*as st from"@radix-ui/react-scroll-area";import{cva as xn}from"class-variance-authority";import{forwardRef as Xd}from"react";import{jsxDEV as Dr}from"react/jsx-dev-runtime";var Zd=xn("relative overflow-hidden"),Iv={display:"flex",flexDirection:"column"},Vv={flex:"1 1 0%",minHeight:0},qd=xn("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"}}),Jd=xn("relative flex-1 rounded-full bg-border"),Qd=Xd(({className:e,children:t,style:r,...o},n)=>Dr(st.Root,{ref:n,className:a(Zd(),e),style:{...r,...Iv},...o,children:[Dr(st.Viewport,{className:"w-full rounded-[inherit]",style:Vv,children:t},void 0,!1,void 0,this),Dr(Cn,{},void 0,!1,void 0,this),Dr(st.Corner,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this));Qd.displayName="ScrollArea";var Cn=Xd(({className:e,orientation:t="vertical",...r},o)=>Dr(st.ScrollAreaScrollbar,{ref:o,orientation:t,className:a(qd({orientation:t}),e),...r,children:Dr(st.ScrollAreaThumb,{className:a(Jd())},void 0,!1,void 0,this)},void 0,!1,void 0,this));Cn.displayName="ScrollBar";import{cva as Sn}from"class-variance-authority";import{createContext as Fv,forwardRef as Nn,useCallback as Ed,useContext as tp,useEffect as zn,useLayoutEffect as Ov,useRef as jd,useState as ep}from"react";import{jsxDEV as or}from"react/jsx-dev-runtime";var be={sm:"sm",md:"md",lg:"lg"},rp=Sn("relative inline-flex items-center rounded-[var(--radius)] border border-border bg-muted/50 p-1 text-muted-foreground",{variants:{size:{[be.sm]:"h-8 gap-0.5",[be.md]:"h-10 gap-0.5",[be.lg]:"h-11 gap-1"}},defaultVariants:{size:be.md}}),op=Sn(["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:{[be.sm]:"size-6",[be.md]:"size-8",[be.lg]:"size-9"},active:{true:"text-foreground",false:"text-muted-foreground hover:text-foreground/70"}},defaultVariants:{size:be.md,active:!1}}),ap=Sn(["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:{[be.sm]:"h-6 px-2.5 text-xs",[be.md]:"h-8 px-3 text-sm",[be.lg]:"h-9 px-4 text-sm"},active:{true:"text-foreground",false:"text-muted-foreground hover:text-foreground/70"}},defaultVariants:{size:be.md,active:!1}}),np={[be.sm]:"size-3",[be.md]:"size-3.5",[be.lg]:"size-4"},wn=Fv({activeValue:"",onSelect:()=>{},size:be.md,disabled:!1}),Bv=typeof window<"u"?Ov:zn,ip=Nn(({className:e,value:t,defaultValue:r,onValueChange:o,size:n,disabled:i=!1,children:s,...l},d)=>{let m=c(n),f=jd(null),[u,h]=ep(r??""),[p,y]=ep(null),S=jd(!0),M=t!==void 0?t:u,w=Ed((b)=>{if(i)return;if(t===void 0)h(b);o?.(b)},[i,t,o]),T=Ed(()=>{let b=f.current;if(!b)return;let x=b.querySelector('[data-state="active"]');if(!x){y(null);return}let O=b.getBoundingClientRect(),R=x.getBoundingClientRect();y({left:R.left-O.left,width:R.width})},[]);return Bv(()=>{T()},[T,M]),zn(()=>{if(S.current)requestAnimationFrame(()=>{S.current=!1})},[]),zn(()=>{let b=f.current;if(!b)return;let x=new MutationObserver(()=>{T()});return x.observe(b,{attributes:!0,attributeFilter:["data-state"],subtree:!0}),()=>x.disconnect()},[T]),or(wn.Provider,{value:{activeValue:M,onSelect:w,size:m,disabled:i},children:or("div",{ref:(b)=>{if(f.current=b,typeof d==="function")d(b);else if(d)d.current=b},role:"radiogroup",className:a(rp({size:m}),i&&"opacity-50 pointer-events-none",e),...l,children:[p&&or("span",{"aria-hidden":"true",className:a("absolute rounded-[calc(var(--radius)-2px)] bg-background shadow-sm",!S.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)});ip.displayName="SegmentedControl";var sp=Nn(({className:e,value:t,icon:r,disabled:o=!1,...n},i)=>{let{activeValue:s,onSelect:l,size:d,disabled:m}=tp(wn),f=s===t,u=o||m;return or("button",{ref:i,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:a(op({size:d,active:f}),e),...n,children:or("span",{className:a(np[d??be.md],"[&>svg]:size-full"),children:r},void 0,!1,void 0,this)},void 0,!1,void 0,this)});sp.displayName="SegmentedControlItem";var lp=Nn(({className:e,value:t,icon:r,disabled:o=!1,children:n,...i},s)=>{let{activeValue:l,onSelect:d,size:m,disabled:f}=tp(wn),u=l===t,h=o||f;return or("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:()=>d(t),className:a(ap({size:m,active:u}),e),...i,children:[r&&or("span",{className:a(np[m??be.md],"[&>svg]:size-full"),children:r},void 0,!1,void 0,this),n]},void 0,!0,void 0,this)});lp.displayName="SegmentedControlLabelItem";import*as Vt from"@radix-ui/react-popover";import{cva as dp}from"class-variance-authority";import{Check as Dv,ChevronDown as _v,X as Gv}from"lucide-react";import{Children as Wv,createContext as Uv,forwardRef as To,isValidElement as $v,useCallback as na,useContext as pp,useEffect as ia,useId as mp,useMemo as Kv,useRef as cp,useState as vo}from"react";import{jsxDEV as se,Fragment as Ev}from"react/jsx-dev-runtime";var oe={sm:"sm",md:"md",lg:"lg",xl:"xl"},_r={default:"default",error:"error",success:"success"},bo={trigger:"trigger",auto:"auto"},Yv={start:"start",center:"center",end:"end"},up=dp(["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:{[oe.sm]:"h-8 px-2.5 text-xs",[oe.md]:"h-10 px-3.5",[oe.lg]:"h-11 px-4.5 text-sm",[oe.xl]:"h-12 px-4 text-base"},status:{[_r.default]:"focus-visible:ring-primary data-[state=open]:ring-primary",[_r.error]:"border-destructive focus-visible:ring-destructive data-[state=open]:ring-destructive",[_r.success]:"border-success focus-visible:ring-success data-[state=open]:ring-success"}},defaultVariants:{size:oe.md,status:_r.default}}),fp=dp(["max-h-96 overflow-y-auto overflow-x-hidden"].join(" "),{variants:{widthMode:{[bo.trigger]:"w-[var(--radix-popover-trigger-width)]",[bo.auto]:"w-max min-w-0"},size:{[oe.sm]:"text-xs",[oe.md]:"text-sm",[oe.lg]:"text-sm",[oe.xl]:"text-base"}},defaultVariants:{widthMode:bo.auto,size:oe.md}}),Xv={[oe.sm]:"min-h-7.5 py-1.5 px-2.5 pr-3 text-xs",[oe.md]:"min-h-9 py-2 px-3 pr-4.5 text-sm",[oe.lg]:"min-h-10 py-2.5 px-3.5 pr-5.5 text-sm",[oe.xl]:"min-h-11 py-3 px-4 pr-6 text-base"},Zv={[oe.sm]:"px-2 py-1 text-xs",[oe.md]:"px-2 py-1.5 text-sm",[oe.lg]:"px-2.5 py-1.5 text-sm",[oe.xl]:"px-3 py-2 text-base"},sa={[oe.sm]:"size-3.5",[oe.md]:"size-4",[oe.lg]:"size-4",[oe.xl]:"size-4.5"};function Rn(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)=>Rn(t)).join("");if($v(e))return Rn(e.props.children);return""}var Mn=Uv(null);function la(){let e=pp(Mn);if(!e)throw Error("Select components must be used within Select");return e}function Ln(e){let t=pp(Mn);if(e)return e;return t?.triggerSize??oe.md}var qv=({children:e,value:t,defaultValue:r="",onValueChange:o,open:n,defaultOpen:i=!1,onOpenChange:s,disabled:l=!1})=>{let[d,m]=vo(oe.md),[f,u]=vo(!1),[h,p]=vo(r),[y,S]=vo(i),[M,w]=vo(0),T=cp(new Map),b=t!==void 0,x=n!==void 0,O=b?t:h,R=x?n:y,I=na((A)=>{if(!b)p(A);if(o?.(A),!x)S(!1);s?.(!1)},[b,x,o,s]),C=na((A)=>{if(l)return;if(!x)S(A);s?.(A)},[l,x,s]),V=na((A,z)=>{if(T.current.get(A)!==z)T.current.set(A,z),w((U)=>U+1)},[]),Y=na((A)=>{return T.current.get(A)},[]),F=mp(),K=mp(),N=Kv(()=>({value:O,onValueChange:I,open:R,onOpenChange:C,triggerSize:d,setTriggerSize:m,triggerFullWidth:f,setTriggerFullWidth:u,disabled:l,triggerId:F,contentId:K,registerItem:V,getLabel:Y}),[O,I,R,C,d,f,l,F,K,V,Y,M]);return se(Mn.Provider,{value:N,children:se(Vt.Root,{open:R,onOpenChange:C,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},Jv=({children:e,className:t})=>se("div",{role:"group",className:t,children:e},void 0,!1,void 0,this),Qv=({placeholder:e})=>{let{value:t,getLabel:r}=la();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(Ev,{children:o??t},void 0,!1,void 0,this)},gp=To(({className:e,children:t,size:r=oe.md,status:o=_r.default,fullWidth:n=!1,clearable:i=!1,leadingIcon:s,indicatorIcon:l,renderValue:d,placeholder:m,onKeyDown:f,...u},h)=>{let p=la(),y=c(r)??r,S=p.setTriggerSize,M=p.setTriggerFullWidth;ia(()=>{S(y)},[y,S]),ia(()=>{M(n)},[n,M]);let w=p.value.length>0,T=i&&w&&!p.disabled,b=(R)=>{R.stopPropagation(),R.preventDefault(),p.onValueChange("")},x;if(d)x=w?d(p.value):m?se("span",{className:"text-muted-foreground",children:m},void 0,!1,void 0,this):null;else x=t;let O=(R)=>{if(f?.(R),R.defaultPrevented)return;if(R.key==="ArrowDown"||R.key==="ArrowUp"||R.key==="Enter"||R.key===" "){if(!p.open)R.preventDefault(),p.onOpenChange(!0)}};return se(Vt.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:a(up({size:y,status:o}),n?"w-full":"w-auto",e),onKeyDown:O,...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:(R)=>R.preventDefault(),onClick:b,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(Gv,{className:sa[y]},void 0,!1,void 0,this)},void 0,!1,void 0,this),l??se(_v,{className:a(sa[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)});gp.displayName="SelectTrigger";var yp=To(({className:e,children:t,widthMode:r,size:o,align:n="start",side:i="bottom",sideOffset:s=4,portal:l=!0,forceMount:d=!0,onKeyDown:m,...f},u)=>{let h=la(),p=Ln(o),y=r??bo.auto,S=cp(null),M=ao(u,S),w=(x)=>{let O=S.current;if(!O)return;let R=Array.from(O.querySelectorAll('[role="option"]:not([data-disabled])'));if(R.length===0)return;let I=O.querySelector('[role="option"]:focus'),C=I?R.indexOf(I):-1,V;switch(x){case"first":V=R[0];break;case"last":V=R[R.length-1];break;case"next":V=R[C+1]??R[0];break;case"prev":V=R[C-1]??R[R.length-1];break}V?.focus()},T=(x)=>{if(m?.(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}};ia(()=>{if(h.open)requestAnimationFrame(()=>w("first"))},[h.open]);let b=se(Vt.Content,{ref:M,id:h.contentId,role:"listbox","aria-labelledby":h.triggerId,side:i,align:n,sideOffset:s,forceMount:d,onKeyDown:T,onOpenAutoFocus:(x)=>x.preventDefault(),className:a(Ar(),fp({widthMode:y,size:p}),"p-1",e),...f,children:t},void 0,!1,void 0,this);if(l)return se(Vt.Portal,{children:b},void 0,!1,void 0,this);return b});yp.displayName="SelectContent";var vp=To(({className:e,size:t,...r},o)=>{let n=Ln(t);return se("div",{ref:o,className:a("font-semibold text-foreground",Zv[n],e),...r},void 0,!1,void 0,this)});vp.displayName="SelectLabel";var bp=To(({className:e,children:t,value:r,label:o,size:n,disabled:i=!1,...s},l)=>{let d=la(),m=Ln(n),f=d.value===r,u=d.registerItem,h=Rn(Wv.toArray(t)).trim();ia(()=>{let S=o??(h.length>0?h:r);u(r,S)},[h,r,o,u]);let p=()=>{if(!i)d.onValueChange(r)},y=(S)=>{if(S.key==="Enter"||S.key===" ")S.preventDefault(),p()};return se("div",{ref:l,role:"option",tabIndex:i?void 0:-1,"aria-selected":f,"aria-disabled":i||void 0,"data-selected":f?"":void 0,"data-disabled":i?"":void 0,"data-value":r,className:a("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",Xv[m],f&&"bg-accent/50",e),onClick:p,onKeyDown:y,...s,children:[se("span",{className:a("flex shrink-0 items-center justify-center",sa[m]),children:f&&se(Dv,{className:sa[m]},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)});bp.displayName="SelectItem";var Tp=To(({className:e,...t},r)=>se("div",{ref:r,className:a("-mx-1 my-1 h-px bg-border",e),...t},void 0,!1,void 0,this));Tp.displayName="SelectSeparator";import{cva as jv}from"class-variance-authority";import{forwardRef as eb}from"react";import{jsxDEV as tb}from"react/jsx-dev-runtime";var ho={horizontal:"horizontal",vertical:"vertical"},hp=jv("shrink-0 bg-border",{variants:{orientation:{[ho.horizontal]:"h-px w-full",[ho.vertical]:"h-full w-px"}},defaultVariants:{orientation:ho.horizontal}}),Pp=eb(({className:e,orientation:t=ho.horizontal,decorative:r=!0,...o},n)=>{let i=r?{role:"none"}:{role:"separator","aria-orientation":t};return tb("div",{ref:n,className:a(hp({orientation:t}),e),...i,...o},void 0,!1,void 0,this)});Pp.displayName="Separator";import{cva as ma}from"class-variance-authority";import{forwardRef as da}from"react";import{jsxDEV as pa}from"react/jsx-dev-runtime";var Te={sm:"sm",md:"md",lg:"lg"},xp=ma("animate-pulse rounded-[var(--radius)] bg-muted"),Cp=ma("w-full",{variants:{size:{[Te.sm]:"h-3",[Te.md]:"h-4",[Te.lg]:"h-5"}},defaultVariants:{size:Te.md}}),zp=ma("",{variants:{size:{[Te.sm]:"h-8 w-8",[Te.md]:"h-10 w-10",[Te.lg]:"h-12 w-12"}},defaultVariants:{size:Te.md}}),Sp=ma("",{variants:{size:{[Te.sm]:"h-8 w-20",[Te.md]:"h-9 w-24",[Te.lg]:"h-10 w-28"}},defaultVariants:{size:Te.md}}),Po=da(({className:e,circle:t=!1,...r},o)=>pa("div",{ref:o,className:a(xp(),t&&"rounded-full",e),...r},void 0,!1,void 0,this));Po.displayName="Skeleton";var Np=da(({className:e,size:t=Te.md,...r},o)=>{let n=c(t)??Te.md;return pa(Po,{ref:o,className:a(Cp({size:n}),e),...r},void 0,!1,void 0,this)});Np.displayName="SkeletonText";var wp=da(({className:e,size:t=Te.md,...r},o)=>{let n=c(t)??Te.md;return pa(Po,{ref:o,circle:!0,className:a(zp({size:n}),e),...r},void 0,!1,void 0,this)});wp.displayName="SkeletonAvatar";var Rp=da(({className:e,size:t=Te.md,...r},o)=>{let n=c(t)??Te.md;return pa(Po,{ref:o,className:a(Sp({size:n}),e),...r},void 0,!1,void 0,this)});Rp.displayName="SkeletonButton";import*as Ft from"@radix-ui/react-slider";import{cva as fa}from"class-variance-authority";import{forwardRef as rb}from"react";import{jsxDEV as ua}from"react/jsx-dev-runtime";var ca={sm:"sm",md:"md",lg:"lg"},Mp=fa("relative flex w-full touch-none select-none items-center",{variants:{size:{[ca.sm]:"[&_[data-slider-track]]:h-0.5 [&_[data-slider-thumb]]:h-3 [&_[data-slider-thumb]]:w-3",[ca.md]:"[&_[data-slider-track]]:h-2 [&_[data-slider-thumb]]:h-5 [&_[data-slider-thumb]]:w-5",[ca.lg]:"[&_[data-slider-track]]:h-3 [&_[data-slider-thumb]]:h-6 [&_[data-slider-thumb]]:w-6"}},defaultVariants:{size:ca.md}}),Lp=fa("relative w-full grow overflow-hidden rounded-full bg-secondary"),Hp=fa("absolute h-full bg-primary"),kp=fa("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"),Ap=rb(({className:e,size:t,...r},o)=>{let n=c(t);return ua(Ft.Root,{ref:o,className:a(Mp({size:n}),e),...r,children:[ua(Ft.Track,{"data-slider-track":!0,className:a(Lp()),children:ua(Ft.Range,{className:a(Hp())},void 0,!1,void 0,this)},void 0,!1,void 0,this),(r.defaultValue??r.value??[0]).map((i,s)=>ua(Ft.Thumb,{"data-slider-thumb":!0,className:a(kp())},`thumb-${String(s)}`,!1,void 0,this))]},void 0,!0,void 0,this)});Ap.displayName="Slider";import{cva as Ce}from"class-variance-authority";import{forwardRef as sb,useCallback as xo,useEffect as lb,useMemo as ga,useRef as Co,useState as Fp}from"react";import{useCallback as ob,useEffect as ab,useRef as Ip}from"react";function An(e,t,r={}){let{enabled:o=!0,preventDefault:n=!0,stopPropagation:i=!1,target:s="global"}=r,l=Ip(t);l.current=t;let d=Ip([]),m=Array.isArray(e)?e:[e];d.current=m.map((u)=>({combo:u,def:Hn(u)}));let f=ob((u)=>{if(!o)return;for(let{combo:h,def:p}of d.current)if(kn(u,p)){if(n)u.preventDefault();if(i)u.stopPropagation();l.current(u,h);return}},[o,n,i]);ab(()=>{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{useEffect as nb,useState as ib}from"react";function Vp(e){let[t,r]=ib(!1);return nb(()=>{let o=window.matchMedia(e);r(o.matches);let n=(i)=>r(i.matches);return o.addEventListener("change",n),()=>o.removeEventListener("change",n)},[e]),t}import{jsxDEV as $,Fragment as In}from"react/jsx-dev-runtime";var mb="(max-width: 639px)",P={sm:"sm",md:"md",lg:"lg",xl:"xl"},Gr={idle:"idle",loading:"loading",error:"error"},Op=Ce("z-[120] bg-black/40"),Bp=Ce(["gs-spotlight-content fixed inset-x-0 top-[15vh] z-[120] w-full mx-auto","rounded-[calc(var(--radius)+6px)] border border-border bg-popover shadow-2xl","overflow-hidden"],{variants:{size:{[P.sm]:"max-w-md",[P.md]:"max-w-xl",[P.lg]:"max-w-2xl",[P.xl]:"max-w-3xl"}},defaultVariants:{size:P.md}}),Dp=Ce(["gs-sheet-content gs-sheet-content-bottom","fixed inset-x-0 bottom-0 z-[120] w-full flex flex-col","rounded-t-2xl border-t border-x border-border bg-popover shadow-2xl","overflow-hidden"]),_p=Ce("flex items-center border-b border-border",{variants:{size:{[P.sm]:"gap-2 px-3 py-2",[P.md]:"gap-3 px-4 py-3",[P.lg]:"gap-3 px-5 py-3.5",[P.xl]:"gap-4 px-6 py-4"}},defaultVariants:{size:P.md}}),Gp=Ce(["w-full flex-1 bg-transparent text-foreground","placeholder:text-muted-foreground","outline-none border-none"],{variants:{size:{[P.sm]:"text-sm",[P.md]:"text-base",[P.lg]:"text-lg",[P.xl]:"text-xl"}},defaultVariants:{size:P.md}}),Wp=Ce("text-muted-foreground shrink-0",{variants:{size:{[P.sm]:"size-3.5",[P.md]:"size-4",[P.lg]:"size-5",[P.xl]:"size-5"}},defaultVariants:{size:P.md}}),ya=Ce("inline-flex items-center justify-center rounded font-mono font-medium bg-muted border border-border text-muted-foreground",{variants:{size:{[P.sm]:"px-1 py-0.5 text-[9px]",[P.md]:"px-1.5 py-0.5 text-[10px]",[P.lg]:"px-2 py-0.5 text-[11px]",[P.xl]:"px-2 py-1 text-xs"}},defaultVariants:{size:P.md}}),Up=Ce("overflow-y-auto py-1",{variants:{size:{[P.sm]:"max-h-64",[P.md]:"max-h-80",[P.lg]:"max-h-96",[P.xl]:"max-h-[28rem]"}},defaultVariants:{size:P.md}}),$p=Ce("font-semibold text-muted-foreground uppercase tracking-wide",{variants:{size:{[P.sm]:"px-2.5 py-1.5 text-[10px]",[P.md]:"px-3 py-2 text-xs",[P.lg]:"px-3.5 py-2 text-xs",[P.xl]:"px-4 py-2.5 text-xs"}},defaultVariants:{size:P.md}}),Kp=Ce(["group flex items-center cursor-pointer rounded-lg","text-foreground","transition-[color,background-color,transform,box-shadow] duration-100","active:scale-[0.98]"],{variants:{size:{[P.sm]:"gap-2 px-2.5 py-1.5 mx-1.5",[P.md]:"gap-3 px-3 py-2 mx-2",[P.lg]:"gap-3 px-3.5 py-2.5 mx-2",[P.xl]:"gap-4 px-4 py-3 mx-2.5"},selected:{true:"bg-primary/10",false:"hover:bg-muted hover:translate-x-0.5"},disabled:{true:"text-muted-foreground cursor-not-allowed pointer-events-none bg-muted/40",false:""}},defaultVariants:{size:P.md,selected:!1,disabled:!1}}),Yp=Ce("shrink-0",{variants:{size:{[P.sm]:"size-3.5",[P.md]:"size-4",[P.lg]:"size-5",[P.xl]:"size-5"},selected:{true:"text-primary",false:"text-muted-foreground"}},defaultVariants:{size:P.md,selected:!1}}),Xp=Ce("flex-1 min-w-0"),Zp=Ce("font-medium truncate",{variants:{size:{[P.sm]:"text-xs",[P.md]:"text-sm",[P.lg]:"text-sm",[P.xl]:"text-base"}},defaultVariants:{size:P.md}}),qp=Ce("text-muted-foreground truncate",{variants:{size:{[P.sm]:"text-[11px]",[P.md]:"text-xs",[P.lg]:"text-xs",[P.xl]:"text-sm"}},defaultVariants:{size:P.md}}),Jp=Ce("flex items-center gap-1 text-muted-foreground shrink-0",{variants:{size:{[P.sm]:"text-[10px]",[P.md]:"text-[11px]",[P.lg]:"text-xs",[P.xl]:"text-xs"}},defaultVariants:{size:P.md}}),va=Ce("flex flex-col items-center justify-center text-muted-foreground",{variants:{size:{[P.sm]:"py-6 min-h-20",[P.md]:"py-8 min-h-24",[P.lg]:"py-10 min-h-28",[P.xl]:"py-12 min-h-32"},state:{empty:"text-muted-foreground",loading:"text-muted-foreground",error:"text-destructive"}},defaultVariants:{size:P.md,state:"empty"}}),ba=Ce("font-medium",{variants:{size:{[P.sm]:"text-xs",[P.md]:"text-sm",[P.lg]:"text-sm",[P.xl]:"text-base"}},defaultVariants:{size:P.md}}),Qp=Ce("mt-1",{variants:{size:{[P.sm]:"text-[11px]",[P.md]:"text-xs",[P.lg]:"text-xs",[P.xl]:"text-sm"}},defaultVariants:{size:P.md}}),Ep=(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},jp=sb(({className:e,open:t,onOpenChange:r,actions:o,onActionSelect:n,value:i,defaultValue:s="",onValueChange:l,placeholder:d="Search commands, pages, or actions...",size:m=P.md,status:f=Gr.idle,statusMessage:u,emptyText:h="No command found for this query.",hotkey:p,portal:y=!0,filterFn:S,renderItem:M,footer:w,...T},b)=>{let x=Co(null),O=Co(null),[R,I]=Fp(s),[C,V]=Fp(0),{isMac:Y}=no(),F=Vp(mb),K=xo((k)=>io(k,Y),[Y]),N=ga(()=>p&&p.length>0?p.join("+"):null,[p]);An(N??"",()=>r(!t),{enabled:!!N});let A=i!==void 0?i:R,z=S??Ep,B=ga(()=>o.filter((k)=>z(k,A)),[o,A,z]),U=ga(()=>B.map((k,E)=>k.disabled?-1:E).filter((k)=>k>=0),[B]),L=ga(()=>{let k=new Map,E=new Map,re=0;for(let fe of B){let Pt=fe.group??"";if(!k.has(Pt))k.set(Pt,[]);k.get(Pt).push(fe),E.set(fe,re),re++}return{groups:k,indexMap:E}},[B]),X=Co(!1),g=Co(t);if(g.current&&!t)X.current=!0;if(!g.current&&t)X.current=!1;g.current=t;let v=Co({query:A,status:f,statusMessage:u??null,filtered:B,grouped:L,activeIndex:C,emptyText:h});if(!X.current)v.current={query:A,status:f,statusMessage:u??null,filtered:B,grouped:L,activeIndex:C,emptyText:h};lb(()=>{if(t)V(0)},[t]);let H=xo((k)=>{let E=k.target.value;I(E),l?.(E),V(0)},[l]),te=xo((k)=>{let E=O.current;if(!E)return;E.querySelectorAll('[role="option"]')[k]?.scrollIntoView({block:"nearest"})},[]),ee=xo((k)=>{if(k.key==="ArrowDown"){if(k.preventDefault(),U.length===0)return;let re=(U.indexOf(C)+1)%U.length,fe=U[re];V(fe),te(fe);return}if(k.key==="ArrowUp"){if(k.preventDefault(),U.length===0)return;let re=(U.indexOf(C)-1+U.length)%U.length,fe=U[re];V(fe),te(fe);return}if(k.key==="Enter"){k.preventDefault();let E=B[C];if(E&&!E.disabled)n(E,C)}},[C,U,B,n,te]),Ae=xo((k,E)=>{if(k.disabled)return;n(k,E)},[n]),W=v.current,me=W.status===Gr.idle,$t=W.status!==Gr.idle,Z=$(In,{children:[$("div",{className:a(_p({size:m})),children:[$("svg",{className:a(Wp({size:m})),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:$("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),$("input",{ref:x,type:"text",value:W.query,onChange:H,placeholder:d,"aria-label":"Search",className:a(Gp({size:m}))},void 0,!1,void 0,this),!F&&p?$("div",{className:"flex items-center gap-1",children:p.map((k)=>$("kbd",{className:a(ya({size:m})),children:K(k)},k,!1,void 0,this))},void 0,!1,void 0,this):!F?$("kbd",{className:a(ya({size:m})),children:"ESC"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),$t&&W.status===Gr.loading&&$("div",{className:a(va({size:m,state:"loading"}),"animate-in fade-in-0 slide-in-from-bottom-1 duration-150"),children:[$(Ct,{size:"sm",className:"mb-2 text-muted-foreground"},void 0,!1,void 0,this),$("div",{className:a(ba({size:m})),children:"Searching commands..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$t&&W.status===Gr.error&&$("div",{className:a(va({size:m,state:"error"}),"animate-in fade-in-0 slide-in-from-bottom-1 duration-150"),children:[$("div",{className:a(ba({size:m})),children:"Search failed"},void 0,!1,void 0,this),W.statusMessage&&$("div",{className:a(Qp({size:m})),children:W.statusMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),me&&W.filtered.length===0&&$("div",{className:a(va({size:m,state:"empty"}),"animate-in fade-in-0 slide-in-from-bottom-1 duration-150"),children:$("div",{className:a(ba({size:m})),children:W.emptyText},void 0,!1,void 0,this)},void 0,!1,void 0,this),me&&W.filtered.length>0&&$("div",{ref:O,role:"listbox","aria-label":"Search results",className:a(Up({size:m}),F&&"max-h-none flex-1 min-h-0"),children:Array.from(W.grouped.groups.entries()).map(([k,E])=>$("div",{children:[k&&$("div",{className:a($p({size:m})),children:k},void 0,!1,void 0,this),E.map((re)=>{let fe=W.grouped.indexMap.get(re)??0,Pt=fe===W.activeIndex,Ua=re.disabled??!1;return $("div",{role:"option","aria-selected":Pt,"aria-disabled":Ua,onClick:()=>Ae(re,fe),className:a(Kp({size:m,selected:Pt,disabled:Ua})),children:M?M(re,{active:Pt,disabled:Ua,index:fe}):$(In,{children:[re.icon&&$("span",{className:a(Yp({size:m,selected:Pt})),children:re.icon},void 0,!1,void 0,this),$("div",{className:a(Xp()),children:[$("div",{className:a(Zp({size:m})),children:re.title},void 0,!1,void 0,this),re.description&&$("div",{className:a(qp({size:m})),children:re.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),re.shortcut&&re.shortcut.length>0&&$("div",{className:a(Jp({size:m})),children:re.shortcut.map((ei)=>$("kbd",{className:a(ya({size:m})),children:K(ei)},ei,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},re.id,!1,void 0,this)})]},k||"__ungrouped__",!0,void 0,this))},void 0,!1,void 0,this),w&&$("div",{className:"border-t border-border px-3 py-2",children:w},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ce=$(Er,{"data-testid":"spotlight-overlay",className:a(Op()),onClick:()=>r(!1)},void 0,!1,void 0,this),ue=$(mn,{...T,ref:b,className:a(F?Dp():Bp({size:m}),e),"aria-label":"Spotlight search","aria-describedby":void 0,onOpenAutoFocus:(k)=>{k.preventDefault(),x.current?.focus()},onCloseAutoFocus:(k)=>k.preventDefault(),onKeyDown:ee,children:[$(Ko,{className:"sr-only",children:"Spotlight search"},void 0,!1,void 0,this),F&&$("div",{className:"flex justify-center pt-2 pb-1",children:$("div",{className:"h-1 w-8 rounded-full bg-muted-foreground/30"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Z]},void 0,!0,void 0,this);return $(Qr,{open:t,onOpenChange:r,children:y?$(Uo,{children:[ce,ue]},void 0,!0,void 0,this):$(In,{children:[ce,ue]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});jp.displayName="Spotlight";import{cva as db}from"class-variance-authority";import{forwardRef as pb}from"react";import{jsxDEV as Ot}from"react/jsx-dev-runtime";var Ke={sm:"sm",md:"md",lg:"lg"},ar={up:"up",down:"down",neutral:"neutral"},ec=db("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:{[Ke.sm]:"gap-1 p-3",[Ke.md]:"gap-1.5 p-4",[Ke.lg]:"gap-2 p-5"}},defaultVariants:{size:Ke.md}}),cb={[Ke.sm]:"text-lg font-semibold",[Ke.md]:"text-2xl font-bold",[Ke.lg]:"text-3xl font-bold"},ub={[Ke.sm]:"text-xs",[Ke.md]:"text-sm",[Ke.lg]:"text-base"},fb={[ar.up]:"text-success",[ar.down]:"text-destructive",[ar.neutral]:"text-muted-foreground"},gb={[ar.up]:"↑",[ar.down]:"↓",[ar.neutral]:"→"},tc=pb(({className:e,size:t=Ke.md,label:r,value:o,trend:n,trendValue:i,icon:s,...l},d)=>{let m=c(t);return Ot("div",{ref:d,className:a(ec({size:m}),e),...l,children:[Ot("div",{className:"flex items-center justify-between",children:[Ot("span",{className:a("text-muted-foreground",ub[m]),children:r},void 0,!1,void 0,this),s&&Ot("span",{className:"text-muted-foreground/70","aria-hidden":"true",children:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ot("div",{className:"flex items-baseline gap-2",children:[Ot("span",{className:a("tracking-tight text-foreground",cb[m]),children:o},void 0,!1,void 0,this),n&&i&&Ot("span",{className:a("inline-flex items-center gap-0.5 text-xs font-medium",fb[n]),children:[Ot("span",{"aria-hidden":"true",children:gb[n]},void 0,!1,void 0,this),i]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});tc.displayName="StatCard";import{cva as nr}from"class-variance-authority";import{Check as yb}from"lucide-react";import{forwardRef as ir}from"react";import{jsxDEV as Bt}from"react/jsx-dev-runtime";var rc=nr("flex w-full",{variants:{orientation:{horizontal:"flex-row items-start",vertical:"flex-col"}},defaultVariants:{orientation:"horizontal"}}),oc=nr("flex",{variants:{orientation:{horizontal:"flex-1 flex-col items-center",vertical:"gap-4 flex-row"}},defaultVariants:{orientation:"horizontal"}}),ac=nr(["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}}),nc=nr("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}}),ic=nr("flex flex-col",{variants:{orientation:{horizontal:"mt-3 items-center text-center",vertical:"flex-1 pb-8 last:pb-0"}},defaultVariants:{orientation:"horizontal"}}),sc=nr("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"}}),lc=nr("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 mc=ir(({className:e,orientation:t="horizontal",activeStep:r,...o},n)=>{return Bt("div",{ref:n,role:"group","aria-label":"Progress steps",className:a(rc({orientation:t}),e),"data-orientation":t,"data-active-step":r,...o},void 0,!1,void 0,this)});mc.displayName="Stepper";var dc=ir(({className:e,orientation:t="horizontal",isLast:r,isCurrent:o,...n},i)=>{return Bt("div",{ref:i,className:a(oc({orientation:t}),e),"data-last":r,"aria-current":o?"step":void 0,...n},void 0,!1,void 0,this)});dc.displayName="Step";var pc=ir(({className:e,status:t="incomplete",size:r="md",icon:o,step:n,children:i,animated:s=!0,...l},d)=>{let m=c(r);return Bt("div",{ref:d,className:a(ac({status:t,size:m,animated:s}),e),"data-status":t,"aria-hidden":"true",...l,children:t==="complete"?o||Bt(yb,{className:"size-4",strokeWidth:3},void 0,!1,void 0,this):i||n},void 0,!1,void 0,this)});pc.displayName="StepIndicator";var cc=ir(({className:e,orientation:t="horizontal",status:r="incomplete",size:o="md",animated:n=!0,...i},s)=>{let l=c(o);return Bt("div",{ref:s,className:a(nc({orientation:t,status:r,size:l,animated:n}),e),"data-status":r,...i},void 0,!1,void 0,this)});cc.displayName="StepConnector";var uc=ir(({className:e,orientation:t="horizontal",...r},o)=>{return Bt("div",{ref:o,className:a(ic({orientation:t}),e),...r},void 0,!1,void 0,this)});uc.displayName="StepContent";var fc=ir(({className:e,status:t="incomplete",size:r="md",...o},n)=>{let i=c(r);return Bt("h4",{ref:n,className:a(sc({status:t,size:i}),e),...o},void 0,!1,void 0,this)});fc.displayName="StepTitle";var gc=ir(({className:e,size:t="md",...r},o)=>{let n=c(t);return Bt("p",{ref:o,className:a(lc({size:n}),e),...r},void 0,!1,void 0,this)});gc.displayName="StepDescription";import*as Ta from"@radix-ui/react-switch";import{cva as vb}from"class-variance-authority";import{forwardRef as bb}from"react";import{jsxDEV as yc}from"react/jsx-dev-runtime";var He={sm:"sm",md:"md",lg:"lg",xl:"xl"},Wr={default:"default",error:"error",success:"success"},vc=vb("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:{[He.sm]:"h-4.5 w-8",[He.md]:"h-5 w-9",[He.lg]:"h-6 w-11",[He.xl]:"h-7 w-[3.25rem]"},status:{[Wr.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",[Wr.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",[Wr.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:He.md,status:Wr.default}}),Tb={[He.sm]:"h-3.5 w-3.5",[He.md]:"h-4 w-4",[He.lg]:"h-5 w-5",[He.xl]:"h-6 w-6"},hb={[He.sm]:"data-[state=checked]:translate-x-3.5",[He.md]:"data-[state=checked]:translate-x-4",[He.lg]:"data-[state=checked]:translate-x-5",[He.xl]:"data-[state=checked]:translate-x-6"},bc=bb(({className:e,size:t=He.md,status:r=Wr.default,checked:o,disabled:n,...i},s)=>{let l=c(t);return yc(Ta.Root,{ref:s,checked:o,disabled:n,className:a(vc({size:l,status:r}),e),...i,children:yc(Ta.Thumb,{className:a("pointer-events-none block rounded-full bg-background shadow-sm transition-transform duration-150",Tb[l],hb[l])},void 0,!1,void 0,this)},void 0,!1,void 0,this)});bc.displayName="Switch";import{cva as Tt}from"class-variance-authority";import{createContext as Pb,forwardRef as Dt,useContext as Tc}from"react";import{jsxDEV as lt}from"react/jsx-dev-runtime";var we={sm:"sm",md:"md",lg:"lg"},Vn=Pb(we.md),hc=Tt("relative w-full overflow-auto rounded-[var(--radius)] border border-border bg-card shadow-[var(--shadow-sm)]"),Pc=Tt("w-full caption-bottom",{variants:{size:{[we.sm]:"text-xs",[we.md]:"text-sm",[we.lg]:"text-sm"}},defaultVariants:{size:we.md}}),xc=Tt("sticky top-0 z-[1] [&_tr]:border-b [&_tr]:border-border [&_th]:bg-muted"),Cc=Tt("[&_tr:last-child]:border-0"),zc=Tt("border-t border-border bg-muted font-medium text-muted-foreground [&>tr]:last:border-b-0"),Sc=Tt("gs-interactive border-b border-border hover:bg-muted/50 data-[state=selected]:bg-primary/10"),Nc=Tt("text-left align-middle font-semibold text-muted-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[we.sm]:"h-8 px-2",[we.md]:"h-10 px-3",[we.lg]:"h-12 px-4"}},defaultVariants:{size:we.md}}),wc=Tt("align-middle text-foreground [&:has([role=checkbox])]:pr-0",{variants:{size:{[we.sm]:"p-2",[we.md]:"p-3",[we.lg]:"p-4"}},defaultVariants:{size:we.md}}),Rc=Tt("mt-4 text-sm text-muted-foreground"),Mc=Dt(({className:e,containerClassName:t,size:r=we.md,...o},n)=>{let i=c(r)??we.md;return lt(Vn.Provider,{value:i,children:lt("div",{className:a(hc(),t),children:lt("table",{ref:n,className:a(Pc({size:i}),e),...o},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Mc.displayName="Table";var Lc=Dt(({className:e,...t},r)=>lt("thead",{ref:r,className:a(xc(),e),...t},void 0,!1,void 0,this));Lc.displayName="TableHeader";var Hc=Dt(({className:e,...t},r)=>lt("tbody",{ref:r,className:a(Cc(),e),...t},void 0,!1,void 0,this));Hc.displayName="TableBody";var kc=Dt(({className:e,...t},r)=>lt("tfoot",{ref:r,className:a(zc(),e),...t},void 0,!1,void 0,this));kc.displayName="TableFooter";var Ac=Dt(({className:e,...t},r)=>lt("tr",{ref:r,className:a(Sc(),e),...t},void 0,!1,void 0,this));Ac.displayName="TableRow";var Ic=Dt(({className:e,size:t,...r},o)=>{let n=Tc(Vn);return lt("th",{ref:o,className:a(Nc({size:t??n}),e),...r},void 0,!1,void 0,this)});Ic.displayName="TableHead";var Vc=Dt(({className:e,size:t,...r},o)=>{let n=Tc(Vn);return lt("td",{ref:o,className:a(wc({size:t??n}),e),...r},void 0,!1,void 0,this)});Vc.displayName="TableCell";var Fc=Dt(({className:e,...t},r)=>lt("caption",{ref:r,className:a(Rc(),e),...t},void 0,!1,void 0,this));Fc.displayName="TableCaption";import*as rt from"@radix-ui/react-tabs";import{cva as Fn}from"class-variance-authority";import{createContext as xb,forwardRef as On,useCallback as Oc,useContext as Cb,useEffect as Bn,useLayoutEffect as zb,useRef as ha,useState as Sb}from"react";import{jsxDEV as zo}from"react/jsx-dev-runtime";var mt={sm:"sm",md:"md",lg:"lg",xl:"xl"},Bc=Fn("relative inline-flex items-center justify-center rounded-[var(--radius)] border border-border bg-muted/50 p-1 text-muted-foreground",{variants:{size:{[mt.sm]:"h-9 gap-0.5",[mt.md]:"h-11 gap-1",[mt.lg]:"h-12 gap-1",[mt.xl]:"h-14 gap-1.5"}},defaultVariants:{size:mt.md}}),Dc=Fn("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:{[mt.sm]:"px-2.5 py-1 text-xs",[mt.md]:"px-3 py-1.5 text-sm",[mt.lg]:"px-4 py-2 text-sm",[mt.xl]:"px-5 py-2.5 text-base"}},defaultVariants:{size:mt.md}}),_c=Fn("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),Gc=xb({registerTrigger:()=>{}}),Nb=typeof window<"u"?zb:Bn,wb=rt.Root,Wc=On(({className:e,size:t,children:r,...o},n)=>{let i=c(t),s=ha(null),l=ha(new Map),[d,m]=Sb(null),f=ha(!0),u=Oc((p,y)=>{if(y)l.current.set(p,y);else l.current.delete(p)},[]),h=Oc(()=>{let p=s.current;if(!p)return;let y=p.querySelector('[data-state="active"]');if(!y){m(null);return}let S=p.getBoundingClientRect(),M=y.getBoundingClientRect();m({left:M.left-S.left,width:M.width})},[]);return Nb(()=>{h()},[h]),Bn(()=>{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]),zo(Gc.Provider,{value:{registerTrigger:u},children:zo(rt.List,{ref:(p)=>{if(s.current=p,typeof n==="function")n(p);else if(n)n.current=p},className:a(Bc({size:i}),e),...o,children:[d&&zo("span",{"aria-hidden":"true",className:a("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:d.left,width:d.width,top:"4px",bottom:"4px"}},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Wc.displayName=rt.List.displayName;var Uc=On(({className:e,size:t,value:r,...o},n)=>{let i=c(t),{registerTrigger:s}=Cb(Gc),l=ha(null);return Bn(()=>{return s(r,l.current),()=>s(r,null)},[r,s]),zo(rt.Trigger,{ref:(d)=>{if(l.current=d,typeof n==="function")n(d);else if(n)n.current=d},value:r,className:a(Dc({size:i}),e),...o},void 0,!1,void 0,this)});Uc.displayName=rt.Trigger.displayName;var $c=On(({className:e,...t},r)=>zo(rt.Content,{ref:r,className:a(_c(),e),...t},void 0,!1,void 0,this));$c.displayName=rt.Content.displayName;import{cva as Rb}from"class-variance-authority";import{forwardRef as Mb}from"react";import{jsxDEV as Lb}from"react/jsx-dev-runtime";var So={default:"default",error:"error",success:"success"},Ur={sm:"sm",md:"md",lg:"lg",xl:"xl"},Kc=Rb("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:{[So.default]:"focus-visible:ring-primary",[So.error]:"border-destructive focus-visible:ring-destructive",[So.success]:"border-success focus-visible:ring-success"},size:{[Ur.sm]:"min-h-[64px] px-2 py-1.5 text-xs",[Ur.md]:"min-h-[96px] px-3 py-2",[Ur.lg]:"min-h-[112px] px-4 py-2.5",[Ur.xl]:"min-h-[128px] px-4 py-3 text-base"}},defaultVariants:{status:So.default,size:Ur.md}}),Yc=Mb(({className:e,status:t=So.default,size:r=Ur.md,fullWidth:o=!1,noResize:n=!1,disabled:i,...s},l)=>{let d=c(r);return Lb("textarea",{ref:l,className:a(Kc({status:t,size:d}),i&&"bg-muted",o&&"w-full",n&&"resize-none",e),disabled:i,...s},void 0,!1,void 0,this)});Yc.displayName="Textarea";import{cva as _t}from"class-variance-authority";import{forwardRef as Gt}from"react";import{jsxDEV as dt}from"react/jsx-dev-runtime";var Xc=_t("relative flex flex-col"),Zc=_t(["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}}),qc=_t(["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}}),Jc=_t(["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}}),Qc=_t("flex flex-col gap-1 pt-0.5 min-w-0 transition-opacity duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]"),Ec=_t("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"}}),jc=_t("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"}}),eu=_t("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 tu=Gt(({className:e,...t},r)=>{return dt("div",{ref:r,role:"list","aria-label":"Timeline events",className:a(Xc(),e),...t},void 0,!1,void 0,this)});tu.displayName="Timeline";var ru=Gt(({className:e,align:t,isLast:r,animated:o=!0,...n},i)=>{return dt("div",{ref:i,role:"listitem",className:a(Zc({align:t,animated:o}),e),"data-last":r,...n},void 0,!1,void 0,this)});ru.displayName="TimelineItem";var ou=Gt(({className:e,variant:t,size:r,animated:o=!0,...n},i)=>{let s=c(r);return dt("div",{ref:i,className:a(qc({variant:t,size:s,animated:o}),e),...n},void 0,!1,void 0,this)});ou.displayName="TimelineConnector";var au=Gt(({className:e,variant:t,size:r,icon:o,children:n,pulse:i=!1,animated:s=!0,...l},d)=>{let m=c(r);return dt("div",{ref:d,className:a(Jc({variant:t,size:m,pulse:i,animated:s}),e),"aria-hidden":"true",...l,children:o||n||dt(Hb,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)});au.displayName="TimelineDot";var nu=Gt(({className:e,...t},r)=>{return dt("div",{ref:r,className:a(Qc(),e),...t},void 0,!1,void 0,this)});nu.displayName="TimelineContent";var iu=Gt(({className:e,size:t,...r},o)=>{let n=c(t);return dt("h4",{ref:o,className:a(Ec({size:n}),e),...r},void 0,!1,void 0,this)});iu.displayName="TimelineTitle";var su=Gt(({className:e,size:t,...r},o)=>{let n=c(t);return dt("p",{ref:o,className:a(jc({size:n}),e),...r},void 0,!1,void 0,this)});su.displayName="TimelineDescription";var lu=Gt(({className:e,size:t,...r},o)=>{let n=c(t);return dt("time",{ref:o,className:a(eu({size:n}),e),...r},void 0,!1,void 0,this)});lu.displayName="TimelineTime";function Hb(){return dt("span",{className:"size-2 rounded-full bg-current"},void 0,!1,void 0,this)}import{cva as mu}from"class-variance-authority";var $r={default:"default",success:"success",info:"info",warning:"warning",error:"error"},Ye={sm:"sm",md:"md",lg:"lg"},Dn=mu("pointer-events-auto relative flex w-full items-center overflow-hidden rounded-[var(--radius)] border shadow-[var(--shadow-md)]",{variants:{variant:{[$r.default]:"border-border bg-card text-card-foreground",[$r.success]:"border-success/30 bg-card text-card-foreground",[$r.info]:"border-info/30 bg-card text-card-foreground",[$r.warning]:"border-warning/30 bg-card text-card-foreground",[$r.error]:"border-destructive/30 bg-card text-card-foreground"},size:{[Ye.sm]:"gap-2 p-3",[Ye.md]:"gap-3 p-4",[Ye.lg]:"gap-3.5 p-5"}},defaultVariants:{variant:$r.default,size:Ye.md}}),_n=mu("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:{[Ye.sm]:"h-6 px-2 text-xs",[Ye.md]:"h-7 px-2.5 text-xs",[Ye.lg]:"h-8 px-3 text-sm"}},defaultVariants:{size:Ye.md}});import{AlertTriangle as _b,CheckCircle2 as Gb,Info as fu,X as Wb,XCircle as Ub}from"lucide-react";import{forwardRef as $b,useCallback as Ca,useEffect as za,useRef as Kn,useState as Yn}from"react";import{useSyncExternalStore as kb}from"react";var Ab=5,pu=5000,Ib=500,Gn=0;function Vb(){return Gn=(Gn+1)%Number.MAX_SAFE_INTEGER,`toast-${Gn}-${Date.now()}`}var Wn=new Set,Xe=[],lr=new Map,wo=new Map,Ro=!1,sr=new Map;function Pa(){for(let e of Wn)e()}function du(){return Xe}function Fb(e){return Wn.add(e),()=>{Wn.delete(e)}}function Un(e,t){if(Ro){sr.set(e,t);return}clearTimeout(lr.get(e));let r=Date.now(),o=setTimeout(()=>{lr.delete(e),sr.delete(e),xa(e)},t);lr.set(e,o),sr.set(e,t);let n=setInterval(()=>{let i=Date.now()-r,s=t-i;if(s<=0)clearInterval(n),sr.delete(e);else sr.set(e,s)},100)}function Ob(e){clearTimeout(wo.get(e));let t=setTimeout(()=>{Xe=Xe.filter((r)=>r.id!==e),wo.delete(e),Pa()},Ib);wo.set(e,t)}function No(e){let t=e.id??Vb(),r=e.duration??pu;if(Xe.find((i)=>i.id===t))return Xe=Xe.map((i)=>i.id===t?{...i,...e,id:t,open:!0,createdAt:Date.now()}:i),clearTimeout(wo.get(t)),wo.delete(t),Un(t,r),Pa(),t;return Xe=[{...e,id:t,variant:e.variant??"default",dismissible:e.dismissible??!0,open:!0,createdAt:Date.now()},...Xe].slice(0,Ab),Un(t,r),Pa(),t}function xa(e){clearTimeout(lr.get(e)),lr.delete(e),sr.delete(e),Xe=Xe.map((t)=>t.id===e?{...t,open:!1}:t),Pa(),Ob(e)}function cu(){for(let e of Xe)xa(e.id)}function Bb(){if(Ro)return;Ro=!0;for(let[e,t]of lr)clearTimeout(t),lr.delete(e)}function Db(){if(!Ro)return;Ro=!1;for(let e of Xe)if(e.open){let t=sr.get(e.id)??pu;Un(e.id,t)}}var uu=Object.assign((e)=>No(e),{success:(e,t)=>No({...t,variant:"success",title:e}),info:(e,t)=>No({...t,variant:"info",title:e}),warning:(e,t)=>No({...t,variant:"warning",title:e}),error:(e,t)=>No({...t,variant:"error",title:e}),dismiss:xa,dismissAll:cu});function $n(){return{toasts:kb(Fb,du,du),toast:uu,dismiss:xa,dismissAll:cu,pauseAll:Bb,resumeAll:Db}}import{jsxDEV as ke}from"react/jsx-dev-runtime";var yu=10,gu=0.05,Kb=200,vu="cubic-bezier(0.2, 0.8, 0.2, 1)",Yb="cubic-bezier(0.22, 1, 0.36, 1)",Xb={"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"},Zb={success:(e)=>ke(Gb,{className:a("mt-0.5 shrink-0 text-success",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),info:(e)=>ke(fu,{className:a("mt-0.5 shrink-0 text-info",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),warning:(e)=>ke(_b,{className:a("mt-0.5 shrink-0 text-warning",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),error:(e)=>ke(Ub,{className:a("mt-0.5 shrink-0 text-destructive",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),default:(e)=>ke(fu,{className:a("mt-0.5 shrink-0 text-muted-foreground",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this)};function qb(e,t,r,o,n){let i=e<o,s=r?n:e*yu,l=r?1:i?1-e*gu:1-o*gu,d=i||r?1:0,m=t-e;return{offset:s,scale:l,opacity:d,zIndex:m}}var bu=$b(({position:e="bottom-right",gap:t=12,visibleCount:r=3,size:o=Ye.md,className:n,...i},s)=>{let{toasts:l,dismiss:d,pauseAll:m,resumeAll:f}=$n(),u=c(o)??Ye.md,[h,p]=Yn(!1),[y,S]=Yn({}),M=Kn(null),w=Kn(void 0),T=e.startsWith("bottom"),b=Ca((z)=>{if(M.current=z,typeof s==="function")s(z);else if(s)s.current=z},[s]),x=Ca(()=>{clearTimeout(w.current),p(!0),m()},[m]),O=Ca(()=>{clearTimeout(w.current),w.current=setTimeout(()=>{p(!1),f()},Kb)},[f]);za(()=>{return()=>clearTimeout(w.current)},[]);let R=Ca((z,B)=>{S((U)=>{if(U[z]===B)return U;return{...U,[z]:B}})},[]);if(za(()=>{let z=new Set(l.map((B)=>B.id));S((B)=>{let U=!1,L={};for(let[X,g]of Object.entries(B))if(z.has(X))L[X]=g;else U=!0;return U?L:B})},[l]),l.length===0)return null;let I=l.filter((z)=>z.open),C=new Map,V=0;for(let[z,B]of I.entries()){let U=y[B.id]??0;C.set(B.id,qb(z,I.length,h,r,V)),V+=U+t}let Y=I[0],K=(Y?y[Y.id]??0:0)+Math.min(I.length-1,r-1)*yu,N=V-(I.length>0?t:0),A=h?N:K;return ke("ol",{ref:b,role:"region","aria-label":"Notifications",tabIndex:-1,onMouseEnter:x,onMouseLeave:O,className:a("pointer-events-auto fixed z-[100] w-full max-w-[400px] outline-none",Xb[e],n),style:{height:Math.max(A,0),transition:`height 400ms ${vu}`},...i,children:l.map((z)=>{let B=!z.open,U=C.get(z.id);return ke(Jb,{toast:z,layout:U??{offset:0,scale:1,opacity:0,zIndex:0},isClosed:B,isBottom:T,size:u,onDismiss:d,onMeasure:R},z.id,!1,void 0,this)})},void 0,!1,void 0,this)});bu.displayName="Toaster";function Jb({toast:e,layout:t,isClosed:r,isBottom:o,size:n,onDismiss:i,onMeasure:s}){let l=Kn(null),[d,m]=Yn(!1);za(()=>{let y=requestAnimationFrame(()=>m(!0));return()=>cancelAnimationFrame(y)},[]),za(()=>{let y=l.current;if(!y)return;let S=new ResizeObserver((M)=>{for(let w of M){let T=w.borderBoxSize?.[0];if(T)s(e.id,T.blockSize)}});return S.observe(y),()=>S.disconnect()},[e.id,s]);let f=o?{bottom:0,left:0,right:0}:{top:0,left:0,right:0},u,h,p;if(!d)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 ke("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 ${vu}`,`opacity 250ms ${Yb}`].join(", ")},children:ke("div",{className:a(Dn({variant:e.variant,size:n}),"w-full"),children:[Zb[e.variant]?.(n),ke("div",{className:"flex-1 space-y-0.5",children:[e.title&&ke("p",{className:a("font-semibold leading-tight",n==="sm"?"text-xs":"text-sm"),children:e.title},void 0,!1,void 0,this),e.description&&ke("p",{className:a("leading-snug text-muted-foreground",n==="sm"?"text-xs":"text-sm"),children:e.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.action&&ke("button",{type:"button",className:a(_n({size:n}),"mt-0.5"),onClick:e.action.onClick,"aria-label":e.action.altText,children:e.action.label},void 0,!1,void 0,this),e.dismissible!==!1&&ke("button",{type:"button",className:a("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",n==="sm"?"[&>svg]:size-3.5":"[&>svg]:size-4"),onClick:()=>i(e.id),"aria-label":"Dismiss",children:ke(Wb,{},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 Tu from"@radix-ui/react-toggle";import{cva as Qb}from"class-variance-authority";import{forwardRef as Eb}from"react";import{jsxDEV as jb}from"react/jsx-dev-runtime";var Xn={default:"default",outline:"outline"},Sa={sm:"sm",md:"md",lg:"lg"},Na=Qb("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:{[Xn.default]:"bg-transparent disabled:bg-transparent disabled:text-foreground/50",[Xn.outline]:"border-input bg-transparent hover:bg-accent hover:text-accent-foreground disabled:bg-transparent disabled:text-foreground/50 disabled:border-border/50"},size:{[Sa.sm]:"h-7 px-1.5 min-w-7 text-xs",[Sa.md]:"h-10 px-3 min-w-10",[Sa.lg]:"h-11 px-5 min-w-11"}},defaultVariants:{variant:Xn.default,size:Sa.md}}),hu=Eb(({className:e,variant:t,size:r,...o},n)=>{let i=c(r);return jb(Tu.Root,{ref:n,className:a(Na({variant:t,size:i}),e),...o},void 0,!1,void 0,this)});hu.displayName="Toggle";import*as wa from"@radix-ui/react-toggle-group";import{cva as eT}from"class-variance-authority";import{createContext as tT,forwardRef as Pu,useContext as rT}from"react";import{jsxDEV as Zn}from"react/jsx-dev-runtime";var oT={default:"default",outline:"outline"},aT={sm:"sm",md:"md",lg:"lg"},xu=eT("flex items-center justify-center gap-1"),Cu=tT({size:aT.md,variant:oT.default}),zu=Pu(({className:e,variant:t,size:r,children:o,...n},i)=>{let s=c(r);return Zn(wa.Root,{ref:i,className:a(xu(),e),...n,children:Zn(Cu.Provider,{value:{variant:t,size:s},children:o},void 0,!1,void 0,this)},void 0,!1,void 0,this)});zu.displayName="ToggleGroup";var Su=Pu(({className:e,children:t,variant:r,size:o,...n},i)=>{let s=rT(Cu),l=c(o);return Zn(wa.Item,{ref:i,className:a(Na({variant:r??s.variant,size:l??s.size}),e),...n,children:t},void 0,!1,void 0,this)});Su.displayName="ToggleGroupItem";import{cva as Nu}from"class-variance-authority";import{forwardRef as Ra}from"react";import{jsxDEV as Ma}from"react/jsx-dev-runtime";var ot={sm:"sm",md:"md",lg:"lg"},wu=Nu("flex items-center border-b border-border bg-background",{variants:{size:{[ot.sm]:"gap-1.5 px-3 py-1.5",[ot.md]:"gap-2 px-4 py-2",[ot.lg]:"gap-3 px-5 py-2.5"}},defaultVariants:{size:ot.md}}),Ru=Ra(({className:e,size:t=ot.md,...r},o)=>{let n=c(t);return Ma("div",{ref:o,role:"toolbar",className:a(wu({size:n}),e),...r},void 0,!1,void 0,this)});Ru.displayName="Toolbar";var Mu=Nu("flex items-center",{variants:{size:{[ot.sm]:"gap-1",[ot.md]:"gap-1.5",[ot.lg]:"gap-2"}},defaultVariants:{size:ot.md}}),Lu=Ra(({className:e,size:t=ot.md,...r},o)=>{let n=c(t);return Ma("div",{ref:o,role:"group",className:a(Mu({size:n}),e),...r},void 0,!1,void 0,this)});Lu.displayName="ToolbarGroup";var Hu=Ra(({className:e,...t},r)=>{return Ma("div",{ref:r,role:"none",className:a("h-5 w-px shrink-0 bg-border",e),...t},void 0,!1,void 0,this)});Hu.displayName="ToolbarSeparator";var ku=Ra(({className:e,...t},r)=>{return Ma("div",{ref:r,className:a("flex-1",e),...t},void 0,!1,void 0,this)});ku.displayName="ToolbarSpacer";import*as pt from"@radix-ui/react-tooltip";import{cva as nT}from"class-variance-authority";import{createContext as iT,forwardRef as Au,useContext as Iu}from"react";import{jsxDEV as Mo}from"react/jsx-dev-runtime";var sT=pt.Provider,qn=iT(!1),Vu=({persistOnClick:e=!1,children:t,...r})=>Mo(qn.Provider,{value:e,children:Mo(pt.Root,{...r,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this);Vu.displayName="Tooltip";var Fu=Au(({onClick:e,onPointerDown:t,...r},o)=>{let n=Iu(qn);return Mo(pt.Trigger,{ref:o,onClick:n?(i)=>{i.preventDefault(),e?.(i)}:e,onPointerDown:n?(i)=>{i.preventDefault(),t?.(i)}:t,...r},void 0,!1,void 0,this)});Fu.displayName="TooltipTrigger";var mr={sm:"sm",md:"md",lg:"lg",xl:"xl"},Ou=nT("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:{[mr.sm]:"px-2 py-1 text-xs",[mr.md]:"px-3 py-1.5 text-xs",[mr.lg]:"px-4 py-2 text-sm",[mr.xl]:"px-5 py-2.5 text-sm"}},defaultVariants:{size:mr.md}}),Bu=Au(({className:e,sideOffset:t=4,onPointerDownOutside:r,size:o=mr.md,...n},i)=>{let s=Iu(qn),l=c(o);return Mo(pt.Portal,{children:Mo(pt.Content,{ref:i,sideOffset:t,className:a(Ou({size:l}),e),onPointerDownOutside:s?(d)=>{d.preventDefault(),r?.(d)}:r,...n},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Bu.displayName="TooltipContent";import{createContext as lT,useCallback as dr,useContext as mT,useEffect as ka,useLayoutEffect as dT,useMemo as La,useRef as Wt,useState as Du}from"react";import{jsxDEV as pT}from"react/jsx-dev-runtime";var _u=typeof window<"u"?dT:ka,Qn=lT(null);function Ha(e,t){return e.theme===t.theme&&e.colorScheme===t.colorScheme}var pr=({children:e,value:t,initialState:r,onChange:o,onStateChange:n,transformState:i,readState:s,writeState:l,syncWithSystem:d=!0,enableTransition:m=!1,transitionDuration:f,defaultTheme:u,defaultColorScheme:h,themes:p,attribute:y,colorSchemeAttribute:S,darkClassName:M,storage:w})=>{let T=La(()=>Kr({defaultTheme:u,defaultColorScheme:h,themes:p,attribute:y,colorSchemeAttribute:S,darkClassName:M,storage:w}),[u,h,p,y,S,M,w]),[b,x]=Du(()=>ct(r,T)),[O,R]=Du(Fa),C=La(()=>t?ct(t,T):null,[t,T])??b,V=La(()=>({...C,resolvedColorScheme:Jn(C.colorScheme,O)}),[C,O]),Y=t!==void 0,F=Wt(C);F.current=C;let K=Wt(!1),N=Wt(!1),A=Wt(!1),z=Wt(C),B=Wt(null),U=Wt(m);U.current=m;let L=Wt(f);L.current=f;let X=dr((Z)=>{return Ia(Z)},[]),g=dr((Z,ce)=>{Va(Z,ce)},[]),v=s??X,H=l??g;ka(()=>{if(!d||typeof window>"u"||typeof window.matchMedia!=="function")return;let Z=window.matchMedia("(prefers-color-scheme: dark)"),ce=()=>{R(Z.matches?ut.dark:ut.light)};return ce(),Z.addEventListener("change",ce),()=>Z.removeEventListener("change",ce)},[d]),ka(()=>{if(Y)return;x((Z)=>{let ce=ct(Z,T);return Ha(Z,ce)?Z:ce})},[T,Y]),_u(()=>{if(Y||K.current)return;K.current=!0;let Z=v(T);if(!Z)return;let ce=F.current,ue=ct(Z,T),k={reason:"hydrate",previousState:ce},E=i?ct(i(ue,k),T):ue;if(Ha(ce,E))return;B.current=k,x(E),o?.(E,k),n?.(E,k)},[T,Y,o,n,v,i]),_u(()=>{if(typeof document>"u")return;let Z=!A.current;if(A.current=!0,!Z&&U.current&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches){let ue=L.current??200,k=document.createElement("style");k.setAttribute("data-gs-theme-transition",""),k.textContent=`*, *::before, *::after { transition: color ${ue}ms ease, background-color ${ue}ms ease, border-color ${ue}ms ease, box-shadow ${ue}ms ease, fill ${ue}ms ease, stroke ${ue}ms ease !important; }`,document.head.appendChild(k),Aa(document.documentElement,V,T);let E=requestAnimationFrame(()=>{setTimeout(()=>k.remove(),ue)});return()=>{cancelAnimationFrame(E),k.remove()}}Aa(document.documentElement,V,T);return},[T,V]),ka(()=>{if(typeof window>"u")return;if(!N.current){N.current=!0,z.current=C;return}let Z=z.current;if(Ha(Z,C))return;let ce=B.current??{reason:"set-state",previousState:Z};B.current=null,H(C,T,ce),z.current=C},[T,C,H]);let te=dr((Z,ce)=>{let ue=F.current,k=typeof Z==="function"?Z(ue):Z,E=ct({theme:k.theme??ue.theme,colorScheme:k.colorScheme??ue.colorScheme},T),re={reason:ce,previousState:ue},fe=i?ct(i(E,re),T):E;if(Ha(ue,fe))return;if(B.current=re,!Y)x(fe);o?.(fe,re),n?.(fe,re)},[T,Y,o,n,i]),ee=dr((Z)=>{te(Z,"set-state")},[te]),Ae=dr((Z)=>{te({theme:Z},"set-theme")},[te]),W=dr((Z)=>{te({colorScheme:Z},"set-color-scheme")},[te]),me=dr(()=>{let Z=V.resolvedColorScheme===ut.dark?ut.light:ut.dark;te({colorScheme:Z},"toggle-color-scheme")},[V.resolvedColorScheme,te]),$t=La(()=>({theme:C.theme,colorScheme:C.colorScheme,resolvedColorScheme:V.resolvedColorScheme,state:C,resolvedState:V,contract:T,themes:T.themes,setTheme:Ae,setColorScheme:W,setState:ee,toggleColorScheme:me}),[C,V,T,Ae,W,ee,me]);return pT(Qn.Provider,{value:$t,children:e},void 0,!1,void 0,this)};pr.displayName="ThemeProvider";var Oa=()=>{let e=mT(Qn);if(!e)throw Error("useTheme must be used within a ThemeProvider");return e};import{jsxDEV as Ba}from"react/jsx-dev-runtime";function _a(e){return typeof e==="object"&&e!==null}function ht(e){return typeof e==="string"&&e.trim().length>0}function Gu(e){if(!_a(e))return!1;return Object.values(e).every(ht)}function Uu(e){if(!_a(e))return!1;if(!Gu(e.light))return!1;if(e.dark===void 0)return!0;return Gu(e.dark)}function $u(e){return _a(e)&&ht(e.cssText)}function cT(e){return _a(e)&&ht(e.theme)}function En(e){return Error(`Invalid theme registry definition: ${e}`)}function Wu(e){let t=new Set,r=[];for(let o of e){if(!ht(o)||t.has(o))continue;t.add(o),r.push(o)}return r}function uT(e){return e.filter(ht).join(`
2
+ import{$ as qn,A as gi,B as rn,C as Mn,D as Wh,E as Lt,F as Uh,G as Kh,H as vt,I as Tf,J as hf,K as Pf,L as xf,M as Rf,N as Lf,O as Nf,P as to,Q as yt,R as Mf,S as Hf,T as Un,U as Kn,V as ia,W as $n,X as zf,Y as Cf,Z as Wn,_ as wf,a as n,b as If,c as Ch,d as _,e as wh,f as kh,g as Bh,h as Ah,i as Ih,j as Fh,k as Sh,l as $r,m as _h,n as Gh,o as Bg,p as li,q as di,r as ui,s as Ag,t as Ig,u as Fg,v as Yl,w as Hi,x as ql,y as Oh,z as fi}from"./chunk-fqe20k50.js";import{cva as cC}from"class-variance-authority";import*as lt from"@radix-ui/react-accordion";import{cva as En}from"class-variance-authority";import{ChevronDown as _f}from"lucide-react";import{createContext as Gf,forwardRef as So,useContext as la}from"react";var Ff="md",Sf=()=>{return"md"};function b(e){if(e!==void 0)return e;return"md"}import{jsxDEV as Ht}from"react/jsx-dev-runtime";var we={sm:"sm",md:"md",lg:"lg"},Dn=Gf(we.md),da=En("border-b border-border"),ua=En("gs-interactive flex flex-1 items-center justify-between font-medium hover:underline [&[data-state=open]>svg]:rotate-180",{variants:{size:{[we.sm]:"py-3 text-xs [&>svg]:size-3.5",[we.md]:"py-4 text-sm [&>svg]:size-4",[we.lg]:"py-5 text-base [&>svg]:size-5"}},defaultVariants:{size:we.md}}),pa=En("gs-accordion-content overflow-hidden",{variants:{size:{[we.sm]:"text-xs",[we.md]:"text-sm",[we.lg]:"text-base"}},defaultVariants:{size:we.md}}),Of={[we.sm]:"pt-0 pb-3",[we.md]:"pt-0 pb-4",[we.lg]:"pt-0 pb-5"},ca=So(({size:e=we.md,...t},r)=>{let o=b(e)??we.md;return Ht(Dn.Provider,{value:o,children:Ht(lt.Root,{ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});ca.displayName="Accordion";var fa=So(({className:e,...t},r)=>Ht(lt.Item,{ref:r,className:n(da(),e),...t},void 0,!1,void 0,this));fa.displayName="AccordionItem";var ga=So(({className:e,children:t,...r},o)=>{let i=la(Dn);return Ht(lt.Header,{className:"flex",children:Ht(lt.Trigger,{ref:o,className:n(ua({size:i}),e),...r,children:[t,Ht(_f,{className:"shrink-0 transition-transform"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});ga.displayName="AccordionTrigger";var ba=So(({className:e,children:t,...r},o)=>{let i=la(Dn);return Ht(lt.Content,{ref:o,className:n(pa({size:i}),e),...r,children:Ht("div",{className:Of[i],children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});ba.displayName="AccordionContent";import{cva as jn}from"class-variance-authority";import{TriangleAlert as Wf,CircleCheck as Uf,Info as Kf,CircleAlert as $f}from"lucide-react";import{forwardRef as ei}from"react";import{jsxDEV as ti}from"react/jsx-dev-runtime";var Tr={default:"default",success:"success",warning:"warning",error:"error",info:"info"},ro={sm:"sm",md:"md",lg:"lg",xl:"xl"},ya=jn("relative w-full rounded-[var(--radius)] border [&>svg~*]:pl-8 [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:size-4 [&>svg]:text-foreground",{variants:{variant:{[Tr.default]:"bg-background text-foreground",[Tr.success]:"border-success/50 text-success [&>svg]:text-success bg-success/10",[Tr.warning]:"border-warning/50 text-warning [&>svg]:text-warning bg-warning/10",[Tr.error]:"border-destructive/50 text-destructive [&>svg]:text-destructive bg-destructive/10",[Tr.info]:"border-info/50 text-info [&>svg]:text-info bg-info/10"},size:{[ro.sm]:"p-3 text-xs [&>svg]:left-3 [&>svg]:top-3 [&>svg]:size-3.5 [&>svg~*]:pl-7",[ro.md]:"p-4 text-sm",[ro.lg]:"p-5 text-sm [&>svg]:left-5 [&>svg]:top-5",[ro.xl]:"p-6 text-base [&>svg]:left-6 [&>svg]:top-6 [&>svg]:size-5 [&>svg~*]:pl-10"}},defaultVariants:{variant:Tr.default,size:ro.md}}),va=jn("mb-1 font-medium leading-none tracking-tight"),Ta=jn("text-sm [&_p]:leading-relaxed"),ha=ei(({className:e,variant:t,size:r,...o},i)=>{let a=b(r);return ti("div",{ref:i,role:"alert",className:n(ya({variant:t,size:a}),e),...o},void 0,!1,void 0,this)});ha.displayName="Alert";var Pa=ei(({className:e,...t},r)=>ti("h5",{ref:r,className:n(va(),e),...t},void 0,!1,void 0,this));Pa.displayName="AlertTitle";var xa=ei(({className:e,...t},r)=>ti("div",{ref:r,className:n(Ta(),e),...t},void 0,!1,void 0,this));xa.displayName="AlertDescription";import*as xe from"@radix-ui/react-alert-dialog";import{cva as wa}from"class-variance-authority";import{forwardRef as xr}from"react";import{Slot as Ra}from"@radix-ui/react-slot";import{cva as oi}from"class-variance-authority";import{forwardRef as _o}from"react";import{forwardRef as Xf}from"react";import{jsxDEV as ri}from"react/jsx-dev-runtime";var hr={sm:"sm",md:"md",lg:"lg",xl:"xl"},Yf={[hr.sm]:"h-4 w-4",[hr.md]:"h-5 w-5",[hr.lg]:"h-6 w-6",[hr.xl]:"h-8 w-8"},zt=Xf(({className:e,size:t=hr.md,label:r="Loading",...o},i)=>{let a=b(t);return ri("span",{ref:i,className:n("inline-flex items-center justify-center",e),role:"status","aria-label":r,...o,children:[ri("span",{className:n("animate-spin rounded-full border-2 border-current border-r-transparent",Yf[a])},void 0,!1,void 0,this),ri("span",{className:"sr-only",children:r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});zt.displayName="Spinner";import{jsxDEV as ht}from"react/jsx-dev-runtime";var Tt={primary:"primary",secondary:"secondary",neutral:"neutral",outline:"outline",ghost:"ghost",danger:"danger"},We={sm:"sm",md:"md",lg:"lg",xl:"xl",icon:"icon",iconSm:"icon-sm",iconLg:"icon-lg"},Ct={default:"default",success:"success",warning:"warning",error:"error",info:"info"},Pr={sm:"sm",md:"md",lg:"lg"},qf="Loading",Qf="button",oo=oi("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:{[Tt.primary]:"border-primary bg-primary text-primary-foreground enabled:hover:bg-primary/90",[Tt.secondary]:"border-secondary bg-secondary text-secondary-foreground enabled:hover:bg-secondary/90",[Tt.neutral]:"border-border bg-muted text-foreground enabled:hover:bg-muted/90",[Tt.outline]:"border-border bg-background text-foreground enabled:hover:border-primary enabled:hover:bg-muted/50",[Tt.ghost]:"border-transparent bg-transparent text-foreground enabled:hover:bg-muted/70",[Tt.danger]:"border-destructive bg-destructive text-destructive-foreground enabled:hover:bg-destructive/90"},size:{[We.sm]:"h-8 px-2.5 text-xs",[We.md]:"h-10 px-4 text-sm",[We.lg]:"h-11 px-5 text-sm",[We.xl]:"h-12 px-6 text-base",[We.icon]:"h-10 w-10 p-0",[We.iconSm]:"h-9 w-9 p-0",[We.iconLg]:"h-11 w-11 p-0"}},defaultVariants:{variant:Tt.primary,size:We.md}}),La=oi("shrink-0",{variants:{size:{[Pr.sm]:"size-3",[Pr.md]:"size-4",[Pr.lg]:"size-4.5"}},defaultVariants:{size:Pr.md}}),Na=oi("inline-flex items-center rounded-full border px-1.5 py-0.5 font-semibold text-[10px] leading-none",{variants:{tone:{[Ct.default]:"border-border/70 bg-background/75 text-muted-foreground",[Ct.success]:"border-success/35 bg-success/12 text-success",[Ct.warning]:"border-warning/35 bg-warning/12 text-warning",[Ct.error]:"border-destructive/35 bg-destructive/12 text-destructive",[Ct.info]:"border-info/35 bg-info/12 text-info"}},defaultVariants:{tone:Ct.default}});function Jf(e){return e===We.icon||e===We.iconSm||e===We.iconLg}function Zf(e,t,r){return e&&t?-1:r}function Vf(e){return e["aria-label"]??e["aria-labelledby"]??e.title}function Ef(){if(typeof process>"u")return!0;return!0}var Ma=_o(({className:e,size:t=Pr.md,...r},o)=>ht(Ra,{ref:o,className:n(La({size:t}),e),...r},void 0,!1,void 0,this));Ma.displayName="ButtonIcon";var Ha=_o(({className:e,...t},r)=>ht("span",{ref:r,className:n("truncate",e),...t},void 0,!1,void 0,this));Ha.displayName="ButtonLabel";var za=_o(({className:e,tone:t=Ct.default,...r},o)=>ht("span",{ref:o,className:n(Na({tone:t}),e),...r},void 0,!1,void 0,this));za.displayName="ButtonBadge";var Ca=_o(({className:e,variant:t=Tt.primary,size:r=We.md,asChild:o=!1,loading:i=!1,loadingText:a=qf,fullWidth:s=!1,leadingIcon:m,trailingIcon:d,disabled:l,children:y,type:u,tabIndex:T,onClick:v,...p},R)=>{let H=b(r),c=H??r,f=Vf(p);if(Ef()&&Jf(c)&&!f)throw Error("Icon-size Button requires aria-label, aria-labelledby, or title.");let g=Boolean(l||i),P=n(oo({variant:t,size:H}),s&&"w-full",e);if(o)return ht(Ra,{ref:R,className:P,"aria-disabled":g||void 0,"aria-busy":i||void 0,tabIndex:Zf(!0,g,T),onClick:g?(F)=>{F.preventDefault()}:v,...p,children:y},void 0,!1,void 0,this);return ht("button",{ref:R,className:P,disabled:g,"aria-disabled":g,"aria-busy":i,tabIndex:T,type:u??Qf,onClick:i?void 0:v,...p,children:[ht("span",{className:n("absolute inset-0 flex items-center justify-center transition-opacity duration-150",i?"opacity-100":"opacity-0"),"aria-hidden":"true",children:ht(zt,{size:"sm"},void 0,!1,void 0,this)},void 0,!1,void 0,this),i&&ht("span",{className:"sr-only",children:a},void 0,!1,void 0,this),ht("span",{className:n("inline-flex items-center justify-center gap-2 transition-opacity duration-150",i&&"opacity-0"),children:[m,y,d]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Ca.displayName="Button";var de=!0,De=4,wt="fixed inset-0 z-50 bg-black/50",Go="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";import{jsxDEV as je,Fragment as eg}from"react/jsx-dev-runtime";var kt={sm:_.sm,md:_.md,lg:_.lg,xl:_.xl,full:"full"},ka=wa(n("gs-dialog-overlay",wt)),Ba=wa("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:{[kt.sm]:"max-w-sm",[kt.md]:"max-w-md",[kt.lg]:"max-w-lg",[kt.xl]:"max-w-xl",[kt.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:kt.md}}),Df=xe.Root,jf=xe.Trigger,Aa=xe.Portal,ni=xr(({className:e,...t},r)=>je(xe.Overlay,{ref:r,className:n(ka(),e),...t},void 0,!1,void 0,this));ni.displayName="AlertDialogOverlay";var Ia=xr(({className:e,size:t=kt.md,showOverlay:r=!0,portal:o=de,portalContainer:i,forceMount:a=!1,...s},m)=>{let d=b(t),l=je(eg,{children:[r?je(ni,{forceMount:a?!0:void 0},void 0,!1,void 0,this):null,je(xe.Content,{ref:m,forceMount:a?!0:void 0,className:n(Ba({size:d}),e),...s},void 0,!1,void 0,this)]},void 0,!0,void 0,this);if(!o)return l;return je(Aa,{forceMount:a?!0:void 0,container:i??void 0,children:l},void 0,!1,void 0,this)});Ia.displayName="AlertDialogContent";var Fa=({className:e,...t})=>je("div",{className:n("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);Fa.displayName="AlertDialogHeader";var Sa=({className:e,...t})=>je("div",{className:n("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);Sa.displayName="AlertDialogFooter";var _a=xr(({className:e,...t},r)=>je(xe.Title,{ref:r,className:n("font-semibold text-lg",e),...t},void 0,!1,void 0,this));_a.displayName="AlertDialogTitle";var Ga=xr(({className:e,...t},r)=>je(xe.Description,{ref:r,className:n("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));Ga.displayName="AlertDialogDescription";var Oa=xr(({className:e,...t},r)=>je(xe.Action,{ref:r,className:n(oo(),e),...t},void 0,!1,void 0,this));Oa.displayName="AlertDialogAction";var Wa=xr(({className:e,...t},r)=>je(xe.Cancel,{ref:r,className:n(oo({variant:"outline"}),"mt-2 sm:mt-0",e),...t},void 0,!1,void 0,this));Wa.displayName="AlertDialogCancel";import*as ii from"@radix-ui/react-aspect-ratio";import{cva as tg}from"class-variance-authority";import{forwardRef as rg}from"react";import{jsxDEV as og}from"react/jsx-dev-runtime";var Ua=tg("relative overflow-hidden rounded-[calc(var(--radius)-2px)] border border-border/40"),Ka=rg(({className:e,...t},r)=>og(ii.Root,{ref:r,className:n(Ua(),e),...t},void 0,!1,void 0,this));Ka.displayName=ii.Root.displayName;import*as Lr from"@radix-ui/react-avatar";import{cva as ng}from"class-variance-authority";import{forwardRef as Oo}from"react";import{jsxDEV as Rr}from"react/jsx-dev-runtime";var Xe={sm:"sm",md:"md",lg:"lg",xl:"xl"},$a=ng("relative flex shrink-0 overflow-hidden rounded-full",{variants:{size:{[Xe.sm]:"h-7 w-7 text-xs",[Xe.md]:"h-10 w-10 text-sm",[Xe.lg]:"h-12 w-12 text-base",[Xe.xl]:"h-16 w-16 text-lg"}},defaultVariants:{size:Xe.md}}),ai=Oo(({className:e,size:t=Xe.md,...r},o)=>{let i=b(t);return Rr(Lr.Root,{ref:o,className:n($a({size:i}),e),...r},void 0,!1,void 0,this)});ai.displayName="Avatar";var Xa=Oo(({className:e,...t},r)=>Rr(Lr.Image,{ref:r,className:n("aspect-square h-full w-full object-cover",e),...t},void 0,!1,void 0,this));Xa.displayName="AvatarImage";var si=Oo(({className:e,...t},r)=>Rr(Lr.Fallback,{ref:r,className:n("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));si.displayName="AvatarFallback";var ig={[Xe.sm]:"-space-x-2",[Xe.md]:"-space-x-3",[Xe.lg]:"-space-x-4",[Xe.xl]:"-space-x-5"},Ya=Oo(({className:e,children:t,max:r,size:o=Xe.md,...i},a)=>{let s=b(o),m=Array.isArray(t)?t:[t],d=r?m.slice(0,r):m,l=r?Math.max(0,m.length-r):0;return Rr("div",{ref:a,className:n("flex items-center",ig[s],e),...i,children:[d,l>0&&Rr(ai,{size:s,className:"border-2 border-background",children:Rr(si,{className:"text-xs",children:["+",l]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Ya.displayName="AvatarGroup";import{Slot as ag}from"@radix-ui/react-slot";import{cva as sg}from"class-variance-authority";import{X as qa}from"lucide-react";import{forwardRef as mg}from"react";import{jsxDEV as Et}from"react/jsx-dev-runtime";var Le={default:"default",primary:"primary",success:"success",warning:"warning",error:"error",info:"info",outline:"outline"},Pt={sm:"sm",md:"md",lg:"lg",xl:"xl",dot:"dot"},Qa=sg("group/badge inline-flex items-center justify-center gap-1 whitespace-nowrap rounded-full border font-medium leading-none",{variants:{variant:{[Le.default]:"border-border bg-muted text-muted-foreground",[Le.primary]:"border-primary/30 bg-primary/10 text-primary",[Le.success]:"border-success/30 bg-success/10 text-success",[Le.warning]:"border-warning/30 bg-warning/10 text-warning",[Le.error]:"border-destructive/30 bg-destructive/10 text-destructive",[Le.info]:"border-info/30 bg-info/10 text-info",[Le.outline]:"border-border bg-transparent text-foreground"},solid:{true:"",false:""},size:{[Pt.sm]:"h-5 px-1.5 text-[11px]",[Pt.md]:"h-5 px-2 text-[11px]",[Pt.lg]:"h-6 px-2.5 text-xs",[Pt.xl]:"h-7 px-3 text-sm",[Pt.dot]:"h-2 w-2 p-0"}},compoundVariants:[{solid:!0,variant:Le.default,className:"border-transparent bg-foreground text-background"},{solid:!0,variant:Le.primary,className:"border-primary bg-primary text-primary-foreground"},{solid:!0,variant:Le.success,className:"border-success bg-success text-background"},{solid:!0,variant:Le.warning,className:"border-warning bg-warning text-background"},{solid:!0,variant:Le.error,className:"border-destructive bg-destructive text-destructive-foreground"},{solid:!0,variant:Le.info,className:"border-info bg-info text-background"},{solid:!0,variant:Le.outline,className:"border-border bg-foreground text-background"}],defaultVariants:{variant:Le.default,solid:!1,size:Pt.md}}),Wo=mg(({className:e,variant:t=Le.default,size:r=Pt.md,solid:o=!1,pulse:i=!1,removable:a=!1,removeControl:s="button",removeLabel:m="Remove",onRemove:d,onClick:l,children:y,asChild:u=!1,...T},v)=>{let p=b(r),R=Boolean(l),H=p===Pt.dot,c=R&&s==="button"?"span":s,f=(z)=>{z.preventDefault(),z.stopPropagation(),d?.(z)},g=(z)=>{if(z.key!=="Enter"&&z.key!==" ")return;z.preventDefault(),z.stopPropagation()},P=n(Qa({variant:t,solid:o,size:p}),R&&"cursor-pointer",i&&"animate-pulse",a&&!H&&"pr-1",e),F=a&&!H&&c==="button"?Et("button",{type:"button",className:n("gs-interactive ml-0.5 inline-flex items-center justify-center rounded-full text-current opacity-60 hover:opacity-100","size-3.5 group-data-[size=lg]/badge:size-4 group-data-[size=xl]/badge:size-4"),onClick:f,"aria-label":m,tabIndex:-1,children:Et(qa,{className:"size-2.5 group-data-[size=lg]/badge:size-3 group-data-[size=xl]/badge:size-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this):a&&!H?Et("span",{role:"button",className:n("gs-interactive ml-0.5 inline-flex items-center justify-center rounded-full text-current opacity-60 hover:opacity-100","size-3.5 group-data-[size=lg]/badge:size-4 group-data-[size=xl]/badge:size-4"),onClick:f,onKeyDown:g,"aria-label":m,tabIndex:-1,children:Et(qa,{className:"size-2.5 group-data-[size=lg]/badge:size-3 group-data-[size=xl]/badge:size-3"},void 0,!1,void 0,this)},void 0,!1,void 0,this):null;if(u)return Et(ag,{ref:v,className:P,onClick:l,"data-size":p,...T,children:y},void 0,!1,void 0,this);if(R)return Et("button",{ref:v,className:P,onClick:l,type:"button","data-size":p,...T,children:[!H&&y,F]},void 0,!0,void 0,this);return Et("span",{ref:v,className:P,"data-size":p,...T,children:[!H&&y,F]},void 0,!0,void 0,this)});Wo.displayName="Badge";import{Children as lg,cloneElement as dg,forwardRef as ug,isValidElement as pg,useCallback as Ja,useEffect as cg,useLayoutEffect as fg,useRef as gg,useState as bg}from"react";import{jsxDEV as Za}from"react/jsx-dev-runtime";function yg(e){let t=[];return lg.forEach(e,(r,o)=>{if(!pg(r))return;let i=r.key??o;t.push({key:i,element:r,isLeaving:!1})}),t}function vg(e,t){let r=new Set(t.map((a)=>a.key)),o=new Set(e.map((a)=>a.key)),i=[];for(let a of e)if(r.has(a.key)){let s=t.find((m)=>m.key===a.key);if(s)i.push({...s,isLeaving:!1})}else i.push({...a,isLeaving:!0});for(let a of t)if(!o.has(a.key))i.push(a);return i}function Tg(e,t,r){if(r.current)return r.current=!1,t;return vg(e,t)}var hg=typeof window<"u"?fg:cg,Va=ug(({children:e,className:t,onRemove:r,gap:o="sm"},i)=>{let[a,s]=bg([]),m=gg(!0);hg(()=>{let u=yg(e);s((T)=>Tg(T,u,m))},[e]);let d=Ja((u)=>{s((T)=>T.filter((v)=>v.key!==u))},[]),l=Ja((u)=>{r?.(u)},[r]),y={sm:"gap-1",md:"gap-2",lg:"gap-3"}[o];return Za("div",{ref:i,className:n("inline-flex flex-wrap items-center",y,t),children:a.map((u)=>{let T={};if(u.element.props.removable&&r)T.onRemove=()=>{l(u.key)};let v=n("inline-flex transition-all duration-200",u.isLeaving&&"pointer-events-none scale-95 opacity-0");return Za("span",{className:v,onTransitionEnd:u.isLeaving?()=>d(u.key):void 0,children:dg(u.element,T)},u.key,!1,void 0,this)})},void 0,!1,void 0,this)});Va.displayName="BadgeGroup";import{Slot as Pg}from"@radix-ui/react-slot";import{cva as Nr}from"class-variance-authority";import{ChevronRight as xg,MoreHorizontal as Rg}from"lucide-react";import{createContext as Lg,forwardRef as no,useContext as mi}from"react";import{jsxDEV as et}from"react/jsx-dev-runtime";var fe={sm:"sm",md:"md",lg:"lg"},Uo=Lg(fe.md),Ea=Nr("flex flex-wrap items-center break-words text-muted-foreground",{variants:{size:{[fe.sm]:"gap-1 text-xs",[fe.md]:"gap-1.5 text-sm sm:gap-2.5",[fe.lg]:"gap-2 text-base sm:gap-3"}},defaultVariants:{size:fe.md}}),Da=Nr("inline-flex items-center gap-1.5"),ja=Nr("gs-interactive hover:text-foreground focus-visible:outline-none focus-visible:text-foreground"),es=Nr("font-normal text-foreground"),ts=Nr("",{variants:{size:{[fe.sm]:"[&>svg]:size-3",[fe.md]:"[&>svg]:size-3.5",[fe.lg]:"[&>svg]:size-4"}},defaultVariants:{size:fe.md}}),rs=Nr("flex items-center justify-center",{variants:{size:{[fe.sm]:"h-7 w-7 [&>svg]:size-3.5",[fe.md]:"h-9 w-9 [&>svg]:size-4",[fe.lg]:"h-10 w-10 [&>svg]:size-5"}},defaultVariants:{size:fe.md}}),os=no(({size:e=fe.md,...t},r)=>{let o=b(e)??fe.md;return et(Uo.Provider,{value:o,children:et("nav",{ref:r,"aria-label":"breadcrumb",...t},void 0,!1,void 0,this)},void 0,!1,void 0,this)});os.displayName="Breadcrumb";var ns=no(({className:e,...t},r)=>{let o=mi(Uo);return et("ol",{ref:r,className:n(Ea({size:o}),e),...t},void 0,!1,void 0,this)});ns.displayName="BreadcrumbList";var is=no(({className:e,...t},r)=>et("li",{ref:r,className:n(Da(),e),...t},void 0,!1,void 0,this));is.displayName="BreadcrumbItem";var as=no(({asChild:e,className:t,...r},o)=>{return et(e?Pg:"a",{ref:o,className:n(ja(),t),...r},void 0,!1,void 0,this)});as.displayName="BreadcrumbLink";var ss=no(({className:e,...t},r)=>et("span",{ref:r,role:"link",tabIndex:0,"aria-disabled":"true","aria-current":"page",className:n(es(),e),...t},void 0,!1,void 0,this));ss.displayName="BreadcrumbPage";var ms=({children:e,className:t,...r})=>{let o=mi(Uo),i={[fe.sm]:"size-3",[fe.md]:"size-3.5",[fe.lg]:"size-4"};return et("li",{role:"presentation","aria-hidden":"true",className:n(ts({size:o}),t),...r,children:e??et(xg,{className:i[o]},void 0,!1,void 0,this)},void 0,!1,void 0,this)};ms.displayName="BreadcrumbSeparator";var ls=({className:e,...t})=>{let r=mi(Uo);return et("span",{role:"presentation","aria-hidden":"true",className:n(rs({size:r}),e),...t,children:[et(Rg,{},void 0,!1,void 0,this),et("span",{className:"sr-only",children:"More"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};ls.displayName="BreadcrumbEllipsis";import{createContext as Ng,useCallback as ds,useContext as Mg,useEffect as us,useMemo as Ko,useState as Hg}from"react";import{jsxDEV as kg}from"react/jsx-dev-runtime";var ps=Ng(null),zg=(e,t,r)=>{let o={item:e,index:t,nativeEvent:r,defaultPrevented:!1,preventDefault:()=>{o.defaultPrevented=!0,r.preventDefault()}};return o},Cg=({items:e,resolveContext:t,entityResolvers:r,collapse:o,onBeforeNavigate:i,onNavigate:a,onItemClick:s,children:m})=>{let d=Ko(()=>li(e,{resolveContext:t,entityResolvers:r}),[r,e,t]),l=Ko(()=>e.some((c)=>{if(c.label||!c.entity)return!1;return Boolean(r?.[c.entity.kind])}),[r,e]),[y,u]=Hg(null);us(()=>{if(!l&&y!==null)u(null)},[y,l]),us(()=>{if(!l)return;let c=!0;return di(e,{resolveContext:t,entityResolvers:r}).then((f)=>{if(c)u(f)}),()=>{c=!1}},[r,e,l,t]);let T=y??d,v=Ko(()=>ui(T,o),[T,o]),p=ds((c,f,g)=>{if(c.disabled){g.preventDefault();return}let P=zg(c,f,g);if(c.onClick?.(P),s?.(c,f),c.current)return;if(c.onBeforeNavigate?.(P),i?.(P),P.defaultPrevented)return;c.onNavigate?.(P),a?.(P)},[i,s,a]),R=ds((c,f,g)=>{return{onClick:(P)=>{if(g?.onClick?.(P),P.defaultPrevented)return;p(c,f,P)},onKeyDown:(P)=>{if(g?.onKeyDown?.(P),P.defaultPrevented)return;if(P.key==="Enter"||P.key===" "){if(P.key===" ")P.preventDefault();p(c,f,P)}},"aria-current":c.current?"page":void 0,"aria-disabled":c.disabled?!0:void 0,tabIndex:c.disabled?-1:void 0,"data-breadcrumb-id":c.id}},[p]),H=Ko(()=>({items:T,visibleItems:v.visibleItems,hiddenItems:v.hiddenItems,getItemProps:R}),[v.hiddenItems,v.visibleItems,R,T]);return kg(ps.Provider,{value:H,children:m},void 0,!1,void 0,this)},wg=()=>{let e=Mg(ps);if(!e)throw Error("useBreadcrumbs must be used within BreadcrumbProvider");return e};import{cva as Sg}from"class-variance-authority";import{forwardRef as _g}from"react";import{jsxDEV as Gg}from"react/jsx-dev-runtime";var io={horizontal:"horizontal",vertical:"vertical"},cs=Sg("inline-flex items-stretch",{variants:{orientation:{[io.horizontal]:"flex-row",[io.vertical]:"flex-col"},attached:{true:"gap-0 [&>*:not(:first-child)]:rounded-l-none [&>*:not(:last-child)]:rounded-r-none",false:"gap-2"}},defaultVariants:{orientation:io.horizontal,attached:!1}}),fs=_g(({className:e,orientation:t=io.horizontal,attached:r=!1,fullWidth:o=!1,...i},a)=>Gg("div",{ref:a,className:n(cs({orientation:t,attached:r}),o&&"w-full",e),...i},void 0,!1,void 0,this));fs.displayName="ButtonGroup";import{cva as Bt}from"class-variance-authority";import{forwardRef as Og,useCallback as Mr,useEffect as Wg,useMemo as gs,useState as bs}from"react";import{jsxDEV as Ue}from"react/jsx-dev-runtime";var B={sm:"sm",md:"md",lg:"lg",xl:"xl"},vs=Bt("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=Bt("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}}),hs=Bt("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}}),pi=Bt(["inline-flex items-center justify-center rounded-md border border-transparent","text-muted-foreground hover:border-border/70 hover:bg-accent/60 hover:text-foreground","active:scale-[0.98]","transition-[color,background-color,border-color,box-shadow,transform,opacity] duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:cursor-not-allowed disabled:border-transparent disabled:bg-muted/40 disabled:text-muted-foreground/70"],{variants:{size:{[B.sm]:"size-7",[B.md]:"size-8",[B.lg]:"size-10",[B.xl]:"size-10"}},defaultVariants:{size:B.md}}),Ps=Bt("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}}),xs=Bt("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}}),Rs=Bt(["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"}},compoundVariants:[{size:B.sm,state:"range",class:"-mx-px"},{size:B.md,state:"range",class:"-mx-0.5"},{size:B.lg,state:"range",class:"-mx-[3px]"},{size:B.xl,state:"range",class:"-mx-1"},{size:B.sm,state:"rangeStart",class:"-mr-px"},{size:B.md,state:"rangeStart",class:"-mr-0.5"},{size:B.lg,state:"rangeStart",class:"-mr-[3px]"},{size:B.xl,state:"rangeStart",class:"-mr-1"},{size:B.sm,state:"rangeEnd",class:"-ml-px"},{size:B.md,state:"rangeEnd",class:"-ml-0.5"},{size:B.lg,state:"rangeEnd",class:"-ml-[3px]"},{size:B.xl,state:"rangeEnd",class:"-ml-1"}],defaultVariants:{size:B.md,state:"default"}}),Ug=Bt("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}}),ys=["Su","Mo","Tu","We","Th","Fr","Sa"],Kg=["January","February","March","April","May","June","July","August","September","October","November","December"],xt=(e)=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),Hr=(e,t)=>{return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()},Ls=Og(({className:e,size:t="md",cellSize:r,mode:o="single",value:i,defaultValue:a,onChange:s,rangeValue:m,onRangeChange:d,viewMonth:l,onViewMonthChange:y,minDate:u,maxDate:T,disabledDates:v=[],weekStartsOn:p=1,highlightToday:R=!0,...H},c)=>{let f=b(t)??B.md,g=b(r??f)??f,[P,F]=bs(i??a??null),[z,W]=bs(i??a??new Date),w=l??z,S=Mr((h)=>{if(y){let x=typeof h==="function"?h(l??z):h;y(x)}else W((x)=>{return typeof h==="function"?h(x):h})},[l,z,y]),K=i!==void 0?i:P,$=u?xt(u):null,j=T?xt(T):null;Wg(()=>{if(i!==void 0){if(F(i??null),i&&!l)W(i)}},[i,l]);let ie=Mr((h,x)=>{return(new Date(h,x,1).getDay()-p+7)%7},[p]),Y=gs(()=>{let h=w.getFullYear(),x=w.getMonth(),C=ie(h,x),X=new Date(h,x+1,0).getDate(),Q=[];for(let te=0;te<C;te+=1)Q.push({key:`leading-${h}-${x}-${te}`,date:null});for(let te=1;te<=X;te+=1)Q.push({key:`day-${h}-${x}-${te}`,date:new Date(h,x,te)});let Fe=(7-Q.length%7)%7;for(let te=0;te<Fe;te+=1)Q.push({key:`trailing-${h}-${x}-${te}`,date:null});return Q},[w,ie]),k=Mr((h)=>{let x=xt(h);if($&&x<$)return!0;if(j&&x>j)return!0;return v.some((C)=>Hr(x,xt(C)))},[$,j,v]),V=Mr((h)=>{if(k(h))return"disabled";if(o==="range"&&m){let{from:x,to:C}=m;if(x&&Hr(h,x))return"rangeStart";if(C&&Hr(h,C))return"rangeEnd";if(x&&C){let X=xt(h),Q=xt(x),Fe=xt(C);if(X>Q&&X<Fe)return"range"}}if(o==="single"&&K&&Hr(h,K))return"selected";if(R&&Hr(h,new Date))return"today";return"default"},[K,R,k,o,m]),L=Mr((h)=>{if(k(h))return;let x=new Date(h);if(o==="range"){if(!m?.from||m.from&&m.to)d?.({from:x,to:void 0});else{let C=xt(m.from);if(xt(x)<C)d?.({from:x,to:m.from});else d?.({from:m.from,to:x})}return}if(i===void 0)F(x);s?.(x)},[k,o,s,d,m,i]),M=Mr((h)=>{S((x)=>{let C=new Date(x);return C.setMonth(C.getMonth()+h),C})},[S]),A=gs(()=>{return[...ys.slice(p),...ys.slice(0,p)]},[p]);return Ue("div",{ref:c,className:n(vs({size:f}),e),...H,children:[Ue("div",{className:n(Ts({size:f})),children:[Ue("button",{type:"button",onClick:()=>M(-1),className:n(pi({size:f})),"aria-label":"Previous month",children:Ue("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Ue("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),Ue("span",{className:n(hs({size:f})),children:[Kg[w.getMonth()]," ",w.getFullYear()]},void 0,!0,void 0,this),Ue("button",{type:"button",onClick:()=>M(1),className:n(pi({size:f})),"aria-label":"Next month",children:Ue("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:Ue("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),Ue("div",{className:n(Ps({size:f})),children:[A.map((h)=>Ue("div",{className:n(xs({size:g})),children:h},h,!1,void 0,this)),Y.map((h)=>{if(!h.date)return Ue("div",{"aria-hidden":"true",className:n(Ug({size:g}))},h.key,!1,void 0,this);let x=h.date,C=V(x);return Ue("button",{type:"button",onClick:()=>L(x),disabled:C==="disabled",className:n(Rs({size:g,state:C})),children:x.getDate()},h.key,!1,void 0,this)})]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Ls.displayName="Calendar";import{Slot as zr}from"@radix-ui/react-slot";import{cva as $g}from"class-variance-authority";import{forwardRef as Cr}from"react";import{jsxDEV as wr}from"react/jsx-dev-runtime";var $o={default:"default",muted:"muted",danger:"danger"},Ns=$g("gs-interactive relative overflow-hidden rounded-[var(--radius)] border bg-card text-card-foreground shadow-[var(--shadow-sm)]",{variants:{variant:{[$o.default]:"border-border",[$o.muted]:"border-border/70 bg-muted/40",[$o.danger]:"border-destructive/30 bg-destructive/[0.06]"}},defaultVariants:{variant:$o.default}}),Ms=Cr(({asChild:e=!1,className:t,variant:r,...o},i)=>{return wr(e?zr:"div",{ref:i,className:n(Ns({variant:r}),t),...o},void 0,!1,void 0,this)});Ms.displayName="Card";var Hs=Cr(({asChild:e=!1,className:t,...r},o)=>{return wr(e?zr:"div",{ref:o,className:n("flex flex-col gap-1.5 border-border/50 border-b p-4",t),...r},void 0,!1,void 0,this)});Hs.displayName="CardHeader";var zs=Cr(({asChild:e=!1,className:t,...r},o)=>{return wr(e?zr:"div",{ref:o,className:n("p-4",t),...r},void 0,!1,void 0,this)});zs.displayName="CardContent";var Cs=Cr(({asChild:e=!1,className:t,...r},o)=>{return wr(e?zr:"div",{ref:o,className:n("flex items-center border-border/50 border-t p-4",t),...r},void 0,!1,void 0,this)});Cs.displayName="CardFooter";var ws=Cr(({asChild:e=!1,className:t,...r},o)=>{return wr(e?zr:"h3",{ref:o,className:n("font-semibold text-base leading-none tracking-tight",t),...r},void 0,!1,void 0,this)});ws.displayName="CardTitle";var ks=Cr(({asChild:e=!1,className:t,...r},o)=>{return wr(e?zr:"p",{ref:o,className:n("text-muted-foreground text-sm",t),...r},void 0,!1,void 0,this)});ks.displayName="CardDescription";import*as Yo from"@radix-ui/react-checkbox";import{cva as Xg}from"class-variance-authority";import{Check as Yg,Minus as qg}from"lucide-react";import{forwardRef as Qg}from"react";import{jsxDEV as Xo}from"react/jsx-dev-runtime";var tt={sm:"sm",md:"md",lg:"lg",xl:"xl"},kr={default:"default",error:"error",success:"success"},As=Xg("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:{[tt.sm]:"h-4 w-4",[tt.md]:"h-5 w-5",[tt.lg]:"h-6 w-6",[tt.xl]:"h-7 w-7"},status:{[kr.default]:"enabled:hover:border-primary/70",[kr.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",[kr.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:tt.md,status:kr.default}}),Bs={[tt.sm]:"size-3.5",[tt.md]:"size-3.5",[tt.lg]:"size-4",[tt.xl]:"size-5"},Is=Qg(({className:e,size:t=tt.md,status:r=kr.default,checked:o,disabled:i,...a},s)=>{let m=b(t);return Xo(Yo.Root,{ref:s,checked:o,disabled:i,className:n(As({size:m,status:r}),e),...a,children:Xo(Yo.Indicator,{className:"gs-checkbox-indicator flex items-center justify-center text-current",children:o==="indeterminate"?Xo(qg,{className:Bs[m]},void 0,!1,void 0,this):Xo(Yg,{className:Bs[m]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Is.displayName="Checkbox";import{cva as At}from"class-variance-authority";import{forwardRef as Jg,useCallback as Zg,useState as Vg}from"react";import{jsxDEV as ke,Fragment as Fs}from"react/jsx-dev-runtime";var E={sm:"sm",md:"md",lg:"lg"},ci={default:"default",ghost:"ghost"},Ss=At("relative rounded-lg overflow-hidden font-mono",{variants:{size:{[E.sm]:"text-xs",[E.md]:"text-sm",[E.lg]:"text-base"},variant:{[ci.default]:"bg-muted border border-border",[ci.ghost]:"bg-transparent"}},defaultVariants:{size:E.md,variant:ci.default}}),_s=At("flex items-center justify-between border-b border-border bg-muted",{variants:{size:{[E.sm]:"px-2.5 py-1.5 text-xs",[E.md]:"px-4 py-2 text-sm",[E.lg]:"px-5 py-2.5 text-base"}},defaultVariants:{size:E.md}}),Gs=At("text-muted-foreground font-medium",{variants:{size:{[E.sm]:"text-[11px]",[E.md]:"text-xs",[E.lg]:"text-sm"}},defaultVariants:{size:E.md}}),Os=At(["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:{[E.sm]:"px-2 py-1 text-xs",[E.md]:"px-2.5 py-1 text-xs",[E.lg]:"px-3 py-1.5 text-sm"},copied:{true:"text-success",false:""}},defaultVariants:{size:E.md,copied:!1}}),Ws=At("overflow-x-auto",{variants:{size:{[E.sm]:"p-2.5",[E.md]:"p-4",[E.lg]:"p-5"}},defaultVariants:{size:E.md}}),Us=At("text-foreground",{variants:{size:{[E.sm]:"",[E.md]:"",[E.lg]:""},showLineNumbers:{true:"",false:""}},defaultVariants:{size:E.md,showLineNumbers:!1}}),Ks=At("block",{variants:{size:{[E.sm]:"min-h-[1.25rem]",[E.md]:"min-h-[1.5rem]",[E.lg]:"min-h-[1.75rem]"},highlighted:{true:"bg-primary/10 -mx-4 px-4",false:""}},defaultVariants:{size:E.md,highlighted:!1}}),$s=At("inline-block text-right text-muted-foreground select-none",{variants:{size:{[E.sm]:"w-6 mr-2 text-[10px]",[E.md]:"w-8 mr-4 text-xs",[E.lg]:"w-10 mr-5 text-sm"}},defaultVariants:{size:E.md}}),Xs=Jg(({className:e,code:t,language:r,showLineNumbers:o=!1,highlightedLines:i=[],showCopy:a=!0,size:s="md",variant:m="default",onCopy:d,...l},y)=>{let u=b(s),[T,v]=Vg(!1),p=Zg(async()=>{try{await navigator.clipboard.writeText(t),v(!0),d?.(t),setTimeout(()=>v(!1),2000)}catch(c){}},[t,d]),R=t.split(`
3
+ `),H=new Set(i);return ke("div",{ref:y,className:n(Ss({size:u,variant:m}),e),...l,children:[(r||a)&&ke("div",{className:n(_s({size:u})),children:[ke("span",{className:n(Gs({size:u})),children:r},void 0,!1,void 0,this),a&&ke("button",{type:"button",onClick:p,className:n(Os({size:u,copied:T})),children:T?ke(Fs,{children:[ke("svg",{className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:ke("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):ke(Fs,{children:[ke("svg",{className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:ke("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),ke("div",{className:n(Ws({size:u})),children:ke("pre",{className:n(Us({size:u,showLineNumbers:o})),children:ke("code",{children:R.map((c,f)=>ke("span",{className:n(Ks({size:u,highlighted:H.has(f+1)})),children:[o&&ke("span",{className:n($s({size:u})),children:f+1},void 0,!1,void 0,this),c,`
4
+ `]},`line-${String(f)}`,!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)});Xs.displayName="CodeBlock";import*as Br from"@radix-ui/react-collapsible";import{cva as Eg}from"class-variance-authority";import{forwardRef as Dg}from"react";import{jsxDEV as tb}from"react/jsx-dev-runtime";var Ys=Eg("gs-collapsible-content overflow-hidden"),jg=Br.Root,eb=Br.CollapsibleTrigger,qs=Dg(({className:e,...t},r)=>tb(Br.CollapsibleContent,{ref:r,className:n(Ys(),e),...t},void 0,!1,void 0,this));qs.displayName="CollapsibleContent";import*as It from"@radix-ui/react-dialog";import{cva as rt}from"class-variance-authority";import{createContext as nb,forwardRef as dt,useContext as ib,useState as Js}from"react";import{useCallback as rb,useEffect as ob,useRef as Qs}from"react";function ao(e,t,r={}){let{enabled:o=!0,preventDefault:i=!0,stopPropagation:a=!1,target:s="global"}=r,m=Qs(t);m.current=t;let d=Qs([]),l=Array.isArray(e)?e:[e];d.current=l.map((u)=>({combo:u,def:fi(u)}));let y=rb((u)=>{if(!o)return;for(let{combo:T,def:v}of d.current)if(gi(u,v)){if(i)u.preventDefault();if(a)u.stopPropagation();m.current(u,T);return}},[o,i,a]);ob(()=>{if(!o)return;let u=s==="global"?document:s.current;if(!u)return;return u.addEventListener("keydown",y),()=>{u.removeEventListener("keydown",y)}},[o,y,s])}import{jsxDEV as ge,Fragment as sb}from"react/jsx-dev-runtime";var qo={sm:_.sm,md:_.md,lg:_.lg},Zs=rt(["gs-dialog-content fixed left-1/2 top-1/2 z-50","w-full border border-border rounded-xl bg-background","overflow-hidden shadow-[var(--shadow-xl)]"],{variants:{size:{[qo.sm]:"max-w-sm",[qo.md]:"max-w-lg",[qo.lg]:"max-w-2xl"}},defaultVariants:{size:qo.md}}),Vs=rt(["gs-dialog-overlay fixed inset-0 z-50 bg-black/50 backdrop-blur-sm"]),Es=rt(["flex h-12 w-full bg-transparent px-4 py-3","text-base text-foreground placeholder:text-muted-foreground","border-b border-border","focus:outline-none","disabled:cursor-not-allowed disabled:border-transparent disabled:bg-muted/40 disabled:text-muted-foreground/70"]),Ds=rt(["max-h-[300px] overflow-y-auto overflow-x-hidden p-2"]),js=rt(["py-6 text-center text-sm text-muted-foreground"]),em=rt(["overflow-hidden"]),tm=rt(["px-2 py-1.5 text-xs font-medium text-muted-foreground"]),Qo={default:"default",danger:"danger"},rm=rt(["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]:cursor-not-allowed data-[disabled=true]:border-transparent data-[disabled=true]:bg-muted/40 data-[disabled=true]:text-muted-foreground/70"],{variants:{selected:{true:"bg-primary/10 text-primary",false:"hover:bg-background-subtle"},variant:{[Qo.default]:"text-foreground",[Qo.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{selected:!1,variant:Qo.default}}),om=rt(["-mx-1 my-1 h-px bg-border"]),nm=rt(["ml-auto text-xs tracking-widest text-muted-foreground"]),im=rt(["flex items-center justify-center py-6"]),am=nb(null),bi=()=>{let e=ib(am);if(!e)throw Error("useCommand must be used within a Command");return e},yi=dt(({className:e,children:t,loop:r=!0,...o},i)=>{let[a,s]=Js(""),[m,d]=Js(0);return ge(am.Provider,{value:{search:a,setSearch:s,selectedIndex:m,setSelectedIndex:d},children:ge("div",{ref:i,className:n("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)});yi.displayName="Command";var sm=dt(({children:e,size:t,showOverlay:r=!0,portal:o=de,portalContainer:i,forceMount:a=!1,...s},m)=>{let d=ge(sb,{children:[r?ge(It.Overlay,{forceMount:a?!0:void 0,className:n(Vs())},void 0,!1,void 0,this):null,ge(It.Content,{ref:m,forceMount:a?!0:void 0,className:n(Zs({size:t})),children:ge(yi,{children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return ge(It.Root,{...s,children:o?ge(It.Portal,{forceMount:a?!0:void 0,container:i??void 0,children:d},void 0,!1,void 0,this):d},void 0,!1,void 0,this)});sm.displayName="CommandDialog";var mm=dt(({className:e,icon:t,...r},o)=>{let{search:i,setSearch:a,setSelectedIndex:s}=bi();return ge("div",{className:"flex items-center border-border border-b px-3",children:[t&&ge("span",{className:"mr-2 shrink-0 text-muted-foreground",children:t},void 0,!1,void 0,this),ge("input",{ref:o,value:i,onChange:(m)=>{a(m.target.value),s(0)},className:n(Es(),e),...r},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});mm.displayName="CommandInput";var lm=dt(({className:e,children:t,...r},o)=>{return ge("div",{ref:o,className:n(Ds(),e),...r,children:t},void 0,!1,void 0,this)});lm.displayName="CommandList";var dm=dt(({className:e,children:t="No results found.",...r},o)=>{return ge("div",{ref:o,className:n(js(),e),...r,children:t},void 0,!1,void 0,this)});dm.displayName="CommandEmpty";var um=dt(({className:e,heading:t,children:r,...o},i)=>{return ge("div",{ref:i,className:n(em(),e),...o,children:[t&&ge("div",{className:n(tm()),children:t},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)});um.displayName="CommandGroup";var pm=dt(({className:e,disabled:t,selected:r=!1,onSelect:o,children:i,keywords:a,variant:s,...m},d)=>{let{search:l}=bi();if(!(()=>{if(!l)return!0;let u=l.toLowerCase();if((typeof i==="string"?i.toLowerCase():"").includes(u))return!0;if(a?.some((v)=>v.toLowerCase().includes(u)))return!0;return!1})())return null;return ge("div",{ref:d,role:"option","aria-selected":r,"aria-disabled":t,"data-disabled":t,"data-selected":r,onClick:()=>!t&&o?.(),onKeyDown:(u)=>{if(u.key==="Enter"&&!t)u.preventDefault(),o?.()},tabIndex:t?-1:0,className:n(rm({selected:r,variant:s}),e),...m,children:i},void 0,!1,void 0,this)});pm.displayName="CommandItem";var cm=dt(({className:e,...t},r)=>{return ge("div",{ref:r,className:n(om(),e),...t},void 0,!1,void 0,this)});cm.displayName="CommandSeparator";var fm=dt(({className:e,children:t,...r},o)=>{return ge("span",{ref:o,className:n(nm(),e),...r,children:t},void 0,!1,void 0,this)});fm.displayName="CommandShortcut";var gm=dt(({className:e,children:t,...r},o)=>{return ge("div",{ref:o,className:n(im(),e),...r,children:t},void 0,!1,void 0,this)});gm.displayName="CommandLoading";var ab=({key:e,modifier:t="meta",callback:r})=>{ao(`${t}+${e}`,r)};import*as G from"@radix-ui/react-context-menu";import{cva as Dt}from"class-variance-authority";import{Check as mb,ChevronRight as lb,Circle as db}from"lucide-react";import{createContext as ub,forwardRef as Ft,useContext as Ar}from"react";import{jsxDEV as be}from"react/jsx-dev-runtime";var J={sm:_.sm,md:_.md,lg:_.lg},Jo={default:"default",danger:"danger"},jt=ub(J.md),vi=Dt("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)]"),Ti=Dt("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:{[J.sm]:"h-6 gap-1.5 px-1.5 text-xs [&_svg]:size-3",[J.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[J.lg]:"h-9 gap-2 px-2.5 text-sm [&_svg]:size-4"},variant:{[Jo.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[Jo.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{size:J.md,variant:Jo.default}}),bm=Dt("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:{[J.sm]:"h-6 pl-6 pr-1.5 text-xs",[J.md]:"h-8 pl-8 pr-2 text-sm",[J.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:J.md}}),ym=Dt("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:{[J.sm]:"h-6 pl-6 pr-1.5 text-xs",[J.md]:"h-8 pl-8 pr-2 text-sm",[J.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:J.md}}),vm=Dt("font-semibold text-muted-foreground",{variants:{size:{[J.sm]:"px-1.5 py-0.5 text-[10px]",[J.md]:"px-2 py-1.5 text-xs",[J.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:J.md}}),Tm=Dt("-mx-1 my-1 h-px bg-border/50"),hm=Dt("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[J.sm]:"text-[10px]",[J.md]:"text-xs",[J.lg]:"text-xs"}},defaultVariants:{size:J.md}}),Pm={[J.sm]:"absolute left-1.5 flex size-3 items-center justify-center",[J.md]:"absolute left-2 flex size-3.5 items-center justify-center",[J.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},pb={[J.sm]:"size-3",[J.md]:"size-3.5",[J.lg]:"size-4"},cb={[J.sm]:"size-1.5 fill-current",[J.md]:"size-2 fill-current",[J.lg]:"size-2.5 fill-current"},fb=G.Root,gb=G.Trigger,bb=G.Group,yb=G.Portal,vb=G.Sub,Tb=G.RadioGroup,xm=Ft(({className:e,inset:t,children:r,...o},i)=>{let a=Ar(jt),s=b(a);return be(G.SubTrigger,{ref:i,className:n(Ti({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,be(lb,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});xm.displayName=G.SubTrigger.displayName;var Rm=Ft(({className:e,sideOffset:t=De,portal:r=de,portalContainer:o,...i},a)=>{let s=be(G.SubContent,{ref:a,sideOffset:t,className:n(vi(),e),...i},void 0,!1,void 0,this);if(!r)return s;return be(G.Portal,{container:o??void 0,children:s},void 0,!1,void 0,this)});Rm.displayName=G.SubContent.displayName;var Lm=Ft(({className:e,size:t,portal:r=de,portalContainer:o,...i},a)=>{let s=b(t)??J.md,m=be(G.Content,{ref:a,className:n(vi(),e),...i},void 0,!1,void 0,this);return be(jt.Provider,{value:s,children:r?be(G.Portal,{container:o??void 0,children:m},void 0,!1,void 0,this):m},void 0,!1,void 0,this)});Lm.displayName=G.Content.displayName;var Nm=Ft(({className:e,inset:t,variant:r,...o},i)=>{let a=Ar(jt),s=b(a);return be(G.Item,{ref:i,className:n(Ti({size:s,variant:r}),t&&"pl-8",e),...o},void 0,!1,void 0,this)});Nm.displayName=G.Item.displayName;var Mm=Ft(({className:e,children:t,checked:r,...o},i)=>{let a=Ar(jt),s=b(a)??J.md;return be(G.CheckboxItem,{ref:i,className:n(bm({size:s}),e),checked:r,...o,children:[be("span",{className:Pm[s],children:be(G.ItemIndicator,{children:be(mb,{className:pb[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)});Mm.displayName=G.CheckboxItem.displayName;var Hm=Ft(({className:e,children:t,...r},o)=>{let i=Ar(jt),a=b(i)??J.md;return be(G.RadioItem,{ref:o,className:n(ym({size:a}),e),...r,children:[be("span",{className:Pm[a],children:be(G.ItemIndicator,{children:be(db,{className:cb[a]},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)});Hm.displayName=G.RadioItem.displayName;var zm=Ft(({className:e,inset:t,...r},o)=>{let i=Ar(jt),a=b(i);return be(G.Label,{ref:o,className:n(vm({size:a}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});zm.displayName=G.Label.displayName;var Cm=Ft(({className:e,...t},r)=>be(G.Separator,{ref:r,className:n(Tm(),e),...t},void 0,!1,void 0,this));Cm.displayName=G.Separator.displayName;var wm=({className:e,...t})=>{let r=Ar(jt),o=b(r);return be("span",{className:n(hm({size:o}),e),...t},void 0,!1,void 0,this)};wm.displayName="ContextMenuShortcut";import*as Re from"@radix-ui/react-dialog";import{cva as hb}from"class-variance-authority";import{X as Pb}from"lucide-react";import{createContext as xb,forwardRef as Zo,useCallback as Rb,useContext as Lb,useEffect as Nb,useState as km}from"react";import{jsxDEV as Se,Fragment as Cb}from"react/jsx-dev-runtime";var St={sm:_.sm,md:_.md,lg:_.lg,xl:_.xl,full:"full"},Mb=160,Bm=xb(!1),so=({children:e,open:t,defaultOpen:r=!1,onOpenChange:o,...i})=>{let[a,s]=km(r),m=t!==void 0,d=m?t:a,l=Rb((y)=>{if(!m)s(y);o?.(y)},[m,o]);return Se(Bm.Provider,{value:d,children:Se(Re.Root,{open:d,onOpenChange:l,...i,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},Hb=Re.Trigger,Vo=Re.Portal,zb=Re.Close,hi=Re.Content,mo=Zo(({className:e,...t},r)=>Se(Re.Overlay,{ref:r,className:n("gs-dialog-overlay",wt,e),...t},void 0,!1,void 0,this));mo.displayName="DialogOverlay";var Am=hb("gs-dialog-content fixed left-1/2 top-1/2 z-50 grid w-full gap-4 rounded-[var(--radius)] border border-border bg-background p-6 text-foreground shadow-[var(--shadow-xl)]",{variants:{size:{[St.sm]:"max-w-sm",[St.md]:"max-w-md",[St.lg]:"max-w-lg",[St.xl]:"max-w-xl",[St.full]:"max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)]"}},defaultVariants:{size:St.md}}),Eo=Zo(({className:e,children:t,size:r=St.md,showClose:o=!0,showOverlay:i=!0,portal:a=de,portalContainer:s,forceMount:m=!1,...d},l)=>{let y=Lb(Bm),[u,T]=km(m||y),v=b(r);if(Nb(()=>{if(m||y){T(!0);return}let H=setTimeout(()=>{T(!1)},Mb);return()=>{clearTimeout(H)}},[m,y]),!(m||y||u))return null;let R=Se(Cb,{children:[i?Se(mo,{forceMount:!0},void 0,!1,void 0,this):null,Se(Re.Content,{ref:l,forceMount:!0,className:n(Am({size:v}),e),...d,children:[t,o&&Se(Re.Close,{className:Go,children:[Se(Pb,{className:"size-4"},void 0,!1,void 0,this),Se("span",{className:"sr-only",children:"Close"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);if(!a)return R;return Se(Vo,{forceMount:!0,container:s??void 0,children:R},void 0,!1,void 0,this)});Eo.displayName="DialogContent";var Im=({className:e,...t})=>Se("div",{className:n("flex flex-col space-y-1.5 text-center sm:text-left",e),...t},void 0,!1,void 0,this);Im.displayName="DialogHeader";var Fm=({className:e,...t})=>Se("div",{className:n("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);Fm.displayName="DialogFooter";var Do=Zo(({className:e,...t},r)=>Se(Re.Title,{ref:r,className:n("font-semibold text-lg leading-none tracking-tight",e),...t},void 0,!1,void 0,this));Do.displayName="DialogTitle";var Sm=Zo(({className:e,...t},r)=>Se(Re.Description,{ref:r,className:n("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));Sm.displayName="DialogDescription";import{cva as xi}from"class-variance-authority";import{X as wb}from"lucide-react";import{forwardRef as jo}from"react";import{Drawer as ut}from"vaul";import{jsxDEV as Ne}from"react/jsx-dev-runtime";var Ye={sm:"sm",md:"md",lg:"lg",xl:"xl",full:"full"},kb={[Ye.sm]:"sm:max-w-sm",[Ye.md]:"sm:max-w-md",[Ye.lg]:"sm:max-w-lg",[Ye.xl]:"sm:max-w-xl",[Ye.full]:"sm:max-w-full"},Bb={[Ye.sm]:"sm:max-h-[30vh]",[Ye.md]:"sm:max-h-[50vh]",[Ye.lg]:"sm:max-h-[70vh]",[Ye.xl]:"sm:max-h-[85vh]",[Ye.full]:"sm:max-h-full"},Om=xi(n("gs-sheet-overlay",wt)),Wm=xi(["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"]),Pi=xi("shrink-0 rounded-full bg-muted-foreground/25 transition-colors duration-150 hover:bg-muted-foreground/40",{variants:{direction:{top:"h-1.5 w-[60px]",bottom:"h-1.5 w-[60px]",left:"h-[60px] w-1.5",right:"h-[60px] w-1.5"}},defaultVariants:{direction:"bottom"}}),_m={top:"flex justify-center pb-2 pt-4",bottom:"flex justify-center pt-4 pb-2",left:"absolute right-0 top-0 flex h-full items-center pr-2 pl-0",right:"absolute left-0 top-0 flex h-full items-center pl-2 pr-0"},Ab=ut.Root,Ib=ut.Trigger,Fb=ut.Close,Um=ut.Portal,Gm=ut.Handle,Ri=jo(({className:e,...t},r)=>Ne(ut.Overlay,{ref:r,className:n(Om(),e),...t},void 0,!1,void 0,this));Ri.displayName="DrawerOverlay";var Km=jo(({size:e=Ye.md,showClose:t=!1,direction:r="bottom",className:o,children:i,...a},s)=>{let d=r==="left"||r==="right"?kb[e]:Bb[e];return Ne(Um,{children:[Ne(Ri,{},void 0,!1,void 0,this),Ne(ut.Content,{ref:s,className:n(Wm(),d,o),...a,children:[r!=="top"&&Ne("div",{className:n(_m[r]),children:Ne(Gm,{className:"!m-0 !h-auto !w-auto !rounded-none !bg-transparent !opacity-100",children:Ne("div",{className:n(Pi({direction:r}))},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),i,r==="top"&&Ne("div",{className:n(_m[r]),children:Ne(Gm,{className:"!m-0 !h-auto !w-auto !rounded-none !bg-transparent !opacity-100",children:Ne("div",{className:n(Pi({direction:r}))},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),t&&Ne(ut.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:[Ne(wb,{className:"size-4"},void 0,!1,void 0,this),Ne("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)});Km.displayName="DrawerContent";var $m=({className:e,...t})=>Ne("div",{className:n("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);$m.displayName="DrawerHeader";var Xm=({className:e,...t})=>Ne("div",{className:n("mt-auto flex flex-col gap-2 p-4",e),...t},void 0,!1,void 0,this);Xm.displayName="DrawerFooter";var Ym=jo(({className:e,...t},r)=>Ne(ut.Title,{ref:r,className:n("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));Ym.displayName="DrawerTitle";var qm=jo(({className:e,...t},r)=>Ne(ut.Description,{ref:r,className:n("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));qm.displayName="DrawerDescription";import*as O from"@radix-ui/react-dropdown-menu";import{cva as er}from"class-variance-authority";import{Check as Sb,ChevronRight as _b,Circle as Gb}from"lucide-react";import{createContext as Ob,forwardRef as _t,useContext as Ir}from"react";import{jsxDEV as ye}from"react/jsx-dev-runtime";var Z={sm:_.sm,md:_.md,lg:_.lg},en={default:"default",danger:"danger"},tr=Ob(Z.md),Li=er("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)]"),Ni=er("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:{[Z.sm]:"h-7 gap-1.5 px-2 text-xs [&_svg]:size-3.5",[Z.md]:"h-8 gap-2 px-2 text-sm [&_svg]:size-4",[Z.lg]:"h-9 gap-2 px-2.5 text-sm [&_svg]:size-4"},variant:{[en.default]:"hover:bg-accent/80 focus:bg-accent focus:text-accent-foreground",[en.danger]:"text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:text-destructive"}},defaultVariants:{size:Z.md,variant:en.default}}),Qm=er("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:{[Z.sm]:"h-7 pl-7 pr-2 text-xs",[Z.md]:"h-8 pl-8 pr-2 text-sm",[Z.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:Z.md}}),Jm=er("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:{[Z.sm]:"h-7 pl-7 pr-2 text-xs",[Z.md]:"h-8 pl-8 pr-2 text-sm",[Z.lg]:"h-9 pl-8 pr-2.5 text-sm"}},defaultVariants:{size:Z.md}}),Zm=er("font-semibold text-muted-foreground",{variants:{size:{[Z.sm]:"px-2 py-1 text-[11px]",[Z.md]:"px-2 py-1.5 text-xs",[Z.lg]:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:Z.md}}),Vm=er("-mx-1 my-1 h-px bg-border/50"),Em=er("ml-auto tracking-widest text-muted-foreground/70",{variants:{size:{[Z.sm]:"text-[11px]",[Z.md]:"text-xs",[Z.lg]:"text-xs"}},defaultVariants:{size:Z.md}}),Dm={[Z.sm]:"absolute left-2 flex size-3.5 items-center justify-center",[Z.md]:"absolute left-2 flex size-3.5 items-center justify-center",[Z.lg]:"absolute left-2.5 flex size-4 items-center justify-center"},Wb={[Z.sm]:"size-3",[Z.md]:"size-3.5",[Z.lg]:"size-4"},Ub={[Z.sm]:"size-1.5 fill-current",[Z.md]:"size-2 fill-current",[Z.lg]:"size-2.5 fill-current"},Kb=O.Root,$b=O.Trigger,Xb=O.Group,Yb=O.Portal,qb=O.Sub,Qb=O.RadioGroup,jm=_t(({className:e,inset:t,children:r,...o},i)=>{let a=Ir(tr),s=b(a);return ye(O.SubTrigger,{ref:i,className:n(Ni({size:s}),"data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:[r,ye(_b,{className:"ml-auto"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});jm.displayName=O.SubTrigger.displayName;var el=_t(({className:e,sideOffset:t=De,portal:r=de,portalContainer:o,...i},a)=>{let s=ye(O.SubContent,{ref:a,sideOffset:t,className:n(Li(),e),...i},void 0,!1,void 0,this);if(!r)return s;return ye(O.Portal,{container:o??void 0,children:s},void 0,!1,void 0,this)});el.displayName=O.SubContent.displayName;var tl=_t(({className:e,sideOffset:t=De,size:r,portal:o=de,portalContainer:i,...a},s)=>{let m=b(r)??Z.md,d=ye(O.Content,{ref:s,sideOffset:t,className:n(Li(),e),...a},void 0,!1,void 0,this);return ye(tr.Provider,{value:m,children:o?ye(O.Portal,{container:i??void 0,children:d},void 0,!1,void 0,this):d},void 0,!1,void 0,this)});tl.displayName=O.Content.displayName;var rl=_t(({className:e,inset:t,variant:r,...o},i)=>{let a=Ir(tr),s=b(a);return ye(O.Item,{ref:i,className:n(Ni({size:s,variant:r}),t&&"pl-8",e),...o},void 0,!1,void 0,this)});rl.displayName=O.Item.displayName;var ol=_t(({className:e,children:t,checked:r,...o},i)=>{let a=Ir(tr),s=b(a)??Z.md;return ye(O.CheckboxItem,{ref:i,className:n(Qm({size:s}),e),checked:r,...o,children:[ye("span",{className:Dm[s],children:ye(O.ItemIndicator,{children:ye(Sb,{className:Wb[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)});ol.displayName=O.CheckboxItem.displayName;var nl=_t(({className:e,children:t,...r},o)=>{let i=Ir(tr),a=b(i)??Z.md;return ye(O.RadioItem,{ref:o,className:n(Jm({size:a}),e),...r,children:[ye("span",{className:Dm[a],children:ye(O.ItemIndicator,{children:ye(Gb,{className:Ub[a]},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)});nl.displayName=O.RadioItem.displayName;var il=_t(({className:e,inset:t,...r},o)=>{let i=Ir(tr),a=b(i);return ye(O.Label,{ref:o,className:n(Zm({size:a}),t&&"pl-8",e),...r},void 0,!1,void 0,this)});il.displayName=O.Label.displayName;var al=_t(({className:e,...t},r)=>ye(O.Separator,{ref:r,className:n(Vm(),e),...t},void 0,!1,void 0,this));al.displayName=O.Separator.displayName;var sl=({className:e,...t})=>{let r=Ir(tr),o=b(r);return ye("span",{className:n(Em({size:o}),e),...t},void 0,!1,void 0,this)};sl.displayName="DropdownMenuShortcut";import{cva as uo}from"class-variance-authority";import{forwardRef as Jb}from"react";import{jsxDEV as lo}from"react/jsx-dev-runtime";var Me={sm:"sm",md:"md",lg:"lg"},ml=uo("flex flex-col items-center justify-center text-center rounded-[var(--radius)] border border-dashed border-border/50 bg-muted/20",{variants:{size:{[Me.sm]:"gap-2 p-4",[Me.md]:"gap-4 p-8",[Me.lg]:"gap-6 p-12"}},defaultVariants:{size:Me.md}}),ll=uo("flex items-center justify-center rounded-full bg-muted/50 text-muted-foreground",{variants:{size:{[Me.sm]:"h-10 w-10 [&>svg]:h-4 [&>svg]:w-4",[Me.md]:"h-16 w-16 [&>svg]:h-7 [&>svg]:w-7",[Me.lg]:"h-20 w-20 [&>svg]:h-9 [&>svg]:w-9"}},defaultVariants:{size:Me.md}}),dl=uo("font-semibold text-foreground",{variants:{size:{[Me.sm]:"text-sm",[Me.md]:"text-lg",[Me.lg]:"text-xl"}},defaultVariants:{size:Me.md}}),ul=uo("text-muted-foreground max-w-sm",{variants:{size:{[Me.sm]:"text-xs",[Me.md]:"text-sm",[Me.lg]:"text-base"}},defaultVariants:{size:Me.md}}),pl=uo("flex items-center gap-2 mt-2"),cl=Jb(({className:e,icon:t,title:r,description:o,actions:i,size:a=Me.md,children:s,...m},d)=>{let l=b(a);return lo("div",{ref:d,className:n(ml({size:l}),e),...m,children:[t&&lo("div",{className:ll({size:l}),children:t},void 0,!1,void 0,this),r&&lo("h3",{className:dl({size:l}),children:r},void 0,!1,void 0,this),o&&lo("p",{className:ul({size:l}),children:o},void 0,!1,void 0,this),i&&lo("div",{className:pl(),children:i},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)});cl.displayName="EmptyState";import{cva as Fr}from"class-variance-authority";import{Component as Zb,createElement as fl}from"react";import{jsxDEV as Be,Fragment as Eb}from"react/jsx-dev-runtime";var gl=Fr(["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"}}),bl=Fr(["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"}}),yl=Fr("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"}}),vl=Fr("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"}}),Tl=Fr("mt-2 flex flex-wrap items-center justify-center gap-2"),hl=Fr("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 Pl extends Zb{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:i="destructive",className:a,title:s="Something went wrong",description:m="An unexpected error occurred. Please try again.",icon:d,actions:l,resetLabel:y="Try again",hideReset:u=!1,renderDetails:T}=this.props;if(this.state.hasError&&this.state.error){let v={error:this.state.error,reset:this.handleReset};if(t){if(typeof t==="function")return fl(t,v);return t}let p=null;if(l)p=typeof l==="function"?fl(l,v):l;else if(!u){let H={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"};p=Be("button",{type:"button",onClick:this.handleReset,className:n("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",H[i]),children:y},void 0,!1,void 0,this)}let R=T?T(this.state.error):Be(Eb,{children:[Be("strong",{children:"Error:"},void 0,!1,void 0,this)," ",this.state.error.message,this.state.error.stack&&Be("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 Be("div",{className:n(gl({size:o,variant:i}),a),children:[Be("div",{className:n(bl({size:o,variant:i})),children:d??Be(Vb,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),Be("h3",{className:n(yl({size:o,variant:i})),children:s},void 0,!1,void 0,this),Be("p",{className:n(vl({size:o})),children:m},void 0,!1,void 0,this),p&&Be("div",{className:n(Tl()),children:p},void 0,!1,void 0,this),r&&Be("div",{className:n(hl()),children:R},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}return e}}function Vb(){return Be("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:[Be("circle",{cx:"12",cy:"12",r:"10"},void 0,!1,void 0,this),Be("line",{x1:"12",x2:"12",y1:"8",y2:"12"},void 0,!1,void 0,this),Be("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 Gt}from"class-variance-authority";import{forwardRef as Db,useCallback as ot,useRef as jb,useState as xl}from"react";import{jsxDEV as ze}from"react/jsx-dev-runtime";var oe={sm:"sm",md:"md",lg:"lg",xl:"xl"},Rl=Gt(["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:{[oe.sm]:"min-h-28 p-5",[oe.md]:"min-h-36 p-8",[oe.lg]:"min-h-44 p-10",[oe.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:oe.md,isDragging:!1,disabled:!1,hasError:!1}}),Ll=Gt("text-muted-foreground transition-colors duration-200",{variants:{size:{[oe.sm]:"mb-2 size-6",[oe.md]:"size-8 mb-3",[oe.lg]:"size-10 mb-4",[oe.xl]:"size-12 mb-5"},isDragging:{true:"text-primary",false:""}},defaultVariants:{size:oe.md,isDragging:!1}}),Mi=Gt("text-center",{variants:{size:{[oe.sm]:"text-sm",[oe.md]:"text-sm",[oe.lg]:"text-base",[oe.xl]:"text-lg"}},defaultVariants:{size:oe.md}}),Nl=Gt("mt-4 w-full space-y-2"),Ml=Gt(["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"]),Hl=Gt("min-w-0 flex-1 truncate font-medium text-foreground",{variants:{size:{[oe.sm]:"text-sm",[oe.md]:"text-sm",[oe.lg]:"text-base",[oe.xl]:"text-base"}},defaultVariants:{size:"md"}}),zl=Gt("text-muted-foreground",{variants:{size:{[oe.sm]:"text-xs",[oe.md]:"text-sm",[oe.lg]:"text-sm",[oe.xl]:"text-base"}},defaultVariants:{size:"md"}}),Cl=Gt(["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"]),wl=Db(({className:e,size:t="md",disabled:r=!1,accept:o,multiple:i=!1,maxSize:a,maxFiles:s,value:m=[],onChange:d,onError:l,icon:y,title:u="Drop files here or click to upload",description:T,showFileList:v=!0,...p},R)=>{let H=b(t),[c,f]=xl(!1),[g,P]=xl(!1),F=jb(null),z=ot((M)=>{if(M===0)return"0 Bytes";let A=1024,h=["Bytes","KB","MB","GB"],x=Math.floor(Math.log(M)/Math.log(A));return`${parseFloat((M/A**x).toFixed(2))} ${h[x]}`},[]),W=ot((M)=>{let A=[...M];if(P(!1),o){let h=o.split(",").map((x)=>x.trim());if(A=A.filter((x)=>{return h.some((C)=>{if(C.startsWith("."))return x.name.toLowerCase().endsWith(C.toLowerCase());if(C.endsWith("/*"))return x.type.startsWith(C.slice(0,-1));return x.type===C})}),A.length<M.length)l?.("Some files were rejected due to file type"),P(!0)}if(a){let h=A.length;if(A=A.filter((x)=>x.size<=a),A.length<h)l?.(`File size must be less than ${z(a)}`),P(!0)}if(s&&A.length+m.length>s)A=A.slice(0,s-m.length),l?.(`Maximum ${s} files allowed`),P(!0);return A},[o,a,s,m.length,l,z]),w=ot((M)=>{if(!M||M.length===0)return;let A=Array.from(M),h=W(A);if(h.length>0)if(i)d?.([...m,...h]);else d?.(h.slice(0,1))},[i,m,d,W]),S=ot((M)=>{M.preventDefault(),M.stopPropagation(),f(!0)},[]),K=ot((M)=>{M.preventDefault(),M.stopPropagation(),f(!1)},[]),$=ot((M)=>{M.preventDefault(),M.stopPropagation()},[]),j=ot((M)=>{if(M.preventDefault(),M.stopPropagation(),f(!1),r)return;w(M.dataTransfer.files)},[r,w]),ie=ot((M)=>{if(w(M.target.files),F.current)F.current.value=""},[w]),Y=ot(()=>{if(!r)F.current?.click()},[r]),k=ot((M)=>{if(M.key==="Enter"||M.key===" ")M.preventDefault(),Y()},[Y]),V=ot((M)=>{let A=m.filter((h,x)=>x!==M);d?.(A)},[m,d]),L=ze("svg",{className:n(Ll({size:H,isDragging:c})),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:ze("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 ze("div",{ref:R,className:n("w-full",e),...p,children:[ze("div",{role:"button",tabIndex:r?-1:0,onClick:Y,onKeyDown:k,onDragEnter:S,onDragLeave:K,onDragOver:$,onDrop:j,className:n(Rl({size:H,isDragging:c,disabled:r,hasError:g})),children:[ze("input",{ref:F,type:"file",accept:o,multiple:i,disabled:r,onChange:ie,className:"sr-only"},void 0,!1,void 0,this),y||L,ze("p",{className:n(Mi({size:H}),"font-medium text-foreground"),children:u},void 0,!1,void 0,this),T&&ze("p",{className:n(Mi({size:H}),"mt-1 text-muted-foreground"),children:T},void 0,!1,void 0,this)]},void 0,!0,void 0,this),v&&m.length>0&&ze("div",{className:n(Nl()),children:m.map((M,A)=>ze("div",{className:n(Ml()),children:[ze("svg",{className:"size-5 shrink-0 text-muted-foreground",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:ze("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),ze("span",{className:n(Hl({size:H})),children:M.name},void 0,!1,void 0,this),ze("span",{className:n(zl({size:H})),children:z(M.size)},void 0,!1,void 0,this),ze("button",{type:"button",onClick:(h)=>{h.stopPropagation(),V(A)},className:n(Cl()),"aria-label":`Remove ${M.name}`,children:ze("svg",{className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:ze("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)]},`${M.name}-${A}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});wl.displayName="FileUpload";import{cva as ey}from"class-variance-authority";import{createContext as ty,forwardRef as tn,useContext as ry,useId as oy}from"react";import{jsxDEV as rr,Fragment as iy}from"react/jsx-dev-runtime";var qe={sm:"sm",md:"md",lg:"lg"},kl=ty(null),po=()=>{let e=ry(kl);if(!e)throw Error("useFormField must be used within a FormField");return e},Bl=ey("flex flex-col",{variants:{size:{[qe.sm]:"gap-1",[qe.md]:"gap-1.5",[qe.lg]:"gap-2"}},defaultVariants:{size:qe.md}}),Al=tn(({className:e,size:t=qe.md,error:r,disabled:o=!1,required:i=!1,children:a,...s},m)=>{let d=oy(),l=b(t),y={id:d,size:l,error:r,disabled:o,required:i};return rr(kl.Provider,{value:y,children:rr("div",{ref:m,className:n(Bl({size:l}),e),...s,children:a},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Al.displayName="FormField";var ny={[qe.sm]:"text-xs",[qe.md]:"text-sm",[qe.lg]:"text-base"},Il=tn(({className:e,htmlFor:t,children:r,...o},i)=>{let{id:a,size:s,disabled:m,required:d}=po();return rr("label",{ref:i,htmlFor:t??a,className:n("inline-block select-none font-medium text-foreground",ny[s],m&&"cursor-not-allowed opacity-60",e),...o,children:[r,d&&rr("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Il.displayName="FormFieldLabel";var Fl={[qe.sm]:"text-[10px]",[qe.md]:"text-xs",[qe.lg]:"text-sm"},Sl=tn(({className:e,...t},r)=>{let{id:o,size:i}=po();return rr("p",{ref:r,id:`${o}-description`,className:n("text-muted-foreground",Fl[i],e),...t},void 0,!1,void 0,this)});Sl.displayName="FormFieldDescription";var _l=tn(({className:e,children:t,...r},o)=>{let{id:i,size:a,error:s}=po(),m=t??s;if(!m)return null;return rr("p",{ref:o,id:`${i}-error`,role:"alert",className:n("text-destructive",Fl[a],e),...r,children:m},void 0,!1,void 0,this)});_l.displayName="FormFieldError";var Gl=({children:e})=>{let{id:t,disabled:r,required:o,error:i}=po(),a=[i?`${t}-error`:void 0,`${t}-description`].filter(Boolean).join(" ");return rr(iy,{children:e({id:t,disabled:r,required:o,status:i?"error":"default","aria-describedby":a||void 0,"aria-invalid":i?!0:void 0})},void 0,!1,void 0,this)};Gl.displayName="FormFieldControl";import*as Rt from"@radix-ui/react-hover-card";import{cva as ay}from"class-variance-authority";import{forwardRef as sy}from"react";import{jsxDEV as Ol}from"react/jsx-dev-runtime";var Sr={sm:_.sm,md:_.md,lg:_.lg},Wl=ay("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:{[Sr.sm]:"w-52 p-3 text-xs",[Sr.md]:"w-64 p-4 text-sm",[Sr.lg]:"w-80 p-5 text-sm"}},defaultVariants:{size:Sr.md}}),my=Rt.Root,ly=Rt.Trigger,Ul=sy(({className:e,align:t="center",sideOffset:r=De,portal:o=de,portalContainer:i,size:a=Sr.md,...s},m)=>{let d=b(a),l=Ol(Rt.Content,{ref:m,align:t,sideOffset:r,className:n(Wl({size:d}),e),...s},void 0,!1,void 0,this);if(!o)return l;return Ol(Rt.Portal,{container:i??void 0,children:l},void 0,!1,void 0,this)});Ul.displayName=Rt.Content.displayName;import{cva as dy}from"class-variance-authority";import{X as uy}from"lucide-react";import{forwardRef as py,useRef as cy,useState as fy}from"react";import{jsxDEV as or}from"react/jsx-dev-runtime";var co={default:"default",error:"error",success:"success"},D={sm:"sm",md:"md",lg:"lg",xl:"xl"},gy="Clear input",$l=dy("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:{[co.default]:"focus-visible:ring-primary",[co.error]:"border-destructive focus-visible:ring-destructive",[co.success]:"border-success focus-visible:ring-success"},size:{[D.sm]:"h-8 px-2 text-xs",[D.md]:"h-10 px-3",[D.lg]:"h-11 px-4",[D.xl]:"h-12 px-4 text-base"}},defaultVariants:{status:co.default,size:D.md}}),by={[D.sm]:"pl-7",[D.md]:"pl-9",[D.lg]:"pl-10",[D.xl]:"pl-10"},yy={[D.sm]:"pr-7",[D.md]:"pr-9",[D.lg]:"pr-10",[D.xl]:"pr-10"},vy={[D.sm]:"pr-12",[D.md]:"pr-16",[D.lg]:"pr-18",[D.xl]:"pr-18"},Ty={[D.sm]:"text-xs left-2",[D.md]:"text-sm left-3",[D.lg]:"text-sm left-3.5",[D.xl]:"text-base left-3.5"},hy={[D.sm]:"text-xs",[D.md]:"text-sm",[D.lg]:"text-sm",[D.xl]:"text-base"},Py={[D.sm]:"size-4",[D.md]:"size-5",[D.lg]:"size-5",[D.xl]:"size-6"};function Kl(e){if(e===void 0||e===null)return"";if(Array.isArray(e))return e.join("");return String(e)}var Xl=py(({className:e,status:t=co.default,size:r=D.md,fullWidth:o=!1,prefix:i,suffix:a,clearable:s=!1,clearAriaLabel:m=gy,onClear:d,onValueChange:l,disabled:y,readOnly:u,onChange:T,value:v,defaultValue:p,...R},H)=>{let c=Boolean(i),f=Boolean(a),g=b(r),P=cy(null),F=Lt(H,P),[z,W]=fy(()=>Kl(p)),w=v!==void 0,S=w?Kl(v):z,K=s&&!y&&!u&&S.length>0,$=f||K,j=f&&K,ie=(k)=>{let V=k.target.value;if(!w)W(V);l?.(V),T?.(k)},Y=()=>{if(!w)W("");l?.("");let k=P.current;if(k)k.value="",k.dispatchEvent(new Event("input",{bubbles:!0})),k.focus();d?.()};return or("div",{className:n("relative flex items-center",o&&"w-full"),children:[c&&or("span",{className:n("absolute inset-y-0 flex items-center text-muted-foreground",Ty[g]),children:i},void 0,!1,void 0,this),or("input",{ref:F,className:n($l({status:t,size:g}),c&&by[g],j&&vy[g],!j&&$&&yy[g],e),disabled:y,readOnly:u,onChange:ie,value:S,...R},void 0,!1,void 0,this),$&&or("span",{className:n("absolute inset-y-0 right-2 flex items-center gap-1 text-muted-foreground",hy[g]),children:[f&&or("span",{className:"inline-flex items-center",children:a},void 0,!1,void 0,this),K&&or("button",{type:"button","aria-label":m,onMouseDown:(k)=>k.preventDefault(),onClick:Y,className:n("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",Py[g]),children:or(uy,{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)});Xl.displayName="Input";import{cva as Ny}from"class-variance-authority";import{forwardRef as My}from"react";import{useSyncExternalStore as xy}from"react";var Ry=()=>Hi(),Ly=()=>Yl;function fo(){return xy(ql,Ry,Ly)}import{jsxDEV as Hy}from"react/jsx-dev-runtime";var _r={sm:"sm",md:"md",lg:"lg"},Gr=Ny("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:{[_r.sm]:"min-w-5 h-5 px-1 text-[10px]",[_r.md]:"min-w-6 h-6 px-1.5 text-xs",[_r.lg]:"min-w-7 h-7 px-2 text-sm"}},defaultVariants:{size:_r.md}}),Ql=My(({className:e,size:t=_r.md,combo:r,keys:o,children:i,...a},s)=>{let m=b(t),{isMac:d}=fo(),l=r?rn(r,d):o?rn(o,d):i;return Hy("kbd",{ref:s,className:n(Gr({size:m}),e),...a,children:l},void 0,!1,void 0,this)});Ql.displayName="Kbd";import{cva as zy}from"class-variance-authority";import{forwardRef as Cy}from"react";import{jsxDEV as Jl}from"react/jsx-dev-runtime";var Or={sm:"sm",md:"md",lg:"lg"},Zl=zy("inline-block font-medium text-foreground select-none peer-disabled:cursor-not-allowed peer-disabled:text-muted-foreground/70",{variants:{size:{[Or.sm]:"text-xs",[Or.md]:"text-sm",[Or.lg]:"text-base"}},defaultVariants:{size:Or.md}}),Vl=Cy(({className:e,size:t=Or.md,required:r=!1,disabled:o=!1,children:i,htmlFor:a,...s},m)=>{let d=b(t);return Jl("label",{ref:m,htmlFor:a,className:n(Zl({size:d}),o&&"cursor-not-allowed text-muted-foreground/70",e),"aria-disabled":o||void 0,...s,children:[i,r&&Jl("span",{className:"ml-0.5 text-destructive","aria-hidden":"true",children:"*"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Vl.displayName="Label";import{forwardRef as wy}from"react";import{jsxDEV as ky}from"react/jsx-dev-runtime";var El=wy((e,t)=>{return ky(zt,{ref:t,...e},void 0,!1,void 0,this)});El.displayName="Loader";import*as Wt from"@radix-ui/react-popover";import{cva as Gy}from"class-variance-authority";import{Check as Oy,ChevronDown as Wy,X as Uy}from"lucide-react";import{forwardRef as Ky,useCallback as Ot,useEffect as $y,useRef as Xy,useState as ed}from"react";import*as Qe from"@radix-ui/react-popover";import{cva as By}from"class-variance-authority";import{forwardRef as Ay}from"react";import{jsxDEV as Dl}from"react/jsx-dev-runtime";var nr={sm:_.sm,md:_.md,lg:_.lg,xl:_.xl},Wr=By("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:{[nr.sm]:"w-56 p-3 text-sm",[nr.md]:"w-72 p-4 text-sm",[nr.lg]:"w-96 p-5 text-sm",[nr.xl]:"w-[28rem] p-6 text-sm"}},defaultVariants:{size:nr.md}}),Iy=Qe.Root,Fy=Qe.Trigger,Sy=Qe.Anchor,_y=Qe.Close,jl=Ay(({className:e,align:t="center",sideOffset:r=De,portal:o=de,portalContainer:i,size:a=nr.md,...s},m)=>{let d=b(a),l=Dl(Qe.Content,{ref:m,align:t,sideOffset:r,className:n(Wr({size:d}),e),...s},void 0,!1,void 0,this);if(o)return Dl(Qe.Portal,{container:i??void 0,children:l},void 0,!1,void 0,this);return l});jl.displayName="PopoverContent";import{jsxDEV as ue,Fragment as Qy}from"react/jsx-dev-runtime";var ve={sm:"sm",md:"md",lg:"lg",xl:"xl"},td=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:{[ve.sm]:"min-h-8 px-2.5 py-1 text-xs",[ve.md]:"min-h-10 px-3.5 py-1.5",[ve.lg]:"min-h-11 px-4.5 py-2 text-sm",[ve.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:ve.md,status:"default"}}),Yy={[ve.sm]:"sm",[ve.md]:"md",[ve.lg]:"lg",[ve.xl]:"xl"},qy={[ve.sm]:"min-h-7.5 py-1.5 px-2.5 text-xs",[ve.md]:"min-h-9 py-2 px-3 text-sm",[ve.lg]:"min-h-10 py-2.5 px-3.5 text-sm",[ve.xl]:"min-h-11 py-3 px-4 text-base"},on={[ve.sm]:"size-3.5",[ve.md]:"size-4",[ve.lg]:"size-4",[ve.xl]:"size-4.5"},rd=Ky(({className:e,options:t,value:r,defaultValue:o=[],onValueChange:i,placeholder:a="Select options...",size:s=ve.md,status:m="default",clearable:d=!1,maxDisplayItems:l=3,disabled:y,...u},T)=>{let v=b(s)??s,[p,R]=ed(!1),[H,c]=ed(o),f=Xy(null),g=r!==void 0,P=g?r:H,F=Ot((L)=>{let M=P.includes(L)?P.filter((A)=>A!==L):[...P,L];if(!g)c(M);i?.(M)},[P,g,i]),z=Ot((L)=>{let M=P.filter((A)=>A!==L);if(!g)c(M);i?.(M)},[P,g,i]),W=Ot((L)=>{z(L)},[z]),w=Ot(()=>{if(!g)c([]);i?.([])},[g,i]),S=Ot((L)=>{L.stopPropagation(),L.preventDefault(),w()},[w]),K=Ot((L)=>{if(L.key==="Enter"||L.key===" ")L.stopPropagation(),L.preventDefault(),w()},[w]),$=t.filter((L)=>P.includes(L.value)),j=Yy[v],ie=$.length>0,Y=d&&ie&&!y,k=Ot((L)=>{let M=f.current;if(!M)return;let A=Array.from(M.querySelectorAll('[role="option"]:not([data-disabled])'));if(A.length===0)return;let h=M.querySelector('[role="option"]:focus'),x=h?A.indexOf(h):-1,C;switch(L){case"first":C=A[0];break;case"last":C=A[A.length-1];break;case"next":C=A[x+1]??A[0];break;case"prev":C=A[x-1]??A[A.length-1];break}C?.focus()},[]),V=Ot((L)=>{switch(L.key){case"ArrowDown":L.preventDefault(),k("next");break;case"ArrowUp":L.preventDefault(),k("prev");break;case"Home":L.preventDefault(),k("first");break;case"End":L.preventDefault(),k("last");break;case"Escape":L.preventDefault(),R(!1);break}},[k]);return $y(()=>{if(p)requestAnimationFrame(()=>k("first"))},[p,k]),ue(Wt.Root,{open:p,onOpenChange:R,children:[ue(Wt.Trigger,{asChild:!0,children:ue("button",{ref:T,type:"button",disabled:y,"data-state":p?"open":"closed","data-placeholder":ie?void 0:"",className:n(td({size:v,status:m}),e),...u,children:[ue("span",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-1 text-left",children:ie?ue(Qy,{children:[$.slice(0,l).map((L)=>ue(Wo,{variant:"outline",size:j,removable:!0,removeControl:"span",removeLabel:`Remove ${L.label}`,onRemove:()=>W(L.value),className:"max-w-[180px]",children:ue("span",{className:"truncate",children:L.label},void 0,!1,void 0,this)},L.value,!1,void 0,this)),$.length>l&&ue("span",{className:"text-muted-foreground text-xs",children:["+",$.length-l]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):ue("span",{className:"text-muted-foreground",children:a},void 0,!1,void 0,this)},void 0,!1,void 0,this),ue("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[Y&&ue("span",{role:"button",tabIndex:-1,"aria-label":"Clear all",onMouseDown:(L)=>L.preventDefault(),onKeyDown:K,onClick:S,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:ue(Uy,{className:on[v]},void 0,!1,void 0,this)},void 0,!1,void 0,this),ue(Wy,{className:n(on[v],"opacity-60 transition-transform duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-productive)]",p&&"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),ue(Wt.Portal,{children:ue(Wt.Content,{ref:f,role:"listbox","aria-multiselectable":"true",align:"start",sideOffset:4,onKeyDown:V,onOpenAutoFocus:(L)=>L.preventDefault(),className:n(Wr(),"max-h-96 w-[var(--radix-popover-trigger-width)] overflow-y-auto overflow-x-hidden p-1"),children:[t.map((L)=>{let M=P.includes(L.value);return ue("div",{role:"option",tabIndex:L.disabled?void 0:-1,"aria-selected":M,"aria-disabled":L.disabled||void 0,"data-disabled":L.disabled?"":void 0,className:n("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:border-transparent data-disabled:bg-muted/40 data-disabled:text-muted-foreground/70",qy[v]),onClick:()=>!L.disabled&&F(L.value),onKeyDown:(A)=>{if(A.key==="Enter"||A.key===" "){if(A.preventDefault(),!L.disabled)F(L.value)}},children:[ue("span",{className:n("flex shrink-0 items-center justify-center",on[v]),children:M&&ue(Oy,{className:on[v]},void 0,!1,void 0,this)},void 0,!1,void 0,this),ue("span",{className:"min-w-0 flex-1 truncate",children:L.label},void 0,!1,void 0,this)]},L.value,!0,void 0,this)}),t.length===0&&ue("div",{className:"px-3 py-6 text-center text-muted-foreground text-sm",children:"No options available"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});rd.displayName="Multiselect";import*as ae from"@radix-ui/react-navigation-menu";import{cva as ir}from"class-variance-authority";import{createContext as Jy,forwardRef as Ur,useContext as Zy}from"react";import{jsxDEV as Ke}from"react/jsx-dev-runtime";var nt={sm:"sm",md:"md",lg:"lg"},od=Jy(nt.md),nd=ir("relative z-10 flex max-w-max flex-1 items-center justify-center"),id=ir("group flex flex-1 list-none items-center justify-center space-x-1"),ad=ir(["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:cursor-not-allowed disabled:border-transparent disabled:bg-muted/40 disabled:text-muted-foreground/70","data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"],{variants:{size:{[nt.sm]:"h-8 px-3 py-1.5 text-xs",[nt.md]:"h-10 px-4 py-2 text-sm",[nt.lg]:"h-12 px-5 py-2.5 text-sm"}},defaultVariants:{size:nt.md}}),sd=ir(["left-0 top-0 w-full","transition-[opacity,transform] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-emphasized)]","data-[motion^=from-]:opacity-0 data-[motion^=to-]:opacity-0","data-[motion=from-end]:translate-x-12 data-[motion=from-start]:-translate-x-12","data-[motion=to-end]:translate-x-12 data-[motion=to-start]:-translate-x-12","md:absolute md:w-auto"]),Vy=ir(["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:{[nt.sm]:"p-2 text-xs",[nt.md]:"p-3 text-sm",[nt.lg]:"p-4 text-sm"}},defaultVariants:{size:nt.md}}),md=ir(["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-[var(--motion-duration-medium)] ease-[var(--motion-ease-emphasized)]","md:w-[var(--radix-navigation-menu-viewport-width)]"]),ld=ir(["top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden","transition-opacity duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-productive)]","data-[state=hidden]:pointer-events-none data-[state=hidden]:opacity-0 data-[state=visible]:opacity-100"]),Ey=()=>Ke("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-transform duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-productive)] group-data-[state=open]:rotate-180","aria-hidden":"true",children:Ke("path",{d:"m6 9 6 6 6-6"},void 0,!1,void 0,this)},void 0,!1,void 0,this),dd=Ur(({className:e,children:t,size:r,...o},i)=>{let a=b(r??nt.md);return Ke(od.Provider,{value:a,children:Ke(ae.Root,{ref:i,className:n(nd(),e),...o,children:[t,Ke(zi,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});dd.displayName=ae.Root.displayName;var ud=Ur(({className:e,...t},r)=>Ke(ae.List,{ref:r,className:n(id(),e),...t},void 0,!1,void 0,this));ud.displayName=ae.List.displayName;var Dy=ae.Item,pd=Ur(({className:e,children:t,...r},o)=>{let i=Zy(od);return Ke(ae.Trigger,{ref:o,className:n(ad({size:i}),"group",e),...r,children:[t,Ke(Ey,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});pd.displayName=ae.Trigger.displayName;var cd=Ur(({className:e,...t},r)=>Ke(ae.Content,{ref:r,className:n(sd(),e),...t},void 0,!1,void 0,this));cd.displayName=ae.Content.displayName;var jy=ae.Link,zi=Ur(({className:e,...t},r)=>Ke("div",{className:"absolute top-full left-0 flex justify-center",children:Ke(ae.Viewport,{className:n(md(),e),ref:r,...t},void 0,!1,void 0,this)},void 0,!1,void 0,this));zi.displayName=ae.Viewport.displayName;var fd=Ur(({className:e,...t},r)=>Ke(ae.Indicator,{ref:r,className:n(ld(),e),...t,children:Ke("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));fd.displayName=ae.Indicator.displayName;import{cva as Kr}from"class-variance-authority";import{Fragment as ev,forwardRef as tv,useCallback as ar,useEffect as gd,useMemo as bd,useRef as rv,useState as yd}from"react";import{jsxDEV as sr}from"react/jsx-dev-runtime";var mr={sm:"sm",md:"md",lg:"lg",xl:"xl"},bo={default:"default",error:"error",success:"success"},go={single:"single",first:"first",middle:"middle",last:"last"},vd=Kr("relative inline-flex items-center",{variants:{size:{sm:"gap-1",md:"gap-1.5",lg:"gap-2",xl:"gap-2.5"}},defaultVariants:{size:mr.md}}),Td=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:mr.md,status:bo.default}}),hd=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:mr.md,filled:!1,focused:!1,status:bo.default,disabled:!1,position:go.single}}),Pd=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:mr.md,status:bo.default,filled:!1}}),xd=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:mr.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:mr.md}});function ov(e){if(!Number.isFinite(e))return 6;return Math.max(1,Math.floor(e))}function Ci(e,t){let r=(e??"").split("").slice(0,t);if(r.length<t)return r.concat(Array(t-r.length).fill(""));return r}var Ld=tv(({className:e,length:t=6,value:r,onChange:o,onComplete:i,size:a=mr.md,status:s=bo.default,disabled:m=!1,autoFocus:d=!1,mask:l=!1,groupSize:y,separator:u,separatorChar:T="—",placeholder:v="•",inputMode:p="numeric",pattern:R="[0-9]*",...H},c)=>{let f=b(a),g=ov(t),P=rv([]),[F,z]=yd(null),[W,w]=yd(()=>Ci(r,g));gd(()=>{if(r!==void 0){w(Ci(r,g));return}w((h)=>Ci(h.join(""),g))},[r,g]),gd(()=>{if(d)P.current[0]?.focus()},[d]);let S=bd(()=>{if(typeof y==="number"&&Number.isFinite(y)){let h=Math.floor(y);if(h<=0)return g;return Math.min(g,Math.max(1,h))}if(typeof u==="number"&&Number.isFinite(u)){let h=Math.floor(u);if(h<=0)return g;return Math.min(g,Math.max(1,h))}if(u)return Math.max(1,Math.floor(g/2));return g},[y,g,u]),K=bd(()=>{let h=[];for(let x=0;x<g;x+=S){let C=Math.min(x+S,g),X=[];for(let Q=x;Q<C;Q+=1)X.push(Q);h.push(X)}return h},[S,g]),$=ar((h)=>{let x=P.current[h];if(!x)return;x.focus(),x.select()},[]),j=ar((h)=>{w(h);let x=h.join("");if(o?.(x),h.every((C)=>C!=="")&&x.length===g)i?.(x)},[o,i,g]),ie=ar((h,x)=>{if(m)return;let X=(p==="numeric"?x.replace(/\D/g,""):x).slice(-1),Q=[...W];if(Q[h]=X,j(Q),X&&h<g-1)$(h+1)},[W,m,j,$,p,g]),Y=ar((h,x)=>{if(m)return;if(x.key==="Backspace"){if(x.preventDefault(),W[h]){let C=[...W];C[h]="",j(C);return}if(h>0){let C=[...W];C[h-1]="",j(C),$(h-1)}return}if(x.key==="Delete"){if(x.preventDefault(),W[h]){let C=[...W];C[h]="",j(C)}return}if(x.key==="ArrowLeft"){if(x.preventDefault(),h>0)$(h-1);return}if(x.key==="ArrowRight"){if(x.preventDefault(),h<g-1)$(h+1);return}if(x.key==="Home"){x.preventDefault(),$(0);return}if(x.key==="End")x.preventDefault(),$(g-1)},[W,m,j,$,g]),k=ar((h,x)=>{if(x.preventDefault(),m)return;let C=x.clipboardData.getData("text"),Q=(p==="numeric"?C.replace(/\D/g,""):C.replace(/\s/g,"")).split("");if(Q.length===0)return;let Fe=[...W];for(let pe=0;pe<Q.length;pe+=1){let vr=h+pe;if(vr>=g)break;Fe[vr]=Q[pe]??""}j(Fe);let te=Math.min(g-1,h+Q.length-1);if(te<g-1){$(te+1);return}P.current[te]?.blur()},[W,m,j,$,p,g]),V=ar((h,x)=>{z(h),x.target.select()},[]),L=ar(()=>{z(null)},[]),M=u!==void 0,A=T.length>0&&u!==!1&&(M||K.length>1);return sr("div",{ref:c,className:n(vd({size:f}),e),role:"group","aria-label":"One-time password input",...H,children:K.map((h,x)=>sr(ev,{children:[sr("div",{"data-gs-otp-group":"true",className:n(Td({size:f,status:s})),children:h.map((C,X)=>{let Q=W[C]??"",Fe=F===C,te=go.middle;if(h.length===1)te=go.single;else if(X===0)te=go.first;else if(X===h.length-1)te=go.last;return sr("div",{"data-gs-otp-slot":"true","data-disabled":m,className:n(hd({size:f,filled:Boolean(Q),focused:Fe,status:s,disabled:m,position:te})),children:[sr("input",{ref:(pe)=>{P.current[C]=pe},type:l?"password":"text",inputMode:p,pattern:R,maxLength:1,value:Q,placeholder:"",disabled:m,"aria-invalid":s===bo.error,"aria-label":`Digit ${C+1} of ${g}`,autoComplete:"one-time-code",onChange:(pe)=>ie(C,pe.target.value),onKeyDown:(pe)=>Y(C,pe),onPaste:(pe)=>k(C,pe),onFocus:(pe)=>V(C,pe),onBlur:L,className:n(Pd({size:f,status:s,filled:Boolean(Q)}))},void 0,!1,void 0,this),!Q&&sr("div",{"data-gs-otp-placeholder":"true","aria-hidden":"true",className:n(xd({size:f,focused:Fe})),children:v},void 0,!1,void 0,this)]},`slot-${C}`,!0,void 0,this)})},void 0,!1,void 0,this),A&&x<K.length-1&&sr("span",{"data-gs-otp-separator":"true",className:n(Rd({size:f})),children:T},void 0,!1,void 0,this)]},`group-${h[0]}-${h[h.length-1]}`,!0,void 0,this))},void 0,!1,void 0,this)});Ld.displayName="OTPInput";import{createContext as gv,createElement as Fd,useCallback as it,useContext as bv,useEffect as yv,useMemo as vv,useRef as Sd,useState as Tv}from"react";import*as me from"@radix-ui/react-dialog";import{cva as Nd}from"class-variance-authority";import{X as nv}from"lucide-react";import{createContext as iv,forwardRef as nn,useCallback as av,useContext as sv,useEffect as mv,useState as Md}from"react";import{jsxDEV as _e,Fragment as fv}from"react/jsx-dev-runtime";var Ge={top:$r.top,right:$r.right,bottom:$r.bottom,left:$r.left},ne={sm:_.sm,md:_.md,lg:_.lg,xl:_.xl,full:"full"},lv=160,dv={[Ge.top]:"gs-sheet-content gs-sheet-content-top",[Ge.right]:"gs-sheet-content gs-sheet-content-right",[Ge.bottom]:"gs-sheet-content gs-sheet-content-bottom",[Ge.left]:"gs-sheet-content gs-sheet-content-left"},uv={[Ge.right]:{[ne.sm]:"sm:max-w-sm",[ne.md]:"sm:max-w-md",[ne.lg]:"sm:max-w-lg",[ne.xl]:"sm:max-w-xl",[ne.full]:"sm:max-w-full"},[Ge.left]:{[ne.sm]:"sm:max-w-sm",[ne.md]:"sm:max-w-md",[ne.lg]:"sm:max-w-lg",[ne.xl]:"sm:max-w-xl",[ne.full]:"sm:max-w-full"},[Ge.top]:{[ne.sm]:"sm:max-h-[30vh]",[ne.md]:"sm:max-h-[50vh]",[ne.lg]:"sm:max-h-[70vh]",[ne.xl]:"sm:max-h-[85vh]",[ne.full]:"sm:max-h-full"},[Ge.bottom]:{[ne.sm]:"sm:max-h-[30vh]",[ne.md]:"sm:max-h-[50vh]",[ne.lg]:"sm:max-h-[70vh]",[ne.xl]:"sm:max-h-[85vh]",[ne.full]:"sm:max-h-full"}},Hd=Nd(n("gs-sheet-overlay",wt)),zd=Nd("fixed z-50 flex flex-col gap-4 border border-border bg-background p-6 shadow-[var(--shadow-xl)]",{variants:{side:{[Ge.top]:"inset-x-0 top-0 border-b",[Ge.bottom]:"inset-x-0 bottom-0 border-t",[Ge.left]:"inset-y-0 left-0 h-full w-3/4 border-r",[Ge.right]:"inset-y-0 right-0 h-full w-3/4 border-l"}},defaultVariants:{side:Ge.right}}),Cd=iv(!1),wi=({children:e,open:t,defaultOpen:r=!1,onOpenChange:o,...i})=>{let[a,s]=Md(r),m=t!==void 0,d=m?t:a,l=av((y)=>{if(!m)s(y);o?.(y)},[m,o]);return _e(Cd.Provider,{value:d,children:_e(me.Root,{open:d,onOpenChange:l,...i,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},pv=me.Trigger,cv=me.Close,wd=me.Portal,ki=nn(({className:e,...t},r)=>_e(me.Overlay,{className:n(Hd(),e),...t,ref:r},void 0,!1,void 0,this));ki.displayName=me.Overlay.displayName;var an=nn(({side:e=Ge.right,size:t=ne.md,showClose:r=!0,showOverlay:o=!0,portal:i=de,portalContainer:a,forceMount:s=!1,className:m,children:d,...l},y)=>{let u=sv(Cd),[T,v]=Md(s||u),p=b(t)??ne.md,R=dv[e],H=uv[e][p];if(mv(()=>{if(s||u){v(!0);return}let g=setTimeout(()=>{v(!1)},lv);return()=>{clearTimeout(g)}},[s,u]),!(s||u||T))return null;let f=_e(fv,{children:[o?_e(ki,{forceMount:!0},void 0,!1,void 0,this):null,_e(me.Content,{ref:y,forceMount:!0,className:n(zd({side:e}),R,H,m),...l,children:[d,r&&_e(me.Close,{className:Go,children:[_e(nv,{className:"size-4"},void 0,!1,void 0,this),_e("span",{className:"sr-only",children:"Close"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);if(!i)return f;return _e(wd,{forceMount:!0,container:a??void 0,children:f},void 0,!1,void 0,this)});an.displayName=me.Content.displayName;var kd=({className:e,...t})=>_e("div",{className:n("flex flex-col space-y-2 text-center sm:text-left",e),...t},void 0,!1,void 0,this);kd.displayName="SheetHeader";var Bd=({className:e,...t})=>_e("div",{className:n("flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2.5",e),...t},void 0,!1,void 0,this);Bd.displayName="SheetFooter";var Ad=nn(({className:e,...t},r)=>_e(me.Title,{ref:r,className:n("font-semibold text-foreground text-lg",e),...t},void 0,!1,void 0,this));Ad.displayName=me.Title.displayName;var Id=nn(({className:e,...t},r)=>_e(me.Description,{ref:r,className:n("text-muted-foreground text-sm",e),...t},void 0,!1,void 0,this));Id.displayName=me.Description.displayName;import{jsxDEV as Xr}from"react/jsx-dev-runtime";var _d=gv(null),Gd=250;function Od({children:e,removeDelay:t=Gd}){let[r,o]=Tv([]),i=Sd(0),a=Sd(new Map),s=it((c)=>{let f=a.current.get(c);if(f===void 0)return;window.clearTimeout(f),a.current.delete(c)},[]),m=it((c)=>{s(c),o((f)=>f.filter((g)=>g.id!==c))},[s]),d=it((c)=>{s(c);let f=window.setTimeout(()=>{m(c)},Math.max(0,t));a.current.set(c,f)},[s,t,m]),l=it((c)=>{o((f)=>f.map((g)=>g.id===c?{...g,open:!1}:g)),d(c)},[d]),y=it(()=>{o((c)=>{for(let f of c)d(f.id);return c.map((f)=>({...f,open:!1}))})},[d]),u=it(()=>{return i.current+=1,`overlay-${i.current}`},[]),T=it((c,f)=>{let g=u();s(g);let P={id:g,kind:"dialog",render:c,open:!0,options:f};return o((F)=>[...F,P]),{id:g,close:()=>l(g)}},[s,l,u]),v=it((c,f)=>{let g=u();s(g);let P={id:g,kind:"sheet",render:c,open:!0,options:f};return o((F)=>[...F,P]),{id:g,close:()=>l(g)}},[s,l,u]),p=it((c,f,g)=>{return T((P)=>Fd(c,{...f,close:P}),g)},[T]),R=it((c,f,g)=>{return v((P)=>Fd(c,{...f,close:P}),g)},[v]);yv(()=>{return()=>{for(let c of a.current.values())window.clearTimeout(c);a.current.clear()}},[]);let H=vv(()=>({dialog:p,sheet:R,close:l,closeAll:y}),[y,l,p,R]);return Xr(_d.Provider,{value:H,children:[e,r.map((c)=>Xr(hv,{entry:c,onClose:l},c.id,!1,void 0,this))]},void 0,!0,void 0,this)}Od.displayName="OverlayProvider";function hv({entry:e,onClose:t}){let r=it(()=>t(e.id),[e.id,t]);if(e.kind==="dialog")return Xr(so,{open:e.open,onOpenChange:(o)=>!o&&r(),children:Xr(Eo,{...e.options,children:e.render(r)},void 0,!1,void 0,this)},void 0,!1,void 0,this);return Xr(wi,{open:e.open,onOpenChange:(o)=>!o&&r(),children:Xr(an,{...e.options,children:e.render(r)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function Pv(){let e=bv(_d);if(!e)throw Error("useOverlay must be used within an OverlayProvider");return e}import{cva as yo}from"class-variance-authority";import{ChevronLeft as xv,ChevronRight as Rv,MoreHorizontal as Lv}from"lucide-react";import{createContext as Nv,forwardRef as vo,useContext as sn}from"react";import{jsxDEV as Oe}from"react/jsx-dev-runtime";var Je={sm:"sm",md:"md",lg:"lg"},To=Nv(Je.md),Wd=yo("mx-auto flex w-full justify-center"),Ud=yo("flex flex-row items-center gap-1"),Kd=yo(""),mn=yo("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:cursor-not-allowed disabled:border-transparent disabled:bg-muted/40 disabled:text-muted-foreground/70 hover:bg-accent hover:text-accent-foreground",{variants:{isActive:{true:"border border-border bg-background shadow-[var(--shadow-sm)]",false:""},size:{[Je.sm]:"h-7 w-7 text-xs [&_svg]:size-3.5",[Je.md]:"h-9 w-9 text-sm [&_svg]:size-4",[Je.lg]:"h-10 w-10 text-sm [&_svg]:size-5"}},defaultVariants:{isActive:!1,size:Je.md}}),$d=yo("flex items-center justify-center",{variants:{size:{[Je.sm]:"h-7 w-7 [&_svg]:size-3.5",[Je.md]:"h-9 w-9 [&_svg]:size-4",[Je.lg]:"h-10 w-10 [&_svg]:size-5"}},defaultVariants:{size:Je.md}}),Xd=({className:e,size:t=Je.md,...r})=>{let o=b(t)??Je.md;return Oe(To.Provider,{value:o,children:Oe("nav",{"aria-label":"pagination",className:n(Wd(),e),...r},void 0,!1,void 0,this)},void 0,!1,void 0,this)};Xd.displayName="Pagination";var Yd=vo(({className:e,...t},r)=>Oe("ul",{ref:r,className:n(Ud(),e),...t},void 0,!1,void 0,this));Yd.displayName="PaginationContent";var qd=vo(({className:e,...t},r)=>Oe("li",{ref:r,className:n(Kd(),e),...t},void 0,!1,void 0,this));qd.displayName="PaginationItem";var Qd=vo(({className:e,isActive:t,...r},o)=>{let i=sn(To);return Oe("button",{ref:o,type:"button","aria-current":t?"page":void 0,className:n(mn({isActive:t,size:i}),e),...r},void 0,!1,void 0,this)});Qd.displayName="PaginationLink";var Jd=vo(({className:e,...t},r)=>{let o=sn(To);return Oe("button",{ref:r,type:"button","aria-label":"Go to previous page",className:n(mn({size:o}),"w-auto gap-1 pr-3 pl-2.5",e),...t,children:[Oe(xv,{},void 0,!1,void 0,this),Oe("span",{children:"Previous"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Jd.displayName="PaginationPrevious";var Zd=vo(({className:e,...t},r)=>{let o=sn(To);return Oe("button",{ref:r,type:"button","aria-label":"Go to next page",className:n(mn({size:o}),"w-auto gap-1 pr-2.5 pl-3",e),...t,children:[Oe("span",{children:"Next"},void 0,!1,void 0,this),Oe(Rv,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});Zd.displayName="PaginationNext";var Vd=({className:e,...t})=>{let r=sn(To);return Oe("span",{"aria-hidden":!0,className:n($d({size:r}),e),...t,children:[Oe(Lv,{},void 0,!1,void 0,this),Oe("span",{className:"sr-only",children:"More pages"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};Vd.displayName="PaginationEllipsis";import*as xo from"@radix-ui/react-progress";import{cva as Ed}from"class-variance-authority";import{forwardRef as Mv,useEffect as Hv,useRef as zv}from"react";import{jsxDEV as ln}from"react/jsx-dev-runtime";var ho={sm:"sm",md:"md",lg:"lg",xl:"xl"},Po={default:"default",success:"success",warning:"warning",error:"error"},Dd=Ed("relative w-full overflow-hidden rounded-full bg-muted",{variants:{size:{[ho.sm]:"h-2",[ho.md]:"h-2.5",[ho.lg]:"h-3",[ho.xl]:"h-3.5"}},defaultVariants:{size:ho.md}}),jd=Ed("h-full w-full flex-1 rounded-full transition-transform duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-productive)]",{variants:{variant:{[Po.default]:"bg-primary",[Po.success]:"bg-success",[Po.warning]:"bg-warning",[Po.error]:"bg-destructive"}},defaultVariants:{variant:Po.default}});function Cv(e){if(typeof e!=="number"||Number.isNaN(e))return 0;return Math.max(0,Math.min(100,e))}var eu=Mv(({className:e,value:t,size:r,variant:o,showValue:i,...a},s)=>{let m=b(r),d=zv(null),l=Cv(t);return Hv(()=>{let y=d.current;if(!y)return;y.style.setProperty("--gs-progress-value",`${l}%`)},[l]),ln("div",{className:"flex w-full items-center gap-2",children:[ln(xo.Root,{ref:s,className:n(Dd({size:m}),e),...a,children:ln(xo.Indicator,{ref:d,className:n(jd({variant:o}),"[transform:translateX(calc(-100%+var(--gs-progress-value,0%)))]")},void 0,!1,void 0,this)},void 0,!1,void 0,this),i&&ln("span",{className:"font-medium text-muted-foreground text-sm tabular-nums",children:[l,"%"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});eu.displayName=xo.Root.displayName;import*as qr from"@radix-ui/react-radio-group";import{cva as tu}from"class-variance-authority";import{forwardRef as ru}from"react";import{jsxDEV as dn}from"react/jsx-dev-runtime";var at={sm:"sm",md:"md",lg:"lg",xl:"xl"},Yr={default:"default",error:"error",success:"success"},ou=tu("grid gap-2"),nu=tu("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:{[at.sm]:"h-4 w-4",[at.md]:"h-5 w-5",[at.lg]:"h-6 w-6",[at.xl]:"h-7 w-7"},status:{[Yr.default]:"enabled:hover:border-primary/70",[Yr.error]:"border-destructive enabled:hover:border-destructive/70 focus-visible:ring-destructive data-[state=checked]:border-destructive data-[state=checked]:text-destructive",[Yr.success]:"border-success enabled:hover:border-success/70 focus-visible:ring-success data-[state=checked]:border-success data-[state=checked]:text-success"}},defaultVariants:{size:at.md,status:Yr.default}}),wv={[at.sm]:"h-2 w-2",[at.md]:"h-2.5 w-2.5",[at.lg]:"h-3 w-3",[at.xl]:"h-3.5 w-3.5"},iu=ru(({className:e,...t},r)=>dn(qr.Root,{ref:r,className:n(ou(),e),...t},void 0,!1,void 0,this));iu.displayName="RadioGroup";var au=ru(({className:e,size:t=at.md,status:r=Yr.default,...o},i)=>{let a=b(t);return dn(qr.Item,{ref:i,className:n(nu({size:a,status:r}),e),...o,children:dn(qr.Indicator,{className:"flex items-center justify-center",children:dn("span",{className:n("block rounded-full bg-current transition-transform duration-150",wv[a])},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});au.displayName="RadioGroupItem";import{cva as pn}from"class-variance-authority";import{forwardRef as Ai,useCallback as Ro,useEffect as du,useRef as uu,useState as su}from"react";import{jsxDEV as un}from"react/jsx-dev-runtime";var kv=10,Bv=90,Bi=50,pu=pn("flex h-full w-full",{variants:{direction:{horizontal:"flex-row",vertical:"flex-col"}},defaultVariants:{direction:"horizontal"}}),cu=pn("relative basis-[var(--gs-panel-basis,50%)] overflow-hidden grow-0 shrink-0"),fu=pn("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}}),gu=pn("z-10 flex items-center justify-center rounded-sm bg-border",{variants:{direction:{horizontal:"h-6 w-1",vertical:"h-1 w-6"}},defaultVariants:{direction:"horizontal"}});function bu(e){return Math.max(kv,Math.min(Bv,e))}function yu(e){return e.dataset.direction==="vertical"?"vertical":"horizontal"}function Av(e,t){let r=Array.from(e.children),o=r.indexOf(t),i;for(let s=o-1;s>=0;s-=1){let m=r[s];if(m instanceof HTMLElement&&m.matches("[data-panel]")){i=m;break}}let a;for(let s=o+1;s<r.length;s+=1){let m=r[s];if(m instanceof HTMLElement&&m.matches("[data-panel]")){a=m;break}}return{prevPanel:i,nextPanel:a}}function mu(e){if(!e)return null;let t=e.closest("[data-panel-group]");if(!(t instanceof HTMLElement))return null;let{prevPanel:r,nextPanel:o}=Av(t,e);if(!(r&&o))return null;return{group:t,direction:yu(t),prevPanel:r,nextPanel:o}}function Iv(e){if("touches"in e){let t=e.touches[0];if(!t)return null;return{x:t.clientX,y:t.clientY}}return{x:e.clientX,y:e.clientY}}function lu(e,t,r){let o=bu(r);e.style.setProperty("--gs-panel-basis",`${o}%`),t.style.setProperty("--gs-panel-basis",`${100-o}%`)}function Fv(e){let t=e.style.getPropertyValue("--gs-panel-basis").trim();if(t.endsWith("%"))return Number.parseFloat(t)||Bi;let r=e.dataset.defaultSize;if(r)return Number.parseFloat(r)||Bi;return Bi}function Sv(e,t,r){if(t==="horizontal"){if(e==="ArrowLeft")return-r;if(e==="ArrowRight")return r;return 0}if(e==="ArrowUp")return-r;if(e==="ArrowDown")return r;return 0}var vu=Ai(({className:e,direction:t="horizontal",children:r,...o},i)=>un("div",{ref:i,"data-panel-group":"","data-direction":t,className:n(pu({direction:t}),e),...o,children:r},void 0,!1,void 0,this));vu.displayName="ResizablePanelGroup";var Tu=Ai(({className:e,defaultSize:t=50,children:r,...o},i)=>{let a=uu(null),s=bu(t);du(()=>{let d=a.current;if(!d)return;d.style.setProperty("--gs-panel-basis",`${s}%`)},[s]);let m=Ro((d)=>{if(a.current=d,typeof i==="function")i(d);else if(i)i.current=d},[i]);return un("div",{ref:m,"data-panel":"","data-default-size":s,className:n(cu(),e),...o,children:r},void 0,!1,void 0,this)});Tu.displayName="ResizablePanel";var hu=Ai(({className:e,withHandle:t=!1,disabled:r=!1,...o},i)=>{let[a,s]=su(!1),[m,d]=su("horizontal"),l=uu(null);du(()=>{let p=l.current;if(!p)return;let R=p.closest("[data-panel-group]");if(!(R instanceof HTMLElement))return;let H=()=>d(yu(R));H();let c=new MutationObserver(H);return c.observe(R,{attributes:!0,attributeFilter:["data-direction"]}),()=>c.disconnect()},[]);let y=Ro(()=>{if(r)return;s(!0);let p=(H)=>{let c=Iv(H);if(!c)return;let f=mu(l.current);if(!f)return;let g=f.group.getBoundingClientRect(),P=f.direction==="horizontal"?g.width:g.height;if(P<=0)return;let z=(f.direction==="horizontal"?c.x-g.left:c.y-g.top)/P*100;lu(f.prevPanel,f.nextPanel,z)},R=()=>{s(!1),document.removeEventListener("mousemove",p),document.removeEventListener("mouseup",R),document.removeEventListener("touchmove",p),document.removeEventListener("touchend",R)};document.addEventListener("mousemove",p),document.addEventListener("mouseup",R),document.addEventListener("touchmove",p),document.addEventListener("touchend",R)},[r]),u=Ro((p)=>{p.preventDefault(),y()},[y]),T=Ro((p)=>{if(p.touches.length===0)return;y()},[y]),v=Ro((p)=>{if(r)return;let R=mu(l.current??p.currentTarget);if(!R)return;let H=p.shiftKey?10:1,c=Sv(p.key,R.direction,H);if(c===0)return;p.preventDefault();let f=Fv(R.prevPanel);lu(R.prevPanel,R.nextPanel,f+c)},[r]);return un("div",{ref:(p)=>{if(l.current=p,typeof i==="function")i(p);else if(i)i.current=p},role:"separator","aria-orientation":m,"aria-valuemin":10,"aria-valuemax":90,"aria-valuenow":50,tabIndex:r?-1:0,"data-panel-resize-handle":"","data-dragging":a,onMouseDown:u,onTouchStart:T,onKeyDown:v,className:n(fu({direction:m,withHandle:t}),a&&"bg-primary",r&&"pointer-events-none cursor-not-allowed bg-muted/40 text-muted-foreground/70",e),...o,children:t&&un("div",{className:n(gu({direction:m}))},void 0,!1,void 0,this)},void 0,!1,void 0,this)});hu.displayName="ResizableHandle";import*as pt from"@radix-ui/react-scroll-area";import{cva as Ii}from"class-variance-authority";import{forwardRef as Pu}from"react";import{jsxDEV as Qr}from"react/jsx-dev-runtime";var xu=Ii("relative flex flex-col overflow-hidden"),Ru=Ii("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"}}),Lu=Ii("relative flex-1 rounded-full bg-border"),Nu=Pu(({className:e,children:t,...r},o)=>Qr(pt.Root,{ref:o,className:n(xu(),e),...r,children:[Qr(pt.Viewport,{className:"min-h-0 w-full flex-1 rounded-[inherit]",children:t},void 0,!1,void 0,this),Qr(Fi,{},void 0,!1,void 0,this),Qr(pt.Corner,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this));Nu.displayName="ScrollArea";var Fi=Pu(({className:e,orientation:t="vertical",...r},o)=>Qr(pt.ScrollAreaScrollbar,{ref:o,orientation:t,className:n(Ru({orientation:t}),e),...r,children:Qr(pt.ScrollAreaThumb,{className:n(Lu())},void 0,!1,void 0,this)},void 0,!1,void 0,this));Fi.displayName="ScrollBar";import{cva as Si}from"class-variance-authority";import{createContext as Wv,forwardRef as _i,useCallback as Uv,useContext as Cu,useLayoutEffect as Kv,useRef as $v,useState as zu}from"react";import{useCallback as Mu,useSyncExternalStore as _v}from"react";var Gv=()=>!1,Ov=()=>{return};function cn(e){let t=Mu((o)=>{if(typeof window>"u")return Ov;let i=window.matchMedia(e);return i.addEventListener("change",o),()=>i.removeEventListener("change",o)},[e]),r=Mu(()=>{if(typeof window>"u")return!1;return window.matchMedia(e).matches},[e]);return _v(t,r,Gv)}var Hu="(prefers-reduced-motion: reduce)";function Lo(){return cn(Hu)}import{jsxDEV as lr}from"react/jsx-dev-runtime";var Te={sm:"sm",md:"md",lg:"lg"},wu=Si("relative inline-flex items-center rounded-[var(--radius)] border border-border bg-muted/50 p-1 text-muted-foreground [--gs-segment-indicator-x:0px] [--gs-segment-indicator-y:0px] [--gs-segment-indicator-width:0px] [--gs-segment-indicator-height:0px]",{variants:{size:{[Te.sm]:"h-8 gap-0.5",[Te.md]:"h-10 gap-0.5",[Te.lg]:"h-11 gap-1"}},defaultVariants:{size:Te.md}}),ku=Si(["relative z-10 inline-flex items-center justify-center rounded-[calc(var(--radius)-2px)]","cursor-pointer select-none outline-none","transition-[color,background-color,box-shadow] duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]","focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:text-muted-foreground/40","leading-none"],{variants:{size:{[Te.sm]:"size-6",[Te.md]:"size-8",[Te.lg]:"size-9"},active:{true:"text-foreground",false:"text-muted-foreground hover:text-foreground/70"}},defaultVariants:{size:Te.md,active:!1}}),Bu=Si(["relative z-10 inline-flex items-center justify-center gap-1.5 rounded-[calc(var(--radius)-2px)]","cursor-pointer select-none whitespace-nowrap font-medium leading-none outline-none","transition-[color,background-color,box-shadow] duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]","focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:text-muted-foreground/40"],{variants:{size:{[Te.sm]:"h-6 px-2.5 text-xs",[Te.md]:"h-8 px-3 text-sm",[Te.lg]:"h-9 px-4 text-sm"},active:{true:"text-foreground",false:"text-muted-foreground hover:text-foreground/70"}},defaultVariants:{size:Te.md,active:!1}}),Au={[Te.sm]:"size-3",[Te.md]:"size-3.5",[Te.lg]:"size-4"};function Xv(e){return e.querySelector("button[data-state='active']")??null}function Yv(e,t){let r=e.getBoundingClientRect(),o=t.getBoundingClientRect();return{x:o.left-r.left-e.clientLeft+e.scrollLeft,y:o.top-r.top-e.clientTop+e.scrollTop,width:o.width,height:o.height}}var qv=(e)=>{return},Gi=Wv({activeValue:"",onSelect:qv,size:Te.md,disabled:!1}),Iu=_i(({className:e,value:t,defaultValue:r,onValueChange:o,size:i,disabled:a=!1,children:s,...m},d)=>{let l=b(i),[y,u]=zu(r??""),[T,v]=zu(!1),p=$v(null),R=Lt(d,p),H=Lo(),c=t!==void 0?t:y,f=Uv((g)=>{if(a)return;if(t===void 0)u(g);o?.(g)},[a,o,t]);return Kv(()=>{if(!(p.current instanceof HTMLDivElement))return;let g=p.current,P=0,F=null,z=typeof ResizeObserver<"u"?new ResizeObserver(()=>{cancelAnimationFrame(P),P=requestAnimationFrame(w)}):null,W=typeof MutationObserver<"u"?new MutationObserver(()=>{cancelAnimationFrame(P),P=requestAnimationFrame(w)}):null;function w(){let S=Xv(g);if(!S){v(!1);return}let K=Yv(g,S);if(g.style.setProperty("--gs-segment-indicator-x",`${K.x}px`),g.style.setProperty("--gs-segment-indicator-y",`${K.y}px`),g.style.setProperty("--gs-segment-indicator-width",`${Math.round(K.width)}px`),g.style.setProperty("--gs-segment-indicator-height",`${Math.round(K.height)}px`),v(!0),z&&F!==S){if(F)z.unobserve(F);F=S,z.observe(S)}}return z?.observe(g),W?.observe(g,{subtree:!0,attributes:!0,attributeFilter:["data-state","aria-checked","class"]}),window.addEventListener("resize",w),P=requestAnimationFrame(w),()=>{if(cancelAnimationFrame(P),window.removeEventListener("resize",w),W?.disconnect(),z){if(F)z.unobserve(F);z.unobserve(g),z.disconnect()}}},[]),lr(Gi.Provider,{value:{activeValue:c,onSelect:f,size:l,disabled:a},children:lr("div",{ref:R,role:"radiogroup",className:n(wu({size:l}),a&&"pointer-events-none cursor-not-allowed border-transparent bg-muted/40 text-muted-foreground/70",e),...m,children:[lr("span",{"aria-hidden":!0,"data-slot":"indicator",className:n("pointer-events-none absolute top-0 left-0 z-0 rounded-[calc(var(--radius)-2px)] border border-border/50 bg-background","[transform:translate3d(var(--gs-segment-indicator-x),var(--gs-segment-indicator-y),0px)]","h-[var(--gs-segment-indicator-height)] w-[var(--gs-segment-indicator-width)]","transition-[transform,width,height,opacity] duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-emphasized)]",H&&"transition-none",!T&&"opacity-0")},void 0,!1,void 0,this),s]},void 0,!0,void 0,this)},void 0,!1,void 0,this)});Iu.displayName="SegmentedControl";var Fu=_i(({className:e,value:t,icon:r,disabled:o=!1,...i},a)=>{let{activeValue:s,onSelect:m,size:d,disabled:l}=Cu(Gi),y=s===t,u=o||l;return lr("button",{ref:a,type:"button",role:"radio","aria-checked":y,"aria-disabled":u||void 0,"data-state":y?"active":"inactive","data-value":t,disabled:u,onClick:()=>m(t),className:n(ku({size:d,active:y}),e),...i,children:lr("span",{className:n(Au[d??Te.md],"[&>svg]:size-full"),children:r},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Fu.displayName="SegmentedControlItem";var Su=_i(({className:e,value:t,icon:r,disabled:o=!1,children:i,...a},s)=>{let{activeValue:m,onSelect:d,size:l,disabled:y}=Cu(Gi),u=m===t,T=o||y;return lr("button",{ref:s,type:"button",role:"radio","aria-checked":u,"aria-disabled":T||void 0,"data-state":u?"active":"inactive","data-value":t,disabled:T,onClick:()=>d(t),className:n(Bu({size:l,active:u}),e),...a,children:[r&&lr("span",{className:n(Au[l??Te.md],"[&>svg]:size-full"),children:r},void 0,!1,void 0,this),i]},void 0,!0,void 0,this)});Su.displayName="SegmentedControlLabelItem";var Qv=Te;import*as Ut from"@radix-ui/react-popover";import{cva as Gu}from"class-variance-authority";import{Check as Jv,ChevronDown as Zv,X as Vv}from"lucide-react";import{Children as Ev,createContext as Dv,forwardRef as zo,isValidElement as Wi,useCallback as Mo,useContext as Ou,useEffect as fn,useId as _u,useMemo as jv,useRef as Wu,useState as No}from"react";import{jsxDEV as se,Fragment as sT}from"react/jsx-dev-runtime";var re={sm:"sm",md:"md",lg:"lg",xl:"xl"},Jr={default:"default",error:"error",success:"success"},Ho={trigger:"trigger",auto:"auto"},eT={start:"start",center:"center",end:"end"},Uu=Gu(["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:{[re.sm]:"h-8 px-2.5 text-xs",[re.md]:"h-10 px-3.5",[re.lg]:"h-11 px-4.5 text-sm",[re.xl]:"h-12 px-4 text-base"},status:{[Jr.default]:"focus-visible:ring-primary data-[state=open]:ring-primary",[Jr.error]:"border-destructive focus-visible:ring-destructive data-[state=open]:ring-destructive",[Jr.success]:"border-success focus-visible:ring-success data-[state=open]:ring-success"}},defaultVariants:{size:re.md,status:Jr.default}}),Ku=Gu(["max-h-96 overflow-y-auto overflow-x-hidden"].join(" "),{variants:{widthMode:{[Ho.trigger]:"w-[var(--radix-popover-trigger-width)]",[Ho.auto]:"w-max min-w-0"},size:{[re.sm]:"text-xs",[re.md]:"text-sm",[re.lg]:"text-sm",[re.xl]:"text-base"}},defaultVariants:{widthMode:Ho.auto,size:re.md}}),tT={[re.sm]:"min-h-7.5 py-1.5 px-2.5 pr-3 text-xs",[re.md]:"min-h-9 py-2 px-3 pr-4.5 text-sm",[re.lg]:"min-h-10 py-2.5 px-3.5 pr-5.5 text-sm",[re.xl]:"min-h-11 py-3 px-4 pr-6 text-base"},rT={[re.sm]:"px-2 py-1 text-xs",[re.md]:"px-2 py-1.5 text-sm",[re.lg]:"px-2.5 py-1.5 text-sm",[re.xl]:"px-3 py-2 text-base"},gn={[re.sm]:"size-3.5",[re.md]:"size-4",[re.lg]:"size-4",[re.xl]:"size-4.5"};function oT(e){if(!Wi(e))return!1;let t=e.type;if(typeof t==="string")return!1;return("displayName"in t?t.displayName:void 0)==="SelectItem"}function Oi(e,t){if(e===null||e===void 0||typeof e==="boolean")return;if(Array.isArray(e)){for(let o of e)Oi(o,t);return}if(!Wi(e))return;if(oT(e)){let o=typeof e.props.value==="string"?e.props.value:"";if(o.length>0){let i=typeof e.props.label==="string"?e.props.label:bn(e.props.children).trim();if(i.length>0)t.set(o,i)}}let r=e.props.children;if(r!==void 0)Oi(r,t)}function bn(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)=>bn(t)).join("");if(Wi(e))return bn(e.props.children);return""}var Ui=Dv(null);function yn(){let e=Ou(Ui);if(!e)throw Error("Select components must be used within Select");return e}function Ki(e){let t=Ou(Ui);if(e)return e;return t?.triggerSize??re.md}var nT=({children:e,value:t,defaultValue:r="",onValueChange:o,open:i,defaultOpen:a=!1,onOpenChange:s,disabled:m=!1})=>{let[d,l]=No(re.md),[y,u]=No(!1),[T,v]=No(r),[p,R]=No(a),[,H]=No(0),c=Wu(new Map),f=jv(()=>{let Y=new Map;return Oi(e,Y),Y},[e]),g=t!==void 0,P=i!==void 0,F=g?t:T,z=P?i:p,W=Mo((Y)=>{if(!g)v(Y);if(o?.(Y),!P)R(!1);s?.(!1)},[g,P,o,s]),w=Mo((Y)=>{if(m)return;if(!P)R(Y);s?.(Y)},[m,P,s]),S=Mo((Y,k)=>{if(c.current.get(Y)!==k)c.current.set(Y,k),H((L)=>L+1)},[]),K=Mo((Y)=>{return c.current.get(Y)??f.get(Y)},[f]),$=_u(),j=_u(),ie={value:F,onValueChange:W,open:z,onOpenChange:w,triggerSize:d,setTriggerSize:l,triggerFullWidth:y,setTriggerFullWidth:u,disabled:m,triggerId:$,contentId:j,registerItem:S,getLabel:K};return se(Ui.Provider,{value:ie,children:se(Ut.Root,{open:z,onOpenChange:w,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)},iT=({children:e,className:t})=>se("div",{role:"group",className:t,children:e},void 0,!1,void 0,this),aT=({placeholder:e})=>{let{value:t,getLabel:r}=yn();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(sT,{children:o??t},void 0,!1,void 0,this)},$u=zo(({className:e,children:t,size:r=re.md,status:o=Jr.default,fullWidth:i=!1,clearable:a=!1,leadingIcon:s,indicatorIcon:m,renderValue:d,placeholder:l,onKeyDown:y,...u},T)=>{let v=yn(),p=b(r)??r,R=v.setTriggerSize,H=v.setTriggerFullWidth;fn(()=>{R(p)},[p,R]),fn(()=>{H(i)},[i,H]);let c=v.value.length>0,f=a&&c&&!v.disabled,g=()=>{v.onValueChange("")},P;if(d)P=c?d(v.value):l?se("span",{className:"text-muted-foreground",children:l},void 0,!1,void 0,this):null;else P=t;let F=(z)=>{if(y?.(z),z.defaultPrevented)return;if(z.key==="ArrowDown"||z.key==="ArrowUp"||z.key==="Enter"||z.key===" "){if(!v.open)z.preventDefault(),v.onOpenChange(!0)}};return se(Ut.Trigger,{asChild:!0,children:se("button",{ref:T,type:"button",role:"combobox","aria-expanded":v.open,"aria-haspopup":"listbox","aria-controls":v.contentId,id:v.triggerId,disabled:v.disabled,"data-state":v.open?"open":"closed","data-placeholder":c?void 0:"",className:n(Uu({size:p,status:o}),i?"w-full":"w-auto",e),onKeyDown:F,...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:P},void 0,!1,void 0,this),se("span",{className:"inline-flex shrink-0 items-center gap-1 text-muted-foreground",children:[f&&se("span",{role:"button",tabIndex:-1,"aria-label":"Clear selection",onPointerDown:(z)=>{z.stopPropagation(),z.preventDefault(),g()},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(Vv,{className:gn[p]},void 0,!1,void 0,this)},void 0,!1,void 0,this),m??se(Zv,{className:n(gn[p],"opacity-60 transition-transform duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-productive)]",v.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)});$u.displayName="SelectTrigger";var Xu=zo(({className:e,children:t,widthMode:r,size:o,align:i="start",side:a="bottom",sideOffset:s=4,portal:m=!0,forceMount:d=!1,onKeyDown:l,...y},u)=>{let T=yn(),v=Ki(o),p=r??Ho.auto,R=Wu(null),H=Lt(u,R),c=Mo((P)=>{let F=R.current;if(!F)return;let z=Array.from(F.querySelectorAll('[role="option"]:not([data-disabled])'));if(z.length===0)return;let W=F.querySelector('[role="option"]:focus'),w=W?z.indexOf(W):-1,S;switch(P){case"first":S=z[0];break;case"last":S=z[z.length-1];break;case"next":S=z[w+1]??z[0];break;case"prev":S=z[w-1]??z[z.length-1];break}S?.focus()},[]),f=(P)=>{if(l?.(P),P.defaultPrevented)return;switch(P.key){case"ArrowDown":P.preventDefault(),c("next");break;case"ArrowUp":P.preventDefault(),c("prev");break;case"Home":P.preventDefault(),c("first");break;case"End":P.preventDefault(),c("last");break;case"Escape":P.preventDefault(),T.onOpenChange(!1);break}};fn(()=>{if(T.open)requestAnimationFrame(()=>c("first"))},[T.open,c]);let g=se(Ut.Content,{ref:H,id:T.contentId,role:"listbox","aria-labelledby":T.triggerId,side:a,align:i,sideOffset:s,forceMount:d?!0:void 0,onKeyDown:f,onOpenAutoFocus:(P)=>P.preventDefault(),className:n(Wr(),Ku({widthMode:p,size:v}),"p-1",e),...y,children:t},void 0,!1,void 0,this);if(m)return se(Ut.Portal,{children:g},void 0,!1,void 0,this);return g});Xu.displayName="SelectContent";var Yu=zo(({className:e,size:t,...r},o)=>{let i=Ki(t);return se("div",{ref:o,className:n("font-semibold text-foreground",rT[i],e),...r},void 0,!1,void 0,this)});Yu.displayName="SelectLabel";var qu=zo(({className:e,children:t,value:r,label:o,size:i,disabled:a=!1,...s},m)=>{let d=yn(),l=Ki(i),y=d.value===r,u=d.registerItem,T=bn(Ev.toArray(t)).trim();fn(()=>{let R=o??(T.length>0?T:r);u(r,R)},[T,r,o,u]);let v=()=>{if(!a)d.onValueChange(r)},p=(R)=>{if(R.key==="Enter"||R.key===" ")R.preventDefault(),v()};return se("div",{ref:m,role:"option",tabIndex:a?void 0:-1,"aria-selected":y,"aria-disabled":a||void 0,"data-selected":y?"":void 0,"data-disabled":a?"":void 0,"data-value":r,className:n("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:border-transparent data-disabled:bg-muted/40 data-disabled:text-muted-foreground/70",tT[l],y&&"bg-accent/50",e),onClick:v,onKeyDown:p,...s,children:[se("span",{className:n("flex shrink-0 items-center justify-center",gn[l]),children:y&&se(Jv,{className:gn[l]},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)});qu.displayName="SelectItem";var Qu=zo(({className:e,...t},r)=>se("div",{ref:r,className:n("-mx-1 my-1 h-px bg-border",e),...t},void 0,!1,void 0,this));Qu.displayName="SelectSeparator";import{cva as mT}from"class-variance-authority";import{forwardRef as lT}from"react";import{jsxDEV as dT}from"react/jsx-dev-runtime";var Co={horizontal:"horizontal",vertical:"vertical"},Ju=mT("shrink-0 bg-border",{variants:{orientation:{[Co.horizontal]:"h-px w-full",[Co.vertical]:"h-full w-px"}},defaultVariants:{orientation:Co.horizontal}}),Zu=lT(({className:e,orientation:t=Co.horizontal,decorative:r=!0,...o},i)=>{let a=r?{role:"none"}:{role:"separator","aria-orientation":t};return dT("div",{ref:i,className:n(Ju({orientation:t}),e),...a,...o},void 0,!1,void 0,this)});Zu.displayName="Separator";import{cva as vn}from"class-variance-authority";import{forwardRef as Tn}from"react";import{jsxDEV as hn}from"react/jsx-dev-runtime";var he={sm:"sm",md:"md",lg:"lg"},Vu=vn("animate-pulse rounded-[var(--radius)] bg-muted"),Eu=vn("w-full",{variants:{size:{[he.sm]:"h-3",[he.md]:"h-4",[he.lg]:"h-5"}},defaultVariants:{size:he.md}}),Du=vn("",{variants:{size:{[he.sm]:"h-8 w-8",[he.md]:"h-10 w-10",[he.lg]:"h-12 w-12"}},defaultVariants:{size:he.md}}),ju=vn("",{variants:{size:{[he.sm]:"h-8 w-20",[he.md]:"h-9 w-24",[he.lg]:"h-10 w-28"}},defaultVariants:{size:he.md}}),wo=Tn(({className:e,circle:t=!1,...r},o)=>hn("div",{ref:o,className:n(Vu(),t&&"rounded-full",e),...r},void 0,!1,void 0,this));wo.displayName="Skeleton";var ep=Tn(({className:e,size:t=he.md,...r},o)=>{let i=b(t)??he.md;return hn(wo,{ref:o,className:n(Eu({size:i}),e),...r},void 0,!1,void 0,this)});ep.displayName="SkeletonText";var tp=Tn(({className:e,size:t=he.md,...r},o)=>{let i=b(t)??he.md;return hn(wo,{ref:o,circle:!0,className:n(Du({size:i}),e),...r},void 0,!1,void 0,this)});tp.displayName="SkeletonAvatar";var rp=Tn(({className:e,size:t=he.md,...r},o)=>{let i=b(t)??he.md;return hn(wo,{ref:o,className:n(ju({size:i}),e),...r},void 0,!1,void 0,this)});rp.displayName="SkeletonButton";import*as Kt from"@radix-ui/react-slider";import{cva as xn}from"class-variance-authority";import{forwardRef as uT}from"react";import{jsxDEV as Pn}from"react/jsx-dev-runtime";var Zr={sm:"sm",md:"md",lg:"lg"},op=xn("relative flex w-full touch-none select-none items-center"),np=xn("relative w-full grow overflow-hidden rounded-full bg-secondary"),ip=xn("absolute h-full bg-primary"),ap=xn("gs-interactive block cursor-grab rounded-full border-2 border-primary bg-background ring-offset-background active:cursor-grabbing focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:cursor-not-allowed disabled:border-border disabled:bg-muted/40 disabled:text-muted-foreground/70"),pT={[Zr.sm]:"h-2",[Zr.md]:"h-2.5",[Zr.lg]:"h-3"},cT={[Zr.sm]:"h-4 w-4",[Zr.md]:"h-5 w-5",[Zr.lg]:"h-6 w-6"},sp=uT(({className:e,size:t,...r},o)=>{let i=b(t);return Pn(Kt.Root,{ref:o,className:n(op(),e),...r,children:[Pn(Kt.Track,{"data-slider-track":!0,className:n(np(),pT[i]),children:Pn(Kt.Range,{className:n(ip())},void 0,!1,void 0,this)},void 0,!1,void 0,this),(r.defaultValue??r.value??[0]).map((a,s)=>Pn(Kt.Thumb,{"data-slider-thumb":!0,className:n(ap(),cT[i])},`thumb-${String(s)}`,!1,void 0,this))]},void 0,!0,void 0,this)});sp.displayName="Slider";import{cva as He}from"class-variance-authority";import{forwardRef as fT,useCallback as $i,useEffect as lp,useLayoutEffect as gT,useMemo as Vr,useRef as ct,useState as mp}from"react";import{jsxDEV as U,Fragment as Hp}from"react/jsx-dev-runtime";var bT="(max-width: 639px)",N={sm:"sm",md:"md",lg:"lg",xl:"xl"},Xi={sm:"sm",md:"sm",lg:"md",xl:"md"},Rn={idle:"idle",loading:"loading",error:"error"},dp=He("z-[120] bg-black/40"),up=He(["gs-spotlight-content fixed inset-x-0 top-[15vh] z-[120] w-full mx-auto","rounded-[calc(var(--radius)+6px)] border border-border bg-popover shadow-2xl","overflow-hidden"],{variants:{size:{[N.sm]:"max-w-md",[N.md]:"max-w-xl",[N.lg]:"max-w-2xl",[N.xl]:"max-w-3xl"}},defaultVariants:{size:N.md}}),pp=He(["gs-sheet-content gs-sheet-content-bottom","fixed inset-x-0 bottom-0 z-[120] w-full flex flex-col","rounded-t-2xl border-t border-x border-border bg-popover shadow-2xl","overflow-hidden"]),cp=He("flex items-center border-b border-border",{variants:{size:{[N.sm]:"gap-2 px-3 py-2",[N.md]:"gap-3 px-4 py-3",[N.lg]:"gap-3 px-5 py-3.5",[N.xl]:"gap-4 px-6 py-4"}},defaultVariants:{size:N.md}}),fp=He(["w-full flex-1 bg-transparent text-foreground","placeholder:text-muted-foreground","outline-none border-none"],{variants:{size:{[N.sm]:"text-sm",[N.md]:"text-base",[N.lg]:"text-lg",[N.xl]:"text-xl"}},defaultVariants:{size:N.md}}),gp=He("text-muted-foreground shrink-0",{variants:{size:{[N.sm]:"size-3.5",[N.md]:"size-4",[N.lg]:"size-5",[N.xl]:"size-5"}},defaultVariants:{size:N.md}}),bp=He("overflow-y-auto py-1",{variants:{size:{[N.sm]:"max-h-64",[N.md]:"max-h-80",[N.lg]:"max-h-96",[N.xl]:"max-h-[28rem]"}},defaultVariants:{size:N.md}}),yp=He("font-semibold text-muted-foreground uppercase tracking-wide",{variants:{size:{[N.sm]:"px-2.5 py-1.5 text-[10px]",[N.md]:"px-3 py-2 text-xs",[N.lg]:"px-3.5 py-2 text-xs",[N.xl]:"px-4 py-2.5 text-xs"}},defaultVariants:{size:N.md}}),vp=He(["group flex items-center cursor-pointer rounded-lg","text-foreground","transition-[color,background-color,box-shadow] duration-100","active:scale-[0.98]"],{variants:{size:{[N.sm]:"gap-2 px-2.5 py-1.5 mx-1.5",[N.md]:"gap-3 px-3 py-2 mx-2",[N.lg]:"gap-3 px-3.5 py-2.5 mx-2",[N.xl]:"gap-4 px-4 py-3 mx-2.5"},selected:{true:"bg-primary/10",false:"hover:bg-muted"},disabled:{true:"text-muted-foreground cursor-not-allowed pointer-events-none bg-muted/40",false:""}},defaultVariants:{size:N.md,selected:!1,disabled:!1}}),Tp=He("shrink-0",{variants:{size:{[N.sm]:"size-3.5",[N.md]:"size-4",[N.lg]:"size-5",[N.xl]:"size-5"},selected:{true:"text-primary",false:"text-muted-foreground"}},defaultVariants:{size:N.md,selected:!1}}),hp=He("flex-1 min-w-0"),Pp=He("font-medium truncate",{variants:{size:{[N.sm]:"text-xs",[N.md]:"text-sm",[N.lg]:"text-sm",[N.xl]:"text-base"}},defaultVariants:{size:N.md}}),xp=He("text-muted-foreground truncate",{variants:{size:{[N.sm]:"text-[11px]",[N.md]:"text-xs",[N.lg]:"text-xs",[N.xl]:"text-sm"}},defaultVariants:{size:N.md}}),Rp=He("flex items-center gap-1 text-muted-foreground shrink-0",{variants:{size:{[N.sm]:"text-[10px]",[N.md]:"text-[11px]",[N.lg]:"text-xs",[N.xl]:"text-xs"}},defaultVariants:{size:N.md}}),Ln=He("flex flex-col items-center justify-center text-muted-foreground",{variants:{size:{[N.sm]:"py-6 min-h-20",[N.md]:"py-8 min-h-24",[N.lg]:"py-10 min-h-28",[N.xl]:"py-12 min-h-32"},state:{empty:"text-muted-foreground",loading:"text-muted-foreground",error:"text-destructive"}},defaultVariants:{size:N.md,state:"empty"}}),Nn=He("font-medium",{variants:{size:{[N.sm]:"text-xs",[N.md]:"text-sm",[N.lg]:"text-sm",[N.xl]:"text-base"}},defaultVariants:{size:N.md}}),Lp=He("mt-1",{variants:{size:{[N.sm]:"text-[11px]",[N.md]:"text-xs",[N.lg]:"text-xs",[N.xl]:"text-sm"}},defaultVariants:{size:N.md}}),Np=(e,t)=>{if(!t)return!0;let r=t.toLowerCase();return e.title.toLowerCase().includes(r)||(e.description?.toLowerCase().includes(r)??!1)||(e.keywords?.some((o)=>o.toLowerCase().includes(r))??!1)};function yT(e,t){let r=ct(null),o=ct(null),i=ct(null),a=ct(!0),s=ct(t);return lp(()=>{if(e)a.current=!0},[e]),gT(()=>{let m=r.current,d=o.current,l=i.current;if(!(m&&d&&l))return;let y=d.scrollHeight,u=s.current!==t;if(s.current=t,a.current)m.style.transition="none",m.style.height=`${y}px`,l.style.transition="none",l.style.opacity="1",requestAnimationFrame(()=>{m.style.transition="",l.style.transition="",a.current=!1});else if(u)l.style.transition="none",l.style.opacity="0",m.style.height=`${y}px`,requestAnimationFrame(()=>{l.style.transition="opacity 200ms var(--motion-ease-emphasized)",l.style.opacity="1"});else m.style.height=`${y}px`}),{wrapperRef:r,contentRef:o,viewRef:i}}function vT({action:e,size:t,isActive:r,isDisabled:o,isMac:i,onClick:a,renderItem:s,index:m}){let d=e.shortcut?Mn(e.shortcut,i):[],l=new Map,y=d.map((u)=>{let T=(l.get(u)??0)+1;return l.set(u,T),{token:u,key:`${u}-${T}`}});return U("div",{role:"option","aria-selected":r,"aria-disabled":o,tabIndex:o?-1:0,onClick:a,onKeyDown:(u)=>{if(u.key==="Enter"||u.key===" ")u.preventDefault(),a()},className:n(vp({size:t,selected:r,disabled:o})),children:s?s(e,{active:r,disabled:o,index:m}):U(Hp,{children:[e.icon&&U("span",{className:n(Tp({size:t,selected:r})),children:e.icon},void 0,!1,void 0,this),U("div",{className:n(hp()),children:[U("div",{className:n(Pp({size:t})),children:e.title},void 0,!1,void 0,this),e.description&&U("div",{className:n(xp({size:t})),children:e.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y.length>0&&U("div",{className:n(Rp({size:t})),children:y.map((u)=>U("kbd",{className:n(Gr({size:Xi[t]})),children:u.token},u.key,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Mp=fT(({className:e,open:t,onOpenChange:r,actions:o,onActionSelect:i,value:a,defaultValue:s="",onValueChange:m,placeholder:d="Search commands, pages, or actions...",size:l=N.md,status:y=Rn.idle,statusMessage:u,emptyText:T="No command found for this query.",hotkey:v,portal:p=!0,filterFn:R,renderItem:H,footer:c,...f},g)=>{let P=ct(null),F=ct(null),[z,W]=mp(s),[w,S]=mp(0),{isMac:K}=fo(),$=cn(bT),j=Vr(()=>v&&v.length>0?v.join("+"):null,[v]),ie=Vr(()=>v?Mn(v,K):[],[v,K]),Y=Vr(()=>{let I=new Map;return ie.map((ee)=>{let le=(I.get(ee)??0)+1;return I.set(ee,le),{token:ee,key:`${ee}-${le}`}})},[ie]);ao(j??"",()=>r(!t),{enabled:!!j});let k=a!==void 0?a:z,V=R??Np,L=Vr(()=>o.filter((I)=>V(I,k)),[o,k,V]),M=Vr(()=>L.flatMap((I,ee)=>I.disabled?[]:[ee]),[L]),A=Vr(()=>{let I=new Map,ee=new Map,le=0;for(let $e of L){let Vn=$e.group??"";if(!I.has(Vn))I.set(Vn,[]);I.get(Vn)?.push($e),ee.set($e,le++)}return{groups:I,indexMap:ee}},[L]),h=ct(!1),x=ct(t);if(x.current!==t)h.current=!t,x.current=t;let C=ct({query:k,status:y,statusMessage:u??null,filtered:L,grouped:A,activeIndex:w,emptyText:T});if(!h.current)C.current={query:k,status:y,statusMessage:u??null,filtered:L,grouped:A,activeIndex:w,emptyText:T};let X=C.current,Q=X.status===Rn.loading?"loading":X.status===Rn.error?"error":X.filtered.length===0?"empty":"results",{wrapperRef:Fe,contentRef:te,viewRef:pe}=yT(t,Q);lp(()=>{if(t)S(0)},[t]);let vr=$i((I)=>{W(I.target.value),m?.(I.target.value),S(0)},[m]),q=$i((I)=>{F.current?.querySelectorAll('[role="option"]')[I]?.scrollIntoView({block:"nearest"})},[]),Pe=$i((I)=>{if(I.key==="ArrowDown"||I.key==="ArrowUp"){if(I.preventDefault(),M.length===0)return;let ee=M.indexOf(w),le=I.key==="ArrowDown"?M[(ee+1)%M.length]:M[(ee-1+M.length)%M.length];if(le!==void 0)S(le),q(le);return}if(I.key==="Enter"){I.preventDefault();let ee=L[w];if(ee&&!ee.disabled)i(ee,w)}},[w,M,L,i,q]),ce=U(Hp,{children:[U(mo,{"data-testid":"spotlight-overlay",className:n(dp()),onClick:()=>r(!1)},void 0,!1,void 0,this),U(hi,{...f,ref:g,className:n($?pp():up({size:l}),e),"aria-label":"Spotlight search","aria-describedby":void 0,onOpenAutoFocus:(I)=>{I.preventDefault(),P.current?.focus()},onCloseAutoFocus:(I)=>I.preventDefault(),onKeyDown:Pe,children:[U(Do,{className:"sr-only",children:"Spotlight search"},void 0,!1,void 0,this),$&&U("div",{className:"flex justify-center pt-2 pb-1",children:U("div",{className:"h-1 w-8 rounded-full bg-muted-foreground/30"},void 0,!1,void 0,this)},void 0,!1,void 0,this),U("div",{className:n(cp({size:l})),children:[U("svg",{className:n(gp({size:l})),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:U("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),U("input",{ref:P,type:"text",value:X.query,onChange:vr,placeholder:d,"aria-label":"Search",className:n(fp({size:l}))},void 0,!1,void 0,this),!$&&(v?U("div",{className:"flex items-center gap-1",children:Y.map((I)=>U("kbd",{className:n(Gr({size:Xi[l]})),children:I.token},I.key,!1,void 0,this))},void 0,!1,void 0,this):U("kbd",{className:n(Gr({size:Xi[l]})),children:"ESC"},void 0,!1,void 0,this))]},void 0,!0,void 0,this),U("div",{ref:Fe,className:"overflow-hidden transition-[height] duration-200 ease-[var(--motion-ease-emphasized)] motion-reduce:transition-none",children:U("div",{ref:te,children:U("div",{ref:pe,children:[Q==="loading"&&U("div",{className:n(Ln({size:l,state:"loading"})),children:[U(zt,{size:"sm",className:"mb-2 text-muted-foreground"},void 0,!1,void 0,this),U("div",{className:n(Nn({size:l})),children:"Searching commands..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q==="error"&&U("div",{className:n(Ln({size:l,state:"error"})),children:[U("div",{className:n(Nn({size:l})),children:"Search failed"},void 0,!1,void 0,this),X.statusMessage&&U("div",{className:n(Lp({size:l})),children:X.statusMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q==="empty"&&U("div",{className:n(Ln({size:l,state:"empty"})),children:U("div",{className:n(Nn({size:l})),children:X.emptyText},void 0,!1,void 0,this)},void 0,!1,void 0,this),Q==="results"&&U("div",{ref:F,role:"listbox","aria-label":"Search results",className:n(bp({size:l}),$&&"max-h-none min-h-0 flex-1"),children:Array.from(X.grouped.groups.entries()).map(([I,ee])=>U("div",{children:[I&&U("div",{className:n(yp({size:l})),children:I},void 0,!1,void 0,this),ee.map((le)=>{let $e=X.grouped.indexMap.get(le)??0;return U(vT,{action:le,size:l,isActive:$e===X.activeIndex,isDisabled:le.disabled??!1,isMac:K,index:$e,onClick:()=>{if(!le.disabled)i(le,$e)},renderItem:H},le.id,!1,void 0,this)})]},I||"__ungrouped__",!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),c&&U("div",{className:"border-border border-t px-3 py-2",children:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);return U(so,{open:t,onOpenChange:r,children:p?U(Vo,{children:ce},void 0,!1,void 0,this):ce},void 0,!1,void 0,this)});Mp.displayName="Spotlight";import{cva as TT}from"class-variance-authority";import{forwardRef as hT}from"react";import{jsxDEV as $t}from"react/jsx-dev-runtime";var Ze={sm:"sm",md:"md",lg:"lg"},dr={up:"up",down:"down",neutral:"neutral"},zp=TT("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:{[Ze.sm]:"gap-1 p-3",[Ze.md]:"gap-1.5 p-4",[Ze.lg]:"gap-2 p-5"}},defaultVariants:{size:Ze.md}}),PT={[Ze.sm]:"text-lg font-semibold",[Ze.md]:"text-2xl font-bold",[Ze.lg]:"text-3xl font-bold"},xT={[Ze.sm]:"text-xs",[Ze.md]:"text-sm",[Ze.lg]:"text-base"},RT={[dr.up]:"text-success",[dr.down]:"text-destructive",[dr.neutral]:"text-muted-foreground"},LT={[dr.up]:"↑",[dr.down]:"↓",[dr.neutral]:"→"},Cp=hT(({className:e,size:t=Ze.md,label:r,value:o,trend:i,trendValue:a,icon:s,...m},d)=>{let l=b(t);return $t("div",{ref:d,className:n(zp({size:l}),e),...m,children:[$t("div",{className:"flex items-center justify-between",children:[$t("span",{className:n("text-muted-foreground",xT[l]),children:r},void 0,!1,void 0,this),s&&$t("span",{className:"text-muted-foreground/70","aria-hidden":"true",children:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$t("div",{className:"flex items-baseline gap-2",children:[$t("span",{className:n("text-foreground tracking-tight",PT[l]),children:o},void 0,!1,void 0,this),i&&a&&$t("span",{className:n("inline-flex items-center gap-0.5 font-medium text-xs",RT[i]),children:[$t("span",{"aria-hidden":"true",children:LT[i]},void 0,!1,void 0,this),a]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)});Cp.displayName="StatCard";import{cva as ur}from"class-variance-authority";import{Check as NT}from"lucide-react";import{forwardRef as pr}from"react";import{jsxDEV as Xt}from"react/jsx-dev-runtime";var wp=ur("flex w-full",{variants:{orientation:{horizontal:"flex-row items-start",vertical:"flex-col"}},defaultVariants:{orientation:"horizontal"}}),kp=ur("flex",{variants:{orientation:{horizontal:"flex-1 flex-col items-center",vertical:"gap-4 flex-row"}},defaultVariants:{orientation:"horizontal"}}),Bp=ur(["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}}),Ap=ur("rounded-full transition-[background-color,opacity] duration-300 ease-out",{variants:{orientation:{horizontal:"mx-2 mt-5 h-1 flex-1",vertical:"ml-5 min-h-10 w-1"},status:{incomplete:"bg-border/60",complete:"bg-gradient-to-r from-primary to-success"},size:{sm:"opacity-80",md:"",lg:"opacity-95",xl:"opacity-100"},animated:{true:"",false:""}},compoundVariants:[{status:"complete",orientation:"horizontal",animated:!0,className:"gs-connector-fill-animated"},{status:"complete",orientation:"vertical",animated:!0,className:"gs-connector-fill-vertical-animated"}],defaultVariants:{orientation:"horizontal",status:"incomplete",size:"md",animated:!0}}),Ip=ur("flex flex-col",{variants:{orientation:{horizontal:"mt-3 items-center text-center",vertical:"flex-1 pb-8 last:pb-0"}},defaultVariants:{orientation:"horizontal"}}),Fp=ur("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"}}),Sp=ur("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 _p=pr(({className:e,orientation:t="horizontal",activeStep:r,...o},i)=>{return Xt("div",{ref:i,role:"group","aria-label":"Progress steps",className:n(wp({orientation:t}),e),"data-orientation":t,"data-active-step":r,...o},void 0,!1,void 0,this)});_p.displayName="Stepper";var Gp=pr(({className:e,orientation:t="horizontal",isLast:r,isCurrent:o,...i},a)=>{return Xt("div",{ref:a,className:n(kp({orientation:t}),e),"data-last":r,"aria-current":o?"step":void 0,...i},void 0,!1,void 0,this)});Gp.displayName="Step";var Op=pr(({className:e,status:t="incomplete",size:r="md",icon:o,step:i,children:a,animated:s=!0,...m},d)=>{let l=b(r);return Xt("div",{ref:d,className:n(Bp({status:t,size:l,animated:s}),e),"data-status":t,"aria-hidden":"true",...m,children:t==="complete"?o||Xt(NT,{className:"size-4",strokeWidth:3},void 0,!1,void 0,this):a||i},void 0,!1,void 0,this)});Op.displayName="StepIndicator";var Wp=pr(({className:e,orientation:t="horizontal",status:r="incomplete",size:o="md",animated:i=!0,...a},s)=>{let m=b(o);return Xt("div",{ref:s,className:n(Ap({orientation:t,status:r,size:m,animated:i}),e),"data-status":r,...a},void 0,!1,void 0,this)});Wp.displayName="StepConnector";var Up=pr(({className:e,orientation:t="horizontal",...r},o)=>{return Xt("div",{ref:o,className:n(Ip({orientation:t}),e),...r},void 0,!1,void 0,this)});Up.displayName="StepContent";var Kp=pr(({className:e,status:t="incomplete",size:r="md",...o},i)=>{let a=b(r);return Xt("h4",{ref:i,className:n(Fp({status:t,size:a}),e),...o},void 0,!1,void 0,this)});Kp.displayName="StepTitle";var $p=pr(({className:e,size:t="md",...r},o)=>{let i=b(t);return Xt("p",{ref:o,className:n(Sp({size:i}),e),...r},void 0,!1,void 0,this)});$p.displayName="StepDescription";import*as Hn from"@radix-ui/react-switch";import{cva as MT}from"class-variance-authority";import{forwardRef as HT}from"react";import{jsxDEV as Xp}from"react/jsx-dev-runtime";var Ae={sm:"sm",md:"md",lg:"lg",xl:"xl"},Er={default:"default",error:"error",success:"success"},Yp=MT("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:{[Ae.sm]:"h-4.5 w-8",[Ae.md]:"h-5 w-9",[Ae.lg]:"h-6 w-11",[Ae.xl]:"h-7 w-[3.25rem]"},status:{[Er.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",[Er.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",[Er.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:Ae.md,status:Er.default}}),zT={[Ae.sm]:"h-3.5 w-3.5",[Ae.md]:"h-4 w-4",[Ae.lg]:"h-5 w-5",[Ae.xl]:"h-6 w-6"},CT={[Ae.sm]:"data-[state=checked]:translate-x-3.5",[Ae.md]:"data-[state=checked]:translate-x-4",[Ae.lg]:"data-[state=checked]:translate-x-5",[Ae.xl]:"data-[state=checked]:translate-x-6"},qp=HT(({className:e,size:t=Ae.md,status:r=Er.default,checked:o,disabled:i,...a},s)=>{let m=b(t);return Xp(Hn.Root,{ref:s,checked:o,disabled:i,className:n(Yp({size:m,status:r}),e),...a,children:Xp(Hn.Thumb,{className:n("pointer-events-none block rounded-full bg-background shadow-sm transition-transform duration-150",zT[m],CT[m])},void 0,!1,void 0,this)},void 0,!1,void 0,this)});qp.displayName="Switch";import{cva as Nt}from"class-variance-authority";import{createContext as wT,forwardRef as Yt,useContext as Qp}from"react";import{jsxDEV as ft}from"react/jsx-dev-runtime";var Ce={sm:"sm",md:"md",lg:"lg"},Yi=wT(Ce.md),Jp=Nt("relative w-full overflow-auto rounded-[var(--radius)] border border-border bg-card shadow-[var(--shadow-sm)]"),Zp=Nt("w-full caption-bottom",{variants:{size:{[Ce.sm]:"text-xs",[Ce.md]:"text-sm",[Ce.lg]:"text-sm"}},defaultVariants:{size:Ce.md}}),Vp=Nt("sticky top-0 z-[1] [&_tr]:border-b [&_tr]:border-border [&_th]:bg-muted"),Ep=Nt("[&_tr:last-child]:border-0"),Dp=Nt("border-t border-border bg-muted font-medium text-muted-foreground [&>tr]:last:border-b-0"),jp=Nt("gs-interactive border-b border-border hover:bg-muted/50 data-[state=selected]:bg-primary/10"),ec=Nt("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=Nt("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}}),rc=Nt("mt-4 text-sm text-muted-foreground"),oc=Yt(({className:e,containerClassName:t,size:r=Ce.md,...o},i)=>{let a=b(r)??Ce.md;return ft(Yi.Provider,{value:a,children:ft("div",{className:n(Jp(),t),children:ft("table",{ref:i,className:n(Zp({size:a}),e),...o},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)});oc.displayName="Table";var nc=Yt(({className:e,...t},r)=>ft("thead",{ref:r,className:n(Vp(),e),...t},void 0,!1,void 0,this));nc.displayName="TableHeader";var ic=Yt(({className:e,...t},r)=>ft("tbody",{ref:r,className:n(Ep(),e),...t},void 0,!1,void 0,this));ic.displayName="TableBody";var ac=Yt(({className:e,...t},r)=>ft("tfoot",{ref:r,className:n(Dp(),e),...t},void 0,!1,void 0,this));ac.displayName="TableFooter";var sc=Yt(({className:e,...t},r)=>ft("tr",{ref:r,className:n(jp(),e),...t},void 0,!1,void 0,this));sc.displayName="TableRow";var mc=Yt(({className:e,size:t,...r},o)=>{let i=Qp(Yi);return ft("th",{ref:o,className:n(ec({size:t??i}),e),...r},void 0,!1,void 0,this)});mc.displayName="TableHead";var lc=Yt(({className:e,size:t,...r},o)=>{let i=Qp(Yi);return ft("td",{ref:o,className:n(tc({size:t??i}),e),...r},void 0,!1,void 0,this)});lc.displayName="TableCell";var dc=Yt(({className:e,...t},r)=>ft("caption",{ref:r,className:n(rc(),e),...t},void 0,!1,void 0,this));dc.displayName="TableCaption";import*as st from"@radix-ui/react-tabs";import{cva as qi}from"class-variance-authority";import{forwardRef as Qi,useLayoutEffect as kT,useRef as BT,useState as AT}from"react";import{jsxDEV as zn}from"react/jsx-dev-runtime";var qt={sm:"sm",md:"md",lg:"lg"},uc=qi("relative inline-flex items-center justify-center rounded-[var(--radius)] border border-border bg-muted/50 p-1 text-muted-foreground [--gs-tabs-indicator-x:0px] [--gs-tabs-indicator-y:0px] [--gs-tabs-indicator-width:0px] [--gs-tabs-indicator-height:0px]",{variants:{size:{[qt.sm]:"h-9 gap-0.5",[qt.md]:"h-11 gap-1",[qt.lg]:"h-12 gap-1"}},defaultVariants:{size:qt.md}}),pc=qi("gs-interactive relative z-10 inline-flex items-center justify-center whitespace-nowrap rounded-[calc(var(--radius)-2px)] font-semibold leading-none text-muted-foreground outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:cursor-not-allowed disabled:text-muted-foreground/50 data-[state=active]:text-foreground data-[state=inactive]:hover:text-foreground/80",{variants:{size:{[qt.sm]:"h-7 px-2.5 text-xs",[qt.md]:"h-9 px-3 text-sm",[qt.lg]:"h-10 px-4 text-sm"}},defaultVariants:{size:qt.md}}),cc=qi("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),IT=st.Root;function FT(e){return e.querySelector("button[role='tab'][data-state='active']")??null}function ST(e,t){let r=e.getBoundingClientRect(),o=t.getBoundingClientRect();return{x:o.left-r.left-e.clientLeft+e.scrollLeft,y:o.top-r.top-e.clientTop+e.scrollTop,width:o.width,height:o.height}}var fc=Qi(({className:e,size:t,children:r,...o},i)=>{let a=b(t),[s,m]=AT(!1),d=BT(null),l=Lt(i,d),y=Lo();return kT(()=>{if(!(d.current instanceof HTMLDivElement))return;let u=d.current,T=0,v=null,p=typeof ResizeObserver<"u"?new ResizeObserver(()=>{cancelAnimationFrame(T),T=requestAnimationFrame(H)}):null,R=typeof MutationObserver<"u"?new MutationObserver(()=>{cancelAnimationFrame(T),T=requestAnimationFrame(H)}):null;function H(){let c=FT(u);if(!c){m(!1);return}let f=ST(u,c);if(u.style.setProperty("--gs-tabs-indicator-x",`${f.x}px`),u.style.setProperty("--gs-tabs-indicator-y",`${f.y}px`),u.style.setProperty("--gs-tabs-indicator-width",`${Math.round(f.width)}px`),u.style.setProperty("--gs-tabs-indicator-height",`${Math.round(f.height)}px`),m(!0),p&&v!==c){if(v)p.unobserve(v);v=c,p.observe(c)}}return p?.observe(u),R?.observe(u,{subtree:!0,attributes:!0,attributeFilter:["data-state","aria-selected","class"]}),window.addEventListener("resize",H),T=requestAnimationFrame(H),()=>{if(cancelAnimationFrame(T),window.removeEventListener("resize",H),R?.disconnect(),p){if(v)p.unobserve(v);p.unobserve(u),p.disconnect()}}},[]),zn(st.List,{ref:l,className:n(uc({size:a}),e),...o,children:[zn("span",{"aria-hidden":!0,"data-slot":"indicator",className:n("pointer-events-none absolute top-0 left-0 z-0 rounded-[calc(var(--radius)-2px)] border border-border/50 bg-background","[transform:translate3d(var(--gs-tabs-indicator-x),var(--gs-tabs-indicator-y),0px)]","h-[var(--gs-tabs-indicator-height)] w-[var(--gs-tabs-indicator-width)]","transition-[transform,width,height,opacity] duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-emphasized)]",y&&"transition-none",!s&&"opacity-0")},void 0,!1,void 0,this),r]},void 0,!0,void 0,this)});fc.displayName=st.List.displayName;var gc=Qi(({className:e,size:t,...r},o)=>{let i=b(t);return zn(st.Trigger,{ref:o,className:n(pc({size:i}),e),...r},void 0,!1,void 0,this)});gc.displayName=st.Trigger.displayName;var bc=Qi(({className:e,...t},r)=>zn(st.Content,{ref:r,className:n(cc(),e),...t},void 0,!1,void 0,this));bc.displayName=st.Content.displayName;import{cva as _T}from"class-variance-authority";import{forwardRef as GT}from"react";import{jsxDEV as OT}from"react/jsx-dev-runtime";var ko={default:"default",error:"error",success:"success"},Dr={sm:"sm",md:"md",lg:"lg",xl:"xl"},yc=_T("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:{[ko.default]:"focus-visible:ring-primary",[ko.error]:"border-destructive focus-visible:ring-destructive",[ko.success]:"border-success focus-visible:ring-success"},size:{[Dr.sm]:"min-h-[64px] px-2 py-1.5 text-xs",[Dr.md]:"min-h-[96px] px-3 py-2",[Dr.lg]:"min-h-[112px] px-4 py-2.5",[Dr.xl]:"min-h-[128px] px-4 py-3 text-base"}},defaultVariants:{status:ko.default,size:Dr.md}}),vc=GT(({className:e,status:t=ko.default,size:r=Dr.md,fullWidth:o=!1,noResize:i=!1,disabled:a,...s},m)=>{let d=b(r);return OT("textarea",{ref:m,className:n(yc({status:t,size:d}),a&&"bg-muted",o&&"w-full",i&&"resize-none",e),disabled:a,...s},void 0,!1,void 0,this)});vc.displayName="Textarea";import{cva as Qt}from"class-variance-authority";import{forwardRef as Jt}from"react";import{jsxDEV as gt}from"react/jsx-dev-runtime";var Tc=Qt("relative flex flex-col"),hc=Qt(["group relative flex pb-8 last:pb-0","transition-opacity duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)]"],{variants:{align:{left:"flex-row gap-4",right:"flex-row-reverse gap-4"},animated:{true:"gs-timeline-item-animated",false:""}},defaultVariants:{align:"left",animated:!0}}),Pc=Qt(["absolute bottom-0 w-0.5 rounded-full","transition-[background-color,opacity,height] duration-[var(--motion-duration-medium)] ease-[var(--motion-ease-standard)]"],{variants:{variant:{default:"bg-border",success:"bg-gradient-to-b from-success/50 to-success/30",warning:"bg-gradient-to-b from-warning/50 to-warning/30",error:"bg-gradient-to-b from-destructive/50 to-destructive/30",info:"bg-gradient-to-b from-info/50 to-info/30",primary:"bg-gradient-to-b from-primary/50 to-primary/30"},size:{sm:"left-[7px] top-5",md:"left-[15px] top-9",lg:"left-[21px] top-12",xl:"left-[25px] top-14"},animated:{true:"gs-timeline-connector-animated",false:""}},defaultVariants:{variant:"default",size:"md",animated:!0}}),xc=Qt(["relative z-10 flex shrink-0 items-center justify-center rounded-full border-2","transition-[color,background-color,border-color,box-shadow] duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]","[&>svg]:shrink-0"],{variants:{variant:{default:["border-border/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-4 w-4 [&>svg]:size-2",md:"h-8 w-8 [&>svg]:size-4",lg:"h-11 w-11 [&>svg]:size-5",xl:"h-14 w-14 [&>svg]:size-6"},pulse:{true:"gs-timeline-dot-pulse-enabled gs-timeline-dot-pulse",false:""},animated:{true:"gs-timeline-dot-animated",false:""}},defaultVariants:{variant:"default",size:"md",pulse:!1,animated:!0}}),Rc=Qt("flex min-w-0 flex-col gap-1 pt-0.5 transition-opacity duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]"),Lc=Qt("font-semibold leading-tight text-foreground transition-colors duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]",{variants:{size:{sm:"text-[11px]",md:"text-base",lg:"text-lg",xl:"text-xl"}},defaultVariants:{size:"md"}}),Nc=Qt("text-muted-foreground transition-colors duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]",{variants:{size:{sm:"text-[11px]",md:"text-sm",lg:"text-base",xl:"text-lg"}},defaultVariants:{size:"md"}}),Mc=Qt("font-medium text-muted-foreground/70 transition-colors duration-[var(--motion-duration-fast)] ease-[var(--motion-ease-standard)]",{variants:{size:{sm:"text-[10px]",md:"text-sm",lg:"text-base",xl:"text-base"}},defaultVariants:{size:"md"}});var Hc=Jt(({className:e,...t},r)=>{return gt("div",{ref:r,role:"list","aria-label":"Timeline events",className:n(Tc(),e),...t},void 0,!1,void 0,this)});Hc.displayName="Timeline";var zc=Jt(({className:e,align:t,isLast:r,animated:o=!0,...i},a)=>{return gt("div",{ref:a,role:"listitem",className:n(hc({align:t,animated:o}),e),"data-last":r,...i},void 0,!1,void 0,this)});zc.displayName="TimelineItem";var Cc=Jt(({className:e,variant:t,size:r,animated:o=!0,...i},a)=>{let s=b(r);return gt("div",{ref:a,className:n(Pc({variant:t,size:s,animated:o}),e),...i},void 0,!1,void 0,this)});Cc.displayName="TimelineConnector";var wc=Jt(({className:e,variant:t,size:r,icon:o,children:i,pulse:a=!1,animated:s=!0,...m},d)=>{let l=b(r);return gt("div",{ref:d,className:n(xc({variant:t,size:l,pulse:a,animated:s}),e),"aria-hidden":"true",...m,children:o||i||gt(WT,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)});wc.displayName="TimelineDot";var kc=Jt(({className:e,...t},r)=>{return gt("div",{ref:r,className:n(Rc(),e),...t},void 0,!1,void 0,this)});kc.displayName="TimelineContent";var Bc=Jt(({className:e,size:t,...r},o)=>{let i=b(t);return gt("h4",{ref:o,className:n(Lc({size:i}),e),...r},void 0,!1,void 0,this)});Bc.displayName="TimelineTitle";var Ac=Jt(({className:e,size:t,...r},o)=>{let i=b(t);return gt("p",{ref:o,className:n(Nc({size:i}),e),...r},void 0,!1,void 0,this)});Ac.displayName="TimelineDescription";var Ic=Jt(({className:e,size:t,...r},o)=>{let i=b(t);return gt("time",{ref:o,className:n(Mc({size:i}),e),...r},void 0,!1,void 0,this)});Ic.displayName="TimelineTime";function WT(){return gt("span",{className:"size-2 rounded-full bg-current"},void 0,!1,void 0,this)}import{cva as Fc}from"class-variance-authority";var jr={default:"default",success:"success",info:"info",warning:"warning",error:"error"},Ve={sm:"sm",md:"md",lg:"lg"},Ji=Fc("pointer-events-auto relative flex w-full items-center overflow-hidden rounded-[var(--radius)] border shadow-[var(--shadow-md)]",{variants:{variant:{[jr.default]:"border-border bg-card text-card-foreground",[jr.success]:"border-success/30 bg-card text-card-foreground",[jr.info]:"border-info/30 bg-card text-card-foreground",[jr.warning]:"border-warning/30 bg-card text-card-foreground",[jr.error]:"border-destructive/30 bg-card text-card-foreground"},size:{[Ve.sm]:"gap-2 p-3",[Ve.md]:"gap-3 p-4",[Ve.lg]:"gap-3.5 p-5"}},defaultVariants:{variant:jr.default,size:Ve.md}}),Zi=Fc("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:cursor-not-allowed disabled:border-transparent disabled:bg-muted/40 disabled:text-muted-foreground/70",{variants:{size:{[Ve.sm]:"h-6 px-2 text-xs",[Ve.md]:"h-7 px-2.5 text-xs",[Ve.lg]:"h-8 px-3 text-sm"}},defaultVariants:{size:Ve.md}});import{AlertTriangle as ZT,CheckCircle2 as VT,Info as Wc,X as ET,XCircle as DT}from"lucide-react";import{forwardRef as jT,useCallback as kn,useEffect as eo,useRef as ea,useState as ta}from"react";import{useSyncExternalStore as UT}from"react";var KT=5,_c=5000,$T=500,Vi=0;function XT(){return Vi=(Vi+1)%Number.MAX_SAFE_INTEGER,`toast-${Vi}-${Date.now()}`}var Ei=new Set,Ee=[],fr=new Map,Ao=new Map,Io=!1,cr=new Map;function Cn(){for(let e of Ei)e()}function Sc(){return Ee}function YT(e){return Ei.add(e),()=>{Ei.delete(e)}}function Di(e,t){if(Io){cr.set(e,t);return}clearTimeout(fr.get(e));let r=Date.now(),o=setTimeout(()=>{fr.delete(e),cr.delete(e),wn(e)},t);fr.set(e,o),cr.set(e,t);let i=setInterval(()=>{let a=Date.now()-r,s=t-a;if(s<=0)clearInterval(i),cr.delete(e);else cr.set(e,s)},100)}function qT(e){clearTimeout(Ao.get(e));let t=setTimeout(()=>{Ee=Ee.filter((r)=>r.id!==e),Ao.delete(e),Cn()},$T);Ao.set(e,t)}function Bo(e){let t=e.id??XT(),r=e.duration??_c;if(Ee.find((a)=>a.id===t))return Ee=Ee.map((a)=>a.id===t?{...a,...e,id:t,open:!0,createdAt:Date.now()}:a),clearTimeout(Ao.get(t)),Ao.delete(t),Di(t,r),Cn(),t;return Ee=[{...e,id:t,variant:e.variant??"default",dismissible:e.dismissible??!0,open:!0,createdAt:Date.now()},...Ee].slice(0,KT),Di(t,r),Cn(),t}function wn(e){clearTimeout(fr.get(e)),fr.delete(e),cr.delete(e),Ee=Ee.map((t)=>t.id===e?{...t,open:!1}:t),Cn(),qT(e)}function Gc(){for(let e of Ee)wn(e.id)}function QT(){if(Io)return;Io=!0;for(let[e,t]of fr)clearTimeout(t),fr.delete(e)}function JT(){if(!Io)return;Io=!1;for(let e of Ee)if(e.open){let t=cr.get(e.id)??_c;Di(e.id,t)}}var Oc=Object.assign((e)=>Bo(e),{success:(e,t)=>Bo({...t,variant:"success",title:e}),info:(e,t)=>Bo({...t,variant:"info",title:e}),warning:(e,t)=>Bo({...t,variant:"warning",title:e}),error:(e,t)=>Bo({...t,variant:"error",title:e}),dismiss:wn,dismissAll:Gc});function ji(){return{toasts:UT(YT,Sc,Sc),toast:Oc,dismiss:wn,dismissAll:Gc,pauseAll:QT,resumeAll:JT}}import{jsxDEV as Ie}from"react/jsx-dev-runtime";var Kc=10,Uc=0.05,eh=200,th={"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"},rh={success:(e)=>Ie(VT,{className:n("mt-0.5 shrink-0 text-success",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),info:(e)=>Ie(Wc,{className:n("mt-0.5 shrink-0 text-info",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),warning:(e)=>Ie(ZT,{className:n("mt-0.5 shrink-0 text-warning",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),error:(e)=>Ie(DT,{className:n("mt-0.5 shrink-0 text-destructive",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this),default:(e)=>Ie(Wc,{className:n("mt-0.5 shrink-0 text-muted-foreground",e==="sm"?"size-4":"size-[18px]")},void 0,!1,void 0,this)};function oh(e,t,r,o,i){let a=e<o,s=r?i:e*Kc,m=r?1:a?1-e*Uc:1-o*Uc,d=a||r?1:0,l=t-e;return{offset:s,scale:m,opacity:d,zIndex:l}}var $c=jT(({position:e="bottom-right",gap:t=12,visibleCount:r=3,size:o=Ve.md,className:i,...a},s)=>{let{toasts:m,dismiss:d,pauseAll:l,resumeAll:y}=ji(),u=b(o)??Ve.md,[T,v]=ta(!1),[p,R]=ta({}),H=ea(null),c=ea(void 0),f=e.startsWith("bottom"),g=kn((k)=>{if(H.current=k,typeof s==="function")s(k);else if(s)s.current=k},[s]),P=kn(()=>{clearTimeout(c.current),v(!0),l()},[l]),F=kn(()=>{clearTimeout(c.current),c.current=setTimeout(()=>{v(!1),y()},eh)},[y]);eo(()=>{return()=>clearTimeout(c.current)},[]);let z=kn((k,V)=>{R((L)=>{if(L[k]===V)return L;return{...L,[k]:V}})},[]);eo(()=>{let k=new Set(m.map((V)=>V.id));R((V)=>{let L=!1,M={};for(let[A,h]of Object.entries(V))if(k.has(A))M[A]=h;else L=!0;return L?M:V})},[m]);let W=m.filter((k)=>k.open),w=new Map,S=0;for(let[k,V]of W.entries()){let L=p[V.id]??0;w.set(V.id,oh(k,W.length,T,r,S)),S+=L+t}let K=W[0],j=(K?p[K.id]??0:0)+Math.min(W.length-1,r-1)*Kc,ie=S-(W.length>0?t:0),Y=T?ie:j;if(eo(()=>{let k=H.current;if(!k)return;k.style.setProperty("--gs-toast-stack-height",`${Math.max(Y,0)}px`)},[Y]),m.length===0)return null;return Ie("ol",{ref:g,role:"region","aria-label":"Notifications",tabIndex:-1,onMouseEnter:P,onMouseLeave:F,className:n("pointer-events-auto fixed z-[100] h-[var(--gs-toast-stack-height,0px)] w-full max-w-[400px] outline-none transition-[height] duration-[var(--motion-duration-spring)] ease-[var(--motion-ease-emphasized)]",th[e],i),...a,children:m.map((k)=>{let V=!k.open,L=w.get(k.id);return Ie(nh,{toast:k,layout:L??{offset:0,scale:1,opacity:0,zIndex:0},isClosed:V,isBottom:f,size:u,onDismiss:d,onMeasure:z},k.id,!1,void 0,this)})},void 0,!1,void 0,this)});$c.displayName="Toaster";function nh({toast:e,layout:t,isClosed:r,isBottom:o,size:i,onDismiss:a,onMeasure:s}){let m=ea(null),[d,l]=ta(!1);eo(()=>{let p=requestAnimationFrame(()=>l(!0));return()=>cancelAnimationFrame(p)},[]),eo(()=>{let p=m.current;if(!p)return;let R=new ResizeObserver((H)=>{for(let c of H){let f=c.borderBoxSize?.[0];if(f)s(e.id,f.blockSize)}});return R.observe(p),()=>R.disconnect()},[e.id,s]);let y=o?"bottom-0 left-0 right-0 origin-bottom":"top-0 left-0 right-0 origin-top",u,T,v;if(!d)u=`translateY(${o?80:-80}px) scale(0.9)`,T=0,v="false";else if(r)u=`translateY(${o?80:-80}px) scale(0.95)`,T=0,v="false";else u=`translateY(${o?-t.offset:t.offset}px) scale(${t.scale})`,T=t.opacity,v="true";return eo(()=>{let p=m.current;if(!p)return;p.style.setProperty("--gs-toast-transform",u),p.style.setProperty("--gs-toast-opacity",`${T}`),p.style.setProperty("--gs-toast-z-index",`${t.zIndex}`)},[t.zIndex,T,u]),Ie("li",{ref:m,"data-state":e.open?"open":"closed","data-variant":e.variant,"data-interactive":v,className:n("absolute list-none transition-[transform,opacity] duration-[var(--motion-duration-spring)] ease-[var(--motion-ease-emphasized)] [opacity:var(--gs-toast-opacity,0)] [transform:var(--gs-toast-transform)] [z-index:var(--gs-toast-z-index,0)]","data-[interactive=false]:pointer-events-none data-[interactive=true]:pointer-events-auto",y),children:Ie("div",{className:n(Ji({variant:e.variant,size:i}),"w-full"),children:[rh[e.variant]?.(i),Ie("div",{className:"flex-1 space-y-0.5",children:[e.title&&Ie("p",{className:n("font-semibold leading-tight",i==="sm"?"text-xs":"text-sm"),children:e.title},void 0,!1,void 0,this),e.description&&Ie("p",{className:n("text-muted-foreground leading-snug",i==="sm"?"text-xs":"text-sm"),children:e.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),e.action&&Ie("button",{type:"button",className:n(Zi({size:i}),"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&&Ie("button",{type:"button",className:n("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",i==="sm"?"[&>svg]:size-3.5":"[&>svg]:size-4"),onClick:()=>a(e.id),"aria-label":"Dismiss",children:Ie(ET,{},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 Xc from"@radix-ui/react-toggle";import{cva as ih}from"class-variance-authority";import{forwardRef as ah}from"react";import{jsxDEV as sh}from"react/jsx-dev-runtime";var ra={default:"default",outline:"outline"},Bn={sm:"sm",md:"md",lg:"lg"},An=ih("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:{[ra.default]:"bg-transparent disabled:bg-transparent disabled:text-foreground/50",[ra.outline]:"border-input bg-transparent hover:bg-accent hover:text-accent-foreground disabled:bg-transparent disabled:text-foreground/50 disabled:border-border/50"},size:{[Bn.sm]:"h-7 px-1.5 min-w-7 text-xs",[Bn.md]:"h-10 px-3 min-w-10",[Bn.lg]:"h-11 px-5 min-w-11"}},defaultVariants:{variant:ra.default,size:Bn.md}}),Yc=ah(({className:e,variant:t,size:r,...o},i)=>{let a=b(r);return sh(Xc.Root,{ref:i,className:n(An({variant:t,size:a}),e),...o},void 0,!1,void 0,this)});Yc.displayName="Toggle";import*as In from"@radix-ui/react-toggle-group";import{cva as mh}from"class-variance-authority";import{createContext as lh,forwardRef as qc,useContext as dh}from"react";import{jsxDEV as oa}from"react/jsx-dev-runtime";var uh={default:"default",outline:"outline"},ph={sm:"sm",md:"md",lg:"lg"},Qc=mh("flex items-center justify-center gap-1"),Jc=lh({size:ph.md,variant:uh.default}),Zc=qc(({className:e,variant:t,size:r,children:o,...i},a)=>{let s=b(r);return oa(In.Root,{ref:a,className:n(Qc(),e),...i,children:oa(Jc.Provider,{value:{variant:t,size:s},children:o},void 0,!1,void 0,this)},void 0,!1,void 0,this)});Zc.displayName="ToggleGroup";var Vc=qc(({className:e,children:t,variant:r,size:o,...i},a)=>{let s=dh(Jc),m=b(o);return oa(In.Item,{ref:a,className:n(An({variant:r??s.variant,size:m??s.size}),e),...i,children:t},void 0,!1,void 0,this)});Vc.displayName="ToggleGroupItem";import{cva as Ec}from"class-variance-authority";import{forwardRef as Fn}from"react";import{jsxDEV as Sn}from"react/jsx-dev-runtime";var mt={sm:"sm",md:"md",lg:"lg"},Dc=Ec("flex items-center border-b border-border bg-background",{variants:{size:{[mt.sm]:"gap-1.5 px-3 py-1.5",[mt.md]:"gap-2 px-4 py-2",[mt.lg]:"gap-3 px-5 py-2.5"}},defaultVariants:{size:mt.md}}),jc=Fn(({className:e,size:t=mt.md,...r},o)=>{let i=b(t);return Sn("div",{ref:o,role:"toolbar",className:n(Dc({size:i}),e),...r},void 0,!1,void 0,this)});jc.displayName="Toolbar";var ef=Ec("flex items-center",{variants:{size:{[mt.sm]:"gap-1",[mt.md]:"gap-1.5",[mt.lg]:"gap-2"}},defaultVariants:{size:mt.md}}),tf=Fn(({className:e,size:t=mt.md,...r},o)=>{let i=b(t);return Sn("div",{ref:o,role:"group",className:n(ef({size:i}),e),...r},void 0,!1,void 0,this)});tf.displayName="ToolbarGroup";var rf=Fn(({className:e,...t},r)=>{return Sn("div",{ref:r,role:"none",className:n("h-5 w-px shrink-0 bg-border",e),...t},void 0,!1,void 0,this)});rf.displayName="ToolbarSeparator";var of=Fn(({className:e,...t},r)=>{return Sn("div",{ref:r,className:n("flex-1",e),...t},void 0,!1,void 0,this)});of.displayName="ToolbarSpacer";import*as bt from"@radix-ui/react-tooltip";import{cva as ch}from"class-variance-authority";import{createContext as fh,forwardRef as nf,useContext as af}from"react";import{jsxDEV as Fo}from"react/jsx-dev-runtime";var gh=bt.Provider,na=fh(!1),sf=({persistOnClick:e=!1,children:t,...r})=>Fo(na.Provider,{value:e,children:Fo(bt.Root,{...r,children:t},void 0,!1,void 0,this)},void 0,!1,void 0,this);sf.displayName="Tooltip";var mf=nf(({onClick:e,onPointerDown:t,...r},o)=>{let i=af(na);return Fo(bt.Trigger,{ref:o,onClick:i?(a)=>{a.preventDefault(),e?.(a)}:e,onPointerDown:i?(a)=>{a.preventDefault(),t?.(a)}:t,...r},void 0,!1,void 0,this)});mf.displayName="TooltipTrigger";var gr={sm:_.sm,md:_.md,lg:_.lg,xl:_.xl},lf=ch("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:{[gr.sm]:"px-2 py-1 text-xs",[gr.md]:"px-3 py-1.5 text-xs",[gr.lg]:"px-4 py-2 text-sm",[gr.xl]:"px-5 py-2.5 text-sm"}},defaultVariants:{size:gr.md}}),df=nf(({className:e,sideOffset:t=De,onPointerDownOutside:r,size:o=gr.md,portal:i=de,portalContainer:a,...s},m)=>{let d=af(na),l=b(o),y=Fo(bt.Content,{ref:m,sideOffset:t,className:n(lf({size:l}),e),onPointerDownOutside:d?(u)=>{u.preventDefault(),r?.(u)}:r,...s},void 0,!1,void 0,this);if(!i)return y;return Fo(bt.Portal,{container:a??void 0,children:y},void 0,!1,void 0,this)});df.displayName="TooltipContent";import{createContext as bh,useCallback as br,useContext as yh,useEffect as On,useLayoutEffect as vh,useMemo as _n,useRef as Zt,useState as uf}from"react";import{jsxDEV as Th}from"react/jsx-dev-runtime";var pf=typeof window<"u"?vh:On,aa=bh(null);function Gn(e,t){return e.theme===t.theme&&e.colorScheme===t.colorScheme}var yr=({children:e,value:t,initialState:r,onChange:o,onStateChange:i,transformState:a,readState:s,writeState:m,syncWithSystem:d=!0,enableTransition:l=!1,transitionDuration:y,defaultTheme:u,defaultColorScheme:T,themes:v,attribute:p,colorSchemeAttribute:R,darkClassName:H,storage:c})=>{let f=_n(()=>to({defaultTheme:u,defaultColorScheme:T,themes:v,attribute:p,colorSchemeAttribute:R,darkClassName:H,storage:c}),[u,T,v,p,R,H,c]),[g,P]=uf(()=>yt(r,f)),[F,z]=uf($n),w=_n(()=>t?yt(t,f):null,[t,f])??g,S=_n(()=>({...w,resolvedColorScheme:ia(w.colorScheme,F)}),[w,F]),K=t!==void 0,$=Zt(w);$.current=w;let j=Zt(!1),ie=Zt(!1),Y=Zt(!1),k=Zt(w),V=Zt(null),L=Zt(l);L.current=l;let M=Zt(y);M.current=y;let A=br((q)=>{return Un(q)},[]),h=br((q,Pe)=>{Kn(q,Pe)},[]),x=s??A,C=m??h;On(()=>{if(!d||typeof window>"u"||typeof window.matchMedia!=="function")return;let q=window.matchMedia("(prefers-color-scheme: dark)"),Pe=()=>{z(q.matches?vt.dark:vt.light)};return Pe(),q.addEventListener("change",Pe),()=>q.removeEventListener("change",Pe)},[d]),On(()=>{if(K)return;P((q)=>{let Pe=yt(q,f);return Gn(q,Pe)?q:Pe})},[f,K]),pf(()=>{if(K||j.current)return;j.current=!0;let q=x(f);if(!q)return;let Pe=$.current,ce=yt(q,f),I={reason:"hydrate",previousState:Pe},ee=a?yt(a(ce,I),f):ce;if(Gn(Pe,ee))return;V.current=I,P(ee),o?.(ee,I),i?.(ee,I)},[f,K,o,i,x,a]),pf(()=>{if(typeof document>"u")return;let q=!Y.current;if(Y.current=!0,!q&&L.current&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches){let ce=M.current??200,I=document.createElement("style");I.setAttribute("data-gs-theme-transition",""),I.textContent=`*, *::before, *::after { transition: color ${ce}ms ease, background-color ${ce}ms ease, border-color ${ce}ms ease, box-shadow ${ce}ms ease, fill ${ce}ms ease, stroke ${ce}ms ease !important; }`,document.head.appendChild(I),Wn(document.documentElement,S,f);let ee=requestAnimationFrame(()=>{setTimeout(()=>I.remove(),ce)});return()=>{cancelAnimationFrame(ee),I.remove()}}Wn(document.documentElement,S,f);return},[f,S]),On(()=>{if(typeof window>"u")return;if(!ie.current){ie.current=!0,k.current=w;return}let q=k.current;if(Gn(q,w))return;let Pe=V.current??{reason:"set-state",previousState:q};V.current=null,C(w,f,Pe),k.current=w},[f,w,C]);let X=br((q,Pe)=>{let ce=$.current,I=typeof q==="function"?q(ce):q,ee=yt({theme:I.theme??ce.theme,colorScheme:I.colorScheme??ce.colorScheme},f),le={reason:Pe,previousState:ce},$e=a?yt(a(ee,le),f):ee;if(Gn(ce,$e))return;if(V.current=le,!K)P($e);o?.($e,le),i?.($e,le)},[f,K,o,i,a]),Q=br((q)=>{X(q,"set-state")},[X]),Fe=br((q)=>{X({theme:q},"set-theme")},[X]),te=br((q)=>{X({colorScheme:q},"set-color-scheme")},[X]),pe=br(()=>{let q=S.resolvedColorScheme===vt.dark?vt.light:vt.dark;X({colorScheme:q},"toggle-color-scheme")},[S.resolvedColorScheme,X]),vr=_n(()=>({theme:w.theme,colorScheme:w.colorScheme,resolvedColorScheme:S.resolvedColorScheme,state:w,resolvedState:S,contract:f,themes:f.themes,setTheme:Fe,setColorScheme:te,setState:Q,toggleColorScheme:pe}),[w,S,f,Fe,te,Q,pe]);return Th(aa.Provider,{value:vr,children:e},void 0,!1,void 0,this)};yr.displayName="ThemeProvider";var Xn=()=>{let e=yh(aa);if(!e)throw Error("useTheme must be used within a ThemeProvider");return e};import{jsxDEV as Yn}from"react/jsx-dev-runtime";function Qn(e){return typeof e==="object"&&e!==null}function Mt(e){return typeof e==="string"&&e.trim().length>0}function cf(e){if(!Qn(e))return!1;return Object.values(e).every(Mt)}function gf(e){if(!Qn(e))return!1;if(!cf(e.light))return!1;if(e.dark===void 0)return!0;return cf(e.dark)}function bf(e){return Qn(e)&&Mt(e.cssText)}function hh(e){return Qn(e)&&Mt(e.theme)}function sa(e){return Error(`Invalid theme registry definition: ${e}`)}function ff(e){let t=new Set,r=[];for(let o of e){if(!Mt(o)||t.has(o))continue;t.add(o),r.push(o)}return r}function Ph(e){return e.filter(Mt).join(`
5
5
 
6
- `)}function fT(e){let t=[],r=[],o=[];for(let[n,i]of Object.entries(e)){if(!ht(n))continue;if(t.push(n),ht(i)){o.push(i);continue}if($u(i)){o.push(i.cssText);continue}if(Uu(i)){r.push({theme:n,light:i.light,dark:i.dark});continue}throw En(`record key "${n}" has unsupported value shape`)}return{themeNames:t,tokenDefinitions:r,cssBlocks:o}}function gT(e){let t=[],r=[],o=[];for(let n of e){if(ht(n)){t.push(n);continue}if(!cT(n))throw En("array entry must be a theme name or an object with `theme`");let i=n.theme;if(t.push(i),$u(n)){o.push(n.cssText);continue}if(Uu(n)){r.push({theme:i,light:n.light,dark:n.dark});continue}throw En(`array entry "${i}" has unsupported value shape`)}return{themeNames:t,tokenDefinitions:r,cssBlocks:o}}function yT(e){if(Array.isArray(e))return gT(e);return fT(e)}function Ku(e){return e}function jn(e){let{themes:t,cssText:r,...o}=e,n=yT(t),i=Wu(n.themeNames),s=Kr({...o,themes:i}),l=Da({themes:n.tokenDefinitions,attribute:s.attribute,darkClassName:s.darkClassName}),d=uT([l,...n.cssBlocks,r??""]),m=Wu(s.themes);if(m.length===0)m.push(s.defaultTheme);return{defaultTheme:s.defaultTheme,themes:m,cssText:d,contract:s}}function Ga({registry:e,children:t,...r}){return Ba(pr,{defaultTheme:e.defaultTheme,themes:e.themes,attribute:e.contract.attribute,colorSchemeAttribute:e.contract.colorSchemeAttribute,darkClassName:e.contract.darkClassName,storage:e.contract.storage,...r,children:t},void 0,!1,void 0,this)}Ga.displayName="ThemeRegistryProvider";function Wa({registry:e,id:t,nonce:r,media:o}){if(!ht(e.cssText))return null;return Ba("style",{id:t,nonce:r,media:o,children:e.cssText},void 0,!1,void 0,this)}Wa.displayName="ThemeStyles";function Yu(e){let t=jn(e),{themes:r,cssText:o,...n}=e;return{registry:t,provider:({children:d,...m})=>{return Ba(Ga,{registry:t,...n,...m,children:d},void 0,!1,void 0,this)},styles:(d={})=>{return Ba(Wa,{registry:t,...d},void 0,!1,void 0,this)},useTheme:()=>{return Oa()}}}import{jsxDEV as mf}from"react/jsx-dev-runtime";function df({children:e,density:t=Lo,defaultTheme:r="ghostly-solutions",defaultColorScheme:o=ut.system,...n}){return mf(pr,{defaultTheme:r,defaultColorScheme:o,...n,children:mf(Ho,{density:t,children:e},void 0,!1,void 0,this)},void 0,!1,void 0,this)}df.displayName="UIProvider";import*as Ut from"react";var vT=()=>{};function bT({prop:e,defaultProp:t,onChange:r=vT}){let[o,n]=TT({defaultProp:t,onChange:r}),i=e!==void 0,s=i?e:o,l=Ut.useCallback((d)=>{if(i){let f=typeof d==="function"?d(e):d;if(f!==e)r(f)}else n(d)},[i,e,n,r]);return[s,l]}function TT({defaultProp:e,onChange:t}){let r=Ut.useState(e),[o]=r,n=Ut.useRef(o),i=t;return Ut.useEffect(()=>{if(n.current!==o)i?.(o),n.current=o},[o,i]),r}export{Va as writeThemeStateToBrowserStorage,$n as useToast,Oa as useTheme,no as usePlatform,Sv as useOverlay,An as useHotkey,ro as useFormField,c as useDensitySize,cf as useDensity,bT as useControllableState,ao as useComposedRefs,Cg as useCommandShortcut,an as useCommand,Ou as tooltipContentVariants,wu as toolbarVariants,Mu as toolbarGroupVariants,Na as toggleVariants,xu as toggleGroupVariants,Dn as toastVariants,_n as toastActionVariants,uu as toast,Xc as timelineVariants,Ec as timelineTitleVariants,eu as timelineTimeVariants,Zc as timelineItemVariants,Jc as timelineDotVariants,jc as timelineDescriptionVariants,Qc as timelineContentVariants,qc as timelineConnectorVariants,Kc as textareaVariants,Dc as tabsTriggerVariants,Bc as tabsListVariants,_c as tabsContentVariants,Pc as tableVariants,Sc as tableRowVariants,xc as tableHeaderVariants,Nc as tableHeadVariants,zc as tableFooterVariants,hc as tableContainerVariants,wc as tableCellVariants,Rc as tableCaptionVariants,Cc as tableBodyVariants,vc as switchVariants,rc as stepperVariants,oc as stepVariants,sc as stepTitleVariants,ac as stepIndicatorVariants,lc as stepDescriptionVariants,ic as stepContentVariants,nc as stepConnectorVariants,ec as statCardVariants,va as spotlightStatusVariants,ba as spotlightStatusTitleVariants,Qp as spotlightStatusDescriptionVariants,Jp as spotlightShortcutVariants,Up as spotlightResultsVariants,Bp as spotlightPanelVariants,Op as spotlightOverlayVariants,Kp as spotlightOptionVariants,Zp as spotlightOptionTitleVariants,Yp as spotlightOptionIconVariants,qp as spotlightOptionDescriptionVariants,Xp as spotlightOptionContentVariants,ya as spotlightKbdVariants,Gp as spotlightInputVariants,Wp as spotlightIconVariants,_p as spotlightHeaderVariants,$p as spotlightGroupLabelVariants,Dp as spotlightDrawerPanelVariants,Mp as sliderVariants,Lp as sliderTrackVariants,kp as sliderThumbVariants,Hp as sliderRangeVariants,xp as skeletonVariants,Cp as skeletonTextVariants,Sp as skeletonButtonVariants,zp as skeletonAvatarVariants,md as sheetOverlayVariants,dd as sheetContentVariants,tf as serializeThemeState,hp as separatorVariants,up as selectTriggerVariants,fp as selectContentVariants,rp as segmentedControlVariants,ap as segmentedControlLabelVariants,op as segmentedControlItemVariants,qd as scrollBarVariants,Jd as scrollBarThumbVariants,Zd as scrollAreaVariants,nf as resolveThemeState,Gd as resizablePanelVariants,_d as resizablePanelGroupVariants,Wd as resizableHandleVariants,Ud as resizableHandleIconVariants,of as readThemeStateFromCookieHeader,Ia as readThemeStateFromBrowserStorage,Od as radioItemVariants,Fd as radioGroupVariants,Hd as progressVariants,kd as progressIndicatorVariants,Ar as popoverContentVariants,rf as parseThemeState,Hn as parseHotkey,Td as paginationVariants,jo as paginationLinkVariants,Pd as paginationItemVariants,xd as paginationEllipsisVariants,hd as paginationContentVariants,od as otpSlotVariants,id as otpSeparatorVariants,nd as otpPlaceholderVariants,ad as otpInputVariants,rd as otpGroupVariants,td as otpContainerVariants,ct as normalizeThemeState,Km as navigationMenuViewportVariants,Gm as navigationMenuVariants,Um as navigationMenuTriggerVariants,Wm as navigationMenuListVariants,iv as navigationMenuLinkVariants,Ym as navigationMenuIndicatorVariants,$m as navigationMenuContentVariants,Bm as multiselectTriggerVariants,Ep as matchesQuery,kn as matchHotkey,Am as labelVariants,Lm as kbdVariants,hr as isSameDay,Rm as inputVariants,Sm as hoverCardContentVariants,zT as hotkey,sf as getThemeRootProps,Fa as getSystemColorScheme,ST as formatHotkeyTokens,io as formatHotkey,bm as formFieldVariants,mm as fileUploadVariants,fn as fileUploadTextVariants,pm as fileUploadListVariants,cm as fileUploadItemVariants,fm as fileUploadItemSizeVariants,gm as fileUploadItemRemoveVariants,um as fileUploadItemNameVariants,dm as fileUploadIconVariants,tm as errorBoundaryVariants,om as errorBoundaryTitleVariants,rm as errorBoundaryIconVariants,im as errorBoundaryDetailsVariants,am as errorBoundaryDescriptionVariants,nm as errorBoundaryActionsVariants,Zl as emptyStateVariants,Jl as emptyStateTitleVariants,ql as emptyStateIconVariants,Ql as emptyStateDescriptionVariants,El as emptyStateActionsVariants,Fl as dropdownMenuShortcutVariants,Vl as dropdownMenuSeparatorVariants,Al as dropdownMenuRadioItemVariants,Il as dropdownMenuLabelVariants,un as dropdownMenuItemVariants,cn as dropdownMenuContentVariants,kl as dropdownMenuCheckboxItemVariants,xl as drawerOverlayVariants,zl as drawerHandleVariants,Cl as drawerContentVariants,bl as dialogContentVariants,gn as detectPlatform,Ku as defineThemes,pR as cva,Da as createThemesCss,Yu as createThemeSystem,af as createThemeSetCookieHeader,jn as createThemeRegistry,lf as createThemeCss,Kr as createThemeContract,xT as createOptionalContext,PT as createContext,sl as contextMenuShortcutVariants,il as contextMenuSeparatorVariants,al as contextMenuRadioItemVariants,nl as contextMenuLabelVariants,ln as contextMenuItemVariants,sn as contextMenuContentVariants,ol as contextMenuCheckboxItemVariants,hT as composeRefs,Ks as commandShortcutVariants,$s as commandSeparatorVariants,Os as commandOverlayVariants,Ys as commandLoadingVariants,Ds as commandListVariants,Us as commandItemVariants,Bs as commandInputVariants,Gs as commandGroupVariants,Ws as commandGroupHeadingVariants,_s as commandEmptyVariants,Fs as commandDialogVariants,As as collapsibleContentVariants,zs as codeBlockVariants,Ms as codeBlockPreVariants,Ls as codeBlockLineVariants,Hs as codeBlockLineNumberVariants,Ns as codeBlockLanguageVariants,Ss as codeBlockHeaderVariants,ws as codeBlockCopyVariants,Rs as codeBlockContentVariants,a as cn,Ps as checkboxVariants,us as cardVariants,ds as calendarWeekdayVariants,is as calendarVariants,ls as calendarTitleVariants,rn as calendarNavButtonVariants,ss as calendarHeaderVariants,ms as calendarGridVariants,ps as calendarDayVariants,Xr as buttonVariants,vi as buttonIconVariants,ts as buttonGroupVariants,bi as buttonBadgeVariants,Yi as breadcrumbSeparatorVariants,Ki as breadcrumbPageVariants,Wi as breadcrumbListVariants,$i as breadcrumbLinkVariants,Ui as breadcrumbItemVariants,Xi as breadcrumbEllipsisVariants,Bi as badgeVariants,Vi as avatarVariants,di as alertVariants,pi as alertTitleVariants,zi as alertDialogOverlayVariants,Si as alertDialogContentVariants,ci as alertDescriptionVariants,ai as accordionTriggerVariants,oi as accordionItemVariants,ni as accordionContentVariants,hf as XCircleIcon,ft as Variant,df as UIProvider,Fu as TooltipTrigger,mr as TooltipSize,sT as TooltipProvider,Bu as TooltipContent,Vu as Tooltip,ku as ToolbarSpacer,ot as ToolbarSize,Hu as ToolbarSeparator,Lu as ToolbarGroup,Ru as Toolbar,Su as ToggleGroupItem,zu as ToggleGroup,hu as Toggle,bu as Toaster,Ye as ToastSize,iu as TimelineTitle,lu as TimelineTime,ru as TimelineItem,au as TimelineDot,su as TimelineDescription,nu as TimelineContent,ou as TimelineConnector,tu as Timeline,Wa as ThemeStyles,Ga as ThemeRegistryProvider,pr as ThemeProvider,Yc as Textarea,Uc as TabsTrigger,Wc as TabsList,$c as TabsContent,wb as Tabs,we as TableSize,Ac as TableRow,Lc as TableHeader,Ic as TableHead,kc as TableFooter,Vc as TableCell,Fc as TableCaption,Hc as TableBody,Mc as Table,ef as THEME_COOKIE_NAME,Zu as THEME_COLOR_SCHEME_ATTR,Xu as THEME_ATTR,Wr as SwitchStatus,He as SwitchSize,bc as Switch,mc as Stepper,fc as StepTitle,pc as StepIndicator,gc as StepDescription,uc as StepContent,cc as StepConnector,dc as Step,ar as StatCardTrend,Ke as StatCardSize,tc as StatCard,Gr as SpotlightStatus,P as SpotlightSize,jp as Spotlight,ur as SpinnerSize,Ct as Spinner,Ap as Slider,Np as SkeletonText,Te as SkeletonSize,Rp as SkeletonButton,wp as SkeletonAvatar,Po as Skeleton,Ve as Size,vv as SheetTrigger,fd as SheetTitle,ne as SheetSize,pd as SheetPortal,Tn as SheetOverlay,cd as SheetHeader,ud as SheetFooter,gd as SheetDescription,Qo as SheetContent,bv as SheetClose,bn as Sheet,ho as SeparatorOrientation,Pp as Separator,Qv as SelectValue,gp as SelectTrigger,_r as SelectStatus,oe as SelectSize,Tp as SelectSeparator,vp as SelectLabel,bp as SelectItem,Jv as SelectGroup,bo as SelectContentWidthMode,Yv as SelectContentAlign,yp as SelectContent,qv as Select,be as SegmentedControlSize,lp as SegmentedControlLabelItem,sp as SegmentedControlItem,ip as SegmentedControl,Cn as ScrollBar,Qd as ScrollArea,Ju as STORAGE_VERSION,Eu as STORAGE_THEME_STATE_KEY,Qu as STORAGE_PREFIX,ju as STORAGE_DENSITY_KEY,$d as ResizablePanelGroup,Kd as ResizablePanel,Yd as ResizableHandle,Or as RadioStatus,tt as RadioSize,Dd as RadioGroupItem,Bd as RadioGroup,Ad as Progress,Ky as PopoverTrigger,kr as PopoverSize,Fm as PopoverContent,Xy as PopoverClose,Yy as PopoverAnchor,$y as Popover,$e as PaginationSize,wd as PaginationPrevious,Rd as PaginationNext,Nd as PaginationLink,Sd as PaginationItem,Md as PaginationEllipsis,zd as PaginationContent,Cd as Pagination,bd as OverlayProvider,sd as OTPInput,yn as NavigationMenuViewport,qm as NavigationMenuTrigger,je as NavigationMenuSize,Zm as NavigationMenuList,mv as NavigationMenuLink,lv as NavigationMenuItem,Qm as NavigationMenuIndicator,Jm as NavigationMenuContent,Xm as NavigationMenu,ve as MultiselectSize,Dm as Multiselect,Gy as Loader,Hr as LabelSize,Im as Label,CT as Key,Lr as KbdSize,Hm as Kbd,Mm as Input,Tf as InfoIcon,fr as IconSize,xy as HoverCardTrigger,Mr as HoverCardSize,Nm as HoverCardContent,Py as HoverCard,Jr as GroupOrientation,We as FormFieldSize,hm as FormFieldLabel,Cm as FormFieldError,xm as FormFieldDescription,zm as FormFieldControl,Tm as FormField,ym as FileUpload,sm as ErrorBoundary,jl as EmptyState,ry as DropdownMenuTrigger,Dl as DropdownMenuSubTrigger,_l as DropdownMenuSubContent,ny as DropdownMenuSub,Xl as DropdownMenuShortcut,Yl as DropdownMenuSeparator,$l as DropdownMenuRadioItem,iy as DropdownMenuRadioGroup,ay as DropdownMenuPortal,Kl as DropdownMenuLabel,Xo as DropdownMenuItemVariant,Wl as DropdownMenuItem,oy as DropdownMenuGroup,Gl as DropdownMenuContent,Ul as DropdownMenuCheckboxItem,Bl as DropdownMenu,$g as DrawerTrigger,Ml as DrawerTitle,Ge as DrawerSize,Sl as DrawerPortal,pn as DrawerOverlay,wl as DrawerHeader,Rl as DrawerFooter,Ll as DrawerDescription,Nl as DrawerContent,Kg as DrawerClose,Ug as Drawer,Bg as DialogTrigger,Ko as DialogTitle,Ht as DialogSize,Uo as DialogPortal,Er as DialogOverlay,Tl as DialogHeader,hl as DialogFooter,Pl as DialogDescription,mn as DialogContentPrimitive,$o as DialogContent,Dg as DialogClose,Qr as Dialog,Ho as DensityProvider,Lo as DENSITY_DEFAULT,qu as DARK_CLASS,Hg as ContextMenuTrigger,ml as ContextMenuSubTrigger,dl as ContextMenuSubContent,Ig as ContextMenuSub,vl as ContextMenuShortcut,yl as ContextMenuSeparator,fl as ContextMenuRadioItem,Vg as ContextMenuRadioGroup,Ag as ContextMenuPortal,gl as ContextMenuLabel,Go as ContextMenuItemVariant,cl as ContextMenuItem,kg as ContextMenuGroup,pl as ContextMenuContent,ul as ContextMenuCheckboxItem,Lg as ContextMenu,tl as CommandShortcut,el as CommandSeparator,rl as CommandLoading,Js as CommandList,_o as CommandItemVariant,js as CommandItem,qs as CommandInput,Es as CommandGroup,Qs as CommandEmpty,Zs as CommandDialog,nn as Command,ut as ColorScheme,bg as CollapsibleTrigger,Is as CollapsibleContent,vg as Collapsible,ks as CodeBlock,zr as CheckboxStatus,qe as CheckboxSize,xs as Checkbox,bf as CheckCircleIcon,bs as CardTitle,gs as CardHeader,vs as CardFooter,Ts as CardDescription,ys as CardContent,fs as Card,cs as Calendar,hi as ButtonLabel,Ti as ButtonIcon,rs as ButtonGroup,Pi as ButtonBadge,xi as Button,ge as BreadcrumbSize,ji as BreadcrumbSeparator,Ei as BreadcrumbPage,qi as BreadcrumbList,Qi as BreadcrumbLink,Ji as BreadcrumbItem,es as BreadcrumbEllipsis,Zi as Breadcrumb,ze as BadgeVariant,zt as BadgeTone,Nt as BadgeSize,Gi as BadgeGroup,Vo as Badge,De as AvatarSize,Fi as AvatarImage,Oi as AvatarGroup,en as AvatarFallback,ja as Avatar,Hf as AspectRatio,vf as AlertTriangleIcon,fi as AlertTitle,Lf as AlertDialogTrigger,Li as AlertDialogTitle,St as AlertDialogSize,Ni as AlertDialogPortal,Ea as AlertDialogOverlay,Ri as AlertDialogHeader,Mi as AlertDialogFooter,Hi as AlertDialogDescription,wi as AlertDialogContent,Ai as AlertDialogCancel,ki as AlertDialogAction,Mf as AlertDialog,gi as AlertDescription,ui as Alert,li as AccordionTrigger,Re as AccordionSize,si as AccordionItem,mi as AccordionContent,ii as Accordion};
6
+ `)}function xh(e){let t=[],r=[],o=[];for(let[i,a]of Object.entries(e)){if(!Mt(i))continue;if(t.push(i),Mt(a)){o.push(a);continue}if(bf(a)){o.push(a.cssText);continue}if(gf(a)){r.push({theme:i,light:a.light,dark:a.dark});continue}throw sa(`record key "${i}" has unsupported value shape`)}return{themeNames:t,tokenDefinitions:r,cssBlocks:o}}function Rh(e){let t=[],r=[],o=[];for(let i of e){if(Mt(i)){t.push(i);continue}if(!hh(i))throw sa("array entry must be a theme name or an object with `theme`");let a=i.theme;if(t.push(a),bf(i)){o.push(i.cssText);continue}if(gf(i)){r.push({theme:a,light:i.light,dark:i.dark});continue}throw sa(`array entry "${a}" has unsupported value shape`)}return{themeNames:t,tokenDefinitions:r,cssBlocks:o}}function Lh(e){if(Array.isArray(e))return Rh(e);return xh(e)}function yf(e){return e}function ma(e){let{themes:t,cssText:r,...o}=e,i=Lh(t),a=ff(i.themeNames),s=to({...o,themes:a}),m=qn({themes:i.tokenDefinitions,attribute:s.attribute,darkClassName:s.darkClassName}),d=Ph([m,...i.cssBlocks,r??""]),l=ff(s.themes);if(l.length===0)l.push(s.defaultTheme);return{defaultTheme:s.defaultTheme,themes:l,cssText:d,contract:s}}function Jn({registry:e,children:t,...r}){return Yn(yr,{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)}Jn.displayName="ThemeRegistryProvider";function Zn({registry:e,id:t,nonce:r,media:o}){if(!Mt(e.cssText))return null;return Yn("style",{id:t,nonce:r,media:o,children:e.cssText},void 0,!1,void 0,this)}Zn.displayName="ThemeStyles";function vf(e){let t=ma(e),{themes:r,cssText:o,...i}=e;return{registry:t,provider:({children:d,...l})=>{return Yn(Jn,{registry:t,...i,...l,children:d},void 0,!1,void 0,this)},styles:(d={})=>{return Yn(Zn,{registry:t,...d},void 0,!1,void 0,this)},useTheme:()=>{let d=Xn(),l=(T)=>{return t.themes.some((v)=>v===T)},y=(T)=>{return l(T)?T:t.defaultTheme},u=(T)=>{if(typeof T==="function"){d.setState((v)=>{let p={...v,theme:y(v.theme)},R=T(p);return{theme:y(R.theme??p.theme),colorScheme:R.colorScheme??p.colorScheme}});return}d.setState({theme:y(T.theme??d.state.theme),colorScheme:T.colorScheme??d.state.colorScheme})};return{...d,theme:y(d.theme),state:{...d.state,theme:y(d.state.theme)},resolvedState:{...d.resolvedState,theme:y(d.resolvedState.theme)},themes:t.themes,setTheme:(T)=>{d.setTheme(T)},setState:u}}}}import{jsxDEV as Nh}from"react/jsx-dev-runtime";var kf="ghostly-solutions",Bf=vt.system;function Af({children:e,defaultTheme:t=kf,defaultColorScheme:r=Bf,...o}){return Nh(yr,{defaultTheme:t,defaultColorScheme:r,...o,children:e},void 0,!1,void 0,this)}Af.displayName="UIProvider";import*as Vt from"react";var Mh=()=>{};function Hh({prop:e,defaultProp:t,onChange:r=Mh}){let[o,i]=zh({defaultProp:t,onChange:r}),a=e!==void 0,s=a?e:o,m=Vt.useCallback((d)=>{if(a){let y=typeof d==="function"?d(e):d;if(y!==e)r(y)}else i(d)},[a,e,i,r]);return[s,m]}function zh({defaultProp:e,onChange:t}){let r=Vt.useState(e),[o]=r,i=Vt.useRef(o),a=t;return Vt.useEffect(()=>{if(i.current!==o)a?.(o),i.current=o},[o,a]),r}export{Kn as writeThemeStateToBrowserStorage,ji as useToast,Xn as useTheme,Lo as useReducedMotion,fo as usePlatform,Pv as useOverlay,ao as useHotkey,po as useFormField,b as useDensitySize,Sf as useDensity,Hh as useControllableState,Lt as useComposedRefs,ab as useCommandShortcut,bi as useCommand,wg as useBreadcrumbs,lf as tooltipContentVariants,Dc as toolbarVariants,ef as toolbarGroupVariants,An as toggleVariants,Qc as toggleGroupVariants,Ji as toastVariants,Zi as toastActionVariants,Oc as toast,Tc as timelineVariants,Lc as timelineTitleVariants,Mc as timelineTimeVariants,hc as timelineItemVariants,xc as timelineDotVariants,Nc as timelineDescriptionVariants,Rc as timelineContentVariants,Pc as timelineConnectorVariants,yc as textareaVariants,pc as tabsTriggerVariants,uc as tabsListVariants,cc as tabsContentVariants,Zp as tableVariants,jp as tableRowVariants,Vp as tableHeaderVariants,ec as tableHeadVariants,Dp as tableFooterVariants,Jp as tableContainerVariants,tc as tableCellVariants,rc as tableCaptionVariants,Ep as tableBodyVariants,Yp as switchVariants,wp as stepperVariants,kp as stepVariants,Fp as stepTitleVariants,Bp as stepIndicatorVariants,Sp as stepDescriptionVariants,Ip as stepContentVariants,Ap as stepConnectorVariants,zp as statCardVariants,Ln as spotlightStatusVariants,Nn as spotlightStatusTitleVariants,Lp as spotlightStatusDescriptionVariants,Rp as spotlightShortcutVariants,bp as spotlightResultsVariants,up as spotlightPanelVariants,dp as spotlightOverlayVariants,vp as spotlightOptionVariants,Pp as spotlightOptionTitleVariants,Tp as spotlightOptionIconVariants,xp as spotlightOptionDescriptionVariants,hp as spotlightOptionContentVariants,fp as spotlightInputVariants,gp as spotlightIconVariants,cp as spotlightHeaderVariants,yp as spotlightGroupLabelVariants,pp as spotlightDrawerPanelVariants,op as sliderVariants,np as sliderTrackVariants,ap as sliderThumbVariants,ip as sliderRangeVariants,Vu as skeletonVariants,Eu as skeletonTextVariants,ju as skeletonButtonVariants,Du as skeletonAvatarVariants,Hd as sheetOverlayVariants,zd as sheetContentVariants,Mf as serializeThemeState,Ju as separatorVariants,Uu as selectTriggerVariants,Ku as selectContentVariants,wu as segmentedControlVariants,Bu as segmentedControlLabelVariants,ku as segmentedControlItemVariants,Ru as scrollBarVariants,Lu as scrollBarThumbVariants,xu as scrollAreaVariants,zf as resolveThemeState,Fg as resolveBuiltBreadcrumbItems,li as resolveBreadcrumbItemsSync,di as resolveBreadcrumbItems,cu as resizablePanelVariants,pu as resizablePanelGroupVariants,fu as resizableHandleVariants,gu as resizableHandleIconVariants,Un as readThemeStateFromBrowserStorage,nu as radioItemVariants,ou as radioGroupVariants,Dd as progressVariants,jd as progressIndicatorVariants,Wr as popoverContentVariants,Hf as parseThemeState,fi as parseHotkey,Wd as paginationVariants,mn as paginationLinkVariants,Kd as paginationItemVariants,$d as paginationEllipsisVariants,Ud as paginationContentVariants,hd as otpSlotVariants,Rd as otpSeparatorVariants,xd as otpPlaceholderVariants,Pd as otpInputVariants,Td as otpGroupVariants,vd as otpContainerVariants,yt as normalizeThemeState,md as navigationMenuViewportVariants,nd as navigationMenuVariants,ad as navigationMenuTriggerVariants,id as navigationMenuListVariants,Vy as navigationMenuLinkVariants,ld as navigationMenuIndicatorVariants,sd as navigationMenuContentVariants,td as multiselectTriggerVariants,Np as matchesQuery,gi as matchHotkey,Zl as labelVariants,Gr as kbdVariants,Hr as isSameDay,$l as inputVariants,Wl as hoverCardContentVariants,Oh as hotkey,Cf as getThemeRootProps,$n as getSystemColorScheme,Mn as formatHotkeyTokens,rn as formatHotkey,Bl as formFieldVariants,Rl as fileUploadVariants,Mi as fileUploadTextVariants,Nl as fileUploadListVariants,Ml as fileUploadItemVariants,zl as fileUploadItemSizeVariants,Cl as fileUploadItemRemoveVariants,Hl as fileUploadItemNameVariants,Ll as fileUploadIconVariants,gl as errorBoundaryVariants,yl as errorBoundaryTitleVariants,bl as errorBoundaryIconVariants,hl as errorBoundaryDetailsVariants,vl as errorBoundaryDescriptionVariants,Tl as errorBoundaryActionsVariants,ml as emptyStateVariants,dl as emptyStateTitleVariants,ll as emptyStateIconVariants,ul as emptyStateDescriptionVariants,pl as emptyStateActionsVariants,Em as dropdownMenuShortcutVariants,Vm as dropdownMenuSeparatorVariants,Jm as dropdownMenuRadioItemVariants,Zm as dropdownMenuLabelVariants,Ni as dropdownMenuItemVariants,Li as dropdownMenuContentVariants,Qm as dropdownMenuCheckboxItemVariants,Om as drawerOverlayVariants,Pi as drawerHandleVariants,Wm as drawerContentVariants,Am as dialogContentVariants,Hi as detectPlatform,yf as defineThemes,cC as cva,qn as createThemesCss,vf as createThemeSystem,ma as createThemeRegistry,wf as createThemeCss,to as createThemeContract,Ag as createRouteBreadcrumbItems,Kh as createOptionalContext,Ig as createEntityBreadcrumbItems,Uh as createContext,hm as contextMenuShortcutVariants,Tm as contextMenuSeparatorVariants,ym as contextMenuRadioItemVariants,vm as contextMenuLabelVariants,Ti as contextMenuItemVariants,vi as contextMenuContentVariants,bm as contextMenuCheckboxItemVariants,Wh as composeRefs,nm as commandShortcutVariants,om as commandSeparatorVariants,Vs as commandOverlayVariants,im as commandLoadingVariants,Ds as commandListVariants,rm as commandItemVariants,Es as commandInputVariants,em as commandGroupVariants,tm as commandGroupHeadingVariants,js as commandEmptyVariants,Zs as commandDialogVariants,Ys as collapsibleContentVariants,ui as collapseBreadcrumbItems,Ss as codeBlockVariants,Us as codeBlockPreVariants,Ks as codeBlockLineVariants,$s as codeBlockLineNumberVariants,Gs as codeBlockLanguageVariants,_s as codeBlockHeaderVariants,Os as codeBlockCopyVariants,Ws as codeBlockContentVariants,n as cn,As as checkboxVariants,Ns as cardVariants,xs as calendarWeekdayVariants,vs as calendarVariants,hs as calendarTitleVariants,pi as calendarNavButtonVariants,Ts as calendarHeaderVariants,Ps as calendarGridVariants,Rs as calendarDayVariants,oo as buttonVariants,La as buttonIconVariants,cs as buttonGroupVariants,Na as buttonBadgeVariants,ts as breadcrumbSeparatorVariants,es as breadcrumbPageVariants,Ea as breadcrumbListVariants,ja as breadcrumbLinkVariants,Da as breadcrumbItemVariants,rs as breadcrumbEllipsisVariants,Qa as badgeVariants,$a as avatarVariants,Ua as aspectRatioVariants,ya as alertVariants,va as alertTitleVariants,ka as alertDialogOverlayVariants,Ba as alertDialogContentVariants,Ta as alertDescriptionVariants,ua as accordionTriggerVariants,da as accordionItemVariants,pa as accordionContentVariants,$f as XCircleIcon,wh as Variant,kf as UI_DEFAULT_THEME,Bf as UI_DEFAULT_COLOR_SCHEME,Af as UIProvider,mf as TooltipTrigger,gr as TooltipSize,gh as TooltipProvider,df as TooltipContent,sf as Tooltip,of as ToolbarSpacer,mt as ToolbarSize,rf as ToolbarSeparator,tf as ToolbarGroup,jc as Toolbar,Vc as ToggleGroupItem,Zc as ToggleGroup,Yc as Toggle,$c as Toaster,Ve as ToastSize,Bc as TimelineTitle,Ic as TimelineTime,zc as TimelineItem,wc as TimelineDot,Ac as TimelineDescription,kc as TimelineContent,Cc as TimelineConnector,Hc as Timeline,Zn as ThemeStyles,Jn as ThemeRegistryProvider,yr as ThemeProvider,Gh as ThemeColorScheme,vc as Textarea,gc as TabsTrigger,fc as TabsList,bc as TabsContent,IT as Tabs,Ce as TableSize,sc as TableRow,nc as TableHeader,mc as TableHead,ac as TableFooter,lc as TableCell,dc as TableCaption,ic as TableBody,oc as Table,hf as THEME_COLOR_SCHEME_ATTR,Tf as THEME_ATTR,Er as SwitchStatus,Ae as SwitchSize,qp as Switch,Ih as SurfaceStyle,_p as Stepper,Kp as StepTitle,Op as StepIndicator,$p as StepDescription,Up as StepContent,Wp as StepConnector,Gp as Step,kh as Status,dr as StatCardTrend,Ze as StatCardSize,Cp as StatCard,Rn as SpotlightStatus,N as SpotlightSize,Mp as Spotlight,hr as SpinnerSize,zt as Spinner,sp as Slider,ep as SkeletonText,he as SkeletonSize,rp as SkeletonButton,tp as SkeletonAvatar,wo as Skeleton,_ as Size,$r as Side,pv as SheetTrigger,Ad as SheetTitle,ne as SheetSize,wd as SheetPortal,ki as SheetOverlay,kd as SheetHeader,Bd as SheetFooter,Id as SheetDescription,an as SheetContent,cv as SheetClose,wi as Sheet,Co as SeparatorOrientation,Zu as Separator,aT as SelectValue,$u as SelectTrigger,Jr as SelectStatus,re as SelectSize,Qu as SelectSeparator,Yu as SelectLabel,qu as SelectItem,iT as SelectGroup,Ho as SelectContentWidthMode,eT as SelectContentAlign,Xu as SelectContent,nT as Select,Qv as SegmentedControlSize,Su as SegmentedControlLabelItem,Fu as SegmentedControlItem,Iu as SegmentedControl,Fi as ScrollBar,Nu as ScrollArea,xf as STORAGE_VERSION,Lf as STORAGE_THEME_STATE_KEY,Rf as STORAGE_PREFIX,Nf as STORAGE_DENSITY_KEY,vu as ResizablePanelGroup,Tu as ResizablePanel,hu as ResizableHandle,Yr as RadioStatus,at as RadioSize,au as RadioGroupItem,iu as RadioGroup,Hu as REDUCED_MOTION_QUERY,eu as Progress,Fy as PopoverTrigger,nr as PopoverSize,jl as PopoverContent,_y as PopoverClose,Sy as PopoverAnchor,Iy as Popover,Je as PaginationSize,Jd as PaginationPrevious,Zd as PaginationNext,Qd as PaginationLink,qd as PaginationItem,Vd as PaginationEllipsis,Yd as PaginationContent,Xd as Pagination,Od as OverlayProvider,Sh as Orientation,Gd as OVERLAY_REMOVE_DELAY_DEFAULT,Ld as OTPInput,zi as NavigationMenuViewport,pd as NavigationMenuTrigger,nt as NavigationMenuSize,ud as NavigationMenuList,jy as NavigationMenuLink,Dy as NavigationMenuItem,fd as NavigationMenuIndicator,cd as NavigationMenuContent,dd as NavigationMenu,ve as MultiselectSize,rd as Multiselect,Ah as MotionLevel,El as Loader,Or as LabelSize,Vl as Label,If as Key,_r as KbdSize,Ql as Kbd,Xl as Input,Kf as InfoIcon,Pr as IconSize,ly as HoverCardTrigger,Sr as HoverCardSize,Ul as HoverCardContent,my as HoverCard,Ch as HotkeyModifierKey,If as HotkeyKey,io as GroupOrientation,qe as FormFieldSize,Il as FormFieldLabel,_l as FormFieldError,Sl as FormFieldDescription,Gl as FormFieldControl,Al as FormField,wl as FileUpload,Pl as ErrorBoundary,cl as EmptyState,Fh as EmphasisLevel,$b as DropdownMenuTrigger,jm as DropdownMenuSubTrigger,el as DropdownMenuSubContent,qb as DropdownMenuSub,sl as DropdownMenuShortcut,al as DropdownMenuSeparator,nl as DropdownMenuRadioItem,Qb as DropdownMenuRadioGroup,Yb as DropdownMenuPortal,il as DropdownMenuLabel,en as DropdownMenuItemVariant,rl as DropdownMenuItem,Xb as DropdownMenuGroup,tl as DropdownMenuContent,ol as DropdownMenuCheckboxItem,Kb as DropdownMenu,Ib as DrawerTrigger,Ym as DrawerTitle,Ye as DrawerSize,Um as DrawerPortal,Ri as DrawerOverlay,$m as DrawerHeader,Xm as DrawerFooter,qm as DrawerDescription,Km as DrawerContent,Fb as DrawerClose,Ab as Drawer,Hb as DialogTrigger,Do as DialogTitle,St as DialogSize,Vo as DialogPortal,mo as DialogOverlay,Im as DialogHeader,Fm as DialogFooter,Sm as DialogDescription,hi as DialogContentPrimitive,Eo as DialogContent,zb as DialogClose,so as Dialog,Bh as Density,Ff as DENSITY_DEFAULT,Pf as DARK_CLASS,gb as ContextMenuTrigger,xm as ContextMenuSubTrigger,Rm as ContextMenuSubContent,vb as ContextMenuSub,wm as ContextMenuShortcut,Cm as ContextMenuSeparator,Hm as ContextMenuRadioItem,Tb as ContextMenuRadioGroup,yb as ContextMenuPortal,zm as ContextMenuLabel,Jo as ContextMenuItemVariant,Nm as ContextMenuItem,bb as ContextMenuGroup,Lm as ContextMenuContent,Mm as ContextMenuCheckboxItem,fb as ContextMenu,fm as CommandShortcut,cm as CommandSeparator,gm as CommandLoading,lm as CommandList,Qo as CommandItemVariant,pm as CommandItem,mm as CommandInput,um as CommandGroup,dm as CommandEmpty,sm as CommandDialog,yi as Command,vt as ColorScheme,eb as CollapsibleTrigger,qs as CollapsibleContent,jg as Collapsible,Xs as CodeBlock,kr as CheckboxStatus,tt as CheckboxSize,Is as Checkbox,Uf as CheckCircleIcon,ws as CardTitle,Hs as CardHeader,Cs as CardFooter,ks as CardDescription,zs as CardContent,Ms as Card,Ls as Calendar,Ha as ButtonLabel,Ma as ButtonIcon,fs as ButtonGroup,za as ButtonBadge,Ca as Button,fe as BreadcrumbSize,ms as BreadcrumbSeparator,Cg as BreadcrumbProvider,ss as BreadcrumbPage,ns as BreadcrumbList,as as BreadcrumbLink,is as BreadcrumbItem,ls as BreadcrumbEllipsis,os as Breadcrumb,Le as BadgeVariant,Ct as BadgeTone,Pt as BadgeSize,Va as BadgeGroup,Wo as Badge,Bg as BREADCRUMB_DEFAULT_COLLAPSE_CONFIG,Xe as AvatarSize,Xa as AvatarImage,Ya as AvatarGroup,si as AvatarFallback,ai as Avatar,Ka as AspectRatio,_h as Align,Wf as AlertTriangleIcon,Pa as AlertTitle,jf as AlertDialogTrigger,_a as AlertDialogTitle,kt as AlertDialogSize,Aa as AlertDialogPortal,ni as AlertDialogOverlay,Fa as AlertDialogHeader,Sa as AlertDialogFooter,Ga as AlertDialogDescription,Ia as AlertDialogContent,Wa as AlertDialogCancel,Oa as AlertDialogAction,Df as AlertDialog,xa as AlertDescription,ha as Alert,ga as AccordionTrigger,we as AccordionSize,fa as AccordionItem,ba as AccordionContent,ca as Accordion};