zudoku 0.13.6 → 0.14.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 (370) hide show
  1. package/cli.js +2 -2
  2. package/dist/app/entry.client.js +2 -2
  3. package/dist/app/entry.client.js.map +1 -1
  4. package/dist/app/entry.server.js +3 -0
  5. package/dist/app/entry.server.js.map +1 -1
  6. package/dist/app/main.d.ts +1 -0
  7. package/dist/app/main.js +7 -22
  8. package/dist/app/main.js.map +1 -1
  9. package/dist/app/standalone.js.map +1 -1
  10. package/dist/cli/common/machine-id/lib.js.map +1 -1
  11. package/dist/cli/common/outdated.js.map +1 -1
  12. package/dist/cli/common/utils/box.js.map +1 -1
  13. package/dist/config/validators/InputSidebarSchema.d.ts +2 -2
  14. package/dist/config/validators/SidebarSchema.d.ts +24 -1
  15. package/dist/config/validators/SidebarSchema.js +76 -39
  16. package/dist/config/validators/SidebarSchema.js.map +1 -1
  17. package/dist/config/validators/validate.d.ts +329 -264
  18. package/dist/config/validators/validate.js +11 -10
  19. package/dist/config/validators/validate.js.map +1 -1
  20. package/dist/index.d.ts +4 -1
  21. package/dist/index.js +1 -1
  22. package/dist/index.js.map +1 -1
  23. package/dist/lib/components/Header.js +5 -1
  24. package/dist/lib/components/Header.js.map +1 -1
  25. package/dist/lib/components/Heading.d.ts +1 -1
  26. package/dist/lib/components/SyntaxHighlight.js +4 -1
  27. package/dist/lib/components/SyntaxHighlight.js.map +1 -1
  28. package/dist/lib/components/TopNavigation.js +30 -5
  29. package/dist/lib/components/TopNavigation.js.map +1 -1
  30. package/dist/lib/components/context/ZudokuContext.d.ts +6 -12
  31. package/dist/lib/components/context/ZudokuContext.js +26 -20
  32. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  33. package/dist/lib/components/navigation/Sidebar.js +3 -3
  34. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  35. package/dist/lib/components/navigation/SidebarCategory.js +2 -4
  36. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  37. package/dist/lib/components/navigation/SidebarItem.js +1 -3
  38. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  39. package/dist/lib/components/navigation/utils.js +10 -14
  40. package/dist/lib/components/navigation/utils.js.map +1 -1
  41. package/dist/lib/core/DevPortalContext.d.ts +3 -7
  42. package/dist/lib/core/DevPortalContext.js.map +1 -1
  43. package/dist/lib/core/plugins.d.ts +1 -0
  44. package/dist/lib/core/plugins.js.map +1 -1
  45. package/dist/lib/plugins/api-keys/CreateApiKey.js +1 -1
  46. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  47. package/dist/lib/plugins/markdown/index.d.ts +5 -6
  48. package/dist/lib/plugins/markdown/index.js +31 -3
  49. package/dist/lib/plugins/markdown/index.js.map +1 -1
  50. package/dist/lib/plugins/markdown/resolver.d.ts +38 -0
  51. package/dist/lib/plugins/markdown/resolver.js +75 -0
  52. package/dist/lib/plugins/markdown/resolver.js.map +1 -0
  53. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  54. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  55. package/dist/lib/plugins/openapi/Sidecar.js +2 -2
  56. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  57. package/dist/lib/plugins/openapi/client/worker.js.map +1 -1
  58. package/dist/lib/plugins/openapi/index.js.map +1 -1
  59. package/dist/lib/plugins/openapi/playground/Playground.js +1 -1
  60. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  61. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  62. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  63. package/dist/lib/ui/Accordion.d.ts +7 -0
  64. package/dist/lib/ui/Accordion.js +14 -0
  65. package/dist/lib/ui/Accordion.js.map +1 -0
  66. package/dist/lib/ui/Alert.d.ts +8 -0
  67. package/dist/lib/ui/Alert.js +23 -0
  68. package/dist/lib/ui/Alert.js.map +1 -0
  69. package/dist/lib/ui/AlertDialog.d.ts +20 -0
  70. package/dist/lib/ui/AlertDialog.js +27 -0
  71. package/dist/lib/ui/AlertDialog.js.map +1 -0
  72. package/dist/lib/ui/AspectRatio.d.ts +3 -0
  73. package/dist/lib/ui/AspectRatio.js +4 -0
  74. package/dist/lib/ui/AspectRatio.js.map +1 -0
  75. package/dist/lib/ui/Badge.d.ts +9 -0
  76. package/dist/lib/ui/Badge.js +21 -0
  77. package/dist/lib/ui/Badge.js.map +1 -0
  78. package/dist/lib/ui/Breadcrumb.d.ts +19 -0
  79. package/dist/lib/ui/Breadcrumb.js +24 -0
  80. package/dist/lib/ui/Breadcrumb.js.map +1 -0
  81. package/dist/lib/ui/Button.d.ts +2 -3
  82. package/dist/lib/ui/Button.js +1 -1
  83. package/dist/lib/ui/Button.js.map +1 -1
  84. package/dist/lib/ui/Carousel.d.ts +18 -0
  85. package/dist/lib/ui/Carousel.js +99 -0
  86. package/dist/lib/ui/Carousel.js.map +1 -0
  87. package/dist/lib/ui/Checkbox.d.ts +4 -0
  88. package/dist/lib/ui/Checkbox.js +9 -0
  89. package/dist/lib/ui/Checkbox.js.map +1 -0
  90. package/dist/lib/ui/Collapsible.d.ts +5 -0
  91. package/dist/lib/ui/Collapsible.js +6 -0
  92. package/dist/lib/ui/Collapsible.js.map +1 -0
  93. package/dist/lib/{components → ui}/Dialog.js +2 -2
  94. package/dist/lib/ui/Dialog.js.map +1 -0
  95. package/dist/lib/ui/Form.d.ts +23 -0
  96. package/dist/lib/ui/Form.js +63 -0
  97. package/dist/lib/ui/Form.js.map +1 -0
  98. package/dist/lib/ui/HoverCard.d.ts +6 -0
  99. package/dist/lib/ui/HoverCard.js +10 -0
  100. package/dist/lib/ui/HoverCard.js.map +1 -0
  101. package/dist/lib/ui/Label.d.ts +5 -0
  102. package/dist/lib/ui/Label.js +10 -0
  103. package/dist/lib/ui/Label.js.map +1 -0
  104. package/dist/lib/ui/Pagination.d.ts +28 -0
  105. package/dist/lib/ui/Pagination.js +24 -0
  106. package/dist/lib/ui/Pagination.js.map +1 -0
  107. package/dist/lib/ui/Popover.d.ts +6 -0
  108. package/dist/lib/ui/Popover.js +10 -0
  109. package/dist/lib/ui/Popover.js.map +1 -0
  110. package/dist/lib/ui/Progress.d.ts +4 -0
  111. package/dist/lib/ui/Progress.js +8 -0
  112. package/dist/lib/ui/Progress.js.map +1 -0
  113. package/dist/lib/ui/RadioGroup.d.ts +5 -0
  114. package/dist/lib/ui/RadioGroup.js +15 -0
  115. package/dist/lib/ui/RadioGroup.js.map +1 -0
  116. package/dist/lib/ui/ScrollArea.d.ts +5 -0
  117. package/dist/lib/ui/ScrollArea.js +12 -0
  118. package/dist/lib/ui/ScrollArea.js.map +1 -0
  119. package/dist/lib/ui/Select.js.map +1 -0
  120. package/dist/lib/ui/Skeleton.d.ts +2 -0
  121. package/dist/lib/ui/Skeleton.js +7 -0
  122. package/dist/lib/ui/Skeleton.js.map +1 -0
  123. package/dist/lib/ui/Slider.d.ts +4 -0
  124. package/dist/lib/ui/Slider.js +8 -0
  125. package/dist/lib/ui/Slider.js.map +1 -0
  126. package/dist/lib/ui/Switch.d.ts +4 -0
  127. package/dist/lib/ui/Switch.js +8 -0
  128. package/dist/lib/ui/Switch.js.map +1 -0
  129. package/dist/lib/ui/Textarea.d.ts +4 -0
  130. package/dist/lib/ui/Textarea.js +9 -0
  131. package/dist/lib/ui/Textarea.js.map +1 -0
  132. package/dist/lib/ui/Toggle.d.ts +12 -0
  133. package/dist/lib/ui/Toggle.js +26 -0
  134. package/dist/lib/ui/Toggle.js.map +1 -0
  135. package/dist/lib/ui/ToggleGroup.d.ts +12 -0
  136. package/dist/lib/ui/ToggleGroup.js +21 -0
  137. package/dist/lib/ui/ToggleGroup.js.map +1 -0
  138. package/dist/lib/ui/Tooltip.d.ts +7 -0
  139. package/dist/lib/ui/Tooltip.js +11 -0
  140. package/dist/lib/ui/Tooltip.js.map +1 -0
  141. package/dist/lib/util/MdxComponents.js.map +1 -1
  142. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  143. package/dist/vite/build.js +7 -2
  144. package/dist/vite/build.js.map +1 -1
  145. package/dist/vite/config.js +11 -6
  146. package/dist/vite/config.js.map +1 -1
  147. package/dist/vite/debug.d.ts +1 -0
  148. package/dist/vite/debug.js +10 -0
  149. package/dist/vite/debug.js.map +1 -0
  150. package/dist/vite/plugin-component.js +17 -7
  151. package/dist/vite/plugin-component.js.map +1 -1
  152. package/dist/vite/plugin-config-reload.js +0 -2
  153. package/dist/vite/plugin-config-reload.js.map +1 -1
  154. package/dist/vite/plugin-docs.js +37 -26
  155. package/dist/vite/plugin-docs.js.map +1 -1
  156. package/dist/vite/plugin-frontmatter.d.ts +2 -1
  157. package/dist/vite/plugin-frontmatter.js +27 -24
  158. package/dist/vite/plugin-frontmatter.js.map +1 -1
  159. package/dist/vite/plugin-sidebar.js +7 -6
  160. package/dist/vite/plugin-sidebar.js.map +1 -1
  161. package/dist/vite/plugin.js +1 -1
  162. package/dist/vite/plugin.js.map +1 -1
  163. package/dist/vite/prerender.d.ts +5 -1
  164. package/dist/vite/prerender.js +6 -5
  165. package/dist/vite/prerender.js.map +1 -1
  166. package/lib/{utils-G5XSiZc9.js → AnchorLink-BbB2q-jx.js} +231 -275
  167. package/lib/AnchorLink-BbB2q-jx.js.map +1 -0
  168. package/lib/{AuthenticationPlugin-tBvLKsFg.js → AuthenticationPlugin-C9BHGXlE.js} +2 -2
  169. package/lib/{AuthenticationPlugin-tBvLKsFg.js.map → AuthenticationPlugin-C9BHGXlE.js.map} +1 -1
  170. package/lib/{CategoryHeading-D2WS6sRI.js → CategoryHeading-Bb9dqxD3.js} +4 -4
  171. package/lib/{CategoryHeading-D2WS6sRI.js.map → CategoryHeading-Bb9dqxD3.js.map} +1 -1
  172. package/lib/{DeveloperHint-CRiZjqd2.js → DeveloperHint-DHdLXGHA.js} +2 -2
  173. package/lib/{DeveloperHint-CRiZjqd2.js.map → DeveloperHint-DHdLXGHA.js.map} +1 -1
  174. package/lib/{Markdown-DM4zv3MA.js → Markdown-BDcCAWwm.js} +4268 -6651
  175. package/lib/Markdown-BDcCAWwm.js.map +1 -0
  176. package/lib/{MdxPage-tWI_P8wP.js → MdxPage-DKMH_t0f.js} +31 -29
  177. package/lib/{MdxPage-tWI_P8wP.js.map → MdxPage-DKMH_t0f.js.map} +1 -1
  178. package/lib/{OperationList-Cd3lue0b.js → OperationList-DnaAtLxP.js} +131 -127
  179. package/lib/OperationList-DnaAtLxP.js.map +1 -0
  180. package/lib/{Route-DI0Y0pIV.js → Route-DSbLrlig.js} +2 -2
  181. package/lib/{Route-DI0Y0pIV.js.map → Route-DSbLrlig.js.map} +1 -1
  182. package/lib/Select-Bagt3Bme.js +223 -0
  183. package/lib/Select-Bagt3Bme.js.map +1 -0
  184. package/lib/{SlotletProvider-CBqY8mp6.js → SlotletProvider-4Naek_5M.js} +4 -4
  185. package/lib/{SlotletProvider-CBqY8mp6.js.map → SlotletProvider-4Naek_5M.js.map} +1 -1
  186. package/lib/Spinner-C6zroowC.js +40 -0
  187. package/lib/Spinner-C6zroowC.js.map +1 -0
  188. package/lib/StaggeredRender-DDHSzQKE.js +17 -0
  189. package/lib/StaggeredRender-DDHSzQKE.js.map +1 -0
  190. package/lib/{ZudokuContext-DEoP3GGJ.js → ZudokuContext-BKXGJTmu.js} +460 -411
  191. package/lib/ZudokuContext-BKXGJTmu.js.map +1 -0
  192. package/lib/__vite-browser-external-BYRIRx8p.js +9 -0
  193. package/lib/__vite-browser-external-BYRIRx8p.js.map +1 -0
  194. package/lib/assets/worker-Bf8vjASY.js.map +1 -1
  195. package/lib/cn-BmFQLtkS.js +2279 -0
  196. package/lib/cn-BmFQLtkS.js.map +1 -0
  197. package/lib/hook-sn0zMTkE.js +229 -0
  198. package/lib/hook-sn0zMTkE.js.map +1 -0
  199. package/lib/{index-Bs9roz8y.js → index-B3F9d8oi.js} +1201 -1429
  200. package/lib/index-B3F9d8oi.js.map +1 -0
  201. package/lib/index-BuAyrJe3.js +46 -0
  202. package/lib/index-BuAyrJe3.js.map +1 -0
  203. package/lib/index.esm-C5mr_sKO.js +1193 -0
  204. package/lib/index.esm-C5mr_sKO.js.map +1 -0
  205. package/lib/ui/Accordion.js +47 -0
  206. package/lib/ui/Accordion.js.map +1 -0
  207. package/lib/ui/Alert.js +51 -0
  208. package/lib/ui/Alert.js.map +1 -0
  209. package/lib/ui/AlertDialog.js +114 -0
  210. package/lib/ui/AlertDialog.js.map +1 -0
  211. package/lib/ui/AspectRatio.js +6 -0
  212. package/lib/ui/AspectRatio.js.map +1 -0
  213. package/lib/ui/Badge.js +27 -0
  214. package/lib/ui/Badge.js.map +1 -0
  215. package/lib/ui/Breadcrumb.js +94 -0
  216. package/lib/ui/Breadcrumb.js.map +1 -0
  217. package/lib/ui/Button.js +49 -0
  218. package/lib/ui/Button.js.map +1 -0
  219. package/lib/ui/Callout.js +77 -0
  220. package/lib/ui/Callout.js.map +1 -0
  221. package/lib/ui/Card.js +62 -0
  222. package/lib/ui/Card.js.map +1 -0
  223. package/lib/ui/Carousel.js +1410 -0
  224. package/lib/ui/Carousel.js.map +1 -0
  225. package/lib/ui/Checkbox.js +28 -0
  226. package/lib/ui/Checkbox.js.map +1 -0
  227. package/lib/ui/Collapsible.js +8 -0
  228. package/lib/ui/Collapsible.js.map +1 -0
  229. package/lib/ui/Dialog.js +101 -0
  230. package/lib/ui/Dialog.js.map +1 -0
  231. package/lib/ui/Drawer.js +1153 -0
  232. package/lib/ui/Drawer.js.map +1 -0
  233. package/lib/ui/DropdownMenu.js +145 -0
  234. package/lib/ui/DropdownMenu.js.map +1 -0
  235. package/lib/ui/Form.js +95 -0
  236. package/lib/ui/Form.js.map +1 -0
  237. package/lib/ui/HoverCard.js +24 -0
  238. package/lib/ui/HoverCard.js.map +1 -0
  239. package/lib/ui/Input.js +22 -0
  240. package/lib/ui/Input.js.map +1 -0
  241. package/lib/ui/Label.js +20 -0
  242. package/lib/ui/Label.js.map +1 -0
  243. package/lib/ui/Pagination.js +106 -0
  244. package/lib/ui/Pagination.js.map +1 -0
  245. package/lib/ui/Popover.js +24 -0
  246. package/lib/ui/Popover.js.map +1 -0
  247. package/lib/ui/Progress.js +27 -0
  248. package/lib/ui/Progress.js.map +1 -0
  249. package/lib/ui/RadioGroup.js +32 -0
  250. package/lib/ui/RadioGroup.js.map +1 -0
  251. package/lib/ui/ScrollArea.js +39 -0
  252. package/lib/ui/ScrollArea.js.map +1 -0
  253. package/lib/ui/Select.js +122 -0
  254. package/lib/ui/Select.js.map +1 -0
  255. package/lib/ui/Skeleton.js +18 -0
  256. package/lib/ui/Skeleton.js.map +1 -0
  257. package/lib/ui/Slider.js +24 -0
  258. package/lib/ui/Slider.js.map +1 -0
  259. package/lib/ui/Switch.js +28 -0
  260. package/lib/ui/Switch.js.map +1 -0
  261. package/lib/ui/Tabs.js +47 -0
  262. package/lib/ui/Tabs.js.map +1 -0
  263. package/lib/ui/Textarea.js +21 -0
  264. package/lib/ui/Textarea.js.map +1 -0
  265. package/lib/ui/Toggle.js +38 -0
  266. package/lib/ui/Toggle.js.map +1 -0
  267. package/lib/ui/ToggleGroup.js +42 -0
  268. package/lib/ui/ToggleGroup.js.map +1 -0
  269. package/lib/ui/Tooltip.js +24 -0
  270. package/lib/ui/Tooltip.js.map +1 -0
  271. package/lib/{urql-core-KJnLL26g.js → urql-core-CqTI9H6N.js} +289 -261
  272. package/lib/urql-core-CqTI9H6N.js.map +1 -0
  273. package/lib/zudoku.auth-clerk.js +1 -1
  274. package/lib/zudoku.auth-openid.js +2 -2
  275. package/lib/zudoku.components.js +889 -2876
  276. package/lib/zudoku.components.js.map +1 -1
  277. package/lib/zudoku.openapi-worker.js +1 -1
  278. package/lib/zudoku.plugin-api-keys.js +21 -18
  279. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  280. package/lib/zudoku.plugin-custom-pages.js +14 -13
  281. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  282. package/lib/zudoku.plugin-markdown.js +93 -27
  283. package/lib/zudoku.plugin-markdown.js.map +1 -1
  284. package/lib/zudoku.plugin-openapi.js +6 -6
  285. package/package.json +30 -8
  286. package/src/app/entry.client.tsx +4 -2
  287. package/src/app/entry.server.tsx +4 -0
  288. package/src/app/main.css +4 -0
  289. package/src/app/main.tsx +10 -26
  290. package/src/app/standalone.tsx +1 -1
  291. package/src/lib/components/Header.tsx +10 -2
  292. package/src/lib/components/SyntaxHighlight.tsx +5 -1
  293. package/src/lib/components/TopNavigation.tsx +58 -24
  294. package/src/lib/components/context/ZudokuContext.ts +28 -20
  295. package/src/lib/components/navigation/Sidebar.tsx +5 -5
  296. package/src/lib/components/navigation/SidebarCategory.tsx +2 -4
  297. package/src/lib/components/navigation/SidebarItem.tsx +1 -3
  298. package/src/lib/components/navigation/utils.ts +11 -16
  299. package/src/lib/core/DevPortalContext.ts +3 -7
  300. package/src/lib/core/plugins.ts +2 -0
  301. package/src/lib/plugins/api-keys/CreateApiKey.tsx +2 -2
  302. package/src/lib/plugins/markdown/index.tsx +49 -12
  303. package/src/lib/plugins/markdown/resolver.ts +92 -0
  304. package/src/lib/plugins/openapi/Endpoint.tsx +2 -2
  305. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +1 -1
  306. package/src/lib/plugins/openapi/Sidecar.tsx +3 -3
  307. package/src/lib/plugins/openapi/client/worker.ts +2 -2
  308. package/src/lib/plugins/openapi/index.tsx +1 -1
  309. package/src/lib/plugins/openapi/playground/Playground.tsx +3 -3
  310. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +1 -1
  311. package/src/lib/ui/Accordion.tsx +56 -0
  312. package/src/lib/ui/{Note.tsx → Alert.tsx} +11 -10
  313. package/src/lib/ui/AlertDialog.tsx +139 -0
  314. package/src/lib/ui/AspectRatio.tsx +5 -0
  315. package/src/lib/ui/Badge.tsx +36 -0
  316. package/src/lib/ui/Breadcrumb.tsx +115 -0
  317. package/src/lib/ui/Button.tsx +1 -1
  318. package/src/lib/ui/Carousel.tsx +260 -0
  319. package/src/lib/ui/Checkbox.tsx +28 -0
  320. package/src/lib/ui/Collapsible.tsx +9 -0
  321. package/src/lib/{components → ui}/Dialog.tsx +4 -3
  322. package/src/lib/ui/Form.tsx +177 -0
  323. package/src/lib/ui/HoverCard.tsx +27 -0
  324. package/src/lib/ui/Label.tsx +24 -0
  325. package/src/lib/ui/Pagination.tsx +117 -0
  326. package/src/lib/ui/Popover.tsx +29 -0
  327. package/src/lib/ui/Progress.tsx +26 -0
  328. package/src/lib/ui/RadioGroup.tsx +42 -0
  329. package/src/lib/ui/ScrollArea.tsx +46 -0
  330. package/src/lib/ui/Skeleton.tsx +15 -0
  331. package/src/lib/ui/Slider.tsx +26 -0
  332. package/src/lib/ui/Switch.tsx +27 -0
  333. package/src/lib/ui/Textarea.tsx +23 -0
  334. package/src/lib/ui/Toggle.tsx +43 -0
  335. package/src/lib/ui/ToggleGroup.tsx +59 -0
  336. package/src/lib/ui/Tooltip.tsx +28 -0
  337. package/src/lib/util/MdxComponents.tsx +0 -1
  338. package/src/lib/util/useScrollToAnchor.ts +1 -1
  339. package/dist/internal.d.ts +0 -1
  340. package/dist/internal.js +0 -2
  341. package/dist/internal.js.map +0 -1
  342. package/dist/lib/components/Dialog.js.map +0 -1
  343. package/dist/lib/components/Select.js.map +0 -1
  344. package/dist/lib/plugins/markdown/generateRoutes.d.ts +0 -3
  345. package/dist/lib/plugins/markdown/generateRoutes.js +0 -21
  346. package/dist/lib/plugins/markdown/generateRoutes.js.map +0 -1
  347. package/dist/lib/ui/Note.d.ts +0 -8
  348. package/dist/lib/ui/Note.js +0 -23
  349. package/dist/lib/ui/Note.js.map +0 -1
  350. package/lib/Input-CO-1DOZa.js +0 -2229
  351. package/lib/Input-CO-1DOZa.js.map +0 -1
  352. package/lib/Markdown-DM4zv3MA.js.map +0 -1
  353. package/lib/OperationList-Cd3lue0b.js.map +0 -1
  354. package/lib/Spinner-DFQhPMBl.js +0 -505
  355. package/lib/Spinner-DFQhPMBl.js.map +0 -1
  356. package/lib/ZudokuContext-DEoP3GGJ.js.map +0 -1
  357. package/lib/index-Bs9roz8y.js.map +0 -1
  358. package/lib/index-CBr6BM_4.js +0 -2867
  359. package/lib/index-CBr6BM_4.js.map +0 -1
  360. package/lib/index-UUT9q9f9.js +0 -124
  361. package/lib/index-UUT9q9f9.js.map +0 -1
  362. package/lib/joinPath-B7kNnUX4.js +0 -8
  363. package/lib/joinPath-B7kNnUX4.js.map +0 -1
  364. package/lib/urql-core-KJnLL26g.js.map +0 -1
  365. package/lib/utils-G5XSiZc9.js.map +0 -1
  366. package/src/lib/plugins/markdown/generateRoutes.tsx +0 -38
  367. /package/dist/lib/{components → ui}/Dialog.d.ts +0 -0
  368. /package/dist/lib/{components → ui}/Select.d.ts +0 -0
  369. /package/dist/lib/{components → ui}/Select.js +0 -0
  370. /package/src/lib/{components → ui}/Select.tsx +0 -0
