zudoku 0.22.0 → 0.23.0

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 (335) hide show
  1. package/dist/app/demo.js +1 -1
  2. package/dist/app/demo.js.map +1 -1
  3. package/dist/app/entry.client.js +1 -15
  4. package/dist/app/entry.client.js.map +1 -1
  5. package/dist/app/entry.server.js +1 -2
  6. package/dist/app/entry.server.js.map +1 -1
  7. package/dist/app/main.d.ts +1 -1
  8. package/dist/app/sentry.js +1 -1
  9. package/dist/app/sentry.js.map +1 -1
  10. package/dist/app/standalone.js +1 -1
  11. package/dist/app/standalone.js.map +1 -1
  12. package/dist/cli/cmds/build.js +1 -0
  13. package/dist/cli/cmds/build.js.map +1 -1
  14. package/dist/config/validators/common.d.ts +104 -104
  15. package/dist/config/validators/icon-types.d.ts +1 -1
  16. package/dist/config/validators/validate.d.ts +90 -90
  17. package/dist/lib/authentication/components/CallbackHandler.js +1 -1
  18. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  19. package/dist/lib/authentication/components/SignIn.js +1 -1
  20. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  21. package/dist/lib/authentication/components/SignOut.js +1 -1
  22. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  23. package/dist/lib/components/AnchorLink.d.ts +1 -1
  24. package/dist/lib/components/AnchorLink.js +1 -1
  25. package/dist/lib/components/AnchorLink.js.map +1 -1
  26. package/dist/lib/components/Bootstrap.d.ts +1 -2
  27. package/dist/lib/components/Bootstrap.js +3 -3
  28. package/dist/lib/components/Bootstrap.js.map +1 -1
  29. package/dist/lib/components/Header.js +1 -1
  30. package/dist/lib/components/Header.js.map +1 -1
  31. package/dist/lib/components/Layout.js +1 -1
  32. package/dist/lib/components/Layout.js.map +1 -1
  33. package/dist/lib/components/NotFoundPage.js +1 -1
  34. package/dist/lib/components/NotFoundPage.js.map +1 -1
  35. package/dist/lib/components/SlotletProvider.d.ts +2 -2
  36. package/dist/lib/components/TopNavigation.js +1 -1
  37. package/dist/lib/components/TopNavigation.js.map +1 -1
  38. package/dist/lib/components/Zudoku.js +1 -1
  39. package/dist/lib/components/Zudoku.js.map +1 -1
  40. package/dist/lib/components/context/ZudokuContext.js +1 -1
  41. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  42. package/dist/lib/components/index.d.ts +4 -4
  43. package/dist/lib/components/index.js +1 -1
  44. package/dist/lib/components/index.js.map +1 -1
  45. package/dist/lib/components/navigation/SidebarCategory.js +1 -1
  46. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  47. package/dist/lib/components/navigation/SidebarItem.js +1 -1
  48. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  49. package/dist/lib/components/navigation/utils.js +1 -1
  50. package/dist/lib/components/navigation/utils.js.map +1 -1
  51. package/dist/lib/core/plugins.d.ts +3 -5
  52. package/dist/lib/core/plugins.js.map +1 -1
  53. package/dist/lib/errors/RouterError.js +1 -1
  54. package/dist/lib/errors/RouterError.js.map +1 -1
  55. package/dist/lib/plugins/api-keys/CreateApiKey.js +1 -1
  56. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  57. package/dist/lib/plugins/api-keys/ProtectedRoute.js +1 -1
  58. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
  59. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +1 -1
  60. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  61. package/dist/lib/plugins/markdown/MdxPage.js +1 -1
  62. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  63. package/dist/lib/plugins/markdown/index.d.ts +1 -0
  64. package/dist/lib/plugins/markdown/index.js.map +1 -1
  65. package/dist/lib/plugins/openapi/Route.js +1 -1
  66. package/dist/lib/plugins/openapi/Route.js.map +1 -1
  67. package/dist/lib/plugins/openapi/Sidecar.js +1 -1
  68. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  69. package/dist/lib/plugins/openapi/index.js +1 -1
  70. package/dist/lib/plugins/openapi/index.js.map +1 -1
  71. package/dist/lib/plugins/redirect/index.js +1 -1
  72. package/dist/lib/plugins/redirect/index.js.map +1 -1
  73. package/dist/lib/util/MdxComponents.d.ts +16 -16
  74. package/dist/lib/util/MdxComponents.js +1 -3
  75. package/dist/lib/util/MdxComponents.js.map +1 -1
  76. package/dist/lib/util/createVariantComponent.d.ts +2 -2
  77. package/dist/lib/util/useExposedProps.js +1 -1
  78. package/dist/lib/util/useExposedProps.js.map +1 -1
  79. package/dist/lib/util/useOnScreen.d.ts +1 -1
  80. package/dist/lib/util/useScrollToAnchor.js +1 -1
  81. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  82. package/dist/lib/util/useScrollToTop.js +1 -1
  83. package/dist/lib/util/useScrollToTop.js.map +1 -1
  84. package/dist/vite/config.js +15 -8
  85. package/dist/vite/config.js.map +1 -1
  86. package/dist/vite/css/collect.d.ts +2 -0
  87. package/dist/vite/css/collect.js +27 -0
  88. package/dist/vite/css/collect.js.map +1 -0
  89. package/dist/vite/css/plugin.d.ts +5 -0
  90. package/dist/vite/css/plugin.js +79 -0
  91. package/dist/vite/css/plugin.js.map +1 -0
  92. package/dist/vite/dev-server.js +7 -3
  93. package/dist/vite/dev-server.js.map +1 -1
  94. package/dist/vite/plugin-mdx.js +2 -0
  95. package/dist/vite/plugin-mdx.js.map +1 -1
  96. package/dist/vite/plugin.js +4 -0
  97. package/dist/vite/plugin.js.map +1 -1
  98. package/lib/{AnchorLink-BR0MvI7n.js → AnchorLink-DFZZbmvr.js} +13 -14
  99. package/lib/AnchorLink-DFZZbmvr.js.map +1 -0
  100. package/lib/{AuthenticationPlugin-D0Em0SwR.js → AuthenticationPlugin-DQy635W9.js} +15 -16
  101. package/lib/AuthenticationPlugin-DQy635W9.js.map +1 -0
  102. package/lib/{Button-jK0EsymC.js → Button-DeAoTouo.js} +4 -4
  103. package/lib/{Button-jK0EsymC.js.map → Button-DeAoTouo.js.map} +1 -1
  104. package/lib/{CategoryHeading-Bb9dqxD3.js → CategoryHeading-CBconmtI.js} +3 -3
  105. package/lib/{CategoryHeading-Bb9dqxD3.js.map → CategoryHeading-CBconmtI.js.map} +1 -1
  106. package/lib/ClientOnly-E7hGysn1.js.map +1 -1
  107. package/lib/{Dialog-k70Qfukb.js → Dialog-Bxv1yEIg.js} +3 -3
  108. package/lib/{Dialog-k70Qfukb.js.map → Dialog-Bxv1yEIg.js.map} +1 -1
  109. package/lib/{Markdown-CRsmPPfY.js → Markdown-CZDLNOFc.js} +3080 -3058
  110. package/lib/{Markdown-CRsmPPfY.js.map → Markdown-CZDLNOFc.js.map} +1 -1
  111. package/lib/{MdxPage-Wp8QU0-q.js → MdxPage-CBa4X6L5.js} +9 -9
  112. package/lib/MdxPage-CBa4X6L5.js.map +1 -0
  113. package/lib/OperationList-Bj-6EKhp.js +4889 -0
  114. package/lib/{OperationList-u8xHU9-b.js.map → OperationList-Bj-6EKhp.js.map} +1 -1
  115. package/lib/Route-C9cYcP-j.js +11 -0
  116. package/lib/Route-C9cYcP-j.js.map +1 -0
  117. package/lib/{Select-O9ZM3ZgX.js → Select-Bb_Hqc70.js} +5 -5
  118. package/lib/{Select-O9ZM3ZgX.js.map → Select-Bb_Hqc70.js.map} +1 -1
  119. package/lib/{SidebarBadge-DxFJcJ6V.js → SidebarBadge-Bm793GDY.js} +3 -3
  120. package/lib/{SidebarBadge-DxFJcJ6V.js.map → SidebarBadge-Bm793GDY.js.map} +1 -1
  121. package/lib/SlotletProvider-pfc9oejW.js +221 -0
  122. package/lib/SlotletProvider-pfc9oejW.js.map +1 -0
  123. package/lib/{Spinner-3cQDBVGr.js → Spinner-DuxJLLNE.js} +2 -2
  124. package/lib/{Spinner-3cQDBVGr.js.map → Spinner-DuxJLLNE.js.map} +1 -1
  125. package/lib/{SyntaxHighlight-C31iouiO.js → SyntaxHighlight-Bz-lOJtH.js} +8 -10
  126. package/lib/{SyntaxHighlight-C31iouiO.js.map → SyntaxHighlight-Bz-lOJtH.js.map} +1 -1
  127. package/lib/assets/{index-B_Jk_Yzp.js → index-C7jnHK4b.js} +218 -197
  128. package/lib/assets/index-C7jnHK4b.js.map +1 -0
  129. package/lib/assets/{worker-C_2va8B8.js → worker-BmEAZjUP.js} +5249 -4922
  130. package/lib/assets/worker-BmEAZjUP.js.map +1 -0
  131. package/lib/chunk-D52XG6IA-Dl7HLe6j.js +1823 -0
  132. package/lib/chunk-D52XG6IA-Dl7HLe6j.js.map +1 -0
  133. package/lib/{cn-BmFQLtkS.js → cn-qaFjX9_3.js} +2 -2
  134. package/lib/cn-qaFjX9_3.js.map +1 -0
  135. package/lib/{context-D1nXWxm7.js → context-h_UkBLvr.js} +2 -2
  136. package/lib/{context-D1nXWxm7.js.map → context-h_UkBLvr.js.map} +1 -1
  137. package/lib/{createServer-BCAHdrpE.js → createServer-BVFp6Bl3.js} +4521 -4195
  138. package/lib/createServer-BVFp6Bl3.js.map +1 -0
  139. package/lib/{hook-hEqe7fPB.js → hook-DMHiUaIV.js} +3 -3
  140. package/lib/{hook-hEqe7fPB.js.map → hook-DMHiUaIV.js.map} +1 -1
  141. package/lib/{index-CmdLGbbk.js → index-B6rTMjdI.js} +47 -47
  142. package/lib/{index-CmdLGbbk.js.map → index-B6rTMjdI.js.map} +1 -1
  143. package/lib/{index-CkwDvuPt.js → index-CBXSgjaE.js} +259 -238
  144. package/lib/index-CBXSgjaE.js.map +1 -0
  145. package/lib/index-CPNSgwSb.js +36 -0
  146. package/lib/index-CPNSgwSb.js.map +1 -0
  147. package/lib/index-LNp6rxyU.js.map +1 -1
  148. package/lib/index.esm-BSV1C092.js +692 -0
  149. package/lib/{index.esm-Bm8pj-bc.js.map → index.esm-BSV1C092.js.map} +1 -1
  150. package/lib/index.esm-BnnBRKJX.js +1214 -0
  151. package/lib/index.esm-BnnBRKJX.js.map +1 -0
  152. package/lib/invariant-Caa8-XvF.js.map +1 -1
  153. package/lib/jsx-runtime-Dx-03ztt.js +446 -0
  154. package/lib/jsx-runtime-Dx-03ztt.js.map +1 -0
  155. package/lib/object_hash-BNWPnMN9.js +787 -0
  156. package/lib/object_hash-BNWPnMN9.js.map +1 -0
  157. package/lib/post-processors/removeExtensions.js.map +1 -1
  158. package/lib/post-processors/removePaths.js.map +1 -1
  159. package/lib/post-processors/traverse.js.map +1 -1
  160. package/lib/prism-csharp.min-DUwvItt4.js +63 -0
  161. package/lib/{prism-csharp.min-Yizuc34Y.js.map → prism-csharp.min-DUwvItt4.js.map} +1 -1
  162. package/lib/prism-java.min-BtgBR4yd.js +35 -0
  163. package/lib/{prism-java.min-d5iT_mOd.js.map → prism-java.min-BtgBR4yd.js.map} +1 -1
  164. package/lib/prism-markup-BNGj0Tvm.js.map +1 -1
  165. package/lib/prism-ruby.min-DeDXCp1r.js +38 -0
  166. package/lib/{prism-ruby.min-C7LwcKyz.js.map → prism-ruby.min-DeDXCp1r.js.map} +1 -1
  167. package/lib/prism-typescript.min-CD7H2IYQ.js +34 -0
  168. package/lib/{prism-typescript.min-oSVeWCAd.js.map → prism-typescript.min-CD7H2IYQ.js.map} +1 -1
  169. package/lib/state-CFQsUZUP.js +202 -0
  170. package/lib/state-CFQsUZUP.js.map +1 -0
  171. package/lib/ui/Accordion.js +2 -2
  172. package/lib/ui/Accordion.js.map +1 -1
  173. package/lib/ui/ActionButton.js +4 -4
  174. package/lib/ui/ActionButton.js.map +1 -1
  175. package/lib/ui/Alert.js +3 -3
  176. package/lib/ui/Alert.js.map +1 -1
  177. package/lib/ui/AlertDialog.js +2 -2
  178. package/lib/ui/AlertDialog.js.map +1 -1
  179. package/lib/ui/Badge.js +3 -3
  180. package/lib/ui/Badge.js.map +1 -1
  181. package/lib/ui/Breadcrumb.js +2 -2
  182. package/lib/ui/Breadcrumb.js.map +1 -1
  183. package/lib/ui/Button.js +3 -3
  184. package/lib/ui/Button.js.map +1 -1
  185. package/lib/ui/Callout.js +2 -2
  186. package/lib/ui/Callout.js.map +1 -1
  187. package/lib/ui/Card.js +2 -2
  188. package/lib/ui/Card.js.map +1 -1
  189. package/lib/ui/Carousel.js +407 -401
  190. package/lib/ui/Carousel.js.map +1 -1
  191. package/lib/ui/Checkbox.js +2 -2
  192. package/lib/ui/Checkbox.js.map +1 -1
  193. package/lib/ui/Command.js +111 -108
  194. package/lib/ui/Command.js.map +1 -1
  195. package/lib/ui/Dialog.js +2 -2
  196. package/lib/ui/Dialog.js.map +1 -1
  197. package/lib/ui/Drawer.js +2 -2
  198. package/lib/ui/Drawer.js.map +1 -1
  199. package/lib/ui/DropdownMenu.js +2 -2
  200. package/lib/ui/DropdownMenu.js.map +1 -1
  201. package/lib/ui/Form.js +3 -3
  202. package/lib/ui/Form.js.map +1 -1
  203. package/lib/ui/HoverCard.js +2 -2
  204. package/lib/ui/Input.js +2 -2
  205. package/lib/ui/Input.js.map +1 -1
  206. package/lib/ui/Label.js +3 -3
  207. package/lib/ui/Pagination.js +2 -2
  208. package/lib/ui/Pagination.js.map +1 -1
  209. package/lib/ui/Popover.js +2 -2
  210. package/lib/ui/Popover.js.map +1 -1
  211. package/lib/ui/Progress.js +2 -2
  212. package/lib/ui/Progress.js.map +1 -1
  213. package/lib/ui/RadioGroup.js +2 -2
  214. package/lib/ui/RadioGroup.js.map +1 -1
  215. package/lib/ui/ScrollArea.js +2 -2
  216. package/lib/ui/ScrollArea.js.map +1 -1
  217. package/lib/ui/Select.js +2 -2
  218. package/lib/ui/Select.js.map +1 -1
  219. package/lib/ui/Skeleton.js +2 -2
  220. package/lib/ui/Skeleton.js.map +1 -1
  221. package/lib/ui/Slider.js +2 -2
  222. package/lib/ui/Switch.js +2 -2
  223. package/lib/ui/Switch.js.map +1 -1
  224. package/lib/ui/Tabs.js +2 -2
  225. package/lib/ui/Textarea.js +2 -2
  226. package/lib/ui/Textarea.js.map +1 -1
  227. package/lib/ui/Toggle.js +3 -3
  228. package/lib/ui/Toggle.js.map +1 -1
  229. package/lib/ui/ToggleGroup.js +2 -2
  230. package/lib/ui/ToggleGroup.js.map +1 -1
  231. package/lib/ui/Tooltip.js +2 -2
  232. package/lib/useExposedProps-DE9lR6MF.js +9 -0
  233. package/lib/useExposedProps-DE9lR6MF.js.map +1 -0
  234. package/lib/{utils-DcpDOncX.js → utils-R0j3Raw1.js} +30 -31
  235. package/lib/{utils-DcpDOncX.js.map → utils-R0j3Raw1.js.map} +1 -1
  236. package/lib/zudoku.auth-auth0.js +1 -1
  237. package/lib/zudoku.auth-auth0.js.map +1 -1
  238. package/lib/zudoku.auth-clerk.js +2 -2
  239. package/lib/zudoku.auth-clerk.js.map +1 -1
  240. package/lib/zudoku.auth-openid.js +348 -346
  241. package/lib/zudoku.auth-openid.js.map +1 -1
  242. package/lib/zudoku.components.js +679 -939
  243. package/lib/zudoku.components.js.map +1 -1
  244. package/lib/zudoku.openapi-worker.js +1 -1
  245. package/lib/zudoku.openapi-worker.js.map +1 -1
  246. package/lib/zudoku.plugin-api-catalog.js +3 -3
  247. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  248. package/lib/zudoku.plugin-api-keys.js +15 -16
  249. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  250. package/lib/zudoku.plugin-custom-pages.js +4 -4
  251. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  252. package/lib/zudoku.plugin-markdown.js +2 -2
  253. package/lib/zudoku.plugin-markdown.js.map +1 -1
  254. package/lib/zudoku.plugin-openapi.js +5 -5
  255. package/lib/zudoku.plugin-redirect.js +1 -1
  256. package/lib/zudoku.plugin-redirect.js.map +1 -1
  257. package/lib/zudoku.plugin-search-inkeep.js +1 -1
  258. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  259. package/package.json +35 -35
  260. package/src/app/demo.tsx +1 -1
  261. package/src/app/entry.client.tsx +1 -15
  262. package/src/app/entry.server.tsx +2 -2
  263. package/src/app/main.tsx +1 -1
  264. package/src/app/sentry.ts +1 -1
  265. package/src/app/standalone.tsx +1 -1
  266. package/src/lib/authentication/components/CallbackHandler.tsx +1 -1
  267. package/src/lib/authentication/components/SignIn.tsx +1 -1
  268. package/src/lib/authentication/components/SignOut.tsx +1 -1
  269. package/src/lib/components/AnchorLink.tsx +1 -1
  270. package/src/lib/components/Bootstrap.tsx +4 -6
  271. package/src/lib/components/Header.tsx +1 -1
  272. package/src/lib/components/Layout.tsx +1 -1
  273. package/src/lib/components/NotFoundPage.tsx +1 -1
  274. package/src/lib/components/SlotletProvider.tsx +1 -1
  275. package/src/lib/components/TopNavigation.tsx +1 -1
  276. package/src/lib/components/Zudoku.tsx +1 -1
  277. package/src/lib/components/context/ZudokuContext.ts +1 -1
  278. package/src/lib/components/index.ts +1 -1
  279. package/src/lib/components/navigation/SidebarCategory.tsx +1 -1
  280. package/src/lib/components/navigation/SidebarItem.tsx +1 -1
  281. package/src/lib/components/navigation/utils.ts +1 -1
  282. package/src/lib/core/plugins.ts +3 -7
  283. package/src/lib/errors/RouterError.tsx +1 -1
  284. package/src/lib/plugins/api-keys/CreateApiKey.tsx +1 -1
  285. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
  286. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +1 -1
  287. package/src/lib/plugins/api-keys/index.tsx +1 -1
  288. package/src/lib/plugins/custom-pages/index.tsx +1 -1
  289. package/src/lib/plugins/markdown/MdxPage.tsx +1 -1
  290. package/src/lib/plugins/markdown/index.tsx +2 -1
  291. package/src/lib/plugins/openapi/Route.tsx +1 -1
  292. package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
  293. package/src/lib/plugins/openapi/index.tsx +1 -1
  294. package/src/lib/plugins/redirect/index.tsx +1 -1
  295. package/src/lib/util/MdxComponents.tsx +1 -3
  296. package/src/lib/util/createVariantComponent.tsx +2 -2
  297. package/src/lib/util/useExposedProps.tsx +1 -1
  298. package/src/lib/util/useScrollToAnchor.ts +1 -1
  299. package/src/lib/util/useScrollToTop.ts +1 -1
  300. package/lib/AnchorLink-BR0MvI7n.js.map +0 -1
  301. package/lib/AuthenticationPlugin-D0Em0SwR.js.map +0 -1
  302. package/lib/MdxPage-Wp8QU0-q.js.map +0 -1
  303. package/lib/OperationList-u8xHU9-b.js +0 -4706
  304. package/lib/Route-DlG_HTMu.js +0 -11
  305. package/lib/Route-DlG_HTMu.js.map +0 -1
  306. package/lib/SlotletProvider-BgvYIPQe.js +0 -252
  307. package/lib/SlotletProvider-BgvYIPQe.js.map +0 -1
  308. package/lib/assets/index-B_Jk_Yzp.js.map +0 -1
  309. package/lib/assets/worker-C_2va8B8.js.map +0 -1
  310. package/lib/cn-BmFQLtkS.js.map +0 -1
  311. package/lib/createServer-BCAHdrpE.js.map +0 -1
  312. package/lib/index-BuAyrJe3.js +0 -46
  313. package/lib/index-BuAyrJe3.js.map +0 -1
  314. package/lib/index-CkwDvuPt.js.map +0 -1
  315. package/lib/index-Czzd9rjU.js +0 -899
  316. package/lib/index-Czzd9rjU.js.map +0 -1
  317. package/lib/index-Yn8c3UWE.js +0 -921
  318. package/lib/index-Yn8c3UWE.js.map +0 -1
  319. package/lib/index.esm-Bm8pj-bc.js +0 -675
  320. package/lib/index.esm-C5mr_sKO.js +0 -1193
  321. package/lib/index.esm-C5mr_sKO.js.map +0 -1
  322. package/lib/jsx-runtime-B6kdoens.js +0 -635
  323. package/lib/jsx-runtime-B6kdoens.js.map +0 -1
  324. package/lib/object_hash-CvlLgU-M.js +0 -785
  325. package/lib/object_hash-CvlLgU-M.js.map +0 -1
  326. package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
  327. package/lib/prism-java.min-d5iT_mOd.js +0 -7
  328. package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
  329. package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
  330. package/lib/router-lfyopgBI.js +0 -3024
  331. package/lib/router-lfyopgBI.js.map +0 -1
  332. package/lib/state-tsXBLONe.js +0 -203
  333. package/lib/state-tsXBLONe.js.map +0 -1
  334. package/lib/useExposedProps-CTPtylCV.js +0 -10
  335. package/lib/useExposedProps-CTPtylCV.js.map +0 -1
