@keycloakify/angular 0.2.23 → 20.0.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 (336) hide show
  1. package/README.md +2 -1
  2. package/account/DefaultPage/index.d.ts +12 -1
  3. package/account/KcContext/index.d.ts +1 -1
  4. package/account/classes/component-reference/index.d.ts +9 -1
  5. package/account/directives/kc-class/index.d.ts +28 -1
  6. package/account/i18n/index.d.ts +7 -1
  7. package/account/index.d.ts +18 -1
  8. package/account/pages/account/index.d.ts +18 -1
  9. package/account/pages/applications/index.d.ts +17 -1
  10. package/account/pages/federatedIdentity/index.d.ts +17 -1
  11. package/account/pages/log/index.d.ts +17 -1
  12. package/account/pages/password/index.d.ts +32 -1
  13. package/account/pages/sessions/index.d.ts +17 -1
  14. package/account/pages/totp/index.d.ts +17 -1
  15. package/account/providers/keycloakify-angular/index.d.ts +21 -1
  16. package/account/services/account-resource-injector/index.d.ts +14 -1
  17. package/account/services/i18n/index.d.ts +9 -1
  18. package/account/template/index.d.ts +33 -1
  19. package/account/tokens/classes/index.d.ts +19 -1
  20. package/account/tokens/i18n/index.d.ts +5 -1
  21. package/account/tokens/kc-context/index.d.ts +6 -1
  22. package/bin/187.index.js +4 -4
  23. package/bin/{279.index.js → 484.index.js} +269 -338
  24. package/bin/index.js +12 -1
  25. package/fesm2022/keycloakify-angular-account-directives-kc-class.mjs +3 -3
  26. package/fesm2022/keycloakify-angular-account-directives-kc-class.mjs.map +1 -1
  27. package/fesm2022/keycloakify-angular-account-pages-account.mjs +3 -3
  28. package/fesm2022/keycloakify-angular-account-pages-account.mjs.map +1 -1
  29. package/fesm2022/keycloakify-angular-account-pages-applications.mjs +3 -3
  30. package/fesm2022/keycloakify-angular-account-pages-applications.mjs.map +1 -1
  31. package/fesm2022/keycloakify-angular-account-pages-federatedIdentity.mjs +3 -3
  32. package/fesm2022/keycloakify-angular-account-pages-federatedIdentity.mjs.map +1 -1
  33. package/fesm2022/keycloakify-angular-account-pages-log.mjs +3 -3
  34. package/fesm2022/keycloakify-angular-account-pages-log.mjs.map +1 -1
  35. package/fesm2022/keycloakify-angular-account-pages-password.mjs +3 -3
  36. package/fesm2022/keycloakify-angular-account-pages-password.mjs.map +1 -1
  37. package/fesm2022/keycloakify-angular-account-pages-sessions.mjs +3 -3
  38. package/fesm2022/keycloakify-angular-account-pages-sessions.mjs.map +1 -1
  39. package/fesm2022/keycloakify-angular-account-pages-totp.mjs +3 -3
  40. package/fesm2022/keycloakify-angular-account-pages-totp.mjs.map +1 -1
  41. package/fesm2022/keycloakify-angular-account-providers-keycloakify-angular.mjs +1 -2
  42. package/fesm2022/keycloakify-angular-account-providers-keycloakify-angular.mjs.map +1 -1
  43. package/fesm2022/keycloakify-angular-account-services-account-resource-injector.mjs +3 -3
  44. package/fesm2022/keycloakify-angular-account-services-account-resource-injector.mjs.map +1 -1
  45. package/fesm2022/keycloakify-angular-account-services-i18n.mjs +3 -3
  46. package/fesm2022/keycloakify-angular-account-services-i18n.mjs.map +1 -1
  47. package/fesm2022/keycloakify-angular-account-template.mjs +3 -3
  48. package/fesm2022/keycloakify-angular-account-template.mjs.map +1 -1
  49. package/fesm2022/keycloakify-angular-lib-directives-attributes.mjs +3 -3
  50. package/fesm2022/keycloakify-angular-lib-directives-attributes.mjs.map +1 -1
  51. package/fesm2022/keycloakify-angular-lib-pipes-input-type.mjs +3 -3
  52. package/fesm2022/keycloakify-angular-lib-pipes-input-type.mjs.map +1 -1
  53. package/fesm2022/keycloakify-angular-lib-pipes-is-array-with-empty-object.mjs +3 -3
  54. package/fesm2022/keycloakify-angular-lib-pipes-is-array-with-empty-object.mjs.map +1 -1
  55. package/fesm2022/keycloakify-angular-lib-pipes-kc-sanitize.mjs +3 -3
  56. package/fesm2022/keycloakify-angular-lib-pipes-kc-sanitize.mjs.map +1 -1
  57. package/fesm2022/keycloakify-angular-lib-pipes-to-array.mjs +3 -3
  58. package/fesm2022/keycloakify-angular-lib-pipes-to-array.mjs.map +1 -1
  59. package/fesm2022/keycloakify-angular-lib-pipes-to-number.mjs +3 -3
  60. package/fesm2022/keycloakify-angular-lib-pipes-to-number.mjs.map +1 -1
  61. package/fesm2022/keycloakify-angular-lib-services-resource-injector.mjs +3 -3
  62. package/fesm2022/keycloakify-angular-lib-services-resource-injector.mjs.map +1 -1
  63. package/fesm2022/keycloakify-angular-login-components-add-remove-buttons-multi-valued-attribute.mjs +3 -3
  64. package/fesm2022/keycloakify-angular-login-components-add-remove-buttons-multi-valued-attribute.mjs.map +1 -1
  65. package/fesm2022/keycloakify-angular-login-components-field-errors.mjs +3 -3
  66. package/fesm2022/keycloakify-angular-login-components-field-errors.mjs.map +1 -1
  67. package/fesm2022/keycloakify-angular-login-components-group-label.mjs +3 -3
  68. package/fesm2022/keycloakify-angular-login-components-group-label.mjs.map +1 -1
  69. package/fesm2022/keycloakify-angular-login-components-input-field-by-type.mjs +3 -3
  70. package/fesm2022/keycloakify-angular-login-components-input-field-by-type.mjs.map +1 -1
  71. package/fesm2022/keycloakify-angular-login-components-input-tag-selects.mjs +3 -3
  72. package/fesm2022/keycloakify-angular-login-components-input-tag-selects.mjs.map +1 -1
  73. package/fesm2022/keycloakify-angular-login-components-input-tag.mjs +3 -3
  74. package/fesm2022/keycloakify-angular-login-components-input-tag.mjs.map +1 -1
  75. package/fesm2022/keycloakify-angular-login-components-logout-other-sessions.mjs +3 -3
  76. package/fesm2022/keycloakify-angular-login-components-logout-other-sessions.mjs.map +1 -1
  77. package/fesm2022/keycloakify-angular-login-components-password-wrapper.mjs +3 -3
  78. package/fesm2022/keycloakify-angular-login-components-password-wrapper.mjs.map +1 -1
  79. package/fesm2022/keycloakify-angular-login-components-select-tag.mjs +3 -3
  80. package/fesm2022/keycloakify-angular-login-components-select-tag.mjs.map +1 -1
  81. package/fesm2022/keycloakify-angular-login-components-textarea-tag.mjs +3 -3
  82. package/fesm2022/keycloakify-angular-login-components-textarea-tag.mjs.map +1 -1
  83. package/fesm2022/keycloakify-angular-login-components-user-profile-form-fields.mjs +3 -3
  84. package/fesm2022/keycloakify-angular-login-components-user-profile-form-fields.mjs.map +1 -1
  85. package/fesm2022/keycloakify-angular-login-directives-kc-class.mjs +3 -3
  86. package/fesm2022/keycloakify-angular-login-directives-kc-class.mjs.map +1 -1
  87. package/fesm2022/keycloakify-angular-login-pages-code.mjs +3 -3
  88. package/fesm2022/keycloakify-angular-login-pages-code.mjs.map +1 -1
  89. package/fesm2022/keycloakify-angular-login-pages-delete-account-confirm.mjs +3 -3
  90. package/fesm2022/keycloakify-angular-login-pages-delete-account-confirm.mjs.map +1 -1
  91. package/fesm2022/keycloakify-angular-login-pages-delete-credential.mjs +3 -3
  92. package/fesm2022/keycloakify-angular-login-pages-delete-credential.mjs.map +1 -1
  93. package/fesm2022/keycloakify-angular-login-pages-error.mjs +3 -3
  94. package/fesm2022/keycloakify-angular-login-pages-error.mjs.map +1 -1
  95. package/fesm2022/keycloakify-angular-login-pages-frontchannel-logout.mjs +3 -3
  96. package/fesm2022/keycloakify-angular-login-pages-frontchannel-logout.mjs.map +1 -1
  97. package/fesm2022/keycloakify-angular-login-pages-idp-review-user-profile.mjs +3 -3
  98. package/fesm2022/keycloakify-angular-login-pages-idp-review-user-profile.mjs.map +1 -1
  99. package/fesm2022/keycloakify-angular-login-pages-info.mjs +5 -5
  100. package/fesm2022/keycloakify-angular-login-pages-info.mjs.map +1 -1
  101. package/fesm2022/keycloakify-angular-login-pages-login-config-totp.mjs +3 -3
  102. package/fesm2022/keycloakify-angular-login-pages-login-config-totp.mjs.map +1 -1
  103. package/fesm2022/keycloakify-angular-login-pages-login-idp-link-confirm-override.mjs +3 -3
  104. package/fesm2022/keycloakify-angular-login-pages-login-idp-link-confirm-override.mjs.map +1 -1
  105. package/fesm2022/keycloakify-angular-login-pages-login-idp-link-confirm.mjs +3 -3
  106. package/fesm2022/keycloakify-angular-login-pages-login-idp-link-confirm.mjs.map +1 -1
  107. package/fesm2022/keycloakify-angular-login-pages-login-idp-link-email.mjs +3 -3
  108. package/fesm2022/keycloakify-angular-login-pages-login-idp-link-email.mjs.map +1 -1
  109. package/fesm2022/keycloakify-angular-login-pages-login-oauth-grant.mjs +3 -3
  110. package/fesm2022/keycloakify-angular-login-pages-login-oauth-grant.mjs.map +1 -1
  111. package/fesm2022/keycloakify-angular-login-pages-login-oauth2-device-verify-user-code.mjs +3 -3
  112. package/fesm2022/keycloakify-angular-login-pages-login-oauth2-device-verify-user-code.mjs.map +1 -1
  113. package/fesm2022/keycloakify-angular-login-pages-login-otp.mjs +3 -3
  114. package/fesm2022/keycloakify-angular-login-pages-login-otp.mjs.map +1 -1
  115. package/fesm2022/keycloakify-angular-login-pages-login-page-expired.mjs +3 -3
  116. package/fesm2022/keycloakify-angular-login-pages-login-page-expired.mjs.map +1 -1
  117. package/fesm2022/keycloakify-angular-login-pages-login-passkeys-conditional-authenticate.mjs +3 -3
  118. package/fesm2022/keycloakify-angular-login-pages-login-passkeys-conditional-authenticate.mjs.map +1 -1
  119. package/fesm2022/keycloakify-angular-login-pages-login-password.mjs +3 -3
  120. package/fesm2022/keycloakify-angular-login-pages-login-password.mjs.map +1 -1
  121. package/fesm2022/keycloakify-angular-login-pages-login-recovery-authn-code-config.mjs +3 -3
  122. package/fesm2022/keycloakify-angular-login-pages-login-recovery-authn-code-config.mjs.map +1 -1
  123. package/fesm2022/keycloakify-angular-login-pages-login-recovery-authn-code-input.mjs +3 -3
  124. package/fesm2022/keycloakify-angular-login-pages-login-recovery-authn-code-input.mjs.map +1 -1
  125. package/fesm2022/keycloakify-angular-login-pages-login-reset-otp.mjs +3 -3
  126. package/fesm2022/keycloakify-angular-login-pages-login-reset-otp.mjs.map +1 -1
  127. package/fesm2022/keycloakify-angular-login-pages-login-reset-password.mjs +3 -3
  128. package/fesm2022/keycloakify-angular-login-pages-login-reset-password.mjs.map +1 -1
  129. package/fesm2022/keycloakify-angular-login-pages-login-update-password.mjs +3 -3
  130. package/fesm2022/keycloakify-angular-login-pages-login-update-password.mjs.map +1 -1
  131. package/fesm2022/keycloakify-angular-login-pages-login-update-profile.mjs +3 -3
  132. package/fesm2022/keycloakify-angular-login-pages-login-update-profile.mjs.map +1 -1
  133. package/fesm2022/keycloakify-angular-login-pages-login-username.mjs +3 -3
  134. package/fesm2022/keycloakify-angular-login-pages-login-username.mjs.map +1 -1
  135. package/fesm2022/keycloakify-angular-login-pages-login-verify-email.mjs +3 -3
  136. package/fesm2022/keycloakify-angular-login-pages-login-verify-email.mjs.map +1 -1
  137. package/fesm2022/keycloakify-angular-login-pages-login-x509-info.mjs +3 -3
  138. package/fesm2022/keycloakify-angular-login-pages-login-x509-info.mjs.map +1 -1
  139. package/fesm2022/keycloakify-angular-login-pages-login.mjs +3 -3
  140. package/fesm2022/keycloakify-angular-login-pages-login.mjs.map +1 -1
  141. package/fesm2022/keycloakify-angular-login-pages-logout-confirm.mjs +3 -3
  142. package/fesm2022/keycloakify-angular-login-pages-logout-confirm.mjs.map +1 -1
  143. package/fesm2022/keycloakify-angular-login-pages-register.mjs +3 -3
  144. package/fesm2022/keycloakify-angular-login-pages-register.mjs.map +1 -1
  145. package/fesm2022/keycloakify-angular-login-pages-saml-post-form.mjs +3 -3
  146. package/fesm2022/keycloakify-angular-login-pages-saml-post-form.mjs.map +1 -1
  147. package/fesm2022/keycloakify-angular-login-pages-select-authenticator.mjs +3 -3
  148. package/fesm2022/keycloakify-angular-login-pages-select-authenticator.mjs.map +1 -1
  149. package/fesm2022/keycloakify-angular-login-pages-terms.mjs +3 -3
  150. package/fesm2022/keycloakify-angular-login-pages-terms.mjs.map +1 -1
  151. package/fesm2022/keycloakify-angular-login-pages-update-email.mjs +3 -3
  152. package/fesm2022/keycloakify-angular-login-pages-update-email.mjs.map +1 -1
  153. package/fesm2022/keycloakify-angular-login-pages-webauthn-authenticate.mjs +3 -3
  154. package/fesm2022/keycloakify-angular-login-pages-webauthn-authenticate.mjs.map +1 -1
  155. package/fesm2022/keycloakify-angular-login-pages-webauthn-error.mjs +3 -3
  156. package/fesm2022/keycloakify-angular-login-pages-webauthn-error.mjs.map +1 -1
  157. package/fesm2022/keycloakify-angular-login-pages-webauthn-register.mjs +3 -3
  158. package/fesm2022/keycloakify-angular-login-pages-webauthn-register.mjs.map +1 -1
  159. package/fesm2022/keycloakify-angular-login-providers-keycloakify-angular.mjs +1 -2
  160. package/fesm2022/keycloakify-angular-login-providers-keycloakify-angular.mjs.map +1 -1
  161. package/fesm2022/keycloakify-angular-login-services-i18n.mjs +3 -3
  162. package/fesm2022/keycloakify-angular-login-services-i18n.mjs.map +1 -1
  163. package/fesm2022/keycloakify-angular-login-services-login-resource-injector.mjs +3 -3
  164. package/fesm2022/keycloakify-angular-login-services-login-resource-injector.mjs.map +1 -1
  165. package/fesm2022/keycloakify-angular-login-services-user-profile-form.mjs +3 -3
  166. package/fesm2022/keycloakify-angular-login-services-user-profile-form.mjs.map +1 -1
  167. package/fesm2022/keycloakify-angular-login-template.mjs +3 -3
  168. package/fesm2022/keycloakify-angular-login-template.mjs.map +1 -1
  169. package/index.d.ts +3 -1
  170. package/lib/directives/attributes/index.d.ts +11 -1
  171. package/lib/index.d.ts +3 -1
  172. package/lib/models/script/index.d.ts +8 -1
  173. package/lib/pipes/input-type/index.d.ts +10 -1
  174. package/lib/pipes/is-array-with-empty-object/index.d.ts +10 -1
  175. package/lib/pipes/kc-sanitize/index.d.ts +12 -1
  176. package/lib/pipes/to-array/index.d.ts +10 -1
  177. package/lib/pipes/to-number/index.d.ts +10 -1
  178. package/lib/services/resource-injector/index.d.ts +13 -1
  179. package/lib/tokens/use-default-css/index.d.ts +5 -1
  180. package/login/KcContext/index.d.ts +1 -1
  181. package/login/classes/component-reference/index.d.ts +8 -1
  182. package/login/components/add-remove-buttons-multi-valued-attribute/index.d.ts +20 -1
  183. package/login/components/field-errors/index.d.ts +17 -1
  184. package/login/components/group-label/index.d.ts +18 -1
  185. package/login/components/input-field-by-type/index.d.ts +19 -1
  186. package/login/components/input-tag/index.d.ts +25 -1
  187. package/login/components/input-tag-selects/index.d.ts +31 -1
  188. package/login/components/logout-other-sessions/index.d.ts +14 -1
  189. package/login/components/password-wrapper/index.d.ts +20 -1
  190. package/login/components/select-tag/index.d.ts +24 -1
  191. package/login/components/textarea-tag/index.d.ts +20 -1
  192. package/login/components/user-profile-form-fields/index.d.ts +27 -1
  193. package/login/directives/kc-class/index.d.ts +28 -1
  194. package/login/i18n/index.d.ts +7 -1
  195. package/login/index.d.ts +20 -1
  196. package/login/pages/code/index.d.ts +25 -1
  197. package/login/pages/delete-account-confirm/index.d.ts +25 -1
  198. package/login/pages/delete-credential/index.d.ts +25 -1
  199. package/login/pages/error/index.d.ts +25 -1
  200. package/login/pages/frontchannel-logout/index.d.ts +26 -1
  201. package/login/pages/idp-review-user-profile/index.d.ts +30 -1
  202. package/login/pages/info/index.d.ts +26 -1
  203. package/login/pages/login/index.d.ts +26 -1
  204. package/login/pages/login-config-totp/index.d.ts +25 -1
  205. package/login/pages/login-idp-link-confirm/index.d.ts +22 -1
  206. package/login/pages/login-idp-link-confirm-override/index.d.ts +22 -1
  207. package/login/pages/login-idp-link-email/index.d.ts +22 -1
  208. package/login/pages/login-oauth-grant/index.d.ts +22 -1
  209. package/login/pages/login-oauth2-device-verify-user-code/index.d.ts +25 -1
  210. package/login/pages/login-otp/index.d.ts +25 -1
  211. package/login/pages/login-page-expired/index.d.ts +25 -1
  212. package/login/pages/login-passkeys-conditional-authenticate/index.d.ts +30 -1
  213. package/login/pages/login-password/index.d.ts +27 -1
  214. package/login/pages/login-recovery-authn-code-config/index.d.ts +31 -1
  215. package/login/pages/login-recovery-authn-code-input/index.d.ts +25 -1
  216. package/login/pages/login-reset-otp/index.d.ts +25 -1
  217. package/login/pages/login-reset-password/index.d.ts +25 -1
  218. package/login/pages/login-update-password/index.d.ts +25 -1
  219. package/login/pages/login-update-profile/index.d.ts +29 -1
  220. package/login/pages/login-username/index.d.ts +26 -1
  221. package/login/pages/login-verify-email/index.d.ts +25 -1
  222. package/login/pages/login-x509-info/index.d.ts +25 -1
  223. package/login/pages/logout-confirm/index.d.ts +22 -1
  224. package/login/pages/register/index.d.ts +31 -1
  225. package/login/pages/saml-post-form/index.d.ts +27 -1
  226. package/login/pages/select-authenticator/index.d.ts +25 -1
  227. package/login/pages/terms/index.d.ts +25 -1
  228. package/login/pages/update-email/index.d.ts +26 -1
  229. package/login/pages/webauthn-authenticate/index.d.ts +30 -1
  230. package/login/pages/webauthn-error/index.d.ts +26 -1
  231. package/login/pages/webauthn-register/index.d.ts +29 -1
  232. package/login/providers/keycloakify-angular/index.d.ts +22 -1
  233. package/login/services/i18n/index.d.ts +9 -1
  234. package/login/services/login-resource-injector/index.d.ts +15 -1
  235. package/login/services/user-profile-form/index.d.ts +69 -1
  236. package/login/template/index.d.ts +41 -1
  237. package/login/tokens/classes/index.d.ts +130 -1
  238. package/login/tokens/i18n/index.d.ts +5 -1
  239. package/login/tokens/kc-context/index.d.ts +6 -1
  240. package/login/tokens/make-user-confirm-password/index.d.ts +5 -1
  241. package/package.json +12 -12
  242. package/src/account/providers/keycloakify-angular/keycloakify-angular.providers.ts +2 -2
  243. package/src/login/pages/info/info.component.html +2 -4
  244. package/src/login/providers/keycloakify-angular/keycloakify-angular.providers.ts +2 -2
  245. package/account/DefaultPage/DefaultPage.d.ts +0 -10
  246. package/account/KcContext/KcContext.d.ts +0 -1
  247. package/account/account.d.ts +0 -12
  248. package/account/classes/component-reference/component-reference.class.d.ts +0 -6
  249. package/account/defaultPage.d.ts +0 -3
  250. package/account/directives/kc-class/kc-class.directive.d.ts +0 -26
  251. package/account/i18n/i18n.d.ts +0 -4
  252. package/account/pages/account/account.component.d.ts +0 -15
  253. package/account/pages/applications/applications.component.d.ts +0 -14
  254. package/account/pages/federatedIdentity/federatedIdentity.component.d.ts +0 -14
  255. package/account/pages/log/log.component.d.ts +0 -14
  256. package/account/pages/password/password.component.d.ts +0 -29
  257. package/account/pages/sessions/sessions.component.d.ts +0 -14
  258. package/account/pages/totp/totp.component.d.ts +0 -14
  259. package/account/providers/keycloakify-angular/keycloakify-angular.providers.d.ts +0 -16
  260. package/account/services/account-resource-injector/account-resource-injector.service.d.ts +0 -10
  261. package/account/services/i18n/i18n.service.d.ts +0 -6
  262. package/account/template/template.component.d.ts +0 -31
  263. package/account/tokens/classes/classes.token.d.ts +0 -16
  264. package/account/tokens/i18n/i18n.token.d.ts +0 -2
  265. package/account/tokens/kc-context/kc-context.token.d.ts +0 -3
  266. package/lib/directives/attributes/attributes.directive.d.ts +0 -8
  267. package/lib/models/script/script.model.d.ts +0 -6
  268. package/lib/pipes/input-type/input-type.pipe.d.ts +0 -7
  269. package/lib/pipes/is-array-with-empty-object/is-array-with-empty-object.pipe.d.ts +0 -7
  270. package/lib/pipes/kc-sanitize/kc-sanitize.pipe.d.ts +0 -9
  271. package/lib/pipes/to-array/to-array.pipe.d.ts +0 -7
  272. package/lib/pipes/to-number/to-number.pipe.d.ts +0 -7
  273. package/lib/services/resource-injector/resource-injector.service.d.ts +0 -10
  274. package/lib/tokens/use-default-css/use-default-css.token.d.ts +0 -2
  275. package/login/KcContext/KcContext.d.ts +0 -1
  276. package/login/classes/component-reference/component-reference.class.d.ts +0 -5
  277. package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.d.ts +0 -17
  278. package/login/components/field-errors/field-errors.component.d.ts +0 -14
  279. package/login/components/group-label/group-label.component.d.ts +0 -15
  280. package/login/components/input-field-by-type/input-field-by-type.component.d.ts +0 -16
  281. package/login/components/input-tag/input-tag.component.d.ts +0 -22
  282. package/login/components/input-tag-selects/input-tag-selects.component.d.ts +0 -28
  283. package/login/components/logout-other-sessions/logout-other-sessions.component.d.ts +0 -11
  284. package/login/components/password-wrapper/password-wrapper.component.d.ts +0 -17
  285. package/login/components/select-tag/select-tag.component.d.ts +0 -21
  286. package/login/components/textarea-tag/textarea-tag.component.d.ts +0 -17
  287. package/login/components/user-profile-form-fields/user-profile-form-fields.component.d.ts +0 -22
  288. package/login/defaultPage.d.ts +0 -3
  289. package/login/directives/kc-class/kc-class.directive.d.ts +0 -26
  290. package/login/i18n/i18n.d.ts +0 -4
  291. package/login/login.d.ts +0 -14
  292. package/login/pages/code/code.component.d.ts +0 -22
  293. package/login/pages/delete-account-confirm/delete-account-confirm.component.d.ts +0 -22
  294. package/login/pages/delete-credential/delete-credential.component.d.ts +0 -22
  295. package/login/pages/error/error.component.d.ts +0 -22
  296. package/login/pages/frontchannel-logout/frontchannel-logout.component.d.ts +0 -23
  297. package/login/pages/idp-review-user-profile/idp-review-user-profile.component.d.ts +0 -27
  298. package/login/pages/info/info.component.d.ts +0 -23
  299. package/login/pages/login/login.component.d.ts +0 -23
  300. package/login/pages/login-config-totp/login-config-totp.component.d.ts +0 -22
  301. package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.d.ts +0 -19
  302. package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.d.ts +0 -19
  303. package/login/pages/login-idp-link-email/login-idp-link-email.component.d.ts +0 -19
  304. package/login/pages/login-oauth-grant/login-oauth-grant.component.d.ts +0 -19
  305. package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.d.ts +0 -22
  306. package/login/pages/login-otp/login-otp.component.d.ts +0 -22
  307. package/login/pages/login-page-expired/login-page-expired.component.d.ts +0 -22
  308. package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.d.ts +0 -27
  309. package/login/pages/login-password/login-password.component.d.ts +0 -24
  310. package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.d.ts +0 -28
  311. package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.d.ts +0 -22
  312. package/login/pages/login-reset-otp/login-reset-otp.component.d.ts +0 -22
  313. package/login/pages/login-reset-password/login-reset-password.component.d.ts +0 -22
  314. package/login/pages/login-update-password/login-update-password.component.d.ts +0 -22
  315. package/login/pages/login-update-profile/login-update-profile.component.d.ts +0 -26
  316. package/login/pages/login-username/login-username.component.d.ts +0 -23
  317. package/login/pages/login-verify-email/login-verify-email.component.d.ts +0 -22
  318. package/login/pages/login-x509-info/login-x509-info.component.d.ts +0 -22
  319. package/login/pages/logout-confirm/logout-confirm.component.d.ts +0 -19
  320. package/login/pages/register/register.component.d.ts +0 -28
  321. package/login/pages/saml-post-form/saml-post-form.component.d.ts +0 -24
  322. package/login/pages/select-authenticator/select-authenticator.component.d.ts +0 -22
  323. package/login/pages/terms/terms.component.d.ts +0 -22
  324. package/login/pages/update-email/update-email.component.d.ts +0 -23
  325. package/login/pages/webauthn-authenticate/webauthn-authenticate.component.d.ts +0 -27
  326. package/login/pages/webauthn-error/webauthn-error.component.d.ts +0 -23
  327. package/login/pages/webauthn-register/webauthn-register.component.d.ts +0 -26
  328. package/login/providers/keycloakify-angular/keycloakify-angular.providers.d.ts +0 -17
  329. package/login/services/i18n/i18n.service.d.ts +0 -6
  330. package/login/services/login-resource-injector/login-resource-injector.service.d.ts +0 -11
  331. package/login/services/user-profile-form/user-profile-form.service.d.ts +0 -65
  332. package/login/template/template.component.d.ts +0 -38
  333. package/login/tokens/classes/classes.token.d.ts +0 -127
  334. package/login/tokens/i18n/i18n.token.d.ts +0 -2
  335. package/login/tokens/kc-context/kc-context.token.d.ts +0 -3
  336. package/login/tokens/make-user-confirm-password/make-user-confirm-password.token.d.ts +0 -2
