zudoku 0.21.15 → 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 (357) 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/Markdown.js +1 -1
  34. package/dist/lib/components/Markdown.js.map +1 -1
  35. package/dist/lib/components/NotFoundPage.js +1 -1
  36. package/dist/lib/components/NotFoundPage.js.map +1 -1
  37. package/dist/lib/components/ReactMarkdown.d.ts +29 -0
  38. package/dist/lib/components/ReactMarkdown.js +182 -0
  39. package/dist/lib/components/ReactMarkdown.js.map +1 -0
  40. package/dist/lib/components/SlotletProvider.d.ts +2 -2
  41. package/dist/lib/components/TopNavigation.js +1 -1
  42. package/dist/lib/components/TopNavigation.js.map +1 -1
  43. package/dist/lib/components/Zudoku.js +1 -1
  44. package/dist/lib/components/Zudoku.js.map +1 -1
  45. package/dist/lib/components/context/ZudokuContext.js +1 -1
  46. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  47. package/dist/lib/components/index.d.ts +4 -4
  48. package/dist/lib/components/index.js +1 -1
  49. package/dist/lib/components/index.js.map +1 -1
  50. package/dist/lib/components/navigation/SidebarCategory.js +1 -1
  51. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  52. package/dist/lib/components/navigation/SidebarItem.js +1 -1
  53. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  54. package/dist/lib/components/navigation/utils.js +1 -1
  55. package/dist/lib/components/navigation/utils.js.map +1 -1
  56. package/dist/lib/core/plugins.d.ts +3 -5
  57. package/dist/lib/core/plugins.js.map +1 -1
  58. package/dist/lib/errors/RouterError.js +1 -1
  59. package/dist/lib/errors/RouterError.js.map +1 -1
  60. package/dist/lib/plugins/api-keys/CreateApiKey.js +1 -1
  61. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  62. package/dist/lib/plugins/api-keys/ProtectedRoute.js +1 -1
  63. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
  64. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +1 -1
  65. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  66. package/dist/lib/plugins/markdown/MdxPage.js +1 -1
  67. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  68. package/dist/lib/plugins/markdown/index.d.ts +1 -0
  69. package/dist/lib/plugins/markdown/index.js.map +1 -1
  70. package/dist/lib/plugins/openapi/Route.js +1 -1
  71. package/dist/lib/plugins/openapi/Route.js.map +1 -1
  72. package/dist/lib/plugins/openapi/Sidecar.js +1 -1
  73. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  74. package/dist/lib/plugins/openapi/index.js +1 -1
  75. package/dist/lib/plugins/openapi/index.js.map +1 -1
  76. package/dist/lib/plugins/redirect/index.js +1 -1
  77. package/dist/lib/plugins/redirect/index.js.map +1 -1
  78. package/dist/lib/plugins/search-inkeep/index.d.ts +22 -3
  79. package/dist/lib/plugins/search-inkeep/index.js +27 -5
  80. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  81. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +3 -4
  82. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  83. package/dist/lib/util/MdxComponents.d.ts +16 -16
  84. package/dist/lib/util/MdxComponents.js +1 -3
  85. package/dist/lib/util/MdxComponents.js.map +1 -1
  86. package/dist/lib/util/createVariantComponent.d.ts +2 -2
  87. package/dist/lib/util/useExposedProps.js +1 -1
  88. package/dist/lib/util/useExposedProps.js.map +1 -1
  89. package/dist/lib/util/useOnScreen.d.ts +1 -1
  90. package/dist/lib/util/useScrollToAnchor.js +1 -1
  91. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  92. package/dist/lib/util/useScrollToTop.js +1 -1
  93. package/dist/lib/util/useScrollToTop.js.map +1 -1
  94. package/dist/vite/config.js +15 -8
  95. package/dist/vite/config.js.map +1 -1
  96. package/dist/vite/css/collect.d.ts +2 -0
  97. package/dist/vite/css/collect.js +27 -0
  98. package/dist/vite/css/collect.js.map +1 -0
  99. package/dist/vite/css/plugin.d.ts +5 -0
  100. package/dist/vite/css/plugin.js +79 -0
  101. package/dist/vite/css/plugin.js.map +1 -0
  102. package/dist/vite/dev-server.js +7 -3
  103. package/dist/vite/dev-server.js.map +1 -1
  104. package/dist/vite/plugin-mdx.js +2 -0
  105. package/dist/vite/plugin-mdx.js.map +1 -1
  106. package/dist/vite/plugin.js +4 -0
  107. package/dist/vite/plugin.js.map +1 -1
  108. package/lib/{AnchorLink-BR0MvI7n.js → AnchorLink-DFZZbmvr.js} +13 -14
  109. package/lib/AnchorLink-DFZZbmvr.js.map +1 -0
  110. package/lib/{AuthenticationPlugin-D0Em0SwR.js → AuthenticationPlugin-DQy635W9.js} +15 -16
  111. package/lib/AuthenticationPlugin-DQy635W9.js.map +1 -0
  112. package/lib/{Button-jK0EsymC.js → Button-DeAoTouo.js} +4 -4
  113. package/lib/{Button-jK0EsymC.js.map → Button-DeAoTouo.js.map} +1 -1
  114. package/lib/{CategoryHeading-Bb9dqxD3.js → CategoryHeading-CBconmtI.js} +3 -3
  115. package/lib/{CategoryHeading-Bb9dqxD3.js.map → CategoryHeading-CBconmtI.js.map} +1 -1
  116. package/lib/ClientOnly-E7hGysn1.js.map +1 -1
  117. package/lib/{Dialog-k70Qfukb.js → Dialog-Bxv1yEIg.js} +3 -3
  118. package/lib/{Dialog-k70Qfukb.js.map → Dialog-Bxv1yEIg.js.map} +1 -1
  119. package/lib/{Markdown-CdkU5HcM.js → Markdown-CZDLNOFc.js} +13235 -13225
  120. package/lib/Markdown-CZDLNOFc.js.map +1 -0
  121. package/lib/{MdxPage-ChziqNPp.js → MdxPage-CBa4X6L5.js} +9 -9
  122. package/lib/MdxPage-CBa4X6L5.js.map +1 -0
  123. package/lib/OperationList-Bj-6EKhp.js +4889 -0
  124. package/lib/{OperationList-CQKkyrZH.js.map → OperationList-Bj-6EKhp.js.map} +1 -1
  125. package/lib/Route-C9cYcP-j.js +11 -0
  126. package/lib/Route-C9cYcP-j.js.map +1 -0
  127. package/lib/{Select-O9ZM3ZgX.js → Select-Bb_Hqc70.js} +5 -5
  128. package/lib/{Select-O9ZM3ZgX.js.map → Select-Bb_Hqc70.js.map} +1 -1
  129. package/lib/{SidebarBadge-DxFJcJ6V.js → SidebarBadge-Bm793GDY.js} +3 -3
  130. package/lib/{SidebarBadge-DxFJcJ6V.js.map → SidebarBadge-Bm793GDY.js.map} +1 -1
  131. package/lib/SlotletProvider-pfc9oejW.js +221 -0
  132. package/lib/SlotletProvider-pfc9oejW.js.map +1 -0
  133. package/lib/{Spinner-3cQDBVGr.js → Spinner-DuxJLLNE.js} +2 -2
  134. package/lib/{Spinner-3cQDBVGr.js.map → Spinner-DuxJLLNE.js.map} +1 -1
  135. package/lib/{SyntaxHighlight-C31iouiO.js → SyntaxHighlight-Bz-lOJtH.js} +8 -10
  136. package/lib/{SyntaxHighlight-C31iouiO.js.map → SyntaxHighlight-Bz-lOJtH.js.map} +1 -1
  137. package/lib/assets/{index-B_Jk_Yzp.js → index-C7jnHK4b.js} +218 -197
  138. package/lib/assets/index-C7jnHK4b.js.map +1 -0
  139. package/lib/assets/{worker-C_2va8B8.js → worker-BmEAZjUP.js} +5249 -4922
  140. package/lib/assets/worker-BmEAZjUP.js.map +1 -0
  141. package/lib/chunk-D52XG6IA-Dl7HLe6j.js +1823 -0
  142. package/lib/chunk-D52XG6IA-Dl7HLe6j.js.map +1 -0
  143. package/lib/{cn-BmFQLtkS.js → cn-qaFjX9_3.js} +2 -2
  144. package/lib/cn-qaFjX9_3.js.map +1 -0
  145. package/lib/{context-D1nXWxm7.js → context-h_UkBLvr.js} +2 -2
  146. package/lib/{context-D1nXWxm7.js.map → context-h_UkBLvr.js.map} +1 -1
  147. package/lib/{createServer-BCAHdrpE.js → createServer-BVFp6Bl3.js} +4521 -4195
  148. package/lib/createServer-BVFp6Bl3.js.map +1 -0
  149. package/lib/{hook-hEqe7fPB.js → hook-DMHiUaIV.js} +3 -3
  150. package/lib/{hook-hEqe7fPB.js.map → hook-DMHiUaIV.js.map} +1 -1
  151. package/lib/{index-DjB6H4GT.js → index-B6rTMjdI.js} +47 -47
  152. package/lib/{index-DjB6H4GT.js.map → index-B6rTMjdI.js.map} +1 -1
  153. package/lib/{index-CkwDvuPt.js → index-CBXSgjaE.js} +259 -238
  154. package/lib/index-CBXSgjaE.js.map +1 -0
  155. package/lib/index-CPNSgwSb.js +36 -0
  156. package/lib/index-CPNSgwSb.js.map +1 -0
  157. package/lib/index-LNp6rxyU.js.map +1 -1
  158. package/lib/index.esm-BSV1C092.js +692 -0
  159. package/lib/{index.esm-Bm8pj-bc.js.map → index.esm-BSV1C092.js.map} +1 -1
  160. package/lib/index.esm-BnnBRKJX.js +1214 -0
  161. package/lib/index.esm-BnnBRKJX.js.map +1 -0
  162. package/lib/invariant-Caa8-XvF.js.map +1 -1
  163. package/lib/jsx-runtime-Dx-03ztt.js +446 -0
  164. package/lib/jsx-runtime-Dx-03ztt.js.map +1 -0
  165. package/lib/object_hash-BNWPnMN9.js +787 -0
  166. package/lib/object_hash-BNWPnMN9.js.map +1 -0
  167. package/lib/post-processors/removeExtensions.js.map +1 -1
  168. package/lib/post-processors/removePaths.js.map +1 -1
  169. package/lib/post-processors/traverse.js.map +1 -1
  170. package/lib/prism-csharp.min-DUwvItt4.js +63 -0
  171. package/lib/{prism-csharp.min-Yizuc34Y.js.map → prism-csharp.min-DUwvItt4.js.map} +1 -1
  172. package/lib/prism-java.min-BtgBR4yd.js +35 -0
  173. package/lib/{prism-java.min-d5iT_mOd.js.map → prism-java.min-BtgBR4yd.js.map} +1 -1
  174. package/lib/prism-markup-BNGj0Tvm.js.map +1 -1
  175. package/lib/prism-ruby.min-DeDXCp1r.js +38 -0
  176. package/lib/{prism-ruby.min-C7LwcKyz.js.map → prism-ruby.min-DeDXCp1r.js.map} +1 -1
  177. package/lib/prism-typescript.min-CD7H2IYQ.js +34 -0
  178. package/lib/{prism-typescript.min-oSVeWCAd.js.map → prism-typescript.min-CD7H2IYQ.js.map} +1 -1
  179. package/lib/state-CFQsUZUP.js +202 -0
  180. package/lib/state-CFQsUZUP.js.map +1 -0
  181. package/lib/ui/Accordion.js +2 -2
  182. package/lib/ui/Accordion.js.map +1 -1
  183. package/lib/ui/ActionButton.js +4 -4
  184. package/lib/ui/ActionButton.js.map +1 -1
  185. package/lib/ui/Alert.js +3 -3
  186. package/lib/ui/Alert.js.map +1 -1
  187. package/lib/ui/AlertDialog.js +2 -2
  188. package/lib/ui/AlertDialog.js.map +1 -1
  189. package/lib/ui/Badge.js +3 -3
  190. package/lib/ui/Badge.js.map +1 -1
  191. package/lib/ui/Breadcrumb.js +2 -2
  192. package/lib/ui/Breadcrumb.js.map +1 -1
  193. package/lib/ui/Button.js +3 -3
  194. package/lib/ui/Button.js.map +1 -1
  195. package/lib/ui/Callout.js +2 -2
  196. package/lib/ui/Callout.js.map +1 -1
  197. package/lib/ui/Card.js +2 -2
  198. package/lib/ui/Card.js.map +1 -1
  199. package/lib/ui/Carousel.js +407 -401
  200. package/lib/ui/Carousel.js.map +1 -1
  201. package/lib/ui/Checkbox.js +2 -2
  202. package/lib/ui/Checkbox.js.map +1 -1
  203. package/lib/ui/Command.js +111 -108
  204. package/lib/ui/Command.js.map +1 -1
  205. package/lib/ui/Dialog.js +2 -2
  206. package/lib/ui/Dialog.js.map +1 -1
  207. package/lib/ui/Drawer.js +2 -2
  208. package/lib/ui/Drawer.js.map +1 -1
  209. package/lib/ui/DropdownMenu.js +2 -2
  210. package/lib/ui/DropdownMenu.js.map +1 -1
  211. package/lib/ui/Form.js +3 -3
  212. package/lib/ui/Form.js.map +1 -1
  213. package/lib/ui/HoverCard.js +2 -2
  214. package/lib/ui/Input.js +2 -2
  215. package/lib/ui/Input.js.map +1 -1
  216. package/lib/ui/Label.js +3 -3
  217. package/lib/ui/Pagination.js +2 -2
  218. package/lib/ui/Pagination.js.map +1 -1
  219. package/lib/ui/Popover.js +2 -2
  220. package/lib/ui/Popover.js.map +1 -1
  221. package/lib/ui/Progress.js +2 -2
  222. package/lib/ui/Progress.js.map +1 -1
  223. package/lib/ui/RadioGroup.js +2 -2
  224. package/lib/ui/RadioGroup.js.map +1 -1
  225. package/lib/ui/ScrollArea.js +2 -2
  226. package/lib/ui/ScrollArea.js.map +1 -1
  227. package/lib/ui/Select.js +2 -2
  228. package/lib/ui/Select.js.map +1 -1
  229. package/lib/ui/Skeleton.js +2 -2
  230. package/lib/ui/Skeleton.js.map +1 -1
  231. package/lib/ui/Slider.js +2 -2
  232. package/lib/ui/Switch.js +2 -2
  233. package/lib/ui/Switch.js.map +1 -1
  234. package/lib/ui/Tabs.js +2 -2
  235. package/lib/ui/Textarea.js +2 -2
  236. package/lib/ui/Textarea.js.map +1 -1
  237. package/lib/ui/Toggle.js +3 -3
  238. package/lib/ui/Toggle.js.map +1 -1
  239. package/lib/ui/ToggleGroup.js +2 -2
  240. package/lib/ui/ToggleGroup.js.map +1 -1
  241. package/lib/ui/Tooltip.js +2 -2
  242. package/lib/useExposedProps-DE9lR6MF.js +9 -0
  243. package/lib/useExposedProps-DE9lR6MF.js.map +1 -0
  244. package/lib/{utils-DcpDOncX.js → utils-R0j3Raw1.js} +30 -31
  245. package/lib/{utils-DcpDOncX.js.map → utils-R0j3Raw1.js.map} +1 -1
  246. package/lib/zudoku.auth-auth0.js +1 -1
  247. package/lib/zudoku.auth-auth0.js.map +1 -1
  248. package/lib/zudoku.auth-clerk.js +2 -2
  249. package/lib/zudoku.auth-clerk.js.map +1 -1
  250. package/lib/zudoku.auth-openid.js +348 -346
  251. package/lib/zudoku.auth-openid.js.map +1 -1
  252. package/lib/zudoku.components.js +679 -939
  253. package/lib/zudoku.components.js.map +1 -1
  254. package/lib/zudoku.openapi-worker.js +1 -1
  255. package/lib/zudoku.openapi-worker.js.map +1 -1
  256. package/lib/zudoku.plugin-api-catalog.js +3 -3
  257. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  258. package/lib/zudoku.plugin-api-keys.js +15 -16
  259. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  260. package/lib/zudoku.plugin-custom-pages.js +4 -4
  261. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  262. package/lib/zudoku.plugin-markdown.js +2 -2
  263. package/lib/zudoku.plugin-markdown.js.map +1 -1
  264. package/lib/zudoku.plugin-openapi.js +5 -5
  265. package/lib/zudoku.plugin-redirect.js +1 -1
  266. package/lib/zudoku.plugin-redirect.js.map +1 -1
  267. package/lib/zudoku.plugin-search-inkeep.js +45 -24
  268. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  269. package/package.json +43 -37
  270. package/src/app/demo.tsx +1 -1
  271. package/src/app/entry.client.tsx +1 -15
  272. package/src/app/entry.server.tsx +2 -2
  273. package/src/app/main.tsx +1 -1
  274. package/src/app/sentry.ts +1 -1
  275. package/src/app/standalone.tsx +1 -1
  276. package/src/lib/authentication/components/CallbackHandler.tsx +1 -1
  277. package/src/lib/authentication/components/SignIn.tsx +1 -1
  278. package/src/lib/authentication/components/SignOut.tsx +1 -1
  279. package/src/lib/components/AnchorLink.tsx +1 -1
  280. package/src/lib/components/Bootstrap.tsx +4 -6
  281. package/src/lib/components/Header.tsx +1 -1
  282. package/src/lib/components/Layout.tsx +1 -1
  283. package/src/lib/components/Markdown.tsx +1 -1
  284. package/src/lib/components/NotFoundPage.tsx +1 -1
  285. package/src/lib/components/ReactMarkdown.license.txt +21 -0
  286. package/src/lib/components/ReactMarkdown.tsx +264 -0
  287. package/src/lib/components/SlotletProvider.tsx +1 -1
  288. package/src/lib/components/TopNavigation.tsx +1 -1
  289. package/src/lib/components/Zudoku.tsx +1 -1
  290. package/src/lib/components/context/ZudokuContext.ts +1 -1
  291. package/src/lib/components/index.ts +1 -1
  292. package/src/lib/components/navigation/SidebarCategory.tsx +1 -1
  293. package/src/lib/components/navigation/SidebarItem.tsx +1 -1
  294. package/src/lib/components/navigation/utils.ts +1 -1
  295. package/src/lib/core/plugins.ts +3 -7
  296. package/src/lib/errors/RouterError.tsx +1 -1
  297. package/src/lib/plugins/api-keys/CreateApiKey.tsx +1 -1
  298. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
  299. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +1 -1
  300. package/src/lib/plugins/api-keys/index.tsx +1 -1
  301. package/src/lib/plugins/custom-pages/index.tsx +1 -1
  302. package/src/lib/plugins/markdown/MdxPage.tsx +1 -1
  303. package/src/lib/plugins/markdown/index.tsx +2 -1
  304. package/src/lib/plugins/openapi/Route.tsx +1 -1
  305. package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
  306. package/src/lib/plugins/openapi/index.tsx +1 -1
  307. package/src/lib/plugins/redirect/index.tsx +1 -1
  308. package/src/lib/plugins/search-inkeep/index.tsx +59 -23
  309. package/src/lib/plugins/search-inkeep/inkeep.ts +3 -9
  310. package/src/lib/util/MdxComponents.tsx +1 -3
  311. package/src/lib/util/createVariantComponent.tsx +2 -2
  312. package/src/lib/util/useExposedProps.tsx +1 -1
  313. package/src/lib/util/useScrollToAnchor.ts +1 -1
  314. package/src/lib/util/useScrollToTop.ts +1 -1
  315. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
  316. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
  317. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
  318. package/lib/AnchorLink-BR0MvI7n.js.map +0 -1
  319. package/lib/AuthenticationPlugin-D0Em0SwR.js.map +0 -1
  320. package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
  321. package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
  322. package/lib/Markdown-CdkU5HcM.js.map +0 -1
  323. package/lib/MdxPage-ChziqNPp.js.map +0 -1
  324. package/lib/OperationList-CQKkyrZH.js +0 -4706
  325. package/lib/Route-DlG_HTMu.js +0 -11
  326. package/lib/Route-DlG_HTMu.js.map +0 -1
  327. package/lib/SlotletProvider-D77pO-fA.js +0 -252
  328. package/lib/SlotletProvider-D77pO-fA.js.map +0 -1
  329. package/lib/assets/index-B_Jk_Yzp.js.map +0 -1
  330. package/lib/assets/worker-C_2va8B8.js.map +0 -1
  331. package/lib/cn-BmFQLtkS.js.map +0 -1
  332. package/lib/createServer-BCAHdrpE.js.map +0 -1
  333. package/lib/index-BuAyrJe3.js +0 -46
  334. package/lib/index-BuAyrJe3.js.map +0 -1
  335. package/lib/index-CkwDvuPt.js.map +0 -1
  336. package/lib/index-Czzd9rjU.js +0 -899
  337. package/lib/index-Czzd9rjU.js.map +0 -1
  338. package/lib/index-Yn8c3UWE.js +0 -921
  339. package/lib/index-Yn8c3UWE.js.map +0 -1
  340. package/lib/index.esm-Bm8pj-bc.js +0 -675
  341. package/lib/index.esm-C5mr_sKO.js +0 -1193
  342. package/lib/index.esm-C5mr_sKO.js.map +0 -1
  343. package/lib/jsx-runtime-B6kdoens.js +0 -635
  344. package/lib/jsx-runtime-B6kdoens.js.map +0 -1
  345. package/lib/object_hash-CvlLgU-M.js +0 -785
  346. package/lib/object_hash-CvlLgU-M.js.map +0 -1
  347. package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
  348. package/lib/prism-java.min-d5iT_mOd.js +0 -7
  349. package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
  350. package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
  351. package/lib/router-lfyopgBI.js +0 -3024
  352. package/lib/router-lfyopgBI.js.map +0 -1
  353. package/lib/state-tsXBLONe.js +0 -203
  354. package/lib/state-tsXBLONe.js.map +0 -1
  355. package/lib/useExposedProps-CTPtylCV.js +0 -10
  356. package/lib/useExposedProps-CTPtylCV.js.map +0 -1
  357. package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
