zudoku 0.1.1-dev.5 → 0.1.1-dev.50

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 (582) 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 +20 -7
  24. package/dist/index.d.ts +2 -6
  25. package/dist/index.js +1 -5
  26. package/dist/index.js.map +1 -1
  27. package/dist/lib/authentication/authentication.js.map +1 -0
  28. package/dist/{app → lib}/authentication/clerk.d.ts +2 -2
  29. package/dist/{app → lib}/authentication/clerk.js +8 -5
  30. package/dist/lib/authentication/clerk.js.map +1 -0
  31. package/dist/{app → lib}/authentication/openid.js +3 -2
  32. package/dist/lib/authentication/openid.js.map +1 -0
  33. package/dist/{app → lib}/components/AnchorLink.js.map +1 -1
  34. package/dist/{app → lib}/components/CategoryHeading.js.map +1 -1
  35. package/dist/{app → lib/components}/DevPortal.d.ts +7 -7
  36. package/dist/lib/components/DevPortal.js +28 -0
  37. package/dist/lib/components/DevPortal.js.map +1 -0
  38. package/dist/{app → lib}/components/Dialog.d.ts +2 -2
  39. package/dist/{app → lib}/components/Dialog.js +3 -3
  40. package/dist/lib/components/Dialog.js.map +1 -0
  41. package/dist/lib/components/Header.d.ts +1 -0
  42. package/dist/lib/components/Header.js +15 -0
  43. package/dist/{app → lib}/components/Header.js.map +1 -1
  44. package/dist/{app → lib/components}/Heading.js +2 -2
  45. package/dist/lib/components/Heading.js.map +1 -0
  46. package/dist/{app → lib}/components/Input.js.map +1 -1
  47. package/dist/{app → lib}/components/Layout.js +3 -3
  48. package/dist/lib/components/Layout.js.map +1 -0
  49. package/dist/lib/components/Link.d.ts +1 -0
  50. package/dist/lib/components/Link.js +2 -0
  51. package/dist/lib/components/Link.js.map +1 -0
  52. package/dist/{app → lib}/components/Markdown.js.map +1 -1
  53. package/dist/lib/components/Router.d.ts +4 -0
  54. package/dist/lib/components/Router.js +20 -0
  55. package/dist/lib/components/Router.js.map +1 -0
  56. package/dist/lib/components/Select.d.ts +13 -0
  57. package/dist/lib/components/Select.js +27 -0
  58. package/dist/lib/components/Select.js.map +1 -0
  59. package/dist/lib/components/Spinner.d.ts +3 -0
  60. package/dist/lib/components/Spinner.js +4 -0
  61. package/dist/lib/components/Spinner.js.map +1 -0
  62. package/dist/{app → lib}/components/SyntaxHighlight.d.ts +2 -1
  63. package/dist/{app → lib}/components/SyntaxHighlight.js +4 -1
  64. package/dist/lib/components/SyntaxHighlight.js.map +1 -0
  65. package/dist/{app → lib}/components/TopNavigation.js.map +1 -1
  66. package/dist/{app → lib}/components/context/ComponentsContext.d.ts +1 -1
  67. package/dist/{app → lib}/components/context/ComponentsContext.js.map +1 -1
  68. package/dist/{app → lib}/components/context/DevPortalProvider.js +1 -1
  69. package/dist/lib/components/context/DevPortalProvider.js.map +1 -0
  70. package/dist/lib/components/context/PluginSystem.js.map +1 -0
  71. package/dist/{app → lib}/components/context/ThemeContext.js +1 -1
  72. package/dist/{app → lib}/components/context/ThemeContext.js.map +1 -1
  73. package/dist/{app → lib}/components/context/ViewportAnchorContext.js.map +1 -1
  74. package/dist/lib/components/index.d.ts +3 -0
  75. package/dist/lib/components/index.js +4 -0
  76. package/dist/lib/components/index.js.map +1 -0
  77. package/dist/{app → lib}/components/navigation/SideNavigation.js +1 -1
  78. package/dist/{app → lib}/components/navigation/SideNavigation.js.map +1 -1
  79. package/dist/{app → lib}/components/navigation/SideNavigationCategory.js +1 -1
  80. package/dist/{app → lib}/components/navigation/SideNavigationCategory.js.map +1 -1
  81. package/dist/{app → lib}/components/navigation/SideNavigationItem.d.ts +2 -1
  82. package/dist/{app → lib}/components/navigation/SideNavigationItem.js +12 -6
  83. package/dist/lib/components/navigation/SideNavigationItem.js.map +1 -0
  84. package/dist/{app → lib}/components/navigation/SideNavigationWrapper.d.ts +3 -0
  85. package/dist/lib/components/navigation/SideNavigationWrapper.js +7 -0
  86. package/dist/lib/components/navigation/SideNavigationWrapper.js.map +1 -0
  87. package/dist/{app → lib}/components/navigation/useNavigationCollapsibleState.js.map +1 -1
  88. package/dist/{app → lib}/components/navigation/util.js.map +1 -1
  89. package/dist/{app → lib}/core/DevPortalContext.d.ts +5 -6
  90. package/dist/{app → lib}/core/DevPortalContext.js +2 -2
  91. package/dist/lib/core/DevPortalContext.js.map +1 -0
  92. package/dist/{app → lib}/core/helmet.js.map +1 -1
  93. package/dist/lib/core/icons.js.map +1 -0
  94. package/dist/{app → lib}/core/plugins.d.ts +1 -1
  95. package/dist/{app → lib}/core/plugins.js +1 -1
  96. package/dist/{app → lib}/core/plugins.js.map +1 -1
  97. package/dist/lib/core/router.js.map +1 -0
  98. package/dist/lib/core/types/combine.js.map +1 -0
  99. package/dist/{app → lib}/oas/graphql/index.js +2 -2
  100. package/dist/lib/oas/graphql/index.js.map +1 -0
  101. package/dist/{app → lib}/oas/parser/dereference/index.js.map +1 -1
  102. package/dist/{app → lib}/oas/parser/dereference/resolveRef.js.map +1 -1
  103. package/dist/{app → lib}/oas/parser/index.js.map +1 -1
  104. package/dist/{app → lib}/oas/parser/upgrade/index.js.map +1 -1
  105. package/dist/lib/plugins/api-key/CreateApiKey.d.ts +5 -0
  106. package/dist/lib/plugins/api-key/CreateApiKey.js +37 -0
  107. package/dist/lib/plugins/api-key/CreateApiKey.js.map +1 -0
  108. package/dist/lib/plugins/api-key/SettingsApiKeys.d.ts +5 -0
  109. package/dist/lib/plugins/api-key/SettingsApiKeys.js +38 -0
  110. package/dist/lib/plugins/api-key/SettingsApiKeys.js.map +1 -0
  111. package/dist/lib/plugins/api-key/index.d.ts +30 -0
  112. package/dist/lib/plugins/api-key/index.js +76 -0
  113. package/dist/lib/plugins/api-key/index.js.map +1 -0
  114. package/dist/lib/plugins/index.d.ts +4 -0
  115. package/dist/lib/plugins/index.js +5 -0
  116. package/dist/lib/plugins/index.js.map +1 -0
  117. package/dist/lib/plugins/markdown/MdxPage.d.ts +5 -0
  118. package/dist/lib/plugins/markdown/MdxPage.js +60 -0
  119. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -0
  120. package/dist/{app → lib}/plugins/markdown/Toc.js.map +1 -1
  121. package/dist/{app → lib}/plugins/markdown/generateRoutes.js +1 -6
  122. package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -0
  123. package/dist/{app → lib}/plugins/markdown/index.js.map +1 -1
  124. package/dist/{app → lib}/plugins/openapi/ColorizedParam.d.ts +1 -2
  125. package/dist/{app → lib}/plugins/openapi/ColorizedParam.js +2 -2
  126. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -0
  127. package/dist/lib/plugins/openapi/MakeRequest.js +38 -0
  128. package/dist/lib/plugins/openapi/MakeRequest.js.map +1 -0
  129. package/dist/{app → lib}/plugins/openapi/MethodBadge.js.map +1 -1
  130. package/dist/{app → lib}/plugins/openapi/OperationList.js +12 -3
  131. package/dist/lib/plugins/openapi/OperationList.js.map +1 -0
  132. package/dist/lib/plugins/openapi/OperationListItem.js +18 -0
  133. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -0
  134. package/dist/{app → lib}/plugins/openapi/ParameterList.js +1 -1
  135. package/dist/{app → lib}/plugins/openapi/ParameterList.js.map +1 -1
  136. package/dist/lib/plugins/openapi/ParameterListItem.js +13 -0
  137. package/dist/{app → lib}/plugins/openapi/ParameterListItem.js.map +1 -1
  138. package/dist/{app → lib}/plugins/openapi/RequestBodySidecarBox.js +1 -1
  139. package/dist/{app → lib}/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  140. package/dist/{app → lib}/plugins/openapi/ResponsesSidecarBox.js +3 -3
  141. package/dist/{app → lib}/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  142. package/dist/lib/plugins/openapi/SchemaListView.d.ts +7 -0
  143. package/dist/lib/plugins/openapi/SchemaListView.js +43 -0
  144. package/dist/lib/plugins/openapi/SchemaListView.js.map +1 -0
  145. package/dist/{app → lib}/plugins/openapi/Select.js.map +1 -1
  146. package/dist/{app → lib}/plugins/openapi/Sidecar.js +15 -15
  147. package/dist/{app → lib}/plugins/openapi/Sidecar.js.map +1 -1
  148. package/dist/{app → lib}/plugins/openapi/SidecarBox.js.map +1 -1
  149. package/dist/{app → lib}/plugins/openapi/graphql/fragment-masking.d.ts +1 -1
  150. package/dist/{app → lib}/plugins/openapi/graphql/fragment-masking.js.map +1 -1
  151. package/dist/{app → lib}/plugins/openapi/graphql/gql.d.ts +5 -5
  152. package/dist/{app → lib}/plugins/openapi/graphql/gql.js +2 -3
  153. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -0
  154. package/dist/{app → lib}/plugins/openapi/graphql/graphql.d.ts +9 -0
  155. package/dist/{app → lib}/plugins/openapi/graphql/graphql.js +50 -0
  156. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -0
  157. package/dist/lib/plugins/openapi/graphql/index.js.map +1 -0
  158. package/dist/{app → lib}/plugins/openapi/index.js +3 -1
  159. package/dist/lib/plugins/openapi/index.js.map +1 -0
  160. package/dist/lib/plugins/openapi/playground/Editor.d.ts +1 -0
  161. package/dist/lib/plugins/openapi/playground/Editor.js +5 -0
  162. package/dist/lib/plugins/openapi/playground/Editor.js.map +1 -0
  163. package/dist/lib/plugins/openapi/playground/Headers.d.ts +7 -0
  164. package/dist/lib/plugins/openapi/playground/Headers.js +15 -0
  165. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -0
  166. package/dist/lib/plugins/openapi/playground/InlineInput.d.ts +4 -0
  167. package/dist/lib/plugins/openapi/playground/InlineInput.js +3 -0
  168. package/dist/lib/plugins/openapi/playground/InlineInput.js.map +1 -0
  169. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +6 -0
  170. package/dist/lib/plugins/openapi/playground/PathParams.js +21 -0
  171. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -0
  172. package/dist/lib/plugins/openapi/playground/Playground.d.ts +30 -0
  173. package/dist/lib/plugins/openapi/playground/Playground.js +99 -0
  174. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -0
  175. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +5 -0
  176. package/dist/lib/plugins/openapi/playground/QueryParams.js +34 -0
  177. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -0
  178. package/dist/lib/plugins/openapi/playground/UrlDisplay.d.ts +4 -0
  179. package/dist/lib/plugins/openapi/playground/UrlDisplay.js +22 -0
  180. package/dist/lib/plugins/openapi/playground/UrlDisplay.js.map +1 -0
  181. package/dist/lib/plugins/openapi/playground/createUrl.d.ts +2 -0
  182. package/dist/lib/plugins/openapi/playground/createUrl.js +15 -0
  183. package/dist/lib/plugins/openapi/playground/createUrl.js.map +1 -0
  184. package/dist/{app → lib}/plugins/openapi/util/generateSchemaExample.d.ts +1 -1
  185. package/dist/{app → lib}/plugins/openapi/util/generateSchemaExample.js +17 -9
  186. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -0
  187. package/dist/{app → lib}/plugins/openapi/util/urql.js.map +1 -1
  188. package/dist/{app → lib}/plugins/openapi/worker/createSharedWorkerClient.js +2 -1
  189. package/dist/lib/plugins/openapi/worker/createSharedWorkerClient.js.map +1 -0
  190. package/dist/lib/plugins/openapi/worker/shared-worker.d.ts +1 -0
  191. package/dist/lib/plugins/openapi/worker/shared-worker.js +6 -0
  192. package/dist/lib/plugins/openapi/worker/shared-worker.js.map +1 -0
  193. package/dist/{app → lib}/plugins/openapi/worker/worker.js.map +1 -1
  194. package/dist/lib/plugins/openapi-worker.d.ts +1 -0
  195. package/dist/lib/plugins/openapi-worker.js +2 -0
  196. package/dist/lib/plugins/openapi-worker.js.map +1 -0
  197. package/dist/{app → lib}/plugins/redirect/index.d.ts +1 -2
  198. package/dist/{app → lib}/plugins/redirect/index.js.map +1 -1
  199. package/dist/lib/ui/Button.d.ts +7 -0
  200. package/dist/lib/ui/Button.js +11 -0
  201. package/dist/lib/ui/Button.js.map +1 -0
  202. package/dist/{app → lib}/ui/Callout.js.map +1 -1
  203. package/dist/{app → lib}/ui/Card.js.map +1 -1
  204. package/dist/{app → lib}/ui/Note.js.map +1 -1
  205. package/dist/{app → lib}/ui/Tabs.d.ts +2 -2
  206. package/dist/{app → lib}/ui/Tabs.js +2 -2
  207. package/dist/{app → lib}/ui/Tabs.js.map +1 -1
  208. package/dist/lib/ui/button-variants.d.ts +4 -0
  209. package/dist/{app/ui/Button.js → lib/ui/button-variants.js} +2 -12
  210. package/dist/lib/ui/button-variants.js.map +1 -0
  211. package/dist/{app → lib}/util/MdxComponents.js +9 -9
  212. package/dist/lib/util/MdxComponents.js.map +1 -0
  213. package/dist/{app → lib}/util/cn.js.map +1 -1
  214. package/dist/lib/util/createVariantComponent.d.ts +9 -0
  215. package/dist/lib/util/createVariantComponent.js +17 -0
  216. package/dist/lib/util/createVariantComponent.js.map +1 -0
  217. package/dist/{app → lib}/util/createWaitForNotify.js.map +1 -1
  218. package/dist/{app → lib}/util/groupBy.js.map +1 -1
  219. package/dist/{app → lib}/util/joinPath.js.map +1 -1
  220. package/dist/{app → lib}/util/pastellize.js.map +1 -1
  221. package/dist/lib/util/slugify.js.map +1 -0
  222. package/dist/{app → lib}/util/traverseNavigation.js.map +1 -1
  223. package/dist/{app → lib}/util/useScrollToAnchor.js.map +1 -1
  224. package/dist/{app → lib}/util/useScrollToTop.js.map +1 -1
  225. package/dist/ts.d.ts +6 -0
  226. package/dist/ts.js +61 -0
  227. package/dist/ts.js.map +1 -0
  228. package/dist/vite/build.js +2 -8
  229. package/dist/vite/build.js.map +1 -1
  230. package/dist/vite/common.d.ts +1 -0
  231. package/dist/vite/common.js +5 -0
  232. package/dist/vite/common.js.map +1 -0
  233. package/dist/vite/config.d.ts +10 -3
  234. package/dist/vite/config.js +107 -58
  235. package/dist/vite/config.js.map +1 -1
  236. package/dist/vite/config.test.js +4 -3
  237. package/dist/vite/config.test.js.map +1 -1
  238. package/dist/vite/dev-server.d.ts +2 -0
  239. package/dist/vite/dev-server.js +30 -9
  240. package/dist/vite/dev-server.js.map +1 -1
  241. package/dist/vite/html.d.ts +1 -1
  242. package/dist/vite/html.js +2 -3
  243. package/dist/vite/html.js.map +1 -1
  244. package/dist/vite/plugin-api-keys.d.ts +4 -0
  245. package/dist/vite/plugin-api-keys.js +33 -0
  246. package/dist/vite/plugin-api-keys.js.map +1 -0
  247. package/dist/vite/plugin-api.d.ts +4 -0
  248. package/dist/vite/plugin-api.js +49 -0
  249. package/dist/vite/plugin-api.js.map +1 -0
  250. package/dist/vite/plugin-auth.d.ts +4 -0
  251. package/dist/vite/plugin-auth.js +30 -0
  252. package/dist/vite/plugin-auth.js.map +1 -0
  253. package/dist/vite/plugin-component.d.ts +4 -0
  254. package/dist/vite/plugin-component.js +16 -0
  255. package/dist/vite/plugin-component.js.map +1 -0
  256. package/dist/vite/plugin-config.d.ts +7 -0
  257. package/dist/vite/plugin-config.js +25 -0
  258. package/dist/vite/plugin-config.js.map +1 -0
  259. package/dist/vite/plugin-docs.d.ts +4 -0
  260. package/dist/vite/plugin-docs.js +45 -0
  261. package/dist/vite/plugin-docs.js.map +1 -0
  262. package/dist/vite/plugin-docs.test.js +30 -0
  263. package/dist/vite/plugin-docs.test.js.map +1 -0
  264. package/dist/vite/plugin-html.d.ts +3 -0
  265. package/dist/vite/plugin-html.js +47 -0
  266. package/dist/vite/plugin-html.js.map +1 -0
  267. package/dist/vite/plugin-mdx.d.ts +8 -0
  268. package/dist/vite/plugin-mdx.js +63 -0
  269. package/dist/vite/plugin-mdx.js.map +1 -0
  270. package/dist/vite/plugin-metadata.d.ts +6 -0
  271. package/dist/vite/plugin-metadata.js +24 -0
  272. package/dist/vite/plugin-metadata.js.map +1 -0
  273. package/dist/vite/plugin-openapi-worker.d.ts +4 -0
  274. package/dist/vite/plugin-openapi-worker.js +28 -0
  275. package/dist/vite/plugin-openapi-worker.js.map +1 -0
  276. package/dist/vite/plugin-redirect.d.ts +4 -0
  277. package/dist/vite/plugin-redirect.js +32 -0
  278. package/dist/vite/plugin-redirect.js.map +1 -0
  279. package/dist/vite/plugin.d.ts +2 -6
  280. package/dist/vite/plugin.js +22 -104
  281. package/dist/vite/plugin.js.map +1 -1
  282. package/lib/Spinner-9_-7nYgL.js +11855 -0
  283. package/lib/assets/index-BPdJm2ty.js +4764 -0
  284. package/lib/assets/worker-BCcpCNJ7.js +14473 -0
  285. package/lib/clerk-Wslx_mPo.js +19685 -0
  286. package/lib/prism-bash.min-DadFsM4Z.js +6 -0
  287. package/lib/prism-java.min-d5iT_mOd.js +6 -0
  288. package/lib/prism-json.min-B1GJqK1k.js +1 -0
  289. package/lib/prism-markup-templating-DZrrEs0A.js +61 -0
  290. package/lib/prism-php.min-o7FpoMP_.js +10 -0
  291. package/lib/prism-ruby.min-C7LwcKyz.js +9 -0
  292. package/lib/urql-DMlBWUKL.js +1591 -0
  293. package/lib/zudoku.auth-clerk.js +32 -0
  294. package/lib/zudoku.components.js +1197 -0
  295. package/lib/zudoku.openapi-worker.js +225 -0
  296. package/lib/zudoku.plugins.js +20021 -0
  297. package/package.json +72 -50
  298. package/src/app/App.tsx +23 -46
  299. package/src/app/main.css +1 -0
  300. package/src/app/main.tsx +13 -17
  301. package/src/{app → lib}/authentication/clerk.ts +10 -9
  302. package/src/{app → lib}/authentication/openid.ts +4 -2
  303. package/src/{app → lib/components}/DevPortal.tsx +22 -41
  304. package/src/{app → lib}/components/Dialog.tsx +37 -37
  305. package/src/{app → lib}/components/Header.tsx +4 -4
  306. package/src/{app → lib/components}/Heading.tsx +2 -2
  307. package/src/{app → lib}/components/Layout.tsx +17 -7
  308. package/src/lib/components/Link.tsx +1 -0
  309. package/src/lib/components/Router.tsx +28 -0
  310. package/src/lib/components/Select.tsx +157 -0
  311. package/src/lib/components/Spinner.tsx +5 -0
  312. package/src/{app → lib}/components/SyntaxHighlight.tsx +10 -3
  313. package/src/{app → lib}/components/context/DevPortalProvider.ts +1 -1
  314. package/src/lib/components/index.ts +3 -0
  315. package/src/{app → lib}/components/navigation/SideNavigation.tsx +4 -1
  316. package/src/{app → lib}/components/navigation/SideNavigationCategory.tsx +3 -1
  317. package/src/{app → lib}/components/navigation/SideNavigationItem.tsx +16 -7
  318. package/src/lib/components/navigation/SideNavigationWrapper.tsx +24 -0
  319. package/src/{app → lib}/core/DevPortalContext.ts +10 -9
  320. package/src/{app → lib}/core/plugins.ts +1 -1
  321. package/src/{app → lib}/oas/graphql/index.ts +2 -2
  322. package/src/lib/plugins/api-key/CreateApiKey.tsx +100 -0
  323. package/src/lib/plugins/api-key/SettingsApiKeys.tsx +125 -0
  324. package/src/lib/plugins/api-key/index.tsx +126 -0
  325. package/src/lib/plugins/index.ts +4 -0
  326. package/src/{app → lib}/plugins/markdown/MdxPage.tsx +32 -10
  327. package/src/{app → lib}/plugins/markdown/generateRoutes.tsx +1 -16
  328. package/src/{app → lib}/plugins/openapi/ColorizedParam.tsx +1 -3
  329. package/src/lib/plugins/openapi/MakeRequest.tsx +58 -0
  330. package/src/{app → lib}/plugins/openapi/OperationList.tsx +14 -4
  331. package/src/{app → lib}/plugins/openapi/OperationListItem.tsx +36 -4
  332. package/src/{app → lib}/plugins/openapi/ParameterList.tsx +1 -1
  333. package/src/{app → lib}/plugins/openapi/ParameterListItem.tsx +5 -2
  334. package/src/{app → lib}/plugins/openapi/RequestBodySidecarBox.tsx +1 -1
  335. package/src/{app → lib}/plugins/openapi/ResponsesSidecarBox.tsx +2 -3
  336. package/src/lib/plugins/openapi/SchemaListView.tsx +228 -0
  337. package/src/{app → lib}/plugins/openapi/Sidecar.tsx +23 -23
  338. package/src/{app → lib}/plugins/openapi/graphql/gql.ts +7 -7
  339. package/src/{app → lib}/plugins/openapi/graphql/graphql.ts +59 -0
  340. package/src/{app → lib}/plugins/openapi/index.tsx +8 -2
  341. package/src/lib/plugins/openapi/playground/Editor.tsx +4 -0
  342. package/src/lib/plugins/openapi/playground/Headers.tsx +60 -0
  343. package/src/lib/plugins/openapi/playground/InlineInput.tsx +6 -0
  344. package/src/lib/plugins/openapi/playground/PathParams.tsx +63 -0
  345. package/src/lib/plugins/openapi/playground/Playground.tsx +367 -0
  346. package/src/lib/plugins/openapi/playground/QueryParams.tsx +109 -0
  347. package/src/lib/plugins/openapi/playground/UrlDisplay.tsx +32 -0
  348. package/src/lib/plugins/openapi/playground/createUrl.ts +22 -0
  349. package/src/{app → lib}/plugins/openapi/util/generateSchemaExample.ts +22 -9
  350. package/src/{app → lib}/plugins/openapi/worker/createSharedWorkerClient.ts +2 -1
  351. package/src/lib/plugins/openapi/worker/shared-worker.ts +5 -0
  352. package/src/lib/plugins/openapi-worker.ts +1 -0
  353. package/src/{app → lib}/plugins/redirect/index.tsx +1 -1
  354. package/src/lib/ui/Button.tsx +25 -0
  355. package/src/{app → lib}/ui/Tabs.tsx +2 -2
  356. package/src/{app/ui/Button.tsx → lib/ui/button-variants.ts} +4 -29
  357. package/src/{app → lib}/util/MdxComponents.tsx +33 -8
  358. package/src/{app → lib}/util/createVariantComponent.tsx +12 -7
  359. package/dist/app/DevPortal.js +0 -41
  360. package/dist/app/DevPortal.js.map +0 -1
  361. package/dist/app/Heading.js.map +0 -1
  362. package/dist/app/authentication/authentication.js.map +0 -1
  363. package/dist/app/authentication/clerk.js.map +0 -1
  364. package/dist/app/authentication/openid.js.map +0 -1
  365. package/dist/app/components/Dialog.js.map +0 -1
  366. package/dist/app/components/DynamicIcon.d.ts +0 -6
  367. package/dist/app/components/DynamicIcon.js +0 -6
  368. package/dist/app/components/DynamicIcon.js.map +0 -1
  369. package/dist/app/components/Header.d.ts +0 -1
  370. package/dist/app/components/Header.js +0 -15
  371. package/dist/app/components/Layout.js.map +0 -1
  372. package/dist/app/components/SyntaxHighlight.js.map +0 -1
  373. package/dist/app/components/context/DevPortalProvider.js.map +0 -1
  374. package/dist/app/components/context/PluginSystem.js.map +0 -1
  375. package/dist/app/components/navigation/SideNavigationItem.js.map +0 -1
  376. package/dist/app/components/navigation/SideNavigationWrapper.js +0 -6
  377. package/dist/app/components/navigation/SideNavigationWrapper.js.map +0 -1
  378. package/dist/app/config.d.ts +0 -3
  379. package/dist/app/config.js +0 -9
  380. package/dist/app/config.js.map +0 -1
  381. package/dist/app/core/DevPortalContext.js.map +0 -1
  382. package/dist/app/core/icons.js.map +0 -1
  383. package/dist/app/core/router.js.map +0 -1
  384. package/dist/app/core/types/combine.js.map +0 -1
  385. package/dist/app/markdowns.d.ts +0 -3
  386. package/dist/app/markdowns.js +0 -5
  387. package/dist/app/markdowns.js.map +0 -1
  388. package/dist/app/oas/graphql/index.js.map +0 -1
  389. package/dist/app/oas/graphql/server.js +0 -8
  390. package/dist/app/oas/graphql/server.js.map +0 -1
  391. package/dist/app/plugins/api-key/SettingsApiKeys.d.ts +0 -4
  392. package/dist/app/plugins/api-key/SettingsApiKeys.js +0 -7
  393. package/dist/app/plugins/api-key/SettingsApiKeys.js.map +0 -1
  394. package/dist/app/plugins/api-key/index.d.ts +0 -32
  395. package/dist/app/plugins/api-key/index.js +0 -55
  396. package/dist/app/plugins/api-key/index.js.map +0 -1
  397. package/dist/app/plugins/markdown/MdxPage.d.ts +0 -3
  398. package/dist/app/plugins/markdown/MdxPage.js +0 -55
  399. package/dist/app/plugins/markdown/MdxPage.js.map +0 -1
  400. package/dist/app/plugins/markdown/generateRoutes.js.map +0 -1
  401. package/dist/app/plugins/openapi/ColorizedParam.js.map +0 -1
  402. package/dist/app/plugins/openapi/MakeRequest.js +0 -23
  403. package/dist/app/plugins/openapi/MakeRequest.js.map +0 -1
  404. package/dist/app/plugins/openapi/OperationList.js.map +0 -1
  405. package/dist/app/plugins/openapi/OperationListItem.js +0 -15
  406. package/dist/app/plugins/openapi/OperationListItem.js.map +0 -1
  407. package/dist/app/plugins/openapi/ParameterListItem.js +0 -13
  408. package/dist/app/plugins/openapi/graphql/gql.js.map +0 -1
  409. package/dist/app/plugins/openapi/graphql/graphql.js.map +0 -1
  410. package/dist/app/plugins/openapi/graphql/index.js.map +0 -1
  411. package/dist/app/plugins/openapi/index.js.map +0 -1
  412. package/dist/app/plugins/openapi/playground/Playground.d.ts +0 -8
  413. package/dist/app/plugins/openapi/playground/Playground.js +0 -98
  414. package/dist/app/plugins/openapi/playground/Playground.js.map +0 -1
  415. package/dist/app/plugins/openapi/util/generateSchemaExample.js.map +0 -1
  416. package/dist/app/plugins/openapi/worker/createSharedWorkerClient.js.map +0 -1
  417. package/dist/app/ui/Button.d.ts +0 -11
  418. package/dist/app/ui/Button.js.map +0 -1
  419. package/dist/app/util/MdxComponents.js.map +0 -1
  420. package/dist/app/util/createVariantComponent.d.ts +0 -15
  421. package/dist/app/util/createVariantComponent.js +0 -12
  422. package/dist/app/util/createVariantComponent.js.map +0 -1
  423. package/dist/app/util/slugify.js.map +0 -1
  424. package/dist/auth.d.ts +0 -2
  425. package/dist/auth.js +0 -3
  426. package/dist/auth.js.map +0 -1
  427. package/dist/plugins.d.ts +0 -4
  428. package/dist/plugins.js +0 -6
  429. package/dist/plugins.js.map +0 -1
  430. package/src/app/components/DynamicIcon.tsx +0 -60
  431. package/src/app/components/navigation/SideNavigationWrapper.tsx +0 -15
  432. package/src/app/config.ts +0 -20
  433. package/src/app/markdowns.ts +0 -7
  434. package/src/app/oas/graphql/server.ts +0 -10
  435. package/src/app/plugins/api-key/SettingsApiKeys.tsx +0 -22
  436. package/src/app/plugins/api-key/index.tsx +0 -123
  437. package/src/app/plugins/openapi/MakeRequest.tsx +0 -49
  438. package/src/app/plugins/openapi/playground/Playground.tsx +0 -309
  439. package/src/app/plugins/openapi/queries.graphql +0 -6
  440. package/dist/{app → lib}/authentication/authentication.d.ts +0 -0
  441. package/dist/{app → lib}/authentication/authentication.js +0 -0
  442. package/dist/{app → lib}/authentication/openid.d.ts +0 -0
  443. package/dist/{app → lib}/components/AnchorLink.d.ts +0 -0
  444. package/dist/{app → lib}/components/AnchorLink.js +0 -0
  445. package/dist/{app → lib}/components/CategoryHeading.d.ts +0 -0
  446. package/dist/{app → lib}/components/CategoryHeading.js +0 -0
  447. package/dist/{app → lib/components}/Heading.d.ts +0 -0
  448. package/dist/{app → lib}/components/Input.d.ts +0 -0
  449. package/dist/{app → lib}/components/Input.js +0 -0
  450. package/dist/{app → lib}/components/Layout.d.ts +0 -0
  451. package/dist/{app → lib}/components/Markdown.d.ts +0 -0
  452. package/dist/{app → lib}/components/Markdown.js +0 -0
  453. package/dist/{app → lib}/components/TopNavigation.d.ts +0 -0
  454. package/dist/{app → lib}/components/TopNavigation.js +0 -0
  455. package/dist/{app → lib}/components/context/ComponentsContext.js +0 -0
  456. package/dist/{app → lib}/components/context/DevPortalProvider.d.ts +0 -0
  457. package/dist/{app → lib}/components/context/PluginSystem.d.ts +0 -0
  458. package/dist/{app → lib}/components/context/PluginSystem.js +0 -0
  459. package/dist/{app → lib}/components/context/ThemeContext.d.ts +0 -0
  460. package/dist/{app → lib}/components/context/ViewportAnchorContext.d.ts +0 -0
  461. package/dist/{app → lib}/components/context/ViewportAnchorContext.js +0 -0
  462. package/dist/{app → lib}/components/navigation/SideNavigation.d.ts +0 -0
  463. package/dist/{app → lib}/components/navigation/SideNavigationCategory.d.ts +0 -0
  464. package/dist/{app → lib}/components/navigation/useNavigationCollapsibleState.d.ts +0 -0
  465. package/dist/{app → lib}/components/navigation/useNavigationCollapsibleState.js +0 -0
  466. package/dist/{app → lib}/components/navigation/util.d.ts +0 -0
  467. package/dist/{app → lib}/components/navigation/util.js +0 -0
  468. package/dist/{app → lib}/core/helmet.d.ts +0 -0
  469. package/dist/{app → lib}/core/helmet.js +0 -0
  470. package/dist/{app → lib}/core/icons.d.ts +0 -0
  471. package/dist/{app → lib}/core/icons.js +0 -0
  472. package/dist/{app → lib}/core/router.d.ts +0 -0
  473. package/dist/{app → lib}/core/router.js +0 -0
  474. package/dist/{app → lib}/core/types/combine.d.ts +0 -0
  475. package/dist/{app → lib}/core/types/combine.js +0 -0
  476. package/dist/{app → lib}/oas/graphql/index.d.ts +0 -0
  477. package/dist/{app → lib}/oas/parser/dereference/index.d.ts +0 -0
  478. package/dist/{app → lib}/oas/parser/dereference/index.js +0 -0
  479. package/dist/{app → lib}/oas/parser/dereference/resolveRef.d.ts +0 -0
  480. package/dist/{app → lib}/oas/parser/dereference/resolveRef.js +0 -0
  481. package/dist/{app → lib}/oas/parser/index.d.ts +0 -0
  482. package/dist/{app → lib}/oas/parser/index.js +0 -0
  483. package/dist/{app → lib}/oas/parser/upgrade/index.d.ts +0 -0
  484. package/dist/{app → lib}/oas/parser/upgrade/index.js +0 -0
  485. package/dist/{app → lib}/plugins/markdown/Toc.d.ts +0 -0
  486. package/dist/{app → lib}/plugins/markdown/Toc.js +0 -0
  487. package/dist/{app → lib}/plugins/markdown/generateRoutes.d.ts +0 -0
  488. package/dist/{app → lib}/plugins/markdown/index.d.ts +0 -0
  489. package/dist/{app → lib}/plugins/markdown/index.js +0 -0
  490. package/dist/{app → lib}/plugins/openapi/MakeRequest.d.ts +0 -0
  491. package/dist/{app → lib}/plugins/openapi/MethodBadge.d.ts +0 -0
  492. package/dist/{app → lib}/plugins/openapi/MethodBadge.js +0 -0
  493. package/dist/{app → lib}/plugins/openapi/OperationList.d.ts +0 -0
  494. package/dist/{app → lib}/plugins/openapi/OperationListItem.d.ts +0 -0
  495. package/dist/{app → lib}/plugins/openapi/ParameterList.d.ts +0 -0
  496. package/dist/{app → lib}/plugins/openapi/ParameterListItem.d.ts +0 -0
  497. package/dist/{app → lib}/plugins/openapi/RequestBodySidecarBox.d.ts +0 -0
  498. package/dist/{app → lib}/plugins/openapi/ResponsesSidecarBox.d.ts +0 -0
  499. package/dist/{app → lib}/plugins/openapi/Select.d.ts +0 -0
  500. package/dist/{app → lib}/plugins/openapi/Select.js +0 -0
  501. package/dist/{app → lib}/plugins/openapi/Sidecar.d.ts +0 -0
  502. package/dist/{app → lib}/plugins/openapi/SidecarBox.d.ts +0 -0
  503. package/dist/{app → lib}/plugins/openapi/SidecarBox.js +0 -0
  504. package/dist/{app → lib}/plugins/openapi/graphql/fragment-masking.js +0 -0
  505. package/dist/{app → lib}/plugins/openapi/graphql/index.d.ts +0 -0
  506. package/dist/{app → lib}/plugins/openapi/graphql/index.js +0 -0
  507. package/dist/{app → lib}/plugins/openapi/index.d.ts +0 -0
  508. package/dist/{app → lib}/plugins/openapi/util/urql.d.ts +0 -0
  509. package/dist/{app → lib}/plugins/openapi/util/urql.js +0 -0
  510. package/dist/{app → lib}/plugins/openapi/worker/createSharedWorkerClient.d.ts +0 -0
  511. package/dist/{app → lib}/plugins/openapi/worker/worker.d.ts +0 -0
  512. package/dist/{app → lib}/plugins/openapi/worker/worker.js +0 -0
  513. package/dist/{app → lib}/plugins/redirect/index.js +0 -0
  514. package/dist/{app → lib}/ui/Callout.d.ts +0 -0
  515. package/dist/{app → lib}/ui/Callout.js +0 -0
  516. package/dist/{app → lib}/ui/Card.d.ts +0 -0
  517. package/dist/{app → lib}/ui/Card.js +0 -0
  518. package/dist/{app → lib}/ui/Note.d.ts +0 -0
  519. package/dist/{app → lib}/ui/Note.js +0 -0
  520. package/dist/{app → lib}/util/MdxComponents.d.ts +0 -0
  521. package/dist/{app → lib}/util/cn.d.ts +0 -0
  522. package/dist/{app → lib}/util/cn.js +0 -0
  523. package/dist/{app → lib}/util/createWaitForNotify.d.ts +0 -0
  524. package/dist/{app → lib}/util/createWaitForNotify.js +0 -0
  525. package/dist/{app → lib}/util/groupBy.d.ts +0 -0
  526. package/dist/{app → lib}/util/groupBy.js +0 -0
  527. package/dist/{app → lib}/util/joinPath.d.ts +0 -0
  528. package/dist/{app → lib}/util/joinPath.js +0 -0
  529. package/dist/{app → lib}/util/pastellize.d.ts +0 -0
  530. package/dist/{app → lib}/util/pastellize.js +0 -0
  531. package/dist/{app → lib}/util/slugify.d.ts +0 -0
  532. package/dist/{app → lib}/util/slugify.js +0 -0
  533. package/dist/{app → lib}/util/traverseNavigation.d.ts +0 -0
  534. package/dist/{app → lib}/util/traverseNavigation.js +0 -0
  535. package/dist/{app → lib}/util/useScrollToAnchor.d.ts +0 -0
  536. package/dist/{app → lib}/util/useScrollToAnchor.js +0 -0
  537. package/dist/{app → lib}/util/useScrollToTop.d.ts +0 -0
  538. package/dist/{app → lib}/util/useScrollToTop.js +0 -0
  539. package/dist/{app/oas/graphql/server.d.ts → vite/plugin-docs.test.d.ts} +0 -0
  540. package/src/{app → lib}/authentication/authentication.ts +0 -0
  541. package/src/{app → lib}/components/AnchorLink.tsx +0 -0
  542. package/src/{app → lib}/components/CategoryHeading.tsx +1 -1
  543. package/src/{app → lib}/components/Input.tsx +0 -0
  544. package/src/{app → lib}/components/Markdown.tsx +0 -0
  545. package/src/{app → lib}/components/TopNavigation.tsx +0 -0
  546. package/src/{app → lib}/components/context/ComponentsContext.tsx +0 -0
  547. package/src/{app → lib}/components/context/PluginSystem.ts +0 -0
  548. package/src/{app → lib}/components/context/ThemeContext.tsx +1 -1
  549. package/src/{app → lib}/components/context/ViewportAnchorContext.tsx +0 -0
  550. package/src/{app → lib}/components/navigation/useNavigationCollapsibleState.ts +0 -0
  551. package/src/{app → lib}/components/navigation/util.ts +0 -0
  552. package/src/{app → lib}/core/helmet.ts +0 -0
  553. package/src/{app → lib}/core/icons.tsx +0 -0
  554. package/src/{app → lib}/core/router.tsx +0 -0
  555. package/src/{app → lib}/core/types/combine.ts +0 -0
  556. package/src/{app → lib}/oas/parser/dereference/index.ts +0 -0
  557. package/src/{app → lib}/oas/parser/dereference/resolveRef.ts +0 -0
  558. package/src/{app → lib}/oas/parser/index.ts +0 -0
  559. package/src/{app → lib}/oas/parser/schemas/v3.0.json +0 -0
  560. package/src/{app → lib}/oas/parser/schemas/v3.1.json +0 -0
  561. package/src/{app → lib}/oas/parser/upgrade/index.ts +0 -0
  562. package/src/{app → lib}/plugins/markdown/Toc.tsx +0 -0
  563. package/src/{app → lib}/plugins/markdown/index.tsx +0 -0
  564. package/src/{app → lib}/plugins/openapi/MethodBadge.tsx +0 -0
  565. package/src/{app → lib}/plugins/openapi/Select.tsx +0 -0
  566. package/src/{app → lib}/plugins/openapi/SidecarBox.tsx +0 -0
  567. package/src/{app → lib}/plugins/openapi/graphql/fragment-masking.ts +1 -1
  568. /package/src/{app → lib}/plugins/openapi/graphql/index.ts +0 -0
  569. /package/src/{app → lib}/plugins/openapi/util/urql.ts +0 -0
  570. /package/src/{app → lib}/plugins/openapi/worker/worker.ts +0 -0
  571. /package/src/{app → lib}/ui/Callout.tsx +0 -0
  572. /package/src/{app → lib}/ui/Card.tsx +0 -0
  573. /package/src/{app → lib}/ui/Note.tsx +0 -0
  574. /package/src/{app → lib}/util/cn.ts +0 -0
  575. /package/src/{app → lib}/util/createWaitForNotify.ts +0 -0
  576. /package/src/{app → lib}/util/groupBy.ts +0 -0
  577. /package/src/{app → lib}/util/joinPath.tsx +0 -0
  578. /package/src/{app → lib}/util/pastellize.ts +0 -0
  579. /package/src/{app → lib}/util/slugify.ts +0 -0
  580. /package/src/{app → lib}/util/traverseNavigation.ts +0 -0
  581. /package/src/{app → lib}/util/useScrollToAnchor.ts +0 -0
  582. /package/src/{app → lib}/util/useScrollToTop.ts +0 -0