@@ -1,5 +1,5 @@
1
- export const id = 279;
2
- export const ids = [279];
1
+ export const id = 484;
2
+ export const ids = [484];
3
3
  export const modules = {
4
4
 
5
5
  /***/ 94:
@@ -48,16 +48,134 @@ function symToStr(wrap) {
48
48
 
49
49
  /***/ }),
50
50
 
51
- /***/ 383:
51
+ /***/ 204:
52
52
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
53
53
 
54
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
55
- /* harmony export */ z: () => (/* binding */ z)
56
- /* harmony export */ });
57
- /* unused harmony exports BRAND, DIRTY, EMPTY_PATH, INVALID, NEVER, OK, ParseStatus, Schema, ZodAny, ZodArray, ZodBigInt, ZodBoolean, ZodBranded, ZodCatch, ZodDate, ZodDefault, ZodDiscriminatedUnion, ZodEffects, ZodEnum, ZodError, ZodFirstPartyTypeKind, ZodFunction, ZodIntersection, ZodIssueCode, ZodLazy, ZodLiteral, ZodMap, ZodNaN, ZodNativeEnum, ZodNever, ZodNull, ZodNullable, ZodNumber, ZodObject, ZodOptional, ZodParsedType, ZodPipeline, ZodPromise, ZodReadonly, ZodRecord, ZodSchema, ZodSet, ZodString, ZodSymbol, ZodTransformer, ZodTuple, ZodType, ZodUndefined, ZodUnion, ZodUnknown, ZodVoid, addIssueToContext, any, array, bigint, boolean, coerce, custom, date, datetimeRegex, default, defaultErrorMap, discriminatedUnion, effect, enum, function, getErrorMap, getParsedType, instanceof, intersection, isAborted, isAsync, isDirty, isValid, late, lazy, literal, makeIssue, map, nan, nativeEnum, never, null, nullable, number, object, objectUtil, oboolean, onumber, optional, ostring, pipeline, preprocess, promise, quotelessJson, record, set, setErrorMap, strictObject, string, symbol, transformer, tuple, undefined, union, unknown, util, void */
54
+
55
+ // EXPORTS
56
+ __webpack_require__.d(__webpack_exports__, {
57
+ z: () => (/* reexport */ external_namespaceObject)
58
+ });
59
+
60
+ // UNUSED EXPORTS: BRAND, DIRTY, EMPTY_PATH, INVALID, NEVER, OK, ParseStatus, Schema, ZodAny, ZodArray, ZodBigInt, ZodBoolean, ZodBranded, ZodCatch, ZodDate, ZodDefault, ZodDiscriminatedUnion, ZodEffects, ZodEnum, ZodError, ZodFirstPartyTypeKind, ZodFunction, ZodIntersection, ZodIssueCode, ZodLazy, ZodLiteral, ZodMap, ZodNaN, ZodNativeEnum, ZodNever, ZodNull, ZodNullable, ZodNumber, ZodObject, ZodOptional, ZodParsedType, ZodPipeline, ZodPromise, ZodReadonly, ZodRecord, ZodSchema, ZodSet, ZodString, ZodSymbol, ZodTransformer, ZodTuple, ZodType, ZodUndefined, ZodUnion, ZodUnknown, ZodVoid, addIssueToContext, any, array, bigint, boolean, coerce, custom, date, datetimeRegex, default, defaultErrorMap, discriminatedUnion, effect, enum, function, getErrorMap, getParsedType, instanceof, intersection, isAborted, isAsync, isDirty, isValid, late, lazy, literal, makeIssue, map, nan, nativeEnum, never, null, nullable, number, object, objectUtil, oboolean, onumber, optional, ostring, pipeline, preprocess, promise, quotelessJson, record, set, setErrorMap, strictObject, string, symbol, transformer, tuple, undefined, union, unknown, util, void
61
+
62
+ // NAMESPACE OBJECT: ./node_modules/zod/dist/esm/v3/external.js
63
+ var external_namespaceObject = {};
64
+ __webpack_require__.r(external_namespaceObject);
65
+ __webpack_require__.d(external_namespaceObject, {
66
+ BRAND: () => (BRAND),
67
+ DIRTY: () => (DIRTY),
68
+ EMPTY_PATH: () => (EMPTY_PATH),
69
+ INVALID: () => (INVALID),
70
+ NEVER: () => (NEVER),
71
+ OK: () => (OK),
72
+ ParseStatus: () => (ParseStatus),
73
+ Schema: () => (ZodType),
74
+ ZodAny: () => (ZodAny),
75
+ ZodArray: () => (ZodArray),
76
+ ZodBigInt: () => (ZodBigInt),
77
+ ZodBoolean: () => (ZodBoolean),
78
+ ZodBranded: () => (ZodBranded),
79
+ ZodCatch: () => (ZodCatch),
80
+ ZodDate: () => (ZodDate),
81
+ ZodDefault: () => (ZodDefault),
82
+ ZodDiscriminatedUnion: () => (ZodDiscriminatedUnion),
83
+ ZodEffects: () => (ZodEffects),
84
+ ZodEnum: () => (ZodEnum),
85
+ ZodError: () => (ZodError),
86
+ ZodFirstPartyTypeKind: () => (ZodFirstPartyTypeKind),
87
+ ZodFunction: () => (ZodFunction),
88
+ ZodIntersection: () => (ZodIntersection),
89
+ ZodIssueCode: () => (ZodIssueCode),
90
+ ZodLazy: () => (ZodLazy),
91
+ ZodLiteral: () => (ZodLiteral),
92
+ ZodMap: () => (ZodMap),
93
+ ZodNaN: () => (ZodNaN),
94
+ ZodNativeEnum: () => (ZodNativeEnum),
95
+ ZodNever: () => (ZodNever),
96
+ ZodNull: () => (ZodNull),
97
+ ZodNullable: () => (ZodNullable),
98
+ ZodNumber: () => (ZodNumber),
99
+ ZodObject: () => (ZodObject),
100
+ ZodOptional: () => (ZodOptional),
101
+ ZodParsedType: () => (ZodParsedType),
102
+ ZodPipeline: () => (ZodPipeline),
103
+ ZodPromise: () => (ZodPromise),
104
+ ZodReadonly: () => (ZodReadonly),
105
+ ZodRecord: () => (ZodRecord),
106
+ ZodSchema: () => (ZodType),
107
+ ZodSet: () => (ZodSet),
108
+ ZodString: () => (ZodString),
109
+ ZodSymbol: () => (ZodSymbol),
110
+ ZodTransformer: () => (ZodEffects),
111
+ ZodTuple: () => (ZodTuple),
112
+ ZodType: () => (ZodType),
113
+ ZodUndefined: () => (ZodUndefined),
114
+ ZodUnion: () => (ZodUnion),
115
+ ZodUnknown: () => (ZodUnknown),
116
+ ZodVoid: () => (ZodVoid),
117
+ addIssueToContext: () => (addIssueToContext),
118
+ any: () => (anyType),
119
+ array: () => (arrayType),
120
+ bigint: () => (bigIntType),
121
+ boolean: () => (booleanType),
122
+ coerce: () => (coerce),
123
+ custom: () => (custom),
124
+ date: () => (dateType),
125
+ datetimeRegex: () => (datetimeRegex),
126
+ defaultErrorMap: () => (en),
127
+ discriminatedUnion: () => (discriminatedUnionType),
128
+ effect: () => (effectsType),
129
+ "enum": () => (enumType),
130
+ "function": () => (functionType),
131
+ getErrorMap: () => (getErrorMap),
132
+ getParsedType: () => (getParsedType),
133
+ "instanceof": () => (instanceOfType),
134
+ intersection: () => (intersectionType),
135
+ isAborted: () => (isAborted),
136
+ isAsync: () => (isAsync),
137
+ isDirty: () => (isDirty),
138
+ isValid: () => (isValid),
139
+ late: () => (late),
140
+ lazy: () => (lazyType),
141
+ literal: () => (literalType),
142
+ makeIssue: () => (makeIssue),
143
+ map: () => (mapType),
144
+ nan: () => (nanType),
145
+ nativeEnum: () => (nativeEnumType),
146
+ never: () => (neverType),
147
+ "null": () => (nullType),
148
+ nullable: () => (nullableType),
149
+ number: () => (numberType),
150
+ object: () => (objectType),
151
+ objectUtil: () => (objectUtil),
152
+ oboolean: () => (oboolean),
153
+ onumber: () => (onumber),
154
+ optional: () => (optionalType),
155
+ ostring: () => (ostring),
156
+ pipeline: () => (pipelineType),
157
+ preprocess: () => (preprocessType),
158
+ promise: () => (promiseType),
159
+ quotelessJson: () => (quotelessJson),
160
+ record: () => (recordType),
161
+ set: () => (setType),
162
+ setErrorMap: () => (setErrorMap),
163
+ strictObject: () => (strictObjectType),
164
+ string: () => (stringType),
165
+ symbol: () => (symbolType),
166
+ transformer: () => (effectsType),
167
+ tuple: () => (tupleType),
168
+ undefined: () => (undefinedType),
169
+ union: () => (unionType),
170
+ unknown: () => (unknownType),
171
+ util: () => (util),
172
+ "void": () => (voidType)
173
+ });
174
+
175
+ ;// CONCATENATED MODULE: ./node_modules/zod/dist/esm/v3/helpers/util.js
58
176
  var util;
