zudoku 0.3.0-dev.4 → 0.3.0-dev.41

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 (474) hide show
  1. package/dist/app/App.d.ts +1 -2
  2. package/dist/app/App.js +1 -28
  3. package/dist/app/App.js.map +1 -1
  4. package/dist/app/demo.d.ts +2 -0
  5. package/dist/app/demo.js +27 -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 +12 -0
  11. package/dist/app/entry.server.js +104 -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 +54 -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 +32 -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/app/zudoku-manifest.d.ts +1 -0
  23. package/dist/app/zudoku-manifest.js +20 -0
  24. package/dist/app/zudoku-manifest.js.map +1 -0
  25. package/dist/cli/cmds/dev.js +5 -0
  26. package/dist/cli/cmds/dev.js.map +1 -1
  27. package/dist/cli/dev/handler.d.ts +1 -0
  28. package/dist/cli/dev/handler.js +3 -1
  29. package/dist/cli/dev/handler.js.map +1 -1
  30. package/dist/config/config.d.ts +15 -16
  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/Callback.js +1 -1
  35. package/dist/lib/authentication/Callback.js.map +1 -1
  36. package/dist/lib/authentication/authentication.d.ts +2 -2
  37. package/dist/lib/authentication/hook.d.ts +1 -0
  38. package/dist/lib/authentication/hook.js +1 -0
  39. package/dist/lib/authentication/hook.js.map +1 -1
  40. package/dist/lib/authentication/providers/auth0.js +1 -0
  41. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  42. package/dist/lib/authentication/providers/clerk.js +4 -0
  43. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  44. package/dist/lib/authentication/providers/openid.d.ts +1 -1
  45. package/dist/lib/authentication/providers/openid.js +2 -0
  46. package/dist/lib/authentication/providers/openid.js.map +1 -1
  47. package/dist/lib/authentication/state.d.ts +1 -0
  48. package/dist/lib/authentication/state.js +1 -0
  49. package/dist/lib/authentication/state.js.map +1 -1
  50. package/dist/lib/components/Bootstrap.d.ts +12 -0
  51. package/dist/lib/components/Bootstrap.js +9 -0
  52. package/dist/lib/components/Bootstrap.js.map +1 -0
  53. package/dist/lib/components/DevPortal.d.ts +4 -19
  54. package/dist/lib/components/DevPortal.js +17 -12
  55. package/dist/lib/components/DevPortal.js.map +1 -1
  56. package/dist/lib/components/ErrorPage.d.ts +6 -0
  57. package/dist/lib/components/ErrorPage.js +9 -0
  58. package/dist/lib/components/ErrorPage.js.map +1 -0
  59. package/dist/lib/components/Header.js +3 -3
  60. package/dist/lib/components/Header.js.map +1 -1
  61. package/dist/lib/components/Heading.d.ts +9 -4
  62. package/dist/lib/components/Heading.js +17 -2
  63. package/dist/lib/components/Heading.js.map +1 -1
  64. package/dist/lib/components/InlineCode.d.ts +5 -0
  65. package/dist/lib/components/InlineCode.js +4 -0
  66. package/dist/lib/components/InlineCode.js.map +1 -0
  67. package/dist/lib/components/Layout.js +3 -2
  68. package/dist/lib/components/Layout.js.map +1 -1
  69. package/dist/lib/components/NotFoundPage.d.ts +1 -0
  70. package/dist/lib/components/NotFoundPage.js +12 -0
  71. package/dist/lib/components/NotFoundPage.js.map +1 -0
  72. package/dist/lib/components/SyntaxHighlight.d.ts +3 -2
  73. package/dist/lib/components/SyntaxHighlight.js +21 -19
  74. package/dist/lib/components/SyntaxHighlight.js.map +1 -1
  75. package/dist/lib/components/TopNavigation.d.ts +1 -1
  76. package/dist/lib/components/TopNavigation.js +4 -0
  77. package/dist/lib/components/TopNavigation.js.map +1 -1
  78. package/dist/lib/components/context/DevPortalProvider.d.ts +1 -1
  79. package/dist/lib/components/context/DevPortalProvider.js +2 -2
  80. package/dist/lib/components/context/DevPortalProvider.js.map +1 -1
  81. package/dist/lib/components/index.d.ts +28 -3
  82. package/dist/lib/components/index.js +17 -3
  83. package/dist/lib/components/index.js.map +1 -1
  84. package/dist/lib/core/DevPortalContext.d.ts +33 -3
  85. package/dist/lib/core/DevPortalContext.js +8 -5
  86. package/dist/lib/core/DevPortalContext.js.map +1 -1
  87. package/dist/lib/core/plugins.d.ts +7 -4
  88. package/dist/lib/core/plugins.js +1 -0
  89. package/dist/lib/core/plugins.js.map +1 -1
  90. package/dist/lib/errors/ErrorAlert.d.ts +3 -0
  91. package/dist/lib/errors/ErrorAlert.js +8 -0
  92. package/dist/lib/errors/ErrorAlert.js.map +1 -0
  93. package/dist/lib/errors/RouterError.d.ts +1 -0
  94. package/dist/lib/errors/RouterError.js +12 -0
  95. package/dist/lib/errors/RouterError.js.map +1 -0
  96. package/dist/lib/errors/ServerError.d.ts +3 -0
  97. package/dist/lib/errors/ServerError.js +6 -0
  98. package/dist/lib/errors/ServerError.js.map +1 -0
  99. package/dist/lib/errors/TopLevelError.d.ts +2 -0
  100. package/dist/lib/errors/TopLevelError.js +7 -0
  101. package/dist/lib/errors/TopLevelError.js.map +1 -0
  102. package/dist/lib/oas/graphql/index.js +1 -1
  103. package/dist/lib/oas/graphql/index.js.map +1 -1
  104. package/dist/lib/oas/parser/index.d.ts +1 -1
  105. package/dist/lib/oas/parser/index.js +38 -12
  106. package/dist/lib/oas/parser/index.js.map +1 -1
  107. package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +4 -0
  108. package/dist/lib/plugins/{api-key → api-keys}/CreateApiKey.js +1 -1
  109. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -0
  110. package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +4 -0
  111. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +38 -0
  112. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -0
  113. package/dist/lib/plugins/{api-key → api-keys}/index.js +32 -9
  114. package/dist/lib/plugins/api-keys/index.js.map +1 -0
  115. package/dist/lib/plugins/markdown/MdxPage.d.ts +3 -2
  116. package/dist/lib/plugins/markdown/MdxPage.js +7 -6
  117. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  118. package/dist/lib/plugins/markdown/Toc.js +1 -1
  119. package/dist/lib/plugins/markdown/Toc.js.map +1 -1
  120. package/dist/lib/plugins/markdown/generateRoutes.d.ts +3 -3
  121. package/dist/lib/plugins/markdown/generateRoutes.js +4 -4
  122. package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -1
  123. package/dist/lib/plugins/markdown/index.d.ts +4 -1
  124. package/dist/lib/plugins/markdown/index.js +3 -7
  125. package/dist/lib/plugins/markdown/index.js.map +1 -1
  126. package/dist/lib/plugins/openapi/OperationList.js +16 -5
  127. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  128. package/dist/lib/plugins/openapi/OperationListItem.js +10 -5
  129. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  130. package/dist/lib/plugins/openapi/ParameterList.js +1 -1
  131. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  132. package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
  133. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  134. package/dist/lib/plugins/openapi/{MakeRequest.d.ts → PlaygroundDialogWrapper.d.ts} +1 -1
  135. package/dist/lib/plugins/openapi/{MakeRequest.js → PlaygroundDialogWrapper.js} +5 -5
  136. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -0
  137. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +1 -9
  138. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  139. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +1 -1
  140. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  141. package/dist/lib/plugins/openapi/Route.d.ts +6 -0
  142. package/dist/lib/plugins/openapi/Route.js +8 -0
  143. package/dist/lib/plugins/openapi/Route.js.map +1 -0
  144. package/dist/lib/plugins/openapi/SchemaListView.js +6 -27
  145. package/dist/lib/plugins/openapi/SchemaListView.js.map +1 -1
  146. package/dist/lib/plugins/openapi/SchemaListViewItem.d.ts +7 -0
  147. package/dist/lib/plugins/openapi/SchemaListViewItem.js +16 -0
  148. package/dist/lib/plugins/openapi/SchemaListViewItem.js.map +1 -0
  149. package/dist/lib/plugins/openapi/SchemaListViewItemGroup.d.ts +8 -0
  150. package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js +17 -0
  151. package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js.map +1 -0
  152. package/dist/lib/plugins/openapi/Sidecar.js +10 -8
  153. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  154. package/dist/lib/plugins/openapi/{Select.d.ts → SimpleSelect.d.ts} +3 -2
  155. package/dist/lib/plugins/openapi/SimpleSelect.js +5 -0
  156. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -0
  157. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +12 -0
  158. package/dist/lib/plugins/openapi/client/createMemoryClient.js +46 -0
  159. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +1 -0
  160. package/dist/lib/plugins/openapi/client/createServer.d.ts +4 -0
  161. package/dist/lib/plugins/openapi/client/createServer.js +30 -0
  162. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -0
  163. package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +10 -0
  164. package/dist/lib/plugins/openapi/{worker/createSharedWorkerClient.js → client/createWorkerClient.js} +15 -2
  165. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +1 -0
  166. package/dist/lib/plugins/openapi/client/interfaces.d.ts +4 -0
  167. package/dist/lib/plugins/openapi/client/interfaces.js +2 -0
  168. package/dist/lib/plugins/openapi/client/interfaces.js.map +1 -0
  169. package/dist/lib/plugins/openapi/{worker → client}/worker.js +2 -2
  170. package/dist/lib/plugins/openapi/client/worker.js.map +1 -0
  171. package/dist/lib/plugins/openapi/context.d.ts +5 -0
  172. package/dist/lib/plugins/openapi/context.js +11 -0
  173. package/dist/lib/plugins/openapi/context.js.map +1 -0
  174. package/dist/lib/plugins/openapi/index.d.ts +4 -18
  175. package/dist/lib/plugins/openapi/index.js +35 -20
  176. package/dist/lib/plugins/openapi/index.js.map +1 -1
  177. package/dist/lib/plugins/openapi/interfaces.d.ts +15 -0
  178. package/dist/lib/plugins/openapi/interfaces.js +2 -0
  179. package/dist/lib/plugins/openapi/interfaces.js.map +1 -0
  180. package/dist/lib/plugins/openapi/playground/Headers.d.ts +2 -3
  181. package/dist/lib/plugins/openapi/playground/Headers.js +16 -6
  182. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  183. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +1 -1
  184. package/dist/lib/plugins/openapi/playground/Playground.d.ts +4 -3
  185. package/dist/lib/plugins/openapi/playground/Playground.js +8 -12
  186. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  187. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.d.ts +3 -0
  188. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +10 -0
  189. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -0
  190. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +1 -1
  191. package/dist/lib/plugins/openapi/playground/QueryParams.js +2 -1
  192. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  193. package/dist/lib/plugins/openapi/playground/createUrl.d.ts +1 -1
  194. package/dist/lib/plugins/openapi/util/prose.d.ts +1 -0
  195. package/dist/lib/plugins/openapi/util/prose.js +4 -0
  196. package/dist/lib/plugins/openapi/util/prose.js.map +1 -0
  197. package/dist/lib/plugins/openapi-worker.d.ts +1 -1
  198. package/dist/lib/plugins/openapi-worker.js +1 -1
  199. package/dist/lib/plugins/openapi-worker.js.map +1 -1
  200. package/dist/lib/plugins/redirect/index.js +2 -3
  201. package/dist/lib/plugins/redirect/index.js.map +1 -1
  202. package/dist/lib/ui/Callout.js +2 -2
  203. package/dist/lib/ui/Callout.js.map +1 -1
  204. package/dist/lib/ui/button-variants.d.ts +2 -2
  205. package/dist/lib/util/MdxComponents.js +2 -2
  206. package/dist/lib/util/MdxComponents.js.map +1 -1
  207. package/dist/lib/util/groupBy.d.ts +1 -6
  208. package/dist/lib/util/groupBy.js +10 -8
  209. package/dist/lib/util/groupBy.js.map +1 -1
  210. package/dist/lib/util/logInit.d.ts +1 -0
  211. package/dist/lib/util/logInit.js +9 -0
  212. package/dist/lib/util/logInit.js.map +1 -0
  213. package/dist/lib/util/objectEntries.d.ts +4 -0
  214. package/dist/lib/util/objectEntries.js +2 -0
  215. package/dist/lib/util/objectEntries.js.map +1 -0
  216. package/dist/lib/util/renderIf.d.ts +1 -0
  217. package/dist/lib/util/renderIf.js +2 -0
  218. package/dist/lib/util/renderIf.js.map +1 -0
  219. package/dist/vite/build.js +27 -8
  220. package/dist/vite/build.js.map +1 -1
  221. package/dist/vite/config.d.ts +13 -9
  222. package/dist/vite/config.js +98 -57
  223. package/dist/vite/config.js.map +1 -1
  224. package/dist/vite/config.test.js +7 -4
  225. package/dist/vite/config.test.js.map +1 -1
  226. package/dist/vite/dev-server.d.ts +2 -1
  227. package/dist/vite/dev-server.js +43 -15
  228. package/dist/vite/dev-server.js.map +1 -1
  229. package/dist/vite/html.js +5 -5
  230. package/dist/vite/html.js.map +1 -1
  231. package/dist/vite/plugin-api-keys.js +7 -8
  232. package/dist/vite/plugin-api-keys.js.map +1 -1
  233. package/dist/vite/plugin-api.js +8 -19
  234. package/dist/vite/plugin-api.js.map +1 -1
  235. package/dist/vite/plugin-auth.js +5 -6
  236. package/dist/vite/plugin-auth.js.map +1 -1
  237. package/dist/vite/plugin-component.js +3 -2
  238. package/dist/vite/plugin-component.js.map +1 -1
  239. package/dist/vite/plugin-config.d.ts +0 -1
  240. package/dist/vite/plugin-config.js +13 -7
  241. package/dist/vite/plugin-config.js.map +1 -1
  242. package/dist/vite/plugin-custom-css.d.ts +6 -0
  243. package/dist/vite/plugin-custom-css.js +55 -0
  244. package/dist/vite/plugin-custom-css.js.map +1 -0
  245. package/dist/vite/plugin-docs.js +14 -4
  246. package/dist/vite/plugin-docs.js.map +1 -1
  247. package/dist/vite/plugin-docs.test.js +1 -1
  248. package/dist/vite/plugin-docs.test.js.map +1 -1
  249. package/dist/vite/plugin-html.js +1 -9
  250. package/dist/vite/plugin-html.js.map +1 -1
  251. package/dist/vite/plugin-mdx.d.ts +3 -1
  252. package/dist/vite/plugin-mdx.js +4 -4
  253. package/dist/vite/plugin-mdx.js.map +1 -1
  254. package/dist/vite/plugin-redirect.js +9 -9
  255. package/dist/vite/plugin-redirect.js.map +1 -1
  256. package/dist/vite/plugin.js +3 -3
  257. package/dist/vite/plugin.js.map +1 -1
  258. package/dist/vite/prerender.d.ts +17 -0
  259. package/dist/vite/prerender.js +55 -0
  260. package/dist/vite/prerender.js.map +1 -0
  261. package/lib/AnchorLink-DCdBbdqo.js +705 -0
  262. package/lib/AnchorLink-DCdBbdqo.js.map +1 -0
  263. package/lib/DevPortalProvider-C-O1s7mm.js +1081 -0
  264. package/lib/DevPortalProvider-C-O1s7mm.js.map +1 -0
  265. package/lib/Markdown-CGZJUYcj.js +15028 -0
  266. package/lib/Markdown-CGZJUYcj.js.map +1 -0
  267. package/lib/MdxPage-BZLuBOqR.js +190 -0
  268. package/lib/MdxPage-BZLuBOqR.js.map +1 -0
  269. package/lib/OperationList-BEpN70_E.js +5562 -0
  270. package/lib/OperationList-BEpN70_E.js.map +1 -0
  271. package/lib/Route-WiMUalLG.js +13 -0
  272. package/lib/Route-WiMUalLG.js.map +1 -0
  273. package/lib/Select-BQ9-3iTJ.js +4571 -0
  274. package/lib/Select-BQ9-3iTJ.js.map +1 -0
  275. package/lib/Spinner-C1L_TK5f.js +182 -0
  276. package/lib/Spinner-C1L_TK5f.js.map +1 -0
  277. package/lib/_commonjsHelpers-BkfeUUK-.js +1 -0
  278. package/lib/_commonjsHelpers-BkfeUUK-.js.map +1 -0
  279. package/lib/assets/index-BPdJm2ty.js +1 -0
  280. package/lib/assets/index-BPdJm2ty.js.map +1 -0
  281. package/lib/assets/{worker-BCcpCNJ7.js → worker-BjPv-hjP.js} +10742 -10318
  282. package/lib/assets/worker-BjPv-hjP.js.map +1 -0
  283. package/lib/context-_fYfJFgk.js +14 -0
  284. package/lib/context-_fYfJFgk.js.map +1 -0
  285. package/lib/createWorkerClient-TWecYOlx.js +16698 -0
  286. package/lib/createWorkerClient-TWecYOlx.js.map +1 -0
  287. package/lib/hook-SM2dMVmI.js +77 -0
  288. package/lib/hook-SM2dMVmI.js.map +1 -0
  289. package/lib/index-CtLNbq0d.js +412 -0
  290. package/lib/index-CtLNbq0d.js.map +1 -0
  291. package/lib/index-PvQa9XLl.js +724 -0
  292. package/lib/index-PvQa9XLl.js.map +1 -0
  293. package/lib/index-pI9JkN46.js +4765 -0
  294. package/lib/index-pI9JkN46.js.map +1 -0
  295. package/lib/jsx-runtime-DLtUZ5Ve.js +1526 -0
  296. package/lib/jsx-runtime-DLtUZ5Ve.js.map +1 -0
  297. package/lib/prism-bash.min-DadFsM4Z.js +1 -0
  298. package/lib/prism-bash.min-DadFsM4Z.js.map +1 -0
  299. package/lib/prism-csharp.min-Yizuc34Y.js +35 -0
  300. package/lib/prism-csharp.min-Yizuc34Y.js.map +1 -0
  301. package/lib/prism-java.min-d5iT_mOd.js +1 -0
  302. package/lib/prism-java.min-d5iT_mOd.js.map +1 -0
  303. package/lib/prism-json.min-B1GJqK1k.js +1 -0
  304. package/lib/prism-json.min-B1GJqK1k.js.map +1 -0
  305. package/lib/prism-markup-templating-DZrrEs0A.js +1 -0
  306. package/lib/prism-markup-templating-DZrrEs0A.js.map +1 -0
  307. package/lib/prism-objectivec.min-BXSWqpJJ.js +2 -0
  308. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +1 -0
  309. package/lib/prism-php.min-o7FpoMP_.js +1 -0
  310. package/lib/prism-php.min-o7FpoMP_.js.map +1 -0
  311. package/lib/prism-ruby.min-C7LwcKyz.js +1 -0
  312. package/lib/prism-ruby.min-C7LwcKyz.js.map +1 -0
  313. package/lib/router-BkOLuJlq.js +2973 -0
  314. package/lib/router-BkOLuJlq.js.map +1 -0
  315. package/lib/slugify-DbLhpSPt.js +28 -0
  316. package/lib/slugify-DbLhpSPt.js.map +1 -0
  317. package/lib/{state-oycsxkHz.js → state-Ds_OxRHP.js} +20 -18
  318. package/lib/state-Ds_OxRHP.js.map +1 -0
  319. package/lib/util-Cgie7wjb.js +41 -0
  320. package/lib/util-Cgie7wjb.js.map +1 -0
  321. package/lib/zudoku.auth-auth0.js +3 -1
  322. package/lib/zudoku.auth-auth0.js.map +1 -0
  323. package/lib/zudoku.auth-clerk.js +11 -8
  324. package/lib/zudoku.auth-clerk.js.map +1 -0
  325. package/lib/zudoku.auth-openid.js +5 -2
  326. package/lib/zudoku.auth-openid.js.map +1 -0
  327. package/lib/zudoku.components.js +800 -464
  328. package/lib/zudoku.components.js.map +1 -0
  329. package/lib/zudoku.openapi-worker.js +3 -223
  330. package/lib/zudoku.openapi-worker.js.map +1 -0
  331. package/lib/zudoku.plugin-api-keys.js +287 -0
  332. package/lib/zudoku.plugin-api-keys.js.map +1 -0
  333. package/lib/zudoku.plugin-markdown.js +49 -0
  334. package/lib/zudoku.plugin-markdown.js.map +1 -0
  335. package/lib/zudoku.plugin-openapi.js +9 -0
  336. package/lib/zudoku.plugin-openapi.js.map +1 -0
  337. package/lib/zudoku.plugin-redirect.js +11 -0
  338. package/lib/zudoku.plugin-redirect.js.map +1 -0
  339. package/package.json +33 -15
  340. package/src/app/App.tsx +0 -40
  341. package/src/app/demo-cdn.html +26 -0
  342. package/src/app/demo.html +18 -0
  343. package/src/app/demo.tsx +40 -0
  344. package/src/app/entry.client.tsx +47 -0
  345. package/src/app/entry.server.tsx +158 -0
  346. package/src/app/main.css +74 -0
  347. package/src/app/main.tsx +71 -15
  348. package/src/app/standalone.html +20 -0
  349. package/src/app/standalone.tsx +46 -0
  350. package/src/app/tailwind.ts +2 -6
  351. package/src/app/zudoku-manifest.ts +22 -0
  352. package/src/lib/authentication/Callback.tsx +1 -1
  353. package/src/lib/authentication/authentication.ts +2 -5
  354. package/src/lib/authentication/hook.ts +1 -0
  355. package/src/lib/authentication/providers/auth0.tsx +1 -0
  356. package/src/lib/authentication/providers/clerk.tsx +3 -0
  357. package/src/lib/authentication/providers/openid.tsx +3 -1
  358. package/src/lib/authentication/state.ts +2 -0
  359. package/src/lib/components/Bootstrap.tsx +37 -0
  360. package/src/lib/components/DevPortal.tsx +41 -56
  361. package/src/lib/components/ErrorPage.tsx +28 -0
  362. package/src/lib/components/Header.tsx +7 -7
  363. package/src/lib/components/Heading.tsx +26 -7
  364. package/src/lib/components/InlineCode.tsx +19 -0
  365. package/src/lib/components/Layout.tsx +9 -7
  366. package/src/lib/components/NotFoundPage.tsx +39 -0
  367. package/src/lib/components/SyntaxHighlight.tsx +27 -19
  368. package/src/lib/components/TopNavigation.tsx +5 -0
  369. package/src/lib/components/context/DevPortalProvider.ts +2 -2
  370. package/src/lib/components/index.ts +21 -3
  371. package/src/lib/core/DevPortalContext.ts +42 -13
  372. package/src/lib/core/plugins.ts +10 -5
  373. package/src/lib/errors/ErrorAlert.tsx +21 -0
  374. package/src/lib/errors/RouterError.tsx +13 -0
  375. package/src/lib/errors/ServerError.tsx +5 -0
  376. package/src/lib/errors/TopLevelError.tsx +8 -0
  377. package/src/lib/oas/graphql/index.ts +2 -2
  378. package/src/lib/oas/parser/index.ts +41 -20
  379. package/src/lib/plugins/{api-key → api-keys}/CreateApiKey.tsx +2 -8
  380. package/src/lib/plugins/{api-key → api-keys}/SettingsApiKeys.tsx +21 -14
  381. package/src/lib/plugins/{api-key → api-keys}/index.tsx +43 -9
  382. package/src/lib/plugins/markdown/MdxPage.tsx +52 -35
  383. package/src/lib/plugins/markdown/Toc.tsx +1 -1
  384. package/src/lib/plugins/markdown/generateRoutes.tsx +16 -6
  385. package/src/lib/plugins/markdown/index.tsx +10 -7
  386. package/src/lib/plugins/openapi/OperationList.tsx +40 -4
  387. package/src/lib/plugins/openapi/OperationListItem.tsx +69 -42
  388. package/src/lib/plugins/openapi/ParameterList.tsx +1 -1
  389. package/src/lib/plugins/openapi/ParameterListItem.tsx +3 -4
  390. package/src/lib/plugins/openapi/{MakeRequest.tsx → PlaygroundDialogWrapper.tsx} +4 -4
  391. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +2 -16
  392. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +3 -1
  393. package/src/lib/plugins/openapi/Route.tsx +21 -0
  394. package/src/lib/plugins/openapi/SchemaListView.tsx +23 -192
  395. package/src/lib/plugins/openapi/SchemaListViewItem.tsx +110 -0
  396. package/src/lib/plugins/openapi/SchemaListViewItemGroup.tsx +63 -0
  397. package/src/lib/plugins/openapi/Sidecar.tsx +15 -10
  398. package/src/lib/plugins/openapi/{Select.tsx → SimpleSelect.tsx} +6 -3
  399. package/src/lib/plugins/openapi/client/createMemoryClient.ts +56 -0
  400. package/src/lib/plugins/openapi/client/createServer.ts +33 -0
  401. package/src/lib/plugins/openapi/{worker/createSharedWorkerClient.ts → client/createWorkerClient.ts} +21 -1
  402. package/src/lib/plugins/openapi/client/interfaces.ts +5 -0
  403. package/src/lib/plugins/openapi/{worker → client}/worker.ts +3 -3
  404. package/src/lib/plugins/openapi/context.tsx +16 -0
  405. package/src/lib/plugins/openapi/index.tsx +59 -52
  406. package/src/lib/plugins/openapi/interfaces.ts +9 -0
  407. package/src/lib/plugins/openapi/playground/Headers.tsx +60 -33
  408. package/src/lib/plugins/openapi/playground/PathParams.tsx +1 -1
  409. package/src/lib/plugins/openapi/playground/Playground.tsx +158 -193
  410. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +34 -0
  411. package/src/lib/plugins/openapi/playground/QueryParams.tsx +7 -2
  412. package/src/lib/plugins/openapi/playground/createUrl.ts +1 -1
  413. package/src/lib/plugins/openapi/util/prose.ts +7 -0
  414. package/src/lib/plugins/openapi-worker.ts +1 -1
  415. package/src/lib/plugins/redirect/index.tsx +2 -2
  416. package/src/lib/ui/Callout.tsx +4 -4
  417. package/src/lib/util/MdxComponents.tsx +2 -12
  418. package/src/lib/util/groupBy.ts +7 -12
  419. package/src/lib/util/logInit.ts +9 -0
  420. package/src/lib/util/objectEntries.ts +5 -0
  421. package/src/lib/util/renderIf.ts +4 -0
  422. package/dist/lib/components/Link.d.ts +0 -1
  423. package/dist/lib/components/Link.js +0 -2
  424. package/dist/lib/components/Link.js.map +0 -1
  425. package/dist/lib/components/Router.d.ts +0 -4
  426. package/dist/lib/components/Router.js +0 -20
  427. package/dist/lib/components/Router.js.map +0 -1
  428. package/dist/lib/core/helmet.d.ts +0 -4
  429. package/dist/lib/core/helmet.js +0 -5
  430. package/dist/lib/core/helmet.js.map +0 -1
  431. package/dist/lib/core/icons.d.ts +0 -1
  432. package/dist/lib/core/icons.js +0 -2
  433. package/dist/lib/core/icons.js.map +0 -1
  434. package/dist/lib/core/router.d.ts +0 -1
  435. package/dist/lib/core/router.js +0 -2
  436. package/dist/lib/core/router.js.map +0 -1
  437. package/dist/lib/plugins/api-key/CreateApiKey.d.ts +0 -5
  438. package/dist/lib/plugins/api-key/CreateApiKey.js.map +0 -1
  439. package/dist/lib/plugins/api-key/SettingsApiKeys.d.ts +0 -5
  440. package/dist/lib/plugins/api-key/SettingsApiKeys.js +0 -38
  441. package/dist/lib/plugins/api-key/SettingsApiKeys.js.map +0 -1
  442. package/dist/lib/plugins/api-key/index.js.map +0 -1
  443. package/dist/lib/plugins/index.d.ts +0 -4
  444. package/dist/lib/plugins/index.js +0 -5
  445. package/dist/lib/plugins/index.js.map +0 -1
  446. package/dist/lib/plugins/openapi/MakeRequest.js.map +0 -1
  447. package/dist/lib/plugins/openapi/Select.js +0 -5
  448. package/dist/lib/plugins/openapi/Select.js.map +0 -1
  449. package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.d.ts +0 -5
  450. package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.js.map +0 -1
  451. package/dist/lib/plugins/openapi/worker/shared-worker.d.ts +0 -1
  452. package/dist/lib/plugins/openapi/worker/shared-worker.js +0 -6
  453. package/dist/lib/plugins/openapi/worker/shared-worker.js.map +0 -1
  454. package/dist/lib/plugins/openapi/worker/worker.js.map +0 -1
  455. package/dist/vite/common.d.ts +0 -1
  456. package/dist/vite/common.js +0 -5
  457. package/dist/vite/common.js.map +0 -1
  458. package/dist/vite/plugin-openapi-worker.d.ts +0 -4
  459. package/dist/vite/plugin-openapi-worker.js +0 -28
  460. package/dist/vite/plugin-openapi-worker.js.map +0 -1
  461. package/lib/Spinner-7LezPqGn.js +0 -8393
  462. package/lib/clerk-Wslx_mPo.js +0 -19685
  463. package/lib/index-DNx3xWa2.js +0 -3461
  464. package/lib/urql-DMlBWUKL.js +0 -1591
  465. package/lib/zudoku.plugins.js +0 -19863
  466. package/src/lib/components/Link.tsx +0 -1
  467. package/src/lib/components/Router.tsx +0 -28
  468. package/src/lib/core/helmet.ts +0 -5
  469. package/src/lib/core/icons.tsx +0 -1
  470. package/src/lib/core/router.tsx +0 -1
  471. package/src/lib/plugins/index.ts +0 -4
  472. package/src/lib/plugins/openapi/worker/shared-worker.ts +0 -5
  473. /package/dist/lib/plugins/{api-key → api-keys}/index.d.ts +0 -0
  474. /package/dist/lib/plugins/openapi/{worker → client}/worker.d.ts +0 -0
