zudoku 0.0.0-ff3bc72 → 0.0.0-zuplo-api-keys.534c6f8

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 (1781) hide show
  1. package/README.md +121 -0
  2. package/cli.js +11 -2
  3. package/dist/app/ZuploBuildConfig.d.ts +155 -0
  4. package/dist/app/ZuploBuildConfig.js +29 -0
  5. package/dist/app/ZuploBuildConfig.js.map +1 -0
  6. package/dist/app/demo.js +1 -4
  7. package/dist/app/demo.js.map +1 -1
  8. package/dist/app/entry.client.d.ts +6 -0
  9. package/dist/app/entry.client.js +53 -3
  10. package/dist/app/entry.client.js.map +1 -1
  11. package/dist/app/entry.server.d.ts +9 -6
  12. package/dist/app/entry.server.js +21 -14
  13. package/dist/app/entry.server.js.map +1 -1
  14. package/dist/app/env.d.ts +33 -0
  15. package/dist/app/env.js +29 -0
  16. package/dist/app/env.js.map +1 -0
  17. package/dist/app/main.d.ts +3 -2
  18. package/dist/app/main.js +50 -61
  19. package/dist/app/main.js.map +1 -1
  20. package/dist/app/sentry.d.ts +3 -0
  21. package/dist/app/sentry.js +19 -0
  22. package/dist/app/sentry.js.map +1 -0
  23. package/dist/app/standalone.js +1 -4
  24. package/dist/app/standalone.js.map +1 -1
  25. package/dist/cli/build/handler.d.ts +1 -3
  26. package/dist/cli/build/handler.js +9 -1
  27. package/dist/cli/build/handler.js.map +1 -1
  28. package/dist/cli/cli.js +18 -5
  29. package/dist/cli/cli.js.map +1 -1
  30. package/dist/cli/cmds/build.d.ts +11 -3
  31. package/dist/cli/cmds/build.js +21 -13
  32. package/dist/cli/cmds/build.js.map +1 -1
  33. package/dist/cli/cmds/dev.d.ts +1 -1
  34. package/dist/cli/cmds/dev.js +5 -0
  35. package/dist/cli/cmds/dev.js.map +1 -1
  36. package/dist/cli/cmds/preview.d.ts +16 -0
  37. package/dist/cli/cmds/preview.js +25 -0
  38. package/dist/cli/cmds/preview.js.map +1 -0
  39. package/dist/cli/common/logger.js +9 -0
  40. package/dist/cli/common/logger.js.map +1 -1
  41. package/dist/cli/common/machine-id/lib.js +1 -0
  42. package/dist/cli/common/machine-id/lib.js.map +1 -1
  43. package/dist/cli/common/outdated.js +2 -1
  44. package/dist/cli/common/outdated.js.map +1 -1
  45. package/dist/cli/common/output.js.map +1 -1
  46. package/dist/cli/common/utils/box.js.map +1 -1
  47. package/dist/cli/common/utils/ports.d.ts +1 -1
  48. package/dist/cli/common/utils/ports.js +16 -15
  49. package/dist/cli/common/utils/ports.js.map +1 -1
  50. package/dist/cli/dev/handler.d.ts +1 -0
  51. package/dist/cli/dev/handler.js +16 -13
  52. package/dist/cli/dev/handler.js.map +1 -1
  53. package/dist/cli/preview/handler.d.ts +3 -0
  54. package/dist/cli/preview/handler.js +35 -0
  55. package/dist/cli/preview/handler.js.map +1 -0
  56. package/dist/codegen.d.ts +3 -0
  57. package/dist/codegen.js +45 -0
  58. package/dist/codegen.js.map +1 -0
  59. package/dist/config/config.d.ts +20 -16
  60. package/dist/config/file-exists.d.ts +1 -0
  61. package/dist/config/file-exists.js +5 -0
  62. package/dist/config/file-exists.js.map +1 -0
  63. package/dist/config/loader.d.ts +19 -0
  64. package/dist/config/loader.js +135 -0
  65. package/dist/config/loader.js.map +1 -0
  66. package/dist/config/validators/BuildSchema.d.ts +60 -0
  67. package/dist/config/validators/BuildSchema.js +31 -0
  68. package/dist/config/validators/BuildSchema.js.map +1 -0
  69. package/dist/config/validators/InputSidebarSchema.d.ts +63 -32
  70. package/dist/config/validators/InputSidebarSchema.js +17 -28
  71. package/dist/config/validators/InputSidebarSchema.js.map +1 -1
  72. package/dist/config/validators/SidebarSchema.d.ts +24 -1
  73. package/dist/config/validators/SidebarSchema.js +80 -44
  74. package/dist/config/validators/SidebarSchema.js.map +1 -1
  75. package/dist/config/validators/icon-types.d.ts +1 -0
  76. package/dist/config/validators/icon-types.js +2 -0
  77. package/dist/config/validators/icon-types.js.map +1 -0
  78. package/dist/config/validators/validate.d.ts +4690 -332
  79. package/dist/config/validators/validate.js +273 -82
  80. package/dist/config/validators/validate.js.map +1 -1
  81. package/dist/index.d.ts +9 -2
  82. package/dist/index.js +4 -1
  83. package/dist/index.js.map +1 -1
  84. package/dist/lib/MissingIcon.d.ts +2 -0
  85. package/dist/lib/MissingIcon.js +7 -0
  86. package/dist/lib/MissingIcon.js.map +1 -0
  87. package/dist/lib/authentication/AuthenticationPlugin.d.ts +11 -4
  88. package/dist/lib/authentication/AuthenticationPlugin.js +16 -1
  89. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  90. package/dist/lib/authentication/authentication.d.ts +4 -5
  91. package/dist/lib/authentication/components/CallbackHandler.js +25 -31
  92. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  93. package/dist/lib/authentication/components/SignIn.d.ts +1 -1
  94. package/dist/lib/authentication/components/SignIn.js +5 -2
  95. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  96. package/dist/lib/authentication/components/SignOut.js +2 -2
  97. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  98. package/dist/lib/authentication/components/SignUp.d.ts +1 -1
  99. package/dist/lib/authentication/components/SignUp.js +4 -1
  100. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  101. package/dist/lib/authentication/hook.d.ts +6 -4
  102. package/dist/lib/authentication/hook.js +12 -4
  103. package/dist/lib/authentication/hook.js.map +1 -1
  104. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  105. package/dist/lib/authentication/providers/auth0.js +15 -13
  106. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  107. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  108. package/dist/lib/authentication/providers/clerk.js +116 -47
  109. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  110. package/dist/lib/authentication/providers/openid.d.ts +21 -19
  111. package/dist/lib/authentication/providers/openid.js +62 -69
  112. package/dist/lib/authentication/providers/openid.js.map +1 -1
  113. package/dist/lib/authentication/providers/supabase.d.ts +4 -0
  114. package/dist/lib/authentication/providers/supabase.js +115 -0
  115. package/dist/lib/authentication/providers/supabase.js.map +1 -0
  116. package/dist/lib/authentication/state.d.ts +23 -19
  117. package/dist/lib/authentication/state.js +34 -7
  118. package/dist/lib/authentication/state.js.map +1 -1
  119. package/dist/lib/authentication/use-broadcast/shared.d.ts +48 -0
  120. package/dist/lib/authentication/use-broadcast/shared.js +243 -0
  121. package/dist/lib/authentication/use-broadcast/shared.js.map +1 -0
  122. package/dist/lib/authentication/use-broadcast/useBroadcast.d.ts +24 -0
  123. package/dist/lib/authentication/use-broadcast/useBroadcast.js +106 -0
  124. package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -0
  125. package/dist/lib/components/AnchorLink.d.ts +2 -2
  126. package/dist/lib/components/AnchorLink.js +9 -5
  127. package/dist/lib/components/AnchorLink.js.map +1 -1
  128. package/dist/lib/components/Autocomplete.d.ts +13 -0
  129. package/dist/lib/components/Autocomplete.js +47 -0
  130. package/dist/lib/components/Autocomplete.js.map +1 -0
  131. package/dist/lib/components/Banner.js +1 -1
  132. package/dist/lib/components/Banner.js.map +1 -1
  133. package/dist/lib/components/Bootstrap.d.ts +5 -3
  134. package/dist/lib/components/Bootstrap.js +13 -6
  135. package/dist/lib/components/Bootstrap.js.map +1 -1
  136. package/dist/lib/components/BuildCheck.d.ts +4 -0
  137. package/dist/lib/components/BuildCheck.js +38 -0
  138. package/dist/lib/components/BuildCheck.js.map +1 -0
  139. package/dist/lib/components/ClientOnly.d.ts +4 -2
  140. package/dist/lib/components/ClientOnly.js +1 -1
  141. package/dist/lib/components/ClientOnly.js.map +1 -1
  142. package/dist/lib/components/DeveloperHint.js +2 -1
  143. package/dist/lib/components/DeveloperHint.js.map +1 -1
  144. package/dist/lib/components/ErrorPage.js +1 -1
  145. package/dist/lib/components/Footer.d.ts +1 -0
  146. package/dist/lib/components/Footer.js +32 -0
  147. package/dist/lib/components/Footer.js.map +1 -0
  148. package/dist/lib/components/Header.js +31 -12
  149. package/dist/lib/components/Header.js.map +1 -1
  150. package/dist/lib/components/Heading.d.ts +5 -5
  151. package/dist/lib/components/Heading.js +1 -1
  152. package/dist/lib/components/Heading.js.map +1 -1
  153. package/dist/lib/components/InlineCode.d.ts +2 -1
  154. package/dist/lib/components/InlineCode.js +2 -9
  155. package/dist/lib/components/InlineCode.js.map +1 -1
  156. package/dist/lib/components/Layout.js +10 -21
  157. package/dist/lib/components/Layout.js.map +1 -1
  158. package/dist/lib/components/Main.d.ts +2 -0
  159. package/dist/lib/components/Main.js +18 -0
  160. package/dist/lib/components/Main.js.map +1 -0
  161. package/dist/lib/components/Markdown.d.ts +4 -2
  162. package/dist/lib/components/Markdown.js +10 -14
  163. package/dist/lib/components/Markdown.js.map +1 -1
  164. package/dist/lib/components/MobileTopNavigation.js +14 -7
  165. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  166. package/dist/lib/components/NotFoundPage.js +2 -2
  167. package/dist/lib/components/NotFoundPage.js.map +1 -1
  168. package/dist/lib/components/Pagination.d.ts +11 -0
  169. package/dist/lib/components/Pagination.js +10 -0
  170. package/dist/lib/components/Pagination.js.map +1 -0
  171. package/dist/lib/components/PathRenderer.d.ts +11 -0
  172. package/dist/lib/components/PathRenderer.js +28 -0
  173. package/dist/lib/components/PathRenderer.js.map +1 -0
  174. package/dist/lib/components/ReactMarkdown.d.ts +29 -0
  175. package/dist/lib/components/ReactMarkdown.js +182 -0
  176. package/dist/lib/components/ReactMarkdown.js.map +1 -0
  177. package/dist/lib/components/Search.d.ts +3 -1
  178. package/dist/lib/components/Search.js +9 -3
  179. package/dist/lib/components/Search.js.map +1 -1
  180. package/dist/lib/components/Slot.d.ts +17 -0
  181. package/dist/lib/components/Slot.js +24 -0
  182. package/dist/lib/components/Slot.js.map +1 -0
  183. package/dist/lib/components/Slot.test.js +163 -0
  184. package/dist/lib/components/Slot.test.js.map +1 -0
  185. package/dist/lib/components/StatusPage.d.ts +7 -0
  186. package/dist/lib/components/StatusPage.js +71 -0
  187. package/dist/lib/components/StatusPage.js.map +1 -0
  188. package/dist/lib/components/ThemeSwitch.d.ts +1 -0
  189. package/dist/lib/components/ThemeSwitch.js +16 -0
  190. package/dist/lib/components/ThemeSwitch.js.map +1 -0
  191. package/dist/lib/components/TopNavigation.d.ts +3 -0
  192. package/dist/lib/components/TopNavigation.js +53 -8
  193. package/dist/lib/components/TopNavigation.js.map +1 -1
  194. package/dist/lib/components/Zudoku.d.ts +7 -0
  195. package/dist/lib/components/Zudoku.js +58 -0
  196. package/dist/lib/components/Zudoku.js.map +1 -0
  197. package/dist/lib/components/cache.d.ts +13 -0
  198. package/dist/lib/components/cache.js +20 -0
  199. package/dist/lib/components/cache.js.map +1 -0
  200. package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
  201. package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
  202. package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
  203. package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
  204. package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
  205. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
  206. package/dist/lib/components/context/SlotProvider.d.ts +26 -0
  207. package/dist/lib/components/context/SlotProvider.js +83 -0
  208. package/dist/lib/components/context/SlotProvider.js.map +1 -0
  209. package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
  210. package/dist/lib/components/context/ViewportAnchorContext.js +29 -23
  211. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  212. package/dist/lib/components/context/ZudokuContext.d.ts +10 -14
  213. package/dist/lib/components/context/ZudokuContext.js +40 -27
  214. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  215. package/dist/lib/components/context/ZudokuProvider.d.ts +2 -2
  216. package/dist/lib/components/context/ZudokuProvider.js +2 -1
  217. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  218. package/dist/lib/components/index.d.ts +59 -16
  219. package/dist/lib/components/index.js +27 -6
  220. package/dist/lib/components/index.js.map +1 -1
  221. package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
  222. package/dist/lib/components/navigation/PoweredByZudoku.js +7 -0
  223. package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
  224. package/dist/lib/components/navigation/Sidebar.d.ts +5 -1
  225. package/dist/lib/components/navigation/Sidebar.js +4 -8
  226. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  227. package/dist/lib/components/navigation/SidebarBadge.d.ts +6 -3
  228. package/dist/lib/components/navigation/SidebarBadge.js +13 -11
  229. package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
  230. package/dist/lib/components/navigation/SidebarCategory.d.ts +3 -3
  231. package/dist/lib/components/navigation/SidebarCategory.js +32 -14
  232. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  233. package/dist/lib/components/navigation/SidebarItem.d.ts +3 -4
  234. package/dist/lib/components/navigation/SidebarItem.js +23 -17
  235. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  236. package/dist/lib/components/navigation/SidebarWrapper.d.ts +7 -6
  237. package/dist/lib/components/navigation/SidebarWrapper.js +18 -3
  238. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  239. package/dist/lib/components/navigation/Toc.js +46 -0
  240. package/dist/lib/components/navigation/Toc.js.map +1 -0
  241. package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
  242. package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
  243. package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
  244. package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
  245. package/dist/lib/components/navigation/ZuploLogo.js +4 -0
  246. package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
  247. package/dist/lib/components/navigation/utils.d.ts +3 -0
  248. package/dist/lib/components/navigation/utils.js +19 -15
  249. package/dist/lib/components/navigation/utils.js.map +1 -1
  250. package/dist/lib/core/RouteGuard.d.ts +2 -0
  251. package/dist/lib/core/RouteGuard.js +52 -0
  252. package/dist/lib/core/RouteGuard.js.map +1 -0
  253. package/dist/lib/core/ZudokuContext.d.ts +112 -0
  254. package/dist/lib/core/ZudokuContext.js +70 -0
  255. package/dist/lib/core/ZudokuContext.js.map +1 -0
  256. package/dist/lib/core/plugins.d.ts +35 -17
  257. package/dist/lib/core/plugins.js +4 -0
  258. package/dist/lib/core/plugins.js.map +1 -1
  259. package/dist/lib/errors/ErrorAlert.d.ts +1 -1
  260. package/dist/lib/errors/ErrorAlert.js +13 -3
  261. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  262. package/dist/lib/errors/RouterError.js +1 -1
  263. package/dist/lib/errors/RouterError.js.map +1 -1
  264. package/dist/lib/hooks/index.d.ts +3 -0
  265. package/dist/lib/hooks/index.js +5 -0
  266. package/dist/lib/hooks/index.js.map +1 -0
  267. package/dist/lib/hooks/useEvent.d.ts +11 -0
  268. package/dist/lib/hooks/useEvent.js +19 -0
  269. package/dist/lib/hooks/useEvent.js.map +1 -0
  270. package/dist/lib/hooks/useEvent.test.js +100 -0
  271. package/dist/lib/hooks/useEvent.test.js.map +1 -0
  272. package/dist/lib/icons.d.ts +1 -0
  273. package/dist/lib/icons.js +1 -0
  274. package/dist/lib/icons.js.map +1 -1
  275. package/dist/lib/oas/graphql/circular.d.ts +3 -0
  276. package/dist/lib/oas/graphql/circular.js +43 -0
  277. package/dist/lib/oas/graphql/circular.js.map +1 -0
  278. package/dist/lib/oas/graphql/index.d.ts +25 -1
  279. package/dist/lib/oas/graphql/index.js +216 -69
  280. package/dist/lib/oas/graphql/index.js.map +1 -1
  281. package/dist/lib/oas/parser/dereference/index.js +8 -3
  282. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  283. package/dist/lib/oas/parser/index.d.ts +8 -3
  284. package/dist/lib/oas/parser/index.js +7 -23
  285. package/dist/lib/oas/parser/index.js.map +1 -1
  286. package/dist/lib/oas/parser/upgrade/index.d.ts +3 -2
  287. package/dist/lib/oas/parser/upgrade/index.js +83 -31
  288. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  289. package/dist/lib/plugins/api-catalog/Catalog.d.ts +4 -0
  290. package/dist/lib/plugins/api-catalog/Catalog.js +26 -0
  291. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
  292. package/dist/lib/plugins/api-catalog/index.d.ts +31 -0
  293. package/dist/lib/plugins/api-catalog/index.js +46 -0
  294. package/dist/lib/plugins/api-catalog/index.js.map +1 -0
  295. package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +3 -2
  296. package/dist/lib/plugins/api-keys/CreateApiKey.js +16 -8
  297. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  298. package/dist/lib/plugins/api-keys/ProtectedRoute.js +1 -1
  299. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
  300. package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
  301. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +55 -24
  302. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  303. package/dist/lib/plugins/api-keys/index.d.ts +23 -13
  304. package/dist/lib/plugins/api-keys/index.js +48 -32
  305. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  306. package/dist/lib/plugins/custom-pages/CustomPage.d.ts +2 -0
  307. package/dist/lib/plugins/custom-pages/CustomPage.js +11 -0
  308. package/dist/lib/plugins/custom-pages/CustomPage.js.map +1 -0
  309. package/dist/lib/plugins/custom-pages/index.d.ts +10 -0
  310. package/dist/lib/plugins/custom-pages/index.js +11 -0
  311. package/dist/lib/plugins/custom-pages/index.js.map +1 -0
  312. package/dist/lib/plugins/markdown/MdxPage.d.ts +10 -2
  313. package/dist/lib/plugins/markdown/MdxPage.js +17 -4
  314. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  315. package/dist/lib/plugins/markdown/index.d.ts +8 -7
  316. package/dist/lib/plugins/markdown/index.js +31 -3
  317. package/dist/lib/plugins/markdown/index.js.map +1 -1
  318. package/dist/lib/plugins/markdown/resolver.d.ts +32 -0
  319. package/dist/lib/plugins/markdown/resolver.js +46 -0
  320. package/dist/lib/plugins/markdown/resolver.js.map +1 -0
  321. package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +5 -0
  322. package/dist/lib/plugins/openapi/CollapsibleCode.js +25 -0
  323. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -0
  324. package/dist/lib/plugins/openapi/ColorizedParam.d.ts +10 -2
  325. package/dist/lib/plugins/openapi/ColorizedParam.js +29 -14
  326. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  327. package/dist/lib/plugins/openapi/Endpoint.js +13 -16
  328. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  329. package/dist/lib/plugins/openapi/OasProvider.d.ts +8 -0
  330. package/dist/lib/plugins/openapi/OasProvider.js +29 -0
  331. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -0
  332. package/dist/lib/plugins/openapi/OperationList.d.ts +6 -3
  333. package/dist/lib/plugins/openapi/OperationList.js +107 -27
  334. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  335. package/dist/lib/plugins/openapi/OperationListItem.d.ts +5 -3
  336. package/dist/lib/plugins/openapi/OperationListItem.js +12 -6
  337. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  338. package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
  339. package/dist/lib/plugins/openapi/ParamInfos.js +45 -0
  340. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
  341. package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -1
  342. package/dist/lib/plugins/openapi/ParameterList.js +3 -2
  343. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  344. package/dist/lib/plugins/openapi/ParameterListItem.js +19 -1
  345. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  346. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +4 -2
  347. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +12 -3
  348. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  349. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +3 -4
  350. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +5 -9
  351. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  352. package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +2 -4
  353. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +4 -6
  354. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  355. package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
  356. package/dist/lib/plugins/openapi/SchemaList.js +53 -0
  357. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
  358. package/dist/lib/plugins/openapi/Sidecar.d.ts +1 -1
  359. package/dist/lib/plugins/openapi/Sidecar.js +114 -65
  360. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  361. package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
  362. package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
  363. package/dist/lib/plugins/openapi/SidecarExamples.d.ts +9 -0
  364. package/dist/lib/plugins/openapi/SidecarExamples.js +76 -0
  365. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -0
  366. package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
  367. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
  368. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
  369. package/dist/lib/plugins/openapi/client/GraphQLClient.js +43 -0
  370. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
  371. package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
  372. package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
  373. package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
  374. package/dist/lib/plugins/openapi/client/createServer.d.ts +3 -1
  375. package/dist/lib/plugins/openapi/client/createServer.js +5 -2
  376. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
  377. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +14 -0
  378. package/dist/lib/plugins/openapi/client/useCreateQuery.js +20 -0
  379. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
  380. package/dist/lib/plugins/openapi/components/ConstValue.d.ts +5 -0
  381. package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
  382. package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
  383. package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
  384. package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
  385. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
  386. package/dist/lib/plugins/openapi/components/ResponseContent.d.ts +12 -0
  387. package/dist/lib/plugins/openapi/components/ResponseContent.js +21 -0
  388. package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -0
  389. package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
  390. package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
  391. package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
  392. package/dist/lib/plugins/openapi/context.d.ts +3 -3
  393. package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
  394. package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
  395. package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
  396. package/dist/lib/plugins/openapi/graphql/gql.d.ts +8 -46
  397. package/dist/lib/plugins/openapi/graphql/gql.js +6 -13
  398. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  399. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +141 -25
  400. package/dist/lib/plugins/openapi/graphql/graphql.js +238 -662
  401. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  402. package/dist/lib/plugins/openapi/index.d.ts +11 -8
  403. package/dist/lib/plugins/openapi/index.js +74 -104
  404. package/dist/lib/plugins/openapi/index.js.map +1 -1
  405. package/dist/lib/plugins/openapi/interfaces.d.ts +57 -3
  406. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +6 -0
  407. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +8 -0
  408. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -0
  409. package/dist/lib/plugins/openapi/playground/Headers.d.ts +4 -4
  410. package/dist/lib/plugins/openapi/playground/Headers.js +84 -5
  411. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  412. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
  413. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +14 -0
  414. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
  415. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
  416. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +8 -0
  417. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
  418. package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +9 -0
  419. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +5 -0
  420. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -0
  421. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
  422. package/dist/lib/plugins/openapi/playground/PathParams.js +5 -7
  423. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  424. package/dist/lib/plugins/openapi/playground/Playground.d.ts +37 -2
  425. package/dist/lib/plugins/openapi/playground/Playground.js +133 -70
  426. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  427. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +2 -2
  428. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  429. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +1 -1
  430. package/dist/lib/plugins/openapi/playground/QueryParams.js +24 -18
  431. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  432. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
  433. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
  434. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
  435. package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +7 -0
  436. package/dist/lib/plugins/openapi/playground/SubmitButton.js +22 -0
  437. package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +1 -0
  438. package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
  439. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
  440. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
  441. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +7 -0
  442. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +11 -0
  443. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +1 -0
  444. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +8 -0
  445. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +101 -0
  446. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -0
  447. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +9 -0
  448. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +17 -0
  449. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -0
  450. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +10 -0
  451. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +32 -0
  452. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -0
  453. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.d.ts +1 -0
  454. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js +56 -0
  455. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js.map +1 -0
  456. package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
  457. package/dist/lib/plugins/openapi/processors/removeExtensions.js +16 -0
  458. package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
  459. package/dist/lib/plugins/openapi/processors/removeExtensions.test.d.ts +1 -0
  460. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +194 -0
  461. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
  462. package/dist/lib/plugins/openapi/processors/removeParameters.d.ts +12 -0
  463. package/dist/lib/plugins/openapi/processors/removeParameters.js +66 -0
  464. package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
  465. package/dist/lib/plugins/openapi/processors/removeParameters.test.d.ts +1 -0
  466. package/dist/lib/plugins/openapi/processors/removeParameters.test.js +159 -0
  467. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
  468. package/dist/lib/plugins/openapi/processors/removePaths.d.ts +13 -0
  469. package/dist/lib/plugins/openapi/processors/removePaths.js +33 -0
  470. package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
  471. package/dist/lib/plugins/openapi/processors/removePaths.test.d.ts +1 -0
  472. package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
  473. package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
  474. package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -0
  475. package/dist/lib/plugins/openapi/processors/traverse.js +2 -0
  476. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
  477. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +1 -2
  478. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +2 -2
  479. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
  480. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
  481. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
  482. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
  483. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -1
  484. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
  485. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
  486. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
  487. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +15 -0
  488. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
  489. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +11 -0
  490. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +45 -0
  491. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -0
  492. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +2 -2
  493. package/dist/lib/plugins/openapi/schema/SchemaView.js +38 -49
  494. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  495. package/dist/lib/plugins/openapi/schema/utils.d.ts +8 -1
  496. package/dist/lib/plugins/openapi/schema/utils.js +15 -4
  497. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  498. package/dist/lib/plugins/openapi/state.d.ts +25 -0
  499. package/dist/lib/plugins/openapi/state.js +18 -0
  500. package/dist/lib/plugins/openapi/state.js.map +1 -0
  501. package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +9 -0
  502. package/dist/lib/plugins/openapi/util/createSidebarCategory.js +23 -0
  503. package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +1 -0
  504. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -2
  505. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +80 -39
  506. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  507. package/dist/lib/plugins/openapi/util/getRoutes.d.ts +10 -0
  508. package/dist/lib/plugins/openapi/util/getRoutes.js +117 -0
  509. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -0
  510. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +2 -0
  511. package/dist/lib/plugins/openapi/util/methodColorMap.js +10 -0
  512. package/dist/lib/plugins/openapi/util/methodColorMap.js.map +1 -0
  513. package/dist/lib/plugins/openapi/util/methodToColor.d.ts +20 -0
  514. package/dist/lib/plugins/openapi/util/methodToColor.js +24 -0
  515. package/dist/lib/plugins/openapi/util/methodToColor.js.map +1 -0
  516. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.d.ts +1 -0
  517. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js +27 -0
  518. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js.map +1 -0
  519. package/dist/lib/plugins/redirect/index.d.ts +4 -7
  520. package/dist/lib/plugins/redirect/index.js +2 -2
  521. package/dist/lib/plugins/redirect/index.js.map +1 -1
  522. package/dist/lib/plugins/search-inkeep/index.d.ts +24 -5
  523. package/dist/lib/plugins/search-inkeep/index.js +41 -5
  524. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  525. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +3 -4
  526. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  527. package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
  528. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +80 -0
  529. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
  530. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
  531. package/dist/lib/plugins/search-pagefind/ResultList.js +32 -0
  532. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
  533. package/dist/lib/plugins/search-pagefind/get-results.d.ts +10 -0
  534. package/dist/lib/plugins/search-pagefind/get-results.js +42 -0
  535. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
  536. package/dist/lib/plugins/search-pagefind/index.d.ts +6 -0
  537. package/dist/lib/plugins/search-pagefind/index.js +9 -0
  538. package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
  539. package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
  540. package/dist/lib/plugins/search-pagefind/types.js +2 -0
  541. package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
  542. package/dist/lib/shiki.d.ts +35 -0
  543. package/dist/lib/shiki.js +103 -0
  544. package/dist/lib/shiki.js.map +1 -0
  545. package/dist/lib/ui/Accordion.d.ts +7 -0
  546. package/dist/lib/ui/Accordion.js +14 -0
  547. package/dist/lib/ui/Accordion.js.map +1 -0
  548. package/dist/lib/ui/ActionButton.d.ts +4 -0
  549. package/dist/lib/ui/ActionButton.js +10 -0
  550. package/dist/lib/ui/ActionButton.js.map +1 -0
  551. package/dist/lib/ui/Alert.d.ts +8 -0
  552. package/dist/lib/ui/Alert.js +23 -0
  553. package/dist/lib/ui/Alert.js.map +1 -0
  554. package/dist/lib/ui/AlertDialog.d.ts +20 -0
  555. package/dist/lib/ui/AlertDialog.js +27 -0
  556. package/dist/lib/ui/AlertDialog.js.map +1 -0
  557. package/dist/lib/ui/AspectRatio.d.ts +3 -0
  558. package/dist/lib/ui/AspectRatio.js +4 -0
  559. package/dist/lib/ui/AspectRatio.js.map +1 -0
  560. package/dist/lib/ui/Badge.d.ts +9 -0
  561. package/dist/lib/ui/Badge.js +22 -0
  562. package/dist/lib/ui/Badge.js.map +1 -0
  563. package/dist/lib/ui/Breadcrumb.d.ts +19 -0
  564. package/dist/lib/ui/Breadcrumb.js +24 -0
  565. package/dist/lib/ui/Breadcrumb.js.map +1 -0
  566. package/dist/lib/ui/Button.d.ts +4 -5
  567. package/dist/lib/ui/Button.js +9 -6
  568. package/dist/lib/ui/Button.js.map +1 -1
  569. package/dist/lib/ui/Callout.d.ts +38 -36
  570. package/dist/lib/ui/Callout.js +3 -2
  571. package/dist/lib/ui/Callout.js.map +1 -1
  572. package/dist/lib/ui/Card.js +1 -1
  573. package/dist/lib/ui/Card.js.map +1 -1
  574. package/dist/lib/ui/Carousel.d.ts +18 -0
  575. package/dist/lib/ui/Carousel.js +99 -0
  576. package/dist/lib/ui/Carousel.js.map +1 -0
  577. package/dist/lib/ui/Checkbox.d.ts +4 -0
  578. package/dist/lib/ui/Checkbox.js +9 -0
  579. package/dist/lib/ui/Checkbox.js.map +1 -0
  580. package/dist/lib/ui/CodeBlock.d.ts +16 -0
  581. package/dist/lib/ui/CodeBlock.js +18 -0
  582. package/dist/lib/ui/CodeBlock.js.map +1 -0
  583. package/dist/lib/ui/Collapsible.d.ts +5 -0
  584. package/dist/lib/ui/Collapsible.js +6 -0
  585. package/dist/lib/ui/Collapsible.js.map +1 -0
  586. package/dist/lib/ui/Command.d.ts +94 -0
  587. package/dist/lib/ui/Command.js +35 -0
  588. package/dist/lib/ui/Command.js.map +1 -0
  589. package/dist/lib/ui/Dialog.js +23 -0
  590. package/dist/lib/ui/Dialog.js.map +1 -0
  591. package/dist/lib/ui/Drawer.d.ts +8 -10
  592. package/dist/lib/ui/Drawer.js.map +1 -1
  593. package/dist/lib/ui/DropdownMenu.js +4 -4
  594. package/dist/lib/ui/DropdownMenu.js.map +1 -1
  595. package/dist/lib/ui/Form.d.ts +23 -0
  596. package/dist/lib/ui/Form.js +63 -0
  597. package/dist/lib/ui/Form.js.map +1 -0
  598. package/dist/lib/ui/HoverCard.d.ts +6 -0
  599. package/dist/lib/ui/HoverCard.js +10 -0
  600. package/dist/lib/ui/HoverCard.js.map +1 -0
  601. package/dist/lib/ui/Input.d.ts +1 -2
  602. package/dist/lib/ui/Input.js +1 -1
  603. package/dist/lib/ui/Input.js.map +1 -1
  604. package/dist/lib/ui/Label.d.ts +5 -0
  605. package/dist/lib/ui/Label.js +10 -0
  606. package/dist/lib/ui/Label.js.map +1 -0
  607. package/dist/lib/ui/Pagination.d.ts +28 -0
  608. package/dist/lib/ui/Pagination.js +24 -0
  609. package/dist/lib/ui/Pagination.js.map +1 -0
  610. package/dist/lib/ui/Popover.d.ts +6 -0
  611. package/dist/lib/ui/Popover.js +10 -0
  612. package/dist/lib/ui/Popover.js.map +1 -0
  613. package/dist/lib/ui/Progress.d.ts +4 -0
  614. package/dist/lib/ui/Progress.js +8 -0
  615. package/dist/lib/ui/Progress.js.map +1 -0
  616. package/dist/lib/ui/RadioGroup.d.ts +5 -0
  617. package/dist/lib/ui/RadioGroup.js +15 -0
  618. package/dist/lib/ui/RadioGroup.js.map +1 -0
  619. package/dist/lib/ui/ScrollArea.d.ts +5 -0
  620. package/dist/lib/ui/ScrollArea.js +12 -0
  621. package/dist/lib/ui/ScrollArea.js.map +1 -0
  622. package/dist/lib/ui/Select.js +27 -0
  623. package/dist/lib/ui/Select.js.map +1 -0
  624. package/dist/lib/ui/Skeleton.d.ts +2 -0
  625. package/dist/lib/ui/Skeleton.js +7 -0
  626. package/dist/lib/ui/Skeleton.js.map +1 -0
  627. package/dist/lib/ui/Slider.d.ts +4 -0
  628. package/dist/lib/ui/Slider.js +8 -0
  629. package/dist/lib/ui/Slider.js.map +1 -0
  630. package/dist/lib/ui/Stepper.d.ts +3 -0
  631. package/dist/lib/ui/Stepper.js +7 -0
  632. package/dist/lib/ui/Stepper.js.map +1 -0
  633. package/dist/lib/ui/Switch.d.ts +4 -0
  634. package/dist/lib/ui/Switch.js +8 -0
  635. package/dist/lib/ui/Switch.js.map +1 -0
  636. package/dist/lib/ui/SyntaxHighlight.d.ts +10 -0
  637. package/dist/lib/ui/SyntaxHighlight.js +14 -0
  638. package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
  639. package/dist/lib/ui/Tabs.js +2 -2
  640. package/dist/lib/ui/Tabs.js.map +1 -1
  641. package/dist/lib/ui/Textarea.d.ts +4 -0
  642. package/dist/lib/ui/Textarea.js +9 -0
  643. package/dist/lib/ui/Textarea.js.map +1 -0
  644. package/dist/lib/ui/Toggle.d.ts +12 -0
  645. package/dist/lib/ui/Toggle.js +26 -0
  646. package/dist/lib/ui/Toggle.js.map +1 -0
  647. package/dist/lib/ui/ToggleGroup.d.ts +12 -0
  648. package/dist/lib/ui/ToggleGroup.js +21 -0
  649. package/dist/lib/ui/ToggleGroup.js.map +1 -0
  650. package/dist/lib/ui/Tooltip.d.ts +7 -0
  651. package/dist/lib/ui/Tooltip.js +11 -0
  652. package/dist/lib/ui/Tooltip.js.map +1 -0
  653. package/dist/lib/ui/util.d.ts +2 -0
  654. package/dist/lib/ui/util.js +3 -0
  655. package/dist/lib/ui/util.js.map +1 -0
  656. package/dist/lib/util/MdxComponents.d.ts +30 -21
  657. package/dist/lib/util/MdxComponents.js +17 -15
  658. package/dist/lib/util/MdxComponents.js.map +1 -1
  659. package/dist/lib/util/createVariantComponent.d.ts +2 -2
  660. package/dist/lib/util/detectOS.d.ts +1 -0
  661. package/dist/lib/util/detectOS.js +11 -0
  662. package/dist/lib/util/detectOS.js.map +1 -0
  663. package/dist/lib/util/ensureArray.d.ts +1 -0
  664. package/dist/lib/util/ensureArray.js +2 -0
  665. package/dist/lib/util/ensureArray.js.map +1 -0
  666. package/dist/lib/util/invariant.d.ts +9 -0
  667. package/dist/lib/util/invariant.js +7 -3
  668. package/dist/lib/util/invariant.js.map +1 -1
  669. package/dist/lib/util/joinPath.d.ts +3 -0
  670. package/dist/lib/util/joinPath.js +3 -0
  671. package/dist/lib/util/joinPath.js.map +1 -1
  672. package/dist/lib/util/joinUrl.d.ts +1 -0
  673. package/dist/lib/util/joinUrl.js +40 -0
  674. package/dist/lib/util/joinUrl.js.map +1 -0
  675. package/dist/lib/util/joinUrl.test.d.ts +1 -0
  676. package/dist/lib/util/joinUrl.test.js +43 -0
  677. package/dist/lib/util/joinUrl.test.js.map +1 -0
  678. package/dist/lib/util/scrollIntoViewIfNeeded.d.ts +1 -0
  679. package/dist/lib/util/scrollIntoViewIfNeeded.js +14 -0
  680. package/dist/lib/util/scrollIntoViewIfNeeded.js.map +1 -0
  681. package/dist/lib/util/traverse.d.ts +3 -0
  682. package/dist/lib/util/traverse.js +23 -0
  683. package/dist/lib/util/traverse.js.map +1 -0
  684. package/dist/lib/util/types.d.ts +7 -0
  685. package/dist/lib/util/types.js +2 -0
  686. package/dist/lib/util/types.js.map +1 -0
  687. package/dist/lib/util/url.d.ts +4 -0
  688. package/dist/lib/util/url.js +13 -0
  689. package/dist/lib/util/url.js.map +1 -0
  690. package/dist/lib/util/url.test.d.ts +1 -0
  691. package/dist/lib/util/url.test.js +26 -0
  692. package/dist/lib/util/url.test.js.map +1 -0
  693. package/dist/lib/util/useExposedProps.d.ts +9 -0
  694. package/dist/lib/util/useExposedProps.js +9 -0
  695. package/dist/lib/util/useExposedProps.js.map +1 -0
  696. package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
  697. package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
  698. package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
  699. package/dist/lib/util/useLatest.d.ts +1 -0
  700. package/dist/lib/util/useLatest.js +15 -0
  701. package/dist/lib/util/useLatest.js.map +1 -0
  702. package/dist/lib/util/useOnScreen.d.ts +5 -0
  703. package/dist/lib/util/useOnScreen.js +19 -0
  704. package/dist/lib/util/useOnScreen.js.map +1 -0
  705. package/dist/lib/util/useScrollToAnchor.d.ts +1 -0
  706. package/dist/lib/util/useScrollToAnchor.js +42 -37
  707. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  708. package/dist/lib/util/useScrollToTop.js +7 -5
  709. package/dist/lib/util/useScrollToTop.js.map +1 -1
  710. package/dist/vite/api/SchemaManager.d.ts +36 -0
  711. package/dist/vite/api/SchemaManager.js +122 -0
  712. package/dist/vite/api/SchemaManager.js.map +1 -0
  713. package/dist/vite/api/SchemaManager.test.d.ts +1 -0
  714. package/dist/vite/api/SchemaManager.test.js +106 -0
  715. package/dist/vite/api/SchemaManager.test.js.map +1 -0
  716. package/dist/vite/api/schema-codegen.d.ts +12 -0
  717. package/dist/vite/api/schema-codegen.js +85 -0
  718. package/dist/vite/api/schema-codegen.js.map +1 -0
  719. package/dist/vite/api/schema-codegen.test.d.ts +1 -0
  720. package/dist/vite/api/schema-codegen.test.js +313 -0
  721. package/dist/vite/api/schema-codegen.test.js.map +1 -0
  722. package/dist/vite/build.js +83 -12
  723. package/dist/vite/build.js.map +1 -1
  724. package/dist/vite/config.d.ts +2 -15
  725. package/dist/vite/config.js +121 -144
  726. package/dist/vite/config.js.map +1 -1
  727. package/dist/vite/config.test.js +12 -6
  728. package/dist/vite/config.test.js.map +1 -1
  729. package/dist/vite/create-pagefind-index.d.ts +4 -0
  730. package/dist/vite/create-pagefind-index.js +12 -0
  731. package/dist/vite/create-pagefind-index.js.map +1 -0
  732. package/dist/vite/css/collect.d.ts +2 -0
  733. package/dist/vite/css/collect.js +27 -0
  734. package/dist/vite/css/collect.js.map +1 -0
  735. package/dist/vite/css/plugin.d.ts +5 -0
  736. package/dist/vite/css/plugin.js +79 -0
  737. package/dist/vite/css/plugin.js.map +1 -0
  738. package/dist/vite/debug.d.ts +1 -0
  739. package/dist/vite/debug.js +10 -0
  740. package/dist/vite/debug.js.map +1 -0
  741. package/dist/vite/dev-server.d.ts +11 -4
  742. package/dist/vite/dev-server.js +83 -22
  743. package/dist/vite/dev-server.js.map +1 -1
  744. package/dist/vite/error-handler.d.ts +1 -1
  745. package/dist/vite/error-handler.js +1 -1
  746. package/dist/vite/error-handler.js.map +1 -1
  747. package/dist/vite/html.d.ts +6 -2
  748. package/dist/vite/html.js +11 -10
  749. package/dist/vite/html.js.map +1 -1
  750. package/dist/vite/output.d.ts +113 -0
  751. package/dist/vite/output.js +60 -0
  752. package/dist/vite/output.js.map +1 -0
  753. package/dist/vite/plugin-api-keys.d.ts +2 -2
  754. package/dist/vite/plugin-api-keys.js +10 -5
  755. package/dist/vite/plugin-api-keys.js.map +1 -1
  756. package/dist/vite/plugin-api.d.ts +2 -2
  757. package/dist/vite/plugin-api.js +145 -32
  758. package/dist/vite/plugin-api.js.map +1 -1
  759. package/dist/vite/plugin-auth.d.ts +2 -2
  760. package/dist/vite/plugin-auth.js +7 -4
  761. package/dist/vite/plugin-auth.js.map +1 -1
  762. package/dist/vite/plugin-component.d.ts +2 -2
  763. package/dist/vite/plugin-component.js +22 -13
  764. package/dist/vite/plugin-component.js.map +1 -1
  765. package/dist/vite/plugin-config-reload.d.ts +4 -4
  766. package/dist/vite/plugin-config-reload.js +15 -8
  767. package/dist/vite/plugin-config-reload.js.map +1 -1
  768. package/dist/vite/plugin-config.d.ts +2 -3
  769. package/dist/vite/plugin-config.js +26 -3
  770. package/dist/vite/plugin-config.js.map +1 -1
  771. package/dist/vite/plugin-configure-tailwind.d.ts +3 -0
  772. package/dist/vite/plugin-configure-tailwind.js +37 -0
  773. package/dist/vite/plugin-configure-tailwind.js.map +1 -0
  774. package/dist/vite/plugin-custom-pages.d.ts +4 -0
  775. package/dist/vite/plugin-custom-pages.js +30 -0
  776. package/dist/vite/plugin-custom-pages.js.map +1 -0
  777. package/dist/vite/plugin-docs.d.ts +3 -3
  778. package/dist/vite/plugin-docs.js +57 -29
  779. package/dist/vite/plugin-docs.js.map +1 -1
  780. package/dist/vite/plugin-docs.test.js +15 -23
  781. package/dist/vite/plugin-docs.test.js.map +1 -1
  782. package/dist/vite/plugin-frontmatter.d.ts +2 -1
  783. package/dist/vite/plugin-frontmatter.js +28 -24
  784. package/dist/vite/plugin-frontmatter.js.map +1 -1
  785. package/dist/vite/plugin-mdx.d.ts +2 -8
  786. package/dist/vite/plugin-mdx.js +96 -13
  787. package/dist/vite/plugin-mdx.js.map +1 -1
  788. package/dist/vite/plugin-redirect.d.ts +2 -2
  789. package/dist/vite/plugin-redirect.js +3 -3
  790. package/dist/vite/plugin-redirect.js.map +1 -1
  791. package/dist/vite/plugin-search.d.ts +3 -0
  792. package/dist/vite/plugin-search.js +30 -0
  793. package/dist/vite/plugin-search.js.map +1 -0
  794. package/dist/vite/plugin-shiki-register.d.ts +3 -0
  795. package/dist/vite/plugin-shiki-register.js +38 -0
  796. package/dist/vite/plugin-shiki-register.js.map +1 -0
  797. package/dist/vite/plugin-sidebar.d.ts +5 -3
  798. package/dist/vite/plugin-sidebar.js +26 -10
  799. package/dist/vite/plugin-sidebar.js.map +1 -1
  800. package/dist/vite/plugin-theme-css.d.ts +6 -0
  801. package/dist/vite/plugin-theme-css.js +118 -0
  802. package/dist/vite/plugin-theme-css.js.map +1 -0
  803. package/dist/vite/plugin.d.ts +2 -3
  804. package/dist/vite/plugin.js +18 -6
  805. package/dist/vite/plugin.js.map +1 -1
  806. package/dist/vite/prerender/FileWritingResponse.d.ts +25 -0
  807. package/dist/vite/prerender/FileWritingResponse.js +51 -0
  808. package/dist/vite/prerender/FileWritingResponse.js.map +1 -0
  809. package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
  810. package/dist/vite/prerender/InMemoryResponse.js +32 -0
  811. package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
  812. package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
  813. package/dist/vite/prerender/PrerenderResponse.js +2 -0
  814. package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
  815. package/dist/vite/prerender/prerender.d.ts +15 -0
  816. package/dist/vite/prerender/prerender.js +109 -0
  817. package/dist/vite/prerender/prerender.js.map +1 -0
  818. package/dist/vite/prerender/worker.d.ts +13 -0
  819. package/dist/vite/prerender/worker.js +59 -0
  820. package/dist/vite/prerender/worker.js.map +1 -0
  821. package/dist/vite/remarkStaticGeneration.d.ts +3 -0
  822. package/dist/vite/remarkStaticGeneration.js +125 -0
  823. package/dist/vite/remarkStaticGeneration.js.map +1 -0
  824. package/dist/vite/reporter.d.ts +3 -0
  825. package/dist/vite/reporter.js +33 -0
  826. package/dist/vite/reporter.js.map +1 -0
  827. package/dist/vite/sitemap.d.ts +1 -1
  828. package/dist/vite/sitemap.js +2 -1
  829. package/dist/vite/sitemap.js.map +1 -1
  830. package/dist/zuplo/enrich-with-zuplo.d.ts +5 -0
  831. package/dist/zuplo/enrich-with-zuplo.js +185 -0
  832. package/dist/zuplo/enrich-with-zuplo.js.map +1 -0
  833. package/dist/zuplo/policy-types.d.ts +33 -0
  834. package/dist/zuplo/policy-types.js +8 -0
  835. package/dist/zuplo/policy-types.js.map +1 -0
  836. package/dist/zuplo/with-zuplo-processors.d.ts +3 -0
  837. package/dist/zuplo/with-zuplo-processors.js +26 -0
  838. package/dist/zuplo/with-zuplo-processors.js.map +1 -0
  839. package/dist/zuplo/with-zuplo.d.ts +6 -0
  840. package/dist/zuplo/with-zuplo.js +10 -0
  841. package/dist/zuplo/with-zuplo.js.map +1 -0
  842. package/lib/Button-u7M2QYds.js +51 -0
  843. package/lib/Button-u7M2QYds.js.map +1 -0
  844. package/lib/Callout-CtCQJ6Cc.js +230 -0
  845. package/lib/Callout-CtCQJ6Cc.js.map +1 -0
  846. package/lib/Card-DkH-AU1V.js +61 -0
  847. package/lib/Card-DkH-AU1V.js.map +1 -0
  848. package/lib/CategoryHeading-BA7lKNWz.js +10 -0
  849. package/lib/CategoryHeading-BA7lKNWz.js.map +1 -0
  850. package/lib/ClientOnly-E7hGysn1.js +11 -0
  851. package/lib/ClientOnly-E7hGysn1.js.map +1 -0
  852. package/lib/Dialog-irKZWXGg.js +99 -0
  853. package/lib/Dialog-irKZWXGg.js.map +1 -0
  854. package/lib/Drawer-DZ214i5V.js +1133 -0
  855. package/lib/Drawer-DZ214i5V.js.map +1 -0
  856. package/lib/Markdown-BNG8bTDA.js +7691 -0
  857. package/lib/Markdown-BNG8bTDA.js.map +1 -0
  858. package/lib/MdxPage-C-P_N-H3.js +84 -0
  859. package/lib/MdxPage-C-P_N-H3.js.map +1 -0
  860. package/lib/OasProvider-DjFXGgWa.js +33 -0
  861. package/lib/OasProvider-DjFXGgWa.js.map +1 -0
  862. package/lib/OperationList-CchpZz4h.js +5141 -0
  863. package/lib/OperationList-CchpZz4h.js.map +1 -0
  864. package/lib/Pagination-BbcrfwgM.js +36 -0
  865. package/lib/Pagination-BbcrfwgM.js.map +1 -0
  866. package/lib/RouteGuard-CIyGFkFD.js +55 -0
  867. package/lib/RouteGuard-CIyGFkFD.js.map +1 -0
  868. package/lib/SchemaList-CrQd3KiR.js +160 -0
  869. package/lib/SchemaList-CrQd3KiR.js.map +1 -0
  870. package/lib/SchemaView-CQ_hMc8m.js +375 -0
  871. package/lib/SchemaView-CQ_hMc8m.js.map +1 -0
  872. package/lib/SignUp-DSn8NjRS.js +63 -0
  873. package/lib/SignUp-DSn8NjRS.js.map +1 -0
  874. package/lib/Slot-Dw-g06lX.js +160 -0
  875. package/lib/Slot-Dw-g06lX.js.map +1 -0
  876. package/lib/Spinner-mNLZ6awP.js +7 -0
  877. package/lib/Spinner-mNLZ6awP.js.map +1 -0
  878. package/lib/SyntaxHighlight-DTgNHbGp.js +9107 -0
  879. package/lib/SyntaxHighlight-DTgNHbGp.js.map +1 -0
  880. package/lib/Toc-Ccycwd-T.js +92 -0
  881. package/lib/Toc-Ccycwd-T.js.map +1 -0
  882. package/lib/chunk-BAXFHI7N-C9WnHsLV.js +1839 -0
  883. package/lib/chunk-BAXFHI7N-C9WnHsLV.js.map +1 -0
  884. package/lib/circular-DdByufCW.js +14929 -0
  885. package/lib/circular-DdByufCW.js.map +1 -0
  886. package/lib/cn-BOFVZgHd.js +2744 -0
  887. package/lib/cn-BOFVZgHd.js.map +1 -0
  888. package/lib/createServer-BL0QaN9q.js +12494 -0
  889. package/lib/createServer-BL0QaN9q.js.map +1 -0
  890. package/lib/hook-BpiAQVtd.js +1446 -0
  891. package/lib/hook-BpiAQVtd.js.map +1 -0
  892. package/lib/index--oeBayMa.js +86 -0
  893. package/lib/index--oeBayMa.js.map +1 -0
  894. package/lib/index-BjB1BHZu.js +3268 -0
  895. package/lib/index-BjB1BHZu.js.map +1 -0
  896. package/lib/index-BvvmIczU.js +2094 -0
  897. package/lib/index-BvvmIczU.js.map +1 -0
  898. package/lib/index-C1S4w-gl.js +36 -0
  899. package/lib/index-C1S4w-gl.js.map +1 -0
  900. package/lib/index-CrcNWbel.js +316 -0
  901. package/lib/index-CrcNWbel.js.map +1 -0
  902. package/lib/index-rsSMIHTN.js +4977 -0
  903. package/lib/index-rsSMIHTN.js.map +1 -0
  904. package/lib/index-zddirpDj.js +4822 -0
  905. package/lib/index-zddirpDj.js.map +1 -0
  906. package/lib/index.esm-BFcSKCe-.js +683 -0
  907. package/lib/index.esm-BFcSKCe-.js.map +1 -0
  908. package/lib/index.esm-DSfX_eMP.js +1216 -0
  909. package/lib/index.esm-DSfX_eMP.js.map +1 -0
  910. package/lib/invariant-DAFpPywt.js +48 -0
  911. package/lib/invariant-DAFpPywt.js.map +1 -0
  912. package/lib/jsx-runtime-C5mzlN2N.js +285 -0
  913. package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
  914. package/lib/mutation-CJrIFMgY.js +196 -0
  915. package/lib/mutation-CJrIFMgY.js.map +1 -0
  916. package/lib/objectEntries-yMIkr2mI.js +5 -0
  917. package/lib/objectEntries-yMIkr2mI.js.map +1 -0
  918. package/lib/processors/removeExtensions.js +11 -0
  919. package/lib/processors/removeExtensions.js.map +1 -0
  920. package/lib/processors/removeParameters.js +47 -0
  921. package/lib/processors/removeParameters.js.map +1 -0
  922. package/lib/processors/removePaths.js +28 -0
  923. package/lib/processors/removePaths.js.map +1 -0
  924. package/lib/processors/traverse.js +17 -0
  925. package/lib/processors/traverse.js.map +1 -0
  926. package/lib/ui/Accordion.js +47 -0
  927. package/lib/ui/Accordion.js.map +1 -0
  928. package/lib/ui/ActionButton.js +25 -0
  929. package/lib/ui/ActionButton.js.map +1 -0
  930. package/lib/ui/Alert.js +51 -0
  931. package/lib/ui/Alert.js.map +1 -0
  932. package/lib/ui/AlertDialog.js +114 -0
  933. package/lib/ui/AlertDialog.js.map +1 -0
  934. package/lib/ui/AspectRatio.js +6 -0
  935. package/lib/ui/AspectRatio.js.map +1 -0
  936. package/lib/ui/Badge.js +28 -0
  937. package/lib/ui/Badge.js.map +1 -0
  938. package/lib/ui/Breadcrumb.js +94 -0
  939. package/lib/ui/Breadcrumb.js.map +1 -0
  940. package/lib/ui/Button.js +52 -0
  941. package/lib/ui/Button.js.map +1 -0
  942. package/lib/ui/Callout.js +96 -0
  943. package/lib/ui/Callout.js.map +1 -0
  944. package/lib/ui/Card.js +62 -0
  945. package/lib/ui/Card.js.map +1 -0
  946. package/lib/ui/Carousel.js +1416 -0
  947. package/lib/ui/Carousel.js.map +1 -0
  948. package/lib/ui/Checkbox.js +29 -0
  949. package/lib/ui/Checkbox.js.map +1 -0
  950. package/lib/ui/CodeBlock.js +83 -0
  951. package/lib/ui/CodeBlock.js.map +1 -0
  952. package/lib/ui/Collapsible.js +8 -0
  953. package/lib/ui/Collapsible.js.map +1 -0
  954. package/lib/ui/Command.js +156 -0
  955. package/lib/ui/Command.js.map +1 -0
  956. package/lib/ui/Dialog.js +101 -0
  957. package/lib/ui/Dialog.js.map +1 -0
  958. package/lib/ui/Drawer.js +17 -0
  959. package/lib/ui/Drawer.js.map +1 -0
  960. package/lib/ui/DropdownMenu.js +145 -0
  961. package/lib/ui/DropdownMenu.js.map +1 -0
  962. package/lib/ui/Form.js +95 -0
  963. package/lib/ui/Form.js.map +1 -0
  964. package/lib/ui/HoverCard.js +24 -0
  965. package/lib/ui/HoverCard.js.map +1 -0
  966. package/lib/ui/Input.js +22 -0
  967. package/lib/ui/Input.js.map +1 -0
  968. package/lib/ui/Label.js +20 -0
  969. package/lib/ui/Label.js.map +1 -0
  970. package/lib/ui/Pagination.js +106 -0
  971. package/lib/ui/Pagination.js.map +1 -0
  972. package/lib/ui/Popover.js +24 -0
  973. package/lib/ui/Popover.js.map +1 -0
  974. package/lib/ui/Progress.js +27 -0
  975. package/lib/ui/Progress.js.map +1 -0
  976. package/lib/ui/RadioGroup.js +32 -0
  977. package/lib/ui/RadioGroup.js.map +1 -0
  978. package/lib/ui/ScrollArea.js +39 -0
  979. package/lib/ui/ScrollArea.js.map +1 -0
  980. package/lib/ui/Select.js +122 -0
  981. package/lib/ui/Select.js.map +1 -0
  982. package/lib/ui/Skeleton.js +18 -0
  983. package/lib/ui/Skeleton.js.map +1 -0
  984. package/lib/ui/Slider.js +24 -0
  985. package/lib/ui/Slider.js.map +1 -0
  986. package/lib/ui/Stepper.js +6 -0
  987. package/lib/ui/Stepper.js.map +1 -0
  988. package/lib/ui/Switch.js +28 -0
  989. package/lib/ui/Switch.js.map +1 -0
  990. package/lib/ui/SyntaxHighlight.js +10 -0
  991. package/lib/ui/SyntaxHighlight.js.map +1 -0
  992. package/lib/ui/Tabs.js +47 -0
  993. package/lib/ui/Tabs.js.map +1 -0
  994. package/lib/ui/Textarea.js +21 -0
  995. package/lib/ui/Textarea.js.map +1 -0
  996. package/lib/ui/Toggle.js +38 -0
  997. package/lib/ui/Toggle.js.map +1 -0
  998. package/lib/ui/ToggleGroup.js +42 -0
  999. package/lib/ui/ToggleGroup.js.map +1 -0
  1000. package/lib/ui/Tooltip.js +24 -0
  1001. package/lib/ui/Tooltip.js.map +1 -0
  1002. package/lib/ui/util.js +6 -0
  1003. package/lib/ui/util.js.map +1 -0
  1004. package/lib/useExposedProps-DG8J6ewJ.js +9 -0
  1005. package/lib/useExposedProps-DG8J6ewJ.js.map +1 -0
  1006. package/lib/useLatest-hmRS46UF.js +11 -0
  1007. package/lib/useLatest-hmRS46UF.js.map +1 -0
  1008. package/lib/useMutation-B2LNwShM.js +97 -0
  1009. package/lib/useMutation-B2LNwShM.js.map +1 -0
  1010. package/lib/zudoku.auth-auth0.js +32 -30
  1011. package/lib/zudoku.auth-auth0.js.map +1 -1
  1012. package/lib/zudoku.auth-clerk.js +115 -58
  1013. package/lib/zudoku.auth-clerk.js.map +1 -1
  1014. package/lib/zudoku.auth-openid.js +628 -628
  1015. package/lib/zudoku.auth-openid.js.map +1 -1
  1016. package/lib/zudoku.components.js +34 -3364
  1017. package/lib/zudoku.components.js.map +1 -1
  1018. package/lib/zudoku.hooks.js +19 -0
  1019. package/lib/zudoku.hooks.js.map +1 -0
  1020. package/lib/zudoku.icons.js +10 -0
  1021. package/lib/zudoku.icons.js.map +1 -1
  1022. package/lib/zudoku.plugin-api-catalog.js +117 -0
  1023. package/lib/zudoku.plugin-api-catalog.js.map +1 -0
  1024. package/lib/zudoku.plugin-api-keys.js +5019 -212
  1025. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  1026. package/lib/zudoku.plugin-custom-pages.js +22 -0
  1027. package/lib/zudoku.plugin-custom-pages.js.map +1 -0
  1028. package/lib/zudoku.plugin-markdown.js +70 -27
  1029. package/lib/zudoku.plugin-markdown.js.map +1 -1
  1030. package/lib/zudoku.plugin-openapi.js +8 -12
  1031. package/lib/zudoku.plugin-openapi.js.map +1 -1
  1032. package/lib/zudoku.plugin-redirect.js +2 -2
  1033. package/lib/zudoku.plugin-redirect.js.map +1 -1
  1034. package/lib/zudoku.plugin-search-inkeep.js +52 -28
  1035. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  1036. package/lib/zudoku.plugin-search-pagefind.js +230 -0
  1037. package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
  1038. package/lib/zudoku.plugins.js +15 -0
  1039. package/lib/zudoku.plugins.js.map +1 -0
  1040. package/package.json +186 -105
  1041. package/src/app/ZuploBuildConfig.ts +33 -0
  1042. package/src/app/defaultTheme.css +54 -0
  1043. package/src/app/demo-cdn.html +31 -31
  1044. package/src/app/demo.html +1 -1
  1045. package/src/app/demo.tsx +1 -5
  1046. package/src/app/entry.client.tsx +71 -3
  1047. package/src/app/entry.server.tsx +81 -60
  1048. package/src/app/env.ts +35 -0
  1049. package/src/app/font.geist.css +73 -0
  1050. package/src/app/main.css +202 -131
  1051. package/src/app/main.tsx +81 -71
  1052. package/src/app/sentry.ts +24 -0
  1053. package/src/app/standalone.tsx +2 -6
  1054. package/src/lib/MissingIcon.tsx +22 -0
  1055. package/src/lib/authentication/AuthenticationPlugin.tsx +22 -5
  1056. package/src/lib/authentication/authentication.ts +5 -6
  1057. package/src/lib/authentication/components/CallbackHandler.tsx +30 -51
  1058. package/src/lib/authentication/components/SignIn.tsx +35 -2
  1059. package/src/lib/authentication/components/SignOut.tsx +3 -2
  1060. package/src/lib/authentication/components/SignUp.tsx +35 -1
  1061. package/src/lib/authentication/hook.ts +13 -4
  1062. package/src/lib/authentication/providers/auth0.tsx +28 -18
  1063. package/src/lib/authentication/providers/clerk.tsx +136 -53
  1064. package/src/lib/authentication/providers/openid.tsx +87 -84
  1065. package/src/lib/authentication/providers/supabase.tsx +157 -0
  1066. package/src/lib/authentication/state.ts +56 -25
  1067. package/src/lib/authentication/use-broadcast/LICENSE.md +9 -0
  1068. package/src/lib/authentication/use-broadcast/shared.ts +372 -0
  1069. package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
  1070. package/src/lib/components/AnchorLink.tsx +13 -8
  1071. package/src/lib/components/Autocomplete.tsx +113 -0
  1072. package/src/lib/components/Banner.tsx +2 -1
  1073. package/src/lib/components/Bootstrap.tsx +43 -16
  1074. package/src/lib/components/BuildCheck.tsx +75 -0
  1075. package/src/lib/components/ClientOnly.tsx +6 -3
  1076. package/src/lib/components/DeveloperHint.tsx +6 -1
  1077. package/src/lib/components/ErrorPage.tsx +1 -1
  1078. package/src/lib/components/Footer.tsx +136 -0
  1079. package/src/lib/components/Header.tsx +108 -55
  1080. package/src/lib/components/Heading.tsx +14 -14
  1081. package/src/lib/components/InlineCode.tsx +13 -16
  1082. package/src/lib/components/Layout.tsx +36 -59
  1083. package/src/lib/components/Main.tsx +51 -0
  1084. package/src/lib/components/Markdown.tsx +33 -29
  1085. package/src/lib/components/MobileTopNavigation.tsx +43 -28
  1086. package/src/lib/components/NotFoundPage.tsx +2 -2
  1087. package/src/lib/components/Pagination.tsx +44 -0
  1088. package/src/lib/components/PathRenderer.tsx +61 -0
  1089. package/src/lib/components/ReactMarkdown.license.txt +21 -0
  1090. package/src/lib/components/ReactMarkdown.tsx +264 -0
  1091. package/src/lib/components/Search.tsx +19 -8
  1092. package/src/lib/components/Slot.test.tsx +456 -0
  1093. package/src/lib/components/Slot.tsx +64 -0
  1094. package/src/lib/components/StatusPage.tsx +91 -0
  1095. package/src/lib/components/ThemeSwitch.tsx +46 -0
  1096. package/src/lib/components/TopNavigation.tsx +95 -25
  1097. package/src/lib/components/Zudoku.tsx +119 -0
  1098. package/src/lib/components/cache.ts +23 -0
  1099. package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
  1100. package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
  1101. package/src/lib/components/context/SlotProvider.tsx +149 -0
  1102. package/src/lib/components/context/ViewportAnchorContext.tsx +34 -36
  1103. package/src/lib/components/context/ZudokuContext.ts +53 -29
  1104. package/src/lib/components/context/ZudokuProvider.tsx +4 -3
  1105. package/src/lib/components/index.ts +33 -6
  1106. package/src/lib/components/navigation/PoweredByZudoku.tsx +33 -0
  1107. package/src/lib/components/navigation/Sidebar.tsx +39 -30
  1108. package/src/lib/components/navigation/SidebarBadge.tsx +17 -12
  1109. package/src/lib/components/navigation/SidebarCategory.tsx +67 -54
  1110. package/src/lib/components/navigation/SidebarItem.tsx +38 -51
  1111. package/src/lib/components/navigation/SidebarWrapper.tsx +42 -22
  1112. package/src/lib/components/navigation/Toc.tsx +126 -0
  1113. package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
  1114. package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
  1115. package/src/lib/components/navigation/utils.ts +24 -17
  1116. package/src/lib/core/RouteGuard.tsx +96 -0
  1117. package/src/lib/core/ZudokuContext.ts +198 -0
  1118. package/src/lib/core/plugins.ts +54 -22
  1119. package/src/lib/errors/ErrorAlert.tsx +36 -15
  1120. package/src/lib/errors/RouterError.tsx +1 -1
  1121. package/src/lib/hooks/index.ts +5 -0
  1122. package/src/lib/hooks/useEvent.test.tsx +149 -0
  1123. package/src/lib/hooks/useEvent.ts +41 -0
  1124. package/src/lib/icons.ts +1 -0
  1125. package/src/lib/oas/graphql/circular.ts +58 -0
  1126. package/src/lib/oas/graphql/index.ts +298 -104
  1127. package/src/lib/oas/parser/dereference/index.ts +10 -4
  1128. package/src/lib/oas/parser/index.ts +14 -30
  1129. package/src/lib/oas/parser/upgrade/index.ts +103 -38
  1130. package/src/lib/plugins/api-catalog/Catalog.tsx +73 -0
  1131. package/src/lib/plugins/api-catalog/index.tsx +115 -0
  1132. package/src/lib/plugins/api-keys/CreateApiKey.tsx +63 -47
  1133. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
  1134. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +293 -113
  1135. package/src/lib/plugins/api-keys/index.tsx +107 -59
  1136. package/src/lib/plugins/custom-pages/CustomPage.tsx +18 -0
  1137. package/src/lib/plugins/custom-pages/index.tsx +24 -0
  1138. package/src/lib/plugins/markdown/MdxPage.tsx +53 -49
  1139. package/src/lib/plugins/markdown/index.tsx +53 -13
  1140. package/src/lib/plugins/markdown/resolver.ts +59 -0
  1141. package/src/lib/plugins/openapi/CollapsibleCode.tsx +86 -0
  1142. package/src/lib/plugins/openapi/ColorizedParam.tsx +49 -23
  1143. package/src/lib/plugins/openapi/Endpoint.tsx +19 -22
  1144. package/src/lib/plugins/openapi/OasProvider.tsx +51 -0
  1145. package/src/lib/plugins/openapi/OperationList.tsx +240 -70
  1146. package/src/lib/plugins/openapi/OperationListItem.tsx +122 -93
  1147. package/src/lib/plugins/openapi/ParamInfos.tsx +90 -0
  1148. package/src/lib/plugins/openapi/ParameterList.tsx +4 -0
  1149. package/src/lib/plugins/openapi/ParameterListItem.tsx +78 -31
  1150. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +21 -2
  1151. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +15 -33
  1152. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +36 -59
  1153. package/src/lib/plugins/openapi/SchemaList.tsx +163 -0
  1154. package/src/lib/plugins/openapi/Sidecar.tsx +181 -114
  1155. package/src/lib/plugins/openapi/SidecarBox.tsx +4 -16
  1156. package/src/lib/plugins/openapi/SidecarExamples.tsx +168 -0
  1157. package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
  1158. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +65 -0
  1159. package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
  1160. package/src/lib/plugins/openapi/client/createServer.ts +8 -2
  1161. package/src/lib/plugins/openapi/client/useCreateQuery.ts +45 -0
  1162. package/src/lib/plugins/openapi/components/ConstValue.tsx +24 -0
  1163. package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
  1164. package/src/lib/plugins/openapi/components/ResponseContent.tsx +104 -0
  1165. package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
  1166. package/src/lib/plugins/openapi/context.tsx +2 -2
  1167. package/src/lib/plugins/openapi/graphql/fragment-masking.ts +11 -18
  1168. package/src/lib/plugins/openapi/graphql/gql.ts +38 -30
  1169. package/src/lib/plugins/openapi/graphql/graphql.ts +386 -682
  1170. package/src/lib/plugins/openapi/index.tsx +111 -138
  1171. package/src/lib/plugins/openapi/interfaces.ts +58 -3
  1172. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +52 -0
  1173. package/src/lib/plugins/openapi/playground/Headers.tsx +165 -36
  1174. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +74 -0
  1175. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +41 -0
  1176. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +13 -0
  1177. package/src/lib/plugins/openapi/playground/PathParams.tsx +39 -64
  1178. package/src/lib/plugins/openapi/playground/Playground.tsx +386 -245
  1179. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +7 -4
  1180. package/src/lib/plugins/openapi/playground/QueryParams.tsx +87 -89
  1181. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
  1182. package/src/lib/plugins/openapi/playground/SubmitButton.tsx +75 -0
  1183. package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
  1184. package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +73 -0
  1185. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +230 -0
  1186. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +123 -0
  1187. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.test.ts +64 -0
  1188. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +36 -0
  1189. package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +222 -0
  1190. package/src/lib/plugins/openapi/processors/removeExtensions.ts +29 -0
  1191. package/src/lib/plugins/openapi/processors/removeParameters.test.ts +182 -0
  1192. package/src/lib/plugins/openapi/processors/removeParameters.ts +103 -0
  1193. package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
  1194. package/src/lib/plugins/openapi/processors/removePaths.ts +57 -0
  1195. package/src/lib/plugins/openapi/processors/traverse.ts +1 -0
  1196. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -8
  1197. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
  1198. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +6 -3
  1199. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +39 -0
  1200. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +160 -0
  1201. package/src/lib/plugins/openapi/schema/SchemaView.tsx +105 -138
  1202. package/src/lib/plugins/openapi/schema/utils.ts +32 -5
  1203. package/src/lib/plugins/openapi/state.ts +36 -0
  1204. package/src/lib/plugins/openapi/util/createSidebarCategory.tsx +37 -0
  1205. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +95 -44
  1206. package/src/lib/plugins/openapi/util/getRoutes.tsx +198 -0
  1207. package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
  1208. package/src/lib/plugins/openapi/util/methodToColor.ts +27 -0
  1209. package/src/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.tsx +32 -0
  1210. package/src/lib/plugins/redirect/index.tsx +6 -10
  1211. package/src/lib/plugins/search-inkeep/index.tsx +80 -25
  1212. package/src/lib/plugins/search-inkeep/inkeep.ts +3 -9
  1213. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +164 -0
  1214. package/src/lib/plugins/search-pagefind/ResultList.tsx +105 -0
  1215. package/src/lib/plugins/search-pagefind/get-results.tsx +75 -0
  1216. package/src/lib/plugins/search-pagefind/index.tsx +21 -0
  1217. package/src/lib/plugins/search-pagefind/types.ts +118 -0
  1218. package/src/lib/shiki.ts +133 -0
  1219. package/src/lib/ui/Accordion.tsx +56 -0
  1220. package/src/lib/ui/ActionButton.tsx +28 -0
  1221. package/src/lib/ui/Alert.tsx +59 -0
  1222. package/src/lib/ui/AlertDialog.tsx +139 -0
  1223. package/src/lib/ui/AspectRatio.tsx +5 -0
  1224. package/src/lib/ui/Badge.tsx +37 -0
  1225. package/src/lib/ui/Breadcrumb.tsx +115 -0
  1226. package/src/lib/ui/Button.tsx +13 -8
  1227. package/src/lib/ui/Callout.tsx +36 -16
  1228. package/src/lib/ui/Card.tsx +1 -1
  1229. package/src/lib/ui/Carousel.tsx +260 -0
  1230. package/src/lib/ui/Checkbox.tsx +29 -0
  1231. package/src/lib/ui/CodeBlock.tsx +102 -0
  1232. package/src/lib/ui/Collapsible.tsx +9 -0
  1233. package/src/lib/ui/Command.tsx +193 -0
  1234. package/src/lib/ui/Dialog.tsx +120 -0
  1235. package/src/lib/ui/Drawer.tsx +38 -36
  1236. package/src/lib/ui/DropdownMenu.tsx +4 -4
  1237. package/src/lib/ui/Form.tsx +177 -0
  1238. package/src/lib/ui/HoverCard.tsx +27 -0
  1239. package/src/lib/ui/Input.tsx +2 -3
  1240. package/src/lib/ui/Label.tsx +24 -0
  1241. package/src/lib/ui/Pagination.tsx +117 -0
  1242. package/src/lib/ui/Popover.tsx +29 -0
  1243. package/src/lib/ui/Progress.tsx +26 -0
  1244. package/src/lib/ui/RadioGroup.tsx +42 -0
  1245. package/src/lib/ui/ScrollArea.tsx +46 -0
  1246. package/src/lib/ui/Select.tsx +157 -0
  1247. package/src/lib/ui/Skeleton.tsx +15 -0
  1248. package/src/lib/ui/Slider.tsx +26 -0
  1249. package/src/lib/ui/Stepper.tsx +8 -0
  1250. package/src/lib/ui/Switch.tsx +27 -0
  1251. package/src/lib/ui/SyntaxHighlight.tsx +27 -0
  1252. package/src/lib/ui/Tabs.tsx +2 -2
  1253. package/src/lib/ui/Textarea.tsx +23 -0
  1254. package/src/lib/ui/Toggle.tsx +43 -0
  1255. package/src/lib/ui/ToggleGroup.tsx +59 -0
  1256. package/src/lib/ui/Tooltip.tsx +28 -0
  1257. package/src/lib/ui/util.tsx +3 -0
  1258. package/src/lib/util/MdxComponents.tsx +37 -24
  1259. package/src/lib/util/createVariantComponent.tsx +2 -2
  1260. package/src/lib/util/detectOS.ts +9 -0
  1261. package/src/lib/util/ensureArray.ts +3 -0
  1262. package/src/lib/util/invariant.ts +15 -3
  1263. package/src/lib/util/joinPath.tsx +3 -0
  1264. package/src/lib/util/joinUrl.test.ts +62 -0
  1265. package/src/lib/util/joinUrl.ts +57 -0
  1266. package/src/lib/util/scrollIntoViewIfNeeded.ts +18 -0
  1267. package/src/lib/util/traverse.ts +34 -0
  1268. package/src/lib/util/types.ts +7 -0
  1269. package/src/lib/util/url.test.ts +51 -0
  1270. package/src/lib/util/url.ts +18 -0
  1271. package/src/lib/util/useExposedProps.tsx +27 -0
  1272. package/src/lib/util/useIsomorphicLayoutEffect.ts +5 -0
  1273. package/src/lib/util/useLatest.ts +18 -0
  1274. package/src/lib/util/useOnScreen.ts +34 -0
  1275. package/src/lib/util/useScrollToAnchor.ts +48 -39
  1276. package/src/lib/util/useScrollToTop.ts +9 -4
  1277. package/src/shiki/langs/abap.js +1 -0
  1278. package/src/shiki/langs/actionscript-3.js +1 -0
  1279. package/src/shiki/langs/ada.js +1 -0
  1280. package/src/shiki/langs/angular-expression.js +1 -0
  1281. package/src/shiki/langs/angular-html.js +1 -0
  1282. package/src/shiki/langs/angular-inline-style.js +1 -0
  1283. package/src/shiki/langs/angular-inline-template.js +1 -0
  1284. package/src/shiki/langs/angular-let-declaration.js +1 -0
  1285. package/src/shiki/langs/angular-template-blocks.js +1 -0
  1286. package/src/shiki/langs/angular-template.js +1 -0
  1287. package/src/shiki/langs/angular-ts.js +1 -0
  1288. package/src/shiki/langs/apache.js +1 -0
  1289. package/src/shiki/langs/apex.js +1 -0
  1290. package/src/shiki/langs/apl.js +1 -0
  1291. package/src/shiki/langs/applescript.js +1 -0
  1292. package/src/shiki/langs/ara.js +1 -0
  1293. package/src/shiki/langs/asciidoc.js +1 -0
  1294. package/src/shiki/langs/asm.js +1 -0
  1295. package/src/shiki/langs/astro.js +1 -0
  1296. package/src/shiki/langs/awk.js +1 -0
  1297. package/src/shiki/langs/ballerina.js +1 -0
  1298. package/src/shiki/langs/bat.js +1 -0
  1299. package/src/shiki/langs/beancount.js +1 -0
  1300. package/src/shiki/langs/berry.js +1 -0
  1301. package/src/shiki/langs/bibtex.js +1 -0
  1302. package/src/shiki/langs/bicep.js +1 -0
  1303. package/src/shiki/langs/blade.js +1 -0
  1304. package/src/shiki/langs/bsl.js +1 -0
  1305. package/src/shiki/langs/c.js +1 -0
  1306. package/src/shiki/langs/cadence.js +1 -0
  1307. package/src/shiki/langs/cairo.js +1 -0
  1308. package/src/shiki/langs/clarity.js +1 -0
  1309. package/src/shiki/langs/clojure.js +1 -0
  1310. package/src/shiki/langs/cmake.js +1 -0
  1311. package/src/shiki/langs/cobol.js +1 -0
  1312. package/src/shiki/langs/codeowners.js +1 -0
  1313. package/src/shiki/langs/codeql.js +1 -0
  1314. package/src/shiki/langs/coffee.js +1 -0
  1315. package/src/shiki/langs/common-lisp.js +1 -0
  1316. package/src/shiki/langs/coq.js +1 -0
  1317. package/src/shiki/langs/cpp-macro.js +1 -0
  1318. package/src/shiki/langs/cpp.js +1 -0
  1319. package/src/shiki/langs/crystal.js +1 -0
  1320. package/src/shiki/langs/csharp.js +1 -0
  1321. package/src/shiki/langs/css.js +1 -0
  1322. package/src/shiki/langs/csv.js +1 -0
  1323. package/src/shiki/langs/cue.js +1 -0
  1324. package/src/shiki/langs/cypher.js +1 -0
  1325. package/src/shiki/langs/d.js +1 -0
  1326. package/src/shiki/langs/dart.js +1 -0
  1327. package/src/shiki/langs/dax.js +1 -0
  1328. package/src/shiki/langs/desktop.js +1 -0
  1329. package/src/shiki/langs/diff.js +1 -0
  1330. package/src/shiki/langs/docker.js +1 -0
  1331. package/src/shiki/langs/dotenv.js +1 -0
  1332. package/src/shiki/langs/dream-maker.js +1 -0
  1333. package/src/shiki/langs/edge.js +1 -0
  1334. package/src/shiki/langs/elixir.js +1 -0
  1335. package/src/shiki/langs/elm.js +1 -0
  1336. package/src/shiki/langs/emacs-lisp.js +1 -0
  1337. package/src/shiki/langs/erb.js +1 -0
  1338. package/src/shiki/langs/erlang.js +1 -0
  1339. package/src/shiki/langs/es-tag-css.js +1 -0
  1340. package/src/shiki/langs/es-tag-glsl.js +1 -0
  1341. package/src/shiki/langs/es-tag-html.js +1 -0
  1342. package/src/shiki/langs/es-tag-sql.js +1 -0
  1343. package/src/shiki/langs/es-tag-xml.js +1 -0
  1344. package/src/shiki/langs/fennel.js +1 -0
  1345. package/src/shiki/langs/fish.js +1 -0
  1346. package/src/shiki/langs/fluent.js +1 -0
  1347. package/src/shiki/langs/fortran-fixed-form.js +1 -0
  1348. package/src/shiki/langs/fortran-free-form.js +1 -0
  1349. package/src/shiki/langs/fsharp.js +1 -0
  1350. package/src/shiki/langs/gdresource.js +1 -0
  1351. package/src/shiki/langs/gdscript.js +1 -0
  1352. package/src/shiki/langs/gdshader.js +1 -0
  1353. package/src/shiki/langs/genie.js +1 -0
  1354. package/src/shiki/langs/gherkin.js +1 -0
  1355. package/src/shiki/langs/git-commit.js +1 -0
  1356. package/src/shiki/langs/git-rebase.js +1 -0
  1357. package/src/shiki/langs/gleam.js +1 -0
  1358. package/src/shiki/langs/glimmer-js.js +1 -0
  1359. package/src/shiki/langs/glimmer-ts.js +1 -0
  1360. package/src/shiki/langs/glsl.js +1 -0
  1361. package/src/shiki/langs/gnuplot.js +1 -0
  1362. package/src/shiki/langs/go.js +1 -0
  1363. package/src/shiki/langs/graphql.js +1 -0
  1364. package/src/shiki/langs/groovy.js +1 -0
  1365. package/src/shiki/langs/hack.js +1 -0
  1366. package/src/shiki/langs/haml.js +1 -0
  1367. package/src/shiki/langs/handlebars.js +1 -0
  1368. package/src/shiki/langs/haskell.js +1 -0
  1369. package/src/shiki/langs/haxe.js +1 -0
  1370. package/src/shiki/langs/hcl.js +1 -0
  1371. package/src/shiki/langs/hjson.js +1 -0
  1372. package/src/shiki/langs/hlsl.js +1 -0
  1373. package/src/shiki/langs/html-derivative.js +1 -0
  1374. package/src/shiki/langs/html.js +1 -0
  1375. package/src/shiki/langs/http.js +1 -0
  1376. package/src/shiki/langs/hxml.js +1 -0
  1377. package/src/shiki/langs/hy.js +1 -0
  1378. package/src/shiki/langs/imba.js +1 -0
  1379. package/src/shiki/langs/ini.js +1 -0
  1380. package/src/shiki/langs/java.js +1 -0
  1381. package/src/shiki/langs/javascript.js +1 -0
  1382. package/src/shiki/langs/jinja-html.js +1 -0
  1383. package/src/shiki/langs/jinja.js +1 -0
  1384. package/src/shiki/langs/jison.js +1 -0
  1385. package/src/shiki/langs/json.js +1 -0
  1386. package/src/shiki/langs/json5.js +1 -0
  1387. package/src/shiki/langs/jsonc.js +1 -0
  1388. package/src/shiki/langs/jsonl.js +1 -0
  1389. package/src/shiki/langs/jsonnet.js +1 -0
  1390. package/src/shiki/langs/jssm.js +1 -0
  1391. package/src/shiki/langs/jsx.js +1 -0
  1392. package/src/shiki/langs/julia.js +1 -0
  1393. package/src/shiki/langs/kotlin.js +1 -0
  1394. package/src/shiki/langs/kusto.js +1 -0
  1395. package/src/shiki/langs/latex.js +1 -0
  1396. package/src/shiki/langs/lean.js +1 -0
  1397. package/src/shiki/langs/less.js +1 -0
  1398. package/src/shiki/langs/liquid.js +1 -0
  1399. package/src/shiki/langs/llvm.js +1 -0
  1400. package/src/shiki/langs/log.js +1 -0
  1401. package/src/shiki/langs/logo.js +1 -0
  1402. package/src/shiki/langs/lua.js +1 -0
  1403. package/src/shiki/langs/luau.js +1 -0
  1404. package/src/shiki/langs/make.js +1 -0
  1405. package/src/shiki/langs/markdown-vue.js +1 -0
  1406. package/src/shiki/langs/markdown.js +1 -0
  1407. package/src/shiki/langs/marko.js +1 -0
  1408. package/src/shiki/langs/matlab.js +1 -0
  1409. package/src/shiki/langs/mdc.js +1 -0
  1410. package/src/shiki/langs/mdx.js +1 -0
  1411. package/src/shiki/langs/mermaid.js +1 -0
  1412. package/src/shiki/langs/mipsasm.js +1 -0
  1413. package/src/shiki/langs/mojo.js +1 -0
  1414. package/src/shiki/langs/move.js +1 -0
  1415. package/src/shiki/langs/narrat.js +1 -0
  1416. package/src/shiki/langs/nextflow.js +1 -0
  1417. package/src/shiki/langs/nginx.js +1 -0
  1418. package/src/shiki/langs/nim.js +1 -0
  1419. package/src/shiki/langs/nix.js +1 -0
  1420. package/src/shiki/langs/nushell.js +1 -0
  1421. package/src/shiki/langs/objective-c.js +1 -0
  1422. package/src/shiki/langs/objective-cpp.js +1 -0
  1423. package/src/shiki/langs/ocaml.js +1 -0
  1424. package/src/shiki/langs/pascal.js +1 -0
  1425. package/src/shiki/langs/perl.js +1 -0
  1426. package/src/shiki/langs/php.js +1 -0
  1427. package/src/shiki/langs/plsql.js +1 -0
  1428. package/src/shiki/langs/po.js +1 -0
  1429. package/src/shiki/langs/polar.js +1 -0
  1430. package/src/shiki/langs/postcss.js +1 -0
  1431. package/src/shiki/langs/powerquery.js +1 -0
  1432. package/src/shiki/langs/powershell.js +1 -0
  1433. package/src/shiki/langs/prisma.js +1 -0
  1434. package/src/shiki/langs/prolog.js +1 -0
  1435. package/src/shiki/langs/proto.js +1 -0
  1436. package/src/shiki/langs/pug.js +1 -0
  1437. package/src/shiki/langs/puppet.js +1 -0
  1438. package/src/shiki/langs/purescript.js +1 -0
  1439. package/src/shiki/langs/python.js +1 -0
  1440. package/src/shiki/langs/qml.js +1 -0
  1441. package/src/shiki/langs/qmldir.js +1 -0
  1442. package/src/shiki/langs/qss.js +1 -0
  1443. package/src/shiki/langs/r.js +1 -0
  1444. package/src/shiki/langs/racket.js +1 -0
  1445. package/src/shiki/langs/raku.js +1 -0
  1446. package/src/shiki/langs/razor.js +1 -0
  1447. package/src/shiki/langs/reg.js +1 -0
  1448. package/src/shiki/langs/regexp.js +1 -0
  1449. package/src/shiki/langs/rel.js +1 -0
  1450. package/src/shiki/langs/riscv.js +1 -0
  1451. package/src/shiki/langs/rst.js +1 -0
  1452. package/src/shiki/langs/ruby.js +1 -0
  1453. package/src/shiki/langs/rust.js +1 -0
  1454. package/src/shiki/langs/sas.js +1 -0
  1455. package/src/shiki/langs/sass.js +1 -0
  1456. package/src/shiki/langs/scala.js +1 -0
  1457. package/src/shiki/langs/scheme.js +1 -0
  1458. package/src/shiki/langs/scss.js +1 -0
  1459. package/src/shiki/langs/sdbl.js +1 -0
  1460. package/src/shiki/langs/shaderlab.js +1 -0
  1461. package/src/shiki/langs/shellscript.js +1 -0
  1462. package/src/shiki/langs/shellsession.js +1 -0
  1463. package/src/shiki/langs/smalltalk.js +1 -0
  1464. package/src/shiki/langs/solidity.js +1 -0
  1465. package/src/shiki/langs/soy.js +1 -0
  1466. package/src/shiki/langs/sparql.js +1 -0
  1467. package/src/shiki/langs/splunk.js +1 -0
  1468. package/src/shiki/langs/sql.js +1 -0
  1469. package/src/shiki/langs/ssh-config.js +1 -0
  1470. package/src/shiki/langs/stata.js +1 -0
  1471. package/src/shiki/langs/stylus.js +1 -0
  1472. package/src/shiki/langs/svelte.js +1 -0
  1473. package/src/shiki/langs/swift.js +1 -0
  1474. package/src/shiki/langs/system-verilog.js +1 -0
  1475. package/src/shiki/langs/systemd.js +1 -0
  1476. package/src/shiki/langs/talonscript.js +1 -0
  1477. package/src/shiki/langs/tasl.js +1 -0
  1478. package/src/shiki/langs/tcl.js +1 -0
  1479. package/src/shiki/langs/templ.js +1 -0
  1480. package/src/shiki/langs/terraform.js +1 -0
  1481. package/src/shiki/langs/tex.js +1 -0
  1482. package/src/shiki/langs/toml.js +1 -0
  1483. package/src/shiki/langs/ts-tags.js +1 -0
  1484. package/src/shiki/langs/tsv.js +1 -0
  1485. package/src/shiki/langs/tsx.js +1 -0
  1486. package/src/shiki/langs/turtle.js +1 -0
  1487. package/src/shiki/langs/twig.js +1 -0
  1488. package/src/shiki/langs/typescript.js +1 -0
  1489. package/src/shiki/langs/typespec.js +1 -0
  1490. package/src/shiki/langs/typst.js +1 -0
  1491. package/src/shiki/langs/v.js +1 -0
  1492. package/src/shiki/langs/vala.js +1 -0
  1493. package/src/shiki/langs/vb.js +1 -0
  1494. package/src/shiki/langs/verilog.js +1 -0
  1495. package/src/shiki/langs/vhdl.js +1 -0
  1496. package/src/shiki/langs/viml.js +1 -0
  1497. package/src/shiki/langs/vue-directives.js +1 -0
  1498. package/src/shiki/langs/vue-html.js +1 -0
  1499. package/src/shiki/langs/vue-interpolations.js +1 -0
  1500. package/src/shiki/langs/vue-sfc-style-variable-injection.js +1 -0
  1501. package/src/shiki/langs/vue.js +1 -0
  1502. package/src/shiki/langs/vyper.js +1 -0
  1503. package/src/shiki/langs/wasm.js +1 -0
  1504. package/src/shiki/langs/wenyan.js +1 -0
  1505. package/src/shiki/langs/wgsl.js +1 -0
  1506. package/src/shiki/langs/wikitext.js +1 -0
  1507. package/src/shiki/langs/wit.js +1 -0
  1508. package/src/shiki/langs/wolfram.js +1 -0
  1509. package/src/shiki/langs/xml.js +1 -0
  1510. package/src/shiki/langs/xsl.js +1 -0
  1511. package/src/shiki/langs/yaml.js +1 -0
  1512. package/src/shiki/langs/zenscript.js +1 -0
  1513. package/src/shiki/langs/zig.js +1 -0
  1514. package/src/shiki/themes/andromeeda.js +1 -0
  1515. package/src/shiki/themes/aurora-x.js +1 -0
  1516. package/src/shiki/themes/ayu-dark.js +1 -0
  1517. package/src/shiki/themes/catppuccin-frappe.js +1 -0
  1518. package/src/shiki/themes/catppuccin-latte.js +1 -0
  1519. package/src/shiki/themes/catppuccin-macchiato.js +1 -0
  1520. package/src/shiki/themes/catppuccin-mocha.js +1 -0
  1521. package/src/shiki/themes/dark-plus.js +1 -0
  1522. package/src/shiki/themes/dracula-soft.js +1 -0
  1523. package/src/shiki/themes/dracula.js +1 -0
  1524. package/src/shiki/themes/everforest-dark.js +1 -0
  1525. package/src/shiki/themes/everforest-light.js +1 -0
  1526. package/src/shiki/themes/github-dark-default.js +1 -0
  1527. package/src/shiki/themes/github-dark-dimmed.js +1 -0
  1528. package/src/shiki/themes/github-dark-high-contrast.js +1 -0
  1529. package/src/shiki/themes/github-dark.js +1 -0
  1530. package/src/shiki/themes/github-light-default.js +1 -0
  1531. package/src/shiki/themes/github-light-high-contrast.js +1 -0
  1532. package/src/shiki/themes/github-light.js +1 -0
  1533. package/src/shiki/themes/gruvbox-dark-hard.js +1 -0
  1534. package/src/shiki/themes/gruvbox-dark-medium.js +1 -0
  1535. package/src/shiki/themes/gruvbox-dark-soft.js +1 -0
  1536. package/src/shiki/themes/gruvbox-light-hard.js +1 -0
  1537. package/src/shiki/themes/gruvbox-light-medium.js +1 -0
  1538. package/src/shiki/themes/gruvbox-light-soft.js +1 -0
  1539. package/src/shiki/themes/houston.js +1 -0
  1540. package/src/shiki/themes/kanagawa-dragon.js +1 -0
  1541. package/src/shiki/themes/kanagawa-lotus.js +1 -0
  1542. package/src/shiki/themes/kanagawa-wave.js +1 -0
  1543. package/src/shiki/themes/laserwave.js +1 -0
  1544. package/src/shiki/themes/light-plus.js +1 -0
  1545. package/src/shiki/themes/material-theme-darker.js +1 -0
  1546. package/src/shiki/themes/material-theme-lighter.js +1 -0
  1547. package/src/shiki/themes/material-theme-ocean.js +1 -0
  1548. package/src/shiki/themes/material-theme-palenight.js +1 -0
  1549. package/src/shiki/themes/material-theme.js +1 -0
  1550. package/src/shiki/themes/min-dark.js +1 -0
  1551. package/src/shiki/themes/min-light.js +1 -0
  1552. package/src/shiki/themes/monokai.js +1 -0
  1553. package/src/shiki/themes/night-owl.js +1 -0
  1554. package/src/shiki/themes/nord.js +1 -0
  1555. package/src/shiki/themes/one-dark-pro.js +1 -0
  1556. package/src/shiki/themes/one-light.js +1 -0
  1557. package/src/shiki/themes/plastic.js +1 -0
  1558. package/src/shiki/themes/poimandres.js +1 -0
  1559. package/src/shiki/themes/red.js +1 -0
  1560. package/src/shiki/themes/rose-pine-dawn.js +1 -0
  1561. package/src/shiki/themes/rose-pine-moon.js +1 -0
  1562. package/src/shiki/themes/rose-pine.js +1 -0
  1563. package/src/shiki/themes/slack-dark.js +1 -0
  1564. package/src/shiki/themes/slack-ochin.js +1 -0
  1565. package/src/shiki/themes/snazzy-light.js +1 -0
  1566. package/src/shiki/themes/solarized-dark.js +1 -0
  1567. package/src/shiki/themes/solarized-light.js +1 -0
  1568. package/src/shiki/themes/synthwave-84.js +1 -0
  1569. package/src/shiki/themes/tokyo-night.js +1 -0
  1570. package/src/shiki/themes/vesper.js +1 -0
  1571. package/src/shiki/themes/vitesse-black.js +1 -0
  1572. package/src/shiki/themes/vitesse-dark.js +1 -0
  1573. package/src/shiki/themes/vitesse-light.js +1 -0
  1574. package/LICENSE.md +0 -9
  1575. package/client.d.ts +0 -1
  1576. package/dist/app/tailwind.d.ts +0 -3
  1577. package/dist/app/tailwind.js +0 -65
  1578. package/dist/app/tailwind.js.map +0 -1
  1579. package/dist/internal.d.ts +0 -1
  1580. package/dist/internal.js +0 -2
  1581. package/dist/internal.js.map +0 -1
  1582. package/dist/lib/components/DevPortal.d.ts +0 -7
  1583. package/dist/lib/components/DevPortal.js +0 -54
  1584. package/dist/lib/components/DevPortal.js.map +0 -1
  1585. package/dist/lib/components/Dialog.js +0 -23
  1586. package/dist/lib/components/Dialog.js.map +0 -1
  1587. package/dist/lib/components/Select.js +0 -27
  1588. package/dist/lib/components/Select.js.map +0 -1
  1589. package/dist/lib/components/SlotletProvider.d.ts +0 -9
  1590. package/dist/lib/components/SlotletProvider.js +0 -16
  1591. package/dist/lib/components/SlotletProvider.js.map +0 -1
  1592. package/dist/lib/components/SyntaxHighlight.d.ts +0 -11
  1593. package/dist/lib/components/SyntaxHighlight.js +0 -50
  1594. package/dist/lib/components/SyntaxHighlight.js.map +0 -1
  1595. package/dist/lib/components/context/PluginSystem.js +0 -2
  1596. package/dist/lib/components/context/PluginSystem.js.map +0 -1
  1597. package/dist/lib/components/context/ThemeContext.d.ts +0 -2
  1598. package/dist/lib/components/context/ThemeContext.js +0 -7
  1599. package/dist/lib/components/context/ThemeContext.js.map +0 -1
  1600. package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
  1601. package/dist/lib/components/context/ThemeProvider.js +0 -23
  1602. package/dist/lib/components/context/ThemeProvider.js.map +0 -1
  1603. package/dist/lib/core/DevPortalContext.d.ts +0 -78
  1604. package/dist/lib/core/DevPortalContext.js +0 -49
  1605. package/dist/lib/core/DevPortalContext.js.map +0 -1
  1606. package/dist/lib/plugins/custom-page/index.d.ts +0 -8
  1607. package/dist/lib/plugins/custom-page/index.js +0 -12
  1608. package/dist/lib/plugins/custom-page/index.js.map +0 -1
  1609. package/dist/lib/plugins/markdown/Toc.js +0 -48
  1610. package/dist/lib/plugins/markdown/Toc.js.map +0 -1
  1611. package/dist/lib/plugins/markdown/generateRoutes.d.ts +0 -3
  1612. package/dist/lib/plugins/markdown/generateRoutes.js +0 -21
  1613. package/dist/lib/plugins/markdown/generateRoutes.js.map +0 -1
  1614. package/dist/lib/plugins/openapi/Route.d.ts +0 -6
  1615. package/dist/lib/plugins/openapi/Route.js +0 -8
  1616. package/dist/lib/plugins/openapi/Route.js.map +0 -1
  1617. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -12
  1618. package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -46
  1619. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
  1620. package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
  1621. package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -61
  1622. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
  1623. package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
  1624. package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
  1625. package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
  1626. package/dist/lib/plugins/openapi/client/worker.js +0 -20
  1627. package/dist/lib/plugins/openapi/client/worker.js.map +0 -1
  1628. package/dist/lib/plugins/openapi/playground/Editor.d.ts +0 -1
  1629. package/dist/lib/plugins/openapi/playground/Editor.js +0 -5
  1630. package/dist/lib/plugins/openapi/playground/Editor.js.map +0 -1
  1631. package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +0 -4
  1632. package/dist/lib/plugins/openapi/playground/ResponseTab.js +0 -42
  1633. package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +0 -1
  1634. package/dist/lib/plugins/openapi/schema/SchemaComponents.d.ts +0 -13
  1635. package/dist/lib/plugins/openapi/schema/SchemaComponents.js +0 -28
  1636. package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +0 -1
  1637. package/dist/lib/plugins/openapi/util/urql.d.ts +0 -7
  1638. package/dist/lib/plugins/openapi/util/urql.js +0 -8
  1639. package/dist/lib/plugins/openapi/util/urql.js.map +0 -1
  1640. package/dist/lib/plugins/openapi-worker.d.ts +0 -1
  1641. package/dist/lib/plugins/openapi-worker.js +0 -2
  1642. package/dist/lib/plugins/openapi-worker.js.map +0 -1
  1643. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
  1644. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
  1645. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
  1646. package/dist/lib/themeToggle.d.ts +0 -1
  1647. package/dist/lib/themeToggle.js +0 -7
  1648. package/dist/lib/themeToggle.js.map +0 -1
  1649. package/dist/lib/ui/Note.d.ts +0 -8
  1650. package/dist/lib/ui/Note.js +0 -23
  1651. package/dist/lib/ui/Note.js.map +0 -1
  1652. package/dist/lib/util/createWaitForNotify.d.ts +0 -1
  1653. package/dist/lib/util/createWaitForNotify.js +0 -15
  1654. package/dist/lib/util/createWaitForNotify.js.map +0 -1
  1655. package/dist/vite/plugin-custom-css.d.ts +0 -6
  1656. package/dist/vite/plugin-custom-css.js +0 -55
  1657. package/dist/vite/plugin-custom-css.js.map +0 -1
  1658. package/dist/vite/plugin-html-transform.d.ts +0 -2
  1659. package/dist/vite/plugin-html-transform.js +0 -15
  1660. package/dist/vite/plugin-html-transform.js.map +0 -1
  1661. package/dist/vite/prerender.d.ts +0 -17
  1662. package/dist/vite/prerender.js +0 -87
  1663. package/dist/vite/prerender.js.map +0 -1
  1664. package/lib/AuthenticationPlugin-Bx9FK124.js +0 -55
  1665. package/lib/AuthenticationPlugin-Bx9FK124.js.map +0 -1
  1666. package/lib/CategoryHeading-ovR-zHRq.js +0 -10
  1667. package/lib/CategoryHeading-ovR-zHRq.js.map +0 -1
  1668. package/lib/DeveloperHint-YeWHKvyr.js +0 -16
  1669. package/lib/DeveloperHint-YeWHKvyr.js.map +0 -1
  1670. package/lib/ErrorPage-CsZAN_za.js +0 -16
  1671. package/lib/ErrorPage-CsZAN_za.js.map +0 -1
  1672. package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
  1673. package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
  1674. package/lib/Input-CtVUl3eT.js +0 -2198
  1675. package/lib/Input-CtVUl3eT.js.map +0 -1
  1676. package/lib/Markdown-DapSf3wG.js +0 -20281
  1677. package/lib/Markdown-DapSf3wG.js.map +0 -1
  1678. package/lib/MdxPage-BqBWsXZ1.js +0 -172
  1679. package/lib/MdxPage-BqBWsXZ1.js.map +0 -1
  1680. package/lib/OperationList-CYrmxPa8.js +0 -602
  1681. package/lib/OperationList-CYrmxPa8.js.map +0 -1
  1682. package/lib/Route-Q5mqNQrv.js +0 -14
  1683. package/lib/Route-Q5mqNQrv.js.map +0 -1
  1684. package/lib/SidebarBadge-Dx7jtnoA.js +0 -498
  1685. package/lib/SidebarBadge-Dx7jtnoA.js.map +0 -1
  1686. package/lib/SlotletProvider-D3UD5Go3.js +0 -238
  1687. package/lib/SlotletProvider-D3UD5Go3.js.map +0 -1
  1688. package/lib/Spinner-3cQDBVGr.js +0 -7
  1689. package/lib/Spinner-3cQDBVGr.js.map +0 -1
  1690. package/lib/ZudokuContext-cr-pTRY1.js +0 -1084
  1691. package/lib/ZudokuContext-cr-pTRY1.js.map +0 -1
  1692. package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
  1693. package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
  1694. package/lib/assets/index-B9EWVYfo.js +0 -4790
  1695. package/lib/assets/index-B9EWVYfo.js.map +0 -1
  1696. package/lib/assets/worker-BP8Uzflt.js +0 -17916
  1697. package/lib/assets/worker-BP8Uzflt.js.map +0 -1
  1698. package/lib/index-BG0g4WW0.js +0 -1771
  1699. package/lib/index-BG0g4WW0.js.map +0 -1
  1700. package/lib/index-BlJ2rj99.js +0 -5815
  1701. package/lib/index-BlJ2rj99.js.map +0 -1
  1702. package/lib/index-BngPzhKn.js +0 -124
  1703. package/lib/index-BngPzhKn.js.map +0 -1
  1704. package/lib/index-CLd8ycZz.js +0 -4790
  1705. package/lib/index-CLd8ycZz.js.map +0 -1
  1706. package/lib/index-Dolisrci.js +0 -2814
  1707. package/lib/index-Dolisrci.js.map +0 -1
  1708. package/lib/index-LNp6rxyU.js +0 -2094
  1709. package/lib/index-LNp6rxyU.js.map +0 -1
  1710. package/lib/joinPath-B7kNnUX4.js +0 -8
  1711. package/lib/joinPath-B7kNnUX4.js.map +0 -1
  1712. package/lib/jsx-runtime-B6kdoens.js +0 -635
  1713. package/lib/jsx-runtime-B6kdoens.js.map +0 -1
  1714. package/lib/prism-bash.min-DadFsM4Z.js +0 -7
  1715. package/lib/prism-bash.min-DadFsM4Z.js.map +0 -1
  1716. package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
  1717. package/lib/prism-csharp.min-Yizuc34Y.js.map +0 -1
  1718. package/lib/prism-java.min-d5iT_mOd.js +0 -7
  1719. package/lib/prism-java.min-d5iT_mOd.js.map +0 -1
  1720. package/lib/prism-javascript.min-CEqHqgbm.js +0 -9
  1721. package/lib/prism-javascript.min-CEqHqgbm.js.map +0 -1
  1722. package/lib/prism-json.min-B1GJqK1k.js +0 -2
  1723. package/lib/prism-json.min-B1GJqK1k.js.map +0 -1
  1724. package/lib/prism-markdown.min-F3U-vPBi.js +0 -61
  1725. package/lib/prism-markdown.min-F3U-vPBi.js.map +0 -1
  1726. package/lib/prism-markup-BNGj0Tvm.js +0 -174
  1727. package/lib/prism-markup-BNGj0Tvm.js.map +0 -1
  1728. package/lib/prism-markup-templating-DZrrEs0A.js +0 -62
  1729. package/lib/prism-markup-templating-DZrrEs0A.js.map +0 -1
  1730. package/lib/prism-objectivec.min-BXSWqpJJ.js +0 -2
  1731. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +0 -1
  1732. package/lib/prism-php.min-o7FpoMP_.js +0 -11
  1733. package/lib/prism-php.min-o7FpoMP_.js.map +0 -1
  1734. package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
  1735. package/lib/prism-ruby.min-C7LwcKyz.js.map +0 -1
  1736. package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
  1737. package/lib/prism-typescript.min-oSVeWCAd.js.map +0 -1
  1738. package/lib/router-D2p7Olpn.js +0 -2971
  1739. package/lib/router-D2p7Olpn.js.map +0 -1
  1740. package/lib/state-hNe1dw4B.js +0 -548
  1741. package/lib/state-hNe1dw4B.js.map +0 -1
  1742. package/lib/urql-YhcsXYy8.js +0 -1591
  1743. package/lib/urql-YhcsXYy8.js.map +0 -1
  1744. package/lib/utils-ByIc_KIM.js +0 -749
  1745. package/lib/utils-ByIc_KIM.js.map +0 -1
  1746. package/lib/zudoku.openapi-worker.js +0 -16059
  1747. package/lib/zudoku.openapi-worker.js.map +0 -1
  1748. package/lib/zudoku.plugin-custom-page.js +0 -13
  1749. package/lib/zudoku.plugin-custom-page.js.map +0 -1
  1750. package/src/app/tailwind.ts +0 -68
  1751. package/src/lib/components/DevPortal.tsx +0 -111
  1752. package/src/lib/components/Dialog.tsx +0 -119
  1753. package/src/lib/components/Select.tsx +0 -157
  1754. package/src/lib/components/SlotletProvider.tsx +0 -30
  1755. package/src/lib/components/SyntaxHighlight.tsx +0 -122
  1756. package/src/lib/components/context/PluginSystem.ts +0 -0
  1757. package/src/lib/components/context/ThemeContext.tsx +0 -8
  1758. package/src/lib/components/context/ThemeProvider.tsx +0 -27
  1759. package/src/lib/core/DevPortalContext.ts +0 -135
  1760. package/src/lib/plugins/custom-page/index.tsx +0 -22
  1761. package/src/lib/plugins/markdown/Toc.tsx +0 -135
  1762. package/src/lib/plugins/markdown/generateRoutes.tsx +0 -38
  1763. package/src/lib/plugins/openapi/Route.tsx +0 -21
  1764. package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -56
  1765. package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -80
  1766. package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
  1767. package/src/lib/plugins/openapi/client/worker.ts +0 -30
  1768. package/src/lib/plugins/openapi/playground/Editor.tsx +0 -4
  1769. package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -76
  1770. package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +0 -126
  1771. package/src/lib/plugins/openapi/util/urql.ts +0 -8
  1772. package/src/lib/plugins/openapi-worker.ts +0 -1
  1773. package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
  1774. package/src/lib/themeToggle.ts +0 -7
  1775. package/src/lib/ui/Note.tsx +0 -58
  1776. package/src/lib/util/createWaitForNotify.ts +0 -18
  1777. /package/dist/lib/components/{context/PluginSystem.d.ts → Slot.test.d.ts} +0 -0
  1778. /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
  1779. /package/dist/lib/{plugins/openapi/client/worker.d.ts → hooks/useEvent.test.d.ts} +0 -0
  1780. /package/dist/lib/{components → ui}/Dialog.d.ts +0 -0
  1781. /package/dist/lib/{components → ui}/Select.d.ts +0 -0
