@sakaniui/react 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +131 -0
  3. package/dist/components/Accordion/Accordion.d.ts +18 -0
  4. package/dist/components/Accordion/index.d.ts +2 -0
  5. package/dist/components/Alert/Alert.d.ts +13 -0
  6. package/dist/components/Alert/index.d.ts +2 -0
  7. package/dist/components/ApplicationComponents/ActivityFeed/ActivityFeed.d.ts +27 -0
  8. package/dist/components/ApplicationComponents/ActivityFeed/index.d.ts +2 -0
  9. package/dist/components/ApplicationComponents/Announcement/Announcement.d.ts +15 -0
  10. package/dist/components/ApplicationComponents/Announcement/index.d.ts +2 -0
  11. package/dist/components/ApplicationComponents/AvatarUpload/AvatarUpload.d.ts +20 -0
  12. package/dist/components/ApplicationComponents/AvatarUpload/index.d.ts +2 -0
  13. package/dist/components/ApplicationComponents/Balance/Balance.d.ts +21 -0
  14. package/dist/components/ApplicationComponents/Balance/index.d.ts +2 -0
  15. package/dist/components/ApplicationComponents/CodeSnippet/CodeSnippet.d.ts +16 -0
  16. package/dist/components/ApplicationComponents/CodeSnippet/index.d.ts +2 -0
  17. package/dist/components/ApplicationComponents/Expenses/Expenses.d.ts +18 -0
  18. package/dist/components/ApplicationComponents/Expenses/index.d.ts +2 -0
  19. package/dist/components/ApplicationComponents/InlineHint/InlineHint.d.ts +9 -0
  20. package/dist/components/ApplicationComponents/InlineHint/index.d.ts +2 -0
  21. package/dist/components/ApplicationComponents/Modal/Modal.d.ts +43 -0
  22. package/dist/components/ApplicationComponents/Modal/index.d.ts +2 -0
  23. package/dist/components/ApplicationComponents/NotificationItem/NotificationItem.d.ts +19 -0
  24. package/dist/components/ApplicationComponents/NotificationItem/index.d.ts +2 -0
  25. package/dist/components/ApplicationComponents/ProgressItem/ProgressItem.d.ts +15 -0
  26. package/dist/components/ApplicationComponents/ProgressItem/index.d.ts +2 -0
  27. package/dist/components/ApplicationComponents/ProgressStat/ProgressStat.d.ts +11 -0
  28. package/dist/components/ApplicationComponents/ProgressStat/index.d.ts +2 -0
  29. package/dist/components/ApplicationComponents/RichSeparator/RichSeparator.d.ts +10 -0
  30. package/dist/components/ApplicationComponents/RichSeparator/index.d.ts +2 -0
  31. package/dist/components/ApplicationComponents/SpendingBalance/SpendingBalance.d.ts +11 -0
  32. package/dist/components/ApplicationComponents/SpendingBalance/index.d.ts +2 -0
  33. package/dist/components/ApplicationComponents/StockMarket/StockMarket.d.ts +22 -0
  34. package/dist/components/ApplicationComponents/StockMarket/index.d.ts +2 -0
  35. package/dist/components/ApplicationComponents/Tags/Tags.d.ts +9 -0
  36. package/dist/components/ApplicationComponents/Tags/index.d.ts +2 -0
  37. package/dist/components/ApplicationComponents/Ticker/Ticker.d.ts +14 -0
  38. package/dist/components/ApplicationComponents/Ticker/index.d.ts +2 -0
  39. package/dist/components/ApplicationComponents/Transactions/Transactions.d.ts +18 -0
  40. package/dist/components/ApplicationComponents/Transactions/index.d.ts +2 -0
  41. package/dist/components/AreaChart/AreaChart.d.ts +21 -0
  42. package/dist/components/AreaChart/index.d.ts +2 -0
  43. package/dist/components/Avatar/Avatar.d.ts +17 -0
  44. package/dist/components/Avatar/index.d.ts +2 -0
  45. package/dist/components/AvatarGroup/AvatarGroup.d.ts +17 -0
  46. package/dist/components/AvatarGroup/index.d.ts +2 -0
  47. package/dist/components/Badge/Badge.d.ts +15 -0
  48. package/dist/components/Badge/index.d.ts +2 -0
  49. package/dist/components/BarChart/BarChart.d.ts +19 -0
  50. package/dist/components/BarChart/index.d.ts +2 -0
  51. package/dist/components/BoardCard/BoardCard.d.ts +26 -0
  52. package/dist/components/BoardCard/index.d.ts +2 -0
  53. package/dist/components/BoardColumn/BoardColumn.d.ts +17 -0
  54. package/dist/components/BoardColumn/index.d.ts +2 -0
  55. package/dist/components/Breadcrumb/Breadcrumb.d.ts +13 -0
  56. package/dist/components/Breadcrumb/index.d.ts +2 -0
  57. package/dist/components/Button/Button.d.ts +19 -0
  58. package/dist/components/Button/index.d.ts +9 -0
  59. package/dist/components/Calendar/Calendar.d.ts +24 -0
  60. package/dist/components/Calendar/index.d.ts +2 -0
  61. package/dist/components/Card/Card.d.ts +13 -0
  62. package/dist/components/Card/index.d.ts +2 -0
  63. package/dist/components/CardMetaItem/CardMetaItem.d.ts +9 -0
  64. package/dist/components/CardMetaItem/index.d.ts +2 -0
  65. package/dist/components/ChatComposer/ChatComposer-simple.d.ts +15 -0
  66. package/dist/components/ChatComposer/ChatComposer.d.ts +22 -0
  67. package/dist/components/ChatComposer/index.d.ts +2 -0
  68. package/dist/components/Checkbox/Checkbox.d.ts +9 -0
  69. package/dist/components/Checkbox/index.d.ts +2 -0
  70. package/dist/components/Combobox/Combobox.d.ts +27 -0
  71. package/dist/components/Combobox/index.d.ts +2 -0
  72. package/dist/components/ConversationItem/ConversationItem.d.ts +17 -0
  73. package/dist/components/ConversationItem/index.d.ts +2 -0
  74. package/dist/components/Divider/Divider.d.ts +10 -0
  75. package/dist/components/Divider/index.d.ts +2 -0
  76. package/dist/components/DonutChart/DonutChart.d.ts +19 -0
  77. package/dist/components/DonutChart/index.d.ts +2 -0
  78. package/dist/components/EmptyState/EmptyState.d.ts +15 -0
  79. package/dist/components/EmptyState/index.d.ts +2 -0
  80. package/dist/components/FileUpload/FileUpload.d.ts +14 -0
  81. package/dist/components/FileUpload/index.d.ts +2 -0
  82. package/dist/components/FilterChip/FilterChip.d.ts +13 -0
  83. package/dist/components/FilterChip/index.d.ts +2 -0
  84. package/dist/components/FunnelChart/FunnelChart.d.ts +13 -0
  85. package/dist/components/FunnelChart/index.d.ts +2 -0
  86. package/dist/components/HeatmapChart/HeatmapChart.d.ts +14 -0
  87. package/dist/components/HeatmapChart/index.d.ts +2 -0
  88. package/dist/components/IconButton/IconButton.d.ts +14 -0
  89. package/dist/components/IconButton/index.d.ts +2 -0
  90. package/dist/components/Input/Input.d.ts +19 -0
  91. package/dist/components/Input/index.d.ts +2 -0
  92. package/dist/components/Kbd/Kbd.d.ts +7 -0
  93. package/dist/components/Kbd/index.d.ts +2 -0
  94. package/dist/components/Label/Label.d.ts +8 -0
  95. package/dist/components/Label/index.d.ts +2 -0
  96. package/dist/components/LineChart/LineChart.d.ts +25 -0
  97. package/dist/components/LineChart/index.d.ts +2 -0
  98. package/dist/components/Link/Link.d.ts +8 -0
  99. package/dist/components/Link/index.d.ts +2 -0
  100. package/dist/components/ListItem/ListItem.d.ts +13 -0
  101. package/dist/components/ListItem/index.d.ts +2 -0
  102. package/dist/components/Menu/Menu.d.ts +12 -0
  103. package/dist/components/Menu/index.d.ts +2 -0
  104. package/dist/components/MenuItem/MenuItem.d.ts +15 -0
  105. package/dist/components/MenuItem/index.d.ts +2 -0
  106. package/dist/components/MessageBubble/MessageBubble.d.ts +25 -0
  107. package/dist/components/MessageBubble/index.d.ts +2 -0
  108. package/dist/components/Pagination/Pagination.d.ts +13 -0
  109. package/dist/components/Pagination/index.d.ts +2 -0
  110. package/dist/components/PieChart/PieChart.d.ts +18 -0
  111. package/dist/components/PieChart/index.d.ts +2 -0
  112. package/dist/components/Popover/Popover.d.ts +15 -0
  113. package/dist/components/Popover/index.d.ts +2 -0
  114. package/dist/components/Progress/Progress.d.ts +12 -0
  115. package/dist/components/Progress/index.d.ts +2 -0
  116. package/dist/components/RadarChart/RadarChart.d.ts +19 -0
  117. package/dist/components/RadarChart/index.d.ts +2 -0
  118. package/dist/components/RadialChart/RadialChart.d.ts +18 -0
  119. package/dist/components/RadialChart/index.d.ts +2 -0
  120. package/dist/components/Radio/Radio.d.ts +7 -0
  121. package/dist/components/Radio/index.d.ts +2 -0
  122. package/dist/components/SegmentedControl/SegmentedControl.d.ts +16 -0
  123. package/dist/components/SegmentedControl/index.d.ts +2 -0
  124. package/dist/components/Select/Select.d.ts +25 -0
  125. package/dist/components/Select/index.d.ts +2 -0
  126. package/dist/components/Sidebar/Sidebar.d.ts +8 -0
  127. package/dist/components/Sidebar/index.d.ts +2 -0
  128. package/dist/components/SidebarDivider/SidebarDivider.d.ts +3 -0
  129. package/dist/components/SidebarDivider/index.d.ts +1 -0
  130. package/dist/components/SidebarFooter/SidebarFooter.d.ts +16 -0
  131. package/dist/components/SidebarFooter/index.d.ts +2 -0
  132. package/dist/components/SidebarGroupLabel/SidebarGroupLabel.d.ts +6 -0
  133. package/dist/components/SidebarGroupLabel/index.d.ts +2 -0
  134. package/dist/components/SidebarHeader/SidebarHeader.d.ts +16 -0
  135. package/dist/components/SidebarHeader/index.d.ts +2 -0
  136. package/dist/components/SidebarItem/SidebarItem.d.ts +24 -0
  137. package/dist/components/SidebarItem/index.d.ts +2 -0
  138. package/dist/components/SidebarPromo/SidebarPromo.d.ts +14 -0
  139. package/dist/components/SidebarPromo/index.d.ts +2 -0
  140. package/dist/components/SidebarSearch/SidebarSearch.d.ts +11 -0
  141. package/dist/components/SidebarSearch/index.d.ts +2 -0
  142. package/dist/components/SidebarSubItem/SidebarSubItem.d.ts +10 -0
  143. package/dist/components/SidebarSubItem/index.d.ts +2 -0
  144. package/dist/components/Skeleton/Skeleton.d.ts +12 -0
  145. package/dist/components/Skeleton/index.d.ts +2 -0
  146. package/dist/components/Slider/Slider.d.ts +10 -0
  147. package/dist/components/Slider/index.d.ts +2 -0
  148. package/dist/components/Spinner/Spinner.d.ts +10 -0
  149. package/dist/components/Spinner/index.d.ts +2 -0
  150. package/dist/components/StatCard/StatCard.d.ts +28 -0
  151. package/dist/components/StatCard/index.d.ts +2 -0
  152. package/dist/components/Stepper/Stepper.d.ts +24 -0
  153. package/dist/components/Stepper/index.d.ts +2 -0
  154. package/dist/components/Switch/Switch.d.ts +7 -0
  155. package/dist/components/Switch/index.d.ts +2 -0
  156. package/dist/components/Table/Table.d.ts +32 -0
  157. package/dist/components/Table/index.d.ts +2 -0
  158. package/dist/components/Tabs/Tabs.d.ts +27 -0
  159. package/dist/components/Tabs/index.d.ts +2 -0
  160. package/dist/components/Textarea/Textarea.d.ts +8 -0
  161. package/dist/components/Textarea/index.d.ts +2 -0
  162. package/dist/components/Toast/Toast.d.ts +13 -0
  163. package/dist/components/Toast/index.d.ts +2 -0
  164. package/dist/components/Tooltip/Tooltip.d.ts +15 -0
  165. package/dist/components/Tooltip/index.d.ts +2 -0
  166. package/dist/components/TopBar/TopBar.d.ts +37 -0
  167. package/dist/components/TopBar/index.d.ts +2 -0
  168. package/dist/components/TopBarMobile/TopBarMobile.d.ts +16 -0
  169. package/dist/components/TopBarMobile/index.d.ts +2 -0
  170. package/dist/favicon.svg +1 -0
  171. package/dist/icons.svg +24 -0
  172. package/dist/index.cjs +1 -0
  173. package/dist/index.d.ts +98 -0
  174. package/dist/index.mjs +6107 -0
  175. package/dist/style.css +2 -0
  176. package/package.json +85 -0
