zudoku 0.0.0-e09234c → 0.0.0-e097cbb

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 (1385) hide show
  1. package/README.md +121 -0
  2. package/cli.js +3 -0
  3. package/dist/app/ZuploBuildConfig.d.ts +155 -0
  4. package/dist/app/ZuploBuildConfig.js +29 -0
  5. package/dist/app/ZuploBuildConfig.js.map +1 -0
  6. package/dist/app/demo.js +1 -4
  7. package/dist/app/demo.js.map +1 -1
  8. package/dist/app/entry.client.d.ts +6 -0
  9. package/dist/app/entry.client.js +17 -1
  10. package/dist/app/entry.client.js.map +1 -1
  11. package/dist/app/entry.server.d.ts +9 -6
  12. package/dist/app/entry.server.js +18 -14
  13. package/dist/app/entry.server.js.map +1 -1
  14. package/dist/app/env.d.ts +33 -0
  15. package/dist/app/env.js +29 -0
  16. package/dist/app/env.js.map +1 -0
  17. package/dist/app/main.d.ts +3 -3
  18. package/dist/app/main.js +33 -17
  19. package/dist/app/main.js.map +1 -1
  20. package/dist/app/sentry.d.ts +3 -0
  21. package/dist/app/sentry.js +19 -0
  22. package/dist/app/sentry.js.map +1 -0
  23. package/dist/app/standalone.js +1 -4
  24. package/dist/app/standalone.js.map +1 -1
  25. package/dist/app/tailwind.d.ts +2 -1
  26. package/dist/app/tailwind.js +80 -48
  27. package/dist/app/tailwind.js.map +1 -1
  28. package/dist/cli/build/handler.d.ts +1 -3
  29. package/dist/cli/build/handler.js +9 -1
  30. package/dist/cli/build/handler.js.map +1 -1
  31. package/dist/cli/cli.js +18 -5
  32. package/dist/cli/cli.js.map +1 -1
  33. package/dist/cli/cmds/build.d.ts +11 -3
  34. package/dist/cli/cmds/build.js +21 -13
  35. package/dist/cli/cmds/build.js.map +1 -1
  36. package/dist/cli/cmds/dev.d.ts +1 -1
  37. package/dist/cli/cmds/dev.js +5 -0
  38. package/dist/cli/cmds/dev.js.map +1 -1
  39. package/dist/cli/cmds/preview.d.ts +16 -0
  40. package/dist/cli/cmds/preview.js +25 -0
  41. package/dist/cli/cmds/preview.js.map +1 -0
  42. package/dist/cli/common/logger.js +9 -0
  43. package/dist/cli/common/logger.js.map +1 -1
  44. package/dist/cli/common/machine-id/lib.js +1 -0
  45. package/dist/cli/common/machine-id/lib.js.map +1 -1
  46. package/dist/cli/common/outdated.js +2 -1
  47. package/dist/cli/common/outdated.js.map +1 -1
  48. package/dist/cli/common/output.js.map +1 -1
  49. package/dist/cli/common/utils/ports.d.ts +1 -1
  50. package/dist/cli/common/utils/ports.js +16 -15
  51. package/dist/cli/common/utils/ports.js.map +1 -1
  52. package/dist/cli/dev/handler.d.ts +1 -0
  53. package/dist/cli/dev/handler.js +15 -12
  54. package/dist/cli/dev/handler.js.map +1 -1
  55. package/dist/cli/preview/handler.d.ts +3 -0
  56. package/dist/cli/preview/handler.js +35 -0
  57. package/dist/cli/preview/handler.js.map +1 -0
  58. package/dist/codegen.d.ts +3 -0
  59. package/dist/codegen.js +45 -0
  60. package/dist/codegen.js.map +1 -0
  61. package/dist/config/common.d.ts +10 -0
  62. package/dist/config/common.js +2 -0
  63. package/dist/config/common.js.map +1 -0
  64. package/dist/config/config.d.ts +20 -16
  65. package/dist/config/loader.d.ts +6 -0
  66. package/dist/config/loader.js +65 -0
  67. package/dist/config/loader.js.map +1 -0
  68. package/dist/config/validators/BuildSchema.d.ts +60 -0
  69. package/dist/config/validators/BuildSchema.js +31 -0
  70. package/dist/config/validators/BuildSchema.js.map +1 -0
  71. package/dist/config/validators/InputSidebarSchema.d.ts +50 -34
  72. package/dist/config/validators/InputSidebarSchema.js +11 -1
  73. package/dist/config/validators/InputSidebarSchema.js.map +1 -1
  74. package/dist/config/validators/SidebarSchema.d.ts +24 -1
  75. package/dist/config/validators/SidebarSchema.js +73 -32
  76. package/dist/config/validators/SidebarSchema.js.map +1 -1
  77. package/dist/config/validators/common.d.ts +7676 -0
  78. package/dist/config/validators/common.js +402 -0
  79. package/dist/config/validators/common.js.map +1 -0
  80. package/dist/config/validators/icon-types.d.ts +1 -0
  81. package/dist/config/validators/icon-types.js +2 -0
  82. package/dist/config/validators/icon-types.js.map +1 -0
  83. package/dist/config/validators/validate.d.ts +1869 -540
  84. package/dist/config/validators/validate.js +9 -213
  85. package/dist/config/validators/validate.js.map +1 -1
  86. package/dist/index.d.ts +4 -3
  87. package/dist/index.js +2 -1
  88. package/dist/index.js.map +1 -1
  89. package/dist/lib/MissingIcon.d.ts +2 -0
  90. package/dist/lib/MissingIcon.js +7 -0
  91. package/dist/lib/MissingIcon.js.map +1 -0
  92. package/dist/lib/authentication/AuthenticationPlugin.d.ts +4 -2
  93. package/dist/lib/authentication/AuthenticationPlugin.js +3 -0
  94. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  95. package/dist/lib/authentication/authentication.d.ts +4 -3
  96. package/dist/lib/authentication/components/CallbackHandler.js +21 -31
  97. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  98. package/dist/lib/authentication/components/SignIn.d.ts +1 -1
  99. package/dist/lib/authentication/components/SignIn.js +5 -2
  100. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  101. package/dist/lib/authentication/components/SignOut.js +2 -2
  102. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  103. package/dist/lib/authentication/components/SignUp.d.ts +1 -1
  104. package/dist/lib/authentication/components/SignUp.js +4 -1
  105. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  106. package/dist/lib/authentication/hook.d.ts +6 -4
  107. package/dist/lib/authentication/hook.js +12 -4
  108. package/dist/lib/authentication/hook.js.map +1 -1
  109. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  110. package/dist/lib/authentication/providers/auth0.js +14 -12
  111. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  112. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  113. package/dist/lib/authentication/providers/clerk.js +54 -12
  114. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  115. package/dist/lib/authentication/providers/openid.d.ts +15 -5
  116. package/dist/lib/authentication/providers/openid.js +62 -46
  117. package/dist/lib/authentication/providers/openid.js.map +1 -1
  118. package/dist/lib/authentication/providers/supabase.d.ts +4 -0
  119. package/dist/lib/authentication/providers/supabase.js +117 -0
  120. package/dist/lib/authentication/providers/supabase.js.map +1 -0
  121. package/dist/lib/authentication/state.d.ts +23 -19
  122. package/dist/lib/authentication/state.js +34 -7
  123. package/dist/lib/authentication/state.js.map +1 -1
  124. package/dist/lib/authentication/use-broadcast/shared.d.ts +48 -0
  125. package/dist/lib/authentication/use-broadcast/shared.js +243 -0
  126. package/dist/lib/authentication/use-broadcast/shared.js.map +1 -0
  127. package/dist/lib/authentication/use-broadcast/useBroadcast.d.ts +24 -0
  128. package/dist/lib/authentication/use-broadcast/useBroadcast.js +106 -0
  129. package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -0
  130. package/dist/lib/components/AnchorLink.d.ts +2 -2
  131. package/dist/lib/components/AnchorLink.js +9 -5
  132. package/dist/lib/components/AnchorLink.js.map +1 -1
  133. package/dist/lib/components/Autocomplete.d.ts +13 -0
  134. package/dist/lib/components/Autocomplete.js +47 -0
  135. package/dist/lib/components/Autocomplete.js.map +1 -0
  136. package/dist/lib/components/Banner.js +1 -1
  137. package/dist/lib/components/Banner.js.map +1 -1
  138. package/dist/lib/components/Bootstrap.d.ts +5 -3
  139. package/dist/lib/components/Bootstrap.js +13 -6
  140. package/dist/lib/components/Bootstrap.js.map +1 -1
  141. package/dist/lib/components/BuildCheck.d.ts +4 -0
  142. package/dist/lib/components/BuildCheck.js +38 -0
  143. package/dist/lib/components/BuildCheck.js.map +1 -0
  144. package/dist/lib/components/ClientOnly.d.ts +4 -2
  145. package/dist/lib/components/ClientOnly.js +1 -1
  146. package/dist/lib/components/ClientOnly.js.map +1 -1
  147. package/dist/lib/components/DeveloperHint.js +2 -1
  148. package/dist/lib/components/DeveloperHint.js.map +1 -1
  149. package/dist/lib/components/Footer.d.ts +1 -0
  150. package/dist/lib/components/Footer.js +32 -0
  151. package/dist/lib/components/Footer.js.map +1 -0
  152. package/dist/lib/components/Header.js +22 -15
  153. package/dist/lib/components/Header.js.map +1 -1
  154. package/dist/lib/components/Heading.d.ts +4 -4
  155. package/dist/lib/components/Heading.js +1 -1
  156. package/dist/lib/components/Heading.js.map +1 -1
  157. package/dist/lib/components/InlineCode.d.ts +2 -1
  158. package/dist/lib/components/InlineCode.js +2 -9
  159. package/dist/lib/components/InlineCode.js.map +1 -1
  160. package/dist/lib/components/Layout.js +9 -20
  161. package/dist/lib/components/Layout.js.map +1 -1
  162. package/dist/lib/components/Main.d.ts +2 -0
  163. package/dist/lib/components/Main.js +17 -0
  164. package/dist/lib/components/Main.js.map +1 -0
  165. package/dist/lib/components/Markdown.d.ts +2 -2
  166. package/dist/lib/components/Markdown.js +4 -2
  167. package/dist/lib/components/Markdown.js.map +1 -1
  168. package/dist/lib/components/MobileTopNavigation.js +12 -7
  169. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  170. package/dist/lib/components/NotFoundPage.js +1 -1
  171. package/dist/lib/components/NotFoundPage.js.map +1 -1
  172. package/dist/lib/components/Pagination.d.ts +11 -0
  173. package/dist/lib/components/Pagination.js +10 -0
  174. package/dist/lib/components/Pagination.js.map +1 -0
  175. package/dist/lib/components/PathRenderer.d.ts +11 -0
  176. package/dist/lib/components/PathRenderer.js +28 -0
  177. package/dist/lib/components/PathRenderer.js.map +1 -0
  178. package/dist/lib/components/ReactMarkdown.d.ts +29 -0
  179. package/dist/lib/components/ReactMarkdown.js +182 -0
  180. package/dist/lib/components/ReactMarkdown.js.map +1 -0
  181. package/dist/lib/components/Search.d.ts +3 -1
  182. package/dist/lib/components/Search.js +9 -3
  183. package/dist/lib/components/Search.js.map +1 -1
  184. package/dist/lib/components/SlotletProvider.d.ts +3 -2
  185. package/dist/lib/components/SlotletProvider.js.map +1 -1
  186. package/dist/lib/components/StatusPage.d.ts +7 -0
  187. package/dist/lib/components/StatusPage.js +71 -0
  188. package/dist/lib/components/StatusPage.js.map +1 -0
  189. package/dist/lib/components/ThemeSwitch.d.ts +1 -0
  190. package/dist/lib/components/ThemeSwitch.js +16 -0
  191. package/dist/lib/components/ThemeSwitch.js.map +1 -0
  192. package/dist/lib/components/TopNavigation.d.ts +6 -0
  193. package/dist/lib/components/TopNavigation.js +45 -17
  194. package/dist/lib/components/TopNavigation.js.map +1 -1
  195. package/dist/lib/components/{DevPortal.d.ts → Zudoku.d.ts} +3 -3
  196. package/dist/lib/components/{DevPortal.js → Zudoku.js} +22 -18
  197. package/dist/lib/components/Zudoku.js.map +1 -0
  198. package/dist/lib/components/cache.d.ts +13 -0
  199. package/dist/lib/components/cache.js +20 -0
  200. package/dist/lib/components/cache.js.map +1 -0
  201. package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
  202. package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
  203. package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
  204. package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
  205. package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
  206. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
  207. package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
  208. package/dist/lib/components/context/ViewportAnchorContext.js +29 -23
  209. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  210. package/dist/lib/components/context/ZudokuContext.d.ts +8 -7
  211. package/dist/lib/components/context/ZudokuContext.js +28 -20
  212. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  213. package/dist/lib/components/context/ZudokuProvider.d.ts +2 -2
  214. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  215. package/dist/lib/components/index.d.ts +58 -17
  216. package/dist/lib/components/index.js +27 -6
  217. package/dist/lib/components/index.js.map +1 -1
  218. package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
  219. package/dist/lib/components/navigation/PoweredByZudoku.js +7 -0
  220. package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
  221. package/dist/lib/components/navigation/Sidebar.d.ts +5 -1
  222. package/dist/lib/components/navigation/Sidebar.js +3 -7
  223. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  224. package/dist/lib/components/navigation/SidebarBadge.d.ts +6 -3
  225. package/dist/lib/components/navigation/SidebarBadge.js +13 -11
  226. package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
  227. package/dist/lib/components/navigation/SidebarCategory.d.ts +3 -3
  228. package/dist/lib/components/navigation/SidebarCategory.js +26 -21
  229. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  230. package/dist/lib/components/navigation/SidebarItem.d.ts +3 -4
  231. package/dist/lib/components/navigation/SidebarItem.js +19 -17
  232. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  233. package/dist/lib/components/navigation/SidebarWrapper.d.ts +7 -6
  234. package/dist/lib/components/navigation/SidebarWrapper.js +18 -3
  235. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  236. package/dist/lib/{plugins/markdown → components/navigation}/Toc.js +5 -7
  237. package/dist/lib/components/navigation/Toc.js.map +1 -0
  238. package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
  239. package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
  240. package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
  241. package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
  242. package/dist/lib/components/navigation/ZuploLogo.js +4 -0
  243. package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
  244. package/dist/lib/components/navigation/utils.js +3 -3
  245. package/dist/lib/components/navigation/utils.js.map +1 -1
  246. package/dist/lib/core/RouteGuard.d.ts +2 -0
  247. package/dist/lib/core/RouteGuard.js +52 -0
  248. package/dist/lib/core/RouteGuard.js.map +1 -0
  249. package/dist/lib/core/{DevPortalContext.d.ts → ZudokuContext.d.ts} +39 -15
  250. package/dist/lib/core/ZudokuContext.js +69 -0
  251. package/dist/lib/core/ZudokuContext.js.map +1 -0
  252. package/dist/lib/core/plugins.d.ts +31 -17
  253. package/dist/lib/core/plugins.js +3 -0
  254. package/dist/lib/core/plugins.js.map +1 -1
  255. package/dist/lib/errors/ErrorAlert.d.ts +1 -1
  256. package/dist/lib/errors/ErrorAlert.js +13 -3
  257. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  258. package/dist/lib/errors/RouterError.js +1 -1
  259. package/dist/lib/errors/RouterError.js.map +1 -1
  260. package/dist/lib/hooks/index.d.ts +3 -0
  261. package/dist/lib/hooks/index.js +5 -0
  262. package/dist/lib/hooks/index.js.map +1 -0
  263. package/dist/lib/hooks/useEvent.d.ts +11 -0
  264. package/dist/lib/hooks/useEvent.js +19 -0
  265. package/dist/lib/hooks/useEvent.js.map +1 -0
  266. package/dist/lib/hooks/useEvent.test.js +100 -0
  267. package/dist/lib/hooks/useEvent.test.js.map +1 -0
  268. package/dist/lib/icons.d.ts +1 -0
  269. package/dist/lib/icons.js +1 -0
  270. package/dist/lib/icons.js.map +1 -1
  271. package/dist/lib/oas/graphql/circular.d.ts +3 -0
  272. package/dist/lib/oas/graphql/circular.js +38 -0
  273. package/dist/lib/oas/graphql/circular.js.map +1 -0
  274. package/dist/lib/oas/graphql/index.d.ts +25 -1
  275. package/dist/lib/oas/graphql/index.js +216 -69
  276. package/dist/lib/oas/graphql/index.js.map +1 -1
  277. package/dist/lib/oas/parser/dereference/index.js +8 -3
  278. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  279. package/dist/lib/oas/parser/index.d.ts +5 -3
  280. package/dist/lib/oas/parser/index.js +2 -23
  281. package/dist/lib/oas/parser/index.js.map +1 -1
  282. package/dist/lib/oas/parser/upgrade/index.d.ts +2 -2
  283. package/dist/lib/oas/parser/upgrade/index.js +22 -22
  284. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  285. package/dist/lib/plugins/api-catalog/Catalog.d.ts +4 -0
  286. package/dist/lib/plugins/api-catalog/Catalog.js +26 -0
  287. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
  288. package/dist/lib/plugins/api-catalog/index.d.ts +31 -0
  289. package/dist/lib/plugins/api-catalog/index.js +46 -0
  290. package/dist/lib/plugins/api-catalog/index.js.map +1 -0
  291. package/dist/lib/plugins/api-keys/CreateApiKey.js +9 -5
  292. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  293. package/dist/lib/plugins/api-keys/ProtectedRoute.js +1 -1
  294. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
  295. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +1 -1
  296. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  297. package/dist/lib/plugins/api-keys/index.d.ts +10 -9
  298. package/dist/lib/plugins/api-keys/index.js +4 -0
  299. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  300. package/dist/lib/plugins/custom-pages/CustomPage.js +2 -2
  301. package/dist/lib/plugins/custom-pages/index.d.ts +2 -2
  302. package/dist/lib/plugins/custom-pages/index.js.map +1 -1
  303. package/dist/lib/plugins/markdown/MdxPage.d.ts +10 -2
  304. package/dist/lib/plugins/markdown/MdxPage.js +17 -4
  305. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  306. package/dist/lib/plugins/markdown/index.d.ts +5 -3
  307. package/dist/lib/plugins/markdown/index.js +1 -1
  308. package/dist/lib/plugins/markdown/index.js.map +1 -1
  309. package/dist/lib/plugins/markdown/resolver.d.ts +0 -6
  310. package/dist/lib/plugins/markdown/resolver.js +0 -29
  311. package/dist/lib/plugins/markdown/resolver.js.map +1 -1
  312. package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +5 -0
  313. package/dist/lib/plugins/openapi/CollapsibleCode.js +25 -0
  314. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -0
  315. package/dist/lib/plugins/openapi/ColorizedParam.d.ts +10 -2
  316. package/dist/lib/plugins/openapi/ColorizedParam.js +29 -14
  317. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  318. package/dist/lib/plugins/openapi/Endpoint.js +13 -16
  319. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  320. package/dist/lib/plugins/openapi/OasProvider.d.ts +8 -0
  321. package/dist/lib/plugins/openapi/OasProvider.js +29 -0
  322. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -0
  323. package/dist/lib/plugins/openapi/OperationList.d.ts +6 -3
  324. package/dist/lib/plugins/openapi/OperationList.js +107 -27
  325. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  326. package/dist/lib/plugins/openapi/OperationListItem.d.ts +5 -3
  327. package/dist/lib/plugins/openapi/OperationListItem.js +10 -5
  328. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  329. package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
  330. package/dist/lib/plugins/openapi/ParamInfos.js +43 -0
  331. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
  332. package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -1
  333. package/dist/lib/plugins/openapi/ParameterList.js +3 -2
  334. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  335. package/dist/lib/plugins/openapi/ParameterListItem.js +19 -1
  336. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  337. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +4 -2
  338. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +12 -3
  339. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  340. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +3 -4
  341. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +5 -9
  342. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  343. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +7 -6
  344. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  345. package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
  346. package/dist/lib/plugins/openapi/SchemaList.js +52 -0
  347. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
  348. package/dist/lib/plugins/openapi/Sidecar.d.ts +1 -1
  349. package/dist/lib/plugins/openapi/Sidecar.js +83 -64
  350. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  351. package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
  352. package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
  353. package/dist/lib/plugins/openapi/SidecarExamples.d.ts +9 -0
  354. package/dist/lib/plugins/openapi/SidecarExamples.js +68 -0
  355. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -0
  356. package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
  357. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
  358. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
  359. package/dist/lib/plugins/openapi/client/GraphQLClient.js +43 -0
  360. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
  361. package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
  362. package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
  363. package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
  364. package/dist/lib/plugins/openapi/client/createServer.d.ts +3 -1
  365. package/dist/lib/plugins/openapi/client/createServer.js +5 -2
  366. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
  367. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +9 -0
  368. package/dist/lib/plugins/openapi/client/useCreateQuery.js +14 -0
  369. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
  370. package/dist/lib/plugins/openapi/components/ConstValue.d.ts +5 -0
  371. package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
  372. package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
  373. package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
  374. package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
  375. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
  376. package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
  377. package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
  378. package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
  379. package/dist/lib/plugins/openapi/context.d.ts +3 -3
  380. package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
  381. package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
  382. package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
  383. package/dist/lib/plugins/openapi/graphql/gql.d.ts +8 -46
  384. package/dist/lib/plugins/openapi/graphql/gql.js +6 -13
  385. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  386. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +141 -25
  387. package/dist/lib/plugins/openapi/graphql/graphql.js +238 -662
  388. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  389. package/dist/lib/plugins/openapi/index.d.ts +11 -7
  390. package/dist/lib/plugins/openapi/index.js +72 -104
  391. package/dist/lib/plugins/openapi/index.js.map +1 -1
  392. package/dist/lib/plugins/openapi/interfaces.d.ts +56 -3
  393. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +6 -0
  394. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +8 -0
  395. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -0
  396. package/dist/lib/plugins/openapi/playground/Headers.d.ts +4 -4
  397. package/dist/lib/plugins/openapi/playground/Headers.js +84 -5
  398. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  399. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
  400. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +14 -0
  401. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
  402. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
  403. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +10 -0
  404. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
  405. package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +9 -0
  406. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +5 -0
  407. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -0
  408. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
  409. package/dist/lib/plugins/openapi/playground/PathParams.js +5 -7
  410. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  411. package/dist/lib/plugins/openapi/playground/Playground.d.ts +37 -2
  412. package/dist/lib/plugins/openapi/playground/Playground.js +133 -70
  413. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  414. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +2 -2
  415. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  416. package/dist/lib/plugins/openapi/playground/QueryParams.js +24 -18
  417. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  418. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
  419. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
  420. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
  421. package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +7 -0
  422. package/dist/lib/plugins/openapi/playground/SubmitButton.js +22 -0
  423. package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +1 -0
  424. package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
  425. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
  426. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
  427. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +7 -0
  428. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +11 -0
  429. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +1 -0
  430. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +8 -0
  431. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +101 -0
  432. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -0
  433. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +9 -0
  434. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +17 -0
  435. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -0
  436. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +10 -0
  437. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +32 -0
  438. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -0
  439. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js +56 -0
  440. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js.map +1 -0
  441. package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
  442. package/dist/lib/plugins/openapi/processors/removeExtensions.js +16 -0
  443. package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
  444. package/dist/lib/plugins/openapi/processors/removeExtensions.test.d.ts +1 -0
  445. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +194 -0
  446. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
  447. package/dist/lib/plugins/openapi/processors/removeParameters.d.ts +12 -0
  448. package/dist/lib/plugins/openapi/processors/removeParameters.js +66 -0
  449. package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
  450. package/dist/lib/plugins/openapi/processors/removeParameters.test.d.ts +1 -0
  451. package/dist/lib/plugins/openapi/processors/removeParameters.test.js +159 -0
  452. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
  453. package/dist/lib/plugins/openapi/processors/removePaths.d.ts +13 -0
  454. package/dist/lib/plugins/openapi/processors/removePaths.js +33 -0
  455. package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
  456. package/dist/lib/plugins/openapi/processors/removePaths.test.d.ts +1 -0
  457. package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
  458. package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
  459. package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -0
  460. package/dist/lib/plugins/openapi/processors/traverse.js +2 -0
  461. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
  462. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +1 -2
  463. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +2 -2
  464. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
  465. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
  466. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
  467. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
  468. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -1
  469. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
  470. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
  471. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
  472. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +12 -0
  473. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
  474. package/dist/lib/plugins/openapi/schema/{SchemaComponents.d.ts → SchemaPropertyItem.d.ts} +2 -4
  475. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +45 -0
  476. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -0
  477. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +1 -2
  478. package/dist/lib/plugins/openapi/schema/SchemaView.js +38 -48
  479. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  480. package/dist/lib/plugins/openapi/schema/utils.d.ts +3 -0
  481. package/dist/lib/plugins/openapi/schema/utils.js +8 -1
  482. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  483. package/dist/lib/plugins/openapi/state.d.ts +25 -0
  484. package/dist/lib/plugins/openapi/state.js +18 -0
  485. package/dist/lib/plugins/openapi/state.js.map +1 -0
  486. package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +9 -0
  487. package/dist/lib/plugins/openapi/util/createSidebarCategory.js +23 -0
  488. package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +1 -0
  489. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +0 -1
  490. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +73 -39
  491. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  492. package/dist/lib/plugins/openapi/util/getRoutes.d.ts +10 -0
  493. package/dist/lib/plugins/openapi/util/getRoutes.js +87 -0
  494. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -0
  495. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +2 -0
  496. package/dist/lib/plugins/openapi/util/methodColorMap.js +10 -0
  497. package/dist/lib/plugins/openapi/util/methodColorMap.js.map +1 -0
  498. package/dist/lib/plugins/openapi/util/methodToColor.d.ts +20 -0
  499. package/dist/lib/plugins/openapi/util/methodToColor.js +24 -0
  500. package/dist/lib/plugins/openapi/util/methodToColor.js.map +1 -0
  501. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.d.ts +1 -0
  502. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js +27 -0
  503. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js.map +1 -0
  504. package/dist/lib/plugins/redirect/index.d.ts +4 -7
  505. package/dist/lib/plugins/redirect/index.js +2 -2
  506. package/dist/lib/plugins/redirect/index.js.map +1 -1
  507. package/dist/lib/plugins/search-inkeep/index.d.ts +24 -5
  508. package/dist/lib/plugins/search-inkeep/index.js +41 -5
  509. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  510. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +3 -4
  511. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  512. package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
  513. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +80 -0
  514. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
  515. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
  516. package/dist/lib/plugins/search-pagefind/ResultList.js +32 -0
  517. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
  518. package/dist/lib/plugins/search-pagefind/get-results.d.ts +10 -0
  519. package/dist/lib/plugins/search-pagefind/get-results.js +42 -0
  520. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
  521. package/dist/lib/plugins/search-pagefind/index.d.ts +6 -0
  522. package/dist/lib/plugins/search-pagefind/index.js +9 -0
  523. package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
  524. package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
  525. package/dist/lib/plugins/search-pagefind/types.js +2 -0
  526. package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
  527. package/dist/lib/ui/Accordion.d.ts +7 -0
  528. package/dist/lib/ui/Accordion.js +14 -0
  529. package/dist/lib/ui/Accordion.js.map +1 -0
  530. package/dist/lib/ui/ActionButton.d.ts +4 -0
  531. package/dist/lib/ui/ActionButton.js +10 -0
  532. package/dist/lib/ui/ActionButton.js.map +1 -0
  533. package/dist/lib/ui/Alert.d.ts +8 -0
  534. package/dist/lib/ui/Alert.js +23 -0
  535. package/dist/lib/ui/Alert.js.map +1 -0
  536. package/dist/lib/ui/AlertDialog.d.ts +20 -0
  537. package/dist/lib/ui/AlertDialog.js +27 -0
  538. package/dist/lib/ui/AlertDialog.js.map +1 -0
  539. package/dist/lib/ui/AspectRatio.d.ts +3 -0
  540. package/dist/lib/ui/AspectRatio.js +4 -0
  541. package/dist/lib/ui/AspectRatio.js.map +1 -0
  542. package/dist/lib/ui/Badge.d.ts +9 -0
  543. package/dist/lib/ui/Badge.js +22 -0
  544. package/dist/lib/ui/Badge.js.map +1 -0
  545. package/dist/lib/ui/Breadcrumb.d.ts +19 -0
  546. package/dist/lib/ui/Breadcrumb.js +24 -0
  547. package/dist/lib/ui/Breadcrumb.js.map +1 -0
  548. package/dist/lib/ui/Button.d.ts +3 -4
  549. package/dist/lib/ui/Button.js +2 -1
  550. package/dist/lib/ui/Button.js.map +1 -1
  551. package/dist/lib/ui/Callout.d.ts +2 -1
  552. package/dist/lib/ui/Callout.js +3 -2
  553. package/dist/lib/ui/Callout.js.map +1 -1
  554. package/dist/lib/ui/Card.js +1 -1
  555. package/dist/lib/ui/Card.js.map +1 -1
  556. package/dist/lib/ui/Carousel.d.ts +18 -0
  557. package/dist/lib/ui/Carousel.js +99 -0
  558. package/dist/lib/ui/Carousel.js.map +1 -0
  559. package/dist/lib/ui/Checkbox.d.ts +4 -0
  560. package/dist/lib/ui/Checkbox.js +9 -0
  561. package/dist/lib/ui/Checkbox.js.map +1 -0
  562. package/dist/lib/ui/Collapsible.d.ts +5 -0
  563. package/dist/lib/ui/Collapsible.js +6 -0
  564. package/dist/lib/ui/Collapsible.js.map +1 -0
  565. package/dist/lib/ui/Command.d.ts +94 -0
  566. package/dist/lib/ui/Command.js +35 -0
  567. package/dist/lib/ui/Command.js.map +1 -0
  568. package/dist/lib/{components → ui}/Dialog.js +2 -2
  569. package/dist/lib/ui/Dialog.js.map +1 -0
  570. package/dist/lib/ui/Form.d.ts +23 -0
  571. package/dist/lib/ui/Form.js +63 -0
  572. package/dist/lib/ui/Form.js.map +1 -0
  573. package/dist/lib/ui/HoverCard.d.ts +6 -0
  574. package/dist/lib/ui/HoverCard.js +10 -0
  575. package/dist/lib/ui/HoverCard.js.map +1 -0
  576. package/dist/lib/ui/Input.d.ts +1 -2
  577. package/dist/lib/ui/Input.js.map +1 -1
  578. package/dist/lib/ui/Label.d.ts +5 -0
  579. package/dist/lib/ui/Label.js +10 -0
  580. package/dist/lib/ui/Label.js.map +1 -0
  581. package/dist/lib/ui/Pagination.d.ts +28 -0
  582. package/dist/lib/ui/Pagination.js +24 -0
  583. package/dist/lib/ui/Pagination.js.map +1 -0
  584. package/dist/lib/ui/Popover.d.ts +6 -0
  585. package/dist/lib/ui/Popover.js +10 -0
  586. package/dist/lib/ui/Popover.js.map +1 -0
  587. package/dist/lib/ui/Progress.d.ts +4 -0
  588. package/dist/lib/ui/Progress.js +8 -0
  589. package/dist/lib/ui/Progress.js.map +1 -0
  590. package/dist/lib/ui/RadioGroup.d.ts +5 -0
  591. package/dist/lib/ui/RadioGroup.js +15 -0
  592. package/dist/lib/ui/RadioGroup.js.map +1 -0
  593. package/dist/lib/ui/ScrollArea.d.ts +5 -0
  594. package/dist/lib/ui/ScrollArea.js +12 -0
  595. package/dist/lib/ui/ScrollArea.js.map +1 -0
  596. package/dist/lib/{components → ui}/Select.js +3 -3
  597. package/dist/lib/ui/Select.js.map +1 -0
  598. package/dist/lib/ui/Skeleton.d.ts +2 -0
  599. package/dist/lib/ui/Skeleton.js +7 -0
  600. package/dist/lib/ui/Skeleton.js.map +1 -0
  601. package/dist/lib/ui/Slider.d.ts +4 -0
  602. package/dist/lib/ui/Slider.js +8 -0
  603. package/dist/lib/ui/Slider.js.map +1 -0
  604. package/dist/lib/ui/Stepper.d.ts +3 -0
  605. package/dist/lib/ui/Stepper.js +7 -0
  606. package/dist/lib/ui/Stepper.js.map +1 -0
  607. package/dist/lib/ui/Switch.d.ts +4 -0
  608. package/dist/lib/ui/Switch.js +8 -0
  609. package/dist/lib/ui/Switch.js.map +1 -0
  610. package/dist/lib/ui/SyntaxHighlight.d.ts +15 -0
  611. package/dist/lib/ui/SyntaxHighlight.js +62 -0
  612. package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
  613. package/dist/lib/ui/Textarea.d.ts +4 -0
  614. package/dist/lib/ui/Textarea.js +9 -0
  615. package/dist/lib/ui/Textarea.js.map +1 -0
  616. package/dist/lib/ui/Toggle.d.ts +12 -0
  617. package/dist/lib/ui/Toggle.js +26 -0
  618. package/dist/lib/ui/Toggle.js.map +1 -0
  619. package/dist/lib/ui/ToggleGroup.d.ts +12 -0
  620. package/dist/lib/ui/ToggleGroup.js +21 -0
  621. package/dist/lib/ui/ToggleGroup.js.map +1 -0
  622. package/dist/lib/ui/Tooltip.d.ts +7 -0
  623. package/dist/lib/ui/Tooltip.js +11 -0
  624. package/dist/lib/ui/Tooltip.js.map +1 -0
  625. package/dist/lib/ui/util.d.ts +2 -0
  626. package/dist/lib/ui/util.js +3 -0
  627. package/dist/lib/ui/util.js.map +1 -0
  628. package/dist/lib/util/MdxComponents.d.ts +24 -21
  629. package/dist/lib/util/MdxComponents.js +10 -7
  630. package/dist/lib/util/MdxComponents.js.map +1 -1
  631. package/dist/lib/util/createVariantComponent.d.ts +2 -2
  632. package/dist/lib/util/detectOS.d.ts +1 -0
  633. package/dist/lib/util/detectOS.js +11 -0
  634. package/dist/lib/util/detectOS.js.map +1 -0
  635. package/dist/lib/util/ensureArray.d.ts +1 -0
  636. package/dist/lib/util/ensureArray.js +2 -0
  637. package/dist/lib/util/ensureArray.js.map +1 -0
  638. package/dist/lib/util/invariant.d.ts +9 -0
  639. package/dist/lib/util/invariant.js +7 -3
  640. package/dist/lib/util/invariant.js.map +1 -1
  641. package/dist/lib/util/joinPath.d.ts +3 -0
  642. package/dist/lib/util/joinPath.js +3 -0
  643. package/dist/lib/util/joinPath.js.map +1 -1
  644. package/dist/lib/util/joinUrl.d.ts +1 -0
  645. package/dist/lib/util/joinUrl.js +40 -0
  646. package/dist/lib/util/joinUrl.js.map +1 -0
  647. package/dist/lib/util/joinUrl.test.d.ts +1 -0
  648. package/dist/lib/util/joinUrl.test.js +43 -0
  649. package/dist/lib/util/joinUrl.test.js.map +1 -0
  650. package/dist/lib/util/scrollIntoViewIfNeeded.d.ts +1 -0
  651. package/dist/lib/util/scrollIntoViewIfNeeded.js +14 -0
  652. package/dist/lib/util/scrollIntoViewIfNeeded.js.map +1 -0
  653. package/dist/lib/util/traverse.d.ts +3 -0
  654. package/dist/lib/util/traverse.js +22 -0
  655. package/dist/lib/util/traverse.js.map +1 -0
  656. package/dist/lib/util/types.d.ts +7 -0
  657. package/dist/lib/util/types.js +2 -0
  658. package/dist/lib/util/types.js.map +1 -0
  659. package/dist/lib/util/useExposedProps.js +3 -2
  660. package/dist/lib/util/useExposedProps.js.map +1 -1
  661. package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
  662. package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
  663. package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
  664. package/dist/lib/util/useLatest.d.ts +1 -0
  665. package/dist/lib/util/useLatest.js +15 -0
  666. package/dist/lib/util/useLatest.js.map +1 -0
  667. package/dist/lib/util/useOnScreen.d.ts +5 -0
  668. package/dist/lib/util/useOnScreen.js +19 -0
  669. package/dist/lib/util/useOnScreen.js.map +1 -0
  670. package/dist/lib/util/useScrollToAnchor.d.ts +1 -0
  671. package/dist/lib/util/useScrollToAnchor.js +42 -37
  672. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  673. package/dist/lib/util/useScrollToTop.js +7 -5
  674. package/dist/lib/util/useScrollToTop.js.map +1 -1
  675. package/dist/vite/api/SchemaManager.d.ts +36 -0
  676. package/dist/vite/api/SchemaManager.js +120 -0
  677. package/dist/vite/api/SchemaManager.js.map +1 -0
  678. package/dist/vite/api/SchemaManager.test.d.ts +1 -0
  679. package/dist/vite/api/SchemaManager.test.js +106 -0
  680. package/dist/vite/api/SchemaManager.test.js.map +1 -0
  681. package/dist/vite/api/schema-codegen.d.ts +12 -0
  682. package/dist/vite/api/schema-codegen.js +85 -0
  683. package/dist/vite/api/schema-codegen.js.map +1 -0
  684. package/dist/vite/api/schema-codegen.test.d.ts +1 -0
  685. package/dist/vite/api/schema-codegen.test.js +313 -0
  686. package/dist/vite/api/schema-codegen.test.js.map +1 -0
  687. package/dist/vite/build.js +43 -14
  688. package/dist/vite/build.js.map +1 -1
  689. package/dist/vite/config.d.ts +7 -14
  690. package/dist/vite/config.js +125 -112
  691. package/dist/vite/config.js.map +1 -1
  692. package/dist/vite/config.test.js +11 -5
  693. package/dist/vite/config.test.js.map +1 -1
  694. package/dist/vite/create-pagefind-index.d.ts +4 -0
  695. package/dist/vite/create-pagefind-index.js +12 -0
  696. package/dist/vite/create-pagefind-index.js.map +1 -0
  697. package/dist/vite/css/collect.d.ts +2 -0
  698. package/dist/vite/css/collect.js +27 -0
  699. package/dist/vite/css/collect.js.map +1 -0
  700. package/dist/vite/css/plugin.d.ts +5 -0
  701. package/dist/vite/css/plugin.js +79 -0
  702. package/dist/vite/css/plugin.js.map +1 -0
  703. package/dist/vite/dev-server.d.ts +5 -2
  704. package/dist/vite/dev-server.js +66 -16
  705. package/dist/vite/dev-server.js.map +1 -1
  706. package/dist/vite/error-handler.d.ts +1 -1
  707. package/dist/vite/error-handler.js +1 -1
  708. package/dist/vite/error-handler.js.map +1 -1
  709. package/dist/vite/html.js +0 -2
  710. package/dist/vite/html.js.map +1 -1
  711. package/dist/vite/output.d.ts +113 -0
  712. package/dist/vite/output.js +60 -0
  713. package/dist/vite/output.js.map +1 -0
  714. package/dist/vite/plugin-api-keys.d.ts +2 -2
  715. package/dist/vite/plugin-api-keys.js +5 -5
  716. package/dist/vite/plugin-api-keys.js.map +1 -1
  717. package/dist/vite/plugin-api.d.ts +2 -2
  718. package/dist/vite/plugin-api.js +145 -32
  719. package/dist/vite/plugin-api.js.map +1 -1
  720. package/dist/vite/plugin-auth.d.ts +2 -2
  721. package/dist/vite/plugin-auth.js +7 -4
  722. package/dist/vite/plugin-auth.js.map +1 -1
  723. package/dist/vite/plugin-component.d.ts +2 -2
  724. package/dist/vite/plugin-component.js +22 -12
  725. package/dist/vite/plugin-component.js.map +1 -1
  726. package/dist/vite/plugin-config-reload.d.ts +4 -4
  727. package/dist/vite/plugin-config-reload.js +13 -8
  728. package/dist/vite/plugin-config-reload.js.map +1 -1
  729. package/dist/vite/plugin-config.d.ts +2 -3
  730. package/dist/vite/plugin-config.js +26 -3
  731. package/dist/vite/plugin-config.js.map +1 -1
  732. package/dist/vite/plugin-custom-pages.d.ts +2 -2
  733. package/dist/vite/plugin-custom-pages.js +3 -3
  734. package/dist/vite/plugin-custom-pages.js.map +1 -1
  735. package/dist/vite/plugin-docs.d.ts +3 -3
  736. package/dist/vite/plugin-docs.js +23 -6
  737. package/dist/vite/plugin-docs.js.map +1 -1
  738. package/dist/vite/plugin-docs.test.js +15 -23
  739. package/dist/vite/plugin-docs.test.js.map +1 -1
  740. package/dist/vite/plugin-frontmatter.d.ts +2 -1
  741. package/dist/vite/plugin-frontmatter.js +28 -24
  742. package/dist/vite/plugin-frontmatter.js.map +1 -1
  743. package/dist/vite/plugin-mdx.d.ts +2 -8
  744. package/dist/vite/plugin-mdx.js +89 -16
  745. package/dist/vite/plugin-mdx.js.map +1 -1
  746. package/dist/vite/plugin-redirect.d.ts +2 -2
  747. package/dist/vite/plugin-redirect.js +3 -3
  748. package/dist/vite/plugin-redirect.js.map +1 -1
  749. package/dist/vite/plugin-search.d.ts +3 -0
  750. package/dist/vite/plugin-search.js +30 -0
  751. package/dist/vite/plugin-search.js.map +1 -0
  752. package/dist/vite/plugin-sidebar.d.ts +5 -3
  753. package/dist/vite/plugin-sidebar.js +24 -11
  754. package/dist/vite/plugin-sidebar.js.map +1 -1
  755. package/dist/vite/{plugin-custom-css.d.ts → plugin-theme-css.d.ts} +3 -3
  756. package/dist/vite/plugin-theme-css.js +117 -0
  757. package/dist/vite/plugin-theme-css.js.map +1 -0
  758. package/dist/vite/plugin.d.ts +2 -3
  759. package/dist/vite/plugin.js +10 -6
  760. package/dist/vite/plugin.js.map +1 -1
  761. package/dist/vite/prerender/FileWritingResponse.d.ts +25 -0
  762. package/dist/vite/prerender/FileWritingResponse.js +51 -0
  763. package/dist/vite/prerender/FileWritingResponse.js.map +1 -0
  764. package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
  765. package/dist/vite/prerender/InMemoryResponse.js +32 -0
  766. package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
  767. package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
  768. package/dist/vite/prerender/PrerenderResponse.js +2 -0
  769. package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
  770. package/dist/vite/prerender/prerender.d.ts +15 -0
  771. package/dist/vite/prerender/prerender.js +109 -0
  772. package/dist/vite/prerender/prerender.js.map +1 -0
  773. package/dist/vite/prerender/worker.d.ts +13 -0
  774. package/dist/vite/prerender/worker.js +59 -0
  775. package/dist/vite/prerender/worker.js.map +1 -0
  776. package/dist/vite/remarkStaticGeneration.d.ts +3 -0
  777. package/dist/vite/remarkStaticGeneration.js +125 -0
  778. package/dist/vite/remarkStaticGeneration.js.map +1 -0
  779. package/dist/vite/reporter.d.ts +3 -0
  780. package/dist/vite/reporter.js +33 -0
  781. package/dist/vite/reporter.js.map +1 -0
  782. package/dist/vite/sitemap.d.ts +1 -1
  783. package/dist/vite/sitemap.js +2 -1
  784. package/dist/vite/sitemap.js.map +1 -1
  785. package/dist/zuplo/enrich-with-zuplo.d.ts +5 -0
  786. package/dist/zuplo/enrich-with-zuplo.js +185 -0
  787. package/dist/zuplo/enrich-with-zuplo.js.map +1 -0
  788. package/dist/zuplo/policy-types.d.ts +33 -0
  789. package/dist/zuplo/policy-types.js +8 -0
  790. package/dist/zuplo/policy-types.js.map +1 -0
  791. package/dist/zuplo/with-zuplo-processors.d.ts +3 -0
  792. package/dist/zuplo/with-zuplo-processors.js +26 -0
  793. package/dist/zuplo/with-zuplo-processors.js.map +1 -0
  794. package/dist/zuplo/with-zuplo.d.ts +6 -0
  795. package/dist/zuplo/with-zuplo.js +10 -0
  796. package/dist/zuplo/with-zuplo.js.map +1 -0
  797. package/lib/AuthenticationPlugin-ByDF051g.js +99 -0
  798. package/lib/AuthenticationPlugin-ByDF051g.js.map +1 -0
  799. package/lib/Button-BBNrKpQd.js +49 -0
  800. package/lib/Button-BBNrKpQd.js.map +1 -0
  801. package/lib/Callout-D3Ja4OPX.js +230 -0
  802. package/lib/Callout-D3Ja4OPX.js.map +1 -0
  803. package/lib/Card-BtheiD7j.js +61 -0
  804. package/lib/Card-BtheiD7j.js.map +1 -0
  805. package/lib/CategoryHeading-D06WK_Wo.js +10 -0
  806. package/lib/{CategoryHeading-B7TlPvuN.js.map → CategoryHeading-D06WK_Wo.js.map} +1 -1
  807. package/lib/ClientOnly-E7hGysn1.js +11 -0
  808. package/lib/ClientOnly-E7hGysn1.js.map +1 -0
  809. package/lib/Dialog-ByYz4ABw.js +98 -0
  810. package/lib/Dialog-ByYz4ABw.js.map +1 -0
  811. package/lib/Drawer-CEwbkLDb.js +1133 -0
  812. package/lib/Drawer-CEwbkLDb.js.map +1 -0
  813. package/lib/Markdown-mFpg_n9p.js +17125 -0
  814. package/lib/Markdown-mFpg_n9p.js.map +1 -0
  815. package/lib/MdxPage-Cm7atiW3.js +85 -0
  816. package/lib/MdxPage-Cm7atiW3.js.map +1 -0
  817. package/lib/OasProvider-DBJ3ZUTp.js +34 -0
  818. package/lib/OasProvider-DBJ3ZUTp.js.map +1 -0
  819. package/lib/OperationList-zUAJl5qO.js +5125 -0
  820. package/lib/OperationList-zUAJl5qO.js.map +1 -0
  821. package/lib/Pagination-DLPL5z77.js +48 -0
  822. package/lib/Pagination-DLPL5z77.js.map +1 -0
  823. package/lib/RouteGuard-DRtEu9nh.js +744 -0
  824. package/lib/RouteGuard-DRtEu9nh.js.map +1 -0
  825. package/lib/SchemaList-YsfrEmpL.js +148 -0
  826. package/lib/SchemaList-YsfrEmpL.js.map +1 -0
  827. package/lib/SchemaView-C3JbhWHn.js +367 -0
  828. package/lib/SchemaView-C3JbhWHn.js.map +1 -0
  829. package/lib/Select-CT64Ou40.js +223 -0
  830. package/lib/Select-CT64Ou40.js.map +1 -0
  831. package/lib/SlotletProvider-CS_nO-XT.js +340 -0
  832. package/lib/SlotletProvider-CS_nO-XT.js.map +1 -0
  833. package/lib/{Spinner-3cQDBVGr.js → Spinner-mNLZ6awP.js} +2 -2
  834. package/lib/{Spinner-3cQDBVGr.js.map → Spinner-mNLZ6awP.js.map} +1 -1
  835. package/lib/SyntaxHighlight-CxhyyMkF.js +2890 -0
  836. package/lib/SyntaxHighlight-CxhyyMkF.js.map +1 -0
  837. package/lib/Toc-D_tV8_Ri.js +92 -0
  838. package/lib/Toc-D_tV8_Ri.js.map +1 -0
  839. package/lib/_commonjsHelpers-B4e78b8K.js +29 -0
  840. package/lib/_commonjsHelpers-B4e78b8K.js.map +1 -0
  841. package/lib/chunk-BAXFHI7N-BVBOl9s0.js +1826 -0
  842. package/lib/chunk-BAXFHI7N-BVBOl9s0.js.map +1 -0
  843. package/lib/circular-ByJI6Mci.js +15877 -0
  844. package/lib/circular-ByJI6Mci.js.map +1 -0
  845. package/lib/cn-qaFjX9_3.js +2279 -0
  846. package/lib/cn-qaFjX9_3.js.map +1 -0
  847. package/lib/context-Lrf2Y9bR.js +22 -0
  848. package/lib/context-Lrf2Y9bR.js.map +1 -0
  849. package/lib/createServer-IW7v5hWm.js +12318 -0
  850. package/lib/createServer-IW7v5hWm.js.map +1 -0
  851. package/lib/hook-CldJlP5c.js +1478 -0
  852. package/lib/hook-CldJlP5c.js.map +1 -0
  853. package/lib/index-BBgdF7h4.js +2184 -0
  854. package/lib/index-BBgdF7h4.js.map +1 -0
  855. package/lib/index-Bn6Lc9tq.js +9 -0
  856. package/lib/{index-DJqnphbT.js.map → index-Bn6Lc9tq.js.map} +1 -1
  857. package/lib/index-CPNSgwSb.js +36 -0
  858. package/lib/index-CPNSgwSb.js.map +1 -0
  859. package/lib/index-CuBIgTKC.js +316 -0
  860. package/lib/index-CuBIgTKC.js.map +1 -0
  861. package/lib/{index-CkwDvuPt.js → index-DcHeSvkE.js} +348 -318
  862. package/lib/index-DcHeSvkE.js.map +1 -0
  863. package/lib/index-DnQftvP4.js +5031 -0
  864. package/lib/index-DnQftvP4.js.map +1 -0
  865. package/lib/index-DwT-v3zK.js +86 -0
  866. package/lib/index-DwT-v3zK.js.map +1 -0
  867. package/lib/{index-D06ATMgg.js → index-LNp6rxyU.js} +2 -2
  868. package/lib/{index-D06ATMgg.js.map → index-LNp6rxyU.js.map} +1 -1
  869. package/lib/index.esm-D2ZUREQN.js +1216 -0
  870. package/lib/index.esm-D2ZUREQN.js.map +1 -0
  871. package/lib/invariant-Caa8-XvF.js +26 -0
  872. package/lib/invariant-Caa8-XvF.js.map +1 -0
  873. package/lib/jsx-runtime-C5mzlN2N.js +285 -0
  874. package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
  875. package/lib/mutation-DBQh7AOZ.js +211 -0
  876. package/lib/mutation-DBQh7AOZ.js.map +1 -0
  877. package/lib/objectEntries-yMIkr2mI.js +5 -0
  878. package/lib/objectEntries-yMIkr2mI.js.map +1 -0
  879. package/lib/{prism-bash.min-DadFsM4Z.js → prism-bash.min-HHIMdNJ_.js} +4 -4
  880. package/lib/{prism-bash.min-DadFsM4Z.js.map → prism-bash.min-HHIMdNJ_.js.map} +1 -1
  881. package/lib/prism-csharp.min-C43x1RY2.js +63 -0
  882. package/lib/{prism-csharp.min-Yizuc34Y.js.map → prism-csharp.min-C43x1RY2.js.map} +1 -1
  883. package/lib/prism-java.min-CQzr40NQ.js +35 -0
  884. package/lib/{prism-java.min-d5iT_mOd.js.map → prism-java.min-CQzr40NQ.js.map} +1 -1
  885. package/lib/prism-javascript.min-CEqHqgbm.js.map +1 -1
  886. package/lib/prism-json.min-B1GJqK1k.js.map +1 -1
  887. package/lib/prism-jsstacktrace.min-BfobCF2F.js +2 -0
  888. package/lib/prism-jsstacktrace.min-BfobCF2F.js.map +1 -0
  889. package/lib/{prism-markdown.min-F3U-vPBi.js → prism-markdown.min-C0Qn0m-5.js} +30 -30
  890. package/lib/{prism-markdown.min-F3U-vPBi.js.map → prism-markdown.min-C0Qn0m-5.js.map} +1 -1
  891. package/lib/prism-markup-BNGj0Tvm.js.map +1 -1
  892. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +1 -1
  893. package/lib/prism-ruby.min-L9OdQ6tU.js +38 -0
  894. package/lib/{prism-ruby.min-C7LwcKyz.js.map → prism-ruby.min-L9OdQ6tU.js.map} +1 -1
  895. package/lib/prism-typescript.min-qTySPvCh.js +34 -0
  896. package/lib/{prism-typescript.min-oSVeWCAd.js.map → prism-typescript.min-qTySPvCh.js.map} +1 -1
  897. package/lib/processors/removeExtensions.js +11 -0
  898. package/lib/processors/removeExtensions.js.map +1 -0
  899. package/lib/processors/removeParameters.js +48 -0
  900. package/lib/processors/removeParameters.js.map +1 -0
  901. package/lib/processors/removePaths.js +28 -0
  902. package/lib/processors/removePaths.js.map +1 -0
  903. package/lib/processors/traverse.js +15 -0
  904. package/lib/processors/traverse.js.map +1 -0
  905. package/lib/ui/Accordion.js +47 -0
  906. package/lib/ui/Accordion.js.map +1 -0
  907. package/lib/ui/ActionButton.js +25 -0
  908. package/lib/ui/ActionButton.js.map +1 -0
  909. package/lib/ui/Alert.js +51 -0
  910. package/lib/ui/Alert.js.map +1 -0
  911. package/lib/ui/AlertDialog.js +114 -0
  912. package/lib/ui/AlertDialog.js.map +1 -0
  913. package/lib/ui/AspectRatio.js +6 -0
  914. package/lib/ui/AspectRatio.js.map +1 -0
  915. package/lib/ui/Badge.js +28 -0
  916. package/lib/ui/Badge.js.map +1 -0
  917. package/lib/ui/Breadcrumb.js +94 -0
  918. package/lib/ui/Breadcrumb.js.map +1 -0
  919. package/lib/ui/Button.js +50 -0
  920. package/lib/ui/Button.js.map +1 -0
  921. package/lib/ui/Callout.js +96 -0
  922. package/lib/ui/Callout.js.map +1 -0
  923. package/lib/ui/Card.js +62 -0
  924. package/lib/ui/Card.js.map +1 -0
  925. package/lib/ui/Carousel.js +1416 -0
  926. package/lib/ui/Carousel.js.map +1 -0
  927. package/lib/ui/Checkbox.js +29 -0
  928. package/lib/ui/Checkbox.js.map +1 -0
  929. package/lib/ui/Collapsible.js +8 -0
  930. package/lib/ui/Collapsible.js.map +1 -0
  931. package/lib/ui/Command.js +156 -0
  932. package/lib/ui/Command.js.map +1 -0
  933. package/lib/ui/Dialog.js +101 -0
  934. package/lib/ui/Dialog.js.map +1 -0
  935. package/lib/ui/Drawer.js +17 -0
  936. package/lib/ui/Drawer.js.map +1 -0
  937. package/lib/ui/DropdownMenu.js +145 -0
  938. package/lib/ui/DropdownMenu.js.map +1 -0
  939. package/lib/ui/Form.js +95 -0
  940. package/lib/ui/Form.js.map +1 -0
  941. package/lib/ui/HoverCard.js +24 -0
  942. package/lib/ui/HoverCard.js.map +1 -0
  943. package/lib/ui/Input.js +22 -0
  944. package/lib/ui/Input.js.map +1 -0
  945. package/lib/ui/Label.js +20 -0
  946. package/lib/ui/Label.js.map +1 -0
  947. package/lib/ui/Pagination.js +106 -0
  948. package/lib/ui/Pagination.js.map +1 -0
  949. package/lib/ui/Popover.js +24 -0
  950. package/lib/ui/Popover.js.map +1 -0
  951. package/lib/ui/Progress.js +27 -0
  952. package/lib/ui/Progress.js.map +1 -0
  953. package/lib/ui/RadioGroup.js +32 -0
  954. package/lib/ui/RadioGroup.js.map +1 -0
  955. package/lib/ui/ScrollArea.js +39 -0
  956. package/lib/ui/ScrollArea.js.map +1 -0
  957. package/lib/ui/Select.js +122 -0
  958. package/lib/ui/Select.js.map +1 -0
  959. package/lib/ui/Skeleton.js +18 -0
  960. package/lib/ui/Skeleton.js.map +1 -0
  961. package/lib/ui/Slider.js +24 -0
  962. package/lib/ui/Slider.js.map +1 -0
  963. package/lib/ui/Stepper.js +6 -0
  964. package/lib/ui/Stepper.js.map +1 -0
  965. package/lib/ui/Switch.js +28 -0
  966. package/lib/ui/Switch.js.map +1 -0
  967. package/lib/ui/SyntaxHighlight.js +11 -0
  968. package/lib/ui/SyntaxHighlight.js.map +1 -0
  969. package/lib/ui/Tabs.js +47 -0
  970. package/lib/ui/Tabs.js.map +1 -0
  971. package/lib/ui/Textarea.js +21 -0
  972. package/lib/ui/Textarea.js.map +1 -0
  973. package/lib/ui/Toggle.js +38 -0
  974. package/lib/ui/Toggle.js.map +1 -0
  975. package/lib/ui/ToggleGroup.js +42 -0
  976. package/lib/ui/ToggleGroup.js.map +1 -0
  977. package/lib/ui/Tooltip.js +24 -0
  978. package/lib/ui/Tooltip.js.map +1 -0
  979. package/lib/ui/util.js +6 -0
  980. package/lib/ui/util.js.map +1 -0
  981. package/lib/useExposedProps-DbIZXspi.js +9 -0
  982. package/lib/useExposedProps-DbIZXspi.js.map +1 -0
  983. package/lib/useLatest-hmRS46UF.js +11 -0
  984. package/lib/useLatest-hmRS46UF.js.map +1 -0
  985. package/lib/zudoku.auth-auth0.js +30 -25
  986. package/lib/zudoku.auth-auth0.js.map +1 -1
  987. package/lib/zudoku.auth-clerk.js +101 -55
  988. package/lib/zudoku.auth-clerk.js.map +1 -1
  989. package/lib/zudoku.auth-openid.js +643 -679
  990. package/lib/zudoku.auth-openid.js.map +1 -1
  991. package/lib/zudoku.components.js +33 -3450
  992. package/lib/zudoku.components.js.map +1 -1
  993. package/lib/zudoku.hooks.js +19 -0
  994. package/lib/zudoku.hooks.js.map +1 -0
  995. package/lib/zudoku.icons.js +10 -0
  996. package/lib/zudoku.icons.js.map +1 -1
  997. package/lib/zudoku.plugin-api-catalog.js +117 -0
  998. package/lib/zudoku.plugin-api-catalog.js.map +1 -0
  999. package/lib/zudoku.plugin-api-keys.js +104 -108
  1000. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  1001. package/lib/zudoku.plugin-custom-pages.js +10 -9
  1002. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  1003. package/lib/zudoku.plugin-markdown.js +27 -47
  1004. package/lib/zudoku.plugin-markdown.js.map +1 -1
  1005. package/lib/zudoku.plugin-openapi.js +7 -11
  1006. package/lib/zudoku.plugin-openapi.js.map +1 -1
  1007. package/lib/zudoku.plugin-redirect.js +2 -2
  1008. package/lib/zudoku.plugin-redirect.js.map +1 -1
  1009. package/lib/zudoku.plugin-search-inkeep.js +53 -28
  1010. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  1011. package/lib/zudoku.plugin-search-pagefind.js +233 -0
  1012. package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
  1013. package/lib/zudoku.plugins.js +14 -0
  1014. package/lib/zudoku.plugins.js.map +1 -0
  1015. package/package.json +157 -80
  1016. package/src/app/ZuploBuildConfig.ts +33 -0
  1017. package/src/app/demo-cdn.html +31 -31
  1018. package/src/app/demo.tsx +1 -5
  1019. package/src/app/entry.client.tsx +26 -1
  1020. package/src/app/entry.server.tsx +80 -63
  1021. package/src/app/env.ts +35 -0
  1022. package/src/app/main.css +101 -40
  1023. package/src/app/main.tsx +61 -19
  1024. package/src/app/sentry.ts +24 -0
  1025. package/src/app/standalone.tsx +1 -5
  1026. package/src/app/tailwind.ts +83 -48
  1027. package/src/lib/MissingIcon.tsx +22 -0
  1028. package/src/lib/authentication/AuthenticationPlugin.tsx +4 -1
  1029. package/src/lib/authentication/authentication.ts +5 -3
  1030. package/src/lib/authentication/components/CallbackHandler.tsx +20 -51
  1031. package/src/lib/authentication/components/SignIn.tsx +35 -2
  1032. package/src/lib/authentication/components/SignOut.tsx +3 -2
  1033. package/src/lib/authentication/components/SignUp.tsx +35 -1
  1034. package/src/lib/authentication/hook.ts +13 -4
  1035. package/src/lib/authentication/providers/auth0.tsx +20 -16
  1036. package/src/lib/authentication/providers/clerk.tsx +70 -15
  1037. package/src/lib/authentication/providers/openid.tsx +86 -58
  1038. package/src/lib/authentication/providers/supabase.tsx +157 -0
  1039. package/src/lib/authentication/state.ts +56 -25
  1040. package/{LICENSE.md → src/lib/authentication/use-broadcast/LICENSE.md} +2 -2
  1041. package/src/lib/authentication/use-broadcast/shared.ts +372 -0
  1042. package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
  1043. package/src/lib/components/AnchorLink.tsx +13 -8
  1044. package/src/lib/components/Autocomplete.tsx +113 -0
  1045. package/src/lib/components/Banner.tsx +1 -0
  1046. package/src/lib/components/Bootstrap.tsx +43 -16
  1047. package/src/lib/components/BuildCheck.tsx +75 -0
  1048. package/src/lib/components/ClientOnly.tsx +6 -3
  1049. package/src/lib/components/DeveloperHint.tsx +6 -1
  1050. package/src/lib/components/Footer.tsx +139 -0
  1051. package/src/lib/components/Header.tsx +96 -53
  1052. package/src/lib/components/Heading.tsx +13 -13
  1053. package/src/lib/components/InlineCode.tsx +13 -16
  1054. package/src/lib/components/Layout.tsx +33 -54
  1055. package/src/lib/components/Main.tsx +50 -0
  1056. package/src/lib/components/Markdown.tsx +15 -16
  1057. package/src/lib/components/MobileTopNavigation.tsx +40 -30
  1058. package/src/lib/components/NotFoundPage.tsx +1 -1
  1059. package/src/lib/components/Pagination.tsx +50 -0
  1060. package/src/lib/components/PathRenderer.tsx +61 -0
  1061. package/src/lib/components/ReactMarkdown.license.txt +21 -0
  1062. package/src/lib/components/ReactMarkdown.tsx +264 -0
  1063. package/src/lib/components/Search.tsx +17 -6
  1064. package/src/lib/components/SlotletProvider.tsx +3 -1
  1065. package/src/lib/components/StatusPage.tsx +91 -0
  1066. package/src/lib/components/ThemeSwitch.tsx +46 -0
  1067. package/src/lib/components/TopNavigation.tsx +84 -36
  1068. package/src/lib/components/Zudoku.tsx +119 -0
  1069. package/src/lib/components/cache.ts +23 -0
  1070. package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
  1071. package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
  1072. package/src/lib/components/context/ViewportAnchorContext.tsx +34 -36
  1073. package/src/lib/components/context/ZudokuContext.ts +39 -22
  1074. package/src/lib/components/context/ZudokuProvider.tsx +2 -2
  1075. package/src/lib/components/index.ts +33 -6
  1076. package/src/lib/components/navigation/PoweredByZudoku.tsx +28 -0
  1077. package/src/lib/components/navigation/Sidebar.tsx +38 -29
  1078. package/src/lib/components/navigation/SidebarBadge.tsx +17 -12
  1079. package/src/lib/components/navigation/SidebarCategory.tsx +59 -56
  1080. package/src/lib/components/navigation/SidebarItem.tsx +30 -39
  1081. package/src/lib/components/navigation/SidebarWrapper.tsx +42 -22
  1082. package/src/lib/{plugins/markdown → components/navigation}/Toc.tsx +5 -14
  1083. package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
  1084. package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
  1085. package/src/lib/components/navigation/utils.ts +3 -3
  1086. package/src/lib/core/RouteGuard.tsx +96 -0
  1087. package/src/lib/core/{DevPortalContext.ts → ZudokuContext.ts} +76 -32
  1088. package/src/lib/core/plugins.ts +44 -22
  1089. package/src/lib/errors/ErrorAlert.tsx +36 -15
  1090. package/src/lib/errors/RouterError.tsx +1 -1
  1091. package/src/lib/hooks/index.ts +5 -0
  1092. package/src/lib/hooks/useEvent.test.tsx +149 -0
  1093. package/src/lib/hooks/useEvent.ts +41 -0
  1094. package/src/lib/icons.ts +1 -0
  1095. package/src/lib/oas/graphql/circular.ts +50 -0
  1096. package/src/lib/oas/graphql/index.ts +298 -104
  1097. package/src/lib/oas/parser/dereference/index.ts +10 -4
  1098. package/src/lib/oas/parser/index.ts +9 -30
  1099. package/src/lib/oas/parser/upgrade/index.ts +25 -30
  1100. package/src/lib/plugins/api-catalog/Catalog.tsx +73 -0
  1101. package/src/lib/plugins/api-catalog/index.tsx +115 -0
  1102. package/src/lib/plugins/api-keys/CreateApiKey.tsx +10 -6
  1103. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
  1104. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +1 -1
  1105. package/src/lib/plugins/api-keys/index.tsx +16 -10
  1106. package/src/lib/plugins/custom-pages/CustomPage.tsx +2 -2
  1107. package/src/lib/plugins/custom-pages/index.tsx +3 -3
  1108. package/src/lib/plugins/markdown/MdxPage.tsx +43 -41
  1109. package/src/lib/plugins/markdown/index.tsx +7 -4
  1110. package/src/lib/plugins/markdown/resolver.ts +2 -37
  1111. package/src/lib/plugins/openapi/CollapsibleCode.tsx +83 -0
  1112. package/src/lib/plugins/openapi/ColorizedParam.tsx +49 -23
  1113. package/src/lib/plugins/openapi/Endpoint.tsx +19 -22
  1114. package/src/lib/plugins/openapi/OasProvider.tsx +51 -0
  1115. package/src/lib/plugins/openapi/OperationList.tsx +240 -70
  1116. package/src/lib/plugins/openapi/OperationListItem.tsx +136 -88
  1117. package/src/lib/plugins/openapi/ParamInfos.tsx +88 -0
  1118. package/src/lib/plugins/openapi/ParameterList.tsx +4 -0
  1119. package/src/lib/plugins/openapi/ParameterListItem.tsx +78 -31
  1120. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +21 -2
  1121. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +15 -33
  1122. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +46 -58
  1123. package/src/lib/plugins/openapi/SchemaList.tsx +151 -0
  1124. package/src/lib/plugins/openapi/Sidecar.tsx +147 -113
  1125. package/src/lib/plugins/openapi/SidecarBox.tsx +4 -16
  1126. package/src/lib/plugins/openapi/SidecarExamples.tsx +162 -0
  1127. package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
  1128. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +65 -0
  1129. package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
  1130. package/src/lib/plugins/openapi/client/createServer.ts +8 -2
  1131. package/src/lib/plugins/openapi/client/useCreateQuery.ts +26 -0
  1132. package/src/lib/plugins/openapi/components/ConstValue.tsx +24 -0
  1133. package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
  1134. package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
  1135. package/src/lib/plugins/openapi/context.tsx +2 -2
  1136. package/src/lib/plugins/openapi/graphql/fragment-masking.ts +11 -18
  1137. package/src/lib/plugins/openapi/graphql/gql.ts +38 -30
  1138. package/src/lib/plugins/openapi/graphql/graphql.ts +386 -682
  1139. package/src/lib/plugins/openapi/index.tsx +110 -134
  1140. package/src/lib/plugins/openapi/interfaces.ts +57 -3
  1141. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +52 -0
  1142. package/src/lib/plugins/openapi/playground/Headers.tsx +165 -36
  1143. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +74 -0
  1144. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +54 -0
  1145. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +13 -0
  1146. package/src/lib/plugins/openapi/playground/PathParams.tsx +39 -64
  1147. package/src/lib/plugins/openapi/playground/Playground.tsx +386 -245
  1148. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +7 -4
  1149. package/src/lib/plugins/openapi/playground/QueryParams.tsx +86 -88
  1150. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
  1151. package/src/lib/plugins/openapi/playground/SubmitButton.tsx +75 -0
  1152. package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
  1153. package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +73 -0
  1154. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +230 -0
  1155. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +123 -0
  1156. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.test.ts +64 -0
  1157. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +36 -0
  1158. package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +222 -0
  1159. package/src/lib/plugins/openapi/processors/removeExtensions.ts +29 -0
  1160. package/src/lib/plugins/openapi/processors/removeParameters.test.ts +182 -0
  1161. package/src/lib/plugins/openapi/processors/removeParameters.ts +103 -0
  1162. package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
  1163. package/src/lib/plugins/openapi/processors/removePaths.ts +57 -0
  1164. package/src/lib/plugins/openapi/processors/traverse.ts +1 -0
  1165. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -8
  1166. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
  1167. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +6 -3
  1168. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +36 -0
  1169. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +153 -0
  1170. package/src/lib/plugins/openapi/schema/SchemaView.tsx +87 -135
  1171. package/src/lib/plugins/openapi/schema/utils.ts +16 -1
  1172. package/src/lib/plugins/openapi/state.ts +36 -0
  1173. package/src/lib/plugins/openapi/util/createSidebarCategory.tsx +37 -0
  1174. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +88 -43
  1175. package/src/lib/plugins/openapi/util/getRoutes.tsx +134 -0
  1176. package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
  1177. package/src/lib/plugins/openapi/util/methodToColor.ts +27 -0
  1178. package/src/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.tsx +32 -0
  1179. package/src/lib/plugins/redirect/index.tsx +6 -10
  1180. package/src/lib/plugins/search-inkeep/index.tsx +80 -25
  1181. package/src/lib/plugins/search-inkeep/inkeep.ts +3 -9
  1182. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +164 -0
  1183. package/src/lib/plugins/search-pagefind/ResultList.tsx +105 -0
  1184. package/src/lib/plugins/search-pagefind/get-results.tsx +75 -0
  1185. package/src/lib/plugins/search-pagefind/index.tsx +21 -0
  1186. package/src/lib/plugins/search-pagefind/types.ts +118 -0
  1187. package/src/lib/ui/Accordion.tsx +56 -0
  1188. package/src/lib/ui/ActionButton.tsx +28 -0
  1189. package/src/lib/ui/{Note.tsx → Alert.tsx} +11 -10
  1190. package/src/lib/ui/AlertDialog.tsx +139 -0
  1191. package/src/lib/ui/AspectRatio.tsx +5 -0
  1192. package/src/lib/ui/Badge.tsx +37 -0
  1193. package/src/lib/ui/Breadcrumb.tsx +115 -0
  1194. package/src/lib/ui/Button.tsx +5 -3
  1195. package/src/lib/ui/Callout.tsx +29 -10
  1196. package/src/lib/ui/Card.tsx +1 -1
  1197. package/src/lib/ui/Carousel.tsx +260 -0
  1198. package/src/lib/ui/Checkbox.tsx +29 -0
  1199. package/src/lib/ui/Collapsible.tsx +9 -0
  1200. package/src/lib/ui/Command.tsx +193 -0
  1201. package/src/lib/{components → ui}/Dialog.tsx +4 -3
  1202. package/src/lib/ui/Form.tsx +177 -0
  1203. package/src/lib/ui/HoverCard.tsx +27 -0
  1204. package/src/lib/ui/Input.tsx +1 -2
  1205. package/src/lib/ui/Label.tsx +24 -0
  1206. package/src/lib/ui/Pagination.tsx +117 -0
  1207. package/src/lib/ui/Popover.tsx +29 -0
  1208. package/src/lib/ui/Progress.tsx +26 -0
  1209. package/src/lib/ui/RadioGroup.tsx +42 -0
  1210. package/src/lib/ui/ScrollArea.tsx +46 -0
  1211. package/src/lib/{components → ui}/Select.tsx +2 -2
  1212. package/src/lib/ui/Skeleton.tsx +15 -0
  1213. package/src/lib/ui/Slider.tsx +26 -0
  1214. package/src/lib/ui/Stepper.tsx +8 -0
  1215. package/src/lib/ui/Switch.tsx +27 -0
  1216. package/src/lib/ui/SyntaxHighlight.tsx +186 -0
  1217. package/src/lib/ui/Textarea.tsx +23 -0
  1218. package/src/lib/ui/Toggle.tsx +43 -0
  1219. package/src/lib/ui/ToggleGroup.tsx +59 -0
  1220. package/src/lib/ui/Tooltip.tsx +28 -0
  1221. package/src/lib/ui/util.tsx +3 -0
  1222. package/src/lib/util/MdxComponents.tsx +12 -12
  1223. package/src/lib/util/createVariantComponent.tsx +2 -2
  1224. package/src/lib/util/detectOS.ts +9 -0
  1225. package/src/lib/util/ensureArray.ts +3 -0
  1226. package/src/lib/util/invariant.ts +15 -3
  1227. package/src/lib/util/joinPath.tsx +3 -0
  1228. package/src/lib/util/joinUrl.test.ts +62 -0
  1229. package/src/lib/util/joinUrl.ts +57 -0
  1230. package/src/lib/util/scrollIntoViewIfNeeded.ts +18 -0
  1231. package/src/lib/util/traverse.ts +31 -0
  1232. package/src/lib/util/types.ts +7 -0
  1233. package/src/lib/util/useExposedProps.tsx +8 -2
  1234. package/src/lib/util/useIsomorphicLayoutEffect.ts +5 -0
  1235. package/src/lib/util/useLatest.ts +18 -0
  1236. package/src/lib/util/useOnScreen.ts +34 -0
  1237. package/src/lib/util/useScrollToAnchor.ts +48 -39
  1238. package/src/lib/util/useScrollToTop.ts +9 -4
  1239. package/client.d.ts +0 -1
  1240. package/dist/internal.d.ts +0 -1
  1241. package/dist/internal.js +0 -2
  1242. package/dist/internal.js.map +0 -1
  1243. package/dist/lib/components/DevPortal.js.map +0 -1
  1244. package/dist/lib/components/Dialog.js.map +0 -1
  1245. package/dist/lib/components/Select.js.map +0 -1
  1246. package/dist/lib/components/SyntaxHighlight.d.ts +0 -11
  1247. package/dist/lib/components/SyntaxHighlight.js +0 -50
  1248. package/dist/lib/components/SyntaxHighlight.js.map +0 -1
  1249. package/dist/lib/components/context/PluginSystem.js +0 -2
  1250. package/dist/lib/components/context/PluginSystem.js.map +0 -1
  1251. package/dist/lib/components/context/ThemeContext.d.ts +0 -2
  1252. package/dist/lib/components/context/ThemeContext.js +0 -7
  1253. package/dist/lib/components/context/ThemeContext.js.map +0 -1
  1254. package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
  1255. package/dist/lib/components/context/ThemeProvider.js +0 -23
  1256. package/dist/lib/components/context/ThemeProvider.js.map +0 -1
  1257. package/dist/lib/core/DevPortalContext.js +0 -49
  1258. package/dist/lib/core/DevPortalContext.js.map +0 -1
  1259. package/dist/lib/plugins/markdown/Toc.js.map +0 -1
  1260. package/dist/lib/plugins/openapi/Route.d.ts +0 -6
  1261. package/dist/lib/plugins/openapi/Route.js +0 -8
  1262. package/dist/lib/plugins/openapi/Route.js.map +0 -1
  1263. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -12
  1264. package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -46
  1265. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
  1266. package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
  1267. package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -61
  1268. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
  1269. package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
  1270. package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
  1271. package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
  1272. package/dist/lib/plugins/openapi/client/worker.js +0 -20
  1273. package/dist/lib/plugins/openapi/client/worker.js.map +0 -1
  1274. package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +0 -4
  1275. package/dist/lib/plugins/openapi/playground/ResponseTab.js +0 -42
  1276. package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +0 -1
  1277. package/dist/lib/plugins/openapi/schema/SchemaComponents.js +0 -28
  1278. package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +0 -1
  1279. package/dist/lib/plugins/openapi-worker.d.ts +0 -1
  1280. package/dist/lib/plugins/openapi-worker.js +0 -2
  1281. package/dist/lib/plugins/openapi-worker.js.map +0 -1
  1282. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
  1283. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
  1284. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
  1285. package/dist/lib/themeToggle.d.ts +0 -1
  1286. package/dist/lib/themeToggle.js +0 -7
  1287. package/dist/lib/themeToggle.js.map +0 -1
  1288. package/dist/lib/ui/Note.d.ts +0 -8
  1289. package/dist/lib/ui/Note.js +0 -23
  1290. package/dist/lib/ui/Note.js.map +0 -1
  1291. package/dist/lib/util/createWaitForNotify.d.ts +0 -1
  1292. package/dist/lib/util/createWaitForNotify.js +0 -15
  1293. package/dist/lib/util/createWaitForNotify.js.map +0 -1
  1294. package/dist/vite/plugin-custom-css.js +0 -55
  1295. package/dist/vite/plugin-custom-css.js.map +0 -1
  1296. package/dist/vite/plugin-html-transform.d.ts +0 -2
  1297. package/dist/vite/plugin-html-transform.js +0 -15
  1298. package/dist/vite/plugin-html-transform.js.map +0 -1
  1299. package/dist/vite/prerender.d.ts +0 -21
  1300. package/dist/vite/prerender.js +0 -88
  1301. package/dist/vite/prerender.js.map +0 -1
  1302. package/lib/AnchorLink-DNsmBTRp.js +0 -705
  1303. package/lib/AnchorLink-DNsmBTRp.js.map +0 -1
  1304. package/lib/AuthenticationPlugin-CKyNe953.js +0 -55
  1305. package/lib/AuthenticationPlugin-CKyNe953.js.map +0 -1
  1306. package/lib/CategoryHeading-B7TlPvuN.js +0 -10
  1307. package/lib/DeveloperHint-B_QCCafl.js +0 -16
  1308. package/lib/DeveloperHint-B_QCCafl.js.map +0 -1
  1309. package/lib/ErrorPage-DqqAV1dr.js +0 -16
  1310. package/lib/ErrorPage-DqqAV1dr.js.map +0 -1
  1311. package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
  1312. package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
  1313. package/lib/Input-RKErK8rC.js +0 -2229
  1314. package/lib/Input-RKErK8rC.js.map +0 -1
  1315. package/lib/Markdown-Y__eLG0x.js +0 -20441
  1316. package/lib/Markdown-Y__eLG0x.js.map +0 -1
  1317. package/lib/MdxPage-Df0B_t9t.js +0 -173
  1318. package/lib/MdxPage-Df0B_t9t.js.map +0 -1
  1319. package/lib/OperationList-yuVHI6ul.js +0 -601
  1320. package/lib/OperationList-yuVHI6ul.js.map +0 -1
  1321. package/lib/Route-BaAjY0N-.js +0 -13
  1322. package/lib/Route-BaAjY0N-.js.map +0 -1
  1323. package/lib/SidebarBadge-DGTOim55.js +0 -503
  1324. package/lib/SidebarBadge-DGTOim55.js.map +0 -1
  1325. package/lib/SlotletProvider-DmqWiVFt.js +0 -239
  1326. package/lib/SlotletProvider-DmqWiVFt.js.map +0 -1
  1327. package/lib/ZudokuContext-D-TANjzJ.js +0 -1222
  1328. package/lib/ZudokuContext-D-TANjzJ.js.map +0 -1
  1329. package/lib/__vite-browser-external-BYRIRx8p.js +0 -9
  1330. package/lib/__vite-browser-external-BYRIRx8p.js.map +0 -1
  1331. package/lib/assets/index-B_Jk_Yzp.js +0 -4820
  1332. package/lib/assets/index-B_Jk_Yzp.js.map +0 -1
  1333. package/lib/assets/worker-DaFlmuyf.js +0 -18111
  1334. package/lib/assets/worker-DaFlmuyf.js.map +0 -1
  1335. package/lib/index-CkwDvuPt.js.map +0 -1
  1336. package/lib/index-D7tBXCIO.js +0 -124
  1337. package/lib/index-D7tBXCIO.js.map +0 -1
  1338. package/lib/index-DFN92YJN.js +0 -1782
  1339. package/lib/index-DFN92YJN.js.map +0 -1
  1340. package/lib/index-DG-VRw9t.js +0 -2867
  1341. package/lib/index-DG-VRw9t.js.map +0 -1
  1342. package/lib/index-DJqnphbT.js +0 -35
  1343. package/lib/index-vPSN3k3e.js +0 -5952
  1344. package/lib/index-vPSN3k3e.js.map +0 -1
  1345. package/lib/jsx-runtime-B6kdoens.js +0 -635
  1346. package/lib/jsx-runtime-B6kdoens.js.map +0 -1
  1347. package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
  1348. package/lib/prism-java.min-d5iT_mOd.js +0 -7
  1349. package/lib/prism-markup-templating-DZrrEs0A.js +0 -62
  1350. package/lib/prism-markup-templating-DZrrEs0A.js.map +0 -1
  1351. package/lib/prism-php.min-o7FpoMP_.js +0 -11
  1352. package/lib/prism-php.min-o7FpoMP_.js.map +0 -1
  1353. package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
  1354. package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
  1355. package/lib/router-BsfSoK2j.js +0 -3024
  1356. package/lib/router-BsfSoK2j.js.map +0 -1
  1357. package/lib/state-CsuHT8ZO.js +0 -183
  1358. package/lib/state-CsuHT8ZO.js.map +0 -1
  1359. package/lib/urql-core-KJnLL26g.js +0 -1455
  1360. package/lib/urql-core-KJnLL26g.js.map +0 -1
  1361. package/lib/useExposedProps-BWwxa-Hg.js +0 -9
  1362. package/lib/useExposedProps-BWwxa-Hg.js.map +0 -1
  1363. package/lib/zudoku.openapi-worker.js +0 -16255
  1364. package/lib/zudoku.openapi-worker.js.map +0 -1
  1365. package/src/lib/components/DevPortal.tsx +0 -111
  1366. package/src/lib/components/SyntaxHighlight.tsx +0 -122
  1367. package/src/lib/components/context/PluginSystem.ts +0 -0
  1368. package/src/lib/components/context/ThemeContext.tsx +0 -8
  1369. package/src/lib/components/context/ThemeProvider.tsx +0 -27
  1370. package/src/lib/plugins/openapi/Route.tsx +0 -20
  1371. package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -51
  1372. package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -75
  1373. package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
  1374. package/src/lib/plugins/openapi/client/worker.ts +0 -30
  1375. package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -76
  1376. package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +0 -126
  1377. package/src/lib/plugins/openapi-worker.ts +0 -1
  1378. package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
  1379. package/src/lib/themeToggle.ts +0 -7
  1380. package/src/lib/util/createWaitForNotify.ts +0 -18
  1381. /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
  1382. /package/dist/lib/{components/context/PluginSystem.d.ts → hooks/useEvent.test.d.ts} +0 -0
  1383. /package/dist/lib/plugins/openapi/{client/worker.d.ts → playground/result-panel/convertToTypes.test.d.ts} +0 -0
  1384. /package/dist/lib/{components → ui}/Dialog.d.ts +0 -0
  1385. /package/dist/lib/{components → ui}/Select.d.ts +0 -0