@@ -0,0 +1,1197 @@
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 j = (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), P = (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
+ P(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, M as ot, a as Oe, b as L, e as ut, c as ct, d as lt, f as dt, o as _e, r as Ee, g as ht, i as we, p as je, s as ft, j as pt, k as G, u as me, l as a, N as he, q as vt, t as mt, v as B, w as ge, x as ye, y as fe, z as Fe, A as gt, B as te, R as Ke, T as Be, C as ze, D as yt, E as xt, F as St, G as bt, H as Ot, I as _t, O as Et, J as wt, K as jt, L as Pt, P as At, U as Dt, V as Nt, W as Ct, X as Mt, Y as Tt } from "./Spinner-9_-7nYgL.js";
17
+ import { _ as jn, Z as Pn } from "./Spinner-9_-7nYgL.js";
18
+ import $, { memo as We, createContext as Rt, useEffect as K, useRef as ne, useState as Lt, forwardRef as kt, Suspense as Ue, useMemo as ee } from "react";
19
+ var T, Ie, It = (Ie = class extends Ve {
20
+ constructor(e = {}) {
21
+ super();
22
+ C(this, T);
23
+ this.config = e, P(this, T, /* @__PURE__ */ new Map());
24
+ }
25
+ build(e, n, r) {
26
+ const s = n.queryKey, o = n.queryHash ?? He(s, n);
27
+ let p = this.get(o);
28
+ return p || (p = new it({
29
+ cache: this,
30
+ queryKey: s,
31
+ queryHash: o,
32
+ options: e.defaultQueryOptions(n),
33
+ state: r,
34
+ defaultOptions: e.getQueryDefaults(s)
35
+ }), this.add(p)), p;
36
+ }
37
+ add(e) {
38
+ i(this, T).has(e.queryHash) || (i(this, T).set(e.queryHash, e), this.notify({
39
+ type: "added",
40
+ query: e
41
+ }));
42
+ }
43
+ remove(e) {
44
+ const n = i(this, T).get(e.queryHash);
45
+ n && (e.destroy(), n === e && i(this, T).delete(e.queryHash), this.notify({ type: "removed", query: e }));
46
+ }
47
+ clear() {
48
+ N.batch(() => {
49
+ this.getAll().forEach((e) => {
50
+ this.remove(e);
51
+ });
52
+ });
53
+ }
54
+ get(e) {
55
+ return i(this, T).get(e);
56
+ }
57
+ getAll() {
58
+ return [...i(this, T).values()];
59
+ }
60
+ find(e) {
61
+ const n = { exact: !0, ...e };
62
+ return this.getAll().find(
63
+ (r) => be(n, r)
64
+ );
65
+ }
66
+ findAll(e = {}) {
67
+ const n = this.getAll();
68
+ return Object.keys(e).length > 0 ? n.filter((r) => be(e, r)) : n;
69
+ }
70
+ notify(e) {
71
+ N.batch(() => {
72
+ this.listeners.forEach((n) => {
73
+ n(e);
74
+ });
75
+ });
76
+ }
77
+ onFocus() {
78
+ N.batch(() => {
79
+ this.getAll().forEach((e) => {
80
+ e.onFocus();
81
+ });
82
+ });
83
+ }
84
+ onOnline() {
85
+ N.batch(() => {
86
+ this.getAll().forEach((e) => {
87
+ e.onOnline();
88
+ });
89
+ });
90
+ }
91
+ }, T = new WeakMap(), Ie), D, U, qe, qt = (qe = class extends Ve {
92
+ constructor(e = {}) {
93
+ super();
94
+ C(this, D);
95
+ C(this, U);
96
+ this.config = e, P(this, D, /* @__PURE__ */ new Map()), P(this, U, Date.now());
97
+ }
98
+ build(e, n, r) {
99
+ const s = new ot({
100
+ mutationCache: this,
101
+ mutationId: ++X(this, U)._,
102
+ options: e.defaultMutationOptions(n),
103
+ state: r
104
+ });
105
+ return this.add(s), s;
106
+ }
107
+ add(e) {
108
+ const n = Y(e), r = i(this, D).get(n) ?? [];
109
+ r.push(e), i(this, D).set(n, r), this.notify({ type: "added", mutation: e });
110
+ }
111
+ remove(e) {
112
+ var r;
113
+ const n = Y(e);
114
+ if (i(this, D).has(n)) {
115
+ const s = (r = i(this, D).get(n)) == null ? void 0 : r.filter((o) => o !== e);
116
+ s && (s.length === 0 ? i(this, D).delete(n) : i(this, D).set(n, s));
117
+ }
118
+ this.notify({ type: "removed", mutation: e });
119
+ }
120
+ canRun(e) {
121
+ var r;
122
+ const n = (r = i(this, D).get(Y(e))) == null ? void 0 : r.find((s) => s.state.status === "pending");
123
+ return !n || n === e;
124
+ }
125
+ runNext(e) {
126
+ var r;
127
+ const n = (r = i(this, D).get(Y(e))) == null ? void 0 : r.find((s) => s !== e && s.state.isPaused);
128
+ return (n == null ? void 0 : n.continue()) ?? Promise.resolve();
129
+ }
130
+ clear() {
131
+ N.batch(() => {
132
+ this.getAll().forEach((e) => {
133
+ this.remove(e);
134
+ });
135
+ });
136
+ }
137
+ getAll() {
138
+ return [...i(this, D).values()].flat();
139
+ }
140
+ find(e) {
141
+ const n = { exact: !0, ...e };
142
+ return this.getAll().find(
143
+ (r) => Oe(n, r)
144
+ );
145
+ }
146
+ findAll(e = {}) {
147
+ return this.getAll().filter((n) => Oe(e, n));
148
+ }
149
+ notify(e) {
150
+ N.batch(() => {
151
+ this.listeners.forEach((n) => {
152
+ n(e);
153
+ });
154
+ });
155
+ }
156
+ resumePausedMutations() {
157
+ const e = this.getAll().filter((n) => n.state.isPaused);
158
+ return N.batch(
159
+ () => Promise.all(
160
+ e.map((n) => n.continue().catch(L))
161
+ )
162
+ );
163
+ }
164
+ }, D = new WeakMap(), U = new WeakMap(), qe);
165
+ function Y(t) {
166
+ var e;
167
+ return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
168
+ }
169
+ function Qt(t) {
170
+ return {
171
+ onFetch: (e, n) => {
172
+ const r = async () => {
173
+ var S, g, O, M, R;
174
+ 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) || [], v = ((R = e.state.data) == null ? void 0 : R.pageParams) || [], E = { pages: [], pageParams: [] };
175
+ let x = !1;
176
+ const u = (d) => {
177
+ Object.defineProperty(d, "signal", {
178
+ enumerable: !0,
179
+ get: () => (e.signal.aborted ? x = !0 : e.signal.addEventListener("abort", () => {
180
+ x = !0;
181
+ }), e.signal)
182
+ });
183
+ }, l = ut(e.options, e.fetchOptions), h = async (d, c, y) => {
184
+ if (x)
185
+ return Promise.reject();
186
+ if (c == null && d.pages.length)
187
+ return Promise.resolve(d);
188
+ const f = {
189
+ queryKey: e.queryKey,
190
+ pageParam: c,
191
+ direction: y ? "backward" : "forward",
192
+ meta: e.options.meta
193
+ };
194
+ u(f);
195
+ const _ = await l(
196
+ f
197
+ ), { maxPages: A } = e.options, w = y ? ct : lt;
198
+ return {
199
+ pages: w(d.pages, _, A),
200
+ pageParams: w(d.pageParams, c, A)
201
+ };
202
+ };
203
+ let m;
204
+ if (o && p.length) {
205
+ const d = o === "backward", c = d ? Vt : Pe, y = {
206
+ pages: p,
207
+ pageParams: v
208
+ }, f = c(s, y);
209
+ m = await h(y, f, d);
210
+ } else {
211
+ m = await h(
212
+ E,
213
+ v[0] ?? s.initialPageParam
214
+ );
215
+ const d = t ?? p.length;
216
+ for (let c = 1; c < d; c++) {
217
+ const y = Pe(s, m);
218
+ m = await h(m, y);
219
+ }
220
+ }
221
+ return m;
222
+ };
223
+ e.options.persister ? e.fetchFn = () => {
224
+ var s, o;
225
+ return (o = (s = e.options).persister) == null ? void 0 : o.call(
226
+ s,
227
+ r,
228
+ {
229
+ queryKey: e.queryKey,
230
+ meta: e.options.meta,
231
+ signal: e.signal
232
+ },
233
+ n
234
+ );
235
+ } : e.fetchFn = r;
236
+ }
237
+ };
238
+ }
239
+ function Pe(t, { pages: e, pageParams: n }) {
240
+ const r = e.length - 1;
241
+ return t.getNextPageParam(
242
+ e[r],
243
+ e,
244
+ n[r],
245
+ n
246
+ );
247
+ }
248
+ function Vt(t, { pages: e, pageParams: n }) {
249
+ var r;
250
+ return (r = t.getPreviousPageParam) == null ? void 0 : r.call(
251
+ t,
252
+ e[0],
253
+ e,
254
+ n[0],
255
+ n
256
+ );
257
+ }
258
+ var b, k, I, Q, V, q, H, F, Qe, Ht = (Qe = class {
259
+ constructor(t = {}) {
260
+ C(this, b);
261
+ C(this, k);
262
+ C(this, I);
263
+ C(this, Q);
264
+ C(this, V);
265
+ C(this, q);
266
+ C(this, H);
267
+ C(this, F);
268
+ P(this, b, t.queryCache || new It()), P(this, k, t.mutationCache || new qt()), P(this, I, t.defaultOptions || {}), P(this, Q, /* @__PURE__ */ new Map()), P(this, V, /* @__PURE__ */ new Map()), P(this, q, 0);
269
+ }
270
+ mount() {
271
+ X(this, q)._++, i(this, q) === 1 && (P(this, H, dt.subscribe(async (t) => {
272
+ t && (await this.resumePausedMutations(), i(this, b).onFocus());
273
+ })), P(this, F, _e.subscribe(async (t) => {
274
+ t && (await this.resumePausedMutations(), i(this, b).onOnline());
275
+ })));
276
+ }
277
+ unmount() {
278
+ var t, e;
279
+ X(this, q)._--, i(this, q) === 0 && ((t = i(this, H)) == null || t.call(this), P(this, H, void 0), (e = i(this, F)) == null || e.call(this), P(this, F, void 0));
280
+ }
281
+ isFetching(t) {
282
+ return i(this, b).findAll({ ...t, fetchStatus: "fetching" }).length;
283
+ }
284
+ isMutating(t) {
285
+ return i(this, k).findAll({ ...t, status: "pending" }).length;
286
+ }
287
+ getQueryData(t) {
288
+ var n;
289
+ const e = this.defaultQueryOptions({ queryKey: t });
290
+ return (n = i(this, b).get(e.queryHash)) == null ? void 0 : n.state.data;
291
+ }
292
+ ensureQueryData(t) {
293
+ const e = this.getQueryData(t.queryKey);
294
+ if (e === void 0)
295
+ return this.fetchQuery(t);
296
+ {
297
+ const n = this.defaultQueryOptions(t), r = i(this, b).build(this, n);
298
+ return t.revalidateIfStale && r.isStaleByTime(Ee(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(e);
299
+ }
300
+ }
301
+ getQueriesData(t) {
302
+ return i(this, b).findAll(t).map(({ queryKey: e, state: n }) => {
303
+ const r = n.data;
304
+ return [e, r];
305
+ });
306
+ }
307
+ setQueryData(t, e, n) {
308
+ const r = this.defaultQueryOptions({ queryKey: t }), s = i(this, b).get(
309
+ r.queryHash
310
+ ), o = s == null ? void 0 : s.state.data, p = ht(e, o);
311
+ if (p !== void 0)
312
+ return i(this, b).build(this, r).setData(p, { ...n, manual: !0 });
313
+ }
314
+ setQueriesData(t, e, n) {
315
+ return N.batch(
316
+ () => i(this, b).findAll(t).map(({ queryKey: r }) => [
317
+ r,
318
+ this.setQueryData(r, e, n)
319
+ ])
320
+ );
321
+ }
322
+ getQueryState(t) {
323
+ var n;
324
+ const e = this.defaultQueryOptions({ queryKey: t });
325
+ return (n = i(this, b).get(e.queryHash)) == null ? void 0 : n.state;
326
+ }
327
+ removeQueries(t) {
328
+ const e = i(this, b);
329
+ N.batch(() => {
330
+ e.findAll(t).forEach((n) => {
331
+ e.remove(n);
332
+ });
333
+ });
334
+ }
335
+ resetQueries(t, e) {
336
+ const n = i(this, b), r = {
337
+ type: "active",
338
+ ...t
339
+ };
340
+ return N.batch(() => (n.findAll(t).forEach((s) => {
341
+ s.reset();
342
+ }), this.refetchQueries(r, e)));
343
+ }
344
+ cancelQueries(t = {}, e = {}) {
345
+ const n = { revert: !0, ...e }, r = N.batch(
346
+ () => i(this, b).findAll(t).map((s) => s.cancel(n))
347
+ );
348
+ return Promise.all(r).then(L).catch(L);
349
+ }
350
+ invalidateQueries(t = {}, e = {}) {
351
+ return N.batch(() => {
352
+ if (i(this, b).findAll(t).forEach((r) => {
353
+ r.invalidate();
354
+ }), t.refetchType === "none")
355
+ return Promise.resolve();
356
+ const n = {
357
+ ...t,
358
+ type: t.refetchType ?? t.type ?? "active"
359
+ };
360
+ return this.refetchQueries(n, e);
361
+ });
362
+ }
363
+ refetchQueries(t = {}, e) {
364
+ const n = {
365
+ ...e,
366
+ cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
367
+ }, r = N.batch(
368
+ () => i(this, b).findAll(t).filter((s) => !s.isDisabled()).map((s) => {
369
+ let o = s.fetch(void 0, n);
370
+ return n.throwOnError || (o = o.catch(L)), s.state.fetchStatus === "paused" ? Promise.resolve() : o;
371
+ })
372
+ );
373
+ return Promise.all(r).then(L);
374
+ }
375
+ fetchQuery(t) {
376
+ const e = this.defaultQueryOptions(t);
377
+ e.retry === void 0 && (e.retry = !1);
378
+ const n = i(this, b).build(this, e);
379
+ return n.isStaleByTime(
380
+ Ee(e.staleTime, n)
381
+ ) ? n.fetch(e) : Promise.resolve(n.state.data);
382
+ }
383
+ prefetchQuery(t) {
384
+ return this.fetchQuery(t).then(L).catch(L);
385
+ }
386
+ fetchInfiniteQuery(t) {
387
+ return t.behavior = Qt(t.pages), this.fetchQuery(t);
388
+ }
389
+ prefetchInfiniteQuery(t) {
390
+ return this.fetchInfiniteQuery(t).then(L).catch(L);
391
+ }
392
+ resumePausedMutations() {
393
+ return _e.isOnline() ? i(this, k).resumePausedMutations() : Promise.resolve();
394
+ }
395
+ getQueryCache() {
396
+ return i(this, b);
397
+ }
398
+ getMutationCache() {
399
+ return i(this, k);
400
+ }
401
+ getDefaultOptions() {
402
+ return i(this, I);
403
+ }
404
+ setDefaultOptions(t) {
405
+ P(this, I, t);
406
+ }
407
+ setQueryDefaults(t, e) {
408
+ i(this, Q).set(we(t), {
409
+ queryKey: t,
410
+ defaultOptions: e
411
+ });
412
+ }
413
+ getQueryDefaults(t) {
414
+ const e = [...i(this, Q).values()];
415
+ let n = {};
416
+ return e.forEach((r) => {
417
+ je(t, r.queryKey) && (n = { ...n, ...r.defaultOptions });
418
+ }), n;
419
+ }
420
+ setMutationDefaults(t, e) {
421
+ i(this, V).set(we(t), {
422
+ mutationKey: t,
423
+ defaultOptions: e
424
+ });
425
+ }
426
+ getMutationDefaults(t) {
427
+ const e = [...i(this, V).values()];
428
+ let n = {};
429
+ return e.forEach((r) => {
430
+ je(t, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
431
+ }), n;
432
+ }
433
+ defaultQueryOptions(t) {
434
+ if (t._defaulted)
435
+ return t;
436
+ const e = {
437
+ ...i(this, I).queries,
438
+ ...this.getQueryDefaults(t.queryKey),
439
+ ...t,
440
+ _defaulted: !0
441
+ };
442
+ return e.queryHash || (e.queryHash = He(
443
+ e.queryKey,
444
+ e
445
+ )), 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 === ft && (e.enabled = !1), e;
446
+ }
447
+ defaultMutationOptions(t) {
448
+ return t != null && t._defaulted ? t : {
449
+ ...i(this, I).mutations,
450
+ ...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
451
+ ...t,
452
+ _defaulted: !0
453
+ };
454
+ }
455
+ clear() {
456
+ i(this, b).clear(), i(this, k).clear();
457
+ }
458
+ }, 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 };
459
+ const Ae = (t) => {
460
+ let e;
461
+ const n = /* @__PURE__ */ new Set(), r = (u, l) => {
462
+ const h = typeof u == "function" ? u(e) : u;
463
+ if (!Object.is(h, e)) {
464
+ const m = e;
465
+ e = l ?? (typeof h != "object" || h === null) ? h : Object.assign({}, e, h), n.forEach((S) => S(e, m));
466
+ }
467
+ }, s = () => e, E = { setState: r, getState: s, getInitialState: () => x, subscribe: (u) => (n.add(u), () => n.delete(u)), destroy: () => {
468
+ (Ft ? "production" : void 0) !== "production" && console.warn(
469
+ "[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."
470
+ ), n.clear();
471
+ } }, x = e = t(r, s, E);
472
+ return E;
473
+ }, Kt = (t) => t ? Ae(t) : Ae;
474
+ var pe = { exports: {} }, ue = {}, J = { exports: {} }, ce = {};
475
+ /**
476
+ * @license React
477
+ * use-sync-external-store-shim.production.min.js
478
+ *
479
+ * Copyright (c) Facebook, Inc. and its affiliates.
480
+ *
481
+ * This source code is licensed under the MIT license found in the
482
+ * LICENSE file in the root directory of this source tree.
483
+ */
484
+ var De;
485
+ function Bt() {
486
+ if (De) return ce;
487
+ De = 1;
488
+ var t = $;
489
+ function e(l, h) {
490
+ return l === h && (l !== 0 || 1 / l === 1 / h) || l !== l && h !== h;
491
+ }
492
+ var n = typeof Object.is == "function" ? Object.is : e, r = t.useState, s = t.useEffect, o = t.useLayoutEffect, p = t.useDebugValue;
493
+ function v(l, h) {
494
+ var m = h(), S = r({ inst: { value: m, getSnapshot: h } }), g = S[0].inst, O = S[1];
495
+ return o(function() {
496
+ g.value = m, g.getSnapshot = h, E(g) && O({ inst: g });
497
+ }, [l, m, h]), s(function() {
498
+ return E(g) && O({ inst: g }), l(function() {
499
+ E(g) && O({ inst: g });
500
+ });
501
+ }, [l]), p(m), m;
502
+ }
503
+ function E(l) {
504
+ var h = l.getSnapshot;
505
+ l = l.value;
506
+ try {
507
+ var m = h();
508
+ return !n(l, m);
509
+ } catch {
510
+ return !0;
511
+ }
512
+ }
513
+ function x(l, h) {
514
+ return h();
515
+ }
516
+ var u = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? x : v;
517
+ return ce.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : u, ce;
518
+ }
519
+ var le = {};
520
+ /**
521
+ * @license React
522
+ * use-sync-external-store-shim.development.js
523
+ *
524
+ * Copyright (c) Facebook, Inc. and its affiliates.
525
+ *
526
+ * This source code is licensed under the MIT license found in the
527
+ * LICENSE file in the root directory of this source tree.
528
+ */
529
+ var Ne;
530
+ function zt() {
531
+ return Ne || (Ne = 1, process.env.NODE_ENV !== "production" && function() {
532
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
533
+ var t = $, e = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
534
+ function n(d) {
535
+ {
536
+ for (var c = arguments.length, y = new Array(c > 1 ? c - 1 : 0), f = 1; f < c; f++)
537
+ y[f - 1] = arguments[f];
538
+ r("error", d, y);
539
+ }
540
+ }
541
+ function r(d, c, y) {
542
+ {
543
+ var f = e.ReactDebugCurrentFrame, _ = f.getStackAddendum();
544
+ _ !== "" && (c += "%s", y = y.concat([_]));
545
+ var A = y.map(function(w) {
546
+ return String(w);
547
+ });
548
+ A.unshift("Warning: " + c), Function.prototype.apply.call(console[d], console, A);
549
+ }
550
+ }
551
+ function s(d, c) {
552
+ return d === c && (d !== 0 || 1 / d === 1 / c) || d !== d && c !== c;
553
+ }
554
+ var o = typeof Object.is == "function" ? Object.is : s, p = t.useState, v = t.useEffect, E = t.useLayoutEffect, x = t.useDebugValue, u = !1, l = !1;
555
+ function h(d, c, y) {
556
+ 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."));
557
+ var f = c();
558
+ if (!l) {
559
+ var _ = c();
560
+ o(f, _) || (n("The result of getSnapshot should be cached to avoid an infinite loop"), l = !0);
561
+ }
562
+ var A = p({
563
+ inst: {
564
+ value: f,
565
+ getSnapshot: c
566
+ }
567
+ }), w = A[0].inst, z = A[1];
568
+ return E(function() {
569
+ w.value = f, w.getSnapshot = c, m(w) && z({
570
+ inst: w
571
+ });
572
+ }, [d, f, c]), v(function() {
573
+ m(w) && z({
574
+ inst: w
575
+ });
576
+ var re = function() {
577
+ m(w) && z({
578
+ inst: w
579
+ });
580
+ };
581
+ return d(re);
582
+ }, [d]), x(f), f;
583
+ }
584
+ function m(d) {
585
+ var c = d.getSnapshot, y = d.value;
586
+ try {
587
+ var f = c();
588
+ return !o(y, f);
589
+ } catch {
590
+ return !0;
591
+ }
592
+ }
593
+ function S(d, c, y) {
594
+ return c();
595
+ }
596
+ var g = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", O = !g, M = O ? S : h, R = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : M;
597
+ le.useSyncExternalStore = R, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
598
+ }()), le;
599
+ }
600
+ var Ce;
601
+ function Ge() {
602
+ return Ce || (Ce = 1, process.env.NODE_ENV === "production" ? J.exports = Bt() : J.exports = zt()), J.exports;
603
+ }
604
+ /**
605
+ * @license React
606
+ * use-sync-external-store-shim/with-selector.production.min.js
607
+ *
608
+ * Copyright (c) Facebook, Inc. and its affiliates.
609
+ *
610
+ * This source code is licensed under the MIT license found in the
611
+ * LICENSE file in the root directory of this source tree.
612
+ */
613
+ var Me;
614
+ function Wt() {
615
+ if (Me) return ue;
616
+ Me = 1;
617
+ var t = $, e = Ge();
618
+ function n(x, u) {
619
+ return x === u && (x !== 0 || 1 / x === 1 / u) || x !== x && u !== u;
620
+ }
621
+ var r = typeof Object.is == "function" ? Object.is : n, s = e.useSyncExternalStore, o = t.useRef, p = t.useEffect, v = t.useMemo, E = t.useDebugValue;
622
+ return ue.useSyncExternalStoreWithSelector = function(x, u, l, h, m) {
623
+ var S = o(null);
624
+ if (S.current === null) {
625
+ var g = { hasValue: !1, value: null };
626
+ S.current = g;
627
+ } else g = S.current;
628
+ S = v(function() {
629
+ function M(f) {
630
+ if (!R) {
631
+ if (R = !0, d = f, f = h(f), m !== void 0 && g.hasValue) {
632
+ var _ = g.value;
633
+ if (m(_, f)) return c = _;
634
+ }
635
+ return c = f;
636
+ }
637
+ if (_ = c, r(d, f)) return _;
638
+ var A = h(f);
639
+ return m !== void 0 && m(_, A) ? _ : (d = f, c = A);
640
+ }
641
+ var R = !1, d, c, y = l === void 0 ? null : l;
642
+ return [function() {
643
+ return M(u());
644
+ }, y === null ? void 0 : function() {
645
+ return M(y());
646
+ }];
647
+ }, [u, l, h, m]);
648
+ var O = s(x, S[0], S[1]);
649
+ return p(function() {
650
+ g.hasValue = !0, g.value = O;
651
+ }, [O]), E(O), O;
652
+ }, ue;
653
+ }
654
+ var de = {};
655
+ /**
656
+ * @license React
657
+ * use-sync-external-store-shim/with-selector.development.js
658
+ *
659
+ * Copyright (c) Facebook, Inc. and its affiliates.
660
+ *
661
+ * This source code is licensed under the MIT license found in the
662
+ * LICENSE file in the root directory of this source tree.
663
+ */
664
+ var Te;
665
+ function Ut() {
666
+ return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() {
667
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
668
+ var t = $, e = Ge();
669
+ function n(u, l) {
670
+ return u === l && (u !== 0 || 1 / u === 1 / l) || u !== u && l !== l;
671
+ }
672
+ var r = typeof Object.is == "function" ? Object.is : n, s = e.useSyncExternalStore, o = t.useRef, p = t.useEffect, v = t.useMemo, E = t.useDebugValue;
673
+ function x(u, l, h, m, S) {
674
+ var g = o(null), O;
675
+ g.current === null ? (O = {
676
+ hasValue: !1,
677
+ value: null
678
+ }, g.current = O) : O = g.current;
679
+ var M = v(function() {
680
+ var y = !1, f, _, A = function(W) {
681
+ if (!y) {
682
+ y = !0, f = W;
683
+ var se = m(W);
684
+ if (S !== void 0 && O.hasValue) {
685
+ var ae = O.value;
686
+ if (S(ae, se))
687
+ return _ = ae, ae;
688
+ }
689
+ return _ = se, se;
690
+ }
691
+ var rt = f, ie = _;
692
+ if (r(rt, W))
693
+ return ie;
694
+ var oe = m(W);
695
+ return S !== void 0 && S(ie, oe) ? ie : (f = W, _ = oe, oe);
696
+ }, w = h === void 0 ? null : h, z = function() {
697
+ return A(l());
698
+ }, re = w === null ? void 0 : function() {
699
+ return A(w());
700
+ };
701
+ return [z, re];
702
+ }, [l, h, m, S]), R = M[0], d = M[1], c = s(u, R, d);
703
+ return p(function() {
704
+ O.hasValue = !0, O.value = c;
705
+ }, [c]), E(c), c;
706
+ }
707
+ de.useSyncExternalStoreWithSelector = x, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
708
+ }()), de;
709
+ }
710
+ process.env.NODE_ENV === "production" ? pe.exports = Wt() : pe.exports = Ut();
711
+ var Gt = pe.exports;
712
+ const $t = /* @__PURE__ */ pt(Gt);
713
+ var $e = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
714
+ const { useDebugValue: Xt } = $, { useSyncExternalStoreWithSelector: Yt } = $t;
715
+ let Re = !1;
716
+ const Jt = (t) => t;
717
+ function Zt(t, e = Jt, n) {
718
+ ($e ? "production" : void 0) !== "production" && n && !Re && (console.warn(
719
+ "[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"
720
+ ), Re = !0);
721
+ const r = Yt(
722
+ t.subscribe,
723
+ t.getState,
724
+ t.getServerState || t.getInitialState,
725
+ e,
726
+ n
727
+ );
728
+ return Xt(r), r;
729
+ }
730
+ const Le = (t) => {
731
+ ($e ? "production" : void 0) !== "production" && typeof t != "function" && console.warn(
732
+ "[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."
733
+ );
734
+ const e = typeof t == "function" ? Kt(t) : t, n = (r, s) => Zt(e, r, s);
735
+ return Object.assign(n, e), n;
736
+ }, en = (t) => t ? Le(t) : Le, 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(), ve = en(
737
+ () => ({
738
+ isLoggedIn: !1
739
+ })
740
+ );
741
+ class rn {
742
+ constructor(e) {
743
+ j(this, "plugins", []);
744
+ j(this, "navigationPlugins");
745
+ j(this, "navigation");
746
+ j(this, "meta");
747
+ j(this, "authentication");
748
+ j(this, "state");
749
+ j(this, "initialize", async () => {
750
+ var e;
751
+ this.plugins.filter(tn).forEach((n) => n.initialize(this)), (e = this.authentication) == null || e.initialize(this);
752
+ });
753
+ j(this, "setUserProfile", async (e) => ve.setState(e));
754
+ j(this, "invalidateCache", async (e) => {
755
+ Ye.invalidateQueries({ queryKey: e });
756
+ });
757
+ j(this, "getApiIdentities", async () => (await Promise.all(
758
+ this.plugins.filter(nn).map((n) => n.getIdentities(this))
759
+ )).flat());
760
+ j(this, "login", async () => {
761
+ if (!this.authentication)
762
+ throw new Error("No authentication configured");
763
+ return this.authentication.login(this);
764
+ });
765
+ j(this, "logout", async () => {
766
+ if (!this.authentication)
767
+ throw new Error("No authentication configured");
768
+ return this.authentication.signOut(this);
769
+ });
770
+ j(this, "handleAuthenticationResponse", async (e) => {
771
+ var n, r;
772
+ (r = (n = this.config.authentication) == null ? void 0 : n.handleAuthenticationResponse) == null || r.call(n, e, this);
773
+ });
774
+ j(this, "getNavigation", async (e) => (await Promise.all(
775
+ this.navigationPlugins.map(
776
+ async (r) => {
777
+ var s;
778
+ return (s = r.getNavigation) == null ? void 0 : s.call(r, e);
779
+ }
780
+ )
781
+ )).flatMap((r) => r ?? []));
782
+ j(this, "sessionStorage", {
783
+ get: async (e) => localStorage.getItem(`session-${e}`) ?? "",
784
+ setProfile: async () => {
785
+ },
786
+ set: async (e, n) => localStorage.setItem(`session-${e}`, n)
787
+ });
788
+ 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 = ve;
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 = G("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 = G("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 = G("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 = G("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 = G("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 } = me();
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 }) => vt(
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 = We(function() {
862
+ const [e, n] = mt(), { isLoggedIn: r, email: s } = ve(), { login: o, logout: p, meta: v } = me(), 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
+ (v == null ? void 0 : v.logo) && /* @__PURE__ */ a.jsx("img", { src: v.logo, alt: "My Dev Portal", className: "h-10" }),
867
+ /* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: v == null ? void 0 : v.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 = Rt(et), dn = ln.Provider, hn = () => {
912
+ const t = B(), { setActiveAnchor: e } = ge();
913
+ K(() => {
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 v = document.getElementById(decodeURIComponent(n));
924
+ v && (v.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 = B(), e = ne(t.pathname);
930
+ K(() => {
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] = Lt(e), o = B(), p = ne(o.pathname);
939
+ return K(() => {
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 = xt(
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) ? Fe(s, e.path) : "", p = B(), [v, E] = tt({
964
+ item: e,
965
+ path: o,
966
+ defaultOpen: () => ye(e, p.pathname, o)
967
+ });
968
+ if (gt(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
+ Ke,
1004
+ {
1005
+ open: v,
1006
+ onOpenChange: () => E((u) => !u),
1007
+ className: "flex flex-col",
1008
+ children: [
1009
+ /* @__PURE__ */ a.jsx(
1010
+ Be,
1011
+ {
1012
+ className: te(
1013
+ "group text-start",
1014
+ Z({ isActive: !1 })
1015
+ ),
1016
+ children: x
1017
+ }
1018
+ ),
1019
+ /* @__PURE__ */ a.jsx(ze, { 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
+ yt,
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
+ }, vn = ({
1052
+ category: t
1053
+ }) => {
1054
+ const { activeAnchor: e } = ge(), n = St(), r = B(), 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
+ Ke,
1061
+ {
1062
+ open: o,
1063
+ onOpenChange: () => p((v) => !v),
1064
+ children: [
1065
+ t.label.length > 0 ? /* @__PURE__ */ a.jsx(Be, { 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(ze, { 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((v) => /* @__PURE__ */ a.jsx(
1085
+ nt,
1086
+ {
1087
+ category: t,
1088
+ item: v,
1089
+ activeAnchor: e,
1090
+ currentTopNavItem: n,
1091
+ basePath: Fe(n == null ? void 0 : n.path, t.path)
1092
+ },
1093
+ fe(v) ? v.path + v.label : v.href
1094
+ )) }) })
1095
+ ]
1096
+ },
1097
+ t.label
1098
+ );
1099
+ }, mn = kt(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 = bt();
1114
+ return /* @__PURE__ */ a.jsx(
1115
+ mn,
1116
+ {
1117
+ ref: t,
1118
+ pushMainContent: e.data.items.length > 0,
1119
+ children: e.data.items.map((n) => /* @__PURE__ */ a.jsx(vn, { category: n }, n.label))
1120
+ }
1121
+ );
1122
+ }, ke = ({ children: t }) => {
1123
+ const e = B(), { setActiveAnchor: n } = ge(), { meta: r, handleAuthenticationResponse: s } = me();
1124
+ K(() => {
1125
+ s(e);
1126
+ }, [s, e]), hn(), fn();
1127
+ const o = ne(e.pathname);
1128
+ return K(() => {
1129
+ e.pathname !== o.current && n(""), o.current = e.pathname;
1130
+ }, [e.pathname, n]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1131
+ /* @__PURE__ */ a.jsxs(Ot, { titleTemplate: r == null ? void 0 : r.pageTitle, children: [
1132
+ /* @__PURE__ */ a.jsx("title", { children: "Home" }),
1133
+ (r == null ? void 0 : r.description) && /* @__PURE__ */ a.jsx("meta", { name: "description", content: r.description }),
1134
+ (r == null ? void 0 : r.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: r.favicon })
1135
+ ] }),
1136
+ /* @__PURE__ */ a.jsx(Ze, {}),
1137
+ /* @__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(
1138
+ Ue,
1139
+ {
1140
+ fallback: /* @__PURE__ */ a.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ a.jsx(_t, {}) }),
1141
+ children: [
1142
+ /* @__PURE__ */ a.jsx(gn, {}),
1143
+ /* @__PURE__ */ a.jsx(
1144
+ "main",
1145
+ {
1146
+ className: `dark:border-white/10 translate-x-0
1147
+ lg:overflow-visible
1148
+ lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]
1149
+ lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] peer-data-[navigation=true]:pl-12`,
1150
+ children: t ?? /* @__PURE__ */ a.jsx(Et, {})
1151
+ }
1152
+ )
1153
+ ]
1154
+ }
1155
+ ) })
1156
+ ] });
1157
+ };
1158
+ function yn({ plugins: t }) {
1159
+ const e = ee(() => {
1160
+ const n = (t ?? []).flatMap(
1161
+ (r) => Xe(r) ? r.getRoutes() : []
1162
+ );
1163
+ return wt([
1164
+ {
1165
+ path: "/",
1166
+ element: /* @__PURE__ */ a.jsx(ke, {}),
1167
+ errorElement: /* @__PURE__ */ a.jsx(ke, { children: /* @__PURE__ */ a.jsx("div", { className: "h-[75vh] flex items-center justify-center", children: "Error, look at the console" }) }),
1168
+ children: n
1169
+ }
1170
+ ]);
1171
+ }, [t]);
1172
+ return /* @__PURE__ */ a.jsx(jt, { router: e });
1173
+ }
1174
+ const xn = (t) => {
1175
+ const e = ee(
1176
+ () => ({ ...et, ...t.overrides }),
1177
+ [t.overrides]
1178
+ ), n = ee(
1179
+ () => ({ ...Pt, ...t.mdxComponents }),
1180
+ [t.mdxComponents]
1181
+ ), r = ee(() => new rn(t), [t]);
1182
+ return K(() => {
1183
+ r.initialize();
1184
+ }, [r]), /* @__PURE__ */ a.jsx(At, { client: Ye, children: /* @__PURE__ */ a.jsx(Dt, { children: /* @__PURE__ */ a.jsx(Nt, { value: r, children: /* @__PURE__ */ a.jsx(Ct, { components: n, children: /* @__PURE__ */ a.jsx(Mt, { children: /* @__PURE__ */ a.jsx(dn, { value: e, children: /* @__PURE__ */ a.jsx(Tt, { children: /* @__PURE__ */ a.jsx(
1185
+ Ue,
1186
+ {
1187
+ fallback: /* @__PURE__ */ a.jsx("div", { className: "grid place-items-center h-full", children: "Loading..." }),
1188
+ children: /* @__PURE__ */ a.jsx(yn, { plugins: t.plugins })
1189
+ }
1190
+ ) }) }) }) }) }) }) });
1191
+ }, Sn = We(xn);
1192
+ Sn.displayName = "DevPortal";
1193
+ export {
1194
+ Sn as DevPortal,
1195
+ jn as Link,
1196
+ Pn as useMDXComponents
1197
+ };