zudoku 0.1.1-dev.5 → 0.1.1-dev.51

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 (606) hide show
  1. package/dist/app/App.js +21 -42
  2. package/dist/app/App.js.map +1 -1
  3. package/dist/app/main.js +11 -15
  4. package/dist/app/main.js.map +1 -1
  5. package/dist/cli/build/handler.js +3 -1
  6. package/dist/cli/build/handler.js.map +1 -1
  7. package/dist/cli/cmds/dev.js +0 -1
  8. package/dist/cli/cmds/dev.js.map +1 -1
  9. package/dist/cli/common/analytics/lib.js +1 -1
  10. package/dist/cli/common/analytics/lib.js.map +1 -1
  11. package/dist/cli/common/logger.d.ts +1 -2
  12. package/dist/cli/common/logger.js +3 -3
  13. package/dist/cli/common/logger.js.map +1 -1
  14. package/dist/cli/common/outdated.js +4 -4
  15. package/dist/cli/common/outdated.js.map +1 -1
  16. package/dist/cli/common/output.js +4 -4
  17. package/dist/cli/common/output.js.map +1 -1
  18. package/dist/cli/common/utils/box.js +2 -2
  19. package/dist/cli/common/utils/box.js.map +1 -1
  20. package/dist/cli/dev/handler.d.ts +1 -1
  21. package/dist/cli/dev/handler.js +14 -3
  22. package/dist/cli/dev/handler.js.map +1 -1
  23. package/dist/config/config.d.ts +39 -9
  24. package/dist/config/validators/auth.d.ts +2 -0
  25. package/dist/config/validators/auth.js +2 -0
  26. package/dist/config/validators/auth.js.map +1 -0
  27. package/dist/config/validators/validate.d.ts +2 -0
  28. package/dist/config/validators/validate.js +4 -0
  29. package/dist/config/validators/validate.js.map +1 -0
  30. package/dist/index.d.ts +2 -6
  31. package/dist/index.js +1 -5
  32. package/dist/index.js.map +1 -1
  33. package/dist/lib/authentication/Callback.d.ts +4 -0
  34. package/dist/lib/authentication/Callback.js +20 -0
  35. package/dist/lib/authentication/Callback.js.map +1 -0
  36. package/dist/lib/authentication/auth0.d.ts +5 -0
  37. package/dist/lib/authentication/auth0.js +9 -0
  38. package/dist/lib/authentication/auth0.js.map +1 -0
  39. package/dist/lib/authentication/authentication.d.ts +10 -0
  40. package/dist/lib/authentication/authentication.js.map +1 -0
  41. package/dist/lib/authentication/clerk.d.ts +4 -0
  42. package/dist/{app → lib}/authentication/clerk.js +19 -9
  43. package/dist/lib/authentication/clerk.js.map +1 -0
  44. package/dist/lib/authentication/openid.d.ts +5 -0
  45. package/dist/lib/authentication/openid.js +136 -0
  46. package/dist/lib/authentication/openid.js.map +1 -0
  47. package/dist/{app → lib}/components/AnchorLink.js.map +1 -1
  48. package/dist/{app → lib}/components/CategoryHeading.js.map +1 -1
  49. package/dist/lib/components/DevPortal.d.ts +25 -0
  50. package/dist/lib/components/DevPortal.js +32 -0
  51. package/dist/lib/components/DevPortal.js.map +1 -0
  52. package/dist/{app → lib}/components/Dialog.d.ts +2 -2
  53. package/dist/{app → lib}/components/Dialog.js +3 -3
  54. package/dist/lib/components/Dialog.js.map +1 -0
  55. package/dist/lib/components/Header.d.ts +1 -0
  56. package/dist/lib/components/Header.js +15 -0
  57. package/dist/{app → lib}/components/Header.js.map +1 -1
  58. package/dist/{app → lib/components}/Heading.js +2 -2
  59. package/dist/lib/components/Heading.js.map +1 -0
  60. package/dist/{app → lib}/components/Input.js.map +1 -1
  61. package/dist/{app → lib}/components/Layout.js +4 -7
  62. package/dist/lib/components/Layout.js.map +1 -0
  63. package/dist/lib/components/Link.d.ts +1 -0
  64. package/dist/lib/components/Link.js +2 -0
  65. package/dist/lib/components/Link.js.map +1 -0
  66. package/dist/{app → lib}/components/Markdown.js.map +1 -1
  67. package/dist/lib/components/Router.d.ts +4 -0
  68. package/dist/lib/components/Router.js +20 -0
  69. package/dist/lib/components/Router.js.map +1 -0
  70. package/dist/lib/components/Select.d.ts +13 -0
  71. package/dist/lib/components/Select.js +27 -0
  72. package/dist/lib/components/Select.js.map +1 -0
  73. package/dist/lib/components/Spinner.d.ts +3 -0
  74. package/dist/lib/components/Spinner.js +4 -0
  75. package/dist/lib/components/Spinner.js.map +1 -0
  76. package/dist/{app → lib}/components/SyntaxHighlight.d.ts +2 -1
  77. package/dist/{app → lib}/components/SyntaxHighlight.js +4 -1
  78. package/dist/lib/components/SyntaxHighlight.js.map +1 -0
  79. package/dist/{app → lib}/components/TopNavigation.js.map +1 -1
  80. package/dist/{app → lib}/components/context/ComponentsContext.d.ts +1 -1
  81. package/dist/{app → lib}/components/context/ComponentsContext.js.map +1 -1
  82. package/dist/{app → lib}/components/context/DevPortalProvider.js +1 -1
  83. package/dist/lib/components/context/DevPortalProvider.js.map +1 -0
  84. package/dist/lib/components/context/PluginSystem.js.map +1 -0
  85. package/dist/{app → lib}/components/context/ThemeContext.js +1 -1
  86. package/dist/{app → lib}/components/context/ThemeContext.js.map +1 -1
  87. package/dist/{app → lib}/components/context/ViewportAnchorContext.js.map +1 -1
  88. package/dist/lib/components/index.d.ts +3 -0
  89. package/dist/lib/components/index.js +4 -0
  90. package/dist/lib/components/index.js.map +1 -0
  91. package/dist/{app → lib}/components/navigation/SideNavigation.js +1 -1
  92. package/dist/{app → lib}/components/navigation/SideNavigation.js.map +1 -1
  93. package/dist/{app → lib}/components/navigation/SideNavigationCategory.js +1 -1
  94. package/dist/{app → lib}/components/navigation/SideNavigationCategory.js.map +1 -1
  95. package/dist/{app → lib}/components/navigation/SideNavigationItem.d.ts +2 -1
  96. package/dist/{app → lib}/components/navigation/SideNavigationItem.js +12 -6
  97. package/dist/lib/components/navigation/SideNavigationItem.js.map +1 -0
  98. package/dist/{app → lib}/components/navigation/SideNavigationWrapper.d.ts +3 -0
  99. package/dist/lib/components/navigation/SideNavigationWrapper.js +7 -0
  100. package/dist/lib/components/navigation/SideNavigationWrapper.js.map +1 -0
  101. package/dist/{app → lib}/components/navigation/useNavigationCollapsibleState.js.map +1 -1
  102. package/dist/{app → lib}/components/navigation/util.js.map +1 -1
  103. package/dist/{app → lib}/core/DevPortalContext.d.ts +9 -13
  104. package/dist/{app → lib}/core/DevPortalContext.js +8 -8
  105. package/dist/lib/core/DevPortalContext.js.map +1 -0
  106. package/dist/{app → lib}/core/helmet.js.map +1 -1
  107. package/dist/lib/core/icons.js.map +1 -0
  108. package/dist/{app → lib}/core/plugins.d.ts +2 -7
  109. package/dist/{app → lib}/core/plugins.js +1 -1
  110. package/dist/{app → lib}/core/plugins.js.map +1 -1
  111. package/dist/lib/core/router.js.map +1 -0
  112. package/dist/{app → lib}/oas/graphql/index.js +2 -2
  113. package/dist/lib/oas/graphql/index.js.map +1 -0
  114. package/dist/{app → lib}/oas/parser/dereference/index.js.map +1 -1
  115. package/dist/{app → lib}/oas/parser/dereference/resolveRef.js.map +1 -1
  116. package/dist/{app → lib}/oas/parser/index.js.map +1 -1
  117. package/dist/{app → lib}/oas/parser/upgrade/index.js.map +1 -1
  118. package/dist/lib/plugins/api-key/CreateApiKey.d.ts +5 -0
  119. package/dist/lib/plugins/api-key/CreateApiKey.js +37 -0
  120. package/dist/lib/plugins/api-key/CreateApiKey.js.map +1 -0
  121. package/dist/lib/plugins/api-key/SettingsApiKeys.d.ts +5 -0
  122. package/dist/lib/plugins/api-key/SettingsApiKeys.js +38 -0
  123. package/dist/lib/plugins/api-key/SettingsApiKeys.js.map +1 -0
  124. package/dist/lib/plugins/api-key/index.d.ts +30 -0
  125. package/dist/lib/plugins/api-key/index.js +79 -0
  126. package/dist/lib/plugins/api-key/index.js.map +1 -0
  127. package/dist/lib/plugins/index.d.ts +4 -0
  128. package/dist/lib/plugins/index.js +5 -0
  129. package/dist/lib/plugins/index.js.map +1 -0
  130. package/dist/lib/plugins/markdown/MdxPage.d.ts +5 -0
  131. package/dist/lib/plugins/markdown/MdxPage.js +60 -0
  132. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -0
  133. package/dist/{app → lib}/plugins/markdown/Toc.js.map +1 -1
  134. package/dist/{app → lib}/plugins/markdown/generateRoutes.js +1 -6
  135. package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -0
  136. package/dist/{app → lib}/plugins/markdown/index.js.map +1 -1
  137. package/dist/{app → lib}/plugins/openapi/ColorizedParam.d.ts +1 -2
  138. package/dist/{app → lib}/plugins/openapi/ColorizedParam.js +2 -2
  139. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -0
  140. package/dist/lib/plugins/openapi/MakeRequest.js +38 -0
  141. package/dist/lib/plugins/openapi/MakeRequest.js.map +1 -0
  142. package/dist/{app → lib}/plugins/openapi/MethodBadge.js.map +1 -1
  143. package/dist/{app → lib}/plugins/openapi/OperationList.js +12 -3
  144. package/dist/lib/plugins/openapi/OperationList.js.map +1 -0
  145. package/dist/lib/plugins/openapi/OperationListItem.js +18 -0
  146. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -0
  147. package/dist/{app → lib}/plugins/openapi/ParameterList.js +1 -1
  148. package/dist/{app → lib}/plugins/openapi/ParameterList.js.map +1 -1
  149. package/dist/lib/plugins/openapi/ParameterListItem.js +13 -0
  150. package/dist/{app → lib}/plugins/openapi/ParameterListItem.js.map +1 -1
  151. package/dist/{app → lib}/plugins/openapi/RequestBodySidecarBox.js +1 -1
  152. package/dist/{app → lib}/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  153. package/dist/{app → lib}/plugins/openapi/ResponsesSidecarBox.js +3 -3
  154. package/dist/{app → lib}/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  155. package/dist/lib/plugins/openapi/SchemaListView.d.ts +7 -0
  156. package/dist/lib/plugins/openapi/SchemaListView.js +43 -0
  157. package/dist/lib/plugins/openapi/SchemaListView.js.map +1 -0
  158. package/dist/{app → lib}/plugins/openapi/Select.js.map +1 -1
  159. package/dist/{app → lib}/plugins/openapi/Sidecar.js +15 -15
  160. package/dist/{app → lib}/plugins/openapi/Sidecar.js.map +1 -1
  161. package/dist/{app → lib}/plugins/openapi/SidecarBox.js.map +1 -1
  162. package/dist/{app → lib}/plugins/openapi/graphql/fragment-masking.d.ts +1 -1
  163. package/dist/{app → lib}/plugins/openapi/graphql/fragment-masking.js.map +1 -1
  164. package/dist/{app → lib}/plugins/openapi/graphql/gql.d.ts +5 -5
  165. package/dist/{app → lib}/plugins/openapi/graphql/gql.js +2 -3
  166. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -0
  167. package/dist/{app → lib}/plugins/openapi/graphql/graphql.d.ts +9 -0
  168. package/dist/{app → lib}/plugins/openapi/graphql/graphql.js +50 -0
  169. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -0
  170. package/dist/lib/plugins/openapi/graphql/index.js.map +1 -0
  171. package/dist/{app → lib}/plugins/openapi/index.js +3 -1
  172. package/dist/lib/plugins/openapi/index.js.map +1 -0
  173. package/dist/lib/plugins/openapi/playground/Editor.d.ts +1 -0
  174. package/dist/lib/plugins/openapi/playground/Editor.js +5 -0
  175. package/dist/lib/plugins/openapi/playground/Editor.js.map +1 -0
  176. package/dist/lib/plugins/openapi/playground/Headers.d.ts +7 -0
  177. package/dist/lib/plugins/openapi/playground/Headers.js +15 -0
  178. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -0
  179. package/dist/lib/plugins/openapi/playground/InlineInput.d.ts +4 -0
  180. package/dist/lib/plugins/openapi/playground/InlineInput.js +3 -0
  181. package/dist/lib/plugins/openapi/playground/InlineInput.js.map +1 -0
  182. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +6 -0
  183. package/dist/lib/plugins/openapi/playground/PathParams.js +21 -0
  184. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -0
  185. package/dist/lib/plugins/openapi/playground/Playground.d.ts +30 -0
  186. package/dist/lib/plugins/openapi/playground/Playground.js +99 -0
  187. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -0
  188. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +5 -0
  189. package/dist/lib/plugins/openapi/playground/QueryParams.js +34 -0
  190. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -0
  191. package/dist/lib/plugins/openapi/playground/UrlDisplay.d.ts +4 -0
  192. package/dist/lib/plugins/openapi/playground/UrlDisplay.js +22 -0
  193. package/dist/lib/plugins/openapi/playground/UrlDisplay.js.map +1 -0
  194. package/dist/lib/plugins/openapi/playground/createUrl.d.ts +2 -0
  195. package/dist/lib/plugins/openapi/playground/createUrl.js +15 -0
  196. package/dist/lib/plugins/openapi/playground/createUrl.js.map +1 -0
  197. package/dist/{app → lib}/plugins/openapi/util/generateSchemaExample.d.ts +1 -1
  198. package/dist/{app → lib}/plugins/openapi/util/generateSchemaExample.js +17 -9
  199. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -0
  200. package/dist/{app → lib}/plugins/openapi/util/urql.js.map +1 -1
  201. package/dist/{app → lib}/plugins/openapi/worker/createSharedWorkerClient.js +2 -1
  202. package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.js.map +1 -0
  203. package/dist/lib/plugins/openapi/worker/shared-worker.d.ts +1 -0
  204. package/dist/lib/plugins/openapi/worker/shared-worker.js +6 -0
  205. package/dist/lib/plugins/openapi/worker/shared-worker.js.map +1 -0
  206. package/dist/{app → lib}/plugins/openapi/worker/worker.js.map +1 -1
  207. package/dist/lib/plugins/openapi-worker.d.ts +1 -0
  208. package/dist/lib/plugins/openapi-worker.js +2 -0
  209. package/dist/lib/plugins/openapi-worker.js.map +1 -0
  210. package/dist/{app → lib}/plugins/redirect/index.d.ts +1 -2
  211. package/dist/{app → lib}/plugins/redirect/index.js.map +1 -1
  212. package/dist/lib/ui/Button.d.ts +7 -0
  213. package/dist/lib/ui/Button.js +11 -0
  214. package/dist/lib/ui/Button.js.map +1 -0
  215. package/dist/{app → lib}/ui/Callout.js.map +1 -1
  216. package/dist/{app → lib}/ui/Card.js.map +1 -1
  217. package/dist/{app → lib}/ui/Note.js.map +1 -1
  218. package/dist/{app → lib}/ui/Tabs.d.ts +2 -2
  219. package/dist/{app → lib}/ui/Tabs.js +2 -2
  220. package/dist/{app → lib}/ui/Tabs.js.map +1 -1
  221. package/dist/lib/ui/button-variants.d.ts +4 -0
  222. package/dist/{app/ui/Button.js → lib/ui/button-variants.js} +2 -12
  223. package/dist/lib/ui/button-variants.js.map +1 -0
  224. package/dist/{app → lib}/util/MdxComponents.js +9 -9
  225. package/dist/lib/util/MdxComponents.js.map +1 -0
  226. package/dist/{app → lib}/util/cn.js.map +1 -1
  227. package/dist/lib/util/createVariantComponent.d.ts +9 -0
  228. package/dist/lib/util/createVariantComponent.js +17 -0
  229. package/dist/lib/util/createVariantComponent.js.map +1 -0
  230. package/dist/{app → lib}/util/createWaitForNotify.js.map +1 -1
  231. package/dist/{app → lib}/util/groupBy.js.map +1 -1
  232. package/dist/{app → lib}/util/joinPath.js.map +1 -1
  233. package/dist/{app → lib}/util/pastellize.js.map +1 -1
  234. package/dist/lib/util/slugify.js.map +1 -0
  235. package/dist/{app → lib}/util/traverseNavigation.js.map +1 -1
  236. package/dist/{app → lib}/util/useScrollToAnchor.js.map +1 -1
  237. package/dist/{app → lib}/util/useScrollToTop.js.map +1 -1
  238. package/dist/ts.d.ts +6 -0
  239. package/dist/ts.js +61 -0
  240. package/dist/ts.js.map +1 -0
  241. package/dist/vite/build.js +2 -8
  242. package/dist/vite/build.js.map +1 -1
  243. package/dist/vite/common.d.ts +1 -0
  244. package/dist/vite/common.js +5 -0
  245. package/dist/vite/common.js.map +1 -0
  246. package/dist/vite/config.d.ts +10 -3
  247. package/dist/vite/config.js +109 -58
  248. package/dist/vite/config.js.map +1 -1
  249. package/dist/vite/config.test.js +4 -3
  250. package/dist/vite/config.test.js.map +1 -1
  251. package/dist/vite/dev-server.d.ts +2 -0
  252. package/dist/vite/dev-server.js +30 -9
  253. package/dist/vite/dev-server.js.map +1 -1
  254. package/dist/vite/html.d.ts +1 -1
  255. package/dist/vite/html.js +2 -3
  256. package/dist/vite/html.js.map +1 -1
  257. package/dist/vite/plugin-api-keys.d.ts +4 -0
  258. package/dist/vite/plugin-api-keys.js +33 -0
  259. package/dist/vite/plugin-api-keys.js.map +1 -0
  260. package/dist/vite/plugin-api.d.ts +4 -0
  261. package/dist/vite/plugin-api.js +49 -0
  262. package/dist/vite/plugin-api.js.map +1 -0
  263. package/dist/vite/plugin-auth.d.ts +4 -0
  264. package/dist/vite/plugin-auth.js +30 -0
  265. package/dist/vite/plugin-auth.js.map +1 -0
  266. package/dist/vite/plugin-component.d.ts +4 -0
  267. package/dist/vite/plugin-component.js +16 -0
  268. package/dist/vite/plugin-component.js.map +1 -0
  269. package/dist/vite/plugin-config.d.ts +7 -0
  270. package/dist/vite/plugin-config.js +25 -0
  271. package/dist/vite/plugin-config.js.map +1 -0
  272. package/dist/vite/plugin-docs.d.ts +4 -0
  273. package/dist/vite/plugin-docs.js +45 -0
  274. package/dist/vite/plugin-docs.js.map +1 -0
  275. package/dist/vite/plugin-docs.test.js +30 -0
  276. package/dist/vite/plugin-docs.test.js.map +1 -0
  277. package/dist/vite/plugin-html.d.ts +3 -0
  278. package/dist/vite/plugin-html.js +47 -0
  279. package/dist/vite/plugin-html.js.map +1 -0
  280. package/dist/vite/plugin-mdx.d.ts +8 -0
  281. package/dist/vite/plugin-mdx.js +63 -0
  282. package/dist/vite/plugin-mdx.js.map +1 -0
  283. package/dist/vite/plugin-metadata.d.ts +6 -0
  284. package/dist/vite/plugin-metadata.js +24 -0
  285. package/dist/vite/plugin-metadata.js.map +1 -0
  286. package/dist/vite/plugin-openapi-worker.d.ts +4 -0
  287. package/dist/vite/plugin-openapi-worker.js +28 -0
  288. package/dist/vite/plugin-openapi-worker.js.map +1 -0
  289. package/dist/vite/plugin-redirect.d.ts +4 -0
  290. package/dist/vite/plugin-redirect.js +32 -0
  291. package/dist/vite/plugin-redirect.js.map +1 -0
  292. package/dist/vite/plugin.d.ts +2 -6
  293. package/dist/vite/plugin.js +22 -104
  294. package/dist/vite/plugin.js.map +1 -1
  295. package/lib/DevPortalProvider-yBHPOS9_.js +4559 -0
  296. package/lib/Spinner-Daa7xsri.js +7329 -0
  297. package/lib/assets/index-BPdJm2ty.js +4764 -0
  298. package/lib/assets/worker-BCcpCNJ7.js +14473 -0
  299. package/lib/clerk-Wslx_mPo.js +19685 -0
  300. package/lib/loglevel-D-4S8up4.js +152 -0
  301. package/lib/prism-bash.min-DadFsM4Z.js +6 -0
  302. package/lib/prism-java.min-d5iT_mOd.js +6 -0
  303. package/lib/prism-json.min-B1GJqK1k.js +1 -0
  304. package/lib/prism-markup-templating-DZrrEs0A.js +61 -0
  305. package/lib/prism-php.min-o7FpoMP_.js +10 -0
  306. package/lib/prism-ruby.min-C7LwcKyz.js +9 -0
  307. package/lib/urql-DMlBWUKL.js +1591 -0
  308. package/lib/zudoku.auth-auth0.js +829 -0
  309. package/lib/zudoku.auth-clerk.js +41 -0
  310. package/lib/zudoku.components.js +1203 -0
  311. package/lib/zudoku.openapi-worker.js +225 -0
  312. package/lib/zudoku.plugins.js +19877 -0
  313. package/package.json +75 -50
  314. package/src/app/App.tsx +23 -46
  315. package/src/app/main.css +1 -0
  316. package/src/app/main.tsx +13 -17
  317. package/src/lib/authentication/Callback.tsx +31 -0
  318. package/src/lib/authentication/auth0.tsx +18 -0
  319. package/src/lib/authentication/authentication.ts +11 -0
  320. package/src/lib/authentication/clerk.tsx +56 -0
  321. package/src/lib/authentication/openid.tsx +206 -0
  322. package/src/{app → lib/components}/DevPortal.tsx +30 -42
  323. package/src/{app → lib}/components/Dialog.tsx +37 -37
  324. package/src/{app → lib}/components/Header.tsx +4 -4
  325. package/src/{app → lib/components}/Heading.tsx +2 -2
  326. package/src/{app → lib}/components/Layout.tsx +18 -12
  327. package/src/lib/components/Link.tsx +1 -0
  328. package/src/lib/components/Router.tsx +28 -0
  329. package/src/lib/components/Select.tsx +157 -0
  330. package/src/lib/components/Spinner.tsx +5 -0
  331. package/src/{app → lib}/components/SyntaxHighlight.tsx +10 -3
  332. package/src/{app → lib}/components/context/DevPortalProvider.ts +1 -1
  333. package/src/lib/components/index.ts +3 -0
  334. package/src/{app → lib}/components/navigation/SideNavigation.tsx +4 -1
  335. package/src/{app → lib}/components/navigation/SideNavigationCategory.tsx +3 -1
  336. package/src/{app → lib}/components/navigation/SideNavigationItem.tsx +16 -7
  337. package/src/lib/components/navigation/SideNavigationWrapper.tsx +24 -0
  338. package/src/{app → lib}/core/DevPortalContext.ts +20 -22
  339. package/src/{app → lib}/core/plugins.ts +5 -5
  340. package/src/{app → lib}/oas/graphql/index.ts +2 -2
  341. package/src/lib/plugins/api-key/CreateApiKey.tsx +100 -0
  342. package/src/lib/plugins/api-key/SettingsApiKeys.tsx +125 -0
  343. package/src/lib/plugins/api-key/index.tsx +132 -0
  344. package/src/lib/plugins/index.ts +4 -0
  345. package/src/{app → lib}/plugins/markdown/MdxPage.tsx +32 -10
  346. package/src/{app → lib}/plugins/markdown/generateRoutes.tsx +1 -16
  347. package/src/{app → lib}/plugins/openapi/ColorizedParam.tsx +1 -3
  348. package/src/lib/plugins/openapi/MakeRequest.tsx +58 -0
  349. package/src/{app → lib}/plugins/openapi/OperationList.tsx +14 -4
  350. package/src/{app → lib}/plugins/openapi/OperationListItem.tsx +36 -4
  351. package/src/{app → lib}/plugins/openapi/ParameterList.tsx +1 -1
  352. package/src/{app → lib}/plugins/openapi/ParameterListItem.tsx +5 -2
  353. package/src/{app → lib}/plugins/openapi/RequestBodySidecarBox.tsx +1 -1
  354. package/src/{app → lib}/plugins/openapi/ResponsesSidecarBox.tsx +2 -3
  355. package/src/lib/plugins/openapi/SchemaListView.tsx +228 -0
  356. package/src/{app → lib}/plugins/openapi/Sidecar.tsx +23 -23
  357. package/src/{app → lib}/plugins/openapi/graphql/gql.ts +7 -7
  358. package/src/{app → lib}/plugins/openapi/graphql/graphql.ts +59 -0
  359. package/src/{app → lib}/plugins/openapi/index.tsx +8 -2
  360. package/src/lib/plugins/openapi/playground/Editor.tsx +4 -0
  361. package/src/lib/plugins/openapi/playground/Headers.tsx +60 -0
  362. package/src/lib/plugins/openapi/playground/InlineInput.tsx +6 -0
  363. package/src/lib/plugins/openapi/playground/PathParams.tsx +63 -0
  364. package/src/lib/plugins/openapi/playground/Playground.tsx +367 -0
  365. package/src/lib/plugins/openapi/playground/QueryParams.tsx +109 -0
  366. package/src/lib/plugins/openapi/playground/UrlDisplay.tsx +32 -0
  367. package/src/lib/plugins/openapi/playground/createUrl.ts +22 -0
  368. package/src/{app → lib}/plugins/openapi/util/generateSchemaExample.ts +22 -9
  369. package/src/{app → lib}/plugins/openapi/worker/createSharedWorkerClient.ts +2 -1
  370. package/src/lib/plugins/openapi/worker/shared-worker.ts +5 -0
  371. package/src/lib/plugins/openapi-worker.ts +1 -0
  372. package/src/{app → lib}/plugins/redirect/index.tsx +1 -1
  373. package/src/lib/ui/Button.tsx +25 -0
  374. package/src/{app → lib}/ui/Tabs.tsx +2 -2
  375. package/src/{app/ui/Button.tsx → lib/ui/button-variants.ts} +4 -29
  376. package/src/{app → lib}/util/MdxComponents.tsx +33 -8
  377. package/src/{app → lib}/util/createVariantComponent.tsx +12 -7
  378. package/dist/app/DevPortal.d.ts +0 -25
  379. package/dist/app/DevPortal.js +0 -41
  380. package/dist/app/DevPortal.js.map +0 -1
  381. package/dist/app/Heading.js.map +0 -1
  382. package/dist/app/authentication/authentication.d.ts +0 -13
  383. package/dist/app/authentication/authentication.js.map +0 -1
  384. package/dist/app/authentication/clerk.d.ts +0 -5
  385. package/dist/app/authentication/clerk.js.map +0 -1
  386. package/dist/app/authentication/openid.d.ts +0 -11
  387. package/dist/app/authentication/openid.js +0 -118
  388. package/dist/app/authentication/openid.js.map +0 -1
  389. package/dist/app/components/Dialog.js.map +0 -1
  390. package/dist/app/components/DynamicIcon.d.ts +0 -6
  391. package/dist/app/components/DynamicIcon.js +0 -6
  392. package/dist/app/components/DynamicIcon.js.map +0 -1
  393. package/dist/app/components/Header.d.ts +0 -1
  394. package/dist/app/components/Header.js +0 -15
  395. package/dist/app/components/Layout.js.map +0 -1
  396. package/dist/app/components/SyntaxHighlight.js.map +0 -1
  397. package/dist/app/components/context/DevPortalProvider.js.map +0 -1
  398. package/dist/app/components/context/PluginSystem.js.map +0 -1
  399. package/dist/app/components/navigation/SideNavigationItem.js.map +0 -1
  400. package/dist/app/components/navigation/SideNavigationWrapper.js +0 -6
  401. package/dist/app/components/navigation/SideNavigationWrapper.js.map +0 -1
  402. package/dist/app/config.d.ts +0 -3
  403. package/dist/app/config.js +0 -9
  404. package/dist/app/config.js.map +0 -1
  405. package/dist/app/core/DevPortalContext.js.map +0 -1
  406. package/dist/app/core/icons.js.map +0 -1
  407. package/dist/app/core/router.js.map +0 -1
  408. package/dist/app/core/types/combine.d.ts +0 -4
  409. package/dist/app/core/types/combine.js +0 -2
  410. package/dist/app/core/types/combine.js.map +0 -1
  411. package/dist/app/markdowns.d.ts +0 -3
  412. package/dist/app/markdowns.js +0 -5
  413. package/dist/app/markdowns.js.map +0 -1
  414. package/dist/app/oas/graphql/index.js.map +0 -1
  415. package/dist/app/oas/graphql/server.js +0 -8
  416. package/dist/app/oas/graphql/server.js.map +0 -1
  417. package/dist/app/plugins/api-key/SettingsApiKeys.d.ts +0 -4
  418. package/dist/app/plugins/api-key/SettingsApiKeys.js +0 -7
  419. package/dist/app/plugins/api-key/SettingsApiKeys.js.map +0 -1
  420. package/dist/app/plugins/api-key/index.d.ts +0 -32
  421. package/dist/app/plugins/api-key/index.js +0 -55
  422. package/dist/app/plugins/api-key/index.js.map +0 -1
  423. package/dist/app/plugins/markdown/MdxPage.d.ts +0 -3
  424. package/dist/app/plugins/markdown/MdxPage.js +0 -55
  425. package/dist/app/plugins/markdown/MdxPage.js.map +0 -1
  426. package/dist/app/plugins/markdown/generateRoutes.js.map +0 -1
  427. package/dist/app/plugins/openapi/ColorizedParam.js.map +0 -1
  428. package/dist/app/plugins/openapi/MakeRequest.js +0 -23
  429. package/dist/app/plugins/openapi/MakeRequest.js.map +0 -1
  430. package/dist/app/plugins/openapi/OperationList.js.map +0 -1
  431. package/dist/app/plugins/openapi/OperationListItem.js +0 -15
  432. package/dist/app/plugins/openapi/OperationListItem.js.map +0 -1
  433. package/dist/app/plugins/openapi/ParameterListItem.js +0 -13
  434. package/dist/app/plugins/openapi/graphql/gql.js.map +0 -1
  435. package/dist/app/plugins/openapi/graphql/graphql.js.map +0 -1
  436. package/dist/app/plugins/openapi/graphql/index.js.map +0 -1
  437. package/dist/app/plugins/openapi/index.js.map +0 -1
  438. package/dist/app/plugins/openapi/playground/Playground.d.ts +0 -8
  439. package/dist/app/plugins/openapi/playground/Playground.js +0 -98
  440. package/dist/app/plugins/openapi/playground/Playground.js.map +0 -1
  441. package/dist/app/plugins/openapi/util/generateSchemaExample.js.map +0 -1
  442. package/dist/app/plugins/openapi/worker/createSharedWorkerClient.js.map +0 -1
  443. package/dist/app/ui/Button.d.ts +0 -11
  444. package/dist/app/ui/Button.js.map +0 -1
  445. package/dist/app/util/MdxComponents.js.map +0 -1
  446. package/dist/app/util/createVariantComponent.d.ts +0 -15
  447. package/dist/app/util/createVariantComponent.js +0 -12
  448. package/dist/app/util/createVariantComponent.js.map +0 -1
  449. package/dist/app/util/slugify.js.map +0 -1
  450. package/dist/auth.d.ts +0 -2
  451. package/dist/auth.js +0 -3
  452. package/dist/auth.js.map +0 -1
  453. package/dist/plugins.d.ts +0 -4
  454. package/dist/plugins.js +0 -6
  455. package/dist/plugins.js.map +0 -1
  456. package/src/app/authentication/authentication.ts +0 -18
  457. package/src/app/authentication/clerk.ts +0 -47
  458. package/src/app/authentication/openid.ts +0 -192
  459. package/src/app/components/DynamicIcon.tsx +0 -60
  460. package/src/app/components/navigation/SideNavigationWrapper.tsx +0 -15
  461. package/src/app/config.ts +0 -20
  462. package/src/app/core/types/combine.ts +0 -16
  463. package/src/app/markdowns.ts +0 -7
  464. package/src/app/oas/graphql/server.ts +0 -10
  465. package/src/app/plugins/api-key/SettingsApiKeys.tsx +0 -22
  466. package/src/app/plugins/api-key/index.tsx +0 -123
  467. package/src/app/plugins/openapi/MakeRequest.tsx +0 -49
  468. package/src/app/plugins/openapi/playground/Playground.tsx +0 -309
  469. package/src/app/plugins/openapi/queries.graphql +0 -6
  470. package/dist/{app → lib}/authentication/authentication.js +0 -0
  471. package/dist/{app → lib}/components/AnchorLink.d.ts +0 -0
  472. package/dist/{app → lib}/components/AnchorLink.js +0 -0
  473. package/dist/{app → lib}/components/CategoryHeading.d.ts +0 -0
  474. package/dist/{app → lib}/components/CategoryHeading.js +0 -0
  475. package/dist/{app → lib/components}/Heading.d.ts +0 -0
  476. package/dist/{app → lib}/components/Input.d.ts +0 -0
  477. package/dist/{app → lib}/components/Input.js +0 -0
  478. package/dist/{app → lib}/components/Layout.d.ts +0 -0
  479. package/dist/{app → lib}/components/Markdown.d.ts +0 -0
  480. package/dist/{app → lib}/components/Markdown.js +0 -0
  481. package/dist/{app → lib}/components/TopNavigation.d.ts +0 -0
  482. package/dist/{app → lib}/components/TopNavigation.js +0 -0
  483. package/dist/{app → lib}/components/context/ComponentsContext.js +0 -0
  484. package/dist/{app → lib}/components/context/DevPortalProvider.d.ts +0 -0
  485. package/dist/{app → lib}/components/context/PluginSystem.d.ts +0 -0
  486. package/dist/{app → lib}/components/context/PluginSystem.js +0 -0
  487. package/dist/{app → lib}/components/context/ThemeContext.d.ts +0 -0
  488. package/dist/{app → lib}/components/context/ViewportAnchorContext.d.ts +0 -0
  489. package/dist/{app → lib}/components/context/ViewportAnchorContext.js +0 -0
  490. package/dist/{app → lib}/components/navigation/SideNavigation.d.ts +0 -0
  491. package/dist/{app → lib}/components/navigation/SideNavigationCategory.d.ts +0 -0
  492. package/dist/{app → lib}/components/navigation/useNavigationCollapsibleState.d.ts +0 -0
  493. package/dist/{app → lib}/components/navigation/useNavigationCollapsibleState.js +0 -0
  494. package/dist/{app → lib}/components/navigation/util.d.ts +0 -0
  495. package/dist/{app → lib}/components/navigation/util.js +0 -0
  496. package/dist/{app → lib}/core/helmet.d.ts +0 -0
  497. package/dist/{app → lib}/core/helmet.js +0 -0
  498. package/dist/{app → lib}/core/icons.d.ts +0 -0
  499. package/dist/{app → lib}/core/icons.js +0 -0
  500. package/dist/{app → lib}/core/router.d.ts +0 -0
  501. package/dist/{app → lib}/core/router.js +0 -0
  502. package/dist/{app → lib}/oas/graphql/index.d.ts +0 -0
  503. package/dist/{app → lib}/oas/parser/dereference/index.d.ts +0 -0
  504. package/dist/{app → lib}/oas/parser/dereference/index.js +0 -0
  505. package/dist/{app → lib}/oas/parser/dereference/resolveRef.d.ts +0 -0
  506. package/dist/{app → lib}/oas/parser/dereference/resolveRef.js +0 -0
  507. package/dist/{app → lib}/oas/parser/index.d.ts +0 -0
  508. package/dist/{app → lib}/oas/parser/index.js +0 -0
  509. package/dist/{app → lib}/oas/parser/upgrade/index.d.ts +0 -0
  510. package/dist/{app → lib}/oas/parser/upgrade/index.js +0 -0
  511. package/dist/{app → lib}/plugins/markdown/Toc.d.ts +0 -0
  512. package/dist/{app → lib}/plugins/markdown/Toc.js +0 -0
  513. package/dist/{app → lib}/plugins/markdown/generateRoutes.d.ts +0 -0
  514. package/dist/{app → lib}/plugins/markdown/index.d.ts +0 -0
  515. package/dist/{app → lib}/plugins/markdown/index.js +0 -0
  516. package/dist/{app → lib}/plugins/openapi/MakeRequest.d.ts +0 -0
  517. package/dist/{app → lib}/plugins/openapi/MethodBadge.d.ts +0 -0
  518. package/dist/{app → lib}/plugins/openapi/MethodBadge.js +0 -0
  519. package/dist/{app → lib}/plugins/openapi/OperationList.d.ts +0 -0
  520. package/dist/{app → lib}/plugins/openapi/OperationListItem.d.ts +0 -0
  521. package/dist/{app → lib}/plugins/openapi/ParameterList.d.ts +0 -0
  522. package/dist/{app → lib}/plugins/openapi/ParameterListItem.d.ts +0 -0
  523. package/dist/{app → lib}/plugins/openapi/RequestBodySidecarBox.d.ts +0 -0
  524. package/dist/{app → lib}/plugins/openapi/ResponsesSidecarBox.d.ts +0 -0
  525. package/dist/{app → lib}/plugins/openapi/Select.d.ts +0 -0
  526. package/dist/{app → lib}/plugins/openapi/Select.js +0 -0
  527. package/dist/{app → lib}/plugins/openapi/Sidecar.d.ts +0 -0
  528. package/dist/{app → lib}/plugins/openapi/SidecarBox.d.ts +0 -0
  529. package/dist/{app → lib}/plugins/openapi/SidecarBox.js +0 -0
  530. package/dist/{app → lib}/plugins/openapi/graphql/fragment-masking.js +0 -0
  531. package/dist/{app → lib}/plugins/openapi/graphql/index.d.ts +0 -0
  532. package/dist/{app → lib}/plugins/openapi/graphql/index.js +0 -0
  533. package/dist/{app → lib}/plugins/openapi/index.d.ts +0 -0
  534. package/dist/{app → lib}/plugins/openapi/util/urql.d.ts +0 -0
  535. package/dist/{app → lib}/plugins/openapi/util/urql.js +0 -0
  536. package/dist/{app → lib}/plugins/openapi/worker/createSharedWorkerClient.d.ts +0 -0
  537. package/dist/{app → lib}/plugins/openapi/worker/worker.d.ts +0 -0
  538. package/dist/{app → lib}/plugins/openapi/worker/worker.js +0 -0
  539. package/dist/{app → lib}/plugins/redirect/index.js +0 -0
  540. package/dist/{app → lib}/ui/Callout.d.ts +0 -0
  541. package/dist/{app → lib}/ui/Callout.js +0 -0
  542. package/dist/{app → lib}/ui/Card.d.ts +0 -0
  543. package/dist/{app → lib}/ui/Card.js +0 -0
  544. package/dist/{app → lib}/ui/Note.d.ts +0 -0
  545. package/dist/{app → lib}/ui/Note.js +0 -0
  546. package/dist/{app → lib}/util/MdxComponents.d.ts +0 -0
  547. package/dist/{app → lib}/util/cn.d.ts +0 -0
  548. package/dist/{app → lib}/util/cn.js +0 -0
  549. package/dist/{app → lib}/util/createWaitForNotify.d.ts +0 -0
  550. package/dist/{app → lib}/util/createWaitForNotify.js +0 -0
  551. package/dist/{app → lib}/util/groupBy.d.ts +0 -0
  552. package/dist/{app → lib}/util/groupBy.js +0 -0
  553. package/dist/{app → lib}/util/joinPath.d.ts +0 -0
  554. package/dist/{app → lib}/util/joinPath.js +0 -0
  555. package/dist/{app → lib}/util/pastellize.d.ts +0 -0
  556. package/dist/{app → lib}/util/pastellize.js +0 -0
  557. package/dist/{app → lib}/util/slugify.d.ts +0 -0
  558. package/dist/{app → lib}/util/slugify.js +0 -0
  559. package/dist/{app → lib}/util/traverseNavigation.d.ts +0 -0
  560. package/dist/{app → lib}/util/traverseNavigation.js +0 -0
  561. package/dist/{app → lib}/util/useScrollToAnchor.d.ts +0 -0
  562. package/dist/{app → lib}/util/useScrollToAnchor.js +0 -0
  563. package/dist/{app → lib}/util/useScrollToTop.d.ts +0 -0
  564. package/dist/{app → lib}/util/useScrollToTop.js +0 -0
  565. package/dist/{app/oas/graphql/server.d.ts → vite/plugin-docs.test.d.ts} +0 -0
  566. package/src/{app → lib}/components/AnchorLink.tsx +0 -0
  567. package/src/{app → lib}/components/CategoryHeading.tsx +1 -1
  568. package/src/{app → lib}/components/Input.tsx +0 -0
  569. package/src/{app → lib}/components/Markdown.tsx +0 -0
  570. package/src/{app → lib}/components/TopNavigation.tsx +0 -0
  571. package/src/{app → lib}/components/context/ComponentsContext.tsx +0 -0
  572. package/src/{app → lib}/components/context/PluginSystem.ts +0 -0
  573. package/src/{app → lib}/components/context/ThemeContext.tsx +1 -1
  574. package/src/{app → lib}/components/context/ViewportAnchorContext.tsx +0 -0
  575. package/src/{app → lib}/components/navigation/useNavigationCollapsibleState.ts +0 -0
  576. package/src/{app → lib}/components/navigation/util.ts +0 -0
  577. package/src/{app → lib}/core/helmet.ts +0 -0
  578. package/src/{app → lib}/core/icons.tsx +0 -0
  579. package/src/{app → lib}/core/router.tsx +0 -0
  580. package/src/{app → lib}/oas/parser/dereference/index.ts +0 -0
  581. package/src/{app → lib}/oas/parser/dereference/resolveRef.ts +0 -0
  582. package/src/{app → lib}/oas/parser/index.ts +0 -0
  583. package/src/{app → lib}/oas/parser/schemas/v3.0.json +0 -0
  584. package/src/{app → lib}/oas/parser/schemas/v3.1.json +0 -0
  585. package/src/{app → lib}/oas/parser/upgrade/index.ts +0 -0
  586. package/src/{app → lib}/plugins/markdown/Toc.tsx +0 -0
  587. package/src/{app → lib}/plugins/markdown/index.tsx +0 -0
  588. package/src/{app → lib}/plugins/openapi/MethodBadge.tsx +0 -0
  589. package/src/{app → lib}/plugins/openapi/Select.tsx +0 -0
  590. package/src/{app → lib}/plugins/openapi/SidecarBox.tsx +0 -0
  591. package/src/{app → lib}/plugins/openapi/graphql/fragment-masking.ts +1 -1
  592. /package/src/{app → lib}/plugins/openapi/graphql/index.ts +0 -0
  593. /package/src/{app → lib}/plugins/openapi/util/urql.ts +0 -0
  594. /package/src/{app → lib}/plugins/openapi/worker/worker.ts +0 -0
  595. /package/src/{app → lib}/ui/Callout.tsx +0 -0
  596. /package/src/{app → lib}/ui/Card.tsx +0 -0
  597. /package/src/{app → lib}/ui/Note.tsx +0 -0
  598. /package/src/{app → lib}/util/cn.ts +0 -0
  599. /package/src/{app → lib}/util/createWaitForNotify.ts +0 -0
  600. /package/src/{app → lib}/util/groupBy.ts +0 -0
  601. /package/src/{app → lib}/util/joinPath.tsx +0 -0
  602. /package/src/{app → lib}/util/pastellize.ts +0 -0
  603. /package/src/{app → lib}/util/slugify.ts +0 -0
  604. /package/src/{app → lib}/util/traverseNavigation.ts +0 -0
  605. /package/src/{app → lib}/util/useScrollToAnchor.ts +0 -0
  606. /package/src/{app → lib}/util/useScrollToTop.ts +0 -0