@@ -0,0 +1,1826 @@
1
+ import * as o from "react";
2
+ var F = {}, ue;
3
+ function Me() {
4
+ if (ue) return F;
5
+ ue = 1, Object.defineProperty(F, "__esModule", { value: !0 }), F.parse = c, F.serialize = s;
6
+ const e = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/, t = /^[\u0021-\u003A\u003C-\u007E]*$/, n = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i, a = /^[\u0020-\u003A\u003D-\u007E]*$/, r = Object.prototype.toString, i = /* @__PURE__ */ (() => {
7
+ const d = function() {
8
+ };
9
+ return d.prototype = /* @__PURE__ */ Object.create(null), d;
10
+ })();
11
+ function c(d, v) {
12
+ const f = new i(), w = d.length;
13
+ if (w < 2)
14
+ return f;
15
+ const E = (v == null ? void 0 : v.decode) || h;
16
+ let m = 0;
17
+ do {
18
+ const g = d.indexOf("=", m);
19
+ if (g === -1)
20
+ break;
21
+ const y = d.indexOf(";", m), R = y === -1 ? w : y;
22
+ if (g > R) {
23
+ m = d.lastIndexOf(";", g - 1) + 1;
24
+ continue;
25
+ }
26
+ const x = u(d, m, g), C = l(d, g, x), $ = d.slice(x, C);
27
+ if (f[$] === void 0) {
28
+ let S = u(d, g + 1, R), P = l(d, R, S);
29
+ const D = E(d.slice(S, P));
30
+ f[$] = D;
31
+ }
32
+ m = R + 1;
33
+ } while (m < w);
34
+ return f;
35
+ }
36
+ function u(d, v, f) {
37
+ do {
38
+ const w = d.charCodeAt(v);
39
+ if (w !== 32 && w !== 9)
40
+ return v;
41
+ } while (++v < f);
42
+ return f;
43
+ }
44
+ function l(d, v, f) {
45
+ for (; v > f; ) {
46
+ const w = d.charCodeAt(--v);
47
+ if (w !== 32 && w !== 9)
48
+ return v + 1;
49
+ }
50
+ return f;
51
+ }
52
+ function s(d, v, f) {
53
+ const w = (f == null ? void 0 : f.encode) || encodeURIComponent;
54
+ if (!e.test(d))
55
+ throw new TypeError(`argument name is invalid: ${d}`);
56
+ const E = w(v);
57
+ if (!t.test(E))
58
+ throw new TypeError(`argument val is invalid: ${v}`);
59
+ let m = d + "=" + E;
60
+ if (!f)
61
+ return m;
62
+ if (f.maxAge !== void 0) {
63
+ if (!Number.isInteger(f.maxAge))
64
+ throw new TypeError(`option maxAge is invalid: ${f.maxAge}`);
65
+ m += "; Max-Age=" + f.maxAge;
66
+ }
67
+ if (f.domain) {
68
+ if (!n.test(f.domain))
69
+ throw new TypeError(`option domain is invalid: ${f.domain}`);
70
+ m += "; Domain=" + f.domain;
71
+ }
72
+ if (f.path) {
73
+ if (!a.test(f.path))
74
+ throw new TypeError(`option path is invalid: ${f.path}`);
75
+ m += "; Path=" + f.path;
76
+ }
77
+ if (f.expires) {
78
+ if (!p(f.expires) || !Number.isFinite(f.expires.valueOf()))
79
+ throw new TypeError(`option expires is invalid: ${f.expires}`);
80
+ m += "; Expires=" + f.expires.toUTCString();
81
+ }
82
+ if (f.httpOnly && (m += "; HttpOnly"), f.secure && (m += "; Secure"), f.partitioned && (m += "; Partitioned"), f.priority)
83
+ switch (typeof f.priority == "string" ? f.priority.toLowerCase() : void 0) {
84
+ case "low":
85
+ m += "; Priority=Low";
86
+ break;
87
+ case "medium":
88
+ m += "; Priority=Medium";
89
+ break;
90
+ case "high":
91
+ m += "; Priority=High";
92
+ break;
93
+ default:
94
+ throw new TypeError(`option priority is invalid: ${f.priority}`);
95
+ }
96
+ if (f.sameSite)
97
+ switch (typeof f.sameSite == "string" ? f.sameSite.toLowerCase() : f.sameSite) {
98
+ case !0:
99
+ case "strict":
100
+ m += "; SameSite=Strict";
101
+ break;
102
+ case "lax":
103
+ m += "; SameSite=Lax";
104
+ break;
105
+ case "none":
106
+ m += "; SameSite=None";
107
+ break;
108
+ default:
109
+ throw new TypeError(`option sameSite is invalid: ${f.sameSite}`);
110
+ }
111
+ return m;
112
+ }
113
+ function h(d) {
114
+ if (d.indexOf("%") === -1)
115
+ return d;
116
+ try {
117
+ return decodeURIComponent(d);
118
+ } catch {
119
+ return d;
120
+ }
121
+ }
122
+ function p(d) {
123
+ return r.call(d) === "[object Date]";
124
+ }
125
+ return F;
126
+ }
127
+ Me();
128
+ /**
129
+ * react-router v7.5.2
130
+ *
131
+ * Copyright (c) Remix Software Inc.
132
+ *
133
+ * This source code is licensed under the MIT license found in the
134
+ * LICENSE.md file in the root directory of this source tree.
135
+ *
136
+ * @license MIT
137
+ */
138
+ function b(e, t) {
139
+ if (e === !1 || e === null || typeof e > "u")
140
+ throw new Error(t);
141
+ }
142
+ function L(e, t) {
143
+ if (!e) {
144
+ typeof console < "u" && console.warn(t);
145
+ try {
146
+ throw new Error(t);
147
+ } catch {
148
+ }
149
+ }
150
+ }
151
+ function B({
152
+ pathname: e = "/",
153
+ search: t = "",
154
+ hash: n = ""
155
+ }) {
156
+ return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), n && n !== "#" && (e += n.charAt(0) === "#" ? n : "#" + n), e;
157
+ }
158
+ function Y(e) {
159
+ let t = {};
160
+ if (e) {
161
+ let n = e.indexOf("#");
162
+ n >= 0 && (t.hash = e.substring(n), e = e.substring(0, n));
163
+ let a = e.indexOf("?");
164
+ a >= 0 && (t.search = e.substring(a), e = e.substring(0, a)), e && (t.pathname = e);
165
+ }
166
+ return t;
167
+ }
168
+ function pe(e, t, n = "/") {
169
+ return De(e, t, n, !1);
170
+ }
171
+ function De(e, t, n, a) {
172
+ let r = typeof t == "string" ? Y(t) : t, i = M(r.pathname || "/", n);
173
+ if (i == null)
174
+ return null;
175
+ let c = ve(e);
176
+ Oe(c);
177
+ let u = null;
178
+ for (let l = 0; u == null && l < c.length; ++l) {
179
+ let s = ye(i);
180
+ u = Ve(
181
+ c[l],
182
+ s,
183
+ a
184
+ );
185
+ }
186
+ return u;
187
+ }
188
+ function ve(e, t = [], n = [], a = "") {
189
+ let r = (i, c, u) => {
190
+ let l = {
191
+ relativePath: u === void 0 ? i.path || "" : u,
192
+ caseSensitive: i.caseSensitive === !0,
193
+ childrenIndex: c,
194
+ route: i
195
+ };
196
+ l.relativePath.startsWith("/") && (b(
197
+ l.relativePath.startsWith(a),
198
+ `Absolute route path "${l.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`
199
+ ), l.relativePath = l.relativePath.slice(a.length));
200
+ let s = A([a, l.relativePath]), h = n.concat(l);
201
+ i.children && i.children.length > 0 && (b(
202
+ // Our types know better, but runtime JS may not!
203
+ // @ts-expect-error
204
+ i.index !== !0,
205
+ `Index routes must not have child routes. Please remove all child routes from route path "${s}".`
206
+ ), ve(i.children, t, h, s)), !(i.path == null && !i.index) && t.push({
207
+ path: s,
208
+ score: We(s, i.index),
209
+ routesMeta: h
210
+ });
211
+ };
212
+ return e.forEach((i, c) => {
213
+ var u;
214
+ if (i.path === "" || !((u = i.path) != null && u.includes("?")))
215
+ r(i, c);
216
+ else
217
+ for (let l of ge(i.path))
218
+ r(i, c, l);
219
+ }), t;
220
+ }
221
+ function ge(e) {
222
+ let t = e.split("/");
223
+ if (t.length === 0) return [];
224
+ let [n, ...a] = t, r = n.endsWith("?"), i = n.replace(/\?$/, "");
225
+ if (a.length === 0)
226
+ return r ? [i, ""] : [i];
227
+ let c = ge(a.join("/")), u = [];
228
+ return u.push(
229
+ ...c.map(
230
+ (l) => l === "" ? i : [i, l].join("/")
231
+ )
232
+ ), r && u.push(...c), u.map(
233
+ (l) => e.startsWith("/") && l === "" ? "/" : l
234
+ );
235
+ }
236
+ function Oe(e) {
237
+ e.sort(
238
+ (t, n) => t.score !== n.score ? n.score - t.score : ze(
239
+ t.routesMeta.map((a) => a.childrenIndex),
240
+ n.routesMeta.map((a) => a.childrenIndex)
241
+ )
242
+ );
243
+ }
244
+ var Ie = /^:[\w-]+$/, _e = 3, Fe = 2, Ue = 1, Be = 10, He = -2, ce = (e) => e === "*";
245
+ function We(e, t) {
246
+ let n = e.split("/"), a = n.length;
247
+ return n.some(ce) && (a += He), t && (a += Fe), n.filter((r) => !ce(r)).reduce(
248
+ (r, i) => r + (Ie.test(i) ? _e : i === "" ? Ue : Be),
249
+ a
250
+ );
251
+ }
252
+ function ze(e, t) {
253
+ return e.length === t.length && e.slice(0, -1).every((a, r) => a === t[r]) ? (
254
+ // If two routes are siblings, we should try to match the earlier sibling
255
+ // first. This allows people to have fine-grained control over the matching
256
+ // behavior by simply putting routes with identical paths in the order they
257
+ // want them tried.
258
+ e[e.length - 1] - t[t.length - 1]
259
+ ) : (
260
+ // Otherwise, it doesn't really make sense to rank non-siblings by index,
261
+ // so they sort equally.
262
+ 0
263
+ );
264
+ }
265
+ function Ve(e, t, n = !1) {
266
+ let { routesMeta: a } = e, r = {}, i = "/", c = [];
267
+ for (let u = 0; u < a.length; ++u) {
268
+ let l = a[u], s = u === a.length - 1, h = i === "/" ? t : t.slice(i.length) || "/", p = H(
269
+ { path: l.relativePath, caseSensitive: l.caseSensitive, end: s },
270
+ h
271
+ ), d = l.route;
272
+ if (!p && s && n && !a[a.length - 1].route.index && (p = H(
273
+ {
274
+ path: l.relativePath,
275
+ caseSensitive: l.caseSensitive,
276
+ end: !1
277
+ },
278
+ h
279
+ )), !p)
280
+ return null;
281
+ Object.assign(r, p.params), c.push({
282
+ // TODO: Can this as be avoided?
283
+ params: r,
284
+ pathname: A([i, p.pathname]),
285
+ pathnameBase: qe(
286
+ A([i, p.pathnameBase])
287
+ ),
288
+ route: d
289
+ }), p.pathnameBase !== "/" && (i = A([i, p.pathnameBase]));
290
+ }
291
+ return c;
292
+ }
293
+ function H(e, t) {
294
+ typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
295
+ let [n, a] = je(
296
+ e.path,
297
+ e.caseSensitive,
298
+ e.end
299
+ ), r = t.match(n);
300
+ if (!r) return null;
301
+ let i = r[0], c = i.replace(/(.)\/+$/, "$1"), u = r.slice(1);
302
+ return {
303
+ params: a.reduce(
304
+ (s, { paramName: h, isOptional: p }, d) => {
305
+ if (h === "*") {
306
+ let f = u[d] || "";
307
+ c = i.slice(0, i.length - f.length).replace(/(.)\/+$/, "$1");
308
+ }
309
+ const v = u[d];
310
+ return p && !v ? s[h] = void 0 : s[h] = (v || "").replace(/%2F/g, "/"), s;
311
+ },
312
+ {}
313
+ ),
314
+ pathname: i,
315
+ pathnameBase: c,
316
+ pattern: e
317
+ };
318
+ }
319
+ function je(e, t = !1, n = !0) {
320
+ L(
321
+ e === "*" || !e.endsWith("*") || e.endsWith("/*"),
322
+ `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`
323
+ );
324
+ let a = [], r = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(
325
+ /\/:([\w-]+)(\?)?/g,
326
+ (c, u, l) => (a.push({ paramName: u, isOptional: l != null }), l ? "/?([^\\/]+)?" : "/([^\\/]+)")
327
+ );
328
+ return e.endsWith("*") ? (a.push({ paramName: "*" }), r += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? r += "\\/*$" : e !== "" && e !== "/" && (r += "(?:(?=\\/|$))"), [new RegExp(r, t ? void 0 : "i"), a];
329
+ }
330
+ function ye(e) {
331
+ try {
332
+ return e.split("/").map((t) => decodeURIComponent(t).replace(/\//g, "%2F")).join("/");
333
+ } catch (t) {
334
+ return L(
335
+ !1,
336
+ `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`
337
+ ), e;
338
+ }
339
+ }
340
+ function M(e, t) {
341
+ if (t === "/") return e;
342
+ if (!e.toLowerCase().startsWith(t.toLowerCase()))
343
+ return null;
344
+ let n = t.endsWith("/") ? t.length - 1 : t.length, a = e.charAt(n);
345
+ return a && a !== "/" ? null : e.slice(n) || "/";
346
+ }
347
+ function Ye(e, t = "/") {
348
+ let {
349
+ pathname: n,
350
+ search: a = "",
351
+ hash: r = ""
352
+ } = typeof e == "string" ? Y(e) : e;
353
+ return {
354
+ pathname: n ? n.startsWith("/") ? n : Je(n, t) : t,
355
+ search: Ge(a),
356
+ hash: Xe(r)
357
+ };
358
+ }
359
+ function Je(e, t) {
360
+ let n = t.replace(/\/+$/, "").split("/");
361
+ return e.split("/").forEach((r) => {
362
+ r === ".." ? n.length > 1 && n.pop() : r !== "." && n.push(r);
363
+ }), n.length > 1 ? n.join("/") : "/";
364
+ }
365
+ function G(e, t, n, a) {
366
+ return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(
367
+ a
368
+ )}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
369
+ }
370
+ function Ke(e) {
371
+ return e.filter(
372
+ (t, n) => n === 0 || t.route.path && t.route.path.length > 0
373
+ );
374
+ }
375
+ function Z(e) {
376
+ let t = Ke(e);
377
+ return t.map(
378
+ (n, a) => a === t.length - 1 ? n.pathname : n.pathnameBase
379
+ );
380
+ }
381
+ function ee(e, t, n, a = !1) {
382
+ let r;
383
+ typeof e == "string" ? r = Y(e) : (r = { ...e }, b(
384
+ !r.pathname || !r.pathname.includes("?"),
385
+ G("?", "pathname", "search", r)
386
+ ), b(
387
+ !r.pathname || !r.pathname.includes("#"),
388
+ G("#", "pathname", "hash", r)
389
+ ), b(
390
+ !r.search || !r.search.includes("#"),
391
+ G("#", "search", "hash", r)
392
+ ));
393
+ let i = e === "" || r.pathname === "", c = i ? "/" : r.pathname, u;
394
+ if (c == null)
395
+ u = n;
396
+ else {
397
+ let p = t.length - 1;
398
+ if (!a && c.startsWith("..")) {
399
+ let d = c.split("/");
400
+ for (; d[0] === ".."; )
401
+ d.shift(), p -= 1;
402
+ r.pathname = d.join("/");
403
+ }
404
+ u = p >= 0 ? t[p] : "/";
405
+ }
406
+ let l = Ye(r, u), s = c && c !== "/" && c.endsWith("/"), h = (i || c === ".") && n.endsWith("/");
407
+ return !l.pathname.endsWith("/") && (s || h) && (l.pathname += "/"), l;
408
+ }
409
+ var A = (e) => e.join("/").replace(/\/\/+/g, "/"), qe = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), Ge = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Xe = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, on = (e, t = 302) => {
410
+ let n = t;
411
+ typeof n == "number" ? n = { status: n } : typeof n.status > "u" && (n.status = 302);
412
+ let a = new Headers(n.headers);
413
+ return a.set("Location", e), new Response(null, { ...n, headers: a });
414
+ };
415
+ function we(e) {
416
+ return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
417
+ }
418
+ var Ee = [
419
+ "POST",
420
+ "PUT",
421
+ "PATCH",
422
+ "DELETE"
423
+ ];
424
+ new Set(
425
+ Ee
426
+ );
427
+ var Qe = [
428
+ "GET",
429
+ ...Ee
430
+ ];
431
+ new Set(Qe);
432
+ var O = o.createContext(null);
433
+ O.displayName = "DataRouter";
434
+ var _ = o.createContext(null);
435
+ _.displayName = "DataRouterState";
436
+ var J = o.createContext({
437
+ isTransitioning: !1
438
+ });
439
+ J.displayName = "ViewTransition";
440
+ var te = o.createContext(
441
+ /* @__PURE__ */ new Map()
442
+ );
443
+ te.displayName = "Fetchers";
444
+ var Ze = o.createContext(null);
445
+ Ze.displayName = "Await";
446
+ var T = o.createContext(
447
+ null
448
+ );
449
+ T.displayName = "Navigation";
450
+ var K = o.createContext(
451
+ null
452
+ );
453
+ K.displayName = "Location";
454
+ var k = o.createContext({
455
+ outlet: null,
456
+ matches: [],
457
+ isDataRoute: !1
458
+ });
459
+ k.displayName = "Route";
460
+ var ne = o.createContext(null);
461
+ ne.displayName = "RouteError";
462
+ function et(e, { relative: t } = {}) {
463
+ b(
464
+ I(),
465
+ // TODO: This error is probably because they somehow have 2 versions of the
466
+ // router loaded. We can help them understand how to avoid that.
467
+ "useHref() may be used only in the context of a <Router> component."
468
+ );
469
+ let { basename: n, navigator: a } = o.useContext(T), { hash: r, pathname: i, search: c } = W(e, { relative: t }), u = i;
470
+ return n !== "/" && (u = i === "/" ? n : A([n, i])), a.createHref({ pathname: u, search: c, hash: r });
471
+ }
472
+ function I() {
473
+ return o.useContext(K) != null;
474
+ }
475
+ function N() {
476
+ return b(
477
+ I(),
478
+ // TODO: This error is probably because they somehow have 2 versions of the
479
+ // router loaded. We can help them understand how to avoid that.
480
+ "useLocation() may be used only in the context of a <Router> component."
481
+ ), o.useContext(K).location;
482
+ }
483
+ function ln(e) {
484
+ b(
485
+ I(),
486
+ // TODO: This error is probably because they somehow have 2 versions of the
487
+ // router loaded. We can help them understand how to avoid that.
488
+ "useMatch() may be used only in the context of a <Router> component."
489
+ );
490
+ let { pathname: t } = N();
491
+ return o.useMemo(
492
+ () => H(e, ye(t)),
493
+ [t, e]
494
+ );
495
+ }
496
+ var xe = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
497
+ function Re(e) {
498
+ o.useContext(T).static || o.useLayoutEffect(e);
499
+ }
500
+ function re() {
501
+ let { isDataRoute: e } = o.useContext(k);
502
+ return e ? ht() : tt();
503
+ }
504
+ function tt() {
505
+ b(
506
+ I(),
507
+ // TODO: This error is probably because they somehow have 2 versions of the
508
+ // router loaded. We can help them understand how to avoid that.
509
+ "useNavigate() may be used only in the context of a <Router> component."
510
+ );
511
+ let e = o.useContext(O), { basename: t, navigator: n } = o.useContext(T), { matches: a } = o.useContext(k), { pathname: r } = N(), i = JSON.stringify(Z(a)), c = o.useRef(!1);
512
+ return Re(() => {
513
+ c.current = !0;
514
+ }), o.useCallback(
515
+ (l, s = {}) => {
516
+ if (L(c.current, xe), !c.current) return;
517
+ if (typeof l == "number") {
518
+ n.go(l);
519
+ return;
520
+ }
521
+ let h = ee(
522
+ l,
523
+ JSON.parse(i),
524
+ r,
525
+ s.relative === "path"
526
+ );
527
+ e == null && t !== "/" && (h.pathname = h.pathname === "/" ? t : A([t, h.pathname])), (s.replace ? n.replace : n.push)(
528
+ h,
529
+ s.state,
530
+ s
531
+ );
532
+ },
533
+ [
534
+ t,
535
+ n,
536
+ i,
537
+ r,
538
+ e
539
+ ]
540
+ );
541
+ }
542
+ var nt = o.createContext(null);
543
+ function rt(e) {
544
+ let t = o.useContext(k).outlet;
545
+ return t && /* @__PURE__ */ o.createElement(nt.Provider, { value: e }, t);
546
+ }
547
+ function sn() {
548
+ let { matches: e } = o.useContext(k), t = e[e.length - 1];
549
+ return t ? t.params : {};
550
+ }
551
+ function W(e, { relative: t } = {}) {
552
+ let { matches: n } = o.useContext(k), { pathname: a } = N(), r = JSON.stringify(Z(n));
553
+ return o.useMemo(
554
+ () => ee(
555
+ e,
556
+ JSON.parse(r),
557
+ a,
558
+ t === "path"
559
+ ),
560
+ [e, r, a, t]
561
+ );
562
+ }
563
+ function be(e, t, n, a) {
564
+ b(
565
+ I(),
566
+ // TODO: This error is probably because they somehow have 2 versions of the
567
+ // router loaded. We can help them understand how to avoid that.
568
+ "useRoutes() may be used only in the context of a <Router> component."
569
+ );
570
+ let { navigator: r, static: i } = o.useContext(T), { matches: c } = o.useContext(k), u = c[c.length - 1], l = u ? u.params : {}, s = u ? u.pathname : "/", h = u ? u.pathnameBase : "/", p = u && u.route;
571
+ {
572
+ let g = p && p.path || "";
573
+ Se(
574
+ s,
575
+ !p || g.endsWith("*") || g.endsWith("*?"),
576
+ `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${g}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
577
+
578
+ Please change the parent <Route path="${g}"> to <Route path="${g === "/" ? "*" : `${g}/*`}">.`
579
+ );
580
+ }
581
+ let d = N(), v;
582
+ v = d;
583
+ let f = v.pathname || "/", w = f;
584
+ if (h !== "/") {
585
+ let g = h.replace(/^\//, "").split("/");
586
+ w = "/" + f.replace(/^\//, "").split("/").slice(g.length).join("/");
587
+ }
588
+ let E = !i && n && n.matches && n.matches.length > 0 ? n.matches : pe(e, { pathname: w });
589
+ return L(
590
+ p || E != null,
591
+ `No routes matched location "${v.pathname}${v.search}${v.hash}" `
592
+ ), L(
593
+ E == null || E[E.length - 1].route.element !== void 0 || E[E.length - 1].route.Component !== void 0 || E[E.length - 1].route.lazy !== void 0,
594
+ `Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`
595
+ ), st(
596
+ E && E.map(
597
+ (g) => Object.assign({}, g, {
598
+ params: Object.assign({}, l, g.params),
599
+ pathname: A([
600
+ h,
601
+ // Re-encode pathnames that were decoded inside matchRoutes
602
+ r.encodeLocation ? r.encodeLocation(g.pathname).pathname : g.pathname
603
+ ]),
604
+ pathnameBase: g.pathnameBase === "/" ? h : A([
605
+ h,
606
+ // Re-encode pathnames that were decoded inside matchRoutes
607
+ r.encodeLocation ? r.encodeLocation(g.pathnameBase).pathname : g.pathnameBase
608
+ ])
609
+ })
610
+ ),
611
+ c,
612
+ n,
613
+ a
614
+ );
615
+ }
616
+ function at() {
617
+ let e = dt(), t = we(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null, a = "rgba(200,200,200, 0.5)", r = { padding: "0.5rem", backgroundColor: a }, i = { padding: "2px 4px", backgroundColor: a }, c = null;
618
+ return console.error(
619
+ "Error handled by React Router default ErrorBoundary:",
620
+ e
621
+ ), c = /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ o.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ o.createElement("code", { style: i }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ o.createElement("code", { style: i }, "errorElement"), " prop on your route.")), /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ o.createElement("h3", { style: { fontStyle: "italic" } }, t), n ? /* @__PURE__ */ o.createElement("pre", { style: r }, n) : null, c);
622
+ }
623
+ var it = /* @__PURE__ */ o.createElement(at, null), ot = class extends o.Component {
624
+ constructor(e) {
625
+ super(e), this.state = {
626
+ location: e.location,
627
+ revalidation: e.revalidation,
628
+ error: e.error
629
+ };
630
+ }
631
+ static getDerivedStateFromError(e) {
632
+ return { error: e };
633
+ }
634
+ static getDerivedStateFromProps(e, t) {
635
+ return t.location !== e.location || t.revalidation !== "idle" && e.revalidation === "idle" ? {
636
+ error: e.error,
637
+ location: e.location,
638
+ revalidation: e.revalidation
639
+ } : {
640
+ error: e.error !== void 0 ? e.error : t.error,
641
+ location: t.location,
642
+ revalidation: e.revalidation || t.revalidation
643
+ };
644
+ }
645
+ componentDidCatch(e, t) {
646
+ console.error(
647
+ "React Router caught the following error during render",
648
+ e,
649
+ t
650
+ );
651
+ }
652
+ render() {
653
+ return this.state.error !== void 0 ? /* @__PURE__ */ o.createElement(k.Provider, { value: this.props.routeContext }, /* @__PURE__ */ o.createElement(
654
+ ne.Provider,
655
+ {
656
+ value: this.state.error,
657
+ children: this.props.component
658
+ }
659
+ )) : this.props.children;
660
+ }
661
+ };
662
+ function lt({ routeContext: e, match: t, children: n }) {
663
+ let a = o.useContext(O);
664
+ return a && a.static && a.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (a.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ o.createElement(k.Provider, { value: e }, n);
665
+ }
666
+ function st(e, t = [], n = null, a = null) {
667
+ if (e == null) {
668
+ if (!n)
669
+ return null;
670
+ if (n.errors)
671
+ e = n.matches;
672
+ else if (t.length === 0 && !n.initialized && n.matches.length > 0)
673
+ e = n.matches;
674
+ else
675
+ return null;
676
+ }
677
+ let r = e, i = n == null ? void 0 : n.errors;
678
+ if (i != null) {
679
+ let l = r.findIndex(
680
+ (s) => s.route.id && (i == null ? void 0 : i[s.route.id]) !== void 0
681
+ );
682
+ b(
683
+ l >= 0,
684
+ `Could not find a matching route for errors on route IDs: ${Object.keys(
685
+ i
686
+ ).join(",")}`
687
+ ), r = r.slice(
688
+ 0,
689
+ Math.min(r.length, l + 1)
690
+ );
691
+ }
692
+ let c = !1, u = -1;
693
+ if (n)
694
+ for (let l = 0; l < r.length; l++) {
695
+ let s = r[l];
696
+ if ((s.route.HydrateFallback || s.route.hydrateFallbackElement) && (u = l), s.route.id) {
697
+ let { loaderData: h, errors: p } = n, d = s.route.loader && !h.hasOwnProperty(s.route.id) && (!p || p[s.route.id] === void 0);
698
+ if (s.route.lazy || d) {
699
+ c = !0, u >= 0 ? r = r.slice(0, u + 1) : r = [r[0]];
700
+ break;
701
+ }
702
+ }
703
+ }
704
+ return r.reduceRight((l, s, h) => {
705
+ let p, d = !1, v = null, f = null;
706
+ n && (p = i && s.route.id ? i[s.route.id] : void 0, v = s.route.errorElement || it, c && (u < 0 && h === 0 ? (Se(
707
+ "route-fallback",
708
+ !1,
709
+ "No `HydrateFallback` element provided to render during initial hydration"
710
+ ), d = !0, f = null) : u === h && (d = !0, f = s.route.hydrateFallbackElement || null)));
711
+ let w = t.concat(r.slice(0, h + 1)), E = () => {
712
+ let m;
713
+ return p ? m = v : d ? m = f : s.route.Component ? m = /* @__PURE__ */ o.createElement(s.route.Component, null) : s.route.element ? m = s.route.element : m = l, /* @__PURE__ */ o.createElement(
714
+ lt,
715
+ {
716
+ match: s,
717
+ routeContext: {
718
+ outlet: l,
719
+ matches: w,
720
+ isDataRoute: n != null
721
+ },
722
+ children: m
723
+ }
724
+ );
725
+ };
726
+ return n && (s.route.ErrorBoundary || s.route.errorElement || h === 0) ? /* @__PURE__ */ o.createElement(
727
+ ot,
728
+ {
729
+ location: n.location,
730
+ revalidation: n.revalidation,
731
+ component: v,
732
+ error: p,
733
+ children: E(),
734
+ routeContext: { outlet: null, matches: w, isDataRoute: !0 }
735
+ }
736
+ ) : E();
737
+ }, null);
738
+ }
739
+ function ae(e) {
740
+ return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
741
+ }
742
+ function ut(e) {
743
+ let t = o.useContext(O);
744
+ return b(t, ae(e)), t;
745
+ }
746
+ function Ce(e) {
747
+ let t = o.useContext(_);
748
+ return b(t, ae(e)), t;
749
+ }
750
+ function ct(e) {
751
+ let t = o.useContext(k);
752
+ return b(t, ae(e)), t;
753
+ }
754
+ function ie(e) {
755
+ let t = ct(e), n = t.matches[t.matches.length - 1];
756
+ return b(
757
+ n.route.id,
758
+ `${e} can only be used on routes that contain a unique "id"`
759
+ ), n.route.id;
760
+ }
761
+ function ft() {
762
+ return ie(
763
+ "useRouteId"
764
+ /* UseRouteId */
765
+ );
766
+ }
767
+ function un() {
768
+ return Ce(
769
+ "useNavigation"
770
+ /* UseNavigation */
771
+ ).navigation;
772
+ }
773
+ function dt() {
774
+ var a;
775
+ let e = o.useContext(ne), t = Ce(
776
+ "useRouteError"
777
+ /* UseRouteError */
778
+ ), n = ie(
779
+ "useRouteError"
780
+ /* UseRouteError */
781
+ );
782
+ return e !== void 0 ? e : (a = t.errors) == null ? void 0 : a[n];
783
+ }
784
+ function ht() {
785
+ let { router: e } = ut(
786
+ "useNavigate"
787
+ /* UseNavigateStable */
788
+ ), t = ie(
789
+ "useNavigate"
790
+ /* UseNavigateStable */
791
+ ), n = o.useRef(!1);
792
+ return Re(() => {
793
+ n.current = !0;
794
+ }), o.useCallback(
795
+ async (r, i = {}) => {
796
+ L(n.current, xe), n.current && (typeof r == "number" ? e.navigate(r) : await e.navigate(r, { fromRouteId: t, ...i }));
797
+ },
798
+ [e, t]
799
+ );
800
+ }
801
+ var fe = {};
802
+ function Se(e, t, n) {
803
+ !t && !fe[e] && (fe[e] = !0, L(!1, n));
804
+ }
805
+ var de = {};
806
+ function he(e, t) {
807
+ !e && !de[t] && (de[t] = !0, console.warn(t));
808
+ }
809
+ var mt = class {
810
+ constructor() {
811
+ this.status = "pending", this.promise = new Promise((e, t) => {
812
+ this.resolve = (n) => {
813
+ this.status === "pending" && (this.status = "resolved", e(n));
814
+ }, this.reject = (n) => {
815
+ this.status === "pending" && (this.status = "rejected", t(n));
816
+ };
817
+ });
818
+ }
819
+ };
820
+ function cn({
821
+ router: e,
822
+ flushSync: t
823
+ }) {
824
+ let [n, a] = o.useState(e.state), [r, i] = o.useState(), [c, u] = o.useState({
825
+ isTransitioning: !1
826
+ }), [l, s] = o.useState(), [h, p] = o.useState(), [d, v] = o.useState(), f = o.useRef(/* @__PURE__ */ new Map()), w = o.useCallback(
827
+ (y, { deletedFetchers: R, flushSync: x, viewTransitionOpts: C }) => {
828
+ y.fetchers.forEach((S, P) => {
829
+ S.data !== void 0 && f.current.set(P, S.data);
830
+ }), R.forEach((S) => f.current.delete(S)), he(
831
+ x === !1 || t != null,
832
+ 'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.'
833
+ );
834
+ let $ = e.window != null && e.window.document != null && typeof e.window.document.startViewTransition == "function";
835
+ if (he(
836
+ C == null || $,
837
+ "You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."
838
+ ), !C || !$) {
839
+ t && x ? t(() => a(y)) : o.startTransition(() => a(y));
840
+ return;
841
+ }
842
+ if (t && x) {
843
+ t(() => {
844
+ h && (l && l.resolve(), h.skipTransition()), u({
845
+ isTransitioning: !0,
846
+ flushSync: !0,
847
+ currentLocation: C.currentLocation,
848
+ nextLocation: C.nextLocation
849
+ });
850
+ });
851
+ let S = e.window.document.startViewTransition(() => {
852
+ t(() => a(y));
853
+ });
854
+ S.finished.finally(() => {
855
+ t(() => {
856
+ s(void 0), p(void 0), i(void 0), u({ isTransitioning: !1 });
857
+ });
858
+ }), t(() => p(S));
859
+ return;
860
+ }
861
+ h ? (l && l.resolve(), h.skipTransition(), v({
862
+ state: y,
863
+ currentLocation: C.currentLocation,
864
+ nextLocation: C.nextLocation
865
+ })) : (i(y), u({
866
+ isTransitioning: !0,
867
+ flushSync: !1,
868
+ currentLocation: C.currentLocation,
869
+ nextLocation: C.nextLocation
870
+ }));
871
+ },
872
+ [e.window, t, h, l]
873
+ );
874
+ o.useLayoutEffect(() => e.subscribe(w), [e, w]), o.useEffect(() => {
875
+ c.isTransitioning && !c.flushSync && s(new mt());
876
+ }, [c]), o.useEffect(() => {
877
+ if (l && r && e.window) {
878
+ let y = r, R = l.promise, x = e.window.document.startViewTransition(async () => {
879
+ o.startTransition(() => a(y)), await R;
880
+ });
881
+ x.finished.finally(() => {
882
+ s(void 0), p(void 0), i(void 0), u({ isTransitioning: !1 });
883
+ }), p(x);
884
+ }
885
+ }, [r, l, e.window]), o.useEffect(() => {
886
+ l && r && n.location.key === r.location.key && l.resolve();
887
+ }, [l, h, n.location, r]), o.useEffect(() => {
888
+ !c.isTransitioning && d && (i(d.state), u({
889
+ isTransitioning: !0,
890
+ flushSync: !1,
891
+ currentLocation: d.currentLocation,
892
+ nextLocation: d.nextLocation
893
+ }), v(void 0));
894
+ }, [c.isTransitioning, d]);
895
+ let E = o.useMemo(() => ({
896
+ createHref: e.createHref,
897
+ encodeLocation: e.encodeLocation,
898
+ go: (y) => e.navigate(y),
899
+ push: (y, R, x) => e.navigate(y, {
900
+ state: R,
901
+ preventScrollReset: x == null ? void 0 : x.preventScrollReset
902
+ }),
903
+ replace: (y, R, x) => e.navigate(y, {
904
+ replace: !0,
905
+ state: R,
906
+ preventScrollReset: x == null ? void 0 : x.preventScrollReset
907
+ })
908
+ }), [e]), m = e.basename || "/", g = o.useMemo(
909
+ () => ({
910
+ router: e,
911
+ navigator: E,
912
+ static: !1,
913
+ basename: m
914
+ }),
915
+ [e, E, m]
916
+ );
917
+ return /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(O.Provider, { value: g }, /* @__PURE__ */ o.createElement(_.Provider, { value: n }, /* @__PURE__ */ o.createElement(te.Provider, { value: f.current }, /* @__PURE__ */ o.createElement(J.Provider, { value: c }, /* @__PURE__ */ o.createElement(
918
+ Pe,
919
+ {
920
+ basename: m,
921
+ location: n.location,
922
+ navigationType: n.historyAction,
923
+ navigator: E
924
+ },
925
+ /* @__PURE__ */ o.createElement(
926
+ pt,
927
+ {
928
+ routes: e.routes,
929
+ future: e.future,
930
+ state: n
931
+ }
932
+ )
933
+ ))))), null);
934
+ }
935
+ var pt = o.memo(vt);
936
+ function vt({
937
+ routes: e,
938
+ future: t,
939
+ state: n
940
+ }) {
941
+ return be(e, void 0, n, t);
942
+ }
943
+ function fn({
944
+ to: e,
945
+ replace: t,
946
+ state: n,
947
+ relative: a
948
+ }) {
949
+ b(
950
+ I(),
951
+ // TODO: This error is probably because they somehow have 2 versions of
952
+ // the router loaded. We can help them understand how to avoid that.
953
+ "<Navigate> may be used only in the context of a <Router> component."
954
+ );
955
+ let { static: r } = o.useContext(T);
956
+ L(
957
+ !r,
958
+ "<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change."
959
+ );
960
+ let { matches: i } = o.useContext(k), { pathname: c } = N(), u = re(), l = ee(
961
+ e,
962
+ Z(i),
963
+ c,
964
+ a === "path"
965
+ ), s = JSON.stringify(l);
966
+ return o.useEffect(() => {
967
+ u(JSON.parse(s), { replace: t, state: n, relative: a });
968
+ }, [u, s, a, t, n]), null;
969
+ }
970
+ function dn(e) {
971
+ return rt(e.context);
972
+ }
973
+ function Pe({
974
+ basename: e = "/",
975
+ children: t = null,
976
+ location: n,
977
+ navigationType: a = "POP",
978
+ navigator: r,
979
+ static: i = !1
980
+ }) {
981
+ b(
982
+ !I(),
983
+ "You cannot render a <Router> inside another <Router>. You should never have more than one in your app."
984
+ );
985
+ let c = e.replace(/^\/*/, "/"), u = o.useMemo(
986
+ () => ({
987
+ basename: c,
988
+ navigator: r,
989
+ static: i,
990
+ future: {}
991
+ }),
992
+ [c, r, i]
993
+ );
994
+ typeof n == "string" && (n = Y(n));
995
+ let {
996
+ pathname: l = "/",
997
+ search: s = "",
998
+ hash: h = "",
999
+ state: p = null,
1000
+ key: d = "default"
1001
+ } = n, v = o.useMemo(() => {
1002
+ let f = M(l, c);
1003
+ return f == null ? null : {
1004
+ location: {
1005
+ pathname: f,
1006
+ search: s,
1007
+ hash: h,
1008
+ state: p,
1009
+ key: d
1010
+ },
1011
+ navigationType: a
1012
+ };
1013
+ }, [c, l, s, h, p, d, a]);
1014
+ return L(
1015
+ v != null,
1016
+ `<Router basename="${c}"> is not able to match the URL "${l}${s}${h}" because it does not start with the basename, so the <Router> won't render anything.`
1017
+ ), v == null ? null : /* @__PURE__ */ o.createElement(T.Provider, { value: u }, /* @__PURE__ */ o.createElement(K.Provider, { children: t, value: v }));
1018
+ }
1019
+ var V = "get", j = "application/x-www-form-urlencoded";
1020
+ function q(e) {
1021
+ return e != null && typeof e.tagName == "string";
1022
+ }
1023
+ function gt(e) {
1024
+ return q(e) && e.tagName.toLowerCase() === "button";
1025
+ }
1026
+ function yt(e) {
1027
+ return q(e) && e.tagName.toLowerCase() === "form";
1028
+ }
1029
+ function wt(e) {
1030
+ return q(e) && e.tagName.toLowerCase() === "input";
1031
+ }
1032
+ function Et(e) {
1033
+ return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
1034
+ }
1035
+ function xt(e, t) {
1036
+ return e.button === 0 && // Ignore everything but left clicks
1037
+ (!t || t === "_self") && // Let browser handle "target=_blank" etc.
1038
+ !Et(e);
1039
+ }
1040
+ function Q(e = "") {
1041
+ return new URLSearchParams(
1042
+ typeof e == "string" || Array.isArray(e) || e instanceof URLSearchParams ? e : Object.keys(e).reduce((t, n) => {
1043
+ let a = e[n];
1044
+ return t.concat(
1045
+ Array.isArray(a) ? a.map((r) => [n, r]) : [[n, a]]
1046
+ );
1047
+ }, [])
1048
+ );
1049
+ }
1050
+ function Rt(e, t) {
1051
+ let n = Q(e);
1052
+ return t && t.forEach((a, r) => {
1053
+ n.has(r) || t.getAll(r).forEach((i) => {
1054
+ n.append(r, i);
1055
+ });
1056
+ }), n;
1057
+ }
1058
+ var z = null;
1059
+ function bt() {
1060
+ if (z === null)
1061
+ try {
1062
+ new FormData(
1063
+ document.createElement("form"),
1064
+ // @ts-expect-error if FormData supports the submitter parameter, this will throw
1065
+ 0
1066
+ ), z = !1;
1067
+ } catch {
1068
+ z = !0;
1069
+ }
1070
+ return z;
1071
+ }
1072
+ var Ct = /* @__PURE__ */ new Set([
1073
+ "application/x-www-form-urlencoded",
1074
+ "multipart/form-data",
1075
+ "text/plain"
1076
+ ]);
1077
+ function X(e) {
1078
+ return e != null && !Ct.has(e) ? (L(
1079
+ !1,
1080
+ `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${j}"`
1081
+ ), null) : e;
1082
+ }
1083
+ function St(e, t) {
1084
+ let n, a, r, i, c;
1085
+ if (yt(e)) {
1086
+ let u = e.getAttribute("action");
1087
+ a = u ? M(u, t) : null, n = e.getAttribute("method") || V, r = X(e.getAttribute("enctype")) || j, i = new FormData(e);
1088
+ } else if (gt(e) || wt(e) && (e.type === "submit" || e.type === "image")) {
1089
+ let u = e.form;
1090
+ if (u == null)
1091
+ throw new Error(
1092
+ 'Cannot submit a <button> or <input type="submit"> without a <form>'
1093
+ );
1094
+ let l = e.getAttribute("formaction") || u.getAttribute("action");
1095
+ if (a = l ? M(l, t) : null, n = e.getAttribute("formmethod") || u.getAttribute("method") || V, r = X(e.getAttribute("formenctype")) || X(u.getAttribute("enctype")) || j, i = new FormData(u, e), !bt()) {
1096
+ let { name: s, type: h, value: p } = e;
1097
+ if (h === "image") {
1098
+ let d = s ? `${s}.` : "";
1099
+ i.append(`${d}x`, "0"), i.append(`${d}y`, "0");
1100
+ } else s && i.append(s, p);
1101
+ }
1102
+ } else {
1103
+ if (q(e))
1104
+ throw new Error(
1105
+ 'Cannot submit element that is not <form>, <button>, or <input type="submit|image">'
1106
+ );
1107
+ n = V, a = null, r = j, c = e;
1108
+ }
1109
+ return i && r === "text/plain" && (c = i, i = void 0), { action: a, method: n.toLowerCase(), encType: r, formData: i, body: c };
1110
+ }
1111
+ function oe(e, t) {
1112
+ if (e === !1 || e === null || typeof e > "u")
1113
+ throw new Error(t);
1114
+ }
1115
+ async function Pt(e, t) {
1116
+ if (e.id in t)
1117
+ return t[e.id];
1118
+ try {
1119
+ let n = await import(
1120
+ /* @vite-ignore */
1121
+ /* webpackIgnore: true */
1122
+ e.module
1123
+ );
1124
+ return t[e.id] = n, n;
1125
+ } catch (n) {
1126
+ return console.error(
1127
+ `Error loading route module \`${e.module}\`, reloading page...`
1128
+ ), console.error(n), window.__reactRouterContext && window.__reactRouterContext.isSpaMode, window.location.reload(), new Promise(() => {
1129
+ });
1130
+ }
1131
+ }
1132
+ function Lt(e) {
1133
+ return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
1134
+ }
1135
+ async function kt(e, t, n) {
1136
+ let a = await Promise.all(
1137
+ e.map(async (r) => {
1138
+ let i = t.routes[r.route.id];
1139
+ if (i) {
1140
+ let c = await Pt(i, n);
1141
+ return c.links ? c.links() : [];
1142
+ }
1143
+ return [];
1144
+ })
1145
+ );
1146
+ return At(
1147
+ a.flat(1).filter(Lt).filter((r) => r.rel === "stylesheet" || r.rel === "preload").map(
1148
+ (r) => r.rel === "stylesheet" ? { ...r, rel: "prefetch", as: "style" } : { ...r, rel: "prefetch" }
1149
+ )
1150
+ );
1151
+ }
1152
+ function me(e, t, n, a, r, i) {
1153
+ let c = (l, s) => n[s] ? l.route.id !== n[s].route.id : !0, u = (l, s) => {
1154
+ var h;
1155
+ return (
1156
+ // param change, /users/123 -> /users/456
1157
+ n[s].pathname !== l.pathname || // splat param changed, which is not present in match.path
1158
+ // e.g. /files/images/avatar.jpg -> files/finances.xls
1159
+ ((h = n[s].route.path) == null ? void 0 : h.endsWith("*")) && n[s].params["*"] !== l.params["*"]
1160
+ );
1161
+ };
1162
+ return i === "assets" ? t.filter(
1163
+ (l, s) => c(l, s) || u(l, s)
1164
+ ) : i === "data" ? t.filter((l, s) => {
1165
+ var p;
1166
+ let h = a.routes[l.route.id];
1167
+ if (!h || !h.hasLoader)
1168
+ return !1;
1169
+ if (c(l, s) || u(l, s))
1170
+ return !0;
1171
+ if (l.route.shouldRevalidate) {
1172
+ let d = l.route.shouldRevalidate({
1173
+ currentUrl: new URL(
1174
+ r.pathname + r.search + r.hash,
1175
+ window.origin
1176
+ ),
1177
+ currentParams: ((p = n[0]) == null ? void 0 : p.params) || {},
1178
+ nextUrl: new URL(e, window.origin),
1179
+ nextParams: l.params,
1180
+ defaultShouldRevalidate: !0
1181
+ });
1182
+ if (typeof d == "boolean")
1183
+ return d;
1184
+ }
1185
+ return !0;
1186
+ }) : [];
1187
+ }
1188
+ function $t(e, t, { includeHydrateFallback: n } = {}) {
1189
+ return Tt(
1190
+ e.map((a) => {
1191
+ let r = t.routes[a.route.id];
1192
+ if (!r) return [];
1193
+ let i = [r.module];
1194
+ return r.clientActionModule && (i = i.concat(r.clientActionModule)), r.clientLoaderModule && (i = i.concat(r.clientLoaderModule)), n && r.hydrateFallbackModule && (i = i.concat(r.hydrateFallbackModule)), r.imports && (i = i.concat(r.imports)), i;
1195
+ }).flat(1)
1196
+ );
1197
+ }
1198
+ function Tt(e) {
1199
+ return [...new Set(e)];
1200
+ }
1201
+ function Nt(e) {
1202
+ let t = {}, n = Object.keys(e).sort();
1203
+ for (let a of n)
1204
+ t[a] = e[a];
1205
+ return t;
1206
+ }
1207
+ function At(e, t) {
1208
+ let n = /* @__PURE__ */ new Set();
1209
+ return new Set(t), e.reduce((a, r) => {
1210
+ let i = JSON.stringify(Nt(r));
1211
+ return n.has(i) || (n.add(i), a.push({ key: i, link: r })), a;
1212
+ }, []);
1213
+ }
1214
+ var Mt = /* @__PURE__ */ new Set([100, 101, 204, 205]);
1215
+ function Dt(e, t) {
1216
+ let n = typeof e == "string" ? new URL(
1217
+ e,
1218
+ // This can be called during the SSR flow via PrefetchPageLinksImpl so
1219
+ // don't assume window is available
1220
+ typeof window > "u" ? "server://singlefetch/" : window.location.origin
1221
+ ) : e;
1222
+ return n.pathname === "/" ? n.pathname = "_root.data" : t && M(n.pathname, t) === "/" ? n.pathname = `${t.replace(/\/$/, "")}/_root.data` : n.pathname = `${n.pathname.replace(/\/$/, "")}.data`, n;
1223
+ }
1224
+ function Le() {
1225
+ let e = o.useContext(O);
1226
+ return oe(
1227
+ e,
1228
+ "You must render this element inside a <DataRouterContext.Provider> element"
1229
+ ), e;
1230
+ }
1231
+ function Ot() {
1232
+ let e = o.useContext(_);
1233
+ return oe(
1234
+ e,
1235
+ "You must render this element inside a <DataRouterStateContext.Provider> element"
1236
+ ), e;
1237
+ }
1238
+ var le = o.createContext(void 0);
1239
+ le.displayName = "FrameworkContext";
1240
+ function ke() {
1241
+ let e = o.useContext(le);
1242
+ return oe(
1243
+ e,
1244
+ "You must render this element inside a <HydratedRouter> element"
1245
+ ), e;
1246
+ }
1247
+ function It(e, t) {
1248
+ let n = o.useContext(le), [a, r] = o.useState(!1), [i, c] = o.useState(!1), { onFocus: u, onBlur: l, onMouseEnter: s, onMouseLeave: h, onTouchStart: p } = t, d = o.useRef(null);
1249
+ o.useEffect(() => {
1250
+ if (e === "render" && c(!0), e === "viewport") {
1251
+ let w = (m) => {
1252
+ m.forEach((g) => {
1253
+ c(g.isIntersecting);
1254
+ });
1255
+ }, E = new IntersectionObserver(w, { threshold: 0.5 });
1256
+ return d.current && E.observe(d.current), () => {
1257
+ E.disconnect();
1258
+ };
1259
+ }
1260
+ }, [e]), o.useEffect(() => {
1261
+ if (a) {
1262
+ let w = setTimeout(() => {
1263
+ c(!0);
1264
+ }, 100);
1265
+ return () => {
1266
+ clearTimeout(w);
1267
+ };
1268
+ }
1269
+ }, [a]);
1270
+ let v = () => {
1271
+ r(!0);
1272
+ }, f = () => {
1273
+ r(!1), c(!1);
1274
+ };
1275
+ return n ? e !== "intent" ? [i, d, {}] : [
1276
+ i,
1277
+ d,
1278
+ {
1279
+ onFocus: U(u, v),
1280
+ onBlur: U(l, f),
1281
+ onMouseEnter: U(s, v),
1282
+ onMouseLeave: U(h, f),
1283
+ onTouchStart: U(p, v)
1284
+ }
1285
+ ] : [!1, d, {}];
1286
+ }
1287
+ function U(e, t) {
1288
+ return (n) => {
1289
+ e && e(n), n.defaultPrevented || t(n);
1290
+ };
1291
+ }
1292
+ function _t({
1293
+ page: e,
1294
+ ...t
1295
+ }) {
1296
+ let { router: n } = Le(), a = o.useMemo(
1297
+ () => pe(n.routes, e, n.basename),
1298
+ [n.routes, e, n.basename]
1299
+ );
1300
+ return a ? /* @__PURE__ */ o.createElement(Ut, { page: e, matches: a, ...t }) : null;
1301
+ }
1302
+ function Ft(e) {
1303
+ let { manifest: t, routeModules: n } = ke(), [a, r] = o.useState([]);
1304
+ return o.useEffect(() => {
1305
+ let i = !1;
1306
+ return kt(e, t, n).then(
1307
+ (c) => {
1308
+ i || r(c);
1309
+ }
1310
+ ), () => {
1311
+ i = !0;
1312
+ };
1313
+ }, [e, t, n]), a;
1314
+ }
1315
+ function Ut({
1316
+ page: e,
1317
+ matches: t,
1318
+ ...n
1319
+ }) {
1320
+ let a = N(), { manifest: r, routeModules: i } = ke(), { basename: c } = Le(), { loaderData: u, matches: l } = Ot(), s = o.useMemo(
1321
+ () => me(
1322
+ e,
1323
+ t,
1324
+ l,
1325
+ r,
1326
+ a,
1327
+ "data"
1328
+ ),
1329
+ [e, t, l, r, a]
1330
+ ), h = o.useMemo(
1331
+ () => me(
1332
+ e,
1333
+ t,
1334
+ l,
1335
+ r,
1336
+ a,
1337
+ "assets"
1338
+ ),
1339
+ [e, t, l, r, a]
1340
+ ), p = o.useMemo(() => {
1341
+ if (e === a.pathname + a.search + a.hash)
1342
+ return [];
1343
+ let f = /* @__PURE__ */ new Set(), w = !1;
1344
+ if (t.forEach((m) => {
1345
+ var y;
1346
+ let g = r.routes[m.route.id];
1347
+ !g || !g.hasLoader || (!s.some((R) => R.route.id === m.route.id) && m.route.id in u && ((y = i[m.route.id]) != null && y.shouldRevalidate) || g.hasClientLoader ? w = !0 : f.add(m.route.id));
1348
+ }), f.size === 0)
1349
+ return [];
1350
+ let E = Dt(e, c);
1351
+ return w && f.size > 0 && E.searchParams.set(
1352
+ "_routes",
1353
+ t.filter((m) => f.has(m.route.id)).map((m) => m.route.id).join(",")
1354
+ ), [E.pathname + E.search];
1355
+ }, [
1356
+ c,
1357
+ u,
1358
+ a,
1359
+ r,
1360
+ s,
1361
+ t,
1362
+ e,
1363
+ i
1364
+ ]), d = o.useMemo(
1365
+ () => $t(h, r),
1366
+ [h, r]
1367
+ ), v = Ft(h);
1368
+ return /* @__PURE__ */ o.createElement(o.Fragment, null, p.map((f) => /* @__PURE__ */ o.createElement("link", { key: f, rel: "prefetch", as: "fetch", href: f, ...n })), d.map((f) => /* @__PURE__ */ o.createElement("link", { key: f, rel: "modulepreload", href: f, ...n })), v.map(({ key: f, link: w }) => (
1369
+ // these don't spread `linkProps` because they are full link descriptors
1370
+ // already with their own props
1371
+ /* @__PURE__ */ o.createElement("link", { key: f, ...w })
1372
+ )));
1373
+ }
1374
+ function Bt(...e) {
1375
+ return (t) => {
1376
+ e.forEach((n) => {
1377
+ typeof n == "function" ? n(t) : n != null && (n.current = t);
1378
+ });
1379
+ };
1380
+ }
1381
+ var $e = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
1382
+ try {
1383
+ $e && (window.__reactRouterVersion = "7.5.2");
1384
+ } catch {
1385
+ }
1386
+ var Te = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ne = o.forwardRef(
1387
+ function({
1388
+ onClick: t,
1389
+ discover: n = "render",
1390
+ prefetch: a = "none",
1391
+ relative: r,
1392
+ reloadDocument: i,
1393
+ replace: c,
1394
+ state: u,
1395
+ target: l,
1396
+ to: s,
1397
+ preventScrollReset: h,
1398
+ viewTransition: p,
1399
+ ...d
1400
+ }, v) {
1401
+ let { basename: f } = o.useContext(T), w = typeof s == "string" && Te.test(s), E, m = !1;
1402
+ if (typeof s == "string" && w && (E = s, $e))
1403
+ try {
1404
+ let P = new URL(window.location.href), D = s.startsWith("//") ? new URL(P.protocol + s) : new URL(s), se = M(D.pathname, f);
1405
+ D.origin === P.origin && se != null ? s = se + D.search + D.hash : m = !0;
1406
+ } catch {
1407
+ L(
1408
+ !1,
1409
+ `<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
1410
+ );
1411
+ }
1412
+ let g = et(s, { relative: r }), [y, R, x] = It(
1413
+ a,
1414
+ d
1415
+ ), C = Vt(s, {
1416
+ replace: c,
1417
+ state: u,
1418
+ target: l,
1419
+ preventScrollReset: h,
1420
+ relative: r,
1421
+ viewTransition: p
1422
+ });
1423
+ function $(P) {
1424
+ t && t(P), P.defaultPrevented || C(P);
1425
+ }
1426
+ let S = (
1427
+ // eslint-disable-next-line jsx-a11y/anchor-has-content
1428
+ /* @__PURE__ */ o.createElement(
1429
+ "a",
1430
+ {
1431
+ ...d,
1432
+ ...x,
1433
+ href: E || g,
1434
+ onClick: m || i ? t : $,
1435
+ ref: Bt(v, R),
1436
+ target: l,
1437
+ "data-discover": !w && n === "render" ? "true" : void 0
1438
+ }
1439
+ )
1440
+ );
1441
+ return y && !w ? /* @__PURE__ */ o.createElement(o.Fragment, null, S, /* @__PURE__ */ o.createElement(_t, { page: g })) : S;
1442
+ }
1443
+ );
1444
+ Ne.displayName = "Link";
1445
+ var Ht = o.forwardRef(
1446
+ function({
1447
+ "aria-current": t = "page",
1448
+ caseSensitive: n = !1,
1449
+ className: a = "",
1450
+ end: r = !1,
1451
+ style: i,
1452
+ to: c,
1453
+ viewTransition: u,
1454
+ children: l,
1455
+ ...s
1456
+ }, h) {
1457
+ let p = W(c, { relative: s.relative }), d = N(), v = o.useContext(_), { navigator: f, basename: w } = o.useContext(T), E = v != null && // Conditional usage is OK here because the usage of a data router is static
1458
+ // eslint-disable-next-line react-hooks/rules-of-hooks
1459
+ qt(p) && u === !0, m = f.encodeLocation ? f.encodeLocation(p).pathname : p.pathname, g = d.pathname, y = v && v.navigation && v.navigation.location ? v.navigation.location.pathname : null;
1460
+ n || (g = g.toLowerCase(), y = y ? y.toLowerCase() : null, m = m.toLowerCase()), y && w && (y = M(y, w) || y);
1461
+ const R = m !== "/" && m.endsWith("/") ? m.length - 1 : m.length;
1462
+ let x = g === m || !r && g.startsWith(m) && g.charAt(R) === "/", C = y != null && (y === m || !r && y.startsWith(m) && y.charAt(m.length) === "/"), $ = {
1463
+ isActive: x,
1464
+ isPending: C,
1465
+ isTransitioning: E
1466
+ }, S = x ? t : void 0, P;
1467
+ typeof a == "function" ? P = a($) : P = [
1468
+ a,
1469
+ x ? "active" : null,
1470
+ C ? "pending" : null,
1471
+ E ? "transitioning" : null
1472
+ ].filter(Boolean).join(" ");
1473
+ let D = typeof i == "function" ? i($) : i;
1474
+ return /* @__PURE__ */ o.createElement(
1475
+ Ne,
1476
+ {
1477
+ ...s,
1478
+ "aria-current": S,
1479
+ className: P,
1480
+ ref: h,
1481
+ style: D,
1482
+ to: c,
1483
+ viewTransition: u
1484
+ },
1485
+ typeof l == "function" ? l($) : l
1486
+ );
1487
+ }
1488
+ );
1489
+ Ht.displayName = "NavLink";
1490
+ var Wt = o.forwardRef(
1491
+ ({
1492
+ discover: e = "render",
1493
+ fetcherKey: t,
1494
+ navigate: n,
1495
+ reloadDocument: a,
1496
+ replace: r,
1497
+ state: i,
1498
+ method: c = V,
1499
+ action: u,
1500
+ onSubmit: l,
1501
+ relative: s,
1502
+ preventScrollReset: h,
1503
+ viewTransition: p,
1504
+ ...d
1505
+ }, v) => {
1506
+ let f = Jt(), w = Kt(u, { relative: s }), E = c.toLowerCase() === "get" ? "get" : "post", m = typeof u == "string" && Te.test(u), g = (y) => {
1507
+ if (l && l(y), y.defaultPrevented) return;
1508
+ y.preventDefault();
1509
+ let R = y.nativeEvent.submitter, x = (R == null ? void 0 : R.getAttribute("formmethod")) || c;
1510
+ f(R || y.currentTarget, {
1511
+ fetcherKey: t,
1512
+ method: x,
1513
+ navigate: n,
1514
+ replace: r,
1515
+ state: i,
1516
+ relative: s,
1517
+ preventScrollReset: h,
1518
+ viewTransition: p
1519
+ });
1520
+ };
1521
+ return /* @__PURE__ */ o.createElement(
1522
+ "form",
1523
+ {
1524
+ ref: v,
1525
+ method: E,
1526
+ action: w,
1527
+ onSubmit: a ? l : g,
1528
+ ...d,
1529
+ "data-discover": !m && e === "render" ? "true" : void 0
1530
+ }
1531
+ );
1532
+ }
1533
+ );
1534
+ Wt.displayName = "Form";
1535
+ function zt(e) {
1536
+ return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
1537
+ }
1538
+ function Ae(e) {
1539
+ let t = o.useContext(O);
1540
+ return b(t, zt(e)), t;
1541
+ }
1542
+ function Vt(e, {
1543
+ target: t,
1544
+ replace: n,
1545
+ state: a,
1546
+ preventScrollReset: r,
1547
+ relative: i,
1548
+ viewTransition: c
1549
+ } = {}) {
1550
+ let u = re(), l = N(), s = W(e, { relative: i });
1551
+ return o.useCallback(
1552
+ (h) => {
1553
+ if (xt(h, t)) {
1554
+ h.preventDefault();
1555
+ let p = n !== void 0 ? n : B(l) === B(s);
1556
+ u(e, {
1557
+ replace: p,
1558
+ state: a,
1559
+ preventScrollReset: r,
1560
+ relative: i,
1561
+ viewTransition: c
1562
+ });
1563
+ }
1564
+ },
1565
+ [
1566
+ l,
1567
+ u,
1568
+ s,
1569
+ n,
1570
+ a,
1571
+ t,
1572
+ e,
1573
+ r,
1574
+ i,
1575
+ c
1576
+ ]
1577
+ );
1578
+ }
1579
+ function hn(e) {
1580
+ L(
1581
+ typeof URLSearchParams < "u",
1582
+ "You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params."
1583
+ );
1584
+ let t = o.useRef(Q(e)), n = o.useRef(!1), a = N(), r = o.useMemo(
1585
+ () => (
1586
+ // Only merge in the defaults if we haven't yet called setSearchParams.
1587
+ // Once we call that we want those to take precedence, otherwise you can't
1588
+ // remove a param with setSearchParams({}) if it has an initial value
1589
+ Rt(
1590
+ a.search,
1591
+ n.current ? null : t.current
1592
+ )
1593
+ ),
1594
+ [a.search]
1595
+ ), i = re(), c = o.useCallback(
1596
+ (u, l) => {
1597
+ const s = Q(
1598
+ typeof u == "function" ? u(r) : u
1599
+ );
1600
+ n.current = !0, i("?" + s, l);
1601
+ },
1602
+ [i, r]
1603
+ );
1604
+ return [r, c];
1605
+ }
1606
+ var jt = 0, Yt = () => `__${String(++jt)}__`;
1607
+ function Jt() {
1608
+ let { router: e } = Ae(
1609
+ "useSubmit"
1610
+ /* UseSubmit */
1611
+ ), { basename: t } = o.useContext(T), n = ft();
1612
+ return o.useCallback(
1613
+ async (a, r = {}) => {
1614
+ let { action: i, method: c, encType: u, formData: l, body: s } = St(
1615
+ a,
1616
+ t
1617
+ );
1618
+ if (r.navigate === !1) {
1619
+ let h = r.fetcherKey || Yt();
1620
+ await e.fetch(h, n, r.action || i, {
1621
+ preventScrollReset: r.preventScrollReset,
1622
+ formData: l,
1623
+ body: s,
1624
+ formMethod: r.method || c,
1625
+ formEncType: r.encType || u,
1626
+ flushSync: r.flushSync
1627
+ });
1628
+ } else
1629
+ await e.navigate(r.action || i, {
1630
+ preventScrollReset: r.preventScrollReset,
1631
+ formData: l,
1632
+ body: s,
1633
+ formMethod: r.method || c,
1634
+ formEncType: r.encType || u,
1635
+ replace: r.replace,
1636
+ state: r.state,
1637
+ fromRouteId: n,
1638
+ flushSync: r.flushSync,
1639
+ viewTransition: r.viewTransition
1640
+ });
1641
+ },
1642
+ [e, t, n]
1643
+ );
1644
+ }
1645
+ function Kt(e, { relative: t } = {}) {
1646
+ let { basename: n } = o.useContext(T), a = o.useContext(k);
1647
+ b(a, "useFormAction must be used inside a RouteContext");
1648
+ let [r] = a.matches.slice(-1), i = { ...W(e || ".", { relative: t }) }, c = N();
1649
+ if (e == null) {
1650
+ i.search = c.search;
1651
+ let u = new URLSearchParams(i.search), l = u.getAll("index");
1652
+ if (l.some((h) => h === "")) {
1653
+ u.delete("index"), l.filter((p) => p).forEach((p) => u.append("index", p));
1654
+ let h = u.toString();
1655
+ i.search = h ? `?${h}` : "";
1656
+ }
1657
+ }
1658
+ return (!e || e === ".") && r.route.index && (i.search = i.search ? i.search.replace(/^\?/, "?index&") : "?index"), n !== "/" && (i.pathname = i.pathname === "/" ? n : A([n, i.pathname])), B(i);
1659
+ }
1660
+ function qt(e, t = {}) {
1661
+ let n = o.useContext(J);
1662
+ b(
1663
+ n != null,
1664
+ "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
1665
+ );
1666
+ let { basename: a } = Ae(
1667
+ "useViewTransitionState"
1668
+ /* useViewTransitionState */
1669
+ ), r = W(e, { relative: t.relative });
1670
+ if (!n.isTransitioning)
1671
+ return !1;
1672
+ let i = M(n.currentLocation.pathname, a) || n.currentLocation.pathname, c = M(n.nextLocation.pathname, a) || n.nextLocation.pathname;
1673
+ return H(r.pathname, c) != null || H(r.pathname, i) != null;
1674
+ }
1675
+ function mn({
1676
+ context: e,
1677
+ router: t,
1678
+ hydrate: n = !0,
1679
+ nonce: a
1680
+ }) {
1681
+ b(
1682
+ t && e,
1683
+ "You must provide `router` and `context` to <StaticRouterProvider>"
1684
+ );
1685
+ let r = {
1686
+ router: t,
1687
+ navigator: Qt(),
1688
+ static: !0,
1689
+ staticContext: e,
1690
+ basename: e.basename || "/"
1691
+ }, i = /* @__PURE__ */ new Map(), c = "";
1692
+ if (n !== !1) {
1693
+ let l = {
1694
+ loaderData: e.loaderData,
1695
+ actionData: e.actionData,
1696
+ errors: Xt(e.errors)
1697
+ };
1698
+ c = `window.__staticRouterHydrationData = JSON.parse(${an(JSON.stringify(JSON.stringify(l)))});`;
1699
+ }
1700
+ let { state: u } = r.router;
1701
+ return /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(O.Provider, { value: r }, /* @__PURE__ */ o.createElement(_.Provider, { value: u }, /* @__PURE__ */ o.createElement(te.Provider, { value: i }, /* @__PURE__ */ o.createElement(J.Provider, { value: { isTransitioning: !1 } }, /* @__PURE__ */ o.createElement(
1702
+ Pe,
1703
+ {
1704
+ basename: r.basename,
1705
+ location: u.location,
1706
+ navigationType: u.historyAction,
1707
+ navigator: r.navigator,
1708
+ static: r.static
1709
+ },
1710
+ /* @__PURE__ */ o.createElement(
1711
+ Gt,
1712
+ {
1713
+ routes: t.routes,
1714
+ future: t.future,
1715
+ state: u
1716
+ }
1717
+ )
1718
+ ))))), c ? /* @__PURE__ */ o.createElement(
1719
+ "script",
1720
+ {
1721
+ suppressHydrationWarning: !0,
1722
+ nonce: a,
1723
+ dangerouslySetInnerHTML: { __html: c }
1724
+ }
1725
+ ) : null);
1726
+ }
1727
+ function Gt({
1728
+ routes: e,
1729
+ future: t,
1730
+ state: n
1731
+ }) {
1732
+ return be(e, void 0, n, t);
1733
+ }
1734
+ function Xt(e) {
1735
+ if (!e) return null;
1736
+ let t = Object.entries(e), n = {};
1737
+ for (let [a, r] of t)
1738
+ we(r) ? n[a] = { ...r, __type: "RouteErrorResponse" } : r instanceof Error ? n[a] = {
1739
+ message: r.message,
1740
+ __type: "Error",
1741
+ // If this is a subclass (i.e., ReferenceError), send up the type so we
1742
+ // can re-create the same type during hydration.
1743
+ ...r.name !== "Error" ? {
1744
+ __subType: r.name
1745
+ } : {}
1746
+ } : n[a] = r;
1747
+ return n;
1748
+ }
1749
+ function Qt() {
1750
+ return {
1751
+ createHref: Zt,
1752
+ encodeLocation: en,
1753
+ push(e) {
1754
+ throw new Error(
1755
+ `You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)})\` somewhere in your app.`
1756
+ );
1757
+ },
1758
+ replace(e) {
1759
+ throw new Error(
1760
+ `You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)}, { replace: true })\` somewhere in your app.`
1761
+ );
1762
+ },
1763
+ go(e) {
1764
+ throw new Error(
1765
+ `You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${e})\` somewhere in your app.`
1766
+ );
1767
+ },
1768
+ back() {
1769
+ throw new Error(
1770
+ "You cannot use navigator.back() on the server because it is a stateless environment."
1771
+ );
1772
+ },
1773
+ forward() {
1774
+ throw new Error(
1775
+ "You cannot use navigator.forward() on the server because it is a stateless environment."
1776
+ );
1777
+ }
1778
+ };
1779
+ }
1780
+ function Zt(e) {
1781
+ return typeof e == "string" ? e : B(e);
1782
+ }
1783
+ function en(e) {
1784
+ let t = typeof e == "string" ? e : B(e);
1785
+ t = t.replace(/ $/, "%20");
1786
+ let n = tn.test(t) ? new URL(t) : new URL(t, "http://localhost");
1787
+ return {
1788
+ pathname: n.pathname,
1789
+ search: n.search,
1790
+ hash: n.hash
1791
+ };
1792
+ }
1793
+ var tn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, nn = {
1794
+ "&": "\\u0026",
1795
+ ">": "\\u003e",
1796
+ "<": "\\u003c",
1797
+ "\u2028": "\\u2028",
1798
+ "\u2029": "\\u2029"
1799
+ }, rn = /[&><\u2028\u2029]/g;
1800
+ function an(e) {
1801
+ return e.replace(rn, (t) => nn[t]);
1802
+ }
1803
+ new TextEncoder();
1804
+ [
1805
+ ...Mt
1806
+ ];
1807
+ export {
1808
+ Ne as L,
1809
+ fn as N,
1810
+ dn as O,
1811
+ cn as R,
1812
+ mn as S,
1813
+ re as a,
1814
+ hn as b,
1815
+ sn as c,
1816
+ ln as d,
1817
+ dt as e,
1818
+ un as f,
1819
+ Ht as g,
1820
+ et as h,
1821
+ we as i,
1822
+ H as m,
1823
+ on as r,
1824
+ N as u
1825
+ };
1826
+ //# sourceMappingURL=chunk-BAXFHI7N-BVBOl9s0.js.map