@@ -1,3367 +1,37 @@
1
- var Io = Object.defineProperty;
2
- var sn = (e) => {
3
- throw TypeError(e);
4
- };
5
- var Ao = (e, t, n) => t in e ? Io(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
- var J = (e, t, n) => Ao(e, typeof t != "symbol" ? t + "" : t, n), ln = (e, t, n) => t.has(e) || sn("Cannot " + n);
7
- var b = (e, t, n) => (ln(e, t, "read from private field"), n ? n.call(e) : t.get(e)), ae = (e, t, n) => t.has(e) ? sn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), G = (e, t, n, r) => (ln(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
8
- var it = (e, t, n, r) => ({
9
- set _(a) {
10
- G(e, t, a, n);
11
- },
12
- get _() {
13
- return b(e, t, r);
14
- }
15
- });
16
- import { c as Dn, H as _t, M as ko, d as $o, A as Lo, b as Fo } from "./utils-ByIc_KIM.js";
17
- import { e as Ho, f as Uo, R as Bo, N as We, L as Ot, g as zo, O as jn, u as Ko, b as It } from "./index-BG0g4WW0.js";
18
- import { E as Nn, S as Pe, a as Vo, R as Qo } from "./SlotletProvider-D3UD5Go3.js";
19
- import { j as o } from "./jsx-runtime-B6kdoens.js";
20
- import { M as qo, f as Go, c as Pn, o as Tn, A as Wo, d as Ze, i as Yo, b as A, j as Xo, F as Jo, D as Zo, C as ea, P as He, h as At, p as ta, r as _n, R as na, S as ra, s as oa, g as aa, q as On, l as sa, a as ht, u as In, V as An, m as cn, B as Rt } from "./index-Dolisrci.js";
21
- import { a as O, c as kn, b as ia, T as la, d as ca, V as ua, u as kt, e as da, C as fa } from "./Markdown-DapSf3wG.js";
22
- import * as h from "react";
23
- import g, { StrictMode as $n, createContext as Ln, Component as ha, createElement as un, isValidElement as pa, useState as Te, useLayoutEffect as ma, useEffect as be, useCallback as Fn, Suspense as Hn, memo as Un, useMemo as xt, useContext as ga, Fragment as va, useRef as $t, forwardRef as wa } from "react";
24
- import { a as Lt } from "./_commonjsHelpers-BkfeUUK-.js";
25
- import { z as ba } from "./router-D2p7Olpn.js";
26
- import { a as Dt, R as xa, T as ya, C as Ma } from "./index-BngPzhKn.js";
27
- import { S as Bn, f as zn, Q as Sa, n as ee, m as dn, g as fn, i as ve, j as Ca, k as Ea, l as Ra, o as Da, p as hn, r as pn, q as ja, h as mn, t as gn, v as Na, u as Ue, b as Pa, Z as Ta, w as _a, c as Kn, x as Oa } from "./ZudokuContext-cr-pTRY1.js";
28
- import { j as Ft } from "./joinPath-B7kNnUX4.js";
29
- import { ChevronRightIcon as Vn, CheckIcon as Ia, DotIcon as Aa, CircleXIcon as ka, MenuIcon as $a, SearchIcon as La, MoonStarIcon as Fa, SunIcon as Ha, ExternalLinkIcon as Ua, PanelLeftIcon as Ba } from "lucide-react";
30
- import { c as Qn, P as gt, R as za, I as Ka, O as Va, C as Qa, T as qa, a as Ga, b as Wa, d as Ya, D as Xa, e as Ja, S as yt } from "./SidebarBadge-Dx7jtnoA.js";
31
- import { S as Za } from "./Spinner-3cQDBVGr.js";
32
- function es({ error: e }) {
33
- return /* @__PURE__ */ o.jsx(Nn, { error: e });
34
- }
35
- var et = {};
36
- const ts = /* @__PURE__ */ Lt(ba), ns = /* @__PURE__ */ Lt(Ho), rs = /* @__PURE__ */ Lt(Uo);
37
- Object.defineProperty(et, "__esModule", { value: !0 });
38
- var os = g, fe = ts, Ht = ns, we = rs;
39
- function as(e) {
40
- if (e && e.__esModule) return e;
41
- var t = /* @__PURE__ */ Object.create(null);
42
- return e && Object.keys(e).forEach(function(n) {
43
- if (n !== "default") {
44
- var r = Object.getOwnPropertyDescriptor(e, n);
45
- Object.defineProperty(t, n, r.get ? r : {
46
- enumerable: !0,
47
- get: function() {
48
- return e[n];
49
- }
50
- });
51
- }
52
- }), t.default = e, Object.freeze(t);
53
- }
54
- var ue = /* @__PURE__ */ as(os);
55
- function ss({
56
- basename: e,
57
- children: t,
58
- location: n = "/",
59
- future: r
60
- }) {
61
- typeof n == "string" && (n = we.parsePath(n));
62
- let a = fe.Action.Pop, s = {
63
- pathname: n.pathname || "/",
64
- search: n.search || "",
65
- hash: n.hash || "",
66
- state: n.state != null ? n.state : null,
67
- key: n.key || "default"
68
- }, i = qn();
69
- return /* @__PURE__ */ ue.createElement(we.Router, {
70
- basename: e,
71
- children: t,
72
- location: s,
73
- navigationType: a,
74
- navigator: i,
75
- future: r,
76
- static: !0
77
- });
78
- }
79
- function is({
80
- context: e,
81
- router: t,
82
- hydrate: n = !0,
83
- nonce: r
84
- }) {
85
- t && e || (process.env.NODE_ENV !== "production" ? fe.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : fe.UNSAFE_invariant(!1));
86
- let a = {
87
- router: t,
88
- navigator: qn(),
89
- static: !0,
90
- staticContext: e,
91
- basename: e.basename || "/"
92
- }, s = /* @__PURE__ */ new Map(), i = "";
93
- if (n !== !1) {
94
- let u = {
95
- loaderData: e.loaderData,
96
- actionData: e.actionData,
97
- errors: cs(e.errors)
98
- };
99
- i = `window.__staticRouterHydrationData = JSON.parse(${ms(JSON.stringify(JSON.stringify(u)))});`;
100
- }
101
- let {
102
- state: l
103
- } = a.router;
104
- return /* @__PURE__ */ ue.createElement(ue.Fragment, null, /* @__PURE__ */ ue.createElement(we.UNSAFE_DataRouterContext.Provider, {
105
- value: a
106
- }, /* @__PURE__ */ ue.createElement(we.UNSAFE_DataRouterStateContext.Provider, {
107
- value: l
108
- }, /* @__PURE__ */ ue.createElement(we.UNSAFE_FetchersContext.Provider, {
109
- value: s
110
- }, /* @__PURE__ */ ue.createElement(we.UNSAFE_ViewTransitionContext.Provider, {
111
- value: {
112
- isTransitioning: !1
113
- }
114
- }, /* @__PURE__ */ ue.createElement(we.Router, {
115
- basename: a.basename,
116
- location: l.location,
117
- navigationType: l.historyAction,
118
- navigator: a.navigator,
119
- static: a.static,
120
- future: {
121
- v7_relativeSplatPath: t.future.v7_relativeSplatPath
122
- }
123
- }, /* @__PURE__ */ ue.createElement(ls, {
124
- routes: t.routes,
125
- future: t.future,
126
- state: l
127
- })))))), i ? /* @__PURE__ */ ue.createElement("script", {
128
- suppressHydrationWarning: !0,
129
- nonce: r,
130
- dangerouslySetInnerHTML: {
131
- __html: i
132
- }
133
- }) : null);
134
- }
135
- function ls({
136
- routes: e,
137
- future: t,
138
- state: n
139
- }) {
140
- return Ht.UNSAFE_useRoutesImpl(e, void 0, n, t);
141
- }
142
- function cs(e) {
143
- if (!e) return null;
144
- let t = Object.entries(e), n = {};
145
- for (let [r, a] of t)
146
- fe.isRouteErrorResponse(a) ? n[r] = {
147
- ...a,
148
- __type: "RouteErrorResponse"
149
- } : a instanceof Error ? n[r] = {
150
- message: a.message,
151
- __type: "Error",
152
- // If this is a subclass (i.e., ReferenceError), send up the type so we
153
- // can re-create the same type during hydration.
154
- ...a.name !== "Error" ? {
155
- __subType: a.name
156
- } : {}
157
- } : n[r] = a;
158
- return n;
159
- }
160
- function qn() {
161
- return {
162
- createHref: Gn,
163
- encodeLocation: Wn,
164
- push(e) {
165
- throw new Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)})\` somewhere in your app.`);
166
- },
167
- replace(e) {
168
- throw new Error(`You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)}, { replace: true })\` somewhere in your app.`);
169
- },
170
- go(e) {
171
- throw new Error(`You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${e})\` somewhere in your app.`);
172
- },
173
- back() {
174
- throw new Error("You cannot use navigator.back() on the server because it is a stateless environment.");
175
- },
176
- forward() {
177
- throw new Error("You cannot use navigator.forward() on the server because it is a stateless environment.");
178
- }
179
- };
180
- }
181
- function us(e, t) {
182
- return fe.createStaticHandler(e, {
183
- ...t,
184
- mapRouteProperties: Ht.UNSAFE_mapRouteProperties
185
- });
186
- }
187
- function ds(e, t, n = {}) {
188
- let r = {}, a = fe.UNSAFE_convertRoutesToDataRoutes(e, Ht.UNSAFE_mapRouteProperties, void 0, r), s = t.matches.map((l) => {
189
- let u = r[l.route.id] || l.route;
190
- return {
191
- ...l,
192
- route: u
193
- };
194
- }), i = (l) => `You cannot use router.${l}() on the server because it is a stateless environment`;
195
- return {
196
- get basename() {
197
- return t.basename;
198
- },
199
- get future() {
200
- var l, u;
201
- return {
202
- v7_fetcherPersist: !1,
203
- v7_normalizeFormMethod: !1,
204
- v7_partialHydration: ((l = n.future) == null ? void 0 : l.v7_partialHydration) === !0,
205
- v7_prependBasename: !1,
206
- v7_relativeSplatPath: ((u = n.future) == null ? void 0 : u.v7_relativeSplatPath) === !0,
207
- v7_skipActionErrorRevalidation: !1
208
- };
209
- },
210
- get state() {
211
- return {
212
- historyAction: fe.Action.Pop,
213
- location: t.location,
214
- matches: s,
215
- loaderData: t.loaderData,
216
- actionData: t.actionData,
217
- errors: t.errors,
218
- initialized: !0,
219
- navigation: fe.IDLE_NAVIGATION,
220
- restoreScrollPosition: null,
221
- preventScrollReset: !1,
222
- revalidation: "idle",
223
- fetchers: /* @__PURE__ */ new Map(),
224
- blockers: /* @__PURE__ */ new Map()
225
- };
226
- },
227
- get routes() {
228
- return a;
229
- },
230
- get window() {
231
- },
232
- initialize() {
233
- throw i("initialize");
234
- },
235
- subscribe() {
236
- throw i("subscribe");
237
- },
238
- enableScrollRestoration() {
239
- throw i("enableScrollRestoration");
240
- },
241
- navigate() {
242
- throw i("navigate");
243
- },
244
- fetch() {
245
- throw i("fetch");
246
- },
247
- revalidate() {
248
- throw i("revalidate");
249
- },
250
- createHref: Gn,
251
- encodeLocation: Wn,
252
- getFetcher() {
253
- return fe.IDLE_FETCHER;
254
- },
255
- deleteFetcher() {
256
- throw i("deleteFetcher");
257
- },
258
- dispose() {
259
- throw i("dispose");
260
- },
261
- getBlocker() {
262
- return fe.IDLE_BLOCKER;
263
- },
264
- deleteBlocker() {
265
- throw i("deleteBlocker");
266
- },
267
- patchRoutes() {
268
- throw i("patchRoutes");
269
- },
270
- _internalFetchControllers: /* @__PURE__ */ new Map(),
271
- _internalActiveDeferreds: /* @__PURE__ */ new Map(),
272
- _internalSetRoutes() {
273
- throw i("_internalSetRoutes");
274
- }
275
- };
276
- }
277
- function Gn(e) {
278
- return typeof e == "string" ? e : we.createPath(e);
279
- }
280
- function Wn(e) {
281
- let t = typeof e == "string" ? e : we.createPath(e);
282
- t = t.replace(/ $/, "%20");
283
- let n = fs.test(t) ? new URL(t) : new URL(t, "http://localhost");
284
- return {
285
- pathname: n.pathname,
286
- search: n.search,
287
- hash: n.hash
288
- };
289
- }
290
- const fs = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, hs = {
291
- "&": "\\u0026",
292
- ">": "\\u003e",
293
- "<": "\\u003c",
294
- "\u2028": "\\u2028",
295
- "\u2029": "\\u2029"
296
- }, ps = /[&><\u2028\u2029]/g;
297
- function ms(e) {
298
- return e.replace(ps, (t) => hs[t]);
299
- }
300
- et.StaticRouter = ss;
301
- var gs = et.StaticRouterProvider = is;
302
- et.createStaticHandler = us;
303
- et.createStaticRouter = ds;
304
- const vs = ({
305
- router: e,
306
- hydrate: t = !1
307
- }) => /* @__PURE__ */ o.jsx($n, { children: /* @__PURE__ */ o.jsx(Dn, { children: /* @__PURE__ */ o.jsx(Dt.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ o.jsx(Bo, { router: e }) }) }) }), ws = ({
308
- router: e,
309
- context: t,
310
- helmetContext: n
311
- }) => /* @__PURE__ */ o.jsx($n, { children: /* @__PURE__ */ o.jsx(Dn, { context: n, children: /* @__PURE__ */ o.jsx(gs, { router: e, context: t }) }) });
312
- var de, Cn, bs = (Cn = class extends Bn {
313
- constructor(t = {}) {
314
- super();
315
- ae(this, de);
316
- this.config = t, G(this, de, /* @__PURE__ */ new Map());
317
- }
318
- build(t, n, r) {
319
- const a = n.queryKey, s = n.queryHash ?? zn(a, n);
320
- let i = this.get(s);
321
- return i || (i = new Sa({
322
- cache: this,
323
- queryKey: a,
324
- queryHash: s,
325
- options: t.defaultQueryOptions(n),
326
- state: r,
327
- defaultOptions: t.getQueryDefaults(a)
328
- }), this.add(i)), i;
329
- }
330
- add(t) {
331
- b(this, de).has(t.queryHash) || (b(this, de).set(t.queryHash, t), this.notify({
332
- type: "added",
333
- query: t
334
- }));
335
- }
336
- remove(t) {
337
- const n = b(this, de).get(t.queryHash);
338
- n && (t.destroy(), n === t && b(this, de).delete(t.queryHash), this.notify({ type: "removed", query: t }));
339
- }
340
- clear() {
341
- ee.batch(() => {
342
- this.getAll().forEach((t) => {
343
- this.remove(t);
344
- });
345
- });
346
- }
347
- get(t) {
348
- return b(this, de).get(t);
349
- }
350
- getAll() {
351
- return [...b(this, de).values()];
352
- }
353
- find(t) {
354
- const n = { exact: !0, ...t };
355
- return this.getAll().find(
356
- (r) => dn(n, r)
357
- );
358
- }
359
- findAll(t = {}) {
360
- const n = this.getAll();
361
- return Object.keys(t).length > 0 ? n.filter((r) => dn(t, r)) : n;
362
- }
363
- notify(t) {
364
- ee.batch(() => {
365
- this.listeners.forEach((n) => {
366
- n(t);
367
- });
368
- });
369
- }
370
- onFocus() {
371
- ee.batch(() => {
372
- this.getAll().forEach((t) => {
373
- t.onFocus();
374
- });
375
- });
376
- }
377
- onOnline() {
378
- ee.batch(() => {
379
- this.getAll().forEach((t) => {
380
- t.onOnline();
381
- });
382
- });
383
- }
384
- }, de = new WeakMap(), Cn), Z, Je, En, xs = (En = class extends Bn {
385
- constructor(t = {}) {
386
- super();
387
- ae(this, Z);
388
- ae(this, Je);
389
- this.config = t, G(this, Z, /* @__PURE__ */ new Map()), G(this, Je, Date.now());
390
- }
391
- build(t, n, r) {
392
- const a = new qo({
393
- mutationCache: this,
394
- mutationId: ++it(this, Je)._,
395
- options: t.defaultMutationOptions(n),
396
- state: r
397
- });
398
- return this.add(a), a;
399
- }
400
- add(t) {
401
- const n = lt(t), r = b(this, Z).get(n) ?? [];
402
- r.push(t), b(this, Z).set(n, r), this.notify({ type: "added", mutation: t });
403
- }
404
- remove(t) {
405
- var r;
406
- const n = lt(t);
407
- if (b(this, Z).has(n)) {
408
- const a = (r = b(this, Z).get(n)) == null ? void 0 : r.filter((s) => s !== t);
409
- a && (a.length === 0 ? b(this, Z).delete(n) : b(this, Z).set(n, a));
410
- }
411
- this.notify({ type: "removed", mutation: t });
412
- }
413
- canRun(t) {
414
- var r;
415
- const n = (r = b(this, Z).get(lt(t))) == null ? void 0 : r.find((a) => a.state.status === "pending");
416
- return !n || n === t;
417
- }
418
- runNext(t) {
419
- var r;
420
- const n = (r = b(this, Z).get(lt(t))) == null ? void 0 : r.find((a) => a !== t && a.state.isPaused);
421
- return (n == null ? void 0 : n.continue()) ?? Promise.resolve();
422
- }
423
- clear() {
424
- ee.batch(() => {
425
- this.getAll().forEach((t) => {
426
- this.remove(t);
427
- });
428
- });
429
- }
430
- getAll() {
431
- return [...b(this, Z).values()].flat();
432
- }
433
- find(t) {
434
- const n = { exact: !0, ...t };
435
- return this.getAll().find(
436
- (r) => fn(n, r)
437
- );
438
- }
439
- findAll(t = {}) {
440
- return this.getAll().filter((n) => fn(t, n));
441
- }
442
- notify(t) {
443
- ee.batch(() => {
444
- this.listeners.forEach((n) => {
445
- n(t);
446
- });
447
- });
448
- }
449
- resumePausedMutations() {
450
- const t = this.getAll().filter((n) => n.state.isPaused);
451
- return ee.batch(
452
- () => Promise.all(
453
- t.map((n) => n.continue().catch(ve))
454
- )
455
- );
456
- }
457
- }, Z = new WeakMap(), Je = new WeakMap(), En);
458
- function lt(e) {
459
- var t;
460
- return ((t = e.options.scope) == null ? void 0 : t.id) ?? String(e.mutationId);
461
- }
462
- function ys(e) {
463
- return {
464
- onFetch: (t, n) => {
465
- const r = async () => {
466
- var y, R, K, H, q;
467
- const a = t.options, s = (K = (R = (y = t.fetchOptions) == null ? void 0 : y.meta) == null ? void 0 : R.fetchMore) == null ? void 0 : K.direction, i = ((H = t.state.data) == null ? void 0 : H.pages) || [], l = ((q = t.state.data) == null ? void 0 : q.pageParams) || [], u = { pages: [], pageParams: [] };
468
- let v = !1;
469
- const m = (x) => {
470
- Object.defineProperty(x, "signal", {
471
- enumerable: !0,
472
- get: () => (t.signal.aborted ? v = !0 : t.signal.addEventListener("abort", () => {
473
- v = !0;
474
- }), t.signal)
475
- });
476
- }, c = Ca(t.options, t.fetchOptions), d = async (x, p, E) => {
477
- if (v)
478
- return Promise.reject();
479
- if (p == null && x.pages.length)
480
- return Promise.resolve(x);
481
- const N = {
482
- queryKey: t.queryKey,
483
- pageParam: p,
484
- direction: E ? "backward" : "forward",
485
- meta: t.options.meta
486
- };
487
- m(N);
488
- const P = await c(
489
- N
490
- ), { maxPages: _ } = t.options, w = E ? Ea : Ra;
491
- return {
492
- pages: w(x.pages, P, _),
493
- pageParams: w(x.pageParams, p, _)
494
- };
495
- };
496
- let f;
497
- if (s && i.length) {
498
- const x = s === "backward", p = x ? Ms : vn, E = {
499
- pages: i,
500
- pageParams: l
501
- }, N = p(a, E);
502
- f = await d(E, N, x);
503
- } else {
504
- f = await d(
505
- u,
506
- l[0] ?? a.initialPageParam
507
- );
508
- const x = e ?? i.length;
509
- for (let p = 1; p < x; p++) {
510
- const E = vn(a, f);
511
- f = await d(f, E);
512
- }
513
- }
514
- return f;
515
- };
516
- t.options.persister ? t.fetchFn = () => {
517
- var a, s;
518
- return (s = (a = t.options).persister) == null ? void 0 : s.call(
519
- a,
520
- r,
521
- {
522
- queryKey: t.queryKey,
523
- meta: t.options.meta,
524
- signal: t.signal
525
- },
526
- n
527
- );
528
- } : t.fetchFn = r;
529
- }
530
- };
531
- }
532
- function vn(e, { pages: t, pageParams: n }) {
533
- const r = t.length - 1;
534
- return e.getNextPageParam(
535
- t[r],
536
- t,
537
- n[r],
538
- n
539
- );
540
- }
541
- function Ms(e, { pages: t, pageParams: n }) {
542
- var r;
543
- return (r = e.getPreviousPageParam) == null ? void 0 : r.call(
544
- e,
545
- t[0],
546
- t,
547
- n[0],
548
- n
549
- );
550
- }
551
- var $, Se, Ce, ke, $e, Ee, Le, Fe, Rn, Ss = (Rn = class {
552
- constructor(e = {}) {
553
- ae(this, $);
554
- ae(this, Se);
555
- ae(this, Ce);
556
- ae(this, ke);
557
- ae(this, $e);
558
- ae(this, Ee);
559
- ae(this, Le);
560
- ae(this, Fe);
561
- G(this, $, e.queryCache || new bs()), G(this, Se, e.mutationCache || new xs()), G(this, Ce, e.defaultOptions || {}), G(this, ke, /* @__PURE__ */ new Map()), G(this, $e, /* @__PURE__ */ new Map()), G(this, Ee, 0);
562
- }
563
- mount() {
564
- it(this, Ee)._++, b(this, Ee) === 1 && (G(this, Le, Da.subscribe(async (e) => {
565
- e && (await this.resumePausedMutations(), b(this, $).onFocus());
566
- })), G(this, Fe, hn.subscribe(async (e) => {
567
- e && (await this.resumePausedMutations(), b(this, $).onOnline());
568
- })));
569
- }
570
- unmount() {
571
- var e, t;
572
- it(this, Ee)._--, b(this, Ee) === 0 && ((e = b(this, Le)) == null || e.call(this), G(this, Le, void 0), (t = b(this, Fe)) == null || t.call(this), G(this, Fe, void 0));
573
- }
574
- isFetching(e) {
575
- return b(this, $).findAll({ ...e, fetchStatus: "fetching" }).length;
576
- }
577
- isMutating(e) {
578
- return b(this, Se).findAll({ ...e, status: "pending" }).length;
579
- }
580
- getQueryData(e) {
581
- var n;
582
- const t = this.defaultQueryOptions({ queryKey: e });
583
- return (n = b(this, $).get(t.queryHash)) == null ? void 0 : n.state.data;
584
- }
585
- ensureQueryData(e) {
586
- const t = this.getQueryData(e.queryKey);
587
- if (t === void 0)
588
- return this.fetchQuery(e);
589
- {
590
- const n = this.defaultQueryOptions(e), r = b(this, $).build(this, n);
591
- return e.revalidateIfStale && r.isStaleByTime(pn(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(t);
592
- }
593
- }
594
- getQueriesData(e) {
595
- return b(this, $).findAll(e).map(({ queryKey: t, state: n }) => {
596
- const r = n.data;
597
- return [t, r];
598
- });
599
- }
600
- setQueryData(e, t, n) {
601
- const r = this.defaultQueryOptions({ queryKey: e }), a = b(this, $).get(
602
- r.queryHash
603
- ), s = a == null ? void 0 : a.state.data, i = ja(t, s);
604
- if (i !== void 0)
605
- return b(this, $).build(this, r).setData(i, { ...n, manual: !0 });
606
- }
607
- setQueriesData(e, t, n) {
608
- return ee.batch(
609
- () => b(this, $).findAll(e).map(({ queryKey: r }) => [
610
- r,
611
- this.setQueryData(r, t, n)
612
- ])
613
- );
614
- }
615
- getQueryState(e) {
616
- var n;
617
- const t = this.defaultQueryOptions({ queryKey: e });
618
- return (n = b(this, $).get(t.queryHash)) == null ? void 0 : n.state;
619
- }
620
- removeQueries(e) {
621
- const t = b(this, $);
622
- ee.batch(() => {
623
- t.findAll(e).forEach((n) => {
624
- t.remove(n);
625
- });
626
- });
627
- }
628
- resetQueries(e, t) {
629
- const n = b(this, $), r = {
630
- type: "active",
631
- ...e
632
- };
633
- return ee.batch(() => (n.findAll(e).forEach((a) => {
634
- a.reset();
635
- }), this.refetchQueries(r, t)));
636
- }
637
- cancelQueries(e = {}, t = {}) {
638
- const n = { revert: !0, ...t }, r = ee.batch(
639
- () => b(this, $).findAll(e).map((a) => a.cancel(n))
640
- );
641
- return Promise.all(r).then(ve).catch(ve);
642
- }
643
- invalidateQueries(e = {}, t = {}) {
644
- return ee.batch(() => {
645
- if (b(this, $).findAll(e).forEach((r) => {
646
- r.invalidate();
647
- }), e.refetchType === "none")
648
- return Promise.resolve();
649
- const n = {
650
- ...e,
651
- type: e.refetchType ?? e.type ?? "active"
652
- };
653
- return this.refetchQueries(n, t);
654
- });
655
- }
656
- refetchQueries(e = {}, t) {
657
- const n = {
658
- ...t,
659
- cancelRefetch: (t == null ? void 0 : t.cancelRefetch) ?? !0
660
- }, r = ee.batch(
661
- () => b(this, $).findAll(e).filter((a) => !a.isDisabled()).map((a) => {
662
- let s = a.fetch(void 0, n);
663
- return n.throwOnError || (s = s.catch(ve)), a.state.fetchStatus === "paused" ? Promise.resolve() : s;
664
- })
665
- );
666
- return Promise.all(r).then(ve);
667
- }
668
- fetchQuery(e) {
669
- const t = this.defaultQueryOptions(e);
670
- t.retry === void 0 && (t.retry = !1);
671
- const n = b(this, $).build(this, t);
672
- return n.isStaleByTime(
673
- pn(t.staleTime, n)
674
- ) ? n.fetch(t) : Promise.resolve(n.state.data);
675
- }
676
- prefetchQuery(e) {
677
- return this.fetchQuery(e).then(ve).catch(ve);
678
- }
679
- fetchInfiniteQuery(e) {
680
- return e.behavior = ys(e.pages), this.fetchQuery(e);
681
- }
682
- prefetchInfiniteQuery(e) {
683
- return this.fetchInfiniteQuery(e).then(ve).catch(ve);
684
- }
685
- resumePausedMutations() {
686
- return hn.isOnline() ? b(this, Se).resumePausedMutations() : Promise.resolve();
687
- }
688
- getQueryCache() {
689
- return b(this, $);
690
- }
691
- getMutationCache() {
692
- return b(this, Se);
693
- }
694
- getDefaultOptions() {
695
- return b(this, Ce);
696
- }
697
- setDefaultOptions(e) {
698
- G(this, Ce, e);
699
- }
700
- setQueryDefaults(e, t) {
701
- b(this, ke).set(mn(e), {
702
- queryKey: e,
703
- defaultOptions: t
704
- });
705
- }
706
- getQueryDefaults(e) {
707
- const t = [...b(this, ke).values()];
708
- let n = {};
709
- return t.forEach((r) => {
710
- gn(e, r.queryKey) && (n = { ...n, ...r.defaultOptions });
711
- }), n;
712
- }
713
- setMutationDefaults(e, t) {
714
- b(this, $e).set(mn(e), {
715
- mutationKey: e,
716
- defaultOptions: t
717
- });
718
- }
719
- getMutationDefaults(e) {
720
- const t = [...b(this, $e).values()];
721
- let n = {};
722
- return t.forEach((r) => {
723
- gn(e, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
724
- }), n;
725
- }
726
- defaultQueryOptions(e) {
727
- if (e._defaulted)
728
- return e;
729
- const t = {
730
- ...b(this, Ce).queries,
731
- ...this.getQueryDefaults(e.queryKey),
732
- ...e,
733
- _defaulted: !0
734
- };
735
- return t.queryHash || (t.queryHash = zn(
736
- t.queryKey,
737
- t
738
- )), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.enabled !== !0 && t.queryFn === Na && (t.enabled = !1), t;
739
- }
740
- defaultMutationOptions(e) {
741
- return e != null && e._defaulted ? e : {
742
- ...b(this, Ce).mutations,
743
- ...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
744
- ...e,
745
- _defaulted: !0
746
- };
747
- }
748
- clear() {
749
- b(this, $).clear(), b(this, Se).clear();
750
- }
751
- }, $ = new WeakMap(), Se = new WeakMap(), Ce = new WeakMap(), ke = new WeakMap(), $e = new WeakMap(), Ee = new WeakMap(), Le = new WeakMap(), Fe = new WeakMap(), Rn);
752
- const Cs = Ln(null), Mt = {
753
- didCatch: !1,
754
- error: null
755
- };
756
- class Es extends ha {
757
- constructor(t) {
758
- super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Mt;
759
- }
760
- static getDerivedStateFromError(t) {
761
- return {
762
- didCatch: !0,
763
- error: t
764
- };
765
- }
766
- resetErrorBoundary() {
767
- const {
768
- error: t
769
- } = this.state;
770
- if (t !== null) {
771
- for (var n, r, a = arguments.length, s = new Array(a), i = 0; i < a; i++)
772
- s[i] = arguments[i];
773
- (n = (r = this.props).onReset) === null || n === void 0 || n.call(r, {
774
- args: s,
775
- reason: "imperative-api"
776
- }), this.setState(Mt);
777
- }
778
- }
779
- componentDidCatch(t, n) {
780
- var r, a;
781
- (r = (a = this.props).onError) === null || r === void 0 || r.call(a, t, n);
782
- }
783
- componentDidUpdate(t, n) {
784
- const {
785
- didCatch: r
786
- } = this.state, {
787
- resetKeys: a
788
- } = this.props;
789
- if (r && n.error !== null && Rs(t.resetKeys, a)) {
790
- var s, i;
791
- (s = (i = this.props).onReset) === null || s === void 0 || s.call(i, {
792
- next: a,
793
- prev: t.resetKeys,
794
- reason: "keys"
795
- }), this.setState(Mt);
796
- }
797
- }
798
- render() {
799
- const {
800
- children: t,
801
- fallbackRender: n,
802
- FallbackComponent: r,
803
- fallback: a
804
- } = this.props, {
805
- didCatch: s,
806
- error: i
807
- } = this.state;
808
- let l = t;
809
- if (s) {
810
- const u = {
811
- error: i,
812
- resetErrorBoundary: this.resetErrorBoundary
813
- };
814
- if (typeof n == "function")
815
- l = n(u);
816
- else if (r)
817
- l = un(r, u);
818
- else if (a === null || pa(a))
819
- l = a;
820
- else
821
- throw i;
822
- }
823
- return un(Cs.Provider, {
824
- value: {
825
- didCatch: s,
826
- error: i,
827
- resetErrorBoundary: this.resetErrorBoundary
828
- }
829
- }, l);
830
- }
831
- }
832
- function Rs() {
833
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
834
- return e.length !== t.length || e.some((n, r) => !Object.is(n, t[r]));
835
- }
836
- const Ds = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", js = (e) => "getRoutes" in e && typeof e.getRoutes == "function", Ns = (e) => "renderSearch" in e && typeof e.renderSearch == "function", Ps = (e) => "initialize" in e && typeof e.initialize == "function", Ts = (e) => "getHead" in e && typeof e.getHead == "function", _s = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", Os = (e) => "getIdentities" in e && typeof e.getIdentities == "function", Yn = new Ss();
837
- class Is {
838
- constructor(t) {
839
- J(this, "plugins");
840
- J(this, "sidebars");
841
- J(this, "topNavigation");
842
- J(this, "meta");
843
- J(this, "page");
844
- J(this, "authentication");
845
- J(this, "navigationPlugins");
846
- J(this, "initialize", async () => {
847
- await Promise.all(
848
- this.plugins.filter(Ps).map((t) => {
849
- var n;
850
- return (n = t.initialize) == null ? void 0 : n.call(t, this);
851
- })
852
- );
853
- });
854
- J(this, "invalidateCache", async (t) => {
855
- await Yn.invalidateQueries({ queryKey: t });
856
- });
857
- J(this, "getApiIdentities", async () => (await Promise.all(
858
- this.plugins.filter(Os).map((n) => n.getIdentities(this))
859
- )).flat());
860
- J(this, "getPluginSidebar", async (t) => (await Promise.all(
861
- this.navigationPlugins.map(
862
- (r) => {
863
- var a;
864
- return (a = r.getSidebar) == null ? void 0 : a.call(r, Ft(t));
865
- }
866
- )
867
- )).flatMap((r) => r ?? []));
868
- J(this, "signRequest", async (t) => {
869
- if (!this.authentication)
870
- throw new Error("No authentication provider configured");
871
- const n = await this.authentication.getAccessToken();
872
- return t.headers.set("Authorization", `Bearer ${n}`), t;
873
- });
874
- this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(js), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
875
- }
876
- }
877
- function As({ error: e, resetErrorBoundary: t }) {
878
- return /* @__PURE__ */ o.jsx(Nn, { error: e });
879
- }
880
- const ct = globalThis;
881
- (!ct.requestIdleCallback || !ct.cancelIdleCallback) && (ct.requestIdleCallback = (e) => setTimeout(e, 1), ct.cancelIdleCallback = clearTimeout);
882
- var jt = ["Enter", " "], ks = ["ArrowDown", "PageUp", "Home"], Xn = ["ArrowUp", "PageDown", "End"], $s = [...ks, ...Xn], Ls = {
883
- ltr: [...jt, "ArrowRight"],
884
- rtl: [...jt, "ArrowLeft"]
885
- }, Fs = {
886
- ltr: ["ArrowLeft"],
887
- rtl: ["ArrowRight"]
888
- }, tt = "Menu", [Ye, Hs, Us] = Go(tt), [_e, Jn] = Pn(tt, [
889
- Us,
890
- Tn,
891
- Qn
892
- ]), nt = Tn(), Zn = Qn(), [er, Re] = _e(tt), [Bs, rt] = _e(tt), tr = (e) => {
893
- const { __scopeMenu: t, open: n = !1, children: r, dir: a, onOpenChange: s, modal: i = !0 } = e, l = nt(t), [u, v] = h.useState(null), m = h.useRef(!1), c = At(s), d = aa(a);
894
- return h.useEffect(() => {
895
- const f = () => {
896
- m.current = !0, document.addEventListener("pointerdown", y, { capture: !0, once: !0 }), document.addEventListener("pointermove", y, { capture: !0, once: !0 });
897
- }, y = () => m.current = !1;
898
- return document.addEventListener("keydown", f, { capture: !0 }), () => {
899
- document.removeEventListener("keydown", f, { capture: !0 }), document.removeEventListener("pointerdown", y, { capture: !0 }), document.removeEventListener("pointermove", y, { capture: !0 });
900
- };
901
- }, []), /* @__PURE__ */ o.jsx(On, { ...l, children: /* @__PURE__ */ o.jsx(
902
- er,
903
- {
904
- scope: t,
905
- open: n,
906
- onOpenChange: c,
907
- content: u,
908
- onContentChange: v,
909
- children: /* @__PURE__ */ o.jsx(
910
- Bs,
911
- {
912
- scope: t,
913
- onClose: h.useCallback(() => c(!1), [c]),
914
- isUsingKeyboardRef: m,
915
- dir: d,
916
- modal: i,
917
- children: r
918
- }
919
- )
920
- }
921
- ) });
922
- };
923
- tr.displayName = tt;
924
- var zs = "MenuAnchor", Ut = h.forwardRef(
925
- (e, t) => {
926
- const { __scopeMenu: n, ...r } = e, a = nt(n);
927
- return /* @__PURE__ */ o.jsx(Wo, { ...a, ...r, ref: t });
928
- }
929
- );
930
- Ut.displayName = zs;
931
- var Bt = "MenuPortal", [Ks, nr] = _e(Bt, {
932
- forceMount: void 0
933
- }), rr = (e) => {
934
- const { __scopeMenu: t, forceMount: n, children: r, container: a } = e, s = Re(Bt, t);
935
- return /* @__PURE__ */ o.jsx(Ks, { scope: t, forceMount: n, children: /* @__PURE__ */ o.jsx(gt, { present: n || s.open, children: /* @__PURE__ */ o.jsx(sa, { asChild: !0, container: a, children: r }) }) });
936
- };
937
- rr.displayName = Bt;
938
- var se = "MenuContent", [Vs, zt] = _e(se), or = h.forwardRef(
939
- (e, t) => {
940
- const n = nr(se, e.__scopeMenu), { forceMount: r = n.forceMount, ...a } = e, s = Re(se, e.__scopeMenu), i = rt(se, e.__scopeMenu);
941
- return /* @__PURE__ */ o.jsx(Ye.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ o.jsx(gt, { present: r || s.open, children: /* @__PURE__ */ o.jsx(Ye.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ o.jsx(Qs, { ...a, ref: t }) : /* @__PURE__ */ o.jsx(qs, { ...a, ref: t }) }) }) });
942
- }
943
- ), Qs = h.forwardRef(
944
- (e, t) => {
945
- const n = Re(se, e.__scopeMenu), r = h.useRef(null), a = Ze(t, r);
946
- return h.useEffect(() => {
947
- const s = r.current;
948
- if (s) return Yo(s);
949
- }, []), /* @__PURE__ */ o.jsx(
950
- Kt,
951
- {
952
- ...e,
953
- ref: a,
954
- trapFocus: n.open,
955
- disableOutsidePointerEvents: n.open,
956
- disableOutsideScroll: !0,
957
- onFocusOutside: A(
958
- e.onFocusOutside,
959
- (s) => s.preventDefault(),
960
- { checkForDefaultPrevented: !1 }
961
- ),
962
- onDismiss: () => n.onOpenChange(!1)
963
- }
964
- );
965
- }
966
- ), qs = h.forwardRef((e, t) => {
967
- const n = Re(se, e.__scopeMenu);
968
- return /* @__PURE__ */ o.jsx(
969
- Kt,
970
- {
971
- ...e,
972
- ref: t,
973
- trapFocus: !1,
974
- disableOutsidePointerEvents: !1,
975
- disableOutsideScroll: !1,
976
- onDismiss: () => n.onOpenChange(!1)
977
- }
978
- );
979
- }), Kt = h.forwardRef(
980
- (e, t) => {
981
- const {
982
- __scopeMenu: n,
983
- loop: r = !1,
984
- trapFocus: a,
985
- onOpenAutoFocus: s,
986
- onCloseAutoFocus: i,
987
- disableOutsidePointerEvents: l,
988
- onEntryFocus: u,
989
- onEscapeKeyDown: v,
990
- onPointerDownOutside: m,
991
- onFocusOutside: c,
992
- onInteractOutside: d,
993
- onDismiss: f,
994
- disableOutsideScroll: y,
995
- ...R
996
- } = e, K = Re(se, n), H = rt(se, n), q = nt(n), x = Zn(n), p = Hs(n), [E, N] = h.useState(null), P = h.useRef(null), _ = Ze(t, P, K.onContentChange), w = h.useRef(0), L = h.useRef(""), te = h.useRef(0), Q = h.useRef(null), V = h.useRef("right"), X = h.useRef(0), Oe = y ? na : h.Fragment, he = y ? { as: ra, allowPinchZoom: !0 } : void 0, Be = (C) => {
997
- var le, ge;
998
- const U = L.current + C, Y = p().filter((re) => !re.disabled), ne = document.activeElement, De = (le = Y.find((re) => re.ref.current === ne)) == null ? void 0 : le.textValue, pe = Y.map((re) => re.textValue), ye = ai(pe, U, De), me = (ge = Y.find((re) => re.textValue === ye)) == null ? void 0 : ge.ref.current;
999
- (function re(M) {
1000
- L.current = M, window.clearTimeout(w.current), M !== "" && (w.current = window.setTimeout(() => re(""), 1e3));
1001
- })(U), me && setTimeout(() => me.focus());
1002
- };
1003
- h.useEffect(() => () => window.clearTimeout(w.current), []), Xo();
1004
- const xe = h.useCallback((C) => {
1005
- var Y, ne;
1006
- return V.current === ((Y = Q.current) == null ? void 0 : Y.side) && ii(C, (ne = Q.current) == null ? void 0 : ne.area);
1007
- }, []);
1008
- return /* @__PURE__ */ o.jsx(
1009
- Vs,
1010
- {
1011
- scope: n,
1012
- searchRef: L,
1013
- onItemEnter: h.useCallback(
1014
- (C) => {
1015
- xe(C) && C.preventDefault();
1016
- },
1017
- [xe]
1018
- ),
1019
- onItemLeave: h.useCallback(
1020
- (C) => {
1021
- var U;
1022
- xe(C) || ((U = P.current) == null || U.focus(), N(null));
1023
- },
1024
- [xe]
1025
- ),
1026
- onTriggerLeave: h.useCallback(
1027
- (C) => {
1028
- xe(C) && C.preventDefault();
1029
- },
1030
- [xe]
1031
- ),
1032
- pointerGraceTimerRef: te,
1033
- onPointerGraceIntentChange: h.useCallback((C) => {
1034
- Q.current = C;
1035
- }, []),
1036
- children: /* @__PURE__ */ o.jsx(Oe, { ...he, children: /* @__PURE__ */ o.jsx(
1037
- Jo,
1038
- {
1039
- asChild: !0,
1040
- trapped: a,
1041
- onMountAutoFocus: A(s, (C) => {
1042
- var U;
1043
- C.preventDefault(), (U = P.current) == null || U.focus({ preventScroll: !0 });
1044
- }),
1045
- onUnmountAutoFocus: i,
1046
- children: /* @__PURE__ */ o.jsx(
1047
- Zo,
1048
- {
1049
- asChild: !0,
1050
- disableOutsidePointerEvents: l,
1051
- onEscapeKeyDown: v,
1052
- onPointerDownOutside: m,
1053
- onFocusOutside: c,
1054
- onInteractOutside: d,
1055
- onDismiss: f,
1056
- children: /* @__PURE__ */ o.jsx(
1057
- za,
1058
- {
1059
- asChild: !0,
1060
- ...x,
1061
- dir: H.dir,
1062
- orientation: "vertical",
1063
- loop: r,
1064
- currentTabStopId: E,
1065
- onCurrentTabStopIdChange: N,
1066
- onEntryFocus: A(u, (C) => {
1067
- H.isUsingKeyboardRef.current || C.preventDefault();
1068
- }),
1069
- preventScrollOnEntryFocus: !0,
1070
- children: /* @__PURE__ */ o.jsx(
1071
- ea,
1072
- {
1073
- role: "menu",
1074
- "aria-orientation": "vertical",
1075
- "data-state": yr(K.open),
1076
- "data-radix-menu-content": "",
1077
- dir: H.dir,
1078
- ...q,
1079
- ...R,
1080
- ref: _,
1081
- style: { outline: "none", ...R.style },
1082
- onKeyDown: A(R.onKeyDown, (C) => {
1083
- const Y = C.target.closest("[data-radix-menu-content]") === C.currentTarget, ne = C.ctrlKey || C.altKey || C.metaKey, De = C.key.length === 1;
1084
- Y && (C.key === "Tab" && C.preventDefault(), !ne && De && Be(C.key));
1085
- const pe = P.current;
1086
- if (C.target !== pe || !$s.includes(C.key)) return;
1087
- C.preventDefault();
1088
- const me = p().filter((le) => !le.disabled).map((le) => le.ref.current);
1089
- Xn.includes(C.key) && me.reverse(), ri(me);
1090
- }),
1091
- onBlur: A(e.onBlur, (C) => {
1092
- C.currentTarget.contains(C.target) || (window.clearTimeout(w.current), L.current = "");
1093
- }),
1094
- onPointerMove: A(
1095
- e.onPointerMove,
1096
- Xe((C) => {
1097
- const U = C.target, Y = X.current !== C.clientX;
1098
- if (C.currentTarget.contains(U) && Y) {
1099
- const ne = C.clientX > X.current ? "right" : "left";
1100
- V.current = ne, X.current = C.clientX;
1101
- }
1102
- })
1103
- )
1104
- }
1105
- )
1106
- }
1107
- )
1108
- }
1109
- )
1110
- }
1111
- ) })
1112
- }
1113
- );
1114
- }
1115
- );
1116
- or.displayName = se;
1117
- var Gs = "MenuGroup", Vt = h.forwardRef(
1118
- (e, t) => {
1119
- const { __scopeMenu: n, ...r } = e;
1120
- return /* @__PURE__ */ o.jsx(He.div, { role: "group", ...r, ref: t });
1121
- }
1122
- );
1123
- Vt.displayName = Gs;
1124
- var Ws = "MenuLabel", ar = h.forwardRef(
1125
- (e, t) => {
1126
- const { __scopeMenu: n, ...r } = e;
1127
- return /* @__PURE__ */ o.jsx(He.div, { ...r, ref: t });
1128
- }
1129
- );
1130
- ar.displayName = Ws;
1131
- var pt = "MenuItem", wn = "menu.itemSelect", vt = h.forwardRef(
1132
- (e, t) => {
1133
- const { disabled: n = !1, onSelect: r, ...a } = e, s = h.useRef(null), i = rt(pt, e.__scopeMenu), l = zt(pt, e.__scopeMenu), u = Ze(t, s), v = h.useRef(!1), m = () => {
1134
- const c = s.current;
1135
- if (!n && c) {
1136
- const d = new CustomEvent(wn, { bubbles: !0, cancelable: !0 });
1137
- c.addEventListener(wn, (f) => r == null ? void 0 : r(f), { once: !0 }), oa(c, d), d.defaultPrevented ? v.current = !1 : i.onClose();
1138
- }
1139
- };
1140
- return /* @__PURE__ */ o.jsx(
1141
- sr,
1142
- {
1143
- ...a,
1144
- ref: u,
1145
- disabled: n,
1146
- onClick: A(e.onClick, m),
1147
- onPointerDown: (c) => {
1148
- var d;
1149
- (d = e.onPointerDown) == null || d.call(e, c), v.current = !0;
1150
- },
1151
- onPointerUp: A(e.onPointerUp, (c) => {
1152
- var d;
1153
- v.current || (d = c.currentTarget) == null || d.click();
1154
- }),
1155
- onKeyDown: A(e.onKeyDown, (c) => {
1156
- const d = l.searchRef.current !== "";
1157
- n || d && c.key === " " || jt.includes(c.key) && (c.currentTarget.click(), c.preventDefault());
1158
- })
1159
- }
1160
- );
1161
- }
1162
- );
1163
- vt.displayName = pt;
1164
- var sr = h.forwardRef(
1165
- (e, t) => {
1166
- const { __scopeMenu: n, disabled: r = !1, textValue: a, ...s } = e, i = zt(pt, n), l = Zn(n), u = h.useRef(null), v = Ze(t, u), [m, c] = h.useState(!1), [d, f] = h.useState("");
1167
- return h.useEffect(() => {
1168
- const y = u.current;
1169
- y && f((y.textContent ?? "").trim());
1170
- }, [s.children]), /* @__PURE__ */ o.jsx(
1171
- Ye.ItemSlot,
1172
- {
1173
- scope: n,
1174
- disabled: r,
1175
- textValue: a ?? d,
1176
- children: /* @__PURE__ */ o.jsx(Ka, { asChild: !0, ...l, focusable: !r, children: /* @__PURE__ */ o.jsx(
1177
- He.div,
1178
- {
1179
- role: "menuitem",
1180
- "data-highlighted": m ? "" : void 0,
1181
- "aria-disabled": r || void 0,
1182
- "data-disabled": r ? "" : void 0,
1183
- ...s,
1184
- ref: v,
1185
- onPointerMove: A(
1186
- e.onPointerMove,
1187
- Xe((y) => {
1188
- r ? i.onItemLeave(y) : (i.onItemEnter(y), y.defaultPrevented || y.currentTarget.focus({ preventScroll: !0 }));
1189
- })
1190
- ),
1191
- onPointerLeave: A(
1192
- e.onPointerLeave,
1193
- Xe((y) => i.onItemLeave(y))
1194
- ),
1195
- onFocus: A(e.onFocus, () => c(!0)),
1196
- onBlur: A(e.onBlur, () => c(!1))
1197
- }
1198
- ) })
1199
- }
1200
- );
1201
- }
1202
- ), Ys = "MenuCheckboxItem", ir = h.forwardRef(
1203
- (e, t) => {
1204
- const { checked: n = !1, onCheckedChange: r, ...a } = e;
1205
- return /* @__PURE__ */ o.jsx(fr, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ o.jsx(
1206
- vt,
1207
- {
1208
- role: "menuitemcheckbox",
1209
- "aria-checked": mt(n) ? "mixed" : n,
1210
- ...a,
1211
- ref: t,
1212
- "data-state": Gt(n),
1213
- onSelect: A(
1214
- a.onSelect,
1215
- () => r == null ? void 0 : r(mt(n) ? !0 : !n),
1216
- { checkForDefaultPrevented: !1 }
1217
- )
1218
- }
1219
- ) });
1220
- }
1221
- );
1222
- ir.displayName = Ys;
1223
- var lr = "MenuRadioGroup", [Xs, Js] = _e(
1224
- lr,
1225
- { value: void 0, onValueChange: () => {
1226
- } }
1227
- ), cr = h.forwardRef(
1228
- (e, t) => {
1229
- const { value: n, onValueChange: r, ...a } = e, s = At(r);
1230
- return /* @__PURE__ */ o.jsx(Xs, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ o.jsx(Vt, { ...a, ref: t }) });
1231
- }
1232
- );
1233
- cr.displayName = lr;
1234
- var ur = "MenuRadioItem", dr = h.forwardRef(
1235
- (e, t) => {
1236
- const { value: n, ...r } = e, a = Js(ur, e.__scopeMenu), s = n === a.value;
1237
- return /* @__PURE__ */ o.jsx(fr, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ o.jsx(
1238
- vt,
1239
- {
1240
- role: "menuitemradio",
1241
- "aria-checked": s,
1242
- ...r,
1243
- ref: t,
1244
- "data-state": Gt(s),
1245
- onSelect: A(
1246
- r.onSelect,
1247
- () => {
1248
- var i;
1249
- return (i = a.onValueChange) == null ? void 0 : i.call(a, n);
1250
- },
1251
- { checkForDefaultPrevented: !1 }
1252
- )
1253
- }
1254
- ) });
1255
- }
1256
- );
1257
- dr.displayName = ur;
1258
- var Qt = "MenuItemIndicator", [fr, Zs] = _e(
1259
- Qt,
1260
- { checked: !1 }
1261
- ), hr = h.forwardRef(
1262
- (e, t) => {
1263
- const { __scopeMenu: n, forceMount: r, ...a } = e, s = Zs(Qt, n);
1264
- return /* @__PURE__ */ o.jsx(
1265
- gt,
1266
- {
1267
- present: r || mt(s.checked) || s.checked === !0,
1268
- children: /* @__PURE__ */ o.jsx(
1269
- He.span,
1270
- {
1271
- ...a,
1272
- ref: t,
1273
- "data-state": Gt(s.checked)
1274
- }
1275
- )
1276
- }
1277
- );
1278
- }
1279
- );
1280
- hr.displayName = Qt;
1281
- var ei = "MenuSeparator", pr = h.forwardRef(
1282
- (e, t) => {
1283
- const { __scopeMenu: n, ...r } = e;
1284
- return /* @__PURE__ */ o.jsx(
1285
- He.div,
1286
- {
1287
- role: "separator",
1288
- "aria-orientation": "horizontal",
1289
- ...r,
1290
- ref: t
1291
- }
1292
- );
1293
- }
1294
- );
1295
- pr.displayName = ei;
1296
- var ti = "MenuArrow", mr = h.forwardRef(
1297
- (e, t) => {
1298
- const { __scopeMenu: n, ...r } = e, a = nt(n);
1299
- return /* @__PURE__ */ o.jsx(ta, { ...a, ...r, ref: t });
1300
- }
1301
- );
1302
- mr.displayName = ti;
1303
- var qt = "MenuSub", [ni, gr] = _e(qt), vr = (e) => {
1304
- const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: a } = e, s = Re(qt, t), i = nt(t), [l, u] = h.useState(null), [v, m] = h.useState(null), c = At(a);
1305
- return h.useEffect(() => (s.open === !1 && c(!1), () => c(!1)), [s.open, c]), /* @__PURE__ */ o.jsx(On, { ...i, children: /* @__PURE__ */ o.jsx(
1306
- er,
1307
- {
1308
- scope: t,
1309
- open: r,
1310
- onOpenChange: c,
1311
- content: v,
1312
- onContentChange: m,
1313
- children: /* @__PURE__ */ o.jsx(
1314
- ni,
1315
- {
1316
- scope: t,
1317
- contentId: ht(),
1318
- triggerId: ht(),
1319
- trigger: l,
1320
- onTriggerChange: u,
1321
- children: n
1322
- }
1323
- )
1324
- }
1325
- ) });
1326
- };
1327
- vr.displayName = qt;
1328
- var qe = "MenuSubTrigger", wr = h.forwardRef(
1329
- (e, t) => {
1330
- const n = Re(qe, e.__scopeMenu), r = rt(qe, e.__scopeMenu), a = gr(qe, e.__scopeMenu), s = zt(qe, e.__scopeMenu), i = h.useRef(null), { pointerGraceTimerRef: l, onPointerGraceIntentChange: u } = s, v = { __scopeMenu: e.__scopeMenu }, m = h.useCallback(() => {
1331
- i.current && window.clearTimeout(i.current), i.current = null;
1332
- }, []);
1333
- return h.useEffect(() => m, [m]), h.useEffect(() => {
1334
- const c = l.current;
1335
- return () => {
1336
- window.clearTimeout(c), u(null);
1337
- };
1338
- }, [l, u]), /* @__PURE__ */ o.jsx(Ut, { asChild: !0, ...v, children: /* @__PURE__ */ o.jsx(
1339
- sr,
1340
- {
1341
- id: a.triggerId,
1342
- "aria-haspopup": "menu",
1343
- "aria-expanded": n.open,
1344
- "aria-controls": a.contentId,
1345
- "data-state": yr(n.open),
1346
- ...e,
1347
- ref: _n(t, a.onTriggerChange),
1348
- onClick: (c) => {
1349
- var d;
1350
- (d = e.onClick) == null || d.call(e, c), !(e.disabled || c.defaultPrevented) && (c.currentTarget.focus(), n.open || n.onOpenChange(!0));
1351
- },
1352
- onPointerMove: A(
1353
- e.onPointerMove,
1354
- Xe((c) => {
1355
- s.onItemEnter(c), !c.defaultPrevented && !e.disabled && !n.open && !i.current && (s.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
1356
- n.onOpenChange(!0), m();
1357
- }, 100));
1358
- })
1359
- ),
1360
- onPointerLeave: A(
1361
- e.onPointerLeave,
1362
- Xe((c) => {
1363
- var f, y;
1364
- m();
1365
- const d = (f = n.content) == null ? void 0 : f.getBoundingClientRect();
1366
- if (d) {
1367
- const R = (y = n.content) == null ? void 0 : y.dataset.side, K = R === "right", H = K ? -5 : 5, q = d[K ? "left" : "right"], x = d[K ? "right" : "left"];
1368
- s.onPointerGraceIntentChange({
1369
- area: [
1370
- // Apply a bleed on clientX to ensure that our exit point is
1371
- // consistently within polygon bounds
1372
- { x: c.clientX + H, y: c.clientY },
1373
- { x: q, y: d.top },
1374
- { x, y: d.top },
1375
- { x, y: d.bottom },
1376
- { x: q, y: d.bottom }
1377
- ],
1378
- side: R
1379
- }), window.clearTimeout(l.current), l.current = window.setTimeout(
1380
- () => s.onPointerGraceIntentChange(null),
1381
- 300
1382
- );
1383
- } else {
1384
- if (s.onTriggerLeave(c), c.defaultPrevented) return;
1385
- s.onPointerGraceIntentChange(null);
1386
- }
1387
- })
1388
- ),
1389
- onKeyDown: A(e.onKeyDown, (c) => {
1390
- var f;
1391
- const d = s.searchRef.current !== "";
1392
- e.disabled || d && c.key === " " || Ls[r.dir].includes(c.key) && (n.onOpenChange(!0), (f = n.content) == null || f.focus(), c.preventDefault());
1393
- })
1394
- }
1395
- ) });
1396
- }
1397
- );
1398
- wr.displayName = qe;
1399
- var br = "MenuSubContent", xr = h.forwardRef(
1400
- (e, t) => {
1401
- const n = nr(se, e.__scopeMenu), { forceMount: r = n.forceMount, ...a } = e, s = Re(se, e.__scopeMenu), i = rt(se, e.__scopeMenu), l = gr(br, e.__scopeMenu), u = h.useRef(null), v = Ze(t, u);
1402
- return /* @__PURE__ */ o.jsx(Ye.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ o.jsx(gt, { present: r || s.open, children: /* @__PURE__ */ o.jsx(Ye.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ o.jsx(
1403
- Kt,
1404
- {
1405
- id: l.contentId,
1406
- "aria-labelledby": l.triggerId,
1407
- ...a,
1408
- ref: v,
1409
- align: "start",
1410
- side: i.dir === "rtl" ? "left" : "right",
1411
- disableOutsidePointerEvents: !1,
1412
- disableOutsideScroll: !1,
1413
- trapFocus: !1,
1414
- onOpenAutoFocus: (m) => {
1415
- var c;
1416
- i.isUsingKeyboardRef.current && ((c = u.current) == null || c.focus()), m.preventDefault();
1417
- },
1418
- onCloseAutoFocus: (m) => m.preventDefault(),
1419
- onFocusOutside: A(e.onFocusOutside, (m) => {
1420
- m.target !== l.trigger && s.onOpenChange(!1);
1421
- }),
1422
- onEscapeKeyDown: A(e.onEscapeKeyDown, (m) => {
1423
- i.onClose(), m.preventDefault();
1424
- }),
1425
- onKeyDown: A(e.onKeyDown, (m) => {
1426
- var f;
1427
- const c = m.currentTarget.contains(m.target), d = Fs[i.dir].includes(m.key);
1428
- c && d && (s.onOpenChange(!1), (f = l.trigger) == null || f.focus(), m.preventDefault());
1429
- })
1430
- }
1431
- ) }) }) });
1432
- }
1433
- );
1434
- xr.displayName = br;
1435
- function yr(e) {
1436
- return e ? "open" : "closed";
1437
- }
1438
- function mt(e) {
1439
- return e === "indeterminate";
1440
- }
1441
- function Gt(e) {
1442
- return mt(e) ? "indeterminate" : e ? "checked" : "unchecked";
1443
- }
1444
- function ri(e) {
1445
- const t = document.activeElement;
1446
- for (const n of e)
1447
- if (n === t || (n.focus(), document.activeElement !== t)) return;
1448
- }
1449
- function oi(e, t) {
1450
- return e.map((n, r) => e[(t + r) % e.length]);
1451
- }
1452
- function ai(e, t, n) {
1453
- const a = t.length > 1 && Array.from(t).every((v) => v === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
1454
- let i = oi(e, Math.max(s, 0));
1455
- a.length === 1 && (i = i.filter((v) => v !== n));
1456
- const u = i.find(
1457
- (v) => v.toLowerCase().startsWith(a.toLowerCase())
1458
- );
1459
- return u !== n ? u : void 0;
1460
- }
1461
- function si(e, t) {
1462
- const { x: n, y: r } = e;
1463
- let a = !1;
1464
- for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
1465
- const l = t[s].x, u = t[s].y, v = t[i].x, m = t[i].y;
1466
- u > r != m > r && n < (v - l) * (r - u) / (m - u) + l && (a = !a);
1467
- }
1468
- return a;
1469
- }
1470
- function ii(e, t) {
1471
- if (!t) return !1;
1472
- const n = { x: e.clientX, y: e.clientY };
1473
- return si(n, t);
1474
- }
1475
- function Xe(e) {
1476
- return (t) => t.pointerType === "mouse" ? e(t) : void 0;
1477
- }
1478
- var li = tr, ci = Ut, ui = rr, di = or, fi = Vt, hi = ar, pi = vt, mi = ir, gi = cr, vi = dr, wi = hr, bi = pr, xi = mr, yi = vr, Mi = wr, Si = xr, Wt = "DropdownMenu", [Ci, Jl] = Pn(
1479
- Wt,
1480
- [Jn]
1481
- ), W = Jn(), [Ei, Mr] = Ci(Wt), Sr = (e) => {
1482
- const {
1483
- __scopeDropdownMenu: t,
1484
- children: n,
1485
- dir: r,
1486
- open: a,
1487
- defaultOpen: s,
1488
- onOpenChange: i,
1489
- modal: l = !0
1490
- } = e, u = W(t), v = h.useRef(null), [m = !1, c] = In({
1491
- prop: a,
1492
- defaultProp: s,
1493
- onChange: i
1494
- });
1495
- return /* @__PURE__ */ o.jsx(
1496
- Ei,
1497
- {
1498
- scope: t,
1499
- triggerId: ht(),
1500
- triggerRef: v,
1501
- contentId: ht(),
1502
- open: m,
1503
- onOpenChange: c,
1504
- onOpenToggle: h.useCallback(() => c((d) => !d), [c]),
1505
- modal: l,
1506
- children: /* @__PURE__ */ o.jsx(li, { ...u, open: m, onOpenChange: c, dir: r, modal: l, children: n })
1507
- }
1508
- );
1509
- };
1510
- Sr.displayName = Wt;
1511
- var Cr = "DropdownMenuTrigger", Er = h.forwardRef(
1512
- (e, t) => {
1513
- const { __scopeDropdownMenu: n, disabled: r = !1, ...a } = e, s = Mr(Cr, n), i = W(n);
1514
- return /* @__PURE__ */ o.jsx(ci, { asChild: !0, ...i, children: /* @__PURE__ */ o.jsx(
1515
- He.button,
1516
- {
1517
- type: "button",
1518
- id: s.triggerId,
1519
- "aria-haspopup": "menu",
1520
- "aria-expanded": s.open,
1521
- "aria-controls": s.open ? s.contentId : void 0,
1522
- "data-state": s.open ? "open" : "closed",
1523
- "data-disabled": r ? "" : void 0,
1524
- disabled: r,
1525
- ...a,
1526
- ref: _n(t, s.triggerRef),
1527
- onPointerDown: A(e.onPointerDown, (l) => {
1528
- !r && l.button === 0 && l.ctrlKey === !1 && (s.onOpenToggle(), s.open || l.preventDefault());
1529
- }),
1530
- onKeyDown: A(e.onKeyDown, (l) => {
1531
- r || (["Enter", " "].includes(l.key) && s.onOpenToggle(), l.key === "ArrowDown" && s.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(l.key) && l.preventDefault());
1532
- })
1533
- }
1534
- ) });
1535
- }
1536
- );
1537
- Er.displayName = Cr;
1538
- var Ri = "DropdownMenuPortal", Rr = (e) => {
1539
- const { __scopeDropdownMenu: t, ...n } = e, r = W(t);
1540
- return /* @__PURE__ */ o.jsx(ui, { ...r, ...n });
1541
- };
1542
- Rr.displayName = Ri;
1543
- var Dr = "DropdownMenuContent", jr = h.forwardRef(
1544
- (e, t) => {
1545
- const { __scopeDropdownMenu: n, ...r } = e, a = Mr(Dr, n), s = W(n), i = h.useRef(!1);
1546
- return /* @__PURE__ */ o.jsx(
1547
- di,
1548
- {
1549
- id: a.contentId,
1550
- "aria-labelledby": a.triggerId,
1551
- ...s,
1552
- ...r,
1553
- ref: t,
1554
- onCloseAutoFocus: A(e.onCloseAutoFocus, (l) => {
1555
- var u;
1556
- i.current || (u = a.triggerRef.current) == null || u.focus(), i.current = !1, l.preventDefault();
1557
- }),
1558
- onInteractOutside: A(e.onInteractOutside, (l) => {
1559
- const u = l.detail.originalEvent, v = u.button === 0 && u.ctrlKey === !0, m = u.button === 2 || v;
1560
- (!a.modal || m) && (i.current = !0);
1561
- }),
1562
- style: {
1563
- ...e.style,
1564
- "--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
1565
- "--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
1566
- "--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
1567
- "--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
1568
- "--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
1569
- }
1570
- }
1571
- );
1572
- }
1573
- );
1574
- jr.displayName = Dr;
1575
- var Di = "DropdownMenuGroup", ji = h.forwardRef(
1576
- (e, t) => {
1577
- const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
1578
- return /* @__PURE__ */ o.jsx(fi, { ...a, ...r, ref: t });
1579
- }
1580
- );
1581
- ji.displayName = Di;
1582
- var Ni = "DropdownMenuLabel", Nr = h.forwardRef(
1583
- (e, t) => {
1584
- const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
1585
- return /* @__PURE__ */ o.jsx(hi, { ...a, ...r, ref: t });
1586
- }
1587
- );
1588
- Nr.displayName = Ni;
1589
- var Pi = "DropdownMenuItem", Pr = h.forwardRef(
1590
- (e, t) => {
1591
- const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
1592
- return /* @__PURE__ */ o.jsx(pi, { ...a, ...r, ref: t });
1593
- }
1594
- );
1595
- Pr.displayName = Pi;
1596
- var Ti = "DropdownMenuCheckboxItem", Tr = h.forwardRef((e, t) => {
1597
- const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
1598
- return /* @__PURE__ */ o.jsx(mi, { ...a, ...r, ref: t });
1599
- });
1600
- Tr.displayName = Ti;
1601
- var _i = "DropdownMenuRadioGroup", Oi = h.forwardRef((e, t) => {
1602
- const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
1603
- return /* @__PURE__ */ o.jsx(gi, { ...a, ...r, ref: t });
1604
- });
1605
- Oi.displayName = _i;
1606
- var Ii = "DropdownMenuRadioItem", _r = h.forwardRef((e, t) => {
1607
- const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
1608
- return /* @__PURE__ */ o.jsx(vi, { ...a, ...r, ref: t });
1609
- });
1610
- _r.displayName = Ii;
1611
- var Ai = "DropdownMenuItemIndicator", Or = h.forwardRef((e, t) => {
1612
- const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
1613
- return /* @__PURE__ */ o.jsx(wi, { ...a, ...r, ref: t });
1614
- });
1615
- Or.displayName = Ai;
1616
- var ki = "DropdownMenuSeparator", Ir = h.forwardRef((e, t) => {
1617
- const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
1618
- return /* @__PURE__ */ o.jsx(bi, { ...a, ...r, ref: t });
1619
- });
1620
- Ir.displayName = ki;
1621
- var $i = "DropdownMenuArrow", Li = h.forwardRef(
1622
- (e, t) => {
1623
- const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
1624
- return /* @__PURE__ */ o.jsx(xi, { ...a, ...r, ref: t });
1625
- }
1626
- );
1627
- Li.displayName = $i;
1628
- var Fi = (e) => {
1629
- const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: a, defaultOpen: s } = e, i = W(t), [l = !1, u] = In({
1630
- prop: r,
1631
- defaultProp: s,
1632
- onChange: a
1633
- });
1634
- return /* @__PURE__ */ o.jsx(yi, { ...i, open: l, onOpenChange: u, children: n });
1635
- }, Hi = "DropdownMenuSubTrigger", Ar = h.forwardRef((e, t) => {
1636
- const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
1637
- return /* @__PURE__ */ o.jsx(Mi, { ...a, ...r, ref: t });
1638
- });
1639
- Ar.displayName = Hi;
1640
- var Ui = "DropdownMenuSubContent", kr = h.forwardRef((e, t) => {
1641
- const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
1642
- return /* @__PURE__ */ o.jsx(
1643
- Si,
1644
- {
1645
- ...a,
1646
- ...r,
1647
- ref: t,
1648
- style: {
1649
- ...e.style,
1650
- "--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
1651
- "--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
1652
- "--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
1653
- "--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
1654
- "--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
1655
- }
1656
- }
1657
- );
1658
- });
1659
- kr.displayName = Ui;
1660
- var Bi = Sr, zi = Er, $r = Rr, Lr = jr, Fr = Nr, Hr = Pr, Ur = Tr, Br = _r, zr = Or, Kr = Ir, Ki = Fi, Vr = Ar, Qr = kr;
1661
- const Vi = Bi, Qi = zi, qi = $r, Gi = Ki, qr = h.forwardRef(({ className: e, inset: t, children: n, ...r }, a) => /* @__PURE__ */ o.jsxs(
1662
- Vr,
1663
- {
1664
- ref: a,
1665
- className: O(
1666
- "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
1667
- t && "pl-8",
1668
- e
1669
- ),
1670
- ...r,
1671
- children: [
1672
- n,
1673
- /* @__PURE__ */ o.jsx(Vn, { className: "ml-auto h-4 w-4" })
1674
- ]
1675
- }
1676
- ));
1677
- qr.displayName = Vr.displayName;
1678
- const Gr = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o.jsx(
1679
- Qr,
1680
- {
1681
- ref: n,
1682
- className: O(
1683
- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1684
- e
1685
- ),
1686
- ...t
1687
- }
1688
- ));
1689
- Gr.displayName = Qr.displayName;
1690
- const Wr = h.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ o.jsx($r, { children: /* @__PURE__ */ o.jsx(
1691
- Lr,
1692
- {
1693
- ref: r,
1694
- sideOffset: t,
1695
- className: O(
1696
- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
1697
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1698
- e
1699
- ),
1700
- ...n
1701
- }
1702
- ) }));
1703
- Wr.displayName = Lr.displayName;
1704
- const Yr = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ o.jsx(
1705
- Hr,
1706
- {
1707
- ref: r,
1708
- className: O(
1709
- "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1710
- t && "pl-8",
1711
- e
1712
- ),
1713
- ...n
1714
- }
1715
- ));
1716
- Yr.displayName = Hr.displayName;
1717
- const Wi = h.forwardRef(({ className: e, children: t, checked: n, ...r }, a) => /* @__PURE__ */ o.jsxs(
1718
- Ur,
1719
- {
1720
- ref: a,
1721
- className: O(
1722
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1723
- e
1724
- ),
1725
- checked: n,
1726
- ...r,
1727
- children: [
1728
- /* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(zr, { children: /* @__PURE__ */ o.jsx(Ia, { className: "h-4 w-4" }) }) }),
1729
- t
1730
- ]
1731
- }
1732
- ));
1733
- Wi.displayName = Ur.displayName;
1734
- const Yi = h.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ o.jsxs(
1735
- Br,
1736
- {
1737
- ref: r,
1738
- className: O(
1739
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1740
- e
1741
- ),
1742
- ...n,
1743
- children: [
1744
- /* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(zr, { children: /* @__PURE__ */ o.jsx(Aa, { className: "h-4 w-4 fill-current" }) }) }),
1745
- t
1746
- ]
1747
- }
1748
- ));
1749
- Yi.displayName = Br.displayName;
1750
- const Xr = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ o.jsx(
1751
- Fr,
1752
- {
1753
- ref: r,
1754
- className: O(
1755
- "px-2 py-1.5 text-sm font-semibold",
1756
- t && "pl-8",
1757
- e
1758
- ),
1759
- ...n
1760
- }
1761
- ));
1762
- Xr.displayName = Fr.displayName;
1763
- const Jr = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o.jsx(
1764
- Kr,
1765
- {
1766
- ref: n,
1767
- className: O("-mx-1 my-1 h-px bg-muted", e),
1768
- ...t
1769
- }
1770
- ));
1771
- Jr.displayName = Kr.displayName;
1772
- const bn = {
1773
- info: "bg-blue-500",
1774
- note: "bg-gray-500",
1775
- tip: "bg-green-600",
1776
- caution: "bg-orange-500",
1777
- danger: "bg-rose-500"
1778
- }, Xi = () => {
1779
- const { page: e } = Ue(), [t, n] = Te(!0);
1780
- if (!(e != null && e.banner) || !t)
1781
- return /* @__PURE__ */ o.jsx("style", { children: ":root { --banner-height: 0px; }" });
1782
- const r = e.banner.color && e.banner.color in bn ? bn[e.banner.color] : e.banner.color ? void 0 : "bg-primary", a = r ? {} : { backgroundColor: e.banner.color };
1783
- return /* @__PURE__ */ o.jsxs(
1784
- "div",
1785
- {
1786
- className: O(
1787
- "relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center",
1788
- r
1789
- ),
1790
- style: a,
1791
- children: [
1792
- /* @__PURE__ */ o.jsx("div", { className: "w-full", children: e.banner.message }),
1793
- e.banner.dismissible && /* @__PURE__ */ o.jsx(
1794
- "button",
1795
- {
1796
- type: "button",
1797
- className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
1798
- onClick: () => n(!1),
1799
- children: /* @__PURE__ */ o.jsx(ka, { size: 16 })
1800
- }
1801
- )
1802
- ]
1803
- }
1804
- );
1805
- };
1806
- function Ji(e) {
1807
- if (typeof document > "u") return;
1808
- let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
1809
- n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
1810
- }
1811
- const Zr = g.createContext({
1812
- drawerRef: {
1813
- current: null
1814
- },
1815
- overlayRef: {
1816
- current: null
1817
- },
1818
- scaleBackground: () => {
1819
- },
1820
- onPress: () => {
1821
- },
1822
- onRelease: () => {
1823
- },
1824
- onDrag: () => {
1825
- },
1826
- onNestedDrag: () => {
1827
- },
1828
- onNestedOpenChange: () => {
1829
- },
1830
- onNestedRelease: () => {
1831
- },
1832
- openProp: void 0,
1833
- dismissible: !1,
1834
- handleOnly: !1,
1835
- isOpen: !1,
1836
- isDragging: !1,
1837
- keyboardIsOpen: {
1838
- current: !1
1839
- },
1840
- snapPointsOffset: null,
1841
- snapPoints: null,
1842
- modal: !1,
1843
- shouldFade: !1,
1844
- activeSnapPoint: null,
1845
- onOpenChange: () => {
1846
- },
1847
- setActiveSnapPoint: () => {
1848
- },
1849
- visible: !1,
1850
- closeDrawer: () => {
1851
- },
1852
- setVisible: () => {
1853
- },
1854
- direction: "bottom"
1855
- }), wt = () => {
1856
- const e = g.useContext(Zr);
1857
- if (!e)
1858
- throw new Error("useDrawerContext must be used within a Drawer.Root");
1859
- return e;
1860
- };
1861
- Ji("[vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1)}[vaul-drawer][vaul-drawer-direction=bottom]{transform:translate3d(0,100%,0)}[vaul-drawer][vaul-drawer-direction=top]{transform:translate3d(0,-100%,0)}[vaul-drawer][vaul-drawer-direction=left]{transform:translate3d(-100%,0,0)}[vaul-drawer][vaul-drawer-direction=right]{transform:translate3d(100%,0,0)}.vaul-dragging .vaul-scrollable [vault-drawer-direction=top]{overflow-y:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=bottom]{overflow-y:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=left]{overflow-x:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=right]{overflow-x:hidden!important}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[vaul-overlay]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[vaul-overlay][vaul-drawer-visible=true]{opacity:1}[vaul-drawer]::after{content:'';position:absolute;background:inherit;background-color:inherit}[vaul-drawer][vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[vaul-drawer][vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[vaul-handle]{display:block;position:relative;opacity:.8;margin-left:auto;margin-right:auto;height:5px;width:56px;border-radius:1rem;touch-action:pan-y;cursor:grab}[vaul-handle]:active,[vaul-handle]:hover{opacity:1}[vaul-handle]:active{cursor:grabbing}[vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}[vaul-overlay][vaul-snap-points=true]:not([vaul-snap-points-overlay=true]):not([data-state=closed]){opacity:0}[vaul-overlay][vaul-snap-points-overlay=true]:not([vaul-drawer-visible=false]){opacity:1}@media (hover:hover) and (pointer:fine){[vaul-drawer]{user-select:none}}@media (pointer:fine){[vaul-handle-hitarea]:{width:100%;height:100%}}");
1862
- const eo = typeof window < "u" ? ma : be;
1863
- function Nt(...e) {
1864
- return (...t) => {
1865
- for (let n of e)
1866
- typeof n == "function" && n(...t);
1867
- };
1868
- }
1869
- function Zi() {
1870
- return Yt(/^Mac/);
1871
- }
1872
- function el() {
1873
- return Yt(/^iPhone/);
1874
- }
1875
- function tl() {
1876
- return Yt(/^iPad/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
1877
- Zi() && navigator.maxTouchPoints > 1;
1878
- }
1879
- function to() {
1880
- return el() || tl();
1881
- }
1882
- function Yt(e) {
1883
- return typeof window < "u" && window.navigator != null ? e.test(window.navigator.platform) : void 0;
1884
- }
1885
- const St = typeof document < "u" && window.visualViewport;
1886
- function xn(e) {
1887
- let t = window.getComputedStyle(e);
1888
- return /(auto|scroll)/.test(t.overflow + t.overflowX + t.overflowY);
1889
- }
1890
- function no(e) {
1891
- for (xn(e) && (e = e.parentElement); e && !xn(e); )
1892
- e = e.parentElement;
1893
- return e || document.scrollingElement || document.documentElement;
1894
- }
1895
- const nl = /* @__PURE__ */ new Set([
1896
- "checkbox",
1897
- "radio",
1898
- "range",
1899
- "color",
1900
- "file",
1901
- "image",
1902
- "button",
1903
- "submit",
1904
- "reset"
1905
- ]);
1906
- let ut = 0, Ct;
1907
- function rl(e = {}) {
1908
- let { isDisabled: t } = e;
1909
- eo(() => {
1910
- if (!t)
1911
- return ut++, ut === 1 && (to() ? Ct = al() : Ct = ol()), () => {
1912
- ut--, ut === 0 && Ct();
1913
- };
1914
- }, [
1915
- t
1916
- ]);
1917
- }
1918
- function ol() {
1919
- return Nt(ro(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
1920
- }
1921
- function al() {
1922
- let e, t = 0, n = (c) => {
1923
- e = no(c.target), !(e === document.documentElement && e === document.body) && (t = c.changedTouches[0].pageY);
1924
- }, r = (c) => {
1925
- if (!e || e === document.documentElement || e === document.body) {
1926
- c.preventDefault();
1927
- return;
1928
- }
1929
- let d = c.changedTouches[0].pageY, f = e.scrollTop, y = e.scrollHeight - e.clientHeight;
1930
- y !== 0 && ((f <= 0 && d > t || f >= y && d < t) && c.preventDefault(), t = d);
1931
- }, a = (c) => {
1932
- let d = c.target;
1933
- Pt(d) && d !== document.activeElement && (c.preventDefault(), d.style.transform = "translateY(-2000px)", d.focus(), requestAnimationFrame(() => {
1934
- d.style.transform = "";
1935
- }));
1936
- }, s = (c) => {
1937
- let d = c.target;
1938
- Pt(d) && (d.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
1939
- d.style.transform = "", St && (St.height < window.innerHeight ? requestAnimationFrame(() => {
1940
- yn(d);
1941
- }) : St.addEventListener("resize", () => yn(d), {
1942
- once: !0
1943
- }));
1944
- }));
1945
- }, i = () => {
1946
- window.scrollTo(0, 0);
1947
- }, l = window.pageXOffset, u = window.pageYOffset, v = Nt(ro(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
1948
- window.scrollTo(0, 0);
1949
- let m = Nt(Ve(document, "touchstart", n, {
1950
- passive: !1,
1951
- capture: !0
1952
- }), Ve(document, "touchmove", r, {
1953
- passive: !1,
1954
- capture: !0
1955
- }), Ve(document, "touchend", a, {
1956
- passive: !1,
1957
- capture: !0
1958
- }), Ve(document, "focus", s, !0), Ve(window, "scroll", i));
1959
- return () => {
1960
- v(), m(), window.scrollTo(l, u);
1961
- };
1962
- }
1963
- function ro(e, t, n) {
1964
- let r = e.style[t];
1965
- return e.style[t] = n, () => {
1966
- e.style[t] = r;
1967
- };
1968
- }
1969
- function Ve(e, t, n, r) {
1970
- return e.addEventListener(t, n, r), () => {
1971
- e.removeEventListener(t, n, r);
1972
- };
1973
- }
1974
- function yn(e) {
1975
- let t = document.scrollingElement || document.documentElement;
1976
- for (; e && e !== t; ) {
1977
- let n = no(e);
1978
- if (n !== document.documentElement && n !== document.body && n !== e) {
1979
- let r = n.getBoundingClientRect().top, a = e.getBoundingClientRect().top, s = e.getBoundingClientRect().bottom;
1980
- const i = n.getBoundingClientRect().bottom;
1981
- s > i && (n.scrollTop += a - r);
1982
- }
1983
- e = n.parentElement;
1984
- }
1985
- }
1986
- function Pt(e) {
1987
- return e instanceof HTMLInputElement && !nl.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
1988
- }
1989
- function sl(e, t) {
1990
- typeof e == "function" ? e(t) : e != null && (e.current = t);
1991
- }
1992
- function il(...e) {
1993
- return (t) => e.forEach((n) => sl(n, t));
1994
- }
1995
- function oo(...e) {
1996
- return h.useCallback(il(...e), e);
1997
- }
1998
- let Qe = null;
1999
- function ll({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRestoration: a, noBodyStyles: s }) {
2000
- const [i, l] = g.useState(() => typeof window < "u" ? window.location.href : ""), u = g.useRef(0), v = g.useCallback(() => {
2001
- if (Qe === null && e && !s) {
2002
- Qe = {
2003
- position: document.body.style.position,
2004
- top: document.body.style.top,
2005
- left: document.body.style.left,
2006
- height: document.body.style.height,
2007
- right: "unset"
2008
- };
2009
- const { scrollX: c, innerHeight: d } = window;
2010
- document.body.style.setProperty("position", "fixed", "important"), Object.assign(document.body.style, {
2011
- top: `${-u.current}px`,
2012
- left: `${-c}px`,
2013
- right: "0px",
2014
- height: "auto"
2015
- }), window.setTimeout(() => window.requestAnimationFrame(() => {
2016
- const f = d - window.innerHeight;
2017
- f && u.current >= d && (document.body.style.top = `${-(u.current + f)}px`);
2018
- }), 300);
2019
- }
2020
- }, [
2021
- e
2022
- ]), m = g.useCallback(() => {
2023
- if (Qe !== null && !s) {
2024
- const c = -parseInt(document.body.style.top, 10), d = -parseInt(document.body.style.left, 10);
2025
- Object.assign(document.body.style, Qe), window.requestAnimationFrame(() => {
2026
- if (a && i !== window.location.href) {
2027
- l(window.location.href);
2028
- return;
2029
- }
2030
- window.scrollTo(d, c);
2031
- }), Qe = null;
2032
- }
2033
- }, [
2034
- i
2035
- ]);
2036
- return g.useEffect(() => {
2037
- function c() {
2038
- u.current = window.scrollY;
2039
- }
2040
- return c(), window.addEventListener("scroll", c), () => {
2041
- window.removeEventListener("scroll", c);
2042
- };
2043
- }, []), g.useEffect(() => {
2044
- n || !r || (e ? (!window.matchMedia("(display-mode: standalone)").matches && v(), t || window.setTimeout(() => {
2045
- m();
2046
- }, 500)) : m());
2047
- }, [
2048
- e,
2049
- r,
2050
- i,
2051
- t,
2052
- n,
2053
- v,
2054
- m
2055
- ]), {
2056
- restorePositionSetting: m
2057
- };
2058
- }
2059
- const ao = /* @__PURE__ */ new WeakMap();
2060
- function I(e, t, n = !1) {
2061
- if (!e || !(e instanceof HTMLElement)) return;
2062
- let r = {};
2063
- Object.entries(t).forEach(([a, s]) => {
2064
- if (a.startsWith("--")) {
2065
- e.style.setProperty(a, s);
2066
- return;
2067
- }
2068
- r[a] = e.style[a], e.style[a] = s;
2069
- }), !n && ao.set(e, r);
2070
- }
2071
- function dt(e, t) {
2072
- if (!e || !(e instanceof HTMLElement)) return;
2073
- let n = ao.get(e);
2074
- n && (t ? e.style[t] = n[t] : Object.entries(n).forEach(([r, a]) => {
2075
- e.style[r] = a;
2076
- }));
2077
- }
2078
- const z = (e) => {
2079
- switch (e) {
2080
- case "top":
2081
- case "bottom":
2082
- return !0;
2083
- case "left":
2084
- case "right":
2085
- return !1;
2086
- default:
2087
- return e;
2088
- }
2089
- };
2090
- function ft(e, t) {
2091
- if (!e)
2092
- return null;
2093
- const n = window.getComputedStyle(e), r = (
2094
- // @ts-ignore
2095
- n.transform || n.webkitTransform || n.mozTransform
2096
- );
2097
- let a = r.match(/^matrix3d\((.+)\)$/);
2098
- return a ? parseFloat(a[1].split(", ")[z(t) ? 13 : 12]) : (a = r.match(/^matrix\((.+)\)$/), a ? parseFloat(a[1].split(", ")[z(t) ? 5 : 4]) : null);
2099
- }
2100
- function cl(e) {
2101
- return 8 * (Math.log(e + 1) - 2);
2102
- }
2103
- const T = {
2104
- DURATION: 0.5,
2105
- EASE: [
2106
- 0.32,
2107
- 0.72,
2108
- 0,
2109
- 1
2110
- ]
2111
- }, so = 0.4;
2112
- function io(e) {
2113
- const t = g.useRef(e);
2114
- return g.useEffect(() => {
2115
- t.current = e;
2116
- }), g.useMemo(() => (...n) => t.current == null ? void 0 : t.current.call(t, ...n), []);
2117
- }
2118
- function ul({ defaultProp: e, onChange: t }) {
2119
- const n = g.useState(e), [r] = n, a = g.useRef(r), s = io(t);
2120
- return g.useEffect(() => {
2121
- a.current !== r && (s(r), a.current = r);
2122
- }, [
2123
- r,
2124
- a,
2125
- s
2126
- ]), n;
2127
- }
2128
- function dl({ prop: e, defaultProp: t, onChange: n = () => {
2129
- } }) {
2130
- const [r, a] = ul({
2131
- defaultProp: t,
2132
- onChange: n
2133
- }), s = e !== void 0, i = s ? e : r, l = io(n), u = g.useCallback((v) => {
2134
- if (s) {
2135
- const c = typeof v == "function" ? v(e) : v;
2136
- c !== e && l(c);
2137
- } else
2138
- a(v);
2139
- }, [
2140
- s,
2141
- e,
2142
- a,
2143
- l
2144
- ]);
2145
- return [
2146
- i,
2147
- u
2148
- ];
2149
- }
2150
- function fl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n, drawerRef: r, overlayRef: a, fadeFromIndex: s, onSnapPointChange: i, direction: l = "bottom" }) {
2151
- const [u, v] = dl({
2152
- prop: e,
2153
- defaultProp: n == null ? void 0 : n[0],
2154
- onChange: t
2155
- }), m = g.useMemo(() => u === (n == null ? void 0 : n[n.length - 1]) || null, [
2156
- n,
2157
- u
2158
- ]), c = n && n.length > 0 && (s || s === 0) && !Number.isNaN(s) && n[s] === u || !n, d = g.useMemo(() => n == null ? void 0 : n.findIndex((x) => x === u), [
2159
- n,
2160
- u
2161
- ]), f = g.useMemo(() => {
2162
- var x;
2163
- return (x = n == null ? void 0 : n.map((p) => {
2164
- const E = typeof window < "u", N = typeof p == "string";
2165
- let P = 0;
2166
- if (N && (P = parseInt(p, 10)), z(l)) {
2167
- const w = N ? P : E ? p * window.innerHeight : 0;
2168
- return E ? l === "bottom" ? window.innerHeight - w : -window.innerHeight + w : w;
2169
- }
2170
- const _ = N ? P : E ? p * window.innerWidth : 0;
2171
- return E ? l === "right" ? window.innerWidth - _ : -window.innerWidth + _ : _;
2172
- })) != null ? x : [];
2173
- }, [
2174
- n
2175
- ]), y = g.useMemo(() => d !== null ? f == null ? void 0 : f[d] : null, [
2176
- f,
2177
- d
2178
- ]), R = g.useCallback((x) => {
2179
- var p;
2180
- const E = (p = f == null ? void 0 : f.findIndex((N) => N === x)) != null ? p : null;
2181
- i(E), I(r.current, {
2182
- transition: `transform ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`,
2183
- transform: z(l) ? `translate3d(0, ${x}px, 0)` : `translate3d(${x}px, 0, 0)`
2184
- }), f && E !== f.length - 1 && E !== s ? I(a.current, {
2185
- transition: `opacity ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`,
2186
- opacity: "0"
2187
- }) : I(a.current, {
2188
- transition: `opacity ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`,
2189
- opacity: "1"
2190
- }), v(E !== null ? n == null ? void 0 : n[E] : null);
2191
- }, [
2192
- r.current,
2193
- n,
2194
- f,
2195
- s,
2196
- a,
2197
- v
2198
- ]);
2199
- g.useEffect(() => {
2200
- if (u || e) {
2201
- var x;
2202
- const p = (x = n == null ? void 0 : n.findIndex((E) => E === e || E === u)) != null ? x : -1;
2203
- f && p !== -1 && typeof f[p] == "number" && R(f[p]);
2204
- }
2205
- }, [
2206
- u,
2207
- e,
2208
- n,
2209
- f,
2210
- R
2211
- ]);
2212
- function K({ draggedDistance: x, closeDrawer: p, velocity: E, dismissible: N }) {
2213
- if (s === void 0) return;
2214
- const P = l === "bottom" || l === "right" ? (y ?? 0) - x : (y ?? 0) + x, _ = d === s - 1, w = d === 0, L = x > 0;
2215
- if (_ && I(a.current, {
2216
- transition: `opacity ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`
2217
- }), E > 2 && !L) {
2218
- N ? p() : R(f[0]);
2219
- return;
2220
- }
2221
- if (E > 2 && L && f && n) {
2222
- R(f[n.length - 1]);
2223
- return;
2224
- }
2225
- const te = f == null ? void 0 : f.reduce((V, X) => typeof V != "number" || typeof X != "number" ? V : Math.abs(X - P) < Math.abs(V - P) ? X : V), Q = z(l) ? window.innerHeight : window.innerWidth;
2226
- if (E > so && Math.abs(x) < Q * 0.4) {
2227
- const V = L ? 1 : -1;
2228
- if (V > 0 && m) {
2229
- R(f[n.length - 1]);
2230
- return;
2231
- }
2232
- if (w && V < 0 && N && p(), d === null) return;
2233
- R(f[d + V]);
2234
- return;
2235
- }
2236
- R(te);
2237
- }
2238
- function H({ draggedDistance: x }) {
2239
- if (y === null) return;
2240
- const p = l === "bottom" || l === "right" ? y - x : y + x;
2241
- (l === "bottom" || l === "right") && p < f[f.length - 1] || (l === "top" || l === "left") && p > f[f.length - 1] || I(r.current, {
2242
- transform: z(l) ? `translate3d(0, ${p}px, 0)` : `translate3d(${p}px, 0, 0)`
2243
- });
2244
- }
2245
- function q(x, p) {
2246
- if (!n || typeof d != "number" || !f || s === void 0) return null;
2247
- const E = d === s - 1;
2248
- if (d >= s && p)
2249
- return 0;
2250
- if (E && !p) return 1;
2251
- if (!c && !E) return null;
2252
- const P = E ? d + 1 : d - 1, _ = E ? f[P] - f[P - 1] : f[P + 1] - f[P], w = x / Math.abs(_);
2253
- return E ? 1 - w : w;
2254
- }
2255
- return {
2256
- isLastSnapPoint: m,
2257
- activeSnapPoint: u,
2258
- shouldFade: c,
2259
- getPercentageDragged: q,
2260
- setActiveSnapPoint: v,
2261
- activeSnapPointIndex: d,
2262
- onRelease: K,
2263
- onDrag: H,
2264
- snapPointsOffset: f
2265
- };
2266
- }
2267
- const hl = 0.25, pl = 100, Mn = 8, Ne = 16, Sn = 26, Et = "vaul-dragging";
2268
- function lo({ open: e, onOpenChange: t, children: n, shouldScaleBackground: r, onDrag: a, onRelease: s, snapPoints: i, nested: l = !1, setBackgroundColorOnScale: u = !0, closeThreshold: v = hl, scrollLockTimeout: m = pl, dismissible: c = !0, handleOnly: d = !1, fadeFromIndex: f = i && i.length - 1, activeSnapPoint: y, setActiveSnapPoint: R, fixed: K, modal: H = !0, onClose: q, noBodyStyles: x, direction: p = "bottom", preventScrollRestoration: E = !0, disablePreventScroll: N = !1 }) {
2269
- var P;
2270
- const [_ = !1, w] = g.useState(!1), [L, te] = g.useState(!1), [Q, V] = g.useState(!1), [X, Oe] = g.useState(!1), [he, Be] = g.useState(!1), [xe, C] = g.useState(!1), U = g.useRef(null), Y = g.useRef(null), ne = g.useRef(null), De = g.useRef(null), pe = g.useRef(null), ye = g.useRef(!1), me = g.useRef(null), le = g.useRef(0), ge = g.useRef(!1), re = g.useRef(0), M = g.useRef(null), en = g.useRef(((P = M.current) == null ? void 0 : P.getBoundingClientRect().height) || 0), bt = g.useRef(0), yo = g.useCallback((S) => {
2271
- i && S === Ke.length - 1 && (Y.current = /* @__PURE__ */ new Date());
2272
- }, []), { activeSnapPoint: Mo, activeSnapPointIndex: ze, setActiveSnapPoint: tn, onRelease: So, snapPointsOffset: Ke, onDrag: Co, shouldFade: nn, getPercentageDragged: Eo } = fl({
2273
- snapPoints: i,
2274
- activeSnapPointProp: y,
2275
- setActiveSnapPointProp: R,
2276
- drawerRef: M,
2277
- fadeFromIndex: f,
2278
- overlayRef: U,
2279
- onSnapPointChange: yo,
2280
- direction: p
2281
- });
2282
- rl({
2283
- isDisabled: !_ || he || !H || xe || !L || N
2284
- });
2285
- const { restorePositionSetting: Ro } = ll({
2286
- isOpen: _,
2287
- modal: H,
2288
- nested: l,
2289
- hasBeenOpened: L,
2290
- preventScrollRestoration: E,
2291
- noBodyStyles: x
2292
- });
2293
- function Ie() {
2294
- return (window.innerWidth - Sn) / window.innerWidth;
2295
- }
2296
- function Do(S) {
2297
- var D;
2298
- !c && !i || M.current && !M.current.contains(S.target) || (en.current = ((D = M.current) == null ? void 0 : D.getBoundingClientRect().height) || 0, Be(!0), ne.current = /* @__PURE__ */ new Date(), to() && window.addEventListener("touchend", () => ye.current = !1, {
2299
- once: !0
2300
- }), S.target.setPointerCapture(S.pointerId), le.current = z(p) ? S.clientY : S.clientX);
2301
- }
2302
- function rn(S, D) {
2303
- var k;
2304
- let j = S;
2305
- const F = (k = window.getSelection()) == null ? void 0 : k.toString(), B = M.current ? ft(M.current, p) : null, oe = /* @__PURE__ */ new Date();
2306
- if (j.hasAttribute("data-vaul-no-drag") || j.closest("[data-vaul-no-drag]"))
2307
- return !1;
2308
- if (p === "right" || p === "left")
2309
- return !0;
2310
- if (Y.current && oe.getTime() - Y.current.getTime() < 500)
2311
- return !1;
2312
- if (B !== null && (p === "bottom" ? B > 0 : B < 0))
2313
- return !0;
2314
- if (F && F.length > 0)
2315
- return !1;
2316
- if (pe.current && oe.getTime() - pe.current.getTime() < m && B === 0 || D)
2317
- return pe.current = oe, !1;
2318
- for (; j; ) {
2319
- if (j.scrollHeight > j.clientHeight) {
2320
- if (j.scrollTop !== 0)
2321
- return pe.current = /* @__PURE__ */ new Date(), !1;
2322
- if (j.getAttribute("role") === "dialog")
2323
- return !0;
2324
- }
2325
- j = j.parentNode;
2326
- }
2327
- return !0;
2328
- }
2329
- function jo(S) {
2330
- if (M.current && he) {
2331
- const D = p === "bottom" || p === "right" ? 1 : -1, k = (le.current - (z(p) ? S.clientY : S.clientX)) * D, j = k > 0, F = i && !c && !j;
2332
- if (F && ze === 0) return;
2333
- const B = Math.abs(k), oe = document.querySelector("[vaul-drawer-wrapper]");
2334
- let ce = B / en.current;
2335
- const Me = Eo(B, j);
2336
- if (Me !== null && (ce = Me), F && ce >= 1 || !ye.current && !rn(S.target, j)) return;
2337
- if (M.current.classList.add(Et), ye.current = !0, I(M.current, {
2338
- transition: "none"
2339
- }), I(U.current, {
2340
- transition: "none"
2341
- }), i && Co({
2342
- draggedDistance: k
2343
- }), j && !i) {
2344
- const je = cl(k), st = Math.min(je * -1, 0) * D;
2345
- I(M.current, {
2346
- transform: z(p) ? `translate3d(0, ${st}px, 0)` : `translate3d(${st}px, 0, 0)`
2347
- });
2348
- return;
2349
- }
2350
- const at = 1 - ce;
2351
- if ((nn || f && ze === f - 1) && (a == null || a(S, ce), I(U.current, {
2352
- opacity: `${at}`,
2353
- transition: "none"
2354
- }, !0)), oe && U.current && r) {
2355
- const je = Math.min(Ie() + ce * (1 - Ie()), 1), st = 8 - ce * 8, an = Math.max(0, 14 - ce * 14);
2356
- I(oe, {
2357
- borderRadius: `${st}px`,
2358
- transform: z(p) ? `scale(${je}) translate3d(0, ${an}px, 0)` : `scale(${je}) translate3d(${an}px, 0, 0)`,
2359
- transition: "none"
2360
- }, !0);
2361
- }
2362
- if (!i) {
2363
- const je = B * D;
2364
- I(M.current, {
2365
- transform: z(p) ? `translate3d(0, ${je}px, 0)` : `translate3d(${je}px, 0, 0)`
2366
- });
2367
- }
2368
- }
2369
- }
2370
- g.useEffect(() => () => {
2371
- ot(!1), Ro();
2372
- }, []), g.useEffect(() => {
2373
- var S;
2374
- function D() {
2375
- if (!M.current) return;
2376
- const k = document.activeElement;
2377
- if (Pt(k) || ge.current) {
2378
- var j;
2379
- const F = ((j = window.visualViewport) == null ? void 0 : j.height) || 0;
2380
- let B = window.innerHeight - F;
2381
- const oe = M.current.getBoundingClientRect().height || 0;
2382
- bt.current || (bt.current = oe);
2383
- const ce = M.current.getBoundingClientRect().top;
2384
- if (Math.abs(re.current - B) > 60 && (ge.current = !ge.current), i && i.length > 0 && Ke && ze) {
2385
- const Me = Ke[ze] || 0;
2386
- B += Me;
2387
- }
2388
- if (re.current = B, oe > F || ge.current) {
2389
- const Me = M.current.getBoundingClientRect().height;
2390
- let at = Me;
2391
- Me > F && (at = F - Sn), K ? M.current.style.height = `${Me - Math.max(B, 0)}px` : M.current.style.height = `${Math.max(at, F - ce)}px`;
2392
- } else
2393
- M.current.style.height = `${bt.current}px`;
2394
- i && i.length > 0 && !ge.current ? M.current.style.bottom = "0px" : M.current.style.bottom = `${Math.max(B, 0)}px`;
2395
- }
2396
- }
2397
- return (S = window.visualViewport) == null || S.addEventListener("resize", D), () => {
2398
- var k;
2399
- return (k = window.visualViewport) == null ? void 0 : k.removeEventListener("resize", D);
2400
- };
2401
- }, [
2402
- ze,
2403
- i,
2404
- Ke
2405
- ]);
2406
- function Ae() {
2407
- M.current && (No(), q == null || q(), I(M.current, {
2408
- transform: z(p) ? `translate3d(0, ${p === "bottom" ? "100%" : "-100%"}, 0)` : `translate3d(${p === "right" ? "100%" : "-100%"}, 0, 0)`,
2409
- transition: `transform ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`
2410
- }), I(U.current, {
2411
- opacity: "0",
2412
- transition: `opacity ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`
2413
- }), ot(!1), setTimeout(() => {
2414
- V(!1), w(!1);
2415
- }, 300), setTimeout(() => {
2416
- i && tn(i[0]);
2417
- }, T.DURATION * 1e3));
2418
- }
2419
- g.useEffect(() => {
2420
- if (!_ && r) {
2421
- const S = setTimeout(() => {
2422
- dt(document.body);
2423
- }, 200);
2424
- return () => clearTimeout(S);
2425
- }
2426
- }, [
2427
- _,
2428
- r
2429
- ]), eo(() => {
2430
- e ? (w(!0), te(!0)) : Ae();
2431
- }, [
2432
- e
2433
- ]), g.useEffect(() => {
2434
- X && (t == null || t(_));
2435
- }, [
2436
- _
2437
- ]), g.useEffect(() => {
2438
- Oe(!0);
2439
- }, []);
2440
- function on() {
2441
- if (!M.current) return;
2442
- const S = document.querySelector("[vaul-drawer-wrapper]"), D = ft(M.current, p);
2443
- I(M.current, {
2444
- transform: "translate3d(0, 0, 0)",
2445
- transition: `transform ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`
2446
- }), I(U.current, {
2447
- transition: `opacity ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`,
2448
- opacity: "1"
2449
- }), r && D && D > 0 && _ && I(S, {
2450
- borderRadius: `${Mn}px`,
2451
- overflow: "hidden",
2452
- ...z(p) ? {
2453
- transform: `scale(${Ie()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
2454
- transformOrigin: "top"
2455
- } : {
2456
- transform: `scale(${Ie()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,
2457
- transformOrigin: "left"
2458
- },
2459
- transitionProperty: "transform, border-radius",
2460
- transitionDuration: `${T.DURATION}s`,
2461
- transitionTimingFunction: `cubic-bezier(${T.EASE.join(",")})`
2462
- }, !0);
2463
- }
2464
- function No() {
2465
- !he || !M.current || (M.current.classList.remove(Et), ye.current = !1, Be(!1), De.current = /* @__PURE__ */ new Date());
2466
- }
2467
- function Po(S) {
2468
- if (!he || !M.current) return;
2469
- M.current.classList.remove(Et), ye.current = !1, Be(!1), De.current = /* @__PURE__ */ new Date();
2470
- const D = ft(M.current, p);
2471
- if (!rn(S.target, !1) || !D || Number.isNaN(D) || ne.current === null) return;
2472
- const k = De.current.getTime() - ne.current.getTime(), j = le.current - (z(p) ? S.clientY : S.clientX), F = Math.abs(j) / k;
2473
- if (F > 0.05 && (C(!0), setTimeout(() => {
2474
- C(!1);
2475
- }, 200)), i) {
2476
- So({
2477
- draggedDistance: j * (p === "bottom" || p === "right" ? 1 : -1),
2478
- closeDrawer: Ae,
2479
- velocity: F,
2480
- dismissible: c
2481
- }), s == null || s(S, !0);
2482
- return;
2483
- }
2484
- if (p === "bottom" || p === "right" ? j > 0 : j < 0) {
2485
- on(), s == null || s(S, !0);
2486
- return;
2487
- }
2488
- if (F > so) {
2489
- Ae(), s == null || s(S, !1);
2490
- return;
2491
- }
2492
- var B;
2493
- const oe = Math.min((B = M.current.getBoundingClientRect().height) != null ? B : 0, window.innerHeight);
2494
- if (D >= oe * v) {
2495
- Ae(), s == null || s(S, !1);
2496
- return;
2497
- }
2498
- s == null || s(S, !0), on();
2499
- }
2500
- g.useEffect(() => {
2501
- _ && (I(document.documentElement, {
2502
- scrollBehavior: "auto"
2503
- }), Y.current = /* @__PURE__ */ new Date(), ot(!0));
2504
- }, [
2505
- _
2506
- ]), g.useEffect(() => {
2507
- if (M.current && Q) {
2508
- var S;
2509
- const D = M == null || (S = M.current) == null ? void 0 : S.querySelectorAll("*");
2510
- D == null || D.forEach((k) => {
2511
- const j = k;
2512
- (j.scrollHeight > j.clientHeight || j.scrollWidth > j.clientWidth) && j.classList.add("vaul-scrollable");
2513
- });
2514
- }
2515
- }, [
2516
- Q
2517
- ]);
2518
- function ot(S) {
2519
- const D = document.querySelector("[vaul-drawer-wrapper]");
2520
- !D || !r || (S ? (u && (x || (I(document.body, {
2521
- background: document.body.style.backgroundColor || document.body.style.background
2522
- }), I(document.body, {
2523
- background: "black"
2524
- }, !0))), I(D, {
2525
- borderRadius: `${Mn}px`,
2526
- overflow: "hidden",
2527
- ...z(p) ? {
2528
- transform: `scale(${Ie()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
2529
- transformOrigin: "top"
2530
- } : {
2531
- transform: `scale(${Ie()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,
2532
- transformOrigin: "left"
2533
- },
2534
- transitionProperty: "transform, border-radius",
2535
- transitionDuration: `${T.DURATION}s`,
2536
- transitionTimingFunction: `cubic-bezier(${T.EASE.join(",")})`
2537
- })) : (dt(D, "overflow"), dt(D, "transform"), dt(D, "borderRadius"), I(D, {
2538
- transitionProperty: "transform, border-radius",
2539
- transitionDuration: `${T.DURATION}s`,
2540
- transitionTimingFunction: `cubic-bezier(${T.EASE.join(",")})`
2541
- })));
2542
- }
2543
- function To(S) {
2544
- const D = S ? (window.innerWidth - Ne) / window.innerWidth : 1, k = S ? -Ne : 0;
2545
- me.current && window.clearTimeout(me.current), I(M.current, {
2546
- transition: `transform ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`,
2547
- transform: `scale(${D}) translate3d(0, ${k}px, 0)`
2548
- }), !S && M.current && (me.current = setTimeout(() => {
2549
- const j = ft(M.current, p);
2550
- I(M.current, {
2551
- transition: "none",
2552
- transform: z(p) ? `translate3d(0, ${j}px, 0)` : `translate3d(${j}px, 0, 0)`
2553
- });
2554
- }, 500));
2555
- }
2556
- function _o(S, D) {
2557
- if (D < 0) return;
2558
- const k = z(p) ? window.innerHeight : window.innerWidth, j = (k - Ne) / k, F = j + D * (1 - j), B = -Ne + D * Ne;
2559
- I(M.current, {
2560
- transform: z(p) ? `scale(${F}) translate3d(0, ${B}px, 0)` : `scale(${F}) translate3d(${B}px, 0, 0)`,
2561
- transition: "none"
2562
- });
2563
- }
2564
- function Oo(S, D) {
2565
- const k = z(p) ? window.innerHeight : window.innerWidth, j = D ? (k - Ne) / k : 1, F = D ? -Ne : 0;
2566
- D && I(M.current, {
2567
- transition: `transform ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`,
2568
- transform: z(p) ? `scale(${j}) translate3d(0, ${F}px, 0)` : `scale(${j}) translate3d(${F}px, 0, 0)`
2569
- });
2570
- }
2571
- return /* @__PURE__ */ g.createElement(Ja, {
2572
- modal: H,
2573
- onOpenChange: (S) => {
2574
- if (e !== void 0) {
2575
- t == null || t(S);
2576
- return;
2577
- }
2578
- S ? (te(!0), w(S)) : Ae();
2579
- },
2580
- open: _
2581
- }, /* @__PURE__ */ g.createElement(Zr.Provider, {
2582
- value: {
2583
- visible: Q,
2584
- activeSnapPoint: Mo,
2585
- snapPoints: i,
2586
- setActiveSnapPoint: tn,
2587
- drawerRef: M,
2588
- overlayRef: U,
2589
- scaleBackground: ot,
2590
- onOpenChange: t,
2591
- onPress: Do,
2592
- setVisible: V,
2593
- onRelease: Po,
2594
- onDrag: jo,
2595
- dismissible: c,
2596
- handleOnly: d,
2597
- isOpen: _,
2598
- isDragging: he,
2599
- shouldFade: nn,
2600
- closeDrawer: Ae,
2601
- onNestedDrag: _o,
2602
- onNestedOpenChange: To,
2603
- onNestedRelease: Oo,
2604
- keyboardIsOpen: ge,
2605
- openProp: e,
2606
- modal: H,
2607
- snapPointsOffset: Ke,
2608
- direction: p
2609
- }
2610
- }, n));
2611
- }
2612
- const ml = 250, gl = 120, co = /* @__PURE__ */ g.forwardRef(function({ preventCycle: e = !1, children: t, ...n }, r) {
2613
- const { visible: a, closeDrawer: s, isDragging: i, snapPoints: l, activeSnapPoint: u, setActiveSnapPoint: v, dismissible: m, handleOnly: c, onPress: d, onDrag: f } = wt(), y = g.useRef(null), R = g.useRef(!1);
2614
- function K() {
2615
- if (R.current) {
2616
- x();
2617
- return;
2618
- }
2619
- window.setTimeout(() => {
2620
- H();
2621
- }, gl);
2622
- }
2623
- function H() {
2624
- if (i || e || R.current) {
2625
- x();
2626
- return;
2627
- }
2628
- if (x(), (!l || l.length === 0) && m) {
2629
- s();
2630
- return;
2631
- }
2632
- if (u === l[l.length - 1] && m) {
2633
- s();
2634
- return;
2635
- }
2636
- const E = l.findIndex((P) => P === u);
2637
- if (E === -1) return;
2638
- const N = l[E + 1];
2639
- v(N);
2640
- }
2641
- function q() {
2642
- y.current = window.setTimeout(() => {
2643
- R.current = !0;
2644
- }, ml);
2645
- }
2646
- function x() {
2647
- window.clearTimeout(y.current), R.current = !1;
2648
- }
2649
- return /* @__PURE__ */ g.createElement("div", {
2650
- onClick: K,
2651
- onDoubleClick: () => {
2652
- R.current = !0, s();
2653
- },
2654
- onPointerCancel: x,
2655
- onPointerDown: (p) => {
2656
- c && d(p), q();
2657
- },
2658
- onPointerMove: (p) => {
2659
- c && f(p);
2660
- },
2661
- // onPointerUp is already handled by the content component
2662
- ref: r,
2663
- "vaul-drawer-visible": a ? "true" : "false",
2664
- "vaul-handle": "",
2665
- "aria-hidden": "true",
2666
- ...n
2667
- }, /* @__PURE__ */ g.createElement("span", {
2668
- "vaul-handle-hitarea": "",
2669
- "aria-hidden": "true"
2670
- }, t));
2671
- });
2672
- co.displayName = "Drawer.Handle";
2673
- const uo = /* @__PURE__ */ g.forwardRef(function({ children: e, ...t }, n) {
2674
- const { overlayRef: r, snapPoints: a, onRelease: s, shouldFade: i, isOpen: l, visible: u } = wt(), v = oo(n, r), m = a && a.length > 0;
2675
- return /* @__PURE__ */ g.createElement(Va, {
2676
- onMouseUp: s,
2677
- ref: v,
2678
- "vaul-drawer-visible": u ? "true" : "false",
2679
- "vaul-overlay": "",
2680
- "vaul-snap-points": l && m ? "true" : "false",
2681
- "vaul-snap-points-overlay": l && i ? "true" : "false",
2682
- ...t
2683
- });
2684
- });
2685
- uo.displayName = "Drawer.Overlay";
2686
- const fo = /* @__PURE__ */ g.forwardRef(function({ onOpenAutoFocus: e, onPointerDownOutside: t, onAnimationEnd: n, style: r, ...a }, s) {
2687
- const { drawerRef: i, onPress: l, onRelease: u, onDrag: v, dismissible: m, keyboardIsOpen: c, snapPointsOffset: d, visible: f, closeDrawer: y, modal: R, openProp: K, onOpenChange: H, setVisible: q, handleOnly: x, direction: p } = wt(), E = oo(s, i), N = g.useRef(null), P = g.useRef(!1), _ = (w, L, te = 0) => {
2688
- if (P.current) return !0;
2689
- const Q = Math.abs(w.y), V = Math.abs(w.x), X = V > Q, Oe = [
2690
- "bottom",
2691
- "right"
2692
- ].includes(L) ? 1 : -1;
2693
- if (L === "left" || L === "right") {
2694
- if (!(w.x * Oe < 0) && V >= 0 && V <= te)
2695
- return X;
2696
- } else if (!(w.y * Oe < 0) && Q >= 0 && Q <= te)
2697
- return !X;
2698
- return P.current = !0, !0;
2699
- };
2700
- return g.useEffect(() => {
2701
- q(!0);
2702
- }, []), /* @__PURE__ */ g.createElement(Qa, {
2703
- "vaul-drawer": "",
2704
- "vaul-drawer-direction": p,
2705
- "vaul-drawer-visible": f ? "true" : "false",
2706
- ...a,
2707
- ref: E,
2708
- style: d && d.length > 0 ? {
2709
- "--snap-point-height": `${d[0]}px`,
2710
- ...r
2711
- } : r,
2712
- onOpenAutoFocus: (w) => {
2713
- if (e)
2714
- e(w);
2715
- else {
2716
- var L;
2717
- w.preventDefault(), (L = i.current) == null || L.focus();
2718
- }
2719
- },
2720
- onPointerDown: (w) => {
2721
- x || (a.onPointerDown == null || a.onPointerDown.call(a, w), N.current = {
2722
- x: w.clientX,
2723
- y: w.clientY
2724
- }, l(w));
2725
- },
2726
- onPointerDownOutside: (w) => {
2727
- if (t == null || t(w), !R || w.defaultPrevented) {
2728
- w.preventDefault();
2729
- return;
2730
- }
2731
- c.current && (c.current = !1), w.preventDefault(), H == null || H(!1), !(!m || K !== void 0) && y();
2732
- },
2733
- onFocusOutside: (w) => {
2734
- if (!R) {
2735
- w.preventDefault();
2736
- return;
2737
- }
2738
- },
2739
- onEscapeKeyDown: (w) => {
2740
- if (!R) {
2741
- w.preventDefault();
2742
- return;
2743
- }
2744
- },
2745
- onPointerMove: (w) => {
2746
- if (x || (a.onPointerMove == null || a.onPointerMove.call(a, w), !N.current)) return;
2747
- const L = w.clientY - N.current.y, te = w.clientX - N.current.x, Q = w.pointerType === "touch" ? 10 : 2;
2748
- _({
2749
- x: te,
2750
- y: L
2751
- }, p, Q) ? v(w) : (Math.abs(te) > Q || Math.abs(L) > Q) && (N.current = null);
2752
- },
2753
- onPointerUp: (w) => {
2754
- a.onPointerUp == null || a.onPointerUp.call(a, w), N.current = null, P.current = !1, u(w);
2755
- }
2756
- });
2757
- });
2758
- fo.displayName = "Drawer.Content";
2759
- function vl({ onDrag: e, onOpenChange: t, ...n }) {
2760
- const { onNestedDrag: r, onNestedOpenChange: a, onNestedRelease: s } = wt();
2761
- if (!r)
2762
- throw new Error("Drawer.NestedRoot must be placed in another drawer");
2763
- return /* @__PURE__ */ g.createElement(lo, {
2764
- nested: !0,
2765
- onClose: () => {
2766
- a(!1);
2767
- },
2768
- onDrag: (i, l) => {
2769
- r(i, l), e == null || e(i, l);
2770
- },
2771
- onOpenChange: (i) => {
2772
- i && a(i), t == null || t(i);
2773
- },
2774
- onRelease: s,
2775
- ...n
2776
- });
2777
- }
2778
- const ie = {
2779
- Root: lo,
2780
- NestedRoot: vl,
2781
- Content: fo,
2782
- Handle: co,
2783
- Overlay: uo,
2784
- Trigger: qa,
2785
- Portal: Ga,
2786
- Close: Wa,
2787
- Title: Ya,
2788
- Description: Xa
2789
- }, Xt = ({
2790
- shouldScaleBackground: e = !0,
2791
- ...t
2792
- }) => /* @__PURE__ */ o.jsx(
2793
- ie.Root,
2794
- {
2795
- shouldScaleBackground: e,
2796
- ...t
2797
- }
2798
- );
2799
- Xt.displayName = "Drawer";
2800
- const ho = ie.Trigger, wl = ie.Portal, bl = ie.Close, po = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o.jsx(
2801
- ie.Overlay,
2802
- {
2803
- ref: n,
2804
- className: O("fixed inset-0 z-50 bg-black/80", e),
2805
- ...t
2806
- }
2807
- ));
2808
- po.displayName = ie.Overlay.displayName;
2809
- const Jt = h.forwardRef(({ className: e, children: t, hideBar: n = !0, ...r }, a) => /* @__PURE__ */ o.jsxs(wl, { children: [
2810
- /* @__PURE__ */ o.jsx(po, {}),
2811
- /* @__PURE__ */ o.jsxs(
2812
- ie.Content,
2813
- {
2814
- ref: a,
2815
- className: O(
2816
- "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
2817
- e
2818
- ),
2819
- ...r,
2820
- children: [
2821
- !n && /* @__PURE__ */ o.jsx("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
2822
- t
2823
- ]
2824
- }
2825
- )
2826
- ] }));
2827
- Jt.displayName = "DrawerContent";
2828
- const Zt = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o.jsx(
2829
- ie.Title,
2830
- {
2831
- ref: n,
2832
- className: O(
2833
- "text-lg font-semibold leading-none tracking-tight",
2834
- e
2835
- ),
2836
- ...t
2837
- }
2838
- ));
2839
- Zt.displayName = ie.Title.displayName;
2840
- const xl = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o.jsx(
2841
- ie.Description,
2842
- {
2843
- ref: n,
2844
- className: O("text-sm text-muted-foreground", e),
2845
- ...t
2846
- }
2847
- ));
2848
- xl.displayName = ie.Description.displayName;
2849
- const yl = () => {
2850
- const { topNavigation: e } = Ue();
2851
- return /* @__PURE__ */ o.jsxs(Xt, { direction: "right", children: [
2852
- /* @__PURE__ */ o.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ o.jsx(ho, { className: "lg:hidden", children: /* @__PURE__ */ o.jsx($a, { size: 22 }) }) }),
2853
- /* @__PURE__ */ o.jsxs(
2854
- Jt,
2855
- {
2856
- className: "lg:hidden h-screen right-0 left-auto w-[320px] rounded-none",
2857
- "aria-describedby": void 0,
2858
- children: [
2859
- /* @__PURE__ */ o.jsx(An, { children: /* @__PURE__ */ o.jsx(Zt, { children: "Navigation" }) }),
2860
- /* @__PURE__ */ o.jsx("ul", { className: "flex flex-col items-center gap-4 p-4", children: e.map((t) => /* @__PURE__ */ o.jsx("li", { children: /* @__PURE__ */ o.jsx(
2861
- We,
2862
- {
2863
- className: ({ isActive: n }) => kn(
2864
- "block font-medium border-b-2",
2865
- n ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
2866
- ),
2867
- to: t.id,
2868
- children: /* @__PURE__ */ o.jsx(bl, { children: t.label })
2869
- }
2870
- ) }, t.label)) })
2871
- ]
2872
- }
2873
- )
2874
- ] });
2875
- }, Ml = () => {
2876
- const e = Ue(), [t, n] = Te(!1), r = Fn(() => n(!1), []);
2877
- be(() => {
2878
- if (t)
2879
- return;
2880
- function s(i) {
2881
- i.key === "k" && (i.metaKey || i.ctrlKey) && (i.preventDefault(), n(!0));
2882
- }
2883
- return window.addEventListener("keydown", s), () => {
2884
- window.removeEventListener("keydown", s);
2885
- };
2886
- }, [t, n]);
2887
- const a = e.plugins.find(Ns);
2888
- return a ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2889
- /* @__PURE__ */ o.jsxs(
2890
- "button",
2891
- {
2892
- type: "button",
2893
- onClick: () => n(!0),
2894
- className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-40 sm:w-72",
2895
- children: [
2896
- /* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
2897
- /* @__PURE__ */ o.jsx(La, { size: 14 }),
2898
- "Search"
2899
- ] }),
2900
- /* @__PURE__ */ o.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] 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: "⌘K" })
2901
- ]
2902
- }
2903
- ),
2904
- /* @__PURE__ */ o.jsx(Hn, { fallback: null, children: a.renderSearch({
2905
- isOpen: t,
2906
- onClose: r
2907
- }) })
2908
- ] }) : null;
2909
- }, Sl = () => {
2910
- const { topNavigation: e } = Ue();
2911
- return e.length <= 1 ? /* @__PURE__ */ o.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ o.jsx("nav", { className: "hidden lg:block border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ o.jsx("ul", { className: "flex flex-row items-center gap-8", children: e.map((t) => /* @__PURE__ */ o.jsx("li", { children: /* @__PURE__ */ o.jsx(
2912
- We,
2913
- {
2914
- className: ({ isActive: n }) => kn(
2915
- "block py-3.5 font-medium -mb-px border-b-2",
2916
- n ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
2917
- ),
2918
- to: t.id,
2919
- children: t.label
2920
- }
2921
- ) }, t.label)) }) });
2922
- }, mo = ({ item: e }) => e.children ? /* @__PURE__ */ o.jsxs(Gi, { children: [
2923
- /* @__PURE__ */ o.jsx(qr, { children: e.label }),
2924
- /* @__PURE__ */ o.jsx(qi, { children: /* @__PURE__ */ o.jsx(Gr, { children: e.children.map((t, n) => (
2925
- // eslint-disable-next-line react/no-array-index-key
2926
- /* @__PURE__ */ o.jsx(mo, { item: t }, n)
2927
- )) }) })
2928
- ] }, e.label) : /* @__PURE__ */ o.jsx(Ot, { to: e.path ?? "", children: /* @__PURE__ */ o.jsx(Yr, { children: e.label }, e.label) }), go = Un(function() {
2929
- const t = cn(), [n, r] = ia(), { isAuthenticated: a, profile: s, isAuthEnabled: i } = cn(), l = Ue(), { page: u, plugins: v } = l, m = v.filter((d) => Ds(d)).flatMap((d) => d.getProfileMenuItems(l)).map((d) => /* @__PURE__ */ o.jsx(mo, { item: d }, d.label)), c = n ? Fa : Ha;
2930
- return /* @__PURE__ */ o.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
2931
- /* @__PURE__ */ o.jsx(Xi, {}),
2932
- /* @__PURE__ */ o.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
2933
- /* @__PURE__ */ o.jsxs("div", { className: "grid grid-cols-2 lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-10 lg:px-12 h-[--top-header-height]", children: [
2934
- /* @__PURE__ */ o.jsx("div", { className: "flex", children: /* @__PURE__ */ o.jsx(Ot, { to: "/", children: /* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-3.5", children: [
2935
- (u == null ? void 0 : u.logo) && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2936
- /* @__PURE__ */ o.jsx(
2937
- "img",
2938
- {
2939
- src: u.logo.src.light,
2940
- alt: u.logo.alt ?? u.pageTitle,
2941
- style: { width: u.logo.width },
2942
- className: O("h-10", n && "hidden"),
2943
- loading: "lazy"
2944
- }
2945
- ),
2946
- /* @__PURE__ */ o.jsx(
2947
- "img",
2948
- {
2949
- src: u.logo.src.dark,
2950
- alt: u.logo.alt ?? u.pageTitle,
2951
- style: { width: u.logo.width },
2952
- className: O("h-10", !n && "hidden"),
2953
- loading: "lazy"
2954
- }
2955
- )
2956
- ] }),
2957
- /* @__PURE__ */ o.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: u == null ? void 0 : u.pageTitle })
2958
- ] }) }) }),
2959
- /* @__PURE__ */ o.jsxs("div", { className: "grid grid-cols-2 md:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
2960
- /* @__PURE__ */ o.jsx("div", { className: "w-full justify-center flex", children: /* @__PURE__ */ o.jsx(Ml, {}) }),
2961
- /* @__PURE__ */ o.jsx(yl, {}),
2962
- /* @__PURE__ */ o.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
2963
- /* @__PURE__ */ o.jsx(Pe, { name: "head-navigation-start" }),
2964
- i && !a ? /* @__PURE__ */ o.jsx(Rt, { variant: "ghost", onClick: () => t.login(), children: "Login" }) : m.length > 0 && /* @__PURE__ */ o.jsxs(Vi, { modal: !1, children: [
2965
- /* @__PURE__ */ o.jsx(Qi, { asChild: !0, children: /* @__PURE__ */ o.jsx(Rt, { variant: "ghost", children: s != null && s.email ? `${s.email}` : "My Account" }) }),
2966
- /* @__PURE__ */ o.jsxs(Wr, { className: "w-56", children: [
2967
- /* @__PURE__ */ o.jsx(Xr, { children: "My Account" }),
2968
- /* @__PURE__ */ o.jsx(Jr, {}),
2969
- m
2970
- ] })
2971
- ] }),
2972
- /* @__PURE__ */ o.jsx(
2973
- "button",
2974
- {
2975
- type: "button",
2976
- "aria-label": n ? "Switch to light mode" : "Switch to dark mode",
2977
- className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
2978
- onClick: r,
2979
- children: /* @__PURE__ */ o.jsx(c, { size: 18 })
2980
- }
2981
- ),
2982
- /* @__PURE__ */ o.jsx(Pe, { name: "head-navigation-end" })
2983
- ] })
2984
- ] })
2985
- ] }),
2986
- /* @__PURE__ */ o.jsx(Sl, {})
2987
- ] })
2988
- ] });
2989
- }), vo = {
2990
- Header: go
2991
- }, Cl = Ln(vo), El = Cl.Provider, Rl = (e) => {
2992
- const [t, n] = Te(!1);
2993
- be(() => {
2994
- const s = localStorage.getItem("theme"), i = window.matchMedia("(prefers-color-scheme: dark)"), l = s === "dark" || !s && i.matches;
2995
- n(l);
2996
- }, [t]);
2997
- const r = Fn(() => {
2998
- const s = !t;
2999
- document.documentElement.classList.toggle("dark", s), localStorage.setItem("theme", s ? "dark" : "light"), n(s);
3000
- }, [t]), a = [t, r];
3001
- return /* @__PURE__ */ o.jsx(la.Provider, { value: a, ...e });
3002
- }, Dl = ({
3003
- children: e,
3004
- context: t
3005
- }) => (Pa({
3006
- queryFn: async () => (await t.initialize(), !0),
3007
- queryKey: ["zudoku-initialize"]
3008
- }), /* @__PURE__ */ o.jsx(Ta.Provider, { value: t, children: e })), jl = ({
3009
- children: e,
3010
- ...t
3011
- }) => {
3012
- var c, d;
3013
- const n = xt(
3014
- () => ({ ...vo, ...t.overrides }),
3015
- [t.overrides]
3016
- ), r = xt(() => {
3017
- var y;
3018
- return {
3019
- ...(t.plugins ?? []).filter(_s).flatMap(
3020
- (R) => R.getMdxComponents ? [R.getMdxComponents()] : []
3021
- ).reduce((R, K) => ({ ...R, ...K }), {}),
3022
- ...ca,
3023
- ...(y = t.mdx) == null ? void 0 : y.components
3024
- };
3025
- }, [(c = t.mdx) == null ? void 0 : c.components, t.plugins]), { stagger: a } = ga(Dt), [s, i] = Te(!1), l = xt(
3026
- () => s ? { stagger: !0 } : { stagger: a },
3027
- [a, s]
3028
- ), u = zo();
3029
- be(() => {
3030
- s || i(!0);
3031
- }, [s, u.location]);
3032
- const [v] = Te(() => new Is(t)), m = (d = t.plugins) == null ? void 0 : d.filter(Ts).map((f, y) => {
3033
- var R;
3034
- return /* @__PURE__ */ o.jsx(va, { children: (R = f.getHead) == null ? void 0 : R.call(f) }, y);
3035
- });
3036
- return /* @__PURE__ */ o.jsxs(_a, { client: Yn, children: [
3037
- /* @__PURE__ */ o.jsx(_t, { children: m }),
3038
- /* @__PURE__ */ o.jsx(Dt.Provider, { value: l, children: /* @__PURE__ */ o.jsx(Dl, { context: v, children: /* @__PURE__ */ o.jsx(ko, { components: r, children: /* @__PURE__ */ o.jsx(Rl, { children: /* @__PURE__ */ o.jsx(El, { value: n, children: /* @__PURE__ */ o.jsx(Vo, { slotlets: t.slotlets, children: /* @__PURE__ */ o.jsx(ua, { children: e ?? /* @__PURE__ */ o.jsx(jn, {}) }) }) }) }) }) }) })
3039
- ] });
3040
- }, Nl = Un(jl), wo = (e) => /* @__PURE__ */ o.jsx(Es, { FallbackComponent: As, children: /* @__PURE__ */ o.jsx(Nl, { ...e }) });
3041
- wo.displayName = "DevPortal";
3042
- const Pl = ({
3043
- category: e,
3044
- level: t
3045
- }) => {
3046
- var d;
3047
- const n = Kn(), r = $o(e), [a, s] = Te(!1), i = e.collapsible ?? !0, l = e.collapsed ?? !0, u = !!(!i || !l || r), [v, m] = Te(u);
3048
- be(() => {
3049
- r && m(!0);
3050
- }, [r]);
3051
- const c = i && /* @__PURE__ */ o.jsx(
3052
- "button",
3053
- {
3054
- type: "button",
3055
- onClick: (f) => {
3056
- f.preventDefault(), m((y) => !y), s(!0);
3057
- },
3058
- children: /* @__PURE__ */ o.jsx(
3059
- Vn,
3060
- {
3061
- size: 16,
3062
- className: O(
3063
- a && "transition",
3064
- "shrink-0 group-data-[state=open]:rotate-90"
3065
- )
3066
- }
3067
- )
3068
- }
3069
- );
3070
- return /* @__PURE__ */ o.jsxs(
3071
- xa,
3072
- {
3073
- className: O("flex flex-col", t === 0 && "-mx-[--padding-nav-item]"),
3074
- defaultOpen: u,
3075
- open: v,
3076
- onOpenChange: () => m(!0),
3077
- children: [
3078
- /* @__PURE__ */ o.jsx(ya, { className: "group", asChild: !0, disabled: !i, children: /* @__PURE__ */ o.jsxs(
3079
- "div",
3080
- {
3081
- className: O(
3082
- "text-start",
3083
- Ge({ isActive: !1, isTopLevel: t === 0 }),
3084
- i ? "cursor-pointer" : "cursor-default hover:bg-transparent"
3085
- ),
3086
- children: [
3087
- e.icon && /* @__PURE__ */ o.jsx(
3088
- e.icon,
3089
- {
3090
- size: 16,
3091
- className: "align-[-0.125em] -translate-x-1"
3092
- }
3093
- ),
3094
- ((d = e.link) == null ? void 0 : d.type) === "doc" ? /* @__PURE__ */ o.jsx(
3095
- We,
3096
- {
3097
- to: Ft(n == null ? void 0 : n.id, e.link.id),
3098
- className: "flex-1",
3099
- onClick: () => s(!0),
3100
- children: ({ isActive: f }) => /* @__PURE__ */ o.jsxs(
3101
- "div",
3102
- {
3103
- className: O(
3104
- "flex items-center gap-2 justify-between w-full",
3105
- f ? "text-primary font-medium" : "text-foreground/80"
3106
- ),
3107
- children: [
3108
- /* @__PURE__ */ o.jsx("div", { className: "truncate", children: e.label }),
3109
- c
3110
- ]
3111
- }
3112
- )
3113
- }
3114
- ) : /* @__PURE__ */ o.jsxs("div", { className: "flex items-center justify-between w-full", children: [
3115
- /* @__PURE__ */ o.jsx("div", { className: "flex gap-2 truncate w-full", children: e.label }),
3116
- c
3117
- ] })
3118
- ]
3119
- }
3120
- ) }),
3121
- /* @__PURE__ */ o.jsx(
3122
- Ma,
3123
- {
3124
- className: O(
3125
- // CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
3126
- a && "CollapsibleContent",
3127
- "ms-[calc(var(--padding-nav-item)*1.125)]"
3128
- ),
3129
- children: /* @__PURE__ */ o.jsx("ul", { className: "mt-1 border-l ps-2", children: e.items.map((f) => /* @__PURE__ */ o.jsx(
3130
- Tt,
3131
- {
3132
- level: t + 1,
3133
- item: f
3134
- },
3135
- ("id" in f ? f.id : "") + ("href" in f ? f.href : "") + f.label
3136
- )) })
3137
- }
3138
- )
3139
- ]
3140
- }
3141
- );
3142
- }, Ge = da(
3143
- "flex items-center gap-2 px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
3144
- {
3145
- variants: {
3146
- isTopLevel: {
3147
- true: "font-semibold"
3148
- },
3149
- isActive: {
3150
- true: "text-primary font-medium",
3151
- false: "text-foreground/80"
3152
- },
3153
- isMuted: {
3154
- true: "text-foreground/30",
3155
- false: ""
3156
- }
3157
- }
3158
- }
3159
- ), bo = "data-anchor", Tt = ({
3160
- item: e,
3161
- level: t = 0
3162
- }) => {
3163
- const n = Kn(), { activeAnchor: r } = kt(), [a] = Ko();
3164
- switch (e.type) {
3165
- case "category":
3166
- return /* @__PURE__ */ o.jsx(Pl, { category: e, level: t });
3167
- case "doc":
3168
- return /* @__PURE__ */ o.jsxs(
3169
- We,
3170
- {
3171
- className: ({ isActive: s }) => Ge({ isActive: s, isTopLevel: t === 0 }),
3172
- to: Ft(n == null ? void 0 : n.id, e.id),
3173
- children: [
3174
- e.icon && /* @__PURE__ */ o.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
3175
- e.badge ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
3176
- /* @__PURE__ */ o.jsx("span", { className: "truncate", title: e.label, children: e.label }),
3177
- /* @__PURE__ */ o.jsx(yt, { ...e.badge })
3178
- ] }) : e.label
3179
- ]
3180
- }
3181
- );
3182
- case "link":
3183
- return e.href.startsWith("#") ? /* @__PURE__ */ o.jsx(
3184
- Lo,
3185
- {
3186
- to: { hash: e.href, search: a.toString() },
3187
- [bo]: e.href.slice(1),
3188
- className: O(
3189
- "flex gap-2.5 justify-between",
3190
- t === 0 && "-mx-[--padding-nav-item]",
3191
- Ge({
3192
- isActive: e.href.slice(1) === r
3193
- })
3194
- ),
3195
- children: e.badge ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
3196
- /* @__PURE__ */ o.jsx("span", { className: "truncate", title: e.label, children: e.label }),
3197
- /* @__PURE__ */ o.jsx(yt, { ...e.badge })
3198
- ] }) : /* @__PURE__ */ o.jsx("span", { className: "break-all", children: e.label })
3199
- }
3200
- ) : e.href.startsWith("http") ? /* @__PURE__ */ o.jsxs(
3201
- "a",
3202
- {
3203
- className: O(
3204
- Ge({ isTopLevel: t === 0 }),
3205
- "block"
3206
- ),
3207
- href: e.href,
3208
- target: "_blank",
3209
- rel: "noopener noreferrer",
3210
- children: [
3211
- /* @__PURE__ */ o.jsx("span", { className: "whitespace-normal", children: e.label }),
3212
- /* @__PURE__ */ o.jsxs("span", { className: "whitespace-nowrap", children: [
3213
- " ",
3214
- /* @__PURE__ */ o.jsx(Ua, { className: "inline ml-1", size: 12 })
3215
- ] })
3216
- ]
3217
- }
3218
- ) : /* @__PURE__ */ o.jsx(
3219
- We,
3220
- {
3221
- className: O("flex gap-2.5 justify-between", Ge()),
3222
- to: e.href,
3223
- children: e.badge ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
3224
- /* @__PURE__ */ o.jsx("span", { className: "truncate", title: e.label, children: e.label }),
3225
- /* @__PURE__ */ o.jsx(yt, { ...e.badge })
3226
- ] }) : /* @__PURE__ */ o.jsx("span", { className: "break-all", children: e.label })
3227
- }
3228
- );
3229
- }
3230
- }, Tl = (e, t = { block: "center" }) => {
3231
- if (!e) return;
3232
- const n = e.getBoundingClientRect();
3233
- n.top >= 0 && n.left >= 0 && n.bottom <= (window.innerHeight || document.documentElement.clientHeight) && n.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
3234
- }, _l = () => {
3235
- const e = It(), { setActiveAnchor: t } = kt();
3236
- be(() => {
3237
- if (!e.hash) return;
3238
- const n = decodeURIComponent(e.hash.split("/")[0].slice(1)), r = () => {
3239
- const a = document.getElementById(n), s = document.querySelector(`[${bo}="${n}"]`);
3240
- return a ? (a.scrollIntoView(), Tl(s), requestIdleCallback(() => t(n)), !0) : !1;
3241
- };
3242
- if (!r()) {
3243
- const a = new MutationObserver((s, i) => {
3244
- r() && i.disconnect();
3245
- });
3246
- return a.observe(document.body, { childList: !0, subtree: !0 }), () => a.disconnect();
3247
- }
3248
- }, [e.hash, t]);
3249
- }, Ol = () => {
3250
- const e = It(), t = $t(e.pathname);
3251
- be(() => {
3252
- t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
3253
- }, [e.pathname]);
3254
- }, xo = wa(({ children: e, className: t, pushMainContent: n }, r) => /* @__PURE__ */ o.jsx(
3255
- "nav",
3256
- {
3257
- "data-navigation": String(n),
3258
- className: O(
3259
- "scrollbar peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0",
3260
- "px-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 mt-[--padding-content-top]",
3261
- "w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
3262
- t
3263
- ),
3264
- ref: r,
3265
- children: e
3266
- }
3267
- ));
3268
- xo.displayName = "SidebarWrapper";
3269
- const Il = () => {
3270
- const e = $t(null), t = Oa();
3271
- return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
3272
- /* @__PURE__ */ o.jsxs(
3273
- xo,
3274
- {
3275
- ref: e,
3276
- pushMainContent: t.data.items.length > 0,
3277
- children: [
3278
- /* @__PURE__ */ o.jsx(Pe, { name: "zudoku-before-navigation" }),
3279
- t.data.items.map((n) => /* @__PURE__ */ o.jsx(Tt, { item: n }, n.label)),
3280
- /* @__PURE__ */ o.jsx(Pe, { name: "zudoku-after-navigation" })
3281
- ]
3282
- }
3283
- ),
3284
- /* @__PURE__ */ o.jsxs(
3285
- Jt,
3286
- {
3287
- className: "lg:hidden h-screen left-0 p-6 w-[320px] rounded-none",
3288
- "aria-describedby": void 0,
3289
- children: [
3290
- /* @__PURE__ */ o.jsx(An, { children: /* @__PURE__ */ o.jsx(Zt, { children: "Sidebar" }) }),
3291
- t.data.items.map((n) => /* @__PURE__ */ o.jsx(Tt, { item: n }, n.label))
3292
- ]
3293
- }
3294
- )
3295
- ] });
3296
- }, Al = ({ children: e }) => {
3297
- const t = It(), { setActiveAnchor: n } = kt(), { meta: r, authentication: a } = Ue();
3298
- _l(), Ol();
3299
- const s = $t(t.pathname);
3300
- return be(() => {
3301
- var i;
3302
- (i = a == null ? void 0 : a.pageLoad) == null || i.call(a);
3303
- }, [a]), be(() => {
3304
- t.pathname !== s.current && n(""), s.current = t.pathname;
3305
- }, [t.pathname, n]), /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
3306
- !1,
3307
- /* @__PURE__ */ o.jsxs(_t, { titleTemplate: r == null ? void 0 : r.title, children: [
3308
- (r == null ? void 0 : r.description) && /* @__PURE__ */ o.jsx("meta", { name: "description", content: r.description }),
3309
- (r == null ? void 0 : r.favicon) && /* @__PURE__ */ o.jsx("link", { rel: "icon", href: r.favicon })
3310
- ] }),
3311
- /* @__PURE__ */ o.jsx(Pe, { name: "layout-before-head" }),
3312
- /* @__PURE__ */ o.jsx(go, {}),
3313
- /* @__PURE__ */ o.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12", children: /* @__PURE__ */ o.jsx(
3314
- Hn,
3315
- {
3316
- fallback: /* @__PURE__ */ o.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ o.jsx(Za, {}) }),
3317
- children: /* @__PURE__ */ o.jsxs(Xt, { direction: "left", children: [
3318
- /* @__PURE__ */ o.jsx(Il, {}),
3319
- /* @__PURE__ */ o.jsx(
3320
- "div",
3321
- {
3322
- className: O(
3323
- "lg:hidden -mx-10 px-10 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
3324
- "peer-data-[navigation=false]:hidden"
3325
- ),
3326
- children: /* @__PURE__ */ o.jsxs(ho, { className: "flex items-center gap-2", children: [
3327
- /* @__PURE__ */ o.jsx(Ba, { size: 16, strokeWidth: 1.5 }),
3328
- /* @__PURE__ */ o.jsx("span", { className: "text-sm", children: "Menu" })
3329
- ] })
3330
- }
3331
- ),
3332
- /* @__PURE__ */ o.jsxs(
3333
- "main",
3334
- {
3335
- className: O(
3336
- "h-full dark:border-white/10 translate-x-0",
3337
- "lg:overflow-visible",
3338
- // This works in tandem with the `SidebarWrapper` component
3339
- "lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]",
3340
- "lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
3341
- ),
3342
- children: [
3343
- /* @__PURE__ */ o.jsx(Pe, { name: "zudoku-before-content" }),
3344
- e ?? /* @__PURE__ */ o.jsx(jn, {}),
3345
- /* @__PURE__ */ o.jsx(Pe, { name: "zudoku-after-content" })
3346
- ]
3347
- }
3348
- )
3349
- ] })
3350
- }
3351
- ) })
3352
- ] });
3353
- }, Zl = Fo, ec = fa, tc = wo, nc = Al, rc = Ot, oc = Qo, ac = es, sc = vs, ic = ws, lc = Rt, cc = _t;
1
+ import "./index.esm-BFcSKCe-.js";
2
+ import "./index--oeBayMa.js";
3
+ import "./chunk-BAXFHI7N-C9WnHsLV.js";
4
+ import "./hook-BpiAQVtd.js";
5
+ import "./RouteGuard-CIyGFkFD.js";
6
+ import "./Slot-Dw-g06lX.js";
7
+ import { e as k, f as l, n as S, B as h, C as B, j as c, l as E, H, d as L, L as M, M as R, g as Z, R as f, S as g, k as y, i as A, Z as b, b as j, h as v, c as w, m as x, a as D } from "./index-rsSMIHTN.js";
8
+ import "./ui/Button.js";
9
+ import "./ui/Callout.js";
10
+ import "./ClientOnly-E7hGysn1.js";
11
+ import "./Markdown-BNG8bTDA.js";
12
+ import "./Spinner-mNLZ6awP.js";
3354
13
  export {
3355
- sc as Bootstrap,
3356
- ic as BootstrapStatic,
3357
- lc as Button,
3358
- ec as Callout,
3359
- tc as DevPortal,
3360
- cc as Head,
3361
- nc as Layout,
3362
- rc as Link,
3363
- oc as RouterError,
3364
- ac as ServerError,
3365
- Zl as useMDXComponents
14
+ k as Bootstrap,
15
+ l as BootstrapStatic,
16
+ S as BuildCheck,
17
+ h as Button,
18
+ B as CACHE_KEYS,
19
+ c as Callout,
20
+ E as ClientOnly,
21
+ H as Head,
22
+ L as Layout,
23
+ M as Link,
24
+ R as Markdown,
25
+ Z as RouteGuard,
26
+ f as RouterError,
27
+ g as ServerError,
28
+ y as Spinner,
29
+ A as StatusPage,
30
+ b as Zudoku,
31
+ j as useAuth,
32
+ v as useCache,
33
+ w as useMDXComponents,
34
+ x as useTheme,
35
+ D as useZudoku
3366
36
  };
3367
37
  //# sourceMappingURL=zudoku.components.js.map