@omni-design/components 0.7.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 (223) hide show
  1. package/.claude/commands/ScanComponents.md +26 -0
  2. package/.claude/commands/ShareComponent.md +128 -0
  3. package/.cursorrules +21 -0
  4. package/CLAUDE.md +1046 -0
  5. package/README.md +70 -0
  6. package/dist/OmniDesignProvider.esm.js +2 -0
  7. package/dist/OmniDesignProvider.esm.js.map +1 -0
  8. package/dist/OmniDesignProvider.js +2 -0
  9. package/dist/OmniDesignProvider.js.map +1 -0
  10. package/dist/index.esm.js +42 -0
  11. package/dist/index.esm.js.map +1 -0
  12. package/dist/index.js +42 -0
  13. package/dist/index.js.map +1 -0
  14. package/dist/types/OmniDesignProvider.d.ts +158 -0
  15. package/dist/types/components/Accordion/Accordion.d.ts +42 -0
  16. package/dist/types/components/Accordion/AccordionShowcase.d.ts +2 -0
  17. package/dist/types/components/Accordion/index.d.ts +2 -0
  18. package/dist/types/components/Alert/Alert.d.ts +14 -0
  19. package/dist/types/components/Alert/AlertShowcase.d.ts +2 -0
  20. package/dist/types/components/Alert/index.d.ts +2 -0
  21. package/dist/types/components/AppBar/AppBar.d.ts +43 -0
  22. package/dist/types/components/AppBar/AppBarShowcase.d.ts +2 -0
  23. package/dist/types/components/AppBar/index.d.ts +2 -0
  24. package/dist/types/components/Autocomplete/Autocomplete.d.ts +26 -0
  25. package/dist/types/components/Autocomplete/AutocompleteShowcase.d.ts +2 -0
  26. package/dist/types/components/Autocomplete/index.d.ts +2 -0
  27. package/dist/types/components/Avatar/Avatar.d.ts +29 -0
  28. package/dist/types/components/Avatar/AvatarShowcase.d.ts +2 -0
  29. package/dist/types/components/Avatar/defaultAvatar.d.ts +2 -0
  30. package/dist/types/components/Avatar/index.d.ts +3 -0
  31. package/dist/types/components/BackgroundPicker.d.ts +12 -0
  32. package/dist/types/components/Badge/Badge.d.ts +43 -0
  33. package/dist/types/components/Badge/BadgeShowcase.d.ts +1 -0
  34. package/dist/types/components/Badge/index.d.ts +2 -0
  35. package/dist/types/components/BevelText/BevelText.d.ts +15 -0
  36. package/dist/types/components/BevelText/BevelTextShowcase.d.ts +2 -0
  37. package/dist/types/components/BevelText/index.d.ts +2 -0
  38. package/dist/types/components/BottomNavigation/BottomNavigation.d.ts +15 -0
  39. package/dist/types/components/BottomNavigation/BottomNavigationShowcase.d.ts +2 -0
  40. package/dist/types/components/BottomNavigation/index.d.ts +2 -0
  41. package/dist/types/components/Box/Box.d.ts +36 -0
  42. package/dist/types/components/Box/BoxShowcase.d.ts +2 -0
  43. package/dist/types/components/Box/index.d.ts +2 -0
  44. package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +22 -0
  45. package/dist/types/components/Breadcrumbs/BreadcrumbsShowcase.d.ts +2 -0
  46. package/dist/types/components/Breadcrumbs/index.d.ts +2 -0
  47. package/dist/types/components/Button/Button.d.ts +66 -0
  48. package/dist/types/components/Button/index.d.ts +2 -0
  49. package/dist/types/components/ButtonGroup/ButtonGroup.d.ts +41 -0
  50. package/dist/types/components/ButtonGroup/index.d.ts +2 -0
  51. package/dist/types/components/Card/Card.d.ts +54 -0
  52. package/dist/types/components/Card/CardShowcase.d.ts +2 -0
  53. package/dist/types/components/Card/index.d.ts +2 -0
  54. package/dist/types/components/Checkbox/Checkbox.d.ts +51 -0
  55. package/dist/types/components/Checkbox/index.d.ts +2 -0
  56. package/dist/types/components/Chip/Chip.d.ts +42 -0
  57. package/dist/types/components/Chip/ChipShowcase.d.ts +2 -0
  58. package/dist/types/components/Chip/index.d.ts +2 -0
  59. package/dist/types/components/CircularProgress/CircularProgress.d.ts +12 -0
  60. package/dist/types/components/CircularProgress/CircularProgressShowcase.d.ts +2 -0
  61. package/dist/types/components/CircularProgress/index.d.ts +2 -0
  62. package/dist/types/components/CodeBlock/CodeBlock.d.ts +35 -0
  63. package/dist/types/components/Colors/Colors.d.ts +7 -0
  64. package/dist/types/components/Colors/index.d.ts +1 -0
  65. package/dist/types/components/Container/Container.d.ts +70 -0
  66. package/dist/types/components/Container/index.d.ts +1 -0
  67. package/dist/types/components/Copyright/Copyright.d.ts +11 -0
  68. package/dist/types/components/Copyright/CopyrightShowcase.d.ts +2 -0
  69. package/dist/types/components/Copyright/index.d.ts +2 -0
  70. package/dist/types/components/CurvedText/CurvedText.d.ts +23 -0
  71. package/dist/types/components/CurvedText/CurvedTextShowcase.d.ts +2 -0
  72. package/dist/types/components/CurvedText/index.d.ts +2 -0
  73. package/dist/types/components/Dialog/Dialog.d.ts +82 -0
  74. package/dist/types/components/Dialog/DialogShowcase.d.ts +2 -0
  75. package/dist/types/components/Dialog/index.d.ts +2 -0
  76. package/dist/types/components/Divider/Divider.d.ts +22 -0
  77. package/dist/types/components/Divider/DividerShowcase.d.ts +2 -0
  78. package/dist/types/components/Divider/index.d.ts +2 -0
  79. package/dist/types/components/Drawer/Drawer.d.ts +30 -0
  80. package/dist/types/components/Drawer/DrawerShowcase.d.ts +2 -0
  81. package/dist/types/components/Drawer/index.d.ts +2 -0
  82. package/dist/types/components/DropZone/DropZone.d.ts +15 -0
  83. package/dist/types/components/DropZone/index.d.ts +2 -0
  84. package/dist/types/components/Fab/Fab.d.ts +17 -0
  85. package/dist/types/components/Fab/FabShowcase.d.ts +2 -0
  86. package/dist/types/components/Fab/index.d.ts +2 -0
  87. package/dist/types/components/Footer/Footer.d.ts +14 -0
  88. package/dist/types/components/Footer/FooterShowcase.d.ts +2 -0
  89. package/dist/types/components/Footer/index.d.ts +2 -0
  90. package/dist/types/components/Gradient/Gradient.d.ts +38 -0
  91. package/dist/types/components/Gradient/GradientShowcase.d.ts +2 -0
  92. package/dist/types/components/Gradient/gradientUtils.d.ts +185 -0
  93. package/dist/types/components/Gradient/index.d.ts +3 -0
  94. package/dist/types/components/Grid/Grid.d.ts +112 -0
  95. package/dist/types/components/Grid/index.d.ts +1 -0
  96. package/dist/types/components/Header/Header.d.ts +53 -0
  97. package/dist/types/components/Header/index.d.ts +1 -0
  98. package/dist/types/components/Icon/Icon.d.ts +19 -0
  99. package/dist/types/components/Icon/IconShowcase.d.ts +2 -0
  100. package/dist/types/components/Icon/index.d.ts +2 -0
  101. package/dist/types/components/IconBadge/IconBadge.d.ts +10 -0
  102. package/dist/types/components/IconBadge/IconBadgeShowcase.d.ts +2 -0
  103. package/dist/types/components/IconBadge/index.d.ts +2 -0
  104. package/dist/types/components/Input/Input.d.ts +47 -0
  105. package/dist/types/components/Input/index.d.ts +2 -0
  106. package/dist/types/components/LinearProgress/LinearProgress.d.ts +9 -0
  107. package/dist/types/components/LinearProgress/LinearProgressShowcase.d.ts +2 -0
  108. package/dist/types/components/LinearProgress/index.d.ts +2 -0
  109. package/dist/types/components/Link/Link.d.ts +16 -0
  110. package/dist/types/components/Link/LinkShowcase.d.ts +2 -0
  111. package/dist/types/components/Link/index.d.ts +2 -0
  112. package/dist/types/components/List/List.d.ts +55 -0
  113. package/dist/types/components/List/ListShowcase.d.ts +2 -0
  114. package/dist/types/components/List/index.d.ts +2 -0
  115. package/dist/types/components/MainLayout/MainLayout.d.ts +28 -0
  116. package/dist/types/components/MainLayout/index.d.ts +1 -0
  117. package/dist/types/components/Menu/Menu.d.ts +37 -0
  118. package/dist/types/components/Menu/MenuShowcase.d.ts +2 -0
  119. package/dist/types/components/Menu/index.d.ts +2 -0
  120. package/dist/types/components/Modal/Modal.d.ts +18 -0
  121. package/dist/types/components/Modal/ModalShowcase.d.ts +2 -0
  122. package/dist/types/components/Modal/index.d.ts +2 -0
  123. package/dist/types/components/NumberField/NumberField.d.ts +22 -0
  124. package/dist/types/components/NumberField/NumberFieldShowcase.d.ts +2 -0
  125. package/dist/types/components/NumberField/index.d.ts +2 -0
  126. package/dist/types/components/Pagination/Pagination.d.ts +17 -0
  127. package/dist/types/components/Pagination/PaginationShowcase.d.ts +2 -0
  128. package/dist/types/components/Pagination/index.d.ts +2 -0
  129. package/dist/types/components/Paper/Paper.d.ts +111 -0
  130. package/dist/types/components/Paper/index.d.ts +1 -0
  131. package/dist/types/components/Popover/Popover.d.ts +31 -0
  132. package/dist/types/components/Popover/index.d.ts +1 -0
  133. package/dist/types/components/PreviewSurface.d.ts +18 -0
  134. package/dist/types/components/Radio/Radio.d.ts +55 -0
  135. package/dist/types/components/Radio/RadioShowcase.d.ts +2 -0
  136. package/dist/types/components/Radio/index.d.ts +2 -0
  137. package/dist/types/components/Rail/Rail.d.ts +15 -0
  138. package/dist/types/components/Rail/RailShowcase.d.ts +2 -0
  139. package/dist/types/components/Rail/index.d.ts +2 -0
  140. package/dist/types/components/Rating/Rating.d.ts +16 -0
  141. package/dist/types/components/Rating/RatingShowcase.d.ts +2 -0
  142. package/dist/types/components/Rating/index.d.ts +2 -0
  143. package/dist/types/components/Ratio/Ratio.d.ts +20 -0
  144. package/dist/types/components/Ratio/RatioShowcase.d.ts +2 -0
  145. package/dist/types/components/Ratio/index.d.ts +2 -0
  146. package/dist/types/components/SearchField/SearchField.d.ts +19 -0
  147. package/dist/types/components/SearchField/SearchFieldShowcase.d.ts +2 -0
  148. package/dist/types/components/SearchField/index.d.ts +2 -0
  149. package/dist/types/components/Section/Section.d.ts +44 -0
  150. package/dist/types/components/Section/SectionShowcase.d.ts +2 -0
  151. package/dist/types/components/Section/index.d.ts +2 -0
  152. package/dist/types/components/Select/Select.d.ts +23 -0
  153. package/dist/types/components/Select/SelectShowcase.d.ts +2 -0
  154. package/dist/types/components/Select/index.d.ts +2 -0
  155. package/dist/types/components/SettingsPanel.d.ts +2 -0
  156. package/dist/types/components/Sidebar/Sidebar.d.ts +53 -0
  157. package/dist/types/components/Sidebar/index.d.ts +1 -0
  158. package/dist/types/components/Slider/Slider.d.ts +79 -0
  159. package/dist/types/components/Slider/SliderShowcase.d.ts +2 -0
  160. package/dist/types/components/Slider/index.d.ts +2 -0
  161. package/dist/types/components/Snackbar/Snackbar.d.ts +17 -0
  162. package/dist/types/components/Snackbar/SnackbarShowcase.d.ts +2 -0
  163. package/dist/types/components/Snackbar/index.d.ts +2 -0
  164. package/dist/types/components/Spacing/Spacing.d.ts +16 -0
  165. package/dist/types/components/Spacing/index.d.ts +1 -0
  166. package/dist/types/components/SpeedDial/SpeedDial.d.ts +17 -0
  167. package/dist/types/components/SpeedDial/SpeedDialShowcase.d.ts +2 -0
  168. package/dist/types/components/SpeedDial/index.d.ts +2 -0
  169. package/dist/types/components/Stack/Stack.d.ts +52 -0
  170. package/dist/types/components/Stack/StackShowcase.d.ts +2 -0
  171. package/dist/types/components/Stack/index.d.ts +2 -0
  172. package/dist/types/components/Stepper/Stepper.d.ts +33 -0
  173. package/dist/types/components/Stepper/StepperShowcase.d.ts +2 -0
  174. package/dist/types/components/Stepper/index.d.ts +2 -0
  175. package/dist/types/components/Switch/Switch.d.ts +65 -0
  176. package/dist/types/components/Switch/SwitchShowcase.d.ts +2 -0
  177. package/dist/types/components/Switch/index.d.ts +2 -0
  178. package/dist/types/components/Table/Table.d.ts +20 -0
  179. package/dist/types/components/Table/TableShowcase.d.ts +2 -0
  180. package/dist/types/components/Table/index.d.ts +2 -0
  181. package/dist/types/components/Tabs/Tabs.d.ts +51 -0
  182. package/dist/types/components/Tabs/TabsShowcase.d.ts +2 -0
  183. package/dist/types/components/Tabs/index.d.ts +2 -0
  184. package/dist/types/components/Tag/Tag.d.ts +57 -0
  185. package/dist/types/components/Tag/TagShowcase.d.ts +2 -0
  186. package/dist/types/components/Tag/index.d.ts +2 -0
  187. package/dist/types/components/TextField/TextField.d.ts +105 -0
  188. package/dist/types/components/TextField/index.d.ts +1 -0
  189. package/dist/types/components/ToggleButton/ToggleButton.d.ts +94 -0
  190. package/dist/types/components/ToggleButton/index.d.ts +1 -0
  191. package/dist/types/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +48 -0
  192. package/dist/types/components/Toolbar/Toolbar.d.ts +14 -0
  193. package/dist/types/components/Toolbar/ToolbarShowcase.d.ts +2 -0
  194. package/dist/types/components/Toolbar/index.d.ts +2 -0
  195. package/dist/types/components/Tooltip/Tooltip.d.ts +20 -0
  196. package/dist/types/components/Tooltip/TooltipShowcase.d.ts +2 -0
  197. package/dist/types/components/Tooltip/index.d.ts +2 -0
  198. package/dist/types/components/TreeView/TreeBranch.d.ts +14 -0
  199. package/dist/types/components/TreeView/TreeView.d.ts +82 -0
  200. package/dist/types/components/TreeView/TreeViewShowcase.d.ts +2 -0
  201. package/dist/types/components/TreeView/index.d.ts +3 -0
  202. package/dist/types/components/Typography/Typography.d.ts +492 -0
  203. package/dist/types/components/Typography/TypographyShowcase.d.ts +2 -0
  204. package/dist/types/components/Typography/index.d.ts +2 -0
  205. package/dist/types/components/_a11y/ContrastCheck.d.ts +15 -0
  206. package/dist/types/components/_bevelPresets.d.ts +92 -0
  207. package/dist/types/components/_shadows.d.ts +32 -0
  208. package/dist/types/components/index.d.ts +74 -0
  209. package/dist/types/theme/useThemeMode.d.ts +4 -0
  210. package/docs/components.md +797 -0
  211. package/docs/getting-started.md +409 -0
  212. package/docs/token-system.md +468 -0
  213. package/package.json +126 -0
  214. package/public/styles/Dark-Mode.css +13867 -0
  215. package/public/styles/Light-Mode.css +14091 -0
  216. package/public/styles/README.md +93 -0
  217. package/public/styles/base.css +261 -0
  218. package/public/styles/core.css +378 -0
  219. package/public/styles/foundation.css +72 -0
  220. package/public/styles/styles.css +6 -0
  221. package/public/styles/theme.js +234 -0
  222. package/public/styles/theme.json +12 -0
  223. package/public/styles/typography-tokens.css +720 -0
package/dist/index.js ADDED
@@ -0,0 +1,42 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("@mui/material"),r=require("react/jsx-runtime"),o=require("@mui/icons-material/ContentCopy"),a=require("@mui/icons-material/Check"),n=require("@mui/icons-material/Person"),i=require("@mui/icons-material/Remove"),l=require("@mui/icons-material/CheckCircleOutline"),s=require("@mui/icons-material/WarningAmber"),c=require("@mui/icons-material/ErrorOutline"),d=require("@mui/icons-material/InfoOutlined"),u=require("react-dom"),x=require("@mui/icons-material/ExpandMore"),p=require("@mui/icons-material/Favorite"),h=require("@mui/icons-material/Home"),m=require("@mui/icons-material/Delete"),f=require("@mui/icons-material/Settings"),g=require("@mui/icons-material/Search"),b=require("@mui/icons-material/Star"),v=require("@mui/icons-material/Notifications"),y=require("@mui/icons-material/Visibility"),j=require("@mui/icons-material/ShoppingCart"),S=require("@mui/icons-material/Lock"),B=require("@mui/icons-material/Info"),k=require("@mui/icons-material/HomeOutlined"),C=require("@mui/icons-material/FavoriteBorderOutlined"),w=require("@mui/icons-material/DeleteOutlined"),T=require("@mui/icons-material/SettingsOutlined"),I=require("@mui/icons-material/StarOutline"),A=require("@mui/icons-material/PersonOutlined"),z=require("@mui/icons-material/NotificationsOutlined"),R=require("@mui/icons-material/VisibilityOutlined"),E=require("@mui/icons-material/ShoppingCartOutlined"),L=require("@mui/icons-material/LockOutlined"),P=require("@mui/icons-material/HomeRounded"),M=require("@mui/icons-material/FavoriteRounded"),O=require("@mui/icons-material/DeleteRounded"),D=require("@mui/icons-material/SettingsRounded"),W=require("@mui/icons-material/SearchRounded"),F=require("@mui/icons-material/StarRounded"),N=require("@mui/icons-material/PersonRounded"),H=require("@mui/icons-material/NotificationsRounded"),V=require("@mui/icons-material/VisibilityRounded"),Q=require("@mui/icons-material/ShoppingCartRounded"),G=require("@mui/icons-material/LockRounded"),q=require("@mui/icons-material/InfoRounded"),U=require("@mui/icons-material/HomeTwoTone"),X=require("@mui/icons-material/FavoriteTwoTone"),K=require("@mui/icons-material/DeleteTwoTone"),J=require("@mui/icons-material/SettingsTwoTone"),Y=require("@mui/icons-material/SearchTwoTone"),Z=require("@mui/icons-material/StarTwoTone"),$=require("@mui/icons-material/PersonTwoTone"),_=require("@mui/icons-material/NotificationsTwoTone"),ee=require("@mui/icons-material/VisibilityTwoTone"),te=require("@mui/icons-material/ShoppingCartTwoTone"),re=require("@mui/icons-material/LockTwoTone"),oe=require("@mui/icons-material/InfoTwoTone"),ae=require("@mui/icons-material/HomeSharp"),ne=require("@mui/icons-material/FavoriteSharp"),ie=require("@mui/icons-material/DeleteSharp"),le=require("@mui/icons-material/SettingsSharp"),se=require("@mui/icons-material/SearchSharp"),ce=require("@mui/icons-material/StarSharp"),de=require("@mui/icons-material/PersonSharp"),ue=require("@mui/icons-material/NotificationsSharp"),xe=require("@mui/icons-material/VisibilitySharp"),pe=require("@mui/icons-material/ShoppingCartSharp"),he=require("@mui/icons-material/LockSharp"),me=require("@mui/icons-material/InfoSharp"),fe=require("@mui/icons-material/Code"),ge=require("@mui/icons-material/GridView"),be=require("@mui/icons-material/Computer"),ve=require("@mui/icons-material/Add"),ye=require("@mui/icons-material"),je=require("@mui/icons-material/Menu"),Se=require("@mui/icons-material/Close"),Be=require("@mui/icons-material/FormatBold"),ke=require("@mui/icons-material/FormatItalic"),Ce=require("@mui/icons-material/FormatUnderlined"),we=require("@mui/icons-material/FormatAlignLeft"),Te=require("@mui/icons-material/FormatAlignCenter"),Ie=require("@mui/icons-material/KeyboardArrowUp"),Ae=require("@mui/icons-material/KeyboardArrowDown");require("@mui/icons-material/FormatAlignRight"),require("@mui/icons-material/ViewList"),require("@mui/icons-material/ViewModule");var ze=require("@mui/material/CircularProgress");require("@mui/icons-material/StarBorder");var Re=require("@mui/icons-material/StarHalf"),Ee=require("@mui/icons-material/Cancel"),Le=require("@mui/icons-material/ExpandLess"),Pe=require("@mui/icons-material/Image"),Me=require("@mui/icons-material/ChevronLeft"),Oe=require("@mui/icons-material/ChevronRight"),De=require("@mui/icons-material/FirstPage"),We=require("@mui/icons-material/LastPage"),Fe=require("@mui/icons-material/Explore"),Ne=require("@mui/icons-material/Radio"),He=require("@mui/icons-material/LibraryMusic"),Ve=require("@mui/icons-material/Bookmark"),Qe=require("@mui/icons-material/Edit"),Ge=require("@mui/icons-material/Share");require("@mui/icons-material/FavoriteBorder"),require("@mui/icons-material/DeleteOutline");var qe=require("@mui/material/styles"),Ue=require("@mui/material/Collapse"),Xe=require("@mui/material/Checkbox"),Ke=require("@mui/material/utils"),Je=require("@mui/icons-material/CloudUpload"),Ye=require("@mui/icons-material/Mail");require("@mui/icons-material/Inbox");var Ze=require("@mui/icons-material/Folder");require("@mui/icons-material/MoreVert"),require("@mui/icons-material/ImageOutlined");var $e=require("@mui/icons-material/ArrowBack"),_e=require("@mui/icons-material/AccountCircle"),et=require("@mui/icons-material/Twitter"),tt=require("@mui/icons-material/GitHub"),rt=require("@mui/icons-material/LinkedIn"),ot=require("@mui/icons-material/Help"),at=require("@mui/icons-material/FolderOpen"),nt=require("@mui/icons-material/InsertDriveFile"),it=require("@mui/icons-material/PictureAsPdf"),lt=require("@mui/icons-material/VideoLibrary");function st(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var ct=st(e),dt=st(ye);const ut=e=>`var(--${e}-Font-Family)`,xt="var(--Font-Family-Display, var(--Font-Family-Header, var(--Header-Font-Family)))",pt="var(--Font-Family-Eyebrow, var(--Decorative-Font-Family))",ht=(e,t)=>`var(--${e}-Font-Family, ${t})`,mt="var(--Font-Variation-Header, normal)",ft=(e,t)=>`var(--Eyebrow-${e}-${t}, var(--Overline-${e}-${t}))`,gt=e=>ft(e,"Font-Size"),bt=e=>ft(e,"Font-Weight"),vt=e=>ft(e,"Line-Height"),yt=e=>ft(e,"Letter-Spacing"),jt=e=>`var(--${e}-Font-Size)`,St=e=>`var(--${e}-Font-Weight)`,Bt=e=>`calc(var(--${e}-Line-Height) * var(--Cognitive-Multiplier, 1))`,kt=e=>`var(--${e}-Line-Height)`,Ct=e=>`var(--${e}-Letter-Spacing)`,wt={"display-large":{component:"h1",fontFamily:ht("Display-Large",xt),fontSize:jt("Display-Large"),fontWeight:St("Display-Large"),lineHeight:Bt("Display-Large"),letterSpacing:Ct("Display-Large"),defaultColor:"header",defaultWidth:"fill"},"display-medium":{component:"h1",fontFamily:ht("Display-Medium",xt),fontSize:jt("Display-Medium"),fontWeight:St("Display-Medium"),lineHeight:Bt("Display-Medium"),letterSpacing:Ct("Display-Medium"),defaultColor:"header",defaultWidth:"fill"},"display-small":{component:"h2",fontFamily:ht("Display-Small",xt),fontSize:jt("Display-Small"),fontWeight:St("Display-Small"),lineHeight:Bt("Display-Small"),letterSpacing:Ct("Display-Small"),defaultColor:"header",defaultWidth:"fill"},h1:{component:"h1",fontFamily:ut("Header"),fontVariationSettings:mt,fontSize:jt("H1"),fontWeight:St("H1"),lineHeight:Bt("H1"),letterSpacing:Ct("H1"),defaultColor:"header",defaultWidth:"fill"},h2:{component:"h2",fontFamily:ut("Header"),fontVariationSettings:mt,fontSize:jt("H2"),fontWeight:St("H2"),lineHeight:Bt("H2"),letterSpacing:Ct("H2"),defaultColor:"header",defaultWidth:"fill"},h3:{component:"h3",fontFamily:ut("Header"),fontVariationSettings:mt,fontSize:jt("H3"),fontWeight:St("H3"),lineHeight:Bt("H3"),letterSpacing:Ct("H3"),defaultColor:"header",defaultWidth:"fill"},h4:{component:"h4",fontFamily:ut("Header"),fontVariationSettings:mt,fontSize:jt("H4"),fontWeight:St("H4"),lineHeight:Bt("H4"),letterSpacing:Ct("H4"),defaultColor:"standard",defaultWidth:"fill"},h5:{component:"h5",fontFamily:ut("Header"),fontVariationSettings:mt,fontSize:jt("H5"),fontWeight:St("H5"),lineHeight:Bt("H5"),letterSpacing:Ct("H5"),defaultColor:"standard",defaultWidth:"fill"},h6:{component:"h6",fontFamily:ut("Header"),fontVariationSettings:mt,fontSize:jt("H6"),fontWeight:St("H6"),lineHeight:Bt("H6"),letterSpacing:Ct("H6"),defaultColor:"standard",defaultWidth:"fill"},"subtitle-large":{component:"p",fontFamily:ut("Body"),fontSize:jt("Subtitle-Large"),fontWeight:St("Subtitle-Large"),lineHeight:Bt("Subtitle-Large"),letterSpacing:Ct("Subtitle-Large"),defaultColor:"header",defaultWidth:"fill"},subtitle:{component:"p",fontFamily:ut("Body"),fontSize:jt("Subtitle-Medium"),fontWeight:St("Subtitle-Medium"),lineHeight:Bt("Subtitle-Medium"),letterSpacing:Ct("Subtitle-Medium"),defaultColor:"header",defaultWidth:"fill"},"subtitle-small":{component:"p",fontFamily:ut("Body"),fontSize:jt("Subtitle-Small"),fontWeight:St("Subtitle-Small"),lineHeight:Bt("Subtitle-Small"),letterSpacing:Ct("Subtitle-Small"),defaultColor:"header",defaultWidth:"fill"},"body-small":{component:"p",fontFamily:ut("Body"),fontSize:jt("Body-Small"),fontWeight:St("Body-Small"),lineHeight:Bt("Body-Small"),letterSpacing:Ct("Body-Small"),defaultColor:"standard",defaultWidth:"fill"},"body-small-semibold":{component:"p",fontFamily:ut("Body"),fontSize:jt("Body-Small"),fontWeight:St("Body-Small-Semibold"),lineHeight:Bt("Body-Small"),letterSpacing:Ct("Body-Small"),defaultColor:"standard",defaultWidth:"fill"},body:{component:"p",fontFamily:ut("Body"),fontSize:jt("Body-Medium"),fontWeight:St("Body-Medium"),lineHeight:Bt("Body-Medium"),letterSpacing:Ct("Body-Medium"),defaultColor:"standard",defaultWidth:"fill"},"body-medium":{component:"p",fontFamily:ut("Body"),fontSize:jt("Body-Medium"),fontWeight:St("Body-Medium"),lineHeight:Bt("Body-Medium"),letterSpacing:Ct("Body-Medium"),defaultColor:"standard",defaultWidth:"fill"},"body-semibold":{component:"p",fontFamily:ut("Body"),fontSize:jt("Body-Medium"),fontWeight:St("Body-Medium-Semibold"),lineHeight:Bt("Body-Medium"),letterSpacing:Ct("Body-Medium"),defaultColor:"standard",defaultWidth:"fill"},"body-medium-semibold":{component:"p",fontFamily:ut("Body"),fontSize:jt("Body-Medium"),fontWeight:St("Body-Medium-Semibold"),lineHeight:Bt("Body-Medium"),letterSpacing:Ct("Body-Medium"),defaultColor:"standard",defaultWidth:"fill"},"body-large":{component:"p",fontFamily:ut("Body"),fontSize:jt("Body-Large"),fontWeight:St("Body-Large"),lineHeight:Bt("Body-Large"),letterSpacing:Ct("Body-Large"),defaultColor:"standard",defaultWidth:"fill"},"body-large-semibold":{component:"p",fontFamily:ut("Body"),fontSize:jt("Body-Large"),fontWeight:St("Body-Large-Semibold"),lineHeight:Bt("Body-Large"),letterSpacing:Ct("Body-Large"),defaultColor:"standard",defaultWidth:"fill"},caption:{component:"span",fontFamily:ut("Body"),fontSize:jt("Caption"),fontWeight:St("Caption"),lineHeight:Bt("Caption"),letterSpacing:Ct("Caption"),defaultColor:"quiet",defaultWidth:"hug"},"caption-bold":{component:"span",fontFamily:ut("Body"),fontSize:jt("Caption"),fontWeight:St("Caption-Bold"),lineHeight:Bt("Caption"),letterSpacing:Ct("Caption"),defaultColor:"quiet",defaultWidth:"hug"},"label-extra-small":{component:"label",fontFamily:ut("Body"),fontSize:jt("Label-ExtraSmall"),fontWeight:St("Label-ExtraSmall"),lineHeight:kt("Label-ExtraSmall"),letterSpacing:Ct("Label-ExtraSmall"),defaultColor:"standard",defaultWidth:"hug"},"label-small":{component:"label",fontFamily:ut("Body"),fontSize:jt("Label-Small"),fontWeight:St("Label-Small"),lineHeight:kt("Label-Small"),letterSpacing:Ct("Label-Small"),defaultColor:"standard",defaultWidth:"hug"},label:{component:"label",fontFamily:ut("Body"),fontSize:jt("Label-Medium"),fontWeight:St("Label-Medium"),lineHeight:kt("Label-Medium"),letterSpacing:Ct("Label-Medium"),defaultColor:"standard",defaultWidth:"hug"},"label-medium":{component:"label",fontFamily:ut("Body"),fontSize:jt("Label-Medium"),fontWeight:St("Label-Medium"),lineHeight:kt("Label-Medium"),letterSpacing:Ct("Label-Medium"),defaultColor:"standard",defaultWidth:"hug"},"label-large":{component:"label",fontFamily:ut("Body"),fontSize:jt("Label-Large"),fontWeight:St("Label-Large"),lineHeight:kt("Label-Large"),letterSpacing:Ct("Label-Large"),defaultColor:"standard",defaultWidth:"hug"},legal:{component:"span",fontFamily:ut("Body"),fontSize:jt("Legal"),fontWeight:St("Legal"),lineHeight:Bt("Legal"),letterSpacing:Ct("Legal"),defaultColor:"quiet",defaultWidth:"hug"},"legal-semibold":{component:"span",fontFamily:ut("Body"),fontSize:jt("Legal"),fontWeight:St("Legal-Semibold"),lineHeight:Bt("Legal"),letterSpacing:Ct("Legal"),defaultColor:"quiet",defaultWidth:"hug"},"eyebrow-small":{component:"span",fontFamily:pt,fontSize:gt("Small"),fontWeight:bt("Small"),lineHeight:vt("Small"),letterSpacing:yt("Small"),textTransform:"uppercase",defaultColor:"eyebrow",defaultWidth:"hug"},eyebrow:{component:"span",fontFamily:pt,fontSize:gt("Medium"),fontWeight:bt("Medium"),lineHeight:vt("Medium"),letterSpacing:yt("Medium"),textTransform:"uppercase",defaultColor:"eyebrow",defaultWidth:"hug"},"eyebrow-large":{component:"span",fontFamily:pt,fontSize:gt("Large"),fontWeight:bt("Large"),lineHeight:vt("Large"),letterSpacing:yt("Large"),textTransform:"uppercase",defaultColor:"eyebrow",defaultWidth:"hug"},"number-small":{component:"span",fontFamily:ut("Body"),fontSize:jt("Number-Small"),fontWeight:St("Number-Small"),lineHeight:kt("Number-Small"),letterSpacing:Ct("Number-Small"),fontVariantNumeric:"tabular-nums",defaultColor:"standard",defaultWidth:"hug"},"number-medium":{component:"span",fontFamily:ut("Body"),fontSize:jt("Number-Medium"),fontWeight:St("Number-Medium"),lineHeight:kt("Number-Medium"),letterSpacing:Ct("Number-Medium"),fontVariantNumeric:"tabular-nums",defaultColor:"standard",defaultWidth:"hug"},"number-large":{component:"span",fontFamily:ut("Body"),fontSize:jt("Number-Large"),fontWeight:St("Number-Large"),lineHeight:kt("Number-Large"),letterSpacing:Ct("Number-Large"),fontVariantNumeric:"tabular-nums",defaultColor:"standard",defaultWidth:"hug"},"button-extra-small":{component:"span",fontFamily:ut("Body"),fontSize:jt("Button-ExtraSmall"),fontWeight:St("Button-ExtraSmall"),lineHeight:kt("Button-ExtraSmall"),letterSpacing:Ct("Button-ExtraSmall"),defaultColor:"standard",defaultWidth:"hug"},"button-small":{component:"span",fontFamily:ut("Body"),fontSize:jt("Button-Small"),fontWeight:St("Button-Small"),lineHeight:kt("Button-Small"),letterSpacing:Ct("Button-Small"),defaultColor:"standard",defaultWidth:"hug"},button:{component:"span",fontFamily:ut("Body"),fontSize:"var(--Button-Standard-Font-Size, var(--Button-Font-Size))",fontWeight:"var(--Button-Standard-Font-Weight, var(--Body-Font-Weight))",lineHeight:kt("Button-Standard"),letterSpacing:Ct("Button-Standard"),defaultColor:"standard",defaultWidth:"hug"},"button-standard":{component:"span",fontFamily:ut("Body"),fontSize:"var(--Button-Standard-Font-Size, var(--Button-Font-Size))",fontWeight:"var(--Button-Standard-Font-Weight, var(--Body-Font-Weight))",lineHeight:kt("Button-Standard"),letterSpacing:Ct("Button-Standard"),defaultColor:"standard",defaultWidth:"hug"}},Tt={"overline-small":"eyebrow-small",overline:"eyebrow","overline-medium":"eyebrow","overline-large":"eyebrow-large","eyebrow-medium":"eyebrow","body-small-bold":"body-small-semibold","body-bold":"body-semibold","body-medium-bold":"body-semibold","body-large-bold":"body-large-semibold","subtitle-medium":"subtitle"},It={"eyebrow-small":"overline-small",eyebrow:"overline","eyebrow-large":"overline-large"},At={header:"var(--Header)",default:"var(--Header)",primary:"var(--Header-Primary)",secondary:"var(--Header-Secondary)",tertiary:"var(--Header-Tertiary)",neutral:"var(--Header-Neutral)",info:"var(--Header-Info)",success:"var(--Header-Success)",warning:"var(--Header-Warning)",error:"var(--Header-Error)"},zt={standard:"var(--Text)",default:"var(--Text)",quiet:"var(--Quiet)",eyebrow:"var(--Eyebrow, var(--Quiet))",primary:"var(--Text-Primary)",secondary:"var(--Text-Secondary)",tertiary:"var(--Text-Tertiary)",neutral:"var(--Text-Neutral)",info:"var(--Text-Info)",success:"var(--Text-Success)",warning:"var(--Text-Warning)",error:"var(--Text-Error)"},Rt=new Set(["h1","h2","h3","h4","h5","h6","display-large","display-medium","display-small","subtitle-large","subtitle","subtitle-small"]);function Et({children:e,textStyle:o="body",color:a,width:n,component:i,noWrap:l=!1,gutterBottom:s=!1,className:c="",sx:d={},...u}){const x=Tt[o]||o,p=wt[x]||wt.body,h="string"==typeof p.fontSize?p.fontSize.match(/--([\w-]+)-Font-Size/):null,m=h?h[1]:null,f=m?"var(--"+m+"-Text-Decoration, "+(p.textDecoration||"none")+")":p.textDecoration||"none",g=m?"var(--"+m+"-Text-Transform, "+(p.textTransform||"none")+")":p.textTransform||"none",b=function(e,t,r){const o=Rt.has(e);return(o?At:zt)[t||r]||(o?At.header:zt.standard)}(x,a,p.defaultColor),v=n||p.defaultWidth,y="fill"===v,j=i||p.component,S=a||p.defaultColor;return r.jsx(t.Box,{component:j,className:"typography typography-"+x+(It[x]?" typography-"+It[x]:"")+" typography-color-"+S+" typography-width-"+v+" "+c,sx:{fontFamily:p.fontFamily,fontVariationSettings:p.fontVariationSettings||"normal",fontSize:p.fontSize,fontWeight:p.fontWeight,lineHeight:p.lineHeight,letterSpacing:p.letterSpacing,textDecoration:f,textTransform:g,fontVariantNumeric:p.fontVariantNumeric||"normal",color:b,display:y?"block":"inline",width:y?"100%":"auto",margin:0,marginBottom:s?"0.5em":0,padding:0,...l&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},...d},...u,children:e})}const Lt={"@supports (text-box-edge: cap alphabetic)":{textBoxTrim:"trim-both",textBoxEdge:"cap alphabetic",paddingTop:0,paddingBottom:0}},Pt=e=>r.jsx(Et,{textStyle:"h3",...e}),Mt=e=>r.jsx(Et,{textStyle:"h4",...e}),Ot=e=>r.jsx(Et,{textStyle:"h5",...e}),Dt=Mt,Wt=e=>r.jsx(Et,{textStyle:"subtitle-large",...e}),Ft=e=>r.jsx(Et,{textStyle:"subtitle",...e}),Nt=Wt,Ht=Ft,Vt=e=>r.jsx(Et,{textStyle:"body-small",...e}),Qt=e=>r.jsx(Et,{textStyle:"body-small-semibold",...e}),Gt=e=>r.jsx(Et,{textStyle:"body",...e}),qt=Gt,Ut=Vt,Xt=e=>r.jsx(Et,{textStyle:"body-large",...e}),Kt=e=>r.jsx(Et,{textStyle:"caption",...e}),Jt=e=>r.jsx(Et,{textStyle:"label",...e}),Yt=e=>r.jsx(Et,{textStyle:"eyebrow-small",...e}),Zt=e=>r.jsx(Et,{textStyle:"eyebrow",...e}),$t=e=>r.jsx(Et,{textStyle:"eyebrow",...e}),_t=e=>r.jsx(Et,{textStyle:"eyebrow-large",...e}),er=Yt,tr=Zt,rr=$t,or=_t,ar=e=>r.jsx(Et,{textStyle:"button-extra-small",...e}),nr=e=>r.jsx(Et,{textStyle:"button-small",...e}),ir=e=>r.jsx(Et,{textStyle:"button",...e}),lr={default:"Default",primary:"Primary",secondary:"Secondary",tertiary:"Tertiary",neutral:"Neutral",info:"Info",success:"Success",warning:"Warning",error:"Error"},sr={xs:"12px",small:"16px",medium:"24px",large:"32px"},cr=sr;function dr({children:e,color:o="default",size:a="medium",fontSize:n,disabled:i=!1,twoTone:l=!1,className:s="",sx:c={},"aria-label":d,...u}){const x=lr[o]||"Default",p="custom"===a&&n?"number"==typeof n?n+"px":n:cr[a]||cr.medium,h="default"===o?"inherit":"var(--Icons-"+x+")",m="var(--Icons-Variant-"+x+")";return r.jsx(t.Box,{component:"span",className:"icon icon-"+o+" icon-"+a+(i?" icon-disabled":"")+(l?" icon-twotone":"")+(s?" "+s:""),"aria-hidden":d?void 0:"true","aria-label":d||void 0,role:d?"img":void 0,sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:p,color:h,opacity:i?.38:1,cursor:i?"not-allowed":"inherit",lineHeight:1,flexShrink:0,...l&&{"--twotone-variant":m},"& .MuiSvgIcon-root":{fontSize:"inherit",color:"inherit"},...c},...u,children:e})}const ur="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAkACQAAD/4QCSRXhpZgAATU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUAAAABAAAARgEoAAMAAAABAAIAAIdpAAQAAAABAAAATgAAAAAAAACQAAAAAQAAAJAAAAABAAOShgAHAAAAEgAAAHigAgAEAAAAAQAAAKCgAwAEAAAAAQAAAKAAAAAAQVNDSUkAAABTY3JlZW5zaG90/+0AOFBob3Rvc2hvcCAzLjAAOEJJTQQEAAAAAAAAOEJJTQQlAAAAAAAQ1B2M2Y8AsgTpgAmY7PhCfv/iAihJQ0NfUFJPRklMRQABAQAAAhhhcHBsBAAAAG1udHJSR0IgWFlaIAfmAAEAAQAAAAAAAGFjc3BBUFBMAAAAAEFQUEwAAAAAAAAAAAAAAAAAAAAAAAD21gABAAAAANMtYXBwbAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACmRlc2MAAAD8AAAAMGNwcnQAAAEsAAAAUHd0cHQAAAF8AAAAFHJYWVoAAAGQAAAAFGdYWVoAAAGkAAAAFGJYWVoAAAG4AAAAFHJUUkMAAAHMAAAAIGNoYWQAAAHsAAAALGJUUkMAAAHMAAAAIGdUUkMAAAHMAAAAIG1sdWMAAAAAAAAAAQAAAAxlblVTAAAAFAAAABwARABpAHMAcABsAGEAeQAgAFAAM21sdWMAAAAAAAAAAQAAAAxlblVTAAAANAAAABwAQwBvAHAAeQByAGkAZwBoAHQAIABBAHAAcABsAGUAIABJAG4AYwAuACwAIAAyADAAMgAyWFlaIAAAAAAAAPbVAAEAAAAA0yxYWVogAAAAAAAAg98AAD2/////u1hZWiAAAAAAAABKvwAAsTcAAAq5WFlaIAAAAAAAACg4AAARCwAAyLlwYXJhAAAAAAADAAAAAmZmAADypwAADVkAABPQAAAKW3NmMzIAAAAAAAEMQgAABd7///MmAAAHkwAA/ZD///ui///9owAAA9wAAMBu/8AAEQgAoACgAwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+v/EAB8BAAMBAQEBAQEBAQEAAAAAAAABAgMEBQYHCAkKC//EALURAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkjM1LwFWJy0QoWJDThJfEXGBkaJicoKSo1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoKDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uLj5OXm5+jp6vLz9PX29/j5+v/bAEMAAgICAgICAwICAwQDAwMEBQQEBAQFBgUFBQUFBggGBgYGBgYICAgICAgICAkJCQkJCQsLCwsLDAwMDAwMDAwMDP/bAEMBAgICAwMDBQMDBQwIBwgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDP/dAAQACv/aAAwDAQACEQMRAD8A8zt1v/D0/m2bbo85K9q664XRPGNl5N0iicc7W9R3FeO2vjF5FAmPB9eldRYvFfqJrWYJIOeDivntTvnRvqeleHfEupeA3EciBoYz8rgcjHr/AI/nXpdt+0p4sd1s7RozEw+V88/lXjlldedEbLVsOCMb+9XPCmk6f4S1yPWvs631uj+Z5bcjI54zU3a1izmlTVmpI+kbLxp8SdcjWVkuzHJ0ZIXCn6MRiultfD3i/UcPdgx57zSgfoMmufb9oZ9WgGl6dAqsw27OWZMf7IFT2XiDxJfKWbcPYkLn6dTXZSrJ/E2zza9Fp+6kj1bRPhjZXKeZr2sLCv8AcgAz/wB9Of6VrX/hL4M6NC39pOb9scieZnBx/sx7R+lebaXYatqlwEupRbx/xMSXP4ZIFehR+C/BUKBtRup7p2/g8zaCT22xgH9a7ou6uor5nJ5XPzw+LkHgGy+INld+AbH7MfPUXMSBlikywwVDd+xxX1HDe3Z8Norx2yIEzsz85z36Yr1SP4cfC6fVTqV1o0U7w4wsrLshDHZmUMeCfU89MDvU+peGPCWsWlxb+H4bG3iRWZhBOu2LaM7pmOQFC5/iABJr57MI1ZS5qTW/Q+lwFCPskqi6dT8o5LC78RfEqG32kRR3h83A6KG5Az7V+pfhHwl8MptKhgvIGhlVAN6yOjdO+Dj9K8W8KfDHTbXUrnWrh4BDCXnnkYjy1UOFwjcjAzksT9AOa9vtbLSJYhJHIsaFFZZEYeWQRwQR8pHoe9d2Fq3Wxw46hK99TtU+Evgu7XOm6tcRE9AWSQfqAf1rOufghqGC+maxBJ6eZGyH81J/lWF9ju4Rvs5xKuNwPXP5Uh1vX9PHyPIO3yOcV1upC2sTg9mZWqfDv4oaKrSWcomVeht7n/2V8Vwdj41+IXhzW44fEMV+0LkRwxNHnfIT03DjHvXp6+OvEtveRRyxzyLJwocDaD6sewFT+NfEVjDp/wBvuJ0a4WPk8dT2UfpXn1nztqDOyjTUFcf4h8TTHS/tWpzLG+zJTPyx8dPc+9fGHjTxve6o8lnp8jLbkkE92/wFWPFnja/1tjBJJ5cA/hHf3NeVahrVhZRNucZqU7LlR1KnzS5mMimitW3yH5qyNb8XW9vHtMn4Dk1w2qeKbaRyfOWJM9erH6CtXw5oN34iuo5Rp8ws2/5bSDG4+oBo6HZGkf/QwfiB+y3N4f8AEotfDV5P/Z8oJ8qRt+wjnhuuK8A1zS9b8AagYLhZvJzgSlG2ZHbdiv0u1v4m6Xd66BfW0tqckbZlIPT3roptF8MeLdKMN1bwvFOhIDBf0zXz9RLmbiz2I6o/MDT/ABdJcSJHc7lJ6HoDXsGhXk6qG3iSNux6V698RfgRZ3enqnhqNIZwBtYLnmvDh8OPiV4YuI4TD9pcuFAUAJ1xli3AHqTwO9Q3Zakzpp6I9M0ZLaC5+2aZARck44GdxPavYvDGqanqF2LGKDFwcfIFbHPfgGuG8AeDr7UZvMvNV0/yIZsTeTMZFjOSrI7KByCOzZz2HWvZF1/TtE8XQeFtE0+BnhgWSTU72VkTEoYL5UUfLuSrAAsT3GetEZq6S3OV4KUrtrQ9H0iPRZXuNPl1GKa7sYhPexwuZBARx5biLJDMx4GCeD71Q8MePvhh4i1K+tPDF6up3mmukUscKldsj7s4MhwdmDuP8ODmvz5+Ofjl/BvhrWdQ8KreafDreurCL1hMvmi2iLsVWQEBEclgqFgN3JB68d+zxJ8RNM8EeLvjHoTxARLKWminiVrydMzXBMZJEQXhdyozN0A446FJyjdM3hhIRkotH1j8fPF9kllq3g7whdBNUa3F5LOitJMktuXMUaPFl8bo2BJCjkEZya+dvhD8d7Pw14WiPjOS5thcM9qr2saTC4s5A8hZo2ILKkxkTgNgHuOvwp45+K/izxlq11rJ1W4im1SFxcMj7HXLncCqYxu2gEdx164Ot4s+IWh6p4I0e006eddSit4Ld5HVVmR7bAXBA5AYZUZzySevESwknbm6s3+tU4+7Doj7yv8A44aP4Ztv7XmS81WHTIv7LgW7uWSJDcPHIjFY2wzrGd0e8FMYBAJOOf8AEX7SenLYqLIRyWlhukkmIKzF5CGffGrbMYxhVJ6N2Ffnd4l8U3upaZJfapYPOLpk2XbthlKJ8v3RtAOe/PHUViXOvW1xp9o81x/pLoBNHsAiZFwFwoYkt0y20Z549dYYO0VF9zKpilJvTofo5pP7Sniy3TzNA2/2fIrNG/zMmBncNjA4Kngj8q9Z8B/tXQ3Rlg8Y+XmLHliFfLZnOQMh+AAQMkkAA5r8tfDfj3xB4dtTYaPIt7aEeY8arux3JAwD7EH0zmvR9a16x8XaLBFusE1WdoRO4QQzIgBzGuGAfsWcjIOBiieGlF6PQwUqc1qtT9d5fihpniLRRf6Msm6ZcASrg7lyCVI4Zc9COCOa8W1vVNQuyZdSdio6KTwK8K8EeKINAuNGsdNuXu7JbZ7a6gZyNlyER1YK3IO3J+XII7nFe66T4d1LxrK0sgMVucgHPII6+2PT2riUteXqU8PZ3Wx4zruvNJO1raQMcdTXKaVoOseKpLj7NalYoDh3kJJJPYV7zf8AgCPwnqMk05MkbDJZ+e3vXQ+Ar/Slgu7S3iJllkO3auR0PU1UV71mdEYKKufPPhz4bWk3iyyS+TcqkkoeQDmvvPUtA03SPD0DWsCJsTOAAD2r540T4d/EHW/HTGxT7PEWLJJt3fKT1xx/OvsvTPg/r0NvFca7eyXRC4KsQF/BRx+ta0acnfqTVrw0sf/R/Q3XfAeh61q8t1cWqM4zhiorirj4YvcPs02RoCgIRlzxXQzfEq1GoPGtvJyxHT+dddp3i7SoY1kkY72GTx09q82UISmzqi/d0PLn8J6/oNuqiRrx+24Z5/SvGfHeg+NZZXutZkkXS4Ip5VihkKyzufLJWQZXKqA+1RuP8q+yZfEVjdRl4sbirbN4IBIHH4V+dPxC+PE3/CRnwL8SC0D6deGOa7jgQQRGdd9uQN6yOAPuvsKk8MRXFjIx5LRuztwnNz7nKeLrzwjb2unQ6dqUumhJDqT6XZ3geSRIPmbzkuH2gyou3mPIHJU8g+M6P+0/4U0vxLcy6/oLMiGZkmQlbn7QS+RNvUhdhIjXyyAMkqQDXjVtHZa54k13xD4bsbmSSyYA3V1dC4uGmuDlmSzUIArqGUBWzlslj2+U9aW91XX7l55tl0JHEyMNpVBgAfgAAR1GMHnNTRwcG3FvU3qYycEpJHXeJ/iNqHijxTd3N8815pMt27w2k1w5jXzeApDPkjKjPPRRwM10ui/ErVNH8LyaPYzR2q299PcC1jbaGSVVyRnO3HIG3AINeD30yTXEv2oKs8TLtZMDKYIzxxnoSeppYLy08pVXAnAIQlSGZ2IyWY54AHAFet7OPLyW0PL9rPn529SzqkhglW6kO6Vi5bnlQcbVPJxgHIqCJ7htKMyyDBmO1CcnJ7gHgdvrVS6a4mm8hgGZgMkYJLeue+K7mfwwdO0uy1OaRJobmMMsUfytvZcnPGDt785HFVKrGKSfUzhRnNtxWxzlzr+oDTY9HS9lNqHVli3YCyAfewee5x+NczNEVl8xxtU9McfMOuB+NdTqWmtbi4tROsqQlcMY9hLNzt3dcj361z8jGaw3kFmQg5649eauEotXXUiaknyy6Fq01CS3xHbM2+UOH2k5KsMEfjXX6Fd3NhItxbgrcJkiUrvYLjJ2qxIyM4rzeKeaNy8R2kgKSOOK6jT2t5I+J/Ll+VlUA8PkYG4jGT+X0onEIaM+i/D3j6/XTLg5+ZrmO5WSUok0bx42vgEDAwM4zxnpzj78+D+s+N/HWmWl14VIsNNtIJklZCZpJriTJ+ZSCBswOBk7elfl3Zx2flpOsuJQC8kbIfmXBGM5/pivsn9nL4v3Xw+s5rW7kZ7e9bzPJ2hRvjG3b84G3C5JYHBXpzXlYmlFe8ejSqSasj9ErjwPqVzOq65+9Vo0DMeAWwM/L2r0DwJ8NdD0uOa6SBNzv1I7e1cL4b+JD+LdCW+UwTbxmOa1LNEY/wCEksASfU9Dxjiu+8N6l4imjkgEJCITlj0Yn0q6MYXuctST2Z6d4YXS7DVtoCq2MD869a1q+tU0/cGXha+SrHw9451HxGWs5Fjjbnc2fl59O9exXHg7xULZft995mRjaBgV1UpPlasZyldn/9L9DbTRdPkeSR4lDFj2rf0Dw/p5kZ3jBGT1ryOTxNrc8/8AoMGFzyT2Feg6LrOs3VssUMezAIY45zjk157cednRFpxR0t/o1iLrjai898fLjoPevy9/a3+IujW+vTWNvpdtNd6NLHGPNs4Z5PKZM5888xttKsi7WwRz6V9k+OvGGoaMIb6YyzJE2x54ULrEHwhfAHQElQTxuPoCR+JXx18earca441LdI96Z7p7iRm8y6EhCRNMdzbmRI1U5OQR6dfOlL21TkjpY9KnFUo88jz++8YavFJqFzpTrY2FzgSxWsmzeY+InfnJYMMjgHNeIXl/LLeS3gXMjPl5GYkvnk5/HrWjot6bnV3M5zHsfCnkHPt9RmsfVpBBeSxRgbW7V6tOmo6HDVqOauU5ZvtNz5qIF3YyoHHFem+DvAN9411Yi1hZI2YhSQSobHTgdMkYxXmkUS3V/aWsB5kZIzj1Y81+pXwn8EeLItJtx4I03TxHbJ+8vdTYhHl4+WJFILBe5PGeleXnGNnQhGnS+KXV9EetkeAp15yqVvhj0W7OD8B/seXmqXEF94lVBb4CTRRbl3YxhlOAeec8fSvojxf+zNoeu6Na6bZQrbS6euIcLgEYwN2wqeOo/kc16b4e8W/GjQtRisfEOlaHqVgdqvJprtFIgx94BmbcfbA+tfQKyfbbKC/EXkl1JdD1UgZIzXyOIxFeU1OVW7XbZH2mGw2GUHCNKye91qz8yvEv7JM7WNvMwBS0Dm4lLHc67SVAGCWO4ADOMAnrXxv4y+Gl54MWO6XesBn2TAjIVTkAkZHGcfSv1v8AiH4m+KV9ObPwzJpuiaah2yXF6qyyOc9QGyoXHtnPevnPXfhJ4w8SRXWfGel6lPcK6m0MMaDBHJUopw3oTxmurBZjWpSi3WTj1Tv/AJHDj8toVozUaLT6NW/zPy+v7KOK5KQ8q3I9OvOK0rW3jEqzXEyCFCCEQ5Yn/PU103xQ8JzeDNch06RHhLJ8yyfeDA85wSCPQivO5G3Dev314/CvuKNaNaCqQejPz+vQlRqOnPdHcx6qq3wufJbyy7CJRzgtnhfck/SvU/DNxp2oajYW2q3Vwbj7THCq7gCF2lSitwByRnLAHkcV45eRWcmjW0qExyptYgZKyZwMZ9R1H5V654E1CBNYs9K1WGJdO1VVtbmPJkVPMO1ZgGy0bq2GJHbpWdZJxNaUmnqfqZ8ENZ17V/Ar2tutlLBpg+xMsEbJcrJEo8l3y5BRkGBtGPlr68+F1zef2RG+p4ErDO0nkZr8yfCeq3vwr0DzrxdU0rUbK6iglWS1cWN2pnKxRvcqCjeYu9UPUHoOtfpL4Wae8it7iWB7M3caskZbLIxXOxxgbWHcc1y0GlLUVdNarY998O6hZR6kVJXcQK9J1OeFrcEEcjNfN2jeFNXu9Y8+K5ZFxz9favRtV03XbC2yLozbR90jFd8JPl2MG9T/0/0LtNNWwh/fqvua6XSoorGwa8kKkHLBCcZFed3Wq6prw8mAeVGeDtH9a6fw/p1zJD5V3LnZ8oyewrgk7z0OiL0Pj34meJm0/wAVa1o99dCWbULYtZWnmGJAturTKDjHLpuADHnaSvSvyG+LemWtzb3t8bc29zPdNcRvseOKZJixY7JDhWBwAF4wM85Jr9zfH/wD8B614ztfHWtRE3dtt3ESMqP5Cv5fnKpAdEDNnPQZxxxX4rftR6jpHiTx5J/wht3JNpaSfZIhIrogKudzRhudm4nDNztGTXmYfDuFa99z1J11Oi48uyPnPSrTT4ra3YtItxI75P8ACwCHAAwD1Gc59iOa5zVopjqOH4LEAFuBnjua7bxVZNoVxHp9pew3z2DG2ae3O+GR4mwzxt3UnODxkc9CK47WLv7ZiaTaspP3UG0AdOnTrXsxbep5k0krGj4Nt/P8aaRFKOHu0GMDHX8q/Wu98GeNfESaRa6dqA0rQbZN06wny5ZTtx8rlXReefmRs+3Wvyj+HsAl8beH/LdTK95ENmTnJOMnsP51/Rj8PtBs20O386NXXy16+hFfJcQJvGUrdE99Vv2PsuGUvqlXm79NHt3Pz9+HPw5+KWmeKftup6098kNwv+rEpiNsAQ6Odg3OeNuCFUjpzx98adNqd54enjZCskY+Xd97kHA/Suu1G40nTX+yW6orMMYUDJ/xo0W3kurC7kKlUchACMEdQTXkVf3lXdX1vZWPoaMFTpW1tpa7bf4nwz8RPCviDxrb/ZopLmBbVpWY25YSFnTETqykEeWecY+bp615f4a+CHi23sre8k8Q3L6ta3huTc7bgFoyADCY5maMDqSwyxPGcV9sC5Tw5qU41RCsQPlmRgApOeOenI5Fei6fa6Pf27T2aIGZeWGOa4sPiKkaToKS+5HTicLTlVVdxbfq7fdc/E/9rXSLiz1LSL29O6ZjJC8g/i2jIP19a+QQWjYNjgg/Lmv0V/b3tI7ZtFCBQRcycA5GNpx/Svzul3SToQv+sVcKenNfc8PN/UYJ9Lr8WfnXEkUsfO3W35HbaS9rPo8sNw2FOSpZgAhzlRt69e4p1hcxRXSTwyMNx4DA/Lt6+uRXORYitpreRmEn3QM/KwBz0retbQXVlBPAXEtuWzwCu3r6j/8AVmvWaR5EW3Y+8PCnijWPH3wiuNJtlN1baJqVm95cSSsXt48s4LR7TiMYYB84DkE4FfqF8L/EV34i0q11/V7GSzmDOiRs25GRflSZcAZVhyrEZwa/Mn9hjxTeaX44n0drC1kstUj8i8uXbbMmFbywqkgMmR8/Bxkc84r9jPDtjpMFkbWyiihijyqRxKERR6Ko4A+lclOPvtGldvY67wp4isF1Aws65xXa6zeRzshjYbSOea8Ts/C8bag90jlcHscZ5roru21WxgM4cuiDgHriuqMnynM276n/1P05fw3eabpRv5IREoXds4BA+naquneIPD1vpJLMryuCztnkHsPbFc9498W+Pp/DUktroz28Ey4LyMA6of4tg/rWt8MtG0VPAtut8iST3iu8zOAWJLEdfYdK4HK87R7HXGOiPmz4rWfi74jeFb3Q/DOsNod1JIDFdEZRoslXhkGDlJFOGxX5hfFr9mHWfhZLp+p39/Nq+iwqZL0wRkSvIsW9hAzmRUVmzgMM4HTPNfq5r2v6To8lzHd4jihkbaCcZCnivkj9pHSvFXxKOkaL4V1JbffbzSCBLhViYeW0nmGWMOSxUbBGQevOOTXn1ZWXM5WOug/e5Ern443iWl9qBS0LRWylm8uRs4QcYyByegzgc1zWpoUcKRtAyPY46EGvWvih4Zg8DRado6zTnUpYxd6isiBGjknUMkWfvcJjOcZJJxzXlF2oa1hk37mOeCecegGM/nXp0ZqSUlsclZWbT3GaJqsuh61Ya1B9+xuYbhffynDY/HGK/oi8LfEO2h8F2uqWzb4ZbZJoSOjI67lOfoa/nKIPfvX6i/sifFex8U+CT8M9cmUanoan7KHPM9iTxjPUxE7SP7u014PE+GnOlHEU943T9H/k/wAz6ThXFwhWlQqbS1Xqv+B+R90+EtV1DWbh/Ed/CSWIaFDzsQ/Mu4ZwCeCRWZrfxU8SaTdTxXzh1ckxpBHtRAPu8gnJ9c/pXI2fgrS08Q6f4iup7qW2tmMN1YrdTR2lzE3AMkaMBvXPyuMEcZyOK9dTT/gBFEP7Q8Paktx50eUieWcYX5nIYS/dOec4PHFfLYbB89FONS3e/wDwx91LENT5nSlL/Ck/1v8AgePx+ONS1mznh1q9hlhmO9UuvKiZRznLZ5HpnmuO8NfEDW9K12PStNuU1HS597RyRkSeXtO3yy4OGXnIZfTGa9O8eWXw18Q+Hr/wx4X8Mw2lpqaSW8tzdYku5I3LZWL5mMe5W25zkD0xmuE1K18P+CtOW7kENhp+lWhBOAkcUMa849gBXJjMMqdnGXNI3VSSV5x5F2dr/NbL77+h8N/tseIbrWtb8PWUyhJZUmuCnopYRr/I18XSRus0eBsKIjADqSRkfp1ruvit8Qbv4neP7zxNGpjtgRb2ERH+rtos7Mj1bJZvc1wSSKQ2QAy4IY+nXGK/SMsw0sPhadKe+79W7n5Lm+KjiMXUqx26eiVi0sr3Mwyg3RbmZgOcgd+36V7j8MtI8NeKZ7vTvFkxt5JLQm2mgBEjTj/VJhSAQxOCANxPTpXielRpLI8pJyPvLycqRyT7Z4/GvX/DOnWuq3linhmSaXVrYxMlvHG6tJeNKuI0HXbGoJaRsDnr0z0V37rRx0d7n1z+zf8ADr4geGfG0euTQPbQC8NtLDcRiSWKzKmXewJz8+1cMPuk5OeRX6l+G/EkSM9sPm2knNec/DjTrz4hxaLrDWqWEraFHFdGSZGmSaCU/u1jU/KpLEhm6kAZ5ruLb4e+L9DmuLyW0+02Zdm8xOGC+6+1cNKc2+YVVxb16HpWheJIbu/+zq2cHkV6vfywSWYUY5FfCl/4huvDWsm5hyV3ZI/GvY9F+KUOqw+VIcFFGc11wrx+FmfLJavY/9X9afiJq+nWPh27jbaSYWVQfUivheL4xWnhOx+y3c+1hkAZ6Z9KpfFD4u/6PJH55nkYcKDxXxlewah4pvmubtyATwOwrza9RJprc6YSctFsek+M/G8Xi+7kWFyImY8g9a1vBlwbeS3S5mkn+zktalySIHYBHZQeAWXgk9v15rQfB8KbQx4r2jRPD1lCF6ZGK4pU/aO7LVT2atFn5v8Ax7+FOo3/AMYdcnt7Wa7sI7Q6zdT3JEcRSIKLkxS5wyCVgvHzgHgHivlDxjZWMOraja6YIDaxTtJCIHZkjjb59gZxuO37ue+K/bL4veAl1/QpLTRdFW+OpSxrdSSSF3jKMWWSSJE3Tx7ifMQYbBBByAR8RXX7DfxBn1u3ksrm3bSpLgGRLjKzeU0mSPlU4bbjIdsjpu9OmhNr4h1KkWtD885EYwxRtxgEjPX5uRWj4X1jVvDfiTTda0Sd7W+tbhHikQ4I5wVI7qwyCDwQcGvs34v/ALLXi7wZoM/ia+RYYBqMFlBa2yCbebhtvmKV5VBtA+fozKuTya+ufhj+x/8AB/4W+FYPFfxTuFvPF8+mvPDp19PGojuHRiqxWo+ZnXIBJLAEGt5VlyO66MyjpOPI9bqx638O9ZtvFujRNc7Y7low0sR4BBHJUHt/k1T1z4aTPcmWHWJLeNjkRg5x9MnNcb4fsTpsaLbyFTGF27TgjHpV3XLnxC4LQ3bOuM5PUe1fltaskmtmfs2FnOm7xbOs0DwlYaMjXlxePcSjd88zD5dvoOgHevi/9qvxbc674YvdH0xythEu5mU489kcEn/cHb1PNezXF3rV2sltcXDurnDKMgHHX/JrzLx54Vs9X0uW2uukg25B6A8VWAxcYV4SlrZpmOZ0Z1qNTXVpo/L+3cI+WU9OoOKt+V5is8YOwYGeTyegzivpPwh8H/DSeNrnw74lvmt5jFv06S5hH2BpHbEf2qRXDBc8HC45yTivorw7+xh408SeOdOt9W8mHwfFIWu59P8ALgDbf3hECb5TIjMTGkjMTjkYGBX6jHERqRVSOz2fc/H61P2U3TqaNbo+H/Cuh65qMsj6Fbbj5MkU2SMtlGZgEOM/KMjg4xmvo74I/Bjxlr/hu/8AiV4Pkn0z+xbm3S4luIWZXilbEk9tMuQPLIIlVlZVX5icZx7N8KfBQ8e/tNatJp+kweFk8Nx3cjW8lu4WdI5fssDNEWAbd95mBXPUA9a/S/4f+F9K+Hdjf2dhHCBqs5ubtIIhFbvIVCHbDkqoKjBHfvWVSTlpbQlzUUrPU7v4P+F9Y0Twdp6axa2lrcKmAtoWZTAp/dBmcZY4ycjjnj1r6Ut9RtZbD7JgAsuCK8f0iS91S3WC0YQxooVVHACgYAUdgOwrTTw9q0b+Z9qYH0zU0/cXuoi99T51+J/wZ1+61KW+8NzNOJXZzbso+XJz8pHb61x2neF9W0lTHqtlJaS9ywIViPQ19y+H4Xs5M30hkPqx6VV+JSWF9oE8FtEstwyZjC4zuHSh0k1zItVJKPK3of/W4WGzm1NhJcyFifU12eleHUyuys3S7cnHBr0bSYnBXC14drnZJ2WhraZ4f2gZrvNP0kIAB2qtp8cgUZWvX/BfgrU/Ege5V47WzhO155emeuFUcsf85reFNyfLFHLOaW5zlrYEDg12+ieEfEGtOF02zkdSeZGG2MfV2wK9csNM8FeFIBO8QvJY8brm4AZQfZPuqPzrRHxR0l38hZ44lXgFvkXA9Pwr06WWVGrtHDPGUouzkcNrHhTwr4M8NX2v+N1j1YWUJufsoUNBlOmd3Lc+wH1r8ktMuJvGHxa8X+M9emNxe6jcRrZmQ5EFkY12QxDoqBlccd6/Qv8AaR8Yyx+Cb660i50+8S7hNuY42drhVYjcRn5eOOMV+YtpcXFrcw6lpZzeW4IMLjaZIyQWRh+AII6EA+orqx+QTxGW1IYfSe687dPn+Zllmf08LmdOddXgtH5X6/L8rn0lDEsEW2UfIpBXHHI6VV1G4gcPGZChIPBHIwKz7Xxt4av4oluLpIJ3Cjy5MoQxGeM8cdDg4Bpt1bwXypMkiyRsMqyMDkE+1fhePo1adR06kWn2aP33A1qVWmqlOSa7pmOIowpMS7tx+83b8KxtVsoEt5JrogRLlnJ4AAGa6TV9U8O6CIop7je5PMcYLt07hen44rx7xd4nXVJBHGGtrFMbYmOWduu9wucew5A9fT18g4Yx+YVVyQah1k1ovTu/JfhueFxDxXgcupNTmpT6RT1fr2XmzyPxNMJ7t7oJh7hlSJT1WIEgZ9zkn8favdv2ffjTqvwwfWbbVY21fQIrqMvaMxDRK/ytJC3Yg4JHQivDmgl1DUxMykKhG0ew79a6nwxZFTq8GwSJPC52n+LackE/T0r99wmUUaOHjhoL3Yq39efU/nrHZzWr154mcvek7/8AA/Q/QNfH/wAF/DXimHUNPgTSYPGCi9XU0JlgmuHwskdw+A0cgI6MCuDkGvb7nTl2q275XUOjD7rKRkMp7g9iK/LbTLH7VoM+gXh8y0fDwZ6wuOm3PftX1t+z/wDFy8i0VPhr4uZZ5tNJ/s+Wck+ZDknySTyMfwkHjpXJjOG0481DR9jTB8QtS5MQrrufUOjatcaNIFSTKk969KTWPtVv5r3Ww46DFeURW9p4kSSfQsJLHnfbOfmyDzsJJz9K5i4ku4i0LSum0kFTkEEdjXymJw1XDzcKisfU4bFU60Oem7o9M1bxBHakt9sbj3rmbL4i6TaXbfbp9/HAZ64l9BfUx80rt9Oa569+HNhM2Z2m/WuKTad0dJ//187TYpMjBr0PTFlUDFZ9lDaKBgV1tqsGBt614kYnROXQ7Hw1p9xql/DZmTy1c5kc9EReWb8BXdeMvixFpEC6R4dUR2NvCyK2cEleCSPUnqa4eyujp+g6rfxnDLEsQPoHOW/QV4Ncap9qtry3lf5iLjac90VZFH4gGvt+HMDB03Xmr3Pjc/x1RT9hTdjt4Pibrd5dOsVyzgjlSxII7jGe9RX+vXN9cB3k8tgPurwufXj2rwjwXqMlzO8q4LBsEentXrYiOFYKAfavrHSitUj5ZVG9zE8X3L3kMVtK7Og7Z4x9K8tl0SEEugwSeK9N135ihYZOD26VzLqGUENnOefpSS0NE7nK3fh+HUolgnRJDkAMQC/oRnr6Vw2vaNrelTTzz6gWt72SC0srZSf3ZyC7AEcHYrcivZ7GNPtiBuhPHfJzXK/E2EnUfDTpkILqfd9fJO3+uK4q+CoTalOCbv8A8A7KWNr0ouMJtKxjDScxq79cDBBP9c1nXWhJKcu2fXj8K6+MnIwu7jGeuMU+SINwO3YV1W6HFdvU4e08PW0cudpIxnNbMFpFZTM8a4J57elavlBA29SfQ8VWniBjLKCPx6UEPzHNpv7v7TYMSMAsnUjvxUSu6yR3qny7iE7lYcEEVWF3LZSbuSQB064BplzqEE5MqnacYI6VtGSMZQ7H0b4A+I9zZ7JJpWWUSH5snHQcD+de+/8ACbeHvEMSxapGIZ26XUOBID6kdGH1r84xq5tFljQkHBkB64K49PUVt6Z4/u4tqSSMdpHP0HX+VcOLw1GuuWornbhK9ak+anKx+jmjO+jzpMZVu7KQgLPH0Gezr1U/ofWvXo9MsNRgFxGAcjtX58eCvilNZzKrSbo3O1kblWHoe1fWXhjxxa29vHdxvm0kwME52MRnafb0NfEZrkzw37ynrH8j7LK82Vf93UVpfmf/0PQbTS4yOR+ZrorawjXGP51x8GoS4Azx9K3rW/c8Bv0rx00as3PEzC28HXdpEcSXSzYx1zHGCP1NfJcWsm8tkuY2OX+YrxnJQxsPXv2r6D8carLZ6dpMhPyyz3EWTxklAVz+K4r4vn1ZdA8Q3WnSFhBKxurUHPMZb94nHUqeor9LyNKOCh5/5s/O87beMnb+tEexfCaCE+C11fAZ7i7mVjjJ+RsBa9WWTdGA3yrzxjvXzp8ONek0PQdSsZWL20WrEW6j/aUyEj8CteswaxdahH5gVkGM8ivYjO8UmeR7Np6GlrBV281Tnadtc66gDCnoRW7h5ItkhyQAx4HWsiXH3CBgZ9fz9qnyLRn7XE6snU88DJ/AetcJ4ofXUh0ka1LG0k+otJaRohDxxJHIH3Z6nBXJx34zXq9hbrJcHOPlGQMevH9a818WSjUfiRBaf8s9IsAOenm3J3t+O1VrGrC8otN6fj6m0aloSi0tfw9DSgSQoM85A9c0oABOSR7danKgAHdwDjgY9BTWCopcgDuM8dK1Mio7rsx8x64qhLKNjE9yCen4VYMhkYrhhz15we9UZVyCucEn2PH9KlkmNdzoFO5eexPUj/8AVXKXlx1MRGe3OK6W7kRWI547dMnvjiuP1FfMLDA74HANZTdkVCN2YT6rP9o8pmyNrDkdcj8KiW7MROGPJ6isqcPBdKX4XnPqOD9aha5Vmyh24BAB/WvPnNt6npQgktDvdN16a2dVD4H97+or6r+FvjqJm/s29cPb3ACMHPHsR/SvhVZ2RgSc4OcV2uh6hcMcW8vluOR2yaOdTTpzV0w5XBqcWf/Z",xr={default:"Default",primary:"Primary",secondary:"Secondary",tertiary:"Tertiary",neutral:"Neutral"},pr={"xxx-small":{size:16,iconSize:10},"xx-small":{size:24,iconSize:14},"x-small":{size:32,iconSize:18},small:{size:40,iconSize:22},medium:{size:56,iconSize:28},large:{size:64,iconSize:32},"x-large":{size:80,iconSize:40},"xx-large":{size:160,iconSize:80}};const hr={"xxx-small":"7px","xx-small":"var(--Legal-Font-Size)","x-small":"var(--Number-Small-Font-Size)",small:"var(--Number-Small-Font-Size)",medium:"var(--Number-Medium-Font-Size)",large:"var(--Number-Medium-Font-Size)","x-large":"var(--Number-Large-Font-Size)","xx-large":"var(--Number-Large-Font-Size)"};function mr({src:o,defaultPhoto:a=!0,alt:i,initials:l,icon:s,color:c="default",size:d="x-small",customSize:u,clickable:x=!1,onClick:p,insideButton:h=!1,className:m="",sx:f={},...g}){const[b,v]=e.useState(!1),y="custom"===d&&u?{size:u}:pr[d]||pr.medium,j=xr[c]||xr.default,S=o||(!a||l||s?void 0:ur),B=S&&!b,k=!B&&l,C=!B&&!k,w=x||!!p,T=B?"transparent":"var(--Buttons-"+j+"-Button)",I="var(--Buttons-"+j+"-Border)",A="var(--Buttons-"+j+"-Text)",z=w?"button":"div";return r.jsxs(t.Box,{component:z,type:w?"button":void 0,role:w?"button":"img","aria-label":i||l||"Avatar",tabIndex:w?0:void 0,onClick:w?p:void 0,className:"avatar avatar-"+d+" avatar-"+c+(w?" avatar-clickable":"")+(B?" avatar-image":k?" avatar-initials":" avatar-fallback")+(m?" "+m:""),sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:y.size+"px",height:y.size+"px",borderRadius:"50%",backgroundColor:T,color:A,fontFamily:"inherit",fontWeight:600,overflow:"hidden",flexShrink:0,border:B?"none":"2px solid "+I,...h&&{marginLeft:"2px",marginRight:"2px"},...w&&{cursor:"pointer",outline:"none",padding:0,transition:"background-color 0.15s ease, border-color 0.15s ease","&:hover":{backgroundColor:B?"rgba(0,0,0,0.08)":"var(--Buttons-Default-Hover)"},"&:active":{backgroundColor:B?"rgba(0,0,0,0.15)":"var(--Buttons-Default-Pressed)"},"&:focus-visible":{outline:"3px solid var(--Focus-Visible)",outlineOffset:"2px"}},...f},...g,children:[B&&r.jsx(t.Box,{component:"img",src:S,alt:i||"Avatar",onError:()=>v(!0),sx:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"50%"}}),k&&(()=>{const{Comp:e,token:t}=function(e){switch(e){case"xxx-small":case"xx-small":case"x-small":return{Comp:Yt,token:"Overline-Small"};case"small":case"medium":case"large":default:return{Comp:Zt,token:"Overline-Medium"};case"x-large":case"xx-large":return{Comp:_t,token:"Overline-Large"}}}(d);return r.jsx(e,{sx:{color:"inherit",fontSize:hr[d]||hr.medium,lineHeight:1,textAlign:"center",marginInlineEnd:`calc(-1 * var(--${t}-Letter-Spacing, 0px))`,...Lt},"aria-hidden":"true",children:l.slice(0,2).toUpperCase()})})(),C&&r.jsx(dr,{size:d,sx:{color:"inherit"},children:s||r.jsx(n,{})})]})}function fr({children:o,max:a=5,size:n="medium",spacing:i=-8,className:l="",sx:s={},...c}){const d=e.Children.toArray(o),u=d.slice(0,a),x=d.length-a;return r.jsxs(t.Box,{role:"group","aria-label":"Avatar group, "+d.length+" avatars",className:"avatar-group "+l,sx:{display:"inline-flex",alignItems:"center","& > *:not(:first-of-type)":{marginLeft:i+"px"},...s},...c,children:[u,x>0&&r.jsx(mr,{initials:"+"+x,size:n,color:"neutral",sx:{border:"2px solid var(--Background)",zIndex:0}})]})}const gr=["primary","secondary","tertiary","neutral","info","success","warning","error"],br=e=>e.charAt(0).toUpperCase()+e.slice(1);function vr(){const e={};return gr.forEach(t=>{e[t]=function(e){const t=br(e);return{bg:"var(--Buttons-"+t+"-Button)",text:"var(--Buttons-"+t+"-Text)",border:"none"}}(t),e[t+"-outline"]=function(e){return{bg:"var(--Background)",text:"var(--Text)",border:"1px solid var(--Buttons-"+br(e)+"-Border)"}}(t),e[t+"-light"]=function(e){const t=br(e);return{bg:"var(--Buttons-"+t+"-Button)",text:"var(--Buttons-"+t+"-Text)",border:"1px solid var(--Buttons-"+t+"-Border)"}}(t)}),e}const yr={small:{minW:16,height:16,fontSize:"10px",padding:"0 4px",dotSize:8},medium:{minW:20,height:20,fontSize:"12px",padding:"0 6px",dotSize:10},large:{minW:24,height:24,fontSize:"14px",padding:"0 8px",dotSize:12}};function jr({variant:e="primary",size:o="medium",badgeContent:a,max:n=99,showZero:i=!1,invisible:l=!1,dot:s=!1,overlap:c="rectangular",anchorOrigin:d={vertical:"top",horizontal:"right"},children:u,className:x="",sx:p={},...h}){const m=vr(),f=m[e]||m.primary,g=yr[o]||yr.medium;let b=a;s?b="":"number"==typeof a&&a>n&&(b=n+"+");const v=l||!s&&!i&&(0===a||null==a),y={"& .MuiBadge-badge":{minWidth:s?g.dotSize:g.minW,height:s?g.dotSize:g.height,padding:s?0:g.padding,fontSize:g.fontSize,fontWeight:600,fontFamily:"var(--Body-Font-Family)",lineHeight:1,borderRadius:s?"50%":g.height/2+"px",backgroundColor:f.bg,color:f.text,border:f.border,boxSizing:"border-box",boxShadow:"0 0 0 1px var(--Background)",transition:"transform 0.2s ease, opacity 0.2s ease"},...p};return r.jsx(t.Badge,{badgeContent:s?"":b,max:n,showZero:i,invisible:v,overlap:c,anchorOrigin:d,variant:s?"dot":"standard",className:"badge-"+e+" "+x,sx:y,...h,children:u})}const Sr={1:[[.5,1,1]],2:[[1,2,2],[2,4,4]],3:[[1,2,2],[2,4,4],[3,6,6]],4:[[1,2,2],[2,4,4],[4,8,8],[8,16,16]],5:[[1,2,2],[2,4,4],[4,8,8],[8,16,16],[16,32,32]]},Br=[.2,.17,.15,.13,.11];function kr(e){return Sr[e].map(([e,t,r],o)=>`${e}px ${t}px ${r}px ${`var(--Dropshadow-Color-${o+1}, rgba(var(--Dropshadow-Color, 20, 20, 20), ${Br[o]}))`}`).join(", ")}const Cr=kr(1),wr=kr(2),Tr=kr(3),Ir=kr(4),Ar=kr(5),zr={0:"none",1:Cr,2:wr,3:Tr,4:Ir,5:Ar},Rr={"black-white":"BlackWhite"},Er=e=>{return Rr[e]||(t=e).charAt(0).toUpperCase()+t.slice(1);var t},Lr={small:"Sm-",medium:"",large:"Lg-"};function Pr(e,t){const r=Er(e),o=(e,t)=>`color-mix(in srgb, rgb(var(${e}, ${t})) calc(var(--Button-Bevel-Opacity, 0.5) * 100%), transparent)`,a="var(--_bevel)",n="calc(-1 * var(--_bevel))",i=Lr[t],l=void 0===i?(e,t)=>t:(e,t)=>`var(--${i}Button-${e}, ${t})`;return[`inset ${l("Lowlight-Offset-x",n)} ${l("Lowlight-Offset-y",n)} ${l("Lowlight-Blur-Radius",a)} ${l("Lowlight-Spread",n)} `+o(`--Buttons-${r}-Lowlight`,"0 0 0"),`inset ${l("Highlight-Offset-x",a)} ${l("Highlight-Offset-y",a)} ${l("Highlight-Blur-Radius",a)} ${l("Highlight-Spread",n)} `+o(`--Buttons-${r}-Highlight`,"255 255 255")].join(", ")}const Mr={small:"4px 2px",medium:"4px 2px",large:"4px"},Or={small:{avatar:"xxx-small",icon:"small"},medium:{avatar:"xx-small",icon:"medium"},large:{avatar:"small",icon:"large"}};function Dr(t,r){if(!e.isValidElement(t))return t;const o=Or[r]||Or.medium;return t.type===mr?e.cloneElement(t,{size:o.avatar,insideButton:!0}):t.type===dr?e.cloneElement(t,{size:o.icon}):t}const Wr=["default","primary","secondary","tertiary","neutral","info","success","warning","error"],Fr=Er;function Nr(e,t=!1,r=!1,o="medium"){const a=Fr(e),n=Pr(e,o),i=t?Cr:"none";return{backgroundColor:`var(--Buttons-${a}-Button)`,color:`var(--Buttons-${a}-Text)`,border:`var(--Button-Border-Width) solid var(--Buttons-${a}-Border)`,boxShadow:"none"===i?n:`${n}, ${i}`,position:"relative",zIndex:1,"& .MuiTouchRipple-rippleVisible":{color:`var(--Buttons-${a}-Hover)`,zIndex:-1},"&:hover":{backgroundColor:`var(--Buttons-${a}-Hover)`,boxShadow:`${n}, ${t?wr:Cr}`,...!r&&{transform:"translateY(-1px)"}},"&:active":{backgroundColor:`var(--Buttons-${a}-Pressed)`,boxShadow:n,...!r&&{transform:"translateY(0)"}},"&.Mui-focusVisible":{backgroundColor:`var(--Buttons-${a}-Button)`,outline:"2px solid var(--Focus-Visible)",outlineOffset:"2px"},"& .MuiTouchRipple-root":{zIndex:-1},"& .MuiTypography-root":{zIndex:1},"& .MuiButton-icon":{zIndex:1}}}function Hr(e,t=!1){return{backgroundColor:"transparent",color:"var(--Text)",border:`var(--Button-Border-Width) solid var(--Buttons-${Fr(e)}-Border)`,boxShadow:"none","& .MuiTouchRipple-rippleVisible":{color:"var(--Hover)"},"&:hover":{backgroundColor:"var(--Hover)",boxShadow:"none",...!t&&{transform:"translateY(-1px)"}},"&:active":{backgroundColor:"var(--Pressed)",...!t&&{transform:"translateY(0)"}},"&.Mui-focusVisible":{backgroundColor:"transparent",outline:"2px solid var(--Focus-Visible)",outlineOffset:"2px"}}}function Vr(e,t=!1){return{backgroundColor:"transparent",color:e?"var(--Hotlink)":"var(--Quiet)",border:"var(--Button-Border-Width) solid transparent",boxShadow:"none",textDecoration:"none",...e&&{"& .btn-text-content":{textDecoration:"underline"}},"& .MuiTouchRipple-rippleVisible":{color:"var(--Hover)"},"&:hover":{backgroundColor:"var(--Hover)",boxShadow:"none",...!t&&{transform:"translateY(-1px)"},...e?{"& .btn-text-content":{textDecoration:"none"}}:{color:"var(--Text)"}},"&:active":{backgroundColor:"var(--Pressed)",...!t&&{transform:"translateY(0)"},...e?{"& .btn-text-content":{textDecoration:"none"}}:{color:"var(--Text)"}},"&.Mui-focusVisible":{backgroundColor:"transparent",outline:"2px solid var(--Focus-Visible)",outlineOffset:"2px",...e&&{"& .btn-text-content":{textDecoration:"none"}}}}}function Qr(e,t=!1,r=!1,o="medium"){const a={};return Wr.forEach(e=>{a[e]=Nr(e,t,r,o),a[`${e}-outline`]=Hr(e,r),a[`${e}-light`]=function(e,t=!1,r=!1){const o=(a=e).charAt(0).toUpperCase()+a.slice(1);var a;return{backgroundColor:`var(--${o}-Color-11)`,color:`var(--Text-${o}-Color-11)`,border:`var(--Button-Border-Width) solid var(--Buttons-${o}-Border)`,boxShadow:t?Cr:"none","& .MuiTouchRipple-rippleVisible":{color:`var(--Hover-${o}-Color-11)`},"&:hover":{backgroundColor:`var(--Hover-${o}-Color-11)`,boxShadow:t?wr:Cr,...!r&&{transform:"translateY(-1px)"}},"&:active":{backgroundColor:`var(--Pressed-${o}-Color-11)`,boxShadow:"none",...!r&&{transform:"translateY(0)"}},"&.Mui-focusVisible":{backgroundColor:`var(--${o}-Color-11)`,outline:"2px solid var(--Focus-Visible)",outlineOffset:"2px"}}}(e,t,r)}),a["black-white"]=Nr("black-white",t,r,o),a["black-white-outline"]=Hr("black-white",r),a.danger=Nr("error",t,r,o),a.outline=Hr("default",r),a.ghost=Vr(e,r),a.text=Vr(e,r),a}const Gr={small:"var(--Small-Button-Height)",medium:"var(--Button-Height)",large:"var(--Large-Button-Height)"},qr={small:{minHeight:"var(--Small-Button-Height)",minWidth:"var(--Button-Min-Width)",fontSize:"13px","--_height":"var(--Small-Button-Height)"},large:{minHeight:"var(--Large-Button-Height)",minWidth:"var(--Lg-Button-Min-Width, var(--Button-Min-Width))",fontSize:"17px","--_height":"var(--Large-Button-Height)"},medium:{minHeight:"var(--Button-Height)",minWidth:"var(--Button-Min-Width)",fontSize:"15px","--_height":"var(--Button-Height)"}};function Ur({variant:o="default",size:a="medium",elevated:n=!1,selected:i=!1,fullWidth:l=!1,disabled:s=!1,iconOnly:c=!1,letterNumber:d=!1,avatar:u=!1,swatch:x=!1,swatchColor:p,startIcon:h,endIcon:m,startDecorator:f,endDecorator:g,badge:b=!1,badgeContent:v,badgeVariant:y="error",badgeSize:j,badgeDot:S=!1,badgeMax:B=99,badgeAnchorOrigin:k={vertical:"top",horizontal:"right"},children:C,className:w="",sx:T={},...I}){const A=c||u||x;if("production"!==process.env.NODE_ENV){const t=I["aria-label"]||I["aria-labelledby"]||I.title;A&&!t&&console.error('[OmniDesign] An icon-only <Button> has no accessible name. A screen reader announces it as just "button". Add aria-label="…" describing the ACTION ("Delete item"), not the icon ("trash").'),t&&e.Children.forEach(C,e=>{const r=e?.props?.["aria-label"]||e?.props?.titleAccess;r&&console.error('[OmniDesign] <Button> is labelled "'+t+'" but also contains an icon labelled "'+r+"\". A screen reader reads both. Remove the icon's label — the button owns the name.")})}const z=l&&!A&&!d,R=!u&&!x||"ghost"!==o&&"text"!==o?o:"primary",E=Qr(!A,n,i,a),L=E[R]||E.default,P=function({size:e,iconOnly:t,letterNumber:r,avatar:o}){const a=qr[e]||qr.medium,n=Gr[e]||Gr.medium;if(t)return{height:n,width:n,minWidth:"unset",minHeight:"unset",fontSize:o?"small"===e?"var(--Button-ExtraSmall-Font-Size)":"large"===e?"18px":"14px":"small"===e?"0.875rem":a.fontSize,padding:"0","--_height":n};return r?{...a,minHeight:n,minWidth:n,padding:"0"}:{...a,padding:"large"===e?"0 var(--Lg-Button-Padding)":"0 var(--Button-Padding)"}}({size:a,iconOnly:A,letterNumber:d,avatar:u}),M="small"===a?nr:ir,O=void 0!==f?Dr(f,a):void 0,D=void 0!==g?Dr(g,a):void 0,W=j||("small"===a?"small":"large"===a?"large":"medium"),F=r.jsxs(r.Fragment,{children:[r.jsx(t.GlobalStyles,{styles:{'[class*="btn-"] .MuiButton-startIcon, [class*="btn-"] .MuiButton-icon':{marginLeft:"0px !important",marginRight:"2px !important"},'[class*="btn-"] .MuiButton-endIcon':{marginLeft:"2px !important",marginRight:"0px !important"},'[class*="btn-"] .MuiButton-iconSizeSmall .MuiSvgIcon-root, [class*="btn-"] .MuiButton-iconSizeSmall > *':{fontSize:sr.small+" !important"},'[class*="btn-"] .MuiButton-iconSizeMedium .MuiSvgIcon-root, [class*="btn-"] .MuiButton-iconSizeMedium > *':{fontSize:sr.medium+" !important"},'[class*="btn-"] .MuiButton-iconSizeLarge .MuiSvgIcon-root, [class*="btn-"] .MuiButton-iconSizeLarge > *':{fontSize:sr.large+" !important"}}}),r.jsx(t.Button,{size:a,...z&&{fullWidth:!0},disabled:s,startIcon:void 0!==O?O:u?(()=>{if(u&&C){const e=Gr[a]||Gr.medium,o="small"===a?"var(--Button-ExtraSmall-Font-Size)":"large"===a?"18px":"14px";return r.jsx(t.Avatar,{sx:{width:e,height:e,backgroundColor:"inherit",color:"inherit",fontSize:o},children:C})}return h})():h,endIcon:void 0!==D?D:m,className:`btn-${o} ${w}`,role:"button",sx:{borderRadius:u?"var(--Large-Button-Height)":c||x?"small"===a?"var(--Sm-Button-Icon-Radius, var(--Button-Icon-Radius))":"large"===a?"var(--Lg-Button-Icon-Radius, var(--Button-Icon-Radius))":"var(--Button-Icon-Radius)":"small"===a?"var(--Sm-Button-Radius, var(--Button-Radius))":"large"===a?"var(--Lg-Button-Radius, var(--Button-Radius))":"var(--Button-Radius)",textTransform:"none",fontWeight:"inherit",lineHeight:1,whiteSpace:"nowrap",flexShrink:0,transition:"background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, transform 0.15s ease-in-out","--_bevel":"min(calc(var(--Button-Bevel) * var(--_height) / 100), calc(var(--_height) / 5))",..."small"===a&&{position:"relative","&::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"100%",height:"100%",minWidth:"var(--Target, 0px)",minHeight:"var(--Target, 0px)"}},...P,...L,"&.MuiButton-root":{padding:P.padding??"0 var(--Sizing-1)"},"& .MuiButton-startIcon":{display:"inherit",color:"inherit",marginLeft:"0px !important",marginRight:u?"0px !important":"2px !important"},...u&&{"& .MuiAvatar-root":{fontSize:"small"===a?"var(--Button-ExtraSmall-Font-Size)":"large"===a?"18px":"14px"}},"& .MuiButton-endIcon":{display:"inherit",color:"inherit",marginLeft:"2px !important",marginRight:"0px !important"},"& .MuiSvgIcon-root":{color:"inherit"},"&:focus-visible, &.Mui-focusVisible":{outline:"2px solid var(--Focus-Visible)",outlineOffset:"2px"},"&.Mui-disabled":{opacity:.6,cursor:"not-allowed",pointerEvents:"none",backgroundColor:L.backgroundColor,color:L.color,border:L.border,boxShadow:"none"},...x&&{border:"var(--Button-Border-Width) solid var(--Border)",padding:"1px",width:Gr[a]||Gr.medium,height:Gr[a]||Gr.medium,minWidth:"unset",minHeight:"unset",boxShadow:"none","--_bevel":"0",backgroundColor:"transparent !important","&:hover":{backgroundColor:"transparent !important",boxShadow:"none"},"&:active":{boxShadow:"none"},"&:hover .btn-swatch-inner":{filter:"brightness(0.9)"}},...z&&{width:"100%"},...T},...I,...x?{style:{backgroundColor:"transparent"}}:{},children:u?null:x?r.jsx(t.Box,{className:"btn-swatch-inner",style:{width:"100%",height:"100%",borderRadius:"small"===a?"var(--Sm-Button-Icon-Inner-Radius, calc(var(--Button-Icon-Radius) - 2px))":"large"===a?"var(--Lg-Button-Icon-Inner-Radius, calc(var(--Button-Icon-Radius) - 2px))":"var(--Button-Icon-Inner-Radius, calc(var(--Button-Icon-Radius) - 2px))",...p?{backgroundColor:p}:{}}}):(()=>{if(A)return C;if(d){const e="small"===a?ar:M;return r.jsx(e,{component:"span",sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"4px",color:"inherit",lineHeight:1,...Lt},children:C})}return"string"==typeof C||"number"==typeof C?r.jsx(t.Box,{component:"span",className:"btn-text-content",sx:{display:"inline-flex",alignItems:"center",padding:Mr[a]||Mr.medium},children:r.jsx(M,{component:"span",sx:{color:"inherit",...Lt},children:C})}):C})()})]});return b?r.jsx(jr,{variant:y,size:W,badgeContent:v,dot:S,max:B,anchorOrigin:k,showZero:0===v,children:F}):F}const Xr=["default","primary","secondary","tertiary","neutral","info","success","warning","error"],Kr=e=>e.charAt(0).toUpperCase()+e.slice(1);function Jr(e){const t=Kr(e);return{type:"outline",color:t,borderToken:"var(--Buttons-"+t+"-Border)",icon:"var(--Buttons-"+t+"-Border)"}}function Yr(e){const t=Kr(e);return{type:"light",color:t,borderToken:"var(--Buttons-"+t+"-Border)",icon:"var(--Buttons-"+t+"-Border)",dataTheme:t+"-Light"}}function Zr(){const e={};return Xr.forEach(t=>{e[t+"-outline"]=Jr(t),e[t+"-light"]=Yr(t)}),e.primary=Jr("primary"),e.default=Jr("default"),e.outline=Jr("primary"),e.light=Yr("primary"),e}const $r={small:{box:16,icon:12,labelSize:"13px",gap:6,touchTarget:24},medium:{box:20,icon:14,labelSize:"15px",gap:8,touchTarget:24},large:{box:24,icon:18,labelSize:"17px",gap:10,touchTarget:24}};function _r({size:e,variant:o,checked:n,indeterminate:l}){const s=Zr(),c=s[o]||s.primary,d=$r[e]||$r.medium,u=n||l,x="light"===c.type,p=c.borderToken,h="small"===e?"var(--Sm-Checkbox-Radius, 3.2px)":"large"===e?"var(--Lg-Checkbox-Radius, 4.8px)":"var(--Checkbox-Radius, 4px)",m=x?{"data-theme":c.dataTheme,"data-surface":"Surface-Dim"}:{};return r.jsx(t.Box,{className:"chk-box-icon",sx:{width:d.box,height:d.box,boxSizing:"border-box",borderRadius:h,border:"2px solid "+p,overflow:"hidden",flexShrink:0,transition:"border-color 0.15s ease-in-out"},children:r.jsx(t.Box,{...m,sx:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"var(--Background)",color:"var(--Text)",transition:"background-color 0.15s ease-in-out"},children:u&&(l?r.jsx(i,{sx:{fontSize:d.icon,color:c.icon}}):r.jsx(a,{sx:{fontSize:d.icon,color:c.icon}}))})})}function eo({size:e,variant:t}){return r.jsx(_r,{size:e,variant:t,checked:!1,indeterminate:!1})}function to({size:e,variant:t}){return r.jsx(_r,{size:e,variant:t,checked:!0,indeterminate:!1})}function ro({size:e,variant:t}){return r.jsx(_r,{size:e,variant:t,checked:!1,indeterminate:!0})}const oo=["primary","secondary","tertiary","neutral","info","success","warning","error"],ao=e=>e.charAt(0).toUpperCase()+e.slice(1);function no(e){return{bg:"var(--Hover)",border:"var(--Buttons-"+ao(e)+"-Border)",text:"var(--Text)",focusBg:"var(--Hover)"}}function io(e){const t=ao(e);return{bg:"var(--Buttons-"+t+"-Light-Button, var(--Hover))",border:"var(--Buttons-"+t+"-Border)",text:"var(--Text)",focusBg:"var(--Buttons-"+t+"-Light-Button, var(--Hover))"}}const lo={small:{height:"var(--Small-Button-Height)",fontSize:"13px",labelSize:"13px",padding:"4px var(--Input-Padding, 8px)",iconSize:16},medium:{height:"var(--Button-Height)",fontSize:"15px",labelSize:"15px",padding:"4px var(--Input-Padding, 12px)",iconSize:18},large:{height:"var(--Large-Button-Height)",fontSize:"17px",labelSize:"17px",padding:"4px var(--Input-Padding, 16px)",iconSize:20}},so={small:{height:"48px",fontSize:"13px",labelSize:"11px",padding:"20px var(--Input-Padding, 12px) 4px",leftPad:12,iconSize:16},medium:{height:"56px",fontSize:"15px",labelSize:"12px",padding:"22px var(--Input-Padding, 14px) 6px",leftPad:14,iconSize:18},large:{height:"64px",fontSize:"17px",labelSize:"14px",padding:"24px var(--Input-Padding, 16px) 6px",leftPad:16,iconSize:20}},co={info:d,success:l,warning:s,error:c},uo={info:{border:"var(--Buttons-Info-Border)",icon:"var(--Icons-Info)",text:"var(--Hotlink)"},success:{border:"var(--Buttons-Success-Border)",icon:"var(--Icons-Success)",text:"var(--Text-Success)"},warning:{border:"var(--Buttons-Warning-Border)",icon:"var(--Icons-Warning)",text:"var(--Text-Warning)"},error:{border:"var(--Buttons-Error-Border)",icon:"var(--Icons-Error)",text:"var(--Text-Error)"}};function xo({variant:e="primary-outline",size:o="medium",label:a,labelPosition:n="standard",placeholder:i,helperText:l,validation:s,validationMessage:c,disabled:d=!1,value:u,defaultValue:x,onChange:p,name:h,type:m="text",multiline:f=!1,rows:g,maxRows:b,startAdornment:v,endAdornment:y,fullWidth:j=!1,className:S="",sx:B={},"aria-label":k,"aria-labelledby":C,"aria-describedby":w,"aria-required":T,"aria-invalid":I,inputProps:A={},...z}){const R=function(){const e={};return oo.forEach(t=>{e[t+"-outline"]=no(t),e[t+"-light"]=io(t)}),e.outline=no("primary"),e.light=io("primary"),e}(),E=R[e]||R["primary-outline"],L="floating"===n;e.endsWith("-light");const P=L?so[o]||so.medium:lo[o]||lo.medium,M=e.replace(/-outline$/,"").replace(/-light$/,"");ao(M);const O="var(--Text)",D=s?uo[s]:null,W=s?co[s]:null,F=D?D.border:E.border,N={...A,...k&&{"aria-label":k},...C&&{"aria-labelledby":C},...w&&{"aria-describedby":w},...T&&{"aria-required":T},...I&&{"aria-invalid":I}};return r.jsxs(t.Box,{className:"inp-"+e+" "+S,sx:{width:j?"100%":"auto",...B},children:[(()=>{if(!a||L)return null;const e="small"===o?Vt:Gt;return r.jsx(e,{component:"label",sx:{display:"block",marginBottom:"6px",color:d?"var(--Quiet)":"var(--Text)",fontSize:P.labelSize,fontWeight:500,opacity:d?.6:1},children:a})})(),r.jsx(t.Box,{sx:{border:"1px solid "+F,borderRadius:"small"===o?"var(--Sm-Input-Radius, var(--Input-Radius, var(--Style-Border-Radius)))":"large"===o?"var(--Lg-Input-Radius, var(--Input-Radius, var(--Style-Border-Radius)))":"var(--Input-Radius, var(--Style-Border-Radius))",overflow:"hidden",transition:"border-color 0.15s ease-in-out",boxShadow:"none","&:focus-within":{outline:"2px solid var(--Focus-Visible)",outlineOffset:"2px"}},children:r.jsx(t.Box,{children:r.jsx(t.TextField,{value:u,defaultValue:x,onChange:p,name:h,type:m,disabled:d,placeholder:i,multiline:f,rows:g,maxRows:b,fullWidth:!0,label:L?a:void 0,variant:"outlined",size:"small"===o?"small":"medium",inputProps:N,InputProps:{startAdornment:v?r.jsx(t.InputAdornment,{position:"start",children:v}):void 0,endAdornment:(()=>{if(y)return r.jsx(t.InputAdornment,{position:"end",children:y})})()},sx:{"& .MuiOutlinedInput-root":{backgroundColor:"var(--Hover)",color:"var(--Quiet)",fontSize:P.fontSize,minHeight:f?"auto":P.height,padding:0,borderRadius:0,transition:"color 0.15s ease-in-out",...L&&{alignItems:"flex-end"},"& fieldset":{border:"none"},"&.Mui-focused":{color:O},"&:not(.Mui-focused) .MuiOutlinedInput-input:not(:placeholder-shown)":{color:O},"&.Mui-disabled":{opacity:.6,cursor:"not-allowed"},"& input":{padding:P.padding,color:"inherit","&::placeholder":{color:"var(--Quiet)",opacity:1}},"& textarea":{padding:P.padding,color:"inherit","&::placeholder":{color:"var(--Quiet)",opacity:1}},"& .MuiInputAdornment-root":{color:"var(--Quiet)"},...L&&{"& .MuiInputAdornment-positionStart":{marginLeft:(P.leftPad||14)+"px",marginRight:"4px",marginBottom:"8px"},"& .MuiInputAdornment-positionEnd":{marginRight:"8px",marginBottom:"8px"},...v&&{"& input":{paddingLeft:"4px"},"& textarea":{paddingLeft:"4px"}}}},"& .MuiInputLabel-root":{color:"var(--Quiet)",fontSize:P.fontSize,transformOrigin:"top left",transform:"translate("+((P.leftPad||14)+(v?32:0))+"px, 16px) scale(1)","&.MuiInputLabel-shrink":{transform:"translate("+((P.leftPad||14)+(v?32:0))+"px, 6px) scale(0.75)",color:"var(--Quiet)"},"&.Mui-focused":{color:O},"&.Mui-disabled":{color:"var(--Quiet)",opacity:.6}},"& .MuiOutlinedInput-notchedOutline legend":{display:"none"},"& .MuiOutlinedInput-notchedOutline":{top:0},"& .MuiOutlinedInput-root.Mui-focused":{outline:"none"},"& .MuiOutlinedInput-root:focus-within":{outline:"none"}},...z})})}),s&&c?r.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",gap:"6px",marginTop:"4px",marginLeft:"2px"},children:[W&&r.jsx(W,{sx:{fontSize:P.iconSize,color:D.icon,flexShrink:0}}),r.jsx(t.FormHelperText,{sx:{color:D.text,fontSize:"small"===o?"11px":"12px",margin:0},children:c})]}):l?r.jsx(t.FormHelperText,{sx:{color:"var(--Quiet)",fontSize:"small"===o?"11px":"12px",marginTop:"4px",marginLeft:"2px"},children:l}):null]})}const po=e=>e.charAt(0).toUpperCase()+e.slice(1),ho={small:{height:"var(--Small-Button-Height)",fontSize:"13px",padding:"4px 8px",iconSize:16},medium:{height:"var(--Button-Height)",fontSize:"14px",padding:"6px 12px",iconSize:18},large:{height:"var(--Large-Button-Height)",fontSize:"16px",padding:"8px 16px",iconSize:20}},mo={small:{height:48,fontSize:"13px",padding:"20px 12px 4px",labelSize:"11px",leftPad:12},medium:{height:56,fontSize:"14px",padding:"22px 14px 6px",labelSize:"12px",leftPad:14},large:{height:64,fontSize:"16px",padding:"24px 16px 6px",labelSize:"14px",leftPad:16}};function fo({options:o=[],value:n,defaultValue:i="",onChange:l,label:s,labelPosition:c="top",size:d="medium",variant:p="outline",color:h="primary",selectionStyle:m="default",mode:f="standard",placeholder:g="Select…",showDividers:b=!1,showColorLabels:v=!0,startDecoration:y,disabled:j=!1,fullWidth:S=!1,className:B="",sx:k={},...C}){const w="default"===h?"primary":h,T=po(w),I="var(--Buttons-"+T+"-Border)",A="default"===h?"var(--Text)":"var(--Text-"+T+")",[z,R]=e.useState(i),[E,L]=e.useState(!1),[P,M]=e.useState(!1),[O,D]=e.useState({top:0,left:0,width:0,direction:"down"}),W=e.useRef(null),F=e.useRef(null),[N,H]=e.useState(null),[V,Q]=e.useState(null),G=void 0!==n,q=G?n:z,U=o.flatMap(e=>e&&Array.isArray(e.options)?e.options:[e]).find(e=>("string"==typeof e?e:e.value)===q),X=U?"string"==typeof U?U:U.label:"",K=""!==q&&null!=q,J="floating"===c,Y="top"===c,Z="color"===f,$=J?mo[d]||mo.medium:ho[d]||ho.medium,_=e.useCallback(e=>{G||R(e),l?.(e),L(!1),F.current?.focus()},[G,l]),ee=e.useCallback(()=>{if(!F.current)return{top:0,left:0,width:0};const e=F.current.getBoundingClientRect(),t=window.innerHeight-e.bottom,r=e.top,o=t>=240||t>=r?"down":"up";return{top:"down"===o?e.bottom+4:void 0,bottom:"up"===o?window.innerHeight-e.top+4:void 0,left:e.left,width:e.width,direction:o}},[]),te=e.useCallback(()=>{j||L(e=>(e||D(ee()),!e))},[j,ee]);e.useEffect(()=>{if(!E)return;const e=e=>{!W.current||W.current.contains(e.target)||e.target.closest("[data-select-dropdown]")||L(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[E]),e.useEffect(()=>{if(!E||!F.current)return;const e=F.current.closest("[data-theme]"),t=F.current.closest("[data-surface]");H(e?.getAttribute("data-theme")||null),Q(t?.getAttribute("data-surface")||null);const r=()=>D(ee());return window.addEventListener("scroll",r,!0),window.addEventListener("resize",r),()=>{window.removeEventListener("scroll",r,!0),window.removeEventListener("resize",r)}},[E,ee]);const re=e.useRef(null),oe=e.useCallback(e=>{const t=re.current;if(!t)return;const r=t.querySelectorAll('[role="option"]');if(!r.length)return;const o=t.querySelector('[role="option"]:focus');let a=Array.prototype.indexOf.call(r,o);a="down"===e?a<r.length-1?a+1:0:a>0?a-1:r.length-1,r[a].focus()},[]);e.useEffect(()=>{E&&requestAnimationFrame(()=>{const e=re.current;if(!e)return;const t=e.querySelector('[aria-selected="true"]'),r=e.querySelector('[role="option"]');(t||r)?.focus()})},[E]);const ae=E?u.createPortal(r.jsx(t.Box,{ref:re,"data-select-dropdown":!0,"data-theme":N||void 0,role:"listbox","aria-label":s||"Options",sx:{position:"fixed",top:O.top??"unset",bottom:O.bottom??"unset",left:O.left,width:O.width+"px",backgroundColor:"var(--Hover)",border:"1px solid var(--Buttons-Default-Border)",borderRadius:"var(--Dropdown-Frame-Radius, var(--Input-Radius, var(--Style-Border-Radius, 4px)))",boxShadow:"none",zIndex:99999,maxHeight:"240px",overflowY:"auto",py:.5},children:(()=>{const n=(o,n,i)=>{const l="string"==typeof o?o:o.value,s="string"==typeof o?o:o.label,c="object"==typeof o?o.color:null,d=l===q,u=function(e,t,r){const o=po(r||"default");return t?"solid"===e?{backgroundColor:"var(--Buttons-"+o+"-Button)",color:"var(--Buttons-"+o+"-Text)",border:"1px solid var(--Buttons-"+o+"-Border)",fontWeight:600}:"light"===e?{backgroundColor:"var(--Buttons-"+o+"-Light-Button)",color:"var(--Buttons-"+o+"-Light-Text)",border:"1px solid var(--Buttons-"+o+"-Light-Border)",fontWeight:600}:{backgroundColor:"var(--Buttons-"+o+"-Button)",color:"var(--Buttons-"+o+"-Text)",border:"1px solid var(--Buttons-"+o+"-Border)",fontWeight:600}:{color:"var(--Text)",backgroundColor:"transparent",border:"1px solid transparent"}}(m,d,w),x=n===i-1;return r.jsxs(e.Fragment,{children:[r.jsxs(t.Box,{role:"option",tabIndex:-1,"aria-selected":d,"aria-label":Z&&!v?s:void 0,onClick:()=>_(l),onKeyDown:e=>((e,t)=>{if("Enter"===e.key||" "===e.key)return e.preventDefault(),void _(t);"ArrowDown"===e.key&&(e.preventDefault(),oe("down")),"ArrowUp"===e.key&&(e.preventDefault(),oe("up")),"Escape"===e.key&&(L(!1),F.current?.focus())})(e,l),sx:{display:"flex",alignItems:"center",gap:1,px:1.5,py:0,mx:.5,my:"1px",minHeight:$.height,cursor:"pointer",fontSize:$.fontSize,fontFamily:"inherit",borderRadius:"4px",outline:"none",...u,transition:"background-color 0.1s ease","&:hover":d?{}:{backgroundColor:"var(--Buttons-"+T+"-Hover)",color:"var(--Buttons-"+T+"-Text)"},"&:active":d?{}:{backgroundColor:"var(--Buttons-"+T+"-Pressed)",color:"var(--Buttons-"+T+"-Text)"},"&:focus-visible":{outline:"2px solid var(--Focus-Visible)",outlineOffset:"2px"}},children:[Z&&c&&r.jsx(t.Box,{sx:{height:"calc("+$.height+" - 8px)",width:"calc("+$.height+" - 8px)",borderRadius:"var(--Input-Swatch-Radius, var(--Button-Radius))",backgroundColor:c,border:"1px solid "+(d?"var(--Buttons-"+T+"-Border)":"var(--Border)"),flexShrink:0}}),(!Z||v)&&r.jsx(Vt,{style:{flex:1,color:"inherit",fontWeight:"inherit"},children:s}),d&&r.jsx(dr,{size:"small",sx:{opacity:.6,flexShrink:0},children:r.jsx(a,{})})]}),b&&!x&&r.jsx(t.Box,{"aria-hidden":"true",sx:{height:"1px",backgroundColor:"var(--Border)",mx:1,my:.25}})]},l)};return o.map((a,i)=>{if(a&&Array.isArray(a.options)){const o=a.options;return r.jsxs(e.Fragment,{children:[r.jsx(t.Box,{role:"presentation",sx:{px:1.5,pt:0===i?.75:1.25,pb:.5,fontSize:"11px",fontFamily:"inherit",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:"var(--Text-Quiet)"},children:a.label}),o.map((e,t)=>n(e,t,o.length))]},"group-"+(a.label||i))}return n(a,i,o.length)})})()}),document.body):null;return r.jsxs(t.Box,{ref:W,className:"select-wrapper select-"+d+" select-label-"+c+" select-style-"+m+" select-variant-"+p+(E?" select-open":"")+(j?" select-disabled":"")+(B?" "+B:""),sx:{position:"relative",width:S?"100%":"auto",display:"inline-block",fontFamily:"inherit",...k},...C,children:[Y&&s&&(()=>{const e="small"===d?Vt:Gt;return r.jsx(e,{component:"label",style:{display:"block",marginBottom:"6px",color:j?"var(--Quiet)":"var(--Text)",fontWeight:500,opacity:j?.6:1},children:s})})(),r.jsx(t.Box,{sx:{border:"1px solid "+I,borderRadius:"var(--Input-Radius, var(--Style-Border-Radius))",overflow:"hidden",transition:"border-color 0.15s ease",boxShadow:"none","&:focus-within":{outline:"2px solid var(--Focus-Visible)",outlineOffset:"2px"}},children:r.jsx(t.Box,{children:r.jsxs(t.Box,{ref:F,component:"button",type:"button",role:"combobox","aria-expanded":E,"aria-haspopup":"listbox","aria-label":s||g,tabIndex:j?-1:0,onClick:te,onKeyDown:e=>"Escape"===e.key?(L(!1),void F.current?.focus()):"Enter"===e.key||" "===e.key?(e.preventDefault(),void te()):E||"ArrowDown"!==e.key&&"ArrowUp"!==e.key?(E&&"ArrowDown"===e.key&&(e.preventDefault(),oe("down")),void(E&&"ArrowUp"===e.key&&(e.preventDefault(),oe("up")))):(e.preventDefault(),void L(!0)),onFocus:()=>M(!0),onBlur:()=>M(!1),sx:{display:"flex",alignItems:"center",gap:1,width:"100%",minWidth:140,height:$.height,padding:$.padding,backgroundColor:"var(--Hover)",border:"none",borderRadius:0,color:K||E?A:"var(--Quiet)",fontSize:$.fontSize,fontFamily:"inherit",cursor:j?"not-allowed":"pointer",opacity:j?.5:1,outline:"none",textAlign:"left",position:"relative",transition:"color 0.15s ease"},children:[y&&r.jsx(t.Box,{sx:{display:"flex",alignItems:"center",flexShrink:0,color:"var(--Text-Quiet)"},children:y}),J&&s&&r.jsx(t.Box,{sx:{position:"absolute",top:K||E?"6px":"50%",left:($.leftPad||14)+(y?32:0)+"px",transform:K||E?"scale(0.75)":"translateY(-50%)",transformOrigin:"top left",color:E?A:"var(--Quiet)",fontSize:$.fontSize,fontWeight:400,pointerEvents:"none",transition:"top 0.15s ease, transform 0.15s ease, color 0.15s ease"},children:s}),r.jsx(t.Box,{sx:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",...J&&{mt:K||E?"8px":0}},children:Z&&K?r.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[r.jsx(t.Box,{sx:{height:"calc("+$.height+" - 8px)",width:"calc("+$.height+" - 8px)",borderRadius:"var(--Input-Swatch-Radius, var(--Button-Radius))",backgroundColor:U&&"string"!=typeof U&&U.color||"transparent",border:"1px solid var(--Border)",flexShrink:0}}),v&&r.jsx(Vt,{style:{color:"inherit",padding:0},children:X})]}):r.jsx(Vt,{style:{color:"inherit",padding:0},children:K?X:J&&s?"":g})}),r.jsx(x,{sx:{fontSize:($.iconSize||18)+"px",color:"var(--Text-Quiet)",transform:E?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease",flexShrink:0}})]})})}),ae]})}const go={default:"Default",primary:"Primary",secondary:"Secondary",tertiary:"Tertiary",neutral:"Neutral",info:"Info",success:"Success",warning:"Warning",error:"Error"},bo={default:"Default",primary:"Primary",secondary:"Secondary",tertiary:"Tertiary",neutral:"Neutral",info:"Info",success:"Success",warning:"Warning",error:"Error"},vo={default:"Default",primary:"Primary",secondary:"Secondary",tertiary:"Tertiary",neutral:"Neutral",info:"Info",success:"Success",warning:"Warning",error:"Error"},yo={small:{px:"10px",py:"6px",fontSize:"13px",iconSize:"16px",gap:"4px",indicatorThickness:"3px",minHeight:"32px"},medium:{px:"14px",py:"8px",fontSize:"14px",iconSize:"18px",gap:"6px",indicatorThickness:"3px",minHeight:"40px"},large:{px:"18px",py:"10px",fontSize:"16px",iconSize:"20px",gap:"8px",indicatorThickness:"3px",minHeight:"48px"}},jo=e.createContext({value:0,setValue:()=>{},variant:"standard",color:"primary",size:"medium",orientation:"horizontal",scrollable:!1,tabsId:""}),So=()=>e.useContext(jo);function Bo({children:o,defaultValue:a=0,value:n,onChange:i,variant:l="standard",color:s="primary",size:c="medium",orientation:d="horizontal",scrollable:u=!1,className:x="",sx:p={},...h}){const[m,f]=e.useState(a),g=void 0!==n,b=g?n:m,v=e.useId(),y=e.useCallback(e=>{g||f(e),i?.(e)},[g,i]);return r.jsx(jo.Provider,{value:{value:b,setValue:y,variant:l,color:s,size:c,orientation:d,scrollable:u,tabsId:v},children:r.jsx(t.Box,{className:"tabs tabs-"+d+" tabs-"+c+" tabs-"+l+("standard"!==l?" tabs-"+s:"")+(u?" tabs-scrollable":"")+" "+x,sx:{display:"flex",flexDirection:"horizontal"===d?"column":"row",width:"100%",overflow:"hidden",...p},...h,children:o})})}function ko({children:o,rounded:a=!1,className:n="",sx:i={},...l}){const{variant:s,color:c,size:d,orientation:u,scrollable:x,tabsId:p}=So(),h=e.useRef(null),m=e.useRef(null),[f,g]=e.useState(!1),[b,v]=e.useState(!1),y="horizontal"===u,j="standard"===s,S="light"===s,B="dark"===s,k=j?void 0:"solid"===s?go[c]:S?bo[c]:B?vo[c]:void 0,C=j?void 0:B?"Surface-Dimmest":S?"Surface-Brightest":"Surface",w=e.useCallback(()=>{const e=m.current;e&&x&&y&&(g(e.scrollLeft>1),v(e.scrollLeft<e.scrollWidth-e.clientWidth-1))},[x,y]);e.useEffect(()=>{w();const e=m.current;if(!e||!x)return;e.addEventListener("scroll",w,{passive:!0});const t=new ResizeObserver(w);return t.observe(e),()=>{e.removeEventListener("scroll",w),t.disconnect()}},[x,w]);const T=e=>{const t=m.current;if(!t)return;const r=.6*t.clientWidth;t.scrollBy({left:e*r,behavior:"smooth"})},I={display:"inline-flex",alignItems:"center",justifyContent:"center",width:"28px",minWidth:"28px",border:"none",backgroundColor:"transparent",color:"var(--Text-Quiet)",cursor:"pointer",fontSize:"16px",fontFamily:"inherit",lineHeight:1,flexShrink:0,transition:"color 0.15s ease, background-color 0.15s ease","&:hover":{color:"var(--Text)",backgroundColor:"var(--Hover)"},"&:active":{backgroundColor:"var(--Pressed)"},"&:focus-visible":{outline:"3px solid var(--Focus-Visible)",outlineOffset:"-3px"},"&:disabled":{opacity:.3,cursor:"default","&:hover":{backgroundColor:"transparent",color:"var(--Text-Quiet)"}}},A=e.Children.toArray(o).filter(e.isValidElement).map((t,r)=>e.cloneElement(t,{_index:r,key:t.key||r}));return r.jsxs(t.Box,{ref:h,"data-theme":k||void 0,"data-surface":C||void 0,className:"tab-list tab-list-"+s+" tab-list-"+d+" tab-list-"+u+(x?" tab-list-scrollable":"")+" "+n,onKeyDown:e=>{const t=x?m.current:h.current,r=t?.querySelectorAll('[role="tab"]:not([aria-disabled="true"])');if(!r?.length)return;const o=Array.from(r).indexOf(document.activeElement);if(o<0)return;const a=y?"ArrowRight":"ArrowDown",n=y?"ArrowLeft":"ArrowUp";if(e.key===a){e.preventDefault();const t=r[(o+1)%r.length];t.focus(),x&&t.scrollIntoView({block:"nearest",inline:"nearest",behavior:"smooth"})}else if(e.key===n){e.preventDefault();const t=r[(o-1+r.length)%r.length];t.focus(),x&&t.scrollIntoView({block:"nearest",inline:"nearest",behavior:"smooth"})}else"Home"===e.key?(e.preventDefault(),r[0].focus(),x&&r[0].scrollIntoView({block:"nearest",inline:"nearest",behavior:"smooth"})):"End"===e.key&&(e.preventDefault(),r[r.length-1].focus(),x&&r[r.length-1].scrollIntoView({block:"nearest",inline:"nearest",behavior:"smooth"}))},sx:{display:"flex",flexDirection:y?"row":"column",gap:0,position:"relative",backgroundColor:"var(--Background)",padding:"4px",overflow:"hidden",borderRadius:a?"var(--Style-Border-Radius)":0,...i},...l,children:[x&&y&&r.jsx(t.Box,{component:"button","aria-label":"Scroll tabs left",onClick:()=>T(-1),disabled:!f,className:"tab-list-scroll-btn tab-list-scroll-btn-left",sx:I,children:"‹"}),x&&y?r.jsx(t.Box,{ref:m,role:"tablist","aria-orientation":u,className:"tab-list-scroll-container",sx:{display:"flex",flexDirection:"row",overflowX:"auto",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},flex:1,minWidth:0},children:A}):r.jsx(t.Box,{ref:m,role:"tablist","aria-orientation":u,sx:{display:"flex",flexDirection:y?"row":"column",flex:1},children:A}),x&&y&&r.jsx(t.Box,{component:"button","aria-label":"Scroll tabs right",onClick:()=>T(1),disabled:!b,className:"tab-list-scroll-btn tab-list-scroll-btn-right",sx:I,children:"›"})]})}function Co({children:e,value:o,_index:a=0,disabled:n=!1,startDecorator:i,endDecorator:l,iconOnly:s=!1,className:c="",sx:d={},...u}){const{value:x,setValue:p,variant:h,color:m,size:f,orientation:g,tabsId:b}=So(),v=yo[f]||yo.medium,y="horizontal"===g,j="standard"===h,S="light"===h,B="dark"===h,k=void 0!==o?o:a,C=x===k,w=j?"var(--Buttons-"+({default:"Default",primary:"Primary",secondary:"Secondary",tertiary:"Tertiary",neutral:"Neutral",info:"Info",success:"Success",warning:"Warning",error:"Error"}[m]||"Default")+"-Border)":"var(--Text)",T=j?void 0:"solid"===h?go[m]:S?bo[m]:B?vo[m]:void 0,I=j?void 0:B?"Surface-Dimmest":S?"Surface-Brightest":"Surface",A="tab-"+b+"-"+k,z="tabpanel-"+b+"-"+k;return r.jsxs(t.Box,{component:"button",role:"tab",id:A,"data-theme":T||void 0,"data-surface":I||void 0,"aria-selected":C,"aria-controls":z,"aria-disabled":n||void 0,tabIndex:C?0:-1,onClick:()=>{n||p(k)},className:"tab tab-"+f+(C?" tab-selected":"")+(n?" tab-disabled":"")+(s?" tab-icon-only":"")+" "+c,sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:v.gap,padding:s?"calc("+v.py+" + 4px) "+v.py+" "+v.py:"calc("+v.py+" + 4px) "+v.px+" "+v.py+" "+v.px,minHeight:v.minHeight,fontSize:v.fontSize,fontFamily:"inherit",fontWeight:500,lineHeight:1.3,color:C?"var(--Text)":"var(--Quiet)",backgroundColor:"transparent",border:"none",borderBottom:y?C?v.indicatorThickness+" solid "+w:v.indicatorThickness+" solid transparent":"none",borderRight:y?"none":C?v.indicatorThickness+" solid "+w:v.indicatorThickness+" solid transparent",cursor:n?"not-allowed":"pointer",opacity:n?.5:1,position:"relative",outline:"none",transition:"color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease",flexShrink:0,whiteSpace:"nowrap",...!n&&{"&:hover":{backgroundColor:"var(--Hover)"},"&:active":{backgroundColor:"var(--Pressed)"},"&:focus-visible":{outline:"3px solid var(--Focus-Visible)",outlineOffset:"-3px"}},...d},...u,children:[i&&r.jsx(t.Box,{className:"tab-start-decorator",sx:{display:"inline-flex",fontSize:v.iconSize,lineHeight:1,flexShrink:0},children:i}),!s&&e&&(()=>{const t="small"===f?Kt:Vt;return r.jsx(t,{style:{color:"inherit",fontWeight:"inherit"},children:e})})(),l&&r.jsx(t.Box,{className:"tab-end-decorator",sx:{display:"inline-flex",fontSize:v.iconSize,lineHeight:1,flexShrink:0},children:l})]})}function wo({children:e,value:o,className:a="",sx:n={},...i}){const{value:l,size:s,tabsId:c}=So(),d=yo[s]||yo.medium,u="tab-"+c+"-"+o,x="tabpanel-"+c+"-"+o;return l===o?r.jsx(t.Box,{role:"tabpanel",id:x,"aria-labelledby":u,className:"tab-panel tab-panel-"+s+" "+a,sx:{paddingTop:"16px",fontSize:d.fontSize,fontFamily:"inherit",color:"var(--Text)",...n},...i,children:e}):null}const To=e.forwardRef(function({theme:e=null,surface:o="Surface",children:a,minHeight:n=160,sx:i={}},l){return r.jsx(t.Box,{ref:l,"data-theme":e||void 0,"data-surface":o,sx:{p:4,display:"flex",alignItems:"center",justifyContent:"center",minHeight:n,backgroundColor:"var(--Background)",borderBottom:"1px solid var(--Border)",...i},children:a})}),Io="__null__",Ao=[{label:"Default",value:Io},{label:"Primary",value:"Primary"},{label:"Secondary",value:"Secondary"},{label:"Tertiary",value:"Tertiary"},{label:"Neutral",value:"Neutral"},{label:"Info",value:"Info"},{label:"Success",value:"Success"},{label:"Warning",value:"Warning"},{label:"Error",value:"Error"}],zo=["Surface-Dimmest","Surface-Dim","Surface","Surface-Bright","Surface-Brightest","Container","Container-Highest","Container-High","Container-Low","Container-Lowest"];function Ro({theme:e=null,onThemeChange:o,surface:a="Surface",onSurfaceChange:n,surfaces:i=zo,size:l="small"}){const s=i.map(e=>({value:e,label:e}));return r.jsxs(t.Stack,{direction:"row",spacing:1,sx:{alignItems:"center"},children:[r.jsx(t.Box,{sx:{width:160},children:r.jsx(fo,{options:Ao,value:e??Io,onChange:e=>o?.(e===Io?null:e),labelPosition:"none",size:l,variant:"outline",color:"default","aria-label":"Background theme",fullWidth:!0})}),r.jsx(t.Box,{sx:{width:180},children:r.jsx(fo,{options:s,value:a,onChange:e=>n?.(e),labelPosition:"none",size:l,variant:"outline",color:"default","aria-label":"Surface",fullWidth:!0})})]})}function Eo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lo,Po={exports:{}},Mo={exports:{}},Oo={};var Do,Wo,Fo,No,Ho,Vo,Qo,Go,qo,Uo,Xo,Ko,Jo,Yo,Zo={};
2
+ /** @license React v16.13.1
3
+ * react-is.development.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */function $o(){return Wo||(Wo=1,"production"===process.env.NODE_ENV?Mo.exports=function(){if(Lo)return Oo;Lo=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,n=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,f=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var x=e.$$typeof;switch(x){case t:switch(e=e.type){case s:case c:case o:case n:case a:case u:return e;default:switch(e=e&&e.$$typeof){case l:case d:case h:case p:case i:return e;default:return x}}case r:return x}}}function y(e){return v(e)===c}return Oo.AsyncMode=s,Oo.ConcurrentMode=c,Oo.ContextConsumer=l,Oo.ContextProvider=i,Oo.Element=t,Oo.ForwardRef=d,Oo.Fragment=o,Oo.Lazy=h,Oo.Memo=p,Oo.Portal=r,Oo.Profiler=n,Oo.StrictMode=a,Oo.Suspense=u,Oo.isAsyncMode=function(e){return y(e)||v(e)===s},Oo.isConcurrentMode=y,Oo.isContextConsumer=function(e){return v(e)===l},Oo.isContextProvider=function(e){return v(e)===i},Oo.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Oo.isForwardRef=function(e){return v(e)===d},Oo.isFragment=function(e){return v(e)===o},Oo.isLazy=function(e){return v(e)===h},Oo.isMemo=function(e){return v(e)===p},Oo.isPortal=function(e){return v(e)===r},Oo.isProfiler=function(e){return v(e)===n},Oo.isStrictMode=function(e){return v(e)===a},Oo.isSuspense=function(e){return v(e)===u},Oo.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===c||e===n||e===a||e===u||e===x||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===i||e.$$typeof===l||e.$$typeof===d||e.$$typeof===f||e.$$typeof===g||e.$$typeof===b||e.$$typeof===m)},Oo.typeOf=v,Oo}():Mo.exports=(Do||(Do=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,n=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,f=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var x=e.$$typeof;switch(x){case t:var m=e.type;switch(m){case s:case c:case o:case n:case a:case u:return m;default:var f=m&&m.$$typeof;switch(f){case l:case d:case h:case p:case i:return f;default:return x}}case r:return x}}}var y=s,j=c,S=l,B=i,k=t,C=d,w=o,T=h,I=p,A=r,z=n,R=a,E=u,L=!1;function P(e){return v(e)===c}Zo.AsyncMode=y,Zo.ConcurrentMode=j,Zo.ContextConsumer=S,Zo.ContextProvider=B,Zo.Element=k,Zo.ForwardRef=C,Zo.Fragment=w,Zo.Lazy=T,Zo.Memo=I,Zo.Portal=A,Zo.Profiler=z,Zo.StrictMode=R,Zo.Suspense=E,Zo.isAsyncMode=function(e){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),P(e)||v(e)===s},Zo.isConcurrentMode=P,Zo.isContextConsumer=function(e){return v(e)===l},Zo.isContextProvider=function(e){return v(e)===i},Zo.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Zo.isForwardRef=function(e){return v(e)===d},Zo.isFragment=function(e){return v(e)===o},Zo.isLazy=function(e){return v(e)===h},Zo.isMemo=function(e){return v(e)===p},Zo.isPortal=function(e){return v(e)===r},Zo.isProfiler=function(e){return v(e)===n},Zo.isStrictMode=function(e){return v(e)===a},Zo.isSuspense=function(e){return v(e)===u},Zo.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===c||e===n||e===a||e===u||e===x||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===i||e.$$typeof===l||e.$$typeof===d||e.$$typeof===f||e.$$typeof===g||e.$$typeof===b||e.$$typeof===m)},Zo.typeOf=v}()),Zo)),Mo.exports}
10
+ /*
11
+ object-assign
12
+ (c) Sindre Sorhus
13
+ @license MIT
14
+ */function _o(){if(No)return Fo;No=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return Fo=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(o,a){for(var n,i,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(o),s=1;s<arguments.length;s++){for(var c in n=Object(arguments[s]))t.call(n,c)&&(l[c]=n[c]);if(e){i=e(n);for(var d=0;d<i.length;d++)r.call(n,i[d])&&(l[i[d]]=n[i[d]])}}return l},Fo}function ea(){if(Vo)return Ho;Vo=1;return Ho="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function ta(){return Go?Qo:(Go=1,Qo=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var ra=$o();Po.exports=function(){if(Ko)return Xo;Ko=1;var e=$o(),t=_o(),r=ea(),o=ta(),a=function(){if(Uo)return qo;Uo=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=ea(),r={},o=ta();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function a(a,n,i,l,s){if("production"!==process.env.NODE_ENV)for(var c in a)if(o(a,c)){var d;try{if("function"!=typeof a[c]){var u=Error((l||"React class")+": "+i+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}d=a[c](n,c,l,i,null,t)}catch(e){d=e}if(!d||d instanceof Error||e((l||"React class")+": type specification of "+i+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in r)){r[d.message]=!0;var x=s?s():"";e("Failed "+i+" type: "+d.message+(null!=x?x:""))}}}return a.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(r={})},qo=a}(),n=function(){};function i(){return null}return"production"!==process.env.NODE_ENV&&(n=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),Xo=function(l,s){var c="function"==typeof Symbol&&Symbol.iterator,d="<<anonymous>>",u={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:h(i),arrayOf:function(e){return h(function(t,o,a,n,i){if("function"!=typeof e)return new p("Property `"+i+"` of component `"+a+"` has invalid PropType notation inside arrayOf.");var l=t[o];if(!Array.isArray(l))return new p("Invalid "+n+" `"+i+"` of type `"+b(l)+"` supplied to `"+a+"`, expected an array.");for(var s=0;s<l.length;s++){var c=e(l,s,a,n,i+"["+s+"]",r);if(c instanceof Error)return c}return null})},element:h(function(e,t,r,o,a){var n=e[t];return l(n)?null:new p("Invalid "+o+" `"+a+"` of type `"+b(n)+"` supplied to `"+r+"`, expected a single ReactElement.")}),elementType:h(function(t,r,o,a,n){var i=t[r];return e.isValidElementType(i)?null:new p("Invalid "+a+" `"+n+"` of type `"+b(i)+"` supplied to `"+o+"`, expected a single ReactElement type.")}),instanceOf:function(e){return h(function(t,r,o,a,n){if(!(t[r]instanceof e)){var i=e.name||d;return new p("Invalid "+a+" `"+n+"` of type `"+((l=t[r]).constructor&&l.constructor.name?l.constructor.name:d)+"` supplied to `"+o+"`, expected instance of `"+i+"`.")}var l;return null})},node:h(function(e,t,r,o,a){return g(e[t])?null:new p("Invalid "+o+" `"+a+"` supplied to `"+r+"`, expected a ReactNode.")}),objectOf:function(e){return h(function(t,a,n,i,l){if("function"!=typeof e)return new p("Property `"+l+"` of component `"+n+"` has invalid PropType notation inside objectOf.");var s=t[a],c=b(s);if("object"!==c)return new p("Invalid "+i+" `"+l+"` of type `"+c+"` supplied to `"+n+"`, expected an object.");for(var d in s)if(o(s,d)){var u=e(s,d,n,i,l+"."+d,r);if(u instanceof Error)return u}return null})},oneOf:function(e){return Array.isArray(e)?h(function(t,r,o,a,n){for(var i=t[r],l=0;l<e.length;l++)if(x(i,e[l]))return null;var s=JSON.stringify(e,function(e,t){return"symbol"===v(t)?String(t):t});return new p("Invalid "+a+" `"+n+"` of value `"+String(i)+"` supplied to `"+o+"`, expected one of "+s+".")}):("production"!==process.env.NODE_ENV&&n(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),i)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&n("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var t=0;t<e.length;t++){var a=e[t];if("function"!=typeof a)return n("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+y(a)+" at index "+t+"."),i}return h(function(t,a,n,i,l){for(var s=[],c=0;c<e.length;c++){var d=(0,e[c])(t,a,n,i,l,r);if(null==d)return null;d.data&&o(d.data,"expectedType")&&s.push(d.data.expectedType)}return new p("Invalid "+i+" `"+l+"` supplied to `"+n+"`"+(s.length>0?", expected one of type ["+s.join(", ")+"]":"")+".")})},shape:function(e){return h(function(t,o,a,n,i){var l=t[o],s=b(l);if("object"!==s)return new p("Invalid "+n+" `"+i+"` of type `"+s+"` supplied to `"+a+"`, expected `object`.");for(var c in e){var d=e[c];if("function"!=typeof d)return f(a,n,i,c,v(d));var u=d(l,c,a,n,i+"."+c,r);if(u)return u}return null})},exact:function(e){return h(function(a,n,i,l,s){var c=a[n],d=b(c);if("object"!==d)return new p("Invalid "+l+" `"+s+"` of type `"+d+"` supplied to `"+i+"`, expected `object`.");var u=t({},a[n],e);for(var x in u){var h=e[x];if(o(e,x)&&"function"!=typeof h)return f(i,l,s,x,v(h));if(!h)return new p("Invalid "+l+" `"+s+"` key `"+x+"` supplied to `"+i+"`.\nBad object: "+JSON.stringify(a[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=h(c,x,i,l,s+"."+x,r);if(m)return m}return null})}};function x(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function h(e){if("production"!==process.env.NODE_ENV)var t={},o=0;function a(a,i,l,c,u,x,h){if(c=c||d,x=x||l,h!==r){if(s){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var f=c+":"+l;!t[f]&&o<3&&(n("You are manually calling a React.PropTypes validation function for the `"+x+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[f]=!0,o++)}}return null==i[l]?a?null===i[l]?new p("The "+u+" `"+x+"` is marked as required in `"+c+"`, but its value is `null`."):new p("The "+u+" `"+x+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(i,l,c,u,x)}var i=a.bind(null,!1);return i.isRequired=a.bind(null,!0),i}function m(e){return h(function(t,r,o,a,n,i){var l=t[r];return b(l)!==e?new p("Invalid "+a+" `"+n+"` of type `"+v(l)+"` supplied to `"+o+"`, expected `"+e+"`.",{expectedType:e}):null})}function f(e,t,r,o,a){return new p((e||"React class")+": "+t+" type `"+r+"."+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+a+"`.")}function g(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(g);if(null===e||l(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var r,o=t.call(e);if(t!==e.entries){for(;!(r=o.next()).done;)if(!g(r.value))return!1}else for(;!(r=o.next()).done;){var a=r.value;if(a&&!g(a[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function v(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function y(e){var t=v(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return p.prototype=Error.prototype,u.checkPropTypes=a,u.resetWarningCache=a.resetWarningCache,u.PropTypes=u,u},Xo}()(ra.isElement,!0)}else Po.exports=function(){if(Yo)return Jo;Yo=1;var e=ea();function t(){}function r(){}return r.resetWarningCache=t,Jo=function(){function o(t,r,o,a,n,i){if(i!==e){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function a(){return o}o.isRequired=o;var n={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:a,element:o,elementType:o,instanceOf:a,node:o,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return n.PropTypes=n,n},Jo}()();var oa=Eo(Po.exports);function aa({code:n,label:i="Copy code"}){const[l,s]=e.useState(!1);return r.jsx(t.Tooltip,{title:l?"Copied!":i,children:r.jsx(t.IconButton,{size:"small",onClick:async()=>{try{await navigator.clipboard.writeText(n),s(!0),setTimeout(()=>s(!1),2e3)}catch(e){console.error("Copy failed:",e)}},"aria-label":l?"Copied":i,sx:{color:l?"var(--Icons-Success, var(--Text))":"var(--Quiet)","&:hover":{backgroundColor:"var(--Hover)",color:"var(--Text)"},"&:focus-visible":{outline:"2px solid var(--Focus-Visible)",outlineOffset:"2px"}},children:l?r.jsx(a,{fontSize:"small"}):r.jsx(o,{fontSize:"small"})})})}aa.propTypes={code:oa.string.isRequired,label:oa.string};function na({code:e="",language:o="JSX",showCopy:a=!0,showHeader:n=!0,maxHeight:i,wrap:l=!1,sx:s={},...c}){return r.jsxs(t.Box,{"data-theme":"Neutral","data-surface":"Surface-Dimmest",sx:{backgroundColor:"var(--Background)",borderRadius:"min(var(--Card-Radius, var(--Style-Border-Radius)), 12px)",overflow:"hidden",...s},...c,children:[n&&(o||a)&&r.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:1,px:2,py:1,borderBottom:"1px solid var(--Border)",minHeight:40},children:[r.jsx(Kt,{color:"quiet",children:o}),a&&e?r.jsx(aa,{code:e}):null]}),r.jsx(t.Box,{sx:{p:2,overflow:"auto",maxHeight:i},children:r.jsx(t.Box,{component:"pre",sx:{margin:0,fontFamily:"inherit"},children:r.jsx(t.Box,{component:"code",sx:{fontFamily:"ui-monospace, SFMono-Regular, Menlo, Consolas, monospace",fontSize:"13px",lineHeight:1.6,color:"var(--Text)",whiteSpace:l?"pre-wrap":"pre",wordBreak:l?"break-word":"normal",display:"block"},children:e})})})]})}na.propTypes={code:oa.string,language:oa.string,showCopy:oa.bool,showHeader:oa.bool,maxHeight:oa.oneOfType([oa.number,oa.string]),wrap:oa.bool,sx:oa.object};const ia={"display-large":"Display Large","display-medium":"Display Medium","display-small":"Display Small",h1:"H1",h2:"H2",h3:"H3",h4:"H4",h5:"H5",h6:"H6","subtitle-small":"Subtitle Small",subtitle:"Subtitle Medium","subtitle-large":"Subtitle Large","body-small":"Body Small","body-small-semibold":"Body Small Semibold",body:"Body Medium","body-semibold":"Body Medium Semibold","body-large":"Body Large","body-large-semibold":"Body Large Semibold",label:"Label","label-small":"Label Small","label-large":"Label Large",caption:"Caption","caption-bold":"Caption Bold",legal:"Legal","legal-semibold":"Legal Semibold",eyebrow:"Eyebrow Medium","eyebrow-small":"Eyebrow Small","eyebrow-large":"Eyebrow Large",button:"Button Standard","button-small":"Button Small","button-extra-small":"Button Extra Small","number-large":"Number Large","number-medium":"Number Medium","number-small":"Number Small"};Object.entries({Display:["display-large","display-medium","display-small"],Headings:["h1","h2","h3","h4","h5","h6"],Subtitle:["subtitle-small","subtitle","subtitle-large"],Body:["body-small","body-small-semibold","body","body-semibold","body-large","body-large-semibold"],Label:["label","label-small","label-large"],Caption:["caption","caption-bold"],Legal:["legal","legal-semibold"],Eyebrow:["eyebrow-small","eyebrow","eyebrow-large"],Button:["button-extra-small","button-small","button"],Number:["number-large","number-medium","number-small"]}).map(([e,t])=>({label:e,options:t.map(e=>({value:e,label:ia[e]}))}));const la=["default","primary","secondary","tertiary","neutral","info","success","warning","error"],sa=e=>e.charAt(0).toUpperCase()+e.slice(1);function ca(e){const t=sa(e);return{type:"outline",color:t,trackOff:"var(--Background)",trackOffBorder:"var(--Border-Variant)",trackOn:"var(--Buttons-"+t+"-Button)",trackOnBorder:"var(--Buttons-"+t+"-Border)",dotOff:"var(--Quiet)",dotOn:"var(--Buttons-"+t+"-Text)",iconOff:"var(--Background)",iconOn:"var(--Buttons-"+t+"-Button)"}}function da(e){const t=sa(e);return{type:"light",color:t,trackOff:"var(--Border-Variant)",trackOffBorder:"transparent",trackOn:"var(--"+t+"-Color-11)",trackOnBorder:"var(--Buttons-"+t+"-Border)",dotOff:"var(--Quiet)",dotOn:"var(--Buttons-"+t+"-Border)",iconOff:"var(--Border-Variant)",iconOn:"var(--"+t+"-Color-11)",dataTheme:t+"-Light"}}const ua={small:{trackW:28,trackH:16,dotRadius:"var(--Sizing-2, 16px)",icon:8},medium:{trackW:40,trackH:24,dotRadius:"var(--Sizing-2-and-Half, 20px)",icon:16},large:{trackW:56,trackH:32,dotRadius:"var(--Sizing-2-and-Half, 20px)",icon:16}};function xa({variant:e="default",size:o="medium",checked:a,defaultChecked:n,onChange:i,disabled:l=!1,label:s,labelPlacement:c="end",name:d,value:u,icon:x,iconOn:p,iconOff:h,className:m="",sx:f={},"aria-label":g,"aria-labelledby":b,...v}){const y=function(){const e={};return la.forEach(t=>{e[t+"-outline"]=ca(t),e[t+"-light"]=da(t)}),e.default={type:"themed",trackOff:"var(--Background)",trackOffBorder:"var(--Quiet)",trackOn:"var(--Buttons-Default-Button)",trackOnBorder:"var(--Buttons-Default-Border)",dotOff:"var(--Quiet)",dotOn:"var(--Buttons-Default-Text)",iconOff:"var(--Background)",iconOn:"var(--Buttons-Default-Button)"},e["default-outline"]={type:"themed",trackOff:"var(--Background)",trackOffBorder:"var(--Quiet)",trackOn:"var(--Buttons-Default-Button)",trackOnBorder:"var(--Buttons-Default-Border)",dotOff:"var(--Quiet)",dotOn:"var(--Buttons-Default-Text)",iconOff:"var(--Background)",iconOn:"var(--Buttons-Default-Button)"},e.outline={type:"themed",trackOff:"var(--Background)",trackOffBorder:"var(--Quiet)",trackOn:"var(--Buttons-Default-Button)",trackOnBorder:"var(--Buttons-Default-Border)",dotOff:"var(--Quiet)",dotOn:"var(--Buttons-Default-Text)",iconOff:"var(--Background)",iconOn:"var(--Buttons-Default-Button)"},e.primary=ca("primary"),e.light=da("primary"),e}(),j=y[e]||y.default,S=ua[o]||ua.medium,B="small"===o?Vt:Gt,k=S.trackH-4,C=Math.max(24,S.trackW),w=Math.max(24,S.trackH),T=(w-S.trackH)/2,I={width:k,height:k,borderRadius:S.dotRadius,boxShadow:"none",border:"none",display:"flex",alignItems:"center",justifyContent:"center",transition:"background-color 0.15s ease","& > *":{width:S.icon,height:S.icon,display:"block"}},A={width:S.trackW,minWidth:24,height:w,minHeight:24,padding:0,overflow:"visible",opacity:l?"var(--Disabled, 0.38)":1,"& .MuiSwitch-switchBase":{position:"absolute",top:0,left:0,width:"100%",height:"100%",display:"flex",justifyContent:"flex-start",alignItems:"center",paddingTop:0,paddingBottom:0,paddingLeft:"2px",paddingRight:C-S.trackW+2+"px",color:"transparent",transition:"justify-content 0.15s ease",transform:"none","& .MuiSwitch-input":{left:0,top:0,width:"100%",height:"100%",margin:0},"& .MuiSwitch-thumb":{...I,backgroundColor:j.dotOff,color:j.iconOff},"&.Mui-checked":{justifyContent:"flex-end",transform:"none","& .MuiSwitch-thumb":{...I,backgroundColor:j.dotOn,color:j.iconOn},"& + .MuiSwitch-track":{backgroundColor:j.trackOn,borderColor:j.trackOnBorder,opacity:1}},"&:hover, &.Mui-checked:hover":{backgroundColor:"transparent"},"&:hover + .MuiSwitch-track":{boxShadow:wr},"&:active + .MuiSwitch-track":{boxShadow:Cr},"&.Mui-focusVisible + .MuiSwitch-track":{outline:"1px solid var(--Focus-Visible)",outlineOffset:"2px"},"&.Mui-disabled + .MuiSwitch-track":{opacity:1}},"& .MuiSwitch-track":{width:S.trackW,height:S.trackH,borderRadius:"var(--Sizing-3, 24px)",backgroundColor:j.trackOff,border:"1px solid "+j.trackOffBorder,boxSizing:"border-box",opacity:1,position:"absolute",top:T,left:0,transition:"background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease"},...f},z=e.includes("-light")||"light"===e,R=void 0!==h?h:x,E=void 0!==p?p:x,L=void 0!==R||void 0!==E,P=e=>r.jsx("span",{className:"MuiSwitch-thumb",children:e}),M=r.jsx(t.Switch,{...L?{icon:P(R),checkedIcon:P(E)}:{},checked:a,defaultChecked:n,onChange:i,disabled:l,name:d,value:u,slotProps:{input:{...g?{"aria-label":g}:{},...b?{"aria-labelledby":b}:{}}},className:"switch-"+e+" "+m,sx:A,disableRipple:!0,...z&&j.dataTheme?{"data-theme":j.dataTheme,"data-surface":"Surface-Dim"}:{},...v});return s?r.jsx(t.FormControlLabel,{control:M,label:r.jsx(B,{component:"span",sx:{color:l?"var(--Text-Quiet)":"var(--Text)",fontSize:"small"===o?"13px":"15px",fontWeight:500,opacity:l?.6:1},children:s}),labelPlacement:c,sx:{gap:"8px",marginLeft:0,marginRight:0}}):M}const pa=xa,ha=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",ma={default:"Default",quiet:"Quiet",primary:"Primary",secondary:"Secondary",tertiary:"Tertiary",neutral:"Neutral",info:"Info",success:"Success",warning:"Warning",error:"Error"},fa=[{label:"Default",colors:["default"]},{label:"Theme",colors:["primary","secondary","tertiary","neutral"]},{label:"State",colors:["info","success","warning","error"]}],ga=["filled","outlined","rounded","twotone","sharp"],ba={filled:"Filled",outlined:"Outlined",rounded:"Rounded",twotone:"Two Tone",sharp:"Sharp"},va={Home:{filled:h,outlined:k,rounded:P,twotone:U,sharp:ae},Favorite:{filled:p,outlined:C,rounded:M,twotone:X,sharp:ne},Delete:{filled:m,outlined:w,rounded:O,twotone:K,sharp:ie},Settings:{filled:f,outlined:T,rounded:D,twotone:J,sharp:le},Search:{filled:g,outlined:g,rounded:W,twotone:Y,sharp:se},Star:{filled:b,outlined:I,rounded:F,twotone:Z,sharp:ce},Person:{filled:n,outlined:A,rounded:N,twotone:$,sharp:de},Notifications:{filled:v,outlined:z,rounded:H,twotone:_,sharp:ue},Visibility:{filled:y,outlined:R,rounded:V,twotone:ee,sharp:xe},ShoppingCart:{filled:j,outlined:E,rounded:Q,twotone:te,sharp:pe},Lock:{filled:S,outlined:L,rounded:G,twotone:re,sharp:he},Info:{filled:B,outlined:d,rounded:q,twotone:oe,sharp:me}};function ya(e){const t=e.replace("#",""),r=parseInt(t.substring(0,2),16)/255,o=parseInt(t.substring(2,4),16)/255,a=parseInt(t.substring(4,6),16)/255,n=e=>e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4);return.2126*n(r)+.7152*n(o)+.0722*n(a)}function ja(e,t){if(!(e&&t&&e.startsWith("#")&&t.startsWith("#")))return null;const r=ya(e),o=ya(t);return((Math.max(r,o)+.05)/(Math.min(r,o)+.05)).toFixed(2)}function Sa(e){return"undefined"==typeof window?null:getComputedStyle(document.documentElement).getPropertyValue(e).trim()}function Ba({ratio:e,threshold:o}){if(!e)return r.jsx(Kt,{style:{color:"var(--Text-Quiet)"},children:"--"});const a=parseFloat(e)>=o;return r.jsxs(t.Box,{sx:{display:"inline-flex",alignItems:"center",gap:.5},children:[r.jsxs(t.Box,{sx:{px:1,py:.25,borderRadius:"4px",fontSize:"11px",fontWeight:700,backgroundColor:a?"var(--Tags-Success-BG)":"var(--Tags-Error-BG)",color:a?"var(--Tags-Success-Text)":"var(--Tags-Error-Text)"},children:[e,":1"]}),r.jsx(Kt,{style:{color:a?"var(--Tags-Success-Text)":"var(--Tags-Error-Text)"},children:a?"Pass":"Fail"})]})}function ka({label:e,ratio:o,threshold:a,note:n}){return r.jsxs(t.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsxs(t.Box,{sx:{flex:1},children:[r.jsx(Vt,{style:{color:"var(--Text)"},children:e}),n&&r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:n})]}),r.jsx(Ba,{ratio:o,threshold:a})]})}function Ca({label:e,selected:t,onClick:o}){return r.jsx(Ur,{selected:t,variant:t?"primary":"primary-outline",size:"small",onClick:o,children:e})}const wa={default:"Default",primary:"Primary",secondary:"Secondary",tertiary:"Tertiary",neutral:"Neutral",info:"Info",success:"Success",warning:"Warning",error:"Error",white:"White",black:"Black"},Ta={small:{size:32,iconSize:"16px",borderRadius:"8px"},medium:{size:40,iconSize:"20px",borderRadius:"10px"},large:{size:48,iconSize:"24px",borderRadius:"12px"}};function Ia({children:e,color:o="primary",variant:a="solid",size:n="medium",className:i="",sx:l={},...s}){const c=Ta[n]||Ta.medium,d=wa[o]||wa.primary;let u,x;switch(a){case"light":u=d+"-Light",x="Surface";break;case"dark":u=d,x="Surface-Dimmest";break;default:u=d,x="Surface"}return r.jsx(t.Box,{"data-theme":u,"data-surface":x,className:"icon-badge icon-badge-"+a+" icon-badge-"+n+" icon-badge-"+o+" "+i,sx:{width:c.size,height:c.size,borderRadius:c.borderRadius,backgroundColor:"var(--Background)",color:"var(--Text)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,"& svg":{width:c.iconSize,height:c.iconSize,fontSize:c.iconSize,color:"inherit",stroke:"currentColor"},...l},...s,children:e})}const Aa={default:"Default-Light",primary:"Primary-Light",secondary:"Secondary-Light",tertiary:"Tertiary-Light",neutral:"Neutral-Light",info:"Info-Light",success:"Success-Light",warning:"Warning-Light",error:"Error-Light"};function za({variant:o="outlined",color:a="default",size:n="medium",disabled:i=!1,orientation:l="horizontal",spacing:s=0,fit:c,fullWidth:d=!1,equalWidth:u=!1,value:x,defaultValue:p,onChange:h,children:m,className:f="",sx:g={},"aria-label":b,...v}){const[y,j]=e.useState(p??null),S=void 0!==x,B=S?x:y,k="horizontal"===l,C=0===s,w="light"===o,T="ghost"===o,I=c??(d?"fill":u?"equal":"hug"),A="fill"===I,z="equal"===I&&k,R=(E=a).charAt(0).toUpperCase()+E.slice(1);var E;const L="var(--Buttons-"+R+"-Border)",P="var(--Buttons-"+R+"-Button)",M="var(--Buttons-"+R+"-Text)",O=Aa[a]||"Default-Light",D=e.Children.toArray(m).filter(Boolean),W=D.length,F=(e,t)=>r=>{S||j(e),h?.(e,r),t?.(r)},N=D.map((o,l)=>{if(!e.isValidElement(o))return o;const s=0===l,c=l===W-1,d=o.props.value??l,u=B===d;let x;if(C&&W>1){const e="var(--Style-Border-Radius)";x=k?s&&c?e:s?e+" 0 0 "+e:c?"0 "+e+" "+e+" 0":"0":s&&c?e:s?e+" "+e+" 0 0":c?"0 0 "+e+" "+e:"0"}const p={...C&&W>1?{borderRadius:x,...!s&&(k?{marginLeft:"calc(-1 * var(--Button-Border-Width))"}:{marginTop:"calc(-1 * var(--Button-Border-Width))"}),position:"relative","&:hover, &:focus-visible":{zIndex:1}}:{},...u?{backgroundColor:P+" !important",color:M+" !important",borderColor:L+" !important","&:hover, &:active, &.Mui-focusVisible, &:focus-visible":{backgroundColor:P+" !important",color:M+" !important",borderColor:L+" !important"}}:{},...u?{}:{color:"var(--Quiet)",backgroundColor:"transparent","&:hover":{backgroundColor:"var(--Hover)",color:"var(--Text)",zIndex:1},"&:active":{backgroundColor:"var(--Pressed)",color:"var(--Buttons-Default-Text)"}},...T?{border:"none !important","&:hover":{border:"none !important"}}:{},"&:focus-visible":{outline:"2px solid var(--Focus-Visible)",outlineOffset:"2px",zIndex:2},...o.props.sx},h=e.cloneElement(o,{variant:o.props.variant??(T?"ghost":u?a:a+"-outline"),size:o.props.size??n,disabled:o.props.disabled??i,onClick:F(d,o.props.onClick),"aria-pressed":u,sx:p});return w&&!u?r.jsx(t.Box,{"data-theme":O,"data-surface":"Surface",sx:{display:"contents"},children:h},l):e.cloneElement(h,{key:l})});return r.jsx(t.Box,{role:"group","aria-label":b,className:"btn-group btn-group-"+o+" btn-group-"+a+" "+f,sx:{...z?{display:A?"grid":"inline-grid",gridAutoFlow:"column",gridAutoColumns:"1fr",justifyItems:"stretch",alignItems:"stretch",width:A?"100%":"fit-content"}:{display:A?"flex":"inline-flex",flexDirection:k?"row":"column",alignItems:"stretch",width:A?"100%":"auto"},gap:C?0:s,border:"none",borderRadius:"var(--Style-Border-Radius)",...g},...v,children:N})}const Ra=["Link","Chip","Badge","Caption","Label","Tag","BodySmall","LegalSemibold","Legal","LabelSmall","LabelExtraSmall","EyebrowSmall","ButtonSmall"];function Ea(t){let r=!1;return e.Children.forEach(t,t=>{(function(t){if(!e.isValidElement(t))return!1;const r=t.props||{};if("small"===r.size)return!0;if("small"===r["data-size"])return!0;if(24===r.height||24===r.minHeight)return!0;if("24px"===r.height||"24px"===r.minHeight)return!0;if(r.sx){const e=r.sx.minHeight||r.sx.height;if(24===e||"24px"===e)return!0}const o=t.type;if(o){const e=o.displayName||o.name||"";if(Ra.some(t=>e.includes(t)))return!0}return!1})(t)&&(r=!0)}),r}function La({children:o,gap:a,spacing:n,direction:i="column",enforceMinGap:l=!0,minGapToken:s="--min-stack-gap",divider:c,flexWrap:d,useFlexGap:u=!0,alignItems:x,justifyContent:p,sx:h={},className:m="",...f}){const g=void 0!==a?a:n,b=l&&Ea(o),v=e.useMemo(()=>{if(!b)return g;const e=function(e,t=8){return null==e?0:"number"==typeof e?e*t:"string"==typeof e?e.endsWith("px")?parseFloat(e):e.endsWith("rem")?parseFloat(e)*parseFloat(getComputedStyle(document.documentElement).fontSize||"16"):parseFloat(e)*t||0:0}(g),t=function(e,t=8){if("undefined"==typeof window)return t;const r=getComputedStyle(document.documentElement).getPropertyValue(e).trim();return r?r.endsWith("rem")?parseFloat(r)*parseFloat(getComputedStyle(document.documentElement).fontSize):parseFloat(r)||t:t}(s,8);return e>=t?g:"var("+s+", "+t+"px)"},[b,g,s]);return r.jsx(t.Stack,{direction:i,spacing:u?void 0:v,gap:u?v:void 0,divider:c,flexWrap:d,useFlexGap:u,alignItems:x,justifyContent:p,className:"omni-stack"+(b?" omni-stack-min-gap-enforced":"")+(m?" "+m:""),sx:{background:"var(--Background)",boxSizing:"border-box",...b?{"&::before":{display:"none"}}:{},...h},"data-min-gap-enforced":b?"true":void 0,...f,children:o})}const Pa=e=>r.jsx(La,{direction:"row",alignItems:"center",...e}),Ma=e=>r.jsx(La,{direction:"column",...e}),Oa=e=>r.jsx(La,{direction:"row",flexWrap:"wrap",...e}),Da=La,Wa=Oa,Fa={default:"Default",primary:"Primary",secondary:"Secondary",tertiary:"Tertiary",neutral:"Neutral",info:"Info",success:"Success",warning:"Warning",error:"Error"},Na={default:"Default",primary:"Primary-Light",secondary:"Secondary-Light",tertiary:"Tertiary-Light",neutral:"Neutral-Light",info:"Info-Light",success:"Success-Light",warning:"Warning-Light",error:"Error-Light"},Ha={small:{gap:"8px",fontSize:"13px",padding:"var(--Card-Padding)"},medium:{gap:"12px",fontSize:"14px",padding:"var(--Card-Padding)"},large:{gap:"16px",fontSize:"16px",padding:"var(--Card-Padding)"}},Va=e.createContext({variant:"default",color:"primary",size:"medium",orientation:"vertical"});function Qa({children:e,variant:o="solid",color:a="default",surface:n,size:i="medium",orientation:l="vertical",clickable:s=!1,selected:c=!1,elevated:d=!1,draggable:u=!1,onClick:x,href:p,className:h="",sx:m={},...f}){const g="default"===a,b=g?"":"light"===o?Na[a]:Fa[a],v=n||(g?"Container":"dark"===o?"Surface-Dimmest":"Surface"),y=Ha[i]||Ha.medium,j="horizontal"===l,S=!!u,B=s||!!x||!!p||c||S,k=p?"a":"div",C=c?`var(--Buttons-${(e=>e.charAt(0).toUpperCase()+e.slice(1))("default"===a?"Default":a)}-Border)`:"var(--Buttons-Default-Border)",w=B?c?`2px solid ${C}`:"1px solid var(--Buttons-Default-Border)":"1px solid var(--Border-Variant)",T=d?Tr:wr,I=d?Ir:Tr,A=d?wr:Cr;return r.jsx(Va.Provider,{value:{variant:o,color:a,size:i,orientation:l},children:r.jsx(t.Box,{component:k,href:p||void 0,onClick:B?x:void 0,role:B?"button":void 0,tabIndex:B?0:void 0,"aria-pressed":!!c||void 0,draggable:S||void 0,className:"card card-"+o+" card-"+i+" card-"+l+(B?" card-clickable":"")+(c?" card-selected":"")+(d?" card-elevated":"")+(S?" card-draggable":"")+" "+h,sx:{display:"flex",border:w,borderRadius:"var(--Card-Radius)",boxShadow:T,overflow:"hidden",textDecoration:"none",transition:"box-shadow 0.2s ease, border-color 0.2s ease, transform 0.1s ease",...B&&!S&&{cursor:"pointer","&:hover":{borderColor:"var(--Buttons-Default-Border)",boxShadow:I,transform:"translateY(-1px)"},"&:active":{transform:"translateY(0) scale(0.995)",boxShadow:A},"&:focus-visible":{outline:"3px solid var(--Focus-Visible)",outlineOffset:"3px",borderRadius:"calc(var(--Card-Radius) + 3px)"}},...S&&{cursor:"grab","&:hover":{borderColor:"var(--Buttons-Default-Border)",boxShadow:I},"&:active":{cursor:"grabbing",zIndex:10,boxShadow:Ir,transform:"scale(1.02)",borderWidth:"2px",borderColor:"var(--Buttons-Primary-Border)"},"&:focus-visible":{outline:"3px solid var(--Focus-Visible)",outlineOffset:"3px"}},...m},onKeyDown:B?e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),x?.())}:void 0,...f,children:r.jsx(t.Box,{"data-theme":b||void 0,"data-surface":v,sx:{display:"flex",flexDirection:j?"row":"column",gap:y.gap,padding:y.padding,backgroundColor:"var(--Background)",color:"var(--Text)",fontSize:y.fontSize,fontFamily:"inherit",borderRadius:"inherit",position:"relative",flex:1,minWidth:0,overflow:"hidden"},children:e})})})}function Ga({children:o,className:a="",sx:n={},...i}){const{size:l}=e.useContext(Va),s=Ha[l]||Ha.medium;return r.jsx(t.Box,{className:"card-content "+a,sx:{display:"flex",flexDirection:"column",gap:s.gap,flex:1,minWidth:0,...n},...i,children:o})}const qa=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",Ua=[{label:"Default",colors:["default"]},{label:"Theme",colors:["primary","secondary","tertiary"]},{label:"Core",colors:["white","black"]},{label:"State",colors:["info","success","warning","error"]}],Xa=[h,fe,l,b,ge,be];const Ka={primary:"Primary",secondary:"Secondary",tertiary:"Tertiary",neutral:"Neutral",info:"Info",success:"Success",warning:"Warning",error:"Error"},Ja={small:{size:32,iconSize:16,fontSize:"13px",px:12,gap:6},medium:{size:48,iconSize:24,fontSize:"14px",px:16,gap:8},large:{size:56,iconSize:36,fontSize:"15px",px:20,gap:10}};function Ya({children:e,icon:o,label:a,variant:n="solid",color:i="primary",size:l="medium",extended:s=!1,animate:c=!1,disabled:d=!1,onClick:u,ariaLabel:x,className:p="",sx:h={},...m}){const f=function(e,t){const r=Ka[t]||"Primary";return"light"===e?{bg:"var(--Buttons-"+r+"-Light-Button)",text:"var(--Buttons-"+r+"-Light-Text)",border:"var(--Buttons-"+r+"-Light-Border)",hover:"var(--Buttons-"+r+"-Light-Hover)",active:"var(--Buttons-"+r+"-Light-Pressed)"}:{bg:"var(--Buttons-"+r+"-Button)",text:"var(--Buttons-"+r+"-Text)",border:"var(--Buttons-"+r+"-Border)",hover:"var(--Buttons-"+r+"-Hover)",active:"var(--Buttons-"+r+"-Pressed)"}}(n,i),g=Ja[l]||Ja.medium,b=o||e||r.jsx(ve,{sx:{fontSize:g.iconSize}}),v=x||a||"Action";return r.jsxs(r.Fragment,{children:[c&&r.jsx("style",{children:"\n@keyframes fab-pulse {\n 0% { box-shadow: 0 0 0 0 rgba(var(--pulse-rgb, 0,0,0), 0.4); }\n 70% { box-shadow: 0 0 0 12px rgba(var(--pulse-rgb, 0,0,0), 0); }\n 100% { box-shadow: 0 0 0 0 rgba(var(--pulse-rgb, 0,0,0), 0); }\n}\n"}),r.jsxs(t.Box,{component:"button",type:"button",role:"button","aria-label":v,onClick:u,disabled:d,className:"fab fab-"+n+" fab-"+i+" fab-"+l+(s?" fab-extended":"")+(c?" fab-animate":"")+(d?" fab-disabled":"")+(p?" "+p:""),sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:s?g.gap+"px":0,...s?{height:g.size+"px",borderRadius:g.size/2+"px",px:g.px+"px"}:{width:g.size+"px",height:g.size+"px",borderRadius:"50%"},backgroundColor:f.bg,color:f.text,border:"var(--Button-Border-Width) solid "+f.border,"--_height":g.size+"px","--_bevel":"min(calc(var(--Button-Bevel) * var(--_height) / 100), calc(var(--_height) / 5))",boxShadow:`${Pr(i)}, ${Tr}`,fontSize:g.fontSize,fontFamily:"inherit",fontWeight:600,cursor:d?"not-allowed":"pointer",opacity:d?.5:1,outline:"none",flexShrink:0,transition:"background-color 0.15s ease, box-shadow 0.2s ease, transform 0.1s ease","&:hover":d?{}:{backgroundColor:f.hover,boxShadow:`${Pr(i)}, ${Ir}`},"&:active":d?{}:{backgroundColor:f.active,transform:"scale(0.96)",boxShadow:Pr(i)},"&:focus-visible":{outline:"3px solid var(--Focus-Visible)",outlineOffset:"2px"},...c&&!d&&{animation:"fab-pulse 2s infinite"},...h},...m,children:[r.jsx(t.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",fontSize:g.iconSize+"px",color:"inherit","& .MuiSvgIcon-root":{fontSize:"inherit",color:"inherit"}},children:b}),s&&a&&r.jsx(t.Box,{component:"span",sx:{whiteSpace:"nowrap",lineHeight:1},children:a})]})]})}const Za=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",$a=[{label:"Default",colors:["default"]},{label:"Theme",colors:["primary","secondary","tertiary","neutral"]},{label:"State",colors:["info","success","warning","error"]}],_a={default:"Tertiary",primary:"Primary",secondary:"Secondary",tertiary:"Tertiary",neutral:"Neutral",info:"Info",success:"Success",warning:"Warning",error:"Error"};function en({label:e,selected:t,onClick:o}){return r.jsx(Ur,{selected:t,variant:t?"default":"default-outline",size:"small",onClick:o,children:e})}function tn({color:e,selected:o,onClick:n}){const i=_a[e]||"Primary";return r.jsx(t.Box,{component:"button",onClick:()=>n(e),"aria-label":"Select "+Za(e),"aria-pressed":o,title:Za(e),sx:{width:"var(--Button-Height)",height:"var(--Button-Height)",borderRadius:"4px",backgroundColor:"var(--Buttons-"+i+"-Button)",border:o?"2px solid var(--Text)":"1px solid var(--Border)",outline:o?"2px solid var(--Focus-Visible)":"2px solid transparent",outlineOffset:"1px",cursor:"pointer",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",transition:"transform 0.1s ease","&:hover":{transform:"scale(1.1)"}},children:o&&r.jsx(a,{sx:{fontSize:16,color:"var(--Buttons-"+i+"-Text)",pointerEvents:"none"}})})}function rn({value:e,onChange:o,placeholder:a,label:n}){return r.jsxs(t.Box,{children:[n&&r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:4},children:n}),r.jsx(t.Box,{component:"input",type:"text",value:e,onChange:e=>o(e.target.value),placeholder:a,sx:{width:"100%",padding:"6px 10px",fontSize:"13px",fontFamily:"inherit",border:"1px solid var(--Border)",borderRadius:"4px",backgroundColor:"var(--Background)",color:"var(--Text)",outline:"none","&:focus":{borderColor:"var(--Focus-Visible)"}}})]})}function on({items:o=[],sections:a,value:n,defaultValue:i=0,onChange:l,expandable:s=!1,expandedWidth:c="partial",defaultExpanded:d=!1,fabAction:u,className:x="",sx:p={},...h}){const[m,f]=e.useState(i),[g,b]=e.useState(d),v=void 0!==n,y=v?n:m,j=e.useCallback(e=>{v||f(e),l?.(e)},[v,l]),S=s&&g,B=S?"full"===c?320:240:72;return r.jsxs(t.Box,{component:"nav",role:"navigation","aria-label":"Navigation rail","data-theme":"Default","data-surface":"Surface-Dim",className:"rail"+(S?" rail-expanded":" rail-collapsed")+" "+x,sx:{display:"flex",flexDirection:"column",width:B+"px",minHeight:"100%",backgroundColor:"var(--Background)",borderRight:"1px solid var(--Border)",fontFamily:"inherit",transition:"width 0.25s ease",overflow:"hidden",flexShrink:0,...p},...h,children:[s&&r.jsx(t.Box,{sx:{display:"flex",justifyContent:S?"flex-start":"center",px:S?1.5:0,height:56,alignItems:"center"},children:r.jsx(Ur,{iconOnly:!0,variant:"ghost",size:"small",onClick:()=>b(e=>!e),"aria-label":S?"Collapse menu":"Expand menu",children:r.jsx(dr,{size:"small",sx:{color:"inherit"},children:S?r.jsx(Se,{}):r.jsx(je,{})})})}),u&&r.jsx(t.Box,{sx:{px:S?2:1,py:1,flexShrink:0},children:r.jsx(Ur,{variant:"primary-light",size:"medium",onClick:u.onClick,"aria-label":u.label||"Action",startIcon:u.icon?r.jsx(dr,{size:"small",sx:{color:"inherit"},children:u.icon}):void 0,sx:{width:S?"100%":56,borderRadius:S?"28px":"var(--Style-Border-Radius)",justifyContent:S?"flex-start":"center",transition:"all 0.2s ease"},children:S?u.label:null})}),r.jsx(t.Box,{role:"tablist","aria-orientation":"vertical",sx:{flex:1,overflowY:"auto",overflowX:"hidden",py:.5},children:(()=>{if(a&&a.length>0){const e=[];let o=0;return a.forEach((a,n)=>{n>0&&e.push(r.jsx(t.Box,{"aria-hidden":"true",sx:{height:"1px",backgroundColor:"var(--Border)",mx:S?2:1.5,my:.5}},"divider-"+n)),a.items.forEach(t=>{const a=o;e.push(r.jsx(an,{icon:t.icon,label:t.label,badge:t.badge,selected:y===a,expanded:S,onClick:()=>j(a)},"item-"+a)),o++})}),e}return o.map((e,t)=>r.jsx(an,{icon:e.icon,label:e.label,badge:e.badge,selected:y===t,expanded:S,onClick:()=>j(t)},t))})()})]})}function an({icon:e,label:o,badge:a,selected:n,expanded:i,onClick:l}){const s="var(--Buttons-Default-Button)",c="var(--Buttons-Default-Text)";return r.jsxs(t.Box,{component:"button",type:"button",role:"tab","aria-selected":n,"aria-label":o,onClick:l,sx:{display:"flex",flexDirection:i?"row":"column",alignItems:"center",justifyContent:i?"flex-start":"center",gap:i?1.5:.25,width:"100%",height:56,px:i?2.5:.5,border:"none",borderRadius:0,backgroundColor:i&&n?s:"transparent",color:n?c:"var(--Quiet)",cursor:"pointer",fontFamily:"inherit",textAlign:i?"left":"center",transition:"background-color 0.15s ease, color 0.15s ease",outline:"none","&:hover":n?{}:{backgroundColor:"var(--Hover)",color:"var(--Text)"},"&:focus-visible":{outline:"3px solid var(--Focus-Visible)",outlineOffset:"-3px"}},children:[r.jsxs(t.Box,{sx:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",...!i&&{width:n?56:24,height:32,borderRadius:"16px",backgroundColor:n?s:"transparent",transition:"background-color 0.2s ease, width 0.2s ease"},...i&&{flexShrink:0}},children:[r.jsx(dr,{size:"small",sx:{color:"inherit"},children:e}),a&&r.jsx(nn,{value:a})]}),o&&r.jsx(Kt,{style:{color:"inherit",fontWeight:500,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",...i?{flex:1}:{maxWidth:"100%",fontSize:"11px"}},children:o})]})}function nn({value:e}){return r.jsx(t.Box,{sx:{position:"absolute",top:-4,right:-6,minWidth:16,height:16,borderRadius:"8px",backgroundColor:"var(--Tags-Error-BG)",color:"var(--Tags-Error-Text)",fontSize:"10px",fontWeight:700,px:.5,display:"flex",alignItems:"center",justifyContent:"center",lineHeight:1},children:e})}const ln=[{icon:r.jsx(h,{}),label:"Home"},{icon:r.jsx(g,{}),label:"Search"},{icon:r.jsx(p,{}),label:"Favorites",badge:3},{icon:r.jsx(n,{}),label:"Profile"},{icon:r.jsx(f,{}),label:"Settings"}];function sn({label:e,selected:t,onClick:o}){return r.jsx(Ur,{selected:t,variant:t?"default":"default-outline",size:"small",onClick:o,children:e})}const cn={default:{theme:"Default"},primary:{theme:"Primary"},"primary-light":{theme:"Primary",surface:"Surface-Brightest"},white:{theme:"Neutral",surface:"Surface-Brightest"},black:{theme:"Neutral",surface:"Surface-Dimmest"}};function dn({items:o=[],value:a,defaultValue:n,onChange:i,type:l="floating",orientation:s="horizontal",color:c="default",fab:d,className:u="",sx:x={},...p}){const[h,m]=e.useState(n??null),f=void 0!==a,g=f?a:h,b=e.useCallback(e=>{const t=g===e?null:e;f||m(t),i?.(t)},[f,g,i]),v=cn[c]||cn.default,y=v.theme,j=v.surface,S="vertical"===s,B="floating"===l,k=r.jsx(t.Box,{role:"toolbar","aria-orientation":s,"aria-label":"Toolbar","data-theme":y,"data-surface":j||"Surface",className:"toolbar toolbar-"+l+" toolbar-"+s+" toolbar-"+c+" "+u,sx:{display:"inline-flex",flexDirection:S?"column":"row",alignItems:"center",gap:"4px",backgroundColor:"var(--Background)",border:"1px solid var(--Border-Variant)",borderRadius:B?"56px":"var(--Style-Border-Radius)",padding:B?"8px 16px":"8px",fontFamily:"inherit",flexShrink:0,...B&&{boxShadow:wr},...x},...p,children:o.map((e,t)=>{const o=g===t;return r.jsx(Ur,{iconOnly:!0,variant:o?"default":"ghost",size:"small",onClick:()=>b(t),"aria-label":e.label,"aria-checked":o,role:"radio",children:r.jsx(dr,{size:"small",sx:{color:"inherit"},children:e.icon})},e.key||t)})});return d&&B?r.jsxs(t.Box,{sx:{display:"inline-flex",flexDirection:S?"column":"row",alignItems:"center",gap:1},children:[k,r.jsx(Ur,{iconOnly:!0,variant:"default",size:"large",onClick:d.onClick,"aria-label":d.label||"Action",sx:{borderRadius:"50%",width:56,height:56,minWidth:"unset",minHeight:"unset"},children:r.jsx(dr,{size:"medium",sx:{color:"inherit"},children:d.icon})})]}):k}const un=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",xn=[{icon:r.jsx(Be,{}),label:"Bold"},{icon:r.jsx(ke,{}),label:"Italic"},{icon:r.jsx(Ce,{}),label:"Underline"},{icon:r.jsx(we,{}),label:"Align left"},{icon:r.jsx(Te,{}),label:"Align center"}];function pn({label:e,selected:t,onClick:o}){return r.jsx(Ur,{selected:t,variant:t?"default":"default-outline",size:"small",onClick:o,children:e})}const hn={small:{height:"var(--Small-Button-Height)",fontSize:"13px",padding:"4px 8px",iconSize:16,btnSize:28},medium:{height:"var(--Button-Height)",fontSize:"14px",padding:"6px 12px",iconSize:18,btnSize:36},large:{height:"var(--Large-Button-Height)",fontSize:"16px",padding:"8px 16px",iconSize:20,btnSize:44}};function mn({value:o,defaultValue:a=0,onChange:n,min:l,max:s,step:c=1,variant:d="outlined",style:u="outline",color:x="default",size:p="medium",label:h,labelPosition:m="top",placeholder:f,helperText:g,disabled:b=!1,fullWidth:v=!1,className:y="",sx:j={},...S}){const[B,k]=e.useState(a),[C,w]=e.useState(!1),T=e.useRef(null),I=void 0!==o,A=I?o:B,z=""!==A&&null!=A,R=(E="default"===x?"primary":x).charAt(0).toUpperCase()+E.slice(1);var E;const L="var(--Buttons-"+R+"-Border)",P="default"===x?"var(--Text)":"var(--Text-"+R+")",M="outlined"===d,O="floating"===m,D="top"===m,W=hn[p]||hn.medium,F="small"===p?Vt:Gt,N=e.useCallback(e=>{let t="number"==typeof e?e:parseFloat(e);isNaN(t)&&(t=0),void 0!==l&&t<l&&(t=l),void 0!==s&&t>s&&(t=s),I||k(t),n?.(t)},[I,n,l,s]),H=e.useRef(A);H.current=A;const V=e.useCallback(e=>{if(b)return;const t="number"==typeof H.current?H.current:parseFloat(H.current)||0;void 0!==l&&e<0&&t<=l||void 0!==s&&e>0&&t>=s||N(t+e*c)},[b,c,l,s,N]),Q=void 0!==l&&A<=l,G=void 0!==s&&A>=s,q=e.useRef(null),U=e.useRef(null),X=e.useCallback(()=>{q.current&&(clearTimeout(q.current),q.current=null),U.current&&(clearInterval(U.current),U.current=null)},[]),K=e.useCallback(e=>{b||(X(),V(e),q.current=setTimeout(()=>{let t=120,r=0;const o=()=>{V(e),r+=1,10===r&&t>60?(clearInterval(U.current),t=60,U.current=setInterval(o,t)):30===r&&t>30&&(clearInterval(U.current),t=30,U.current=setInterval(o,t))};U.current=setInterval(o,t)},400))},[b,V,X]);e.useEffect(()=>X,[X]);const J=e=>({onPointerDown:t=>{if(void 0===t.button||0===t.button){t.preventDefault();try{t.currentTarget.setPointerCapture?.(t.pointerId)}catch(e){}K(e)}},onPointerUp:e=>{try{e.currentTarget.releasePointerCapture?.(e.pointerId)}catch(e){}X()},onPointerCancel:X,onPointerLeave:X,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||t.repeat||(t.preventDefault(),K(e))},onKeyUp:e=>{"Enter"!==e.key&&" "!==e.key||X()},onBlur:X}),Y=e=>{const t=e.target.value;if(""===t||"-"===t)return void(I||k(t));const r=parseFloat(t);isNaN(r)||N(r)},Z=e=>{"ArrowUp"===e.key&&(e.preventDefault(),V(1)),"ArrowDown"===e.key&&(e.preventDefault(),V(-1))},$={display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"var(--Buttons-"+R+"-Light-Button, transparent)",color:"var(--Buttons-"+R+"-Light-Text, var(--Text))",cursor:"pointer",outline:"none",flexShrink:0,border:"none",transition:"background-color 0.15s ease","&:hover":{backgroundColor:"var(--Buttons-"+R+"-Hover)"},"&:active":{backgroundColor:"var(--Buttons-"+R+"-Pressed)"},"&:focus-visible":{outline:"2px solid var(--Focus-Visible)",outlineOffset:"1px"},"&:disabled":{opacity:.4,cursor:"not-allowed"}},_={},ee=()=>D&&h?r.jsx(F,{component:"label",style:{display:"block",marginBottom:"6px",color:b?"var(--Quiet)":"var(--Text)",fontWeight:500,opacity:b?.6:1},children:h}):null;return M?r.jsxs(t.Box,{className:"numberfield numberfield-outlined"+(b?" numberfield-disabled":"")+(y?" "+y:""),sx:{width:v?"100%":"auto",fontFamily:"inherit",...j},...S,children:[ee(),r.jsx(t.Box,{sx:{border:"1px solid "+L,borderRadius:"small"===p?"var(--Sm-Input-Radius, var(--Input-Radius, var(--Style-Border-Radius)))":"large"===p?"var(--Lg-Input-Radius, var(--Input-Radius, var(--Style-Border-Radius)))":"var(--Input-Radius, var(--Style-Border-Radius))",overflow:"hidden",transition:"border-color 0.15s ease",boxShadow:"none",opacity:b?.5:1,"&:focus-within":{outline:"2px solid var(--Focus-Visible)",outlineOffset:"2px"}},children:r.jsx(t.Box,{..._,children:r.jsxs(t.Box,{sx:{position:"relative",display:"flex",alignItems:"stretch",minHeight:W.height,backgroundColor:"var(--Hover)"},children:[O&&h&&r.jsx(t.Box,{sx:{position:"absolute",top:z||C?"6px":"50%",left:"14px",transform:z||C?"scale(0.75)":"translateY(-50%)",transformOrigin:"top left",color:C?P:"var(--Quiet)",fontSize:W.fontSize,fontWeight:400,pointerEvents:"none",transition:"top 0.15s ease, transform 0.15s ease, color 0.15s ease",zIndex:1},children:h}),r.jsx(t.Box,{component:"input",ref:T,type:"text",inputMode:"numeric",role:"spinbutton","aria-valuenow":"number"==typeof A?A:void 0,"aria-valuemin":l,"aria-valuemax":s,"aria-label":h||"Number",value:A,onChange:Y,onKeyDown:Z,onFocus:()=>w(!0),onBlur:()=>w(!1),disabled:b,placeholder:O?void 0:f||"",sx:{flex:1,border:"none",outline:"none",backgroundColor:"transparent",color:z||C?P:"var(--Quiet)",fontSize:W.fontSize,fontFamily:"var(--Body-Font-Family)",fontWeight:"var(--Body-Font-Weight)",padding:O?"22px 14px 6px":W.padding,minWidth:0,"&::placeholder":{color:"var(--Quiet)",opacity:1},"&:disabled":{cursor:"not-allowed"}}}),r.jsxs(t.Box,{sx:{display:"flex",flexDirection:"column",borderLeft:"1px solid "+L},children:[r.jsx(t.Box,{component:"button",type:"button","aria-label":"Increase",...J(1),disabled:b||G,sx:{...$,flex:1,width:32,borderBottom:"1px solid "+L},children:r.jsx(dr,{size:"small",children:r.jsx(Ie,{})})}),r.jsx(t.Box,{component:"button",type:"button","aria-label":"Decrease",...J(-1),disabled:b||Q,sx:{...$,flex:1,width:32},children:r.jsx(dr,{size:"small",children:r.jsx(Ae,{})})})]})]})})}),g&&r.jsx(Vt,{style:{color:"var(--Quiet)",marginTop:"4px",marginLeft:"2px"},children:g})]}):r.jsxs(t.Box,{className:"numberfield numberfield-spinner"+(b?" numberfield-disabled":"")+(y?" "+y:""),sx:{fontFamily:"inherit",...j},...S,children:[ee(),r.jsxs(t.Box,{sx:{display:"inline-flex",alignItems:"center",gap:"small"===p?.5:1,opacity:b?.5:1},children:[r.jsx(t.Box,{component:"button",type:"button","aria-label":"Decrease",...J(-1),disabled:b||Q,sx:{...$,width:W.btnSize,height:W.btnSize,borderRadius:"small"===p?"var(--Sm-Button-Icon-Radius, var(--Button-Icon-Radius, var(--Style-Border-Radius)))":"large"===p?"var(--Lg-Button-Icon-Radius, var(--Button-Icon-Radius, var(--Style-Border-Radius)))":"var(--Button-Icon-Radius, var(--Style-Border-Radius))",border:"1px solid "+L},children:r.jsx(dr,{size:"small",children:r.jsx(i,{})})}),r.jsx(t.Box,{sx:{border:"1px solid "+L,borderRadius:"small"===p?"var(--Sm-Input-Radius, var(--Input-Radius, var(--Style-Border-Radius)))":"large"===p?"var(--Lg-Input-Radius, var(--Input-Radius, var(--Style-Border-Radius)))":"var(--Input-Radius, var(--Style-Border-Radius))",overflow:"hidden","&:focus-within":{outline:"2px solid var(--Focus-Visible)",outlineOffset:"2px"}},children:r.jsx(t.Box,{..._,children:r.jsx(t.Box,{component:"input",ref:T,type:"text",inputMode:"numeric",role:"spinbutton","aria-valuenow":"number"==typeof A?A:void 0,"aria-valuemin":l,"aria-valuemax":s,"aria-label":h||"Number",value:A,onChange:Y,onKeyDown:Z,onFocus:()=>w(!0),onBlur:()=>w(!1),disabled:b,sx:{width:"small"===p?40:56,minHeight:W.height,textAlign:"center",border:"none",outline:"none",backgroundColor:"var(--Hover)",color:"var(--Text)",fontSize:W.fontSize,fontFamily:"var(--Body-Font-Family)",fontWeight:600,"&:disabled":{cursor:"not-allowed"}}})})}),r.jsx(t.Box,{component:"button",type:"button","aria-label":"Increase",...J(1),disabled:b||G,sx:{...$,width:W.btnSize,height:W.btnSize,borderRadius:"small"===p?"var(--Sm-Button-Icon-Radius, var(--Button-Icon-Radius, var(--Style-Border-Radius)))":"large"===p?"var(--Lg-Button-Icon-Radius, var(--Button-Icon-Radius, var(--Style-Border-Radius)))":"var(--Button-Icon-Radius, var(--Style-Border-Radius))",border:"1px solid "+L},children:r.jsx(dr,{size:"small",children:r.jsx(ve,{})})})]}),g&&r.jsx(Vt,{style:{color:"var(--Quiet)",marginTop:"4px",marginLeft:"2px"},children:g})]})}const fn=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",gn=[{label:"Default",colors:["default"]},{label:"Theme",colors:["primary","secondary","tertiary","neutral"]},{label:"State",colors:["info","success","warning","error"]}];function bn({label:e,selected:t,onClick:o}){return r.jsx(Ur,{selected:t,variant:t?"default":"default-outline",size:"small",onClick:o,children:e})}function vn({color:e,selected:o,onClick:n}){const i=fn(e);return r.jsx(t.Box,{component:"button",onClick:()=>n(e),"aria-label":"Select "+i,"aria-pressed":o,title:i,sx:{width:"var(--Button-Height)",height:"var(--Button-Height)",borderRadius:"4px",backgroundColor:"var(--Buttons-"+i+"-Button)",border:o?"2px solid var(--Text)":"1px solid var(--Border)",outline:o?"2px solid var(--Focus-Visible)":"2px solid transparent",outlineOffset:"1px",cursor:"pointer",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",transition:"transform 0.1s ease","&:hover":{transform:"scale(1.1)"}},children:o&&r.jsx(a,{sx:{fontSize:16,color:"var(--Buttons-"+i+"-Text)",pointerEvents:"none"}})})}const yn=["default","primary","secondary","tertiary","neutral","black-white","info","success","warning","error"],jn=["fill","outline","ghost"];function Sn(){const e={};return yn.forEach(t=>{jn.forEach(r=>{e["fill"===r?t:t+"-"+r]=function(e,t){const r=Er(e),o={color:e,style:t,bg:"transparent",text:"var(--Quiet)",hover:"var(--Buttons-"+r+"-Hover)",hoverText:"var(--Buttons-"+r+"-Text)"};return"ghost"===t?{...o,border:"transparent",selectedBg:"transparent",selectedText:"var(--Buttons-"+r+"-Border)",selectedRing:"inset 0 0 0 2px var(--Buttons-"+r+"-Border)",bevel:!1}:"outline"===t?{...o,border:"var(--Buttons-"+r+"-Border)",selectedBg:"transparent",selectedText:"var(--Buttons-"+r+"-Border)",selectedRing:"inset 0 0 0 2px var(--Buttons-"+r+"-Border)",bevel:!1}:{...o,border:"var(--Buttons-"+r+"-Border)",selectedBg:"var(--Buttons-"+r+"-Button)",selectedText:"var(--Buttons-"+r+"-Text)",selectedRing:null,bevel:!0}}(t,r)})}),e}const Bn={small:{height:"var(--Small-Button-Height)",fontSize:"13px",padding:"4px 10px",iconSize:16,gap:4,swatchRadius:"var(--Sm-Input-Swatch-Radius, 18px)"},medium:{height:"var(--Button-Height)",fontSize:"15px",padding:"6px 14px",iconSize:18,gap:6,swatchRadius:"var(--Input-Swatch-Radius, 26px)"},large:{height:"var(--Large-Button-Height)",fontSize:"17px",padding:"8px 18px",iconSize:20,gap:8,swatchRadius:"var(--Lg-Input-Swatch-Radius, 50px)"}};function kn({variant:e="primary",size:o="medium",value:a,defaultValue:n,onChange:i,exclusive:l=!0,orientation:s="horizontal",disabled:c=!1,fullWidth:d=!1,children:u,className:x="",sx:p={},"aria-label":h,...m}){const f=Sn(),g=f[e]||f.default,b=Bn[o]||Bn.medium,v="vertical"===s,y={gap:0,border:"ghost"===g.style?"none":"1px solid "+g.border,borderRadius:"var(--Style-Border-Radius)",overflow:"hidden",...d&&{width:"100%"},display:"grid",gridAutoFlow:v?"row":"column",...v?{gridAutoRows:"1fr"}:{gridAutoColumns:"1fr"},"& .MuiToggleButtonGroup-grouped":{margin:0,borderLeft:0,borderTop:0,"&.Mui-selected + &.Mui-selected":{marginLeft:0,marginTop:0,borderLeft:0,borderTop:0}},"& .MuiToggleButton-root":{height:b.height,fontSize:b.fontSize,padding:b.padding,fontFamily:"inherit",fontWeight:500,textTransform:"none",letterSpacing:"0",lineHeight:1.4,backgroundColor:g.bg,color:g.text,border:"none",borderRadius:0,transition:"background-color 0.15s ease, color 0.15s ease","& .tbtn-start, & .tbtn-end":{display:"inline-flex",alignItems:"center",flexShrink:0,"& > *":{width:b.iconSize,height:b.iconSize,display:"block"}},"& .tbtn-start":{marginRight:"2px"},"& .tbtn-end":{marginLeft:"2px"},"& .tbtn-swatch":{display:"block",flexShrink:0,width:b.iconSize,height:b.iconSize,borderRadius:b.swatchRadius,border:"1px solid var(--Border-Variant)"},"& .tbtn-swatch:not(:only-child)":{marginRight:"2px"},"--_height":b.height,"--_bevel":"var(--Button-Bevel-Px, min(calc(var(--Button-Bevel, 0) * var(--_height) / 100), calc(var(--_height) / 5)))",...d&&{flex:1},..."ghost"===g.style?{}:v?{"&:not(:last-of-type)":{borderBottom:"1px solid "+g.border}}:{"&:not(:last-of-type)":{borderRight:"1px solid "+g.border}},"&:hover":{backgroundColor:g.hover,color:g.hoverText},"&.Mui-selected":{backgroundColor:g.selectedBg,color:g.selectedText,...g.bevel?{boxShadow:Pr(g.color)}:{},...g.selectedRing?{boxShadow:g.selectedRing}:{}},"&.Mui-selected:hover":{backgroundColor:g.selectedBg,color:g.selectedText,...g.bevel?{boxShadow:Pr(g.color)}:{},...g.selectedRing?{boxShadow:g.selectedRing}:{}},"&.Mui-focusVisible":{outline:"2px solid var(--Focus-Visible)",outlineOffset:"-2px",zIndex:1},"&.Mui-disabled":{opacity:.6,color:g.text,backgroundColor:g.bg},"&.Mui-disabled.Mui-selected":{opacity:.6,backgroundColor:g.selectedBg,color:g.selectedText},"& .MuiSvgIcon-root":{fontSize:b.iconSize},"& > *:not(:only-child)":{marginRight:b.gap/2,marginLeft:b.gap/2}},...p};return r.jsx(t.ToggleButtonGroup,{value:a,defaultValue:n,onChange:i,exclusive:l,orientation:s,disabled:c,className:"toggle-group-"+e+" "+x,sx:y,"aria-label":h,...m,children:u})}function Cn({label:o,value:a="",onChange:n,placeholder:i,error:l=!1,errorMessage:s="",disabled:c=!1,helperText:d="",variant:u="outlined",size:x="medium",type:p="text",required:h=!1,fullWidth:m=!0,startAdornment:f,endAdornment:g,sx:b={},"aria-label":v,"aria-labelledby":y,...j}){const[S,B]=e.useState(!1),k=l?"var(--Buttons-Error-Border)":S?"var(--Buttons-Primary-Border)":"var(--Border)",C=l||S?"var(--Text)":"var(--Text-Quiet)",w="var(--Text)";return r.jsxs(t.Box,{sx:{width:m?"100%":"auto"},children:[r.jsx(t.TextField,{label:o,value:a,onChange:n,placeholder:i,disabled:c,variant:u,size:x,type:p,required:h,onFocus:()=>B(!0),onBlur:()=>B(!1),error:l,fullWidth:m,slotProps:{htmlInput:{...v?{"aria-label":v}:{},...y?{"aria-labelledby":y}:{}},input:{style:{color:w},startAdornment:f?r.jsx(t.InputAdornment,{position:"start",children:f}):void 0,endAdornment:g?r.jsx(t.InputAdornment,{position:"end",children:g}):void 0}},sx:{width:m?"100%":"auto","& .MuiOutlinedInput-root":{backgroundColor:"var(--Container)",transition:"all 0.2s ease-in-out",color:w,"& fieldset":{borderColor:k,transition:"border-color 0.2s ease-in-out"},"&:hover fieldset":{borderColor:l?"var(--Buttons-Error-Border)":"var(--Buttons-Primary-Border)"},"&.Mui-focused fieldset":{borderColor:l?"var(--Buttons-Error-Border)":"var(--Buttons-Primary-Border)",borderWidth:"2px"},"&.Mui-disabled":{backgroundColor:"var(--Container-Low)",opacity:.6}},"& .MuiInputLabel-root":{color:C,transition:"all 0.2s ease-in-out",fontSize:"14px",fontWeight:500,"&.Mui-focused":{color:"var(--Text)",fontWeight:600},"&.Mui-error":{color:"var(--Text)"},"&.Mui-disabled":{color:"var(--Text-Secondary)",opacity:.6}},"& .MuiFormHelperText-root":{color:l?"var(--Buttons-Error-Border)":"var(--Text-Secondary)",marginTop:"4px",fontSize:"12px"},...b},...j}),l&&s&&r.jsx(t.FormHelperText,{error:!0,sx:{color:"var(--Buttons-Error-Border)",marginTop:"4px",fontSize:"12px",fontWeight:500},children:s})]})}const wn=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",Tn=[{label:"Default",colors:["default"]},{label:"Theme",colors:["primary","secondary","tertiary","neutral"]},{label:"State",colors:["info","success","warning","error"]}],In=[{value:"apple",label:"Apple"},{value:"banana",label:"Banana"},{value:"cherry",label:"Cherry"},{value:"date",label:"Date"},{value:"elderberry",label:"Elderberry"}],An=[{value:"primary",label:"Primary",color:"var(--Buttons-Primary-Button)"},{value:"secondary",label:"Secondary",color:"var(--Buttons-Secondary-Button)"},{value:"tertiary",label:"Tertiary",color:"var(--Buttons-Tertiary-Button)"},{value:"neutral",label:"Neutral",color:"var(--Buttons-Neutral-Button)"},{value:"info",label:"Info",color:"var(--Buttons-Info-Button)"},{value:"success",label:"Success",color:"var(--Buttons-Success-Button)"},{value:"warning",label:"Warning",color:"var(--Buttons-Warning-Button)"},{value:"error",label:"Error",color:"var(--Buttons-Error-Button)"}];function zn({label:e,selected:t,onClick:o}){return r.jsx(Ur,{selected:t,variant:t?"default":"default-outline",size:"small",onClick:o,children:e})}function Rn({color:e,selected:o,onClick:n}){const i=wn(e);return r.jsx(t.Box,{component:"button",onClick:()=>n(e),"aria-label":"Select "+i,"aria-pressed":o,title:i,sx:{width:"var(--Button-Height)",height:"var(--Button-Height)",borderRadius:"4px",backgroundColor:"var(--Buttons-"+i+"-Button)",border:o?"2px solid var(--Text)":"1px solid var(--Border)",outline:o?"2px solid var(--Focus-Visible)":"2px solid transparent",outlineOffset:"1px",cursor:"pointer",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",transition:"transform 0.1s ease","&:hover":{transform:"scale(1.1)"}},children:o&&r.jsx(a,{sx:{fontSize:16,color:"var(--Buttons-"+i+"-Text)",pointerEvents:"none"}})})}const En={small:{height:"var(--Small-Button-Height)",fontSize:"13px",padding:"4px 8px",iconSize:16},medium:{height:"var(--Button-Height)",fontSize:"14px",padding:"6px 12px",iconSize:18},large:{height:"var(--Large-Button-Height)",fontSize:"16px",padding:"8px 16px",iconSize:20}},Ln={small:{height:"48px",fontSize:"13px",padding:"20px 12px 4px",leftPad:12},medium:{height:"56px",fontSize:"14px",padding:"22px 14px 6px",leftPad:14},large:{height:"64px",fontSize:"16px",padding:"24px 16px 6px",leftPad:16}};function Pn({options:o=[],value:n,defaultValue:i=null,onChange:l,inputValue:s,onInputChange:c,label:d,labelPosition:u="top",placeholder:p="Type to search",helperText:h,size:m="medium",variant:f="outline",color:g="primary",loading:b=!1,loadingText:v="Loading…",noOptionsText:y="No options",freeSolo:j=!1,clearable:S=!0,disabled:B=!1,fullWidth:k=!1,className:C="",sx:w={},...T}){const I=(A="default"===g?"primary":g).charAt(0).toUpperCase()+A.slice(1);var A;const z="var(--Buttons-"+I+"-Border)",R="default"===g?"var(--Text)":"var(--Text-"+I+")",[E,L]=e.useState(i),[P,M]=e.useState(i?"string"==typeof i?i:i.label||"":""),[O,D]=e.useState(!1),[W,F]=e.useState(!1),[N,H]=e.useState(-1),V=e.useRef(null),Q=e.useRef(null),G=void 0!==n,q=void 0!==s,U=G?n:E,X=q?s:P,K="floating"===u,J="top"===u,Y=""!==X,Z=K?Ln[m]||Ln.medium:En[m]||En.medium,$=X?o.filter(e=>("string"==typeof e?e:e.label).toLowerCase().includes(X.toLowerCase())):o,_=e.useCallback(e=>{q||M(e),c?.(e)},[q,c]),ee=e.useCallback(e=>{const t="string"==typeof e?e:e.label;G||L(e),_(t),l?.(e),D(!1),H(-1),Q.current?.focus()},[G,l,_]);e.useEffect(()=>{if(!O)return;const e=e=>{V.current&&!V.current.contains(e.target)&&D(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[O]);return r.jsxs(t.Box,{ref:V,className:"autocomplete autocomplete-"+m+" autocomplete-variant-"+f+(O?" autocomplete-open":"")+(B?" autocomplete-disabled":"")+(C?" "+C:""),sx:{position:"relative",width:k?"100%":"auto",display:"inline-block",fontFamily:"inherit",...w},...T,children:[J&&d&&(()=>{const e="small"===m?Vt:Gt;return r.jsx(e,{component:"label",style:{display:"block",marginBottom:"6px",color:B?"var(--Quiet)":"var(--Text)",fontWeight:500,opacity:B?.6:1},children:d})})(),r.jsx(t.Box,{sx:{border:"1px solid "+z,borderRadius:"small"===m?"var(--Sm-Input-Radius, var(--Input-Radius, var(--Style-Border-Radius)))":"large"===m?"var(--Lg-Input-Radius, var(--Input-Radius, var(--Style-Border-Radius)))":"var(--Input-Radius, var(--Style-Border-Radius))",overflow:"hidden",transition:"border-color 0.15s ease",boxShadow:"none",opacity:B?.5:1,"&:focus-within":{outline:"2px solid var(--Focus-Visible)",outlineOffset:"2px"}},children:r.jsx(t.Box,{children:r.jsxs(t.Box,{sx:{position:"relative",display:"flex",alignItems:"center",minHeight:Z.height,backgroundColor:"var(--Hover)"},children:[K&&d&&r.jsx(t.Box,{sx:{position:"absolute",top:Y||W?"6px":"50%",left:(Z.leftPad||14)+"px",transform:Y||W?"scale(0.75)":"translateY(-50%)",transformOrigin:"top left",color:W?R:"var(--Quiet)",fontSize:Z.fontSize,fontWeight:400,pointerEvents:"none",zIndex:1,transition:"top 0.15s ease, transform 0.15s ease, color 0.15s ease"},children:d}),r.jsx(t.Box,{component:"input",ref:Q,type:"text",role:"combobox","aria-expanded":O,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-label":d||p,autoComplete:"off",value:X,onChange:e=>{_(e.target.value),O||D(!0),H(-1)},onKeyDown:e=>{if("Escape"!==e.key){if("ArrowDown"===e.key){if(e.preventDefault(),!O)return void D(!0);H(e=>Math.min(e+1,$.length-1))}"ArrowUp"===e.key&&(e.preventDefault(),H(e=>Math.max(e-1,0))),"Enter"===e.key&&O&&N>=0&&$[N]&&(e.preventDefault(),ee($[N]))}else D(!1)},onFocus:()=>{F(!0),D(!0)},onBlur:()=>F(!1),disabled:B,placeholder:K?void 0:p,sx:{flex:1,border:"none",outline:"none",backgroundColor:"transparent",color:Y||W?R:"var(--Quiet)",fontSize:Z.fontSize,fontFamily:"var(--Body-Font-Family)",fontWeight:"var(--Body-Font-Weight)",padding:Z.padding,minWidth:0,"&::placeholder":{color:"var(--Quiet)",opacity:1,fontFamily:"var(--Body-Font-Family)",fontWeight:"var(--Body-Font-Weight)"},"&:disabled":{cursor:"not-allowed"}}}),b&&O&&r.jsx(ze,{size:16,sx:{mr:1,color:"var(--Quiet)"}}),S&&X&&!B&&r.jsx(t.Box,{component:"button",type:"button","aria-label":"Clear",onClick:()=>{G||L(null),_(""),l?.(null),Q.current?.focus()},sx:{display:"flex",alignItems:"center",justifyContent:"center",width:20,height:20,borderRadius:"50%",mr:.5,border:"none",backgroundColor:"transparent",color:"var(--Quiet)",cursor:"pointer","&:hover":{color:"var(--Text)",backgroundColor:"var(--Hover)"},"&:focus-visible":{outline:"2px solid var(--Focus-Visible)"}},children:r.jsx(Se,{sx:{fontSize:14}})}),r.jsx(t.Box,{component:"button",type:"button","aria-label":O?"Close":"Open",tabIndex:-1,onClick:()=>{B||D(!O)},sx:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:"100%",border:"none",backgroundColor:"transparent",color:"var(--Quiet)",cursor:B?"not-allowed":"pointer"},children:r.jsx(x,{sx:{fontSize:(Z.iconSize||18)+"px",transform:O?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease"}})})]})})}),h&&r.jsx(t.Box,{sx:{fontSize:"12px",color:"var(--Quiet)",mt:"4px",ml:"2px"},children:h}),O&&r.jsx(t.Box,{role:"listbox","aria-label":d||"Options",sx:{position:"absolute",top:"100%",left:0,right:0,mt:.5,backgroundColor:"var(--Hover)",border:"1px solid var(--Buttons-Default-Border)",borderRadius:"var(--Style-Border-Radius)",boxShadow:"none",zIndex:9999,maxHeight:240,overflowY:"auto",py:.5},children:b?r.jsx(t.Box,{sx:{px:1.5,py:2,textAlign:"center",fontSize:Z.fontSize,color:"var(--Quiet)"},children:v}):0===$.length?r.jsx(t.Box,{sx:{px:1.5,py:2,textAlign:"center",fontSize:Z.fontSize,color:"var(--Quiet)"},children:y}):$.map((e,o)=>{const n="string"==typeof e?e:e.label,i="string"==typeof e?e:e.value,l=n===(U?"string"==typeof U?U:U.label:null),s=function(e,t){return t?{backgroundColor:"transparent",color:"var(--Text)",fontWeight:600}:e?{backgroundColor:"var(--Hover)",color:"var(--Text)"}:{backgroundColor:"transparent",color:"var(--Text-Quiet)"}}(o===N,l);return r.jsxs(t.Box,{role:"option","aria-selected":l,onClick:()=>ee(e),onMouseEnter:()=>H(o),sx:{display:"flex",alignItems:"center",gap:1,px:1.5,py:0,mx:.5,minHeight:Z.height,borderRadius:"4px",cursor:"pointer",fontSize:Z.fontSize,fontFamily:"inherit",...s,transition:"background-color 0.1s ease","&:active":{backgroundColor:"var(--Pressed)"}},children:[r.jsx(Vt,{style:{flex:1,color:"inherit",fontWeight:"inherit"},children:n}),l&&r.jsx(dr,{size:"small",sx:{opacity:.6,flexShrink:0},children:r.jsx(a,{})})]},i||n)})})]})}const Mn=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",On=[{label:"Default",colors:["default"]},{label:"Theme",colors:["primary","secondary","tertiary","neutral"]},{label:"State",colors:["info","success","warning","error"]}],Dn=[{value:"apple",label:"Apple"},{value:"banana",label:"Banana"},{value:"cherry",label:"Cherry"},{value:"date",label:"Date"},{value:"elderberry",label:"Elderberry"},{value:"fig",label:"Fig"},{value:"grape",label:"Grape"}];function Wn({label:e,selected:t,onClick:o}){return r.jsx(Ur,{selected:t,variant:t?"default":"default-outline",size:"small",onClick:o,children:e})}function Fn({color:e,selected:o,onClick:n}){const i=Mn(e);return r.jsx(t.Box,{component:"button",onClick:()=>n(e),"aria-label":"Select "+i,"aria-pressed":o,title:i,sx:{width:"var(--Button-Height)",height:"var(--Button-Height)",borderRadius:"4px",backgroundColor:"var(--Buttons-"+i+"-Button)",border:o?"2px solid var(--Text)":"1px solid var(--Border)",outline:o?"2px solid var(--Focus-Visible)":"2px solid transparent",outlineOffset:"1px",cursor:"pointer",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",transition:"transform 0.1s ease","&:hover":{transform:"scale(1.1)"}},children:o&&r.jsx(a,{sx:{fontSize:16,color:"var(--Buttons-"+i+"-Text)",pointerEvents:"none"}})})}const Nn=["default","primary","secondary","tertiary","neutral","info","success","warning","error"],Hn={small:{touchTarget:24,box:16,dot:8,gap:4,LabelComp:Vt},medium:{touchTarget:24,box:20,dot:9.5,gap:8,LabelComp:Gt},large:{touchTarget:24,box:24,dot:9.5,gap:12,LabelComp:Xt}};function Vn({size:e,color:o,checked:a}){const n=(i=o).charAt(0).toUpperCase()+i.slice(1);var i;const l="var(--Buttons-"+n+"-Border)",s="var(--Buttons-"+n+"-Border)",c=Hn[e]||Hn.medium;return r.jsx(t.Box,{className:"radio-circle-icon",sx:{width:c.box,height:c.box,boxSizing:"border-box",borderRadius:"50%",border:"2px solid "+l,overflow:"hidden",flexShrink:0,backgroundColor:"var(--Background)",display:"flex",alignItems:"center",justifyContent:"center",transition:"border-color 0.15s ease-in-out"},children:a&&r.jsx(t.Box,{sx:{width:c.dot,height:c.dot,borderRadius:"50%",backgroundColor:s,transition:"transform 0.15s ease-in-out"}})})}function Qn({color:e="primary",size:o="medium",label:a,labelPlacement:n="end",checked:i,disabled:l=!1,onChange:s,name:c,value:d,className:u="",sx:x={},"aria-label":p,"aria-labelledby":h,"aria-describedby":m,inputProps:f={},...g}){const b=Nn.includes(e)?e:"primary",v=Hn[o]||Hn.medium,y=v.LabelComp,j=(v.touchTarget-v.box)/2,S={...f,...p&&{"aria-label":p},...h&&{"aria-labelledby":h},...m&&{"aria-describedby":m}},B=r.jsx(t.Radio,{checked:i,disabled:l,onChange:s,name:c,value:d,icon:r.jsx(Vn,{size:o,color:b,checked:!1}),checkedIcon:r.jsx(Vn,{size:o,color:b,checked:!0}),className:"radio-"+b+" "+u,inputProps:S,disableRipple:!0,sx:{padding:j+"px",width:v.touchTarget,height:v.touchTarget,minWidth:v.touchTarget,minHeight:v.touchTarget,boxSizing:"border-box",borderRadius:"50%",color:"inherit",transition:"background-color 0.15s ease-in-out","&.Mui-checked":{color:"inherit"},"&:hover":{backgroundColor:"transparent"},"&.Mui-focusVisible .radio-circle-icon":{outline:"2px solid var(--Focus-Visible)",outlineOffset:"2px"},"&.Mui-disabled":{opacity:.6,cursor:"not-allowed",pointerEvents:"none"},...x},...g});return a?r.jsx(t.FormControlLabel,{control:B,label:r.jsx(y,{component:"span",sx:{color:l?"var(--Text-Quiet)":"var(--Text)",lineHeight:1.4,userSelect:"none"},children:a}),labelPlacement:n,disabled:l,sx:{marginLeft:0,marginRight:0,gap:v.gap+"px",alignItems:"center","&.Mui-disabled .MuiTypography-root":{color:"var(--Text-Quiet)",opacity:.6}}}):B}const Gn=Qn,qn=["default","primary","secondary","tertiary","neutral","info","success","warning","error"];const Un={small:{visual:12,track:2,labelSize:11},medium:{visual:16,track:4,labelSize:12},large:{visual:20,track:6,labelSize:13}};function Xn({variant:e="primary",size:o="medium",value:a,defaultValue:n,onChange:i,onChangeCommitted:l,min:s=0,max:c=100,step:d=1,marks:u=!1,valueLabelDisplay:x="off",orientation:p="horizontal",track:h="normal",disabled:m=!1,label:f,name:g,className:b="",sx:v={},"aria-label":y,"aria-labelledby":j,...S}){const B=function(){const e={};return qn.forEach(t=>{e[t]=function(e){const t=(r=e).charAt(0).toUpperCase()+r.slice(1);var r;return{thumb:"var(--Buttons-"+t+"-Button)",thumbBorder:"1px solid var(--Buttons-"+t+"-Border)",track:"var(--Buttons-"+t+"-Button)",trackBorder:"1px solid var(--Buttons-"+t+"-Border)",rail:"var(--Border-Variant)",valueLabel:"var(--Buttons-"+t+"-Text)",valueLabelText:"var(--Buttons-"+t+"-Button)"}}(t)}),e}(),k=B[e]||B.primary,C=Un[o]||Un.medium,w="vertical"===p,T=Array.isArray(a)||Array.isArray(n),I="inverted"===h,A="small"===o?Vt:Gt,z=C.track+2,R=I?k.track:k.rail,E=I?k.trackBorder:null,L=I?k.rail:k.track,P=I?null:k.trackBorder,M={color:"transparent"===k.track?k.thumb:k.track,height:w?void 0:z,width:w?z:void 0,"& .MuiSlider-rail":{backgroundColor:R,border:E||"none",boxSizing:E?"content-box":"border-box",opacity:1,height:w?void 0:E?C.track:z,width:w?E?C.track:z:void 0,borderRadius:z/2},"& .MuiSlider-track":{boxSizing:P?"content-box":"border-box",backgroundColor:L,border:P||"none",height:w?void 0:P?C.track:z,width:w?P?C.track:z:void 0,borderRadius:z/2},"& .MuiSlider-thumb":{width:24,height:24,backgroundColor:"transparent",border:"none",boxShadow:"none",transition:"none","--_height":C.visual+"px","--_bevel":"min(calc(var(--Button-Bevel) * var(--_height) / 100), calc(var(--_height) / 5))","&::after":{display:"none"},"&::before":{content:'""',position:"absolute",width:C.visual,height:C.visual,borderRadius:"50%",backgroundColor:k.thumb,border:k.thumbBorder||"none",boxShadow:`${Pr(e)}, ${Cr}`,transition:"box-shadow 0.15s ease-in-out",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},"&:hover::before":{boxShadow:`${Pr(e)}, ${wr}`},"&.Mui-active::before":{boxShadow:Pr(e)},"&.Mui-focusVisible":{outline:"2px solid var(--Focus-Visible)",outlineOffset:"2px",borderRadius:"50%"},"&.Mui-focusVisible::before":{boxShadow:`${Pr(e)}, ${wr}`}},...T?w?{'& .MuiSlider-thumb[data-index="0"]::before':{top:0,left:"50%",transform:"translateX(-50%)"},'& .MuiSlider-thumb[data-index="1"]::before':{top:"auto",bottom:0,left:"50%",transform:"translateX(-50%)"}}:{'& .MuiSlider-thumb[data-index="0"]::before':{left:"auto",right:0,top:"50%",transform:"translateY(-50%)"},'& .MuiSlider-thumb[data-index="1"]::before':{left:0,right:"auto",top:"50%",transform:"translateY(-50%)"}}:{},"& .MuiSlider-valueLabel":{backgroundColor:k.valueLabel,color:k.valueLabelText,fontSize:C.labelSize,fontWeight:600,borderRadius:"6px",padding:"2px 8px","&::before":{backgroundColor:k.valueLabel}},"& .MuiSlider-mark":{backgroundColor:k.rail,width:w?z:2,height:w?2:z,borderRadius:1},"& .MuiSlider-markActive":{backgroundColor:k.thumb,opacity:.6},"& .MuiSlider-markLabel":{color:"var(--Text-Quiet)",fontSize:C.labelSize},"&.Mui-disabled":{opacity:.6,cursor:"not-allowed",pointerEvents:"none","& .MuiSlider-thumb::before":{boxShadow:"none"}},...v},O=r.jsx(t.Slider,{value:a,defaultValue:n,onChange:i,onChangeCommitted:l,min:s,max:c,step:d,marks:u,valueLabelDisplay:x,orientation:p,track:"inverted"===h?"inverted":!1!==h&&"normal",disabled:m,name:g,"aria-label":y,"aria-labelledby":j,className:"slider-"+e+" "+b,sx:M,...S});return f?r.jsxs(t.Box,{sx:{width:w?"auto":"100%",height:w?"100%":"auto",display:"flex",flexDirection:"column",gap:"4px"},children:[r.jsx(A,{component:"label",sx:{color:m?"var(--Text-Quiet)":"var(--Text)",fontSize:"small"===o?"13px":"15px",fontWeight:500,opacity:m?.6:1},children:f}),O]}):O}const Kn=Xn,Jn=Xn,Yn={default:"Default",primary:"Primary",secondary:"Secondary",tertiary:"Tertiary",neutral:"Neutral",info:"Info",success:"Success",warning:"Warning",error:"Error"},Zn={small:{iconSize:16,minHit:24,gap:0,focusInset:-3,focusWidth:3},medium:{iconSize:24,minHit:24,gap:0,focusInset:-3,focusWidth:3},large:{iconSize:36,minHit:void 0,gap:2,focusInset:2,focusWidth:2}};function $n({value:o,defaultValue:a,onChange:n,max:i=5,precision:l=1,color:s="default",size:c="medium",readOnly:d=!1,disabled:u=!1,emptyLabel:x="No rating",className:p="",sx:h={},...m}){const[f,g]=e.useState(a??null),[v,y]=e.useState(null),j=void 0!==o,S=j?o:f,B=null!==v?v:S,k=.5===l,C=!d&&!u,w=Yn[s]||Yn.default,T=Zn[c]||Zn.medium,I="var(--Buttons-"+w+"-Button)",A="var(--Buttons-"+w+"-Border)",z=e=>{if(!C)return;const t=e===S?null:e;j||g(t),n?.(t)},R=(e,t)=>{if(!C||!k)return;y(t?e+.5:e+1)},E=C?{"&:hover":{filter:"drop-shadow(0 2px 4px rgba(var(--Dropshadow-Color), 0.22)) drop-shadow(0 1px 2px rgba(var(--Dropshadow-Color), 0.28))","& .MuiSvgIcon-root":{stroke:"var(--Buttons-"+w+"-Border)",strokeWidth:1}}}:{},L=e=>{const o=e+1,a=e+.5,n=null!==B&&o<=B,s=null!==B&&!n&&k&&a<=B,c=s?Re:b,d=((e,t)=>e||t?{color:I,filter:"drop-shadow(0 1px 2px rgba(var(--Dropshadow-Color), 0.28))",transition:"filter 0.15s ease","& .MuiSvgIcon-root":{stroke:A,strokeWidth:.5}}:{color:"transparent","& .MuiSvgIcon-root":{stroke:"var(--Quiet)",strokeWidth:1}})(n,s);return k&&C?r.jsxs(t.Box,{sx:{position:"relative",display:"inline-flex",cursor:"pointer",...d,...E},onMouseLeave:()=>y(null),children:[r.jsx(t.Box,{sx:{position:"absolute",left:0,top:0,width:"50%",height:"100%",zIndex:1,cursor:"pointer"},onMouseEnter:()=>R(e,!0),onClick:()=>z(a)}),r.jsx(t.Box,{sx:{position:"absolute",right:0,top:0,width:"50%",height:"100%",zIndex:1,cursor:"pointer"},onMouseEnter:()=>R(e,!1),onClick:()=>z(o)}),r.jsx(c,{sx:{fontSize:T.iconSize,transition:"color 0.1s ease, filter 0.1s ease"}})]},e):r.jsx(t.Box,{component:C?"button":"span",type:C?"button":void 0,role:C?"radio":void 0,"aria-checked":n,"aria-label":o+" star"+(1!==o?"s":""),tabIndex:C?0:-1,onClick:()=>z(o),onMouseEnter:()=>C&&y(o),onMouseLeave:()=>C&&y(null),onKeyDown:e=>{if(C&&("ArrowRight"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),z(Math.min((S||0)+l,i))),"ArrowLeft"===e.key||"ArrowDown"===e.key)){e.preventDefault();const t=Math.max((S||0)-l,0);z(t||null)}},sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",border:"none",backgroundColor:"transparent",padding:0,...T.minHit&&{minWidth:T.minHit+"px",minHeight:T.minHit+"px"},cursor:u?"not-allowed":C?"pointer":"default",outline:"none",transition:"transform 0.1s ease",...d,...E,"&:active":C?{transform:"scale(0.95)"}:{},"&:focus-visible":C?{outline:T.focusWidth+"px solid var(--Focus-Visible)",outlineOffset:T.focusInset+"px",borderRadius:"2px"}:{},"&:disabled":{cursor:"not-allowed",opacity:.5}},children:r.jsx(c,{sx:{fontSize:T.iconSize,transition:"color 0.1s ease, filter 0.1s ease"}})},e)};return r.jsxs(t.Box,{role:C?"radiogroup":"img","aria-label":"Rating"+(null!==S?": "+S+" of "+i+" stars":": "+x),className:"rating rating-"+s+" rating-"+c+(d?" rating-readonly":"")+(u?" rating-disabled":"")+(null===S?" rating-empty":"")+(p?" "+p:""),sx:{display:"inline-flex",alignItems:"center",gap:T.gap+"px",opacity:u?.5:1,fontFamily:"inherit",...h},...m,children:[Array.from({length:i},(e,t)=>L(t)),null===S&&!v&&r.jsx(Kt,{style:{color:"var(--Quiet)",marginLeft:4},children:x})]})}const _n={small:{height:"var(--Small-Button-Height)",fontSize:"13px",iconSize:18,px:12},medium:{height:"var(--Button-Height)",fontSize:"14px",iconSize:20,px:16},large:{height:"var(--Large-Button-Height)",fontSize:"15px",iconSize:22,px:16}};function ei({value:o,defaultValue:a="",onChange:n,onFocus:i,onBlur:l,onClear:s,onSubmit:c,placeholder:d="Search…",size:u="medium",color:x="default",showClearButton:p=!0,disabled:h=!1,ariaLabel:m="Search",className:f="",sx:b={},...v}){const[y,j]=e.useState(a),[S,B]=e.useState(!1),k=e.useRef(null),C=void 0!==o,w=C?o:y,T=w.length>0,I=S||T,A=(e=>e.charAt(0).toUpperCase()+e.slice(1))("default"===x?"primary":x),z="var(--Buttons-"+A+"-Border)",R="default"===x?"var(--Text)":"var(--Text-"+A+")",E=_n[u]||_n.medium,L=()=>{C||j(""),n?.(""),s?.(),k.current?.focus()};return r.jsx(t.Box,{className:"search-field search-field-"+u+(S?" search-field-focused":"")+(T?" search-field-filled":"")+(h?" search-field-disabled":"")+(f?" "+f:""),sx:{display:"flex",boxSizing:"border-box",...b},...v,children:r.jsx(t.Box,{sx:{border:"1px solid "+z,borderRadius:"small"===u?"var(--Sm-Input-Radius, var(--Input-Radius, var(--Style-Border-Radius)))":"large"===u?"var(--Lg-Input-Radius, var(--Input-Radius, var(--Style-Border-Radius)))":"var(--Input-Radius, var(--Style-Border-Radius))",overflow:"hidden",opacity:h?.5:1,transition:"border-color 0.15s ease, box-shadow 0.15s ease",boxShadow:"none",width:"100%","&:focus-within":{outline:"2px solid var(--Focus-Visible)",outlineOffset:"2px"}},children:r.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",gap:1,width:"100%",boxSizing:"border-box",minHeight:E.height,px:E.px+"px",backgroundColor:"var(--Hover)"},children:[r.jsx(dr,{size:"small",sx:{color:I?R:"var(--Quiet)",flexShrink:0,transition:"color 0.15s ease"},children:r.jsx(g,{})}),r.jsx(t.Box,{component:"input",ref:k,type:"text",role:"searchbox","aria-label":m,value:w,onChange:e=>{const t=e.target.value;C||j(t),n?.(t,e)},onFocus:e=>{B(!0),i?.(e)},onBlur:e=>{B(!1),l?.(e)},onKeyDown:e=>{"Enter"===e.key&&c?.(w,e),"Escape"===e.key&&T&&L()},placeholder:d,disabled:h,sx:{flex:1,border:"none",outline:"none",backgroundColor:"transparent",color:I?R:"var(--Quiet)",fontSize:E.fontSize,fontFamily:"var(--Body-Font-Family)",fontWeight:"var(--Body-Font-Weight)",minWidth:0,"&::placeholder":{color:"var(--Quiet)",opacity:1,fontFamily:"var(--Body-Font-Family)",fontWeight:"var(--Body-Font-Weight)"},"&:disabled":{cursor:"not-allowed"}}}),p&&T&&!h&&r.jsx(t.Box,{component:"button",type:"button","aria-label":"Clear search",onClick:L,sx:{display:"flex",alignItems:"center",justifyContent:"center",width:E.iconSize+4,height:E.iconSize+4,borderRadius:"50%",border:"none",backgroundColor:"transparent",color:"var(--Quiet)",cursor:"pointer",flexShrink:0,padding:0,transition:"color 0.15s ease, background-color 0.15s ease","&:hover":{backgroundColor:"var(--Hover)",color:R},"&:focus-visible":{outline:"2px solid var(--Focus-Visible)",outlineOffset:"1px"}},children:r.jsx(dr,{size:"small",children:r.jsx(Se,{})})})]})})})}const ti=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",ri=[{label:"Default",colors:["default"]},{label:"Theme",colors:["primary","secondary","tertiary","neutral"]},{label:"State",colors:["info","success","warning","error"]}];function oi({label:e,selected:t,onClick:o}){return r.jsx(Ur,{selected:t,variant:t?"default":"default-outline",size:"small",onClick:o,children:e})}function ai({color:e,selected:o,onClick:n}){const i=ti(e);return r.jsx(t.Box,{component:"button",onClick:()=>n(e),"aria-label":"Select "+i,"aria-pressed":o,title:i,sx:{width:"var(--Button-Height)",height:"var(--Button-Height)",borderRadius:"4px",backgroundColor:"var(--Buttons-"+i+"-Button)",border:o?"2px solid var(--Text)":"1px solid var(--Border)",outline:o?"2px solid var(--Focus-Visible)":"2px solid transparent",outlineOffset:"1px",cursor:"pointer",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",transition:"transform 0.1s ease","&:hover":{transform:"scale(1.1)"}},children:o&&r.jsx(a,{sx:{fontSize:16,color:"var(--Buttons-"+i+"-Text)",pointerEvents:"none"}})})}const ni=["primary","secondary","tertiary","neutral","info","success","warning","error"],ii=e=>e.charAt(0).toUpperCase()+e.slice(1);function li(){const e={};return ni.forEach(t=>{e[t]=function(e){const t=ii(e);return{bg:"var(--Buttons-"+t+"-Button)",text:"var(--Buttons-"+t+"-Text)",border:"none",hoverBg:"var(--Buttons-"+t+"-Hover)",activeBg:"var(--Buttons-"+t+"-Pressed)"}}(t),e[t+"-outline"]=function(e){return{bg:"var(--Background)",text:"var(--Text)",border:"1px solid var(--Buttons-"+ii(e)+"-Border)",hoverBg:"var(--Hover)",activeBg:"var(--Hover)"}}(t),e[t+"-light"]=function(e){const t=ii(e);return{bg:"var(--Buttons-"+t+"-Button)",text:"var(--Buttons-"+t+"-Text)",border:"1px solid var(--Buttons-"+t+"-Border)",hoverBg:"var(--Buttons-"+t+"-Hover)",activeBg:"var(--Buttons-"+t+"-Pressed)"}}(t)}),e}const si={small:{height:24,fontSize:"12px",iconSize:16,padding:"0 8px",deleteSize:16,gap:4},medium:{height:32,fontSize:"13px",iconSize:18,padding:"0 12px",deleteSize:18,gap:6},large:{height:40,fontSize:"14px",iconSize:20,padding:"0 16px",deleteSize:24,gap:8}},ci=e.forwardRef(function({size:e,onClick:o,...a},n){const i="large"===e?24:"medium"===e?18:16;return r.jsx(t.Box,{ref:n,component:"button",onClick:e=>{e.stopPropagation(),o&&o(e)},onKeyDown:e=>{"Enter"!==e.key&&"Backspace"!==e.key&&"Delete"!==e.key||(e.stopPropagation(),o&&o(e))},"aria-label":"Remove",role:"button",tabIndex:0,sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",minWidth:24,minHeight:24,width:i,height:i,padding:0,margin:0,marginLeft:"2px",marginRight:"-4px",border:"none",borderRadius:"50%",backgroundColor:"transparent",color:"inherit",opacity:.7,cursor:"pointer",position:"relative",flexShrink:0,transition:"opacity 0.15s ease, background-color 0.15s ease","&:hover":{opacity:1,backgroundColor:"rgba(0,0,0,0.08)"},"&:focus-visible":{outline:"2px solid var(--Focus-Visible)",outlineOffset:"1px"},...i<24&&{"&::after":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",minWidth:24,minHeight:24}}},...a,children:r.jsx(Ee,{sx:{fontSize:i,pointerEvents:"none"}})})});function di({variant:e="primary",size:o="medium",label:a,clickable:n=!1,disabled:i=!1,selected:l=!1,selectionMode:s,onDelete:c,onClick:d,startDecorator:u,endDecorator:x,children:p,className:h="",sx:m={},...f}){const g=li(),b=g[e]||g.primary,v=c?"large":o,y=si[v]||si.medium,j=n||!!d||!!s,S={};"radio"===s?(S.role="radio",S["aria-checked"]=l):"checkbox"===s&&(S.role="checkbox",S["aria-checked"]=l);const B=l?{outline:"2px solid var(--Buttons-Primary-Button)",outlineOffset:"1px"}:{},k=a||p,C={height:y.height,fontSize:y.fontSize,fontWeight:500,fontFamily:"inherit",borderRadius:y.height/2+"px",padding:y.padding,boxSizing:"border-box",position:"relative",backgroundColor:b.bg,color:b.text,border:b.border,...B,..."small"===v&&{"&::after":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",minWidth:24,minHeight:24,width:"100%",height:"100%"}},...j&&!i?{cursor:"pointer",transition:"background-color 0.15s ease, outline 0.15s ease","&:hover":{backgroundColor:b.hoverBg},"&:active":{backgroundColor:b.activeBg}}:{},"&:focus-visible, &.Mui-focusVisible":{outline:"2px solid var(--Focus-Visible)",outlineOffset:"2px"},...i?{opacity:.5,cursor:"not-allowed",pointerEvents:"none"}:{},boxShadow:"none","& .MuiChip-label":{padding:0,fontSize:"inherit",fontWeight:"inherit",fontFamily:"inherit",lineHeight:1.2,display:"flex",alignItems:"center",gap:y.gap+"px"},"& .MuiChip-icon":{margin:0,marginLeft:"-2px",color:"inherit",fontSize:y.iconSize},"& .MuiChip-deleteIcon":{display:"none"},...m},w=r.jsxs(t.Box,{component:"span",sx:{display:"inline-flex",alignItems:"center",gap:y.gap+"px",lineHeight:1},children:[u&&r.jsx(t.Box,{component:"span",sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,"& .MuiSvgIcon-root":{fontSize:y.iconSize},"& .MuiAvatar-root":{width:y.iconSize+4,height:y.iconSize+4,fontSize:Math.round(.65*y.iconSize)+"px"}},children:u}),k,x&&r.jsx(t.Box,{component:"span",sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,"& .MuiSvgIcon-root":{fontSize:y.iconSize},"& .MuiAvatar-root":{width:y.iconSize+4,height:y.iconSize+4,fontSize:Math.round(.65*y.iconSize)+"px"}},children:x}),c&&r.jsx(ci,{size:v,onClick:c})]});return r.jsx(t.Chip,{label:w,clickable:j&&!i,disabled:i,onClick:j?d:void 0,className:"chip-"+e+" "+h,sx:C,...S,...f})}const ui={body:{fontFamily:"var(--Body-Font-Family)",lineHeight:"calc(var(--Body-Line-Height) * var(--Cognitive-Multiplier, 1))",fontSize:"var(--Body-Font-Size)",fontWeight:"var(--Body-Font-Weight)",letterSpacing:"var(--Body-Letter-Spacing)"},"body-small":{fontFamily:"var(--Body-Font-Family)",lineHeight:"calc(var(--Body-Small-Line-Height) * var(--Cognitive-Multiplier, 1))",fontSize:"var(--Body-Small-Font-Size)",fontWeight:"var(--Body-Font-Weight)",letterSpacing:"var(--Body-Small-Letter-Spacing)"},"body-large":{fontFamily:"var(--Body-Font-Family)",lineHeight:"calc(var(--Body-Large-Line-Height) * var(--Cognitive-Multiplier, 1))",fontSize:"var(--Body-Large-Font-Size)",fontWeight:"var(--Body-Font-Weight)",letterSpacing:"var(--Body-Large-Letter-Spacing)"},"body-semibold":{fontFamily:"var(--Body-Font-Family)",lineHeight:"calc(var(--Body-Line-Height) * var(--Cognitive-Multiplier, 1))",fontSize:"var(--Body-Font-Size)",fontWeight:"var(--Body-Semibold-Font-Weight)",letterSpacing:"var(--Body-Letter-Spacing)"},"body-bold":{fontFamily:"var(--Body-Font-Family)",lineHeight:"calc(var(--Body-Line-Height) * var(--Cognitive-Multiplier, 1))",fontSize:"var(--Body-Font-Size)",fontWeight:"var(--Body-Bold-Font-Weight)",letterSpacing:"var(--Body-Letter-Spacing)"},button:{fontFamily:"var(--Body-Font-Family)",lineHeight:"var(--Button-Line-Height)",fontSize:"var(--Button-Font-Size)",fontWeight:"var(--Button-Font-Weight)",letterSpacing:"var(--Button-Letter-Spacing)"},label:{fontFamily:"var(--Body-Font-Family)",lineHeight:"var(--Label-Line-Height)",fontSize:"var(--Label-Font-Size)",fontWeight:"var(--Label-Font-Weight)",letterSpacing:"var(--Label-Letter-Spacing)"},caption:{fontFamily:"var(--Body-Font-Family)",lineHeight:"calc(var(--Body-Small-Line-Height) * var(--Cognitive-Multiplier, 1))",fontSize:"var(--Body-Small-Font-Size)",fontWeight:"var(--Body-Font-Weight)",letterSpacing:"var(--Body-Small-Letter-Spacing)"}},xi="var(--Link-Visited, var(--Hotlink-Visited))",pi={primary:{base:"var(--Link, var(--Hotlink))",visited:xi},standard:{base:"var(--Text)",visited:xi},quiet:{base:"var(--Text-Quiet)",visited:xi}};function hi({children:e,href:o,target:a,rel:n,textStyle:i="body",color:l="primary",disabled:s=!1,onClick:c,className:d="",sx:u={},...x}){const p=ui[i]||ui.body,h=pi[l]||pi.primary,m="_blank"===a?n||"noopener noreferrer":n;return r.jsx(t.Box,{component:"a",href:s?void 0:o,target:a,rel:m,onClick:s?e=>e.preventDefault():c,"aria-disabled":s||void 0,tabIndex:s?-1:void 0,className:"link link-"+i+" link-color-"+l+(s?" link-disabled":"")+" "+d,sx:{fontFamily:p.fontFamily,lineHeight:p.lineHeight,fontSize:p.fontSize,fontWeight:p.fontWeight,letterSpacing:p.letterSpacing,textDecoration:"underline",textUnderlineOffset:"3px",textDecorationThickness:"1px",color:h.base,cursor:s?"not-allowed":"pointer",opacity:s?.5:1,pointerEvents:s?"none":"auto",display:"inline-flex",alignItems:"center",minHeight:"24px",minWidth:"24px",transition:"color 0.15s ease, text-decoration-color 0.15s ease",...!s&&{"&:hover":{textDecorationThickness:"2px"},"&:visited":{color:h.visited},"&:focus-visible":{outline:"3px solid var(--Focus-Visible)",outlineOffset:"2px",borderRadius:"2px"},"&:active":{textDecorationThickness:"2px"}},...u},...x,children:e})}function mi({label:e,selected:t,onClick:o}){return r.jsx(Ur,{selected:t,variant:t?"primary":"primary-outline",size:"small",onClick:o,children:e})}function fi({code:e}){return r.jsx(na,{code:e,language:"JSX",wrap:!0,sx:{mt:1}})}function gi({passes:e}){return r.jsxs(t.Box,{sx:{display:"inline-flex",alignItems:"center",gap:.5,px:1.5,py:.5,borderRadius:"20px",backgroundColor:e?"var(--Tags-Success-BG)":"var(--Tags-Error-BG)",color:e?"var(--Tags-Success-Text)":"var(--Tags-Error-Text)",fontSize:"12px",fontWeight:600},children:[e?r.jsx(l,{sx:{fontSize:14}}):r.jsx(s,{sx:{fontSize:14}}),e?"WCAG Pass":"WCAG Fail"]})}function bi({leftLabel:e,rightLabel:o,leftContent:a,rightContent:n,leftCode:i,rightCode:l,leftPasses:s,rightPasses:c}){return r.jsxs(t.Grid,{container:!0,spacing:3,children:[r.jsx(t.Grid,{item:!0,xs:12,md:6,children:r.jsxs(t.Box,{sx:{p:2,border:"1px solid var(--Border)",borderRadius:"var(--Style-Border-Radius)",backgroundColor:"var(--Background)",height:"100%"},children:[r.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:2},children:[r.jsx(Vt,{style:{fontWeight:600},children:e}),r.jsx(gi,{passes:s})]}),r.jsx(t.Box,{sx:{p:2,backgroundColor:"var(--Surface-Dim, var(--Surface))",borderRadius:"var(--Style-Border-Radius)",minHeight:80},children:a}),r.jsx(fi,{code:i})]})}),r.jsx(t.Grid,{item:!0,xs:12,md:6,children:r.jsxs(t.Box,{sx:{p:2,border:"1px solid var(--Border)",borderRadius:"var(--Style-Border-Radius)",backgroundColor:"var(--Background)",height:"100%"},children:[r.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:2},children:[r.jsx(Vt,{style:{fontWeight:600},children:o}),r.jsx(gi,{passes:c})]}),r.jsx(t.Box,{sx:{p:2,backgroundColor:"var(--Surface-Dim, var(--Surface))",borderRadius:"var(--Style-Border-Radius)",minHeight:80},children:n}),r.jsx(fi,{code:l})]})})]})}function vi(){const[o,a]=e.useState("column"),[n,i]=e.useState(.5),[l,c]=e.useState("small"),[d,u]=e.useState(!0),[x,p]=e.useState(!1),[h,m]=e.useState(null),[f,g]=e.useState("Surface"),b={small:{label:"Small links ⚡",content:r.jsxs(r.Fragment,{children:[r.jsx(hi,{href:"#",size:"small",children:"Terms of Service"}),r.jsx(hi,{href:"#",size:"small",children:"Privacy Policy"}),r.jsx(hi,{href:"#",size:"small",children:"Cookie Settings"})]})},chips:{label:"Chips ⚡",content:r.jsxs(r.Fragment,{children:[r.jsx(di,{label:"React",size:"small"}),r.jsx(di,{label:"TypeScript",size:"small"}),r.jsx(di,{label:"Design System",size:"small"})]})},normal:{label:"Normal buttons",content:r.jsxs(r.Fragment,{children:[r.jsx(Ur,{variant:"primary",size:"medium",children:"Primary"}),r.jsx(Ur,{variant:"secondary",size:"medium",children:"Secondary"})]})},mixed:{label:"Mixed ⚡",content:r.jsxs(r.Fragment,{children:[r.jsx(Ur,{variant:"primary",size:"medium",children:"Save changes"}),r.jsx(hi,{href:"#",size:"small",children:"Or discard"})]})}},v=["small","chips","mixed"].includes(l),y=d&&v;return r.jsxs(t.Grid,{container:!0,spacing:3,sx:{mt:1},children:[r.jsxs(t.Grid,{item:!0,xs:12,md:7,children:[r.jsx(To,{theme:h,children:r.jsxs(t.Box,{sx:{width:"100%"},children:[y&&r.jsxs(t.Box,{sx:{mb:2,px:2,py:1,borderRadius:"var(--Style-Border-Radius)",backgroundColor:"var(--Tags-Warning-BG)",color:"var(--Tags-Warning-Text)",fontSize:"12px",fontWeight:600,display:"flex",alignItems:"center",gap:1},children:[r.jsx(s,{sx:{fontSize:16}}),"Small child detected — gap raised to var(--min-stack-gap)"]}),r.jsx(La,{direction:o,gap:n,enforceMinGap:d,flexWrap:x?"wrap":void 0,children:b[l].content})]})}),r.jsx(fi,{code:(()=>{const e=["<OmniStack"];return"column"!==o&&e.push(' direction="'+o+'"'),e.push(" gap={"+n+"}"),d||e.push(" enforceMinGap={false}"),x&&e.push(' flexWrap="wrap"'),e.push(">"),e.push(" {children}"),e.push("</OmniStack>"),e.join("\n")})()})]}),r.jsx(t.Grid,{item:!0,xs:12,md:5,children:r.jsxs(t.Box,{sx:{display:"flex",flexDirection:"column",gap:3},children:[r.jsx(Ro,{theme:h,onThemeChange:m,surface:f,onSurfaceChange:g}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"CHILDREN"}),r.jsx(t.Box,{sx:{display:"flex",flexWrap:"wrap",gap:1},children:Object.entries(b).map(([e,{label:t}])=>r.jsx(mi,{label:t,selected:l===e,onClick:()=>c(e)},e))})]}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"DIRECTION"}),r.jsx(t.Box,{sx:{display:"flex",gap:1},children:["row","column"].map(e=>{return r.jsx(mi,{label:(t=e,t?t.charAt(0).toUpperCase()+t.slice(1):""),selected:o===e,onClick:()=>a(e)},e);var t})})]}),r.jsxs(t.Box,{children:[r.jsxs(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:["GAP — ",n," unit",y?" → raised to var(--min-stack-gap)":""]}),r.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",gap:2},children:[r.jsx(t.Box,{component:"input",type:"range",min:0,max:6,step:.5,value:n,onChange:e=>i(Number(e.target.value)),sx:{flex:1,accentColor:"var(--Primary-Color-10)"}}),r.jsx(Kt,{style:{color:"var(--Text)",minWidth:24,textAlign:"right"},children:n})]})]}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"OPTIONS"}),r.jsxs(t.Box,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:[r.jsxs(t.Box,{sx:{display:"flex",alignItems:"flex-start",justifyContent:"space-between"},children:[r.jsxs(t.Box,{children:[r.jsx(Vt,{children:"Enforce min gap"}),r.jsx(Kt,{style:{color:y?"var(--Tags-Warning-Text)":"var(--Text-Quiet)",display:"block"},children:y?"⚡ Active — small child detected":v?"Off — WCAG 2.5.8 risk":"No small children detected"})]}),r.jsx(xa,{checked:d,onChange:e=>u(e.target.checked),size:"small"})]}),r.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[r.jsx(Vt,{children:"Flex wrap"}),r.jsx(xa,{checked:x,onChange:e=>p(e.target.checked),size:"small"})]})]})]})]})})]})}function yi({children:e,theme:o,surface:a,elevation:n=0,component:i="div",className:l="",sx:s={},style:c,...d}){const u=Math.max(0,Math.min(5,0|n));if(!u)return r.jsx(t.Box,{component:i,"data-theme":o||void 0,"data-surface":a||void 0,className:"omni-box"+(l?" "+l:""),sx:{background:"var(--Background)",boxSizing:"border-box",...s},style:c,...d,children:e});const x=c||{},{width:p,height:h,minWidth:m,minHeight:f,maxWidth:g,maxHeight:b,borderRadius:v,margin:y,marginTop:j,marginRight:S,marginBottom:B,marginLeft:k,...C}=x,w={width:p,height:h,minWidth:m,minHeight:f,maxWidth:g,maxHeight:b,borderRadius:v,margin:y,marginTop:j,marginRight:S,marginBottom:B,marginLeft:k},{width:T,height:I,borderRadius:A,...z}=s;return r.jsx(t.Box,{component:i,className:"omni-box-elevation"+(l?" "+l:""),sx:{boxShadow:zr[u],boxSizing:"border-box",width:T,height:I,borderRadius:A},style:w,...d,children:r.jsx(t.Box,{"data-theme":o||void 0,"data-surface":a||void 0,className:"omni-box",sx:{width:"100%",height:"100%",background:"var(--Background)",borderRadius:"inherit",boxSizing:"border-box",...z},style:C,children:e})})}const ji=["Surface","Surface-Dim","Surface-Bright","Container","Container-Low","Container-Lowest","Container-High"],Si=["Default","Primary","Primary-Light","Secondary","Secondary-Light","Tertiary","Tertiary-Light","Neutral","Neutral-Light","Info-Light","Success-Light","Warning-Light","Error-Light"];function Bi({label:e,selected:t,onClick:o}){return r.jsx(Ur,{selected:t,variant:t?"default":"default-outline",size:"small",onClick:o,children:e})}function ki({theme:e,surface:t="Surface",as:o="section",padding:a,className:n,style:i,children:l,...s}){return r.jsx(o,{...e?{"data-theme":e}:{},"data-surface":t,className:n,style:{background:"var(--Background)",color:"var(--Text)",...void 0!==a?{padding:a}:{},...i},...s,children:l})}const Ci=["1:1","3:4","4:3","16:9","9:16","2:3","3:2","1:2","2:1","9:21","21:9","5:7","7:5","4:5","5:4","5:3","3:5","16:10","10:16","Golden-Horizontal","Golden-Vertical"],wi="1.618034",Ti={"1:1":"1 / 1","3:4":"3 / 4","4:3":"4 / 3","16:9":"16 / 9","9:16":"9 / 16","2:3":"2 / 3","3:2":"3 / 2","1:2":"1 / 2","2:1":"2 / 1","9:21":"9 / 21","21:9":"21 / 9","5:7":"5 / 7","7:5":"7 / 5","4:5":"4 / 5","5:4":"5 / 4","5:3":"5 / 3","3:5":"3 / 5","16:10":"16 / 10","10:16":"10 / 16","Golden-Horizontal":wi+" / 1","Golden-Vertical":"1 / "+wi},Ii={none:0,xs:1,sm:2,md:3,lg:4,xl:6};function Ai({ratio:o="1:1",children:a,variant:n="default",color:i="default",padding:l="none",fit:s="width",placeholder:c=!0,elevated:d=!1,clickable:u=!1,onClick:x,maxWidth:p,maxHeight:h,component:m="div",className:f="",sx:g={},...b}){const v=Ti[o]||Ti["1:1"],y=(j="default"===i?"Default":i).charAt(0).toUpperCase()+j.slice(1);var j;const S=c&&0===e.Children.count(a),B="light"===n?"default"===i?"Default":y+"-Light":y,k="dark"===n?"Surface-Dimmest":"Surface",C=void 0!==Ii[l]?Ii[l]:Ii.none,w=u||!!x,T="default"===n,I=d?Tr:wr,A=d?Ir:Tr;return r.jsx(t.Box,{component:m,onClick:w?x:void 0,role:w?"button":void 0,tabIndex:w?0:void 0,className:"ratio ratio-"+o.toLowerCase()+" ratio-"+n+(w?" ratio-clickable":"")+(d?" ratio-elevated":"")+(f?" "+f:""),sx:{aspectRatio:v,flex:"0 0 auto",..."height"===s?{height:"100%",width:"auto",minHeight:24}:{width:"100%",height:"auto",minWidth:24},...void 0!==p&&{maxWidth:p},...void 0!==h&&{maxHeight:h},border:T?"none":"1px solid var(--Border-Variant)",borderRadius:T?0:"var(--Style-Border-Radius)",boxShadow:T?"none":I,overflow:"hidden",transition:"box-shadow 0.2s ease, border-color 0.2s ease",...w&&{cursor:"pointer","&:hover":{borderColor:"var(--Buttons-Default-Border)",boxShadow:A},"&:active":{transform:"scale(0.995)"},"&:focus-visible":{outline:"3px solid var(--Focus-Visible)",outlineOffset:"3px"}},...!w&&!T&&{"&:hover":{boxShadow:A}},...g},...b,children:r.jsx(t.Box,{"data-theme":B||void 0,"data-surface":k,sx:{width:"100%",height:"100%",padding:C,backgroundColor:S?"var(--Border)":"var(--Background)",color:"var(--Text)",fontFamily:"inherit",borderRadius:T?0:"calc(var(--Style-Border-Radius) - 1px)",...S?{display:"flex",alignItems:"center",justifyContent:"center"}:{"& > *":{width:"100%",height:"100%"}}},children:S?r.jsx(dr,{size:"large",sx:{color:"var(--Background)"},children:r.jsx(Pe,{})}):a})})}const zi=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",Ri=[{label:"Default",colors:["default"]},{label:"Theme",colors:["primary","secondary","tertiary","neutral"]},{label:"State",colors:["info","success","warning","error"]}],Ei=["default","solid","light","dark"],Li=["none","xs","sm","md","lg","xl"];function Pi({label:e,selected:t,onClick:o}){return r.jsx(Ur,{selected:t,variant:t?"default":"default-outline",size:"small",onClick:o,children:e})}function Mi({color:e,selected:t,onClick:o,variant:n}){const i=zi(e),l={solid:i,light:i+"-Light",dark:i,default:void 0};return r.jsx(yi,{component:"button","data-theme":l[n],"data-surface":{solid:"Surface",light:"Surface",dark:"Surface-Dimmest",default:"Surface"}[n],onClick:()=>o(e),"aria-label":"Select "+i,"aria-pressed":t,title:i,sx:{width:"var(--Button-Height)",height:"var(--Button-Height)",borderRadius:"4px",backgroundColor:"var(--Background)",border:t?"2px solid var(--Text)":"2px solid var(--Border)",outline:t?"2px solid var(--Focus-Visible)":"2px solid transparent",outlineOffset:"1px",cursor:"pointer",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",transition:"transform 0.1s ease","&:hover":{transform:"scale(1.1)"}},children:t&&r.jsx(a,{sx:{fontSize:16,color:"var(--Text)",pointerEvents:"none"}})})}const Oi=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",Di=[{label:"Default",colors:["default"]},{label:"Theme",colors:["primary","secondary","tertiary","neutral"]},{label:"State",colors:["info","success","warning","error"]}],Wi=[{label:"Theme",colors:["primary","secondary","tertiary","neutral"]},{label:"State",colors:["info","success","warning","error"]}];function Fi({label:e,selected:t,onClick:o}){return r.jsx(Ur,{selected:t,variant:t?"default":"default-outline",size:"small",onClick:o,children:e})}function Ni({color:e,selected:o,onClick:n}){const i=Oi(e);return r.jsx(t.Box,{component:"button",onClick:()=>n(e),"aria-label":"Select "+i,"aria-pressed":o,title:i,sx:{width:"var(--Button-Height)",height:"var(--Button-Height)",borderRadius:"4px",backgroundColor:"var(--Buttons-"+i+"-Button)",border:o?"2px solid var(--Text)":"1px solid var(--Border)",outline:o?"2px solid var(--Focus-Visible)":"2px solid transparent",outlineOffset:"1px",cursor:"pointer",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",transition:"transform 0.1s ease","&:hover":{transform:"scale(1.1)"}},children:o&&r.jsx(a,{sx:{fontSize:16,color:"var(--Buttons-"+i+"-Text)",pointerEvents:"none"}})})}const Hi={small:{fontSize:"var(--Body-Small-Font-Size)",gap:"6px",py:"4px"},medium:{fontSize:"var(--Body-Font-Size)",gap:"8px",py:"6px"},large:{fontSize:"var(--Body-Large-Font-Size)",gap:"10px",py:"8px"}};function Vi({children:o,separator:a="/",size:n="medium",condense:i=!1,maxItems:l=4,itemsBeforeCollapse:s=1,itemsAfterCollapse:c=1,backOnlyMobile:d=!1,onExpand:u,className:x="",sx:p={},...h}){const m=Hi[n]||Hi.medium,f=e.Children.toArray(o).filter(e.isValidElement),g=f.length,b=i&&g>l;let v=f;const[y,j]=e.useState(!1);if(b&&!y){const e=f.slice(0,s),o=f.slice(g-c),a=r.jsx(t.Box,{component:"button",onClick:()=>{j(!0),u?.()},"aria-label":"Show full breadcrumb trail",className:"breadcrumb-ellipsis",sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",padding:"2px 4px",cursor:"pointer",fontFamily:"inherit",fontSize:"inherit",color:"var(--Quiet)",borderRadius:"4px","&:hover":{backgroundColor:"var(--Hover)",color:"var(--Text)"},"&:focus-visible":{outline:"3px solid var(--Focus-Visible)",outlineOffset:"1px"}},children:"…"},"__breadcrumb-ellipsis");v=[...e,a,...o]}const S=[];v.forEach((e,o)=>{const n=b&&!y?o===v.length-1:o===g-1;var i;S.push(r.jsx(t.Box,{component:"li",className:"breadcrumb-item"+(n?" breadcrumb-current":""),sx:{display:"inline-flex",alignItems:"center",...n&&{color:"var(--Text)",fontWeight:600},...!n&&{color:"var(--Quiet)"},maxWidth:"200px","& > *":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},...n?{"aria-current":"page"}:{},children:e},"crumb-"+o)),o<v.length-1&&S.push((i=o,r.jsx(t.Box,{component:"li",role:"presentation","aria-hidden":"true",className:"breadcrumb-separator",sx:{display:"inline-flex",alignItems:"center",color:"var(--Quiet)",userSelect:"none",fontSize:"inherit",lineHeight:1,flexShrink:0},children:a},"sep-"+i)))});const B=g>=2?f[g-2]:null;return r.jsxs(t.Box,{component:"nav","aria-label":"Breadcrumb",className:"breadcrumbs breadcrumbs-"+n+" "+x,sx:{fontSize:m.fontSize,fontFamily:"var(--Body-Font-Family)",lineHeight:1.5,...p},...h,children:[r.jsx(t.Box,{component:"ol",className:"breadcrumbs-list",sx:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:m.gap,listStyle:"none",margin:0,padding:0,...d&&{"@media (max-width: 600px)":{display:"none"}}},children:S}),d&&B&&r.jsxs(t.Box,{className:"breadcrumbs-back-mobile",sx:{display:"none","@media (max-width: 600px)":{display:"flex",alignItems:"center",gap:"4px",fontSize:m.fontSize,color:"var(--Link)"}},children:[r.jsx(t.Box,{component:"span","aria-hidden":"true",sx:{fontSize:"1.1em",lineHeight:1},children:"←"}),e.cloneElement(B,{style:{...B.props?.style||{},textDecoration:"underline",textUnderlineOffset:"3px"}})]})]})}function Qi({children:e,href:o,className:a="",sx:n={},...i}){const l=!!o;return r.jsx(t.Box,{component:l?"a":"span",href:o||void 0,className:"breadcrumb-link "+a,sx:{color:"inherit",textDecoration:l?"underline":"none",textUnderlineOffset:"3px",textDecorationThickness:"1px",cursor:l?"pointer":"default",transition:"color 0.15s ease",...l&&{"&:hover":{color:"var(--Link-Hover)",textDecorationThickness:"2px"},"&:focus-visible":{outline:"3px solid var(--Focus-Visible)",outlineOffset:"2px",borderRadius:"2px"}},...n},...i,children:e})}const Gi=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"";function qi({label:e,selected:t,onClick:o}){return r.jsx(Ur,{selected:t,variant:t?"default":"default-outline",size:"small",onClick:o,children:e})}const Ui={small:{btnSize:"small",fontSize:"13px",gap:"2px"},medium:{btnSize:"medium",fontSize:"14px",gap:"4px"},large:{btnSize:"large",fontSize:"16px",gap:"4px"}};function Xi({count:o=10,page:a,defaultPage:n=1,onChange:i,color:l="default",size:s="medium",siblingCount:c=1,boundaryCount:d=1,disabled:u=!1,showFirstButton:x=!1,showLastButton:p=!1,className:h="",sx:m={},...f}){const[g,b]=e.useState(n),v=void 0!==a,y=v?a:g;(e=>{e.charAt(0).toUpperCase(),e.slice(1)})("default"===l?"Default":l);const j=Ui[s]||Ui.medium,S=e.useCallback(e=>{const t=Math.max(1,Math.min(o,e));v||b(t),i?.(t)},[o,v,i]),B=function({count:e,page:t,siblingCount:r=1,boundaryCount:o=1}){const a=(e,t)=>Array.from({length:t-e+1},(t,r)=>e+r);if(2*r+3+2*o>=e)return a(1,e);const n=Math.max(t-r,o+1),i=Math.min(t+r,e-o),l=n>o+2,s=i<e-o-1;if(!l&&s)return[...a(1,Math.min(3+2*r+o,e)),"ellipsis-right",...a(e-o+1,e)];if(l&&!s){const t=a(Math.max(e-(3+2*r+o)+1,1),e);return[...a(1,o),"ellipsis-left",...t]}return l&&s?[...a(1,o),"ellipsis-left",...a(n,i),"ellipsis-right",...a(e-o+1,e)]:a(1,e)}({count:o,page:y,siblingCount:c,boundaryCount:d}),k="default"===l?"default":l;return r.jsx(t.Box,{component:"nav","aria-label":"Pagination",className:"pagination pagination-"+l+" pagination-"+s+" "+h,sx:{display:"inline-flex",...m},...f,children:r.jsxs(t.Box,{component:"ul",sx:{display:"flex",alignItems:"center",gap:j.gap,listStyle:"none",m:0,p:0,flexWrap:"wrap"},children:[x&&r.jsx(t.Box,{component:"li",children:r.jsx(Ur,{iconOnly:!0,variant:k+"-outline",size:j.btnSize,disabled:u||1===y,onClick:()=>S(1),"aria-label":"Go to first page",children:r.jsx(dr,{size:"small",children:r.jsx(De,{})})})}),r.jsx(t.Box,{component:"li",children:r.jsx(Ur,{iconOnly:!0,variant:k+"-outline",size:j.btnSize,disabled:u||1===y,onClick:()=>S(y-1),"aria-label":"Go to previous page",children:r.jsx(dr,{size:"small",children:r.jsx(Me,{})})})}),B.map((e,o)=>{if("string"==typeof e)return r.jsx(t.Box,{component:"li",children:r.jsx(Kt,{style:{color:"var(--Quiet)",padding:"0 4px"},"aria-hidden":"true",children:"…"})},e+"-"+o);const a=e===y;return r.jsx(t.Box,{component:"li",children:r.jsx(Ur,{variant:a?k:k+"-outline",size:j.btnSize,disabled:u,onClick:()=>S(e),"aria-label":"Page "+e,"aria-current":a?"page":void 0,letterNumber:!0,children:e})},e)}),r.jsx(t.Box,{component:"li",children:r.jsx(Ur,{iconOnly:!0,variant:k+"-outline",size:j.btnSize,disabled:u||y===o,onClick:()=>S(y+1),"aria-label":"Go to next page",children:r.jsx(dr,{size:"small",children:r.jsx(Oe,{})})})}),p&&r.jsx(t.Box,{component:"li",children:r.jsx(Ur,{iconOnly:!0,variant:k+"-outline",size:j.btnSize,disabled:u||y===o,onClick:()=>S(o),"aria-label":"Go to last page",children:r.jsx(dr,{size:"small",children:r.jsx(We,{})})})})]})})}const Ki=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",Ji=[{label:"Default",colors:["default"]},{label:"Theme",colors:["primary","secondary","tertiary","neutral"]},{label:"State",colors:["info","success","warning","error"]}];function Yi({label:e,selected:t,onClick:o}){return r.jsx(Ur,{selected:t,variant:t?"default":"default-outline",size:"small",onClick:o,children:e})}function Zi({color:e,selected:o,onClick:n}){const i=Ki(e);return r.jsx(t.Box,{component:"button",onClick:()=>n(e),"aria-label":"Select "+i,"aria-pressed":o,title:i,sx:{width:"var(--Button-Height)",height:"var(--Button-Height)",borderRadius:"4px",backgroundColor:"var(--Buttons-"+i+"-Button)",border:o?"2px solid var(--Text)":"1px solid var(--Border)",outline:o?"2px solid var(--Focus-Visible)":"2px solid transparent",outlineOffset:"1px",cursor:"pointer",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",transition:"transform 0.1s ease","&:hover":{transform:"scale(1.1)"}},children:o&&r.jsx(a,{sx:{fontSize:16,color:"var(--Buttons-"+i+"-Text)",pointerEvents:"none"}})})}const $i=e=>e.charAt(0).toUpperCase()+e.slice(1),_i={small:{py:"4px",itemPx:"8px",itemPy:"4px",fontSize:"13px",minWidth:"140px"},medium:{py:"6px",itemPx:"12px",itemPy:"6px",fontSize:"14px",minWidth:"160px"},large:{py:"8px",itemPx:"16px",itemPy:"8px",fontSize:"16px",minWidth:"180px"}},el=e.createContext({open:!1,setOpen:()=>{},anchorRef:{current:null},menuId:"",buttonId:"",variant:"outline",color:"default",size:"medium"}),tl=()=>e.useContext(el);function rl({children:o,variant:a="outline",color:n="default",size:i="medium",open:l,onOpenChange:s,...c}){const[d,u]=e.useState(!1),x=void 0!==l,p=x?l:d,h=e.useRef(null),m=e.useId(),f="menu-"+m,g="menubtn-"+m,b=e.useCallback(e=>{const t="function"==typeof e?e(p):e;x?s?.(t):u(t)},[x,p,s]);return r.jsx(el.Provider,{value:{open:p,setOpen:b,anchorRef:h,menuId:f,buttonId:g,variant:a,color:n,size:i},children:r.jsx(t.Box,{sx:{display:"inline-flex",position:"relative"},...c,children:o})})}function ol({children:e,className:o="",sx:a={},...n}){const{open:i,setOpen:l,anchorRef:s,menuId:c,buttonId:d,size:u,color:p}=tl(),h=_i[u]||_i.medium,m=$i("default"===p?"Default":p);return r.jsxs(t.Box,{component:"button",ref:s,id:d,"aria-haspopup":"true","aria-expanded":i,"aria-controls":i?c:void 0,onClick:()=>l(e=>!e),className:"menu-button "+o,sx:{display:"inline-flex",alignItems:"center",gap:"6px",padding:h.itemPy+" "+h.itemPx,fontSize:h.fontSize,fontFamily:"inherit",fontWeight:600,color:"var(--Text)",backgroundColor:"var(--Background)",border:"1px solid var(--Buttons-"+m+"-Border)",borderRadius:"var(--Style-Border-Radius)",cursor:"pointer",boxShadow:"none",transition:"box-shadow 0.15s ease","&:focus-visible":{outline:"2px solid var(--Focus-Visible)",outlineOffset:"2px"},...a},onKeyDown:e=>{"ArrowDown"!==e.key&&"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),l(!0))},...n,children:["string"==typeof e?"small"===u?r.jsx(Vt,{style:{color:"inherit",fontWeight:600},children:e}):r.jsx(Gt,{style:{color:"inherit",fontWeight:600},children:e}):e,r.jsx(dr,{size:"small",sx:{color:"var(--Quiet)",transition:"transform 0.2s ease",transform:i?"rotate(180deg)":"rotate(0deg)"},children:r.jsx(x,{})})]})}function al({children:o,className:a="",placement:n="bottom-start",sx:i={},...l}){const{open:s,setOpen:c,anchorRef:d,menuId:u,buttonId:x,variant:p,color:h,size:m}=tl(),f=e.useRef(null),g=_i[m]||_i.medium,b=$i("default"===h?"Default":h),v="var(--Buttons-"+b+"-Border)",y="light"===p?"default"===h?"Default":b+"-Light":"solid"===p?b:void 0,j="solid"===p||"light"===p?"Surface":void 0;return e.useEffect(()=>{if(s&&f.current){const e=f.current.querySelector('[role="menuitem"]:not([aria-disabled="true"])');e&&e.focus()}},[s]),e.useEffect(()=>{if(!s)return;const e=e=>{f.current&&!f.current.contains(e.target)&&d.current&&!d.current.contains(e.target)&&c(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[s,c,d]),e.useEffect(()=>{if(!s)return;const e=e=>{"Escape"===e.key&&(c(!1),d.current?.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[s,c,d]),s?r.jsx(t.Box,{className:"menu menu-"+p+" "+a,sx:{position:"absolute",top:"100%",left:"bottom-end"===n?"auto":0,right:"bottom-end"===n?0:"auto",zIndex:99999,marginTop:"4px",border:"1px solid "+v,borderRadius:"var(--Dropdown-Frame-Radius, var(--Input-Radius, var(--Style-Border-Radius, 4px)))",boxShadow:"none",overflow:"hidden",...i},children:r.jsx(t.Box,{ref:f,id:u,role:"menu","aria-labelledby":x,"data-theme":y,"data-surface":j,sx:{minWidth:g.minWidth,backgroundColor:"var(--Background)",color:"var(--Text)",fontSize:g.fontSize,fontFamily:"inherit",padding:g.py+" 0",outline:"none",borderRadius:"calc(var(--Dropdown-Frame-Radius, var(--Input-Radius, var(--Style-Border-Radius, 4px))) - 1px)"},onKeyDown:e=>{const t=f.current?.querySelectorAll('[role="menuitem"]:not([aria-disabled="true"])');if(!t?.length)return;const r=Array.from(t).indexOf(document.activeElement);"ArrowDown"===e.key?(e.preventDefault(),t[(r+1)%t.length].focus()):"ArrowUp"===e.key?(e.preventDefault(),t[(r-1+t.length)%t.length].focus()):"Home"===e.key?(e.preventDefault(),t[0].focus()):"End"===e.key?(e.preventDefault(),t[t.length-1].focus()):"Tab"===e.key&&c(!1)},...l,children:o})}):null}function nl({children:e,onClick:o,selected:a=!1,disabled:n=!1,className:i="",sx:l={},...s}){const{setOpen:c,size:d}=tl(),u=_i[d]||_i.medium,x="small"===d?Vt:Gt,p=()=>{n||(o?.(),c(!1))};return r.jsx(t.Box,{role:"menuitem",tabIndex:n?-1:0,"aria-disabled":n||void 0,"aria-selected":a||void 0,onClick:p,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),p())},className:"menu-item"+(a?" menu-item-selected":"")+" "+i,sx:{display:"flex",alignItems:"center",gap:"8px",padding:u.itemPy+" "+u.itemPx,color:n?"var(--Quiet)":a?"var(--Text)":"var(--Quiet)",backgroundColor:a?"var(--Hover)":"transparent",cursor:n?"not-allowed":"pointer",opacity:n?.5:1,outline:"none",transition:"background-color 0.1s ease, color 0.1s ease",userSelect:"none",...!n&&{"&:hover":{backgroundColor:"var(--Hover)",color:"var(--Text)"},"&:focus-visible":{backgroundColor:"var(--Hover)",color:"var(--Text)",outline:"3px solid var(--Focus-Visible)",outlineOffset:"-3px"}},...l},...s,children:r.jsx(x,{style:{color:"inherit",fontWeight:a?600:"inherit"},children:e})})}function il({className:e="",sx:o={},...a}){return r.jsx(t.Box,{component:"hr",role:"separator",className:"menu-divider "+e,sx:{border:"none",borderTop:"1px solid var(--Border)",margin:"4px 0",...o},...a})}const ll=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",sl=[{label:"Default",colors:["default"]},{label:"Theme",colors:["primary","secondary","tertiary","neutral"]},{label:"State",colors:["info","success","warning","error"]}];function cl({label:e,selected:t,onClick:o}){return r.jsx(Ur,{selected:t,variant:t?"default":"default-outline",size:"small",onClick:o,children:e})}function dl({color:e,selected:o,onClick:n}){const i=ll(e);return r.jsx(t.Box,{component:"button",onClick:()=>n(e),"aria-label":"Select "+i,"aria-pressed":o,title:i,sx:{width:"var(--Button-Height)",height:"var(--Button-Height)",borderRadius:"4px",backgroundColor:"var(--Buttons-"+i+"-Button)",border:o?"2px solid var(--Text)":"1px solid var(--Border)",outline:o?"2px solid var(--Focus-Visible)":"2px solid transparent",outlineOffset:"1px",cursor:"pointer",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",transition:"transform 0.1s ease","&:hover":{transform:"scale(1.1)"}},children:o&&r.jsx(a,{sx:{fontSize:16,color:"var(--Buttons-"+i+"-Text)",pointerEvents:"none"}})})}const ul={default:"Nav-Bar",primary:"Primary","primary-light":"Primary-Light","primary-medium":"Primary-Medium","primary-dark":"Primary-Dark",white:"White",black:"Black"};function xl({items:o=[],value:a,defaultValue:n=0,onChange:i,showLabels:l=!0,labelOrientation:s="vertical",backfill:c=!0,barColor:d="default",fixed:u=!0,className:x="",sx:p={},...h}){const[m,f]=e.useState(n),g=void 0!==a,b=g?a:m,v=e.useCallback(e=>{g||f(e),i?.(e)},[g,i]),y="horizontal"===(o.length>4?"vertical":s),j=ul[d]||ul.default;return r.jsx(t.Box,{component:"nav",role:"navigation","aria-label":"Bottom navigation","data-theme":j,"data-surface":"Surface-Dim",className:"bottom-nav bottom-nav-"+d+(l?" bottom-nav-labels":"")+(y&&l?" bottom-nav-horizontal":"")+(c?" bottom-nav-backfill":"")+(u?" bottom-nav-fixed":"")+(x?" "+x:""),sx:{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"var(--Background)",borderTop:"1px solid var(--Border)",fontFamily:"inherit",width:"100%",...u&&{position:"fixed",bottom:0,left:0,right:0,zIndex:1100},...p},...h,children:r.jsx(t.Box,{role:"tablist",sx:{display:"flex",alignItems:"center",justifyContent:"space-around",width:"100%",maxWidth:600,height:l&&!y?72:64,px:1},children:o.map((e,t)=>{const o=t===b;return r.jsx(pl,{icon:e.icon,label:e.label,selected:o,showLabel:l,horizontal:y,backfill:c,onClick:()=>v(t),ariaLabel:e.label||"Tab "+(t+1)},e.key||t)})})})}function pl({icon:e,label:o,selected:a,showLabel:n,horizontal:i,backfill:l,onClick:s,ariaLabel:c}){const d="var(--Text-Quiet)",u="var(--Text)",x="var(--Buttons-Primary-Text)",p=a?l?x:u:d,h=a?l&&i?x:u:d,m=!i,f=r.jsxs(t.Box,{sx:{display:"flex",flexDirection:i?"row":"column",alignItems:"center",justifyContent:"center",gap:i?.75:0,...a&&l&&{backgroundColor:"var(--Buttons-Primary-Button)",border:"1px solid var(--Buttons-Primary-Border)",borderRadius:"16px",px:i?2:2.5,py:.5},...a&&l?{}:{px:i?1:0,border:"1px solid transparent"},transition:"background-color 0.2s ease, border-color 0.2s ease"},children:[r.jsx(t.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",fontSize:"24px",color:p,transition:"color 0.15s ease","& .MuiSvgIcon-root":{fontSize:"inherit",color:"inherit"}},children:e}),n&&i&&o&&r.jsx(t.Box,{sx:{fontSize:"13px",fontWeight:a?600:500,color:a&&l?x:a?u:d,whiteSpace:"nowrap",lineHeight:1,transition:"color 0.15s ease"},children:o})]});return r.jsxs(t.Box,{component:"button",type:"button",role:"tab","aria-selected":a,"aria-label":c,onClick:s,sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flex:1,gap:m&&n?.25:0,border:"none",backgroundColor:"transparent",cursor:"pointer",outline:"none",fontFamily:"inherit",py:1,minWidth:0,transition:"transform 0.1s ease","&:hover":{transform:"scale(1.04)"},"&:focus-visible":{outline:"3px solid var(--Focus-Visible)",outlineOffset:"-2px",borderRadius:"8px"}},children:[f,n&&m&&o&&r.jsx(t.Box,{sx:{fontSize:"11px",fontWeight:a?600:400,color:h,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",lineHeight:1.2,mt:.25,transition:"color 0.15s ease"},children:o})]})}const hl={Home:r.jsx(h,{sx:{fontSize:"inherit"}}),Explore:r.jsx(Fe,{sx:{fontSize:"inherit"}}),Radio:r.jsx(Ne,{sx:{fontSize:"inherit"}}),Library:r.jsx(He,{sx:{fontSize:"inherit"}}),Favorite:r.jsx(p,{sx:{fontSize:"inherit"}}),Person:r.jsx(n,{sx:{fontSize:"inherit"}}),Search:r.jsx(g,{sx:{fontSize:"inherit"}}),Settings:r.jsx(f,{sx:{fontSize:"inherit"}}),Notifications:r.jsx(v,{sx:{fontSize:"inherit"}}),Cart:r.jsx(j,{sx:{fontSize:"inherit"}}),Star:r.jsx(b,{sx:{fontSize:"inherit"}}),Bookmark:r.jsx(Ve,{sx:{fontSize:"inherit"}})},ml=Object.keys(hl),fl=[{icon:"Home",label:"Home"},{icon:"Explore",label:"Browse"},{icon:"Radio",label:"Radio"},{icon:"Library",label:"Library"}],gl=[{value:"default",label:"Default",desc:'data-theme="Nav-Bar"'},{value:"primary",label:"Primary",desc:'data-theme="Primary"'},{value:"primary-light",label:"Primary Light",desc:'data-theme="Primary-Light"'},{value:"primary-medium",label:"Primary Medium",desc:'data-theme="Primary-Medium"'},{value:"primary-dark",label:"Primary Dark",desc:'data-theme="Primary-Dark"'},{value:"white",label:"White",desc:'data-theme="White"'},{value:"black",label:"Black",desc:'data-theme="Black"'}];function bl({label:e,selected:o,onClick:a,disabled:n}){return r.jsx(t.Box,{component:"button",onClick:a,disabled:n,sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:n?"not-allowed":"pointer",border:"2px solid var(--Buttons-Primary-Button)",borderRadius:"var(--Style-Border-Radius)",backgroundColor:o?"var(--Buttons-Primary-Button)":"transparent",color:o?"var(--Buttons-Primary-Text)":"var(--Text)",padding:"4px 12px",fontSize:"14px",fontFamily:"inherit",fontWeight:500,whiteSpace:"nowrap",flexShrink:0,opacity:n?.4:1,transition:"background-color 0.15s ease, color 0.15s ease","&:hover":{backgroundColor:n?"transparent":o?"var(--Buttons-Primary-Hover)":"var(--Surface-Dim)"},"&:focus-visible":{outline:"2px solid var(--Focus-Visible)",outlineOffset:"2px"}},children:e})}function vl({value:e,onChange:o,placeholder:a,sx:n}){return r.jsx(t.Box,{component:"input",type:"text",value:e,onChange:e=>o(e.target.value),placeholder:a,sx:{flex:1,padding:"4px 8px",fontSize:"13px",fontFamily:"inherit",border:"1px solid var(--Border)",borderRadius:"4px",backgroundColor:"var(--Background)",color:"var(--Text)",outline:"none",minWidth:0,"&:focus":{borderColor:"var(--Focus-Visible)"},...n}})}function yl({value:e,onChange:o,options:a,label:n}){return r.jsx(t.Box,{component:"select",value:e,onChange:e=>o(e.target.value),"aria-label":n,sx:{padding:"4px 6px",fontSize:"13px",fontFamily:"inherit",border:"1px solid var(--Border)",borderRadius:"4px",backgroundColor:"var(--Background)",color:"var(--Text)",outline:"none",cursor:"pointer","&:focus":{borderColor:"var(--Focus-Visible)"}},children:a.map(e=>r.jsx("option",{value:"string"==typeof e?e:e.value,children:"string"==typeof e?e:e.label},"string"==typeof e?e:e.value))})}function jl({value:e,onChange:o,min:a,max:n,label:i}){return r.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[r.jsx(Kt,{style:{color:"var(--Text-Quiet)",flexShrink:0,width:90},children:i}),r.jsx("button",{type:"button",onClick:()=>{e>a&&o(e-1)},disabled:e<=a,style:{width:28,height:28,display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid var(--Border)",borderRadius:"4px",backgroundColor:"var(--Background)",color:"var(--Text)",cursor:e<=a?"not-allowed":"pointer",fontSize:"14px",opacity:e<=a?.4:1,fontFamily:"inherit"},children:"−"}),r.jsx(t.Box,{sx:{fontWeight:700,fontSize:"14px",minWidth:24,textAlign:"center"},children:e}),r.jsx("button",{type:"button",onClick:()=>{e<n&&o(e+1)},disabled:e>=n,style:{width:28,height:28,display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid var(--Border)",borderRadius:"4px",backgroundColor:"var(--Background)",color:"var(--Text)",cursor:e>=n?"not-allowed":"pointer",fontSize:"14px",opacity:e>=n?.4:1,fontFamily:"inherit"},children:"+"})]})}function Sl({label:e,checked:o,onChange:a,caption:n,disabled:i}){return r.jsxs(t.Box,{sx:{py:.5,opacity:i?.4:1},children:[r.jsx(t.FormControlLabel,{control:r.jsx(t.Checkbox,{checked:o,onChange:e=>a(e.target.checked),size:"small",disabled:i,sx:{color:"var(--Text-Quiet)","&.Mui-checked":{color:"var(--Buttons-Primary-Button)"}}}),label:r.jsx(Jt,{children:e}),sx:{m:0}}),n&&r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginLeft:32},children:n})]})}const Bl={default:"Default",primary:"Primary",secondary:"Secondary",tertiary:"Tertiary",neutral:"Neutral",info:"Info",success:"Success",warning:"Warning",error:"Error"},kl={small:{indicator:24,fontSize:"11px",labelFontSize:"13px",connectorThickness:2,gap:0},medium:{indicator:32,fontSize:"13px",labelFontSize:"14px",connectorThickness:2,gap:0},large:{indicator:40,fontSize:"16px",labelFontSize:"16px",connectorThickness:2,gap:0}},Cl=e.createContext({orientation:"horizontal",size:"medium",color:"primary",activeStep:0,clickable:!1,onStepClick:null,dashedIncomplete:!1,totalSteps:0}),wl=()=>e.useContext(Cl);function Tl({children:o,orientation:a="horizontal",size:n="medium",color:i="primary",activeStep:l=0,clickable:s=!1,onStepClick:c,dashedIncomplete:d=!1,className:u="",sx:x={},...p}){const h=e.Children.toArray(o).filter(e.isValidElement),m=h.length,f="horizontal"===a;return r.jsx(Cl.Provider,{value:{orientation:a,size:n,color:i,activeStep:l,clickable:s,onStepClick:c,dashedIncomplete:d,totalSteps:m},children:r.jsx(t.Box,{component:"ol",role:"list","aria-label":"Progress",className:"stepper stepper-"+a+" stepper-"+n+" stepper-"+i+" "+u,sx:{display:"flex",flexDirection:f?"row":"column",alignItems:f?"flex-start":"stretch",listStyle:"none",margin:0,padding:0,width:"100%",gap:0,...x},...p,children:h.map((t,r)=>e.cloneElement(t,{_index:r,key:t.key||r}))})})}function Il({children:e,icon:o,label:a,_index:n=0,className:i="",sx:l={},...s}){const{orientation:c,size:d,color:u,activeStep:x,clickable:p,onStepClick:h,dashedIncomplete:m,totalSteps:f}=wl(),g=kl[d]||kl.medium,b=Bl[u]||"Primary",v="horizontal"===c,y=n===x,j=n<x,S=n>x,B=n===f-1,k=o||n+1,C=a||e,w="var(--Buttons-"+b+"-Border)",T=y||j?"var(--Buttons-"+b+"-Button)":"transparent",I=y||j?"var(--Buttons-"+b+"-Text)":"var(--Text)",A=y||j?"var(--Buttons-"+b+"-Hover)":"var(--Hover)",z=y||j?"var(--Buttons-"+b+"-Pressed)":"var(--Pressed)",R=r.jsx(t.Box,{component:p?"button":"div",onClick:p?()=>h?.(n):void 0,onKeyDown:p?e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),h?.(n))}:void 0,tabIndex:p?0:void 0,role:p?"button":void 0,"aria-label":p?"Go to step "+(n+1):void 0,"aria-current":y?"step":void 0,className:"step-indicator step-indicator-"+d+(y?" step-indicator-active":"")+(j?" step-indicator-completed":"")+(S?" step-indicator-incomplete":"")+(p?" step-indicator-clickable":""),sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:g.indicator+"px",height:g.indicator+"px",minWidth:g.indicator+"px",minHeight:g.indicator+"px",borderRadius:"50%",border:(y?"2px":"1px")+" solid "+w,backgroundColor:T,color:I,fontSize:g.fontSize,fontFamily:"inherit",fontWeight:700,lineHeight:1,flexShrink:0,position:"relative",transition:"background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease",cursor:p?"pointer":"default",outline:"none",padding:0,..."small"===d&&{"&::after":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"24px",height:"24px",borderRadius:"50%"}},...p&&{"&:hover":{backgroundColor:A},"&:active":{backgroundColor:z},"&:focus-visible":{outline:"3px solid var(--Focus-Visible)",outlineOffset:"2px"}}},children:k}),E=B?null:r.jsx(t.Box,{className:"step-connector"+(j?" step-connector-completed":"")+(S?" step-connector-incomplete":"")+(m&&S?" step-connector-dashed":""),"aria-hidden":"true",sx:{flex:1,...v?{height:g.connectorThickness+"px",minWidth:"20px",alignSelf:"flex-start",marginTop:g.indicator/2-g.connectorThickness/2+"px",marginLeft:"8px",marginRight:"8px"}:{width:g.connectorThickness+"px",minHeight:"24px",marginLeft:g.indicator/2-g.connectorThickness/2+"px",marginTop:"4px",marginBottom:"4px"},backgroundColor:j?"var(--Buttons-"+b+"-Button)":"var(--Border)",...m&&S&&{backgroundColor:"transparent",backgroundImage:v?"repeating-linear-gradient(90deg, var(--Border) 0px, var(--Border) 6px, transparent 6px, transparent 12px)":"repeating-linear-gradient(180deg, var(--Border) 0px, var(--Border) 6px, transparent 6px, transparent 12px)",backgroundSize:v?"12px 100%":"100% 12px"},transition:"background-color 0.15s ease"}}),L=C?(()=>{const e="small"===d?Kt:Vt;return r.jsx(e,{style:{fontWeight:y?600:400,color:y||j?"var(--Text)":"var(--Quiet)",textAlign:v?"center":"left",whiteSpace:"nowrap",lineHeight:1.3},children:C})})():null;return v?r.jsxs(t.Box,{component:"li",className:"step step-"+d+" step-horizontal"+(y?" step-active":"")+(j?" step-completed":"")+(S?" step-incomplete":"")+" "+i,sx:{display:"flex",alignItems:"center",flex:B?"none":1,...l},...s,children:[r.jsxs(t.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",flexShrink:0},children:[R,L&&r.jsx(t.Box,{sx:{mt:"4px"},children:L})]}),E]}):r.jsxs(t.Box,{component:"li",className:"step step-"+d+" step-vertical"+(y?" step-active":"")+(j?" step-completed":"")+(S?" step-incomplete":"")+" "+i,sx:{display:"flex",flexDirection:"column",alignItems:"flex-start",...l},...s,children:[r.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",gap:"8px"},children:[R,L]}),E]})}const Al=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",zl=[{label:"Default",colors:["default"]},{label:"Theme",colors:["primary","secondary","tertiary","neutral"]},{label:"State",colors:["info","success","warning","error"]}],Rl=["Account","Details","Review","Confirm","Complete","Done"];function El({label:e,selected:t,onClick:o}){return r.jsx(Ur,{selected:t,variant:t?"default":"default-outline",size:"small",onClick:o,children:e})}function Ll({color:e,selected:o,onClick:n}){const i=Al(e);return r.jsx(t.Box,{component:"button",onClick:()=>n(e),"aria-label":"Select "+i,"aria-pressed":o,title:i,sx:{width:"var(--Button-Height)",height:"var(--Button-Height)",borderRadius:"4px",backgroundColor:"var(--Buttons-"+i+"-Button)",border:o?"2px solid var(--Text)":"1px solid var(--Border)",outline:o?"2px solid var(--Focus-Visible)":"2px solid transparent",outlineOffset:"1px",cursor:"pointer",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",transition:"transform 0.1s ease","&:hover":{transform:"scale(1.1)"}},children:o&&r.jsx(a,{sx:{fontSize:16,color:"var(--Buttons-"+i+"-Text)",pointerEvents:"none"}})})}function Pl({actions:o=[],variant:a="solid",color:n="default",direction:i="up",speed:l=50,showTooltips:s=!0,open:c,onOpen:d,onClose:u,icon:x,ariaLabel:p="Speed Dial",className:h="",sx:m={},...f}){const[g,b]=e.useState(!1),v=void 0!==c,y=v?c:g,j=e.useRef(null),S=a,B=e.useCallback(()=>{y?(v||b(!1),u?.()):(v||b(!0),d?.())},[y,v,d,u]),k=e.useCallback((e,t)=>{e.onClick?.(t),v||b(!1),u?.()},[v,u]);e.useEffect(()=>{if(!y)return;const e=e=>{j.current&&!j.current.contains(e.target)&&(v||b(!1),u?.())};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[y,v,u]),e.useEffect(()=>{if(!y)return;const e=e=>{"Escape"===e.key&&(v||b(!1),u?.())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[y,v,u]);const C="up"===i||"down"===i,w="up"===i||"down"===i?"left":"top",T=r.jsx(t.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"transform 0.3s ease",transform:y?"rotate(45deg)":"rotate(0deg)"},children:x||r.jsx(ve,{})});return r.jsxs(t.Box,{ref:j,className:"speed-dial speed-dial-"+a+" speed-dial-"+n+" speed-dial-"+i+" "+h,sx:{position:"relative",display:"inline-flex",overflow:"visible",width:C?"56px":"auto",height:C?"auto":"56px",...m},...f,children:[r.jsx(Ya,{size:"large",variant:S,color:n,onClick:B,"aria-label":p,"aria-expanded":y,"aria-haspopup":"menu",sx:{position:"relative",zIndex:2},children:T}),r.jsx(t.Box,{role:"menu",sx:{position:"absolute",inset:0,pointerEvents:"none",overflow:"visible"},children:o.map((e,o)=>{const a=(e=>{const t=56+44*e;switch(i){case"up":default:return{bottom:t+"px",left:"12px"};case"down":return{top:t+"px",left:"12px"};case"left":return{right:t+"px",top:"12px"};case"right":return{left:t+"px",top:"12px"}}})(o),c=o*l,d=r.jsx(Ya,{size:"small",variant:S,color:n,role:"menuitem","aria-label":e.name||"Action "+(o+1),onClick:()=>k(e,o),sx:{position:"absolute",...a,opacity:y?1:0,transform:y?"scale(1)":"scale(0.3)",transition:"opacity 0.2s ease, transform 0.2s ease",transitionDelay:y?c+"ms":"0ms",pointerEvents:y?"auto":"none"},children:e.icon||r.jsx(ve,{})},e.key||o);return s&&e.name?r.jsx(t.Tooltip,{title:e.name,placement:w,arrow:!0,open:!!y&&void 0,slotProps:{tooltip:{sx:{backgroundColor:"var(--Container)",color:"var(--Text)",fontSize:"12px",fontWeight:500,border:"1px solid var(--Border)",boxShadow:"0 2px 8px rgba(0,0,0,0.12)"}},arrow:{sx:{color:"var(--Container)"}}},children:d},e.key||o):d})})]})}const Ml=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",Ol=[{label:"Default",colors:["default"]},{label:"Theme",colors:["primary","secondary","tertiary","neutral"]},{label:"State",colors:["info","success","warning","error"]}],Dl=[{name:"Edit",icon:r.jsx(dr,{size:"small",sx:{color:"inherit"},children:r.jsx(Qe,{})})},{name:"Share",icon:r.jsx(dr,{size:"small",sx:{color:"inherit"},children:r.jsx(Ge,{})})},{name:"Delete",icon:r.jsx(dr,{size:"small",sx:{color:"inherit"},children:r.jsx(m,{})})},{name:"Favorite",icon:r.jsx(dr,{size:"small",sx:{color:"inherit"},children:r.jsx(p,{})})}];function Wl({label:e,selected:t,onClick:o}){return r.jsx(Ur,{selected:t,variant:t?"default":"default-outline",size:"small",onClick:o,children:e})}function Fl({color:e,selected:o,onClick:n}){const i=Ml(e);return r.jsx(t.Box,{component:"button",onClick:()=>n(e),"aria-label":"Select "+i,"aria-pressed":o,title:i,sx:{width:"var(--Button-Height)",height:"var(--Button-Height)",borderRadius:"4px",backgroundColor:"var(--Buttons-"+i+"-Button)",border:o?"2px solid var(--Text)":"1px solid var(--Border)",outline:o?"2px solid var(--Focus-Visible)":"2px solid transparent",outlineOffset:"1px",cursor:"pointer",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",transition:"transform 0.1s ease","&:hover":{transform:"scale(1.1)"}},children:o&&r.jsx(a,{sx:{fontSize:16,color:"var(--Buttons-"+i+"-Text)",pointerEvents:"none"}})})}const Nl={primary:"Primary",secondary:"Secondary",tertiary:"Tertiary",neutral:"Neutral",black:"BW",white:"BW"};function Hl(e,t){return"var(--"+(Nl[e]||"Primary")+"-Color-"+t+")"}const Vl={primary:{linear:[{family:"primary",tone:8,position:0},{family:"primary",tone:11,position:100}],radial:[{family:"primary",tone:8,position:0},{family:"primary",tone:11,position:100}],mesh:[{family:"primary",tone:8,x:20,y:20,spread:60},{family:"primary",tone:9,x:80,y:30,spread:50},{family:"primary",tone:10,x:50,y:80,spread:55}],meshCard:[{family:"primary",tone:3,x:10,y:10,spread:60},{family:"primary",tone:6,x:80,y:20,spread:50},{family:"primary",tone:9,x:40,y:80,spread:55}]},secondary:{linear:[{family:"secondary",tone:7,position:0},{family:"secondary",tone:10,position:100}],radial:[{family:"secondary",tone:7,position:0},{family:"secondary",tone:10,position:100}],mesh:[{family:"secondary",tone:7,x:15,y:25,spread:55},{family:"secondary",tone:9,x:75,y:35,spread:50},{family:"secondary",tone:11,x:45,y:75,spread:60}],meshCard:[{family:"secondary",tone:2,x:15,y:15,spread:55},{family:"secondary",tone:5,x:85,y:25,spread:50},{family:"secondary",tone:8,x:50,y:75,spread:60}]},tertiary:{linear:[{family:"tertiary",tone:8,position:0},{family:"tertiary",tone:11,position:100}],radial:[{family:"tertiary",tone:8,position:0},{family:"tertiary",tone:11,position:100}],mesh:[{family:"tertiary",tone:8,x:25,y:15,spread:55},{family:"tertiary",tone:10,x:70,y:40,spread:50},{family:"tertiary",tone:11,x:40,y:85,spread:55}],meshCard:[{family:"tertiary",tone:3,x:20,y:10,spread:60},{family:"tertiary",tone:7,x:75,y:30,spread:50},{family:"tertiary",tone:10,x:45,y:80,spread:55}]},black:{linear:[{family:"black",tone:10,position:0},{family:"neutral",tone:3,position:100}],radial:[{family:"black",tone:10,position:0},{family:"neutral",tone:3,position:100}],mesh:[{family:"black",tone:10,x:0,y:0,spread:100},{family:"primary",tone:3,x:25,y:25,spread:50},{family:"secondary",tone:4,x:75,y:35,spread:45},{family:"tertiary",tone:3,x:50,y:80,spread:50}],meshCard:[{family:"black",tone:11,x:0,y:0,spread:100},{family:"primary",tone:5,x:20,y:20,spread:55},{family:"secondary",tone:8,x:80,y:30,spread:45},{family:"tertiary",tone:10,x:45,y:80,spread:50}]},white:{linear:[{family:"white",tone:2,position:0},{family:"neutral",tone:9,position:100}],radial:[{family:"white",tone:2,position:0},{family:"neutral",tone:9,position:100}],mesh:[{family:"white",tone:2,x:0,y:0,spread:100},{family:"primary",tone:9,x:25,y:25,spread:50},{family:"secondary",tone:8,x:75,y:35,spread:45},{family:"tertiary",tone:9,x:50,y:80,spread:50}],meshCard:[{family:"white",tone:1,x:0,y:0,spread:100},{family:"primary",tone:4,x:20,y:20,spread:55},{family:"secondary",tone:7,x:80,y:30,spread:45},{family:"tertiary",tone:10,x:45,y:80,spread:50}]}};function Ql(e,t){const r=Vl[e]||Vl.primary;return(r[t]||r.linear).map(e=>({...e}))}function Gl({variant:e="linear",color:o="primary",angle:a=135,stops:n=null,position:i=null,blobs:l=null,cardProps:s={},minHeight:c=300,children:d,className:u="",sx:x={},...p}){const h="meshCard"===e,m="mesh"===e||h,f="radial"===e,g="linear"===e||f,b=n||Ql(o,f?"radial":"linear"),v=l||Ql(o,h?"meshCard":"mesh"),y=m?function(e){if(!e||0===e.length)return"none";const t=e.map(e=>{const t=Hl(e.family,e.tone),r=e.spread||40;return"radial-gradient(circle at "+e.x+"% "+e.y+"%, "+t+" 0%, transparent "+r+"%)"}),r=Hl(e[0].family,e[0].tone);return t.push(r),t.join(", ")}(v):f?function(e,t){if(!e||0===e.length)return"none";const r=[...e].sort((e,t)=>e.position-t.position).map(e=>Hl(e.family,e.tone)+" "+e.position+"%"),o=t||{x:50,y:50};return"radial-gradient(circle at "+o.x+"% "+o.y+"%, "+r.join(", ")+")"}(b,i||{x:50,y:50}):function(e,t){return e&&0!==e.length?"linear-gradient("+t+"deg, "+[...e].sort((e,t)=>e.position-t.position).map(e=>Hl(e.family,e.tone)+" "+e.position+"%").join(", ")+")":"none"}(b,a),j=g?b[0]:v[0];var S,B;const k=function(e){return"dark"===e?"var(--BW-Color-1)":"var(--BW-Color-6)"}((S=j?.tone||8,"black"===(B=j?.family||"primary")||"white"===B?S<=5?"light":"dark":S<=5?"dark":"light"));return h?r.jsx(t.Box,{className:"gradient gradient-mesh-card "+u,sx:{background:y,minHeight:c,borderRadius:"var(--Card-Radius)",display:"flex",alignItems:"center",justifyContent:"center",padding:"var(--Card-Padding)",position:"relative",overflow:"hidden",...x},...p,children:r.jsx(Qa,{variant:"solid",...s,children:r.jsx(Ga,{children:d})})}):r.jsx(t.Box,{className:"gradient gradient-"+e+" "+u,sx:{background:y,minHeight:c,borderRadius:"var(--Card-Radius)",color:k,display:"flex",alignItems:"center",justifyContent:"center",position:"relative",overflow:"hidden",...x},...p,children:d})}["default","primary","secondary","tertiary","neutral"].map(e=>{return{value:e,label:(t=e,t?t.charAt(0).toUpperCase()+t.slice(1):"")};var t});const ql=e.createContext(null),Ul=["Default","Primary-Light","Primary","Secondary-Light","Secondary","Tertiary-Light","Tertiary","Neutral-Light","Neutral","Error-Light","Success-Light","Warning-Light","Info-Light","Primary-Dark","Secondary-Dark","Tertiary-Dark","Neutral-Dark","Error-Dark","Success-Dark","Warning-Dark","Info-Dark","App-Bar","Nav-Bar","Status"],Xl=["Professional","Modern","Bold","Playful"],Kl=["Surface-Dimmest","Surface-Dim","Surface","Surface-Bright","Surface-Brightest","Container","Container-Low","Container-Lowest","Container-High","Container-Highest"],Jl={"light-tonal":{theme:"Primary-Light",rootSurface:"Surface-Dim"},"grey-professional":{theme:"Neutral",rootSurface:"Surface"},"dark-professional":{theme:"Neutral-Dark",rootSurface:"Surface"}},Yl="omni-foundation",Zl="omni-core",$l="omni-typography",_l="omni-mode",es="omni-base",ts="omni-styles";function rs(e){document.getElementById(e)?.remove()}function os(e,t,r){return t?function(e){return!(!e||"string"!=typeof e)&&(e.startsWith("http")||e.startsWith("/")||e.endsWith(".css"))}(t)?function(e,t,r){const o=document.getElementById(e);return o?"LINK"===o.tagName&&o.getAttribute("href")!==t?new Promise((e,r)=>{o.onload=()=>e(o),o.onerror=()=>r(new Error(`OmniDesignProvider: failed to load ${t}`)),o.setAttribute("href",t)}):Promise.resolve(o):new Promise((o,a)=>{const n=document.createElement("link");n.id=e,n.rel="stylesheet",n.setAttribute("data-omni","true"),n.onload=()=>o(n),n.onerror=()=>a(new Error(`OmniDesignProvider: failed to load ${t}`)),n.href=t;const i=r?document.getElementById(r):null;i?document.head.insertBefore(n,i):document.head.appendChild(n)})}(e,t,r):function(e,t,r){if(!t)return Promise.resolve(null);const o=document.getElementById(e);if(o)return o.textContent=t,Promise.resolve(o);const a=document.createElement("style");a.id=e,a.setAttribute("data-omni","true"),a.textContent=t;const n=r?document.getElementById(r):null;return n?document.head.insertBefore(a,n):document.head.appendChild(a),Promise.resolve(a)}(e,t,r):Promise.resolve(null)}function as(){const t=e.useContext(ql);if(!t)throw new Error("useOmniDesign must be used inside a <OmniDesignProvider>");return t}const ns=o=>e.forwardRef(function(e,a){return r.jsx(t.Slide,{direction:o,ref:a,...e})}),is={fade:e.forwardRef(function(e,o){return r.jsx(t.Fade,{ref:o,...e})}),grow:e.forwardRef(function(e,o){return r.jsx(t.Grow,{ref:o,...e})}),zoom:e.forwardRef(function(e,o){return r.jsx(t.Zoom,{ref:o,...e})}),"slide-up":ns("up"),"slide-down":ns("down"),"slide-left":ns("left"),"slide-right":ns("right")},ls={backgroundColor:"var(--Background)",color:"var(--Text)",border:"1px solid var(--Border)",borderRadius:"var(--Style-Border-Radius)",boxShadow:"0 8px 32px rgba(0,0,0,0.18)"},ss={color:"var(--Text)",fontWeight:600,fontSize:"18px",fontFamily:"inherit",borderBottom:"1px solid var(--Border)",display:"flex",justifyContent:"space-between",alignItems:"center",py:1.5,px:3},cs={color:"var(--Text)",fontFamily:"inherit",fontSize:"14px",lineHeight:1.6,py:3,px:3},ds={borderTop:"1px solid var(--Border)",px:3,py:1.5,gap:1},us={fontFamily:"inherit",fontWeight:500,fontSize:"14px",borderRadius:"var(--Style-Border-Radius)",padding:"6px 16px",cursor:"pointer",border:"none",transition:"background-color 0.15s, color 0.15s","&:focus-visible":{outline:"3px solid var(--Focus-Visible)",outlineOffset:"1px"}},xs={primary:{...us,backgroundColor:"var(--Buttons-Primary-Button)",color:"var(--Buttons-Primary-Text)",border:"1px solid var(--Buttons-Primary-Border)","&:hover":{backgroundColor:"var(--Buttons-Primary-Hover)"}},outline:{...us,backgroundColor:"transparent",color:"var(--Text)",border:"1px solid var(--Border)","&:hover":{backgroundColor:"var(--Hover)"}}};function ps({open:e=!1,onClose:o,title:a,children:n,actions:i,maxWidth:l="sm",fullScreen:s=!1,scroll:c="body",alert:d=!1,nonModal:u=!1,transition:x,transitionDuration:p=300,titleId:h="dialog-title",contentId:m="dialog-description",className:f="",sx:g={},PaperProps:b={},...v}){const y=x?is[x]:void 0;let j;try{j=as()}catch{j=null}const S=j?.theme||"Default",B=j?.style||"Modern",k=j?.surface||"Surface";return r.jsxs(t.Dialog,{open:e,onClose:(e,t)=>{d&&"backdropClick"===t||d&&"escapeKeyDown"===t||o?.(e,t)},maxWidth:!s&&l,fullScreen:s,fullWidth:!s,scroll:c,hideBackdrop:u,disableEnforceFocus:u,disableEscapeKeyDown:d,TransitionComponent:y,transitionDuration:p,"aria-labelledby":h,"aria-describedby":m,className:"dialog dialog-"+l+(s?" dialog-fullscreen":"")+(d?" dialog-alert":"")+(f?" "+f:""),style:{zIndex:1e7},slotProps:{backdrop:{sx:{backgroundColor:u?"transparent":"rgba(0,0,0,0.5)"}}},PaperProps:{...b,"data-theme":S,"data-style":B,"data-surface":k,sx:{...ls,...s&&{borderRadius:0,border:"none"},...b.sx},role:d?"alertdialog":"dialog"},...v,children:[a&&r.jsxs(t.DialogTitle,{id:h,sx:ss,children:[a,!d&&o&&r.jsx(t.IconButton,{"aria-label":"Close dialog",onClick:e=>o(e,"closeButton"),size:"small",sx:{color:"var(--Text-Quiet)","&:hover":{backgroundColor:"var(--Hover)"}},children:r.jsx(Se,{fontSize:"small"})})]}),r.jsx(t.DialogContent,{dividers:"paper"===c,sx:{...cs,..."paper"===c&&{maxHeight:s?"none":"400px",overflowY:"auto",borderColor:"var(--Border)"}},children:d?r.jsx(t.DialogContentText,{id:m,sx:{color:"var(--Text)",fontFamily:"inherit",fontSize:"14px",lineHeight:1.6},children:n}):r.jsx(t.Box,{id:m,children:n})}),i&&r.jsx(t.DialogActions,{sx:ds,children:i})]})}function hs({label:e,selected:t,onClick:o}){return r.jsx(Ur,{selected:t,variant:t?"default":"default-outline",size:"small",onClick:o,children:e})}const ms={primary:"Primary",secondary:"Secondary",tertiary:"Tertiary",neutral:"Neutral",info:"Info-Medium",success:"Success-Medium",warning:"Warning-Medium",error:"Error-Medium"},fs={primary:"Primary-Light",secondary:"Secondary-Light",tertiary:"Tertiary-Light",neutral:"Neutral-Light",info:"Info-Light",success:"Success-Light",warning:"Warning-Light",error:"Error-Light"},gs={small:{maxWidth:400,padding:"24px"},medium:{maxWidth:560,padding:"32px"},large:{maxWidth:720,padding:"40px"}},bs={fade:{enter:{from:{opacity:0},to:{opacity:1}},name:"modal-fade"},"slide-up":{enter:{from:{opacity:0,transform:"translateY(40px)"},to:{opacity:1,transform:"translateY(0)"}},name:"modal-slide-up"},"slide-down":{enter:{from:{opacity:0,transform:"translateY(-40px)"},to:{opacity:1,transform:"translateY(0)"}},name:"modal-slide-down"},zoom:{enter:{from:{opacity:0,transform:"scale(0.85)"},to:{opacity:1,transform:"scale(1)"}},name:"modal-zoom"}};function vs(e){const t=bs[e];if(!t)return"";const{from:r,to:o}=t.enter,a=Object.entries(r).map(([e,t])=>e+":"+t).join(";"),n=Object.entries(o).map(([e,t])=>e+":"+t).join(";");return"@keyframes "+t.name+" { from {"+a+"} to {"+n+"} }@keyframes "+t.name+"-backdrop { from { opacity: 0 } to { opacity: 1 } }"}const ys={small:{width:"240px",height:"200px"},medium:{width:"320px",height:"280px"},large:{width:"420px",height:"380px"}},js={left:{borderRight:"1px solid var(--Border)"},right:{borderLeft:"1px solid var(--Border)"},top:{borderBottom:"1px solid var(--Border)"},bottom:{borderTop:"1px solid var(--Border)"}},Ss={left:{top:0,left:0,bottom:0},right:{top:0,right:0,bottom:0},top:{top:0,left:0,right:0},bottom:{bottom:0,left:0,right:0}},Bs={left:"translateX(-100%)",right:"translateX(100%)",top:"translateY(-100%)",bottom:"translateY(100%)"};function ks({children:o,open:a=!1,onClose:n,size:i="medium",anchor:l="left",hideBackdrop:s=!1,className:c="",sx:d={},...u}){const x=e.useRef(null),p=e.useRef(null),h="left"===l||"right"===l;let m;try{m=as()}catch{m=null}const f=m?.theme||"Default",g=m?.style||"Modern",b=ys[i]||ys.medium;e.useEffect(()=>{if(!a)return;const e=e=>{"Escape"===e.key&&n?.()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[a,n]),e.useEffect(()=>{a?(p.current=document.activeElement,requestAnimationFrame(()=>{const e=x.current?.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');e?e.focus():x.current?.focus()})):p.current&&(p.current.focus(),p.current=null)},[a]),e.useEffect(()=>{if(a){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[a]);const v=e.useCallback(e=>{if("Tab"!==e.key||!x.current)return;const t=x.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(!t.length)return;const r=t[0],o=t[t.length-1];e.shiftKey?document.activeElement===r&&(e.preventDefault(),o.focus()):document.activeElement===o&&(e.preventDefault(),r.focus())},[]);return a?r.jsxs(r.Fragment,{children:[!s&&r.jsx(t.Box,{onClick:()=>n?.(),"aria-hidden":"true",sx:{position:"fixed",inset:0,zIndex:1e7,backgroundColor:"rgba(0, 0, 0, 0.5)",transition:"opacity 0.3s ease"}}),r.jsx(t.Box,{ref:x,role:"dialog","aria-modal":"true",tabIndex:-1,"data-theme":f,"data-style":g,"data-surface":"Surface-Dim",onKeyDown:v,className:"drawer drawer-"+i+" drawer-"+l+" "+c,sx:{position:"fixed",zIndex:10000001,...Ss[l],...h?{width:b.width,height:"100%"}:{height:b.height,width:"100%"},backgroundColor:"var(--Background)",color:"var(--Text)",...js[l],boxShadow:Tr,display:"flex",flexDirection:"column",outline:"none",overflow:"hidden",animation:"drawer-slide-in 0.3s ease forwards","@keyframes drawer-slide-in":{from:{transform:Bs[l]},to:{transform:"translate(0, 0)"}},...d},...u,children:o})]}):null}function Cs({onClick:e,className:o="",sx:a={},...n}){return r.jsx(t.Box,{sx:{position:"absolute",top:"12px",right:"12px",zIndex:1,...a},className:o,...n,children:r.jsx(Ur,{iconOnly:!0,variant:"ghost",size:"small",onClick:e,"aria-label":"Close drawer",children:r.jsx(dr,{size:"small",children:r.jsx(Se,{})})})})}function ws({children:e,className:o="",sx:a={},...n}){return r.jsx(t.Box,{className:"drawer-header "+o,sx:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px",borderBottom:"1px solid var(--Border)",flexShrink:0,...a},...n,children:e})}function Ts({children:e,className:o="",sx:a={},...n}){return r.jsx(t.Box,{className:"drawer-content "+o,sx:{flex:1,overflowY:"auto",padding:"16px",...a},...n,children:e})}function Is(){return Is=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Is.apply(null,arguments)}const As={};function zs(e,t){const r=ct.useRef(As);return r.current===As&&(r.current=e(t)),r}function Rs(e,t,r,o){const a=zs(Es).current;return function(e,t,r,o,a){return e.refs[0]!==t||e.refs[1]!==r||e.refs[2]!==o||e.refs[3]!==a}(a,e,t,r,o)&&function(e,t){if(e.refs=t,t.every(e=>null==e))return void(e.callback=null);e.callback=r=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=r){const o=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){const a=t[e];if(null!=a)switch(typeof a){case"function":{const t=a(r);"function"==typeof t&&(o[e]=t);break}case"object":a.current=r}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){const r=t[e];if(null!=r)switch(typeof r){case"function":{const t=o[e];"function"==typeof t?t():r(null);break}case"object":r.current=null}}}}}}(a,[e,t,r,o]),a.callback}function Es(){return{callback:null,cleanup:null,refs:[]}}function Ls(e,t,r=void 0){const o={};for(const a in e){const n=e[a];let i="",l=!0;for(let e=0;e<n.length;e+=1){const o=n[e];o&&(i+=(!0===l?"":" ")+t(o),l=!1,r&&r[o]&&(i+=" "+r[o]))}o[a]=i}return o}function Ps(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=Ps(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function Ms(){for(var e,t,r=0,o="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=Ps(e))&&(o&&(o+=" "),o+=t);return o}function Os(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r)).forEach(t=>{r[t]=e[t]}),r}function Ds(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(r=>{t[r]=e[r]}),t}function Ws(e,t,r){return"function"==typeof e?e(t,r):e}function Fs(e){const{elementType:t,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:a=!1,...n}=e,i=a?{}:Ws(r,o),{props:l,internalRef:s}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:o,externalForwardedProps:a,className:n}=e;if(!t){const e=Ms(r?.className,n,a?.className,o?.className),t={...r?.style,...a?.style,...o?.style},i={...r,...a,...o};return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}const i=Os({...a,...o}),l=Ds(o),s=Ds(a),c=t(i),d=Ms(c?.className,r?.className,n,a?.className,o?.className),u={...c?.style,...r?.style,...a?.style,...o?.style},x={...c,...r,...s,...l};return d.length>0&&(x.className=d),Object.keys(u).length>0&&(x.style=u),{props:x,internalRef:c.ref}}({...n,externalSlotProps:i}),c=function(e,t,r){return void 0===e||"string"==typeof e?t:{...t,ownerState:{...t.ownerState,...r}}}(t,{...l,ref:function(...e){const t=ct.useRef(void 0),r=ct.useCallback(t=>{const r=e.map(e=>{if(null==e)return null;if("function"==typeof e){const r=e,o=r(t);return"function"==typeof o?o:()=>{r(null)}}return e.current=t,()=>{e.current=null}});return()=>{r.forEach(e=>e?.())}},e);return ct.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=r(e))},e)}(s,i?.ref,e.additionalProps?.ref)},o);return c}const Ns=new Set;function Hs(e,t="warning"){if("production"===process.env.NODE_ENV)return;const r=Array.isArray(e)?e.join("\n"):e;Ns.has(r)||(Ns.add(r),"error"===t?console.error(r):console.warn(r))}function Vs(e){return qe.useThemeProps}const Qs=e=>e,Gs=(()=>{let e=Qs;return{configure(t){e=t},generate:t=>e(t),reset(){e=Qs}}})(),qs={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Us(e,t,r="Mui"){const o=qs[t];return o?`${r}-${o}`:`${Gs.generate(e)}-${t}`}function Xs(e,t,r="Mui"){const o={};return t.forEach(t=>{o[t]=Us(e,t,r)}),o}function Ks(e){return Us("MuiSimpleTreeView",e)}Xs("MuiSimpleTreeView",["root","item","itemContent","itemGroupTransition","itemIconContainer","itemLabel","itemCheckbox"]);const Js=Object.freeze([]),Ys=Object.freeze({}),Zs=ct.createContext(null);"production"!==process.env.NODE_ENV&&(Zs.displayName="TreeViewContext");const $s=()=>{const e=ct.useContext(Zs);if(null==e)throw new Error(["MUI X: Could not find the Tree View context.","It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.","This can also happen if you are bundling multiple versions of the Tree View."].join("\n"));return e},_s=ct.createContext({classes:{},slots:{},slotProps:{}});"production"!==process.env.NODE_ENV&&(_s.displayName="TreeViewStyleContext");const ec=()=>ct.useContext(_s);function tc(e){const{store:t,apiRef:o,rootRef:a,classes:n=Ys,slots:i=Ys,slotProps:l=Ys,children:s}=e,c=(e=>{const{store:t,apiRef:r,rootRef:o}=e,a=zs(()=>t.buildPublicAPI()).current;!function(e,t){null!=t&&null==t.current&&(t.current=e)}(a,r);const n=ct.useCallback(e=>{let r=null,o=null;const a=[],n={};t.itemPluginManager.listPlugins().forEach(t=>{const i=t({props:e,rootRef:r,contentRef:o});i?.rootRef&&(r=i.rootRef),i?.contentRef&&(o=i.contentRef),i?.propsEnhancers&&(a.push(i.propsEnhancers),Object.keys(i.propsEnhancers).forEach(e=>{n[e]=!0}))});const i=Object.fromEntries(Object.keys(n).map(e=>{return[e,(t=e,e=>{const r={};return a.forEach(o=>{const a=o[t];null!=a&&Object.assign(r,a(e))}),r})];var t}));return{contentRef:o,rootRef:r,propsEnhancers:i}},[t]),i=ct.useCallback(({itemId:e,children:r,idAttribute:o})=>{let a=r;const n=t.itemPluginManager.listWrappers();for(let r=n.length-1;r>=0;r-=1)a=(0,n[r])({store:t,itemId:e,children:a,idAttribute:o});return a},[t]);return ct.useMemo(()=>({runItemPlugins:n,wrapItem:i,publicAPI:a,store:t,rootRef:o}),[n,i,a,t,o])})({store:t,apiRef:o,rootRef:a}),d=ct.useMemo(()=>({classes:n,slots:{collapseIcon:i.collapseIcon,expandIcon:i.expandIcon,endIcon:i.endIcon},slotProps:{collapseIcon:l.collapseIcon,expandIcon:l.expandIcon,endIcon:l.endIcon}}),[n,i.collapseIcon,i.expandIcon,i.endIcon,l.collapseIcon,l.expandIcon,l.endIcon]);return r.jsx(Zs.Provider,{value:c,children:r.jsx(_s.Provider,{value:d,children:s})})}function rc(e,t){if(null==e)return{};var r={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;r[o]=e[o]}return r}const oc=["apiRef","slots","slotProps","disabledItemsFocusable","onItemClick","itemChildrenIndentation","id","expandedItems","defaultExpandedItems","onExpandedItemsChange","onItemExpansionToggle","expansionTrigger","disableSelection","selectedItems","defaultSelectedItems","multiSelect","checkboxSelection","selectionPropagation","onSelectedItemsChange","onItemSelectionToggle","onItemFocus"];var ac=(e,t,r)=>{if(1===t.length&&t[0]===r){let t=!1;try{const r={};e(r)===r&&(t=!0)}catch{}if(t){let e;try{throw new Error}catch(t){({stack:e}=t)}console.warn("The result function returned its own inputs without modification. e.g\n`createSelector([state => state.todos], todos => todos)`\nThis could lead to inefficient memoization and unnecessary re-renders.\nEnsure transformation logic is in the result function, and extraction logic is in the input selectors.",{stack:e})}}},nc=(e,t,r)=>{const{memoize:o,memoizeOptions:a}=t,{inputSelectorResults:n,inputSelectorResultsCopy:i}=e,l=o(()=>({}),...a);if(!(l.apply(null,n)===l.apply(null,i))){let e;try{throw new Error}catch(t){({stack:e}=t)}console.warn("An input selector returned a different result when passed same arguments.\nThis means your output selector will likely run more frequently than intended.\nAvoid returning a new reference inside your input selector, e.g.\n`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)`",{arguments:r,firstInputs:n,secondInputs:i,stack:e})}},ic={inputStabilityCheck:"once",identityFunctionCheck:"once"},lc=Symbol("NOT_FOUND");var sc=e=>Array.isArray(e)?e:[e];function cc(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){const r=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw new TypeError(`${t}[${r}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function dc(e,t){const r=[],{length:o}=e;for(let a=0;a<o;a++)r.push(e[a].apply(null,t));return r}var uc=(e,t)=>e===t;var xc="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function pc(){return{s:0,v:void 0,o:null,p:null}}function hc(e,t={}){let r={s:0,v:void 0,o:null,p:null};const{resultEqualityCheck:o}=t;let a,n=0;function i(){let t=r;const{length:i}=arguments;for(let e=0,r=i;e<r;e++){const r=arguments[e];if("function"==typeof r||"object"==typeof r&&null!==r){let e=t.o;null===e&&(t.o=e=new WeakMap);const o=e.get(r);void 0===o?(t=pc(),e.set(r,t)):t=o}else{let e=t.p;null===e&&(t.p=e=new Map);const o=e.get(r);void 0===o?(t=pc(),e.set(r,t)):t=o}}const l=t;let s;if(1===t.s)s=t.v;else if(s=e.apply(null,arguments),n++,o){const e=a?.deref?.()??a;null!=e&&o(e,s)&&(s=e,0!==n&&n--);a="object"==typeof s&&null!==s||"function"==typeof s?new xc(s):s}return l.s=1,l.v=s,s}return i.clearCache=()=>{r={s:0,v:void 0,o:null,p:null},i.resetResultsCount()},i.resultsCount=()=>n,i.resetResultsCount=()=>{n=0},i}function mc(e,...t){const r="function"==typeof e?{memoize:e,memoizeOptions:t}:e,o=(...e)=>{let t,o=0,a=0,n={},i=e.pop();"object"==typeof i&&(n=i,i=e.pop()),function(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);const l={...r,...n},{memoize:s,memoizeOptions:c=[],argsMemoize:d=hc,argsMemoizeOptions:u=[],devModeChecks:x={}}=l,p=sc(c),h=sc(u),m=cc(e),f=s(function(){return o++,i.apply(null,arguments)},...p);let g=!0;const b=d(function(){a++;const e=dc(m,arguments);if(t=f.apply(null,e),"production"!==process.env.NODE_ENV){const{identityFunctionCheck:r,inputStabilityCheck:o}=((e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:o}={...ic,...t};return{identityFunctionCheck:{shouldRun:"always"===r||"once"===r&&e,run:ac},inputStabilityCheck:{shouldRun:"always"===o||"once"===o&&e,run:nc}}})(g,x);if(r.shouldRun&&r.run(i,e,t),o.shouldRun){const t=dc(m,arguments);o.run({inputSelectorResults:e,inputSelectorResultsCopy:t},{memoize:s,memoizeOptions:p},arguments)}g&&(g=!1)}return t},...h);return Object.assign(b,{resultFunc:i,memoizedResultFunc:f,dependencies:m,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>t,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:s,argsMemoize:d})};return Object.assign(o,{withTypes:()=>o}),o}var fc=mc(hc),gc=Object.assign((e,t=fc)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const r=Object.keys(e),o=t(r.map(t=>e[t]),(...e)=>e.reduce((e,t,o)=>(e[r[o]]=t,e),{}));return o},{withTypes:()=>gc});const bc=mc({memoize:function(e,t){const r="object"==typeof t?t:{equalityCheck:t},{equalityCheck:o=uc,maxSize:a=1,resultEqualityCheck:n}=r,i=function(e){return function(t,r){if(null===t||null===r||t.length!==r.length)return!1;const{length:o}=t;for(let a=0;a<o;a++)if(!e(t[a],r[a]))return!1;return!0}}(o);let l=0;const s=a<=1?function(e){let t;return{get:r=>t&&e(t.key,r)?t.value:lc,put(e,r){t={key:e,value:r}},getEntries:()=>t?[t]:[],clear(){t=void 0}}}(i):function(e,t){let r=[];function o(e){const o=r.findIndex(r=>t(e,r.key));if(o>-1){const e=r[o];return o>0&&(r.splice(o,1),r.unshift(e)),e.value}return lc}return{get:o,put:function(t,a){o(t)===lc&&(r.unshift({key:t,value:a}),r.length>e&&r.pop())},getEntries:function(){return r},clear:function(){r=[]}}}(a,i);function c(){let t=s.get(arguments);if(t===lc){if(t=e.apply(null,arguments),l++,n){const e=s.getEntries().find(e=>n(e.value,t));e&&(t=e.value,0!==l&&l--)}s.put(arguments,t)}return t}return c.clearCache=()=>{s.clear(),c.resetResultsCount()},c.resultsCount=()=>l,c.resetResultsCount=()=>{l=0},c},memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),vc=(e,t,r,o,a,n,i,l,...s)=>{if(s.length>0)throw new Error("Unsupported number of selectors");let c;if(e&&t&&r&&o&&a&&n&&i&&l)c=(s,c,d,u)=>{const x=e(s,c,d,u),p=t(s,c,d,u),h=r(s,c,d,u),m=o(s,c,d,u),f=a(s,c,d,u),g=n(s,c,d,u),b=i(s,c,d,u);return l(x,p,h,m,f,g,b,c,d,u)};else if(e&&t&&r&&o&&a&&n&&i)c=(l,s,c,d)=>{const u=e(l,s,c,d),x=t(l,s,c,d),p=r(l,s,c,d),h=o(l,s,c,d),m=a(l,s,c,d),f=n(l,s,c,d);return i(u,x,p,h,m,f,s,c,d)};else if(e&&t&&r&&o&&a&&n)c=(i,l,s,c)=>{const d=e(i,l,s,c),u=t(i,l,s,c),x=r(i,l,s,c),p=o(i,l,s,c),h=a(i,l,s,c);return n(d,u,x,p,h,l,s,c)};else if(e&&t&&r&&o&&a)c=(n,i,l,s)=>{const c=e(n,i,l,s),d=t(n,i,l,s),u=r(n,i,l,s),x=o(n,i,l,s);return a(c,d,u,x,i,l,s)};else if(e&&t&&r&&o)c=(a,n,i,l)=>{const s=e(a,n,i,l),c=t(a,n,i,l),d=r(a,n,i,l);return o(s,c,d,n,i,l)};else if(e&&t&&r)c=(o,a,n,i)=>{const l=e(o,a,n,i),s=t(o,a,n,i);return r(l,s,a,n,i)};else if(e&&t)c=(r,o,a,n)=>{const i=e(r,o,a,n);return t(i,o,a,n)};else{if(!e)throw new Error("Missing arguments");c=e}return c},yc=(...e)=>{const t=new WeakMap;let r=1;const o=e[e.length-1],a=e.length-1||1,n=Math.max(o.length-a,0);if(n>3)throw new Error("Unsupported number of arguments");return(a,i,l,s)=>{let c=a.__cacheKey__;c||(c={id:r},a.__cacheKey__=c,r+=1);let d=t.get(c);if(!d){const r=1===e.length?[e=>e,o]:e;let a=e;const i=[void 0,void 0,void 0];switch(n){case 0:break;case 1:a=[...r.slice(0,-1),()=>i[0],o];break;case 2:a=[...r.slice(0,-1),()=>i[0],()=>i[1],o];break;case 3:a=[...r.slice(0,-1),()=>i[0],()=>i[1],()=>i[2],o];break;default:throw new Error("Unsupported number of arguments")}d=bc(...a),d.selectorArgs=i,t.set(c,d)}switch(n){case 3:d.selectorArgs[2]=s;case 2:d.selectorArgs[1]=l;case 1:d.selectorArgs[0]=i}switch(n){case 0:return d(a);case 1:return d(a,i);case 2:return d(a,i,l);case 3:return d(a,i,l,s);default:throw new Error("unreachable")}}};var jc,Sc={exports:{}},Bc={};var kc,Cc={};
15
+ /**
16
+ * @license React
17
+ * use-sync-external-store-shim.development.js
18
+ *
19
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
20
+ *
21
+ * This source code is licensed under the MIT license found in the
22
+ * LICENSE file in the root directory of this source tree.
23
+ */"production"===process.env.NODE_ENV?Sc.exports=function(){if(jc)return Bc;jc=1;var t=e,r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=t.useState,a=t.useEffect,n=t.useLayoutEffect,i=t.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!r(e,o)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),s=o({inst:{value:r,getSnapshot:t}}),c=s[0].inst,d=s[1];return n(function(){c.value=r,c.getSnapshot=t,l(c)&&d({inst:c})},[e,r,t]),a(function(){return l(c)&&d({inst:c}),e(function(){l(c)&&d({inst:c})})},[e]),i(r),r};return Bc.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:s,Bc}():Sc.exports=(kc||(kc=1,"production"!==process.env.NODE_ENV&&function(){function t(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!o(e,r)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var r=e,o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,n=r.useEffect,i=r.useLayoutEffect,l=r.useDebugValue,s=!1,c=!1,d="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,d){s||void 0===r.startTransition||(s=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var u=d();if(!c){var x=d();o(u,x)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var p=(x=a({inst:{value:u,getSnapshot:d}}))[0].inst,h=x[1];return i(function(){p.value=u,p.getSnapshot=d,t(p)&&h({inst:p})},[e,u,d]),n(function(){return t(p)&&h({inst:p}),e(function(){t(p)&&h({inst:p})})},[e]),l(u),u};Cc.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:d,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Cc);var wc,Tc=Sc.exports,Ic={exports:{}},Ac={};var zc,Rc={};
24
+ /**
25
+ * @license React
26
+ * use-sync-external-store-shim/with-selector.development.js
27
+ *
28
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
29
+ *
30
+ * This source code is licensed under the MIT license found in the
31
+ * LICENSE file in the root directory of this source tree.
32
+ */"production"===process.env.NODE_ENV?Ic.exports=function(){if(wc)return Ac;wc=1;var t=e,r=Tc,o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useSyncExternalStore,n=t.useRef,i=t.useEffect,l=t.useMemo,s=t.useDebugValue;return Ac.useSyncExternalStoreWithSelector=function(e,t,r,c,d){var u=n(null);if(null===u.current){var x={hasValue:!1,value:null};u.current=x}else x=u.current;u=l(function(){function e(e){if(!i){if(i=!0,a=e,e=c(e),void 0!==d&&x.hasValue){var t=x.value;if(d(t,e))return n=t}return n=e}if(t=n,o(a,e))return t;var r=c(e);return void 0!==d&&d(t,r)?(a=e,t):(a=e,n=r)}var a,n,i=!1,l=void 0===r?null:r;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,r,c,d]);var p=a(e,u[0],u[1]);return i(function(){x.hasValue=!0,x.value=p},[p]),s(p),p},Ac}():Ic.exports=(zc||(zc=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=e,r=Tc,o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useSyncExternalStore,n=t.useRef,i=t.useEffect,l=t.useMemo,s=t.useDebugValue;Rc.useSyncExternalStoreWithSelector=function(e,t,r,c,d){var u=n(null);if(null===u.current){var x={hasValue:!1,value:null};u.current=x}else x=u.current;u=l(function(){function e(e){if(!i){if(i=!0,a=e,e=c(e),void 0!==d&&x.hasValue){var t=x.value;if(d(t,e))return n=t}return n=e}if(t=n,o(a,e))return t;var r=c(e);return void 0!==d&&d(t,r)?(a=e,t):(a=e,n=r)}var a,n,i=!1,l=void 0===r?null:r;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,r,c,d]);var p=a(e,u[0],u[1]);return i(function(){x.hasValue=!0,x.value=p},[p]),s(p),p},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Rc);var Ec=Ic.exports;const Lc=parseInt(ct.version,10)>=19?function(e,t,r,o,a){const n=ct.useCallback(()=>t(e.getSnapshot(),r,o,a),[e,t,r,o,a]);return Tc.useSyncExternalStore(e.subscribe,n,n)}:function(e,t,r,o,a){return Ec.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,r,o,a))};function Pc(e,t,r,o,a){return Lc(e,t,r,o,a)}class Mc{static create(e){return new Mc(e)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){this.state=e,this.updateTick+=1;const t=this.updateTick,r=this.listeners.values();let o;for(;o=r.next(),!o.done;){if(t!==this.updateTick)return;(0,o.value)(e)}}update(e){for(const t in e)if(!Object.is(this.state[t],e[t]))return void this.setState(Is({},this.state,e))}set(e,t){Object.is(this.state[e],t)||this.setState(Is({},this.state,{[e]:t}))}use=(()=>(e,t,r,o)=>Pc(this,e,t,r,o))()}const Oc=vc(e=>e.providedTreeId??e.treeId),Dc={treeId:Oc,treeItemIdAttribute:vc(Oc,(e,t,r)=>null!=r?r:`${e??""}-${t}`)},Wc="__TREE_VIEW_ROOT_PARENT_ID__",Fc=e=>{const t={};return e.forEach((e,r)=>{t[e]=r}),t},Nc=(e,t)=>{if(null==t)return!1;let r=e[t];if(!r)return!1;if(r.disabled)return!0;for(;null!=r.parentId;){if(r=e[r.parentId],!r)return!1;if(r.disabled)return!0}return!1};function Hc(e){const{storeParameters:t,items:r,parentId:o,depth:a,isItemExpandable:n,otherItemsMetaLookup:i}=e,l={},s={},c=[],d=[],u=e=>{const r=t.getItemId?t.getItemId(e):e.id;!function({id:e,parentId:t,item:r,itemMetaLookup:o,siblingsMetaLookup:a}){if(null==e)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.","An item was provided without id in the `items` prop:",JSON.stringify(r)].join("\n"));if(null!=a[e]||null!=o[e]&&o[e].parentId!==t)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.",`Two items were provided with the same id in the \`items\` prop: "${e}"`].join("\n"))}({id:r,parentId:o,item:e,itemMetaLookup:i,siblingsMetaLookup:l});const u=t.getItemLabel?t.getItemLabel(e):e.label;if(null==u)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","Alternatively, you can use the `getItemLabel` prop to specify a custom label for each item.","An item was provided without label in the `items` prop:",JSON.stringify(e)].join("\n"));const x=(t.getItemChildren?t.getItemChildren(e):e.children)||[];d.push({id:r,children:x}),s[r]=e,l[r]={id:r,label:u,parentId:o,idAttribute:void 0,expandable:n(e,x),disabled:!!t.isItemDisabled&&t.isItemDisabled(e),selectable:!t.isItemSelectionDisabled||!t.isItemSelectionDisabled(e),depth:a},c.push(r)};for(const e of r)u(e);return{metaLookup:l,modelLookup:s,orderedChildrenIds:c,childrenIndexes:Fc(c),itemsChildren:d}}const Vc=[],Qc={domStructure:vc(e=>e.domStructure),disabledItemFocusable:vc(e=>e.disabledItemsFocusable),itemMetaLookup:vc(e=>e.itemMetaLookup),itemOrderedChildrenIdsLookup:vc(e=>e.itemOrderedChildrenIdsLookup),itemMeta:vc((e,t)=>e.itemMetaLookup[t??Wc]??null),itemOrderedChildrenIds:vc((e,t)=>e.itemOrderedChildrenIdsLookup[t??Wc]??Vc),itemModel:vc((e,t)=>e.itemModelLookup[t]),isItemDisabled:vc((e,t)=>Nc(e.itemMetaLookup,t)),itemIndex:vc((e,t)=>{const r=e.itemMetaLookup[t];if(null==r)return-1;return e.itemChildrenIndexesLookup[r.parentId??Wc][r.id]}),itemParentId:vc((e,t)=>e.itemMetaLookup[t]?.parentId??null),itemDepth:vc((e,t)=>e.itemMetaLookup[t]?.depth??0),canItemBeFocused:vc((e,t)=>e.disabledItemsFocusable||null!=e.itemModelLookup[t]&&!Nc(e.itemMetaLookup,t)),itemChildrenIndentation:vc(e=>e.itemChildrenIndentation)};class Gc{constructor(e){this.store=e}static shouldRebuildItemsState=(e,t)=>["items","isItemDisabled","isItemSelectionDisabled","getItemId","getItemLabel","getItemChildren"].some(r=>{const o=r;return e[o]!==t[o]});static buildItemsStateIfNeeded=e=>{const t={},r={},o={},a={};return function n(i,l,s){const c=l??Wc,{metaLookup:d,modelLookup:u,orderedChildrenIds:x,childrenIndexes:p,itemsChildren:h}=Hc({storeParameters:e,items:i,parentId:l,depth:s,isItemExpandable:(e,t)=>!!t&&t.length>0,otherItemsMetaLookup:t});Object.assign(t,d),Object.assign(r,u),o[c]=x,a[c]=p;for(const e of h)n(e.children||[],e.id,s+1)}(e.items,null,0),{itemMetaLookup:t,itemModelLookup:r,itemOrderedChildrenIdsLookup:o,itemChildrenIndexesLookup:a}};getItem=e=>Qc.itemModel(this.store.state,e);getItemTree=()=>{const e=t=>{const r=Is({},Qc.itemModel(this.store.state,t)),o=Qc.itemOrderedChildrenIds(this.store.state,t);return o.length>0?r.children=o.map(e):delete r.children,r};return Qc.itemOrderedChildrenIds(this.store.state,null).map(e)};getItemOrderedChildrenIds=e=>Qc.itemOrderedChildrenIds(this.store.state,e);getParentId=e=>{const t=Qc.itemMeta(this.store.state,e);return t?.parentId||null};setIsItemDisabled=({itemId:e,shouldBeDisabled:t})=>{if(!this.store.state.itemMetaLookup[e])return;const r=Is({},this.store.state.itemMetaLookup);r[e]=Is({},r[e],{disabled:t??!r[e].disabled}),this.store.set("itemMetaLookup",r)};buildPublicAPI=()=>({getItem:this.getItem,getItemDOMElement:this.getItemDOMElement,getItemOrderedChildrenIds:this.getItemOrderedChildrenIds,getItemTree:this.getItemTree,getParentId:this.getParentId,setIsItemDisabled:this.setIsItemDisabled});getItemDOMElement=e=>{const t=Qc.itemMeta(this.store.state,e);if(null==t)return null;const r=Dc.treeItemIdAttribute(this.store.state,e,t.idAttribute);return document.getElementById(r)};setItemChildren=({items:e,parentId:t,getChildrenCount:r})=>{const o=t??Wc,a=null==t?-1:Qc.itemDepth(this.store.state,t),{metaLookup:n,modelLookup:i,orderedChildrenIds:l,childrenIndexes:s}=Hc({storeParameters:this.store.parameters,items:e,parentId:t,depth:a+1,isItemExpandable:r?e=>0!==r(e):()=>!1,otherItemsMetaLookup:Qc.itemMetaLookup(this.store.state)});this.store.update({itemModelLookup:Is({},this.store.state.itemModelLookup,i),itemMetaLookup:Is({},this.store.state.itemMetaLookup,n),itemOrderedChildrenIdsLookup:Is({},this.store.state.itemOrderedChildrenIdsLookup,{[o]:l}),itemChildrenIndexesLookup:Is({},this.store.state.itemChildrenIndexesLookup,{[o]:s})})};removeChildren=e=>{const t=this.store.state.itemMetaLookup,r=Object.keys(t).reduce((r,o)=>{const a=t[o];return a.parentId===e?r:Is({},r,{[a.id]:a})},{}),o=Is({},this.store.state.itemOrderedChildrenIdsLookup),a=Is({},this.store.state.itemChildrenIndexesLookup),n=e??Wc;delete a[n],delete o[n],this.store.update({itemMetaLookup:r,itemOrderedChildrenIdsLookup:o,itemChildrenIndexesLookup:a})};handleItemClick=(e,t)=>{this.store.parameters.onItemClick?.(e,t)}}const qc=yc(e=>e.selectedItems,e=>Array.isArray(e)?e:null!=e?[e]:[]),Uc=yc(qc,e=>{const t=new Map;return e.forEach(e=>{t.set(e,!0)}),t}),Xc=vc((e,t)=>e.itemMetaLookup[t]?.selectable??!0),Kc={selectedItemsRaw:vc(e=>e.selectedItems),selectedItems:qc,selectedItemsMap:Uc,enabled:vc(e=>!e.disableSelection),isMultiSelectEnabled:vc(e=>e.multiSelect),isCheckboxSelectionEnabled:vc(e=>e.checkboxSelection),propagationRules:vc(e=>e.selectionPropagation),isItemSelected:vc(Uc,(e,t)=>e.has(t)),isFeatureEnabledForItem:vc(Xc,e=>!e.disableSelection,(e,t,r)=>t&&e),canItemBeSelected:vc(Qc.isItemDisabled,Xc,e=>!e.disableSelection,(e,t,r,o)=>r&&!e&&t),isItemSelectable:Xc},Jc=vc((e,t)=>{if(Kc.isItemSelected(e,t))return"checked";let r=!1,o=!1;const a=n=>{n!==t&&(Kc.isItemSelected(e,n)?r=!0:o=!0),Qc.itemOrderedChildrenIds(e,n).forEach(a)};a(t);return Kc.propagationRules(e).parents?r&&o?"indeterminate":r&&!o?"checked":"empty":r?"indeterminate":"empty"}),Yc=({props:e})=>{const{itemId:t}=e,{store:r}=$s(),o=Pc(r,Kc.isCheckboxSelectionEnabled),a=Pc(r,Kc.isFeatureEnabledForItem,t),n=Pc(r,Kc.canItemBeSelected,t),i=Pc(r,Jc,t);return{propsEnhancers:{root:()=>{let e;return e="checked"===i||("indeterminate"===i?"mixed":!n&&void 0),{"aria-checked":e}},checkbox:({externalEventHandlers:e,interactions:l})=>({tabIndex:-1,onChange:o=>{e.onChange?.(o),o.defaultMuiPrevented||Kc.canItemBeSelected(r.state,t)&&l.handleCheckboxSelection(o)},visible:o&&a,disabled:!n,checked:"checked"===i,indeterminate:"indeterminate"===i})}}},Zc=yc(e=>e.expandedItems,e=>{const t=new Map;return e.forEach(e=>{t.set(e,!0)}),t}),$c={expandedItemsRaw:vc(e=>e.expandedItems),expandedItemsMap:Zc,flatList:yc(Qc.itemOrderedChildrenIdsLookup,Zc,(e,t)=>(e[Wc]??[]).flatMap(function r(o){if(!t.has(o))return[o];const a=[o],n=e[o]||[];for(const e of n)a.push(...r(e));return a})),triggerSlot:vc(e=>e.expansionTrigger),isItemExpanded:vc(Zc,(e,t)=>e.has(t)),isItemExpandable:vc(Qc.itemMeta,(e,t)=>e?.expandable??!1)},_c=(e,t)=>{let r=t.length-1;for(;r>=0&&!Qc.canItemBeFocused(e,t[r]);)r-=1;if(-1!==r)return t[r]},ed=(e,t)=>{const r=Qc.itemMeta(e,t);if(!r)return null;const o=Qc.itemOrderedChildrenIds(e,r.parentId),a=Qc.itemIndex(e,t);if(0===a)return r.parentId;let n=a-1;for(;!Qc.canItemBeFocused(e,o[n])&&n>=0;)n-=1;if(-1===n)return null==r.parentId?null:ed(e,r.parentId);let i=o[n],l=_c(e,Qc.itemOrderedChildrenIds(e,i));for(;$c.isItemExpanded(e,i)&&null!=l;)i=l,l=_c(e,Qc.itemOrderedChildrenIds(e,i));return i},td=(e,t)=>{if($c.isItemExpanded(e,t)){const r=Qc.itemOrderedChildrenIds(e,t).find(t=>Qc.canItemBeFocused(e,t));if(null!=r)return r}let r=Qc.itemMeta(e,t);for(;null!=r;){const t=Qc.itemOrderedChildrenIds(e,r.parentId),o=Qc.itemIndex(e,r.id);if(o<t.length-1){let r=o+1;for(;!Qc.canItemBeFocused(e,t[r])&&r<t.length-1;)r+=1;if(Qc.canItemBeFocused(e,t[r]))return t[r]}r=Qc.itemMeta(e,r.parentId)}return null},rd=e=>{let t=null;for(;null==t||$c.isItemExpanded(e,t);){const r=Qc.itemOrderedChildrenIds(e,t),o=_c(e,r);if(null==o)return t;t=o}return t},od=e=>Qc.itemOrderedChildrenIds(e,null).find(t=>Qc.canItemBeFocused(e,t)),ad=(e,t,r)=>{if(t===r)return[t,r];const o=Qc.itemMeta(e,t),a=Qc.itemMeta(e,r);if(!o||!a)return[t,r];if(o.parentId===a.id||a.parentId===o.id)return a.parentId===o.id?[o.id,a.id]:[a.id,o.id];const n=[o.id],i=[a.id];let l=o.parentId,s=a.parentId,c=-1!==i.indexOf(l),d=-1!==n.indexOf(s),u=!0,x=!0;for(;!d&&!c;)u&&(n.push(l),c=-1!==i.indexOf(l),u=null!==l,!c&&u&&(l=Qc.itemParentId(e,l))),x&&!c&&(i.push(s),d=-1!==n.indexOf(s),x=null!==s,!d&&x&&(s=Qc.itemParentId(e,s)));const p=c?l:s,h=Qc.itemOrderedChildrenIds(e,p),m=n[n.indexOf(p)-1],f=i[i.indexOf(p)-1];return h.indexOf(m)<h.indexOf(f)?[t,r]:[r,t]},nd=(e,t)=>t!==e.closest('*[role="treeitem"]');class id{lastSelectedItem=null;lastSelectedRange={};constructor(e){this.store=e,e.itemPluginManager.register(Yc,null)}setSelectedItems=(e,t,r)=>{const{selectionPropagation:o=Ys,selectedItems:a,onItemSelectionToggle:n,onSelectedItemsChange:i}=this.store.parameters,l=Kc.selectedItemsRaw(this.store.state);let s;const c=Kc.isMultiSelectEnabled(this.store.state);if(s=c&&(o.descendants||o.parents)?function({store:e,selectionPropagation:t,newModel:r,oldModel:o,additionalItemsToPropagate:a}){if(!t.descendants&&!t.parents)return r;let n=!1;const i=sd(r),l=ld({store:e,newModel:r,oldModel:o});return a?.forEach(e=>{i[e]?l.added.includes(e)||l.added.push(e):l.removed.includes(e)||l.removed.push(e)}),l.added.forEach(r=>{if(t.descendants){const t=o=>{o!==r&&(n=!0,i[o]=!0),Qc.itemOrderedChildrenIds(e.state,o).forEach(t)};t(r)}if(t.parents){const t=r=>{if(!i[r])return!1;return Qc.itemOrderedChildrenIds(e.state,r).every(t)},o=r=>{const a=Qc.itemParentId(e.state,r);if(null==a)return;Qc.itemOrderedChildrenIds(e.state,a).every(t)&&(n=!0,i[a]=!0,o(a))};o(r)}}),l.removed.forEach(r=>{if(t.parents){let t=Qc.itemParentId(e.state,r);for(;null!=t;)i[t]&&(n=!0,delete i[t]),t=Qc.itemParentId(e.state,t)}if(t.descendants){const t=o=>{o!==r&&(n=!0,delete i[o]),Qc.itemOrderedChildrenIds(e.state,o).forEach(t)};t(r)}}),n?Object.keys(i):r}({store:this.store,selectionPropagation:o,newModel:t,oldModel:l,additionalItemsToPropagate:r}):t,n)if(c){const t=ld({store:this.store,newModel:s,oldModel:l});n&&(t.added.forEach(t=>{n(e,t,!0)}),t.removed.forEach(t=>{n(e,t,!1)}))}else s!==l&&(null!=l&&n(e,l,!1),null!=s&&n(e,s,!0));void 0===a&&this.store.set("selectedItems",s),i?.(e,s)};selectRange=(e,[t,r])=>{if(!Kc.isMultiSelectEnabled(this.store.state))return;let o=Kc.selectedItems(this.store.state).slice();Object.keys(this.lastSelectedRange).length>0&&(o=o.filter(e=>!this.lastSelectedRange[e]));const a=sd(o),n=((e,t,r)=>{const o=t=>{if($c.isItemExpandable(e,t)&&$c.isItemExpanded(e,t))return Qc.itemOrderedChildrenIds(e,t)[0];let r=Qc.itemMeta(e,t);for(;null!=r;){const t=Qc.itemOrderedChildrenIds(e,r.parentId),o=Qc.itemIndex(e,r.id);if(o<t.length-1)return t[o+1];r=r.parentId?Qc.itemMeta(e,r.parentId):null}throw new Error("Invalid range")},[a,n]=ad(e,t,r),i=[a];let l=a;for(;l!==n;)l=o(l),Qc.isItemDisabled(e,l)||i.push(l);return i})(this.store.state,t,r).filter(e=>Kc.isItemSelectable(this.store.state,e)),i=n.filter(e=>!a[e]);o=o.concat(i),this.setSelectedItems(e,o),this.lastSelectedRange=sd(n)};buildPublicAPI=()=>({setItemSelection:this.setItemSelection});setItemSelection=({itemId:e,event:t=null,keepExistingSelection:r=!1,shouldBeSelected:o})=>{if(!Kc.enabled(this.store.state))return;let a;const n=Kc.isMultiSelectEnabled(this.store.state);if(r){const t=Kc.selectedItems(this.store.state),r=Kc.isItemSelected(this.store.state,e);a=!r||!1!==o&&null!=o?r||!0!==o&&null!=o?t:[e].concat(t):t.filter(t=>t!==e)}else a=!1===o||null==o&&Kc.isItemSelected(this.store.state,e)?n?[]:null:n?[e]:e;this.setSelectedItems(t,a,[e]),this.lastSelectedItem=e,this.lastSelectedRange={}};selectAllNavigableItems=e=>{if(!Kc.isMultiSelectEnabled(this.store.state))return;const t=(e=>{let t=od(e);const r=[];for(;null!=t;)r.push(t),t=td(e,t);return r})(this.store.state);this.setSelectedItems(e,t),this.lastSelectedRange=sd(t)};expandSelectionRange=(e,t)=>{if(null!=this.lastSelectedItem){const[r,o]=ad(this.store.state,t,this.lastSelectedItem);this.selectRange(e,[r,o])}};selectRangeFromStartToItem=(e,t)=>{this.selectRange(e,[od(this.store.state),t])};selectRangeFromItemToEnd=(e,t)=>{this.selectRange(e,[t,rd(this.store.state)])};selectItemFromArrowNavigation=(e,t,r)=>{if(!Kc.isMultiSelectEnabled(this.store.state))return;let o=Kc.selectedItems(this.store.state).slice();0===Object.keys(this.lastSelectedRange).length?(o.push(r),this.lastSelectedRange={[t]:!0,[r]:!0}):(this.lastSelectedRange[t]||(this.lastSelectedRange={}),this.lastSelectedRange[r]?(o=o.filter(e=>e!==t),delete this.lastSelectedRange[t]):(o.push(r),this.lastSelectedRange[r]=!0)),this.setSelectedItems(e,o)}}function ld({store:e,oldModel:t,newModel:r}){const o=new Map;return r.forEach(e=>{o.set(e,!0)}),{added:r.filter(t=>!Kc.isItemSelected(e.state,t)),removed:t.filter(e=>!o.has(e))}}function sd(e){const t={};return e.forEach(e=>{t[e]=!0}),t}const cd=ct.createContext(null);function dd(e){const{children:t,itemId:o=null,idAttribute:a}=e,{store:n,rootRef:i}=$s(),l=ct.useRef(new Map);ct.useEffect(()=>{if(!i.current)return;const e=Qc.itemOrderedChildrenIds(n.state,o??null)??[],t=(a??i.current.id).replace(/["\\]/g,"\\$&");if(null!=o){const e=i.current.querySelector(`*[id="${t}"][role="treeitem"]`);if(e&&"false"===e.getAttribute("aria-expanded"))return}const r=i.current.querySelectorAll(`${null==o?"":`*[id="${t}"] `}[role="treeitem"]:not(*[id="${t}"] [role="treeitem"] [role="treeitem"])`),s=Array.from(r).map(e=>l.current.get(e.id)),c=s.length!==e.length||s.some((t,r)=>t!==e[r]);c&&n.jsxItems.setJSXItemsOrderedChildrenIds(o??null,s)});const s=ct.useMemo(()=>({registerChild:(e,t)=>l.current.set(e,t),unregisterChild:e=>l.current.delete(e),parentId:o}),[o]);return r.jsx(cd.Provider,{value:s,children:t})}"production"!==process.env.NODE_ENV&&(cd.displayName="TreeViewChildrenItemContext"),"production"!==process.env.NODE_ENV&&(dd.propTypes={children:oa.node,id:oa.string});const ud=ct.createContext(()=>-1);"production"!==process.env.NODE_ENV&&(ud.displayName="TreeViewItemDepthContext");const xd="undefined"!=typeof document?ct.useLayoutEffect:()=>{},pd=[];const hd=ct.createContext();"production"!==process.env.NODE_ENV&&(oa.node,oa.bool);function md(e,t){const r=ct.useContext(hd)??!1,o=zs(()=>new e(Is({},t,{isRtl:r}))).current;var a;return xd(()=>o.updateStateFromParameters(Is({},t,{isRtl:r})),[o,r,t]),a=o.disposeEffect,ct.useEffect(a,pd),o}class fd{maxListeners=20;warnOnce=!1;events={};on(e,t,r={}){let o=this.events[e];if(o||(o={highPriority:new Map,regular:new Map},this.events[e]=o),r.isFirst?o.highPriority.set(t,!0):o.regular.set(t,!0),"production"!==process.env.NODE_ENV){const t=o.highPriority.size+o.regular.size;t>this.maxListeners&&!this.warnOnce&&(this.warnOnce=!0,console.warn([`Possible EventEmitter memory leak detected. ${t} ${e} listeners added.`].join("\n")))}}removeListener(e,t){this.events[e]&&(this.events[e].regular.delete(t),this.events[e].highPriority.delete(t))}removeAllListeners(){this.events={}}emit(e,...t){const r=this.events[e];if(!r)return;const o=Array.from(r.highPriority.keys()),a=Array.from(r.regular.keys());for(let e=o.length-1;e>=0;e-=1){const a=o[e];r.highPriority.has(a)&&a.apply(this,t)}for(let e=0;e<a.length;e+=1){const o=a[e];r.regular.has(o)&&o.apply(this,t)}}once(e,t){const r=this;this.on(e,function o(...a){r.removeListener(e,o),t.apply(r,a)})}}const gd=({isItemEditable:e,expansionTrigger:t})=>t||(e?"iconContainer":"content");function bd(e){return{disabledItemsFocusable:e.disabledItemsFocusable??!1,domStructure:"nested",itemChildrenIndentation:e.itemChildrenIndentation??"12px",providedTreeId:e.id,expansionTrigger:gd({isItemEditable:e.isItemEditable,expansionTrigger:e.expansionTrigger}),disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,selectionPropagation:e.selectionPropagation??Ys}}function vd(e,t,r){return void 0!==e?e:void 0!==t?t:r}let yd=0;class jd{timeoutIds=(()=>new Map)();intervalIds=(()=>new Map)();startTimeout=(e,t,r)=>{this.clearTimeout(e);const o=setTimeout(()=>{this.timeoutIds.delete(e),r()},t);this.timeoutIds.set(e,o)};startInterval=(e,t,r)=>{this.clearTimeout(e);const o=setInterval(r,t);this.intervalIds.set(e,o)};clearTimeout=e=>{const t=this.timeoutIds.get(e);null!=t&&(clearTimeout(t),this.timeoutIds.delete(e))};clearInterval=e=>{const t=this.intervalIds.get(e);null!=t&&(clearInterval(t),this.intervalIds.delete(e))};clearAll=()=>{this.timeoutIds.forEach(clearTimeout),this.timeoutIds.clear(),this.intervalIds.forEach(clearInterval),this.intervalIds.clear()}}class Sd{constructor(e){this.store=e}setExpandedItems=(e,t)=>{void 0===this.store.parameters.expandedItems&&this.store.set("expandedItems",t),this.store.parameters.onExpandedItemsChange?.(e,t)};isItemExpanded=e=>$c.isItemExpanded(this.store.state,e);buildPublicAPI=()=>({isItemExpanded:this.isItemExpanded,setItemExpansion:this.setItemExpansion});setItemExpansion=({itemId:e,event:t=null,shouldBeExpanded:r})=>{const o=$c.isItemExpanded(this.store.state,e),a=r??!o;if(o===a)return;const n={isExpansionPrevented:!1,shouldBeExpanded:a,itemId:e};this.store.publishEvent("beforeItemToggleExpansion",n,t),n.isExpansionPrevented||this.applyItemExpansion({itemId:e,event:t,shouldBeExpanded:a})};applyItemExpansion=({itemId:e,event:t,shouldBeExpanded:r})=>{const o=$c.expandedItemsRaw(this.store.state);let a;a=r?[e].concat(o):o.filter(t=>t!==e),this.store.parameters.onItemExpansionToggle?.(t,e,r),this.setExpandedItems(t,a)};expandAllSiblings=(e,t)=>{const r=Qc.itemMeta(this.store.state,t);if(null==r)return;const o=Qc.itemOrderedChildrenIds(this.store.state,r.parentId).filter(e=>$c.isItemExpandable(this.store.state,e)&&!$c.isItemExpanded(this.store.state,e)),a=$c.expandedItemsRaw(this.store.state).concat(o);o.length>0&&(this.store.parameters.onItemExpansionToggle&&o.forEach(t=>{this.store.parameters.onItemExpansionToggle(e,t,!0)}),this.setExpandedItems(e,a))};addExpandableItems=e=>{const t=Is({},this.store.state.itemMetaLookup);for(const r of e)t[r]=Is({},t[r],{expandable:!0});this.store.set("itemMetaLookup",t)}}const Bd={isItemEditable:vc(e=>e.isItemEditable,Qc.itemModel,(e,t,r)=>!(!t||null==e)&&("boolean"==typeof e?e:e(t))),isItemBeingEdited:vc((e,t)=>null!=t&&e.editedItemId===t),isAnyItemBeingEdited:vc(e=>!!e.editedItemId)};class kd{typeaheadQuery="";constructor(e){this.store=e,this.labelMap=Cd(Qc.itemMetaLookup(this.store.state)),this.store.registerStoreEffect(Qc.itemMetaLookup,(e,t)=>{this.store.shouldIgnoreItemsStateUpdate()||(this.labelMap=Cd(t))})}canToggleItemSelection=e=>Kc.canItemBeSelected(this.store.state,e);canToggleItemExpansion=e=>!Qc.isItemDisabled(this.store.state,e)&&$c.isItemExpandable(this.store.state,e);getFirstItemMatchingTypeaheadQuery=(e,t)=>{const r=e=>{const t=td(this.store.state,e);return null===t?od(this.store.state):t},o=t=>{let o=null;const a={};let n=t.length>1?e:r(e);for(;null==o&&!a[n];){const e=this.labelMap[n];e?.startsWith(t)?o=n:(a[n]=!0,n=r(n))}return o},a=t.toLowerCase(),n=`${this.typeaheadQuery}${a}`,i=o(n);if(null!=i)return this.typeaheadQuery=n,i;const l=o(a);return null!=l?(this.typeaheadQuery=a,l):(this.typeaheadQuery="",null)};updateLabelMap=e=>{this.labelMap=e(this.labelMap)};handleItemKeyDown=async(e,t)=>{if(e.defaultMuiPrevented)return;if(e.altKey||nd(e.target,e.currentTarget))return;const r=e.ctrlKey||e.metaKey,o=e.key,a=Kc.isMultiSelectEnabled(this.store.state);switch(!0){case" "===o&&this.canToggleItemSelection(t):e.preventDefault(),a&&e.shiftKey?this.store.selection.expandSelectionRange(e,t):this.store.selection.setItemSelection({event:e,itemId:t,keepExistingSelection:a,shouldBeSelected:void 0});break;case"Enter"===o:this.store.labelEditing?.setEditedItem&&Bd.isItemEditable(this.store.state,t)&&!Bd.isItemBeingEdited(this.store.state,t)?this.store.labelEditing.setEditedItem(t):this.canToggleItemExpansion(t)?(this.store.expansion.setItemExpansion({event:e,itemId:t}),e.preventDefault()):this.canToggleItemSelection(t)&&(a?(e.preventDefault(),this.store.selection.setItemSelection({event:e,itemId:t,keepExistingSelection:!0})):Kc.isItemSelected(this.store.state,t)||(this.store.selection.setItemSelection({event:e,itemId:t}),e.preventDefault()));break;case"ArrowDown"===o:{const r=td(this.store.state,t);r&&(e.preventDefault(),this.store.focus.focusItem(e,r),a&&e.shiftKey&&this.canToggleItemSelection(r)&&this.store.selection.selectItemFromArrowNavigation(e,t,r));break}case"ArrowUp"===o:{const r=ed(this.store.state,t);r&&(e.preventDefault(),this.store.focus.focusItem(e,r),a&&e.shiftKey&&this.canToggleItemSelection(r)&&this.store.selection.selectItemFromArrowNavigation(e,t,r));break}case"ArrowRight"===o&&!this.store.parameters.isRtl||"ArrowLeft"===o&&this.store.parameters.isRtl:if(r)return;if($c.isItemExpanded(this.store.state,t)){const r=td(this.store.state,t);r&&(this.store.focus.focusItem(e,r),e.preventDefault())}else this.canToggleItemExpansion(t)&&(this.store.expansion.setItemExpansion({event:e,itemId:t}),e.preventDefault());break;case"ArrowLeft"===o&&!this.store.parameters.isRtl||"ArrowRight"===o&&this.store.parameters.isRtl:if(r)return;if(this.canToggleItemExpansion(t)&&$c.isItemExpanded(this.store.state,t))this.store.expansion.setItemExpansion({event:e,itemId:t}),e.preventDefault();else{const r=Qc.itemParentId(this.store.state,t);r&&(this.store.focus.focusItem(e,r),e.preventDefault())}break;case"Home"===o:this.canToggleItemSelection(t)&&a&&r&&e.shiftKey?this.store.selection.selectRangeFromStartToItem(e,t):this.store.focus.focusItem(e,od(this.store.state)),e.preventDefault();break;case"End"===o:this.canToggleItemSelection(t)&&a&&r&&e.shiftKey?this.store.selection.selectRangeFromItemToEnd(e,t):this.store.focus.focusItem(e,rd(this.store.state)),e.preventDefault();break;case"*"===o:this.store.expansion.expandAllSiblings(e,t),e.preventDefault();break;case"A"===String.fromCharCode(e.keyCode)&&r&&a&&Kc.enabled(this.store.state):this.store.selection.selectAllNavigableItems(e),e.preventDefault();break;case!(r||e.shiftKey||(n=o,!n||1!==n.length||!n.match(/\S/))):{this.store.timeoutManager.clearTimeout("typeahead");const r=this.getFirstItemMatchingTypeaheadQuery(t,o);null!=r?(this.store.focus.focusItem(e,r),e.preventDefault()):this.typeaheadQuery="",this.store.timeoutManager.startTimeout("typeahead",500,()=>{this.typeaheadQuery=""});break}}var n}}function Cd(e){const t={};return Object.values(e).forEach(e=>{t[e.id]=e.label.toLowerCase()}),t}const wd=yc(Kc.selectedItems,$c.expandedItemsMap,Qc.itemMetaLookup,Qc.disabledItemFocusable,e=>Qc.itemOrderedChildrenIds(e,null),(e,t,r,o,a)=>{const n=e.find(e=>{if(!o&&Nc(r,e))return!1;const a=r[e];return a&&(null==a.parentId||t.has(a.parentId))});if(null!=n)return n;const i=a.find(e=>o||!Nc(r,e));return null!=i?i:null}),Td={defaultFocusableItemId:wd,isItemTheDefaultFocusableItem:vc(wd,(e,t)=>e===t),focusedItemId:vc(e=>e.focusedItemId),isItemFocused:vc((e,t)=>e.focusedItemId===t)};class Id{constructor(e){this.store=e;let t=e.state;this.store.subscribe(e=>{if(e.itemMetaLookup===t.itemMetaLookup)return void(t=e);const r=Td.focusedItemId(e);if(null==r||Qc.itemMeta(e,r))return void(t=e);const o=t=>null!=t&&Qc.itemMeta(e,t)?t:null,a=o(td(t,r))??o(ed(t,r))??od(e);null==a?this.setFocusedItemId(null):this.applyItemFocus(null,a),t=e})}setFocusedItemId=e=>{Td.focusedItemId(this.store.state)!==e&&this.store.set("focusedItemId",e)};applyItemFocus=(e,t)=>{this.store.items.getItemDOMElement(t)?.focus(),this.setFocusedItemId(t),this.store.parameters.onItemFocus?.(e,t)};buildPublicAPI=()=>({focusItem:this.focusItem});focusItem=(e,t)=>{const r=Qc.itemMeta(this.store.state,t);r&&(null==r.parentId||$c.isItemExpanded(this.store.state,r.parentId))&&this.applyItemFocus(e,t)};removeFocusedItem=()=>{const e=Td.focusedItemId(this.store.state);if(null==e)return;if(Qc.itemMeta(this.store.state,e)){const t=this.store.items.getItemDOMElement(e);t&&t.blur()}this.setFocusedItemId(null)};handleRootFocus=e=>{if(e.defaultMuiPrevented)return;const t=Td.defaultFocusableItemId(this.store.state);e.target===e.currentTarget&&null!=t&&this.applyItemFocus(e,t)};handleRootBlur=e=>{e.defaultMuiPrevented||this.setFocusedItemId(null)}}class Ad{itemPlugins=[];itemWrappers=[];register=(e,t)=>{this.itemPlugins.push(e),t&&this.itemWrappers.push(t)};listPlugins=()=>this.itemPlugins;listWrappers=()=>this.itemWrappers}class zd extends Mc{initialParameters=null;eventManager=(()=>new fd)();timeoutManager=(()=>new jd)();itemPluginManager=(()=>new Ad)();constructor(e,t,r){const o=function(e){return Is({treeId:void 0,focusedItemId:null},bd(e),Gc.buildItemsStateIfNeeded(e),{expandedItems:vd(e.expandedItems,e.defaultExpandedItems,[]),selectedItems:vd(e.selectedItems,e.defaultSelectedItems,e.multiSelect?Js:null)})}(e);super(r.getInitialState(o,e)),this.parameters=e,this.instanceName=t,this.mapper=r,this.items=new Gc(this),this.focus=new Id(this),this.expansion=new Sd(this),this.selection=new id(this),this.keyboardNavigation=new kd(this),"production"!==process.env.NODE_ENV&&(this.initialParameters=e)}buildPublicAPI(){return Is({},this.items.buildPublicAPI(),this.focus.buildPublicAPI(),this.expansion.buildPublicAPI(),this.selection.buildPublicAPI())}updateStateFromParameters(e){const t=(t,r,o)=>{if(void 0!==e[r]&&(t[r]=e[r]),"production"!==process.env.NODE_ENV){const t=e[o],a=void 0!==e[r],n=this.initialParameters?.[o],i=void 0!==this.initialParameters?.[r];i!==a?Hs([`MUI X Tree View: A component is changing the ${i?"":"un"}controlled ${r} state of ${this.instanceName} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"],"error"):JSON.stringify(n)!==JSON.stringify(t)&&Hs([`MUI X Tree View: A component is changing the default ${r} state of an uncontrolled ${this.instanceName} after being initialized. `,`To suppress this warning opt to use a controlled ${this.instanceName}.`],"error")}},r=bd(e);t(r,"expandedItems","defaultExpandedItems"),t(r,"selectedItems","defaultSelectedItems"),this.state.providedTreeId===e.id&&void 0!==this.state.treeId||(r.treeId=(yd+=1,`mui-tree-view-${yd}`)),!this.mapper.shouldIgnoreItemsStateUpdate(e)&&Gc.shouldRebuildItemsState(e,this.parameters)&&Object.assign(r,Gc.buildItemsStateIfNeeded(e));const o=this.mapper.updateStateFromParameters(r,e,t);this.update(o),this.parameters=e}disposeEffect=()=>this.timeoutManager.clearAll;shouldIgnoreItemsStateUpdate=()=>this.mapper.shouldIgnoreItemsStateUpdate(this.parameters);registerStoreEffect=(e,t)=>{let r=e(this.state);this.subscribe(o=>{const a=e(o);a!==r&&(t(r,a),r=a)})};publishEvent=(e,t,r)=>{(function(e){return void 0!==e?.isPropagationStopped})(r)&&r.isPropagationStopped()||this.eventManager.emit(e,t,r)};subscribeEvent=(e,t)=>{this.eventManager.on(e,t)}}const Rd={isEmpty:vc(e=>null==e.lazyLoadedItems||0===Object.keys(e.lazyLoadedItems.loading).length&&0===Object.keys(e.lazyLoadedItems.errors).length),isItemLoading:vc((e,t)=>e.lazyLoadedItems?.loading[t??Wc]??!1),itemHasError:vc((e,t)=>!!e.lazyLoadedItems?.errors[t??Wc]),itemError:vc((e,t)=>e.lazyLoadedItems?.errors[t??Wc])},Ed=e=>Array.isArray(e)?e.length>0&&e.some(Ed):Boolean(e),Ld=({props:e,rootRef:t,contentRef:r})=>{const{store:o}=$s(),{children:a,disabled:n=!1,disableSelection:i=!1,label:l,itemId:s,id:c}=e,d=ct.useContext(cd);if(null==d)throw new Error(["MUI X: Could not find the Tree View Children Item context.","It looks like you rendered your component outside of a SimpleTreeView parent component.","This can also happen if you are bundling multiple versions of the Tree View."].join("\n"));const{registerChild:u,unregisterChild:x,parentId:p}=d,h=Ed(a),m=ct.useRef(null),f=Rs(m,r),g=Pc(o,Dc.treeItemIdAttribute,s,c),b=ct.useRef(!0),v=zs(Symbol);return xd(()=>(u(g,s),()=>{x(g),x(g)}),[o,u,x,g,s]),xd(()=>(b.current=!0,()=>{b.current=!1}),[]),xd(()=>{const e=o.jsxItems.upsertJSXItem({id:s,idAttribute:c,parentId:p,expandable:h,disabled:n,selectable:!i},v.current);return()=>{b.current||e()}},[o,p,s,h,n,i,c,v]),ct.useEffect(()=>{if(l)return o.jsxItems.mapLabelFromJSX(s,(m.current?.textContent??"").toLowerCase())},[o,s,l]),{contentRef:f,rootRef:t}},Pd=({children:e,itemId:t,idAttribute:o})=>{const a=ct.useContext(ud);return r.jsx(dd,{itemId:t,idAttribute:o,children:r.jsx(ud.Provider,{value:a+1,children:e})})};"production"!==process.env.NODE_ENV&&(Pd.displayName="jsxItemsitemWrapper");class Md{itemOwners=(()=>new Map)();constructor(e){this.store=e,e.itemPluginManager.register(Ld,Pd)}upsertJSXItem=(e,t)=>{const r=this.itemOwners.get(e.id);if(null!=r&&r!==t)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.",`Two items were provided with the same id in the \`items\` prop: "${e.id}"`].join("\n"));this.itemOwners.set(e.id,t);const o=Qc.itemMeta(this.store.state,e.id);if(null!=o){let t=!1;for(const r of Object.keys(e))if(o[r]!==e[r]){t=!0;break}t&&this.store.update({itemMetaLookup:Is({},this.store.state.itemMetaLookup,{[e.id]:Is({},o,e)})})}else this.store.update({itemMetaLookup:Is({},this.store.state.itemMetaLookup,{[e.id]:e}),itemModelLookup:Is({},this.store.state.itemModelLookup,{[e.id]:{id:e.id,label:e.label??""}})});return()=>{this.itemOwners.delete(e.id);const t=Is({},this.store.state.itemMetaLookup),r=Is({},this.store.state.itemModelLookup);delete t[e.id],delete r[e.id],this.store.update({itemMetaLookup:t,itemModelLookup:r})}};mapLabelFromJSX=(e,t)=>(this.store.keyboardNavigation.updateLabelMap(r=>(r[e]=t,r)),()=>{this.store.keyboardNavigation.updateLabelMap(t=>{const r=Is({},t);return delete r[e],r})});setJSXItemsOrderedChildrenIds=(e,t)=>{const r=e??Wc;this.store.update({itemOrderedChildrenIdsLookup:Is({},this.store.state.itemOrderedChildrenIdsLookup,{[r]:t}),itemChildrenIndexesLookup:Is({},this.store.state.itemChildrenIndexesLookup,{[r]:Fc(t)})})}}const Od={getInitialState:e=>e,updateStateFromParameters:e=>e,shouldIgnoreItemsStateUpdate:()=>!0};class Dd extends zd{jsxItems=(()=>new Md(this))();constructor(e){super(Is({},e,{items:Js}),"SimpleTreeView",Od)}updateStateFromParameters(e){super.updateStateFromParameters(Is({},e,{items:Js}))}}const Wd=Vs(),Fd=qe.styled("ul",{name:"MuiSimpleTreeView",slot:"Root"})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),Nd=ct.forwardRef(function(e,t){const o=Wd({props:e,name:"MuiSimpleTreeView"});"production"!==process.env.NODE_ENV&&null!=o.items&&Hs(["MUI X: The Simple Tree View component does not support the `items` prop.","If you want to add items, you need to pass them as JSX children.","Check the documentation for more details: https://mui.com/x/react-tree-view/simple-tree-view/items/."]);const{slots:a,slotProps:n,apiRef:i,parameters:l,forwardedProps:s}=function(e){const{apiRef:t,slots:r,slotProps:o,disabledItemsFocusable:a,onItemClick:n,itemChildrenIndentation:i,id:l,expandedItems:s,defaultExpandedItems:c,onExpandedItemsChange:d,onItemExpansionToggle:u,expansionTrigger:x,disableSelection:p,selectedItems:h,defaultSelectedItems:m,multiSelect:f,checkboxSelection:g,selectionPropagation:b,onSelectedItemsChange:v,onItemSelectionToggle:y,onItemFocus:j}=e,S=rc(e,oc);return{apiRef:t,slots:r,slotProps:o,parameters:ct.useMemo(()=>({disabledItemsFocusable:a,onItemClick:n,itemChildrenIndentation:i,id:l,expandedItems:s,defaultExpandedItems:c,onExpandedItemsChange:d,onItemExpansionToggle:u,expansionTrigger:x,disableSelection:p,selectedItems:h,defaultSelectedItems:m,multiSelect:f,checkboxSelection:g,selectionPropagation:b,onSelectedItemsChange:v,onItemSelectionToggle:y,onItemFocus:j}),[a,n,i,l,s,c,d,u,x,p,h,m,f,g,b,v,y,j]),forwardedProps:S}}(o),c=md(Dd,l),d=ct.useRef(null),u=function(e,t,r){const o=Pc(e,Dc.treeId),a=Pc(e,Qc.itemChildrenIndentation),n=Pc(e,Kc.isMultiSelectEnabled);return i=>Is({ref:r,role:"tree",id:o,"aria-multiselectable":n},t,i,{style:Is({},t.style,{"--TreeView-itemChildrenIndentation":"number"==typeof a?`${a}px`:a}),onFocus:t=>{i.onFocus?.(t),e.focus.handleRootFocus(t)},onBlur:t=>{i.onBlur?.(t),e.focus.handleRootBlur(t)}})}(c,s,Rs(t,d)),x=(e=>{const{classes:t}=e;return ct.useMemo(()=>Ls({root:["root"],item:["item"],itemContent:["itemContent"],itemGroupTransition:["itemGroupTransition"],itemIconContainer:["itemIconContainer"],itemLabel:["itemLabel"],itemCheckbox:["itemCheckbox"]},Ks,t),[t])})(o),p=a?.root??Fd,h=Fs({elementType:p,externalSlotProps:n?.root,className:x.root,getSlotProps:u,ownerState:o});return r.jsx(tc,{store:c,classes:x,slots:a,slotProps:n,apiRef:i,rootRef:d,children:r.jsx(dd,{itemId:null,idAttribute:null,children:r.jsx(ud.Provider,{value:0,children:r.jsx(p,Is({},h))})})})});"production"!==process.env.NODE_ENV&&(Nd.displayName="SimpleTreeView"),"production"!==process.env.NODE_ENV&&(Nd.propTypes={apiRef:oa.shape({current:oa.shape({focusItem:oa.func,getItem:oa.func,getItemDOMElement:oa.func,getItemOrderedChildrenIds:oa.func,getItemTree:oa.func,getParentId:oa.func,isItemExpanded:oa.func,setIsItemDisabled:oa.func,setItemExpansion:oa.func,setItemSelection:oa.func})}),checkboxSelection:oa.bool,children:oa.node,classes:oa.object,className:oa.string,defaultExpandedItems:oa.arrayOf(oa.string),defaultSelectedItems:oa.any,disabledItemsFocusable:oa.bool,disableSelection:oa.bool,expandedItems:oa.arrayOf(oa.string),expansionTrigger:oa.oneOf(["content","iconContainer"]),id:oa.string,itemChildrenIndentation:oa.oneOfType([oa.number,oa.string]),multiSelect:oa.bool,onExpandedItemsChange:oa.func,onItemClick:oa.func,onItemExpansionToggle:oa.func,onItemFocus:oa.func,onItemSelectionToggle:oa.func,onSelectedItemsChange:oa.func,selectedItems:oa.any,selectionPropagation:oa.shape({descendants:oa.bool,parents:oa.bool}),slotProps:oa.object,slots:oa.object,sx:oa.oneOfType([oa.arrayOf(oa.oneOfType([oa.func,oa.object,oa.bool])),oa.func,oa.object])});var Hd,Vd={exports:{}},Qd={};var Gd,qd={};
33
+ /**
34
+ * @license React
35
+ * react-is.development.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */"production"===process.env.NODE_ENV?Vd.exports=function(){if(Hd)return Qd;Hd=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),n=Symbol.for("react.consumer"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),x=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function h(p){if("object"==typeof p&&null!==p){var h=p.$$typeof;switch(h){case e:switch(p=p.type){case r:case a:case o:case s:case c:case x:return p;default:switch(p=p&&p.$$typeof){case i:case l:case u:case d:case n:return p;default:return h}}case t:return h}}}return Qd.ContextConsumer=n,Qd.ContextProvider=i,Qd.Element=e,Qd.ForwardRef=l,Qd.Fragment=r,Qd.Lazy=u,Qd.Memo=d,Qd.Portal=t,Qd.Profiler=a,Qd.StrictMode=o,Qd.Suspense=s,Qd.SuspenseList=c,Qd.isContextConsumer=function(e){return h(e)===n},Qd.isContextProvider=function(e){return h(e)===i},Qd.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Qd.isForwardRef=function(e){return h(e)===l},Qd.isFragment=function(e){return h(e)===r},Qd.isLazy=function(e){return h(e)===u},Qd.isMemo=function(e){return h(e)===d},Qd.isPortal=function(e){return h(e)===t},Qd.isProfiler=function(e){return h(e)===a},Qd.isStrictMode=function(e){return h(e)===o},Qd.isSuspense=function(e){return h(e)===s},Qd.isSuspenseList=function(e){return h(e)===c},Qd.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===a||e===o||e===s||e===c||"object"==typeof e&&null!==e&&(e.$$typeof===u||e.$$typeof===d||e.$$typeof===i||e.$$typeof===n||e.$$typeof===l||e.$$typeof===p||void 0!==e.getModuleId)},Qd.typeOf=h,Qd}():Vd.exports=(Gd||(Gd=1,"production"!==process.env.NODE_ENV&&function(){function e(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case o:case n:case a:case c:case d:case p:return e;default:switch(e=e&&e.$$typeof){case l:case s:case x:case u:case i:return e;default:return h}}case r:return h}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");qd.ContextConsumer=i,qd.ContextProvider=l,qd.Element=t,qd.ForwardRef=s,qd.Fragment=o,qd.Lazy=x,qd.Memo=u,qd.Portal=r,qd.Profiler=n,qd.StrictMode=a,qd.Suspense=c,qd.SuspenseList=d,qd.isContextConsumer=function(t){return e(t)===i},qd.isContextProvider=function(t){return e(t)===l},qd.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},qd.isForwardRef=function(t){return e(t)===s},qd.isFragment=function(t){return e(t)===o},qd.isLazy=function(t){return e(t)===x},qd.isMemo=function(t){return e(t)===u},qd.isPortal=function(t){return e(t)===r},qd.isProfiler=function(t){return e(t)===n},qd.isStrictMode=function(t){return e(t)===a},qd.isSuspense=function(t){return e(t)===c},qd.isSuspenseList=function(t){return e(t)===d},qd.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===n||e===a||e===c||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===x||e.$$typeof===u||e.$$typeof===l||e.$$typeof===i||e.$$typeof===s||e.$$typeof===h||void 0!==e.getModuleId)},qd.typeOf=e}()),qd);var Ud=Vd.exports;function Xd(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Kd(e){if(ct.isValidElement(e)||Ud.isValidElementType(e)||!Xd(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Kd(e[r])}),t}function Jd(e,t,r={clone:!0}){const o=r.clone?{...e}:e;return Xd(e)&&Xd(t)&&Object.keys(t).forEach(a=>{ct.isValidElement(t[a])||Ud.isValidElementType(t[a])?o[a]=t[a]:Xd(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Xd(e[a])?o[a]=Jd(e[a],t[a],r):r.clone?o[a]=Xd(t[a])?Kd(t[a]):t[a]:o[a]=t[a]}),o}function Yd(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":function(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>r.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${r} for the full message.`}(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Zd(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:o=5,...a}=e,n=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})})(t),i=Object.keys(n);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-o/100}${r})`}function c(e,a){const n=i.indexOf(a);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==n&&"number"==typeof t[i[n]]?t[i[n]]:a)-o/100}${r})`}return{keys:i,values:n,up:l,down:s,between:c,only:function(e){return i.indexOf(e)+1<i.length?c(e,i[i.indexOf(e)+1]):l(e)},not:function(e){const t=i.indexOf(e);return 0===t?l(i[1]):t===i.length-1?s(i[t]):c(e,i[i.indexOf(e)+1]).replace("@media","@media not all and")},unit:r,...a}}function $d(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(e=>e.startsWith("@container")).sort((e,t)=>{const r=/min-width:\s*([0-9.]+)/;return+(e.match(r)?.[1]||0)-+(t.match(r)?.[1]||0)});return r.length?r.reduce((e,r)=>{const o=t[r];return delete e[r],e[r]=o,e},{...t}):t}const _d={borderRadius:4},eu="production"!==process.env.NODE_ENV?oa.oneOfType([oa.number,oa.string,oa.object,oa.array]):{};function tu(e,t){return t?Jd(e,t,{clone:!1}):e}const ru={xs:0,sm:600,md:900,lg:1200,xl:1536},ou={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ru[e]}px)`},au={containerQueries:e=>({up:t=>{let r="number"==typeof t?t:ru[t]||t;return"number"==typeof r&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function nu(e,t,r){const o=e.theme||{};if(Array.isArray(t)){const e=o.breakpoints||ou;return t.reduce((o,a,n)=>(o[e.up(e.keys[n])]=r(t[n]),o),{})}if("object"==typeof t){const e=o.breakpoints||ou;return Object.keys(t).reduce((a,n)=>{if(i=e.keys,"@"===(l=n)||l.startsWith("@")&&(i.some(e=>l.startsWith(`@${e}`))||l.match(/^@\d/))){const e=function(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if("production"!==process.env.NODE_ENV)throw new Error(`MUI: The provided shorthand (${t}) is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.\nFor example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`);return null}const[,o,a]=r,n=Number.isNaN(+o)?o||0:+o;return e.containerQueries(a).up(n)}(o.containerQueries?o:au,n);e&&(a[e]=r(t[n],n))}else if(Object.keys(e.values||ru).includes(n)){a[e.up(n)]=r(t[n],n)}else{const e=n;a[e]=t[e]}var i,l;return a},{})}return r(t)}function iu(e,t){return e.reduce((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e},t)}function lu(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=r)return r}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function su(e,t,r,o=r){let a;return a="function"==typeof e?e(r):Array.isArray(e)?e[r]||o:lu(e,r)||o,t&&(a=t(a,o,e)),a}function cu(e){const{prop:t,cssProperty:r=e.prop,themeKey:o,transform:a}=e,n=e=>{if(null==e[t])return null;const n=e[t],i=lu(e.theme,o)||{};return nu(e,n,e=>{let o=su(i,a,e);return e===o&&"string"==typeof e&&(o=su(i,a,`${t}${"default"===e?"":Yd(e)}`,e)),!1===r?o:{[r]:o}})};return n.propTypes="production"!==process.env.NODE_ENV?{[t]:eu}:{},n.filterProps=[t],n}const du={m:"margin",p:"padding"},uu={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},xu={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},pu=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}(e=>{if(e.length>2){if(!xu[e])return[e];e=xu[e]}const[t,r]=e.split(""),o=du[t],a=uu[r]||"";return Array.isArray(a)?a.map(e=>o+e):[o+a]}),hu=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],mu=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],fu=[...hu,...mu];function gu(e,t,r,o){const a=lu(e,t,!0)??r;return"number"==typeof a||"string"==typeof a?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&"number"!=typeof e&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${e}.`),"string"==typeof a?a.startsWith("var(")&&0===e?0:a.startsWith("var(")&&1===e?a:`calc(${e} * ${a})`:a*e):Array.isArray(a)?e=>{if("string"==typeof e)return e;const r=Math.abs(e);"production"!==process.env.NODE_ENV&&(Number.isInteger(r)?r>a.length-1&&console.error([`MUI: The value provided (${r}) overflows.`,`The supported values are: ${JSON.stringify(a)}.`,`${r} > ${a.length-1}, you need to add the missing values.`].join("\n")):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join("\n")));const o=a[r];return e>=0?o:"number"==typeof o?-o:"string"==typeof o&&o.startsWith("var(")?`calc(-1 * ${o})`:`-${o}`}:"function"==typeof a?a:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${t}\` value (${a}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function bu(e){return gu(e,"spacing",8,"spacing")}function vu(e,t){return"string"==typeof t||null==t?t:e(t)}function yu(e,t,r,o){if(!t.includes(r))return null;const a=function(e,t){return r=>e.reduce((e,o)=>(e[o]=vu(t,r),e),{})}(pu(r),o);return nu(e,e[r],a)}function ju(e,t){const r=bu(e.theme);return Object.keys(e).map(o=>yu(e,t,o,r)).reduce(tu,{})}function Su(e){return ju(e,hu)}function Bu(e){return ju(e,mu)}function ku(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(r=>{e[r]=t}),e),{}),r=e=>Object.keys(e).reduce((r,o)=>t[o]?tu(r,t[o](e)):r,{});return r.propTypes="production"!==process.env.NODE_ENV?e.reduce((e,t)=>Object.assign(e,t.propTypes),{}):{},r.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),r}function Cu(e){return"number"!=typeof e?e:`${e}px solid`}function wu(e,t){return cu({prop:e,themeKey:"borders",transform:t})}Su.propTypes="production"!==process.env.NODE_ENV?hu.reduce((e,t)=>(e[t]=eu,e),{}):{},Su.filterProps=hu,Bu.propTypes="production"!==process.env.NODE_ENV?mu.reduce((e,t)=>(e[t]=eu,e),{}):{},Bu.filterProps=mu,"production"===process.env.NODE_ENV||fu.reduce((e,t)=>(e[t]=eu,e),{});const Tu=wu("border",Cu),Iu=wu("borderTop",Cu),Au=wu("borderRight",Cu),zu=wu("borderBottom",Cu),Ru=wu("borderLeft",Cu),Eu=wu("borderColor"),Lu=wu("borderTopColor"),Pu=wu("borderRightColor"),Mu=wu("borderBottomColor"),Ou=wu("borderLeftColor"),Du=wu("outline",Cu),Wu=wu("outlineColor"),Fu=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=gu(e.theme,"shape.borderRadius",4,"borderRadius"),r=e=>({borderRadius:vu(t,e)});return nu(e,e.borderRadius,r)}return null};Fu.propTypes="production"!==process.env.NODE_ENV?{borderRadius:eu}:{},Fu.filterProps=["borderRadius"],ku(Tu,Iu,Au,zu,Ru,Eu,Lu,Pu,Mu,Ou,Fu,Du,Wu);const Nu=e=>{if(void 0!==e.gap&&null!==e.gap){const t=gu(e.theme,"spacing",8,"gap"),r=e=>({gap:vu(t,e)});return nu(e,e.gap,r)}return null};Nu.propTypes="production"!==process.env.NODE_ENV?{gap:eu}:{},Nu.filterProps=["gap"];const Hu=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=gu(e.theme,"spacing",8,"columnGap"),r=e=>({columnGap:vu(t,e)});return nu(e,e.columnGap,r)}return null};Hu.propTypes="production"!==process.env.NODE_ENV?{columnGap:eu}:{},Hu.filterProps=["columnGap"];const Vu=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=gu(e.theme,"spacing",8,"rowGap"),r=e=>({rowGap:vu(t,e)});return nu(e,e.rowGap,r)}return null};Vu.propTypes="production"!==process.env.NODE_ENV?{rowGap:eu}:{},Vu.filterProps=["rowGap"];function Qu(e,t){return"grey"===t?t:e}ku(Nu,Hu,Vu,cu({prop:"gridColumn"}),cu({prop:"gridRow"}),cu({prop:"gridAutoFlow"}),cu({prop:"gridAutoColumns"}),cu({prop:"gridAutoRows"}),cu({prop:"gridTemplateColumns"}),cu({prop:"gridTemplateRows"}),cu({prop:"gridTemplateAreas"}),cu({prop:"gridArea"}));function Gu(e){return e<=1&&0!==e?100*e+"%":e}ku(cu({prop:"color",themeKey:"palette",transform:Qu}),cu({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Qu}),cu({prop:"backgroundColor",themeKey:"palette",transform:Qu}));const qu=cu({prop:"width",transform:Gu}),Uu=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const r=e.theme?.breakpoints?.values?.[t]||ru[t];return r?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Gu(t)}};return nu(e,e.maxWidth,t)}return null};Uu.filterProps=["maxWidth"];const Xu=cu({prop:"minWidth",transform:Gu}),Ku=cu({prop:"height",transform:Gu}),Ju=cu({prop:"maxHeight",transform:Gu}),Yu=cu({prop:"minHeight",transform:Gu});cu({prop:"size",cssProperty:"width",transform:Gu}),cu({prop:"size",cssProperty:"height",transform:Gu});ku(qu,Uu,Xu,Ku,Ju,Yu,cu({prop:"boxSizing"}));const Zu={border:{themeKey:"borders",transform:Cu},borderTop:{themeKey:"borders",transform:Cu},borderRight:{themeKey:"borders",transform:Cu},borderBottom:{themeKey:"borders",transform:Cu},borderLeft:{themeKey:"borders",transform:Cu},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Cu},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Fu},color:{themeKey:"palette",transform:Qu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Qu},backgroundColor:{themeKey:"palette",transform:Qu},p:{style:Bu},pt:{style:Bu},pr:{style:Bu},pb:{style:Bu},pl:{style:Bu},px:{style:Bu},py:{style:Bu},padding:{style:Bu},paddingTop:{style:Bu},paddingRight:{style:Bu},paddingBottom:{style:Bu},paddingLeft:{style:Bu},paddingX:{style:Bu},paddingY:{style:Bu},paddingInline:{style:Bu},paddingInlineStart:{style:Bu},paddingInlineEnd:{style:Bu},paddingBlock:{style:Bu},paddingBlockStart:{style:Bu},paddingBlockEnd:{style:Bu},m:{style:Su},mt:{style:Su},mr:{style:Su},mb:{style:Su},ml:{style:Su},mx:{style:Su},my:{style:Su},margin:{style:Su},marginTop:{style:Su},marginRight:{style:Su},marginBottom:{style:Su},marginLeft:{style:Su},marginX:{style:Su},marginY:{style:Su},marginInline:{style:Su},marginInlineStart:{style:Su},marginInlineEnd:{style:Su},marginBlock:{style:Su},marginBlockStart:{style:Su},marginBlockEnd:{style:Su},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Nu},rowGap:{style:Vu},columnGap:{style:Hu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Gu},maxWidth:{style:Uu},minWidth:{transform:Gu},height:{transform:Gu},maxHeight:{transform:Gu},minHeight:{transform:Gu},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const $u=function(){function e(e,t,r,o){const a={[e]:t,theme:r},n=o[e];if(!n)return{[e]:t};const{cssProperty:i=e,themeKey:l,transform:s,style:c}=n;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const d=lu(r,l)||{};if(c)return c(a);return nu(a,t,t=>{let r=su(d,s,t);return t===r&&"string"==typeof t&&(r=su(d,s,`${e}${"default"===t?"":Yd(t)}`,t)),!1===i?r:{[i]:r}})}return function t(r){const{sx:o,theme:a={},nested:n}=r||{};if(!o)return null;const i=a.unstable_sxConfig??Zu;function l(r){let o=r;if("function"==typeof r)o=r(a);else if("object"!=typeof r)return r;if(!o)return null;const l=function(e={}){const t=e.keys?.reduce((t,r)=>(t[e.up(r)]={},t),{});return t||{}}(a.breakpoints),s=Object.keys(l);let c=l;return Object.keys(o).forEach(r=>{const n=(l=o[r],s=a,"function"==typeof l?l(s):l);var l,s;if(null!=n)if("object"==typeof n)if(i[r])c=tu(c,e(r,n,a,i));else{const e=nu({theme:a},n,e=>({[r]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),r=new Set(t);return e.every(e=>r.size===Object.keys(e).length)}(e,n)?c=tu(c,e):c[r]=t({sx:n,theme:a,nested:!0})}else c=tu(c,e(r,n,a,i))}),!n&&a.modularCssLayers?{"@layer sx":$d(a,iu(s,c))}:$d(a,iu(s,c))}return Array.isArray(o)?o.map(l):l(o)}}();function _u(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||"function"!=typeof r.getColorSchemeSelector)return{};let o=r.getColorSchemeSelector(e);return"&"===o?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return r.palette.mode===e?t:{}}function ex(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}$u.filterProps=["sx"],function(e={},...t){const{breakpoints:r={},palette:o={},spacing:a,shape:n={},...i}=e,l=Zd(r),s=function(e=8,t=bu({spacing:e})){if(e.mui)return e;const r=(...e)=>("production"!==process.env.NODE_ENV&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`)),(0===e.length?[1]:e).map(e=>{const r=t(e);return"number"==typeof r?`${r}px`:r}).join(" "));return r.mui=!0,r}(a);let c=Jd({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:s,shape:{..._d,...n}},i);c=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function r(r,o){r.up=(...r)=>t(e.breakpoints.up(...r),o),r.down=(...r)=>t(e.breakpoints.down(...r),o),r.between=(...r)=>t(e.breakpoints.between(...r),o),r.only=(...r)=>t(e.breakpoints.only(...r),o),r.not=(...r)=>{const a=t(e.breakpoints.not(...r),o);return a.includes("not all and")?a.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):a}}const o={},a=e=>(r(o,e),o);return r(a),{...e,containerQueries:a}}(c),c.applyStyles=_u,c=t.reduce((e,t)=>Jd(e,t),c),c.unstable_sxConfig={...Zu,...i?.unstable_sxConfig},c.unstable_sx=function(e){return $u({sx:e,theme:this})}}();const tx=(e,t,r)=>"function"==typeof r?r(e,t):r,rx=e=>{const{runItemPlugins:t,publicAPI:r,store:o}=$s(),a=ct.useContext(ud),n=Pc(o,tx,e.itemId,a),{id:i,itemId:l,label:s,children:c,rootRef:d}=e,{rootRef:u,contentRef:x,propsEnhancers:p}=t(e),{interactions:h,status:m}=(({itemId:e,children:t})=>{const{store:r,publicAPI:o}=$s(),a=Pc(r,$c.isItemExpandable,e),n=Pc(r,Rd.isItemLoading,e),i=Pc(r,Rd.itemHasError,e),l=Ed(t)||a,s=Pc(r,$c.isItemExpanded,e),c=Pc(r,Td.isItemFocused,e),d=Pc(r,Kc.isItemSelected,e),u=Pc(r,Qc.isItemDisabled,e),x=Pc(r,Bd.isItemBeingEdited,e),p=Pc(r,Bd.isItemEditable,e),h={expandable:l,expanded:s,focused:c,selected:d,disabled:u,editing:x,editable:p,loading:n,error:i},m=()=>{r.labelEditing&&(x?r.labelEditing.setEditedItem(null):r.labelEditing.setEditedItem(e))};return{interactions:{handleExpansion:t=>{if(h.disabled)return;h.focused||r.focus.focusItem(t,e);const o=Kc.isMultiSelectEnabled(r.state)&&(t.shiftKey||t.ctrlKey||t.metaKey);!h.expandable||o&&$c.isItemExpanded(r.state,e)||r.expansion.setItemExpansion({event:t,itemId:e})},handleSelection:t=>{Kc.canItemBeSelected(r.state,e)&&(h.focused||h.editing||r.focus.focusItem(t,e),Kc.isMultiSelectEnabled(r.state)&&(t.shiftKey||t.ctrlKey||t.metaKey)?t.shiftKey?r.selection.expandSelectionRange(t,e):r.selection.setItemSelection({event:t,itemId:e,keepExistingSelection:!0}):r.selection.setItemSelection({event:t,itemId:e,shouldBeSelected:!0}))},handleCheckboxSelection:t=>{const o=t.nativeEvent.shiftKey,a=Kc.isMultiSelectEnabled(r.state);a&&o?r.selection.expandSelectionRange(t,e):r.selection.setItemSelection({event:t,itemId:e,keepExistingSelection:a,shouldBeSelected:t.target.checked})},toggleItemEditing:m,handleSaveItemLabel:(t,o)=>{r.labelEditing&&Bd.isItemBeingEdited(r.state,e)&&(r.labelEditing.updateItemLabel(e,o),m(),r.focus.focusItem(t,e))},handleCancelItemLabelEditing:t=>{r.labelEditing&&Bd.isItemBeingEdited(r.state,e)&&(m(),r.focus.focusItem(t,e))}},status:h,publicAPI:o}})({itemId:l,children:c}),f=ct.useRef(null),g=ct.useRef(null),b=Rs(d,u,f),v=Rs(x,g),y=ct.useRef(null),j=Pc(o,Kc.isCheckboxSelectionEnabled),S=Pc(o,Dc.treeItemIdAttribute,l,i),B=Pc(o,Td.isItemTheDefaultFocusableItem,l),k={rootRefObject:f,contentRefObject:g,interactions:h},C=e=>t=>{if(e.onBlur?.(t),t.defaultMuiPrevented)return;const r=o.items.getItemDOMElement(l);m.editing||t.relatedTarget&&nd(t.relatedTarget,r)&&(t.target&&"labelInput"===t.target?.dataset?.element&&nd(t.target,r)||"labelInput"===t.relatedTarget?.dataset?.element)||o.focus.removeFocusedItem()},w=e=>t=>{e.onKeyDown?.(t),t.defaultMuiPrevented||"labelInput"===t.target?.dataset?.element||o.keyboardNavigation.handleItemKeyDown(t,l)},T=e=>t=>{e.onMouseDown?.(t),t.defaultMuiPrevented||(t.shiftKey||t.ctrlKey||t.metaKey||m.disabled)&&t.preventDefault()};return{getContextProviderProps:()=>({itemId:l,id:i}),getRootProps:(t={})=>{const r=Is({},Os(e),Os(t)),a=Is({},r,{ref:b,role:"treeitem",tabIndex:B?0:-1,id:S,"aria-expanded":m.expandable?m.expanded:void 0,"aria-disabled":m.disabled||void 0},t,{style:Is({},t.style??{},{"--TreeView-itemDepth":n}),onFocus:(i=r,e=>{i.onFocus?.(e),e.defaultMuiPrevented||!m.focused&&Qc.canItemBeFocused(o.state,l)&&e.currentTarget===e.target&&o.focus.focusItem(e,l)}),onBlur:C(r),onKeyDown:w(r)});var i;const s=p.root?.(Is({},k,{externalEventHandlers:r}))??{};return Is({},a,s)},getContentProps:(e={})=>{const t=Os(e),r=Is({},t,e,{ref:v,onClick:(a=t,e=>{a.onClick?.(e),o.items.handleItemClick(e,l),e.defaultMuiPrevented||y.current?.contains(e.target)||("content"===$c.triggerSlot(o.state)&&h.handleExpansion(e),j||h.handleSelection(e))}),onMouseDown:T(t),status:m});var a;["expanded","selected","focused","disabled","editing","editable"].forEach(e=>{m[e]&&(r[`data-${e}`]="")});const n=p.content?.(Is({},k,{externalEventHandlers:t}))??{};return Is({},r,n)},getGroupTransitionProps:(e={})=>Is({},Os(e),{unmountOnExit:!0,component:"ul",role:"group",in:m.expanded,children:c},e),getIconContainerProps:(e={})=>{const t=Os(e);return Is({},t,e,{onClick:(r=t,e=>{r.onClick?.(e),e.defaultMuiPrevented||"iconContainer"===$c.triggerSlot(o.state)&&h.handleExpansion(e)})});var r},getCheckboxProps:(e={})=>{const t=Os(e),r=Is({},t,{ref:y,"aria-hidden":!0},e),o=p.checkbox?.(Is({},k,{externalEventHandlers:t}))??{};return Is({},r,o)},getLabelProps:(e={})=>{const t=Is({},Os(e)),r=Is({},t,{children:s},e,{onDoubleClick:(o=t,e=>{o.onDoubleClick?.(e),e.defaultMuiPrevented||h.toggleItemEditing()})});var o;const a=p.label?.(Is({},k,{externalEventHandlers:t}))??{};return Is({},a,r)},getLabelInputProps:(e={})=>{const t=Os(e),r=p.labelInput?.(Is({},k,{externalEventHandlers:t}))??{};return Is({},e,r)},getDragAndDropOverlayProps:(e={})=>{const t=Os(e),r=p.dragAndDropOverlay?.(Is({},k,{externalEventHandlers:t}))??{};return Is({},e,r)},getErrorContainerProps:(e={})=>Is({},Os(e),e),getLoadingContainerProps:(e={})=>Is({size:"12px",thickness:6},Os(e),e),rootRef:b,status:m,publicAPI:r}};function ox(e){return Us("MuiTreeItem",e)}Xs("MuiTreeItem",["root","content","groupTransition","iconContainer","label","checkbox","labelInput","dragAndDropOverlay","errorIcon","loadingIcon","expanded","selected","focused","disabled","editable","editing"]);const ax=Ke.createSvgIcon(r.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"TreeViewExpandIcon"),nx=Ke.createSvgIcon(r.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"TreeViewCollapseIcon"),ix=["ownerState"];function lx(e,t,r){return void 0!==e?e:void 0!==t?t:r}function sx(e){const{slots:t,slotProps:o,status:a}=e,{slots:n,slotProps:i}=ec(),l={collapseIcon:lx(t?.collapseIcon,n.collapseIcon,nx),expandIcon:lx(t?.expandIcon,n.expandIcon,ax),endIcon:lx(t?.endIcon,n.endIcon),icon:t?.icon};let s;s=l?.icon?"icon":a.expandable?a.expanded?"collapseIcon":"expandIcon":"endIcon";const c=l[s],d=rc(Fs({elementType:c,externalSlotProps:e=>Is({},Ws(i[s],e),Ws(o?.[s],e)),ownerState:{}}),ix);return c?r.jsx(c,Is({},d)):null}"production"!==process.env.NODE_ENV&&(sx.propTypes={slotProps:oa.object,slots:oa.object,status:oa.shape({disabled:oa.bool.isRequired,editable:oa.bool.isRequired,editing:oa.bool.isRequired,error:oa.bool.isRequired,expandable:oa.bool.isRequired,expanded:oa.bool.isRequired,focused:oa.bool.isRequired,loading:oa.bool.isRequired,selected:oa.bool.isRequired}).isRequired});const cx=qe.styled("div",{name:"MuiTreeItemDragAndDropOverlay",slot:"Root",shouldForwardProp:e=>ex(e)&&"action"!==e})(({theme:e})=>({position:"absolute",left:0,display:"flex",top:0,bottom:0,right:0,pointerEvents:"none",variants:[{props:{action:"make-child"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderRadius:e.shape.borderRadius,backgroundColor:e.vars?`rgba(${e.vars.palette.primary.darkChannel} / ${e.vars.palette.action.focusOpacity})`:qe.alpha(e.palette.primary.dark,e.palette.action.focusOpacity)}},{props:{action:"reorder-above"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderTop:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"reorder-below"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"move-to-parent"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}}]}));function dx(e){return null==e.action?null:r.jsx(cx,Is({},e))}function ux(e){const{children:t,itemId:o,id:a}=e,{wrapItem:n,store:i}=$s(),l=Pc(i,Dc.treeItemIdAttribute,o,a);return r.jsx(ct.Fragment,{children:n({children:t,itemId:o,store:i,idAttribute:l})})}"production"!==process.env.NODE_ENV&&(dx.propTypes={action:oa.oneOf(["make-child","move-to-parent","reorder-above","reorder-below"]),style:oa.object}),"production"!==process.env.NODE_ENV&&(ux.propTypes={children:oa.node,id:oa.string,itemId:oa.string.isRequired});const xx=qe.styled("input",{name:"MuiTreeItem",slot:"LabelInput"})(({theme:e})=>Is({},e.typography.body1,{width:"100%",backgroundColor:(e.vars||e).palette.background.paper,borderRadius:e.shape.borderRadius,border:"none",padding:"0 2px",boxSizing:"border-box","&:focus":{outline:`1px solid ${(e.vars||e).palette.primary.main}`}})),px=["visible"],hx=["id","itemId","label","disabled","disableSelection","children","slots","slotProps","classes"],mx=Vs(),fx=qe.styled("li",{name:"MuiTreeItem",slot:"Root"})({listStyle:"none",margin:0,padding:0,outline:0}),gx=qe.styled("div",{name:"MuiTreeItem",slot:"Content",shouldForwardProp:e=>ex(e)&&"status"!==e})(({theme:e})=>({padding:e.spacing(.5,1),paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`,borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&[data-disabled]":{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent",cursor:"auto"},"&[data-focused]":{backgroundColor:(e.vars||e).palette.action.focus},"&[data-selected]":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:qe.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:qe.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:qe.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}},"&[data-selected][data-focused]":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:qe.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}})),bx=qe.styled("div",{name:"MuiTreeItem",slot:"Label",shouldForwardProp:e=>ex(e)&&"editable"!==e})(({theme:e})=>Is({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative",overflow:"hidden"},e.typography.body1,{variants:[{props:({editable:e})=>e,style:{paddingLeft:"2px"}}]})),vx=qe.styled("div",{name:"MuiTreeItem",slot:"IconContainer"})({width:16,display:"flex",flexShrink:0,justifyContent:"center",position:"relative",cursor:"inherit","& svg":{fontSize:18}}),yx=qe.styled(Ue,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition})({margin:0,padding:0}),jx=qe.styled("div",{name:"MuiTreeItem",slot:"ErrorIcon"})({position:"absolute",right:-3,width:7,height:7,borderRadius:"50%",backgroundColor:"red"}),Sx=qe.styled(ze,{name:"MuiTreeItem",slot:"LoadingIcon"})({color:"text.primary"}),Bx=qe.styled(ct.forwardRef((e,t)=>{const{visible:o}=e,a=rc(e,px);return o?r.jsx(Xe,Is({},a,{ref:t})):null}),{name:"MuiTreeItem",slot:"Checkbox"})({padding:0});"production"!==process.env.NODE_ENV&&(Bx.displayName="TreeItemCheckbox");const kx=ct.forwardRef(function(e,t){const o=mx({props:e,name:"MuiTreeItem"}),{id:a,itemId:n,label:i,disabled:l,disableSelection:s,children:c,slots:d={},slotProps:u={},classes:x}=o,p=rc(o,hx),{getContextProviderProps:h,getRootProps:m,getContentProps:f,getIconContainerProps:g,getCheckboxProps:b,getLabelProps:v,getGroupTransitionProps:y,getLabelInputProps:j,getDragAndDropOverlayProps:S,getErrorContainerProps:B,getLoadingContainerProps:k,status:C}=rx({id:a,itemId:n,children:c,label:i,disabled:l,disableSelection:s}),w=(e=>{const{classes:t}=ec();return Ls({root:["root"],content:["content"],iconContainer:["iconContainer"],checkbox:["checkbox"],label:["label"],groupTransition:["groupTransition"],labelInput:["labelInput"],dragAndDropOverlay:["dragAndDropOverlay"],errorIcon:["errorIcon"],loadingIcon:["loadingIcon"],expanded:["expanded"],editing:["editing"],editable:["editable"],selected:["selected"],focused:["focused"],disabled:["disabled"]},ox,Is({},e,{root:Ms(e?.root,t.root),content:Ms(e?.content,t.itemContent),iconContainer:Ms(e?.iconContainer,t.itemIconContainer),checkbox:Ms(e?.checkbox,t.itemCheckbox),label:Ms(e?.label,t.itemLabel),groupTransition:Ms(e?.groupTransition,t.itemGroupTransition),labelInput:Ms(e?.labelInput,t.itemLabelInput),dragAndDropOverlay:Ms(e?.dragAndDropOverlay,t.itemDragAndDropOverlay),errorIcon:Ms(e?.errorIcon,t.itemErrorIcon),loadingIcon:Ms(e?.loadingIcon,t.itemLoadingIcon)}))})(x),T=d.root??fx,I=Fs({elementType:T,getSlotProps:m,externalForwardedProps:p,externalSlotProps:u.root,additionalProps:{ref:t},ownerState:{},className:w.root}),A=d.content??gx,z=Fs({elementType:A,getSlotProps:f,externalSlotProps:u.content,ownerState:{},className:Ms(w.content,C.expanded&&w.expanded,C.selected&&w.selected,C.focused&&w.focused,C.disabled&&w.disabled,C.editing&&w.editing,C.editable&&w.editable)}),R=d.iconContainer??vx,E=Fs({elementType:R,getSlotProps:g,externalSlotProps:u.iconContainer,ownerState:{},className:w.iconContainer}),L=d.label??bx,P=Fs({elementType:L,getSlotProps:v,externalSlotProps:u.label,ownerState:{},className:w.label}),M=d.checkbox??Bx,O=Fs({elementType:M,getSlotProps:b,externalSlotProps:u.checkbox,ownerState:{},className:w.checkbox}),D=d.groupTransition??void 0,W=Fs({elementType:D,getSlotProps:y,externalSlotProps:u.groupTransition,ownerState:{},className:w.groupTransition}),F=d.labelInput??xx,N=Fs({elementType:F,getSlotProps:j,externalSlotProps:u.labelInput,ownerState:{},className:w.labelInput}),H=d.dragAndDropOverlay??dx,V=Fs({elementType:H,getSlotProps:S,externalSlotProps:u.dragAndDropOverlay,ownerState:{},className:w.dragAndDropOverlay}),Q=d.errorIcon??jx,G=Fs({elementType:Q,getSlotProps:B,externalSlotProps:u.errorIcon,ownerState:{},className:w.errorIcon}),q=d.loadingIcon??Sx,U=Fs({elementType:q,getSlotProps:k,externalSlotProps:u.loadingIcon,ownerState:{},className:w.loadingIcon});return r.jsx(ux,Is({},h(),{children:r.jsxs(T,Is({},I,{children:[r.jsxs(A,Is({},z,{children:[r.jsxs(R,Is({},E,{children:[C.error&&r.jsx(Q,Is({},G)),C.loading?r.jsx(q,Is({},U)):r.jsx(sx,{status:C,slots:d,slotProps:u})]})),r.jsx(M,Is({},O)),C.editing?r.jsx(F,Is({},N)):r.jsx(L,Is({},P)),r.jsx(H,Is({},V))]})),c&&r.jsx(yx,Is({as:D},W))]}))}))});"production"!==process.env.NODE_ENV&&(kx.displayName="TreeItem"),"production"!==process.env.NODE_ENV&&(kx.propTypes={children:oa.any,classes:oa.object,className:oa.string,disabled:oa.bool,disableSelection:oa.bool,id:oa.string,itemId:oa.string.isRequired,label:oa.node,onBlur:oa.func,onFocus:function(e,t,r,o,a){if("production"===process.env.NODE_ENV)return null;const n=a||t;return void 0!==e[t]?new Error(`The prop \`${n}\` is not supported. Please remove it.`):null},onKeyDown:oa.func,slotProps:oa.object,slots:oa.object,sx:oa.oneOfType([oa.arrayOf(oa.oneOfType([oa.func,oa.object,oa.bool])),oa.func,oa.object])});const Cx=e=>e.charAt(0).toUpperCase()+e.slice(1),wx={compact:{minHeight:"24px",fontSize:"13px",py:"2px",px:"10px",iconSize:16,gap:"6px"},default:{minHeight:"32px",fontSize:"14px",py:"4px",px:"12px",iconSize:18,gap:"8px"}},Tx={none:{},slide:{"& .MuiCollapse-root":{transition:"all 0.25s ease"}},spring:{"& .MuiCollapse-root":{transition:"all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1)"}}};function Ix(e){return{outline:"none","&.Mui-focused > .MuiTreeItem-content":{outline:"3px solid var(--Focus-Visible)",outlineOffset:"-3px"},"&:focus-visible > .MuiTreeItem-content":{outline:"3px solid var(--Focus-Visible)",outlineOffset:"-3px"},"& > .MuiTreeItem-content":{minHeight:e.minHeight,fontSize:e.fontSize,fontFamily:"inherit",color:"var(--Quiet)",padding:"0 8px",borderRadius:"var(--Style-Border-Radius)",border:"1px solid transparent",transition:"color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease",backgroundColor:"transparent",outline:"none","&:hover":{color:"var(--Text)",backgroundColor:"var(--Hover)"},"&:active":{color:"var(--Text)",backgroundColor:"var(--Pressed)"},"&.Mui-selected":{color:"var(--Text)",fontWeight:600,backgroundColor:"var(--Pressed)",padding:"0 8px","&:hover":{backgroundColor:"var(--Hover)"}},"&.Mui-disabled":{opacity:.45}},"& > .MuiTreeItem-content .MuiTreeItem-label":{fontSize:e.fontSize,fontFamily:"inherit",lineHeight:e.minHeight,padding:0,width:"100%"},"& > .MuiTreeItem-content .MuiTreeItem-iconContainer":{width:e.iconSize+"px",color:"inherit",zIndex:1},"& > .MuiTreeItem-group":{marginLeft:"12px",borderLeft:"1px solid var(--Border)",paddingLeft:"8px"}}}function Ax({item:e,d:o,isCompact:a}){const n=a?Kt:Vt;return r.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",gap:o.gap,width:"100%"},children:[e.icon&&r.jsx(dr,{size:"small",sx:{color:"inherit",flexShrink:0},children:e.icon}),r.jsx(n,{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:"inherit",fontWeight:"inherit"},children:e.label}),e.badge&&r.jsx(t.Box,{sx:{flexShrink:0},children:e.badge})]})}function zx(e=[],t="default",o="primary",a="default",n=[]){const i=wx[t]||wx.default,l="compact"===t;return Cx(o),e.map(e=>r.jsx(kx,{itemId:e.id,disabled:e.disabled,label:r.jsx(Ax,{item:e,d:i,isCompact:l}),sx:{...Ix(i),...e.sx||{}},children:e.children&&e.children.length>0?zx(e.children,t,o,a,n):null},e.id))}function Rx({color:o="default",variant:a="solid",density:n="default",animation:i="slide",selectionStyle:l,items:s=Ex,selectionMode:c="single",checkboxSelection:d=!1,disableSelection:u=!1,disabledItemsFocusable:p=!1,defaultExpandedItems:h,expandedItems:m,onExpandedItemsChange:f,selectedItems:g,onSelectedItemsChange:b,onItemExpansionToggle:v,onItemSelectionToggle:y,slots:j,"aria-label":S="Tree view",className:B="",sx:k={},...C}){const w=l||a,T=Cx(o),I="light"===w?T+"-Light":T,[A,z]=e.useState(g||("multi"===c?[]:null)),R=void 0!==g?g:A,E=Array.isArray(R)?R:R?[R]:[],L=e.useCallback((e,t)=>{void 0===g&&z(t),b?.(e,t)},[g,b]),P={};return void 0!==m&&(P.expandedItems=m),void 0!==f&&(P.onExpandedItemsChange=f),void 0!==h&&(P.defaultExpandedItems=h),r.jsx(t.Box,{"data-theme":I,"data-surface":"Surface-Dim",className:"omni-treeview omni-treeview-"+w+" omni-treeview-"+o+" omni-treeview-"+n+(B?" "+B:""),sx:{backgroundColor:"var(--Background)",borderRadius:"var(--Style-Border-Radius)",overflow:"hidden",...Tx[i]||{},...k},children:r.jsx(Nd,{"aria-label":S,multiSelect:"multi"===c,checkboxSelection:d,disableSelection:u,disabledItemsFocusable:p,selectedItems:R,onSelectedItemsChange:L,onItemExpansionToggle:v,onItemSelectionToggle:y,slots:{expandIcon:()=>r.jsx(dr,{size:"small",sx:{color:"inherit"},children:r.jsx(Oe,{})}),collapseIcon:()=>r.jsx(dr,{size:"small",sx:{color:"inherit"},children:r.jsx(x,{})}),...j},sx:{p:"8px","& .MuiTreeItem-root":{fontFamily:"inherit"},"& .MuiTreeItem-content.Mui-focused":{outline:"none"},"& .MuiTreeItem-content:focus-visible":{outline:"none"}},...P,...C,children:zx(s,n,o,w,E)})})}const Ex=[{id:"1",label:"Design System",children:[{id:"1-1",label:"Foundations",children:[{id:"1-1-1",label:"Colors"},{id:"1-1-2",label:"Typography"},{id:"1-1-3",label:"Spacing"}]},{id:"1-2",label:"Components",children:[{id:"1-2-1",label:"Buttons"},{id:"1-2-2",label:"Inputs"},{id:"1-2-3",label:"Navigation",disabled:!0}]}]},{id:"2",label:"Tokens",children:[{id:"2-1",label:"Light Mode"},{id:"2-2",label:"Dark Mode"}]},{id:"3",label:"Changelog"}],Lx=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",Px=[{id:"home",label:"Home"},{id:"products",label:"Products",children:[{id:"featured",label:"Featured"},{id:"new",label:"New Arrivals"},{id:"sale",label:"On Sale"}]},{id:"about",label:"About"},{id:"contact",label:"Contact"}];function Mx({label:e,selected:t,onClick:o}){return r.jsx(Ur,{selected:t,variant:t?"default":"default-outline",size:"small",onClick:o,children:e})}const Ox={small:{minHeight:"120px",padding:"16px",iconSize:"20px",gap:1},medium:{minHeight:"200px",padding:"32px 24px",iconSize:"32px",gap:2},large:{minHeight:"300px",padding:"48px 24px",iconSize:"48px",gap:3}};const Dx={small:{px:"12px",py:"8px",fontSize:"13px",iconSize:"18px",gap:"8px"},medium:{px:"16px",py:"12px",fontSize:"14px",iconSize:"20px",gap:"10px"},large:{px:"20px",py:"14px",fontSize:"16px",iconSize:"22px",gap:"12px"}};function Wx({children:e,variant:o="light",color:a="info",size:n="medium",startDecorator:i,endDecorator:l,className:s="",sx:c={},...d}){const u=(e=>e.charAt(0).toUpperCase()+e.slice(1))("default"===a?"Default":a),x=Dx[n]||Dx.medium,p="light"===o?"default"===a?"Default":u+"-Light":u,h="var(--Buttons-"+u+"-Border)",m=r.jsxs(r.Fragment,{children:[i&&r.jsx(t.Box,{className:"alert-start-decorator",sx:{display:"inline-flex",alignItems:"center",fontSize:x.iconSize,lineHeight:1,flexShrink:0,mt:"2px"},children:i}),r.jsx(t.Box,{className:"alert-message",sx:{flex:1,minWidth:0},children:"string"==typeof e?"small"===n?r.jsx(Vt,{children:e}):r.jsx(Gt,{children:e}):e}),l&&r.jsx(t.Box,{className:"alert-end-decorator",sx:{display:"inline-flex",alignItems:"flex-start",flexShrink:0,gap:x.gap,paddingTop:"2px"},children:l})]});return r.jsx(t.Box,{role:"alert",className:"alert alert-"+o+" alert-"+n+" alert-"+a+" "+s,sx:{border:"1px solid "+h,borderRadius:"var(--Style-Border-Radius)",overflow:"hidden",boxShadow:Tr,...c},...d,children:r.jsx(t.Box,{"data-theme":p,"data-surface":"Surface",className:"alert-inner",sx:{display:"flex",alignItems:"flex-start",gap:x.gap,padding:x.py+" "+x.px,fontSize:x.fontSize,fontFamily:"inherit",lineHeight:1.5,color:"var(--Text)",backgroundColor:"var(--Background)",borderRadius:"calc(var(--Style-Border-Radius) - 1px)"},children:m})})}const Fx=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",Nx=[{label:"Default",colors:["default"]},{label:"Theme",colors:["primary","secondary","tertiary","neutral"]},{label:"State",colors:["info","success","warning","error"]}],Hx={info:r.jsx(d,{}),success:r.jsx(l,{}),warning:r.jsx(s,{}),error:r.jsx(c,{})};function Vx({label:e,selected:t,onClick:o}){return r.jsx(Ur,{selected:t,variant:t?"default":"default-outline",size:"small",onClick:o,children:e})}function Qx({color:e,selected:o,onClick:n}){const i=Fx(e);return r.jsx(t.Box,{component:"button",onClick:()=>n(e),"aria-label":"Select "+i,"aria-pressed":o,title:i,sx:{width:"var(--Button-Height)",height:"var(--Button-Height)",borderRadius:"4px",backgroundColor:"var(--Buttons-"+i+"-Button)",border:o?"2px solid var(--Text)":"1px solid var(--Border)",outline:o?"2px solid var(--Focus-Visible)":"2px solid transparent",outlineOffset:"1px",cursor:"pointer",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",transition:"transform 0.1s ease","&:hover":{transform:"scale(1.1)"}},children:o&&r.jsx(a,{sx:{fontSize:16,color:"var(--Buttons-"+i+"-Text)",pointerEvents:"none"}})})}const Gx={small:{px:"12px",py:"8px",fontSize:"13px",gap:"8px",minWidth:"240px"},medium:{px:"16px",py:"10px",fontSize:"14px",gap:"12px",minWidth:"300px"},large:{px:"20px",py:"14px",fontSize:"16px",gap:"16px",minWidth:"360px"}};function qx({children:o,open:a=!1,onClose:n,variant:i="light",color:l="info",size:s="medium",anchor:c="bottom",autoHideDuration:d,startDecorator:u,endDecorator:x,action:p,className:h="",sx:m={},...f}){const g=e.useRef(null),b=(e=>e.charAt(0).toUpperCase()+e.slice(1))("default"===l?"Default":l),v=Gx[s]||Gx.medium,y="small"===s?Vt:Gt,j="light"===i?"default"===l?"Default":b+"-Light":b,S="var(--Buttons-"+b+"-Border)";e.useEffect(()=>{if(a&&d&&d>0)return g.current=setTimeout(()=>{n?.({},"timeout")},d),()=>clearTimeout(g.current)},[a,d,n]),e.useEffect(()=>{if(!a)return;const e=e=>{"Escape"===e.key&&n?.(e,"escapeKeyDown")};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[a,n]);const B=e.useCallback(()=>{g.current&&clearTimeout(g.current)},[]),k=e.useCallback(()=>{a&&d&&d>0&&(g.current=setTimeout(()=>{n?.({},"timeout")},d))},[a,d,n]),C="top"===c?{from:{transform:"translateX(-50%) translateY(-120%)"},to:{transform:"translateX(-50%) translateY(0)"}}:{from:{transform:"translateX(-50%) translateY(120%)"},to:{transform:"translateX(-50%) translateY(0)"}};return a?r.jsx(t.Box,{role:"alert","aria-live":"polite","aria-atomic":"true",onMouseEnter:B,onMouseLeave:k,className:"snackbar snackbar-"+i+" snackbar-"+s+" snackbar-"+c+" snackbar-"+l+" "+h,sx:{position:"fixed",left:"50%",transform:"translateX(-50%)",..."top"===c?{top:"16px"}:{bottom:"16px"},zIndex:1400,minWidth:v.minWidth,maxWidth:"min(560px, calc(100vw - 32px))",border:"1px solid "+S,borderRadius:"var(--Style-Border-Radius)",boxShadow:Tr,overflow:"hidden",animation:"snackbar-slide-in 0.3s ease forwards","@keyframes snackbar-slide-in":C,...m},...f,children:r.jsxs(t.Box,{"data-theme":j,"data-surface":"Surface",sx:{display:"flex",alignItems:"center",gap:v.gap,padding:v.py+" "+v.px,fontSize:v.fontSize,fontFamily:"inherit",lineHeight:1.4,color:"var(--Text)",backgroundColor:"var(--Background)",borderRadius:"calc(var(--Style-Border-Radius) - 1px)"},children:[u&&r.jsx(t.Box,{sx:{display:"inline-flex",flexShrink:0,lineHeight:1},children:u}),r.jsx(t.Box,{sx:{flex:1,minWidth:0},children:"string"==typeof o?r.jsx(y,{children:o}):o}),p&&r.jsx(t.Box,{sx:{display:"inline-flex",flexShrink:0},children:p}),x&&r.jsx(t.Box,{sx:{display:"inline-flex",flexShrink:0,lineHeight:1},children:x}),n&&r.jsx(Ur,{iconOnly:!0,variant:"ghost",size:"small",onClick:e=>n(e,"closeClick"),"aria-label":"Close notification",sx:{flexShrink:0,ml:"4px"},children:r.jsx(dr,{size:"small",children:r.jsx(Se,{})})})]})}):null}const Ux=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",Xx=[{label:"Default",colors:["default"]},{label:"Theme",colors:["primary","secondary","tertiary","neutral"]},{label:"State",colors:["info","success","warning","error"]}],Kx={info:r.jsx(d,{}),success:r.jsx(l,{}),warning:r.jsx(s,{}),error:r.jsx(c,{})};function Jx({label:e,selected:t,onClick:o}){return r.jsx(Ur,{selected:t,variant:t?"default":"default-outline",size:"small",onClick:o,children:e})}function Yx({color:e,selected:o,onClick:n}){const i=Ux(e);return r.jsx(t.Box,{component:"button",onClick:()=>n(e),"aria-label":"Select "+i,"aria-pressed":o,title:i,sx:{width:"var(--Button-Height)",height:"var(--Button-Height)",borderRadius:"4px",backgroundColor:"var(--Buttons-"+i+"-Button)",border:o?"2px solid var(--Text)":"1px solid var(--Border)",outline:o?"2px solid var(--Focus-Visible)":"2px solid transparent",outlineOffset:"1px",cursor:"pointer",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",transition:"transform 0.1s ease","&:hover":{transform:"scale(1.1)"}},children:o&&r.jsx(a,{sx:{fontSize:16,color:"var(--Buttons-"+i+"-Text)",pointerEvents:"none"}})})}const Zx={default:"Default",primary:"Primary",secondary:"Secondary",tertiary:"Tertiary",white:"Neutral",black:"Neutral",info:"Info",success:"Success",warning:"Warning",error:"Error"},$x={small:{diameter:24,thickness:3,fontSize:"9px",labelSize:"0px"},medium:{diameter:40,thickness:4,fontSize:"12px",labelSize:"12px"},large:{diameter:56,thickness:5,fontSize:"14px",labelSize:"14px"}};function _x({value:o,color:a="primary",size:n="medium",thickness:i,showValue:l=!1,children:s,className:c="",sx:d={},...u}){const x=Zx[a]||"Primary",p=$x[n]||$x.medium,h=i||p.thickness,m=null!=o,f=m?Math.min(100,Math.max(0,o)):0,g=(p.diameter-h)/2,b=2*Math.PI*g,v=m?b-f/100*b:.75*b,y="var(--Buttons-"+x+"-Border)",j="cp-grad-"+e.useId().replace(/:/g,"");return r.jsxs(t.Box,{role:"progressbar","aria-valuenow":m?Math.round(f):void 0,"aria-valuemin":m?0:void 0,"aria-valuemax":m?100:void 0,"aria-label":m?Math.round(f)+"% progress":"Loading",className:"circular-progress circular-progress-"+n+" circular-progress-"+a+(m?" circular-progress-value":" circular-progress-indeterminate")+" "+c,sx:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:p.diameter+"px",height:p.diameter+"px",flexShrink:0,...!m&&{animation:"circular-progress-spin 1.2s linear infinite","@keyframes circular-progress-spin":{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}},...d},...u,children:[r.jsxs("svg",{viewBox:"0 0 "+p.diameter+" "+p.diameter,width:p.diameter,height:p.diameter,style:{position:"absolute",top:0,left:0,transform:"rotate(-90deg)"},children:[r.jsx("defs",{children:r.jsxs("linearGradient",{id:j,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[r.jsx("stop",{offset:"0%",stopColor:y,stopOpacity:"0"}),r.jsx("stop",{offset:"100%",stopColor:y,stopOpacity:"1"})]})}),r.jsx("circle",{cx:p.diameter/2,cy:p.diameter/2,r:g,fill:"none",stroke:"var(--Border-Variant)",strokeWidth:h,className:"circular-progress-track"}),r.jsx("circle",{cx:p.diameter/2,cy:p.diameter/2,r:g,fill:"none",stroke:"url(#"+j+")",strokeWidth:h,strokeDasharray:b,strokeDashoffset:v,strokeLinecap:"round",className:"circular-progress-indicator",style:{transition:m?"stroke-dashoffset 0.4s ease":"none"}})]}),(l||s)&&m&&r.jsx(t.Box,{className:"circular-progress-label","aria-hidden":"true",sx:{position:"relative",zIndex:1,fontSize:p.fontSize,fontWeight:700,fontFamily:"inherit",lineHeight:1,color:"var(--Text)",userSelect:"none"},children:s||Math.round(f)+"%"})]})}const ep=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",tp=[{label:"Default",colors:["default"]},{label:"Theme",colors:["primary","secondary","tertiary","neutral"]},{label:"State",colors:["info","success","warning","error"]}];function rp({label:e,selected:t,onClick:o}){return r.jsx(Ur,{selected:t,variant:t?"default":"default-outline",size:"small",onClick:o,children:e})}function op({color:e,selected:o,onClick:n}){const i=ep(e);return r.jsx(t.Box,{component:"button",onClick:()=>n(e),"aria-label":"Select "+i,"aria-pressed":o,title:i,sx:{width:"var(--Button-Height)",height:"var(--Button-Height)",borderRadius:"4px",backgroundColor:"var(--Buttons-"+i+"-Button)",border:o?"2px solid var(--Text)":"1px solid var(--Border)",outline:o?"2px solid var(--Focus-Visible)":"2px solid transparent",outlineOffset:"1px",cursor:"pointer",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",transition:"transform 0.1s ease","&:hover":{transform:"scale(1.1)"}},children:o&&r.jsx(a,{sx:{fontSize:16,color:"var(--Buttons-"+i+"-Text)",pointerEvents:"none"}})})}const ap={default:"Default",primary:"Primary",secondary:"Secondary",tertiary:"Tertiary",neutral:"Neutral",info:"Info",success:"Success",warning:"Warning",error:"Error"},np={small:{height:"4px",borderRadius:"2px"},medium:{height:"6px",borderRadius:"3px"},large:{height:"8px",borderRadius:"4px"}};function ip({value:e,color:o="primary",size:a="medium",className:n="",sx:i={},...l}){const s=ap[o]||"Primary",c=np[a]||np.medium,d=null!=e,u=d?Math.min(100,Math.max(0,e)):0,x="var(--Buttons-"+s+"-Border)";return r.jsx(t.Box,{role:"progressbar","aria-valuenow":d?Math.round(u):void 0,"aria-valuemin":d?0:void 0,"aria-valuemax":d?100:void 0,"aria-label":d?Math.round(u)+"% progress":"Loading",className:"linear-progress linear-progress-"+a+" linear-progress-"+o+(d?" linear-progress-determinate":" linear-progress-indeterminate")+" "+n,sx:{position:"relative",width:"100%",height:c.height,borderRadius:c.borderRadius,backgroundColor:"var(--Border-Variant)",overflow:"hidden",flexShrink:0,...i},...l,children:r.jsx(t.Box,{className:"linear-progress-bar",sx:{position:"absolute",top:0,left:0,height:"100%",borderRadius:"inherit",backgroundColor:x,...d?{width:u+"%",transition:"width 0.4s ease"}:{width:"40%",animation:"linear-progress-slide 1.5s ease-in-out infinite","@keyframes linear-progress-slide":{"0%":{left:"-40%",width:"40%"},"50%":{left:"30%",width:"50%"},"100%":{left:"100%",width:"40%"}}}}})})}const lp=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",sp=[{label:"Default",colors:["default"]},{label:"Theme",colors:["primary","secondary","tertiary","neutral"]},{label:"State",colors:["info","success","warning","error"]}];function cp({label:e,selected:t,onClick:o}){return r.jsx(Ur,{selected:t,variant:t?"default":"default-outline",size:"small",onClick:o,children:e})}function dp({color:e,selected:o,onClick:n}){const i=lp(e);return r.jsx(t.Box,{component:"button",onClick:()=>n(e),"aria-label":"Select "+i,"aria-pressed":o,title:i,sx:{width:"var(--Button-Height)",height:"var(--Button-Height)",borderRadius:"4px",backgroundColor:"var(--Buttons-"+i+"-Button)",border:o?"2px solid var(--Text)":"1px solid var(--Border)",outline:o?"2px solid var(--Focus-Visible)":"2px solid transparent",outlineOffset:"1px",cursor:"pointer",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",transition:"transform 0.1s ease","&:hover":{transform:"scale(1.1)"}},children:o&&r.jsx(a,{sx:{fontSize:16,color:"var(--Buttons-"+i+"-Text)",pointerEvents:"none"}})})}const up=[{label:"Default",colors:["default"]},{label:"Theme",colors:["primary","secondary","tertiary","neutral"]}],xp=["photo","icon","initials"],pp={photo:"Photo",icon:"Icon",initials:"Initials"},hp=["xxx-small","xx-small","x-small","small","medium","large","x-large","xx-large"],mp={"xxx-small":"XXXS","xx-small":"XXS","x-small":"XS",small:"Small",medium:"Medium",large:"Large","x-large":"XL","xx-large":"XXL"};function fp({label:e,selected:t,onClick:o}){return r.jsx(Ur,{selected:t,variant:t?"default":"default-outline",size:"small",onClick:o,children:e})}function gp({color:e,selected:o,onClick:n}){const i=(l=e)?l.charAt(0).toUpperCase()+l.slice(1):"";var l;return r.jsx(t.Box,{component:"button",onClick:()=>n(e),"aria-label":"Select "+i,"aria-pressed":o,title:i,sx:{width:"var(--Button-Height)",height:"var(--Button-Height)",borderRadius:"4px",backgroundColor:"var(--Buttons-"+i+"-Button)",border:o?"2px solid var(--Text)":"1px solid var(--Border)",outline:o?"2px solid var(--Focus-Visible)":"2px solid transparent",outlineOffset:"1px",cursor:"pointer",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",transition:"transform 0.1s ease","&:hover":{transform:"scale(1.1)"}},children:o&&r.jsx(a,{sx:{fontSize:16,color:"var(--Buttons-"+i+"-Text)",pointerEvents:"none"}})})}function bp(e){const t=e.replace("#",""),r=parseInt(t.substring(0,2),16)/255,o=parseInt(t.substring(2,4),16)/255,a=parseInt(t.substring(4,6),16)/255,n=e=>e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4);return.2126*n(r)+.7152*n(o)+.0722*n(a)}function vp(e,t){if(!(e&&t&&e.startsWith("#")&&t.startsWith("#")))return null;const r=bp(e),o=bp(t);return((Math.max(r,o)+.05)/(Math.min(r,o)+.05)).toFixed(2)}function yp(e){return"undefined"==typeof window?null:getComputedStyle(document.documentElement).getPropertyValue(e).trim()}const jp=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",Sp=["primary","secondary","tertiary","neutral","info","success","warning","error"];function Bp({ratio:e,threshold:o}){if(!e)return r.jsx(Kt,{style:{color:"var(--Text-Quiet)"},children:"--"});const a=parseFloat(e)>=o;return r.jsxs(t.Box,{sx:{display:"inline-flex",alignItems:"center",gap:.5},children:[r.jsxs(t.Box,{sx:{px:1,py:.25,borderRadius:"4px",backgroundColor:a?"var(--Tags-Success-BG)":"var(--Tags-Error-BG)",color:a?"var(--Tags-Success-Text)":"var(--Tags-Error-Text)",fontSize:"11px",fontWeight:700},children:[e,":1"]}),r.jsx(Kt,{style:{color:a?"var(--Tags-Success-Text)":"var(--Tags-Error-Text)"},children:a?"Pass":"Fail"})]})}function kp({label:e,ratio:o,threshold:a,note:n}){return r.jsxs(t.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsxs(t.Box,{sx:{flex:1},children:[r.jsx(Vt,{style:{color:"var(--Text)"},children:e}),n&&r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:n})]}),r.jsx(Bp,{ratio:o,threshold:a})]})}function Cp({color:e,selected:o,onClick:n}){const i=jp(e);return r.jsx(t.Tooltip,{title:i,arrow:!0,children:r.jsx(t.Box,{onClick:()=>n(e),role:"button","aria-label":"Select "+i+" color","aria-pressed":o,sx:{width:"var(--Button-Height)",height:"var(--Button-Height)",borderRadius:"4px",backgroundColor:"var(--Buttons-"+i+"-Button)",border:o?"2px solid var(--Text)":"1px solid var(--Border)",outline:o?"2px solid var(--Focus-Visible)":"2px solid transparent",cursor:"pointer",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{transform:"scale(1.1)"}},children:o&&r.jsx(a,{sx:{fontSize:24,color:"var(--Buttons-"+i+"-Text)",pointerEvents:"none"}})})})}function wp({label:e,selected:o,onClick:a}){return r.jsx(t.Box,{component:"button",onClick:a,sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",border:"2px solid var(--Buttons-Primary-Button)",borderRadius:"var(--Style-Border-Radius)",backgroundColor:o?"var(--Buttons-Primary-Button)":"transparent",color:o?"var(--Buttons-Primary-Text)":"var(--Text)",padding:"4px 12px",fontSize:"14px",fontFamily:"inherit",fontWeight:500,whiteSpace:"nowrap",flexShrink:0,transition:"background-color 0.15s ease, color 0.15s ease","&:hover":{backgroundColor:o?"var(--Buttons-Primary-Hover)":"var(--Surface-Dim)"},"&:focus-visible":{outline:"2px solid var(--Focus-Visible)",outlineOffset:"2px"}},children:e})}const Tp=e=>e.charAt(0).toUpperCase()+e.slice(1);function Ip(e){return e&&"default"!==e&&"border-variant"!==e?"border"===e?"var(--Border)":"var(--Icons-"+Tp(e)+")":"var(--Border-Variant)"}function Ap(e,t){const r=e&&!["default","border","border-variant"].includes(e)?Tp(e):"Default",o=Ip(e);return"light"===t?{bg:"var(--Tag-"+r+"-BG)",text:"var(--Tag-"+r+"-Text)",border:"1px solid "+o}:{bg:"var(--Background)",text:"var(--Text)",border:"1px solid "+o}}const zp={small:1,medium:2,large:4};const Rp={eyebrow:Yt,title:Gt,secondary:Qt},Ep={primary:"Primary",secondary:"Secondary",tertiary:"Tertiary",neutral:"Neutral",info:"Info-Medium",success:"Success-Medium",warning:"Warning-Medium",error:"Error-Medium"},Lp={primary:"Primary-Light",secondary:"Secondary-Light",tertiary:"Tertiary-Light",neutral:"Neutral-Light",info:"Info-Light",success:"Success-Light",warning:"Warning-Light",error:"Error-Light"},Pp={small:{py:.5,px:1.5,fontSize:"13px",iconSize:16,decoratorSize:28,gap:1,checkSize:"small"},medium:{py:1,px:1,fontSize:"14px",iconSize:20,decoratorSize:36,gap:1.5,checkSize:"small"},large:{py:1.5,px:2.5,fontSize:"16px",iconSize:24,decoratorSize:40,gap:2,checkSize:"medium"}};function Mp({children:e,size:o="medium",isButton:a=!1,onAction:n,ariaLabel:i}){return a?r.jsx(t.Box,{component:"button",role:"button",tabIndex:0,"aria-label":i||"Action",onClick:e=>{e.stopPropagation(),n?.(e)},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.stopPropagation(),n?.(e))},className:"list-item-decorator-button",sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,padding:0,border:"none",backgroundColor:"transparent",borderRadius:"50%",cursor:"pointer",color:"inherit",transition:"background-color 0.15s ease","&:hover":{backgroundColor:"rgba(128,128,128,0.15)"},"&:active":{backgroundColor:"rgba(128,128,128,0.25)"},"&:focus-visible":{outline:"3px solid var(--Focus-Visible)",outlineOffset:"-3px"}},children:e}):r.jsx(t.Box,{className:"list-item-decorator",sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:e})}function Op({children:e,startDecorator:o,endDecorator:a,startDecoratorIsButton:n=!1,endDecoratorIsButton:i=!1,onStartDecoratorAction:l,onEndDecoratorAction:s,startDecoratorAriaLabel:c,endDecoratorAriaLabel:d,size:u="medium",variant:x="default",color:p,eyebrow:h,overline:m,secondary:f,clickable:g=!1,disabled:b=!1,selected:v=!1,selectionMode:y="none",onSelect:j,onClick:S,bottomBorder:B=!1,rightBorder:k=!1,sx:C={},...w}){const T=Pp[u]||Pp.medium,I=g||!!S,A="checkbox"===y||"radio"===y,z=(I||A)&&!b,R=e=>{b||(A&&j?.(e),S?.(e))};return r.jsxs(t.Box,{component:"li",role:A?"option":I?"button":"listitem",tabIndex:z?0:void 0,"aria-disabled":b||void 0,"aria-selected":A?v:v||void 0,"aria-checked":"checkbox"===y?v:void 0,onClick:R,onKeyDown:z?e=>{b||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),R(e))}:void 0,className:"list-item"+(v?" list-item-selected":"")+(b?" list-item-disabled":"")+(I?" list-item-clickable":"")+(A?" list-item-selectable":""),sx:{display:"flex",flexDirection:"row",alignItems:"flex-start",justifyContent:"flex-start",width:"100%",boxSizing:"border-box",gap:"var(--Sizing-1-and-Half)",py:T.py,px:T.px,minHeight:"32px",fontSize:T.fontSize,fontFamily:"inherit",color:"var(--Text)",listStyle:"none",cursor:z?"pointer":"default",opacity:b?.5:1,position:"relative",transition:"background-color 0.15s ease, box-shadow 0.15s ease",...I?{border:"1px solid var(--Border)",boxShadow:"var(--Effect-Level-1)",padding:"var(--Sizing-1)",borderRadius:"var(--Input-Radius)"}:{},...!I&&B?{borderBottom:"1px solid var(--Border-Variant)"}:{},...!I&&k?{borderRight:"1px solid var(--Border-Variant)"}:{},backgroundColor:v?"var(--Hover)":"transparent","&:hover":z?{backgroundColor:"var(--Hover)",boxShadow:"var(--Effect-Level-2)"}:{},"&:active":z?{backgroundColor:"var(--Pressed)",boxShadow:"var(--Effect-Level-1)"}:{},"&:focus-visible":{outline:"none"},"&:focus-visible::after":{content:'""',position:"absolute",inset:"1px",border:"3px solid var(--Focus-Visible)",borderRadius:"var(--Input-Inner-Focus-Visible)",pointerEvents:"none"},...C},...w,children:["checkbox"===y&&r.jsx(t.Checkbox,{checked:v,disabled:b,size:T.checkSize,tabIndex:-1,onClick:e=>e.stopPropagation(),onChange:()=>j?.(),sx:{p:0,mr:0,color:"inherit","&.Mui-checked":{color:"inherit"}},inputProps:{"aria-label":"Select "+("string"==typeof e?e:"item")}}),"radio"===y&&r.jsx(t.Radio,{checked:v,disabled:b,size:T.checkSize,tabIndex:-1,onClick:e=>e.stopPropagation(),onChange:()=>j?.(),sx:{p:0,mr:0,color:"inherit","&.Mui-checked":{color:"inherit"}},inputProps:{"aria-label":"Select "+("string"==typeof e?e:"item")}}),o&&r.jsx(Mp,{size:u,isButton:n,onAction:l,ariaLabel:c,children:o}),(()=>{const o=Rp,a=h??m,n={display:"block",width:"100%",wordBreak:"break-word",overflowWrap:"anywhere"};return r.jsxs(t.Box,{sx:{flex:"1 1 auto",width:"100%",minWidth:0,display:"flex",flexDirection:"column",gap:0},children:[a&&r.jsx(o.eyebrow,{style:{...n,color:"var(--Quiet)"},children:a}),null!=e&&r.jsx(o.title,{style:{...n,color:"var(--Text)"},children:e}),f&&r.jsx(o.secondary,{style:{...n,color:"var(--Quiet)"},children:f})]})})(),a&&r.jsx(Mp,{size:u,isButton:i,onAction:s,ariaLabel:d,children:a})]})}const Dp={small:{py:"4px",px:"8px",fontSize:"13px",headerFontSize:"12px"},medium:{py:"8px",px:"12px",fontSize:"14px",headerFontSize:"13px"},large:{py:"12px",px:"16px",fontSize:"16px",headerFontSize:"14px"}};const Wp={primary:"Primary",secondary:"Secondary",tertiary:"Tertiary",neutral:"Neutral",info:"Info-Medium",success:"Success-Medium",warning:"Warning-Medium",error:"Error-Medium"},Fp={primary:"Primary-Light",secondary:"Secondary-Light",tertiary:"Tertiary-Light",neutral:"Neutral-Light",info:"Info-Light",success:"Success-Light",warning:"Warning-Light",error:"Error-Light"},Np={small:{fontSize:"12px",py:"4px",px:"8px",maxWidth:200,arrowSize:6},medium:{fontSize:"13px",py:"6px",px:"12px",maxWidth:280,arrowSize:8},large:{fontSize:"14px",py:"8px",px:"16px",maxWidth:360,arrowSize:10}};const Hp={default:{theme:"App-Bar"},primary:{theme:"Primary"},"primary-light":{theme:"Primary",surface:"Surface-Brightest"},white:{theme:"Neutral",surface:"Surface-Brightest"},black:{theme:"Neutral",surface:"Surface-Dimmest"}};function Vp({children:e,onClick:t,ariaLabel:o}){return r.jsx(Ur,{iconOnly:!0,variant:"ghost",size:"medium",onClick:t,"aria-label":o,children:e})}function Qp({barColor:o="default",surface:a="Surface",loginType:n="login",menuType:i="hamburger",brandType:l="name",searchPosition:s="right",companyName:c="Company",navLinks:d=["Home","Products","About"],rightButtons:u=[],showRightButtons:x=!1,onMenuClick:p,user:h,onLogin:m,onSignOut:f,brand:g,onBrandClick:b,centerSlot:v,endSlot:y,searchValue:j,onSearchChange:S,searchPlaceholder:B="Search...",children:k,className:C="",sx:w={}}){const[T,I]=e.useState(!1),A=Hp[o]||Hp.default,z=A.theme,R=A.surface||a,E="expanded"===i&&d.length>3?"hamburger":i,L=r.jsx(ei,{placeholder:B,size:"medium",value:j,onChange:S,sx:{flex:"left"===s?"0 1 400px":"0 1 280px",minWidth:0}});return r.jsxs(r.Fragment,{children:[r.jsx(t.Box,{component:"header",role:"banner","data-theme":z,"data-surface":R,className:"appbar appbar-desktop appbar-"+o+(C?" "+C:""),sx:{display:"flex",alignItems:"center",height:64,px:2,gap:2,backgroundColor:"var(--Background)",color:"var(--Text)",boxShadow:Cr,fontFamily:"inherit",...w},children:k||r.jsxs(r.Fragment,{children:["hamburger"===E&&r.jsx(Vp,{ariaLabel:"Open navigation menu",onClick:p||(()=>I(!0)),children:r.jsx(je,{sx:{fontSize:"inherit"}})}),void 0!==g?b?r.jsx(t.Box,{component:"button",type:"button",onClick:b,sx:{background:"transparent",border:"none",padding:0,cursor:"pointer",color:"inherit",font:"inherit",fontWeight:700,fontSize:"18px",whiteSpace:"nowrap",flexShrink:0},children:g}):r.jsx(t.Box,{sx:{fontWeight:700,fontSize:"18px",whiteSpace:"nowrap",flexShrink:0},children:g}):"logo"===l?r.jsx(t.Box,{sx:{width:32,height:32,borderRadius:"6px",backgroundColor:"var(--Text)",opacity:.8,flexShrink:0},"aria-label":"Company logo"}):r.jsx(t.Box,{sx:{fontWeight:700,fontSize:"18px",whiteSpace:"nowrap",flexShrink:0},children:c}),void 0!==v?r.jsxs(r.Fragment,{children:[r.jsx(t.Box,{sx:{flex:1}}),r.jsx(t.Box,{sx:{display:"flex",alignItems:"center",flexShrink:0},children:v}),r.jsx(t.Box,{sx:{flex:1}})]}):r.jsxs(r.Fragment,{children:["left"===s&&L,"expanded"===E&&r.jsx(Bo,{defaultValue:0,variant:"standard",color:"default",sx:{ml:2,minHeight:0},children:r.jsx(ko,{"aria-label":"Main navigation",children:d.map(e=>r.jsx(Co,{children:e},e))})}),r.jsx(t.Box,{sx:{flex:1}}),"right"===s&&L]}),void 0!==y?r.jsx(t.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:y}):r.jsxs(r.Fragment,{children:[x&&u.length>0&&r.jsx(t.Box,{sx:{display:"flex",alignItems:"center",gap:.5},children:u.map((t,o)=>t.raw?r.jsx(e.Fragment,{children:t.icon},o):r.jsx(Vp,{ariaLabel:t.label||"Action "+(o+1),children:t.icon},o))}),h?r.jsx(Ur,{variant:"ghost",size:"small",onClick:f,"aria-label":"Sign out",startIcon:h.photoURL?r.jsx(t.Box,{component:"img",src:h.photoURL,alt:"",sx:{width:24,height:24,borderRadius:"50%"}}):r.jsx(_e,{sx:{fontSize:24}}),children:h.displayName?.split(" ")[0]||"Account"}):m?r.jsx(Ur,{variant:"default-outline",size:"small",onClick:m,children:"Login"}):"avatar"===n?r.jsx(Ur,{iconOnly:!0,variant:"ghost",size:"medium","aria-label":"Account",children:r.jsx(_e,{sx:{fontSize:28}})}):null]})]})}),r.jsx(ks,{open:T,onClose:()=>I(!1),anchor:"left",size:"small",children:r.jsx(t.Box,{component:"nav","aria-label":"Main navigation",sx:{display:"flex",flexDirection:"column",gap:.5,py:1},children:d.map(e=>r.jsx(Ur,{variant:"ghost",size:"medium",onClick:()=>I(!1),sx:{justifyContent:"flex-start",width:"100%"},children:e},e))})})]})}function Gp({mobileVariant:o="search",barColor:a="default",surface:n="Surface",title:i="Page Title",subtitle:l="Subtitle text",actionIcon:s,companyName:c="Company",navLinks:d=["Home","Products","About"],className:u="",sx:x={}}){const[p,h]=e.useState(!1),m=Hp[a]||Hp.default,f=m.theme,g=m.surface||n,b={backgroundColor:"var(--Background)",color:"var(--Text)",boxShadow:Cr,fontFamily:"inherit",width:"100%",maxWidth:420,...x},v={"data-theme":f,"data-surface":g},y=r.jsx(ks,{open:p,onClose:()=>h(!1),anchor:"left",size:"small",children:r.jsx(t.Box,{component:"nav","aria-label":"Main navigation",sx:{display:"flex",flexDirection:"column",gap:.5,py:1},children:d.map(e=>r.jsx(Ur,{variant:"ghost",size:"medium",onClick:()=>h(!1),sx:{justifyContent:"flex-start",width:"100%"},children:e},e))})});return"search"===o?r.jsxs(r.Fragment,{children:[r.jsxs(t.Box,{component:"header",role:"banner",className:"appbar appbar-mobile appbar-mobile-search appbar-"+a+" "+u,...v,sx:{...b,display:"flex",alignItems:"center",height:64,px:1.5,gap:1.5},children:[r.jsx(Vp,{ariaLabel:"Open navigation menu",onClick:()=>h(!0),children:r.jsx(je,{sx:{fontSize:"inherit"}})}),r.jsx(ei,{placeholder:"Search "+c,size:"small",sx:{flex:1,minWidth:0}}),r.jsx(Ur,{iconOnly:!0,variant:"ghost",size:"medium","aria-label":"Account",children:r.jsx(_e,{sx:{fontSize:28}})})]}),y]}):"small"===o?r.jsxs(t.Box,{component:"header",role:"banner",className:"appbar appbar-mobile appbar-mobile-small appbar-"+a+" "+u,...v,sx:{...b,display:"flex",alignItems:"center",height:64,px:1.5,gap:1},children:[r.jsx(Vp,{ariaLabel:"Back",children:r.jsx($e,{sx:{fontSize:"inherit"}})}),r.jsxs(t.Box,{sx:{flex:1,minWidth:0},children:[r.jsx(t.Box,{sx:{fontWeight:600,fontSize:"16px",lineHeight:1.3,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:i}),l&&r.jsx(t.Box,{sx:{fontSize:"12px",opacity:.7,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:l})]}),s&&r.jsx(Vp,{ariaLabel:"Action",children:s})]}):"medium"===o?r.jsxs(t.Box,{component:"header",role:"banner",className:"appbar appbar-mobile appbar-mobile-medium appbar-"+a+" "+u,...v,sx:{...b,px:1.5,pb:2},children:[r.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",height:56,gap:1},children:[r.jsx(Vp,{ariaLabel:"Back",children:r.jsx($e,{sx:{fontSize:"inherit"}})}),r.jsx(t.Box,{sx:{flex:1}}),s&&r.jsx(Vp,{ariaLabel:"Action",children:s})]}),r.jsxs(t.Box,{sx:{px:1.5},children:[r.jsx(t.Box,{sx:{fontWeight:600,fontSize:"24px",lineHeight:1.2},children:i}),l&&r.jsx(t.Box,{sx:{fontSize:"14px",opacity:.7,mt:.5},children:l})]})]}):r.jsxs(t.Box,{component:"header",role:"banner",className:"appbar appbar-mobile appbar-mobile-large appbar-"+a+" "+u,...v,sx:{...b,px:1.5,pb:3},children:[r.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",height:56,gap:1},children:[r.jsx(Vp,{ariaLabel:"Back",children:r.jsx($e,{sx:{fontSize:"inherit"}})}),r.jsx(t.Box,{sx:{flex:1}}),s&&r.jsx(Vp,{ariaLabel:"Action",children:s})]}),r.jsxs(t.Box,{sx:{px:1.5,mt:1},children:[r.jsx(t.Box,{sx:{fontWeight:600,fontSize:"36px",lineHeight:1.1},children:i}),l&&r.jsx(t.Box,{sx:{fontSize:"14px",opacity:.7,mt:.5},children:l})]})]})}const qp=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",Up=["default","primary","primary-light","white","black"],Xp=["Surface","Surface-Bright","Surface-Dim","Surface-Dimmest"],Kp={default:{theme:"App-Bar"},primary:{theme:"Primary"},"primary-light":{theme:"Primary",surface:"Surface-Brightest"},white:{theme:"Neutral",surface:"Surface-Brightest"},black:{theme:"Neutral",surface:"Surface-Dimmest"}};function Jp(e){const t=e.replace("#",""),r=parseInt(t.substring(0,2),16)/255,o=parseInt(t.substring(2,4),16)/255,a=parseInt(t.substring(4,6),16)/255,n=e=>e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4);return.2126*n(r)+.7152*n(o)+.0722*n(a)}function Yp(e,t){if(!(e&&t&&e.startsWith("#")&&t.startsWith("#")))return null;const r=Jp(e),o=Jp(t);return((Math.max(r,o)+.05)/(Math.min(r,o)+.05)).toFixed(2)}function Zp(e){return"undefined"==typeof window?null:getComputedStyle(document.documentElement).getPropertyValue(e).trim()}function $p({ratio:e,threshold:o}){if(!e)return r.jsx(Kt,{style:{color:"var(--Text-Quiet)"},children:"--"});const a=parseFloat(e)>=o;return r.jsxs(t.Box,{sx:{display:"inline-flex",alignItems:"center",gap:.5},children:[r.jsxs(t.Box,{sx:{px:1,py:.25,borderRadius:"4px",fontSize:"11px",fontWeight:700,backgroundColor:a?"var(--Tags-Success-BG)":"var(--Tags-Error-BG)",color:a?"var(--Tags-Success-Text)":"var(--Tags-Error-Text)"},children:[e,":1"]}),r.jsx(Kt,{style:{color:a?"var(--Tags-Success-Text)":"var(--Tags-Error-Text)"},children:a?"Pass":"Fail"})]})}function _p({label:e,ratio:o,threshold:a,note:n}){return r.jsxs(t.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsxs(t.Box,{sx:{flex:1},children:[r.jsx(Vt,{style:{color:"var(--Text)"},children:e}),n&&r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:n})]}),r.jsx($p,{ratio:o,threshold:a})]})}function eh({label:e,selected:t,onClick:o}){return r.jsx(Ur,{selected:t,variant:t?"default":"default-outline",size:"small",onClick:o,children:e})}function th({color:e,selected:o,onClick:n}){const i=Kp[e]||Kp.default;return r.jsx(t.Box,{component:"button","data-theme":i.theme,"data-surface":i.surface||"Surface",onClick:()=>n(e),"aria-label":"Select "+e,"aria-pressed":o,title:e,sx:{width:"var(--Button-Height, 36px)",height:"var(--Button-Height, 36px)",borderRadius:"4px",backgroundColor:"var(--Background)",border:o?"2px solid var(--Text)":"2px solid var(--Border)",outline:o?"2px solid var(--Focus-Visible)":"2px solid transparent",outlineOffset:"1px",cursor:"pointer",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",transition:"transform 0.1s ease","&:hover":{transform:"scale(1.1)"}},children:o&&r.jsx(a,{sx:{fontSize:16,color:"var(--Text)",pointerEvents:"none"}})})}const rh={default:{bg:"var(--Primary-Color-1)",fg:"var(--Primary-Color-12)"},primary:{theme:"Primary",surface:"Surface-Dim"},"primary-dark":{bg:"var(--Primary-Color-1)",fg:"var(--Primary-Color-12)"},white:{bg:"var(--Neutral-Color-11)",fg:"var(--Neutral-Color-3)"},black:{bg:"var(--Neutral-Color-1)",fg:"var(--Neutral-Color-12)"}};function oh({color:e="default",companyName:t="",year:o=(new Date).getFullYear(),rights:a="All rights reserved",children:n,className:i,style:l,...s}){const c=n??`© ${o}${t?" "+t:""}.${a?" "+a+".":""}`,d=rh[e]||rh.default,u=d.theme?{"data-theme":d.theme,"data-surface":d.surface||"Surface-Dim"}:{},x=d.theme?{background:"var(--Background)",color:"var(--Text)"}:{background:d.bg,color:d.fg};return r.jsx("div",{...u,className:["dino-copyright",i].filter(Boolean).join(" "),style:{padding:"14px 24px",textAlign:"center",...x,...l},...s,children:r.jsx(Vt,{style:{color:"inherit",opacity:.85},children:c})})}const ah={default:{bg:"var(--Primary-Color-2)",fg:"var(--Primary-Color-12)"},primary:{theme:"Primary",surface:"Surface"},"primary-dark":{theme:"Primary",surface:"Surface-Dimmest"},white:{bg:"var(--Neutral-Color-12)",fg:"var(--Neutral-Color-2)"},black:{bg:"var(--Neutral-Color-1)",fg:"var(--Neutral-Color-12)"}};function nh({color:e="default",brand:t,address:o,columns:a=[],socialLinks:n=[],subscribe:i,copyrightName:l,copyrightYear:s,className:c,style:d,...u}){const x=a.slice(0,3),p=ah[e]||ah.default,h=p.theme?{"data-theme":p.theme,"data-surface":p.surface||"Surface"}:{},m=p.theme?{background:"var(--Background)",color:"var(--Text)"}:{background:p.bg,color:p.fg};return r.jsxs("footer",{...h,className:["dino-footer",c].filter(Boolean).join(" "),style:{...m,...d},...u,children:[r.jsxs("div",{style:{maxWidth:1200,margin:"0 auto",padding:"40px 24px 56px"},children:[t&&r.jsx("div",{style:{marginBottom:36},children:t}),r.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(280px, 1fr))",gap:40},children:[r.jsx(ih,{address:o}),x.map((e,t)=>r.jsx(lh,{...e},t))]}),(n.length>0||i)&&r.jsxs("div",{style:{marginTop:48,paddingTop:32,borderTop:"1px solid rgba(255, 255, 255, 0.10)",display:"flex",flexWrap:"wrap",gap:32,alignItems:"flex-start",justifyContent:"space-between"},children:[n.length>0&&r.jsx(sh,{links:n}),i&&r.jsx(ch,{...i})]})]}),r.jsx(oh,{color:e,companyName:l,year:s})]})}function ih({address:e}){if(!e)return r.jsx("div",{});const{company:t,lines:o=[],email:a,phone:n}=e,i=[...t?[t]:[],...o,...n?[n]:[]];return r.jsxs("div",{children:[i.map((e,t)=>r.jsx(Vt,{style:{color:"inherit",opacity:.85,display:"block"},children:e},t)),a&&r.jsx("div",{style:{marginTop:12},children:r.jsx(Vt,{style:{color:"inherit",opacity:.85,display:"block"},children:r.jsx(hi,{href:"mailto:"+a,color:"standard",style:{color:"inherit"},children:a})})})]})}function lh({title:e,links:t=[]}){return r.jsxs("div",{children:[e&&r.jsx(Mt,{style:{color:"inherit",marginBottom:12},children:e}),r.jsx("ul",{style:{listStyle:"none",margin:0,padding:0},children:t.map((e,t)=>r.jsx("li",{style:{marginBottom:8},children:r.jsx(hi,{href:e.href,onClick:e.onClick,color:"standard",style:{color:"inherit",opacity:.85},children:e.label})},t))})]})}function sh({links:e}){return r.jsx("div",{style:{display:"flex",gap:16,alignItems:"center"},children:e.map((e,t)=>r.jsx("a",{href:e.url,target:"_blank",rel:"noopener noreferrer","aria-label":e.label||"Social link",style:{color:"inherit",opacity:.85,display:"inline-flex",alignItems:"center",justifyContent:"center",width:36,height:36,borderRadius:"50%",border:"1px solid rgba(255, 255, 255, 0.18)",textDecoration:"none",transition:"opacity 150ms ease, border-color 150ms ease"},onMouseEnter:e=>{e.currentTarget.style.opacity="1"},onMouseLeave:e=>{e.currentTarget.style.opacity="0.85"},children:e.icon},t))})}function ch({title:t="Stay in the loop",description:o,placeholder:a="your@email.com",buttonLabel:n="Subscribe",onSubscribe:i}){const[l,s]=e.useState(""),[c,d]=e.useState(!1);return r.jsxs("form",{onSubmit:async e=>{if(e&&e.preventDefault(),l&&!c){d(!0);try{await(i?.(l)),s("")}finally{d(!1)}}},style:{minWidth:260,maxWidth:360,flex:"1 1 260px"},children:[r.jsx(Mt,{style:{color:"inherit",marginBottom:6},children:t}),o&&r.jsx(Vt,{style:{color:"inherit",opacity:.85,marginBottom:12,display:"block"},children:o}),r.jsxs("div",{style:{display:"flex",gap:8},children:[r.jsx(Cn,{type:"email",value:l,onChange:e=>s(e.target.value),placeholder:a,size:"small",fullWidth:!0,"aria-label":"Email address"}),r.jsx(Ur,{type:"submit",variant:"primary",size:"small",disabled:c||!l,children:n})]})]})}function dh(e){const t=e.match(/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);return t?[Number(t[1]),Number(t[2]),Number(t[3])]:null}function uh(e){return e?"#"+e.map(e=>e.toString(16).padStart(2,"0")).join(""):"—"}function xh([e,t,r]){const o=[e,t,r].map(e=>(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4));return.2126*o[0]+.7152*o[1]+.0722*o[2]}function ph({targetRef:t,label:o,deps:a=[]}){const[n,i]=e.useState(null),[l,s]=e.useState(null);e.useEffect(()=>{if(!t.current)return;const e=requestAnimationFrame(()=>{if(!t.current)return;const e=getComputedStyle(t.current);i(dh(e.backgroundColor)),s(dh(e.color))});return()=>cancelAnimationFrame(e)},a);const c=function(e,t){if(!e||!t)return null;const r=xh(e),o=xh(t);return(Math.max(r,o)+.05)/(Math.min(r,o)+.05)}(n,l),d=null!==c&&c>=4.5,u=null===c?"—":null!==c&&c>=7?"AAA":d?"AA":"Fail",x=null===c?"var(--Text-Quiet)":d?"var(--Text-Success)":"var(--Text-Error)";return r.jsxs("div",{style:{display:"flex",alignItems:"center",gap:16,padding:"12px 16px",borderRadius:8,background:"var(--Container)",border:"1px solid var(--Border)"},children:[r.jsxs("div",{style:{flex:1,minWidth:0},children:[r.jsx(Vt,{style:{fontWeight:600},children:o}),r.jsxs(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:["Background ",uh(n)," · Text ",uh(l)]})]}),r.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,borderRadius:999,padding:"4px 10px",background:"var(--Background)",border:"1px solid var(--Border)"},children:[r.jsx("span",{style:{fontWeight:700,fontSize:12,color:x},children:u}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)"},children:null!==c?c.toFixed(2)+":1":"—"})]})]})}const hh={company:"DinoDesign",lines:["123 Market Street","San Francisco, CA 94103"],email:"hello@dinodesign.dev",phone:"+1 (555) 010-0000"},mh=[{title:"Product",links:[{label:"Features",href:"#"},{label:"Pricing",href:"#"},{label:"Add-ons",href:"#"}]},{title:"Company",links:[{label:"About",href:"#"},{label:"Careers",href:"#"},{label:"Contact",href:"#"}]},{title:"Resources",links:[{label:"Docs",href:"#"},{label:"Changelog",href:"#"},{label:"Status",href:"#"}]}],fh=[{icon:r.jsx(et,{fontSize:"small"}),url:"https://twitter.com",label:"Twitter"},{icon:r.jsx(tt,{fontSize:"small"}),url:"https://github.com",label:"GitHub"},{icon:r.jsx(rt,{fontSize:"small"}),url:"https://linkedin.com",label:"LinkedIn"}],gh=[{value:"default",label:"Default"},{value:"primary",label:"Primary"},{value:"primary-dark",label:"Primary Dark"},{value:"white",label:"White"},{value:"black",label:"Black"}];function bh({label:e,selected:t,onClick:o}){return r.jsx(Ur,{selected:t,variant:t?"default":"default-outline",size:"small",onClick:o,children:e})}const vh=[{value:"default",label:"Default"},{value:"primary",label:"Primary"},{value:"primary-dark",label:"Primary Dark"},{value:"white",label:"White"},{value:"black",label:"Black"}];function yh({label:e,selected:t,onClick:o}){return r.jsx(Ur,{selected:t,variant:t?"default":"default-outline",size:"small",onClick:o,children:e})}const jh=["Default","Primary","Secondary","Tertiary","Neutral"],Sh={Classic:{name:"Classic",description:"Raised + soft shadow",angle:135,bevel:!0,depth:5,softness:1,shadow:!0,shadowDistance:6,shadowBlur:8,shadowOpacity:.6},Carved:{name:"Carved",description:"Deep inset, no shadow",angle:135,bevel:!0,depth:10,softness:2,shadow:!1,shadowDistance:4,shadowBlur:4,shadowOpacity:.4},Embossed:{name:"Embossed",description:"Inset + heavy shadow",angle:135,bevel:!0,depth:7,softness:1.5,shadow:!0,shadowDistance:10,shadowBlur:14,shadowOpacity:.7},Stamp:{name:"Stamp",description:"Reversed light + shadow",angle:315,bevel:!0,depth:6,softness:1,shadow:!0,shadowDistance:5,shadowBlur:6,shadowOpacity:.8},"Night Cut":{name:"Night Cut",description:"Inset on dark background",angle:135,bevel:!0,depth:8,softness:2,shadow:!1,shadowDistance:6,shadowBlur:8,shadowOpacity:.6},"Shadow Only":{name:"Shadow Only",description:"Flat fill + drop shadow",angle:135,bevel:!1,depth:4,softness:1,shadow:!0,shadowDistance:8,shadowBlur:12,shadowOpacity:.5}},Bh=Object.keys(Sh);function kh(e,t){if("custom"===e)return{...Sh.Classic,name:"Custom",description:"Custom",...t||{}};const r=Sh[e];return r?{...r}:{...Sh.Classic}}function Ch(e,t){const r=e||"Primary";return"base"===t?"var(--Buttons-"+r+"-Button)":"highlight"===t?"rgb(var(--Buttons-"+r+"-Highlight))":"lowlight"===t?"rgb(var(--Buttons-"+r+"-Lowlight))":void 0}function wh(e){const t=e||"Primary";return"Default"===t?"var(--Text)":"var(--Text-"+t+")"}function Th(e,t){const r=(e-90)*Math.PI/180;return{dx:Math.cos(r)*t,dy:Math.sin(r)*t}}const Ih={"display-large":{fontFamily:"var(--Header-Font-Family)",fontSize:"var(--Display-Large-Font-Size)",fontWeight:"var(--Display-Large-Font-Weight)",letterSpacing:"var(--Display-Large-Letter-Spacing)",pxHint:64},"display-small":{fontFamily:"var(--Header-Font-Family)",fontSize:"var(--Display-Small-Font-Size)",fontWeight:"var(--Display-Small-Font-Weight)",letterSpacing:"var(--Display-Small-Letter-Spacing)",pxHint:48}};function Ah({text:t="Your Brand. Perfected.",curves:o,arc:a=160,radius:n=300,direction:i="up",rotation:l=0,autoCrop:s=!0,textStyle:c="display-large",fontSize:d,fontFamily:u,fontWeight:x,letterSpacing:p,color:h="var(--Text, #1a1a1a)",bevel:m=!1,bevelTheme:f="Primary",bevelPreset:g,bevelCustom:b,className:v,style:y,...j}){const S=g?kh(g,b):null,B=S?!!S.bevel:!!m,k=Ih[c]||Ih["display-large"],C=u??k.fontFamily,w=d??k.fontSize,T=x??k.fontWeight,I=p??k.letterSpacing,A="number"==typeof d?d:k.pxHint,z=o&&o.length>0?o:[{arc:a,radius:n,direction:i}],{d:R,width:E,upMax:L,downMax:P,pathId:M}=function(t){return e.useMemo(()=>{const e="dino-curved-text-"+Math.random().toString(36).slice(2,9);let r=0;const o=0;let a="M "+r+" "+o,n=0,i=0;for(const{arc:e,radius:l,direction:s}of t){const t=zh(e,1,359),c=Math.max(10,l),d=t*Math.PI/180,u=2*c*Math.sin(d/2),x=c*(1-Math.cos(d/2));r+=u,a+=" A "+c+" "+c+" 0 "+(t>180?1:0)+" "+("up"===s?1:0)+" "+r+" "+o,"up"===s?n=Math.max(n,x):i=Math.max(i,x)}return{d:a,width:r,upMax:n,downMax:i,pathId:e}},[JSON.stringify(t)])}(z),O=Math.ceil(L+A),D=Math.ceil(P+A),W=Math.ceil(A),F=Math.ceil(E+2*W),N=O+D,H=W,V=O,Q=l?"rotate("+l+" "+F/2+" "+N/2+")":void 0,G=e.useRef(null),[q,U]=e.useState(null),[X,K]=e.useState(A);e.useEffect(()=>{if(!G.current||"undefined"==typeof ResizeObserver)return;const e=G.current,t=()=>{const t=e.getBoundingClientRect(),r=q?q.width:F;if(!r||!t.width)return;const o=t.width/r;K(A*o)};t();const r=new ResizeObserver(t);return r.observe(e),()=>r.disconnect()},[F,A,q]);const J=B&&X>=19;e.useLayoutEffect(()=>{if(!s)return void U(null);const e=G.current;if(!e)return;const t=e.querySelector("text");if(!t)return;let r;try{r=t.getBBox()}catch(e){return}if(!r||!r.width||!r.height)return;const o=F/2,a=N/2,n=l*Math.PI/180,i=Math.cos(n),c=Math.sin(n),d=(e,t)=>{const r=e-o,n=t-a;return{x:o+r*i-n*c,y:a+r*c+n*i}},u=[d(r.x,r.y),d(r.x+r.width,r.y),d(r.x,r.y+r.height),d(r.x+r.width,r.y+r.height)],x=Math.min(...u.map(e=>e.x)),p=Math.max(...u.map(e=>e.x)),h=Math.min(...u.map(e=>e.y)),m=Math.max(...u.map(e=>e.y)),f=.12*A,g={x:x-f,y:h-f,width:p-x+2*f,height:m-h+2*f};U(e=>e&&Math.abs(e.x-g.x)<.5&&Math.abs(e.y-g.y)<.5&&Math.abs(e.width-g.width)<.5&&Math.abs(e.height-g.height)<.5?e:g)},[s,t,JSON.stringify(z),l,A,I,C,T,B,f,g,JSON.stringify(b)]);const Y=q?q.x+" "+q.y+" "+q.width+" "+q.height:"0 0 "+F+" "+N,Z=q?q.width:F,$=q?q.height:N;return r.jsxs("svg",{ref:G,viewBox:Y,width:Z,height:$,preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",style:{display:"block",maxWidth:"100%",height:"auto",overflow:"visible",...y},"aria-label":t,role:"img",className:["dino-curved-text",v].filter(Boolean).join(" "),...j,children:[r.jsx("defs",{children:r.jsx("path",{id:M,d:R,transform:"translate("+H+" "+V+")"})}),r.jsxs("g",{transform:Q,children:[J&&(()=>{const e=S?S.depth/96:.045,o=Math.max(2,Math.round(A*e)),a=Math.max(1,Math.round(A*e*.67)),n={fontFamily:C,fontSize:"number"==typeof w?w+"px":w,fontWeight:T,letterSpacing:"number"==typeof I?I+"px":I};return r.jsxs(r.Fragment,{children:[r.jsx("text",{className:"dino-bevel-layer dino-bevel-layer--lowlight",fill:"rgb(var(--Buttons-"+f+"-Lowlight))",transform:"translate(0 "+o+")",style:n,children:r.jsx("textPath",{href:"#"+M,startOffset:"50%",textAnchor:"middle",children:t})}),r.jsx("text",{className:"dino-bevel-layer dino-bevel-layer--highlight",fill:"rgb(var(--Buttons-"+f+"-Highlight))",transform:"translate(0 -"+a+")",style:n,children:r.jsx("textPath",{href:"#"+M,startOffset:"50%",textAnchor:"middle",children:t})})]})})(),r.jsx("text",{className:"dino-curved-text__base",fill:J?"var(--Buttons-"+f+"-Button)":B?wh(f):h,style:{fontFamily:C,fontSize:"number"==typeof w?w+"px":w,fontWeight:T,letterSpacing:"number"==typeof I?I+"px":I},children:r.jsx("textPath",{href:"#"+M,startOffset:"50%",textAnchor:"middle",children:t})})]})]})}function zh(e,t,r){return Math.max(t,Math.min(r,e))}const Rh=[{value:"display-large",label:"Display Large"},{value:"display-small",label:"Display Small"}],Eh=[{value:"text",label:"Text",css:"var(--Text)"},{value:"primary",label:"Primary",css:"var(--Text-Primary)"},{value:"secondary",label:"Secondary",css:"var(--Text-Secondary)"},{value:"tertiary",label:"Tertiary",css:"var(--Text-Tertiary)"}],Lh=jh.map(e=>({value:e,label:e}));function Ph({label:e,selected:t,onClick:o}){return r.jsx(Ur,{selected:t,variant:t?"default":"default-outline",size:"small",onClick:o,children:e})}const Mh={"display-large":{fontFamily:"var(--Header-Font-Family)",fontSize:"var(--Display-Large-Font-Size)",fontWeight:"var(--Display-Large-Font-Weight)",letterSpacing:"var(--Display-Large-Letter-Spacing)",pxHint:96},"display-small":{fontFamily:"var(--Header-Font-Family)",fontSize:"var(--Display-Small-Font-Size)",fontWeight:"var(--Display-Small-Font-Weight)",letterSpacing:"var(--Display-Small-Letter-Spacing)",pxHint:64}};function Oh({text:t="DinoDesign",theme:o="Primary",preset:a="Classic",custom:n,textStyle:i="display-large",fontSize:l,fontFamily:s,fontWeight:c,letterSpacing:d,className:u,style:x,...p}){const h=Mh[i]||Mh["display-large"],m=s??h.fontFamily,f=l??h.fontSize,g=c??h.fontWeight,b=d??h.letterSpacing,v="number"==typeof l?l:h.pxHint,y=kh(a,n),j="dino-bevel-"+e.useId().replace(/:/g,""),S=j+"-s",B=e.useRef(null),[k,C]=e.useState(v),w=.6*v,T=Math.max(400,t.length*w+80),I=1.9*v,A=T/2,z=.7*I;e.useEffect(()=>{if(!B.current||"undefined"==typeof ResizeObserver)return;const e=B.current,t=()=>{const t=e.getBoundingClientRect();T&&t.width&&C(v*(t.width/T))};t();const r=new ResizeObserver(t);return r.observe(e),()=>r.disconnect()},[T,v]);const R=k>=19,E=y.bevel?Th(y.angle+180,y.depth):{dx:0,dy:0},L=y.bevel?Th(y.angle,y.depth):{dx:0,dy:0},P=y.shadow?Th(y.angle,y.shadowDistance??6):{dx:0,dy:0},M=R?Ch(o,"base"):wh(o),O=Ch(o,"highlight"),D=Ch(o,"lowlight"),W={fontFamily:m,fontSize:"number"==typeof f?f+"px":f,fontWeight:g,letterSpacing:"number"==typeof b?b+"px":b},F=y.bevel&&R?"url(#"+j+")":void 0,N=y.shadow&&R?"url(#"+S+")":void 0;return r.jsxs("svg",{ref:B,viewBox:"0 0 "+T+" "+I,width:T,height:I,preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",style:{display:"block",maxWidth:"100%",height:"auto",overflow:"visible",...x},"aria-label":t,role:"img",className:["dino-bevel-text",u].filter(Boolean).join(" "),...p,children:[r.jsxs("defs",{children:[y.shadow&&r.jsx("filter",{id:S,x:"-30%",y:"-30%",width:"160%",height:"160%",children:r.jsx("feDropShadow",{dx:P.dx.toFixed(2),dy:P.dy.toFixed(2),stdDeviation:y.shadowBlur??8,style:{floodColor:D,floodOpacity:y.shadowOpacity??.6}})}),y.bevel&&r.jsxs("filter",{id:j,x:"-5%",y:"-5%",width:"110%",height:"110%",colorInterpolationFilters:"sRGB",children:[r.jsx("feGaussianBlur",{in:"SourceAlpha",stdDeviation:(y.softness??1)+.5,result:"blur-alpha"}),r.jsx("feOffset",{in:"blur-alpha",dx:L.dx.toFixed(2),dy:L.dy.toFixed(2),result:"shadow-offset"}),r.jsx("feFlood",{style:{floodColor:D,floodOpacity:.95},result:"shadow-flood"}),r.jsx("feComposite",{in:"shadow-flood",in2:"shadow-offset",operator:"in",result:"shadow-shaped"}),r.jsx("feComposite",{in:"shadow-shaped",in2:"SourceAlpha",operator:"in",result:"shadow-clipped"}),r.jsx("feOffset",{in:"blur-alpha",dx:E.dx.toFixed(2),dy:E.dy.toFixed(2),result:"hi-offset"}),r.jsx("feFlood",{style:{floodColor:O,floodOpacity:.95},result:"hi-flood"}),r.jsx("feComposite",{in:"hi-flood",in2:"hi-offset",operator:"in",result:"hi-shaped"}),r.jsx("feComposite",{in:"hi-shaped",in2:"SourceAlpha",operator:"in",result:"hi-clipped"}),r.jsxs("feMerge",{children:[r.jsx("feMergeNode",{in:"SourceGraphic"}),r.jsx("feMergeNode",{in:"shadow-clipped"}),r.jsx("feMergeNode",{in:"hi-clipped"})]})]})]}),y.shadow&&R&&r.jsx("text",{className:"dino-bevel-layer dino-bevel-layer--shadow",x:A,y:z,textAnchor:"middle",fill:M,filter:N,style:W,"aria-hidden":"true",children:t}),r.jsx("text",{className:y.bevel?"dino-bevel-text__base dino-bevel-layer":"dino-bevel-text__base",x:A,y:z,textAnchor:"middle",fill:M,filter:F,style:W,children:t})]})}const Dh=[...Bh.map(e=>({value:e,label:e,description:Sh[e].description})),{value:"custom",label:"Custom",description:"Tune every knob"}],Wh=[{value:"light",label:"Light",css:"var(--Surface)"},{value:"warm",label:"Warm",css:"var(--Surface-Dim)"},{value:"dark",label:"Dark",css:"var(--Container-High)"}];function Fh({label:e,selected:t,onClick:o}){return r.jsx(Ur,{selected:t,variant:t?"default":"default-outline",size:"small",onClick:o,children:e})}function Nh({option:e,active:o,onClick:a}){return r.jsxs(t.Box,{onClick:a,role:"button",tabIndex:0,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),a())},sx:{flex:"1 1 140px",minWidth:130,cursor:"pointer",border:"1.5px solid",borderColor:o?"var(--Buttons-Primary-Border)":"var(--Border)",background:o?"rgb(var(--Buttons-Primary-Highlight) / 0.18)":"var(--Background)",borderRadius:"var(--Style-Border-Radius)",p:1.5,transition:"border-color 0.15s, background 0.15s",textAlign:"center","&:hover":{borderColor:"var(--Buttons-Primary-Border)"},"&:focus-visible":{outline:"2px solid var(--Focus-Visible)",outlineOffset:2}},children:[r.jsx(Kt,{style:{fontWeight:600,color:"var(--Text)"},children:e.label}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginTop:2},children:e.description})]})}const Hh={small:{summaryPadding:"8px 12px",detailsPy:"8px",detailsPx:"12px",fontSize:"13px",iconSize:"small"},medium:{summaryPadding:"12px 8px 12px 16px",detailsPy:"12px",detailsPx:"16px",fontSize:"14px",iconSize:"medium"},large:{summaryPadding:"16px 20px",detailsPy:"16px",detailsPx:"20px",fontSize:"16px",iconSize:"large"}},Vh=e.createContext({variant:"solid",color:"default",size:"medium",spacing:0}),Qh=e.createContext({expanded:!1,toggle:()=>{},disabled:!1,accordionId:""});const Gh={small:Vt,medium:Gt,large:Xt};const qh={1:{padLeft:0,togglePadLeft:0},2:{padLeft:24,togglePadLeft:4},3:{padLeft:48,togglePadLeft:0},4:{padLeft:72,togglePadLeft:0},5:{padLeft:88,togglePadLeft:4}},Uh={0:{padLeft:8},1:{padLeft:48},2:{padLeft:56,slotPadLeft:4},3:{padLeft:64,slotPadLeft:4},4:{padLeft:88,slotPadLeft:4},5:{padLeft:112},6:{padLeft:128}};const Xh=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",Kh=[{label:"Default",colors:["default"]},{label:"Theme",colors:["primary","secondary","tertiary","neutral"]},{label:"State",colors:["info","success","warning","error"]}],Jh=e=>r.jsx(t.Box,{sx:{width:8,height:8,borderRadius:"50%",backgroundColor:e,flexShrink:0}}),Yh=[{id:"1",label:"Documents",icon:r.jsx(Ze,{}),badge:Jh("var(--Warning-Text, orange)"),children:[{id:"1-1",label:"Company",icon:r.jsx(at,{}),badge:Jh("var(--Warning-Text, orange)"),children:[{id:"1-1-1",label:"Invoice",icon:r.jsx(it,{})},{id:"1-1-2",label:"Meeting notes",icon:r.jsx(nt,{})},{id:"1-1-3",label:"Tasks list",icon:r.jsx(nt,{})},{id:"1-1-4",label:"Equipment",icon:r.jsx(it,{})},{id:"1-1-5",label:"Video conference",icon:r.jsx(lt,{})}]},{id:"1-2",label:"Personal",icon:r.jsx(Ze,{})},{id:"1-3",label:"Group photo",icon:r.jsx(Pe,{})}]},{id:"2",label:"Bookmarked",icon:r.jsx(Ve,{}),children:[{id:"2-1",label:"Favourites",icon:r.jsx(nt,{})}]},{id:"3",label:"History",icon:r.jsx(Ze,{})},{id:"4",label:"Trash",icon:r.jsx(m,{}),disabled:!0}],Zh=JSON.stringify(Ex,null,2);function $h(e){const t=e.replace("#",""),r=parseInt(t.substring(0,2),16)/255,o=parseInt(t.substring(2,4),16)/255,a=parseInt(t.substring(4,6),16)/255,n=e=>e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4);return.2126*n(r)+.7152*n(o)+.0722*n(a)}function _h(e,t){if(!(e&&t&&e.startsWith("#")&&t.startsWith("#")))return null;const r=$h(e),o=$h(t);return((Math.max(r,o)+.05)/(Math.min(r,o)+.05)).toFixed(2)}function em({ratio:e,threshold:o}){if(!e)return r.jsx(Kt,{style:{color:"var(--Text-Quiet)"},children:"--"});const a=parseFloat(e)>=o;return r.jsxs(t.Box,{sx:{display:"inline-flex",alignItems:"center",gap:.5},children:[r.jsxs(t.Box,{sx:{px:1,py:.25,borderRadius:"4px",fontSize:"11px",fontWeight:700,backgroundColor:a?"var(--Tags-Success-BG)":"var(--Tags-Error-BG)",color:a?"var(--Tags-Success-Text)":"var(--Tags-Error-Text)"},children:[e,":1"]}),r.jsx(Kt,{style:{color:a?"var(--Tags-Success-Text)":"var(--Tags-Error-Text)"},children:a?"Pass":"Fail"})]})}function tm({label:e,ratio:o,threshold:a,note:n}){return r.jsxs(t.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsxs(t.Box,{sx:{flex:1},children:[r.jsx(Vt,{style:{color:"var(--Text)"},children:e}),n&&r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:n})]}),r.jsx(em,{ratio:o,threshold:a})]})}function rm({label:e,selected:t,onClick:o}){return r.jsx(Ur,{selected:t,variant:t?"default":"default-outline",size:"small",onClick:o,children:e})}function om({color:e,selected:o,onClick:n}){const i=Xh(e);return r.jsx(t.Box,{component:"button",onClick:()=>n(e),"aria-label":"Select "+i,"aria-pressed":o,title:i,sx:{width:"var(--Button-Height)",height:"var(--Button-Height)",borderRadius:"4px",backgroundColor:"var(--Buttons-"+i+"-Button)",border:o?"2px solid var(--Text)":"1px solid var(--Border)",outline:o?"2px solid var(--Focus-Visible)":"2px solid transparent",outlineOffset:"1px",cursor:"pointer",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",transition:"transform 0.1s ease","&:hover":{transform:"scale(1.1)"}},children:o&&r.jsx(a,{sx:{fontSize:16,color:"var(--Buttons-"+i+"-Text)",pointerEvents:"none"}})})}function am({value:o,onChange:a}){const[n,i]=e.useState(o),[l,s]=e.useState(null);return r.jsxs(t.Box,{children:[r.jsxs(t.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)"},children:"TREE DATA (JSON)"}),r.jsx(Ur,{variant:"ghost",size:"small",onClick:()=>{i(Zh),s(null),a(Ex)},children:"Reset"})]}),r.jsx(t.Box,{component:"textarea",value:n,onChange:e=>{i(e.target.value);try{const t=JSON.parse(e.target.value);s(null),a(t)}catch(e){s(e.message)}},spellCheck:!1,rows:10,sx:{width:"100%",fontFamily:"monospace",fontSize:"11px",backgroundColor:"#1e1e1e",color:l?"#f87171":"#e5e7eb",border:"1px solid "+(l?"#f87171":"#333"),borderRadius:"6px",padding:"10px",resize:"vertical",outline:"none",boxSizing:"border-box",lineHeight:1.5,"&:focus":{borderColor:"var(--Focus-Visible)"}}}),l&&r.jsxs(Kt,{style:{color:"#f87171",display:"block",marginTop:4},children:["JSON error: ",l]})]})}function nm(e,t){if(document.getElementById(t))return;const r=document.createElement("link");r.rel="stylesheet",r.href=e,r.id=t,document.head.appendChild(r)}const im=[{value:"desktop",label:"Desktop",note:"32px touch targets (WCAG)"},{value:"ios-mobile",label:"iOS Mobile",note:"44px touch targets (HIG)"},{value:"ios-tablet",label:"iOS Tablet",note:"44px touch targets (HIG)"},{value:"android",label:"Android",note:"48px touch targets (M3)"}],lm={desktop:"32px","ios-mobile":"44px","ios-tablet":"44px",android:"48px"};exports.Accordion=function({children:o,expanded:a,defaultExpanded:n=!1,onChange:i,disabled:l=!1,className:s="",sx:c={},...d}){const[u,x]=e.useState(n),p=void 0!==a,h=p?a:u,{spacing:m,dataTheme:f,dataSurface:g}=e.useContext(Vh),b=0===m,[v]=e.useState(()=>"accordion-"+Math.random().toString(36).substring(2,9)),y=r.jsx(Qh.Provider,{value:{expanded:h,toggle:()=>{if(l)return;const e=!h;p||x(e),i?.(e)},disabled:l,accordionId:v},children:r.jsx(t.Box,{className:"accordion"+(h?" accordion-expanded":"")+(l?" accordion-disabled":"")+" "+s,sx:{...b&&{borderBottom:"1px solid var(--Border-Variant)","&:last-child":{borderBottom:"none"}},opacity:l?.5:1,...c},...d,children:o})});return b?y:r.jsx(t.Box,{sx:{border:"1px solid var(--Border-Variant)",borderRadius:"var(--Button-Radius)",overflow:"hidden",boxShadow:wr},children:r.jsx(t.Box,{"data-theme":f,"data-surface":g,sx:{backgroundColor:"var(--Background)",borderRadius:"calc(var(--Button-Radius) - 1px)"},children:y})})},exports.AccordionDetails=function({children:o,className:a="",sx:n={},...i}){const{expanded:l,accordionId:s}=e.useContext(Qh),{size:c}=e.useContext(Vh),d=Hh[c]||Hh.medium;return l?r.jsx(t.Box,{role:"region",id:s+"-content","aria-labelledby":s+"-header",className:"accordion-details "+a,sx:{padding:"0 "+d.detailsPx+" "+d.detailsPy+" "+d.detailsPx,color:"var(--Text)",fontSize:d.fontSize,fontFamily:"inherit",lineHeight:1.6,...n},...i,children:o}):null},exports.AccordionGroup=function({children:e,variant:o="solid",color:a="default",size:n="medium",spacing:i=0,className:l="",sx:s={},...c}){const d="default"===a?"Default":(u=a).charAt(0).toUpperCase()+u.slice(1);var u;const x="light"===o?"default"===a?"Default":d+"-Light":d,p="dark"===o?"Surface-Dimmest":"Surface";return 0===i?r.jsx(Vh.Provider,{value:{variant:o,color:a,size:n,spacing:i},children:r.jsx(t.Box,{role:"presentation",className:"accordion-group accordion-group-"+o+" "+l,sx:{border:"1px solid var(--Border-Variant)",borderRadius:"var(--Button-Radius)",overflow:"hidden",boxShadow:wr,...s},...c,children:r.jsx(t.Box,{"data-theme":x,"data-surface":p,sx:{backgroundColor:"var(--Background)",borderRadius:"calc(var(--Button-Radius) - 1px)"},children:e})})}):r.jsx(Vh.Provider,{value:{variant:o,color:a,size:n,spacing:i,dataTheme:x,dataSurface:p},children:r.jsx(t.Box,{role:"presentation",className:"accordion-group accordion-group-"+o+" accordion-group-spaced "+l,sx:{display:"flex",flexDirection:"column",gap:.5===i?"var(--Sizing-Half)":1===i?"var(--Sizing-1)":1.5===i?"var(--Sizing-1-and-Half)":2===i?"var(--Sizing-2)":8*i+"px",...s},...c,children:e})})},exports.AccordionSummary=function({children:o,startDecorator:a,endDecorator:n,eyebrow:i,overline:l,secondary:s,expandIcon:c,className:d="",sx:u={},...p}){const{expanded:h,toggle:m,disabled:f,accordionId:g}=e.useContext(Qh),{size:b}=e.useContext(Vh),v=Hh[b]||Hh.medium,y=Gh[b]||Gh.medium,j=c||r.jsx(dr,{size:v.iconSize,sx:{color:h?"var(--Text)":"var(--Quiet)",transition:"color 0.15s ease"},children:r.jsx(x,{})}),S={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"block"};return r.jsxs(t.Box,{component:"button",role:"button","aria-expanded":h,"aria-controls":g+"-content",id:g+"-header",tabIndex:f?-1:0,onClick:m,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),m())},className:"accordion-summary"+(h?" accordion-summary-expanded":"")+" "+d,sx:{display:"flex",flexDirection:"row",alignItems:"flex-start",justifyContent:"flex-start",width:"100%",gap:"var(--Sizing-1-and-Half)",padding:v.summaryPadding,border:"none",backgroundColor:"transparent",color:h?"var(--Text)":"var(--Quiet)",fontSize:v.fontSize,fontFamily:"inherit",cursor:f?"not-allowed":"pointer",textAlign:"left",transition:"color 0.2s ease, background-color 0.15s ease",borderRadius:0,"&:hover":f?{}:{color:"var(--Text)","& .omni-icon":{color:"var(--Text)"}},"&:focus-visible":{outline:"3px solid var(--Focus-Visible)",outlineOffset:"-3px"},...u},...p,children:[a&&r.jsx(t.Box,{className:"accordion-summary-start",sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:a}),r.jsxs(t.Box,{sx:{flex:1,minWidth:0,display:"flex",flexDirection:"column",gap:"var(--Sizing-Half)"},children:[(i??l)&&r.jsx(Yt,{style:{...S,color:"var(--Text-Quiet)"},children:i??l}),null!=o&&r.jsx(y,{style:{...S,color:"inherit",fontWeight:600},children:o}),s&&r.jsx(Vt,{style:{...S,color:"var(--Text-Quiet)"},children:s})]}),n&&r.jsx(t.Box,{className:"accordion-summary-end",sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:n}),r.jsx(t.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",transform:h?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.25s ease",flexShrink:0},children:j})]})},exports.Alert=Wx,exports.AlertDialog=function({open:e,onClose:o,title:a,children:n,confirmText:i="Confirm",cancelText:l="Cancel",onConfirm:s,onCancel:c,...d}){return r.jsx(ps,{open:e,onClose:o,title:a,alert:!0,...d,actions:r.jsxs(r.Fragment,{children:[r.jsx(t.Box,{component:"button",type:"button",onClick:c||o,sx:xs.outline,children:l}),r.jsx(t.Box,{component:"button",type:"button",onClick:s||o,sx:xs.primary,children:i})]}),children:n})},exports.AlertShowcase=function(){const[o,a]=e.useState("light"),[n,i]=e.useState("info"),[l,s]=e.useState("medium"),[c,d]=e.useState(!0),[u,x]=e.useState(null),[p,h]=e.useState("Surface"),m=c&&Hx[n]?r.jsx(dr,{size:"small",sx:{color:"inherit"},children:Hx[n]}):void 0;return r.jsxs(t.Box,{sx:{pb:8},children:[r.jsx(Pt,{children:"Alert"}),r.jsxs(t.Grid,{container:!0,sx:{mt:2,alignItems:"flex-start",flexWrap:"wrap"},children:[r.jsxs(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"55%"},flexShrink:0,pr:{md:3}},children:[r.jsx(To,{theme:u,surface:p,children:r.jsx(t.Box,{sx:{width:"100%",maxWidth:480},children:r.jsx(Wx,{variant:o,color:n,size:l,startDecorator:m,children:"This is an alert message. Check the details for more information."})})}),r.jsx(na,{code:(()=>{const e=['variant="'+o+'"'];return"info"!==n&&e.push('color="'+n+'"'),"medium"!==l&&e.push('size="'+l+'"'),c&&Hx[n]&&e.push("startDecorator={<Icon><"+Fx(n)+"Icon /></Icon>}"),"<Alert "+e.join(" ")+">\n This is an alert message.\n</Alert>"})(),language:"JSX",wrap:!0,sx:{mt:2}})]}),r.jsx(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"45%"},flexShrink:0,alignSelf:"flex-start",minWidth:0,overflow:"hidden"},children:r.jsx(t.Box,{sx:{backgroundColor:"var(--Background)",overflow:"hidden"},children:r.jsxs(Bo,{defaultValue:0,variant:"standard",color:"primary",children:[r.jsxs(ko,{children:[r.jsx(Co,{children:"Playground"}),r.jsx(Co,{children:"Accessibility"})]}),r.jsx(wo,{value:0,children:r.jsxs(t.Box,{sx:{p:3},children:[r.jsx(t.Box,{sx:{mb:3},children:r.jsx(Ro,{theme:u,onThemeChange:x,surface:p,onSurfaceChange:h})}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"STYLE"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["solid","light"].map(e=>r.jsx(Vx,{label:Fx(e),selected:o===e,onClick:()=>a(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"COLOR"}),r.jsx(t.Stack,{spacing:1.5,children:Nx.map(e=>r.jsxs(t.Box,{children:[r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:4,fontWeight:600},children:e.label}),r.jsx(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:e.colors.map(e=>r.jsx(Qx,{color:e,selected:n===e,onClick:i},e))})]},e.label))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"SIZE"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["small","medium","large"].map(e=>r.jsx(Vx,{label:Fx(e),selected:l===e,onClick:()=>s(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Show Icon"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Start decorator icon"})]}),r.jsx(xa,{variant:"default-outline",checked:c,onChange:e=>d(e.target.checked),size:"small","aria-label":"Show icon"})]})]})}),r.jsx(wo,{value:1,children:r.jsx(t.Box,{sx:{p:3},children:r.jsx(t.Stack,{spacing:3,children:r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"ARIA and Semantics"}),r.jsx(t.Stack,{spacing:0,children:[{label:"Role",value:'role="alert" — live region, announced immediately'},{label:"Border",value:"var(--Buttons-{Color}-Border) on outer shell"},{label:"Shadow",value:"var(--Effect-Level-3)"},{label:"Icons",value:"Decorative — aria-hidden by default via Icon component"}].map(({label:e,value:o})=>r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsxs(Vt,{children:[e,":"]}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:o})]},e))})]})})})})]})})})]})]})},exports.AppBar=function({mode:e="desktop",...t}){return"mobile"===e?r.jsx(Gp,{...t}):r.jsx(Qp,{...t})},exports.AppBarShowcase=function(){const[o,a]=e.useState("desktop"),[n,i]=e.useState("default"),[l,s]=e.useState("Surface"),[c,d]=e.useState("login"),[u,x]=e.useState("hamburger"),[p,h]=e.useState("name"),[m,f]=e.useState("right"),[g,b]=e.useState("search"),[v,y]=e.useState(null),[j,S]=e.useState("Surface"),[B,k]=e.useState({}),C="desktop"===o,w=Kp[n]||Kp.default,T=w.theme,I=w.surface||l;return e.useEffect(()=>{const e={};e.text=Zp("--Text"),e.textQuiet=Zp("--Text-Quiet"),e.background=Zp("--Background"),e.border=Zp("--Border"),e.focusVisible=Zp("--Focus-Visible"),e.hover=Zp("--Hover"),e.active=Zp("--Pressed"),k(e)},[n,l,o]),r.jsxs(t.Box,{sx:{pb:8},children:[r.jsx(Pt,{children:"App Bar"}),r.jsxs(t.Grid,{container:!0,sx:{mt:2,alignItems:"flex-start",flexWrap:"wrap"},children:[r.jsxs(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"55%"},flexShrink:0,pr:{md:3}},children:[r.jsx(To,{theme:v,children:r.jsx(t.Box,{sx:{width:"100%",maxWidth:C?"100%":420,overflow:"hidden"},children:C?r.jsx(Qp,{barColor:n,surface:l,loginType:c,menuType:u,brandType:p,searchPosition:m,companyName:"My App",navLinks:["Home","Products","About"]}):r.jsx(Gp,{barColor:n,surface:l,mobileVariant:g,companyName:"My App",title:"Page Title",subtitle:"Subtitle text"})})}),r.jsx(na,{code:(()=>{if(C){const e=[];"default"!==n&&e.push('barColor="'+n+'"'),"Surface"!==l&&e.push('surface="'+l+'"'),"login"!==c&&e.push('loginType="'+c+'"'),"hamburger"!==u&&e.push('menuType="'+u+'"'),"name"!==p&&e.push('brandType="'+p+'"'),"right"!==m&&e.push('searchPosition="'+m+'"');const t=e.length?"\n "+e.join("\n ")+"\n":"";return'<AppBar mode="desktop"'+(t||" ")+'companyName="My App" />'}{const e=['mode="mobile"','mobileVariant="'+g+'"'];return"default"!==n&&e.push('barColor="'+n+'"'),"Surface"!==l&&e.push('surface="'+l+'"'),"<AppBar\n "+e.join("\n ")+'\n title="Page Title"\n/>'}})(),language:"JSX",wrap:!0,sx:{mt:2}})]}),r.jsx(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"45%"},flexShrink:0,alignSelf:"flex-start",minWidth:0,overflow:"hidden"},children:r.jsx(t.Box,{sx:{backgroundColor:"var(--Background)",overflow:"hidden"},children:r.jsxs(Bo,{defaultValue:0,variant:"standard",color:"primary",children:[r.jsxs(ko,{children:[r.jsx(Co,{children:"Playground"}),r.jsx(Co,{children:"Accessibility"})]}),r.jsx(wo,{value:0,children:r.jsxs(t.Box,{sx:{p:3},children:[r.jsx(t.Box,{sx:{mb:3},children:r.jsx(Ro,{theme:v,onThemeChange:y,surface:j,onSurfaceChange:S})}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"MODE"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["desktop","mobile"].map(e=>r.jsx(eh,{label:qp(e),selected:o===e,onClick:()=>a(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"BAR COLOR"}),r.jsx(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:Up.map(e=>r.jsx(th,{color:e,selected:n===e,onClick:i},e))}),r.jsxs(Kt,{style:{color:"var(--Text-Quiet)",marginTop:6,display:"block"},children:['data-theme="',T,'"']})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"SURFACE"}),r.jsx(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:Xp.map(e=>r.jsx(eh,{label:e.replace("Surface-","").replace("Surface","Default"),selected:l===e,onClick:()=>s(e)},e))}),r.jsxs(Kt,{style:{color:"var(--Text-Quiet)",marginTop:6,display:"block"},children:['data-surface="',l,'"']})]}),C&&r.jsxs(r.Fragment,{children:[r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"MENU TYPE"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["hamburger","expanded"].map(e=>r.jsx(eh,{label:qp(e),selected:u===e,onClick:()=>x(e)},e))}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",marginTop:4,display:"block"},children:"Expanded auto-falls back to hamburger when nav > 3 links"})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"BRAND"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["name","logo"].map(e=>r.jsx(eh,{label:qp(e),selected:p===e,onClick:()=>h(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"SEARCH POSITION"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["left","right"].map(e=>r.jsx(eh,{label:qp(e),selected:m===e,onClick:()=>f(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"LOGIN TYPE"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["login","avatar"].map(e=>r.jsx(eh,{label:qp(e),selected:c===e,onClick:()=>d(e)},e))})]})]}),!C&&r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"MOBILE VARIANT"}),r.jsx(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:["search","small","medium","large"].map(e=>r.jsx(eh,{label:qp(e),selected:g===e,onClick:()=>b(e)},e))})]})]})}),r.jsx(wo,{value:1,children:r.jsxs(t.Box,{sx:{p:3},children:[r.jsxs(Vt,{color:"quiet",style:{marginBottom:24},children:[o," / ",n," / ",l,C?"":" / "+g,' — data-theme="',T,'" data-surface="',I,'"']}),r.jsxs(t.Stack,{spacing:3,children:[r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"Text Contrast (WCAG 1.4.3 — 4.5:1)"}),r.jsx(Vt,{color:"quiet",style:{marginBottom:16},children:"All text and icons must have 4.5:1 contrast against the AppBar background."}),r.jsx(_p,{label:"Resting: var(--Text) vs. var(--Background)",ratio:Yp(B.text,B.background),threshold:4.5,note:'data-theme="'+T+'" data-surface="'+I+'"'}),r.jsx(_p,{label:"On hover: var(--Text) vs. var(--Hover)",ratio:Yp(B.text,B.hover),threshold:4.5,note:"Icon buttons use var(--Hover) on hover"}),r.jsx(_p,{label:"On active: var(--Text) vs. var(--Pressed)",ratio:Yp(B.text,B.active),threshold:4.5,note:"Icon buttons use var(--Pressed) on press"})]}),r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"Focus Indicator (WCAG 2.4.11 — 3:1)"}),r.jsx(_p,{label:"var(--Focus-Visible) vs. var(--Background)",ratio:Yp(B.focusVisible,B.background),threshold:3,note:"outline: 3px solid var(--Focus-Visible); outline-offset: 1px"})]}),r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"Touch Target Area (WCAG 2.5.5)"}),[{label:"Icon button",size:40,note:"width: 40px, height: 40px"},{label:"AppBar (desktop)",size:64,note:"height: 64px"},{label:"AppBar (mobile)",size:64,note:"height: 64px"}].map(({label:e,size:o,note:a})=>{const n=o>=24,i=o>=44,l=o>=48;return r.jsxs(t.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsxs(t.Box,{sx:{flex:1},children:[r.jsxs(Vt,{style:{color:"var(--Text)"},children:[e," — ",o,"px"]}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:a})]}),r.jsxs(t.Box,{sx:{display:"flex",gap:.5,flexWrap:"wrap",justifyContent:"flex-end"},children:[r.jsxs(t.Box,{sx:{px:1,py:.25,borderRadius:"4px",fontSize:"11px",fontWeight:700,backgroundColor:n?"var(--Tags-Success-BG)":"var(--Tags-Error-BG)",color:n?"var(--Tags-Success-Text)":"var(--Tags-Error-Text)"},children:["Desktop ",n?"Y":"N"]}),r.jsxs(t.Box,{sx:{px:1,py:.25,borderRadius:"4px",fontSize:"11px",fontWeight:700,backgroundColor:i?"var(--Tags-Success-BG)":"var(--Tags-Warning-BG)",color:i?"var(--Tags-Success-Text)":"var(--Tags-Warning-Text)"},children:["iOS ",i?"Y":"~"]}),r.jsxs(t.Box,{sx:{px:1,py:.25,borderRadius:"4px",fontSize:"11px",fontWeight:700,backgroundColor:l?"var(--Tags-Success-BG)":"var(--Tags-Warning-BG)",color:l?"var(--Tags-Success-Text)":"var(--Tags-Warning-Text)"},children:["Android ",l?"Y":"~"]})]})]},e)})]}),r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"ARIA and Semantics"}),r.jsxs(t.Stack,{spacing:0,children:[r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsx(Vt,{children:"Landmark:"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:'<header role="banner">'})]}),r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsx(Vt,{children:"Navigation (expanded menu):"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:'<nav aria-label="Main navigation">'})]}),r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsx(Vt,{children:"Theme + Surface:"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:'data-theme="'+T+'" data-surface="'+I+'"'})]}),r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsx(Vt,{children:"Shadow:"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:"box-shadow: var(--Effect-Level-1)"})]}),r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsx(Vt,{children:"Icon buttons:"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)"},children:"All icon buttons have aria-label. Focus visible on keyboard navigation."})]}),r.jsxs(t.Box,{sx:{py:1.5},children:[r.jsx(Vt,{children:"Keyboard:"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)"},children:"Tab navigates all interactive elements. Enter/Space activates buttons."})]})]})]})]})]})})]})})})]})]})},exports.Autocomplete=Pn,exports.AutocompleteShowcase=function(){const[o,a]=e.useState("outline"),[n,i]=e.useState("default"),[l,s]=e.useState("medium"),[c,d]=e.useState("top"),[u,x]=e.useState("Fruit"),[p,h]=e.useState(!0),[m,f]=e.useState(!1),[g,b]=e.useState(!0),[v,y]=e.useState(null),[j,S]=e.useState("Surface");return r.jsxs(t.Box,{sx:{pb:8},children:[r.jsx(Pt,{children:"Autocomplete"}),r.jsxs(t.Grid,{container:!0,sx:{mt:2,alignItems:"flex-start",flexWrap:"wrap"},children:[r.jsxs(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"55%"},flexShrink:0,pr:{md:3}},children:[r.jsx(To,{theme:v,surface:j,children:r.jsx(t.Box,{sx:{width:"100%",maxWidth:360},children:r.jsx(Pn,{variant:o,color:n,size:l,label:u,labelPosition:c,options:Dn,clearable:p,disabled:m,fullWidth:g})})}),r.jsx(na,{code:(()=>{const e=[];return"outline"!==o&&e.push('variant="'+o+'"'),"default"!==n&&e.push('color="'+n+'"'),"medium"!==l&&e.push('size="'+l+'"'),u&&e.push('label="'+u+'"'),"top"!==c&&e.push('labelPosition="'+c+'"'),p||e.push("clearable={false}"),m&&e.push("disabled"),g&&e.push("fullWidth"),e.push("options={options}"),e.push("onChange={handleChange}"),"<Autocomplete\n "+e.join("\n ")+"\n/>"})(),language:"JSX",wrap:!0,sx:{mt:2}})]}),r.jsx(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"45%"},flexShrink:0,alignSelf:"flex-start",minWidth:0,overflow:"hidden"},children:r.jsx(t.Box,{sx:{backgroundColor:"var(--Background)",overflow:"hidden"},children:r.jsxs(Bo,{defaultValue:0,variant:"standard",color:"primary",children:[r.jsxs(ko,{children:[r.jsx(Co,{children:"Playground"}),r.jsx(Co,{children:"Accessibility"})]}),r.jsx(wo,{value:0,children:r.jsxs(t.Box,{sx:{p:3},children:[r.jsx(t.Box,{sx:{mb:3},children:r.jsx(Ro,{theme:v,onThemeChange:y,surface:j,onSurfaceChange:S})}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"STYLE"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["outline","light"].map(e=>r.jsx(Wn,{label:Mn(e),selected:o===e,onClick:()=>a(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"COLOR"}),r.jsx(t.Stack,{spacing:1.5,children:On.map(e=>r.jsxs(t.Box,{children:[r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:4,fontWeight:600},children:e.label}),r.jsx(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:e.colors.map(e=>r.jsx(Fn,{color:e,selected:n===e,onClick:i},e))})]},e.label))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"SIZE"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["small","medium","large"].map(e=>r.jsx(Wn,{label:Mn(e),selected:l===e,onClick:()=>s(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"LABEL"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["top","floating","none"].map(e=>r.jsx(Wn,{label:"none"===e?"None":Mn(e),selected:c===e,onClick:()=>d(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Clearable"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Show clear button when has value"})]}),r.jsx(xa,{checked:p,onChange:e=>h(e.target.checked),size:"small","aria-label":"Clearable"})]}),r.jsxs(t.Box,{sx:{mt:2,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Disabled"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Non-interactive state"})]}),r.jsx(xa,{checked:m,onChange:e=>f(e.target.checked),size:"small","aria-label":"Disabled"})]}),r.jsxs(t.Box,{sx:{mt:2,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Full Width"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Stretch to container width"})]}),r.jsx(xa,{checked:g,onChange:e=>b(e.target.checked),size:"small","aria-label":"Full width"})]})]})}),r.jsx(wo,{value:1,children:r.jsx(t.Box,{sx:{p:3},children:r.jsx(t.Stack,{spacing:3,children:r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"ARIA and Semantics"}),r.jsx(t.Stack,{spacing:0,children:[{label:"Input",value:'role="combobox" aria-expanded aria-haspopup="listbox" aria-autocomplete="list"'},{label:"Dropdown",value:'role="listbox" aria-label="..."'},{label:"Options",value:'role="option" aria-selected="true|false"'},{label:"Label",value:"aria-label from label prop. Always provide a label."},{label:"Keyboard",value:"Arrow keys navigate, Enter selects, Escape closes."},{label:"Focus",value:"outline: 2px solid var(--Focus-Visible); outline-offset: 2px (on outer shell)"}].map(({label:e,value:o})=>r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsxs(Vt,{children:[e,":"]}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:o})]},e))})]})})})})]})})})]})]})},exports.Avatar=mr,exports.AvatarGroup=fr,exports.AvatarShowcase=function(){const[o,a]=e.useState("default"),[n,i]=e.useState("medium"),[l,s]=e.useState("initials"),[c,d]=e.useState(!1),[u,x]=e.useState(!1),[p,h]=e.useState(!1),[m,f]=e.useState(null),[g,b]=e.useState("Surface"),v="photo"===l,y=()=>{const e={size:n,clickable:c,insideButton:u};return v||(e.color=o),"initials"===l&&(e.initials="LN"),"photo"===l&&(e.src="https://i.pravatar.cc/150?img=3",e.alt="User avatar"),e};return r.jsxs(t.Box,{sx:{pb:8},children:[r.jsx(Pt,{children:"Avatar"}),r.jsxs(t.Grid,{container:!0,sx:{mt:2,alignItems:"flex-start",flexWrap:"wrap"},children:[r.jsxs(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"55%"},flexShrink:0,pr:{md:3}},children:[r.jsx(To,{theme:m,surface:g,children:p?r.jsxs(fr,{max:3,size:n,children:[r.jsx(mr,{...y()}),r.jsx(mr,{color:o,size:n,initials:"AB"}),r.jsx(mr,{color:o,size:n,initials:"CD"}),r.jsx(mr,{color:o,size:n,initials:"EF"})]}):r.jsx(mr,{...y()})}),r.jsx(na,{code:(()=>{const e=[];return v||"default"===o||e.push('color="'+o+'"'),"medium"!==n&&e.push('size="'+n+'"'),"initials"===l&&e.push('initials="LN"'),"photo"===l&&e.push('src="..." alt="User avatar"'),c&&e.push("clickable onClick={handleClick}"),u&&e.push("insideButton"),p?"<AvatarGroup max={3}>\n <Avatar "+e.join(" ")+' />\n <Avatar initials="AB" />\n <Avatar initials="CD" />\n <Avatar initials="EF" />\n</AvatarGroup>':"<Avatar "+e.join(" ")+" />"})(),language:"JSX",wrap:!0,sx:{mt:2}})]}),r.jsx(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"45%"},flexShrink:0,alignSelf:"flex-start",minWidth:0,overflow:"hidden"},children:r.jsx(t.Box,{sx:{backgroundColor:"var(--Background)",overflow:"hidden"},children:r.jsxs(Bo,{defaultValue:0,variant:"standard",color:"primary",children:[r.jsxs(ko,{children:[r.jsx(Co,{children:"Playground"}),r.jsx(Co,{children:"Accessibility"})]}),r.jsx(wo,{value:0,children:r.jsxs(t.Box,{sx:{p:3},children:[r.jsx(t.Box,{sx:{mb:3},children:r.jsx(Ro,{theme:m,onThemeChange:f,surface:g,onSurfaceChange:b})}),r.jsxs(t.Box,{sx:{opacity:v?.4:1,pointerEvents:v?"none":"auto"},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"COLOR"}),r.jsx(t.Stack,{spacing:1.5,children:up.map(e=>r.jsxs(t.Box,{children:[r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:4,fontWeight:600},children:e.label}),r.jsx(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:e.colors.map(e=>r.jsx(gp,{color:e,selected:o===e,onClick:a},e))})]},e.label))}),v&&r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginTop:8},children:"Color is ignored when the avatar shows a photo — the image carries the visual."})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"SIZE"}),r.jsx(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:hp.map(e=>r.jsx(fp,{label:mp[e],selected:n===e,onClick:()=>i(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"CONTENT"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:xp.map(e=>r.jsx(fp,{label:pp[e],selected:l===e,onClick:()=>s(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Clickable"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Interactive with hover/focus states"})]}),r.jsx(xa,{variant:"default-outline",checked:c,onChange:e=>d(e.target.checked),size:"small","aria-label":"Clickable"})]}),r.jsxs(t.Box,{sx:{mt:2,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Inside Button"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Adds 2px horizontal margin so the avatar sits cleanly in a Button"})]}),r.jsx(xa,{variant:"default-outline",checked:u,onChange:e=>x(e.target.checked),size:"small","aria-label":"Inside Button"})]}),r.jsxs(t.Box,{sx:{mt:2,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Group"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Show as AvatarGroup with overflow"})]}),r.jsx(xa,{variant:"default-outline",checked:p,onChange:e=>h(e.target.checked),size:"small","aria-label":"Show group"})]})]})}),r.jsx(wo,{value:1,children:r.jsx(t.Box,{sx:{p:3},children:r.jsx(t.Stack,{spacing:3,children:r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"ARIA and Semantics"}),r.jsx(t.Stack,{spacing:0,children:[{label:"Role",value:'role="img" (static) or role="button" (clickable)'},{label:"Label",value:'aria-label from alt, initials, or "Avatar"'},{label:"Image",value:"alt text on <img>. Falls back to initials or icon on error."},{label:"Clickable",value:"Rendered as <button>. Focus ring: 3px solid var(--Focus-Visible)."},{label:"Group",value:'role="group" aria-label="Avatar group, N avatars"'}].map(({label:e,value:o})=>r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsxs(Vt,{children:[e,":"]}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:o})]},e))})]})})})})]})})})]})]})},exports.Badge=jr,exports.BadgeShowcase=function(){const[o,a]=e.useState(0),[n,i]=e.useState("solid"),[l,s]=e.useState("primary"),[c,d]=e.useState("medium"),[u,x]=e.useState("5"),[p,h]=e.useState(!1),[m,f]=e.useState(!1),[g,b]=e.useState({}),y=()=>"solid"===n?l:l+"-"+n,S=()=>{if(p)return;const e=parseInt(u,10);return isNaN(e)||String(e)!==u.trim()?u||void 0:e};e.useEffect(()=>{const e=jp(l),t={};"solid"===n?(t.badgeBg=yp("--Buttons-"+e+"-Button"),t.badgeText=yp("--Buttons-"+e+"-Text"),t.badgeBorder=null):"outline"===n?(t.badgeBg=yp("--Background"),t.badgeText=yp("--Text"),t.badgeBorder=yp("--Buttons-"+e+"-Border")):"light"===n&&(t.badgeBg=yp("--Buttons-"+e+"-Button"),t.badgeText=yp("--Buttons-"+e+"-Text"),t.badgeBorder=yp("--Buttons-"+e+"-Border")),t.background=yp("--Background"),t.focusVisible=yp("--Focus-Visible"),b(t)},[n,l]);const B={small:{badge:"16px",dot:"8px",font:"10px"},medium:{badge:"20px",dot:"10px",font:"12px"},large:{badge:"24px",dot:"12px",font:"14px"}};return r.jsxs(t.Box,{sx:{width:"100%"},children:[r.jsx(Pt,{style:{marginBottom:8},children:"Badge"}),r.jsx(Gt,{color:"quiet",style:{marginBottom:24},children:"Small label attached to an element showing status or count. Solid, outline, and light variants across all 8 colors."}),r.jsxs(t.Tabs,{value:o,onChange:(e,t)=>a(t),sx:{borderBottom:"1px solid var(--Border)",mb:0},children:[r.jsx(t.Tab,{label:"Playground"}),r.jsx(t.Tab,{label:"Accessibility"})]}),0===o&&r.jsxs(t.Grid,{container:!0,sx:{minHeight:400},children:[r.jsxs(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"calc((100vw - 432px) / 2)"},flexShrink:0},children:[r.jsx(t.Box,{sx:{p:4,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:200,backgroundColor:"var(--Background)",borderBottom:"1px solid var(--Border)"},children:r.jsxs(t.Stack,{direction:"row",spacing:6,alignItems:"center",children:[r.jsx(jr,{variant:y(),size:c,badgeContent:S(),dot:p,showZero:m,children:r.jsx(Ye,{sx:{fontSize:32,color:"var(--Text-Quiet)"}})}),r.jsx(jr,{variant:y(),size:c,badgeContent:S(),dot:p,showZero:m,children:r.jsx(v,{sx:{fontSize:32,color:"var(--Text-Quiet)"}})}),r.jsx(jr,{variant:y(),size:c,badgeContent:S(),dot:p,showZero:m,children:r.jsx(j,{sx:{fontSize:32,color:"var(--Text-Quiet)"}})})]})}),r.jsx(na,{code:(()=>{const e=['variant="'+y()+'"','size="'+c+'"'];if(p)e.push("dot");else{const t=S();"number"==typeof t?e.push("badgeContent={"+t+"}"):t&&e.push('badgeContent="'+t+'"')}return m&&e.push("showZero"),"<Badge "+e.join(" ")+">\n <MailIcon />\n</Badge>"})(),language:"JSX",sx:{borderRadius:0,borderBottom:"1px solid var(--Border)"}})]}),r.jsxs(t.Grid,{item:!0,sx:{width:{xs:"calc(100vw - 432px)",md:"calc((100vw - 432px) / 2)"},flexShrink:0,p:3,backgroundColor:"var(--Container)",overflowY:"auto"},children:[r.jsx(Mt,{children:"Playground"}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"STYLE"}),r.jsx(t.Stack,{direction:"row",spacing:1,flexWrap:"wrap",sx:{gap:1},children:["solid","outline","light"].map(e=>r.jsx(wp,{label:jp(e),selected:n===e,onClick:()=>i(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"COLOR"}),r.jsx(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:Sp.map(e=>r.jsx(Cp,{color:e,selected:l===e,onClick:s},e))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"SIZE"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["small","medium","large"].map(e=>r.jsx(wp,{label:jp(e),selected:c===e,onClick:()=>d(e)},e))}),r.jsxs(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginTop:6},children:["Badge ",B[c]?.badge," · Dot ",B[c]?.dot," · Font ",B[c]?.font]})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"BADGE CONTENT"}),r.jsx(t.TextField,{size:"small",value:u,onChange:e=>x(e.target.value),placeholder:"Number or text",disabled:p,sx:{width:"160px","& .MuiOutlinedInput-root":{fontFamily:"inherit",fontSize:"14px",backgroundColor:"var(--Background)","& fieldset":{borderColor:"var(--Border)"},"&:hover fieldset":{borderColor:"var(--Border)"},"&.Mui-focused fieldset":{borderColor:"var(--Buttons-Primary-Border)"}},"& .MuiOutlinedInput-input":{color:"var(--Text)",padding:"6px 12px"}}})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(t.FormControlLabel,{control:r.jsx(t.Checkbox,{checked:p,onChange:e=>h(e.target.checked),size:"small"}),label:r.jsx(Vt,{children:"Dot (no content)"})}),r.jsx(t.FormControlLabel,{control:r.jsx(t.Checkbox,{checked:m,onChange:e=>f(e.target.checked),size:"small"}),label:r.jsx(Vt,{children:"Show zero"})})]})]})]}),1===o&&r.jsxs(t.Box,{sx:{p:4},children:[r.jsx(Mt,{children:"Accessibility Requirements"}),r.jsxs(Vt,{color:"quiet",style:{marginBottom:32},children:["Based on current Playground settings: ",n," · ",l," · ",c]}),r.jsxs(t.Stack,{spacing:4,children:[r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Container)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"Badge Text Contrast"}),r.jsx(Vt,{color:"quiet",style:{marginBottom:16},children:"Badge text must have ≥ 4.5:1 contrast against badge background (WCAG 1.4.3 AA)"}),r.jsx(kp,{label:"Badge Text vs. Badge Background",ratio:vp(g.badgeText,g.badgeBg),threshold:4.5,note:"solid"===n?"var(--Buttons-{C}-Text) vs var(--Buttons-{C}-Button)":"outline"===n?"var(--Text) vs var(--Background)":"var(--Buttons-{C}-Text) vs var(--Buttons-{C}-Button)"})]}),r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Container)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"Badge Visibility"}),r.jsx(Vt,{color:"quiet",style:{marginBottom:16},children:"Badge background (or border) must have ≥ 3:1 contrast against page background (WCAG 1.4.11)"}),(()=>{const e=vp(g.badgeBg,g.background),t=g.badgeBorder?vp(g.badgeBorder,g.background):null;return r.jsx(kp,{label:"Badge vs. Page Background",ratio:(o=e,a=t,o||a?o?a?parseFloat(o)>=parseFloat(a)?o:a:o:a:null),threshold:3.1,note:"outline"===n?"Border "+(t||"--")+":1 — outline relies on border contrast":"BG "+(e||"--")+":1"});var o,a})()]}),r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Container)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"Badge Sizing"}),r.jsx(Vt,{color:"quiet",style:{marginBottom:16},children:"Badge dimensions per size setting"}),r.jsx(t.Box,{sx:{display:"flex",justifyContent:"space-between",py:1.5,borderBottom:"1px solid var(--Border)"},children:r.jsxs(t.Box,{children:[r.jsxs(Vt,{children:["Badge height (",c,")"]}),r.jsxs(Kt,{style:{color:"var(--Text-Quiet)"},children:[B[c]?.badge," height · ",B[c]?.font," font · pill shape"]})]})}),r.jsx(t.Box,{sx:{display:"flex",justifyContent:"space-between",py:1.5,borderBottom:"1px solid var(--Border)"},children:r.jsxs(t.Box,{children:[r.jsxs(Vt,{children:["Dot size (",c,")"]}),r.jsxs(Kt,{style:{color:"var(--Text-Quiet)"},children:[B[c]?.dot," diameter circle"]})]})})]}),r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Container)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"ARIA & Semantics"}),r.jsxs(t.Stack,{spacing:0,children:[r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsx(Vt,{style:{display:"block",marginBottom:2},children:"Screenreader support:"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)"},children:'MUI Badge renders badge content in a visually-hidden span for assistive technology. Numeric content is announced (e.g. "5 notifications").'})]}),r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsx(Vt,{style:{display:"block",marginBottom:2},children:"Dot variant:"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)"},children:"Dot badges are purely decorative. Ensure the parent element conveys status to assistive tech via aria-label or similar."})]}),r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsx(Vt,{style:{display:"block",marginBottom:2},children:"Max overflow:"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)"},children:'When content exceeds max (default 99), displays "99+" visually but announces the actual number to screenreaders.'})]})]})]})]})]})]})},exports.BevelText=Oh,exports.BevelTextShowcase=function(){const[o,a]=e.useState("DinoDesign"),[n,i]=e.useState("Primary"),[l,s]=e.useState("Classic"),[c,d]=e.useState("light"),[u,x]=e.useState(135),[p,h]=e.useState(5),[m,f]=e.useState(1),[g,b]=e.useState(!0),[v,y]=e.useState(!0),[j,S]=e.useState(6),[B,k]=e.useState(8),[C,w]=e.useState(60),[T,I]=e.useState(96),[A,z]=e.useState(900),[R,E]=e.useState(0),L="custom"===l,P=L?{angle:u,depth:p,softness:m,bevel:g,shadow:v,shadowDistance:j,shadowBlur:B,shadowOpacity:C/100}:void 0,M=Wh.find(e=>e.value===c)?.css||Wh[0].css;return r.jsxs(t.Box,{children:[r.jsx(Pt,{style:{marginBottom:12},children:"Bevel Display Text"}),r.jsx(Gt,{color:"quiet",style:{marginBottom:24,maxWidth:720},children:"Straight-line display text with an SVG inset-bevel and optional drop shadow. Colors are locked to the active button-palette tokens (Button / Highlight / Lowlight) so the same preset reads correctly under any theme."}),r.jsxs(t.Box,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(360px, 1fr))",gap:3,alignItems:"start"},children:[r.jsx(t.Box,{sx:{minWidth:0},children:r.jsx(t.Box,{"data-surface":"Container",sx:{background:M,borderRadius:2,p:4,display:"flex",alignItems:"center",justifyContent:"center",minHeight:240,overflow:"auto",position:"sticky",top:16,transition:"background 0.2s"},children:r.jsx(Oh,{text:o,theme:n,preset:l,custom:P,fontSize:T,fontWeight:A,letterSpacing:R})})}),r.jsx(t.Box,{sx:{minWidth:0,alignSelf:"flex-start"},children:r.jsx(t.Box,{sx:{backgroundColor:"var(--Background)",overflow:"hidden"},children:r.jsxs(Bo,{defaultValue:0,variant:"standard",color:"primary",children:[r.jsxs(ko,{children:[r.jsx(Co,{children:"Playground"}),r.jsx(Co,{children:"Accessibility"})]}),r.jsx(wo,{value:0,children:r.jsxs(t.Stack,{spacing:3,sx:{p:3,maxWidth:720},children:[r.jsx(xo,{label:"Text",value:o,onChange:e=>a(e.target.value),placeholder:"Your headline…",size:"medium"}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"THEME"}),r.jsx(t.Stack,{direction:"row",spacing:1,sx:{flexWrap:"wrap",rowGap:1},children:jh.map(e=>r.jsx(Fh,{label:e,selected:n===e,onClick:()=>i(e)},e))}),r.jsxs(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginTop:6},children:["Resolves to ",r.jsxs("code",{children:["--Buttons-","{Theme}","-Button"]})," ","(fill), ",r.jsx("code",{children:"-Highlight"})," (light edge), and"," ",r.jsx("code",{children:"-Lowlight"})," (shadow edge)."]})]}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"PRESETS"}),r.jsx(t.Box,{sx:{display:"flex",flexWrap:"wrap",gap:1},children:Dh.map(e=>r.jsx(Nh,{option:e,active:l===e.value,onClick:()=>function(e){if(s(e),"custom"!==e){const t=kh(e);x(t.angle),h(t.depth??5),f(t.softness??1),b(t.bevel),y(t.shadow),S(t.shadowDistance??6),k(t.shadowBlur??8),w(Math.round(100*(t.shadowOpacity??.6)))}}(e.value)},e.value))})]}),L&&r.jsxs(t.Box,{sx:{border:"1px solid var(--Border)",borderRadius:"var(--Style-Border-Radius)",p:2},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:12},children:"CUSTOM"}),r.jsxs(t.Stack,{spacing:2,children:[r.jsxs("div",{children:[r.jsxs(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:["Light angle",r.jsxs("span",{style:{float:"right"},children:[u,"°"]})]}),r.jsx(Xn,{min:0,max:360,step:5,value:u,onChange:(e,t)=>x(t)})]}),r.jsxs(t.Box,{sx:{border:"1px solid var(--Border-Variant)",borderRadius:1,p:1.5},children:[r.jsx(pa,{label:"Inset bevel",checked:g,onChange:e=>b(e.target.checked)}),g&&r.jsxs(t.Stack,{spacing:1.5,sx:{mt:1.5},children:[r.jsxs("div",{children:[r.jsxs(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:["Depth",r.jsxs("span",{style:{float:"right"},children:[p,"px"]})]}),r.jsx(Xn,{min:1,max:16,step:1,value:p,onChange:(e,t)=>h(t)})]}),r.jsxs("div",{children:[r.jsxs(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:["Softness",r.jsxs("span",{style:{float:"right"},children:[m,"px"]})]}),r.jsx(Xn,{min:0,max:6,step:.5,value:m,onChange:(e,t)=>f(t)})]})]})]}),r.jsxs(t.Box,{sx:{border:"1px solid var(--Border-Variant)",borderRadius:1,p:1.5},children:[r.jsx(pa,{label:"Drop shadow",checked:v,onChange:e=>y(e.target.checked)}),v&&r.jsxs(t.Stack,{spacing:1.5,sx:{mt:1.5},children:[r.jsxs("div",{children:[r.jsxs(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:["Distance",r.jsxs("span",{style:{float:"right"},children:[j,"px"]})]}),r.jsx(Xn,{min:1,max:24,step:1,value:j,onChange:(e,t)=>S(t)})]}),r.jsxs("div",{children:[r.jsxs(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:["Blur",r.jsxs("span",{style:{float:"right"},children:[B,"px"]})]}),r.jsx(Xn,{min:0,max:24,step:1,value:B,onChange:(e,t)=>k(t)})]}),r.jsxs("div",{children:[r.jsxs(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:["Opacity",r.jsxs("span",{style:{float:"right"},children:[C,"%"]})]}),r.jsx(Xn,{min:10,max:100,step:5,value:C,onChange:(e,t)=>w(t)})]})]})]})]})]}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"TYPOGRAPHY"}),r.jsxs(t.Stack,{spacing:2,children:[r.jsxs("div",{children:[r.jsxs(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:["Font size",r.jsxs("span",{style:{float:"right"},children:[T,"px"]})]}),r.jsx(Xn,{min:32,max:160,step:4,value:T,onChange:(e,t)=>I(t)})]}),r.jsxs("div",{children:[r.jsxs(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:["Font weight",r.jsx("span",{style:{float:"right"},children:A})]}),r.jsx(Xn,{min:400,max:900,step:100,value:A,onChange:(e,t)=>z(t)})]}),r.jsxs("div",{children:[r.jsxs(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:["Letter spacing",r.jsxs("span",{style:{float:"right"},children:[R,"px"]})]}),r.jsx(Xn,{min:-2,max:20,step:1,value:R,onChange:(e,t)=>E(t)})]})]})]}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"PREVIEW BACKGROUND"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:Wh.map(e=>r.jsx(Fh,{label:e.label,selected:c===e.value,onClick:()=>d(e.value)},e.value))}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginTop:6},children:"Showcase-only — doesn't affect the emitted code."})]})]})}),r.jsx(wo,{value:1,children:r.jsxs(t.Stack,{spacing:2,sx:{p:3,maxWidth:560},children:[r.jsxs(Kt,{style:{color:"var(--Text-Quiet)"},children:["BevelText uses the same Highlight / Lowlight token pair as button bevels, which target the WCAG 2.1 large-text minimum (3:1). Bevel text is decorative display — the SVG sets"," ",r.jsx("code",{children:'role="img"'})," and ",r.jsx("code",{children:"aria-label"})," to the rendered string so screen readers announce it as a labeled image, not a stream of glyphs."]}),r.jsx(Vt,{color:"quiet",children:"Keep the rendered glyph height above ~24px when the bevel is on — at smaller sizes the highlight / lowlight stripes optically reduce the legible stroke width and the 3:1 contrast no longer feels comfortable."})]})})]})})})]})]})},exports.BlackWhiteToggleButtonGroup=e=>r.jsx(kn,{variant:"black-white",...e}),exports.Body=Gt,exports.Body1=qt,exports.Body2=Ut,exports.BodyBold=e=>r.jsx(Et,{textStyle:"body-bold",...e}),exports.BodyLarge=Xt,exports.BodyLargeBold=e=>r.jsx(Et,{textStyle:"body-large-bold",...e}),exports.BodyLargeSemibold=e=>r.jsx(Et,{textStyle:"body-large-semibold",...e}),exports.BodySemibold=e=>r.jsx(Et,{textStyle:"body-semibold",...e}),exports.BodySmall=Vt,exports.BodySmallBold=e=>r.jsx(Et,{textStyle:"body-small-bold",...e}),exports.BodySmallSemibold=Qt,exports.BottomNavigation=xl,exports.BottomNavigationShowcase=function(){const[o,a]=e.useState(0),[n,i]=e.useState(0),[l,s]=e.useState(!0),[c,d]=e.useState(!0),[u,x]=e.useState("vertical"),[p,h]=e.useState(!0),[m,f]=e.useState("default"),[g,b]=e.useState(4),[v,y]=e.useState(fl.map(e=>({icon:e.icon,label:e.label}))),j=g<=4;e.useEffect(()=>{g>4&&"horizontal"===u&&x("vertical")},[g,u]),e.useEffect(()=>{y(e=>{const t=[],r=[{icon:"Favorite",label:"Favorites"},{icon:"Person",label:"Profile"}];for(let o=0;o<g;o++)if(e[o])t.push(e[o]);else{const e=r[o-fl.length]||{icon:ml[o%ml.length],label:ml[o%ml.length]};t.push(e)}return t}),i(e=>Math.min(e,g-1))},[g]);const S=(e,t,r)=>{y(o=>{const a=[...o];return a[e]={...a[e],[t]:r},a})},B=v.slice(0,g).map(e=>({icon:hl[e.icon]||hl.Home,label:e.label}));return r.jsxs(t.Box,{sx:{pb:8},children:[r.jsx(Pt,{children:"Bottom Navigation"}),r.jsxs(t.Tabs,{value:o,onChange:(e,t)=>a(t),sx:{mt:3,mb:0,borderBottom:"1px solid var(--Border)","& .MuiTabs-indicator":{backgroundColor:"var(--Buttons-Primary-Button)",height:3},"& .MuiTab-root":{color:"var(--Text-Quiet)",textTransform:"none",fontWeight:500,"&.Mui-selected":{color:"var(--Text)"}}},children:[r.jsx(t.Tab,{label:"Playground"}),r.jsx(t.Tab,{label:"Accessibility"})]}),0===o&&r.jsxs(t.Grid,{container:!0,sx:{minHeight:400},children:[r.jsxs(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"calc((100vw - 432px) / 2)"},flexShrink:0},children:[r.jsxs(t.Box,{sx:{p:4,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:300,backgroundColor:"var(--Background)",borderBottom:"1px solid var(--Border)",gap:4},children:[r.jsx(t.Box,{sx:{width:"100%",maxWidth:500,overflow:"hidden",boxShadow:"0 2px 12px rgba(0,0,0,0.08)"},children:r.jsx(xl,{items:B,value:n,onChange:i,showLabels:c,labelOrientation:u,backfill:p,barColor:m,fixed:!1},"bn-"+g+"-"+u+"-"+p+"-"+c+"-"+m)}),r.jsxs(Kt,{style:{color:"var(--Text-Quiet)",textAlign:"center"},children:[g," items · ",c?"horizontal"===u&&j?"Horizontal labels":"Vertical labels":"Icons only",p?" · Backfill":""," · ",(gl.find(e=>e.value===m)||gl[0]).label]})]}),r.jsx(na,{code:(()=>{const e=[];e.push("const items = ["),B.forEach((t,r)=>{const o=v[r];e.push(" { icon: <"+o.icon+"Icon />, label: '"+o.label+"' },")}),e.push("];"),e.push("");const t=[];return t.push("items={items}"),"default"!==m&&t.push('barColor="'+m+'"'),c||t.push("showLabels={false}"),c&&"horizontal"===u&&j&&t.push('labelOrientation="horizontal"'),p||t.push("backfill={false}"),l||t.push("fixed={false}"),e.push("<BottomNavigation"),t.forEach(t=>e.push(" "+t)),e.push("/>"),e.join("\n")})(),language:"JSX",sx:{borderRadius:0,borderBottom:"1px solid var(--Border)"}})]}),r.jsxs(t.Grid,{item:!0,sx:{width:{xs:"calc(100vw - 432px)",md:"calc((100vw - 432px) / 2)"},flexShrink:0,p:3,backgroundColor:"var(--Container)",overflowY:"auto"},children:[r.jsx(Mt,{children:"Playground"}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"BAR COLOR"}),r.jsx(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:gl.map(e=>r.jsx(bl,{label:e.label,selected:m===e.value,onClick:()=>f(e.value)},e.value))}),r.jsxs(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginTop:6},children:[(gl.find(e=>e.value===m)||gl[0]).desc,' · data-surface="Surface-Dim" · bg: var(--Background)']})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"OPTIONS"}),r.jsxs(t.Stack,{spacing:0,children:[r.jsx(Sl,{label:"Fixed",checked:l,onChange:s,caption:"Position fixed to bottom of viewport."}),r.jsx(Sl,{label:"Labels",checked:c,onChange:d,caption:"Show text labels with icons."}),r.jsx(Sl,{label:"Selected Backfill",checked:p,onChange:h,caption:"Pill on selected: bg var(--Buttons-Primary-Button), border var(--Buttons-Primary-Border), icon var(--Buttons-Primary-Text)."})]})]}),c&&r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"LABEL ORIENTATION"}),r.jsxs(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:[r.jsx(bl,{label:"Vertical",selected:"vertical"===u,onClick:()=>x("vertical")}),r.jsx(bl,{label:"Horizontal",selected:"horizontal"===u&&j,onClick:()=>{j&&x("horizontal")},disabled:!j})]}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginTop:6},children:j?"vertical"===u?"Icon above label (default). Label below pill.":"Icon beside label. Label inside pill when backfill is on.":"Horizontal is only available with 4 or fewer items. Reduce item count to enable."})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"NAVIGATION ITEMS"}),r.jsx(jl,{label:"Count",value:g,onChange:b,min:3,max:6}),r.jsx(t.Stack,{spacing:1.5,sx:{mt:2},children:v.slice(0,g).map((e,o)=>r.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",gap:1,flexWrap:"nowrap"},children:[r.jsx(Kt,{style:{color:"var(--Text-Quiet)",flexShrink:0,width:16,textAlign:"right"},children:o+1}),r.jsx(yl,{value:e.icon,onChange:e=>S(o,"icon",e),options:ml,label:"Item "+(o+1)+" icon"}),c&&r.jsx(vl,{value:e.label,onChange:e=>S(o,"label",e),placeholder:"Label"})]},o))})]})]})]}),1===o&&r.jsxs(t.Box,{sx:{p:4},children:[r.jsx(Mt,{children:"Accessibility Requirements"}),r.jsxs(Vt,{color:"quiet",style:{marginBottom:32},children:[g," items · ",c?"Labels "+u:"Icons only",p?" · Backfill":""," · ",(gl.find(e=>e.value===m)||gl[0]).label]}),r.jsxs(t.Stack,{spacing:4,children:[r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Container)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"ARIA and Semantics"}),r.jsxs(t.Stack,{spacing:0,children:[r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsx(Vt,{children:"Landmark:"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:'<nav role="navigation" aria-label="Bottom navigation">'})]}),r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsx(Vt,{children:"Tab list:"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:'role="tablist"'})]}),r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsx(Vt,{children:"Tab items:"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:'role="tab", aria-selected, aria-label'})]}),r.jsxs(t.Box,{sx:{py:1.5},children:[r.jsx(Vt,{children:"Focus:"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)"},children:"3px solid var(--Focus-Visible) on :focus-visible."})]})]})]}),r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Container)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"Token Reference"}),r.jsxs(t.Stack,{spacing:0,children:[r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsx(Vt,{children:"Bar:"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:'Always: data-surface="Surface-Dim" · bg: var(--Background). Theme set by data-theme (Nav-Bar, Primary, Primary-Light, etc.).'})]}),r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsx(Vt,{children:"Unselected icon/label:"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:"var(--Text-Quiet)"})]}),r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsx(Vt,{children:"Selected (no backfill):"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:"var(--Text)"})]}),r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsx(Vt,{children:"Selected backfill pill:"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:"bg: var(--Buttons-Primary-Button) · border: 1px solid var(--Buttons-Primary-Border) · icon/text: var(--Buttons-Primary-Text)"})]}),r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsx(Vt,{children:"Backfill + horizontal label:"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:"Label inside pill: var(--Buttons-Primary-Text)"})]}),r.jsxs(t.Box,{sx:{py:1.5},children:[r.jsx(Vt,{children:"Backfill + vertical label:"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:"Label below pill: var(--Text)"})]})]})]}),r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Container)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"Best Practices"}),r.jsxs(t.Stack,{spacing:0,children:[r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsx(Vt,{children:"Item count:"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)"},children:"3–5 recommended. 6 maximum."})]}),r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsx(Vt,{children:"Horizontal layout:"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)"},children:"Only available with 4 or fewer items."})]}),r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsx(Vt,{children:"Labels:"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)"},children:"Always recommended for clarity."})]}),r.jsxs(t.Box,{sx:{py:1.5},children:[r.jsx(Vt,{children:"Fixed:"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)"},children:"Add bottom padding to main content to avoid overlap."})]})]})]})]})]})]})},exports.Box=yi,exports.BoxShowcase=function(){const[o,a]=e.useState(""),[n,i]=e.useState(""),[l,s]=e.useState(null),[c,d]=e.useState("Surface");return r.jsxs(yi,{sx:{pb:8},children:[r.jsx(Pt,{children:"Box"}),r.jsxs(Gt,{color:"quiet",style:{marginTop:8,marginBottom:24,maxWidth:720},children:["Bare layout primitive — a slot that participates in the design-system cascade (",r.jsx("code",{children:"data-theme"})," / ",r.jsx("code",{children:"data-surface"}),") without carrying any chrome. Reach for ",r.jsx("code",{children:"<Ratio>"})," or",r.jsx("code",{children:" <Card>"})," when you need padding, borders, or shadow."]}),r.jsxs(t.Grid,{container:!0,sx:{mt:2,alignItems:"flex-start",flexWrap:"wrap"},children:[r.jsxs(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"55%"},flexShrink:0,pr:{md:3}},children:[r.jsx(To,{theme:l,surface:c,children:r.jsx(yi,{sx:{width:"100%",maxWidth:400},children:r.jsx(yi,{theme:o||void 0,surface:n||void 0,children:r.jsxs(yi,{sx:{padding:3,backgroundColor:"var(--Background)",color:"var(--Text)",borderRadius:"var(--Style-Border-Radius)",border:"1px dashed var(--Border-Variant)"},children:[r.jsx(Ot,{children:"Box content"}),r.jsx(Gt,{style:{color:"var(--Text-Quiet)",marginTop:6},children:"Anything dropped inside resolves tokens against the Box's theme / surface, if you set them."})]})})})}),r.jsx(na,{code:(()=>{const e=[];o&&e.push('theme="'+o+'"'),n&&e.push('surface="'+n+'"');return"<Box"+(e.length?" "+e.join(" "):"")+">\n {/* anything */}\n</Box>"})(),language:"JSX",wrap:!0,sx:{mt:2}})]}),r.jsx(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"45%"},flexShrink:0,alignSelf:"flex-start",minWidth:0,overflow:"hidden"},children:r.jsx(yi,{sx:{backgroundColor:"var(--Background)",overflow:"hidden"},children:r.jsxs(Bo,{defaultValue:0,variant:"standard",color:"primary",children:[r.jsxs(ko,{children:[r.jsx(Co,{children:"Playground"}),r.jsx(Co,{children:"When to use"})]}),r.jsx(wo,{value:0,children:r.jsxs(yi,{sx:{p:3},children:[r.jsx(yi,{sx:{mb:3},children:r.jsx(Ro,{theme:l,onThemeChange:s,surface:c,onSurfaceChange:d})}),r.jsxs(yi,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"THEME (optional)"}),r.jsxs(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:[r.jsx(Bi,{label:"None",selected:!o,onClick:()=>a("")}),Si.map(e=>r.jsx(Bi,{label:e,selected:o===e,onClick:()=>a(e)},e))]})]}),r.jsxs(yi,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"SURFACE (optional)"}),r.jsxs(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:[r.jsx(Bi,{label:"None",selected:!n,onClick:()=>i("")}),ji.map(e=>r.jsx(Bi,{label:e,selected:n===e,onClick:()=>i(e)},e))]}),r.jsxs(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginTop:6},children:["Both props are pass-throughs to ",r.jsx("code",{children:"data-theme"})," ","and ",r.jsx("code",{children:"data-surface"}),". Leave empty to inherit from the parent zone."]})]})]})}),r.jsx(wo,{value:1,children:r.jsx(yi,{sx:{p:3},children:r.jsxs(t.Stack,{spacing:2,children:[r.jsxs(yi,{children:[r.jsx(Vt,{style:{fontWeight:700},children:"Reach for Box when…"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginTop:4},children:"you need a wrapper to scope a theme / surface zone, or you want a typed JSX root without painting any visual styling."})]}),r.jsxs(yi,{children:[r.jsx(Vt,{style:{fontWeight:700},children:"Use Ratio when…"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginTop:4},children:"the container needs a fixed proportion (image, video, embed, hero tile) — it carries the same theme / color shell Box used to."})]}),r.jsxs(yi,{children:[r.jsx(Vt,{style:{fontWeight:700},children:"Use Card when…"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginTop:4},children:"the container has a title, body, and actions — Card handles the standard 2-layer chrome plus header / footer slots."})]})]})})})]})})})]})]})},exports.BreadcrumbItem=Qi,exports.Breadcrumbs=Vi,exports.BreadcrumbsShowcase=function(){const[o,a]=e.useState("medium"),[n,i]=e.useState("/"),[l,s]=e.useState(!1),[c,d]=e.useState(null),[u,x]=e.useState("Surface");return r.jsxs(t.Box,{sx:{pb:8},children:[r.jsx(Pt,{children:"Breadcrumbs"}),r.jsxs(t.Grid,{container:!0,sx:{mt:2,alignItems:"flex-start",flexWrap:"wrap"},children:[r.jsxs(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"55%"},flexShrink:0,pr:{md:3}},children:[r.jsx(To,{theme:c,surface:u,children:r.jsxs(Vi,{size:o,separator:n,condense:l,maxItems:3,children:[r.jsx(Qi,{href:"#",children:"Home"}),r.jsx(Qi,{href:"#",children:"Products"}),r.jsx(Qi,{href:"#",children:"Shoes"}),r.jsx(Qi,{children:"Running Shoes"})]})}),r.jsx(na,{code:(()=>{const e=[];return"medium"!==o&&e.push('size="'+o+'"'),"/"!==n&&e.push('separator="'+n+'"'),l&&e.push("condense maxItems={3}"),"<Breadcrumbs"+(e.length?" "+e.join(" "):"")+'>\n <BreadcrumbItem href="/">Home</BreadcrumbItem>\n <BreadcrumbItem href="/products">Products</BreadcrumbItem>\n <BreadcrumbItem href="/products/shoes">Shoes</BreadcrumbItem>\n <BreadcrumbItem>Running Shoes</BreadcrumbItem>\n</Breadcrumbs>'})(),language:"JSX",wrap:!0,sx:{mt:2}})]}),r.jsx(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"45%"},flexShrink:0,alignSelf:"flex-start",minWidth:0,overflow:"hidden"},children:r.jsx(t.Box,{sx:{backgroundColor:"var(--Background)",overflow:"hidden"},children:r.jsxs(Bo,{defaultValue:0,variant:"standard",color:"primary",children:[r.jsxs(ko,{children:[r.jsx(Co,{children:"Playground"}),r.jsx(Co,{children:"Accessibility"})]}),r.jsx(wo,{value:0,children:r.jsxs(t.Box,{sx:{p:3},children:[r.jsx(t.Box,{sx:{mb:3},children:r.jsx(Ro,{theme:c,onThemeChange:d,surface:u,onSurfaceChange:x})}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"SIZE"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["small","medium","large"].map(e=>r.jsx(qi,{label:Gi(e),selected:o===e,onClick:()=>a(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"SEPARATOR"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["/","›","→","·","|"].map(e=>r.jsx(qi,{label:e,selected:n===e,onClick:()=>i(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Condense"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Collapse middle items into ellipsis"})]}),r.jsx(xa,{variant:"default-outline",checked:l,onChange:e=>s(e.target.checked),size:"small","aria-label":"Condense"})]})]})}),r.jsx(wo,{value:1,children:r.jsx(t.Box,{sx:{p:3},children:r.jsx(t.Stack,{spacing:3,children:r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"ARIA and Semantics"}),r.jsx(t.Stack,{spacing:0,children:[{label:"Nav",value:'<nav aria-label="Breadcrumb">'},{label:"List",value:"<ol> with <li> for each crumb"},{label:"Current",value:'aria-current="page" on the last item'},{label:"Links",value:"BreadcrumbItem renders <a> when href is provided"},{label:"Ellipsis",value:'Expandable button with aria-label="Show full breadcrumb trail"'},{label:"Separator",value:'aria-hidden="true" — decorative only'}].map(({label:e,value:o})=>r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsxs(Vt,{children:[e,":"]}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:o})]},e))})]})})})})]})})})]})]})},exports.Button=Ur,exports.ButtonGroup=za,exports.ButtonSmall=nr,exports.ButtonText=ir,exports.CAP_HEIGHT_TRIM=Lt,exports.Caption=Kt,exports.CaptionBold=e=>r.jsx(Et,{textStyle:"caption-bold",...e}),exports.Card=Qa,exports.CenteredStack=e=>r.jsx(La,{direction:"column",alignItems:"center",justifyContent:"center",...e}),exports.Checkbox=function({variant:e="primary",size:o="medium",label:a,checked:n,defaultChecked:i,indeterminate:l=!1,disabled:s=!1,onChange:c,name:d,value:u,className:x="",sx:p={},"aria-label":h,"aria-labelledby":m,"aria-describedby":f,inputProps:g={},...b}){Zr();const v=$r[o]||$r.medium,y="small"===o?Vt:Gt,j={...g,...h&&{"aria-label":h},...m&&{"aria-labelledby":m},...f&&{"aria-describedby":f}},S=r.jsx(t.Checkbox,{checked:n,defaultChecked:i,indeterminate:l,disabled:s,onChange:c,name:d,value:u,icon:r.jsx(eo,{size:o,variant:e}),checkedIcon:r.jsx(to,{size:o,variant:e}),indeterminateIcon:r.jsx(ro,{size:o,variant:e}),className:"chk-"+e+" "+x,inputProps:j,disableRipple:!0,sx:{padding:(v.touchTarget-v.box)/2+"px",minWidth:24,minHeight:24,borderRadius:"var(--Checkbox-Radius, 4px)",color:"inherit",transition:"background-color 0.15s ease-in-out","&.Mui-checked, &.MuiCheckbox-indeterminate":{color:"inherit"},"&:hover":{backgroundColor:"transparent"},"&.Mui-focusVisible .chk-box-icon":{outline:"2px solid var(--Focus-Visible)",outlineOffset:"2px"},"&.Mui-disabled":{opacity:.6,cursor:"not-allowed",pointerEvents:"none"},...p},...b});return a?r.jsx(t.FormControlLabel,{control:S,label:r.jsx(y,{component:"span",sx:{color:s?"var(--Text-Quiet)":"var(--Text)",fontSize:v.labelSize,lineHeight:1.4,userSelect:"none"},children:a}),disabled:s,sx:{marginLeft:0,marginRight:0,gap:v.gap+"px",alignItems:"center","&.Mui-disabled .MuiTypography-root":{color:"var(--Text-Quiet)",opacity:.6}}}):S},exports.Chip=di,exports.CircularProgress=_x,exports.CircularProgressShowcase=function(){const[o,a]=e.useState("default"),[n,i]=e.useState("medium"),[l,s]=e.useState(!1),[c,d]=e.useState(65),[u,x]=e.useState(!1),[p,h]=e.useState(null),[m,f]=e.useState("Surface");return r.jsxs(t.Box,{sx:{pb:8},children:[r.jsx(Pt,{children:"Circular Progress"}),r.jsxs(t.Grid,{container:!0,sx:{mt:2,alignItems:"flex-start",flexWrap:"wrap"},children:[r.jsxs(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"55%"},flexShrink:0,pr:{md:3}},children:[r.jsx(To,{theme:p,children:r.jsx(_x,{color:o,size:n,value:l?c:void 0,showValue:l&&u})}),r.jsx(na,{code:(()=>{const e=[];return"default"!==o&&e.push('color="'+o+'"'),"medium"!==n&&e.push('size="'+n+'"'),l&&(e.push("value={"+c+"}"),u&&e.push("showValue")),0===e.length?"<CircularProgress />":"<CircularProgress\n "+e.join("\n ")+"\n/>"})(),language:"JSX",wrap:!0,sx:{mt:2}})]}),r.jsx(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"45%"},flexShrink:0,alignSelf:"flex-start",minWidth:0,overflow:"hidden"},children:r.jsx(t.Box,{sx:{backgroundColor:"var(--Background)",overflow:"hidden"},children:r.jsxs(Bo,{defaultValue:0,variant:"standard",color:"primary",children:[r.jsxs(ko,{children:[r.jsx(Co,{children:"Playground"}),r.jsx(Co,{children:"Accessibility"})]}),r.jsx(wo,{value:0,children:r.jsxs(t.Box,{sx:{p:3},children:[r.jsx(t.Box,{sx:{mb:3},children:r.jsx(Ro,{theme:p,onThemeChange:h,surface:m,onSurfaceChange:f})}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"COLOR"}),r.jsx(t.Stack,{spacing:1.5,children:tp.map(e=>r.jsxs(t.Box,{children:[r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:4,fontWeight:600},children:e.label}),r.jsx(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:e.colors.map(e=>r.jsx(op,{color:e,selected:o===e,onClick:a},e))})]},e.label))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"SIZE"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["small","medium","large"].map(e=>r.jsx(rp,{label:ep(e),selected:n===e,onClick:()=>i(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Determinate"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Show a static arc at a specific value"})]}),r.jsx(xa,{checked:l,onChange:e=>s(e.target.checked),size:"small","aria-label":"Determinate"})]}),l&&r.jsxs(r.Fragment,{children:[r.jsx(t.Box,{sx:{mt:2},children:r.jsx(Xn,{label:"Value",min:0,max:100,value:c,onChange:(e,t)=>d(t),size:"small",valueLabelDisplay:"auto"})}),r.jsxs(t.Box,{sx:{mt:2,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Show Label"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Center percentage text"})]}),r.jsx(xa,{checked:u,onChange:e=>x(e.target.checked),size:"small","aria-label":"Show label"})]})]})]})}),r.jsx(wo,{value:1,children:r.jsx(t.Box,{sx:{p:3},children:r.jsxs(t.Stack,{spacing:3,children:[r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"ARIA and Semantics"}),r.jsxs(t.Stack,{spacing:0,children:[r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsx(Vt,{children:"Role:"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:'role="progressbar"'})]}),r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsx(Vt,{children:"Determinate:"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:'aria-valuenow, aria-valuemin="0", aria-valuemax="100"'})]}),r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsx(Vt,{children:"Indeterminate:"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:'aria-label="Loading" (no value attributes)'})]}),r.jsxs(t.Box,{sx:{py:1.5},children:[r.jsx(Vt,{children:"Label:"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)"},children:"Center percentage label is aria-hidden — screen readers use aria-valuenow."})]})]})]}),r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"Token Reference"}),r.jsxs(t.Stack,{spacing:0,children:[r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsx(Vt,{children:"Track (back circle):"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:"var(--Border-Variant)"})]}),r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsx(Vt,{children:"Fill (progress arc):"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:"var(--Buttons-{Color}-Border)"})]}),r.jsxs(t.Box,{sx:{py:1.5},children:[r.jsx(Vt,{children:"Center label:"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:"var(--Text)"})]})]})]})]})})})]})})})]})]})},exports.CodeBlock=na,exports.Colors=function(){const e=({color:e})=>r.jsxs(t.Box,{sx:{textAlign:"center"},children:[r.jsx(t.Box,{sx:{width:"80px",height:"80px",backgroundColor:`var(${e.var})`,borderRadius:"8px",border:"1px solid var(--Border)",mb:1,mx:"auto"}}),r.jsx(t.Typography,{variant:"body2",sx:{fontWeight:600,fontSize:"12px",color:"var(--Text)",mb:.5,wordBreak:"break-word"},children:e.name}),r.jsx(t.Typography,{variant:"caption",sx:{color:"var(--Text-Secondary)",display:"block",fontSize:"10px",fontFamily:"monospace",wordBreak:"break-all"},children:e.var})]});return r.jsxs(t.Stack,{spacing:6,children:[r.jsxs(t.Box,{children:[r.jsx(t.Typography,{variant:"h5",sx:{mb:3,fontWeight:700},children:"Brand Colors (Static)"}),r.jsx(t.Stack,{direction:"row",spacing:3,sx:{justifyContent:"center",flexWrap:"wrap",gap:3},children:[{name:"Primary",var:"--Primary-Color-11"},{name:"Secondary",var:"--Secondary-Color-11"},{name:"Tertiary",var:"--Tertiary-Color-11"}].map(t=>r.jsx(e,{color:t},t.var))})]}),r.jsxs(t.Box,{children:[r.jsx(t.Typography,{variant:"h5",sx:{mb:3,fontWeight:700},children:"Background Colors (Dynamic)"}),r.jsx(t.Typography,{variant:"body2",sx:{mb:3,color:"var(--Text-Secondary)"},children:"Update based on selected Background variant and Mode"}),r.jsx(t.Grid,{container:!0,spacing:2,sx:{justifyContent:"center"},children:[{name:"Default Background",cssVar:"var(--Theme-Default-Surfaces-Surface)"},{name:"Primary Background",cssVar:"var(--Theme-Primary-Surfaces-Surface)"},{name:"Secondary Background",cssVar:"var(--Theme-Secondary-Surfaces-Surface)"},{name:"Tertiary Background",cssVar:"var(--Theme-Tertiary-Surfaces-Surface)"},{name:"Neutral Background",cssVar:"var(--Theme-Neutral-Surfaces-Surface)"},{name:"Neutral-Variant Background",cssVar:"var(--Theme-Neutral-Variant-Surfaces-Surface)"}].map(e=>r.jsx(t.Grid,{item:!0,sx:{display:"flex",justifyContent:"center"},children:r.jsxs(t.Box,{sx:{textAlign:"center"},children:[r.jsx(t.Box,{sx:{minWidth:"max(var(--Button-Height), var(--Min-Button-Width))",minHeight:"var(--Button-Height)",backgroundColor:e.cssVar,borderRadius:"var(--Style-Border-Radius)",border:"2px solid var(--Border)",mb:1}}),r.jsx(t.Typography,{variant:"body2",sx:{fontWeight:600,fontSize:"12px",color:"var(--Text)",wordBreak:"break-word"},children:e.name})]})},e.name))})]}),r.jsxs(t.Box,{children:[r.jsx(t.Typography,{variant:"h5",sx:{mb:3,fontWeight:700},children:"Dynamic Colors (Update with Mode, Background & Surface)"}),r.jsx(t.Alert,{severity:"info",sx:{backgroundColor:"var(--Container-Low)",mb:3,border:"1px solid var(--Border)"},children:r.jsxs(t.Typography,{variant:"body2",children:["Most colors update automatically based on the current"," ",r.jsx("strong",{children:"Mode"})," (Light/Dark), ",r.jsx("strong",{children:"Background"})," ","variant, and ",r.jsx("strong",{children:"Surface"})," theme. Only Primary, Secondary, and Tertiary colors are fixed brand colors."]})}),r.jsx(t.Typography,{variant:"body2",sx:{mb:3,color:"var(--Text-Secondary)"},children:"These colors automatically adapt based on:"}),r.jsxs(t.Stack,{spacing:1,sx:{mb:4},children:[r.jsxs(t.Box,{sx:{display:"flex",gap:2},children:[r.jsx(t.Typography,{variant:"body2",sx:{fontWeight:600,minWidth:80},children:"Mode:"}),r.jsx(t.Typography,{variant:"body2",children:"Light or Dark theme"})]}),r.jsxs(t.Box,{sx:{display:"flex",gap:2},children:[r.jsx(t.Typography,{variant:"body2",sx:{fontWeight:600,minWidth:80},children:"Background:"}),r.jsx(t.Typography,{variant:"body2",children:"Default, Primary, Secondary, Tertiary, Neutral, or Neutral-Variant"})]}),r.jsxs(t.Box,{sx:{display:"flex",gap:2},children:[r.jsx(t.Typography,{variant:"body2",sx:{fontWeight:600,minWidth:80},children:"Surface:"}),r.jsx(t.Typography,{variant:"body2",children:"Theme surface layer selection"})]})]}),r.jsx(t.Stack,{spacing:4,children:[{name:"Layout & Surfaces",colors:[{name:"Background",var:"--Background"},{name:"Border",var:"--Border"},{name:"Border-Variant",var:"--Border-Variant"}]},{name:"Text & Links",colors:[{name:"Header",var:"--Header"},{name:"Text",var:"--Text"},{name:"Text-Quiet",var:"--Text-Quiet"},{name:"Hotlink",var:"--Hotlink"},{name:"Hotlink-Visited",var:"--Hotlink-Visited"}]},{name:"Buttons - Primary",colors:[{name:"Button BG",var:"--Button-Primary-Button"},{name:"Button Text",var:"--Button-Primary-Text"},{name:"Button Hover",var:"--Button-Primary-Hover"},{name:"Button Active",var:"--Button-Primary-Pressed"},{name:"Focus-Visible",var:"--Focus-Visible"}]},{name:"Buttons - Secondary",colors:[{name:"Button BG",var:"--Button-Secondary-Button"},{name:"Button Text",var:"--Button-Secondary-Text"},{name:"Button Hover",var:"--Button-Secondary-Hover"},{name:"Button Active",var:"--Button-Secondary-Pressed"},{name:"Focus-Visible",var:"--Focus-Visible"}]},{name:"Buttons - State",colors:[{name:"Info Button",var:"--Button-Info-Button"},{name:"Success Button",var:"--Button-Success-Button"},{name:"Warning Button",var:"--Button-Warning-Button"},{name:"Error Button",var:"--Button-Error-Button"}]},{name:"Icons",colors:[{name:"Default",var:"--Icons-Default"},{name:"Primary",var:"--Icons-Primary"},{name:"Secondary",var:"--Icons-Secondary"},{name:"Tertiary",var:"--Icons-Tertiary"},{name:"Neutral",var:"--Icons-Neutral"},{name:"Info",var:"--Icons-Info"},{name:"Success",var:"--Icons-Success"},{name:"Warning",var:"--Icons-Warning"},{name:"Error",var:"--Icons-Error"}]},{name:"Chips & Badges",colors:[{name:"Primary BG",var:"--Tags-Primary-BG"},{name:"Primary Text",var:"--Tags-Primary-Text"},{name:"Secondary BG",var:"--Tags-Secondary-BG"},{name:"Secondary Text",var:"--Tags-Secondary-Text"},{name:"Tertiary BG",var:"--Tags-Tertiary-BG"},{name:"Tertiary Text",var:"--Tags-Tertiary-Text"},{name:"Neutral BG",var:"--Tags-Neutral-BG"},{name:"Neutral Text",var:"--Tags-Neutral-Text"},{name:"Info BG",var:"--Tags-Info-BG"},{name:"Info Text",var:"--Tags-Info-Text"},{name:"Success BG",var:"--Tags-Success-BG"},{name:"Success Text",var:"--Tags-Success-Text"},{name:"Warning BG",var:"--Tags-Warning-BG"},{name:"Warning Text",var:"--Tags-Warning-Text"},{name:"Error BG",var:"--Tags-Error-BG"},{name:"Error Text",var:"--Tags-Error-Text"}]}].map(o=>r.jsxs(t.Box,{children:[r.jsx(t.Typography,{variant:"h6",sx:{mb:2,fontWeight:600},children:o.name}),r.jsx(t.Grid,{container:!0,spacing:2,sx:{justifyContent:"center"},children:o.colors.map(o=>r.jsx(t.Grid,{item:!0,sx:{display:"flex",justifyContent:"center"},children:r.jsx(e,{color:o})},o.var))})]},o.name))})]}),r.jsxs(t.Box,{sx:{pt:4,borderTop:"1px solid var(--Border)"},children:[r.jsx(t.Typography,{variant:"h5",sx:{mb:2,fontWeight:700},children:"How to Use"}),r.jsxs(t.Stack,{spacing:2,children:[r.jsxs(t.Box,{children:[r.jsx(t.Typography,{variant:"h6",sx:{fontWeight:600,mb:1},children:"Static Colors"}),r.jsxs(t.Typography,{variant:"body2",sx:{color:"var(--Text-Secondary)"},children:["Use brand colors (",r.jsx("code",{style:{backgroundColor:"var(--Container)",padding:"2px 4px",borderRadius:"4px"},children:"--Primary-Color-11"}),","," ",r.jsx("code",{style:{backgroundColor:"var(--Container)",padding:"2px 4px",borderRadius:"4px"},children:"--Secondary-Color-11"}),","," ",r.jsx("code",{style:{backgroundColor:"var(--Container)",padding:"2px 4px",borderRadius:"4px"},children:"--Tertiary-Color-11"}),") for brand elements that should never change."]})]}),r.jsxs(t.Box,{children:[r.jsx(t.Typography,{variant:"h6",sx:{fontWeight:600,mb:1},children:"Dynamic Colors"}),r.jsx(t.Typography,{variant:"body2",sx:{color:"var(--Text-Secondary)"},children:"Use dynamic color variables for all UI elements. They will automatically update when users change Mode, Background, or Surface settings."})]}),r.jsxs(t.Box,{children:[r.jsx(t.Typography,{variant:"h6",sx:{fontWeight:600,mb:1},children:"Example Usage"}),r.jsx(t.Box,{component:"pre",sx:{backgroundColor:"var(--Container)",p:2,borderRadius:"8px",overflow:"auto",fontSize:"12px",border:"1px solid var(--Border)",color:"var(--Text)"},children:"/* Dynamic - updates with theme changes */\ncolor: var(--Text);\nbackgroundColor: var(--Background);\nborderColor: var(--Border);\n\n/* Static - brand colors stay the same */\naccentColor: var(--Primary-Color-11);"})]})]})]})]})},exports.Container=function({children:e,maxWidth:o="lg",disableGutters:a=!1,sx:n={},...i}){return r.jsx(t.Container,{maxWidth:o,disableGutters:a,"data-surface":"Surface",sx:{backgroundColor:"var(--Background)",color:"var(--Text)",transition:"all 0.2s ease-in-out",...n},...i,children:e})},exports.CopyButton=aa,exports.Copyright=oh,exports.CopyrightShowcase=function(){const[o,a]=e.useState("DinoDesign"),[n,i]=e.useState((new Date).getFullYear()),[l,s]=e.useState("All rights reserved"),[c,d]=e.useState(""),[u,x]=e.useState(!1),[p,h]=e.useState("default"),m=e.useRef(null),[f,g]=e.useState(null);return e.useEffect(()=>{m.current&&g({current:m.current.querySelector(".dino-copyright")})},[p,u,o,n,l,c]),r.jsxs(t.Box,{children:[r.jsx(Pt,{style:{marginBottom:12},children:"Copyright"}),r.jsxs(Gt,{color:"quiet",style:{marginBottom:24,maxWidth:720},children:["Standalone copyright strip used at the bottom of pages. Defaults to"," ",r.jsxs("code",{children:["© ","{year}"," ","{companyName}",". ","{rights}","."]})," Pass"," ",r.jsx("code",{children:"children"})," to override the entire text."]}),r.jsx(t.Box,{ref:m,sx:{borderRadius:1,overflow:"hidden",mb:4},children:u?r.jsx(oh,{color:p,children:c||"Type a custom message →"}):r.jsx(oh,{color:p,companyName:o,year:Number(n)||(new Date).getFullYear(),rights:l})}),r.jsxs(Bo,{defaultValue:0,variant:"standard",color:"primary",children:[r.jsxs(ko,{children:[r.jsx(Co,{children:"Playground"}),r.jsx(Co,{children:"Accessibility"})]}),r.jsx(wo,{value:0,children:r.jsxs(t.Stack,{spacing:3,sx:{p:3,maxWidth:560},children:[r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"TEXT MODE"}),r.jsxs(t.Stack,{direction:"row",spacing:1,children:[r.jsx(yh,{label:"Auto-generated",selected:!u,onClick:()=>x(!1)}),r.jsx(yh,{label:"Custom",selected:u,onClick:()=>x(!0)})]})]}),!u&&r.jsxs(r.Fragment,{children:[r.jsx(xo,{label:"Company name",value:o,onChange:e=>a(e.target.value),placeholder:"DinoDesign",size:"medium"}),r.jsx(mn,{label:"Year",value:Number(n),onChange:e=>i(e),min:1900,max:2100}),r.jsx(xo,{label:"Rights text",value:l,onChange:e=>s(e.target.value),placeholder:"All rights reserved",size:"medium"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)"},children:'Leave Rights blank to omit "All rights reserved." entirely.'})]}),u&&r.jsxs(r.Fragment,{children:[r.jsx(xo,{label:"Custom text",value:c,onChange:e=>d(e.target.value),placeholder:"© 2026 DinoDesign · MIT License · Built with love",size:"medium",multiline:!0}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)"},children:"Pass any string (or React node) as children to fully override the auto text."})]}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"COLOR"}),r.jsx(t.Stack,{direction:"row",spacing:1,sx:{flexWrap:"wrap",rowGap:1},children:vh.map(e=>r.jsx(yh,{label:e.label,selected:p===e.value,onClick:()=>h(e.value)},e.value))}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginTop:6},children:"Matches the Footer color presets so the two stack cleanly."})]})]})}),r.jsx(wo,{value:1,children:r.jsxs(t.Stack,{spacing:2,sx:{p:3,maxWidth:560},children:[r.jsx(Kt,{style:{color:"var(--Text-Quiet)"},children:"Live WCAG 2.1 contrast against the painted background. AA needs 4.5:1 for normal text; AAA needs 7:1."}),f&&r.jsx(ph,{targetRef:f,label:"Copyright strip",deps:[p,u,o,n,l,c]})]})})]})]})},exports.CurvedText=Ah,exports.CurvedTextShowcase=function(){const[o,a]=e.useState("Your Brand. Perfected."),[n,i]=e.useState("display-large"),[l,s]=e.useState("primary"),[c,d]=e.useState([(u="up",{arc:140,radius:340,direction:u})]);var u;const[x,p]=e.useState(0),[h,m]=e.useState(8),[f,g]=e.useState(700),[b,v]=e.useState(!1),[y,j]=e.useState("Primary"),[S,B]=e.useState("Classic"),k=e.useRef(null),[C,w]=e.useState(null);e.useEffect(()=>{k.current&&w({current:k.current.querySelector("text")})},[l,n,c,x,h,f,b,y,S]);const T=Eh.find(e=>e.value===l)?.css||Eh[0].css;function I(e,t){d(r=>r.map((r,o)=>o===e?{...r,...t}:r))}return r.jsxs(t.Box,{children:[r.jsx(Pt,{style:{marginBottom:12},children:"Curved Display Text"}),r.jsx(Gt,{color:"quiet",style:{marginBottom:24,maxWidth:720},children:"Decorative text laid along an SVG arc. Chain multiple arcs to build a wave — each curve gets its own radius, arc sweep, and direction. Uses your design system's decorative font + text tokens."}),r.jsxs(t.Box,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(360px, 1fr))",gap:3,alignItems:"start"},children:[r.jsx(t.Box,{sx:{minWidth:0},children:r.jsx(t.Box,{ref:k,"data-surface":"Container",sx:{background:"var(--Background)",borderRadius:2,p:3,display:"flex",alignItems:"center",justifyContent:"center",overflow:"auto",position:"sticky",top:16},children:r.jsx(Ah,{text:o,curves:c,textStyle:n,rotation:x,letterSpacing:h,fontWeight:f,bevel:b,bevelTheme:y,bevelPreset:b?S:void 0,color:T})})}),r.jsx(t.Box,{sx:{minWidth:0,alignSelf:"flex-start"},children:r.jsx(t.Box,{sx:{backgroundColor:"var(--Background)",overflow:"hidden"},children:r.jsxs(Bo,{defaultValue:0,variant:"standard",color:"primary",children:[r.jsxs(ko,{children:[r.jsx(Co,{children:"Playground"}),r.jsx(Co,{children:"Accessibility"})]}),r.jsx(wo,{value:0,children:r.jsxs(t.Stack,{spacing:3,sx:{p:3,maxWidth:720},children:[r.jsx(xo,{label:"Text",value:o,onChange:e=>a(e.target.value),placeholder:"Your headline…",size:"medium"}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"CURVES"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:[1,2].map(e=>r.jsx(Ph,{label:String(e),selected:c.length===e,onClick:()=>function(e){d(t=>{if(e===t.length)return t;if(e>t.length){const r=[...t];for(;r.length<e;){const e=r[r.length-1];r.push({arc:e.arc,radius:e.radius,direction:"up"===e.direction?"down":"up"})}return r}return t.slice(0,e)})}(e)},e))}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginTop:6},children:"One curve is an arch. Two curves chain end-to-end for a wave."})]}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:12},children:"PER-CURVE SETTINGS"}),r.jsx(t.Stack,{spacing:2,children:c.map((e,o)=>r.jsxs(t.Box,{"data-surface":"Container",style:{background:"var(--Background)",border:"1px solid var(--Border)",borderRadius:8,padding:12},children:[r.jsxs(t.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{mb:1},children:[r.jsxs(Kt,{style:{fontWeight:700},children:["Curve ",o+1]}),r.jsx("div",{style:{flex:1}}),r.jsxs(t.Stack,{direction:"row",spacing:1,children:[r.jsx(Ph,{label:"⌢ Up",selected:"up"===e.direction,onClick:()=>I(o,{direction:"up"})}),r.jsx(Ph,{label:"⌣ Down",selected:"down"===e.direction,onClick:()=>I(o,{direction:"down"})})]})]}),r.jsxs(t.Stack,{spacing:1,children:[r.jsxs("div",{children:[r.jsxs(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:["Radius",r.jsxs("span",{style:{float:"right"},children:[e.radius,"px"]})]}),r.jsx(Xn,{min:100,max:600,step:10,value:e.radius,onChange:(e,t)=>I(o,{radius:t})})]}),r.jsxs("div",{children:[r.jsxs(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:["Arc sweep",r.jsxs("span",{style:{float:"right"},children:[e.arc,"°"]})]}),r.jsx(Xn,{min:40,max:280,step:5,value:e.arc,onChange:(e,t)=>I(o,{arc:t})})]})]})]},o))})]}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"TYPOGRAPHY"}),r.jsx(t.Stack,{direction:"row",spacing:1,sx:{flexWrap:"wrap",rowGap:1},children:Rh.map(e=>r.jsx(Ph,{label:e.label,selected:n===e.value,onClick:()=>i(e.value)},e.value))}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginTop:6},children:"Uses the lib's DisplayLarge / DisplaySmall tokens (font-family, size, weight, letter-spacing)."})]}),r.jsxs(t.Box,{children:[r.jsxs(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:["LETTER SPACING",r.jsxs("span",{style:{float:"right"},children:[h,"px"]})]}),r.jsx(Xn,{min:-4,max:40,step:1,value:h,onChange:(e,t)=>m(t)}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginTop:6},children:"Adjusts the gap between characters along the wave."})]}),r.jsxs(t.Box,{children:[r.jsxs(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:["FONT WEIGHT",r.jsx("span",{style:{float:"right"},children:f})]}),r.jsx(Xn,{min:100,max:900,step:100,value:f,onChange:(e,t)=>g(t)}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginTop:6},children:"Heavier weights read better at decorative sizes. Available weights depend on the loaded display font."})]}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"BEVEL"}),r.jsx(pa,{label:"3D bevel effect",checked:b,onChange:e=>v(e.target.checked)}),b&&r.jsxs(t.Box,{sx:{mt:1.5},children:[r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:6},children:"Preset"}),r.jsx(t.Stack,{direction:"row",spacing:1,sx:{flexWrap:"wrap",rowGap:1,mb:1.5},children:Bh.map(e=>r.jsx(Ph,{label:e,selected:S===e,onClick:()=>B(e)},e))}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:6},children:"Bevel theme"}),r.jsx(t.Stack,{direction:"row",spacing:1,sx:{flexWrap:"wrap",rowGap:1},children:Lh.map(e=>r.jsx(Ph,{label:e.label,selected:y===e.value,onClick:()=>j(e.value)},e.value))})]}),r.jsxs(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginTop:6},children:["Bevel layers use ",r.jsxs("code",{children:["--Buttons-","{Theme}","-Button"]})," for the fill, with ",r.jsx("code",{children:"Highlight"})," + ",r.jsx("code",{children:"Lowlight"}),"tokens for the bright/shadow stripes. CurvedText honors a preset's ",r.jsx("em",{children:"depth"})," only — angle, softness, and drop-shadow fields are stacked-rendering limitations and are ignored here (the full filter pipeline lives in ",r.jsx("code",{children:"<BevelText>"}),"). Shadow-only presets render no effect. Auto-hides below 19px so the 3:1 bevel contrast doesn't compromise small-text legibility."]})]}),r.jsxs(t.Box,{children:[r.jsxs(t.Stack,{direction:"row",alignItems:"center",sx:{mb:1},children:[r.jsxs(Yt,{style:{color:"var(--Text-Quiet)",flex:1},children:["ROTATION",r.jsxs("span",{style:{float:"right",marginRight:12},children:[x,"°"]})]}),r.jsx(Ur,{variant:"default-outline",size:"small",onClick:function(){const e=k.current?.querySelector("svg");if(!e)return;const t=e.querySelector("path"),r=e.querySelector("text");if(!t||!r)return;const a=t.getTotalLength();if(!a)return;let n=0;try{n=r.getComputedTextLength?.()||0}catch(e){}n||(n=Math.min(a,18*o.length));const i=Math.max(0,(a-n)/2),l=Math.min(a,i+n),s=t.getPointAtLength(i),c=t.getPointAtLength(l),d=180*Math.atan2(c.y-s.y,c.x-s.x)/Math.PI,u=Math.max(-45,Math.min(45,Math.round(-d)));p(u)},children:"Auto-level"})]}),r.jsx(Xn,{min:-45,max:45,step:1,value:x,onChange:(e,t)=>p(t)}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginTop:6},children:'Tilts the whole text block around its center. "Auto-level" rotates so the text\'s start and end sit on the same horizontal line — useful when a multi-curve wave makes the reading line slant.'})]}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"COLOR"}),r.jsx(t.Stack,{direction:"row",spacing:1,sx:{flexWrap:"wrap",rowGap:1},children:Eh.map(e=>r.jsx(Ph,{label:e.label,selected:l===e.value,onClick:()=>s(e.value)},e.value))})]})]})}),r.jsx(wo,{value:1,children:r.jsxs(t.Stack,{spacing:2,sx:{p:3,maxWidth:560},children:[r.jsx(Kt,{style:{color:"var(--Text-Quiet)"},children:"Live WCAG 2.1 contrast against the painted background. Decorative display text counts as large text — AA needs 3:1, AAA needs 4.5:1 — but DinoDesign defaults to 4.5:1 across the board."}),C&&r.jsx(ph,{targetRef:C,label:"Curved text",deps:[l,n,JSON.stringify(c),x,h]}),r.jsxs(Vt,{color:"quiet",children:["The SVG sets ",r.jsx("code",{children:'role="img"'})," and"," ",r.jsx("code",{children:"aria-label"})," to the rendered text so screen readers announce it as a labeled image, not a stream of individual glyphs."]})]})})]})})})]})]})},exports.DEFAULT_AVATAR_SRC=ur,exports.DEFAULT_ITEMS=Ex,exports.DefaultToggleButtonGroup=e=>r.jsx(kn,{variant:"default",...e}),exports.DesktopAppBar=Qp,exports.Dialog=ps,exports.DialogShowcase=function(){const[o,a]=e.useState(!1),[n,i]=e.useState("sm"),[l,s]=e.useState(!1),[c,d]=e.useState("none"),[u,x]=e.useState(!1),[p,h]=e.useState(!1),[m,f]=e.useState(null),[g,b]=e.useState("Surface");return r.jsxs(t.Box,{sx:{pb:8},children:[r.jsx(Pt,{children:"Dialog"}),r.jsxs(t.Grid,{container:!0,sx:{mt:2,alignItems:"flex-start",flexWrap:"wrap"},children:[r.jsxs(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"55%"},flexShrink:0,pr:{md:3}},children:[r.jsx(To,{theme:m,surface:g,children:r.jsx(Ur,{variant:"default",onClick:()=>a(!0),children:"Open Dialog"})}),r.jsx(na,{code:(()=>{const e=["open={open}","onClose={handleClose}"];return"sm"!==n&&e.push('maxWidth="'+n+'"'),l&&e.push("fullScreen"),u&&e.push("alert"),p&&e.push("nonModal"),"none"!==c&&e.push('transition="'+c+'"'),e.push('title="Dialog Title"'),e.push('actions={<><Button variant="default-outline" onClick={handleClose}>Cancel</Button><Button variant="default" onClick={handleClose}>Confirm</Button></>}'),"<Dialog\n "+e.join("\n ")+"\n>\n Dialog content goes here.\n</Dialog>"})(),language:"JSX",wrap:!0,sx:{mt:2}}),r.jsx(ps,{open:o,onClose:(e,t)=>{u&&"backdropClick"===t||a(!1)},maxWidth:n,fullScreen:l,alert:u,nonModal:p,transition:"none"!==c?c:void 0,title:"Dialog Title",actions:r.jsxs(r.Fragment,{children:[r.jsx(Ur,{variant:"default-outline",size:"small",onClick:()=>a(!1),children:"Cancel"}),r.jsx(Ur,{variant:"default",size:"small",onClick:()=>a(!1),children:"Confirm"})]}),children:r.jsx(Gt,{children:"This is the dialog content. You can put any information here that requires user attention or action."})})]}),r.jsx(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"45%"},flexShrink:0,alignSelf:"flex-start",minWidth:0,overflow:"hidden"},children:r.jsx(t.Box,{sx:{backgroundColor:"var(--Background)",overflow:"hidden"},children:r.jsxs(Bo,{defaultValue:0,variant:"standard",color:"primary",children:[r.jsxs(ko,{children:[r.jsx(Co,{children:"Playground"}),r.jsx(Co,{children:"Accessibility"})]}),r.jsx(wo,{value:0,children:r.jsxs(t.Box,{sx:{p:3},children:[r.jsx(t.Box,{sx:{mb:3},children:r.jsx(Ro,{theme:m,onThemeChange:f,surface:g,onSurfaceChange:b})}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"SIZE"}),r.jsxs(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:[["xs","sm","md","lg","xl"].map(e=>r.jsx(hs,{label:e.toUpperCase(),selected:n===e,onClick:()=>{i(e),s(!1)}},e)),r.jsx(hs,{label:"Full Screen",selected:l,onClick:()=>s(!l)})]})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"TRANSITION"}),r.jsx(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:["none","slide-up","slide-down","grow","fade","zoom"].map(e=>{return r.jsx(hs,{label:(t=e,t?t.charAt(0).toUpperCase()+t.slice(1):""),selected:c===e,onClick:()=>d(e)},e);var t})})]}),r.jsxs(t.Box,{sx:{mt:3,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Alert"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"No backdrop dismiss, no Escape"})]}),r.jsx(xa,{variant:"default-outline",checked:u,onChange:e=>x(e.target.checked),size:"small","aria-label":"Alert mode"})]}),r.jsxs(t.Box,{sx:{mt:2,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Non-Modal"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"No backdrop, interact with content behind"})]}),r.jsx(xa,{variant:"default-outline",checked:p,onChange:e=>h(e.target.checked),size:"small","aria-label":"Non-modal"})]})]})}),r.jsx(wo,{value:1,children:r.jsx(t.Box,{sx:{p:3},children:r.jsx(t.Stack,{spacing:3,children:r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"ARIA and Semantics"}),r.jsx(t.Stack,{spacing:0,children:[{label:"Role",value:'role="dialog" (standard) or role="alertdialog" (alert mode)'},{label:"Label",value:"aria-labelledby links to title, aria-describedby links to content"},{label:"Focus",value:"Focus trapped inside dialog. Returns to trigger on close."},{label:"Keyboard",value:"Escape closes (unless alert). Tab cycles through focusable elements."},{label:"Backdrop",value:"Click closes (unless alert or non-modal)"},{label:"Close",value:'Close button with aria-label="Close dialog"'}].map(({label:e,value:o})=>r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsxs(Vt,{children:[e,":"]}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:o})]},e))})]})})})})]})})})]})]})},exports.DisplayLarge=e=>r.jsx(Et,{textStyle:"display-large",...e}),exports.DisplayMedium=e=>r.jsx(Et,{textStyle:"display-medium",...e}),exports.DisplaySmall=e=>r.jsx(Et,{textStyle:"display-small",...e}),exports.Divider=function({color:e="default",orientation:o="horizontal",size:a="small",children:n,indicatorText:i,indicatorStyle:l="outline",textAlign:s="center",className:c="",sx:d={},...u}){const x=Ip(e),p=zp[a]||zp.small,h=!(!n&&!i),m=n||i,f="vertical"===o;if(f&&!h)return r.jsx(t.Box,{role:"separator","aria-orientation":"vertical",className:"divider-vertical divider-"+e+" "+c,sx:{display:"inline-block",width:p+"px",alignSelf:"stretch",minHeight:24,backgroundColor:x,flexShrink:0,...d},...u});if(f&&h){const o=Ap(e,l),a="top"===s?"0 0 10%":"1 1 auto",n="top"===s?"1 1 auto":"bottom"===s?"0 0 10%":"1 1 auto";return r.jsxs(t.Box,{role:"separator","aria-orientation":"vertical",className:"divider-vertical divider-"+e+" divider-indicator "+c,sx:{display:"inline-flex",flexDirection:"column",alignItems:"center",alignSelf:"stretch",minHeight:24,flexShrink:0,...d},...u,children:[r.jsx(t.Box,{sx:{flex:a,width:p+"px",backgroundColor:x}}),r.jsx(t.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,my:1,px:.75,py:.5,borderRadius:"12px",fontSize:"11px",fontWeight:500,fontFamily:"inherit",lineHeight:1.2,whiteSpace:"nowrap",backgroundColor:o.bg,color:o.text,border:o.border,boxSizing:"border-box"},children:m}),r.jsx(t.Box,{sx:{flex:n,width:p+"px",backgroundColor:x}})]})}if(!h)return r.jsx(t.Box,{role:"separator","aria-orientation":"horizontal",className:"divider-horizontal divider-"+e+" "+c,sx:{width:"100%",height:p+"px",backgroundColor:x,flexShrink:0,...d},...u});const g=Ap(e,l),b="left"===s?"0 0 10%":"1 1 auto",v="left"===s?"1 1 auto":"right"===s?"0 0 10%":"1 1 auto";return r.jsxs(t.Box,{role:"separator","aria-orientation":"horizontal",className:"divider-horizontal divider-"+e+" divider-indicator "+c,sx:{display:"flex",alignItems:"center",width:"100%",...d},...u,children:[r.jsx(t.Box,{sx:{flex:b,height:p+"px",backgroundColor:x}}),r.jsx(t.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,mx:2,px:1.5,py:.5,borderRadius:"12px",fontSize:"12px",fontWeight:500,fontFamily:"inherit",lineHeight:1.2,whiteSpace:"nowrap",backgroundColor:g.bg,color:g.text,border:g.border,boxSizing:"border-box"},children:m}),r.jsx(t.Box,{sx:{flex:v,height:p+"px",backgroundColor:x}})]})},exports.Drawer=ks,exports.DrawerClose=Cs,exports.DrawerContent=Ts,exports.DrawerHeader=ws,exports.DrawerShowcase=function(){const[o,a]=e.useState(!1),[n,i]=e.useState("medium"),[l,s]=e.useState("left"),[c,d]=e.useState(null),[u,x]=e.useState("Surface");return r.jsxs(t.Box,{sx:{pb:8},children:[r.jsx(Pt,{children:"Drawer"}),r.jsxs(t.Grid,{container:!0,sx:{mt:2,alignItems:"flex-start",flexWrap:"wrap"},children:[r.jsxs(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"55%"},flexShrink:0,pr:{md:3}},children:[r.jsx(To,{theme:c,surface:u,children:r.jsx(Ur,{variant:"default",onClick:()=>a(!0),children:"Open Drawer"})}),r.jsx(na,{code:(()=>{const e=["open={open}","onClose={handleClose}"];return"medium"!==n&&e.push('size="'+n+'"'),"left"!==l&&e.push('anchor="'+l+'"'),"<Drawer "+e.join(" ")+">\n <DrawerHeader>\n <H5>Navigation</H5>\n <DrawerClose onClick={handleClose} />\n </DrawerHeader>\n <DrawerContent>\n <OmniTreeView items={navItems} />\n </DrawerContent>\n</Drawer>"})(),language:"JSX",wrap:!0,sx:{mt:2}}),r.jsxs(ks,{open:o,onClose:()=>a(!1),size:n,anchor:l,children:[r.jsxs(ws,{children:[r.jsx(Ot,{children:"Navigation"}),r.jsx(Cs,{onClick:()=>a(!1)})]}),r.jsx(Ts,{children:r.jsx(Rx,{items:Px,variant:"solid",color:"default",defaultExpandedItems:["products"],sx:{border:"none",borderRadius:0}})})]})]}),r.jsx(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"45%"},flexShrink:0,alignSelf:"flex-start",minWidth:0,overflow:"hidden"},children:r.jsx(t.Box,{sx:{backgroundColor:"var(--Background)",overflow:"hidden"},children:r.jsxs(Bo,{defaultValue:0,variant:"standard",color:"primary",children:[r.jsxs(ko,{children:[r.jsx(Co,{children:"Playground"}),r.jsx(Co,{children:"Accessibility"})]}),r.jsx(wo,{value:0,children:r.jsxs(t.Box,{sx:{p:3},children:[r.jsx(t.Box,{sx:{mb:3},children:r.jsx(Ro,{theme:c,onThemeChange:d,surface:u,onSurfaceChange:x})}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"SIZE"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["small","medium","large"].map(e=>r.jsx(Mx,{label:Lx(e),selected:n===e,onClick:()=>i(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"ANCHOR"}),r.jsx(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:["left","right","top","bottom"].map(e=>r.jsx(Mx,{label:Lx(e),selected:l===e,onClick:()=>s(e)},e))})]})]})}),r.jsx(wo,{value:1,children:r.jsx(t.Box,{sx:{p:3},children:r.jsx(t.Stack,{spacing:3,children:r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"ARIA and Semantics"}),r.jsx(t.Stack,{spacing:0,children:[{label:"Role",value:'role="dialog" aria-modal="true"'},{label:"Focus",value:"Focus trapped inside drawer. Returns to trigger on close."},{label:"Keyboard",value:"Escape closes. Tab cycles focusable elements."},{label:"Backdrop",value:"Click closes. Body scroll locked while open."},{label:"Close",value:'Button with aria-label="Close drawer"'}].map(({label:e,value:o})=>r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsxs(Vt,{children:[e,":"]}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:o})]},e))})]})})})})]})})})]})]})},exports.DropZone=function({onFiles:o,accept:a,multiple:n=!1,size:i="medium",disabled:l=!1,icon:s,label:c,sublabel:d,children:u,className:x="",sx:p={},...h}){const[m,f]=e.useState(!1),g=e.useRef(null),b=e.useRef(0),v=Ox[i]||Ox.medium,y=e.useCallback(e=>{!l&&e?.length&&o?.(Array.from(e))},[l,o]),j=e.useCallback(e=>{e.preventDefault(),e.stopPropagation(),b.current=0,f(!1),l||y(e.dataTransfer.files)},[l,y]),S=e.useCallback(e=>{e.preventDefault(),e.stopPropagation()},[]),B=e.useCallback(e=>{e.preventDefault(),e.stopPropagation(),b.current++,l||f(!0)},[l]),k=e.useCallback(e=>{e.preventDefault(),e.stopPropagation(),b.current--,0===b.current&&f(!1)},[]),C=e.useCallback(()=>{l||g.current?.click()},[l]),w=e.useCallback(e=>{l||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),g.current?.click())},[l]),T=e.useCallback(e=>{y(e.target.files),e.target.value=""},[y]),I=s||Je,A=n?"Drag and drop files here":"Drag and drop file here";return r.jsxs(t.Box,{role:"button",tabIndex:l?-1:0,"aria-label":c||A,"aria-disabled":l||void 0,onClick:C,onKeyDown:w,onDrop:j,onDragOver:S,onDragEnter:B,onDragLeave:k,className:"drop-zone drop-zone-"+i+(m?" drop-zone-dragging":"")+(l?" drop-zone-disabled":"")+" "+x,sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:v.gap,minHeight:v.minHeight,padding:v.padding,border:"2px dashed",borderColor:m?"var(--Buttons-Primary-Border)":"var(--Buttons-Default-Border)",borderRadius:"32px",backgroundColor:m?"var(--Hover)":"transparent",color:"var(--Text)",cursor:l?"not-allowed":"pointer",opacity:l?.5:1,outline:"none",transition:"background-color 0.2s ease, border-color 0.2s ease",textAlign:"center",...!l&&{"&:hover":{backgroundColor:"var(--Hover)",borderColor:"var(--Buttons-Primary-Border)"},"&:active":{backgroundColor:"var(--Pressed)",borderColor:"var(--Buttons-Primary-Border)"},"&:focus-visible":{outline:"3px solid var(--Focus-Visible)",outlineOffset:"2px",borderColor:"var(--Buttons-Primary-Border)"}},...p},...h,children:[r.jsx("input",{ref:g,type:"file",accept:a,multiple:n,onChange:T,style:{display:"none"},"aria-hidden":"true",tabIndex:-1}),u||r.jsxs(r.Fragment,{children:[r.jsx(I,{sx:{fontSize:v.iconSize,color:"var(--Text-Quiet)"}}),r.jsx(Vt,{style:{color:"var(--Text)"},children:c||A}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)"},children:d||"or click to browse"})]})]})},exports.Dropdown=rl,exports.DynoStack=La,exports.DynoTreeView=Rx,exports.EmailTextField=function({label:e="Email",...t}){return r.jsx(Cn,{label:e,type:"email",placeholder:"user@example.com",...t})},exports.ErrorToggleButtonGroup=e=>r.jsx(kn,{variant:"error",...e}),exports.Eyebrow=Zt,exports.EyebrowLarge=_t,exports.EyebrowMedium=$t,exports.EyebrowSmall=Yt,exports.Fab=Ya,exports.FabShowcase=function(){const[o,a]=e.useState("default"),[n,i]=e.useState("medium"),[l,s]=e.useState("Add"),[c,d]=e.useState(!1),[u,x]=e.useState("Create"),[p,h]=e.useState(!1),[m,f]=e.useState(!1),[g,b]=e.useState(null),[v,y]=e.useState("Surface"),j="default"===o?"tertiary":o;return r.jsxs(t.Box,{sx:{pb:8},children:[r.jsx(Pt,{children:"Floating Action Button"}),r.jsxs(t.Grid,{container:!0,sx:{mt:2,alignItems:"flex-start",flexWrap:"wrap"},children:[r.jsxs(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"55%"},flexShrink:0,pr:{md:3}},children:[r.jsx(To,{theme:g,children:r.jsx(Ya,{color:j,size:n,icon:(()=>{const e=dt[l]||dt.Add;return r.jsx(dr,{size:"medium",children:r.jsx(e,{})})})(),extended:c,label:u,animate:p,disabled:m,ariaLabel:c?u:l})}),r.jsx(na,{code:(()=>{const e=[];return"default"!==o&&e.push('color="'+o+'"'),"medium"!==n&&e.push('size="'+n+'"'),e.push("icon={<"+l+"Icon />}"),c&&(e.push("extended"),e.push('label="'+u+'"')),p&&e.push("animate"),m&&e.push("disabled"),e.push('ariaLabel="'+(c?u:l)+'"'),"<Fab\n "+e.join("\n ")+"\n/>"})(),language:"JSX",wrap:!0,sx:{mt:2}})]}),r.jsx(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"45%"},flexShrink:0,alignSelf:"flex-start",minWidth:0,overflow:"hidden"},children:r.jsx(t.Box,{sx:{backgroundColor:"var(--Background)",overflow:"hidden"},children:r.jsxs(Bo,{defaultValue:0,variant:"standard",color:"primary",children:[r.jsxs(ko,{children:[r.jsx(Co,{children:"Playground"}),r.jsx(Co,{children:"Accessibility"})]}),r.jsx(wo,{value:0,children:r.jsxs(t.Box,{sx:{p:3},children:[r.jsx(t.Box,{sx:{mb:3},children:r.jsx(Ro,{theme:g,onThemeChange:b,surface:v,onSurfaceChange:y})}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"COLOR"}),r.jsx(t.Stack,{spacing:1.5,children:$a.map(e=>r.jsxs(t.Box,{children:[r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:4,fontWeight:600},children:e.label}),r.jsx(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:e.colors.map(e=>r.jsx(tn,{color:e,selected:o===e,onClick:a},e))})]},e.label))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"SIZE"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["small","medium","large"].map(e=>r.jsx(en,{label:Za(e),selected:n===e,onClick:()=>i(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(rn,{label:"Icon Name",value:l,onChange:s,placeholder:"Add"}),r.jsxs(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginTop:4},children:[r.jsx("a",{href:"https://mui.com/material-ui/material-icons/",target:"_blank",rel:"noopener noreferrer",style:{color:"var(--Hotlink)"},children:"Material icon"})," name (e.g. Add, Edit, Favorite, Share)"]})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"OPTIONS"}),r.jsxs(t.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Extended"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Pill shape with icon + text label"})]}),r.jsx(xa,{checked:c,onChange:e=>d(e.target.checked),size:"small","aria-label":"Extended"})]}),c&&r.jsx(t.Box,{sx:{mt:1.5},children:r.jsx(rn,{label:"Label Text",value:u,onChange:x,placeholder:"Create"})}),r.jsxs(t.Box,{sx:{mt:2,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Animation"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Pulse ring effect to draw attention"})]}),r.jsx(xa,{checked:p,onChange:e=>h(e.target.checked),size:"small","aria-label":"Animation"})]}),r.jsxs(t.Box,{sx:{mt:2,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Disabled"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Non-interactive state"})]}),r.jsx(xa,{checked:m,onChange:e=>f(e.target.checked),size:"small","aria-label":"Disabled"})]})]})]})}),r.jsx(wo,{value:1,children:r.jsx(t.Box,{sx:{p:3},children:r.jsxs(t.Stack,{spacing:3,children:[r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"ARIA and Semantics"}),r.jsxs(t.Stack,{spacing:0,children:[r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsx(Vt,{children:"Role:"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:'<button role="button" aria-label="...">'})]}),r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsx(Vt,{children:"Label:"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)"},children:c?"Extended: visible label provides accessible name.":"Icon-only: aria-label is required."})]}),r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsx(Vt,{children:"Focus:"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)"},children:"3px solid var(--Focus-Visible) with 2px offset."})]}),r.jsxs(t.Box,{sx:{py:1.5},children:[r.jsx(Vt,{children:"Disabled:"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)"},children:"HTML disabled attribute. 50% opacity, removed from tab order."})]})]})]}),r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"Best Practices"}),r.jsxs(t.Stack,{spacing:0,children:[r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsx(Vt,{children:"One per screen:"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)"},children:"FABs represent the primary action. Use at most one per view."})]}),r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsx(Vt,{children:"Extended for clarity:"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)"},children:"Use extended variant when the icon alone may be ambiguous."})]}),r.jsxs(t.Box,{sx:{py:1.5},children:[r.jsx(Vt,{children:"Animation:"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)"},children:"Use sparingly. Respect prefers-reduced-motion."})]})]})]})]})})})]})})})]})]})},exports.Footer=nh,exports.FooterShowcase=function(){const[o,a]=e.useState(4),[n,i]=e.useState(!0),[l,s]=e.useState(!0),[c,d]=e.useState("default"),u=e.useRef(null),[x,p]=e.useState(null),[h,m]=e.useState(null);e.useEffect(()=>{u.current&&(p({current:u.current.querySelector(".dino-footer")}),m({current:u.current.querySelector(".dino-copyright")}))},[c,o,n,l]);const f=mh.slice(0,Math.max(0,o-1)),g=n?fh:[],b=l?{title:"Stay in the loop",description:"Monthly updates on new components and tips.",onSubscribe:async e=>console.log("subscribed:",e)}:void 0;return r.jsxs(t.Box,{children:[r.jsx(Pt,{style:{marginBottom:12},children:"Footer"}),r.jsxs(Gt,{color:"quiet",style:{marginBottom:24,maxWidth:720},children:["Configurable 1–4 column footer. The first column is always the company address / contact. Optional ",r.jsx("code",{children:"socialLinks"})," and"," ",r.jsx("code",{children:"subscribe"})," sit above the auto-generated copyright strip."]}),r.jsx(t.Box,{ref:u,sx:{borderRadius:1,overflow:"hidden",mb:4},children:r.jsx(nh,{color:c,address:hh,columns:f,socialLinks:g,subscribe:b,copyrightName:"DinoDesign"})}),r.jsxs(Bo,{defaultValue:0,variant:"standard",color:"primary",children:[r.jsxs(ko,{children:[r.jsx(Co,{children:"Playground"}),r.jsx(Co,{children:"Accessibility"})]}),r.jsx(wo,{value:0,children:r.jsxs(t.Stack,{spacing:3,sx:{p:3,maxWidth:560},children:[r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"COLUMNS"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:[1,2,3,4].map(e=>r.jsx(bh,{label:String(e),selected:o===e,onClick:()=>a(e)},e))}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginTop:6},children:"First column is always the address / contact. Up to 3 more link columns."})]}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"COLOR"}),r.jsx(t.Stack,{direction:"row",spacing:1,sx:{flexWrap:"wrap",rowGap:1},children:gh.map(e=>r.jsx(bh,{label:e.label,selected:c===e.value,onClick:()=>d(e.value)},e.value))}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginTop:6},children:'"Default" hardcodes Primary tone 2 (auto-derived in a future iteration).'})]}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"SOCIAL LINKS"}),r.jsx(pa,{label:"Show social media row",checked:n,onChange:e=>i(e.target.checked)}),r.jsxs(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginTop:6},children:["When on, the Footer renders the ",r.jsx("code",{children:"socialLinks"})," row (icons linking out). In your app, supply the icon + url pairs from your data store."]})]}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"SUBSCRIBE"}),r.jsx(pa,{label:"Show email subscribe form",checked:l,onChange:e=>s(e.target.checked)}),r.jsxs(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginTop:6},children:["When on, the Footer renders an email subscribe form. Hook it up via"," ",r.jsx("code",{children:"subscribe.onSubscribe(email)"}),"."]})]})]})}),r.jsx(wo,{value:1,children:r.jsxs(t.Stack,{spacing:2,sx:{p:3,maxWidth:560},children:[r.jsx(Kt,{style:{color:"var(--Text-Quiet)"},children:"Live WCAG 2.1 contrast against the painted background. AA needs 4.5:1 for normal text; AAA needs 7:1."}),x&&r.jsx(ph,{targetRef:x,label:"Footer body",deps:[c,o,n,l]}),h&&r.jsx(ph,{targetRef:h,label:"Copyright strip",deps:[c,o,n,l]})]})})]})]})},exports.FormDialog=function({open:e,onClose:o,title:a,children:n,submitText:i="Submit",cancelText:l="Cancel",onSubmit:s,...c}){return r.jsx(ps,{open:e,onClose:o,title:a,...c,actions:r.jsxs(r.Fragment,{children:[r.jsx(t.Box,{component:"button",type:"button",onClick:o,sx:xs.outline,children:l}),r.jsx(t.Box,{component:"button",type:"button",onClick:s,sx:xs.primary,children:i})]}),children:n})},exports.Gradient=Gl,exports.Grid=function({children:e,container:o=!1,item:a=!1,spacing:n=2,sx:i={},...l}){return r.jsx(t.Grid,{container:o,item:a,spacing:n,sx:{transition:"all 0.2s ease-in-out",...i},...l,children:e})},exports.GridStack=Wa,exports.H1=e=>r.jsx(Et,{textStyle:"h1",...e}),exports.H2=e=>r.jsx(Et,{textStyle:"h2",...e}),exports.H3=Pt,exports.H4=Mt,exports.H5=Ot,exports.H6=e=>r.jsx(Et,{textStyle:"h6",...e}),exports.HStack=Pa,exports.Header=function({title:e="My App",mode:o="light",navItems:a=[{label:"HOME",href:"#"},{label:"ABOUT",href:"#"},{label:"SERVICES",href:"#"},{label:"CONTACT",href:"#"}],rightContent:n,sx:i={},...l}){return r.jsx(t.AppBar,{position:"fixed",sx:{background:"var(--Background)",color:"var(--Text)",boxShadow:"0 1px 3px rgba(0,0,0,0.1)",borderBottom:"1px solid var(--Border-Variant)",transition:"all 0.2s ease-in-out",zIndex:1201,...i},...l,children:r.jsx(t.Container,{maxWidth:"lg",children:r.jsxs(t.Toolbar,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",px:0},children:[r.jsx(t.Typography,{variant:"h6",sx:{fontWeight:700,color:"var(--Text)",mr:"auto",transition:"color 0.2s ease-in-out"},children:e}),r.jsx(t.Box,{sx:{display:{xs:"none",md:"flex"},gap:3,flex:1,justifyContent:"center"},children:a.map((e,o)=>r.jsx(t.Typography,{component:"a",href:e.href,variant:"body2",sx:{textDecoration:"none",color:"var(--Text)",transition:"color 0.2s ease-in-out","&:hover":{color:"var(--Primary-Color-11)"}},children:e.label},o))}),r.jsx(t.Stack,{direction:"row",spacing:1,alignItems:"center",children:n})]})})})},exports.Heading=Dt,exports.Icon=dr,exports.IconBadge=Ia,exports.IconBadgeShowcase=function(){const[t,o]=e.useState("primary"),[a,n]=e.useState("solid"),[i,l]=e.useState("medium"),s=Xa[0];return r.jsxs(Ma,{spacing:4,style:{paddingBottom:64},children:[r.jsx(Pt,{children:"Icon Badge"}),r.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:24},children:[r.jsx(Qa,{padding:"medium",children:r.jsxs(Ma,{spacing:4,alignItems:"center",children:[r.jsx("div",{style:{padding:40},children:r.jsx(Ia,{color:t,variant:a,size:i,children:r.jsx(s,{})})}),r.jsx(Pa,{spacing:4,alignItems:"flex-end",children:["small","medium","large"].map(e=>r.jsxs(Ma,{spacing:1,alignItems:"center",children:[r.jsx(Ia,{color:t,variant:a,size:e,children:r.jsx(s,{})}),r.jsx(Vt,{style:{color:"var(--Quiet)"},children:qa(e)})]},e))}),r.jsxs(Ma,{spacing:1,alignItems:"center",children:[r.jsx(Vt,{style:{color:"var(--Quiet)",fontWeight:600,fontSize:"0.7rem"},children:"Variants"}),r.jsx(Pa,{spacing:3,children:["solid","light","dark"].map(e=>r.jsxs(Ma,{spacing:1,alignItems:"center",children:[r.jsx(Ia,{color:t,variant:e,size:"medium",children:r.jsx(s,{})}),r.jsx(Vt,{style:{color:"var(--Quiet)",fontSize:"0.65rem"},children:qa(e)})]},e))})]}),r.jsxs(Ma,{spacing:1,alignItems:"center",children:[r.jsx(Vt,{style:{color:"var(--Quiet)",fontWeight:600,fontSize:"0.7rem"},children:"All Colors"}),r.jsx(Pa,{spacing:2,style:{flexWrap:"wrap",justifyContent:"center"},children:Ua.flatMap(e=>e.colors).map(e=>r.jsxs(Ma,{spacing:0,alignItems:"center",children:[r.jsx(Ia,{color:e,variant:a,size:"small",children:r.jsx(s,{})}),r.jsx(Vt,{style:{color:"var(--Quiet)",fontSize:"0.55rem"},children:qa(e)})]},e))})]})]})}),r.jsx(Qa,{padding:"medium",children:r.jsxs(Ma,{spacing:4,children:[r.jsx(Pt,{style:{fontSize:"1rem"},children:"Playground"}),r.jsxs(Ma,{spacing:2,children:[r.jsx(Jt,{children:"Color"}),Ua.map(e=>r.jsxs(Ma,{spacing:1,children:[r.jsx(Vt,{style:{color:"var(--Quiet)",fontWeight:600,fontSize:"0.7rem"},children:e.label}),r.jsx(Pa,{spacing:1,children:e.colors.map(e=>r.jsx(Ur,{variant:t===e?"default":"outline",size:"small",onClick:()=>o(e),children:qa(e)},e))})]},e.label))]}),r.jsxs(Ma,{spacing:1,children:[r.jsx(Jt,{children:"Variant"}),r.jsx(za,{size:"small",children:["solid","light","dark"].map(e=>r.jsx(Ur,{variant:a===e?"default":"outline",size:"small",onClick:()=>n(e),children:qa(e)},e))})]}),r.jsxs(Ma,{spacing:1,children:[r.jsx(Jt,{children:"Size"}),r.jsx(za,{size:"small",children:["small","medium","large"].map(e=>r.jsx(Ur,{variant:i===e?"default":"outline",size:"small",onClick:()=>l(e),children:qa(e)},e))})]}),r.jsxs(Ma,{spacing:0,children:[r.jsxs(Vt,{style:{color:"var(--Quiet)"},children:["data-theme: ",qa(t),"light"===a?"-Light":""]}),r.jsxs(Vt,{style:{color:"var(--Quiet)"},children:["data-surface: ","dark"===a?"Surface-Dimmest":"Surface"]}),r.jsx(Vt,{style:{color:"var(--Quiet)"},children:"bg: var(--Background)"}),r.jsx(Vt,{style:{color:"var(--Quiet)"},children:"icon: var(--Text)"})]})]})})]})]})},exports.IconShowcase=function(){const[o,n]=e.useState("filled"),[i,l]=e.useState("default"),[s,c]=e.useState("medium"),[d,u]=e.useState("40"),[x,p]=e.useState(!1),[m,f]=e.useState("Home"),[g,b]=e.useState(""),[v,y]=e.useState({}),j=ma[i]||"Default",S="twotone"===o,B="custom"===s?(parseInt(d,10)||40)+"px":{xs:"12px",small:"16px",medium:"24px",large:"36px"}[s]||"24px",k=function(e,t){return va[e]?.[t]||va[e]?.filled||h}(m,o),C=function(e){return{outlined:"Outlined",rounded:"Rounded",twotone:"TwoTone",sharp:"Sharp"}[e]||""}(o),w=m+C+"Icon",T=g.trim().length>0,I="<Icon>\n <"+w+' />\n</Icon>\n{/* aria-hidden="true" by default */}',A='<Icon aria-label="'+(T?g.trim():m+" icon")+'">\n <'+w+' />\n</Icon>\n{/* role="img" added automatically */}';return e.useEffect(()=>{y({background:Sa("--Background"),iconColor:Sa("--Icons-"+j),iconVariant:Sa("--Icons-Variant-"+j)})},[i,j]),r.jsxs(t.Box,{sx:{pb:8},children:[r.jsx(Pt,{children:"Icon"}),r.jsxs(t.Grid,{container:!0,sx:{mt:2,alignItems:"flex-start",flexWrap:"wrap"},children:[r.jsxs(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"55%"},flexShrink:0,pr:{md:3}},children:[r.jsx(t.Box,{sx:{p:4,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:200,backgroundColor:"var(--Background)",borderBottom:"1px solid var(--Border)",gap:2},children:r.jsx(dr,{color:i,size:s,fontSize:"custom"===s?parseInt(d,10)||40:void 0,disabled:x,twoTone:S,"aria-label":T?g.trim():void 0,children:r.jsx(k,{})})}),r.jsx(na,{code:(()=>{const e=[];"default"!==i&&e.push('color="'+i+'"'),"custom"===s?(e.push('size="custom"'),e.push("fontSize={"+(parseInt(d,10)||40)+"}")):"medium"!==s&&e.push('size="'+s+'"'),S&&e.push("twoTone"),x&&e.push("disabled"),T&&e.push('aria-label="'+g.trim()+'"');const t=e.length?" "+e.join(" "):"";return"import "+w+" from '@mui/icons-material/"+m+(C||"")+"';\n\n<Icon"+t+">\n <"+w+" />\n</Icon>"})(),language:"JSX",wrap:!0,sx:{mt:2}})]}),r.jsx(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"45%"},flexShrink:0,alignSelf:"flex-start",minWidth:0,overflow:"hidden"},children:r.jsx(t.Box,{sx:{backgroundColor:"var(--Background)",overflow:"hidden"},children:r.jsxs(Bo,{defaultValue:0,variant:"standard",color:"primary",children:[r.jsxs(ko,{children:[r.jsx(Co,{children:"Playground"}),r.jsx(Co,{children:"Accessibility"})]}),r.jsx(wo,{value:0,children:r.jsxs(t.Box,{sx:{p:3},children:[r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"ICON"}),r.jsx(t.Box,{component:"input",type:"text",value:m,onChange:e=>f(e.target.value),placeholder:"e.g. Home, Favorite, Delete",sx:{width:"100%",padding:"6px 10px",fontSize:"13px",fontFamily:"inherit",border:"1px solid var(--Border)",borderRadius:"4px",backgroundColor:"var(--Background)",color:"var(--Text)",boxSizing:"border-box","&:focus":{outline:"2px solid var(--Focus-Visible)",outlineOffset:"1px",borderColor:"var(--Focus-Visible)"}}}),r.jsxs(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginTop:6},children:["Enter a MUI icon name."," ",r.jsx(t.Box,{component:"a",href:"https://mui.com/material-ui/material-icons/",target:"_blank",rel:"noopener noreferrer",sx:{color:"var(--Text-Primary)",textDecoration:"underline","&:hover":{color:"var(--Header-Primary)"}},children:"Browse MUI Icons ↗"})]})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"STYLE"}),r.jsx(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:ga.map(e=>r.jsx(Ca,{label:ba[e],selected:o===e,onClick:()=>n(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"COLOR"}),r.jsx(t.Stack,{spacing:1.5,children:fa.map(e=>r.jsxs(t.Box,{children:[r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:4,fontWeight:600},children:e.label}),r.jsx(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:e.colors.map(e=>{const o=ma[e],n=i===e;return r.jsx(t.Box,{component:"button",onClick:()=>l(e),"aria-label":"Select "+ha(e),"aria-pressed":n,title:ha(e),sx:{width:"var(--Button-Height)",height:"var(--Button-Height)",borderRadius:"4px",backgroundColor:"var(--Icons-"+o+")",border:n?"2px solid var(--Text)":"1px solid var(--Border)",outline:n?"2px solid var(--Focus-Visible)":"2px solid transparent",outlineOffset:"1px",cursor:"pointer",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",transition:"transform 0.1s ease","&:hover":{transform:"scale(1.1)"}},children:n&&r.jsx(a,{sx:{fontSize:16,color:"var(--Background)",pointerEvents:"none"}})},e)})})]},e.label))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"SIZE"}),r.jsx(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:["xs","small","medium","large","custom"].map(e=>r.jsx(Ca,{label:"xs"===e?"XS":ha(e),selected:s===e,onClick:()=>c(e)},e))}),"custom"===s&&r.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",gap:1,mt:1.5},children:[r.jsx(t.Box,{component:"input",type:"number",value:d,onChange:e=>u(e.target.value),"aria-label":"Custom font size in pixels",sx:{width:72,padding:"4px 8px",fontSize:"13px",fontFamily:"inherit",border:"1px solid var(--Border)",borderRadius:"4px",backgroundColor:"var(--Background)",color:"var(--Text)",outline:"none","&:focus":{borderColor:"var(--Focus-Visible)"}}}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)"},children:"px"})]})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"ARIA LABEL"}),r.jsx(t.Box,{component:"input",type:"text",value:g,onChange:e=>b(e.target.value),placeholder:"Leave empty for decorative (aria-hidden)",sx:{width:"100%",padding:"6px 10px",fontSize:"13px",fontFamily:"inherit",border:"1px solid var(--Border)",borderRadius:"4px",backgroundColor:"var(--Background)",color:"var(--Text)",boxSizing:"border-box","&:focus":{outline:"2px solid var(--Focus-Visible)",outlineOffset:"1px",borderColor:"var(--Focus-Visible)"}}}),r.jsx(Kt,{style:{color:T?"var(--Tags-Success-Text)":"var(--Text-Quiet)",display:"block",marginTop:6},children:T?'✓ Meaningful — role="img" aria-label="'+g.trim()+'"':'Decorative — aria-hidden="true" (invisible to screen readers)'})]}),r.jsxs(t.Box,{sx:{mt:3,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Disabled"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Reduces opacity to 0.38"})]}),r.jsx(xa,{checked:x,onChange:e=>p(e.target.checked),size:"small","aria-label":"Toggle disabled"})]})]})}),r.jsx(wo,{value:1,children:r.jsxs(t.Box,{sx:{p:3},children:[r.jsxs(Vt,{color:"quiet",style:{marginBottom:24},children:[ba[o]," / ",ha(i)," / ","custom"===s?d+"px":s,T?" / meaningful":" / decorative"]}),r.jsxs(t.Stack,{spacing:3,children:[r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"Icon Contrast (WCAG 1.4.11 — 3:1)"}),r.jsx(Vt,{color:"quiet",style:{marginBottom:16},children:"Non-text elements must contrast 3:1 against the page background."}),r.jsx(ka,{label:"var(--Icons-"+j+") vs. var(--Background)",ratio:ja(v.iconColor,v.background),threshold:3,note:w+" at "+B+" in "+ha(i)+" color"}),S&&r.jsx(ka,{label:"var(--Icons-Variant-"+j+") vs. var(--Background)",ratio:ja(v.iconVariant,v.background),threshold:3,note:"Two-tone secondary fill — must also meet 3:1"})]}),r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"ARIA and Semantics"}),r.jsxs(t.Stack,{spacing:0,children:[r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)",backgroundColor:T?"var(--Tags-Success-BG, rgba(0,200,0,0.05))":"transparent",px:1,borderRadius:"4px"},children:[r.jsxs(Vt,{style:{fontWeight:600},children:["Current icon — ",T?"meaningful ✓":"decorative"]}),r.jsx(t.Box,{component:"pre",sx:{fontFamily:"monospace",fontSize:"11px",color:"var(--Text-Quiet)",mt:.5,whiteSpace:"pre-wrap",wordBreak:"break-word",margin:0},children:T?A:I})]}),r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsx(Vt,{children:"Decorative (no aria-label):"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)"},children:'aria-hidden="true" is applied automatically. The icon is invisible to screen readers. Use this when the icon is purely visual — e.g. a decorative bullet or inline illustration.'}),r.jsx(t.Box,{component:"pre",sx:{fontFamily:"monospace",fontSize:"11px",color:"var(--Text-Quiet)",mt:.5,whiteSpace:"pre-wrap",wordBreak:"break-word",margin:0},children:I})]}),r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsx(Vt,{children:"Meaningful (with aria-label):"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)"},children:'role="img" is added automatically. The label is announced by screen readers. Use this when the icon conveys information that is not present in surrounding text.'}),r.jsx(t.Box,{component:"pre",sx:{fontFamily:"monospace",fontSize:"11px",color:"var(--Text-Quiet)",mt:.5,whiteSpace:"pre-wrap",wordBreak:"break-word",margin:0},children:A})]}),r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsxs(Vt,{children:["Disabled state",x?" ← current":"",":"]}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)"},children:"Opacity 0.38 — visual cue only. To disable an action, disable the wrapping interactive element (button, link), not the icon itself."})]}),S&&r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsxs(Vt,{children:["Two-tone",S?" ← current":"",":"]}),r.jsxs(Kt,{style:{color:"var(--Text-Quiet)"},children:["Secondary fill uses var(--Icons-Variant-",j,"). Both the primary and secondary fills must meet 3:1 contrast independently."]})]}),r.jsxs(t.Box,{sx:{py:1.5},children:[r.jsxs(Vt,{children:["Touch target — ",B," icon","small"===s?" ⚠":" ✓",":"]}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)"},children:"small"===s?"Small icons (20px) need a 24px minimum target area around them (WCAG 2.5.5). Wrap in a button with padding.":"Icon is "+B+" — meets 24px minimum. Ensure the wrapping interactive element also meets 24×24px."})]})]})]}),r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"Size Reference"}),r.jsx(t.Stack,{spacing:0,children:[{label:"Small",s:"small",px:"20px",note:"Inline text, compact UI"},{label:"Medium",s:"medium",px:"24px",note:"Standard UI — default"},{label:"Large",s:"large",px:"36px",note:"Emphasis, empty states, hero areas"},{label:"Custom",s:"custom",px:"any",note:"Ensure 24×24px minimum touch target (WCAG 2.5.5)"}].map(({label:e,s:o,px:a,note:n},i,l)=>r.jsxs(t.Box,{sx:{py:1.5,borderBottom:i<l.length-1?"1px solid var(--Border)":"none",display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[r.jsxs(t.Box,{children:[r.jsxs(Vt,{children:[e," — ",a]}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)"},children:n})]}),s===o&&r.jsx(t.Box,{sx:{px:1,py:.25,borderRadius:"4px",fontSize:"11px",fontWeight:700,backgroundColor:"var(--Tags-Success-BG)",color:"var(--Tags-Success-Text)"},children:"current"})]},e))})]})]})]})})]})})})]})]})},exports.InfoToggleButtonGroup=e=>r.jsx(kn,{variant:"info",...e}),exports.InsetStack=({sx:e,...t})=>r.jsx(La,{sx:{px:2,...e},...t}),exports.Label=Jt,exports.LabelExtraSmall=e=>r.jsx(Et,{textStyle:"label-extra-small",...e}),exports.LabelLarge=e=>r.jsx(Et,{textStyle:"label-large",...e}),exports.LabelSmall=e=>r.jsx(Et,{textStyle:"label-small",...e}),exports.Legal=e=>r.jsx(Et,{textStyle:"legal",...e}),exports.LegalSemibold=e=>r.jsx(Et,{textStyle:"legal-semibold",...e}),exports.LightTreeView=e=>r.jsx(Rx,{variant:"light",...e}),exports.LinearGradient=e=>r.jsx(Gl,{variant:"linear",...e}),exports.LinearProgress=ip,exports.LinearProgressShowcase=function(){const[o,a]=e.useState("default"),[n,i]=e.useState("medium"),[l,s]=e.useState(!1),[c,d]=e.useState(65),[u,x]=e.useState(null),[p,h]=e.useState("Surface");return r.jsxs(t.Box,{sx:{pb:8},children:[r.jsx(Pt,{children:"Linear Progress"}),r.jsxs(t.Grid,{container:!0,sx:{mt:2,alignItems:"flex-start",flexWrap:"wrap"},children:[r.jsxs(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"55%"},flexShrink:0,pr:{md:3}},children:[r.jsx(To,{theme:u,surface:p,children:r.jsx(t.Box,{sx:{width:"100%",maxWidth:400},children:r.jsx(ip,{color:o,size:n,value:l?c:void 0})})}),r.jsx(na,{code:(()=>{const e=[];return"default"!==o&&e.push('color="'+o+'"'),"medium"!==n&&e.push('size="'+n+'"'),l&&e.push("value={"+c+"}"),0===e.length?"<LinearProgress />":"<LinearProgress\n "+e.join("\n ")+"\n/>"})(),language:"JSX",wrap:!0,sx:{mt:2}})]}),r.jsx(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"45%"},flexShrink:0,alignSelf:"flex-start",minWidth:0,overflow:"hidden"},children:r.jsx(t.Box,{sx:{backgroundColor:"var(--Background)",overflow:"hidden"},children:r.jsxs(Bo,{defaultValue:0,variant:"standard",color:"primary",children:[r.jsxs(ko,{children:[r.jsx(Co,{children:"Playground"}),r.jsx(Co,{children:"Accessibility"})]}),r.jsx(wo,{value:0,children:r.jsxs(t.Box,{sx:{p:3},children:[r.jsx(t.Box,{sx:{mb:3},children:r.jsx(Ro,{theme:u,onThemeChange:x,surface:p,onSurfaceChange:h})}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"COLOR"}),r.jsx(t.Stack,{spacing:1.5,children:sp.map(e=>r.jsxs(t.Box,{children:[r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:4,fontWeight:600},children:e.label}),r.jsx(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:e.colors.map(e=>r.jsx(dp,{color:e,selected:o===e,onClick:a},e))})]},e.label))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"SIZE"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["small","medium","large"].map(e=>r.jsx(cp,{label:lp(e),selected:n===e,onClick:()=>i(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Determinate"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Show a static bar at a specific value"})]}),r.jsx(xa,{variant:"default-outline",checked:l,onChange:e=>s(e.target.checked),size:"small","aria-label":"Determinate"})]}),l&&r.jsx(t.Box,{sx:{mt:2},children:r.jsx(Xn,{label:"Value",min:0,max:100,value:c,onChange:(e,t)=>d(t),size:"small",valueLabelDisplay:"auto"})})]})}),r.jsx(wo,{value:1,children:r.jsx(t.Box,{sx:{p:3},children:r.jsx(t.Stack,{spacing:3,children:r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"ARIA and Semantics"}),r.jsx(t.Stack,{spacing:0,children:[{label:"Role",value:'role="progressbar"'},{label:"Determinate",value:'aria-valuenow, aria-valuemin="0", aria-valuemax="100"'},{label:"Indeterminate",value:'aria-label="Loading" (no value attributes)'},{label:"Track",value:"var(--Border-Variant)"},{label:"Fill",value:"var(--Buttons-{Color}-Border)"}].map(({label:e,value:o})=>r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsxs(Vt,{children:[e,":"]}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:o})]},e))})]})})})})]})})})]})]})},exports.Link=hi,exports.List=function({children:o,items:a,variant:n="default",color:i="primary",size:l="medium",orientation:s="vertical",dividers:c=!1,selectionMode:d="none",selectedIndices:u=[],onSelectionChange:x,clickable:p=!1,component:h="ul",className:m="",sx:f={},...g}){const b="horizontal"===s,v="checkbox"===d||"radio"===d,y="light"===n,j="default"===n,S={};return"solid"===n&&Ep[i]?S["data-theme"]=Ep[i]:y&&Lp[i]&&(S["data-theme"]=Lp[i]),r.jsx(t.Box,{component:h,role:v?"listbox":"list","aria-multiselectable":"checkbox"===d||void 0,...S,className:"list-container list-"+n+" list-"+i+" "+m,sx:{display:"flex",flexDirection:b?"row":"column",boxSizing:"border-box",alignItems:"stretch",gap:p?"var(--Sizing-1)":0,m:0,p:j?0:1,backgroundColor:j?"transparent":"var(--Background)",color:"var(--Text)",borderRadius:j?0:"var(--Style-Border-Radius)",width:"100%",listStyle:"none",...b?{"& > .list-item":{flex:"1 1 0",width:"auto"}}:{},...f},...g,children:(()=>{if(a&&a.length>0){const e=[];return a.forEach((o,s)=>{e.push(r.jsx(Op,{size:l,variant:n,color:i,startDecorator:o.startDecorator,endDecorator:o.endDecorator,startDecoratorIsButton:o.startDecoratorIsButton,endDecoratorIsButton:o.endDecoratorIsButton,onStartDecoratorAction:o.onStartDecoratorAction,onEndDecoratorAction:o.onEndDecoratorAction,startDecoratorAriaLabel:o.startDecoratorAriaLabel,endDecoratorAriaLabel:o.endDecoratorAriaLabel,eyebrow:o.eyebrow??o.overline,secondary:o.secondary,clickable:p||o.clickable,disabled:o.disabled,bottomBorder:o.bottomBorder,rightBorder:o.rightBorder,selected:v?u.includes(s):o.selected,selectionMode:d,onSelect:()=>(e=>{if(x)if("radio"===d)x([e]);else{const t=u.includes(e)?u.filter(t=>t!==e):[...u,e];x(t)}})(s),onClick:o.onClick,children:o.label||o.children},"item-"+s)),c&&s<a.length-1&&e.push(r.jsx(t.Box,{component:"li",role:"separator","aria-hidden":"true",sx:b?{width:"1px",alignSelf:"stretch",backgroundColor:"var(--Border)",flexShrink:0}:{height:"1px",backgroundColor:"var(--Border)"}},"div-"+s))}),e}if(o){const a=e.Children.toArray(o);if(!c)return a;const n=[];return a.forEach((e,o)=>{n.push(e),o<a.length-1&&n.push(r.jsx(t.Box,{component:"li",role:"separator","aria-hidden":"true",sx:b?{width:"1px",alignSelf:"stretch",backgroundColor:"var(--Border)",flexShrink:0}:{height:"1px",backgroundColor:"var(--Border)"}},"div-"+o))}),n}return null})()})},exports.ListItem=Op,exports.ListItemDecorator=Mp,exports.MainLayout=function({layout:o="side",navItems:a=[{label:"Home",icon:r.jsx(h,{}),path:"/"},{label:"About",icon:r.jsx(B,{}),path:"/about"},{label:"Settings",icon:r.jsx(f,{}),path:"/settings"},{label:"Help",icon:r.jsx(ot,{}),path:"/help"}],title:n="My App",children:i,onLayoutChange:l,onNavigate:s,sx:c={},...d}){const u=t.useTheme(),x=t.useMediaQuery(u.breakpoints.down("md"));t.useMediaQuery(u.breakpoints.down("lg"));const[p,m]=e.useState(!1),[g,b]=e.useState(!1),v=x?"top":o,y=({compact:e=!1})=>r.jsx(t.List,{sx:{py:1},children:a.map((o,a)=>r.jsx(t.Tooltip,{title:e?o.label:"",placement:"right",children:r.jsxs(t.ListItemButton,{onClick:()=>{s?.(o),m(!1)},sx:{color:"var(--Text)","&:hover":{backgroundColor:"var(--Container-High)"},transition:"all 0.2s ease-in-out",justifyContent:e?"center":"flex-start",px:e?1:2},children:[r.jsx(t.ListItemIcon,{sx:{color:"var(--Icons-Primary)",minWidth:e?"auto":40,mr:e?0:1},children:o.icon}),!e&&r.jsx(t.ListItemText,{primary:o.label})]})},a))});return r.jsxs(t.Box,{sx:{minHeight:"100vh",backgroundColor:"var(--Background)",color:"var(--Text)",display:"flex",flexDirection:"column",...c},...d,children:[r.jsx(t.AppBar,{position:"static",sx:{backgroundColor:"var(--Header)",color:"var(--Text)",boxShadow:"0 1px 3px rgba(0,0,0,0.12)",borderBottom:"1px solid var(--Border-Variant)"},children:r.jsxs(t.Toolbar,{children:[x&&"rail"!==v&&r.jsx(t.IconButton,{edge:"start",color:"inherit",onClick:()=>m(!p),sx:{mr:2},children:p?r.jsx(Se,{}):r.jsx(je,{})}),r.jsx(t.Typography,{variant:"h6",sx:{flex:1,fontWeight:700},children:n}),!x&&l&&r.jsxs(t.ToggleButtonGroup,{value:o,exclusive:!0,onChange:(e,t)=>{t&&l(t)},size:"small",sx:{"& .MuiToggleButton-root":{color:"var(--Text)",border:"1px solid var(--Border)","&.Mui-selected":{backgroundColor:"var(--Button-Primary-Button)",color:"#fff",borderColor:"var(--Button-Primary-Button)"}}},children:[r.jsx(t.ToggleButton,{value:"side","aria-label":"side nav",children:"☰ Side"}),r.jsx(t.ToggleButton,{value:"rail","aria-label":"rail nav",children:"⫷ Rail"}),r.jsx(t.ToggleButton,{value:"side-rail","aria-label":"side-rail nav",children:"☰⫷ Both"})]})]})}),r.jsxs(t.Box,{sx:{display:"flex",flex:1},children:[("rail"===v||"side-rail"===v)&&!x&&r.jsx(t.Box,{sx:{width:80,backgroundColor:"var(--Container)",borderRight:"1px solid var(--Border-Variant)",display:"flex",flexDirection:"column",py:2},children:r.jsx(y,{compact:!0})}),("side"===v||"side-rail"===v)&&!x&&r.jsxs(t.Box,{sx:{width:g?80:280,backgroundColor:"var(--Container)",borderRight:"1px solid var(--Border-Variant)",transition:"width 0.3s ease-in-out",display:"flex",flexDirection:"column"},children:[r.jsxs(t.Box,{sx:{p:2,display:"flex",alignItems:"center",justifyContent:"space-between",borderBottom:"1px solid var(--Border-Variant)",minHeight:64},children:[!g&&r.jsx(t.Typography,{variant:"h6",sx:{fontWeight:700,color:"var(--Text)"},children:"Menu"}),r.jsx(t.IconButton,{size:"small",onClick:()=>b(!g),sx:{color:"var(--Icons-Primary)"},children:g?"›":"‹"})]}),r.jsx(y,{compact:g})]}),x&&r.jsxs(t.Drawer,{anchor:"left",open:p,onClose:()=>m(!1),sx:{"& .MuiDrawer-paper":{backgroundColor:"var(--Container)",width:280}},children:[r.jsx(t.Box,{sx:{p:2,borderBottom:"1px solid var(--Border-Variant)"},children:r.jsx(t.Typography,{variant:"h6",sx:{fontWeight:700},children:"Menu"})}),r.jsx(y,{compact:!1})]}),r.jsx(t.Box,{sx:{flex:1,overflow:"auto",backgroundColor:"var(--Background)"},children:r.jsx(t.Container,{maxWidth:"lg",sx:{py:4},children:i})})]})]})},exports.Menu=al,exports.MenuButton=ol,exports.MenuDivider=il,exports.MenuItem=nl,exports.MenuShowcase=function(){const[o,a]=e.useState("outline"),[n,i]=e.useState("default"),[l,s]=e.useState("medium"),[c,d]=e.useState(null),[u,x]=e.useState("Surface");return r.jsxs(t.Box,{sx:{pb:8},children:[r.jsx(Pt,{children:"Menu"}),r.jsxs(t.Grid,{container:!0,sx:{mt:2,alignItems:"flex-start",flexWrap:"wrap"},children:[r.jsxs(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"55%"},flexShrink:0,pr:{md:3}},children:[r.jsx(To,{theme:c,surface:u,sx:{minHeight:250,alignItems:"flex-start",pt:6},children:r.jsxs(rl,{variant:o,color:n,size:l,children:[r.jsx(ol,{children:"Actions"}),r.jsxs(al,{children:[r.jsx(nl,{children:"Edit"}),r.jsx(nl,{children:"Duplicate"}),r.jsx(nl,{selected:!0,children:"Archive"}),r.jsx(il,{}),r.jsx(nl,{disabled:!0,children:"Delete"})]})]})}),r.jsx(na,{code:(()=>{const e=[];return"outline"!==o&&e.push('variant="'+o+'"'),"default"!==n&&e.push('color="'+n+'"'),"medium"!==l&&e.push('size="'+l+'"'),"<Dropdown "+e.join(" ")+">\n <MenuButton>Actions</MenuButton>\n <Menu>\n <MenuItem>Edit</MenuItem>\n <MenuItem>Duplicate</MenuItem>\n <MenuDivider />\n <MenuItem>Delete</MenuItem>\n </Menu>\n</Dropdown>"})(),language:"JSX",wrap:!0,sx:{mt:2}})]}),r.jsx(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"45%"},flexShrink:0,alignSelf:"flex-start",minWidth:0,overflow:"hidden"},children:r.jsx(t.Box,{sx:{backgroundColor:"var(--Background)",overflow:"hidden"},children:r.jsxs(Bo,{defaultValue:0,variant:"standard",color:"primary",children:[r.jsxs(ko,{children:[r.jsx(Co,{children:"Playground"}),r.jsx(Co,{children:"Accessibility"})]}),r.jsx(wo,{value:0,children:r.jsxs(t.Box,{sx:{p:3},children:[r.jsx(t.Box,{sx:{mb:3},children:r.jsx(Ro,{theme:c,onThemeChange:d,surface:u,onSurfaceChange:x})}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"STYLE"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["outline","solid","light"].map(e=>r.jsx(cl,{label:ll(e),selected:o===e,onClick:()=>a(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"COLOR"}),r.jsx(t.Stack,{spacing:1.5,children:sl.map(e=>r.jsxs(t.Box,{children:[r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:4,fontWeight:600},children:e.label}),r.jsx(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:e.colors.map(e=>r.jsx(dl,{color:e,selected:n===e,onClick:i},e))})]},e.label))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"SIZE"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["small","medium","large"].map(e=>r.jsx(cl,{label:ll(e),selected:l===e,onClick:()=>s(e)},e))})]})]})}),r.jsx(wo,{value:1,children:r.jsx(t.Box,{sx:{p:3},children:r.jsx(t.Stack,{spacing:3,children:r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"ARIA and Semantics"}),r.jsx(t.Stack,{spacing:0,children:[{label:"Button",value:'aria-haspopup="true" aria-expanded aria-controls'},{label:"Menu",value:'role="menu" aria-labelledby={buttonId}'},{label:"Items",value:'role="menuitem" with tabIndex'},{label:"Selected",value:'aria-selected="true" on active item'},{label:"Disabled",value:'aria-disabled="true", not focusable'},{label:"Keyboard",value:"Arrow keys navigate. Enter/Space selects. Escape closes."},{label:"Focus",value:"First item focused on open. Focus returns to button on close."}].map(({label:e,value:o})=>r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsxs(Vt,{children:[e,":"]}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:o})]},e))})]})})})})]})})})]})]})},exports.MeshCardGradient=e=>r.jsx(Gl,{variant:"meshCard",...e}),exports.MeshGradient=e=>r.jsx(Gl,{variant:"mesh",...e}),exports.MobileAppBar=Gp,exports.Modal=function({open:o,onClose:a,children:n,title:i,variant:l="default",color:s="primary",size:c="medium",layout:d="center",transition:u="fade",transitionSpeed:x=250,closeOnBackdrop:p=!0,showCloseButton:h=!0,className:m="",sx:f={},...g}){const b=e.useRef(null),v=e.useRef(null),[y,j]=e.useState(!1);let S;try{S=as()}catch{S=null}const B=S?.theme||"Default",k=S?.style||"Modern",C="soft"===l,w="solid"===l,T="fullscreen"===d,I=w?ms[s]:C?fs[s]:null,A=gs[c]||gs.medium,z=bs[u],R=z?z.name:void 0,E=x+"ms";return e.useEffect(()=>(o?(v.current=document.activeElement,j(!0),requestAnimationFrame(()=>{b.current?.focus()}),document.body.style.overflow="hidden"):(j(!1),document.body.style.overflow="",v.current?.focus()),()=>{document.body.style.overflow=""}),[o]),e.useEffect(()=>{if(!o)return;const e=e=>{"Escape"===e.key&&a?.()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[o,a]),o||y?r.jsxs(r.Fragment,{children:["none"!==u&&r.jsx("style",{children:vs(u)}),r.jsx(t.Box,{"aria-hidden":"true",onClick:p?a:void 0,sx:{position:"fixed",inset:0,zIndex:1e7,backgroundColor:"rgba(0,0,0,0.5)",...R&&{animation:R+"-backdrop "+E+" ease-out forwards"}}}),r.jsxs(t.Box,{role:"dialog","aria-modal":"true","aria-label":i||"Modal",ref:b,tabIndex:-1,"data-surface":"Container-High","data-theme":I||B,"data-style":k,className:"modal modal-"+l+" modal-"+c+" modal-"+d+(C||w?" modal-"+s:"")+(m?" "+m:""),sx:{position:"fixed",zIndex:10000001,outline:"none",fontFamily:"inherit",...T?{inset:0,borderRadius:0}:{top:"50%",left:"50%",transform:"translate(-50%, -50%)",maxWidth:A.maxWidth+"px",width:"calc(100% - 32px)",maxHeight:"calc(100vh - 64px)",borderRadius:"var(--Modal-Radius, var(--Style-Border-Radius))"},backgroundColor:"var(--Background)",color:"var(--Text)",boxShadow:"0 8px 32px rgba(0,0,0,0.24)",display:"flex",flexDirection:"column",overflow:"hidden",...R&&{animation:R+" "+E+" ease-out forwards"},...f},...g,children:[(i||h)&&r.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",px:T?4:A.padding,pt:T?3:A.padding,pb:0,flexShrink:0},children:[i&&r.jsx(t.Box,{sx:{fontSize:"small"===c?"18px":"large"===c?"24px":"20px",fontWeight:700,color:"var(--Text)",flex:1},children:i}),h&&r.jsx(t.Box,{component:"button",type:"button","aria-label":"Close modal",onClick:a,sx:{display:"flex",alignItems:"center",justifyContent:"center",width:32,height:32,borderRadius:"50%",border:"none",backgroundColor:"transparent",color:"var(--Text-Quiet)",cursor:"pointer",flexShrink:0,ml:1,transition:"background-color 0.15s ease, color 0.15s ease","&:hover":{backgroundColor:"var(--Hover)",color:"var(--Text)"},"&:focus-visible":{outline:"2px solid var(--Focus-Visible)",outlineOffset:"2px"}},children:r.jsx(Se,{sx:{fontSize:20}})})]}),r.jsx(t.Box,{sx:{flex:1,overflowY:"auto",px:T?4:A.padding,pt:T?3:"16px",pb:T?3:A.padding,color:"var(--Text)",fontSize:"small"===c?"13px":"14px",lineHeight:1.6},children:n})]})]}):null},exports.NeutralToggleButtonGroup=e=>r.jsx(kn,{variant:"neutral",...e}),exports.NumberField=mn,exports.NumberFieldShowcase=function(){const[o,a]=e.useState("outlined"),[n,i]=e.useState("outline"),[l,s]=e.useState("default"),[c,d]=e.useState("medium"),[u,x]=e.useState("top"),[p,h]=e.useState(!0),[m,f]=e.useState(!1),[g,b]=e.useState(!1),[v,y]=e.useState(null),[j,S]=e.useState("Surface");return r.jsxs(t.Box,{sx:{pb:8},children:[r.jsx(Pt,{children:"Number Field"}),r.jsxs(t.Grid,{container:!0,sx:{mt:2,alignItems:"flex-start",flexWrap:"wrap"},children:[r.jsxs(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"55%"},flexShrink:0,pr:{md:3}},children:[r.jsx(To,{theme:v,surface:j,children:r.jsx(t.Box,{sx:{width:"100%",maxWidth:"outlined"===o?300:"auto"},children:r.jsx(mn,{variant:o,style:n,color:l,size:c,label:p?"Quantity":void 0,labelPosition:u,min:0,max:100,disabled:m,fullWidth:g&&"outlined"===o})})}),r.jsx(na,{code:(()=>{const e=['variant="'+o+'"'];return"outline"!==n&&e.push('style="'+n+'"'),"default"!==l&&e.push('color="'+l+'"'),"medium"!==c&&e.push('size="'+c+'"'),p&&e.push('label="Quantity"'),"top"!==u&&e.push('labelPosition="'+u+'"'),e.push("min={0}"),e.push("max={100}"),m&&e.push("disabled"),g&&"outlined"===o&&e.push("fullWidth"),e.push("value={value}"),e.push("onChange={setValue}"),"<NumberField\n "+e.join("\n ")+"\n/>"})(),language:"JSX",wrap:!0,sx:{mt:2}})]}),r.jsx(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"45%"},flexShrink:0,alignSelf:"flex-start",minWidth:0,overflow:"hidden"},children:r.jsx(t.Box,{sx:{backgroundColor:"var(--Background)",overflow:"hidden"},children:r.jsxs(Bo,{defaultValue:0,variant:"standard",color:"primary",children:[r.jsxs(ko,{children:[r.jsx(Co,{children:"Playground"}),r.jsx(Co,{children:"Accessibility"})]}),r.jsx(wo,{value:0,children:r.jsxs(t.Box,{sx:{p:3},children:[r.jsx(t.Box,{sx:{mb:3},children:r.jsx(Ro,{theme:v,onThemeChange:y,surface:j,onSurfaceChange:S})}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"VARIANT"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["outlined","spinner"].map(e=>r.jsx(bn,{label:fn(e),selected:o===e,onClick:()=>a(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"STYLE"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["outline","light"].map(e=>r.jsx(bn,{label:fn(e),selected:n===e,onClick:()=>i(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"COLOR"}),r.jsx(t.Stack,{spacing:1.5,children:gn.map(e=>r.jsxs(t.Box,{children:[r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:4,fontWeight:600},children:e.label}),r.jsx(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:e.colors.map(e=>r.jsx(vn,{color:e,selected:l===e,onClick:s},e))})]},e.label))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"SIZE"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["small","medium","large"].map(e=>r.jsx(bn,{label:fn(e),selected:c===e,onClick:()=>d(e)},e))})]}),"outlined"===o&&r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"LABEL"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["top","floating","none"].map(e=>r.jsx(bn,{label:"none"===e?"None":fn(e),selected:u===e,onClick:()=>x(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Show Label"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Text label above field"})]}),r.jsx(xa,{variant:"default-outline",checked:p,onChange:e=>h(e.target.checked),size:"small","aria-label":"Show label"})]}),r.jsxs(t.Box,{sx:{mt:2,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Disabled"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Non-interactive state"})]}),r.jsx(xa,{variant:"default-outline",checked:m,onChange:e=>f(e.target.checked),size:"small","aria-label":"Disabled"})]}),"outlined"===o&&r.jsxs(t.Box,{sx:{mt:2,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Full Width"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Stretch to container"})]}),r.jsx(xa,{variant:"default-outline",checked:g,onChange:e=>b(e.target.checked),size:"small","aria-label":"Full width"})]})]})}),r.jsx(wo,{value:1,children:r.jsx(t.Box,{sx:{p:3},children:r.jsx(t.Stack,{spacing:3,children:r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"ARIA and Semantics"}),r.jsx(t.Stack,{spacing:0,children:[{label:"Role",value:'role="spinbutton" with aria-valuenow, aria-valuemin, aria-valuemax'},{label:"Label",value:"aria-label from label prop. Always provide a label."},{label:"Keyboard",value:"ArrowUp/Down increment/decrement. Direct text entry supported."},{label:"Steppers",value:'aria-label="Increase" / "Decrease" on stepper buttons'},{label:"Focus",value:"outline: 2px solid var(--Focus-Visible); outline-offset: 2px"},{label:"Disabled",value:"HTML disabled. Steppers also disabled at min/max bounds."}].map(({label:e,value:o})=>r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsxs(Vt,{children:[e,":"]}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:o})]},e))})]})})})})]})})})]})]})},exports.NumberLarge=e=>r.jsx(Et,{textStyle:"number-large",...e}),exports.NumberMedium=e=>r.jsx(Et,{textStyle:"number-medium",...e}),exports.NumberSmall=e=>r.jsx(Et,{textStyle:"number-small",...e}),exports.NumberTextField=function({label:e="Number",...t}){return r.jsx(Cn,{label:e,type:"number",...t})},exports.OmniDesignProvider=function({themeURL:t,foundationCSS:o,coreCSS:a,typographyCSS:n,lightModeCSS:i,darkModeCSS:l,baseCSS:s,stylesCSS:c,defaultTheme:d="Default",defaultStyle:u="Modern",defaultSurface:x="Surface",surfaceStyle:p,defaultDarkMode:h=!1,darkTheme:m="Neutral-Dark",darkMode:f,onDarkModeChange:g,className:b,style:v,fullHeight:y=!0,children:j}){const[S,B]=e.useState(h),k=void 0!==f,C=k?f:S,[w,T]=e.useState({foundation:o??null,core:a??null,typography:n??null,lightMode:i??null,darkMode:l??null,base:s??null,styles:c??null}),[I,A]=e.useState({}),z=e.useRef(!0);e.useEffect(()=>(z.current=!0,()=>{z.current=!1}),[]),e.useEffect(()=>{t&&(Q("loading"),async function(e){const t=/\.json(\?|$)/.test(e)?e:`${e.replace(/\/$/,"")}/theme.json`,r=e.replace(/\/$/,"").replace(/\/theme\.json(\?.*)?$/,""),o=await fetch(t);if(!o.ok)throw new Error(`OmniDesignProvider: could not load theme manifest from ${t} (${o.status})`);const a=await o.json(),n=e=>e?/^https?:\/\//i.test(e)?e:`${r}/${e}`:null;return{foundationURL:n(a.foundation),coreURL:n(a.core),typographyURL:n(a.typography),lightModeURL:n(a.lightMode),darkModeURL:n(a.darkMode),baseURL:n(a.base),stylesURL:n(a.styles),defaultTheme:a.defaultTheme??null,defaultStyle:a.defaultStyle??null,defaultSurface:a.defaultSurface??null,darkTheme:a.darkTheme??null,name:a.name??null}}(t).then(e=>{z.current&&(T({foundation:o??e.foundationURL,core:a??e.coreURL,typography:n??e.typographyURL,lightMode:i??e.lightModeURL,darkMode:l??e.darkModeURL,base:s??e.baseURL,styles:c??e.stylesURL}),A({defaultTheme:e.defaultTheme,defaultStyle:e.defaultStyle,defaultSurface:e.defaultSurface,darkTheme:e.darkTheme,name:e.name}))}).catch(e=>{z.current&&(console.error("OmniDesignProvider: manifest error:",e),q(e.message),Q("error"))}))},[t]);const R=p?Jl[p]?.theme??d:"Default"!==d?d:I.defaultTheme??d,E=p?Jl[p]?.rootSurface??x:I.defaultSurface??x,L=I.defaultStyle??u,P="Neutral-Dark"!==m?m:I.darkTheme??m,[M,O]=e.useState(R),[D,W]=e.useState(L),[F,N]=e.useState(E),H=!!(t||o||a||n||i||l||s||c),[V,Q]=e.useState(H?"loading":"ready"),[G,q]=e.useState(null);e.useEffect(()=>{const{foundation:e,core:t,typography:r,base:o,styles:a}=w;if(e||t||r||o||a)return Q("loading"),q(null),Promise.all([os(Yl,e),os(Zl,t),os($l,r).catch(e=>{console.warn("OmniDesignProvider: typography CSS did not load —",e.message)}),os(es,o),os(ts,a)]).then(()=>{z.current&&Q("ready")}).catch(e=>{z.current&&(console.error("OmniDesignProvider CSS error:",e),q(e.message),Q("error"))}),()=>{rs(Yl),rs(Zl),rs($l),rs(es),rs(ts)};Q("ready")},[w.foundation,w.core,w.typography,w.base,w.styles]),e.useEffect(()=>{const e=C?w.darkMode:w.lightMode;e&&os(_l,e,es).catch(e=>console.error("OmniDesignProvider mode CSS error:",e))},[C,w.lightMode,w.darkMode]),e.useEffect(()=>()=>rs(_l),[]);const U=C?P:M,X=e.useCallback(()=>{k?g?.(!C):B(e=>!e)},[k,C,g]),K=e.useCallback(e=>{Ul.includes(e)||console.warn(`OmniDesignProvider: unknown theme "${e}"`),O(e)},[]),J=e.useCallback(e=>{Xl.includes(e)||console.warn(`OmniDesignProvider: unknown style "${e}"`),W(e)},[]),Y=e.useCallback(e=>{Kl.includes(e)||console.warn(`OmniDesignProvider: unknown surface "${e}"`),N(e)},[]),Z=e.useMemo(()=>({theme:U,style:D,surface:F,isDark:C,cssStatus:V,cssError:G,setTheme:K,setStyle:J,setSurface:Y,toggleDarkMode:X,themes:Ul,styles:Xl,surfaces:Kl,name:I.name??null}),[U,D,F,C,V,G,K,J,Y,X,I.name]);return r.jsxs(ql.Provider,{value:Z,children:[r.jsx("style",{"data-omni":"hide-during-load",children:'[data-omni-css="loading"]{visibility:hidden}'}),r.jsx("div",{"data-theme":U,"data-style":D,"data-surface":F,"data-omni-css":V,className:b,style:{...y?{minHeight:"100vh"}:{},...v},children:j})]})},exports.OmniStack=La,exports.OmniTreeView=Rx,exports.Overline=tr,exports.OverlineLarge=or,exports.OverlineMedium=rr,exports.OverlineSmall=er,exports.Pagination=Xi,exports.PaginationShowcase=function(){const[o,a]=e.useState("default"),[n,i]=e.useState("medium"),[l,s]=e.useState(10),[c,d]=e.useState(!1),[u,x]=e.useState(!1),[p,h]=e.useState(!1),[m,f]=e.useState(null),[g,b]=e.useState("Surface");return r.jsxs(t.Box,{sx:{pb:8},children:[r.jsx(Pt,{children:"Pagination"}),r.jsxs(t.Grid,{container:!0,sx:{mt:2,alignItems:"flex-start",flexWrap:"wrap"},children:[r.jsxs(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"55%"},flexShrink:0,pr:{md:3}},children:[r.jsx(To,{theme:m,surface:g,children:r.jsx(Xi,{color:o,size:n,count:l,showFirstButton:c,showLastButton:u,disabled:p})}),r.jsx(na,{code:(()=>{const e=[];return"default"!==o&&e.push('color="'+o+'"'),"medium"!==n&&e.push('size="'+n+'"'),10!==l&&e.push("count={"+l+"}"),c&&e.push("showFirstButton"),u&&e.push("showLastButton"),p&&e.push("disabled"),e.push("onChange={handlePageChange}"),1===e.length?"<Pagination onChange={handlePageChange} />":"<Pagination\n "+e.join("\n ")+"\n/>"})(),language:"JSX",wrap:!0,sx:{mt:2}})]}),r.jsx(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"45%"},flexShrink:0,alignSelf:"flex-start",minWidth:0,overflow:"hidden"},children:r.jsx(t.Box,{sx:{backgroundColor:"var(--Background)",overflow:"hidden"},children:r.jsxs(Bo,{defaultValue:0,variant:"standard",color:"primary",children:[r.jsxs(ko,{children:[r.jsx(Co,{children:"Playground"}),r.jsx(Co,{children:"Accessibility"})]}),r.jsx(wo,{value:0,children:r.jsxs(t.Box,{sx:{p:3},children:[r.jsx(t.Box,{sx:{mb:3},children:r.jsx(Ro,{theme:m,onThemeChange:f,surface:g,onSurfaceChange:b})}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"COLOR"}),r.jsx(t.Stack,{spacing:1.5,children:Ji.map(e=>r.jsxs(t.Box,{children:[r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:4,fontWeight:600},children:e.label}),r.jsx(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:e.colors.map(e=>r.jsx(Zi,{color:e,selected:o===e,onClick:a},e))})]},e.label))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"SIZE"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["small","medium","large"].map(e=>r.jsx(Yi,{label:Ki(e),selected:n===e,onClick:()=>i(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"PAGES"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:[5,10,20,50].map(e=>r.jsx(Yi,{label:String(e),selected:l===e,onClick:()=>s(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"First/Last Buttons"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Show jump to first/last page"})]}),r.jsx(xa,{variant:"default-outline",checked:c,onChange:e=>{d(e.target.checked),x(e.target.checked)},size:"small","aria-label":"First/last buttons"})]}),r.jsxs(t.Box,{sx:{mt:2,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Disabled"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Non-interactive state"})]}),r.jsx(xa,{variant:"default-outline",checked:p,onChange:e=>h(e.target.checked),size:"small","aria-label":"Disabled"})]})]})}),r.jsx(wo,{value:1,children:r.jsx(t.Box,{sx:{p:3},children:r.jsx(t.Stack,{spacing:3,children:r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"ARIA and Semantics"}),r.jsx(t.Stack,{spacing:0,children:[{label:"Nav",value:'<nav aria-label="Pagination">'},{label:"List",value:"<ol> with <li> for each button"},{label:"Current",value:'aria-current="page" on selected page'},{label:"Labels",value:'aria-label="Page N", "Go to previous/next/first/last page"'},{label:"Keyboard",value:"Tab navigates between buttons"},{label:"Focus",value:"Uses Button component focus styles"}].map(({label:e,value:o})=>r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsxs(Vt,{children:[e,":"]}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:o})]},e))})]})})})})]})})})]})]})},exports.Paper=function({children:e,surface:o="Container",outlined:a=!1,variant:n=(a?"outlined":"elevation"),sx:i={},...l}){const{dataSurface:s,elevation:c}=function(e="Container"){const t={"Container-Lowest":{elevation:0,zIndex:0},"Container-Low":{elevation:1,zIndex:100},Container:{elevation:4,zIndex:200},"Container-High":{elevation:8,zIndex:300},"Container-Highest":{elevation:12,zIndex:400}},r=t[e]||t.Container;return{dataSurface:e,elevation:r.elevation,zIndex:r.zIndex}}(o);return r.jsx(t.Paper,{variant:n,elevation:a?0:c,"data-surface":s,sx:{padding:2,borderRadius:"8px",transition:"all 0.2s ease-in-out",...i},...l,children:e})},exports.PasswordTextField=function({label:e="Password",...t}){return r.jsx(Cn,{label:e,type:"password",...t})},exports.PhoneTextField=function({label:e="Phone",placeholder:t="(555) 123-4567",...o}){return r.jsx(Cn,{label:e,type:"tel",placeholder:t,...o})},exports.Popover=function({open:o=!1,onClose:a,anchorRef:n,placement:i="bottom-end",theme:l="Default",surface:s="Surface-Bright",width:c=320,maxHeight:d=400,children:x,sx:p={}}){const h=e.useRef(null),[m,f]=e.useState({top:0,left:0,right:"auto"});return e.useEffect(()=>{if(!o||!n?.current)return;const e=n.current.getBoundingClientRect();f("bottom-end"===i?{top:e.bottom+6,right:window.innerWidth-e.right,left:"auto"}:{top:e.bottom+6,left:e.left,right:"auto"})},[o,n,i]),e.useEffect(()=>{if(!o)return;const e=e=>{h.current?.contains(e.target)||n?.current?.contains(e.target)||a?.()};return document.addEventListener("pointerdown",e),()=>document.removeEventListener("pointerdown",e)},[o,a,n]),e.useEffect(()=>{if(!o)return;const e=e=>{"Escape"===e.key&&a?.()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[o,a]),o?u.createPortal(r.jsx(t.Box,{ref:h,"data-theme":l,"data-surface":s,sx:{position:"fixed",top:m.top,left:m.left,right:m.right,zIndex:2e9,width:c,maxHeight:d,overflowY:"auto",backgroundColor:"var(--Background)",border:"1px solid var(--Border)",borderRadius:"var(--Style-Border-Radius)",boxShadow:Ir,...p},children:x}),document.body):null},exports.PrimaryToggleButtonGroup=e=>r.jsx(kn,{variant:"primary",...e}),exports.RATIO_NAMES=Ci,exports.RadialGradient=e=>r.jsx(Gl,{variant:"radial",...e}),exports.Radio=Qn,exports.RadioGroup=function({color:e="primary",size:o="medium",label:a,options:n=[],value:i,onChange:l,orientation:s="vertical",labelPlacement:c="end",disabled:d=!1,spacing:u=1,name:x,className:p="",sx:h={},"aria-label":m,"aria-labelledby":f,...g}){return r.jsxs(t.FormControl,{component:"fieldset",disabled:d,className:"radio-group-"+e+" "+p,sx:h,children:[a&&r.jsx(t.FormLabel,{component:"legend",sx:{color:d?"var(--Text-Quiet)":"var(--Text)",fontSize:"small"===o?"13px":"15px",fontWeight:500,mb:1,"&.Mui-focused":{color:"var(--Text)"},"&.Mui-disabled":{color:"var(--Text-Quiet)",opacity:.6}},children:a}),r.jsx(t.RadioGroup,{value:i,onChange:l,name:x,"aria-label":m,"aria-labelledby":f,row:"horizontal"===s,sx:{display:"flex",flexDirection:"horizontal"===s?"row":"column",flexWrap:"horizontal"===s?"wrap":"nowrap",alignItems:"horizontal"===s?"center":"flex-start",gap:u},...g,children:n.map(t=>r.jsx(Qn,{color:e,size:o,label:t.label,labelPlacement:c,value:t.value,disabled:t.disabled||d},t.value))})]})},exports.RadioInput=Gn,exports.Rail=on,exports.RailShowcase=function(){const[o,a]=e.useState(!0),[n,i]=e.useState("partial"),[l,s]=e.useState(!1),[c,d]=e.useState(null),[u,x]=e.useState("Surface");return r.jsxs(t.Box,{sx:{pb:8},children:[r.jsx(Pt,{children:"Rail"}),r.jsxs(t.Grid,{container:!0,sx:{mt:2,alignItems:"flex-start",flexWrap:"wrap"},children:[r.jsxs(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"55%"},flexShrink:0,pr:{md:3}},children:[r.jsxs(To,{theme:c,surface:u,sx:{minHeight:400,alignItems:"stretch",p:0},children:[r.jsx(on,{items:ln,expandable:o,expandedWidth:n,fabAction:l?{icon:r.jsx(ve,{}),label:"Create",onClick:()=>{}}:void 0}),r.jsx(t.Box,{sx:{flex:1,p:3},children:r.jsx(Vt,{style:{color:"var(--Quiet)"},children:"Main content area"})})]}),r.jsx(na,{code:(()=>{const e=["items={items}"];return o&&(e.push("expandable"),"partial"!==n&&e.push('expandedWidth="full"')),l&&e.push('fabAction={{ icon: <AddIcon />, label: "Create", onClick: handleCreate }}'),e.push("value={activeIndex}"),e.push("onChange={setActiveIndex}"),"<Rail\n "+e.join("\n ")+"\n/>"})(),language:"JSX",wrap:!0,sx:{mt:2}})]}),r.jsx(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"45%"},flexShrink:0,alignSelf:"flex-start",minWidth:0,overflow:"hidden"},children:r.jsx(t.Box,{sx:{backgroundColor:"var(--Background)",overflow:"hidden"},children:r.jsxs(Bo,{defaultValue:0,variant:"standard",color:"primary",children:[r.jsxs(ko,{children:[r.jsx(Co,{children:"Playground"}),r.jsx(Co,{children:"Accessibility"})]}),r.jsx(wo,{value:0,children:r.jsxs(t.Box,{sx:{p:3},children:[r.jsx(t.Box,{sx:{mb:3},children:r.jsx(Ro,{theme:c,onThemeChange:d,surface:u,onSurfaceChange:x})}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"EXPANDED WIDTH"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["partial","full"].map(e=>{return r.jsx(sn,{label:(t=e,t?t.charAt(0).toUpperCase()+t.slice(1):""),selected:n===e,onClick:()=>i(e)},e);var t})})]}),r.jsxs(t.Box,{sx:{mt:3,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Expandable"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Toggle between collapsed and expanded"})]}),r.jsx(xa,{variant:"default-outline",checked:o,onChange:e=>a(e.target.checked),size:"small","aria-label":"Expandable"})]}),r.jsxs(t.Box,{sx:{mt:2,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"FAB Action"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Show create button at top"})]}),r.jsx(xa,{variant:"default-outline",checked:l,onChange:e=>s(e.target.checked),size:"small","aria-label":"FAB action"})]})]})}),r.jsx(wo,{value:1,children:r.jsx(t.Box,{sx:{p:3},children:r.jsx(t.Stack,{spacing:3,children:r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"ARIA and Semantics"}),r.jsx(t.Stack,{spacing:0,children:[{label:"Nav",value:'<nav role="navigation" aria-label="Navigation rail">'},{label:"Items",value:'role="tab" aria-selected on each item'},{label:"TabList",value:'role="tablist" aria-orientation="vertical"'},{label:"Toggle",value:'aria-label="Expand/Collapse menu"'},{label:"Focus",value:"outline: 3px solid var(--Focus-Visible); outline-offset: -3px"},{label:"Badge",value:"Visual only — announced via aria-label on parent item"}].map(({label:e,value:o})=>r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsxs(Vt,{children:[e,":"]}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:o})]},e))})]})})})})]})})})]})]})},exports.RangeSlider=Jn,exports.Rating=$n,exports.RatingInput=$n,exports.Ratio=Ai,exports.RatioShowcase=function(){const[o,a]=e.useState("1:1"),[n,i]=e.useState("solid"),[l,s]=e.useState("primary"),[c,d]=e.useState("none"),[u,x]=e.useState(!1),[p,h]=e.useState(!1),[m,f]=e.useState(null),[g,b]=e.useState("Surface");return r.jsxs(yi,{sx:{pb:8},children:[r.jsx(Pt,{children:"Ratio"}),r.jsxs(t.Grid,{container:!0,sx:{mt:2,alignItems:"flex-start",flexWrap:"wrap"},children:[r.jsxs(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"55%"},flexShrink:0,pr:{md:3}},children:[r.jsx(To,{theme:m,surface:g,children:r.jsx(yi,{sx:{width:"100%",maxWidth:480},children:r.jsx(Ai,{ratio:o,variant:n,color:l,padding:c,elevated:u,clickable:p})})}),r.jsx(na,{code:(()=>{const e=['ratio="'+o+'"'];return"default"!==n&&e.push('variant="'+n+'"'),"default"!==l&&e.push('color="'+l+'"'),"none"!==c&&e.push('padding="'+c+'"'),u&&e.push("elevated"),p&&e.push("clickable onClick={handleClick}"),"<Ratio "+e.join(" ")+">\n {/* your content */}\n</Ratio>"})(),language:"JSX",wrap:!0,sx:{mt:2}})]}),r.jsx(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"45%"},flexShrink:0,alignSelf:"flex-start",minWidth:0,overflow:"hidden"},children:r.jsx(yi,{sx:{backgroundColor:"var(--Background)",overflow:"hidden"},children:r.jsxs(Bo,{defaultValue:0,variant:"standard",color:"primary",children:[r.jsxs(ko,{children:[r.jsx(Co,{children:"Playground"}),r.jsx(Co,{children:"Reference"})]}),r.jsx(wo,{value:0,children:r.jsxs(yi,{sx:{p:3},children:[r.jsx(yi,{sx:{mb:3},children:r.jsx(Ro,{theme:m,onThemeChange:f,surface:g,onSurfaceChange:b})}),r.jsxs(yi,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"VARIANT"}),r.jsx(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:Ei.map(e=>r.jsx(Pi,{label:zi(e),selected:n===e,onClick:()=>i(e)},e))})]}),r.jsxs(yi,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"COLOR"}),r.jsx(t.Stack,{spacing:1.5,children:Ri.map(e=>r.jsxs(yi,{children:[r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:4,fontWeight:600},children:e.label}),r.jsx(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:e.colors.map(e=>r.jsx(Mi,{color:e,selected:l===e,onClick:s,variant:"default"===n?"solid":n},e))})]},e.label))})]}),r.jsxs(yi,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"PADDING"}),r.jsx(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:Li.map(e=>r.jsx(Pi,{label:"none"===e?"None":e.toUpperCase(),selected:c===e,onClick:()=>d(e)},e))})]}),r.jsxs(yi,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"RATIO"}),r.jsx(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:Ci.map(e=>r.jsx(Pi,{label:e,selected:o===e,onClick:()=>a(e)},e))})]}),r.jsxs(yi,{sx:{mt:3,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(yi,{children:[r.jsx(Jt,{children:"Elevated"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Bumps the shadow up one level"})]}),r.jsx(xa,{checked:u,onChange:e=>x(e.target.checked),size:"small","aria-label":"Elevated"})]}),r.jsxs(yi,{sx:{mt:2,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(yi,{children:[r.jsx(Jt,{children:"Clickable"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Adds hover, press, and focus-visible"})]}),r.jsx(xa,{checked:p,onChange:e=>h(e.target.checked),size:"small","aria-label":"Clickable"})]})]})}),r.jsx(wo,{value:1,children:r.jsx(yi,{sx:{p:3},children:r.jsxs(t.Stack,{spacing:3,children:[r.jsxs(yi,{sx:{p:3,backgroundColor:"var(--Background)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"Common use cases"}),r.jsx(t.Stack,{spacing:0,children:[{label:"1:1",value:"Square thumbnails, avatars, product tiles"},{label:"16:9",value:"Video, hero images, modern displays"},{label:"4:3",value:"Classic photo, presentation slides"},{label:"3:2",value:"DSLR photography, print frames"},{label:"21:9",value:"Cinematic ultrawide"},{label:"9:16 / 4:5 / 5:7",value:"Portrait social media (Stories, Reels, prints)"},{label:"16:10",value:"Laptop / monitor displays"},{label:"Golden-Horizontal",value:"φ : 1 — design framing for cards, hero blocks"},{label:"Golden-Vertical",value:"1 : φ — vertical posters, sidebars"}].map(({label:e,value:t})=>r.jsxs(yi,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsx(Vt,{children:e}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)"},children:t})]},e))})]}),r.jsxs(Gt,{color:"quiet",children:["Built on native CSS ",r.jsx("code",{children:"aspect-ratio"}),". The themed shell mirrors Box — pick a variant + color to paint the frame, or keep ",r.jsx("code",{children:'variant="default"'}),"for a borderless ratio container."]})]})})})]})})})]})]})},exports.ResponsiveStack=({breakpoint:e="sm",...t})=>r.jsx(La,{direction:{xs:"column",[e]:"row"},...t}),exports.ScrollStack=({sx:e,...t})=>r.jsx(La,{sx:{overflowY:"auto",...e},...t}),exports.SearchField=ei,exports.SearchFieldShowcase=function(){const[o,a]=e.useState("default"),[n,i]=e.useState("medium"),[l,s]=e.useState(!1),[c,d]=e.useState(!0),[u,x]=e.useState(null),[p,h]=e.useState("Surface");return r.jsxs(t.Box,{sx:{pb:8},children:[r.jsx(Pt,{children:"Search Field"}),r.jsxs(t.Grid,{container:!0,sx:{mt:2,alignItems:"flex-start",flexWrap:"wrap"},children:[r.jsxs(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"55%"},flexShrink:0,pr:{md:3}},children:[r.jsx(To,{theme:u,surface:p,children:r.jsx(t.Box,{sx:{width:"100%",maxWidth:400},children:r.jsx(ei,{color:o,size:n,disabled:l,showClearButton:c,placeholder:"Search..."})})}),r.jsx(na,{code:(()=>{const e=[];return"default"!==o&&e.push('color="'+o+'"'),"medium"!==n&&e.push('size="'+n+'"'),c||e.push("showClearButton={false}"),l&&e.push("disabled"),e.push('placeholder="Search..."'),e.push("onChange={handleSearch}"),"<SearchField\n "+e.join("\n ")+"\n/>"})(),language:"JSX",wrap:!0,sx:{mt:2}})]}),r.jsx(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"45%"},flexShrink:0,alignSelf:"flex-start",minWidth:0,overflow:"hidden"},children:r.jsx(t.Box,{sx:{backgroundColor:"var(--Background)",overflow:"hidden"},children:r.jsxs(Bo,{defaultValue:0,variant:"standard",color:"primary",children:[r.jsxs(ko,{children:[r.jsx(Co,{children:"Playground"}),r.jsx(Co,{children:"Accessibility"})]}),r.jsx(wo,{value:0,children:r.jsxs(t.Box,{sx:{p:3},children:[r.jsx(t.Box,{sx:{mb:3},children:r.jsx(Ro,{theme:u,onThemeChange:x,surface:p,onSurfaceChange:h})}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"COLOR"}),r.jsx(t.Stack,{spacing:1.5,children:ri.map(e=>r.jsxs(t.Box,{children:[r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:4,fontWeight:600},children:e.label}),r.jsx(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:e.colors.map(e=>r.jsx(ai,{color:e,selected:o===e,onClick:a},e))})]},e.label))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"SIZE"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["small","medium","large"].map(e=>r.jsx(oi,{label:ti(e),selected:n===e,onClick:()=>i(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Clear Button"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Show clear when has value"})]}),r.jsx(xa,{variant:"default-outline",checked:c,onChange:e=>d(e.target.checked),size:"small","aria-label":"Clear button"})]}),r.jsxs(t.Box,{sx:{mt:2,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Disabled"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Non-interactive state"})]}),r.jsx(xa,{variant:"default-outline",checked:l,onChange:e=>s(e.target.checked),size:"small","aria-label":"Disabled"})]})]})}),r.jsx(wo,{value:1,children:r.jsx(t.Box,{sx:{p:3},children:r.jsx(t.Stack,{spacing:3,children:r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"ARIA and Semantics"}),r.jsx(t.Stack,{spacing:0,children:[{label:"Role",value:'role="searchbox" on the input element'},{label:"Label",value:'aria-label="Search" (configurable via ariaLabel prop)'},{label:"Clear",value:'aria-label="Clear search" on clear button'},{label:"Keyboard",value:"Enter submits, Escape clears"},{label:"Focus",value:"outline: 2px solid var(--Focus-Visible); outline-offset: 2px"}].map(({label:e,value:o})=>r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsxs(Vt,{children:[e,":"]}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:o})]},e))})]})})})})]})})})]})]})},exports.SearchTextField=function({label:e="Search",placeholder:t="Type to search...",...o}){return r.jsx(Cn,{label:e,type:"search",placeholder:t,...o})},exports.SecondaryToggleButtonGroup=e=>r.jsx(kn,{variant:"secondary",...e}),exports.Section=ki,exports.SectionShowcase=function(){return r.jsxs("div",{children:[r.jsx(Pt,{style:{marginBottom:12},children:"Section"}),r.jsxs(Gt,{color:"quiet",style:{marginBottom:32,maxWidth:720},children:[r.jsx("code",{children:"<Section>"})," bundles ",r.jsx("code",{children:"data-theme"})," +"," ",r.jsx("code",{children:"data-surface"})," + background paint into one component. Use anywhere you'd otherwise reach for"," ",r.jsx("code",{children:"<section data-theme data-surface style={{ background: var(--Background) }}>"}),". For wrapping without painting (e.g. AppBar's themed zone), use"," ",r.jsx("code",{children:"<ThemedZone>"}),"."]}),r.jsx(Pt,{style:{marginTop:24,marginBottom:12},children:"Theme + surface"}),r.jsx(Vt,{color:"quiet",style:{marginBottom:16,display:"block"},children:'Sets data-theme="Primary-Light" + data-surface="Surface", paints --Background.'}),r.jsxs(ki,{theme:"Primary-Light",surface:"Surface",padding:"32px",style:{borderRadius:8},children:[r.jsx(Pt,{children:"Primary-Light surface"}),r.jsx(Gt,{children:"Body text picks up --Text automatically."}),r.jsx(Vt,{color:"quiet",children:"Quiet text picks up --Text-Quiet."}),r.jsx("div",{style:{marginTop:12},children:r.jsx(Ur,{variant:"primary",children:"Primary button"})})]}),r.jsx(Pt,{style:{marginTop:32,marginBottom:12},children:"Container surface"}),r.jsxs(ki,{surface:"Container",padding:"32px",style:{borderRadius:8},children:[r.jsx(Pt,{children:"Container surface (inherits theme)"}),r.jsx(Gt,{children:"Useful for card-like regions."})]}),r.jsx(Pt,{style:{marginTop:32,marginBottom:12},children:"Different element"}),r.jsxs(Vt,{color:"quiet",style:{marginBottom:16,display:"block"},children:["Pass ",r.jsx("code",{children:'as="article"'}),", ",r.jsx("code",{children:'as="footer"'}),", etc."]}),r.jsxs(ki,{as:"article",theme:"Neutral-Dark",surface:"Surface",padding:"32px",style:{borderRadius:8},children:[r.jsx(Pt,{children:"Neutral-Dark article"}),r.jsx(Gt,{children:"Renders as an <article> element."})]})]})},exports.Select=fo,exports.SelectShowcase=function(){const[o,a]=e.useState("outline"),[n,i]=e.useState("default"),[l,s]=e.useState("medium"),[c,d]=e.useState("top"),[u,x]=e.useState("Fruit"),[p,h]=e.useState(!1),[m,f]=e.useState(!1),[g,b]=e.useState(!0),[v,y]=e.useState(!1),[j,S]=e.useState("Search"),[B,k]=e.useState(""),[C,w]=e.useState(null),[T,I]=e.useState("Surface"),[A,z]=e.useState(!1),[R,E]=e.useState(!0);return r.jsxs(t.Box,{sx:{pb:8},children:[r.jsx(Pt,{children:"Select"}),r.jsxs(t.Grid,{container:!0,sx:{mt:2,alignItems:"flex-start",flexWrap:"wrap"},children:[r.jsxs(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"55%"},flexShrink:0,pr:{md:3}},children:[r.jsx(To,{theme:C,surface:T,children:r.jsx(t.Box,{sx:{width:"100%",maxWidth:360},children:r.jsx(fo,{variant:o,color:n,size:l,label:u,labelPosition:c,mode:A?"color":void 0,showColorLabels:A?R:void 0,options:A?An:In,value:B,onChange:k,showDividers:p,disabled:m,fullWidth:g,startDecoration:v?(()=>{const e=dt[j]||dt.Search;return r.jsx(dr,{size:"small",children:r.jsx(e,{})})})():void 0})})}),r.jsx(na,{code:(()=>{const e=[];return"outline"!==o&&e.push('variant="'+o+'"'),"default"!==n&&e.push('color="'+n+'"'),"medium"!==l&&e.push('size="'+l+'"'),u&&e.push('label="'+u+'"'),"top"!==c&&e.push('labelPosition="'+c+'"'),A&&e.push('mode="color"'),A&&!R&&e.push("showColorLabels={false}"),p&&e.push("showDividers"),m&&e.push("disabled"),g&&e.push("fullWidth"),v&&e.push("startDecoration={<Icon><"+j+"Icon /></Icon>}"),e.push("options={options}"),e.push("value={value}"),e.push("onChange={setValue}"),"<Select\n "+e.join("\n ")+"\n/>"})(),language:"JSX",wrap:!0,sx:{mt:2}})]}),r.jsx(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"45%"},flexShrink:0,alignSelf:"flex-start",minWidth:0,overflow:"hidden"},children:r.jsx(t.Box,{sx:{backgroundColor:"var(--Background)",overflow:"hidden"},children:r.jsxs(Bo,{defaultValue:0,variant:"standard",color:"primary",children:[r.jsxs(ko,{children:[r.jsx(Co,{children:"Playground"}),r.jsx(Co,{children:"Accessibility"})]}),r.jsx(wo,{value:0,children:r.jsxs(t.Box,{sx:{p:3},children:[r.jsx(t.Box,{sx:{mb:3},children:r.jsx(Ro,{theme:C,onThemeChange:w,surface:T,onSurfaceChange:I})}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"STYLE"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["outline","light"].map(e=>r.jsx(zn,{label:wn(e),selected:o===e,onClick:()=>a(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"COLOR"}),r.jsx(t.Stack,{spacing:1.5,children:Tn.map(e=>r.jsxs(t.Box,{children:[r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:4,fontWeight:600},children:e.label}),r.jsx(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:e.colors.map(e=>r.jsx(Rn,{color:e,selected:n===e,onClick:i},e))})]},e.label))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"SIZE"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["small","medium","large"].map(e=>r.jsx(zn,{label:wn(e),selected:l===e,onClick:()=>s(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"LABEL"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["top","floating","none"].map(e=>r.jsx(zn,{label:"none"===e?"None":wn(e),selected:c===e,onClick:()=>d(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Start Icon"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Icon rendered before the value"})]}),r.jsx(xa,{checked:v,onChange:e=>y(e.target.checked),size:"small","aria-label":"Start icon"})]}),v&&r.jsxs(t.Box,{sx:{mt:2},children:[r.jsx(xo,{label:"Icon Name",value:j,onChange:e=>S(e.target.value),placeholder:"Search",variant:"primary-outline",size:"small",fullWidth:!0}),r.jsxs(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginTop:4},children:[r.jsx("a",{href:"https://mui.com/material-ui/material-icons/",target:"_blank",rel:"noopener noreferrer",style:{color:"var(--Hotlink)"},children:"Material icon"})," name (e.g. Search, Add, Edit, Filter, Sort, Star)"]})]}),r.jsxs(t.Box,{sx:{mt:2,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Dividers"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Lines between options"})]}),r.jsx(xa,{checked:p,onChange:e=>h(e.target.checked),size:"small","aria-label":"Show dividers"})]}),r.jsxs(t.Box,{sx:{mt:2,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Disabled"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Non-interactive state"})]}),r.jsx(xa,{checked:m,onChange:e=>f(e.target.checked),size:"small","aria-label":"Disabled"})]}),r.jsxs(t.Box,{sx:{mt:2,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Color Mode"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Render swatches alongside each option. Swatch size scales to Select height, radius follows the brand's button radius."})]}),r.jsx(xa,{checked:A,onChange:e=>z(e.target.checked),size:"small","aria-label":"Color mode"})]}),A&&r.jsxs(t.Box,{sx:{mt:2,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Show Color Labels"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Hide to render a swatch-only trigger (no text). Useful for compact color pickers."})]}),r.jsx(xa,{checked:R,onChange:e=>E(e.target.checked),size:"small","aria-label":"Show color labels"})]}),r.jsxs(t.Box,{sx:{mt:2,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Full Width"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Stretch to container width"})]}),r.jsx(xa,{checked:g,onChange:e=>b(e.target.checked),size:"small","aria-label":"Full width"})]})]})}),r.jsx(wo,{value:1,children:r.jsx(t.Box,{sx:{p:3},children:r.jsx(t.Stack,{spacing:3,children:r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"ARIA and Semantics"}),r.jsx(t.Stack,{spacing:0,children:[{label:"Trigger",value:'role="combobox" aria-expanded="true|false" aria-haspopup="listbox"'},{label:"Dropdown",value:'role="listbox" aria-label="..."'},{label:"Options",value:'role="option" aria-selected="true|false"'},{label:"Label",value:"aria-label from label prop. Always provide a label."},{label:"Keyboard",value:"Enter/Space opens. Escape closes. Arrow keys when open."},{label:"Focus",value:"outline: 2px solid var(--Focus-Visible); outline-offset: 2px (on outer shell)"}].map(({label:e,value:o})=>r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsxs(Vt,{children:[e,":"]}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:o})]},e))})]})})})})]})})})]})]})},exports.SelectableCard=e=>r.jsx(Qa,{clickable:!0,selected:e.selected,...e}),exports.SettingsPanel=function(){const{mode:o,switchMode:a}=function(t="light"){const[r,o]=e.useState(t);return e.useEffect(()=>{nm("/styles/foundation.css","css-foundation"),nm("/styles/core.css","css-core"),nm("/styles/Light-Mode.css","css-mode"),nm("/styles/base.css","css-base"),nm("/styles/typography-tokens.css","css-typography-tokens")},[]),{mode:r,switchMode:e=>{const t=document.getElementById("css-mode");t&&(t.href="dark"===e?"/styles/Dark-Mode.css":"/styles/Light-Mode.css"),o(e),localStorage.setItem("themeMode",e)}}}("light"),[n,i]=e.useState(!1),[l,s]=e.useState("desktop");e.useEffect(()=>{const e=localStorage.getItem("dino-platform")||"desktop",t=localStorage.getItem("themeMode")||"light";s(e),document.documentElement.style.setProperty("--Button-Height",lm[e]||"32px"),"dark"===t&&a("dark")},[]);const c=e=>{s(e),localStorage.setItem("dino-platform",e),document.documentElement.style.setProperty("--Button-Height",lm[e]||"32px")};return r.jsxs(r.Fragment,{children:[r.jsx(t.Box,{onClick:()=>i(!0),role:"button","aria-label":"Open settings",sx:{position:"fixed",bottom:24,right:24,width:52,height:52,borderRadius:"50%",backgroundColor:"var(--Buttons-Tertiary-Button)",color:"var(--Buttons-Tertiary-Text)",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxShadow:"0 4px 12px rgba(0,0,0,0.15)",zIndex:999,transition:"transform 0.15s ease, box-shadow 0.15s ease","&:hover":{transform:"scale(1.08)",boxShadow:"0 6px 16px rgba(0,0,0,0.2)"}},children:r.jsx(ye.Settings,{sx:{fontSize:24}})}),r.jsx(ks,{anchor:"right",open:n,onClose:()=>i(!1),hideBackdrop:!0,size:"small",sx:{width:320,zIndex:99999999},children:r.jsxs(t.Box,{sx:{p:3,height:"100%",display:"flex",flexDirection:"column"},children:[r.jsxs(t.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[r.jsx(Ot,{children:"Settings"}),r.jsx(Ur,{iconOnly:!0,variant:"ghost",size:"small",onClick:()=>i(!1),"aria-label":"Close settings",children:r.jsx(ye.Close,{fontSize:"small"})})]}),r.jsx(t.Divider,{sx:{mb:3,borderColor:"var(--Border)"}}),r.jsx(t.Box,{sx:{flex:1,overflowY:"auto"},children:r.jsxs(t.Stack,{spacing:4,children:[r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text)",opacity:.85,display:"block",marginBottom:12,fontWeight:600},children:"MODE"}),r.jsxs(t.Stack,{direction:"row",spacing:1,children:[r.jsx(Ur,{variant:"light"===o?"primary":"primary-outline",size:"small",onClick:()=>a("light"),sx:{flex:1},children:"Light"}),r.jsx(Ur,{variant:"dark"===o?"primary":"primary-outline",size:"small",onClick:()=>a("dark"),sx:{flex:1},children:"Dark"})]})]}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text)",opacity:.85,display:"block",marginBottom:12,fontWeight:600},children:"PLATFORM"}),r.jsx(t.Stack,{spacing:1,children:im.map(({value:e,label:o,note:a})=>{const n=l===e;return r.jsxs(t.Box,{onClick:()=>c(e),sx:{p:1.5,borderRadius:"var(--Style-Border-Radius)",cursor:"pointer",border:n?"2px solid var(--Buttons-Primary-Button)":"1px solid var(--Border)",backgroundColor:n?"var(--Background)":"transparent",display:"flex",justifyContent:"space-between",alignItems:"center",transition:"all 0.15s ease","&:hover":{backgroundColor:"var(--Hover)"}},children:[r.jsxs(t.Box,{children:[r.jsx(Vt,{style:{color:n?"var(--Buttons-Primary-Button)":"var(--Text)",fontWeight:n?600:400},children:o}),r.jsx(Kt,{style:{color:"var(--Text)",opacity:.7},children:a})]}),n&&r.jsx(t.Box,{sx:{width:8,height:8,borderRadius:"50%",backgroundColor:"var(--Buttons-Primary-Button)",flexShrink:0}})]},e)})})]})]})}),r.jsx(t.Divider,{sx:{my:3,borderColor:"var(--Border)"}}),r.jsx(Ur,{variant:"primary-outline",size:"small",onClick:()=>{c("desktop"),a("light")},sx:{width:"100%"},children:"Reset to Defaults"})]})})]})},exports.Sidebar=function({open:o,onClose:a,items:n=[],onItemClick:i,width:l=280,variant:s="temporary",header:c,footer:d,sx:u={},...p}){const[h,m]=e.useState(null),[f,g]=e.useState({}),b=(e,t)=>{m(t),i?.(e),"temporary"===s&&a?.()},v="permanent"===s?"permanent":"standard"===s?"standard":"temporary",y=r.jsxs(t.Box,{sx:{display:"flex",flexDirection:"column",height:"100%",backgroundColor:"var(--Container)",color:"var(--Text)"},children:[c&&r.jsx(t.Box,{sx:{p:2,borderBottom:"1px solid var(--Border-Variant)"},children:"string"==typeof c?r.jsx(t.Typography,{variant:"h6",sx:{fontWeight:700},children:c}):c}),r.jsx(t.List,{sx:{flex:1,overflow:"auto",py:1},children:n.map((e,o)=>{const a=h===o,n=e.submenu&&e.submenu.length>0,i=f[o];return r.jsxs(t.Box,{children:[r.jsx(t.Tooltip,{title:e.tooltip||"",placement:"right",children:r.jsx(t.ListItem,{disablePadding:!0,children:r.jsxs(t.ListItemButton,{onClick:()=>{n?(e=>{g(t=>({...t,[e]:!t[e]}))})(o):b(e,o)},selected:a&&!n,sx:{backgroundColor:a&&!n?"var(--Buttons-Primary-Button)":"transparent",color:a&&!n?"var(--Buttons-Primary-Text)":"var(--Text)","&:hover":{backgroundColor:a&&!n?"var(--Buttons-Primary-Button)":"var(--Container-High)"},"&.Mui-selected":{backgroundColor:"var(--Buttons-Primary-Button)",color:"var(--Buttons-Primary-Text)","&:hover":{backgroundColor:"var(--Buttons-Primary-Button)"}},transition:"all 0.2s ease-in-out"},children:[e.icon&&r.jsx(t.ListItemIcon,{sx:{color:a&&!n?"var(--Buttons-Primary-Text)":"var(--Icons-Primary)",minWidth:40},children:e.badge?r.jsx(t.Badge,{badgeContent:e.badge,color:"error",children:e.icon}):e.icon}),r.jsx(t.ListItemText,{primary:e.label,primaryTypographyProps:{variant:"body2",fontWeight:a&&!n?600:500}}),n&&r.jsx(t.Box,{sx:{ml:1},children:i?r.jsx(Le,{}):r.jsx(x,{})})]})})}),n&&r.jsx(t.Collapse,{in:i,timeout:"auto",unmountOnExit:!0,children:r.jsx(t.List,{component:"div",disablePadding:!0,children:e.submenu.map((e,o)=>r.jsx(t.ListItem,{disablePadding:!0,children:r.jsxs(t.ListItemButton,{onClick:()=>b(e,o),sx:{pl:4,backgroundColor:"transparent",color:"var(--Text)","&:hover":{backgroundColor:"var(--Container-High)"},"&.Mui-selected":{backgroundColor:"var(--Buttons-Primary-Button)",color:"var(--Buttons-Primary-Text)"}},children:[e.icon&&r.jsx(t.ListItemIcon,{sx:{color:"var(--Icons-Primary)",minWidth:40},children:e.icon}),r.jsx(t.ListItemText,{primary:e.label})]})},o))})}),e.divider&&r.jsx(t.Divider,{sx:{my:1,borderColor:"var(--Border-Variant)"}})]},o)})}),d&&r.jsx(t.Box,{sx:{borderTop:"1px solid var(--Border-Variant)",p:2},children:"string"==typeof d?r.jsx(t.Typography,{variant:"caption",sx:{color:"var(--Text-Quiet)"},children:d}):d})]});return"permanent"===s?r.jsx(t.Box,{sx:{width:l,flexShrink:0,...u},children:y}):r.jsx(t.Drawer,{variant:v,open:o,onClose:a,PaperProps:{sx:{width:l,backgroundColor:"var(--Container)",color:"var(--Text)",...u}},...p,children:y})},exports.Slider=Kn,exports.SliderInput=Kn,exports.Snackbar=qx,exports.SnackbarShowcase=function(){const[o,a]=e.useState("light"),[n,i]=e.useState("info"),[l,s]=e.useState("medium"),[c,d]=e.useState("bottom"),[u,x]=e.useState(!0),[p,h]=e.useState(!0),[m,f]=e.useState(!1),[g,b]=e.useState(null),[v,y]=e.useState("Surface"),j=u&&Kx[n]?r.jsx(dr,{size:"small",sx:{color:"inherit"},children:Kx[n]}):void 0;return r.jsxs(t.Box,{sx:{pb:8},children:[r.jsx(Pt,{children:"Snackbar"}),r.jsxs(t.Grid,{container:!0,sx:{mt:2,alignItems:"flex-start",flexWrap:"wrap"},children:[r.jsxs(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"55%"},flexShrink:0,pr:{md:3}},children:[r.jsx(To,{theme:g,surface:v,children:r.jsx(Ur,{variant:"default",onClick:()=>f(!0),children:"Show Snackbar"})}),r.jsx(na,{code:(()=>{const e=["open={open}"];return e.push('variant="'+o+'"'),"info"!==n&&e.push('color="'+n+'"'),"medium"!==l&&e.push('size="'+l+'"'),"bottom"!==c&&e.push('anchor="top"'),p&&e.push("onClose={handleClose}"),u&&Kx[n]&&e.push("startDecorator={<Icon><"+Ux(n)+"Icon /></Icon>}"),"<Snackbar\n "+e.join("\n ")+"\n>\n Operation completed successfully.\n</Snackbar>"})(),language:"JSX",wrap:!0,sx:{mt:2}}),r.jsx(qx,{open:m,onClose:p?()=>f(!1):void 0,variant:o,color:n,size:l,anchor:c,autoHideDuration:4e3,startDecorator:j,children:"Operation completed successfully."})]}),r.jsx(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"45%"},flexShrink:0,alignSelf:"flex-start",minWidth:0,overflow:"hidden"},children:r.jsx(t.Box,{sx:{backgroundColor:"var(--Background)",overflow:"hidden"},children:r.jsxs(Bo,{defaultValue:0,variant:"standard",color:"primary",children:[r.jsxs(ko,{children:[r.jsx(Co,{children:"Playground"}),r.jsx(Co,{children:"Accessibility"})]}),r.jsx(wo,{value:0,children:r.jsxs(t.Box,{sx:{p:3},children:[r.jsx(t.Box,{sx:{mb:3},children:r.jsx(Ro,{theme:g,onThemeChange:b,surface:v,onSurfaceChange:y})}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"STYLE"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["solid","light"].map(e=>r.jsx(Jx,{label:Ux(e),selected:o===e,onClick:()=>a(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"COLOR"}),r.jsx(t.Stack,{spacing:1.5,children:Xx.map(e=>r.jsxs(t.Box,{children:[r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:4,fontWeight:600},children:e.label}),r.jsx(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:e.colors.map(e=>r.jsx(Yx,{color:e,selected:n===e,onClick:i},e))})]},e.label))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"SIZE"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["small","medium","large"].map(e=>r.jsx(Jx,{label:Ux(e),selected:l===e,onClick:()=>s(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"ANCHOR"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["top","bottom"].map(e=>r.jsx(Jx,{label:Ux(e),selected:c===e,onClick:()=>d(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Show Icon"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Start decorator icon"})]}),r.jsx(xa,{variant:"default-outline",checked:u,onChange:e=>x(e.target.checked),size:"small","aria-label":"Show icon"})]}),r.jsxs(t.Box,{sx:{mt:2,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Close Button"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Show dismiss button"})]}),r.jsx(xa,{variant:"default-outline",checked:p,onChange:e=>h(e.target.checked),size:"small","aria-label":"Close button"})]})]})}),r.jsx(wo,{value:1,children:r.jsx(t.Box,{sx:{p:3},children:r.jsx(t.Stack,{spacing:3,children:r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"ARIA and Semantics"}),r.jsx(t.Stack,{spacing:0,children:[{label:"Role",value:'role="alert" aria-live="polite" aria-atomic="true"'},{label:"Close",value:'Button with aria-label="Close notification"'},{label:"Keyboard",value:"Escape closes. Auto-hides after duration."},{label:"Hover",value:"Pauses auto-hide timer on mouse enter"},{label:"Border",value:"var(--Buttons-{Color}-Border) on outer shell"},{label:"Shadow",value:"var(--Effect-Level-3)"}].map(({label:e,value:o})=>r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsxs(Vt,{children:[e,":"]}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:o})]},e))})]})})})})]})})})]})]})},exports.SolidTreeView=e=>r.jsx(Rx,{variant:"solid",...e}),exports.SpaceBetweenStack=e=>r.jsx(La,{direction:"row",alignItems:"center",justifyContent:"space-between",...e}),exports.Spacing=function(){const e=({name:e,varName:o,baseValue:a})=>r.jsx(t.Box,{sx:{mb:2},children:r.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",gap:2,mb:1},children:[r.jsx(t.Box,{"aria-hidden":"true",sx:{width:`var(${o})`,minWidth:20,height:24,backgroundColor:"var(--Buttons-Primary-Button)",borderRadius:.5,border:"1px solid var(--Border)"}}),r.jsxs(t.Stack,{spacing:.5,children:[r.jsx(t.Typography,{variant:"subtitle2",sx:{fontWeight:600},children:e}),r.jsx(t.Typography,{variant:"caption",sx:{color:"var(--Text-Secondary)"},children:o}),r.jsxs(t.Typography,{variant:"caption",sx:{color:"var(--Text-Secondary)"},children:["Base: ",a," (with cognitive multiplier)"]})]})]})}),o=({name:e,varName:o,value:a})=>r.jsxs(t.Box,{sx:{mb:2},children:[r.jsx(t.Box,{"aria-hidden":"true",sx:{width:100,height:a,backgroundColor:"var(--Buttons-Primary-Button)",borderRadius:1,border:"1px solid var(--Border)",mb:1}}),r.jsx(t.Typography,{variant:"subtitle2",sx:{fontWeight:600},children:e}),r.jsx(t.Typography,{variant:"caption",sx:{color:"var(--Text-Secondary)",display:"block"},children:o}),r.jsx(t.Typography,{variant:"caption",sx:{color:"var(--Text-Secondary)"},children:a})]});return r.jsxs(t.Stack,{spacing:3,sx:{p:2},children:[r.jsxs("section",{children:[r.jsx(t.Typography,{variant:"h5",component:"h2",sx:{mb:2,fontWeight:700},children:"Spacing Scale"}),r.jsx(t.Typography,{variant:"body2",sx:{mb:3,color:"var(--Text-Secondary)"},children:"Spacing values are multiplied by the cognitive multiplier for accessibility. Each spacing value includes a visual reference and text label for clarity."}),r.jsx(t.Stack,{spacing:1,children:[{name:"Quarter",var:"--Spacing-Quarter",baseValue:"2px"},{name:"Half",var:"--Spacing-Half",baseValue:"4px"},{name:"1-and-Half",var:"--Spacing-1-and-Half",baseValue:"12px"},{name:"1",var:"--Spacing-1",baseValue:"8px"},{name:"2",var:"--Spacing-2",baseValue:"16px"},{name:"3",var:"--Spacing-3",baseValue:"24px"},{name:"4",var:"--Spacing-4",baseValue:"32px"},{name:"5",var:"--Spacing-5",baseValue:"40px"},{name:"6",var:"--Spacing-6",baseValue:"48px"},{name:"7",var:"--Spacing-7",baseValue:"56px"},{name:"8",var:"--Spacing-8",baseValue:"64px"},{name:"9",var:"--Spacing-9",baseValue:"72px"},{name:"10",var:"--Spacing-10",baseValue:"80px"}].map(t=>r.jsx(e,{name:t.name,varName:t.var,baseValue:t.baseValue},t.var))})]}),r.jsxs("section",{children:[r.jsx(t.Typography,{variant:"h5",component:"h2",sx:{mb:2,fontWeight:700},children:"Sizing Scale"}),r.jsx(t.Typography,{variant:"body2",sx:{mb:3,color:"var(--Text-Secondary)"},children:"Fixed sizing values for components and layouts. Each size is labeled with its CSS variable and pixel value."}),r.jsx(t.Grid,{container:!0,spacing:3,children:[{name:"Quarter",var:"--Sizing-Quarter",value:"2px"},{name:"Half",var:"--Sizing-Half",value:"4px"},{name:"1-and-Half",var:"--Sizing-1-and-Half",value:"12px"},{name:"1",var:"--Sizing-1",value:"8px"},{name:"2",var:"--Sizing-2",value:"16px"},{name:"3",var:"--Sizing-3",value:"24px"},{name:"4",var:"--Sizing-4",value:"32px"},{name:"5",var:"--Sizing-5",value:"40px"},{name:"6",var:"--Sizing-6",value:"48px"},{name:"7",var:"--Sizing-7",value:"56px"},{name:"8",var:"--Sizing-8",value:"64px"},{name:"9",var:"--Sizing-9",value:"72px"},{name:"10",var:"--Sizing-10",value:"80px"},{name:"11",var:"--Sizing-11",value:"88px"},{name:"12",var:"--Sizing-12",value:"96px"},{name:"13",var:"--Sizing-13",value:"104px"},{name:"14",var:"--Sizing-14",value:"112px"},{name:"15",var:"--Sizing-15",value:"160px"},{name:"16",var:"--Sizing-16",value:"240px"},{name:"17",var:"--Sizing-17",value:"320px"},{name:"18",var:"--Sizing-18",value:"480px"}].map(e=>r.jsx(t.Grid,{item:!0,xs:12,sm:6,md:4,lg:3,children:r.jsx(o,{name:e.name,varName:e.var,value:e.value})},e.var))})]}),r.jsxs("section",{children:[r.jsx(t.Typography,{variant:"h5",component:"h2",sx:{mb:2,fontWeight:700},children:"Negative Sizing"}),r.jsx(t.Typography,{variant:"body2",sx:{mb:3,color:"var(--Text-Secondary)"},children:"Negative values for margins and offsets. Use these to reduce or remove default spacing when needed."}),r.jsx(t.Grid,{container:!0,spacing:3,children:[{name:"Negative-Quarter",var:"--Sizing-Negative-Quarter",value:"-2px"},{name:"Negative-Half",var:"--Sizing-Negative-Half",value:"-4px"},{name:"Negative-1-and-Half",var:"--Sizing-Negative-1-and-Half",value:"-12px"},{name:"Negative-1",var:"--Sizing-Negative-1",value:"-8px"}].map(e=>r.jsx(t.Grid,{item:!0,xs:12,sm:6,md:4,lg:3,children:r.jsxs(t.Box,{children:[r.jsx(t.Typography,{variant:"subtitle2",sx:{fontWeight:600},children:e.name}),r.jsx(t.Typography,{variant:"caption",sx:{color:"var(--Text-Secondary)",display:"block"},children:e.var}),r.jsx(t.Typography,{variant:"caption",sx:{color:"var(--Text-Secondary)"},children:e.value})]})},e.var))})]}),r.jsxs("section",{style:{paddingTop:24,borderTop:"1px solid var(--Border)"},children:[r.jsx(t.Typography,{variant:"h5",component:"h2",sx:{mb:2,fontWeight:700},children:"Container Padding"}),r.jsxs(t.Box,{sx:{p:"var(--Spacing-3)",backgroundColor:"var(--Container-Low)",border:"2px dashed var(--Buttons-Primary-Button)",borderRadius:1},children:[r.jsxs(t.Typography,{variant:"body2",children:["Default container padding: ",r.jsx("strong",{children:"var(--Spacing-3)"})," = 24px"]}),r.jsx(t.Typography,{variant:"caption",sx:{color:"var(--Text-Secondary)",display:"block",mt:1},children:"Use this variable for consistent padding around main content areas."})]})]}),r.jsxs("section",{style:{paddingTop:24,borderTop:"1px solid var(--Border)"},children:[r.jsx(t.Typography,{variant:"h5",component:"h2",sx:{mb:3,fontWeight:700},children:"Practical Examples"}),r.jsxs("article",{children:[r.jsx(t.Typography,{variant:"h6",component:"h3",sx:{mb:2,fontWeight:600},children:"Padding Examples"}),r.jsx(t.Typography,{variant:"caption",sx:{color:"var(--Text-Secondary)",mb:2,display:"block"},children:"Different padding values create different visual breathing room."}),r.jsx(t.Grid,{container:!0,spacing:2,sx:{mb:4},children:["var(--Spacing-1)","var(--Spacing-2)","var(--Spacing-3)","var(--Spacing-4)"].map(e=>r.jsx(t.Grid,{item:!0,xs:12,sm:6,children:r.jsxs(t.Box,{sx:{p:e,backgroundColor:"var(--Container)",border:"1px solid var(--Border)",borderRadius:1},children:[r.jsxs(t.Typography,{variant:"subtitle2",children:["Padding: ",e]}),r.jsx(t.Typography,{variant:"caption",sx:{display:"block",mt:1,color:"var(--Text-Secondary)"},children:"Content with spacing applied"})]})},e))})]}),r.jsxs("article",{children:[r.jsx(t.Typography,{variant:"h6",component:"h3",sx:{mb:2,fontWeight:600},children:"Gap Examples"}),r.jsx(t.Typography,{variant:"caption",sx:{color:"var(--Text-Secondary)",mb:2,display:"block"},children:"Gap controls spacing between flex/grid children without adding extra elements."}),r.jsx(t.Stack,{spacing:3,children:["var(--Spacing-1)","var(--Spacing-2)","var(--Spacing-3)"].map(e=>r.jsxs(t.Box,{children:[r.jsx(t.Stack,{direction:"row",spacing:e,sx:{mb:1},children:[1,2,3].map(e=>r.jsx(t.Box,{"aria-hidden":"true",sx:{width:60,height:60,backgroundColor:"var(--Buttons-Primary-Button)",borderRadius:1,flexShrink:0}},e))}),r.jsxs(t.Typography,{variant:"caption",sx:{color:"var(--Text-Secondary)"},children:["Gap: ",e]})]},e))})]})]}),r.jsxs(t.Box,{role:"note",sx:{p:2,backgroundColor:"var(--Container-Low)",borderRadius:1,borderLeft:"4px solid var(--Buttons-Primary-Button)",mt:3},children:[r.jsx(t.Typography,{variant:"subtitle2",sx:{fontWeight:600,mb:1},children:"✓ Accessibility Best Practices Used"}),r.jsxs("ul",{style:{margin:"0.5rem 0",paddingLeft:"1.5rem"},children:[r.jsx("li",{children:r.jsxs(t.Typography,{variant:"caption",children:[r.jsx("strong",{children:'aria-hidden="true"'})," on purely decorative visual elements"]})}),r.jsx("li",{children:r.jsx(t.Typography,{variant:"caption",children:"All spacing information conveyed through text labels and values"})}),r.jsx("li",{children:r.jsxs(t.Typography,{variant:"caption",children:["No empty decorative ",r.jsx("code",{children:"<div>"})," elements in DOM"]})}),r.jsx("li",{children:r.jsxs(t.Typography,{variant:"caption",children:["Semantic HTML: ",r.jsx("code",{children:"<section>"})," and ",r.jsx("code",{children:"<article>"})," for structure"]})}),r.jsx("li",{children:r.jsx(t.Typography,{variant:"caption",children:"CSS-based spacing (padding/margin) for actual layout, not decorative divs"})}),r.jsx("li",{children:r.jsx(t.Typography,{variant:"caption",children:"Full keyboard navigation and screen reader support"})})]})]})]})},exports.SpeedDial=Pl,exports.SpeedDialShowcase=function(){const[o,a]=e.useState("solid"),[n,i]=e.useState("default"),[l,s]=e.useState("up"),[c,d]=e.useState(!0),[u,x]=e.useState(null),[p,h]=e.useState("Surface");return r.jsxs(t.Box,{sx:{pb:8},children:[r.jsx(Pt,{children:"Speed Dial"}),r.jsxs(t.Grid,{container:!0,sx:{mt:2,alignItems:"flex-start",flexWrap:"wrap"},children:[r.jsxs(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"55%"},flexShrink:0,pr:{md:3}},children:[r.jsx(To,{theme:u,surface:p,sx:{minHeight:300,alignItems:"flex-end",justifyContent:"center"},children:r.jsx(Pl,{variant:o,color:n,direction:l,showTooltips:c,actions:Dl,ariaLabel:"Quick actions"})}),r.jsx(na,{code:(()=>{const e=[];return"solid"!==o&&e.push('variant="'+o+'"'),"default"!==n&&e.push('color="'+n+'"'),"up"!==l&&e.push('direction="'+l+'"'),c||e.push("showTooltips={false}"),e.push("actions={actions}"),e.push('ariaLabel="Quick actions"'),"<SpeedDial\n "+e.join("\n ")+"\n/>"})(),language:"JSX",wrap:!0,sx:{mt:2}})]}),r.jsx(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"45%"},flexShrink:0,alignSelf:"flex-start",minWidth:0,overflow:"hidden"},children:r.jsx(t.Box,{sx:{backgroundColor:"var(--Background)",overflow:"hidden"},children:r.jsxs(Bo,{defaultValue:0,variant:"standard",color:"primary",children:[r.jsxs(ko,{children:[r.jsx(Co,{children:"Playground"}),r.jsx(Co,{children:"Accessibility"})]}),r.jsx(wo,{value:0,children:r.jsxs(t.Box,{sx:{p:3},children:[r.jsx(t.Box,{sx:{mb:3},children:r.jsx(Ro,{theme:u,onThemeChange:x,surface:p,onSurfaceChange:h})}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"STYLE"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["solid","outline"].map(e=>r.jsx(Wl,{label:Ml(e),selected:o===e,onClick:()=>a(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"COLOR"}),r.jsx(t.Stack,{spacing:1.5,children:Ol.map(e=>r.jsxs(t.Box,{children:[r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:4,fontWeight:600},children:e.label}),r.jsx(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:e.colors.map(e=>r.jsx(Fl,{color:e,selected:n===e,onClick:i},e))})]},e.label))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"DIRECTION"}),r.jsx(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:["up","down","left","right"].map(e=>r.jsx(Wl,{label:Ml(e),selected:l===e,onClick:()=>s(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Tooltips"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Show labels beside actions"})]}),r.jsx(xa,{variant:"default-outline",checked:c,onChange:e=>d(e.target.checked),size:"small","aria-label":"Show tooltips"})]})]})}),r.jsx(wo,{value:1,children:r.jsx(t.Box,{sx:{p:3},children:r.jsx(t.Stack,{spacing:3,children:r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"ARIA and Semantics"}),r.jsx(t.Stack,{spacing:0,children:[{label:"FAB",value:'aria-expanded, aria-haspopup="menu", aria-label'},{label:"Actions",value:'role="menu" container, role="menuitem" on each action'},{label:"Labels",value:"aria-label on each action from name prop"},{label:"Keyboard",value:"Escape closes. Click outside closes."},{label:"Focus",value:"outline: 3px solid var(--Focus-Visible); outline-offset: 2px"}].map(({label:e,value:o})=>r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsxs(Vt,{children:[e,":"]}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:o})]},e))})]})})})})]})})})]})]})},exports.Stack=Da,exports.StackDivider=e=>r.jsx(t.Box,{sx:{borderBottom:"1px solid var(--Border)",width:"100%"},...e}),exports.StackShowcase=function(){return r.jsxs(t.Box,{sx:{pb:8},children:[r.jsx(Pt,{children:"Stack"}),r.jsx(Gt,{style:{color:"var(--Text-Quiet)",marginTop:8,marginBottom:32,maxWidth:640},children:"OmniStack is a layout primitive built on MUI Stack with one intelligent addition: it automatically enforces a minimum gap between children when it detects small (24px) interactive components — protecting WCAG 2.5.8 compliance without any extra developer effort."}),r.jsxs(Bo,{defaultValue:0,variant:"standard",color:"primary",children:[r.jsxs(ko,{children:[r.jsx(Co,{children:"Why it matters"}),r.jsx(Co,{children:"Playground"}),r.jsx(Co,{children:"API"})]}),r.jsx(wo,{value:0,children:r.jsxs(t.Box,{sx:{pt:3,display:"flex",flexDirection:"column",gap:4},children:[r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",border:"1px solid var(--Border)",borderRadius:"var(--Style-Border-Radius)"},children:[r.jsx(Pt,{children:"The problem"}),r.jsx(Gt,{style:{color:"var(--Text-Quiet)",marginTop:8,marginBottom:16},children:"WCAG 2.5.8 requires that small interactive targets (24px) have enough surrounding space that they don’t overlap adjacent targets. Every layout library leaves this entirely to the developer — meaning it’s silently violated constantly."}),r.jsx(bi,{leftLabel:"Plain MUI Stack — gap too small",rightLabel:"OmniStack — gap auto-enforced",leftPasses:!1,rightPasses:!0,leftContent:r.jsxs(t.Box,{sx:{display:"flex",flexDirection:"column",gap:"4px"},children:[r.jsx(hi,{href:"#",size:"small",children:"Terms of Service"}),r.jsx(hi,{href:"#",size:"small",children:"Privacy Policy"}),r.jsx(hi,{href:"#",size:"small",children:"Cookie Settings"})]}),rightContent:r.jsxs(La,{gap:.5,children:[r.jsx(hi,{href:"#",size:"small",children:"Terms of Service"}),r.jsx(hi,{href:"#",size:"small",children:"Privacy Policy"}),r.jsx(hi,{href:"#",size:"small",children:"Cookie Settings"})]}),leftCode:'<Stack gap={0.5}>\n <Link size="small">Terms of Service</Link>\n <Link size="small">Privacy Policy</Link>\n <Link size="small">Cookie Settings</Link>\n</Stack>\n// ⚠ gap=4px — targets overlap',rightCode:'<OmniStack gap={0.5}>\n <Link size="small">Terms of Service</Link>\n <Link size="small">Privacy Policy</Link>\n <Link size="small">Cookie Settings</Link>\n</OmniStack>\n// ✓ small child detected → gap enforced'})]}),r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",border:"1px solid var(--Border)",borderRadius:"var(--Style-Border-Radius)"},children:[r.jsx(Pt,{children:"Mixed component sizes"}),r.jsx(Gt,{style:{color:"var(--Text-Quiet)",marginTop:8,marginBottom:16},children:"One small child is enough to trigger enforcement for the whole stack — the most common case is a normal button paired with a small cancel link."}),r.jsx(bi,{leftLabel:"Without enforcement",rightLabel:"With enforcement",leftPasses:!1,rightPasses:!0,leftContent:r.jsxs(t.Box,{sx:{display:"flex",flexDirection:"column",gap:"2px"},children:[r.jsx(Ur,{variant:"primary",size:"medium",children:"Save changes"}),r.jsx(hi,{href:"#",size:"small",children:"Or discard"})]}),rightContent:r.jsxs(La,{gap:.25,children:[r.jsx(Ur,{variant:"primary",size:"medium",children:"Save changes"}),r.jsx(hi,{href:"#",size:"small",children:"Or discard"})]}),leftCode:'<Stack gap={0.25}>\n <Button size="medium">Save changes</Button>\n <Link size="small">Or discard</Link>\n</Stack>\n// ⚠ Link is 24px — gap too tight',rightCode:'<OmniStack gap={0.25}>\n <Button size="medium">Save changes</Button>\n <Link size="small">Or discard</Link>\n</OmniStack>\n// ✓ Link detected → gap enforced'})]}),r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",border:"1px solid var(--Border)",borderRadius:"var(--Style-Border-Radius)"},children:[r.jsx(Pt,{children:"How detection works"}),r.jsx(Gt,{style:{color:"var(--Text-Quiet)",marginTop:8,marginBottom:16},children:"OmniStack inspects children at render time using a priority-ordered signal chain. Any one signal is enough to trigger enforcement."}),r.jsx(t.Box,{sx:{display:"flex",flexDirection:"column"},children:[{signal:'size="small" prop',example:'<Link size="small" />'},{signal:'data-size="small"',example:'<div data-size="small" />'},{signal:"height={24}",example:"<Box height={24} />"},{signal:"minHeight={24}",example:"<Box minHeight={24} />"},{signal:"sx.minHeight: 24",example:"<Box sx={{ minHeight: 24 }} />"},{signal:"Known component name",example:"Link, Chip, Badge, Caption…"}].map(({signal:e,example:o},a,n)=>r.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",gap:2,py:1.5,borderBottom:a<n.length-1?"1px solid var(--Border)":"none"},children:[r.jsx(t.Box,{sx:{width:8,height:8,borderRadius:"50%",backgroundColor:"var(--Primary-Color-10)",flexShrink:0}}),r.jsx(Vt,{style:{flex:"0 0 200px"},children:e}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:o})]},e))})]}),r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",border:"1px solid var(--Border)",borderRadius:"var(--Style-Border-Radius)"},children:[r.jsx(Pt,{children:"Token-driven minimum"}),r.jsx(Gt,{style:{color:"var(--Text-Quiet)",marginTop:8,marginBottom:16},children:"The minimum gap is a CSS custom property, not a hardcoded value — so it respects your brand spacing scale and responds to theme changes without re-rendering."}),r.jsx(fi,{code:":root {\n --min-stack-gap: 8px; /* Set in your theme.css */\n}\n\n/* OmniStack substitutes the variable, not the value: */\ngap: var(--min-stack-gap, 8px);\n\n/* Dark mode, brand overrides, and media queries\n all work automatically — no re-render needed. */"})]}),r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",border:"1px solid var(--Border)",borderRadius:"var(--Style-Border-Radius)"},children:[r.jsx(Pt,{children:"Auditable opt-out"}),r.jsxs(Gt,{style:{color:"var(--Text-Quiet)",marginTop:8,marginBottom:16},children:["Use ",r.jsx("code",{children:"enforceMinGap={false}"})," to opt out. This creates a searchable pattern accessibility audits can grep for — a conscious waiver, not a silent violation."]}),r.jsx(fi,{code:'<OmniStack gap={0.5} enforceMinGap={false}>\n {/* Explicitly waived — auditors can grep:\n enforceMinGap={false}\n to find all waivers in the codebase. */}\n <Link size="small">Terms</Link>\n <Link size="small">Privacy</Link>\n</OmniStack>'})]})]})}),r.jsx(wo,{value:1,children:r.jsx(vi,{})}),r.jsx(wo,{value:2,children:r.jsxs(t.Box,{sx:{pt:3},children:[r.jsx(Pt,{children:"OmniStack props"}),r.jsx(Gt,{style:{color:"var(--Text-Quiet)",marginTop:4,marginBottom:16},children:"All standard MUI Stack props are supported. These are OmniStack additions:"}),r.jsx(t.Box,{sx:{border:"1px solid var(--Border)",borderRadius:"var(--Style-Border-Radius)",overflow:"hidden",mb:4},children:[{prop:"enforceMinGap",type:"boolean",default:"true",desc:"Enable/disable smart gap enforcement."},{prop:"minGapToken",type:"string",default:'"--min-stack-gap"',desc:"CSS variable name for the minimum gap value."},{prop:"gap",type:"number|string",default:"undefined",desc:"Desired gap. Enforced against minGapToken when small children detected."},{prop:"direction",type:"string|object",default:'"column"',desc:"Stack direction. Supports responsive breakpoint objects."},{prop:"flexWrap",type:"string",default:"undefined",desc:'"wrap" | "nowrap" | "wrap-reverse"'},{prop:"divider",type:"ReactNode",default:"undefined",desc:"Element rendered between each child."}].map(({prop:e,type:o,default:a,desc:n},i,l)=>r.jsxs(t.Box,{sx:{display:"grid",gridTemplateColumns:"160px 160px 1fr",gap:2,px:2,py:1.5,alignItems:"start",borderBottom:i<l.length-1?"1px solid var(--Border)":"none",backgroundColor:i%2==0?"transparent":"var(--Surface-Dim, var(--Surface))"},children:[r.jsx(Kt,{style:{fontFamily:"monospace",color:"var(--Primary-Color-10)",fontWeight:600},children:e}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:o}),r.jsxs(t.Box,{children:[r.jsx(Kt,{style:{color:"var(--Text)"},children:n}),r.jsxs(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginTop:2},children:["Default: ",a]})]})]},e))}),r.jsx(Pt,{children:"Convenience exports"}),r.jsx(t.Box,{sx:{border:"1px solid var(--Border)",borderRadius:"var(--Style-Border-Radius)",overflow:"hidden",mb:4},children:[{name:"Stack",desc:"Alias for OmniStack — drop-in MUI Stack replacement"},{name:"HStack",desc:'direction="row" alignItems="center"'},{name:"VStack",desc:'direction="column"'},{name:"CenteredStack",desc:'direction="column" alignItems="center" justifyContent="center"'},{name:"SpaceBetweenStack",desc:'direction="row" justifyContent="space-between"'},{name:"WrapStack",desc:'direction="row" flexWrap="wrap"'},{name:"ResponsiveStack",desc:"column on xs, row on sm+ (breakpoint configurable)"},{name:"GridStack",desc:"Alias for WrapStack"},{name:"InsetStack",desc:"OmniStack with px: 2 horizontal padding"},{name:"ScrollStack",desc:"OmniStack with overflowY: auto"}].map(({name:e,desc:o},a,n)=>r.jsxs(t.Box,{sx:{display:"grid",gridTemplateColumns:"200px 1fr",gap:2,px:2,py:1.5,borderBottom:a<n.length-1?"1px solid var(--Border)":"none",backgroundColor:a%2==0?"transparent":"var(--Surface-Dim, var(--Surface))"},children:[r.jsx(Kt,{style:{fontFamily:"monospace",color:"var(--Primary-Color-10)",fontWeight:600},children:e}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)"},children:o})]},e))}),r.jsx(Pt,{children:"Debug attributes"}),r.jsx(fi,{code:'/* When enforcement is active, OmniStack adds: */\nclassName="omni-stack omni-stack-min-gap-enforced"\ndata-min-gap-enforced="true"\n\n/* Target in CSS: */\n.omni-stack-min-gap-enforced { outline: 2px dashed orange; }\n\n/* Query in tests: */\ncontainer.querySelector(\'[data-min-gap-enforced="true"]\')'})]})})]})]})},exports.Step=Il,exports.Stepper=Tl,exports.StepperShowcase=function(){const[o,a]=e.useState("default"),[n,i]=e.useState("medium"),[l,s]=e.useState("horizontal"),[c,d]=e.useState(4),[u,x]=e.useState(1),[p,h]=e.useState(!1),[m,f]=e.useState(!1),[g,b]=e.useState(null),[v,y]=e.useState("Surface");return r.jsxs(t.Box,{sx:{pb:8},children:[r.jsx(Pt,{children:"Stepper"}),r.jsxs(t.Grid,{container:!0,sx:{mt:2,alignItems:"flex-start",flexWrap:"wrap"},children:[r.jsxs(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"55%"},flexShrink:0,pr:{md:3}},children:[r.jsx(To,{theme:g,surface:v,children:r.jsx(t.Box,{sx:{width:"100%",maxWidth:"vertical"===l?300:"100%"},children:r.jsx(Tl,{color:o,size:n,orientation:l,activeStep:u,clickable:p,onStepClick:p?x:void 0,dashedIncomplete:m,children:Rl.slice(0,c).map(e=>r.jsx(Il,{label:e},e))})})}),r.jsx(na,{code:(()=>{const e=[];return"default"!==o&&e.push('color="'+o+'"'),"medium"!==n&&e.push('size="'+n+'"'),"horizontal"!==l&&e.push('orientation="vertical"'),e.push("activeStep={"+u+"}"),p&&e.push("clickable onStepClick={setActiveStep}"),m&&e.push("dashedIncomplete"),"<Stepper "+e.join(" ")+">\n"+Rl.slice(0,c).map(e=>' <Step label="'+e+'" />').join("\n")+"\n</Stepper>"})(),language:"JSX",wrap:!0,sx:{mt:2}})]}),r.jsx(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"45%"},flexShrink:0,alignSelf:"flex-start",minWidth:0,overflow:"hidden"},children:r.jsx(t.Box,{sx:{backgroundColor:"var(--Background)",overflow:"hidden"},children:r.jsxs(Bo,{defaultValue:0,variant:"standard",color:"primary",children:[r.jsxs(ko,{children:[r.jsx(Co,{children:"Playground"}),r.jsx(Co,{children:"Accessibility"})]}),r.jsx(wo,{value:0,children:r.jsxs(t.Box,{sx:{p:3},children:[r.jsx(t.Box,{sx:{mb:3},children:r.jsx(Ro,{theme:g,onThemeChange:b,surface:v,onSurfaceChange:y})}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"STEPS"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:[2,3,4,5,6].map(e=>r.jsx(El,{label:String(e),selected:c===e,onClick:()=>{d(e),u>=e&&x(e-1)}},e))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"ACTIVE STEP"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:Rl.slice(0,c).map((e,t)=>r.jsx(El,{label:String(t+1),selected:u===t,onClick:()=>x(t)},t))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"COLOR"}),r.jsx(t.Stack,{spacing:1.5,children:zl.map(e=>r.jsxs(t.Box,{children:[r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:4,fontWeight:600},children:e.label}),r.jsx(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:e.colors.map(e=>r.jsx(Ll,{color:e,selected:o===e,onClick:a},e))})]},e.label))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"SIZE"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["small","medium","large"].map(e=>r.jsx(El,{label:Al(e),selected:n===e,onClick:()=>i(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"ORIENTATION"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["horizontal","vertical"].map(e=>r.jsx(El,{label:Al(e),selected:l===e,onClick:()=>s(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Clickable"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Steps are interactive buttons"})]}),r.jsx(xa,{variant:"default-outline",checked:p,onChange:e=>h(e.target.checked),size:"small","aria-label":"Clickable"})]}),r.jsxs(t.Box,{sx:{mt:2,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Dashed Incomplete"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Dashed connector for future steps"})]}),r.jsx(xa,{variant:"default-outline",checked:m,onChange:e=>f(e.target.checked),size:"small","aria-label":"Dashed incomplete"})]})]})}),r.jsx(wo,{value:1,children:r.jsx(t.Box,{sx:{p:3},children:r.jsx(t.Stack,{spacing:3,children:r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"ARIA and Semantics"}),r.jsx(t.Stack,{spacing:0,children:[{label:"Container",value:'<ol role="list" aria-label="Progress">'},{label:"Steps",value:"<li> elements with step state classes"},{label:"Active",value:'aria-current="step" on the active indicator'},{label:"Clickable",value:'role="button" aria-label="Go to step N" with tabIndex'},{label:"Focus",value:"outline: 3px solid var(--Focus-Visible); outline-offset: 2px"},{label:"Connectors",value:'aria-hidden="true" — decorative only'}].map(({label:e,value:o})=>r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsxs(Vt,{children:[e,":"]}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:o})]},e))})]})})})})]})})})]})]})},exports.Subtitle=Ft,exports.Subtitle1=Nt,exports.Subtitle2=Ht,exports.SubtitleLarge=Wt,exports.SubtitleMedium=e=>r.jsx(Et,{textStyle:"subtitle",...e}),exports.SubtitleSmall=e=>r.jsx(Et,{textStyle:"subtitle-small",...e}),exports.SuccessToggleButtonGroup=e=>r.jsx(kn,{variant:"success",...e}),exports.Surfaced=function({surface:e,as:t="div",children:o,className:a,style:n,...i}){return r.jsx(t,{"data-surface":e,className:a,style:n,...i,children:o})},exports.Switch=pa,exports.SwitchInput=pa,exports.Tab=Co,exports.TabList=ko,exports.TabPanel=wo,exports.Table=function({children:e,columns:o,rows:a,footerRows:n,variant:i="default",color:l="primary",size:s="medium",stripe:c="none",stickyHeader:d=!1,stickyFooter:u=!1,className:x="",sx:p={},...h}){const m=Dp[s]||Dp.medium,f="solid"===i,g="outlined"===i,b="light"===i,v=(e=>e.charAt(0).toUpperCase()+e.slice(1))(l),y=g?"1px solid var(--Buttons-"+v+"-Border)":"none",j={};f&&(j["data-theme"]=v+"-Medium");const S=()=>{const e={fontWeight:600,fontSize:m.headerFontSize,textAlign:"left",padding:m.py+" "+m.px,borderBottom:"2px solid var(--Border)",color:"var(--Text)",whiteSpace:"nowrap"};return b?(e.backgroundColor="var(--Buttons-"+v+"-Button)",e.color="var(--Buttons-"+v+"-Text)"):e.backgroundColor=f?"var(--Hover)":"var(--Background)",d&&(e.position="sticky",e.top=0,e.zIndex=2),e},B=()=>{const e={fontWeight:600,fontSize:m.headerFontSize,textAlign:"left",padding:m.py+" "+m.px,borderTop:"2px solid var(--Border)",color:"var(--Text)",whiteSpace:"nowrap"};return b?(e.backgroundColor="var(--Buttons-"+v+"-Button)",e.color="var(--Buttons-"+v+"-Text)"):e.backgroundColor=f?"var(--Hover)":"var(--Background)",u&&(e.position="sticky",e.bottom=0,e.zIndex=2),e},k=e=>"none"===c?"Surface":"odd"===c?e%2==0?"Surface":"Surface-Dim":"even"===c&&e%2==0?"Surface-Dim":"Surface",C=()=>({padding:m.py+" "+m.px,fontSize:m.fontSize,color:"var(--Text)",borderBottom:"1px solid var(--Border)",textAlign:"left"});return r.jsx(t.Box,{className:"table-wrapper table-"+i+(f||b||g?" table-"+l:"")+" "+x,...j,sx:{width:"100%",overflow:"auto",border:y,borderRadius:g||b?"var(--Style-Border-Radius)":0,...p},children:r.jsx(t.Box,{component:"table",sx:{width:"100%",borderCollapse:"collapse",tableLayout:"fixed",fontFamily:"inherit","& thead th":S(),"& tbody td":C(),"& tfoot td, & tfoot th":B(),...d?{"& thead th":{...S(),position:"sticky",top:0,zIndex:2}}:{},...u?{"& tfoot td, & tfoot th":{...B(),position:"sticky",bottom:0,zIndex:2}}:{}},...h,children:o&&a?o&&a?r.jsxs(r.Fragment,{children:[r.jsx(t.Box,{component:"thead",children:r.jsx(t.Box,{component:"tr",children:o.map((e,o)=>r.jsx(t.Box,{component:"th",sx:{...S(),...e.width?{width:e.width}:{},...e.align?{textAlign:e.align}:{}},children:e.label||e.header||e},"h-"+o))})}),r.jsx(t.Box,{component:"tbody",children:a.map((e,a)=>r.jsx(t.Box,{component:"tr","data-surface":k(a),sx:{backgroundColor:"var(--"+k(a)+")"},children:(Array.isArray(e)?e:o.map(t=>e[t.field||t.key])).map((e,n)=>r.jsx(t.Box,{component:"td",sx:{...C(),...o[n]&&o[n].align?{textAlign:o[n].align}:{}},children:e},"c-"+a+"-"+n))},"r-"+a))}),n&&n.length>0&&r.jsx(t.Box,{component:"tfoot",children:n.map((e,a)=>r.jsx(t.Box,{component:"tr",children:(Array.isArray(e)?e:o.map(t=>e[t.field||t.key])).map((e,n)=>r.jsx(t.Box,{component:"td",sx:{...B(),...o[n]&&o[n].align?{textAlign:o[n].align}:{}},children:e},"fc-"+a+"-"+n))},"f-"+a))})]}):null:e})})},exports.Tabs=Bo,exports.TabsShowcase=function(){const[o,a]=e.useState("standard"),[n,i]=e.useState("default"),[l,s]=e.useState("medium"),[c,d]=e.useState("horizontal"),[u,x]=e.useState(null),[p,h]=e.useState("Surface"),[m,f]=e.useState(!1),g="standard"===o?Di:Wi;return r.jsxs(t.Box,{sx:{pb:8},children:[r.jsx(Pt,{children:"Tabs"}),r.jsxs(t.Grid,{container:!0,sx:{mt:2,alignItems:"flex-start",flexWrap:"wrap"},children:[r.jsxs(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"55%"},flexShrink:0,pr:{md:3}},children:[r.jsx(To,{theme:u,surface:p,children:r.jsx(t.Box,{sx:{width:"100%",maxWidth:"vertical"===c?500:"100%",display:"flex",flexDirection:"vertical"===c?"row":"column"},children:r.jsxs(Bo,{defaultValue:0,variant:o,color:n,size:l,orientation:c,children:[r.jsxs(ko,{rounded:m,children:[r.jsx(Co,{children:"Overview"}),r.jsx(Co,{children:"Features"}),r.jsx(Co,{children:"Pricing"})]}),r.jsx(wo,{value:0,children:r.jsx(t.Box,{sx:{p:2},children:r.jsx(Gt,{style:{color:"var(--Quiet)"},children:"Overview content goes here."})})}),r.jsx(wo,{value:1,children:r.jsx(t.Box,{sx:{p:2},children:r.jsx(Gt,{style:{color:"var(--Quiet)"},children:"Features content goes here."})})}),r.jsx(wo,{value:2,children:r.jsx(t.Box,{sx:{p:2},children:r.jsx(Gt,{style:{color:"var(--Quiet)"},children:"Pricing content goes here."})})})]})})}),r.jsx(na,{code:(()=>{const e=[];return"standard"!==o&&e.push('variant="'+o+'"'),"default"!==n&&e.push('color="'+n+'"'),"medium"!==l&&e.push('size="'+l+'"'),"horizontal"!==c&&e.push('orientation="vertical"'),"<Tabs defaultValue={0}"+(e.length?" "+e.join(" "):"")+">\n <TabList"+(m?" rounded":"")+">\n <Tab>Overview</Tab>\n <Tab>Features</Tab>\n <Tab>Pricing</Tab>\n </TabList>\n <TabPanel value={0}>Overview content</TabPanel>\n <TabPanel value={1}>Features content</TabPanel>\n <TabPanel value={2}>Pricing content</TabPanel>\n</Tabs>"})(),language:"JSX",wrap:!0,sx:{mt:2}})]}),r.jsx(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"45%"},flexShrink:0,alignSelf:"flex-start",minWidth:0,overflow:"hidden"},children:r.jsx(t.Box,{sx:{backgroundColor:"var(--Background)",overflow:"hidden"},children:r.jsxs(Bo,{defaultValue:0,variant:"standard",color:"primary",children:[r.jsxs(ko,{children:[r.jsx(Co,{children:"Playground"}),r.jsx(Co,{children:"Accessibility"})]}),r.jsx(wo,{value:0,children:r.jsxs(t.Box,{sx:{p:3},children:[r.jsx(t.Box,{sx:{mb:3},children:r.jsx(Ro,{theme:u,onThemeChange:x,surface:p,onSurfaceChange:h})}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"STYLE"}),r.jsx(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:["standard","solid","light","dark"].map(e=>r.jsx(Fi,{label:Oi("standard"===e?"default":e),selected:o===e,onClick:()=>(e=>{a(e),"standard"!==e&&"default"===n&&i("primary")})(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"COLOR"}),r.jsx(t.Stack,{spacing:1.5,children:g.map(e=>r.jsxs(t.Box,{children:[r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:4,fontWeight:600},children:e.label}),r.jsx(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:e.colors.map(e=>r.jsx(Ni,{color:e,selected:n===e,onClick:i},e))})]},e.label))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"SIZE"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["small","medium","large"].map(e=>r.jsx(Fi,{label:Oi(e),selected:l===e,onClick:()=>s(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"ORIENTATION"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["horizontal","vertical"].map(e=>r.jsx(Fi,{label:Oi(e),selected:c===e,onClick:()=>d(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"SHAPE"}),r.jsx(xa,{label:"Rounded corners",checked:m,onChange:e=>f(e.target.checked)}),r.jsxs(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginTop:6},children:["Off by default. When on, the TabList applies"," ",r.jsx("code",{children:"var(--Style-Border-Radius)"})," and clips the active tab's background to fit the rounded shell (",r.jsx("code",{children:"overflow: hidden"})," is always on)."]})]})]})}),r.jsx(wo,{value:1,children:r.jsx(t.Box,{sx:{p:3},children:r.jsx(t.Stack,{spacing:3,children:r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"ARIA and Semantics"}),r.jsx(t.Stack,{spacing:0,children:[{label:"TabList",value:'role="tablist" aria-orientation'},{label:"Tab",value:'role="tab" aria-selected aria-controls={panelId}'},{label:"TabPanel",value:'role="tabpanel" aria-labelledby={tabId}'},{label:"Keyboard",value:"Arrow keys navigate tabs. Home/End jump to first/last."},{label:"Focus",value:"outline: 3px solid var(--Focus-Visible); outline-offset: -3px"},{label:"Indicator",value:"Standard: var(--Buttons-{C}-Border). Themed: var(--Text)."}].map(({label:e,value:o})=>r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsxs(Vt,{children:[e,":"]}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:o})]},e))})]})})})})]})})})]})]})},exports.TertiaryToggleButtonGroup=e=>r.jsx(kn,{variant:"tertiary",...e}),exports.TextArea=function({label:o,value:a="",onChange:n,placeholder:i,error:l=!1,errorMessage:s="",disabled:c=!1,helperText:d="",rows:u=4,required:x=!1,fullWidth:p=!0,sx:h={},...m}){const[f,g]=e.useState(!1),b=l?"var(--Buttons-Error-Border)":f?"var(--Buttons-Primary-Border)":"var(--Border)";return r.jsxs(t.Box,{sx:{width:p?"100%":"auto"},children:[r.jsx(t.TextField,{label:o,value:a,onChange:n,placeholder:i,disabled:c,variant:"outlined",multiline:!0,rows:u,required:x,fullWidth:p,onFocus:()=>g(!0),onBlur:()=>g(!1),error:l,slotProps:{input:{style:{color:"var(--Text)"}}},sx:{width:p?"100%":"auto","& .MuiOutlinedInput-root":{backgroundColor:"var(--Container)",transition:"all 0.2s ease-in-out",color:"var(--Text)","& fieldset":{borderColor:b,transition:"border-color 0.2s ease-in-out"},"&:hover fieldset":{borderColor:l?"var(--Buttons-Error-Border)":"var(--Buttons-Primary-Border)"},"&.Mui-focused fieldset":{borderColor:l?"var(--Buttons-Error-Border)":"var(--Buttons-Primary-Border)",borderWidth:"2px"},"&.Mui-disabled":{backgroundColor:"var(--Container-Low)",opacity:.6}},"& .MuiInputLabel-root":{color:l||f?"var(--Text)":"var(--Text-Quiet)",transition:"all 0.2s ease-in-out",fontSize:"14px",fontWeight:500,"&.Mui-focused":{color:"var(--Text)",fontWeight:600},"&.Mui-error":{color:"var(--Text)"},"&.Mui-disabled":{color:"var(--Text-Secondary)",opacity:.6}},...h},...m}),l&&s&&r.jsx(t.FormHelperText,{error:!0,sx:{color:"var(--Buttons-Error-Border)",marginTop:"4px",fontSize:"12px",fontWeight:500},children:s})]})},exports.TextField=Cn,exports.TextFieldGroup=function({fields:e=[],spacing:o=2,sx:a={},...n}){return r.jsx(t.Box,{sx:{display:"flex",flexDirection:"column",gap:`var(--Spacing-${o})`,width:"100%",...a},...n,children:e.map(e=>r.jsx(Cn,{...e},e.id))})},exports.TextInput=xo,exports.ThemedZone=function({theme:e,surface:t,as:o="div",children:a,className:n,style:i,...l}){return r.jsx(o,{"data-theme":e,"data-surface":t,className:n,style:i,...l,children:a})},exports.ToggleButton=function({children:e,selected:o=!1,onChange:a,value:n,sx:i={},...l}){return r.jsx(t.ToggleButton,{value:n,selected:o,onChange:a,sx:{border:"1px solid var(--Border)",color:"var(--Text)",backgroundColor:o?"var(--Buttons-Primary-Button)":"transparent","&:hover":{backgroundColor:o?"var(--Buttons-Primary-Button)":"var(--Container-High)"},"&.Mui-selected":{backgroundColor:"var(--Buttons-Primary-Button)",color:"#fff","&:hover":{backgroundColor:"var(--Buttons-Primary-Button)"}},textTransform:"none",fontWeight:500,...i},...l,children:e})},exports.ToggleButtonGroup=kn,exports.Toolbar=dn,exports.ToolbarShowcase=function(){const[o,a]=e.useState("floating"),[n,i]=e.useState("default"),[l,s]=e.useState("horizontal"),[c,d]=e.useState(!1),[u,x]=e.useState(null),[p,h]=e.useState("Surface");return r.jsxs(t.Box,{sx:{pb:8},children:[r.jsx(Pt,{children:"Toolbar"}),r.jsxs(t.Grid,{container:!0,sx:{mt:2,alignItems:"flex-start",flexWrap:"wrap"},children:[r.jsxs(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"55%"},flexShrink:0,pr:{md:3}},children:[r.jsx(To,{theme:u,surface:p,sx:{minHeight:200},children:r.jsx(dn,{items:xn,type:o,color:n,orientation:l,fab:c&&"floating"===o?{icon:r.jsx(ve,{}),label:"Create",onClick:()=>{}}:void 0})}),r.jsx(na,{code:(()=>{const e=["items={items}"];return"floating"!==o&&e.push('type="contextual"'),"default"!==n&&e.push('color="'+n+'"'),"horizontal"!==l&&e.push('orientation="vertical"'),c&&e.push('fab={{ icon: <AddIcon />, label: "Create", onClick: handleCreate }}'),e.push("value={selected}"),e.push("onChange={setSelected}"),"<Toolbar\n "+e.join("\n ")+"\n/>"})(),language:"JSX",wrap:!0,sx:{mt:2}})]}),r.jsx(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"45%"},flexShrink:0,alignSelf:"flex-start",minWidth:0,overflow:"hidden"},children:r.jsx(t.Box,{sx:{backgroundColor:"var(--Background)",overflow:"hidden"},children:r.jsxs(Bo,{defaultValue:0,variant:"standard",color:"primary",children:[r.jsxs(ko,{children:[r.jsx(Co,{children:"Playground"}),r.jsx(Co,{children:"Accessibility"})]}),r.jsx(wo,{value:0,children:r.jsxs(t.Box,{sx:{p:3},children:[r.jsx(t.Box,{sx:{mb:3},children:r.jsx(Ro,{theme:u,onThemeChange:x,surface:p,onSurfaceChange:h})}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"TYPE"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["floating","contextual"].map(e=>r.jsx(pn,{label:un(e),selected:o===e,onClick:()=>a(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"COLOR"}),r.jsx(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:["default","primary","primary-light","white","black"].map(e=>r.jsx(pn,{label:un(e),selected:n===e,onClick:()=>i(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"ORIENTATION"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["horizontal","vertical"].map(e=>r.jsx(pn,{label:un(e),selected:l===e,onClick:()=>s(e)},e))})]}),"floating"===o&&r.jsxs(t.Box,{sx:{mt:3,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"FAB Button"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Add FAB to the right of toolbar"})]}),r.jsx(xa,{variant:"default-outline",checked:c,onChange:e=>d(e.target.checked),size:"small","aria-label":"FAB button"})]})]})}),r.jsx(wo,{value:1,children:r.jsx(t.Box,{sx:{p:3},children:r.jsx(t.Stack,{spacing:3,children:r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"ARIA and Semantics"}),r.jsx(t.Stack,{spacing:0,children:[{label:"Role",value:'role="toolbar" aria-orientation aria-label'},{label:"Items",value:'role="radio" aria-checked on each icon button'},{label:"Selection",value:"Toggle — click selected again to deselect"},{label:"Focus",value:"Uses Button component focus styles"},{label:"Floating",value:"borderRadius 56px, padding 16px, Effect-Level-2 shadow"},{label:"Contextual",value:"Standard border-radius, padding 8px, no shadow"}].map(({label:e,value:o})=>r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsxs(Vt,{children:[e,":"]}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:o})]},e))})]})})})})]})})})]})]})},exports.Tooltip=function({children:e,title:o,variant:a="solid",color:n="primary",size:i="medium",placement:l="bottom",arrow:s=!1,open:c,enterDelay:d=100,leaveDelay:u=0,describeChild:x=!1,className:p="",sx:h={},...m}){const f=Np[i]||Np.medium,g="solid"===a,b="light"===a,v="outline"===a,y=(e=>e.charAt(0).toUpperCase()+e.slice(1))(n),j=g?Wp[n]:b?Fp[n]:null,S=v?"1px solid var(--Buttons-"+y+"-Border)":"none",B="var(--Background)",k=void 0===c?{}:{open:c};return r.jsx(t.Tooltip,{title:o?r.jsx(t.Box,{"data-theme":j||void 0,className:"tooltip-content tooltip-"+a+" tooltip-"+n+" tooltip-"+i+" "+p,sx:{backgroundColor:"var(--Background)",color:"var(--Text)",border:S,borderRadius:"var(--Style-Border-Radius)",fontSize:f.fontSize,lineHeight:1.5,fontFamily:"inherit",padding:f.py+" "+f.px,maxWidth:f.maxWidth+"px",boxShadow:"0 2px 8px rgba(0,0,0,0.15)",...h},children:o}):"",placement:l,arrow:s,enterDelay:d,leaveDelay:u,describeChild:x,...k,componentsProps:{tooltip:{sx:{backgroundColor:"transparent",padding:0,maxWidth:"none",boxShadow:"none"}},arrow:{sx:{color:B,"&::before":{border:v?"1px solid var(--Buttons-"+y+"-Border)":"none",backgroundColor:B,boxSizing:"border-box"},fontSize:f.arrowSize+"px"}}},...m,children:e})},exports.TreeBranch=function({label:e,icon:o,level:a=0,toggle:n="none",onToggle:i,disabled:l=!1,size:s="small",className:c="",sx:d={},children:u,...x}){const p=6===a&&"none"!==n?"none":n,h="on"===p,m="none"!==p,f=m?qh[a]||{padLeft:0,togglePadLeft:0}:Uh[a]||Uh[0],g={paddingTop:"8px",paddingRight:"8px",paddingBottom:"8px",paddingLeft:(f.padLeft??8)+"px"};return r.jsxs(t.Box,{className:"tree-branch tree-branch-"+s+" tree-branch-level-"+a+" tree-branch-toggle-"+p+(l?" tree-branch-disabled":"")+(c?" "+c:""),sx:{width:"100%",...d},...x,children:[r.jsxs(t.Box,{component:"button",type:"button",role:"treeitem","aria-expanded":m?h:void 0,"aria-disabled":l||void 0,tabIndex:l?-1:0,onClick:e=>{l||m&&(e.stopPropagation(),i?.(h?"off":"on"))},disabled:l,sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:"4px",width:"100%",minHeight:"24px",...g,border:"none",backgroundColor:"transparent",fontFamily:"inherit",color:"inherit",textAlign:"left",cursor:l?"not-allowed":"pointer",opacity:l?.5:1,outline:"none",transition:"background-color 0.15s ease, color 0.15s ease","&:hover":l?{}:{backgroundColor:"var(--Hover)"},"&:active":l?{}:{backgroundColor:"var(--Pressed)"},"&:focus-visible":{outline:"3px solid var(--Focus-Visible)",outlineOffset:"-2px"}},children:[m&&r.jsx(t.Box,{className:"tree-branch-toggle",sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,paddingLeft:(f.togglePadLeft??0)+"px"},children:r.jsx(t.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:h?"rotate(-90deg)":"rotate(0deg)"},children:r.jsx(dr,{size:"small",children:r.jsx(Oe,{})})})}),r.jsxs(t.Box,{className:"tree-branch-slot",sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:"4px",flex:1,minWidth:0,...void 0!==f.slotPadLeft&&{paddingLeft:f.slotPadLeft+"px"}},children:[o&&r.jsx(t.Box,{sx:{display:"inline-flex",alignItems:"center",flexShrink:0},children:r.jsx(dr,{size:"small",children:o})}),null!=e&&r.jsx(Qt,{style:{color:"inherit",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"block",flex:1,minWidth:0},children:e})]})]}),h&&u&&r.jsx(t.Box,{role:"group",sx:{display:"flex",flexDirection:"column"},children:u})]})},exports.TreeViewShowcase=function(){const[o,a]=e.useState("solid"),[n,i]=e.useState("primary"),[l,s]=e.useState("default"),[c,d]=e.useState("slide"),[u,x]=e.useState("single"),[p,h]=e.useState(!1),[m,f]=e.useState(!1),[g,b]=e.useState(!1),[v,y]=e.useState(Ex),[j,S]=e.useState(null),[B,k]=e.useState("Surface"),[C,w]=e.useState({}),T=e.useRef(null),I=Xh(n),A=g?Yh:v,z=e.useCallback((e,t)=>e&&getComputedStyle(e).getPropertyValue(t).trim()||null,[]);return e.useEffect(()=>{const e=setTimeout(()=>{const e=T.current;w({text:z(e,"--Text"),textQuiet:z(e,"--Text-Quiet"),background:z(e,"--Background"),border:z(e,"--Border"),focusVisible:z(e,"--Focus-Visible"),activeBtn:z(e,"--Buttons-"+I+"-Button"),activeBorder:z(e,"--Buttons-"+I+"-Border")})},50);return()=>clearTimeout(e)},[n,j,z,I]),r.jsxs(t.Box,{sx:{pb:8},children:[r.jsx(Pt,{children:"Tree View"}),r.jsxs(t.Grid,{container:!0,sx:{mt:2,alignItems:"flex-start",flexWrap:"wrap"},children:[r.jsxs(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"55%"},flexShrink:0,pr:{md:3}},children:[r.jsx(To,{ref:T,theme:j,children:r.jsx(t.Box,{sx:{width:"100%",maxWidth:360},children:r.jsx(Rx,{color:n,variant:o,density:l,animation:c,selectionMode:u,checkboxSelection:p,disableSelection:m,items:A,defaultExpandedItems:["1","1-1","2"]})})}),r.jsx(na,{code:(()=>{const e=["<OmniTreeView"];return"default"!==n&&e.push(' color="'+n+'"'),"default"!==o&&e.push(' variant="'+o+'"'),"default"!==l&&e.push(' density="'+l+'"'),"slide"!==c&&e.push(' animation="'+c+'"'),"single"!==u&&e.push(' selectionMode="'+u+'"'),p&&e.push(" checkboxSelection"),m&&e.push(" disableSelection"),e.push(" items={treeData}"),e.push("/>"),e.join("\n")})(),language:"JSX",wrap:!0,sx:{mt:2}})]}),r.jsx(t.Grid,{item:!0,sx:{width:{xs:"100%",md:"45%"},flexShrink:0,alignSelf:"flex-start",minWidth:0,overflow:"hidden"},children:r.jsx(t.Box,{sx:{backgroundColor:"var(--Background)",overflow:"hidden"},children:r.jsxs(Bo,{defaultValue:0,variant:"standard",color:"primary",children:[r.jsxs(ko,{children:[r.jsx(Co,{children:"Playground"}),r.jsx(Co,{children:"Accessibility"})]}),r.jsx(wo,{value:0,children:r.jsxs(t.Box,{sx:{p:3},children:[r.jsx(t.Box,{sx:{mb:3},children:r.jsx(Ro,{theme:j,onThemeChange:S,surface:B,onSurfaceChange:k})}),r.jsxs(t.Box,{children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"STYLE"}),r.jsxs(t.Stack,{direction:"row",spacing:1,children:[r.jsx(rm,{label:"Solid",selected:"solid"===o,onClick:()=>a("solid")}),r.jsx(rm,{label:"Light",selected:"light"===o,onClick:()=>a("light")})]})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"COLOR"}),r.jsx(t.Stack,{spacing:1.5,children:Kh.map(e=>r.jsxs(t.Box,{children:[r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:4,fontWeight:600},children:e.label}),r.jsx(t.Stack,{direction:"row",flexWrap:"wrap",sx:{gap:1},children:e.colors.map(e=>r.jsx(om,{color:e,selected:n===e,onClick:i},e))})]},e.label))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"DENSITY"}),r.jsxs(t.Stack,{direction:"row",spacing:1,children:[r.jsx(rm,{label:"Compact",selected:"compact"===l,onClick:()=>s("compact")}),r.jsx(rm,{label:"Default",selected:"default"===l,onClick:()=>s("default")})]})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"ANIMATION"}),r.jsx(t.Stack,{direction:"row",spacing:1,children:["none","slide","spring"].map(e=>r.jsx(rm,{label:Xh(e),selected:c===e,onClick:()=>d(e)},e))})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"SELECTION MODE"}),r.jsxs(t.Stack,{direction:"row",spacing:1,children:[r.jsx(rm,{label:"Single",selected:"single"===u,onClick:()=>x("single")}),r.jsx(rm,{label:"Multi",selected:"multi"===u,onClick:()=>x("multi")})]})]}),r.jsxs(t.Box,{sx:{mt:3},children:[r.jsx(Yt,{style:{color:"var(--Text-Quiet)",display:"block",marginBottom:8},children:"OPTIONS"}),r.jsxs(t.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Show Icons"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Load sample data with icons and badges"})]}),r.jsx(xa,{checked:g,onChange:e=>b(e.target.checked),size:"small","aria-label":"Show icons"})]}),r.jsxs(t.Box,{sx:{mt:2,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Checkbox Selection"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Show checkboxes for each item"})]}),r.jsx(xa,{checked:p,onChange:e=>h(e.target.checked),size:"small","aria-label":"Checkbox selection"})]}),r.jsxs(t.Box,{sx:{mt:2,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r.jsxs(t.Box,{children:[r.jsx(Jt,{children:"Disable Selection"}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",display:"block"},children:"Items are not selectable"})]}),r.jsx(xa,{checked:m,onChange:e=>f(e.target.checked),size:"small","aria-label":"Disable selection"})]})]}),!g&&r.jsx(t.Box,{sx:{mt:3},children:r.jsx(am,{value:Zh,onChange:y})})]})}),r.jsx(wo,{value:1,children:r.jsx(t.Box,{sx:{p:3},children:r.jsxs(t.Stack,{spacing:3,children:[r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"Text Contrast (WCAG 1.4.3 — 4.5:1)"}),r.jsx(tm,{label:"Resting: var(--Text-Quiet) vs. background",ratio:_h(C.textQuiet,C.background),threshold:4.5,note:"Unselected items use Text-Quiet"}),r.jsx(tm,{label:"Hover: var(--Text) vs. background",ratio:_h(C.text,C.background),threshold:4.5,note:"Hovered items use var(--Text)"}),r.jsx(tm,{label:"Active (solid): var(--Text) vs. var(--Buttons-"+I+"-Button)",ratio:_h(C.text,C.activeBtn),threshold:4.5,note:"Selected item with solid fill"})]}),r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"Focus Indicator (WCAG 2.4.11 — 3:1)"}),r.jsx(tm,{label:"var(--Focus-Visible) vs. background",ratio:_h(C.focusVisible,C.background),threshold:3,note:"outline: 2px solid var(--Focus-Visible); outline-offset: -2px"})]}),r.jsxs(t.Box,{sx:{p:3,backgroundColor:"var(--Background)",borderRadius:"var(--Style-Border-Radius)",border:"1px solid var(--Border)"},children:[r.jsx(Ot,{children:"ARIA and Semantics"}),r.jsx(t.Stack,{spacing:0,children:[{label:"Role",value:'role="tree" on root, role="treeitem" on each node'},{label:"Expansion",value:'aria-expanded="true/false" on parent items'},{label:"Selection",value:"aria-selected on selected items"},{label:"Disabled",value:'aria-disabled="true" on disabled items'},{label:"Icons",value:"Icon elements are aria-hidden — label carries the accessible name"},{label:"Keyboard",value:"Arrow keys navigate, Enter/Space selects, * expands all siblings"}].map(({label:e,value:o})=>r.jsxs(t.Box,{sx:{py:1.5,borderBottom:"1px solid var(--Border)"},children:[r.jsxs(Vt,{children:[e,":"]}),r.jsx(Kt,{style:{color:"var(--Text-Quiet)",fontFamily:"monospace"},children:o})]},e))})]})]})})})]})})})]})]})},exports.Typography=Et,exports.URLTextField=function({label:e="Website",placeholder:t="https://example.com",...o}){return r.jsx(Cn,{label:e,type:"url",placeholder:t,...o})},exports.VStack=Ma,exports.WarningToggleButtonGroup=e=>r.jsx(kn,{variant:"warning",...e}),exports.WrapStack=Oa,exports.default={},exports.useOmniDesign=as,exports.useStepperContext=wl,exports.useTabsContext=So;
42
+ //# sourceMappingURL=index.js.map