zudoku 0.0.0-ec30b50 → 0.0.0-ed94abf

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 (900) hide show
  1. package/README.md +1 -1
  2. package/cli.js +3 -0
  3. package/dist/app/entry.client.d.ts +5 -0
  4. package/dist/app/entry.client.js +3 -0
  5. package/dist/app/entry.client.js.map +1 -1
  6. package/dist/app/entry.server.d.ts +8 -6
  7. package/dist/app/entry.server.js +12 -8
  8. package/dist/app/entry.server.js.map +1 -1
  9. package/dist/app/main.js +10 -5
  10. package/dist/app/main.js.map +1 -1
  11. package/dist/app/tailwind.js +20 -0
  12. package/dist/app/tailwind.js.map +1 -1
  13. package/dist/cli/build/handler.d.ts +1 -3
  14. package/dist/cli/build/handler.js +9 -1
  15. package/dist/cli/build/handler.js.map +1 -1
  16. package/dist/cli/cli.js +5 -0
  17. package/dist/cli/cli.js.map +1 -1
  18. package/dist/cli/cmds/build.d.ts +11 -3
  19. package/dist/cli/cmds/build.js +20 -13
  20. package/dist/cli/cmds/build.js.map +1 -1
  21. package/dist/cli/cmds/dev.d.ts +1 -1
  22. package/dist/cli/cmds/dev.js.map +1 -1
  23. package/dist/cli/cmds/preview.d.ts +16 -0
  24. package/dist/cli/cmds/preview.js +25 -0
  25. package/dist/cli/cmds/preview.js.map +1 -0
  26. package/dist/cli/common/machine-id/lib.js +1 -0
  27. package/dist/cli/common/machine-id/lib.js.map +1 -1
  28. package/dist/cli/common/utils/ports.d.ts +1 -1
  29. package/dist/cli/common/utils/ports.js +16 -15
  30. package/dist/cli/common/utils/ports.js.map +1 -1
  31. package/dist/cli/dev/handler.js +10 -12
  32. package/dist/cli/dev/handler.js.map +1 -1
  33. package/dist/cli/preview/handler.d.ts +3 -0
  34. package/dist/cli/preview/handler.js +35 -0
  35. package/dist/cli/preview/handler.js.map +1 -0
  36. package/dist/config/ZuploBuildConfig.d.ts +155 -0
  37. package/dist/config/ZuploBuildConfig.js +29 -0
  38. package/dist/config/ZuploBuildConfig.js.map +1 -0
  39. package/dist/config/common.d.ts +5 -3
  40. package/dist/config/config.d.ts +18 -16
  41. package/dist/config/loader.d.ts +7 -6
  42. package/dist/config/loader.js +21 -29
  43. package/dist/config/loader.js.map +1 -1
  44. package/dist/config/validators/BuildSchema.d.ts +60 -0
  45. package/dist/config/validators/BuildSchema.js +31 -0
  46. package/dist/config/validators/BuildSchema.js.map +1 -0
  47. package/dist/config/validators/InputSidebarSchema.d.ts +15 -15
  48. package/dist/config/validators/InputSidebarSchema.js +10 -1
  49. package/dist/config/validators/InputSidebarSchema.js.map +1 -1
  50. package/dist/config/validators/common.d.ts +3205 -691
  51. package/dist/config/validators/common.js +132 -21
  52. package/dist/config/validators/common.js.map +1 -1
  53. package/dist/config/validators/icon-types.d.ts +1 -1
  54. package/dist/config/validators/validate.d.ts +1192 -305
  55. package/dist/index.d.ts +2 -1
  56. package/dist/index.js +1 -0
  57. package/dist/index.js.map +1 -1
  58. package/dist/lib/MissingIcon.d.ts +2 -0
  59. package/dist/lib/MissingIcon.js +7 -0
  60. package/dist/lib/MissingIcon.js.map +1 -0
  61. package/dist/lib/authentication/authentication.d.ts +1 -0
  62. package/dist/lib/authentication/hook.d.ts +1 -0
  63. package/dist/lib/authentication/hook.js +11 -1
  64. package/dist/lib/authentication/hook.js.map +1 -1
  65. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  66. package/dist/lib/authentication/providers/auth0.js +1 -0
  67. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  68. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  69. package/dist/lib/authentication/providers/clerk.js +25 -6
  70. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  71. package/dist/lib/authentication/providers/openid.d.ts +5 -3
  72. package/dist/lib/authentication/providers/openid.js +24 -10
  73. package/dist/lib/authentication/providers/openid.js.map +1 -1
  74. package/dist/lib/authentication/providers/supabase.d.ts +4 -0
  75. package/dist/lib/authentication/providers/supabase.js +117 -0
  76. package/dist/lib/authentication/providers/supabase.js.map +1 -0
  77. package/dist/lib/authentication/state.d.ts +0 -26
  78. package/dist/lib/authentication/state.js +9 -18
  79. package/dist/lib/authentication/state.js.map +1 -1
  80. package/dist/lib/components/AnchorLink.d.ts +2 -2
  81. package/dist/lib/components/AnchorLink.js +5 -4
  82. package/dist/lib/components/AnchorLink.js.map +1 -1
  83. package/dist/lib/components/Banner.js +1 -1
  84. package/dist/lib/components/Banner.js.map +1 -1
  85. package/dist/lib/components/Bootstrap.d.ts +2 -1
  86. package/dist/lib/components/Bootstrap.js +3 -2
  87. package/dist/lib/components/Bootstrap.js.map +1 -1
  88. package/dist/lib/components/BuildCheck.d.ts +4 -0
  89. package/dist/lib/components/BuildCheck.js +22 -0
  90. package/dist/lib/components/BuildCheck.js.map +1 -0
  91. package/dist/lib/components/Footer.d.ts +1 -0
  92. package/dist/lib/components/Footer.js +32 -0
  93. package/dist/lib/components/Footer.js.map +1 -0
  94. package/dist/lib/components/Header.js +4 -4
  95. package/dist/lib/components/Header.js.map +1 -1
  96. package/dist/lib/components/Heading.d.ts +2 -2
  97. package/dist/lib/components/InlineCode.d.ts +2 -1
  98. package/dist/lib/components/InlineCode.js +2 -9
  99. package/dist/lib/components/InlineCode.js.map +1 -1
  100. package/dist/lib/components/Layout.js +8 -28
  101. package/dist/lib/components/Layout.js.map +1 -1
  102. package/dist/lib/components/Main.d.ts +2 -0
  103. package/dist/lib/components/Main.js +17 -0
  104. package/dist/lib/components/Main.js.map +1 -0
  105. package/dist/lib/components/MobileTopNavigation.js +6 -3
  106. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  107. package/dist/lib/components/Pagination.d.ts +11 -0
  108. package/dist/lib/components/Pagination.js +10 -0
  109. package/dist/lib/components/Pagination.js.map +1 -0
  110. package/dist/lib/components/Search.js +7 -1
  111. package/dist/lib/components/Search.js.map +1 -1
  112. package/dist/lib/components/ThemeSwitch.js +8 -5
  113. package/dist/lib/components/ThemeSwitch.js.map +1 -1
  114. package/dist/lib/components/TopNavigation.d.ts +3 -2
  115. package/dist/lib/components/TopNavigation.js +28 -14
  116. package/dist/lib/components/TopNavigation.js.map +1 -1
  117. package/dist/lib/components/Zudoku.d.ts +1 -1
  118. package/dist/lib/components/Zudoku.js +13 -8
  119. package/dist/lib/components/Zudoku.js.map +1 -1
  120. package/dist/lib/components/cache.d.ts +7 -0
  121. package/dist/lib/components/cache.js +7 -0
  122. package/dist/lib/components/cache.js.map +1 -1
  123. package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
  124. package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
  125. package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
  126. package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
  127. package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
  128. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
  129. package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
  130. package/dist/lib/components/context/ViewportAnchorContext.js +5 -10
  131. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  132. package/dist/lib/components/context/ZudokuContext.d.ts +2 -2
  133. package/dist/lib/components/context/ZudokuContext.js +21 -9
  134. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  135. package/dist/lib/components/index.d.ts +11 -3
  136. package/dist/lib/components/index.js +4 -0
  137. package/dist/lib/components/index.js.map +1 -1
  138. package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
  139. package/dist/lib/components/navigation/PoweredByZudoku.js +7 -0
  140. package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
  141. package/dist/lib/components/navigation/Sidebar.d.ts +3 -1
  142. package/dist/lib/components/navigation/Sidebar.js +3 -12
  143. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  144. package/dist/lib/components/navigation/SidebarBadge.d.ts +2 -0
  145. package/dist/lib/components/navigation/SidebarBadge.js +3 -1
  146. package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
  147. package/dist/lib/components/navigation/SidebarCategory.d.ts +2 -2
  148. package/dist/lib/components/navigation/SidebarCategory.js +10 -6
  149. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  150. package/dist/lib/components/navigation/SidebarItem.d.ts +1 -0
  151. package/dist/lib/components/navigation/SidebarItem.js +17 -11
  152. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  153. package/dist/lib/components/navigation/SidebarWrapper.d.ts +7 -6
  154. package/dist/lib/components/navigation/SidebarWrapper.js +18 -3
  155. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  156. package/dist/lib/{plugins/markdown → components/navigation}/Toc.js +5 -7
  157. package/dist/lib/components/navigation/Toc.js.map +1 -0
  158. package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
  159. package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
  160. package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
  161. package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
  162. package/dist/lib/components/navigation/ZuploLogo.js +4 -0
  163. package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
  164. package/dist/lib/core/RouteGuard.d.ts +2 -1
  165. package/dist/lib/core/RouteGuard.js +35 -11
  166. package/dist/lib/core/RouteGuard.js.map +1 -1
  167. package/dist/lib/core/ZudokuContext.d.ts +33 -7
  168. package/dist/lib/core/ZudokuContext.js +29 -6
  169. package/dist/lib/core/ZudokuContext.js.map +1 -1
  170. package/dist/lib/core/plugins.d.ts +17 -7
  171. package/dist/lib/core/plugins.js +3 -0
  172. package/dist/lib/core/plugins.js.map +1 -1
  173. package/dist/lib/errors/ErrorAlert.js +6 -1
  174. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  175. package/dist/lib/hooks/index.d.ts +3 -0
  176. package/dist/lib/hooks/index.js +5 -0
  177. package/dist/lib/hooks/index.js.map +1 -0
  178. package/dist/lib/hooks/useEvent.d.ts +11 -0
  179. package/dist/lib/hooks/useEvent.js +19 -0
  180. package/dist/lib/hooks/useEvent.js.map +1 -0
  181. package/dist/lib/hooks/useEvent.test.js +100 -0
  182. package/dist/lib/hooks/useEvent.test.js.map +1 -0
  183. package/dist/lib/icons.d.ts +1 -0
  184. package/dist/lib/icons.js +1 -0
  185. package/dist/lib/icons.js.map +1 -1
  186. package/dist/lib/oas/graphql/index.d.ts +17 -4
  187. package/dist/lib/oas/graphql/index.js +151 -38
  188. package/dist/lib/oas/graphql/index.js.map +1 -1
  189. package/dist/lib/oas/parser/dereference/index.js +2 -0
  190. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  191. package/dist/lib/oas/parser/index.d.ts +5 -3
  192. package/dist/lib/oas/parser/index.js +0 -22
  193. package/dist/lib/oas/parser/index.js.map +1 -1
  194. package/dist/lib/oas/parser/upgrade/index.js +2 -1
  195. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  196. package/dist/lib/plugins/api-catalog/Catalog.d.ts +4 -2
  197. package/dist/lib/plugins/api-catalog/Catalog.js +16 -26
  198. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
  199. package/dist/lib/plugins/api-catalog/index.d.ts +1 -0
  200. package/dist/lib/plugins/api-catalog/index.js +39 -8
  201. package/dist/lib/plugins/api-catalog/index.js.map +1 -1
  202. package/dist/lib/plugins/api-keys/CreateApiKey.js +7 -3
  203. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  204. package/dist/lib/plugins/api-keys/index.d.ts +1 -0
  205. package/dist/lib/plugins/api-keys/index.js +1 -0
  206. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  207. package/dist/lib/plugins/markdown/MdxPage.d.ts +1 -1
  208. package/dist/lib/plugins/markdown/MdxPage.js +3 -9
  209. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  210. package/dist/lib/plugins/markdown/resolver.d.ts +0 -6
  211. package/dist/lib/plugins/markdown/resolver.js +0 -29
  212. package/dist/lib/plugins/markdown/resolver.js.map +1 -1
  213. package/dist/lib/plugins/openapi/ColorizedParam.js +1 -1
  214. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  215. package/dist/lib/plugins/openapi/Endpoint.js +1 -1
  216. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  217. package/dist/lib/plugins/openapi/{OpenApiRoute.d.ts → OasProvider.d.ts} +1 -2
  218. package/dist/lib/plugins/openapi/OasProvider.js +29 -0
  219. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -0
  220. package/dist/lib/plugins/openapi/OperationList.d.ts +2 -2
  221. package/dist/lib/plugins/openapi/OperationList.js +63 -18
  222. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  223. package/dist/lib/plugins/openapi/OperationListItem.d.ts +1 -1
  224. package/dist/lib/plugins/openapi/OperationListItem.js +7 -12
  225. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  226. package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
  227. package/dist/lib/plugins/openapi/ParamInfos.js +42 -0
  228. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
  229. package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -1
  230. package/dist/lib/plugins/openapi/ParameterList.js +3 -2
  231. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  232. package/dist/lib/plugins/openapi/ParameterListItem.js +9 -4
  233. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  234. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +1 -1
  235. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +3 -1
  236. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  237. package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
  238. package/dist/lib/plugins/openapi/SchemaList.js +52 -0
  239. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
  240. package/dist/lib/plugins/openapi/Sidecar.js +39 -10
  241. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  242. package/dist/lib/plugins/openapi/SidecarExamples.js +2 -2
  243. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  244. package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
  245. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
  246. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +1 -1
  247. package/dist/lib/plugins/openapi/client/GraphQLClient.js +1 -1
  248. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -1
  249. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +6 -2
  250. package/dist/lib/plugins/openapi/client/useCreateQuery.js +6 -5
  251. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
  252. package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
  253. package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
  254. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
  255. package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
  256. package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
  257. package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
  258. package/dist/lib/plugins/openapi/graphql/gql.d.ts +9 -5
  259. package/dist/lib/plugins/openapi/graphql/gql.js +5 -15
  260. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  261. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +108 -55
  262. package/dist/lib/plugins/openapi/graphql/graphql.js +59 -34
  263. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  264. package/dist/lib/plugins/openapi/index.d.ts +10 -7
  265. package/dist/lib/plugins/openapi/index.js +56 -142
  266. package/dist/lib/plugins/openapi/index.js.map +1 -1
  267. package/dist/lib/plugins/openapi/interfaces.d.ts +36 -10
  268. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +2 -2
  269. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +1 -5
  270. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
  271. package/dist/lib/plugins/openapi/playground/Headers.js +1 -1
  272. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  273. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
  274. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +14 -0
  275. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
  276. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
  277. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +10 -0
  278. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
  279. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
  280. package/dist/lib/plugins/openapi/playground/PathParams.js +3 -2
  281. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  282. package/dist/lib/plugins/openapi/playground/Playground.d.ts +14 -3
  283. package/dist/lib/plugins/openapi/playground/Playground.js +84 -30
  284. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  285. package/dist/lib/plugins/openapi/playground/QueryParams.js +1 -1
  286. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  287. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
  288. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
  289. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
  290. package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
  291. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
  292. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
  293. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +1 -1
  294. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +1 -1
  295. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +20 -14
  296. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
  297. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +6 -4
  298. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +4 -3
  299. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
  300. package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
  301. package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.js +1 -1
  302. package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
  303. package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.test.js +26 -6
  304. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
  305. package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.d.ts +3 -1
  306. package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.js +1 -1
  307. package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
  308. package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.test.js +53 -25
  309. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
  310. package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.d.ts +3 -1
  311. package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.js +1 -1
  312. package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
  313. package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
  314. package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
  315. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
  316. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +1 -2
  317. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +2 -2
  318. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
  319. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
  320. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
  321. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
  322. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -1
  323. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
  324. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
  325. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
  326. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +12 -0
  327. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
  328. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +2 -4
  329. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +18 -13
  330. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
  331. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +1 -2
  332. package/dist/lib/plugins/openapi/schema/SchemaView.js +33 -48
  333. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  334. package/dist/lib/plugins/openapi/schema/utils.d.ts +1 -0
  335. package/dist/lib/plugins/openapi/schema/utils.js +3 -1
  336. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  337. package/dist/lib/plugins/openapi/state.d.ts +25 -0
  338. package/dist/lib/plugins/openapi/state.js +18 -0
  339. package/dist/lib/plugins/openapi/state.js.map +1 -0
  340. package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +9 -0
  341. package/dist/lib/plugins/openapi/util/createSidebarCategory.js +23 -0
  342. package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +1 -0
  343. package/dist/lib/plugins/openapi/util/getRoutes.d.ts +10 -0
  344. package/dist/lib/plugins/openapi/util/getRoutes.js +80 -0
  345. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -0
  346. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +2 -0
  347. package/dist/lib/plugins/openapi/util/methodColorMap.js +10 -0
  348. package/dist/lib/plugins/openapi/util/methodColorMap.js.map +1 -0
  349. package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
  350. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +80 -0
  351. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
  352. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
  353. package/dist/lib/plugins/search-pagefind/ResultList.js +32 -0
  354. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
  355. package/dist/lib/plugins/search-pagefind/get-results.d.ts +10 -0
  356. package/dist/lib/plugins/search-pagefind/get-results.js +42 -0
  357. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
  358. package/dist/lib/plugins/search-pagefind/index.d.ts +6 -0
  359. package/dist/lib/plugins/search-pagefind/index.js +9 -0
  360. package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
  361. package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
  362. package/dist/lib/plugins/search-pagefind/types.js +2 -0
  363. package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
  364. package/dist/lib/ui/Badge.d.ts +1 -1
  365. package/dist/lib/ui/Button.d.ts +2 -2
  366. package/dist/lib/ui/Button.js +2 -1
  367. package/dist/lib/ui/Button.js.map +1 -1
  368. package/dist/lib/ui/Callout.d.ts +2 -1
  369. package/dist/lib/ui/Callout.js +3 -2
  370. package/dist/lib/ui/Callout.js.map +1 -1
  371. package/dist/lib/ui/Checkbox.d.ts +2 -8
  372. package/dist/lib/ui/Checkbox.js +1 -13
  373. package/dist/lib/ui/Checkbox.js.map +1 -1
  374. package/dist/lib/ui/Command.d.ts +7 -1
  375. package/dist/lib/ui/Command.js +2 -2
  376. package/dist/lib/ui/Command.js.map +1 -1
  377. package/dist/lib/ui/Form.d.ts +1 -1
  378. package/dist/lib/ui/Select.js +1 -1
  379. package/dist/lib/ui/Select.js.map +1 -1
  380. package/dist/lib/ui/Stepper.d.ts +3 -0
  381. package/dist/lib/ui/Stepper.js +7 -0
  382. package/dist/lib/ui/Stepper.js.map +1 -0
  383. package/dist/lib/ui/SyntaxHighlight.d.ts +15 -0
  384. package/dist/lib/ui/SyntaxHighlight.js +62 -0
  385. package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
  386. package/dist/lib/ui/util.d.ts +2 -0
  387. package/dist/lib/ui/util.js +3 -0
  388. package/dist/lib/ui/util.js.map +1 -0
  389. package/dist/lib/util/MdxComponents.d.ts +6 -2
  390. package/dist/lib/util/MdxComponents.js +8 -3
  391. package/dist/lib/util/MdxComponents.js.map +1 -1
  392. package/dist/lib/util/detectOS.d.ts +1 -0
  393. package/dist/lib/util/detectOS.js +11 -0
  394. package/dist/lib/util/detectOS.js.map +1 -0
  395. package/dist/lib/util/joinPath.d.ts +3 -0
  396. package/dist/lib/util/joinPath.js +3 -0
  397. package/dist/lib/util/joinPath.js.map +1 -1
  398. package/dist/lib/util/traverse.d.ts +2 -8
  399. package/dist/lib/util/traverse.js +2 -2
  400. package/dist/lib/util/traverse.js.map +1 -1
  401. package/dist/lib/util/types.d.ts +7 -0
  402. package/dist/lib/util/types.js +2 -0
  403. package/dist/lib/util/types.js.map +1 -0
  404. package/dist/lib/util/useLatest.d.ts +1 -0
  405. package/dist/lib/util/useLatest.js +15 -0
  406. package/dist/lib/util/useLatest.js.map +1 -0
  407. package/dist/lib/util/useOnScreen.d.ts +3 -2
  408. package/dist/lib/util/useOnScreen.js +3 -3
  409. package/dist/lib/util/useOnScreen.js.map +1 -1
  410. package/dist/lib/util/useScrollToAnchor.js +26 -20
  411. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  412. package/dist/vite/api/schema-codegen.d.ts +1 -1
  413. package/dist/vite/api/schema-codegen.js +34 -11
  414. package/dist/vite/api/schema-codegen.js.map +1 -1
  415. package/dist/vite/api/schema-codegen.test.js +66 -0
  416. package/dist/vite/api/schema-codegen.test.js.map +1 -1
  417. package/dist/vite/build.js +27 -16
  418. package/dist/vite/build.js.map +1 -1
  419. package/dist/vite/config.d.ts +2 -5
  420. package/dist/vite/config.js +66 -70
  421. package/dist/vite/config.js.map +1 -1
  422. package/dist/vite/config.test.js +1 -1
  423. package/dist/vite/config.test.js.map +1 -1
  424. package/dist/vite/create-pagefind-index.d.ts +4 -0
  425. package/dist/vite/create-pagefind-index.js +12 -0
  426. package/dist/vite/create-pagefind-index.js.map +1 -0
  427. package/dist/vite/css/plugin.d.ts +2 -2
  428. package/dist/vite/css/plugin.js.map +1 -1
  429. package/dist/vite/dev-server.d.ts +4 -2
  430. package/dist/vite/dev-server.js +42 -12
  431. package/dist/vite/dev-server.js.map +1 -1
  432. package/dist/vite/error-handler.d.ts +1 -1
  433. package/dist/vite/error-handler.js +1 -1
  434. package/dist/vite/error-handler.js.map +1 -1
  435. package/dist/vite/output.d.ts +14 -2
  436. package/dist/vite/output.js +12 -14
  437. package/dist/vite/output.js.map +1 -1
  438. package/dist/vite/plugin-api-keys.d.ts +2 -2
  439. package/dist/vite/plugin-api-keys.js +5 -5
  440. package/dist/vite/plugin-api-keys.js.map +1 -1
  441. package/dist/vite/plugin-api.d.ts +2 -2
  442. package/dist/vite/plugin-api.js +98 -54
  443. package/dist/vite/plugin-api.js.map +1 -1
  444. package/dist/vite/plugin-auth.d.ts +2 -2
  445. package/dist/vite/plugin-auth.js +3 -3
  446. package/dist/vite/plugin-auth.js.map +1 -1
  447. package/dist/vite/plugin-component.d.ts +2 -2
  448. package/dist/vite/plugin-component.js +7 -2
  449. package/dist/vite/plugin-component.js.map +1 -1
  450. package/dist/vite/plugin-config-reload.d.ts +4 -3
  451. package/dist/vite/plugin-config-reload.js +13 -6
  452. package/dist/vite/plugin-config-reload.js.map +1 -1
  453. package/dist/vite/plugin-config.d.ts +2 -2
  454. package/dist/vite/plugin-config.js +9 -5
  455. package/dist/vite/plugin-config.js.map +1 -1
  456. package/dist/vite/plugin-custom-pages.d.ts +2 -2
  457. package/dist/vite/plugin-custom-pages.js +3 -3
  458. package/dist/vite/plugin-custom-pages.js.map +1 -1
  459. package/dist/vite/plugin-docs.d.ts +3 -3
  460. package/dist/vite/plugin-docs.js +23 -6
  461. package/dist/vite/plugin-docs.js.map +1 -1
  462. package/dist/vite/plugin-frontmatter.d.ts +2 -2
  463. package/dist/vite/plugin-frontmatter.js +5 -4
  464. package/dist/vite/plugin-frontmatter.js.map +1 -1
  465. package/dist/vite/plugin-mdx.d.ts +2 -2
  466. package/dist/vite/plugin-mdx.js +32 -27
  467. package/dist/vite/plugin-mdx.js.map +1 -1
  468. package/dist/vite/plugin-redirect.d.ts +2 -2
  469. package/dist/vite/plugin-redirect.js +3 -3
  470. package/dist/vite/plugin-redirect.js.map +1 -1
  471. package/dist/vite/plugin-search.d.ts +2 -2
  472. package/dist/vite/plugin-search.js +5 -1
  473. package/dist/vite/plugin-search.js.map +1 -1
  474. package/dist/vite/plugin-sidebar.d.ts +3 -2
  475. package/dist/vite/plugin-sidebar.js +15 -6
  476. package/dist/vite/plugin-sidebar.js.map +1 -1
  477. package/dist/vite/plugin-theme-css.d.ts +2 -2
  478. package/dist/vite/plugin-theme-css.js.map +1 -1
  479. package/dist/vite/plugin.d.ts +2 -2
  480. package/dist/vite/plugin.js.map +1 -1
  481. package/dist/vite/prerender/FileWritingResponse.d.ts +25 -0
  482. package/dist/vite/prerender/FileWritingResponse.js +51 -0
  483. package/dist/vite/prerender/FileWritingResponse.js.map +1 -0
  484. package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
  485. package/dist/vite/prerender/InMemoryResponse.js +32 -0
  486. package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
  487. package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
  488. package/dist/vite/prerender/PrerenderResponse.js +2 -0
  489. package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
  490. package/dist/vite/prerender/prerender.d.ts +15 -0
  491. package/dist/vite/prerender/prerender.js +109 -0
  492. package/dist/vite/prerender/prerender.js.map +1 -0
  493. package/dist/vite/prerender/worker.d.ts +13 -0
  494. package/dist/vite/prerender/worker.js +59 -0
  495. package/dist/vite/prerender/worker.js.map +1 -0
  496. package/dist/vite/reporter.d.ts +3 -0
  497. package/dist/vite/reporter.js +33 -0
  498. package/dist/vite/reporter.js.map +1 -0
  499. package/dist/vite/sitemap.js +2 -1
  500. package/dist/vite/sitemap.js.map +1 -1
  501. package/dist/zuplo/enrich-with-zuplo.d.ts +3 -3
  502. package/dist/zuplo/enrich-with-zuplo.js +18 -17
  503. package/dist/zuplo/enrich-with-zuplo.js.map +1 -1
  504. package/dist/zuplo/env.d.ts +26 -0
  505. package/dist/zuplo/env.js +17 -0
  506. package/dist/zuplo/env.js.map +1 -1
  507. package/dist/zuplo/with-zuplo-processors.d.ts +2 -2
  508. package/dist/zuplo/with-zuplo-processors.js +6 -6
  509. package/dist/zuplo/with-zuplo-processors.js.map +1 -1
  510. package/dist/zuplo/with-zuplo.d.ts +4 -1
  511. package/dist/zuplo/with-zuplo.js +6 -5
  512. package/dist/zuplo/with-zuplo.js.map +1 -1
  513. package/lib/{AuthenticationPlugin-DeEA69mE.js → AuthenticationPlugin-CJOFRBk3.js} +4 -4
  514. package/lib/{AuthenticationPlugin-DeEA69mE.js.map → AuthenticationPlugin-CJOFRBk3.js.map} +1 -1
  515. package/lib/Button-BBNrKpQd.js +49 -0
  516. package/lib/Button-BBNrKpQd.js.map +1 -0
  517. package/lib/Callout-D3Ja4OPX.js +230 -0
  518. package/lib/Callout-D3Ja4OPX.js.map +1 -0
  519. package/lib/{CategoryHeading-MYL1u_6K.js → CategoryHeading-D06WK_Wo.js} +3 -3
  520. package/lib/{CategoryHeading-MYL1u_6K.js.map → CategoryHeading-D06WK_Wo.js.map} +1 -1
  521. package/lib/Dialog-ByYz4ABw.js +98 -0
  522. package/lib/Dialog-ByYz4ABw.js.map +1 -0
  523. package/lib/Drawer-CEwbkLDb.js +1133 -0
  524. package/lib/Drawer-CEwbkLDb.js.map +1 -0
  525. package/lib/{Markdown-8mv9nhGd.js → Markdown-C5h6bxbE.js} +8031 -6095
  526. package/lib/Markdown-C5h6bxbE.js.map +1 -0
  527. package/lib/MdxPage-DhGqXQTK.js +85 -0
  528. package/lib/MdxPage-DhGqXQTK.js.map +1 -0
  529. package/lib/OasProvider-q0ncKgHr.js +34 -0
  530. package/lib/OasProvider-q0ncKgHr.js.map +1 -0
  531. package/lib/OperationList-CW4jENLV.js +5069 -0
  532. package/lib/OperationList-CW4jENLV.js.map +1 -0
  533. package/lib/Pagination-DsG3YIT_.js +48 -0
  534. package/lib/Pagination-DsG3YIT_.js.map +1 -0
  535. package/lib/{index.esm-9-TF9KQB.js → RouteGuard-BZ_VsiXc.js} +196 -144
  536. package/lib/RouteGuard-BZ_VsiXc.js.map +1 -0
  537. package/lib/SchemaList-n24-qSa5.js +148 -0
  538. package/lib/SchemaList-n24-qSa5.js.map +1 -0
  539. package/lib/SchemaView-DCSWtnYr.js +357 -0
  540. package/lib/SchemaView-DCSWtnYr.js.map +1 -0
  541. package/lib/{Select-BcAbBUmk.js → Select-Dg5R11Dx.js} +71 -71
  542. package/lib/{Select-BcAbBUmk.js.map → Select-Dg5R11Dx.js.map} +1 -1
  543. package/lib/SlotletProvider-VUmTNmLZ.js +340 -0
  544. package/lib/SlotletProvider-VUmTNmLZ.js.map +1 -0
  545. package/lib/Spinner-mNLZ6awP.js +7 -0
  546. package/lib/Spinner-mNLZ6awP.js.map +1 -0
  547. package/lib/{SyntaxHighlight-B0L4SC_N.js → SyntaxHighlight-CxhyyMkF.js} +500 -596
  548. package/lib/SyntaxHighlight-CxhyyMkF.js.map +1 -0
  549. package/lib/Toc-BK39DQvI.js +92 -0
  550. package/lib/Toc-BK39DQvI.js.map +1 -0
  551. package/lib/{_commonjsHelpers-BkfeUUK-.js → _commonjsHelpers-B4e78b8K.js} +2 -2
  552. package/lib/_commonjsHelpers-B4e78b8K.js.map +1 -0
  553. package/lib/{chunk-SYFQ2XB5-QijJrSf0.js → chunk-KNED5TY2-BUPjb3LQ.js} +584 -583
  554. package/lib/chunk-KNED5TY2-BUPjb3LQ.js.map +1 -0
  555. package/lib/{circular-DxaIIlWD.js → circular-ByJI6Mci.js} +5461 -4993
  556. package/lib/circular-ByJI6Mci.js.map +1 -0
  557. package/lib/context-Lrf2Y9bR.js +22 -0
  558. package/lib/{context-rwLGh-6_.js.map → context-Lrf2Y9bR.js.map} +1 -1
  559. package/lib/{createServer-E3cXjB0P.js → createServer-DLN7APz_.js} +4641 -4927
  560. package/lib/createServer-DLN7APz_.js.map +1 -0
  561. package/lib/hook-pPrHCB6G.js +1478 -0
  562. package/lib/hook-pPrHCB6G.js.map +1 -0
  563. package/lib/index-Bn6Lc9tq.js +9 -0
  564. package/lib/index-Bn6Lc9tq.js.map +1 -0
  565. package/lib/index-CBpciIfE.js +2054 -0
  566. package/lib/index-CBpciIfE.js.map +1 -0
  567. package/lib/index-CPNSgwSb.js +36 -0
  568. package/lib/{index-Djenk2Hj.js.map → index-CPNSgwSb.js.map} +1 -1
  569. package/lib/index-CuBIgTKC.js +316 -0
  570. package/lib/index-CuBIgTKC.js.map +1 -0
  571. package/lib/{index-Dl3Yl0yb.js → index-DcHeSvkE.js} +51 -38
  572. package/lib/index-DcHeSvkE.js.map +1 -0
  573. package/lib/index-DwT-v3zK.js +86 -0
  574. package/lib/index-DwT-v3zK.js.map +1 -0
  575. package/lib/{index-CjJS0l4l.js → index-LNp6rxyU.js} +2 -2
  576. package/lib/{index-CjJS0l4l.js.map → index-LNp6rxyU.js.map} +1 -1
  577. package/lib/index-bu-rfaLA.js +2227 -0
  578. package/lib/index-bu-rfaLA.js.map +1 -0
  579. package/lib/index.esm-D2ZUREQN.js +1216 -0
  580. package/lib/index.esm-D2ZUREQN.js.map +1 -0
  581. package/lib/jsx-runtime-C5mzlN2N.js +285 -0
  582. package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
  583. package/lib/mutation-Csa9eQDM.js +211 -0
  584. package/lib/mutation-Csa9eQDM.js.map +1 -0
  585. package/lib/objectEntries-yMIkr2mI.js +5 -0
  586. package/lib/objectEntries-yMIkr2mI.js.map +1 -0
  587. package/lib/prism-bash.min-HHIMdNJ_.js.map +1 -1
  588. package/lib/{prism-csharp.min-bQAo2pmx.js → prism-csharp.min-C43x1RY2.js} +2 -2
  589. package/lib/{prism-csharp.min-bQAo2pmx.js.map → prism-csharp.min-C43x1RY2.js.map} +1 -1
  590. package/lib/{prism-java.min-BpvsOuIa.js → prism-java.min-CQzr40NQ.js} +2 -2
  591. package/lib/{prism-java.min-BpvsOuIa.js.map → prism-java.min-CQzr40NQ.js.map} +1 -1
  592. package/lib/prism-javascript.min-CEqHqgbm.js.map +1 -1
  593. package/lib/prism-json.min-B1GJqK1k.js.map +1 -1
  594. package/lib/prism-jsstacktrace.min-BfobCF2F.js +2 -0
  595. package/lib/prism-jsstacktrace.min-BfobCF2F.js.map +1 -0
  596. package/lib/prism-markdown.min-C0Qn0m-5.js.map +1 -1
  597. package/lib/prism-markup-BNGj0Tvm.js.map +1 -1
  598. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +1 -1
  599. package/lib/{prism-ruby.min-Dx9KO9ds.js → prism-ruby.min-L9OdQ6tU.js} +2 -2
  600. package/lib/{prism-ruby.min-Dx9KO9ds.js.map → prism-ruby.min-L9OdQ6tU.js.map} +1 -1
  601. package/lib/{prism-typescript.min-CD7H2IYQ.js → prism-typescript.min-qTySPvCh.js} +2 -2
  602. package/lib/{prism-typescript.min-CD7H2IYQ.js.map → prism-typescript.min-qTySPvCh.js.map} +1 -1
  603. package/lib/processors/removeExtensions.js +11 -0
  604. package/lib/processors/removeExtensions.js.map +1 -0
  605. package/lib/{post-processors → processors}/removeParameters.js +1 -1
  606. package/lib/processors/removeParameters.js.map +1 -0
  607. package/lib/{post-processors → processors}/removePaths.js +1 -1
  608. package/lib/processors/removePaths.js.map +1 -0
  609. package/lib/{post-processors → processors}/traverse.js +2 -2
  610. package/lib/processors/traverse.js.map +1 -0
  611. package/lib/ui/Accordion.js +1 -1
  612. package/lib/ui/ActionButton.js +11 -10
  613. package/lib/ui/ActionButton.js.map +1 -1
  614. package/lib/ui/Alert.js +2 -2
  615. package/lib/ui/AlertDialog.js +1 -1
  616. package/lib/ui/Badge.js +2 -2
  617. package/lib/ui/Breadcrumb.js +4 -4
  618. package/lib/ui/Button.js +13 -12
  619. package/lib/ui/Button.js.map +1 -1
  620. package/lib/ui/Callout.js +40 -21
  621. package/lib/ui/Callout.js.map +1 -1
  622. package/lib/ui/Card.js +1 -1
  623. package/lib/ui/Carousel.js +207 -207
  624. package/lib/ui/Carousel.js.map +1 -1
  625. package/lib/ui/Checkbox.js +16 -26
  626. package/lib/ui/Checkbox.js.map +1 -1
  627. package/lib/ui/Command.js +105 -78
  628. package/lib/ui/Command.js.map +1 -1
  629. package/lib/ui/Dialog.js +1 -1
  630. package/lib/ui/Drawer.js +14 -1151
  631. package/lib/ui/Drawer.js.map +1 -1
  632. package/lib/ui/DropdownMenu.js +1 -1
  633. package/lib/ui/Form.js +5 -5
  634. package/lib/ui/HoverCard.js +1 -1
  635. package/lib/ui/Input.js +1 -1
  636. package/lib/ui/Label.js +2 -2
  637. package/lib/ui/Pagination.js +10 -10
  638. package/lib/ui/Popover.js +1 -1
  639. package/lib/ui/Progress.js +1 -1
  640. package/lib/ui/RadioGroup.js +1 -1
  641. package/lib/ui/ScrollArea.js +1 -1
  642. package/lib/ui/Select.js +2 -2
  643. package/lib/ui/Select.js.map +1 -1
  644. package/lib/ui/Skeleton.js +1 -1
  645. package/lib/ui/Slider.js +1 -1
  646. package/lib/ui/Stepper.js +6 -0
  647. package/lib/ui/Stepper.js.map +1 -0
  648. package/lib/ui/Switch.js +1 -1
  649. package/lib/ui/SyntaxHighlight.js +11 -0
  650. package/lib/ui/SyntaxHighlight.js.map +1 -0
  651. package/lib/ui/Tabs.js +1 -1
  652. package/lib/ui/Textarea.js +1 -1
  653. package/lib/ui/Toggle.js +2 -2
  654. package/lib/ui/ToggleGroup.js +1 -1
  655. package/lib/ui/Tooltip.js +1 -1
  656. package/lib/ui/util.js +6 -0
  657. package/lib/ui/util.js.map +1 -0
  658. package/lib/{useExposedProps-Bbf99zic.js → useExposedProps-Dq2yUQIG.js} +2 -2
  659. package/lib/{useExposedProps-Bbf99zic.js.map → useExposedProps-Dq2yUQIG.js.map} +1 -1
  660. package/lib/useLatest-hmRS46UF.js +11 -0
  661. package/lib/useLatest-hmRS46UF.js.map +1 -0
  662. package/lib/zudoku.auth-auth0.js +15 -14
  663. package/lib/zudoku.auth-auth0.js.map +1 -1
  664. package/lib/zudoku.auth-clerk.js +67 -49
  665. package/lib/zudoku.auth-clerk.js.map +1 -1
  666. package/lib/zudoku.auth-openid.js +370 -405
  667. package/lib/zudoku.auth-openid.js.map +1 -1
  668. package/lib/zudoku.components.js +33 -1303
  669. package/lib/zudoku.components.js.map +1 -1
  670. package/lib/zudoku.hooks.js +19 -0
  671. package/lib/zudoku.hooks.js.map +1 -0
  672. package/lib/zudoku.icons.js +10 -0
  673. package/lib/zudoku.icons.js.map +1 -1
  674. package/lib/zudoku.plugin-api-catalog.js +106 -112
  675. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  676. package/lib/zudoku.plugin-api-keys.js +108 -106
  677. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  678. package/lib/zudoku.plugin-custom-pages.js +3 -3
  679. package/lib/zudoku.plugin-markdown.js +23 -44
  680. package/lib/zudoku.plugin-markdown.js.map +1 -1
  681. package/lib/zudoku.plugin-openapi.js +6 -7
  682. package/lib/zudoku.plugin-openapi.js.map +1 -1
  683. package/lib/zudoku.plugin-redirect.js +1 -1
  684. package/lib/zudoku.plugin-search-inkeep.js +9 -9
  685. package/lib/zudoku.plugin-search-pagefind.js +233 -0
  686. package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
  687. package/lib/zudoku.plugins.js +14 -0
  688. package/lib/zudoku.plugins.js.map +1 -0
  689. package/package.json +100 -74
  690. package/src/app/entry.client.tsx +10 -0
  691. package/src/app/entry.server.tsx +23 -13
  692. package/src/app/main.css +106 -58
  693. package/src/app/main.tsx +15 -2
  694. package/src/app/tailwind.ts +20 -0
  695. package/src/lib/MissingIcon.tsx +22 -0
  696. package/src/lib/authentication/authentication.ts +2 -0
  697. package/src/lib/authentication/hook.ts +12 -1
  698. package/src/lib/authentication/providers/auth0.tsx +3 -2
  699. package/src/lib/authentication/providers/clerk.tsx +32 -8
  700. package/src/lib/authentication/providers/openid.tsx +31 -15
  701. package/src/lib/authentication/providers/supabase.tsx +157 -0
  702. package/src/lib/authentication/state.ts +9 -37
  703. package/src/lib/components/AnchorLink.tsx +9 -7
  704. package/src/lib/components/Banner.tsx +1 -0
  705. package/src/lib/components/Bootstrap.tsx +13 -6
  706. package/src/lib/components/BuildCheck.tsx +60 -0
  707. package/src/lib/components/Footer.tsx +139 -0
  708. package/src/lib/components/Header.tsx +12 -8
  709. package/src/lib/components/Heading.tsx +1 -1
  710. package/src/lib/components/InlineCode.tsx +13 -16
  711. package/src/lib/components/Layout.tsx +27 -65
  712. package/src/lib/components/Main.tsx +50 -0
  713. package/src/lib/components/MobileTopNavigation.tsx +27 -18
  714. package/src/lib/components/Pagination.tsx +50 -0
  715. package/src/lib/components/Search.tsx +14 -3
  716. package/src/lib/components/ThemeSwitch.tsx +28 -8
  717. package/src/lib/components/TopNavigation.tsx +51 -24
  718. package/src/lib/components/Zudoku.tsx +18 -7
  719. package/src/lib/components/cache.ts +8 -0
  720. package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
  721. package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
  722. package/src/lib/components/context/ViewportAnchorContext.tsx +6 -15
  723. package/src/lib/components/context/ZudokuContext.ts +30 -10
  724. package/src/lib/components/index.ts +4 -0
  725. package/src/lib/components/navigation/PoweredByZudoku.tsx +28 -0
  726. package/src/lib/components/navigation/Sidebar.tsx +37 -44
  727. package/src/lib/components/navigation/SidebarBadge.tsx +4 -1
  728. package/src/lib/components/navigation/SidebarCategory.tsx +15 -12
  729. package/src/lib/components/navigation/SidebarItem.tsx +22 -29
  730. package/src/lib/components/navigation/SidebarWrapper.tsx +42 -23
  731. package/src/lib/{plugins/markdown → components/navigation}/Toc.tsx +5 -14
  732. package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
  733. package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
  734. package/src/lib/core/RouteGuard.tsx +73 -12
  735. package/src/lib/core/ZudokuContext.ts +64 -13
  736. package/src/lib/core/plugins.ts +29 -7
  737. package/src/lib/errors/ErrorAlert.tsx +24 -17
  738. package/src/lib/hooks/index.ts +5 -0
  739. package/src/lib/hooks/useEvent.test.tsx +149 -0
  740. package/src/lib/hooks/useEvent.ts +41 -0
  741. package/src/lib/icons.ts +1 -0
  742. package/src/lib/oas/graphql/index.ts +206 -54
  743. package/src/lib/oas/parser/dereference/index.ts +2 -0
  744. package/src/lib/oas/parser/index.ts +7 -29
  745. package/src/lib/oas/parser/upgrade/index.ts +2 -1
  746. package/src/lib/plugins/api-catalog/Catalog.tsx +50 -100
  747. package/src/lib/plugins/api-catalog/index.tsx +66 -15
  748. package/src/lib/plugins/api-keys/CreateApiKey.tsx +7 -3
  749. package/src/lib/plugins/api-keys/index.tsx +3 -0
  750. package/src/lib/plugins/markdown/MdxPage.tsx +15 -47
  751. package/src/lib/plugins/markdown/resolver.ts +0 -33
  752. package/src/lib/plugins/openapi/ColorizedParam.tsx +1 -1
  753. package/src/lib/plugins/openapi/Endpoint.tsx +1 -1
  754. package/src/lib/plugins/openapi/OasProvider.tsx +51 -0
  755. package/src/lib/plugins/openapi/OperationList.tsx +171 -81
  756. package/src/lib/plugins/openapi/OperationListItem.tsx +118 -104
  757. package/src/lib/plugins/openapi/ParamInfos.tsx +87 -0
  758. package/src/lib/plugins/openapi/ParameterList.tsx +4 -0
  759. package/src/lib/plugins/openapi/ParameterListItem.tsx +35 -23
  760. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +8 -1
  761. package/src/lib/plugins/openapi/SchemaList.tsx +151 -0
  762. package/src/lib/plugins/openapi/Sidecar.tsx +50 -14
  763. package/src/lib/plugins/openapi/SidecarExamples.tsx +1 -2
  764. package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
  765. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +1 -1
  766. package/src/lib/plugins/openapi/client/useCreateQuery.ts +13 -5
  767. package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
  768. package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
  769. package/src/lib/plugins/openapi/graphql/gql.ts +34 -17
  770. package/src/lib/plugins/openapi/graphql/graphql.ts +172 -86
  771. package/src/lib/plugins/openapi/index.tsx +82 -177
  772. package/src/lib/plugins/openapi/interfaces.ts +44 -15
  773. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +30 -32
  774. package/src/lib/plugins/openapi/playground/Headers.tsx +0 -1
  775. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +74 -0
  776. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +54 -0
  777. package/src/lib/plugins/openapi/playground/PathParams.tsx +8 -2
  778. package/src/lib/plugins/openapi/playground/Playground.tsx +199 -110
  779. package/src/lib/plugins/openapi/playground/QueryParams.tsx +0 -1
  780. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
  781. package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
  782. package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +1 -1
  783. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +25 -5
  784. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +67 -45
  785. package/src/lib/plugins/openapi/{post-processors → processors}/removeExtensions.test.ts +29 -9
  786. package/src/lib/plugins/openapi/{post-processors → processors}/removeExtensions.ts +5 -3
  787. package/src/lib/plugins/openapi/{post-processors → processors}/removeParameters.test.ts +67 -33
  788. package/src/lib/plugins/openapi/{post-processors → processors}/removeParameters.ts +5 -3
  789. package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
  790. package/src/lib/plugins/openapi/{post-processors → processors}/removePaths.ts +5 -3
  791. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -8
  792. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
  793. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +6 -3
  794. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +36 -0
  795. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +47 -50
  796. package/src/lib/plugins/openapi/schema/SchemaView.tsx +84 -138
  797. package/src/lib/plugins/openapi/schema/utils.ts +7 -1
  798. package/src/lib/plugins/openapi/state.ts +36 -0
  799. package/src/lib/plugins/openapi/util/createSidebarCategory.tsx +37 -0
  800. package/src/lib/plugins/openapi/util/getRoutes.tsx +126 -0
  801. package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
  802. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +164 -0
  803. package/src/lib/plugins/search-pagefind/ResultList.tsx +105 -0
  804. package/src/lib/plugins/search-pagefind/get-results.tsx +75 -0
  805. package/src/lib/plugins/search-pagefind/index.tsx +21 -0
  806. package/src/lib/plugins/search-pagefind/types.ts +118 -0
  807. package/src/lib/ui/Button.tsx +4 -2
  808. package/src/lib/ui/Callout.tsx +29 -10
  809. package/src/lib/ui/Checkbox.tsx +8 -24
  810. package/src/lib/ui/Command.tsx +25 -3
  811. package/src/lib/ui/Select.tsx +1 -1
  812. package/src/lib/ui/Stepper.tsx +8 -0
  813. package/src/lib/ui/SyntaxHighlight.tsx +186 -0
  814. package/src/lib/ui/util.tsx +3 -0
  815. package/src/lib/util/MdxComponents.tsx +9 -4
  816. package/src/lib/util/detectOS.ts +9 -0
  817. package/src/lib/util/joinPath.tsx +3 -0
  818. package/src/lib/util/traverse.ts +4 -8
  819. package/src/lib/util/types.ts +7 -0
  820. package/src/lib/util/useLatest.ts +18 -0
  821. package/src/lib/util/useOnScreen.ts +6 -4
  822. package/src/lib/util/useScrollToAnchor.ts +30 -20
  823. package/client.d.ts +0 -8
  824. package/dist/lib/components/SyntaxHighlight.d.ts +0 -12
  825. package/dist/lib/components/SyntaxHighlight.js +0 -53
  826. package/dist/lib/components/SyntaxHighlight.js.map +0 -1
  827. package/dist/lib/components/context/PluginSystem.js +0 -2
  828. package/dist/lib/components/context/PluginSystem.js.map +0 -1
  829. package/dist/lib/plugins/markdown/Toc.js.map +0 -1
  830. package/dist/lib/plugins/openapi/OpenApiRoute.js +0 -25
  831. package/dist/lib/plugins/openapi/OpenApiRoute.js.map +0 -1
  832. package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +0 -7
  833. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +0 -1
  834. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +0 -1
  835. package/dist/lib/plugins/openapi/post-processors/removeParameters.js.map +0 -1
  836. package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js.map +0 -1
  837. package/dist/lib/plugins/openapi/post-processors/removePaths.js.map +0 -1
  838. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js +0 -104
  839. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js.map +0 -1
  840. package/dist/lib/plugins/openapi/post-processors/traverse.js.map +0 -1
  841. package/dist/vite/prerender.d.ts +0 -22
  842. package/dist/vite/prerender.js +0 -89
  843. package/dist/vite/prerender.js.map +0 -1
  844. package/lib/Markdown-8mv9nhGd.js.map +0 -1
  845. package/lib/MdxPage-BalfwlsD.js +0 -193
  846. package/lib/MdxPage-BalfwlsD.js.map +0 -1
  847. package/lib/OpenApiRoute-ULLXjfro.js +0 -36
  848. package/lib/OpenApiRoute-ULLXjfro.js.map +0 -1
  849. package/lib/OperationList-B3VX94x4.js +0 -5179
  850. package/lib/OperationList-B3VX94x4.js.map +0 -1
  851. package/lib/SlotletProvider-D0mFmGJu.js +0 -221
  852. package/lib/SlotletProvider-D0mFmGJu.js.map +0 -1
  853. package/lib/Spinner-BlzrEEk1.js +0 -51
  854. package/lib/Spinner-BlzrEEk1.js.map +0 -1
  855. package/lib/SyntaxHighlight-B0L4SC_N.js.map +0 -1
  856. package/lib/ZudokuContext-dUyBGMap.js +0 -1229
  857. package/lib/ZudokuContext-dUyBGMap.js.map +0 -1
  858. package/lib/__vite-browser-external-BYRIRx8p.js +0 -9
  859. package/lib/__vite-browser-external-BYRIRx8p.js.map +0 -1
  860. package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
  861. package/lib/chunk-SYFQ2XB5-QijJrSf0.js.map +0 -1
  862. package/lib/circular-DxaIIlWD.js.map +0 -1
  863. package/lib/context-rwLGh-6_.js +0 -22
  864. package/lib/createServer-E3cXjB0P.js.map +0 -1
  865. package/lib/hook-NIpDSpau.js +0 -227
  866. package/lib/hook-NIpDSpau.js.map +0 -1
  867. package/lib/index-B7mqiOei.js +0 -509
  868. package/lib/index-B7mqiOei.js.map +0 -1
  869. package/lib/index-Djenk2Hj.js +0 -36
  870. package/lib/index-Dl3Yl0yb.js.map +0 -1
  871. package/lib/index-P0YUtHIb.js +0 -2065
  872. package/lib/index-P0YUtHIb.js.map +0 -1
  873. package/lib/index.esm-9-TF9KQB.js.map +0 -1
  874. package/lib/index.esm-CrSoEshU.js +0 -1207
  875. package/lib/index.esm-CrSoEshU.js.map +0 -1
  876. package/lib/joinUrl-nLx9pD-Z.js +0 -20
  877. package/lib/joinUrl-nLx9pD-Z.js.map +0 -1
  878. package/lib/jsx-runtime-Bdg6XQ1m.js +0 -446
  879. package/lib/jsx-runtime-Bdg6XQ1m.js.map +0 -1
  880. package/lib/post-processors/removeExtensions.js +0 -11
  881. package/lib/post-processors/removeExtensions.js.map +0 -1
  882. package/lib/post-processors/removeParameters.js.map +0 -1
  883. package/lib/post-processors/removePaths.js.map +0 -1
  884. package/lib/post-processors/traverse.js.map +0 -1
  885. package/lib/state-bfQxaDxU.js +0 -211
  886. package/lib/state-bfQxaDxU.js.map +0 -1
  887. package/lib/useScrollToAnchor-BVCQSeKB.js +0 -286
  888. package/lib/useScrollToAnchor-BVCQSeKB.js.map +0 -1
  889. package/src/lib/components/SyntaxHighlight.tsx +0 -171
  890. package/src/lib/components/context/PluginSystem.ts +0 -0
  891. package/src/lib/plugins/openapi/OpenApiRoute.tsx +0 -51
  892. package/src/lib/plugins/openapi/post-processors/removePaths.test.ts +0 -126
  893. /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
  894. /package/dist/lib/{components/context/PluginSystem.d.ts → hooks/useEvent.test.d.ts} +0 -0
  895. /package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.test.d.ts +0 -0
  896. /package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.test.d.ts +0 -0
  897. /package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.test.d.ts +0 -0
  898. /package/dist/lib/plugins/openapi/{post-processors → processors}/traverse.d.ts +0 -0
  899. /package/dist/lib/plugins/openapi/{post-processors → processors}/traverse.js +0 -0
  900. /package/src/lib/plugins/openapi/{post-processors → processors}/traverse.ts +0 -0
