zudoku 0.0.0-eff6f9b → 0.0.0-f3858d6

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 (318) hide show
  1. package/cli.js +2 -2
  2. package/dist/app/entry.client.js +2 -2
  3. package/dist/app/entry.client.js.map +1 -1
  4. package/dist/app/entry.server.js +3 -0
  5. package/dist/app/entry.server.js.map +1 -1
  6. package/dist/app/main.d.ts +1 -0
  7. package/dist/app/main.js +9 -24
  8. package/dist/app/main.js.map +1 -1
  9. package/dist/app/standalone.js.map +1 -1
  10. package/dist/cli/common/machine-id/lib.js.map +1 -1
  11. package/dist/cli/common/outdated.js.map +1 -1
  12. package/dist/cli/common/utils/box.js.map +1 -1
  13. package/dist/cli/dev/handler.js +2 -2
  14. package/dist/cli/dev/handler.js.map +1 -1
  15. package/dist/config/config.d.ts +2 -1
  16. package/dist/config/validators/InputSidebarSchema.d.ts +2 -1
  17. package/dist/config/validators/SidebarSchema.d.ts +1 -1
  18. package/dist/config/validators/SidebarSchema.js +5 -9
  19. package/dist/config/validators/SidebarSchema.js.map +1 -1
  20. package/dist/config/validators/validate.d.ts +97 -30
  21. package/dist/config/validators/validate.js +10 -7
  22. package/dist/config/validators/validate.js.map +1 -1
  23. package/dist/index.d.ts +5 -1
  24. package/dist/index.js +1 -1
  25. package/dist/index.js.map +1 -1
  26. package/dist/lib/authentication/state.d.ts +16 -0
  27. package/dist/lib/authentication/state.js +5 -0
  28. package/dist/lib/authentication/state.js.map +1 -1
  29. package/dist/lib/components/Banner.js +7 -1
  30. package/dist/lib/components/Banner.js.map +1 -1
  31. package/dist/lib/components/ErrorPage.js +1 -2
  32. package/dist/lib/components/ErrorPage.js.map +1 -1
  33. package/dist/lib/components/Header.js +5 -1
  34. package/dist/lib/components/Header.js.map +1 -1
  35. package/dist/lib/components/InlineCode.d.ts +2 -1
  36. package/dist/lib/components/InlineCode.js +9 -1
  37. package/dist/lib/components/InlineCode.js.map +1 -1
  38. package/dist/lib/components/Layout.js +1 -1
  39. package/dist/lib/components/Layout.js.map +1 -1
  40. package/dist/lib/components/MobileTopNavigation.js +2 -1
  41. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  42. package/dist/lib/components/SlotletProvider.d.ts +5 -2
  43. package/dist/lib/components/SlotletProvider.js +6 -2
  44. package/dist/lib/components/SlotletProvider.js.map +1 -1
  45. package/dist/lib/components/TopNavigation.js +30 -5
  46. package/dist/lib/components/TopNavigation.js.map +1 -1
  47. package/dist/lib/components/context/ZudokuContext.d.ts +4 -9
  48. package/dist/lib/components/context/ZudokuContext.js +26 -20
  49. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  50. package/dist/lib/components/index.d.ts +2 -1
  51. package/dist/lib/components/index.js.map +1 -1
  52. package/dist/lib/components/navigation/Sidebar.js +3 -3
  53. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  54. package/dist/lib/components/navigation/SidebarCategory.js +1 -3
  55. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  56. package/dist/lib/components/navigation/SidebarItem.js +1 -3
  57. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  58. package/dist/lib/components/navigation/utils.js +10 -14
  59. package/dist/lib/components/navigation/utils.js.map +1 -1
  60. package/dist/lib/core/DevPortalContext.d.ts +4 -7
  61. package/dist/lib/core/DevPortalContext.js.map +1 -1
  62. package/dist/lib/core/plugins.d.ts +1 -0
  63. package/dist/lib/core/plugins.js.map +1 -1
  64. package/dist/lib/oas/graphql/index.d.ts +2 -1
  65. package/dist/lib/oas/graphql/index.js +23 -15
  66. package/dist/lib/oas/graphql/index.js.map +1 -1
  67. package/dist/lib/oas/parser/index.d.ts +1 -0
  68. package/dist/lib/oas/parser/index.js.map +1 -1
  69. package/dist/lib/plugins/{custom-page → custom-pages}/index.d.ts +2 -2
  70. package/dist/lib/plugins/{custom-page → custom-pages}/index.js +1 -1
  71. package/dist/lib/plugins/custom-pages/index.js.map +1 -0
  72. package/dist/lib/plugins/markdown/MdxPage.js +2 -2
  73. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  74. package/dist/lib/plugins/markdown/index.d.ts +5 -6
  75. package/dist/lib/plugins/markdown/index.js +31 -3
  76. package/dist/lib/plugins/markdown/index.js.map +1 -1
  77. package/dist/lib/plugins/markdown/resolver.d.ts +38 -0
  78. package/dist/lib/plugins/markdown/resolver.js +75 -0
  79. package/dist/lib/plugins/markdown/resolver.js.map +1 -0
  80. package/dist/lib/plugins/openapi/Endpoint.d.ts +1 -3
  81. package/dist/lib/plugins/openapi/Endpoint.js +46 -8
  82. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  83. package/dist/lib/plugins/openapi/OperationList.js +2 -2
  84. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  85. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +2 -1
  86. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +2 -2
  87. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  88. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  89. package/dist/lib/plugins/openapi/Route.d.ts +1 -1
  90. package/dist/lib/plugins/openapi/Route.js +1 -1
  91. package/dist/lib/plugins/openapi/Route.js.map +1 -1
  92. package/dist/lib/plugins/openapi/Sidecar.js +15 -4
  93. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  94. package/dist/lib/plugins/openapi/SimpleSelect.d.ts +2 -1
  95. package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
  96. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
  97. package/dist/lib/plugins/openapi/client/createMemoryClient.js +1 -1
  98. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +1 -1
  99. package/dist/lib/plugins/openapi/client/createWorkerClient.js +1 -1
  100. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +1 -1
  101. package/dist/lib/plugins/openapi/client/worker.js.map +1 -1
  102. package/dist/lib/plugins/openapi/graphql/gql.d.ts +10 -2
  103. package/dist/lib/plugins/openapi/graphql/gql.js +2 -1
  104. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  105. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +26 -0
  106. package/dist/lib/plugins/openapi/graphql/graphql.js +87 -0
  107. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  108. package/dist/lib/plugins/openapi/index.js +3 -2
  109. package/dist/lib/plugins/openapi/index.js.map +1 -1
  110. package/dist/lib/plugins/openapi/playground/Playground.d.ts +2 -1
  111. package/dist/lib/plugins/openapi/playground/Playground.js +13 -5
  112. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  113. package/dist/lib/plugins/openapi/playground/ResponseTab.js +1 -1
  114. package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +1 -1
  115. package/dist/lib/plugins/openapi/playground/createUrl.js +3 -1
  116. package/dist/lib/plugins/openapi/playground/createUrl.js.map +1 -1
  117. package/dist/lib/ui/Callout.d.ts +36 -35
  118. package/dist/lib/ui/Callout.js.map +1 -1
  119. package/dist/lib/ui/Drawer.d.ts +8 -10
  120. package/dist/lib/ui/Drawer.js.map +1 -1
  121. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  122. package/dist/vite/build.js +7 -2
  123. package/dist/vite/build.js.map +1 -1
  124. package/dist/vite/config.d.ts +1 -1
  125. package/dist/vite/config.js +22 -16
  126. package/dist/vite/config.js.map +1 -1
  127. package/dist/vite/debug.d.ts +1 -0
  128. package/dist/vite/debug.js +10 -0
  129. package/dist/vite/debug.js.map +1 -0
  130. package/dist/vite/dev-server.d.ts +6 -1
  131. package/dist/vite/dev-server.js +14 -4
  132. package/dist/vite/dev-server.js.map +1 -1
  133. package/dist/vite/plugin-api.js +4 -7
  134. package/dist/vite/plugin-api.js.map +1 -1
  135. package/dist/vite/plugin-component.js +0 -1
  136. package/dist/vite/plugin-component.js.map +1 -1
  137. package/dist/vite/plugin-config-reload.js +9 -4
  138. package/dist/vite/plugin-config-reload.js.map +1 -1
  139. package/dist/vite/plugin-custom-pages.d.ts +4 -0
  140. package/dist/vite/plugin-custom-pages.js +30 -0
  141. package/dist/vite/plugin-custom-pages.js.map +1 -0
  142. package/dist/vite/plugin-docs.js +26 -26
  143. package/dist/vite/plugin-docs.js.map +1 -1
  144. package/dist/vite/plugin-frontmatter.d.ts +2 -0
  145. package/dist/vite/plugin-frontmatter.js +30 -0
  146. package/dist/vite/plugin-frontmatter.js.map +1 -0
  147. package/dist/vite/plugin-sidebar.js +19 -3
  148. package/dist/vite/plugin-sidebar.js.map +1 -1
  149. package/dist/vite/plugin.js +4 -2
  150. package/dist/vite/plugin.js.map +1 -1
  151. package/dist/vite/prerender.d.ts +5 -1
  152. package/dist/vite/prerender.js +6 -5
  153. package/dist/vite/prerender.js.map +1 -1
  154. package/lib/{utils-DtEHoAvg.js → AnchorLink-DovtSBJk.js} +214 -261
  155. package/lib/AnchorLink-DovtSBJk.js.map +1 -0
  156. package/lib/{AuthenticationPlugin-gtf8JS3V.js → AuthenticationPlugin-Cnqy9csQ.js} +3 -3
  157. package/lib/{AuthenticationPlugin-gtf8JS3V.js.map → AuthenticationPlugin-Cnqy9csQ.js.map} +1 -1
  158. package/lib/{CategoryHeading-XnFqN2lJ.js → CategoryHeading-C7VfgpFZ.js} +2 -2
  159. package/lib/{CategoryHeading-XnFqN2lJ.js.map → CategoryHeading-C7VfgpFZ.js.map} +1 -1
  160. package/lib/{DeveloperHint-FBb2uXJe.js → DeveloperHint-CNyuFROc.js} +2 -2
  161. package/lib/{DeveloperHint-FBb2uXJe.js.map → DeveloperHint-CNyuFROc.js.map} +1 -1
  162. package/lib/ErrorPage-CUz-Zzmx.js +16 -0
  163. package/lib/ErrorPage-CUz-Zzmx.js.map +1 -0
  164. package/lib/Input-x-t53FyR.js +2229 -0
  165. package/lib/Input-x-t53FyR.js.map +1 -0
  166. package/lib/{Markdown-B4aR03g6.js → Markdown-C-0TaxoY.js} +1448 -1286
  167. package/lib/Markdown-C-0TaxoY.js.map +1 -0
  168. package/lib/{MdxPage-BcftTg5g.js → MdxPage-C5I9c7R1.js} +19 -18
  169. package/lib/MdxPage-C5I9c7R1.js.map +1 -0
  170. package/lib/{OperationList-Da36LrGl.js → OperationList-qsBOguHS.js} +149 -108
  171. package/lib/OperationList-qsBOguHS.js.map +1 -0
  172. package/lib/{Route-CWj1ECzh.js → Route-DlKvXPAO.js} +3 -4
  173. package/lib/Route-DlKvXPAO.js.map +1 -0
  174. package/lib/SidebarBadge-DaA0-bFW.js +503 -0
  175. package/lib/SidebarBadge-DaA0-bFW.js.map +1 -0
  176. package/lib/{SlotletProvider-DJMaOUDs.js → SlotletProvider-BGEs7yyu.js} +28 -26
  177. package/lib/{SlotletProvider-DJMaOUDs.js.map → SlotletProvider-BGEs7yyu.js.map} +1 -1
  178. package/lib/ZudokuContext-DSipF8sq.js +1222 -0
  179. package/lib/ZudokuContext-DSipF8sq.js.map +1 -0
  180. package/lib/__vite-browser-external-BYRIRx8p.js +9 -0
  181. package/lib/__vite-browser-external-BYRIRx8p.js.map +1 -0
  182. package/lib/assets/{index-B9EWVYfo.js → index-B_Jk_Yzp.js} +968 -938
  183. package/lib/assets/index-B_Jk_Yzp.js.map +1 -0
  184. package/lib/assets/{worker-TYRbYl6N.js → worker-DaFlmuyf.js} +6549 -4277
  185. package/lib/assets/worker-DaFlmuyf.js.map +1 -0
  186. package/lib/{index-DIkaYL-l.js → index-BIl-R3aH.js} +1943 -1675
  187. package/lib/index-BIl-R3aH.js.map +1 -0
  188. package/lib/{index-B_9xr661.js → index-CKmSo0py.js} +3 -3
  189. package/lib/{index-B_9xr661.js.map → index-CKmSo0py.js.map} +1 -1
  190. package/lib/{index-CLd8ycZz.js → index-CkwDvuPt.js} +947 -917
  191. package/lib/index-CkwDvuPt.js.map +1 -0
  192. package/lib/index-D06ATMgg.js +2094 -0
  193. package/lib/index-D06ATMgg.js.map +1 -0
  194. package/lib/index-DJqnphbT.js +35 -0
  195. package/lib/index-DJqnphbT.js.map +1 -0
  196. package/lib/{index-BoXX7LeD.js → index-Dssw7Gff.js} +597 -544
  197. package/lib/index-Dssw7Gff.js.map +1 -0
  198. package/lib/{index-BG0g4WW0.js → index-SrtqdZ3j.js} +746 -736
  199. package/lib/index-SrtqdZ3j.js.map +1 -0
  200. package/lib/router-Oe6YmY6B.js +3024 -0
  201. package/lib/router-Oe6YmY6B.js.map +1 -0
  202. package/lib/state-CsuHT8ZO.js +183 -0
  203. package/lib/state-CsuHT8ZO.js.map +1 -0
  204. package/lib/urql-core-KJnLL26g.js +1455 -0
  205. package/lib/urql-core-KJnLL26g.js.map +1 -0
  206. package/lib/zudoku.auth-auth0.js +1 -1
  207. package/lib/zudoku.auth-clerk.js +2 -2
  208. package/lib/zudoku.auth-openid.js +363 -350
  209. package/lib/zudoku.auth-openid.js.map +1 -1
  210. package/lib/zudoku.components.js +1717 -1633
  211. package/lib/zudoku.components.js.map +1 -1
  212. package/lib/zudoku.openapi-worker.js +4485 -4283
  213. package/lib/zudoku.openapi-worker.js.map +1 -1
  214. package/lib/zudoku.plugin-api-keys.js +7 -7
  215. package/lib/{zudoku.plugin-custom-page.js → zudoku.plugin-custom-pages.js} +3 -3
  216. package/lib/zudoku.plugin-custom-pages.js.map +1 -0
  217. package/lib/zudoku.plugin-markdown.js +93 -27
  218. package/lib/zudoku.plugin-markdown.js.map +1 -1
  219. package/lib/zudoku.plugin-openapi.js +8 -8
  220. package/lib/zudoku.plugin-redirect.js +1 -1
  221. package/package.json +71 -69
  222. package/src/app/entry.client.tsx +4 -2
  223. package/src/app/entry.server.tsx +4 -0
  224. package/src/app/main.css +4 -0
  225. package/src/app/main.tsx +12 -28
  226. package/src/app/standalone.tsx +1 -1
  227. package/src/lib/authentication/state.ts +17 -0
  228. package/src/lib/components/Banner.tsx +12 -2
  229. package/src/lib/components/ErrorPage.tsx +0 -2
  230. package/src/lib/components/Header.tsx +13 -3
  231. package/src/lib/components/InlineCode.tsx +10 -0
  232. package/src/lib/components/Layout.tsx +2 -1
  233. package/src/lib/components/MobileTopNavigation.tsx +2 -0
  234. package/src/lib/components/SlotletProvider.tsx +20 -4
  235. package/src/lib/components/TopNavigation.tsx +58 -24
  236. package/src/lib/components/context/ZudokuContext.ts +28 -20
  237. package/src/lib/components/index.ts +1 -1
  238. package/src/lib/components/navigation/Sidebar.tsx +5 -5
  239. package/src/lib/components/navigation/SidebarCategory.tsx +1 -3
  240. package/src/lib/components/navigation/SidebarItem.tsx +1 -3
  241. package/src/lib/components/navigation/utils.ts +11 -16
  242. package/src/lib/core/DevPortalContext.ts +4 -3
  243. package/src/lib/core/plugins.ts +2 -0
  244. package/src/lib/oas/graphql/index.ts +35 -23
  245. package/src/lib/oas/parser/index.ts +1 -0
  246. package/src/lib/plugins/{custom-page → custom-pages}/index.tsx +3 -3
  247. package/src/lib/plugins/markdown/MdxPage.tsx +2 -2
  248. package/src/lib/plugins/markdown/index.tsx +49 -12
  249. package/src/lib/plugins/markdown/resolver.ts +92 -0
  250. package/src/lib/plugins/openapi/Endpoint.tsx +86 -22
  251. package/src/lib/plugins/openapi/OperationList.tsx +4 -2
  252. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +3 -0
  253. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +1 -1
  254. package/src/lib/plugins/openapi/Route.tsx +1 -2
  255. package/src/lib/plugins/openapi/Sidecar.tsx +19 -4
  256. package/src/lib/plugins/openapi/SimpleSelect.tsx +10 -2
  257. package/src/lib/plugins/openapi/client/createMemoryClient.ts +1 -6
  258. package/src/lib/plugins/openapi/client/createWorkerClient.ts +1 -6
  259. package/src/lib/plugins/openapi/client/worker.ts +2 -2
  260. package/src/lib/plugins/openapi/graphql/gql.ts +11 -3
  261. package/src/lib/plugins/openapi/graphql/graphql.ts +113 -1
  262. package/src/lib/plugins/openapi/index.tsx +4 -7
  263. package/src/lib/plugins/openapi/playground/Playground.tsx +39 -5
  264. package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -1
  265. package/src/lib/plugins/openapi/playground/createUrl.ts +6 -1
  266. package/src/lib/ui/Callout.tsx +7 -6
  267. package/src/lib/ui/Drawer.tsx +38 -36
  268. package/src/lib/util/useScrollToAnchor.ts +1 -1
  269. package/dist/lib/plugins/custom-page/index.js.map +0 -1
  270. package/dist/lib/plugins/markdown/generateRoutes.d.ts +0 -3
  271. package/dist/lib/plugins/markdown/generateRoutes.js +0 -21
  272. package/dist/lib/plugins/markdown/generateRoutes.js.map +0 -1
  273. package/dist/lib/plugins/openapi/playground/Editor.d.ts +0 -1
  274. package/dist/lib/plugins/openapi/playground/Editor.js +0 -5
  275. package/dist/lib/plugins/openapi/playground/Editor.js.map +0 -1
  276. package/dist/lib/plugins/openapi/util/urql.d.ts +0 -7
  277. package/dist/lib/plugins/openapi/util/urql.js +0 -8
  278. package/dist/lib/plugins/openapi/util/urql.js.map +0 -1
  279. package/dist/lib/util/slugify.d.ts +0 -2
  280. package/dist/lib/util/slugify.js +0 -3
  281. package/dist/lib/util/slugify.js.map +0 -1
  282. package/dist/vite/plugin-icons.d.ts +0 -3
  283. package/dist/vite/plugin-icons.js +0 -47
  284. package/dist/vite/plugin-icons.js.map +0 -1
  285. package/lib/ErrorPage-knunPbKI.js +0 -18
  286. package/lib/ErrorPage-knunPbKI.js.map +0 -1
  287. package/lib/Input-B1kkVL1R.js +0 -2198
  288. package/lib/Input-B1kkVL1R.js.map +0 -1
  289. package/lib/Markdown-B4aR03g6.js.map +0 -1
  290. package/lib/MdxPage-BcftTg5g.js.map +0 -1
  291. package/lib/OperationList-Da36LrGl.js.map +0 -1
  292. package/lib/Route-CWj1ECzh.js.map +0 -1
  293. package/lib/SidebarBadge-DdvT2qep.js +0 -498
  294. package/lib/SidebarBadge-DdvT2qep.js.map +0 -1
  295. package/lib/ZudokuContext-em1gHkIY.js +0 -1084
  296. package/lib/ZudokuContext-em1gHkIY.js.map +0 -1
  297. package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
  298. package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
  299. package/lib/assets/index-B9EWVYfo.js.map +0 -1
  300. package/lib/assets/worker-TYRbYl6N.js.map +0 -1
  301. package/lib/index-BG0g4WW0.js.map +0 -1
  302. package/lib/index-BoXX7LeD.js.map +0 -1
  303. package/lib/index-CLd8ycZz.js.map +0 -1
  304. package/lib/index-DIkaYL-l.js.map +0 -1
  305. package/lib/router-D2p7Olpn.js +0 -2971
  306. package/lib/router-D2p7Olpn.js.map +0 -1
  307. package/lib/slugify-DbLhpSPt.js +0 -28
  308. package/lib/slugify-DbLhpSPt.js.map +0 -1
  309. package/lib/state-BUM4jc0J.js +0 -288
  310. package/lib/state-BUM4jc0J.js.map +0 -1
  311. package/lib/urql-YhcsXYy8.js +0 -1591
  312. package/lib/urql-YhcsXYy8.js.map +0 -1
  313. package/lib/utils-DtEHoAvg.js.map +0 -1
  314. package/lib/zudoku.plugin-custom-page.js.map +0 -1
  315. package/src/lib/plugins/markdown/generateRoutes.tsx +0 -38
  316. package/src/lib/plugins/openapi/playground/Editor.tsx +0 -4
  317. package/src/lib/plugins/openapi/util/urql.ts +0 -8
  318. package/src/lib/util/slugify.ts +0 -3