59
177
  (function (util) {
60
- util.assertEqual = (val) => val;
178
+ util.assertEqual = (_) => { };
61
179
  function assertIs(_arg) { }
62
180
  util.assertIs = assertIs;
63
181
  function assertNever(_x) {
@@ -104,11 +222,9 @@ var util;
104
222
  };
105
223
  util.isInteger = typeof Number.isInteger === "function"
106
224
  ? (val) => Number.isInteger(val) // eslint-disable-line ban/ban
107
- : (val) => typeof val === "number" && isFinite(val) && Math.floor(val) === val;
225
+ : (val) => typeof val === "number" && Number.isFinite(val) && Math.floor(val) === val;
108
226
  function joinValues(array, separator = " | ") {
109
- return array
110
- .map((val) => (typeof val === "string" ? `'${val}'` : val))
111
- .join(separator);
227
+ return array.map((val) => (typeof val === "string" ? `'${val}'` : val)).join(separator);
112
228
  }
113
229
  util.joinValues = joinValues;
114
230
  util.jsonStringifyReplacer = (_, value) => {
@@ -157,7 +273,7 @@ const getParsedType = (data) => {
157
273
  case "string":
158
274
  return ZodParsedType.string;
159
275
  case "number":
160
- return isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;
276
+ return Number.isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;
161
277
  case "boolean":
162
278
  return ZodParsedType.boolean;
163
279
  case "function":
@@ -173,10 +289,7 @@ const getParsedType = (data) => {
173
289
  if (data === null) {
174
290
  return ZodParsedType.null;
175
291
  }
176
- if (data.then &&
177
- typeof data.then === "function" &&
178
- data.catch &&
179
- typeof data.catch === "function") {
292
+ if (data.then && typeof data.then === "function" && data.catch && typeof data.catch === "function") {
180
293
  return ZodParsedType.promise;
181
294
  }
182
295
  if (typeof Map !== "undefined" && data instanceof Map) {
@@ -194,6 +307,8 @@ const getParsedType = (data) => {
194
307
  }
195
308
  };
196
309
 
310
+ ;// CONCATENATED MODULE: ./node_modules/zod/dist/esm/v3/ZodError.js
311
+
197
312
  const ZodIssueCode = util.arrayToEnum([
198
313
  "invalid_type",
199
314
  "invalid_literal",
@@ -326,6 +441,9 @@ ZodError.create = (issues) => {
326
441
  return error;
327
442
  };
328
443
 
444
+ ;// CONCATENATED MODULE: ./node_modules/zod/dist/esm/v3/locales/en.js
445
+
446
+
329
447
  const errorMap = (issue, _ctx) => {
330
448
  let message;
331
449
  switch (issue.code) {
@@ -392,17 +510,9 @@ const errorMap = (issue, _ctx) => {
392
510
  else if (issue.type === "string")
393
511
  message = `String must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `over`} ${issue.minimum} character(s)`;
394
512
  else if (issue.type === "number")
395
- message = `Number must be ${issue.exact
396
- ? `exactly equal to `
397
- : issue.inclusive
398
- ? `greater than or equal to `
399
- : `greater than `}${issue.minimum}`;
513
+ message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;
400
514
  else if (issue.type === "date")
401
- message = `Date must be ${issue.exact
402
- ? `exactly equal to `
403
- : issue.inclusive
404
- ? `greater than or equal to `
405
- : `greater than `}${new Date(Number(issue.minimum))}`;
515
+ message = `Date must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${new Date(Number(issue.minimum))}`;
406
516
  else
407
517
  message = "Invalid input";
408
518
  break;
@@ -412,23 +522,11 @@ const errorMap = (issue, _ctx) => {
412
522
  else if (issue.type === "string")
413
523
  message = `String must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `under`} ${issue.maximum} character(s)`;
414
524
  else if (issue.type === "number")
415
- message = `Number must be ${issue.exact
416
- ? `exactly`
417
- : issue.inclusive
418
- ? `less than or equal to`
419
- : `less than`} ${issue.maximum}`;
525
+ message = `Number must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`;
420
526
  else if (issue.type === "bigint")
421
- message = `BigInt must be ${issue.exact
422
- ? `exactly`
423
- : issue.inclusive
424
- ? `less than or equal to`
425
- : `less than`} ${issue.maximum}`;
527
+ message = `BigInt must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`;
426
528
  else if (issue.type === "date")
427
- message = `Date must be ${issue.exact
428
- ? `exactly`
429
- : issue.inclusive
430
- ? `smaller than or equal to`
431
- : `smaller than`} ${new Date(Number(issue.maximum))}`;
529
+ message = `Date must be ${issue.exact ? `exactly` : issue.inclusive ? `smaller than or equal to` : `smaller than`} ${new Date(Number(issue.maximum))}`;
432
530
  else
433
531
  message = "Invalid input";
434
532
  break;
@@ -450,8 +548,12 @@ const errorMap = (issue, _ctx) => {
450
548
  }
451
549
  return { message };
452
550
  };
551
+ /* harmony default export */ const en = (errorMap);
552
+
553
+ ;// CONCATENATED MODULE: ./node_modules/zod/dist/esm/v3/errors.js
554
+
555
+ let overrideErrorMap = en;
453
556
 
454
- let overrideErrorMap = errorMap;
455
557
  function setErrorMap(map) {
456
558
  overrideErrorMap = map;
457
559
  }
@@ -459,6 +561,9 @@ function getErrorMap() {
459
561
  return overrideErrorMap;
460
562
  }
461
563
 
564
+ ;// CONCATENATED MODULE: ./node_modules/zod/dist/esm/v3/helpers/parseUtil.js
565
+
566
+
462
567
  const makeIssue = (params) => {
463
568
  const { data, path, errorMaps, issueData } = params;
464
569
  const fullPath = [...path, ...(issueData.path || [])];
@@ -498,7 +603,7 @@ function addIssueToContext(ctx, issueData) {
498
603
  ctx.common.contextualErrorMap, // contextual error map is first priority
499
604
  ctx.schemaErrorMap, // then schema-bound map if available
500
605
  overrideMap, // then global override map
501
- overrideMap === errorMap ? undefined : errorMap, // then global default map
606
+ overrideMap === en ? undefined : en, // then global default map
502
607
  ].filter((x) => !!x),
503
608
  });
504
609
  ctx.common.issues.push(issue);
@@ -550,8 +655,7 @@ class ParseStatus {
550
655
  status.dirty();
551
656
  if (value.status === "dirty")
552
657
  status.dirty();
553
- if (key.value !== "__proto__" &&
554
- (typeof value.value !== "undefined" || pair.alwaysSet)) {
658
+ if (key.value !== "__proto__" && (typeof value.value !== "undefined" || pair.alwaysSet)) {
555
659
  finalObject[key.value] = value.value;
556
660
  }
557
661
  }
@@ -568,46 +672,20 @@ const isDirty = (x) => x.status === "dirty";
568
672
  const isValid = (x) => x.status === "valid";
569
673
  const isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
570
674
 
571
- /******************************************************************************
572
- Copyright (c) Microsoft Corporation.
573
-
574
- Permission to use, copy, modify, and/or distribute this software for any
575
- purpose with or without fee is hereby granted.
576
-
577
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
578
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
579
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
580
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
581
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
582
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
583
- PERFORMANCE OF THIS SOFTWARE.
584
- ***************************************************************************** */
585
-
586
- function __classPrivateFieldGet(receiver, state, kind, f) {
587
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
588
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
589
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
590
- }
591
-
592
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
593
- if (kind === "m") throw new TypeError("Private method is not writable");
594
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
595
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
596
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
597
- }
598
-
599
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
600
- var e = new Error(message);
601
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
602
- };
603
-
675
+ ;// CONCATENATED MODULE: ./node_modules/zod/dist/esm/v3/helpers/errorUtil.js
604
676
  var errorUtil;
605
677
  (function (errorUtil) {
606
678
  errorUtil.errToObj = (message) => typeof message === "string" ? { message } : message || {};
607
- errorUtil.toString = (message) => typeof message === "string" ? message : message === null || message === void 0 ? void 0 : message.message;
679
+ // biome-ignore lint:
680
+ errorUtil.toString = (message) => typeof message === "string" ? message : message?.message;
608
681
  })(errorUtil || (errorUtil = {}));
609
682
 
610
- var _ZodEnum_cache, _ZodNativeEnum_cache;
683
+ ;// CONCATENATED MODULE: ./node_modules/zod/dist/esm/v3/types.js
684
+
685
+
686
+
687
+
688
+
611
689
  class ParseInputLazyPath {
612
690
  constructor(parent, value, path, key) {
613
691
  this._cachedPath = [];
@@ -618,7 +696,7 @@ class ParseInputLazyPath {
618
696
  }
619
697
  get path() {
620
698
  if (!this._cachedPath.length) {
621
- if (this._key instanceof Array) {
699
+ if (Array.isArray(this._key)) {
622
700
  this._cachedPath.push(...this._path, ...this._key);
623
701
  }
624
702
  else {
@@ -658,17 +736,16 @@ function processCreateParams(params) {
658
736
  if (errorMap)
659
737
  return { errorMap: errorMap, description };
660
738
  const customMap = (iss, ctx) => {
661
- var _a, _b;
662
739
  const { message } = params;
663
740
  if (iss.code === "invalid_enum_value") {
664
- return { message: message !== null && message !== void 0 ? message : ctx.defaultError };
741
+ return { message: message ?? ctx.defaultError };
665
742
  }
666
743
  if (typeof ctx.data === "undefined") {
667
- return { message: (_a = message !== null && message !== void 0 ? message : required_error) !== null && _a !== void 0 ? _a : ctx.defaultError };
744
+ return { message: message ?? required_error ?? ctx.defaultError };
668
745
  }
669
746
  if (iss.code !== "invalid_type")
670
747
  return { message: ctx.defaultError };
671
- return { message: (_b = message !== null && message !== void 0 ? message : invalid_type_error) !== null && _b !== void 0 ? _b : ctx.defaultError };
748
+ return { message: message ?? invalid_type_error ?? ctx.defaultError };
672
749
  };
673
750
  return { errorMap: customMap, description };
674
751
  }
@@ -720,14 +797,13 @@ class ZodType {
720
797
  throw result.error;
721
798
  }
722
799
  safeParse(data, params) {
723
- var _a;
724
800
  const ctx = {
725
801
  common: {
726
802
  issues: [],
727
- async: (_a = params === null || params === void 0 ? void 0 : params.async) !== null && _a !== void 0 ? _a : false,
728
- contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap,
803
+ async: params?.async ?? false,
804
+ contextualErrorMap: params?.errorMap,
729
805
  },
730
- path: (params === null || params === void 0 ? void 0 : params.path) || [],
806
+ path: params?.path || [],
731
807
  schemaErrorMap: this._def.errorMap,
732
808
  parent: null,
733
809
  data,
@@ -737,7 +813,6 @@ class ZodType {
737
813
  return handleResult(ctx, result);
738
814
  }
739
815
  "~validate"(data) {
740
- var _a, _b;
741
816
  const ctx = {
742
817
  common: {
743
818
  issues: [],
@@ -761,7 +836,7 @@ class ZodType {
761
836
  };
762
837
  }
763
838
  catch (err) {
764
- if ((_b = (_a = err === null || err === void 0 ? void 0 : err.message) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === null || _b === void 0 ? void 0 : _b.includes("encountered")) {
839
+ if (err?.message?.toLowerCase()?.includes("encountered")) {
765
840
  this["~standard"].async = true;
766
841
  }
767
842
  ctx.common = {
@@ -788,19 +863,17 @@ class ZodType {
788
863
  const ctx = {
789
864
  common: {
790
865
  issues: [],
791
- contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap,
866
+ contextualErrorMap: params?.errorMap,
792
867
  async: true,
793
868
  },
794
- path: (params === null || params === void 0 ? void 0 : params.path) || [],
869
+ path: params?.path || [],
795
870
  schemaErrorMap: this._def.errorMap,
796
871
  parent: null,
797
872
  data,
798
873
  parsedType: getParsedType(data),
799
874
  };
800
875
  const maybeAsyncResult = this._parse({ data, path: ctx.path, parent: ctx });
801
- const result = await (isAsync(maybeAsyncResult)
802
- ? maybeAsyncResult
803
- : Promise.resolve(maybeAsyncResult));
876
+ const result = await (isAsync(maybeAsyncResult) ? maybeAsyncResult : Promise.resolve(maybeAsyncResult));
804
877
  return handleResult(ctx, result);
805
878
  }
806
879
  refine(check, message) {
@@ -844,9 +917,7 @@ class ZodType {
844
917
  refinement(check, refinementData) {
845
918
  return this._refinement((val, ctx) => {
846
919
  if (!check(val)) {
847
- ctx.addIssue(typeof refinementData === "function"
848
- ? refinementData(val, ctx)
849
- : refinementData);
920
+ ctx.addIssue(typeof refinementData === "function" ? refinementData(val, ctx) : refinementData);
850
921
  return false;
851
922
  }
852
923
  else {
@@ -1063,13 +1134,15 @@ function isValidJWT(jwt, alg) {
1063
1134
  const decoded = JSON.parse(atob(base64));
1064
1135
  if (typeof decoded !== "object" || decoded === null)
1065
1136
  return false;
1066
- if (!decoded.typ || !decoded.alg)
1137
+ if ("typ" in decoded && decoded?.typ !== "JWT")
1138
+ return false;
1139
+ if (!decoded.alg)
1067
1140
  return false;
1068
1141
  if (alg && decoded.alg !== alg)
1069
1142
  return false;
1070
1143
  return true;
1071
1144
  }
1072
- catch (_a) {
1145
+ catch {
1073
1146
  return false;
1074
1147
  }
1075
1148
  }
@@ -1240,7 +1313,7 @@ class ZodString extends ZodType {
1240
1313
  try {
1241
1314
  new URL(input.data);
1242
1315
  }
1243
- catch (_a) {
1316
+ catch {
1244
1317
  ctx = this._getOrReturnCtx(input, ctx);
1245
1318
  addIssueToContext(ctx, {
1246
1319
  validation: "url",
@@ -1470,7 +1543,6 @@ class ZodString extends ZodType {
1470
1543
  return this._addCheck({ kind: "cidr", ...errorUtil.errToObj(options) });
1471
1544
  }
1472
1545
  datetime(options) {
1473
- var _a, _b;
1474
1546
  if (typeof options === "string") {
1475
1547
  return this._addCheck({
1476
1548
  kind: "datetime",
@@ -1482,10 +1554,10 @@ class ZodString extends ZodType {
1482
1554
  }
1483
1555
  return this._addCheck({
1484
1556
  kind: "datetime",
1485
- precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision,
1486
- offset: (_a = options === null || options === void 0 ? void 0 : options.offset) !== null && _a !== void 0 ? _a : false,
1487
- local: (_b = options === null || options === void 0 ? void 0 : options.local) !== null && _b !== void 0 ? _b : false,
1488
- ...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message),
1557
+ precision: typeof options?.precision === "undefined" ? null : options?.precision,
1558
+ offset: options?.offset ?? false,
1559
+ local: options?.local ?? false,
1560
+ ...errorUtil.errToObj(options?.message),
1489
1561
  });
1490
1562
  }
1491
1563
  date(message) {
@@ -1501,8 +1573,8 @@ class ZodString extends ZodType {
1501
1573
  }
1502
1574
  return this._addCheck({
1503
1575
  kind: "time",
1504
- precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision,
1505
- ...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message),
1576
+ precision: typeof options?.precision === "undefined" ? null : options?.precision,
1577
+ ...errorUtil.errToObj(options?.message),
1506
1578
  });
1507
1579
  }
1508
1580
  duration(message) {
@@ -1519,8 +1591,8 @@ class ZodString extends ZodType {
1519
1591
  return this._addCheck({
1520
1592
  kind: "includes",
1521
1593
  value: value,
1522
- position: options === null || options === void 0 ? void 0 : options.position,
1523
- ...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message),
1594
+ position: options?.position,
1595
+ ...errorUtil.errToObj(options?.message),
1524
1596
  });
1525
1597
  }
1526
1598
  startsWith(value, message) {
@@ -1653,11 +1725,10 @@ class ZodString extends ZodType {
1653
1725
  }
1654
1726
  }
1655
1727
  ZodString.create = (params) => {
1656
- var _a;
1657
1728
  return new ZodString({
1658
1729
  checks: [],
1659
1730
  typeName: ZodFirstPartyTypeKind.ZodString,
1660
- coerce: (_a = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a !== void 0 ? _a : false,
1731
+ coerce: params?.coerce ?? false,
1661
1732
  ...processCreateParams(params),
1662
1733
  });
1663
1734
  };
@@ -1666,9 +1737,9 @@ function floatSafeRemainder(val, step) {
1666
1737
  const valDecCount = (val.toString().split(".")[1] || "").length;
1667
1738
  const stepDecCount = (step.toString().split(".")[1] || "").length;
1668
1739
  const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
1669
- const valInt = parseInt(val.toFixed(decCount).replace(".", ""));
1670
- const stepInt = parseInt(step.toFixed(decCount).replace(".", ""));
1671
- return (valInt % stepInt) / Math.pow(10, decCount);
1740
+ const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
1741
+ const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
1742
+ return (valInt % stepInt) / 10 ** decCount;
1672
1743
  }
1673
1744
  class ZodNumber extends ZodType {
1674
1745
  constructor() {
@@ -1707,9 +1778,7 @@ class ZodNumber extends ZodType {
1707
1778
  }
1708
1779
  }
1709
1780
  else if (check.kind === "min") {
1710
- const tooSmall = check.inclusive
1711
- ? input.data < check.value
1712
- : input.data <= check.value;
1781
+ const tooSmall = check.inclusive ? input.data < check.value : input.data <= check.value;
1713
1782
  if (tooSmall) {
1714
1783
  ctx = this._getOrReturnCtx(input, ctx);
1715
1784
  addIssueToContext(ctx, {
@@ -1724,9 +1793,7 @@ class ZodNumber extends ZodType {
1724
1793
  }
1725
1794
  }
1726
1795
  else if (check.kind === "max") {
1727
- const tooBig = check.inclusive
1728
- ? input.data > check.value
1729
- : input.data >= check.value;
1796
+ const tooBig = check.inclusive ? input.data > check.value : input.data >= check.value;
1730
1797
  if (tooBig) {
1731
1798
  ctx = this._getOrReturnCtx(input, ctx);
1732
1799
  addIssueToContext(ctx, {
@@ -1884,15 +1951,13 @@ class ZodNumber extends ZodType {
1884
1951
  return max;
1885
1952
  }
1886
1953
  get isInt() {
1887
- return !!this._def.checks.find((ch) => ch.kind === "int" ||
1888
- (ch.kind === "multipleOf" && util.isInteger(ch.value)));
1954
+ return !!this._def.checks.find((ch) => ch.kind === "int" || (ch.kind === "multipleOf" && util.isInteger(ch.value)));
1889
1955
  }
1890
1956
  get isFinite() {
1891
- let max = null, min = null;
1957
+ let max = null;
1958
+ let min = null;
1892
1959
  for (const ch of this._def.checks) {
1893
- if (ch.kind === "finite" ||
1894
- ch.kind === "int" ||
1895
- ch.kind === "multipleOf") {
1960
+ if (ch.kind === "finite" || ch.kind === "int" || ch.kind === "multipleOf") {
1896
1961
  return true;
1897
1962
  }
1898
1963
  else if (ch.kind === "min") {
@@ -1911,7 +1976,7 @@ ZodNumber.create = (params) => {
1911
1976
  return new ZodNumber({
1912
1977
  checks: [],
1913
1978
  typeName: ZodFirstPartyTypeKind.ZodNumber,
1914
- coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,
1979
+ coerce: params?.coerce || false,
1915
1980
  ...processCreateParams(params),
1916
1981
  });
1917
1982
  };
@@ -1926,7 +1991,7 @@ class ZodBigInt extends ZodType {
1926
1991
  try {
1927
1992
  input.data = BigInt(input.data);
1928
1993
  }
1929
- catch (_a) {
1994
+ catch {
1930
1995
  return this._getInvalidInput(input);
1931
1996
  }
1932
1997
  }
@@ -1938,9 +2003,7 @@ class ZodBigInt extends ZodType {
1938
2003
  const status = new ParseStatus();
1939
2004
  for (const check of this._def.checks) {
1940
2005
  if (check.kind === "min") {
1941
- const tooSmall = check.inclusive
1942
- ? input.data < check.value
1943
- : input.data <= check.value;
2006
+ const tooSmall = check.inclusive ? input.data < check.value : input.data <= check.value;
1944
2007
  if (tooSmall) {
1945
2008
  ctx = this._getOrReturnCtx(input, ctx);
1946
2009
  addIssueToContext(ctx, {
@@ -1954,9 +2017,7 @@ class ZodBigInt extends ZodType {
1954
2017
  }
1955
2018
  }
1956
2019
  else if (check.kind === "max") {
1957
- const tooBig = check.inclusive
1958
- ? input.data > check.value
1959
- : input.data >= check.value;
2020
+ const tooBig = check.inclusive ? input.data > check.value : input.data >= check.value;
1960
2021
  if (tooBig) {
1961
2022
  ctx = this._getOrReturnCtx(input, ctx);
1962
2023
  addIssueToContext(ctx, {
@@ -2088,11 +2149,10 @@ class ZodBigInt extends ZodType {
2088
2149
  }
2089
2150
  }
2090
2151
  ZodBigInt.create = (params) => {
2091
- var _a;
2092
2152
  return new ZodBigInt({
2093
2153
  checks: [],
2094
2154
  typeName: ZodFirstPartyTypeKind.ZodBigInt,
2095
- coerce: (_a = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a !== void 0 ? _a : false,
2155
+ coerce: params?.coerce ?? false,
2096
2156
  ...processCreateParams(params),
2097
2157
  });
2098
2158
  };
@@ -2117,7 +2177,7 @@ class ZodBoolean extends ZodType {
2117
2177
  ZodBoolean.create = (params) => {
2118
2178
  return new ZodBoolean({
2119
2179
  typeName: ZodFirstPartyTypeKind.ZodBoolean,
2120
- coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,
2180
+ coerce: params?.coerce || false,
2121
2181
  ...processCreateParams(params),
2122
2182
  });
2123
2183
  };
@@ -2136,7 +2196,7 @@ class ZodDate extends ZodType {
2136
2196
  });
2137
2197
  return INVALID;
2138
2198
  }
2139
- if (isNaN(input.data.getTime())) {
2199
+ if (Number.isNaN(input.data.getTime())) {
2140
2200
  const ctx = this._getOrReturnCtx(input);
2141
2201
  addIssueToContext(ctx, {
2142
2202
  code: ZodIssueCode.invalid_date,
@@ -2227,7 +2287,7 @@ class ZodDate extends ZodType {
2227
2287
  ZodDate.create = (params) => {
2228
2288
  return new ZodDate({
2229
2289
  checks: [],
2230
- coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,
2290
+ coerce: params?.coerce || false,
2231
2291
  typeName: ZodFirstPartyTypeKind.ZodDate,
2232
2292
  ...processCreateParams(params),
2233
2293
  });
@@ -2549,7 +2609,8 @@ class ZodObject extends ZodType {
2549
2609
  return this._cached;
2550
2610
  const shape = this._def.shape();
2551
2611
  const keys = util.objectKeys(shape);
2552
- return (this._cached = { shape, keys });
2612
+ this._cached = { shape, keys };
2613
+ return this._cached;
2553
2614
  }
2554
2615
  _parse(input) {
2555
2616
  const parsedType = this._getType(input);
@@ -2565,8 +2626,7 @@ class ZodObject extends ZodType {
2565
2626
  const { status, ctx } = this._processInputParams(input);
2566
2627
  const { shape, keys: shapeKeys } = this._getCached();
2567
2628
  const extraKeys = [];
2568
- if (!(this._def.catchall instanceof ZodNever &&
2569
- this._def.unknownKeys === "strip")) {
2629
+ if (!(this._def.catchall instanceof ZodNever && this._def.unknownKeys === "strip")) {
2570
2630
  for (const key in ctx.data) {
2571
2631
  if (!shapeKeys.includes(key)) {
2572
2632
  extraKeys.push(key);
@@ -2602,7 +2662,8 @@ class ZodObject extends ZodType {
2602
2662
  status.dirty();
2603
2663
  }
2604
2664
  }
2605
- else if (unknownKeys === "strip") ;
2665
+ else if (unknownKeys === "strip") {
2666
+ }
2606
2667
  else {
2607
2668
  throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);
2608
2669
  }
@@ -2654,11 +2715,10 @@ class ZodObject extends ZodType {
2654
2715
  ...(message !== undefined
2655
2716
  ? {
2656
2717
  errorMap: (issue, ctx) => {
2657
- var _a, _b, _c, _d;
2658
- const defaultError = (_c = (_b = (_a = this._def).errorMap) === null || _b === void 0 ? void 0 : _b.call(_a, issue, ctx).message) !== null && _c !== void 0 ? _c : ctx.defaultError;
2718
+ const defaultError = this._def.errorMap?.(issue, ctx).message ?? ctx.defaultError;
2659
2719
  if (issue.code === "unrecognized_keys")
2660
2720
  return {
2661
- message: (_d = errorUtil.errToObj(message).message) !== null && _d !== void 0 ? _d : defaultError,
2721
+ message: errorUtil.errToObj(message).message ?? defaultError,
2662
2722
  };
2663
2723
  return {
2664
2724
  message: defaultError,
@@ -2790,11 +2850,11 @@ class ZodObject extends ZodType {
2790
2850
  }
2791
2851
  pick(mask) {
2792
2852
  const shape = {};
2793
- util.objectKeys(mask).forEach((key) => {
2853
+ for (const key of util.objectKeys(mask)) {
2794
2854
  if (mask[key] && this.shape[key]) {
2795
2855
  shape[key] = this.shape[key];
2796
2856
  }
2797
- });
2857
+ }
2798
2858
  return new ZodObject({
2799
2859
  ...this._def,
2800
2860
  shape: () => shape,
@@ -2802,11 +2862,11 @@ class ZodObject extends ZodType {
2802
2862
  }
2803
2863
  omit(mask) {
2804
2864
  const shape = {};
2805
- util.objectKeys(this.shape).forEach((key) => {
2865
+ for (const key of util.objectKeys(this.shape)) {
2806
2866
  if (!mask[key]) {
2807
2867
  shape[key] = this.shape[key];
2808
2868
  }
2809
- });
2869
+ }
2810
2870
  return new ZodObject({
2811
2871
  ...this._def,
2812
2872
  shape: () => shape,
@@ -2820,7 +2880,7 @@ class ZodObject extends ZodType {
2820
2880
  }
2821
2881
  partial(mask) {
2822
2882
  const newShape = {};
2823
- util.objectKeys(this.shape).forEach((key) => {
2883
+ for (const key of util.objectKeys(this.shape)) {
2824
2884
  const fieldSchema = this.shape[key];
2825
2885
  if (mask && !mask[key]) {
2826
2886
  newShape[key] = fieldSchema;
@@ -2828,7 +2888,7 @@ class ZodObject extends ZodType {
2828
2888
  else {
2829
2889
  newShape[key] = fieldSchema.optional();
2830
2890
  }
2831
- });
2891
+ }
2832
2892
  return new ZodObject({
2833
2893
  ...this._def,
2834
2894
  shape: () => newShape,
@@ -2836,7 +2896,7 @@ class ZodObject extends ZodType {
2836
2896
  }
2837
2897
  required(mask) {
2838
2898
  const newShape = {};
2839
- util.objectKeys(this.shape).forEach((key) => {
2899
+ for (const key of util.objectKeys(this.shape)) {
2840
2900
  if (mask && !mask[key]) {
2841
2901
  newShape[key] = this.shape[key];
2842
2902
  }
@@ -2848,7 +2908,7 @@ class ZodObject extends ZodType {
2848
2908
  }
2849
2909
  newShape[key] = newField;
2850
2910
  }
2851
- });
2911
+ }
2852
2912
  return new ZodObject({
2853
2913
  ...this._def,
2854
2914
  shape: () => newShape,
@@ -3120,9 +3180,7 @@ function mergeValues(a, b) {
3120
3180
  }
3121
3181
  else if (aType === ZodParsedType.object && bType === ZodParsedType.object) {
3122
3182
  const bKeys = util.objectKeys(b);
3123
- const sharedKeys = util
3124
- .objectKeys(a)
3125
- .filter((key) => bKeys.indexOf(key) !== -1);
3183
+ const sharedKeys = util.objectKeys(a).filter((key) => bKeys.indexOf(key) !== -1);
3126
3184
  const newObj = { ...a, ...b };
3127
3185
  for (const key of sharedKeys) {
3128
3186
  const sharedValue = mergeValues(a[key], b[key]);
@@ -3149,9 +3207,7 @@ function mergeValues(a, b) {
3149
3207
  }
3150
3208
  return { valid: true, data: newArray };
3151
3209
  }
3152
- else if (aType === ZodParsedType.date &&
3153
- bType === ZodParsedType.date &&
3154
- +a === +b) {
3210
+ else if (aType === ZodParsedType.date && bType === ZodParsedType.date && +a === +b) {
3155
3211
  return { valid: true, data: a };
3156
3212
  }
3157
3213
  else {
@@ -3212,6 +3268,7 @@ ZodIntersection.create = (left, right, params) => {
3212
3268
  ...processCreateParams(params),
3213
3269
  });
3214
3270
  };
3271
+ // type ZodTupleItems = [ZodTypeAny, ...ZodTypeAny[]];
3215
3272
  class ZodTuple extends ZodType {
3216
3273
  _parse(input) {
3217
3274
  const { status, ctx } = this._processInputParams(input);
@@ -3508,12 +3565,7 @@ class ZodFunction extends ZodType {
3508
3565
  return makeIssue({
3509
3566
  data: args,
3510
3567
  path: ctx.path,
3511
- errorMaps: [
3512
- ctx.common.contextualErrorMap,
3513
- ctx.schemaErrorMap,
3514
- getErrorMap(),
3515
- errorMap,
3516
- ].filter((x) => !!x),
3568
+ errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap(), en].filter((x) => !!x),
3517
3569
  issueData: {
3518
3570
  code: ZodIssueCode.invalid_arguments,
3519
3571
  argumentsError: error,
@@ -3524,12 +3576,7 @@ class ZodFunction extends ZodType {
3524
3576
  return makeIssue({
3525
3577
  data: returns,
3526
3578
  path: ctx.path,
3527
- errorMaps: [
3528
- ctx.common.contextualErrorMap,
3529
- ctx.schemaErrorMap,
3530
- getErrorMap(),
3531
- errorMap,
3532
- ].filter((x) => !!x),
3579
+ errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap(), en].filter((x) => !!x),
3533
3580
  issueData: {
3534
3581
  code: ZodIssueCode.invalid_return_type,
3535
3582
  returnTypeError: error,
@@ -3545,9 +3592,7 @@ class ZodFunction extends ZodType {
3545
3592
  const me = this;
3546
3593
  return OK(async function (...args) {
3547
3594
  const error = new ZodError([]);
3548
- const parsedArgs = await me._def.args
3549
- .parseAsync(args, params)
3550
- .catch((e) => {
3595
+ const parsedArgs = await me._def.args.parseAsync(args, params).catch((e) => {
3551
3596
  error.addIssue(makeArgsIssue(args, e));
3552
3597
  throw error;
3553
3598
  });
@@ -3608,9 +3653,7 @@ class ZodFunction extends ZodType {
3608
3653
  }
3609
3654
  static create(args, returns, params) {
3610
3655
  return new ZodFunction({
3611
- args: (args
3612
- ? args
3613
- : ZodTuple.create([]).rest(ZodUnknown.create())),
3656
+ args: (args ? args : ZodTuple.create([]).rest(ZodUnknown.create())),
3614
3657
  returns: returns || ZodUnknown.create(),
3615
3658
  typeName: ZodFirstPartyTypeKind.ZodFunction,
3616
3659
  ...processCreateParams(params),
@@ -3666,10 +3709,6 @@ function createZodEnum(values, params) {
3666
3709
  });
3667
3710
  }
3668
3711
  class ZodEnum extends ZodType {
3669
- constructor() {
3670
- super(...arguments);
3671
- _ZodEnum_cache.set(this, void 0);
3672
- }
3673
3712
  _parse(input) {
3674
3713
  if (typeof input.data !== "string") {
3675
3714
  const ctx = this._getOrReturnCtx(input);
@@ -3681,10 +3720,10 @@ class ZodEnum extends ZodType {
3681
3720
  });
3682
3721
  return INVALID;
3683
3722
  }
3684
- if (!__classPrivateFieldGet(this, _ZodEnum_cache, "f")) {
3685
- __classPrivateFieldSet(this, _ZodEnum_cache, new Set(this._def.values), "f");
3723
+ if (!this._cache) {
3724
+ this._cache = new Set(this._def.values);
3686
3725
  }
3687
- if (!__classPrivateFieldGet(this, _ZodEnum_cache, "f").has(input.data)) {
3726
+ if (!this._cache.has(input.data)) {
3688
3727
  const ctx = this._getOrReturnCtx(input);
3689
3728
  const expectedValues = this._def.values;
3690
3729
  addIssueToContext(ctx, {
@@ -3733,18 +3772,12 @@ class ZodEnum extends ZodType {
3733
3772
  });
3734
3773
  }
3735
3774
  }
3736
- _ZodEnum_cache = new WeakMap();
3737
3775
  ZodEnum.create = createZodEnum;
3738
3776
  class ZodNativeEnum extends ZodType {
3739
- constructor() {
3740
- super(...arguments);
3741
- _ZodNativeEnum_cache.set(this, void 0);
3742
- }
3743
3777
  _parse(input) {
3744
3778
  const nativeEnumValues = util.getValidEnumValues(this._def.values);
3745
3779
  const ctx = this._getOrReturnCtx(input);
3746
- if (ctx.parsedType !== ZodParsedType.string &&
3747
- ctx.parsedType !== ZodParsedType.number) {
3780
+ if (ctx.parsedType !== ZodParsedType.string && ctx.parsedType !== ZodParsedType.number) {
3748
3781
  const expectedValues = util.objectValues(nativeEnumValues);
3749
3782
  addIssueToContext(ctx, {
3750
3783
  expected: util.joinValues(expectedValues),
@@ -3753,10 +3786,10 @@ class ZodNativeEnum extends ZodType {
3753
3786
  });
3754
3787
  return INVALID;
3755
3788
  }
3756
- if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache, "f")) {
3757
- __classPrivateFieldSet(this, _ZodNativeEnum_cache, new Set(util.getValidEnumValues(this._def.values)), "f");
3789
+ if (!this._cache) {
3790
+ this._cache = new Set(util.getValidEnumValues(this._def.values));
3758
3791
  }
3759
- if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache, "f").has(input.data)) {
3792
+ if (!this._cache.has(input.data)) {
3760
3793
  const expectedValues = util.objectValues(nativeEnumValues);
3761
3794
  addIssueToContext(ctx, {
3762
3795
  received: ctx.data,
@@ -3771,7 +3804,6 @@ class ZodNativeEnum extends ZodType {
3771
3804
  return this._def.values;
3772
3805
  }
3773
3806
  }
3774
- _ZodNativeEnum_cache = new WeakMap();
3775
3807
  ZodNativeEnum.create = (values, params) => {
3776
3808
  return new ZodNativeEnum({
3777
3809
  values: values,
@@ -3785,8 +3817,7 @@ class ZodPromise extends ZodType {
3785
3817
  }
3786
3818
  _parse(input) {
3787
3819
  const { ctx } = this._processInputParams(input);
3788
- if (ctx.parsedType !== ZodParsedType.promise &&
3789
- ctx.common.async === false) {
3820
+ if (ctx.parsedType !== ZodParsedType.promise && ctx.common.async === false) {
3790
3821
  addIssueToContext(ctx, {
3791
3822
  code: ZodIssueCode.invalid_type,
3792
3823
  expected: ZodParsedType.promise,
@@ -3794,9 +3825,7 @@ class ZodPromise extends ZodType {
3794
3825
  });
3795
3826
  return INVALID;
3796
3827
  }
3797
- const promisified = ctx.parsedType === ZodParsedType.promise
3798
- ? ctx.data
3799
- : Promise.resolve(ctx.data);
3828
+ const promisified = ctx.parsedType === ZodParsedType.promise ? ctx.data : Promise.resolve(ctx.data);
3800
3829
  return OK(promisified.then((data) => {
3801
3830
  return this._def.type.parseAsync(data, {
3802
3831
  path: ctx.path,
@@ -3902,9 +3931,7 @@ class ZodEffects extends ZodType {
3902
3931
  return { status: status.value, value: inner.value };
3903
3932
  }
3904
3933
  else {
3905
- return this._def.schema
3906
- ._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx })
3907
- .then((inner) => {
3934
+ return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((inner) => {
3908
3935
  if (inner.status === "aborted")
3909
3936
  return INVALID;
3910
3937
  if (inner.status === "dirty")
@@ -3923,7 +3950,7 @@ class ZodEffects extends ZodType {
3923
3950
  parent: ctx,
3924
3951
  });
3925
3952
  if (!isValid(base))
3926
- return base;
3953
+ return INVALID;
3927
3954
  const result = effect.transform(base.value, checkCtx);
3928
3955
  if (result instanceof Promise) {
3929
3956
  throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);
@@ -3931,12 +3958,13 @@ class ZodEffects extends ZodType {
3931
3958
  return { status: status.value, value: result };
3932
3959
  }
3933
3960
  else {
3934
- return this._def.schema
3935
- ._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx })
3936
- .then((base) => {
3961
+ return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => {
3937
3962
  if (!isValid(base))
3938
- return base;
3939
- return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({ status: status.value, value: result }));
3963
+ return INVALID;
3964
+ return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
3965
+ status: status.value,
3966
+ value: result,
3967
+ }));
3940
3968
  });
3941
3969
  }
3942
3970
  }
@@ -3959,6 +3987,7 @@ ZodEffects.createWithPreprocess = (preprocess, schema, params) => {
3959
3987
  ...processCreateParams(params),
3960
3988
  });
3961
3989
  };
3990
+
3962
3991
  class ZodOptional extends ZodType {
3963
3992
  _parse(input) {
3964
3993
  const parsedType = this._getType(input);
@@ -4018,9 +4047,7 @@ ZodDefault.create = (type, params) => {
4018
4047
  return new ZodDefault({
4019
4048
  innerType: type,
4020
4049
  typeName: ZodFirstPartyTypeKind.ZodDefault,
4021
- defaultValue: typeof params.default === "function"
4022
- ? params.default
4023
- : () => params.default,
4050
+ defaultValue: typeof params.default === "function" ? params.default : () => params.default,
4024
4051
  ...processCreateParams(params),
4025
4052
  });
4026
4053
  };
@@ -4186,9 +4213,7 @@ class ZodReadonly extends ZodType {
4186
4213
  }
4187
4214
  return data;
4188
4215
  };
4189
- return isAsync(result)
4190
- ? result.then((data) => freeze(data))
4191
- : freeze(result);
4216
+ return isAsync(result) ? result.then((data) => freeze(data)) : freeze(result);
4192
4217
  }
4193
4218
  unwrap() {
4194
4219
  return this._def.innerType;
@@ -4209,11 +4234,7 @@ ZodReadonly.create = (type, params) => {
4209
4234
  ////////////////////////////////////////
4210
4235
  ////////////////////////////////////////
4211
4236
  function cleanParams(params, data) {
4212
- const p = typeof params === "function"
4213
- ? params(data)
4214
- : typeof params === "string"
4215
- ? { message: params }
4216
- : params;
4237
+ const p = typeof params === "function" ? params(data) : typeof params === "string" ? { message: params } : params;
4217
4238
  const p2 = typeof p === "string" ? { message: p } : p;
4218
4239
  return p2;
4219
4240
  }
@@ -4231,27 +4252,26 @@ function custom(check, _params = {},
4231
4252
  fatal) {
4232
4253
  if (check)
4233
4254
  return ZodAny.create().superRefine((data, ctx) => {
4234
- var _a, _b;
4235
4255
  const r = check(data);
4236
4256
  if (r instanceof Promise) {
4237
4257
  return r.then((r) => {
4238
- var _a, _b;
4239
4258
  if (!r) {
4240
4259
  const params = cleanParams(_params, data);
4241
- const _fatal = (_b = (_a = params.fatal) !== null && _a !== void 0 ? _a : fatal) !== null && _b !== void 0 ? _b : true;
4260
+ const _fatal = params.fatal ?? fatal ?? true;
4242
4261
  ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
4243
4262
  }
4244
4263
  });
4245
4264
  }
4246
4265
  if (!r) {
4247
4266
  const params = cleanParams(_params, data);
4248
- const _fatal = (_b = (_a = params.fatal) !== null && _a !== void 0 ? _a : fatal) !== null && _b !== void 0 ? _b : true;
4267
+ const _fatal = params.fatal ?? fatal ?? true;
4249
4268
  ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
4250
4269
  }
4251
4270
  return;
4252
4271
  });
4253
4272
  return ZodAny.create();
4254
4273
  }
4274
+
4255
4275
  const late = {
4256
4276
  object: ZodObject.lazycreate,
4257
4277
  };
@@ -4294,6 +4314,10 @@ var ZodFirstPartyTypeKind;
4294
4314
  ZodFirstPartyTypeKind["ZodPipeline"] = "ZodPipeline";
4295
4315
  ZodFirstPartyTypeKind["ZodReadonly"] = "ZodReadonly";
4296
4316
  })(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
4317
+ // requires TS 4.4+
4318
+ class Class {
4319
+ constructor(..._) { }
4320
+ }
4297
4321
  const instanceOfType = (
4298
4322
  // const instanceOfType = <T extends new (...args: any[]) => any>(
4299
4323
  cls, params = {
@@ -4346,120 +4370,27 @@ const coerce = {
4346
4370
  bigint: ((arg) => ZodBigInt.create({ ...arg, coerce: true })),
4347
4371
  date: ((arg) => ZodDate.create({ ...arg, coerce: true })),
4348
4372
  };
4373
+
4349
4374
  const NEVER = INVALID;
4350
4375
 
4351
- var z = /*#__PURE__*/Object.freeze({
4352
- __proto__: null,
4353
- defaultErrorMap: errorMap,
4354
- setErrorMap: setErrorMap,
4355
- getErrorMap: getErrorMap,
4356
- makeIssue: makeIssue,
4357
- EMPTY_PATH: EMPTY_PATH,
4358
- addIssueToContext: addIssueToContext,
4359
- ParseStatus: ParseStatus,
4360
- INVALID: INVALID,
4361
- DIRTY: DIRTY,
4362
- OK: OK,
4363
- isAborted: isAborted,
4364
- isDirty: isDirty,
4365
- isValid: isValid,
4366
- isAsync: isAsync,
4367
- get util () { return util; },
4368
- get objectUtil () { return objectUtil; },
4369
- ZodParsedType: ZodParsedType,
4370
- getParsedType: getParsedType,
4371
- ZodType: ZodType,
4372
- datetimeRegex: datetimeRegex,
4373
- ZodString: ZodString,
4374
- ZodNumber: ZodNumber,
4375
- ZodBigInt: ZodBigInt,
4376
- ZodBoolean: ZodBoolean,
4377
- ZodDate: ZodDate,
4378
- ZodSymbol: ZodSymbol,
4379
- ZodUndefined: ZodUndefined,
4380
- ZodNull: ZodNull,
4381
- ZodAny: ZodAny,
4382
- ZodUnknown: ZodUnknown,
4383
- ZodNever: ZodNever,
4384
- ZodVoid: ZodVoid,
4385
- ZodArray: ZodArray,
4386
- ZodObject: ZodObject,
4387
- ZodUnion: ZodUnion,
4388
- ZodDiscriminatedUnion: ZodDiscriminatedUnion,
4389
- ZodIntersection: ZodIntersection,
4390
- ZodTuple: ZodTuple,
4391
- ZodRecord: ZodRecord,
4392
- ZodMap: ZodMap,
4393
- ZodSet: ZodSet,
4394
- ZodFunction: ZodFunction,
4395
- ZodLazy: ZodLazy,
4396
- ZodLiteral: ZodLiteral,
4397
- ZodEnum: ZodEnum,
4398
- ZodNativeEnum: ZodNativeEnum,
4399
- ZodPromise: ZodPromise,
4400
- ZodEffects: ZodEffects,
4401
- ZodTransformer: ZodEffects,
4402
- ZodOptional: ZodOptional,
4403
- ZodNullable: ZodNullable,
4404
- ZodDefault: ZodDefault,
4405
- ZodCatch: ZodCatch,
4406
- ZodNaN: ZodNaN,
4407
- BRAND: BRAND,
4408
- ZodBranded: ZodBranded,
4409
- ZodPipeline: ZodPipeline,
4410
- ZodReadonly: ZodReadonly,
4411
- custom: custom,
4412
- Schema: ZodType,
4413
- ZodSchema: ZodType,
4414
- late: late,
4415
- get ZodFirstPartyTypeKind () { return ZodFirstPartyTypeKind; },
4416
- coerce: coerce,
4417
- any: anyType,
4418
- array: arrayType,
4419
- bigint: bigIntType,
4420
- boolean: booleanType,
4421
- date: dateType,
4422
- discriminatedUnion: discriminatedUnionType,
4423
- effect: effectsType,
4424
- 'enum': enumType,
4425
- 'function': functionType,
4426
- 'instanceof': instanceOfType,
4427
- intersection: intersectionType,
4428
- lazy: lazyType,
4429
- literal: literalType,
4430
- map: mapType,
4431
- nan: nanType,
4432
- nativeEnum: nativeEnumType,
4433
- never: neverType,
4434
- 'null': nullType,
4435
- nullable: nullableType,
4436
- number: numberType,
4437
- object: objectType,
4438
- oboolean: oboolean,
4439
- onumber: onumber,
4440
- optional: optionalType,
4441
- ostring: ostring,
4442
- pipeline: pipelineType,
4443
- preprocess: preprocessType,
4444
- promise: promiseType,
4445
- record: recordType,
4446
- set: setType,
4447
- strictObject: strictObjectType,
4448
- string: stringType,
4449
- symbol: symbolType,
4450
- transformer: effectsType,
4451
- tuple: tupleType,
4452
- 'undefined': undefinedType,
4453
- union: unionType,
4454
- unknown: unknownType,
4455
- 'void': voidType,
4456
- NEVER: NEVER,
4457
- ZodIssueCode: ZodIssueCode,
4458
- quotelessJson: quotelessJson,
4459
- ZodError: ZodError
4460
- });
4376
+ ;// CONCATENATED MODULE: ./node_modules/zod/dist/esm/v3/external.js
4377
+
4378
+
4379
+
4380
+
4381
+
4382
+
4383
+
4384
+ ;// CONCATENATED MODULE: ./node_modules/zod/dist/esm/v3/index.js
4385
+
4386
+
4387
+
4388
+ /* harmony default export */ const v3 = ((/* unused pure expression or super */ null && (z)));
4389
+
4390
+ ;// CONCATENATED MODULE: ./node_modules/zod/dist/esm/index.js
4461
4391
 
4462
4392
 
4393
+ /* harmony default export */ const esm = ((/* unused pure expression or super */ null && (z3)));
4463
4394
 
4464
4395
 
4465
4396
  /***/ })