@fabio.caffarello/react-design-system 1.14.2 → 1.14.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,2 +1,689 @@
1
- "use strict";var y=Object.defineProperty,A=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable;var h=(r,a,n)=>a in r?y(r,a,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[a]=n,u=(r,a)=>{for(var n in a||(a={}))I.call(a,n)&&h(r,n,a[n]);if(N)for(var n of N(a))F.call(a,n)&&h(r,n,a[n]);return r},T=(r,a)=>A(r,D(a));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./tokens/index.cjs"),e=require("./components-B08xLmiA.cjs"),i=require("./primitives/index.cjs"),d=require("react"),P=d.createContext(void 0);function x({children:r,defaultTheme:a="light",storageKey:n="theme"}){const[s,g]=d.useState(()=>{if(typeof window=="undefined")return a;try{const o=localStorage.getItem(n);if(o==="light"||o==="dark")return o}catch(o){console.warn("Failed to read theme from localStorage:",o)}return a});d.useEffect(()=>{if(typeof window!="undefined"){try{localStorage.setItem(n,s)}catch(o){console.warn("Failed to save theme to localStorage:",o)}typeof document!="undefined"&&(document.documentElement.classList.remove("light","dark"),document.documentElement.classList.add(s))}},[s,n]);const C=()=>{g(o=>o==="light"?"dark":"light")},S=o=>{g(o)},l=s==="light"?t.SEMANTIC_COLORS_LIGHT:t.SEMANTIC_COLORS_DARK,b={theme:s,toggleTheme:C,setTheme:S,colors:l,isDark:s==="dark"};return e.jsxRuntimeExports.jsx(P.Provider,{value:b,children:r})}function L(){const r=d.useContext(P);if(r===void 0)throw new Error("useTheme must be used within a ThemeProvider");return r}const M={breakpoints:t.BREAKPOINT_TOKENS,spacing:t.SPACING_TOKENS,typography:t.TYPOGRAPHY_TOKENS,animations:t.ANIMATION_TOKENS,features:{reducedMotion:!1,highContrast:!1,debug:!1},behavior:{defaultAnimationDuration:200,defaultTransitionDuration:150,focusVisible:!0}},R=d.createContext(void 0);function f({children:r,config:a,strategy:n="default"}){const s=d.useMemo(()=>{const o=u({},M);return a?T(u(u({},o),a),{breakpoints:a.breakpoints||o.breakpoints,spacing:a.spacing||o.spacing,typography:a.typography||o.typography,animations:a.animations||o.animations,features:u(u({},o.features),a.features),behavior:u(u({},o.behavior),a.behavior)}):o},[a]);d.useEffect(()=>{typeof document!="undefined"&&(s.features.reducedMotion?document.documentElement.style.setProperty("--motion-reduce","1"):document.documentElement.style.removeProperty("--motion-reduce"))},[s.features.reducedMotion]),d.useEffect(()=>{typeof document!="undefined"&&(s.features.highContrast?document.documentElement.classList.add("high-contrast"):document.documentElement.classList.remove("high-contrast"))},[s.features.highContrast]);const g=d.useMemo(()=>o=>s.spacing[o],[s.spacing]),C=d.useMemo(()=>o=>s.breakpoints[o],[s.breakpoints]),S=d.useMemo(()=>o=>{var c;return(c=s.features[o])!=null?c:!1},[s.features]),l=d.useMemo(()=>o=>{console.warn("ConfigProvider: updateConfig called but config is immutable. Consider using state management for dynamic updates.")},[]),b={config:s,getSpacing:g,getBreakpoint:C,isFeatureEnabled:S,updateConfig:l};return e.jsxRuntimeExports.jsx(R.Provider,{value:b,children:r})}function k(){const r=d.useContext(R);if(r===void 0)throw new Error("useConfig must be used within a ConfigProvider");return r}function E({children:r,defaultDuration:a=5e3,maxToasts:n=5}){const[s,g]=d.useState([]),C=d.useCallback(o=>{var v;const c=`toast-${Date.now()}-${Math.random().toString(36).slice(2,11)}`,m=T(u({},o),{id:c,duration:(v=o.duration)!=null?v:a});return g(O=>[m,...O].slice(0,n)),c},[a,n]),S=d.useCallback(o=>{g(c=>c.filter(m=>m.id!==o))},[]),l=d.useCallback(()=>{g([])},[]),b={toasts:s,addToast:C,removeToast:S,clearAll:l};return e.jsxRuntimeExports.jsx(e.ToastContext.Provider,{value:b,children:r})}const H={ThemeProvider:x,ConfigProvider:f,ToastProvider:E,DialogProvider:e.DialogProvider},p=H;function _(r,a){const{theme:n,config:s,toast:g,dialog:C,providers:S={theme:!0,config:!0,toast:!0,dialog:!0}}=a||{};let l=r;return S.dialog&&(l=e.jsxRuntimeExports.jsx(p.DialogProvider,T(u({},C),{children:l}))),S.toast&&(l=e.jsxRuntimeExports.jsx(p.ToastProvider,T(u({},g),{children:l}))),S.config&&(l=e.jsxRuntimeExports.jsx(p.ConfigProvider,T(u({},s),{children:l}))),S.theme&&(l=e.jsxRuntimeExports.jsx(p.ThemeProvider,T(u({},n),{children:l}))),l}function w({children:r,config:a}){const n=d.useMemo(()=>_(r,a),[r,a]);return e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:n})}function B(){return{}}exports.AMBER=t.AMBER;exports.BLUE=t.BLUE;exports.BRAND_COLORS=t.BRAND_COLORS;exports.BREAKPOINT_TOKENS=t.BREAKPOINT_TOKENS;exports.BreakpointTokenFactory=t.BreakpointTokenFactory;exports.COLOR_SCALES=t.COLOR_SCALES;exports.CYAN=t.CYAN;exports.EMERALD=t.EMERALD;exports.FONT_FAMILY_TOKENS=t.FONT_FAMILY_TOKENS;exports.FONT_WEIGHT_TOKENS=t.FONT_WEIGHT_TOKENS;exports.FUCHSIA=t.FUCHSIA;exports.GRAY=t.GRAY;exports.GREEN=t.GREEN;exports.INDIGO=t.INDIGO;exports.LIME=t.LIME;exports.ORANGE=t.ORANGE;exports.PINK=t.PINK;exports.PRIMITIVE_COLORS=t.PRIMITIVE_COLORS;exports.PURPLE=t.PURPLE;exports.RED=t.RED;exports.ROSE=t.ROSE;exports.SEMANTIC_COLORS=t.SEMANTIC_COLORS;exports.SEMANTIC_COLORS_DARK=t.SEMANTIC_COLORS_DARK;exports.SEMANTIC_COLORS_LIGHT=t.SEMANTIC_COLORS_LIGHT;exports.SIDEBAR_TOKENS=t.SIDEBAR_TOKENS;exports.SKY=t.SKY;exports.SLATE=t.SLATE;exports.SPACING_TOKENS=t.SPACING_TOKENS;exports.SpacingTokenFactory=t.SpacingTokenFactory;exports.TEAL=t.TEAL;exports.TYPOGRAPHY_TOKENS=t.TYPOGRAPHY_TOKENS;exports.TypographyTokenFactory=t.TypographyTokenFactory;exports.VIOLET=t.VIOLET;exports.YELLOW=t.YELLOW;exports.blendColors=t.blendColors;exports.darken=t.darken;exports.getAnimation=t.getAnimation;exports.getAnimationClass=t.getAnimationClass;exports.getBreakpoint=t.getBreakpoint;exports.getColor=t.getColor;exports.getColorClass=t.getColorClass;exports.getContrastColor=t.getContrastColor;exports.getFocusColorClass=t.getFocusColorClass;exports.getFocusRingClass=t.getFocusRingClass;exports.getHoverColorClass=t.getHoverColorClass;exports.getMediaQuery=t.getMediaQuery;exports.getNestedIndentClass=t.getNestedIndentClass;exports.getOpacity=t.getOpacity;exports.getOpacityClass=t.getOpacityClass;exports.getPrimitiveColor=t.getPrimitiveColor;exports.getPrimitiveColorPalette=t.getPrimitiveColorPalette;exports.getSemanticColor=t.getSemanticColor;exports.getSemanticColorClass=t.getSemanticColorClass;exports.getSemanticColorRole=t.getSemanticColorRole;exports.getSemanticColorValue=t.getSemanticColorValue;exports.getSpacing=t.getSpacing;exports.getSpacingClass=t.getSpacingClass;exports.getTransitionClass=t.getTransitionClass;exports.getTypography=t.getTypography;exports.getTypographyClasses=t.getTypographyClasses;exports.getTypographyLineHeight=t.getTypographyLineHeight;exports.getTypographySize=t.getTypographySize;exports.getTypographySizeFromFontSize=t.getTypographySizeFromFontSize;exports.getTypographyWeight=t.getTypographyWeight;exports.getTypographyWeightFromFontWeight=t.getTypographyWeightFromFontWeight;exports.getZIndex=t.getZIndex;exports.getZIndexClass=t.getZIndexClass;exports.isLightColor=t.isLightColor;exports.lighten=t.lighten;exports.withOpacity=t.withOpacity;exports.Accordion=e.Accordion;exports.AlertDialog=e.AlertDialog;exports.Autocomplete=e.Autocomplete;exports.AutocompleteList=e.AutocompleteList;exports.AutocompleteOption=e.AutocompleteOption;exports.Breadcrumb=e.Breadcrumb;exports.Card=e.Card;exports.ColorPicker=e.ColorPicker;exports.CommandPalette=e.CommandPalette;exports.DashboardLayout=e.DashboardLayout;exports.DataGrid=e.DataGrid;exports.DataTablePattern=e.DataTablePattern;exports.DatePicker=e.DatePicker;exports.DatePickerCalendar=e.DatePickerCalendar;exports.DatePickerInput=e.DatePickerInput;exports.DatePickerProvider=e.DatePickerProvider;exports.Dialog=e.Dialog;exports.DialogClose=e.DialogClose;exports.DialogContent=e.DialogContent;exports.DialogContext=e.DialogContext;exports.DialogDescription=e.DialogDescription;exports.DialogFooter=e.DialogFooter;exports.DialogHeader=e.DialogHeader;exports.DialogProvider=e.DialogProvider;exports.DialogTitle=e.DialogTitle;exports.DialogTrigger=e.DialogTrigger;exports.Drawer=e.Drawer;exports.DrawerContent=e.DrawerContent;exports.DrawerFooter=e.DrawerFooter;exports.DrawerHeader=e.DrawerHeader;exports.Dropdown=e.Dropdown;exports.EmptyState=e.EmptyState;exports.FileUpload=e.FileUpload;exports.Form=e.Form;exports.FormContext=e.FormContext;exports.FormField=e.FormField;exports.FormProvider=e.FormProvider;exports.FormWizardPattern=e.FormWizardPattern;exports.Header=e.Header;exports.HeaderActions=e.HeaderActions;exports.HeaderComponent=e.Header;exports.HeaderHamburger=e.HeaderHamburger;exports.HeaderLogo=e.HeaderLogo;exports.HeaderMobileMenu=e.HeaderMobileMenu;exports.HeaderNavigation=e.HeaderNavigation;exports.HeaderProvider=e.HeaderProvider;exports.LoginBox=e.LoginBox;exports.Menu=e.Menu;exports.MenuContent=e.MenuContent;exports.MenuItem=e.MenuItem;exports.MenuSeparator=e.MenuSeparator;exports.MenuTrigger=e.MenuTrigger;exports.Modal=e.Modal;exports.MultiSelect=e.MultiSelect;exports.Navbar=e.Navbar;exports.NavbarContext=e.NavbarContext;exports.NavbarGroup=e.NavbarGroup;exports.NavbarItem=e.NavbarItem;exports.NavbarSeparator=e.NavbarSeparator;exports.NavbarToggle=e.NavbarToggle;exports.Navigation=e.Navigation;exports.NavigationComponent=e.Navigation;exports.PageHeader=e.PageHeader;exports.PageHeaderComponent=e.PageHeader;exports.Pagination=e.Pagination;exports.Popover=e.Popover;exports.Rating=e.Rating;exports.SearchAndFilterPattern=e.SearchAndFilterPattern;exports.SearchInput=e.SearchInput;exports.SideNavbar=e.SideNavbar;exports.SideNavbarBackdrop=e.SideNavbarBackdrop;exports.SideNavbarConfigContext=e.SideNavbarConfigContext;exports.SideNavbarConfigProvider=e.SideNavbarConfigProvider;exports.SideNavbarProvider=e.SideNavbarProvider;exports.SideNavbarResizeHandle=e.SideNavbarResizeHandle;exports.SideNavbarRoot=e.SideNavbarRoot;exports.SideNavbarStateContext=e.SideNavbarStateContext;exports.SideNavbarStateProvider=e.SideNavbarStateProvider;exports.SideNavbarThemeContext=e.SideNavbarThemeContext;exports.SideNavbarThemeProvider=e.SideNavbarThemeProvider;exports.SideNavbarToggle=e.SideNavbarToggle;exports.SideNavbarToggleContext=e.SideNavbarToggleContext;exports.Sidebar=e.Sidebar;exports.SidebarContent=e.SidebarContent;exports.SidebarContext=e.SidebarContext;exports.SidebarFooter=e.SidebarFooter;exports.SidebarGroup=e.SidebarGroup;exports.SidebarHeader=e.SidebarHeader;exports.SidebarSlot=e.SidebarSlot;exports.SidebarSlotContent=e.SidebarSlotContent;exports.SidebarSlotContext=e.SidebarSlotContext;exports.SidebarSlotProvider=e.SidebarSlotProvider;exports.Stepper=e.Stepper;exports.Table=e.TableComponent;exports.TableActions=e.TableActions;exports.TableBody=e.TableBody;exports.TableCell=e.TableCell;exports.TableContext=e.TableContext;exports.TableEmptyState=e.TableEmptyState;exports.TableFilters=e.TableFilters;exports.TableHeader=e.TableHeader;exports.TableHeaderCell=e.TableHeaderCell;exports.TableHeaderRow=e.TableHeaderRow;exports.TablePagination=e.TablePagination;exports.TableProvider=e.TableProvider;exports.TableRow=e.TableRow;exports.Tabs=e.Tabs;exports.TabsContent=e.TabsContent;exports.TabsContext=e.TabsContext;exports.TabsList=e.TabsList;exports.TabsProvider=e.TabsProvider;exports.TabsTrigger=e.TabsTrigger;exports.TimePicker=e.TimePicker;exports.Timeline=e.Timeline;exports.Toast=e.Toast;exports.ToastContainer=e.ToastContainer;exports.ToastContext=e.ToastContext;exports.clampWidth=e.clampWidth;exports.cn=e.cn;exports.defaultConfigValues=e.defaultConfigValues;exports.defaultThemeValues=e.defaultThemeValues;exports.formatKeyboardShortcut=e.formatKeyboardShortcut;exports.parseKeyboardShortcut=e.parseKeyboardShortcut;exports.parseWidthToPixels=e.parseWidthToPixels;exports.useColumnResizing=e.useColumnResizing;exports.useDialogContext=e.useDialogContext;exports.useDialogContextOptional=e.useDialogContextOptional;exports.useFocusManagement=e.useFocusManagement;exports.useFormContext=e.useFormContext;exports.useFormContextOptional=e.useFormContextOptional;exports.useFormFieldArray=e.useFormFieldArray;exports.useGroupState=e.useGroupState;exports.useHeaderContext=e.useHeaderContext;exports.useKeyboardShortcut=e.useKeyboardShortcut;exports.useNavbar=e.useNavbar;exports.useNavbarRequired=e.useNavbarRequired;exports.useResize=e.useResize;exports.useResponsiveSidebar=e.useResponsiveSidebar;exports.useSideNavbarCombined=e.useSideNavbarCombined;exports.useSideNavbarConfig=e.useSideNavbarConfig;exports.useSideNavbarConfigRequired=e.useSideNavbarConfigRequired;exports.useSideNavbarContent=e.useSideNavbarContent;exports.useSideNavbarNavigation=e.useSideNavbarNavigation;exports.useSideNavbarState=e.useSideNavbarState;exports.useSideNavbarStateRequired=e.useSideNavbarStateRequired;exports.useSideNavbarTheme=e.useSideNavbarTheme;exports.useSideNavbarThemeRequired=e.useSideNavbarThemeRequired;exports.useSideNavbarToggleContext=e.useSideNavbarToggleContext;exports.useSideNavbarToggleContextRequired=e.useSideNavbarToggleContextRequired;exports.useSidebar=e.useSidebar;exports.useSidebarRequired=e.useSidebarRequired;exports.useSidebarSlot=e.useSidebarSlot;exports.useSidebarSlotRequired=e.useSidebarSlotRequired;exports.useTableContext=e.useTableContext;exports.useTableContextOptional=e.useTableContextOptional;exports.useTabsContext=e.useTabsContext;exports.useTabsContextOptional=e.useTabsContextOptional;exports.useToast=e.useToast;exports.useToastContext=e.useToastContext;exports.useToastContextOptional=e.useToastContextOptional;exports.useVirtualScrolling=e.useVirtualScrolling;exports.validateWidthBounds=e.validateWidthBounds;exports.Avatar=i.Avatar;exports.AvatarGroup=i.AvatarGroup;exports.Badge=i.Badge;exports.Button=i.Button;exports.Checkbox=i.Checkbox;exports.Chip=i.Chip;exports.Collapsible=i.Collapsible;exports.ErrorMessage=i.ErrorMessage;exports.Info=i.Info;exports.Input=i.Input;exports.Label=i.Label;exports.NavLink=i.NavLink;exports.Progress=i.Progress;exports.Radio=i.Radio;exports.Select=i.Select;exports.Separator=i.Separator;exports.Skeleton=i.Skeleton;exports.Slider=i.Slider;exports.Spinner=i.Spinner;exports.Switch=i.Switch;exports.Text=i.Text;exports.Textarea=i.Textarea;exports.Tooltip=i.Tooltip;exports.useNavLink=i.useNavLink;exports.AppProvider=w;exports.ConfigProvider=f;exports.ThemeProvider=x;exports.ToastProvider=E;exports.useApp=B;exports.useConfig=k;exports.useTheme=L;
1
+ "use strict";var Lo=Object.defineProperty,Fo=Object.defineProperties;var _o=Object.getOwnPropertyDescriptors;var er=Object.getOwnPropertySymbols;var un=Object.prototype.hasOwnProperty,fn=Object.prototype.propertyIsEnumerable;var Br=(e,t,r)=>t in e?Lo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t)=>{for(var r in t||(t={}))un.call(t,r)&&Br(e,r,t[r]);if(er)for(var r of er(t))fn.call(t,r)&&Br(e,r,t[r]);return e},P=(e,t)=>Fo(e,_o(t));var O=(e,t)=>{var r={};for(var s in e)un.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(e!=null&&er)for(var s of er(e))t.indexOf(s)<0&&fn.call(e,s)&&(r[s]=e[s]);return r};var mn=(e,t,r)=>Br(e,typeof t!="symbol"?t+"":t,r);var tr=(e,t,r)=>new Promise((s,a)=>{var o=u=>{try{c(r.next(u))}catch(d){a(d)}},i=u=>{try{c(r.throw(u))}catch(d){a(d)}},c=u=>u.done?s(u.value):Promise.resolve(u.value).then(o,i);c((r=r.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),Ue=require("react-dom"),Je={icon:{sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6"},text:{xs:"text-xs",sm:"text-sm",base:"text-base"},spacing:{itemPaddingX:"px-4",itemPaddingY:"py-2",nestedIndent:"pl-6",nestedIndentLevel2:"pl-10",nestedIndentLevel3:"pl-14",groupTitlePadding:"px-4 py-2",iconMargin:"mr-3"},colors:{active:{bg:"bg-surface-brand-muted",text:"text-fg-brand-emphasis",border:"border-line-brand"},inactive:{text:"text-fg-secondary",hover:"hover:bg-surface-hover hover:text-fg-primary"},groupTitle:"text-fg-tertiary"},chevron:{size:"h-3 w-3",color:"text-fg-quaternary"},navigation:{width:{default:"56px",compact:"48px",expanded:"200px"},background:{default:"#fafafa",hover:"#f5f5f5"}},split:{transition:"transition-all duration-300",collapsedWidth:"0px"},content:{scrollbar:{width:"thin",color:{thumb:"#cbd5e1",track:"#f1f5f9"}}}};function Po(e){return e<=0?Je.spacing.itemPaddingX:e===1?Je.spacing.nestedIndent:e===2?Je.spacing.nestedIndentLevel2:e===3?Je.spacing.nestedIndentLevel3:`pl-${4+e*4}`}class pe{static create(t){const r=t*this.BASE_UNIT,s=r/16;return{value:r,rem:`${s}rem`,px:`${r}px`,tailwind:this.getTailwindClass(t)}}static getTailwindClass(t){return{0:"0",.5:"0.5",1:"1",1.5:"1.5",2:"2",2.5:"2.5",3:"3",3.5:"3.5",4:"4",5:"5",6:"6",8:"8",10:"10",12:"12",16:"16",20:"20",24:"24",32:"32",40:"40",48:"48",64:"64",80:"80",96:"96"}[t]||String(t)}}mn(pe,"BASE_UNIT",4);const gr={none:pe.create(0),"0.5":pe.create(.5),xs:pe.create(1),"1.5":pe.create(1.5),sm:pe.create(2),"2.5":pe.create(2.5),md:pe.create(3),"3.5":pe.create(3.5),base:pe.create(4),lg:pe.create(6),xl:pe.create(8),"2xl":pe.create(10),"3xl":pe.create(12),"4xl":pe.create(16),"5xl":pe.create(20),"6xl":pe.create(24)};function zo(e){return gr[e]}function T(e,t="p"){const s=gr[e].tailwind;return`${{p:"p",m:"m",px:"px",mx:"mx",py:"py",my:"my",pt:"pt",mt:"mt",pr:"pr",mr:"mr",pb:"pb",mb:"mb",pl:"pl",ml:"ml",gap:"gap","gap-x":"gap-x","gap-y":"gap-y","space-y":"space-y"}[t]}-${s}`}class fe{static createFontSize(t){const s={"2xs":{px:10,tailwind:"text-2xs"},xs:{px:12,tailwind:"text-xs"},sm:{px:14,tailwind:"text-sm"},base:{px:16,tailwind:"text-base"},lg:{px:18,tailwind:"text-lg"},xl:{px:20,tailwind:"text-xl"},"2xl":{px:24,tailwind:"text-2xl"},"3xl":{px:30,tailwind:"text-3xl"},"4xl":{px:36,tailwind:"text-4xl"},"5xl":{px:48,tailwind:"text-5xl"},"6xl":{px:60,tailwind:"text-6xl"}}[t];return{value:s.px,rem:`${s.px/16}rem`,px:`${s.px}px`,tailwind:s.tailwind}}static createLineHeight(t){const s={none:{value:1,tailwind:"leading-none"},tight:{value:1.25,tailwind:"leading-tight"},snug:{value:1.375,tailwind:"leading-snug"},normal:{value:1.5,tailwind:"leading-normal"},relaxed:{value:1.625,tailwind:"leading-relaxed"},loose:{value:2,tailwind:"leading-loose"}}[t];return{value:s.value,tailwind:s.tailwind}}static createFontWeight(t){const s={light:{value:300,tailwind:"font-light"},normal:{value:400,tailwind:"font-normal"},medium:{value:500,tailwind:"font-medium"},semibold:{value:600,tailwind:"font-semibold"},bold:{value:700,tailwind:"font-bold"}}[t];return{value:s.value,tailwind:s.tailwind}}static create(t,r="normal",s="normal"){return{fontSize:this.createFontSize(t),lineHeight:this.createLineHeight(r),fontWeight:this.createFontWeight(s)}}}const Oo={sans:{name:"sans",stack:'ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif',tailwind:"font-sans"},serif:{name:"serif",stack:'ui-serif, Georgia, Cambria, "Times New Roman", Times, serif',tailwind:"font-serif"},mono:{name:"mono",stack:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',tailwind:"font-mono"}},Vo={light:fe.createFontWeight("light"),normal:fe.createFontWeight("normal"),medium:fe.createFontWeight("medium"),semibold:fe.createFontWeight("semibold"),bold:fe.createFontWeight("bold")},ht={h1:fe.create("4xl","tight","bold"),h2:fe.create("3xl","tight","bold"),h3:fe.create("2xl","snug","semibold"),h4:fe.create("xl","snug","semibold"),h5:fe.create("lg","normal","medium"),h6:fe.create("base","normal","medium"),body:fe.create("base","relaxed","normal"),bodySmall:fe.create("sm","relaxed","normal"),bodyLarge:fe.create("lg","relaxed","normal"),label:fe.create("sm","normal","medium"),caption:fe.create("xs","normal","normal"),button:fe.create("base","normal","medium")};function Wo(e){return ht[e]}function ce(e){const t=ht[e];return`${t.fontSize.tailwind} ${t.lineHeight.tailwind} ${t.fontWeight.tailwind}`}function re(e){return ht[e].fontSize.tailwind}function ve(e){return fe.createFontSize(e).tailwind}function Fe(e){return ht[e].fontWeight.tailwind}function Et(e){return fe.createFontWeight(e).tailwind}function Ho(e){return ht[e].lineHeight.tailwind}const Bo=[50,100,200,300,400,500,600,700,800,900,950];function E(e,t,r){const s=Uo(e),a=qo(e);return{hex:e,rgb:s,hsl:a,cssVar:`var(--color-${t}-${r})`,tailwind:`${t}-${r}`}}function Uo(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?`${parseInt(t[1],16)}, ${parseInt(t[2],16)}, ${parseInt(t[3],16)}`:"0, 0, 0"}function qo(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);if(!t)return"0, 0%, 0%";const r=parseInt(t[1],16)/255,s=parseInt(t[2],16)/255,a=parseInt(t[3],16)/255,o=Math.max(r,s,a),i=Math.min(r,s,a);let c=0,u=0;const d=(o+i)/2;if(o!==i){const f=o-i;switch(u=d>.5?f/(2-o-i):f/(o+i),o){case r:c=((s-a)/f+(s<a?6:0))/6;break;case s:c=((a-r)/f+2)/6;break;case a:c=((r-s)/f+4)/6;break}}return`${Math.round(c*360)}, ${Math.round(u*100)}%, ${Math.round(d*100)}%`}const Ze={50:E("#eef2ff","indigo",50),100:E("#e0e7ff","indigo",100),200:E("#c7d2fe","indigo",200),300:E("#a5b4fc","indigo",300),400:E("#818cf8","indigo",400),500:E("#6366f1","indigo",500),600:E("#4f46e5","indigo",600),700:E("#4338ca","indigo",700),800:E("#3730a3","indigo",800),900:E("#312e81","indigo",900),950:E("#1e1b4b","indigo",950)},Qe={50:E("#f5f3ff","violet",50),100:E("#ede9fe","violet",100),200:E("#ddd6fe","violet",200),300:E("#c4b5fd","violet",300),400:E("#a78bfa","violet",400),500:E("#8b5cf6","violet",500),600:E("#7c3aed","violet",600),700:E("#6d28d9","violet",700),800:E("#5b21b6","violet",800),900:E("#4c1d95","violet",900),950:E("#2e1065","violet",950)},et={50:E("#ecfeff","cyan",50),100:E("#cffafe","cyan",100),200:E("#a5f3fc","cyan",200),300:E("#67e8f9","cyan",300),400:E("#22d3ee","cyan",400),500:E("#06b6d4","cyan",500),600:E("#0891b2","cyan",600),700:E("#0e7490","cyan",700),800:E("#155e75","cyan",800),900:E("#164e63","cyan",900),950:E("#083344","cyan",950)},tt={50:E("#f8fafc","slate",50),100:E("#f1f5f9","slate",100),200:E("#e2e8f0","slate",200),300:E("#cbd5e1","slate",300),400:E("#94a3b8","slate",400),500:E("#64748b","slate",500),600:E("#475569","slate",600),700:E("#334155","slate",700),800:E("#1e293b","slate",800),900:E("#0f172a","slate",900),950:E("#020617","slate",950)},In={50:E("#f9fafb","gray",50),100:E("#f3f4f6","gray",100),200:E("#e5e7eb","gray",200),300:E("#d1d5db","gray",300),400:E("#9ca3af","gray",400),500:E("#6b7280","gray",500),600:E("#4b5563","gray",600),700:E("#374151","gray",700),800:E("#1f2937","gray",800),900:E("#111827","gray",900),950:E("#030712","gray",950)},rt={50:E("#ecfdf5","emerald",50),100:E("#d1fae5","emerald",100),200:E("#a7f3d0","emerald",200),300:E("#6ee7b7","emerald",300),400:E("#34d399","emerald",400),500:E("#10b981","emerald",500),600:E("#059669","emerald",600),700:E("#047857","emerald",700),800:E("#065f46","emerald",800),900:E("#064e3b","emerald",900),950:E("#022c22","emerald",950)},Dn={50:E("#f0fdf4","green",50),100:E("#dcfce7","green",100),200:E("#bbf7d0","green",200),300:E("#86efac","green",300),400:E("#4ade80","green",400),500:E("#22c55e","green",500),600:E("#16a34a","green",600),700:E("#15803d","green",700),800:E("#166534","green",800),900:E("#14532d","green",900),950:E("#052e16","green",950)},st={50:E("#fffbeb","amber",50),100:E("#fef3c7","amber",100),200:E("#fde68a","amber",200),300:E("#fcd34d","amber",300),400:E("#fbbf24","amber",400),500:E("#f59e0b","amber",500),600:E("#d97706","amber",600),700:E("#b45309","amber",700),800:E("#92400e","amber",800),900:E("#78350f","amber",900),950:E("#451a03","amber",950)},Ln={50:E("#fefce8","yellow",50),100:E("#fef9c3","yellow",100),200:E("#fef08a","yellow",200),300:E("#fde047","yellow",300),400:E("#facc15","yellow",400),500:E("#eab308","yellow",500),600:E("#ca8a04","yellow",600),700:E("#a16207","yellow",700),800:E("#854d0e","yellow",800),900:E("#713f12","yellow",900),950:E("#422006","yellow",950)},Fn={50:E("#fff7ed","orange",50),100:E("#ffedd5","orange",100),200:E("#fed7aa","orange",200),300:E("#fdba74","orange",300),400:E("#fb923c","orange",400),500:E("#f97316","orange",500),600:E("#ea580c","orange",600),700:E("#c2410c","orange",700),800:E("#9a3412","orange",800),900:E("#7c2d12","orange",900),950:E("#431407","orange",950)},nt={50:E("#fff1f2","rose",50),100:E("#ffe4e6","rose",100),200:E("#fecdd3","rose",200),300:E("#fda4af","rose",300),400:E("#fb7185","rose",400),500:E("#f43f5e","rose",500),600:E("#e11d48","rose",600),700:E("#be123c","rose",700),800:E("#9f1239","rose",800),900:E("#881337","rose",900),950:E("#4c0519","rose",950)},_n={50:E("#fef2f2","red",50),100:E("#fee2e2","red",100),200:E("#fecaca","red",200),300:E("#fca5a5","red",300),400:E("#f87171","red",400),500:E("#ef4444","red",500),600:E("#dc2626","red",600),700:E("#b91c1c","red",700),800:E("#991b1b","red",800),900:E("#7f1d1d","red",900),950:E("#450a0a","red",950)},at={50:E("#f0f9ff","sky",50),100:E("#e0f2fe","sky",100),200:E("#bae6fd","sky",200),300:E("#7dd3fc","sky",300),400:E("#38bdf8","sky",400),500:E("#0ea5e9","sky",500),600:E("#0284c7","sky",600),700:E("#0369a1","sky",700),800:E("#075985","sky",800),900:E("#0c4a6e","sky",900),950:E("#082f49","sky",950)},Pn={50:E("#eff6ff","blue",50),100:E("#dbeafe","blue",100),200:E("#bfdbfe","blue",200),300:E("#93c5fd","blue",300),400:E("#60a5fa","blue",400),500:E("#3b82f6","blue",500),600:E("#2563eb","blue",600),700:E("#1d4ed8","blue",700),800:E("#1e40af","blue",800),900:E("#1e3a8a","blue",900),950:E("#172554","blue",950)},zn={50:E("#fdf4ff","fuchsia",50),100:E("#fae8ff","fuchsia",100),200:E("#f5d0fe","fuchsia",200),300:E("#f0abfc","fuchsia",300),400:E("#e879f9","fuchsia",400),500:E("#d946ef","fuchsia",500),600:E("#c026d3","fuchsia",600),700:E("#a21caf","fuchsia",700),800:E("#86198f","fuchsia",800),900:E("#701a75","fuchsia",900),950:E("#4a044e","fuchsia",950)},On={50:E("#fdf2f8","pink",50),100:E("#fce7f3","pink",100),200:E("#fbcfe8","pink",200),300:E("#f9a8d4","pink",300),400:E("#f472b6","pink",400),500:E("#ec4899","pink",500),600:E("#db2777","pink",600),700:E("#be185d","pink",700),800:E("#9d174d","pink",800),900:E("#831843","pink",900),950:E("#500724","pink",950)},Vn={50:E("#faf5ff","purple",50),100:E("#f3e8ff","purple",100),200:E("#e9d5ff","purple",200),300:E("#d8b4fe","purple",300),400:E("#c084fc","purple",400),500:E("#a855f7","purple",500),600:E("#9333ea","purple",600),700:E("#7e22ce","purple",700),800:E("#6b21a8","purple",800),900:E("#581c87","purple",900),950:E("#3b0764","purple",950)},Wn={50:E("#f0fdfa","teal",50),100:E("#ccfbf1","teal",100),200:E("#99f6e4","teal",200),300:E("#5eead4","teal",300),400:E("#2dd4bf","teal",400),500:E("#14b8a6","teal",500),600:E("#0d9488","teal",600),700:E("#0f766e","teal",700),800:E("#115e59","teal",800),900:E("#134e4a","teal",900),950:E("#042f2e","teal",950)},Hn={50:E("#f7fee7","lime",50),100:E("#ecfccb","lime",100),200:E("#d9f99d","lime",200),300:E("#bef264","lime",300),400:E("#a3e635","lime",400),500:E("#84cc16","lime",500),600:E("#65a30d","lime",600),700:E("#4d7c0f","lime",700),800:E("#3f6212","lime",800),900:E("#365314","lime",900),950:E("#1a2e05","lime",950)},cs={indigo:Ze,violet:Qe,cyan:et,slate:tt,gray:In,emerald:rt,green:Dn,amber:st,yellow:Ln,orange:Fn,rose:nt,red:_n,sky:at,blue:Pn,fuchsia:zn,pink:On,purple:Vn,teal:Wn,lime:Hn};function At(e,t){return cs[e][t]}function Go(e){return cs[e]}const Ut={primary:{light:Ze[400],DEFAULT:Ze[500],dark:Ze[600],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},secondary:{light:Qe[400],DEFAULT:Qe[500],dark:Qe[600],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},accent:{light:et[400],DEFAULT:et[500],dark:et[600],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},success:{light:rt[400],DEFAULT:rt[500],dark:rt[600],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},warning:{light:st[400],DEFAULT:st[500],dark:st[600],contrast:{hex:"#000000",rgb:"0, 0, 0",hsl:"0, 0%, 0%",cssVar:"var(--color-black)",tailwind:"black"}},error:{light:nt[400],DEFAULT:nt[500],dark:nt[600],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},info:{light:at[400],DEFAULT:at[500],dark:at[600],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},neutral:{light:tt[100],DEFAULT:tt[500],dark:tt[700],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}}},xr={primary:{light:Ze[500],DEFAULT:Ze[400],dark:Ze[300],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},secondary:{light:Qe[500],DEFAULT:Qe[400],dark:Qe[300],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},accent:{light:et[500],DEFAULT:et[400],dark:et[300],contrast:{hex:"#000000",rgb:"0, 0, 0",hsl:"0, 0%, 0%",cssVar:"var(--color-black)",tailwind:"black"}},success:{light:rt[500],DEFAULT:rt[400],dark:rt[300],contrast:{hex:"#000000",rgb:"0, 0, 0",hsl:"0, 0%, 0%",cssVar:"var(--color-black)",tailwind:"black"}},warning:{light:st[500],DEFAULT:st[400],dark:st[300],contrast:{hex:"#000000",rgb:"0, 0, 0",hsl:"0, 0%, 0%",cssVar:"var(--color-black)",tailwind:"black"}},error:{light:nt[500],DEFAULT:nt[400],dark:nt[300],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},info:{light:at[500],DEFAULT:at[400],dark:at[300],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}},neutral:{light:tt[700],DEFAULT:tt[400],dark:tt[300],contrast:{hex:"#ffffff",rgb:"255, 255, 255",hsl:"0, 0%, 100%",cssVar:"var(--color-white)",tailwind:"white"}}},Ko=Ut;function Wt(e,t="DEFAULT",r="light"){return(r==="dark"?xr:Ut)[e][t]}function Yo(e,t="light"){return(t==="dark"?xr:Ut)[e]}function Xo(e,t,r={}){const{format:s="hex",opacity:a}=r,o=At(e,t);let i;switch(s){case"rgb":i=a!==void 0?`rgba(${o.rgb}, ${a})`:`rgb(${o.rgb})`;break;case"hsl":i=a!==void 0?`hsla(${o.hsl}, ${a})`:`hsl(${o.hsl})`;break;case"cssVar":i=o.cssVar;break;case"tailwind":i=o.tailwind;break;case"hex":default:i=o.hex}return i}function Jo(e,t="DEFAULT",r={}){const{format:s="hex",opacity:a}=r,o=Wt(e,t);let i;switch(s){case"rgb":i=a!==void 0?`rgba(${o.rgb}, ${a})`:`rgb(${o.rgb})`;break;case"hsl":i=a!==void 0?`hsla(${o.hsl}, ${a})`:`hsl(${o.hsl})`;break;case"cssVar":i=o.cssVar;break;case"tailwind":i=o.tailwind;break;case"hex":default:i=o.hex}return i}function Zo(e,t,r={}){const{type:s="text",hover:a=!1,focus:o=!1,active:i=!1}=r,c=At(e,t),d=[`${s}-${c.tailwind}`];return a&&d.push(`hover:${s}-${c.tailwind}`),o&&d.push(`focus:${s}-${c.tailwind}`),i&&d.push(`active:${s}-${c.tailwind}`),d.join(" ")}function Qo(e,t="DEFAULT",r={}){const{type:s="text",hover:a=!1,focus:o=!1,active:i=!1}=r,c=Wt(e,t),d=[`${s}-${c.tailwind}`];if(a){const f=Wt(e,t==="DEFAULT"?"dark":"DEFAULT");d.push(`hover:${s}-${f.tailwind}`)}if(o&&d.push(`focus:${s}-${c.tailwind}`),i){const f=Wt(e,"dark");d.push(`active:${s}-${f.tailwind}`)}return d.join(" ")}function ei(e,t,r="bg"){const s=At(e,t);return`hover:${r}-${s.tailwind}`}function ti(e,t,r="border"){const s=At(e,t);return`focus:${r}-${s.tailwind}`}function ri(e,t){return`focus:ring-${At(e,t).tailwind}`}function si(e,t){return`rgba(${e.rgb}, ${t})`}function Bn(e){const t=ts(e);return t?.299*t[0]+.587*t[1]+.114*t[2]>128:!0}function ni(e){return Bn(e)?"#000000":"#ffffff"}function ts(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:null}function ds(e,t,r=.5){const s=ts(e),a=ts(t);if(!s||!a)return e;const o=Math.round(s[0]*(1-r)+a[0]*r),i=Math.round(s[1]*(1-r)+a[1]*r),c=Math.round(s[2]*(1-r)+a[2]*r);return`#${((1<<24)+(o<<16)+(i<<8)+c).toString(16).slice(1)}`}function ai(e,t){return ds(e,"#ffffff",t/100)}function oi(e,t){return ds(e,"#000000",t/100)}const ii={primary:{name:"indigo",light:400,default:500,dark:600},secondary:{name:"violet",light:400,default:500,dark:600},accent:{name:"cyan",light:400,default:500,dark:600}};class Nt{static create(t){const s={sm:{minWidth:640,tailwind:"sm"},md:{minWidth:768,tailwind:"md"},lg:{minWidth:1024,tailwind:"lg"},xl:{minWidth:1280,tailwind:"xl"},"2xl":{minWidth:1536,tailwind:"2xl"}}[t];return{name:t,minWidth:s.minWidth,px:`${s.minWidth}px`,rem:`${s.minWidth/16}rem`,tailwind:s.tailwind}}}const vr={sm:Nt.create("sm"),md:Nt.create("md"),lg:Nt.create("lg"),xl:Nt.create("xl"),"2xl":Nt.create("2xl")};function li(e){return vr[e]}function ci(e,t="min"){const r=vr[e];return`@media (${t==="min"?"min-width":"max-width"}: ${r.px})`}function Un(e){var t,r,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=Un(e[t]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}function qn(){for(var e,t,r=0,s="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=Un(e))&&(s&&(s+=" "),s+=t);return s}const di=(e,t)=>{const r=new Array(e.length+t.length);for(let s=0;s<e.length;s++)r[s]=e[s];for(let s=0;s<t.length;s++)r[e.length+s]=t[s];return r},ui=(e,t)=>({classGroupId:e,validator:t}),Gn=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),lr="-",pn=[],fi="arbitrary..",mi=e=>{const t=hi(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return pi(i);const c=i.split(lr),u=c[0]===""&&c.length>1?1:0;return Kn(c,u,t)},getConflictingClassGroupIds:(i,c)=>{if(c){const u=s[i],d=r[i];return u?d?di(d,u):u:d||pn}return r[i]||pn}}},Kn=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const a=e[t],o=r.nextPart.get(a);if(o){const d=Kn(e,t+1,o);if(d)return d}const i=r.validators;if(i===null)return;const c=t===0?e.join(lr):e.slice(t).join(lr),u=i.length;for(let d=0;d<u;d++){const f=i[d];if(f.validator(c))return f.classGroupId}},pi=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),s=t.slice(0,r);return s?fi+s:void 0})(),hi=e=>{const{theme:t,classGroups:r}=e;return bi(r,t)},bi=(e,t)=>{const r=Gn();for(const s in e){const a=e[s];us(a,r,s,t)}return r},us=(e,t,r,s)=>{const a=e.length;for(let o=0;o<a;o++){const i=e[o];gi(i,t,r,s)}},gi=(e,t,r,s)=>{if(typeof e=="string"){xi(e,t,r);return}if(typeof e=="function"){vi(e,t,r,s);return}yi(e,t,r,s)},xi=(e,t,r)=>{const s=e===""?t:Yn(t,e);s.classGroupId=r},vi=(e,t,r,s)=>{if(wi(e)){us(e(s),t,r,s);return}t.validators===null&&(t.validators=[]),t.validators.push(ui(r,e))},yi=(e,t,r,s)=>{const a=Object.entries(e),o=a.length;for(let i=0;i<o;i++){const[c,u]=a[i];us(u,Yn(t,c),r,s)}},Yn=(e,t)=>{let r=e;const s=t.split(lr),a=s.length;for(let o=0;o<a;o++){const i=s[o];let c=r.nextPart.get(i);c||(c=Gn(),r.nextPart.set(i,c)),r=c}return r},wi=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,ki=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),s=Object.create(null);const a=(o,i)=>{r[o]=i,t++,t>e&&(t=0,s=r,r=Object.create(null))};return{get(o){let i=r[o];if(i!==void 0)return i;if((i=s[o])!==void 0)return a(o,i),i},set(o,i){o in r?r[o]=i:a(o,i)}}},rs="!",hn=":",ji=[],bn=(e,t,r,s,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:s,isExternal:a}),Ni=e=>{const{prefix:t,experimentalParseClassName:r}=e;let s=a=>{const o=[];let i=0,c=0,u=0,d;const f=a.length;for(let y=0;y<f;y++){const k=a[y];if(i===0&&c===0){if(k===hn){o.push(a.slice(u,y)),u=y+1;continue}if(k==="/"){d=y;continue}}k==="["?i++:k==="]"?i--:k==="("?c++:k===")"&&c--}const p=o.length===0?a:a.slice(u);let m=p,h=!1;p.endsWith(rs)?(m=p.slice(0,-1),h=!0):p.startsWith(rs)&&(m=p.slice(1),h=!0);const x=d&&d>u?d-u:void 0;return bn(o,h,m,x)};if(t){const a=t+hn,o=s;s=i=>i.startsWith(a)?o(i.slice(a.length)):bn(ji,!1,i,void 0,!0)}if(r){const a=s;s=o=>r({className:o,parseClassName:a})}return s},Si=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,s)=>{t.set(r,1e6+s)}),r=>{const s=[];let a=[];for(let o=0;o<r.length;o++){const i=r[o],c=i[0]==="[",u=t.has(i);c||u?(a.length>0&&(a.sort(),s.push(...a),a=[]),s.push(i)):a.push(i)}return a.length>0&&(a.sort(),s.push(...a)),s}},Ci=e=>R({cache:ki(e.cacheSize),parseClassName:Ni(e),sortModifiers:Si(e)},mi(e)),$i=/\s+/,Ei=(e,t)=>{const{parseClassName:r,getClassGroupId:s,getConflictingClassGroupIds:a,sortModifiers:o}=t,i=[],c=e.trim().split($i);let u="";for(let d=c.length-1;d>=0;d-=1){const f=c[d],{isExternal:p,modifiers:m,hasImportantModifier:h,baseClassName:x,maybePostfixModifierPosition:y}=r(f);if(p){u=f+(u.length>0?" "+u:u);continue}let k=!!y,g=s(k?x.substring(0,y):x);if(!g){if(!k){u=f+(u.length>0?" "+u:u);continue}if(g=s(x),!g){u=f+(u.length>0?" "+u:u);continue}k=!1}const j=m.length===0?"":m.length===1?m[0]:o(m).join(":"),C=h?j+rs:j,b=C+g;if(i.indexOf(b)>-1)continue;i.push(b);const v=a(g,k);for(let N=0;N<v.length;++N){const D=v[N];i.push(C+D)}u=f+(u.length>0?" "+u:u)}return u},Mi=(...e)=>{let t=0,r,s,a="";for(;t<e.length;)(r=e[t++])&&(s=Xn(r))&&(a&&(a+=" "),a+=s);return a},Xn=e=>{if(typeof e=="string")return e;let t,r="";for(let s=0;s<e.length;s++)e[s]&&(t=Xn(e[s]))&&(r&&(r+=" "),r+=t);return r},Ti=(e,...t)=>{let r,s,a,o;const i=u=>{const d=t.reduce((f,p)=>p(f),e());return r=Ci(d),s=r.cache.get,a=r.cache.set,o=c,c(u)},c=u=>{const d=s(u);if(d)return d;const f=Ei(u,r);return a(u,f),f};return o=i,(...u)=>o(Mi(...u))},Ai=[],me=e=>{const t=r=>r[e]||Ai;return t.isThemeGetter=!0,t},Jn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Zn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ri=/^\d+\/\d+$/,Ii=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Di=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Li=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Fi=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_i=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wt=e=>Ri.test(e),te=e=>!!e&&!Number.isNaN(Number(e)),Ge=e=>!!e&&Number.isInteger(Number(e)),Ur=e=>e.endsWith("%")&&te(e.slice(0,-1)),Ve=e=>Ii.test(e),Pi=()=>!0,zi=e=>Di.test(e)&&!Li.test(e),Qn=()=>!1,Oi=e=>Fi.test(e),Vi=e=>_i.test(e),Wi=e=>!G(e)&&!K(e),Hi=e=>Rt(e,ra,Qn),G=e=>Jn.test(e),ut=e=>Rt(e,sa,zi),qr=e=>Rt(e,Ki,te),gn=e=>Rt(e,ea,Qn),Bi=e=>Rt(e,ta,Vi),rr=e=>Rt(e,na,Oi),K=e=>Zn.test(e),_t=e=>It(e,sa),Ui=e=>It(e,Yi),xn=e=>It(e,ea),qi=e=>It(e,ra),Gi=e=>It(e,ta),sr=e=>It(e,na,!0),Rt=(e,t,r)=>{const s=Jn.exec(e);return s?s[1]?t(s[1]):r(s[2]):!1},It=(e,t,r=!1)=>{const s=Zn.exec(e);return s?s[1]?t(s[1]):r:!1},ea=e=>e==="position"||e==="percentage",ta=e=>e==="image"||e==="url",ra=e=>e==="length"||e==="size"||e==="bg-size",sa=e=>e==="length",Ki=e=>e==="number",Yi=e=>e==="family-name",na=e=>e==="shadow",Xi=()=>{const e=me("color"),t=me("font"),r=me("text"),s=me("font-weight"),a=me("tracking"),o=me("leading"),i=me("breakpoint"),c=me("container"),u=me("spacing"),d=me("radius"),f=me("shadow"),p=me("inset-shadow"),m=me("text-shadow"),h=me("drop-shadow"),x=me("blur"),y=me("perspective"),k=me("aspect"),g=me("ease"),j=me("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],v=()=>[...b(),K,G],N=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],S=()=>[K,G,u],A=()=>[wt,"full","auto",...S()],M=()=>[Ge,"none","subgrid",K,G],$=()=>["auto",{span:["full",Ge,K,G]},Ge,K,G],L=()=>[Ge,"auto",K,G],_=()=>["auto","min","max","fr",K,G],F=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],z=()=>["start","end","center","stretch","center-safe","end-safe"],X=()=>["auto",...S()],q=()=>[wt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],H=()=>[e,K,G],le=()=>[...b(),xn,gn,{position:[K,G]}],ne=()=>["no-repeat",{repeat:["","x","y","space","round"]}],I=()=>["auto","cover","contain",qi,Hi,{size:[K,G]}],B=()=>[Ur,_t,ut],Y=()=>["","none","full",d,K,G],Q=()=>["",te,_t,ut],W=()=>["solid","dashed","dotted","double"],U=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],V=()=>[te,Ur,xn,gn],se=()=>["","none",x,K,G],ae=()=>["none",te,K,G],oe=()=>["none",te,K,G],Ne=()=>[te,K,G],ze=()=>[wt,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ve],breakpoint:[Ve],color:[Pi],container:[Ve],"drop-shadow":[Ve],ease:["in","out","in-out"],font:[Wi],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ve],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ve],shadow:[Ve],spacing:["px",te],text:[Ve],"text-shadow":[Ve],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",wt,G,K,k]}],container:["container"],columns:[{columns:[te,G,K,c]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:v()}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:A()}],"inset-x":[{"inset-x":A()}],"inset-y":[{"inset-y":A()}],start:[{start:A()}],end:[{end:A()}],top:[{top:A()}],right:[{right:A()}],bottom:[{bottom:A()}],left:[{left:A()}],visibility:["visible","invisible","collapse"],z:[{z:[Ge,"auto",K,G]}],basis:[{basis:[wt,"full","auto",c,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[te,wt,"auto","initial","none",G]}],grow:[{grow:["",te,K,G]}],shrink:[{shrink:["",te,K,G]}],order:[{order:[Ge,"first","last","none",K,G]}],"grid-cols":[{"grid-cols":M()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":M()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":_()}],"auto-rows":[{"auto-rows":_()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...F(),"normal"]}],"justify-items":[{"justify-items":[...z(),"normal"]}],"justify-self":[{"justify-self":["auto",...z()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...z(),{baseline:["","last"]}]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...z(),"baseline"]}],"place-self":[{"place-self":["auto",...z()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:X()}],mx:[{mx:X()}],my:[{my:X()}],ms:[{ms:X()}],me:[{me:X()}],mt:[{mt:X()}],mr:[{mr:X()}],mb:[{mb:X()}],ml:[{ml:X()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],w:[{w:[c,"screen",...q()]}],"min-w":[{"min-w":[c,"screen","none",...q()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[i]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",r,_t,ut]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,K,qr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ur,G]}],"font-family":[{font:[Ui,G,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,K,G]}],"line-clamp":[{"line-clamp":[te,"none",K,qr]}],leading:[{leading:[o,...S()]}],"list-image":[{"list-image":["none",K,G]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",K,G]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:H()}],"text-color":[{text:H()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:[te,"from-font","auto",K,ut]}],"text-decoration-color":[{decoration:H()}],"underline-offset":[{"underline-offset":[te,"auto",K,G]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",K,G]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",K,G]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:le()}],"bg-repeat":[{bg:ne()}],"bg-size":[{bg:I()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ge,K,G],radial:["",K,G],conic:[Ge,K,G]},Gi,Bi]}],"bg-color":[{bg:H()}],"gradient-from-pos":[{from:B()}],"gradient-via-pos":[{via:B()}],"gradient-to-pos":[{to:B()}],"gradient-from":[{from:H()}],"gradient-via":[{via:H()}],"gradient-to":[{to:H()}],rounded:[{rounded:Y()}],"rounded-s":[{"rounded-s":Y()}],"rounded-e":[{"rounded-e":Y()}],"rounded-t":[{"rounded-t":Y()}],"rounded-r":[{"rounded-r":Y()}],"rounded-b":[{"rounded-b":Y()}],"rounded-l":[{"rounded-l":Y()}],"rounded-ss":[{"rounded-ss":Y()}],"rounded-se":[{"rounded-se":Y()}],"rounded-ee":[{"rounded-ee":Y()}],"rounded-es":[{"rounded-es":Y()}],"rounded-tl":[{"rounded-tl":Y()}],"rounded-tr":[{"rounded-tr":Y()}],"rounded-br":[{"rounded-br":Y()}],"rounded-bl":[{"rounded-bl":Y()}],"border-w":[{border:Q()}],"border-w-x":[{"border-x":Q()}],"border-w-y":[{"border-y":Q()}],"border-w-s":[{"border-s":Q()}],"border-w-e":[{"border-e":Q()}],"border-w-t":[{"border-t":Q()}],"border-w-r":[{"border-r":Q()}],"border-w-b":[{"border-b":Q()}],"border-w-l":[{"border-l":Q()}],"divide-x":[{"divide-x":Q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...W(),"hidden","none"]}],"divide-style":[{divide:[...W(),"hidden","none"]}],"border-color":[{border:H()}],"border-color-x":[{"border-x":H()}],"border-color-y":[{"border-y":H()}],"border-color-s":[{"border-s":H()}],"border-color-e":[{"border-e":H()}],"border-color-t":[{"border-t":H()}],"border-color-r":[{"border-r":H()}],"border-color-b":[{"border-b":H()}],"border-color-l":[{"border-l":H()}],"divide-color":[{divide:H()}],"outline-style":[{outline:[...W(),"none","hidden"]}],"outline-offset":[{"outline-offset":[te,K,G]}],"outline-w":[{outline:["",te,_t,ut]}],"outline-color":[{outline:H()}],shadow:[{shadow:["","none",f,sr,rr]}],"shadow-color":[{shadow:H()}],"inset-shadow":[{"inset-shadow":["none",p,sr,rr]}],"inset-shadow-color":[{"inset-shadow":H()}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:H()}],"ring-offset-w":[{"ring-offset":[te,ut]}],"ring-offset-color":[{"ring-offset":H()}],"inset-ring-w":[{"inset-ring":Q()}],"inset-ring-color":[{"inset-ring":H()}],"text-shadow":[{"text-shadow":["none",m,sr,rr]}],"text-shadow-color":[{"text-shadow":H()}],opacity:[{opacity:[te,K,G]}],"mix-blend":[{"mix-blend":[...U(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":U()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[te]}],"mask-image-linear-from-pos":[{"mask-linear-from":V()}],"mask-image-linear-to-pos":[{"mask-linear-to":V()}],"mask-image-linear-from-color":[{"mask-linear-from":H()}],"mask-image-linear-to-color":[{"mask-linear-to":H()}],"mask-image-t-from-pos":[{"mask-t-from":V()}],"mask-image-t-to-pos":[{"mask-t-to":V()}],"mask-image-t-from-color":[{"mask-t-from":H()}],"mask-image-t-to-color":[{"mask-t-to":H()}],"mask-image-r-from-pos":[{"mask-r-from":V()}],"mask-image-r-to-pos":[{"mask-r-to":V()}],"mask-image-r-from-color":[{"mask-r-from":H()}],"mask-image-r-to-color":[{"mask-r-to":H()}],"mask-image-b-from-pos":[{"mask-b-from":V()}],"mask-image-b-to-pos":[{"mask-b-to":V()}],"mask-image-b-from-color":[{"mask-b-from":H()}],"mask-image-b-to-color":[{"mask-b-to":H()}],"mask-image-l-from-pos":[{"mask-l-from":V()}],"mask-image-l-to-pos":[{"mask-l-to":V()}],"mask-image-l-from-color":[{"mask-l-from":H()}],"mask-image-l-to-color":[{"mask-l-to":H()}],"mask-image-x-from-pos":[{"mask-x-from":V()}],"mask-image-x-to-pos":[{"mask-x-to":V()}],"mask-image-x-from-color":[{"mask-x-from":H()}],"mask-image-x-to-color":[{"mask-x-to":H()}],"mask-image-y-from-pos":[{"mask-y-from":V()}],"mask-image-y-to-pos":[{"mask-y-to":V()}],"mask-image-y-from-color":[{"mask-y-from":H()}],"mask-image-y-to-color":[{"mask-y-to":H()}],"mask-image-radial":[{"mask-radial":[K,G]}],"mask-image-radial-from-pos":[{"mask-radial-from":V()}],"mask-image-radial-to-pos":[{"mask-radial-to":V()}],"mask-image-radial-from-color":[{"mask-radial-from":H()}],"mask-image-radial-to-color":[{"mask-radial-to":H()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[te]}],"mask-image-conic-from-pos":[{"mask-conic-from":V()}],"mask-image-conic-to-pos":[{"mask-conic-to":V()}],"mask-image-conic-from-color":[{"mask-conic-from":H()}],"mask-image-conic-to-color":[{"mask-conic-to":H()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:le()}],"mask-repeat":[{mask:ne()}],"mask-size":[{mask:I()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",K,G]}],filter:[{filter:["","none",K,G]}],blur:[{blur:se()}],brightness:[{brightness:[te,K,G]}],contrast:[{contrast:[te,K,G]}],"drop-shadow":[{"drop-shadow":["","none",h,sr,rr]}],"drop-shadow-color":[{"drop-shadow":H()}],grayscale:[{grayscale:["",te,K,G]}],"hue-rotate":[{"hue-rotate":[te,K,G]}],invert:[{invert:["",te,K,G]}],saturate:[{saturate:[te,K,G]}],sepia:[{sepia:["",te,K,G]}],"backdrop-filter":[{"backdrop-filter":["","none",K,G]}],"backdrop-blur":[{"backdrop-blur":se()}],"backdrop-brightness":[{"backdrop-brightness":[te,K,G]}],"backdrop-contrast":[{"backdrop-contrast":[te,K,G]}],"backdrop-grayscale":[{"backdrop-grayscale":["",te,K,G]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[te,K,G]}],"backdrop-invert":[{"backdrop-invert":["",te,K,G]}],"backdrop-opacity":[{"backdrop-opacity":[te,K,G]}],"backdrop-saturate":[{"backdrop-saturate":[te,K,G]}],"backdrop-sepia":[{"backdrop-sepia":["",te,K,G]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",K,G]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[te,"initial",K,G]}],ease:[{ease:["linear","initial",g,K,G]}],delay:[{delay:[te,K,G]}],animate:[{animate:["none",j,K,G]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,K,G]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:ae()}],"rotate-x":[{"rotate-x":ae()}],"rotate-y":[{"rotate-y":ae()}],"rotate-z":[{"rotate-z":ae()}],scale:[{scale:oe()}],"scale-x":[{"scale-x":oe()}],"scale-y":[{"scale-y":oe()}],"scale-z":[{"scale-z":oe()}],"scale-3d":["scale-3d"],skew:[{skew:Ne()}],"skew-x":[{"skew-x":Ne()}],"skew-y":[{"skew-y":Ne()}],transform:[{transform:[K,G,"","none","gpu","cpu"]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ze()}],"translate-x":[{"translate-x":ze()}],"translate-y":[{"translate-y":ze()}],"translate-z":[{"translate-z":ze()}],"translate-none":["translate-none"],accent:[{accent:H()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:H()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",K,G]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",K,G]}],fill:[{fill:["none",...H()]}],"stroke-w":[{stroke:[te,_t,ut,qr]}],stroke:[{stroke:["none",...H()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Ji=Ti(Xi);function w(...e){return Ji(qn(e))}const vn=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,yn=qn,Zi=(e,t)=>r=>{var s;if((t==null?void 0:t.variants)==null)return yn(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:a,defaultVariants:o}=t,i=Object.keys(a).map(d=>{const f=r==null?void 0:r[d],p=o==null?void 0:o[d];if(f===null)return null;const m=vn(f)||vn(p);return a[d][m]}),c=r&&Object.entries(r).reduce((d,f)=>{let[p,m]=f;return m===void 0||(d[p]=m),d},{}),u=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((d,f)=>{let x=f,{class:p,className:m}=x,h=O(x,["class","className"]);return Object.entries(h).every(y=>{let[k,g]=y;return Array.isArray(g)?g.includes(R(R({},o),c)[k]):R(R({},o),c)[k]===g})?[...d,p,m]:d},[]);return yn(e,i,u,r==null?void 0:r.class,r==null?void 0:r.className)},xe=(e,t)=>{const r=Zi(e,t);return(s=>{const a=r(s);return w(a)})};class Me{static create(t,r="ease-in-out"){const s={fast:{value:"150ms",ms:150,tailwind:"duration-150"},base:{value:"200ms",ms:200,tailwind:"duration-200"},slow:{value:"300ms",ms:300,tailwind:"duration-300"},slower:{value:"500ms",ms:500,tailwind:"duration-500"}},a={"ease-in":{value:"cubic-bezier(0.4, 0, 1, 1)",tailwind:"ease-in",description:"Slow start, fast end"},"ease-out":{value:"cubic-bezier(0, 0, 0.2, 1)",tailwind:"ease-out",description:"Fast start, slow end"},"ease-in-out":{value:"cubic-bezier(0.4, 0, 0.2, 1)",tailwind:"ease-in-out",description:"Slow start and end, fast middle"},spring:{value:"cubic-bezier(0.68, -0.55, 0.265, 1.55)",tailwind:"ease-[cubic-bezier(0.68,-0.55,0.265,1.55)]",description:"Spring-like bounce effect"}};return{duration:s[t],easing:a[r]}}static createTransition(t,r="base",s="ease-in-out"){const a=this.create(r,s),o=Array.isArray(t)?t.join(", "):t,i=[a.duration.tailwind,a.easing.tailwind].join(" ");return{property:o,duration:a.duration.value,timingFunction:a.easing.value,tailwind:i}}}const Qi={fast:Me.create("fast"),base:Me.create("base"),slow:Me.create("slow"),slower:Me.create("slower"),colors:Me.createTransition(["color","background-color","border-color"],"base"),opacity:Me.createTransition("opacity","fast"),transform:Me.createTransition("transform","base"),all:Me.createTransition("all","base")};function el(e,t){return Me.create(e,t)}function he(e,t="ease-in-out"){const r=Me.create(e,t);return`${r.duration.tailwind} ${r.easing.tailwind}`}function tl(e,t="base",r="ease-in-out"){return Me.createTransition(e,t,r).tailwind}class Ee{static create(t){return{base:{value:0,tailwind:"z-0",description:"Base layer for normal content"},dropdown:{value:1e3,tailwind:"z-[1000]",description:"Dropdown menus and select options"},sticky:{value:1020,tailwind:"z-[1020]",description:"Sticky headers and navigation"},fixed:{value:1030,tailwind:"z-[1030]",description:"Fixed position elements"},"modal-backdrop":{value:1040,tailwind:"z-[1040]",description:"Modal backdrop/overlay"},modal:{value:1050,tailwind:"z-[1050]",description:"Modal dialogs and drawers"},popover:{value:1060,tailwind:"z-[1060]",description:"Popovers and tooltips"},tooltip:{value:1070,tailwind:"z-[1070]",description:"Tooltips (highest priority)"},toast:{value:1080,tailwind:"z-[1080]",description:"Toast notifications (highest priority)"}}[t]}}const wn={base:Ee.create("base"),dropdown:Ee.create("dropdown"),sticky:Ee.create("sticky"),fixed:Ee.create("fixed"),"modal-backdrop":Ee.create("modal-backdrop"),modal:Ee.create("modal"),popover:Ee.create("popover"),tooltip:Ee.create("tooltip"),toast:Ee.create("toast")};function rl(e){return Ee.create(e)}function ue(e){return Ee.create(e).tailwind}class ge{static create(t){const r=t/100,s={0:"Fully transparent",5:"Very light overlay",10:"Light overlay",20:"Subtle overlay",25:"Quarter opacity",30:"Light background",40:"Semi-transparent",50:"Half opacity",60:"Semi-opaque",70:"Mostly opaque",75:"Three-quarter opacity",80:"High opacity",90:"Very high opacity",95:"Nearly opaque",100:"Fully opaque"};return{value:t,decimal:r,tailwind:{0:"opacity-0",5:"opacity-5",10:"opacity-10",20:"opacity-20",25:"opacity-25",30:"opacity-30",40:"opacity-40",50:"opacity-50",60:"opacity-60",70:"opacity-70",75:"opacity-75",80:"opacity-80",90:"opacity-90",95:"opacity-95",100:"opacity-100"}[t],description:s[t]}}}ge.create(0),ge.create(5),ge.create(10),ge.create(20),ge.create(25),ge.create(30),ge.create(40),ge.create(50),ge.create(60),ge.create(70),ge.create(75),ge.create(80),ge.create(90),ge.create(95),ge.create(100);function sl(e){return ge.create(e)}function nl(e){return ge.create(e).tailwind}var nr={exports:{}},Pt={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var kn;function al(){if(kn)return Pt;kn=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(s,a,o){var i=null;if(o!==void 0&&(i=""+o),a.key!==void 0&&(i=""+a.key),"key"in a){o={};for(var c in a)c!=="key"&&(o[c]=a[c])}else o=a;return a=o.ref,{$$typeof:e,type:s,key:i,ref:a!==void 0?a:null,props:o}}return Pt.Fragment=t,Pt.jsx=r,Pt.jsxs=r,Pt}var zt={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var jn;function ol(){return jn||(jn=1,process.env.NODE_ENV!=="production"&&(function(){function e(I){if(I==null)return null;if(typeof I=="function")return I.$$typeof===$?null:I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case k:return"Fragment";case j:return"Profiler";case g:return"StrictMode";case N:return"Suspense";case D:return"SuspenseList";case M:return"Activity"}if(typeof I=="object")switch(typeof I.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),I.$$typeof){case y:return"Portal";case b:return I.displayName||"Context";case C:return(I._context.displayName||"Context")+".Consumer";case v:var B=I.render;return I=I.displayName,I||(I=B.displayName||B.name||"",I=I!==""?"ForwardRef("+I+")":"ForwardRef"),I;case S:return B=I.displayName||null,B!==null?B:e(I.type)||"Memo";case A:B=I._payload,I=I._init;try{return e(I(B))}catch(Y){}}return null}function t(I){return""+I}function r(I){try{var B=!1}catch(W){B=!0}if(B){B=console;var Y=B.error,Q=typeof Symbol=="function"&&Symbol.toStringTag&&I[Symbol.toStringTag]||I.constructor.name||"Object";return Y.call(B,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Q),t(I)}}function s(I){if(I===k)return"<>";if(typeof I=="object"&&I!==null&&I.$$typeof===A)return"<...>";try{var B=e(I);return B?"<"+B+">":"<...>"}catch(Y){return"<...>"}}function a(){var I=L.A;return I===null?null:I.getOwner()}function o(){return Error("react-stack-top-frame")}function i(I){if(_.call(I,"key")){var B=Object.getOwnPropertyDescriptor(I,"key").get;if(B&&B.isReactWarning)return!1}return I.key!==void 0}function c(I,B){function Y(){X||(X=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",B))}Y.isReactWarning=!0,Object.defineProperty(I,"key",{get:Y,configurable:!0})}function u(){var I=e(this.type);return q[I]||(q[I]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),I=this.props.ref,I!==void 0?I:null}function d(I,B,Y,Q,W,U){var V=Y.ref;return I={$$typeof:x,type:I,key:B,props:Y,_owner:Q},(V!==void 0?V:null)!==null?Object.defineProperty(I,"ref",{enumerable:!1,get:u}):Object.defineProperty(I,"ref",{enumerable:!1,value:null}),I._store={},Object.defineProperty(I._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(I,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(I,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:W}),Object.defineProperty(I,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:U}),Object.freeze&&(Object.freeze(I.props),Object.freeze(I)),I}function f(I,B,Y,Q,W,U){var V=B.children;if(V!==void 0)if(Q)if(F(V)){for(Q=0;Q<V.length;Q++)p(V[Q]);Object.freeze&&Object.freeze(V)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(V);if(_.call(B,"key")){V=e(I);var se=Object.keys(B).filter(function(oe){return oe!=="key"});Q=0<se.length?"{key: someKey, "+se.join(": ..., ")+": ...}":"{key: someKey}",ne[V+Q]||(se=0<se.length?"{"+se.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
+ let props = %s;
19
+ <%s {...props} />
20
+ React keys must be passed directly to JSX without using spread:
21
+ let props = %s;
22
+ <%s key={someKey} {...props} />`,Q,V,se,V),ne[V+Q]=!0)}if(V=null,Y!==void 0&&(r(Y),V=""+Y),i(B)&&(r(B.key),V=""+B.key),"key"in B){Y={};for(var ae in B)ae!=="key"&&(Y[ae]=B[ae])}else Y=B;return V&&c(Y,typeof I=="function"?I.displayName||I.name||"Unknown":I),d(I,V,Y,a(),W,U)}function p(I){m(I)?I._store&&(I._store.validated=1):typeof I=="object"&&I!==null&&I.$$typeof===A&&(I._payload.status==="fulfilled"?m(I._payload.value)&&I._payload.value._store&&(I._payload.value._store.validated=1):I._store&&(I._store.validated=1))}function m(I){return typeof I=="object"&&I!==null&&I.$$typeof===x}var h=l,x=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),b=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),$=Symbol.for("react.client.reference"),L=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_=Object.prototype.hasOwnProperty,F=Array.isArray,z=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(I){return I()}};var X,q={},H=h.react_stack_bottom_frame.bind(h,o)(),le=z(s(o)),ne={};zt.Fragment=k,zt.jsx=function(I,B,Y){var Q=1e4>L.recentlyCreatedOwnerStacks++;return f(I,B,Y,!1,Q?Error("react-stack-top-frame"):H,Q?z(s(I)):le)},zt.jsxs=function(I,B,Y){var Q=1e4>L.recentlyCreatedOwnerStacks++;return f(I,B,Y,!0,Q?Error("react-stack-top-frame"):H,Q?z(s(I)):le)}})()),zt}var Nn;function il(){return Nn||(Nn=1,process.env.NODE_ENV==="production"?nr.exports=al():nr.exports=ol()),nr.exports}var n=il();const aa=l.createContext(void 0);function oa({children:e,defaultTheme:t="light",storageKey:r="theme"}){const[s,a]=l.useState(()=>{if(typeof window=="undefined")return t;try{const d=localStorage.getItem(r);if(d==="light"||d==="dark")return d}catch(d){console.warn("Failed to read theme from localStorage:",d)}return t});l.useEffect(()=>{if(typeof window!="undefined"){try{localStorage.setItem(r,s)}catch(d){console.warn("Failed to save theme to localStorage:",d)}typeof document!="undefined"&&(document.documentElement.classList.remove("light","dark"),document.documentElement.classList.add(s))}},[s,r]);const u={theme:s,toggleTheme:()=>{a(d=>d==="light"?"dark":"light")},setTheme:d=>{a(d)},colors:s==="light"?Ut:xr,isDark:s==="dark"};return n.jsx(aa.Provider,{value:u,children:e})}function ll(){const e=l.useContext(aa);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e}const cl={breakpoints:vr,spacing:gr,typography:ht,animations:Qi,features:{reducedMotion:!1,highContrast:!1,debug:!1},behavior:{defaultAnimationDuration:200,defaultTransitionDuration:150,focusVisible:!0}},ia=l.createContext(void 0);function la({children:e,config:t,strategy:r="default"}){const s=l.useMemo(()=>{const d=R({},cl);return t?P(R(R({},d),t),{breakpoints:t.breakpoints||d.breakpoints,spacing:t.spacing||d.spacing,typography:t.typography||d.typography,animations:t.animations||d.animations,features:R(R({},d.features),t.features),behavior:R(R({},d.behavior),t.behavior)}):d},[t]);l.useEffect(()=>{typeof document!="undefined"&&(s.features.reducedMotion?document.documentElement.style.setProperty("--motion-reduce","1"):document.documentElement.style.removeProperty("--motion-reduce"))},[s.features.reducedMotion]),l.useEffect(()=>{typeof document!="undefined"&&(s.features.highContrast?document.documentElement.classList.add("high-contrast"):document.documentElement.classList.remove("high-contrast"))},[s.features.highContrast]);const a=l.useMemo(()=>d=>s.spacing[d],[s.spacing]),o=l.useMemo(()=>d=>s.breakpoints[d],[s.breakpoints]),i=l.useMemo(()=>d=>{var f;return(f=s.features[d])!=null?f:!1},[s.features]),c=l.useMemo(()=>d=>{console.warn("ConfigProvider: updateConfig called but config is immutable. Consider using state management for dynamic updates.")},[]),u={config:s,getSpacing:a,getBreakpoint:o,isFeatureEnabled:i,updateConfig:c};return n.jsx(ia.Provider,{value:u,children:e})}function dl(){const e=l.useContext(ia);if(e===void 0)throw new Error("useConfig must be used within a ConfigProvider");return e}const yr=l.createContext(void 0);function fs(){const e=l.useContext(yr);if(!e)throw new Error("Toast components must be used within a ToastProvider");return e}function ul(){return l.useContext(yr)}function ca({children:e,defaultDuration:t=5e3,maxToasts:r=5}){const[s,a]=l.useState([]),o=l.useCallback(d=>{var m;const f=`toast-${Date.now()}-${Math.random().toString(36).slice(2,11)}`,p=P(R({},d),{id:f,duration:(m=d.duration)!=null?m:t});return a(h=>[p,...h].slice(0,r)),f},[t,r]),i=l.useCallback(d=>{a(f=>f.filter(p=>p.id!==d))},[]),c=l.useCallback(()=>{a([])},[]),u={toasts:s,addToast:o,removeToast:i,clearAll:c};return n.jsx(yr.Provider,{value:u,children:e})}const wr=l.createContext(void 0);function Dt(){const e=l.useContext(wr);if(!e)throw new Error("Dialog components must be used within a Dialog component");return e}function fl(){return l.useContext(wr)}function ms({children:e,open:t,defaultOpen:r=!1,onOpenChange:s,titleId:a,descriptionId:o}){const[i,c]=l.useState(r),u=l.useRef(null),d=t!==void 0?t:i,f=m=>{t===void 0&&c(m),s==null||s(m)};l.useEffect(()=>{if(d)u.current=document.activeElement;else{const m=setTimeout(()=>{var h;(h=u.current)==null||h.focus()},0);return()=>clearTimeout(m)}},[d]),l.useEffect(()=>(d?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[d]);const p={isOpen:d,onOpenChange:f,onClose:()=>f(!1),titleId:a,descriptionId:o};return n.jsx(wr.Provider,{value:p,children:e})}const ml={ThemeProvider:oa,ConfigProvider:la,ToastProvider:ca,DialogProvider:ms},ar=ml;function pl(e,t){const{theme:r,config:s,toast:a,dialog:o,providers:i={theme:!0,config:!0,toast:!0,dialog:!0}}=t||{};let c=e;return i.dialog&&(c=n.jsx(ar.DialogProvider,P(R({},o),{children:c}))),i.toast&&(c=n.jsx(ar.ToastProvider,P(R({},a),{children:c}))),i.config&&(c=n.jsx(ar.ConfigProvider,P(R({},s),{children:c}))),i.theme&&(c=n.jsx(ar.ThemeProvider,P(R({},r),{children:c}))),c}function hl({children:e,config:t}){const r=l.useMemo(()=>pl(e,t),[e,t]);return n.jsx(n.Fragment,{children:r})}function bl(){return{}}class Ke{static create(t){const s={none:{px:0,tailwind:"rounded-none",description:"No border radius"},sm:{px:2,tailwind:"rounded-sm",description:"Small radius (2px) for subtle rounding"},md:{px:6,tailwind:"rounded-md",description:"Medium radius (6px) for buttons and inputs"},lg:{px:8,tailwind:"rounded-lg",description:"Large radius (8px) for cards and containers"},xl:{px:12,tailwind:"rounded-xl",description:"Extra large radius (12px) for prominent elements"},"2xl":{px:16,tailwind:"rounded-2xl",description:"2X large radius (16px) for large containers"},"3xl":{px:24,tailwind:"rounded-3xl",description:"3X large radius (24px) for very large containers"},full:{px:9999,tailwind:"rounded-full",description:"Full radius for circular elements"}}[t];return{value:s.px,rem:`${s.px/16}rem`,px:`${s.px}px`,tailwind:s.tailwind,description:s.description}}}const gl={none:Ke.create("none"),sm:Ke.create("sm"),md:Ke.create("md"),lg:Ke.create("lg"),xl:Ke.create("xl"),"2xl":Ke.create("2xl"),"3xl":Ke.create("3xl"),full:Ke.create("full")};function J(e){return gl[e].tailwind}function xl(s){var a=s,{variant:e="info",className:t}=a,r=O(a,["variant","className"]);const o={warning:w("bg-warning-bg","text-warning-dark","border-warning"),error:w("bg-error-bg","text-error-dark","border-error"),info:w("bg-info-bg","text-info-dark","border-info")};return n.jsx("div",R({role:"alert",className:w("border",T("base","px"),T("sm","py"),J("lg"),o[e],t)},r))}const vl={primary:{light:"text-indigo-400",DEFAULT:"text-fg-brand",dark:"text-indigo-600",contrast:"text-fg-inverse"},secondary:{light:"text-pink-300",DEFAULT:"text-fg-brand-secondary",dark:"text-pink-600",contrast:"text-fg-inverse"},success:{light:"text-green-300",DEFAULT:"text-fg-success",dark:"text-success-dark",contrast:"text-fg-inverse"},warning:{light:"text-yellow-300",DEFAULT:"text-fg-warning",dark:"text-warning-dark",contrast:"text-fg-inverse"},error:{light:"text-red-300",DEFAULT:"text-fg-error",dark:"text-error-dark",contrast:"text-fg-inverse"},info:{light:"text-blue-300",DEFAULT:"text-fg-info",dark:"text-info-dark",contrast:"text-fg-inverse"},neutral:{light:"text-fg-tertiary",DEFAULT:"text-fg-secondary",dark:"text-fg-primary",contrast:"text-fg-inverse"}};function yl(f,d){var p=f,{variant:e="paragraph",bold:t,italic:r,className:s,as:a,color:o,colorRole:i="neutral",colorShade:c="dark"}=p,u=O(p,["variant","bold","italic","className","as","color","colorRole","colorShade"]);const m=[];let h;if(a)h=a;else switch(e){case"heading":h="h2";break;case"list":h="li";break;case"paragraph":default:h="p";break}return e==="heading"?m.push(ce("h2")):e==="body"||e==="paragraph"?m.push(ce("body")):e==="bodySmall"?m.push(ce("bodySmall")):e==="bodyLarge"?m.push(ce("bodyLarge")):e==="caption"?m.push(ce("caption")):e==="label"?m.push(ce("label")):m.push(ce("body")),t&&m.push("font-bold"),r&&m.push("italic"),m.push(vl[i][c]),n.jsx(h,R({ref:d,className:w(...m,s)},u))}const Be=l.forwardRef(yl);/**
23
+ * @license lucide-react v0.552.0 - ISC
24
+ *
25
+ * This source code is licensed under the ISC license.
26
+ * See the LICENSE file in the root directory of this source tree.
27
+ */const wl=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),kl=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,s)=>s?s.toUpperCase():r.toLowerCase()),Sn=e=>{const t=kl(e);return t.charAt(0).toUpperCase()+t.slice(1)},da=(...e)=>e.filter((t,r,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===r).join(" ").trim(),jl=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
28
+ * @license lucide-react v0.552.0 - ISC
29
+ *
30
+ * This source code is licensed under the ISC license.
31
+ * See the LICENSE file in the root directory of this source tree.
32
+ */var Nl={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"};/**
33
+ * @license lucide-react v0.552.0 - ISC
34
+ *
35
+ * This source code is licensed under the ISC license.
36
+ * See the LICENSE file in the root directory of this source tree.
37
+ */const Sl=l.forwardRef((d,u)=>{var f=d,{color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:s,className:a="",children:o,iconNode:i}=f,c=O(f,["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"]);return l.createElement("svg",R(R(P(R({ref:u},Nl),{width:t,height:t,stroke:e,strokeWidth:s?Number(r)*24/Number(t):r,className:da("lucide",a)}),!o&&!jl(c)&&{"aria-hidden":"true"}),c),[...i.map(([p,m])=>l.createElement(p,m)),...Array.isArray(o)?o:[o]])});/**
38
+ * @license lucide-react v0.552.0 - ISC
39
+ *
40
+ * This source code is licensed under the ISC license.
41
+ * See the LICENSE file in the root directory of this source tree.
42
+ */const ie=(e,t)=>{const r=l.forwardRef((i,o)=>{var c=i,{className:s}=c,a=O(c,["className"]);return l.createElement(Sl,R({ref:o,iconNode:t,className:da(`lucide-${wl(Sn(e))}`,`lucide-${e}`,s)},a))});return r.displayName=Sn(e),r};/**
43
+ * @license lucide-react v0.552.0 - ISC
44
+ *
45
+ * This source code is licensed under the ISC license.
46
+ * See the LICENSE file in the root directory of this source tree.
47
+ */const Cl=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],$l=ie("arrow-up-down",Cl);/**
48
+ * @license lucide-react v0.552.0 - ISC
49
+ *
50
+ * This source code is licensed under the ISC license.
51
+ * See the LICENSE file in the root directory of this source tree.
52
+ */const El=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],Ml=ie("calendar",El);/**
53
+ * @license lucide-react v0.552.0 - ISC
54
+ *
55
+ * This source code is licensed under the ISC license.
56
+ * See the LICENSE file in the root directory of this source tree.
57
+ */const Tl=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ss=ie("check",Tl);/**
58
+ * @license lucide-react v0.552.0 - ISC
59
+ *
60
+ * This source code is licensed under the ISC license.
61
+ * See the LICENSE file in the root directory of this source tree.
62
+ */const Al=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ps=ie("chevron-down",Al);/**
63
+ * @license lucide-react v0.552.0 - ISC
64
+ *
65
+ * This source code is licensed under the ISC license.
66
+ * See the LICENSE file in the root directory of this source tree.
67
+ */const Rl=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Ht=ie("chevron-left",Rl);/**
68
+ * @license lucide-react v0.552.0 - ISC
69
+ *
70
+ * This source code is licensed under the ISC license.
71
+ * See the LICENSE file in the root directory of this source tree.
72
+ */const Il=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],pt=ie("chevron-right",Il);/**
73
+ * @license lucide-react v0.552.0 - ISC
74
+ *
75
+ * This source code is licensed under the ISC license.
76
+ * See the LICENSE file in the root directory of this source tree.
77
+ */const Dl=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],hs=ie("circle-alert",Dl);/**
78
+ * @license lucide-react v0.552.0 - ISC
79
+ *
80
+ * This source code is licensed under the ISC license.
81
+ * See the LICENSE file in the root directory of this source tree.
82
+ */const Ll=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],cr=ie("circle-check",Ll);/**
83
+ * @license lucide-react v0.552.0 - ISC
84
+ *
85
+ * This source code is licensed under the ISC license.
86
+ * See the LICENSE file in the root directory of this source tree.
87
+ */const Fl=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],_l=ie("clock",Fl);/**
88
+ * @license lucide-react v0.552.0 - ISC
89
+ *
90
+ * This source code is licensed under the ISC license.
91
+ * See the LICENSE file in the root directory of this source tree.
92
+ */const Pl=[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]],zl=ie("command",Pl);/**
93
+ * @license lucide-react v0.552.0 - ISC
94
+ *
95
+ * This source code is licensed under the ISC license.
96
+ * See the LICENSE file in the root directory of this source tree.
97
+ */const Ol=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Vl=ie("download",Ol);/**
98
+ * @license lucide-react v0.552.0 - ISC
99
+ *
100
+ * This source code is licensed under the ISC license.
101
+ * See the LICENSE file in the root directory of this source tree.
102
+ */const Wl=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],Hl=ie("ellipsis-vertical",Wl);/**
103
+ * @license lucide-react v0.552.0 - ISC
104
+ *
105
+ * This source code is licensed under the ISC license.
106
+ * See the LICENSE file in the root directory of this source tree.
107
+ */const Bl=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Ul=ie("eye-off",Bl);/**
108
+ * @license lucide-react v0.552.0 - ISC
109
+ *
110
+ * This source code is licensed under the ISC license.
111
+ * See the LICENSE file in the root directory of this source tree.
112
+ */const ql=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Gl=ie("eye",ql);/**
113
+ * @license lucide-react v0.552.0 - ISC
114
+ *
115
+ * This source code is licensed under the ISC license.
116
+ * See the LICENSE file in the root directory of this source tree.
117
+ */const Kl=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],Yl=ie("file",Kl);/**
118
+ * @license lucide-react v0.552.0 - ISC
119
+ *
120
+ * This source code is licensed under the ISC license.
121
+ * See the LICENSE file in the root directory of this source tree.
122
+ */const Xl=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],Jl=ie("funnel",Xl);/**
123
+ * @license lucide-react v0.552.0 - ISC
124
+ *
125
+ * This source code is licensed under the ISC license.
126
+ * See the LICENSE file in the root directory of this source tree.
127
+ */const Zl=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],Ql=ie("grip-vertical",Zl);/**
128
+ * @license lucide-react v0.552.0 - ISC
129
+ *
130
+ * This source code is licensed under the ISC license.
131
+ * See the LICENSE file in the root directory of this source tree.
132
+ */const ec=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],tc=ie("info",ec);/**
133
+ * @license lucide-react v0.552.0 - ISC
134
+ *
135
+ * This source code is licensed under the ISC license.
136
+ * See the LICENSE file in the root directory of this source tree.
137
+ */const rc=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ua=ie("loader-circle",rc);/**
138
+ * @license lucide-react v0.552.0 - ISC
139
+ *
140
+ * This source code is licensed under the ISC license.
141
+ * See the LICENSE file in the root directory of this source tree.
142
+ */const sc=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],nc=ie("menu",sc);/**
143
+ * @license lucide-react v0.552.0 - ISC
144
+ *
145
+ * This source code is licensed under the ISC license.
146
+ * See the LICENSE file in the root directory of this source tree.
147
+ */const ac=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],oc=ie("panel-left-close",ac);/**
148
+ * @license lucide-react v0.552.0 - ISC
149
+ *
150
+ * This source code is licensed under the ISC license.
151
+ * See the LICENSE file in the root directory of this source tree.
152
+ */const ic=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],lc=ie("panel-left-open",ic);/**
153
+ * @license lucide-react v0.552.0 - ISC
154
+ *
155
+ * This source code is licensed under the ISC license.
156
+ * See the LICENSE file in the root directory of this source tree.
157
+ */const cc=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],ns=ie("search",cc);/**
158
+ * @license lucide-react v0.552.0 - ISC
159
+ *
160
+ * This source code is licensed under the ISC license.
161
+ * See the LICENSE file in the root directory of this source tree.
162
+ */const dc=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],kt=ie("star",dc);/**
163
+ * @license lucide-react v0.552.0 - ISC
164
+ *
165
+ * This source code is licensed under the ISC license.
166
+ * See the LICENSE file in the root directory of this source tree.
167
+ */const uc=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],fc=ie("triangle-alert",uc);/**
168
+ * @license lucide-react v0.552.0 - ISC
169
+ *
170
+ * This source code is licensed under the ISC license.
171
+ * See the LICENSE file in the root directory of this source tree.
172
+ */const mc=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],pc=ie("upload",mc);/**
173
+ * @license lucide-react v0.552.0 - ISC
174
+ *
175
+ * This source code is licensed under the ISC license.
176
+ * See the LICENSE file in the root directory of this source tree.
177
+ */const hc=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],we=ie("x",hc),bc=xe("motion-safe:animate-spin",{variants:{size:{sm:"h-4 w-4",md:"h-5 w-5",lg:"h-8 w-8"},variant:{primary:"text-fg-brand",secondary:"text-fg-brand-secondary",neutral:"text-fg-secondary"}},defaultVariants:{size:"md",variant:"primary"}}),bs=l.memo(function(i){var c=i,{size:t="md",variant:r="primary",label:s,className:a=""}=c,o=O(c,["size","variant","label","className"]);return n.jsxs("div",P(R({className:w("inline-flex","items-center",a),role:"status","aria-label":s||"Loading","aria-live":"polite"},o),{children:[n.jsx(ua,{className:w(bc({size:t,variant:r})),"aria-hidden":"true"}),s&&n.jsx("span",{className:w(T("sm","ml"),re("bodySmall"),"text-fg-secondary","sr-only"),children:s})]}))});bs.displayName="Spinner";const gc=xe(w("inline-flex","items-center","justify-center",ce("button").split(" ")[2]||"font-medium",J("md"),"transition-colors","focus:outline-none","focus:ring-2","focus:ring-offset-2","disabled:opacity-50","disabled:cursor-not-allowed"),{variants:{variant:{primary:w("bg-surface-brand","text-fg-inverse","hover:opacity-90","focus:ring-line-brand"),secondary:w("bg-surface-secondary","text-fg-inverse","hover:opacity-90","focus:ring-line-secondary"),error:w("bg-error","text-fg-inverse","hover:opacity-90","focus:ring-error"),outline:w("border-2","border-line-default","bg-transparent","text-fg-primary","hover:bg-surface-hover","focus:ring-line-focus"),ghost:w("bg-transparent","text-fg-primary","hover:bg-surface-hover","focus:ring-line-focus"),iconOnly:w("bg-transparent","text-fg-primary","hover:bg-surface-hover","focus:ring-line-focus","p-0")},size:{sm:w(T("md","px"),T("1.5","py"),re("bodySmall"),T("1.5","gap")),md:w(T("base","px"),T("sm","py"),re("body"),T("sm","gap")),lg:w(T("lg","px"),T("md","py"),re("bodyLarge"),T("2.5","gap"))}},compoundVariants:[{variant:"iconOnly",size:"sm",class:w("h-8","w-8","p-0")},{variant:"iconOnly",size:"md",class:w("h-10","w-10","p-0")},{variant:"iconOnly",size:"lg",class:w("h-12","w-12","p-0")}],defaultVariants:{variant:"primary",size:"md"}});function Cn({children:e,position:t}){return e?n.jsx("span",{className:`inline-flex items-center ${t==="left"?"mr-0":"ml-0"}`,children:e}):null}const Z=l.memo(l.forwardRef(function(k,y){var g=k,{variant:t="primary",size:r="md",isLoading:s=!1,loadingText:a,loadingIcon:o,leftIcon:i,rightIcon:c,fullWidth:u=!1,as:d="button",className:f="",disabled:p=!1,children:m,"aria-label":h}=g,x=O(g,["variant","size","isLoading","loadingText","loadingIcon","leftIcon","rightIcon","fullWidth","as","className","disabled","children","aria-label"]);const j=l.useMemo(()=>w(gc({variant:t,size:r}),u&&"w-full",f),[t,r,u,f]),C=l.useMemo(()=>t==="iconOnly"||!m&&(i||c),[t,m,i,c]),b=l.useMemo(()=>C&&!h&&!m?"Button":h,[C,h,m]),v=l.useMemo(()=>t==="error"?"primary":t==="primary"||t==="secondary"?"neutral":"primary",[t]),N=l.useMemo(()=>r==="sm"?"sm":r==="lg"?"lg":"md",[r]),D=l.useMemo(()=>o||n.jsx(bs,{size:N,variant:v}),[o,N,v]),S=d==="button"&&!x.type?"button":void 0,A=R(R({className:j,disabled:p||s,"aria-busy":s,"aria-label":b,"aria-disabled":p||s},S?{type:S}:{}),x);return n.jsx(d,P(R({ref:y},A),{children:s?n.jsxs(n.Fragment,{children:[D,a&&n.jsx("span",{className:"ml-2",children:a}),!a&&m&&n.jsx("span",{className:"ml-2 opacity-0",children:m})]}):n.jsxs(n.Fragment,{children:[i&&n.jsx(Cn,{position:"left",children:i}),m,c&&n.jsx(Cn,{position:"right",children:c})]})}))}));Z.displayName="Button";const xc=l.memo(function({error:t,success:r,helperText:s,errorId:a,helperId:o}){const i=l.useMemo(()=>w(T("xs","mt"),ce("caption"),t&&"text-fg-error",r&&"text-fg-success",!t&&!r&&"text-fg-secondary"),[t,r]),c=l.useMemo(()=>s||(t?"Error":r?"Success":""),[s,t,r]);return n.jsx("div",{id:a||o,className:i,role:t||r?"alert":void 0,children:c})}),ke=l.memo(l.forwardRef(function(C,j){var b=C,{id:t,label:r,error:s=!1,success:a=!1,helperText:o,size:i="md",variant:c="outlined",leftIcon:u,rightIcon:d,showClearButton:f=!1,onClear:p,className:m="",disabled:h=!1,type:x="text",value:y,onChange:k}=b,g=O(b,["id","label","error","success","helperText","size","variant","leftIcon","rightIcon","showClearButton","onClear","className","disabled","type","value","onChange"]);const v=l.useMemo(()=>t||`input-${Math.random().toString(36).substr(2,9)}`,[t]),N=l.useMemo(()=>s?`${v}-error`:void 0,[s,v]),D=l.useMemo(()=>o?`${v}-helper`:void 0,[o,v]),[S,A]=l.useState(!1),M=l.useMemo(()=>x==="password",[x]),$=l.useMemo(()=>M&&S?"text":x,[M,S,x]),L=l.useMemo(()=>s?"error":a?"success":"default",[s,a]),_=l.useMemo(()=>y!=null&&y!=="",[y]),F=l.useMemo(()=>f&&_&&!h,[f,_,h]),z=l.useMemo(()=>"focus:border-line-focus",[]),X=l.useMemo(()=>"focus:border-error",[]),q=l.useMemo(()=>"focus:border-success",[]),H=l.useMemo(()=>z.replace("focus:border-","focus:ring-"),[z]),le=l.useCallback(V=>V==="error"?X.replace("focus:border-","focus:ring-"):q.replace("focus:border-","focus:ring-"),[X,q]),ne=xe(w("w-full",J("md"),"transition-colors","focus:outline-none","focus:ring-2","focus:ring-offset-2","disabled:opacity-50","disabled:cursor-not-allowed"),{variants:{variant:{default:w("border-0","border-b-2","border-line-default","focus:border-line-focus"),outlined:w("border","border-line-default","focus:border-line-focus"),filled:w("bg-surface-muted","border-0","focus:bg-surface-base","focus:ring-2",H)},size:{sm:w("h-8",re("bodySmall"),T("md","px")),md:w("h-10",re("body"),T("base","px")),lg:w("h-12",re("bodyLarge"),T("lg","px"))},state:{default:"",error:w("border-error","focus:border-error",le("error")),success:w("border-success","focus:border-success",le("success"))}},defaultVariants:{variant:"outlined",size:"md",state:"default"}}),I=l.useMemo(()=>w(ne({variant:c,size:i,state:L}),u&&(i==="sm"?"pl-9":i==="lg"?"pl-12":"pl-10"),(d||F||M)&&(i==="sm"?"pr-9":i==="lg"?"pr-12":"pr-10"),m),[c,i,L,u,d,F,M,m]),B=l.useMemo(()=>w("block",ce("label"),T("xs","mb"),h&&"opacity-50"),[h]),Y=l.useMemo(()=>i==="sm"?"h-4 w-4":i==="lg"?"h-5 w-5":"h-4 w-4",[i]),Q=l.useMemo(()=>i==="sm"?"top-2":i==="lg"?"top-3.5":"top-2.5",[i]),W=l.useCallback(V=>{var se;if(V.stopPropagation(),p)p();else if(k){const ae=(se=V.currentTarget.closest(".relative"))==null?void 0:se.querySelector("input");if(ae){const oe={target:ae,currentTarget:ae,bubbles:!0,cancelable:!0,defaultPrevented:!1,eventPhase:2,isTrusted:!1,nativeEvent:new Event("change"),preventDefault:()=>{},stopPropagation:()=>{},persist:()=>{},timeStamp:Date.now()};Object.defineProperty(oe.target,"value",{value:"",writable:!0}),Object.defineProperty(oe.currentTarget,"value",{value:"",writable:!0}),k(oe)}}},[p,k]),U=l.useCallback(()=>{A(V=>!V)},[]);return n.jsxs("div",{className:"w-full",children:[r&&n.jsx("label",{htmlFor:v,className:B,children:r}),n.jsxs("div",{className:"relative",children:[u&&n.jsx("div",{className:`absolute left-3 ${Q} text-fg-secondary opacity-60 pointer-events-none`,children:n.jsx("div",{className:Y,children:u})}),n.jsx("input",R({id:v,ref:j,type:$,className:I,disabled:h,value:y,onChange:k,"aria-invalid":s,"aria-required":g.required,"aria-describedby":N||D,suppressHydrationWarning:!0},g)),n.jsxs("div",{className:"absolute right-3 top-0 bottom-0 flex items-center gap-1",children:[F&&n.jsx(Z,{variant:"ghost",size:"sm",onClick:W,className:"h-auto p-1","aria-label":"Clear input",children:n.jsx(we,{className:Y})}),M&&n.jsx(Z,{variant:"ghost",size:"sm",onClick:U,className:"h-auto p-1","aria-label":S?"Hide password":"Show password",children:S?n.jsx(Ul,{className:Y}):n.jsx(Gl,{className:Y})}),d&&!F&&!M&&n.jsx("div",{className:`text-fg-secondary opacity-60 pointer-events-none ${Y}`,children:d})]})]}),(s||a||o)&&n.jsx(xc,{error:s,success:a,helperText:o,errorId:N,helperId:D})]})}));ke.displayName="Input";function fa({href:e,active:t}){const r=l.useMemo(()=>t!==void 0?t:!1,[t]),s=l.useMemo(()=>{try{const a=typeof require!="undefined"?require("next/link"):null;return a==null?void 0:a.default}catch(a){return}},[]);return{isActive:r,NextLink:s}}const vc=xe(w("inline-flex","items-center","transition-colors","focus:outline-none","focus:ring-2","focus:ring-offset-2","disabled:opacity-50","disabled:cursor-not-allowed","disabled:pointer-events-none","no-underline"),{variants:{variant:{default:w("text-fg-primary","hover:opacity-80","focus-visible:opacity-100","focus:ring-line-brand"),underline:w("text-fg-primary","hover:opacity-80","focus-visible:opacity-100","border-b-2","border-transparent","hover:border-current","focus:ring-line-brand"),background:w("text-fg-primary","hover:bg-surface-hover","rounded-md",J("md"),"focus:ring-line-brand")},size:{sm:w(T("sm","px"),T("xs","py"),re("bodySmall")),md:w(T("base","px"),T("sm","py"),re("body")),lg:w(T("lg","px"),T("md","py"),re("bodyLarge"))}},defaultVariants:{variant:"default",size:"md"},compoundVariants:[{variant:"underline",size:"sm",class:T("0.5","pb")},{variant:"underline",size:"md",class:T("xs","pb")},{variant:"underline",size:"lg",class:T("1.5","pb")},{variant:"background",size:"sm",class:T("xs","px")},{variant:"background",size:"md",class:T("sm","px")},{variant:"background",size:"lg",class:T("base","px")}]});function gs(m){var h=m,{href:e,children:t,active:r,disabled:s=!1,variant:a="default",size:o="md",as:i,className:c,"aria-label":u,onClick:d,onKeyDown:f}=h,p=O(h,["href","children","active","disabled","variant","size","as","className","aria-label","onClick","onKeyDown"]);const x=l.useMemo(()=>r!==void 0?r:!1,[r]),{NextLink:y}=fa({href:e,active:x}),k=i||y||"a",g=l.useMemo(()=>{if(!x)return"";switch(a){case"underline":return w("border-b-2","border-line-brand","text-fg-brand-emphasis");case"background":return w("bg-surface-brand-muted","text-fg-brand-emphasis");case"default":default:return w("text-fg-brand-emphasis","font-semibold")}},[x,a]),j=l.useCallback(v=>{if(s){v.preventDefault(),v.stopPropagation();return}d==null||d(v)},[s,d]),C=l.useCallback(v=>{if(s){(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),v.stopPropagation());return}f==null||f(v)},[s,f]),b=l.useMemo(()=>{const v=R({className:w(vc({variant:a,size:o}),g,s&&"opacity-50 cursor-not-allowed pointer-events-none",c),"aria-current":x?"page":void 0,"aria-disabled":s?!0:void 0,"aria-label":u,tabIndex:s?-1:void 0,onClick:j,onKeyDown:C,"data-active":x,"data-disabled":s},p);return y&&!i?P(R({},v),{href:s?void 0:e}):P(R({},v),{href:s?void 0:e})},[a,o,g,s,c,x,u,j,C,e,y,i,p]);return n.jsx(k,P(R({},b),{children:t}))}const yc=xe(w("inline-flex","items-center","justify-center",Fe("label"),J("md"),"border"),{variants:{variant:{success:"",warning:"",error:"",info:"",neutral:"",primary:"",secondary:""},size:{sm:w(T("1.5","px"),T("0.5","py"),re("caption")),md:w(T("sm","px"),T("xs","py"),re("caption")),lg:w(T("sm","px"),T("xs","py"),re("bodySmall"))},style:{solid:"",outline:""}},compoundVariants:[{variant:"success",style:"solid",class:w("bg-success-bg","text-success-dark","border-success")},{variant:"warning",style:"solid",class:w("bg-warning-bg","text-warning-dark","border-warning")},{variant:"error",style:"solid",class:w("bg-error-bg","text-error-dark","border-error")},{variant:"info",style:"solid",class:w("bg-info-bg","text-info-dark","border-info")},{variant:"neutral",style:"solid",class:w("bg-surface-muted","text-fg-primary","border-line-default")},{variant:"primary",style:"solid",class:w("bg-surface-brand","text-fg-brand-emphasis","border-line-brand")},{variant:"secondary",style:"solid",class:w("bg-pink-300","text-fg-brand-secondary-emphasis","border-line-secondary")},{variant:"success",style:"outline",class:w("bg-transparent","border-success","text-fg-success")},{variant:"warning",style:"outline",class:w("bg-transparent","border-warning","text-fg-warning")},{variant:"error",style:"outline",class:w("bg-transparent","border-error","text-fg-error")},{variant:"info",style:"outline",class:w("bg-transparent","border-info","text-fg-info")},{variant:"neutral",style:"outline",class:w("bg-transparent","border-line-default","text-fg-secondary")},{variant:"primary",style:"outline",class:w("bg-transparent","border-line-brand","text-fg-brand")},{variant:"secondary",style:"outline",class:w("bg-transparent","border-line-secondary","text-fg-brand-secondary")}],defaultVariants:{variant:"neutral",size:"md",style:"solid"}}),ma=l.memo(l.forwardRef(function(d,u){var f=d,{variant:t="neutral",size:r="md",style:s="solid",className:a="",children:o,"aria-label":i}=f,c=O(f,["variant","size","style","className","children","aria-label"]);const p=l.useMemo(()=>w(yc({variant:t,size:r,style:s}),a),[t,r,s,a]),m=l.useMemo(()=>{if(i)return i;if(typeof o=="string")return o;if(typeof o=="object"&&o!==null&&"props"in o){const h=o.props;if(h!=null&&h.children&&typeof h.children=="string")return h.children}},[i,o]);return n.jsx("span",P(R({ref:u,role:"status","aria-label":m,className:p},c),{children:o}))}));ma.displayName="Badge";const wc=l.memo(function({error:t,success:r,helperText:s,errorId:a,helperId:o}){const i=l.useMemo(()=>w(T("xs","mt"),ce("caption"),t&&"text-fg-error",r&&"text-fg-success",!t&&!r&&"text-fg-secondary"),[t,r]),c=l.useMemo(()=>s||(t?"Error":r?"Success":""),[s,t,r]);return n.jsx("div",{id:a||o,className:i,role:t||r?"alert":void 0,children:c})}),kr=l.memo(l.forwardRef(function(x,h){var y=x,{options:t=[],optionGroups:r,placeholder:s,label:a,error:o=!1,success:i=!1,helperText:c,size:u="md",className:d="",disabled:f=!1,id:p}=y,m=O(y,["options","optionGroups","placeholder","label","error","success","helperText","size","className","disabled","id"]);const k=l.useMemo(()=>p||`select-${Math.random().toString(36).substr(2,9)}`,[p]),g=l.useMemo(()=>o?`${k}-error`:void 0,[o,k]),j=l.useMemo(()=>c?`${k}-helper`:void 0,[c,k]),C=l.useMemo(()=>"focus:border-line-focus",[]),b=l.useMemo(()=>"focus:border-error",[]),v=l.useMemo(()=>"focus:border-success",[]),N=l.useCallback($=>$==="error"?b.replace("focus:border-","focus:ring-"):$==="success"?v.replace("focus:border-","focus:ring-"):C.replace("focus:border-","focus:ring-"),[b,v,C]),D=xe(w("block","w-full",J("md"),"border","bg-surface-base","transition-colors","focus:outline-none","focus:ring-2","focus:ring-offset-2","disabled:opacity-50","disabled:cursor-not-allowed"),{variants:{size:{sm:w("h-8",re("bodySmall"),T("md","px")),md:w("h-10",re("body"),T("base","px")),lg:w("h-12",re("bodyLarge"),T("lg","px"))},state:{default:w("border-line-default",N()),error:w("border-error",N("error")),success:w("border-success",N("success"))}},defaultVariants:{size:"md",state:"default"}}),S=l.useMemo(()=>o?"error":i?"success":"default",[o,i]),A=l.useMemo(()=>w(D({size:u,state:S}),d),[u,S,d]),M=l.useMemo(()=>w("block",ce("label"),T("xs","mb"),f&&"opacity-50"),[f]);return n.jsxs("div",{className:"w-full",children:[a&&n.jsx("label",{htmlFor:k,className:M,children:a}),n.jsxs("select",P(R({id:k,ref:h,className:A,disabled:f,"aria-invalid":o,"aria-required":m.required,"aria-describedby":g||j},m),{children:[s&&n.jsx("option",{value:"",disabled:!0,children:s}),r&&r.length>0?r.map(($,L)=>n.jsx("optgroup",{label:$.label,children:($.options||[]).map(_=>n.jsx("option",{value:_.value,disabled:_.disabled,children:_.label},_.value))},L)):(t||[]).map($=>n.jsx("option",{value:$.value,disabled:$.disabled,children:$.label},$.value))]})),(o||i||c)&&n.jsx(wc,{error:o,success:i,helperText:c,errorId:g,helperId:j})]})}));kr.displayName="Select";const pa=l.memo(l.forwardRef(function(i,o){var c=i,{error:t=!1,resize:r="vertical",className:s=""}=c,a=O(c,["error","resize","className"]);const u=l.useMemo(()=>"focus:border-line-focus",[]),d=l.useMemo(()=>"focus:border-error",[]),f=l.useMemo(()=>t?d.replace("focus:border-","focus:ring-"):u.replace("focus:border-","focus:ring-"),[t,d,u]),p=l.useMemo(()=>({none:"resize-none",both:"resize",horizontal:"resize-x",vertical:"resize-y"}),[]),m=l.useMemo(()=>w("block","w-full",J("md"),T("base","px"),T("md","py"),"border",re("body"),"focus:outline-none","focus:ring-2","focus:ring-offset-2",p[r],w(t?"border-error":"border-line-default",f),s),[r,p,t,f,s]),h=l.useMemo(()=>t&&a.id?`${a.id}-error`:void 0,[t,a.id]);return n.jsx("textarea",R({ref:o,className:m,"aria-invalid":t,"aria-describedby":h},a))}));pa.displayName="Textarea";const Mt=l.memo(l.forwardRef(function(i,o){var c=i,{variant:t="default",className:r="",children:s}=c,a=O(c,["variant","className","children"]);const u=l.useMemo(()=>w("block",re("label"),Fe("label"),"text-fg-primary"),[]),d=l.useMemo(()=>({default:"",required:w("after:content-['*']",`after:${T("0.5","ml")}`,"after:text-fg-error"),optional:w("after:content-['(optional)']","after:ml-1","after:text-fg-tertiary","after:font-normal")}),[]),f=l.useMemo(()=>w(u,d[t],r),[u,d,t,r]);return n.jsx("label",P(R({ref:o,className:f},a),{children:s}))}));Mt.displayName="Label";function ha(a){var o=a,{message:e,id:t,className:r=""}=o,s=O(o,["message","id","className"]);const i=[T("xs","mt"),re("bodySmall"),"text-fg-error","flex","items-center",T("xs","gap")],c=w(...i,r);return n.jsxs("div",P(R({role:"alert",id:t,className:c,"aria-live":"polite"},s),{children:[n.jsx(hs,{className:"h-4 w-4 shrink-0","aria-hidden":"true"}),n.jsx("span",{children:e})]}))}class Ie{static createWidth(t){const s={none:{px:0,tailwind:"border-0"},thin:{px:1,tailwind:"border"},base:{px:1,tailwind:"border"},medium:{px:2,tailwind:"border-2"},thick:{px:4,tailwind:"border-4"}}[t];return{value:s.px,px:`${s.px}px`,tailwind:s.tailwind}}static create(t,r="solid"){return{width:this.createWidth(t),style:r,description:`${t} ${r} border`}}}Ie.create("none"),Ie.create("thin"),Ie.create("base"),Ie.create("medium"),Ie.create("thick"),Ie.create("thin","dashed"),Ie.create("base","dashed"),Ie.create("thin","dotted"),Ie.create("base","dotted");function kc(e){return Ie.createWidth(e).tailwind}function Bt(u){var d=u,{content:e,children:t,position:r="top",delay:s=200,className:a="","aria-label":o,preservePositioning:i=!1}=d,c=O(d,["content","children","position","delay","className","aria-label","preservePositioning"]);const[f,p]=l.useState(!1),m=l.useRef(null),h=l.useRef(null),x=l.useRef(null),y=`tooltip-${Math.random().toString(36).substr(2,9)}`,k=()=>{const M=setTimeout(()=>{p(!0)},s);m.current=M},g=()=>{m.current&&(clearTimeout(m.current),m.current=null),p(!1)},j=()=>{p(!0)},C=()=>{p(!1)},b=M=>{var $;M.key==="Escape"&&(p(!1),($=x.current)==null||$.blur())};l.useEffect(()=>()=>{m.current&&(clearTimeout(m.current),m.current=null)},[]),l.useEffect(()=>{if(!f)return;const M=$=>{h.current&&!h.current.contains($.target)&&x.current&&!x.current.contains($.target)&&p(!1)};return document.addEventListener("mousedown",M),()=>{document.removeEventListener("mousedown",M)}},[f]);const v=M=>({top:"border-t-surface-inverse",bottom:"border-b-surface-inverse",left:"border-l-surface-inverse",right:"border-r-surface-inverse"})[M],N=xe(w("absolute",ue("tooltip"),T("sm","px"),T("xs","py"),re("caption"),"text-fg-inverse","bg-surface-inverse",J("md"),"shadow-lg","whitespace-nowrap"),{variants:{position:{top:w("bottom-full","left-1/2","transform","-translate-x-1/2",T("sm","mb")),bottom:w("top-full","left-1/2","transform","-translate-x-1/2",T("sm","mt")),left:w("right-full","top-1/2","transform","-translate-y-1/2",T("sm","mr")),right:w("left-full","top-1/2","transform","-translate-y-1/2",T("sm","ml"))}},defaultVariants:{position:"top"}}),D=xe(w("absolute","w-0","h-0",kc("thick"),"border-transparent"),{variants:{position:{top:w("top-full","left-1/2","transform","-translate-x-1/2",v("top")),bottom:w("bottom-full","left-1/2","transform","-translate-x-1/2",v("bottom")),left:w("left-full","top-1/2","transform","-translate-y-1/2",v("left")),right:w("right-full","top-1/2","transform","-translate-y-1/2",v("right"))}},defaultVariants:{position:"top"}}),S=l.isValidElement(t)?(()=>{const M=t,$=M.props,L=$.ref;return l.cloneElement(M,{ref:_=>{x.current=_,typeof L=="function"?L(_):L&&typeof L=="object"&&"current"in L&&(L.current=_)},"aria-describedby":f?y:$["aria-describedby"],onMouseEnter:_=>{var F;k(),(F=$.onMouseEnter)==null||F.call($,_)},onMouseLeave:_=>{var F;g(),(F=$.onMouseLeave)==null||F.call($,_)},onFocus:_=>{var F;j(),(F=$.onFocus)==null||F.call($,_)},onBlur:_=>{var F;C(),(F=$.onBlur)==null||F.call($,_)},onKeyDown:_=>{var F;b(_),(F=$.onKeyDown)==null||F.call($,_)}})})():t,A=w(i?"static":"relative","inline-block",a);return n.jsxs("div",P(R({className:A},c),{children:[S,f&&n.jsxs("div",{ref:h,id:y,className:w(N({position:r})),role:"tooltip","aria-live":"polite",children:[e,n.jsx("div",{className:w(D({position:r})),"aria-hidden":"true"})]})]}))}function ba(c){var u=c,{variant:e="text",width:t,height:r,lines:s=1,className:a="","aria-label":o}=u,i=O(u,["variant","width","height","lines","className","aria-label"]);const d=["motion-safe:animate-pulse","bg-surface-muted",J("sm")],f={text:"h-4",card:"h-32",list:"h-12",circle:"rounded-full"},p=w(...d,f[e],a),m={};t&&(m.width=t),r&&(m.height=r);const h=o||`Loading ${e} content`;return e==="text"&&s>1?n.jsx("div",P(R({className:T("sm","space-y"),role:"status","aria-busy":"true","aria-label":h},i),{children:Array.from({length:s}).map((x,y)=>n.jsx("div",{className:p,style:y===s-1?{width:"75%"}:m,"aria-hidden":"true"},y))})):n.jsx("div",R({className:p,style:m,role:"status","aria-busy":"true","aria-label":h},i))}function jc({defaultOpen:e=!0,open:t,onOpenChange:r,storageKey:s}){const a=l.useCallback(()=>{if(s&&typeof window!="undefined"){const f=localStorage.getItem(s);if(f!==null)return f==="true"}return e},[e,s]),[o,i]=l.useState(a),c=t!==void 0?t:o;l.useEffect(()=>{s&&typeof window!="undefined"&&t===void 0&&localStorage.setItem(s,String(o))},[o,s,t]);const u=l.useCallback(f=>{t===void 0&&i(f),r==null||r(f)},[t,r]),d=l.useCallback(()=>{u(!c)},[c,u]);return{isOpen:c,toggle:d,setOpen:u}}function ga(f){var p=f,{children:e,trigger:t,defaultOpen:r=!0,open:s,onOpenChange:a,disabled:o=!1,duration:i=200,storageKey:c,className:u=""}=p,d=O(p,["children","trigger","defaultOpen","open","onOpenChange","disabled","duration","storageKey","className"]);const{isOpen:m,toggle:h}=jc({defaultOpen:r,open:s,onOpenChange:a,storageKey:c}),x=l.useRef(null),[y,k]=l.useState(m?"auto":0);l.useEffect(()=>{x.current&&k(m?x.current.scrollHeight:0)},[m,e]),l.useEffect(()=>{if(!m||!x.current)return;const j=new ResizeObserver(()=>{x.current&&m&&k(x.current.scrollHeight)});return j.observe(x.current),()=>{j.disconnect()}},[m]);const g=`collapsible-content-${Math.random().toString(36).substr(2,9)}`;return n.jsxs("div",P(R({className:u},d),{children:[n.jsx("button",{type:"button",onClick:h,onKeyDown:j=>{(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),o||h())},disabled:o,"aria-expanded":m,"aria-controls":g,"aria-disabled":o,className:w("w-full","text-left","focus:outline-none","focus:ring-2","focus:ring-line-brand","focus:ring-offset-2",J("md")),children:t}),n.jsx("div",{id:g,ref:x,style:{height:typeof y=="number"?`${y}px`:y,overflow:"hidden",transition:`height ${i}ms ease-in-out`},"aria-hidden":!m,children:n.jsx("div",{children:e})})]}))}const jr=l.memo(l.forwardRef(function(f,d){var p=f,{id:t,label:r,error:s=!1,helperText:a,className:o="",disabled:i=!1,indeterminate:c=!1}=p,u=O(p,["id","label","error","helperText","className","disabled","indeterminate"]);const m=l.useMemo(()=>t||`checkbox-${Math.random().toString(36).substr(2,9)}`,[t]),h=l.useMemo(()=>s?`${m}-error`:void 0,[s,m]),x=l.useMemo(()=>a?`${m}-helper`:void 0,[a,m]),y=l.useMemo(()=>"focus:border-line-focus",[]),k=l.useMemo(()=>"focus:border-error",[]),g=l.useMemo(()=>s?k.replace("focus:border-","focus:ring-"):y.replace("focus:border-","focus:ring-"),[s,k,y]),j=l.useMemo(()=>w("h-4","w-4",J("sm"),"border","border-line-default","text-fg-brand","focus:ring-2",g,"focus:ring-offset-2","disabled:opacity-50","disabled:cursor-not-allowed","cursor-pointer",s&&"border-error",o),[g,s,o]),C=l.useMemo(()=>w(ce("label"),T("sm","ml"),i?"opacity-50 cursor-not-allowed":"cursor-pointer"),[i]),b=l.useRef(null),v=l.useCallback(N=>{b.current=N,typeof d=="function"?d(N):d&&(d.current=N),N&&(N.indeterminate=c)},[d,c]);return l.useEffect(()=>{b.current&&(b.current.indeterminate=c)},[c]),n.jsxs("div",{className:w("flex","flex-col",T("sm","my")),children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx("input",R({type:"checkbox",id:m,ref:v,className:j,disabled:i,"aria-invalid":s,"aria-describedby":h||x||void 0,"aria-label":r?void 0:"Checkbox"},u)),r&&n.jsx("label",{htmlFor:m,className:C,children:r})]}),(s||a)&&n.jsx("div",{id:h||x,className:w(T("xs","mt"),ce("caption"),s?"text-fg-error":"text-fg-secondary"),role:s?"alert":void 0,children:s?a||"This field has an error":a})]})}));jr.displayName="Checkbox";const xa=l.memo(l.forwardRef(function(d,u){var f=d,{id:t,label:r,error:s=!1,helperText:a,className:o="",disabled:i=!1}=f,c=O(f,["id","label","error","helperText","className","disabled"]);const p=l.useMemo(()=>t||`radio-${Math.random().toString(36).substr(2,9)}`,[t]),m=l.useMemo(()=>s?`${p}-error`:void 0,[s,p]),h=l.useMemo(()=>a?`${p}-helper`:void 0,[a,p]),x=l.useMemo(()=>"focus:border-line-focus",[]),y=l.useMemo(()=>"focus:border-error",[]),k=l.useMemo(()=>s?y.replace("focus:border-","focus:ring-"):x.replace("focus:border-","focus:ring-"),[s,y,x]),g=l.useMemo(()=>w("h-4","w-4","border","border-line-default","text-fg-brand","focus:ring-2",k,"focus:ring-offset-2","disabled:opacity-50","disabled:cursor-not-allowed","cursor-pointer",s&&"border-error",o),[k,s,o]),j=l.useMemo(()=>w(ce("label"),T("sm","ml"),i?"opacity-50 cursor-not-allowed":"cursor-pointer"),[i]);return n.jsxs("div",{className:w("flex","flex-col",T("sm","my")),children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx("input",R({type:"radio",id:p,ref:u,className:g,disabled:i,"aria-invalid":s,"aria-describedby":m||h||void 0,"aria-label":r?void 0:"Radio button"},c)),r&&n.jsx("label",{htmlFor:p,className:j,children:r})]}),(s||a)&&n.jsx("div",{id:m||h,className:w(T("xs","mt"),ce("caption"),s?"text-fg-error":"text-fg-secondary"),role:s?"alert":void 0,children:s?a||"This field has an error":a})]})}));xa.displayName="Radio";class ft{static create(t){return{none:{value:"none",tailwind:"shadow-none",description:"No shadow"},sm:{value:"0 1px 2px 0 rgb(0 0 0 / 0.05)",tailwind:"shadow-sm",description:"Small shadow for subtle elevation"},md:{value:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",tailwind:"shadow-md",description:"Medium shadow for cards and elevated elements"},lg:{value:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",tailwind:"shadow-lg",description:"Large shadow for modals and dropdowns"},xl:{value:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",tailwind:"shadow-xl",description:"Extra large shadow for prominent modals"},"2xl":{value:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",tailwind:"shadow-2xl",description:"2X large shadow for maximum elevation"},inner:{value:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",tailwind:"shadow-inner",description:"Inner shadow for inset elements"}}[t]}}const Nc={none:ft.create("none"),sm:ft.create("sm"),md:ft.create("md"),lg:ft.create("lg"),xl:ft.create("xl"),"2xl":ft.create("2xl"),inner:ft.create("inner")};function Se(e){return Nc[e].tailwind}const Ot={track:{sm:{w:"w-9",h:"h-5"},md:{w:"w-11",h:"h-6"},lg:{w:"w-14",h:"h-7"}},thumb:{sm:{w:"w-4",h:"h-4"},md:{w:"w-5",h:"h-5"},lg:{w:"w-6",h:"h-6"}},translate:{sm:"translate-x-4",md:"translate-x-5",lg:"translate-x-7"}};function Sc(e){return{track:`${Ot.track[e].w} ${Ot.track[e].h}`,thumb:`${Ot.thumb[e].w} ${Ot.thumb[e].h}`,translate:Ot.translate[e]}}const Cc=xe("w-full",{variants:{size:{sm:"h-1",md:"h-2",lg:"h-3"},variant:{primary:"bg-surface-muted",secondary:"bg-surface-muted",success:"bg-success-bg-emphasis",error:"bg-error-bg-emphasis",warning:"bg-warning-bg-emphasis",info:"bg-info-bg-emphasis"}},defaultVariants:{size:"md",variant:"primary"}}),$n=xe("transition-all",{variants:{variant:{primary:"bg-surface-brand",secondary:"bg-surface-secondary",success:"bg-success",error:"bg-error",warning:"bg-warning",info:"bg-info"}},defaultVariants:{variant:"primary"}}),xs=l.forwardRef(function(p,f){var m=p,{value:t,max:r=100,variant:s="primary",size:a="md",showLabel:o=!1,label:i,"aria-label":c,className:u=""}=m,d=O(m,["value","max","variant","size","showLabel","label","aria-label","className"]);const h=t===void 0,x=h?void 0:Math.min(Math.max(t/r*100,0),100),y=c||(h?"Loading in progress":`Progress: ${x==null?void 0:x.toFixed(0)}%`);return n.jsxs("div",P(R({ref:f,className:w("w-full",u)},d),{children:[o&&(i||!h)&&n.jsxs("div",{className:w("flex","items-center","justify-between",T("xs","mb")),children:[i&&n.jsx("span",{className:w(re("bodySmall"),Fe("label"),"text-fg-primary"),children:i}),!h&&x!==void 0&&n.jsxs("span",{className:w(re("bodySmall"),"text-fg-secondary"),children:[x.toFixed(0),"%"]})]}),n.jsx("div",{role:"progressbar","aria-valuemin":h?void 0:0,"aria-valuemax":h?void 0:r,"aria-valuenow":h?void 0:t,"aria-label":y,"aria-busy":h,className:w("relative","w-full","overflow-hidden",Cc({size:a,variant:s}),J("full")),children:h?n.jsx("div",{className:w("absolute","top-0","left-0","bottom-0",$n({variant:s}),J("full"),"motion-reduce:animate-none"),style:{width:"30%",animation:"progress-indeterminate 1.5s ease-in-out infinite"}}):n.jsx("div",{className:w("h-full",$n({variant:s}),J("full"),"transition-all","duration-300","ease-out"),style:{width:`${x}%`},"aria-hidden":"true"})})]}))});xs.displayName="Progress";const va=l.memo(l.forwardRef(function(m,p){var h=m,{size:t="md",label:r,description:s,error:a=!1,className:o="",disabled:i=!1,checked:c,onChange:u,id:d}=h,f=O(h,["size","label","description","error","className","disabled","checked","onChange","id"]);const x=l.useMemo(()=>d||`switch-${Math.random().toString(36).substr(2,9)}`,[d]),y=l.useMemo(()=>r?`${x}-label`:void 0,[r,x]),k=l.useMemo(()=>s?`${x}-description`:void 0,[s,x]),g=l.useMemo(()=>Sc(t),[t]),j=l.useMemo(()=>"focus:border-line-focus".replace("focus:border-","focus:ring-"),[]),C=l.useMemo(()=>w("relative","inline-flex","shrink-0","cursor-pointer","rounded-full","border-2","border-transparent",he("base"),"focus:outline-none","focus:ring-2",j,"focus:ring-offset-2",g.track,c?"bg-surface-brand":"bg-surface-muted",a&&!c&&"border-error",i&&"opacity-50 cursor-not-allowed",o),[j,g.track,c,a,i,o]),b=l.useMemo(()=>w("pointer-events-none","inline-block","rounded-full","bg-surface-base","shadow","transform",he("base"),g.thumb,c?g.translate:"translate-x-0"),[g.thumb,g.translate,c]);return n.jsxs("div",{className:w("flex","items-start",T("md","gap")),children:[n.jsxs("div",{className:"flex items-center",children:[n.jsx("button",{type:"button",className:C,role:"switch","aria-checked":c,"aria-labelledby":y,"aria-describedby":k,disabled:i,onClick:l.useCallback(v=>{if(!i&&u){const N=P(R({},v),{target:P(R({},v.target),{checked:!c}),currentTarget:P(R({},v.currentTarget),{checked:!c})});u(N)}},[i,u,c]),onKeyDown:l.useCallback(v=>{if((v.key==="Enter"||v.key===" ")&&!i&&u){v.preventDefault();const N=P(R({},v),{target:P(R({},v.target),{checked:!c}),currentTarget:P(R({},v.currentTarget),{checked:!c})});u(N)}},[i,u,c]),children:n.jsx("span",{className:b})}),n.jsx("input",R({ref:p,type:"checkbox",id:x,checked:c,onChange:u,disabled:i,className:"sr-only","aria-hidden":"true"},f))]}),(r||s)&&n.jsxs("div",{className:"flex-1",children:[r&&n.jsx("label",{id:y,htmlFor:x,className:w("block",re("bodySmall"),Fe("label"),a?"text-fg-error":"text-fg-primary",i?"opacity-50":"cursor-pointer"),children:r}),s&&n.jsx("p",{id:k,className:w(T("xs","mt"),re("bodySmall"),a?"text-fg-error":"text-fg-secondary"),children:s})]})]})}));va.displayName="Switch";const vs=l.memo(function(o){var i=o,{orientation:t="horizontal",variant:r="solid",className:s=""}=i,a=O(i,["orientation","variant","className"]);const c=l.useMemo(()=>{const u=["border-0","border-line-default"],d={horizontal:"w-full border-t",vertical:"h-full border-l self-stretch"},f={solid:"border-solid",dashed:"border-dashed",dotted:"border-dotted"};return w(...u,d[t],f[r],s)},[t,r,s]);return t==="vertical"?n.jsx("div",R({className:c,role:"separator","aria-orientation":"vertical"},a)):n.jsx("hr",R({className:c,role:"separator","aria-orientation":"horizontal"},a))});vs.displayName="Separator";const ya=l.forwardRef(function(g,k){var j=g,{value:t,defaultValue:r,min:s=0,max:a=100,step:o=1,variant:i="single",size:c="md",disabled:u=!1,showValue:d=!1,marks:f=[],onChange:p,onValueChange:m,label:h,className:x=""}=j,y=O(j,["value","defaultValue","min","max","step","variant","size","disabled","showValue","marks","onChange","onValueChange","label","className"]);const C=l.useRef(null),[b,v]=l.useState(r||(i==="range"?[s,a]:s)),[N,D]=l.useState(!1),[S,A]=l.useState(null),M=t!==void 0,$=M?t:b,L=W=>(W-s)/(a-s)*100,_=W=>{if(!C.current)return s;const U=C.current.getBoundingClientRect(),V=Math.max(0,Math.min(1,(W-U.left)/U.width)),se=s+V*(a-s);return Math.round(se/o)*o},F=(W,U="min")=>{if(u)return;W.preventDefault(),D(!0),A(U);const V=ae=>{if(!C.current)return;const oe=_(ae.clientX);z(oe,U)},se=()=>{D(!1),A(null),document.removeEventListener("mousemove",V),document.removeEventListener("mouseup",se)};document.addEventListener("mousemove",V),document.addEventListener("mouseup",se)},z=(W,U="min")=>{const V=Math.max(s,Math.min(a,W));if(i==="range"){const[se,ae]=Array.isArray($)?$:[s,a];let oe;U==="min"?oe=[Math.min(V,ae),ae]:oe=[se,Math.max(V,se)],M||v(oe),p==null||p(oe),m==null||m(oe)}else M||v(V),p==null||p(V),m==null||m(V)},X=W=>{if(u||N)return;const U=_(W.clientX);z(U)},q=()=>"focus:ring-line-brand ring-offset-2",H=xe(w("relative","cursor-pointer"),{variants:{size:{sm:"h-1",md:"h-2",lg:"h-3"},disabled:{true:"opacity-50 cursor-not-allowed",false:""}},defaultVariants:{size:"md",disabled:!1}}),le=xe(w("absolute","bg-surface-brand","rounded-full","border-2","border-white","shadow-md","cursor-grab","active:cursor-grabbing",he("base"),"-translate-x-1/2","-translate-y-1/2","top-1/2"),{variants:{size:{sm:"w-3 h-3",md:"w-4 h-4",lg:"w-5 h-5"},active:{true:q(),false:""}},defaultVariants:{size:"md",active:!1}}),ne=typeof $=="number"?$:$[0],I=Array.isArray($)?$[0]:s,B=Array.isArray($)?$[1]:ne,Y=L(I),Q=L(B);return n.jsxs("div",P(R({ref:k,className:w("w-full",x)},y),{children:[h&&n.jsxs("label",{className:w("block",re("bodySmall"),Fe("label"),"text-fg-primary",T("sm","mb")),children:[h,d&&n.jsx("span",{className:w(T("sm","ml"),"text-fg-secondary"),children:i==="range"?`${I} - ${B}`:ne})]}),n.jsxs("div",{ref:C,className:w(H({size:c,disabled:u}),"bg-surface-muted",J("full")),onClick:X,role:i==="range"?void 0:"slider","aria-valuemin":i==="range"?void 0:s,"aria-valuemax":i==="range"?void 0:a,"aria-valuenow":i==="range"?void 0:ne,"aria-disabled":i==="range"?void 0:u,"aria-label":i==="range"?void 0:h,children:[n.jsx("div",{className:w("absolute",H({size:c}),"bg-surface-brand",J("full"),he("base")),style:{left:`${Y}%`,width:`${Q-Y}%`}}),f.map(W=>{const U=L(W);return n.jsx("div",{className:w("absolute","w-1","h-1","bg-line-strong",J("full"),"-translate-x-1/2"),style:{left:`${U}%`,top:"50%",transform:"translate(-50%, -50%)"}},W)}),i==="range"?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:w(le({size:c,active:S==="min"})),style:{left:`${Y}%`},onMouseDown:W=>F(W,"min"),role:"slider","aria-valuemin":s,"aria-valuemax":B,"aria-valuenow":I}),n.jsx("div",{className:w(le({size:c,active:S==="max"})),style:{left:`${Q}%`},onMouseDown:W=>F(W,"max"),role:"slider","aria-valuemin":I,"aria-valuemax":a,"aria-valuenow":B})]}):n.jsx("div",{className:w(le({size:c,active:N})),style:{left:`${Q}%`},onMouseDown:W=>F(W)}),d&&!h&&n.jsx("div",{className:"absolute -top-6 left-0 right-0 flex justify-center",children:n.jsx("span",{className:w(re("caption"),"text-fg-secondary","bg-surface-overlay",T("sm","px"),T("xs","py"),J("md"),"shadow"),children:i==="range"?`${I} - ${B}`:ne})})]})]}))});ya.displayName="Slider";const $c=xe(w("inline-flex","items-center","font-medium",J("full"),T("xs","gap")),{variants:{variant:{default:w("bg-surface-muted","text-fg-primary","border","border-line-default"),outlined:w("bg-transparent","text-fg-primary","border","border-line-default"),filled:w("bg-surface-brand","text-fg-inverse","border","border-transparent")},size:{sm:w(T("xs","px"),T("xs","py"),re("caption")),md:w(T("sm","px"),T("xs","py"),re("bodySmall")),lg:w(T("md","px"),T("sm","py"),re("body"))},selected:{true:w("bg-surface-brand","text-fg-inverse","border","border-line-brand"),false:""},disabled:{true:"opacity-50 cursor-not-allowed",false:""}},compoundVariants:[{selected:!0,variant:"default",class:""},{selected:!0,variant:"outlined",class:""},{selected:!0,variant:"filled",class:""}],defaultVariants:{variant:"default",size:"md",selected:!1,disabled:!1}}),ys=l.forwardRef(function(h,m){var x=h,{children:t,variant:r="default",size:s="md",onRemove:a,selected:o=!1,disabled:i=!1,className:c="","aria-label":u,onClick:d,tabIndex:f}=x,p=O(x,["children","variant","size","onRemove","selected","disabled","className","aria-label","onClick","tabIndex"]);const y=d!==void 0||o!==!1&&o!==void 0,k=o?"option":y?"button":void 0,j=(()=>{if(u)return u;if(typeof t=="string")return t;if(typeof t=="object"&&t!==null&&"props"in t){const v=t.props;if(v!=null&&v.children&&typeof v.children=="string")return v.children}})(),C=k==="button"&&!j,b=v=>{i||(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),d&&d())};return n.jsxs("div",P(R({ref:m,className:w($c({variant:r,size:s,selected:o,disabled:i}),a&&T("xs","pr"),y&&!i&&"cursor-pointer focus:outline-none focus:ring-2 focus:ring-line-focus focus:ring-offset-2",c),role:k,"aria-selected":o?!0:void 0,"aria-disabled":i,"aria-label":C?"Chip":u||(k==="button"?j:void 0),tabIndex:f!==void 0?f:y&&!i?0:void 0,onClick:i?void 0:d,onKeyDown:b},p),{children:[n.jsx("span",{children:t}),a&&!i&&n.jsx("button",{type:"button",onClick:v=>{v.stopPropagation(),a()},className:w(T("xs","ml"),"hover:bg-tint-hover",J("full"),T("xs","p"),"transition-colors","focus:outline-none","focus:ring-2","focus:ring-line-focus","focus:ring-offset-1"),"aria-label":`Remove ${j||"chip"}`,children:n.jsx(we,{className:"h-3 w-3","aria-hidden":"true"})})]}))});ys.displayName="Chip";const dr=l.forwardRef(function(f,d){var p=f,{src:t,alt:r,fallback:s,size:a="md",variant:o="circle","aria-label":i,className:c=""}=p,u=O(p,["src","alt","fallback","size","variant","aria-label","className"]);const[m,h]=l.useState(!1),[x,y]=l.useState(!1),k={xs:"h-6 w-6 text-xs",sm:"h-8 w-8 text-sm",md:"h-10 w-10 text-base",lg:"h-12 w-12 text-lg",xl:"h-16 w-16 text-xl"},g={circle:"rounded-full",square:"rounded-none",rounded:"rounded-md"},j=!t||m,C=typeof s=="string"?s.toUpperCase().slice(0,2):s,b=i||r||"User avatar";return n.jsxs("div",P(R({ref:d,className:w("relative","inline-flex","items-center","justify-center","shrink-0","font-medium","overflow-hidden",k[a],g[o],"bg-surface-muted","text-fg-primary",c),role:"img","aria-label":b},u),{children:[!j&&t&&n.jsx("img",{src:t,alt:r||"",className:w("w-full","h-full","object-cover",o==="circle"?"rounded-full":o==="square"?"rounded-none":"rounded-md",x?"opacity-100":"opacity-0","transition-opacity","duration-200"),onLoad:()=>y(!0),onError:()=>{h(!0),y(!1)},"aria-hidden":"true"}),j&&n.jsx("span",{className:w("flex","items-center","justify-center","w-full","h-full",o==="circle"?"rounded-full":o==="square"?"rounded-none":"rounded-md"),"aria-hidden":"true",children:C||"?"})]}))});dr.displayName="Avatar";function Ec(c){var u=c,{children:e,max:t=3,size:r="md",variant:s="circle",spacing:a="md",className:o=""}=u,i=O(u,["children","max","size","variant","spacing","className"]);const d={none:"",sm:"-space-x-1",md:"-space-x-2",lg:"-space-x-3"},f=l.Children.toArray(e).filter(Boolean),p=f.slice(0,t),m=f.length-t;return n.jsxs("div",P(R({className:w("flex","items-center",d[a],o),role:"group","aria-label":`${f.length} avatars`},i),{children:[p.map((h,x)=>{let y=h;if(l.isValidElement(h)&&h.type===dr){const k=h.props;y=l.cloneElement(h,{size:k.size||r,variant:k.variant||s})}return n.jsx("div",{className:"ring-2 ring-surface-base",style:{zIndex:f.length-x},children:y},x)}),m>0&&n.jsx(dr,{size:r,variant:s,fallback:`+${m}`,"aria-label":`${m} more avatars`,className:"ring-2 ring-surface-base",style:{zIndex:0}})]}))}const ur=l.memo(function(d){var f=d,{variant:t="default",padding:r="medium",className:s="",onClick:a,"aria-label":o,"aria-labelledby":i,children:c}=f,u=O(f,["variant","padding","className","onClick","aria-label","aria-labelledby","children"]);const p=xe(w("bg-surface-base",J("lg"),"border","border-line-default","shadow-sm"),{variants:{variant:{default:"",hover:w("hover:shadow-md","transition-shadow","cursor-pointer"),selected:w("border-line-brand","shadow-md")},padding:{none:"",small:T("xs","p"),medium:T("base","p"),large:T("lg","p")}},defaultVariants:{variant:"default",padding:"medium"}}),m=l.useMemo(()=>a!==void 0||t==="hover",[a,t]),h=m?"button":void 0,x=m?0:void 0,y=w(p({variant:t,padding:r}),s),k=l.useCallback(g=>{m&&(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),a==null||a())},[m,a]);return n.jsx("div",P(R({className:y,role:h,tabIndex:x,onClick:a,onKeyDown:k,"aria-label":o,"aria-labelledby":i},u),{children:c}))});ur.displayName="Card";const Nr=l.createContext(void 0);function ws(){const e=l.useContext(Nr);if(e===void 0)throw new Error("useFormContext must be used within a Form component with react-hook-form integration");return e}function Mc(){return l.useContext(Nr)}function wa({form:e,loading:t=!1,children:r}){const s={form:e,loading:t};return n.jsx(Nr.Provider,{value:s,children:r})}function Tc(c){var u=c,{children:e,onSubmit:t,loading:r=!1,error:s=null,success:a=null,className:o=""}=u,i=O(u,["children","onSubmit","loading","error","success","className"]);const d=w(T("lg","gap"),"flex","flex-col",o);if("form"in i&&i.form!==void 0){const y=i,{form:g,onSubmit:j,onSubmitError:C}=y,b=O(y,["form","onSubmit","onSubmitError"]),v=g.handleSubmit(N=>tr(null,null,function*(){try{yield j(N)}catch(D){C==null||C(D)}}),N=>{C==null||C(N)});return n.jsx(wa,{form:g,loading:r,children:n.jsxs("form",P(R({className:d,onSubmit:v,noValidate:!0},b),{children:[e,s&&n.jsx("div",{role:"alert",className:w(T("md","p"),ve("sm"),"text-error-dark","bg-error-bg","border","border-error",J("md")),children:s}),a&&n.jsx("div",{role:"alert",className:w(T("md","p"),ve("sm"),"text-success-dark","bg-success-bg","border","border-success",J("md")),children:a})]}))})}const p=i.onSubmit||t,k=i,{onSubmit:m}=k,h=O(k,["onSubmit"]),x=g=>{g.preventDefault(),p&&!r&&p(g)};return n.jsxs("form",P(R({className:d,onSubmit:x,noValidate:!0},h),{children:[e,s&&n.jsx("div",{role:"alert",className:w(T("md","p"),ve("sm"),"text-error-dark","bg-error-bg","border","border-error",J("md")),children:s}),a&&n.jsx("div",{role:"alert",className:w(T("md","p"),ve("sm"),"text-success-dark","bg-success-bg","border","border-success",J("md")),children:a})]}))}function Ac({name:e,label:t,children:r,rules:s,className:a=""}){var m;const{form:o}=ws();if(!o)throw new Error("FormField must be used within a Form component with react-hook-form integration");const{register:i,formState:{errors:c},watch:u}=o,d=i(e,s),f=(m=c[e])==null?void 0:m.message,p=u(e);return n.jsxs("div",{className:w("flex","flex-col",T("sm","gap"),a),children:[t&&n.jsx(Mt,{htmlFor:e,className:w("block",ve("sm"),Et("medium"),"text-fg-primary"),children:t}),r({name:e,register:h=>i(h,s),error:f,value:p,onChange:d.onChange,onBlur:d.onBlur}),f&&n.jsx(ha,{message:f})]})}var Rc=e=>e.type==="checkbox",Ic=e=>e instanceof Date,He=e=>e==null;const Dc=e=>typeof e=="object";var qe=e=>!He(e)&&!Array.isArray(e)&&Dc(e)&&!Ic(e),Lc=e=>{const t=e.constructor&&e.constructor.prototype;return qe(t)&&t.hasOwnProperty("isPrototypeOf")},ka=typeof window!="undefined"&&typeof window.HTMLElement!="undefined"&&typeof document!="undefined";function mt(e){if(e instanceof Date)return new Date(e);const t=typeof FileList!="undefined"&&e instanceof FileList;if(ka&&(e instanceof Blob||t))return e;const r=Array.isArray(e);if(!r&&!(qe(e)&&Lc(e)))return e;const s=r?[]:Object.create(Object.getPrototypeOf(e));for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(s[a]=mt(e[a]));return s}var ks=e=>/^\w*$/.test(e),_e=e=>e===void 0,ja=e=>Array.isArray(e)?e.filter(Boolean):[],js=e=>ja(e.replace(/["|']|\]/g,"").split(/\.|\[/)),De=(e,t,r)=>{if(!t||!qe(e))return r;const s=(ks(t)?[t]:js(t)).reduce((a,o)=>He(a)?a:a[o],e);return _e(s)||s===e?_e(e[t])?r:e[t]:s},Na=e=>typeof e=="boolean",Fc=e=>typeof e=="function",fr=(e,t,r)=>{let s=-1;const a=ks(t)?[t]:js(t),o=a.length,i=o-1;for(;++s<o;){const c=a[s];let u=r;if(s!==i){const d=e[c];u=qe(d)||Array.isArray(d)?d:isNaN(+a[s+1])?{}:[]}if(c==="__proto__"||c==="constructor"||c==="prototype")return;e[c]=u,e=e[c]}};const St={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},We={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Sa=l.createContext(null);Sa.displayName="HookFormControlContext";const _c=()=>l.useContext(Sa),Pc=typeof window!="undefined"?l.useLayoutEffect:l.useEffect;var Xe=e=>typeof e=="string";const zc=l.createContext(null);zc.displayName="HookFormContext";var Oc=(e,t,r,s,a)=>t?P(R({},r[e]),{types:P(R({},r[e]&&r[e].types?r[e].types:{}),{[s]:a||!0})}):{},Le=e=>Array.isArray(e)?e:[e],mr=e=>qe(e)&&!Object.keys(e).length,Vc=e=>e.type==="file",Wc=e=>{if(!ka)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Hc=e=>e.type==="radio";function Bc(e,t){const r=t.slice(0,-1).length;let s=0;for(;s<r;)e=_e(e)?s++:e[t[s++]];return e}function Uc(e){for(const t in e)if(e.hasOwnProperty(t)&&!_e(e[t]))return!1;return!0}function Ca(e,t){const r=Array.isArray(t)?t:ks(t)?[t]:js(t),s=r.length===1?e:Bc(e,r),a=r.length-1,o=r[a];return s&&delete s[o],a!==0&&(qe(s)&&mr(s)||Array.isArray(s)&&Uc(s))&&Ca(e,r.slice(0,-1)),e}var $a=e=>e instanceof RegExp,or=e=>({isOnSubmit:!e||e===St.onSubmit,isOnBlur:e===St.onBlur,isOnChange:e===St.onChange,isOnAll:e===St.all,isOnTouch:e===St.onTouched}),qc=(e,t,r)=>t.watchAll||t.watch.has(e)||[...t.watch].some(s=>e.startsWith(s)&&/^\.\w+/.test(e.slice(s.length)));const as=(e,t,r,s)=>{for(const o of Object.keys(e)){const i=De(e,o);if(i){const a=i,{_f:c}=a,u=O(a,["_f"]);if(c){if(c.refs&&c.refs[0]&&t(c.refs[0],o))return!0;if(c.ref&&t(c.ref,c.name))return!0;if(as(u,t))break}else if(qe(u)&&as(u,t))break}}};var Gc=(e,t,r)=>{const s=Le(De(e,r));return fr(s,"root",t[r]),fr(e,r,s),e};function En(e,t,r="validate"){if(Xe(e)||Array.isArray(e)&&e.every(Xe)||Na(e)&&!e)return{type:r,message:Xe(e)?e:"",ref:t}}var jt=e=>qe(e)&&!$a(e)?e:{value:e,message:""},Kc=(e,t,r,s,a,o)=>tr(null,null,function*(){const{ref:i,refs:c,required:u,maxLength:d,minLength:f,min:p,max:m,pattern:h,validate:x,name:y,valueAsNumber:k,mount:g}=e._f,j=De(r,y);if(!g||t.has(y))return{};const C=c?c[0]:i,b=A=>{a&&C.reportValidity&&(C.setCustomValidity(Na(A)?"":A||""),C.reportValidity())},v={};Hc(i),Rc(i);const N=(k||Vc(i))&&_e(i.value)&&_e(j)||Wc(i)&&i.value===""||j===""||Array.isArray(j)&&!j.length,D=Oc.bind(null,y,s,v),S=(A,M,$,L=We.maxLength,_=We.minLength)=>{const F=A?M:$;v[y]=R({type:A?L:_,message:F,ref:i},D(A?L:_,F))};if(!Array.isArray(j)||!j.length){const{value:A,message:M}=Xe(u)?{value:!!u,message:u}:jt(u);if(A&&(v[y]=R({type:We.required,message:M,ref:C},D(We.required,M)),!s))return b(M),v}if(!N&&(!He(p)||!He(m))){let A,M;const $=jt(m),L=jt(p);if(!He(j)&&!isNaN(j)){const _=i.valueAsNumber||j&&+j;He($.value)||(A=_>$.value),He(L.value)||(M=_<L.value)}else{const _=i.valueAsDate||new Date(j),F=q=>new Date(new Date().toDateString()+" "+q),z=i.type=="time",X=i.type=="week";Xe($.value)&&j&&(A=z?F(j)>F($.value):X?j>$.value:_>new Date($.value)),Xe(L.value)&&j&&(M=z?F(j)<F(L.value):X?j<L.value:_<new Date(L.value))}if((A||M)&&(S(!!A,$.message,L.message,We.max,We.min),!s))return b(v[y].message),v}if((d||f)&&!N&&(Xe(j)||Array.isArray(j))){const A=jt(d),M=jt(f),$=!He(A.value)&&j.length>+A.value,L=!He(M.value)&&j.length<+M.value;if(($||L)&&(S($,A.message,M.message),!s))return b(v[y].message),v}if(h&&!N&&Xe(j)){const{value:A,message:M}=jt(h);if($a(A)&&!j.match(A)&&(v[y]=R({type:We.pattern,message:M,ref:i},D(We.pattern,M)),!s))return b(M),v}if(x){if(Fc(x)){const A=yield x(j,r),M=En(A,C);if(M&&(v[y]=R(R({},M),D(We.validate,M.message)),!s))return b(M.message),v}else if(qe(x)){let A={};for(const M in x){if(!mr(A)&&!s)break;const $=En(yield x[M](j,r),C,M);$&&(A=R(R({},$),D(M,$.message)),b($.message),s&&(v[y]=A))}if(!mr(A)&&(v[y]=R({ref:C},A),!s))return v}}return b(!0),v}),Ye=()=>{if(typeof crypto!="undefined"&&crypto.randomUUID)return crypto.randomUUID();const e=typeof performance=="undefined"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const r=(Math.random()*16+e)%16|0;return(t=="x"?r:r&3|8).toString(16)})},Gr=(e,t,r={})=>r.shouldFocus||_e(r.shouldFocus)?r.focusName||`${e}.${_e(r.focusIndex)?t:r.focusIndex}.`:"",Kr=(e,t)=>[...e,...Le(t)],Yr=e=>Array.isArray(e)?e.map(()=>{}):void 0;function Xr(e,t,r){return[...e.slice(0,t),...Le(r),...e.slice(t)]}var Jr=(e,t,r)=>Array.isArray(e)?(_e(e[r])&&(e[r]=void 0),e.splice(r,0,e.splice(t,1)[0]),e):[],Zr=(e,t)=>[...Le(t),...Le(e)];function Yc(e,t){let r=0;const s=[...e];for(const a of t)s.splice(a-r,1),r++;return ja(s).length?s:[]}var Qr=(e,t)=>_e(t)?[]:Yc(e,Le(t).sort((r,s)=>r-s)),es=(e,t,r)=>{[e[t],e[r]]=[e[r],e[t]]},Mn=(e,t,r)=>(e[t]=r,e);function Xc(e){const t=_c(),{control:r=t,name:s,keyName:a="id",shouldUnregister:o,rules:i}=e,[c,u]=l.useState(r._getFieldArray(s)),d=l.useRef(r._getFieldArray(s).map(Ye)),f=l.useRef(!1);r._names.array.add(s),l.useMemo(()=>i&&c.length>=0&&r.register(s,i),[r,s,c.length,i]),Pc(()=>r._subjects.array.subscribe({next:({values:b,name:v})=>{if(v===s||!v){const N=De(b,s);Array.isArray(N)&&(u(N),d.current=N.map(Ye))}}}).unsubscribe,[r,s]);const p=l.useCallback(b=>{f.current=!0,r._setFieldArray(s,b)},[r,s]),m=(b,v)=>{const N=Le(mt(b)),D=Kr(r._getFieldArray(s),N);r._names.focus=Gr(s,D.length-1,v),d.current=Kr(d.current,N.map(Ye)),p(D),u(D),r._setFieldArray(s,D,Kr,{argA:Yr(b)})},h=(b,v)=>{const N=Le(mt(b)),D=Zr(r._getFieldArray(s),N);r._names.focus=Gr(s,0,v),d.current=Zr(d.current,N.map(Ye)),p(D),u(D),r._setFieldArray(s,D,Zr,{argA:Yr(b)})},x=b=>{const v=Qr(r._getFieldArray(s),b);d.current=Qr(d.current,b),p(v),u(v),!Array.isArray(De(r._fields,s))&&fr(r._fields,s,void 0),r._setFieldArray(s,v,Qr,{argA:b})},y=(b,v,N)=>{const D=Le(mt(v)),S=Xr(r._getFieldArray(s),b,D);r._names.focus=Gr(s,b,N),d.current=Xr(d.current,b,D.map(Ye)),p(S),u(S),r._setFieldArray(s,S,Xr,{argA:b,argB:Yr(v)})},k=(b,v)=>{const N=r._getFieldArray(s);es(N,b,v),es(d.current,b,v),p(N),u(N),r._setFieldArray(s,N,es,{argA:b,argB:v},!1)},g=(b,v)=>{const N=r._getFieldArray(s);Jr(N,b,v),Jr(d.current,b,v),p(N),u(N),r._setFieldArray(s,N,Jr,{argA:b,argB:v},!1)},j=(b,v)=>{const N=mt(v),D=Mn(r._getFieldArray(s),b,N);d.current=[...D].map((S,A)=>!S||A===b?Ye():d.current[A]),p(D),u([...D]),r._setFieldArray(s,D,Mn,{argA:b,argB:N},!0,!1)},C=b=>{const v=Le(mt(b));d.current=v.map(Ye),p([...v]),u([...v]),r._setFieldArray(s,[...v],N=>N,{},!0,!1)};return l.useEffect(()=>{if(r._state.action=!1,qc(s,r._names)&&r._subjects.state.next(R({},r._formState)),f.current&&(!or(r._options.mode).isOnSubmit||r._formState.isSubmitted)&&!or(r._options.reValidateMode).isOnSubmit)if(r._options.resolver)r._runSchema([s]).then(b=>{r._updateIsValidating([s]);const v=De(b.errors,s),N=De(r._formState.errors,s);(N?!v&&N.type||v&&(N.type!==v.type||N.message!==v.message):v&&v.type)&&(v?fr(r._formState.errors,s,v):Ca(r._formState.errors,s),r._subjects.state.next({errors:r._formState.errors}))});else{const b=De(r._fields,s);b&&b._f&&!(or(r._options.reValidateMode).isOnSubmit&&or(r._options.mode).isOnSubmit)&&Kc(b,r._names.disabled,r._formValues,r._options.criteriaMode===St.all,r._options.shouldUseNativeValidation).then(v=>!mr(v)&&r._subjects.state.next({errors:Gc(r._formState.errors,v,s)}))}r._subjects.state.next({name:s,values:mt(r._formValues)}),r._names.focus&&as(r._fields,(b,v)=>{if(r._names.focus&&v.startsWith(r._names.focus)&&b.focus)return b.focus(),1}),r._names.focus="",r._setValid(),f.current=!1},[c,s,r]),l.useEffect(()=>(!De(r._formValues,s)&&r._setFieldArray(s),()=>{const b=(v,N)=>{const D=De(r._fields,v);D&&D._f&&(D._f.mount=N)};r._options.shouldUnregister||o?r.unregister(s):b(s,!1)}),[s,r,a,o]),{swap:l.useCallback(k,[p,s,r]),move:l.useCallback(g,[p,s,r]),prepend:l.useCallback(h,[p,s,r]),append:l.useCallback(m,[p,s,r]),remove:l.useCallback(x,[p,s,r]),insert:l.useCallback(y,[p,s,r]),update:l.useCallback(j,[p,s,r]),replace:l.useCallback(C,[p,s,r]),fields:l.useMemo(()=>c.map((b,v)=>P(R({},b),{[a]:d.current[v]||Ye()})),[c,a])}}function Jc(e){const{form:t}=ws();if(!t)throw new Error("useFormFieldArray must be used within a Form component with react-hook-form integration");return Xc(P(R({},e),{control:t.control}))}function Ea(a){var o=a,{items:e,separator:t="/",className:r=""}=o,s=O(o,["items","separator","className"]);const i=["flex","items-center",T("sm","space-x"),re("bodySmall")],c=w(...i,r);return n.jsx("nav",P(R({"aria-label":"Breadcrumb",className:c},s),{children:n.jsx("ol",{className:w("flex","items-center",T("sm","space-x")),children:e.map((u,d)=>{const f=d===e.length-1;return n.jsxs("li",{className:"flex items-center",children:[d>0&&n.jsx("span",{className:w(T("sm","mx"),"text-fg-tertiary"),"aria-hidden":"true",children:t}),f?n.jsx("span",{className:w("text-fg-primary",Fe("label")),"aria-current":"page",children:u.label}):u.href?n.jsx("a",{href:u.href,className:w("inline-flex","items-center",T("xs","px"),T("xs","pt"),"border-b-2","border-transparent",re("bodySmall"),Fe("label"),"transition-colors","text-fg-secondary","hover:border-line-emphasis","hover:text-fg-primary"),children:u.label}):n.jsx("span",{className:"text-fg-secondary",children:u.label})]},d)})})}))}function Ma(u){var d=u,{currentPage:e,totalPages:t,onPageChange:r,totalItems:s,itemsPerPage:a,showPageInfo:o=!0,className:i=""}=d,c=O(d,["currentPage","totalPages","onPageChange","totalItems","itemsPerPage","showPageInfo","className"]);const f=()=>{e>1&&r(e-1)},p=()=>{e<t&&r(e+1)},m=g=>{g>=1&&g<=t&&g!==e&&r(g)},h=()=>{const g=[];if(t<=5)for(let C=1;C<=t;C++)g.push(C);else if(e<=3){for(let C=1;C<=4;C++)g.push(C);g.push("ellipsis"),g.push(t)}else if(e>=t-2){g.push(1),g.push("ellipsis");for(let C=t-3;C<=t;C++)g.push(C)}else{g.push(1),g.push("ellipsis");for(let C=e-1;C<=e+1;C++)g.push(C);g.push("ellipsis"),g.push(t)}return g},x=s&&a?(e-1)*a+1:void 0,y=s&&a?Math.min(e*a,s):void 0,k=w("flex","items-center","justify-between",T("base","px"),T("md","py"),i);return n.jsxs("nav",P(R({className:k,"aria-label":"Pagination"},c),{children:[n.jsxs("div",{className:w("flex","items-center",T("sm","gap")),children:[n.jsx(Z,{variant:"secondary",onClick:f,disabled:e===1,size:"sm",children:"Previous"}),n.jsx("div",{className:w("flex","items-center",T("xs","gap")),children:h().map((g,j)=>{if(g==="ellipsis")return n.jsx("span",{className:w(T("sm","px"),"text-fg-tertiary"),children:"..."},`ellipsis-${j}`);const C=g,b=C===e;return n.jsx(Z,{variant:b?"primary":"ghost",onClick:()=>m(C),size:"sm","aria-current":b?"page":void 0,"aria-label":`Go to page ${C}`,children:C},C)})}),n.jsx(Z,{variant:"secondary",onClick:p,disabled:e===t,size:"sm",children:"Next"})]}),o&&s&&a&&n.jsxs("div",{className:w(ve("sm"),"text-fg-primary"),children:["Showing ",x," to ",y," of ",s," results"]})]}))}function Ta(u){var d=u,{title:e,message:t,actionLabel:r,onAction:s,illustration:a,variant:o="default",className:i=""}=d,c=O(d,["title","message","actionLabel","onAction","illustration","variant","className"]);const f=w("flex","flex-col","items-center","justify-center","text-center",T("xl","py"),T("base","px"),i),p=o==="withAction"||r&&s,m=o==="withIllustration"||a;return n.jsxs("div",P(R({className:f,role:"status","aria-live":"polite","aria-label":`${e}. ${t}`},c),{children:[m&&a&&n.jsx("div",{className:w(T("base","mb")),"aria-hidden":"true",children:a}),n.jsx(Be,{as:"h3",className:w(re("h4"),Et("semibold"),"text-fg-primary",T("sm","mb")),children:e}),n.jsx(Be,{as:"p",className:w(re("bodySmall"),"text-fg-secondary",T("md","mb"),"max-w-sm"),children:t}),p&&r&&s&&n.jsx(Z,{variant:"primary",onClick:s,children:r})]}))}function Aa(c){var u=c,{trigger:e,items:t,align:r="right",variant:s="default",className:a="","aria-label":o}=u,i=O(u,["trigger","items","align","variant","className","aria-label"]);const[d,f]=l.useState(!1),[p,m]=l.useState(-1),h=l.useRef(null),x=l.useRef(null),y=l.useRef(null),k=l.useRef([]),g=`dropdown-menu-${Math.random().toString(36).substr(2,9)}`,j=`dropdown-trigger-${Math.random().toString(36).substr(2,9)}`;l.useEffect(()=>{const S=A=>{h.current&&!h.current.contains(A.target)&&(f(!1),m(-1))};return d&&(document.addEventListener("mousedown",S),setTimeout(()=>{var M;const A=t.findIndex($=>!$.disabled);A>=0&&(m(A),(M=k.current[A])==null||M.focus())},0)),()=>{document.removeEventListener("mousedown",S)}},[d,t]),l.useEffect(()=>{if(!d)return;const S=M=>{var _,F,z,X;const $=t.map((q,H)=>({item:q,index:H})).filter(({item:q})=>!q.disabled),L=$.findIndex(({index:q})=>q===p);switch(M.key){case"ArrowDown":{M.preventDefault();const q=L<$.length-1?$[L+1].index:$[0].index;m(q),(_=k.current[q])==null||_.focus();break}case"ArrowUp":{M.preventDefault();const q=L>0?$[L-1].index:$[$.length-1].index;m(q),(F=k.current[q])==null||F.focus();break}case"Home":{M.preventDefault();const q=$[0].index;m(q),(z=k.current[q])==null||z.focus();break}case"End":{M.preventDefault();const q=$[$.length-1].index;m(q),(X=k.current[q])==null||X.focus();break}case"Enter":case" ":M.preventDefault(),p>=0&&!t[p].disabled&&C(t[p]);break;case"Escape":M.preventDefault(),f(!1),m(-1),setTimeout(()=>{var q;(q=x.current)==null||q.focus()},0);break}},A=y.current;if(A){const M=S;return A.addEventListener("keydown",M),()=>{A.removeEventListener("keydown",M)}}},[d,p,t]);const C=S=>{S.disabled||(S.onClick(),f(!1),m(-1),setTimeout(()=>{var A;(A=x.current)==null||A.focus()},0))},b=()=>{f(!d),m(-1)},v=S=>{(S.key==="Enter"||S.key===" "||S.key==="ArrowDown")&&(S.preventDefault(),f(!0))},N=r==="right"?"right-0":"left-0",D=l.isValidElement(e)?l.cloneElement(e,{onClick:S=>{b(),e.props.onClick&&e.props.onClick(S)},onKeyDown:S=>{v(S),e.props.onKeyDown&&e.props.onKeyDown(S)},"aria-haspopup":"menu","aria-expanded":d,"aria-controls":g,"aria-label":o||e.props["aria-label"]||"Open menu",id:j,ref:S=>{x.current=S,typeof e.ref=="function"?e.ref(S):e.ref&&(e.ref.current=S)}}):n.jsx("div",{ref:x,onClick:b,onKeyDown:v,role:"button",tabIndex:0,"aria-haspopup":"menu","aria-expanded":d,"aria-controls":g,"aria-label":o||"Open menu",id:j,children:e});return n.jsxs("div",P(R({className:w("relative","inline-block",a),ref:h},i),{children:[D,d&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:w("fixed","inset-0","z-10"),onClick:()=>{f(!1),m(-1)},"aria-hidden":"true"}),n.jsx("div",{ref:y,id:g,className:w("absolute","z-20",T("sm","mt"),"w-48",J("md"),Se("lg"),"bg-surface-overlay","ring-1","ring-line-strong","ring-opacity-5",N),role:"menu","aria-orientation":"vertical","aria-labelledby":j,"aria-activedescendant":p>=0?`${g}-item-${p}`:void 0,children:n.jsx("div",{className:w(T("xs","py")),role:"none",children:t.map((S,A)=>{const M=w("block",T("base","px"),T("xs","py"),re("bodySmall"),"w-full","text-left","focus:outline-none",S.disabled?w("text-fg-disabled","cursor-not-allowed","opacity-50"):S.variant==="danger"?w("text-error-dark","hover:bg-error-bg-emphasis","focus:bg-error-bg-emphasis"):w("text-fg-primary","hover:bg-surface-hover","focus:bg-surface-hover"));return n.jsx("button",{id:`${g}-item-${A}`,ref:$=>{k.current[A]=$},type:"button",className:M,onClick:()=>C(S),disabled:S.disabled,role:"menuitem","aria-disabled":S.disabled,tabIndex:S.disabled?-1:p===A?0:-1,children:S.label},A)})})})]})]}))}const Ra=l.createContext(void 0);function Ia(){const e=l.useContext(Ra);if(!e)throw new Error("DatePicker components must be used within a DatePicker component");return e}function os({children:e,mode:t="single",value:r,defaultValue:s,onValueChange:a,minDate:o,maxDate:i,disabledDates:c,locale:u}){const d=()=>{if(r!==void 0)return null;if(s){if(t==="single"&&s instanceof Date)return s;if(t==="range"&&typeof s=="object"&&"start"in s)return null}return null},f=()=>r!==void 0?null:s&&t==="range"&&typeof s=="object"&&"start"in s?s:{start:null,end:null},[p,m]=l.useState(d()),[h,x]=l.useState(f()),y=t==="single"?r instanceof Date?r:p:null,k=t==="range"?r&&typeof r=="object"&&"start"in r?r:h:null,C={selectedDate:y,selectedRange:k,mode:t,onDateChange:b=>{t==="single"&&(r===void 0&&m(b),a==null||a(b))},onRangeChange:b=>{t==="range"&&(r===void 0&&x(b),a==null||a(b))},minDate:o,maxDate:i,disabledDates:c,locale:u};return n.jsx(Ra.Provider,{value:C,children:e})}function Vt(e,t="yyyy-MM-dd"){const r=e.getFullYear(),s=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0");return t.replace("yyyy",String(r)).replace("MM",s).replace("dd",a).replace("MM/dd/yyyy",`${s}/${a}/${r}`).replace("dd/MM/yyyy",`${a}/${s}/${r}`)}function Tn(e){if(!e)return null;const t=e.match(/^(\d{4})-(\d{2})-(\d{2})$/);if(t){const[,a,o,i]=t,c=new Date(parseInt(a),parseInt(o)-1,parseInt(i));if(!isNaN(c.getTime()))return c}const r=e.match(/^(\d{2})\/(\d{2})\/(\d{4})$/);if(r){const[,a,o,i]=r,c=new Date(parseInt(i),parseInt(a)-1,parseInt(o));if(!isNaN(c.getTime()))return c}const s=e.match(/^(\d{2})\/(\d{2})\/(\d{4})$/);if(s){const[,a,o,i]=s,c=new Date(parseInt(i),parseInt(o)-1,parseInt(a));if(!isNaN(c.getTime()))return c}return null}function Ns(c){var u=c,{placeholder:e="Select date",format:t="yyyy-MM-dd",showCalendarButton:r=!0,"aria-label":s,onFocus:a,className:o=""}=u,i=O(u,["placeholder","format","showCalendarButton","aria-label","onFocus","className"]);const{selectedDate:d,selectedRange:f,mode:p,onDateChange:m}=Ia(),[h,x]=l.useState(""),[y,k]=l.useState(!1),g=l.useRef(null);l.useEffect(()=>{p==="single"&&d?x(Vt(d,t)):p==="range"&&f?f.start&&f.end?x(`${Vt(f.start,t)} - ${Vt(f.end,t)}`):f.start?x(Vt(f.start,t)):x(""):x("")},[d,f,p,t]);const j=v=>{const N=v.target.value;if(x(N),p==="single"){const D=Tn(N);m(D)}},C=()=>{if(k(!1),h&&p==="single"){const v=Tn(h);v&&x(Vt(v,t))}},b=()=>{var v;(v=g.current)==null||v.focus()};return n.jsx("div",P(R({className:`relative ${o}`},i),{children:n.jsx(ke,{ref:g,type:"text",value:h,onChange:j,onFocus:()=>{k(!0),a==null||a()},onBlur:C,placeholder:e,"aria-label":s||e,rightIcon:r?n.jsx(Z,{variant:"iconOnly",size:"sm",onClick:b,"aria-label":"Open calendar",type:"button",children:n.jsx(Ml,{className:"h-4 w-4"})}):void 0})}))}function Zc(e){return new Date(e.getFullYear(),e.getMonth()+1,0).getDate()}function Qc(e){return new Date(e.getFullYear(),e.getMonth(),1).getDay()}function Ct(e,t){return!e||!t?!1:e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function ed(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}function td(e,t,r){if(!t||!r)return!1;const s=e.getTime();return s>=t.getTime()&&s<=r.getTime()}function An(e,t,r,s){return!!(t&&e<t||r&&e>r||s!=null&&s.some(a=>Ct(e,a)))}const rd=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],sd=["January","February","March","April","May","June","July","August","September","October","November","December"];function Ss(a){var o=a,{month:e,onMonthChange:t,className:r=""}=o,s=O(o,["month","onMonthChange","className"]);const{selectedDate:i,selectedRange:c,mode:u,onDateChange:d,onRangeChange:f,minDate:p,maxDate:m,disabledDates:h}=Ia(),[x,y]=l.useState(e||i||(c==null?void 0:c.start)||new Date),k=l.useRef(null),[g,j]=l.useState(null);l.useEffect(()=>{e&&y(e)},[e]);const C=Zc(x),b=Qc(x),v=[];for(let M=0;M<b;M++)v.push(null);for(let M=1;M<=C;M++)v.push(new Date(x.getFullYear(),x.getMonth(),M));const N=M=>{if(!An(M,p,m,h)){if(u==="single")d(M);else if(u==="range"){const $=c||{start:null,end:null};!$.start||$.start&&$.end?f({start:M,end:null}):$.start&&!$.end&&(M<$.start?f({start:M,end:$.start}):f({start:$.start,end:M}))}}},D=()=>{const M=new Date(x.getFullYear(),x.getMonth()-1,1);y(M),t==null||t(M)},S=()=>{const M=new Date(x.getFullYear(),x.getMonth()+1,1);y(M),t==null||t(M)},A=(M,$)=>{let L=null;switch(M.key){case"ArrowLeft":M.preventDefault(),L=new Date($.getFullYear(),$.getMonth(),$.getDate()-1);break;case"ArrowRight":M.preventDefault(),L=new Date($.getFullYear(),$.getMonth(),$.getDate()+1);break;case"ArrowUp":M.preventDefault(),L=new Date($.getFullYear(),$.getMonth(),$.getDate()-7);break;case"ArrowDown":M.preventDefault(),L=new Date($.getFullYear(),$.getMonth(),$.getDate()+7);break;case"Home":M.preventDefault(),L=new Date($.getFullYear(),$.getMonth(),1);break;case"End":M.preventDefault(),L=new Date($.getFullYear(),$.getMonth()+1,0);break;case"Enter":case" ":M.preventDefault(),N($);return}L&&(ed(L,x)||y(new Date(L.getFullYear(),L.getMonth(),1)),j(L))};return n.jsxs("div",P(R({ref:k,className:`p-4 ${r}`,role:"grid","aria-label":"Calendar"},s),{children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx(Z,{variant:"iconOnly",size:"sm",onClick:D,"aria-label":"Previous month",children:n.jsx(Ht,{className:"h-4 w-4"})}),n.jsxs("div",{className:"text-sm font-semibold",children:[sd[x.getMonth()]," ",x.getFullYear()]}),n.jsx(Z,{variant:"iconOnly",size:"sm",onClick:S,"aria-label":"Next month",children:n.jsx(pt,{className:"h-4 w-4"})})]}),n.jsx("div",{className:"grid grid-cols-7 gap-1 mb-2",children:rd.map(M=>n.jsx("div",{className:"text-center text-xs font-medium text-fg-tertiary py-1",children:M},M))}),n.jsx("div",{className:"grid grid-cols-7 gap-1",children:v.map((M,$)=>{if(!M)return n.jsx("div",{className:"aspect-square"},`empty-${$}`);const L=u==="single"?Ct(M,i):Ct(M,(c==null?void 0:c.start)||null)||Ct(M,(c==null?void 0:c.end)||null),_=u==="range"&&c?td(M,c.start,c.end):!1,F=An(M,p,m,h),z=Ct(M,new Date),X=g&&Ct(M,g);return n.jsx("button",{type:"button",onClick:()=>N(M),onKeyDown:q=>A(q,M),disabled:F,className:`
178
+ aspect-square
179
+ text-sm
180
+ ${J("md")}
181
+ transition-colors
182
+ focus:outline-none
183
+ focus:ring-2
184
+ focus:ring-offset-1
185
+ ${F?"text-fg-disabled cursor-not-allowed":L?"bg-surface-brand text-fg-inverse font-semibold":_?"bg-surface-brand-muted text-fg-brand-emphasis":z?"border-2 border-line-brand font-semibold":X?"bg-surface-brand-muted":"hover:bg-surface-active"}
186
+ `,"aria-label":M.toDateString(),"aria-selected":L,"aria-disabled":F,children:M.getDate()},M.toISOString())})})]}))}function Sr({children:e,mode:t="single",value:r,defaultValue:s,onValueChange:a,minDate:o,maxDate:i,disabledDates:c,placeholder:u,format:d,showCalendarButton:f=!0,"aria-label":p,className:m=""}){const[h,x]=l.useState(!1),y=l.useRef(null),k=l.useRef(null);return l.useEffect(()=>{if(!h)return;const g=j=>{var N,D,S,A;const C=j.target,b=(D=(N=y.current)==null?void 0:N.contains(C))!=null?D:!1,v=(A=(S=k.current)==null?void 0:S.contains(C))!=null?A:!1;!b&&!v&&x(!1)};return document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)},[h]),l.useEffect(()=>{if(!h)return;const g=j=>{j.key==="Escape"&&x(!1)};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[h]),e?n.jsx(os,{mode:t,value:r,defaultValue:s,onValueChange:a,minDate:o,maxDate:i,disabledDates:c,children:e}):n.jsx("div",{ref:y,className:`relative ${m}`,children:n.jsxs(os,{mode:t,value:r,defaultValue:s,onValueChange:a,minDate:o,maxDate:i,disabledDates:c,children:[n.jsx(Ns,{placeholder:u,format:d,showCalendarButton:f,"aria-label":p,onFocus:()=>x(!0)}),h&&n.jsx(Da,{containerRef:y,popupRef:k,children:n.jsx(Ss,{})})]})})}function Da({children:e,containerRef:t,popupRef:r}){const s=l.useRef(null),a=r||s,[o,i]=l.useState(null);if(l.useEffect(()=>{if(t!=null&&t.current){const u=t.current.getBoundingClientRect();i({top:u.bottom+window.scrollY+8,left:u.left+window.scrollX})}},[t]),!o)return null;const c=n.jsx("div",{ref:a,className:`
187
+ fixed ${ue("popover")}
188
+ bg-surface-overlay
189
+ ${J("lg")}
190
+ ${Se("xl")}
191
+ border border-line-default
192
+ `,role:"dialog","aria-modal":"false","aria-label":"Date picker calendar",style:{top:`${o.top}px`,left:`${o.left}px`},children:e});return typeof window!="undefined"?Ue.createPortal(c,document.body):c}Sr.Input=Ns;Sr.Calendar=Ss;Sr.Popup=Da;const nd=Sr,Cr=l.createContext(void 0);function $r(){const e=l.useContext(Cr);if(e===void 0)throw new Error("useTabsContext must be used within a Tabs component");return e}function ad(){return l.useContext(Cr)}function La({defaultValue:e,value:t,onValueChange:r,orientation:s="horizontal",activationMode:a="automatic",children:o}){const[i,c]=l.useState(e||""),u=t!==void 0,d=u?t:i,f=l.useCallback(m=>{u||c(m),r==null||r(m)},[u,r]),p={value:d,onValueChange:f,orientation:s,activationMode:a};return n.jsx(Cr.Provider,{value:p,children:o})}function Fa(a){var o=a,{children:e,className:t="",variant:r="default"}=o,s=O(o,["children","className","variant"]);const{orientation:i}=$r(),c=l.useRef(null);l.useEffect(()=>{const f=c.current;if(!f)return;const p=m=>{var k;const h=Array.from(f.querySelectorAll('[role="tab"]:not([disabled])')),x=h.findIndex(g=>g===document.activeElement);if(x===-1)return;let y=x;i==="horizontal"?m.key==="ArrowRight"?(m.preventDefault(),y=(x+1)%h.length):m.key==="ArrowLeft"&&(m.preventDefault(),y=(x-1+h.length)%h.length):m.key==="ArrowDown"?(m.preventDefault(),y=(x+1)%h.length):m.key==="ArrowUp"&&(m.preventDefault(),y=(x-1+h.length)%h.length),m.key==="Home"?(m.preventDefault(),y=0):m.key==="End"&&(m.preventDefault(),y=h.length-1),y!==x&&((k=h[y])==null||k.focus())};return f.addEventListener("keydown",p),()=>f.removeEventListener("keydown",p)},[i]);const u=r==="compact"&&i==="vertical"?"flex":"inline-flex",d=w(i==="vertical"?"flex-col":"flex-row",T("xs","gap"));return n.jsx("div",P(R({ref:c,role:"tablist","aria-orientation":i,className:w(u,d,T("xs","p"),"bg-surface-muted",J("md"),t)},s),{children:e}))}function _a(c){var u=c,{value:e,children:t,disabled:r=!1,className:s="",onClick:a,onKeyDown:o}=u,i=O(u,["value","children","disabled","className","onClick","onKeyDown"]);const{value:d,onValueChange:f,orientation:p,activationMode:m}=$r(),h=d===e,x=g=>{r||((m==="automatic"||h)&&f(e),a==null||a(g))},y=g=>{var j;m==="automatic"&&!r&&!h&&f(e),(j=i.onFocus)==null||j.call(i,g)},k=g=>{if(!r&&!(g.key==="ArrowRight"||g.key==="ArrowLeft"||g.key==="ArrowDown"||g.key==="ArrowUp"||g.key==="Home"||g.key==="End")){if(m==="manual"&&(g.key==="Enter"||g.key===" ")){g.preventDefault(),f(e);return}o==null||o(g)}};return n.jsx("button",P(R({type:"button",role:"tab","aria-selected":h,"aria-controls":`tabpanel-${e}`,id:`tab-${e}`,tabIndex:r?-1:h?0:-1,disabled:r,onClick:x,onFocus:y,onKeyDown:k,className:w("inline-flex","items-center","justify-center",T("sm","px"),T("xs","py"),re("bodySmall"),Fe("label"),"transition-colors","focus:outline-none","focus:ring-2","focus:ring-line-focus","focus:ring-offset-2",J("sm"),h?w("bg-surface-brand","text-fg-inverse"):w("text-fg-tertiary","hover:bg-surface-active"),r?"opacity-50 cursor-not-allowed":"cursor-pointer",s)},i),{children:t}))}function Pa(o){var i=o,{value:e,children:t,forceMount:r=!1,className:s=""}=i,a=O(i,["value","children","forceMount","className"]);const{value:c}=$r(),u=c===e;return!u&&!r?null:n.jsx("div",P(R({role:"tabpanel",id:`tabpanel-${e}`,"aria-labelledby":`tab-${e}`,hidden:!u,className:`
193
+ mt-2
194
+ focus:outline-none
195
+ ${s}
196
+ `},a),{children:t}))}function Er(r){var s=r,{children:e}=s,t=O(s,["children"]);return n.jsx(La,P(R({},t),{children:e}))}Er.List=Fa;Er.Trigger=_a;Er.Content=Pa;const od=Er,Mr=l.forwardRef(function(m,p){var h=m,{onSearch:t,onClear:r,loading:s=!1,showClearButton:a=!0,debounceMs:o=300,value:i,defaultValue:c,onChange:u,className:d=""}=h,f=O(h,["onSearch","onClear","loading","showClearButton","debounceMs","value","defaultValue","onChange","className"]);const[x,y]=l.useState(typeof c=="string"?c:""),[k,g]=l.useState(null),j=i!==void 0,C=j?i:x,b=C!=null&&String(C).length>0,v=S=>{const A=S.target.value;j||y(A),u==null||u(S),k&&clearTimeout(k);const M=setTimeout(()=>{t==null||t(A)},o);g(M)},N=()=>{j||y("");const S={target:{value:""},currentTarget:{value:""}};u==null||u(S),r==null||r(),t==null||t("")},D=S=>{var A;S.key==="Enter"&&t&&t(String(C||"")),(A=f.onKeyDown)==null||A.call(f,S)};return n.jsx("div",{className:w("relative",d),children:n.jsx(ke,P(R({ref:p},f),{type:"search",value:C,onChange:v,onKeyDown:D,leftIcon:s?n.jsx("div",{className:"animate-spin",children:n.jsx(ns,{className:"h-4 w-4"})}):n.jsx(ns,{className:"h-4 w-4"}),rightIcon:a&&b&&!s?n.jsx(Z,{variant:"ghost",size:"sm",onClick:N,className:"h-auto p-1","aria-label":"Clear search",children:n.jsx(we,{className:"h-4 w-4"})}):void 0,className:w(T("lg","pr"))}))})});Mr.displayName="SearchInput";const Cs=l.forwardRef(function({option:t,isHighlighted:r,onSelect:s},a){const o=()=>{t.disabled||s(t)};return n.jsxs("div",{ref:a,role:"option","aria-selected":r,"aria-disabled":t.disabled,onClick:o,className:`
197
+ flex
198
+ items-center
199
+ gap-2
200
+ ${T("sm","px")}
201
+ ${T("sm","py")}
202
+ text-sm
203
+ cursor-pointer
204
+ transition-colors
205
+ ${r?"bg-surface-active":""}
206
+ ${t.disabled?"opacity-50 cursor-not-allowed":"hover:bg-surface-hover"}
207
+ `,children:[t.icon&&n.jsx("span",{className:"flex-shrink-0",children:t.icon}),n.jsx("span",{className:"flex-1",children:t.label})]})});Cs.displayName="AutocompleteOption";const Tr=l.forwardRef(function({options:t,highlightedIndex:r,onSelect:s,loading:a=!1,emptyMessage:o="No options found",containerRef:i,showSelectAll:c=!1,allSelected:u=!1,onSelectAll:d,onDeselectAll:f},p){const[m,h]=l.useState({top:0,left:0,width:0});l.useEffect(()=>{if(i.current){const y=i.current.getBoundingClientRect();h({top:y.bottom+window.scrollY+4,left:y.left+window.scrollX,width:y.width})}},[i]);const x=n.jsx("div",{ref:p,role:"listbox",className:`
208
+ absolute
209
+ ${ue("popover")}
210
+ bg-surface-overlay
211
+ ${J("md")}
212
+ ${Se("lg")}
213
+ border
214
+ border-line-default
215
+ max-h-60
216
+ overflow-y-auto
217
+ ${T("xs","py")}
218
+ `,style:{top:`${m.top}px`,left:`${m.left}px`,width:`${m.width}px`},children:a?n.jsx("div",{className:`
219
+ ${T("md","p")}
220
+ text-sm
221
+ text-fg-tertiary
222
+ text-center
223
+ `,children:"Loading..."}):t.length===0?n.jsx("div",{className:`
224
+ ${T("md","p")}
225
+ text-sm
226
+ text-fg-tertiary
227
+ text-center
228
+ `,children:o}):n.jsxs(n.Fragment,{children:[c&&n.jsx("div",{className:`
229
+ ${T("sm","px")}
230
+ ${T("sm","py")}
231
+ text-sm
232
+ font-medium
233
+ cursor-pointer
234
+ hover:bg-surface-hover
235
+ border-b
236
+ border-line-default
237
+ `,onClick:u?f:d,children:u?"Deselect All":"Select All"}),t.map((y,k)=>n.jsx(Cs,{option:y,isHighlighted:k===r,onSelect:s},y.value))]})});return typeof window!="undefined"?Ue.createPortal(x,document.body):null});Tr.displayName="AutocompleteList";const za=l.forwardRef(function({options:t,value:r,defaultValue:s,onChange:a,onSelect:o,placeholder:i="Type to search...",loading:c=!1,disabled:u=!1,emptyMessage:d="No options found",debounceMs:f=300,filterOptions:p,className:m="",inputClassName:h="",size:x="md"},y){const[k,g]=l.useState(typeof s=="string"?s:""),[j,C]=l.useState(!1),[b,v]=l.useState(-1),[N,D]=l.useState(""),S=l.useRef(null),A=l.useRef(null),M=l.useRef(null),$=l.useRef(null),L=r!==void 0,_=L?r:k,z=N.trim()?p?p(t,N):t.filter(I=>I.label.toLowerCase().includes(N.toLowerCase())):t,X=z.length>0,q=I=>{const B=I.target.value;D(B),L||g(B),a==null||a(B),$.current&&clearTimeout($.current),$.current=setTimeout(()=>{C(!0),v(-1)},f)},H=I=>{var B;I.disabled||(L||g(I.value),D(I.label),C(!1),v(-1),a==null||a(I.value),o==null||o(I),(B=A.current)==null||B.focus())},le=I=>{if(!j||z.length===0){(I.key==="ArrowDown"||I.key==="Enter")&&C(!0);return}switch(I.key){case"ArrowDown":I.preventDefault(),v(B=>B<z.length-1?B+1:0);break;case"ArrowUp":I.preventDefault(),v(B=>B>0?B-1:z.length-1);break;case"Enter":I.preventDefault(),b>=0&&b<z.length&&H(z[b]);break;case"Escape":I.preventDefault(),C(!1),v(-1);break}};l.useEffect(()=>{if(!j)return;const I=B=>{S.current&&!S.current.contains(B.target)&&(C(!1),v(-1))};return document.addEventListener("mousedown",I),()=>document.removeEventListener("mousedown",I)},[j]),l.useEffect(()=>{if(b>=0&&M.current){const I=M.current.querySelectorAll('[role="option"]');I[b]&&typeof I[b].scrollIntoView=="function"&&I[b].scrollIntoView({block:"nearest",behavior:"smooth"})}},[b]),l.useEffect(()=>{if(_){const I=t.find(B=>B.value===_);D(I?I.label:_)}else D("")},[_,t]);const ne=j&&(X||c||d);return n.jsxs("div",{ref:S,className:`relative ${m}`,children:[n.jsx(ke,{ref:A||y,value:N,onChange:q,onKeyDown:le,onFocus:()=>C(!0),placeholder:i,disabled:u,size:x,rightIcon:c?n.jsx(ua,{className:"h-4 w-4 animate-spin"}):n.jsx(ps,{className:`h-4 w-4 transition-transform ${j?"rotate-180":""}`}),className:h}),ne&&n.jsx(Tr,{ref:M,options:z,highlightedIndex:b,onSelect:H,loading:c,emptyMessage:d,containerRef:S})]})});za.displayName="Autocomplete";const Oa=l.forwardRef(function({options:t,value:r,defaultValue:s=[],onChange:a,onSelect:o,placeholder:i="Select options...",loading:c=!1,disabled:u=!1,emptyMessage:d="No options found",maxSelected:f,showSelectAll:p=!1,className:m="",inputClassName:h="",size:x="md"},y){const[k,g]=l.useState(s),[j,C]=l.useState(!1),[b,v]=l.useState(-1),[N,D]=l.useState(""),S=l.useRef(null),A=l.useRef(null),M=l.useRef(null),$=r!==void 0,L=$?r:k,_=t.filter(W=>L.includes(W.value)),z=(()=>{let W=t;return N.trim()&&(W=t.filter(U=>U.label.toLowerCase().includes(N.toLowerCase()))),W})(),X=z.length>0,q=W=>{const U=W.target.value;D(U),C(!0),v(-1)},H=W=>{if(W.disabled||f&&L.length>=f&&!L.includes(W.value))return;const U=L.includes(W.value)?L.filter(V=>V!==W.value):[...L,W.value];$||g(U),a==null||a(U),o==null||o(t.filter(V=>U.includes(V.value))),D("")},le=()=>{const W=z.filter(V=>!V.disabled).map(V=>V.value),U=[...new Set([...L,...W])];$||g(U),a==null||a(U),o==null||o(t.filter(V=>U.includes(V.value)))},ne=()=>{const W=z.map(V=>V.value),U=L.filter(V=>!W.includes(V));$||g(U),a==null||a(U),o==null||o(t.filter(V=>U.includes(V.value)))},I=W=>{const U=L.filter(V=>V!==W);$||g(U),a==null||a(U),o==null||o(t.filter(V=>U.includes(V.value)))},B=W=>{if(!j||z.length===0){(W.key==="ArrowDown"||W.key==="Enter")&&C(!0),W.key==="Backspace"&&N===""&&L.length>0&&I(L[L.length-1]);return}switch(W.key){case"ArrowDown":W.preventDefault(),v(U=>U<z.length-1?U+1:0);break;case"ArrowUp":W.preventDefault(),v(U=>U>0?U-1:z.length-1);break;case"Enter":W.preventDefault(),b>=0&&b<z.length&&H(z[b]);break;case"Escape":W.preventDefault(),C(!1),v(-1);break}};l.useEffect(()=>{if(!j)return;const W=U=>{S.current&&!S.current.contains(U.target)&&(C(!1),v(-1),D(""))};return document.addEventListener("mousedown",W),()=>document.removeEventListener("mousedown",W)},[j]);const Y=z.filter(W=>!W.disabled).every(W=>L.includes(W.value)),Q=j&&(X||c||d);return n.jsxs("div",{ref:S,className:w("relative",m),children:[n.jsxs("div",{className:w("flex","flex-wrap",T("sm","gap"),T("sm","p"),"border","border-line-default",J("md"),"min-h-10","focus-within:outline-none","focus-within:ring-2","focus-within:ring-offset-2","focus-within:border-line-brand","focus-within:ring-line-brand"),children:[_.map(W=>n.jsx(ys,{onRemove:()=>I(W.value),size:x==="sm"?"sm":x==="lg"?"lg":"md",children:W.label},W.value)),n.jsx("input",{ref:W=>{typeof y=="function"?y(W):y&&(y.current=W),A.current=W},type:"text",value:N,onChange:q,onKeyDown:B,onFocus:()=>C(!0),placeholder:L.length===0?i:"",disabled:u,className:w("flex-1","min-w-32","outline-none","bg-transparent",h)})]}),Q&&n.jsx(Tr,{ref:M,options:z.map(W=>P(R({},W),{icon:L.includes(W.value)?n.jsx(ss,{className:w("h-4","w-4","text-fg-brand")}):W.icon})),highlightedIndex:b,onSelect:H,loading:c,emptyMessage:d,containerRef:S,showSelectAll:p&&z.length>0,allSelected:Y,onSelectAll:le,onDeselectAll:ne})]})});Oa.displayName="MultiSelect";function id({value:e,defaultValue:t=0,max:r=5,size:s="md",variant:a="filled",readOnly:o=!1,allowHalf:i=!1,showValue:c=!1,onChange:u,onHover:d,className:f="",icon:p,emptyIcon:m}){const[h,x]=l.useState(t),[y,k]=l.useState(null),g=e!==void 0,j=y!=null?y:g?e:h,C={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6"},b=S=>{o||(g||x(S),u==null||u(S))},v=S=>{o||(k(S),d==null||d(S))},N=()=>{o||k(null)},D=S=>{const A=S+1,M=i&&j>=A-.5&&j<A,$=j>=A,L=w(C[s],he("base"),!o&&"cursor-pointer",$||M?"text-fg-warning":"text-fg-disabled"),_=p||n.jsx(kt,{className:L,fill:$?"currentColor":"none"}),F=m||n.jsx(kt,{className:L,fill:"none"});return n.jsx("span",{className:"relative inline-block",onClick:()=>b(A),onMouseEnter:()=>v(A),onMouseLeave:N,role:o?void 0:"button",tabIndex:o?void 0:0,"aria-label":`Rate ${A} out of ${r}`,onKeyDown:z=>{!o&&(z.key==="Enter"||z.key===" ")&&(z.preventDefault(),b(A))},children:M?n.jsxs("span",{className:"relative inline-block",children:[n.jsx("span",{className:"absolute inset-0 overflow-hidden",style:{width:"50%"},children:a==="filled"?n.jsx(kt,{className:L,fill:"currentColor"}):_}),a==="filled"?n.jsx(kt,{className:L,fill:"none"}):F]}):$?a==="filled"?n.jsx(kt,{className:L,fill:"currentColor"}):_:a==="filled"?n.jsx(kt,{className:L,fill:"none"}):F},S)};return n.jsxs("div",{className:w("inline-flex","items-center",T("xs","gap"),f),children:[n.jsx("div",{className:w("flex","items-center"),role:o?"img":void 0,"aria-label":o?`Rating: ${j} out of ${r}`:void 0,children:Array.from({length:r},(S,A)=>D(A))}),c&&n.jsxs("span",{className:w(T("sm","ml"),ve("sm"),"text-fg-secondary"),children:[j.toFixed(i?1:0),"/",r]})]})}function ld({accept:e,multiple:t=!1,maxSize:r,maxFiles:s,onFilesChange:a,onFileRemove:o,showPreview:i=!0,showProgress:c=!1,disabled:u=!1,className:d="",label:f,description:p}){const[m,h]=l.useState([]),[x,y]=l.useState(!1),k=l.useRef(null),g=$=>{if($===0)return"0 Bytes";const L=1024,_=["Bytes","KB","MB","GB"],F=Math.floor(Math.log($)/Math.log(L));return Math.round($/Math.pow(L,F)*100)/100+" "+_[F]},j=$=>r&&$.size>r?`File size exceeds ${g(r)}`:null,C=$=>{const L=Array.from($),_=[];return L.forEach(F=>{const z=j(F),X=`${Date.now()}-${Math.random().toString(36).substr(2,9)}`,q={file:F,id:X,error:z,progress:c?0:void 0};if(i&&F.type.startsWith("image/")){const H=new FileReader;H.onload=le=>{h(ne=>ne.map(I=>{var B;return I.id===X?P(R({},I),{preview:(B=le.target)==null?void 0:B.result}):I}))},H.readAsDataURL(F)}_.push(q)}),_},b=$=>{const L=t?[...m,...$]:$,_=s?L.slice(0,s):L;h(_),a==null||a(_)},v=$=>{if($.preventDefault(),y(!1),u)return;const L=$.dataTransfer.files;if(L.length>0){const _=C(L);b(_)}},N=$=>{$.preventDefault(),u||y(!0)},D=$=>{$.preventDefault(),y(!1)},S=$=>{if($.target.files&&$.target.files.length>0){const L=C($.target.files);b(L)}k.current&&(k.current.value="")},A=$=>{const L=m.filter(_=>_.id!==$);h(L),a==null||a(L),o==null||o($)},M=()=>{var $;u||($=k.current)==null||$.click()};return n.jsxs("div",{className:w(T("lg","gap"),"flex","flex-col",d),children:[(f||p)&&n.jsxs("div",{children:[f&&n.jsx("label",{className:w("block",ve("sm"),Et("medium"),"text-fg-primary",T("xs","mb")),children:f}),p&&n.jsx("p",{className:w(ve("sm"),"text-fg-secondary"),children:p})]}),n.jsxs("div",{onDrop:v,onDragOver:N,onDragLeave:D,onClick:M,className:w("relative","border-2","border-dashed",x?"border-line-brand":"border-line-default",J("lg"),T("lg","p"),"text-center","cursor-pointer",he("base"),"focus:border-line-focus",u?"opacity-50 cursor-not-allowed":w("hover:border-line-strong","focus:outline-none","focus:ring-2","focus:ring-offset-2")),role:"button",tabIndex:u?-1:0,"aria-label":"Upload files","aria-disabled":u,children:[n.jsx("input",{ref:k,type:"file",accept:e,multiple:t,onChange:S,disabled:u,className:"hidden"}),n.jsxs("div",{className:w("flex","flex-col","items-center",T("sm","gap")),children:[n.jsx(pc,{className:w("h-8","w-8",x?"text-fg-brand":"text-fg-secondary")}),n.jsxs("div",{children:[n.jsx("span",{className:w(ve("sm"),Et("medium"),"text-fg-primary"),children:x?"Drop files here":"Click to upload or drag and drop"}),e&&n.jsxs("p",{className:w(ve("xs"),"text-fg-secondary",T("xs","mt")),children:["Accepted: ",e]}),r&&n.jsxs("p",{className:w(ve("xs"),"text-fg-secondary"),children:["Max size: ",g(r)]})]})]})]}),m.length>0&&n.jsx("div",{className:w("flex","flex-col",T("sm","gap")),children:m.map($=>n.jsxs("div",{className:w("flex","items-center",T("md","gap"),T("base","p"),"border","border-line-default",J("md"),$.error?"bg-error-bg":"bg-surface-muted"),children:[i&&$.preview?n.jsx("img",{src:$.preview,alt:$.file.name,className:w("w-12","h-12","object-cover",J("md"))}):n.jsx(Yl,{className:w("h-8","w-8","text-fg-secondary")}),n.jsxs("div",{className:w("flex-1","min-w-0"),children:[n.jsx("p",{className:w(ve("sm"),Et("medium"),"text-fg-primary","truncate"),children:$.file.name}),n.jsx("p",{className:w(ve("xs"),"text-fg-secondary"),children:g($.file.size)}),$.error&&n.jsxs("div",{className:w("flex","items-center",T("xs","gap"),T("xs","mt")),children:[n.jsx(hs,{className:w("h-3","w-3","text-fg-error")}),n.jsx("span",{className:w(ve("xs"),"text-fg-error"),children:$.error})]}),c&&$.progress!==void 0&&n.jsx("div",{className:w(T("sm","mt")),children:n.jsx(xs,{value:$.progress,size:"sm"})})]}),!$.error&&!c&&n.jsx(cr,{className:w("h-5","w-5","text-fg-success")}),n.jsx(Z,{variant:"ghost",size:"sm",onClick:L=>{L.stopPropagation(),A($.id)},className:"h-auto p-1","aria-label":`Remove ${$.file.name}`,children:n.jsx(we,{className:"h-4 w-4"})})]},$.id))})]})}function $s({trigger:e,children:t,open:r,defaultOpen:s=!1,onOpenChange:a,placement:o="bottom",showCloseButton:i=!1,title:c,closeOnClickOutside:u=!0,closeOnEscape:d=!0,className:f="",triggerClassName:p="",contentClassName:m=""}){const[h,x]=l.useState(s),y=l.useRef(null),k=l.useRef(null),[g,j]=l.useState({top:0,left:0}),C=r!==void 0,b=C?r:h,v=l.useCallback(()=>{if(!y.current||!k.current)return;const A=y.current.getBoundingClientRect(),M=k.current.getBoundingClientRect(),$=window.scrollY,L=window.scrollX;let _=0,F=0;o.startsWith("top")?(_=A.top+$-M.height-8,o==="top-start"?F=A.left+L:o==="top-end"?F=A.right+L-M.width:F=A.left+L+(A.width-M.width)/2):o.startsWith("bottom")?(_=A.bottom+$+8,o==="bottom-start"?F=A.left+L:o==="bottom-end"?F=A.right+L-M.width:F=A.left+L+(A.width-M.width)/2):o.startsWith("left")?(F=A.left+L-M.width-8,o==="left-start"?_=A.top+$:o==="left-end"?_=A.bottom+$-M.height:_=A.top+$+(A.height-M.height)/2):o.startsWith("right")&&(F=A.right+L+8,o==="right-start"?_=A.top+$:o==="right-end"?_=A.bottom+$-M.height:_=A.top+$+(A.height-M.height)/2);const z=8;_=Math.max(z,Math.min(_,window.innerHeight+$-M.height-z)),F=Math.max(z,Math.min(F,window.innerWidth+L-M.width-z)),j({top:_,left:F})},[o]);l.useEffect(()=>{if(b){v();const A=()=>v(),M=()=>v();return window.addEventListener("resize",A),window.addEventListener("scroll",M,!0),()=>{window.removeEventListener("resize",A),window.removeEventListener("scroll",M,!0)}}},[b,o,v]),l.useEffect(()=>{b&&k.current&&setTimeout(v,0)},[b,v]);const N=l.useCallback(A=>{C||x(A),a==null||a(A)},[C,a]),D=l.useCallback(()=>{N(!1)},[N]);l.useEffect(()=>{if(b&&d){const A=M=>{M.key==="Escape"&&D()};return document.addEventListener("keydown",A),()=>document.removeEventListener("keydown",A)}},[b,d,D]),l.useEffect(()=>{if(b&&u){const A=M=>{k.current&&y.current&&!k.current.contains(M.target)&&!y.current.contains(M.target)&&D()};return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)}},[b,u,D]);const S=b?n.jsxs("div",{ref:k,className:`
238
+ absolute
239
+ ${ue("popover")}
240
+ bg-surface-overlay
241
+ ${J("lg")}
242
+ ${Se("lg")}
243
+ border
244
+ border-line-default
245
+ min-w-48
246
+ max-w-96
247
+ ${he("base")}
248
+ ${m}
249
+ `,style:{top:`${g.top}px`,left:`${g.left}px`},role:"dialog","aria-modal":"false",children:[(c||i)&&n.jsxs("div",{className:`
250
+ flex
251
+ items-center
252
+ justify-between
253
+ ${T("base","px")}
254
+ ${T("md","py")}
255
+ border-b
256
+ border-line-default
257
+ `,children:[c&&n.jsx("h3",{className:`${re("bodySmall")} ${Fe("h5")} text-fg-primary`,children:c}),i&&n.jsx(Z,{variant:"ghost",size:"sm",onClick:D,className:"h-auto p-1","aria-label":"Close popover",children:n.jsx(we,{className:"h-4 w-4"})})]}),n.jsx("div",{className:`
258
+ ${T("base","p")}
259
+ ${c||i?"":T("md","p")}
260
+ `,children:t})]}):null;return n.jsxs("div",{className:`inline-block ${f}`,children:[n.jsx("div",{ref:y,className:p,onClick:()=>N(!b),children:e}),typeof window!="undefined"&&Ue.createPortal(S,document.body)]})}function cd({value:e,defaultValue:t,format:r="24h",onChange:s,disabled:a=!1,label:o,error:i=!1,helperText:c,className:u=""}){const[d,f]=l.useState(t||""),[p,m]=l.useState(12),[h,x]=l.useState(0),[y,k]=l.useState("AM"),g=e!==void 0,j=g?e:d,C=l.useCallback(_=>{if(!_)return{hours:12,minutes:0,amPm:"AM"};if(r==="24h"){const[F,z]=_.split(":").map(Number);return{hours:F||12,minutes:z||0,amPm:"AM"}}else{const F=_.match(/(\d+):(\d+)\s*(AM|PM)/i);return F?{hours:parseInt(F[1]),minutes:parseInt(F[2]),amPm:F[3].toUpperCase()}:{hours:12,minutes:0,amPm:"AM"}}},[r]),b=(_,F,z)=>{if(r==="24h")return`${String(_).padStart(2,"0")}:${String(F).padStart(2,"0")}`;{const X=z==="PM"&&_!==12?_+12:z==="AM"&&_===12?0:_;return`${String(X===0?12:X>12?X-12:X).padStart(2,"0")}:${String(F).padStart(2,"0")} ${z||"AM"}`}};l.useEffect(()=>{if(j){const _=C(j);m(_.hours),x(_.minutes),k(_.amPm)}},[j,C]);const v=_=>{const F=r==="24h"?Math.max(0,Math.min(23,_)):Math.max(1,Math.min(12,_));m(F);const z=b(F,h,r==="12h"?y:void 0);g||f(z),s==null||s(z)},N=_=>{const F=Math.max(0,Math.min(59,_));x(F);const z=b(p,F,r==="12h"?y:void 0);g||f(z),s==null||s(z)},D=()=>{const _=y==="AM"?"PM":"AM";k(_);const F=b(p,h,_);g||f(F),s==null||s(F)},S=()=>{if(r==="24h")v((p+1)%24);else{const _=p===12?1:p+1;v(_)}},A=()=>{if(r==="24h")v(p===0?23:p-1);else{const _=p===1?12:p-1;v(_)}},M=()=>{N((h+1)%60)},$=()=>{N(h===0?59:h-1)},L=n.jsx("div",{className:`${T("base","p")} min-w-48`,children:n.jsxs("div",{className:"flex items-center justify-center gap-4",children:[n.jsxs("div",{className:"flex flex-col items-center gap-2",children:[n.jsx(Z,{variant:"ghost",size:"sm",onClick:S,disabled:a,"aria-label":"Increment hours",children:"↑"}),n.jsx("div",{className:"text-2xl font-mono font-semibold w-12 text-center",children:String(p).padStart(2,"0")}),n.jsx(Z,{variant:"ghost",size:"sm",onClick:A,disabled:a,"aria-label":"Decrement hours",children:"↓"})]}),n.jsx("div",{className:"text-2xl font-semibold",children:":"}),n.jsxs("div",{className:"flex flex-col items-center gap-2",children:[n.jsx(Z,{variant:"ghost",size:"sm",onClick:M,disabled:a,"aria-label":"Increment minutes",children:"↑"}),n.jsx("div",{className:"text-2xl font-mono font-semibold w-12 text-center",children:String(h).padStart(2,"0")}),n.jsx(Z,{variant:"ghost",size:"sm",onClick:$,disabled:a,"aria-label":"Decrement minutes",children:"↓"})]}),r==="12h"&&n.jsxs("div",{className:"flex flex-col gap-2 ml-2",children:[n.jsx(Z,{variant:y==="AM"?"primary":"outline",size:"sm",onClick:()=>D(),disabled:a,children:"AM"}),n.jsx(Z,{variant:y==="PM"?"primary":"outline",size:"sm",onClick:()=>D(),disabled:a,children:"PM"})]})]})});return n.jsx("div",{className:u,children:n.jsx($s,{trigger:n.jsx(ke,{label:o,value:j||b(p,h,r==="12h"?y:void 0),readOnly:!0,disabled:a,error:i,helperText:c,leftIcon:n.jsx(_l,{className:"h-4 w-4"}),className:"cursor-pointer"}),placement:"bottom-start",showCloseButton:!0,title:"Select Time",children:L})})}function dd({value:e,defaultValue:t="#000000",format:r="hex",onChange:s,presets:a,showInput:o=!0,disabled:i=!1,label:c,className:u=""}){const[d,f]=l.useState(t),[p,m]=l.useState({r:0,g:0,b:0}),h=e!==void 0,x=h?e:d,y=N=>{const D=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(N);return D?{r:parseInt(D[1],16),g:parseInt(D[2],16),b:parseInt(D[3],16)}:{r:0,g:0,b:0}},k=(N,D,S)=>"#"+[N,D,S].map(A=>{const M=A.toString(16);return M.length===1?"0"+M:M}).join("");l.useEffect(()=>{if(x){const N=y(x);m(N)}},[x]);const g=N=>{const D=N.target.value;(/^#[0-9A-F]{6}$/i.test(D)||D==="")&&(h||f(D),s==null||s(D),D&&m(y(D)))},j=(N,D)=>{const S=P(R({},p),{[N]:Math.max(0,Math.min(255,D))});m(S);const A=k(S.r,S.g,S.b);h||f(A),s==null||s(A)},b=a||["#000000","#ffffff","#ff0000","#00ff00","#0000ff","#ffff00","#ff00ff","#00ffff","#808080","#ffa500"],v=n.jsxs("div",{className:`${T("base","p")} min-w-[280px]`,children:[n.jsx("div",{className:`
261
+ w-full
262
+ h-32
263
+ ${J("md")}
264
+ ${Se("sm")}
265
+ mb-4
266
+ border
267
+ border-line-default
268
+ `,style:{backgroundColor:x}}),n.jsxs("div",{className:"space-y-3 mb-4",children:[n.jsxs("div",{children:[n.jsxs("label",{className:"block text-xs font-medium text-fg-secondary mb-1",children:["Red: ",p.r]}),n.jsx("input",{type:"range",min:"0",max:"255",value:p.r,onChange:N=>j("r",parseInt(N.target.value)),disabled:i,className:"w-full"})]}),n.jsxs("div",{children:[n.jsxs("label",{className:"block text-xs font-medium text-fg-secondary mb-1",children:["Green: ",p.g]}),n.jsx("input",{type:"range",min:"0",max:"255",value:p.g,onChange:N=>j("g",parseInt(N.target.value)),disabled:i,className:"w-full"})]}),n.jsxs("div",{children:[n.jsxs("label",{className:"block text-xs font-medium text-fg-secondary mb-1",children:["Blue: ",p.b]}),n.jsx("input",{type:"range",min:"0",max:"255",value:p.b,onChange:N=>j("b",parseInt(N.target.value)),disabled:i,className:"w-full"})]})]}),o&&n.jsx("div",{className:"mb-4",children:n.jsx(ke,{label:"Hex",value:x,onChange:g,disabled:i,placeholder:"#000000",className:"font-mono"})}),b.length>0&&n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-fg-secondary mb-2",children:"Presets"}),n.jsx("div",{className:"grid grid-cols-10 gap-1",children:b.map((N,D)=>n.jsx("button",{type:"button",onClick:()=>{i||(h||f(N),s==null||s(N),m(y(N)))},disabled:i,className:`
269
+ w-6
270
+ h-6
271
+ ${J("sm")}
272
+ border
273
+ border-line-emphasis
274
+ hover:scale-110
275
+ ${Se("sm")}
276
+ ${x.toLowerCase()===N.toLowerCase()?"ring-2 ring-offset-1 ring-line-brand":""}
277
+ `,style:{backgroundColor:N},"aria-label":`Select color ${N}`},D))})]})]});return n.jsx("div",{className:u,children:n.jsx($s,{trigger:n.jsxs("div",{className:"flex items-center gap-2",children:[c&&n.jsx("label",{className:"text-sm font-medium text-fg-secondary",children:c}),n.jsx("div",{className:`
278
+ w-10
279
+ h-10
280
+ ${J("md")}
281
+ border
282
+ border-line-emphasis
283
+ ${Se("sm")}
284
+ cursor-pointer
285
+ ${i?"opacity-50 cursor-not-allowed":""}
286
+ `,style:{backgroundColor:x}}),o&&n.jsx(ke,{value:x,onChange:g,disabled:i,placeholder:"#000000",className:"w-24 font-mono"})]}),placement:"bottom-start",showCloseButton:!0,title:"Pick a Color",children:v})})}const Va=l.createContext(void 0);function ud({children:e,value:t}){return n.jsx(Va.Provider,{value:t,children:e})}function fd(){const e=l.useContext(Va);if(!e)throw new Error("Drawer components must be used within Drawer");return e}function Es({children:e,className:t="",showCloseButton:r=!1}){const{isOpen:s,closeDrawer:a,position:o,size:i,closeOnOverlayClick:c,closeOnEscape:u}=fd();if(l.useEffect(()=>{if(s&&u){const m=h=>{h.key==="Escape"&&a()};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)}},[s,u,a]),l.useEffect(()=>{if(s)return document.body.style.overflow="hidden",()=>{document.body.style.overflow=""}},[s]),!s)return null;const d={sm:o==="left"||o==="right"?"w-64":"h-64",md:o==="left"||o==="right"?"w-96":"h-96",lg:o==="left"||o==="right"?"w-[32rem]":"h-[32rem]",xl:o==="left"||o==="right"?"w-[42rem]":"h-[42rem]",full:o==="left"||o==="right"?"w-full":"h-full"},f={left:"left-0 top-0 bottom-0",right:"right-0 top-0 bottom-0",top:"top-0 left-0 right-0",bottom:"bottom-0 left-0 right-0"},p=n.jsxs(n.Fragment,{children:[n.jsx("div",{className:`
287
+ fixed
288
+ inset-0
289
+ bg-scrim
290
+ ${ue("modal")}
291
+ ${he("base")}
292
+ ${s?"opacity-100":"opacity-0"}
293
+ `,onClick:c?a:void 0,"aria-hidden":"true"}),n.jsxs("div",{className:`
294
+ fixed
295
+ ${f[o]}
296
+ ${d[i]}
297
+ ${o==="left"||o==="right"?"max-w-[90vw]":"max-h-[90vh]"}
298
+ bg-surface-overlay
299
+ ${Se("xl")}
300
+ ${ue("modal")}
301
+ ${he("base")}
302
+ flex
303
+ flex-col
304
+ ${t}
305
+ `,role:"dialog","aria-modal":"true",onClick:m=>m.stopPropagation(),children:[r&&n.jsx("div",{className:`
306
+ flex
307
+ justify-end
308
+ ${T("sm","p")}
309
+ border-b
310
+ border-line-default
311
+ `,children:n.jsx(Z,{variant:"ghost",size:"sm",onClick:a,className:"h-auto p-1","aria-label":"Close drawer",children:n.jsx(we,{className:"h-4 w-4"})})}),e]})]});return typeof window!="undefined"?Ue.createPortal(p,document.body):null}function Wa(s){var a=s,{children:e,className:t=""}=a,r=O(a,["children","className"]);return n.jsx("div",P(R({className:`
312
+ ${T("lg","p")}
313
+ border-b
314
+ border-line-default
315
+ ${t}
316
+ `},r),{children:e}))}function Ha(s){var a=s,{children:e,className:t=""}=a,r=O(a,["children","className"]);return n.jsx("div",P(R({className:`
317
+ ${T("lg","p")}
318
+ border-t
319
+ border-line-default
320
+ flex
321
+ justify-end
322
+ ${T("sm","gap")}
323
+ ${t}
324
+ `},r),{children:e}))}function qt({children:e,open:t,defaultOpen:r=!1,onOpenChange:s,position:a="right",size:o="md",closeOnOverlayClick:i=!0,closeOnEscape:c=!0}){const[u,d]=l.useState(r),f=t!==void 0,p=f?t:u,m=x=>{f||d(x),s==null||s(x)},h=()=>{m(!1)};return n.jsx(ud,{value:{isOpen:p,closeDrawer:h,position:a,size:o,closeOnOverlayClick:i,closeOnEscape:c},children:e})}qt.Content=Es;qt.Header=Wa;qt.Footer=Ha;const Ba=l.createContext(void 0);function md({children:e,value:t}){return n.jsx(Ba.Provider,{value:t,children:e})}function Ms(){const e=l.useContext(Ba);if(!e)throw new Error("Menu components must be used within Menu");return e}const Ts=l.forwardRef(function(i,o){var c=i,{children:t,asChild:r=!1,onClick:s}=c,a=O(c,["children","asChild","onClick"]);const{isOpen:u,setIsOpen:d}=Ms(),f=p=>{s==null||s(p),r||d(!u)};return n.jsx("div",P(R({ref:o,onClick:f,role:"button",tabIndex:0,"aria-haspopup":"menu","aria-expanded":u},a),{children:t}))});Ts.displayName="MenuTrigger";function Ua({children:e,className:t="",align:r="start"}){const{isOpen:s,closeMenu:a,placement:o}=Ms(),i=l.useRef(null),c=l.useRef(null),[u,d]=l.useState({top:0,left:0});if(l.useEffect(()=>{if(s){const p=document.querySelector('[aria-haspopup="menu"]');c.current=p}},[s]),l.useEffect(()=>{if(s&&i.current&&c.current){const p=()=>{const x=c.current.getBoundingClientRect(),y=i.current.getBoundingClientRect(),k=window.scrollY,g=window.scrollX;let j=0,C=0;o==="bottom"?(j=x.bottom+k+4,r==="start"?C=x.left+g:r==="end"?C=x.right+g-y.width:C=x.left+g+(x.width-y.width)/2):o==="top"?(j=x.top+k-y.height-4,r==="start"?C=x.left+g:r==="end"?C=x.right+g-y.width:C=x.left+g+(x.width-y.width)/2):o==="right"?(C=x.right+g+4,r==="start"?j=x.top+k:r==="end"?j=x.bottom+k-y.height:j=x.top+k+(x.height-y.height)/2):o==="left"&&(C=x.left+g-y.width-4,r==="start"?j=x.top+k:r==="end"?j=x.bottom+k-y.height:j=x.top+k+(x.height-y.height)/2);const b=8;j=Math.max(b,Math.min(j,window.innerHeight+k-y.height-b)),C=Math.max(b,Math.min(C,window.innerWidth+g-y.width-b)),d({top:j,left:C})};p();const m=()=>p(),h=()=>p();return window.addEventListener("resize",m),window.addEventListener("scroll",h,!0),()=>{window.removeEventListener("resize",m),window.removeEventListener("scroll",h,!0)}}},[s,o,r]),l.useEffect(()=>{if(s){const p=m=>{m.key==="Escape"&&a()};return document.addEventListener("keydown",p),()=>document.removeEventListener("keydown",p)}},[s,a]),l.useEffect(()=>{if(s){const p=m=>{i.current&&c.current&&!i.current.contains(m.target)&&!c.current.contains(m.target)&&a()};return document.addEventListener("mousedown",p),()=>document.removeEventListener("mousedown",p)}},[s,a]),!s)return null;const f=n.jsx("div",{ref:i,role:"menu",className:`
325
+ absolute
326
+ ${ue("popover")}
327
+ bg-surface-overlay
328
+ ${J("md")}
329
+ ${Se("lg")}
330
+ border
331
+ border-line-default
332
+ min-w-40
333
+ ${T("xs","py")}
334
+ ${t}
335
+ `,style:{top:`${u.top}px`,left:`${u.left}px`},children:e});return typeof window!="undefined"?Ue.createPortal(f,document.body):null}const As=l.forwardRef(function(p,f){var m=p,{children:t,icon:r,rightIcon:s,disabled:a=!1,onClick:o,onSelect:i,hasSubmenu:c=!1,className:u=""}=m,d=O(m,["children","icon","rightIcon","disabled","onClick","onSelect","hasSubmenu","className"]);const{closeMenu:h}=Ms(),x=k=>{a||(o==null||o(k),i==null||i(k),!c&&!k.defaultPrevented&&h())},y=k=>{a||(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),x(k))};return n.jsxs("div",P(R({ref:f,role:"menuitem",tabIndex:a?-1:0,"aria-disabled":a,onClick:x,onKeyDown:y,className:`
336
+ flex
337
+ items-center
338
+ gap-2
339
+ ${T("sm","px")}
340
+ ${T("sm","py")}
341
+ ${re("bodySmall")}
342
+ text-fg-primary
343
+ cursor-pointer
344
+ transition-colors
345
+ hover:bg-surface-hover
346
+ focus:bg-surface-hover
347
+ focus:outline-none
348
+ ${a?"opacity-50 cursor-not-allowed":""}
349
+ ${u}
350
+ `},d),{children:[r&&n.jsx("span",{className:"shrink-0",children:r}),n.jsx("span",{className:"flex-1",children:t}),c&&n.jsx(pt,{className:"h-4 w-4 text-fg-secondary shrink-0"}),s&&!c&&n.jsx("span",{className:"shrink-0",children:s})]}))});As.displayName="MenuItem";function qa(r){var s=r,{className:e=""}=s,t=O(s,["className"]);return n.jsx("div",R({role:"separator",className:`
351
+ h-px
352
+ bg-line-default
353
+ ${T("sm","my")}
354
+ ${e}
355
+ `},t))}function Gt({children:e,open:t,defaultOpen:r=!1,onOpenChange:s,placement:a="bottom"}){const[o,i]=l.useState(r),c=t!==void 0,u=c?t:o,d=p=>{c||i(p),s==null||s(p)},f=()=>{d(!1)};return n.jsx(md,{value:{isOpen:u,setIsOpen:d,closeMenu:f,placement:a},children:e})}Gt.Trigger=Ts;Gt.Content=Ua;Gt.Item=As;Gt.Separator=qa;function pd({items:e,type:t="single",defaultOpen:r,onValueChange:s,className:a=""}){const o=()=>r===void 0?[]:Array.isArray(r)?r:[r],[i,c]=l.useState(o),u=d=>{var p;if((p=e.find(m=>m.id===d))!=null&&p.disabled)return;let f;t==="single"?f=i.includes(d)?[]:[d]:f=i.includes(d)?i.filter(m=>m!==d):[...i,d],c(f),s==null||s(t==="single"?f[0]||"":f)};return n.jsx("div",{className:`${T("xs","space-y")} ${a}`,children:e.map(d=>{const f=i.includes(d.id),p=d.disabled;return n.jsxs("div",{className:`border border-line-default ${J("md")} overflow-hidden`,children:[n.jsxs("button",{type:"button",onClick:()=>u(d.id),disabled:p,className:`
356
+ w-full
357
+ flex
358
+ items-center
359
+ justify-between
360
+ ${T("base","px")}
361
+ ${T("md","py")}
362
+ ${ce("label")}
363
+ text-left
364
+ text-fg-primary
365
+ bg-surface-base
366
+ hover:bg-surface-hover
367
+ focus:outline-none
368
+ focus:ring-2
369
+ focus:ring-offset-2
370
+ focus:ring-line-focus
371
+ ${he("base")}
372
+ ${p?"opacity-50 cursor-not-allowed":"cursor-pointer"}
373
+ `,"aria-expanded":f,"aria-controls":`accordion-content-${d.id}`,"aria-disabled":p,children:[n.jsx("span",{children:d.title}),n.jsx(ps,{className:`
374
+ ${T("sm","ml")}
375
+ ${he("base")}
376
+ ${f?"transform rotate-180":""}
377
+ ${p?"opacity-50":""}
378
+ `,"aria-hidden":"true"})]}),n.jsx("div",{id:`accordion-content-${d.id}`,className:`
379
+ overflow-hidden
380
+ ${he("base")}
381
+ ${f?"max-h-[1000px] opacity-100":"max-h-0 opacity-0"}
382
+ `,"aria-hidden":!f,children:n.jsx("div",{className:`
383
+ ${T("base","px")}
384
+ ${T("md","py")}
385
+ text-fg-secondary
386
+ `,children:d.content})})]},d.id)})})}const Ga=l.createContext(void 0);function is({children:e,mobileMenuOpen:t,onMobileMenuChange:r,defaultMobileMenuOpen:s=!1}){const[a,o]=l.useState(s),i=t!==void 0,c=i?t:a,u=l.useCallback(m=>{i||o(m),r==null||r(m)},[i,r]),d=l.useCallback(()=>{u(!c)},[c,u]),f=l.useCallback(()=>{u(!0)},[u]),p=l.useCallback(()=>{u(!1)},[u]);return n.jsx(Ga.Provider,{value:{isMobileMenuOpen:c,toggleMobileMenu:d,setMobileMenuOpen:u,openMobileMenu:f,closeMobileMenu:p},children:e})}function Rs(){const e=l.useContext(Ga);if(!e)throw new Error("useHeaderContext must be used within HeaderProvider");return e}function Ka(s){var a=s,{children:e,className:t}=a,r=O(a,["children","className"]);return n.jsx("div",{className:"flex-shrink-0",children:n.jsx(gs,P(R({href:r.href||"/",variant:"default",className:w("flex items-center font-semibold text-lg",t)},r),{children:e}))})}function Ya({children:e,className:t}){return n.jsx("nav",{className:w("flex-1 flex items-center justify-center gap-4","hidden md:flex",t),"aria-label":"Main navigation",children:e})}function Xa({children:e,className:t}){return n.jsx("div",{className:w("flex-shrink-0 flex items-center gap-2",t),children:e})}function Ja({className:e,icon:t,closeIcon:r,variant:s="ghost",size:a="md"}){const{isMobileMenuOpen:o,toggleMobileMenu:i}=Rs(),c=t||n.jsx(nc,{className:"h-5 w-5"}),u=r||n.jsx(we,{className:"h-5 w-5"});return n.jsx(Z,{variant:s,size:a,onClick:i,className:w("md:hidden",e),"aria-label":o?"Close menu":"Open menu","aria-expanded":o,children:o?u:c})}function Za({children:e,className:t}){const{isMobileMenuOpen:r,closeMobileMenu:s}=Rs();return n.jsx(qt,{open:r,onOpenChange:a=>{a||s()},position:"left",size:"sm",closeOnOverlayClick:!0,closeOnEscape:!0,children:n.jsx(Es,{className:w("p-4",t),children:n.jsx("nav",{className:"flex flex-col gap-2","aria-label":"Mobile navigation",children:e})})})}const hd={sm:"max-w-screen-sm",md:"max-w-screen-md",lg:"max-w-screen-lg",xl:"max-w-screen-xl","2xl":"max-w-screen-2xl",full:"max-w-full"},ot=l.forwardRef((u,c)=>{var d=u,{className:e,maxWidth:t="lg",paddingX:r="base",paddingY:s="base",center:a=!0,children:o}=d,i=O(d,["className","maxWidth","paddingX","paddingY","center","children"]);return n.jsx("div",P(R({ref:c,className:w("w-full",hd[t],T(r,"px"),T(s,"py"),a&&"mx-auto",e)},i),{children:o}))});ot.displayName="Container";const Tt=l.forwardRef((u,c)=>{var d=u,{className:e,spacing:t="base",align:r="stretch",justify:s="start",direction:a="column",children:o}=d,i=O(d,["className","spacing","align","justify","direction","children"]);const f=a==="column"?T(t,"gap-y"):T(t,"gap-x"),p={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},m={start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"};return n.jsx("div",P(R({ref:c,className:w("flex",a==="column"?"flex-col":"flex-row",f,p[r],m[s],e)},i),{children:o}))});Tt.displayName="Stack";const bd=xe(w("w-full","bg-surface-base","transition-shadow","transition-colors"),{variants:{variant:{default:"",elevated:"shadow-sm",bordered:w("border-b","border-line-muted")}},defaultVariants:{variant:"default"}});function bt(c){var u=c,{children:e,variant:t="default",sticky:r=!1,maxWidth:s="full",bare:a=!1,className:o}=u,i=O(u,["children","variant","sticky","maxWidth","bare","className"]);const d=n.jsx("div",{className:"flex items-center justify-between gap-4",children:e});return a?n.jsx(is,{children:n.jsx("div",P(R({className:w(o)},i),{children:d}))}):n.jsx(is,{children:n.jsx("header",P(R({className:w(bd({variant:t}),r&&`sticky top-0 ${ue("sticky")}`,r&&"backdrop-blur-sm bg-surface-base/95",o)},i),{children:n.jsx(ot,{maxWidth:s,paddingX:"base",paddingY:"sm",children:d})}))})}bt.Logo=Ka;bt.Navigation=Ya;bt.Actions=Xa;bt.Hamburger=Ja;bt.MobileMenu=Za;const Rn=xe(w("flex","items-center","gap-2"),{variants:{orientation:{horizontal:"flex-row",vertical:"flex-col"},variant:{default:"",pills:"",tabs:""}},defaultVariants:{orientation:"horizontal",variant:"default"},compoundVariants:[{orientation:"vertical",variant:"default",class:"items-stretch"},{orientation:"vertical",variant:"pills",class:"items-stretch"},{orientation:"vertical",variant:"tabs",class:"items-stretch"}]});function gd(u){var d=u,{items:e,orientation:t="horizontal",variant:r="default",className:s,"aria-label":a="Main navigation",bare:o=!1,pathname:i}=d,c=O(d,["items","orientation","variant","className","aria-label","bare","pathname"]);let f=i;if(!f)try{const h=typeof require!="undefined"?require("next/navigation"):null;if(h!=null&&h.usePathname){const x=h.usePathname;f=x()}}catch(h){f=void 0}const p=l.useMemo(()=>e.map(h=>{if(h.active!==void 0)return h;if(f){const x=f===h.href||h.href!=="/"&&f.startsWith(`${h.href}/`);return P(R({},h),{active:x})}return P(R({},h),{active:!1})}),[e,f]),m=n.jsx(n.Fragment,{children:p.map((h,x)=>{const y=r==="pills"?"background":r==="tabs"?"underline":"default";return n.jsxs(gs,{href:h.href,active:h.active,disabled:h.disabled,variant:y,className:w("flex items-center gap-2",t==="vertical"&&"w-full justify-start",h.className),children:[h.icon&&n.jsx("span",{className:"flex-shrink-0","aria-hidden":"true",children:h.icon}),n.jsx("span",{children:h.label}),h.badge&&n.jsx("span",{className:"ml-auto",children:h.badge})]},h.href||x)})});return o?n.jsx("div",P(R({className:w(Rn({orientation:t,variant:r}),s)},c),{children:m})):n.jsx("nav",P(R({className:w(Rn({orientation:t,variant:r}),s),"aria-label":a},c),{children:m}))}function Qa(e){return n.jsx(gd,P(R({},e),{pathname:e.pathname}))}const xd=xe(w("w-full","flex","flex-col","gap-2"),{variants:{variant:{default:w(T("base","mb")),compact:w(T("sm","mb"))}},defaultVariants:{variant:"default"}});function eo(c){var u=c,{title:e,description:t,breadcrumb:r,actions:s,variant:a="default",className:o}=u,i=O(u,["title","description","breadcrumb","actions","variant","className"]);return n.jsxs("div",P(R({className:w(xd({variant:a}),o)},i),{children:[r&&r.length>0&&n.jsx(Ea,{items:r}),n.jsxs("div",{className:"flex items-start justify-between gap-4",children:[n.jsxs("div",{className:"flex-1 min-w-0",children:[n.jsx(Be,{variant:"heading",as:"h1",className:"mb-2 text-2xl font-bold",children:e}),t&&n.jsx(Be,{variant:"body",className:"text-fg-secondary",children:t})]}),s&&n.jsx("div",{className:"flex items-center gap-2 flex-shrink-0",children:s})]})]}))}function vd(s){var a=s,{onForgotPasswordClick:e,className:t}=a,r=O(a,["onForgotPasswordClick","className"]);return n.jsx("div",{className:w(T("base","p"),"bg-surface-muted",J("md"),t),children:n.jsxs("form",P(R({},r),{onSubmit:o=>{o.preventDefault(),r.onSubmit&&r.onSubmit(o)},className:w("space-y-4",r.className),children:[n.jsxs("div",{className:"space-y-2",children:[n.jsx(Mt,{htmlFor:"login-email",variant:"required",children:"Your email"}),n.jsx(ke,{id:"login-email",placeholder:"myname@email.com",type:"email"})]}),n.jsxs("div",{className:"space-y-2",children:[n.jsx(Mt,{htmlFor:"login-password",variant:"required",children:"Your password"}),n.jsx(ke,{id:"login-password",placeholder:"••••••••",type:"password"})]}),n.jsxs("div",{className:"flex justify-between",children:[n.jsx(Z,{variant:"secondary",type:"button",onClick:e,children:"Forgot password?"}),n.jsx(Z,{variant:"regular",type:"submit",children:"Sign in"})]})]}))})}function yd(d){var f=d,{isOpen:e,onClose:t,title:r,children:s,variant:a="default",showCloseButton:o=!0,footer:i,className:c=""}=f,u=O(f,["isOpen","onClose","title","children","variant","showCloseButton","footer","className"]);const p=l.useRef(null),m=l.useRef(null);if(l.useEffect(()=>{if(!e)return;m.current=document.activeElement;const j=setTimeout(()=>{var b;(b=p.current)==null||b.focus()},0),C=b=>{b.key==="Escape"&&t()};return document.addEventListener("keydown",C),()=>{var b;clearTimeout(j),document.removeEventListener("keydown",C),(b=m.current)==null||b.focus()}},[e,t]),l.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e]),!e)return null;const h=["fixed","inset-0",ue("modal"),"overflow-y-auto"],x=["fixed","inset-0","bg-scrim","transition-opacity"],k=["relative","bg-surface-overlay","rounded-lg","shadow-xl","my-8","mx-auto",{default:"max-w-md",large:"max-w-2xl",fullscreen:"max-w-full h-full"}[a],"p-6",c].filter(Boolean).join(" "),g=n.jsxs("div",{className:h.join(" "),role:"dialog","aria-modal":"true","aria-labelledby":r?"modal-title":void 0,onClick:j=>{j.target===j.currentTarget&&t()},children:[n.jsx("div",{className:x.join(" "),"aria-hidden":"true"}),n.jsx("div",{className:"flex min-h-full items-center justify-center p-4",children:n.jsxs("div",P(R({ref:p,tabIndex:-1,className:k,onClick:j=>j.stopPropagation()},u),{children:[r&&n.jsxs("div",{className:"flex justify-between items-center mb-4",children:[n.jsx("h2",{id:"modal-title",className:"text-xl font-semibold text-fg-primary",children:r}),o&&n.jsx("button",{onClick:t,className:"text-fg-tertiary hover:text-fg-secondary focus:outline-none","aria-label":"Close modal",children:n.jsx(we,{className:"h-6 w-6"})})]}),!r&&o&&n.jsx("div",{className:"flex justify-end mb-4",children:n.jsx("button",{onClick:t,className:"text-fg-tertiary hover:text-fg-secondary focus:outline-none","aria-label":"Close modal",children:n.jsx(we,{className:"h-6 w-6"})})}),n.jsx("div",{className:"mb-4",children:s}),i&&n.jsx("div",{className:"flex justify-end gap-2 mt-4",children:i})]}))})]});return typeof window!="undefined"?Ue.createPortal(g,document.body):g}const Ar=l.createContext(void 0);function Pe(){const e=l.useContext(Ar);if(e===void 0)throw new Error("useTableContext must be used within a Table component");return e}function wd(){const e=l.useContext(Ar);return e||void 0}function ls({columns:e,data:t,loading:r=!1,paginationMode:s,page:a,pageSize:o,total:i,onPageChange:c,onPageSizeChange:u,defaultPageSize:d=10,pageSizeOptions:f,sortColumn:p,sortDirection:m,onSort:h,defaultSortColumn:x,defaultSortDirection:y="asc",filters:k,filterValues:g,onFilter:j,initialFilterValues:C={},selectable:b=!1,selectedRows:v,onSelectionChange:N,rowId:D,actions:S,emptyMessage:A="No data available",emptyStateTitle:M,emptyStateMessage:$,emptyStateIllustration:L,emptyStateAction:_,onRowClick:F,resizable:z=!1,columnWidths:X,onColumnResize:q,virtualScrolling:H,virtualScrollingOptions:le,children:ne}){const I=l.useMemo(()=>s||(i!==void 0&&c?"server":"client"),[s,i,c]),B=a!==void 0,[Y,Q]=l.useState(1),[W,U]=l.useState(d),V=B?a:Y,se=o!=null?o:W,ae=l.useMemo(()=>I==="server"?i!=null?i:0:t.length,[I,i,t.length]),oe=l.useMemo(()=>Math.ceil(ae/se),[ae,se]),Ne=p!==void 0,[ze,Lt]=l.useState(x||""),[Ae,Ft]=l.useState(y),$e=Ne?p:ze,Yt=Ne?m||"asc":Ae,Or=g!==void 0,[$o,Eo]=l.useState(C),Xt=Or?g:$o,Vr=v!==void 0,[Mo,To]=l.useState([]),Re=Vr?v:Mo,Jt=l.useMemo(()=>!k||k.length===0?t:t.filter(ee=>k.every(de=>{const be=Xt[de.key];if(!be||be==="")return!0;const Qt=ee[de.key];return de.type==="text"?String(Qt||"").toLowerCase().includes(String(be).toLowerCase()):String(Qt)===String(be)})),[t,k,Xt]),Wr=l.useMemo(()=>{if(Ne&&h||!$e)return Jt;const ee=[...Jt];return ee.sort((de,be)=>{const Qt=de[$e],Do=be[$e],dn=String(Qt||"").localeCompare(String(Do||""));return Yt==="asc"?dn:-dn}),ee},[Jt,$e,Yt,h,Ne]),Oe=l.useMemo(()=>{if(I==="server")return Wr;const ee=(V-1)*se,de=ee+se;return Wr.slice(ee,de)},[Wr,I,V,se]),vt=l.useCallback((ee,de)=>{var be;return D?D(ee):((be=ee==null?void 0:ee.id)==null?void 0:be.toString())||de.toString()},[D]),Zt=l.useMemo(()=>!b||Oe.length===0?!1:Oe.every((ee,de)=>{const be=vt(ee,de);return Re.includes(be)}),[b,Oe,Re,vt]),tn=l.useMemo(()=>{if(!b)return!1;const ee=Re.length;return ee>0&&ee<Oe.length},[b,Re.length,Oe.length]),yt=l.useCallback(ee=>{B?c==null||c(ee):Q(ee)},[B,c]),rn=l.useCallback(ee=>{u?u(ee):U(ee),yt(1)},[u,yt]),sn=l.useCallback((ee,de)=>{Ne?h==null||h(ee,de):(Lt(ee),Ft(de))},[Ne,h]),nn=l.useCallback(ee=>{Or?j==null||j(ee):Eo(ee),yt(1)},[Or,j,yt]),dt=l.useCallback(ee=>{Vr?N==null||N(ee):To(ee)},[Vr,N]),an=l.useCallback(ee=>{const de=Re.includes(ee)?Re.filter(be=>be!==ee):[...Re,ee];dt(de)},[Re,dt]),on=l.useCallback(()=>{if(Zt)dt([]);else{const ee=Oe.map((de,be)=>vt(de,be));dt(ee)}},[Zt,Oe,vt,dt]),[Ao,Ro]=l.useState({}),Hr=X!==void 0,ln=Hr?X:Ao,cn=l.useCallback((ee,de)=>{Hr?q==null||q(ee,de):Ro(be=>P(R({},be),{[ee]:de}))},[Hr,q]),Io=l.useMemo(()=>({columns:e,data:t,paginatedData:Oe,loading:r,paginationState:{page:V,pageSize:se,total:ae,totalPages:oe},sortState:{column:$e,direction:Yt},filterState:{values:Xt,config:k||[]},selectionState:{selectedRows:Re,isAllSelected:Zt,isIndeterminate:tn},paginationMode:I,selectable:b,rowId:D,actions:S,resizable:z,columnWidths:ln,virtualScrolling:H,emptyMessage:A,emptyStateTitle:M,emptyStateMessage:$,emptyStateIllustration:L,emptyStateAction:_,setPage:yt,setPageSize:rn,setSorting:sn,setFilters:nn,setSelection:dt,toggleRowSelection:an,toggleSelectAll:on,getRowId:vt,setColumnWidth:cn,onPageChange:c,onPageSizeChange:u,onSort:h,onFilter:j,onSelectionChange:N,onRowClick:F,onColumnResize:q}),[e,t,Oe,r,V,se,ae,oe,$e,Yt,Xt,k,Re,Zt,tn,I,b,D,S,A,M,$,L,_,yt,rn,sn,nn,dt,an,on,vt,cn,c,u,h,j,N,F,q,z,ln,H]);return n.jsx(Ar.Provider,{value:Io,children:ne})}function Is(u){var d=u,{column:e,resizable:t=!1,width:r,onResize:s,minWidth:a=50,maxWidth:o,className:i=""}=d,c=O(d,["column","resizable","width","onResize","minWidth","maxWidth","className"]);const{sortState:f,setSorting:p,onSort:m}=Pe(),h=l.useRef(null),x=l.useRef(null),y=l.useRef(null),k=()=>{if(!e.sortable||!m&&!p)return;const N=f.column===e.key&&f.direction==="asc"?"desc":"asc";m?m(e.key,N):p(e.key,N)},g=N=>{b&&(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),k())},j=N=>{if(N.preventDefault(),N.stopPropagation(),!x.current||!s)return;const D=r||x.current.offsetWidth;y.current={x:N.clientX,width:D};const S=M=>{if(!y.current)return;const $=M.clientX-y.current.x,L=y.current.width+$,_=Math.max(a,o?Math.min(L,o):L);s(e.key,_)},A=()=>{document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",A),y.current=null};document.addEventListener("mousemove",S),document.addEventListener("mouseup",A)},C=f.column===e.key,b=e.sortable&&(m||p),v=C?f.direction:void 0;return n.jsx("th",P(R({ref:x,scope:"col",role:"columnheader","aria-sort":C?v==="asc"?"ascending":"descending":b?"none":void 0,className:`px-6 py-3 text-left text-xs font-medium text-fg-tertiary uppercase tracking-wider ${b?"cursor-pointer hover:bg-surface-active focus:bg-surface-active focus:outline-none focus:ring-2 focus:ring-line-focus focus:ring-offset-2 select-none":""} ${e.hiddenOnMobile?"hidden md:table-cell":""} ${i}`,onClick:b?k:void 0,onKeyDown:b?g:void 0,tabIndex:b?0:void 0,style:r?{width:`${r}px`,minWidth:`${r}px`}:void 0},c),{children:n.jsxs("div",{className:"flex items-center gap-2 relative",children:[n.jsx("span",{children:e.label}),C&&n.jsx("span",{className:"text-fg-tertiary","aria-hidden":"true",children:f.direction==="asc"?"↑":"↓"}),t&&s&&n.jsx("div",{ref:h,className:"absolute right-0 top-0 bottom-0 w-1 cursor-col-resize hover:bg-surface-brand transition-colors",onMouseDown:j,role:"separator","aria-orientation":"vertical","aria-label":`Resize ${e.label} column`,style:{touchAction:"none"}})]})}))}function Ds(r){var s=r,{className:e=""}=s,t=O(s,["className"]);const{columns:a,selectable:o,selectionState:i,toggleSelectAll:c,actions:u,resizable:d,columnWidths:f,setColumnWidth:p}=Pe();return n.jsxs("tr",P(R({role:"row",className:e},t),{children:[o&&n.jsx("th",{scope:"col",role:"columnheader",className:"px-6 py-3 w-12","aria-label":"Select all",children:n.jsx(jr,{checked:i.isAllSelected,onChange:c,"aria-label":"Select all rows",className:"my-0",indeterminate:i.isIndeterminate})}),a.map(m=>n.jsx(Is,{column:m,resizable:d,width:f==null?void 0:f[m.key],onResize:p},m.key)),u&&n.jsx("th",{scope:"col",role:"columnheader",className:"px-6 py-3 text-right text-xs font-medium text-fg-tertiary uppercase tracking-wider w-12","aria-label":"Actions",children:n.jsx("span",{className:"sr-only",children:"Actions"})})]}))}function Ls(r){var s=r,{className:e=""}=s,t=O(s,["className"]);return Pe(),n.jsx("thead",P(R({className:`bg-surface-subtle sticky top-0 ${ue("sticky")} ${e}`},t),{children:n.jsx(Ds,{})}))}function Fs(a){var o=a,{column:e,row:t,className:r=""}=o,s=O(o,["column","row","className"]);const i=e.key in t?t[e.key]:void 0;return n.jsx("td",P(R({className:`px-6 py-4 whitespace-nowrap text-sm text-fg-primary ${e.hiddenOnMobile?"hidden md:table-cell":""} ${r}`},s),{children:e.render?e.render(i,t):String(i!=null?i:"")}))}function kd(o){var i=o,{actions:e,row:t,align:r="right",className:s=""}=i,a=O(i,["actions","row","align","className"]);const c=e.map(u=>({label:u.label,onClick:()=>u.onClick(t),variant:u.variant,disabled:u.disabled}));return n.jsx("div",P(R({className:`inline-flex ${s}`},a),{children:n.jsx(Aa,{trigger:n.jsx(Z,{variant:"ghost",size:"sm","aria-label":"Row actions",className:"h-8 w-8 p-0",children:n.jsx(Hl,{className:"h-4 w-4"})}),items:c,align:r})}))}function _s(a){var o=a,{row:e,align:t="right",className:r=""}=o,s=O(o,["row","align","className"]);const{actions:i}=Pe();if(!i)return null;const c=i(e);return c.length===0?null:n.jsx(kd,R({row:e,actions:c,align:t,className:r},s))}function pr(i){var c=i,{row:e,rowIndex:t,className:r="",onClick:s,style:a}=c,o=O(c,["row","rowIndex","className","onClick","style"]);const{columns:u,selectable:d,selectionState:f,toggleRowSelection:p,getRowId:m,actions:h,onRowClick:x}=Pe(),y=m(e,t),k=f.selectedRows.includes(y),g=j=>{s&&s(j),x&&x(e)};return n.jsxs("tr",P(R({role:"row","aria-selected":d?k:void 0,"aria-rowindex":t+1,className:`hover:bg-surface-hover ${k?"bg-surface-selected":""} ${r}`,onClick:g,style:a},o),{children:[d&&n.jsx("td",{className:"px-6 py-4",children:n.jsx(jr,{checked:k,onChange:()=>p(y),"aria-label":`Select row ${y}`,className:"my-0"})}),u.map(j=>n.jsx(Fs,{column:j,row:e},String(j.key))),h&&n.jsx("td",{className:"px-6 py-4 text-right",children:n.jsx(_s,{row:e})})]}))}function Ps(r){var s=r,{className:e=""}=s,t=O(s,["className"]);const{emptyMessage:a,emptyStateTitle:o,emptyStateMessage:i,emptyStateIllustration:c,emptyStateAction:u}=Pe();return o||i||c?n.jsxs("div",P(R({className:e},t),{children:[n.jsx(Ta,{title:o||"No data available",message:i||a||"No data available",variant:c?"withIllustration":"default",illustration:c}),u&&n.jsx("div",{className:"mt-4 flex justify-center",children:u})]})):n.jsx("div",P(R({className:`text-center text-fg-secondary ${e}`},t),{children:a||"No data available"}))}function to(e,t){const{itemHeight:r,containerHeight:s,overscan:a=5,enabled:o=!0}=t,[i,c]=l.useState(0),u=l.useRef(null),d=l.useMemo(()=>{if(!o||e.length===0)return e.map((y,k)=>({index:k,start:k*r,end:(k+1)*r,size:r}));const m=Math.max(0,Math.floor(i/r)-a),h=s?Math.min(e.length,Math.ceil((i+s)/r)+a):e.length,x=[];for(let y=m;y<h;y++)x.push({index:y,start:y*r,end:(y+1)*r,size:r});return x},[e,r,i,s,a,o]),f=e.length*r;return l.useEffect(()=>{if(!o||!u.current)return;const m=u.current,h=()=>{c(m.scrollTop)};return m.addEventListener("scroll",h,{passive:!0}),()=>m.removeEventListener("scroll",h)},[o]),{virtualItems:d,totalHeight:f,scrollOffset:i,setScrollOffset:c,scrollToIndex:m=>{if(!u.current)return;const h=m*r;u.current.scrollTop=h,c(h)},containerRef:u}}function zs(s){var a=s,{children:e,className:t=""}=a,r=O(a,["children","className"]);var y,k;const{paginatedData:o,loading:i,columns:c,selectable:u,actions:d,virtualScrolling:f,virtualScrollingOptions:p}=Pe(),m=c.length+(u?1:0)+(d?1:0),h=to(o,{itemHeight:(p==null?void 0:p.itemHeight)||50,containerHeight:p==null?void 0:p.containerHeight,overscan:(p==null?void 0:p.overscan)||5,enabled:f||!1}),x=l.useMemo(()=>f&&h.virtualItems.length>0?h.virtualItems.map(g=>({row:o[g.index],index:g.index})).filter(g=>g.row!==void 0):o.map((g,j)=>({row:g,index:j})),[f,h.virtualItems,o]);return i?n.jsx("tbody",P(R({className:`bg-surface-base divide-y divide-line-default ${t}`},r),{children:Array.from({length:5}).map((g,j)=>n.jsx("tr",{children:Array.from({length:m}).map((C,b)=>n.jsx("td",{className:"px-6 py-4",children:n.jsx(ba,{className:"h-4 w-full"})},b))},j))})):o.length===0?n.jsx("tbody",P(R({className:`bg-surface-base divide-y divide-line-default ${t}`},r),{children:n.jsx("tr",{children:n.jsx("td",{colSpan:m,className:"px-6 py-12",children:n.jsx(Ps,{})})})})):typeof e=="function"?n.jsx("tbody",P(R({className:`bg-surface-base divide-y divide-line-default ${t}`},r),{children:o.map((g,j)=>e(g,j))})):n.jsx("tbody",P(R({className:`bg-surface-base divide-y divide-line-default ${t}`,role:"rowgroup"},r),{children:f&&h.virtualItems.length>0&&x.length>0?n.jsxs(n.Fragment,{children:[((y=h.virtualItems[0])==null?void 0:y.start)>0&&n.jsx("tr",{style:{height:h.virtualItems[0].start},"aria-hidden":"true",children:n.jsx("td",{colSpan:m})}),x.map(({row:g,index:j})=>n.jsx(pr,{row:g,rowIndex:j},j)),h.virtualItems.length>0&&n.jsx("tr",{style:{height:Math.max(0,h.totalHeight-(((k=h.virtualItems[h.virtualItems.length-1])==null?void 0:k.end)||0))},"aria-hidden":"true",children:n.jsx("td",{colSpan:m})})]}):x.map(({row:g,index:j})=>n.jsx(pr,{row:g,rowIndex:j},j))}))}function jd(i){var c=i,{filters:e,onFilter:t,initialValues:r={},showClearAll:s=!0,className:a=""}=c,o=O(c,["filters","onFilter","initialValues","showClearAll","className"]);const[u,d]=l.useState(r),[f,p]=l.useState(!1),m=Object.values(u).some(g=>g!==""&&g!==null&&g!==void 0),h=(g,j)=>{const C=P(R({},u),{[g]:j});d(C),t(C)},x=()=>{const g={};e.forEach(j=>{g[j.key]=""}),d(g),t(g)},y=g=>{const j=P(R({},u),{[g]:""});d(j),t(j)},k=Object.values(u).filter(g=>g!==""&&g!==null&&g!==void 0).length;return n.jsx("div",P(R({className:`bg-surface-base border-b border-line-default ${a}`},o),{children:n.jsxs("div",{className:"px-4 py-3 sm:px-6",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("button",{type:"button",onClick:()=>p(!f),className:"flex items-center gap-2 text-sm font-medium text-fg-secondary hover:text-fg-primary",children:[n.jsx(Jl,{className:"h-4 w-4"}),n.jsx("span",{children:"Filters"}),k>0&&n.jsx("span",{className:`inline-flex items-center ${T("sm","px")} ${T("0.5","py")} rounded text-xs font-medium bg-surface-brand-muted text-fg-brand-emphasis`,children:k})]}),m&&s&&n.jsx(Z,{variant:"ghost",size:"sm",onClick:x,className:"text-sm",children:"Clear all"})]}),f&&n.jsx("div",{className:"mt-4 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:e.map(g=>{const j=u[g.key]||"";return n.jsxs("div",{className:"space-y-1",children:[n.jsx(Mt,{htmlFor:`filter-${g.key}`,variant:"optional",children:g.label}),n.jsxs("div",{className:"relative",children:[g.type==="text"&&n.jsx(ke,{id:`filter-${g.key}`,type:"text",value:j,onChange:C=>h(g.key,C.target.value),placeholder:g.placeholder||`Filter by ${g.label.toLowerCase()}`,size:"sm",variant:"outlined"}),g.type==="select"&&n.jsxs("div",{className:"relative",children:[n.jsx(kr,{id:`filter-${g.key}`,options:[{value:"",label:`All ${g.label}`},...g.options||[]],value:j,onChange:C=>h(g.key,C.target.value)}),j&&n.jsx("button",{type:"button",onClick:()=>y(g.key),className:"absolute right-8 top-1/2 -translate-y-1/2 text-fg-tertiary hover:text-fg-secondary","aria-label":`Clear ${g.label} filter`,children:n.jsx(we,{className:"h-4 w-4"})})]}),g.type==="date"&&n.jsx(ke,{id:`filter-${g.key}`,type:"date",value:j,onChange:C=>h(g.key,C.target.value),size:"sm",variant:"outlined"}),j&&g.type!=="select"&&n.jsx("button",{type:"button",onClick:()=>y(g.key),className:"absolute right-2 top-1/2 -translate-y-1/2 text-fg-tertiary hover:text-fg-secondary","aria-label":`Clear ${g.label} filter`,children:n.jsx(we,{className:"h-4 w-4"})})]})]},g.key)})})]})}))}function Os(s){var a=s,{showClearAll:e=!0,className:t=""}=a,r=O(a,["showClearAll","className"]);const{filterState:o,setFilters:i}=Pe();return o.config.length===0?null:n.jsx(jd,R({filters:o.config,onFilter:i,initialValues:o.values,showClearAll:e,className:t},r))}function Nd(f){var p=f,{page:e,pageSize:t,total:r,onPageChange:s,onPageSizeChange:a,pageSizeOptions:o=[10,25,50,100],showPageSizeSelector:i=!0,showPageInfo:c=!0,className:u=""}=p,d=O(p,["page","pageSize","total","onPageChange","onPageSizeChange","pageSizeOptions","showPageSizeSelector","showPageInfo","className"]);const m=Math.ceil(r/t),h=r===0?0:(e-1)*t+1,x=Math.min(e*t,r),y=()=>{e>1&&s(e-1)},k=()=>{e<m&&s(e+1)},g=()=>{e>1&&s(1)},j=()=>{e<m&&s(m)};return n.jsxs("div",P(R({className:`flex items-center justify-between px-4 py-3 bg-surface-base border-t border-line-default sm:px-6 ${u}`},d),{children:[n.jsxs("div",{className:"flex flex-1 justify-between sm:hidden",children:[n.jsx(Z,{variant:"outline",size:"sm",onClick:y,disabled:e===1,children:"Previous"}),n.jsx(Z,{variant:"outline",size:"sm",onClick:k,disabled:e>=m,children:"Next"})]}),n.jsxs("div",{className:"hidden sm:flex sm:flex-1 sm:items-center sm:justify-between",children:[c&&n.jsx("div",{children:n.jsxs(Be,{as:"p",className:"text-sm text-fg-secondary",children:["Showing ",n.jsx("span",{className:"font-medium",children:h})," to"," ",n.jsx("span",{className:"font-medium",children:x})," of"," ",n.jsx("span",{className:"font-medium",children:r})," results"]})}),n.jsxs("div",{className:"flex items-center gap-4",children:[i&&n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(Be,{as:"span",className:"text-sm text-fg-secondary",children:"Show:"}),n.jsx(kr,{options:o.map(C=>({value:C.toString(),label:C.toString()})),value:t.toString(),onChange:C=>{const b=parseInt(C.target.value);a(b),s(1)},className:"w-20"})]}),n.jsxs("nav",{className:"flex items-center gap-1","aria-label":"Pagination",children:[n.jsxs(Z,{variant:"ghost",size:"sm",onClick:g,disabled:e===1,"aria-label":"First page",children:[n.jsx(Ht,{className:"h-4 w-4"}),n.jsx(Ht,{className:"h-4 w-4 -ml-2"})]}),n.jsx(Z,{variant:"ghost",size:"sm",onClick:y,disabled:e===1,"aria-label":"Previous page",children:n.jsx(Ht,{className:"h-4 w-4"})}),n.jsx("div",{className:"flex items-center gap-1",children:Array.from({length:Math.min(5,m)},(C,b)=>{let v;return m<=5||e<=3?v=b+1:e>=m-2?v=m-4+b:v=e-2+b,n.jsx(Z,{variant:e===v?"primary":"ghost",size:"sm",onClick:()=>s(v),className:"min-w-10","aria-label":`Page ${v}`,"aria-current":e===v?"page":void 0,children:v},v)})}),n.jsx(Z,{variant:"ghost",size:"sm",onClick:k,disabled:e>=m,"aria-label":"Next page",children:n.jsx(pt,{className:"h-4 w-4"})}),n.jsxs(Z,{variant:"ghost",size:"sm",onClick:j,disabled:e>=m,"aria-label":"Last page",children:[n.jsx(pt,{className:"h-4 w-4"}),n.jsx(pt,{className:"h-4 w-4 -ml-2"})]})]})]})]})]}))}function Vs(o){var i=o,{showPageSizeSelector:e=!0,showPageInfo:t=!0,pageSizeOptions:r,className:s=""}=i,a=O(i,["showPageSizeSelector","showPageInfo","pageSizeOptions","className"]);const{paginationState:c,setPage:u,setPageSize:d,paginationMode:f}=Pe();return f==="client"&&c.totalPages<=1?null:n.jsx(Nd,R({page:c.page,pageSize:c.pageSize,total:c.total,onPageChange:u,onPageSizeChange:d,pageSizeOptions:r,showPageSizeSelector:e,showPageInfo:t,className:s},a))}function je(e){const o=e,{className:t=""}=o,r=O(o,["className"]),s="children"in e&&e.children!==void 0,a=s?r:Sd(r);return s?n.jsx("div",{className:`bg-surface-base shadow rounded-lg overflow-hidden ${t}`,children:n.jsx(ls,P(R({},a),{children:e.children}))}):n.jsx("div",{className:`bg-surface-base shadow rounded-lg overflow-hidden ${t}`,children:n.jsxs(ls,P(R({},a),{children:[a.filters&&a.filters.length>0&&n.jsx(Os,{}),n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"min-w-full divide-y divide-line-default",role:"table","aria-label":e["aria-label"],"aria-labelledby":e["aria-labelledby"],"aria-rowcount":a.total||a.data.length,"aria-colcount":a.columns.length+(a.selectable?1:0)+(a.actions?1:0),children:[n.jsx(Ls,{}),n.jsx(zs,{})]})}),n.jsx(Vs,{})]}))})}function Sd(e){const{columns:t,data:r,loading:s,onSort:a,sortColumn:o,sortDirection:i,emptyMessage:c,emptyStateTitle:u,emptyStateMessage:d,emptyStateIllustration:f,emptyStateAction:p,pagination:m,filters:h,selectable:x,selectedRows:y,onSelectionChange:k,rowId:g,actions:j,onRowClick:C,paginationMode:b,defaultPageSize:v,resizable:N,columnWidths:D,onColumnResize:S,virtualScrolling:A,virtualScrollingOptions:M}=e;let $=b||"auto";return $==="auto"&&($=m&&m.total!==void 0&&m.onPageChange?"server":"client"),{columns:t,data:r,loading:s,paginationMode:$,page:m==null?void 0:m.page,pageSize:m==null?void 0:m.pageSize,total:m==null?void 0:m.total,onPageChange:m==null?void 0:m.onPageChange,onPageSizeChange:m==null?void 0:m.onPageSizeChange,defaultPageSize:v||(m==null?void 0:m.pageSize)||10,pageSizeOptions:m==null?void 0:m.pageSizeOptions,sortColumn:o,sortDirection:i,onSort:a,filters:h==null?void 0:h.config,filterValues:h==null?void 0:h.initialValues,onFilter:h==null?void 0:h.onFilter,initialFilterValues:h==null?void 0:h.initialValues,selectable:x,selectedRows:y,onSelectionChange:k,rowId:g,actions:j,onRowClick:C,emptyMessage:c,emptyStateTitle:u,emptyStateMessage:d,emptyStateIllustration:f,emptyStateAction:p,resizable:N,columnWidths:D,onColumnResize:S,virtualScrolling:A,virtualScrollingOptions:M,children:n.jsx(n.Fragment,{})}}je.Header=Ls;je.HeaderRow=Ds;je.HeaderCell=Is;je.Body=zs;je.Row=pr;je.Cell=Fs;je.Filters=Os;je.Pagination=Vs;je.EmptyState=Ps;je.Actions=_s;function Cd(e={}){const{defaultWidths:t={},minWidth:r=50,maxWidth:s,resizable:a=!0}=e,[o,i]=l.useState(t),[c,u]=l.useState(!1),[d,f]=l.useState(null),p=l.useRef(null),m=l.useCallback((C,b)=>{const v=Math.max(r,s?Math.min(b,s):b);i(N=>P(R({},N),{[C]:v}))},[r,s]),h=l.useCallback(()=>{i(t)},[t]),x=l.useCallback((C,b,v)=>{a&&(u(!0),f(C),p.current={startX:b,startWidth:v})},[a]),y=l.useCallback(C=>{if(!c||!d||!p.current)return;const b=C-p.current.startX,v=p.current.startWidth+b;m(d,v)},[c,d,m]),k=l.useCallback(()=>{u(!1),f(null),p.current=null},[]),g=l.useRef(void 0),j=l.useRef(void 0);return typeof window!="undefined"&&(g.current=C=>{c&&y(C.clientX)},j.current=()=>{c&&k()},c?(document.addEventListener("mousemove",g.current),document.addEventListener("mouseup",j.current)):(g.current&&document.removeEventListener("mousemove",g.current),j.current&&document.removeEventListener("mouseup",j.current))),{columnWidths:o,setColumnWidth:m,resetColumnWidths:h,isResizing:c,resizingColumn:d,startResize:x,handleResize:y,endResize:k}}const Rr=l.createContext(null);function $d(){return l.useContext(Rr)}function it(){const e=l.useContext(Rr);if(!e)throw new Error("useSideNavbarThemeRequired must be used within SideNavbarThemeProvider");return e}const $t={variant:"default",navigationWidth:"56px",contentWidth:"320px",animationDuration:300,animationEasing:"ease-in-out"};function Ws({children:e,variant:t=$t.variant,navigationWidth:r=$t.navigationWidth,contentWidth:s=$t.contentWidth,animationDuration:a=$t.animationDuration,animationEasing:o=$t.animationEasing}){const i=l.useMemo(()=>({variant:t,navigationWidth:r,contentWidth:s,animationDuration:a,animationEasing:o}),[t,r,s,a,o]);return n.jsx(Rr.Provider,{value:i,children:e})}const Ir=l.createContext(null);function Ed(){return l.useContext(Ir)}function gt(){const e=l.useContext(Ir);if(!e)throw new Error("useSideNavbarConfigRequired must be used within SideNavbarConfigProvider");return e}const ye={mode:"full",resizable:!1,minWidth:void 0,maxWidth:void 0,snapPoints:void 0,responsive:!1,mobileBreakpoint:768,mobileVariant:"collapse",overlayBackdrop:!0,persistState:!0,persistWidth:!1,storageKey:void 0,keyboardShortcut:"Ctrl+B",enableKeyboardShortcut:!0};function Hs({children:e,mode:t=ye.mode,resizable:r=ye.resizable,minWidth:s=ye.minWidth,maxWidth:a=ye.maxWidth,snapPoints:o=ye.snapPoints,responsive:i=ye.responsive,mobileBreakpoint:c=ye.mobileBreakpoint,mobileVariant:u=ye.mobileVariant,overlayBackdrop:d=ye.overlayBackdrop,persistState:f=ye.persistState,persistWidth:p=ye.persistWidth,storageKey:m=ye.storageKey,keyboardShortcut:h=ye.keyboardShortcut,enableKeyboardShortcut:x=ye.enableKeyboardShortcut}){const y=l.useMemo(()=>({mode:t,resizable:r,minWidth:s,maxWidth:a,snapPoints:o,responsive:i,mobileBreakpoint:c,mobileVariant:u,overlayBackdrop:d,persistState:f,persistWidth:p,storageKey:m,keyboardShortcut:h,enableKeyboardShortcut:x}),[t,r,s,a,o,i,c,u,d,f,p,m,h,x]);return n.jsx(Ir.Provider,{value:y,children:e})}const Dr=l.createContext(null);function Md(){return l.useContext(Dr)}function lt(){const e=l.useContext(Dr);if(!e)throw new Error("useSideNavbarStateRequired must be used within SideNavbarStateProvider");return e}function hr(e){if(typeof e=="number")return e;const t=parseFloat(e);return isNaN(t)?0:e.endsWith("rem")||e.endsWith("em")?t*16:(e.endsWith("px"),t)}function ro(e,t){return e===void 0||t===void 0?!0:e<t}function ir(e,t,r){let s=e;return t!==void 0&&(s=Math.max(s,t)),r!==void 0&&(s=Math.min(s,r)),s}const Td=["ctrl","cmd","control","shift","alt","meta","option"];function so(e){const t={key:"",ctrl:!1,shift:!1,alt:!1,meta:!1,isValid:!1};if(!e||typeof e!="string")return t;const r=e.trim();if(!r)return t;const s=r.split("+").map(u=>u.trim().toLowerCase()).filter(u=>u.length>0);if(s.length===0)return t;const a=new Set;let o="";for(let u=0;u<s.length;u++){const d=s[u];if(Td.includes(d))a.add(d);else if(u===s.length-1)o=d;else return t}if(!o)return t;const i=a.has("ctrl")||a.has("cmd")||a.has("control"),c=a.has("alt")||a.has("option");return{key:o,ctrl:i,shift:a.has("shift"),alt:c,meta:a.has("meta"),isValid:!0}}function Ad(e,t="windows"){if(!e.isValid)return"";const r=[];return t==="mac"?(e.ctrl&&r.push("⌘"),e.shift&&r.push("⇧"),e.alt&&r.push("⌥"),e.meta&&r.push("⌃"),r.push(e.key.toUpperCase()),r.join("")):(e.ctrl&&r.push("Ctrl"),e.shift&&r.push("Shift"),e.alt&&r.push("Alt"),e.meta&&r.push("Meta"),r.push(e.key.toUpperCase()),r.join("+"))}function no({initialWidth:e,minWidth:t,maxWidth:r,snapPoints:s,snapThreshold:a=20,onWidthChange:o,enabled:i=!0}){process.env.NODE_ENV==="development"&&(ro(t,r)||console.warn("[useResize] Invalid bounds: minWidth must be less than maxWidth",{minWidth:t,maxWidth:r}));const c=ir(e,t,r),[u,d]=l.useState(c),[f,p]=l.useState(!1),m=l.useRef(0),h=l.useRef(c),x=l.useCallback(j=>{let C=ir(j,t,r);if(s&&s.length>0){const b=s.reduce((v,N)=>{const D=Math.abs(C-N),S=Math.abs(C-v);return D<S?N:v},s[0]);Math.abs(C-b)<=a&&(C=b)}d(C),o==null||o(C)},[t,r,s,a,o]),y=l.useCallback(j=>{if(!i||!f)return;const C=j.clientX-m.current,b=h.current+C;x(b)},[i,f,x]),k=l.useCallback(()=>{i&&(p(!1),m.current=0,h.current=u)},[i,u]),g=l.useCallback(j=>{i&&(j.preventDefault(),j.stopPropagation(),p(!0),m.current=j.clientX,h.current=u)},[i,u]);return l.useEffect(()=>{if(f)return document.addEventListener("mousemove",y),document.addEventListener("mouseup",k),document.body.style.userSelect="none",document.body.style.cursor="col-resize",()=>{document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",k),document.body.style.userSelect="",document.body.style.cursor=""}},[f,y,k]),l.useEffect(()=>{f||d(ir(e,t,r))},[e,t,r,f]),{width:u,isResizing:f,startResize:g,setWidth:x}}function ao({mobileBreakpoint:e=768,onMobileChange:t,enabled:r=!0}={}){const[s,a]=l.useState(typeof window!="undefined"?window.innerWidth:1024),[o,i]=l.useState(typeof window!="undefined"?window.innerWidth<e:!1),c=l.useCallback(()=>{if(!r||typeof window=="undefined")return;const u=window.innerWidth,d=u<e;a(u),d!==o&&(i(d),t==null||t(d))},[r,e,o,t]);return l.useEffect(()=>{if(!r||typeof window=="undefined")return;const u=window.innerWidth,d=u<e;a(u),i(d),window.addEventListener("resize",c);let f=null;return window.ResizeObserver&&(f=new ResizeObserver(()=>{c()}),f.observe(document.body)),()=>{window.removeEventListener("resize",c),f==null||f.disconnect()}},[r,e,c]),{isMobile:o,viewportWidth:s}}function oo({isActive:e,containerRef:t,restoreFocus:r=!0,initialFocusRef:s}){const a=l.useRef(null);l.useEffect(()=>{if(e){if(a.current=document.activeElement,s!=null&&s.current)s.current.focus();else if(t.current){const i=t.current.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');i==null||i.focus()}}else r&&a.current&&(a.current.focus(),a.current=null)},[e,t,s,r]);const o=l.useCallback(i=>{if(!(!e||!t.current)&&i.key==="Tab"){const c=t.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),u=c[0],d=c[c.length-1];i.shiftKey?document.activeElement===u&&(i.preventDefault(),d==null||d.focus()):document.activeElement===d&&(i.preventDefault(),u==null||u.focus())}},[e,t]);l.useEffect(()=>{if(e)return document.addEventListener("keydown",o),()=>{document.removeEventListener("keydown",o)}},[e,o])}function io({key:e,ctrl:t=!1,shift:r=!1,alt:s=!1,meta:a=!1,onTrigger:o,enabled:i=!0,preventDefault:c=!0}){const u=l.useCallback(d=>{if(!i)return;const f=d.target;if((f.tagName==="INPUT"||f.tagName==="TEXTAREA"||f.isContentEditable)&&!t&&!a)return;const m=e.length===1?d.key.toLowerCase()===e.toLowerCase():d.key===e,h=t?d.ctrlKey||d.metaKey:!d.ctrlKey&&!d.metaKey,x=r?d.shiftKey:!d.shiftKey,y=s?d.altKey:!d.altKey,k=a?d.metaKey:!d.metaKey,g=t?(d.ctrlKey||d.metaKey)&&!a:h&&k;m&&g&&x&&y&&(c&&(d.preventDefault(),d.stopPropagation()),o())},[i,e,t,r,s,a,o,c]);l.useEffect(()=>{if(i)return window.addEventListener("keydown",u),()=>{window.removeEventListener("keydown",u)}},[i,u])}function Bs({children:e,defaultCollapsed:t=!1,collapsed:r,onCollapseChange:s,onWidthChange:a,onMobileChange:o,exclusiveGroups:i=!1}){const c=it(),u=gt(),d=l.useRef(null),f=r!==void 0,p=()=>{if(f)return r;if(u.storageKey&&u.persistState&&typeof window!="undefined"){const F=localStorage.getItem(`${u.storageKey}-collapsed`);if(F!==null)return F==="true"}return t},m=()=>{if(u.storageKey&&u.persistWidth&&typeof window!="undefined"){const F=localStorage.getItem(`${u.storageKey}-width`);if(F!==null){const z=parseInt(F,10);if(!isNaN(z))return z}}return hr(c.contentWidth)},[h,x]=l.useState(p),[y,k]=l.useState({}),{isMobile:g}=ao({mobileBreakpoint:u.mobileBreakpoint,onMobileChange:F=>{o==null||o(F),F&&u.mobileVariant==="collapse"&&!f&&x(!0)},enabled:u.responsive}),{width:j,isResizing:C,startResize:b,setWidth:v}=no({initialWidth:m(),minWidth:u.minWidth,maxWidth:u.maxWidth,snapPoints:u.snapPoints,onWidthChange:F=>{a==null||a(F),u.storageKey&&u.persistWidth&&typeof window!="undefined"&&localStorage.setItem(`${u.storageKey}-width`,String(F))},enabled:u.resizable&&!g});oo({isActive:g&&u.mobileVariant==="overlay"&&!h,containerRef:d,restoreFocus:!0});const N=f?r:h,D=l.useCallback(F=>{f||x(F),s==null||s(F)},[f,s]),S=l.useCallback(()=>{D(!N)},[N,D]),A=so(u.keyboardShortcut);io({key:A.key,ctrl:A.ctrl,shift:A.shift,alt:A.alt,meta:A.meta,onTrigger:S,enabled:u.enableKeyboardShortcut});const M=l.useCallback(F=>{v(F)},[v]),$=l.useCallback(F=>{k(i?z=>{const q=z[F]===!1,H={},le=new Set([...Object.keys(z),F]);return q?le.forEach(ne=>{H[ne]=!0}):le.forEach(ne=>{H[ne]=ne!==F}),H}:z=>P(R({},z),{[F]:!z[F]}))},[i]),L=l.useCallback((F,z)=>{k(X=>P(R({},X),{[F]:z}))},[]);l.useEffect(()=>{f&&r!==h&&x(r)},[f,r,h]),l.useEffect(()=>{u.storageKey&&u.persistState&&typeof window!="undefined"&&!f&&localStorage.setItem(`${u.storageKey}-collapsed`,String(h))},[u.storageKey,u.persistState,h,f]);const _=l.useMemo(()=>({collapsed:N,toggle:S,setCollapsed:D,currentWidth:j,setWidth:M,isMobile:g,isResizing:C,startResize:b,groupStates:y,toggleGroup:$,setGroupCollapsed:L,sidebarRef:d}),[N,S,D,j,M,g,C,b,y,$,L]);return n.jsx(Dr.Provider,{value:_,children:e})}function Us({children:e,variant:t,navigationWidth:r,contentWidth:s,animationDuration:a,animationEasing:o,mode:i,resizable:c,minWidth:u,maxWidth:d,snapPoints:f,responsive:p,mobileBreakpoint:m,mobileVariant:h,overlayBackdrop:x,persistState:y,persistWidth:k,storageKey:g,keyboardShortcut:j,enableKeyboardShortcut:C,defaultCollapsed:b,collapsed:v,onCollapseChange:N,onWidthChange:D,onMobileChange:S,exclusiveGroups:A}){return n.jsx(Ws,{variant:t,navigationWidth:r,contentWidth:s,animationDuration:a,animationEasing:o,children:n.jsx(Hs,{mode:i,resizable:c,minWidth:u,maxWidth:d,snapPoints:f,responsive:p,mobileBreakpoint:m,mobileVariant:h,overlayBackdrop:x,persistState:y,persistWidth:k,storageKey:g,keyboardShortcut:j,enableKeyboardShortcut:C,children:n.jsx(Bs,{defaultCollapsed:b,collapsed:v,onCollapseChange:N,onWidthChange:D,onMobileChange:S,exclusiveGroups:A,children:e})})})}const Lr=l.createContext(null);function qs(){return l.useContext(Lr)}function Gs(){const e=l.useContext(Lr);if(!e)throw new Error("useSidebarSlotRequired must be used within SidebarSlotProvider");return e}function lo({children:e,defaultSlot:t=null}){const[r,s]=l.useState(t),a=l.useRef(new Map),o=l.useCallback((u,d)=>{a.current.set(u,d)},[]),i=l.useCallback(u=>{a.current.delete(u)},[]),c=l.useMemo(()=>({activeSlot:r,setActiveSlot:s,slots:a.current,registerSlot:o,unregisterSlot:i}),[r,o,i]);return n.jsx(Lr.Provider,{value:c,children:e})}const Fr=l.createContext(null);function Rd(){return l.useContext(Fr)}function Ks(){const e=l.useContext(Fr);return e||{showMainToggle:!0,mainTogglePosition:"floating"}}function Ys(r){var s=r,{className:e=""}=s,t=O(s,["className"]);const{currentWidth:a,setWidth:o,isResizing:i,startResize:c}=lt(),{resizable:u}=gt();return u?n.jsxs("div",P(R({className:`
387
+ group
388
+ absolute
389
+ top-0
390
+ right-0
391
+ w-1
392
+ h-full
393
+ cursor-col-resize
394
+ hover:bg-surface-brand/50
395
+ active:bg-surface-brand-emphasis
396
+ transition-colors
397
+ duration-150
398
+ z-10
399
+ flex
400
+ items-center
401
+ justify-center
402
+ ${i?"bg-surface-brand-emphasis":""}
403
+ ${e}
404
+ `,onMouseDown:c,role:"separator","aria-orientation":"vertical","aria-label":"Resize sidebar","aria-valuenow":a,tabIndex:0,onKeyDown:d=>{if(d.key==="ArrowLeft"||d.key==="ArrowRight"){d.preventDefault();const f=d.key==="ArrowLeft"?-10:10;o(a+f)}}},t),{children:[n.jsx("div",{className:`
405
+ w-0.5
406
+ h-8
407
+ bg-line-strong
408
+ rounded-full
409
+ opacity-0
410
+ group-hover:opacity-100
411
+ transition-opacity
412
+ ${i?"opacity-100":""}
413
+ `}),n.jsx(Ql,{className:`
414
+ h-4
415
+ w-4
416
+ text-fg-tertiary
417
+ opacity-0
418
+ group-hover:opacity-100
419
+ transition-opacity
420
+ absolute
421
+ ${i?"opacity-100":""}
422
+ `,"aria-hidden":"true"})]})):null}function Xs(o){var i=o,{visible:e,onBackdropClick:t,className:r="",style:s}=i,a=O(i,["visible","onBackdropClick","className","style"]);const{collapsed:c,setCollapsed:u,isMobile:d}=lt(),{animationDuration:f}=it(),{mobileVariant:p,overlayBackdrop:m}=gt(),h=d&&p==="overlay",x=e!=null?e:h&&m&&!c,y=()=>{t?t():u(!0)};return x?n.jsx("div",R({className:`
423
+ fixed inset-0
424
+ bg-scrim
425
+ ${ue("modal-backdrop")}
426
+ ${r}
427
+ `,style:R({animation:`fadeIn ${f}ms ease-in-out`},s),onClick:y,"aria-hidden":"true","data-testid":"side-navbar-backdrop"},a)):null}const Id={xs:"w-5 h-5",sm:"w-6 h-6",md:"w-8 h-8",lg:"w-10 h-10"},Dd={xs:"w-3 h-3",sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"},Ld={floating:`absolute ${ue("fixed")}`,top:"absolute top-2 right-2 z-10",bottom:"absolute bottom-2 right-2 z-10",inside:"relative z-10","navigation-top":"relative mt-2 mx-auto z-10","navigation-bottom":"relative mt-auto mb-2 mx-auto z-10"},Fd={default:"bg-surface-raised border border-line-default shadow-sm hover:bg-surface-hover hover:shadow",ghost:"bg-transparent hover:bg-surface-hover border-0",outline:"bg-transparent border border-line-default hover:bg-surface-hover"},_d={floating:"right",top:"bottom",bottom:"top",inside:"right","navigation-top":"right","navigation-bottom":"right"};function Js(y){var k=y,{position:e="floating",offset:t,icon:r,expandIcon:s,collapseIcon:a,size:o="sm",variant:i="default",showTooltip:c=!0,tooltipPosition:u,keyboardShortcut:d,enableKeyboardShortcut:f,className:p="",style:m,"aria-label":h}=k,x=O(k,["position","offset","icon","expandIcon","collapseIcon","size","variant","showTooltip","tooltipPosition","keyboardShortcut","enableKeyboardShortcut","className","style","aria-label"]);var H,le;const{collapsed:g,toggle:j}=lt(),{animationDuration:C,animationEasing:b,navigationWidth:v,contentWidth:N,minWidth:D}=it(),S=gt(),A=d!=null?d:S.keyboardShortcut,M=f!=null?f:S.enableKeyboardShortcut,$=()=>{if(typeof r=="function")return r(g);if(r)return r;if(g&&s)return s;if(!g&&a)return a;const ne=g?lc:oc;return n.jsx(ne,{className:Dd[o],style:{transition:"none",transform:"none",willChange:"auto"}})},L=g?"Expand sidebar":"Collapse sidebar",_=u!=null?u:_d[e],F=c?`${g?"Expand":"Collapse"} sidebar${M?` (${A})`:""}`:void 0,z=t?{transform:`translate(${(H=t.x)!=null?H:0}px, ${(le=t.y)!=null?le:0}px)`}:{},X=e==="floating"?R({right:"-12px",top:"1rem",transform:"translateY(-50%)",transition:`right ${C}ms ${b}`},z):z,q=n.jsx("button",P(R({type:"button",onClick:j,className:`
428
+ ${Id[o]}
429
+ ${Fd[i]}
430
+ rounded-full
431
+ flex items-center justify-center
432
+ text-fg-secondary hover:text-fg-primary
433
+ focus:outline-none focus:ring-2 focus:ring-line-focus focus:ring-offset-1
434
+ ${e==="floating"?"":Ld[e]}
435
+ ${p}
436
+ `,style:R(R(R(R({},e==="floating"?{position:"absolute",right:"-11px",left:"auto"}:{}),e!=="floating"?X:{}),e==="floating"?{zIndex:wn.fixed.value}:{}),m),"aria-label":h||L,"aria-expanded":!g,"aria-controls":"side-navbar-sidebar","data-position":e},x),{children:$()}));if(e==="floating"){const ne=c&&F?n.jsx(Bt,{content:F,position:_,preservePositioning:!0,children:q}):q;return n.jsx("div",{style:{position:"absolute",right:"0",top:"1rem",transform:"translateY(-50%)",zIndex:wn.fixed.value},children:ne})}return c&&F?n.jsx(Bt,{content:F,position:_,children:q}):q}const Pd={default:"",compact:"text-sm",elevated:"shadow-lg",minimal:"border-0",bordered:"border-2"};function co(o){var i=o,{children:e,className:t="",style:r,"aria-label":s}=i,a=O(i,["children","className","style","aria-label"]);const c=lt(),u=it(),d=gt(),f=Ks(),{collapsed:p,setCollapsed:m,currentWidth:h,isResizing:x,sidebarRef:y,isMobile:k}=c,{variant:g,navigationWidth:j,contentWidth:C,animationDuration:b,animationEasing:v}=u,{mode:N,resizable:D,mobileVariant:S,overlayBackdrop:A}=d,M=typeof j=="number"?`${j}px`:j,$=typeof C=="number"?`${C}px`:C,_=N==="navigation"||p?M:D?`${h}px`:$,[F,z]=l.useState(!1);l.useEffect(()=>{z(!0)},[]);const X=k&&S==="overlay",q=F&&X,H=q?`fixed left-0 top-0 ${ue("fixed")}`:"relative";return n.jsxs(n.Fragment,{children:[F&&X&&A&&!p&&n.jsx(Xs,{}),n.jsxs("aside",P(R({ref:y,className:w(H,"flex","h-full","overflow-visible",Pd[g],q&&p?"-translate-x-full":"translate-x-0",t),style:R({position:q?"fixed":"relative",backgroundColor:"var(--color-surface-subtle)",borderRight:"1px solid var(--color-line-default)",width:_,minWidth:_,transitionProperty:x?"none":"width, min-width, transform",transitionDuration:`${b}ms`,transitionTimingFunction:v},r),role:"complementary","aria-label":s||"Sidebar navigation","aria-expanded":N!=="navigation"?!p:void 0,"data-mode":N,"data-collapsed":p},a),{children:[D&&N!=="navigation"&&!p&&n.jsx(Ys,{}),f.showMainToggle&&N!=="navigation"&&n.jsx(Js,{position:f.mainTogglePosition}),n.jsx("div",{className:"flex h-full w-full overflow-visible",children:e})]}))]})}const _r=l.createContext(null);function zd(){return l.useContext(_r)}function Pr(){const e=l.useContext(_r);if(!e)throw new Error("useNavbarRequired must be used within a SideNavbar.Navbar component");return e}function br(o){var i=o,{icon:e,size:t="sm",variant:r="ghost",className:s=""}=i,a=O(i,["icon","size","variant","className"]);const{collapsed:c,toggle:u}=Pr(),d=()=>{if(e)return typeof e=="function"?e(c):e;const h=c?pt:Ht;return n.jsx(h,{className:p[t],style:{transition:"none",transform:"none",willChange:"auto"}})},f={xs:"w-6 h-6",sm:"w-8 h-8",md:"w-10 h-10"},p={xs:"w-3 h-3",sm:"w-4 h-4",md:"w-5 h-5"},m={default:"bg-surface-base border border-line-default shadow-sm hover:bg-surface-hover",ghost:"hover:bg-surface-active",outline:"border border-line-emphasis hover:bg-surface-hover"};return n.jsx(Bt,{content:c?"Expand sidebar":"Collapse sidebar",position:"right",children:n.jsx("button",P(R({type:"button",onClick:u,className:`
437
+ flex
438
+ items-center
439
+ justify-center
440
+ rounded-md
441
+ text-fg-secondary
442
+ hover:text-fg-primary
443
+ focus:outline-none
444
+ focus:ring-2
445
+ focus:ring-line-focus
446
+ focus:ring-offset-1
447
+ ${f[t]}
448
+ ${m[r]}
449
+ [&:hover]:!transform-none
450
+ ${s}
451
+ `,style:{willChange:"auto",transform:"none",transition:"none"},"aria-label":c?"Expand sidebar":"Collapse sidebar","aria-expanded":!c},a),{children:d()}))})}const Od={sm:{container:"w-8 h-8",icon:"w-4 h-4",badge:"min-w-3.5 h-3.5 text-2xs"},md:{container:"w-10 h-10",icon:"w-5 h-5",badge:"min-w-5 h-5 text-xs"},lg:{container:"w-12 h-12",icon:"w-6 h-6",badge:"min-w-5 h-5 text-xs"}},Vd={default:"bg-error",success:"bg-success",warning:"bg-warning",danger:"bg-error-dark"},Wd={tooltip:"",inline:`flex-row ${T("sm","gap")} w-full ${T("md","px")}`,below:`flex-col ${T("1.5","gap")}`};function uo(g){var j=g,{id:e,icon:t,label:r,labelMode:s,showLabel:a=!0,active:o=!1,showTooltip:i=!0,badge:c,badgeVariant:u="default",variant:d="default",size:f="md",href:p,target:m,onClick:h,disabled:x=!1,className:y=""}=j,k=O(j,["id","icon","label","labelMode","showLabel","active","showTooltip","badge","badgeVariant","variant","size","href","target","onClick","disabled","className"]);var X;const{activeItem:C,setActiveItem:b,labelMode:v}=Pr(),N=(X=s!=null?s:v)!=null?X:"tooltip",D=o||e&&C===e,S=Od[f],A=q=>{if(x){q.preventDefault();return}e&&b(e),h==null||h()},M=N!=="tooltip"&&a&&r&&n.jsx("span",{className:w("text-xs","flex-shrink-0","relative z-10",N==="below"&&"text-center",N==="inline"&&"truncate"),style:{willChange:"auto",transform:"none",zIndex:10},children:r}),$=w("relative","flex","items-center",N==="inline"?"justify-start":"justify-center",N==="below"&&"flex-col","rounded-lg","box-border","focus:outline-none","focus:ring-2","focus:ring-line-focus","focus:ring-offset-1","w-full","flex-shrink-0","min-w-0","[&>*]:!transition-none","[&>*]:!transform-none",N==="tooltip"?S.container:w(T("sm","px"),T("1.5","py")),N!=="tooltip"&&Wd[N],x?"opacity-50 cursor-not-allowed":"cursor-pointer",y),L={default:D?"bg-surface-brand-muted text-fg-brand-emphasis":x?"text-fg-disabled":"text-fg-secondary hover:bg-surface-active hover:text-fg-primary [&:hover]:!transform-none",ghost:D?"text-fg-brand-emphasis":x?"text-fg-disabled":"text-fg-secondary hover:text-fg-primary [&:hover]:!transform-none",subtle:D?"bg-surface-active text-fg-primary":x?"text-fg-disabled":"text-fg-tertiary hover:bg-surface-hover hover:text-fg-primary [&:hover]:!transform-none"},_=n.jsxs(n.Fragment,{children:[n.jsx("span",{className:w("flex-shrink-0",S.icon,"[&>svg]:transition-none","[&>svg]:!transform-none","[&>svg]:!will-change-auto","box-border","flex items-center justify-center",`relative ${ue("base")}`),style:{minWidth:S.icon==="w-4 h-4"?"1rem":S.icon==="w-5 h-5"?"1.25rem":"1.5rem",minHeight:S.icon==="w-4 h-4"?"1rem":S.icon==="w-5 h-5"?"1.25rem":"1.5rem",willChange:"auto",transform:"none",transition:"none",zIndex:N!=="tooltip"?0:"auto"},children:t}),M,c!=null&&n.jsx("span",{className:w("absolute","-top-1","-right-1","flex","items-center","justify-center","px-1","font-medium","text-fg-inverse","rounded-full",S.badge,Vd[u]),children:c})]}),F={willChange:"auto",transform:"none",transition:"none"},z=p?n.jsx("a",{href:p,target:m,rel:m==="_blank"?"noopener noreferrer":void 0,onClick:A,className:w($,L[d]),style:F,"aria-label":r,"aria-current":D?"page":void 0,"aria-disabled":x,children:_}):n.jsx("button",P(R({type:"button",onClick:A,disabled:x,className:w($,L[d]),style:F,"aria-label":r,"aria-current":D?"page":void 0},k),{children:_}));return N==="tooltip"&&i&&r&&!x?n.jsx(Bt,{content:r,position:"right",children:z}):z}function fo(s){var a=s,{orientation:e="horizontal",className:t=""}=a,r=O(a,["orientation","className"]);return e==="vertical"?n.jsx("div",R({className:w("w-px","h-6","bg-line-default","mx-auto",t),role:"separator","aria-orientation":"vertical"},r)):n.jsx("div",R({className:w("w-full","h-px","bg-line-default","my-2","flex-shrink-0",t),role:"separator","aria-orientation":"horizontal",style:{willChange:"auto",transform:"none"}},r))}function mo(c){var u=c,{id:e,label:t,collapsible:r=!1,defaultCollapsed:s=!1,children:a,className:o}=u,i=O(u,["id","label","collapsible","defaultCollapsed","children","className"]);const[d,f]=l.useState(s);return n.jsxs("div",P(R({id:e,className:w("flex flex-col",o)},i),{children:[t&&n.jsx("div",{className:w(T("sm","px"),T("1.5","py"),"text-xs text-fg-tertiary uppercase tracking-wider",r&&"cursor-pointer hover:text-fg-secondary"),onClick:r?()=>f(!d):void 0,children:n.jsxs("div",{className:w("flex items-center",T("1.5","gap")),children:[" ",r&&n.jsx("span",{className:"shrink-0",children:d?n.jsx(pt,{className:"w-3 h-3",style:{transition:"none",transform:"none"}}):n.jsx(ps,{className:"w-3 h-3",style:{transition:"none",transform:"none"}})}),n.jsx("span",{children:t})]})}),!d&&n.jsxs("div",{className:"flex flex-col gap-2",children:[" ",a]})]}))}function xt(f){var p=f,{children:e,showMainToggle:t,mainTogglePosition:r,showToggle:s=!1,togglePosition:a="bottom",labelMode:o="tooltip",expandedWidth:i=200,className:c="",style:u}=p,d=O(p,["children","showMainToggle","mainTogglePosition","showToggle","togglePosition","labelMode","expandedWidth","className","style"]);const m=lt(),h=it(),x=gt(),y=Ks(),k=l.useRef(null),[g,j]=l.useState(null),[C,b]=l.useState(!1),v=t!=null?t:y.showMainToggle;r!=null||y.mainTogglePosition;const N=o==="inline"&&!m.collapsed,D=N?typeof i=="number"?`${i}px`:i:h.navigationWidth,S=l.useMemo(()=>({collapsed:m.collapsed,toggle:m.toggle,navbarRef:k,activeItem:g,setActiveItem:j,isHovered:C,showInternalToggle:s,togglePosition:a,labelMode:o}),[m.collapsed,m.toggle,g,C,s,a,o]);return v&&x.mode,n.jsx(_r.Provider,{value:S,children:n.jsxs("nav",P(R({ref:k,className:w("relative","flex-shrink-0","flex","flex-col","h-full",N?"items-stretch":"items-center",c),style:R({position:"relative",backgroundColor:"var(--color-surface-raised)",borderRight:"1px solid var(--color-line-default)",width:D,transitionProperty:"width",transitionDuration:`${h.animationDuration}ms`,transitionTimingFunction:h.animationEasing},u),onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),"aria-label":"Side navigation"},d),{children:[s&&a==="top"&&n.jsx("div",{className:"flex-shrink-0 p-2",style:{borderBottom:"1px solid var(--color-line-default)"},children:n.jsx(br,{})}),n.jsx("div",{className:w("relative","flex-1","flex","flex-col","overflow-y-auto","overflow-x-hidden","p-2","gap-2","w-full","min-w-0",N?"items-stretch":"items-center","justify-start"),style:{zIndex:1},children:e}),s&&a==="bottom"&&n.jsx("div",{className:"flex-shrink-0 p-2",style:{borderTop:"1px solid var(--color-line-default)"},children:n.jsx(br,{})})]}))})}xt.Toggle=br;xt.Item=uo;xt.Separator=fo;xt.Group=mo;xt.displayName="Navbar";const zr=l.createContext(null);function po(){return l.useContext(zr)}function Kt(){const e=l.useContext(zr);if(!e)throw new Error("useSidebarRequired must be used within a SideNavbar.Sidebar component");return e}function ho(c){var u=c,{title:e,subtitle:t,showBorder:r=!0,children:s,className:a="",style:o}=u,i=O(u,["title","subtitle","showBorder","children","className","style"]);const{collapsed:d,registerHeader:f,unregisterHeader:p}=Kt();return l.useEffect(()=>(f(),()=>p()),[f,p]),d?null:n.jsx("div",P(R({className:`
452
+ flex-shrink-0
453
+ ${T("md","px")}
454
+ ${T("sm","py")}
455
+ ${r?"border-b border-line-default":""}
456
+ bg-surface-subtle
457
+ ${a}
458
+ `,style:o},i),{children:s||n.jsxs(n.Fragment,{children:[e&&n.jsx("h2",{className:`
459
+ ${ce("h4")}
460
+ text-fg-primary
461
+ m-0
462
+ font-semibold
463
+ `,children:e}),t&&n.jsx("p",{className:`
464
+ ${ce("bodySmall")}
465
+ text-fg-secondary
466
+ m-0
467
+ mt-1
468
+ `,children:t})]})}))}function bo(i){var c=i,{scrollable:e=!0,padding:t="md",children:r,className:s="",style:a}=c,o=O(c,["scrollable","padding","children","className","style"]);const{collapsed:u,setScrollPosition:d}=Kt();if(u)return null;const f=t!=="none"?T(t,"p"):"",p=e?"overflow-y-auto overflow-x-hidden":"overflow-hidden",m=e?{scrollbarWidth:Je.content.scrollbar.width,scrollbarColor:`${Je.content.scrollbar.color.thumb} ${Je.content.scrollbar.color.track}`}:{},h=x=>{e&&d(x.currentTarget.scrollTop)};return n.jsx("div",P(R({className:`
469
+ flex-1
470
+ min-h-0
471
+ ${p}
472
+ ${f}
473
+ ${s}
474
+ `,style:R(R({},m),a),onScroll:h},o),{children:r}))}function go(i){var c=i,{padding:e="md",showBorder:t=!0,children:r,className:s="",style:a}=c,o=O(c,["padding","showBorder","children","className","style"]);const{collapsed:u,registerFooter:d,unregisterFooter:f}=Kt();if(l.useEffect(()=>(d(),()=>f()),[d,f]),u)return null;const p=e!=="none"?T(e,"p"):"";return n.jsx("div",P(R({className:`
475
+ flex-shrink-0
476
+ ${p}
477
+ ${t?"border-t border-line-default":""}
478
+ bg-surface-subtle
479
+ ${s}
480
+ `,style:a},o),{children:r}))}function xo(d){var f=d,{id:e,title:t,icon:r,actions:s,collapsible:a=!0,defaultCollapsed:o=!1,children:i,className:c=""}=f,u=O(f,["id","title","icon","actions","collapsible","defaultCollapsed","children","className"]);var N;const{collapsed:p,activeGroup:m,setActiveGroup:h}=Kt(),{groupStates:x,toggleGroup:y,setGroupCollapsed:k}=lt(),{animationDuration:g}=it(),j=l.useRef(!1);if(l.useEffect(()=>{!j.current&&x[e]===void 0&&(j.current=!0,k(e,o))},[e,o,x,k]),p)return null;const C=(N=x[e])!=null?N:o,b=m===e,v=()=>{h(e),a&&y(e)};return n.jsxs("div",P(R({className:`
481
+ border-b
482
+ border-line-default
483
+ last:border-b-0
484
+ ${c}
485
+ `},u),{children:[t&&n.jsxs("button",{type:"button",onClick:v,className:`
486
+ flex
487
+ items-center
488
+ justify-between
489
+ w-full
490
+ ${T("md","px")}
491
+ ${T("2.5","py")}
492
+ text-left
493
+ transition-colors
494
+ duration-150
495
+ ${b?"bg-surface-active":"hover:bg-surface-active"}
496
+ ${a?"cursor-pointer":"cursor-default"}
497
+ `,"aria-expanded":a?!C:void 0,"aria-controls":a?`sidebar-group-${e}`:void 0,children:[n.jsxs("div",{className:"flex items-center gap-2",children:[r&&n.jsx("span",{className:"w-4 h-4 text-fg-tertiary",children:r}),n.jsx("span",{className:"text-sm font-medium text-fg-secondary",children:t})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[s,a&&n.jsx(ChevronDown,{className:`
498
+ w-4
499
+ h-4
500
+ text-fg-tertiary
501
+ transition-transform
502
+ ${C?"-rotate-90":"rotate-0"}
503
+ `,style:{transitionDuration:`${g}ms`},"aria-hidden":"true"})]})]}),a?n.jsx(ga,{open:!C,duration:g,children:n.jsx("div",{id:`sidebar-group-${e}`,className:"px-3 py-2",children:i})}):n.jsx("div",{className:"px-3 py-2",children:i})]}))}function vo({id:e,children:t}){const{activeSlot:r,registerSlot:s,unregisterSlot:a}=Gs();return l.useEffect(()=>(s(e,t),()=>a(e)),[e,t,s,a]),r!==e?null:n.jsx(n.Fragment,{children:t})}function yo({fallback:e=null}){const{activeSlot:t,slots:r}=Gs();return!t||!r.has(t)?n.jsx(n.Fragment,{children:e}):n.jsx(n.Fragment,{children:r.get(t)})}function ct(a){var o=a,{children:e,className:t="",style:r}=o,s=O(o,["children","className","style"]);const i=lt(),c=it(),u=l.useRef(null),[d,f]=l.useState(0),[p,m]=l.useState(!1),[h,x]=l.useState(!1),[y,k]=l.useState(null),g=l.useCallback(()=>m(!0),[]),j=l.useCallback(()=>m(!1),[]),C=l.useCallback(()=>x(!0),[]),b=l.useCallback(()=>x(!1),[]),v=l.useMemo(()=>({collapsed:i.collapsed,currentWidth:i.currentWidth,isMobile:i.isMobile,sidebarRef:u,scrollPosition:d,setScrollPosition:f,hasHeader:p,hasFooter:h,registerHeader:g,unregisterHeader:j,registerFooter:C,unregisterFooter:b,activeGroup:y,setActiveGroup:k}),[i.collapsed,i.currentWidth,i.isMobile,d,p,h,g,j,C,b,y]),N=hr(c.contentWidth),D=hr(c.navigationWidth),S=N-D;return n.jsx(zr.Provider,{value:v,children:n.jsx("aside",P(R({ref:u,id:"side-navbar-sidebar",className:w("flex","flex-col","h-full","bg-surface-subtle","border-r","border-line-default","overflow-hidden",t),style:R({width:i.collapsed?0:S,opacity:i.collapsed?0:1,visibility:i.collapsed?"hidden":"visible",transitionProperty:"width, opacity, visibility",transitionDuration:`${c.animationDuration}ms`,transitionTimingFunction:c.animationEasing},r),"aria-hidden":i.collapsed},s),{children:e}))})}ct.Header=ho;ct.Content=bo;ct.Footer=go;ct.Group=xo;ct.Slot=vo;ct.SlotContent=yo;function Ce(A){var M=A,{mode:e="full",variant:t="default",navigationWidth:r="56px",width:s="320px",animationDuration:a=300,resizable:o=!1,minWidth:i,maxWidth:c,snapPoints:u,responsive:d=!1,mobileBreakpoint:f=768,mobileVariant:p="collapse",overlayBackdrop:m=!0,storageKey:h,persistWidth:x=!1,defaultCollapsed:y=!1,collapsed:k,onCollapseChange:g,onWidthChange:j,onMobileChange:C,exclusiveGroups:b=!1,showToggle:v=!0,togglePosition:N="floating",children:D}=M,S=O(M,["mode","variant","navigationWidth","width","animationDuration","resizable","minWidth","maxWidth","snapPoints","responsive","mobileBreakpoint","mobileVariant","overlayBackdrop","storageKey","persistWidth","defaultCollapsed","collapsed","onCollapseChange","onWidthChange","onMobileChange","exclusiveGroups","showToggle","togglePosition","children"]);const $=l.useMemo(()=>({showMainToggle:v,mainTogglePosition:N}),[v,N]);return n.jsx(Fr.Provider,{value:$,children:n.jsx(Us,{variant:t,navigationWidth:r,contentWidth:s,animationDuration:a,mode:e,resizable:o,minWidth:i,maxWidth:c,snapPoints:u,responsive:d,mobileBreakpoint:f,mobileVariant:p,overlayBackdrop:m,storageKey:h,persistWidth:x,defaultCollapsed:y,collapsed:k,onCollapseChange:g,onWidthChange:j,onMobileChange:C,exclusiveGroups:b,children:n.jsx(co,P(R({},S),{children:D}))})})}Ce.Navbar=xt;Ce.Sidebar=ct;Ce.Toggle=Js;Ce.ResizeHandle=Ys;Ce.Backdrop=Xs;Ce.Provider=Us;Ce.ThemeProvider=Ws;Ce.ConfigProvider=Hs;Ce.StateProvider=Bs;Ce.SlotProvider=lo;function Hd({defaultStates:e={},persist:t=!1,storageKey:r}={}){const s=()=>{if(t&&r&&typeof window!="undefined"){const d=localStorage.getItem(`${r}-groups`);if(d)try{const f=JSON.parse(d);return R(R({},e),f)}catch(f){}}return e},[a,o]=l.useState(s);l.useEffect(()=>{t&&r&&typeof window!="undefined"&&localStorage.setItem(`${r}-groups`,JSON.stringify(a))},[t,r,a]);const i=l.useCallback(d=>{o(f=>P(R({},f),{[d]:!f[d]}))},[]),c=l.useCallback((d,f)=>{o(p=>P(R({},p),{[d]:f}))},[]),u=l.useCallback(()=>{o(e)},[e]);return{groupStates:a,toggleGroup:i,setGroupCollapsed:c,resetGroups:u}}function Bd(){const{activeItem:e,setActiveItem:t}=Pr(),r=qs(),s=l.useCallback((a,o)=>{t(a),o&&(r!=null&&r.setActiveSlot)&&r.setActiveSlot(o)},[t,r]);return{activeItem:e,setActiveItem:t,navigate:s}}function Ud(){var r,s,a,o;const e=qs(),t=po();return{activeSlot:(r=e==null?void 0:e.activeSlot)!=null?r:null,setActiveSlot:(s=e==null?void 0:e.setActiveSlot)!=null?s:(()=>{}),scrollPosition:(a=t==null?void 0:t.scrollPosition)!=null?a:0,setScrollPosition:(o=t==null?void 0:t.setScrollPosition)!=null?o:(()=>{})}}function qd(){const e=useSideNavbarThemeRequired(),t=useSideNavbarConfigRequired(),r=useSideNavbarStateRequired();return{theme:e,config:t,state:r}}function wo({children:e,asChild:t=!1}){const{onOpenChange:r}=Dt();return t&&l.isValidElement(e)?l.cloneElement(e,{onClick:s=>{r(!0),e.props.onClick&&e.props.onClick(s)}}):n.jsx("button",{type:"button",onClick:()=>r(!0),"aria-haspopup":"dialog",children:e})}function Zs(i){var c=i,{children:e,size:t="md",closeOnOverlayClick:r=!0,closeOnEscape:s=!0,className:a=""}=c,o=O(c,["children","size","closeOnOverlayClick","closeOnEscape","className"]);const{isOpen:u,onClose:d,titleId:f,descriptionId:p}=Dt(),m=l.useRef(null),h=l.useRef(null);if(l.useEffect(()=>{if(!u)return;const g=setTimeout(()=>{var N;const b=(N=m.current)==null?void 0:N.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),v=b==null?void 0:b[0];v==null||v.focus()},0),j=b=>{s&&b.key==="Escape"&&d()},C=b=>{if(b.key!=="Tab"||!m.current)return;const v=Array.from(m.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')).filter(S=>!S.disabled&&S.offsetParent!==null);if(v.length===0){b.preventDefault();return}const N=v[0],D=v[v.length-1];b.shiftKey?document.activeElement===N&&(b.preventDefault(),D.focus()):document.activeElement===D&&(b.preventDefault(),N.focus())};return document.addEventListener("keydown",j),document.addEventListener("keydown",C),()=>{clearTimeout(g),document.removeEventListener("keydown",j),document.removeEventListener("keydown",C)}},[u,d,s]),!u)return null;const x={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-2xl",fullscreen:"max-w-full h-full m-0 rounded-none"},y=g=>{r&&g.target===h.current&&d()},k=n.jsxs("div",{className:`fixed inset-0 ${ue("modal")} overflow-y-auto`,onClick:y,children:[n.jsx("div",{ref:h,className:"fixed inset-0 bg-scrim transition-opacity","aria-hidden":"true"}),n.jsx("div",{className:"flex min-h-full items-center justify-center p-4",children:n.jsx("div",P(R({ref:m,role:"dialog","aria-modal":"true","aria-labelledby":f,"aria-describedby":p,className:`
504
+ relative ${ue("modal")} w-full
505
+ ${x[t]}
506
+ bg-surface-overlay
507
+ ${J("lg")}
508
+ ${Se("xl")}
509
+ ${a}
510
+ `,tabIndex:-1},o),{children:e}))})]});return typeof window!="undefined"?Ue.createPortal(k,document.body):k}function Qs(s){var a=s,{children:e,className:t=""}=a,r=O(a,["children","className"]);return n.jsx("div",P(R({className:`flex flex-col space-y-1.5 p-6 pb-4 ${t}`},r),{children:e}))}function ko(o){var i=o,{as:e="h2",children:t,className:r="",id:s}=i,a=O(i,["as","children","className","id"]);const c=Dt(),u=l.useId(),d=s||c.titleId||u;return n.jsx(e,P(R({id:d,className:`${ce("h3")} font-semibold leading-none tracking-tight ${r}`},a),{children:t}))}function jo(a){var o=a,{children:e,className:t="",id:r}=o,s=O(o,["children","className","id"]);const i=Dt(),c=l.useId(),u=r||i.descriptionId||c;return n.jsx("p",P(R({id:u,className:`${ce("bodySmall")} text-fg-secondary ${t}`},s),{children:e}))}function en(s){var a=s,{children:e,className:t=""}=a,r=O(a,["children","className"]);return n.jsx("div",P(R({className:`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2 p-6 pt-4 ${t}`},r),{children:e}))}function No({"aria-label":e="Close dialog",className:t="",asChild:r=!1,children:s}){const{onClose:a}=Dt();return r&&l.isValidElement(s)?l.cloneElement(s,{onClick:o=>{a(),s.props.onClick&&s.props.onClick(o)}}):n.jsx(Z,{variant:"iconOnly",size:"sm",onClick:a,className:`absolute right-4 top-4 ${t}`,"aria-label":e,children:n.jsx(we,{className:"h-4 w-4"})})}function Te({children:e,open:t,defaultOpen:r,onOpenChange:s}){const a=l.useId(),o=l.useId();return n.jsx(ms,{open:t,defaultOpen:r,onOpenChange:s,titleId:a,descriptionId:o,children:e})}Te.Trigger=wo;Te.Content=Zs;Te.Header=Qs;Te.Title=ko;Te.Description=jo;Te.Footer=en;Te.Close=No;function Gd({open:e,defaultOpen:t,onOpenChange:r,title:s,description:a,confirmLabel:o="Confirm",cancelLabel:i="Cancel",variant:c="default",onConfirm:u,onCancel:d,children:f}){const p=()=>{u==null||u(),r==null||r(!1)},m=()=>{d==null||d(),r==null||r(!1)};return n.jsx(Te,{open:e,defaultOpen:t,onOpenChange:r,children:n.jsx(Zs,{size:"sm",closeOnOverlayClick:!1,children:f||n.jsxs(n.Fragment,{children:[n.jsxs(Qs,{children:[n.jsx(Te.Title,{children:s}),a&&n.jsx(Te.Description,{children:a})]}),n.jsxs(en,{children:[n.jsx(Z,{variant:"outline",onClick:m,children:i}),n.jsx(Z,{variant:c==="destructive"?"error":"primary",onClick:p,children:o})]})]})})})}const Kd={success:cr,error:hs,warning:fc,info:tc},Yd={success:"border-success",error:"border-error",warning:"border-warning",info:"border-info"},Xd={success:"text-fg-success",error:"text-fg-error",warning:"text-fg-warning",info:"text-fg-info"};function So(i){var c=i,{toast:e,onDismiss:t,position:r="top-right",className:s="",style:a}=c,o=O(c,["toast","onDismiss","position","className","style"]);const[u,d]=l.useState(!1),[f,p]=l.useState(!1),m=Kd[e.variant];l.useEffect(()=>{if(e.duration===void 0)return;d(!0);const y=setTimeout(()=>{p(!0),setTimeout(()=>{t(e.id)},300)},e.duration);return()=>clearTimeout(y)},[e.duration,e.id,t]),l.useEffect(()=>{const y=setTimeout(()=>d(!0),10);return()=>clearTimeout(y)},[]);const h={"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"},x=()=>{p(!0),setTimeout(()=>{t(e.id)},300)};return n.jsx("div",P(R({className:`
511
+ fixed ${h[r]} ${ue("toast")}
512
+ w-full max-w-sm
513
+ transition-all duration-300 ease-in-out
514
+ ${u&&!f?"opacity-100 translate-y-0":"opacity-0 -translate-y-2"}
515
+ ${f?"opacity-0 translate-y-2":""}
516
+ ${s}
517
+ `,style:a,role:"alert","aria-live":e.variant==="error"?"assertive":"polite","aria-atomic":"true"},o),{children:n.jsxs("div",{className:`
518
+ flex items-start gap-3
519
+ p-4
520
+ bg-surface-overlay
521
+ ${J("lg")}
522
+ ${Se("lg")}
523
+ border
524
+ ${Yd[e.variant]}
525
+ `,children:[n.jsx("div",{className:`flex-shrink-0 ${Xd[e.variant]}`,children:n.jsx(m,{className:"h-5 w-5","aria-hidden":"true"})}),n.jsxs("div",{className:"flex-1 min-w-0",children:[n.jsx("div",{className:"font-medium text-fg-primary",children:e.title}),e.description&&n.jsx("div",{className:"mt-1 text-sm text-fg-secondary",children:e.description}),e.action&&n.jsx("div",{className:"mt-3",children:n.jsx(Z,{variant:"outline",size:"sm",onClick:()=>{var y;(y=e.action)==null||y.onClick(),x()},children:e.action.label})})]}),n.jsx(Z,{variant:"iconOnly",size:"sm",onClick:x,className:"flex-shrink-0","aria-label":"Dismiss notification",children:n.jsx(we,{className:"h-4 w-4"})})]})}))}function Jd({position:e="top-right",maxToasts:t}){const{toasts:r,removeToast:s}=fs(),a=t?r.slice(0,t):r;if(a.length===0)return null;const o=n.jsx("div",{className:`fixed inset-0 pointer-events-none ${ue("toast")}`,"aria-live":"polite","aria-label":"Notifications",children:a.map((i,c)=>{const u=e.includes("top"),d=1+c*5;return n.jsx(So,{toast:i,onDismiss:s,position:e,style:{[u?"top":"bottom"]:`${d}rem`}},i.id)})});return typeof window!="undefined"?Ue.createPortal(o,document.body):o}function Zd(){const{addToast:e,removeToast:t,clearAll:r}=fs(),s=l.useCallback(d=>e({title:d.title,description:d.description,variant:d.variant||"info",duration:d.duration,action:d.action}),[e]),a=l.useCallback((d,f,p)=>s(R({title:d,description:f,variant:"success"},p)),[s]),o=l.useCallback((d,f,p)=>s(R({title:d,description:f,variant:"error"},p)),[s]),i=l.useCallback((d,f,p)=>s(R({title:d,description:f,variant:"warning"},p)),[s]),c=l.useCallback((d,f,p)=>s(R({title:d,description:f,variant:"info"},p)),[s]),u=l.useCallback((d,f,p,m="info",h)=>s({title:d,description:f,variant:m,duration:h,action:{label:"Undo",onClick:p}}),[s]);return{show:s,success:a,error:o,warning:i,info:c,withUndo:u,dismiss:t,clearAll:r}}function Co({steps:e,currentStep:t,defaultCurrentStep:r=0,onStepChange:s,onComplete:a,allowNavigation:o=!0,showStepNumbers:i=!0,orientation:c="horizontal",className:u=""}){const[d,f]=l.useState(r),p=t!==void 0,m=p?t:d,h=b=>b<m?"completed":b===m?"active":"pending",x=()=>{if(m<e.length-1){const b=m+1;p||f(b),s==null||s(b)}else a==null||a()},y=()=>{if(m>0){const b=m-1;p||f(b),s==null||s(b)}},k=b=>{o&&(e[b].disabled||(p||f(b),s==null||s(b)))},g=e[m],j=m===0,C=m===e.length-1;return c==="vertical"?n.jsxs("div",{className:`flex gap-4 ${u}`,children:[n.jsx("div",{className:"flex flex-col",children:e.map((b,v)=>{const N=b.status||h(v),D=v===m;return n.jsxs("div",{className:"flex items-start gap-3",children:[n.jsxs("div",{className:"flex flex-col items-center",children:[n.jsx("button",{type:"button",onClick:()=>k(v),disabled:!o||b.disabled,className:`
526
+ flex
527
+ items-center
528
+ justify-center
529
+ w-10
530
+ h-10
531
+ ${J("full")}
532
+ border-2
533
+ ${he("base")}
534
+ ${N==="completed"?"bg-success border-success text-fg-inverse":N==="active"?"bg-surface-brand border-line-brand text-fg-inverse":N==="error"?"bg-error border-error text-fg-inverse":"bg-surface-base border-line-emphasis text-fg-quaternary"}
535
+ ${!o||b.disabled?"cursor-not-allowed opacity-50":"cursor-pointer"}
536
+ `,children:N==="completed"?n.jsx(ss,{className:"h-5 w-5"}):i?v+1:null}),v<e.length-1&&n.jsx("div",{className:`
537
+ w-0.5
538
+ h-12
539
+ mt-2
540
+ ${N==="completed"?"bg-success":"bg-line-emphasis"}
541
+ `})]}),n.jsxs("div",{className:"flex-1 pb-8",children:[n.jsx("button",{type:"button",onClick:()=>k(v),disabled:!o||b.disabled,className:`
542
+ text-left
543
+ ${D?"font-semibold":"font-medium"}
544
+ ${N==="active"?"text-fg-brand-emphasis":"text-fg-secondary"}
545
+ ${!o||b.disabled?"cursor-not-allowed opacity-50":"cursor-pointer"}
546
+ `,children:b.title}),b.description&&n.jsx("p",{className:"text-sm text-fg-tertiary mt-1",children:b.description})]})]},b.id)})}),n.jsxs("div",{className:"flex-1",children:[n.jsx("div",{className:`
547
+ ${T("lg","p")}
548
+ border
549
+ border-line-default
550
+ ${J("lg")}
551
+ bg-surface-base
552
+ `,children:g.content}),n.jsxs("div",{className:`flex justify-between mt-4 ${T("base","gap")}`,children:[n.jsx(Z,{variant:"outline",onClick:y,disabled:j,children:"Previous"}),n.jsx(Z,{variant:"primary",onClick:x,children:C?"Complete":"Next"})]})]})]}):n.jsxs("div",{className:`space-y-6 ${u}`,children:[n.jsx("div",{className:"flex items-center",children:e.map((b,v)=>{const N=b.status||h(v),D=v===m;return n.jsxs("div",{className:"flex items-center flex-1",children:[n.jsxs("div",{className:"flex flex-col items-center flex-1",children:[n.jsx("button",{type:"button",onClick:()=>k(v),disabled:!o||b.disabled,className:`
553
+ flex
554
+ items-center
555
+ justify-center
556
+ w-10
557
+ h-10
558
+ ${J("full")}
559
+ border-2
560
+ ${he("base")}
561
+ ${N==="completed"?"bg-success border-success text-fg-inverse":N==="active"?"bg-surface-brand border-line-brand text-fg-inverse":N==="error"?"bg-error border-error text-fg-inverse":"bg-surface-base border-line-emphasis text-fg-quaternary"}
562
+ ${!o||b.disabled?"cursor-not-allowed opacity-50":"cursor-pointer"}
563
+ `,children:N==="completed"?n.jsx(ss,{className:"h-5 w-5"}):i?v+1:null}),n.jsxs("div",{className:`mt-2 text-center ${T("sm","px")}`,children:[n.jsx("p",{className:`
564
+ text-sm
565
+ font-medium
566
+ ${D?"text-fg-brand-emphasis":"text-fg-secondary"}
567
+ `,children:b.title}),b.description&&n.jsx("p",{className:"text-xs text-fg-tertiary mt-1",children:b.description})]})]}),v<e.length-1&&n.jsx("div",{className:`flex-1 mx-2 ${T("base","mx")}`,children:n.jsx(vs,{className:`
568
+ ${N==="completed"?"border-success":"border-line-emphasis"}
569
+ `})})]},b.id)})}),n.jsx("div",{className:`
570
+ ${T("lg","p")}
571
+ border
572
+ border-line-default
573
+ ${J("lg")}
574
+ bg-surface-base
575
+ `,children:g.content}),n.jsxs("div",{className:`flex justify-between ${T("base","gap")}`,children:[n.jsx(Z,{variant:"outline",onClick:y,disabled:j,children:"Previous"}),n.jsx(Z,{variant:"primary",onClick:x,children:C?"Complete":"Next"})]})]})}function Qd({items:e,orientation:t="vertical",className:r=""}){return t==="horizontal"?n.jsx("div",{className:`flex items-start ${r}`,children:e.map((s,a)=>{const o=s.status||(a===0?"active":a<e.findIndex(c=>c.status==="active")?"completed":"default"),i=a===e.length-1;return n.jsx("div",{className:"flex items-start flex-1",children:n.jsxs("div",{className:"flex flex-col items-center flex-1",children:[n.jsx("div",{className:`
576
+ flex
577
+ items-center
578
+ justify-center
579
+ w-10
580
+ h-10
581
+ ${J("full")}
582
+ border-2
583
+ ${o==="completed"?"bg-success border-success text-fg-inverse":o==="active"?"bg-surface-brand border-line-brand text-fg-inverse":o==="error"?"bg-error border-error text-fg-inverse":"bg-surface-base border-line-emphasis text-fg-quaternary"}
584
+ `,children:s.icon||(o==="completed"?n.jsx(cr,{className:"h-4 w-4"}):a+1)}),!i&&n.jsx("div",{className:`
585
+ w-full
586
+ h-0.5
587
+ mt-2
588
+ ${o==="completed"?"bg-success":"bg-line-emphasis"}
589
+ `}),n.jsxs("div",{className:`mt-4 text-center ${T("base","px")}`,children:[s.timestamp&&n.jsx("p",{className:"text-xs text-fg-tertiary mb-1",children:s.timestamp}),n.jsx("h3",{className:"text-sm font-semibold text-fg-primary",children:s.title}),s.description&&n.jsx("p",{className:"text-xs text-fg-secondary mt-1",children:s.description}),s.content&&n.jsx("div",{className:"mt-2",children:s.content})]})]})},s.id)})}):n.jsx("div",{className:`space-y-0 ${r}`,children:e.map((s,a)=>{const o=s.status||(a===0?"active":a<e.findIndex(c=>c.status==="active")?"completed":"default"),i=a===e.length-1;return n.jsxs("div",{className:"flex items-start gap-4",children:[n.jsxs("div",{className:"flex flex-col items-center",children:[n.jsx("div",{className:`
590
+ flex
591
+ items-center
592
+ justify-center
593
+ w-10
594
+ h-10
595
+ ${J("full")}
596
+ border-2
597
+ ${o==="completed"?"bg-success border-success text-fg-inverse":o==="active"?"bg-surface-brand border-line-brand text-fg-inverse":o==="error"?"bg-error border-error text-fg-inverse":"bg-surface-base border-line-emphasis text-fg-quaternary"}
598
+ `,children:s.icon||(o==="completed"?n.jsx(cr,{className:"h-4 w-4"}):a+1)}),!i&&n.jsx("div",{className:`
599
+ w-0.5
600
+ flex-1
601
+ min-h-16
602
+ mt-2
603
+ ${o==="completed"?"bg-success":"bg-line-emphasis"}
604
+ `})]}),n.jsxs("div",{className:"flex-1 pb-8",children:[s.timestamp&&n.jsx("p",{className:"text-xs text-fg-tertiary mb-1",children:s.timestamp}),n.jsx("h3",{className:`
605
+ text-base
606
+ font-semibold
607
+ ${o==="active"?"text-fg-brand-emphasis":"text-fg-primary"}
608
+ `,children:s.title}),s.description&&n.jsx("p",{className:"text-sm text-fg-secondary mt-1",children:s.description}),s.content&&n.jsx("div",{className:"mt-3",children:s.content})]})]},s.id)})})}function eu({items:e,open:t,defaultOpen:r=!1,onOpenChange:s,trigger:a,placeholder:o="Type a command or search...",emptyMessage:i="No commands found",className:c=""}){const[u,d]=l.useState(r),[f,p]=l.useState(""),[m,h]=l.useState(0),x=l.useRef(null),y=l.useRef(null),k=t!==void 0,g=k?t:u,j=e.filter(S=>{var _,F;if(!f)return!0;const A=f.toLowerCase(),M=S.label.toLowerCase().includes(A),$=(_=S.description)==null?void 0:_.toLowerCase().includes(A),L=(F=S.keywords)==null?void 0:F.some(z=>z.toLowerCase().includes(A));return M||$||L}),C=j.reduce((S,A)=>{const M=A.group||"Other";return S[M]||(S[M]=[]),S[M].push(A),S},{}),b=l.useCallback(S=>{k||d(S),s==null||s(S),S&&(p(""),h(0),setTimeout(()=>{var A;return(A=x.current)==null?void 0:A.focus()},0))},[k,s]),v=S=>{S.action(),b(!1)},N=S=>{if(S.key==="Escape"){b(!1);return}if(S.key==="ArrowDown"){S.preventDefault(),h(A=>Math.min(A+1,j.length-1));return}if(S.key==="ArrowUp"){S.preventDefault(),h(A=>Math.max(A-1,0));return}if(S.key==="Enter"){S.preventDefault(),j[m]&&v(j[m]);return}};l.useEffect(()=>{if(y.current&&m>=0){const S=y.current.querySelector(`[data-index="${m}"]`);S&&typeof S.scrollIntoView=="function"&&S.scrollIntoView({block:"nearest",behavior:"smooth"})}},[m]),l.useEffect(()=>{h(0)},[f]),l.useEffect(()=>{const S=A=>{(A.metaKey||A.ctrlKey)&&A.key==="k"&&(A.preventDefault(),b(!g))};return document.addEventListener("keydown",S),()=>document.removeEventListener("keydown",S)},[g,b]);const D=g?n.jsx("div",{className:`
609
+ fixed
610
+ inset-0
611
+ ${ue("modal-backdrop")}
612
+ bg-scrim
613
+ flex
614
+ items-start
615
+ justify-center
616
+ pt-[20vh]
617
+ ${he("base")}
618
+ `,onClick:()=>b(!1),children:n.jsxs("div",{className:`
619
+ w-full
620
+ max-w-2xl
621
+ ${T("base","mx")}
622
+ bg-surface-overlay
623
+ ${J("lg")}
624
+ ${Se("xl")}
625
+ ${ue("modal")}
626
+ ${he("base")}
627
+ ${c}
628
+ `,onClick:S=>S.stopPropagation(),children:[n.jsxs("div",{className:`
629
+ flex
630
+ items-center
631
+ gap-3
632
+ ${T("base","p")}
633
+ border-b
634
+ border-line-default
635
+ `,children:[n.jsx(ns,{className:"h-5 w-5 text-fg-secondary"}),n.jsx(ke,{ref:x,value:f,onChange:S=>p(S.target.value),onKeyDown:N,placeholder:o,className:"flex-1 border-0 focus:ring-0",autoFocus:!0}),n.jsxs("div",{className:`
636
+ flex
637
+ items-center
638
+ gap-1
639
+ ${T("sm","px")}
640
+ ${T("xs","py")}
641
+ ${J("sm")}
642
+ bg-surface-muted
643
+ text-xs
644
+ text-fg-tertiary
645
+ `,children:[n.jsx(zl,{className:"h-3 w-3"}),n.jsx("span",{children:"K"})]})]}),n.jsx("div",{ref:y,className:`
646
+ max-h-96
647
+ overflow-y-auto
648
+ ${T("sm","py")}
649
+ `,children:Object.keys(C).length===0?n.jsx("div",{className:`
650
+ ${T("lg","p")}
651
+ text-center
652
+ text-sm
653
+ text-fg-secondary
654
+ `,children:i}):Object.entries(C).map(([S,A])=>n.jsxs("div",{children:[S!=="Other"&&n.jsx("div",{className:`
655
+ ${T("sm","px")}
656
+ ${T("xs","py")}
657
+ text-xs
658
+ font-semibold
659
+ text-fg-tertiary
660
+ uppercase
661
+ tracking-wider
662
+ `,children:S}),A.map((M,$)=>{const L=j.indexOf(M),_=L===m;return n.jsxs("button",{type:"button","data-index":L,onClick:()=>v(M),className:`
663
+ w-full
664
+ flex
665
+ items-center
666
+ gap-3
667
+ ${T("base","px")}
668
+ ${T("md","py")}
669
+ text-left
670
+ ${he("base")}
671
+ ${_?"bg-surface-brand-muted":"hover:bg-surface-hover"}
672
+ `,children:[M.icon&&n.jsx("div",{className:`
673
+ ${_?"text-fg-brand-emphasis":"text-fg-secondary"}
674
+ `,children:M.icon}),n.jsxs("div",{className:"flex-1 min-w-0",children:[n.jsx("div",{className:`
675
+ text-sm
676
+ font-medium
677
+ ${_?"text-fg-brand-emphasis":"text-fg-primary"}
678
+ `,children:M.label}),M.description&&n.jsx("div",{className:`text-xs text-fg-tertiary ${T("0.5","mt")}`,children:M.description})]})]},M.id)})]},S))})]})}):null;return n.jsxs(n.Fragment,{children:[a?n.jsx("div",{onClick:()=>b(!0),children:a}):null,typeof window!="undefined"&&Ue.createPortal(D,document.body)]})}function tu({columns:e,data:t,loading:r=!1,onSort:s,sortColumn:a,sortDirection:o,multiSort:i=!1,groups:c=[],onGroupChange:u,groupable:d=!1,resizable:f=!0,reorderable:p=!1,onColumnReorder:m,columnWidths:h,onColumnResize:x,selectable:y=!1,selectedRows:k,onSelectionChange:g,rowId:j,exportable:C=!1,onExport:b,exportFormats:v=["csv","xlsx","json"],pagination:N,filters:D,actions:S,toolbarActions:A,virtualScrolling:M=!1,virtualScrollingOptions:$,emptyMessage:L,emptyStateTitle:_,emptyStateMessage:F,emptyStateIllustration:z,emptyStateAction:X,className:q=""}){const[H,le]=l.useState(c),[ne,I]=l.useState(h||{}),B=l.useMemo(()=>e.map(U=>P(R({},U),{width:ne[U.key]||U.defaultWidth})),[e,ne]),Y=U=>{b?b(U):U==="csv"?Q(t,e):U==="json"&&W(t)},Q=(U,V)=>{const se=V.filter(Ae=>Ae.exportable!==!1).map(Ae=>Ae.label||Ae.key),ae=U.map(Ae=>V.filter(Ft=>Ft.exportable!==!1).map(Ft=>{const $e=Ae[Ft.key];return typeof $e=="string"&&$e.includes(",")?`"${$e}"`:$e})),oe=[se.join(","),...ae.map(Ae=>Ae.join(","))].join(`
679
+ `),Ne=new Blob([oe],{type:"text/csv"}),ze=URL.createObjectURL(Ne),Lt=document.createElement("a");Lt.href=ze,Lt.download=`export-${Date.now()}.csv`,Lt.click(),URL.revokeObjectURL(ze)},W=U=>{const V=JSON.stringify(U,null,2),se=new Blob([V],{type:"application/json"}),ae=URL.createObjectURL(se),oe=document.createElement("a");oe.href=ae,oe.download=`export-${Date.now()}.json`,oe.click(),URL.revokeObjectURL(ae)};return n.jsxs("div",{className:`space-y-4 ${q}`,children:[(C||d||A)&&n.jsxs("div",{className:`
680
+ flex
681
+ items-center
682
+ justify-between
683
+ ${T("base","p")}
684
+ bg-surface-base
685
+ border
686
+ border-line-default
687
+ rounded-lg
688
+ `,children:[n.jsx("div",{className:"flex items-center gap-2",children:d&&n.jsx(Z,{variant:"outline",size:"sm",leftIcon:n.jsx($l,{className:"h-4 w-4"}),children:"Group"})}),n.jsxs("div",{className:"flex items-center gap-2",children:[A,C&&n.jsx("div",{className:"flex items-center gap-1",children:v.map(U=>n.jsx(Z,{variant:"outline",size:"sm",leftIcon:n.jsx(Vl,{className:"h-4 w-4"}),onClick:()=>Y(U),children:U.toUpperCase()},U))})]})]}),n.jsx(je,{columns:B,data:t,loading:r,onSort:s,sortColumn:a,sortDirection:o,pagination:N,filters:D,selectable:y,selectedRows:k,onSelectionChange:g,rowId:j,actions:S,resizable:f,columnWidths:ne,onColumnResize:(U,V)=>{I(se=>P(R({},se),{[U]:V})),x==null||x(U,V)},virtualScrolling:M,virtualScrollingOptions:$,emptyMessage:L,emptyStateTitle:_,emptyStateMessage:F,emptyStateIllustration:z,emptyStateAction:X})]})}function ru({columns:e,data:t,searchPlaceholder:r="Search...",enableSearch:s=!0,itemsPerPage:a=10,enablePagination:o=!0,actions:i,onRowClick:c,loading:u=!1,emptyMessage:d="No data available"}){const[f,p]=l.useState(""),[m,h]=l.useState(1),x=l.useMemo(()=>e.map(b=>{if(b.accessor||b.header){const v=b.key||(typeof b.accessor=="string"?b.accessor:String(b.accessor)),N=b.label||b.header||"";return P(R({},b),{key:v,label:N})}return b}),[e]),y=l.useMemo(()=>{if(!f.trim())return t;const b=f.toLowerCase();return t.filter(v=>x.some(N=>{const D=v[String(N.key)];return String(D).toLowerCase().includes(b)}))},[t,f,x]),k=l.useMemo(()=>{if(!o)return y;const b=(m-1)*a,v=b+a;return y.slice(b,v)},[y,m,a,o]),g=o?Math.ceil(y.length/a):1,j=b=>{h(b)},C=b=>{p(b),h(1)};return n.jsx(ot,{maxWidth:"full",paddingX:"base",paddingY:"base",children:n.jsxs(Tt,{spacing:"md",children:[n.jsxs("div",{className:"flex items-center justify-between gap-4",children:[s&&n.jsx("div",{className:"flex-1 max-w-md",children:n.jsx(Mr,{placeholder:r,value:f,onSearch:C})}),i&&n.jsx("div",{className:"flex gap-2",children:i})]}),n.jsx(je,{columns:x,data:k,loading:u,emptyMessage:d,onRowClick:c?b=>{const v=y.findIndex(N=>N===b);c(b,v>=0?v:k.findIndex(N=>N===b))}:void 0}),o&&g>1&&n.jsx("div",{className:"flex justify-center",children:n.jsx(Ma,{currentPage:m,totalPages:g,onPageChange:j})}),s&&n.jsxs("div",{className:"text-sm text-fg-secondary text-center",children:["Showing ",k.length," of ",y.length," results"]})]})})}function su({steps:e,onComplete:t,allowBackNavigation:r=!0,showStepNumbers:s=!0}){const[a,o]=l.useState(0),[i,c]=l.useState({}),[u,d]=l.useState({}),f=()=>tr(null,null,function*(){const k=e[a];if(k.validate&&!(yield k.validate())){d(P(R({},u),{[a]:!0}));return}d(P(R({},u),{[a]:!1})),k.onSubmit&&(yield k.onSubmit(i)),a<e.length-1?o(a+1):t&&t(i)}),p=()=>{a>0&&r&&(o(a-1),d(P(R({},u),{[a-1]:!1})))},m=k=>{r&&k<a&&o(k)},h=e[a],x=a===e.length-1,y=u[a]===!0;return n.jsx(ot,{maxWidth:"lg",paddingX:"base",paddingY:"lg",children:n.jsxs(Tt,{spacing:"lg",children:[n.jsx(Co,{steps:e.map((k,g)=>({id:k.id,title:k.title,content:k.content,description:k.description,status:g<a?"completed":g===a?y?"error":"active":"pending"})),currentStep:a,onStepChange:m,allowNavigation:r}),n.jsx("div",{className:"bg-surface-base rounded-lg border p-6",children:n.jsxs(Tt,{spacing:"md",children:[n.jsxs("div",{children:[n.jsx("h2",{className:"text-2xl font-semibold",children:h.title}),h.description&&n.jsx("p",{className:"text-fg-secondary mt-1",children:h.description})]}),y&&n.jsx("div",{className:"bg-error-bg border border-error-border rounded p-3",children:n.jsx("p",{className:"text-sm text-fg-error",children:"Please fix the errors before proceeding."})}),n.jsx("div",{className:"min-h-48",children:h.fields}),n.jsxs("div",{className:"flex justify-between pt-4 border-t",children:[n.jsx(Z,{variant:"outline",onClick:p,disabled:a===0,children:"Back"}),n.jsx(Z,{variant:"primary",onClick:f,children:x?"Complete":"Next"})]})]})})]})})}function nu({items:e,searchFn:t,filterFn:r,renderItem:s,filters:a=[],searchPlaceholder:o="Search...",emptyMessage:i="No results found",showResultsCount:c=!0}){const[u,d]=l.useState(""),[f,p]=l.useState({}),m=l.useMemo(()=>{let k=e;if(u.trim()&&t){const g=u.toLowerCase();k=k.filter(j=>t(g,j))}return r&&Object.keys(f).length>0&&(k=k.filter(g=>r(f,g))),k},[e,u,f,t,r]),h=(k,g)=>{p(j=>P(R({},j),{[k]:g}))},x=()=>{p({}),d("")},y=u.trim().length>0||Object.keys(f).length>0;return n.jsx(ot,{maxWidth:"full",paddingX:"base",paddingY:"base",children:n.jsxs(Tt,{spacing:"md",children:[n.jsx(ur,{padding:"medium",children:n.jsxs(Tt,{spacing:"md",children:[n.jsx("div",{children:n.jsx(Mr,{placeholder:o,value:u,onSearch:d})}),a.length>0&&n.jsx("div",{className:"flex flex-wrap gap-2",children:a.map(k=>{var g;return n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsxs(Be,{className:"text-fg-secondary text-sm",children:[k.label,":"]}),n.jsxs("select",{className:"px-3 py-1 border rounded text-sm",value:String(f[k.id]||""),onChange:j=>h(k.id,j.target.value||void 0),children:[n.jsx("option",{value:"",children:"All"}),(g=k.options)==null?void 0:g.map(j=>n.jsx("option",{value:String(j.value||""),children:j.label},j.id))]})]},k.id)})}),y&&n.jsx("div",{children:n.jsx(Z,{variant:"outline",size:"sm",onClick:x,children:"Clear Filters"})})]})}),c&&n.jsxs("div",{className:"text-sm text-fg-secondary",children:["Showing ",m.length," of ",e.length," results",y&&" (filtered)"]}),m.length===0?n.jsx(ur,{padding:"large",children:n.jsx("div",{className:"text-center text-fg-secondary",children:n.jsx(Be,{children:i})})}):n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:m.map((k,g)=>n.jsx("div",{children:s(k,g)},g))})]})})}function au({sidebar:e,children:t,header:r,footer:s,defaultCollapsed:a=!1,sidebarProps:o}){return n.jsxs("div",{className:"flex h-screen overflow-hidden",children:[e&&n.jsx(Ce,P(R({defaultCollapsed:a},o),{children:e})),n.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[r&&n.jsx("header",{className:"border-b bg-surface-base",children:n.jsx(ot,{maxWidth:"full",paddingX:"base",paddingY:"sm",children:r})}),n.jsx("main",{className:"flex-1 overflow-y-auto",children:n.jsx(ot,{maxWidth:"xl",paddingX:"base",paddingY:"base",children:t})}),s&&n.jsx("footer",{className:"border-t bg-surface-base",children:n.jsx(ot,{maxWidth:"full",paddingX:"base",paddingY:"sm",children:s})})]})]})}exports.AMBER=st;exports.Accordion=pd;exports.AlertDialog=Gd;exports.AppProvider=hl;exports.Autocomplete=za;exports.AutocompleteList=Tr;exports.AutocompleteOption=Cs;exports.Avatar=dr;exports.AvatarGroup=Ec;exports.BLUE=Pn;exports.BRAND_COLORS=ii;exports.BREAKPOINT_TOKENS=vr;exports.Badge=ma;exports.Breadcrumb=Ea;exports.BreakpointTokenFactory=Nt;exports.Button=Z;exports.COLOR_SCALES=Bo;exports.CYAN=et;exports.Card=ur;exports.Checkbox=jr;exports.Chip=ys;exports.Collapsible=ga;exports.ColorPicker=dd;exports.CommandPalette=eu;exports.ConfigProvider=la;exports.DashboardLayout=au;exports.DataGrid=tu;exports.DataTablePattern=ru;exports.DatePicker=nd;exports.DatePickerCalendar=Ss;exports.DatePickerInput=Ns;exports.DatePickerProvider=os;exports.Dialog=Te;exports.DialogClose=No;exports.DialogContent=Zs;exports.DialogContext=wr;exports.DialogDescription=jo;exports.DialogFooter=en;exports.DialogHeader=Qs;exports.DialogProvider=ms;exports.DialogTitle=ko;exports.DialogTrigger=wo;exports.Drawer=qt;exports.DrawerContent=Es;exports.DrawerFooter=Ha;exports.DrawerHeader=Wa;exports.Dropdown=Aa;exports.EMERALD=rt;exports.EmptyState=Ta;exports.ErrorMessage=ha;exports.FONT_FAMILY_TOKENS=Oo;exports.FONT_WEIGHT_TOKENS=Vo;exports.FUCHSIA=zn;exports.FileUpload=ld;exports.Form=Tc;exports.FormContext=Nr;exports.FormField=Ac;exports.FormProvider=wa;exports.FormWizardPattern=su;exports.GRAY=In;exports.GREEN=Dn;exports.Header=bt;exports.HeaderActions=Xa;exports.HeaderComponent=bt;exports.HeaderHamburger=Ja;exports.HeaderLogo=Ka;exports.HeaderMobileMenu=Za;exports.HeaderNavigation=Ya;exports.HeaderProvider=is;exports.INDIGO=Ze;exports.Info=xl;exports.Input=ke;exports.LIME=Hn;exports.Label=Mt;exports.LoginBox=vd;exports.Menu=Gt;exports.MenuContent=Ua;exports.MenuItem=As;exports.MenuSeparator=qa;exports.MenuTrigger=Ts;exports.Modal=yd;exports.MultiSelect=Oa;exports.NavLink=gs;exports.Navbar=xt;exports.NavbarContext=_r;exports.NavbarGroup=mo;exports.NavbarItem=uo;exports.NavbarSeparator=fo;exports.NavbarToggle=br;exports.Navigation=Qa;exports.NavigationComponent=Qa;exports.ORANGE=Fn;exports.PINK=On;exports.PRIMITIVE_COLORS=cs;exports.PURPLE=Vn;exports.PageHeader=eo;exports.PageHeaderComponent=eo;exports.Pagination=Ma;exports.Popover=$s;exports.Progress=xs;exports.RED=_n;exports.ROSE=nt;exports.Radio=xa;exports.Rating=id;exports.SEMANTIC_COLORS=Ko;exports.SEMANTIC_COLORS_DARK=xr;exports.SEMANTIC_COLORS_LIGHT=Ut;exports.SIDEBAR_TOKENS=Je;exports.SKY=at;exports.SLATE=tt;exports.SPACING_TOKENS=gr;exports.SearchAndFilterPattern=nu;exports.SearchInput=Mr;exports.Select=kr;exports.Separator=vs;exports.SideNavbar=Ce;exports.SideNavbarBackdrop=Xs;exports.SideNavbarConfigContext=Ir;exports.SideNavbarConfigProvider=Hs;exports.SideNavbarProvider=Us;exports.SideNavbarResizeHandle=Ys;exports.SideNavbarRoot=co;exports.SideNavbarStateContext=Dr;exports.SideNavbarStateProvider=Bs;exports.SideNavbarThemeContext=Rr;exports.SideNavbarThemeProvider=Ws;exports.SideNavbarToggle=Js;exports.SideNavbarToggleContext=Fr;exports.Sidebar=ct;exports.SidebarContent=bo;exports.SidebarContext=zr;exports.SidebarFooter=go;exports.SidebarGroup=xo;exports.SidebarHeader=ho;exports.SidebarSlot=vo;exports.SidebarSlotContent=yo;exports.SidebarSlotContext=Lr;exports.SidebarSlotProvider=lo;exports.Skeleton=ba;exports.Slider=ya;exports.SpacingTokenFactory=pe;exports.Spinner=bs;exports.Stepper=Co;exports.Switch=va;exports.TEAL=Wn;exports.TYPOGRAPHY_TOKENS=ht;exports.Table=je;exports.TableActions=_s;exports.TableBody=zs;exports.TableCell=Fs;exports.TableContext=Ar;exports.TableEmptyState=Ps;exports.TableFilters=Os;exports.TableHeader=Ls;exports.TableHeaderCell=Is;exports.TableHeaderRow=Ds;exports.TablePagination=Vs;exports.TableProvider=ls;exports.TableRow=pr;exports.Tabs=od;exports.TabsContent=Pa;exports.TabsContext=Cr;exports.TabsList=Fa;exports.TabsProvider=La;exports.TabsTrigger=_a;exports.Text=Be;exports.Textarea=pa;exports.ThemeProvider=oa;exports.TimePicker=cd;exports.Timeline=Qd;exports.Toast=So;exports.ToastContainer=Jd;exports.ToastContext=yr;exports.ToastProvider=ca;exports.Tooltip=Bt;exports.TypographyTokenFactory=fe;exports.VIOLET=Qe;exports.YELLOW=Ln;exports.blendColors=ds;exports.clampWidth=ir;exports.cn=w;exports.darken=oi;exports.defaultConfigValues=ye;exports.defaultThemeValues=$t;exports.formatKeyboardShortcut=Ad;exports.getAnimation=el;exports.getAnimationClass=he;exports.getBreakpoint=li;exports.getColor=Xo;exports.getColorClass=Zo;exports.getContrastColor=ni;exports.getFocusColorClass=ti;exports.getFocusRingClass=ri;exports.getHoverColorClass=ei;exports.getMediaQuery=ci;exports.getNestedIndentClass=Po;exports.getOpacity=sl;exports.getOpacityClass=nl;exports.getPrimitiveColor=At;exports.getPrimitiveColorPalette=Go;exports.getSemanticColor=Wt;exports.getSemanticColorClass=Qo;exports.getSemanticColorRole=Yo;exports.getSemanticColorValue=Jo;exports.getSpacing=zo;exports.getSpacingClass=T;exports.getTransitionClass=tl;exports.getTypography=Wo;exports.getTypographyClasses=ce;exports.getTypographyLineHeight=Ho;exports.getTypographySize=re;exports.getTypographySizeFromFontSize=ve;exports.getTypographyWeight=Fe;exports.getTypographyWeightFromFontWeight=Et;exports.getZIndex=rl;exports.getZIndexClass=ue;exports.isLightColor=Bn;exports.lighten=ai;exports.parseKeyboardShortcut=so;exports.parseWidthToPixels=hr;exports.useApp=bl;exports.useColumnResizing=Cd;exports.useConfig=dl;exports.useDialogContext=Dt;exports.useDialogContextOptional=fl;exports.useFocusManagement=oo;exports.useFormContext=ws;exports.useFormContextOptional=Mc;exports.useFormFieldArray=Jc;exports.useGroupState=Hd;exports.useHeaderContext=Rs;exports.useKeyboardShortcut=io;exports.useNavLink=fa;exports.useNavbar=zd;exports.useNavbarRequired=Pr;exports.useResize=no;exports.useResponsiveSidebar=ao;exports.useSideNavbarCombined=qd;exports.useSideNavbarConfig=Ed;exports.useSideNavbarConfigRequired=gt;exports.useSideNavbarContent=Ud;exports.useSideNavbarNavigation=Bd;exports.useSideNavbarState=Md;exports.useSideNavbarStateRequired=lt;exports.useSideNavbarTheme=$d;exports.useSideNavbarThemeRequired=it;exports.useSideNavbarToggleContext=Rd;exports.useSideNavbarToggleContextRequired=Ks;exports.useSidebar=po;exports.useSidebarRequired=Kt;exports.useSidebarSlot=qs;exports.useSidebarSlotRequired=Gs;exports.useTableContext=Pe;exports.useTableContextOptional=wd;exports.useTabsContext=$r;exports.useTabsContextOptional=ad;exports.useTheme=ll;exports.useToast=Zd;exports.useToastContext=fs;exports.useToastContextOptional=ul;exports.useVirtualScrolling=to;exports.validateWidthBounds=ro;exports.withOpacity=si;
2
689
  //# sourceMappingURL=index.cjs.map