zudoku 0.3.0-dev.8 → 0.3.0-dev.80

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 (589) hide show
  1. package/dist/app/App.d.ts +1 -2
  2. package/dist/app/App.js +1 -29
  3. package/dist/app/App.js.map +1 -1
  4. package/dist/app/demo.d.ts +2 -0
  5. package/dist/app/demo.js +32 -0
  6. package/dist/app/demo.js.map +1 -0
  7. package/dist/app/entry.client.d.ts +2 -0
  8. package/dist/app/entry.client.js +35 -0
  9. package/dist/app/entry.client.js.map +1 -0
  10. package/dist/app/entry.server.d.ts +14 -0
  11. package/dist/app/entry.server.js +105 -0
  12. package/dist/app/entry.server.js.map +1 -0
  13. package/dist/app/main.d.ts +6 -1
  14. package/dist/app/main.js +72 -12
  15. package/dist/app/main.js.map +1 -1
  16. package/dist/app/standalone.d.ts +2 -0
  17. package/dist/app/standalone.js +37 -0
  18. package/dist/app/standalone.js.map +1 -0
  19. package/dist/app/tailwind.d.ts +1 -1
  20. package/dist/app/tailwind.js +0 -4
  21. package/dist/app/tailwind.js.map +1 -1
  22. package/dist/cli/cmds/dev.js +5 -0
  23. package/dist/cli/cmds/dev.js.map +1 -1
  24. package/dist/cli/dev/handler.d.ts +1 -0
  25. package/dist/cli/dev/handler.js +3 -1
  26. package/dist/cli/dev/handler.js.map +1 -1
  27. package/dist/config/config.d.ts +19 -45
  28. package/dist/config/validators/validate.d.ts +911 -2
  29. package/dist/config/validators/validate.js +151 -1
  30. package/dist/config/validators/validate.js.map +1 -1
  31. package/dist/internal.d.ts +1 -0
  32. package/dist/internal.js +2 -0
  33. package/dist/internal.js.map +1 -0
  34. package/dist/lib/authentication/AuthenticationPlugin.d.ts +13 -0
  35. package/dist/lib/authentication/AuthenticationPlugin.js +31 -0
  36. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -0
  37. package/dist/lib/authentication/authentication.d.ts +10 -9
  38. package/dist/lib/authentication/components/SignIn.d.ts +1 -0
  39. package/dist/lib/authentication/components/SignIn.js +14 -0
  40. package/dist/lib/authentication/components/SignIn.js.map +1 -0
  41. package/dist/lib/authentication/components/SignOut.d.ts +1 -0
  42. package/dist/lib/authentication/components/SignOut.js +12 -0
  43. package/dist/lib/authentication/components/SignOut.js.map +1 -0
  44. package/dist/lib/authentication/components/SignUp.d.ts +1 -0
  45. package/dist/lib/authentication/components/SignUp.js +10 -0
  46. package/dist/lib/authentication/components/SignUp.js.map +1 -0
  47. package/dist/lib/authentication/hook.js +2 -2
  48. package/dist/lib/authentication/hook.js.map +1 -1
  49. package/dist/lib/authentication/providers/auth0.js +11 -6
  50. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  51. package/dist/lib/authentication/providers/clerk.js +59 -30
  52. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  53. package/dist/lib/authentication/providers/openid.d.ts +30 -7
  54. package/dist/lib/authentication/providers/openid.js +78 -29
  55. package/dist/lib/authentication/providers/openid.js.map +1 -1
  56. package/dist/lib/authentication/state.js +1 -1
  57. package/dist/lib/authentication/state.js.map +1 -1
  58. package/dist/lib/components/Bootstrap.d.ts +13 -0
  59. package/dist/lib/components/Bootstrap.js +12 -0
  60. package/dist/lib/components/Bootstrap.js.map +1 -0
  61. package/dist/lib/components/DevPortal.d.ts +5 -19
  62. package/dist/lib/components/DevPortal.js +57 -15
  63. package/dist/lib/components/DevPortal.js.map +1 -1
  64. package/dist/lib/components/DeveloperHint.d.ts +5 -0
  65. package/dist/lib/components/DeveloperHint.js +10 -0
  66. package/dist/lib/components/DeveloperHint.js.map +1 -0
  67. package/dist/lib/components/ErrorPage.d.ts +6 -0
  68. package/dist/lib/components/ErrorPage.js +9 -0
  69. package/dist/lib/components/ErrorPage.js.map +1 -0
  70. package/dist/lib/components/Header.js +21 -3
  71. package/dist/lib/components/Header.js.map +1 -1
  72. package/dist/lib/components/Heading.d.ts +9 -4
  73. package/dist/lib/components/Heading.js +17 -2
  74. package/dist/lib/components/Heading.js.map +1 -1
  75. package/dist/lib/components/InlineCode.d.ts +5 -0
  76. package/dist/lib/components/InlineCode.js +4 -0
  77. package/dist/lib/components/InlineCode.js.map +1 -0
  78. package/dist/lib/components/Layout.js +4 -2
  79. package/dist/lib/components/Layout.js.map +1 -1
  80. package/dist/lib/components/NotFoundPage.d.ts +1 -0
  81. package/dist/lib/components/NotFoundPage.js +12 -0
  82. package/dist/lib/components/NotFoundPage.js.map +1 -0
  83. package/dist/lib/components/SlotletProvider.d.ts +9 -0
  84. package/dist/lib/components/SlotletProvider.js +11 -0
  85. package/dist/lib/components/SlotletProvider.js.map +1 -0
  86. package/dist/lib/components/SyntaxHighlight.d.ts +3 -2
  87. package/dist/lib/components/SyntaxHighlight.js +24 -22
  88. package/dist/lib/components/SyntaxHighlight.js.map +1 -1
  89. package/dist/lib/components/TopNavigation.d.ts +1 -1
  90. package/dist/lib/components/TopNavigation.js +5 -1
  91. package/dist/lib/components/TopNavigation.js.map +1 -1
  92. package/dist/lib/components/context/DevPortalProvider.d.ts +1 -1
  93. package/dist/lib/components/context/DevPortalProvider.js +20 -3
  94. package/dist/lib/components/context/DevPortalProvider.js.map +1 -1
  95. package/dist/lib/components/index.d.ts +32 -3
  96. package/dist/lib/components/index.js +21 -3
  97. package/dist/lib/components/index.js.map +1 -1
  98. package/dist/lib/components/navigation/SideNavigation.js +3 -2
  99. package/dist/lib/components/navigation/SideNavigation.js.map +1 -1
  100. package/dist/lib/components/navigation/SideNavigationCategory.js +3 -3
  101. package/dist/lib/components/navigation/SideNavigationCategory.js.map +1 -1
  102. package/dist/lib/components/navigation/SideNavigationItem.d.ts +0 -4
  103. package/dist/lib/components/navigation/SideNavigationItem.js +4 -4
  104. package/dist/lib/components/navigation/SideNavigationItem.js.map +1 -1
  105. package/dist/lib/components/navigation/useNavigationCollapsibleState.d.ts +4 -1
  106. package/dist/lib/components/navigation/useNavigationCollapsibleState.js +17 -5
  107. package/dist/lib/components/navigation/useNavigationCollapsibleState.js.map +1 -1
  108. package/dist/lib/core/DevPortalContext.d.ts +52 -13
  109. package/dist/lib/core/DevPortalContext.js +10 -14
  110. package/dist/lib/core/DevPortalContext.js.map +1 -1
  111. package/dist/lib/core/plugins.d.ts +22 -5
  112. package/dist/lib/core/plugins.js +3 -0
  113. package/dist/lib/core/plugins.js.map +1 -1
  114. package/dist/lib/errors/ErrorAlert.d.ts +3 -0
  115. package/dist/lib/errors/ErrorAlert.js +8 -0
  116. package/dist/lib/errors/ErrorAlert.js.map +1 -0
  117. package/dist/lib/errors/RouterError.d.ts +1 -0
  118. package/dist/lib/errors/RouterError.js +12 -0
  119. package/dist/lib/errors/RouterError.js.map +1 -0
  120. package/dist/lib/errors/ServerError.d.ts +3 -0
  121. package/dist/lib/errors/ServerError.js +6 -0
  122. package/dist/lib/errors/ServerError.js.map +1 -0
  123. package/dist/lib/errors/TopLevelError.d.ts +2 -0
  124. package/dist/lib/errors/TopLevelError.js +7 -0
  125. package/dist/lib/errors/TopLevelError.js.map +1 -0
  126. package/dist/lib/oas/graphql/index.js +8 -5
  127. package/dist/lib/oas/graphql/index.js.map +1 -1
  128. package/dist/lib/oas/parser/index.d.ts +1 -1
  129. package/dist/lib/oas/parser/index.js +38 -12
  130. package/dist/lib/oas/parser/index.js.map +1 -1
  131. package/dist/lib/plugins/{api-key → api-keys}/CreateApiKey.js +2 -2
  132. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -0
  133. package/dist/lib/plugins/api-keys/ProtectedRoute.d.ts +1 -0
  134. package/dist/lib/plugins/api-keys/ProtectedRoute.js +14 -0
  135. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -0
  136. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +40 -0
  137. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -0
  138. package/dist/lib/plugins/{api-key → api-keys}/index.d.ts +4 -5
  139. package/dist/lib/plugins/{api-key → api-keys}/index.js +12 -20
  140. package/dist/lib/plugins/api-keys/index.js.map +1 -0
  141. package/dist/lib/plugins/custom-page/index.d.ts +8 -0
  142. package/dist/lib/plugins/custom-page/index.js +12 -0
  143. package/dist/lib/plugins/custom-page/index.js.map +1 -0
  144. package/dist/lib/plugins/markdown/MdxPage.d.ts +3 -2
  145. package/dist/lib/plugins/markdown/MdxPage.js +7 -6
  146. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  147. package/dist/lib/plugins/markdown/Toc.js +17 -9
  148. package/dist/lib/plugins/markdown/Toc.js.map +1 -1
  149. package/dist/lib/plugins/markdown/generateRoutes.d.ts +3 -3
  150. package/dist/lib/plugins/markdown/generateRoutes.js +4 -4
  151. package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -1
  152. package/dist/lib/plugins/markdown/index.d.ts +4 -1
  153. package/dist/lib/plugins/markdown/index.js +3 -7
  154. package/dist/lib/plugins/markdown/index.js.map +1 -1
  155. package/dist/lib/plugins/openapi/ColorizedParam.d.ts +2 -1
  156. package/dist/lib/plugins/openapi/ColorizedParam.js +14 -9
  157. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  158. package/dist/lib/plugins/openapi/OperationList.js +17 -5
  159. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  160. package/dist/lib/plugins/openapi/OperationListItem.js +10 -5
  161. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  162. package/dist/lib/plugins/openapi/ParameterList.js +1 -1
  163. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  164. package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
  165. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  166. package/dist/lib/plugins/openapi/{MakeRequest.d.ts → PlaygroundDialogWrapper.d.ts} +2 -1
  167. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +23 -0
  168. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -0
  169. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +3 -9
  170. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  171. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +1 -1
  172. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  173. package/dist/lib/plugins/openapi/Route.d.ts +6 -0
  174. package/dist/lib/plugins/openapi/Route.js +8 -0
  175. package/dist/lib/plugins/openapi/Route.js.map +1 -0
  176. package/dist/lib/plugins/openapi/SchemaListView.js +6 -27
  177. package/dist/lib/plugins/openapi/SchemaListView.js.map +1 -1
  178. package/dist/lib/plugins/openapi/SchemaListViewItem.d.ts +7 -0
  179. package/dist/lib/plugins/openapi/SchemaListViewItem.js +19 -0
  180. package/dist/lib/plugins/openapi/SchemaListViewItem.js.map +1 -0
  181. package/dist/lib/plugins/openapi/SchemaListViewItemGroup.d.ts +8 -0
  182. package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js +17 -0
  183. package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js.map +1 -0
  184. package/dist/lib/plugins/openapi/Sidecar.d.ts +4 -0
  185. package/dist/lib/plugins/openapi/Sidecar.js +43 -19
  186. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  187. package/dist/lib/plugins/openapi/SidecarBox.d.ts +1 -0
  188. package/dist/lib/plugins/openapi/SidecarBox.js +3 -2
  189. package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
  190. package/dist/lib/plugins/openapi/{Select.d.ts → SimpleSelect.d.ts} +3 -2
  191. package/dist/lib/plugins/openapi/SimpleSelect.js +5 -0
  192. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -0
  193. package/dist/lib/plugins/openapi/StaggeredRender.d.ts +8 -0
  194. package/dist/lib/plugins/openapi/StaggeredRender.js +18 -0
  195. package/dist/lib/plugins/openapi/StaggeredRender.js.map +1 -0
  196. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +12 -0
  197. package/dist/lib/plugins/openapi/client/createMemoryClient.js +46 -0
  198. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +1 -0
  199. package/dist/lib/plugins/openapi/client/createServer.d.ts +4 -0
  200. package/dist/lib/plugins/openapi/client/createServer.js +30 -0
  201. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -0
  202. package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +10 -0
  203. package/dist/lib/plugins/openapi/{worker/createSharedWorkerClient.js → client/createWorkerClient.js} +15 -2
  204. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +1 -0
  205. package/dist/lib/plugins/openapi/client/interfaces.d.ts +4 -0
  206. package/dist/lib/plugins/openapi/client/interfaces.js +2 -0
  207. package/dist/lib/plugins/openapi/client/interfaces.js.map +1 -0
  208. package/dist/lib/plugins/openapi/{worker → client}/worker.js +2 -2
  209. package/dist/lib/plugins/openapi/client/worker.js.map +1 -0
  210. package/dist/lib/plugins/openapi/context.d.ts +5 -0
  211. package/dist/lib/plugins/openapi/context.js +11 -0
  212. package/dist/lib/plugins/openapi/context.js.map +1 -0
  213. package/dist/lib/plugins/openapi/graphql/gql.d.ts +6 -6
  214. package/dist/lib/plugins/openapi/graphql/gql.js +1 -1
  215. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  216. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +15 -15
  217. package/dist/lib/plugins/openapi/graphql/graphql.js +67 -67
  218. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  219. package/dist/lib/plugins/openapi/index.d.ts +4 -18
  220. package/dist/lib/plugins/openapi/index.js +62 -21
  221. package/dist/lib/plugins/openapi/index.js.map +1 -1
  222. package/dist/lib/plugins/openapi/interfaces.d.ts +15 -0
  223. package/dist/lib/plugins/openapi/interfaces.js +2 -0
  224. package/dist/lib/plugins/openapi/interfaces.js.map +1 -0
  225. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +4 -5
  226. package/dist/lib/plugins/openapi/playground/PathParams.js +9 -13
  227. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  228. package/dist/lib/plugins/openapi/playground/Playground.d.ts +26 -14
  229. package/dist/lib/plugins/openapi/playground/Playground.js +53 -25
  230. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  231. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.d.ts +5 -0
  232. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +12 -0
  233. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -0
  234. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +4 -3
  235. package/dist/lib/plugins/openapi/playground/QueryParams.js +21 -12
  236. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  237. package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +4 -0
  238. package/dist/lib/plugins/openapi/playground/ResponseTab.js +40 -0
  239. package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +1 -0
  240. package/dist/lib/plugins/openapi/playground/createUrl.d.ts +1 -1
  241. package/dist/lib/plugins/openapi/playground/createUrl.js +5 -9
  242. package/dist/lib/plugins/openapi/playground/createUrl.js.map +1 -1
  243. package/dist/lib/plugins/openapi/util/prose.d.ts +1 -0
  244. package/dist/lib/plugins/openapi/util/prose.js +4 -0
  245. package/dist/lib/plugins/openapi/util/prose.js.map +1 -0
  246. package/dist/lib/plugins/openapi-worker.d.ts +1 -1
  247. package/dist/lib/plugins/openapi-worker.js +1 -1
  248. package/dist/lib/plugins/openapi-worker.js.map +1 -1
  249. package/dist/lib/plugins/redirect/index.d.ts +0 -1
  250. package/dist/lib/plugins/redirect/index.js +3 -4
  251. package/dist/lib/plugins/redirect/index.js.map +1 -1
  252. package/dist/lib/ui/Button.d.ts +5 -1
  253. package/dist/lib/ui/Button.js +24 -1
  254. package/dist/lib/ui/Button.js.map +1 -1
  255. package/dist/lib/ui/Callout.js +2 -2
  256. package/dist/lib/ui/Callout.js.map +1 -1
  257. package/dist/lib/ui/Card.js +1 -1
  258. package/dist/lib/ui/Card.js.map +1 -1
  259. package/dist/lib/ui/DropdownMenu.d.ts +27 -0
  260. package/dist/lib/ui/DropdownMenu.js +36 -0
  261. package/dist/lib/ui/DropdownMenu.js.map +1 -0
  262. package/dist/lib/ui/Input.js.map +1 -0
  263. package/dist/lib/util/MdxComponents.d.ts +2 -2
  264. package/dist/lib/util/MdxComponents.js +7 -5
  265. package/dist/lib/util/MdxComponents.js.map +1 -1
  266. package/dist/lib/util/fetchTimeout.d.ts +1 -0
  267. package/dist/lib/util/fetchTimeout.js +14 -0
  268. package/dist/lib/util/fetchTimeout.js.map +1 -0
  269. package/dist/lib/util/groupBy.d.ts +1 -6
  270. package/dist/lib/util/groupBy.js +10 -8
  271. package/dist/lib/util/groupBy.js.map +1 -1
  272. package/dist/lib/util/invariant.d.ts +6 -0
  273. package/dist/lib/util/invariant.js +21 -0
  274. package/dist/lib/util/invariant.js.map +1 -0
  275. package/dist/lib/util/joinPath.js +2 -1
  276. package/dist/lib/util/joinPath.js.map +1 -1
  277. package/dist/lib/util/logInit.d.ts +1 -0
  278. package/dist/lib/util/logInit.js +9 -0
  279. package/dist/lib/util/logInit.js.map +1 -0
  280. package/dist/lib/util/objectEntries.d.ts +4 -0
  281. package/dist/lib/util/objectEntries.js +2 -0
  282. package/dist/lib/util/objectEntries.js.map +1 -0
  283. package/dist/lib/util/renderIf.d.ts +1 -0
  284. package/dist/lib/util/renderIf.js +2 -0
  285. package/dist/lib/util/renderIf.js.map +1 -0
  286. package/dist/lib/util/requestIdleCallbackPolyfill.d.ts +1 -0
  287. package/dist/lib/util/requestIdleCallbackPolyfill.js +7 -0
  288. package/dist/lib/util/requestIdleCallbackPolyfill.js.map +1 -0
  289. package/dist/vite/build.js +30 -7
  290. package/dist/vite/build.js.map +1 -1
  291. package/dist/vite/config.d.ts +21 -12
  292. package/dist/vite/config.js +107 -55
  293. package/dist/vite/config.js.map +1 -1
  294. package/dist/vite/config.test.js +6 -3
  295. package/dist/vite/config.test.js.map +1 -1
  296. package/dist/vite/dev-server.d.ts +2 -1
  297. package/dist/vite/dev-server.js +44 -15
  298. package/dist/vite/dev-server.js.map +1 -1
  299. package/dist/vite/html.js +18 -5
  300. package/dist/vite/html.js.map +1 -1
  301. package/dist/vite/plugin-api-keys.js +7 -8
  302. package/dist/vite/plugin-api-keys.js.map +1 -1
  303. package/dist/vite/plugin-api.js +9 -20
  304. package/dist/vite/plugin-api.js.map +1 -1
  305. package/dist/vite/plugin-auth.js +5 -6
  306. package/dist/vite/plugin-auth.js.map +1 -1
  307. package/dist/vite/plugin-component.js +5 -2
  308. package/dist/vite/plugin-component.js.map +1 -1
  309. package/dist/vite/plugin-config.d.ts +0 -2
  310. package/dist/vite/plugin-config.js +2 -13
  311. package/dist/vite/plugin-config.js.map +1 -1
  312. package/dist/vite/plugin-custom-css.d.ts +6 -0
  313. package/dist/vite/plugin-custom-css.js +54 -0
  314. package/dist/vite/plugin-custom-css.js.map +1 -0
  315. package/dist/vite/plugin-docs.js +15 -5
  316. package/dist/vite/plugin-docs.js.map +1 -1
  317. package/dist/vite/plugin-mdx.d.ts +3 -1
  318. package/dist/vite/plugin-mdx.js +5 -5
  319. package/dist/vite/plugin-mdx.js.map +1 -1
  320. package/dist/vite/plugin-metadata.js +1 -1
  321. package/dist/vite/plugin-metadata.js.map +1 -1
  322. package/dist/vite/plugin-redirect.js +10 -10
  323. package/dist/vite/plugin-redirect.js.map +1 -1
  324. package/dist/vite/plugin.js +3 -5
  325. package/dist/vite/plugin.js.map +1 -1
  326. package/dist/vite/prerender.d.ts +17 -0
  327. package/dist/vite/prerender.js +79 -0
  328. package/dist/vite/prerender.js.map +1 -0
  329. package/lib/AnchorLink-BZcpTwOs.js +705 -0
  330. package/lib/AnchorLink-BZcpTwOs.js.map +1 -0
  331. package/lib/AuthenticationPlugin-XS0DoAhE.js +55 -0
  332. package/lib/AuthenticationPlugin-XS0DoAhE.js.map +1 -0
  333. package/lib/CategoryHeading-DCmchnA1.js +10 -0
  334. package/lib/CategoryHeading-DCmchnA1.js.map +1 -0
  335. package/lib/Combination-C442XfGG.js +2789 -0
  336. package/lib/Combination-C442XfGG.js.map +1 -0
  337. package/lib/DevPortalProvider-BWeAysxF.js +1126 -0
  338. package/lib/DevPortalProvider-BWeAysxF.js.map +1 -0
  339. package/lib/DeveloperHint-DQVwIery.js +10 -0
  340. package/lib/DeveloperHint-DQVwIery.js.map +1 -0
  341. package/lib/Input-3IEt27jb.js +2239 -0
  342. package/lib/Input-3IEt27jb.js.map +1 -0
  343. package/lib/Markdown-QsZ-PHET.js +14124 -0
  344. package/lib/Markdown-QsZ-PHET.js.map +1 -0
  345. package/lib/MdxPage-CA1WmW14.js +201 -0
  346. package/lib/MdxPage-CA1WmW14.js.map +1 -0
  347. package/lib/OperationList-rv6Z3wD3.js +431 -0
  348. package/lib/OperationList-rv6Z3wD3.js.map +1 -0
  349. package/lib/Route-Clw81GSR.js +13 -0
  350. package/lib/Route-Clw81GSR.js.map +1 -0
  351. package/lib/SlotletProvider-B71hNEUL.js +82 -0
  352. package/lib/SlotletProvider-B71hNEUL.js.map +1 -0
  353. package/lib/Spinner-Coi7ORUV.js +244 -0
  354. package/lib/Spinner-Coi7ORUV.js.map +1 -0
  355. package/lib/_commonjsHelpers-BVfed4GL.js +29 -0
  356. package/lib/_commonjsHelpers-BVfed4GL.js.map +1 -0
  357. package/lib/assets/index-BPdJm2ty.js +1 -0
  358. package/lib/assets/index-BPdJm2ty.js.map +1 -0
  359. package/lib/assets/{worker-BCcpCNJ7.js → worker-CyHZIIfE.js} +10727 -10300
  360. package/lib/assets/worker-CyHZIIfE.js.map +1 -0
  361. package/lib/index-BH-Ub36F.js +124 -0
  362. package/lib/index-BH-Ub36F.js.map +1 -0
  363. package/lib/index-CLkuJSxj.js +5950 -0
  364. package/lib/index-CLkuJSxj.js.map +1 -0
  365. package/lib/index-Dt-pU7Vu.js +916 -0
  366. package/lib/index-Dt-pU7Vu.js.map +1 -0
  367. package/lib/index-pI9JkN46.js +4765 -0
  368. package/lib/index-pI9JkN46.js.map +1 -0
  369. package/lib/jsx-runtime-CJBdjYYx.js +1526 -0
  370. package/lib/jsx-runtime-CJBdjYYx.js.map +1 -0
  371. package/lib/prism-bash.min-DadFsM4Z.js +1 -0
  372. package/lib/prism-bash.min-DadFsM4Z.js.map +1 -0
  373. package/lib/prism-csharp.min-Yizuc34Y.js +1 -0
  374. package/lib/prism-csharp.min-Yizuc34Y.js.map +1 -0
  375. package/lib/prism-java.min-d5iT_mOd.js +1 -0
  376. package/lib/prism-java.min-d5iT_mOd.js.map +1 -0
  377. package/lib/prism-json.min-B1GJqK1k.js +1 -0
  378. package/lib/prism-json.min-B1GJqK1k.js.map +1 -0
  379. package/lib/prism-markup-templating-DZrrEs0A.js +1 -0
  380. package/lib/prism-markup-templating-DZrrEs0A.js.map +1 -0
  381. package/lib/prism-objectivec.min-BXSWqpJJ.js +1 -0
  382. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +1 -0
  383. package/lib/prism-php.min-o7FpoMP_.js +1 -0
  384. package/lib/prism-php.min-o7FpoMP_.js.map +1 -0
  385. package/lib/prism-ruby.min-C7LwcKyz.js +1 -0
  386. package/lib/prism-ruby.min-C7LwcKyz.js.map +1 -0
  387. package/lib/router-BiRCp01d.js +2971 -0
  388. package/lib/router-BiRCp01d.js.map +1 -0
  389. package/lib/slugify-CiPVjteN.js +28 -0
  390. package/lib/slugify-CiPVjteN.js.map +1 -0
  391. package/lib/state-DsXXkBLH.js +288 -0
  392. package/lib/state-DsXXkBLH.js.map +1 -0
  393. package/lib/{urql-DMlBWUKL.js → urql-DrBfkb92.js} +2 -2
  394. package/lib/urql-DrBfkb92.js.map +1 -0
  395. package/lib/zudoku.auth-auth0.js +31 -20
  396. package/lib/zudoku.auth-auth0.js.map +1 -0
  397. package/lib/zudoku.auth-clerk.js +59 -29
  398. package/lib/zudoku.auth-clerk.js.map +1 -0
  399. package/lib/zudoku.auth-openid.js +740 -573
  400. package/lib/zudoku.auth-openid.js.map +1 -0
  401. package/lib/zudoku.components.js +1854 -535
  402. package/lib/zudoku.components.js.map +1 -0
  403. package/lib/zudoku.openapi-worker.js +15035 -146
  404. package/lib/zudoku.openapi-worker.js.map +1 -0
  405. package/lib/zudoku.plugin-api-keys.js +303 -0
  406. package/lib/zudoku.plugin-api-keys.js.map +1 -0
  407. package/lib/zudoku.plugin-custom-page.js +13 -0
  408. package/lib/zudoku.plugin-custom-page.js.map +1 -0
  409. package/lib/zudoku.plugin-markdown.js +48 -0
  410. package/lib/zudoku.plugin-markdown.js.map +1 -0
  411. package/lib/zudoku.plugin-openapi.js +12 -0
  412. package/lib/zudoku.plugin-openapi.js.map +1 -0
  413. package/lib/zudoku.plugin-redirect.js +11 -0
  414. package/lib/zudoku.plugin-redirect.js.map +1 -0
  415. package/package.json +60 -25
  416. package/src/app/App.tsx +0 -41
  417. package/src/app/demo-cdn.html +26 -0
  418. package/src/app/demo.html +18 -0
  419. package/src/app/demo.tsx +45 -0
  420. package/src/app/entry.client.tsx +47 -0
  421. package/src/app/entry.server.tsx +160 -0
  422. package/src/app/main.css +85 -5
  423. package/src/app/main.tsx +85 -15
  424. package/src/app/standalone.html +20 -0
  425. package/src/app/standalone.tsx +51 -0
  426. package/src/app/tailwind.ts +2 -6
  427. package/src/lib/authentication/AuthenticationPlugin.tsx +38 -0
  428. package/src/lib/authentication/authentication.ts +6 -12
  429. package/src/lib/authentication/components/SignIn.tsx +15 -0
  430. package/src/lib/authentication/components/SignOut.tsx +13 -0
  431. package/src/lib/authentication/components/SignUp.tsx +11 -0
  432. package/src/lib/authentication/hook.ts +2 -2
  433. package/src/lib/authentication/providers/auth0.tsx +16 -6
  434. package/src/lib/authentication/providers/clerk.tsx +63 -31
  435. package/src/lib/authentication/providers/openid.tsx +105 -34
  436. package/src/lib/authentication/state.ts +1 -1
  437. package/src/lib/components/Bootstrap.tsx +44 -0
  438. package/src/lib/components/DevPortal.tsx +88 -53
  439. package/src/lib/components/DeveloperHint.tsx +25 -0
  440. package/src/lib/components/ErrorPage.tsx +28 -0
  441. package/src/lib/components/Header.tsx +103 -30
  442. package/src/lib/components/Heading.tsx +26 -7
  443. package/src/lib/components/InlineCode.tsx +19 -0
  444. package/src/lib/components/Layout.tsx +12 -7
  445. package/src/lib/components/NotFoundPage.tsx +33 -0
  446. package/src/lib/components/SlotletProvider.tsx +25 -0
  447. package/src/lib/components/SyntaxHighlight.tsx +53 -44
  448. package/src/lib/components/TopNavigation.tsx +6 -1
  449. package/src/lib/components/context/DevPortalProvider.ts +24 -4
  450. package/src/lib/components/index.ts +25 -3
  451. package/src/lib/components/navigation/SideNavigation.tsx +3 -0
  452. package/src/lib/components/navigation/SideNavigationCategory.tsx +5 -9
  453. package/src/lib/components/navigation/SideNavigationItem.tsx +5 -9
  454. package/src/lib/components/navigation/useNavigationCollapsibleState.ts +21 -6
  455. package/src/lib/core/DevPortalContext.ts +64 -28
  456. package/src/lib/core/plugins.ts +37 -6
  457. package/src/lib/errors/ErrorAlert.tsx +21 -0
  458. package/src/lib/errors/RouterError.tsx +13 -0
  459. package/src/lib/errors/ServerError.tsx +5 -0
  460. package/src/lib/errors/TopLevelError.tsx +8 -0
  461. package/src/lib/oas/graphql/index.ts +11 -6
  462. package/src/lib/oas/parser/index.ts +41 -20
  463. package/src/lib/plugins/{api-key → api-keys}/CreateApiKey.tsx +2 -2
  464. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +29 -0
  465. package/src/lib/plugins/{api-key → api-keys}/SettingsApiKeys.tsx +21 -9
  466. package/src/lib/plugins/{api-key → api-keys}/index.tsx +17 -41
  467. package/src/lib/plugins/custom-page/index.tsx +22 -0
  468. package/src/lib/plugins/markdown/MdxPage.tsx +51 -34
  469. package/src/lib/plugins/markdown/Toc.tsx +53 -40
  470. package/src/lib/plugins/markdown/generateRoutes.tsx +16 -6
  471. package/src/lib/plugins/markdown/index.tsx +10 -7
  472. package/src/lib/plugins/openapi/ColorizedParam.tsx +23 -16
  473. package/src/lib/plugins/openapi/OperationList.tsx +46 -10
  474. package/src/lib/plugins/openapi/OperationListItem.tsx +68 -42
  475. package/src/lib/plugins/openapi/ParameterList.tsx +1 -1
  476. package/src/lib/plugins/openapi/ParameterListItem.tsx +3 -4
  477. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +39 -0
  478. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +3 -15
  479. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +3 -2
  480. package/src/lib/plugins/openapi/Route.tsx +21 -0
  481. package/src/lib/plugins/openapi/SchemaListView.tsx +23 -192
  482. package/src/lib/plugins/openapi/SchemaListViewItem.tsx +113 -0
  483. package/src/lib/plugins/openapi/SchemaListViewItemGroup.tsx +63 -0
  484. package/src/lib/plugins/openapi/Sidecar.tsx +62 -28
  485. package/src/lib/plugins/openapi/SidecarBox.tsx +13 -2
  486. package/src/lib/plugins/openapi/{Select.tsx → SimpleSelect.tsx} +6 -3
  487. package/src/lib/plugins/openapi/StaggeredRender.tsx +31 -0
  488. package/src/lib/plugins/openapi/client/createMemoryClient.ts +56 -0
  489. package/src/lib/plugins/openapi/client/createServer.ts +33 -0
  490. package/src/lib/plugins/openapi/{worker/createSharedWorkerClient.ts → client/createWorkerClient.ts} +21 -2
  491. package/src/lib/plugins/openapi/client/interfaces.ts +5 -0
  492. package/src/lib/plugins/openapi/{worker → client}/worker.ts +3 -3
  493. package/src/lib/plugins/openapi/context.tsx +16 -0
  494. package/src/lib/plugins/openapi/graphql/gql.ts +8 -8
  495. package/src/lib/plugins/openapi/graphql/graphql.ts +80 -80
  496. package/src/lib/plugins/openapi/index.tsx +117 -53
  497. package/src/lib/plugins/openapi/interfaces.ts +9 -0
  498. package/src/lib/plugins/openapi/playground/PathParams.tsx +76 -50
  499. package/src/lib/plugins/openapi/playground/Playground.tsx +239 -229
  500. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +40 -0
  501. package/src/lib/plugins/openapi/playground/QueryParams.tsx +107 -66
  502. package/src/lib/plugins/openapi/playground/ResponseTab.tsx +76 -0
  503. package/src/lib/plugins/openapi/playground/createUrl.ts +12 -15
  504. package/src/lib/plugins/openapi/util/prose.ts +7 -0
  505. package/src/lib/plugins/openapi-worker.ts +1 -1
  506. package/src/lib/plugins/redirect/index.tsx +3 -4
  507. package/src/lib/ui/Button.tsx +32 -2
  508. package/src/lib/ui/Callout.tsx +4 -4
  509. package/src/lib/ui/Card.tsx +1 -1
  510. package/src/lib/ui/DropdownMenu.tsx +199 -0
  511. package/src/lib/util/MdxComponents.tsx +7 -15
  512. package/src/lib/util/fetchTimeout.tsx +21 -0
  513. package/src/lib/util/groupBy.ts +7 -12
  514. package/src/lib/util/invariant.ts +26 -0
  515. package/src/lib/util/joinPath.tsx +2 -1
  516. package/src/lib/util/logInit.ts +9 -0
  517. package/src/lib/util/objectEntries.ts +5 -0
  518. package/src/lib/util/renderIf.ts +4 -0
  519. package/src/lib/util/requestIdleCallbackPolyfill.ts +6 -0
  520. package/dist/lib/authentication/Callback.d.ts +0 -3
  521. package/dist/lib/authentication/Callback.js +0 -34
  522. package/dist/lib/authentication/Callback.js.map +0 -1
  523. package/dist/lib/components/Input.js.map +0 -1
  524. package/dist/lib/components/Link.d.ts +0 -1
  525. package/dist/lib/components/Link.js +0 -2
  526. package/dist/lib/components/Link.js.map +0 -1
  527. package/dist/lib/components/Router.d.ts +0 -4
  528. package/dist/lib/components/Router.js +0 -20
  529. package/dist/lib/components/Router.js.map +0 -1
  530. package/dist/lib/core/helmet.d.ts +0 -4
  531. package/dist/lib/core/helmet.js +0 -5
  532. package/dist/lib/core/helmet.js.map +0 -1
  533. package/dist/lib/core/icons.d.ts +0 -1
  534. package/dist/lib/core/icons.js +0 -2
  535. package/dist/lib/core/icons.js.map +0 -1
  536. package/dist/lib/core/router.d.ts +0 -1
  537. package/dist/lib/core/router.js +0 -2
  538. package/dist/lib/core/router.js.map +0 -1
  539. package/dist/lib/plugins/api-key/CreateApiKey.js.map +0 -1
  540. package/dist/lib/plugins/api-key/SettingsApiKeys.js +0 -38
  541. package/dist/lib/plugins/api-key/SettingsApiKeys.js.map +0 -1
  542. package/dist/lib/plugins/api-key/index.js.map +0 -1
  543. package/dist/lib/plugins/index.d.ts +0 -4
  544. package/dist/lib/plugins/index.js +0 -5
  545. package/dist/lib/plugins/index.js.map +0 -1
  546. package/dist/lib/plugins/openapi/MakeRequest.js +0 -43
  547. package/dist/lib/plugins/openapi/MakeRequest.js.map +0 -1
  548. package/dist/lib/plugins/openapi/Select.js +0 -5
  549. package/dist/lib/plugins/openapi/Select.js.map +0 -1
  550. package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.d.ts +0 -5
  551. package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.js.map +0 -1
  552. package/dist/lib/plugins/openapi/worker/shared-worker.d.ts +0 -1
  553. package/dist/lib/plugins/openapi/worker/shared-worker.js +0 -6
  554. package/dist/lib/plugins/openapi/worker/shared-worker.js.map +0 -1
  555. package/dist/lib/plugins/openapi/worker/worker.js.map +0 -1
  556. package/dist/lib/ui/button-variants.d.ts +0 -4
  557. package/dist/lib/ui/button-variants.js +0 -24
  558. package/dist/lib/ui/button-variants.js.map +0 -1
  559. package/dist/vite/common.d.ts +0 -1
  560. package/dist/vite/common.js +0 -5
  561. package/dist/vite/common.js.map +0 -1
  562. package/dist/vite/plugin-html.d.ts +0 -3
  563. package/dist/vite/plugin-html.js +0 -47
  564. package/dist/vite/plugin-html.js.map +0 -1
  565. package/dist/vite/plugin-openapi-worker.d.ts +0 -4
  566. package/dist/vite/plugin-openapi-worker.js +0 -28
  567. package/dist/vite/plugin-openapi-worker.js.map +0 -1
  568. package/lib/Spinner-BewqqUU-.js +0 -8413
  569. package/lib/clerk-Wslx_mPo.js +0 -19685
  570. package/lib/index-PyGcnQFX.js +0 -3462
  571. package/lib/loglevel-CoH7VSwE.js +0 -152
  572. package/lib/state-2Hu1renZ.js +0 -313
  573. package/lib/zudoku.plugins.js +0 -19902
  574. package/src/lib/authentication/Callback.tsx +0 -60
  575. package/src/lib/components/Link.tsx +0 -1
  576. package/src/lib/components/Router.tsx +0 -28
  577. package/src/lib/core/helmet.ts +0 -5
  578. package/src/lib/core/icons.tsx +0 -1
  579. package/src/lib/core/router.tsx +0 -1
  580. package/src/lib/plugins/index.ts +0 -4
  581. package/src/lib/plugins/openapi/MakeRequest.tsx +0 -63
  582. package/src/lib/plugins/openapi/worker/shared-worker.ts +0 -5
  583. package/src/lib/ui/button-variants.ts +0 -31
  584. /package/dist/lib/plugins/{api-key → api-keys}/CreateApiKey.d.ts +0 -0
  585. /package/dist/lib/plugins/{api-key → api-keys}/SettingsApiKeys.d.ts +0 -0
  586. /package/dist/lib/plugins/openapi/{worker → client}/worker.d.ts +0 -0
  587. /package/dist/lib/{components → ui}/Input.d.ts +0 -0
  588. /package/dist/lib/{components → ui}/Input.js +0 -0
  589. /package/src/lib/{components → ui}/Input.tsx +0 -0
