authhero 5.8.1 → 5.9.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 (386) hide show
  1. package/dist/assets/u/widget/index.esm.js +1 -1
  2. package/dist/authhero.cjs +97 -97
  3. package/dist/authhero.d.ts +17622 -72311
  4. package/dist/authhero.mjs +5587 -5593
  5. package/dist/stats.html +1 -1
  6. package/dist/tsconfig.types.tsbuildinfo +1 -0
  7. package/dist/types/adapters/cache/in-memory.d.ts +52 -0
  8. package/dist/types/adapters/cache/index.d.ts +2 -0
  9. package/dist/types/adapters/index.d.ts +1 -0
  10. package/dist/types/authentication-flows/auth0-migration.d.ts +53 -0
  11. package/dist/types/authentication-flows/authorization-code.d.ts +23 -0
  12. package/dist/types/authentication-flows/client-credentials.d.ts +16 -0
  13. package/dist/types/authentication-flows/common.d.ts +253 -0
  14. package/dist/types/authentication-flows/connection.d.ts +17 -0
  15. package/dist/types/authentication-flows/mfa.d.ts +49 -0
  16. package/dist/types/authentication-flows/passkey-enrollment.d.ts +19 -0
  17. package/dist/types/authentication-flows/password.d.ts +24 -0
  18. package/dist/types/authentication-flows/passwordless.d.ts +571 -0
  19. package/dist/types/authentication-flows/refresh-token-migration.d.ts +17 -0
  20. package/dist/types/authentication-flows/refresh-token.d.ts +15 -0
  21. package/dist/types/authentication-flows/resume.d.ts +22 -0
  22. package/dist/types/authentication-flows/silent.d.ts +25 -0
  23. package/dist/types/authentication-flows/ticket.d.ts +7 -0
  24. package/dist/types/authentication-flows/try-connection.d.ts +33 -0
  25. package/dist/types/authentication-flows/universal.d.ts +19 -0
  26. package/dist/types/build-hash.d.ts +7 -0
  27. package/dist/types/client/client-bundle.d.ts +1 -0
  28. package/dist/types/client/form-handler.d.ts +9 -0
  29. package/dist/types/client/incognito-handler.d.ts +5 -0
  30. package/dist/types/client/index.d.ts +1 -0
  31. package/dist/types/client/input-otp.d.ts +12 -0
  32. package/dist/types/client/password-toggle.d.ts +10 -0
  33. package/dist/types/client/user-agent-detector.d.ts +22 -0
  34. package/dist/types/components/AccountChangeEmailPage.d.ts +14 -0
  35. package/dist/types/components/AccountForm.d.ts +17 -0
  36. package/dist/types/components/AccountPage.d.ts +15 -0
  37. package/dist/types/components/AppLogo.d.ts +8 -0
  38. package/dist/types/components/AuthLayout.d.ts +18 -0
  39. package/dist/types/components/Button.d.ts +12 -0
  40. package/dist/types/components/ChangeEmailForm.d.ts +14 -0
  41. package/dist/types/components/ChangeEmailPage.d.ts +15 -0
  42. package/dist/types/components/ContinueForm.d.ts +13 -0
  43. package/dist/types/components/EmailValidatedForm.d.ts +12 -0
  44. package/dist/types/components/EmailValidatedPage.d.ts +11 -0
  45. package/dist/types/components/EnterCodeForm.d.ts +13 -0
  46. package/dist/types/components/EnterCodePage.d.ts +14 -0
  47. package/dist/types/components/EnterPasswordForm.d.ts +14 -0
  48. package/dist/types/components/EnterPasswordPage.d.ts +13 -0
  49. package/dist/types/components/ErrorMessage.d.ts +6 -0
  50. package/dist/types/components/Footer.d.ts +9 -0
  51. package/dist/types/components/ForgotPasswordForm.d.ts +14 -0
  52. package/dist/types/components/ForgotPasswordPage.d.ts +13 -0
  53. package/dist/types/components/ForgotPasswordSentPage.d.ts +11 -0
  54. package/dist/types/components/Form.d.ts +6 -0
  55. package/dist/types/components/FormNodePage.d.ts +16 -0
  56. package/dist/types/components/GoBack.d.ts +5 -0
  57. package/dist/types/components/GoogleLogo.d.ts +4 -0
  58. package/dist/types/components/Icon.d.ts +8 -0
  59. package/dist/types/components/IconEye.d.ts +8 -0
  60. package/dist/types/components/IconEyeSlash.d.ts +8 -0
  61. package/dist/types/components/IconPen.d.ts +7 -0
  62. package/dist/types/components/IdentifierForm.d.ts +16 -0
  63. package/dist/types/components/IdentifierPage.d.ts +15 -0
  64. package/dist/types/components/ImpersonateForm.d.ts +14 -0
  65. package/dist/types/components/ImpersonationPage.d.ts +13 -0
  66. package/dist/types/components/InvalidSessionPage.d.ts +11 -0
  67. package/dist/types/components/Layout.d.ts +11 -0
  68. package/dist/types/components/LoginForm.d.ts +15 -0
  69. package/dist/types/components/MessagePage.d.ts +13 -0
  70. package/dist/types/components/PasswordInput.d.ts +6 -0
  71. package/dist/types/components/PreSignUpConfirmationPage.d.ts +12 -0
  72. package/dist/types/components/PreSignUpPage.d.ts +12 -0
  73. package/dist/types/components/ResetPasswordForm.d.ts +14 -0
  74. package/dist/types/components/ResetPasswordPage.d.ts +12 -0
  75. package/dist/types/components/SignUpForm.d.ts +15 -0
  76. package/dist/types/components/SignUpPage.d.ts +14 -0
  77. package/dist/types/components/SocialButton.d.ts +10 -0
  78. package/dist/types/components/Spinner.d.ts +6 -0
  79. package/dist/types/components/Trans.d.ts +8 -0
  80. package/dist/types/components/UnverifiedEmailPage.d.ts +11 -0
  81. package/dist/types/components/UserNotFoundPage.d.ts +12 -0
  82. package/dist/types/components/VippsLogo.d.ts +4 -0
  83. package/dist/types/components/index.d.ts +34 -0
  84. package/dist/types/components/stories/AccountForm.stories.d.ts +13 -0
  85. package/dist/types/components/stories/AuthLayout.stories.d.ts +27 -0
  86. package/dist/types/components/stories/ChangeEmailForm.stories.d.ts +11 -0
  87. package/dist/types/components/stories/ContinueForm.stories.d.ts +10 -0
  88. package/dist/types/components/stories/EnterCodeForm.stories.d.ts +9 -0
  89. package/dist/types/components/stories/EnterPasswordForm.stories.d.ts +22 -0
  90. package/dist/types/components/stories/IdentifierForm.stories.d.ts +42 -0
  91. package/dist/types/components/stories/IdentifierPage.stories.d.ts +33 -0
  92. package/dist/types/components/stories/ImpersonateForm.stories.d.ts +11 -0
  93. package/dist/types/components/stories/LoginForm.stories.d.ts +12 -0
  94. package/dist/types/components/ui/button.d.ts +12 -0
  95. package/dist/types/components/ui/card.d.ts +30 -0
  96. package/dist/types/components/ui/input-otp.d.ts +31 -0
  97. package/dist/types/components/ui/input.d.ts +15 -0
  98. package/dist/types/components/ui/label.d.ts +9 -0
  99. package/dist/types/constants/defaultBranding.d.ts +2 -0
  100. package/dist/types/constants/defaultTheme.d.ts +2 -0
  101. package/dist/types/constants/index.d.ts +2 -0
  102. package/dist/types/constants.d.ts +15 -0
  103. package/dist/types/email-services/index.d.ts +3 -0
  104. package/dist/types/email-services/mailgun.d.ts +18 -0
  105. package/dist/types/email-services/postmark.d.ts +14 -0
  106. package/dist/types/email-services/resend.d.ts +14 -0
  107. package/dist/types/emails/defaults/Layout.d.ts +12 -0
  108. package/dist/types/emails/defaults/PrimaryButton.d.ts +11 -0
  109. package/dist/types/emails/defaults/ResetEmail.d.ts +1 -0
  110. package/dist/types/emails/defaults/ResetEmailByCode.d.ts +1 -0
  111. package/dist/types/emails/defaults/UserInvitation.d.ts +1 -0
  112. package/dist/types/emails/defaults/VerifyEmail.d.ts +1 -0
  113. package/dist/types/emails/defaults/VerifyEmailByCode.d.ts +1 -0
  114. package/dist/types/emails/defaults/WelcomeEmail.d.ts +1 -0
  115. package/dist/types/emails/defaults/compiled.d.ts +2 -0
  116. package/dist/types/emails/defaults/index.d.ts +6 -0
  117. package/dist/types/emails/defaults/subjects.d.ts +2 -0
  118. package/dist/types/emails/index.d.ts +70 -0
  119. package/dist/types/emails/render.d.ts +41 -0
  120. package/dist/types/errors/is-unique-constraint-error.d.ts +8 -0
  121. package/dist/types/errors/json-http-exception.d.ts +5 -0
  122. package/dist/types/errors/redirect-exception.d.ts +6 -0
  123. package/dist/types/generated/locale-types.d.ts +690 -0
  124. package/dist/types/helpers/cache-wrapper.d.ts +23 -0
  125. package/dist/types/helpers/client-assertion.d.ts +49 -0
  126. package/dist/types/helpers/client-keys.d.ts +27 -0
  127. package/dist/types/helpers/client.d.ts +496 -0
  128. package/dist/types/helpers/dcr/constraint-enforcement.d.ts +24 -0
  129. package/dist/types/helpers/dcr/metadata-mapping.d.ts +83 -0
  130. package/dist/types/helpers/dcr/mint-iat.d.ts +14 -0
  131. package/dist/types/helpers/dcr/mint-token.d.ts +7 -0
  132. package/dist/types/helpers/dcr/validate-connect-origin.d.ts +20 -0
  133. package/dist/types/helpers/dcr/verify-token.d.ts +8 -0
  134. package/dist/types/helpers/default-destinations.d.ts +55 -0
  135. package/dist/types/helpers/entity-hooks-wrapper.d.ts +43 -0
  136. package/dist/types/helpers/hook-events.d.ts +20 -0
  137. package/dist/types/helpers/hook-user-payload.d.ts +8 -0
  138. package/dist/types/helpers/hrd.d.ts +3 -0
  139. package/dist/types/helpers/logging.d.ts +65 -0
  140. package/dist/types/helpers/outbox-cleanup.d.ts +10 -0
  141. package/dist/types/helpers/outbox-destinations/index.d.ts +2 -0
  142. package/dist/types/helpers/outbox-destinations/log-streams.d.ts +66 -0
  143. package/dist/types/helpers/outbox-destinations/logs.d.ts +20 -0
  144. package/dist/types/helpers/outbox-destinations/registration-finalizer.d.ts +29 -0
  145. package/dist/types/helpers/outbox-destinations/webhooks.d.ts +57 -0
  146. package/dist/types/helpers/outbox-relay.d.ts +34 -0
  147. package/dist/types/helpers/password-policy.d.ts +54 -0
  148. package/dist/types/helpers/request-object.d.ts +40 -0
  149. package/dist/types/helpers/run-outbox-relay.d.ts +58 -0
  150. package/dist/types/helpers/saml.d.ts +1 -0
  151. package/dist/types/helpers/scope-claims.d.ts +4 -0
  152. package/dist/types/helpers/scopes-permissions.d.ts +38 -0
  153. package/dist/types/helpers/server-timing.d.ts +12 -0
  154. package/dist/types/helpers/service-token.d.ts +54 -0
  155. package/dist/types/helpers/set-tenant-id.d.ts +15 -0
  156. package/dist/types/helpers/signing-keys.d.ts +16 -0
  157. package/dist/types/helpers/try-connection-client.d.ts +15 -0
  158. package/dist/types/helpers/user-linking.d.ts +14 -0
  159. package/dist/types/helpers/user-session-cleanup.d.ts +21 -0
  160. package/dist/types/helpers/users.d.ts +46 -0
  161. package/dist/types/helpers/wait-until.d.ts +21 -0
  162. package/dist/types/hooks/addDataHooks.d.ts +16 -0
  163. package/dist/types/hooks/code-executor/local.d.ts +13 -0
  164. package/dist/types/hooks/codehooks.d.ts +70 -0
  165. package/dist/types/hooks/formhooks.d.ts +99 -0
  166. package/dist/types/hooks/helpers/token-api.d.ts +17 -0
  167. package/dist/types/hooks/index.d.ts +20 -0
  168. package/dist/types/hooks/link-users.d.ts +29 -0
  169. package/dist/types/hooks/pagehooks.d.ts +16 -0
  170. package/dist/types/hooks/post-user-login.d.ts +29 -0
  171. package/dist/types/hooks/pre-defined/account-linking.d.ts +73 -0
  172. package/dist/types/hooks/pre-defined/ensure-username.d.ts +86 -0
  173. package/dist/types/hooks/pre-defined/index.d.ts +23 -0
  174. package/dist/types/hooks/pre-defined/set-preferred-username.d.ts +26 -0
  175. package/dist/types/hooks/templatehooks.d.ts +29 -0
  176. package/dist/types/hooks/user-deletion.d.ts +14 -0
  177. package/dist/types/hooks/user-registration.d.ts +88 -0
  178. package/dist/types/hooks/user-update.d.ts +16 -0
  179. package/dist/types/hooks/validate-signup.d.ts +34 -0
  180. package/dist/types/hooks/webhooks.d.ts +35 -0
  181. package/dist/types/i18n/index.d.ts +77 -0
  182. package/dist/types/index.d.ts +15791 -0
  183. package/dist/types/locales/index.d.ts +9 -0
  184. package/dist/types/middlewares/apply-config.d.ts +14 -0
  185. package/dist/types/middlewares/authentication.d.ts +26 -0
  186. package/dist/types/middlewares/client-info.d.ts +8 -0
  187. package/dist/types/middlewares/index.d.ts +6 -0
  188. package/dist/types/middlewares/outbox.d.ts +24 -0
  189. package/dist/types/middlewares/register-component.d.ts +10 -0
  190. package/dist/types/middlewares/tenant.d.ts +12 -0
  191. package/dist/types/migration-providers/auth0.d.ts +3 -0
  192. package/dist/types/migration-providers/index.d.ts +5 -0
  193. package/dist/types/migration-providers/types.d.ts +32 -0
  194. package/dist/types/routes/auth-api/account.d.ts +36 -0
  195. package/dist/types/routes/auth-api/authenticate.d.ts +31 -0
  196. package/dist/types/routes/auth-api/authorize.d.ts +239 -0
  197. package/dist/types/routes/auth-api/callback.d.ts +234 -0
  198. package/dist/types/routes/auth-api/connect-start.d.ts +52 -0
  199. package/dist/types/routes/auth-api/dbconnections.d.ts +43 -0
  200. package/dist/types/routes/auth-api/index.d.ts +1580 -0
  201. package/dist/types/routes/auth-api/logout.d.ts +20 -0
  202. package/dist/types/routes/auth-api/oidc-logout.d.ts +52 -0
  203. package/dist/types/routes/auth-api/passwordless.d.ts +154 -0
  204. package/dist/types/routes/auth-api/register/index.d.ts +159 -0
  205. package/dist/types/routes/auth-api/register/shared.d.ts +30 -0
  206. package/dist/types/routes/auth-api/revoke.d.ts +73 -0
  207. package/dist/types/routes/auth-api/token.d.ts +412 -0
  208. package/dist/types/routes/auth-api/userinfo.d.ts +84 -0
  209. package/dist/types/routes/auth-api/well-known.d.ts +74 -0
  210. package/dist/types/routes/management-api/action-executions.d.ts +90 -0
  211. package/dist/types/routes/management-api/action-triggers.d.ts +118 -0
  212. package/dist/types/routes/management-api/actions.d.ts +673 -0
  213. package/dist/types/routes/management-api/analytics.d.ts +18 -0
  214. package/dist/types/routes/management-api/attack-protection.d.ts +189 -0
  215. package/dist/types/routes/management-api/authentication-methods.d.ts +115 -0
  216. package/dist/types/routes/management-api/branding.d.ts +402 -0
  217. package/dist/types/routes/management-api/client-grants.d.ts +183 -0
  218. package/dist/types/routes/management-api/client-registration-tokens.d.ts +35 -0
  219. package/dist/types/routes/management-api/clients.d.ts +995 -0
  220. package/dist/types/routes/management-api/connections.d.ts +872 -0
  221. package/dist/types/routes/management-api/custom-domains.d.ts +266 -0
  222. package/dist/types/routes/management-api/email-templates.d.ts +205 -0
  223. package/dist/types/routes/management-api/emails.d.ts +124 -0
  224. package/dist/types/routes/management-api/failed-events.d.ts +146 -0
  225. package/dist/types/routes/management-api/flows.d.ts +438 -0
  226. package/dist/types/routes/management-api/forms.d.ts +4090 -0
  227. package/dist/types/routes/management-api/guardian.d.ts +211 -0
  228. package/dist/types/routes/management-api/hook-code.d.ts +142 -0
  229. package/dist/types/routes/management-api/hooks.d.ts +405 -0
  230. package/dist/types/routes/management-api/index.d.ts +13210 -0
  231. package/dist/types/routes/management-api/keys.d.ts +98 -0
  232. package/dist/types/routes/management-api/log-streams.d.ts +170 -0
  233. package/dist/types/routes/management-api/logs.d.ts +159 -0
  234. package/dist/types/routes/management-api/migration-sources.d.ts +173 -0
  235. package/dist/types/routes/management-api/organizations.d.ts +896 -0
  236. package/dist/types/routes/management-api/prompts.d.ts +150 -0
  237. package/dist/types/routes/management-api/refresh_tokens.d.ts +66 -0
  238. package/dist/types/routes/management-api/resource-servers.d.ts +321 -0
  239. package/dist/types/routes/management-api/roles.d.ts +260 -0
  240. package/dist/types/routes/management-api/sessions.d.ts +78 -0
  241. package/dist/types/routes/management-api/stats.d.ts +44 -0
  242. package/dist/types/routes/management-api/tenants.d.ts +546 -0
  243. package/dist/types/routes/management-api/themes.d.ts +265 -0
  244. package/dist/types/routes/management-api/tickets.d.ts +75 -0
  245. package/dist/types/routes/management-api/users-by-email.d.ts +23 -0
  246. package/dist/types/routes/management-api/users.d.ts +1085 -0
  247. package/dist/types/routes/saml/index.d.ts +64 -0
  248. package/dist/types/routes/saml/samlp.d.ts +64 -0
  249. package/dist/types/routes/setup.d.ts +6 -0
  250. package/dist/types/routes/universal-login/account-change-email-confirmation.d.ts +30 -0
  251. package/dist/types/routes/universal-login/account-change-email-verify.d.ts +66 -0
  252. package/dist/types/routes/universal-login/account-change-email.d.ts +58 -0
  253. package/dist/types/routes/universal-login/account.d.ts +64 -0
  254. package/dist/types/routes/universal-login/common.d.ts +1482 -0
  255. package/dist/types/routes/universal-login/continue.d.ts +37 -0
  256. package/dist/types/routes/universal-login/enter-password.d.ts +49 -0
  257. package/dist/types/routes/universal-login/error-handler.d.ts +14 -0
  258. package/dist/types/routes/universal-login/error-page.d.ts +32 -0
  259. package/dist/types/routes/universal-login/error.d.ts +20 -0
  260. package/dist/types/routes/universal-login/flow-api.d.ts +381 -0
  261. package/dist/types/routes/universal-login/flow-widget.d.ts +23 -0
  262. package/dist/types/routes/universal-login/forgot-password.d.ts +32 -0
  263. package/dist/types/routes/universal-login/form-node.d.ts +74 -0
  264. package/dist/types/routes/universal-login/identifier.d.ts +55 -0
  265. package/dist/types/routes/universal-login/impersonate.d.ts +71 -0
  266. package/dist/types/routes/universal-login/index.d.ts +748 -0
  267. package/dist/types/routes/universal-login/info.d.ts +20 -0
  268. package/dist/types/routes/universal-login/invalid-session.d.ts +19 -0
  269. package/dist/types/routes/universal-login/otp-challenge.d.ts +54 -0
  270. package/dist/types/routes/universal-login/pre-signup-sent.d.ts +19 -0
  271. package/dist/types/routes/universal-login/pre-signup.d.ts +32 -0
  272. package/dist/types/routes/universal-login/reset-password.d.ts +39 -0
  273. package/dist/types/routes/universal-login/sanitization-utils.d.ts +55 -0
  274. package/dist/types/routes/universal-login/screen-api.d.ts +20 -0
  275. package/dist/types/routes/universal-login/screens/accept-invitation.d.ts +13 -0
  276. package/dist/types/routes/universal-login/screens/account-delete.d.ts +14 -0
  277. package/dist/types/routes/universal-login/screens/account-helpers.d.ts +13 -0
  278. package/dist/types/routes/universal-login/screens/account-linked.d.ts +14 -0
  279. package/dist/types/routes/universal-login/screens/account-mfa-phone-enrollment.d.ts +10 -0
  280. package/dist/types/routes/universal-login/screens/account-mfa-totp-enrollment.d.ts +10 -0
  281. package/dist/types/routes/universal-login/screens/account-passkeys.d.ts +10 -0
  282. package/dist/types/routes/universal-login/screens/account-profile.d.ts +14 -0
  283. package/dist/types/routes/universal-login/screens/account-security.d.ts +14 -0
  284. package/dist/types/routes/universal-login/screens/account.d.ts +14 -0
  285. package/dist/types/routes/universal-login/screens/connect-consent.d.ts +9 -0
  286. package/dist/types/routes/universal-login/screens/connect-tenant-select.d.ts +13 -0
  287. package/dist/types/routes/universal-login/screens/email-otp-challenge.d.ts +14 -0
  288. package/dist/types/routes/universal-login/screens/enter-password.d.ts +14 -0
  289. package/dist/types/routes/universal-login/screens/forgot-password.d.ts +11 -0
  290. package/dist/types/routes/universal-login/screens/identifier.d.ts +14 -0
  291. package/dist/types/routes/universal-login/screens/impersonate.d.ts +15 -0
  292. package/dist/types/routes/universal-login/screens/index.d.ts +29 -0
  293. package/dist/types/routes/universal-login/screens/login-passwordless-identifier.d.ts +17 -0
  294. package/dist/types/routes/universal-login/screens/login.d.ts +17 -0
  295. package/dist/types/routes/universal-login/screens/magic-link-sent.d.ts +11 -0
  296. package/dist/types/routes/universal-login/screens/mfa-login-options.d.ts +21 -0
  297. package/dist/types/routes/universal-login/screens/mfa-phone-challenge.d.ts +14 -0
  298. package/dist/types/routes/universal-login/screens/mfa-phone-enrollment.d.ts +14 -0
  299. package/dist/types/routes/universal-login/screens/mfa-totp-challenge.d.ts +14 -0
  300. package/dist/types/routes/universal-login/screens/mfa-totp-enrollment.d.ts +17 -0
  301. package/dist/types/routes/universal-login/screens/passkey-challenge.d.ts +16 -0
  302. package/dist/types/routes/universal-login/screens/passkey-enrollment-nudge.d.ts +17 -0
  303. package/dist/types/routes/universal-login/screens/passkey-enrollment.d.ts +11 -0
  304. package/dist/types/routes/universal-login/screens/passkey-utils.d.ts +100 -0
  305. package/dist/types/routes/universal-login/screens/registry.d.ts +28 -0
  306. package/dist/types/routes/universal-login/screens/reset-password-code.d.ts +18 -0
  307. package/dist/types/routes/universal-login/screens/reset-password.d.ts +36 -0
  308. package/dist/types/routes/universal-login/screens/signup.d.ts +14 -0
  309. package/dist/types/routes/universal-login/screens/sms-otp-challenge.d.ts +14 -0
  310. package/dist/types/routes/universal-login/screens/try-connection-result.d.ts +12 -0
  311. package/dist/types/routes/universal-login/screens/types.d.ts +167 -0
  312. package/dist/types/routes/universal-login/signup.d.ts +54 -0
  313. package/dist/types/routes/universal-login/u2-form-node.d.ts +93 -0
  314. package/dist/types/routes/universal-login/u2-index.d.ts +173 -0
  315. package/dist/types/routes/universal-login/u2-routes.d.ts +98 -0
  316. package/dist/types/routes/universal-login/u2-widget-page.d.ts +187 -0
  317. package/dist/types/routes/universal-login/universal-login-template.d.ts +55 -0
  318. package/dist/types/routes/universal-login/validate-email.d.ts +20 -0
  319. package/dist/types/routes/universal-login/widget-routes.d.ts +81 -0
  320. package/dist/types/seed.d.ts +86 -0
  321. package/dist/types/state-machines/index.d.ts +1 -0
  322. package/dist/types/state-machines/login-session.d.ts +173 -0
  323. package/dist/types/storybook-utils/HonoJSXWrapper.d.ts +43 -0
  324. package/dist/types/strategies/apple.d.ts +24 -0
  325. package/dist/types/strategies/facebook.d.ts +20 -0
  326. package/dist/types/strategies/github.d.ts +23 -0
  327. package/dist/types/strategies/google-oauth2.d.ts +43 -0
  328. package/dist/types/strategies/index.d.ts +69 -0
  329. package/dist/types/strategies/internal-oauth2.d.ts +17 -0
  330. package/dist/types/strategies/microsoft.d.ts +24 -0
  331. package/dist/types/strategies/oauth2.d.ts +38 -0
  332. package/dist/types/strategies/oidc.d.ts +38 -0
  333. package/dist/types/strategies/saml.d.ts +9 -0
  334. package/dist/types/strategies/vipps.d.ts +16 -0
  335. package/dist/types/styles/index.d.ts +9 -0
  336. package/dist/types/styles/tailwind.d.ts +1 -0
  337. package/dist/types/types/Auth0Client.d.ts +9 -0
  338. package/dist/types/types/AuthError.d.ts +14 -0
  339. package/dist/types/types/AuthHeroConfig.d.ts +415 -0
  340. package/dist/types/types/Bindings.d.ts +51 -0
  341. package/dist/types/types/GrantFlowResult.d.ts +22 -0
  342. package/dist/types/types/Hooks.d.ts +240 -0
  343. package/dist/types/types/IdToken.d.ts +30 -0
  344. package/dist/types/types/UserInfo.d.ts +8 -0
  345. package/dist/types/types/Variables.d.ts +33 -0
  346. package/dist/types/types/auth0/Query.d.ts +12 -0
  347. package/dist/types/types/auth0/Totals.d.ts +11 -0
  348. package/dist/types/types/auth0/UserResponse.d.ts +46 -0
  349. package/dist/types/types/auth0/index.d.ts +3 -0
  350. package/dist/types/types/index.d.ts +6 -0
  351. package/dist/types/types/saml.d.ts +1 -0
  352. package/dist/types/utils/append-log.d.ts +10 -0
  353. package/dist/types/utils/auth-header.d.ts +18 -0
  354. package/dist/types/utils/auth0-upstream.d.ts +60 -0
  355. package/dist/types/utils/authIframe.d.ts +11 -0
  356. package/dist/types/utils/client-info.d.ts +47 -0
  357. package/dist/types/utils/color.d.ts +23 -0
  358. package/dist/types/utils/connections.d.ts +11 -0
  359. package/dist/types/utils/cookies.d.ts +28 -0
  360. package/dist/types/utils/crypto.d.ts +2 -0
  361. package/dist/types/utils/deep-merge.d.ts +6 -0
  362. package/dist/types/utils/encryption.d.ts +22 -0
  363. package/dist/types/utils/entity-id.d.ts +13 -0
  364. package/dist/types/utils/fetchAll.d.ts +60 -0
  365. package/dist/types/utils/form-post.d.ts +1 -0
  366. package/dist/types/utils/id-token-hash.d.ts +1 -0
  367. package/dist/types/utils/incognito.d.ts +11 -0
  368. package/dist/types/utils/instance-to-json.d.ts +8 -0
  369. package/dist/types/utils/ip.d.ts +8 -0
  370. package/dist/types/utils/is-valid-redirect-url.d.ts +4 -0
  371. package/dist/types/utils/jwk-alg.d.ts +20 -0
  372. package/dist/types/utils/jwks.d.ts +41 -0
  373. package/dist/types/utils/jwt.d.ts +15 -0
  374. package/dist/types/utils/organization-id.d.ts +2 -0
  375. package/dist/types/utils/otp.d.ts +1 -0
  376. package/dist/types/utils/refresh-token-format.d.ts +20 -0
  377. package/dist/types/utils/safe-compare.d.ts +1 -0
  378. package/dist/types/utils/sort.d.ts +4 -0
  379. package/dist/types/utils/ssrf-fetch.d.ts +44 -0
  380. package/dist/types/utils/ulid.d.ts +1 -0
  381. package/dist/types/utils/url.d.ts +16 -0
  382. package/dist/types/utils/user-id.d.ts +2 -0
  383. package/dist/types/utils/username-password-provider.d.ts +67 -0
  384. package/dist/types/utils/username.d.ts +11 -0
  385. package/dist/types/variables.d.ts +4 -0
  386. package/package.json +11 -11