@@ -0,0 +1,2054 @@
1
+ var nr = Object.defineProperty;
2
+ var _e = (t) => {
3
+ throw TypeError(t);
4
+ };
5
+ var ar = (t, e, r) => e in t ? nr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
6
+ var A = (t, e, r) => ar(t, typeof e != "symbol" ? e + "" : e, r), De = (t, e, r) => e.has(t) || _e("Cannot " + r);
7
+ var d = (t, e, r) => (De(t, e, "read from private field"), r ? r.call(t) : e.get(t)), k = (t, e, r) => e.has(t) ? _e("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), M = (t, e, r, n) => (De(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r);
8
+ var ce = (t, e, r, n) => ({
9
+ set _(a) {
10
+ M(t, e, a, r);
11
+ },
12
+ get _() {
13
+ return d(t, e, n);
14
+ }
15
+ });
16
+ import { B as ot, a as it, H as Ee, R as or } from "./RouteGuard-BZ_VsiXc.js";
17
+ import { z as ct, J as ir } from "./index-DwT-v3zK.js";
18
+ import { R as cr, S as lr, u as pe, f as ge, g as ur, L as Te, O as lt } from "./chunk-KNED5TY2-BUPjb3LQ.js";
19
+ import { S as ut, v as dt, Q as dr, n as R, w as qe, x as $e, y as B, z as fr, A as hr, B as mr, C as pr, D as Ie, E as Fe, F as gr, h as Qe, G as ze, H as xr, g as ft, I as ht, m as vr, e as F, l as ae, J as mt, K as yr, f as ee, u as br, j as jr, d as wr, Z as Pr, L as Sr, M as Cr } from "./hook-pPrHCB6G.js";
20
+ import { E as pt, S as _, a as Nr, R as Er } from "./SlotletProvider-VUmTNmLZ.js";
21
+ import { j as s } from "./jsx-runtime-C5mzlN2N.js";
22
+ import { Button as gt } from "./ui/Button.js";
23
+ import { Callout as Tr } from "./ui/Callout.js";
24
+ import { M as Mr } from "./mutation-Csa9eQDM.js";
25
+ import * as K from "react";
26
+ import he, { createContext as Me, StrictMode as xt, useRef as G, useEffect as Q, useState as J, useCallback as W, Suspense as Oe, memo as vt, Component as Or, createElement as Le, useMemo as be, useContext as Ar } from "react";
27
+ import * as kr from "react-dom";
28
+ import { CircleFadingArrowUpIcon as Rr, LoaderCircleIcon as _r, ExternalLink as Dr, CircleXIcon as qr, ChevronRightIcon as $r, SearchIcon as Ir, SunIcon as Fr, MoonIcon as Qr, MenuIcon as zr, PanelLeftIcon as Lr } from "lucide-react";
29
+ import { C as xe } from "./ClientOnly-E7hGysn1.js";
30
+ import { c as O } from "./cn-qaFjX9_3.js";
31
+ import { A as Br, s as Hr, a as Be, b as Kr, H as Ur, P as Yr, c as Zr, V as Vr, M as Wr } from "./Markdown-C5h6bxbE.js";
32
+ import { S as yt } from "./Spinner-mNLZ6awP.js";
33
+ import { C as Gr } from "./CategoryHeading-D06WK_Wo.js";
34
+ import { isSearchPlugin as Xr, isProfileMenuPlugin as Jr, isNavigationPlugin as es, isEventConsumerPlugin as ts, needsInitialization as rs, isApiIdentityPlugin as ss, isMdxProviderPlugin as ns, hasHead as as } from "./zudoku.plugins.js";
35
+ import { o as os } from "./objectEntries-yMIkr2mI.js";
36
+ import { B as Se } from "./Button-BBNrKpQd.js";
37
+ import { DropdownMenu as is, DropdownMenuTrigger as cs, DropdownMenuContent as ls, DropdownMenuLabel as us, DropdownMenuSeparator as je, DropdownMenuSub as ds, DropdownMenuSubTrigger as fs, DropdownMenuPortal as hs, DropdownMenuSubContent as ms, DropdownMenuItem as ps } from "./ui/DropdownMenu.js";
38
+ import { VisuallyHidden as bt } from "@radix-ui/react-visually-hidden";
39
+ import { D as gs, a as xs, b as jt, c as wt, d as z } from "./Drawer-CEwbkLDb.js";
40
+ import { a as vs } from "./index-CPNSgwSb.js";
41
+ const Ce = {}, Pt = he.createContext(Ce);
42
+ function St(t) {
43
+ const e = he.useContext(Pt);
44
+ return he.useMemo(
45
+ function() {
46
+ return typeof t == "function" ? t(e) : { ...e, ...t };
47
+ },
48
+ [e, t]
49
+ );
50
+ }
51
+ function ys(t) {
52
+ let e;
53
+ return t.disableParentContext ? e = typeof t.components == "function" ? t.components(Ce) : t.components || Ce : e = St(t.components), he.createElement(
54
+ Pt.Provider,
55
+ { value: e },
56
+ t.children
57
+ );
58
+ }
59
+ var I, st, bs = (st = class extends ut {
60
+ constructor(e = {}) {
61
+ super();
62
+ k(this, I);
63
+ this.config = e, M(this, I, /* @__PURE__ */ new Map());
64
+ }
65
+ build(e, r, n) {
66
+ const a = r.queryKey, i = r.queryHash ?? dt(a, r);
67
+ let o = this.get(i);
68
+ return o || (o = new dr({
69
+ client: e,
70
+ queryKey: a,
71
+ queryHash: i,
72
+ options: e.defaultQueryOptions(r),
73
+ state: n,
74
+ defaultOptions: e.getQueryDefaults(a)
75
+ }), this.add(o)), o;
76
+ }
77
+ add(e) {
78
+ d(this, I).has(e.queryHash) || (d(this, I).set(e.queryHash, e), this.notify({
79
+ type: "added",
80
+ query: e
81
+ }));
82
+ }
83
+ remove(e) {
84
+ const r = d(this, I).get(e.queryHash);
85
+ r && (e.destroy(), r === e && d(this, I).delete(e.queryHash), this.notify({ type: "removed", query: e }));
86
+ }
87
+ clear() {
88
+ R.batch(() => {
89
+ this.getAll().forEach((e) => {
90
+ this.remove(e);
91
+ });
92
+ });
93
+ }
94
+ get(e) {
95
+ return d(this, I).get(e);
96
+ }
97
+ getAll() {
98
+ return [...d(this, I).values()];
99
+ }
100
+ find(e) {
101
+ const r = { exact: !0, ...e };
102
+ return this.getAll().find(
103
+ (n) => qe(r, n)
104
+ );
105
+ }
106
+ findAll(e = {}) {
107
+ const r = this.getAll();
108
+ return Object.keys(e).length > 0 ? r.filter((n) => qe(e, n)) : r;
109
+ }
110
+ notify(e) {
111
+ R.batch(() => {
112
+ this.listeners.forEach((r) => {
113
+ r(e);
114
+ });
115
+ });
116
+ }
117
+ onFocus() {
118
+ R.batch(() => {
119
+ this.getAll().forEach((e) => {
120
+ e.onFocus();
121
+ });
122
+ });
123
+ }
124
+ onOnline() {
125
+ R.batch(() => {
126
+ this.getAll().forEach((e) => {
127
+ e.onOnline();
128
+ });
129
+ });
130
+ }
131
+ }, I = new WeakMap(), st), H, $, oe, nt, js = (nt = class extends ut {
132
+ constructor(e = {}) {
133
+ super();
134
+ k(this, H);
135
+ k(this, $);
136
+ k(this, oe);
137
+ this.config = e, M(this, H, /* @__PURE__ */ new Set()), M(this, $, /* @__PURE__ */ new Map()), M(this, oe, 0);
138
+ }
139
+ build(e, r, n) {
140
+ const a = new Mr({
141
+ mutationCache: this,
142
+ mutationId: ++ce(this, oe)._,
143
+ options: e.defaultMutationOptions(r),
144
+ state: n
145
+ });
146
+ return this.add(a), a;
147
+ }
148
+ add(e) {
149
+ d(this, H).add(e);
150
+ const r = le(e);
151
+ if (typeof r == "string") {
152
+ const n = d(this, $).get(r);
153
+ n ? n.push(e) : d(this, $).set(r, [e]);
154
+ }
155
+ this.notify({ type: "added", mutation: e });
156
+ }
157
+ remove(e) {
158
+ if (d(this, H).delete(e)) {
159
+ const r = le(e);
160
+ if (typeof r == "string") {
161
+ const n = d(this, $).get(r);
162
+ if (n)
163
+ if (n.length > 1) {
164
+ const a = n.indexOf(e);
165
+ a !== -1 && n.splice(a, 1);
166
+ } else n[0] === e && d(this, $).delete(r);
167
+ }
168
+ }
169
+ this.notify({ type: "removed", mutation: e });
170
+ }
171
+ canRun(e) {
172
+ const r = le(e);
173
+ if (typeof r == "string") {
174
+ const n = d(this, $).get(r), a = n == null ? void 0 : n.find(
175
+ (i) => i.state.status === "pending"
176
+ );
177
+ return !a || a === e;
178
+ } else
179
+ return !0;
180
+ }
181
+ runNext(e) {
182
+ var n;
183
+ const r = le(e);
184
+ if (typeof r == "string") {
185
+ const a = (n = d(this, $).get(r)) == null ? void 0 : n.find((i) => i !== e && i.state.isPaused);
186
+ return (a == null ? void 0 : a.continue()) ?? Promise.resolve();
187
+ } else
188
+ return Promise.resolve();
189
+ }
190
+ clear() {
191
+ R.batch(() => {
192
+ d(this, H).forEach((e) => {
193
+ this.notify({ type: "removed", mutation: e });
194
+ }), d(this, H).clear(), d(this, $).clear();
195
+ });
196
+ }
197
+ getAll() {
198
+ return Array.from(d(this, H));
199
+ }
200
+ find(e) {
201
+ const r = { exact: !0, ...e };
202
+ return this.getAll().find(
203
+ (n) => $e(r, n)
204
+ );
205
+ }
206
+ findAll(e = {}) {
207
+ return this.getAll().filter((r) => $e(e, r));
208
+ }
209
+ notify(e) {
210
+ R.batch(() => {
211
+ this.listeners.forEach((r) => {
212
+ r(e);
213
+ });
214
+ });
215
+ }
216
+ resumePausedMutations() {
217
+ const e = this.getAll().filter((r) => r.state.isPaused);
218
+ return R.batch(
219
+ () => Promise.all(
220
+ e.map((r) => r.continue().catch(B))
221
+ )
222
+ );
223
+ }
224
+ }, H = new WeakMap(), $ = new WeakMap(), oe = new WeakMap(), nt);
225
+ function le(t) {
226
+ var e;
227
+ return (e = t.options.scope) == null ? void 0 : e.id;
228
+ }
229
+ function He(t) {
230
+ return {
231
+ onFetch: (e, r) => {
232
+ var b, v, g, y, m;
233
+ const n = e.options, a = (g = (v = (b = e.fetchOptions) == null ? void 0 : b.meta) == null ? void 0 : v.fetchMore) == null ? void 0 : g.direction, i = ((y = e.state.data) == null ? void 0 : y.pages) || [], o = ((m = e.state.data) == null ? void 0 : m.pageParams) || [];
234
+ let f = { pages: [], pageParams: [] }, h = 0;
235
+ const l = async () => {
236
+ let p = !1;
237
+ const C = (x) => {
238
+ Object.defineProperty(x, "signal", {
239
+ enumerable: !0,
240
+ get: () => (e.signal.aborted ? p = !0 : e.signal.addEventListener("abort", () => {
241
+ p = !0;
242
+ }), e.signal)
243
+ });
244
+ }, E = fr(e.options, e.fetchOptions), T = async (x, j, c) => {
245
+ if (p)
246
+ return Promise.reject();
247
+ if (j == null && x.pages.length)
248
+ return Promise.resolve(x);
249
+ const S = {
250
+ client: e.client,
251
+ queryKey: e.queryKey,
252
+ pageParam: j,
253
+ direction: c ? "backward" : "forward",
254
+ meta: e.options.meta
255
+ };
256
+ C(S);
257
+ const D = await E(
258
+ S
259
+ ), { maxPages: q } = e.options, L = c ? hr : mr;
260
+ return {
261
+ pages: L(x.pages, D, q),
262
+ pageParams: L(x.pageParams, j, q)
263
+ };
264
+ };
265
+ if (a && i.length) {
266
+ const x = a === "backward", j = x ? ws : Ke, c = {
267
+ pages: i,
268
+ pageParams: o
269
+ }, S = j(n, c);
270
+ f = await T(c, S, x);
271
+ } else {
272
+ const x = t ?? i.length;
273
+ do {
274
+ const j = h === 0 ? o[0] ?? n.initialPageParam : Ke(n, f);
275
+ if (h > 0 && j == null)
276
+ break;
277
+ f = await T(f, j), h++;
278
+ } while (h < x);
279
+ }
280
+ return f;
281
+ };
282
+ e.options.persister ? e.fetchFn = () => {
283
+ var p, C;
284
+ return (C = (p = e.options).persister) == null ? void 0 : C.call(
285
+ p,
286
+ l,
287
+ {
288
+ client: e.client,
289
+ queryKey: e.queryKey,
290
+ meta: e.options.meta,
291
+ signal: e.signal
292
+ },
293
+ r
294
+ );
295
+ } : e.fetchFn = l;
296
+ }
297
+ };
298
+ }
299
+ function Ke(t, { pages: e, pageParams: r }) {
300
+ const n = e.length - 1;
301
+ return e.length > 0 ? t.getNextPageParam(
302
+ e[n],
303
+ e,
304
+ r[n],
305
+ r
306
+ ) : void 0;
307
+ }
308
+ function ws(t, { pages: e, pageParams: r }) {
309
+ var n;
310
+ return e.length > 0 ? (n = t.getPreviousPageParam) == null ? void 0 : n.call(t, e[0], e, r[0], r) : void 0;
311
+ }
312
+ var N, Y, Z, te, re, V, se, ne, at, Ps = (at = class {
313
+ constructor(t = {}) {
314
+ k(this, N);
315
+ k(this, Y);
316
+ k(this, Z);
317
+ k(this, te);
318
+ k(this, re);
319
+ k(this, V);
320
+ k(this, se);
321
+ k(this, ne);
322
+ M(this, N, t.queryCache || new bs()), M(this, Y, t.mutationCache || new js()), M(this, Z, t.defaultOptions || {}), M(this, te, /* @__PURE__ */ new Map()), M(this, re, /* @__PURE__ */ new Map()), M(this, V, 0);
323
+ }
324
+ mount() {
325
+ ce(this, V)._++, d(this, V) === 1 && (M(this, se, pr.subscribe(async (t) => {
326
+ t && (await this.resumePausedMutations(), d(this, N).onFocus());
327
+ })), M(this, ne, Ie.subscribe(async (t) => {
328
+ t && (await this.resumePausedMutations(), d(this, N).onOnline());
329
+ })));
330
+ }
331
+ unmount() {
332
+ var t, e;
333
+ ce(this, V)._--, d(this, V) === 0 && ((t = d(this, se)) == null || t.call(this), M(this, se, void 0), (e = d(this, ne)) == null || e.call(this), M(this, ne, void 0));
334
+ }
335
+ isFetching(t) {
336
+ return d(this, N).findAll({ ...t, fetchStatus: "fetching" }).length;
337
+ }
338
+ isMutating(t) {
339
+ return d(this, Y).findAll({ ...t, status: "pending" }).length;
340
+ }
341
+ /**
342
+ * Imperative (non-reactive) way to retrieve data for a QueryKey.
343
+ * Should only be used in callbacks or functions where reading the latest data is necessary, e.g. for optimistic updates.
344
+ *
345
+ * Hint: Do not use this function inside a component, because it won't receive updates.
346
+ * Use `useQuery` to create a `QueryObserver` that subscribes to changes.
347
+ */
348
+ getQueryData(t) {
349
+ var r;
350
+ const e = this.defaultQueryOptions({ queryKey: t });
351
+ return (r = d(this, N).get(e.queryHash)) == null ? void 0 : r.state.data;
352
+ }
353
+ ensureQueryData(t) {
354
+ const e = this.defaultQueryOptions(t), r = d(this, N).build(this, e), n = r.state.data;
355
+ return n === void 0 ? this.fetchQuery(t) : (t.revalidateIfStale && r.isStaleByTime(Fe(e.staleTime, r)) && this.prefetchQuery(e), Promise.resolve(n));
356
+ }
357
+ getQueriesData(t) {
358
+ return d(this, N).findAll(t).map(({ queryKey: e, state: r }) => {
359
+ const n = r.data;
360
+ return [e, n];
361
+ });
362
+ }
363
+ setQueryData(t, e, r) {
364
+ const n = this.defaultQueryOptions({ queryKey: t }), a = d(this, N).get(
365
+ n.queryHash
366
+ ), i = a == null ? void 0 : a.state.data, o = gr(e, i);
367
+ if (o !== void 0)
368
+ return d(this, N).build(this, n).setData(o, { ...r, manual: !0 });
369
+ }
370
+ setQueriesData(t, e, r) {
371
+ return R.batch(
372
+ () => d(this, N).findAll(t).map(({ queryKey: n }) => [
373
+ n,
374
+ this.setQueryData(n, e, r)
375
+ ])
376
+ );
377
+ }
378
+ getQueryState(t) {
379
+ var r;
380
+ const e = this.defaultQueryOptions({ queryKey: t });
381
+ return (r = d(this, N).get(
382
+ e.queryHash
383
+ )) == null ? void 0 : r.state;
384
+ }
385
+ removeQueries(t) {
386
+ const e = d(this, N);
387
+ R.batch(() => {
388
+ e.findAll(t).forEach((r) => {
389
+ e.remove(r);
390
+ });
391
+ });
392
+ }
393
+ resetQueries(t, e) {
394
+ const r = d(this, N);
395
+ return R.batch(() => (r.findAll(t).forEach((n) => {
396
+ n.reset();
397
+ }), this.refetchQueries(
398
+ {
399
+ type: "active",
400
+ ...t
401
+ },
402
+ e
403
+ )));
404
+ }
405
+ cancelQueries(t, e = {}) {
406
+ const r = { revert: !0, ...e }, n = R.batch(
407
+ () => d(this, N).findAll(t).map((a) => a.cancel(r))
408
+ );
409
+ return Promise.all(n).then(B).catch(B);
410
+ }
411
+ invalidateQueries(t, e = {}) {
412
+ return R.batch(() => (d(this, N).findAll(t).forEach((r) => {
413
+ r.invalidate();
414
+ }), (t == null ? void 0 : t.refetchType) === "none" ? Promise.resolve() : this.refetchQueries(
415
+ {
416
+ ...t,
417
+ type: (t == null ? void 0 : t.refetchType) ?? (t == null ? void 0 : t.type) ?? "active"
418
+ },
419
+ e
420
+ )));
421
+ }
422
+ refetchQueries(t, e = {}) {
423
+ const r = {
424
+ ...e,
425
+ cancelRefetch: e.cancelRefetch ?? !0
426
+ }, n = R.batch(
427
+ () => d(this, N).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
428
+ let i = a.fetch(void 0, r);
429
+ return r.throwOnError || (i = i.catch(B)), a.state.fetchStatus === "paused" ? Promise.resolve() : i;
430
+ })
431
+ );
432
+ return Promise.all(n).then(B);
433
+ }
434
+ fetchQuery(t) {
435
+ const e = this.defaultQueryOptions(t);
436
+ e.retry === void 0 && (e.retry = !1);
437
+ const r = d(this, N).build(this, e);
438
+ return r.isStaleByTime(
439
+ Fe(e.staleTime, r)
440
+ ) ? r.fetch(e) : Promise.resolve(r.state.data);
441
+ }
442
+ prefetchQuery(t) {
443
+ return this.fetchQuery(t).then(B).catch(B);
444
+ }
445
+ fetchInfiniteQuery(t) {
446
+ return t.behavior = He(t.pages), this.fetchQuery(t);
447
+ }
448
+ prefetchInfiniteQuery(t) {
449
+ return this.fetchInfiniteQuery(t).then(B).catch(B);
450
+ }
451
+ ensureInfiniteQueryData(t) {
452
+ return t.behavior = He(t.pages), this.ensureQueryData(t);
453
+ }
454
+ resumePausedMutations() {
455
+ return Ie.isOnline() ? d(this, Y).resumePausedMutations() : Promise.resolve();
456
+ }
457
+ getQueryCache() {
458
+ return d(this, N);
459
+ }
460
+ getMutationCache() {
461
+ return d(this, Y);
462
+ }
463
+ getDefaultOptions() {
464
+ return d(this, Z);
465
+ }
466
+ setDefaultOptions(t) {
467
+ M(this, Z, t);
468
+ }
469
+ setQueryDefaults(t, e) {
470
+ d(this, te).set(Qe(t), {
471
+ queryKey: t,
472
+ defaultOptions: e
473
+ });
474
+ }
475
+ getQueryDefaults(t) {
476
+ const e = [...d(this, te).values()], r = {};
477
+ return e.forEach((n) => {
478
+ ze(t, n.queryKey) && Object.assign(r, n.defaultOptions);
479
+ }), r;
480
+ }
481
+ setMutationDefaults(t, e) {
482
+ d(this, re).set(Qe(t), {
483
+ mutationKey: t,
484
+ defaultOptions: e
485
+ });
486
+ }
487
+ getMutationDefaults(t) {
488
+ const e = [...d(this, re).values()], r = {};
489
+ return e.forEach((n) => {
490
+ ze(t, n.mutationKey) && Object.assign(r, n.defaultOptions);
491
+ }), r;
492
+ }
493
+ defaultQueryOptions(t) {
494
+ if (t._defaulted)
495
+ return t;
496
+ const e = {
497
+ ...d(this, Z).queries,
498
+ ...this.getQueryDefaults(t.queryKey),
499
+ ...t,
500
+ _defaulted: !0
501
+ };
502
+ return e.queryHash || (e.queryHash = dt(
503
+ e.queryKey,
504
+ e
505
+ )), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.queryFn === xr && (e.enabled = !1), e;
506
+ }
507
+ defaultMutationOptions(t) {
508
+ return t != null && t._defaulted ? t : {
509
+ ...d(this, Z).mutations,
510
+ ...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
511
+ ...t,
512
+ _defaulted: !0
513
+ };
514
+ }
515
+ clear() {
516
+ d(this, N).clear(), d(this, Y).clear();
517
+ }
518
+ }, N = new WeakMap(), Y = new WeakMap(), Z = new WeakMap(), te = new WeakMap(), re = new WeakMap(), V = new WeakMap(), se = new WeakMap(), ne = new WeakMap(), at);
519
+ function Ss(t) {
520
+ return t;
521
+ }
522
+ function Ue(t, e, r) {
523
+ var h, l;
524
+ if (typeof e != "object" || e === null)
525
+ return;
526
+ const n = t.getMutationCache(), a = t.getQueryCache(), i = ((h = r == null ? void 0 : r.defaultOptions) == null ? void 0 : h.deserializeData) ?? ((l = t.getDefaultOptions().hydrate) == null ? void 0 : l.deserializeData) ?? Ss, o = e.mutations || [], f = e.queries || [];
527
+ o.forEach(({ state: b, ...v }) => {
528
+ var g, y;
529
+ n.build(
530
+ t,
531
+ {
532
+ ...(g = t.getDefaultOptions().hydrate) == null ? void 0 : g.mutations,
533
+ ...(y = r == null ? void 0 : r.defaultOptions) == null ? void 0 : y.mutations,
534
+ ...v
535
+ },
536
+ b
537
+ );
538
+ }), f.forEach(({ queryKey: b, state: v, queryHash: g, meta: y, promise: m }) => {
539
+ var E, T;
540
+ let p = a.get(g);
541
+ const C = v.data === void 0 ? v.data : i(v.data);
542
+ if (p) {
543
+ if (p.state.dataUpdatedAt < v.dataUpdatedAt) {
544
+ const { fetchStatus: x, ...j } = v;
545
+ p.setState({
546
+ ...j,
547
+ data: C
548
+ });
549
+ }
550
+ } else
551
+ p = a.build(
552
+ t,
553
+ {
554
+ ...(E = t.getDefaultOptions().hydrate) == null ? void 0 : E.queries,
555
+ ...(T = r == null ? void 0 : r.defaultOptions) == null ? void 0 : T.queries,
556
+ queryKey: b,
557
+ queryHash: g,
558
+ meta: y
559
+ },
560
+ // Reset fetch status to idle to avoid
561
+ // query being stuck in fetching state upon hydration
562
+ {
563
+ ...v,
564
+ data: C,
565
+ fetchStatus: "idle"
566
+ }
567
+ );
568
+ if (m) {
569
+ const x = Promise.resolve(m).then(i);
570
+ p.fetch(void 0, { initialPromise: x });
571
+ }
572
+ });
573
+ }
574
+ var Ye = (t, e) => typeof t == "object" && t !== null && e in t, Cs = ({
575
+ children: t,
576
+ options: e = {},
577
+ state: r,
578
+ queryClient: n
579
+ }) => {
580
+ const a = ft(n), [i, o] = K.useState(), f = K.useRef(e);
581
+ return f.current = e, K.useMemo(() => {
582
+ if (r) {
583
+ if (typeof r != "object")
584
+ return;
585
+ const h = a.getQueryCache(), l = r.queries || [], b = [], v = [];
586
+ for (const g of l) {
587
+ const y = h.get(g.queryHash);
588
+ if (!y)
589
+ b.push(g);
590
+ else {
591
+ const m = g.state.dataUpdatedAt > y.state.dataUpdatedAt || // RSC special serialized then-able chunks
592
+ Ye(g.promise, "status") && Ye(y.promise, "status") && g.promise.status !== y.promise.status, p = i == null ? void 0 : i.find(
593
+ (C) => C.queryHash === g.queryHash
594
+ );
595
+ m && (!p || g.state.dataUpdatedAt > p.state.dataUpdatedAt) && v.push(g);
596
+ }
597
+ }
598
+ b.length > 0 && Ue(a, { queries: b }, f.current), v.length > 0 && o(
599
+ (g) => g ? [...g, ...v] : v
600
+ );
601
+ }
602
+ }, [a, i, r]), K.useEffect(() => {
603
+ i && (Ue(a, { queries: i }, f.current), o(void 0));
604
+ }, [a, i]), t;
605
+ };
606
+ function Ns({ error: t }) {
607
+ return /* @__PURE__ */ s.jsx(pt, { error: t });
608
+ }
609
+ /**
610
+ * react-router v7.5.0
611
+ *
612
+ * Copyright (c) Remix Software Inc.
613
+ *
614
+ * This source code is licensed under the MIT license found in the
615
+ * LICENSE.md file in the root directory of this source tree.
616
+ *
617
+ * @license MIT
618
+ */
619
+ function Es(t) {
620
+ return /* @__PURE__ */ K.createElement(cr, { flushSync: kr.flushSync, ...t });
621
+ }
622
+ const Ne = Me({ stagger: !1 }), Ts = new Ps({
623
+ defaultOptions: {
624
+ queries: {
625
+ staleTime: 1e3 * 60 * 5
626
+ }
627
+ }
628
+ }), Ms = ({
629
+ router: t,
630
+ hydrate: e = !1
631
+ }) => /* @__PURE__ */ s.jsx(xt, { children: /* @__PURE__ */ s.jsx(ht, { client: Ts, children: /* @__PURE__ */ s.jsx(Cs, { state: e ? window.DATA : void 0, children: /* @__PURE__ */ s.jsx(ot, { value: !1, children: /* @__PURE__ */ s.jsx(it, { children: /* @__PURE__ */ s.jsx(Ne.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ s.jsx(Es, { router: t }) }) }) }) }) }) }), Os = ({
632
+ router: t,
633
+ context: e,
634
+ queryClient: r,
635
+ helmetContext: n,
636
+ bypassProtection: a = !1
637
+ }) => /* @__PURE__ */ s.jsx(xt, { children: /* @__PURE__ */ s.jsx(ht, { client: r, children: /* @__PURE__ */ s.jsx(it, { context: n, children: /* @__PURE__ */ s.jsx(ot, { value: a, children: /* @__PURE__ */ s.jsx(lr, { router: t, context: e }) }) }) }) }), As = ({
638
+ buildId: t,
639
+ endpoint: e = "/__zuplo/docs"
640
+ }) => {
641
+ var a, i;
642
+ const r = vr({
643
+ queryKey: ["zuplo-build-check", t, e],
644
+ refetchInterval: 2e3,
645
+ enabled: !!t,
646
+ queryFn: () => fetch(e).then((o) => o.json())
647
+ });
648
+ if (((a = r.data) == null ? void 0 : a.buildId) === t)
649
+ return null;
650
+ const n = ((i = r.data) == null ? void 0 : i.status) === "completed";
651
+ return /* @__PURE__ */ s.jsxs("div", { className: "fixed flex flex-col gap-3 p-4 rounded-xl w-96 border z-20 bg-background left-0 right-0 top-4 mx-auto shadow-lg", children: [
652
+ n ? /* @__PURE__ */ s.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
653
+ /* @__PURE__ */ s.jsx(Rr, { size: 16 }),
654
+ /* @__PURE__ */ s.jsx("span", { className: "text-sm", children: "New version available" })
655
+ ] }) : /* @__PURE__ */ s.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
656
+ /* @__PURE__ */ s.jsx(_r, { size: 16, className: "animate-spin" }),
657
+ /* @__PURE__ */ s.jsx("span", { className: "text-sm", children: "Building new version..." })
658
+ ] }),
659
+ /* @__PURE__ */ s.jsx("span", { className: "text-xs", children: n ? "To see the new version, reload the page now." : "A new version of the developer portal will be available soon." }),
660
+ /* @__PURE__ */ s.jsx(
661
+ gt,
662
+ {
663
+ variant: "outline",
664
+ size: "sm",
665
+ className: "w-full",
666
+ onClick: () => {
667
+ window.location.reload();
668
+ },
669
+ children: "Reload"
670
+ }
671
+ )
672
+ ] });
673
+ }, ks = () => {
674
+ const t = pe(), e = G(t.pathname);
675
+ Q(() => {
676
+ const r = e.current !== t.pathname, n = t.hash !== "";
677
+ r && !n && window.scrollTo(0, 0), e.current = t.pathname;
678
+ }, [t.pathname, t.hash]);
679
+ }, Rs = ({
680
+ icon: t
681
+ }) => typeof t == "string" ? /* @__PURE__ */ s.jsx(
682
+ "img",
683
+ {
684
+ src: `https://cdn.simpleicons.org/${t}/000000/ffffff`,
685
+ className: "size-5",
686
+ alt: t
687
+ }
688
+ ) : t, _s = (t) => /^https?:/.test(t), Ds = () => {
689
+ var r;
690
+ const { page: t } = Pn(), e = t == null ? void 0 : t.footer;
691
+ return e ? /* @__PURE__ */ s.jsx("footer", { className: "border-t bg-background", children: /* @__PURE__ */ s.jsxs("div", { className: "mx-auto max-w-screen-2xl px-4 lg:px-8 py-8 pt-20", children: [
692
+ /* @__PURE__ */ s.jsxs(
693
+ "div",
694
+ {
695
+ className: O("flex flex-row gap-8", {
696
+ "justify-center": !e.position || e.position === "center",
697
+ "justify-start": e.position === "start",
698
+ "justify-end": e.position === "end"
699
+ }),
700
+ children: [
701
+ /* @__PURE__ */ s.jsx(_, { name: "footer-before" }),
702
+ e.columns && /* @__PURE__ */ s.jsx(
703
+ "div",
704
+ {
705
+ className: "w-full md:max-w-screen-md grid grid-cols-[1fr_1fr] gap-8 md:grid-cols-[repeat(var(--columns),minmax(0,1fr))]",
706
+ style: { "--columns": e.columns.length },
707
+ children: e.columns.map((n) => /* @__PURE__ */ s.jsxs(
708
+ "div",
709
+ {
710
+ className: O({
711
+ "justify-self-center": !n.position || n.position === "center",
712
+ "justify-self-start": n.position === "start",
713
+ "justify-self-end": n.position === "end"
714
+ }),
715
+ children: [
716
+ /* @__PURE__ */ s.jsx("span", { className: "text-sm font-semibold", children: n.title }),
717
+ /* @__PURE__ */ s.jsx("ul", { className: "mt-4 space-y-2", children: n.links.map((a, i) => {
718
+ const o = "flex flex-row gap-1 items-center text-sm text-muted-foreground hover:text-accent-foreground";
719
+ return /* @__PURE__ */ s.jsx("li", { children: _s(a.href) ? /* @__PURE__ */ s.jsxs(
720
+ "a",
721
+ {
722
+ href: a.href,
723
+ target: "_blank",
724
+ rel: "noopener noreferrer",
725
+ className: o,
726
+ children: [
727
+ /* @__PURE__ */ s.jsx("span", { children: a.label }),
728
+ /* @__PURE__ */ s.jsx(Dr, { size: 12 })
729
+ ]
730
+ }
731
+ ) : /* @__PURE__ */ s.jsx(
732
+ Br,
733
+ {
734
+ to: a.href + i,
735
+ className: o,
736
+ children: /* @__PURE__ */ s.jsx("span", { children: a.label })
737
+ }
738
+ ) }, a.href + i);
739
+ }) })
740
+ ]
741
+ },
742
+ n.title
743
+ ))
744
+ }
745
+ ),
746
+ /* @__PURE__ */ s.jsx(_, { name: "footer-after" })
747
+ ]
748
+ }
749
+ ),
750
+ /* @__PURE__ */ s.jsxs(
751
+ "div",
752
+ {
753
+ className: O(
754
+ "flex items-center justify-between",
755
+ e.columns && "border-t mt-8 pt-8"
756
+ ),
757
+ children: [
758
+ e.logo && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
759
+ /* @__PURE__ */ s.jsx(
760
+ "img",
761
+ {
762
+ src: e.logo.src.light,
763
+ alt: e.logo.alt,
764
+ className: "w-8 dark:hidden",
765
+ style: { width: e.logo.width }
766
+ }
767
+ ),
768
+ /* @__PURE__ */ s.jsx(
769
+ "img",
770
+ {
771
+ src: e.logo.src.dark,
772
+ alt: e.logo.alt,
773
+ className: "w-8 hidden dark:block",
774
+ style: { width: e.logo.width }
775
+ }
776
+ )
777
+ ] }),
778
+ e.copyright && /* @__PURE__ */ s.jsx("p", { className: "text-sm text-muted-foreground", children: e.copyright }),
779
+ /* @__PURE__ */ s.jsx("div", { className: "flex items-center gap-2", children: (r = e.social) == null ? void 0 : r.map((n) => /* @__PURE__ */ s.jsxs(
780
+ "a",
781
+ {
782
+ href: n.href,
783
+ target: "_blank",
784
+ rel: "noopener noreferrer",
785
+ className: "w-auto gap-2 flex text-muted-foreground hover:text-accent-foreground",
786
+ children: [
787
+ /* @__PURE__ */ s.jsx(Rs, { icon: n.icon }),
788
+ n.label
789
+ ]
790
+ },
791
+ n.href
792
+ )) })
793
+ ]
794
+ }
795
+ )
796
+ ] }) }) : null;
797
+ };
798
+ function qs({
799
+ className: t,
800
+ ...e
801
+ }) {
802
+ return /* @__PURE__ */ s.jsx(
803
+ "div",
804
+ {
805
+ className: O("animate-pulse rounded-md bg-muted", t),
806
+ ...e
807
+ }
808
+ );
809
+ }
810
+ const Ze = {
811
+ info: "bg-blue-500",
812
+ note: "bg-gray-500",
813
+ tip: "bg-green-600",
814
+ caution: "bg-orange-500",
815
+ danger: "bg-rose-500"
816
+ }, $s = () => {
817
+ const { page: t } = F(), [e, r] = J(!0);
818
+ if (!(t != null && t.banner) || !e)
819
+ return /* @__PURE__ */ s.jsx("style", { children: ":root { --banner-height: 0px; }" });
820
+ const n = t.banner.color && t.banner.color in Ze ? Ze[t.banner.color] : t.banner.color ? void 0 : "bg-primary", a = n ? {} : { backgroundColor: t.banner.color };
821
+ return /* @__PURE__ */ s.jsxs(
822
+ "div",
823
+ {
824
+ className: O(
825
+ "relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center",
826
+ n
827
+ ),
828
+ "data-pagefind-ignore": "all",
829
+ style: a,
830
+ children: [
831
+ /* @__PURE__ */ s.jsx("div", { className: "w-full", children: t.banner.message }),
832
+ t.banner.dismissible && /* @__PURE__ */ s.jsx(
833
+ "button",
834
+ {
835
+ type: "button",
836
+ className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
837
+ onClick: () => r(!1),
838
+ children: /* @__PURE__ */ s.jsx(qr, { size: 16 })
839
+ }
840
+ )
841
+ ]
842
+ }
843
+ );
844
+ }, Ct = (t) => /* @__PURE__ */ s.jsxs(
845
+ "svg",
846
+ {
847
+ xmlns: "http://www.w3.org/2000/svg",
848
+ viewBox: "0 0 132 100",
849
+ fill: "none",
850
+ ...t,
851
+ children: [
852
+ /* @__PURE__ */ s.jsx(
853
+ "path",
854
+ {
855
+ fill: "currentColor",
856
+ fillRule: "evenodd",
857
+ d: "M80.092 2.963A4.66 4.66 0 0 1 84.449 0h34.049c6.325 0 10.835 6.135 8.948 12.172L116.653 46.71a4.688 4.688 0 0 1-4.474 3.29H75c-5.178 0-7.813 4.687-9.375 9.374-1.288 3.864-11.07 28.963-14.467 37.662A4.66 4.66 0 0 1 46.801 100H12.75c-6.324 0-10.834-6.134-8.947-12.171l10.793-34.54A4.688 4.688 0 0 1 19.071 50H56.25c5.178 0 7.813-4.687 9.375-9.375 1.288-3.864 11.07-28.962 14.467-37.662Z",
858
+ clipRule: "evenodd"
859
+ }
860
+ ),
861
+ /* @__PURE__ */ s.jsx(
862
+ "path",
863
+ {
864
+ fill: "currentColor",
865
+ d: "M83.54 57.813a7.813 7.813 0 0 0-7.316 5.07L63.888 95.777c-.766 2.043.744 4.222 2.926 4.222h36.828c5.211 0 9.875-3.232 11.704-8.11l8.821-23.522c1.915-5.107-1.861-10.555-7.315-10.555H83.539ZM29.17 0a12.5 12.5 0 0 0-11.704 8.111l-8.82 23.521c-1.915 5.107 1.86 10.556 7.315 10.556h33.312a7.813 7.813 0 0 0 7.316-5.07L68.924 4.223C69.691 2.18 68.18 0 65.998 0H29.17Z"
866
+ }
867
+ )
868
+ ]
869
+ }
870
+ );
871
+ Ct.displayName = "ZudokuLogo";
872
+ const Nt = ({ className: t }) => /* @__PURE__ */ s.jsxs(
873
+ "a",
874
+ {
875
+ href: "https://zudoku.dev",
876
+ target: "_blank",
877
+ rel: "noopener noreferrer",
878
+ className: O(
879
+ "flex justify-between items-center w-full border border-transparent hover:border-border rounded-full hover:shadow-sm h-7 px-3 text-nowrap hover:bg-muted/80 transition-all",
880
+ t
881
+ ),
882
+ children: [
883
+ /* @__PURE__ */ s.jsxs("div", { className: "opacity-70 hover:opacity-100 transition-opacity gap-1.5 text-[11px] font-medium rounded-full h-7 flex items-center text-nowrap", children: [
884
+ /* @__PURE__ */ s.jsx(Ct, { className: "w-3.5 h-3.5 dark:fill-white" }),
885
+ "powered by ",
886
+ "Zudoku"
887
+ ] }),
888
+ /* @__PURE__ */ s.jsx("div", { className: "text-xs font-medium opacity-70 hover:text-foreground transition-colors cursor-pointer", children: /* @__PURE__ */ s.jsx($r, { size: 12, absoluteStrokeWidth: !0, strokeWidth: 1.5 }) })
889
+ ]
890
+ }
891
+ );
892
+ function Is() {
893
+ const t = navigator.userAgent.toLowerCase();
894
+ if (t.includes("win")) return "Windows";
895
+ if (t.includes("mac")) return "macOS";
896
+ if (t.includes("linux")) return "Linux";
897
+ }
898
+ const Et = ({ className: t }) => {
899
+ const e = F(), [r, n] = J(!1), a = W(() => n(!1), []);
900
+ Q(() => {
901
+ if (r)
902
+ return;
903
+ function o(f) {
904
+ f.key === "k" && (f.metaKey || f.ctrlKey) && (f.preventDefault(), n(!0));
905
+ }
906
+ return window.addEventListener("keydown", o), () => {
907
+ window.removeEventListener("keydown", o);
908
+ };
909
+ }, [r, n]);
910
+ const i = e.plugins.find(Xr);
911
+ return i ? /* @__PURE__ */ s.jsxs("div", { className: t, children: [
912
+ /* @__PURE__ */ s.jsxs(
913
+ "button",
914
+ {
915
+ type: "button",
916
+ onClick: () => n(!0),
917
+ className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-full sm:w-72",
918
+ children: [
919
+ /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
920
+ /* @__PURE__ */ s.jsx(Ir, { size: 14 }),
921
+ "Search"
922
+ ] }),
923
+ /* @__PURE__ */ s.jsx(xe, { children: /* @__PURE__ */ s.jsx(Fs, {}) })
924
+ ]
925
+ }
926
+ ),
927
+ /* @__PURE__ */ s.jsx(Oe, { fallback: null, children: i.renderSearch({
928
+ isOpen: r,
929
+ onClose: a
930
+ }) })
931
+ ] }) : null;
932
+ }, Fs = () => {
933
+ const t = Is();
934
+ return /* @__PURE__ */ s.jsxs("kbd", { className: "absolute right-[0.3rem] top-[0.35rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: [
935
+ t === "macOS" ? "⌘" : "Ctrl",
936
+ "+K"
937
+ ] });
938
+ }, Tt = () => {
939
+ const { resolvedTheme: t, setTheme: e } = ct();
940
+ return /* @__PURE__ */ s.jsx(xe, { fallback: /* @__PURE__ */ s.jsx(Se, { variant: "ghost", size: "icon" }), children: /* @__PURE__ */ s.jsxs(
941
+ "button",
942
+ {
943
+ type: "button",
944
+ className: "flex rounded-full border p-0.5 gap-0.5 group",
945
+ onClick: () => e(t === "dark" ? "light" : "dark"),
946
+ "aria-label": t === "dark" ? "Switch to light mode" : "Switch to dark mode",
947
+ children: [
948
+ /* @__PURE__ */ s.jsx(
949
+ "div",
950
+ {
951
+ className: O(
952
+ "border border-transparent rounded-full p-0.5 [&>svg>circle]:transition-colors [&>svg>path]:transition-transform transition-all [&>svg>path]:duration-200 [&>svg>circle]:duration-500 [&>svg>circle]:fill-transparent",
953
+ t === "light" && "border-border bg-muted",
954
+ t === "dark" && "group-hover:[&>svg>path]:scale-110 group-hover:[&>svg>path]:-translate-x-[1px] group-hover:[&>svg>path]:-translate-y-[1px] group-hover:rotate-[15deg] "
955
+ ),
956
+ children: /* @__PURE__ */ s.jsx(Fr, { size: 16 })
957
+ }
958
+ ),
959
+ /* @__PURE__ */ s.jsx(
960
+ "div",
961
+ {
962
+ className: O(
963
+ "border border-transparent rounded-full p-0.5 transition-transform transform-gpu duration-500",
964
+ t === "dark" && "border-border bg-muted [&>svg>path]:fill-white [&>svg>path]:stroke-transparent",
965
+ t === "light" && "group-hover:rotate-[-10deg] [&>svg>path]:stroke-currentColor"
966
+ ),
967
+ children: /* @__PURE__ */ s.jsx(Qr, { size: 16 })
968
+ }
969
+ )
970
+ ]
971
+ }
972
+ ) });
973
+ };
974
+ function me() {
975
+ return me = Object.assign ? Object.assign.bind() : function(t) {
976
+ for (var e = 1; e < arguments.length; e++) {
977
+ var r = arguments[e];
978
+ for (var n in r) ({}).hasOwnProperty.call(r, n) && (t[n] = r[n]);
979
+ }
980
+ return t;
981
+ }, me.apply(null, arguments);
982
+ }
983
+ var ue = { exports: {} }, w = {};
984
+ /** @license React v16.13.1
985
+ * react-is.production.min.js
986
+ *
987
+ * Copyright (c) Facebook, Inc. and its affiliates.
988
+ *
989
+ * This source code is licensed under the MIT license found in the
990
+ * LICENSE file in the root directory of this source tree.
991
+ */
992
+ var Ve;
993
+ function Qs() {
994
+ if (Ve) return w;
995
+ Ve = 1;
996
+ var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, f = t ? Symbol.for("react.context") : 60110, h = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, b = t ? Symbol.for("react.forward_ref") : 60112, v = t ? Symbol.for("react.suspense") : 60113, g = t ? Symbol.for("react.suspense_list") : 60120, y = t ? Symbol.for("react.memo") : 60115, m = t ? Symbol.for("react.lazy") : 60116, p = t ? Symbol.for("react.block") : 60121, C = t ? Symbol.for("react.fundamental") : 60117, E = t ? Symbol.for("react.responder") : 60118, T = t ? Symbol.for("react.scope") : 60119;
997
+ function x(c) {
998
+ if (typeof c == "object" && c !== null) {
999
+ var S = c.$$typeof;
1000
+ switch (S) {
1001
+ case e:
1002
+ switch (c = c.type, c) {
1003
+ case h:
1004
+ case l:
1005
+ case n:
1006
+ case i:
1007
+ case a:
1008
+ case v:
1009
+ return c;
1010
+ default:
1011
+ switch (c = c && c.$$typeof, c) {
1012
+ case f:
1013
+ case b:
1014
+ case m:
1015
+ case y:
1016
+ case o:
1017
+ return c;
1018
+ default:
1019
+ return S;
1020
+ }
1021
+ }
1022
+ case r:
1023
+ return S;
1024
+ }
1025
+ }
1026
+ }
1027
+ function j(c) {
1028
+ return x(c) === l;
1029
+ }
1030
+ return w.AsyncMode = h, w.ConcurrentMode = l, w.ContextConsumer = f, w.ContextProvider = o, w.Element = e, w.ForwardRef = b, w.Fragment = n, w.Lazy = m, w.Memo = y, w.Portal = r, w.Profiler = i, w.StrictMode = a, w.Suspense = v, w.isAsyncMode = function(c) {
1031
+ return j(c) || x(c) === h;
1032
+ }, w.isConcurrentMode = j, w.isContextConsumer = function(c) {
1033
+ return x(c) === f;
1034
+ }, w.isContextProvider = function(c) {
1035
+ return x(c) === o;
1036
+ }, w.isElement = function(c) {
1037
+ return typeof c == "object" && c !== null && c.$$typeof === e;
1038
+ }, w.isForwardRef = function(c) {
1039
+ return x(c) === b;
1040
+ }, w.isFragment = function(c) {
1041
+ return x(c) === n;
1042
+ }, w.isLazy = function(c) {
1043
+ return x(c) === m;
1044
+ }, w.isMemo = function(c) {
1045
+ return x(c) === y;
1046
+ }, w.isPortal = function(c) {
1047
+ return x(c) === r;
1048
+ }, w.isProfiler = function(c) {
1049
+ return x(c) === i;
1050
+ }, w.isStrictMode = function(c) {
1051
+ return x(c) === a;
1052
+ }, w.isSuspense = function(c) {
1053
+ return x(c) === v;
1054
+ }, w.isValidElementType = function(c) {
1055
+ return typeof c == "string" || typeof c == "function" || c === n || c === l || c === i || c === a || c === v || c === g || typeof c == "object" && c !== null && (c.$$typeof === m || c.$$typeof === y || c.$$typeof === o || c.$$typeof === f || c.$$typeof === b || c.$$typeof === C || c.$$typeof === E || c.$$typeof === T || c.$$typeof === p);
1056
+ }, w.typeOf = x, w;
1057
+ }
1058
+ var P = {};
1059
+ /** @license React v16.13.1
1060
+ * react-is.development.js
1061
+ *
1062
+ * Copyright (c) Facebook, Inc. and its affiliates.
1063
+ *
1064
+ * This source code is licensed under the MIT license found in the
1065
+ * LICENSE file in the root directory of this source tree.
1066
+ */
1067
+ var We;
1068
+ function zs() {
1069
+ return We || (We = 1, process.env.NODE_ENV !== "production" && function() {
1070
+ var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, f = t ? Symbol.for("react.context") : 60110, h = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, b = t ? Symbol.for("react.forward_ref") : 60112, v = t ? Symbol.for("react.suspense") : 60113, g = t ? Symbol.for("react.suspense_list") : 60120, y = t ? Symbol.for("react.memo") : 60115, m = t ? Symbol.for("react.lazy") : 60116, p = t ? Symbol.for("react.block") : 60121, C = t ? Symbol.for("react.fundamental") : 60117, E = t ? Symbol.for("react.responder") : 60118, T = t ? Symbol.for("react.scope") : 60119;
1071
+ function x(u) {
1072
+ return typeof u == "string" || typeof u == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1073
+ u === n || u === l || u === i || u === a || u === v || u === g || typeof u == "object" && u !== null && (u.$$typeof === m || u.$$typeof === y || u.$$typeof === o || u.$$typeof === f || u.$$typeof === b || u.$$typeof === C || u.$$typeof === E || u.$$typeof === T || u.$$typeof === p);
1074
+ }
1075
+ function j(u) {
1076
+ if (typeof u == "object" && u !== null) {
1077
+ var ye = u.$$typeof;
1078
+ switch (ye) {
1079
+ case e:
1080
+ var ie = u.type;
1081
+ switch (ie) {
1082
+ case h:
1083
+ case l:
1084
+ case n:
1085
+ case i:
1086
+ case a:
1087
+ case v:
1088
+ return ie;
1089
+ default:
1090
+ var Re = ie && ie.$$typeof;
1091
+ switch (Re) {
1092
+ case f:
1093
+ case b:
1094
+ case m:
1095
+ case y:
1096
+ case o:
1097
+ return Re;
1098
+ default:
1099
+ return ye;
1100
+ }
1101
+ }
1102
+ case r:
1103
+ return ye;
1104
+ }
1105
+ }
1106
+ }
1107
+ var c = h, S = l, D = f, q = o, L = e, U = b, ve = n, X = m, zt = y, Lt = r, Bt = i, Ht = a, Kt = v, Ae = !1;
1108
+ function Ut(u) {
1109
+ return Ae || (Ae = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), ke(u) || j(u) === h;
1110
+ }
1111
+ function ke(u) {
1112
+ return j(u) === l;
1113
+ }
1114
+ function Yt(u) {
1115
+ return j(u) === f;
1116
+ }
1117
+ function Zt(u) {
1118
+ return j(u) === o;
1119
+ }
1120
+ function Vt(u) {
1121
+ return typeof u == "object" && u !== null && u.$$typeof === e;
1122
+ }
1123
+ function Wt(u) {
1124
+ return j(u) === b;
1125
+ }
1126
+ function Gt(u) {
1127
+ return j(u) === n;
1128
+ }
1129
+ function Xt(u) {
1130
+ return j(u) === m;
1131
+ }
1132
+ function Jt(u) {
1133
+ return j(u) === y;
1134
+ }
1135
+ function er(u) {
1136
+ return j(u) === r;
1137
+ }
1138
+ function tr(u) {
1139
+ return j(u) === i;
1140
+ }
1141
+ function rr(u) {
1142
+ return j(u) === a;
1143
+ }
1144
+ function sr(u) {
1145
+ return j(u) === v;
1146
+ }
1147
+ P.AsyncMode = c, P.ConcurrentMode = S, P.ContextConsumer = D, P.ContextProvider = q, P.Element = L, P.ForwardRef = U, P.Fragment = ve, P.Lazy = X, P.Memo = zt, P.Portal = Lt, P.Profiler = Bt, P.StrictMode = Ht, P.Suspense = Kt, P.isAsyncMode = Ut, P.isConcurrentMode = ke, P.isContextConsumer = Yt, P.isContextProvider = Zt, P.isElement = Vt, P.isForwardRef = Wt, P.isFragment = Gt, P.isLazy = Xt, P.isMemo = Jt, P.isPortal = er, P.isProfiler = tr, P.isStrictMode = rr, P.isSuspense = sr, P.isValidElementType = x, P.typeOf = j;
1148
+ }()), P;
1149
+ }
1150
+ var Ge;
1151
+ function Ls() {
1152
+ return Ge || (Ge = 1, process.env.NODE_ENV === "production" ? ue.exports = Qs() : ue.exports = zs()), ue.exports;
1153
+ }
1154
+ var we, Xe;
1155
+ function Bs() {
1156
+ if (Xe) return we;
1157
+ Xe = 1;
1158
+ var t = Ls(), e = {
1159
+ childContextTypes: !0,
1160
+ contextType: !0,
1161
+ contextTypes: !0,
1162
+ defaultProps: !0,
1163
+ displayName: !0,
1164
+ getDefaultProps: !0,
1165
+ getDerivedStateFromError: !0,
1166
+ getDerivedStateFromProps: !0,
1167
+ mixins: !0,
1168
+ propTypes: !0,
1169
+ type: !0
1170
+ }, r = {
1171
+ name: !0,
1172
+ length: !0,
1173
+ prototype: !0,
1174
+ caller: !0,
1175
+ callee: !0,
1176
+ arguments: !0,
1177
+ arity: !0
1178
+ }, n = {
1179
+ $$typeof: !0,
1180
+ render: !0,
1181
+ defaultProps: !0,
1182
+ displayName: !0,
1183
+ propTypes: !0
1184
+ }, a = {
1185
+ $$typeof: !0,
1186
+ compare: !0,
1187
+ defaultProps: !0,
1188
+ displayName: !0,
1189
+ propTypes: !0,
1190
+ type: !0
1191
+ }, i = {};
1192
+ i[t.ForwardRef] = n, i[t.Memo] = a;
1193
+ function o(m) {
1194
+ return t.isMemo(m) ? a : i[m.$$typeof] || e;
1195
+ }
1196
+ var f = Object.defineProperty, h = Object.getOwnPropertyNames, l = Object.getOwnPropertySymbols, b = Object.getOwnPropertyDescriptor, v = Object.getPrototypeOf, g = Object.prototype;
1197
+ function y(m, p, C) {
1198
+ if (typeof p != "string") {
1199
+ if (g) {
1200
+ var E = v(p);
1201
+ E && E !== g && y(m, E, C);
1202
+ }
1203
+ var T = h(p);
1204
+ l && (T = T.concat(l(p)));
1205
+ for (var x = o(m), j = o(p), c = 0; c < T.length; ++c) {
1206
+ var S = T[c];
1207
+ if (!r[S] && !(C && C[S]) && !(j && j[S]) && !(x && x[S])) {
1208
+ var D = b(p, S);
1209
+ try {
1210
+ f(m, S, D);
1211
+ } catch {
1212
+ }
1213
+ }
1214
+ }
1215
+ }
1216
+ return m;
1217
+ }
1218
+ return we = y, we;
1219
+ }
1220
+ Bs();
1221
+ var Mt = function(e, r, n) {
1222
+ return e = e <= n ? e : n, e = e >= r ? e : r, e;
1223
+ }, Hs = function() {
1224
+ var e = !1, r = [], n = function() {
1225
+ e = !0;
1226
+ var f = r.shift();
1227
+ if (f)
1228
+ return f(n);
1229
+ e = !1;
1230
+ }, a = function() {
1231
+ e = !1, r = [];
1232
+ }, i = function(f) {
1233
+ r.push(f), !e && r.length === 1 && n();
1234
+ };
1235
+ return {
1236
+ clear: a,
1237
+ enqueue: i
1238
+ };
1239
+ }, Ks = function() {
1240
+ var e, r = function() {
1241
+ e && window.cancelAnimationFrame(e);
1242
+ }, n = function(i, o) {
1243
+ var f, h, l = function(v) {
1244
+ if (h = h || v, f = v - h, f > o) {
1245
+ i();
1246
+ return;
1247
+ }
1248
+ e = window.requestAnimationFrame(l);
1249
+ };
1250
+ e = window.requestAnimationFrame(l);
1251
+ };
1252
+ return {
1253
+ cancel: r,
1254
+ schedule: n
1255
+ };
1256
+ }, Us = function(e) {
1257
+ var r = 0;
1258
+ return e >= 0 && e < 0.2 ? r = 0.1 : e >= 0.2 && e < 0.5 ? r = 0.04 : e >= 0.5 && e < 0.8 ? r = 0.02 : e >= 0.8 && e < 0.99 && (r = 5e-3), Mt(e + r, 0, 0.994);
1259
+ }, Je = function(e) {
1260
+ Q(e, []);
1261
+ }, Ys = function(e) {
1262
+ return ++e % 1e6;
1263
+ }, Zs = function() {
1264
+ var e = J(0), r = e[1];
1265
+ return W(function() {
1266
+ return r(Ys);
1267
+ }, []);
1268
+ }, Vs = function(e) {
1269
+ e === void 0 && (e = {});
1270
+ var r = Zs(), n = G(me({}, e)), a = W(function() {
1271
+ return n.current;
1272
+ }, []), i = W(function(o) {
1273
+ o && (Object.assign(n.current, o), r());
1274
+ }, []);
1275
+ return [a, i];
1276
+ }, Ws = function() {
1277
+ var e = G(!0);
1278
+ return e.current ? (e.current = !1, !0) : e.current;
1279
+ }, et = function(e, r) {
1280
+ var n = Ws();
1281
+ Q(function() {
1282
+ if (!n)
1283
+ return e();
1284
+ }, r);
1285
+ }, Ot = function() {
1286
+ }, tt = {
1287
+ isFinished: !0,
1288
+ progress: 0,
1289
+ sideEffect: Ot
1290
+ }, Gs = function(e) {
1291
+ var r = e === void 0 ? {} : e, n = r.animationDuration, a = n === void 0 ? 200 : n, i = r.incrementDuration, o = i === void 0 ? 800 : i, f = r.isAnimating, h = f === void 0 ? !1 : f, l = r.minimum, b = l === void 0 ? 0.08 : l, v = Vs(tt), g = v[0], y = v[1], m = G(null), p = G(null);
1292
+ Je(function() {
1293
+ m.current = Hs(), p.current = Ks();
1294
+ });
1295
+ var C = W(function() {
1296
+ var S, D;
1297
+ (S = p.current) == null || S.cancel(), (D = m.current) == null || D.clear();
1298
+ }, []), E = W(function(S) {
1299
+ var D;
1300
+ if (S = Mt(S, b, 1), S === 1) {
1301
+ var q, L;
1302
+ C(), (q = m.current) == null || q.enqueue(function(U) {
1303
+ y({
1304
+ progress: S,
1305
+ sideEffect: function() {
1306
+ var X;
1307
+ return (X = p.current) == null ? void 0 : X.schedule(U, a);
1308
+ }
1309
+ });
1310
+ }), (L = m.current) == null || L.enqueue(function() {
1311
+ y({
1312
+ isFinished: !0,
1313
+ sideEffect: C
1314
+ });
1315
+ });
1316
+ return;
1317
+ }
1318
+ (D = m.current) == null || D.enqueue(function(U) {
1319
+ y({
1320
+ isFinished: !1,
1321
+ progress: S,
1322
+ sideEffect: function() {
1323
+ var X;
1324
+ return (X = p.current) == null ? void 0 : X.schedule(U, a);
1325
+ }
1326
+ });
1327
+ });
1328
+ }, [a, C, b, m, y, p]), T = W(function() {
1329
+ E(Us(g().progress));
1330
+ }, [g, E]), x = W(function() {
1331
+ var S = function() {
1332
+ var q;
1333
+ T(), (q = m.current) == null || q.enqueue(function(L) {
1334
+ var U;
1335
+ (U = p.current) == null || U.schedule(function() {
1336
+ S(), L();
1337
+ }, o);
1338
+ });
1339
+ };
1340
+ S();
1341
+ }, [o, m, p, T]), j = G(Ot), c = g().sideEffect;
1342
+ return Q(function() {
1343
+ j.current = T;
1344
+ }), Je(function() {
1345
+ return h && x(), C;
1346
+ }), et(function() {
1347
+ g().sideEffect();
1348
+ }, [g, c]), et(function() {
1349
+ h ? y(me({}, tt, {
1350
+ sideEffect: x
1351
+ })) : E(1);
1352
+ }, [h, E, y, x]), {
1353
+ animationDuration: a,
1354
+ isFinished: g().isFinished,
1355
+ progress: g().progress
1356
+ };
1357
+ };
1358
+ const At = (t) => (e) => e.display === "hide" ? !1 : e.display === "auth" && t || e.display === "anon" && !t || !e.display || e.display === "always", kt = () => {
1359
+ const e = ge().state === "loading", [r, n] = J(!1);
1360
+ Q(() => {
1361
+ const o = setTimeout(() => n(e), 100);
1362
+ return () => clearTimeout(o);
1363
+ }, [e]);
1364
+ const { isFinished: a, progress: i } = Gs({ isAnimating: r });
1365
+ return /* @__PURE__ */ s.jsx(
1366
+ "div",
1367
+ {
1368
+ className: "absolute w-0 left-0 right-0 bottom-[-1px] h-[2px] bg-primary transition-all duration-300 ease-in-out",
1369
+ style: {
1370
+ opacity: a ? 0 : 1,
1371
+ width: a ? 0 : `${i * 100}%`
1372
+ }
1373
+ }
1374
+ );
1375
+ }, Xs = () => {
1376
+ const { topNavigation: t } = F(), { isAuthenticated: e } = ae(), r = t.filter(At(e));
1377
+ return r.length === 0 ? /* @__PURE__ */ s.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ s.jsxs(Oe, { children: [
1378
+ /* @__PURE__ */ s.jsxs("div", { className: "items-center justify-between px-8 h-[--top-nav-height] hidden lg:flex text-sm relative", children: [
1379
+ /* @__PURE__ */ s.jsx("nav", { className: "text-sm", children: /* @__PURE__ */ s.jsx("ul", { className: "flex flex-row items-center gap-8", children: r.map((n) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(Rt, { ...n }) }, n.id)) }) }),
1380
+ /* @__PURE__ */ s.jsx(_, { name: "top-navigation-side" })
1381
+ ] }),
1382
+ /* @__PURE__ */ s.jsx(kt, {})
1383
+ ] });
1384
+ }, Rt = ({
1385
+ id: t,
1386
+ label: e,
1387
+ default: r
1388
+ }) => {
1389
+ var l;
1390
+ const { sidebars: n } = F(), a = n[t], i = mt(), o = !!ge().location, f = ((l = i.topNavItem) == null ? void 0 : l.id) === t && !o, h = r ?? (a ? yr(a, (b) => {
1391
+ if (b.type === "doc") return ee(b.id);
1392
+ }) : ee(t)) ?? ee(t);
1393
+ return (
1394
+ // We don't use isActive here because it has to be inside the sidebar,
1395
+ // the top nav id doesn't necessarily start with the sidebar id
1396
+ /* @__PURE__ */ s.jsx(
1397
+ ur,
1398
+ {
1399
+ className: ({ isPending: b }) => vs(
1400
+ "block lg:py-3.5 font-medium -mb-px",
1401
+ f || b ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
1402
+ ),
1403
+ to: h,
1404
+ children: e
1405
+ }
1406
+ )
1407
+ );
1408
+ }, Js = () => {
1409
+ var i;
1410
+ const { topNavigation: t, options: e } = F(), { isAuthenticated: r } = ae(), [n, a] = J(!1);
1411
+ return /* @__PURE__ */ s.jsxs(
1412
+ gs,
1413
+ {
1414
+ direction: "right",
1415
+ open: n,
1416
+ onOpenChange: (o) => a(o),
1417
+ children: [
1418
+ /* @__PURE__ */ s.jsxs("div", { className: "flex lg:hidden justify-self-end", children: [
1419
+ /* @__PURE__ */ s.jsx(xs, { className: "lg:hidden", children: /* @__PURE__ */ s.jsx(zr, { size: 22 }) }),
1420
+ /* @__PURE__ */ s.jsx(kt, {})
1421
+ ] }),
1422
+ /* @__PURE__ */ s.jsx(
1423
+ jt,
1424
+ {
1425
+ className: "lg:hidden h-[100dvh] right-0 left-auto w-[320px] rounded-none",
1426
+ "aria-describedby": void 0,
1427
+ children: /* @__PURE__ */ s.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none h-full flex flex-col justify-between", children: [
1428
+ /* @__PURE__ */ s.jsxs("div", { children: [
1429
+ /* @__PURE__ */ s.jsx(bt, { children: /* @__PURE__ */ s.jsx(wt, { children: "Navigation" }) }),
1430
+ /* @__PURE__ */ s.jsx(Et, { className: "flex p-4" }),
1431
+ /* @__PURE__ */ s.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
1432
+ /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(Tt, {}) }),
1433
+ t.filter(At(r)).map((o) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx("button", { type: "button", onClick: () => a(!1), children: /* @__PURE__ */ s.jsx(Rt, { ...o }) }) }, o.label))
1434
+ ] })
1435
+ ] }),
1436
+ ((i = e.page) == null ? void 0 : i.showPoweredBy) !== !1 && /* @__PURE__ */ s.jsx(Nt, { className: "flex-grow-0 justify-center gap-1" })
1437
+ ] })
1438
+ }
1439
+ )
1440
+ ]
1441
+ }
1442
+ );
1443
+ }, fe = ({ item: t }) => t.children ? /* @__PURE__ */ s.jsxs(ds, { children: [
1444
+ /* @__PURE__ */ s.jsx(fs, { children: t.label }),
1445
+ /* @__PURE__ */ s.jsx(hs, { children: /* @__PURE__ */ s.jsx(ms, { children: t.children.map((e, r) => (
1446
+ // eslint-disable-next-line react/no-array-index-key
1447
+ /* @__PURE__ */ s.jsx(fe, { item: e }, r)
1448
+ )) }) })
1449
+ ] }, t.label) : /* @__PURE__ */ s.jsx(Te, { to: t.path ?? "", children: /* @__PURE__ */ s.jsxs(ps, { className: "flex gap-2", children: [
1450
+ t.icon && /* @__PURE__ */ s.jsx(t.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
1451
+ t.label
1452
+ ] }, t.label) }), _t = vt(function() {
1453
+ const e = ae(), { isAuthenticated: r, profile: n, isAuthEnabled: a } = ae(), i = F(), { page: o, plugins: f } = i, h = f.filter((l) => Jr(l)).flatMap((l) => l.getProfileMenuItems(i)).sort((l) => l.weight ?? 0);
1454
+ return /* @__PURE__ */ s.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
1455
+ /* @__PURE__ */ s.jsx($s, {}),
1456
+ /* @__PURE__ */ s.jsx("div", { className: "border-b", children: /* @__PURE__ */ s.jsxs("div", { className: "max-w-screen-2xl mx-auto flex relative items-center justify-between px-4 lg:px-8 h-[--top-header-height] border-transparent", children: [
1457
+ /* @__PURE__ */ s.jsx("div", { className: "flex", children: /* @__PURE__ */ s.jsx(Te, { to: "/", children: /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-3.5", children: [
1458
+ (o == null ? void 0 : o.logo) && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1459
+ /* @__PURE__ */ s.jsx(
1460
+ "img",
1461
+ {
1462
+ src: /https?:\/\//.test(o.logo.src.light) ? o.logo.src.light : ee(
1463
+ "/",
1464
+ o.logo.src.light
1465
+ ),
1466
+ alt: o.logo.alt ?? o.pageTitle,
1467
+ style: { width: o.logo.width },
1468
+ className: "h-10 dark:hidden",
1469
+ loading: "lazy"
1470
+ }
1471
+ ),
1472
+ /* @__PURE__ */ s.jsx(
1473
+ "img",
1474
+ {
1475
+ src: /https?:\/\//.test(o.logo.src.dark) ? o.logo.src.dark : ee(
1476
+ "/",
1477
+ o.logo.src.dark
1478
+ ),
1479
+ alt: o.logo.alt ?? o.pageTitle,
1480
+ style: { width: o.logo.width },
1481
+ className: "h-10 hidden dark:block",
1482
+ loading: "lazy"
1483
+ }
1484
+ )
1485
+ ] }),
1486
+ /* @__PURE__ */ s.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: o == null ? void 0 : o.pageTitle })
1487
+ ] }) }) }),
1488
+ /* @__PURE__ */ s.jsx("div", { className: "absolute inset-x-0 justify-center items-center hidden lg:flex w-full pointer-events-none", children: /* @__PURE__ */ s.jsx(Et, { className: "pointer-events-auto" }) }),
1489
+ /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-8", children: [
1490
+ /* @__PURE__ */ s.jsx(Js, {}),
1491
+ /* @__PURE__ */ s.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
1492
+ /* @__PURE__ */ s.jsx(_, { name: "head-navigation-start" }),
1493
+ a && /* @__PURE__ */ s.jsx(
1494
+ xe,
1495
+ {
1496
+ fallback: /* @__PURE__ */ s.jsx(qs, { className: "rounded h-5 w-24 mr-4" }),
1497
+ children: r ? Object.values(h).length > 0 && /* @__PURE__ */ s.jsxs(is, { modal: !1, children: [
1498
+ /* @__PURE__ */ s.jsx(cs, { asChild: !0, children: /* @__PURE__ */ s.jsx(Se, { variant: "ghost", children: n != null && n.name ? `${n.name}` : "My Account" }) }),
1499
+ /* @__PURE__ */ s.jsxs(ls, { className: "w-56", children: [
1500
+ /* @__PURE__ */ s.jsxs(us, { children: [
1501
+ n != null && n.name ? `${n.name}` : "My Account",
1502
+ (n == null ? void 0 : n.email) && /* @__PURE__ */ s.jsx("div", { className: "font-normal text-muted-foreground", children: n.email })
1503
+ ] }),
1504
+ h.filter((l) => l.category === "top").length > 0 && /* @__PURE__ */ s.jsx(je, {}),
1505
+ h.filter((l) => l.category === "top").map((l) => /* @__PURE__ */ s.jsx(fe, { item: l }, l.label)),
1506
+ h.filter(
1507
+ (l) => !l.category || l.category === "middle"
1508
+ ).length > 0 && /* @__PURE__ */ s.jsx(je, {}),
1509
+ h.filter(
1510
+ (l) => !l.category || l.category === "middle"
1511
+ ).map((l) => /* @__PURE__ */ s.jsx(fe, { item: l }, l.label)),
1512
+ h.filter((l) => l.category === "bottom").length > 0 && /* @__PURE__ */ s.jsx(je, {}),
1513
+ h.filter((l) => l.category === "bottom").map((l) => /* @__PURE__ */ s.jsx(fe, { item: l }, l.label))
1514
+ ] })
1515
+ ] }) : /* @__PURE__ */ s.jsx(Se, { variant: "ghost", onClick: () => e.login(), children: "Login" })
1516
+ }
1517
+ ),
1518
+ /* @__PURE__ */ s.jsx(_, { name: "head-navigation-end" }),
1519
+ /* @__PURE__ */ s.jsx(Tt, {})
1520
+ ] })
1521
+ ] })
1522
+ ] }) }),
1523
+ /* @__PURE__ */ s.jsx("div", { className: "border-b hidden lg:block", children: /* @__PURE__ */ s.jsxs("div", { className: "max-w-screen-2xl mx-auto border-transparent", children: [
1524
+ /* @__PURE__ */ s.jsx(_, { name: "top-navigation-before" }),
1525
+ /* @__PURE__ */ s.jsx(Xs, {}),
1526
+ /* @__PURE__ */ s.jsx(_, { name: "top-navigation-after" })
1527
+ ] }) })
1528
+ ] });
1529
+ }), Dt = ({
1530
+ shouldScaleBackground: t = !0,
1531
+ ...e
1532
+ }) => /* @__PURE__ */ s.jsx(
1533
+ z.Root,
1534
+ {
1535
+ shouldScaleBackground: t,
1536
+ ...e
1537
+ }
1538
+ );
1539
+ Dt.displayName = "Drawer";
1540
+ const en = z.Trigger, tn = z.Portal, qt = K.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ s.jsx(
1541
+ z.Overlay,
1542
+ {
1543
+ ref: r,
1544
+ className: O("fixed inset-0 z-50 bg-black/80", t),
1545
+ ...e
1546
+ }
1547
+ ));
1548
+ qt.displayName = z.Overlay.displayName;
1549
+ const rn = K.forwardRef(
1550
+ ({ className: t, children: e, hideBar: r = !0, ...n }, a) => /* @__PURE__ */ s.jsxs(tn, { children: [
1551
+ /* @__PURE__ */ s.jsx(qt, {}),
1552
+ /* @__PURE__ */ s.jsxs(
1553
+ z.Content,
1554
+ {
1555
+ ref: a,
1556
+ className: O(
1557
+ "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
1558
+ t
1559
+ ),
1560
+ ...n,
1561
+ children: [
1562
+ !r && /* @__PURE__ */ s.jsx("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
1563
+ e
1564
+ ]
1565
+ }
1566
+ )
1567
+ ] })
1568
+ );
1569
+ rn.displayName = "DrawerContent";
1570
+ const sn = K.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ s.jsx(
1571
+ z.Title,
1572
+ {
1573
+ ref: r,
1574
+ className: O(
1575
+ "text-lg font-semibold leading-none tracking-tight",
1576
+ t
1577
+ ),
1578
+ ...e
1579
+ }
1580
+ ));
1581
+ sn.displayName = z.Title.displayName;
1582
+ const nn = K.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ s.jsx(
1583
+ z.Description,
1584
+ {
1585
+ ref: r,
1586
+ className: O("text-sm text-muted-foreground", t),
1587
+ ...e
1588
+ }
1589
+ ));
1590
+ nn.displayName = z.Description.displayName;
1591
+ const $t = ({
1592
+ children: t,
1593
+ className: e
1594
+ }) => {
1595
+ var a;
1596
+ const { options: r } = F(), n = G(null);
1597
+ return Q(() => {
1598
+ var o;
1599
+ const i = (o = n.current) == null ? void 0 : o.querySelector('[aria-current="page"]');
1600
+ Hr(i ?? null);
1601
+ }, []), /* @__PURE__ */ s.jsxs("div", { className: "grid sticky top-[--header-height] lg:h-[calc(100vh-var(--header-height))] grid-rows-[1fr_min-content] border-r", children: [
1602
+ /* @__PURE__ */ s.jsx(
1603
+ "nav",
1604
+ {
1605
+ ref: n,
1606
+ className: O(
1607
+ "hidden max-w-[calc(var(--side-nav-width)+var(--padding-nav-item))] lg:flex scrollbar flex-col overflow-y-auto shrink-0 text-sm pe-3 ps-4 lg:ps-8",
1608
+ "-mx-[--padding-nav-item] pb-[8vh] pt-[--padding-content-top] scroll-pt-2 gap-1",
1609
+ // Revert the padding/margin on the first child
1610
+ "-mt-2.5",
1611
+ e
1612
+ ),
1613
+ style: {
1614
+ maskImage: "linear-gradient(180deg, transparent 1%, rgba(0, 0, 0, 1) 20px, rgba(0, 0, 0, 1) 90%, transparent 99%)"
1615
+ },
1616
+ children: t
1617
+ }
1618
+ ),
1619
+ /* @__PURE__ */ s.jsx("div", { className: "bg-background border-t p-2 mx-5 gap-2 items-center mt-2 drop-shadow-[0_-3px_1px_rgba(0,0,0,0.015)] hidden lg:[&:has(>_:nth-child(1):last-child)]:flex", children: ((a = r.page) == null ? void 0 : a.showPoweredBy) !== !1 && /* @__PURE__ */ s.jsx(Nt, {}) })
1620
+ ] });
1621
+ };
1622
+ $t.displayName = "SidebarWrapper";
1623
+ const an = ({
1624
+ onRequestClose: t,
1625
+ sidebar: e
1626
+ }) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1627
+ /* @__PURE__ */ s.jsxs($t, { children: [
1628
+ /* @__PURE__ */ s.jsx(_, { name: "zudoku-before-navigation" }),
1629
+ e.map((r) => /* @__PURE__ */ s.jsx(
1630
+ Be,
1631
+ {
1632
+ item: r
1633
+ },
1634
+ ("id" in r ? r.id : "") + ("href" in r ? r.href : "") + r.label
1635
+ )),
1636
+ /* @__PURE__ */ s.jsx(_, { name: "zudoku-after-navigation" })
1637
+ ] }),
1638
+ /* @__PURE__ */ s.jsx(
1639
+ jt,
1640
+ {
1641
+ className: "lg:hidden h-[100dvh] left-0 w-[320px] rounded-none",
1642
+ "aria-describedby": void 0,
1643
+ children: /* @__PURE__ */ s.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
1644
+ /* @__PURE__ */ s.jsx(bt, { children: /* @__PURE__ */ s.jsx(wt, { children: "Sidebar" }) }),
1645
+ e.map((r) => /* @__PURE__ */ s.jsx(
1646
+ Be,
1647
+ {
1648
+ item: r,
1649
+ onRequestClose: t
1650
+ },
1651
+ r.label
1652
+ ))
1653
+ ] })
1654
+ }
1655
+ )
1656
+ ] }), on = ({ children: t }) => {
1657
+ const [e, r] = J(!1), { sidebar: n } = mt(), a = n.length > 0, i = ge().state === "loading";
1658
+ return /* @__PURE__ */ s.jsxs(
1659
+ Dt,
1660
+ {
1661
+ direction: "left",
1662
+ open: e,
1663
+ onOpenChange: (o) => r(o),
1664
+ children: [
1665
+ a && /* @__PURE__ */ s.jsx(
1666
+ an,
1667
+ {
1668
+ onRequestClose: () => r(!1),
1669
+ sidebar: n
1670
+ }
1671
+ ),
1672
+ a && /* @__PURE__ */ s.jsx("div", { className: "lg:hidden -mx-4 px-4 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b", children: /* @__PURE__ */ s.jsxs(en, { className: "flex items-center gap-2 px-4", children: [
1673
+ /* @__PURE__ */ s.jsx(Lr, { size: 16, strokeWidth: 1.5 }),
1674
+ /* @__PURE__ */ s.jsx("span", { className: "text-sm", children: "Menu" })
1675
+ ] }) }),
1676
+ /* @__PURE__ */ s.jsxs(
1677
+ "main",
1678
+ {
1679
+ "data-pagefind-body": !0,
1680
+ className: O(
1681
+ "px-4 lg:pe-8 lg:px-8",
1682
+ !a && "col-span-full",
1683
+ i && "animate-pulse"
1684
+ ),
1685
+ children: [
1686
+ /* @__PURE__ */ s.jsx(_, { name: "zudoku-before-content" }),
1687
+ t,
1688
+ /* @__PURE__ */ s.jsx(_, { name: "zudoku-after-content" })
1689
+ ]
1690
+ }
1691
+ )
1692
+ ]
1693
+ }
1694
+ );
1695
+ }, cn = () => /* @__PURE__ */ s.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ s.jsx(yt, {}) }), ln = ({ children: t }) => {
1696
+ const { meta: e, authentication: r, options: n } = F(), a = pe();
1697
+ return Kr(), ks(), Q(() => {
1698
+ var i;
1699
+ (i = r == null ? void 0 : r.onPageLoad) == null || i.call(r);
1700
+ }, [r]), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1701
+ !1,
1702
+ /* @__PURE__ */ s.jsxs(Ee, { titleTemplate: e == null ? void 0 : e.title, children: [
1703
+ n.canonicalUrlOrigin && /* @__PURE__ */ s.jsx(
1704
+ "link",
1705
+ {
1706
+ rel: "canonical",
1707
+ href: ee(
1708
+ n.canonicalUrlOrigin,
1709
+ n.basePath,
1710
+ a.pathname
1711
+ )
1712
+ }
1713
+ ),
1714
+ (e == null ? void 0 : e.description) && /* @__PURE__ */ s.jsx("meta", { name: "description", content: e.description }),
1715
+ (e == null ? void 0 : e.favicon) && /* @__PURE__ */ s.jsx("link", { rel: "icon", href: e.favicon })
1716
+ ] }),
1717
+ /* @__PURE__ */ s.jsx(_, { name: "layout-before-head" }),
1718
+ /* @__PURE__ */ s.jsx(_t, {}),
1719
+ /* @__PURE__ */ s.jsx(_, { name: "layout-after-head" }),
1720
+ /* @__PURE__ */ s.jsx(
1721
+ "div",
1722
+ {
1723
+ className: O(
1724
+ "grid max-w-screen-2xl w-full lg:mx-auto",
1725
+ "has-[:only-child]:grid-rows-1 grid-rows-[0_min-content_1fr] lg:grid-rows-[min-content_1fr]",
1726
+ "grid-cols-1 lg:grid-cols-[var(--side-nav-width)_1fr]"
1727
+ ),
1728
+ children: /* @__PURE__ */ s.jsx(Oe, { fallback: /* @__PURE__ */ s.jsx(cn, {}), children: /* @__PURE__ */ s.jsx(on, { children: t ?? /* @__PURE__ */ s.jsx(lt, {}) }) })
1729
+ }
1730
+ ),
1731
+ /* @__PURE__ */ s.jsx(Ds, {})
1732
+ ] });
1733
+ }, un = ({
1734
+ title: t = "An error occurred",
1735
+ message: e,
1736
+ category: r
1737
+ }) => /* @__PURE__ */ s.jsxs("div", { className: Yr + " h-full pt-[--padding-content-top]", children: [
1738
+ r && /* @__PURE__ */ s.jsx(Gr, { children: r }),
1739
+ t && /* @__PURE__ */ s.jsx(Ur, { level: 1, className: "flex gap-3.5 items-center", children: t }),
1740
+ /* @__PURE__ */ s.jsx("p", { children: e })
1741
+ ] }), dn = (t) => {
1742
+ switch (t) {
1743
+ case 400:
1744
+ return {
1745
+ title: "Bad Request",
1746
+ message: "The request could not be understood by the server due to malformed syntax."
1747
+ };
1748
+ case 403:
1749
+ return {
1750
+ title: "Forbidden",
1751
+ message: "You don't have permission to access this resource."
1752
+ };
1753
+ case 404:
1754
+ return {
1755
+ title: "Not Found",
1756
+ message: "The requested resource could not be found."
1757
+ };
1758
+ case 405:
1759
+ return {
1760
+ title: "Method Not Allowed",
1761
+ message: "The request method is not supported for the requested resource."
1762
+ };
1763
+ case 414:
1764
+ return {
1765
+ title: "Request URI Too Large",
1766
+ message: "The request URI is too large."
1767
+ };
1768
+ case 416:
1769
+ return {
1770
+ title: "Range Not Satisfiable",
1771
+ message: "The server cannot satisfy the request range."
1772
+ };
1773
+ case 500:
1774
+ return {
1775
+ title: "Internal Server Error",
1776
+ message: "An unexpected error occurred while processing your request."
1777
+ };
1778
+ case 501:
1779
+ return {
1780
+ title: "Not Implemented",
1781
+ message: "The server does not support the functionality required to fulfill the request."
1782
+ };
1783
+ case 502:
1784
+ return {
1785
+ title: "Bad Gateway",
1786
+ message: "The server received an invalid response from the upstream server."
1787
+ };
1788
+ case 503:
1789
+ return {
1790
+ title: "Service Unavailable",
1791
+ message: "The server is temporarily unable to handle the request."
1792
+ };
1793
+ case 504:
1794
+ return {
1795
+ title: "Gateway Timeout",
1796
+ message: "The server did not receive a timely response from the upstream server."
1797
+ };
1798
+ default:
1799
+ return {
1800
+ title: "An error occurred",
1801
+ message: "Something went wrong while processing your request."
1802
+ };
1803
+ }
1804
+ }, fn = ({ statusCode: t, message: e }) => {
1805
+ const r = dn(t);
1806
+ return /* @__PURE__ */ s.jsx(
1807
+ un,
1808
+ {
1809
+ title: r.title,
1810
+ message: e ?? r.message,
1811
+ category: t
1812
+ }
1813
+ );
1814
+ }, hn = Me(null), Pe = {
1815
+ didCatch: !1,
1816
+ error: null
1817
+ };
1818
+ class mn extends Or {
1819
+ constructor(e) {
1820
+ super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Pe;
1821
+ }
1822
+ static getDerivedStateFromError(e) {
1823
+ return {
1824
+ didCatch: !0,
1825
+ error: e
1826
+ };
1827
+ }
1828
+ resetErrorBoundary() {
1829
+ const {
1830
+ error: e
1831
+ } = this.state;
1832
+ if (e !== null) {
1833
+ for (var r, n, a = arguments.length, i = new Array(a), o = 0; o < a; o++)
1834
+ i[o] = arguments[o];
1835
+ (r = (n = this.props).onReset) === null || r === void 0 || r.call(n, {
1836
+ args: i,
1837
+ reason: "imperative-api"
1838
+ }), this.setState(Pe);
1839
+ }
1840
+ }
1841
+ componentDidCatch(e, r) {
1842
+ var n, a;
1843
+ (n = (a = this.props).onError) === null || n === void 0 || n.call(a, e, r);
1844
+ }
1845
+ componentDidUpdate(e, r) {
1846
+ const {
1847
+ didCatch: n
1848
+ } = this.state, {
1849
+ resetKeys: a
1850
+ } = this.props;
1851
+ if (n && r.error !== null && pn(e.resetKeys, a)) {
1852
+ var i, o;
1853
+ (i = (o = this.props).onReset) === null || i === void 0 || i.call(o, {
1854
+ next: a,
1855
+ prev: e.resetKeys,
1856
+ reason: "keys"
1857
+ }), this.setState(Pe);
1858
+ }
1859
+ }
1860
+ render() {
1861
+ const {
1862
+ children: e,
1863
+ fallbackRender: r,
1864
+ FallbackComponent: n,
1865
+ fallback: a
1866
+ } = this.props, {
1867
+ didCatch: i,
1868
+ error: o
1869
+ } = this.state;
1870
+ let f = e;
1871
+ if (i) {
1872
+ const h = {
1873
+ error: o,
1874
+ resetErrorBoundary: this.resetErrorBoundary
1875
+ };
1876
+ if (typeof r == "function")
1877
+ f = r(h);
1878
+ else if (n)
1879
+ f = Le(n, h);
1880
+ else if (a !== void 0)
1881
+ f = a;
1882
+ else
1883
+ throw o;
1884
+ }
1885
+ return Le(hn.Provider, {
1886
+ value: {
1887
+ didCatch: i,
1888
+ error: o,
1889
+ resetErrorBoundary: this.resetErrorBoundary
1890
+ }
1891
+ }, f);
1892
+ }
1893
+ }
1894
+ function pn() {
1895
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
1896
+ return t.length !== e.length || t.some((r, n) => !Object.is(r, e[n]));
1897
+ }
1898
+ let gn = () => ({
1899
+ emit(t, ...e) {
1900
+ for (let r = this.events[t] || [], n = 0, a = r.length; n < a; n++)
1901
+ r[n](...e);
1902
+ },
1903
+ events: {},
1904
+ on(t, e) {
1905
+ var r;
1906
+ return ((r = this.events)[t] || (r[t] = [])).push(e), () => {
1907
+ var n;
1908
+ this.events[t] = (n = this.events[t]) == null ? void 0 : n.filter((a) => e !== a);
1909
+ };
1910
+ }
1911
+ });
1912
+ class xn {
1913
+ constructor(e, r) {
1914
+ A(this, "plugins");
1915
+ A(this, "sidebars");
1916
+ A(this, "topNavigation");
1917
+ A(this, "meta");
1918
+ A(this, "page");
1919
+ A(this, "authentication");
1920
+ A(this, "navigationPlugins");
1921
+ A(this, "emitter", gn());
1922
+ A(this, "initialize", async () => {
1923
+ await Promise.all(
1924
+ this.plugins.filter(rs).map((e) => {
1925
+ var r;
1926
+ return (r = e.initialize) == null ? void 0 : r.call(e, this);
1927
+ })
1928
+ );
1929
+ });
1930
+ A(this, "getApiIdentities", async () => (await Promise.all(
1931
+ this.plugins.filter(ss).map((r) => r.getIdentities(this))
1932
+ )).flat());
1933
+ A(this, "emitEvent", (e, ...r) => this.emitter.emit(e, ...r));
1934
+ A(this, "getPluginSidebar", async (e) => (await Promise.all(
1935
+ this.navigationPlugins.map(
1936
+ (n) => {
1937
+ var a;
1938
+ return (a = n.getSidebar) == null ? void 0 : a.call(n, jr(e), this);
1939
+ }
1940
+ )
1941
+ )).flatMap((n) => n ?? []));
1942
+ A(this, "signRequest", async (e) => {
1943
+ if (!this.authentication)
1944
+ throw new Error("No authentication provider configured");
1945
+ return await this.authentication.signRequest(e);
1946
+ });
1947
+ this.options = e, this.queryClient = r, this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(es), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.plugins.forEach((n) => {
1948
+ ts(n) && os(n.events).forEach(([a, i]) => {
1949
+ this.emitter.on(a, i);
1950
+ });
1951
+ }), br.subscribe((n, a) => {
1952
+ this.emitEvent("auth", {
1953
+ prev: a,
1954
+ next: n
1955
+ });
1956
+ });
1957
+ }
1958
+ addEventListener(e, r) {
1959
+ return this.emitter.on(e, r);
1960
+ }
1961
+ }
1962
+ function vn({ error: t, resetErrorBoundary: e }) {
1963
+ return /* @__PURE__ */ s.jsx(pt, { error: t });
1964
+ }
1965
+ const de = globalThis;
1966
+ (!de.requestIdleCallback || !de.cancelIdleCallback) && (de.requestIdleCallback = (t) => setTimeout(t, 1), de.cancelIdleCallback = clearTimeout);
1967
+ const It = {
1968
+ Header: _t
1969
+ }, yn = Me(It), bn = yn.Provider, jn = () => {
1970
+ const t = pe(), e = F(), r = G(void 0);
1971
+ return Q(() => {
1972
+ e.emitEvent("location", {
1973
+ from: r.current,
1974
+ to: t
1975
+ }), r.current = t;
1976
+ }, [e, t]), null;
1977
+ }, wn = ({
1978
+ children: t,
1979
+ context: e
1980
+ }) => (wr({
1981
+ queryFn: async () => (await e.initialize(), !0),
1982
+ queryKey: ["zudoku-initialize"]
1983
+ }), /* @__PURE__ */ s.jsx(Pr.Provider, { value: e, children: t }));
1984
+ let rt;
1985
+ const Ft = vt(
1986
+ ({ children: t, ...e }) => {
1987
+ var g, y;
1988
+ const r = be(
1989
+ () => ({ ...It, ...e.overrides }),
1990
+ [e.overrides]
1991
+ ), n = pe(), a = be(() => {
1992
+ var p;
1993
+ return {
1994
+ ...(e.plugins ?? []).filter(ns).flatMap(
1995
+ (C) => C.getMdxComponents ? [C.getMdxComponents()] : []
1996
+ ).reduce(
1997
+ (C, E) => ({ ...C, ...E }),
1998
+ {}
1999
+ ),
2000
+ ...Zr,
2001
+ ...(p = e.mdx) == null ? void 0 : p.components
2002
+ };
2003
+ }, [(g = e.mdx) == null ? void 0 : g.components, e.plugins]), { stagger: i } = Ar(Ne), [o, f] = J(!1), h = be(
2004
+ () => o ? { stagger: !0 } : { stagger: i },
2005
+ [i, o]
2006
+ ), l = ge(), b = ft();
2007
+ Q(() => {
2008
+ o || f(!0);
2009
+ }, [o, l.location]), rt ?? (rt = new xn(e, b));
2010
+ const v = (y = e.plugins) == null ? void 0 : y.flatMap(
2011
+ (m) => {
2012
+ var p;
2013
+ return as(m) ? ((p = m.getHead) == null ? void 0 : p.call(m, { location: n })) ?? [] : [];
2014
+ }
2015
+ ).map((m, p) => /* @__PURE__ */ s.jsx(Ee, { children: m }, p));
2016
+ return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
2017
+ v,
2018
+ /* @__PURE__ */ s.jsx(Ne.Provider, { value: h, children: /* @__PURE__ */ s.jsxs(wn, { context: rt, children: [
2019
+ /* @__PURE__ */ s.jsx(jn, {}),
2020
+ /* @__PURE__ */ s.jsx(ys, { components: a, children: /* @__PURE__ */ s.jsx(ir, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ s.jsx(bn, { value: r, children: /* @__PURE__ */ s.jsx(Nr, { slotlets: e.slotlets, children: /* @__PURE__ */ s.jsx(Vr, { children: t ?? /* @__PURE__ */ s.jsx(lt, {}) }) }) }) }) })
2021
+ ] }) })
2022
+ ] });
2023
+ }
2024
+ );
2025
+ Ft.displayName = "ZudokoInner";
2026
+ const Qt = (t) => /* @__PURE__ */ s.jsx(mn, { FallbackComponent: vn, children: /* @__PURE__ */ s.jsx(Ft, { ...t }) });
2027
+ Qt.displayName = "Zudoku";
2028
+ const Zn = St, Vn = ln, Wn = Er, Gn = Ns, Xn = Ms, Jn = Os, ea = or, ta = Ee, Pn = F, ra = ae, sa = Sr, na = Cr, aa = Qt, oa = fn, ia = Tr, ca = Wr, la = yt, ua = xe, da = gt, fa = Te, ha = ct, ma = As;
2029
+ export {
2030
+ da as B,
2031
+ na as C,
2032
+ ta as H,
2033
+ fa as L,
2034
+ ca as M,
2035
+ Wn as R,
2036
+ Gn as S,
2037
+ aa as Z,
2038
+ ra as a,
2039
+ Pn as b,
2040
+ Zn as c,
2041
+ Vn as d,
2042
+ Xn as e,
2043
+ Jn as f,
2044
+ ea as g,
2045
+ sa as h,
2046
+ oa as i,
2047
+ ia as j,
2048
+ la as k,
2049
+ ua as l,
2050
+ ha as m,
2051
+ ma as n,
2052
+ St as u
2053
+ };
2054
+ //# sourceMappingURL=index-CBpciIfE.js.map