@@ -1,175 +1,181 @@
1
- var Ha = Object.defineProperty;
2
- var pn = (e) => {
3
- throw TypeError(e);
1
+ var ut = Object.defineProperty;
2
+ var ye = (t) => {
3
+ throw TypeError(t);
4
4
  };
5
- var Ua = (e, t, n) => t in e ? Ha(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
- var ae = (e, t, n) => Ua(e, typeof t != "symbol" ? t + "" : t, n), mn = (e, t, n) => t.has(e) || pn("Cannot " + n);
7
- var w = (e, t, n) => (mn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), ce = (e, t, n) => t.has(e) ? pn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), X = (e, t, n, r) => (mn(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
8
- var ut = (e, t, n, r) => ({
9
- set _(o) {
10
- X(e, t, o, n);
5
+ var dt = (t, e, r) => e in t ? ut(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
6
+ var v = (t, e, r) => dt(t, typeof e != "symbol" ? e + "" : e, r), je = (t, e, r) => e.has(t) || ye("Cannot " + r);
7
+ var l = (t, e, r) => (je(t, e, "read from private field"), r ? r.call(t) : e.get(t)), y = (t, e, r) => e.has(t) ? ye("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), g = (t, e, r, s) => (je(t, e, "write to private field"), s ? s.call(t, r) : e.set(t, r), r);
8
+ var X = (t, e, r, s) => ({
9
+ set _(n) {
10
+ g(t, e, n, r);
11
11
  },
12
12
  get _() {
13
- return w(e, t, r);
13
+ return l(t, e, s);
14
14
  }
15
15
  });
16
- import { c as In, H as kt, M as za, d as Ka, A as qa, b as Qa } from "./utils-G5XSiZc9.js";
17
- import { e as Va, f as Ga, R as Wa, g as Je, L as $t, h as Ya, O as An, i as Xa, b as Za, u as Ft } from "./index-CRo94sKK.js";
18
- import { u as Ja } from "./state-CsuHT8ZO.js";
19
- import { E as kn, S as ye, a as eo, R as to } from "./SlotletProvider-CBqY8mp6.js";
16
+ import { a as Te, H as ce, M as ht, A as ft, u as gt } from "./AnchorLink-BbB2q-jx.js";
17
+ import { e as mt, f as pt, R as vt, L as te, g as G, h as xt, O as _e, i as bt, b as yt, u as ue } from "./index-CRo94sKK.js";
18
+ import { u as jt } from "./state-CsuHT8ZO.js";
19
+ import { E as Fe, S as k, a as wt, R as Nt } from "./SlotletProvider-4Naek_5M.js";
20
20
  import { j as a } from "./jsx-runtime-B6kdoens.js";
21
- import { M as no, g as ro, c as $n, p as Fn, A as ao, d as rt, k as oo, b as I, l as so, F as io, D as lo, C as co, P as qe, j as Lt, q as uo, s as Ln, R as fo, S as ho, t as po, i as mo, r as Bn, n as go, a as gt, u as Hn, f as vt, V as Un, B as Nt } from "./index-CBr6BM_4.js";
22
- import { a as F, c as zn, b as vo, T as wo, d as yo, V as xo, u as Bt, e as bo, C as So } from "./Markdown-DM4zv3MA.js";
23
- import * as h from "react";
24
- import p, { StrictMode as Kn, createContext as qn, Component as Co, createElement as gn, isValidElement as Mo, useState as Ie, useMemo as mt, useLayoutEffect as Ro, useEffect as Ce, useCallback as Qn, Suspense as Vn, memo as Gn, useContext as Eo, Fragment as Do, useRef as Ht, forwardRef as Po } from "react";
25
- import { a as Ut } from "./_commonjsHelpers-BkfeUUK-.js";
26
- import { B as jo } from "./router-BsfSoK2j.js";
27
- import { a as Tt, R as No, T as To, C as _o } from "./index-UUT9q9f9.js";
28
- import { C as Oo } from "./ClientOnly-CVN6leDu.js";
29
- import { S as Wn, f as Yn, Q as Io, n as se, m as vn, g as wn, i as be, j as Ao, k as ko, l as $o, o as Fo, p as yn, r as xn, q as Lo, h as bn, t as Sn, v as Bo, u as Ae, b as Ho, Z as Uo, w as zo, c as Xn, x as Ko } from "./ZudokuContext-DEoP3GGJ.js";
30
- import { j as wt } from "./joinPath-B7kNnUX4.js";
31
- import { ChevronRightIcon as Zn, CheckIcon as qo, DotIcon as Qo, CircleXIcon as Vo, SearchIcon as Go, MenuIcon as Wo, MoonStarIcon as Yo, SunIcon as Xo, ExternalLinkIcon as Zo, PanelLeftIcon as Jo } from "lucide-react";
32
- import { c as Jn, P as bt, R as es, I as ts, O as ns, C as rs, T as as, a as os, b as ss, D as is, d as ls, e as cs, S as Mt, f as us } from "./Spinner-DFQhPMBl.js";
33
- function ds({ error: e }) {
34
- return /* @__PURE__ */ a.jsx(kn, { error: e });
35
- }
36
- var at = {};
37
- const fs = /* @__PURE__ */ Ut(jo), hs = /* @__PURE__ */ Ut(Va), ps = /* @__PURE__ */ Ut(Ga);
38
- Object.defineProperty(at, "__esModule", { value: !0 });
39
- var ms = p, we = fs, zt = hs, Se = ps;
40
- function gs(e) {
41
- if (e && e.__esModule) return e;
42
- var t = /* @__PURE__ */ Object.create(null);
43
- return e && Object.keys(e).forEach(function(n) {
44
- if (n !== "default") {
45
- var r = Object.getOwnPropertyDescriptor(e, n);
46
- Object.defineProperty(t, n, r.get ? r : {
21
+ import { Button as ie } from "./ui/Button.js";
22
+ import { Callout as Pt } from "./ui/Callout.js";
23
+ import St, { StrictMode as Qe, createContext as Le, Component as Ct, createElement as we, useState as Q, useCallback as Be, useEffect as _, Suspense as de, memo as He, useMemo as re, useContext as Et, Fragment as kt, useRef as he, forwardRef as At } from "react";
24
+ import { a as fe } from "./_commonjsHelpers-BkfeUUK-.js";
25
+ import { B as Mt } from "./router-BsfSoK2j.js";
26
+ import { a as oe } from "./StaggeredRender-DDHSzQKE.js";
27
+ import { C as Dt } from "./ClientOnly-CVN6leDu.js";
28
+ import { S as ze, i as qe, Q as Ot, n as b, m as Ne, j as Pe, k as M, l as Rt, o as It, p as Tt, q as _t, r as Se, t as Ce, v as Ft, h as Ee, w as ke, x as Qt, y as U, u as F, z as Ke, A as Lt, g as Bt, Z as Ht, B as zt, C as qt } from "./ZudokuContext-BKXGJTmu.js";
29
+ import { M as Kt, u as ee } from "./hook-sn0zMTkE.js";
30
+ import { a as $t, T as Ut, b as Vt, V as Wt, u as ge } from "./Markdown-BDcCAWwm.js";
31
+ import { CircleXIcon as Yt, SearchIcon as Xt, MenuIcon as Zt, MoonStarIcon as Jt, SunIcon as Gt, ChevronRightIcon as er, ExternalLinkIcon as tr, PanelLeftIcon as rr } from "lucide-react";
32
+ import { DropdownMenu as ar, DropdownMenuTrigger as sr, DropdownMenuContent as nr, DropdownMenuLabel as ir, DropdownMenuSeparator as or, DropdownMenuSub as lr, DropdownMenuSubTrigger as cr, DropdownMenuPortal as ur, DropdownMenuSubContent as dr, DropdownMenuItem as hr } from "./ui/DropdownMenu.js";
33
+ import { c as A } from "./cn-BmFQLtkS.js";
34
+ import { VisuallyHidden as $e } from "@radix-ui/react-visually-hidden";
35
+ import { a as Ue, c as fr } from "./index-BuAyrJe3.js";
36
+ import { Drawer as Ve, DrawerTrigger as We, DrawerContent as Ye, DrawerTitle as Xe, DrawerClose as gr } from "./ui/Drawer.js";
37
+ import { S as ae, a as mr } from "./Spinner-C6zroowC.js";
38
+ import * as se from "@radix-ui/react-collapsible";
39
+ function pr({ error: t }) {
40
+ return /* @__PURE__ */ a.jsx(Fe, { error: t });
41
+ }
42
+ var W = {};
43
+ const vr = /* @__PURE__ */ fe(Mt), xr = /* @__PURE__ */ fe(mt), br = /* @__PURE__ */ fe(pt);
44
+ Object.defineProperty(W, "__esModule", { value: !0 });
45
+ var yr = St, E = vr, me = xr, D = br;
46
+ function jr(t) {
47
+ if (t && t.__esModule) return t;
48
+ var e = /* @__PURE__ */ Object.create(null);
49
+ return t && Object.keys(t).forEach(function(r) {
50
+ if (r !== "default") {
51
+ var s = Object.getOwnPropertyDescriptor(t, r);
52
+ Object.defineProperty(e, r, s.get ? s : {
47
53
  enumerable: !0,
48
54
  get: function() {
49
- return e[n];
55
+ return t[r];
50
56
  }
51
57
  });
52
58
  }
53
- }), t.default = e, Object.freeze(t);
59
+ }), e.default = t, Object.freeze(e);
54
60
  }
55
- var ge = /* @__PURE__ */ gs(ms);
56
- function vs({
57
- basename: e,
58
- children: t,
59
- location: n = "/",
60
- future: r
61
+ var S = /* @__PURE__ */ jr(yr);
62
+ function wr({
63
+ basename: t,
64
+ children: e,
65
+ location: r = "/",
66
+ future: s
61
67
  }) {
62
- typeof n == "string" && (n = Se.parsePath(n));
63
- let o = we.Action.Pop, s = {
64
- pathname: n.pathname || "/",
65
- search: n.search || "",
66
- hash: n.hash || "",
67
- state: n.state != null ? n.state : null,
68
- key: n.key || "default"
69
- }, i = er();
70
- return /* @__PURE__ */ ge.createElement(Se.Router, {
71
- basename: e,
72
- children: t,
73
- location: s,
74
- navigationType: o,
75
- navigator: i,
76
- future: r,
68
+ typeof r == "string" && (r = D.parsePath(r));
69
+ let n = E.Action.Pop, i = {
70
+ pathname: r.pathname || "/",
71
+ search: r.search || "",
72
+ hash: r.hash || "",
73
+ state: r.state != null ? r.state : null,
74
+ key: r.key || "default"
75
+ }, o = Ze();
76
+ return /* @__PURE__ */ S.createElement(D.Router, {
77
+ basename: t,
78
+ children: e,
79
+ location: i,
80
+ navigationType: n,
81
+ navigator: o,
82
+ future: s,
77
83
  static: !0
78
84
  });
79
85
  }
80
- function ws({
81
- context: e,
82
- router: t,
83
- hydrate: n = !0,
84
- nonce: r
86
+ function Nr({
87
+ context: t,
88
+ router: e,
89
+ hydrate: r = !0,
90
+ nonce: s
85
91
  }) {
86
- t && e || (process.env.NODE_ENV !== "production" ? we.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : we.UNSAFE_invariant(!1));
87
- let o = {
88
- router: t,
89
- navigator: er(),
92
+ e && t || (process.env.NODE_ENV !== "production" ? E.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : E.UNSAFE_invariant(!1));
93
+ let n = {
94
+ router: e,
95
+ navigator: Ze(),
90
96
  static: !0,
91
- staticContext: e,
92
- basename: e.basename || "/"
93
- }, s = /* @__PURE__ */ new Map(), i = "";
94
- if (n !== !1) {
95
- let u = {
96
- loaderData: e.loaderData,
97
- actionData: e.actionData,
98
- errors: xs(e.errors)
97
+ staticContext: t,
98
+ basename: t.basename || "/"
99
+ }, i = /* @__PURE__ */ new Map(), o = "";
100
+ if (r !== !1) {
101
+ let c = {
102
+ loaderData: t.loaderData,
103
+ actionData: t.actionData,
104
+ errors: Sr(t.errors)
99
105
  };
100
- i = `window.__staticRouterHydrationData = JSON.parse(${Es(JSON.stringify(JSON.stringify(u)))});`;
106
+ o = `window.__staticRouterHydrationData = JSON.parse(${Dr(JSON.stringify(JSON.stringify(c)))});`;
101
107
  }
102
108
  let {
103
- state: l
104
- } = o.router;
105
- return /* @__PURE__ */ ge.createElement(ge.Fragment, null, /* @__PURE__ */ ge.createElement(Se.UNSAFE_DataRouterContext.Provider, {
106
- value: o
107
- }, /* @__PURE__ */ ge.createElement(Se.UNSAFE_DataRouterStateContext.Provider, {
108
- value: l
109
- }, /* @__PURE__ */ ge.createElement(Se.UNSAFE_FetchersContext.Provider, {
110
- value: s
111
- }, /* @__PURE__ */ ge.createElement(Se.UNSAFE_ViewTransitionContext.Provider, {
109
+ state: u
110
+ } = n.router;
111
+ return /* @__PURE__ */ S.createElement(S.Fragment, null, /* @__PURE__ */ S.createElement(D.UNSAFE_DataRouterContext.Provider, {
112
+ value: n
113
+ }, /* @__PURE__ */ S.createElement(D.UNSAFE_DataRouterStateContext.Provider, {
114
+ value: u
115
+ }, /* @__PURE__ */ S.createElement(D.UNSAFE_FetchersContext.Provider, {
116
+ value: i
117
+ }, /* @__PURE__ */ S.createElement(D.UNSAFE_ViewTransitionContext.Provider, {
112
118
  value: {
113
119
  isTransitioning: !1
114
120
  }
115
- }, /* @__PURE__ */ ge.createElement(Se.Router, {
116
- basename: o.basename,
117
- location: l.location,
118
- navigationType: l.historyAction,
119
- navigator: o.navigator,
120
- static: o.static,
121
+ }, /* @__PURE__ */ S.createElement(D.Router, {
122
+ basename: n.basename,
123
+ location: u.location,
124
+ navigationType: u.historyAction,
125
+ navigator: n.navigator,
126
+ static: n.static,
121
127
  future: {
122
- v7_relativeSplatPath: t.future.v7_relativeSplatPath
128
+ v7_relativeSplatPath: e.future.v7_relativeSplatPath
123
129
  }
124
- }, /* @__PURE__ */ ge.createElement(ys, {
125
- routes: t.routes,
126
- future: t.future,
127
- state: l
128
- })))))), i ? /* @__PURE__ */ ge.createElement("script", {
130
+ }, /* @__PURE__ */ S.createElement(Pr, {
131
+ routes: e.routes,
132
+ future: e.future,
133
+ state: u
134
+ })))))), o ? /* @__PURE__ */ S.createElement("script", {
129
135
  suppressHydrationWarning: !0,
130
- nonce: r,
136
+ nonce: s,
131
137
  dangerouslySetInnerHTML: {
132
- __html: i
138
+ __html: o
133
139
  }
134
140
  }) : null);
135
141
  }
136
- function ys({
137
- routes: e,
138
- future: t,
139
- state: n
142
+ function Pr({
143
+ routes: t,
144
+ future: e,
145
+ state: r
140
146
  }) {
141
- return zt.UNSAFE_useRoutesImpl(e, void 0, n, t);
142
- }
143
- function xs(e) {
144
- if (!e) return null;
145
- let t = Object.entries(e), n = {};
146
- for (let [r, o] of t)
147
- we.isRouteErrorResponse(o) ? n[r] = {
148
- ...o,
147
+ return me.UNSAFE_useRoutesImpl(t, void 0, r, e);
148
+ }
149
+ function Sr(t) {
150
+ if (!t) return null;
151
+ let e = Object.entries(t), r = {};
152
+ for (let [s, n] of e)
153
+ E.isRouteErrorResponse(n) ? r[s] = {
154
+ ...n,
149
155
  __type: "RouteErrorResponse"
150
- } : o instanceof Error ? n[r] = {
151
- message: o.message,
156
+ } : n instanceof Error ? r[s] = {
157
+ message: n.message,
152
158
  __type: "Error",
153
159
  // If this is a subclass (i.e., ReferenceError), send up the type so we
154
160
  // can re-create the same type during hydration.
155
- ...o.name !== "Error" ? {
156
- __subType: o.name
161
+ ...n.name !== "Error" ? {
162
+ __subType: n.name
157
163
  } : {}
158
- } : n[r] = o;
159
- return n;
164
+ } : r[s] = n;
165
+ return r;
160
166
  }
161
- function er() {
167
+ function Ze() {
162
168
  return {
163
- createHref: tr,
164
- encodeLocation: nr,
165
- push(e) {
166
- throw new Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)})\` somewhere in your app.`);
169
+ createHref: Je,
170
+ encodeLocation: Ge,
171
+ push(t) {
172
+ throw new Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(t)})\` somewhere in your app.`);
167
173
  },
168
- replace(e) {
169
- throw new Error(`You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)}, { replace: true })\` somewhere in your app.`);
174
+ replace(t) {
175
+ throw new Error(`You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(t)}, { replace: true })\` somewhere in your app.`);
170
176
  },
171
- go(e) {
172
- throw new Error(`You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${e})\` somewhere in your app.`);
177
+ go(t) {
178
+ throw new Error(`You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${t})\` somewhere in your app.`);
173
179
  },
174
180
  back() {
175
181
  throw new Error("You cannot use navigator.back() on the server because it is a stateless environment.");
@@ -179,45 +185,45 @@ function er() {
179
185
  }
180
186
  };
181
187
  }
182
- function bs(e, t) {
183
- return we.createStaticHandler(e, {
184
- ...t,
185
- mapRouteProperties: zt.UNSAFE_mapRouteProperties
188
+ function Cr(t, e) {
189
+ return E.createStaticHandler(t, {
190
+ ...e,
191
+ mapRouteProperties: me.UNSAFE_mapRouteProperties
186
192
  });
187
193
  }
188
- function Ss(e, t, n = {}) {
189
- let r = {}, o = we.UNSAFE_convertRoutesToDataRoutes(e, zt.UNSAFE_mapRouteProperties, void 0, r), s = t.matches.map((l) => {
190
- let u = r[l.route.id] || l.route;
194
+ function Er(t, e, r = {}) {
195
+ let s = {}, n = E.UNSAFE_convertRoutesToDataRoutes(t, me.UNSAFE_mapRouteProperties, void 0, s), i = e.matches.map((u) => {
196
+ let c = s[u.route.id] || u.route;
191
197
  return {
192
- ...l,
193
- route: u
198
+ ...u,
199
+ route: c
194
200
  };
195
- }), i = (l) => `You cannot use router.${l}() on the server because it is a stateless environment`;
201
+ }), o = (u) => `You cannot use router.${u}() on the server because it is a stateless environment`;
196
202
  return {
197
203
  get basename() {
198
- return t.basename;
204
+ return e.basename;
199
205
  },
200
206
  get future() {
201
- var l, u;
207
+ var u, c;
202
208
  return {
203
209
  v7_fetcherPersist: !1,
204
210
  v7_normalizeFormMethod: !1,
205
- v7_partialHydration: ((l = n.future) == null ? void 0 : l.v7_partialHydration) === !0,
211
+ v7_partialHydration: ((u = r.future) == null ? void 0 : u.v7_partialHydration) === !0,
206
212
  v7_prependBasename: !1,
207
- v7_relativeSplatPath: ((u = n.future) == null ? void 0 : u.v7_relativeSplatPath) === !0,
213
+ v7_relativeSplatPath: ((c = r.future) == null ? void 0 : c.v7_relativeSplatPath) === !0,
208
214
  v7_skipActionErrorRevalidation: !1
209
215
  };
210
216
  },
211
217
  get state() {
212
218
  return {
213
- historyAction: we.Action.Pop,
214
- location: t.location,
215
- matches: s,
216
- loaderData: t.loaderData,
217
- actionData: t.actionData,
218
- errors: t.errors,
219
+ historyAction: E.Action.Pop,
220
+ location: e.location,
221
+ matches: i,
222
+ loaderData: e.loaderData,
223
+ actionData: e.actionData,
224
+ errors: e.errors,
219
225
  initialized: !0,
220
- navigation: we.IDLE_NAVIGATION,
226
+ navigation: E.IDLE_NAVIGATION,
221
227
  restoreScrollPosition: null,
222
228
  preventScrollReset: !1,
223
229
  revalidation: "idle",
@@ -226,2910 +232,917 @@ function Ss(e, t, n = {}) {
226
232
  };
227
233
  },
228
234
  get routes() {
229
- return o;
235
+ return n;
230
236
  },
231
237
  get window() {
232
238
  },
233
239
  initialize() {
234
- throw i("initialize");
240
+ throw o("initialize");
235
241
  },
236
242
  subscribe() {
237
- throw i("subscribe");
243
+ throw o("subscribe");
238
244
  },
239
245
  enableScrollRestoration() {
240
- throw i("enableScrollRestoration");
246
+ throw o("enableScrollRestoration");
241
247
  },
242
248
  navigate() {
243
- throw i("navigate");
249
+ throw o("navigate");
244
250
  },
245
251
  fetch() {
246
- throw i("fetch");
252
+ throw o("fetch");
247
253
  },
248
254
  revalidate() {
249
- throw i("revalidate");
255
+ throw o("revalidate");
250
256
  },
251
- createHref: tr,
252
- encodeLocation: nr,
257
+ createHref: Je,
258
+ encodeLocation: Ge,
253
259
  getFetcher() {
254
- return we.IDLE_FETCHER;
260
+ return E.IDLE_FETCHER;
255
261
  },
256
262
  deleteFetcher() {
257
- throw i("deleteFetcher");
263
+ throw o("deleteFetcher");
258
264
  },
259
265
  dispose() {
260
- throw i("dispose");
266
+ throw o("dispose");
261
267
  },
262
268
  getBlocker() {
263
- return we.IDLE_BLOCKER;
269
+ return E.IDLE_BLOCKER;
264
270
  },
265
271
  deleteBlocker() {
266
- throw i("deleteBlocker");
272
+ throw o("deleteBlocker");
267
273
  },
268
274
  patchRoutes() {
269
- throw i("patchRoutes");
275
+ throw o("patchRoutes");
270
276
  },
271
277
  _internalFetchControllers: /* @__PURE__ */ new Map(),
272
278
  _internalActiveDeferreds: /* @__PURE__ */ new Map(),
273
279
  _internalSetRoutes() {
274
- throw i("_internalSetRoutes");
280
+ throw o("_internalSetRoutes");
275
281
  }
276
282
  };
277
283
  }
278
- function tr(e) {
279
- return typeof e == "string" ? e : Se.createPath(e);
284
+ function Je(t) {
285
+ return typeof t == "string" ? t : D.createPath(t);
280
286
  }
281
- function nr(e) {
282
- let t = typeof e == "string" ? e : Se.createPath(e);
283
- t = t.replace(/ $/, "%20");
284
- let n = Cs.test(t) ? new URL(t) : new URL(t, "http://localhost");
287
+ function Ge(t) {
288
+ let e = typeof t == "string" ? t : D.createPath(t);
289
+ e = e.replace(/ $/, "%20");
290
+ let r = kr.test(e) ? new URL(e) : new URL(e, "http://localhost");
285
291
  return {
286
- pathname: n.pathname,
287
- search: n.search,
288
- hash: n.hash
292
+ pathname: r.pathname,
293
+ search: r.search,
294
+ hash: r.hash
289
295
  };
290
296
  }
291
- const Cs = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ms = {
297
+ const kr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ar = {
292
298
  "&": "\\u0026",
293
299
  ">": "\\u003e",
294
300
  "<": "\\u003c",
295
301
  "\u2028": "\\u2028",
296
302
  "\u2029": "\\u2029"
297
- }, Rs = /[&><\u2028\u2029]/g;
298
- function Es(e) {
299
- return e.replace(Rs, (t) => Ms[t]);
300
- }
301
- at.StaticRouter = vs;
302
- var Ds = at.StaticRouterProvider = ws;
303
- at.createStaticHandler = bs;
304
- at.createStaticRouter = Ss;
305
- const Ps = ({
306
- router: e,
307
- hydrate: t = !1
308
- }) => /* @__PURE__ */ a.jsx(Kn, { children: /* @__PURE__ */ a.jsx(In, { children: /* @__PURE__ */ a.jsx(Tt.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(Wa, { router: e }) }) }) }), js = ({
309
- router: e,
310
- context: t,
311
- helmetContext: n
312
- }) => /* @__PURE__ */ a.jsx(Kn, { children: /* @__PURE__ */ a.jsx(In, { context: n, children: /* @__PURE__ */ a.jsx(Ds, { router: e, context: t }) }) });
313
- var ve, Tn, Ns = (Tn = class extends Wn {
314
- constructor(t = {}) {
303
+ }, Mr = /[&><\u2028\u2029]/g;
304
+ function Dr(t) {
305
+ return t.replace(Mr, (e) => Ar[e]);
306
+ }
307
+ W.StaticRouter = wr;
308
+ var Or = W.StaticRouterProvider = Nr;
309
+ W.createStaticHandler = Cr;
310
+ W.createStaticRouter = Er;
311
+ const Rr = ({
312
+ router: t,
313
+ hydrate: e = !1
314
+ }) => /* @__PURE__ */ a.jsx(Qe, { children: /* @__PURE__ */ a.jsx(Te, { children: /* @__PURE__ */ a.jsx(oe.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ a.jsx(vt, { router: t }) }) }) }), Ir = ({
315
+ router: t,
316
+ context: e,
317
+ helmetContext: r
318
+ }) => /* @__PURE__ */ a.jsx(Qe, { children: /* @__PURE__ */ a.jsx(Te, { context: r, children: /* @__PURE__ */ a.jsx(Or, { router: t, context: e }) }) });
319
+ var C, Oe, Tr = (Oe = class extends ze {
320
+ constructor(e = {}) {
315
321
  super();
316
- ce(this, ve);
317
- this.config = t, X(this, ve, /* @__PURE__ */ new Map());
322
+ y(this, C);
323
+ this.config = e, g(this, C, /* @__PURE__ */ new Map());
318
324
  }
319
- build(t, n, r) {
320
- const o = n.queryKey, s = n.queryHash ?? Yn(o, n);
321
- let i = this.get(s);
322
- return i || (i = new Io({
325
+ build(e, r, s) {
326
+ const n = r.queryKey, i = r.queryHash ?? qe(n, r);
327
+ let o = this.get(i);
328
+ return o || (o = new Ot({
323
329
  cache: this,
324
- queryKey: o,
325
- queryHash: s,
326
- options: t.defaultQueryOptions(n),
327
- state: r,
328
- defaultOptions: t.getQueryDefaults(o)
329
- }), this.add(i)), i;
330
- }
331
- add(t) {
332
- w(this, ve).has(t.queryHash) || (w(this, ve).set(t.queryHash, t), this.notify({
330
+ queryKey: n,
331
+ queryHash: i,
332
+ options: e.defaultQueryOptions(r),
333
+ state: s,
334
+ defaultOptions: e.getQueryDefaults(n)
335
+ }), this.add(o)), o;
336
+ }
337
+ add(e) {
338
+ l(this, C).has(e.queryHash) || (l(this, C).set(e.queryHash, e), this.notify({
333
339
  type: "added",
334
- query: t
340
+ query: e
335
341
  }));
336
342
  }
337
- remove(t) {
338
- const n = w(this, ve).get(t.queryHash);
339
- n && (t.destroy(), n === t && w(this, ve).delete(t.queryHash), this.notify({ type: "removed", query: t }));
343
+ remove(e) {
344
+ const r = l(this, C).get(e.queryHash);
345
+ r && (e.destroy(), r === e && l(this, C).delete(e.queryHash), this.notify({ type: "removed", query: e }));
340
346
  }
341
347
  clear() {
342
- se.batch(() => {
343
- this.getAll().forEach((t) => {
344
- this.remove(t);
348
+ b.batch(() => {
349
+ this.getAll().forEach((e) => {
350
+ this.remove(e);
345
351
  });
346
352
  });
347
353
  }
348
- get(t) {
349
- return w(this, ve).get(t);
354
+ get(e) {
355
+ return l(this, C).get(e);
350
356
  }
351
357
  getAll() {
352
- return [...w(this, ve).values()];
358
+ return [...l(this, C).values()];
353
359
  }
354
- find(t) {
355
- const n = { exact: !0, ...t };
360
+ find(e) {
361
+ const r = { exact: !0, ...e };
356
362
  return this.getAll().find(
357
- (r) => vn(n, r)
363
+ (s) => Ne(r, s)
358
364
  );
359
365
  }
360
- findAll(t = {}) {
361
- const n = this.getAll();
362
- return Object.keys(t).length > 0 ? n.filter((r) => vn(t, r)) : n;
366
+ findAll(e = {}) {
367
+ const r = this.getAll();
368
+ return Object.keys(e).length > 0 ? r.filter((s) => Ne(e, s)) : r;
363
369
  }
364
- notify(t) {
365
- se.batch(() => {
366
- this.listeners.forEach((n) => {
367
- n(t);
370
+ notify(e) {
371
+ b.batch(() => {
372
+ this.listeners.forEach((r) => {
373
+ r(e);
368
374
  });
369
375
  });
370
376
  }
371
377
  onFocus() {
372
- se.batch(() => {
373
- this.getAll().forEach((t) => {
374
- t.onFocus();
378
+ b.batch(() => {
379
+ this.getAll().forEach((e) => {
380
+ e.onFocus();
375
381
  });
376
382
  });
377
383
  }
378
384
  onOnline() {
379
- se.batch(() => {
380
- this.getAll().forEach((t) => {
381
- t.onOnline();
385
+ b.batch(() => {
386
+ this.getAll().forEach((e) => {
387
+ e.onOnline();
382
388
  });
383
389
  });
384
390
  }
385
- }, ve = new WeakMap(), Tn), oe, nt, _n, Ts = (_n = class extends Wn {
386
- constructor(t = {}) {
391
+ }, C = new WeakMap(), Oe), x, V, Re, _r = (Re = class extends ze {
392
+ constructor(e = {}) {
387
393
  super();
388
- ce(this, oe);
389
- ce(this, nt);
390
- this.config = t, X(this, oe, /* @__PURE__ */ new Map()), X(this, nt, Date.now());
394
+ y(this, x);
395
+ y(this, V);
396
+ this.config = e, g(this, x, /* @__PURE__ */ new Map()), g(this, V, Date.now());
391
397
  }
392
- build(t, n, r) {
393
- const o = new no({
398
+ build(e, r, s) {
399
+ const n = new Kt({
394
400
  mutationCache: this,
395
- mutationId: ++ut(this, nt)._,
396
- options: t.defaultMutationOptions(n),
397
- state: r
401
+ mutationId: ++X(this, V)._,
402
+ options: e.defaultMutationOptions(r),
403
+ state: s
398
404
  });
399
- return this.add(o), o;
400
- }
401
- add(t) {
402
- const n = dt(t), r = w(this, oe).get(n) ?? [];
403
- r.push(t), w(this, oe).set(n, r), this.notify({ type: "added", mutation: t });
404
- }
405
- remove(t) {
406
- var r;
407
- const n = dt(t);
408
- if (w(this, oe).has(n)) {
409
- const o = (r = w(this, oe).get(n)) == null ? void 0 : r.filter((s) => s !== t);
410
- o && (o.length === 0 ? w(this, oe).delete(n) : w(this, oe).set(n, o));
405
+ return this.add(n), n;
406
+ }
407
+ add(e) {
408
+ const r = Z(e), s = l(this, x).get(r) ?? [];
409
+ s.push(e), l(this, x).set(r, s), this.notify({ type: "added", mutation: e });
410
+ }
411
+ remove(e) {
412
+ var s;
413
+ const r = Z(e);
414
+ if (l(this, x).has(r)) {
415
+ const n = (s = l(this, x).get(r)) == null ? void 0 : s.filter((i) => i !== e);
416
+ n && (n.length === 0 ? l(this, x).delete(r) : l(this, x).set(r, n));
411
417
  }
412
- this.notify({ type: "removed", mutation: t });
418
+ this.notify({ type: "removed", mutation: e });
413
419
  }
414
- canRun(t) {
415
- var r;
416
- const n = (r = w(this, oe).get(dt(t))) == null ? void 0 : r.find((o) => o.state.status === "pending");
417
- return !n || n === t;
420
+ canRun(e) {
421
+ var s;
422
+ const r = (s = l(this, x).get(Z(e))) == null ? void 0 : s.find((n) => n.state.status === "pending");
423
+ return !r || r === e;
418
424
  }
419
- runNext(t) {
420
- var r;
421
- const n = (r = w(this, oe).get(dt(t))) == null ? void 0 : r.find((o) => o !== t && o.state.isPaused);
422
- return (n == null ? void 0 : n.continue()) ?? Promise.resolve();
425
+ runNext(e) {
426
+ var s;
427
+ const r = (s = l(this, x).get(Z(e))) == null ? void 0 : s.find((n) => n !== e && n.state.isPaused);
428
+ return (r == null ? void 0 : r.continue()) ?? Promise.resolve();
423
429
  }
424
430
  clear() {
425
- se.batch(() => {
426
- this.getAll().forEach((t) => {
427
- this.remove(t);
431
+ b.batch(() => {
432
+ this.getAll().forEach((e) => {
433
+ this.remove(e);
428
434
  });
429
435
  });
430
436
  }
431
437
  getAll() {
432
- return [...w(this, oe).values()].flat();
438
+ return [...l(this, x).values()].flat();
433
439
  }
434
- find(t) {
435
- const n = { exact: !0, ...t };
440
+ find(e) {
441
+ const r = { exact: !0, ...e };
436
442
  return this.getAll().find(
437
- (r) => wn(n, r)
443
+ (s) => Pe(r, s)
438
444
  );
439
445
  }
440
- findAll(t = {}) {
441
- return this.getAll().filter((n) => wn(t, n));
446
+ findAll(e = {}) {
447
+ return this.getAll().filter((r) => Pe(e, r));
442
448
  }
443
- notify(t) {
444
- se.batch(() => {
445
- this.listeners.forEach((n) => {
446
- n(t);
449
+ notify(e) {
450
+ b.batch(() => {
451
+ this.listeners.forEach((r) => {
452
+ r(e);
447
453
  });
448
454
  });
449
455
  }
450
456
  resumePausedMutations() {
451
- const t = this.getAll().filter((n) => n.state.isPaused);
452
- return se.batch(
457
+ const e = this.getAll().filter((r) => r.state.isPaused);
458
+ return b.batch(
453
459
  () => Promise.all(
454
- t.map((n) => n.continue().catch(be))
460
+ e.map((r) => r.continue().catch(M))
455
461
  )
456
462
  );
457
463
  }
458
- }, oe = new WeakMap(), nt = new WeakMap(), _n);
459
- function dt(e) {
460
- var t;
461
- return ((t = e.options.scope) == null ? void 0 : t.id) ?? String(e.mutationId);
464
+ }, x = new WeakMap(), V = new WeakMap(), Re);
465
+ function Z(t) {
466
+ var e;
467
+ return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
462
468
  }
463
- function Cn(e) {
469
+ function Ae(t) {
464
470
  return {
465
- onFetch: (t, n) => {
466
- var f, c, d, R, C;
467
- const r = t.options, o = (d = (c = (f = t.fetchOptions) == null ? void 0 : f.meta) == null ? void 0 : c.fetchMore) == null ? void 0 : d.direction, s = ((R = t.state.data) == null ? void 0 : R.pages) || [], i = ((C = t.state.data) == null ? void 0 : C.pageParams) || [];
468
- let l = { pages: [], pageParams: [] }, u = 0;
471
+ onFetch: (e, r) => {
472
+ var j, N, p, P, h;
473
+ const s = e.options, n = (p = (N = (j = e.fetchOptions) == null ? void 0 : j.meta) == null ? void 0 : N.fetchMore) == null ? void 0 : p.direction, i = ((P = e.state.data) == null ? void 0 : P.pages) || [], o = ((h = e.state.data) == null ? void 0 : h.pageParams) || [];
474
+ let u = { pages: [], pageParams: [] }, c = 0;
469
475
  const m = async () => {
470
- let g = !1;
471
- const T = (P) => {
472
- Object.defineProperty(P, "signal", {
476
+ let f = !1;
477
+ const L = (w) => {
478
+ Object.defineProperty(w, "signal", {
473
479
  enumerable: !0,
474
- get: () => (t.signal.aborted ? g = !0 : t.signal.addEventListener("abort", () => {
475
- g = !0;
476
- }), t.signal)
480
+ get: () => (e.signal.aborted ? f = !0 : e.signal.addEventListener("abort", () => {
481
+ f = !0;
482
+ }), e.signal)
477
483
  });
478
- }, M = Ao(t.options, t.fetchOptions), A = async (P, v, z) => {
479
- if (g)
484
+ }, lt = Rt(e.options, e.fetchOptions), ve = async (w, O, K) => {
485
+ if (f)
480
486
  return Promise.reject();
481
- if (v == null && P.pages.length)
482
- return Promise.resolve(P);
483
- const J = {
484
- queryKey: t.queryKey,
485
- pageParam: v,
486
- direction: z ? "backward" : "forward",
487
- meta: t.options.meta
487
+ if (O == null && w.pages.length)
488
+ return Promise.resolve(w);
489
+ const Y = {
490
+ queryKey: e.queryKey,
491
+ pageParam: O,
492
+ direction: K ? "backward" : "forward",
493
+ meta: e.options.meta
488
494
  };
489
- T(J);
490
- const b = await M(
491
- J
492
- ), { maxPages: j } = t.options, D = z ? ko : $o;
495
+ L(Y);
496
+ const ct = await lt(
497
+ Y
498
+ ), { maxPages: xe } = e.options, be = K ? It : Tt;
493
499
  return {
494
- pages: D(P.pages, b, j),
495
- pageParams: D(P.pageParams, v, j)
500
+ pages: be(w.pages, ct, xe),
501
+ pageParams: be(w.pageParams, O, xe)
496
502
  };
497
503
  };
498
- if (o && s.length) {
499
- const P = o === "backward", v = P ? _s : Mn, z = {
500
- pages: s,
501
- pageParams: i
502
- }, J = v(r, z);
503
- l = await A(z, J, P);
504
+ if (n && i.length) {
505
+ const w = n === "backward", O = w ? Fr : Me, K = {
506
+ pages: i,
507
+ pageParams: o
508
+ }, Y = O(s, K);
509
+ u = await ve(K, Y, w);
504
510
  } else {
505
- const P = e ?? s.length;
511
+ const w = t ?? i.length;
506
512
  do {
507
- const v = u === 0 ? i[0] ?? r.initialPageParam : Mn(r, l);
508
- if (u > 0 && v == null)
513
+ const O = c === 0 ? o[0] ?? s.initialPageParam : Me(s, u);
514
+ if (c > 0 && O == null)
509
515
  break;
510
- l = await A(l, v), u++;
511
- } while (u < P);
516
+ u = await ve(u, O), c++;
517
+ } while (c < w);
512
518
  }
513
- return l;
519
+ return u;
514
520
  };
515
- t.options.persister ? t.fetchFn = () => {
516
- var g, T;
517
- return (T = (g = t.options).persister) == null ? void 0 : T.call(
518
- g,
521
+ e.options.persister ? e.fetchFn = () => {
522
+ var f, L;
523
+ return (L = (f = e.options).persister) == null ? void 0 : L.call(
524
+ f,
519
525
  m,
520
526
  {
521
- queryKey: t.queryKey,
522
- meta: t.options.meta,
523
- signal: t.signal
527
+ queryKey: e.queryKey,
528
+ meta: e.options.meta,
529
+ signal: e.signal
524
530
  },
525
- n
531
+ r
526
532
  );
527
- } : t.fetchFn = m;
533
+ } : e.fetchFn = m;
528
534
  }
529
535
  };
530
536
  }
531
- function Mn(e, { pages: t, pageParams: n }) {
532
- const r = t.length - 1;
533
- return t.length > 0 ? e.getNextPageParam(
534
- t[r],
535
- t,
536
- n[r],
537
- n
537
+ function Me(t, { pages: e, pageParams: r }) {
538
+ const s = e.length - 1;
539
+ return e.length > 0 ? t.getNextPageParam(
540
+ e[s],
541
+ e,
542
+ r[s],
543
+ r
538
544
  ) : void 0;
539
545
  }
540
- function _s(e, { pages: t, pageParams: n }) {
541
- var r;
542
- return t.length > 0 ? (r = e.getPreviousPageParam) == null ? void 0 : r.call(e, t[0], t, n[0], n) : void 0;
546
+ function Fr(t, { pages: e, pageParams: r }) {
547
+ var s;
548
+ return e.length > 0 ? (s = t.getPreviousPageParam) == null ? void 0 : s.call(t, e[0], e, r[0], r) : void 0;
543
549
  }
544
- var $, Pe, je, He, Ue, Ne, ze, Ke, On, Os = (On = class {
545
- constructor(e = {}) {
546
- ce(this, $);
547
- ce(this, Pe);
548
- ce(this, je);
549
- ce(this, He);
550
- ce(this, Ue);
551
- ce(this, Ne);
552
- ce(this, ze);
553
- ce(this, Ke);
554
- X(this, $, e.queryCache || new Ns()), X(this, Pe, e.mutationCache || new Ts()), X(this, je, e.defaultOptions || {}), X(this, He, /* @__PURE__ */ new Map()), X(this, Ue, /* @__PURE__ */ new Map()), X(this, Ne, 0);
550
+ var d, R, I, B, H, T, z, q, Ie, Qr = (Ie = class {
551
+ constructor(t = {}) {
552
+ y(this, d);
553
+ y(this, R);
554
+ y(this, I);
555
+ y(this, B);
556
+ y(this, H);
557
+ y(this, T);
558
+ y(this, z);
559
+ y(this, q);
560
+ g(this, d, t.queryCache || new Tr()), g(this, R, t.mutationCache || new _r()), g(this, I, t.defaultOptions || {}), g(this, B, /* @__PURE__ */ new Map()), g(this, H, /* @__PURE__ */ new Map()), g(this, T, 0);
555
561
  }
556
562
  mount() {
557
- ut(this, Ne)._++, w(this, Ne) === 1 && (X(this, ze, Fo.subscribe(async (e) => {
558
- e && (await this.resumePausedMutations(), w(this, $).onFocus());
559
- })), X(this, Ke, yn.subscribe(async (e) => {
560
- e && (await this.resumePausedMutations(), w(this, $).onOnline());
563
+ X(this, T)._++, l(this, T) === 1 && (g(this, z, _t.subscribe(async (t) => {
564
+ t && (await this.resumePausedMutations(), l(this, d).onFocus());
565
+ })), g(this, q, Se.subscribe(async (t) => {
566
+ t && (await this.resumePausedMutations(), l(this, d).onOnline());
561
567
  })));
562
568
  }
563
569
  unmount() {
564
- var e, t;
565
- ut(this, Ne)._--, w(this, Ne) === 0 && ((e = w(this, ze)) == null || e.call(this), X(this, ze, void 0), (t = w(this, Ke)) == null || t.call(this), X(this, Ke, void 0));
570
+ var t, e;
571
+ X(this, T)._--, l(this, T) === 0 && ((t = l(this, z)) == null || t.call(this), g(this, z, void 0), (e = l(this, q)) == null || e.call(this), g(this, q, void 0));
566
572
  }
567
- isFetching(e) {
568
- return w(this, $).findAll({ ...e, fetchStatus: "fetching" }).length;
573
+ isFetching(t) {
574
+ return l(this, d).findAll({ ...t, fetchStatus: "fetching" }).length;
569
575
  }
570
- isMutating(e) {
571
- return w(this, Pe).findAll({ ...e, status: "pending" }).length;
576
+ isMutating(t) {
577
+ return l(this, R).findAll({ ...t, status: "pending" }).length;
572
578
  }
573
- getQueryData(e) {
574
- var n;
575
- const t = this.defaultQueryOptions({ queryKey: e });
576
- return (n = w(this, $).get(t.queryHash)) == null ? void 0 : n.state.data;
579
+ getQueryData(t) {
580
+ var r;
581
+ const e = this.defaultQueryOptions({ queryKey: t });
582
+ return (r = l(this, d).get(e.queryHash)) == null ? void 0 : r.state.data;
577
583
  }
578
- ensureQueryData(e) {
579
- const t = this.getQueryData(e.queryKey);
580
- if (t === void 0)
581
- return this.fetchQuery(e);
584
+ ensureQueryData(t) {
585
+ const e = this.getQueryData(t.queryKey);
586
+ if (e === void 0)
587
+ return this.fetchQuery(t);
582
588
  {
583
- const n = this.defaultQueryOptions(e), r = w(this, $).build(this, n);
584
- return e.revalidateIfStale && r.isStaleByTime(xn(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(t);
589
+ const r = this.defaultQueryOptions(t), s = l(this, d).build(this, r);
590
+ return t.revalidateIfStale && s.isStaleByTime(Ce(r.staleTime, s)) && this.prefetchQuery(r), Promise.resolve(e);
585
591
  }
586
592
  }
587
- getQueriesData(e) {
588
- return w(this, $).findAll(e).map(({ queryKey: t, state: n }) => {
589
- const r = n.data;
590
- return [t, r];
593
+ getQueriesData(t) {
594
+ return l(this, d).findAll(t).map(({ queryKey: e, state: r }) => {
595
+ const s = r.data;
596
+ return [e, s];
591
597
  });
592
598
  }
593
- setQueryData(e, t, n) {
594
- const r = this.defaultQueryOptions({ queryKey: e }), o = w(this, $).get(
595
- r.queryHash
596
- ), s = o == null ? void 0 : o.state.data, i = Lo(t, s);
597
- if (i !== void 0)
598
- return w(this, $).build(this, r).setData(i, { ...n, manual: !0 });
599
- }
600
- setQueriesData(e, t, n) {
601
- return se.batch(
602
- () => w(this, $).findAll(e).map(({ queryKey: r }) => [
603
- r,
604
- this.setQueryData(r, t, n)
599
+ setQueryData(t, e, r) {
600
+ const s = this.defaultQueryOptions({ queryKey: t }), n = l(this, d).get(
601
+ s.queryHash
602
+ ), i = n == null ? void 0 : n.state.data, o = Ft(e, i);
603
+ if (o !== void 0)
604
+ return l(this, d).build(this, s).setData(o, { ...r, manual: !0 });
605
+ }
606
+ setQueriesData(t, e, r) {
607
+ return b.batch(
608
+ () => l(this, d).findAll(t).map(({ queryKey: s }) => [
609
+ s,
610
+ this.setQueryData(s, e, r)
605
611
  ])
606
612
  );
607
613
  }
608
- getQueryState(e) {
609
- var n;
610
- const t = this.defaultQueryOptions({ queryKey: e });
611
- return (n = w(this, $).get(t.queryHash)) == null ? void 0 : n.state;
612
- }
613
- removeQueries(e) {
614
- const t = w(this, $);
615
- se.batch(() => {
616
- t.findAll(e).forEach((n) => {
617
- t.remove(n);
614
+ getQueryState(t) {
615
+ var r;
616
+ const e = this.defaultQueryOptions({ queryKey: t });
617
+ return (r = l(this, d).get(e.queryHash)) == null ? void 0 : r.state;
618
+ }
619
+ removeQueries(t) {
620
+ const e = l(this, d);
621
+ b.batch(() => {
622
+ e.findAll(t).forEach((r) => {
623
+ e.remove(r);
618
624
  });
619
625
  });
620
626
  }
621
- resetQueries(e, t) {
622
- const n = w(this, $), r = {
627
+ resetQueries(t, e) {
628
+ const r = l(this, d), s = {
623
629
  type: "active",
624
- ...e
630
+ ...t
625
631
  };
626
- return se.batch(() => (n.findAll(e).forEach((o) => {
627
- o.reset();
628
- }), this.refetchQueries(r, t)));
632
+ return b.batch(() => (r.findAll(t).forEach((n) => {
633
+ n.reset();
634
+ }), this.refetchQueries(s, e)));
629
635
  }
630
- cancelQueries(e = {}, t = {}) {
631
- const n = { revert: !0, ...t }, r = se.batch(
632
- () => w(this, $).findAll(e).map((o) => o.cancel(n))
636
+ cancelQueries(t = {}, e = {}) {
637
+ const r = { revert: !0, ...e }, s = b.batch(
638
+ () => l(this, d).findAll(t).map((n) => n.cancel(r))
633
639
  );
634
- return Promise.all(r).then(be).catch(be);
640
+ return Promise.all(s).then(M).catch(M);
635
641
  }
636
- invalidateQueries(e = {}, t = {}) {
637
- return se.batch(() => {
638
- if (w(this, $).findAll(e).forEach((r) => {
639
- r.invalidate();
640
- }), e.refetchType === "none")
642
+ invalidateQueries(t = {}, e = {}) {
643
+ return b.batch(() => {
644
+ if (l(this, d).findAll(t).forEach((s) => {
645
+ s.invalidate();
646
+ }), t.refetchType === "none")
641
647
  return Promise.resolve();
642
- const n = {
643
- ...e,
644
- type: e.refetchType ?? e.type ?? "active"
648
+ const r = {
649
+ ...t,
650
+ type: t.refetchType ?? t.type ?? "active"
645
651
  };
646
- return this.refetchQueries(n, t);
652
+ return this.refetchQueries(r, e);
647
653
  });
648
654
  }
649
- refetchQueries(e = {}, t) {
650
- const n = {
651
- ...t,
652
- cancelRefetch: (t == null ? void 0 : t.cancelRefetch) ?? !0
653
- }, r = se.batch(
654
- () => w(this, $).findAll(e).filter((o) => !o.isDisabled()).map((o) => {
655
- let s = o.fetch(void 0, n);
656
- return n.throwOnError || (s = s.catch(be)), o.state.fetchStatus === "paused" ? Promise.resolve() : s;
655
+ refetchQueries(t = {}, e) {
656
+ const r = {
657
+ ...e,
658
+ cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
659
+ }, s = b.batch(
660
+ () => l(this, d).findAll(t).filter((n) => !n.isDisabled()).map((n) => {
661
+ let i = n.fetch(void 0, r);
662
+ return r.throwOnError || (i = i.catch(M)), n.state.fetchStatus === "paused" ? Promise.resolve() : i;
657
663
  })
658
664
  );
659
- return Promise.all(r).then(be);
665
+ return Promise.all(s).then(M);
660
666
  }
661
- fetchQuery(e) {
662
- const t = this.defaultQueryOptions(e);
663
- t.retry === void 0 && (t.retry = !1);
664
- const n = w(this, $).build(this, t);
665
- return n.isStaleByTime(
666
- xn(t.staleTime, n)
667
- ) ? n.fetch(t) : Promise.resolve(n.state.data);
667
+ fetchQuery(t) {
668
+ const e = this.defaultQueryOptions(t);
669
+ e.retry === void 0 && (e.retry = !1);
670
+ const r = l(this, d).build(this, e);
671
+ return r.isStaleByTime(
672
+ Ce(e.staleTime, r)
673
+ ) ? r.fetch(e) : Promise.resolve(r.state.data);
668
674
  }
669
- prefetchQuery(e) {
670
- return this.fetchQuery(e).then(be).catch(be);
675
+ prefetchQuery(t) {
676
+ return this.fetchQuery(t).then(M).catch(M);
671
677
  }
672
- fetchInfiniteQuery(e) {
673
- return e.behavior = Cn(e.pages), this.fetchQuery(e);
678
+ fetchInfiniteQuery(t) {
679
+ return t.behavior = Ae(t.pages), this.fetchQuery(t);
674
680
  }
675
- prefetchInfiniteQuery(e) {
676
- return this.fetchInfiniteQuery(e).then(be).catch(be);
681
+ prefetchInfiniteQuery(t) {
682
+ return this.fetchInfiniteQuery(t).then(M).catch(M);
677
683
  }
678
- ensureInfiniteQueryData(e) {
679
- return e.behavior = Cn(e.pages), this.ensureQueryData(e);
684
+ ensureInfiniteQueryData(t) {
685
+ return t.behavior = Ae(t.pages), this.ensureQueryData(t);
680
686
  }
681
687
  resumePausedMutations() {
682
- return yn.isOnline() ? w(this, Pe).resumePausedMutations() : Promise.resolve();
688
+ return Se.isOnline() ? l(this, R).resumePausedMutations() : Promise.resolve();
683
689
  }
684
690
  getQueryCache() {
685
- return w(this, $);
691
+ return l(this, d);
686
692
  }
687
693
  getMutationCache() {
688
- return w(this, Pe);
694
+ return l(this, R);
689
695
  }
690
696
  getDefaultOptions() {
691
- return w(this, je);
697
+ return l(this, I);
692
698
  }
693
- setDefaultOptions(e) {
694
- X(this, je, e);
699
+ setDefaultOptions(t) {
700
+ g(this, I, t);
695
701
  }
696
- setQueryDefaults(e, t) {
697
- w(this, He).set(bn(e), {
698
- queryKey: e,
699
- defaultOptions: t
702
+ setQueryDefaults(t, e) {
703
+ l(this, B).set(Ee(t), {
704
+ queryKey: t,
705
+ defaultOptions: e
700
706
  });
701
707
  }
702
- getQueryDefaults(e) {
703
- const t = [...w(this, He).values()];
704
- let n = {};
705
- return t.forEach((r) => {
706
- Sn(e, r.queryKey) && (n = { ...n, ...r.defaultOptions });
707
- }), n;
708
- }
709
- setMutationDefaults(e, t) {
710
- w(this, Ue).set(bn(e), {
711
- mutationKey: e,
712
- defaultOptions: t
708
+ getQueryDefaults(t) {
709
+ const e = [...l(this, B).values()];
710
+ let r = {};
711
+ return e.forEach((s) => {
712
+ ke(t, s.queryKey) && (r = { ...r, ...s.defaultOptions });
713
+ }), r;
714
+ }
715
+ setMutationDefaults(t, e) {
716
+ l(this, H).set(Ee(t), {
717
+ mutationKey: t,
718
+ defaultOptions: e
713
719
  });
714
720
  }
715
- getMutationDefaults(e) {
716
- const t = [...w(this, Ue).values()];
717
- let n = {};
718
- return t.forEach((r) => {
719
- Sn(e, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
720
- }), n;
721
- }
722
- defaultQueryOptions(e) {
723
- if (e._defaulted)
724
- return e;
725
- const t = {
726
- ...w(this, je).queries,
727
- ...this.getQueryDefaults(e.queryKey),
728
- ...e,
721
+ getMutationDefaults(t) {
722
+ const e = [...l(this, H).values()];
723
+ let r = {};
724
+ return e.forEach((s) => {
725
+ ke(t, s.mutationKey) && (r = { ...r, ...s.defaultOptions });
726
+ }), r;
727
+ }
728
+ defaultQueryOptions(t) {
729
+ if (t._defaulted)
730
+ return t;
731
+ const e = {
732
+ ...l(this, I).queries,
733
+ ...this.getQueryDefaults(t.queryKey),
734
+ ...t,
729
735
  _defaulted: !0
730
736
  };
731
- return t.queryHash || (t.queryHash = Yn(
732
- t.queryKey,
733
- t
734
- )), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.enabled !== !0 && t.queryFn === Bo && (t.enabled = !1), t;
735
- }
736
- defaultMutationOptions(e) {
737
- return e != null && e._defaulted ? e : {
738
- ...w(this, je).mutations,
739
- ...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
740
- ...e,
737
+ return e.queryHash || (e.queryHash = qe(
738
+ e.queryKey,
739
+ e
740
+ )), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.enabled !== !0 && e.queryFn === Qt && (e.enabled = !1), e;
741
+ }
742
+ defaultMutationOptions(t) {
743
+ return t != null && t._defaulted ? t : {
744
+ ...l(this, I).mutations,
745
+ ...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
746
+ ...t,
741
747
  _defaulted: !0
742
748
  };
743
749
  }
744
750
  clear() {
745
- w(this, $).clear(), w(this, Pe).clear();
751
+ l(this, d).clear(), l(this, R).clear();
746
752
  }
747
- }, $ = new WeakMap(), Pe = new WeakMap(), je = new WeakMap(), He = new WeakMap(), Ue = new WeakMap(), Ne = new WeakMap(), ze = new WeakMap(), Ke = new WeakMap(), On);
748
- const Is = qn(null), Rt = {
753
+ }, d = new WeakMap(), R = new WeakMap(), I = new WeakMap(), B = new WeakMap(), H = new WeakMap(), T = new WeakMap(), z = new WeakMap(), q = new WeakMap(), Ie);
754
+ const Lr = Le(null), ne = {
749
755
  didCatch: !1,
750
756
  error: null
751
757
  };
752
- class As extends Co {
753
- constructor(t) {
754
- super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Rt;
758
+ class Br extends Ct {
759
+ constructor(e) {
760
+ super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = ne;
755
761
  }
756
- static getDerivedStateFromError(t) {
762
+ static getDerivedStateFromError(e) {
757
763
  return {
758
764
  didCatch: !0,
759
- error: t
765
+ error: e
760
766
  };
761
767
  }
762
768
  resetErrorBoundary() {
763
769
  const {
764
- error: t
770
+ error: e
765
771
  } = this.state;
766
- if (t !== null) {
767
- for (var n, r, o = arguments.length, s = new Array(o), i = 0; i < o; i++)
768
- s[i] = arguments[i];
769
- (n = (r = this.props).onReset) === null || n === void 0 || n.call(r, {
770
- args: s,
772
+ if (e !== null) {
773
+ for (var r, s, n = arguments.length, i = new Array(n), o = 0; o < n; o++)
774
+ i[o] = arguments[o];
775
+ (r = (s = this.props).onReset) === null || r === void 0 || r.call(s, {
776
+ args: i,
771
777
  reason: "imperative-api"
772
- }), this.setState(Rt);
778
+ }), this.setState(ne);
773
779
  }
774
780
  }
775
- componentDidCatch(t, n) {
776
- var r, o;
777
- (r = (o = this.props).onError) === null || r === void 0 || r.call(o, t, n);
781
+ componentDidCatch(e, r) {
782
+ var s, n;
783
+ (s = (n = this.props).onError) === null || s === void 0 || s.call(n, e, r);
778
784
  }
779
- componentDidUpdate(t, n) {
785
+ componentDidUpdate(e, r) {
780
786
  const {
781
- didCatch: r
787
+ didCatch: s
782
788
  } = this.state, {
783
- resetKeys: o
789
+ resetKeys: n
784
790
  } = this.props;
785
- if (r && n.error !== null && ks(t.resetKeys, o)) {
786
- var s, i;
787
- (s = (i = this.props).onReset) === null || s === void 0 || s.call(i, {
788
- next: o,
789
- prev: t.resetKeys,
791
+ if (s && r.error !== null && Hr(e.resetKeys, n)) {
792
+ var i, o;
793
+ (i = (o = this.props).onReset) === null || i === void 0 || i.call(o, {
794
+ next: n,
795
+ prev: e.resetKeys,
790
796
  reason: "keys"
791
- }), this.setState(Rt);
797
+ }), this.setState(ne);
792
798
  }
793
799
  }
794
800
  render() {
795
801
  const {
796
- children: t,
797
- fallbackRender: n,
798
- FallbackComponent: r,
799
- fallback: o
802
+ children: e,
803
+ fallbackRender: r,
804
+ FallbackComponent: s,
805
+ fallback: n
800
806
  } = this.props, {
801
- didCatch: s,
802
- error: i
807
+ didCatch: i,
808
+ error: o
803
809
  } = this.state;
804
- let l = t;
805
- if (s) {
806
- const u = {
807
- error: i,
810
+ let u = e;
811
+ if (i) {
812
+ const c = {
813
+ error: o,
808
814
  resetErrorBoundary: this.resetErrorBoundary
809
815
  };
810
- if (typeof n == "function")
811
- l = n(u);
812
- else if (r)
813
- l = gn(r, u);
814
- else if (o === null || Mo(o))
815
- l = o;
816
+ if (typeof r == "function")
817
+ u = r(c);
818
+ else if (s)
819
+ u = we(s, c);
820
+ else if (n !== void 0)
821
+ u = n;
816
822
  else
817
- throw i;
823
+ throw o;
818
824
  }
819
- return gn(Is.Provider, {
825
+ return we(Lr.Provider, {
820
826
  value: {
821
- didCatch: s,
822
- error: i,
827
+ didCatch: i,
828
+ error: o,
823
829
  resetErrorBoundary: this.resetErrorBoundary
824
830
  }
825
- }, l);
826
- }
827
- }
828
- function ks() {
829
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
830
- return e.length !== t.length || e.some((n, r) => !Object.is(n, t[r]));
831
- }
832
- const $s = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", Fs = (e) => "getRoutes" in e && typeof e.getRoutes == "function", Ls = (e) => "renderSearch" in e && typeof e.renderSearch == "function", Bs = (e) => "initialize" in e && typeof e.initialize == "function", Hs = (e) => "getHead" in e && typeof e.getHead == "function", Us = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", zs = (e) => "getIdentities" in e && typeof e.getIdentities == "function", rr = new Os();
833
- class Ks {
834
- constructor(t) {
835
- ae(this, "plugins");
836
- ae(this, "sidebars");
837
- ae(this, "topNavigation");
838
- ae(this, "meta");
839
- ae(this, "page");
840
- ae(this, "authentication");
841
- ae(this, "navigationPlugins");
842
- ae(this, "initialize", async () => {
831
+ }, u);
832
+ }
833
+ }
834
+ function Hr() {
835
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
836
+ return t.length !== e.length || t.some((r, s) => !Object.is(r, e[s]));
837
+ }
838
+ const zr = (t) => "getProfileMenuItems" in t && typeof t.getProfileMenuItems == "function", qr = (t) => "getRoutes" in t && typeof t.getRoutes == "function", Kr = (t) => "renderSearch" in t && typeof t.renderSearch == "function", $r = (t) => "initialize" in t && typeof t.initialize == "function", Ur = (t) => "getHead" in t && typeof t.getHead == "function", Vr = (t) => "getMdxComponents" in t && typeof t.getMdxComponents == "function", Wr = (t) => "getIdentities" in t && typeof t.getIdentities == "function", et = new Qr();
839
+ class Yr {
840
+ constructor(e) {
841
+ v(this, "plugins");
842
+ v(this, "sidebars");
843
+ v(this, "topNavigation");
844
+ v(this, "meta");
845
+ v(this, "page");
846
+ v(this, "authentication");
847
+ v(this, "navigationPlugins");
848
+ v(this, "initialize", async () => {
843
849
  await Promise.all(
844
- this.plugins.filter(Bs).map((t) => {
845
- var n;
846
- return (n = t.initialize) == null ? void 0 : n.call(t, this);
850
+ this.plugins.filter($r).map((e) => {
851
+ var r;
852
+ return (r = e.initialize) == null ? void 0 : r.call(e, this);
847
853
  })
848
854
  );
849
855
  });
850
- ae(this, "invalidateCache", async (t) => {
851
- await rr.invalidateQueries({ queryKey: t });
856
+ v(this, "invalidateCache", async (e) => {
857
+ await et.invalidateQueries({ queryKey: e });
852
858
  });
853
- ae(this, "getApiIdentities", async () => (await Promise.all(
854
- this.plugins.filter(zs).map((n) => n.getIdentities(this))
859
+ v(this, "getApiIdentities", async () => (await Promise.all(
860
+ this.plugins.filter(Wr).map((r) => r.getIdentities(this))
855
861
  )).flat());
856
- ae(this, "getPluginSidebar", async (t) => (await Promise.all(
862
+ v(this, "getPluginSidebar", async (e) => (await Promise.all(
857
863
  this.navigationPlugins.map(
858
- (r) => {
859
- var o;
860
- return (o = r.getSidebar) == null ? void 0 : o.call(r, wt(t));
864
+ (s) => {
865
+ var n;
866
+ return (n = s.getSidebar) == null ? void 0 : n.call(s, U(e));
861
867
  }
862
868
  )
863
- )).flatMap((r) => r ?? []));
864
- ae(this, "signRequest", async (t) => {
869
+ )).flatMap((s) => s ?? []));
870
+ v(this, "signRequest", async (e) => {
865
871
  if (!this.authentication)
866
872
  throw new Error("No authentication provider configured");
867
- const n = await this.authentication.getAccessToken();
868
- return t.headers.set("Authorization", `Bearer ${n}`), t;
873
+ const r = await this.authentication.getAccessToken();
874
+ return e.headers.set("Authorization", `Bearer ${r}`), e;
869
875
  });
870
- this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(Fs), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
876
+ this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(qr), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page;
871
877
  }
872
878
  }
873
- function qs({ error: e, resetErrorBoundary: t }) {
874
- return /* @__PURE__ */ a.jsx(kn, { error: e });
879
+ function Xr({ error: t, resetErrorBoundary: e }) {
880
+ return /* @__PURE__ */ a.jsx(Fe, { error: t });
875
881
  }
876
- const ft = globalThis;
877
- (!ft.requestIdleCallback || !ft.cancelIdleCallback) && (ft.requestIdleCallback = (e) => setTimeout(e, 1), ft.cancelIdleCallback = clearTimeout);
878
- var _t = ["Enter", " "], Qs = ["ArrowDown", "PageUp", "Home"], ar = ["ArrowUp", "PageDown", "End"], Vs = [...Qs, ...ar], Gs = {
879
- ltr: [..._t, "ArrowRight"],
880
- rtl: [..._t, "ArrowLeft"]
881
- }, Ws = {
882
- ltr: ["ArrowLeft"],
883
- rtl: ["ArrowRight"]
884
- }, ot = "Menu", [et, Ys, Xs] = ro(ot), [ke, or] = $n(ot, [
885
- Xs,
886
- Fn,
887
- Jn
888
- ]), st = Fn(), sr = Jn(), [ir, Te] = ke(ot), [Zs, it] = ke(ot), lr = (e) => {
889
- const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, l = st(t), [u, m] = h.useState(null), f = h.useRef(!1), c = Lt(s), d = mo(o);
890
- return h.useEffect(() => {
891
- const R = () => {
892
- f.current = !0, document.addEventListener("pointerdown", C, { capture: !0, once: !0 }), document.addEventListener("pointermove", C, { capture: !0, once: !0 });
893
- }, C = () => f.current = !1;
894
- return document.addEventListener("keydown", R, { capture: !0 }), () => {
895
- document.removeEventListener("keydown", R, { capture: !0 }), document.removeEventListener("pointerdown", C, { capture: !0 }), document.removeEventListener("pointermove", C, { capture: !0 });
896
- };
897
- }, []), /* @__PURE__ */ a.jsx(Bn, { ...l, children: /* @__PURE__ */ a.jsx(
898
- ir,
899
- {
900
- scope: t,
901
- open: n,
902
- onOpenChange: c,
903
- content: u,
904
- onContentChange: m,
905
- children: /* @__PURE__ */ a.jsx(
906
- Zs,
907
- {
908
- scope: t,
909
- onClose: h.useCallback(() => c(!1), [c]),
910
- isUsingKeyboardRef: f,
911
- dir: d,
912
- modal: i,
913
- children: r
914
- }
915
- )
916
- }
917
- ) });
918
- };
919
- lr.displayName = ot;
920
- var Js = "MenuAnchor", Kt = h.forwardRef(
921
- (e, t) => {
922
- const { __scopeMenu: n, ...r } = e, o = st(n);
923
- return /* @__PURE__ */ a.jsx(ao, { ...o, ...r, ref: t });
924
- }
925
- );
926
- Kt.displayName = Js;
927
- var qt = "MenuPortal", [ei, cr] = ke(qt, {
928
- forceMount: void 0
929
- }), ur = (e) => {
930
- const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = Te(qt, t);
931
- return /* @__PURE__ */ a.jsx(ei, { scope: t, forceMount: n, children: /* @__PURE__ */ a.jsx(bt, { present: n || s.open, children: /* @__PURE__ */ a.jsx(go, { asChild: !0, container: o, children: r }) }) });
932
- };
933
- ur.displayName = qt;
934
- var ue = "MenuContent", [ti, Qt] = ke(ue), dr = h.forwardRef(
935
- (e, t) => {
936
- const n = cr(ue, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Te(ue, e.__scopeMenu), i = it(ue, e.__scopeMenu);
937
- return /* @__PURE__ */ a.jsx(et.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(bt, { present: r || s.open, children: /* @__PURE__ */ a.jsx(et.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ a.jsx(ni, { ...o, ref: t }) : /* @__PURE__ */ a.jsx(ri, { ...o, ref: t }) }) }) });
938
- }
939
- ), ni = h.forwardRef(
940
- (e, t) => {
941
- const n = Te(ue, e.__scopeMenu), r = h.useRef(null), o = rt(t, r);
942
- return h.useEffect(() => {
943
- const s = r.current;
944
- if (s) return oo(s);
945
- }, []), /* @__PURE__ */ a.jsx(
946
- Vt,
947
- {
948
- ...e,
949
- ref: o,
950
- trapFocus: n.open,
951
- disableOutsidePointerEvents: n.open,
952
- disableOutsideScroll: !0,
953
- onFocusOutside: I(
954
- e.onFocusOutside,
955
- (s) => s.preventDefault(),
956
- { checkForDefaultPrevented: !1 }
957
- ),
958
- onDismiss: () => n.onOpenChange(!1)
959
- }
960
- );
961
- }
962
- ), ri = h.forwardRef((e, t) => {
963
- const n = Te(ue, e.__scopeMenu);
964
- return /* @__PURE__ */ a.jsx(
965
- Vt,
966
- {
967
- ...e,
968
- ref: t,
969
- trapFocus: !1,
970
- disableOutsidePointerEvents: !1,
971
- disableOutsideScroll: !1,
972
- onDismiss: () => n.onOpenChange(!1)
973
- }
974
- );
975
- }), Vt = h.forwardRef(
976
- (e, t) => {
977
- const {
978
- __scopeMenu: n,
979
- loop: r = !1,
980
- trapFocus: o,
981
- onOpenAutoFocus: s,
982
- onCloseAutoFocus: i,
983
- disableOutsidePointerEvents: l,
984
- onEntryFocus: u,
985
- onEscapeKeyDown: m,
986
- onPointerDownOutside: f,
987
- onFocusOutside: c,
988
- onInteractOutside: d,
989
- onDismiss: R,
990
- disableOutsideScroll: C,
991
- ...g
992
- } = e, T = Te(ue, n), M = it(ue, n), A = st(n), P = sr(n), v = Ys(n), [z, J] = h.useState(null), b = h.useRef(null), j = rt(t, b, T.onContentChange), D = h.useRef(0), B = h.useRef(""), K = h.useRef(0), W = h.useRef(null), y = h.useRef("right"), V = h.useRef(0), G = C ? fo : h.Fragment, te = C ? { as: ho, allowPinchZoom: !0 } : void 0, q = (x) => {
993
- var le, Re;
994
- const Q = B.current + x, ie = v().filter((re) => !re.disabled), de = document.activeElement, pe = (le = ie.find((re) => re.ref.current === de)) == null ? void 0 : le.textValue, Me = ie.map((re) => re.textValue), $e = mi(Me, Q, pe), xe = (Re = ie.find((re) => re.textValue === $e)) == null ? void 0 : Re.ref.current;
995
- (function re(Fe) {
996
- B.current = Fe, window.clearTimeout(D.current), Fe !== "" && (D.current = window.setTimeout(() => re(""), 1e3));
997
- })(Q), xe && setTimeout(() => xe.focus());
998
- };
999
- h.useEffect(() => () => window.clearTimeout(D.current), []), so();
1000
- const Y = h.useCallback((x) => {
1001
- var ie, de;
1002
- return y.current === ((ie = W.current) == null ? void 0 : ie.side) && vi(x, (de = W.current) == null ? void 0 : de.area);
1003
- }, []);
1004
- return /* @__PURE__ */ a.jsx(
1005
- ti,
1006
- {
1007
- scope: n,
1008
- searchRef: B,
1009
- onItemEnter: h.useCallback(
1010
- (x) => {
1011
- Y(x) && x.preventDefault();
1012
- },
1013
- [Y]
1014
- ),
1015
- onItemLeave: h.useCallback(
1016
- (x) => {
1017
- var Q;
1018
- Y(x) || ((Q = b.current) == null || Q.focus(), J(null));
1019
- },
1020
- [Y]
1021
- ),
1022
- onTriggerLeave: h.useCallback(
1023
- (x) => {
1024
- Y(x) && x.preventDefault();
1025
- },
1026
- [Y]
1027
- ),
1028
- pointerGraceTimerRef: K,
1029
- onPointerGraceIntentChange: h.useCallback((x) => {
1030
- W.current = x;
1031
- }, []),
1032
- children: /* @__PURE__ */ a.jsx(G, { ...te, children: /* @__PURE__ */ a.jsx(
1033
- io,
1034
- {
1035
- asChild: !0,
1036
- trapped: o,
1037
- onMountAutoFocus: I(s, (x) => {
1038
- var Q;
1039
- x.preventDefault(), (Q = b.current) == null || Q.focus({ preventScroll: !0 });
1040
- }),
1041
- onUnmountAutoFocus: i,
1042
- children: /* @__PURE__ */ a.jsx(
1043
- lo,
1044
- {
1045
- asChild: !0,
1046
- disableOutsidePointerEvents: l,
1047
- onEscapeKeyDown: m,
1048
- onPointerDownOutside: f,
1049
- onFocusOutside: c,
1050
- onInteractOutside: d,
1051
- onDismiss: R,
1052
- children: /* @__PURE__ */ a.jsx(
1053
- es,
1054
- {
1055
- asChild: !0,
1056
- ...P,
1057
- dir: M.dir,
1058
- orientation: "vertical",
1059
- loop: r,
1060
- currentTabStopId: z,
1061
- onCurrentTabStopIdChange: J,
1062
- onEntryFocus: I(u, (x) => {
1063
- M.isUsingKeyboardRef.current || x.preventDefault();
1064
- }),
1065
- preventScrollOnEntryFocus: !0,
1066
- children: /* @__PURE__ */ a.jsx(
1067
- co,
1068
- {
1069
- role: "menu",
1070
- "aria-orientation": "vertical",
1071
- "data-state": Pr(T.open),
1072
- "data-radix-menu-content": "",
1073
- dir: M.dir,
1074
- ...A,
1075
- ...g,
1076
- ref: j,
1077
- style: { outline: "none", ...g.style },
1078
- onKeyDown: I(g.onKeyDown, (x) => {
1079
- const ie = x.target.closest("[data-radix-menu-content]") === x.currentTarget, de = x.ctrlKey || x.altKey || x.metaKey, pe = x.key.length === 1;
1080
- ie && (x.key === "Tab" && x.preventDefault(), !de && pe && q(x.key));
1081
- const Me = b.current;
1082
- if (x.target !== Me || !Vs.includes(x.key)) return;
1083
- x.preventDefault();
1084
- const xe = v().filter((le) => !le.disabled).map((le) => le.ref.current);
1085
- ar.includes(x.key) && xe.reverse(), hi(xe);
1086
- }),
1087
- onBlur: I(e.onBlur, (x) => {
1088
- x.currentTarget.contains(x.target) || (window.clearTimeout(D.current), B.current = "");
1089
- }),
1090
- onPointerMove: I(
1091
- e.onPointerMove,
1092
- tt((x) => {
1093
- const Q = x.target, ie = V.current !== x.clientX;
1094
- if (x.currentTarget.contains(Q) && ie) {
1095
- const de = x.clientX > V.current ? "right" : "left";
1096
- y.current = de, V.current = x.clientX;
1097
- }
1098
- })
1099
- )
1100
- }
1101
- )
1102
- }
1103
- )
1104
- }
1105
- )
1106
- }
1107
- ) })
1108
- }
1109
- );
1110
- }
1111
- );
1112
- dr.displayName = ue;
1113
- var ai = "MenuGroup", Gt = h.forwardRef(
1114
- (e, t) => {
1115
- const { __scopeMenu: n, ...r } = e;
1116
- return /* @__PURE__ */ a.jsx(qe.div, { role: "group", ...r, ref: t });
1117
- }
1118
- );
1119
- Gt.displayName = ai;
1120
- var oi = "MenuLabel", fr = h.forwardRef(
1121
- (e, t) => {
1122
- const { __scopeMenu: n, ...r } = e;
1123
- return /* @__PURE__ */ a.jsx(qe.div, { ...r, ref: t });
1124
- }
1125
- );
1126
- fr.displayName = oi;
1127
- var yt = "MenuItem", Rn = "menu.itemSelect", St = h.forwardRef(
1128
- (e, t) => {
1129
- const { disabled: n = !1, onSelect: r, ...o } = e, s = h.useRef(null), i = it(yt, e.__scopeMenu), l = Qt(yt, e.__scopeMenu), u = rt(t, s), m = h.useRef(!1), f = () => {
1130
- const c = s.current;
1131
- if (!n && c) {
1132
- const d = new CustomEvent(Rn, { bubbles: !0, cancelable: !0 });
1133
- c.addEventListener(Rn, (R) => r == null ? void 0 : r(R), { once: !0 }), po(c, d), d.defaultPrevented ? m.current = !1 : i.onClose();
1134
- }
1135
- };
1136
- return /* @__PURE__ */ a.jsx(
1137
- hr,
1138
- {
1139
- ...o,
1140
- ref: u,
1141
- disabled: n,
1142
- onClick: I(e.onClick, f),
1143
- onPointerDown: (c) => {
1144
- var d;
1145
- (d = e.onPointerDown) == null || d.call(e, c), m.current = !0;
1146
- },
1147
- onPointerUp: I(e.onPointerUp, (c) => {
1148
- var d;
1149
- m.current || (d = c.currentTarget) == null || d.click();
1150
- }),
1151
- onKeyDown: I(e.onKeyDown, (c) => {
1152
- const d = l.searchRef.current !== "";
1153
- n || d && c.key === " " || _t.includes(c.key) && (c.currentTarget.click(), c.preventDefault());
1154
- })
1155
- }
1156
- );
1157
- }
1158
- );
1159
- St.displayName = yt;
1160
- var hr = h.forwardRef(
1161
- (e, t) => {
1162
- const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = Qt(yt, n), l = sr(n), u = h.useRef(null), m = rt(t, u), [f, c] = h.useState(!1), [d, R] = h.useState("");
1163
- return h.useEffect(() => {
1164
- const C = u.current;
1165
- C && R((C.textContent ?? "").trim());
1166
- }, [s.children]), /* @__PURE__ */ a.jsx(
1167
- et.ItemSlot,
1168
- {
1169
- scope: n,
1170
- disabled: r,
1171
- textValue: o ?? d,
1172
- children: /* @__PURE__ */ a.jsx(ts, { asChild: !0, ...l, focusable: !r, children: /* @__PURE__ */ a.jsx(
1173
- qe.div,
1174
- {
1175
- role: "menuitem",
1176
- "data-highlighted": f ? "" : void 0,
1177
- "aria-disabled": r || void 0,
1178
- "data-disabled": r ? "" : void 0,
1179
- ...s,
1180
- ref: m,
1181
- onPointerMove: I(
1182
- e.onPointerMove,
1183
- tt((C) => {
1184
- r ? i.onItemLeave(C) : (i.onItemEnter(C), C.defaultPrevented || C.currentTarget.focus({ preventScroll: !0 }));
1185
- })
1186
- ),
1187
- onPointerLeave: I(
1188
- e.onPointerLeave,
1189
- tt((C) => i.onItemLeave(C))
1190
- ),
1191
- onFocus: I(e.onFocus, () => c(!0)),
1192
- onBlur: I(e.onBlur, () => c(!1))
1193
- }
1194
- ) })
1195
- }
1196
- );
1197
- }
1198
- ), si = "MenuCheckboxItem", pr = h.forwardRef(
1199
- (e, t) => {
1200
- const { checked: n = !1, onCheckedChange: r, ...o } = e;
1201
- return /* @__PURE__ */ a.jsx(yr, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ a.jsx(
1202
- St,
1203
- {
1204
- role: "menuitemcheckbox",
1205
- "aria-checked": xt(n) ? "mixed" : n,
1206
- ...o,
1207
- ref: t,
1208
- "data-state": Xt(n),
1209
- onSelect: I(
1210
- o.onSelect,
1211
- () => r == null ? void 0 : r(xt(n) ? !0 : !n),
1212
- { checkForDefaultPrevented: !1 }
1213
- )
1214
- }
1215
- ) });
1216
- }
1217
- );
1218
- pr.displayName = si;
1219
- var mr = "MenuRadioGroup", [ii, li] = ke(
1220
- mr,
1221
- { value: void 0, onValueChange: () => {
1222
- } }
1223
- ), gr = h.forwardRef(
1224
- (e, t) => {
1225
- const { value: n, onValueChange: r, ...o } = e, s = Lt(r);
1226
- return /* @__PURE__ */ a.jsx(ii, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ a.jsx(Gt, { ...o, ref: t }) });
1227
- }
1228
- );
1229
- gr.displayName = mr;
1230
- var vr = "MenuRadioItem", wr = h.forwardRef(
1231
- (e, t) => {
1232
- const { value: n, ...r } = e, o = li(vr, e.__scopeMenu), s = n === o.value;
1233
- return /* @__PURE__ */ a.jsx(yr, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ a.jsx(
1234
- St,
1235
- {
1236
- role: "menuitemradio",
1237
- "aria-checked": s,
1238
- ...r,
1239
- ref: t,
1240
- "data-state": Xt(s),
1241
- onSelect: I(
1242
- r.onSelect,
1243
- () => {
1244
- var i;
1245
- return (i = o.onValueChange) == null ? void 0 : i.call(o, n);
1246
- },
1247
- { checkForDefaultPrevented: !1 }
1248
- )
1249
- }
1250
- ) });
1251
- }
1252
- );
1253
- wr.displayName = vr;
1254
- var Wt = "MenuItemIndicator", [yr, ci] = ke(
1255
- Wt,
1256
- { checked: !1 }
1257
- ), xr = h.forwardRef(
1258
- (e, t) => {
1259
- const { __scopeMenu: n, forceMount: r, ...o } = e, s = ci(Wt, n);
1260
- return /* @__PURE__ */ a.jsx(
1261
- bt,
1262
- {
1263
- present: r || xt(s.checked) || s.checked === !0,
1264
- children: /* @__PURE__ */ a.jsx(
1265
- qe.span,
1266
- {
1267
- ...o,
1268
- ref: t,
1269
- "data-state": Xt(s.checked)
1270
- }
1271
- )
1272
- }
1273
- );
1274
- }
1275
- );
1276
- xr.displayName = Wt;
1277
- var ui = "MenuSeparator", br = h.forwardRef(
1278
- (e, t) => {
1279
- const { __scopeMenu: n, ...r } = e;
1280
- return /* @__PURE__ */ a.jsx(
1281
- qe.div,
1282
- {
1283
- role: "separator",
1284
- "aria-orientation": "horizontal",
1285
- ...r,
1286
- ref: t
1287
- }
1288
- );
1289
- }
1290
- );
1291
- br.displayName = ui;
1292
- var di = "MenuArrow", Sr = h.forwardRef(
1293
- (e, t) => {
1294
- const { __scopeMenu: n, ...r } = e, o = st(n);
1295
- return /* @__PURE__ */ a.jsx(uo, { ...o, ...r, ref: t });
1296
- }
1297
- );
1298
- Sr.displayName = di;
1299
- var Yt = "MenuSub", [fi, Cr] = ke(Yt), Mr = (e) => {
1300
- const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = Te(Yt, t), i = st(t), [l, u] = h.useState(null), [m, f] = h.useState(null), c = Lt(o);
1301
- return h.useEffect(() => (s.open === !1 && c(!1), () => c(!1)), [s.open, c]), /* @__PURE__ */ a.jsx(Bn, { ...i, children: /* @__PURE__ */ a.jsx(
1302
- ir,
1303
- {
1304
- scope: t,
1305
- open: r,
1306
- onOpenChange: c,
1307
- content: m,
1308
- onContentChange: f,
1309
- children: /* @__PURE__ */ a.jsx(
1310
- fi,
1311
- {
1312
- scope: t,
1313
- contentId: gt(),
1314
- triggerId: gt(),
1315
- trigger: l,
1316
- onTriggerChange: u,
1317
- children: n
1318
- }
1319
- )
1320
- }
1321
- ) });
1322
- };
1323
- Mr.displayName = Yt;
1324
- var Xe = "MenuSubTrigger", Rr = h.forwardRef(
1325
- (e, t) => {
1326
- const n = Te(Xe, e.__scopeMenu), r = it(Xe, e.__scopeMenu), o = Cr(Xe, e.__scopeMenu), s = Qt(Xe, e.__scopeMenu), i = h.useRef(null), { pointerGraceTimerRef: l, onPointerGraceIntentChange: u } = s, m = { __scopeMenu: e.__scopeMenu }, f = h.useCallback(() => {
1327
- i.current && window.clearTimeout(i.current), i.current = null;
1328
- }, []);
1329
- return h.useEffect(() => f, [f]), h.useEffect(() => {
1330
- const c = l.current;
1331
- return () => {
1332
- window.clearTimeout(c), u(null);
1333
- };
1334
- }, [l, u]), /* @__PURE__ */ a.jsx(Kt, { asChild: !0, ...m, children: /* @__PURE__ */ a.jsx(
1335
- hr,
1336
- {
1337
- id: o.triggerId,
1338
- "aria-haspopup": "menu",
1339
- "aria-expanded": n.open,
1340
- "aria-controls": o.contentId,
1341
- "data-state": Pr(n.open),
1342
- ...e,
1343
- ref: Ln(t, o.onTriggerChange),
1344
- onClick: (c) => {
1345
- var d;
1346
- (d = e.onClick) == null || d.call(e, c), !(e.disabled || c.defaultPrevented) && (c.currentTarget.focus(), n.open || n.onOpenChange(!0));
1347
- },
1348
- onPointerMove: I(
1349
- e.onPointerMove,
1350
- tt((c) => {
1351
- s.onItemEnter(c), !c.defaultPrevented && !e.disabled && !n.open && !i.current && (s.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
1352
- n.onOpenChange(!0), f();
1353
- }, 100));
1354
- })
1355
- ),
1356
- onPointerLeave: I(
1357
- e.onPointerLeave,
1358
- tt((c) => {
1359
- var R, C;
1360
- f();
1361
- const d = (R = n.content) == null ? void 0 : R.getBoundingClientRect();
1362
- if (d) {
1363
- const g = (C = n.content) == null ? void 0 : C.dataset.side, T = g === "right", M = T ? -5 : 5, A = d[T ? "left" : "right"], P = d[T ? "right" : "left"];
1364
- s.onPointerGraceIntentChange({
1365
- area: [
1366
- // Apply a bleed on clientX to ensure that our exit point is
1367
- // consistently within polygon bounds
1368
- { x: c.clientX + M, y: c.clientY },
1369
- { x: A, y: d.top },
1370
- { x: P, y: d.top },
1371
- { x: P, y: d.bottom },
1372
- { x: A, y: d.bottom }
1373
- ],
1374
- side: g
1375
- }), window.clearTimeout(l.current), l.current = window.setTimeout(
1376
- () => s.onPointerGraceIntentChange(null),
1377
- 300
1378
- );
1379
- } else {
1380
- if (s.onTriggerLeave(c), c.defaultPrevented) return;
1381
- s.onPointerGraceIntentChange(null);
1382
- }
1383
- })
1384
- ),
1385
- onKeyDown: I(e.onKeyDown, (c) => {
1386
- var R;
1387
- const d = s.searchRef.current !== "";
1388
- e.disabled || d && c.key === " " || Gs[r.dir].includes(c.key) && (n.onOpenChange(!0), (R = n.content) == null || R.focus(), c.preventDefault());
1389
- })
1390
- }
1391
- ) });
1392
- }
1393
- );
1394
- Rr.displayName = Xe;
1395
- var Er = "MenuSubContent", Dr = h.forwardRef(
1396
- (e, t) => {
1397
- const n = cr(ue, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Te(ue, e.__scopeMenu), i = it(ue, e.__scopeMenu), l = Cr(Er, e.__scopeMenu), u = h.useRef(null), m = rt(t, u);
1398
- return /* @__PURE__ */ a.jsx(et.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(bt, { present: r || s.open, children: /* @__PURE__ */ a.jsx(et.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(
1399
- Vt,
1400
- {
1401
- id: l.contentId,
1402
- "aria-labelledby": l.triggerId,
1403
- ...o,
1404
- ref: m,
1405
- align: "start",
1406
- side: i.dir === "rtl" ? "left" : "right",
1407
- disableOutsidePointerEvents: !1,
1408
- disableOutsideScroll: !1,
1409
- trapFocus: !1,
1410
- onOpenAutoFocus: (f) => {
1411
- var c;
1412
- i.isUsingKeyboardRef.current && ((c = u.current) == null || c.focus()), f.preventDefault();
1413
- },
1414
- onCloseAutoFocus: (f) => f.preventDefault(),
1415
- onFocusOutside: I(e.onFocusOutside, (f) => {
1416
- f.target !== l.trigger && s.onOpenChange(!1);
1417
- }),
1418
- onEscapeKeyDown: I(e.onEscapeKeyDown, (f) => {
1419
- i.onClose(), f.preventDefault();
1420
- }),
1421
- onKeyDown: I(e.onKeyDown, (f) => {
1422
- var R;
1423
- const c = f.currentTarget.contains(f.target), d = Ws[i.dir].includes(f.key);
1424
- c && d && (s.onOpenChange(!1), (R = l.trigger) == null || R.focus(), f.preventDefault());
1425
- })
1426
- }
1427
- ) }) }) });
1428
- }
1429
- );
1430
- Dr.displayName = Er;
1431
- function Pr(e) {
1432
- return e ? "open" : "closed";
1433
- }
1434
- function xt(e) {
1435
- return e === "indeterminate";
1436
- }
1437
- function Xt(e) {
1438
- return xt(e) ? "indeterminate" : e ? "checked" : "unchecked";
1439
- }
1440
- function hi(e) {
1441
- const t = document.activeElement;
1442
- for (const n of e)
1443
- if (n === t || (n.focus(), document.activeElement !== t)) return;
1444
- }
1445
- function pi(e, t) {
1446
- return e.map((n, r) => e[(t + r) % e.length]);
1447
- }
1448
- function mi(e, t, n) {
1449
- const o = t.length > 1 && Array.from(t).every((m) => m === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
1450
- let i = pi(e, Math.max(s, 0));
1451
- o.length === 1 && (i = i.filter((m) => m !== n));
1452
- const u = i.find(
1453
- (m) => m.toLowerCase().startsWith(o.toLowerCase())
1454
- );
1455
- return u !== n ? u : void 0;
1456
- }
1457
- function gi(e, t) {
1458
- const { x: n, y: r } = e;
1459
- let o = !1;
1460
- for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
1461
- const l = t[s].x, u = t[s].y, m = t[i].x, f = t[i].y;
1462
- u > r != f > r && n < (m - l) * (r - u) / (f - u) + l && (o = !o);
1463
- }
1464
- return o;
1465
- }
1466
- function vi(e, t) {
1467
- if (!t) return !1;
1468
- const n = { x: e.clientX, y: e.clientY };
1469
- return gi(n, t);
1470
- }
1471
- function tt(e) {
1472
- return (t) => t.pointerType === "mouse" ? e(t) : void 0;
1473
- }
1474
- var wi = lr, yi = Kt, xi = ur, bi = dr, Si = Gt, Ci = fr, Mi = St, Ri = pr, Ei = gr, Di = wr, Pi = xr, ji = br, Ni = Sr, Ti = Mr, _i = Rr, Oi = Dr, Zt = "DropdownMenu", [Ii, mc] = $n(
1475
- Zt,
1476
- [or]
1477
- ), Z = or(), [Ai, jr] = Ii(Zt), Nr = (e) => {
1478
- const {
1479
- __scopeDropdownMenu: t,
1480
- children: n,
1481
- dir: r,
1482
- open: o,
1483
- defaultOpen: s,
1484
- onOpenChange: i,
1485
- modal: l = !0
1486
- } = e, u = Z(t), m = h.useRef(null), [f = !1, c] = Hn({
1487
- prop: o,
1488
- defaultProp: s,
1489
- onChange: i
1490
- });
1491
- return /* @__PURE__ */ a.jsx(
1492
- Ai,
1493
- {
1494
- scope: t,
1495
- triggerId: gt(),
1496
- triggerRef: m,
1497
- contentId: gt(),
1498
- open: f,
1499
- onOpenChange: c,
1500
- onOpenToggle: h.useCallback(() => c((d) => !d), [c]),
1501
- modal: l,
1502
- children: /* @__PURE__ */ a.jsx(wi, { ...u, open: f, onOpenChange: c, dir: r, modal: l, children: n })
1503
- }
1504
- );
1505
- };
1506
- Nr.displayName = Zt;
1507
- var Tr = "DropdownMenuTrigger", _r = h.forwardRef(
1508
- (e, t) => {
1509
- const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = jr(Tr, n), i = Z(n);
1510
- return /* @__PURE__ */ a.jsx(yi, { asChild: !0, ...i, children: /* @__PURE__ */ a.jsx(
1511
- qe.button,
1512
- {
1513
- type: "button",
1514
- id: s.triggerId,
1515
- "aria-haspopup": "menu",
1516
- "aria-expanded": s.open,
1517
- "aria-controls": s.open ? s.contentId : void 0,
1518
- "data-state": s.open ? "open" : "closed",
1519
- "data-disabled": r ? "" : void 0,
1520
- disabled: r,
1521
- ...o,
1522
- ref: Ln(t, s.triggerRef),
1523
- onPointerDown: I(e.onPointerDown, (l) => {
1524
- !r && l.button === 0 && l.ctrlKey === !1 && (s.onOpenToggle(), s.open || l.preventDefault());
1525
- }),
1526
- onKeyDown: I(e.onKeyDown, (l) => {
1527
- r || (["Enter", " "].includes(l.key) && s.onOpenToggle(), l.key === "ArrowDown" && s.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(l.key) && l.preventDefault());
1528
- })
1529
- }
1530
- ) });
1531
- }
1532
- );
1533
- _r.displayName = Tr;
1534
- var ki = "DropdownMenuPortal", Or = (e) => {
1535
- const { __scopeDropdownMenu: t, ...n } = e, r = Z(t);
1536
- return /* @__PURE__ */ a.jsx(xi, { ...r, ...n });
1537
- };
1538
- Or.displayName = ki;
1539
- var Ir = "DropdownMenuContent", Ar = h.forwardRef(
1540
- (e, t) => {
1541
- const { __scopeDropdownMenu: n, ...r } = e, o = jr(Ir, n), s = Z(n), i = h.useRef(!1);
1542
- return /* @__PURE__ */ a.jsx(
1543
- bi,
1544
- {
1545
- id: o.contentId,
1546
- "aria-labelledby": o.triggerId,
1547
- ...s,
1548
- ...r,
1549
- ref: t,
1550
- onCloseAutoFocus: I(e.onCloseAutoFocus, (l) => {
1551
- var u;
1552
- i.current || (u = o.triggerRef.current) == null || u.focus(), i.current = !1, l.preventDefault();
1553
- }),
1554
- onInteractOutside: I(e.onInteractOutside, (l) => {
1555
- const u = l.detail.originalEvent, m = u.button === 0 && u.ctrlKey === !0, f = u.button === 2 || m;
1556
- (!o.modal || f) && (i.current = !0);
1557
- }),
1558
- style: {
1559
- ...e.style,
1560
- "--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
1561
- "--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
1562
- "--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
1563
- "--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
1564
- "--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
1565
- }
1566
- }
1567
- );
1568
- }
1569
- );
1570
- Ar.displayName = Ir;
1571
- var $i = "DropdownMenuGroup", Fi = h.forwardRef(
1572
- (e, t) => {
1573
- const { __scopeDropdownMenu: n, ...r } = e, o = Z(n);
1574
- return /* @__PURE__ */ a.jsx(Si, { ...o, ...r, ref: t });
1575
- }
1576
- );
1577
- Fi.displayName = $i;
1578
- var Li = "DropdownMenuLabel", kr = h.forwardRef(
1579
- (e, t) => {
1580
- const { __scopeDropdownMenu: n, ...r } = e, o = Z(n);
1581
- return /* @__PURE__ */ a.jsx(Ci, { ...o, ...r, ref: t });
1582
- }
1583
- );
1584
- kr.displayName = Li;
1585
- var Bi = "DropdownMenuItem", $r = h.forwardRef(
1586
- (e, t) => {
1587
- const { __scopeDropdownMenu: n, ...r } = e, o = Z(n);
1588
- return /* @__PURE__ */ a.jsx(Mi, { ...o, ...r, ref: t });
1589
- }
1590
- );
1591
- $r.displayName = Bi;
1592
- var Hi = "DropdownMenuCheckboxItem", Fr = h.forwardRef((e, t) => {
1593
- const { __scopeDropdownMenu: n, ...r } = e, o = Z(n);
1594
- return /* @__PURE__ */ a.jsx(Ri, { ...o, ...r, ref: t });
1595
- });
1596
- Fr.displayName = Hi;
1597
- var Ui = "DropdownMenuRadioGroup", zi = h.forwardRef((e, t) => {
1598
- const { __scopeDropdownMenu: n, ...r } = e, o = Z(n);
1599
- return /* @__PURE__ */ a.jsx(Ei, { ...o, ...r, ref: t });
1600
- });
1601
- zi.displayName = Ui;
1602
- var Ki = "DropdownMenuRadioItem", Lr = h.forwardRef((e, t) => {
1603
- const { __scopeDropdownMenu: n, ...r } = e, o = Z(n);
1604
- return /* @__PURE__ */ a.jsx(Di, { ...o, ...r, ref: t });
1605
- });
1606
- Lr.displayName = Ki;
1607
- var qi = "DropdownMenuItemIndicator", Br = h.forwardRef((e, t) => {
1608
- const { __scopeDropdownMenu: n, ...r } = e, o = Z(n);
1609
- return /* @__PURE__ */ a.jsx(Pi, { ...o, ...r, ref: t });
1610
- });
1611
- Br.displayName = qi;
1612
- var Qi = "DropdownMenuSeparator", Hr = h.forwardRef((e, t) => {
1613
- const { __scopeDropdownMenu: n, ...r } = e, o = Z(n);
1614
- return /* @__PURE__ */ a.jsx(ji, { ...o, ...r, ref: t });
1615
- });
1616
- Hr.displayName = Qi;
1617
- var Vi = "DropdownMenuArrow", Gi = h.forwardRef(
1618
- (e, t) => {
1619
- const { __scopeDropdownMenu: n, ...r } = e, o = Z(n);
1620
- return /* @__PURE__ */ a.jsx(Ni, { ...o, ...r, ref: t });
1621
- }
1622
- );
1623
- Gi.displayName = Vi;
1624
- var Wi = (e) => {
1625
- const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, i = Z(t), [l = !1, u] = Hn({
1626
- prop: r,
1627
- defaultProp: s,
1628
- onChange: o
1629
- });
1630
- return /* @__PURE__ */ a.jsx(Ti, { ...i, open: l, onOpenChange: u, children: n });
1631
- }, Yi = "DropdownMenuSubTrigger", Ur = h.forwardRef((e, t) => {
1632
- const { __scopeDropdownMenu: n, ...r } = e, o = Z(n);
1633
- return /* @__PURE__ */ a.jsx(_i, { ...o, ...r, ref: t });
1634
- });
1635
- Ur.displayName = Yi;
1636
- var Xi = "DropdownMenuSubContent", zr = h.forwardRef((e, t) => {
1637
- const { __scopeDropdownMenu: n, ...r } = e, o = Z(n);
1638
- return /* @__PURE__ */ a.jsx(
1639
- Oi,
1640
- {
1641
- ...o,
1642
- ...r,
1643
- ref: t,
1644
- style: {
1645
- ...e.style,
1646
- "--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
1647
- "--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
1648
- "--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
1649
- "--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
1650
- "--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
1651
- }
1652
- }
1653
- );
1654
- });
1655
- zr.displayName = Xi;
1656
- var Zi = Nr, Ji = _r, Kr = Or, qr = Ar, Qr = kr, Vr = $r, Gr = Fr, Wr = Lr, Yr = Br, Xr = Hr, el = Wi, Zr = Ur, Jr = zr;
1657
- const tl = Zi, nl = Ji, rl = Kr, al = el, ea = h.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
1658
- Zr,
1659
- {
1660
- ref: o,
1661
- className: F(
1662
- "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
1663
- t && "pl-8",
1664
- e
1665
- ),
1666
- ...r,
1667
- children: [
1668
- n,
1669
- /* @__PURE__ */ a.jsx(Zn, { className: "ml-auto h-4 w-4" })
1670
- ]
1671
- }
1672
- ));
1673
- ea.displayName = Zr.displayName;
1674
- const ta = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
1675
- Jr,
1676
- {
1677
- ref: n,
1678
- className: F(
1679
- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1680
- e
1681
- ),
1682
- ...t
1683
- }
1684
- ));
1685
- ta.displayName = Jr.displayName;
1686
- const na = h.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ a.jsx(Kr, { children: /* @__PURE__ */ a.jsx(
1687
- qr,
1688
- {
1689
- ref: r,
1690
- sideOffset: t,
1691
- className: F(
1692
- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
1693
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1694
- e
1695
- ),
1696
- ...n
1697
- }
1698
- ) }));
1699
- na.displayName = qr.displayName;
1700
- const ra = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
1701
- Vr,
1702
- {
1703
- ref: r,
1704
- className: F(
1705
- "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1706
- t && "pl-8",
1707
- e
1708
- ),
1709
- ...n
1710
- }
1711
- ));
1712
- ra.displayName = Vr.displayName;
1713
- const ol = h.forwardRef(({ className: e, children: t, checked: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
1714
- Gr,
1715
- {
1716
- ref: o,
1717
- className: F(
1718
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1719
- e
1720
- ),
1721
- checked: n,
1722
- ...r,
1723
- children: [
1724
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(Yr, { children: /* @__PURE__ */ a.jsx(qo, { className: "h-4 w-4" }) }) }),
1725
- t
1726
- ]
1727
- }
1728
- ));
1729
- ol.displayName = Gr.displayName;
1730
- const sl = h.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ a.jsxs(
1731
- Wr,
1732
- {
1733
- ref: r,
1734
- className: F(
1735
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1736
- e
1737
- ),
1738
- ...n,
1739
- children: [
1740
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(Yr, { children: /* @__PURE__ */ a.jsx(Qo, { className: "h-4 w-4 fill-current" }) }) }),
1741
- t
1742
- ]
1743
- }
1744
- ));
1745
- sl.displayName = Wr.displayName;
1746
- const aa = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
1747
- Qr,
1748
- {
1749
- ref: r,
1750
- className: F(
1751
- "px-2 py-1.5 text-sm font-semibold",
1752
- t && "pl-8",
1753
- e
1754
- ),
1755
- ...n
1756
- }
1757
- ));
1758
- aa.displayName = Qr.displayName;
1759
- const oa = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
1760
- Xr,
1761
- {
1762
- ref: n,
1763
- className: F("-mx-1 my-1 h-px bg-muted", e),
1764
- ...t
1765
- }
1766
- ));
1767
- oa.displayName = Xr.displayName;
1768
- const En = {
882
+ const J = globalThis;
883
+ (!J.requestIdleCallback || !J.cancelIdleCallback) && (J.requestIdleCallback = (t) => setTimeout(t, 1), J.cancelIdleCallback = clearTimeout);
884
+ const De = {
1769
885
  info: "bg-blue-500",
1770
886
  note: "bg-gray-500",
1771
887
  tip: "bg-green-600",
1772
888
  caution: "bg-orange-500",
1773
889
  danger: "bg-rose-500"
1774
- }, il = () => {
1775
- const { page: e } = Ae(), [t, n] = Ie(!0);
1776
- if (!(e != null && e.banner) || !t)
890
+ }, Zr = () => {
891
+ const { page: t } = F(), [e, r] = Q(!0);
892
+ if (!(t != null && t.banner) || !e)
1777
893
  return /* @__PURE__ */ a.jsx("style", { children: ":root { --banner-height: 0px; }" });
1778
- const r = e.banner.color && e.banner.color in En ? En[e.banner.color] : e.banner.color ? void 0 : "bg-primary", o = r ? {} : { backgroundColor: e.banner.color };
894
+ const s = t.banner.color && t.banner.color in De ? De[t.banner.color] : t.banner.color ? void 0 : "bg-primary", n = s ? {} : { backgroundColor: t.banner.color };
1779
895
  return /* @__PURE__ */ a.jsxs(
1780
896
  "div",
1781
897
  {
1782
- className: F(
898
+ className: A(
1783
899
  "relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center",
1784
- r
900
+ s
1785
901
  ),
1786
- style: o,
902
+ style: n,
1787
903
  children: [
1788
- /* @__PURE__ */ a.jsx("div", { className: "w-full", children: e.banner.message }),
1789
- e.banner.dismissible && /* @__PURE__ */ a.jsx(
904
+ /* @__PURE__ */ a.jsx("div", { className: "w-full", children: t.banner.message }),
905
+ t.banner.dismissible && /* @__PURE__ */ a.jsx(
1790
906
  "button",
1791
907
  {
1792
908
  type: "button",
1793
909
  className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
1794
- onClick: () => n(!1),
1795
- children: /* @__PURE__ */ a.jsx(Vo, { size: 16 })
910
+ onClick: () => r(!1),
911
+ children: /* @__PURE__ */ a.jsx(Yt, { size: 16 })
1796
912
  }
1797
913
  )
1798
914
  ]
1799
915
  }
1800
916
  );
1801
- };
1802
- function ll(e) {
1803
- if (typeof document > "u") return;
1804
- let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
1805
- n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
1806
- }
1807
- const sa = p.createContext({
1808
- drawerRef: {
1809
- current: null
1810
- },
1811
- overlayRef: {
1812
- current: null
1813
- },
1814
- onPress: () => {
1815
- },
1816
- onRelease: () => {
1817
- },
1818
- onDrag: () => {
1819
- },
1820
- onNestedDrag: () => {
1821
- },
1822
- onNestedOpenChange: () => {
1823
- },
1824
- onNestedRelease: () => {
1825
- },
1826
- openProp: void 0,
1827
- dismissible: !1,
1828
- isOpen: !1,
1829
- isDragging: !1,
1830
- keyboardIsOpen: {
1831
- current: !1
1832
- },
1833
- snapPointsOffset: null,
1834
- snapPoints: null,
1835
- handleOnly: !1,
1836
- modal: !1,
1837
- shouldFade: !1,
1838
- activeSnapPoint: null,
1839
- onOpenChange: () => {
1840
- },
1841
- setActiveSnapPoint: () => {
1842
- },
1843
- closeDrawer: () => {
1844
- },
1845
- direction: "bottom",
1846
- shouldAnimate: {
1847
- current: !0
1848
- },
1849
- shouldScaleBackground: !1,
1850
- setBackgroundColorOnScale: !0,
1851
- noBodyStyles: !1,
1852
- container: null,
1853
- autoFocus: !1
1854
- }), Qe = () => {
1855
- const e = p.useContext(sa);
1856
- if (!e)
1857
- throw new Error("useDrawerContext must be used within a Drawer.Root");
1858
- return e;
1859
- };
1860
- ll(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
1861
- [data-state=closed]
1862
- ){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);
1863
- function cl() {
1864
- const e = navigator.userAgent;
1865
- return typeof window < "u" && (/Firefox/.test(e) && /Mobile/.test(e) || // Android Firefox
1866
- /FxiOS/.test(e));
1867
- }
1868
- function ul() {
1869
- return Jt(/^Mac/);
1870
- }
1871
- function dl() {
1872
- return Jt(/^iPhone/);
1873
- }
1874
- function Dn() {
1875
- return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
1876
- }
1877
- function fl() {
1878
- return Jt(/^iPad/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
1879
- ul() && navigator.maxTouchPoints > 1;
1880
- }
1881
- function ia() {
1882
- return dl() || fl();
1883
- }
1884
- function Jt(e) {
1885
- return typeof window < "u" && window.navigator != null ? e.test(window.navigator.platform) : void 0;
1886
- }
1887
- const hl = 24, pl = typeof window < "u" ? Ro : Ce;
1888
- function Pn(...e) {
1889
- return (...t) => {
1890
- for (let n of e)
1891
- typeof n == "function" && n(...t);
1892
- };
1893
- }
1894
- const Et = typeof document < "u" && window.visualViewport;
1895
- function jn(e) {
1896
- let t = window.getComputedStyle(e);
1897
- return /(auto|scroll)/.test(t.overflow + t.overflowX + t.overflowY);
1898
- }
1899
- function la(e) {
1900
- for (jn(e) && (e = e.parentElement); e && !jn(e); )
1901
- e = e.parentElement;
1902
- return e || document.scrollingElement || document.documentElement;
1903
- }
1904
- const ml = /* @__PURE__ */ new Set([
1905
- "checkbox",
1906
- "radio",
1907
- "range",
1908
- "color",
1909
- "file",
1910
- "image",
1911
- "button",
1912
- "submit",
1913
- "reset"
1914
- ]);
1915
- let ht = 0, Dt;
1916
- function gl(e = {}) {
1917
- let { isDisabled: t } = e;
1918
- pl(() => {
1919
- if (!t)
1920
- return ht++, ht === 1 && ia() && (Dt = vl()), () => {
1921
- ht--, ht === 0 && (Dt == null || Dt());
1922
- };
1923
- }, [
1924
- t
1925
- ]);
1926
- }
1927
- function vl() {
1928
- let e, t = 0, n = (c) => {
1929
- e = la(c.target), !(e === document.documentElement && e === document.body) && (t = c.changedTouches[0].pageY);
1930
- }, r = (c) => {
1931
- if (!e || e === document.documentElement || e === document.body) {
1932
- c.preventDefault();
1933
- return;
1934
- }
1935
- let d = c.changedTouches[0].pageY, R = e.scrollTop, C = e.scrollHeight - e.clientHeight;
1936
- C !== 0 && ((R <= 0 && d > t || R >= C && d < t) && c.preventDefault(), t = d);
1937
- }, o = (c) => {
1938
- let d = c.target;
1939
- Ot(d) && d !== document.activeElement && (c.preventDefault(), d.style.transform = "translateY(-2000px)", d.focus(), requestAnimationFrame(() => {
1940
- d.style.transform = "";
1941
- }));
1942
- }, s = (c) => {
1943
- let d = c.target;
1944
- Ot(d) && (d.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
1945
- d.style.transform = "", Et && (Et.height < window.innerHeight ? requestAnimationFrame(() => {
1946
- Nn(d);
1947
- }) : Et.addEventListener("resize", () => Nn(d), {
1948
- once: !0
1949
- }));
1950
- }));
1951
- }, i = () => {
1952
- window.scrollTo(0, 0);
1953
- }, l = window.pageXOffset, u = window.pageYOffset, m = Pn(wl(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
1954
- window.scrollTo(0, 0);
1955
- let f = Pn(We(document, "touchstart", n, {
1956
- passive: !1,
1957
- capture: !0
1958
- }), We(document, "touchmove", r, {
1959
- passive: !1,
1960
- capture: !0
1961
- }), We(document, "touchend", o, {
1962
- passive: !1,
1963
- capture: !0
1964
- }), We(document, "focus", s, !0), We(window, "scroll", i));
1965
- return () => {
1966
- m(), f(), window.scrollTo(l, u);
1967
- };
1968
- }
1969
- function wl(e, t, n) {
1970
- let r = e.style[t];
1971
- return e.style[t] = n, () => {
1972
- e.style[t] = r;
1973
- };
1974
- }
1975
- function We(e, t, n, r) {
1976
- return e.addEventListener(t, n, r), () => {
1977
- e.removeEventListener(t, n, r);
1978
- };
1979
- }
1980
- function Nn(e) {
1981
- let t = document.scrollingElement || document.documentElement;
1982
- for (; e && e !== t; ) {
1983
- let n = la(e);
1984
- if (n !== document.documentElement && n !== document.body && n !== e) {
1985
- let r = n.getBoundingClientRect().top, o = e.getBoundingClientRect().top, s = e.getBoundingClientRect().bottom;
1986
- const i = n.getBoundingClientRect().bottom + hl;
1987
- s > i && (n.scrollTop += o - r);
1988
- }
1989
- e = n.parentElement;
1990
- }
1991
- }
1992
- function Ot(e) {
1993
- return e instanceof HTMLInputElement && !ml.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
1994
- }
1995
- function yl(e, t) {
1996
- typeof e == "function" ? e(t) : e != null && (e.current = t);
1997
- }
1998
- function xl(...e) {
1999
- return (t) => e.forEach((n) => yl(n, t));
2000
- }
2001
- function ca(...e) {
2002
- return h.useCallback(xl(...e), e);
2003
- }
2004
- const ua = /* @__PURE__ */ new WeakMap();
2005
- function H(e, t, n = !1) {
2006
- if (!e || !(e instanceof HTMLElement)) return;
2007
- let r = {};
2008
- Object.entries(t).forEach(([o, s]) => {
2009
- if (o.startsWith("--")) {
2010
- e.style.setProperty(o, s);
2011
- return;
2012
- }
2013
- r[o] = e.style[o], e.style[o] = s;
2014
- }), !n && ua.set(e, r);
2015
- }
2016
- function bl(e, t) {
2017
- if (!e || !(e instanceof HTMLElement)) return;
2018
- let n = ua.get(e);
2019
- n && (e.style[t] = n[t]);
2020
- }
2021
- const U = (e) => {
2022
- switch (e) {
2023
- case "top":
2024
- case "bottom":
2025
- return !0;
2026
- case "left":
2027
- case "right":
2028
- return !1;
2029
- default:
2030
- return e;
2031
- }
2032
- };
2033
- function pt(e, t) {
2034
- if (!e)
2035
- return null;
2036
- const n = window.getComputedStyle(e), r = (
2037
- // @ts-ignore
2038
- n.transform || n.webkitTransform || n.mozTransform
2039
- );
2040
- let o = r.match(/^matrix3d\((.+)\)$/);
2041
- return o ? parseFloat(o[1].split(", ")[U(t) ? 13 : 12]) : (o = r.match(/^matrix\((.+)\)$/), o ? parseFloat(o[1].split(", ")[U(t) ? 5 : 4]) : null);
2042
- }
2043
- function Sl(e) {
2044
- return 8 * (Math.log(e + 1) - 2);
2045
- }
2046
- function Pt(e, t) {
2047
- if (!e) return () => {
2048
- };
2049
- const n = e.style.cssText;
2050
- return Object.assign(e.style, t), () => {
2051
- e.style.cssText = n;
2052
- };
2053
- }
2054
- function Cl(...e) {
2055
- return (...t) => {
2056
- for (const n of e)
2057
- typeof n == "function" && n(...t);
2058
- };
2059
- }
2060
- const k = {
2061
- DURATION: 0.5,
2062
- EASE: [
2063
- 0.32,
2064
- 0.72,
2065
- 0,
2066
- 1
2067
- ]
2068
- }, da = 0.4, Ml = 0.25, Rl = 100, fa = 8, Oe = 16, It = 26, jt = "vaul-dragging";
2069
- function ha(e) {
2070
- const t = p.useRef(e);
2071
- return p.useEffect(() => {
2072
- t.current = e;
2073
- }), p.useMemo(() => (...n) => t.current == null ? void 0 : t.current.call(t, ...n), []);
2074
- }
2075
- function El({ defaultProp: e, onChange: t }) {
2076
- const n = p.useState(e), [r] = n, o = p.useRef(r), s = ha(t);
2077
- return p.useEffect(() => {
2078
- o.current !== r && (s(r), o.current = r);
2079
- }, [
2080
- r,
2081
- o,
2082
- s
2083
- ]), n;
2084
- }
2085
- function pa({ prop: e, defaultProp: t, onChange: n = () => {
2086
- } }) {
2087
- const [r, o] = El({
2088
- defaultProp: t,
2089
- onChange: n
2090
- }), s = e !== void 0, i = s ? e : r, l = ha(n), u = p.useCallback((m) => {
2091
- if (s) {
2092
- const c = typeof m == "function" ? m(e) : m;
2093
- c !== e && l(c);
2094
- } else
2095
- o(m);
2096
- }, [
2097
- s,
2098
- e,
2099
- o,
2100
- l
2101
- ]);
2102
- return [
2103
- i,
2104
- u
2105
- ];
2106
- }
2107
- function Dl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n, drawerRef: r, overlayRef: o, fadeFromIndex: s, onSnapPointChange: i, direction: l = "bottom", container: u, snapToSequentialPoint: m }) {
2108
- const [f, c] = pa({
2109
- prop: e,
2110
- defaultProp: n == null ? void 0 : n[0],
2111
- onChange: t
2112
- }), [d, R] = p.useState(typeof window < "u" ? {
2113
- innerWidth: window.innerWidth,
2114
- innerHeight: window.innerHeight
2115
- } : void 0);
2116
- p.useEffect(() => {
2117
- function b() {
2118
- R({
2119
- innerWidth: window.innerWidth,
2120
- innerHeight: window.innerHeight
2121
- });
2122
- }
2123
- return window.addEventListener("resize", b), () => window.removeEventListener("resize", b);
2124
- }, []);
2125
- const C = p.useMemo(() => f === (n == null ? void 0 : n[n.length - 1]) || null, [
2126
- n,
2127
- f
2128
- ]), g = p.useMemo(() => {
2129
- var b;
2130
- return (b = n == null ? void 0 : n.findIndex((j) => j === f)) != null ? b : null;
2131
- }, [
2132
- n,
2133
- f
2134
- ]), T = n && n.length > 0 && (s || s === 0) && !Number.isNaN(s) && n[s] === f || !n, M = p.useMemo(() => {
2135
- const b = u ? {
2136
- width: u.getBoundingClientRect().width,
2137
- height: u.getBoundingClientRect().height
2138
- } : typeof window < "u" ? {
2139
- width: window.innerWidth,
2140
- height: window.innerHeight
2141
- } : {
2142
- width: 0,
2143
- height: 0
2144
- };
2145
- var j;
2146
- return (j = n == null ? void 0 : n.map((D) => {
2147
- const B = typeof D == "string";
2148
- let K = 0;
2149
- if (B && (K = parseInt(D, 10)), U(l)) {
2150
- const y = B ? K : d ? D * b.height : 0;
2151
- return d ? l === "bottom" ? b.height - y : -b.height + y : y;
2152
- }
2153
- const W = B ? K : d ? D * b.width : 0;
2154
- return d ? l === "right" ? b.width - W : -b.width + W : W;
2155
- })) != null ? j : [];
2156
- }, [
2157
- n,
2158
- d,
2159
- u
2160
- ]), A = p.useMemo(() => g !== null ? M == null ? void 0 : M[g] : null, [
2161
- M,
2162
- g
2163
- ]), P = p.useCallback((b) => {
2164
- var j;
2165
- const D = (j = M == null ? void 0 : M.findIndex((B) => B === b)) != null ? j : null;
2166
- i(D), H(r.current, {
2167
- transition: `transform ${k.DURATION}s cubic-bezier(${k.EASE.join(",")})`,
2168
- transform: U(l) ? `translate3d(0, ${b}px, 0)` : `translate3d(${b}px, 0, 0)`
2169
- }), M && D !== M.length - 1 && s !== void 0 && D !== s && D < s ? H(o.current, {
2170
- transition: `opacity ${k.DURATION}s cubic-bezier(${k.EASE.join(",")})`,
2171
- opacity: "0"
2172
- }) : H(o.current, {
2173
- transition: `opacity ${k.DURATION}s cubic-bezier(${k.EASE.join(",")})`,
2174
- opacity: "1"
2175
- }), c(n == null ? void 0 : n[Math.max(D, 0)]);
2176
- }, [
2177
- r.current,
2178
- n,
2179
- M,
2180
- s,
2181
- o,
2182
- c
2183
- ]);
2184
- p.useEffect(() => {
2185
- if (f || e) {
2186
- var b;
2187
- const j = (b = n == null ? void 0 : n.findIndex((D) => D === e || D === f)) != null ? b : -1;
2188
- M && j !== -1 && typeof M[j] == "number" && P(M[j]);
2189
- }
2190
- }, [
2191
- f,
2192
- e,
2193
- n,
2194
- M,
2195
- P
2196
- ]);
2197
- function v({ draggedDistance: b, closeDrawer: j, velocity: D, dismissible: B }) {
2198
- if (s === void 0) return;
2199
- const K = l === "bottom" || l === "right" ? (A ?? 0) - b : (A ?? 0) + b, W = g === s - 1, y = g === 0, V = b > 0;
2200
- if (W && H(o.current, {
2201
- transition: `opacity ${k.DURATION}s cubic-bezier(${k.EASE.join(",")})`
2202
- }), !m && D > 2 && !V) {
2203
- B ? j() : P(M[0]);
2204
- return;
2205
- }
2206
- if (!m && D > 2 && V && M && n) {
2207
- P(M[n.length - 1]);
2208
- return;
2209
- }
2210
- const G = M == null ? void 0 : M.reduce((q, Y) => typeof q != "number" || typeof Y != "number" ? q : Math.abs(Y - K) < Math.abs(q - K) ? Y : q), te = U(l) ? window.innerHeight : window.innerWidth;
2211
- if (D > da && Math.abs(b) < te * 0.4) {
2212
- const q = V ? 1 : -1;
2213
- if (q > 0 && C && n) {
2214
- P(M[n.length - 1]);
2215
- return;
2216
- }
2217
- if (y && q < 0 && B && j(), g === null) return;
2218
- P(M[g + q]);
2219
- return;
2220
- }
2221
- P(G);
2222
- }
2223
- function z({ draggedDistance: b }) {
2224
- if (A === null) return;
2225
- const j = l === "bottom" || l === "right" ? A - b : A + b;
2226
- (l === "bottom" || l === "right") && j < M[M.length - 1] || (l === "top" || l === "left") && j > M[M.length - 1] || H(r.current, {
2227
- transform: U(l) ? `translate3d(0, ${j}px, 0)` : `translate3d(${j}px, 0, 0)`
2228
- });
2229
- }
2230
- function J(b, j) {
2231
- if (!n || typeof g != "number" || !M || s === void 0) return null;
2232
- const D = g === s - 1;
2233
- if (g >= s && j)
2234
- return 0;
2235
- if (D && !j) return 1;
2236
- if (!T && !D) return null;
2237
- const K = D ? g + 1 : g - 1, W = D ? M[K] - M[K - 1] : M[K + 1] - M[K], y = b / Math.abs(W);
2238
- return D ? 1 - y : y;
2239
- }
2240
- return {
2241
- isLastSnapPoint: C,
2242
- activeSnapPoint: f,
2243
- shouldFade: T,
2244
- getPercentageDragged: J,
2245
- setActiveSnapPoint: c,
2246
- activeSnapPointIndex: g,
2247
- onRelease: v,
2248
- onDrag: z,
2249
- snapPointsOffset: M
2250
- };
2251
- }
2252
- const Pl = () => () => {
2253
- };
2254
- function jl() {
2255
- const { direction: e, isOpen: t, shouldScaleBackground: n, setBackgroundColorOnScale: r, noBodyStyles: o } = Qe(), s = p.useRef(null), i = mt(() => document.body.style.backgroundColor, []);
2256
- function l() {
2257
- return (window.innerWidth - It) / window.innerWidth;
2258
- }
2259
- p.useEffect(() => {
2260
- if (t && n) {
2261
- s.current && clearTimeout(s.current);
2262
- const u = document.querySelector("[data-vaul-drawer-wrapper]") || document.querySelector("[vaul-drawer-wrapper]");
2263
- if (!u) return;
2264
- Cl(r && !o ? Pt(document.body, {
2265
- background: "black"
2266
- }) : Pl, Pt(u, {
2267
- transformOrigin: U(e) ? "top" : "left",
2268
- transitionProperty: "transform, border-radius",
2269
- transitionDuration: `${k.DURATION}s`,
2270
- transitionTimingFunction: `cubic-bezier(${k.EASE.join(",")})`
2271
- }));
2272
- const m = Pt(u, {
2273
- borderRadius: `${fa}px`,
2274
- overflow: "hidden",
2275
- ...U(e) ? {
2276
- transform: `scale(${l()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`
2277
- } : {
2278
- transform: `scale(${l()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`
2279
- }
2280
- });
2281
- return () => {
2282
- m(), s.current = window.setTimeout(() => {
2283
- i ? document.body.style.background = i : document.body.style.removeProperty("background");
2284
- }, k.DURATION * 1e3);
2285
- };
2286
- }
2287
- }, [
2288
- t,
2289
- n,
2290
- i
2291
- ]);
2292
- }
2293
- let Ye = null;
2294
- function Nl({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRestoration: o, noBodyStyles: s }) {
2295
- const [i, l] = p.useState(() => typeof window < "u" ? window.location.href : ""), u = p.useRef(0), m = p.useCallback(() => {
2296
- if (Dn() && Ye === null && e && !s) {
2297
- Ye = {
2298
- position: document.body.style.position,
2299
- top: document.body.style.top,
2300
- left: document.body.style.left,
2301
- height: document.body.style.height,
2302
- right: "unset"
2303
- };
2304
- const { scrollX: c, innerHeight: d } = window;
2305
- document.body.style.setProperty("position", "fixed", "important"), Object.assign(document.body.style, {
2306
- top: `${-u.current}px`,
2307
- left: `${-c}px`,
2308
- right: "0px",
2309
- height: "auto"
2310
- }), window.setTimeout(() => window.requestAnimationFrame(() => {
2311
- const R = d - window.innerHeight;
2312
- R && u.current >= d && (document.body.style.top = `${-(u.current + R)}px`);
2313
- }), 300);
2314
- }
2315
- }, [
2316
- e
2317
- ]), f = p.useCallback(() => {
2318
- if (Dn() && Ye !== null && !s) {
2319
- const c = -parseInt(document.body.style.top, 10), d = -parseInt(document.body.style.left, 10);
2320
- Object.assign(document.body.style, Ye), window.requestAnimationFrame(() => {
2321
- if (o && i !== window.location.href) {
2322
- l(window.location.href);
2323
- return;
2324
- }
2325
- window.scrollTo(d, c);
2326
- }), Ye = null;
2327
- }
2328
- }, [
2329
- i
2330
- ]);
2331
- return p.useEffect(() => {
2332
- function c() {
2333
- u.current = window.scrollY;
2334
- }
2335
- return c(), window.addEventListener("scroll", c), () => {
2336
- window.removeEventListener("scroll", c);
2337
- };
2338
- }, []), p.useEffect(() => {
2339
- if (t)
2340
- return () => {
2341
- typeof document > "u" || document.querySelector("[data-vaul-drawer]") || f();
2342
- };
2343
- }, [
2344
- t,
2345
- f
2346
- ]), p.useEffect(() => {
2347
- n || !r || (e ? (!window.matchMedia("(display-mode: standalone)").matches && m(), t || window.setTimeout(() => {
2348
- f();
2349
- }, 500)) : f());
2350
- }, [
2351
- e,
2352
- r,
2353
- i,
2354
- t,
2355
- n,
2356
- m,
2357
- f
2358
- ]), {
2359
- restorePositionSetting: f
2360
- };
2361
- }
2362
- function ma({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, snapPoints: s, shouldScaleBackground: i = !1, setBackgroundColorOnScale: l = !0, closeThreshold: u = Ml, scrollLockTimeout: m = Rl, dismissible: f = !0, handleOnly: c = !1, fadeFromIndex: d = s && s.length - 1, activeSnapPoint: R, setActiveSnapPoint: C, fixed: g, modal: T = !0, onClose: M, nested: A, noBodyStyles: P = !1, direction: v = "bottom", defaultOpen: z = !1, disablePreventScroll: J = !0, snapToSequentialPoint: b = !1, preventScrollRestoration: j = !1, repositionInputs: D = !0, onAnimationEnd: B, container: K, autoFocus: W = !1 }) {
2363
- var y, V;
2364
- const [G = !1, te] = pa({
2365
- defaultProp: z,
2366
- prop: e,
2367
- onChange: (S) => {
2368
- t == null || t(S), !S && !A && Oa(), setTimeout(() => {
2369
- B == null || B(S);
2370
- }, k.DURATION * 1e3), S && !T && typeof window < "u" && window.requestAnimationFrame(() => {
2371
- document.body.style.pointerEvents = "auto";
2372
- }), S || (document.body.style.pointerEvents = "auto");
2373
- }
2374
- }), [q, Y] = p.useState(!1), [x, Q] = p.useState(!1), [ie, de] = p.useState(!1), pe = p.useRef(null), Me = p.useRef(null), $e = p.useRef(null), xe = p.useRef(null), le = p.useRef(null), Re = p.useRef(!1), re = p.useRef(null), Fe = p.useRef(0), Le = p.useRef(!1), an = p.useRef(!z), on = p.useRef(0), E = p.useRef(null), sn = p.useRef(((y = E.current) == null ? void 0 : y.getBoundingClientRect().height) || 0), ln = p.useRef(((V = E.current) == null ? void 0 : V.getBoundingClientRect().width) || 0), Ct = p.useRef(0), Pa = p.useCallback((S) => {
2375
- s && S === Ve.length - 1 && (Me.current = /* @__PURE__ */ new Date());
2376
- }, []), { activeSnapPoint: ja, activeSnapPointIndex: Be, setActiveSnapPoint: cn, onRelease: Na, snapPointsOffset: Ve, onDrag: Ta, shouldFade: un, getPercentageDragged: _a } = Dl({
2377
- snapPoints: s,
2378
- activeSnapPointProp: R,
2379
- setActiveSnapPointProp: C,
2380
- drawerRef: E,
2381
- fadeFromIndex: d,
2382
- overlayRef: pe,
2383
- onSnapPointChange: Pa,
2384
- direction: v,
2385
- container: K,
2386
- snapToSequentialPoint: b
2387
- });
2388
- gl({
2389
- isDisabled: !G || x || !T || ie || !q || !D || !J
2390
- });
2391
- const { restorePositionSetting: Oa } = Nl({
2392
- isOpen: G,
2393
- modal: T,
2394
- nested: A ?? !1,
2395
- hasBeenOpened: q,
2396
- preventScrollRestoration: j,
2397
- noBodyStyles: P
2398
- });
2399
- function lt() {
2400
- return (window.innerWidth - It) / window.innerWidth;
2401
- }
2402
- function Ia(S) {
2403
- var _, O;
2404
- !f && !s || E.current && !E.current.contains(S.target) || (sn.current = ((_ = E.current) == null ? void 0 : _.getBoundingClientRect().height) || 0, ln.current = ((O = E.current) == null ? void 0 : O.getBoundingClientRect().width) || 0, Q(!0), $e.current = /* @__PURE__ */ new Date(), ia() && window.addEventListener("touchend", () => Re.current = !1, {
2405
- once: !0
2406
- }), S.target.setPointerCapture(S.pointerId), Fe.current = U(v) ? S.pageY : S.pageX);
2407
- }
2408
- function dn(S, _) {
2409
- var O;
2410
- let N = S;
2411
- const L = (O = window.getSelection()) == null ? void 0 : O.toString(), ne = E.current ? pt(E.current, v) : null, ee = /* @__PURE__ */ new Date();
2412
- if (N.tagName === "SELECT" || N.hasAttribute("data-vaul-no-drag") || N.closest("[data-vaul-no-drag]"))
2413
- return !1;
2414
- if (v === "right" || v === "left")
2415
- return !0;
2416
- if (Me.current && ee.getTime() - Me.current.getTime() < 500)
2417
- return !1;
2418
- if (ne !== null && (v === "bottom" ? ne > 0 : ne < 0))
2419
- return !0;
2420
- if (L && L.length > 0)
2421
- return !1;
2422
- if (le.current && ee.getTime() - le.current.getTime() < m && ne === 0 || _)
2423
- return le.current = ee, !1;
2424
- for (; N; ) {
2425
- if (N.scrollHeight > N.clientHeight) {
2426
- if (N.scrollTop !== 0)
2427
- return le.current = /* @__PURE__ */ new Date(), !1;
2428
- if (N.getAttribute("role") === "dialog")
2429
- return !0;
2430
- }
2431
- N = N.parentNode;
2432
- }
2433
- return !0;
2434
- }
2435
- function Aa(S) {
2436
- if (E.current && x) {
2437
- const _ = v === "bottom" || v === "right" ? 1 : -1, O = (Fe.current - (U(v) ? S.pageY : S.pageX)) * _, N = O > 0, L = s && !f && !N;
2438
- if (L && Be === 0) return;
2439
- const ne = Math.abs(O), ee = document.querySelector("[data-vaul-drawer-wrapper]"), Ee = v === "bottom" || v === "top" ? sn.current : ln.current;
2440
- let fe = ne / Ee;
2441
- const _e = _a(ne, N);
2442
- if (_e !== null && (fe = _e), L && fe >= 1 || !Re.current && !dn(S.target, N)) return;
2443
- if (E.current.classList.add(jt), Re.current = !0, H(E.current, {
2444
- transition: "none"
2445
- }), H(pe.current, {
2446
- transition: "none"
2447
- }), s && Ta({
2448
- draggedDistance: O
2449
- }), N && !s) {
2450
- const me = Sl(O), ct = Math.min(me * -1, 0) * _;
2451
- H(E.current, {
2452
- transform: U(v) ? `translate3d(0, ${ct}px, 0)` : `translate3d(${ct}px, 0, 0)`
2453
- });
2454
- return;
2455
- }
2456
- const De = 1 - fe;
2457
- if ((un || d && Be === d - 1) && (r == null || r(S, fe), H(pe.current, {
2458
- opacity: `${De}`,
2459
- transition: "none"
2460
- }, !0)), ee && pe.current && i) {
2461
- const me = Math.min(lt() + fe * (1 - lt()), 1), ct = 8 - fe * 8, hn = Math.max(0, 14 - fe * 14);
2462
- H(ee, {
2463
- borderRadius: `${ct}px`,
2464
- transform: U(v) ? `scale(${me}) translate3d(0, ${hn}px, 0)` : `scale(${me}) translate3d(${hn}px, 0, 0)`,
2465
- transition: "none"
2466
- }, !0);
2467
- }
2468
- if (!s) {
2469
- const me = ne * _;
2470
- H(E.current, {
2471
- transform: U(v) ? `translate3d(0, ${me}px, 0)` : `translate3d(${me}px, 0, 0)`
2472
- });
2473
- }
2474
- }
2475
- }
2476
- p.useEffect(() => {
2477
- window.requestAnimationFrame(() => {
2478
- an.current = !0;
2479
- });
2480
- }, []), p.useEffect(() => {
2481
- var S;
2482
- function _() {
2483
- if (!E.current || !D) return;
2484
- const O = document.activeElement;
2485
- if (Ot(O) || Le.current) {
2486
- var N;
2487
- const L = ((N = window.visualViewport) == null ? void 0 : N.height) || 0, ne = window.innerHeight;
2488
- let ee = ne - L;
2489
- const Ee = E.current.getBoundingClientRect().height || 0, fe = Ee > ne * 0.8;
2490
- Ct.current || (Ct.current = Ee);
2491
- const _e = E.current.getBoundingClientRect().top;
2492
- if (Math.abs(on.current - ee) > 60 && (Le.current = !Le.current), s && s.length > 0 && Ve && Be) {
2493
- const De = Ve[Be] || 0;
2494
- ee += De;
2495
- }
2496
- if (on.current = ee, Ee > L || Le.current) {
2497
- const De = E.current.getBoundingClientRect().height;
2498
- let me = De;
2499
- De > L && (me = L - (fe ? _e : It)), g ? E.current.style.height = `${De - Math.max(ee, 0)}px` : E.current.style.height = `${Math.max(me, L - _e)}px`;
2500
- } else cl() || (E.current.style.height = `${Ct.current}px`);
2501
- s && s.length > 0 && !Le.current ? E.current.style.bottom = "0px" : E.current.style.bottom = `${Math.max(ee, 0)}px`;
2502
- }
2503
- }
2504
- return (S = window.visualViewport) == null || S.addEventListener("resize", _), () => {
2505
- var O;
2506
- return (O = window.visualViewport) == null ? void 0 : O.removeEventListener("resize", _);
2507
- };
2508
- }, [
2509
- Be,
2510
- s,
2511
- Ve
2512
- ]);
2513
- function Ge(S) {
2514
- ka(), M == null || M(), S || te(!1), setTimeout(() => {
2515
- s && cn(s[0]);
2516
- }, k.DURATION * 1e3);
2517
- }
2518
- function fn() {
2519
- if (!E.current) return;
2520
- const S = document.querySelector("[data-vaul-drawer-wrapper]"), _ = pt(E.current, v);
2521
- H(E.current, {
2522
- transform: "translate3d(0, 0, 0)",
2523
- transition: `transform ${k.DURATION}s cubic-bezier(${k.EASE.join(",")})`
2524
- }), H(pe.current, {
2525
- transition: `opacity ${k.DURATION}s cubic-bezier(${k.EASE.join(",")})`,
2526
- opacity: "1"
2527
- }), i && _ && _ > 0 && G && H(S, {
2528
- borderRadius: `${fa}px`,
2529
- overflow: "hidden",
2530
- ...U(v) ? {
2531
- transform: `scale(${lt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
2532
- transformOrigin: "top"
2533
- } : {
2534
- transform: `scale(${lt()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,
2535
- transformOrigin: "left"
2536
- },
2537
- transitionProperty: "transform, border-radius",
2538
- transitionDuration: `${k.DURATION}s`,
2539
- transitionTimingFunction: `cubic-bezier(${k.EASE.join(",")})`
2540
- }, !0);
2541
- }
2542
- function ka() {
2543
- !x || !E.current || (E.current.classList.remove(jt), Re.current = !1, Q(!1), xe.current = /* @__PURE__ */ new Date());
2544
- }
2545
- function $a(S) {
2546
- if (!x || !E.current) return;
2547
- E.current.classList.remove(jt), Re.current = !1, Q(!1), xe.current = /* @__PURE__ */ new Date();
2548
- const _ = pt(E.current, v);
2549
- if (!S || !dn(S.target, !1) || !_ || Number.isNaN(_) || $e.current === null) return;
2550
- const O = xe.current.getTime() - $e.current.getTime(), N = Fe.current - (U(v) ? S.pageY : S.pageX), L = Math.abs(N) / O;
2551
- if (L > 0.05 && (de(!0), setTimeout(() => {
2552
- de(!1);
2553
- }, 200)), s) {
2554
- Na({
2555
- draggedDistance: N * (v === "bottom" || v === "right" ? 1 : -1),
2556
- closeDrawer: Ge,
2557
- velocity: L,
2558
- dismissible: f
2559
- }), o == null || o(S, !0);
917
+ }, tt = () => {
918
+ const t = F(), [e, r] = Q(!1), s = Be(() => r(!1), []);
919
+ _(() => {
920
+ if (e)
2560
921
  return;
922
+ function i(o) {
923
+ o.key === "k" && (o.metaKey || o.ctrlKey) && (o.preventDefault(), r(!0));
2561
924
  }
2562
- if (v === "bottom" || v === "right" ? N > 0 : N < 0) {
2563
- fn(), o == null || o(S, !0);
2564
- return;
2565
- }
2566
- if (L > da) {
2567
- Ge(), o == null || o(S, !1);
2568
- return;
2569
- }
2570
- var ne;
2571
- const ee = Math.min((ne = E.current.getBoundingClientRect().height) != null ? ne : 0, window.innerHeight);
2572
- var Ee;
2573
- const fe = Math.min((Ee = E.current.getBoundingClientRect().width) != null ? Ee : 0, window.innerWidth), _e = v === "left" || v === "right";
2574
- if (Math.abs(_) >= (_e ? fe : ee) * u) {
2575
- Ge(), o == null || o(S, !1);
2576
- return;
2577
- }
2578
- o == null || o(S, !0), fn();
2579
- }
2580
- p.useEffect(() => (G && (H(document.documentElement, {
2581
- scrollBehavior: "auto"
2582
- }), Me.current = /* @__PURE__ */ new Date()), () => {
2583
- bl(document.documentElement, "scrollBehavior");
2584
- }), [
2585
- G
2586
- ]);
2587
- function Fa(S) {
2588
- const _ = S ? (window.innerWidth - Oe) / window.innerWidth : 1, O = S ? -Oe : 0;
2589
- re.current && window.clearTimeout(re.current), H(E.current, {
2590
- transition: `transform ${k.DURATION}s cubic-bezier(${k.EASE.join(",")})`,
2591
- transform: `scale(${_}) translate3d(0, ${O}px, 0)`
2592
- }), !S && E.current && (re.current = setTimeout(() => {
2593
- const N = pt(E.current, v);
2594
- H(E.current, {
2595
- transition: "none",
2596
- transform: U(v) ? `translate3d(0, ${N}px, 0)` : `translate3d(${N}px, 0, 0)`
2597
- });
2598
- }, 500));
2599
- }
2600
- function La(S, _) {
2601
- if (_ < 0) return;
2602
- const O = (window.innerWidth - Oe) / window.innerWidth, N = O + _ * (1 - O), L = -Oe + _ * Oe;
2603
- H(E.current, {
2604
- transform: U(v) ? `scale(${N}) translate3d(0, ${L}px, 0)` : `scale(${N}) translate3d(${L}px, 0, 0)`,
2605
- transition: "none"
2606
- });
2607
- }
2608
- function Ba(S, _) {
2609
- const O = U(v) ? window.innerHeight : window.innerWidth, N = _ ? (O - Oe) / O : 1, L = _ ? -Oe : 0;
2610
- _ && H(E.current, {
2611
- transition: `transform ${k.DURATION}s cubic-bezier(${k.EASE.join(",")})`,
2612
- transform: U(v) ? `scale(${N}) translate3d(0, ${L}px, 0)` : `scale(${N}) translate3d(${L}px, 0, 0)`
2613
- });
2614
- }
2615
- return p.useEffect(() => {
2616
- T || window.requestAnimationFrame(() => {
2617
- document.body.style.pointerEvents = "auto";
2618
- });
2619
- }, [
2620
- T
2621
- ]), /* @__PURE__ */ p.createElement(ls, {
2622
- defaultOpen: z,
2623
- onOpenChange: (S) => {
2624
- !f && !S || (S ? Y(!0) : Ge(!0), te(S));
2625
- },
2626
- open: G
2627
- }, /* @__PURE__ */ p.createElement(sa.Provider, {
2628
- value: {
2629
- activeSnapPoint: ja,
2630
- snapPoints: s,
2631
- setActiveSnapPoint: cn,
2632
- drawerRef: E,
2633
- overlayRef: pe,
2634
- onOpenChange: t,
2635
- onPress: Ia,
2636
- onRelease: $a,
2637
- onDrag: Aa,
2638
- dismissible: f,
2639
- shouldAnimate: an,
2640
- handleOnly: c,
2641
- isOpen: G,
2642
- isDragging: x,
2643
- shouldFade: un,
2644
- closeDrawer: Ge,
2645
- onNestedDrag: La,
2646
- onNestedOpenChange: Fa,
2647
- onNestedRelease: Ba,
2648
- keyboardIsOpen: Le,
2649
- modal: T,
2650
- snapPointsOffset: Ve,
2651
- activeSnapPointIndex: Be,
2652
- direction: v,
2653
- shouldScaleBackground: i,
2654
- setBackgroundColorOnScale: l,
2655
- noBodyStyles: P,
2656
- container: K,
2657
- autoFocus: W
2658
- }
2659
- }, n));
2660
- }
2661
- const ga = /* @__PURE__ */ p.forwardRef(function({ ...e }, t) {
2662
- const { overlayRef: n, snapPoints: r, onRelease: o, shouldFade: s, isOpen: i, modal: l, shouldAnimate: u } = Qe(), m = ca(t, n), f = r && r.length > 0;
2663
- if (!l)
2664
- return null;
2665
- const c = p.useCallback((d) => o(d), [
2666
- o
2667
- ]);
2668
- return /* @__PURE__ */ p.createElement(ns, {
2669
- onMouseUp: c,
2670
- ref: m,
2671
- "data-vaul-overlay": "",
2672
- "data-vaul-snap-points": i && f ? "true" : "false",
2673
- "data-vaul-snap-points-overlay": i && s ? "true" : "false",
2674
- "data-vaul-animate": u != null && u.current ? "true" : "false",
2675
- ...e
2676
- });
2677
- });
2678
- ga.displayName = "Drawer.Overlay";
2679
- const va = /* @__PURE__ */ p.forwardRef(function({ onPointerDownOutside: e, style: t, onOpenAutoFocus: n, ...r }, o) {
2680
- const { drawerRef: s, onPress: i, onRelease: l, onDrag: u, keyboardIsOpen: m, snapPointsOffset: f, activeSnapPointIndex: c, modal: d, isOpen: R, direction: C, snapPoints: g, container: T, handleOnly: M, shouldAnimate: A, autoFocus: P } = Qe(), [v, z] = p.useState(!1), J = ca(o, s), b = p.useRef(null), j = p.useRef(null), D = p.useRef(!1), B = g && g.length > 0;
2681
- jl();
2682
- const K = (y, V, G = 0) => {
2683
- if (D.current) return !0;
2684
- const te = Math.abs(y.y), q = Math.abs(y.x), Y = q > te, x = [
2685
- "bottom",
2686
- "right"
2687
- ].includes(V) ? 1 : -1;
2688
- if (V === "left" || V === "right") {
2689
- if (!(y.x * x < 0) && q >= 0 && q <= G)
2690
- return Y;
2691
- } else if (!(y.y * x < 0) && te >= 0 && te <= G)
2692
- return !Y;
2693
- return D.current = !0, !0;
2694
- };
2695
- p.useEffect(() => {
2696
- B && window.requestAnimationFrame(() => {
2697
- z(!0);
2698
- });
2699
- }, []);
2700
- function W(y) {
2701
- b.current = null, D.current = !1, l(y);
2702
- }
2703
- return /* @__PURE__ */ p.createElement(rs, {
2704
- "data-vaul-drawer-direction": C,
2705
- "data-vaul-drawer": "",
2706
- "data-vaul-delayed-snap-points": v ? "true" : "false",
2707
- "data-vaul-snap-points": R && B ? "true" : "false",
2708
- "data-vaul-custom-container": T ? "true" : "false",
2709
- "data-vaul-animate": A != null && A.current ? "true" : "false",
2710
- ...r,
2711
- ref: J,
2712
- style: f && f.length > 0 ? {
2713
- "--snap-point-height": `${f[c ?? 0]}px`,
2714
- ...t
2715
- } : t,
2716
- onPointerDown: (y) => {
2717
- M || (r.onPointerDown == null || r.onPointerDown.call(r, y), b.current = {
2718
- x: y.pageX,
2719
- y: y.pageY
2720
- }, i(y));
2721
- },
2722
- onOpenAutoFocus: (y) => {
2723
- n == null || n(y), P || y.preventDefault();
2724
- },
2725
- onPointerDownOutside: (y) => {
2726
- if (e == null || e(y), !d || y.defaultPrevented) {
2727
- y.preventDefault();
2728
- return;
2729
- }
2730
- m.current && (m.current = !1);
2731
- },
2732
- onFocusOutside: (y) => {
2733
- if (!d) {
2734
- y.preventDefault();
2735
- return;
2736
- }
2737
- },
2738
- onPointerMove: (y) => {
2739
- if (j.current = y, M || (r.onPointerMove == null || r.onPointerMove.call(r, y), !b.current)) return;
2740
- const V = y.pageY - b.current.y, G = y.pageX - b.current.x, te = y.pointerType === "touch" ? 10 : 2;
2741
- K({
2742
- x: G,
2743
- y: V
2744
- }, C, te) ? u(y) : (Math.abs(G) > te || Math.abs(V) > te) && (b.current = null);
2745
- },
2746
- onPointerUp: (y) => {
2747
- r.onPointerUp == null || r.onPointerUp.call(r, y), b.current = null, D.current = !1, l(y);
2748
- },
2749
- onPointerOut: (y) => {
2750
- r.onPointerOut == null || r.onPointerOut.call(r, y), W(j.current);
2751
- },
2752
- onContextMenu: (y) => {
2753
- r.onContextMenu == null || r.onContextMenu.call(r, y), j.current && W(j.current);
2754
- }
2755
- });
2756
- });
2757
- va.displayName = "Drawer.Content";
2758
- const Tl = 250, _l = 120, wa = /* @__PURE__ */ p.forwardRef(function({ preventCycle: e = !1, children: t, ...n }, r) {
2759
- const { closeDrawer: o, isDragging: s, snapPoints: i, activeSnapPoint: l, setActiveSnapPoint: u, dismissible: m, handleOnly: f, isOpen: c, onPress: d, onDrag: R } = Qe(), C = p.useRef(null), g = p.useRef(!1);
2760
- function T() {
2761
- if (g.current) {
2762
- P();
2763
- return;
2764
- }
2765
- window.setTimeout(() => {
2766
- M();
2767
- }, _l);
2768
- }
2769
- function M() {
2770
- if (s || e || g.current) {
2771
- P();
2772
- return;
2773
- }
2774
- if (P(), !i || i.length === 0) {
2775
- m || o();
2776
- return;
2777
- }
2778
- if (l === i[i.length - 1] && m) {
2779
- o();
2780
- return;
2781
- }
2782
- const z = i.findIndex((b) => b === l);
2783
- if (z === -1) return;
2784
- const J = i[z + 1];
2785
- u(J);
2786
- }
2787
- function A() {
2788
- C.current = window.setTimeout(() => {
2789
- g.current = !0;
2790
- }, Tl);
2791
- }
2792
- function P() {
2793
- C.current && window.clearTimeout(C.current), g.current = !1;
2794
- }
2795
- return /* @__PURE__ */ p.createElement("div", {
2796
- onClick: T,
2797
- onPointerCancel: P,
2798
- onPointerDown: (v) => {
2799
- f && d(v), A();
2800
- },
2801
- onPointerMove: (v) => {
2802
- f && R(v);
2803
- },
2804
- // onPointerUp is already handled by the content component
2805
- ref: r,
2806
- "data-vaul-drawer-visible": c ? "true" : "false",
2807
- "data-vaul-handle": "",
2808
- "aria-hidden": "true",
2809
- ...n
2810
- }, /* @__PURE__ */ p.createElement("span", {
2811
- "data-vaul-handle-hitarea": "",
2812
- "aria-hidden": "true"
2813
- }, t));
2814
- });
2815
- wa.displayName = "Drawer.Handle";
2816
- function Ol({ onDrag: e, onOpenChange: t, ...n }) {
2817
- const { onNestedDrag: r, onNestedOpenChange: o, onNestedRelease: s } = Qe();
2818
- if (!r)
2819
- throw new Error("Drawer.NestedRoot must be placed in another drawer");
2820
- return /* @__PURE__ */ p.createElement(ma, {
2821
- nested: !0,
2822
- onClose: () => {
2823
- o(!1);
2824
- },
2825
- onDrag: (i, l) => {
2826
- r(i, l), e == null || e(i, l);
2827
- },
2828
- onOpenChange: (i) => {
2829
- i && o(i);
2830
- },
2831
- onRelease: s,
2832
- ...n
2833
- });
2834
- }
2835
- function Il(e) {
2836
- const t = Qe(), { container: n = t.container, ...r } = e;
2837
- return /* @__PURE__ */ p.createElement(cs, {
2838
- container: n,
2839
- ...r
2840
- });
2841
- }
2842
- const he = {
2843
- Root: ma,
2844
- NestedRoot: Ol,
2845
- Content: va,
2846
- Overlay: ga,
2847
- Trigger: as,
2848
- Portal: Il,
2849
- Handle: wa,
2850
- Close: os,
2851
- Title: ss,
2852
- Description: is
2853
- }, en = ({
2854
- shouldScaleBackground: e = !0,
2855
- ...t
2856
- }) => /* @__PURE__ */ a.jsx(
2857
- he.Root,
2858
- {
2859
- shouldScaleBackground: e,
2860
- ...t
2861
- }
2862
- );
2863
- en.displayName = "Drawer";
2864
- const ya = he.Trigger, Al = he.Portal, kl = he.Close, xa = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2865
- he.Overlay,
2866
- {
2867
- ref: n,
2868
- className: F("fixed inset-0 z-50 bg-black/80", e),
2869
- ...t
2870
- }
2871
- ));
2872
- xa.displayName = he.Overlay.displayName;
2873
- const tn = h.forwardRef(
2874
- ({ className: e, children: t, hideBar: n = !0, ...r }, o) => /* @__PURE__ */ a.jsxs(Al, { children: [
2875
- /* @__PURE__ */ a.jsx(xa, {}),
2876
- /* @__PURE__ */ a.jsxs(
2877
- he.Content,
2878
- {
2879
- ref: o,
2880
- className: F(
2881
- "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
2882
- e
2883
- ),
2884
- ...r,
2885
- children: [
2886
- !n && /* @__PURE__ */ a.jsx("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
2887
- t
2888
- ]
2889
- }
2890
- )
2891
- ] })
2892
- );
2893
- tn.displayName = "DrawerContent";
2894
- const nn = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2895
- he.Title,
2896
- {
2897
- ref: n,
2898
- className: F(
2899
- "text-lg font-semibold leading-none tracking-tight",
2900
- e
2901
- ),
2902
- ...t
2903
- }
2904
- ));
2905
- nn.displayName = he.Title.displayName;
2906
- const $l = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2907
- he.Description,
2908
- {
2909
- ref: n,
2910
- className: F("text-sm text-muted-foreground", e),
2911
- ...t
2912
- }
2913
- ));
2914
- $l.displayName = he.Description.displayName;
2915
- const ba = () => {
2916
- const e = Ae(), [t, n] = Ie(!1), r = Qn(() => n(!1), []);
2917
- Ce(() => {
2918
- if (t)
2919
- return;
2920
- function s(i) {
2921
- i.key === "k" && (i.metaKey || i.ctrlKey) && (i.preventDefault(), n(!0));
2922
- }
2923
- return window.addEventListener("keydown", s), () => {
2924
- window.removeEventListener("keydown", s);
925
+ return window.addEventListener("keydown", i), () => {
926
+ window.removeEventListener("keydown", i);
2925
927
  };
2926
- }, [t, n]);
2927
- const o = e.plugins.find(Ls);
2928
- return o ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
928
+ }, [e, r]);
929
+ const n = t.plugins.find(Kr);
930
+ return n ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2929
931
  /* @__PURE__ */ a.jsxs(
2930
932
  "button",
2931
933
  {
2932
934
  type: "button",
2933
- onClick: () => n(!0),
935
+ onClick: () => r(!0),
2934
936
  className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-full sm:w-72",
2935
937
  children: [
2936
938
  /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
2937
- /* @__PURE__ */ a.jsx(Go, { size: 14 }),
939
+ /* @__PURE__ */ a.jsx(Xt, { size: 14 }),
2938
940
  "Search"
2939
941
  ] }),
2940
942
  /* @__PURE__ */ a.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
2941
943
  ]
2942
944
  }
2943
945
  ),
2944
- /* @__PURE__ */ a.jsx(Vn, { fallback: null, children: o.renderSearch({
2945
- isOpen: t,
2946
- onClose: r
946
+ /* @__PURE__ */ a.jsx(de, { fallback: null, children: n.renderSearch({
947
+ isOpen: e,
948
+ onClose: s
2947
949
  }) })
2948
950
  ] }) : null;
2949
- }, Sa = (e) => (t) => t.display === "auth" && e || t.display === "anon" && !e || !t.display || t.display === "always", Fl = () => {
2950
- const { topNavigation: e } = Ae(), { isAuthenticated: t } = vt();
2951
- return e.length <= 1 ? /* @__PURE__ */ a.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ a.jsx("nav", { className: "hidden lg:block border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ a.jsx("ul", { className: "flex flex-row items-center gap-8", children: e.filter(Sa(t)).map((n) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
2952
- Je,
951
+ }, rt = (t) => (e) => e.display === "auth" && t || e.display === "anon" && !t || !e.display || e.display === "always", Jr = () => {
952
+ const { topNavigation: t } = F(), { isAuthenticated: e } = ee();
953
+ return t.length <= 1 ? /* @__PURE__ */ a.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ a.jsx(de, { children: /* @__PURE__ */ a.jsx("nav", { className: "hidden lg:block border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ a.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.filter(rt(e)).map((r) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(Gr, { ...r }) }, r.id)) }) }) });
954
+ }, Gr = ({ id: t, label: e, default: r }) => {
955
+ var c;
956
+ const { sidebars: s } = F(), n = Ke(), i = s[t], o = r ?? (i ? Lt(i, (m) => {
957
+ if (m.type === "doc") return U(m.id);
958
+ }) : U(t));
959
+ if (!o)
960
+ throw new Error(
961
+ `No links found in top navigation for top navigation '${t}'. Check that the sidebar isn't empty or that a default link set.`
962
+ );
963
+ const u = ((c = n.data.topNavItem) == null ? void 0 : c.id) === t;
964
+ return /* @__PURE__ */ a.jsx(
965
+ te,
2953
966
  {
2954
- className: ({ isActive: r }) => zn(
967
+ className: Ue(
2955
968
  "block py-3.5 font-medium -mb-px border-b-2",
2956
- r ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
969
+ u ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
2957
970
  ),
2958
- to: n.id,
2959
- children: n.label
971
+ to: o,
972
+ children: e
2960
973
  }
2961
- ) }, n.label)) }) });
2962
- }, Ll = () => {
2963
- const { topNavigation: e } = Ae(), { isAuthenticated: t } = vt();
2964
- return /* @__PURE__ */ a.jsxs(en, { direction: "right", children: [
2965
- /* @__PURE__ */ a.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ a.jsx(ya, { className: "lg:hidden", children: /* @__PURE__ */ a.jsx(Wo, { size: 22 }) }) }),
974
+ );
975
+ }, ea = () => {
976
+ const { topNavigation: t } = F(), { isAuthenticated: e } = ee();
977
+ return /* @__PURE__ */ a.jsxs(Ve, { direction: "right", children: [
978
+ /* @__PURE__ */ a.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ a.jsx(We, { className: "lg:hidden", children: /* @__PURE__ */ a.jsx(Zt, { size: 22 }) }) }),
2966
979
  /* @__PURE__ */ a.jsxs(
2967
- tn,
980
+ Ye,
2968
981
  {
2969
982
  className: "lg:hidden h-screen right-0 left-auto w-[320px] rounded-none overflow-auto",
2970
983
  "aria-describedby": void 0,
2971
984
  children: [
2972
- /* @__PURE__ */ a.jsx(Un, { children: /* @__PURE__ */ a.jsx(nn, { children: "Navigation" }) }),
2973
- /* @__PURE__ */ a.jsx("div", { className: "flex p-4", children: /* @__PURE__ */ a.jsx(ba, {}) }),
2974
- /* @__PURE__ */ a.jsx("ul", { className: "flex flex-col items-center gap-4 p-4", children: e.filter(Sa(t)).map((n) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
2975
- Je,
985
+ /* @__PURE__ */ a.jsx($e, { children: /* @__PURE__ */ a.jsx(Xe, { children: "Navigation" }) }),
986
+ /* @__PURE__ */ a.jsx("div", { className: "flex p-4", children: /* @__PURE__ */ a.jsx(tt, {}) }),
987
+ /* @__PURE__ */ a.jsx("ul", { className: "flex flex-col items-center gap-4 p-4", children: t.filter(rt(e)).map((r) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
988
+ G,
2976
989
  {
2977
- className: ({ isActive: r }) => zn(
990
+ className: ({ isActive: s }) => Ue(
2978
991
  "block font-medium border-b-2",
2979
- r ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
992
+ s ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
2980
993
  ),
2981
- to: n.id,
2982
- children: /* @__PURE__ */ a.jsx(kl, { children: n.label })
994
+ to: r.id,
995
+ children: /* @__PURE__ */ a.jsx(gr, { children: r.label })
2983
996
  }
2984
- ) }, n.label)) })
997
+ ) }, r.label)) })
2985
998
  ]
2986
999
  }
2987
1000
  )
2988
1001
  ] });
2989
- }, Ca = ({ item: e }) => e.children ? /* @__PURE__ */ a.jsxs(al, { children: [
2990
- /* @__PURE__ */ a.jsx(ea, { children: e.label }),
2991
- /* @__PURE__ */ a.jsx(rl, { children: /* @__PURE__ */ a.jsx(ta, { children: e.children.map((t, n) => (
1002
+ }, at = ({ item: t }) => t.children ? /* @__PURE__ */ a.jsxs(lr, { children: [
1003
+ /* @__PURE__ */ a.jsx(cr, { children: t.label }),
1004
+ /* @__PURE__ */ a.jsx(ur, { children: /* @__PURE__ */ a.jsx(dr, { children: t.children.map((e, r) => (
2992
1005
  // eslint-disable-next-line react/no-array-index-key
2993
- /* @__PURE__ */ a.jsx(Ca, { item: t }, n)
1006
+ /* @__PURE__ */ a.jsx(at, { item: e }, r)
2994
1007
  )) }) })
2995
- ] }, e.label) : /* @__PURE__ */ a.jsx($t, { to: e.path ?? "", children: /* @__PURE__ */ a.jsx(ra, { children: e.label }, e.label) }), Ma = Gn(function() {
2996
- const t = vt(), [n, r] = vo(), { isAuthenticated: o, profile: s, isAuthEnabled: i } = vt(), l = Ae(), { page: u, plugins: m } = l, f = m.filter((d) => $s(d)).flatMap((d) => d.getProfileMenuItems(l)).map((d) => /* @__PURE__ */ a.jsx(Ca, { item: d }, d.label)), c = n ? Yo : Xo;
1008
+ ] }, t.label) : /* @__PURE__ */ a.jsx(te, { to: t.path ?? "", children: /* @__PURE__ */ a.jsx(hr, { children: t.label }, t.label) }), st = He(function() {
1009
+ const e = ee(), [r, s] = $t(), { isAuthenticated: n, profile: i, isAuthEnabled: o } = ee(), u = F(), { page: c, plugins: m } = u, j = m.filter((p) => zr(p)).flatMap((p) => p.getProfileMenuItems(u)).map((p) => /* @__PURE__ */ a.jsx(at, { item: p }, p.label)), N = r ? Jt : Gt;
2997
1010
  return /* @__PURE__ */ a.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
2998
- /* @__PURE__ */ a.jsx(il, {}),
1011
+ /* @__PURE__ */ a.jsx(Zr, {}),
2999
1012
  /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
3000
1013
  /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-2 lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-10 lg:px-12 h-[--top-header-height]", children: [
3001
- /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx($t, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
3002
- (u == null ? void 0 : u.logo) && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1014
+ /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(te, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
1015
+ (c == null ? void 0 : c.logo) && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3003
1016
  /* @__PURE__ */ a.jsx(
3004
1017
  "img",
3005
1018
  {
3006
- src: u.logo.src.light,
3007
- alt: u.logo.alt ?? u.pageTitle,
3008
- style: { width: u.logo.width },
3009
- className: F("h-10", n && "hidden"),
1019
+ src: /https?:\/\//.test(c.logo.src.light) ? c.logo.src.light : "/" + c.logo.src.light,
1020
+ alt: c.logo.alt ?? c.pageTitle,
1021
+ style: { width: c.logo.width },
1022
+ className: A("h-10", r && "hidden"),
3010
1023
  loading: "lazy"
3011
1024
  }
3012
1025
  ),
3013
1026
  /* @__PURE__ */ a.jsx(
3014
1027
  "img",
3015
1028
  {
3016
- src: u.logo.src.dark,
3017
- alt: u.logo.alt ?? u.pageTitle,
3018
- style: { width: u.logo.width },
3019
- className: F("h-10", !n && "hidden"),
1029
+ src: /https?:\/\//.test(c.logo.src.dark) ? c.logo.src.dark : "/" + c.logo.src.dark,
1030
+ alt: c.logo.alt ?? c.pageTitle,
1031
+ style: { width: c.logo.width },
1032
+ className: A("h-10", !r && "hidden"),
3020
1033
  loading: "lazy"
3021
1034
  }
3022
1035
  )
3023
1036
  ] }),
3024
- /* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: u == null ? void 0 : u.pageTitle })
1037
+ /* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: c == null ? void 0 : c.pageTitle })
3025
1038
  ] }) }) }),
3026
1039
  /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
3027
- /* @__PURE__ */ a.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ a.jsx(ba, {}) }),
3028
- /* @__PURE__ */ a.jsx(Ll, {}),
1040
+ /* @__PURE__ */ a.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ a.jsx(tt, {}) }),
1041
+ /* @__PURE__ */ a.jsx(ea, {}),
3029
1042
  /* @__PURE__ */ a.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
3030
- /* @__PURE__ */ a.jsx(ye, { name: "head-navigation-start" }),
3031
- i && !o ? /* @__PURE__ */ a.jsx(Nt, { variant: "ghost", onClick: () => t.login(), children: "Login" }) : f.length > 0 && /* @__PURE__ */ a.jsxs(tl, { modal: !1, children: [
3032
- /* @__PURE__ */ a.jsx(nl, { asChild: !0, children: /* @__PURE__ */ a.jsx(Nt, { variant: "ghost", children: s != null && s.email ? `${s.email}` : "My Account" }) }),
3033
- /* @__PURE__ */ a.jsxs(na, { className: "w-56", children: [
3034
- /* @__PURE__ */ a.jsx(aa, { children: "My Account" }),
3035
- /* @__PURE__ */ a.jsx(oa, {}),
3036
- f
1043
+ /* @__PURE__ */ a.jsx(k, { name: "head-navigation-start" }),
1044
+ o && !n ? /* @__PURE__ */ a.jsx(ie, { variant: "ghost", onClick: () => e.login(), children: "Login" }) : j.length > 0 && /* @__PURE__ */ a.jsxs(ar, { modal: !1, children: [
1045
+ /* @__PURE__ */ a.jsx(sr, { asChild: !0, children: /* @__PURE__ */ a.jsx(ie, { variant: "ghost", children: i != null && i.email ? `${i.email}` : "My Account" }) }),
1046
+ /* @__PURE__ */ a.jsxs(nr, { className: "w-56", children: [
1047
+ /* @__PURE__ */ a.jsx(ir, { children: "My Account" }),
1048
+ /* @__PURE__ */ a.jsx(or, {}),
1049
+ j
3037
1050
  ] })
3038
1051
  ] }),
3039
1052
  /* @__PURE__ */ a.jsx(
3040
1053
  "button",
3041
1054
  {
3042
1055
  type: "button",
3043
- "aria-label": n ? "Switch to light mode" : "Switch to dark mode",
1056
+ "aria-label": r ? "Switch to light mode" : "Switch to dark mode",
3044
1057
  className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
3045
- onClick: r,
3046
- children: /* @__PURE__ */ a.jsx(c, { size: 18 })
1058
+ onClick: s,
1059
+ children: /* @__PURE__ */ a.jsx(N, { size: 18 })
3047
1060
  }
3048
1061
  ),
3049
- /* @__PURE__ */ a.jsx(ye, { name: "head-navigation-end" })
1062
+ /* @__PURE__ */ a.jsx(k, { name: "head-navigation-end" })
3050
1063
  ] })
3051
1064
  ] })
3052
1065
  ] }),
3053
- /* @__PURE__ */ a.jsx(ye, { name: "top-navigation-before" }),
3054
- /* @__PURE__ */ a.jsx(Fl, {}),
3055
- /* @__PURE__ */ a.jsx(ye, { name: "top-navigation-after" })
1066
+ /* @__PURE__ */ a.jsx(k, { name: "top-navigation-before" }),
1067
+ /* @__PURE__ */ a.jsx(Jr, {}),
1068
+ /* @__PURE__ */ a.jsx(k, { name: "top-navigation-after" })
3056
1069
  ] })
3057
1070
  ] });
3058
- }), Ra = {
3059
- Header: Ma
3060
- }, Bl = qn(Ra), Hl = Bl.Provider, Ul = (e) => {
3061
- const [t, n] = Ie(!1);
3062
- Ce(() => {
3063
- const s = localStorage.getItem("theme"), i = window.matchMedia("(prefers-color-scheme: dark)"), l = s === "dark" || !s && i.matches;
3064
- n(l);
3065
- }, [t]);
3066
- const r = Qn(() => {
3067
- const s = !t;
3068
- document.documentElement.classList.toggle("dark", s), localStorage.setItem("theme", s ? "dark" : "light"), n(s);
3069
- }, [t]), o = [t, r];
3070
- return /* @__PURE__ */ a.jsx(wo.Provider, { value: o, ...e });
3071
- }, zl = ({
3072
- children: e,
3073
- context: t
3074
- }) => (Ho({
3075
- queryFn: async () => (await t.initialize(), !0),
1071
+ }), nt = {
1072
+ Header: st
1073
+ }, ta = Le(nt), ra = ta.Provider, aa = (t) => {
1074
+ const [e, r] = Q(!1);
1075
+ _(() => {
1076
+ const i = localStorage.getItem("theme"), o = window.matchMedia("(prefers-color-scheme: dark)"), u = i === "dark" || !i && o.matches;
1077
+ r(u);
1078
+ }, [e]);
1079
+ const s = Be(() => {
1080
+ const i = !e;
1081
+ document.documentElement.classList.toggle("dark", i), localStorage.setItem("theme", i ? "dark" : "light"), r(i);
1082
+ }, [e]), n = [e, s];
1083
+ return /* @__PURE__ */ a.jsx(Ut.Provider, { value: n, ...t });
1084
+ }, sa = ({
1085
+ children: t,
1086
+ context: e
1087
+ }) => (Bt({
1088
+ queryFn: async () => (await e.initialize(), !0),
3076
1089
  queryKey: ["zudoku-initialize"]
3077
- }), /* @__PURE__ */ a.jsx(Uo.Provider, { value: t, children: e })), Kl = ({
3078
- children: e,
3079
- ...t
1090
+ }), /* @__PURE__ */ a.jsx(Ht.Provider, { value: e, children: t })), na = ({
1091
+ children: t,
1092
+ ...e
3080
1093
  }) => {
3081
- var c, d;
3082
- const n = mt(
3083
- () => ({ ...Ra, ...t.overrides }),
3084
- [t.overrides]
3085
- ), r = mt(() => {
3086
- var C;
1094
+ var N, p;
1095
+ const r = re(
1096
+ () => ({ ...nt, ...e.overrides }),
1097
+ [e.overrides]
1098
+ ), s = re(() => {
1099
+ var h;
3087
1100
  return {
3088
- ...(t.plugins ?? []).filter(Us).flatMap(
3089
- (g) => g.getMdxComponents ? [g.getMdxComponents()] : []
3090
- ).reduce((g, T) => ({ ...g, ...T }), {}),
3091
- ...yo,
3092
- ...(C = t.mdx) == null ? void 0 : C.components
1101
+ ...(e.plugins ?? []).filter(Vr).flatMap(
1102
+ (f) => f.getMdxComponents ? [f.getMdxComponents()] : []
1103
+ ).reduce((f, L) => ({ ...f, ...L }), {}),
1104
+ ...Vt,
1105
+ ...(h = e.mdx) == null ? void 0 : h.components
3093
1106
  };
3094
- }, [(c = t.mdx) == null ? void 0 : c.components, t.plugins]), { stagger: o } = Eo(Tt), [s, i] = Ie(!1), l = mt(
3095
- () => s ? { stagger: !0 } : { stagger: o },
3096
- [o, s]
3097
- ), u = Ya();
3098
- Ce(() => {
3099
- s || i(!0);
3100
- }, [s, u.location]);
3101
- const [m] = Ie(() => new Ks(t)), f = (d = t.plugins) == null ? void 0 : d.filter(Hs).map((R, C) => {
3102
- var g;
3103
- return /* @__PURE__ */ a.jsx(Do, { children: (g = R.getHead) == null ? void 0 : g.call(R) }, C);
1107
+ }, [(N = e.mdx) == null ? void 0 : N.components, e.plugins]), { stagger: n } = Et(oe), [i, o] = Q(!1), u = re(
1108
+ () => i ? { stagger: !0 } : { stagger: n },
1109
+ [n, i]
1110
+ ), c = xt();
1111
+ _(() => {
1112
+ i || o(!0);
1113
+ }, [i, c.location]);
1114
+ const [m] = Q(() => new Yr(e)), j = (p = e.plugins) == null ? void 0 : p.filter(Ur).map((P, h) => {
1115
+ var f;
1116
+ return /* @__PURE__ */ a.jsx(kt, { children: (f = P.getHead) == null ? void 0 : f.call(P) }, h);
3104
1117
  });
3105
- return /* @__PURE__ */ a.jsxs(zo, { client: rr, children: [
3106
- /* @__PURE__ */ a.jsx(kt, { children: f }),
3107
- /* @__PURE__ */ a.jsx(Tt.Provider, { value: l, children: /* @__PURE__ */ a.jsx(zl, { context: m, children: /* @__PURE__ */ a.jsx(za, { components: r, children: /* @__PURE__ */ a.jsx(Ul, { children: /* @__PURE__ */ a.jsx(Hl, { value: n, children: /* @__PURE__ */ a.jsx(eo, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx(xo, { children: e ?? /* @__PURE__ */ a.jsx(An, {}) }) }) }) }) }) }) })
1118
+ return /* @__PURE__ */ a.jsxs(zt, { client: et, children: [
1119
+ /* @__PURE__ */ a.jsx(ce, { children: j }),
1120
+ /* @__PURE__ */ a.jsx(oe.Provider, { value: u, children: /* @__PURE__ */ a.jsx(sa, { context: m, children: /* @__PURE__ */ a.jsx(ht, { components: s, children: /* @__PURE__ */ a.jsx(aa, { children: /* @__PURE__ */ a.jsx(ra, { value: r, children: /* @__PURE__ */ a.jsx(wt, { slotlets: e.slotlets, children: /* @__PURE__ */ a.jsx(Wt, { children: t ?? /* @__PURE__ */ a.jsx(_e, {}) }) }) }) }) }) }) })
3108
1121
  ] });
3109
- }, ql = Gn(Kl), rn = (e) => /* @__PURE__ */ a.jsx(As, { FallbackComponent: qs, children: /* @__PURE__ */ a.jsx(ql, { ...e }) });
3110
- rn.displayName = "DevPortal";
3111
- const Ql = ({
3112
- category: e,
3113
- level: t
1122
+ }, ia = He(na), pe = (t) => /* @__PURE__ */ a.jsx(Br, { FallbackComponent: Xr, children: /* @__PURE__ */ a.jsx(ia, { ...t }) });
1123
+ pe.displayName = "DevPortal";
1124
+ const oa = ({
1125
+ category: t,
1126
+ level: e
3114
1127
  }) => {
3115
- var R, C;
3116
- const n = Xn(), r = Ka(e), [o, s] = Ie(!1), i = e.collapsible ?? !0, l = e.collapsed ?? !0, u = !!(!i || !l || r), [m, f] = Ie(u), c = Xa(wt(n == null ? void 0 : n.id, (R = e.link) == null ? void 0 : R.id));
3117
- Ce(() => {
3118
- r && f(!0);
1128
+ var p, P;
1129
+ const r = qt(t), [s, n] = Q(!1), i = t.collapsible ?? !0, o = t.collapsed ?? !0, u = !!(!i || !o || r), [c, m] = Q(u), j = bt(((p = t.link) == null ? void 0 : p.id) ?? "");
1130
+ _(() => {
1131
+ r && m(!0);
3119
1132
  }, [r]);
3120
- const d = i && /* @__PURE__ */ a.jsx(
1133
+ const N = i && /* @__PURE__ */ a.jsx(
3121
1134
  "button",
3122
1135
  {
3123
1136
  type: "button",
3124
- onClick: (g) => {
3125
- g.preventDefault(), f((T) => !T), s(!0);
1137
+ onClick: (h) => {
1138
+ h.preventDefault(), m((f) => !f), n(!0);
3126
1139
  },
3127
1140
  children: /* @__PURE__ */ a.jsx(
3128
- Zn,
1141
+ er,
3129
1142
  {
3130
1143
  size: 16,
3131
- className: F(
3132
- o && "transition",
1144
+ className: A(
1145
+ s && "transition",
3133
1146
  "shrink-0 group-data-[state=open]:rotate-90"
3134
1147
  )
3135
1148
  }
@@ -3137,86 +1150,86 @@ const Ql = ({
3137
1150
  }
3138
1151
  );
3139
1152
  return /* @__PURE__ */ a.jsxs(
3140
- No,
1153
+ se.Root,
3141
1154
  {
3142
1155
  className: "flex flex-col",
3143
1156
  defaultOpen: u,
3144
- open: m,
3145
- onOpenChange: () => f(!0),
1157
+ open: c,
1158
+ onOpenChange: () => m(!0),
3146
1159
  children: [
3147
- /* @__PURE__ */ a.jsx(To, { className: "group", asChild: !0, disabled: !i, children: /* @__PURE__ */ a.jsxs(
1160
+ /* @__PURE__ */ a.jsx(se.Trigger, { className: "group", asChild: !0, disabled: !i, children: /* @__PURE__ */ a.jsxs(
3148
1161
  "div",
3149
1162
  {
3150
- onClick: () => s(!0),
3151
- className: Ze({
1163
+ onClick: () => n(!0),
1164
+ className: $({
3152
1165
  isActive: !1,
3153
- isTopLevel: t === 0,
1166
+ isTopLevel: e === 0,
3154
1167
  className: [
3155
1168
  "text-start",
3156
1169
  i ? "cursor-pointer" : "cursor-default hover:bg-transparent"
3157
1170
  ]
3158
1171
  }),
3159
1172
  children: [
3160
- e.icon && /* @__PURE__ */ a.jsx(
3161
- e.icon,
1173
+ t.icon && /* @__PURE__ */ a.jsx(
1174
+ t.icon,
3162
1175
  {
3163
1176
  size: 16,
3164
- className: F(
1177
+ className: A(
3165
1178
  "align-[-0.125em] -translate-x-1",
3166
- c && "text-primary"
1179
+ j && "text-primary"
3167
1180
  )
3168
1181
  }
3169
1182
  ),
3170
- ((C = e.link) == null ? void 0 : C.type) === "doc" ? /* @__PURE__ */ a.jsx(
3171
- Je,
1183
+ ((P = t.link) == null ? void 0 : P.type) === "doc" ? /* @__PURE__ */ a.jsx(
1184
+ G,
3172
1185
  {
3173
- to: wt(n == null ? void 0 : n.id, e.link.id),
1186
+ to: U(t.link.id),
3174
1187
  className: "flex-1",
3175
1188
  onClick: () => {
3176
- c && !m && f(!0);
1189
+ j && !c && m(!0);
3177
1190
  },
3178
1191
  children: /* @__PURE__ */ a.jsxs(
3179
1192
  "div",
3180
1193
  {
3181
- className: F(
1194
+ className: A(
3182
1195
  "flex items-center gap-2 justify-between w-full",
3183
- c ? "text-primary" : "text-foreground/80"
1196
+ j ? "text-primary" : "text-foreground/80"
3184
1197
  ),
3185
1198
  children: [
3186
- /* @__PURE__ */ a.jsx("div", { className: "truncate", children: e.label }),
3187
- d
1199
+ /* @__PURE__ */ a.jsx("div", { className: "truncate", children: t.label }),
1200
+ N
3188
1201
  ]
3189
1202
  }
3190
1203
  )
3191
1204
  }
3192
1205
  ) : /* @__PURE__ */ a.jsxs("div", { className: "flex items-center justify-between w-full", children: [
3193
- /* @__PURE__ */ a.jsx("div", { className: "flex gap-2 truncate w-full", children: e.label }),
3194
- d
1206
+ /* @__PURE__ */ a.jsx("div", { className: "flex gap-2 truncate w-full", children: t.label }),
1207
+ N
3195
1208
  ] })
3196
1209
  ]
3197
1210
  }
3198
1211
  ) }),
3199
1212
  /* @__PURE__ */ a.jsx(
3200
- _o,
1213
+ se.Content,
3201
1214
  {
3202
- className: F(
1215
+ className: A(
3203
1216
  // CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
3204
- o && "CollapsibleContent"
1217
+ s && "CollapsibleContent"
3205
1218
  ),
3206
- children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-l ms-0.5", children: e.items.map((g) => /* @__PURE__ */ a.jsx(
3207
- At,
1219
+ children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-l ms-0.5", children: t.items.map((h) => /* @__PURE__ */ a.jsx(
1220
+ le,
3208
1221
  {
3209
- level: t + 1,
3210
- item: g
1222
+ level: e + 1,
1223
+ item: h
3211
1224
  },
3212
- ("id" in g ? g.id : "") + ("href" in g ? g.href : "") + g.label
1225
+ ("id" in h ? h.id : "") + ("href" in h ? h.href : "") + h.label
3213
1226
  )) })
3214
1227
  }
3215
1228
  )
3216
1229
  ]
3217
1230
  }
3218
1231
  );
3219
- }, Ze = bo(
1232
+ }, $ = fr(
3220
1233
  "flex items-center gap-2 px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
3221
1234
  {
3222
1235
  variants: {
@@ -3237,171 +1250,171 @@ const Ql = ({
3237
1250
  isActive: !1
3238
1251
  }
3239
1252
  }
3240
- ), Ea = "data-anchor", At = ({
3241
- item: e,
3242
- level: t = 0
1253
+ ), it = "data-anchor", le = ({
1254
+ item: t,
1255
+ level: e = 0
3243
1256
  }) => {
3244
- var s, i;
3245
- const n = Xn(), { activeAnchor: r } = Bt(), [o] = Za();
3246
- switch (e.type) {
1257
+ var n, i;
1258
+ const { activeAnchor: r } = ge(), [s] = yt();
1259
+ switch (t.type) {
3247
1260
  case "category":
3248
- return /* @__PURE__ */ a.jsx(Ql, { category: e, level: t });
1261
+ return /* @__PURE__ */ a.jsx(oa, { category: t, level: e });
3249
1262
  case "doc":
3250
1263
  return /* @__PURE__ */ a.jsxs(
3251
- Je,
1264
+ G,
3252
1265
  {
3253
- className: ({ isActive: l }) => Ze({ isActive: l, isTopLevel: t === 0 }),
3254
- to: wt(n == null ? void 0 : n.id, e.id),
1266
+ className: ({ isActive: o }) => $({ isActive: o, isTopLevel: e === 0 }),
1267
+ to: U(t.id),
3255
1268
  children: [
3256
- e.icon && /* @__PURE__ */ a.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
3257
- e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3258
- /* @__PURE__ */ a.jsx("span", { className: "truncate flex-1", title: e.label, children: e.label }),
3259
- /* @__PURE__ */ a.jsx(Mt, { ...e.badge })
3260
- ] }) : e.label
1269
+ t.icon && /* @__PURE__ */ a.jsx(t.icon, { size: 16, className: "align-[-0.125em]" }),
1270
+ t.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1271
+ /* @__PURE__ */ a.jsx("span", { className: "truncate flex-1", title: t.label, children: t.label }),
1272
+ /* @__PURE__ */ a.jsx(ae, { ...t.badge })
1273
+ ] }) : t.label
3261
1274
  ]
3262
1275
  }
3263
1276
  );
3264
1277
  case "link":
3265
- return e.href.startsWith("#") ? /* @__PURE__ */ a.jsx(
3266
- qa,
1278
+ return t.href.startsWith("#") ? /* @__PURE__ */ a.jsx(
1279
+ ft,
3267
1280
  {
3268
- to: { hash: e.href, search: o.toString() },
3269
- [Ea]: e.href.slice(1),
3270
- className: Ze({
3271
- isActive: e.href.slice(1) === r,
3272
- isTopLevel: t === 0,
3273
- className: ((s = e.badge) == null ? void 0 : s.placement) !== "start" && "justify-between"
1281
+ to: { hash: t.href, search: s.toString() },
1282
+ [it]: t.href.slice(1),
1283
+ className: $({
1284
+ isActive: t.href.slice(1) === r,
1285
+ isTopLevel: e === 0,
1286
+ className: ((n = t.badge) == null ? void 0 : n.placement) !== "start" && "justify-between"
3274
1287
  }),
3275
- children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3276
- /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
3277
- /* @__PURE__ */ a.jsx(Mt, { ...e.badge })
3278
- ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
1288
+ children: t.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1289
+ /* @__PURE__ */ a.jsx("span", { className: "truncate", title: t.label, children: t.label }),
1290
+ /* @__PURE__ */ a.jsx(ae, { ...t.badge })
1291
+ ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: t.label })
3279
1292
  }
3280
- ) : e.href.startsWith("http") ? /* @__PURE__ */ a.jsxs(
1293
+ ) : t.href.startsWith("http") ? /* @__PURE__ */ a.jsxs(
3281
1294
  "a",
3282
1295
  {
3283
- className: Ze({ isTopLevel: t === 0 }),
3284
- href: e.href,
1296
+ className: $({ isTopLevel: e === 0 }),
1297
+ href: t.href,
3285
1298
  target: "_blank",
3286
1299
  rel: "noopener noreferrer",
3287
1300
  children: [
3288
- /* @__PURE__ */ a.jsx("span", { className: "whitespace-normal", children: e.label }),
3289
- /* @__PURE__ */ a.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ a.jsx(Zo, { className: "inline -translate-y-0.5", size: 12 }) })
1301
+ /* @__PURE__ */ a.jsx("span", { className: "whitespace-normal", children: t.label }),
1302
+ /* @__PURE__ */ a.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ a.jsx(tr, { className: "inline -translate-y-0.5", size: 12 }) })
3290
1303
  ]
3291
1304
  }
3292
1305
  ) : /* @__PURE__ */ a.jsx(
3293
- Je,
1306
+ G,
3294
1307
  {
3295
- className: Ze({
3296
- className: ((i = e.badge) == null ? void 0 : i.placement) !== "start" && "justify-between"
1308
+ className: $({
1309
+ className: ((i = t.badge) == null ? void 0 : i.placement) !== "start" && "justify-between"
3297
1310
  }),
3298
- to: e.href,
3299
- children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3300
- /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
3301
- /* @__PURE__ */ a.jsx(Mt, { ...e.badge })
3302
- ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
1311
+ to: t.href,
1312
+ children: t.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1313
+ /* @__PURE__ */ a.jsx("span", { className: "truncate", title: t.label, children: t.label }),
1314
+ /* @__PURE__ */ a.jsx(ae, { ...t.badge })
1315
+ ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: t.label })
3303
1316
  }
3304
1317
  );
3305
1318
  }
3306
- }, Vl = (e, t = { block: "center" }) => {
3307
- if (!e) return;
3308
- const n = e.getBoundingClientRect();
3309
- n.top >= 0 && n.left >= 0 && n.bottom <= (window.innerHeight || document.documentElement.clientHeight) && n.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
3310
- }, Gl = () => {
3311
- const e = Ft(), { setActiveAnchor: t } = Bt();
3312
- Ce(() => {
3313
- if (!e.hash) return;
3314
- const n = decodeURIComponent(e.hash.split("/")[0].slice(1)), r = () => {
3315
- const o = document.getElementById(n), s = document.querySelector(`[${Ea}="${n}"]`);
3316
- return o ? (o.scrollIntoView(), Vl(s), requestIdleCallback(() => t(n)), !0) : !1;
1319
+ }, la = (t, e = { block: "center" }) => {
1320
+ if (!t) return;
1321
+ const r = t.getBoundingClientRect();
1322
+ r.top >= 0 && r.left >= 0 && r.bottom <= (window.innerHeight || document.documentElement.clientHeight) && r.right <= (window.innerWidth || document.documentElement.clientWidth) || t.scrollIntoView(e);
1323
+ }, ca = () => {
1324
+ const t = ue(), { setActiveAnchor: e } = ge();
1325
+ _(() => {
1326
+ if (!t.hash) return;
1327
+ const r = decodeURIComponent(t.hash.split("/")[0].slice(1)), s = () => {
1328
+ const n = document.getElementById(r), i = document.querySelector(`[${it}="${r}"]`);
1329
+ return n ? (n.scrollIntoView(), la(i), requestIdleCallback(() => e(r)), !0) : !1;
3317
1330
  };
3318
- if (!r()) {
3319
- const o = new MutationObserver((s, i) => {
3320
- r() && i.disconnect();
1331
+ if (!s()) {
1332
+ const n = new MutationObserver((i, o) => {
1333
+ s() && o.disconnect();
3321
1334
  });
3322
- return o.observe(document.body, { childList: !0, subtree: !0 }), () => o.disconnect();
1335
+ return n.observe(document.body, { childList: !0, subtree: !0 }), () => n.disconnect();
3323
1336
  }
3324
- }, [e.hash, t]);
3325
- }, Wl = () => {
3326
- const e = Ft(), t = Ht(e.pathname);
3327
- Ce(() => {
3328
- t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
3329
- }, [e.pathname]);
3330
- }, Da = Po(({ children: e, className: t, pushMainContent: n }, r) => /* @__PURE__ */ a.jsx(
1337
+ }, [t.hash, e]);
1338
+ }, ua = () => {
1339
+ const t = ue(), e = he(t.pathname);
1340
+ _(() => {
1341
+ e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
1342
+ }, [t.pathname]);
1343
+ }, ot = At(({ children: t, className: e, pushMainContent: r }, s) => /* @__PURE__ */ a.jsx(
3331
1344
  "nav",
3332
1345
  {
3333
- "data-navigation": String(n),
3334
- className: F(
1346
+ "data-navigation": String(r),
1347
+ className: A(
3335
1348
  "scrollbar peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0",
3336
1349
  "px-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 mt-[--padding-content-top]",
3337
1350
  "w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
3338
- t
1351
+ e
3339
1352
  ),
3340
- ref: r,
3341
- children: e
1353
+ ref: s,
1354
+ children: t
3342
1355
  }
3343
1356
  ));
3344
- Da.displayName = "SidebarWrapper";
3345
- const Yl = () => {
3346
- const e = Ht(null), t = Ko();
1357
+ ot.displayName = "SidebarWrapper";
1358
+ const da = () => {
1359
+ const t = he(null), e = Ke();
3347
1360
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3348
1361
  /* @__PURE__ */ a.jsxs(
3349
- Da,
1362
+ ot,
3350
1363
  {
3351
- ref: e,
3352
- pushMainContent: t.data.items.length > 0,
1364
+ ref: t,
1365
+ pushMainContent: e.data.sidebar.length > 0,
3353
1366
  children: [
3354
- /* @__PURE__ */ a.jsx(ye, { name: "zudoku-before-navigation" }),
3355
- t.data.items.map((n) => /* @__PURE__ */ a.jsx(At, { item: n }, n.label)),
3356
- /* @__PURE__ */ a.jsx(ye, { name: "zudoku-after-navigation" })
1367
+ /* @__PURE__ */ a.jsx(k, { name: "zudoku-before-navigation" }),
1368
+ e.data.sidebar.map((r) => /* @__PURE__ */ a.jsx(le, { item: r }, r.label)),
1369
+ /* @__PURE__ */ a.jsx(k, { name: "zudoku-after-navigation" })
3357
1370
  ]
3358
1371
  }
3359
1372
  ),
3360
1373
  /* @__PURE__ */ a.jsxs(
3361
- tn,
1374
+ Ye,
3362
1375
  {
3363
1376
  className: "lg:hidden h-screen left-0 p-6 w-[320px] rounded-none overflow-auto",
3364
1377
  "aria-describedby": void 0,
3365
1378
  children: [
3366
- /* @__PURE__ */ a.jsx(Un, { children: /* @__PURE__ */ a.jsx(nn, { children: "Sidebar" }) }),
3367
- t.data.items.map((n) => /* @__PURE__ */ a.jsx(At, { item: n }, n.label))
1379
+ /* @__PURE__ */ a.jsx($e, { children: /* @__PURE__ */ a.jsx(Xe, { children: "Sidebar" }) }),
1380
+ e.data.sidebar.map((r) => /* @__PURE__ */ a.jsx(le, { item: r }, r.label))
3368
1381
  ]
3369
1382
  }
3370
1383
  )
3371
1384
  ] });
3372
- }, Xl = ({ children: e }) => {
3373
- const t = Ft(), { setActiveAnchor: n } = Bt(), { meta: r, authentication: o } = Ae();
3374
- Gl(), Wl();
3375
- const s = Ht(t.pathname);
3376
- return Ce(() => {
3377
- var i;
3378
- (i = o == null ? void 0 : o.pageLoad) == null || i.call(o);
3379
- }, [o]), Ce(() => {
3380
- t.pathname !== s.current && n(""), s.current = t.pathname;
3381
- }, [t.pathname, n]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1385
+ }, ha = ({ children: t }) => {
1386
+ const e = ue(), { setActiveAnchor: r } = ge(), { meta: s, authentication: n } = F();
1387
+ ca(), ua();
1388
+ const i = he(e.pathname);
1389
+ return _(() => {
1390
+ var o;
1391
+ (o = n == null ? void 0 : n.pageLoad) == null || o.call(n);
1392
+ }, [n]), _(() => {
1393
+ e.pathname !== i.current && r(""), i.current = e.pathname;
1394
+ }, [e.pathname, r]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3382
1395
  !1,
3383
- /* @__PURE__ */ a.jsxs(kt, { titleTemplate: r == null ? void 0 : r.title, children: [
3384
- (r == null ? void 0 : r.description) && /* @__PURE__ */ a.jsx("meta", { name: "description", content: r.description }),
3385
- (r == null ? void 0 : r.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: r.favicon })
1396
+ /* @__PURE__ */ a.jsxs(ce, { titleTemplate: s == null ? void 0 : s.title, children: [
1397
+ (s == null ? void 0 : s.description) && /* @__PURE__ */ a.jsx("meta", { name: "description", content: s.description }),
1398
+ (s == null ? void 0 : s.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: s.favicon })
3386
1399
  ] }),
3387
- /* @__PURE__ */ a.jsx(ye, { name: "layout-before-head" }),
3388
- /* @__PURE__ */ a.jsx(Ma, {}),
3389
- /* @__PURE__ */ a.jsx(ye, { name: "layout-after-head" }),
1400
+ /* @__PURE__ */ a.jsx(k, { name: "layout-before-head" }),
1401
+ /* @__PURE__ */ a.jsx(st, {}),
1402
+ /* @__PURE__ */ a.jsx(k, { name: "layout-after-head" }),
3390
1403
  /* @__PURE__ */ a.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12", children: /* @__PURE__ */ a.jsx(
3391
- Vn,
1404
+ de,
3392
1405
  {
3393
- fallback: /* @__PURE__ */ a.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ a.jsx(us, {}) }),
3394
- children: /* @__PURE__ */ a.jsxs(en, { direction: "left", children: [
3395
- /* @__PURE__ */ a.jsx(Yl, {}),
1406
+ fallback: /* @__PURE__ */ a.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ a.jsx(mr, {}) }),
1407
+ children: /* @__PURE__ */ a.jsxs(Ve, { direction: "left", children: [
1408
+ /* @__PURE__ */ a.jsx(da, {}),
3396
1409
  /* @__PURE__ */ a.jsx(
3397
1410
  "div",
3398
1411
  {
3399
- className: F(
1412
+ className: A(
3400
1413
  "lg:hidden -mx-10 px-10 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
3401
1414
  "peer-data-[navigation=false]:hidden"
3402
1415
  ),
3403
- children: /* @__PURE__ */ a.jsxs(ya, { className: "flex items-center gap-2", children: [
3404
- /* @__PURE__ */ a.jsx(Jo, { size: 16, strokeWidth: 1.5 }),
1416
+ children: /* @__PURE__ */ a.jsxs(We, { className: "flex items-center gap-2", children: [
1417
+ /* @__PURE__ */ a.jsx(rr, { size: 16, strokeWidth: 1.5 }),
3405
1418
  /* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Menu" })
3406
1419
  ] })
3407
1420
  }
@@ -3409,7 +1422,7 @@ const Yl = () => {
3409
1422
  /* @__PURE__ */ a.jsxs(
3410
1423
  "main",
3411
1424
  {
3412
- className: F(
1425
+ className: A(
3413
1426
  "h-full dark:border-white/10 translate-x-0",
3414
1427
  "lg:overflow-visible",
3415
1428
  // This works in tandem with the `SidebarWrapper` component
@@ -3417,9 +1430,9 @@ const Yl = () => {
3417
1430
  "lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
3418
1431
  ),
3419
1432
  children: [
3420
- /* @__PURE__ */ a.jsx(ye, { name: "zudoku-before-content" }),
3421
- e ?? /* @__PURE__ */ a.jsx(An, {}),
3422
- /* @__PURE__ */ a.jsx(ye, { name: "zudoku-after-content" })
1433
+ /* @__PURE__ */ a.jsx(k, { name: "zudoku-before-content" }),
1434
+ t ?? /* @__PURE__ */ a.jsx(_e, {}),
1435
+ /* @__PURE__ */ a.jsx(k, { name: "zudoku-after-content" })
3423
1436
  ]
3424
1437
  }
3425
1438
  )
@@ -3427,22 +1440,22 @@ const Yl = () => {
3427
1440
  }
3428
1441
  ) })
3429
1442
  ] });
3430
- }, gc = Qa, vc = rn, wc = Xl, yc = to, xc = ds, bc = Ps, Sc = js, Cc = kt, Mc = Ae, Rc = Ja, Ec = rn, Dc = So, Pc = Oo, jc = Nt, Nc = $t;
1443
+ }, _a = gt, Fa = pe, Qa = ha, La = Nt, Ba = pr, Ha = Rr, za = Ir, qa = ce, Ka = F, $a = jt, Ua = pe, Va = Pt, Wa = Dt, Ya = ie, Xa = te;
3431
1444
  export {
3432
- bc as Bootstrap,
3433
- Sc as BootstrapStatic,
3434
- jc as Button,
3435
- Dc as Callout,
3436
- Pc as ClientOnly,
3437
- vc as DevPortal,
3438
- Cc as Head,
3439
- wc as Layout,
3440
- Nc as Link,
3441
- yc as RouterError,
3442
- xc as ServerError,
3443
- Ec as Zudoku,
3444
- Rc as useAuth,
3445
- gc as useMDXComponents,
3446
- Mc as useZudoku
1445
+ Ha as Bootstrap,
1446
+ za as BootstrapStatic,
1447
+ Ya as Button,
1448
+ Va as Callout,
1449
+ Wa as ClientOnly,
1450
+ Fa as DevPortal,
1451
+ qa as Head,
1452
+ Qa as Layout,
1453
+ Xa as Link,
1454
+ La as RouterError,
1455
+ Ba as ServerError,
1456
+ Ua as Zudoku,
1457
+ $a as useAuth,
1458
+ _a as useMDXComponents,
1459
+ Ka as useZudoku
3447
1460
  };
3448
1461
  //# sourceMappingURL=zudoku.components.js.map