@@ -1,618 +1,964 @@
1
- var De = Object.defineProperty;
2
- var se = (t) => {
1
+ var $e = Object.defineProperty;
2
+ var ce = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
- var Se = (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) => Se(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 F = (t, e, s, a) => ({
9
- set _(r) {
10
- u(t, e, r, s);
5
+ var Ve = (t, e, r) => e in t ? $e(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
6
+ var v = (t, e, r) => Ve(t, typeof e != "symbol" ? e + "" : e, r), ue = (t, e, r) => e.has(t) || ce("Cannot " + r);
7
+ var l = (t, e, r) => (ue(t, e, "read from private field"), r ? r.call(t) : e.get(t)), y = (t, e, r) => e.has(t) ? ce("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), d = (t, e, r, a) => (ue(t, e, "write to private field"), a ? a.call(t, r) : e.set(t, r), r);
8
+ var L = (t, e, r, a) => ({
9
+ set _(s) {
10
+ d(t, e, s, r);
11
11
  },
12
12
  get _() {
13
- return i(t, e, a);
13
+ return l(t, e, a);
14
14
  }
15
15
  });
16
- import { j as n, u as D, O as Ee } from "./index-DNx3xWa2.js";
17
- import { S as me, h as ge, Q as Te, n as p, m as ne, M as Ie, 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 E, u as K, N as V, k as _e, l as Be, q as W, t as X, v as U, w as ve, x as Ve, y as z, R as ye, T as xe, C as be, A as Ue, z as We, B as Xe, D as $e, H as Ge, E 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, V as it } from "./Spinner-7LezPqGn.js";
18
- import { W as Vt, U as Ut } from "./Spinner-7LezPqGn.js";
19
- import { memo as je, createContext as ot, useEffect as T, useRef as _, useState as lt, forwardRef as ct, Suspense as we, useMemo as L } from "react";
20
- import { c as ht, u as ut } from "./state-oycsxkHz.js";
21
- var x, de, dt = (de = class extends me {
16
+ import { c as U, d as Ye, R as Je, N as J, b as Xe, e as We, M as Ge, T as Ze, V as et, u as W, a as F, f as tt, g as rt, L as at } from "./Markdown-CGZJUYcj.js";
17
+ import { E as Ee, u as st, R as nt } from "./hook-SM2dMVmI.js";
18
+ import { j as n, d as it, u as T, O as ot } from "./jsx-runtime-DLtUZ5Ve.js";
19
+ import { a as Pe, H as je, M as lt, A as ct, u as ut } from "./AnchorLink-DCdBbdqo.js";
20
+ import ht, { StrictMode as Se, createContext as Ne, Component as dt, createElement as he, isValidElement as ft, memo as Ce, useMemo as V, useEffect as I, Fragment as pt, useRef as K, useState as mt, forwardRef as gt, Suspense as vt } from "react";
21
+ import { a as G } from "./_commonjsHelpers-BkfeUUK-.js";
22
+ import { u as yt } from "./router-BkOLuJlq.js";
23
+ import { S as Oe, h as Ae, Q as bt, n as g, m as de, e as fe, f as P, g as xt, i as wt, j as Et, k as Pt, o as pe, r as me, l as jt, p as ge, q as ve, s as St, a as Z, t as Nt, D as Ct, u as Ot, v as At } from "./DevPortalProvider-C-O1s7mm.js";
24
+ import { c as Rt } from "./state-Ds_OxRHP.js";
25
+ import { M as kt } from "./index-CtLNbq0d.js";
26
+ import { R as Re, T as ke, C as Me, S as Mt } from "./Spinner-C1L_TK5f.js";
27
+ import { c as ee, i as X, j as De, a as Dt } from "./util-Cgie7wjb.js";
28
+ /**
29
+ * @license lucide-react v0.378.0 - ISC
30
+ *
31
+ * This source code is licensed under the ISC license.
32
+ * See the LICENSE file in the root directory of this source tree.
33
+ */
34
+ const _e = U("ChevronRight", [
35
+ ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
36
+ ]);
37
+ /**
38
+ * @license lucide-react v0.378.0 - ISC
39
+ *
40
+ * This source code is licensed under the ISC license.
41
+ * See the LICENSE file in the root directory of this source tree.
42
+ */
43
+ const _t = U("ExternalLink", [
44
+ ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
45
+ ["path", { d: "M10 14 21 3", key: "gplh6r" }],
46
+ ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
47
+ ]);
48
+ /**
49
+ * @license lucide-react v0.378.0 - ISC
50
+ *
51
+ * This source code is licensed under the ISC license.
52
+ * See the LICENSE file in the root directory of this source tree.
53
+ */
54
+ const Tt = U("MoonStar", [
55
+ ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
56
+ ["path", { d: "M20 3v4", key: "1olli1" }],
57
+ ["path", { d: "M22 5h-4", key: "1gvqau" }]
58
+ ]);
59
+ /**
60
+ * @license lucide-react v0.378.0 - ISC
61
+ *
62
+ * This source code is licensed under the ISC license.
63
+ * See the LICENSE file in the root directory of this source tree.
64
+ */
65
+ const Ft = U("Sun", [
66
+ ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
67
+ ["path", { d: "M12 2v2", key: "tus03m" }],
68
+ ["path", { d: "M12 20v2", key: "1lh1kg" }],
69
+ ["path", { d: "m4.93 4.93 1.41 1.41", key: "149t6j" }],
70
+ ["path", { d: "m17.66 17.66 1.41 1.41", key: "ptbguv" }],
71
+ ["path", { d: "M2 12h2", key: "1t8f8n" }],
72
+ ["path", { d: "M20 12h2", key: "1q8mjw" }],
73
+ ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
74
+ ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
75
+ ]);
76
+ function Qt({ error: t }) {
77
+ return /* @__PURE__ */ n.jsx(Ee, { error: t });
78
+ }
79
+ var q = {};
80
+ const It = /* @__PURE__ */ G(yt), qt = /* @__PURE__ */ G(it), Ht = /* @__PURE__ */ G(Ye);
81
+ Object.defineProperty(q, "__esModule", { value: !0 });
82
+ var Lt = ht, E = It, te = qt, j = Ht;
83
+ function Bt(t) {
84
+ if (t && t.__esModule) return t;
85
+ var e = /* @__PURE__ */ Object.create(null);
86
+ return t && Object.keys(t).forEach(function(r) {
87
+ if (r !== "default") {
88
+ var a = Object.getOwnPropertyDescriptor(t, r);
89
+ Object.defineProperty(e, r, a.get ? a : {
90
+ enumerable: !0,
91
+ get: function() {
92
+ return t[r];
93
+ }
94
+ });
95
+ }
96
+ }), e.default = t, Object.freeze(e);
97
+ }
98
+ var x = /* @__PURE__ */ Bt(Lt);
99
+ function zt({
100
+ basename: t,
101
+ children: e,
102
+ location: r = "/",
103
+ future: a
104
+ }) {
105
+ typeof r == "string" && (r = j.parsePath(r));
106
+ let s = E.Action.Pop, o = {
107
+ pathname: r.pathname || "/",
108
+ search: r.search || "",
109
+ hash: r.hash || "",
110
+ state: r.state != null ? r.state : null,
111
+ key: r.key || "default"
112
+ }, i = Te();
113
+ return /* @__PURE__ */ x.createElement(j.Router, {
114
+ basename: t,
115
+ children: e,
116
+ location: o,
117
+ navigationType: s,
118
+ navigator: i,
119
+ future: a,
120
+ static: !0
121
+ });
122
+ }
123
+ function Ut({
124
+ context: t,
125
+ router: e,
126
+ hydrate: r = !0,
127
+ nonce: a
128
+ }) {
129
+ e && t || (process.env.NODE_ENV !== "production" ? E.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : E.UNSAFE_invariant(!1));
130
+ let s = {
131
+ router: e,
132
+ navigator: Te(),
133
+ static: !0,
134
+ staticContext: t,
135
+ basename: t.basename || "/"
136
+ }, o = /* @__PURE__ */ new Map(), i = "";
137
+ if (r !== !1) {
138
+ let u = {
139
+ loaderData: t.loaderData,
140
+ actionData: t.actionData,
141
+ errors: $t(t.errors)
142
+ };
143
+ i = `window.__staticRouterHydrationData = JSON.parse(${Gt(JSON.stringify(JSON.stringify(u)))});`;
144
+ }
145
+ let {
146
+ state: c
147
+ } = s.router;
148
+ return /* @__PURE__ */ x.createElement(x.Fragment, null, /* @__PURE__ */ x.createElement(j.UNSAFE_DataRouterContext.Provider, {
149
+ value: s
150
+ }, /* @__PURE__ */ x.createElement(j.UNSAFE_DataRouterStateContext.Provider, {
151
+ value: c
152
+ }, /* @__PURE__ */ x.createElement(j.UNSAFE_FetchersContext.Provider, {
153
+ value: o
154
+ }, /* @__PURE__ */ x.createElement(j.UNSAFE_ViewTransitionContext.Provider, {
155
+ value: {
156
+ isTransitioning: !1
157
+ }
158
+ }, /* @__PURE__ */ x.createElement(j.Router, {
159
+ basename: s.basename,
160
+ location: c.location,
161
+ navigationType: c.historyAction,
162
+ navigator: s.navigator,
163
+ static: s.static,
164
+ future: {
165
+ v7_relativeSplatPath: e.future.v7_relativeSplatPath
166
+ }
167
+ }, /* @__PURE__ */ x.createElement(Kt, {
168
+ routes: e.routes,
169
+ future: e.future,
170
+ state: c
171
+ })))))), i ? /* @__PURE__ */ x.createElement("script", {
172
+ suppressHydrationWarning: !0,
173
+ nonce: a,
174
+ dangerouslySetInnerHTML: {
175
+ __html: i
176
+ }
177
+ }) : null);
178
+ }
179
+ function Kt({
180
+ routes: t,
181
+ future: e,
182
+ state: r
183
+ }) {
184
+ return te.UNSAFE_useRoutesImpl(t, void 0, r, e);
185
+ }
186
+ function $t(t) {
187
+ if (!t) return null;
188
+ let e = Object.entries(t), r = {};
189
+ for (let [a, s] of e)
190
+ E.isRouteErrorResponse(s) ? r[a] = {
191
+ ...s,
192
+ __type: "RouteErrorResponse"
193
+ } : s instanceof Error ? r[a] = {
194
+ message: s.message,
195
+ __type: "Error",
196
+ // If this is a subclass (i.e., ReferenceError), send up the type so we
197
+ // can re-create the same type during hydration.
198
+ ...s.name !== "Error" ? {
199
+ __subType: s.name
200
+ } : {}
201
+ } : r[a] = s;
202
+ return r;
203
+ }
204
+ function Te() {
205
+ return {
206
+ createHref: Fe,
207
+ encodeLocation: Qe,
208
+ push(t) {
209
+ 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.`);
210
+ },
211
+ replace(t) {
212
+ 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.`);
213
+ },
214
+ go(t) {
215
+ 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.`);
216
+ },
217
+ back() {
218
+ throw new Error("You cannot use navigator.back() on the server because it is a stateless environment.");
219
+ },
220
+ forward() {
221
+ throw new Error("You cannot use navigator.forward() on the server because it is a stateless environment.");
222
+ }
223
+ };
224
+ }
225
+ function Vt(t, e) {
226
+ return E.createStaticHandler(t, {
227
+ ...e,
228
+ mapRouteProperties: te.UNSAFE_mapRouteProperties
229
+ });
230
+ }
231
+ function Yt(t, e, r = {}) {
232
+ let a = {}, s = E.UNSAFE_convertRoutesToDataRoutes(t, te.UNSAFE_mapRouteProperties, void 0, a), o = e.matches.map((c) => {
233
+ let u = a[c.route.id] || c.route;
234
+ return {
235
+ ...c,
236
+ route: u
237
+ };
238
+ }), i = (c) => `You cannot use router.${c}() on the server because it is a stateless environment`;
239
+ return {
240
+ get basename() {
241
+ return e.basename;
242
+ },
243
+ get future() {
244
+ var c, u;
245
+ return {
246
+ v7_fetcherPersist: !1,
247
+ v7_normalizeFormMethod: !1,
248
+ v7_partialHydration: ((c = r.future) == null ? void 0 : c.v7_partialHydration) === !0,
249
+ v7_prependBasename: !1,
250
+ v7_relativeSplatPath: ((u = r.future) == null ? void 0 : u.v7_relativeSplatPath) === !0,
251
+ unstable_skipActionErrorRevalidation: !1
252
+ };
253
+ },
254
+ get state() {
255
+ return {
256
+ historyAction: E.Action.Pop,
257
+ location: e.location,
258
+ matches: o,
259
+ loaderData: e.loaderData,
260
+ actionData: e.actionData,
261
+ errors: e.errors,
262
+ initialized: !0,
263
+ navigation: E.IDLE_NAVIGATION,
264
+ restoreScrollPosition: null,
265
+ preventScrollReset: !1,
266
+ revalidation: "idle",
267
+ fetchers: /* @__PURE__ */ new Map(),
268
+ blockers: /* @__PURE__ */ new Map()
269
+ };
270
+ },
271
+ get routes() {
272
+ return s;
273
+ },
274
+ get window() {
275
+ },
276
+ initialize() {
277
+ throw i("initialize");
278
+ },
279
+ subscribe() {
280
+ throw i("subscribe");
281
+ },
282
+ enableScrollRestoration() {
283
+ throw i("enableScrollRestoration");
284
+ },
285
+ navigate() {
286
+ throw i("navigate");
287
+ },
288
+ fetch() {
289
+ throw i("fetch");
290
+ },
291
+ revalidate() {
292
+ throw i("revalidate");
293
+ },
294
+ createHref: Fe,
295
+ encodeLocation: Qe,
296
+ getFetcher() {
297
+ return E.IDLE_FETCHER;
298
+ },
299
+ deleteFetcher() {
300
+ throw i("deleteFetcher");
301
+ },
302
+ dispose() {
303
+ throw i("dispose");
304
+ },
305
+ getBlocker() {
306
+ return E.IDLE_BLOCKER;
307
+ },
308
+ deleteBlocker() {
309
+ throw i("deleteBlocker");
310
+ },
311
+ patchRoutes() {
312
+ throw i("patchRoutes");
313
+ },
314
+ _internalFetchControllers: /* @__PURE__ */ new Map(),
315
+ _internalActiveDeferreds: /* @__PURE__ */ new Map(),
316
+ _internalSetRoutes() {
317
+ throw i("_internalSetRoutes");
318
+ }
319
+ };
320
+ }
321
+ function Fe(t) {
322
+ return typeof t == "string" ? t : j.createPath(t);
323
+ }
324
+ function Qe(t) {
325
+ let e = typeof t == "string" ? t : j.createPath(t);
326
+ e = e.replace(/ $/, "%20");
327
+ let r = Jt.test(e) ? new URL(e) : new URL(e, "http://localhost");
328
+ return {
329
+ pathname: r.pathname,
330
+ search: r.search,
331
+ hash: r.hash
332
+ };
333
+ }
334
+ const Jt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Xt = {
335
+ "&": "\\u0026",
336
+ ">": "\\u003e",
337
+ "<": "\\u003c",
338
+ "\u2028": "\\u2028",
339
+ "\u2029": "\\u2029"
340
+ }, Wt = /[&><\u2028\u2029]/g;
341
+ function Gt(t) {
342
+ return t.replace(Wt, (e) => Xt[e]);
343
+ }
344
+ q.StaticRouter = zt;
345
+ var Zt = q.StaticRouterProvider = Ut;
346
+ q.createStaticHandler = Vt;
347
+ q.createStaticRouter = Yt;
348
+ const er = ({
349
+ router: t
350
+ }) => /* @__PURE__ */ n.jsx(Se, { children: /* @__PURE__ */ n.jsx(Pe, { children: /* @__PURE__ */ n.jsx(Je, { router: t }) }) }), tr = ({
351
+ router: t,
352
+ context: e,
353
+ helmetContext: r
354
+ }) => /* @__PURE__ */ n.jsx(Se, { children: /* @__PURE__ */ n.jsx(Pe, { context: r, children: /* @__PURE__ */ n.jsx(Zt, { router: t, context: e }) }) });
355
+ var w, be, rr = (be = class extends Oe {
22
356
  constructor(e = {}) {
23
357
  super();
24
- m(this, x);
25
- this.config = e, u(this, x, /* @__PURE__ */ new Map());
358
+ y(this, w);
359
+ this.config = e, d(this, w, /* @__PURE__ */ new Map());
26
360
  }
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 Te({
361
+ build(e, r, a) {
362
+ const s = r.queryKey, o = r.queryHash ?? Ae(s, r);
363
+ let i = this.get(o);
364
+ return i || (i = new bt({
31
365
  cache: this,
32
- queryKey: r,
366
+ queryKey: s,
33
367
  queryHash: o,
34
- options: e.defaultQueryOptions(s),
368
+ options: e.defaultQueryOptions(r),
35
369
  state: a,
36
- defaultOptions: e.getQueryDefaults(r)
37
- }), this.add(l)), l;
370
+ defaultOptions: e.getQueryDefaults(s)
371
+ }), this.add(i)), i;
38
372
  }
39
373
  add(e) {
40
- i(this, x).has(e.queryHash) || (i(this, x).set(e.queryHash, e), this.notify({
374
+ l(this, w).has(e.queryHash) || (l(this, w).set(e.queryHash, e), this.notify({
41
375
  type: "added",
42
376
  query: e
43
377
  }));
44
378
  }
45
379
  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 }));
380
+ const r = l(this, w).get(e.queryHash);
381
+ r && (e.destroy(), r === e && l(this, w).delete(e.queryHash), this.notify({ type: "removed", query: e }));
48
382
  }
49
383
  clear() {
50
- p.batch(() => {
384
+ g.batch(() => {
51
385
  this.getAll().forEach((e) => {
52
386
  this.remove(e);
53
387
  });
54
388
  });
55
389
  }
56
390
  get(e) {
57
- return i(this, x).get(e);
391
+ return l(this, w).get(e);
58
392
  }
59
393
  getAll() {
60
- return [...i(this, x).values()];
394
+ return [...l(this, w).values()];
61
395
  }
62
396
  find(e) {
63
- const s = { exact: !0, ...e };
397
+ const r = { exact: !0, ...e };
64
398
  return this.getAll().find(
65
- (a) => ne(s, a)
399
+ (a) => de(r, a)
66
400
  );
67
401
  }
68
402
  findAll(e = {}) {
69
- const s = this.getAll();
70
- return Object.keys(e).length > 0 ? s.filter((a) => ne(e, a)) : s;
403
+ const r = this.getAll();
404
+ return Object.keys(e).length > 0 ? r.filter((a) => de(e, a)) : r;
71
405
  }
72
406
  notify(e) {
73
- p.batch(() => {
74
- this.listeners.forEach((s) => {
75
- s(e);
407
+ g.batch(() => {
408
+ this.listeners.forEach((r) => {
409
+ r(e);
76
410
  });
77
411
  });
78
412
  }
79
413
  onFocus() {
80
- p.batch(() => {
414
+ g.batch(() => {
81
415
  this.getAll().forEach((e) => {
82
416
  e.onFocus();
83
417
  });
84
418
  });
85
419
  }
86
420
  onOnline() {
87
- p.batch(() => {
421
+ g.batch(() => {
88
422
  this.getAll().forEach((e) => {
89
423
  e.onOnline();
90
424
  });
91
425
  });
92
426
  }
93
- }, x = new WeakMap(), de), f, S, fe, ft = (fe = class extends me {
427
+ }, w = new WeakMap(), be), m, Q, xe, ar = (xe = class extends Oe {
94
428
  constructor(e = {}) {
95
429
  super();
96
- m(this, f);
97
- m(this, S);
98
- this.config = e, u(this, f, /* @__PURE__ */ new Map()), u(this, S, Date.now());
430
+ y(this, m);
431
+ y(this, Q);
432
+ this.config = e, d(this, m, /* @__PURE__ */ new Map()), d(this, Q, Date.now());
99
433
  }
100
- build(e, s, a) {
101
- const r = new Ie({
434
+ build(e, r, a) {
435
+ const s = new kt({
102
436
  mutationCache: this,
103
- mutationId: ++F(this, S)._,
104
- options: e.defaultMutationOptions(s),
437
+ mutationId: ++L(this, Q)._,
438
+ options: e.defaultMutationOptions(r),
105
439
  state: a
106
440
  });
107
- return this.add(r), r;
441
+ return this.add(s), s;
108
442
  }
109
443
  add(e) {
110
- const s = R(e), a = i(this, f).get(s) ?? [];
111
- a.push(e), i(this, f).set(s, a), this.notify({ type: "added", mutation: e });
444
+ const r = B(e), a = l(this, m).get(r) ?? [];
445
+ a.push(e), l(this, m).set(r, a), this.notify({ type: "added", mutation: e });
112
446
  }
113
447
  remove(e) {
114
448
  var a;
115
- const s = R(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));
449
+ const r = B(e);
450
+ if (l(this, m).has(r)) {
451
+ const s = (a = l(this, m).get(r)) == null ? void 0 : a.filter((o) => o !== e);
452
+ s && (s.length === 0 ? l(this, m).delete(r) : l(this, m).set(r, s));
119
453
  }
120
454
  this.notify({ type: "removed", mutation: e });
121
455
  }
122
456
  canRun(e) {
123
457
  var a;
124
- const s = (a = i(this, f).get(R(e))) == null ? void 0 : a.find((r) => r.state.status === "pending");
125
- return !s || s === e;
458
+ const r = (a = l(this, m).get(B(e))) == null ? void 0 : a.find((s) => s.state.status === "pending");
459
+ return !r || r === e;
126
460
  }
127
461
  runNext(e) {
128
462
  var a;
129
- const s = (a = i(this, f).get(R(e))) == null ? void 0 : a.find((r) => r !== e && r.state.isPaused);
130
- return (s == null ? void 0 : s.continue()) ?? Promise.resolve();
463
+ const r = (a = l(this, m).get(B(e))) == null ? void 0 : a.find((s) => s !== e && s.state.isPaused);
464
+ return (r == null ? void 0 : r.continue()) ?? Promise.resolve();
131
465
  }
132
466
  clear() {
133
- p.batch(() => {
467
+ g.batch(() => {
134
468
  this.getAll().forEach((e) => {
135
469
  this.remove(e);
136
470
  });
137
471
  });
138
472
  }
139
473
  getAll() {
140
- return [...i(this, f).values()].flat();
474
+ return [...l(this, m).values()].flat();
141
475
  }
142
476
  find(e) {
143
- const s = { exact: !0, ...e };
477
+ const r = { exact: !0, ...e };
144
478
  return this.getAll().find(
145
- (a) => re(s, a)
479
+ (a) => fe(r, a)
146
480
  );
147
481
  }
148
482
  findAll(e = {}) {
149
- return this.getAll().filter((s) => re(e, s));
483
+ return this.getAll().filter((r) => fe(e, r));
150
484
  }
151
485
  notify(e) {
152
- p.batch(() => {
153
- this.listeners.forEach((s) => {
154
- s(e);
486
+ g.batch(() => {
487
+ this.listeners.forEach((r) => {
488
+ r(e);
155
489
  });
156
490
  });
157
491
  }
158
492
  resumePausedMutations() {
159
- const e = this.getAll().filter((s) => s.state.isPaused);
160
- return p.batch(
493
+ const e = this.getAll().filter((r) => r.state.isPaused);
494
+ return g.batch(
161
495
  () => Promise.all(
162
- e.map((s) => s.continue().catch(j))
496
+ e.map((r) => r.continue().catch(P))
163
497
  )
164
498
  );
165
499
  }
166
- }, f = new WeakMap(), S = new WeakMap(), fe);
167
- function R(t) {
500
+ }, m = new WeakMap(), Q = new WeakMap(), xe);
501
+ function B(t) {
168
502
  var e;
169
503
  return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
170
504
  }
171
- function pt(t) {
505
+ function sr(t) {
172
506
  return {
173
- onFetch: (e, s) => {
507
+ onFetch: (e, r) => {
174
508
  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", {
509
+ var re, ae, se, ne, ie;
510
+ const s = e.options, o = (se = (ae = (re = e.fetchOptions) == null ? void 0 : re.meta) == null ? void 0 : ae.fetchMore) == null ? void 0 : se.direction, i = ((ne = e.state.data) == null ? void 0 : ne.pages) || [], c = ((ie = e.state.data) == null ? void 0 : ie.pageParams) || [], u = { pages: [], pageParams: [] };
511
+ let f = !1;
512
+ const p = (b) => {
513
+ Object.defineProperty(b, "signal", {
180
514
  enumerable: !0,
181
- get: () => (e.signal.aborted ? b = !0 : e.signal.addEventListener("abort", () => {
182
- b = !0;
515
+ get: () => (e.signal.aborted ? f = !0 : e.signal.addEventListener("abort", () => {
516
+ f = !0;
183
517
  }), e.signal)
184
518
  });
185
- }, Qe = Fe(e.options, e.fetchOptions), B = async (v, w, O) => {
186
- if (b)
519
+ }, Ue = xt(e.options, e.fetchOptions), $ = async (b, S, A) => {
520
+ if (f)
187
521
  return Promise.reject();
188
- if (w == null && v.pages.length)
189
- return Promise.resolve(v);
190
- const I = {
522
+ if (S == null && b.pages.length)
523
+ return Promise.resolve(b);
524
+ const H = {
191
525
  queryKey: e.queryKey,
192
- pageParam: w,
193
- direction: O ? "backward" : "forward",
526
+ pageParam: S,
527
+ direction: A ? "backward" : "forward",
194
528
  meta: e.options.meta
195
529
  };
196
- d(I);
197
- const qe = await Qe(
198
- I
199
- ), { maxPages: ee } = e.options, te = O ? Re : He;
530
+ p(H);
531
+ const Ke = await Ue(
532
+ H
533
+ ), { maxPages: oe } = e.options, le = A ? wt : Et;
200
534
  return {
201
- pages: te(v.pages, qe, ee),
202
- pageParams: te(v.pageParams, w, ee)
535
+ pages: le(b.pages, Ke, oe),
536
+ pageParams: le(b.pageParams, S, oe)
203
537
  };
204
538
  };
205
- let A;
206
- if (o && l.length) {
207
- const v = o === "backward", w = v ? mt : he, O = {
208
- pages: l,
209
- pageParams: h
210
- }, I = w(r, O);
211
- A = await B(O, I, v);
539
+ let R;
540
+ if (o && i.length) {
541
+ const b = o === "backward", S = b ? nr : ye, A = {
542
+ pages: i,
543
+ pageParams: c
544
+ }, H = S(s, A);
545
+ R = await $(A, H, b);
212
546
  } else {
213
- A = await B(
214
- g,
215
- h[0] ?? r.initialPageParam
547
+ R = await $(
548
+ u,
549
+ c[0] ?? s.initialPageParam
216
550
  );
217
- const v = t ?? l.length;
218
- for (let w = 1; w < v; w++) {
219
- const O = he(r, A);
220
- A = await B(A, O);
551
+ const b = t ?? i.length;
552
+ for (let S = 1; S < b; S++) {
553
+ const A = ye(s, R);
554
+ R = await $(R, A);
221
555
  }
222
556
  }
223
- return A;
557
+ return R;
224
558
  };
225
559
  e.options.persister ? e.fetchFn = () => {
226
- var r, o;
227
- return (o = (r = e.options).persister) == null ? void 0 : o.call(
228
- r,
560
+ var s, o;
561
+ return (o = (s = e.options).persister) == null ? void 0 : o.call(
562
+ s,
229
563
  a,
230
564
  {
231
565
  queryKey: e.queryKey,
232
566
  meta: e.options.meta,
233
567
  signal: e.signal
234
568
  },
235
- s
569
+ r
236
570
  );
237
571
  } : e.fetchFn = a;
238
572
  }
239
573
  };
240
574
  }
241
- function he(t, { pages: e, pageParams: s }) {
575
+ function ye(t, { pages: e, pageParams: r }) {
242
576
  const a = e.length - 1;
243
577
  return t.getNextPageParam(
244
578
  e[a],
245
579
  e,
246
- s[a],
247
- s
580
+ r[a],
581
+ r
248
582
  );
249
583
  }
250
- function mt(t, { pages: e, pageParams: s }) {
584
+ function nr(t, { pages: e, pageParams: r }) {
251
585
  var a;
252
586
  return (a = t.getPreviousPageParam) == null ? void 0 : a.call(
253
587
  t,
254
588
  e[0],
255
589
  e,
256
- s[0],
257
- s
590
+ r[0],
591
+ r
258
592
  );
259
593
  }
260
- var c, P, N, C, M, k, Q, q, pe, gt = (pe = class {
594
+ var h, N, C, k, M, O, D, _, we, ir = (we = class {
261
595
  constructor(t = {}) {
262
- m(this, c);
263
- m(this, P);
264
- m(this, N);
265
- m(this, C);
266
- m(this, M);
267
- m(this, k);
268
- m(this, Q);
269
- m(this, q);
270
- u(this, c, t.queryCache || new dt()), u(this, P, t.mutationCache || new ft()), u(this, N, t.defaultOptions || {}), u(this, C, /* @__PURE__ */ new Map()), u(this, M, /* @__PURE__ */ new Map()), u(this, k, 0);
596
+ y(this, h);
597
+ y(this, N);
598
+ y(this, C);
599
+ y(this, k);
600
+ y(this, M);
601
+ y(this, O);
602
+ y(this, D);
603
+ y(this, _);
604
+ d(this, h, t.queryCache || new rr()), d(this, N, t.mutationCache || new ar()), d(this, C, t.defaultOptions || {}), d(this, k, /* @__PURE__ */ new Map()), d(this, M, /* @__PURE__ */ new Map()), d(this, O, 0);
271
605
  }
272
606
  mount() {
273
- F(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());
607
+ L(this, O)._++, l(this, O) === 1 && (d(this, D, Pt.subscribe(async (t) => {
608
+ t && (await this.resumePausedMutations(), l(this, h).onFocus());
609
+ })), d(this, _, pe.subscribe(async (t) => {
610
+ t && (await this.resumePausedMutations(), l(this, h).onOnline());
277
611
  })));
278
612
  }
279
613
  unmount() {
280
614
  var t, e;
281
- F(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));
615
+ L(this, O)._--, l(this, O) === 0 && ((t = l(this, D)) == null || t.call(this), d(this, D, void 0), (e = l(this, _)) == null || e.call(this), d(this, _, void 0));
282
616
  }
283
617
  isFetching(t) {
284
- return i(this, c).findAll({ ...t, fetchStatus: "fetching" }).length;
618
+ return l(this, h).findAll({ ...t, fetchStatus: "fetching" }).length;
285
619
  }
286
620
  isMutating(t) {
287
- return i(this, P).findAll({ ...t, status: "pending" }).length;
621
+ return l(this, N).findAll({ ...t, status: "pending" }).length;
288
622
  }
289
623
  getQueryData(t) {
290
- var s;
624
+ var r;
291
625
  const e = this.defaultQueryOptions({ queryKey: t });
292
- return (s = i(this, c).get(e.queryHash)) == null ? void 0 : s.state.data;
626
+ return (r = l(this, h).get(e.queryHash)) == null ? void 0 : r.state.data;
293
627
  }
294
628
  ensureQueryData(t) {
295
629
  const e = this.getQueryData(t.queryKey);
296
630
  if (e === void 0)
297
631
  return this.fetchQuery(t);
298
632
  {
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);
633
+ const r = this.defaultQueryOptions(t), a = l(this, h).build(this, r);
634
+ return t.revalidateIfStale && a.isStaleByTime(me(r.staleTime, a)) && this.prefetchQuery(r), Promise.resolve(e);
301
635
  }
302
636
  }
303
637
  getQueriesData(t) {
304
- return i(this, c).findAll(t).map(({ queryKey: e, state: s }) => {
305
- const a = s.data;
638
+ return l(this, h).findAll(t).map(({ queryKey: e, state: r }) => {
639
+ const a = r.data;
306
640
  return [e, a];
307
641
  });
308
642
  }
309
- setQueryData(t, e, s) {
310
- const a = this.defaultQueryOptions({ queryKey: t }), r = i(this, c).get(
643
+ setQueryData(t, e, r) {
644
+ const a = this.defaultQueryOptions({ queryKey: t }), s = l(this, h).get(
311
645
  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 });
646
+ ), o = s == null ? void 0 : s.state.data, i = jt(e, o);
647
+ if (i !== void 0)
648
+ return l(this, h).build(this, a).setData(i, { ...r, manual: !0 });
315
649
  }
316
- setQueriesData(t, e, s) {
317
- return p.batch(
318
- () => i(this, c).findAll(t).map(({ queryKey: a }) => [
650
+ setQueriesData(t, e, r) {
651
+ return g.batch(
652
+ () => l(this, h).findAll(t).map(({ queryKey: a }) => [
319
653
  a,
320
- this.setQueryData(a, e, s)
654
+ this.setQueryData(a, e, r)
321
655
  ])
322
656
  );
323
657
  }
324
658
  getQueryState(t) {
325
- var s;
659
+ var r;
326
660
  const e = this.defaultQueryOptions({ queryKey: t });
327
- return (s = i(this, c).get(e.queryHash)) == null ? void 0 : s.state;
661
+ return (r = l(this, h).get(e.queryHash)) == null ? void 0 : r.state;
328
662
  }
329
663
  removeQueries(t) {
330
- const e = i(this, c);
331
- p.batch(() => {
332
- e.findAll(t).forEach((s) => {
333
- e.remove(s);
664
+ const e = l(this, h);
665
+ g.batch(() => {
666
+ e.findAll(t).forEach((r) => {
667
+ e.remove(r);
334
668
  });
335
669
  });
336
670
  }
337
671
  resetQueries(t, e) {
338
- const s = i(this, c), a = {
672
+ const r = l(this, h), a = {
339
673
  type: "active",
340
674
  ...t
341
675
  };
342
- return p.batch(() => (s.findAll(t).forEach((r) => {
343
- r.reset();
676
+ return g.batch(() => (r.findAll(t).forEach((s) => {
677
+ s.reset();
344
678
  }), this.refetchQueries(a, e)));
345
679
  }
346
680
  cancelQueries(t = {}, e = {}) {
347
- const s = { revert: !0, ...e }, a = p.batch(
348
- () => i(this, c).findAll(t).map((r) => r.cancel(s))
681
+ const r = { revert: !0, ...e }, a = g.batch(
682
+ () => l(this, h).findAll(t).map((s) => s.cancel(r))
349
683
  );
350
- return Promise.all(a).then(j).catch(j);
684
+ return Promise.all(a).then(P).catch(P);
351
685
  }
352
686
  invalidateQueries(t = {}, e = {}) {
353
- return p.batch(() => {
354
- if (i(this, c).findAll(t).forEach((a) => {
687
+ return g.batch(() => {
688
+ if (l(this, h).findAll(t).forEach((a) => {
355
689
  a.invalidate();
356
690
  }), t.refetchType === "none")
357
691
  return Promise.resolve();
358
- const s = {
692
+ const r = {
359
693
  ...t,
360
694
  type: t.refetchType ?? t.type ?? "active"
361
695
  };
362
- return this.refetchQueries(s, e);
696
+ return this.refetchQueries(r, e);
363
697
  });
364
698
  }
365
699
  refetchQueries(t = {}, e) {
366
- const s = {
700
+ const r = {
367
701
  ...e,
368
702
  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;
703
+ }, a = g.batch(
704
+ () => l(this, h).findAll(t).filter((s) => !s.isDisabled()).map((s) => {
705
+ let o = s.fetch(void 0, r);
706
+ return r.throwOnError || (o = o.catch(P)), s.state.fetchStatus === "paused" ? Promise.resolve() : o;
373
707
  })
374
708
  );
375
- return Promise.all(a).then(j);
709
+ return Promise.all(a).then(P);
376
710
  }
377
711
  fetchQuery(t) {
378
712
  const e = this.defaultQueryOptions(t);
379
713
  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);
714
+ const r = l(this, h).build(this, e);
715
+ return r.isStaleByTime(
716
+ me(e.staleTime, r)
717
+ ) ? r.fetch(e) : Promise.resolve(r.state.data);
384
718
  }
385
719
  prefetchQuery(t) {
386
- return this.fetchQuery(t).then(j).catch(j);
720
+ return this.fetchQuery(t).then(P).catch(P);
387
721
  }
388
722
  fetchInfiniteQuery(t) {
389
- return t.behavior = pt(t.pages), this.fetchQuery(t);
723
+ return t.behavior = sr(t.pages), this.fetchQuery(t);
390
724
  }
391
725
  prefetchInfiniteQuery(t) {
392
- return this.fetchInfiniteQuery(t).then(j).catch(j);
726
+ return this.fetchInfiniteQuery(t).then(P).catch(P);
393
727
  }
394
728
  resumePausedMutations() {
395
- return ie.isOnline() ? i(this, P).resumePausedMutations() : Promise.resolve();
729
+ return pe.isOnline() ? l(this, N).resumePausedMutations() : Promise.resolve();
396
730
  }
397
731
  getQueryCache() {
398
- return i(this, c);
732
+ return l(this, h);
399
733
  }
400
734
  getMutationCache() {
401
- return i(this, P);
735
+ return l(this, N);
402
736
  }
403
737
  getDefaultOptions() {
404
- return i(this, N);
738
+ return l(this, C);
405
739
  }
406
740
  setDefaultOptions(t) {
407
- u(this, N, t);
741
+ d(this, C, t);
408
742
  }
409
743
  setQueryDefaults(t, e) {
410
- i(this, C).set(le(t), {
744
+ l(this, k).set(ge(t), {
411
745
  queryKey: t,
412
746
  defaultOptions: e
413
747
  });
414
748
  }
415
749
  getQueryDefaults(t) {
416
- const e = [...i(this, C).values()];
417
- let s = {};
750
+ const e = [...l(this, k).values()];
751
+ let r = {};
418
752
  return e.forEach((a) => {
419
- ce(t, a.queryKey) && (s = { ...s, ...a.defaultOptions });
420
- }), s;
753
+ ve(t, a.queryKey) && (r = { ...r, ...a.defaultOptions });
754
+ }), r;
421
755
  }
422
756
  setMutationDefaults(t, e) {
423
- i(this, M).set(le(t), {
757
+ l(this, M).set(ge(t), {
424
758
  mutationKey: t,
425
759
  defaultOptions: e
426
760
  });
427
761
  }
428
762
  getMutationDefaults(t) {
429
- const e = [...i(this, M).values()];
430
- let s = {};
763
+ const e = [...l(this, M).values()];
764
+ let r = {};
431
765
  return e.forEach((a) => {
432
- ce(t, a.mutationKey) && (s = { ...s, ...a.defaultOptions });
433
- }), s;
766
+ ve(t, a.mutationKey) && (r = { ...r, ...a.defaultOptions });
767
+ }), r;
434
768
  }
435
769
  defaultQueryOptions(t) {
436
770
  if (t._defaulted)
437
771
  return t;
438
772
  const e = {
439
- ...i(this, N).queries,
773
+ ...l(this, C).queries,
440
774
  ...this.getQueryDefaults(t.queryKey),
441
775
  ...t,
442
776
  _defaulted: !0
443
777
  };
444
- return e.queryHash || (e.queryHash = ge(
778
+ return e.queryHash || (e.queryHash = Ae(
445
779
  e.queryKey,
446
780
  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;
781
+ )), 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 === St && (e.enabled = !1), e;
448
782
  }
449
783
  defaultMutationOptions(t) {
450
784
  return t != null && t._defaulted ? t : {
451
- ...i(this, N).mutations,
785
+ ...l(this, C).mutations,
452
786
  ...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
453
787
  ...t,
454
788
  _defaulted: !0
455
789
  };
456
790
  }
457
791
  clear() {
458
- i(this, c).clear(), i(this, P).clear();
792
+ l(this, h).clear(), l(this, N).clear();
459
793
  }
460
- }, c = new WeakMap(), P = new WeakMap(), N = new WeakMap(), C = new WeakMap(), M = new WeakMap(), k = new WeakMap(), Q = new WeakMap(), q = new WeakMap(), pe);
461
- const Pe = (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 = ht(() => ({}));
462
- class bt {
794
+ }, h = new WeakMap(), N = new WeakMap(), C = new WeakMap(), k = new WeakMap(), M = new WeakMap(), O = new WeakMap(), D = new WeakMap(), _ = new WeakMap(), we);
795
+ const or = Ne(null), Y = {
796
+ didCatch: !1,
797
+ error: null
798
+ };
799
+ class lr extends dt {
463
800
  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
- var e;
472
- this.plugins.filter(vt).forEach((s) => s.initialize(this)), (e = this.authentication) == null || e.initialize(this);
801
+ super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Y;
802
+ }
803
+ static getDerivedStateFromError(e) {
804
+ return {
805
+ didCatch: !0,
806
+ error: e
807
+ };
808
+ }
809
+ resetErrorBoundary() {
810
+ const {
811
+ error: e
812
+ } = this.state;
813
+ if (e !== null) {
814
+ for (var r, a, s = arguments.length, o = new Array(s), i = 0; i < s; i++)
815
+ o[i] = arguments[i];
816
+ (r = (a = this.props).onReset) === null || r === void 0 || r.call(a, {
817
+ args: o,
818
+ reason: "imperative-api"
819
+ }), this.setState(Y);
820
+ }
821
+ }
822
+ componentDidCatch(e, r) {
823
+ var a, s;
824
+ (a = (s = this.props).onError) === null || a === void 0 || a.call(s, e, r);
825
+ }
826
+ componentDidUpdate(e, r) {
827
+ const {
828
+ didCatch: a
829
+ } = this.state, {
830
+ resetKeys: s
831
+ } = this.props;
832
+ if (a && r.error !== null && cr(e.resetKeys, s)) {
833
+ var o, i;
834
+ (o = (i = this.props).onReset) === null || o === void 0 || o.call(i, {
835
+ next: s,
836
+ prev: e.resetKeys,
837
+ reason: "keys"
838
+ }), this.setState(Y);
839
+ }
840
+ }
841
+ render() {
842
+ const {
843
+ children: e,
844
+ fallbackRender: r,
845
+ FallbackComponent: a,
846
+ fallback: s
847
+ } = this.props, {
848
+ didCatch: o,
849
+ error: i
850
+ } = this.state;
851
+ let c = e;
852
+ if (o) {
853
+ const u = {
854
+ error: i,
855
+ resetErrorBoundary: this.resetErrorBoundary
856
+ };
857
+ if (typeof r == "function")
858
+ c = r(u);
859
+ else if (a)
860
+ c = he(a, u);
861
+ else if (s === null || ft(s))
862
+ c = s;
863
+ else
864
+ throw i;
865
+ }
866
+ return he(or.Provider, {
867
+ value: {
868
+ didCatch: o,
869
+ error: i,
870
+ resetErrorBoundary: this.resetErrorBoundary
871
+ }
872
+ }, c);
873
+ }
874
+ }
875
+ function cr() {
876
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
877
+ return t.length !== e.length || t.some((r, a) => !Object.is(r, e[a]));
878
+ }
879
+ const ur = (t) => "getRoutes" in t && typeof t.getRoutes == "function", hr = (t) => "initialize" in t && typeof t.initialize == "function", dr = (t) => "getHead" in t && typeof t.getHead == "function", fr = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Ie = new ir(), pr = Rt(() => ({}));
880
+ class mr {
881
+ constructor(e) {
882
+ v(this, "plugins", []);
883
+ v(this, "navigationPlugins");
884
+ v(this, "navigation");
885
+ v(this, "meta");
886
+ v(this, "page");
887
+ v(this, "authentication");
888
+ v(this, "state");
889
+ v(this, "initialize", async () => {
890
+ await Promise.all([
891
+ this.plugins.filter(hr).map((e) => {
892
+ var r;
893
+ return (r = e.initialize) == null ? void 0 : r.call(e, this);
894
+ })
895
+ ]);
473
896
  });
474
- y(this, "invalidateCache", async (e) => {
475
- await Ne.invalidateQueries({ queryKey: e });
897
+ v(this, "invalidateCache", async (e) => {
898
+ await Ie.invalidateQueries({ queryKey: e });
476
899
  });
477
- y(this, "getApiIdentities", async () => (await Promise.all(
478
- this.plugins.filter(yt).map((s) => s.getIdentities(this))
900
+ v(this, "getApiIdentities", async () => (await Promise.all(
901
+ this.plugins.filter(fr).map((r) => r.getIdentities(this))
479
902
  )).flat());
480
- y(this, "getNavigation", async (e) => (await Promise.all(
903
+ v(this, "getNavigation", async (e) => (await Promise.all(
481
904
  this.navigationPlugins.map(
482
905
  async (a) => {
483
- var r;
484
- return (r = a.getNavigation) == null ? void 0 : r.call(a, e);
906
+ var s;
907
+ return (s = a.getNavigation) == null ? void 0 : s.call(a, e);
485
908
  }
486
909
  )
487
910
  )).flatMap((a) => a ?? []));
488
- this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(Pe), this.authentication = e.authentication, this.meta = e.meta, this.state = xt;
911
+ this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(ur), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.state = pr;
489
912
  }
490
913
  async signRequest(e) {
491
914
  if (!this.authentication)
492
915
  throw new Error("No authentication provider configured");
493
- const s = await this.authentication.getAccessToken();
494
- return e.headers.set("Authorization", `Bearer ${s}`), e;
916
+ const r = await this.authentication.getAccessToken();
917
+ return e.headers.set("Authorization", `Bearer ${r}`), e;
495
918
  }
496
919
  }
497
- /**
498
- * @license lucide-react v0.378.0 - ISC
499
- *
500
- * This source code is licensed under the ISC license.
501
- * See the LICENSE file in the root directory of this source tree.
502
- */
503
- const ke = E("ChevronRight", [
504
- ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
505
- ]);
506
- /**
507
- * @license lucide-react v0.378.0 - ISC
508
- *
509
- * This source code is licensed under the ISC license.
510
- * See the LICENSE file in the root directory of this source tree.
511
- */
512
- const jt = E("ExternalLink", [
513
- ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
514
- ["path", { d: "M10 14 21 3", key: "gplh6r" }],
515
- ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
516
- ]);
517
- /**
518
- * @license lucide-react v0.378.0 - ISC
519
- *
520
- * This source code is licensed under the ISC license.
521
- * See the LICENSE file in the root directory of this source tree.
522
- */
523
- const wt = E("MoonStar", [
524
- ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
525
- ["path", { d: "M20 3v4", key: "1olli1" }],
526
- ["path", { d: "M22 5h-4", key: "1gvqau" }]
527
- ]);
528
- /**
529
- * @license lucide-react v0.378.0 - ISC
530
- *
531
- * This source code is licensed under the ISC license.
532
- * See the LICENSE file in the root directory of this source tree.
533
- */
534
- const Pt = E("Search", [
535
- ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
536
- ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
537
- ]);
538
- /**
539
- * @license lucide-react v0.378.0 - ISC
540
- *
541
- * This source code is licensed under the ISC license.
542
- * See the LICENSE file in the root directory of this source tree.
543
- */
544
- const Nt = E("Sun", [
545
- ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
546
- ["path", { d: "M12 2v2", key: "tus03m" }],
547
- ["path", { d: "M12 20v2", key: "1lh1kg" }],
548
- ["path", { d: "m4.93 4.93 1.41 1.41", key: "149t6j" }],
549
- ["path", { d: "m17.66 17.66 1.41 1.41", key: "ptbguv" }],
550
- ["path", { d: "M2 12h2", key: "1t8f8n" }],
551
- ["path", { d: "M20 12h2", key: "1q8mjw" }],
552
- ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
553
- ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
554
- ]), kt = () => {
555
- const { authentication: t } = K(), e = ut(), s = typeof t < "u";
556
- return {
557
- isAuthEnabled: s,
558
- profile: e.profile,
559
- isAuthenticated: e.profile,
560
- login: async () => {
561
- if (!s)
562
- throw new Error("Authentication is not enabled.");
563
- await t.login();
564
- },
565
- logout: async () => {
566
- if (!s)
567
- throw new Error("Authentication is not enabled.");
568
- await t.logout(), window.location.href = "/";
569
- }
570
- };
571
- }, Ot = () => {
572
- const { navigation: t } = K();
573
- 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(
574
- V,
920
+ function gr({ error: t, resetErrorBoundary: e }) {
921
+ return /* @__PURE__ */ n.jsx(Ee, { error: t });
922
+ }
923
+ const vr = () => {
924
+ const { navigation: t } = Z();
925
+ return t.length <= 1 ? null : /* @__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(
926
+ J,
575
927
  {
576
- className: ({ isActive: s }) => _e(
928
+ className: ({ isActive: r }) => Xe(
577
929
  "block py-3.5 font-medium -mb-px border-b-2",
578
- s ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
930
+ r ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
579
931
  ),
580
932
  to: e.path,
581
933
  children: e.label
582
934
  }
583
935
  ) }, e.label)) }) });
584
- }, Oe = je(function() {
585
- const [e, s] = Be(), { isAuthenticated: a, profile: r, isAuthEnabled: o, login: l, logout: h } = kt(), { meta: g } = K(), b = e ? wt : Nt;
936
+ }, qe = Ce(function() {
937
+ const [e, r] = We(), { isAuthenticated: a, profile: s, isAuthEnabled: o, login: i, logout: c } = st(), { page: u } = Z(), f = e ? Tt : Ft;
586
938
  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: [
587
939
  /* @__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: [
588
940
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3.5", children: [
589
- (g == null ? void 0 : g.logo) && /* @__PURE__ */ n.jsx("img", { src: g.logo, alt: "My Dev Portal", className: "h-10" }),
590
- /* @__PURE__ */ n.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: g == null ? void 0 : g.headerTitle })
941
+ (u == null ? void 0 : u.logo) && /* @__PURE__ */ n.jsx("img", { src: u.logo, alt: u.pageTitle, className: "h-10" }),
942
+ /* @__PURE__ */ n.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: u == null ? void 0 : u.pageTitle })
591
943
  ] }),
592
944
  /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
593
- /* @__PURE__ */ n.jsx("div", { className: "w-full max-w-prose", children: /* @__PURE__ */ n.jsxs("button", { className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-40 sm:w-72", children: [
594
- /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
595
- /* @__PURE__ */ n.jsx(Pt, { size: 14 }),
596
- "Search"
597
- ] }),
598
- /* @__PURE__ */ n.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border border-border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
599
- ] }) }),
945
+ /* @__PURE__ */ n.jsx("div", { className: "w-full max-w-prose" }),
600
946
  /* @__PURE__ */ n.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex", children: [
601
947
  o && /* @__PURE__ */ n.jsx(n.Fragment, { children: a ? /* @__PURE__ */ n.jsxs(
602
948
  "button",
603
949
  {
604
950
  className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded text-nowrap",
605
- onClick: h,
951
+ onClick: c,
606
952
  children: [
607
953
  "Logout ",
608
- r != null && r.email ? `(${r.email})` : null
954
+ s != null && s.email ? `(${s.email})` : null
609
955
  ]
610
956
  }
611
957
  ) : /* @__PURE__ */ n.jsx(
612
958
  "button",
613
959
  {
614
960
  className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded",
615
- onClick: l,
961
+ onClick: i,
616
962
  children: "Login"
617
963
  }
618
964
  ) }),
@@ -620,49 +966,74 @@ const Nt = E("Sun", [
620
966
  "button",
621
967
  {
622
968
  className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
623
- onClick: s,
624
- children: /* @__PURE__ */ n.jsx(b, { size: 18 })
969
+ onClick: r,
970
+ children: /* @__PURE__ */ n.jsx(f, { size: 18 })
625
971
  }
626
972
  )
627
973
  ] })
628
974
  ] })
629
975
  ] }),
630
- /* @__PURE__ */ n.jsx(Ot, {})
976
+ /* @__PURE__ */ n.jsx(vr, {})
631
977
  ] }) });
632
- }), Ae = {
633
- Header: Oe
634
- }, At = ot(Ae), Ct = At.Provider, Mt = () => {
635
- const t = D(), { setActiveAnchor: e } = W();
636
- T(() => {
978
+ }), He = {
979
+ Header: qe
980
+ }, yr = Ne(He), br = yr.Provider, xr = ({
981
+ children: t,
982
+ ...e
983
+ }) => {
984
+ var i;
985
+ const r = V(
986
+ () => ({ ...He, ...e.overrides }),
987
+ [e.overrides]
988
+ ), a = V(
989
+ () => ({ ...Ge, ...e.mdxComponents }),
990
+ [e.mdxComponents]
991
+ ), s = V(() => new mr(e), [e]);
992
+ I(() => {
993
+ s.initialize();
994
+ }, [s]);
995
+ const o = (i = e.plugins) == null ? void 0 : i.filter(dr).map((c, u) => {
996
+ var f;
997
+ return /* @__PURE__ */ n.jsx(pt, { children: (f = c.getHead) == null ? void 0 : f.call(c) }, u);
998
+ });
999
+ return /* @__PURE__ */ n.jsxs(Nt, { client: Ie, children: [
1000
+ /* @__PURE__ */ n.jsx(je, { children: o }),
1001
+ /* @__PURE__ */ n.jsx(Ct, { value: s, children: /* @__PURE__ */ n.jsx(lt, { components: a, children: /* @__PURE__ */ n.jsx(Ze, { children: /* @__PURE__ */ n.jsx(br, { value: r, children: /* @__PURE__ */ n.jsx(et, { children: t }) }) }) }) })
1002
+ ] });
1003
+ }, wr = Ce(xr), Le = (t) => /* @__PURE__ */ n.jsx(lr, { FallbackComponent: gr, children: /* @__PURE__ */ n.jsx(wr, { ...t }) });
1004
+ Le.displayName = "DevPortal";
1005
+ const Er = () => {
1006
+ const t = T(), { setActiveAnchor: e } = W();
1007
+ I(() => {
637
1008
  if (!t.hash) return;
638
- const s = t.hash.split("/")[0].slice(1), a = document.getElementById(decodeURIComponent(s));
1009
+ const r = t.hash.split("/")[0].slice(1), a = document.getElementById(decodeURIComponent(r));
639
1010
  if (a) {
640
1011
  requestAnimationFrame(() => {
641
- a.scrollIntoView(), requestIdleCallback(() => e(s));
1012
+ a.scrollIntoView(), requestIdleCallback(() => e(r));
642
1013
  });
643
1014
  return;
644
1015
  }
645
- const r = new MutationObserver((o, l) => {
646
- const h = document.getElementById(decodeURIComponent(s));
647
- h && (h.scrollIntoView(), requestIdleCallback(() => e(s)), l.disconnect());
1016
+ const s = new MutationObserver((o, i) => {
1017
+ const c = document.getElementById(decodeURIComponent(r));
1018
+ c && (c.scrollIntoView(), requestIdleCallback(() => e(r)), i.disconnect());
648
1019
  });
649
- return r.observe(document.body, { childList: !0, subtree: !0 }), () => r.disconnect();
1020
+ return s.observe(document.body, { childList: !0, subtree: !0 }), () => s.disconnect();
650
1021
  }, [t.hash, e]);
651
- }, Qt = () => {
652
- const t = D(), e = _(t.pathname);
653
- T(() => {
1022
+ }, Pr = () => {
1023
+ const t = T(), e = K(t.pathname);
1024
+ I(() => {
654
1025
  e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
655
1026
  }, [t.pathname]);
656
- }, Ce = ({
1027
+ }, Be = ({
657
1028
  item: t,
658
1029
  defaultOpen: e,
659
- path: s
1030
+ path: r
660
1031
  }) => {
661
- const [a, r] = lt(e), o = D(), l = _(o.pathname);
662
- return T(() => {
663
- !a && l.current !== o.pathname && r(X(t, o.pathname, s)), l.current = o.pathname;
664
- }, [a, t, s, o.pathname]), [a, r];
665
- }, H = We(
1032
+ const [a, s] = mt(e), o = T(), i = K(o.pathname);
1033
+ return I(() => {
1034
+ !a && i.current !== o.pathname && s(ee(t, o.pathname, r)), i.current = o.pathname;
1035
+ }, [a, t, r, o.pathname]), [a, s];
1036
+ }, z = tt(
666
1037
  "flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
667
1038
  {
668
1039
  variants: {
@@ -676,46 +1047,46 @@ const Nt = E("Sun", [
676
1047
  }
677
1048
  }
678
1049
  }
679
- ), qt = "data-anchor", Me = ({
1050
+ ), jr = "data-anchor", ze = ({
680
1051
  category: t,
681
1052
  item: e,
682
- activeAnchor: s,
1053
+ activeAnchor: r,
683
1054
  currentTopNavItem: a,
684
- basePath: r = ""
1055
+ basePath: s = ""
685
1056
  }) => {
686
- const o = U(e) ? ve(r, e.path) : "", l = D(), [h, g] = Ce({
1057
+ const o = X(e) ? De(s, e.path) : "", i = T(), [c, u] = Be({
687
1058
  item: e,
688
1059
  path: o,
689
- defaultOpen: () => X(e, l.pathname, o)
1060
+ defaultOpen: () => ee(e, i.pathname, o)
690
1061
  });
691
- if (Ve(e)) {
692
- const d = z(
1062
+ if (Dt(e)) {
1063
+ const p = F(
693
1064
  "flex items-center gap-2",
694
- H({
695
- isActive: e.href === l.pathname
1065
+ z({
1066
+ isActive: e.href === i.pathname
696
1067
  })
697
1068
  );
698
1069
  return e.href.startsWith("http") ? /* @__PURE__ */ n.jsxs(
699
1070
  "a",
700
1071
  {
701
- className: d,
1072
+ className: p,
702
1073
  href: e.href,
703
1074
  target: "_blank",
704
1075
  rel: "noopener noreferrer",
705
1076
  children: [
706
1077
  e.label,
707
- /* @__PURE__ */ n.jsx(jt, { size: 14 })
1078
+ /* @__PURE__ */ n.jsx(_t, { size: 14 })
708
1079
  ]
709
1080
  }
710
- ) : /* @__PURE__ */ n.jsx(V, { className: d, to: e.href, children: e.label });
1081
+ ) : /* @__PURE__ */ n.jsx(J, { className: p, to: e.href, children: e.label });
711
1082
  }
712
- const b = /* @__PURE__ */ n.jsxs("div", { className: "flex justify-between w-full", children: [
1083
+ const f = /* @__PURE__ */ n.jsxs("div", { className: "flex justify-between w-full", children: [
713
1084
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
714
1085
  e.icon,
715
1086
  typeof e.label != "string" ? e.label : /* @__PURE__ */ n.jsx("span", { className: "truncate", children: e.label })
716
1087
  ] }),
717
1088
  e.children && /* @__PURE__ */ n.jsx(
718
- ke,
1089
+ _e,
719
1090
  {
720
1091
  size: 16,
721
1092
  className: "transition shrink-0 group-data-[state=open]:rotate-90"
@@ -723,79 +1094,79 @@ const Nt = E("Sun", [
723
1094
  )
724
1095
  ] });
725
1096
  return /* @__PURE__ */ n.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ n.jsxs(
726
- ye,
1097
+ Re,
727
1098
  {
728
- open: h,
729
- onOpenChange: () => g((d) => !d),
1099
+ open: c,
1100
+ onOpenChange: () => u((p) => !p),
730
1101
  className: "flex flex-col",
731
1102
  children: [
732
1103
  /* @__PURE__ */ n.jsx(
733
- xe,
1104
+ ke,
734
1105
  {
735
- className: z(
1106
+ className: F(
736
1107
  "group text-start",
737
- H({ isActive: !1 })
1108
+ z({ isActive: !1 })
738
1109
  ),
739
- children: b
1110
+ children: f
740
1111
  }
741
1112
  ),
742
- /* @__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(
743
- Me,
1113
+ /* @__PURE__ */ n.jsx(Me, { 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((p) => /* @__PURE__ */ n.jsx(
1114
+ ze,
744
1115
  {
745
1116
  category: t,
746
- item: d,
747
- activeAnchor: s,
1117
+ item: p,
1118
+ activeAnchor: r,
748
1119
  currentTopNavItem: a,
749
1120
  basePath: o
750
1121
  },
751
- U(d) ? d.path : d.href
1122
+ X(p) ? p.path : p.href
752
1123
  )) }) })
753
1124
  ]
754
1125
  }
755
1126
  ) : e.path.startsWith("#") ? /* @__PURE__ */ n.jsx(
756
- Ue,
1127
+ ct,
757
1128
  {
758
1129
  to: e.path,
759
- [qt]: e.path,
760
- className: H({
761
- isActive: e.path.slice(1) === s,
1130
+ [jr]: e.path,
1131
+ className: z({
1132
+ isActive: e.path.slice(1) === r,
762
1133
  isMuted: e.muted
763
1134
  }),
764
- children: b
1135
+ children: f
765
1136
  }
766
1137
  ) : /* @__PURE__ */ n.jsx(
767
- V,
1138
+ J,
768
1139
  {
769
- className: ({ isActive: d }) => H({ isActive: d }),
1140
+ className: ({ isActive: p }) => z({ isActive: p }),
770
1141
  to: o,
771
- children: b
1142
+ children: f
772
1143
  }
773
1144
  ) });
774
- }, Dt = ({
1145
+ }, Sr = ({
775
1146
  category: t
776
1147
  }) => {
777
- const { activeAnchor: e } = W(), s = Xe(), a = D(), r = t.collapsible ?? !0, [o, l] = Ce({
1148
+ const { activeAnchor: e } = W(), r = Ot(), a = T(), s = t.collapsible ?? !0, [o, i] = Be({
778
1149
  item: t,
779
- path: (s == null ? void 0 : s.path) ?? "",
780
- defaultOpen: () => !r || t.expanded || X(t, a.pathname, (s == null ? void 0 : s.path) ?? "")
1150
+ path: (r == null ? void 0 : r.path) ?? "",
1151
+ defaultOpen: () => !s || t.expanded || ee(t, a.pathname, (r == null ? void 0 : r.path) ?? "")
781
1152
  });
782
1153
  return /* @__PURE__ */ n.jsxs(
783
- ye,
1154
+ Re,
784
1155
  {
785
1156
  open: o,
786
- onOpenChange: () => l((h) => !h),
1157
+ onOpenChange: () => i((c) => !c),
787
1158
  children: [
788
- t.label.length > 0 ? /* @__PURE__ */ n.jsx(xe, { asChild: r, disabled: !r, children: /* @__PURE__ */ n.jsxs(
1159
+ t.label.length > 0 ? /* @__PURE__ */ n.jsx(ke, { asChild: s, disabled: !s, children: /* @__PURE__ */ n.jsxs(
789
1160
  "h5",
790
1161
  {
791
- className: z(
1162
+ className: F(
792
1163
  "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]",
793
- r ? "hover:bg-accent" : "cursor-auto"
1164
+ s ? "hover:bg-accent" : "cursor-auto"
794
1165
  ),
795
1166
  children: [
796
1167
  t.label,
797
- r && /* @__PURE__ */ n.jsx(
798
- ke,
1168
+ s && /* @__PURE__ */ n.jsx(
1169
+ _e,
799
1170
  {
800
1171
  className: "group-data-[state=open]:rotate-90 transition",
801
1172
  size: 16
@@ -804,123 +1175,88 @@ const Nt = E("Sun", [
804
1175
  ]
805
1176
  }
806
1177
  ) }) : "Endpoints",
807
- /* @__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(
808
- Me,
1178
+ /* @__PURE__ */ n.jsx(Me, { 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((c) => /* @__PURE__ */ n.jsx(
1179
+ ze,
809
1180
  {
810
1181
  category: t,
811
- item: h,
1182
+ item: c,
812
1183
  activeAnchor: e,
813
- currentTopNavItem: s,
814
- basePath: ve(s == null ? void 0 : s.path, t.path)
1184
+ currentTopNavItem: r,
1185
+ basePath: De(r == null ? void 0 : r.path, t.path)
815
1186
  },
816
- U(h) ? h.path + h.label : h.href
1187
+ X(c) ? c.path + c.label : c.href
817
1188
  )) }) })
818
1189
  ]
819
1190
  },
820
1191
  t.label
821
1192
  );
822
- }, St = ct(function({ children: e, className: s, pushMainContent: a }, r) {
1193
+ }, Nr = gt(function({ children: e, className: r, pushMainContent: a }, s) {
823
1194
  return /* @__PURE__ */ n.jsx(
824
1195
  "nav",
825
1196
  {
826
1197
  "data-navigation": String(a),
827
- className: z(
1198
+ className: F(
828
1199
  "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",
829
- s
1200
+ r
830
1201
  ),
831
- ref: r,
1202
+ ref: s,
832
1203
  children: e
833
1204
  }
834
1205
  );
835
- }), Et = () => {
836
- const t = _(null), e = $e();
1206
+ }), Cr = () => {
1207
+ const t = K(null), e = At();
837
1208
  return /* @__PURE__ */ n.jsx(
838
- St,
1209
+ Nr,
839
1210
  {
840
1211
  ref: t,
841
1212
  pushMainContent: e.data.items.length > 0,
842
- children: e.data.items.map((s) => /* @__PURE__ */ n.jsx(Dt, { category: s }, s.label))
1213
+ children: e.data.items.map((r) => /* @__PURE__ */ n.jsx(Sr, { category: r }, r.label))
843
1214
  }
844
1215
  );
845
- }, ue = ({ children: t }) => {
846
- const e = D(), { setActiveAnchor: s } = W(), { meta: a } = K();
847
- Mt(), Qt();
848
- const r = _(e.pathname);
849
- return T(() => {
850
- e.pathname !== r.current && s(""), r.current = e.pathname;
851
- }, [e.pathname, s]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
852
- /* @__PURE__ */ n.jsxs(Ge, { titleTemplate: a == null ? void 0 : a.pageTitle, children: [
853
- /* @__PURE__ */ n.jsx("title", { children: "Home" }),
1216
+ }, Or = ({ children: t }) => {
1217
+ const e = T(), { setActiveAnchor: r } = W(), { meta: a } = Z();
1218
+ Er(), Pr();
1219
+ const s = K(e.pathname);
1220
+ return I(() => {
1221
+ e.pathname !== s.current && r(""), s.current = e.pathname;
1222
+ }, [e.pathname, r]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1223
+ /* @__PURE__ */ n.jsxs(je, { titleTemplate: a == null ? void 0 : a.title, children: [
854
1224
  (a == null ? void 0 : a.description) && /* @__PURE__ */ n.jsx("meta", { name: "description", content: a.description }),
855
1225
  (a == null ? void 0 : a.favicon) && /* @__PURE__ */ n.jsx("link", { rel: "icon", href: a.favicon })
856
1226
  ] }),
857
- /* @__PURE__ */ n.jsx(Oe, {}),
1227
+ /* @__PURE__ */ n.jsx(qe, {}),
858
1228
  /* @__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(
859
- we,
1229
+ vt,
860
1230
  {
861
- fallback: /* @__PURE__ */ n.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ n.jsx(Je, {}) }),
1231
+ fallback: /* @__PURE__ */ n.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ n.jsx(Mt, {}) }),
862
1232
  children: [
863
- /* @__PURE__ */ n.jsx(Et, {}),
1233
+ /* @__PURE__ */ n.jsx(Cr, {}),
864
1234
  /* @__PURE__ */ n.jsx(
865
1235
  "main",
866
1236
  {
867
- className: `dark:border-white/10 translate-x-0
868
- lg:overflow-visible
869
- lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]
870
- lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] peer-data-[navigation=true]:pl-12`,
871
- children: t ?? /* @__PURE__ */ n.jsx(Ee, {})
1237
+ className: F(
1238
+ "dark:border-white/10 translate-x-0 h-full",
1239
+ "lg:overflow-visible",
1240
+ "lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]",
1241
+ "lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] peer-data-[navigation=true]:pl-12"
1242
+ ),
1243
+ children: t ?? /* @__PURE__ */ n.jsx(ot, {})
872
1244
  }
873
1245
  )
874
1246
  ]
875
1247
  }
876
1248
  ) })
877
1249
  ] });
878
- };
879
- function Tt({ plugins: t }) {
880
- const e = L(() => {
881
- const s = (t ?? []).flatMap(
882
- (a) => Pe(a) ? a.getRoutes() : []
883
- );
884
- return Ye([
885
- {
886
- path: "/",
887
- element: /* @__PURE__ */ n.jsx(ue, {}),
888
- errorElement: /* @__PURE__ */ n.jsx(ue, { children: /* @__PURE__ */ n.jsx("div", { className: "h-[75vh] flex items-center justify-center", children: "Error, look at the console" }) }),
889
- children: s
890
- }
891
- ]);
892
- }, [t]);
893
- return /* @__PURE__ */ n.jsx(Ze, { router: e });
894
- }
895
- const It = (t) => {
896
- const e = L(
897
- () => ({ ...Ae, ...t.overrides }),
898
- [t.overrides]
899
- ), s = L(
900
- () => ({ ...et, ...t.mdxComponents }),
901
- [t.mdxComponents]
902
- ), a = L(() => new bt(t), [t]);
903
- return T(() => {
904
- a.initialize();
905
- }, [a]), /* @__PURE__ */ n.jsx(tt, { client: Ne, children: /* @__PURE__ */ n.jsx(st, { children: /* @__PURE__ */ n.jsx(at, { value: a, children: /* @__PURE__ */ n.jsx(nt, { components: s, children: /* @__PURE__ */ n.jsx(rt, { children: /* @__PURE__ */ n.jsx(Ct, { value: e, children: /* @__PURE__ */ n.jsx(it, { children: /* @__PURE__ */ n.jsx(
906
- we,
907
- {
908
- fallback: /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: "Loading..." }),
909
- children: /* @__PURE__ */ n.jsx(
910
- Tt,
911
- {
912
- plugins: [
913
- ...t.plugins ?? [],
914
- ...t.authentication ? [t.authentication] : []
915
- ]
916
- }
917
- )
918
- }
919
- ) }) }) }) }) }) }) });
920
- }, Ft = je(It);
921
- Ft.displayName = "DevPortal";
1250
+ }, Br = ut, zr = rt, Ur = Le, Kr = Or, $r = at, Vr = nt, Yr = Qt, Jr = er, Xr = tr;
922
1251
  export {
923
- Ft as DevPortal,
924
- Vt as Link,
925
- Ut as useMDXComponents
1252
+ Jr as Bootstrap,
1253
+ Xr as BootstrapStatic,
1254
+ zr as Callout,
1255
+ Ur as DevPortal,
1256
+ Kr as Layout,
1257
+ $r as Link,
1258
+ Vr as RouterError,
1259
+ Yr as ServerError,
1260
+ Br as useMDXComponents
926
1261
  };
1262
+ //# sourceMappingURL=zudoku.components.js.map