@@ -0,0 +1,2 @@
1
+ export { Textarea, default } from './Textarea';
2
+ export type { TextareaProps } from './Textarea';
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ export type ToastStatus = 'success' | 'error' | 'info';
3
+ export interface ToastProps {
4
+ /** Figma Status axis. Defaults to "info". */
5
+ status?: ToastStatus;
6
+ title?: string;
7
+ description?: string;
8
+ /** Called when the dismiss (x) button is clicked. Hides the button if omitted. */
9
+ onDismiss?: () => void;
10
+ className?: string;
11
+ }
12
+ export declare const Toast: React.FC<ToastProps>;
13
+ export default Toast;
@@ -0,0 +1,2 @@
1
+ export { Toast, default } from './Toast';
2
+ export type { ToastProps, ToastStatus } from './Toast';
@@ -0,0 +1,15 @@
1
+ import { default as React } from 'react';
2
+ export type TooltipPointer = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | 'center-left' | 'center-right';
3
+ export interface TooltipProps {
4
+ /** Tooltip title (Figma: Title). */
5
+ title: string;
6
+ /** Optional supporting line (Figma: Subtitle). */
7
+ subtitle?: string;
8
+ /** Pointer position. Maps to Figma Pointer axis. Defaults to "top-center". */
9
+ pointer?: TooltipPointer;
10
+ /** The element the tooltip is attached to. */
11
+ children: React.ReactNode;
12
+ className?: string;
13
+ }
14
+ export declare const Tooltip: React.FC<TooltipProps>;
15
+ export default Tooltip;
@@ -0,0 +1,2 @@
1
+ export { Tooltip, default } from './Tooltip';
2
+ export type { TooltipProps, TooltipPointer } from './Tooltip';
@@ -0,0 +1,37 @@
1
+ import { default as React } from 'react';
2
+ import { LucideIcon } from 'lucide-react';
3
+ export type TopBarType = 'search' | 'breadcrumb' | 'tabs' | 'minimal' | 'chat';
4
+ export type TopBarDensity = 'md' | 'sm';
5
+ export interface TopBarProps {
6
+ type?: TopBarType;
7
+ density?: TopBarDensity;
8
+ /** The left region: Input (search), Breadcrumb, Tabs, or a title node. */
9
+ left?: React.ReactNode;
10
+ /** Show the sidebar toggle. Defaults to true. */
11
+ showToggle?: boolean;
12
+ onToggle?: () => void;
13
+ /** Icon for the sidebar toggle button. Defaults to PanelLeft. */
14
+ toggleIcon?: LucideIcon;
15
+ /** Show help + notification icons. Defaults to true. */
16
+ showActions?: boolean;
17
+ /** Show the help icon within the actions group. Defaults to true. */
18
+ showHelp?: boolean;
19
+ hasUnread?: boolean;
20
+ /** Extra content rendered in bar__right, before the built-in action icons. */
21
+ rightSlot?: React.ReactNode;
22
+ /** Account cluster (Avatar + chevron) that opens a Menu. */
23
+ account?: React.ReactNode;
24
+ /** Flips the account chevron when the menu it opens is open. Defaults to false. */
25
+ accountOpen?: boolean;
26
+ /** type="chat" — conversation avatar. */
27
+ avatar?: React.ReactNode;
28
+ /** type="chat" — conversation name. */
29
+ title?: React.ReactNode;
30
+ /** type="chat" — presence or status line under the name. */
31
+ subtitle?: React.ReactNode;
32
+ /** type="chat" — trailing action buttons (call, video, search…). */
33
+ actions?: React.ReactNode;
34
+ className?: string;
35
+ }
36
+ export declare const TopBar: React.FC<TopBarProps>;
37
+ export default TopBar;
@@ -0,0 +1,2 @@
1
+ export { TopBar, default } from './TopBar';
2
+ export type { TopBarProps, TopBarType, TopBarDensity } from './TopBar';
@@ -0,0 +1,16 @@
1
+ import { default as React } from 'react';
2
+ export type TopBarMobileType = 'title' | 'title-centered' | 'title-action' | 'search';
3
+ export interface TopBarMobileProps {
4
+ type?: TopBarMobileType;
5
+ title?: React.ReactNode;
6
+ /** Trailing slot for the 'title' type (e.g. an Avatar). */
7
+ trailing?: React.ReactNode;
8
+ /** Search field node for the 'search' type (e.g. an Input). */
9
+ search?: React.ReactNode;
10
+ onMenu?: () => void;
11
+ onAction?: () => void;
12
+ onClose?: () => void;
13
+ className?: string;
14
+ }
15
+ export declare const TopBarMobile: React.FC<TopBarMobileProps>;
16
+ export default TopBarMobile;
@@ -0,0 +1,2 @@
1
+ export { TopBarMobile, default } from './TopBarMobile';
2
+ export type { TopBarMobileProps, TopBarMobileType } from './TopBarMobile';
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="48" height="46" fill="none" viewBox="0 0 48 46"><path fill="#863bff" d="M25.946 44.938c-.664.845-2.021.375-2.021-.698V33.937a2.26 2.26 0 0 0-2.262-2.262H10.287c-.92 0-1.456-1.04-.92-1.788l7.48-10.471c1.07-1.497 0-3.578-1.842-3.578H1.237c-.92 0-1.456-1.04-.92-1.788L10.013.474c.214-.297.556-.474.92-.474h28.894c.92 0 1.456 1.04.92 1.788l-7.48 10.471c-1.07 1.498 0 3.579 1.842 3.579h11.377c.943 0 1.473 1.088.89 1.83L25.947 44.94z" style="fill:#863bff;fill:color(display-p3 .5252 .23 1);fill-opacity:1"/><mask id="a" width="48" height="46" x="0" y="0" maskUnits="userSpaceOnUse" style="mask-type:alpha"><path fill="#000" d="M25.842 44.938c-.664.844-2.021.375-2.021-.698V33.937a2.26 2.26 0 0 0-2.262-2.262H10.183c-.92 0-1.456-1.04-.92-1.788l7.48-10.471c1.07-1.498 0-3.579-1.842-3.579H1.133c-.92 0-1.456-1.04-.92-1.787L9.91.473c.214-.297.556-.474.92-.474h28.894c.92 0 1.456 1.04.92 1.788l-7.48 10.471c-1.07 1.498 0 3.578 1.842 3.578h11.377c.943 0 1.473 1.088.89 1.832L25.843 44.94z" style="fill:#000;fill-opacity:1"/></mask><g mask="url(#a)"><g filter="url(#b)"><ellipse cx="5.508" cy="14.704" fill="#ede6ff" rx="5.508" ry="14.704" style="fill:#ede6ff;fill:color(display-p3 .9275 .9033 1);fill-opacity:1" transform="matrix(.00324 1 1 -.00324 -4.47 31.516)"/></g><g filter="url(#c)"><ellipse cx="10.399" cy="29.851" fill="#ede6ff" rx="10.399" ry="29.851" style="fill:#ede6ff;fill:color(display-p3 .9275 .9033 1);fill-opacity:1" transform="matrix(.00324 1 1 -.00324 -39.328 7.883)"/></g><g filter="url(#d)"><ellipse cx="5.508" cy="30.487" fill="#7e14ff" rx="5.508" ry="30.487" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.814 -25.913 -14.639)scale(1 -1)"/></g><g filter="url(#e)"><ellipse cx="5.508" cy="30.599" fill="#7e14ff" rx="5.508" ry="30.599" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.814 -32.644 -3.334)scale(1 -1)"/></g><g filter="url(#f)"><ellipse cx="5.508" cy="30.599" fill="#7e14ff" rx="5.508" ry="30.599" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="matrix(.00324 1 1 -.00324 -34.34 30.47)"/></g><g filter="url(#g)"><ellipse cx="14.072" cy="22.078" fill="#ede6ff" rx="14.072" ry="22.078" style="fill:#ede6ff;fill:color(display-p3 .9275 .9033 1);fill-opacity:1" transform="rotate(93.35 24.506 48.493)scale(-1 1)"/></g><g filter="url(#h)"><ellipse cx="3.47" cy="21.501" fill="#7e14ff" rx="3.47" ry="21.501" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.009 28.708 47.59)scale(-1 1)"/></g><g filter="url(#i)"><ellipse cx="3.47" cy="21.501" fill="#7e14ff" rx="3.47" ry="21.501" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.009 28.708 47.59)scale(-1 1)"/></g><g filter="url(#j)"><ellipse cx=".387" cy="8.972" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(39.51 .387 8.972)"/></g><g filter="url(#k)"><ellipse cx="47.523" cy="-6.092" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 47.523 -6.092)"/></g><g filter="url(#l)"><ellipse cx="41.412" cy="6.333" fill="#47bfff" rx="5.971" ry="9.665" style="fill:#47bfff;fill:color(display-p3 .2799 .748 1);fill-opacity:1" transform="rotate(37.892 41.412 6.333)"/></g><g filter="url(#m)"><ellipse cx="-1.879" cy="38.332" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 -1.88 38.332)"/></g><g filter="url(#n)"><ellipse cx="-1.879" cy="38.332" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 -1.88 38.332)"/></g><g filter="url(#o)"><ellipse cx="35.651" cy="29.907" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 35.651 29.907)"/></g><g filter="url(#p)"><ellipse cx="38.418" cy="32.4" fill="#47bfff" rx="5.971" ry="15.297" style="fill:#47bfff;fill:color(display-p3 .2799 .748 1);fill-opacity:1" transform="rotate(37.892 38.418 32.4)"/></g></g><defs><filter id="b" width="60.045" height="41.654" x="-19.77" y="16.149" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="7.659"/></filter><filter id="c" width="90.34" height="51.437" x="-54.613" y="-7.533" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="7.659"/></filter><filter id="d" width="79.355" height="29.4" x="-49.64" y="2.03" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="e" width="79.579" height="29.4" x="-45.045" y="20.029" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="f" width="79.579" height="29.4" x="-43.513" y="21.178" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="g" width="74.749" height="58.852" x="15.756" y="-17.901" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="7.659"/></filter><filter id="h" width="61.377" height="25.362" x="23.548" y="2.284" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="i" width="61.377" height="25.362" x="23.548" y="2.284" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="j" width="56.045" height="63.649" x="-27.636" y="-22.853" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="k" width="54.814" height="64.646" x="20.116" y="-38.415" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="l" width="33.541" height="35.313" x="24.641" y="-11.323" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="m" width="54.814" height="64.646" x="-29.286" y="6.009" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="n" width="54.814" height="64.646" x="-29.286" y="6.009" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="o" width="54.814" height="64.646" x="8.244" y="-2.416" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="p" width="39.409" height="43.623" x="18.713" y="10.588" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter></defs></svg>
package/dist/icons.svg ADDED
@@ -0,0 +1,24 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg">
2
+ <symbol id="bluesky-icon" viewBox="0 0 16 17">
3
+ <g clip-path="url(#bluesky-clip)"><path fill="#08060d" d="M7.75 7.735c-.693-1.348-2.58-3.86-4.334-5.097-1.68-1.187-2.32-.981-2.74-.79C.188 2.065.1 2.812.1 3.251s.241 3.602.398 4.13c.52 1.744 2.367 2.333 4.07 2.145-2.495.37-4.71 1.278-1.805 4.512 3.196 3.309 4.38-.71 4.987-2.746.608 2.036 1.307 5.91 4.93 2.746 2.72-2.746.747-4.143-1.747-4.512 1.702.189 3.55-.4 4.07-2.145.156-.528.397-3.691.397-4.13s-.088-1.186-.575-1.406c-.42-.19-1.06-.395-2.741.79-1.755 1.24-3.64 3.752-4.334 5.099"/></g>
4
+ <defs><clipPath id="bluesky-clip"><path fill="#fff" d="M.1.85h15.3v15.3H.1z"/></clipPath></defs>
5
+ </symbol>
6
+ <symbol id="discord-icon" viewBox="0 0 20 19">
7
+ <path fill="#08060d" d="M16.224 3.768a14.5 14.5 0 0 0-3.67-1.153c-.158.286-.343.67-.47.976a13.5 13.5 0 0 0-4.067 0c-.128-.306-.317-.69-.476-.976A14.4 14.4 0 0 0 3.868 3.77C1.546 7.28.916 10.703 1.231 14.077a14.7 14.7 0 0 0 4.5 2.306q.545-.748.965-1.587a9.5 9.5 0 0 1-1.518-.74q.191-.14.372-.293c2.927 1.369 6.107 1.369 8.999 0q.183.152.372.294-.723.437-1.52.74.418.838.963 1.588a14.6 14.6 0 0 0 4.504-2.308c.37-3.911-.63-7.302-2.644-10.309m-9.13 8.234c-.878 0-1.599-.82-1.599-1.82 0-.998.705-1.82 1.6-1.82.894 0 1.614.82 1.599 1.82.001 1-.705 1.82-1.6 1.82m5.91 0c-.878 0-1.599-.82-1.599-1.82 0-.998.705-1.82 1.6-1.82.893 0 1.614.82 1.599 1.82 0 1-.706 1.82-1.6 1.82"/>
8
+ </symbol>
9
+ <symbol id="documentation-icon" viewBox="0 0 21 20">
10
+ <path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="m15.5 13.333 1.533 1.322c.645.555.967.833.967 1.178s-.322.623-.967 1.179L15.5 18.333m-3.333-5-1.534 1.322c-.644.555-.966.833-.966 1.178s.322.623.966 1.179l1.534 1.321"/>
11
+ <path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M17.167 10.836v-4.32c0-1.41 0-2.117-.224-2.68-.359-.906-1.118-1.621-2.08-1.96-.599-.21-1.349-.21-2.848-.21-2.623 0-3.935 0-4.983.369-1.684.591-3.013 1.842-3.641 3.428C3 6.449 3 7.684 3 10.154v2.122c0 2.558 0 3.838.706 4.726q.306.383.713.671c.76.536 1.79.64 3.581.66"/>
12
+ <path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M3 10a2.78 2.78 0 0 1 2.778-2.778c.555 0 1.209.097 1.748-.047.48-.129.854-.503.982-.982.145-.54.048-1.194.048-1.749a2.78 2.78 0 0 1 2.777-2.777"/>
13
+ </symbol>
14
+ <symbol id="github-icon" viewBox="0 0 19 19">
15
+ <path fill="#08060d" fill-rule="evenodd" d="M9.356 1.85C5.05 1.85 1.57 5.356 1.57 9.694a7.84 7.84 0 0 0 5.324 7.44c.387.079.528-.168.528-.376 0-.182-.013-.805-.013-1.454-2.165.467-2.616-.935-2.616-.935-.349-.91-.864-1.143-.864-1.143-.71-.48.051-.48.051-.48.787.051 1.2.805 1.2.805.695 1.194 1.817.857 2.268.649.064-.507.27-.857.49-1.052-1.728-.182-3.545-.857-3.545-3.87 0-.857.31-1.558.8-2.104-.078-.195-.349-1 .077-2.078 0 0 .657-.208 2.14.805a7.5 7.5 0 0 1 1.946-.26c.657 0 1.328.092 1.946.26 1.483-1.013 2.14-.805 2.14-.805.426 1.078.155 1.883.078 2.078.502.546.799 1.247.799 2.104 0 3.013-1.818 3.675-3.558 3.87.284.247.528.714.528 1.454 0 1.052-.012 1.896-.012 2.156 0 .208.142.455.528.377a7.84 7.84 0 0 0 5.324-7.441c.013-4.338-3.48-7.844-7.773-7.844" clip-rule="evenodd"/>
16
+ </symbol>
17
+ <symbol id="social-icon" viewBox="0 0 20 20">
18
+ <path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M12.5 6.667a4.167 4.167 0 1 0-8.334 0 4.167 4.167 0 0 0 8.334 0"/>
19
+ <path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M2.5 16.667a5.833 5.833 0 0 1 8.75-5.053m3.837.474.513 1.035c.07.144.257.282.414.309l.93.155c.596.1.736.536.307.965l-.723.73a.64.64 0 0 0-.152.531l.207.903c.164.715-.213.991-.84.618l-.872-.52a.63.63 0 0 0-.577 0l-.872.52c-.624.373-1.003.094-.84-.618l.207-.903a.64.64 0 0 0-.152-.532l-.723-.729c-.426-.43-.289-.864.306-.964l.93-.156a.64.64 0 0 0 .412-.31l.513-1.034c.28-.562.735-.562 1.012 0"/>
20
+ </symbol>
21
+ <symbol id="x-icon" viewBox="0 0 19 19">
22
+ <path fill="#08060d" fill-rule="evenodd" d="M1.893 1.98c.052.072 1.245 1.769 2.653 3.77l2.892 4.114c.183.261.333.48.333.486s-.068.089-.152.183l-.522.593-.765.867-3.597 4.087c-.375.426-.734.834-.798.905a1 1 0 0 0-.118.148c0 .01.236.017.664.017h.663l.729-.83c.4-.457.796-.906.879-.999a692 692 0 0 0 1.794-2.038c.034-.037.301-.34.594-.675l.551-.624.345-.392a7 7 0 0 1 .34-.374c.006 0 .93 1.306 2.052 2.903l2.084 2.965.045.063h2.275c1.87 0 2.273-.003 2.266-.021-.008-.02-1.098-1.572-3.894-5.547-2.013-2.862-2.28-3.246-2.273-3.266.008-.019.282-.332 2.085-2.38l2-2.274 1.567-1.782c.022-.028-.016-.03-.65-.03h-.674l-.3.342a871 871 0 0 1-1.782 2.025c-.067.075-.405.458-.75.852a100 100 0 0 1-.803.91c-.148.172-.299.344-.99 1.127-.304.343-.32.358-.345.327-.015-.019-.904-1.282-1.976-2.808L6.365 1.85H1.8zm1.782.91 8.078 11.294c.772 1.08 1.413 1.973 1.425 1.984.016.017.241.02 1.05.017l1.03-.004-2.694-3.766L7.796 5.75 5.722 2.852l-1.039-.004-1.039-.004z" clip-rule="evenodd"/>
23
+ </symbol>
24
+ </svg>
package/dist/index.cjs ADDED
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let c=require("react");c=s(c,1);let l=require("react/jsx-runtime"),u=require("lucide-react"),d=require("recharts"),f=require("react-dom");f=s(f,1);var p=(e,t=1.5)=>24/e*t,m={accordion:`_accordion_1njer_3`,item:`_item_1njer_10`,item__header:`_item__header_1njer_12`,item__title:`_item__title_1njer_29`,item__chevron:`_item__chevron_1njer_36`,"item__chevron--open":`_item__chevron--open_1njer_42`,item__panelWrap:`_item__panelWrap_1njer_45`,"item__panelWrap--open":`_item__panelWrap--open_1njer_50`,item__panel:`_item__panel_1njer_45`,item__panelInner:`_item__panelInner_1njer_53`},h=({title:e,children:t,open:n,defaultOpen:r=!1,className:i})=>{let a=n!==void 0,[o,s]=c.default.useState(r),u=a?n:o;return(0,l.jsxs)(`div`,{className:[m.item,i??``].filter(Boolean).join(` `),children:[(0,l.jsxs)(`button`,{type:`button`,className:m.item__header,"aria-expanded":u,onClick:()=>!a&&s(e=>!e),children:[(0,l.jsx)(`span`,{className:m.item__title,children:e}),(0,l.jsx)(`span`,{className:[m.item__chevron,u?m[`item__chevron--open`]:``].join(` `),"aria-hidden":`true`,children:(0,l.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:p(18),strokeLinecap:`round`,strokeLinejoin:`round`,width:18,height:18,children:(0,l.jsx)(`path`,{d:`m6 9 6 6 6-6`})})})]}),(0,l.jsx)(`div`,{className:[m.item__panelWrap,u?m[`item__panelWrap--open`]:``].join(` `),children:(0,l.jsx)(`div`,{className:m.item__panel,children:(0,l.jsx)(`div`,{className:m.item__panelInner,children:t})})})]})},g=({children:e,className:t})=>(0,l.jsx)(`div`,{className:[m.accordion,t??``].filter(Boolean).join(` `),children:e}),_={avatar:`_avatar_1igqs_3`,"avatar--sm":`_avatar--sm_1igqs_17`,"avatar--md":`_avatar--md_1igqs_18`,"avatar--lg":`_avatar--lg_1igqs_19`,"avatar--xl":`_avatar--xl_1igqs_20`,"avatar--bordered":`_avatar--bordered_1igqs_25`,avatar__image:`_avatar__image_1igqs_31`,avatar__initials:`_avatar__initials_1igqs_39`,avatar__icon:`_avatar__icon_1igqs_46`},v={sm:14,md:18,lg:22,xl:26},y=({px:e})=>(0,l.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:p(e),strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,l.jsx)(`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`}),(0,l.jsx)(`circle`,{cx:`12`,cy:`7`,r:`4`})]}),b=({size:e=`md`,src:t,alt:n=``,initials:r,icon:i,className:a})=>{let o=[_.avatar,_[`avatar--${e}`],a??``].filter(Boolean).join(` `);if(t)return(0,l.jsx)(`span`,{className:[o,_[`avatar--bordered`]].join(` `),children:(0,l.jsx)(`img`,{src:t,alt:n,className:_.avatar__image})});if(r)return(0,l.jsx)(`span`,{className:o,role:`img`,"aria-label":n||r,children:(0,l.jsx)(`span`,{className:_.avatar__initials,children:r.slice(0,2).toUpperCase()})});let s=v[e],u=c.default.isValidElement(i)?c.default.cloneElement(i,{size:s,strokeWidth:p(s)}):i??(0,l.jsx)(y,{px:s});return(0,l.jsx)(`span`,{className:o,role:`img`,"aria-label":n||`avatar`,children:(0,l.jsx)(`span`,{className:_.avatar__icon,children:u})})},x={feed:`_feed_1pvgl_1`,"feed--compact":`_feed--compact_1pvgl_8`,"row--default":`_row--default_1pvgl_13`,rail:`_rail_1pvgl_19`,dot:`_dot_1pvgl_26`,connector:`_connector_1pvgl_42`,content:`_content_1pvgl_49`,"content--spaced":`_content--spaced_1pvgl_56`,"row--compact":`_row--compact_1pvgl_61`,compactLeft:`_compactLeft_1pvgl_68`,text:`_text_1pvgl_74`,actor:`_actor_1pvgl_88`,highlight:`_highlight_1pvgl_89`,timestamp:`_timestamp_1pvgl_92`},S=({children:e})=>(0,l.jsx)(`span`,{className:x.highlight,children:e}),C=16,w=e=>c.default.isValidElement(e)?c.default.cloneElement(e,{size:C,strokeWidth:p(C)}):e,T=({items:e,variant:t=`default`,className:n})=>{let r=t===`compact`;return(0,l.jsx)(`div`,{className:[x.feed,r?x[`feed--compact`]:``,n??``].filter(Boolean).join(` `),children:e.map((t,n)=>{let i=n===e.length-1,a=t.id??n;return r?(0,l.jsxs)(`div`,{className:x[`row--compact`],children:[(0,l.jsxs)(`div`,{className:x.compactLeft,children:[(0,l.jsx)(b,{size:`sm`,src:t.avatarSrc,alt:t.avatarAlt??t.actor}),(0,l.jsxs)(`p`,{className:x.text,children:[(0,l.jsx)(`span`,{className:x.actor,children:t.actor}),` `,t.description]})]}),(0,l.jsx)(`span`,{className:x.timestamp,children:t.timestamp})]},a):(0,l.jsxs)(`div`,{className:x[`row--default`],children:[(0,l.jsxs)(`div`,{className:x.rail,children:[(0,l.jsx)(`div`,{className:x.dot,children:w(t.icon)}),!i&&(0,l.jsx)(`div`,{className:x.connector})]}),(0,l.jsxs)(`div`,{className:[x.content,i?``:x[`content--spaced`]].filter(Boolean).join(` `),children:[(0,l.jsxs)(`p`,{className:x.text,children:[(0,l.jsx)(`span`,{className:x.actor,children:t.actor}),` `,t.description]}),(0,l.jsx)(`span`,{className:x.timestamp,children:t.timestamp})]})]},a)})})},E={link:`_link_1g7dc_3`,link__external:`_link__external_1g7dc_34`},D=c.default.forwardRef(({external:e,children:t,className:n,href:r,...i},a)=>(0,l.jsxs)(`a`,{ref:a,href:r,className:[E.link,n??``].filter(Boolean).join(` `),target:e?`_blank`:i.target,rel:e?`noopener noreferrer`:i.rel,...i,children:[t,e&&(0,l.jsx)(`span`,{className:E.link__external,"aria-label":`(opens in new tab)`,children:(0,l.jsxs)(`svg`,{width:12,height:12,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:p(12),strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,l.jsx)(`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`}),(0,l.jsx)(`polyline`,{points:`15 3 21 3 21 9`}),(0,l.jsx)(`line`,{x1:`10`,y1:`14`,x2:`21`,y2:`3`})]})})]}));D.displayName=`Link`;var O={button:`_button_1ls4o_2`,"button--sm":`_button--sm_1ls4o_18`,"button--md":`_button--md_1ls4o_19`,"button--lg":`_button--lg_1ls4o_20`,"button--primary":`_button--primary_1ls4o_23`,"button--secondary":`_button--secondary_1ls4o_30`,"button--outline":`_button--outline_1ls4o_35`,"button--ghost":`_button--ghost_1ls4o_40`,"button--destructive":`_button--destructive_1ls4o_45`},k={sm:16,md:18,lg:20},A=c.default.forwardRef(({icon:e,variant:t=`primary`,size:n=`md`,disabled:r,className:i,...a},o)=>(0,l.jsx)(`button`,{ref:o,disabled:r,className:[O.button,O[`button--${t}`],O[`button--${n}`],i??``].filter(Boolean).join(` `),...a,children:(0,l.jsx)(e,{size:k[n],strokeWidth:p(k[n]),"aria-hidden":`true`})}));A.displayName=`IconButton`;var j={announcement:`_announcement_1ba3c_1`,"announcement--neutral":`_announcement--neutral_1ba3c_13`,"announcement--urgent":`_announcement--urgent_1ba3c_16`,content:`_content_1ba3c_20`,icon:`_icon_1ba3c_28`,icon__neutral:`_icon__neutral_1ba3c_32`,message:`_message_1ba3c_36`,link:`_link_1ba3c_52`},ee=({message:e,linkLabel:t,linkHref:n,onLinkClick:r,onDismiss:i,variant:a=`neutral`,className:o})=>{let s=a===`urgent`;return(0,l.jsxs)(`div`,{className:[j.announcement,j[`announcement--${a}`],o??``].filter(Boolean).join(` `),children:[(0,l.jsxs)(`div`,{className:j.content,children:[(0,l.jsx)(`span`,{className:j.icon,"aria-hidden":`true`,children:s?(0,l.jsx)(u.TriangleAlert,{size:24,strokeWidth:1.5,style:{fill:`var(--color-info-solid)`,stroke:`var(--color-info-bg)`}}):(0,l.jsx)(u.Sparkles,{size:24,strokeWidth:1.5,fill:`currentColor`,stroke:`currentColor`,className:j.icon__neutral})}),(0,l.jsx)(`p`,{className:j.message,children:e}),!s&&t&&(0,l.jsx)(D,{href:n,onClick:r,className:j.link,style:{color:`var(--color-brand-fg)`,fontSize:16,lineHeight:`24px`},children:t})]}),i&&(0,l.jsx)(A,{icon:u.X,size:`sm`,variant:`ghost`,"aria-label":`Dismiss`,onClick:i})]})},M={button:`_button_17bv9_21`,"button--primary":`_button--primary_17bv9_72`,"button--secondary":`_button--secondary_17bv9_99`,"button--outline":`_button--outline_17bv9_122`,"button--ghost":`_button--ghost_17bv9_144`,"button--destructive":`_button--destructive_17bv9_165`,"button--sm":`_button--sm_17bv9_189`,"button--md":`_button--md_17bv9_199`,"button--lg":`_button--lg_17bv9_209`,"button--hasLeftIcon":`_button--hasLeftIcon_17bv9_220`,"button--hasRightIcon":`_button--hasRightIcon_17bv9_221`,button__icon:`_button__icon_17bv9_234`,button__label:`_button__label_17bv9_241`,"button--loading":`_button--loading_17bv9_251`,button__spinner:`_button__spinner_17bv9_255`,"sakani-btn-spin":`_sakani-btn-spin_17bv9_1`},N=c.default.forwardRef(({variant:e=`primary`,size:t=`md`,leftIcon:n,rightIcon:r,loading:i=!1,disabled:a,children:o,className:s,...c},u)=>{let d=a||i;return(0,l.jsxs)(`button`,{ref:u,className:[M.button,M[`button--${e}`],M[`button--${t}`],i?M[`button--loading`]:``,n&&!i?M[`button--hasLeftIcon`]:``,r&&!i?M[`button--hasRightIcon`]:``,s??``].filter(Boolean).join(` `),disabled:d,"aria-busy":i,...c,children:[i&&(0,l.jsx)(`span`,{className:[M.button__icon,M.button__spinner].join(` `),"aria-hidden":`true`,children:(0,l.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2.5,strokeLinecap:`round`,children:(0,l.jsx)(`path`,{d:`M12 3a9 9 0 1 1-6.36 2.64`})})}),n&&!i&&(0,l.jsx)(`span`,{className:M.button__icon,"aria-hidden":`true`,children:n}),(0,l.jsx)(`span`,{className:M.button__label,children:o}),r&&!i&&(0,l.jsx)(`span`,{className:M.button__icon,"aria-hidden":`true`,children:r})]})});N.displayName=`Button`;var P={wrap:`_wrap_3mj75_1`,"wrap--vertical":`_wrap--vertical_3mj75_7`,"wrap--horizontal":`_wrap--horizontal_3mj75_11`,circleWrap:`_circleWrap_3mj75_21`,bigAvatar:`_bigAvatar_3mj75_26`,badge:`_badge_3mj75_31`,horizontalContent:`_horizontalContent_3mj75_53`,textStack:`_textStack_3mj75_60`,"textStack--center":`_textStack--center_3mj75_66`,title:`_title_3mj75_71`,hint:`_hint_3mj75_79`,link:`_link_3mj75_88`,input:`_input_3mj75_92`},te=({src:e,alt:t,orientation:n=`vertical`,accept:r=`image/jpeg,image/png`,title:i=`Upload a photo`,hint:a=`JPG or PNG, max 5MB.`,onFileSelect:o,onRemove:s,className:d})=>{let f=c.default.useRef(null),m=e!==void 0,[h,g]=c.default.useState(void 0),_=m?e:h,v=n===`horizontal`,y=!!_,x=()=>f.current?.click(),S=()=>{s?.(),m||g(void 0)},C=(0,l.jsxs)(`div`,{className:[P.textStack,v?``:P[`textStack--center`]].filter(Boolean).join(` `),children:[(0,l.jsx)(`p`,{className:P.title,children:i}),(0,l.jsx)(`p`,{className:P.hint,children:a})]});return(0,l.jsxs)(`div`,{className:[P.wrap,P[`wrap--${n}`],d??``].filter(Boolean).join(` `),children:[(0,l.jsxs)(`div`,{className:P.circleWrap,children:[(0,l.jsx)(b,{size:v?`lg`:`xl`,src:_,alt:t,className:v?void 0:P.bigAvatar}),!v&&(0,l.jsx)(`button`,{type:`button`,className:P.badge,onClick:x,"aria-label":`Change photo`,children:(0,l.jsx)(u.Camera,{size:16,strokeWidth:p(16)})})]}),v&&(0,l.jsxs)(`div`,{className:P.horizontalContent,children:[C,y?(0,l.jsx)(N,{variant:`outline`,size:`sm`,onClick:S,style:{color:`var(--color-danger-fg)`,borderColor:`var(--color-danger-border)`},children:`Remove`}):(0,l.jsx)(N,{variant:`outline`,size:`sm`,onClick:x,children:`Upload`})]}),!v&&(y?(0,l.jsx)(D,{href:`#`,onClick:e=>{e.preventDefault(),x()},className:P.link,style:{color:`var(--color-brand-fg)`,fontSize:16,lineHeight:`24px`},children:`Change photo`}):C),(0,l.jsx)(`input`,{ref:f,type:`file`,accept:r,className:P.input,onChange:e=>{let t=e.target.files?.[0];t&&(o?.(t),m||g(URL.createObjectURL(t))),e.target.value=``}})]})};function ne(){let[e,t]=(0,c.useState)(0);return(0,c.useEffect)(()=>{if(typeof document>`u`)return;let e=new MutationObserver(()=>t(e=>e+1));return e.observe(document.documentElement,{attributes:!0,attributeFilter:[`class`]}),()=>e.disconnect()},[]),e}var F={balance:`_balance_kaxp5_1`,"balance--progress":`_balance--progress_kaxp5_8`,content:`_content_kaxp5_17`,labelRow:`_labelRow_kaxp5_33`,label:`_label_kaxp5_33`,hideToggle:`_hideToggle_kaxp5_50`,value:`_value_kaxp5_71`,"value--hidden":`_value--hidden_kaxp5_83`,"value--glitching":`_value--glitching_kaxp5_90`,"balance-glitch":`_balance-glitch_kaxp5_1`,changeRow:`_changeRow_kaxp5_101`,trendIcon__up:`_trendIcon__up_kaxp5_108`,trendIcon__down:`_trendIcon__down_kaxp5_109`,changeValue__up:`_changeValue__up_kaxp5_110`,changeValue__down:`_changeValue__down_kaxp5_117`,changeLabel:`_changeLabel_kaxp5_124`,ringCard:`_ringCard_kaxp5_132`},re=`ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789`,ie=8,ae=6,oe=90,se=e=>{let t=Math.min(e,ie);return Array.from({length:t},()=>re[Math.floor(Math.random()*36)]).join(``)},ce=e=>typeof window<`u`&&getComputedStyle(document.documentElement).getPropertyValue(e).trim()||void 0,le=({progress:e})=>{ne();let t=ce(`--color-chart-1`)??`#ff4700`,n=ce(`--color-bg-subtle`)??`#f5f4f2`,r=[{value:Math.max(0,Math.min(100,e))}];return(0,l.jsx)(`div`,{className:F.ringCard,children:(0,l.jsx)(d.ResponsiveContainer,{width:64,height:64,children:(0,l.jsxs)(d.RadialBarChart,{data:r,startAngle:90,endAngle:-270,innerRadius:`72%`,outerRadius:`100%`,barSize:10,children:[(0,l.jsx)(d.PolarAngleAxis,{type:`number`,domain:[0,100],tick:!1,axisLine:!1}),(0,l.jsx)(d.RadialBar,{dataKey:`value`,cornerRadius:5,fill:t,background:{fill:n},isAnimationActive:!1})]})})})},ue=({label:e=`Available balance`,value:t,change:n,progress:r,hidden:i,onToggleHidden:a,className:o})=>{let s=i!==void 0,[d,f]=c.default.useState(!1),m=s?i:d,h=r!==void 0,g=n?.direction??`up`,_=g===`up`?u.TrendingUp:u.TrendingDown,v=()=>{let e=!m;a?.(e),s||f(e)},[y,b]=c.default.useState(!1),[x,S]=c.default.useState(0),C=c.default.useRef(!1);c.default.useEffect(()=>{if(m&&!C.current){b(!0);let e=0,t=setInterval(()=>{e+=1,S(e=>e+1),e>=ae&&(clearInterval(t),b(!1))},oe);return C.current=!0,()=>clearInterval(t)}C.current=m},[m]);let w=c.default.useMemo(()=>se(t.length),[t,x]),T=c.default.useMemo(()=>n?se(n.value.length):``,[n?.value,x]),E=(0,l.jsxs)(`div`,{className:F.content,children:[(0,l.jsxs)(`div`,{className:F.labelRow,children:[(0,l.jsx)(`p`,{className:F.label,children:e}),(0,l.jsx)(`button`,{type:`button`,className:F.hideToggle,"aria-label":m?`Show balance`:`Hide balance`,onClick:v,children:m?(0,l.jsx)(u.EyeOff,{size:16,strokeWidth:p(16)}):(0,l.jsx)(u.Eye,{size:16,strokeWidth:p(16)})})]}),(0,l.jsx)(`p`,{className:[F.value,m?F[`value--hidden`]:``,y?F[`value--glitching`]:``].filter(Boolean).join(` `),children:m?w:t}),n&&(0,l.jsxs)(`div`,{className:F.changeRow,children:[(0,l.jsx)(_,{size:24,strokeWidth:1.5,className:g===`up`?F.trendIcon__up:F.trendIcon__down}),(0,l.jsx)(`span`,{className:[g===`up`?F.changeValue__up:F.changeValue__down,y?F[`value--glitching`]:``].filter(Boolean).join(` `),children:m?T:n.value}),(0,l.jsx)(`span`,{className:F.changeLabel,children:n.label??`this month`})]})]});return(0,l.jsxs)(`div`,{className:[F.balance,h?F[`balance--progress`]:``,o??``].filter(Boolean).join(` `),children:[h&&(0,l.jsx)(le,{progress:r}),E]})},de={snippet:`_snippet_1ao90_1`,header:`_header_1ao90_12`,filename:`_filename_1ao90_19`,body:`_body_1ao90_31`,tokenKeyword:`_tokenKeyword_1ao90_42`,tokenString:`_tokenString_1ao90_43`,editableBody:`_editableBody_1ao90_50`,textarea:`_textarea_1ao90_55`},fe=[`import`,`export`,`from`,`default`,`function`,`return`,`const`,`let`,`var`,`if`,`else`,`for`,`while`,`class`,`extends`,`new`,`async`,`await`,`as`,`of`,`in`],pe=RegExp(`('(?:[^'\\\\]|\\\\.)*'|"(?:[^"\\\\]|\\\\.)*"|\`(?:[^\`\\\\]|\\\\.)*\`|\\b(?:${fe.join(`|`)})\\b)`,`g`),me=e=>e.split(pe).map((e,t)=>{if(!e)return null;let n=/^['"`]/.test(e),r=!n&&fe.includes(e);return n?(0,l.jsx)(`span`,{className:de.tokenString,children:e},t):r?(0,l.jsx)(`span`,{className:de.tokenKeyword,children:e},t):(0,l.jsx)(c.default.Fragment,{children:e},t)}),he=({code:e,filename:t,onCopy:n,editable:r=!1,onChange:i,placeholder:a,className:o})=>{let[s,d]=c.default.useState(!1),[f,p]=c.default.useState(e);c.default.useEffect(()=>p(e),[e]);let m=()=>{navigator.clipboard?.writeText(f),n?.(f),d(!0),window.setTimeout(()=>d(!1),1500)},h=e=>{p(e),i?.(e)},g=r?(0,l.jsxs)(`div`,{className:de.editableBody,children:[(0,l.jsx)(`pre`,{className:de.body,"aria-hidden":`true`,children:me(f)}),(0,l.jsx)(`textarea`,{className:de.textarea,value:f,placeholder:a,spellCheck:!1,onChange:e=>h(e.target.value),onKeyDown:e=>{if(e.key!==`Tab`)return;e.preventDefault();let t=e.currentTarget,{selectionStart:n,selectionEnd:r}=t,i=`${f.slice(0,n)} ${f.slice(r)}`;h(i),requestAnimationFrame(()=>{t.selectionStart=t.selectionEnd=n+2})}})]}):(0,l.jsx)(`pre`,{className:de.body,children:me(f)});return t?(0,l.jsxs)(`div`,{className:[de.snippet,o??``].filter(Boolean).join(` `),children:[(0,l.jsxs)(`div`,{className:de.header,children:[(0,l.jsx)(`p`,{className:de.filename,children:t}),(0,l.jsx)(A,{icon:s?u.Check:u.Copy,variant:`ghost`,size:`sm`,"aria-label":s?`Copied`:`Copy code`,onClick:m})]}),g]}):(0,l.jsx)(`div`,{className:[de.snippet,o??``].filter(Boolean).join(` `),children:g})},ge={progress:`_progress_1qaz4_11`,"progress--sm":`_progress--sm_1qaz4_20`,"progress--md":`_progress--md_1qaz4_21`,"progress--lg":`_progress--lg_1qaz4_22`,progress__fill:`_progress__fill_1qaz4_25`,"progress__fill--indeterminate":`_progress__fill--indeterminate_1qaz4_33`,"progress-scan":`_progress-scan_1qaz4_1`},_e=({value:e,size:t=`md`,label:n=`Progress`,className:r})=>{let i=e===void 0,a=Math.min(100,Math.max(0,e??0));return(0,l.jsx)(`div`,{role:`progressbar`,"aria-label":n,"aria-valuenow":i?void 0:a,"aria-valuemin":0,"aria-valuemax":100,className:[ge.progress,ge[`progress--${t}`],r??``].filter(Boolean).join(` `),children:(0,l.jsx)(`div`,{className:[ge.progress__fill,i?ge[`progress__fill--indeterminate`]:``].filter(Boolean).join(` `),style:i?void 0:{width:`${a}%`}})})},ve={expenses:`_expenses_1imiq_1`,row:`_row_1imiq_10`,top:`_top_1imiq_18`,left:`_left_1imiq_26`,icon:`_icon_1imiq_32`,label:`_label_1imiq_44`,amount:`_amount_1imiq_55`},ye=e=>e.toLocaleString(`en-US`,{style:`currency`,currency:`USD`}),be=({categories:e,variant:t=`default`,formatAmount:n=ye,className:r})=>{let i=t===`compact`,a=Math.max(1,...e.map(e=>e.amount));return(0,l.jsx)(`div`,{className:[ve.expenses,r??``].filter(Boolean).join(` `),children:e.map((e,t)=>(0,l.jsxs)(`div`,{className:ve.row,children:[(0,l.jsxs)(`div`,{className:ve.top,children:[(0,l.jsxs)(`div`,{className:ve.left,children:[(0,l.jsx)(`span`,{className:ve.icon,"aria-hidden":`true`,children:e.icon}),(0,l.jsx)(`p`,{className:ve.label,children:e.label})]}),(0,l.jsx)(`p`,{className:ve.amount,children:n(e.amount)})]}),!i&&(0,l.jsx)(_e,{value:e.amount/a*100,size:`lg`,label:`${e.label} spending`})]},e.id??t))})},xe={hint:`_hint_49nyi_1`,bar:`_bar_49nyi_9`,"hint--neutral":`_hint--neutral_49nyi_15`,"hint--warning":`_hint--warning_49nyi_16`,icon:`_icon_49nyi_18`,message:`_message_49nyi_24`},Se=14,Ce=({message:e,variant:t=`neutral`,className:n})=>{let r=t===`warning`?u.TriangleAlert:u.Info;return(0,l.jsxs)(`div`,{className:[xe.hint,xe[`hint--${t}`],n??``].filter(Boolean).join(` `),children:[(0,l.jsx)(`span`,{className:xe.bar,"aria-hidden":`true`}),(0,l.jsx)(r,{size:Se,strokeWidth:p(Se),className:xe.icon}),(0,l.jsx)(`p`,{className:xe.message,children:e})]})},we={"divider--horizontal":`_divider--horizontal_nem37_4`,"divider--labeled":`_divider--labeled_nem37_13`,"divider--vertical":`_divider--vertical_nem37_27`,divider__label:`_divider__label_nem37_38`},Te=({orientation:e=`horizontal`,label:t,className:n})=>(0,l.jsx)(`div`,{role:`separator`,"aria-orientation":e,className:[we.divider,we[`divider--${e}`],t?we[`divider--labeled`]:``,n??``].filter(Boolean).join(` `),children:t&&e===`horizontal`&&(0,l.jsx)(`span`,{className:we.divider__label,children:t})}),Ee={backdrop:`_backdrop_7uc99_1`,card:`_card_7uc99_12`,header:`_header_7uc99_32`,titleGroup:`_titleGroup_7uc99_40`,iconWrap:`_iconWrap_7uc99_47`,icon:`_icon_7uc99_47`,title:`_title_7uc99_40`,description:`_description_7uc99_73`,footer:`_footer_7uc99_81`,"footer--between":`_footer--between_7uc99_92`},De=({open:e,onClose:t,title:n,description:r,variant:i=`default`,icon:a,cancelLabel:o=`Cancel`,confirmLabel:s,onCancel:d,onConfirm:m,confirmLoading:h,closeOnEscape:g=!0,closeOnBackdropClick:_=!0,children:v,hideHeader:y=!1,hideFooterDivider:b=!1,footerJustify:x=`end`,className:S})=>{let C=i===`destructive`,w=c.default.useRef(null),T=c.default.useRef(null),E=c.default.useRef(null),[D,O]=c.default.useState(!1);return c.default.useEffect(()=>{e&&O(!!E.current?.closest(`.dark`))},[e]),c.default.useEffect(()=>{if(!e)return;let n=e=>{if(g&&e.key===`Escape`){t();return}if(e.key!==`Tab`||!w.current)return;let n=w.current.querySelectorAll(`button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])`);if(n.length===0)return;let r=n[0],i=n[n.length-1];e.shiftKey&&document.activeElement===r?(e.preventDefault(),i.focus()):!e.shiftKey&&document.activeElement===i&&(e.preventDefault(),r.focus())};return document.addEventListener(`keydown`,n),()=>document.removeEventListener(`keydown`,n)},[e,g,t]),c.default.useEffect(()=>{if(!e)return;T.current=document.activeElement;let t=document.body.style.overflow;return document.body.style.overflow=`hidden`,w.current?.focus(),()=>{document.body.style.overflow=t,T.current?.focus()}},[e]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`span`,{ref:E,style:{display:`none`},"aria-hidden":`true`}),e&&(0,f.createPortal)((0,l.jsx)(`div`,{className:[Ee.backdrop,D?`dark`:``].filter(Boolean).join(` `),onMouseDown:e=>{_&&e.target===e.currentTarget&&t()},children:(0,l.jsxs)(`div`,{ref:w,role:`alertdialog`,"aria-modal":`true`,"aria-labelledby":y?void 0:`modal-title`,"aria-label":y?n:void 0,tabIndex:-1,className:[Ee.card,S??``].filter(Boolean).join(` `),children:[!y&&(0,l.jsxs)(`div`,{className:Ee.header,children:[(0,l.jsxs)(`div`,{className:Ee.titleGroup,children:[C&&(0,l.jsx)(`span`,{className:Ee.iconWrap,"aria-hidden":`true`,children:a??(0,l.jsx)(u.TriangleAlert,{size:24,strokeWidth:p(24),className:Ee.icon})}),(0,l.jsx)(`p`,{id:`modal-title`,className:Ee.title,children:n})]}),(0,l.jsx)(A,{icon:u.X,variant:`ghost`,size:`lg`,"aria-label":`Close`,onClick:t})]}),r&&(0,l.jsx)(`p`,{className:Ee.description,children:r}),v,!b&&(0,l.jsx)(Te,{}),(0,l.jsxs)(`div`,{className:[Ee.footer,x===`between`?Ee[`footer--between`]:``].filter(Boolean).join(` `),children:[(0,l.jsx)(N,{variant:`secondary`,onClick:()=>(d??t)(),style:{borderColor:`transparent`},children:o}),(0,l.jsx)(N,{variant:C?`destructive`:`primary`,onClick:m,loading:h,children:s??(C?`Delete`:`Confirm`)})]})]})}),document.body)]})},I={row:`_row_88l3n_2`,"row--unread":`_row--unread_88l3n_12`,iconWrapSurface:`_iconWrapSurface_88l3n_17`,iconWrapCanvas:`_iconWrapCanvas_88l3n_18`,content:`_content_88l3n_31`,titleBold:`_titleBold_88l3n_39`,titleMuted:`_titleMuted_88l3n_46`,timestamp:`_timestamp_88l3n_53`,dot:`_dot_88l3n_62`,card:`_card_88l3n_71`,cardTop:`_cardTop_88l3n_87`,description:`_description_88l3n_94`,actions:`_actions_88l3n_102`},Oe=({icon:e,title:t,timestamp:n,read:r=!1,description:i,onDismiss:a,dismissLabel:o=`Dismiss`,actionLabel:s,onAction:c,className:d})=>{let f=i!==void 0,m=!r&&!f,h=e??(0,l.jsx)(u.Bell,{size:24,strokeWidth:p(24)});return f?(0,l.jsxs)(`div`,{className:[I.card,d??``].filter(Boolean).join(` `),children:[(0,l.jsxs)(`div`,{className:I.cardTop,children:[(0,l.jsx)(`span`,{className:I.iconWrapCanvas,"aria-hidden":`true`,children:h}),(0,l.jsxs)(`div`,{className:I.content,children:[(0,l.jsx)(`p`,{className:I.titleBold,children:t}),(0,l.jsx)(`p`,{className:I.description,children:i})]}),a&&(0,l.jsx)(A,{icon:u.X,variant:`ghost`,size:`sm`,"aria-label":`Close`,onClick:a})]}),(0,l.jsxs)(`div`,{className:I.actions,children:[a&&(0,l.jsx)(N,{variant:`ghost`,size:`sm`,onClick:a,children:o}),s&&(0,l.jsx)(N,{variant:`secondary`,size:`sm`,onClick:c,style:{borderColor:`transparent`},children:s})]})]}):(0,l.jsxs)(`div`,{className:[I.row,m?I[`row--unread`]:``].filter(Boolean).join(` `),children:[(0,l.jsx)(`span`,{className:I.iconWrapSurface,"aria-hidden":`true`,children:h}),(0,l.jsxs)(`div`,{className:I.content,children:[(0,l.jsx)(`p`,{className:m?I.titleBold:I.titleMuted,children:t}),n&&(0,l.jsx)(`p`,{className:I.timestamp,children:n})]}),m&&(0,l.jsx)(`span`,{className:I.dot,"aria-hidden":`true`})]})},L={item:`_item_mg6gs_1`,"item--horizontal":`_item--horizontal_mg6gs_6`,"item--vertical":`_item--vertical_mg6gs_11`,value:`_value_mg6gs_16`,topRow:`_topRow_mg6gs_31`,connectorHorizontal:`_connectorHorizontal_mg6gs_36`,rail:`_rail_mg6gs_44`,connectorVertical:`_connectorVertical_mg6gs_51`,text:`_text_mg6gs_59`,title:`_title_mg6gs_65`,description:`_description_mg6gs_73`},ke=({step:e,title:t,description:n,completed:r=!1,orientation:i=`horizontal`,isLast:a=!1,className:o})=>{let s=i===`vertical`,c=(0,l.jsx)(`span`,{className:L.value,"aria-hidden":`true`,children:r?(0,l.jsx)(u.Check,{size:14,strokeWidth:p(14)}):e}),d=(0,l.jsxs)(`div`,{className:L.text,children:[(0,l.jsx)(`p`,{className:L.title,children:t}),n&&(0,l.jsx)(`p`,{className:L.description,children:n})]});return s?(0,l.jsxs)(`div`,{className:[L.item,L[`item--vertical`],o??``].filter(Boolean).join(` `),children:[(0,l.jsxs)(`div`,{className:L.rail,children:[c,!a&&(0,l.jsx)(`div`,{className:L.connectorVertical})]}),d]}):(0,l.jsxs)(`div`,{className:[L.item,L[`item--horizontal`],o??``].filter(Boolean).join(` `),children:[(0,l.jsxs)(`div`,{className:L.topRow,children:[c,!a&&(0,l.jsx)(`div`,{className:L.connectorHorizontal})]}),d]})},Ae={stat:`_stat_krs8c_1`,labelRow:`_labelRow_krs8c_10`,label:`_label_krs8c_10`,value:`_value_krs8c_27`},je=({label:e,value:t,progress:n,className:r})=>(0,l.jsxs)(`div`,{className:[Ae.stat,r??``].filter(Boolean).join(` `),children:[(0,l.jsxs)(`div`,{className:Ae.labelRow,children:[(0,l.jsx)(`p`,{className:Ae.label,children:e}),(0,l.jsx)(`p`,{className:Ae.value,children:t})]}),(0,l.jsx)(_e,{value:n,size:`lg`,label:e})]}),Me={separator:`_separator_pcfo8_1`,line:`_line_pcfo8_9`,overline:`_overline_pcfo8_19`,badge:`_badge_pcfo8_31`,iconWrap:`_iconWrap_pcfo8_37`},Ne=({children:e,label:t,className:n})=>(0,l.jsxs)(`div`,{className:[Me.separator,n??``].filter(Boolean).join(` `),role:`separator`,children:[(0,l.jsx)(Te,{className:Me.line}),e??(t&&(0,l.jsx)(`span`,{className:Me.overline,children:t})),(0,l.jsx)(Te,{className:Me.line})]}),Pe={balance:`_balance_5gcu5_1`,label:`_label_5gcu5_10`,amountRow:`_amountRow_5gcu5_19`,amount:`_amount_5gcu5_19`,limit:`_limit_5gcu5_34`,track:`_track_5gcu5_43`,fill:`_fill_5gcu5_50`,"fill--over":`_fill--over_5gcu5_57`,footer:`_footer_5gcu5_61`},Fe=e=>e.toLocaleString(`en-US`,{style:`currency`,currency:`USD`}),Ie=({label:e=`Spent this month`,spent:t,limit:n,formatAmount:r=Fe,className:i})=>{let a=t>n,o=a?100:n>0?t/n*100:0,s=a?`${r(t-n)} over your limit`:`${r(n-t)} remaining`;return(0,l.jsxs)(`div`,{className:[Pe.balance,i??``].filter(Boolean).join(` `),children:[(0,l.jsx)(`p`,{className:Pe.label,children:e}),(0,l.jsxs)(`div`,{className:Pe.amountRow,children:[(0,l.jsx)(`p`,{className:Pe.amount,children:r(t)}),(0,l.jsxs)(`p`,{className:Pe.limit,children:[`of `,r(n),` limit`]})]}),(0,l.jsx)(`div`,{className:Pe.track,role:`progressbar`,"aria-label":e,"aria-valuenow":Math.round(o),"aria-valuemin":0,"aria-valuemax":100,children:(0,l.jsx)(`div`,{className:[Pe.fill,a?Pe[`fill--over`]:``].filter(Boolean).join(` `),style:{width:`${o}%`}})}),(0,l.jsx)(`p`,{className:Pe.footer,children:s})]})},Le={tooltip:`_tooltip_ic16u_3`,title:`_title_ic16u_23`,row:`_row_ic16u_27`,dot:`_dot_ic16u_34`,label:`_label_ic16u_41`,value:`_value_ic16u_42`},Re=({active:e,payload:t,label:n,formatter:r})=>!e||!t||t.length===0?null:(0,l.jsxs)(`div`,{className:Le.tooltip,children:[n!==void 0&&n!==``&&(0,l.jsx)(`span`,{className:Le.title,children:n}),t.map((e,t)=>(0,l.jsxs)(`div`,{className:Le.row,children:[(0,l.jsx)(`span`,{className:Le.dot,style:{background:e.color??e.payload?.fill??e.fill}}),(0,l.jsx)(`span`,{className:Le.label,children:e.name}),(0,l.jsx)(`span`,{className:Le.value,children:r?r(e.value,e.name):e.value})]},t))]}),ze={chart:`_chart_1s6lv_2`,legend:`_legend_1s6lv_31`,legendItem:`_legendItem_1s6lv_41`,legendSwatch:`_legendSwatch_1s6lv_46`},Be={sm:180,md:240,lg:320,xl:420},R=6,Ve=e=>typeof window<`u`&&getComputedStyle(document.documentElement).getPropertyValue(e).trim()||void 0,He=e=>{if(e<=0)return 1;let t=10**Math.floor(Math.log10(e)),n=e/t;return(n<=1?1:n<=2?2:n<=5?5:10)*t},Ue=({data:e,variant:t=`default`,size:n=`md`,seriesLabels:r=[`Value`,`Value 2`],className:i})=>{let[a,o]=c.default.useState(null),[s,u]=c.default.useState(null);ne();let f=Ve(`--color-chart-2`)??`#2e90fa`,p=Ve(`--color-chart-5`)??`#78716a`,m=Ve(`--color-chart-1`)??`#ff4700`,h=[1,2,3,4,5,6].map(e=>Ve(`--color-chart-${e}`)??`#ff4700`),g=Ve(`--color-border-subtle`)??`#e5e4e7`,_=Ve(`--color-fg-muted`)??`#6b6375`,v=t===`multiple`||t===`stacked`,y=v&&e.some(e=>e.value2!==void 0),b=Ve(`--color-bg-canvas`)??`#fafaf9`,x=He(Math.max(1,...e.map(e=>Math.abs(e.value)))),S=[-x,-x/2,0,x/2,x],C=(0,l.jsx)(d.Tooltip,{cursor:!1,content:(0,l.jsx)(Re,{}),wrapperStyle:{zIndex:50},position:s?{y:s.y}:void 0}),w=n=>t===`active`?h[n%h.length]:t===`negative`&&e[n].value<0?m:f,T=e=>a!==null&&e!==a?.45:1,E=(e,t,n,r,i,a)=>({x:e?t+r:t+r/2,y:e?n+i/2:a<0?n+i:n}),D=n=>r=>{let{x:i,y:a,width:o,height:s,fill:c,radius:u}=r,p=Number(e[r.index]?.[n]??0),{x:m,y:h}=E(t===`horizontal`,i,a,o,s,p);return t===`stacked`&&n===`value`?(0,l.jsx)(d.Rectangle,{x:i,y:a,width:o,height:s,fill:c,radius:u}):(0,l.jsxs)(`g`,{children:[(0,l.jsx)(d.Rectangle,{x:i,y:a,width:o,height:s,fill:c,radius:u}),(0,l.jsx)(`circle`,{cx:m,cy:h,r:4,fill:c,stroke:b,strokeWidth:1.5}),t===`stacked`&&n===`value2`&&(0,l.jsx)(`circle`,{cx:i+o/2,cy:a+s,r:4,fill:f,stroke:b,strokeWidth:1.5})]})},O=n=>(r,i)=>{o(i);let a=Number(e[i]?.[n]??0);u(E(t===`horizontal`,r.x,r.y,r.width,r.height,a))},k=()=>{o(null),u(null)};return(0,l.jsx)(`div`,{className:[ze.chart,i??``].filter(Boolean).join(` `),children:(0,l.jsx)(d.ResponsiveContainer,{width:`100%`,height:Be[n],children:(0,l.jsxs)(d.BarChart,{data:e,layout:t===`horizontal`?`vertical`:`horizontal`,margin:{top:8,right:8,bottom:8,left:t===`horizontal`?8:0},children:[(0,l.jsx)(d.CartesianGrid,{strokeDasharray:`3 3`,stroke:g,horizontal:!0,vertical:t===`horizontal`}),t===`horizontal`?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.XAxis,{type:`number`,stroke:_,fontSize:12,tickLine:!1,axisLine:!1}),(0,l.jsx)(d.YAxis,{type:`category`,dataKey:`label`,stroke:_,fontSize:12,tickLine:!1,axisLine:!1,width:64})]}):(0,l.jsx)(d.XAxis,{dataKey:`label`,stroke:_,fontSize:12,tickLine:!1,axisLine:!1,interval:0}),t===`negative`&&(0,l.jsx)(d.YAxis,{hide:!0,domain:[-x,x],ticks:S}),C,v&&(0,l.jsx)(d.Legend,{content:e=>(0,l.jsx)(`ul`,{className:ze.legend,children:e.payload?.map(e=>(0,l.jsxs)(`li`,{className:ze.legendItem,children:[(0,l.jsx)(`span`,{className:ze.legendSwatch,style:{background:e.color}}),(0,l.jsx)(`span`,{style:{color:e.color},children:e.value})]},e.value))})}),v?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.Bar,{dataKey:`value`,name:r[0]??`Value`,fill:f,stackId:t===`stacked`?`stack`:void 0,radius:t===`stacked`?[0,0,R,R]:[R,R,R,R],isAnimationActive:!1,activeBar:D(`value`),onMouseEnter:O(`value`),onMouseLeave:k,children:e.map((e,t)=>(0,l.jsx)(d.Cell,{fill:f,fillOpacity:a!==null&&t!==a?.45:1},t))}),y&&(0,l.jsx)(d.Bar,{dataKey:`value2`,name:r[1]??`Value 2`,fill:p,stackId:t===`stacked`?`stack`:void 0,radius:t===`stacked`?[R,R,0,0]:[R,R,R,R],isAnimationActive:!1,activeBar:D(`value2`),onMouseEnter:O(`value2`),onMouseLeave:k,children:e.map((e,t)=>(0,l.jsx)(d.Cell,{fill:p,fillOpacity:a!==null&&t!==a?.45:1},t))})]}):(0,l.jsx)(d.Bar,{dataKey:`value`,name:`Value`,fill:a===null?f:w(a),radius:[R,R,R,R],isAnimationActive:!1,activeBar:D(`value`),onMouseEnter:O(`value`),onMouseLeave:k,children:e.map((e,t)=>(0,l.jsx)(d.Cell,{fill:w(t),fillOpacity:T(t)},t))})]})})})},z={row:`_row_5wjem_2`,left:`_left_5wjem_16`,logo:`_logo_5wjem_23`,logoLg:`_logoLg_5wjem_29`,text:`_text_5wjem_36`,symbol:`_symbol_5wjem_42`,name:`_name_5wjem_50`,right:`_right_5wjem_59`,price:`_price_5wjem_65`,changeRow:`_changeRow_5wjem_73`,changeText:`_changeText_5wjem_78`,trendUp:`_trendUp_5wjem_84`,trendDown:`_trendDown_5wjem_85`,card:`_card_5wjem_88`,header:`_header_5wjem_102`,headerIcon:`_headerIcon_5wjem_109`,headerLabel:`_headerLabel_5wjem_110`,tickerRow:`_tickerRow_5wjem_117`,body:`_body_5wjem_125`,priceRow:`_priceRow_5wjem_132`,priceGroup:`_priceGroup_5wjem_139`,priceLg:`_priceLg_5wjem_144`,changeRowLg:`_changeRowLg_5wjem_153`,changeTextLg:`_changeTextLg_5wjem_158`,chart:`_chart_5wjem_165`},We=e=>Math.abs(e).toLocaleString(`en-US`,{style:`currency`,currency:`USD`}),Ge=({logo:e,symbol:t,name:n,price:r,change:i,formatAmount:a=We,chart:o,periodLabel:s=`Last 6 months`,onPeriodClick:c,className:d})=>{let f=i.amount>=0,m=f?u.TrendingUp:u.TrendingDown,h=f?`+`:`-`,g=`${h}${a(i.amount)} (${h}${Math.abs(i.percent)}%)`,_=f?z.trendUp:z.trendDown;return o?(0,l.jsxs)(`div`,{className:[z.card,d??``].filter(Boolean).join(` `),children:[(0,l.jsxs)(`div`,{className:z.header,children:[(0,l.jsx)(u.ChartColumn,{size:16,strokeWidth:p(16),className:z.headerIcon}),(0,l.jsx)(`span`,{className:z.headerLabel,children:`Stock market`})]}),(0,l.jsxs)(`div`,{className:z.tickerRow,children:[(0,l.jsx)(`span`,{className:z.logoLg,"aria-hidden":`true`,children:e}),(0,l.jsxs)(`div`,{className:z.text,children:[(0,l.jsx)(`p`,{className:z.symbol,children:t}),(0,l.jsx)(`p`,{className:z.name,children:n})]})]}),(0,l.jsxs)(`div`,{className:z.body,children:[(0,l.jsxs)(`div`,{className:z.priceRow,children:[(0,l.jsxs)(`div`,{className:z.priceGroup,children:[(0,l.jsx)(`p`,{className:z.priceLg,children:a(r)}),(0,l.jsxs)(`div`,{className:z.changeRowLg,children:[(0,l.jsx)(m,{size:24,strokeWidth:p(24),className:_}),(0,l.jsx)(`span`,{className:[z.changeTextLg,_].join(` `),children:g})]})]}),(0,l.jsx)(N,{variant:`outline`,size:`sm`,rightIcon:(0,l.jsx)(u.ChevronDown,{size:16,strokeWidth:p(16)}),onClick:c,children:s})]}),(0,l.jsx)(Ue,{data:o,className:z.chart})]})]}):(0,l.jsxs)(`div`,{className:[z.row,d??``].filter(Boolean).join(` `),children:[(0,l.jsxs)(`div`,{className:z.left,children:[(0,l.jsx)(`span`,{className:z.logo,"aria-hidden":`true`,children:e}),(0,l.jsxs)(`div`,{className:z.text,children:[(0,l.jsx)(`p`,{className:z.symbol,children:t}),(0,l.jsx)(`p`,{className:z.name,children:n})]})]}),(0,l.jsxs)(`div`,{className:z.right,children:[(0,l.jsx)(`p`,{className:z.price,children:a(r)}),(0,l.jsxs)(`div`,{className:z.changeRow,children:[(0,l.jsx)(m,{size:20,strokeWidth:p(20),className:_}),(0,l.jsx)(`span`,{className:[z.changeText,_].join(` `),children:g})]})]})]})},Ke={badge:`_badge_a5a38_6`,"badge--neutral-subtle":`_badge--neutral-subtle_a5a38_20`,"badge--neutral-solid":`_badge--neutral-solid_a5a38_21`,"badge--accent-subtle":`_badge--accent-subtle_a5a38_24`,"badge--accent-solid":`_badge--accent-solid_a5a38_25`,"badge--success-subtle":`_badge--success-subtle_a5a38_28`,"badge--success-solid":`_badge--success-solid_a5a38_29`,"badge--warning-subtle":`_badge--warning-subtle_a5a38_32`,"badge--warning-solid":`_badge--warning-solid_a5a38_33`,"badge--danger-subtle":`_badge--danger-subtle_a5a38_36`,"badge--danger-solid":`_badge--danger-solid_a5a38_37`,"badge--info-subtle":`_badge--info-subtle_a5a38_40`,"badge--info-solid":`_badge--info-solid_a5a38_41`,badge__icon:`_badge__icon_a5a38_44`,badge__label:`_badge__label_a5a38_45`},qe=({variant:e=`neutral`,emphasis:t=`subtle`,leftIcon:n,rightIcon:r,children:i,className:a})=>(0,l.jsxs)(`span`,{className:[Ke.badge,Ke[`badge--${e}-${t}`],a??``].filter(Boolean).join(` `),children:[n&&(0,l.jsx)(`span`,{className:Ke.badge__icon,"aria-hidden":`true`,children:n}),(0,l.jsx)(`span`,{className:Ke.badge__label,children:i}),r&&(0,l.jsx)(`span`,{className:Ke.badge__icon,"aria-hidden":`true`,children:r})]}),Je={tags:`_tags_acsad_1`,remove:`_remove_acsad_8`},Ye=({tags:e,onRemove:t,className:n})=>(0,l.jsx)(`div`,{className:[Je.tags,n??``].filter(Boolean).join(` `),children:e.map((e,n)=>(0,l.jsx)(qe,{rightIcon:t&&(0,l.jsx)(`button`,{type:`button`,className:Je.remove,onClick:()=>t(e,n),"aria-label":`Remove ${e}`,children:(0,l.jsx)(u.X,{size:12,strokeWidth:p(12)})}),children:e},e))}),Xe={ticker:`_ticker_6xnxy_1`,track:`_track_6xnxy_9`,"ticker-scroll":`_ticker-scroll_6xnxy_1`,row:`_row_6xnxy_24`,item:`_item_6xnxy_33`,symbol:`_symbol_6xnxy_40`,change:`_change_6xnxy_49`,trendUp:`_trendUp_6xnxy_57`,trendDown:`_trendDown_6xnxy_58`,fadeLeft:`_fadeLeft_6xnxy_60`,fadeRight:`_fadeRight_6xnxy_61`},Ze=e=>`${e>=0?`+`:``}${e}%`,Qe=({items:e,formatChange:t,ariaHidden:n})=>(0,l.jsx)(`div`,{className:Xe.row,"aria-hidden":n,children:e.map((e,n)=>{let r=e.changePercent>=0,i=r?u.TrendingUp:u.TrendingDown,a=r?Xe.trendUp:Xe.trendDown;return(0,l.jsxs)(`div`,{className:Xe.item,children:[(0,l.jsx)(`span`,{className:Xe.symbol,children:e.symbol}),(0,l.jsx)(i,{size:14,strokeWidth:p(14),className:a}),(0,l.jsx)(`span`,{className:[Xe.change,a].join(` `),children:t(e.changePercent)})]},`${e.symbol}-${n}`)})}),$e=({items:e,speed:t=40,formatChange:n=Ze,className:r})=>{let i=c.default.useRef(null),[a,o]=c.default.useState(20);return c.default.useEffect(()=>{let e=i.current;if(!e)return;let n=e.firstElementChild;if(!n)return;let r=()=>{let e=n.scrollWidth;e>0&&o(e/t)};r();let a=new ResizeObserver(r);return a.observe(n),()=>a.disconnect()},[e,t]),(0,l.jsxs)(`div`,{className:[Xe.ticker,r??``].filter(Boolean).join(` `),children:[(0,l.jsxs)(`div`,{ref:i,className:Xe.track,style:{"--ticker-duration":`${a}s`},children:[(0,l.jsx)(Qe,{items:e,formatChange:n}),(0,l.jsx)(Qe,{items:e,formatChange:n,ariaHidden:!0})]}),(0,l.jsx)(`div`,{className:Xe.fadeLeft,"aria-hidden":`true`}),(0,l.jsx)(`div`,{className:Xe.fadeRight,"aria-hidden":`true`})]})},B={list:`_list_ovxee_1`,row:`_row_ovxee_9`,rowLast:`_rowLast_ovxee_18`,left:`_left_ovxee_22`,iconWrap:`_iconWrap_ovxee_29`,info:`_info_ovxee_41`,name:`_name_ovxee_46`,category:`_category_ovxee_54`,amount:`_amount_ovxee_63`,amountUp:`_amountUp_ovxee_71`,amountDown:`_amountDown_ovxee_72`,empty:`_empty_ovxee_75`,emptyIcon:`_emptyIcon_ovxee_86`,emptyTitle:`_emptyTitle_ovxee_89`,emptyDesc:`_emptyDesc_ovxee_96`},et=e=>`${e>=0?`+`:`-`}${Math.abs(e).toLocaleString(`en-US`,{style:`currency`,currency:`USD`})}`,tt=({transactions:e,formatAmount:t=et,emptyTitle:n=`No transactions yet`,emptyDescription:r=`Your activity will show up here.`,className:i})=>e.length===0?(0,l.jsxs)(`div`,{className:[B.empty,i??``].filter(Boolean).join(` `),children:[(0,l.jsx)(u.Receipt,{size:24,strokeWidth:p(24),className:B.emptyIcon}),(0,l.jsx)(`p`,{className:B.emptyTitle,children:n}),(0,l.jsx)(`p`,{className:B.emptyDesc,children:r})]}):(0,l.jsx)(`div`,{className:[B.list,i??``].filter(Boolean).join(` `),children:e.map((n,r)=>{let i=n.amount>=0;return(0,l.jsxs)(`div`,{className:[B.row,r===e.length-1?B.rowLast:``].filter(Boolean).join(` `),children:[(0,l.jsxs)(`div`,{className:B.left,children:[(0,l.jsx)(`span`,{className:B.iconWrap,"aria-hidden":`true`,children:n.icon}),(0,l.jsxs)(`div`,{className:B.info,children:[(0,l.jsx)(`p`,{className:B.name,children:n.name}),(0,l.jsx)(`p`,{className:B.category,children:n.category})]})]}),(0,l.jsx)(`p`,{className:[B.amount,i?B.amountUp:B.amountDown].join(` `),children:t(n.amount)})]},n.id??`${n.name}-${r}`)})}),nt={alert:`_alert_1hjs5_3`,alert__icon:`_alert__icon_1hjs5_12`,alert__content:`_alert__content_1hjs5_13`,alert__title:`_alert__title_1hjs5_14`,alert__description:`_alert__description_1hjs5_15`,"alert--info":`_alert--info_1hjs5_18`,"alert--success":`_alert--success_1hjs5_21`,"alert--warning":`_alert--warning_1hjs5_24`,"alert--danger":`_alert--danger_1hjs5_27`,"alert--neutral":`_alert--neutral_1hjs5_30`},rt={info:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,l.jsx)(`line`,{x1:`12`,y1:`16`,x2:`12`,y2:`12`}),(0,l.jsx)(`line`,{x1:`12`,y1:`8`,x2:`12.01`,y2:`8`})]}),success:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`path`,{d:`M22 11.08V12a10 10 0 1 1-5.93-9.14`}),(0,l.jsx)(`polyline`,{points:`22 4 12 14.01 9 11.01`})]}),warning:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`path`,{d:`M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z`}),(0,l.jsx)(`line`,{x1:`12`,y1:`9`,x2:`12`,y2:`13`}),(0,l.jsx)(`line`,{x1:`12`,y1:`17`,x2:`12.01`,y2:`17`})]}),danger:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,l.jsx)(`line`,{x1:`15`,y1:`9`,x2:`9`,y2:`15`}),(0,l.jsx)(`line`,{x1:`9`,y1:`9`,x2:`15`,y2:`15`})]}),neutral:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,l.jsx)(`line`,{x1:`12`,y1:`16`,x2:`12`,y2:`12`}),(0,l.jsx)(`line`,{x1:`12`,y1:`8`,x2:`12.01`,y2:`8`})]})},it=({color:e=`info`,title:t,description:n,icon:r,className:i})=>(0,l.jsxs)(`div`,{role:`alert`,className:[nt.alert,nt[`alert--${e}`],i??``].filter(Boolean).join(` `),children:[(0,l.jsx)(`span`,{className:nt.alert__icon,"aria-hidden":`true`,children:(0,l.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:p(18),strokeLinecap:`round`,strokeLinejoin:`round`,width:18,height:18,children:r??rt[e]})}),(0,l.jsxs)(`div`,{className:nt.alert__content,children:[t&&(0,l.jsx)(`div`,{className:nt.alert__title,children:t}),n&&(0,l.jsx)(`div`,{className:nt.alert__description,children:n})]})]}),at={chart:`_chart_qqaox_2`},ot={sm:180,md:240,lg:320,xl:420},st=e=>typeof window<`u`&&getComputedStyle(document.documentElement).getPropertyValue(e).trim()||void 0,ct=({data:e,variant:t=`default`,seriesLabels:n=[`Value`,`Value 2`],size:r=`md`,height:i,className:a})=>{ne();let o=st(`--color-chart-5`)??`#dca84f`,s=st(`--color-chart-2`)??`#5b92dd`,c=st(`--color-border-subtle`)??`#e5e4e7`,u=st(`--color-fg-muted`)??`#6b6375`,f=e.some(e=>e.value2!==void 0),p=t===`step`?`step`:t===`linear`?`linear`:`monotone`,m=t===`stacked`?`stack`:void 0;return(0,l.jsx)(`div`,{className:[at.chart,a??``].filter(Boolean).join(` `),children:(0,l.jsx)(d.ResponsiveContainer,{width:`100%`,height:i??ot[r],children:(0,l.jsxs)(d.AreaChart,{data:e,margin:{top:8,right:8,bottom:8,left:0},children:[(0,l.jsxs)(`defs`,{children:[(0,l.jsxs)(`linearGradient`,{id:`sakani-area-1`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,l.jsx)(`stop`,{offset:`5%`,stopColor:o,stopOpacity:.35}),(0,l.jsx)(`stop`,{offset:`95%`,stopColor:o,stopOpacity:.02})]}),(0,l.jsxs)(`linearGradient`,{id:`sakani-area-2`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,l.jsx)(`stop`,{offset:`5%`,stopColor:s,stopOpacity:.35}),(0,l.jsx)(`stop`,{offset:`95%`,stopColor:s,stopOpacity:.02})]})]}),(0,l.jsx)(d.CartesianGrid,{strokeDasharray:`3 3`,stroke:c,vertical:!1}),(0,l.jsx)(d.XAxis,{dataKey:`label`,stroke:u,fontSize:12,tickLine:!1,axisLine:!1,interval:0}),(0,l.jsx)(d.Tooltip,{cursor:{stroke:st(`--color-border-default`)??`#d6d3ce`,strokeWidth:1},content:(0,l.jsx)(Re,{}),wrapperStyle:{zIndex:50}}),f&&(0,l.jsx)(d.Area,{type:p,dataKey:`value2`,name:n[1]??`Value 2`,stackId:m,stroke:s,strokeWidth:2,fill:`url(#sakani-area-2)`,dot:!1,activeDot:{r:4,fill:s,stroke:st(`--color-bg-canvas`),strokeWidth:1.5}}),(0,l.jsx)(d.Area,{type:p,dataKey:`value`,name:n[0]??`Value`,stackId:m,stroke:o,strokeWidth:2,fill:`url(#sakani-area-1)`,dot:!1,activeDot:{r:4,fill:o,stroke:st(`--color-bg-canvas`),strokeWidth:1.5}})]})})})},lt={group:`_group_mvlh4_3`,group__item:`_group__item_mvlh4_6`,"group--sm":`_group--sm_mvlh4_9`,"group--lg":`_group--lg_mvlh4_10`,"group--xl":`_group--xl_mvlh4_11`,overflow:`_overflow_mvlh4_14`,"overflow--sm":`_overflow--sm_mvlh4_25`,"overflow--md":`_overflow--md_mvlh4_26`,"overflow--lg":`_overflow--lg_mvlh4_27`,"overflow--xl":`_overflow--xl_mvlh4_28`},ut=({size:e=`md`,max:t=4,avatars:n,className:r})=>{let i=n.slice(0,t),a=n.length-i.length;return(0,l.jsxs)(`div`,{className:[lt.group,lt[`group--${e}`],r??``].filter(Boolean).join(` `),children:[i.map((t,n)=>(0,l.jsx)(`span`,{className:lt.group__item,children:(0,l.jsx)(b,{size:e,src:t.src,initials:t.initials,alt:t.alt})},n)),a>0&&(0,l.jsx)(`span`,{className:lt.group__item,children:(0,l.jsxs)(`span`,{className:[lt.overflow,lt[`overflow--${e}`]].join(` `),children:[`+`,a]})})]})},V={card:`_card_6iftf_2`,"card--hover":`_card--hover_6iftf_15`,"card--selected":`_card--selected_6iftf_16`,"card--dragging":`_card--dragging_6iftf_17`,"card--done":`_card--done_6iftf_18`,card__cover:`_card__cover_6iftf_20`,card__header:`_card__header_6iftf_26`,card__leading:`_card__leading_6iftf_27`,card__title:`_card__title_6iftf_28`,card__trailing:`_card__trailing_6iftf_37`,card__desc:`_card__desc_6iftf_38`,card__tags:`_card__tags_6iftf_45`,card__divider:`_card__divider_6iftf_46`,card__footer:`_card__footer_6iftf_47`,card__meta:`_card__meta_6iftf_48`,card__assignees:`_card__assignees_6iftf_49`},dt=({type:e=`default`,state:t=`default`,cover:n,leading:r,title:i,trailing:a,description:o,tags:s,meta:c,assignees:u,onClick:d,className:f})=>{let p=e!==`compact`,m=c||u;return(0,l.jsxs)(`div`,{onClick:d,"aria-selected":t===`selected`||void 0,className:[V.card,V[`card--${e}`],V[`card--${t}`],f??``].filter(Boolean).join(` `),children:[e===`cover`&&(0,l.jsx)(`div`,{className:V.card__cover,children:n}),(0,l.jsxs)(`div`,{className:V.card__header,children:[r&&(0,l.jsx)(`span`,{className:V.card__leading,children:r}),(0,l.jsx)(`span`,{className:V.card__title,children:i}),a&&(0,l.jsx)(`span`,{className:V.card__trailing,children:a})]}),p&&o&&(0,l.jsx)(`p`,{className:V.card__desc,children:o}),p&&s&&(0,l.jsx)(`div`,{className:V.card__tags,children:s}),m&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`div`,{className:V.card__divider}),(0,l.jsxs)(`div`,{className:V.card__footer,children:[c&&(0,l.jsx)(`div`,{className:V.card__meta,children:c}),u&&(0,l.jsx)(`div`,{className:V.card__assignees,children:u})]})]})]})},ft={col:`_col_1v24u_2`,col__header:`_col__header_1v24u_11`,col__dot:`_col__dot_1v24u_12`,col__title:`_col__title_1v24u_13`,col__count:`_col__count_1v24u_14`,col__spacer:`_col__spacer_1v24u_15`,col__action:`_col__action_1v24u_16`,col__body:`_col__body_1v24u_24`,col__drop:`_col__drop_1v24u_25`,col__add:`_col__add_1v24u_31`},pt=({state:e=`default`,title:t,count:n,dotColor:r=`var(--color-chart-1)`,children:i,onAdd:a,onMenu:o,className:s})=>(0,l.jsxs)(`div`,{className:[ft.col,s??``].filter(Boolean).join(` `),children:[(0,l.jsxs)(`div`,{className:ft.col__header,children:[(0,l.jsx)(`span`,{className:ft.col__dot,style:{background:r},"aria-hidden":`true`}),(0,l.jsx)(`span`,{className:ft.col__title,children:t}),n!=null&&(0,l.jsx)(`span`,{className:ft.col__count,children:n}),(0,l.jsx)(`span`,{className:ft.col__spacer}),(0,l.jsx)(`button`,{type:`button`,className:ft.col__action,onClick:a,"aria-label":`Add task`,children:(0,l.jsx)(u.Plus,{size:16,strokeWidth:p(16)})}),(0,l.jsx)(`button`,{type:`button`,className:ft.col__action,onClick:o,"aria-label":`Column options`,children:(0,l.jsx)(u.MoreHorizontal,{size:16,strokeWidth:p(16)})})]}),(0,l.jsx)(`div`,{className:ft.col__body,children:e===`empty`?(0,l.jsx)(`div`,{className:ft.col__drop,children:`Drop tasks here`}):i}),(0,l.jsxs)(`button`,{type:`button`,className:ft.col__add,onClick:a,children:[(0,l.jsx)(u.Plus,{size:16,strokeWidth:p(16),"aria-hidden":`true`}),`Add task`]})]}),mt={breadcrumb:`_breadcrumb_1uzuh_3`,list:`_list_1uzuh_5`,item:`_item_1uzuh_15`,crumb:`_crumb_1uzuh_17`,current:`_current_1uzuh_26`,separator:`_separator_1uzuh_33`,"list--button":`_list--button_1uzuh_38`,chip:`_chip_1uzuh_41`},ht=({size:e})=>(0,l.jsx)(`span`,{className:mt.separator,"aria-hidden":`true`,children:(0,l.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:p(e),strokeLinecap:`round`,strokeLinejoin:`round`,width:e,height:e,children:(0,l.jsx)(`path`,{d:`m9 18 6-6-6-6`})})}),gt=({items:e,variant:t=`text`,className:n})=>{let r=t===`button`;return(0,l.jsx)(`nav`,{"aria-label":`Breadcrumb`,className:[mt.breadcrumb,n??``].filter(Boolean).join(` `),children:(0,l.jsx)(`ol`,{className:[mt.list,r?mt[`list--button`]:``].filter(Boolean).join(` `),children:e.map((t,n)=>{let i=n===e.length-1,a=r?mt.chip:i?mt.current:mt.crumb;return(0,l.jsxs)(`li`,{className:mt.item,children:[i||!t.href?(0,l.jsx)(`span`,{className:a,"aria-current":i?`page`:void 0,children:t.label}):(0,l.jsx)(`a`,{href:t.href,className:a,children:t.label}),!i&&(0,l.jsx)(ht,{size:r?14:16})]},n)})})})},H={calendar:`_calendar_1y1kb_2`,header:`_header_1y1kb_14`,header__label:`_header__label_1y1kb_15`,navBtn:`_navBtn_1y1kb_16`,weekdays:`_weekdays_1y1kb_27`,weekday:`_weekday_1y1kb_27`,grid:`_grid_1y1kb_34`,day:`_day_1y1kb_35`,"day--default":`_day--default_1y1kb_43`,"day--hover":`_day--hover_1y1kb_44`,"day--selected":`_day--selected_1y1kb_45`,"day--today":`_day--today_1y1kb_46`,"day--in-range":`_day--in-range_1y1kb_47`,"day--outside":`_day--outside_1y1kb_48`,"day--disabled":`_day--disabled_1y1kb_49`,dropdowns:`_dropdowns_1y1kb_52`,dropdown:`_dropdown_1y1kb_52`},_t=[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],vt=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],yt=(e,t)=>!!e&&!!t&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),bt=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),xt=({mode:e=`single`,value:t,onChange:n,range:r,onRangeChange:i,headerType:a=`arrows`,defaultMonth:o,minDate:s,maxDate:d,className:f})=>{let[m,h]=c.default.useState(()=>{let e=o??t??r?.from??new Date;return new Date(e.getFullYear(),e.getMonth(),1)}),[g,_]=c.default.useState({}),v=r===void 0?g:r,y=new Date,b=m.getFullYear(),x=m.getMonth(),S=new Date(b,x,1).getDay(),C=new Date(b,x,1-S),w=Array.from({length:42},(e,t)=>new Date(C.getFullYear(),C.getMonth(),C.getDate()+t)),T=e=>s&&e<bt(s)||d&&e>d,E=e=>{r===void 0&&_(e),i?.(e)},D=t=>{if(e===`single`){n?.(t);return}let{from:r,to:i}=v;E(!r||r&&i?{from:t,to:void 0}:t<r?{from:t,to:r}:{from:r,to:t})},O=n=>{if(T(n))return`disabled`;if(e===`single`){if(yt(n,t))return`selected`}else{let{from:e,to:t}=v;if(yt(n,e)||yt(n,t))return`selected`;if(e&&t&&n>e&&n<t)return`in-range`}return n.getMonth()===x?yt(n,y)?`today`:`default`:`outside`},k=s?s.getFullYear():b-10,A=d?d.getFullYear():b+10,j=Array.from({length:A-k+1},(e,t)=>k+t);return(0,l.jsxs)(`div`,{className:[H.calendar,f??``].filter(Boolean).join(` `),children:[(0,l.jsxs)(`div`,{className:H.header,children:[(0,l.jsx)(`button`,{type:`button`,className:H.navBtn,onClick:()=>h(new Date(b,x-1,1)),"aria-label":`Previous month`,children:(0,l.jsx)(u.ChevronLeft,{size:16,strokeWidth:p(16)})}),a===`dropdowns`?(0,l.jsxs)(`span`,{className:H.dropdowns,children:[(0,l.jsx)(`select`,{className:H.dropdown,value:x,onChange:e=>h(new Date(b,Number(e.target.value),1)),"aria-label":`Month`,children:vt.map((e,t)=>(0,l.jsx)(`option`,{value:t,children:e},e))}),(0,l.jsx)(`select`,{className:H.dropdown,value:b,onChange:e=>h(new Date(Number(e.target.value),x,1)),"aria-label":`Year`,children:j.map(e=>(0,l.jsx)(`option`,{value:e,children:e},e))})]}):(0,l.jsxs)(`span`,{className:H.header__label,children:[vt[x],` `,b]}),(0,l.jsx)(`button`,{type:`button`,className:H.navBtn,onClick:()=>h(new Date(b,x+1,1)),"aria-label":`Next month`,children:(0,l.jsx)(u.ChevronRight,{size:16,strokeWidth:p(16)})})]}),(0,l.jsx)(`div`,{className:H.weekdays,children:_t.map(e=>(0,l.jsx)(`span`,{className:H.weekday,children:e},e))}),(0,l.jsx)(`div`,{className:H.grid,children:w.map((e,t)=>{let n=O(e);return(0,l.jsx)(`button`,{type:`button`,className:[H.day,H[`day--${n}`]].filter(Boolean).join(` `),disabled:n===`disabled`,"aria-current":n===`today`?`date`:void 0,"aria-selected":n===`selected`,"aria-label":e.toLocaleDateString(void 0,{weekday:`long`,year:`numeric`,month:`long`,day:`numeric`}),onClick:()=>D(e),children:e.getDate()},t)})})]})},St={card:`_card_1mh1i_3`,"card--interactive":`_card--interactive_1mh1i_16`,card__header:`_card__header_1mh1i_24`,card__title:`_card__title_1mh1i_25`,card__description:`_card__description_1mh1i_32`,card__body:`_card__body_1mh1i_39`,card__actions:`_card__actions_1mh1i_42`},Ct=({title:e,description:t,actions:n,interactive:r,children:i,className:a})=>(0,l.jsxs)(`div`,{className:[St.card,r?St[`card--interactive`]:``,a??``].filter(Boolean).join(` `),children:[(e||t)&&(0,l.jsxs)(`div`,{className:St.card__header,children:[e&&(0,l.jsx)(`h3`,{className:St.card__title,children:e}),t&&(0,l.jsx)(`p`,{className:St.card__description,children:t})]}),i&&(0,l.jsx)(`div`,{className:St.card__body,children:i}),n&&(0,l.jsx)(`div`,{className:St.card__actions,children:n})]}),wt={meta:`_meta_g1mpv_2`,meta__icon:`_meta__icon_g1mpv_3`,meta__label:`_meta__label_g1mpv_4`},Tt=({icon:e,children:t,className:n})=>(0,l.jsxs)(`span`,{className:[wt.meta,n??``].filter(Boolean).join(` `),children:[(0,l.jsx)(`span`,{className:wt.meta__icon,"aria-hidden":`true`,children:e}),(0,l.jsx)(`span`,{className:wt.meta__label,children:t})]}),Et={composer:`_composer_vd2eo_2`,"composer--typing":`_composer--typing_vd2eo_15`,input:`_input_vd2eo_22`,"composer--disabled":`_composer--disabled_vd2eo_23`,upload:`_upload_vd2eo_25`,upload__icon:`_upload__icon_vd2eo_30`,upload__body:`_upload__body_vd2eo_31`,upload__name:`_upload__name_vd2eo_32`,upload__track:`_upload__track_vd2eo_33`,upload__fill:`_upload__fill_vd2eo_34`,row:`_row_vd2eo_36`,sendButton:`_sendButton_vd2eo_40`,icon:`_icon_vd2eo_41`,send:`_send_vd2eo_40`},Dt=({state:e=`default`,value:t,placeholder:n=`Message...`,onChange:r,onSend:i,onAttachmentsChange:a,uploadName:o,uploadProgress:s=0,onCancelUpload:d,className:m})=>{let h=e===`disabled`,[g,_]=c.default.useState(``),[v,y]=c.default.useState(!1),[b,x]=c.default.useState({top:0,right:0}),[S,C]=c.default.useState([]),w=c.default.useRef(null),T=c.default.useRef(null),E=c.default.useRef(null),D=c.default.useRef(null),O=t===void 0?g:t,k=!h&&(O.trim().length>0||e===`typing`||S.length>0),j=()=>{T.current?.click()},ee=e=>{let t=e.target.files;t&&(Array.from(t).forEach(e=>{if(e.type.startsWith(`image/`)||e.type.startsWith(`video/`)){let t=new FileReader;t.onload=t=>{let n=t.target?.result;C(t=>[...t,{name:e.name,type:e.type,dataUrl:n}])},t.readAsDataURL(e)}}),e.target.value=``)},M=e=>{C(t=>t.filter((t,n)=>n!==e))},N=()=>{if(!v&&w.current){let e=w.current.getBoundingClientRect();x({top:e.top-104-4,right:20})}y(!v)},P=e=>{if(w.current){let t=w.current.selectionStart||O.length,n=O.slice(0,t)+e+O.slice(t);_(n),r?.(n),w.current.focus(),w.current.setSelectionRange(t+e.length,t+e.length)}y(!1)};return c.default.useEffect(()=>{let e=e=>{D.current&&!D.current.contains(e.target)&&E.current&&!E.current.contains(e.target)&&y(!1)};return v&&document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[v]),c.default.useEffect(()=>{a?.(S)},[S,a]),(0,l.jsxs)(`div`,{className:[Et.composer,Et[`composer--${e}`],m??``].filter(Boolean).join(` `),children:[e===`uploading`&&(0,l.jsxs)(`div`,{className:Et.upload,children:[(0,l.jsx)(u.File,{size:16,strokeWidth:p(16),className:Et.upload__icon,"aria-hidden":`true`}),(0,l.jsxs)(`div`,{className:Et.upload__body,children:[(0,l.jsx)(`span`,{className:Et.upload__name,children:o}),(0,l.jsx)(`div`,{className:Et.upload__track,children:(0,l.jsx)(`div`,{className:Et.upload__fill,style:{width:`${s}%`}})})]}),(0,l.jsx)(A,{icon:u.X,variant:`ghost`,size:`md`,onClick:d,"aria-label":`Cancel upload`})]}),S.length>0&&(0,l.jsx)(`div`,{style:{display:`flex`,flexWrap:`wrap`,gap:`8px`,padding:`8px`,backgroundColor:`var(--color-bg-subtle)`,borderRadius:`8px`},children:S.map((e,t)=>(0,l.jsxs)(`div`,{style:{position:`relative`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,width:`80px`,height:`80px`,borderRadius:`8px`,overflow:`hidden`,backgroundColor:`var(--color-bg-muted)`,border:`1px solid var(--color-border-default)`},children:[e.type.startsWith(`image/`)?(0,l.jsx)(`img`,{src:e.dataUrl,alt:e.name,style:{width:`100%`,height:`100%`,objectFit:`cover`}}):(0,l.jsxs)(`div`,{style:{textAlign:`center`,padding:`8px`},children:[(0,l.jsx)(u.File,{size:24,strokeWidth:1.5}),(0,l.jsx)(`div`,{style:{fontSize:`10px`,marginTop:`4px`,color:`var(--color-fg-muted)`},children:e.name.split(`.`).pop()?.toUpperCase()})]}),(0,l.jsx)(`button`,{type:`button`,onClick:()=>M(t),style:{position:`absolute`,top:`-8px`,right:`-8px`,width:`24px`,height:`24px`,borderRadius:`50%`,background:`var(--color-accent-default)`,border:`none`,color:`white`,cursor:`pointer`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:`16px`,lineHeight:`1`},"aria-label":`Remove file`,children:`x`})]},t))}),(0,l.jsx)(`input`,{ref:T,type:`file`,multiple:!0,accept:`image/*,video/*`,onChange:ee,style:{display:`none`}}),(0,l.jsxs)(`div`,{className:Et.row,children:[(0,l.jsx)(A,{icon:u.Paperclip,variant:`ghost`,size:`sm`,onClick:j,disabled:h,"aria-label":`Attach file`}),(0,l.jsx)(`input`,{ref:w,type:`text`,className:Et.input,value:O,placeholder:h?`You can't reply to this conversation`:n,disabled:h,onChange:e=>{t===void 0&&_(e.target.value),r?.(e.target.value)},onKeyDown:e=>{e.key===`Enter`&&k&&(e.preventDefault(),i?.())}}),(0,l.jsx)(A,{ref:E,icon:u.Smile,variant:`ghost`,size:`sm`,onClick:N,disabled:h,"aria-label":`Add emoji`}),v&&!h&&f.default.createPortal((0,l.jsx)(`div`,{ref:D,style:{position:`fixed`,top:`${b.top}px`,right:`${b.right}px`,zIndex:1e4,boxShadow:`0 4px 20px rgba(0, 0, 0, 0.15)`,borderRadius:`8px`,backgroundColor:`var(--color-bg-surface)`,border:`1px solid var(--color-border-default)`,padding:`12px`,display:`grid`,gridTemplateColumns:`repeat(8, 1fr)`,gap:`4px`,width:`280px`},children:[`😀`,`😂`,`❤️`,`👍`,`🎉`,`✨`,`😍`,`🤔`,`👏`,`🚀`,`🔥`,`💯`,`😢`,`😱`,`🤗`,`😎`].map(e=>(0,l.jsx)(`button`,{onClick:()=>P(e),style:{background:`none`,border:`none`,fontSize:`24px`,cursor:`pointer`,padding:`4px`,borderRadius:`4px`,transition:`background-color 0.2s`},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=`var(--color-bg-subtle)`},onMouseLeave:e=>{e.currentTarget.style.backgroundColor=`transparent`},children:e},e))}),document.body),(0,l.jsx)(A,{icon:u.Send,variant:`primary`,size:`sm`,className:Et.sendButton,onClick:i,disabled:!k,"aria-label":`Send message`})]})]})},Ot={wrapper:`_wrapper_1nmcn_3`,"wrapper--disabled":`_wrapper--disabled_1nmcn_11`,input:`_input_1nmcn_14`,box:`_box_1nmcn_21`,check:`_check_1nmcn_42`,dash:`_dash_1nmcn_53`,text:`_text_1nmcn_71`,text__label:`_text__label_1nmcn_72`,text__description:`_text__description_1nmcn_73`,checkbox:`_checkbox_1nmcn_77`,"wrapper--withDescription":`_wrapper--withDescription_1nmcn_81`},kt=c.default.forwardRef(({label:e,description:t,indeterminate:n,disabled:r,id:i,className:a,...o},s)=>{let u=c.default.useId(),d=i??u,f=c.default.useRef(null);return c.default.useImperativeHandle(s,()=>f.current),c.default.useEffect(()=>{f.current&&(f.current.indeterminate=!!n)},[n]),(0,l.jsxs)(`label`,{htmlFor:d,className:[Ot.wrapper,t?Ot[`wrapper--withDescription`]:``,r?Ot[`wrapper--disabled`]:``,a??``].filter(Boolean).join(` `),children:[(0,l.jsx)(`input`,{ref:f,id:d,type:`checkbox`,disabled:r,className:Ot.input,...o}),(0,l.jsxs)(`span`,{className:Ot.box,"aria-hidden":`true`,children:[(0,l.jsx)(`svg`,{className:Ot.check,width:12,height:12,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:3,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,l.jsx)(`polyline`,{points:`20 6 9 17 4 12`})}),(0,l.jsx)(`span`,{className:Ot.dash})]}),(e||t)&&(0,l.jsxs)(`span`,{className:Ot.text,children:[e&&(0,l.jsx)(`span`,{className:Ot.text__label,children:e}),t&&(0,l.jsx)(`span`,{className:Ot.text__description,children:t})]})]})});kt.displayName=`Checkbox`;var U={field:`_field_x766e_7`,field__label:`_field__label_x766e_8`,field__description:`_field__description_x766e_9`,field__error:`_field__error_x766e_10`,control:`_control_x766e_13`,"control--sm":`_control--sm_x766e_25`,"control--md":`_control--md_x766e_26`,"control--lg":`_control--lg_x766e_27`,"control--open":`_control--open_x766e_29`,"control--error":`_control--error_x766e_35`,"control--disabled":`_control--disabled_x766e_39`,control__value:`_control__value_x766e_45`,"control__value--placeholder":`_control__value--placeholder_x766e_55`,control__input:`_control__input_x766e_56`,control__chevron:`_control__chevron_x766e_76`,"control__chevron--open":`_control__chevron--open_x766e_77`,chips:`_chips_x766e_80`,chip:`_chip_x766e_80`,chip__remove:`_chip__remove_x766e_92`,panel:`_panel_x766e_103`,"panel--entering":`_panel--entering_x766e_125`,"sakani-combobox-panel-in":`_sakani-combobox-panel-in_x766e_1`,"panel--exiting":`_panel--exiting_x766e_126`,"sakani-combobox-panel-out":`_sakani-combobox-panel-out_x766e_1`,panel__empty:`_panel__empty_x766e_136`,option:`_option_x766e_144`,"option--disabled":`_option--disabled_x766e_158`,"option--active":`_option--active_x766e_159`,"option--selected":`_option--selected_x766e_160`,option__icon:`_option__icon_x766e_162`,option__label:`_option__label_x766e_163`,option__check:`_option__check_x766e_164`,panel__loading:`_panel__loading_x766e_167`,panel__spinner:`_panel__spinner_x766e_171`,"sakani-cb-spin":`_sakani-cb-spin_x766e_1`},At=({options:e,mode:t=`single`,size:n=`md`,label:r,description:i,error:a,placeholder:o=`Select...`,disabled:s,loading:u,value:d,onChange:f,className:m})=>{let h=c.default.useId(),[g,_]=c.default.useState(!1),[v,y]=c.default.useState(!1),[b,x]=c.default.useState(0),S=c.default.useRef(null);c.default.useEffect(()=>{g&&y(!0)},[g]);let[C,w]=c.default.useState(t===`multi`?[]:``),T=d===void 0?C:d,E=Array.isArray(T)?T:T?[T]:[],D=!!a;c.default.useEffect(()=>{let e=e=>{S.current&&!S.current.contains(e.target)&&_(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[]);let O=e,k=e=>{d===void 0&&w(e),f?.(e)},A=e=>{if(!e.disabled)if(t===`multi`){let t=new Set(E);t.has(e.value)?t.delete(e.value):t.add(e.value),k([...t])}else k(e.value),_(!1)},j=t=>e.find(e=>e.value===t)?.label??t,ee=E.length?j(E[0]):``,M=e=>{s||(e.key===`ArrowDown`?(e.preventDefault(),_(!0),x(e=>Math.min(e+1,O.length-1))):e.key===`ArrowUp`?(e.preventDefault(),x(e=>Math.max(e-1,0))):e.key===`Enter`?(e.preventDefault(),g&&O[b]?A(O[b]):_(!0)):e.key===`Escape`&&_(!1))},N=s?`disabled`:D?`error`:g?`open`:`default`;return(0,l.jsxs)(`div`,{className:[U.field,m??``].filter(Boolean).join(` `),ref:S,children:[r&&(0,l.jsx)(`label`,{htmlFor:`${h}-trigger`,className:U.field__label,children:r}),(0,l.jsxs)(`div`,{id:`${h}-trigger`,role:`combobox`,tabIndex:s?-1:0,"aria-haspopup":`listbox`,"aria-expanded":g,"aria-controls":`${h}-panel`,"aria-invalid":D||void 0,"aria-disabled":s||void 0,"aria-activedescendant":g&&O[b]?`${h}-opt-${b}`:void 0,className:[U.control,U[`control--${n}`],U[`control--${N}`]].join(` `),onClick:()=>!s&&_(e=>!e),onKeyDown:M,children:[t===`multi`&&E.length>0&&(0,l.jsx)(`div`,{className:U.chips,children:E.map(t=>(0,l.jsxs)(`span`,{className:U.chip,children:[j(t),(0,l.jsx)(`button`,{type:`button`,className:U.chip__remove,onClick:n=>{n.stopPropagation(),A(e.find(e=>e.value===t))},"aria-label":`Remove ${j(t)}`,children:`×`})]},t))}),!(t===`multi`&&E.length>0)&&(0,l.jsx)(`span`,{className:[U.control__value,t===`single`&&ee?``:U[`control__value--placeholder`]].filter(Boolean).join(` `),children:t===`single`&&ee?ee:o}),(0,l.jsx)(`span`,{className:[U.control__chevron,g?U[`control__chevron--open`]:``].join(` `),"aria-hidden":`true`,children:(0,l.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:p(16),strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,l.jsx)(`path`,{d:`m6 9 6 6 6-6`})})})]}),v&&!s&&(0,l.jsx)(`div`,{className:[U.panel,g?U[`panel--entering`]:U[`panel--exiting`]].filter(Boolean).join(` `),id:`${h}-panel`,role:`listbox`,"aria-busy":u||void 0,onAnimationEnd:()=>{g||y(!1)},children:u?(0,l.jsxs)(`div`,{className:U.panel__loading,children:[(0,l.jsx)(`span`,{className:U.panel__spinner,"aria-hidden":`true`}),`Loading…`]}):O.length===0?(0,l.jsx)(`div`,{className:U.panel__empty,children:`No options available`}):O.map((e,t)=>{let n=E.includes(e.value);return(0,l.jsxs)(`div`,{id:`${h}-opt-${t}`,role:`option`,"aria-selected":n,className:[U.option,t===b?U[`option--active`]:``,n?U[`option--selected`]:``,e.disabled?U[`option--disabled`]:``].filter(Boolean).join(` `),onMouseEnter:()=>x(t),onClick:()=>A(e),children:[e.icon&&(0,l.jsx)(`span`,{className:U.option__icon,"aria-hidden":`true`,children:e.icon}),(0,l.jsx)(`span`,{className:U.option__label,children:e.label}),n&&(0,l.jsx)(`span`,{className:U.option__check,"aria-hidden":`true`,children:(0,l.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,l.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})})]},e.value)})}),(i||a)&&(0,l.jsx)(`span`,{className:D?U.field__error:U.field__description,children:a||i})]})},W={item:`_item_1hp9t_2`,"item--hover":`_item--hover_1hp9t_12`,"item--active":`_item--active_1hp9t_13`,item__avatar:`_item__avatar_1hp9t_16`,item__presence:`_item__presence_1hp9t_17`,item__body:`_item__body_1hp9t_22`,item__row:`_item__row_1hp9t_23`,item__name:`_item__name_1hp9t_24`,"item--unread":`_item--unread_1hp9t_28`,item__mute:`_item__mute_1hp9t_29`,item__time:`_item__time_1hp9t_30`,item__preview:`_item__preview_1hp9t_31`,item__typing:`_item__typing_1hp9t_36`,item__badge:`_item__badge_1hp9t_37`},jt=({state:e=`default`,avatar:t,name:n,timestamp:r,preview:i,unreadCount:a,onClick:o,className:s})=>(0,l.jsxs)(`div`,{role:`button`,tabIndex:0,onClick:o,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),o?.())},"aria-current":e===`active`||void 0,className:[W.item,W[`item--${e}`],s??``].filter(Boolean).join(` `),children:[(0,l.jsxs)(`span`,{className:W.item__avatar,children:[t,e!==`muted`&&(0,l.jsx)(`span`,{className:W.item__presence,"aria-hidden":`true`})]}),(0,l.jsxs)(`span`,{className:W.item__body,children:[(0,l.jsxs)(`span`,{className:W.item__row,children:[(0,l.jsx)(`span`,{className:W.item__name,children:n}),e===`muted`&&(0,l.jsx)(u.BellOff,{size:12,strokeWidth:p(12),className:W.item__mute,"aria-hidden":`true`}),r&&(0,l.jsx)(`span`,{className:W.item__time,children:r})]}),(0,l.jsxs)(`span`,{className:W.item__row,children:[e===`typing`?(0,l.jsx)(`span`,{className:W.item__typing,children:`typing...`}):(0,l.jsx)(`span`,{className:W.item__preview,children:i}),e===`unread`&&a!=null&&(0,l.jsx)(`span`,{className:W.item__badge,children:a})]})]})]}),Mt={chart:`_chart_aiboa_2`,center:`_center_aiboa_26`,center__value:`_center__value_aiboa_35`,center__caption:`_center__caption_aiboa_36`},Nt={sm:{h:180,inner:50,outer:72},md:{h:220,inner:62,outer:90},lg:{h:280,inner:80,outer:116},xl:{h:340,inner:98,outer:142}},Pt=e=>typeof window<`u`&&getComputedStyle(document.documentElement).getPropertyValue(e).trim()||void 0,Ft=({data:e,size:t=`md`,centerValue:n,centerCaption:r,height:i,className:a})=>{let[o,s]=c.default.useState(null),[u,f]=c.default.useState(null),p=e=>{let t=e.currentTarget.getBoundingClientRect();f({x:e.clientX-t.left,y:e.clientY-t.top})};ne();let m=[1,2,3,4,5].map(e=>Pt(`--color-chart-${e}`)??`#ff4700`),h={...Nt[t],h:i??Nt[t].h},g=(h.outer-h.inner)/2-7;return(0,l.jsxs)(`div`,{className:[Mt.chart,a??``].filter(Boolean).join(` `),style:{height:h.h},onMouseMove:p,children:[(0,l.jsx)(d.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,l.jsxs)(d.PieChart,{children:[(0,l.jsx)(d.Pie,{data:e,dataKey:`value`,nameKey:`label`,innerRadius:h.inner,outerRadius:h.outer,cornerRadius:g,paddingAngle:2,stroke:`none`,isAnimationActive:!1,onMouseEnter:(e,t)=>s(t),onMouseLeave:()=>{s(null),f(null)},children:e.map((e,t)=>(0,l.jsx)(d.Cell,{fill:m[t%m.length],fillOpacity:o!==null&&t!==o?.45:1},t))}),(0,l.jsx)(d.Tooltip,{content:(0,l.jsx)(Re,{}),wrapperStyle:{zIndex:50},position:u??void 0})]})}),(n||r)&&(0,l.jsxs)(`div`,{className:Mt.center,children:[n&&(0,l.jsx)(`span`,{className:Mt.center__value,children:n}),r&&(0,l.jsx)(`span`,{className:Mt.center__caption,children:r})]})]})},It={empty:`_empty_15v2t_2`,empty__chip:`_empty__chip_15v2t_12`,"empty__chip--error":`_empty__chip--error_15v2t_22`,empty__title:`_empty__title_15v2t_23`,empty__desc:`_empty__desc_15v2t_31`,empty__action:`_empty__action_15v2t_39`},Lt={"no-data":{icon:(0,l.jsx)(u.Inbox,{size:18,strokeWidth:p(18)}),title:`No data yet`,description:`Records will appear here once they are added.`},"no-results":{icon:(0,l.jsx)(u.Search,{size:18,strokeWidth:p(18)}),title:`No results found`,description:`Try adjusting your search or removing filters.`},error:{icon:(0,l.jsx)(u.CircleAlert,{size:18,strokeWidth:p(18)}),title:`Couldn't load data`,description:`Something went wrong while fetching records.`}},Rt=({type:e=`no-data`,title:t,description:n,actionLabel:r,onAction:i,icon:a,className:o})=>{let s=Lt[e];return(0,l.jsxs)(`div`,{className:[It.empty,o??``].filter(Boolean).join(` `),role:`status`,children:[(0,l.jsx)(`span`,{className:[It.empty__chip,It[`empty__chip--${e}`]].join(` `),"aria-hidden":`true`,children:a??s.icon}),(0,l.jsx)(`p`,{className:It.empty__title,children:t??s.title}),(0,l.jsx)(`p`,{className:It.empty__desc,children:n??s.description}),r&&(0,l.jsx)(`button`,{type:`button`,className:It.empty__action,onClick:i,children:r})]})},G={wrap:`_wrap_1b5p5_2`,dropzone:`_dropzone_1b5p5_4`,"dropzone--dragging":`_dropzone--dragging_1b5p5_21`,dropzone__icon:`_dropzone__icon_1b5p5_23`,dropzone__label:`_dropzone__label_1b5p5_28`,dropzone__link:`_dropzone__link_1b5p5_29`,dropzone__hint:`_dropzone__hint_1b5p5_30`,input:`_input_1b5p5_32`,files:`_files_1b5p5_35`,file:`_file_1b5p5_35`,file__icon:`_file__icon_1b5p5_45`,file__name:`_file__name_1b5p5_46`,file__remove:`_file__remove_1b5p5_47`},zt=({accept:e,multiple:t,hint:n=`SVG, PNG, JPG or PDF (max. 2MB)`,onFilesChange:r,className:i})=>{let a=c.default.useRef(null),[o,s]=c.default.useState(!1),[d,f]=c.default.useState([]),m=e=>{f(e),r?.(e)},h=e=>{if(!e)return;let n=Array.from(e);m(t?[...d,...n]:n.slice(0,1))},g=e=>m(d.filter((t,n)=>n!==e));return(0,l.jsxs)(`div`,{className:[G.wrap,i??``].filter(Boolean).join(` `),children:[(0,l.jsxs)(`div`,{className:[G.dropzone,o?G[`dropzone--dragging`]:``].filter(Boolean).join(` `),onClick:()=>a.current?.click(),onDragOver:e=>{e.preventDefault(),s(!0)},onDragLeave:()=>s(!1),onDrop:e=>{e.preventDefault(),s(!1),h(e.dataTransfer.files)},role:`button`,tabIndex:0,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&a.current?.click()},children:[(0,l.jsx)(`span`,{className:G.dropzone__icon,"aria-hidden":`true`,children:(0,l.jsx)(u.UploadCloud,{size:22,strokeWidth:p(22)})}),(0,l.jsxs)(`span`,{className:G.dropzone__label,children:[(0,l.jsx)(`span`,{className:G.dropzone__link,children:`Click to upload`}),` or drag and drop`]}),(0,l.jsx)(`span`,{className:G.dropzone__hint,children:n}),(0,l.jsx)(`input`,{ref:a,type:`file`,accept:e,multiple:t,className:G.input,onChange:e=>h(e.target.files)})]}),d.length>0&&(0,l.jsx)(`ul`,{className:G.files,children:d.map((e,t)=>(0,l.jsxs)(`li`,{className:G.file,children:[(0,l.jsx)(`span`,{className:G.file__icon,"aria-hidden":`true`,children:(0,l.jsx)(u.File,{size:16,strokeWidth:p(16)})}),(0,l.jsx)(`span`,{className:G.file__name,children:e.name}),(0,l.jsx)(`button`,{type:`button`,className:G.file__remove,onClick:()=>g(t),"aria-label":`Remove ${e.name}`,children:(0,l.jsx)(u.X,{size:14,strokeWidth:p(14)})})]},t))})]})},Bt={chip:`_chip_rpkox_2`,chip__lead:`_chip__lead_rpkox_20`,chip__trail:`_chip__trail_rpkox_20`,"chip--active":`_chip--active_rpkox_22`,chip__remove:`_chip__remove_rpkox_29`,"chip--add":`_chip--add_rpkox_38`},Vt=({type:e=`default`,children:t,onClick:n,onRemove:r,className:i})=>(0,l.jsxs)(`button`,{type:`button`,onClick:n,className:[Bt.chip,Bt[`chip--${e}`],i??``].filter(Boolean).join(` `),children:[e===`add`&&(0,l.jsx)(u.Plus,{size:14,strokeWidth:p(14),className:Bt.chip__lead,"aria-hidden":`true`}),(0,l.jsx)(`span`,{className:Bt.chip__label,children:t}),e==="default"&&(0,l.jsx)(u.ChevronDown,{size:14,strokeWidth:p(14),className:Bt.chip__trail,"aria-hidden":`true`}),e===`active`&&(0,l.jsx)(`span`,{role:`button`,"aria-label":`Remove filter`,className:Bt.chip__remove,onClick:e=>{e.stopPropagation(),r?.()},children:(0,l.jsx)(u.X,{size:14,strokeWidth:p(14),"aria-hidden":`true`})})]}),K={chart:`_chart_1m9hd_1`,svg:`_svg_1m9hd_7`,segment:`_segment_1m9hd_12`,pctLabel:`_pctLabel_1m9hd_19`,labels:`_labels_1m9hd_27`,labelItem:`_labelItem_1m9hd_31`,tooltip:`_tooltip_1m9hd_41`,tooltip__title:`_tooltip__title_1m9hd_54`,tooltip__row:`_tooltip__row_1m9hd_60`,tooltip__dot:`_tooltip__dot_1m9hd_68`,tooltip__label:`_tooltip__label_1m9hd_74`,tooltip__value:`_tooltip__value_1m9hd_75`},Ht={sm:180,md:240,lg:320,xl:420},Ut=560,Wt=e=>typeof window<`u`&&getComputedStyle(document.documentElement).getPropertyValue(e).trim()||void 0,Gt=.3,Kt=.55,qt=({data:e,size:t=`md`,className:n})=>{let[r,i]=c.default.useState(null);ne();let a=Wt(`--color-chart-1`)??`#ff4700`,o=Wt(`--color-bg-canvas`)??`#fafaf9`,s=e[0]?.value||1,u=Ht[t],d=u*.66,f=d/2+8,p=Ut/e.length,m=e[0]?.value||1,h=e=>e/m*d,g=e.map(e=>h(e.value));g.push(h(e[e.length-1]?.value??0)*Kt);let _=t=>e.length<=1?1:Gt+t/(e.length-1)*(1-Gt),v=r===null?null:e[r],y=r===null?0:f-g[r]/2,b=r===null?0:r*p+p/2;return(0,l.jsxs)(`div`,{className:[K.chart,n??``].filter(Boolean).join(` `),style:{height:u},children:[(0,l.jsx)(`svg`,{viewBox:`0 0 ${Ut} ${u}`,width:`100%`,height:u,className:K.svg,children:e.map((e,t)=>{let n=t*p,o=(t+1)*p,c=(n+o)/2,u=g[t]/2,d=g[t+1]/2,m=f-u,h=f-d,v=f+u,y=f+d,b=[`M ${n} ${m}`,`C ${c} ${m} ${c} ${h} ${o} ${h}`,`L ${o} ${y}`,`C ${c} ${y} ${c} ${v} ${n} ${v}`,`Z`].join(` `),x=r===null?_(t):t===r?1:.45,S=Math.round(e.value/s*100);return(0,l.jsxs)(`g`,{className:K.segment,onMouseEnter:()=>i(t),onMouseLeave:()=>i(null),children:[(0,l.jsx)(`path`,{d:b,fill:a,fillOpacity:x}),(0,l.jsxs)(`text`,{x:c,y:f,textAnchor:`middle`,dominantBaseline:`middle`,className:K.pctLabel,children:[S,`%`]})]},t)})}),(0,l.jsx)(`div`,{className:K.labels,style:{gridTemplateColumns:`repeat(${e.length}, 1fr)`},children:e.map((e,t)=>(0,l.jsx)(`span`,{className:K.labelItem,children:e.label},t))}),v&&(0,l.jsxs)(`div`,{className:K.tooltip,style:{left:`${b/Ut*100}%`,top:`${y/u*100}%`,background:o},children:[(0,l.jsx)(`span`,{className:K.tooltip__title,children:v.label}),(0,l.jsxs)(`div`,{className:K.tooltip__row,children:[(0,l.jsx)(`span`,{className:K.tooltip__dot,style:{background:a}}),(0,l.jsx)(`span`,{className:K.tooltip__label,children:`Share`}),(0,l.jsxs)(`span`,{className:K.tooltip__value,children:[Math.round(v.value/s*100),`%`]})]})]})]})},q={chart:`_chart_1yc8b_1`,grid:`_grid_1yc8b_6`,rowLabel:`_rowLabel_1yc8b_13`,colLabel:`_colLabel_1yc8b_14`,cell:`_cell_1yc8b_29`,"chart--sm":`_chart--sm_1yc8b_38`,"chart--md":`_chart--md_1yc8b_39`,"chart--lg":`_chart--lg_1yc8b_40`,"chart--xl":`_chart--xl_1yc8b_41`,tooltip:`_tooltip_1yc8b_48`,tooltip__title:`_tooltip__title_1yc8b_70`,tooltip__row:`_tooltip__row_1yc8b_76`,tooltip__dot:`_tooltip__dot_1yc8b_84`,tooltip__label:`_tooltip__label_1yc8b_91`,tooltip__value:`_tooltip__value_1yc8b_92`},Jt=e=>typeof window<`u`&&getComputedStyle(document.documentElement).getPropertyValue(e).trim()||void 0,Yt=.12,Xt=.45,Zt=({data:e,rowLabels:t,colLabels:n,valueLabel:r=`Value`,size:i=`md`,className:a})=>{ne();let o=c.default.useRef(null),[s,u]=c.default.useState(null),d=Jt(`--color-chart-1`)??`#ff4700`,f=Math.max(1,...e.flat()),p=e[0]?.length??0,m=(e,t,n)=>r=>{let i=r.currentTarget.getBoundingClientRect(),a=o.current?.getBoundingClientRect();a&&u({row:e,col:t,value:n,left:i.left-a.left+i.width/2,top:i.top-a.top})};return(0,l.jsx)(`div`,{className:[q.chart,q[`chart--${i}`],a??``].filter(Boolean).join(` `),children:(0,l.jsxs)(`div`,{ref:o,className:q.grid,style:{gridTemplateColumns:`auto repeat(${p}, 1fr)`},children:[e.map((e,n)=>(0,l.jsxs)(c.default.Fragment,{children:[(0,l.jsx)(`span`,{className:q.rowLabel,children:t?.[n]??``}),e.map((e,t)=>{let r=s?.row===n&&s?.col===t,i=s!==null&&!r,a=r?1:Yt+e/f*(1-Yt);return(0,l.jsx)(`div`,{className:q.cell,style:{background:d,opacity:i?Xt:a},onMouseEnter:m(n,t,e),onMouseLeave:()=>u(null)},t)})]},n)),n&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`span`,{}),n.map((e,t)=>(0,l.jsx)(`span`,{className:q.colLabel,children:e},t))]}),s&&(0,l.jsxs)(`div`,{className:q.tooltip,style:{left:s.left,top:s.top},children:[(0,l.jsx)(`span`,{className:q.tooltip__title,children:[t?.[s.row],n?.[s.col]].filter(Boolean).join(` · `)||`Row ${s.row+1}, Col ${s.col+1}`}),(0,l.jsxs)(`div`,{className:q.tooltip__row,children:[(0,l.jsx)(`span`,{className:q.tooltip__dot}),(0,l.jsx)(`span`,{className:q.tooltip__label,children:r}),(0,l.jsx)(`span`,{className:q.tooltip__value,children:s.value})]})]})]})})},Qt={field:`_field_14s0o_10`,field__label:`_field__label_14s0o_18`,field__description:`_field__description_14s0o_26`,field__error:`_field__error_14s0o_31`,input:`_input_14s0o_38`,"input--sm":`_input--sm_14s0o_49`,"input--md":`_input--md_14s0o_50`,"input--lg":`_input--lg_14s0o_51`,"input--error":`_input--error_14s0o_60`,"input--disabled":`_input--disabled_14s0o_67`,input__control:`_input__control_14s0o_74`,input__icon:`_input__icon_14s0o_103`,"input--unstyled":`_input--unstyled_14s0o_113`},$t=16,en=e=>c.default.isValidElement(e)?c.default.cloneElement(e,{size:$t,strokeWidth:p($t)}):e,tn=c.default.forwardRef(({label:e,description:t,error:n,size:r=`md`,unstyled:i,leadingIcon:a,trailingIcon:o,disabled:s,id:u,className:d,...f},p)=>{let m=c.default.useId(),h=u??m,g=!!n;return(0,l.jsxs)(`div`,{className:[Qt.field,d??``].filter(Boolean).join(` `),children:[e&&(0,l.jsx)(`label`,{htmlFor:h,className:Qt.field__label,children:e}),(0,l.jsxs)(`div`,{className:[Qt.input,Qt[`input--${r}`],g?Qt[`input--error`]:``,s?Qt[`input--disabled`]:``].filter(Boolean).join(` `),children:[a&&(0,l.jsx)(`span`,{className:Qt.input__icon,"aria-hidden":`true`,children:en(a)}),(0,l.jsx)(`input`,{ref:p,id:h,className:Qt.input__control,disabled:s,"aria-invalid":g||void 0,"aria-describedby":t||n?`${h}-desc`:void 0,...f}),o&&(0,l.jsx)(`span`,{className:Qt.input__icon,"aria-hidden":`true`,children:en(o)})]}),(t||n)&&(0,l.jsx)(`span`,{id:`${h}-desc`,className:g?Qt.field__error:Qt.field__description,children:n||t})]})});tn.displayName=`Input`;var nn={kbd:`_kbd_1cz4m_3`},rn=({children:e,className:t})=>(0,l.jsx)(`kbd`,{className:[nn.kbd,t??``].filter(Boolean).join(` `),children:e}),an={label:`_label_rcdks_3`,label__required:`_label__required_rcdks_17`},on=c.default.forwardRef(({required:e,children:t,className:n,...r},i)=>(0,l.jsxs)(`label`,{ref:i,className:[an.label,n??``].filter(Boolean).join(` `),...r,children:[t,e&&(0,l.jsx)(`span`,{className:an.label__required,"aria-hidden":`true`,children:` *`})]}));on.displayName=`Label`;var sn={chart:`_chart_18fgd_2`},cn={sm:180,md:240,lg:320,xl:420},ln=e=>typeof window<`u`&&getComputedStyle(document.documentElement).getPropertyValue(e).trim()||void 0,un=new Set([`dots`,`custom-dots`,`dots-colors`,`label`,`custom-label`]),dn=({data:e,series:t,xKey:n=`label`,variant:r=`default`,labelKey:i,size:a=`md`,height:o,showLegend:s,className:c})=>{ne();let u=[1,2,3,4,5].map(e=>ln(`--color-chart-${e}`)??`#ff4700`),f=[u[1],u[0],...u.slice(2)],p=ln(`--color-border-subtle`)??`#e5e4e7`,m=ln(`--color-fg-muted`)??`#6b6375`,h=ln(`--color-bg-canvas`)??`#fafaf9`,g=ln(`--color-fg-default`)??`#141414`,_=r===`linear`?`linear`:r===`step`?`step`:`monotone`,v=un.has(r),y=e=>t=>{let{cx:n,cy:r}=t;return(0,l.jsxs)(`g`,{stroke:e,strokeWidth:2,strokeLinecap:`round`,children:[(0,l.jsx)(`line`,{x1:n,y1:r-3,x2:n,y2:r-3-6}),(0,l.jsx)(`line`,{x1:n,y1:r+3,x2:n,y2:r+3+6}),(0,l.jsx)(`circle`,{cx:n,cy:r,r:3,fill:e,stroke:`none`})]})},b=e=>{let{cx:t,cy:n,index:r}=e,i=u[(r??0)%u.length];return(0,l.jsx)(`circle`,{cx:t,cy:n,r:4,fill:i,stroke:h,strokeWidth:1.5})},x=t=>{let{x:n,y:a,value:o,index:s}=t,c=r===`custom-label`&&i?e[s]?.[i]:o;return c===void 0?(0,l.jsx)(`g`,{}):(0,l.jsx)(`text`,{x:n,y:a-12,textAnchor:`middle`,fill:g,fontSize:12,fontWeight:500,fontFamily:`var(--font-sans)`,children:c})};return(0,l.jsx)(`div`,{className:[sn.chart,c??``].filter(Boolean).join(` `),children:(0,l.jsx)(d.ResponsiveContainer,{width:`100%`,height:o??cn[a],children:(0,l.jsxs)(d.LineChart,{data:e,margin:{top:8,right:8,bottom:8,left:12},children:[(0,l.jsx)(d.CartesianGrid,{strokeDasharray:`3 3`,stroke:p,vertical:!1}),(0,l.jsx)(d.XAxis,{dataKey:n,stroke:m,fontSize:12,tickLine:!1,axisLine:!1,interval:0}),(0,l.jsx)(d.Tooltip,{cursor:{stroke:ln(`--color-border-default`)??`#d6d3ce`,strokeWidth:1},content:(0,l.jsx)(Re,{}),wrapperStyle:{zIndex:50}}),s&&(0,l.jsx)(d.Legend,{wrapperStyle:{fontSize:12,fontFamily:`var(--font-sans)`}}),t.map((e,t)=>{let n=f[t%f.length],i=v?r===`custom-dots`?y(n):r===`dots-colors`?b:{r:4,fill:n,stroke:h,strokeWidth:1.5}:!1;return(0,l.jsx)(d.Line,{type:_,dataKey:e,stroke:n,strokeWidth:2,dot:i,activeDot:{r:4,fill:n,stroke:h,strokeWidth:1.5},label:r===`label`||r===`custom-label`?x:void 0},e)})]})})})},fn={item:`_item_1b54h_2`,"item--disabled":`_item--disabled_1b54h_16`,"item--selected":`_item--selected_1b54h_17`,item__leading:`_item__leading_1b54h_20`,item__text:`_item__text_1b54h_21`,item__title:`_item__title_1b54h_22`,item__description:`_item__description_1b54h_23`,item__trailing:`_item__trailing_1b54h_24`},pn=({title:e,description:t,leading:n,trailing:r,selected:i,disabled:a,onClick:o,className:s})=>(0,l.jsxs)(`button`,{type:`button`,disabled:a,onClick:o,"aria-current":i?`true`:void 0,className:[fn.item,i?fn[`item--selected`]:``,a?fn[`item--disabled`]:``,s??``].filter(Boolean).join(` `),children:[n&&(0,l.jsx)(`span`,{className:fn.item__leading,children:n}),(0,l.jsxs)(`span`,{className:fn.item__text,children:[(0,l.jsx)(`span`,{className:fn.item__title,children:e}),t&&(0,l.jsx)(`span`,{className:fn.item__description,children:t})]}),r&&(0,l.jsx)(`span`,{className:fn.item__trailing,children:r})]}),mn={menu:`_menu_psizn_2`,divider:`_divider_psizn_12`},hn=({children:e,minWidth:t=208,className:n,...r})=>(0,l.jsx)(`div`,{role:`menu`,"aria-label":r[`aria-label`],style:{minWidth:t},className:[mn.menu,n??``].filter(Boolean).join(` `),children:e}),gn=()=>(0,l.jsx)(`div`,{className:mn.divider,role:`separator`}),_n={item:`_item_1xzse_2`,item__icon:`_item__icon_1xzse_21`,item__label:`_item__label_1xzse_22`,item__shortcut:`_item__shortcut_1xzse_23`,item__check:`_item__check_1xzse_30`,"item--checked":`_item--checked_1xzse_32`,"item--disabled":`_item--disabled_1xzse_33`,"item--destructive":`_item--destructive_1xzse_34`},vn=({state:e=`default`,icon:t,shortcut:n,children:r,onSelect:i,className:a})=>{let o=e===`disabled`;return(0,l.jsxs)(`div`,{role:`menuitem`,"aria-disabled":o||void 0,"aria-checked":e===`checked`||void 0,tabIndex:o?-1:0,onClick:o?void 0:i,onKeyDown:e=>{o||(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),i?.())},className:[_n.item,_n[`item--${e}`],a??``].filter(Boolean).join(` `),children:[t&&(0,l.jsx)(`span`,{className:_n.item__icon,"aria-hidden":`true`,children:t}),(0,l.jsx)(`span`,{className:_n.item__label,children:r}),n&&(0,l.jsx)(`kbd`,{className:_n.item__shortcut,children:n}),e===`checked`&&(0,l.jsx)(u.Check,{size:16,strokeWidth:p(16),className:_n.item__check,"aria-hidden":`true`})]})},J={row:`_row_1q1m5_2`,"row--sent":`_row--sent_1q1m5_3`,row__avatar:`_row__avatar_1q1m5_4`,col:`_col_1q1m5_5`,meta:`_meta_1q1m5_7`,meta__name:`_meta__name_1q1m5_8`,meta__time:`_meta__time_1q1m5_9`,bubble:`_bubble_1q1m5_11`,"bubble--received":`_bubble--received_1q1m5_17`,"bubble--sent":`_bubble--sent_1q1m5_18`,bubble__text:`_bubble__text_1q1m5_19`,bubble__image:`_bubble__image_1q1m5_20`,file:`_file_1q1m5_23`,file__icon:`_file__icon_1q1m5_24`,file__meta:`_file__meta_1q1m5_25`,file__name:`_file__name_1q1m5_26`,file__size:`_file__size_1q1m5_27`,file__dl:`_file__dl_1q1m5_28`,foot:`_foot_1q1m5_30`,foot__time:`_foot__time_1q1m5_31`,foot__receipt:`_foot__receipt_1q1m5_32`,system:`_system_1q1m5_34`,system__pill:`_system__pill_1q1m5_35`},yn=({type:e=`received`,content:t=`text`,avatar:n,authorName:r,timestamp:i,children:a,image:o,fileName:s,fileSize:c,reactions:d,read:f,className:m})=>{if(e===`system`)return(0,l.jsx)(`div`,{className:[J.system,m??``].filter(Boolean).join(` `),children:(0,l.jsx)(`span`,{className:J.system__pill,children:a})});let h=e===`sent`;return(0,l.jsxs)(`div`,{className:[J.row,h?J[`row--sent`]:J[`row--received`],m??``].filter(Boolean).join(` `),children:[!h&&n&&(0,l.jsx)(`span`,{className:J.row__avatar,children:n}),(0,l.jsxs)(`div`,{className:J.col,children:[!h&&(r||i)&&(0,l.jsxs)(`div`,{className:J.meta,children:[r&&(0,l.jsx)(`span`,{className:J.meta__name,children:r}),i&&(0,l.jsx)(`span`,{className:J.meta__time,children:i})]}),(0,l.jsxs)(`div`,{className:[J.bubble,h?J[`bubble--sent`]:J[`bubble--received`]].join(` `),children:[t===`image`&&(0,l.jsx)(`div`,{className:J.bubble__image,children:o}),t===`file`&&(0,l.jsxs)(`div`,{className:J.file,children:[(0,l.jsx)(u.File,{size:18,strokeWidth:p(18),className:J.file__icon,"aria-hidden":`true`}),(0,l.jsxs)(`span`,{className:J.file__meta,children:[(0,l.jsx)(`span`,{className:J.file__name,children:s}),(0,l.jsx)(`span`,{className:J.file__size,children:c})]}),(0,l.jsx)(u.Download,{size:16,strokeWidth:p(16),className:J.file__dl,"aria-hidden":`true`})]}),a&&(0,l.jsx)(`span`,{className:J.bubble__text,children:a})]}),(0,l.jsxs)(`div`,{className:J.foot,children:[!h&&d,h&&(0,l.jsxs)(l.Fragment,{children:[i&&(0,l.jsx)(`span`,{className:J.foot__time,children:i}),f&&(0,l.jsx)(u.CheckCheck,{size:13,strokeWidth:p(13),className:J.foot__receipt,"aria-hidden":`true`})]})]})]})]})},bn={pagination:`_pagination_on2nb_2`,page:`_page_on2nb_9`,arrow:`_arrow_on2nb_9`,"page--active":`_page--active_on2nb_26`,ellipsis:`_ellipsis_on2nb_40`};function xn(e,t,n){let r=t,i=Math.min(t+n,e),a=new Set([1,e]);for(let e=r;e<=i;e++)a.add(e);let o=Array.from(a).sort((e,t)=>e-t),s=[];return o.forEach((e,t)=>{t>0&&e-o[t-1]>1&&s.push(`ellipsis`),s.push(e)}),s}var Sn=({total:e,page:t,onPageChange:n,siblings:r=1,className:i})=>{let a=xn(e,t,r);return(0,l.jsxs)(`nav`,{className:[bn.pagination,i??``].filter(Boolean).join(` `),"aria-label":`Pagination`,children:[(0,l.jsx)(`button`,{type:`button`,className:bn.arrow,disabled:t<=1,onClick:()=>n(t-1),"aria-label":`Previous page`,children:(0,l.jsx)(u.ChevronLeft,{size:16,strokeWidth:p(16)})}),a.map((e,r)=>e===`ellipsis`?(0,l.jsx)(`span`,{className:bn.ellipsis,"aria-hidden":`true`,children:`…`},`e${r}`):(0,l.jsx)(`button`,{type:`button`,className:[bn.page,e===t?bn[`page--active`]:``].filter(Boolean).join(` `),"aria-current":e===t?`page`:void 0,onClick:()=>n(e),children:e},e)),(0,l.jsx)(`button`,{type:`button`,className:bn.arrow,disabled:t>=e,onClick:()=>n(t+1),"aria-label":`Next page`,children:(0,l.jsx)(u.ChevronRight,{size:16,strokeWidth:p(16)})})]})},Cn={chart:`_chart_cc7lx_2`,center:`_center_cc7lx_30`,center__value:`_center__value_cc7lx_39`,center__caption:`_center__caption_cc7lx_40`},wn={sm:{h:180,outer:72},md:{h:220,outer:90},lg:{h:280,outer:116},xl:{h:340,outer:142}},Tn=e=>typeof window<`u`&&getComputedStyle(document.documentElement).getPropertyValue(e).trim()||void 0,En=new Set([`donut`,`donut-active`,`donut-with-text`,`interactive`]),Dn=new Set([`donut-active`]),On=new Set([`interactive`]),kn=new Set([`donut-with-text`]),An=Math.PI/180,jn=({data:e,variant:t=`donut`,size:n=`md`,centerValue:r,centerCaption:i,className:a})=>{ne();let[o,s]=c.default.useState(void 0),u=[1,2,3,4,5].map(e=>Tn(`--color-chart-${e}`)??`#ff4700`),f=Tn(`--color-bg-surface`)??`#ffffff`,p=Tn(`--color-fg-default`)??`#141414`,m=wn[n],h=En.has(t),g=Dn.has(t),_=On.has(t),v=h?m.outer*.6:0,y=kn.has(t)&&(r||i),b=o??(g||_?0:void 0),x=e=>{let{cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:a,endAngle:o,fill:s,index:c}=e,u=c===b,f=u&&(g||_)?16:0;return u&&_?(0,l.jsxs)(`g`,{children:[(0,l.jsx)(d.Sector,{cx:t,cy:n,innerRadius:r,outerRadius:i+f,startAngle:a,endAngle:o,fill:s}),(0,l.jsx)(d.Sector,{cx:t,cy:n,innerRadius:i+f+3,outerRadius:i+f+7,startAngle:a,endAngle:o,fill:s})]}):(0,l.jsx)(d.Sector,{cx:t,cy:n,innerRadius:r,outerRadius:i+f,startAngle:a,endAngle:o,fill:s})},S=e=>{let{cx:t,cy:n,midAngle:r,outerRadius:i}=e,a=r??0,o=Math.cos(-a*An),s=Math.sin(-a*An),c=t+i*o,l=n+i*s,u=t+(i+16)*o,d=n+(i+16)*s,f=o>=0,p=u+(f?14:-14);return{d:`M ${c} ${l} L ${u} ${d} L ${p} ${d}`,endX:p,endY:d,textAnchor:f?`start`:`end`}},C=e=>{let{value:t,fill:n}=e,{d:r,endX:i,endY:a,textAnchor:o}=S(e),s=i+(o===`start`?4:-4);return(0,l.jsxs)(`g`,{children:[(0,l.jsx)(`path`,{d:r,fill:`none`,stroke:n,strokeWidth:1}),(0,l.jsx)(`text`,{x:s,y:a,textAnchor:o,dominantBaseline:`central`,fill:p,fontSize:12,fontFamily:`var(--font-sans)`,children:t})]})},w=e=>{let{x:t,y:n,textAnchor:r,value:i}=e;return(0,l.jsx)(`text`,{x:t,y:n,textAnchor:r,dominantBaseline:`central`,fill:p,fontSize:20,fontWeight:400,fontFamily:`var(--font-sans)`,children:i})},T=t=>{let{cx:n,cy:r,midAngle:i,innerRadius:a,outerRadius:o,index:s}=t,c=(a+o)/2;return(0,l.jsx)(`text`,{x:n+c*Math.cos(-i*An),y:r+c*Math.sin(-i*An),textAnchor:`middle`,dominantBaseline:`central`,fill:`#fff`,fontSize:11,fontWeight:500,fontFamily:`var(--font-sans)`,children:e[s]?.label})};if(t===`stacked`){let t=e=>o!==void 0&&o!==e?.45:1;return(0,l.jsx)(`div`,{className:[Cn.chart,a??``].filter(Boolean).join(` `),style:{height:m.h},children:(0,l.jsx)(d.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,l.jsxs)(d.PieChart,{children:[(0,l.jsx)(d.Pie,{data:e,dataKey:`value`,nameKey:`label`,innerRadius:m.outer*.82,outerRadius:m.outer,paddingAngle:0,stroke:`none`,isAnimationActive:!1,onMouseEnter:(e,t)=>s(t),onMouseLeave:()=>s(void 0),children:e.map((e,n)=>(0,l.jsx)(d.Cell,{fill:u[n%u.length],fillOpacity:t(n)},n))}),(0,l.jsx)(d.Pie,{data:e,dataKey:`value`,nameKey:`label`,innerRadius:0,outerRadius:m.outer*.62,paddingAngle:0,stroke:`none`,isAnimationActive:!1,onMouseEnter:(e,t)=>s(t),onMouseLeave:()=>s(void 0),children:e.map((e,n)=>(0,l.jsx)(d.Cell,{fill:u[n%u.length],fillOpacity:t(n)},n))}),(0,l.jsx)(d.Tooltip,{content:(0,l.jsx)(Re,{}),wrapperStyle:{zIndex:50}})]})})})}return(0,l.jsxs)(`div`,{className:[Cn.chart,a??``].filter(Boolean).join(` `),style:{height:m.h},children:[(0,l.jsx)(d.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,l.jsxs)(d.PieChart,{children:[(0,l.jsx)(d.Pie,{data:e,dataKey:`value`,nameKey:`label`,innerRadius:v,outerRadius:m.outer,paddingAngle:0,stroke:t===`pie`?f:`none`,strokeWidth:t===`pie`?2:0,isAnimationActive:!1,shape:g||_?x:void 0,label:t===`label`?C:t===`custom-label`?w:t===`label-list`?T:void 0,labelLine:!1,onMouseEnter:(e,t)=>s(t),onMouseLeave:()=>s(void 0),children:e.map((e,t)=>(0,l.jsx)(d.Cell,{fill:u[t%u.length]},t))}),(0,l.jsx)(d.Tooltip,{content:(0,l.jsx)(Re,{}),wrapperStyle:{zIndex:50}})]})}),y&&(0,l.jsxs)(`div`,{className:Cn.center,children:[r&&(0,l.jsx)(`span`,{className:Cn.center__value,children:r}),i&&(0,l.jsx)(`span`,{className:Cn.center__caption,children:i})]})]})},Mn={root:`_root_l16ca_2`,trigger:`_trigger_l16ca_3`,panel:`_panel_l16ca_5`,"panel--bottom":`_panel--bottom_l16ca_22`,"panel--bottom-start":`_panel--bottom-start_l16ca_23`,"panel--bottom-end":`_panel--bottom-end_l16ca_24`,"panel--top":`_panel--top_l16ca_25`,panel__title:`_panel__title_l16ca_27`,panel__description:`_panel__description_l16ca_28`,panel__body:`_panel__body_l16ca_29`,panel__actions:`_panel__actions_l16ca_30`},Nn=({trigger:e,title:t,description:n,actions:r,placement:i=`bottom-start`,children:a,className:o})=>{let[s,u]=c.default.useState(!1),d=c.default.useRef(null),f=c.default.useRef(null);return c.default.useEffect(()=>{if(!s)return;let e=e=>{d.current&&!d.current.contains(e.target)&&u(!1)},t=e=>{e.key===`Escape`&&u(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[s]),c.default.useEffect(()=>{!s&&f.current&&(f.current.focus(),f.current=null)},[s]),(0,l.jsxs)(`div`,{className:[Mn.root,o??``].filter(Boolean).join(` `),ref:d,children:[(0,l.jsx)(`span`,{className:Mn.trigger,onClick:()=>{s||(f.current=document.activeElement),u(e=>!e)},children:e}),s&&(0,l.jsxs)(`div`,{className:[Mn.panel,Mn[`panel--${i}`]].join(` `),role:`dialog`,children:[t&&(0,l.jsx)(`div`,{className:Mn.panel__title,children:t}),n&&(0,l.jsx)(`div`,{className:Mn.panel__description,children:n}),a&&(0,l.jsx)(`div`,{className:Mn.panel__body,children:a}),r&&(0,l.jsx)(`div`,{className:Mn.panel__actions,children:r})]})]})},Pn={chart:`_chart_q6xhl_2`,circleFillSvg:`_circleFillSvg_q6xhl_17`},Fn={sm:200,md:260,lg:340,xl:420},In=e=>typeof window<`u`&&getComputedStyle(document.documentElement).getPropertyValue(e).trim()||void 0,Ln=new Set([`circle-grid`,`circle-grid-no-lines`,`circle-grid-filled`]),Rn=new Set([`default`,`grid-custom`]),zn=new Set([`dots-grid-none`]),Bn=new Set([`grid-filled`]),Vn=e=>e===`circle-grid-filled`,Hn=new Set([`default`,`dots`,`dots-grid-none`,`circle-grid`,`circle-grid-no-lines`,`multiple`,`custom-label`,`grid-custom`,`grid-filled`,`circle-grid-filled`]),Un=[1,.8,.6,.4,.2],Wn=({data:e,variant:t=`default`,size:n=`md`,seriesLabels:r=[`Value`,`Value 2`],className:i})=>{ne();let a=In(`--color-chart-1`)??`#ff4700`,o=In(`--color-chart-2`)??`#5b92dd`,s=In(`--color-border-default`)??`#dbdad7`,u=In(`--color-fg-subtle`)??`#78716a`,f=t===`multiple`,p=t===`lines-only`,m=f||t===`custom-label`||p,h=!p,g=t===`dots`||t===`dots-grid-none`||t===`circle-grid`||t===`circle-grid-no-lines`,_=Bn.has(t),v=Rn.has(t),y=zn.has(t),b=Vn(t),x=c.default.useRef(null),[S,C]=c.default.useState(0);c.default.useEffect(()=>{if(!b||!x.current)return;let e=x.current,t=new ResizeObserver(([e])=>C(e.contentRect.width));return t.observe(e),()=>t.disconnect()},[b]);let w=c.default.useMemo(()=>{if(!_)return e;let t=Math.max(1,...e.flatMap(e=>[e.value,e.value2??0]));return e.map(e=>{let n={};return Un.forEach((e,r)=>{n[`ring${r}`]=e*t}),{...e,...n}})},[e,_]),T=t=>{let{x:n,y:r,cx:i,cy:a,payload:o,textAnchor:s}=t,c=e.find(e=>e.label===o?.value)??e[o?.index];if(!c)return(0,l.jsx)(`g`,{});let d=n-i,f=r-a,p=c.value2===void 0?`${c.value}`:`${c.value}/${c.value2}`,m=Math.abs(f)>Math.abs(d),h,g;if(m&&f<0)g=r-4-6,h=g-16;else if(m)h=r+4+10,g=h+18;else{let e=r+f/(Math.sqrt(d*d+f*f)||1)*4;h=e-8,g=e+12}let _=m?n:n+d/Math.sqrt(d*d+f*f||1)*4;return(0,l.jsxs)(`g`,{children:[(0,l.jsx)(`text`,{x:_,y:h,textAnchor:s,fill:u,fontSize:15,fontWeight:600,fontFamily:`var(--font-sans)`,children:p}),(0,l.jsx)(`text`,{x:_,y:g,textAnchor:s,fill:u,fontSize:13,fontFamily:`var(--font-sans)`,children:c.label})]})},E=Fn[n],D=(S>0?Math.min(S,E)/2-5:0)*.7;return(0,l.jsxs)(`div`,{ref:x,className:[Pn.chart,i??``].filter(Boolean).join(` `),children:[b&&S>0&&(0,l.jsx)(`svg`,{className:Pn.circleFillSvg,width:S,height:E,children:Un.map(e=>(0,l.jsx)(`circle`,{cx:S/2,cy:E/2,r:D*e,fill:o,fillOpacity:.1},e))}),(0,l.jsx)(d.ResponsiveContainer,{width:`100%`,height:E,children:(0,l.jsxs)(d.RadarChart,{data:w,outerRadius:`70%`,children:[!_&&!y&&(0,l.jsx)(d.PolarGrid,{gridType:Ln.has(t)?`circle`:`polygon`,radialLines:t!==`circle-grid-no-lines`&&!v,stroke:s}),(0,l.jsx)(d.PolarAngleAxis,{dataKey:`label`,axisLine:!1,tick:t===`custom-label`?T:{fill:u,fontSize:12,fontFamily:`var(--font-sans)`}}),(0,l.jsx)(d.PolarRadiusAxis,{tick:!1,axisLine:!1,tickCount:v?2:void 0}),(0,l.jsx)(d.Tooltip,{content:(0,l.jsx)(Re,{}),wrapperStyle:{zIndex:50}}),f&&(0,l.jsx)(d.Legend,{wrapperStyle:{fontSize:12,fontFamily:`var(--font-sans)`}}),_&&Un.map((e,t)=>(0,l.jsx)(d.Radar,{dataKey:`ring${t}`,stroke:`none`,fill:o,fillOpacity:.1,isAnimationActive:!1,legendType:`none`},`ring${t}`)),(0,l.jsx)(d.Radar,{name:f?r[0]??`Value`:void 0,dataKey:`value`,stroke:Hn.has(t)?`none`:o,fill:h?o:`none`,fillOpacity:h?v?1:m?.45:.5:0,strokeWidth:Hn.has(t)?0:2,dot:g?{r:4,fill:o,stroke:`none`}:!1,isAnimationActive:!1}),m&&(0,l.jsx)(d.Radar,{name:f?r[1]??`Value 2`:void 0,dataKey:`value2`,stroke:p?a:`none`,fill:p?`none`:a,fillOpacity:p?0:.8,strokeWidth:p?2:0,dot:g?{r:4,fill:a,stroke:`none`}:!1,isAnimationActive:!1})]})})]})},Gn={chart:`_chart_1ogmh_2`,gridSvg:`_gridSvg_1ogmh_19`,gaugeSvg:`_gaugeSvg_1ogmh_31`,center:`_center_1ogmh_36`,center__value:`_center__value_1ogmh_45`,center__caption:`_center__caption_1ogmh_46`},Kn={sm:180,md:220,lg:280,xl:340},qn=e=>typeof window<`u`&&getComputedStyle(document.documentElement).getPropertyValue(e).trim()||void 0,Jn=Math.PI/180,Yn={multi:[`30%`,`100%`],grid:[`30%`,`100%`],"stacked-label":[`30%`,`100%`],text:[`76%`,`100%`]},Xn=({value:e,max:t,color:n,track:r,centerValue:i,centerCaption:a})=>{let o=Math.round(Math.min(e,t)/t*40);return(0,l.jsxs)(`svg`,{viewBox:`0 0 200 120`,className:Gn.gaugeSvg,children:[Array.from({length:40}).map((e,t)=>{let i=180+t/39*180;return(0,l.jsx)(`line`,{x1:100+78*Math.cos(i*Jn),y1:100+78*Math.sin(i*Jn),x2:100+92*Math.cos(i*Jn),y2:100+92*Math.sin(i*Jn),stroke:t<o?n:r,strokeWidth:2.5,strokeLinecap:`round`},t)}),(i||a)&&(0,l.jsxs)(`g`,{textAnchor:`middle`,fontFamily:`var(--font-sans)`,children:[i&&(0,l.jsx)(`text`,{x:100,y:92,fontSize:22,fontWeight:500,fill:qn(`--color-fg-default`)??`#141414`,children:i}),a&&(0,l.jsx)(`text`,{x:100,y:112,fontSize:12,fill:qn(`--color-fg-muted`)??`#78716a`,children:a})]})]})},Zn=({rings:e,spokes:t,color:n})=>(0,l.jsxs)(`svg`,{viewBox:`0 0 200 200`,className:Gn.gridSvg,children:[Array.from({length:e}).map((t,r)=>(0,l.jsx)(`circle`,{cx:100,cy:100,r:(r+1)/e*96,fill:`none`,stroke:n,strokeWidth:1},r)),Array.from({length:t}).map((e,r)=>{let i=r/t*360,a=99.5*1.1;return(0,l.jsx)(`line`,{x1:100,y1:100,x2:100+a*Math.cos(i*Jn),y2:100+a*Math.sin(i*Jn),stroke:n,strokeWidth:1},r)})]}),Qn=({data:e,palette:t,track:n,centerValue:r,centerCaption:i})=>{let a=e[0]?.max??e.reduce((e,t)=>e+t.value,0),o=210,s=e.map((e,n)=>{let r=a>0?e.value/a*240:0,i=o,s=o-r;return o=s,{segStart:i,segEnd:s,fill:t[n%t.length]}});return(0,l.jsxs)(`svg`,{viewBox:`0 0 200 160`,className:Gn.gaugeSvg,children:[s.map((e,t)=>(0,l.jsx)(d.Sector,{cx:100,cy:100,innerRadius:64,outerRadius:88,startAngle:e.segStart,endAngle:e.segEnd,fill:e.fill,cornerRadius:4},t)),o>-29.5&&(0,l.jsx)(d.Sector,{cx:100,cy:100,innerRadius:64,outerRadius:88,startAngle:o,endAngle:-30,fill:n,cornerRadius:4}),(r||i)&&(0,l.jsxs)(`g`,{textAnchor:`middle`,fontFamily:`var(--font-sans)`,children:[r&&(0,l.jsx)(`text`,{x:100,y:92,fontSize:22,fontWeight:500,fill:qn(`--color-fg-default`)??`#141414`,children:r}),i&&(0,l.jsx)(`text`,{x:100,y:112,fontSize:12,fill:qn(`--color-fg-muted`)??`#78716a`,children:i})]})]})},$n=({data:e,variant:t=`multi`,size:n=`md`,centerValue:r,centerCaption:i,className:a})=>{ne();let o=[1,2,3,4,5].map(e=>qn(`--color-chart-${e}`)??`#ff4700`),s=qn(`--color-bg-subtle`)??`#f5f4f2`,c=qn(`--color-border-subtle`)??`#e5e4e7`,u=Kn[n];if(t===`gauge-tick`){let t=e[0];return(0,l.jsx)(`div`,{className:[Gn.chart,a??``].filter(Boolean).join(` `),style:{height:u},children:(0,l.jsx)(Xn,{value:t?.value??0,max:t?.max??100,color:o[0],track:s,centerValue:r,centerCaption:i})})}if(t===`shape`||t===`stacked`||t===`stacked-3-layers`)return(0,l.jsx)(`div`,{className:[Gn.chart,a??``].filter(Boolean).join(` `),style:{height:u},children:(0,l.jsx)(Qn,{data:e,palette:o,track:s,centerValue:r,centerCaption:i})});let[f,p]=Yn[t]??[`30%`,`100%`],m=(t===`stacked-label`||t===`text`)&&(r||i);return(0,l.jsxs)(`div`,{className:[Gn.chart,a??``].filter(Boolean).join(` `),style:{height:u},children:[t===`grid`&&(0,l.jsx)(Zn,{rings:8,spokes:12,color:c}),(0,l.jsx)(d.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,l.jsxs)(d.RadialBarChart,{data:e,innerRadius:f,outerRadius:p,startAngle:90,endAngle:-270,barCategoryGap:`12%`,children:[(0,l.jsx)(d.PolarAngleAxis,{type:`number`,domain:[0,e[0]?.max??100],tick:!1,axisLine:!1}),(0,l.jsx)(d.RadialBar,{dataKey:`value`,background:t!==`grid`&&{fill:s},cornerRadius:8,isAnimationActive:!1,children:e.map((e,t)=>(0,l.jsx)(d.Cell,{fill:o[t%o.length]},t))})]})}),m&&(0,l.jsxs)(`div`,{className:Gn.center,children:[r&&(0,l.jsx)(`span`,{className:Gn.center__value,children:r}),i&&(0,l.jsx)(`span`,{className:Gn.center__caption,children:i})]})]})},er={wrapper:`_wrapper_1px3a_3`,"wrapper--disabled":`_wrapper--disabled_1px3a_11`,input:`_input_1px3a_13`,circle:`_circle_1px3a_15`,dot:`_dot_1px3a_31`,text:`_text_1px3a_54`,text__label:`_text__label_1px3a_55`,text__description:`_text__description_1px3a_56`,"wrapper--withDescription":`_wrapper--withDescription_1px3a_60`},tr=c.default.forwardRef(({label:e,description:t,disabled:n,id:r,className:i,...a},o)=>{let s=c.default.useId(),u=r??s;return(0,l.jsxs)(`label`,{htmlFor:u,className:[er.wrapper,t?er[`wrapper--withDescription`]:``,n?er[`wrapper--disabled`]:``,i??``].filter(Boolean).join(` `),children:[(0,l.jsx)(`input`,{ref:o,id:u,type:`radio`,disabled:n,className:er.input,...a}),(0,l.jsx)(`span`,{className:er.circle,"aria-hidden":`true`,children:(0,l.jsx)(`span`,{className:er.dot})}),(e||t)&&(0,l.jsxs)(`span`,{className:er.text,children:[e&&(0,l.jsx)(`span`,{className:er.text__label,children:e}),t&&(0,l.jsx)(`span`,{className:er.text__description,children:t})]})]})});tr.displayName=`Radio`;var nr={track:`_track_13bev_2`,segment:`_segment_13bev_12`,"segment--active":`_segment--active_13bev_32`,thumb:`_thumb_13bev_38`,"thumb--animated":`_thumb--animated_13bev_52`,"track--fullWidth":`_track--fullWidth_13bev_58`},rr=({options:e,value:t,defaultValue:n,onChange:r,fullWidth:i,className:a})=>{let o=t!==void 0,[s,u]=c.default.useState(n??e[0]?.value),d=o?t:s,f=e=>{o||u(e),r?.(e)},p=c.default.useRef(null),m=c.default.useRef({}),[h,g]=c.default.useState(null),[_,v]=c.default.useState(!1);return c.default.useLayoutEffect(()=>{let e=()=>{let e=m.current[d],t=p.current;!e||!t||g({left:e.offsetLeft,width:e.offsetWidth})};e();let t=window.requestAnimationFrame(()=>v(!0)),n=new ResizeObserver(e);return p.current&&n.observe(p.current),()=>{window.cancelAnimationFrame(t),n.disconnect()}},[d,e]),(0,l.jsxs)(`div`,{ref:p,role:`tablist`,className:[nr.track,i?nr[`track--fullWidth`]:``,a??``].filter(Boolean).join(` `),children:[h&&(0,l.jsx)(`span`,{"aria-hidden":`true`,className:[nr.thumb,_?nr[`thumb--animated`]:``].filter(Boolean).join(` `),style:{transform:`translateX(${h.left}px)`,width:h.width}}),e.map(e=>{let t=e.value===d;return(0,l.jsx)(`button`,{ref:t=>{m.current[e.value]=t},role:`tab`,type:`button`,"aria-selected":t,className:[nr.segment,t?nr[`segment--active`]:``].filter(Boolean).join(` `),onClick:()=>f(e.value),children:e.label},e.value)})]})},Y={field:`_field_wvw9t_6`,field__label:`_field__label_wvw9t_8`,field__description:`_field__description_wvw9t_9`,field__error:`_field__error_wvw9t_10`,select:`_select_wvw9t_12`,"select--sm":`_select--sm_wvw9t_23`,"select--md":`_select--md_wvw9t_24`,"select--lg":`_select--lg_wvw9t_25`,"select--open":`_select--open_wvw9t_27`,"select--error":`_select--error_wvw9t_34`,"select--disabled":`_select--disabled_wvw9t_39`,select__control:`_select__control_wvw9t_46`,select__chevron:`_select__chevron_wvw9t_67`,anchor:`_anchor_wvw9t_78`,select__value:`_select__value_wvw9t_82`,"select__value--placeholder":`_select__value--placeholder_wvw9t_92`,"select__chevron--open":`_select__chevron--open_wvw9t_95`,panel:`_panel_wvw9t_106`,"panel--entering":`_panel--entering_wvw9t_131`,"sakani-select-panel-in":`_sakani-select-panel-in_wvw9t_1`,"panel--exiting":`_panel--exiting_wvw9t_132`,"sakani-select-panel-out":`_sakani-select-panel-out_wvw9t_1`,option:`_option_wvw9t_143`,"option--disabled":`_option--disabled_wvw9t_157`,"option--active":`_option--active_wvw9t_158`,"option--selected":`_option--selected_wvw9t_159`,option__label:`_option__label_wvw9t_161`,option__check:`_option__check_wvw9t_162`},ir=({label:e,description:t,error:n,size:r=`md`,placeholder:i=`Select an option`,options:a,value:o,defaultValue:s,onChange:u,disabled:d,id:m,className:h})=>{let g=c.default.useId(),_=`${m??g}-trigger`,v=`${m??g}-panel`,y=!!n,[b,x]=c.default.useState(s),S=o===void 0?b:o,C=a.find(e=>e.value===S),[w,T]=c.default.useState(!1),[E,D]=c.default.useState(!1),[O,k]=c.default.useState(0),A=c.default.useRef(null),j=c.default.useRef(null),ee=c.default.useRef(null),[M,N]=c.default.useState(null);c.default.useEffect(()=>{w&&D(!0)},[w]),c.default.useLayoutEffect(()=>{if(!w)return;let e=()=>{let e=j.current;if(!e)return;let t=e.getBoundingClientRect();N({top:t.bottom+4,left:t.left,width:t.width})};return e(),window.addEventListener(`scroll`,e,!0),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`scroll`,e,!0),window.removeEventListener(`resize`,e)}},[w]),c.default.useEffect(()=>{if(!w)return;let e=e=>{let t=e.target;A.current?.contains(t)||ee.current?.contains(t)||T(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[w]),c.default.useEffect(()=>{if(!w)return;let e=a.findIndex(e=>e.value===S);k(e>=0?e:0)},[w,a,S]);let P=e=>{e.disabled||(o===void 0&&x(e.value),u?.(e.value),T(!1))},te=e=>{k(t=>{let n=t;for(let t=0;t<a.length;t+=1)if(n=(n+e+a.length)%a.length,!a[n]?.disabled)return n;return t})};return(0,l.jsxs)(`div`,{className:[Y.field,h??``].filter(Boolean).join(` `),ref:A,children:[e&&(0,l.jsx)(`label`,{htmlFor:_,className:Y.field__label,children:e}),(0,l.jsxs)(`div`,{className:Y.anchor,children:[(0,l.jsxs)(`div`,{ref:j,id:_,role:`combobox`,tabIndex:d?-1:0,"aria-haspopup":`listbox`,"aria-expanded":w,"aria-controls":v,"aria-invalid":y||void 0,"aria-disabled":d||void 0,"aria-activedescendant":w?`${v}-opt-${O}`:void 0,onClick:()=>!d&&T(e=>!e),onKeyDown:e=>{if(!d){if(!w&&(e.key===`Enter`||e.key===` `||e.key===`ArrowDown`)){e.preventDefault(),T(!0);return}if(w)if(e.key===`ArrowDown`)e.preventDefault(),te(1);else if(e.key===`ArrowUp`)e.preventDefault(),te(-1);else if(e.key===`Home`)e.preventDefault(),k(0);else if(e.key===`End`)e.preventDefault(),k(a.length-1);else if(e.key===`Enter`||e.key===` `){e.preventDefault();let t=a[O];t&&P(t)}else e.key===`Escape`&&(e.preventDefault(),T(!1))}},className:[Y.select,Y[`select--${r}`],w?Y[`select--open`]:``,y?Y[`select--error`]:``,d?Y[`select--disabled`]:``].filter(Boolean).join(` `),children:[(0,l.jsx)(`span`,{className:[Y.select__value,C?``:Y[`select__value--placeholder`]].filter(Boolean).join(` `),children:C?C.label:i}),(0,l.jsx)(`span`,{className:[Y.select__chevron,w?Y[`select__chevron--open`]:``].filter(Boolean).join(` `),"aria-hidden":`true`,children:(0,l.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:p(16),strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,l.jsx)(`path`,{d:`m6 9 6 6 6-6`})})})]}),E&&M&&(0,f.createPortal)((0,l.jsx)(`div`,{ref:ee,id:v,role:`listbox`,className:[Y.panel,w?Y[`panel--entering`]:Y[`panel--exiting`]].filter(Boolean).join(` `),style:{position:`fixed`,top:M.top,left:M.left,width:M.width},onAnimationEnd:()=>{w||D(!1)},children:a.map((e,t)=>(0,l.jsxs)(`div`,{id:`${v}-opt-${t}`,role:`option`,"aria-selected":e.value===S,"aria-disabled":e.disabled||void 0,onMouseEnter:()=>!e.disabled&&k(t),onClick:()=>P(e),className:[Y.option,t===O?Y[`option--active`]:``,e.value===S?Y[`option--selected`]:``,e.disabled?Y[`option--disabled`]:``].filter(Boolean).join(` `),children:[(0,l.jsx)(`span`,{className:Y.option__label,children:e.label}),e.value===S&&(0,l.jsx)(`span`,{className:Y.option__check,"aria-hidden":`true`,children:(0,l.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,l.jsx)(`path`,{d:`M20 6 9 17l-5-5`})})})]},e.value))}),document.body)]}),(t||n)&&(0,l.jsx)(`span`,{className:y?Y.field__error:Y.field__description,children:n||t})]})},ar={sidebar:`_sidebar_14oy8_4`,"sidebar--collapsed":`_sidebar--collapsed_14oy8_20`},or=({collapsed:e=!1,children:t,className:n})=>(0,l.jsx)(`nav`,{className:[ar.sidebar,e?ar[`sidebar--collapsed`]:``,n??``].filter(Boolean).join(` `),"data-collapsed":e,children:t}),sr={divider:`_divider_18c5j_1`},cr=()=>(0,l.jsx)(`div`,{className:sr.divider,role:`separator`}),lr={footer:`_footer_sh6kz_4`,"footer--collapsed":`_footer--collapsed_sh6kz_12`,footer__text:`_footer__text_sh6kz_14`,footer__title:`_footer__title_sh6kz_15`,footer__subtitle:`_footer__subtitle_sh6kz_16`,footer__menu:`_footer__menu_sh6kz_17`,footer__action:`_footer__action_sh6kz_24`},ur=({type:e=`user`,title:t,subtitle:n,avatarSrc:r,avatarInitials:i,collapsed:a,onMenu:o,onSignOut:s})=>{let c=(0,l.jsx)(b,{size:`sm`,src:r,initials:i,alt:t??`User`});return a?(0,l.jsx)(`div`,{className:[lr.footer,lr[`footer--collapsed`]].join(` `),children:c}):e===`actions`?(0,l.jsx)(`div`,{className:lr.footer,children:(0,l.jsxs)(`button`,{type:`button`,className:lr.footer__action,onClick:s,children:[(0,l.jsx)(u.LogOut,{size:16,strokeWidth:p(16)}),` Sign out`]})}):(0,l.jsxs)(`div`,{className:lr.footer,children:[c,(0,l.jsxs)(`span`,{className:lr.footer__text,children:[t&&(0,l.jsx)(`span`,{className:lr.footer__title,children:t}),n&&(0,l.jsx)(`span`,{className:lr.footer__subtitle,children:n})]}),e===`user-menu`&&(0,l.jsx)(`button`,{type:`button`,className:lr.footer__menu,onClick:o,"aria-label":`Open menu`,children:(0,l.jsx)(u.EllipsisVertical,{size:16,strokeWidth:p(16)})})]})},dr={groupLabel:`_groupLabel_62q1j_2`},fr=({children:e})=>(0,l.jsx)(`div`,{className:dr.groupLabel,children:e}),X={header:`_header_1wyz2_2`,"header--collapsed":`_header--collapsed_1wyz2_12`,header__logoWrap:`_header__logoWrap_1wyz2_15`,header__logo:`_header__logo_1wyz2_14`,header__logoContent:`_header__logoContent_1wyz2_43`,header__logoIcon:`_header__logoIcon_1wyz2_44`,header__text:`_header__text_1wyz2_50`,"header__text--collapsed":`_header__text--collapsed_1wyz2_61`,header__title:`_header__title_1wyz2_65`,header__subtitle:`_header__subtitle_1wyz2_66`,header__toggle:`_header__toggle_1wyz2_67`},pr=({type:e=`brand`,title:t,subtitle:n,logo:r,collapsed:i,onToggle:a,toggleIcon:o=u.PanelLeftClose})=>(0,l.jsxs)(`div`,{className:[X.header,i?X[`header--collapsed`]:``].filter(Boolean).join(` `),children:[r&&(i&&e===`brand-toggle`&&a?(0,l.jsx)(`button`,{type:`button`,className:X.header__logoWrap,onClick:a,"aria-label":`Expand sidebar`,children:(0,l.jsxs)(`span`,{className:X.header__logo,children:[(0,l.jsx)(`span`,{className:X.header__logoContent,children:r}),(0,l.jsx)(`span`,{className:X.header__logoIcon,"aria-hidden":`true`,children:(0,l.jsx)(o,{size:16,strokeWidth:p(16)})})]})}):(0,l.jsx)(`span`,{className:X.header__logoWrap,"aria-hidden":`true`,children:(0,l.jsx)(`span`,{className:X.header__logo,children:r})})),(0,l.jsxs)(`span`,{className:[X.header__text,i?X[`header__text--collapsed`]:``].filter(Boolean).join(` `),children:[(0,l.jsx)(`span`,{className:X.header__title,children:t}),(e===`workspace`||n)&&n&&(0,l.jsx)(`span`,{className:X.header__subtitle,children:n})]}),!i&&e===`brand-toggle`&&(0,l.jsx)(`button`,{type:`button`,className:X.header__toggle,onClick:a,"aria-label":`Collapse sidebar`,children:(0,l.jsx)(o,{size:18,strokeWidth:p(18)})})]}),mr={item:`_item_1k6es_5`,"item--disabled":`_item--disabled_1k6es_29`,"item--active":`_item--active_1k6es_29`,"item--active-flat":`_item--active-flat_1k6es_29`,item__icon:`_item__icon_1k6es_30`,item__bar:`_item__bar_1k6es_41`,item__chevron:`_item__chevron_1k6es_70`,item__badge:`_item__badge_1k6es_72`,"item--collapsed":`_item--collapsed_1k6es_88`,item__label:`_item__label_1k6es_114`,"item__label--collapsed":`_item__label--collapsed_1k6es_123`},hr=({icon:e,label:t,active:n,activeIndicator:r=!0,disabled:i,badge:a,hasSubmenu:o,collapsed:s,onClick:c,href:d,nativeTooltip:f=!0})=>{let m=n&&(s||r),h=n&&!s&&!r,g=[mr.item,m?mr[`item--active`]:``,h?mr[`item--active-flat`]:``,i?mr[`item--disabled`]:``,s?mr[`item--collapsed`]:``].filter(Boolean).join(` `),_=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`span`,{className:mr.item__bar,"aria-hidden":`true`}),e&&(0,l.jsx)(`span`,{className:mr.item__icon,"aria-hidden":`true`,children:(0,l.jsx)(e,{size:18,strokeWidth:p(18)})}),(0,l.jsx)(`span`,{className:[mr.item__label,s?mr[`item__label--collapsed`]:``].filter(Boolean).join(` `),children:t}),!s&&a&&(0,l.jsx)(`span`,{className:mr.item__badge,children:a}),!s&&o&&(0,l.jsx)(`span`,{className:mr.item__chevron,"aria-hidden":`true`,children:(0,l.jsx)(u.ChevronRight,{size:16,strokeWidth:p(16)})})]}),v={className:g,title:s&&f?t:void 0,"aria-label":s?t:void 0,"aria-current":n?`page`:void 0};return d&&!i?(0,l.jsx)(`a`,{href:d,...v,children:_}):(0,l.jsx)(`button`,{type:`button`,disabled:i,onClick:c,...v,children:_})},gr={promo:`_promo_1dicm_4`,promo__head:`_promo__head_1dicm_15`,promo__icon:`_promo__icon_1dicm_16`,promo__title:`_promo__title_1dicm_17`,promo__dismiss:`_promo__dismiss_1dicm_18`,promo__desc:`_promo__desc_1dicm_25`,promo__cta:`_promo__cta_1dicm_28`},_r=({type:e=`upgrade`,title:t,description:n,ctaLabel:r,onCta:i,onDismiss:a,icon:o=u.Sparkles})=>(0,l.jsxs)(`div`,{className:[gr.promo,gr[`promo--${e}`]].join(` `),children:[(0,l.jsxs)(`div`,{className:gr.promo__head,children:[(0,l.jsx)(`span`,{className:gr.promo__icon,"aria-hidden":`true`,children:(0,l.jsx)(o,{size:16,strokeWidth:p(16)})}),(0,l.jsx)(`span`,{className:gr.promo__title,children:t}),a&&(0,l.jsx)(`button`,{type:`button`,className:gr.promo__dismiss,onClick:a,"aria-label":`Dismiss`,children:(0,l.jsx)(u.X,{size:14,strokeWidth:p(14)})})]}),n&&(0,l.jsx)(`p`,{className:gr.promo__desc,children:n}),r&&(0,l.jsx)(`button`,{type:`button`,className:gr.promo__cta,onClick:i,children:r})]}),vr={search:`_search_cvwic_2`,search__icon:`_search__icon_cvwic_18`,search__input:`_search__input_cvwic_19`,search__placeholder:`_search__placeholder_cvwic_31`,search__kbd:`_search__kbd_cvwic_32`,collapsed:`_collapsed_cvwic_42`},yr=({type:e=`field`,placeholder:t=`Search…`,collapsed:n,value:r,onChange:i,onClick:a})=>n?(0,l.jsx)(`button`,{type:`button`,className:vr.collapsed,onClick:a,"aria-label":`Search`,children:(0,l.jsx)(u.Search,{size:18,strokeWidth:p(18)})}):e===`command`?(0,l.jsxs)(`button`,{type:`button`,className:vr.search,onClick:a,children:[(0,l.jsx)(u.Search,{size:16,strokeWidth:p(16),className:vr.search__icon}),(0,l.jsx)(`span`,{className:vr.search__placeholder,children:t}),(0,l.jsx)(`kbd`,{className:vr.search__kbd,children:`⌘K`})]}):(0,l.jsxs)(`div`,{className:vr.search,children:[(0,l.jsx)(u.Search,{size:16,strokeWidth:p(16),className:vr.search__icon}),(0,l.jsx)(`input`,{className:vr.search__input,placeholder:t,value:r,onChange:e=>i?.(e.target.value)})]}),br={subItem:`_subItem_b3cst_2`,"subItem--disabled":`_subItem--disabled_b3cst_24`,"subItem--active":`_subItem--active_b3cst_25`,subItem__dot:`_subItem__dot_b3cst_29`,subItem__label:`_subItem__label_b3cst_39`},xr=({label:e,active:t,disabled:n,onClick:r,href:i})=>{let a={className:[br.subItem,t?br[`subItem--active`]:``,n?br[`subItem--disabled`]:``].filter(Boolean).join(` `),"aria-current":t?`page`:void 0},o=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`span`,{className:br.subItem__dot,"aria-hidden":`true`}),(0,l.jsx)(`span`,{className:br.subItem__label,children:e})]});return i&&!n?(0,l.jsx)(`a`,{href:i,...a,children:o}):(0,l.jsx)(`button`,{type:`button`,disabled:n,onClick:r,...a,children:o})},Sr={skeleton:`_skeleton_94hr3_9`,"skeleton-shimmer":`_skeleton-shimmer_94hr3_1`,"skeleton--text":`_skeleton--text_94hr3_22`,"skeleton--rect":`_skeleton--rect_94hr3_29`,"skeleton--circle":`_skeleton--circle_94hr3_35`},Cr=({variant:e=`text`,width:t,height:n,className:r})=>{let i={};return t!==void 0&&(i.width=typeof t==`number`?`${t}px`:t),n!==void 0&&(i.height=typeof n==`number`?`${n}px`:n),(0,l.jsx)(`span`,{"aria-hidden":`true`,className:[Sr.skeleton,Sr[`skeleton--${e}`],r??``].filter(Boolean).join(` `),style:i})},wr={field:`_field_drnb1_3`,header:`_header_drnb1_4`,label:`_label_drnb1_5`,value:`_value_drnb1_6`,slider:`_slider_drnb1_8`},Tr=c.default.forwardRef(({label:e,showValue:t,min:n=0,max:r=100,value:i,defaultValue:a,disabled:o,id:s,className:u,onChange:d,...f},p)=>{let m=c.default.useId(),h=s??m,g=Number(i??a??n),[_,v]=c.default.useState(g),y=i===void 0?_:Number(i),b=(y-n)/(r-n)*100;return(0,l.jsxs)(`div`,{className:[wr.field,u??``].filter(Boolean).join(` `),children:[(e||t)&&(0,l.jsxs)(`div`,{className:wr.header,children:[e&&(0,l.jsx)(`label`,{htmlFor:h,className:wr.label,children:e}),t&&(0,l.jsx)(`span`,{className:wr.value,children:y})]}),(0,l.jsx)(`input`,{ref:p,id:h,type:`range`,min:n,max:r,value:i,defaultValue:i===void 0?a:void 0,disabled:o,onChange:e=>{i===void 0&&v(Number(e.target.value)),d?.(e)},className:wr.slider,style:{"--pct":`${b}%`},...f})]})});Tr.displayName=`Slider`;var Er={spinner:`_spinner_14r00_3`,"spinner--sm":`_spinner--sm_14r00_12`,"spinner--md":`_spinner--md_14r00_13`,"spinner--lg":`_spinner--lg_14r00_14`,spinner__svg:`_spinner__svg_14r00_17`,"spinner-rotate":`_spinner-rotate_14r00_1`},Dr=({size:e=`md`,label:t=`Loading...`,className:n})=>(0,l.jsx)(`span`,{role:`status`,"aria-label":t,className:[Er.spinner,Er[`spinner--${e}`],n??``].filter(Boolean).join(` `),children:(0,l.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2.5,strokeLinecap:`round`,"aria-hidden":`true`,className:Er.spinner__svg,children:[(0,l.jsx)(`circle`,{cx:12,cy:12,r:9,opacity:.2}),(0,l.jsx)(`path`,{d:`M12 3a9 9 0 0 1 9 9`,className:Er.spinner__arc})]})}),Or={card:`_card_bjfuf_4`,"card--featured":`_card--featured_bjfuf_17`,card__head:`_card__head_bjfuf_19`,card__icon:`_card__icon_bjfuf_20`,card__title:`_card__title_bjfuf_28`,card__menu:`_card__menu_bjfuf_29`,card__value:`_card__value_bjfuf_37`,card__meta:`_card__meta_bjfuf_46`,card__sparkline:`_card__sparkline_bjfuf_53`,"card--trend-up":`_card--trend-up_bjfuf_55`,"card--trend-down":`_card--trend-down_bjfuf_56`,card__description:`_card__description_bjfuf_59`},kr={up:u.TrendingUp,down:u.TrendingDown,flat:u.Minus},Ar={up:`success`,down:`danger`,flat:`neutral`},jr=({data:e})=>{if(e.length<2)return null;let t=Math.min(...e),n=Math.max(...e)-t||1,r=e.map((r,i)=>`${i/(e.length-1)*100},${30-(r-t)/n*26}`).join(` `);return(0,l.jsx)(`svg`,{className:Mr,viewBox:`0 0 100 32`,preserveAspectRatio:`none`,"aria-hidden":`true`,children:(0,l.jsx)(`polyline`,{points:r,fill:`none`,strokeWidth:2,vectorEffect:`non-scaling-stroke`,strokeLinejoin:`round`,strokeLinecap:`round`})})},Mr=Or.card__sparkline,Nr=({title:e,value:t,description:n,sparkline:r,delta:i,trend:a=`up`,badgeVariant:o,variant:s=`minimal`,icon:c,showMenu:d,onMenu:f,className:m})=>{let h=kr[a],g=(s===`icon`||s===`featured`)&&c;return(0,l.jsxs)(`div`,{className:[Or.card,Or[`card--${s}`],Or[`card--trend-${a}`],m??``].filter(Boolean).join(` `),children:[(0,l.jsxs)(`div`,{className:Or.card__head,children:[g&&(0,l.jsx)(`span`,{className:Or.card__icon,"aria-hidden":`true`,children:(0,l.jsx)(c,{size:18,strokeWidth:p(18)})}),(0,l.jsx)(`span`,{className:Or.card__title,children:e}),d&&(0,l.jsx)(`button`,{type:`button`,className:Or.card__menu,onClick:f,"aria-label":`More options`,children:(0,l.jsx)(u.MoreHorizontal,{size:16,strokeWidth:p(16)})})]}),(0,l.jsx)(`div`,{className:Or.card__value,children:t}),r&&(0,l.jsx)(jr,{data:r}),(i||n)&&(0,l.jsxs)(`div`,{className:Or.card__meta,children:[i&&(0,l.jsx)(qe,{variant:o??Ar[a],leftIcon:(0,l.jsx)(h,{size:12,strokeWidth:2}),children:i}),n&&(0,l.jsx)(`p`,{className:Or.card__description,children:n})]})]})},Z={stepper:`_stepper_kxw14_3`,"stepper--horizontal":`_stepper--horizontal_kxw14_4`,"stepper--vertical":`_stepper--vertical_kxw14_5`,step:`_step_kxw14_3`,"step--horizontal":`_step--horizontal_kxw14_8`,"step--vertical":`_step--vertical_kxw14_9`,circle:`_circle_kxw14_12`,circle__num:`_circle__num_kxw14_24`,"circle--completed":`_circle--completed_kxw14_26`,"circle--current":`_circle--current_kxw14_27`,"circle--upcoming":`_circle--upcoming_kxw14_32`,step__text:`_step__text_kxw14_39`,step__label:`_step__label_kxw14_40`,"step__label--current":`_step__label--current_kxw14_41`,"step__label--upcoming":`_step__label--upcoming_kxw14_42`,step__desc:`_step__desc_kxw14_43`,connector:`_connector_kxw14_46`,"connector--horizontal":`_connector--horizontal_kxw14_47`,"connector--vertical":`_connector--vertical_kxw14_48`,"connector--filled":`_connector--filled_kxw14_49`},Pr=({index:e,state:t,label:n,description:r,orientation:i=`horizontal`})=>(0,l.jsxs)(`div`,{className:[Z.step,Z[`step--${i}`]].join(` `),children:[(0,l.jsx)(`span`,{className:[Z.circle,Z[`circle--${t}`]].join(` `),"aria-hidden":`true`,children:t===`completed`?(0,l.jsx)(u.Check,{size:14,strokeWidth:p(14)}):(0,l.jsx)(`span`,{className:Z.circle__num,children:e+1})}),(0,l.jsxs)(`span`,{className:Z.step__text,children:[(0,l.jsx)(`span`,{className:[Z.step__label,t===`current`?Z[`step__label--current`]:``,t===`upcoming`?Z[`step__label--upcoming`]:``].filter(Boolean).join(` `),children:n}),r&&(0,l.jsx)(`span`,{className:Z.step__desc,children:r})]})]}),Fr=({steps:e,current:t,orientation:n=`horizontal`,className:r})=>{let i=e=>e<t?`completed`:e===t?`current`:`upcoming`;return(0,l.jsx)(`div`,{className:[Z.stepper,Z[`stepper--${n}`],r??``].filter(Boolean).join(` `),children:e.map((r,a)=>(0,l.jsxs)(c.default.Fragment,{children:[(0,l.jsx)(Pr,{index:a,state:i(a),label:r.label,description:r.description,orientation:n}),a<e.length-1&&(0,l.jsx)(`span`,{className:[Z.connector,Z[`connector--${n}`],a<t?Z[`connector--filled`]:``].filter(Boolean).join(` `),"aria-hidden":`true`})]},a))})},Ir={wrapper:`_wrapper_bkgd3_3`,"wrapper--disabled":`_wrapper--disabled_bkgd3_11`,input:`_input_bkgd3_13`,track:`_track_bkgd3_15`,thumb:`_thumb_bkgd3_28`,label:`_label_bkgd3_45`},Lr=c.default.forwardRef(({label:e,disabled:t,id:n,className:r,...i},a)=>{let o=c.default.useId(),s=n??o;return(0,l.jsxs)(`label`,{htmlFor:s,className:[Ir.wrapper,t?Ir[`wrapper--disabled`]:``,r??``].filter(Boolean).join(` `),children:[(0,l.jsx)(`input`,{ref:a,id:s,type:`checkbox`,role:`switch`,disabled:t,className:Ir.input,...i}),(0,l.jsx)(`span`,{className:Ir.track,"aria-hidden":`true`,children:(0,l.jsx)(`span`,{className:Ir.thumb})}),e&&(0,l.jsx)(`span`,{className:Ir.label,children:e})]})});Lr.displayName=`Switch`;var Q={wrap:`_wrap_okjfz_6`,"wrap--bordered":`_wrap--bordered_okjfz_17`,table:`_table_okjfz_22`,headerRow:`_headerRow_okjfz_44`,headerCell:`_headerCell_okjfz_45`,bodyRow:`_bodyRow_okjfz_61`,"bodyRow--selected":`_bodyRow--selected_okjfz_66`,bodyCell:`_bodyCell_okjfz_68`,checkCell:`_checkCell_okjfz_80`,checkbox:`_checkbox_okjfz_104`,checkbox__input:`_checkbox__input_okjfz_111`,checkbox__box:`_checkbox__box_okjfz_113`,checkbox__check:`_checkbox__check_okjfz_134`,checkbox__dash:`_checkbox__dash_okjfz_141`,stackedList:`_stackedList_okjfz_160`,card:`_card_okjfz_167`,"card--selected":`_card--selected_okjfz_177`,card__field:`_card__field_okjfz_179`,card__label:`_card__label_okjfz_187`,card__value:`_card__value_okjfz_193`,card__selectRow:`_card__selectRow_okjfz_203`,"bodyRow--draggable":`_bodyRow--draggable_okjfz_213`,"bodyRow--dragging":`_bodyRow--dragging_okjfz_215`,"bodyRow--dropTarget":`_bodyRow--dropTarget_okjfz_216`},Rr=640;function zr(e){let[t,n]=c.default.useState(!1);return c.default.useEffect(()=>{if(e!==`auto`)return;let t=window.matchMedia(`(max-width: ${Rr}px)`);n(t.matches);let r=e=>n(e.matches);return t.addEventListener(`change`,r),()=>t.removeEventListener(`change`,r)},[e]),e==="default"?`default`:e===`stacked`||t?`stacked`:`default`}var Br=({checked:e,indeterminate:t,onChange:n,label:r})=>{let i=c.default.useRef(null);return c.default.useEffect(()=>{i.current&&(i.current.indeterminate=!!t)},[t]),(0,l.jsxs)(`label`,{className:Q.checkbox,children:[(0,l.jsx)(`input`,{ref:i,type:`checkbox`,checked:e,onChange:n,className:Q.checkbox__input,"aria-label":r}),(0,l.jsxs)(`span`,{className:Q.checkbox__box,"aria-hidden":`true`,children:[(0,l.jsx)(`svg`,{className:Q.checkbox__check,width:12,height:12,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:3,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,l.jsx)(`polyline`,{points:`20 6 9 17 4 12`})}),(0,l.jsx)(`span`,{className:Q.checkbox__dash})]})]})};function Vr({columns:e,rows:t,selectable:n,selectedRows:r,onSelectionChange:i,rowKey:a,reorderable:o,onReorder:s,bordered:u=!0,responsive:d=`auto`,className:f}){let p=zr(d),m=r!==void 0,[h,g]=c.default.useState([]),_=m?r:h,v=e=>{m||g(e),i?.(e)},y=t.length>0&&_.length===t.length,b=_.length>0&&!y,[x,S]=c.default.useState(null),[C,w]=c.default.useState(null),T=()=>{if(x===null||C===null||x===C){S(null),w(null);return}let e=[...t],[n]=e.splice(x,1);e.splice(C,0,n),s?.(e),S(null),w(null)},E=()=>v(y?[]:t.map((e,t)=>t)),D=e=>v(_.includes(e)?_.filter(t=>t!==e):[..._,e]);return p===`stacked`?(0,l.jsx)(`div`,{className:[Q.stackedList,f??``].filter(Boolean).join(` `),role:`list`,children:t.map((t,r)=>{let i=_.includes(r);return(0,l.jsxs)(`div`,{role:`listitem`,className:[Q.card,i?Q[`card--selected`]:``].filter(Boolean).join(` `),children:[n&&(0,l.jsx)(`div`,{className:Q.card__selectRow,children:(0,l.jsx)(Br,{checked:i,onChange:()=>D(r),label:`Select row ${r+1}`})}),e.map(e=>(0,l.jsxs)(`div`,{className:Q.card__field,children:[(0,l.jsx)(`span`,{className:Q.card__label,children:e.header}),(0,l.jsx)(`span`,{className:Q.card__value,children:e.render?e.render(t):String(t[e.key]??``)})]},e.key))]},a?a(t,r):r)})}):(0,l.jsx)(`div`,{className:[Q.wrap,u?Q[`wrap--bordered`]:``,f??``].filter(Boolean).join(` `),children:(0,l.jsxs)(`table`,{className:Q.table,children:[(0,l.jsx)(`thead`,{children:(0,l.jsxs)(`tr`,{className:Q.headerRow,children:[n&&(0,l.jsx)(`th`,{className:Q.checkCell,children:(0,l.jsx)(Br,{checked:y,indeterminate:b,onChange:E,label:`Select all rows`})}),e.map(e=>(0,l.jsx)(`th`,{className:Q.headerCell,style:{textAlign:e.align??`left`,width:e.width},children:e.header},e.key))]})}),(0,l.jsx)(`tbody`,{children:t.map((t,r)=>{let i=_.includes(r);return(0,l.jsxs)(`tr`,{draggable:o||void 0,onDragStart:o?()=>S(r):void 0,onDragOver:o?e=>{e.preventDefault(),w(r)}:void 0,onDrop:o?T:void 0,onDragEnd:o?()=>{S(null),w(null)}:void 0,className:[Q.bodyRow,i?Q[`bodyRow--selected`]:``,o?Q[`bodyRow--draggable`]:``,C===r&&x!==null&&x!==r?Q[`bodyRow--dropTarget`]:``,x===r?Q[`bodyRow--dragging`]:``].filter(Boolean).join(` `),children:[n&&(0,l.jsx)(`td`,{className:Q.checkCell,children:(0,l.jsx)(Br,{checked:i,onChange:()=>D(r),label:`Select row ${r+1}`})}),e.map(e=>(0,l.jsx)(`td`,{className:Q.bodyCell,style:{textAlign:e.align??`left`},children:e.render?e.render(t):String(t[e.key]??``)},e.key))]},a?a(t,r):r)})})]})})}var Hr={tabs:`_tabs_1122j_3`,"tabs--borderless":`_tabs--borderless_1122j_16`,"tabs--fill":`_tabs--fill_1122j_21`,tab:`_tab_1122j_3`,"tab--disabled":`_tab--disabled_1122j_61`,"tab--active":`_tab--active_1122j_63`,indicator:`_indicator_1122j_74`,"indicator--animated":`_indicator--animated_1122j_88`},Ur=({items:e,value:t,defaultValue:n,onChange:r,bordered:i=!0,fill:a=!1,className:o})=>{let s=t!==void 0,[u,d]=c.default.useState(n??e[0]?.value),f=s?t:u,m=e=>{s||d(e),r?.(e)},h=c.default.useRef(null),g=c.default.useRef({}),[_,v]=c.default.useState(null),[y,b]=c.default.useState(!1);return c.default.useLayoutEffect(()=>{let e=()=>{let e=g.current[f];!e||!h.current||v({left:e.offsetLeft,width:e.offsetWidth})};e();let t=window.requestAnimationFrame(()=>b(!0)),n=new ResizeObserver(e);return h.current&&n.observe(h.current),()=>{window.cancelAnimationFrame(t),n.disconnect()}},[f,e]),(0,l.jsxs)(`div`,{ref:h,role:`tablist`,className:[Hr.tabs,i?``:Hr[`tabs--borderless`],a?Hr[`tabs--fill`]:``,o??``].filter(Boolean).join(` `),children:[e.map(e=>{let t=e.value===f,n=e.icon;return(0,l.jsxs)(`button`,{ref:t=>{g.current[e.value]=t},role:`tab`,type:`button`,"aria-selected":t,disabled:e.disabled,className:[Hr.tab,t?Hr[`tab--active`]:``,e.disabled?Hr[`tab--disabled`]:``].filter(Boolean).join(` `),onClick:()=>m(e.value),children:[n&&(0,l.jsx)(n,{size:16,strokeWidth:p(16),"aria-hidden":`true`}),e.label]},e.value)}),_&&(0,l.jsx)(`span`,{"aria-hidden":`true`,className:[Hr.indicator,y?Hr[`indicator--animated`]:``].filter(Boolean).join(` `),style:{transform:`translateX(${_.left}px)`,width:_.width}})]})},Wr={field:`_field_644oy_6`,field__label:`_field__label_644oy_8`,field__description:`_field__description_644oy_9`,field__error:`_field__error_644oy_10`,textarea:`_textarea_644oy_12`,"textarea--error":`_textarea--error_644oy_37`,"textarea--disabled":`_textarea--disabled_644oy_43`},Gr=c.default.forwardRef(({label:e,description:t,error:n,disabled:r,id:i,className:a,rows:o=4,...s},u)=>{let d=c.default.useId(),f=i??d,p=!!n;return(0,l.jsxs)(`div`,{className:[Wr.field,a??``].filter(Boolean).join(` `),children:[e&&(0,l.jsx)(`label`,{htmlFor:f,className:Wr.field__label,children:e}),(0,l.jsx)(`textarea`,{ref:u,id:f,rows:o,disabled:r,"aria-invalid":p||void 0,className:[Wr.textarea,p?Wr[`textarea--error`]:``,r?Wr[`textarea--disabled`]:``].filter(Boolean).join(` `),...s}),(t||n)&&(0,l.jsx)(`span`,{className:p?Wr.field__error:Wr.field__description,children:n||t})]})});Gr.displayName=`Textarea`;var Kr={toast:`_toast_8yqwj_3`,toast__icon:`_toast__icon_8yqwj_17`,"toast--success":`_toast--success_8yqwj_18`,"toast--error":`_toast--error_8yqwj_19`,"toast--info":`_toast--info_8yqwj_20`,toast__content:`_toast__content_8yqwj_22`,toast__title:`_toast__title_8yqwj_23`,toast__description:`_toast__description_8yqwj_24`,toast__dismiss:`_toast__dismiss_8yqwj_26`},qr={success:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`path`,{d:`M22 11.08V12a10 10 0 1 1-5.93-9.14`}),(0,l.jsx)(`polyline`,{points:`22 4 12 14.01 9 11.01`})]}),error:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,l.jsx)(`line`,{x1:`15`,y1:`9`,x2:`9`,y2:`15`}),(0,l.jsx)(`line`,{x1:`9`,y1:`9`,x2:`15`,y2:`15`})]}),info:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,l.jsx)(`line`,{x1:`12`,y1:`16`,x2:`12`,y2:`12`}),(0,l.jsx)(`line`,{x1:`12`,y1:`8`,x2:`12.01`,y2:`8`})]})},Jr=({status:e=`info`,title:t,description:n,onDismiss:r,className:i})=>(0,l.jsxs)(`div`,{role:e===`error`?`alert`:`status`,"aria-live":e===`error`?`assertive`:`polite`,className:[Kr.toast,Kr[`toast--${e}`],i??``].filter(Boolean).join(` `),children:[(0,l.jsx)(`span`,{className:Kr.toast__icon,"aria-hidden":`true`,children:(0,l.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:p(18),strokeLinecap:`round`,strokeLinejoin:`round`,width:18,height:18,children:qr[e]})}),(0,l.jsxs)(`div`,{className:Kr.toast__content,children:[t&&(0,l.jsx)(`div`,{className:Kr.toast__title,children:t}),n&&(0,l.jsx)(`div`,{className:Kr.toast__description,children:n})]}),r&&(0,l.jsx)(`button`,{type:`button`,className:Kr.toast__dismiss,onClick:r,"aria-label":`Dismiss`,children:(0,l.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:p(16),strokeLinecap:`round`,strokeLinejoin:`round`,width:16,height:16,children:[(0,l.jsx)(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),(0,l.jsx)(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})]})})]}),Yr={wrapper:`_wrapper_w6wtp_8`,bubble:`_bubble_w6wtp_8`,bubble__title:`_bubble__title_w6wtp_46`,bubble__subtitle:`_bubble__subtitle_w6wtp_53`,caret:`_caret_w6wtp_66`,"bubble--top-left":`_bubble--top-left_w6wtp_69`,"bubble--top-center":`_bubble--top-center_w6wtp_70`,"bubble--top-right":`_bubble--top-right_w6wtp_71`,"caret--top-left":`_caret--top-left_w6wtp_78`,"caret--top-center":`_caret--top-center_w6wtp_79`,"caret--top-right":`_caret--top-right_w6wtp_80`,"bubble--bottom-left":`_bubble--bottom-left_w6wtp_91`,"bubble--bottom-center":`_bubble--bottom-center_w6wtp_92`,"bubble--bottom-right":`_bubble--bottom-right_w6wtp_93`,"caret--bottom-left":`_caret--bottom-left_w6wtp_100`,"caret--bottom-center":`_caret--bottom-center_w6wtp_101`,"caret--bottom-right":`_caret--bottom-right_w6wtp_102`,"bubble--center-left":`_bubble--center-left_w6wtp_113`,"caret--center-left":`_caret--center-left_w6wtp_121`,"bubble--center-right":`_bubble--center-right_w6wtp_131`,"caret--center-right":`_caret--center-right_w6wtp_139`},Xr=({title:e,subtitle:t,pointer:n=`top-center`,children:r,className:i})=>{let[a,o]=c.default.useState(!1);return c.default.useEffect(()=>{let e=e=>{e.key===`Escape`&&o(!0)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[]),(0,l.jsxs)(`span`,{className:[Yr.wrapper,i??``].filter(Boolean).join(` `),"data-dismissed":a||void 0,onMouseLeave:()=>o(!1),onBlur:()=>o(!1),children:[r,(0,l.jsxs)(`span`,{role:`tooltip`,className:[Yr.bubble,Yr[`bubble--${n}`]].join(` `),children:[(0,l.jsx)(`span`,{className:Yr.bubble__title,children:e}),t&&(0,l.jsx)(`span`,{className:Yr.bubble__subtitle,children:t}),(0,l.jsx)(`span`,{className:[Yr.caret,Yr[`caret--${n}`]].join(` `),"aria-hidden":`true`})]})]})},$={bar:`_bar_1fiq0_2`,"bar--md":`_bar--md_1fiq0_11`,"bar--sm":`_bar--sm_1fiq0_12`,bar__leftGroup:`_bar__leftGroup_1fiq0_20`,bar__left:`_bar__left_1fiq0_20`,bar__spacer:`_bar__spacer_1fiq0_27`,bar__right:`_bar__right_1fiq0_30`,bar__icon:`_bar__icon_1fiq0_36`,bar__bell:`_bar__bell_1fiq0_43`,bar__dot:`_bar__dot_1fiq0_44`,bar__divider:`_bar__divider_1fiq0_49`,bar__account:`_bar__account_1fiq0_50`,"bar--chat":`_bar--chat_1fiq0_56`,bar__chatAvatar:`_bar__chatAvatar_1fiq0_64`,bar__chatMeta:`_bar__chatMeta_1fiq0_65`,bar__chatTitle:`_bar__chatTitle_1fiq0_66`,bar__chatSubtitle:`_bar__chatSubtitle_1fiq0_71`,bar__chatActions:`_bar__chatActions_1fiq0_75`,"bar__left--search":`_bar__left--search_1fiq0_79`,bar__accountChevron:`_bar__accountChevron_1fiq0_91`,"bar__accountChevron--open":`_bar__accountChevron--open_1fiq0_97`},Zr=({type:e=`search`,density:t=`md`,left:n,showToggle:r=!0,onToggle:i,toggleIcon:a=u.PanelLeft,showActions:o=!0,showHelp:s=!0,hasUnread:c=!1,rightSlot:d,account:f,accountOpen:m=!1,avatar:h,title:g,subtitle:_,actions:v,className:y})=>{let b=t===`md`?20:18,x=p(b);return(0,l.jsx)(`header`,{className:[$.bar,$[`bar--${t}`],$[`bar--${e}`],y??``].filter(Boolean).join(` `),children:e===`chat`?(0,l.jsxs)(l.Fragment,{children:[h&&(0,l.jsx)(`span`,{className:$.bar__chatAvatar,children:h}),(0,l.jsxs)(`span`,{className:$.bar__chatMeta,children:[g&&(0,l.jsx)(`span`,{className:$.bar__chatTitle,children:g}),_&&(0,l.jsx)(`span`,{className:$.bar__chatSubtitle,children:_})]}),(0,l.jsx)(`div`,{className:$.bar__spacer}),v&&(0,l.jsx)(`div`,{className:$.bar__chatActions,children:v})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(`div`,{className:$.bar__leftGroup,children:[r&&(0,l.jsx)(`button`,{type:`button`,className:$.bar__icon,onClick:i,"aria-label":`Toggle sidebar`,children:(0,l.jsx)(a,{size:b,strokeWidth:x})}),(0,l.jsx)(`div`,{className:[$.bar__left,e===`search`?$[`bar__left--search`]:``].filter(Boolean).join(` `),"data-type":e,children:n})]}),(0,l.jsx)(`div`,{className:$.bar__spacer}),(0,l.jsxs)(`div`,{className:$.bar__right,children:[d,o&&(0,l.jsxs)(l.Fragment,{children:[s&&(0,l.jsx)(`button`,{type:`button`,className:$.bar__icon,"aria-label":`Help`,children:(0,l.jsx)(u.CircleHelp,{size:b,strokeWidth:x})}),(0,l.jsx)(`button`,{type:`button`,className:$.bar__icon,"aria-label":`Notifications`,children:(0,l.jsxs)(`span`,{className:$.bar__bell,children:[(0,l.jsx)(u.Bell,{size:b,strokeWidth:x}),c&&(0,l.jsx)(`span`,{className:$.bar__dot,"aria-hidden":`true`})]})}),(0,l.jsx)(`span`,{className:$.bar__divider})]}),f&&(0,l.jsxs)(`div`,{className:$.bar__account,children:[f,(0,l.jsx)(u.ChevronDown,{size:16,strokeWidth:p(16),className:[$.bar__accountChevron,m?$[`bar__accountChevron--open`]:``].filter(Boolean).join(` `)})]})]})]})})},Qr={bar:`_bar_14cqo_2`,bar__icon:`_bar__icon_14cqo_10`,bar__title:`_bar__title_14cqo_17`,"bar__title--center":`_bar__title--center_14cqo_21`,bar__search:`_bar__search_14cqo_22`},$r=({type:e=`title`,title:t,trailing:n,search:r,onMenu:i,onAction:a,onClose:o,className:s})=>(0,l.jsxs)(`header`,{className:[Qr.bar,s??``].filter(Boolean).join(` `),children:[(0,l.jsx)(`button`,{type:`button`,className:Qr.bar__icon,onClick:i,"aria-label":`Open menu`,children:(0,l.jsx)(u.Menu,{size:18,strokeWidth:p(18)})}),e===`search`?(0,l.jsx)(`div`,{className:Qr.bar__search,children:r}):(0,l.jsx)(`span`,{className:[Qr.bar__title,e===`title-centered`?Qr[`bar__title--center`]:``].join(` `),children:t}),e===`title-action`&&(0,l.jsx)(`button`,{type:`button`,className:Qr.bar__icon,onClick:a,"aria-label":`Add`,children:(0,l.jsx)(u.Plus,{size:18,strokeWidth:p(18)})}),e===`search`&&(0,l.jsx)(`button`,{type:`button`,className:Qr.bar__icon,onClick:o,"aria-label":`Close search`,children:(0,l.jsx)(u.X,{size:18,strokeWidth:p(18)})}),(e===`title`||e===`title-centered`)&&n]});exports.Accordion=g,exports.AccordionItem=h,exports.ActivityFeed=T,exports.ActivityFeedHighlight=S,exports.Alert=it,exports.Announcement=ee,exports.AreaChart=ct,exports.Avatar=b,exports.AvatarGroup=ut,exports.AvatarUpload=te,exports.Badge=qe,exports.Balance=ue,exports.BarChart=Ue,exports.BoardCard=dt,exports.BoardColumn=pt,exports.Breadcrumb=gt,exports.Button=N,exports.Calendar=xt,exports.Card=Ct,exports.CardMetaItem=Tt,exports.ChatComposer=Dt,exports.Checkbox=kt,exports.CodeSnippet=he,exports.Combobox=At,exports.ConversationItem=jt,exports.Divider=Te,exports.DonutChart=Ft,exports.EmptyState=Rt,exports.Expenses=be,exports.FileUpload=zt,exports.FilterChip=Vt,exports.FunnelChart=qt,exports.HeatmapChart=Zt,exports.IconButton=A,exports.InlineHint=Ce,exports.Input=tn,exports.Kbd=rn,exports.Label=on,exports.LineChart=dn,exports.Link=D,exports.ListItem=pn,exports.Menu=hn,exports.MenuDivider=gn,exports.MenuItem=vn,exports.MessageBubble=yn,exports.Modal=De,exports.NotificationItem=Oe,exports.Pagination=Sn,exports.PieChart=jn,exports.Popover=Nn,exports.Progress=_e,exports.ProgressItem=ke,exports.ProgressStat=je,exports.RadarChart=Wn,exports.RadialChart=$n,exports.Radio=tr,exports.RichSeparator=Ne,exports.SegmentedControl=rr,exports.Select=ir,exports.Sidebar=or,exports.SidebarDivider=cr,exports.SidebarFooter=ur,exports.SidebarGroupLabel=fr,exports.SidebarHeader=pr,exports.SidebarItem=hr,exports.SidebarPromo=_r,exports.SidebarSearch=yr,exports.SidebarSubItem=xr,exports.Skeleton=Cr,exports.Slider=Tr,exports.SpendingBalance=Ie,exports.Spinner=Dr,exports.StatCard=Nr,exports.Stepper=Fr,exports.StepperStep=Pr,exports.StockMarket=Ge,exports.Switch=Lr,exports.Table=Vr,exports.Tabs=Ur,exports.Tags=Ye,exports.Textarea=Gr,exports.Ticker=$e,exports.Toast=Jr,exports.Tooltip=Xr,exports.TopBar=Zr,exports.TopBarMobile=$r,exports.Transactions=tt;