@@ -1,31 +1,30 @@
1
- var le = Object.defineProperty;
2
- var ce = (e, t, r) => t in e ? le(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var T = (e, t, r) => ce(e, typeof t != "symbol" ? t + "" : t, r);
4
- import h, { Component as U } from "react";
5
- import { g as q } from "./_commonjsHelpers-BkfeUUK-.js";
6
- import { j as ue } from "./jsx-runtime-B6kdoens.js";
7
- import { b as k, L as fe } from "./index-BG0g4WW0.js";
8
- import { e as K, u as Q } from "./ZudokuContext-em1gHkIY.js";
9
- const _ = {}, N = h.createContext(_);
10
- function de(e) {
11
- const t = h.useContext(N);
12
- return h.useMemo(
1
+ var re = Object.defineProperty;
2
+ var ne = (e, t, r) => t in e ? re(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var T = (e, t, r) => ne(e, typeof t != "symbol" ? t + "" : t, r);
4
+ import d, { Component as L } from "react";
5
+ import { g as F } from "./index-DJqnphbT.js";
6
+ import { j as se } from "./jsx-runtime-B6kdoens.js";
7
+ import { b as oe, L as ie } from "./index-SrtqdZ3j.js";
8
+ const k = {}, X = d.createContext(k);
9
+ function ae(e) {
10
+ const t = d.useContext(X);
11
+ return d.useMemo(
13
12
  function() {
14
13
  return typeof e == "function" ? e(t) : { ...t, ...e };
15
14
  },
16
15
  [t, e]
17
16
  );
18
17
  }
19
- function Ze(e) {
18
+ function Ke(e) {
20
19
  let t;
21
- return e.disableParentContext ? t = typeof e.components == "function" ? e.components(_) : e.components || _ : t = de(e.components), h.createElement(
22
- N.Provider,
20
+ return e.disableParentContext ? t = typeof e.components == "function" ? e.components(k) : e.components || k : t = ae(e.components), d.createElement(
21
+ X.Provider,
23
22
  { value: t },
24
23
  e.children
25
24
  );
26
25
  }
27
- var pe = typeof Element < "u", he = typeof Map == "function", me = typeof Set == "function", ye = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
28
- function P(e, t) {
26
+ var le = typeof Element < "u", ce = typeof Map == "function", ue = typeof Set == "function", fe = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
27
+ function x(e, t) {
29
28
  if (e === t) return !0;
30
29
  if (e && t && typeof e == "object" && typeof t == "object") {
31
30
  if (e.constructor !== t.constructor) return !1;
@@ -33,25 +32,25 @@ function P(e, t) {
33
32
  if (Array.isArray(e)) {
34
33
  if (r = e.length, r != t.length) return !1;
35
34
  for (n = r; n-- !== 0; )
36
- if (!P(e[n], t[n])) return !1;
35
+ if (!x(e[n], t[n])) return !1;
37
36
  return !0;
38
37
  }
39
38
  var o;
40
- if (he && e instanceof Map && t instanceof Map) {
39
+ if (ce && e instanceof Map && t instanceof Map) {
41
40
  if (e.size !== t.size) return !1;
42
41
  for (o = e.entries(); !(n = o.next()).done; )
43
42
  if (!t.has(n.value[0])) return !1;
44
43
  for (o = e.entries(); !(n = o.next()).done; )
45
- if (!P(n.value[1], t.get(n.value[0]))) return !1;
44
+ if (!x(n.value[1], t.get(n.value[0]))) return !1;
46
45
  return !0;
47
46
  }
48
- if (me && e instanceof Set && t instanceof Set) {
47
+ if (ue && e instanceof Set && t instanceof Set) {
49
48
  if (e.size !== t.size) return !1;
50
49
  for (o = e.entries(); !(n = o.next()).done; )
51
50
  if (!t.has(n.value[0])) return !1;
52
51
  return !0;
53
52
  }
54
- if (ye && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
53
+ if (fe && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
55
54
  if (r = e.length, r != t.length) return !1;
56
55
  for (n = r; n-- !== 0; )
57
56
  if (e[n] !== t[n]) return !1;
@@ -63,46 +62,46 @@ function P(e, t) {
63
62
  if (s = Object.keys(e), r = s.length, r !== Object.keys(t).length) return !1;
64
63
  for (n = r; n-- !== 0; )
65
64
  if (!Object.prototype.hasOwnProperty.call(t, s[n])) return !1;
66
- if (pe && e instanceof Element) return !1;
65
+ if (le && e instanceof Element) return !1;
67
66
  for (n = r; n-- !== 0; )
68
- if (!((s[n] === "_owner" || s[n] === "__v" || s[n] === "__o") && e.$$typeof) && !P(e[s[n]], t[s[n]]))
67
+ if (!((s[n] === "_owner" || s[n] === "__v" || s[n] === "__o") && e.$$typeof) && !x(e[s[n]], t[s[n]]))
69
68
  return !1;
70
69
  return !0;
71
70
  }
72
71
  return e !== e && t !== t;
73
72
  }
74
- var Te = function(t, r) {
73
+ var pe = function(t, r) {
75
74
  try {
76
- return P(t, r);
75
+ return x(t, r);
77
76
  } catch (n) {
78
77
  if ((n.message || "").match(/stack|recursion/i))
79
78
  return console.warn("react-fast-compare cannot handle circular refs"), !1;
80
79
  throw n;
81
80
  }
82
81
  };
83
- const ge = /* @__PURE__ */ q(Te);
84
- var ve = function(e, t, r, n, s, o, c, i) {
82
+ const me = /* @__PURE__ */ F(pe);
83
+ var de = function(e, t, r, n, s, o, c, i) {
85
84
  if (process.env.NODE_ENV !== "production" && t === void 0)
86
85
  throw new Error("invariant requires an error message argument");
87
86
  if (!e) {
88
- var a;
87
+ var l;
89
88
  if (t === void 0)
90
- a = new Error(
89
+ l = new Error(
91
90
  "Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
92
91
  );
93
92
  else {
94
- var l = [r, n, s, o, c, i], u = 0;
95
- a = new Error(
93
+ var a = [r, n, s, o, c, i], u = 0;
94
+ l = new Error(
96
95
  t.replace(/%s/g, function() {
97
- return l[u++];
96
+ return a[u++];
98
97
  })
99
- ), a.name = "Invariant Violation";
98
+ ), l.name = "Invariant Violation";
100
99
  }
101
- throw a.framesToPop = 1, a;
100
+ throw l.framesToPop = 1, l;
102
101
  }
103
- }, Ae = ve;
104
- const X = /* @__PURE__ */ q(Ae);
105
- var be = function(t, r, n, s) {
102
+ }, he = de;
103
+ const z = /* @__PURE__ */ F(he);
104
+ var ye = function(t, r, n, s) {
106
105
  var o = n ? n.call(s, t, r) : void 0;
107
106
  if (o !== void 0)
108
107
  return !!o;
@@ -113,18 +112,18 @@ var be = function(t, r, n, s) {
113
112
  var c = Object.keys(t), i = Object.keys(r);
114
113
  if (c.length !== i.length)
115
114
  return !1;
116
- for (var a = Object.prototype.hasOwnProperty.bind(r), l = 0; l < c.length; l++) {
117
- var u = c[l];
118
- if (!a(u))
115
+ for (var l = Object.prototype.hasOwnProperty.bind(r), a = 0; a < c.length; a++) {
116
+ var u = c[a];
117
+ if (!l(u))
119
118
  return !1;
120
- var f = t[u], m = r[u];
121
- if (o = n ? n.call(s, f, m, u) : void 0, o === !1 || o === void 0 && f !== m)
119
+ var f = t[u], h = r[u];
120
+ if (o = n ? n.call(s, f, h, u) : void 0, o === !1 || o === void 0 && f !== h)
122
121
  return !1;
123
122
  }
124
123
  return !0;
125
124
  };
126
- const Ce = /* @__PURE__ */ q(be);
127
- var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "head", e.HTML = "html", e.LINK = "link", e.META = "meta", e.NOSCRIPT = "noscript", e.SCRIPT = "script", e.STYLE = "style", e.TITLE = "title", e.FRAGMENT = "Symbol(react.fragment)", e))(ee || {}), D = {
125
+ const Te = /* @__PURE__ */ F(ye);
126
+ var W = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "head", e.HTML = "html", e.LINK = "link", e.META = "meta", e.NOSCRIPT = "noscript", e.SCRIPT = "script", e.STYLE = "style", e.TITLE = "title", e.FRAGMENT = "Symbol(react.fragment)", e))(W || {}), I = {
128
127
  link: { rel: ["amphtml", "canonical", "alternate"] },
129
128
  script: { type: ["application/ld+json"] },
130
129
  meta: {
@@ -146,7 +145,7 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
146
145
  "twitter:site"
147
146
  ]
148
147
  }
149
- }, Z = Object.values(ee), z = {
148
+ }, N = Object.values(W), U = {
150
149
  accesskey: "accessKey",
151
150
  charset: "charSet",
152
151
  class: "className",
@@ -155,36 +154,36 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
155
154
  "http-equiv": "httpEquiv",
156
155
  itemprop: "itemProp",
157
156
  tabindex: "tabIndex"
158
- }, Ee = Object.entries(z).reduce(
157
+ }, ge = Object.entries(U).reduce(
159
158
  (e, [t, r]) => (e[r] = t, e),
160
159
  {}
161
- ), y = "data-rh", b = {
160
+ ), y = "data-rh", C = {
162
161
  DEFAULT_TITLE: "defaultTitle",
163
162
  DEFER: "defer",
164
163
  ENCODE_SPECIAL_CHARACTERS: "encodeSpecialCharacters",
165
164
  ON_CHANGE_CLIENT_STATE: "onChangeClientState",
166
165
  TITLE_TEMPLATE: "titleTemplate",
167
166
  PRIORITIZE_SEO_TAGS: "prioritizeSeoTags"
168
- }, C = (e, t) => {
167
+ }, E = (e, t) => {
169
168
  for (let r = e.length - 1; r >= 0; r -= 1) {
170
169
  const n = e[r];
171
170
  if (Object.prototype.hasOwnProperty.call(n, t))
172
171
  return n[t];
173
172
  }
174
173
  return null;
175
- }, Oe = (e) => {
176
- let t = C(
174
+ }, ve = (e) => {
175
+ let t = E(
177
176
  e,
178
177
  "title"
179
178
  /* TITLE */
180
179
  );
181
- const r = C(e, b.TITLE_TEMPLATE);
180
+ const r = E(e, C.TITLE_TEMPLATE);
182
181
  if (Array.isArray(t) && (t = t.join("")), r && t)
183
182
  return r.replace(/%s/g, () => t);
184
- const n = C(e, b.DEFAULT_TITLE);
183
+ const n = E(e, C.DEFAULT_TITLE);
185
184
  return t || n || void 0;
186
- }, Se = (e) => C(e, b.ON_CHANGE_CLIENT_STATE) || (() => {
187
- }), M = (e, t) => t.filter((r) => typeof r[e] < "u").map((r) => r[e]).reduce((r, n) => ({ ...r, ...n }), {}), we = (e, t) => t.filter((r) => typeof r.base < "u").map((r) => r.base).reverse().reduce((r, n) => {
185
+ }, Ae = (e) => E(e, C.ON_CHANGE_CLIENT_STATE) || (() => {
186
+ }), $ = (e, t) => t.filter((r) => typeof r[e] < "u").map((r) => r[e]).reduce((r, n) => ({ ...r, ...n }), {}), Ce = (e, t) => t.filter((r) => typeof r.base < "u").map((r) => r.base).reverse().reduce((r, n) => {
188
187
  if (!r.length) {
189
188
  const s = Object.keys(n);
190
189
  for (let o = 0; o < s.length; o += 1) {
@@ -194,51 +193,51 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
194
193
  }
195
194
  }
196
195
  return r;
197
- }, []), xe = (e) => console && typeof console.warn == "function" && console.warn(e), E = (e, t, r) => {
196
+ }, []), Ee = (e) => console && typeof console.warn == "function" && console.warn(e), b = (e, t, r) => {
198
197
  const n = {};
199
- return r.filter((s) => Array.isArray(s[e]) ? !0 : (typeof s[e] < "u" && xe(
198
+ return r.filter((s) => Array.isArray(s[e]) ? !0 : (typeof s[e] < "u" && Ee(
200
199
  `Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`
201
200
  ), !1)).map((s) => s[e]).reverse().reduce((s, o) => {
202
201
  const c = {};
203
- o.filter((a) => {
204
- let l;
205
- const u = Object.keys(a);
206
- for (let m = 0; m < u.length; m += 1) {
207
- const d = u[m], g = d.toLowerCase();
208
- t.indexOf(g) !== -1 && !(l === "rel" && a[l].toLowerCase() === "canonical") && !(g === "rel" && a[g].toLowerCase() === "stylesheet") && (l = g), t.indexOf(d) !== -1 && (d === "innerHTML" || d === "cssText" || d === "itemprop") && (l = d);
202
+ o.filter((l) => {
203
+ let a;
204
+ const u = Object.keys(l);
205
+ for (let h = 0; h < u.length; h += 1) {
206
+ const p = u[h], g = p.toLowerCase();
207
+ t.indexOf(g) !== -1 && !(a === "rel" && l[a].toLowerCase() === "canonical") && !(g === "rel" && l[g].toLowerCase() === "stylesheet") && (a = g), t.indexOf(p) !== -1 && (p === "innerHTML" || p === "cssText" || p === "itemprop") && (a = p);
209
208
  }
210
- if (!l || !a[l])
209
+ if (!a || !l[a])
211
210
  return !1;
212
- const f = a[l].toLowerCase();
213
- return n[l] || (n[l] = {}), c[l] || (c[l] = {}), n[l][f] ? !1 : (c[l][f] = !0, !0);
214
- }).reverse().forEach((a) => s.push(a));
211
+ const f = l[a].toLowerCase();
212
+ return n[a] || (n[a] = {}), c[a] || (c[a] = {}), n[a][f] ? !1 : (c[a][f] = !0, !0);
213
+ }).reverse().forEach((l) => s.push(l));
215
214
  const i = Object.keys(c);
216
- for (let a = 0; a < i.length; a += 1) {
217
- const l = i[a], u = {
218
- ...n[l],
219
- ...c[l]
215
+ for (let l = 0; l < i.length; l += 1) {
216
+ const a = i[l], u = {
217
+ ...n[a],
218
+ ...c[a]
220
219
  };
221
- n[l] = u;
220
+ n[a] = u;
222
221
  }
223
222
  return s;
224
223
  }, []).reverse();
225
- }, Pe = (e, t) => {
224
+ }, be = (e, t) => {
226
225
  if (Array.isArray(e) && e.length) {
227
226
  for (let r = 0; r < e.length; r += 1)
228
227
  if (e[r][t])
229
228
  return !0;
230
229
  }
231
230
  return !1;
232
- }, $e = (e) => ({
233
- baseTag: we([
231
+ }, Oe = (e) => ({
232
+ baseTag: Ce([
234
233
  "href"
235
234
  /* HREF */
236
235
  ], e),
237
- bodyAttributes: M("bodyAttributes", e),
238
- defer: C(e, b.DEFER),
239
- encode: C(e, b.ENCODE_SPECIAL_CHARACTERS),
240
- htmlAttributes: M("htmlAttributes", e),
241
- linkTags: E(
236
+ bodyAttributes: $("bodyAttributes", e),
237
+ defer: E(e, C.DEFER),
238
+ encode: E(e, C.ENCODE_SPECIAL_CHARACTERS),
239
+ htmlAttributes: $("htmlAttributes", e),
240
+ linkTags: b(
242
241
  "link",
243
242
  [
244
243
  "rel",
@@ -247,7 +246,7 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
247
246
  ],
248
247
  e
249
248
  ),
250
- metaTags: E(
249
+ metaTags: b(
251
250
  "meta",
252
251
  [
253
252
  "name",
@@ -259,12 +258,12 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
259
258
  ],
260
259
  e
261
260
  ),
262
- noscriptTags: E("noscript", [
261
+ noscriptTags: b("noscript", [
263
262
  "innerHTML"
264
263
  /* INNER_HTML */
265
264
  ], e),
266
- onChangeClientState: Se(e),
267
- scriptTags: E(
265
+ onChangeClientState: Ae(e),
266
+ scriptTags: b(
268
267
  "script",
269
268
  [
270
269
  "src",
@@ -273,114 +272,114 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
273
272
  ],
274
273
  e
275
274
  ),
276
- styleTags: E("style", [
275
+ styleTags: b("style", [
277
276
  "cssText"
278
277
  /* CSS_TEXT */
279
278
  ], e),
280
- title: Oe(e),
281
- titleAttributes: M("titleAttributes", e),
282
- prioritizeSeoTags: Pe(e, b.PRIORITIZE_SEO_TAGS)
283
- }), te = (e) => Array.isArray(e) ? e.join("") : e, ke = (e, t) => {
279
+ title: ve(e),
280
+ titleAttributes: $("titleAttributes", e),
281
+ prioritizeSeoTags: be(e, C.PRIORITIZE_SEO_TAGS)
282
+ }), Z = (e) => Array.isArray(e) ? e.join("") : e, Se = (e, t) => {
284
283
  const r = Object.keys(e);
285
284
  for (let n = 0; n < r.length; n += 1)
286
285
  if (t[r[n]] && t[r[n]].includes(e[r[n]]))
287
286
  return !0;
288
287
  return !1;
289
- }, I = (e, t) => Array.isArray(e) ? e.reduce(
290
- (r, n) => (ke(n, t) ? r.priority.push(n) : r.default.push(n), r),
288
+ }, D = (e, t) => Array.isArray(e) ? e.reduce(
289
+ (r, n) => (Se(n, t) ? r.priority.push(n) : r.default.push(n), r),
291
290
  { priority: [], default: [] }
292
- ) : { default: e, priority: [] }, W = (e, t) => ({
291
+ ) : { default: e, priority: [] }, V = (e, t) => ({
293
292
  ...e,
294
293
  [t]: void 0
295
- }), De = [
294
+ }), we = [
296
295
  "noscript",
297
296
  "script",
298
297
  "style"
299
298
  /* STYLE */
300
- ], j = (e, t = !0) => t === !1 ? String(e) : String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;"), re = (e) => Object.keys(e).reduce((t, r) => {
299
+ ], H = (e, t = !0) => t === !1 ? String(e) : String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;"), G = (e) => Object.keys(e).reduce((t, r) => {
301
300
  const n = typeof e[r] < "u" ? `${r}="${e[r]}"` : `${r}`;
302
301
  return t ? `${t} ${n}` : n;
303
- }, ""), Me = (e, t, r, n) => {
304
- const s = re(r), o = te(t);
305
- return s ? `<${e} ${y}="true" ${s}>${j(
302
+ }, ""), xe = (e, t, r, n) => {
303
+ const s = G(r), o = Z(t);
304
+ return s ? `<${e} ${y}="true" ${s}>${H(
306
305
  o,
307
306
  n
308
- )}</${e}>` : `<${e} ${y}="true">${j(
307
+ )}</${e}>` : `<${e} ${y}="true">${H(
309
308
  o,
310
309
  n
311
310
  )}</${e}>`;
312
- }, Ie = (e, t, r = !0) => t.reduce((n, s) => {
311
+ }, Pe = (e, t, r = !0) => t.reduce((n, s) => {
313
312
  const o = s, c = Object.keys(o).filter(
314
- (l) => !(l === "innerHTML" || l === "cssText")
315
- ).reduce((l, u) => {
316
- const f = typeof o[u] > "u" ? u : `${u}="${j(o[u], r)}"`;
317
- return l ? `${l} ${f}` : f;
318
- }, ""), i = o.innerHTML || o.cssText || "", a = De.indexOf(e) === -1;
319
- return `${n}<${e} ${y}="true" ${c}${a ? "/>" : `>${i}</${e}>`}`;
320
- }, ""), ne = (e, t = {}) => Object.keys(e).reduce((r, n) => {
321
- const s = z[n];
313
+ (a) => !(a === "innerHTML" || a === "cssText")
314
+ ).reduce((a, u) => {
315
+ const f = typeof o[u] > "u" ? u : `${u}="${H(o[u], r)}"`;
316
+ return a ? `${a} ${f}` : f;
317
+ }, ""), i = o.innerHTML || o.cssText || "", l = we.indexOf(e) === -1;
318
+ return `${n}<${e} ${y}="true" ${c}${l ? "/>" : `>${i}</${e}>`}`;
319
+ }, ""), J = (e, t = {}) => Object.keys(e).reduce((r, n) => {
320
+ const s = U[n];
322
321
  return r[s || n] = e[n], r;
323
- }, t), He = (e, t, r) => {
322
+ }, t), Ie = (e, t, r) => {
324
323
  const n = {
325
324
  key: t,
326
325
  [y]: !0
327
- }, s = ne(r, n);
328
- return [h.createElement("title", s, t)];
329
- }, $ = (e, t) => t.map((r, n) => {
326
+ }, s = J(r, n);
327
+ return [d.createElement("title", s, t)];
328
+ }, P = (e, t) => t.map((r, n) => {
330
329
  const s = {
331
330
  key: n,
332
331
  [y]: !0
333
332
  };
334
333
  return Object.keys(r).forEach((o) => {
335
- const i = z[o] || o;
334
+ const i = U[o] || o;
336
335
  if (i === "innerHTML" || i === "cssText") {
337
- const a = r.innerHTML || r.cssText;
338
- s.dangerouslySetInnerHTML = { __html: a };
336
+ const l = r.innerHTML || r.cssText;
337
+ s.dangerouslySetInnerHTML = { __html: l };
339
338
  } else
340
339
  s[i] = r[o];
341
- }), h.createElement(e, s);
342
- }), p = (e, t, r = !0) => {
340
+ }), d.createElement(e, s);
341
+ }), m = (e, t, r = !0) => {
343
342
  switch (e) {
344
343
  case "title":
345
344
  return {
346
- toComponent: () => He(e, t.title, t.titleAttributes),
347
- toString: () => Me(e, t.title, t.titleAttributes, r)
345
+ toComponent: () => Ie(e, t.title, t.titleAttributes),
346
+ toString: () => xe(e, t.title, t.titleAttributes, r)
348
347
  };
349
348
  case "bodyAttributes":
350
349
  case "htmlAttributes":
351
350
  return {
352
- toComponent: () => ne(t),
353
- toString: () => re(t)
351
+ toComponent: () => J(t),
352
+ toString: () => G(t)
354
353
  };
355
354
  default:
356
355
  return {
357
- toComponent: () => $(e, t),
358
- toString: () => Ie(e, t, r)
356
+ toComponent: () => P(e, t),
357
+ toString: () => Pe(e, t, r)
359
358
  };
360
359
  }
361
- }, _e = ({ metaTags: e, linkTags: t, scriptTags: r, encode: n }) => {
362
- const s = I(e, D.meta), o = I(t, D.link), c = I(r, D.script);
360
+ }, $e = ({ metaTags: e, linkTags: t, scriptTags: r, encode: n }) => {
361
+ const s = D(e, I.meta), o = D(t, I.link), c = D(r, I.script);
363
362
  return {
364
363
  priorityMethods: {
365
364
  toComponent: () => [
366
- ...$("meta", s.priority),
367
- ...$("link", o.priority),
368
- ...$("script", c.priority)
365
+ ...P("meta", s.priority),
366
+ ...P("link", o.priority),
367
+ ...P("script", c.priority)
369
368
  ],
370
369
  toString: () => (
371
370
  // generate all the tags as strings and concatenate them
372
- `${p("meta", s.priority, n)} ${p(
371
+ `${m("meta", s.priority, n)} ${m(
373
372
  "link",
374
373
  o.priority,
375
374
  n
376
- )} ${p("script", c.priority, n)}`
375
+ )} ${m("script", c.priority, n)}`
377
376
  )
378
377
  },
379
378
  metaTags: s.default,
380
379
  linkTags: o.default,
381
380
  scriptTags: c.default
382
381
  };
383
- }, je = (e) => {
382
+ }, De = (e) => {
384
383
  const {
385
384
  baseTag: t,
386
385
  bodyAttributes: r,
@@ -389,47 +388,47 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
389
388
  noscriptTags: o,
390
389
  styleTags: c,
391
390
  title: i = "",
392
- titleAttributes: a,
393
- prioritizeSeoTags: l
391
+ titleAttributes: l,
392
+ prioritizeSeoTags: a
394
393
  } = e;
395
- let { linkTags: u, metaTags: f, scriptTags: m } = e, d = {
394
+ let { linkTags: u, metaTags: f, scriptTags: h } = e, p = {
396
395
  toComponent: () => {
397
396
  },
398
397
  toString: () => ""
399
398
  };
400
- return l && ({ priorityMethods: d, linkTags: u, metaTags: f, scriptTags: m } = _e(e)), {
401
- priority: d,
402
- base: p("base", t, n),
403
- bodyAttributes: p("bodyAttributes", r, n),
404
- htmlAttributes: p("htmlAttributes", s, n),
405
- link: p("link", u, n),
406
- meta: p("meta", f, n),
407
- noscript: p("noscript", o, n),
408
- script: p("script", m, n),
409
- style: p("style", c, n),
410
- title: p("title", { title: i, titleAttributes: a }, n)
399
+ return a && ({ priorityMethods: p, linkTags: u, metaTags: f, scriptTags: h } = $e(e)), {
400
+ priority: p,
401
+ base: m("base", t, n),
402
+ bodyAttributes: m("bodyAttributes", r, n),
403
+ htmlAttributes: m("htmlAttributes", s, n),
404
+ link: m("link", u, n),
405
+ meta: m("meta", f, n),
406
+ noscript: m("noscript", o, n),
407
+ script: m("script", h, n),
408
+ style: m("style", c, n),
409
+ title: m("title", { title: i, titleAttributes: l }, n)
411
410
  };
412
- }, R = je, x = [], se = !!(typeof window < "u" && window.document && window.document.createElement), L = class {
411
+ }, _ = De, w = [], Q = !!(typeof window < "u" && window.document && window.document.createElement), R = class {
413
412
  constructor(e, t) {
414
413
  T(this, "instances", []);
415
- T(this, "canUseDOM", se);
414
+ T(this, "canUseDOM", Q);
416
415
  T(this, "context");
417
416
  T(this, "value", {
418
417
  setHelmet: (e) => {
419
418
  this.context.helmet = e;
420
419
  },
421
420
  helmetInstances: {
422
- get: () => this.canUseDOM ? x : this.instances,
421
+ get: () => this.canUseDOM ? w : this.instances,
423
422
  add: (e) => {
424
- (this.canUseDOM ? x : this.instances).push(e);
423
+ (this.canUseDOM ? w : this.instances).push(e);
425
424
  },
426
425
  remove: (e) => {
427
- const t = (this.canUseDOM ? x : this.instances).indexOf(e);
428
- (this.canUseDOM ? x : this.instances).splice(t, 1);
426
+ const t = (this.canUseDOM ? w : this.instances).indexOf(e);
427
+ (this.canUseDOM ? w : this.instances).splice(t, 1);
429
428
  }
430
429
  }
431
430
  });
432
- this.context = e, this.canUseDOM = t || !1, t || (e.helmet = R({
431
+ this.context = e, this.canUseDOM = t || !1, t || (e.helmet = _({
433
432
  baseTag: [],
434
433
  bodyAttributes: {},
435
434
  encodeSpecialCharacters: !0,
@@ -443,58 +442,58 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
443
442
  titleAttributes: {}
444
443
  }));
445
444
  }
446
- }, Re = {}, oe = h.createContext(Re), v, Le = (v = class extends U {
445
+ }, Me = {}, ee = d.createContext(Me), v, ke = (v = class extends L {
447
446
  constructor(r) {
448
447
  super(r);
449
448
  T(this, "helmetData");
450
- this.helmetData = new L(this.props.context || {}, v.canUseDOM);
449
+ this.helmetData = new R(this.props.context || {}, v.canUseDOM);
451
450
  }
452
451
  render() {
453
- return /* @__PURE__ */ h.createElement(oe.Provider, { value: this.helmetData.value }, this.props.children);
452
+ return /* @__PURE__ */ d.createElement(ee.Provider, { value: this.helmetData.value }, this.props.children);
454
453
  }
455
- }, T(v, "canUseDOM", se), v), A = (e, t) => {
454
+ }, T(v, "canUseDOM", Q), v), A = (e, t) => {
456
455
  const r = document.head || document.querySelector(
457
456
  "head"
458
457
  /* HEAD */
459
458
  ), n = r.querySelectorAll(`${e}[${y}]`), s = [].slice.call(n), o = [];
460
459
  let c;
461
460
  return t && t.length && t.forEach((i) => {
462
- const a = document.createElement(e);
463
- for (const l in i)
464
- if (Object.prototype.hasOwnProperty.call(i, l))
465
- if (l === "innerHTML")
466
- a.innerHTML = i.innerHTML;
467
- else if (l === "cssText")
468
- a.styleSheet ? a.styleSheet.cssText = i.cssText : a.appendChild(document.createTextNode(i.cssText));
461
+ const l = document.createElement(e);
462
+ for (const a in i)
463
+ if (Object.prototype.hasOwnProperty.call(i, a))
464
+ if (a === "innerHTML")
465
+ l.innerHTML = i.innerHTML;
466
+ else if (a === "cssText")
467
+ l.styleSheet ? l.styleSheet.cssText = i.cssText : l.appendChild(document.createTextNode(i.cssText));
469
468
  else {
470
- const u = l, f = typeof i[u] > "u" ? "" : i[u];
471
- a.setAttribute(l, f);
469
+ const u = a, f = typeof i[u] > "u" ? "" : i[u];
470
+ l.setAttribute(a, f);
472
471
  }
473
- a.setAttribute(y, "true"), s.some((l, u) => (c = u, a.isEqualNode(l))) ? s.splice(c, 1) : o.push(a);
472
+ l.setAttribute(y, "true"), s.some((a, u) => (c = u, l.isEqualNode(a))) ? s.splice(c, 1) : o.push(l);
474
473
  }), s.forEach((i) => {
475
- var a;
476
- return (a = i.parentNode) == null ? void 0 : a.removeChild(i);
474
+ var l;
475
+ return (l = i.parentNode) == null ? void 0 : l.removeChild(i);
477
476
  }), o.forEach((i) => r.appendChild(i)), {
478
477
  oldTags: s,
479
478
  newTags: o
480
479
  };
481
- }, F = (e, t) => {
480
+ }, j = (e, t) => {
482
481
  const r = document.getElementsByTagName(e)[0];
483
482
  if (!r)
484
483
  return;
485
484
  const n = r.getAttribute(y), s = n ? n.split(",") : [], o = [...s], c = Object.keys(t);
486
485
  for (const i of c) {
487
- const a = t[i] || "";
488
- r.getAttribute(i) !== a && r.setAttribute(i, a), s.indexOf(i) === -1 && s.push(i);
489
- const l = o.indexOf(i);
490
- l !== -1 && o.splice(l, 1);
486
+ const l = t[i] || "";
487
+ r.getAttribute(i) !== l && r.setAttribute(i, l), s.indexOf(i) === -1 && s.push(i);
488
+ const a = o.indexOf(i);
489
+ a !== -1 && o.splice(a, 1);
491
490
  }
492
491
  for (let i = o.length - 1; i >= 0; i -= 1)
493
492
  r.removeAttribute(o[i]);
494
493
  s.length === o.length ? r.removeAttribute(y) : r.getAttribute(y) !== c.join(",") && r.setAttribute(y, c.join(","));
495
- }, Fe = (e, t) => {
496
- typeof e < "u" && document.title !== e && (document.title = te(e)), F("title", t);
497
- }, G = (e, t) => {
494
+ }, He = (e, t) => {
495
+ typeof e < "u" && document.title !== e && (document.title = Z(e)), j("title", t);
496
+ }, Y = (e, t) => {
498
497
  const {
499
498
  baseTag: r,
500
499
  bodyAttributes: n,
@@ -502,38 +501,38 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
502
501
  linkTags: o,
503
502
  metaTags: c,
504
503
  noscriptTags: i,
505
- onChangeClientState: a,
506
- scriptTags: l,
504
+ onChangeClientState: l,
505
+ scriptTags: a,
507
506
  styleTags: u,
508
507
  title: f,
509
- titleAttributes: m
508
+ titleAttributes: h
510
509
  } = e;
511
- F("body", n), F("html", s), Fe(f, m);
512
- const d = {
510
+ j("body", n), j("html", s), He(f, h);
511
+ const p = {
513
512
  baseTag: A("base", r),
514
513
  linkTags: A("link", o),
515
514
  metaTags: A("meta", c),
516
515
  noscriptTags: A("noscript", i),
517
- scriptTags: A("script", l),
516
+ scriptTags: A("script", a),
518
517
  styleTags: A("style", u)
519
- }, g = {}, B = {};
520
- Object.keys(d).forEach((w) => {
521
- const { newTags: Y, oldTags: ae } = d[w];
522
- Y.length && (g[w] = Y), ae.length && (B[w] = d[w].oldTags);
523
- }), t && t(), a(e, g, B);
524
- }, O = null, Ue = (e) => {
518
+ }, g = {}, q = {};
519
+ Object.keys(p).forEach((S) => {
520
+ const { newTags: K, oldTags: te } = p[S];
521
+ K.length && (g[S] = K), te.length && (q[S] = p[S].oldTags);
522
+ }), t && t(), l(e, g, q);
523
+ }, O = null, _e = (e) => {
525
524
  O && cancelAnimationFrame(O), e.defer ? O = requestAnimationFrame(() => {
526
- G(e, () => {
525
+ Y(e, () => {
527
526
  O = null;
528
527
  });
529
- }) : (G(e), O = null);
530
- }, qe = Ue, J = class extends U {
528
+ }) : (Y(e), O = null);
529
+ }, Re = _e, B = class extends L {
531
530
  constructor() {
532
531
  super(...arguments);
533
532
  T(this, "rendered", !1);
534
533
  }
535
534
  shouldComponentUpdate(t) {
536
- return !Ce(t, this.props);
535
+ return !Te(t, this.props);
537
536
  }
538
537
  componentDidUpdate() {
539
538
  this.emitChange();
@@ -545,13 +544,13 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
545
544
  emitChange() {
546
545
  const { helmetInstances: t, setHelmet: r } = this.props.context;
547
546
  let n = null;
548
- const s = $e(
547
+ const s = Oe(
549
548
  t.get().map((o) => {
550
549
  const c = { ...o.props };
551
550
  return delete c.context, c;
552
551
  })
553
552
  );
554
- Le.canUseDOM ? qe(s) : R && (n = R(s)), r(n);
553
+ ke.canUseDOM ? Re(s) : _ && (n = _(s)), r(n);
555
554
  }
556
555
  // componentWillMount will be deprecated
557
556
  // for SSR, initialize on first render
@@ -566,9 +565,9 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
566
565
  render() {
567
566
  return this.init(), null;
568
567
  }
569
- }, H, We = (H = class extends U {
568
+ }, M, ze = (M = class extends L {
570
569
  shouldComponentUpdate(e) {
571
- return !ge(W(this.props, "helmetData"), W(e, "helmetData"));
570
+ return !me(V(this.props, "helmetData"), V(e, "helmetData"));
572
571
  }
573
572
  mapNestedChildrenToProps(e, t) {
574
573
  if (!t)
@@ -636,22 +635,22 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
636
635
  }), r;
637
636
  }
638
637
  warnOnInvalidChildren(e, t) {
639
- return X(
640
- Z.some((r) => e.type === r),
641
- typeof e.type == "function" ? "You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information." : `Only elements types ${Z.join(
638
+ return z(
639
+ N.some((r) => e.type === r),
640
+ typeof e.type == "function" ? "You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information." : `Only elements types ${N.join(
642
641
  ", "
643
642
  )} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`
644
- ), X(
643
+ ), z(
645
644
  !t || typeof t == "string" || Array.isArray(t) && !t.some((r) => typeof r != "string"),
646
645
  `Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`
647
646
  ), !0;
648
647
  }
649
648
  mapChildrenToProps(e, t) {
650
649
  let r = {};
651
- return h.Children.forEach(e, (n) => {
650
+ return d.Children.forEach(e, (n) => {
652
651
  if (!n || !n.props)
653
652
  return;
654
- const { children: s, ...o } = n.props, c = Object.keys(o).reduce((a, l) => (a[Ee[l] || l] = o[l], a), {});
653
+ const { children: s, ...o } = n.props, c = Object.keys(o).reduce((l, a) => (l[ge[a] || a] = o[a], l), {});
655
654
  let { type: i } = n;
656
655
  switch (typeof i == "symbol" ? i = i.toString() : this.warnOnInvalidChildren(n, s), i) {
657
656
  case "Symbol(react.fragment)":
@@ -678,75 +677,29 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
678
677
  render() {
679
678
  const { children: e, ...t } = this.props;
680
679
  let r = { ...t }, { helmetData: n } = t;
681
- if (e && (r = this.mapChildrenToProps(e, r)), n && !(n instanceof L)) {
680
+ if (e && (r = this.mapChildrenToProps(e, r)), n && !(n instanceof R)) {
682
681
  const s = n;
683
- n = new L(s.context, !0), delete r.helmetData;
682
+ n = new R(s.context, !0), delete r.helmetData;
684
683
  }
685
- return n ? /* @__PURE__ */ h.createElement(J, { ...r, context: n.value }) : /* @__PURE__ */ h.createElement(oe.Consumer, null, (s) => /* @__PURE__ */ h.createElement(J, { ...r, context: s }));
684
+ return n ? /* @__PURE__ */ d.createElement(B, { ...r, context: n.value }) : /* @__PURE__ */ d.createElement(ee.Consumer, null, (s) => /* @__PURE__ */ d.createElement(B, { ...r, context: s }));
686
685
  }
687
- }, T(H, "defaultProps", {
686
+ }, T(M, "defaultProps", {
688
687
  defer: !0,
689
688
  encodeSpecialCharacters: !0,
690
689
  prioritizeSeoTags: !1
691
- }), H);
692
- const S = (...e) => {
693
- const t = e.filter((r) => !!r).map((r) => r.replace(/(^\/+|\/+$)/g, "")).join("/").replace(/(^\/+|\/+$)/g, "");
694
- return t ? `/${t}` : "/";
695
- }, Ge = (e) => {
696
- const t = k(), r = typeof e.to == "string" ? e.to : e.to.hash, n = (s) => {
690
+ }), M);
691
+ const Ne = (e) => {
692
+ const t = oe(), r = typeof e.to == "string" ? e.to : e.to.hash, n = (s) => {
697
693
  var o;
698
694
  !(r != null && r.startsWith("#")) || r !== t.hash || (s.preventDefault(), (o = document.getElementById(r.slice(1))) == null || o.scrollIntoView());
699
695
  };
700
- return /* @__PURE__ */ ue.jsx(fe, { onClick: n, ...e });
701
- }, ie = (e, t) => {
702
- for (const r of e) {
703
- const n = V(r, t);
704
- if (n !== void 0) return n;
705
- }
706
- }, V = (e, t, r = []) => {
707
- const n = t(e, r);
708
- if (n !== void 0) return n;
709
- if (e.type === "category")
710
- for (const s of e.items) {
711
- const o = V(s, t, [
712
- ...r,
713
- e
714
- ]);
715
- if (o !== void 0) return o;
716
- }
717
- }, Je = () => {
718
- const e = k(), t = K(), { sidebars: r } = Q(), n = t != null && t.id ? r[t.id] : [];
719
- return ie(n, (s) => {
720
- if (s.type === "doc" && S(t == null ? void 0 : t.id, s.id) === e.pathname)
721
- return s;
722
- });
723
- }, Qe = (e) => {
724
- const t = k(), r = K();
725
- return V(e, (n) => {
726
- if (n.type === "category" && n.link && S(r == null ? void 0 : r.id, n.link.id) === t.pathname || n.type === "doc" && S(r == null ? void 0 : r.id, n.id) === t.pathname)
727
- return !0;
728
- });
729
- }, Ne = () => {
730
- const e = k().pathname, { sidebars: t } = Q(), r = K(), n = r != null && r.id ? t[r.id] : [];
731
- let s, o, c = !1;
732
- return ie(n, (i) => {
733
- const a = i.type === "doc" ? S(r == null ? void 0 : r.id, i.id) : i.type === "category" && i.link ? S(r == null ? void 0 : r.id, i.link.id) : void 0;
734
- if (a) {
735
- if (c)
736
- return o = { label: i.label, id: a }, !0;
737
- e === a ? c = !0 : s = { label: i.label, id: a };
738
- }
739
- }), { prev: s, next: o };
696
+ return /* @__PURE__ */ se.jsx(ie, { onClick: n, ...e });
740
697
  };
741
698
  export {
742
- Ge as A,
743
- We as H,
744
- Ze as M,
745
- Ne as a,
746
- de as b,
747
- Le as c,
748
- Qe as d,
749
- S as j,
750
- Je as u
699
+ Ne as A,
700
+ ze as H,
701
+ Ke as M,
702
+ ke as a,
703
+ ae as u
751
704
  };
752
- //# sourceMappingURL=utils-DtEHoAvg.js.map
705
+ //# sourceMappingURL=AnchorLink-DovtSBJk.js.map