@@ -0,0 +1,692 @@
1
+ var ae = Object.defineProperty;
2
+ var ie = (e, t, r) => t in e ? ae(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var y = (e, t, r) => ie(e, typeof t != "symbol" ? t + "" : t, r);
4
+ import T, { Component as L } from "react";
5
+ import { g as F } from "./_commonjsHelpers-BkfeUUK-.js";
6
+ var P, N;
7
+ function oe() {
8
+ if (N) return P;
9
+ N = 1;
10
+ var e = typeof Element < "u", t = typeof Map == "function", r = typeof Set == "function", n = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
11
+ function o(s, i) {
12
+ if (s === i) return !0;
13
+ if (s && i && typeof s == "object" && typeof i == "object") {
14
+ if (s.constructor !== i.constructor) return !1;
15
+ var l, a, c;
16
+ if (Array.isArray(s)) {
17
+ if (l = s.length, l != i.length) return !1;
18
+ for (a = l; a-- !== 0; )
19
+ if (!o(s[a], i[a])) return !1;
20
+ return !0;
21
+ }
22
+ var u;
23
+ if (t && s instanceof Map && i instanceof Map) {
24
+ if (s.size !== i.size) return !1;
25
+ for (u = s.entries(); !(a = u.next()).done; )
26
+ if (!i.has(a.value[0])) return !1;
27
+ for (u = s.entries(); !(a = u.next()).done; )
28
+ if (!o(a.value[1], i.get(a.value[0]))) return !1;
29
+ return !0;
30
+ }
31
+ if (r && s instanceof Set && i instanceof Set) {
32
+ if (s.size !== i.size) return !1;
33
+ for (u = s.entries(); !(a = u.next()).done; )
34
+ if (!i.has(a.value[0])) return !1;
35
+ return !0;
36
+ }
37
+ if (n && ArrayBuffer.isView(s) && ArrayBuffer.isView(i)) {
38
+ if (l = s.length, l != i.length) return !1;
39
+ for (a = l; a-- !== 0; )
40
+ if (s[a] !== i[a]) return !1;
41
+ return !0;
42
+ }
43
+ if (s.constructor === RegExp) return s.source === i.source && s.flags === i.flags;
44
+ if (s.valueOf !== Object.prototype.valueOf && typeof s.valueOf == "function" && typeof i.valueOf == "function") return s.valueOf() === i.valueOf();
45
+ if (s.toString !== Object.prototype.toString && typeof s.toString == "function" && typeof i.toString == "function") return s.toString() === i.toString();
46
+ if (c = Object.keys(s), l = c.length, l !== Object.keys(i).length) return !1;
47
+ for (a = l; a-- !== 0; )
48
+ if (!Object.prototype.hasOwnProperty.call(i, c[a])) return !1;
49
+ if (e && s instanceof Element) return !1;
50
+ for (a = l; a-- !== 0; )
51
+ if (!((c[a] === "_owner" || c[a] === "__v" || c[a] === "__o") && s.$$typeof) && !o(s[c[a]], i[c[a]]))
52
+ return !1;
53
+ return !0;
54
+ }
55
+ return s !== s && i !== i;
56
+ }
57
+ return P = function(i, l) {
58
+ try {
59
+ return o(i, l);
60
+ } catch (a) {
61
+ if ((a.message || "").match(/stack|recursion/i))
62
+ return console.warn("react-fast-compare cannot handle circular refs"), !1;
63
+ throw a;
64
+ }
65
+ }, P;
66
+ }
67
+ var le = oe();
68
+ const ce = /* @__PURE__ */ F(le);
69
+ var $, V;
70
+ function ue() {
71
+ if (V) return $;
72
+ V = 1;
73
+ var e = function(t, r, n, o, s, i, l, a) {
74
+ if (process.env.NODE_ENV !== "production" && r === void 0)
75
+ throw new Error("invariant requires an error message argument");
76
+ if (!t) {
77
+ var c;
78
+ if (r === void 0)
79
+ c = new Error(
80
+ "Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
81
+ );
82
+ else {
83
+ var u = [n, o, s, i, l, a], f = 0;
84
+ c = new Error(
85
+ r.replace(/%s/g, function() {
86
+ return u[f++];
87
+ })
88
+ ), c.name = "Invariant Violation";
89
+ }
90
+ throw c.framesToPop = 1, c;
91
+ }
92
+ };
93
+ return $ = e, $;
94
+ }
95
+ var fe = ue();
96
+ const B = /* @__PURE__ */ F(fe);
97
+ var I, Y;
98
+ function pe() {
99
+ return Y || (Y = 1, I = function(t, r, n, o) {
100
+ var s = n ? n.call(o, t, r) : void 0;
101
+ if (s !== void 0)
102
+ return !!s;
103
+ if (t === r)
104
+ return !0;
105
+ if (typeof t != "object" || !t || typeof r != "object" || !r)
106
+ return !1;
107
+ var i = Object.keys(t), l = Object.keys(r);
108
+ if (i.length !== l.length)
109
+ return !1;
110
+ for (var a = Object.prototype.hasOwnProperty.bind(r), c = 0; c < i.length; c++) {
111
+ var u = i[c];
112
+ if (!a(u))
113
+ return !1;
114
+ var f = t[u], m = r[u];
115
+ if (s = n ? n.call(o, f, m, u) : void 0, s === !1 || s === void 0 && f !== m)
116
+ return !1;
117
+ }
118
+ return !0;
119
+ }), I;
120
+ }
121
+ var de = pe();
122
+ const me = /* @__PURE__ */ F(de);
123
+ var Q = /* @__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))(Q || {}), H = {
124
+ link: { rel: ["amphtml", "canonical", "alternate"] },
125
+ script: { type: ["application/ld+json"] },
126
+ meta: {
127
+ charset: "",
128
+ name: ["generator", "robots", "description"],
129
+ property: [
130
+ "og:type",
131
+ "og:title",
132
+ "og:url",
133
+ "og:image",
134
+ "og:image:alt",
135
+ "og:description",
136
+ "twitter:url",
137
+ "twitter:title",
138
+ "twitter:description",
139
+ "twitter:image",
140
+ "twitter:image:alt",
141
+ "twitter:card",
142
+ "twitter:site"
143
+ ]
144
+ }
145
+ }, Z = Object.values(Q), U = {
146
+ accesskey: "accessKey",
147
+ charset: "charSet",
148
+ class: "className",
149
+ contenteditable: "contentEditable",
150
+ contextmenu: "contextMenu",
151
+ "http-equiv": "httpEquiv",
152
+ itemprop: "itemProp",
153
+ tabindex: "tabIndex"
154
+ }, he = Object.entries(U).reduce(
155
+ (e, [t, r]) => (e[r] = t, e),
156
+ {}
157
+ ), h = "data-rh", E = {
158
+ DEFAULT_TITLE: "defaultTitle",
159
+ DEFER: "defer",
160
+ ENCODE_SPECIAL_CHARACTERS: "encodeSpecialCharacters",
161
+ ON_CHANGE_CLIENT_STATE: "onChangeClientState",
162
+ TITLE_TEMPLATE: "titleTemplate",
163
+ PRIORITIZE_SEO_TAGS: "prioritizeSeoTags"
164
+ }, b = (e, t) => {
165
+ for (let r = e.length - 1; r >= 0; r -= 1) {
166
+ const n = e[r];
167
+ if (Object.prototype.hasOwnProperty.call(n, t))
168
+ return n[t];
169
+ }
170
+ return null;
171
+ }, ye = (e) => {
172
+ let t = b(
173
+ e,
174
+ "title"
175
+ /* TITLE */
176
+ );
177
+ const r = b(e, E.TITLE_TEMPLATE);
178
+ if (Array.isArray(t) && (t = t.join("")), r && t)
179
+ return r.replace(/%s/g, () => t);
180
+ const n = b(e, E.DEFAULT_TITLE);
181
+ return t || n || void 0;
182
+ }, Te = (e) => b(e, E.ON_CHANGE_CLIENT_STATE) || (() => {
183
+ }), _ = (e, t) => t.filter((r) => typeof r[e] < "u").map((r) => r[e]).reduce((r, n) => ({ ...r, ...n }), {}), ge = (e, t) => t.filter((r) => typeof r.base < "u").map((r) => r.base).reverse().reduce((r, n) => {
184
+ if (!r.length) {
185
+ const o = Object.keys(n);
186
+ for (let s = 0; s < o.length; s += 1) {
187
+ const l = o[s].toLowerCase();
188
+ if (e.indexOf(l) !== -1 && n[l])
189
+ return r.concat(n);
190
+ }
191
+ }
192
+ return r;
193
+ }, []), ve = (e) => console && typeof console.warn == "function" && console.warn(e), O = (e, t, r) => {
194
+ const n = {};
195
+ return r.filter((o) => Array.isArray(o[e]) ? !0 : (typeof o[e] < "u" && ve(
196
+ `Helmet: ${e} should be of type "Array". Instead found type "${typeof o[e]}"`
197
+ ), !1)).map((o) => o[e]).reverse().reduce((o, s) => {
198
+ const i = {};
199
+ s.filter((a) => {
200
+ let c;
201
+ const u = Object.keys(a);
202
+ for (let m = 0; m < u.length; m += 1) {
203
+ const p = u[m], g = p.toLowerCase();
204
+ t.indexOf(g) !== -1 && !(c === "rel" && a[c].toLowerCase() === "canonical") && !(g === "rel" && a[g].toLowerCase() === "stylesheet") && (c = g), t.indexOf(p) !== -1 && (p === "innerHTML" || p === "cssText" || p === "itemprop") && (c = p);
205
+ }
206
+ if (!c || !a[c])
207
+ return !1;
208
+ const f = a[c].toLowerCase();
209
+ return n[c] || (n[c] = {}), i[c] || (i[c] = {}), n[c][f] ? !1 : (i[c][f] = !0, !0);
210
+ }).reverse().forEach((a) => o.push(a));
211
+ const l = Object.keys(i);
212
+ for (let a = 0; a < l.length; a += 1) {
213
+ const c = l[a], u = {
214
+ ...n[c],
215
+ ...i[c]
216
+ };
217
+ n[c] = u;
218
+ }
219
+ return o;
220
+ }, []).reverse();
221
+ }, Ae = (e, t) => {
222
+ if (Array.isArray(e) && e.length) {
223
+ for (let r = 0; r < e.length; r += 1)
224
+ if (e[r][t])
225
+ return !0;
226
+ }
227
+ return !1;
228
+ }, Ee = (e) => ({
229
+ baseTag: ge([
230
+ "href"
231
+ /* HREF */
232
+ ], e),
233
+ bodyAttributes: _("bodyAttributes", e),
234
+ defer: b(e, E.DEFER),
235
+ encode: b(e, E.ENCODE_SPECIAL_CHARACTERS),
236
+ htmlAttributes: _("htmlAttributes", e),
237
+ linkTags: O(
238
+ "link",
239
+ [
240
+ "rel",
241
+ "href"
242
+ /* HREF */
243
+ ],
244
+ e
245
+ ),
246
+ metaTags: O(
247
+ "meta",
248
+ [
249
+ "name",
250
+ "charset",
251
+ "http-equiv",
252
+ "property",
253
+ "itemprop"
254
+ /* ITEM_PROP */
255
+ ],
256
+ e
257
+ ),
258
+ noscriptTags: O("noscript", [
259
+ "innerHTML"
260
+ /* INNER_HTML */
261
+ ], e),
262
+ onChangeClientState: Te(e),
263
+ scriptTags: O(
264
+ "script",
265
+ [
266
+ "src",
267
+ "innerHTML"
268
+ /* INNER_HTML */
269
+ ],
270
+ e
271
+ ),
272
+ styleTags: O("style", [
273
+ "cssText"
274
+ /* CSS_TEXT */
275
+ ], e),
276
+ title: ye(e),
277
+ titleAttributes: _("titleAttributes", e),
278
+ prioritizeSeoTags: Ae(e, E.PRIORITIZE_SEO_TAGS)
279
+ }), X = (e) => Array.isArray(e) ? e.join("") : e, be = (e, t) => {
280
+ const r = Object.keys(e);
281
+ for (let n = 0; n < r.length; n += 1)
282
+ if (t[r[n]] && t[r[n]].includes(e[r[n]]))
283
+ return !0;
284
+ return !1;
285
+ }, D = (e, t) => Array.isArray(e) ? e.reduce(
286
+ (r, n) => (be(n, t) ? r.priority.push(n) : r.default.push(n), r),
287
+ { priority: [], default: [] }
288
+ ) : { default: e, priority: [] }, G = (e, t) => ({
289
+ ...e,
290
+ [t]: void 0
291
+ }), Oe = [
292
+ "noscript",
293
+ "script",
294
+ "style"
295
+ /* STYLE */
296
+ ], M = (e, t = !0) => t === !1 ? String(e) : String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;"), ee = (e) => Object.keys(e).reduce((t, r) => {
297
+ const n = typeof e[r] < "u" ? `${r}="${e[r]}"` : `${r}`;
298
+ return t ? `${t} ${n}` : n;
299
+ }, ""), Ce = (e, t, r, n) => {
300
+ const o = ee(r), s = X(t);
301
+ return o ? `<${e} ${h}="true" ${o}>${M(
302
+ s,
303
+ n
304
+ )}</${e}>` : `<${e} ${h}="true">${M(
305
+ s,
306
+ n
307
+ )}</${e}>`;
308
+ }, we = (e, t, r = !0) => t.reduce((n, o) => {
309
+ const s = o, i = Object.keys(s).filter(
310
+ (c) => !(c === "innerHTML" || c === "cssText")
311
+ ).reduce((c, u) => {
312
+ const f = typeof s[u] > "u" ? u : `${u}="${M(s[u], r)}"`;
313
+ return c ? `${c} ${f}` : f;
314
+ }, ""), l = s.innerHTML || s.cssText || "", a = Oe.indexOf(e) === -1;
315
+ return `${n}<${e} ${h}="true" ${i}${a ? "/>" : `>${l}</${e}>`}`;
316
+ }, ""), te = (e, t = {}) => Object.keys(e).reduce((r, n) => {
317
+ const o = U[n];
318
+ return r[o || n] = e[n], r;
319
+ }, t), Se = (e, t, r) => {
320
+ const n = {
321
+ key: t,
322
+ [h]: !0
323
+ }, o = te(r, n);
324
+ return [T.createElement("title", o, t)];
325
+ }, x = (e, t) => t.map((r, n) => {
326
+ const o = {
327
+ key: n,
328
+ [h]: !0
329
+ };
330
+ return Object.keys(r).forEach((s) => {
331
+ const l = U[s] || s;
332
+ if (l === "innerHTML" || l === "cssText") {
333
+ const a = r.innerHTML || r.cssText;
334
+ o.dangerouslySetInnerHTML = { __html: a };
335
+ } else
336
+ o[l] = r[s];
337
+ }), T.createElement(e, o);
338
+ }), d = (e, t, r = !0) => {
339
+ switch (e) {
340
+ case "title":
341
+ return {
342
+ toComponent: () => Se(e, t.title, t.titleAttributes),
343
+ toString: () => Ce(e, t.title, t.titleAttributes, r)
344
+ };
345
+ case "bodyAttributes":
346
+ case "htmlAttributes":
347
+ return {
348
+ toComponent: () => te(t),
349
+ toString: () => ee(t)
350
+ };
351
+ default:
352
+ return {
353
+ toComponent: () => x(e, t),
354
+ toString: () => we(e, t, r)
355
+ };
356
+ }
357
+ }, xe = ({ metaTags: e, linkTags: t, scriptTags: r, encode: n }) => {
358
+ const o = D(e, H.meta), s = D(t, H.link), i = D(r, H.script);
359
+ return {
360
+ priorityMethods: {
361
+ toComponent: () => [
362
+ ...x("meta", o.priority),
363
+ ...x("link", s.priority),
364
+ ...x("script", i.priority)
365
+ ],
366
+ toString: () => (
367
+ // generate all the tags as strings and concatenate them
368
+ `${d("meta", o.priority, n)} ${d(
369
+ "link",
370
+ s.priority,
371
+ n
372
+ )} ${d("script", i.priority, n)}`
373
+ )
374
+ },
375
+ metaTags: o.default,
376
+ linkTags: s.default,
377
+ scriptTags: i.default
378
+ };
379
+ }, Pe = (e) => {
380
+ const {
381
+ baseTag: t,
382
+ bodyAttributes: r,
383
+ encode: n = !0,
384
+ htmlAttributes: o,
385
+ noscriptTags: s,
386
+ styleTags: i,
387
+ title: l = "",
388
+ titleAttributes: a,
389
+ prioritizeSeoTags: c
390
+ } = e;
391
+ let { linkTags: u, metaTags: f, scriptTags: m } = e, p = {
392
+ toComponent: () => {
393
+ },
394
+ toString: () => ""
395
+ };
396
+ return c && ({ priorityMethods: p, linkTags: u, metaTags: f, scriptTags: m } = xe(e)), {
397
+ priority: p,
398
+ base: d("base", t, n),
399
+ bodyAttributes: d("bodyAttributes", r, n),
400
+ htmlAttributes: d("htmlAttributes", o, n),
401
+ link: d("link", u, n),
402
+ meta: d("meta", f, n),
403
+ noscript: d("noscript", s, n),
404
+ script: d("script", m, n),
405
+ style: d("style", i, n),
406
+ title: d("title", { title: l, titleAttributes: a }, n)
407
+ };
408
+ }, k = Pe, S = [], re = !!(typeof window < "u" && window.document && window.document.createElement), j = class {
409
+ constructor(e, t) {
410
+ y(this, "instances", []);
411
+ y(this, "canUseDOM", re);
412
+ y(this, "context");
413
+ y(this, "value", {
414
+ setHelmet: (e) => {
415
+ this.context.helmet = e;
416
+ },
417
+ helmetInstances: {
418
+ get: () => this.canUseDOM ? S : this.instances,
419
+ add: (e) => {
420
+ (this.canUseDOM ? S : this.instances).push(e);
421
+ },
422
+ remove: (e) => {
423
+ const t = (this.canUseDOM ? S : this.instances).indexOf(e);
424
+ (this.canUseDOM ? S : this.instances).splice(t, 1);
425
+ }
426
+ }
427
+ });
428
+ this.context = e, this.canUseDOM = t || !1, t || (e.helmet = k({
429
+ baseTag: [],
430
+ bodyAttributes: {},
431
+ encodeSpecialCharacters: !0,
432
+ htmlAttributes: {},
433
+ linkTags: [],
434
+ metaTags: [],
435
+ noscriptTags: [],
436
+ scriptTags: [],
437
+ styleTags: [],
438
+ title: "",
439
+ titleAttributes: {}
440
+ }));
441
+ }
442
+ }, $e = {}, ne = T.createContext($e), v, Ie = (v = class extends L {
443
+ constructor(r) {
444
+ super(r);
445
+ y(this, "helmetData");
446
+ this.helmetData = new j(this.props.context || {}, v.canUseDOM);
447
+ }
448
+ render() {
449
+ return /* @__PURE__ */ T.createElement(ne.Provider, { value: this.helmetData.value }, this.props.children);
450
+ }
451
+ }, y(v, "canUseDOM", re), v), A = (e, t) => {
452
+ const r = document.head || document.querySelector(
453
+ "head"
454
+ /* HEAD */
455
+ ), n = r.querySelectorAll(`${e}[${h}]`), o = [].slice.call(n), s = [];
456
+ let i;
457
+ return t && t.length && t.forEach((l) => {
458
+ const a = document.createElement(e);
459
+ for (const c in l)
460
+ if (Object.prototype.hasOwnProperty.call(l, c))
461
+ if (c === "innerHTML")
462
+ a.innerHTML = l.innerHTML;
463
+ else if (c === "cssText")
464
+ a.styleSheet ? a.styleSheet.cssText = l.cssText : a.appendChild(document.createTextNode(l.cssText));
465
+ else {
466
+ const u = c, f = typeof l[u] > "u" ? "" : l[u];
467
+ a.setAttribute(c, f);
468
+ }
469
+ a.setAttribute(h, "true"), o.some((c, u) => (i = u, a.isEqualNode(c))) ? o.splice(i, 1) : s.push(a);
470
+ }), o.forEach((l) => {
471
+ var a;
472
+ return (a = l.parentNode) == null ? void 0 : a.removeChild(l);
473
+ }), s.forEach((l) => r.appendChild(l)), {
474
+ oldTags: o,
475
+ newTags: s
476
+ };
477
+ }, q = (e, t) => {
478
+ const r = document.getElementsByTagName(e)[0];
479
+ if (!r)
480
+ return;
481
+ const n = r.getAttribute(h), o = n ? n.split(",") : [], s = [...o], i = Object.keys(t);
482
+ for (const l of i) {
483
+ const a = t[l] || "";
484
+ r.getAttribute(l) !== a && r.setAttribute(l, a), o.indexOf(l) === -1 && o.push(l);
485
+ const c = s.indexOf(l);
486
+ c !== -1 && s.splice(c, 1);
487
+ }
488
+ for (let l = s.length - 1; l >= 0; l -= 1)
489
+ r.removeAttribute(s[l]);
490
+ o.length === s.length ? r.removeAttribute(h) : r.getAttribute(h) !== i.join(",") && r.setAttribute(h, i.join(","));
491
+ }, He = (e, t) => {
492
+ typeof e < "u" && document.title !== e && (document.title = X(e)), q("title", t);
493
+ }, W = (e, t) => {
494
+ const {
495
+ baseTag: r,
496
+ bodyAttributes: n,
497
+ htmlAttributes: o,
498
+ linkTags: s,
499
+ metaTags: i,
500
+ noscriptTags: l,
501
+ onChangeClientState: a,
502
+ scriptTags: c,
503
+ styleTags: u,
504
+ title: f,
505
+ titleAttributes: m
506
+ } = e;
507
+ q("body", n), q("html", o), He(f, m);
508
+ const p = {
509
+ baseTag: A("base", r),
510
+ linkTags: A("link", s),
511
+ metaTags: A("meta", i),
512
+ noscriptTags: A("noscript", l),
513
+ scriptTags: A("script", c),
514
+ styleTags: A("style", u)
515
+ }, g = {}, K = {};
516
+ Object.keys(p).forEach((w) => {
517
+ const { newTags: z, oldTags: se } = p[w];
518
+ z.length && (g[w] = z), se.length && (K[w] = p[w].oldTags);
519
+ }), t && t(), a(e, g, K);
520
+ }, C = null, _e = (e) => {
521
+ C && cancelAnimationFrame(C), e.defer ? C = requestAnimationFrame(() => {
522
+ W(e, () => {
523
+ C = null;
524
+ });
525
+ }) : (W(e), C = null);
526
+ }, De = _e, J = class extends L {
527
+ constructor() {
528
+ super(...arguments);
529
+ y(this, "rendered", !1);
530
+ }
531
+ shouldComponentUpdate(t) {
532
+ return !me(t, this.props);
533
+ }
534
+ componentDidUpdate() {
535
+ this.emitChange();
536
+ }
537
+ componentWillUnmount() {
538
+ const { helmetInstances: t } = this.props.context;
539
+ t.remove(this), this.emitChange();
540
+ }
541
+ emitChange() {
542
+ const { helmetInstances: t, setHelmet: r } = this.props.context;
543
+ let n = null;
544
+ const o = Ee(
545
+ t.get().map((s) => {
546
+ const i = { ...s.props };
547
+ return delete i.context, i;
548
+ })
549
+ );
550
+ Ie.canUseDOM ? De(o) : k && (n = k(o)), r(n);
551
+ }
552
+ // componentWillMount will be deprecated
553
+ // for SSR, initialize on first render
554
+ // constructor is also unsafe in StrictMode
555
+ init() {
556
+ if (this.rendered)
557
+ return;
558
+ this.rendered = !0;
559
+ const { helmetInstances: t } = this.props.context;
560
+ t.add(this), this.emitChange();
561
+ }
562
+ render() {
563
+ return this.init(), null;
564
+ }
565
+ }, R, je = (R = class extends L {
566
+ shouldComponentUpdate(e) {
567
+ return !ce(G(this.props, "helmetData"), G(e, "helmetData"));
568
+ }
569
+ mapNestedChildrenToProps(e, t) {
570
+ if (!t)
571
+ return null;
572
+ switch (e.type) {
573
+ case "script":
574
+ case "noscript":
575
+ return {
576
+ innerHTML: t
577
+ };
578
+ case "style":
579
+ return {
580
+ cssText: t
581
+ };
582
+ default:
583
+ throw new Error(
584
+ `<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`
585
+ );
586
+ }
587
+ }
588
+ flattenArrayTypeChildren(e, t, r, n) {
589
+ return {
590
+ ...t,
591
+ [e.type]: [
592
+ ...t[e.type] || [],
593
+ {
594
+ ...r,
595
+ ...this.mapNestedChildrenToProps(e, n)
596
+ }
597
+ ]
598
+ };
599
+ }
600
+ mapObjectTypeChildren(e, t, r, n) {
601
+ switch (e.type) {
602
+ case "title":
603
+ return {
604
+ ...t,
605
+ [e.type]: n,
606
+ titleAttributes: { ...r }
607
+ };
608
+ case "body":
609
+ return {
610
+ ...t,
611
+ bodyAttributes: { ...r }
612
+ };
613
+ case "html":
614
+ return {
615
+ ...t,
616
+ htmlAttributes: { ...r }
617
+ };
618
+ default:
619
+ return {
620
+ ...t,
621
+ [e.type]: { ...r }
622
+ };
623
+ }
624
+ }
625
+ mapArrayTypeChildrenToProps(e, t) {
626
+ let r = { ...t };
627
+ return Object.keys(e).forEach((n) => {
628
+ r = {
629
+ ...r,
630
+ [n]: e[n]
631
+ };
632
+ }), r;
633
+ }
634
+ warnOnInvalidChildren(e, t) {
635
+ return B(
636
+ Z.some((r) => e.type === r),
637
+ 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
+ ", "
639
+ )} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`
640
+ ), B(
641
+ !t || typeof t == "string" || Array.isArray(t) && !t.some((r) => typeof r != "string"),
642
+ `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.`
643
+ ), !0;
644
+ }
645
+ mapChildrenToProps(e, t) {
646
+ let r = {};
647
+ return T.Children.forEach(e, (n) => {
648
+ if (!n || !n.props)
649
+ return;
650
+ const { children: o, ...s } = n.props, i = Object.keys(s).reduce((a, c) => (a[he[c] || c] = s[c], a), {});
651
+ let { type: l } = n;
652
+ switch (typeof l == "symbol" ? l = l.toString() : this.warnOnInvalidChildren(n, o), l) {
653
+ case "Symbol(react.fragment)":
654
+ t = this.mapChildrenToProps(o, t);
655
+ break;
656
+ case "link":
657
+ case "meta":
658
+ case "noscript":
659
+ case "script":
660
+ case "style":
661
+ r = this.flattenArrayTypeChildren(
662
+ n,
663
+ r,
664
+ i,
665
+ o
666
+ );
667
+ break;
668
+ default:
669
+ t = this.mapObjectTypeChildren(n, t, i, o);
670
+ break;
671
+ }
672
+ }), this.mapArrayTypeChildrenToProps(r, t);
673
+ }
674
+ render() {
675
+ const { children: e, ...t } = this.props;
676
+ let r = { ...t }, { helmetData: n } = t;
677
+ if (e && (r = this.mapChildrenToProps(e, r)), n && !(n instanceof j)) {
678
+ const o = n;
679
+ n = new j(o.context, !0), delete r.helmetData;
680
+ }
681
+ return n ? /* @__PURE__ */ T.createElement(J, { ...r, context: n.value }) : /* @__PURE__ */ T.createElement(ne.Consumer, null, (o) => /* @__PURE__ */ T.createElement(J, { ...r, context: o }));
682
+ }
683
+ }, y(R, "defaultProps", {
684
+ defer: !0,
685
+ encodeSpecialCharacters: !0,
686
+ prioritizeSeoTags: !1
687
+ }), R);
688
+ export {
689
+ je as H,
690
+ Ie as a
691
+ };
692
+ //# sourceMappingURL=index.esm-BSV1C092.js.map