@@ -0,0 +1,33 @@
1
+ import { Context } from "hono";
2
+ import { LoginSession } from "@authhero/adapter-interfaces";
3
+ import { Bindings, Variables } from "../types";
4
+ export declare const TRY_CONNECTION_STATE_KEY = "try_connection_result";
5
+ export interface TryConnectionSuccess {
6
+ status: "success";
7
+ connection_id: string;
8
+ connection_name: string;
9
+ strategy: string;
10
+ userinfo: Record<string, unknown>;
11
+ raw: Record<string, unknown> | null;
12
+ completed_at: string;
13
+ }
14
+ export interface TryConnectionError {
15
+ status: "error";
16
+ connection_id?: string;
17
+ connection_name?: string;
18
+ strategy?: string;
19
+ error: string;
20
+ error_description?: string;
21
+ completed_at: string;
22
+ }
23
+ export type TryConnectionResult = TryConnectionSuccess | TryConnectionError;
24
+ /**
25
+ * Persist a try-connection outcome onto the originating login session's
26
+ * `state_data` and 302 to the redirect_uri the test client requested,
27
+ * preserving the original state so the result screen can locate the row.
28
+ */
29
+ export declare function writeTryConnectionResult(ctx: Context<{
30
+ Bindings: Bindings;
31
+ Variables: Variables;
32
+ }>, tenantId: string, loginSession: LoginSession, result: TryConnectionResult): Promise<Response>;
33
+ export declare function readTryConnectionResult(loginSession: LoginSession): TryConnectionResult | null;
@@ -0,0 +1,19 @@
1
+ import { Context } from "hono";
2
+ import { AuthParams, Session } from "@authhero/adapter-interfaces";
3
+ import { EnrichedClient } from "../helpers/client";
4
+ import { Bindings, Variables } from "../types";
5
+ interface UniversalAuthParams {
6
+ ctx: Context<{
7
+ Bindings: Bindings;
8
+ Variables: Variables;
9
+ }>;
10
+ client: EnrichedClient;
11
+ session?: Session;
12
+ authParams: AuthParams;
13
+ auth0Client?: string;
14
+ connection?: string;
15
+ login_hint?: string;
16
+ screen_hint?: string;
17
+ }
18
+ export declare function universalAuth({ ctx, session, client, authParams, connection, login_hint, screen_hint, }: UniversalAuthParams): Promise<Response>;
19
+ export {};
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Build-time cache-busting hash for static assets.
3
+ *
4
+ * Vite replaces `process.env.AUTHHERO_BUILD_HASH` at build time with a
5
+ * unique string literal per build. During dev/tsc it falls back to "dev".
6
+ */
7
+ export declare const buildHash: string;
@@ -0,0 +1 @@
1
+ export declare const clientJs = "var ot={Stringify:1},I=(e,t)=>{const r=new String(e);return r.isEscaped=!0,r.callbacks=t,r},st=/[&<>'\"]/,lt=async(e,t)=>{let r=\"\";t||=[];const n=await Promise.all(e);for(let i=n.length-1;r+=n[i],i--,!(i<0);i--){let a=n[i];typeof a==\"object\"&&t.push(...a.callbacks||[]);const o=a.isEscaped;if(a=await(typeof a==\"object\"?a.toString():a),typeof a==\"object\"&&t.push(...a.callbacks||[]),a.isEscaped??o)r+=a;else{const l=[r];N(a,l),r=l[0]}}return I(r,t)},N=(e,t)=>{const r=e.search(st);if(r===-1){t[0]+=e;return}let n,i,a=0;for(i=r;i<e.length;i++){switch(e.charCodeAt(i)){case 34:n=\"&quot;\";break;case 39:n=\"&#39;\";break;case 38:n=\"&amp;\";break;case 60:n=\"&lt;\";break;case 62:n=\"&gt;\";break;default:continue}t[0]+=e.substring(a,i)+n,a=i+1}t[0]+=e.substring(a,i)},ct=e=>{const t=e.callbacks;if(!t?.length)return e;const r=[e],n={};return t.forEach(i=>i({phase:ot.Stringify,buffer:r,context:n})),r[0]},ue=Symbol(\"RENDERER\"),oe=Symbol(\"ERROR_HANDLER\"),y=Symbol(\"STASH\"),Fe=Symbol(\"INTERNAL\"),ut=Symbol(\"MEMO\"),Z=Symbol(\"PERMALINK\"),be=e=>(e[Fe]=!0,e),He=e=>({value:t,children:r})=>{if(!r)return;const n={children:[{tag:be(()=>{e.push(t)}),props:{}}]};Array.isArray(r)?n.children.push(...r.flat()):n.children.push(r),n.children.push({tag:be(()=>{e.pop()}),props:{}});const i={tag:\"\",props:n,type:\"\"};return i[oe]=a=>{throw e.pop(),a},i},je=e=>{const t=[e],r=He(t);return r.values=t,r.Provider=r,D.push(r),r},D=[],Ve=e=>{const t=[e],r=(n=>{t.push(n.value);let i;try{i=n.children?(Array.isArray(n.children)?new Ze(\"\",{},n.children):n.children).toString():\"\"}catch(a){throw t.pop(),a}return i instanceof Promise?i.finally(()=>t.pop()).then(a=>I(a,a.callbacks)):(t.pop(),I(i))});return r.values=t,r.Provider=r,r[ue]=He(t),D.push(r),r},R=e=>e.values.at(-1),J={title:[],script:[\"src\"],style:[\"data-href\"],link:[\"href\"],meta:[\"name\",\"httpEquiv\",\"charset\",\"itemProp\"]},se={},x=\"data-precedence\",Ke=e=>e.rel===\"stylesheet\"&&\"precedence\"in e,Ue=(e,t)=>e===\"link\"?t:J[e].length>0,H=e=>Array.isArray(e)?e:[e],we=new WeakMap,Se=(e,t,r,n)=>({buffer:i,context:a})=>{if(!i)return;const o=we.get(a)||{};we.set(a,o);const l=o[e]||=[];let v=!1;const c=J[e],s=Ue(e,n!==void 0);if(s){e:for(const[,u]of l)if(!(e===\"link\"&&!(u.rel===\"stylesheet\"&&u[x]!==void 0))){for(const f of c)if((u?.[f]??null)===r?.[f]){v=!0;break e}}}if(v?i[0]=i[0].replaceAll(t,\"\"):s||e===\"link\"?l.push([t,r,n]):l.unshift([t,r,n]),i[0].indexOf(\"</head>\")!==-1){let u;if(e===\"link\"||n!==void 0){const f=[];u=l.map(([d,,h],E)=>{if(h===void 0)return[d,Number.MAX_SAFE_INTEGER,E];let p=f.indexOf(h);return p===-1&&(f.push(h),p=f.length-1),[d,p,E]}).sort((d,h)=>d[1]-h[1]||d[2]-h[2]).map(([d])=>d)}else u=l.map(([f])=>f);u.forEach(f=>{i[0]=i[0].replaceAll(f,\"\")}),i[0]=i[0].replace(/(?=<\\/head>)/,u.join(\"\"))}},j=(e,t,r)=>I(new C(e,r,H(t??[])).toString()),V=(e,t,r,n)=>{if(\"itemProp\"in r)return j(e,t,r);let{precedence:i,blocking:a,...o}=r;i=n?i??\"\":void 0,n&&(o[x]=i);const l=new C(e,o,H(t||[])).toString();return l instanceof Promise?l.then(v=>I(l,[...v.callbacks||[],Se(e,v,o,i)])):I(l,[Se(e,l,o,i)])},ft=({children:e,...t})=>{const r=fe();if(r){const n=R(r);if(n===\"svg\"||n===\"head\")return new C(\"title\",t,H(e??[]))}return V(\"title\",e,t,!1)},vt=({children:e,...t})=>{const r=fe();return[\"src\",\"async\"].some(n=>!t[n])||r&&R(r)===\"head\"?j(\"script\",e,t):V(\"script\",e,t,!1)},dt=({children:e,...t})=>[\"href\",\"precedence\"].every(r=>r in t)?(t[\"data-href\"]=t.href,delete t.href,V(\"style\",e,t,!0)):j(\"style\",e,t),ht=({children:e,...t})=>[\"onLoad\",\"onError\"].some(r=>r in t)||t.rel===\"stylesheet\"&&(!(\"precedence\"in t)||\"disabled\"in t)?j(\"link\",e,t):V(\"link\",e,t,Ke(t)),pt=({children:e,...t})=>{const r=fe();return r&&R(r)===\"head\"?j(\"meta\",e,t):V(\"meta\",e,t,!1)},We=(e,{children:t,...r})=>new C(e,r,H(t??[])),gt=e=>(typeof e.action==\"function\"&&(e.action=Z in e.action?e.action[Z]:void 0),We(\"form\",e)),ze=(e,t)=>(typeof t.formAction==\"function\"&&(t.formAction=Z in t.formAction?t.formAction[Z]:void 0),We(e,t)),mt=e=>ze(\"input\",e),yt=e=>ze(\"button\",e);const Y=Object.freeze(Object.defineProperty({__proto__:null,button:yt,form:gt,input:mt,link:ht,meta:pt,script:vt,style:dt,title:ft},Symbol.toStringTag,{value:\"Module\"}));var Et=new Map([[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"crossOrigin\",\"crossorigin\"],[\"httpEquiv\",\"http-equiv\"],[\"itemProp\",\"itemprop\"],[\"fetchPriority\",\"fetchpriority\"],[\"noModule\",\"nomodule\"],[\"formAction\",\"formaction\"]]),G=e=>Et.get(e)||e,bt=/[\\s\"'<>/=`\\\\\\x00-\\x1f\\x7f-\\x9f]/,ee=new Set,Ae=1024,wt=/^[!?]|[\\s\"'<>/=`\\\\\\x00-\\x1f\\x7f-\\x9f]/,Ce=new Set,St=256,_=(e,t,r)=>{e.size>=t&&e.clear(),e.add(r)},At=e=>Ce.has(e)?!0:typeof e!=\"string\"?!1:e.length===0?!0:wt.test(e)?!1:(_(Ce,St,e),!0),Ct=e=>{if(ee.has(e))return!0;const t=e.length;if(t===0)return!1;for(let r=0;r<t;r++){const n=e.charCodeAt(r);if(!(n>=97&&n<=122||n>=65&&n<=90||n>=48&&n<=57||n===45||n===95||n===46||n===58))return bt.test(e)?!1:(_(ee,Ae,e),!0)}return _(ee,Ae,e),!0},kt=/[\\s\"'():;\\\\/\\[\\]{}\\x00-\\x1f\\x7f-\\x9f]/,te=new Set,ke=1024,Pt=e=>{if(te.has(e))return!0;const t=e.length;if(t===0)return!1;for(let r=0;r<t;r++){const n=e.charCodeAt(r);if(!(n>=97&&n<=122||n>=65&&n<=90||n>=48&&n<=57||n===45||n===95))return kt.test(e)?!1:(_(te,ke,e),!0)}return _(te,ke,e),!0},It=/[;\"'\\\\/\\[\\](){}]/,Tt=e=>{if(!It.test(e))return!1;let t=0;const r=[];for(let n=0,i=e.length;n<i;n++){const a=e.charCodeAt(n);if(a===92){if(n===i-1)return!0;n++}else if(t!==0){if(a===10||a===12||a===13)return!0;a===t&&(t=0)}else if(a===47&&e.charCodeAt(n+1)===42){const o=e.indexOf(\"*/\",n+2);if(o===-1)return!0;n=o+1}else if(a===34||a===39)t=a;else if(a===40)r.push(41);else if(a===91)r.push(93);else{if(a===123||a===125)return!0;if(a===41||a===93){if(r[r.length-1]!==a)return!0;r.pop()}else if(a===59&&r.length===0)return!0}}return t!==0||r.length!==0},Xe=(e,t)=>{for(const[r,n]of Object.entries(e)){const i=r[0]===\"-\"||!/[A-Z]/.test(r)?r:r.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`);if(!Pt(i))continue;if(n==null){t(i,null);continue}let a;if(typeof n==\"number\")a=i.match(/^(?:a|border-im|column(?:-c|s)|flex(?:$|-[^b])|grid-(?:ar|[^a])|font-w|li|or|sca|st|ta|wido|z)|ty$/)?`${n}`:`${n}px`;else if(typeof n==\"string\"){if(Tt(n))continue;a=n}else continue;t(i,a)}},q=void 0,fe=()=>q,xt=e=>/[A-Z]/.test(e)&&e.match(/^(?:al|basel|clip(?:Path|Rule)$|co|do|fill|fl|fo|gl|let|lig|i|marker[EMS]|o|pai|pointe|sh|st[or]|text[^L]|tr|u|ve|w)/)?e.replace(/([A-Z])/g,\"-$1\").toLowerCase():e,Nt=[\"area\",\"base\",\"br\",\"col\",\"embed\",\"hr\",\"img\",\"input\",\"keygen\",\"link\",\"meta\",\"param\",\"source\",\"track\",\"wbr\"],Dt=[\"allowfullscreen\",\"async\",\"autofocus\",\"autoplay\",\"checked\",\"controls\",\"default\",\"defer\",\"disabled\",\"download\",\"formnovalidate\",\"hidden\",\"inert\",\"ismap\",\"itemscope\",\"loop\",\"multiple\",\"muted\",\"nomodule\",\"novalidate\",\"open\",\"playsinline\",\"readonly\",\"required\",\"reversed\",\"selected\"],ve=(e,t)=>{for(let r=0,n=e.length;r<n;r++){const i=e[r];if(typeof i==\"string\")N(i,t);else{if(typeof i==\"boolean\"||i===null||i===void 0)continue;i instanceof C?i.toStringToBuffer(t):typeof i==\"number\"||i.isEscaped?t[0]+=i:i instanceof Promise?t.unshift(\"\",i):ve(i,t)}}},C=class{tag;props;key;children;isEscaped=!0;localContexts;constructor(e,t,r){if(typeof e!=\"function\"&&!At(e))throw new Error(`Invalid JSX tag name: ${e}`);this.tag=e,this.props=t,this.children=r}get type(){return this.tag}get ref(){return this.props.ref||null}toString(){const e=[\"\"];this.localContexts?.forEach(([t,r])=>{t.values.push(r)});try{this.toStringToBuffer(e)}finally{this.localContexts?.forEach(([t])=>{t.values.pop()})}return e.length===1?\"callbacks\"in e?ct(I(e[0],e.callbacks)).toString():e[0]:lt(e,e.callbacks)}toStringToBuffer(e){const t=this.tag,r=this.props;let{children:n}=this;e[0]+=`<${t}`;const i=t===\"svg\"||q&&R(q)===\"svg\"?a=>xt(G(a)):a=>G(a);for(let[a,o]of Object.entries(r))if(a=i(a),!!Ct(a)&&a!==\"children\"){if(a===\"style\"&&typeof o==\"object\"){let l=\"\";Xe(o,(v,c)=>{c!=null&&(l+=`${l?\";\":\"\"}${v}:${c}`)}),e[0]+=' style=\"',N(l,e),e[0]+='\"'}else if(typeof o==\"string\")e[0]+=` ${a}=\"`,N(o,e),e[0]+='\"';else if(o!=null)if(typeof o==\"number\"||o.isEscaped)e[0]+=` ${a}=\"${o}\"`;else if(typeof o==\"boolean\"&&Dt.includes(a))o&&(e[0]+=` ${a}=\"\"`);else if(a===\"dangerouslySetInnerHTML\"){if(n.length>0)throw new Error(\"Can only set one of `children` or `props.dangerouslySetInnerHTML`.\");n=[I(o.__html)]}else if(o instanceof Promise)e[0]+=` ${a}=\"`,e.unshift('\"',o);else if(typeof o==\"function\"){if(!a.startsWith(\"on\")&&a!==\"ref\")throw new Error(`Invalid prop '${a}' of type 'function' supplied to '${t}'.`)}else e[0]+=` ${a}=\"`,N(o.toString(),e),e[0]+='\"'}if(Nt.includes(t)&&n.length===0){e[0]+=\"/>\";return}e[0]+=\">\",ve(n,e),e[0]+=`</${t}>`}},re=class extends C{toStringToBuffer(e){const{children:t}=this,r={...this.props};t.length&&(r.children=t.length===1?t[0]:t);const n=this.tag.call(null,r);if(!(typeof n==\"boolean\"||n==null))if(n instanceof Promise)if(D.length===0)e.unshift(\"\",n);else{const i=D.map(a=>[a,a.values.at(-1)]);e.unshift(\"\",n.then(a=>(a instanceof C&&(a.localContexts=i),a)))}else n instanceof C?n.toStringToBuffer(e):typeof n==\"number\"||n.isEscaped?(e[0]+=n,n.callbacks&&(e.callbacks||=[],e.callbacks.push(...n.callbacks))):N(n,e)}},Ze=class extends C{toStringToBuffer(e){ve(this.children,e)}},Pe=!1,ne=(e,t,r)=>{if(!Pe){for(const n in se)Y[n][ue]=se[n];Pe=!0}return typeof e==\"function\"?new re(e,t,r):Y[e]?new re(Y[e],t,r):e===\"svg\"||e===\"head\"?(q||=Ve(\"\"),new C(e,t,[new re(q,{value:e},r)])):new C(e,t,r)},Lt=({children:e})=>new Ze(\"\",{children:e},Array.isArray(e)?e:e?[e]:[]);function U(e,t,r){let n;if(!t||!(\"children\"in t))n=ne(e,t,[]);else{const i=t.children;n=Array.isArray(i)?ne(e,t,i):ne(e,t,[i])}return n.key=r,n}var F=\"_hp\",Mt={Change:\"Input\",DoubleClick:\"DblClick\"},Rt={svg:\"2000/svg\",math:\"1998/Math/MathML\"},L=[],le=new WeakMap,M=void 0,Ot=()=>M,P=e=>\"t\"in e,ae={onClick:[\"click\",!1]},Ie=e=>{if(!e.startsWith(\"on\"))return;if(ae[e])return ae[e];const t=e.match(/^on([A-Z][a-zA-Z]+?(?:PointerCapture)?)(Capture)?$/);if(t){const[,r,n]=t;return ae[e]=[(Mt[r]||r).toLowerCase(),!!n]}},Te=(e,t)=>M&&e instanceof SVGElement&&/[A-Z]/.test(t)&&(t in e.style||t.match(/^(?:o|pai|str|u|ve)/))?t.replace(/([A-Z])/g,\"-$1\").toLowerCase():t,Je=e=>e==null||e===!1?null:e,$t=(e,t)=>{\"value\"in t&&(e.value=Je(t.value),!e.multiple&&e.selectedIndex===-1&&(e.selectedIndex=0))},xe=e=>e instanceof DOMException&&e.name===\"InvalidCharacterError\",Bt=(e,t,r)=>{t||={};for(let n in t){const i=t[n];if(n!==\"children\"&&(!r||r[n]!==i)){n=G(n);const a=Ie(n);if(a){if(r?.[n]!==i&&(r&&e.removeEventListener(a[0],r[n],a[1]),i!=null)){if(typeof i!=\"function\")throw new Error(`Event handler for \"${n}\" is not a function`);e.addEventListener(a[0],i,a[1])}}else if(n===\"dangerouslySetInnerHTML\"&&i)e.innerHTML=i.__html;else if(n===\"ref\"){let o;typeof i==\"function\"?o=i(e)||(()=>i(null)):i&&\"current\"in i&&(i.current=e,o=()=>i.current=null),le.set(e,o)}else if(n===\"style\"){const o=e.style;typeof i==\"string\"?o.cssText=i:(o.cssText=\"\",i!=null&&Xe(i,o.setProperty.bind(o)))}else{if(n===\"value\"){const l=e.nodeName;if(l===\"SELECT\")continue;if((l===\"INPUT\"||l===\"TEXTAREA\")&&(e.value=Je(i),l===\"TEXTAREA\")){e.textContent=i;continue}}else(n===\"checked\"&&e.nodeName===\"INPUT\"||n===\"selected\"&&e.nodeName===\"OPTION\")&&(e[n]=i);const o=Te(e,n);try{i==null||i===!1?e.removeAttribute(o):i===!0?e.setAttribute(o,\"\"):typeof i==\"string\"||typeof i==\"number\"?e.setAttribute(o,i):e.setAttribute(o,i.toString())}catch(l){if(!xe(l))throw l}}}}if(r)for(let n in r){const i=r[n];if(n!==\"children\"&&!(n in t)){n=G(n);const a=Ie(n);if(a)e.removeEventListener(a[0],i,a[1]);else if(n===\"ref\")le.get(e)?.();else try{e.removeAttribute(Te(e,n))}catch(o){if(!xe(o))throw o}}}},_t=(e,t)=>{t[y][0]=0,L.push([e,t]);const r=t.tag[ue]||t.tag,n=r.defaultProps?{...r.defaultProps,...t.props}:t.props;try{return[r.call(null,n)]}finally{L.pop()}},Ge=(e,t,r,n,i)=>{e.vR?.length&&(n.push(...e.vR),delete e.vR),typeof e.tag==\"function\"&&e[y][1][he]?.forEach(a=>i.push(a)),e.vC.forEach(a=>{if(P(a))r.push(a);else if(typeof a.tag==\"function\"||a.tag===\"\"){a.c=t;const o=r.length;if(Ge(a,t,r,n,i),a.s){for(let l=o;l<r.length;l++)r[l].s=!0;a.s=!1}}else r.push(a),a.vR?.length&&(n.push(...a.vR),delete a.vR)})},qt=e=>{for(;e&&(e.tag===F||!e.e);)e=e.tag===F||!e.vC?.[0]?e.nN:e.vC[0];return e?.e},Qe=e=>{P(e)||(e[y]?.[1][he]?.forEach(t=>t[2]?.()),le.get(e.e)?.(),e.p===2&&e.vC?.forEach(t=>t.p=2),e.vC?.forEach(Qe)),e.p||(e.e?.remove(),delete e.e),typeof e.tag==\"function\"&&(B.delete(e),W.delete(e),delete e[y][3],e.a=!0)},de=(e,t,r)=>{e.c=t,Ye(e,t,r)},Ne=(e,t)=>{if(t){for(let r=0,n=e.length;r<n;r++)if(e[r]===t)return r}},De=Symbol(),Ye=(e,t,r)=>{const n=[],i=[],a=[];Ge(e,t,n,i,a),i.forEach(Qe);const o=r?void 0:t.childNodes;let l,v=null;if(r)l=-1;else if(!o.length)l=0;else{const c=Ne(o,qt(e.nN));c!==void 0?(v=o[c],l=c):l=Ne(o,n.find(s=>s.tag!==F&&s.e)?.e)??-1,l===-1&&(r=!0)}for(let c=0,s=n.length;c<s;c++,l++){const u=n[c];let f;if(u.s&&u.e)f=u.e,u.s=!1;else{const d=r||!u.e;P(u)?(u.e&&u.d&&(u.e.textContent=u.t),u.d=!1,f=u.e||=document.createTextNode(u.t)):(f=u.e||=u.n?document.createElementNS(u.n,u.tag):document.createElement(u.tag),Bt(f,u.props,u.pP),Ye(u,f,d),u.tag===\"select\"&&$t(f,u.props))}u.tag===F?l--:r?f.parentNode||t.appendChild(f):o[l]!==f&&o[l-1]!==f&&(o[l+1]===f?t.appendChild(o[l]):t.insertBefore(f,v||o[l]||null))}if(e.pP&&(e.pP=void 0),a.length){const c=[],s=[];a.forEach(([,u,,f,d])=>{u&&c.push(u),f&&s.push(f),d?.()}),c.forEach(u=>u()),s.length&&requestAnimationFrame(()=>{s.forEach(u=>u())})}},Ft=(e,t)=>!!(e&&e.length===t.length&&e.every((r,n)=>r[1]===t[n][1])),W=new WeakMap,Q=(e,t,r)=>{const n=!r&&t.pC;r&&(t.pC||=t.vC);let i;try{r||=typeof t.tag==\"function\"?_t(e,t):H(t.props.children),r[0]?.tag===\"\"&&r[0][oe]&&(i=r[0][oe],e[5].push([e,i,t]));const a=n?[...t.pC]:t.vC?[...t.vC]:void 0,o=[];let l;for(let v=0;v<r.length;v++){if(Array.isArray(r[v])){r.splice(v,1,...r[v].flat(1/0)),v--;continue}let c=et(r[v]);if(c){typeof c.tag==\"function\"&&!c.tag[Fe]&&(D.length>0&&(c[y][2]=D.map(u=>[u,u.values.at(-1)])),e[5]?.length&&(c[y][3]=e[5].at(-1)));let s;if(a&&a.length){const u=a.findIndex(P(c)?f=>P(f):c.key!==void 0?f=>f.key===c.key&&f.tag===c.tag:f=>f.tag===c.tag);u!==-1&&(s=a[u],a.splice(u,1))}if(s)if(P(c))s.t!==c.t&&(s.t=c.t,s.d=!0),c=s;else{const u=s.pP=s.props;if(s.props=c.props,s.f||=c.f||t.f,typeof c.tag==\"function\"){const f=s[y][2];s[y][2]=c[y][2]||[],s[y][3]=c[y][3],!s.f&&((s.o||s)===c.o||s.tag[ut]?.(u,s.props))&&Ft(f,s[y][2])&&(s.s=!0)}c=s}else if(!P(c)&&M){const u=R(M);u&&(c.n=u)}if(!P(c)&&!c.s&&(Q(e,c),delete c.f),o.push(c),l&&!l.s&&!c.s)for(let u=l;u&&!P(u);u=u.vC?.at(-1))u.nN=c;l=c}}t.vR=n?[...t.vC,...a||[]]:a||[],t.vC=o,n&&delete t.pC}catch(a){if(t.f=!0,a===De){if(i)return;throw a}const[o,l,v]=t[y]?.[3]||[];if(l){const c=()=>z([0,!1,e[2]],v),s=W.get(v)||[];s.push(c),W.set(v,s);const u=l(a,()=>{const f=W.get(v);if(f){const d=f.indexOf(c);if(d!==-1)return f.splice(d,1),c()}});if(u){if(e[0]===1)e[1]=!0;else if(Q(e,v,[u]),(l.length===1||e!==o)&&v.c){de(v,v.c,!1);return}throw De}}throw a}finally{i&&e[5].pop()}},et=e=>{if(!(e==null||typeof e==\"boolean\")){if(typeof e==\"string\"||typeof e==\"number\")return{t:e.toString(),d:!0};if(\"vR\"in e&&(e={tag:e.tag,props:e.props,key:e.key,f:e.f,type:e.tag,ref:e.props.ref,o:e.o||e}),typeof e.tag==\"function\")e[y]=[0,[]];else{const t=Rt[e.tag];t&&(M||=je(\"\"),e.props.children=[{tag:M,props:{value:e.n=`http://www.w3.org/${t}`,children:e.props.children}}])}return e}},tt=(e,t,r)=>{e.c===t&&(e.c=r,e.vC.forEach(n=>tt(n,t,r)))},Le=(e,t)=>{t[y][2]?.forEach(([r,n])=>{r.values.push(n)});try{Q(e,t,void 0)}catch{return}if(t.a){delete t.a;return}t[y][2]?.forEach(([r])=>{r.values.pop()}),(e[0]!==1||!e[1])&&de(t,t.c,!1)},B=new WeakMap,Me=[],z=async(e,t)=>{e[5]||=[];const r=B.get(t);r&&r[0](void 0);let n;const i=new Promise(a=>n=a);if(B.set(t,[n,()=>{e[2]?e[2](e,t,a=>{Le(a,t)}).then(()=>n(t)):(Le(e,t),n(t))}]),Me.length)Me.at(-1).add(t);else{await Promise.resolve();const a=B.get(t);a&&(B.delete(t),a[1]())}return i},Ht=(e,t)=>{const r=[];r[5]=[],r[4]=!0,Q(r,e,void 0),r[4]=!1;const n=document.createDocumentFragment();de(e,n,!0),tt(e,n,t),t.replaceChildren(n)},jt=(e,t,r)=>({tag:F,props:{children:e},key:r,e:t,p:1}),Vt=0,he=1,Kt=2,Ut=3,ie=new WeakMap,pe=(e,t)=>!e||!t||e.length!==t.length||t.some((r,n)=>r!==e[n]),Wt=void 0,Re=[],rt=e=>{const t=()=>typeof e==\"function\"?e():e,r=L.at(-1);if(!r)return[t(),()=>{}];const[,n]=r,i=n[y][1][Vt]||=[],a=n[y][0]++;return i[a]||=[t(),o=>{const l=Wt,v=i[a];if(typeof o==\"function\"&&(o=o(v[0])),!Object.is(o,v[0]))if(v[0]=o,Re.length){const[c,s]=Re.at(-1);Promise.all([c===3?n:z([c,!1,l],n),s]).then(([u])=>{if(!u||!(c===2||c===3))return;const f=u.vC;requestAnimationFrame(()=>{setTimeout(()=>{f===u.vC&&z([c===3?1:0,!1,l],u)})})})}else z([0,!1,l],n)}]},zt=(e,t,r)=>{const n=L.at(-1);if(!n)return;const[,i]=n,a=i[y][1][he]||=[],o=i[y][0]++,[l,,v]=a[o]||=[];if(pe(l,r)){v&&v();const c=()=>{s[e]=void 0,s[2]=t()},s=[r,void 0,void 0,void 0,void 0];s[e]=c,a[o]=s}},nt=(e,t)=>zt(3,e,t),ge=(e,t)=>{const r=L.at(-1);if(!r)return e;const[,n]=r,i=n[y][1][Kt]||=[],a=n[y][0]++,o=i[a];return pe(o?.[1],t)?i[a]=[e,t]:e=i[a][0],e},Xt=e=>{const t=ie.get(e);if(t){if(t.length===2)throw t[1];return t[0]}throw e.then(r=>ie.set(e,[r]),r=>ie.set(e,[void 0,r])),e},Zt=(e,t)=>{const r=L.at(-1);if(!r)return e();const[,n]=r,i=n[y][1][Ut]||=[],a=n[y][0]++,o=i[a];return pe(o?.[1],t)&&(i[a]=[e(),t]),i[a][0]},Jt=je({pending:!1,data:null,method:null,action:null}),Oe=new Set,Gt=e=>{Oe.add(e),e.finally(()=>Oe.delete(e))},me=(e,t)=>Zt(()=>r=>{let n;e&&(typeof e==\"function\"?n=e(r)||(()=>{e(null)}):e&&\"current\"in e&&(e.current=r,n=()=>{e.current=null}));const i=t(r);return()=>{i?.(),n?.()}},[e]),$e=Object.create(null),Be=Object.create(null),K=(e,t,r,n,i)=>{if(t?.itemProp)return{tag:e,props:t,type:e,ref:t.ref};const a=document.head;let{onLoad:o,onError:l,precedence:v,blocking:c,...s}=t,u=null,f=!1;const d=J[e],h=Ue(e,n),E=m=>m.getAttribute(\"rel\")===\"stylesheet\"&&m.getAttribute(x)!==null;let p;if(h){const m=a.querySelectorAll(e);e:for(const b of m)if(!(e===\"link\"&&!E(b))){for(const g of d)if(b.getAttribute(g)===t[g]){u=b;break e}}if(!u){const b=d.reduce((g,w)=>t[w]===void 0?g:`${g}-${w}-${t[w]}`,e);f=!Be[b],u=Be[b]||=(()=>{const g=document.createElement(e);for(const w of d)t[w]!==void 0&&g.setAttribute(w,t[w]);return t.rel&&g.setAttribute(\"rel\",t.rel),g})()}}else p=a.querySelectorAll(e);v=n?v??\"\":void 0,n&&(s[x]=v);const A=ge(m=>{if(h){if(e===\"link\"&&v!==void 0){let g=!1;for(const w of a.querySelectorAll(e)){const T=w.getAttribute(x);if(T===null){a.insertBefore(m,w);return}if(g&&T!==v){a.insertBefore(m,w);return}T===v&&(g=!0)}a.appendChild(m);return}let b=!1;for(const g of a.querySelectorAll(e)){if(b&&g.getAttribute(x)!==v){a.insertBefore(m,g);return}g.getAttribute(x)===v&&(b=!0)}a.appendChild(m)}else if(e===\"link\")a.contains(m)||a.appendChild(m);else if(p){let b=!1;for(const g of p)if(g===m){b=!0;break}b||a.insertBefore(m,a.contains(p[0])?p[0]:a.querySelector(e)),p=void 0}},[h,v,e]),k=me(t.ref,m=>{const b=d[0];if(r===2&&(m.innerHTML=\"\"),(f||p)&&A(m),!l&&!o||!b)return;let g=$e[m.getAttribute(b)]||=new Promise((w,T)=>{m.addEventListener(\"load\",w),m.addEventListener(\"error\",T)});o&&(g=g.then(o)),l&&(g=g.catch(l)),g.catch(()=>{})});if(i&&c===\"render\"){const m=J[e][0];if(m&&t[m]){const b=t[m],g=$e[b]||=new Promise((w,T)=>{A(u),u.addEventListener(\"load\",w),u.addEventListener(\"error\",T)});Xt(g)}}const S={tag:e,type:e,props:{...s,ref:k},ref:k};return S.p=r,u&&(S.e=u),jt(S,a)},Qt=e=>{const t=Ot();return(t&&R(t))?.endsWith(\"svg\")?{tag:\"title\",props:e,type:\"title\",ref:e.ref}:K(\"title\",e,void 0,!1,!1)},Yt=e=>!e||[\"src\",\"async\"].some(t=>!e[t])?{tag:\"script\",props:e,type:\"script\",ref:e.ref}:K(\"script\",e,1,!1,!0),er=e=>!e||![\"href\",\"precedence\"].every(t=>t in e)?{tag:\"style\",props:e,type:\"style\",ref:e.ref}:(e[\"data-href\"]=e.href,delete e.href,K(\"style\",e,2,!0,!0)),tr=e=>!e||[\"onLoad\",\"onError\"].some(t=>t in e)||e.rel===\"stylesheet\"&&(!(\"precedence\"in e)||\"disabled\"in e)?{tag:\"link\",props:e,type:\"link\",ref:e.ref}:K(\"link\",e,1,Ke(e),!0),rr=e=>K(\"meta\",e,void 0,!1,!1),at=Symbol(),nr=e=>{const{action:t,...r}=e;typeof t!=\"function\"&&(r.action=t);const[n,i]=rt([null,!1]),a=ge(async c=>{const s=c.isTrusted?t:c.detail[at];if(typeof s!=\"function\")return;c.preventDefault();const u=new FormData(c.target);i([u,!0]);const f=s(u);f instanceof Promise&&(Gt(f),await f),i([null,!0])},[]),o=me(e.ref,c=>(c.addEventListener(\"submit\",a),()=>{c.removeEventListener(\"submit\",a)})),[l,v]=n;return n[1]=!1,{tag:Jt,props:{value:{pending:l!==null,data:l,method:l?\"post\":null,action:l?t:null},children:{tag:\"form\",props:{...r,ref:o},type:\"form\",ref:o}},f:v}},it=(e,{formAction:t,...r})=>{if(typeof t==\"function\"){const n=ge(i=>{i.preventDefault(),i.currentTarget.form.dispatchEvent(new CustomEvent(\"submit\",{detail:{[at]:t}}))},[]);r.ref=me(r.ref,i=>(i.addEventListener(\"click\",n),()=>{i.removeEventListener(\"click\",n)}))}return{tag:e,props:r,type:e,ref:r.ref}},ar=e=>it(\"input\",e),ir=e=>it(\"button\",e);Object.assign(se,{title:Qt,script:Yt,style:er,link:tr,meta:rr,form:nr,input:ar,button:ir});Ve(null);new TextEncoder;var or=(e,t={})=>{let r;return Object.keys(t).length>0&&console.warn(\"createRoot options are not supported yet\"),{render(n){if(r===null)throw new Error(\"Cannot update an unmounted root\");r?r(n):Ht(et({tag:()=>{const[i,a]=rt(n);return r=a,i},props:{}}),e)},unmount(){r?.(null),r=null}}},sr=(e,t,r={})=>{const n=or(e,r);return n.render(t),n};function lr(){return nt(()=>{const e=document.querySelectorAll(\"form\"),t=[];return e.forEach(r=>{const n=a=>{if(a.defaultPrevented)return;const o=a.submitter;o&&o.type===\"submit\"&&(o.classList.add(\"is-loading\"),o.disabled=!0)};r.addEventListener(\"submit\",n);const i=a=>{a.persisted&&r.querySelectorAll(\"button[type=submit]\").forEach(l=>{l.classList.remove(\"is-loading\"),l.disabled=!1})};window.addEventListener(\"pageshow\",i),t.push(()=>{r.removeEventListener(\"submit\",n),window.removeEventListener(\"pageshow\",i)})}),()=>{t.forEach(r=>r())}},[]),null}function cr(){return nt(()=>{const e=document.querySelectorAll(\"[data-password-toggle]\"),t=[];return e.forEach(r=>{const n=r.querySelector(\"input[type='password'], input[data-password-input]\"),i=r.querySelector(\"[data-password-toggle-btn]\"),a=i?.querySelector(\"[data-show-icon]\"),o=i?.querySelector(\"[data-hide-icon]\");if(!n||!i||!a||!o)return;const l=c=>{c?(n.type=\"text\",n.setAttribute(\"data-password-input\",\"text\"),a.classList.add(\"hidden\"),o.classList.remove(\"hidden\")):(n.type=\"password\",n.setAttribute(\"data-password-input\",\"password\"),o.classList.add(\"hidden\"),a.classList.remove(\"hidden\"))},v=c=>{c.preventDefault();const s=n.type===\"password\";l(s)};i.addEventListener(\"click\",v),t.push(()=>{i.removeEventListener(\"click\",v)})}),()=>{t.forEach(r=>r())}},[]),null}function ur(){return document.querySelectorAll(\"[data-input-otp-container]\").forEach(t=>{const r=Array.from(t.querySelectorAll(\"[data-input-otp-slot]\"));if(!r.length)return;const n=t.closest(\"form\");let i=null;if(n&&r.length>0){const l=r[0]?.getAttribute(\"name\");l&&(i=n.querySelector(`input[name=\"${l}\"][type=\"hidden\"]`),i||(i=document.createElement(\"input\"),i.type=\"hidden\",i.name=l,n.appendChild(i)),r.forEach(v=>v.removeAttribute(\"name\")))}const a=()=>{if(i){const o=r.map(l=>l.value).join(\"\");i.value=o,o.length===r.length&&n&&setTimeout(()=>{n.requestSubmit()},100)}};r.forEach((o,l)=>{o.addEventListener(\"input\",v=>{const c=v.target;let s=c.value;s=s.replace(/[^0-9]/g,\"\"),s.length>1&&(s=s.charAt(0)),c.value=s,s&&l<r.length-1&&r[l+1]?.focus(),a()}),o.addEventListener(\"paste\",v=>{v.preventDefault();const s=(v.clipboardData?.getData(\"text\")||\"\").replace(/[^0-9]/g,\"\");for(let f=0;f<Math.min(s.length,r.length-l);f++){const d=r[l+f],h=s.charAt(f);d&&h&&(d.value=h)}const u=r.findIndex((f,d)=>d>=l&&!f.value);u!==-1?r[u]?.focus():r[Math.min(l+s.length,r.length-1)]?.focus(),a()}),o.addEventListener(\"keydown\",v=>{if(v.key===\"Backspace\"){const c=v.target;if(!c.value&&l>0){v.preventDefault();const s=r[l-1];s&&(s.value=\"\",s.focus()),a()}else c.value&&setTimeout(()=>a(),0)}else v.key===\"ArrowLeft\"&&l>0?(v.preventDefault(),r[l-1]?.focus()):v.key===\"ArrowRight\"&&l<r.length-1&&(v.preventDefault(),r[l+1]?.focus())}),o.addEventListener(\"focus\",()=>{o.select()})}),a()}),null}var ce={d:(e,t)=>{for(var r in t)ce.o(t,r)&&!ce.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},ye={};ce.d(ye,{A:()=>fr,k:()=>Ee});var O=function(e,t,r,n){return new(r||(r=Promise))(function(i,a){function o(c){try{v(n.next(c))}catch(s){a(s)}}function l(c){try{v(n.throw(c))}catch(s){a(s)}}function v(c){var s;c.done?i(c.value):(s=c.value,s instanceof r?s:new r(function(u){u(s)})).then(o,l)}v((n=n.apply(e,[])).next())})},$=function(e,t){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol==\"function\"&&(a[Symbol.iterator]=function(){return this}),a;function l(v){return function(c){return(function(s){if(r)throw new TypeError(\"Generator is already executing.\");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!((i=i.length>0&&i[i.length-1])||s[0]!==6&&s[0]!==2)){o=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(s[0]===6&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(u){s=[6,u],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}})([v,c])}}};function Ee(){return O(this,void 0,Promise,function(){return $(this,function(e){switch(e.label){case 0:return[4,new Promise(function(t,r){var n=\"Unknown\",i=!1;function a(f){i||(i=!0,t({isPrivate:f,browserName:n}))}function o(){var f=0,d=parseInt(\"-1\");try{d.toFixed(d)}catch(h){f=h.message.length}return f}function l(){return O(this,void 0,void 0,function(){var f,d;return $(this,function(h){switch(h.label){case 0:return h.trys.push([0,2,,3]),[4,navigator.storage.getDirectory()];case 1:return h.sent(),a(!1),[3,3];case 2:return f=h.sent(),d=f instanceof Error&&typeof f.message==\"string\"?f.message:String(f),a(d.includes(\"unknown transient reason\")),[3,3];case 3:return[2]}})})}function v(){var f;return O(this,void 0,Promise,function(){return $(this,function(d){switch(d.label){case 0:return typeof((f=navigator.storage)===null||f===void 0?void 0:f.getDirectory)!=\"function\"?[3,2]:[4,l()];case 1:return d.sent(),[3,3];case 2:navigator.maxTouchPoints!==void 0?(function(){var h=String(Math.random());try{var E=indexedDB.open(h,1);E.onupgradeneeded=function(p){var A=p.target.result,k=function(S){a(S)};try{A.createObjectStore(\"t\",{autoIncrement:!0}).put(new Blob),k(!1)}catch(S){(S instanceof Error&&typeof S.message==\"string\"?S.message:String(S)).includes(\"are not yet supported\")?k(!0):k(!1)}finally{A.close(),indexedDB.deleteDatabase(h)}},E.onerror=function(){return a(!1)}}catch{a(!1)}})():(function(){var h=window.openDatabase,E=window.localStorage;try{h(null,null,null,null)}catch{return void a(!0)}try{E.setItem(\"test\",\"1\"),E.removeItem(\"test\")}catch{return void a(!0)}a(!1)})(),d.label=3;case 3:return[2]}})})}function c(){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(f,d){var h=Math.round(d/1048576),E=2*Math.round((function(){var p,A,k,S=window;return(k=(A=(p=S?.performance)===null||p===void 0?void 0:p.memory)===null||A===void 0?void 0:A.jsHeapSizeLimit)!==null&&k!==void 0?k:1073741824})()/1048576);a(h<E)},function(f){r(new Error(\"detectIncognito somehow failed to query storage quota: \"+f.message))})}function s(){self.Promise!==void 0&&self.Promise.allSettled!==void 0?c():(0,window.webkitRequestFileSystem)(0,1,function(){a(!1)},function(){a(!0)})}function u(){var f;return O(this,void 0,Promise,function(){var d,h,E;return $(this,function(p){switch(p.label){case 0:if(typeof((f=navigator.storage)===null||f===void 0?void 0:f.getDirectory)!=\"function\")return[3,5];p.label=1;case 1:return p.trys.push([1,3,,4]),[4,navigator.storage.getDirectory()];case 2:return p.sent(),a(!1),[3,4];case 3:return d=p.sent(),h=d instanceof Error&&typeof d.message==\"string\"?d.message:String(d),a(h.includes(\"Security error\")),[2];case 4:return[3,6];case 5:(E=indexedDB.open(\"inPrivate\")).onerror=function(A){E.error&&E.error.name===\"InvalidStateError\"&&A.preventDefault(),a(!0)},E.onsuccess=function(){indexedDB.deleteDatabase(\"inPrivate\"),a(!1)},p.label=6;case 6:return[2]}})})}(function(){return O(this,void 0,Promise,function(){return $(this,function(f){switch(f.label){case 0:return o()!==44&&o()!==43?[3,2]:(n=\"Safari\",[4,v()]);case 1:return f.sent(),[3,6];case 2:return o()!==51?[3,3]:(d=navigator.userAgent,n=d.match(/Chrome/)?navigator.brave!==void 0?\"Brave\":d.match(/Edg/)?\"Edge\":d.match(/OPR/)?\"Opera\":\"Chrome\":\"Chromium\",s(),[3,6]);case 3:return o()!==25?[3,5]:(n=\"Firefox\",[4,u()]);case 4:return f.sent(),[3,6];case 5:navigator.msSaveBlob!==void 0?(n=\"Internet Explorer\",a(window.indexedDB===void 0)):r(new Error(\"detectIncognito cannot determine the browser\")),f.label=6;case 6:return[2]}var d})})})().catch(r)})];case 1:return[2,e.sent()]}})})}typeof window<\"u\"&&(window.detectIncognito=Ee);const fr=Ee;ye.A;const vr=ye.k,X=\"authhero_incognito_mode\";function dr(){try{const e=sessionStorage.getItem(X);return e===null?void 0:e===\"true\"}catch{return}}async function hr(){try{const e=sessionStorage.getItem(X);if(e!==null)return e===\"true\";const{isPrivate:t}=await vr();return sessionStorage.setItem(X,t.toString()),t}catch{try{sessionStorage.setItem(X,\"false\")}catch{}return!1}}const pr=()=>{const e=dr();if(e!==void 0){e&&_e();return}hr().then(t=>{t&&_e()}).catch(()=>{})};function _e(){const e=document.getElementById(\"incognito-warning-container\");e&&e.classList.remove(\"hidden\")}pr();const qe=document.getElementById(\"client-root\");qe&&sr(qe,U(Lt,{children:[U(lr,{}),U(cr,{}),U(ur,{})]}));\n";
@@ -0,0 +1,9 @@
1
+ /**
2
+ * FormHandler - Client-side component that enhances forms with loading states
3
+ *
4
+ * This component adds progressive enhancement to authentication forms:
5
+ * - Shows loading state when form is submitted
6
+ * - Handles browser back/forward cache (bfcache) properly
7
+ * - Uses addEventListener to chain with existing handlers
8
+ */
9
+ export declare function FormHandler(): null;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * IncognitoDetectionHandler - Detects incognito mode and shows the warning
3
+ * This runs on the client-side after page load
4
+ */
5
+ export declare const IncognitoDetectionHandler: () => void;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ /** @jsxImportSource hono/jsx */
2
+ /**
3
+ * Client-side handler for Input OTP fields
4
+ *
5
+ * This provides the interactive functionality for OTP input fields:
6
+ * - Auto-advance to next input when a digit is entered
7
+ * - Paste support for multi-digit codes
8
+ * - Backspace navigation
9
+ * - Arrow key navigation
10
+ * - Form submission when all digits are filled
11
+ */
12
+ export declare function InputOTPHandler(): null;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * PasswordToggle - Client-side component that adds show/hide password functionality
3
+ *
4
+ * This component enhances password inputs with visibility toggle buttons:
5
+ * - Finds all password input wrappers with data-password-toggle attribute
6
+ * - Adds click handlers to toggle buttons
7
+ * - Toggles password field type between "password" and "text"
8
+ * - Updates button visibility accordingly
9
+ */
10
+ export declare function PasswordToggle(): null;
@@ -0,0 +1,22 @@
1
+ export interface UserAgentInfo {
2
+ browser?: {
3
+ name?: string;
4
+ version?: string;
5
+ };
6
+ os?: {
7
+ name?: string;
8
+ version?: string;
9
+ };
10
+ device?: {
11
+ type?: string;
12
+ name?: string;
13
+ };
14
+ isEmbedded?: boolean;
15
+ }
16
+ export interface UserAgentDetector {
17
+ parse(userAgent: string): UserAgentInfo;
18
+ }
19
+ export declare class DefaultUserAgentDetector implements UserAgentDetector {
20
+ parse(userAgent: string): UserAgentInfo;
21
+ private detectEmbedded;
22
+ }
@@ -0,0 +1,14 @@
1
+ import type { FC } from "hono/jsx";
2
+ import { Theme, Branding, User } from "@authhero/adapter-interfaces";
3
+ import { EnrichedClient } from "../helpers/client";
4
+ type Props = {
5
+ theme: Theme | null;
6
+ branding: Branding | null;
7
+ user: User;
8
+ client: EnrichedClient;
9
+ state: string;
10
+ error?: string;
11
+ success?: string;
12
+ };
13
+ declare const AccountChangeEmailPage: FC<Props>;
14
+ export default AccountChangeEmailPage;
@@ -0,0 +1,17 @@
1
+ import type { FC } from "hono/jsx";
2
+ import { Theme, Branding, User } from "@authhero/adapter-interfaces";
3
+ import { EnrichedClient } from "../helpers/client";
4
+ export interface AccountFormProps {
5
+ error?: string;
6
+ success?: string;
7
+ theme?: Theme | null;
8
+ branding?: Branding | null;
9
+ state?: string;
10
+ user: User;
11
+ client: EnrichedClient;
12
+ className?: string;
13
+ showLinkedAccounts?: boolean;
14
+ csrfToken?: string;
15
+ }
16
+ declare const AccountForm: FC<AccountFormProps>;
17
+ export default AccountForm;
@@ -0,0 +1,15 @@
1
+ import type { FC } from "hono/jsx";
2
+ import { Theme, Branding, User } from "@authhero/adapter-interfaces";
3
+ import { EnrichedClient } from "../helpers/client";
4
+ type Props = {
5
+ theme: Theme | null;
6
+ branding: Branding | null;
7
+ user: User;
8
+ client: EnrichedClient;
9
+ error?: string;
10
+ success?: string;
11
+ state?: string;
12
+ csrfToken?: string;
13
+ };
14
+ declare const AccountPage: FC<Props>;
15
+ export default AccountPage;
@@ -0,0 +1,8 @@
1
+ import { Branding, Theme } from "@authhero/adapter-interfaces";
2
+ import type { FC } from "hono/jsx";
3
+ type AppLogoProps = {
4
+ theme?: Theme | null;
5
+ branding?: Branding | null;
6
+ };
7
+ declare const AppLogo: FC<AppLogoProps>;
8
+ export default AppLogo;
@@ -0,0 +1,18 @@
1
+ import { Branding, Theme } from "@authhero/adapter-interfaces";
2
+ import { EnrichedClient } from "../helpers/client";
3
+ import { PropsWithChildren } from "hono/jsx";
4
+ type AuthLayoutProps = {
5
+ title: string;
6
+ theme?: Theme | null;
7
+ branding?: Branding | null;
8
+ client?: EnrichedClient | null;
9
+ };
10
+ /**
11
+ * AuthLayout - A responsive layout component for authentication pages
12
+ * Supports three layout modes based on theme.page_background.page_layout:
13
+ * - center: Centers the content (default)
14
+ * - left: Aligns content to the left
15
+ * - right: Aligns content to the right
16
+ */
17
+ declare const AuthLayout: ({ title, children, theme, branding, }: PropsWithChildren<AuthLayoutProps>) => import("hono/jsx/jsx-dev-runtime").JSX.Element;
18
+ export default AuthLayout;
@@ -0,0 +1,12 @@
1
+ import { PropsWithChildren } from "hono/jsx";
2
+ type Props = {
3
+ className?: string;
4
+ Component?: string;
5
+ variant?: "primary" | "secondary" | "custom";
6
+ href?: string;
7
+ disabled?: boolean;
8
+ isLoading?: boolean;
9
+ id?: string;
10
+ };
11
+ declare const Button: ({ children, className, Component, variant, href, disabled, isLoading, id, }: PropsWithChildren<Props>) => import("hono/jsx/jsx-dev-runtime").JSX.Element;
12
+ export default Button;
@@ -0,0 +1,14 @@
1
+ import type { FC } from "hono/jsx";
2
+ import { Theme, Branding, User } from "@authhero/adapter-interfaces";
3
+ import { EnrichedClient } from "../helpers/client";
4
+ export interface ChangeEmailFormProps {
5
+ error?: string;
6
+ theme?: Theme | null;
7
+ branding?: Branding | null;
8
+ state: string;
9
+ user: User;
10
+ client: EnrichedClient;
11
+ className?: string;
12
+ }
13
+ declare const ChangeEmailForm: FC<ChangeEmailFormProps>;
14
+ export default ChangeEmailForm;
@@ -0,0 +1,15 @@
1
+ import type { FC } from "hono/jsx";
2
+ import { Theme, Branding } from "@authhero/adapter-interfaces";
3
+ import { EnrichedClient } from "../helpers/client";
4
+ type Props = {
5
+ error?: string;
6
+ theme: Theme | null;
7
+ branding: Branding | null;
8
+ client: EnrichedClient;
9
+ email: string;
10
+ success?: boolean;
11
+ state?: string;
12
+ redirectUrl?: string;
13
+ };
14
+ declare const ChangeEmailPage: FC<Props>;
15
+ export default ChangeEmailPage;
@@ -0,0 +1,13 @@
1
+ import type { FC } from "hono/jsx";
2
+ import { Theme, Branding, User } from "@authhero/adapter-interfaces";
3
+ import { EnrichedClient } from "../helpers/client";
4
+ export interface ContinueFormProps {
5
+ theme?: Theme | null;
6
+ branding?: Branding | null;
7
+ state: string;
8
+ user: User;
9
+ client: EnrichedClient;
10
+ className?: string;
11
+ }
12
+ declare const ContinueForm: FC<ContinueFormProps>;
13
+ export default ContinueForm;
@@ -0,0 +1,12 @@
1
+ import type { FC } from "hono/jsx";
2
+ import { LoginSession, Theme, Branding } from "@authhero/adapter-interfaces";
3
+ import { EnrichedClient } from "../helpers/client";
4
+ type Props = {
5
+ theme?: Theme | null;
6
+ branding?: Branding | null;
7
+ loginSession: LoginSession;
8
+ client: EnrichedClient;
9
+ className?: string;
10
+ };
11
+ declare const EmailValidatedForm: FC<Props>;
12
+ export default EmailValidatedForm;
@@ -0,0 +1,11 @@
1
+ import type { FC } from "hono/jsx";
2
+ import { Theme, Branding } from "@authhero/adapter-interfaces";
3
+ import { EnrichedClient } from "../helpers/client";
4
+ type Props = {
5
+ theme: Theme | null;
6
+ branding: Branding | null;
7
+ client: EnrichedClient;
8
+ state: string;
9
+ };
10
+ declare const EmailValidatedPage: FC<Props>;
11
+ export default EmailValidatedPage;
@@ -0,0 +1,13 @@
1
+ import type { FC } from "hono/jsx";
2
+ import { Theme, Branding } from "@authhero/adapter-interfaces";
3
+ type Props = {
4
+ error?: string;
5
+ theme?: Theme | null;
6
+ branding?: Branding | null;
7
+ email: string;
8
+ state: string;
9
+ hasPasswordLogin: boolean;
10
+ className?: string;
11
+ };
12
+ declare const EnterCodeForm: FC<Props>;
13
+ export default EnterCodeForm;
@@ -0,0 +1,14 @@
1
+ import type { FC } from "hono/jsx";
2
+ import { Theme, Branding } from "@authhero/adapter-interfaces";
3
+ import { EnrichedClient } from "../helpers/client";
4
+ type Props = {
5
+ error?: string;
6
+ theme: Theme | null;
7
+ branding: Branding | null;
8
+ email: string;
9
+ state: string;
10
+ client: EnrichedClient;
11
+ hasPasswordLogin: boolean;
12
+ };
13
+ declare const EnterCodePage: FC<Props>;
14
+ export default EnterCodePage;
@@ -0,0 +1,14 @@
1
+ import type { FC } from "hono/jsx";
2
+ import { LoginSession, Theme, Branding } from "@authhero/adapter-interfaces";
3
+ import { EnrichedClient } from "../helpers/client";
4
+ type Props = {
5
+ error?: string;
6
+ theme?: Theme | null;
7
+ branding?: Branding | null;
8
+ loginSession: LoginSession;
9
+ email: string;
10
+ client: EnrichedClient;
11
+ className?: string;
12
+ };
13
+ declare const EnterPasswordForm: FC<Props>;
14
+ export default EnterPasswordForm;
@@ -0,0 +1,13 @@
1
+ import type { FC } from "hono/jsx";
2
+ import { Theme, Branding } from "@authhero/adapter-interfaces";
3
+ import { EnrichedClient } from "../helpers/client";
4
+ type Props = {
5
+ error?: string;
6
+ theme: Theme | null;
7
+ branding: Branding | null;
8
+ email: string;
9
+ state: string;
10
+ client: EnrichedClient;
11
+ };
12
+ declare const EnterPasswordPage: FC<Props>;
13
+ export default EnterPasswordPage;
@@ -0,0 +1,6 @@
1
+ type Props = {
2
+ children: string;
3
+ className?: string;
4
+ };
5
+ declare const ErrorMessage: ({ children, className }: Props) => import("hono/jsx/jsx-dev-runtime").JSX.Element;
6
+ export default ErrorMessage;
@@ -0,0 +1,9 @@
1
+ import { Branding, Theme } from "@authhero/adapter-interfaces";
2
+ import { EnrichedClient } from "../helpers/client";
3
+ type Props = {
4
+ theme: Theme | null;
5
+ branding: Branding | null;
6
+ client: EnrichedClient | null;
7
+ };
8
+ declare const Footer: (_props: Props) => import("hono/jsx/jsx-dev-runtime").JSX.Element;
9
+ export default Footer;
@@ -0,0 +1,14 @@
1
+ import type { FC } from "hono/jsx";
2
+ import { LoginSession, Theme, Branding } from "@authhero/adapter-interfaces";
3
+ import { EnrichedClient } from "../helpers/client";
4
+ type Props = {
5
+ error?: string;
6
+ theme?: Theme | null;
7
+ branding?: Branding | null;
8
+ loginSession: LoginSession;
9
+ email?: string;
10
+ client: EnrichedClient;
11
+ className?: string;
12
+ };
13
+ declare const ForgotPasswordForm: FC<Props>;
14
+ export default ForgotPasswordForm;
@@ -0,0 +1,13 @@
1
+ import type { FC } from "hono/jsx";
2
+ import { Theme, Branding } from "@authhero/adapter-interfaces";
3
+ import { EnrichedClient } from "../helpers/client";
4
+ type Props = {
5
+ error?: string;
6
+ theme: Theme | null;
7
+ branding: Branding | null;
8
+ client: EnrichedClient;
9
+ email?: string;
10
+ state: string;
11
+ };
12
+ declare const ForgotPasswordPage: FC<Props>;
13
+ export default ForgotPasswordPage;
@@ -0,0 +1,11 @@
1
+ import type { FC } from "hono/jsx";
2
+ import { Theme, Branding } from "@authhero/adapter-interfaces";
3
+ import { EnrichedClient } from "../helpers/client";
4
+ type Props = {
5
+ theme: Theme | null;
6
+ branding: Branding | null;
7
+ client: EnrichedClient;
8
+ state: string;
9
+ };
10
+ declare const ForgotPasswordSentPage: FC<Props>;
11
+ export default ForgotPasswordSentPage;
@@ -0,0 +1,6 @@
1
+ import { PropsWithChildren } from "hono/jsx";
2
+ type Props = {
3
+ className?: string;
4
+ };
5
+ declare const FormComponent: ({ children, className }: PropsWithChildren<Props>) => import("hono/jsx/jsx-dev-runtime").JSX.Element;
6
+ export default FormComponent;
@@ -0,0 +1,16 @@
1
+ import type { FC } from "hono/jsx";
2
+ import { Theme, Branding } from "@authhero/adapter-interfaces";
3
+ import { EnrichedClient } from "../helpers/client";
4
+ import type { FormNodeComponent } from "@authhero/adapter-interfaces";
5
+ export type FormNodePageProps = {
6
+ theme: Theme | null;
7
+ branding: Branding | null;
8
+ client: EnrichedClient;
9
+ state: string;
10
+ formName: string;
11
+ nodeAlias?: string;
12
+ error?: string;
13
+ components?: FormNodeComponent[];
14
+ };
15
+ declare const FormNodePage: FC<FormNodePageProps>;
16
+ export default FormNodePage;
@@ -0,0 +1,5 @@
1
+ type Props = {
2
+ state: string;
3
+ };
4
+ export declare const GoBack: (props: Props) => import("hono/jsx/jsx-dev-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1,4 @@
1
+ declare const Google: ({ ...props }: {
2
+ [x: string]: any;
3
+ }) => import("hono/jsx/jsx-dev-runtime").JSX.Element;
4
+ export default Google;
@@ -0,0 +1,8 @@
1
+ type IconSizes = "small" | "medium" | "large";
2
+ type Props = {
3
+ name: string;
4
+ size?: IconSizes;
5
+ className?: string;
6
+ };
7
+ declare const Icon: ({ name, size, className }: Props) => import("hono/jsx/jsx-dev-runtime").JSX.Element;
8
+ export default Icon;
@@ -0,0 +1,8 @@
1
+ type Props = {
2
+ width?: number;
3
+ height?: number;
4
+ className?: string;
5
+ "data-show-icon"?: boolean;
6
+ };
7
+ declare const IconEye: ({ width, height, className, ...props }: Props) => import("hono/jsx/jsx-dev-runtime").JSX.Element;
8
+ export default IconEye;
@@ -0,0 +1,8 @@
1
+ type Props = {
2
+ width?: number;
3
+ height?: number;
4
+ className?: string;
5
+ "data-hide-icon"?: boolean;
6
+ };
7
+ declare const IconEyeSlash: ({ width, height, className, ...props }: Props) => import("hono/jsx/jsx-dev-runtime").JSX.Element;
8
+ export default IconEyeSlash;
@@ -0,0 +1,7 @@
1
+ type Props = {
2
+ width?: number;
3
+ height?: number;
4
+ className?: string;
5
+ };
6
+ declare const PenIcon: ({ width, height, className }: Props) => import("hono/jsx/jsx-dev-runtime").JSX.Element;
7
+ export default PenIcon;
@@ -0,0 +1,16 @@
1
+ import type { FC } from "hono/jsx";
2
+ import { LoginSession, Theme, Branding } from "@authhero/adapter-interfaces";
3
+ import { EnrichedClient } from "../helpers/client";
4
+ type Props = {
5
+ error?: string;
6
+ theme?: Theme | null;
7
+ branding?: Branding | null;
8
+ loginSession: LoginSession;
9
+ email?: string;
10
+ client: EnrichedClient;
11
+ className?: string;
12
+ isEmbedded?: boolean;
13
+ browserName?: string;
14
+ };
15
+ declare const IdentifierForm: FC<Props>;
16
+ export default IdentifierForm;
@@ -0,0 +1,15 @@
1
+ import type { FC } from "hono/jsx";
2
+ import { LoginSession, Theme, Branding } from "@authhero/adapter-interfaces";
3
+ import { EnrichedClient } from "../helpers/client";
4
+ type Props = {
5
+ error?: string;
6
+ theme: Theme | null;
7
+ branding: Branding | null;
8
+ loginSession: LoginSession;
9
+ email?: string;
10
+ client: EnrichedClient;
11
+ isEmbedded?: boolean;
12
+ browserName?: string;
13
+ };
14
+ declare const IdentifierPage: FC<Props>;
15
+ export default IdentifierPage;
@@ -0,0 +1,14 @@
1
+ import type { FC } from "hono/jsx";
2
+ import { Theme, Branding, User } from "@authhero/adapter-interfaces";
3
+ import { EnrichedClient } from "../helpers/client";
4
+ export interface ImpersonateFormProps {
5
+ error?: string;
6
+ theme?: Theme | null;
7
+ branding?: Branding | null;
8
+ state: string;
9
+ user: User;
10
+ client: EnrichedClient;
11
+ className?: string;
12
+ }
13
+ declare const ImpersonateForm: FC<ImpersonateFormProps>;
14
+ export default ImpersonateForm;