@@ -1,165 +1,167 @@
1
- var Ie = Object.defineProperty;
2
- var je = (t, e, n) => e in t ? Ie(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var b = (t, e, n) => je(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { j as fe } from "./jsx-runtime-B6kdoens.js";
5
- import { c as Je, g as Oe } from "./_commonjsHelpers-BkfeUUK-.js";
6
- import { A as ze } from "./AuthenticationPlugin-D0Em0SwR.js";
7
- import { g as De } from "./utils-DcpDOncX.js";
8
- import { Z as Ne } from "./invariant-Caa8-XvF.js";
9
- import { l as Ke } from "./index-Czzd9rjU.js";
10
- import { u as C } from "./state-tsXBLONe.js";
11
- var pe = { exports: {} };
12
- (function(t) {
13
- (function(e, n) {
14
- t.exports ? t.exports = n() : e.log = n();
15
- })(Je, function() {
16
- var e = function() {
17
- }, n = "undefined", o = typeof window !== n && typeof window.navigator !== n && /Trident\/|MSIE /.test(window.navigator.userAgent), a = [
18
- "trace",
19
- "debug",
20
- "info",
21
- "warn",
22
- "error"
23
- ], r = {}, i = null;
24
- function c(l, m) {
25
- var u = l[m];
26
- if (typeof u.bind == "function")
27
- return u.bind(l);
28
- try {
29
- return Function.prototype.bind.call(u, l);
30
- } catch {
1
+ var je = Object.defineProperty;
2
+ var Je = (t, e, n) => e in t ? je(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var b = (t, e, n) => Je(t, typeof e != "symbol" ? e + "" : e, n);
4
+ import { j as we } from "./jsx-runtime-Dx-03ztt.js";
5
+ import { g as Oe } from "./_commonjsHelpers-BkfeUUK-.js";
6
+ import { A as ze } from "./AuthenticationPlugin-DQy635W9.js";
7
+ import { g as De } from "./utils-R0j3Raw1.js";
8
+ import { N as Ne } from "./chunk-D52XG6IA-Dl7HLe6j.js";
9
+ import { Z as Ke } from "./invariant-Caa8-XvF.js";
10
+ import { u as L } from "./state-CFQsUZUP.js";
11
+ var N = { exports: {} }, We = N.exports, ie;
12
+ function He() {
13
+ return ie || (ie = 1, function(t) {
14
+ (function(e, n) {
15
+ t.exports ? t.exports = n() : e.log = n();
16
+ })(We, function() {
17
+ var e = function() {
18
+ }, n = "undefined", o = typeof window !== n && typeof window.navigator !== n && /Trident\/|MSIE /.test(window.navigator.userAgent), a = [
19
+ "trace",
20
+ "debug",
21
+ "info",
22
+ "warn",
23
+ "error"
24
+ ], r = {}, i = null;
25
+ function c(l, g) {
26
+ var u = l[g];
27
+ if (typeof u.bind == "function")
28
+ return u.bind(l);
29
+ try {
30
+ return Function.prototype.bind.call(u, l);
31
+ } catch {
32
+ return function() {
33
+ return Function.prototype.apply.apply(u, [l, arguments]);
34
+ };
35
+ }
36
+ }
37
+ function p() {
38
+ console.log && (console.log.apply ? console.log.apply(console, arguments) : Function.prototype.apply.apply(console.log, [console, arguments])), console.trace && console.trace();
39
+ }
40
+ function _(l) {
41
+ return l === "debug" && (l = "log"), typeof console === n ? !1 : l === "trace" && o ? p : console[l] !== void 0 ? c(console, l) : console.log !== void 0 ? c(console, "log") : e;
42
+ }
43
+ function f() {
44
+ for (var l = this.getLevel(), g = 0; g < a.length; g++) {
45
+ var u = a[g];
46
+ this[u] = g < l ? e : this.methodFactory(u, l, this.name);
47
+ }
48
+ if (this.log = this.debug, typeof console === n && l < this.levels.SILENT)
49
+ return "No console available for logging";
50
+ }
51
+ function y(l) {
31
52
  return function() {
32
- return Function.prototype.apply.apply(u, [l, arguments]);
53
+ typeof console !== n && (f.call(this), this[l].apply(this, arguments));
33
54
  };
34
55
  }
35
- }
36
- function p() {
37
- console.log && (console.log.apply ? console.log.apply(console, arguments) : Function.prototype.apply.apply(console.log, [console, arguments])), console.trace && console.trace();
38
- }
39
- function _(l) {
40
- return l === "debug" && (l = "log"), typeof console === n ? !1 : l === "trace" && o ? p : console[l] !== void 0 ? c(console, l) : console.log !== void 0 ? c(console, "log") : e;
41
- }
42
- function f() {
43
- for (var l = this.getLevel(), m = 0; m < a.length; m++) {
44
- var u = a[m];
45
- this[u] = m < l ? e : this.methodFactory(u, l, this.name);
56
+ function T(l, g, u) {
57
+ return _(l) || y.apply(this, arguments);
46
58
  }
47
- if (this.log = this.debug, typeof console === n && l < this.levels.SILENT)
48
- return "No console available for logging";
49
- }
50
- function y(l) {
51
- return function() {
52
- typeof console !== n && (f.call(this), this[l].apply(this, arguments));
53
- };
54
- }
55
- function T(l, m, u) {
56
- return _(l) || y.apply(this, arguments);
57
- }
58
- function h(l, m) {
59
- var u = this, O, F, R, v = "loglevel";
60
- typeof l == "string" ? v += ":" + l : typeof l == "symbol" && (v = void 0);
61
- function Ce(d) {
62
- var g = (a[d] || "silent").toUpperCase();
63
- if (!(typeof window === n || !v)) {
64
- try {
65
- window.localStorage[v] = g;
66
- return;
67
- } catch {
68
- }
69
- try {
70
- window.document.cookie = encodeURIComponent(v) + "=" + g + ";";
71
- } catch {
59
+ function h(l, g) {
60
+ var u = this, O, M, R, v = "loglevel";
61
+ typeof l == "string" ? v += ":" + l : typeof l == "symbol" && (v = void 0);
62
+ function xe(d) {
63
+ var m = (a[d] || "silent").toUpperCase();
64
+ if (!(typeof window === n || !v)) {
65
+ try {
66
+ window.localStorage[v] = m;
67
+ return;
68
+ } catch {
69
+ }
70
+ try {
71
+ window.document.cookie = encodeURIComponent(v) + "=" + m + ";";
72
+ } catch {
73
+ }
72
74
  }
73
75
  }
74
- }
75
- function te() {
76
- var d;
77
- if (!(typeof window === n || !v)) {
78
- try {
79
- d = window.localStorage[v];
80
- } catch {
81
- }
82
- if (typeof d === n)
76
+ function ne() {
77
+ var d;
78
+ if (!(typeof window === n || !v)) {
83
79
  try {
84
- var g = window.document.cookie, z = encodeURIComponent(v), re = g.indexOf(z + "=");
85
- re !== -1 && (d = /^([^;]+)/.exec(
86
- g.slice(re + z.length + 1)
87
- )[1]);
80
+ d = window.localStorage[v];
88
81
  } catch {
89
82
  }
90
- return u.levels[d] === void 0 && (d = void 0), d;
91
- }
92
- }
93
- function Le() {
94
- if (!(typeof window === n || !v)) {
95
- try {
96
- window.localStorage.removeItem(v);
97
- } catch {
83
+ if (typeof d === n)
84
+ try {
85
+ var m = window.document.cookie, z = encodeURIComponent(v), oe = m.indexOf(z + "=");
86
+ oe !== -1 && (d = /^([^;]+)/.exec(
87
+ m.slice(oe + z.length + 1)
88
+ )[1]);
89
+ } catch {
90
+ }
91
+ return u.levels[d] === void 0 && (d = void 0), d;
98
92
  }
99
- try {
100
- window.document.cookie = encodeURIComponent(v) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
101
- } catch {
93
+ }
94
+ function Ce() {
95
+ if (!(typeof window === n || !v)) {
96
+ try {
97
+ window.localStorage.removeItem(v);
98
+ } catch {
99
+ }
100
+ try {
101
+ window.document.cookie = encodeURIComponent(v) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
102
+ } catch {
103
+ }
102
104
  }
103
105
  }
106
+ function U(d) {
107
+ var m = d;
108
+ if (typeof m == "string" && u.levels[m.toUpperCase()] !== void 0 && (m = u.levels[m.toUpperCase()]), typeof m == "number" && m >= 0 && m <= u.levels.SILENT)
109
+ return m;
110
+ throw new TypeError("log.setLevel() called with invalid level: " + d);
111
+ }
112
+ u.name = l, u.levels = {
113
+ TRACE: 0,
114
+ DEBUG: 1,
115
+ INFO: 2,
116
+ WARN: 3,
117
+ ERROR: 4,
118
+ SILENT: 5
119
+ }, u.methodFactory = g || T, u.getLevel = function() {
120
+ return R ?? M ?? O;
121
+ }, u.setLevel = function(d, m) {
122
+ return R = U(d), m !== !1 && xe(R), f.call(u);
123
+ }, u.setDefaultLevel = function(d) {
124
+ M = U(d), ne() || u.setLevel(d, !1);
125
+ }, u.resetLevel = function() {
126
+ R = null, Ce(), f.call(u);
127
+ }, u.enableAll = function(d) {
128
+ u.setLevel(u.levels.TRACE, d);
129
+ }, u.disableAll = function(d) {
130
+ u.setLevel(u.levels.SILENT, d);
131
+ }, u.rebuild = function() {
132
+ if (i !== u && (O = U(i.getLevel())), f.call(u), i === u)
133
+ for (var d in r)
134
+ r[d].rebuild();
135
+ }, O = U(
136
+ i ? i.getLevel() : "WARN"
137
+ );
138
+ var re = ne();
139
+ re != null && (R = U(re)), f.call(u);
104
140
  }
105
- function U(d) {
106
- var g = d;
107
- if (typeof g == "string" && u.levels[g.toUpperCase()] !== void 0 && (g = u.levels[g.toUpperCase()]), typeof g == "number" && g >= 0 && g <= u.levels.SILENT)
108
- return g;
109
- throw new TypeError("log.setLevel() called with invalid level: " + d);
110
- }
111
- u.name = l, u.levels = {
112
- TRACE: 0,
113
- DEBUG: 1,
114
- INFO: 2,
115
- WARN: 3,
116
- ERROR: 4,
117
- SILENT: 5
118
- }, u.methodFactory = m || T, u.getLevel = function() {
119
- return R ?? F ?? O;
120
- }, u.setLevel = function(d, g) {
121
- return R = U(d), g !== !1 && Ce(R), f.call(u);
122
- }, u.setDefaultLevel = function(d) {
123
- F = U(d), te() || u.setLevel(d, !1);
124
- }, u.resetLevel = function() {
125
- R = null, Le(), f.call(u);
126
- }, u.enableAll = function(d) {
127
- u.setLevel(u.levels.TRACE, d);
128
- }, u.disableAll = function(d) {
129
- u.setLevel(u.levels.SILENT, d);
130
- }, u.rebuild = function() {
131
- if (i !== u && (O = U(i.getLevel())), f.call(u), i === u)
132
- for (var d in r)
133
- r[d].rebuild();
134
- }, O = U(
135
- i ? i.getLevel() : "WARN"
136
- );
137
- var ne = te();
138
- ne != null && (R = U(ne)), f.call(u);
139
- }
140
- i = new h(), i.getLogger = function(m) {
141
- if (typeof m != "symbol" && typeof m != "string" || m === "")
142
- throw new TypeError("You must supply a name when creating a logger.");
143
- var u = r[m];
144
- return u || (u = r[m] = new h(
145
- m,
146
- i.methodFactory
147
- )), u;
148
- };
149
- var J = typeof window !== n ? window.log : void 0;
150
- return i.noConflict = function() {
151
- return typeof window !== n && window.log === i && (window.log = J), i;
152
- }, i.getLoggers = function() {
153
- return r;
154
- }, i.default = i, i;
155
- });
156
- })(pe);
157
- var We = pe.exports;
158
- const oe = /* @__PURE__ */ Oe(We);
159
- let V;
160
- var D, he;
161
- (typeof navigator > "u" || !((he = (D = navigator.userAgent) == null ? void 0 : D.startsWith) != null && he.call(D, "Mozilla/5.0 "))) && (V = "oauth4webapi/v2.17.0");
162
- function Z(t, e) {
141
+ i = new h(), i.getLogger = function(g) {
142
+ if (typeof g != "symbol" && typeof g != "string" || g === "")
143
+ throw new TypeError("You must supply a name when creating a logger.");
144
+ var u = r[g];
145
+ return u || (u = r[g] = new h(
146
+ g,
147
+ i.methodFactory
148
+ )), u;
149
+ };
150
+ var J = typeof window !== n ? window.log : void 0;
151
+ return i.noConflict = function() {
152
+ return typeof window !== n && window.log === i && (window.log = J), i;
153
+ }, i.getLoggers = function() {
154
+ return r;
155
+ }, i.default = i, i;
156
+ });
157
+ }(N)), N.exports;
158
+ }
159
+ var $e = He();
160
+ const ae = /* @__PURE__ */ Oe($e);
161
+ let G;
162
+ var D, pe;
163
+ (typeof navigator > "u" || !((pe = (D = navigator.userAgent) == null ? void 0 : D.startsWith) != null && pe.call(D, "Mozilla/5.0 "))) && (G = "oauth4webapi/v2.17.0");
164
+ function Y(t, e) {
163
165
  if (t == null)
164
166
  return !1;
165
167
  try {
@@ -168,19 +170,19 @@ function Z(t, e) {
168
170
  return !1;
169
171
  }
170
172
  }
171
- const K = Symbol(), He = Symbol(), Y = Symbol(), we = Symbol(), $e = Symbol(), Fe = Symbol(), Me = new TextEncoder(), Be = new TextDecoder();
173
+ const W = Symbol(), Fe = Symbol(), Q = Symbol(), ge = Symbol(), Me = Symbol(), qe = Symbol(), Be = new TextEncoder(), Ve = new TextDecoder();
172
174
  function E(t) {
173
- return typeof t == "string" ? Me.encode(t) : Be.decode(t);
175
+ return typeof t == "string" ? Be.encode(t) : Ve.decode(t);
174
176
  }
175
- const ie = 32768;
176
- function qe(t) {
177
+ const se = 32768;
178
+ function Ge(t) {
177
179
  t instanceof ArrayBuffer && (t = new Uint8Array(t));
178
180
  const e = [];
179
- for (let n = 0; n < t.byteLength; n += ie)
180
- e.push(String.fromCharCode.apply(null, t.subarray(n, n + ie)));
181
+ for (let n = 0; n < t.byteLength; n += se)
182
+ e.push(String.fromCharCode.apply(null, t.subarray(n, n + se)));
181
183
  return btoa(e.join("")).replace(/=/g, "").replace(/\+/g, "-").replace(/\//g, "_");
182
184
  }
183
- function Ve(t) {
185
+ function Ze(t) {
184
186
  try {
185
187
  const e = atob(t.replace(/-/g, "+").replace(/_/g, "/").replace(/\s/g, "")), n = new Uint8Array(e.length);
186
188
  for (let o = 0; o < e.length; o++)
@@ -191,9 +193,9 @@ function Ve(t) {
191
193
  }
192
194
  }
193
195
  function A(t) {
194
- return typeof t == "string" ? Ve(t) : qe(t);
196
+ return typeof t == "string" ? Ze(t) : Ge(t);
195
197
  }
196
- class Ge {
198
+ class Ye {
197
199
  constructor(e) {
198
200
  this.cache = /* @__PURE__ */ new Map(), this._cache = /* @__PURE__ */ new Map(), this.maxSize = e;
199
201
  }
@@ -223,23 +225,23 @@ class S extends Error {
223
225
  super(e ?? "operation not supported"), this.name = this.constructor.name, (n = Error.captureStackTrace) == null || n.call(Error, this, this.constructor);
224
226
  }
225
227
  }
226
- class Ze extends Error {
228
+ class Qe extends Error {
227
229
  constructor(e, n) {
228
230
  var o;
229
231
  super(e, n), this.name = this.constructor.name, (o = Error.captureStackTrace) == null || o.call(Error, this, this.constructor);
230
232
  }
231
233
  }
232
- const s = Ze, me = new Ge(100);
233
- function ge(t) {
234
+ const s = Qe, me = new Ye(100);
235
+ function ye(t) {
234
236
  return t instanceof CryptoKey;
235
237
  }
236
- function ye(t) {
237
- return ge(t) && t.type === "private";
238
+ function be(t) {
239
+ return ye(t) && t.type === "private";
238
240
  }
239
- function Ye(t) {
240
- return ge(t) && t.type === "public";
241
+ function Xe(t) {
242
+ return ye(t) && t.type === "public";
241
243
  }
242
- function Q(t) {
244
+ function X(t) {
243
245
  try {
244
246
  const e = t.headers.get("dpop-nonce");
245
247
  e && me.set(new URL(t.url).origin, e);
@@ -247,24 +249,24 @@ function Q(t) {
247
249
  }
248
250
  return t;
249
251
  }
250
- function L(t) {
252
+ function x(t) {
251
253
  return !(t === null || typeof t != "object" || Array.isArray(t));
252
254
  }
253
- function W(t) {
254
- Z(t, Headers) && (t = Object.fromEntries(t.entries()));
255
+ function H(t) {
256
+ Y(t, Headers) && (t = Object.fromEntries(t.entries()));
255
257
  const e = new Headers(t);
256
- if (V && !e.has("user-agent") && e.set("user-agent", V), e.has("authorization"))
258
+ if (G && !e.has("user-agent") && e.set("user-agent", G), e.has("authorization"))
257
259
  throw new TypeError('"options.headers" must not include the "authorization" header name');
258
260
  if (e.has("dpop"))
259
261
  throw new TypeError('"options.headers" must not include the "dpop" header name');
260
262
  return e;
261
263
  }
262
- function X(t) {
264
+ function ee(t) {
263
265
  if (typeof t == "function" && (t = t()), !(t instanceof AbortSignal))
264
266
  throw new TypeError('"options.signal" must return or be an instance of AbortSignal');
265
267
  return t;
266
268
  }
267
- async function Qe(t, e) {
269
+ async function et(t, e) {
268
270
  if (!(t instanceof URL))
269
271
  throw new TypeError('"issuerIdentifier" must be an instance of URL');
270
272
  if (t.protocol !== "https:" && t.protocol !== "http:")
@@ -281,32 +283,32 @@ async function Qe(t, e) {
281
283
  default:
282
284
  throw new TypeError('"options.algorithm" must be "oidc" (default), or "oauth2"');
283
285
  }
284
- const o = W(e == null ? void 0 : e.headers);
285
- return o.set("accept", "application/json"), ((e == null ? void 0 : e[Y]) || fetch)(n.href, {
286
+ const o = H(e == null ? void 0 : e.headers);
287
+ return o.set("accept", "application/json"), ((e == null ? void 0 : e[Q]) || fetch)(n.href, {
286
288
  headers: Object.fromEntries(o.entries()),
287
289
  method: "GET",
288
290
  redirect: "manual",
289
- signal: e != null && e.signal ? X(e.signal) : null
290
- }).then(Q);
291
+ signal: e != null && e.signal ? ee(e.signal) : null
292
+ }).then(X);
291
293
  }
292
294
  function w(t) {
293
295
  return typeof t == "string" && t.length !== 0;
294
296
  }
295
- async function Xe(t, e) {
297
+ async function tt(t, e) {
296
298
  if (!(t instanceof URL))
297
299
  throw new TypeError('"expectedIssuer" must be an instance of URL');
298
- if (!Z(e, Response))
300
+ if (!Y(e, Response))
299
301
  throw new TypeError('"response" must be an instance of Response');
300
302
  if (e.status !== 200)
301
303
  throw new s('"response" is not a conform Authorization Server Metadata response');
302
- ee(e);
304
+ te(e);
303
305
  let n;
304
306
  try {
305
307
  n = await e.json();
306
308
  } catch (o) {
307
309
  throw new s('failed to parse "response" body as JSON', { cause: o });
308
310
  }
309
- if (!L(n))
311
+ if (!x(n))
310
312
  throw new s('"response" body must be a top level object');
311
313
  if (!w(n.issuer))
312
314
  throw new s('"response" body "issuer" property must be a non-empty string');
@@ -314,21 +316,21 @@ async function Xe(t, e) {
314
316
  throw new s('"response" body "issuer" does not match "expectedIssuer"');
315
317
  return n;
316
318
  }
317
- function H() {
319
+ function $() {
318
320
  return A(crypto.getRandomValues(new Uint8Array(32)));
319
321
  }
320
- function et() {
321
- return H();
322
+ function nt() {
323
+ return $();
322
324
  }
323
- function tt() {
324
- return H();
325
+ function rt() {
326
+ return $();
325
327
  }
326
- async function nt(t) {
328
+ async function ot(t) {
327
329
  if (!w(t))
328
330
  throw new TypeError('"codeVerifier" must be a non-empty string');
329
331
  return A(await crypto.subtle.digest("SHA-256", E(t)));
330
332
  }
331
- function rt(t) {
333
+ function it(t) {
332
334
  if (t instanceof CryptoKey)
333
335
  return { key: t };
334
336
  if (!((t == null ? void 0 : t.key) instanceof CryptoKey))
@@ -338,17 +340,17 @@ function rt(t) {
338
340
  return {
339
341
  key: t.key,
340
342
  kid: t.kid,
341
- modifyAssertion: t[we]
343
+ modifyAssertion: t[ge]
342
344
  };
343
345
  }
344
- function ae(t) {
346
+ function ce(t) {
345
347
  return encodeURIComponent(t).replace(/%20/g, "+");
346
348
  }
347
- function ot(t, e) {
348
- const n = ae(t), o = ae(e);
349
+ function at(t, e) {
350
+ const n = ce(t), o = ce(e);
349
351
  return `Basic ${btoa(`${n}:${o}`)}`;
350
352
  }
351
- function it(t) {
353
+ function st(t) {
352
354
  switch (t.algorithm.hash.name) {
353
355
  case "SHA-256":
354
356
  return "PS256";
@@ -360,7 +362,7 @@ function it(t) {
360
362
  throw new S("unsupported RsaHashedKeyAlgorithm hash name");
361
363
  }
362
364
  }
363
- function at(t) {
365
+ function ct(t) {
364
366
  switch (t.algorithm.hash.name) {
365
367
  case "SHA-256":
366
368
  return "RS256";
@@ -372,7 +374,7 @@ function at(t) {
372
374
  throw new S("unsupported RsaHashedKeyAlgorithm hash name");
373
375
  }
374
376
  }
375
- function st(t) {
377
+ function ut(t) {
376
378
  switch (t.algorithm.namedCurve) {
377
379
  case "P-256":
378
380
  return "ES256";
@@ -384,14 +386,14 @@ function st(t) {
384
386
  throw new S("unsupported EcKeyAlgorithm namedCurve");
385
387
  }
386
388
  }
387
- function be(t) {
389
+ function _e(t) {
388
390
  switch (t.algorithm.name) {
389
391
  case "RSA-PSS":
390
- return it(t);
392
+ return st(t);
391
393
  case "RSASSA-PKCS1-v1_5":
392
- return at(t);
394
+ return ct(t);
393
395
  case "ECDSA":
394
- return st(t);
396
+ return ut(t);
395
397
  case "Ed25519":
396
398
  case "Ed448":
397
399
  return "EdDSA";
@@ -399,21 +401,21 @@ function be(t) {
399
401
  throw new S("unsupported CryptoKey algorithm name");
400
402
  }
401
403
  }
402
- function x(t) {
403
- const e = t == null ? void 0 : t[K];
404
+ function C(t) {
405
+ const e = t == null ? void 0 : t[W];
404
406
  return typeof e == "number" && Number.isFinite(e) ? e : 0;
405
407
  }
406
- function _e(t) {
407
- const e = t == null ? void 0 : t[He];
408
+ function ve(t) {
409
+ const e = t == null ? void 0 : t[Fe];
408
410
  return typeof e == "number" && Number.isFinite(e) && Math.sign(e) !== -1 ? e : 30;
409
411
  }
410
- function $() {
412
+ function F() {
411
413
  return Math.floor(Date.now() / 1e3);
412
414
  }
413
- function ct(t, e) {
414
- const n = $() + x(e);
415
+ function lt(t, e) {
416
+ const n = F() + C(e);
415
417
  return {
416
- jti: H(),
418
+ jti: $(),
417
419
  aud: [t.issuer, t.token_endpoint],
418
420
  exp: n + 60,
419
421
  iat: n,
@@ -422,9 +424,9 @@ function ct(t, e) {
422
424
  sub: e.client_id
423
425
  };
424
426
  }
425
- async function ut(t, e, n, o, a) {
426
- const r = { alg: be(n), kid: o }, i = ct(t, e);
427
- return a == null || a(r, i), ve(r, i, n);
427
+ async function dt(t, e, n, o, a) {
428
+ const r = { alg: _e(n), kid: o }, i = lt(t, e);
429
+ return a == null || a(r, i), Se(r, i, n);
428
430
  }
429
431
  function I(t) {
430
432
  if (typeof t != "object" || t === null)
@@ -440,171 +442,171 @@ function j(t) {
440
442
  throw new TypeError('"client.client_id" property must be a non-empty string');
441
443
  return !0;
442
444
  }
443
- function se(t) {
445
+ function ue(t) {
444
446
  if (!w(t))
445
447
  throw new TypeError('"client.client_secret" property must be a non-empty string');
446
448
  return t;
447
449
  }
448
- function M(t, e) {
450
+ function q(t, e) {
449
451
  if (e !== void 0)
450
452
  throw new TypeError(`"options.clientPrivateKey" property must not be provided when ${t} client authentication method is used.`);
451
453
  }
452
- function ce(t, e) {
454
+ function le(t, e) {
453
455
  if (e !== void 0)
454
456
  throw new TypeError(`"client.client_secret" property must not be provided when ${t} client authentication method is used.`);
455
457
  }
456
- async function lt(t, e, n, o, a) {
458
+ async function ht(t, e, n, o, a) {
457
459
  switch (n.delete("client_secret"), n.delete("client_assertion_type"), n.delete("client_assertion"), e.token_endpoint_auth_method) {
458
460
  case void 0:
459
461
  case "client_secret_basic": {
460
- M("client_secret_basic", a), o.set("authorization", ot(e.client_id, se(e.client_secret)));
462
+ q("client_secret_basic", a), o.set("authorization", at(e.client_id, ue(e.client_secret)));
461
463
  break;
462
464
  }
463
465
  case "client_secret_post": {
464
- M("client_secret_post", a), n.set("client_id", e.client_id), n.set("client_secret", se(e.client_secret));
466
+ q("client_secret_post", a), n.set("client_id", e.client_id), n.set("client_secret", ue(e.client_secret));
465
467
  break;
466
468
  }
467
469
  case "private_key_jwt": {
468
- if (ce("private_key_jwt", e.client_secret), a === void 0)
470
+ if (le("private_key_jwt", e.client_secret), a === void 0)
469
471
  throw new TypeError('"options.clientPrivateKey" must be provided when "client.token_endpoint_auth_method" is "private_key_jwt"');
470
- const { key: r, kid: i, modifyAssertion: c } = rt(a);
471
- if (!ye(r))
472
+ const { key: r, kid: i, modifyAssertion: c } = it(a);
473
+ if (!be(r))
472
474
  throw new TypeError('"options.clientPrivateKey.key" must be a private CryptoKey');
473
- n.set("client_id", e.client_id), n.set("client_assertion_type", "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"), n.set("client_assertion", await ut(t, e, r, i, c));
475
+ n.set("client_id", e.client_id), n.set("client_assertion_type", "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"), n.set("client_assertion", await dt(t, e, r, i, c));
474
476
  break;
475
477
  }
476
478
  case "tls_client_auth":
477
479
  case "self_signed_tls_client_auth":
478
480
  case "none": {
479
- ce(e.token_endpoint_auth_method, e.client_secret), M(e.token_endpoint_auth_method, a), n.set("client_id", e.client_id);
481
+ le(e.token_endpoint_auth_method, e.client_secret), q(e.token_endpoint_auth_method, a), n.set("client_id", e.client_id);
480
482
  break;
481
483
  }
482
484
  default:
483
485
  throw new S("unsupported client token_endpoint_auth_method");
484
486
  }
485
487
  }
486
- async function ve(t, e, n) {
488
+ async function Se(t, e, n) {
487
489
  if (!n.usages.includes("sign"))
488
490
  throw new TypeError('CryptoKey instances used for signing assertions must include "sign" in their "usages"');
489
- const o = `${A(E(JSON.stringify(t)))}.${A(E(JSON.stringify(e)))}`, a = A(await crypto.subtle.sign(Pe(n), n, E(o)));
491
+ const o = `${A(E(JSON.stringify(t)))}.${A(E(JSON.stringify(e)))}`, a = A(await crypto.subtle.sign(Ue(n), n, E(o)));
490
492
  return `${o}.${a}`;
491
493
  }
492
- async function dt(t, e, n, o, a, r) {
494
+ async function ft(t, e, n, o, a, r) {
493
495
  var T;
494
496
  const { privateKey: i, publicKey: c, nonce: p = me.get(n.origin) } = e;
495
- if (!ye(i))
497
+ if (!be(i))
496
498
  throw new TypeError('"DPoP.privateKey" must be a private CryptoKey');
497
- if (!Ye(c))
499
+ if (!Xe(c))
498
500
  throw new TypeError('"DPoP.publicKey" must be a public CryptoKey');
499
501
  if (p !== void 0 && !w(p))
500
502
  throw new TypeError('"DPoP.nonce" must be a non-empty string or undefined');
501
503
  if (!c.extractable)
502
504
  throw new TypeError('"DPoP.publicKey.extractable" must be true');
503
- const _ = $() + a, f = {
504
- alg: be(i),
505
+ const _ = F() + a, f = {
506
+ alg: _e(i),
505
507
  typ: "dpop+jwt",
506
- jwk: await ft(c)
508
+ jwk: await wt(c)
507
509
  }, y = {
508
510
  iat: _,
509
- jti: H(),
511
+ jti: $(),
510
512
  htm: o,
511
513
  nonce: p,
512
514
  htu: `${n.origin}${n.pathname}`,
513
515
  ath: r ? A(await crypto.subtle.digest("SHA-256", E(r))) : void 0
514
516
  };
515
- (T = e[we]) == null || T.call(e, f, y), t.set("dpop", await ve(f, y, i));
517
+ (T = e[ge]) == null || T.call(e, f, y), t.set("dpop", await Se(f, y, i));
516
518
  }
517
- let N;
518
- async function ht(t) {
519
+ let K;
520
+ async function pt(t) {
519
521
  const { kty: e, e: n, n: o, x: a, y: r, crv: i } = await crypto.subtle.exportKey("jwk", t), c = { kty: e, e: n, n: o, x: a, y: r, crv: i };
520
- return N.set(t, c), c;
522
+ return K.set(t, c), c;
521
523
  }
522
- async function ft(t) {
523
- return N || (N = /* @__PURE__ */ new WeakMap()), N.get(t) || ht(t);
524
+ async function wt(t) {
525
+ return K || (K = /* @__PURE__ */ new WeakMap()), K.get(t) || pt(t);
524
526
  }
525
- function ue(t, e, n) {
527
+ function de(t, e, n) {
526
528
  if (typeof t != "string")
527
529
  throw n ? new TypeError(`"as.mtls_endpoint_aliases.${e}" must be a string`) : new TypeError(`"as.${e}" must be a string`);
528
530
  return new URL(t);
529
531
  }
530
- function Se(t, e, n = !1) {
531
- return n && t.mtls_endpoint_aliases && e in t.mtls_endpoint_aliases ? ue(t.mtls_endpoint_aliases[e], e, n) : ue(t[e], e, n);
532
+ function Te(t, e, n = !1) {
533
+ return n && t.mtls_endpoint_aliases && e in t.mtls_endpoint_aliases ? de(t.mtls_endpoint_aliases[e], e, n) : de(t[e], e, n);
532
534
  }
533
- function Te(t, e) {
534
- return !!(t.use_mtls_endpoint_aliases || e != null && e[Fe]);
535
+ function ke(t, e) {
536
+ return !!(t.use_mtls_endpoint_aliases || e != null && e[qe]);
535
537
  }
536
- function G(t) {
538
+ function Z(t) {
537
539
  const e = t;
538
540
  return typeof e != "object" || Array.isArray(e) || e === null ? !1 : e.error !== void 0;
539
541
  }
540
- async function pt(t, e, n, o, a, r) {
542
+ async function gt(t, e, n, o, a, r) {
541
543
  if (!w(t))
542
544
  throw new TypeError('"accessToken" must be a non-empty string');
543
545
  if (!(n instanceof URL))
544
546
  throw new TypeError('"url" must be an instance of URL');
545
- return o = W(o), (r == null ? void 0 : r.DPoP) === void 0 ? o.set("authorization", `Bearer ${t}`) : (await dt(o, r.DPoP, n, e.toUpperCase(), x({ [K]: r == null ? void 0 : r[K] }), t), o.set("authorization", `DPoP ${t}`)), ((r == null ? void 0 : r[Y]) || fetch)(n.href, {
547
+ return o = H(o), (r == null ? void 0 : r.DPoP) === void 0 ? o.set("authorization", `Bearer ${t}`) : (await ft(o, r.DPoP, n, e.toUpperCase(), C({ [W]: r == null ? void 0 : r[W] }), t), o.set("authorization", `DPoP ${t}`)), ((r == null ? void 0 : r[Q]) || fetch)(n.href, {
546
548
  body: a,
547
549
  headers: Object.fromEntries(o.entries()),
548
550
  method: e,
549
551
  redirect: "manual",
550
- signal: r != null && r.signal ? X(r.signal) : null
551
- }).then(Q);
552
+ signal: r != null && r.signal ? ee(r.signal) : null
553
+ }).then(X);
552
554
  }
553
- async function wt(t, e, n, o) {
555
+ async function mt(t, e, n, o) {
554
556
  I(t), j(e);
555
- const a = Se(t, "userinfo_endpoint", Te(e, o)), r = W(o == null ? void 0 : o.headers);
556
- return e.userinfo_signed_response_alg ? r.set("accept", "application/jwt") : (r.set("accept", "application/json"), r.append("accept", "application/jwt")), pt(n, "GET", a, r, null, {
557
+ const a = Te(t, "userinfo_endpoint", ke(e, o)), r = H(o == null ? void 0 : o.headers);
558
+ return e.userinfo_signed_response_alg ? r.set("accept", "application/jwt") : (r.set("accept", "application/json"), r.append("accept", "application/jwt")), gt(n, "GET", a, r, null, {
557
559
  ...o,
558
- [K]: x(e)
560
+ [W]: C(e)
559
561
  });
560
562
  }
561
- async function mt(t, e, n, o, a, r, i) {
562
- return await lt(t, e, a, r, i == null ? void 0 : i.clientPrivateKey), r.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"), ((i == null ? void 0 : i[Y]) || fetch)(o.href, {
563
+ async function yt(t, e, n, o, a, r, i) {
564
+ return await ht(t, e, a, r, i == null ? void 0 : i.clientPrivateKey), r.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"), ((i == null ? void 0 : i[Q]) || fetch)(o.href, {
563
565
  body: a,
564
566
  headers: Object.fromEntries(r.entries()),
565
567
  method: n,
566
568
  redirect: "manual",
567
- signal: i != null && i.signal ? X(i.signal) : null
568
- }).then(Q);
569
+ signal: i != null && i.signal ? ee(i.signal) : null
570
+ }).then(X);
569
571
  }
570
- async function ke(t, e, n, o, a) {
571
- const r = Se(t, "token_endpoint", Te(e, a));
572
+ async function Ae(t, e, n, o, a) {
573
+ const r = Te(t, "token_endpoint", ke(e, a));
572
574
  o.set("grant_type", n);
573
- const i = W(a == null ? void 0 : a.headers);
574
- return i.set("accept", "application/json"), mt(t, e, "POST", r, o, i, a);
575
+ const i = H(a == null ? void 0 : a.headers);
576
+ return i.set("accept", "application/json"), yt(t, e, "POST", r, o, i, a);
575
577
  }
576
- async function gt(t, e, n, o) {
578
+ async function bt(t, e, n, o) {
577
579
  if (I(t), j(e), !w(n))
578
580
  throw new TypeError('"refreshToken" must be a non-empty string');
579
581
  const a = new URLSearchParams(o == null ? void 0 : o.additionalParameters);
580
- return a.set("refresh_token", n), ke(t, e, "refresh_token", a, o);
582
+ return a.set("refresh_token", n), Ae(t, e, "refresh_token", a, o);
581
583
  }
582
- const Ae = /* @__PURE__ */ new WeakMap();
583
- function yt(t) {
584
+ const Ee = /* @__PURE__ */ new WeakMap();
585
+ function _t(t) {
584
586
  if (!t.id_token)
585
587
  return;
586
- const e = Ae.get(t);
588
+ const e = Ee.get(t);
587
589
  if (!e)
588
590
  throw new TypeError('"ref" was already garbage collected or did not resolve from the proper sources');
589
591
  return e[0];
590
592
  }
591
- async function Ee(t, e, n, o = !1, a = !1) {
592
- if (I(t), j(e), !Z(n, Response))
593
+ async function Re(t, e, n, o = !1, a = !1) {
594
+ if (I(t), j(e), !Y(n, Response))
593
595
  throw new TypeError('"response" must be an instance of Response');
594
596
  if (n.status !== 200) {
595
597
  let i;
596
- if (i = await Pt(n))
598
+ if (i = await Lt(n))
597
599
  return i;
598
600
  throw new s('"response" is not a conform Token Endpoint response');
599
601
  }
600
- ee(n);
602
+ te(n);
601
603
  let r;
602
604
  try {
603
605
  r = await n.json();
604
606
  } catch (i) {
605
607
  throw new s('failed to parse "response" body as JSON', { cause: i });
606
608
  }
607
- if (!L(r))
609
+ if (!x(r))
608
610
  throw new s('"response" body must be a top level object');
609
611
  if (!w(r.access_token))
610
612
  throw new s('"response" body "access_token" property must be a non-empty string');
@@ -622,7 +624,7 @@ async function Ee(t, e, n, o = !1, a = !1) {
622
624
  if (r.id_token !== void 0 && !w(r.id_token))
623
625
  throw new s('"response" body "id_token" property must be a non-empty string');
624
626
  if (r.id_token) {
625
- const { claims: i, jwt: c } = await Lt(r.id_token, xt.bind(void 0, e.id_token_signed_response_alg, t.id_token_signing_alg_values_supported), Ue, x(e), _e(e), e[$e]).then(At.bind(void 0, ["aud", "exp", "iat", "iss", "sub"])).then(vt.bind(void 0, t.issuer)).then(_t.bind(void 0, e.client_id));
627
+ const { claims: i, jwt: c } = await It(r.id_token, jt.bind(void 0, e.id_token_signed_response_alg, t.id_token_signing_alg_values_supported), Le, C(e), ve(e), e[Me]).then(Rt.bind(void 0, ["aud", "exp", "iat", "iss", "sub"])).then(Tt.bind(void 0, t.issuer)).then(St.bind(void 0, e.client_id));
626
628
  if (Array.isArray(i.aud) && i.aud.length !== 1) {
627
629
  if (i.azp === void 0)
628
630
  throw new s('ID Token "aud" (audience) claim includes additional untrusted audiences');
@@ -631,15 +633,15 @@ async function Ee(t, e, n, o = !1, a = !1) {
631
633
  }
632
634
  if (i.auth_time !== void 0 && (!Number.isFinite(i.auth_time) || Math.sign(i.auth_time) !== 1))
633
635
  throw new s('ID Token "auth_time" (authentication time) must be a positive number');
634
- Ae.set(r, [i, c]);
636
+ Ee.set(r, [i, c]);
635
637
  }
636
638
  }
637
639
  return r;
638
640
  }
639
- async function bt(t, e, n) {
640
- return Ee(t, e, n);
641
+ async function vt(t, e, n) {
642
+ return Re(t, e, n);
641
643
  }
642
- function _t(t, e) {
644
+ function St(t, e) {
643
645
  if (Array.isArray(e.claims.aud)) {
644
646
  if (!e.claims.aud.includes(t))
645
647
  throw new s('unexpected JWT "aud" (audience) claim value');
@@ -647,17 +649,17 @@ function _t(t, e) {
647
649
  throw new s('unexpected JWT "aud" (audience) claim value');
648
650
  return e;
649
651
  }
650
- function vt(t, e) {
652
+ function Tt(t, e) {
651
653
  if (e.claims.iss !== t)
652
654
  throw new s('unexpected JWT "iss" (issuer) claim value');
653
655
  return e;
654
656
  }
655
- const Re = /* @__PURE__ */ new WeakSet();
656
- function St(t) {
657
- return Re.add(t), t;
657
+ const Pe = /* @__PURE__ */ new WeakSet();
658
+ function kt(t) {
659
+ return Pe.add(t), t;
658
660
  }
659
- async function Tt(t, e, n, o, a, r) {
660
- if (I(t), j(e), !Re.has(n))
661
+ async function At(t, e, n, o, a, r) {
662
+ if (I(t), j(e), !Pe.has(n))
661
663
  throw new TypeError('"callbackParameters" must be an instance of URLSearchParams obtained from "validateAuthResponse()", or "validateJwtAuthResponse()');
662
664
  if (!w(o))
663
665
  throw new TypeError('"redirectUri" must be a non-empty string');
@@ -667,9 +669,9 @@ async function Tt(t, e, n, o, a, r) {
667
669
  if (!i)
668
670
  throw new s('no authorization code in "callbackParameters"');
669
671
  const c = new URLSearchParams(r == null ? void 0 : r.additionalParameters);
670
- return c.set("redirect_uri", o), c.set("code_verifier", a), c.set("code", i), ke(t, e, "authorization_code", c, r);
672
+ return c.set("redirect_uri", o), c.set("code_verifier", a), c.set("code", i), Ae(t, e, "authorization_code", c, r);
671
673
  }
672
- const kt = {
674
+ const Et = {
673
675
  aud: "audience",
674
676
  c_hash: "code hash",
675
677
  client_id: "client id",
@@ -685,33 +687,33 @@ const kt = {
685
687
  htu: "http uri",
686
688
  cnf: "confirmation"
687
689
  };
688
- function At(t, e) {
690
+ function Rt(t, e) {
689
691
  for (const n of t)
690
692
  if (e.claims[n] === void 0)
691
- throw new s(`JWT "${n}" (${kt[n]}) claim missing`);
693
+ throw new s(`JWT "${n}" (${Et[n]}) claim missing`);
692
694
  return e;
693
695
  }
694
- const Et = Symbol(), B = Symbol();
695
- async function Rt(t, e, n, o, a) {
696
- const r = await Ee(t, e, n);
697
- if (G(r))
696
+ const Pt = Symbol(), B = Symbol();
697
+ async function Ut(t, e, n, o, a) {
698
+ const r = await Re(t, e, n);
699
+ if (Z(r))
698
700
  return r;
699
701
  if (!w(r.id_token))
700
702
  throw new s('"response" body "id_token" property must be a non-empty string');
701
703
  a ?? (a = e.default_max_age ?? B);
702
- const i = yt(r);
704
+ const i = _t(r);
703
705
  if ((e.require_auth_time || a !== B) && i.auth_time === void 0)
704
706
  throw new s('ID Token "auth_time" (authentication time) claim missing');
705
707
  if (a !== B) {
706
708
  if (typeof a != "number" || a < 0)
707
709
  throw new TypeError('"maxAge" must be a non-negative number');
708
- const c = $() + x(e), p = _e(e);
710
+ const c = F() + C(e), p = ve(e);
709
711
  if (i.auth_time + a < c - p)
710
712
  throw new s("too much time has elapsed since the last End-User authentication");
711
713
  }
712
714
  switch (o) {
713
715
  case void 0:
714
- case Et:
716
+ case Pt:
715
717
  if (i.nonce !== void 0)
716
718
  throw new s('unexpected ID Token "nonce" claim value');
717
719
  break;
@@ -725,26 +727,26 @@ async function Rt(t, e, n, o, a) {
725
727
  }
726
728
  return r;
727
729
  }
728
- function ee(t) {
730
+ function te(t) {
729
731
  if (t.bodyUsed)
730
732
  throw new TypeError('"response" body has been used already');
731
733
  }
732
- async function Pt(t) {
734
+ async function Lt(t) {
733
735
  if (t.status > 399 && t.status < 500) {
734
- ee(t);
736
+ te(t);
735
737
  try {
736
738
  const e = await t.json();
737
- if (L(e) && typeof e.error == "string" && e.error.length)
739
+ if (x(e) && typeof e.error == "string" && e.error.length)
738
740
  return e.error_description !== void 0 && typeof e.error_description != "string" && delete e.error_description, e.error_uri !== void 0 && typeof e.error_uri != "string" && delete e.error_uri, e.algs !== void 0 && typeof e.algs != "string" && delete e.algs, e.scope !== void 0 && typeof e.scope != "string" && delete e.scope, e;
739
741
  } catch {
740
742
  }
741
743
  }
742
744
  }
743
- function le(t) {
745
+ function he(t) {
744
746
  if (typeof t.modulusLength != "number" || t.modulusLength < 2048)
745
747
  throw new s(`${t.name} modulusLength must be at least 2048 bits`);
746
748
  }
747
- function Ut(t) {
749
+ function xt(t) {
748
750
  switch (t) {
749
751
  case "P-256":
750
752
  return "SHA-256";
@@ -756,15 +758,15 @@ function Ut(t) {
756
758
  throw new S();
757
759
  }
758
760
  }
759
- function Pe(t) {
761
+ function Ue(t) {
760
762
  switch (t.algorithm.name) {
761
763
  case "ECDSA":
762
764
  return {
763
765
  name: t.algorithm.name,
764
- hash: Ut(t.algorithm.namedCurve)
766
+ hash: xt(t.algorithm.namedCurve)
765
767
  };
766
768
  case "RSA-PSS":
767
- switch (le(t.algorithm), t.algorithm.hash.name) {
769
+ switch (he(t.algorithm), t.algorithm.hash.name) {
768
770
  case "SHA-256":
769
771
  case "SHA-384":
770
772
  case "SHA-512":
@@ -776,20 +778,20 @@ function Pe(t) {
776
778
  throw new S();
777
779
  }
778
780
  case "RSASSA-PKCS1-v1_5":
779
- return le(t.algorithm), t.algorithm.name;
781
+ return he(t.algorithm), t.algorithm.name;
780
782
  case "Ed448":
781
783
  case "Ed25519":
782
784
  return t.algorithm.name;
783
785
  }
784
786
  throw new S();
785
787
  }
786
- const Ue = Symbol();
788
+ const Le = Symbol();
787
789
  async function Ct(t, e, n, o) {
788
790
  const a = `${t}.${e}`;
789
- if (!await crypto.subtle.verify(Pe(n), n, o, E(a)))
791
+ if (!await crypto.subtle.verify(Ue(n), n, o, E(a)))
790
792
  throw new s("JWT signature verification failed");
791
793
  }
792
- async function Lt(t, e, n, o, a, r) {
794
+ async function It(t, e, n, o, a, r) {
793
795
  let { 0: i, 1: c, 2: p, length: _ } = t.split(".");
794
796
  if (_ === 5)
795
797
  if (r !== void 0)
@@ -804,22 +806,22 @@ async function Lt(t, e, n, o, a, r) {
804
806
  } catch (l) {
805
807
  throw new s("failed to parse JWT Header body as base64url encoded JSON", { cause: l });
806
808
  }
807
- if (!L(f))
809
+ if (!x(f))
808
810
  throw new s("JWT Header must be a top level object");
809
811
  if (e(f), f.crit !== void 0)
810
812
  throw new s('unexpected JWT "crit" header parameter');
811
813
  const y = A(p);
812
814
  let T;
813
- n !== Ue && (T = await n(f), await Ct(i, c, T, y));
815
+ n !== Le && (T = await n(f), await Ct(i, c, T, y));
814
816
  let h;
815
817
  try {
816
818
  h = JSON.parse(E(A(c)));
817
819
  } catch (l) {
818
820
  throw new s("failed to parse JWT Payload body as base64url encoded JSON", { cause: l });
819
821
  }
820
- if (!L(h))
822
+ if (!x(h))
821
823
  throw new s("JWT Payload must be a top level object");
822
- const J = $() + o;
824
+ const J = F() + o;
823
825
  if (h.exp !== void 0) {
824
826
  if (typeof h.exp != "number")
825
827
  throw new s('unexpected JWT "exp" (expiration time) claim type');
@@ -840,7 +842,7 @@ async function Lt(t, e, n, o, a, r) {
840
842
  throw new s('unexpected JWT "aud" (audience) claim type');
841
843
  return { header: f, claims: h, signature: y, key: T, jwt: t };
842
844
  }
843
- function xt(t, e, n) {
845
+ function jt(t, e, n) {
844
846
  if (t !== void 0) {
845
847
  if (n.alg !== t)
846
848
  throw new s('unexpected JWT "alg" header parameter');
@@ -860,8 +862,8 @@ function k(t, e) {
860
862
  throw new s(`"${e}" parameter must be provided only once`);
861
863
  return n;
862
864
  }
863
- const It = Symbol(), jt = Symbol();
864
- function Jt(t, e, n, o) {
865
+ const Jt = Symbol(), Ot = Symbol();
866
+ function zt(t, e, n, o) {
865
867
  if (I(t), j(e), n instanceof URL && (n = n.searchParams), !(n instanceof URLSearchParams))
866
868
  throw new TypeError('"parameters" must be an instance of URLSearchParams, or URL');
867
869
  if (k(n, "response"))
@@ -873,11 +875,11 @@ function Jt(t, e, n, o) {
873
875
  throw new s('unexpected "iss" (issuer) response parameter value');
874
876
  switch (o) {
875
877
  case void 0:
876
- case jt:
878
+ case Ot:
877
879
  if (r !== void 0)
878
880
  throw new s('unexpected "state" response parameter encountered');
879
881
  break;
880
- case It:
882
+ case Jt:
881
883
  break;
882
884
  default:
883
885
  if (!w(o))
@@ -897,9 +899,9 @@ function Jt(t, e, n, o) {
897
899
  const c = k(n, "id_token"), p = k(n, "token");
898
900
  if (c !== void 0 || p !== void 0)
899
901
  throw new S("implicit and hybrid flows are not supported");
900
- return St(new URLSearchParams(n));
902
+ return kt(new URLSearchParams(n));
901
903
  }
902
- function Ot({
904
+ function Dt({
903
905
  handleCallback: t
904
906
  }) {
905
907
  const e = De({
@@ -909,7 +911,7 @@ function Ot({
909
911
  try {
910
912
  return await t();
911
913
  } catch (n) {
912
- throw new Ne("Could not validate user", {
914
+ throw new Ke("Could not validate user", {
913
915
  cause: n,
914
916
  title: "Authentication Error",
915
917
  developerHint: "Check the configuration of your authorization provider and ensure all settings such as the callback URL are configured correctly."
@@ -917,17 +919,17 @@ function Ot({
917
919
  }
918
920
  }
919
921
  });
920
- return /* @__PURE__ */ fe.jsx(Ke, { to: e.data });
922
+ return /* @__PURE__ */ we.jsx(Ne, { to: e.data });
921
923
  }
922
924
  class P extends Error {
923
925
  }
924
- class de extends P {
926
+ class fe extends P {
925
927
  constructor(e, n, o) {
926
928
  super(e, o), this.error = n;
927
929
  }
928
930
  }
929
- const q = "code-verifier";
930
- class zt extends ze {
931
+ const V = "code-verifier";
932
+ class Nt extends ze {
931
933
  constructor(e, n) {
932
934
  super(), this.callbackUrlPath = e, this.handleCallback = n;
933
935
  }
@@ -936,12 +938,12 @@ class zt extends ze {
936
938
  ...super.getRoutes(),
937
939
  {
938
940
  path: this.callbackUrlPath,
939
- element: /* @__PURE__ */ fe.jsx(Ot, { handleCallback: this.handleCallback })
941
+ element: /* @__PURE__ */ we.jsx(Dt, { handleCallback: this.handleCallback })
940
942
  }
941
943
  ];
942
944
  }
943
945
  }
944
- class Dt {
946
+ class Kt {
945
947
  constructor({
946
948
  issuer: e,
947
949
  audience: n,
@@ -961,7 +963,7 @@ class Dt {
961
963
  b(this, "redirectToAfterSignOut");
962
964
  b(this, "audience");
963
965
  b(this, "signOut", async () => {
964
- C.setState({
966
+ L.setState({
965
967
  isAuthenticated: !1,
966
968
  isPending: !1,
967
969
  profile: void 0,
@@ -978,35 +980,35 @@ class Dt {
978
980
  )) : o = n;
979
981
  });
980
982
  b(this, "handleCallback", async () => {
981
- const e = new URL(window.location.href), n = e.searchParams.get("state"), o = sessionStorage.getItem(q);
982
- if (sessionStorage.removeItem(q), !o)
983
+ const e = new URL(window.location.href), n = e.searchParams.get("state"), o = sessionStorage.getItem(V);
984
+ if (sessionStorage.removeItem(V), !o)
983
985
  throw new P("No code verifier found in state.");
984
- const a = await this.getAuthServer(), r = Jt(
986
+ const a = await this.getAuthServer(), r = zt(
985
987
  a,
986
988
  this.client,
987
989
  e.searchParams,
988
990
  n ?? void 0
989
991
  );
990
- if (G(r))
991
- throw oe.error("Error validating OAuth response", r), new de(
992
+ if (Z(r))
993
+ throw ae.error("Error validating OAuth response", r), new fe(
992
994
  "Error validating OAuth response",
993
995
  r
994
996
  );
995
997
  const i = new URL(e);
996
998
  i.pathname = this.redirectToAfterSignIn, i.search = "";
997
- const c = await Tt(
999
+ const c = await At(
998
1000
  a,
999
1001
  this.client,
1000
1002
  r,
1001
1003
  i.toString(),
1002
1004
  o
1003
- ), p = await Rt(
1005
+ ), p = await Ut(
1004
1006
  a,
1005
1007
  this.client,
1006
1008
  c
1007
1009
  );
1008
1010
  this.setTokensFromResponse(p);
1009
- const _ = await this.getAccessToken(), y = await (await wt(
1011
+ const _ = await this.getAccessToken(), y = await (await mt(
1010
1012
  a,
1011
1013
  this.client,
1012
1014
  _
@@ -1017,7 +1019,7 @@ class Dt {
1017
1019
  emailVerified: y.email_verified ?? !1,
1018
1020
  pictureUrl: y.picture
1019
1021
  };
1020
- C.setState({
1022
+ L.setState({
1021
1023
  isAuthenticated: !0,
1022
1024
  isPending: !1,
1023
1025
  profile: T
@@ -1032,8 +1034,8 @@ class Dt {
1032
1034
  }
1033
1035
  async getAuthServer() {
1034
1036
  if (!this.authorizationServer) {
1035
- const e = new URL(this.issuer), n = await Qe(e);
1036
- this.authorizationServer = await Xe(
1037
+ const e = new URL(this.issuer), n = await et(e);
1038
+ this.authorizationServer = await tt(
1037
1039
  e,
1038
1040
  n
1039
1041
  );
@@ -1045,8 +1047,8 @@ class Dt {
1045
1047
  * @param response
1046
1048
  */
1047
1049
  setTokensFromResponse(e) {
1048
- if (G(e))
1049
- throw oe.error("Bad Token Response", e), new de("Bad Token Response", e);
1050
+ if (Z(e))
1051
+ throw ae.error("Bad Token Response", e), new fe("Bad Token Response", e);
1050
1052
  if (!e.expires_in)
1051
1053
  throw new P("No expires_in in response");
1052
1054
  const n = {
@@ -1055,7 +1057,7 @@ class Dt {
1055
1057
  expiresOn: new Date(Date.now() + e.expires_in * 1e3),
1056
1058
  tokenType: e.token_type
1057
1059
  };
1058
- C.setState({
1060
+ L.setState({
1059
1061
  providerData: n
1060
1062
  });
1061
1063
  }
@@ -1078,8 +1080,8 @@ class Dt {
1078
1080
  const o = "S256", a = await this.getAuthServer();
1079
1081
  if (!a.authorization_endpoint)
1080
1082
  throw new P("No authorization endpoint");
1081
- const r = et(), i = await nt(r);
1082
- sessionStorage.setItem(q, r);
1083
+ const r = nt(), i = await ot(r);
1084
+ sessionStorage.setItem(V, r);
1083
1085
  const c = new URL(
1084
1086
  a.authorization_endpoint
1085
1087
  );
@@ -1092,29 +1094,29 @@ class Dt {
1092
1094
  isSignIn: !n,
1093
1095
  isSignUp: n
1094
1096
  }), ((f = a.code_challenge_methods_supported) == null ? void 0 : f.includes("S256")) !== !0) {
1095
- const y = tt();
1097
+ const y = rt();
1096
1098
  c.searchParams.set("state", y);
1097
1099
  }
1098
1100
  location.href = c.href;
1099
1101
  }
1100
1102
  async getAccessToken() {
1101
- const e = await this.getAuthServer(), { providerData: n } = C.getState();
1103
+ const e = await this.getAuthServer(), { providerData: n } = L.getState();
1102
1104
  if (!n)
1103
1105
  throw new P("User is not authenticated");
1104
1106
  const o = n;
1105
1107
  if (new Date(o.expiresOn) < /* @__PURE__ */ new Date()) {
1106
1108
  if (!o.refreshToken)
1107
- return C.setState({
1109
+ return L.setState({
1108
1110
  isAuthenticated: !1,
1109
1111
  isPending: !1,
1110
1112
  profile: null,
1111
1113
  providerData: null
1112
1114
  }), "";
1113
- const a = await gt(
1115
+ const a = await bt(
1114
1116
  e,
1115
1117
  this.client,
1116
1118
  o.refreshToken
1117
- ), r = await bt(
1119
+ ), r = await vt(
1118
1120
  e,
1119
1121
  this.client,
1120
1122
  a
@@ -1126,12 +1128,12 @@ class Dt {
1126
1128
  return o.accessToken;
1127
1129
  }
1128
1130
  getAuthenticationPlugin() {
1129
- return new zt(this.callbackUrlPath, this.handleCallback);
1131
+ return new Nt(this.callbackUrlPath, this.handleCallback);
1130
1132
  }
1131
1133
  }
1132
- const qt = (t) => new Dt(t);
1134
+ const Gt = (t) => new Kt(t);
1133
1135
  export {
1134
- Dt as OpenIDAuthenticationProvider,
1135
- qt as default
1136
+ Kt as OpenIDAuthenticationProvider,
1137
+ Gt as default
1136
1138
  };
1137
1139
  //# sourceMappingURL=zudoku.auth-openid.js.map