@@ -1,636 +1,1996 @@
1
- var De = Object.defineProperty;
2
- var se = (t) => {
1
+ var ir = Object.defineProperty;
2
+ var dt = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
- var Te = (t, e, s) => e in t ? De(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
6
- var y = (t, e, s) => Te(t, typeof e != "symbol" ? e + "" : e, s), ae = (t, e, s) => e.has(t) || se("Cannot " + s);
7
- var i = (t, e, s) => (ae(t, e, "read from private field"), s ? s.call(t) : e.get(t)), m = (t, e, s) => e.has(t) ? se("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), u = (t, e, s, a) => (ae(t, e, "write to private field"), a ? a.call(t, s) : e.set(t, s), s);
8
- var S = (t, e, s, a) => ({
9
- set _(r) {
10
- u(t, e, r, s);
5
+ var cr = (t, e, n) => e in t ? ir(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
6
+ var A = (t, e, n) => cr(t, typeof e != "symbol" ? e + "" : e, n), ht = (t, e, n) => e.has(t) || dt("Cannot " + n);
7
+ var h = (t, e, n) => (ht(t, e, "read from private field"), n ? n.call(t) : e.get(t)), O = (t, e, n) => e.has(t) ? dt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), b = (t, e, n, r) => (ht(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
8
+ var Ce = (t, e, n, r) => ({
9
+ set _(a) {
10
+ b(t, e, a, n);
11
11
  },
12
12
  get _() {
13
- return i(t, e, a);
13
+ return h(t, e, r);
14
14
  }
15
15
  });
16
- import { j as n, u as D, O as Ie } from "./index-PyGcnQFX.js";
17
- import { S as me, h as ge, Q as Ee, n as p, m as ne, M as Se, a as re, b as j, e as Fe, c as Re, d as He, f as Le, o as ie, r as oe, g as ze, i as le, p as ce, s as Ke, j as z, u as U, N as B, k as _e, l as Be, q as Ve, t as W, v as X, w as V, x as ve, y as Ue, z as L, R as ye, T as xe, C as be, A as We, B as Xe, D as $e, E as Ge, H as Je, F as Ye, G as Ze, I as et, J as tt, K as st, L as at, O as nt, P as rt, U as it, V as ot } from "./Spinner-BewqqUU-.js";
18
- import { X as _t, W as Bt } from "./Spinner-BewqqUU-.js";
19
- import { memo as je, createContext as lt, useEffect as I, useRef as K, useState as ct, forwardRef as ht, Suspense as Pe, useMemo as H } from "react";
20
- import { c as ut } from "./state-2Hu1renZ.js";
21
- var x, de, dt = (de = class extends me {
16
+ import { H as _t, a as Ge, M as ur, A as lr, u as dr } from "./AnchorLink-BZcpTwOs.js";
17
+ import { d as hr, R as pr, N as $e, L as Ee } from "./index-Dt-pU7Vu.js";
18
+ import { E as Et, S as fr, a as Se, R as mr } from "./SlotletProvider-B71hNEUL.js";
19
+ import { j as o, d as gr, u as J, a as vr, b as xr, O as St } from "./jsx-runtime-CJBdjYYx.js";
20
+ import { M as yr, c as wr, a as jt, b as Nt, A as Mr, u as fe, h as br, d as y, e as Cr, F as Pr, D as Rr, C as _r, P as ie, f as qe, g as Er, i as Dt, R as Sr, S as jr, j as Nr, k as Dr, l as It, m as Ir, n as je, o as At, p as Ar, B as Be } from "./Combination-C442XfGG.js";
21
+ import { c as me, a as P, C as Or, b as Tr, u as kr, M as Fr, T as Lr, V as Kr, d as He, e as $r, f as Br } from "./Markdown-QsZ-PHET.js";
22
+ import * as u from "react";
23
+ import Qr, { StrictMode as Ot, createContext as Tt, Component as Ur, createElement as pt, isValidElement as Gr, memo as kt, useMemo as Le, useState as le, useContext as qr, useRef as ge, useEffect as W, Fragment as Hr, forwardRef as zr, Suspense as Vr } from "react";
24
+ import { g as ze } from "./_commonjsHelpers-BVfed4GL.js";
25
+ import { r as Yr } from "./router-BiRCp01d.js";
26
+ import { S as Qe, R as Ft, T as Lt, C as Kt } from "./index-BH-Ub36F.js";
27
+ import { S as $t, h as Bt, Q as Xr, n as j, m as ft, a as mt, b as Q, e as Wr, c as Jr, d as Zr, f as ea, o as gt, r as vt, g as ta, i as xt, p as yt, s as na, u as Ve, j as ra, D as aa, k as Ye, l as wt, q as Qt, t as oa, v as sa, w as ia } from "./DevPortalProvider-BWeAysxF.js";
28
+ import { c as Ut, P as Ie, R as ca, I as ua, S as la } from "./Spinner-Coi7ORUV.js";
29
+ /**
30
+ * @license lucide-react v0.378.0 - ISC
31
+ *
32
+ * This source code is licensed under the ISC license.
33
+ * See the LICENSE file in the root directory of this source tree.
34
+ */
35
+ const Xe = me("ChevronRight", [
36
+ ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
37
+ ]);
38
+ /**
39
+ * @license lucide-react v0.378.0 - ISC
40
+ *
41
+ * This source code is licensed under the ISC license.
42
+ * See the LICENSE file in the root directory of this source tree.
43
+ */
44
+ const da = me("Dot", [
45
+ ["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
46
+ ]);
47
+ /**
48
+ * @license lucide-react v0.378.0 - ISC
49
+ *
50
+ * This source code is licensed under the ISC license.
51
+ * See the LICENSE file in the root directory of this source tree.
52
+ */
53
+ const ha = me("ExternalLink", [
54
+ ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
55
+ ["path", { d: "M10 14 21 3", key: "gplh6r" }],
56
+ ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
57
+ ]);
58
+ /**
59
+ * @license lucide-react v0.378.0 - ISC
60
+ *
61
+ * This source code is licensed under the ISC license.
62
+ * See the LICENSE file in the root directory of this source tree.
63
+ */
64
+ const pa = me("MoonStar", [
65
+ ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
66
+ ["path", { d: "M20 3v4", key: "1olli1" }],
67
+ ["path", { d: "M22 5h-4", key: "1gvqau" }]
68
+ ]);
69
+ /**
70
+ * @license lucide-react v0.378.0 - ISC
71
+ *
72
+ * This source code is licensed under the ISC license.
73
+ * See the LICENSE file in the root directory of this source tree.
74
+ */
75
+ const fa = me("Sun", [
76
+ ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
77
+ ["path", { d: "M12 2v2", key: "tus03m" }],
78
+ ["path", { d: "M12 20v2", key: "1lh1kg" }],
79
+ ["path", { d: "m4.93 4.93 1.41 1.41", key: "149t6j" }],
80
+ ["path", { d: "m17.66 17.66 1.41 1.41", key: "ptbguv" }],
81
+ ["path", { d: "M2 12h2", key: "1t8f8n" }],
82
+ ["path", { d: "M20 12h2", key: "1q8mjw" }],
83
+ ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
84
+ ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
85
+ ]);
86
+ function ma({ error: t }) {
87
+ return /* @__PURE__ */ o.jsx(Et, { error: t });
88
+ }
89
+ var ve = {};
90
+ const ga = /* @__PURE__ */ ze(Yr), va = /* @__PURE__ */ ze(gr), xa = /* @__PURE__ */ ze(hr);
91
+ Object.defineProperty(ve, "__esModule", { value: !0 });
92
+ var ya = Qr, K = ga, We = va, U = xa;
93
+ function wa(t) {
94
+ if (t && t.__esModule) return t;
95
+ var e = /* @__PURE__ */ Object.create(null);
96
+ return t && Object.keys(t).forEach(function(n) {
97
+ if (n !== "default") {
98
+ var r = Object.getOwnPropertyDescriptor(t, n);
99
+ Object.defineProperty(e, n, r.get ? r : {
100
+ enumerable: !0,
101
+ get: function() {
102
+ return t[n];
103
+ }
104
+ });
105
+ }
106
+ }), e.default = t, Object.freeze(e);
107
+ }
108
+ var F = /* @__PURE__ */ wa(ya);
109
+ function Ma({
110
+ basename: t,
111
+ children: e,
112
+ location: n = "/",
113
+ future: r
114
+ }) {
115
+ typeof n == "string" && (n = U.parsePath(n));
116
+ let a = K.Action.Pop, s = {
117
+ pathname: n.pathname || "/",
118
+ search: n.search || "",
119
+ hash: n.hash || "",
120
+ state: n.state != null ? n.state : null,
121
+ key: n.key || "default"
122
+ }, i = Gt();
123
+ return /* @__PURE__ */ F.createElement(U.Router, {
124
+ basename: t,
125
+ children: e,
126
+ location: s,
127
+ navigationType: a,
128
+ navigator: i,
129
+ future: r,
130
+ static: !0
131
+ });
132
+ }
133
+ function ba({
134
+ context: t,
135
+ router: e,
136
+ hydrate: n = !0,
137
+ nonce: r
138
+ }) {
139
+ e && t || (process.env.NODE_ENV !== "production" ? K.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : K.UNSAFE_invariant(!1));
140
+ let a = {
141
+ router: e,
142
+ navigator: Gt(),
143
+ static: !0,
144
+ staticContext: t,
145
+ basename: t.basename || "/"
146
+ }, s = /* @__PURE__ */ new Map(), i = "";
147
+ if (n !== !1) {
148
+ let l = {
149
+ loaderData: t.loaderData,
150
+ actionData: t.actionData,
151
+ errors: Pa(t.errors)
152
+ };
153
+ i = `window.__staticRouterHydrationData = JSON.parse(${Na(JSON.stringify(JSON.stringify(l)))});`;
154
+ }
155
+ let {
156
+ state: c
157
+ } = a.router;
158
+ return /* @__PURE__ */ F.createElement(F.Fragment, null, /* @__PURE__ */ F.createElement(U.UNSAFE_DataRouterContext.Provider, {
159
+ value: a
160
+ }, /* @__PURE__ */ F.createElement(U.UNSAFE_DataRouterStateContext.Provider, {
161
+ value: c
162
+ }, /* @__PURE__ */ F.createElement(U.UNSAFE_FetchersContext.Provider, {
163
+ value: s
164
+ }, /* @__PURE__ */ F.createElement(U.UNSAFE_ViewTransitionContext.Provider, {
165
+ value: {
166
+ isTransitioning: !1
167
+ }
168
+ }, /* @__PURE__ */ F.createElement(U.Router, {
169
+ basename: a.basename,
170
+ location: c.location,
171
+ navigationType: c.historyAction,
172
+ navigator: a.navigator,
173
+ static: a.static,
174
+ future: {
175
+ v7_relativeSplatPath: e.future.v7_relativeSplatPath
176
+ }
177
+ }, /* @__PURE__ */ F.createElement(Ca, {
178
+ routes: e.routes,
179
+ future: e.future,
180
+ state: c
181
+ })))))), i ? /* @__PURE__ */ F.createElement("script", {
182
+ suppressHydrationWarning: !0,
183
+ nonce: r,
184
+ dangerouslySetInnerHTML: {
185
+ __html: i
186
+ }
187
+ }) : null);
188
+ }
189
+ function Ca({
190
+ routes: t,
191
+ future: e,
192
+ state: n
193
+ }) {
194
+ return We.UNSAFE_useRoutesImpl(t, void 0, n, e);
195
+ }
196
+ function Pa(t) {
197
+ if (!t) return null;
198
+ let e = Object.entries(t), n = {};
199
+ for (let [r, a] of e)
200
+ K.isRouteErrorResponse(a) ? n[r] = {
201
+ ...a,
202
+ __type: "RouteErrorResponse"
203
+ } : a instanceof Error ? n[r] = {
204
+ message: a.message,
205
+ __type: "Error",
206
+ // If this is a subclass (i.e., ReferenceError), send up the type so we
207
+ // can re-create the same type during hydration.
208
+ ...a.name !== "Error" ? {
209
+ __subType: a.name
210
+ } : {}
211
+ } : n[r] = a;
212
+ return n;
213
+ }
214
+ function Gt() {
215
+ return {
216
+ createHref: qt,
217
+ encodeLocation: Ht,
218
+ push(t) {
219
+ 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.`);
220
+ },
221
+ replace(t) {
222
+ 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.`);
223
+ },
224
+ go(t) {
225
+ 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.`);
226
+ },
227
+ back() {
228
+ throw new Error("You cannot use navigator.back() on the server because it is a stateless environment.");
229
+ },
230
+ forward() {
231
+ throw new Error("You cannot use navigator.forward() on the server because it is a stateless environment.");
232
+ }
233
+ };
234
+ }
235
+ function Ra(t, e) {
236
+ return K.createStaticHandler(t, {
237
+ ...e,
238
+ mapRouteProperties: We.UNSAFE_mapRouteProperties
239
+ });
240
+ }
241
+ function _a(t, e, n = {}) {
242
+ let r = {}, a = K.UNSAFE_convertRoutesToDataRoutes(t, We.UNSAFE_mapRouteProperties, void 0, r), s = e.matches.map((c) => {
243
+ let l = r[c.route.id] || c.route;
244
+ return {
245
+ ...c,
246
+ route: l
247
+ };
248
+ }), i = (c) => `You cannot use router.${c}() on the server because it is a stateless environment`;
249
+ return {
250
+ get basename() {
251
+ return e.basename;
252
+ },
253
+ get future() {
254
+ var c, l;
255
+ return {
256
+ v7_fetcherPersist: !1,
257
+ v7_normalizeFormMethod: !1,
258
+ v7_partialHydration: ((c = n.future) == null ? void 0 : c.v7_partialHydration) === !0,
259
+ v7_prependBasename: !1,
260
+ v7_relativeSplatPath: ((l = n.future) == null ? void 0 : l.v7_relativeSplatPath) === !0,
261
+ v7_skipActionErrorRevalidation: !1
262
+ };
263
+ },
264
+ get state() {
265
+ return {
266
+ historyAction: K.Action.Pop,
267
+ location: e.location,
268
+ matches: s,
269
+ loaderData: e.loaderData,
270
+ actionData: e.actionData,
271
+ errors: e.errors,
272
+ initialized: !0,
273
+ navigation: K.IDLE_NAVIGATION,
274
+ restoreScrollPosition: null,
275
+ preventScrollReset: !1,
276
+ revalidation: "idle",
277
+ fetchers: /* @__PURE__ */ new Map(),
278
+ blockers: /* @__PURE__ */ new Map()
279
+ };
280
+ },
281
+ get routes() {
282
+ return a;
283
+ },
284
+ get window() {
285
+ },
286
+ initialize() {
287
+ throw i("initialize");
288
+ },
289
+ subscribe() {
290
+ throw i("subscribe");
291
+ },
292
+ enableScrollRestoration() {
293
+ throw i("enableScrollRestoration");
294
+ },
295
+ navigate() {
296
+ throw i("navigate");
297
+ },
298
+ fetch() {
299
+ throw i("fetch");
300
+ },
301
+ revalidate() {
302
+ throw i("revalidate");
303
+ },
304
+ createHref: qt,
305
+ encodeLocation: Ht,
306
+ getFetcher() {
307
+ return K.IDLE_FETCHER;
308
+ },
309
+ deleteFetcher() {
310
+ throw i("deleteFetcher");
311
+ },
312
+ dispose() {
313
+ throw i("dispose");
314
+ },
315
+ getBlocker() {
316
+ return K.IDLE_BLOCKER;
317
+ },
318
+ deleteBlocker() {
319
+ throw i("deleteBlocker");
320
+ },
321
+ patchRoutes() {
322
+ throw i("patchRoutes");
323
+ },
324
+ _internalFetchControllers: /* @__PURE__ */ new Map(),
325
+ _internalActiveDeferreds: /* @__PURE__ */ new Map(),
326
+ _internalSetRoutes() {
327
+ throw i("_internalSetRoutes");
328
+ }
329
+ };
330
+ }
331
+ function qt(t) {
332
+ return typeof t == "string" ? t : U.createPath(t);
333
+ }
334
+ function Ht(t) {
335
+ let e = typeof t == "string" ? t : U.createPath(t);
336
+ e = e.replace(/ $/, "%20");
337
+ let n = Ea.test(e) ? new URL(e) : new URL(e, "http://localhost");
338
+ return {
339
+ pathname: n.pathname,
340
+ search: n.search,
341
+ hash: n.hash
342
+ };
343
+ }
344
+ const Ea = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Sa = {
345
+ "&": "\\u0026",
346
+ ">": "\\u003e",
347
+ "<": "\\u003c",
348
+ "\u2028": "\\u2028",
349
+ "\u2029": "\\u2029"
350
+ }, ja = /[&><\u2028\u2029]/g;
351
+ function Na(t) {
352
+ return t.replace(ja, (e) => Sa[e]);
353
+ }
354
+ ve.StaticRouter = Ma;
355
+ var Da = ve.StaticRouterProvider = ba;
356
+ ve.createStaticHandler = Ra;
357
+ ve.createStaticRouter = _a;
358
+ const Ia = ({
359
+ router: t,
360
+ hydrate: e = !1
361
+ }) => /* @__PURE__ */ o.jsx(Ot, { children: /* @__PURE__ */ o.jsx(_t, { children: /* @__PURE__ */ o.jsx(Qe.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ o.jsx(pr, { router: t }) }) }) }), Aa = ({
362
+ router: t,
363
+ context: e,
364
+ helmetContext: n
365
+ }) => /* @__PURE__ */ o.jsx(Ot, { children: /* @__PURE__ */ o.jsx(_t, { context: n, children: /* @__PURE__ */ o.jsx(Da, { router: t, context: e }) }) });
366
+ var L, Ct, Oa = (Ct = class extends $t {
22
367
  constructor(e = {}) {
23
368
  super();
24
- m(this, x);
25
- this.config = e, u(this, x, /* @__PURE__ */ new Map());
369
+ O(this, L);
370
+ this.config = e, b(this, L, /* @__PURE__ */ new Map());
26
371
  }
27
- build(e, s, a) {
28
- const r = s.queryKey, o = s.queryHash ?? ge(r, s);
29
- let l = this.get(o);
30
- return l || (l = new Ee({
372
+ build(e, n, r) {
373
+ const a = n.queryKey, s = n.queryHash ?? Bt(a, n);
374
+ let i = this.get(s);
375
+ return i || (i = new Xr({
31
376
  cache: this,
32
- queryKey: r,
33
- queryHash: o,
34
- options: e.defaultQueryOptions(s),
35
- state: a,
36
- defaultOptions: e.getQueryDefaults(r)
37
- }), this.add(l)), l;
377
+ queryKey: a,
378
+ queryHash: s,
379
+ options: e.defaultQueryOptions(n),
380
+ state: r,
381
+ defaultOptions: e.getQueryDefaults(a)
382
+ }), this.add(i)), i;
38
383
  }
39
384
  add(e) {
40
- i(this, x).has(e.queryHash) || (i(this, x).set(e.queryHash, e), this.notify({
385
+ h(this, L).has(e.queryHash) || (h(this, L).set(e.queryHash, e), this.notify({
41
386
  type: "added",
42
387
  query: e
43
388
  }));
44
389
  }
45
390
  remove(e) {
46
- const s = i(this, x).get(e.queryHash);
47
- s && (e.destroy(), s === e && i(this, x).delete(e.queryHash), this.notify({ type: "removed", query: e }));
391
+ const n = h(this, L).get(e.queryHash);
392
+ n && (e.destroy(), n === e && h(this, L).delete(e.queryHash), this.notify({ type: "removed", query: e }));
48
393
  }
49
394
  clear() {
50
- p.batch(() => {
395
+ j.batch(() => {
51
396
  this.getAll().forEach((e) => {
52
397
  this.remove(e);
53
398
  });
54
399
  });
55
400
  }
56
401
  get(e) {
57
- return i(this, x).get(e);
402
+ return h(this, L).get(e);
58
403
  }
59
404
  getAll() {
60
- return [...i(this, x).values()];
405
+ return [...h(this, L).values()];
61
406
  }
62
407
  find(e) {
63
- const s = { exact: !0, ...e };
408
+ const n = { exact: !0, ...e };
64
409
  return this.getAll().find(
65
- (a) => ne(s, a)
410
+ (r) => ft(n, r)
66
411
  );
67
412
  }
68
413
  findAll(e = {}) {
69
- const s = this.getAll();
70
- return Object.keys(e).length > 0 ? s.filter((a) => ne(e, a)) : s;
414
+ const n = this.getAll();
415
+ return Object.keys(e).length > 0 ? n.filter((r) => ft(e, r)) : n;
71
416
  }
72
417
  notify(e) {
73
- p.batch(() => {
74
- this.listeners.forEach((s) => {
75
- s(e);
418
+ j.batch(() => {
419
+ this.listeners.forEach((n) => {
420
+ n(e);
76
421
  });
77
422
  });
78
423
  }
79
424
  onFocus() {
80
- p.batch(() => {
425
+ j.batch(() => {
81
426
  this.getAll().forEach((e) => {
82
427
  e.onFocus();
83
428
  });
84
429
  });
85
430
  }
86
431
  onOnline() {
87
- p.batch(() => {
432
+ j.batch(() => {
88
433
  this.getAll().forEach((e) => {
89
434
  e.onOnline();
90
435
  });
91
436
  });
92
437
  }
93
- }, x = new WeakMap(), de), f, T, fe, ft = (fe = class extends me {
438
+ }, L = new WeakMap(), Ct), S, pe, Pt, Ta = (Pt = class extends $t {
94
439
  constructor(e = {}) {
95
440
  super();
96
- m(this, f);
97
- m(this, T);
98
- this.config = e, u(this, f, /* @__PURE__ */ new Map()), u(this, T, Date.now());
441
+ O(this, S);
442
+ O(this, pe);
443
+ this.config = e, b(this, S, /* @__PURE__ */ new Map()), b(this, pe, Date.now());
99
444
  }
100
- build(e, s, a) {
101
- const r = new Se({
445
+ build(e, n, r) {
446
+ const a = new yr({
102
447
  mutationCache: this,
103
- mutationId: ++S(this, T)._,
104
- options: e.defaultMutationOptions(s),
105
- state: a
448
+ mutationId: ++Ce(this, pe)._,
449
+ options: e.defaultMutationOptions(n),
450
+ state: r
106
451
  });
107
- return this.add(r), r;
452
+ return this.add(a), a;
108
453
  }
109
454
  add(e) {
110
- const s = F(e), a = i(this, f).get(s) ?? [];
111
- a.push(e), i(this, f).set(s, a), this.notify({ type: "added", mutation: e });
455
+ const n = Pe(e), r = h(this, S).get(n) ?? [];
456
+ r.push(e), h(this, S).set(n, r), this.notify({ type: "added", mutation: e });
112
457
  }
113
458
  remove(e) {
114
- var a;
115
- const s = F(e);
116
- if (i(this, f).has(s)) {
117
- const r = (a = i(this, f).get(s)) == null ? void 0 : a.filter((o) => o !== e);
118
- r && (r.length === 0 ? i(this, f).delete(s) : i(this, f).set(s, r));
459
+ var r;
460
+ const n = Pe(e);
461
+ if (h(this, S).has(n)) {
462
+ const a = (r = h(this, S).get(n)) == null ? void 0 : r.filter((s) => s !== e);
463
+ a && (a.length === 0 ? h(this, S).delete(n) : h(this, S).set(n, a));
119
464
  }
120
465
  this.notify({ type: "removed", mutation: e });
121
466
  }
122
467
  canRun(e) {
123
- var a;
124
- const s = (a = i(this, f).get(F(e))) == null ? void 0 : a.find((r) => r.state.status === "pending");
125
- return !s || s === e;
468
+ var r;
469
+ const n = (r = h(this, S).get(Pe(e))) == null ? void 0 : r.find((a) => a.state.status === "pending");
470
+ return !n || n === e;
126
471
  }
127
472
  runNext(e) {
128
- var a;
129
- const s = (a = i(this, f).get(F(e))) == null ? void 0 : a.find((r) => r !== e && r.state.isPaused);
130
- return (s == null ? void 0 : s.continue()) ?? Promise.resolve();
473
+ var r;
474
+ const n = (r = h(this, S).get(Pe(e))) == null ? void 0 : r.find((a) => a !== e && a.state.isPaused);
475
+ return (n == null ? void 0 : n.continue()) ?? Promise.resolve();
131
476
  }
132
477
  clear() {
133
- p.batch(() => {
478
+ j.batch(() => {
134
479
  this.getAll().forEach((e) => {
135
480
  this.remove(e);
136
481
  });
137
482
  });
138
483
  }
139
484
  getAll() {
140
- return [...i(this, f).values()].flat();
485
+ return [...h(this, S).values()].flat();
141
486
  }
142
487
  find(e) {
143
- const s = { exact: !0, ...e };
488
+ const n = { exact: !0, ...e };
144
489
  return this.getAll().find(
145
- (a) => re(s, a)
490
+ (r) => mt(n, r)
146
491
  );
147
492
  }
148
493
  findAll(e = {}) {
149
- return this.getAll().filter((s) => re(e, s));
494
+ return this.getAll().filter((n) => mt(e, n));
150
495
  }
151
496
  notify(e) {
152
- p.batch(() => {
153
- this.listeners.forEach((s) => {
154
- s(e);
497
+ j.batch(() => {
498
+ this.listeners.forEach((n) => {
499
+ n(e);
155
500
  });
156
501
  });
157
502
  }
158
503
  resumePausedMutations() {
159
- const e = this.getAll().filter((s) => s.state.isPaused);
160
- return p.batch(
504
+ const e = this.getAll().filter((n) => n.state.isPaused);
505
+ return j.batch(
161
506
  () => Promise.all(
162
- e.map((s) => s.continue().catch(j))
507
+ e.map((n) => n.continue().catch(Q))
163
508
  )
164
509
  );
165
510
  }
166
- }, f = new WeakMap(), T = new WeakMap(), fe);
167
- function F(t) {
511
+ }, S = new WeakMap(), pe = new WeakMap(), Pt);
512
+ function Pe(t) {
168
513
  var e;
169
514
  return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
170
515
  }
171
- function pt(t) {
516
+ function ka(t) {
172
517
  return {
173
- onFetch: (e, s) => {
174
- const a = async () => {
175
- var $, G, J, Y, Z;
176
- const r = e.options, o = (J = (G = ($ = e.fetchOptions) == null ? void 0 : $.meta) == null ? void 0 : G.fetchMore) == null ? void 0 : J.direction, l = ((Y = e.state.data) == null ? void 0 : Y.pages) || [], h = ((Z = e.state.data) == null ? void 0 : Z.pageParams) || [], g = { pages: [], pageParams: [] };
177
- let b = !1;
178
- const d = (v) => {
179
- Object.defineProperty(v, "signal", {
518
+ onFetch: (e, n) => {
519
+ const r = async () => {
520
+ var x, R, N, _, D;
521
+ const a = e.options, s = (N = (R = (x = e.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : R.fetchMore) == null ? void 0 : N.direction, i = ((_ = e.state.data) == null ? void 0 : _.pages) || [], c = ((D = e.state.data) == null ? void 0 : D.pageParams) || [], l = { pages: [], pageParams: [] };
522
+ let p = !1;
523
+ const f = (w) => {
524
+ Object.defineProperty(w, "signal", {
180
525
  enumerable: !0,
181
- get: () => (e.signal.aborted ? b = !0 : e.signal.addEventListener("abort", () => {
182
- b = !0;
526
+ get: () => (e.signal.aborted ? p = !0 : e.signal.addEventListener("abort", () => {
527
+ p = !0;
183
528
  }), e.signal)
184
529
  });
185
- }, Qe = Fe(e.options, e.fetchOptions), _ = async (v, P, O) => {
186
- if (b)
530
+ }, d = Wr(e.options, e.fetchOptions), g = async (w, E, $) => {
531
+ if (p)
187
532
  return Promise.reject();
188
- if (P == null && v.pages.length)
189
- return Promise.resolve(v);
190
- const E = {
533
+ if (E == null && w.pages.length)
534
+ return Promise.resolve(w);
535
+ const Y = {
191
536
  queryKey: e.queryKey,
192
- pageParam: P,
193
- direction: O ? "backward" : "forward",
537
+ pageParam: E,
538
+ direction: $ ? "backward" : "forward",
194
539
  meta: e.options.meta
195
540
  };
196
- d(E);
197
- const qe = await Qe(
198
- E
199
- ), { maxPages: ee } = e.options, te = O ? Re : He;
541
+ f(Y);
542
+ const ee = await d(
543
+ Y
544
+ ), { maxPages: Me } = e.options, X = $ ? Jr : Zr;
200
545
  return {
201
- pages: te(v.pages, qe, ee),
202
- pageParams: te(v.pageParams, P, ee)
546
+ pages: X(w.pages, ee, Me),
547
+ pageParams: X(w.pageParams, E, Me)
203
548
  };
204
549
  };
205
- let C;
206
- if (o && l.length) {
207
- const v = o === "backward", P = v ? mt : he, O = {
208
- pages: l,
209
- pageParams: h
210
- }, E = P(r, O);
211
- C = await _(O, E, v);
550
+ let v;
551
+ if (s && i.length) {
552
+ const w = s === "backward", E = w ? Fa : Mt, $ = {
553
+ pages: i,
554
+ pageParams: c
555
+ }, Y = E(a, $);
556
+ v = await g($, Y, w);
212
557
  } else {
213
- C = await _(
214
- g,
215
- h[0] ?? r.initialPageParam
558
+ v = await g(
559
+ l,
560
+ c[0] ?? a.initialPageParam
216
561
  );
217
- const v = t ?? l.length;
218
- for (let P = 1; P < v; P++) {
219
- const O = he(r, C);
220
- C = await _(C, O);
562
+ const w = t ?? i.length;
563
+ for (let E = 1; E < w; E++) {
564
+ const $ = Mt(a, v);
565
+ v = await g(v, $);
221
566
  }
222
567
  }
223
- return C;
568
+ return v;
224
569
  };
225
570
  e.options.persister ? e.fetchFn = () => {
226
- var r, o;
227
- return (o = (r = e.options).persister) == null ? void 0 : o.call(
228
- r,
571
+ var a, s;
572
+ return (s = (a = e.options).persister) == null ? void 0 : s.call(
229
573
  a,
574
+ r,
230
575
  {
231
576
  queryKey: e.queryKey,
232
577
  meta: e.options.meta,
233
578
  signal: e.signal
234
579
  },
235
- s
580
+ n
236
581
  );
237
- } : e.fetchFn = a;
582
+ } : e.fetchFn = r;
238
583
  }
239
584
  };
240
585
  }
241
- function he(t, { pages: e, pageParams: s }) {
242
- const a = e.length - 1;
586
+ function Mt(t, { pages: e, pageParams: n }) {
587
+ const r = e.length - 1;
243
588
  return t.getNextPageParam(
244
- e[a],
589
+ e[r],
245
590
  e,
246
- s[a],
247
- s
591
+ n[r],
592
+ n
248
593
  );
249
594
  }
250
- function mt(t, { pages: e, pageParams: s }) {
251
- var a;
252
- return (a = t.getPreviousPageParam) == null ? void 0 : a.call(
595
+ function Fa(t, { pages: e, pageParams: n }) {
596
+ var r;
597
+ return (r = t.getPreviousPageParam) == null ? void 0 : r.call(
253
598
  t,
254
599
  e[0],
255
600
  e,
256
- s[0],
257
- s
601
+ n[0],
602
+ n
258
603
  );
259
604
  }
260
- var c, w, N, M, A, k, Q, q, pe, gt = (pe = class {
605
+ var M, q, H, re, ae, z, oe, se, Rt, La = (Rt = class {
261
606
  constructor(t = {}) {
262
- m(this, c);
263
- m(this, w);
264
- m(this, N);
265
- m(this, M);
266
- m(this, A);
267
- m(this, k);
268
- m(this, Q);
269
- m(this, q);
270
- u(this, c, t.queryCache || new dt()), u(this, w, t.mutationCache || new ft()), u(this, N, t.defaultOptions || {}), u(this, M, /* @__PURE__ */ new Map()), u(this, A, /* @__PURE__ */ new Map()), u(this, k, 0);
607
+ O(this, M);
608
+ O(this, q);
609
+ O(this, H);
610
+ O(this, re);
611
+ O(this, ae);
612
+ O(this, z);
613
+ O(this, oe);
614
+ O(this, se);
615
+ b(this, M, t.queryCache || new Oa()), b(this, q, t.mutationCache || new Ta()), b(this, H, t.defaultOptions || {}), b(this, re, /* @__PURE__ */ new Map()), b(this, ae, /* @__PURE__ */ new Map()), b(this, z, 0);
271
616
  }
272
617
  mount() {
273
- S(this, k)._++, i(this, k) === 1 && (u(this, Q, Le.subscribe(async (t) => {
274
- t && (await this.resumePausedMutations(), i(this, c).onFocus());
275
- })), u(this, q, ie.subscribe(async (t) => {
276
- t && (await this.resumePausedMutations(), i(this, c).onOnline());
618
+ Ce(this, z)._++, h(this, z) === 1 && (b(this, oe, ea.subscribe(async (t) => {
619
+ t && (await this.resumePausedMutations(), h(this, M).onFocus());
620
+ })), b(this, se, gt.subscribe(async (t) => {
621
+ t && (await this.resumePausedMutations(), h(this, M).onOnline());
277
622
  })));
278
623
  }
279
624
  unmount() {
280
625
  var t, e;
281
- S(this, k)._--, i(this, k) === 0 && ((t = i(this, Q)) == null || t.call(this), u(this, Q, void 0), (e = i(this, q)) == null || e.call(this), u(this, q, void 0));
626
+ Ce(this, z)._--, h(this, z) === 0 && ((t = h(this, oe)) == null || t.call(this), b(this, oe, void 0), (e = h(this, se)) == null || e.call(this), b(this, se, void 0));
282
627
  }
283
628
  isFetching(t) {
284
- return i(this, c).findAll({ ...t, fetchStatus: "fetching" }).length;
629
+ return h(this, M).findAll({ ...t, fetchStatus: "fetching" }).length;
285
630
  }
286
631
  isMutating(t) {
287
- return i(this, w).findAll({ ...t, status: "pending" }).length;
632
+ return h(this, q).findAll({ ...t, status: "pending" }).length;
288
633
  }
289
634
  getQueryData(t) {
290
- var s;
635
+ var n;
291
636
  const e = this.defaultQueryOptions({ queryKey: t });
292
- return (s = i(this, c).get(e.queryHash)) == null ? void 0 : s.state.data;
637
+ return (n = h(this, M).get(e.queryHash)) == null ? void 0 : n.state.data;
293
638
  }
294
639
  ensureQueryData(t) {
295
640
  const e = this.getQueryData(t.queryKey);
296
641
  if (e === void 0)
297
642
  return this.fetchQuery(t);
298
643
  {
299
- const s = this.defaultQueryOptions(t), a = i(this, c).build(this, s);
300
- return t.revalidateIfStale && a.isStaleByTime(oe(s.staleTime, a)) && this.prefetchQuery(s), Promise.resolve(e);
644
+ const n = this.defaultQueryOptions(t), r = h(this, M).build(this, n);
645
+ return t.revalidateIfStale && r.isStaleByTime(vt(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(e);
301
646
  }
302
647
  }
303
648
  getQueriesData(t) {
304
- return i(this, c).findAll(t).map(({ queryKey: e, state: s }) => {
305
- const a = s.data;
306
- return [e, a];
649
+ return h(this, M).findAll(t).map(({ queryKey: e, state: n }) => {
650
+ const r = n.data;
651
+ return [e, r];
307
652
  });
308
653
  }
309
- setQueryData(t, e, s) {
310
- const a = this.defaultQueryOptions({ queryKey: t }), r = i(this, c).get(
311
- a.queryHash
312
- ), o = r == null ? void 0 : r.state.data, l = ze(e, o);
313
- if (l !== void 0)
314
- return i(this, c).build(this, a).setData(l, { ...s, manual: !0 });
315
- }
316
- setQueriesData(t, e, s) {
317
- return p.batch(
318
- () => i(this, c).findAll(t).map(({ queryKey: a }) => [
319
- a,
320
- this.setQueryData(a, e, s)
654
+ setQueryData(t, e, n) {
655
+ const r = this.defaultQueryOptions({ queryKey: t }), a = h(this, M).get(
656
+ r.queryHash
657
+ ), s = a == null ? void 0 : a.state.data, i = ta(e, s);
658
+ if (i !== void 0)
659
+ return h(this, M).build(this, r).setData(i, { ...n, manual: !0 });
660
+ }
661
+ setQueriesData(t, e, n) {
662
+ return j.batch(
663
+ () => h(this, M).findAll(t).map(({ queryKey: r }) => [
664
+ r,
665
+ this.setQueryData(r, e, n)
321
666
  ])
322
667
  );
323
668
  }
324
669
  getQueryState(t) {
325
- var s;
670
+ var n;
326
671
  const e = this.defaultQueryOptions({ queryKey: t });
327
- return (s = i(this, c).get(e.queryHash)) == null ? void 0 : s.state;
672
+ return (n = h(this, M).get(e.queryHash)) == null ? void 0 : n.state;
328
673
  }
329
674
  removeQueries(t) {
330
- const e = i(this, c);
331
- p.batch(() => {
332
- e.findAll(t).forEach((s) => {
333
- e.remove(s);
675
+ const e = h(this, M);
676
+ j.batch(() => {
677
+ e.findAll(t).forEach((n) => {
678
+ e.remove(n);
334
679
  });
335
680
  });
336
681
  }
337
682
  resetQueries(t, e) {
338
- const s = i(this, c), a = {
683
+ const n = h(this, M), r = {
339
684
  type: "active",
340
685
  ...t
341
686
  };
342
- return p.batch(() => (s.findAll(t).forEach((r) => {
343
- r.reset();
344
- }), this.refetchQueries(a, e)));
687
+ return j.batch(() => (n.findAll(t).forEach((a) => {
688
+ a.reset();
689
+ }), this.refetchQueries(r, e)));
345
690
  }
346
691
  cancelQueries(t = {}, e = {}) {
347
- const s = { revert: !0, ...e }, a = p.batch(
348
- () => i(this, c).findAll(t).map((r) => r.cancel(s))
692
+ const n = { revert: !0, ...e }, r = j.batch(
693
+ () => h(this, M).findAll(t).map((a) => a.cancel(n))
349
694
  );
350
- return Promise.all(a).then(j).catch(j);
695
+ return Promise.all(r).then(Q).catch(Q);
351
696
  }
352
697
  invalidateQueries(t = {}, e = {}) {
353
- return p.batch(() => {
354
- if (i(this, c).findAll(t).forEach((a) => {
355
- a.invalidate();
698
+ return j.batch(() => {
699
+ if (h(this, M).findAll(t).forEach((r) => {
700
+ r.invalidate();
356
701
  }), t.refetchType === "none")
357
702
  return Promise.resolve();
358
- const s = {
703
+ const n = {
359
704
  ...t,
360
705
  type: t.refetchType ?? t.type ?? "active"
361
706
  };
362
- return this.refetchQueries(s, e);
707
+ return this.refetchQueries(n, e);
363
708
  });
364
709
  }
365
710
  refetchQueries(t = {}, e) {
366
- const s = {
711
+ const n = {
367
712
  ...e,
368
713
  cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
369
- }, a = p.batch(
370
- () => i(this, c).findAll(t).filter((r) => !r.isDisabled()).map((r) => {
371
- let o = r.fetch(void 0, s);
372
- return s.throwOnError || (o = o.catch(j)), r.state.fetchStatus === "paused" ? Promise.resolve() : o;
714
+ }, r = j.batch(
715
+ () => h(this, M).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
716
+ let s = a.fetch(void 0, n);
717
+ return n.throwOnError || (s = s.catch(Q)), a.state.fetchStatus === "paused" ? Promise.resolve() : s;
373
718
  })
374
719
  );
375
- return Promise.all(a).then(j);
720
+ return Promise.all(r).then(Q);
376
721
  }
377
722
  fetchQuery(t) {
378
723
  const e = this.defaultQueryOptions(t);
379
724
  e.retry === void 0 && (e.retry = !1);
380
- const s = i(this, c).build(this, e);
381
- return s.isStaleByTime(
382
- oe(e.staleTime, s)
383
- ) ? s.fetch(e) : Promise.resolve(s.state.data);
725
+ const n = h(this, M).build(this, e);
726
+ return n.isStaleByTime(
727
+ vt(e.staleTime, n)
728
+ ) ? n.fetch(e) : Promise.resolve(n.state.data);
384
729
  }
385
730
  prefetchQuery(t) {
386
- return this.fetchQuery(t).then(j).catch(j);
731
+ return this.fetchQuery(t).then(Q).catch(Q);
387
732
  }
388
733
  fetchInfiniteQuery(t) {
389
- return t.behavior = pt(t.pages), this.fetchQuery(t);
734
+ return t.behavior = ka(t.pages), this.fetchQuery(t);
390
735
  }
391
736
  prefetchInfiniteQuery(t) {
392
- return this.fetchInfiniteQuery(t).then(j).catch(j);
737
+ return this.fetchInfiniteQuery(t).then(Q).catch(Q);
393
738
  }
394
739
  resumePausedMutations() {
395
- return ie.isOnline() ? i(this, w).resumePausedMutations() : Promise.resolve();
740
+ return gt.isOnline() ? h(this, q).resumePausedMutations() : Promise.resolve();
396
741
  }
397
742
  getQueryCache() {
398
- return i(this, c);
743
+ return h(this, M);
399
744
  }
400
745
  getMutationCache() {
401
- return i(this, w);
746
+ return h(this, q);
402
747
  }
403
748
  getDefaultOptions() {
404
- return i(this, N);
749
+ return h(this, H);
405
750
  }
406
751
  setDefaultOptions(t) {
407
- u(this, N, t);
752
+ b(this, H, t);
408
753
  }
409
754
  setQueryDefaults(t, e) {
410
- i(this, M).set(le(t), {
755
+ h(this, re).set(xt(t), {
411
756
  queryKey: t,
412
757
  defaultOptions: e
413
758
  });
414
759
  }
415
760
  getQueryDefaults(t) {
416
- const e = [...i(this, M).values()];
417
- let s = {};
418
- return e.forEach((a) => {
419
- ce(t, a.queryKey) && (s = { ...s, ...a.defaultOptions });
420
- }), s;
761
+ const e = [...h(this, re).values()];
762
+ let n = {};
763
+ return e.forEach((r) => {
764
+ yt(t, r.queryKey) && (n = { ...n, ...r.defaultOptions });
765
+ }), n;
421
766
  }
422
767
  setMutationDefaults(t, e) {
423
- i(this, A).set(le(t), {
768
+ h(this, ae).set(xt(t), {
424
769
  mutationKey: t,
425
770
  defaultOptions: e
426
771
  });
427
772
  }
428
773
  getMutationDefaults(t) {
429
- const e = [...i(this, A).values()];
430
- let s = {};
431
- return e.forEach((a) => {
432
- ce(t, a.mutationKey) && (s = { ...s, ...a.defaultOptions });
433
- }), s;
774
+ const e = [...h(this, ae).values()];
775
+ let n = {};
776
+ return e.forEach((r) => {
777
+ yt(t, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
778
+ }), n;
434
779
  }
435
780
  defaultQueryOptions(t) {
436
781
  if (t._defaulted)
437
782
  return t;
438
783
  const e = {
439
- ...i(this, N).queries,
784
+ ...h(this, H).queries,
440
785
  ...this.getQueryDefaults(t.queryKey),
441
786
  ...t,
442
787
  _defaulted: !0
443
788
  };
444
- return e.queryHash || (e.queryHash = ge(
789
+ return e.queryHash || (e.queryHash = Bt(
445
790
  e.queryKey,
446
791
  e
447
- )), 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 === Ke && (e.enabled = !1), e;
792
+ )), 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 === na && (e.enabled = !1), e;
448
793
  }
449
794
  defaultMutationOptions(t) {
450
795
  return t != null && t._defaulted ? t : {
451
- ...i(this, N).mutations,
796
+ ...h(this, H).mutations,
452
797
  ...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
453
798
  ...t,
454
799
  _defaulted: !0
455
800
  };
456
801
  }
457
802
  clear() {
458
- i(this, c).clear(), i(this, w).clear();
803
+ h(this, M).clear(), h(this, q).clear();
459
804
  }
460
- }, c = new WeakMap(), w = new WeakMap(), N = new WeakMap(), M = new WeakMap(), A = new WeakMap(), k = new WeakMap(), Q = new WeakMap(), q = new WeakMap(), pe);
461
- const we = (t) => "getRoutes" in t && typeof t.getRoutes == "function", vt = (t) => "initialize" in t && typeof t.initialize == "function", yt = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Ne = new gt(), xt = ut(() => ({}));
462
- class bt {
805
+ }, M = new WeakMap(), q = new WeakMap(), H = new WeakMap(), re = new WeakMap(), ae = new WeakMap(), z = new WeakMap(), oe = new WeakMap(), se = new WeakMap(), Rt);
806
+ const Ka = Tt(null), Ke = {
807
+ didCatch: !1,
808
+ error: null
809
+ };
810
+ class $a extends Ur {
463
811
  constructor(e) {
464
- y(this, "plugins", []);
465
- y(this, "navigationPlugins");
466
- y(this, "navigation");
467
- y(this, "meta");
468
- y(this, "authentication");
469
- y(this, "state");
470
- y(this, "initialize", async () => {
471
- await Promise.all([
472
- this.plugins.filter(vt).map((e) => e.initialize(this))
473
- ]);
812
+ super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Ke;
813
+ }
814
+ static getDerivedStateFromError(e) {
815
+ return {
816
+ didCatch: !0,
817
+ error: e
818
+ };
819
+ }
820
+ resetErrorBoundary() {
821
+ const {
822
+ error: e
823
+ } = this.state;
824
+ if (e !== null) {
825
+ for (var n, r, a = arguments.length, s = new Array(a), i = 0; i < a; i++)
826
+ s[i] = arguments[i];
827
+ (n = (r = this.props).onReset) === null || n === void 0 || n.call(r, {
828
+ args: s,
829
+ reason: "imperative-api"
830
+ }), this.setState(Ke);
831
+ }
832
+ }
833
+ componentDidCatch(e, n) {
834
+ var r, a;
835
+ (r = (a = this.props).onError) === null || r === void 0 || r.call(a, e, n);
836
+ }
837
+ componentDidUpdate(e, n) {
838
+ const {
839
+ didCatch: r
840
+ } = this.state, {
841
+ resetKeys: a
842
+ } = this.props;
843
+ if (r && n.error !== null && Ba(e.resetKeys, a)) {
844
+ var s, i;
845
+ (s = (i = this.props).onReset) === null || s === void 0 || s.call(i, {
846
+ next: a,
847
+ prev: e.resetKeys,
848
+ reason: "keys"
849
+ }), this.setState(Ke);
850
+ }
851
+ }
852
+ render() {
853
+ const {
854
+ children: e,
855
+ fallbackRender: n,
856
+ FallbackComponent: r,
857
+ fallback: a
858
+ } = this.props, {
859
+ didCatch: s,
860
+ error: i
861
+ } = this.state;
862
+ let c = e;
863
+ if (s) {
864
+ const l = {
865
+ error: i,
866
+ resetErrorBoundary: this.resetErrorBoundary
867
+ };
868
+ if (typeof n == "function")
869
+ c = n(l);
870
+ else if (r)
871
+ c = pt(r, l);
872
+ else if (a === null || Gr(a))
873
+ c = a;
874
+ else
875
+ throw i;
876
+ }
877
+ return pt(Ka.Provider, {
878
+ value: {
879
+ didCatch: s,
880
+ error: i,
881
+ resetErrorBoundary: this.resetErrorBoundary
882
+ }
883
+ }, c);
884
+ }
885
+ }
886
+ function Ba() {
887
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
888
+ return t.length !== e.length || t.some((n, r) => !Object.is(n, e[r]));
889
+ }
890
+ const Qa = (t) => "getProfileMenuItems" in t && typeof t.getProfileMenuItems == "function", Ua = (t) => "getRoutes" in t && typeof t.getRoutes == "function", Ga = (t) => "initialize" in t && typeof t.initialize == "function", qa = (t) => "getHead" in t && typeof t.getHead == "function", Ha = (t) => "getMdxComponents" in t && typeof t.getMdxComponents == "function", za = (t) => "getIdentities" in t && typeof t.getIdentities == "function", zt = new La();
891
+ class Va {
892
+ constructor(e) {
893
+ A(this, "plugins", []);
894
+ A(this, "navigation");
895
+ A(this, "meta");
896
+ A(this, "page");
897
+ A(this, "authentication");
898
+ A(this, "navigationPlugins");
899
+ A(this, "initialize", async ({
900
+ navigate: e
901
+ }) => {
902
+ await Promise.all(
903
+ this.plugins.filter(Ga).map((n) => {
904
+ var r;
905
+ return (r = n.initialize) == null ? void 0 : r.call(n, this, { navigate: e });
906
+ })
907
+ );
474
908
  });
475
- y(this, "invalidateCache", async (e) => {
476
- await Ne.invalidateQueries({ queryKey: e });
909
+ A(this, "invalidateCache", async (e) => {
910
+ await zt.invalidateQueries({ queryKey: e });
477
911
  });
478
- y(this, "getApiIdentities", async () => (await Promise.all(
479
- this.plugins.filter(yt).map((s) => s.getIdentities(this))
912
+ A(this, "getApiIdentities", async () => (await Promise.all(
913
+ this.plugins.filter(za).map((n) => n.getIdentities(this))
480
914
  )).flat());
481
- y(this, "getNavigation", async (e) => (await Promise.all(
915
+ A(this, "getNavigation", async (e) => (await Promise.all(
482
916
  this.navigationPlugins.map(
483
- async (a) => {
484
- var r;
485
- return (r = a.getNavigation) == null ? void 0 : r.call(a, e);
917
+ async (r) => {
918
+ var a;
919
+ return (a = r.getNavigation) == null ? void 0 : a.call(r, e);
920
+ }
921
+ )
922
+ )).flatMap((r) => r ?? []));
923
+ A(this, "signRequest", async (e) => {
924
+ if (!this.authentication)
925
+ throw new Error("No authentication provider configured");
926
+ const n = await this.authentication.getAccessToken();
927
+ return e.headers.set("Authorization", `Bearer ${n}`), e;
928
+ });
929
+ this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(Ua), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page;
930
+ }
931
+ }
932
+ function Ya({ error: t, resetErrorBoundary: e }) {
933
+ return /* @__PURE__ */ o.jsx(Et, { error: t });
934
+ }
935
+ const Re = globalThis;
936
+ (!Re.requestIdleCallback || !Re.cancelIdleCallback) && (Re.requestIdleCallback = (t) => setTimeout(t, 1), Re.cancelIdleCallback = clearTimeout);
937
+ var Ue = ["Enter", " "], Xa = ["ArrowDown", "PageUp", "Home"], Vt = ["ArrowUp", "PageDown", "End"], Wa = [...Xa, ...Vt], Ja = {
938
+ ltr: [...Ue, "ArrowRight"],
939
+ rtl: [...Ue, "ArrowLeft"]
940
+ }, Za = {
941
+ ltr: ["ArrowLeft"],
942
+ rtl: ["ArrowRight"]
943
+ }, xe = "Menu", [de, eo, to] = wr(xe), [Z, Yt] = jt(xe, [
944
+ to,
945
+ Nt,
946
+ Ut
947
+ ]), ye = Nt(), Xt = Ut(), [Wt, V] = Z(xe), [no, we] = Z(xe), Jt = (t) => {
948
+ const { __scopeMenu: e, open: n = !1, children: r, dir: a, onOpenChange: s, modal: i = !0 } = t, c = ye(e), [l, p] = u.useState(null), f = u.useRef(!1), d = qe(s), g = Dr(a);
949
+ return u.useEffect(() => {
950
+ const v = () => {
951
+ f.current = !0, document.addEventListener("pointerdown", x, { capture: !0, once: !0 }), document.addEventListener("pointermove", x, { capture: !0, once: !0 });
952
+ }, x = () => f.current = !1;
953
+ return document.addEventListener("keydown", v, { capture: !0 }), () => {
954
+ document.removeEventListener("keydown", v, { capture: !0 }), document.removeEventListener("pointerdown", x, { capture: !0 }), document.removeEventListener("pointermove", x, { capture: !0 });
955
+ };
956
+ }, []), /* @__PURE__ */ o.jsx(It, { ...c, children: /* @__PURE__ */ o.jsx(
957
+ Wt,
958
+ {
959
+ scope: e,
960
+ open: n,
961
+ onOpenChange: d,
962
+ content: l,
963
+ onContentChange: p,
964
+ children: /* @__PURE__ */ o.jsx(
965
+ no,
966
+ {
967
+ scope: e,
968
+ onClose: u.useCallback(() => d(!1), [d]),
969
+ isUsingKeyboardRef: f,
970
+ dir: g,
971
+ modal: i,
972
+ children: r
973
+ }
974
+ )
975
+ }
976
+ ) });
977
+ };
978
+ Jt.displayName = xe;
979
+ var ro = "MenuAnchor", Je = u.forwardRef(
980
+ (t, e) => {
981
+ const { __scopeMenu: n, ...r } = t, a = ye(n);
982
+ return /* @__PURE__ */ o.jsx(Mr, { ...a, ...r, ref: e });
983
+ }
984
+ );
985
+ Je.displayName = ro;
986
+ var Ze = "MenuPortal", [ao, Zt] = Z(Ze, {
987
+ forceMount: void 0
988
+ }), en = (t) => {
989
+ const { __scopeMenu: e, forceMount: n, children: r, container: a } = t, s = V(Ze, e);
990
+ return /* @__PURE__ */ o.jsx(ao, { scope: e, forceMount: n, children: /* @__PURE__ */ o.jsx(Ie, { present: n || s.open, children: /* @__PURE__ */ o.jsx(Ir, { asChild: !0, container: a, children: r }) }) });
991
+ };
992
+ en.displayName = Ze;
993
+ var T = "MenuContent", [oo, et] = Z(T), tn = u.forwardRef(
994
+ (t, e) => {
995
+ const n = Zt(T, t.__scopeMenu), { forceMount: r = n.forceMount, ...a } = t, s = V(T, t.__scopeMenu), i = we(T, t.__scopeMenu);
996
+ return /* @__PURE__ */ o.jsx(de.Provider, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(Ie, { present: r || s.open, children: /* @__PURE__ */ o.jsx(de.Slot, { scope: t.__scopeMenu, children: i.modal ? /* @__PURE__ */ o.jsx(so, { ...a, ref: e }) : /* @__PURE__ */ o.jsx(io, { ...a, ref: e }) }) }) });
997
+ }
998
+ ), so = u.forwardRef(
999
+ (t, e) => {
1000
+ const n = V(T, t.__scopeMenu), r = u.useRef(null), a = fe(e, r);
1001
+ return u.useEffect(() => {
1002
+ const s = r.current;
1003
+ if (s) return br(s);
1004
+ }, []), /* @__PURE__ */ o.jsx(
1005
+ tt,
1006
+ {
1007
+ ...t,
1008
+ ref: a,
1009
+ trapFocus: n.open,
1010
+ disableOutsidePointerEvents: n.open,
1011
+ disableOutsideScroll: !0,
1012
+ onFocusOutside: y(
1013
+ t.onFocusOutside,
1014
+ (s) => s.preventDefault(),
1015
+ { checkForDefaultPrevented: !1 }
1016
+ ),
1017
+ onDismiss: () => n.onOpenChange(!1)
1018
+ }
1019
+ );
1020
+ }
1021
+ ), io = u.forwardRef((t, e) => {
1022
+ const n = V(T, t.__scopeMenu);
1023
+ return /* @__PURE__ */ o.jsx(
1024
+ tt,
1025
+ {
1026
+ ...t,
1027
+ ref: e,
1028
+ trapFocus: !1,
1029
+ disableOutsidePointerEvents: !1,
1030
+ disableOutsideScroll: !1,
1031
+ onDismiss: () => n.onOpenChange(!1)
1032
+ }
1033
+ );
1034
+ }), tt = u.forwardRef(
1035
+ (t, e) => {
1036
+ const {
1037
+ __scopeMenu: n,
1038
+ loop: r = !1,
1039
+ trapFocus: a,
1040
+ onOpenAutoFocus: s,
1041
+ onCloseAutoFocus: i,
1042
+ disableOutsidePointerEvents: c,
1043
+ onEntryFocus: l,
1044
+ onEscapeKeyDown: p,
1045
+ onPointerDownOutside: f,
1046
+ onFocusOutside: d,
1047
+ onInteractOutside: g,
1048
+ onDismiss: v,
1049
+ disableOutsideScroll: x,
1050
+ ...R
1051
+ } = t, N = V(T, n), _ = we(T, n), D = ye(n), w = Xt(n), E = eo(n), [$, Y] = u.useState(null), ee = u.useRef(null), Me = fe(e, ee, N.onContentChange), X = u.useRef(0), be = u.useRef(""), rr = u.useRef(0), Oe = u.useRef(null), it = u.useRef("right"), Te = u.useRef(0), ar = x ? Sr : u.Fragment, or = x ? { as: jr, allowPinchZoom: !0 } : void 0, sr = (m) => {
1052
+ var ne, ut;
1053
+ const I = be.current + m, k = E().filter((B) => !B.disabled), G = document.activeElement, ke = (ne = k.find((B) => B.ref.current === G)) == null ? void 0 : ne.textValue, Fe = k.map((B) => B.textValue), ct = wo(Fe, I, ke), ce = (ut = k.find((B) => B.textValue === ct)) == null ? void 0 : ut.ref.current;
1054
+ (function B(lt) {
1055
+ be.current = lt, window.clearTimeout(X.current), lt !== "" && (X.current = window.setTimeout(() => B(""), 1e3));
1056
+ })(I), ce && setTimeout(() => ce.focus());
1057
+ };
1058
+ u.useEffect(() => () => window.clearTimeout(X.current), []), Cr();
1059
+ const te = u.useCallback((m) => {
1060
+ var k, G;
1061
+ return it.current === ((k = Oe.current) == null ? void 0 : k.side) && bo(m, (G = Oe.current) == null ? void 0 : G.area);
1062
+ }, []);
1063
+ return /* @__PURE__ */ o.jsx(
1064
+ oo,
1065
+ {
1066
+ scope: n,
1067
+ searchRef: be,
1068
+ onItemEnter: u.useCallback(
1069
+ (m) => {
1070
+ te(m) && m.preventDefault();
1071
+ },
1072
+ [te]
1073
+ ),
1074
+ onItemLeave: u.useCallback(
1075
+ (m) => {
1076
+ var I;
1077
+ te(m) || ((I = ee.current) == null || I.focus(), Y(null));
1078
+ },
1079
+ [te]
1080
+ ),
1081
+ onTriggerLeave: u.useCallback(
1082
+ (m) => {
1083
+ te(m) && m.preventDefault();
1084
+ },
1085
+ [te]
1086
+ ),
1087
+ pointerGraceTimerRef: rr,
1088
+ onPointerGraceIntentChange: u.useCallback((m) => {
1089
+ Oe.current = m;
1090
+ }, []),
1091
+ children: /* @__PURE__ */ o.jsx(ar, { ...or, children: /* @__PURE__ */ o.jsx(
1092
+ Pr,
1093
+ {
1094
+ asChild: !0,
1095
+ trapped: a,
1096
+ onMountAutoFocus: y(s, (m) => {
1097
+ var I;
1098
+ m.preventDefault(), (I = ee.current) == null || I.focus({ preventScroll: !0 });
1099
+ }),
1100
+ onUnmountAutoFocus: i,
1101
+ children: /* @__PURE__ */ o.jsx(
1102
+ Rr,
1103
+ {
1104
+ asChild: !0,
1105
+ disableOutsidePointerEvents: c,
1106
+ onEscapeKeyDown: p,
1107
+ onPointerDownOutside: f,
1108
+ onFocusOutside: d,
1109
+ onInteractOutside: g,
1110
+ onDismiss: v,
1111
+ children: /* @__PURE__ */ o.jsx(
1112
+ ca,
1113
+ {
1114
+ asChild: !0,
1115
+ ...w,
1116
+ dir: _.dir,
1117
+ orientation: "vertical",
1118
+ loop: r,
1119
+ currentTabStopId: $,
1120
+ onCurrentTabStopIdChange: Y,
1121
+ onEntryFocus: y(l, (m) => {
1122
+ _.isUsingKeyboardRef.current || m.preventDefault();
1123
+ }),
1124
+ preventScrollOnEntryFocus: !0,
1125
+ children: /* @__PURE__ */ o.jsx(
1126
+ _r,
1127
+ {
1128
+ role: "menu",
1129
+ "aria-orientation": "vertical",
1130
+ "data-state": yn(N.open),
1131
+ "data-radix-menu-content": "",
1132
+ dir: _.dir,
1133
+ ...D,
1134
+ ...R,
1135
+ ref: Me,
1136
+ style: { outline: "none", ...R.style },
1137
+ onKeyDown: y(R.onKeyDown, (m) => {
1138
+ const k = m.target.closest("[data-radix-menu-content]") === m.currentTarget, G = m.ctrlKey || m.altKey || m.metaKey, ke = m.key.length === 1;
1139
+ k && (m.key === "Tab" && m.preventDefault(), !G && ke && sr(m.key));
1140
+ const Fe = ee.current;
1141
+ if (m.target !== Fe || !Wa.includes(m.key)) return;
1142
+ m.preventDefault();
1143
+ const ce = E().filter((ne) => !ne.disabled).map((ne) => ne.ref.current);
1144
+ Vt.includes(m.key) && ce.reverse(), xo(ce);
1145
+ }),
1146
+ onBlur: y(t.onBlur, (m) => {
1147
+ m.currentTarget.contains(m.target) || (window.clearTimeout(X.current), be.current = "");
1148
+ }),
1149
+ onPointerMove: y(
1150
+ t.onPointerMove,
1151
+ he((m) => {
1152
+ const I = m.target, k = Te.current !== m.clientX;
1153
+ if (m.currentTarget.contains(I) && k) {
1154
+ const G = m.clientX > Te.current ? "right" : "left";
1155
+ it.current = G, Te.current = m.clientX;
1156
+ }
1157
+ })
1158
+ )
1159
+ }
1160
+ )
1161
+ }
1162
+ )
1163
+ }
1164
+ )
1165
+ }
1166
+ ) })
1167
+ }
1168
+ );
1169
+ }
1170
+ );
1171
+ tn.displayName = T;
1172
+ var co = "MenuGroup", nt = u.forwardRef(
1173
+ (t, e) => {
1174
+ const { __scopeMenu: n, ...r } = t;
1175
+ return /* @__PURE__ */ o.jsx(ie.div, { role: "group", ...r, ref: e });
1176
+ }
1177
+ );
1178
+ nt.displayName = co;
1179
+ var uo = "MenuLabel", nn = u.forwardRef(
1180
+ (t, e) => {
1181
+ const { __scopeMenu: n, ...r } = t;
1182
+ return /* @__PURE__ */ o.jsx(ie.div, { ...r, ref: e });
1183
+ }
1184
+ );
1185
+ nn.displayName = uo;
1186
+ var Ne = "MenuItem", bt = "menu.itemSelect", Ae = u.forwardRef(
1187
+ (t, e) => {
1188
+ const { disabled: n = !1, onSelect: r, ...a } = t, s = u.useRef(null), i = we(Ne, t.__scopeMenu), c = et(Ne, t.__scopeMenu), l = fe(e, s), p = u.useRef(!1), f = () => {
1189
+ const d = s.current;
1190
+ if (!n && d) {
1191
+ const g = new CustomEvent(bt, { bubbles: !0, cancelable: !0 });
1192
+ d.addEventListener(bt, (v) => r == null ? void 0 : r(v), { once: !0 }), Nr(d, g), g.defaultPrevented ? p.current = !1 : i.onClose();
1193
+ }
1194
+ };
1195
+ return /* @__PURE__ */ o.jsx(
1196
+ rn,
1197
+ {
1198
+ ...a,
1199
+ ref: l,
1200
+ disabled: n,
1201
+ onClick: y(t.onClick, f),
1202
+ onPointerDown: (d) => {
1203
+ var g;
1204
+ (g = t.onPointerDown) == null || g.call(t, d), p.current = !0;
1205
+ },
1206
+ onPointerUp: y(t.onPointerUp, (d) => {
1207
+ var g;
1208
+ p.current || (g = d.currentTarget) == null || g.click();
1209
+ }),
1210
+ onKeyDown: y(t.onKeyDown, (d) => {
1211
+ const g = c.searchRef.current !== "";
1212
+ n || g && d.key === " " || Ue.includes(d.key) && (d.currentTarget.click(), d.preventDefault());
1213
+ })
1214
+ }
1215
+ );
1216
+ }
1217
+ );
1218
+ Ae.displayName = Ne;
1219
+ var rn = u.forwardRef(
1220
+ (t, e) => {
1221
+ const { __scopeMenu: n, disabled: r = !1, textValue: a, ...s } = t, i = et(Ne, n), c = Xt(n), l = u.useRef(null), p = fe(e, l), [f, d] = u.useState(!1), [g, v] = u.useState("");
1222
+ return u.useEffect(() => {
1223
+ const x = l.current;
1224
+ x && v((x.textContent ?? "").trim());
1225
+ }, [s.children]), /* @__PURE__ */ o.jsx(
1226
+ de.ItemSlot,
1227
+ {
1228
+ scope: n,
1229
+ disabled: r,
1230
+ textValue: a ?? g,
1231
+ children: /* @__PURE__ */ o.jsx(ua, { asChild: !0, ...c, focusable: !r, children: /* @__PURE__ */ o.jsx(
1232
+ ie.div,
1233
+ {
1234
+ role: "menuitem",
1235
+ "data-highlighted": f ? "" : void 0,
1236
+ "aria-disabled": r || void 0,
1237
+ "data-disabled": r ? "" : void 0,
1238
+ ...s,
1239
+ ref: p,
1240
+ onPointerMove: y(
1241
+ t.onPointerMove,
1242
+ he((x) => {
1243
+ r ? i.onItemLeave(x) : (i.onItemEnter(x), x.defaultPrevented || x.currentTarget.focus({ preventScroll: !0 }));
1244
+ })
1245
+ ),
1246
+ onPointerLeave: y(
1247
+ t.onPointerLeave,
1248
+ he((x) => i.onItemLeave(x))
1249
+ ),
1250
+ onFocus: y(t.onFocus, () => d(!0)),
1251
+ onBlur: y(t.onBlur, () => d(!1))
1252
+ }
1253
+ ) })
1254
+ }
1255
+ );
1256
+ }
1257
+ ), lo = "MenuCheckboxItem", an = u.forwardRef(
1258
+ (t, e) => {
1259
+ const { checked: n = !1, onCheckedChange: r, ...a } = t;
1260
+ return /* @__PURE__ */ o.jsx(ln, { scope: t.__scopeMenu, checked: n, children: /* @__PURE__ */ o.jsx(
1261
+ Ae,
1262
+ {
1263
+ role: "menuitemcheckbox",
1264
+ "aria-checked": De(n) ? "mixed" : n,
1265
+ ...a,
1266
+ ref: e,
1267
+ "data-state": ot(n),
1268
+ onSelect: y(
1269
+ a.onSelect,
1270
+ () => r == null ? void 0 : r(De(n) ? !0 : !n),
1271
+ { checkForDefaultPrevented: !1 }
1272
+ )
1273
+ }
1274
+ ) });
1275
+ }
1276
+ );
1277
+ an.displayName = lo;
1278
+ var on = "MenuRadioGroup", [ho, po] = Z(
1279
+ on,
1280
+ { value: void 0, onValueChange: () => {
1281
+ } }
1282
+ ), sn = u.forwardRef(
1283
+ (t, e) => {
1284
+ const { value: n, onValueChange: r, ...a } = t, s = qe(r);
1285
+ return /* @__PURE__ */ o.jsx(ho, { scope: t.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ o.jsx(nt, { ...a, ref: e }) });
1286
+ }
1287
+ );
1288
+ sn.displayName = on;
1289
+ var cn = "MenuRadioItem", un = u.forwardRef(
1290
+ (t, e) => {
1291
+ const { value: n, ...r } = t, a = po(cn, t.__scopeMenu), s = n === a.value;
1292
+ return /* @__PURE__ */ o.jsx(ln, { scope: t.__scopeMenu, checked: s, children: /* @__PURE__ */ o.jsx(
1293
+ Ae,
1294
+ {
1295
+ role: "menuitemradio",
1296
+ "aria-checked": s,
1297
+ ...r,
1298
+ ref: e,
1299
+ "data-state": ot(s),
1300
+ onSelect: y(
1301
+ r.onSelect,
1302
+ () => {
1303
+ var i;
1304
+ return (i = a.onValueChange) == null ? void 0 : i.call(a, n);
1305
+ },
1306
+ { checkForDefaultPrevented: !1 }
1307
+ )
1308
+ }
1309
+ ) });
1310
+ }
1311
+ );
1312
+ un.displayName = cn;
1313
+ var rt = "MenuItemIndicator", [ln, fo] = Z(
1314
+ rt,
1315
+ { checked: !1 }
1316
+ ), dn = u.forwardRef(
1317
+ (t, e) => {
1318
+ const { __scopeMenu: n, forceMount: r, ...a } = t, s = fo(rt, n);
1319
+ return /* @__PURE__ */ o.jsx(
1320
+ Ie,
1321
+ {
1322
+ present: r || De(s.checked) || s.checked === !0,
1323
+ children: /* @__PURE__ */ o.jsx(
1324
+ ie.span,
1325
+ {
1326
+ ...a,
1327
+ ref: e,
1328
+ "data-state": ot(s.checked)
1329
+ }
1330
+ )
1331
+ }
1332
+ );
1333
+ }
1334
+ );
1335
+ dn.displayName = rt;
1336
+ var mo = "MenuSeparator", hn = u.forwardRef(
1337
+ (t, e) => {
1338
+ const { __scopeMenu: n, ...r } = t;
1339
+ return /* @__PURE__ */ o.jsx(
1340
+ ie.div,
1341
+ {
1342
+ role: "separator",
1343
+ "aria-orientation": "horizontal",
1344
+ ...r,
1345
+ ref: e
1346
+ }
1347
+ );
1348
+ }
1349
+ );
1350
+ hn.displayName = mo;
1351
+ var go = "MenuArrow", pn = u.forwardRef(
1352
+ (t, e) => {
1353
+ const { __scopeMenu: n, ...r } = t, a = ye(n);
1354
+ return /* @__PURE__ */ o.jsx(Er, { ...a, ...r, ref: e });
1355
+ }
1356
+ );
1357
+ pn.displayName = go;
1358
+ var at = "MenuSub", [vo, fn] = Z(at), mn = (t) => {
1359
+ const { __scopeMenu: e, children: n, open: r = !1, onOpenChange: a } = t, s = V(at, e), i = ye(e), [c, l] = u.useState(null), [p, f] = u.useState(null), d = qe(a);
1360
+ return u.useEffect(() => (s.open === !1 && d(!1), () => d(!1)), [s.open, d]), /* @__PURE__ */ o.jsx(It, { ...i, children: /* @__PURE__ */ o.jsx(
1361
+ Wt,
1362
+ {
1363
+ scope: e,
1364
+ open: r,
1365
+ onOpenChange: d,
1366
+ content: p,
1367
+ onContentChange: f,
1368
+ children: /* @__PURE__ */ o.jsx(
1369
+ vo,
1370
+ {
1371
+ scope: e,
1372
+ contentId: je(),
1373
+ triggerId: je(),
1374
+ trigger: c,
1375
+ onTriggerChange: l,
1376
+ children: n
486
1377
  }
487
1378
  )
488
- )).flatMap((a) => a ?? []));
489
- this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(we), this.authentication = e.authentication, this.meta = e.meta, this.state = xt;
1379
+ }
1380
+ ) });
1381
+ };
1382
+ mn.displayName = at;
1383
+ var ue = "MenuSubTrigger", gn = u.forwardRef(
1384
+ (t, e) => {
1385
+ const n = V(ue, t.__scopeMenu), r = we(ue, t.__scopeMenu), a = fn(ue, t.__scopeMenu), s = et(ue, t.__scopeMenu), i = u.useRef(null), { pointerGraceTimerRef: c, onPointerGraceIntentChange: l } = s, p = { __scopeMenu: t.__scopeMenu }, f = u.useCallback(() => {
1386
+ i.current && window.clearTimeout(i.current), i.current = null;
1387
+ }, []);
1388
+ return u.useEffect(() => f, [f]), u.useEffect(() => {
1389
+ const d = c.current;
1390
+ return () => {
1391
+ window.clearTimeout(d), l(null);
1392
+ };
1393
+ }, [c, l]), /* @__PURE__ */ o.jsx(Je, { asChild: !0, ...p, children: /* @__PURE__ */ o.jsx(
1394
+ rn,
1395
+ {
1396
+ id: a.triggerId,
1397
+ "aria-haspopup": "menu",
1398
+ "aria-expanded": n.open,
1399
+ "aria-controls": a.contentId,
1400
+ "data-state": yn(n.open),
1401
+ ...t,
1402
+ ref: Dt(e, a.onTriggerChange),
1403
+ onClick: (d) => {
1404
+ var g;
1405
+ (g = t.onClick) == null || g.call(t, d), !(t.disabled || d.defaultPrevented) && (d.currentTarget.focus(), n.open || n.onOpenChange(!0));
1406
+ },
1407
+ onPointerMove: y(
1408
+ t.onPointerMove,
1409
+ he((d) => {
1410
+ s.onItemEnter(d), !d.defaultPrevented && !t.disabled && !n.open && !i.current && (s.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
1411
+ n.onOpenChange(!0), f();
1412
+ }, 100));
1413
+ })
1414
+ ),
1415
+ onPointerLeave: y(
1416
+ t.onPointerLeave,
1417
+ he((d) => {
1418
+ var v, x;
1419
+ f();
1420
+ const g = (v = n.content) == null ? void 0 : v.getBoundingClientRect();
1421
+ if (g) {
1422
+ const R = (x = n.content) == null ? void 0 : x.dataset.side, N = R === "right", _ = N ? -5 : 5, D = g[N ? "left" : "right"], w = g[N ? "right" : "left"];
1423
+ s.onPointerGraceIntentChange({
1424
+ area: [
1425
+ // Apply a bleed on clientX to ensure that our exit point is
1426
+ // consistently within polygon bounds
1427
+ { x: d.clientX + _, y: d.clientY },
1428
+ { x: D, y: g.top },
1429
+ { x: w, y: g.top },
1430
+ { x: w, y: g.bottom },
1431
+ { x: D, y: g.bottom }
1432
+ ],
1433
+ side: R
1434
+ }), window.clearTimeout(c.current), c.current = window.setTimeout(
1435
+ () => s.onPointerGraceIntentChange(null),
1436
+ 300
1437
+ );
1438
+ } else {
1439
+ if (s.onTriggerLeave(d), d.defaultPrevented) return;
1440
+ s.onPointerGraceIntentChange(null);
1441
+ }
1442
+ })
1443
+ ),
1444
+ onKeyDown: y(t.onKeyDown, (d) => {
1445
+ var v;
1446
+ const g = s.searchRef.current !== "";
1447
+ t.disabled || g && d.key === " " || Ja[r.dir].includes(d.key) && (n.onOpenChange(!0), (v = n.content) == null || v.focus(), d.preventDefault());
1448
+ })
1449
+ }
1450
+ ) });
490
1451
  }
491
- async signRequest(e) {
492
- if (!this.authentication)
493
- throw new Error("No authentication provider configured");
494
- const s = await this.authentication.getAccessToken();
495
- return e.headers.set("Authorization", `Bearer ${s}`), e;
1452
+ );
1453
+ gn.displayName = ue;
1454
+ var vn = "MenuSubContent", xn = u.forwardRef(
1455
+ (t, e) => {
1456
+ const n = Zt(T, t.__scopeMenu), { forceMount: r = n.forceMount, ...a } = t, s = V(T, t.__scopeMenu), i = we(T, t.__scopeMenu), c = fn(vn, t.__scopeMenu), l = u.useRef(null), p = fe(e, l);
1457
+ return /* @__PURE__ */ o.jsx(de.Provider, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(Ie, { present: r || s.open, children: /* @__PURE__ */ o.jsx(de.Slot, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(
1458
+ tt,
1459
+ {
1460
+ id: c.contentId,
1461
+ "aria-labelledby": c.triggerId,
1462
+ ...a,
1463
+ ref: p,
1464
+ align: "start",
1465
+ side: i.dir === "rtl" ? "left" : "right",
1466
+ disableOutsidePointerEvents: !1,
1467
+ disableOutsideScroll: !1,
1468
+ trapFocus: !1,
1469
+ onOpenAutoFocus: (f) => {
1470
+ var d;
1471
+ i.isUsingKeyboardRef.current && ((d = l.current) == null || d.focus()), f.preventDefault();
1472
+ },
1473
+ onCloseAutoFocus: (f) => f.preventDefault(),
1474
+ onFocusOutside: y(t.onFocusOutside, (f) => {
1475
+ f.target !== c.trigger && s.onOpenChange(!1);
1476
+ }),
1477
+ onEscapeKeyDown: y(t.onEscapeKeyDown, (f) => {
1478
+ i.onClose(), f.preventDefault();
1479
+ }),
1480
+ onKeyDown: y(t.onKeyDown, (f) => {
1481
+ var v;
1482
+ const d = f.currentTarget.contains(f.target), g = Za[i.dir].includes(f.key);
1483
+ d && g && (s.onOpenChange(!1), (v = c.trigger) == null || v.focus(), f.preventDefault());
1484
+ })
1485
+ }
1486
+ ) }) }) });
496
1487
  }
1488
+ );
1489
+ xn.displayName = vn;
1490
+ function yn(t) {
1491
+ return t ? "open" : "closed";
497
1492
  }
498
- /**
499
- * @license lucide-react v0.378.0 - ISC
500
- *
501
- * This source code is licensed under the ISC license.
502
- * See the LICENSE file in the root directory of this source tree.
503
- */
504
- const ke = z("ChevronRight", [
505
- ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
506
- ]);
507
- /**
508
- * @license lucide-react v0.378.0 - ISC
509
- *
510
- * This source code is licensed under the ISC license.
511
- * See the LICENSE file in the root directory of this source tree.
512
- */
513
- const jt = z("ExternalLink", [
514
- ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
515
- ["path", { d: "M10 14 21 3", key: "gplh6r" }],
516
- ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
517
- ]);
518
- /**
519
- * @license lucide-react v0.378.0 - ISC
520
- *
521
- * This source code is licensed under the ISC license.
522
- * See the LICENSE file in the root directory of this source tree.
523
- */
524
- const Pt = z("MoonStar", [
525
- ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
526
- ["path", { d: "M20 3v4", key: "1olli1" }],
527
- ["path", { d: "M22 5h-4", key: "1gvqau" }]
528
- ]);
529
- /**
530
- * @license lucide-react v0.378.0 - ISC
531
- *
532
- * This source code is licensed under the ISC license.
533
- * See the LICENSE file in the root directory of this source tree.
534
- */
535
- const wt = z("Sun", [
536
- ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
537
- ["path", { d: "M12 2v2", key: "tus03m" }],
538
- ["path", { d: "M12 20v2", key: "1lh1kg" }],
539
- ["path", { d: "m4.93 4.93 1.41 1.41", key: "149t6j" }],
540
- ["path", { d: "m17.66 17.66 1.41 1.41", key: "ptbguv" }],
541
- ["path", { d: "M2 12h2", key: "1t8f8n" }],
542
- ["path", { d: "M20 12h2", key: "1q8mjw" }],
543
- ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
544
- ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
545
- ]), Nt = () => {
546
- const { navigation: t } = U();
547
- return /* @__PURE__ */ n.jsx("nav", { className: "border-b border-border text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ n.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(
548
- B,
1493
+ function De(t) {
1494
+ return t === "indeterminate";
1495
+ }
1496
+ function ot(t) {
1497
+ return De(t) ? "indeterminate" : t ? "checked" : "unchecked";
1498
+ }
1499
+ function xo(t) {
1500
+ const e = document.activeElement;
1501
+ for (const n of t)
1502
+ if (n === e || (n.focus(), document.activeElement !== e)) return;
1503
+ }
1504
+ function yo(t, e) {
1505
+ return t.map((n, r) => t[(e + r) % t.length]);
1506
+ }
1507
+ function wo(t, e, n) {
1508
+ const a = e.length > 1 && Array.from(e).every((p) => p === e[0]) ? e[0] : e, s = n ? t.indexOf(n) : -1;
1509
+ let i = yo(t, Math.max(s, 0));
1510
+ a.length === 1 && (i = i.filter((p) => p !== n));
1511
+ const l = i.find(
1512
+ (p) => p.toLowerCase().startsWith(a.toLowerCase())
1513
+ );
1514
+ return l !== n ? l : void 0;
1515
+ }
1516
+ function Mo(t, e) {
1517
+ const { x: n, y: r } = t;
1518
+ let a = !1;
1519
+ for (let s = 0, i = e.length - 1; s < e.length; i = s++) {
1520
+ const c = e[s].x, l = e[s].y, p = e[i].x, f = e[i].y;
1521
+ l > r != f > r && n < (p - c) * (r - l) / (f - l) + c && (a = !a);
1522
+ }
1523
+ return a;
1524
+ }
1525
+ function bo(t, e) {
1526
+ if (!e) return !1;
1527
+ const n = { x: t.clientX, y: t.clientY };
1528
+ return Mo(n, e);
1529
+ }
1530
+ function he(t) {
1531
+ return (e) => e.pointerType === "mouse" ? t(e) : void 0;
1532
+ }
1533
+ var Co = Jt, Po = Je, Ro = en, _o = tn, Eo = nt, So = nn, jo = Ae, No = an, Do = sn, Io = un, Ao = dn, Oo = hn, To = pn, ko = mn, Fo = gn, Lo = xn, st = "DropdownMenu", [Ko, Fs] = jt(
1534
+ st,
1535
+ [Yt]
1536
+ ), C = Yt(), [$o, wn] = Ko(st), Mn = (t) => {
1537
+ const {
1538
+ __scopeDropdownMenu: e,
1539
+ children: n,
1540
+ dir: r,
1541
+ open: a,
1542
+ defaultOpen: s,
1543
+ onOpenChange: i,
1544
+ modal: c = !0
1545
+ } = t, l = C(e), p = u.useRef(null), [f = !1, d] = At({
1546
+ prop: a,
1547
+ defaultProp: s,
1548
+ onChange: i
1549
+ });
1550
+ return /* @__PURE__ */ o.jsx(
1551
+ $o,
1552
+ {
1553
+ scope: e,
1554
+ triggerId: je(),
1555
+ triggerRef: p,
1556
+ contentId: je(),
1557
+ open: f,
1558
+ onOpenChange: d,
1559
+ onOpenToggle: u.useCallback(() => d((g) => !g), [d]),
1560
+ modal: c,
1561
+ children: /* @__PURE__ */ o.jsx(Co, { ...l, open: f, onOpenChange: d, dir: r, modal: c, children: n })
1562
+ }
1563
+ );
1564
+ };
1565
+ Mn.displayName = st;
1566
+ var bn = "DropdownMenuTrigger", Cn = u.forwardRef(
1567
+ (t, e) => {
1568
+ const { __scopeDropdownMenu: n, disabled: r = !1, ...a } = t, s = wn(bn, n), i = C(n);
1569
+ return /* @__PURE__ */ o.jsx(Po, { asChild: !0, ...i, children: /* @__PURE__ */ o.jsx(
1570
+ ie.button,
1571
+ {
1572
+ type: "button",
1573
+ id: s.triggerId,
1574
+ "aria-haspopup": "menu",
1575
+ "aria-expanded": s.open,
1576
+ "aria-controls": s.open ? s.contentId : void 0,
1577
+ "data-state": s.open ? "open" : "closed",
1578
+ "data-disabled": r ? "" : void 0,
1579
+ disabled: r,
1580
+ ...a,
1581
+ ref: Dt(e, s.triggerRef),
1582
+ onPointerDown: y(t.onPointerDown, (c) => {
1583
+ !r && c.button === 0 && c.ctrlKey === !1 && (s.onOpenToggle(), s.open || c.preventDefault());
1584
+ }),
1585
+ onKeyDown: y(t.onKeyDown, (c) => {
1586
+ r || (["Enter", " "].includes(c.key) && s.onOpenToggle(), c.key === "ArrowDown" && s.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(c.key) && c.preventDefault());
1587
+ })
1588
+ }
1589
+ ) });
1590
+ }
1591
+ );
1592
+ Cn.displayName = bn;
1593
+ var Bo = "DropdownMenuPortal", Pn = (t) => {
1594
+ const { __scopeDropdownMenu: e, ...n } = t, r = C(e);
1595
+ return /* @__PURE__ */ o.jsx(Ro, { ...r, ...n });
1596
+ };
1597
+ Pn.displayName = Bo;
1598
+ var Rn = "DropdownMenuContent", _n = u.forwardRef(
1599
+ (t, e) => {
1600
+ const { __scopeDropdownMenu: n, ...r } = t, a = wn(Rn, n), s = C(n), i = u.useRef(!1);
1601
+ return /* @__PURE__ */ o.jsx(
1602
+ _o,
1603
+ {
1604
+ id: a.contentId,
1605
+ "aria-labelledby": a.triggerId,
1606
+ ...s,
1607
+ ...r,
1608
+ ref: e,
1609
+ onCloseAutoFocus: y(t.onCloseAutoFocus, (c) => {
1610
+ var l;
1611
+ i.current || (l = a.triggerRef.current) == null || l.focus(), i.current = !1, c.preventDefault();
1612
+ }),
1613
+ onInteractOutside: y(t.onInteractOutside, (c) => {
1614
+ const l = c.detail.originalEvent, p = l.button === 0 && l.ctrlKey === !0, f = l.button === 2 || p;
1615
+ (!a.modal || f) && (i.current = !0);
1616
+ }),
1617
+ style: {
1618
+ ...t.style,
1619
+ "--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
1620
+ "--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
1621
+ "--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
1622
+ "--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
1623
+ "--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
1624
+ }
1625
+ }
1626
+ );
1627
+ }
1628
+ );
1629
+ _n.displayName = Rn;
1630
+ var Qo = "DropdownMenuGroup", Uo = u.forwardRef(
1631
+ (t, e) => {
1632
+ const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1633
+ return /* @__PURE__ */ o.jsx(Eo, { ...a, ...r, ref: e });
1634
+ }
1635
+ );
1636
+ Uo.displayName = Qo;
1637
+ var Go = "DropdownMenuLabel", En = u.forwardRef(
1638
+ (t, e) => {
1639
+ const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1640
+ return /* @__PURE__ */ o.jsx(So, { ...a, ...r, ref: e });
1641
+ }
1642
+ );
1643
+ En.displayName = Go;
1644
+ var qo = "DropdownMenuItem", Sn = u.forwardRef(
1645
+ (t, e) => {
1646
+ const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1647
+ return /* @__PURE__ */ o.jsx(jo, { ...a, ...r, ref: e });
1648
+ }
1649
+ );
1650
+ Sn.displayName = qo;
1651
+ var Ho = "DropdownMenuCheckboxItem", jn = u.forwardRef((t, e) => {
1652
+ const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1653
+ return /* @__PURE__ */ o.jsx(No, { ...a, ...r, ref: e });
1654
+ });
1655
+ jn.displayName = Ho;
1656
+ var zo = "DropdownMenuRadioGroup", Vo = u.forwardRef((t, e) => {
1657
+ const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1658
+ return /* @__PURE__ */ o.jsx(Do, { ...a, ...r, ref: e });
1659
+ });
1660
+ Vo.displayName = zo;
1661
+ var Yo = "DropdownMenuRadioItem", Nn = u.forwardRef((t, e) => {
1662
+ const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1663
+ return /* @__PURE__ */ o.jsx(Io, { ...a, ...r, ref: e });
1664
+ });
1665
+ Nn.displayName = Yo;
1666
+ var Xo = "DropdownMenuItemIndicator", Dn = u.forwardRef((t, e) => {
1667
+ const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1668
+ return /* @__PURE__ */ o.jsx(Ao, { ...a, ...r, ref: e });
1669
+ });
1670
+ Dn.displayName = Xo;
1671
+ var Wo = "DropdownMenuSeparator", In = u.forwardRef((t, e) => {
1672
+ const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1673
+ return /* @__PURE__ */ o.jsx(Oo, { ...a, ...r, ref: e });
1674
+ });
1675
+ In.displayName = Wo;
1676
+ var Jo = "DropdownMenuArrow", Zo = u.forwardRef(
1677
+ (t, e) => {
1678
+ const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1679
+ return /* @__PURE__ */ o.jsx(To, { ...a, ...r, ref: e });
1680
+ }
1681
+ );
1682
+ Zo.displayName = Jo;
1683
+ var es = (t) => {
1684
+ const { __scopeDropdownMenu: e, children: n, open: r, onOpenChange: a, defaultOpen: s } = t, i = C(e), [c = !1, l] = At({
1685
+ prop: r,
1686
+ defaultProp: s,
1687
+ onChange: a
1688
+ });
1689
+ return /* @__PURE__ */ o.jsx(ko, { ...i, open: c, onOpenChange: l, children: n });
1690
+ }, ts = "DropdownMenuSubTrigger", An = u.forwardRef((t, e) => {
1691
+ const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1692
+ return /* @__PURE__ */ o.jsx(Fo, { ...a, ...r, ref: e });
1693
+ });
1694
+ An.displayName = ts;
1695
+ var ns = "DropdownMenuSubContent", On = u.forwardRef((t, e) => {
1696
+ const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1697
+ return /* @__PURE__ */ o.jsx(
1698
+ Lo,
549
1699
  {
550
- className: ({ isActive: s }) => _e(
1700
+ ...a,
1701
+ ...r,
1702
+ ref: e,
1703
+ style: {
1704
+ ...t.style,
1705
+ "--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
1706
+ "--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
1707
+ "--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
1708
+ "--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
1709
+ "--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
1710
+ }
1711
+ }
1712
+ );
1713
+ });
1714
+ On.displayName = ns;
1715
+ var rs = Mn, as = Cn, Tn = Pn, kn = _n, Fn = En, Ln = Sn, Kn = jn, $n = Nn, Bn = Dn, Qn = In, os = es, Un = An, Gn = On;
1716
+ const ss = rs, is = as, cs = Tn, us = os, qn = u.forwardRef(({ className: t, inset: e, children: n, ...r }, a) => /* @__PURE__ */ o.jsxs(
1717
+ Un,
1718
+ {
1719
+ ref: a,
1720
+ className: P(
1721
+ "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",
1722
+ e && "pl-8",
1723
+ t
1724
+ ),
1725
+ ...r,
1726
+ children: [
1727
+ n,
1728
+ /* @__PURE__ */ o.jsx(Xe, { className: "ml-auto h-4 w-4" })
1729
+ ]
1730
+ }
1731
+ ));
1732
+ qn.displayName = Un.displayName;
1733
+ const Hn = u.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ o.jsx(
1734
+ Gn,
1735
+ {
1736
+ ref: n,
1737
+ className: P(
1738
+ "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",
1739
+ t
1740
+ ),
1741
+ ...e
1742
+ }
1743
+ ));
1744
+ Hn.displayName = Gn.displayName;
1745
+ const zn = u.forwardRef(({ className: t, sideOffset: e = 4, ...n }, r) => /* @__PURE__ */ o.jsx(Tn, { children: /* @__PURE__ */ o.jsx(
1746
+ kn,
1747
+ {
1748
+ ref: r,
1749
+ sideOffset: e,
1750
+ className: P(
1751
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
1752
+ "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",
1753
+ t
1754
+ ),
1755
+ ...n
1756
+ }
1757
+ ) }));
1758
+ zn.displayName = kn.displayName;
1759
+ const Vn = u.forwardRef(({ className: t, inset: e, ...n }, r) => /* @__PURE__ */ o.jsx(
1760
+ Ln,
1761
+ {
1762
+ ref: r,
1763
+ className: P(
1764
+ "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",
1765
+ e && "pl-8",
1766
+ t
1767
+ ),
1768
+ ...n
1769
+ }
1770
+ ));
1771
+ Vn.displayName = Ln.displayName;
1772
+ const ls = u.forwardRef(({ className: t, children: e, checked: n, ...r }, a) => /* @__PURE__ */ o.jsxs(
1773
+ Kn,
1774
+ {
1775
+ ref: a,
1776
+ className: P(
1777
+ "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",
1778
+ t
1779
+ ),
1780
+ checked: n,
1781
+ ...r,
1782
+ children: [
1783
+ /* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(Bn, { children: /* @__PURE__ */ o.jsx(Or, { className: "h-4 w-4" }) }) }),
1784
+ e
1785
+ ]
1786
+ }
1787
+ ));
1788
+ ls.displayName = Kn.displayName;
1789
+ const ds = u.forwardRef(({ className: t, children: e, ...n }, r) => /* @__PURE__ */ o.jsxs(
1790
+ $n,
1791
+ {
1792
+ ref: r,
1793
+ className: P(
1794
+ "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",
1795
+ t
1796
+ ),
1797
+ ...n,
1798
+ children: [
1799
+ /* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(Bn, { children: /* @__PURE__ */ o.jsx(da, { className: "h-4 w-4 fill-current" }) }) }),
1800
+ e
1801
+ ]
1802
+ }
1803
+ ));
1804
+ ds.displayName = $n.displayName;
1805
+ const Yn = u.forwardRef(({ className: t, inset: e, ...n }, r) => /* @__PURE__ */ o.jsx(
1806
+ Fn,
1807
+ {
1808
+ ref: r,
1809
+ className: P(
1810
+ "px-2 py-1.5 text-sm font-semibold",
1811
+ e && "pl-8",
1812
+ t
1813
+ ),
1814
+ ...n
1815
+ }
1816
+ ));
1817
+ Yn.displayName = Fn.displayName;
1818
+ const Xn = u.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ o.jsx(
1819
+ Qn,
1820
+ {
1821
+ ref: n,
1822
+ className: P("-mx-1 my-1 h-px bg-muted", t),
1823
+ ...e
1824
+ }
1825
+ ));
1826
+ Xn.displayName = Qn.displayName;
1827
+ const hs = () => {
1828
+ const { navigation: t } = Ve();
1829
+ return t.length <= 1 ? null : /* @__PURE__ */ o.jsx("nav", { className: "border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ o.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ o.jsx("li", { children: /* @__PURE__ */ o.jsx(
1830
+ $e,
1831
+ {
1832
+ className: ({ isActive: n }) => Tr(
551
1833
  "block py-3.5 font-medium -mb-px border-b-2",
552
- s ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
1834
+ n ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
553
1835
  ),
554
1836
  to: e.path,
555
1837
  children: e.label
556
1838
  }
557
1839
  ) }, e.label)) }) });
558
- }, Oe = je(function() {
559
- const [e, s] = Be(), { isAuthenticated: a, profile: r, isAuthEnabled: o, login: l, logout: h } = Ve(), { meta: g } = U(), b = e ? Pt : wt;
560
- return /* @__PURE__ */ n.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ n.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
561
- /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b border-border px-12 h-[--top-header-height]", children: [
562
- /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3.5", children: [
563
- (g == null ? void 0 : g.logo) && /* @__PURE__ */ n.jsx("img", { src: g.logo, alt: "My Dev Portal", className: "h-10" }),
564
- /* @__PURE__ */ n.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: g == null ? void 0 : g.headerTitle })
565
- ] }),
566
- /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
567
- /* @__PURE__ */ n.jsx("div", { className: "w-full max-w-prose" }),
568
- /* @__PURE__ */ n.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex", children: [
569
- o && /* @__PURE__ */ n.jsx(n.Fragment, { children: a ? /* @__PURE__ */ n.jsxs(
570
- "button",
1840
+ }, Wn = ({ item: t }) => t.children ? /* @__PURE__ */ o.jsxs(us, { children: [
1841
+ /* @__PURE__ */ o.jsx(qn, { children: t.label }),
1842
+ /* @__PURE__ */ o.jsx(cs, { children: /* @__PURE__ */ o.jsx(Hn, { children: t.children.map((e, n) => (
1843
+ // eslint-disable-next-line react/no-array-index-key
1844
+ /* @__PURE__ */ o.jsx(Wn, { item: e }, n)
1845
+ )) }) })
1846
+ ] }, t.label) : /* @__PURE__ */ o.jsx(Ee, { to: t.path ?? "", children: /* @__PURE__ */ o.jsx(Vn, { children: t.label }, t.label) }), Jn = kt(function() {
1847
+ const [e, n] = kr(), { isAuthenticated: r, profile: a, isAuthEnabled: s } = Ar(), { pathname: i } = J(), c = Ve(), { page: l, plugins: p } = c, f = e ? pa : fa;
1848
+ return /* @__PURE__ */ o.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ o.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
1849
+ /* @__PURE__ */ o.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-12 h-[--top-header-height]", children: [
1850
+ /* @__PURE__ */ o.jsx("div", { className: "flex", children: /* @__PURE__ */ o.jsx(Ee, { to: "/", children: /* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-3.5", children: [
1851
+ (l == null ? void 0 : l.logo) && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
1852
+ /* @__PURE__ */ o.jsx(
1853
+ "img",
571
1854
  {
572
- className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded text-nowrap",
573
- onClick: h,
574
- children: [
575
- "Logout ",
576
- r != null && r.email ? `(${r.email})` : null
577
- ]
1855
+ src: l.logo.src.light,
1856
+ alt: l.logo.alt ?? l.pageTitle,
1857
+ style: { width: l.logo.width },
1858
+ className: P("h-10", e && "hidden"),
1859
+ loading: "lazy"
578
1860
  }
579
- ) : /* @__PURE__ */ n.jsx(
580
- "button",
1861
+ ),
1862
+ /* @__PURE__ */ o.jsx(
1863
+ "img",
1864
+ {
1865
+ src: l.logo.src.dark,
1866
+ alt: l.logo.alt ?? l.pageTitle,
1867
+ style: { width: l.logo.width },
1868
+ className: P("h-10", !e && "hidden"),
1869
+ loading: "lazy"
1870
+ }
1871
+ )
1872
+ ] }),
1873
+ /* @__PURE__ */ o.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: l == null ? void 0 : l.pageTitle })
1874
+ ] }) }) }),
1875
+ /* @__PURE__ */ o.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
1876
+ /* @__PURE__ */ o.jsx("div", { className: "w-full max-w-prose" }),
1877
+ /* @__PURE__ */ o.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex gap-2", children: [
1878
+ s && !r ? /* @__PURE__ */ o.jsx(Be, { variant: "ghost", asChild: !0, children: /* @__PURE__ */ o.jsx(
1879
+ Ee,
581
1880
  {
582
- className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded",
583
- onClick: l,
1881
+ to: {
1882
+ pathname: "/signin",
1883
+ search: `?redirect=${encodeURIComponent(i)}`
1884
+ },
584
1885
  children: "Login"
585
1886
  }
586
- ) }),
587
- /* @__PURE__ */ n.jsx(
1887
+ ) }) : /* @__PURE__ */ o.jsxs(ss, { children: [
1888
+ /* @__PURE__ */ o.jsx(is, { asChild: !0, children: /* @__PURE__ */ o.jsx(Be, { variant: "ghost", children: a != null && a.email ? `${a.email}` : "My Account" }) }),
1889
+ /* @__PURE__ */ o.jsxs(zn, { className: "w-56", children: [
1890
+ /* @__PURE__ */ o.jsx(Yn, { children: "My Account" }),
1891
+ /* @__PURE__ */ o.jsx(Xn, {}),
1892
+ p.filter((d) => Qa(d)).flatMap((d) => d.getProfileMenuItems(c)).map((d) => /* @__PURE__ */ o.jsx(Wn, { item: d }, d.label))
1893
+ ] })
1894
+ ] }),
1895
+ /* @__PURE__ */ o.jsx(
588
1896
  "button",
589
1897
  {
1898
+ type: "button",
1899
+ "aria-label": e ? "Switch to light mode" : "Switch to dark mode",
590
1900
  className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
591
- onClick: s,
592
- children: /* @__PURE__ */ n.jsx(b, { size: 18 })
1901
+ onClick: n,
1902
+ children: /* @__PURE__ */ o.jsx(f, { size: 18 })
593
1903
  }
594
1904
  )
595
1905
  ] })
596
1906
  ] })
597
1907
  ] }),
598
- /* @__PURE__ */ n.jsx(Nt, {})
1908
+ /* @__PURE__ */ o.jsx(hs, {})
599
1909
  ] }) });
600
- }), Ce = {
601
- Header: Oe
602
- }, kt = lt(Ce), Ot = kt.Provider, Ct = () => {
603
- const t = D(), { setActiveAnchor: e } = W();
604
- I(() => {
1910
+ }), Zn = {
1911
+ Header: Jn
1912
+ }, ps = Tt(Zn), fs = ps.Provider, ms = ({
1913
+ children: t,
1914
+ ...e
1915
+ }) => {
1916
+ var R, N;
1917
+ const n = Le(
1918
+ () => ({ ...Zn, ...e.overrides }),
1919
+ [e.overrides]
1920
+ ), r = Le(() => {
1921
+ var D;
1922
+ return {
1923
+ ...(e.plugins ?? []).filter(Ha).flatMap(
1924
+ (w) => w.getMdxComponents ? [w.getMdxComponents()] : []
1925
+ ).reduce((w, E) => ({ ...w, ...E }), {}),
1926
+ ...Fr,
1927
+ ...(D = e.mdx) == null ? void 0 : D.components
1928
+ };
1929
+ }, [(R = e.mdx) == null ? void 0 : R.components, e.plugins]), [a, s] = le(!1), { stagger: i } = qr(Qe), [c, l] = le(!1), p = vr(), f = ge("idle"), d = Le(
1930
+ () => c ? { stagger: !0 } : { stagger: i },
1931
+ [i, c]
1932
+ ), g = xr();
1933
+ W(() => {
1934
+ c || l(!0);
1935
+ }, [c, g.location]);
1936
+ const [v] = le(() => new Va(e));
1937
+ W(() => {
1938
+ f.current !== "pending" && (f.current = "pending", v.initialize({ navigate: p }).then(() => {
1939
+ f.current = "done", s(!0);
1940
+ }));
1941
+ }, [v, p]);
1942
+ const x = (N = e.plugins) == null ? void 0 : N.filter(qa).map((_, D) => {
1943
+ var w;
1944
+ return /* @__PURE__ */ o.jsx(Hr, { children: (w = _.getHead) == null ? void 0 : w.call(_) }, D);
1945
+ });
1946
+ return a ? /* @__PURE__ */ o.jsxs(ra, { client: zt, children: [
1947
+ /* @__PURE__ */ o.jsx(Ge, { children: x }),
1948
+ /* @__PURE__ */ o.jsx(Qe.Provider, { value: d, children: /* @__PURE__ */ o.jsx(aa, { value: v, children: /* @__PURE__ */ o.jsx(ur, { components: r, children: /* @__PURE__ */ o.jsx(Lr, { children: /* @__PURE__ */ o.jsx(fs, { value: n, children: /* @__PURE__ */ o.jsx(fr, { slotlets: e.slotlets, children: /* @__PURE__ */ o.jsx(Kr, { children: t ?? /* @__PURE__ */ o.jsx(St, {}) }) }) }) }) }) }) })
1949
+ ] }) : null;
1950
+ }, gs = kt(ms), er = (t) => /* @__PURE__ */ o.jsx($a, { FallbackComponent: Ya, children: /* @__PURE__ */ o.jsx(gs, { ...t }) });
1951
+ er.displayName = "DevPortal";
1952
+ const vs = () => {
1953
+ const t = J(), { setActiveAnchor: e } = He();
1954
+ W(() => {
605
1955
  if (!t.hash) return;
606
- const s = t.hash.split("/")[0].slice(1), a = document.getElementById(decodeURIComponent(s));
607
- if (a) {
1956
+ const n = t.hash.split("/")[0].slice(1), r = document.getElementById(decodeURIComponent(n));
1957
+ if (r) {
608
1958
  requestAnimationFrame(() => {
609
- a.scrollIntoView(), requestIdleCallback(() => e(s));
1959
+ r.scrollIntoView(), requestIdleCallback(() => e(n));
610
1960
  });
611
1961
  return;
612
1962
  }
613
- const r = new MutationObserver((o, l) => {
614
- const h = document.getElementById(decodeURIComponent(s));
615
- h && (h.scrollIntoView(), requestIdleCallback(() => e(s)), l.disconnect());
1963
+ const a = new MutationObserver((s, i) => {
1964
+ const c = document.getElementById(decodeURIComponent(n));
1965
+ c && (c.scrollIntoView(), requestIdleCallback(() => e(n)), i.disconnect());
616
1966
  });
617
- return r.observe(document.body, { childList: !0, subtree: !0 }), () => r.disconnect();
1967
+ return a.observe(document.body, { childList: !0, subtree: !0 }), () => a.disconnect();
618
1968
  }, [t.hash, e]);
619
- }, Mt = () => {
620
- const t = D(), e = K(t.pathname);
621
- I(() => {
1969
+ }, xs = () => {
1970
+ const t = J(), e = ge(t.pathname);
1971
+ W(() => {
622
1972
  e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
623
1973
  }, [t.pathname]);
624
- }, Me = ({
1974
+ }, tr = ({
625
1975
  item: t,
626
1976
  defaultOpen: e,
627
- path: s
1977
+ path: n
628
1978
  }) => {
629
- const [a, r] = ct(e), o = D(), l = K(o.pathname);
630
- return I(() => {
631
- !a && l.current !== o.pathname && r(X(t, o.pathname, s)), l.current = o.pathname;
632
- }, [a, t, s, o.pathname]), [a, r];
633
- }, R = Xe(
1979
+ const [r, a] = le(e), s = J(), i = ge(s.pathname), [c, l] = le(!1);
1980
+ W(() => {
1981
+ !r && i.current !== s.pathname && a(Ye(t, s.pathname, n)), i.current = s.pathname;
1982
+ }, [r, t, n, s.pathname]);
1983
+ const p = () => {
1984
+ l(!0), a((f) => !f);
1985
+ };
1986
+ return W(() => {
1987
+ l(!1);
1988
+ }, []), {
1989
+ open: r,
1990
+ onOpenChange: p,
1991
+ "data-animate": c
1992
+ };
1993
+ }, _e = $r(
634
1994
  "flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
635
1995
  {
636
1996
  variants: {
@@ -644,251 +2004,210 @@ const wt = z("Sun", [
644
2004
  }
645
2005
  }
646
2006
  }
647
- ), At = "data-anchor", Ae = ({
2007
+ ), ys = "data-anchor", nr = ({
648
2008
  category: t,
649
2009
  item: e,
650
- activeAnchor: s,
651
- currentTopNavItem: a,
652
- basePath: r = ""
2010
+ activeAnchor: n,
2011
+ currentTopNavItem: r,
2012
+ basePath: a = ""
653
2013
  }) => {
654
- const o = V(e) ? ve(r, e.path) : "", l = D(), [h, g] = Me({
2014
+ const s = wt(e) ? Qt(a, e.path) : "", i = J(), c = tr({
655
2015
  item: e,
656
- path: o,
657
- defaultOpen: () => X(e, l.pathname, o)
2016
+ path: s,
2017
+ defaultOpen: () => Ye(e, i.pathname, a)
658
2018
  });
659
- if (Ue(e)) {
660
- const d = L(
2019
+ if (oa(e)) {
2020
+ const p = P(
661
2021
  "flex items-center gap-2",
662
- R({
663
- isActive: e.href === l.pathname
2022
+ _e({
2023
+ isActive: e.href === i.pathname
664
2024
  })
665
2025
  );
666
- return e.href.startsWith("http") ? /* @__PURE__ */ n.jsxs(
2026
+ return e.href.startsWith("http") ? /* @__PURE__ */ o.jsxs(
667
2027
  "a",
668
2028
  {
669
- className: d,
2029
+ className: p,
670
2030
  href: e.href,
671
2031
  target: "_blank",
672
2032
  rel: "noopener noreferrer",
673
2033
  children: [
674
2034
  e.label,
675
- /* @__PURE__ */ n.jsx(jt, { size: 14 })
2035
+ /* @__PURE__ */ o.jsx(ha, { size: 14 })
676
2036
  ]
677
2037
  }
678
- ) : /* @__PURE__ */ n.jsx(B, { className: d, to: e.href, children: e.label });
2038
+ ) : /* @__PURE__ */ o.jsx($e, { className: p, to: e.href, children: e.label });
679
2039
  }
680
- const b = /* @__PURE__ */ n.jsxs("div", { className: "flex justify-between w-full", children: [
681
- /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
2040
+ const l = /* @__PURE__ */ o.jsxs("div", { className: "flex justify-between w-full", children: [
2041
+ /* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
682
2042
  e.icon,
683
- typeof e.label != "string" ? e.label : /* @__PURE__ */ n.jsx("span", { className: "truncate", children: e.label })
2043
+ typeof e.label != "string" ? e.label : /* @__PURE__ */ o.jsx("span", { className: "truncate", children: e.label })
684
2044
  ] }),
685
- e.children && /* @__PURE__ */ n.jsx(
686
- ke,
2045
+ e.children && /* @__PURE__ */ o.jsx(
2046
+ Xe,
687
2047
  {
688
2048
  size: 16,
689
2049
  className: "transition shrink-0 group-data-[state=open]:rotate-90"
690
2050
  }
691
2051
  )
692
2052
  ] });
693
- return /* @__PURE__ */ n.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ n.jsxs(
694
- ye,
695
- {
696
- open: h,
697
- onOpenChange: () => g((d) => !d),
698
- className: "flex flex-col",
699
- children: [
700
- /* @__PURE__ */ n.jsx(
701
- xe,
702
- {
703
- className: L(
704
- "group text-start",
705
- R({ isActive: !1 })
706
- ),
707
- children: b
708
- }
2053
+ return /* @__PURE__ */ o.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ o.jsxs(Ft, { ...c, className: "flex flex-col", children: [
2054
+ /* @__PURE__ */ o.jsx(
2055
+ Lt,
2056
+ {
2057
+ className: P(
2058
+ "group text-start",
2059
+ _e({ isActive: !1 })
709
2060
  ),
710
- /* @__PURE__ */ n.jsx(be, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ n.jsx("ul", { className: "mt-1 border-border border-l ps-1.5", children: e.children.map((d) => /* @__PURE__ */ n.jsx(
711
- Ae,
712
- {
713
- category: t,
714
- item: d,
715
- activeAnchor: s,
716
- currentTopNavItem: a,
717
- basePath: o
718
- },
719
- V(d) ? d.path : d.href
720
- )) }) })
721
- ]
722
- }
723
- ) : e.path.startsWith("#") ? /* @__PURE__ */ n.jsx(
724
- We,
2061
+ children: l
2062
+ }
2063
+ ),
2064
+ /* @__PURE__ */ o.jsx(Kt, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ o.jsx("ul", { className: "mt-1 border-l ps-1.5", children: e.children.map((p) => /* @__PURE__ */ o.jsx(
2065
+ nr,
2066
+ {
2067
+ category: t,
2068
+ item: p,
2069
+ activeAnchor: n,
2070
+ currentTopNavItem: r,
2071
+ basePath: s
2072
+ },
2073
+ wt(p) ? p.path : p.href
2074
+ )) }) })
2075
+ ] }) : e.path.startsWith("#") ? /* @__PURE__ */ o.jsx(
2076
+ lr,
725
2077
  {
726
2078
  to: e.path,
727
- [At]: e.path,
728
- className: R({
729
- isActive: e.path.slice(1) === s,
2079
+ [ys]: e.path,
2080
+ className: _e({
2081
+ isActive: e.path.slice(1) === n,
730
2082
  isMuted: e.muted
731
2083
  }),
732
- children: b
2084
+ children: l
733
2085
  }
734
- ) : /* @__PURE__ */ n.jsx(
735
- B,
2086
+ ) : /* @__PURE__ */ o.jsx(
2087
+ $e,
736
2088
  {
737
- className: ({ isActive: d }) => R({ isActive: d }),
738
- to: o,
739
- children: b
2089
+ className: ({ isActive: p }) => _e({ isActive: p }),
2090
+ to: s,
2091
+ children: l
740
2092
  }
741
2093
  ) });
742
- }, Qt = ({
2094
+ }, ws = ({
743
2095
  category: t
744
2096
  }) => {
745
- const { activeAnchor: e } = W(), s = $e(), a = D(), r = t.collapsible ?? !0, [o, l] = Me({
2097
+ const { activeAnchor: e } = He(), n = sa(), r = J(), a = t.collapsible ?? !0, s = tr({
746
2098
  item: t,
747
- path: (s == null ? void 0 : s.path) ?? "",
748
- defaultOpen: () => !r || t.expanded || X(t, a.pathname, (s == null ? void 0 : s.path) ?? "")
2099
+ path: (n == null ? void 0 : n.path) ?? "",
2100
+ defaultOpen: () => !a || t.expanded || Ye(t, r.pathname, (n == null ? void 0 : n.path) ?? "")
749
2101
  });
750
- return /* @__PURE__ */ n.jsxs(
751
- ye,
752
- {
753
- open: o,
754
- onOpenChange: () => l((h) => !h),
755
- children: [
756
- t.label.length > 0 ? /* @__PURE__ */ n.jsx(xe, { asChild: r, disabled: !r, children: /* @__PURE__ */ n.jsxs(
757
- "h5",
758
- {
759
- className: L(
760
- "flex group items-center justify-between cursor-pointer font-semibold text-foreground/90 px-[--padding-nav-item] py-1.5 rounded-lg transition-colors duration-300 -mx-[--padding-nav-item]",
761
- r ? "hover:bg-accent" : "cursor-auto"
762
- ),
763
- children: [
764
- t.label,
765
- r && /* @__PURE__ */ n.jsx(
766
- ke,
767
- {
768
- className: "group-data-[state=open]:rotate-90 transition",
769
- size: 16
770
- }
771
- )
772
- ]
773
- }
774
- ) }) : "Endpoints",
775
- /* @__PURE__ */ n.jsx(be, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ n.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((h) => /* @__PURE__ */ n.jsx(
776
- Ae,
777
- {
778
- category: t,
779
- item: h,
780
- activeAnchor: e,
781
- currentTopNavItem: s,
782
- basePath: ve(s == null ? void 0 : s.path, t.path)
783
- },
784
- V(h) ? h.path + h.label : h.href
785
- )) }) })
786
- ]
787
- },
788
- t.label
789
- );
790
- }, qt = ht(function({ children: e, className: s, pushMainContent: a }, r) {
791
- return /* @__PURE__ */ n.jsx(
2102
+ return /* @__PURE__ */ o.jsxs(Ft, { ...s, children: [
2103
+ t.label.length > 0 ? /* @__PURE__ */ o.jsx(Lt, { asChild: a, disabled: !a, children: /* @__PURE__ */ o.jsxs(
2104
+ "h5",
2105
+ {
2106
+ className: P(
2107
+ "flex group items-center justify-between cursor-pointer font-semibold text-foreground/90 px-[--padding-nav-item] py-1.5 rounded-lg transition-colors duration-300 -mx-[--padding-nav-item]",
2108
+ a ? "hover:bg-accent" : "cursor-auto"
2109
+ ),
2110
+ children: [
2111
+ t.label,
2112
+ a && /* @__PURE__ */ o.jsx(
2113
+ Xe,
2114
+ {
2115
+ className: "group-data-[state=open]:rotate-90 transition",
2116
+ size: 16
2117
+ }
2118
+ )
2119
+ ]
2120
+ }
2121
+ ) }) : "Endpoints",
2122
+ /* @__PURE__ */ o.jsx(Kt, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ o.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((i, c) => /* @__PURE__ */ o.jsx(
2123
+ nr,
2124
+ {
2125
+ category: t,
2126
+ item: i,
2127
+ activeAnchor: e,
2128
+ currentTopNavItem: n,
2129
+ basePath: Qt(n == null ? void 0 : n.path, t.path)
2130
+ },
2131
+ c
2132
+ )) }) })
2133
+ ] }, t.label);
2134
+ }, Ms = zr(function({ children: e, className: n, pushMainContent: r }, a) {
2135
+ return /* @__PURE__ */ o.jsx(
792
2136
  "nav",
793
2137
  {
794
- "data-navigation": String(a),
795
- className: L(
2138
+ "data-navigation": String(r),
2139
+ className: P(
796
2140
  "peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0 p-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 pt-[--padding-content-top] w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
797
- s
2141
+ n
798
2142
  ),
799
- ref: r,
2143
+ ref: a,
800
2144
  children: e
801
2145
  }
802
2146
  );
803
- }), Dt = () => {
804
- const t = K(null), e = Ge();
805
- return /* @__PURE__ */ n.jsx(
806
- qt,
2147
+ }), bs = () => {
2148
+ const t = ge(null), e = ia();
2149
+ return /* @__PURE__ */ o.jsxs(
2150
+ Ms,
807
2151
  {
808
2152
  ref: t,
809
2153
  pushMainContent: e.data.items.length > 0,
810
- children: e.data.items.map((s) => /* @__PURE__ */ n.jsx(Qt, { category: s }, s.label))
2154
+ children: [
2155
+ /* @__PURE__ */ o.jsx(Se, { name: "zudoku-before-navigation" }),
2156
+ e.data.items.map((n) => /* @__PURE__ */ o.jsx(ws, { category: n }, n.label)),
2157
+ /* @__PURE__ */ o.jsx(Se, { name: "zudoku-after-navigation" })
2158
+ ]
811
2159
  }
812
2160
  );
813
- }, ue = ({ children: t }) => {
814
- const e = D(), { setActiveAnchor: s } = W(), { meta: a } = U();
815
- Ct(), Mt();
816
- const r = K(e.pathname);
817
- return I(() => {
818
- e.pathname !== r.current && s(""), r.current = e.pathname;
819
- }, [e.pathname, s]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
820
- /* @__PURE__ */ n.jsxs(Je, { titleTemplate: a == null ? void 0 : a.pageTitle, children: [
821
- /* @__PURE__ */ n.jsx("title", { children: "Home" }),
822
- (a == null ? void 0 : a.description) && /* @__PURE__ */ n.jsx("meta", { name: "description", content: a.description }),
823
- (a == null ? void 0 : a.favicon) && /* @__PURE__ */ n.jsx("link", { rel: "icon", href: a.favicon })
2161
+ }, Cs = ({ children: t }) => {
2162
+ const e = J(), { setActiveAnchor: n } = He(), { meta: r } = Ve();
2163
+ vs(), xs();
2164
+ const a = ge(e.pathname);
2165
+ return W(() => {
2166
+ e.pathname !== a.current && n(""), a.current = e.pathname;
2167
+ }, [e.pathname, n]), /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2168
+ /* @__PURE__ */ o.jsxs(Ge, { titleTemplate: r == null ? void 0 : r.title, children: [
2169
+ (r == null ? void 0 : r.description) && /* @__PURE__ */ o.jsx("meta", { name: "description", content: r.description }),
2170
+ (r == null ? void 0 : r.favicon) && /* @__PURE__ */ o.jsx("link", { rel: "icon", href: r.favicon })
824
2171
  ] }),
825
- /* @__PURE__ */ n.jsx(Oe, {}),
826
- /* @__PURE__ */ n.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ n.jsxs(
827
- Pe,
2172
+ /* @__PURE__ */ o.jsx(Jn, {}),
2173
+ /* @__PURE__ */ o.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ o.jsxs(
2174
+ Vr,
828
2175
  {
829
- fallback: /* @__PURE__ */ n.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ n.jsx(Ye, {}) }),
2176
+ fallback: /* @__PURE__ */ o.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ o.jsx(la, {}) }),
830
2177
  children: [
831
- /* @__PURE__ */ n.jsx(Dt, {}),
832
- /* @__PURE__ */ n.jsx(
2178
+ /* @__PURE__ */ o.jsx(bs, {}),
2179
+ /* @__PURE__ */ o.jsxs(
833
2180
  "main",
834
2181
  {
835
- className: `dark:border-white/10 translate-x-0 h-full
836
- lg:overflow-visible
837
- lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]
838
- lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] peer-data-[navigation=true]:pl-12`,
839
- children: t ?? /* @__PURE__ */ n.jsx(Ie, {})
2182
+ className: P(
2183
+ "dark:border-white/10 translate-x-0 h-full",
2184
+ "lg:overflow-visible",
2185
+ "lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]",
2186
+ "lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
2187
+ ),
2188
+ children: [
2189
+ /* @__PURE__ */ o.jsx(Se, { name: "zudoku-before-content" }),
2190
+ t ?? /* @__PURE__ */ o.jsx(St, {}),
2191
+ /* @__PURE__ */ o.jsx(Se, { name: "zudoku-after-content" })
2192
+ ]
840
2193
  }
841
2194
  )
842
2195
  ]
843
2196
  }
844
2197
  ) })
845
2198
  ] });
846
- };
847
- function Tt({ plugins: t }) {
848
- const e = H(() => {
849
- const s = (t ?? []).flatMap(
850
- (a) => we(a) ? a.getRoutes() : []
851
- );
852
- return Ze([
853
- {
854
- path: "/",
855
- element: /* @__PURE__ */ n.jsx(ue, {}),
856
- errorElement: /* @__PURE__ */ n.jsx(ue, { children: /* @__PURE__ */ n.jsx("div", { className: "h-[75vh] flex items-center justify-center", children: "Error, look at the console" }) }),
857
- children: s
858
- }
859
- ]);
860
- }, [t]);
861
- return /* @__PURE__ */ n.jsx(et, { router: e });
862
- }
863
- const It = (t) => {
864
- const e = H(
865
- () => ({ ...Ce, ...t.overrides }),
866
- [t.overrides]
867
- ), s = H(
868
- () => ({ ...tt, ...t.mdxComponents }),
869
- [t.mdxComponents]
870
- ), a = H(() => new bt(t), [t]);
871
- return I(() => {
872
- a.initialize();
873
- }, [a]), /* @__PURE__ */ n.jsx(st, { client: Ne, children: /* @__PURE__ */ n.jsx(at, { children: /* @__PURE__ */ n.jsx(nt, { value: a, children: /* @__PURE__ */ n.jsx(rt, { components: s, children: /* @__PURE__ */ n.jsx(it, { children: /* @__PURE__ */ n.jsx(Ot, { value: e, children: /* @__PURE__ */ n.jsx(ot, { children: /* @__PURE__ */ n.jsx(
874
- Pe,
875
- {
876
- fallback: /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: "Loading..." }),
877
- children: /* @__PURE__ */ n.jsx(
878
- Tt,
879
- {
880
- plugins: [
881
- ...t.plugins ?? [],
882
- ...t.authentication ? [t.authentication] : []
883
- ]
884
- }
885
- )
886
- }
887
- ) }) }) }) }) }) }) });
888
- }, Et = je(It);
889
- Et.displayName = "DevPortal";
2199
+ }, Ls = dr, Ks = Br, $s = er, Bs = Cs, Qs = Ee, Us = mr, Gs = ma, qs = Ia, Hs = Aa, zs = Be, Vs = Ge;
890
2200
  export {
891
- Et as DevPortal,
892
- _t as Link,
893
- Bt as useMDXComponents
2201
+ qs as Bootstrap,
2202
+ Hs as BootstrapStatic,
2203
+ zs as Button,
2204
+ Ks as Callout,
2205
+ $s as DevPortal,
2206
+ Vs as Head,
2207
+ Bs as Layout,
2208
+ Qs as Link,
2209
+ Us as RouterError,
2210
+ Gs as ServerError,
2211
+ Ls as useMDXComponents
894
2212
  };
2213
+ //# sourceMappingURL=zudoku.components.js.map