@@ -0,0 +1,1203 @@
1
+ var st = Object.defineProperty;
2
+ var xe = (t) => {
3
+ throw TypeError(t);
4
+ };
5
+ var at = (t, e, n) => e in t ? st(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
6
+ var P = (t, e, n) => at(t, typeof e != "symbol" ? e + "" : e, n), Se = (t, e, n) => e.has(t) || xe("Cannot " + n);
7
+ var i = (t, e, n) => (Se(t, e, "read from private field"), n ? n.call(t) : e.get(t)), C = (t, e, n) => e.has(t) ? xe("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), j = (t, e, n, r) => (Se(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
8
+ var X = (t, e, n, r) => ({
9
+ set _(s) {
10
+ j(t, e, s, n);
11
+ },
12
+ get _() {
13
+ return i(t, e, r);
14
+ }
15
+ });
16
+ import { S as Ve, h as He, Q as it, n as N, m as be, a as Oe, b as R, e as ot, c as ut, d as ct, f as lt, o as _e, r as Ee, g as dt, i as we, p as je, s as ht, j as ft, u as ve, k as a, l as K, q as pt, t as mt, O as vt, v as gt, D as yt } from "./DevPortalProvider-yBHPOS9_.js";
17
+ import U, { memo as Fe, createContext as xt, useEffect as G, useRef as ne, useState as St, forwardRef as bt, Suspense as Ke, useMemo as ee } from "react";
18
+ import { M as Ot, c as $, N as he, a as _t, u as Et, b as ge, d as ye, i as fe, j as Be, e as wt, f as te, R as ze, T as We, C as Ue, A as jt, g as Pt, H as At, S as Dt, h as Nt, k as Ct, l as Mt, m as Tt, n as Lt, o as Rt, V as kt } from "./Spinner-Daa7xsri.js";
19
+ import { L as Pn, p as An } from "./Spinner-Daa7xsri.js";
20
+ var T, Ie, It = (Ie = class extends Ve {
21
+ constructor(e = {}) {
22
+ super();
23
+ C(this, T);
24
+ this.config = e, j(this, T, /* @__PURE__ */ new Map());
25
+ }
26
+ build(e, n, r) {
27
+ const s = n.queryKey, o = n.queryHash ?? He(s, n);
28
+ let p = this.get(o);
29
+ return p || (p = new it({
30
+ cache: this,
31
+ queryKey: s,
32
+ queryHash: o,
33
+ options: e.defaultQueryOptions(n),
34
+ state: r,
35
+ defaultOptions: e.getQueryDefaults(s)
36
+ }), this.add(p)), p;
37
+ }
38
+ add(e) {
39
+ i(this, T).has(e.queryHash) || (i(this, T).set(e.queryHash, e), this.notify({
40
+ type: "added",
41
+ query: e
42
+ }));
43
+ }
44
+ remove(e) {
45
+ const n = i(this, T).get(e.queryHash);
46
+ n && (e.destroy(), n === e && i(this, T).delete(e.queryHash), this.notify({ type: "removed", query: e }));
47
+ }
48
+ clear() {
49
+ N.batch(() => {
50
+ this.getAll().forEach((e) => {
51
+ this.remove(e);
52
+ });
53
+ });
54
+ }
55
+ get(e) {
56
+ return i(this, T).get(e);
57
+ }
58
+ getAll() {
59
+ return [...i(this, T).values()];
60
+ }
61
+ find(e) {
62
+ const n = { exact: !0, ...e };
63
+ return this.getAll().find(
64
+ (r) => be(n, r)
65
+ );
66
+ }
67
+ findAll(e = {}) {
68
+ const n = this.getAll();
69
+ return Object.keys(e).length > 0 ? n.filter((r) => be(e, r)) : n;
70
+ }
71
+ notify(e) {
72
+ N.batch(() => {
73
+ this.listeners.forEach((n) => {
74
+ n(e);
75
+ });
76
+ });
77
+ }
78
+ onFocus() {
79
+ N.batch(() => {
80
+ this.getAll().forEach((e) => {
81
+ e.onFocus();
82
+ });
83
+ });
84
+ }
85
+ onOnline() {
86
+ N.batch(() => {
87
+ this.getAll().forEach((e) => {
88
+ e.onOnline();
89
+ });
90
+ });
91
+ }
92
+ }, T = new WeakMap(), Ie), D, W, qe, qt = (qe = class extends Ve {
93
+ constructor(e = {}) {
94
+ super();
95
+ C(this, D);
96
+ C(this, W);
97
+ this.config = e, j(this, D, /* @__PURE__ */ new Map()), j(this, W, Date.now());
98
+ }
99
+ build(e, n, r) {
100
+ const s = new Ot({
101
+ mutationCache: this,
102
+ mutationId: ++X(this, W)._,
103
+ options: e.defaultMutationOptions(n),
104
+ state: r
105
+ });
106
+ return this.add(s), s;
107
+ }
108
+ add(e) {
109
+ const n = Y(e), r = i(this, D).get(n) ?? [];
110
+ r.push(e), i(this, D).set(n, r), this.notify({ type: "added", mutation: e });
111
+ }
112
+ remove(e) {
113
+ var r;
114
+ const n = Y(e);
115
+ if (i(this, D).has(n)) {
116
+ const s = (r = i(this, D).get(n)) == null ? void 0 : r.filter((o) => o !== e);
117
+ s && (s.length === 0 ? i(this, D).delete(n) : i(this, D).set(n, s));
118
+ }
119
+ this.notify({ type: "removed", mutation: e });
120
+ }
121
+ canRun(e) {
122
+ var r;
123
+ const n = (r = i(this, D).get(Y(e))) == null ? void 0 : r.find((s) => s.state.status === "pending");
124
+ return !n || n === e;
125
+ }
126
+ runNext(e) {
127
+ var r;
128
+ const n = (r = i(this, D).get(Y(e))) == null ? void 0 : r.find((s) => s !== e && s.state.isPaused);
129
+ return (n == null ? void 0 : n.continue()) ?? Promise.resolve();
130
+ }
131
+ clear() {
132
+ N.batch(() => {
133
+ this.getAll().forEach((e) => {
134
+ this.remove(e);
135
+ });
136
+ });
137
+ }
138
+ getAll() {
139
+ return [...i(this, D).values()].flat();
140
+ }
141
+ find(e) {
142
+ const n = { exact: !0, ...e };
143
+ return this.getAll().find(
144
+ (r) => Oe(n, r)
145
+ );
146
+ }
147
+ findAll(e = {}) {
148
+ return this.getAll().filter((n) => Oe(e, n));
149
+ }
150
+ notify(e) {
151
+ N.batch(() => {
152
+ this.listeners.forEach((n) => {
153
+ n(e);
154
+ });
155
+ });
156
+ }
157
+ resumePausedMutations() {
158
+ const e = this.getAll().filter((n) => n.state.isPaused);
159
+ return N.batch(
160
+ () => Promise.all(
161
+ e.map((n) => n.continue().catch(R))
162
+ )
163
+ );
164
+ }
165
+ }, D = new WeakMap(), W = new WeakMap(), qe);
166
+ function Y(t) {
167
+ var e;
168
+ return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
169
+ }
170
+ function Qt(t) {
171
+ return {
172
+ onFetch: (e, n) => {
173
+ const r = async () => {
174
+ var S, g, O, M, L;
175
+ const s = e.options, o = (O = (g = (S = e.fetchOptions) == null ? void 0 : S.meta) == null ? void 0 : g.fetchMore) == null ? void 0 : O.direction, p = ((M = e.state.data) == null ? void 0 : M.pages) || [], m = ((L = e.state.data) == null ? void 0 : L.pageParams) || [], E = { pages: [], pageParams: [] };
176
+ let x = !1;
177
+ const u = (d) => {
178
+ Object.defineProperty(d, "signal", {
179
+ enumerable: !0,
180
+ get: () => (e.signal.aborted ? x = !0 : e.signal.addEventListener("abort", () => {
181
+ x = !0;
182
+ }), e.signal)
183
+ });
184
+ }, l = ot(e.options, e.fetchOptions), h = async (d, c, y) => {
185
+ if (x)
186
+ return Promise.reject();
187
+ if (c == null && d.pages.length)
188
+ return Promise.resolve(d);
189
+ const f = {
190
+ queryKey: e.queryKey,
191
+ pageParam: c,
192
+ direction: y ? "backward" : "forward",
193
+ meta: e.options.meta
194
+ };
195
+ u(f);
196
+ const _ = await l(
197
+ f
198
+ ), { maxPages: A } = e.options, w = y ? ut : ct;
199
+ return {
200
+ pages: w(d.pages, _, A),
201
+ pageParams: w(d.pageParams, c, A)
202
+ };
203
+ };
204
+ let v;
205
+ if (o && p.length) {
206
+ const d = o === "backward", c = d ? Vt : Pe, y = {
207
+ pages: p,
208
+ pageParams: m
209
+ }, f = c(s, y);
210
+ v = await h(y, f, d);
211
+ } else {
212
+ v = await h(
213
+ E,
214
+ m[0] ?? s.initialPageParam
215
+ );
216
+ const d = t ?? p.length;
217
+ for (let c = 1; c < d; c++) {
218
+ const y = Pe(s, v);
219
+ v = await h(v, y);
220
+ }
221
+ }
222
+ return v;
223
+ };
224
+ e.options.persister ? e.fetchFn = () => {
225
+ var s, o;
226
+ return (o = (s = e.options).persister) == null ? void 0 : o.call(
227
+ s,
228
+ r,
229
+ {
230
+ queryKey: e.queryKey,
231
+ meta: e.options.meta,
232
+ signal: e.signal
233
+ },
234
+ n
235
+ );
236
+ } : e.fetchFn = r;
237
+ }
238
+ };
239
+ }
240
+ function Pe(t, { pages: e, pageParams: n }) {
241
+ const r = e.length - 1;
242
+ return t.getNextPageParam(
243
+ e[r],
244
+ e,
245
+ n[r],
246
+ n
247
+ );
248
+ }
249
+ function Vt(t, { pages: e, pageParams: n }) {
250
+ var r;
251
+ return (r = t.getPreviousPageParam) == null ? void 0 : r.call(
252
+ t,
253
+ e[0],
254
+ e,
255
+ n[0],
256
+ n
257
+ );
258
+ }
259
+ var b, k, I, Q, V, q, H, F, Qe, Ht = (Qe = class {
260
+ constructor(t = {}) {
261
+ C(this, b);
262
+ C(this, k);
263
+ C(this, I);
264
+ C(this, Q);
265
+ C(this, V);
266
+ C(this, q);
267
+ C(this, H);
268
+ C(this, F);
269
+ j(this, b, t.queryCache || new It()), j(this, k, t.mutationCache || new qt()), j(this, I, t.defaultOptions || {}), j(this, Q, /* @__PURE__ */ new Map()), j(this, V, /* @__PURE__ */ new Map()), j(this, q, 0);
270
+ }
271
+ mount() {
272
+ X(this, q)._++, i(this, q) === 1 && (j(this, H, lt.subscribe(async (t) => {
273
+ t && (await this.resumePausedMutations(), i(this, b).onFocus());
274
+ })), j(this, F, _e.subscribe(async (t) => {
275
+ t && (await this.resumePausedMutations(), i(this, b).onOnline());
276
+ })));
277
+ }
278
+ unmount() {
279
+ var t, e;
280
+ X(this, q)._--, i(this, q) === 0 && ((t = i(this, H)) == null || t.call(this), j(this, H, void 0), (e = i(this, F)) == null || e.call(this), j(this, F, void 0));
281
+ }
282
+ isFetching(t) {
283
+ return i(this, b).findAll({ ...t, fetchStatus: "fetching" }).length;
284
+ }
285
+ isMutating(t) {
286
+ return i(this, k).findAll({ ...t, status: "pending" }).length;
287
+ }
288
+ getQueryData(t) {
289
+ var n;
290
+ const e = this.defaultQueryOptions({ queryKey: t });
291
+ return (n = i(this, b).get(e.queryHash)) == null ? void 0 : n.state.data;
292
+ }
293
+ ensureQueryData(t) {
294
+ const e = this.getQueryData(t.queryKey);
295
+ if (e === void 0)
296
+ return this.fetchQuery(t);
297
+ {
298
+ const n = this.defaultQueryOptions(t), r = i(this, b).build(this, n);
299
+ return t.revalidateIfStale && r.isStaleByTime(Ee(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(e);
300
+ }
301
+ }
302
+ getQueriesData(t) {
303
+ return i(this, b).findAll(t).map(({ queryKey: e, state: n }) => {
304
+ const r = n.data;
305
+ return [e, r];
306
+ });
307
+ }
308
+ setQueryData(t, e, n) {
309
+ const r = this.defaultQueryOptions({ queryKey: t }), s = i(this, b).get(
310
+ r.queryHash
311
+ ), o = s == null ? void 0 : s.state.data, p = dt(e, o);
312
+ if (p !== void 0)
313
+ return i(this, b).build(this, r).setData(p, { ...n, manual: !0 });
314
+ }
315
+ setQueriesData(t, e, n) {
316
+ return N.batch(
317
+ () => i(this, b).findAll(t).map(({ queryKey: r }) => [
318
+ r,
319
+ this.setQueryData(r, e, n)
320
+ ])
321
+ );
322
+ }
323
+ getQueryState(t) {
324
+ var n;
325
+ const e = this.defaultQueryOptions({ queryKey: t });
326
+ return (n = i(this, b).get(e.queryHash)) == null ? void 0 : n.state;
327
+ }
328
+ removeQueries(t) {
329
+ const e = i(this, b);
330
+ N.batch(() => {
331
+ e.findAll(t).forEach((n) => {
332
+ e.remove(n);
333
+ });
334
+ });
335
+ }
336
+ resetQueries(t, e) {
337
+ const n = i(this, b), r = {
338
+ type: "active",
339
+ ...t
340
+ };
341
+ return N.batch(() => (n.findAll(t).forEach((s) => {
342
+ s.reset();
343
+ }), this.refetchQueries(r, e)));
344
+ }
345
+ cancelQueries(t = {}, e = {}) {
346
+ const n = { revert: !0, ...e }, r = N.batch(
347
+ () => i(this, b).findAll(t).map((s) => s.cancel(n))
348
+ );
349
+ return Promise.all(r).then(R).catch(R);
350
+ }
351
+ invalidateQueries(t = {}, e = {}) {
352
+ return N.batch(() => {
353
+ if (i(this, b).findAll(t).forEach((r) => {
354
+ r.invalidate();
355
+ }), t.refetchType === "none")
356
+ return Promise.resolve();
357
+ const n = {
358
+ ...t,
359
+ type: t.refetchType ?? t.type ?? "active"
360
+ };
361
+ return this.refetchQueries(n, e);
362
+ });
363
+ }
364
+ refetchQueries(t = {}, e) {
365
+ const n = {
366
+ ...e,
367
+ cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
368
+ }, r = N.batch(
369
+ () => i(this, b).findAll(t).filter((s) => !s.isDisabled()).map((s) => {
370
+ let o = s.fetch(void 0, n);
371
+ return n.throwOnError || (o = o.catch(R)), s.state.fetchStatus === "paused" ? Promise.resolve() : o;
372
+ })
373
+ );
374
+ return Promise.all(r).then(R);
375
+ }
376
+ fetchQuery(t) {
377
+ const e = this.defaultQueryOptions(t);
378
+ e.retry === void 0 && (e.retry = !1);
379
+ const n = i(this, b).build(this, e);
380
+ return n.isStaleByTime(
381
+ Ee(e.staleTime, n)
382
+ ) ? n.fetch(e) : Promise.resolve(n.state.data);
383
+ }
384
+ prefetchQuery(t) {
385
+ return this.fetchQuery(t).then(R).catch(R);
386
+ }
387
+ fetchInfiniteQuery(t) {
388
+ return t.behavior = Qt(t.pages), this.fetchQuery(t);
389
+ }
390
+ prefetchInfiniteQuery(t) {
391
+ return this.fetchInfiniteQuery(t).then(R).catch(R);
392
+ }
393
+ resumePausedMutations() {
394
+ return _e.isOnline() ? i(this, k).resumePausedMutations() : Promise.resolve();
395
+ }
396
+ getQueryCache() {
397
+ return i(this, b);
398
+ }
399
+ getMutationCache() {
400
+ return i(this, k);
401
+ }
402
+ getDefaultOptions() {
403
+ return i(this, I);
404
+ }
405
+ setDefaultOptions(t) {
406
+ j(this, I, t);
407
+ }
408
+ setQueryDefaults(t, e) {
409
+ i(this, Q).set(we(t), {
410
+ queryKey: t,
411
+ defaultOptions: e
412
+ });
413
+ }
414
+ getQueryDefaults(t) {
415
+ const e = [...i(this, Q).values()];
416
+ let n = {};
417
+ return e.forEach((r) => {
418
+ je(t, r.queryKey) && (n = { ...n, ...r.defaultOptions });
419
+ }), n;
420
+ }
421
+ setMutationDefaults(t, e) {
422
+ i(this, V).set(we(t), {
423
+ mutationKey: t,
424
+ defaultOptions: e
425
+ });
426
+ }
427
+ getMutationDefaults(t) {
428
+ const e = [...i(this, V).values()];
429
+ let n = {};
430
+ return e.forEach((r) => {
431
+ je(t, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
432
+ }), n;
433
+ }
434
+ defaultQueryOptions(t) {
435
+ if (t._defaulted)
436
+ return t;
437
+ const e = {
438
+ ...i(this, I).queries,
439
+ ...this.getQueryDefaults(t.queryKey),
440
+ ...t,
441
+ _defaulted: !0
442
+ };
443
+ return e.queryHash || (e.queryHash = He(
444
+ e.queryKey,
445
+ e
446
+ )), 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 === ht && (e.enabled = !1), e;
447
+ }
448
+ defaultMutationOptions(t) {
449
+ return t != null && t._defaulted ? t : {
450
+ ...i(this, I).mutations,
451
+ ...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
452
+ ...t,
453
+ _defaulted: !0
454
+ };
455
+ }
456
+ clear() {
457
+ i(this, b).clear(), i(this, k).clear();
458
+ }
459
+ }, b = new WeakMap(), k = new WeakMap(), I = new WeakMap(), Q = new WeakMap(), V = new WeakMap(), q = new WeakMap(), H = new WeakMap(), F = new WeakMap(), Qe), Ft = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
460
+ const Ae = (t) => {
461
+ let e;
462
+ const n = /* @__PURE__ */ new Set(), r = (u, l) => {
463
+ const h = typeof u == "function" ? u(e) : u;
464
+ if (!Object.is(h, e)) {
465
+ const v = e;
466
+ e = l ?? (typeof h != "object" || h === null) ? h : Object.assign({}, e, h), n.forEach((S) => S(e, v));
467
+ }
468
+ }, s = () => e, E = { setState: r, getState: s, getInitialState: () => x, subscribe: (u) => (n.add(u), () => n.delete(u)), destroy: () => {
469
+ (Ft ? "production" : void 0) !== "production" && console.warn(
470
+ "[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."
471
+ ), n.clear();
472
+ } }, x = e = t(r, s, E);
473
+ return E;
474
+ }, Kt = (t) => t ? Ae(t) : Ae;
475
+ var pe = { exports: {} }, ue = {}, J = { exports: {} }, ce = {};
476
+ /**
477
+ * @license React
478
+ * use-sync-external-store-shim.production.min.js
479
+ *
480
+ * Copyright (c) Facebook, Inc. and its affiliates.
481
+ *
482
+ * This source code is licensed under the MIT license found in the
483
+ * LICENSE file in the root directory of this source tree.
484
+ */
485
+ var De;
486
+ function Bt() {
487
+ if (De) return ce;
488
+ De = 1;
489
+ var t = U;
490
+ function e(l, h) {
491
+ return l === h && (l !== 0 || 1 / l === 1 / h) || l !== l && h !== h;
492
+ }
493
+ var n = typeof Object.is == "function" ? Object.is : e, r = t.useState, s = t.useEffect, o = t.useLayoutEffect, p = t.useDebugValue;
494
+ function m(l, h) {
495
+ var v = h(), S = r({ inst: { value: v, getSnapshot: h } }), g = S[0].inst, O = S[1];
496
+ return o(function() {
497
+ g.value = v, g.getSnapshot = h, E(g) && O({ inst: g });
498
+ }, [l, v, h]), s(function() {
499
+ return E(g) && O({ inst: g }), l(function() {
500
+ E(g) && O({ inst: g });
501
+ });
502
+ }, [l]), p(v), v;
503
+ }
504
+ function E(l) {
505
+ var h = l.getSnapshot;
506
+ l = l.value;
507
+ try {
508
+ var v = h();
509
+ return !n(l, v);
510
+ } catch {
511
+ return !0;
512
+ }
513
+ }
514
+ function x(l, h) {
515
+ return h();
516
+ }
517
+ var u = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? x : m;
518
+ return ce.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : u, ce;
519
+ }
520
+ var le = {};
521
+ /**
522
+ * @license React
523
+ * use-sync-external-store-shim.development.js
524
+ *
525
+ * Copyright (c) Facebook, Inc. and its affiliates.
526
+ *
527
+ * This source code is licensed under the MIT license found in the
528
+ * LICENSE file in the root directory of this source tree.
529
+ */
530
+ var Ne;
531
+ function zt() {
532
+ return Ne || (Ne = 1, process.env.NODE_ENV !== "production" && function() {
533
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
534
+ var t = U, e = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
535
+ function n(d) {
536
+ {
537
+ for (var c = arguments.length, y = new Array(c > 1 ? c - 1 : 0), f = 1; f < c; f++)
538
+ y[f - 1] = arguments[f];
539
+ r("error", d, y);
540
+ }
541
+ }
542
+ function r(d, c, y) {
543
+ {
544
+ var f = e.ReactDebugCurrentFrame, _ = f.getStackAddendum();
545
+ _ !== "" && (c += "%s", y = y.concat([_]));
546
+ var A = y.map(function(w) {
547
+ return String(w);
548
+ });
549
+ A.unshift("Warning: " + c), Function.prototype.apply.call(console[d], console, A);
550
+ }
551
+ }
552
+ function s(d, c) {
553
+ return d === c && (d !== 0 || 1 / d === 1 / c) || d !== d && c !== c;
554
+ }
555
+ var o = typeof Object.is == "function" ? Object.is : s, p = t.useState, m = t.useEffect, E = t.useLayoutEffect, x = t.useDebugValue, u = !1, l = !1;
556
+ function h(d, c, y) {
557
+ u || t.startTransition !== void 0 && (u = !0, n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
558
+ var f = c();
559
+ if (!l) {
560
+ var _ = c();
561
+ o(f, _) || (n("The result of getSnapshot should be cached to avoid an infinite loop"), l = !0);
562
+ }
563
+ var A = p({
564
+ inst: {
565
+ value: f,
566
+ getSnapshot: c
567
+ }
568
+ }), w = A[0].inst, B = A[1];
569
+ return E(function() {
570
+ w.value = f, w.getSnapshot = c, v(w) && B({
571
+ inst: w
572
+ });
573
+ }, [d, f, c]), m(function() {
574
+ v(w) && B({
575
+ inst: w
576
+ });
577
+ var re = function() {
578
+ v(w) && B({
579
+ inst: w
580
+ });
581
+ };
582
+ return d(re);
583
+ }, [d]), x(f), f;
584
+ }
585
+ function v(d) {
586
+ var c = d.getSnapshot, y = d.value;
587
+ try {
588
+ var f = c();
589
+ return !o(y, f);
590
+ } catch {
591
+ return !0;
592
+ }
593
+ }
594
+ function S(d, c, y) {
595
+ return c();
596
+ }
597
+ var g = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", O = !g, M = O ? S : h, L = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : M;
598
+ le.useSyncExternalStore = L, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
599
+ }()), le;
600
+ }
601
+ var Ce;
602
+ function Ge() {
603
+ return Ce || (Ce = 1, process.env.NODE_ENV === "production" ? J.exports = Bt() : J.exports = zt()), J.exports;
604
+ }
605
+ /**
606
+ * @license React
607
+ * use-sync-external-store-shim/with-selector.production.min.js
608
+ *
609
+ * Copyright (c) Facebook, Inc. and its affiliates.
610
+ *
611
+ * This source code is licensed under the MIT license found in the
612
+ * LICENSE file in the root directory of this source tree.
613
+ */
614
+ var Me;
615
+ function Wt() {
616
+ if (Me) return ue;
617
+ Me = 1;
618
+ var t = U, e = Ge();
619
+ function n(x, u) {
620
+ return x === u && (x !== 0 || 1 / x === 1 / u) || x !== x && u !== u;
621
+ }
622
+ var r = typeof Object.is == "function" ? Object.is : n, s = e.useSyncExternalStore, o = t.useRef, p = t.useEffect, m = t.useMemo, E = t.useDebugValue;
623
+ return ue.useSyncExternalStoreWithSelector = function(x, u, l, h, v) {
624
+ var S = o(null);
625
+ if (S.current === null) {
626
+ var g = { hasValue: !1, value: null };
627
+ S.current = g;
628
+ } else g = S.current;
629
+ S = m(function() {
630
+ function M(f) {
631
+ if (!L) {
632
+ if (L = !0, d = f, f = h(f), v !== void 0 && g.hasValue) {
633
+ var _ = g.value;
634
+ if (v(_, f)) return c = _;
635
+ }
636
+ return c = f;
637
+ }
638
+ if (_ = c, r(d, f)) return _;
639
+ var A = h(f);
640
+ return v !== void 0 && v(_, A) ? _ : (d = f, c = A);
641
+ }
642
+ var L = !1, d, c, y = l === void 0 ? null : l;
643
+ return [function() {
644
+ return M(u());
645
+ }, y === null ? void 0 : function() {
646
+ return M(y());
647
+ }];
648
+ }, [u, l, h, v]);
649
+ var O = s(x, S[0], S[1]);
650
+ return p(function() {
651
+ g.hasValue = !0, g.value = O;
652
+ }, [O]), E(O), O;
653
+ }, ue;
654
+ }
655
+ var de = {};
656
+ /**
657
+ * @license React
658
+ * use-sync-external-store-shim/with-selector.development.js
659
+ *
660
+ * Copyright (c) Facebook, Inc. and its affiliates.
661
+ *
662
+ * This source code is licensed under the MIT license found in the
663
+ * LICENSE file in the root directory of this source tree.
664
+ */
665
+ var Te;
666
+ function Ut() {
667
+ return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() {
668
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
669
+ var t = U, e = Ge();
670
+ function n(u, l) {
671
+ return u === l && (u !== 0 || 1 / u === 1 / l) || u !== u && l !== l;
672
+ }
673
+ var r = typeof Object.is == "function" ? Object.is : n, s = e.useSyncExternalStore, o = t.useRef, p = t.useEffect, m = t.useMemo, E = t.useDebugValue;
674
+ function x(u, l, h, v, S) {
675
+ var g = o(null), O;
676
+ g.current === null ? (O = {
677
+ hasValue: !1,
678
+ value: null
679
+ }, g.current = O) : O = g.current;
680
+ var M = m(function() {
681
+ var y = !1, f, _, A = function(z) {
682
+ if (!y) {
683
+ y = !0, f = z;
684
+ var se = v(z);
685
+ if (S !== void 0 && O.hasValue) {
686
+ var ae = O.value;
687
+ if (S(ae, se))
688
+ return _ = ae, ae;
689
+ }
690
+ return _ = se, se;
691
+ }
692
+ var rt = f, ie = _;
693
+ if (r(rt, z))
694
+ return ie;
695
+ var oe = v(z);
696
+ return S !== void 0 && S(ie, oe) ? ie : (f = z, _ = oe, oe);
697
+ }, w = h === void 0 ? null : h, B = function() {
698
+ return A(l());
699
+ }, re = w === null ? void 0 : function() {
700
+ return A(w());
701
+ };
702
+ return [B, re];
703
+ }, [l, h, v, S]), L = M[0], d = M[1], c = s(u, L, d);
704
+ return p(function() {
705
+ O.hasValue = !0, O.value = c;
706
+ }, [c]), E(c), c;
707
+ }
708
+ de.useSyncExternalStoreWithSelector = x, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
709
+ }()), de;
710
+ }
711
+ process.env.NODE_ENV === "production" ? pe.exports = Wt() : pe.exports = Ut();
712
+ var Gt = pe.exports;
713
+ const $t = /* @__PURE__ */ ft(Gt);
714
+ var $e = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
715
+ const { useDebugValue: Xt } = U, { useSyncExternalStoreWithSelector: Yt } = $t;
716
+ let Le = !1;
717
+ const Jt = (t) => t;
718
+ function Zt(t, e = Jt, n) {
719
+ ($e ? "production" : void 0) !== "production" && n && !Le && (console.warn(
720
+ "[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"
721
+ ), Le = !0);
722
+ const r = Yt(
723
+ t.subscribe,
724
+ t.getState,
725
+ t.getServerState || t.getInitialState,
726
+ e,
727
+ n
728
+ );
729
+ return Xt(r), r;
730
+ }
731
+ const Re = (t) => {
732
+ ($e ? "production" : void 0) !== "production" && typeof t != "function" && console.warn(
733
+ "[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."
734
+ );
735
+ const e = typeof t == "function" ? Kt(t) : t, n = (r, s) => Zt(e, r, s);
736
+ return Object.assign(n, e), n;
737
+ }, en = (t) => t ? Re(t) : Re, Xe = (t) => "getRoutes" in t && typeof t.getRoutes == "function", tn = (t) => "initialize" in t && typeof t.initialize == "function", nn = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Ye = new Ht(), me = en(
738
+ () => ({
739
+ isLoggedIn: !1
740
+ })
741
+ );
742
+ class rn {
743
+ constructor(e) {
744
+ P(this, "plugins", []);
745
+ P(this, "navigationPlugins");
746
+ P(this, "navigation");
747
+ P(this, "meta");
748
+ P(this, "authentication");
749
+ P(this, "state");
750
+ P(this, "initialize", async () => {
751
+ var e, n;
752
+ this.plugins.filter(tn).forEach((r) => r.initialize(this)), await ((n = (e = this.authentication) == null ? void 0 : e.initialize) == null ? void 0 : n.call(e, this));
753
+ });
754
+ P(this, "setUserProfile", async (e) => me.setState(e));
755
+ P(this, "invalidateCache", async (e) => {
756
+ await Ye.invalidateQueries({ queryKey: e });
757
+ });
758
+ P(this, "getApiIdentities", async () => (await Promise.all(
759
+ this.plugins.filter(nn).map((n) => n.getIdentities(this))
760
+ )).flat());
761
+ P(this, "login", async () => {
762
+ if (!this.authentication)
763
+ throw new Error("No authentication configured");
764
+ return this.authentication.login(this);
765
+ });
766
+ P(this, "logout", async () => {
767
+ if (!this.authentication)
768
+ throw new Error("No authentication configured");
769
+ return this.authentication.logout(this);
770
+ });
771
+ P(this, "getNavigation", async (e) => (await Promise.all(
772
+ this.navigationPlugins.map(
773
+ async (r) => {
774
+ var s;
775
+ return (s = r.getNavigation) == null ? void 0 : s.call(r, e);
776
+ }
777
+ )
778
+ )).flatMap((r) => r ?? []));
779
+ P(this, "sessionStorage", {
780
+ get: async (e) => localStorage.getItem(`session-${e}`) ?? "",
781
+ setProfile: async () => {
782
+ },
783
+ set: async (e, n) => localStorage.setItem(`session-${e}`, n)
784
+ });
785
+ this.config = e, this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(Xe), this.authentication = e.authentication, this.meta = e.meta, this.state = me;
786
+ }
787
+ get url() {
788
+ return new URL(window.location.href);
789
+ }
790
+ }
791
+ /**
792
+ * @license lucide-react v0.378.0 - ISC
793
+ *
794
+ * This source code is licensed under the ISC license.
795
+ * See the LICENSE file in the root directory of this source tree.
796
+ */
797
+ const Je = $("ChevronRight", [
798
+ ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
799
+ ]);
800
+ /**
801
+ * @license lucide-react v0.378.0 - ISC
802
+ *
803
+ * This source code is licensed under the ISC license.
804
+ * See the LICENSE file in the root directory of this source tree.
805
+ */
806
+ const sn = $("ExternalLink", [
807
+ ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
808
+ ["path", { d: "M10 14 21 3", key: "gplh6r" }],
809
+ ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
810
+ ]);
811
+ /**
812
+ * @license lucide-react v0.378.0 - ISC
813
+ *
814
+ * This source code is licensed under the ISC license.
815
+ * See the LICENSE file in the root directory of this source tree.
816
+ */
817
+ const an = $("MoonStar", [
818
+ ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
819
+ ["path", { d: "M20 3v4", key: "1olli1" }],
820
+ ["path", { d: "M22 5h-4", key: "1gvqau" }]
821
+ ]);
822
+ /**
823
+ * @license lucide-react v0.378.0 - ISC
824
+ *
825
+ * This source code is licensed under the ISC license.
826
+ * See the LICENSE file in the root directory of this source tree.
827
+ */
828
+ const on = $("Search", [
829
+ ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
830
+ ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
831
+ ]);
832
+ /**
833
+ * @license lucide-react v0.378.0 - ISC
834
+ *
835
+ * This source code is licensed under the ISC license.
836
+ * See the LICENSE file in the root directory of this source tree.
837
+ */
838
+ const un = $("Sun", [
839
+ ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
840
+ ["path", { d: "M12 2v2", key: "tus03m" }],
841
+ ["path", { d: "M12 20v2", key: "1lh1kg" }],
842
+ ["path", { d: "m4.93 4.93 1.41 1.41", key: "149t6j" }],
843
+ ["path", { d: "m17.66 17.66 1.41 1.41", key: "ptbguv" }],
844
+ ["path", { d: "M2 12h2", key: "1t8f8n" }],
845
+ ["path", { d: "M20 12h2", key: "1q8mjw" }],
846
+ ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
847
+ ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
848
+ ]), cn = () => {
849
+ const { navigation: t } = ve();
850
+ return /* @__PURE__ */ a.jsx("nav", { className: "border-b border-border text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ a.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
851
+ he,
852
+ {
853
+ className: ({ isActive: n }) => _t(
854
+ "block py-3.5 font-medium -mb-px border-b-2",
855
+ n ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
856
+ ),
857
+ to: e.path,
858
+ children: e.label
859
+ }
860
+ ) }, e.label)) }) });
861
+ }, Ze = Fe(function() {
862
+ const [e, n] = Et(), { isLoggedIn: r, email: s } = me(), { login: o, logout: p, meta: m } = ve(), E = e ? an : un;
863
+ return /* @__PURE__ */ a.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
864
+ /* @__PURE__ */ a.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: [
865
+ /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
866
+ (m == null ? void 0 : m.logo) && /* @__PURE__ */ a.jsx("img", { src: m.logo, alt: "My Dev Portal", className: "h-10" }),
867
+ /* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: m == null ? void 0 : m.headerTitle })
868
+ ] }),
869
+ /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
870
+ /* @__PURE__ */ a.jsx("div", { className: "w-full max-w-prose", children: /* @__PURE__ */ a.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: [
871
+ /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
872
+ /* @__PURE__ */ a.jsx(on, { size: 14 }),
873
+ "Search"
874
+ ] }),
875
+ /* @__PURE__ */ a.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" })
876
+ ] }) }),
877
+ /* @__PURE__ */ a.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex", children: [
878
+ r ? /* @__PURE__ */ a.jsxs(
879
+ "button",
880
+ {
881
+ className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded text-nowrap",
882
+ onClick: p,
883
+ children: [
884
+ "Logout ",
885
+ s ? `(${s})` : null
886
+ ]
887
+ }
888
+ ) : /* @__PURE__ */ a.jsx(
889
+ "button",
890
+ {
891
+ className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded",
892
+ onClick: o,
893
+ children: "Login"
894
+ }
895
+ ),
896
+ /* @__PURE__ */ a.jsx(
897
+ "button",
898
+ {
899
+ className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
900
+ onClick: n,
901
+ children: /* @__PURE__ */ a.jsx(E, { size: 18 })
902
+ }
903
+ )
904
+ ] })
905
+ ] })
906
+ ] }),
907
+ /* @__PURE__ */ a.jsx(cn, {})
908
+ ] }) });
909
+ }), et = {
910
+ Header: Ze
911
+ }, ln = xt(et), dn = ln.Provider, hn = () => {
912
+ const t = K(), { setActiveAnchor: e } = ge();
913
+ G(() => {
914
+ if (!t.hash) return;
915
+ const n = t.hash.split("/")[0].slice(1), r = document.getElementById(decodeURIComponent(n));
916
+ if (r) {
917
+ requestAnimationFrame(() => {
918
+ r.scrollIntoView(), requestIdleCallback(() => e(n));
919
+ });
920
+ return;
921
+ }
922
+ const s = new MutationObserver((o, p) => {
923
+ const m = document.getElementById(decodeURIComponent(n));
924
+ m && (m.scrollIntoView(), requestIdleCallback(() => e(n)), p.disconnect());
925
+ });
926
+ return s.observe(document.body, { childList: !0, subtree: !0 }), () => s.disconnect();
927
+ }, [t.hash, e]);
928
+ }, fn = () => {
929
+ const t = K(), e = ne(t.pathname);
930
+ G(() => {
931
+ e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
932
+ }, [t.pathname]);
933
+ }, tt = ({
934
+ item: t,
935
+ defaultOpen: e,
936
+ path: n
937
+ }) => {
938
+ const [r, s] = St(e), o = K(), p = ne(o.pathname);
939
+ return G(() => {
940
+ !r && p.current !== o.pathname && s(ye(t, o.pathname, n)), p.current = o.pathname;
941
+ }, [r, t, n, o.pathname]), [r, s];
942
+ }, Z = Pt(
943
+ "flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
944
+ {
945
+ variants: {
946
+ isActive: {
947
+ true: "text-primary font-medium",
948
+ false: "text-foreground/80"
949
+ },
950
+ isMuted: {
951
+ true: "text-foreground/30",
952
+ false: ""
953
+ }
954
+ }
955
+ }
956
+ ), pn = "data-anchor", nt = ({
957
+ category: t,
958
+ item: e,
959
+ activeAnchor: n,
960
+ currentTopNavItem: r,
961
+ basePath: s = ""
962
+ }) => {
963
+ const o = fe(e) ? Be(s, e.path) : "", p = K(), [m, E] = tt({
964
+ item: e,
965
+ path: o,
966
+ defaultOpen: () => ye(e, p.pathname, o)
967
+ });
968
+ if (wt(e)) {
969
+ const u = te(
970
+ "flex items-center gap-2",
971
+ Z({
972
+ isActive: e.href === p.pathname
973
+ })
974
+ );
975
+ return e.href.startsWith("http") ? /* @__PURE__ */ a.jsxs(
976
+ "a",
977
+ {
978
+ className: u,
979
+ href: e.href,
980
+ target: "_blank",
981
+ rel: "noopener noreferrer",
982
+ children: [
983
+ e.label,
984
+ /* @__PURE__ */ a.jsx(sn, { size: 14 })
985
+ ]
986
+ }
987
+ ) : /* @__PURE__ */ a.jsx(he, { className: u, to: e.href, children: e.label });
988
+ }
989
+ const x = /* @__PURE__ */ a.jsxs("div", { className: "flex justify-between w-full", children: [
990
+ /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
991
+ e.icon,
992
+ typeof e.label != "string" ? e.label : /* @__PURE__ */ a.jsx("span", { className: "truncate", children: e.label })
993
+ ] }),
994
+ e.children && /* @__PURE__ */ a.jsx(
995
+ Je,
996
+ {
997
+ size: 16,
998
+ className: "transition shrink-0 group-data-[state=open]:rotate-90"
999
+ }
1000
+ )
1001
+ ] });
1002
+ return /* @__PURE__ */ a.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ a.jsxs(
1003
+ ze,
1004
+ {
1005
+ open: m,
1006
+ onOpenChange: () => E((u) => !u),
1007
+ className: "flex flex-col",
1008
+ children: [
1009
+ /* @__PURE__ */ a.jsx(
1010
+ We,
1011
+ {
1012
+ className: te(
1013
+ "group text-start",
1014
+ Z({ isActive: !1 })
1015
+ ),
1016
+ children: x
1017
+ }
1018
+ ),
1019
+ /* @__PURE__ */ a.jsx(Ue, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-border border-l ps-1.5", children: e.children.map((u) => /* @__PURE__ */ a.jsx(
1020
+ nt,
1021
+ {
1022
+ category: t,
1023
+ item: u,
1024
+ activeAnchor: n,
1025
+ currentTopNavItem: r,
1026
+ basePath: o
1027
+ },
1028
+ fe(u) ? u.path : u.href
1029
+ )) }) })
1030
+ ]
1031
+ }
1032
+ ) : e.path.startsWith("#") ? /* @__PURE__ */ a.jsx(
1033
+ jt,
1034
+ {
1035
+ to: e.path,
1036
+ [pn]: e.path,
1037
+ className: Z({
1038
+ isActive: e.path.slice(1) === n,
1039
+ isMuted: e.muted
1040
+ }),
1041
+ children: x
1042
+ }
1043
+ ) : /* @__PURE__ */ a.jsx(
1044
+ he,
1045
+ {
1046
+ className: ({ isActive: u }) => Z({ isActive: u }),
1047
+ to: o,
1048
+ children: x
1049
+ }
1050
+ ) });
1051
+ }, mn = ({
1052
+ category: t
1053
+ }) => {
1054
+ const { activeAnchor: e } = ge(), n = pt(), r = K(), s = t.collapsible ?? !0, [o, p] = tt({
1055
+ item: t,
1056
+ path: (n == null ? void 0 : n.path) ?? "",
1057
+ defaultOpen: () => !s || t.expanded || ye(t, r.pathname, (n == null ? void 0 : n.path) ?? "")
1058
+ });
1059
+ return /* @__PURE__ */ a.jsxs(
1060
+ ze,
1061
+ {
1062
+ open: o,
1063
+ onOpenChange: () => p((m) => !m),
1064
+ children: [
1065
+ t.label.length > 0 ? /* @__PURE__ */ a.jsx(We, { asChild: s, disabled: !s, children: /* @__PURE__ */ a.jsxs(
1066
+ "h5",
1067
+ {
1068
+ className: te(
1069
+ "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]",
1070
+ s ? "hover:bg-accent" : "cursor-auto"
1071
+ ),
1072
+ children: [
1073
+ t.label,
1074
+ s && /* @__PURE__ */ a.jsx(
1075
+ Je,
1076
+ {
1077
+ className: "group-data-[state=open]:rotate-90 transition",
1078
+ size: 16
1079
+ }
1080
+ )
1081
+ ]
1082
+ }
1083
+ ) }) : "Endpoints",
1084
+ /* @__PURE__ */ a.jsx(Ue, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ a.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((m) => /* @__PURE__ */ a.jsx(
1085
+ nt,
1086
+ {
1087
+ category: t,
1088
+ item: m,
1089
+ activeAnchor: e,
1090
+ currentTopNavItem: n,
1091
+ basePath: Be(n == null ? void 0 : n.path, t.path)
1092
+ },
1093
+ fe(m) ? m.path + m.label : m.href
1094
+ )) }) })
1095
+ ]
1096
+ },
1097
+ t.label
1098
+ );
1099
+ }, vn = bt(function({ children: e, className: n, pushMainContent: r }, s) {
1100
+ return /* @__PURE__ */ a.jsx(
1101
+ "nav",
1102
+ {
1103
+ "data-navigation": String(r),
1104
+ className: te(
1105
+ "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",
1106
+ n
1107
+ ),
1108
+ ref: s,
1109
+ children: e
1110
+ }
1111
+ );
1112
+ }), gn = () => {
1113
+ const t = ne(null), e = mt();
1114
+ return /* @__PURE__ */ a.jsx(
1115
+ vn,
1116
+ {
1117
+ ref: t,
1118
+ pushMainContent: e.data.items.length > 0,
1119
+ children: e.data.items.map((n) => /* @__PURE__ */ a.jsx(mn, { category: n }, n.label))
1120
+ }
1121
+ );
1122
+ }, ke = ({ children: t }) => {
1123
+ const e = K(), { setActiveAnchor: n } = ge(), { meta: r } = ve();
1124
+ hn(), fn();
1125
+ const s = ne(e.pathname);
1126
+ return G(() => {
1127
+ e.pathname !== s.current && n(""), s.current = e.pathname;
1128
+ }, [e.pathname, n]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1129
+ /* @__PURE__ */ a.jsxs(At, { titleTemplate: r == null ? void 0 : r.pageTitle, children: [
1130
+ /* @__PURE__ */ a.jsx("title", { children: "Home" }),
1131
+ (r == null ? void 0 : r.description) && /* @__PURE__ */ a.jsx("meta", { name: "description", content: r.description }),
1132
+ (r == null ? void 0 : r.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: r.favicon })
1133
+ ] }),
1134
+ /* @__PURE__ */ a.jsx(Ze, {}),
1135
+ /* @__PURE__ */ a.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ a.jsxs(
1136
+ Ke,
1137
+ {
1138
+ fallback: /* @__PURE__ */ a.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ a.jsx(Dt, {}) }),
1139
+ children: [
1140
+ /* @__PURE__ */ a.jsx(gn, {}),
1141
+ /* @__PURE__ */ a.jsx(
1142
+ "main",
1143
+ {
1144
+ className: `dark:border-white/10 translate-x-0
1145
+ lg:overflow-visible
1146
+ lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]
1147
+ lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] peer-data-[navigation=true]:pl-12`,
1148
+ children: t ?? /* @__PURE__ */ a.jsx(vt, {})
1149
+ }
1150
+ )
1151
+ ]
1152
+ }
1153
+ ) })
1154
+ ] });
1155
+ };
1156
+ function yn({ plugins: t }) {
1157
+ const e = ee(() => {
1158
+ const n = (t ?? []).flatMap(
1159
+ (r) => Xe(r) ? r.getRoutes() : []
1160
+ );
1161
+ return Nt([
1162
+ {
1163
+ path: "/",
1164
+ element: /* @__PURE__ */ a.jsx(ke, {}),
1165
+ errorElement: /* @__PURE__ */ a.jsx(ke, { children: /* @__PURE__ */ a.jsx("div", { className: "h-[75vh] flex items-center justify-center", children: "Error, look at the console" }) }),
1166
+ children: n
1167
+ }
1168
+ ]);
1169
+ }, [t]);
1170
+ return /* @__PURE__ */ a.jsx(Ct, { router: e });
1171
+ }
1172
+ const xn = (t) => {
1173
+ const e = ee(
1174
+ () => ({ ...et, ...t.overrides }),
1175
+ [t.overrides]
1176
+ ), n = ee(
1177
+ () => ({ ...Mt, ...t.mdxComponents }),
1178
+ [t.mdxComponents]
1179
+ ), r = ee(() => new rn(t), [t]);
1180
+ return G(() => {
1181
+ r.initialize();
1182
+ }, [r]), /* @__PURE__ */ a.jsx(gt, { client: Ye, children: /* @__PURE__ */ a.jsx(Tt, { children: /* @__PURE__ */ a.jsx(yt, { value: r, children: /* @__PURE__ */ a.jsx(Lt, { components: n, children: /* @__PURE__ */ a.jsx(Rt, { children: /* @__PURE__ */ a.jsx(dn, { value: e, children: /* @__PURE__ */ a.jsx(kt, { children: /* @__PURE__ */ a.jsx(
1183
+ Ke,
1184
+ {
1185
+ fallback: /* @__PURE__ */ a.jsx("div", { className: "grid place-items-center h-full", children: "Loading..." }),
1186
+ children: /* @__PURE__ */ a.jsx(
1187
+ yn,
1188
+ {
1189
+ plugins: [
1190
+ ...t.plugins ?? [],
1191
+ ...t.authentication ? [t.authentication] : []
1192
+ ]
1193
+ }
1194
+ )
1195
+ }
1196
+ ) }) }) }) }) }) }) });
1197
+ }, Sn = Fe(xn);
1198
+ Sn.displayName = "DevPortal";
1199
+ export {
1200
+ Sn as DevPortal,
1201
+ Pn as Link,
1202
+ An as useMDXComponents
1203
+ };