@everymatrix/player-account-controller-nd 1.99.74 → 1.99.76

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 (223) hide show
  1. package/components/{GeneralLogout-D9MCiXj_.js → GeneralLogout-7GNYYiv6.js} +1 -1
  2. package/components/{GeneralLogout-Bq_bu6J-.js → GeneralLogout-DLEYjsPo.js} +1 -1
  3. package/components/{GeneralLogout-BXQ8hZ9x.cjs → GeneralLogout-DO-Le1Xs.cjs} +1 -1
  4. package/components/{PlayerAccountBettingHistory-ChmQv2j2.js → PlayerAccountBettingHistory-C7YtFtFZ.js} +1 -1
  5. package/components/{PlayerAccountBettingHistory-CdiHdmhn.js → PlayerAccountBettingHistory-DxbRkuIr.js} +1 -1
  6. package/components/{PlayerAccountBettingHistory-pIQYfWyM.cjs → PlayerAccountBettingHistory-hf_Az2WX.cjs} +1 -1
  7. package/components/{PlayerAccountBiometrics-ytKq7F4G.js → PlayerAccountBiometrics-C2s9cUe9.js} +2 -2
  8. package/components/{PlayerAccountBiometrics-DXvo6Xkb.cjs → PlayerAccountBiometrics-CVSV4isW.cjs} +1 -1
  9. package/components/{PlayerAccountBiometrics-D8-HMoPO.js → PlayerAccountBiometrics-NSJq3r8q.js} +2 -2
  10. package/components/{PlayerAccountBiometricsAction-XWRAqFVb.cjs → PlayerAccountBiometricsAction-Bs0ZcXB5.cjs} +1 -1
  11. package/components/{PlayerAccountBiometricsAction-C76zXweJ.js → PlayerAccountBiometricsAction-Cr-5P8nl.js} +1 -1
  12. package/components/{PlayerAccountBiometricsAction-B7GhCkdp.js → PlayerAccountBiometricsAction-Ux044uQh.js} +1 -1
  13. package/components/{PlayerAccountClosureNd-DY-pTTMn.js → PlayerAccountClosureNd-2Fic4Ckv.js} +1 -1
  14. package/components/{PlayerAccountClosureNd-CMEzT9lA.cjs → PlayerAccountClosureNd-ChbaZjXT.cjs} +1 -1
  15. package/components/{PlayerAccountClosureNd-BxduP93-.js → PlayerAccountClosureNd-DOSG86B7.js} +1 -1
  16. package/components/{PlayerAccountControllerNd-BF4IYonf.cjs → PlayerAccountControllerNd-BhdLRftw.cjs} +1 -1
  17. package/components/{PlayerAccountControllerNd-g3vm-cz_.js → PlayerAccountControllerNd-DlMxLZOv.js} +23 -23
  18. package/components/{PlayerAccountControllerNd-Nm90bFaw.js → PlayerAccountControllerNd-PLMYwUgM.js} +23 -23
  19. package/components/{PlayerAccountGamingLimits-tr4eHMfr.js → PlayerAccountGamingLimits-BHuVE4qQ.js} +2 -2
  20. package/components/{PlayerAccountGamingLimits-DgUr4DtC.cjs → PlayerAccountGamingLimits-CRI8_bNv.cjs} +1 -1
  21. package/components/{PlayerAccountGamingLimits-NHj8wKty.js → PlayerAccountGamingLimits-e4uPx7ZQ.js} +2 -2
  22. package/components/{PlayerAccountGamingLimitsConfirmationModal-B8GiGdXa.js → PlayerAccountGamingLimitsConfirmationModal-C_XyfwSM.js} +1 -1
  23. package/components/{PlayerAccountGamingLimitsConfirmationModal-CZeeF0ox.js → PlayerAccountGamingLimitsConfirmationModal-Cw1J--KI.js} +1 -1
  24. package/components/{PlayerAccountGamingLimitsConfirmationModal-Diyy8CbD.cjs → PlayerAccountGamingLimitsConfirmationModal-Xq7hJb89.cjs} +1 -1
  25. package/components/{PlayerAccountGamingLimitsGroupEdit-BUMPsAmx.cjs → PlayerAccountGamingLimitsGroupEdit-BOH9-Rv3.cjs} +1 -1
  26. package/components/{PlayerAccountGamingLimitsGroupEdit-6nafVJ9j.js → PlayerAccountGamingLimitsGroupEdit-C_3u1wg5.js} +5 -5
  27. package/components/{PlayerAccountGamingLimitsGroupEdit-COGrR5nO.js → PlayerAccountGamingLimitsGroupEdit-CrXoIKBh.js} +5 -5
  28. package/components/{PlayerAccountGamingLimitsHistory2Nd-GlPwt2j8.js → PlayerAccountGamingLimitsHistory2Nd-4ClELpgL.js} +1 -1
  29. package/components/{PlayerAccountGamingLimitsHistory2Nd-CFNmYY25.js → PlayerAccountGamingLimitsHistory2Nd-CDqsFcm6.js} +1 -1
  30. package/components/{PlayerAccountGamingLimitsHistory2Nd-BrlUWRlI.cjs → PlayerAccountGamingLimitsHistory2Nd-D5h5-47K.cjs} +1 -1
  31. package/components/{PlayerAccountGamingLimitsInfoCard-BCsI2fe7.cjs → PlayerAccountGamingLimitsInfoCard-CkTpvciA.cjs} +1 -1
  32. package/components/{PlayerAccountGamingLimitsInfoCard-32M6-cwa.js → PlayerAccountGamingLimitsInfoCard-DSn7qE33.js} +4 -4
  33. package/components/{PlayerAccountGamingLimitsInfoCard-CDJivoyb.js → PlayerAccountGamingLimitsInfoCard-l2G11T1n.js} +4 -4
  34. package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-CTFI5MPm.js → PlayerAccountGamingLimitsPage2Gm16Nd-1ko5rsE5.js} +1 -1
  35. package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-CoKtHrIC.cjs → PlayerAccountGamingLimitsPage2Gm16Nd-BtZZHvw6.cjs} +1 -1
  36. package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-DnC2InSl.js → PlayerAccountGamingLimitsPage2Gm16Nd-CiWEsVWj.js} +1 -1
  37. package/components/{PlayerAccountGamingLimitsPopup-DM2wnO27.cjs → PlayerAccountGamingLimitsPopup-B6J7mm1q.cjs} +1 -1
  38. package/components/{PlayerAccountGamingLimitsPopup-BID_VGFw.js → PlayerAccountGamingLimitsPopup-BDrYe3UG.js} +1 -1
  39. package/components/{PlayerAccountGamingLimitsPopup-HuVhcZjy.js → PlayerAccountGamingLimitsPopup-CtEeFFnY.js} +1 -1
  40. package/components/{PlayerAccountGamingLimitsWrapper2Nd-D14gMSsm.js → PlayerAccountGamingLimitsWrapper2Nd-BfAoP0aQ.js} +3 -3
  41. package/components/{PlayerAccountGamingLimitsWrapper2Nd-D0n11R0X.js → PlayerAccountGamingLimitsWrapper2Nd-CJ1DYNAS.js} +3 -3
  42. package/components/{PlayerAccountGamingLimitsWrapper2Nd-y8MGDMj8.cjs → PlayerAccountGamingLimitsWrapper2Nd-CU9jdmSV.cjs} +1 -1
  43. package/components/{PlayerAccountGeneralConfirmationModal-eVQr9e6B.cjs → PlayerAccountGeneralConfirmationModal--LbAg7u-.cjs} +1 -1
  44. package/components/{PlayerAccountGeneralConfirmationModal-BVBnuCFF.js → PlayerAccountGeneralConfirmationModal-B7_TVNW3.js} +1 -1
  45. package/components/{PlayerAccountGeneralConfirmationModal-BcKk1LpN.js → PlayerAccountGeneralConfirmationModal-BHthLWXG.js} +1 -1
  46. package/components/{PlayerAccountMenuNd-BHdPgw5I.cjs → PlayerAccountMenuNd-Bfa08cqD.cjs} +1 -1
  47. package/components/{PlayerAccountMenuNd-DCp6r4GE.js → PlayerAccountMenuNd-CTa9MnNf.js} +2 -2
  48. package/components/{PlayerAccountMenuNd-K7glBCG_.js → PlayerAccountMenuNd-DsFRjoG0.js} +2 -2
  49. package/components/{PlayerAccountModal-C0MMDHai.cjs → PlayerAccountModal-BZIsC_ko.cjs} +1 -1
  50. package/components/{PlayerAccountModal-CgBxr7Yi.js → PlayerAccountModal-BsUhTl1r.js} +1 -1
  51. package/components/{PlayerAccountModal-xUIx6MtH.js → PlayerAccountModal-VUB68h6o.js} +1 -1
  52. package/components/{PlayerAccountNotifications-gw57S4p3.cjs → PlayerAccountNotifications-Cm8LSZwU.cjs} +1 -1
  53. package/components/{PlayerAccountNotifications-D-jwODSX.js → PlayerAccountNotifications-PHsseoQX.js} +1 -1
  54. package/components/{PlayerAccountNotifications-CR8vQHYL.js → PlayerAccountNotifications-qjViy28e.js} +1 -1
  55. package/components/{PlayerAccountProductRestriction-CPRbnQFY.cjs → PlayerAccountProductRestriction-BgAvNFb8.cjs} +1 -1
  56. package/components/{PlayerAccountProductRestriction-DyIE5aox.js → PlayerAccountProductRestriction-Dp71rG1o.js} +5 -5
  57. package/components/{PlayerAccountProductRestriction-C-OzvZpW.js → PlayerAccountProductRestriction-pIoQgthc.js} +5 -5
  58. package/components/{PlayerAccountReviewFrequency-Dr2-rAS4.cjs → PlayerAccountReviewFrequency-CGIv3Ja2.cjs} +1 -1
  59. package/components/{PlayerAccountReviewFrequency-CYrCo1dv.js → PlayerAccountReviewFrequency-DYV2jnRb.js} +1 -1
  60. package/components/{PlayerAccountReviewFrequency-CPXMvfbL.js → PlayerAccountReviewFrequency-sPcqrPKt.js} +1 -1
  61. package/components/{PlayerAccountSelfExclusionNd-jmfIJ6Va.js → PlayerAccountSelfExclusionNd--tvUuxQ8.js} +4 -4
  62. package/components/{PlayerAccountSelfExclusionNd-Dt9aAcyH.js → PlayerAccountSelfExclusionNd-B2y_yGbb.js} +4 -4
  63. package/components/{PlayerAccountSelfExclusionNd-7WZh8fKX.cjs → PlayerAccountSelfExclusionNd-oneHdbs8.cjs} +1 -1
  64. package/components/{PlayerAccountTimeout-M7Q8DfIz.cjs → PlayerAccountTimeout-Bs3hz5s1.cjs} +1 -1
  65. package/components/{PlayerAccountTimeout-fD1_273g.js → PlayerAccountTimeout-CP-8MPdR.js} +3 -3
  66. package/components/{PlayerAccountTimeout-D3os4wXm.js → PlayerAccountTimeout-DfhOdZVm.js} +3 -3
  67. package/components/{PlayerAccountTransactionsHistory-Dn0dbrXO.cjs → PlayerAccountTransactionsHistory-BJKSyZ-M.cjs} +1 -1
  68. package/components/{PlayerAccountTransactionsHistory-Bj946fxs.js → PlayerAccountTransactionsHistory-BNfeW-pY.js} +4 -4
  69. package/components/{PlayerAccountTransactionsHistory-Cw-1ATfy.js → PlayerAccountTransactionsHistory-C31h19qw.js} +4 -4
  70. package/components/{PlayerActiveBonuses-tRFYMDsB.js → PlayerActiveBonuses-BYZ1b6JE.js} +2 -2
  71. package/components/{PlayerActiveBonuses-BwBrXBI3.js → PlayerActiveBonuses-CWk_VLVc.js} +2 -2
  72. package/components/{PlayerActiveBonuses-Dm8WwcGV.cjs → PlayerActiveBonuses-DWw4UoXq.cjs} +1 -1
  73. package/components/{PlayerBonusCard-nQty_ykW.js → PlayerBonusCard-CikI4a2j.js} +2 -2
  74. package/components/{PlayerBonusCard-DQBZRPf2.js → PlayerBonusCard-D9WLEG16.js} +2 -2
  75. package/components/{PlayerBonusCard-3ee24J7D.cjs → PlayerBonusCard-DyAdgoT1.cjs} +1 -1
  76. package/components/{PlayerBonusHistory-DOYPcOsR.cjs → PlayerBonusHistory-ByLzLGEU.cjs} +1 -1
  77. package/components/{PlayerBonusHistory-D2C0n3o5.js → PlayerBonusHistory-C8-ZZqd0.js} +2 -2
  78. package/components/{PlayerBonusHistory-BvUmvyic.js → PlayerBonusHistory-Cv6QYkQR.js} +2 -2
  79. package/components/{PlayerChangePasswordNd-CAT2EQjB.js → PlayerChangePasswordNd-BX1gGL58.js} +1 -1
  80. package/components/{PlayerChangePasswordNd-B3rDb5O5.js → PlayerChangePasswordNd-D-5IqLCG.js} +1 -1
  81. package/components/{PlayerChangePasswordNd-BzMs85KK.cjs → PlayerChangePasswordNd-islF00P3.cjs} +1 -1
  82. package/components/{PlayerDeposit-D8LW-i6r.js → PlayerDeposit-CoD1JoYp.js} +1 -1
  83. package/components/{PlayerDeposit-BfH6wTH9.js → PlayerDeposit-CwdOcDe4.js} +1 -1
  84. package/components/{PlayerDeposit-B1f1UFsF.cjs → PlayerDeposit-DinaHTd0.cjs} +1 -1
  85. package/components/{PlayerGamingHistory-DjrkGYuc.js → PlayerGamingHistory-CMcui6_q.js} +3 -3
  86. package/components/{PlayerGamingHistory-BxBhGzaL.cjs → PlayerGamingHistory-ZEkndgkf.cjs} +1 -1
  87. package/components/{PlayerGamingHistory-DHA7GY26.js → PlayerGamingHistory-n8F_OmB_.js} +3 -3
  88. package/components/{PlayerPendingWithdrawals-DiroNzs8.js → PlayerPendingWithdrawals-BrG-w8T1.js} +1 -1
  89. package/components/{PlayerPendingWithdrawals-He6Q0L7q.js → PlayerPendingWithdrawals-D7RZI6wJ.js} +1 -1
  90. package/components/{PlayerPendingWithdrawals-CLsypnOq.cjs → PlayerPendingWithdrawals-Dq8g4Wgl.cjs} +1 -1
  91. package/components/{PlayerProfileInfo-eUJ9QsB4.cjs → PlayerProfileInfo-C73ftFlD.cjs} +1 -1
  92. package/components/{PlayerProfileInfo-B8jemVIg.js → PlayerProfileInfo-CZudhVtZ.js} +3 -3
  93. package/components/{PlayerProfileInfo-CfJcWIGM.js → PlayerProfileInfo-DqXc6N0q.js} +3 -3
  94. package/components/{PlayerRealityCheck-CDtMCqH8.js → PlayerRealityCheck-COFrvXGI.js} +1 -1
  95. package/components/{PlayerRealityCheck-Dd1WFGTy.js → PlayerRealityCheck-DwK0u2UH.js} +1 -1
  96. package/components/{PlayerRealityCheck-D6OyPgR3.cjs → PlayerRealityCheck-v_BL4wPn.cjs} +1 -1
  97. package/components/{PlayerTransactionHistory-tjfPS42W.js → PlayerTransactionHistory-BRhC62yi.js} +1 -1
  98. package/components/{PlayerTransactionHistory-BAaclaZG.js → PlayerTransactionHistory-BXzILrBQ.js} +1 -1
  99. package/components/{PlayerTransactionHistory-0729vdkV.cjs → PlayerTransactionHistory-CkylMhI4.cjs} +1 -1
  100. package/components/{PlayerWithdrawal-yt9TOeuz.js → PlayerWithdrawal-CEEB0b6k.js} +1 -1
  101. package/components/{PlayerWithdrawal-SAmUwMFa.cjs → PlayerWithdrawal-D-846eZJ.cjs} +1 -1
  102. package/components/{PlayerWithdrawal-_0zvnpJq.js → PlayerWithdrawal-DIF4BZGL.js} +1 -1
  103. package/components/{QrSessionGenerator-CZlvxqis.js → QrSessionGenerator-DKRuLgcV.js} +1 -1
  104. package/components/{QrSessionGenerator-DYhgBoQb.js → QrSessionGenerator-N77uoHoX.js} +1 -1
  105. package/components/{QrSessionGenerator-DC3siWEA.cjs → QrSessionGenerator-i4JVHr_A.cjs} +1 -1
  106. package/es2015/player-account-controller-nd.cjs +1 -1
  107. package/es2015/player-account-controller-nd.js +1 -1
  108. package/esnext/player-account-controller-nd.js +1 -1
  109. package/lazy/{general-logout-UjPBBt6k.js → general-logout-CXVPlTjr.js} +1 -1
  110. package/lazy/{general-logout-D15QF6zf.cjs → general-logout-CmQ_uF54.cjs} +1 -1
  111. package/lazy/{general-logout-BnqdVoxR.js → general-logout-CqkPNx5z.js} +1 -1
  112. package/lazy/{pam-change-password-gS1FNvTB.cjs → pam-change-password--OMp7Uh-.cjs} +1 -1
  113. package/lazy/{pam-change-password-DhlCSZKU.js → pam-change-password-BF1cQ0ZT.js} +1 -1
  114. package/lazy/{pam-change-password-CQt7gN7c.js → pam-change-password-DCgiQ_4q.js} +1 -1
  115. package/lazy/{player-account-betting-history-QzDdZshj.cjs → player-account-betting-history-B3HNLkvq.cjs} +1 -1
  116. package/lazy/{player-account-betting-history-y0kakFnE.js → player-account-betting-history-Bc5fCsP0.js} +1 -1
  117. package/lazy/{player-account-betting-history-DQoH2tde.js → player-account-betting-history-CBd3ZEv1.js} +1 -1
  118. package/lazy/{player-account-biometrics-CM99XxZ9.js → player-account-biometrics-BgORPZXg.js} +1 -1
  119. package/lazy/{player-account-biometrics-GhH08TPf.js → player-account-biometrics-BtlIQe7c.js} +1 -1
  120. package/lazy/{player-account-biometrics-B7y669aF.cjs → player-account-biometrics-D3xWF_BS.cjs} +1 -1
  121. package/lazy/{player-account-biometrics-action-DaI4pnDu.js → player-account-biometrics-action-Clqkiltr.js} +1 -1
  122. package/lazy/{player-account-biometrics-action-C9m98kmY.js → player-account-biometrics-action-D122Om7M.js} +1 -1
  123. package/lazy/{player-account-biometrics-action-n6pxGIzi.cjs → player-account-biometrics-action-DOQg7Kgf.cjs} +1 -1
  124. package/lazy/{player-account-closure-nd-B1mFnR03.js → player-account-closure-nd-BVSoPX5G.js} +1 -1
  125. package/lazy/{player-account-closure-nd-B7GndfRu.cjs → player-account-closure-nd-CJKJlmk3.cjs} +1 -1
  126. package/lazy/{player-account-closure-nd-lSzmCAmN.js → player-account-closure-nd-CtV5Vb1Z.js} +1 -1
  127. package/lazy/{player-account-gaming-limits-V1tGK_-H.js → player-account-gaming-limits-Bx3A2Bqa.js} +1 -1
  128. package/lazy/{player-account-gaming-limits-2Mqy35B-.js → player-account-gaming-limits-DEDrdt7x.js} +1 -1
  129. package/lazy/{player-account-gaming-limits-wH_XlMem.cjs → player-account-gaming-limits-NWia1YF3.cjs} +1 -1
  130. package/lazy/{player-account-gaming-limits-confirmation-modal-BG6TKPfR.js → player-account-gaming-limits-confirmation-modal-B3y9z1r4.js} +1 -1
  131. package/lazy/{player-account-gaming-limits-confirmation-modal-BG9KAa5y.cjs → player-account-gaming-limits-confirmation-modal-BqaIF_qw.cjs} +1 -1
  132. package/lazy/{player-account-gaming-limits-confirmation-modal-C9om498i.js → player-account-gaming-limits-confirmation-modal-CWAYhbFa.js} +1 -1
  133. package/lazy/{player-account-gaming-limits-group-edit-DsJb0EbV.js → player-account-gaming-limits-group-edit-CHktJS2I.js} +1 -1
  134. package/lazy/{player-account-gaming-limits-group-edit-CX0HgjEk.js → player-account-gaming-limits-group-edit-CvlpB2Yk.js} +1 -1
  135. package/lazy/{player-account-gaming-limits-group-edit-JGoC1ee_.cjs → player-account-gaming-limits-group-edit-DKDGVauj.cjs} +1 -1
  136. package/lazy/{player-account-gaming-limits-history-2-nd-gSQNL5w4.js → player-account-gaming-limits-history-2-nd-5zLkPog0.js} +1 -1
  137. package/lazy/{player-account-gaming-limits-history-2-nd-DZ4zxuOx.js → player-account-gaming-limits-history-2-nd-BVaK0sTl.js} +1 -1
  138. package/lazy/{player-account-gaming-limits-history-2-nd-DXDsK44G.cjs → player-account-gaming-limits-history-2-nd-CX0qkoUD.cjs} +1 -1
  139. package/lazy/{player-account-gaming-limits-info-card-HQdiRDhy.js → player-account-gaming-limits-info-card-JEG6XCM2.js} +1 -1
  140. package/lazy/{player-account-gaming-limits-info-card-M-fUu7yf.cjs → player-account-gaming-limits-info-card-L95LzAQw.cjs} +1 -1
  141. package/lazy/{player-account-gaming-limits-info-card-dqzFGjkc.js → player-account-gaming-limits-info-card-vFuTxDxM.js} +1 -1
  142. package/lazy/{player-account-gaming-limits-page-2-gm16-nd-ByZHp7Ct.js → player-account-gaming-limits-page-2-gm16-nd-5cjfC7Bp.js} +1 -1
  143. package/lazy/{player-account-gaming-limits-page-2-gm16-nd-DLNWtwKK.js → player-account-gaming-limits-page-2-gm16-nd-BsD2dKNt.js} +1 -1
  144. package/lazy/{player-account-gaming-limits-page-2-gm16-nd-CaYW_JOn.cjs → player-account-gaming-limits-page-2-gm16-nd-CbxzmwPJ.cjs} +1 -1
  145. package/lazy/{player-account-gaming-limits-popup-CFXZQjq0.js → player-account-gaming-limits-popup-BgKq5z-L.js} +1 -1
  146. package/lazy/{player-account-gaming-limits-popup-Dczf93To.cjs → player-account-gaming-limits-popup-BvDBkcLa.cjs} +1 -1
  147. package/lazy/{player-account-gaming-limits-popup-Th19iXmE.js → player-account-gaming-limits-popup-DTyBPcIt.js} +1 -1
  148. package/lazy/{player-account-gaming-limits-wrapper-2-nd-CBebGCQu.cjs → player-account-gaming-limits-wrapper-2-nd-BKGb9iLF.cjs} +1 -1
  149. package/lazy/{player-account-gaming-limits-wrapper-2-nd-Cz8NFT2W.js → player-account-gaming-limits-wrapper-2-nd-CHNE2BZ-.js} +1 -1
  150. package/lazy/{player-account-gaming-limits-wrapper-2-nd-B0LgaMSW.js → player-account-gaming-limits-wrapper-2-nd-DavRnPmH.js} +1 -1
  151. package/lazy/{player-account-general-confirmation-modal-DWhzWgD7.js → player-account-general-confirmation-modal-SkJAva-Q.js} +1 -1
  152. package/lazy/{player-account-general-confirmation-modal-BigF1N1g.js → player-account-general-confirmation-modal-_M87ivEl.js} +1 -1
  153. package/lazy/{player-account-general-confirmation-modal-CgBoQoNk.cjs → player-account-general-confirmation-modal-q49dQ0k4.cjs} +1 -1
  154. package/lazy/{player-account-menu-nd-BnGLadIu.js → player-account-menu-nd-BnQ6r1W_.js} +1 -1
  155. package/lazy/{player-account-menu-nd-CRX7aI8q.cjs → player-account-menu-nd-CXfd6Gbk.cjs} +1 -1
  156. package/lazy/{player-account-menu-nd-D6T-pcw5.js → player-account-menu-nd-DvOGsK8Z.js} +1 -1
  157. package/lazy/{player-account-modal-BSWe8pnp.js → player-account-modal-B4oDrQ6q.js} +1 -1
  158. package/lazy/{player-account-modal-Bsbwry-2.js → player-account-modal-BJIx9DsX.js} +1 -1
  159. package/lazy/{player-account-modal-DKtGi_Qb.cjs → player-account-modal-COxsB47s.cjs} +1 -1
  160. package/lazy/{player-account-notifications-BqR3po1p.js → player-account-notifications-CS3T0ETO.js} +1 -1
  161. package/lazy/{player-account-notifications-C3Bm3Qke.cjs → player-account-notifications-D1nVUqYt.cjs} +1 -1
  162. package/lazy/{player-account-notifications-DYqXtTyd.js → player-account-notifications-Xy5LXVes.js} +1 -1
  163. package/lazy/{player-account-product-restriction-DaM2ZgYZ.js → player-account-product-restriction-B9ZrGu6Z.js} +1 -1
  164. package/lazy/{player-account-product-restriction-CcgX5KSW.js → player-account-product-restriction-CVh7oVo1.js} +1 -1
  165. package/lazy/{player-account-product-restriction-CkGs2nsU.cjs → player-account-product-restriction-_V-x4iZv.cjs} +1 -1
  166. package/lazy/{player-account-review-frequency-CAhYSCZt.cjs → player-account-review-frequency-BD1Undsz.cjs} +1 -1
  167. package/lazy/{player-account-review-frequency-Be6GcHx8.js → player-account-review-frequency-BFORFK4D.js} +1 -1
  168. package/lazy/{player-account-review-frequency-DnGS4Xvi.js → player-account-review-frequency-D9YA3131.js} +1 -1
  169. package/lazy/{player-account-self-exclusion-nd-QOp5UFK8.js → player-account-self-exclusion-nd-6vzgvud3.js} +1 -1
  170. package/lazy/{player-account-self-exclusion-nd-eONY2_sQ.js → player-account-self-exclusion-nd-BBuvMJ1E.js} +1 -1
  171. package/lazy/{player-account-self-exclusion-nd-4u0mcP5f.cjs → player-account-self-exclusion-nd-BtA8Q80t.cjs} +1 -1
  172. package/lazy/{player-account-timeout-DV3uO3zf.cjs → player-account-timeout-BWmZjos6.cjs} +1 -1
  173. package/lazy/{player-account-timeout-Czu9W4tx.js → player-account-timeout-C010rXLF.js} +1 -1
  174. package/lazy/{player-account-timeout-CPq7LVoE.js → player-account-timeout-DcmcU2pJ.js} +1 -1
  175. package/lazy/{player-account-transactions-history-B2W6-Bxp.cjs → player-account-transactions-history-BIcnYSsQ.cjs} +1 -1
  176. package/lazy/{player-account-transactions-history-Dot4yD4-.js → player-account-transactions-history-Ce-7G7jh.js} +1 -1
  177. package/lazy/{player-account-transactions-history-BgoIQWc9.js → player-account-transactions-history-DMm6h12i.js} +1 -1
  178. package/lazy/{player-active-bonuses-CYEfaR0Z.js → player-active-bonuses-B6Qd0iFq.js} +1 -1
  179. package/lazy/{player-active-bonuses-BzWS7C4r.js → player-active-bonuses-BbHoEghz.js} +1 -1
  180. package/lazy/{player-active-bonuses-B2VxDdfo.cjs → player-active-bonuses-Cf6ss7pG.cjs} +1 -1
  181. package/lazy/{player-bonus-card-aZwRuhVD.js → player-bonus-card-D-GTX5Oj.js} +1 -1
  182. package/lazy/{player-bonus-card-DGODZ6ma.cjs → player-bonus-card-DWbNMNX9.cjs} +1 -1
  183. package/lazy/{player-bonus-card-AQQlMVSx.js → player-bonus-card-DXvc8wBZ.js} +1 -1
  184. package/lazy/{player-bonus-history-DMW36igS.js → player-bonus-history-6x0TPXQu.js} +1 -1
  185. package/lazy/{player-bonus-history-CwQpiWdv.cjs → player-bonus-history-BlQO6LXI.cjs} +1 -1
  186. package/lazy/{player-bonus-history-Drumi6vs.js → player-bonus-history-Dsl1_oBI.js} +1 -1
  187. package/lazy/{player-change-password-nd-Bn-tles7.js → player-change-password-nd-BNFnlxQH.js} +1 -1
  188. package/lazy/{player-change-password-nd-DfXxOYUg.cjs → player-change-password-nd-C3ANy7UJ.cjs} +1 -1
  189. package/lazy/{player-change-password-nd-DKm51_CV.js → player-change-password-nd-D_9nLSqp.js} +1 -1
  190. package/lazy/{player-deposit-DYQ9sKli.js → player-deposit-C2nQ7q4s.js} +1 -1
  191. package/lazy/{player-deposit-DdhHYdrh.js → player-deposit-DKLKXyZ_.js} +1 -1
  192. package/lazy/{player-deposit-Be0LCFhK.cjs → player-deposit-DQAIRgiM.cjs} +1 -1
  193. package/lazy/{player-gaming-history-CsZXEtI1.js → player-gaming-history-A11lA1fz.js} +1 -1
  194. package/lazy/{player-gaming-history-C2VyELi9.js → player-gaming-history-Ch0F5g2K.js} +1 -1
  195. package/lazy/{player-gaming-history-DILRYPIO.cjs → player-gaming-history-DqL2imY0.cjs} +1 -1
  196. package/lazy/{player-pending-withdrawals-Bc6jp_p3.cjs → player-pending-withdrawals-BIhFzWFu.cjs} +1 -1
  197. package/lazy/{player-pending-withdrawals-B795cfI3.js → player-pending-withdrawals-DNkLDDju.js} +1 -1
  198. package/lazy/{player-pending-withdrawals-Dnaqal3P.js → player-pending-withdrawals-DZLyQVM9.js} +1 -1
  199. package/lazy/{player-profile-info-B-bs3JzM.cjs → player-profile-info-CXMEFTN5.cjs} +1 -1
  200. package/lazy/{player-profile-info-BLE17mMU.js → player-profile-info-Do7NRW6x.js} +1 -1
  201. package/lazy/{player-profile-info-BuvGXYTc.js → player-profile-info-DubfpLHj.js} +1 -1
  202. package/lazy/{player-reality-check-Bnmf1cke.js → player-reality-check-C4xnXLH4.js} +1 -1
  203. package/lazy/{player-reality-check-Cu6AvW1l.js → player-reality-check-Cii9zdx9.js} +1 -1
  204. package/lazy/{player-reality-check-PboIChHW.cjs → player-reality-check-CrA-Njh2.cjs} +1 -1
  205. package/lazy/{player-transaction-history-D7mn1ohl.js → player-transaction-history-BCWX6dhV.js} +1 -1
  206. package/lazy/{player-transaction-history-Mjr0X7RG.cjs → player-transaction-history-C8iSIeg0.cjs} +1 -1
  207. package/lazy/{player-transaction-history-E40MeOgT.js → player-transaction-history-C_YB0qND.js} +1 -1
  208. package/lazy/{player-withdrawal-D40Wd7En.cjs → player-withdrawal-B9A0Rcku.cjs} +1 -1
  209. package/lazy/{player-withdrawal-B1v716rq.js → player-withdrawal-CRrgKw0k.js} +1 -1
  210. package/lazy/{player-withdrawal-CgBTk81V.js → player-withdrawal-Cxv5Vq_G.js} +1 -1
  211. package/lazy/{qr-session-generator-BDPPDX0Z.js → qr-session-generator-BjroBFXY.js} +1 -1
  212. package/lazy/{qr-session-generator-KeKQOMN0.js → qr-session-generator-D8DXk7RZ.js} +1 -1
  213. package/lazy/{qr-session-generator-Bbd_6AtA.cjs → qr-session-generator-jA_80PIS.cjs} +1 -1
  214. package/package.json +1 -1
  215. package/stencil/{checkbox-group-input_16-41494D-0.js → checkbox-group-input_16-CXvi4G7F.js} +36 -4
  216. package/stencil/{checkbox-group-input_16-mmCvpN9q.cjs → checkbox-group-input_16-CqWdaqVr.cjs} +66 -66
  217. package/stencil/{checkbox-group-input_16-D6LWZJu6.js → checkbox-group-input_16-DTA9glV6.js} +36 -4
  218. package/stencil/{pam-change-password-173e4b25-Cmr-X1N4.js → pam-change-password-173e4b25-BEO9HVRX.js} +1 -1
  219. package/stencil/{pam-change-password-173e4b25-D9eRF4Nt.cjs → pam-change-password-173e4b25-BYoWGogG.cjs} +1 -1
  220. package/stencil/{pam-change-password-173e4b25-BBLKAOOj.js → pam-change-password-173e4b25-BbXdmM2z.js} +1 -1
  221. package/stencil/{pam-change-password-CDrVbMgt.js → pam-change-password-CFNES5u_.js} +2 -2
  222. package/stencil/{pam-change-password-jQlm4Ntx.js → pam-change-password-MVrfpCdU.js} +2 -2
  223. package/stencil/{pam-change-password-D8zIOztx.cjs → pam-change-password-lPnYrzBp.cjs} +1 -1
@@ -1,5 +1,5 @@
1
- "use strict";var _a=(i,e,t)=>new Promise((r,a)=>{var o=l=>{try{s(t.next(l))}catch(d){a(d)}},n=l=>{try{s(t.throw(l))}catch(d){a(d)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,n);s((t=t.apply(i,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../lazy/pam-change-password-gS1FNvTB.cjs"),w=require("./pam-change-password-173e4b25-D9eRF4Nt.cjs"),Ks="en",qe={en:{dateError:"The selected date should be between {min} and {max}",dateError2:"The selected date is not within the accepted range",dateFormatError:"The selected date has a different format then the one required.",numberLengthError:"The number should be between {min} and {max}",lengthError:"The length should be between {minLength} and {maxLength}",fixedLengthError:"The length should be {length} characters",requiredError:"This input is required.",invalidOriginalPasswordError:"Initial password field does not validate all criteria.",invalidPassword:"Password does not meet all criteria",passwordStrength:"Password strength",passwordStrengthWeak:"is not adequate",passwordStrengthStrong:"is adequate",SpecialCharactersNotAllowed:"Should not contain special characters",InvalidEmailFormat:"Invalid email format.",EmailNotMatching:"Emails not matching!",PasswordNotMatching:"Passwords not matching",MustIncludeNumber:"Password must include a number",MustContainCapital:"Password must include a capital letter",MustIncludePunctation:"Password must include punctuation",MustIncludeLowercase:"Password must include one lowercase character",OnlyNumbers:"The input should contain only digits.",InvalidFieldSize:"The length must be exactly 11 digits.",InvalidDocumentNumber:"Only numerical characters are allowed.",twofaDescription:"<p> We have sent the verification code to <p> {destination}. </p> </p> <p> Please insert the PIN below. </p>",twofaResendMessage:"Didn't receive the verification code?",twofaResendButton:"Resend",enterIEAddressManually:"For IRE, enter the address manually",postalLookUpNoAddressFound:"No addresses found for this postal code",searchingForAddresses:"Searching for addresses...",SAIdLengthError:"SA ID must be 13 digits",SAIdInvalidError:"Invalid SA ID",PassportLengthError:"Passport number must be 8 or 9 digits.",PasswordMustContain:"Password must contain:",AlphanumericalOnly:"Only alphanumerical characters are allowed",InvalidFirstName:"Only alphabetic characters are allowed.",InvalidLastName:"Only alphabetic characters are allowed.",MissingTrunkCode:"Phone number must start with 0"},hu:{dateError:"A választott dátumnak {min} és {max} között kell lennie",dateError2:"A kiválasztott dátum nincs az elfogadott tartományon belül",dateFormatError:"A kiválasztott dátum formátuma eltér a szükségestől.",numberLengthError:"A számnak {min} és {max} között kell lennie",lengthError:"A hossznak {minLength} és {maxLength} között kell lennie",fixedLengthError:"A hossznak {length} karakternek kell lennie",requiredError:"Ez a beviteli mező kötelező.",invalidOriginalPasswordError:"Initial password field does not validate all criteria.",invalidPassword:"A jelszó nem felel meg minden kritériumnak",passwordStrength:"Jelszó erőssége",passwordStrengthWeak:"nem megfelelő",passwordStrengthStrong:"megfelelő",SpecialCharactersNotAllowed:"Nem tartalmazhat speciális karaktereket",InvalidEmailFormat:"Érvénytelen e-mail formátum.",EmailNotMatching:"Az e-mailek nem egyeznek!",PasswordNotMatching:"A jelszavak nem egyeznek",MustIncludeNumber:"A jelszónak tartalmaznia kell egy számot",MustContainCapital:"A jelszónak tartalmaznia kell egy nagybetűt",MustIncludePunctation:"A jelszónak tartalmaznia kell írásjelet",MustIncludeLowercase:"A jelszónak legalább egy kisbetűt kell tartalmaznia",OnlyNumbers:"Csak számjegyeket tartalmazhat.",InvalidFieldSize:"A hosszúságnak pontosan 11 számjegynek kell lennie.",InvalidDocumentNumber:"Csak számjegyek engedélyezettek.",twofaDescription:"<p> A megerősítő kódot elküldtük a következő címre: <p> {destination}. </p> </p> <p> Kérjük, írja be az alábbi PIN-kódot. </p>",twofaResendMessage:"Nem kapta meg a megerősítő kódot?",twofaResendButton:"Újraküldés",PassportLengthError:"Az útlevélszámnak 9 számjegyűnek kell lennie",SAIdLengthError:"A dél-afrikai személyi számnak 13 számjegyűnek kell lennie",SAIdInvalidError:"Érvénytelen dél-afrikai személyi szám",PasswordMustContain:"A jelszónak tartalmaznia kell:",AlphanumericalOnly:"Csak alfanumerikus karakterek engedélyezettek",InvalidFirstName:"Csak betűk engedélyezettek.",InvalidLastName:"Csak betűk engedélyezettek.",MissingTrunkCode:"A telefonszámnak 0-val kell kezdődnie"},hr:{dateError:"Odabrani datum treba biti između {min} i {max}",dateError2:"Odabrani datum nije unutar prihvaćenog raspona",dateFormatError:"Odabrani datum je u drugačijem formatu od potrebnog.",numberLengthError:"Broj bi trebao biti između {min} i {max}",lengthError:"Duljina bi trebala biti između {minLength} i {maxLength}",fixedLengthError:"Duljina mora biti {length} znakova",requiredError:"Ovaj unos je obavezan.",invalidOriginalPasswordError:"Lozinke se ne podudaraju",invalidPassword:"Lozinka ne zadovoljava sve kriterije",passwordStrength:"Lozinka",passwordStrengthWeak:"nije dovoljno jaka",passwordStrengthStrong:"je dovoljno jaka",SpecialCharactersNotAllowed:"Ne smije sadržavati posebne znakove",InvalidEmailFormat:"Nevažeći format e-maila",EmailNotMatching:"E-mailovi se ne podudaraju!",PasswordNotMatching:"Lozinke se ne podudaraju",MustIncludeNumber:"Lozinka mora sadržavati broj",MustContainCapital:"Lozinka mora sadržavati veliko slovo",MustIncludePunctation:"Lozinka mora sadržavati barem jedan znak",MustIncludeLowercase:"Lozinka mora sadržavati barem jedno malo slovo",OnlyNumbers:"Smije sadržavati samo znamenke.",InvalidFieldSize:"Dužina mora biti točno 11 znamenki.",InvalidDocumentNumber:"Dopušteni su samo numerički znakovi.",twofaDescription:"<p> Poslali smo verifikacijski kod na: <p> {destination}. </p> </p> <p> Molimo unesite PIN ispod. </p>",twofaResendMessage:"Niste primili verifikacijski kod?",twofaResendButton:"Ponovno pošalji",PassportLengthError:"Broj putovnice mora imati 9 znamenki",SAIdLengthError:"Južnoafrički osobni broj mora imati 13 znamenki",SAIdInvalidError:"Nevažeći južnoafrički osobni broj",PasswordMustContain:"Lozinka mora sadržavati:",AlphanumericalOnly:"Dopušteni su samo alfanumerički znakovi",InvalidFirstName:"Dozvoljena su samo slova.",InvalidLastName:"Dozvoljena su samo slova.",MissingTrunkCode:"Telefonski broj mora počinjati s 0"},tr:{dateError:"Seçilen tarih {min} ve {max} arasında olmalıdır",dateError2:"Seçilen tarih kabul edilen aralıkta değil",dateFormatError:"Seçilen tarihin formatı, gereken formattan farklı.",numberLengthError:"Sayı {min} ve {max} arasında olmalıdır",lengthError:"Uzunluk {minLength} ve {maxLength} arasında olmalıdır",fixedLengthError:"Uzunluk {length} karakter olmalıdır",requiredError:"Bu alan zorunludur.",invalidOriginalPasswordError:"İlk şifre alanı tüm kriterleri karşılamıyor.",invalidPassword:"Şifre tüm kriterleri karşılamıyor",passwordStrength:"Şifre gücü",passwordStrengthWeak:"yetersiz",passwordStrengthStrong:"yeterli",SpecialCharactersNotAllowed:"Özel karakter içermemelidir",InvalidEmailFormat:"Geçersiz e-posta formatı.",EmailNotMatching:"E-postalar uyuşmuyor!",PasswordNotMatching:"Şifreler uyuşmuyor",MustIncludeNumber:"bir sayı içermelidir",MustContainCapital:"büyük harf içermelidir",MustIncludePunctation:"noktalama işareti içermelidir",MustIncludeLowercase:"Şifre en az bir küçük harf içermelidir",OnlyNumbers:"Yalnızca rakamlar içermelidir.",InvalidFieldSize:"Uzunluk tam olarak 11 rakam olmalıdır.",InvalidDocumentNumber:"Sadece sayısal karakterlere izin verilir.",twofaDescription:"<p> Doğrulama kodunu şu adrese gönderdik: <p> {destination}. </p> </p> <p> Lütfen aşağıya PIN kodunu girin. </p>",twofaResendMessage:"Doğrulama kodunu almadınız mı?",twofaResendButton:"Yeniden gönder",PassportLengthError:"Pasaport numarası 9 haneli olmalıdır",SAIdLengthError:"Güney Afrika kimlik numarası 13 haneli olmalıdır",SAIdInvalidError:"Geçersiz Güney Afrika kimlik numarası",PasswordMustContain:"Şifre şunları içermelidir:",AlphanumericalOnly:"Yalnızca alfanümerik karakterlere izin verilir",InvalidFirstName:"Yalnızca alfabetik karakterlere izin verilir.",InvalidLastName:"Yalnızca alfabetik karakterlere izin verilir.",MissingTrunkCode:"Telefon numarası 0 ile başlamalıdır"},"pt-br":{dateError:"A data selecionada deve estar entre {min} e {max}",dateError2:"A data selecionada não está dentro de um intervalo válido",dateFormatError:"A data selecionada está em um formato diferente do exigido.",numberLengthError:"O número deve estar entre {min} e {max}",lengthError:"O comprimento deve estar entre {minLength} e {maxLength}",fixedLengthError:"O comprimento deve ser de {length} caracteres",requiredError:"Este campo é obrigatório",invalidOriginalPasswordError:"O campo de senha inicial não faz parte dos critérios válidos",invalidPassword:"A senha não atende a todos os critérios",PasswordStrength:"Força da senha",PasswordStrengthWeak:"Não é adequado",PasswordStrengthStrong:"é apropriado",SpecialCharactersNotAllowed:"Não deve conter caracteres especiais",InvalidEmailFormat:"Formato de email inválido",EmailNotMatching:"E-mail não corresponde",PasswordNotMatching:"Senha não corresponde",MustIncludeNumber:"A senha deve incluir um número",MustContainCapital:"A senha deve incluir uma letra maiúscula",MustIncludePunctation:"A senha deve incluir um sinal de pontuação",MustIncludeLowercase:"A senha deve conter pelo menos uma letra minúscula",OnlyNumbers:"Deve conter apenas dígitos.",InvalidFieldSize:"O comprimento deve ser exatamente 11 dígitos.",InvalidDocumentNumber:"Apenas caracteres numéricos são permitidos.",twofaDescription:"<p> Enviamos o código de verificação para: <p> {destination}. </p> </p> <p> Por favor, insira o PIN abaixo. </p>",twofaResendMessage:"Não recebeu o código de verificação?",twofaResendButton:"Reenviar",PassportLengthError:"O número do passaporte deve ter 9 dígitos",SAIdLengthError:"O número de identificação da África do Sul deve ter 13 dígitos",SAIdInvalidError:"Número de identificação da África do Sul inválido",PasswordMustContain:"A senha deve conter:",AlphanumericalOnly:"Apenas caracteres alfanuméricos são permitidos",InvalidFirstName:"Apenas caracteres alfabéticos são permitidos.",InvalidLastName:"Apenas caracteres alfabéticos são permitidos.",MissingTrunkCode:"O número de telefone deve começar com 0"},pt:{dateError:"A data selecionada deve estar entre {min} e {max}",dateError2:"A data selecionada não está dentro do intervalo aceite",dateFormatError:"A data selecionada tem um formato diferente do exigido.",numberLengthError:"O número deve estar entre {min} e {max}",lengthError:"O comprimento deve estar entre {minLength} e {maxLength}",fixedLengthError:"O comprimento deve ser de {length} caracteres",requiredError:"Este campo é obrigatório.",invalidOriginalPasswordError:"O campo da palavra-passe inicial não cumpre todos os critérios.",invalidPassword:"A palavra-passe não cumpre todos os critérios",passwordStrength:"Força da palavra-passe",passwordStrengthWeak:"não é adequada",passwordStrengthStrong:"é adequada",SpecialCharactersNotAllowed:"Não deve conter caracteres especiais",InvalidEmailFormat:"Formato de email inválido.",EmailNotMatching:"Os emails não coincidem!",PasswordNotMatching:"As palavras-passe não coincidem",MustIncludeNumber:"A palavra-passe deve incluir um número",MustContainCapital:"A palavra-passe deve incluir uma letra maiúscula",MustIncludePunctation:"A palavra-passe deve incluir pontuação",MustIncludeLowercase:"A palavra-passe deve incluir um caractere minúsculo",OnlyNumbers:"O campo deve conter apenas dígitos.",InvalidFieldSize:"O comprimento deve ser exatamente 11 dígitos.",InvalidDocumentNumber:"Apenas caracteres numéricos são permitidos.",twofaDescription:"<p> Enviámos o código de verificação para <p> {destination}. </p> </p> <p> Por favor, introduza o PIN abaixo. </p>",twofaResendMessage:"Não recebeu o código de verificação?",twofaResendButton:"Reenviar",enterIEAddressManually:"Para IRE, introduza o endereço manualmente",postalLookUpNoAddressFound:"Não foram encontrados endereços para este código postal",searchingForAddresses:"A procurar endereços...",SAIdLengthError:"O ID da África do Sul deve ter 13 dígitos",SAIdInvalidError:"ID da África do Sul inválido",PassportLengthError:"O número de passaporte deve ter 8 ou 9 dígitos.",PasswordMustContain:"A palavra-passe deve conter:",AlphanumericalOnly:"Apenas caracteres alfanuméricos são permitidos",InvalidFirstName:"Apenas caracteres alfabéticos são permitidos.",InvalidLastName:"Apenas caracteres alfabéticos são permitidos.",MissingTrunkCode:"O número de telefone deve começar por 0"},"es-mx":{dateError:"La fecha seleccionada debe ser entre {min} y {max}",dateError2:"La fecha seleccionada no está dentro de un rango válido",dateFormatError:"La fecha seleccionada tiene un formato diferente al requerido.",numberLengthError:"El número debe ser entre {min} y {max}",lengthError:"La longitud deber ser entre {minLength} y {maxLength}",fixedLengthError:"La longitud debe ser de {length} caracteres",requiredError:"Este campo es requerido",invalidOriginalPasswordError:"El campo de contraseña inicial no es parte del criterio válido",invalidPassword:"La contraseña no cumple con todos los criterios",PasswordStrength:"La fortaleza de la contraseña",PasswordStrengthWeak:"no es adecuada",PasswordStrengthStrong:"es adecuada",SpecialCharactersNotAllowed:"No debe contener caracteres especiales",InvalidEmailFormat:"Formato inválido de correo",EmailNotMatching:"El correo electrónico no coincide",PasswordNotMatching:"La contraseña no coincide",MustIncludeNumber:"La contraseña debe incluir un número",MustContainCapital:"La contraseña debe incluir una letra mayúscula",MustIncludePunctation:"La contraseña debe incluir un signo de puntuación",MustIncludeLowercase:"La contraseña debe contener al menos una letra minúscula",OnlyNumbers:"Debe contener solo dígitos.",InvalidFieldSize:"La longitud debe ser exactamente de 11 dígitos.",InvalidDocumentNumber:"Solo se permiten caracteres numéricos.",twofaDescription:"<p> Hemos enviado el código de verificación a: <p> {destination}. </p> </p> <p> Por favor, ingrese el PIN a continuación. </p>",twofaResendMessage:"¿No recibiste el código de verificación?",twofaResendButton:"Reenviar",PassportLengthError:"El número de pasaporte debe tener 9 dígitos",SAIdLengthError:"El número de identificación de Sudáfrica debe tener 13 dígitos",SAIdInvalidError:"Número de identificación de Sudáfrica inválido",PasswordMustContain:"La contraseña debe contener:",AlphanumericalOnly:"Solo se permiten caracteres alfanuméricos",InvalidFirstName:"Solo se permiten caracteres alfabéticos.",InvalidLastName:"Solo se permiten caracteres alfabéticos.",MissingTrunkCode:"El número de teléfono debe comenzar con 0"},fr:{dateError:"La date sélectionnée doit être comprise entre {min} et {max}",dateError2:"La date sélectionnée n’est pas dans la plage autorisée",dateFormatError:"Le format de la date sélectionnée est incorrect.",numberLengthError:"Le nombre doit être compris entre {min} et {max}",lengthError:"La longueur doit être comprise entre {minLength} et {maxLength}",fixedLengthError:"La longueur doit être de {length} caractères",requiredError:"Ce champ est obligatoire.",invalidOriginalPasswordError:"Le mot de passe initial ne respecte pas tous les critères.",invalidPassword:"Le mot de passe ne respecte pas tous les critères",passwordStrength:"Robustesse du mot de passe",passwordStrengthWeak:"est insuffisante",passwordStrengthStrong:"est suffisante",SpecialCharactersNotAllowed:"Ne doit pas contenir de caractères spéciaux",InvalidEmailFormat:"Format d’adresse e-mail invalide.",EmailNotMatching:"Les adresses e-mail ne correspondent pas !",PasswordNotMatching:"Les mots de passe ne correspondent pas",MustIncludeNumber:"Le mot de passe doit contenir un chiffre",MustContainCapital:"Le mot de passe doit contenir une lettre majuscule",MustIncludePunctation:"Le mot de passe doit contenir un caractère de ponctuation",MustIncludeLowercase:"Le mot de passe doit contenir une lettre minuscule",OnlyNumbers:"Ce champ ne doit contenir que des chiffres.",InvalidFieldSize:"La longueur doit être exactement de 11 chiffres.",InvalidDocumentNumber:"Seuls les caractères numériques sont autorisés.",twofaDescription:"<p>Nous avons envoyé le code de vérification à <p>{destination}</p>.</p><p>Veuillez saisir le code PIN ci-dessous.</p>",twofaResendMessage:"Vous n’avez pas reçu le code de vérification ?",twofaResendButton:"Renvoyer",enterIEAddressManually:"Pour l’Irlande, saisissez l’adresse manuellement",postalLookUpNoAddressFound:"Aucune adresse trouvée pour ce code postal",searchingForAddresses:"Recherche d’adresses...",SAIdLengthError:"L’identifiant sud-africain doit comporter 13 chiffres",SAIdInvalidError:"Identifiant sud-africain invalide",PassportLengthError:"Le numéro de passeport doit comporter 8 ou 9 chiffres.",PasswordMustContain:"Le mot de passe doit contenir :",AlphanumericalOnly:"Seuls les caractères alphanumériques sont autorisés",InvalidFirstName:"Seuls les caractères alphabétiques sont autorisés.",InvalidLastName:"Seuls les caractères alphabétiques sont autorisés.",MissingTrunkCode:"Le numéro de téléphone doit commencer par 0"}},J={DOCUMENT_NUMBER:"DocumentNumber",FIRSTNAME_ON_DOCUMENT:"FirstnameOnDocument",LASTNAME_ON_DOCUMENT:"LastnameOnDocument",PASSPORT:"Passport",SOUTH_AFRICAN_ID:"SouthAfricanID",BIRTHDATE:"BirthDate",PASSPORT_NUMERIC_REGEX:/^\d{8,9}$/,SA_ID_BASIC_REGEX:/^\d{13}$/,SOUTH_AFRICAN_ID_LENGTH:13,NON_LETTERS_REGEX:/[^A-Za-z]/g,DATE_FORMAT:"yyyy-MM-dd",PASSWORD_COMPLEXITY_PASSED:"passed",PASSWORD_COMPLEXITY_FAILED:"failed"},de={PASSPORT_INVALID:"PassportLengthError",SA_ID_LENGTH:"SAIdLengthError",SA_ID_INVALID:"SAIdInvalidError",REQUIRED:"requiredError",LENGTH:"lengthError",FIXED_LENGTH:"fixedLengthError"},ga={PASSED:"✓",FAILED:"✕"},b=(i,e,t)=>{const r=e;let a=qe[r]?qe[r][i]:qe[Ks][i];if(t!==void 0)for(const[o,n]of Object.entries(t.values)){const s=new RegExp(`{${o}}`,"g");a=a.replace(s,n)}return a},Io=i=>{Object.keys(i).forEach(e=>{qe[e]=qe[e]||{},Object.keys(i[e]).forEach(t=>{typeof i[e][t]=="string"&&(qe[e][t]=i[e][t])})})},Xs=i=>new Promise(e=>{fetch(i).then(t=>t.json()).then(t=>{Io(t),e(!0)})}),Qs=i=>{if(!J.SA_ID_BASIC_REGEX.test(i))return!1;const e=i.split("").map(l=>parseInt(l,10));let t=0;for(let l=0;l<12;l+=2)t+=e[l];let r="";for(let l=1;l<12;l+=2)r+=e[l];const o=(parseInt(r,10)*2).toString().split("").reduce((l,d)=>l+parseInt(d,10),0);return(10-(t+o)%10)%10===e[12]},he="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iNiIgY3k9IjYiIHI9IjUuNSIgc3Ryb2tlPSIjOTc5Nzk3Ii8+CjxyZWN0IHg9IjUiIHk9IjUiIHdpZHRoPSIyIiBoZWlnaHQ9IjUiIGZpbGw9IiM5Nzk3OTciLz4KPGNpcmNsZSBjeD0iNiIgY3k9IjMiIHI9IjEiIGZpbGw9IiM5Nzk3OTciLz4KPC9zdmc+Cg==",Js='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}vaadin-checkbox-group{margin-top:5px;margin-left:40px}.checkboxgroup{font-family:"Roboto";font-style:normal;font-size:15px}.checkboxgroup__wrapper{position:relative}.checkboxgroup__wrapper--flex{display:flex;gap:5px;align-content:flex-start}.checkboxgroup__wrapper--relative{position:relative;display:inline}.checkboxgroup__input{vertical-align:baseline}.checkboxgroup__input[indeterminate]::part(checkbox)::after,.checkboxgroup__input[indeterminate]::part(checkbox),.checkboxgroup__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkboxgroup__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;padding-left:10px;vertical-align:baseline}.checkboxgroup__label-text{font-size:16px}.checkboxgroup__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkboxgroup__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.checkboxgroup__tooltip-icon{width:16px;height:auto}.checkboxgroup__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.checkboxgroup__tooltip.visible{opacity:1}.checkbox__input::part(checkbox){background-color:var(--emw--color-white, #FFFFFF);transform:scale(0.8, 0.8);border-radius:var(--emw--border-radius-small, 2px);box-shadow:0 0px 0px 2px var(--emw--color-gray, #7a7a7a)}.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));box-shadow:none}',Zs=Js,To=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.value=null,this.name=void 0,this.displayName=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.options=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1,this.selectedValues=[],this.showCheckboxes=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}setValue(){this.value=this.options.reduce((i,e)=>(i[e.name]=this.selectedValues.includes(e.name),i),{}),this.emitValueHandler(!0)}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.inputReference=this.element.shadowRoot.querySelector("input"),this.isValid=this.setValidity(),this.defaultValue&&(this.showCheckboxes=!0,this.selectedValues=this.options.map(i=>i.name),this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return b("requiredError",this.language)}renderTooltip(){return this.showTooltip?h.h("div",{class:`checkboxgroup__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}handleParentCheckbox(i){const e=i.target.checked;this.showCheckboxes=e,this.selectedValues=e?this.options.map(t=>t.name):[]}renderLabel(){return h.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},h.h("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}render(){return h.h("div",{key:"342900ae923094f2746fd43917743d01efba942e",class:`checkboxgroup__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},h.h("div",{key:"8f3b470274047b355741b438a4e15c7c46504f5a",class:"checkboxgroup__wrapper--flex"},h.h("vaadin-checkbox",{key:"c7a74f9da877304f4d71607d58eba90dd0a29de7",class:"checkbox__input",checked:this.selectedValues.length===this.options.length||this.defaultValue==="true",indeterminate:this.selectedValues.length>0&&this.selectedValues.length<this.options.length,onChange:i=>this.handleParentCheckbox(i)},this.renderLabel()),this.tooltip&&h.h("img",{key:"75d807ad544e043a2e3beed46bf0c7dfa2125324",class:"checkboxgroup__tooltip-icon",src:he,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),h.h("small",{key:"4b17e1e613c7561fb3c99f334926544ef2ba787a",class:"checkboxgroup__error-message"},this.errorMessage),this.showCheckboxes&&h.h("vaadin-checkbox-group",{key:"9a8d573a7cb48bb2d68cceec5f39f1e0886ea05f",theme:"vertical",value:this.selectedValues,"on-value-changed":i=>{this.selectedValues=i.detail.value}},this.options.map(i=>h.h("vaadin-checkbox",{class:"checkbox__input",name:i.name,value:i.name,label:i.displayName}))))}get element(){return h.getElement(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}}};To.style=Zs;const el='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.checkbox{font-family:"Roboto";font-style:normal;font-size:15px}.checkbox__wrapper{display:flex;gap:10px;position:relative;align-items:baseline}.checkbox__wrapper--relative{position:relative}.checkbox__input[indeterminate]::part(checkbox)::after,.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;padding:0px;vertical-align:baseline}.checkbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.checkbox__tooltip-icon{width:16px;height:auto}.checkbox__tooltip{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.checkbox__tooltip.visible{opacity:1}.checkbox__input::part(checkbox){background-color:var(--emw--color-white, #FFFFFF);transform:scale(0.8, 0.8);border-radius:var(--emw--border-radius-small, 2px);box-shadow:0 0px 0px 2px var(--emw--color-gray, #7a7a7a)}.checkbox__input::part(required-indicator)::after{display:none}.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));box-shadow:none}.checkbox__label-text.mandatory::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}',tl=el,Po=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.value="",this.name=void 0,this.displayName=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.inputReference=this.vaadinCheckbox.querySelector("input"),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}handleCheckbox(i){this.value=i.target.checked.toString(),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return b("requiredError",this.language)}renderLabel(){var i;return h.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},h.h("div",{class:{"checkbox__label-text":!0,mandatory:(i=this.validation)===null||i===void 0?void 0:i.mandatory},innerHTML:this.displayName}))}renderTooltip(){return this.showTooltip?h.h("div",{class:`checkbox__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return h.h("div",{key:"a8d8bf6aa2001b6aee44d728a198244819ae169e",class:`checkbox__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},h.h("vaadin-checkbox",{key:"13a5589a78bef4277922535e59c5718d36b1f318",class:"checkbox__input",required:this.validation.mandatory,checked:this.defaultValue==="true",onChange:i=>this.handleCheckbox(i),"error-message":!this.isValid&&this.errorMessage,ref:i=>this.vaadinCheckbox=i},this.renderLabel()),this.tooltip&&h.h("img",{key:"008bb9a318c914b4b40e80b15080f7f174cc1262",class:"checkboxgroup__tooltip-icon",src:he,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Po.style=tl;function we(i){"@babel/helpers - typeof";return we=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},we(i)}function $(i,e){if(e.length<i)throw new TypeError(i+" argument"+(i>1?"s":"")+" required, but only "+e.length+" present")}function il(i){return $(1,arguments),i instanceof Date||we(i)==="object"&&Object.prototype.toString.call(i)==="[object Date]"}function W(i){$(1,arguments);var e=Object.prototype.toString.call(i);return i instanceof Date||we(i)==="object"&&e==="[object Date]"?new Date(i.getTime()):typeof i=="number"||e==="[object Number]"?new Date(i):((typeof i=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Ao(i){if($(1,arguments),!il(i)&&typeof i!="number")return!1;var e=W(i);return!isNaN(Number(e))}function ie(i){if(i===null||i===!0||i===!1)return NaN;var e=Number(i);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function rl(i,e){$(2,arguments);var t=W(i).getTime(),r=ie(e);return new Date(t+r)}function Do(i,e){$(2,arguments);var t=ie(e);return rl(i,-t)}var al=864e5;function ol(i){$(1,arguments);var e=W(i),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),a=t-r;return Math.floor(a/al)+1}function Xe(i){$(1,arguments);var e=1,t=W(i),r=t.getUTCDay(),a=(r<e?7:0)+r-e;return t.setUTCDate(t.getUTCDate()-a),t.setUTCHours(0,0,0,0),t}function Oo(i){$(1,arguments);var e=W(i),t=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var a=Xe(r),o=new Date(0);o.setUTCFullYear(t,0,4),o.setUTCHours(0,0,0,0);var n=Xe(o);return e.getTime()>=a.getTime()?t+1:e.getTime()>=n.getTime()?t:t-1}function nl(i){$(1,arguments);var e=Oo(i),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=Xe(t);return r}var sl=6048e5;function Vo(i){$(1,arguments);var e=W(i),t=Xe(e).getTime()-nl(e).getTime();return Math.round(t/sl)+1}var ll={};function tt(){return ll}function Ne(i,e){var t,r,a,o,n,s,l,d;$(1,arguments);var c=tt(),u=ie((t=(r=(a=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=W(i),p=m.getUTCDay(),y=(p<u?7:0)+p-u;return m.setUTCDate(m.getUTCDate()-y),m.setUTCHours(0,0,0,0),m}function Cr(i,e){var t,r,a,o,n,s,l,d;$(1,arguments);var c=W(i),u=c.getUTCFullYear(),m=tt(),p=ie((t=(r=(a=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:m.firstWeekContainsDate)!==null&&r!==void 0?r:(l=m.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(u+1,0,p),y.setUTCHours(0,0,0,0);var M=Ne(y,e),D=new Date(0);D.setUTCFullYear(u,0,p),D.setUTCHours(0,0,0,0);var C=Ne(D,e);return c.getTime()>=M.getTime()?u+1:c.getTime()>=C.getTime()?u:u-1}function dl(i,e){var t,r,a,o,n,s,l,d;$(1,arguments);var c=tt(),u=ie((t=(r=(a=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),m=Cr(i,e),p=new Date(0);p.setUTCFullYear(m,0,u),p.setUTCHours(0,0,0,0);var y=Ne(p,e);return y}var hl=6048e5;function Mo(i,e){$(1,arguments);var t=W(i),r=Ne(t,e).getTime()-dl(t,e).getTime();return Math.round(r/hl)+1}function N(i,e){for(var t=i<0?"-":"",r=Math.abs(i).toString();r.length<e;)r="0"+r;return t+r}var cl={y:function(e,t){var r=e.getUTCFullYear(),a=r>0?r:1-r;return N(t==="yy"?a%100:a,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):N(r+1,2)},d:function(e,t){return N(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return N(e.getUTCHours()%12||12,t.length)},H:function(e,t){return N(e.getUTCHours(),t.length)},m:function(e,t){return N(e.getUTCMinutes(),t.length)},s:function(e,t){return N(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,a=e.getUTCMilliseconds(),o=Math.floor(a*Math.pow(10,r-3));return N(o,t.length)}};const Ce=cl;var Be={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ul={G:function(e,t,r){var a=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});case"GGGG":default:return r.era(a,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var a=e.getUTCFullYear(),o=a>0?a:1-a;return r.ordinalNumber(o,{unit:"year"})}return Ce.y(e,t)},Y:function(e,t,r,a){var o=Cr(e,a),n=o>0?o:1-o;if(t==="YY"){var s=n%100;return N(s,2)}return t==="Yo"?r.ordinalNumber(n,{unit:"year"}):N(n,t.length)},R:function(e,t){var r=Oo(e);return N(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return N(r,t.length)},Q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return N(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return N(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,r){var a=e.getUTCMonth();switch(t){case"M":case"MM":return Ce.M(e,t);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,r){var a=e.getUTCMonth();switch(t){case"L":return String(a+1);case"LL":return N(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,r,a){var o=Mo(e,a);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):N(o,t.length)},I:function(e,t,r){var a=Vo(e);return t==="Io"?r.ordinalNumber(a,{unit:"week"}):N(a,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):Ce.d(e,t)},D:function(e,t,r){var a=ol(e);return t==="Do"?r.ordinalNumber(a,{unit:"dayOfYear"}):N(a,t.length)},E:function(e,t,r){var a=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});case"EEEE":default:return r.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,r,a){var o=e.getUTCDay(),n=(o-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(n);case"ee":return N(n,2);case"eo":return r.ordinalNumber(n,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,a){var o=e.getUTCDay(),n=(o-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(n);case"cc":return N(n,t.length);case"co":return r.ordinalNumber(n,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){var a=e.getUTCDay(),o=a===0?7:a;switch(t){case"i":return String(o);case"ii":return N(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});case"iiii":default:return r.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,r){var a=e.getUTCHours(),o=a/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){var a=e.getUTCHours(),o;switch(a===12?o=Be.noon:a===0?o=Be.midnight:o=a/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){var a=e.getUTCHours(),o;switch(a>=17?o=Be.evening:a>=12?o=Be.afternoon:a>=4?o=Be.morning:o=Be.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var a=e.getUTCHours()%12;return a===0&&(a=12),r.ordinalNumber(a,{unit:"hour"})}return Ce.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Ce.H(e,t)},K:function(e,t,r){var a=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(a,{unit:"hour"}):N(a,t.length)},k:function(e,t,r){var a=e.getUTCHours();return a===0&&(a=24),t==="ko"?r.ordinalNumber(a,{unit:"hour"}):N(a,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Ce.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Ce.s(e,t)},S:function(e,t){return Ce.S(e,t)},X:function(e,t,r,a){var o=a._originalDate||e,n=o.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return ya(n);case"XXXX":case"XX":return De(n);case"XXXXX":case"XXX":default:return De(n,":")}},x:function(e,t,r,a){var o=a._originalDate||e,n=o.getTimezoneOffset();switch(t){case"x":return ya(n);case"xxxx":case"xx":return De(n);case"xxxxx":case"xxx":default:return De(n,":")}},O:function(e,t,r,a){var o=a._originalDate||e,n=o.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ba(n,":");case"OOOO":default:return"GMT"+De(n,":")}},z:function(e,t,r,a){var o=a._originalDate||e,n=o.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ba(n,":");case"zzzz":default:return"GMT"+De(n,":")}},t:function(e,t,r,a){var o=a._originalDate||e,n=Math.floor(o.getTime()/1e3);return N(n,t.length)},T:function(e,t,r,a){var o=a._originalDate||e,n=o.getTime();return N(n,t.length)}};function ba(i,e){var t=i>0?"-":"+",r=Math.abs(i),a=Math.floor(r/60),o=r%60;if(o===0)return t+String(a);var n=e;return t+String(a)+n+N(o,2)}function ya(i,e){if(i%60===0){var t=i>0?"-":"+";return t+N(Math.abs(i)/60,2)}return De(i,e)}function De(i,e){var t=e||"",r=i>0?"-":"+",a=Math.abs(i),o=N(Math.floor(a/60),2),n=N(a%60,2);return r+o+t+n}const pl=ul;var wa=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},No=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},ml=function(e,t){var r=e.match(/(P+)(p+)?/)||[],a=r[1],o=r[2];if(!o)return wa(e,t);var n;switch(a){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"});break}return n.replace("{{date}}",wa(a,t)).replace("{{time}}",No(o,t))},fl={p:No,P:ml};const Xi=fl;function zo(i){var e=new Date(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()));return e.setUTCFullYear(i.getFullYear()),i.getTime()-e.getTime()}var vl=["D","DD"],_l=["YY","YYYY"];function Lo(i){return vl.indexOf(i)!==-1}function Ro(i){return _l.indexOf(i)!==-1}function ti(i,e,t){if(i==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var gl={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},bl=function(e,t,r){var a,o=gl[e];return typeof o=="string"?a=o:t===1?a=o.one:a=o.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a};const yl=bl;function Vi(i){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):i.defaultWidth,r=i.formats[t]||i.formats[i.defaultWidth];return r}}var wl={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},xl={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Cl={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},kl={date:Vi({formats:wl,defaultWidth:"full"}),time:Vi({formats:xl,defaultWidth:"full"}),dateTime:Vi({formats:Cl,defaultWidth:"full"})};const El=kl;var Sl={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Il=function(e,t,r,a){return Sl[e]};const Tl=Il;function dt(i){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",a;if(r==="formatting"&&i.formattingValues){var o=i.defaultFormattingWidth||i.defaultWidth,n=t!=null&&t.width?String(t.width):o;a=i.formattingValues[n]||i.formattingValues[o]}else{var s=i.defaultWidth,l=t!=null&&t.width?String(t.width):i.defaultWidth;a=i.values[l]||i.values[s]}var d=i.argumentCallback?i.argumentCallback(e):e;return a[d]}}var Pl={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Al={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Dl={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ol={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Vl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ml={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Nl=function(e,t){var r=Number(e),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},zl={ordinalNumber:Nl,era:dt({values:Pl,defaultWidth:"wide"}),quarter:dt({values:Al,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:dt({values:Dl,defaultWidth:"wide"}),day:dt({values:Ol,defaultWidth:"wide"}),dayPeriod:dt({values:Vl,defaultWidth:"wide",formattingValues:Ml,defaultFormattingWidth:"wide"})};const Ll=zl;function ht(i){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,a=r&&i.matchPatterns[r]||i.matchPatterns[i.defaultMatchWidth],o=e.match(a);if(!o)return null;var n=o[0],s=r&&i.parsePatterns[r]||i.parsePatterns[i.defaultParseWidth],l=Array.isArray(s)?Fl(s,function(u){return u.test(n)}):Rl(s,function(u){return u.test(n)}),d;d=i.valueCallback?i.valueCallback(l):l,d=t.valueCallback?t.valueCallback(d):d;var c=e.slice(n.length);return{value:d,rest:c}}}function Rl(i,e){for(var t in i)if(i.hasOwnProperty(t)&&e(i[t]))return t}function Fl(i,e){for(var t=0;t<i.length;t++)if(e(i[t]))return t}function $l(i){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(i.matchPattern);if(!r)return null;var a=r[0],o=e.match(i.parsePattern);if(!o)return null;var n=i.valueCallback?i.valueCallback(o[0]):o[0];n=t.valueCallback?t.valueCallback(n):n;var s=e.slice(a.length);return{value:n,rest:s}}}var Bl=/^(\d+)(th|st|nd|rd)?/i,Hl=/\d+/i,Ul={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ql={any:[/^b/i,/^(a|c)/i]},jl={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Wl={any:[/1/i,/2/i,/3/i,/4/i]},Yl={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Gl={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Kl={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Xl={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Ql={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Jl={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Zl={ordinalNumber:$l({matchPattern:Bl,parsePattern:Hl,valueCallback:function(e){return parseInt(e,10)}}),era:ht({matchPatterns:Ul,defaultMatchWidth:"wide",parsePatterns:ql,defaultParseWidth:"any"}),quarter:ht({matchPatterns:jl,defaultMatchWidth:"wide",parsePatterns:Wl,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ht({matchPatterns:Yl,defaultMatchWidth:"wide",parsePatterns:Gl,defaultParseWidth:"any"}),day:ht({matchPatterns:Kl,defaultMatchWidth:"wide",parsePatterns:Xl,defaultParseWidth:"any"}),dayPeriod:ht({matchPatterns:Ql,defaultMatchWidth:"any",parsePatterns:Jl,defaultParseWidth:"any"})};const ed=Zl;var td={code:"en-US",formatDistance:yl,formatLong:El,formatRelative:Tl,localize:Ll,match:ed,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Fo=td;var id=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,rd=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ad=/^'([^]*?)'?$/,od=/''/g,nd=/[a-zA-Z]/;function Mi(i,e,t){var r,a,o,n,s,l,d,c,u,m,p,y,M,D;$(2,arguments);var C=String(e),T=tt(),H=(r=(a=void 0)!==null&&a!==void 0?a:T.locale)!==null&&r!==void 0?r:Fo,R=ie((o=(n=(s=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&s!==void 0?s:T.firstWeekContainsDate)!==null&&n!==void 0?n:(d=T.locale)===null||d===void 0||(c=d.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(R>=1&&R<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Y=ie((u=(m=(p=(y=void 0)!==null&&y!==void 0?y:void 0)!==null&&p!==void 0?p:T.weekStartsOn)!==null&&m!==void 0?m:(M=T.locale)===null||M===void 0||(D=M.options)===null||D===void 0?void 0:D.weekStartsOn)!==null&&u!==void 0?u:0);if(!(Y>=0&&Y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!H.localize)throw new RangeError("locale must contain localize property");if(!H.formatLong)throw new RangeError("locale must contain formatLong property");var ce=W(i);if(!Ao(ce))throw new RangeError("Invalid time value");var ot=zo(ce),nt=Do(ce,ot),st={firstWeekContainsDate:R,weekStartsOn:Y,locale:H,_originalDate:ce},Ai=C.match(rd).map(function(X){var re=X[0];if(re==="p"||re==="P"){var Pe=Xi[re];return Pe(X,H.formatLong)}return X}).join("").match(id).map(function(X){if(X==="''")return"'";var re=X[0];if(re==="'")return sd(X);var Pe=pl[re];if(Pe)return Ro(X)&&ti(X,e,String(i)),Lo(X)&&ti(X,e,String(i)),Pe(nt,X,H.localize,st);if(re.match(nd))throw new RangeError("Format string contains an unescaped latin alphabet character `"+re+"`");return X}).join("");return Ai}function sd(i){var e=i.match(ad);return e?e[1].replace(od,"'"):i}function xa(i,e){(e==null||e>i.length)&&(e=i.length);for(var t=0,r=Array(e);t<e;t++)r[t]=i[t];return r}function ld(i,e){if(i){if(typeof i=="string")return xa(i,e);var t={}.toString.call(i).slice(8,-1);return t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set"?Array.from(i):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?xa(i,e):void 0}}function Ca(i,e){var t=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!t){if(Array.isArray(i)||(t=ld(i))||e){t&&(i=t);var r=0,a=function(){};return{s:a,n:function(){return r>=i.length?{done:!0}:{done:!1,value:i[r++]}},e:function(d){throw d},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,n=!0,s=!1;return{s:function(){t=t.call(i)},n:function(){var d=t.next();return n=d.done,d},e:function(d){s=!0,o=d},f:function(){try{n||t.return==null||t.return()}finally{if(s)throw o}}}}function dd(i,e){if(i==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t]);return i}function _(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function Qi(i,e){return Qi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},Qi(i,e)}function P(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),e&&Qi(i,e)}function ii(i){return ii=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ii(i)}function $o(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return($o=function(){return!!i})()}function hd(i,e){if(e&&(we(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _(i)}function A(i){var e=$o();return function(){var t,r=ii(i);if(e){var a=ii(this).constructor;t=Reflect.construct(r,arguments,a)}else t=r.apply(this,arguments);return hd(this,t)}}function k(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function cd(i,e){if(we(i)!="object"||!i)return i;var t;if(typeof Symbol!="undefined"&&(t=i[Symbol.toPrimitive])!==void 0){var r=t.call(i,e);if(we(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function Bo(i){var e=cd(i,"string");return we(e)=="symbol"?e:e+""}function ud(i,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(i,Bo(r.key),r)}}function E(i,e,t){return e&&ud(i.prototype,e),Object.defineProperty(i,"prototype",{writable:!1}),i}function v(i,e,t){return(e=Bo(e))in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}var pd=10,Ho=function(){function i(){k(this,i),v(this,"priority",void 0),v(this,"subPriority",0)}return E(i,[{key:"validate",value:function(t,r){return!0}}]),i}(),md=function(i){P(t,i);var e=A(t);function t(r,a,o,n,s){var l;return k(this,t),l=e.call(this),l.value=r,l.validateValue=a,l.setValue=o,l.priority=n,s&&(l.subPriority=s),l}return E(t,[{key:"validate",value:function(a,o){return this.validateValue(a,this.value,o)}},{key:"set",value:function(a,o,n){return this.setValue(a,o,this.value,n)}}]),t}(Ho),fd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",pd),v(_(r),"subPriority",-1),r}return E(t,[{key:"set",value:function(a,o){if(o.timestampIsSet)return a;var n=new Date(0);return n.setFullYear(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),n.setHours(a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds()),n}}]),t}(Ho),V=function(){function i(){k(this,i),v(this,"incompatibleTokens",void 0),v(this,"priority",void 0),v(this,"subPriority",void 0)}return E(i,[{key:"run",value:function(t,r,a,o){var n=this.parse(t,r,a,o);return n?{setter:new md(n.value,this.validate,this.set,this.priority,this.subPriority),rest:n.rest}:null}},{key:"validate",value:function(t,r,a){return!0}}]),i}(),vd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",140),v(_(r),"incompatibleTokens",["R","u","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"})||n.era(a,{width:"narrow"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})||n.era(a,{width:"abbreviated"})||n.era(a,{width:"narrow"})}}},{key:"set",value:function(a,o,n){return o.era=n,a.setUTCFullYear(n,0,1),a.setUTCHours(0,0,0,0),a}}]),t}(V),_d=6e4,gd=36e5,bd=1e3,U={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},me={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function q(i,e){return i&&{value:e(i.value),rest:i.rest}}function F(i,e){var t=e.match(i);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function fe(i,e){var t=e.match(i);if(!t)return null;if(t[0]==="Z")return{value:0,rest:e.slice(1)};var r=t[1]==="+"?1:-1,a=t[2]?parseInt(t[2],10):0,o=t[3]?parseInt(t[3],10):0,n=t[5]?parseInt(t[5],10):0;return{value:r*(a*gd+o*_d+n*bd),rest:e.slice(t[0].length)}}function Uo(i){return F(U.anyDigitsSigned,i)}function B(i,e){switch(i){case 1:return F(U.singleDigit,e);case 2:return F(U.twoDigits,e);case 3:return F(U.threeDigits,e);case 4:return F(U.fourDigits,e);default:return F(new RegExp("^\\d{1,"+i+"}"),e)}}function ri(i,e){switch(i){case 1:return F(U.singleDigitSigned,e);case 2:return F(U.twoDigitsSigned,e);case 3:return F(U.threeDigitsSigned,e);case 4:return F(U.fourDigitsSigned,e);default:return F(new RegExp("^-?\\d{1,"+i+"}"),e)}}function kr(i){switch(i){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function qo(i,e){var t=e>0,r=t?e:1-e,a;if(r<=50)a=i||100;else{var o=r+50,n=Math.floor(o/100)*100,s=i>=o%100;a=i+n-(s?100:0)}return t?a:1-a}function jo(i){return i%400===0||i%4===0&&i%100!==0}var yd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",130),v(_(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){var s=function(d){return{year:d,isTwoDigitYear:o==="yy"}};switch(o){case"y":return q(B(4,a),s);case"yo":return q(n.ordinalNumber(a,{unit:"year"}),s);default:return q(B(o.length,a),s)}}},{key:"validate",value:function(a,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(a,o,n){var s=a.getUTCFullYear();if(n.isTwoDigitYear){var l=qo(n.year,s);return a.setUTCFullYear(l,0,1),a.setUTCHours(0,0,0,0),a}var d=!("era"in o)||o.era===1?n.year:1-n.year;return a.setUTCFullYear(d,0,1),a.setUTCHours(0,0,0,0),a}}]),t}(V),wd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",130),v(_(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){var s=function(d){return{year:d,isTwoDigitYear:o==="YY"}};switch(o){case"Y":return q(B(4,a),s);case"Yo":return q(n.ordinalNumber(a,{unit:"year"}),s);default:return q(B(o.length,a),s)}}},{key:"validate",value:function(a,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(a,o,n,s){var l=Cr(a,s);if(n.isTwoDigitYear){var d=qo(n.year,l);return a.setUTCFullYear(d,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Ne(a,s)}var c=!("era"in o)||o.era===1?n.year:1-n.year;return a.setUTCFullYear(c,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Ne(a,s)}}]),t}(V),xd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",130),v(_(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o){return ri(o==="R"?4:o.length,a)}},{key:"set",value:function(a,o,n){var s=new Date(0);return s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0),Xe(s)}}]),t}(V),Cd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",130),v(_(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o){return ri(o==="u"?4:o.length,a)}},{key:"set",value:function(a,o,n){return a.setUTCFullYear(n,0,1),a.setUTCHours(0,0,0,0),a}}]),t}(V),kd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",120),v(_(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"Q":case"QQ":return B(o.length,a);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"})||n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})||n.quarter(a,{width:"abbreviated",context:"formatting"})||n.quarter(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,o){return o>=1&&o<=4}},{key:"set",value:function(a,o,n){return a.setUTCMonth((n-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(V),Ed=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",120),v(_(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"q":case"qq":return B(o.length,a);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"})||n.quarter(a,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})||n.quarter(a,{width:"abbreviated",context:"standalone"})||n.quarter(a,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(a,o){return o>=1&&o<=4}},{key:"set",value:function(a,o,n){return a.setUTCMonth((n-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(V),Sd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),v(_(r),"priority",110),r}return E(t,[{key:"parse",value:function(a,o,n){var s=function(d){return d-1};switch(o){case"M":return q(F(U.month,a),s);case"MM":return q(B(2,a),s);case"Mo":return q(n.ordinalNumber(a,{unit:"month"}),s);case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"})||n.month(a,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})||n.month(a,{width:"abbreviated",context:"formatting"})||n.month(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,o){return o>=0&&o<=11}},{key:"set",value:function(a,o,n){return a.setUTCMonth(n,1),a.setUTCHours(0,0,0,0),a}}]),t}(V),Id=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",110),v(_(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){var s=function(d){return d-1};switch(o){case"L":return q(F(U.month,a),s);case"LL":return q(B(2,a),s);case"Lo":return q(n.ordinalNumber(a,{unit:"month"}),s);case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"})||n.month(a,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})||n.month(a,{width:"abbreviated",context:"standalone"})||n.month(a,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(a,o){return o>=0&&o<=11}},{key:"set",value:function(a,o,n){return a.setUTCMonth(n,1),a.setUTCHours(0,0,0,0),a}}]),t}(V);function Td(i,e,t){$(2,arguments);var r=W(i),a=ie(e),o=Mo(r,t)-a;return r.setUTCDate(r.getUTCDate()-o*7),r}var Pd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",100),v(_(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"w":return F(U.week,a);case"wo":return n.ordinalNumber(a,{unit:"week"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=1&&o<=53}},{key:"set",value:function(a,o,n,s){return Ne(Td(a,n,s),s)}}]),t}(V);function Ad(i,e){$(2,arguments);var t=W(i),r=ie(e),a=Vo(t)-r;return t.setUTCDate(t.getUTCDate()-a*7),t}var Dd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",100),v(_(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"I":return F(U.week,a);case"Io":return n.ordinalNumber(a,{unit:"week"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=1&&o<=53}},{key:"set",value:function(a,o,n){return Xe(Ad(a,n))}}]),t}(V),Od=[31,28,31,30,31,30,31,31,30,31,30,31],Vd=[31,29,31,30,31,30,31,31,30,31,30,31],Md=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",90),v(_(r),"subPriority",1),v(_(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"d":return F(U.date,a);case"do":return n.ordinalNumber(a,{unit:"date"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){var n=a.getUTCFullYear(),s=jo(n),l=a.getUTCMonth();return s?o>=1&&o<=Vd[l]:o>=1&&o<=Od[l]}},{key:"set",value:function(a,o,n){return a.setUTCDate(n),a.setUTCHours(0,0,0,0),a}}]),t}(V),Nd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",90),v(_(r),"subpriority",1),v(_(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"D":case"DD":return F(U.dayOfYear,a);case"Do":return n.ordinalNumber(a,{unit:"date"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){var n=a.getUTCFullYear(),s=jo(n);return s?o>=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(a,o,n){return a.setUTCMonth(0,n),a.setUTCHours(0,0,0,0),a}}]),t}(V);function Er(i,e,t){var r,a,o,n,s,l,d,c;$(2,arguments);var u=tt(),m=ie((r=(a=(o=(n=t==null?void 0:t.weekStartsOn)!==null&&n!==void 0?n:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:u.weekStartsOn)!==null&&a!==void 0?a:(d=u.locale)===null||d===void 0||(c=d.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=W(i),y=ie(e),M=p.getUTCDay(),D=y%7,C=(D+7)%7,T=(C<m?7:0)+y-M;return p.setUTCDate(p.getUTCDate()+T),p}var zd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",90),v(_(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})||n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,o){return o>=0&&o<=6}},{key:"set",value:function(a,o,n,s){return a=Er(a,n,s),a.setUTCHours(0,0,0,0),a}}]),t}(V),Ld=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",90),v(_(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n,s){var l=function(c){var u=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+u};switch(o){case"e":case"ee":return q(B(o.length,a),l);case"eo":return q(n.ordinalNumber(a,{unit:"day"}),l);case"eee":return n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})||n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,o){return o>=0&&o<=6}},{key:"set",value:function(a,o,n,s){return a=Er(a,n,s),a.setUTCHours(0,0,0,0),a}}]),t}(V),Rd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",90),v(_(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n,s){var l=function(c){var u=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+u};switch(o){case"c":case"cc":return q(B(o.length,a),l);case"co":return q(n.ordinalNumber(a,{unit:"day"}),l);case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"})||n.day(a,{width:"short",context:"standalone"})||n.day(a,{width:"narrow",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"})||n.day(a,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})||n.day(a,{width:"abbreviated",context:"standalone"})||n.day(a,{width:"short",context:"standalone"})||n.day(a,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(a,o){return o>=0&&o<=6}},{key:"set",value:function(a,o,n,s){return a=Er(a,n,s),a.setUTCHours(0,0,0,0),a}}]),t}(V);function Fd(i,e){$(2,arguments);var t=ie(e);t%7===0&&(t=t-7);var r=1,a=W(i),o=a.getUTCDay(),n=t%7,s=(n+7)%7,l=(s<r?7:0)+t-o;return a.setUTCDate(a.getUTCDate()+l),a}var $d=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",90),v(_(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){var s=function(d){return d===0?7:d};switch(o){case"i":case"ii":return B(o.length,a);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return q(n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"}),s);case"iiiii":return q(n.day(a,{width:"narrow",context:"formatting"}),s);case"iiiiii":return q(n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"}),s);case"iiii":default:return q(n.day(a,{width:"wide",context:"formatting"})||n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(a,o){return o>=1&&o<=7}},{key:"set",value:function(a,o,n){return a=Fd(a,n),a.setUTCHours(0,0,0,0),a}}]),t}(V),Bd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",80),v(_(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"a":case"aa":case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})||n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(a,o,n){return a.setUTCHours(kr(n),0,0,0),a}}]),t}(V),Hd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",80),v(_(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"b":case"bb":case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})||n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(a,o,n){return a.setUTCHours(kr(n),0,0,0),a}}]),t}(V),Ud=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",80),v(_(r),"incompatibleTokens",["a","b","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})||n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(a,o,n){return a.setUTCHours(kr(n),0,0,0),a}}]),t}(V),qd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",70),v(_(r),"incompatibleTokens",["H","K","k","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"h":return F(U.hour12h,a);case"ho":return n.ordinalNumber(a,{unit:"hour"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=1&&o<=12}},{key:"set",value:function(a,o,n){var s=a.getUTCHours()>=12;return s&&n<12?a.setUTCHours(n+12,0,0,0):!s&&n===12?a.setUTCHours(0,0,0,0):a.setUTCHours(n,0,0,0),a}}]),t}(V),jd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",70),v(_(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"H":return F(U.hour23h,a);case"Ho":return n.ordinalNumber(a,{unit:"hour"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=0&&o<=23}},{key:"set",value:function(a,o,n){return a.setUTCHours(n,0,0,0),a}}]),t}(V),Wd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",70),v(_(r),"incompatibleTokens",["h","H","k","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"K":return F(U.hour11h,a);case"Ko":return n.ordinalNumber(a,{unit:"hour"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=0&&o<=11}},{key:"set",value:function(a,o,n){var s=a.getUTCHours()>=12;return s&&n<12?a.setUTCHours(n+12,0,0,0):a.setUTCHours(n,0,0,0),a}}]),t}(V),Yd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",70),v(_(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"k":return F(U.hour24h,a);case"ko":return n.ordinalNumber(a,{unit:"hour"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=1&&o<=24}},{key:"set",value:function(a,o,n){var s=n<=24?n%24:n;return a.setUTCHours(s,0,0,0),a}}]),t}(V),Gd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",60),v(_(r),"incompatibleTokens",["t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"m":return F(U.minute,a);case"mo":return n.ordinalNumber(a,{unit:"minute"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=0&&o<=59}},{key:"set",value:function(a,o,n){return a.setUTCMinutes(n,0,0),a}}]),t}(V),Kd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",50),v(_(r),"incompatibleTokens",["t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"s":return F(U.second,a);case"so":return n.ordinalNumber(a,{unit:"second"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=0&&o<=59}},{key:"set",value:function(a,o,n){return a.setUTCSeconds(n,0),a}}]),t}(V),Xd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",30),v(_(r),"incompatibleTokens",["t","T"]),r}return E(t,[{key:"parse",value:function(a,o){var n=function(l){return Math.floor(l*Math.pow(10,-o.length+3))};return q(B(o.length,a),n)}},{key:"set",value:function(a,o,n){return a.setUTCMilliseconds(n),a}}]),t}(V),Qd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",10),v(_(r),"incompatibleTokens",["t","T","x"]),r}return E(t,[{key:"parse",value:function(a,o){switch(o){case"X":return fe(me.basicOptionalMinutes,a);case"XX":return fe(me.basic,a);case"XXXX":return fe(me.basicOptionalSeconds,a);case"XXXXX":return fe(me.extendedOptionalSeconds,a);case"XXX":default:return fe(me.extended,a)}}},{key:"set",value:function(a,o,n){return o.timestampIsSet?a:new Date(a.getTime()-n)}}]),t}(V),Jd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",10),v(_(r),"incompatibleTokens",["t","T","X"]),r}return E(t,[{key:"parse",value:function(a,o){switch(o){case"x":return fe(me.basicOptionalMinutes,a);case"xx":return fe(me.basic,a);case"xxxx":return fe(me.basicOptionalSeconds,a);case"xxxxx":return fe(me.extendedOptionalSeconds,a);case"xxx":default:return fe(me.extended,a)}}},{key:"set",value:function(a,o,n){return o.timestampIsSet?a:new Date(a.getTime()-n)}}]),t}(V),Zd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",40),v(_(r),"incompatibleTokens","*"),r}return E(t,[{key:"parse",value:function(a){return Uo(a)}},{key:"set",value:function(a,o,n){return[new Date(n*1e3),{timestampIsSet:!0}]}}]),t}(V),eh=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",20),v(_(r),"incompatibleTokens","*"),r}return E(t,[{key:"parse",value:function(a){return Uo(a)}},{key:"set",value:function(a,o,n){return[new Date(n),{timestampIsSet:!0}]}}]),t}(V),th={G:new vd,y:new yd,Y:new wd,R:new xd,u:new Cd,Q:new kd,q:new Ed,M:new Sd,L:new Id,w:new Pd,I:new Dd,d:new Md,D:new Nd,E:new zd,e:new Ld,c:new Rd,i:new $d,a:new Bd,b:new Hd,B:new Ud,h:new qd,H:new jd,K:new Wd,k:new Yd,m:new Gd,s:new Kd,S:new Xd,X:new Qd,x:new Jd,t:new Zd,T:new eh},ih=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,rh=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ah=/^'([^]*?)'?$/,oh=/''/g,nh=/\S/,sh=/[a-zA-Z]/;function ke(i,e,t,r){var a,o,n,s,l,d,c,u,m,p,y,M,D,C;$(3,arguments);var T=String(i),H=String(e),R=tt(),Y=(a=(o=void 0)!==null&&o!==void 0?o:R.locale)!==null&&a!==void 0?a:Fo;if(!Y.match)throw new RangeError("locale must contain match property");var ce=ie((n=(s=(l=(d=void 0)!==null&&d!==void 0?d:void 0)!==null&&l!==void 0?l:R.firstWeekContainsDate)!==null&&s!==void 0?s:(c=R.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(ce>=1&&ce<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ot=ie((m=(p=(y=(M=void 0)!==null&&M!==void 0?M:void 0)!==null&&y!==void 0?y:R.weekStartsOn)!==null&&p!==void 0?p:(D=R.locale)===null||D===void 0||(C=D.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&m!==void 0?m:0);if(!(ot>=0&&ot<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(H==="")return T===""?W(t):new Date(NaN);var nt={firstWeekContainsDate:ce,weekStartsOn:ot,locale:Y},st=[new fd],Ai=H.match(rh).map(function(G){var L=G[0];if(L in Xi){var le=Xi[L];return le(G,Y.formatLong)}return G}).join("").match(ih),X=[],re=Ca(Ai),Pe;try{var Ys=function(){var L=Pe.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&Ro(L)&&ti(L,H,i),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Lo(L)&&ti(L,H,i);var le=L[0],Ut=th[le];if(Ut){var ma=Ut.incompatibleTokens;if(Array.isArray(ma)){var fa=X.find(function(va){return ma.includes(va.token)||va.token===le});if(fa)throw new RangeError("The format string mustn't contain `".concat(fa.fullToken,"` and `").concat(L,"` at the same time"))}else if(Ut.incompatibleTokens==="*"&&X.length>0)throw new RangeError("The format string mustn't contain `".concat(L,"` and any other token at the same time"));X.push({token:le,fullToken:L});var Oi=Ut.run(T,L,Y.match,nt);if(!Oi)return{v:new Date(NaN)};st.push(Oi.setter),T=Oi.rest}else{if(le.match(sh))throw new RangeError("Format string contains an unescaped latin alphabet character `"+le+"`");if(L==="''"?L="'":le==="'"&&(L=lh(L)),T.indexOf(L)===0)T=T.slice(L.length);else return{v:new Date(NaN)}}};for(re.s();!(Pe=re.n()).done;){var ha=Ys();if(we(ha)==="object")return ha.v}}catch(G){re.e(G)}finally{re.f()}if(T.length>0&&nh.test(T))return new Date(NaN);var Gs=st.map(function(G){return G.priority}).sort(function(G,L){return L-G}).filter(function(G,L,le){return le.indexOf(G)===L}).map(function(G){return st.filter(function(L){return L.priority===G}).sort(function(L,le){return le.subPriority-L.subPriority})}).map(function(G){return G[0]}),Di=W(t);if(isNaN(Di.getTime()))return new Date(NaN);var lt=Do(Di,zo(Di)),ca={},Bt=Ca(Gs),ua;try{for(Bt.s();!(ua=Bt.n()).done;){var pa=ua.value;if(!pa.validate(lt,nt))return new Date(NaN);var Ht=pa.set(lt,ca,nt);Array.isArray(Ht)?(lt=Ht[0],dd(ca,Ht[1])):lt=Ht}}catch(G){Bt.e(G)}finally{Bt.f()}return lt}function lh(i){return i.match(ah)[1].replace(oh,"'")}function ka(i,e){$(2,arguments);var t=W(i),r=W(e);return t.getTime()>r.getTime()}function Ea(i,e){$(2,arguments);var t=W(i),r=W(e);return t.getTime()<r.getTime()}function Sa(i,e,t){return $(2,arguments),Ao(ke(i,e,new Date,t))}const dh='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.date{font-family:"Roboto";font-style:normal}.date__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px;height:100%}.date__wrapper--autofilled{pointer-events:none}.date__wrapper--autofilled .date__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__wrapper--autofilled .date__input::part(input-field){color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.date__manual-mode::part(toggle-button){display:none}.date__input{border:none;width:inherit;position:relative}.date__input[focused]::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.date__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.date__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:0;height:44px}.date__input>input{padding:5px 15px}.date__input::part(toggle-button){position:relative;right:10px}.date__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.date__tooltip-icon{position:absolute;right:0;bottom:10px}.date__tooltip{position:absolute;bottom:35px;right:10px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.date__tooltip.visible{opacity:1}',hh=dh,Wo=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.touched=!1,this.formatDate=e=>{const{year:t,month:r,day:a}=e,o=new Date(t,r,a);return Mi(o,this.dateFormat)},this.parseDate=e=>{const t=ke(e,this.dateFormat,new Date);return{year:t.getFullYear(),month:t.getMonth(),day:t.getDate()}},this.handleDocumentIdUpdate=e=>{if(this.name!==J.BIRTHDATE)return;const t=e.detail;this.value=t,this.valueAsDate=ke(this.value||"",J.DATE_FORMAT,new Date),this.touched=!0,this.datePicker&&(this.datePicker.value=this.value),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.valueHandler({name:this.name,value:this.value})},this.handleMaskedTyping=e=>{var t;const r=e.target;if(!r)return;const a=(t=r.selectionStart)!==null&&t!==void 0?t:r.value.length,o=r.value,[n,s,l]=this.getFormatStructure(this.dateFormat),{seps:d}=this.parseFormat(this.dateFormat),[c,u]=d,m=n+s+l,p=o.replace(/\D/g,"").slice(0,m),y=p.slice(0,n),M=p.slice(n,n+s),D=p.slice(n+s,n+s+l);let C=y;p.length>n&&(C+=c+M),p.length>n+s&&(C+=u+D),r.value=C;const T=this.totalSeparatorLength(o,[c,u]),H=this.totalSeparatorLength(C,[c,u]);let R=a+Math.max(0,H-T);R=Math.max(0,Math.min(R,C.length));try{r.setSelectionRange(R,R)}catch(Y){}if(p.length<m){this.errorMessage="",this.resetIncompleteState();return}try{const Y=ke(C,this.dateFormat,new Date);if(Y&&!isNaN(Y.getTime())){const ce=Mi(Y,"yyyy-MM-dd");this.value=ce,this.valueAsDate=Y,this.isValid=!0,this.errorMessage="",this.datePicker&&(this.datePicker.value=ce),this.valueHandler({name:this.name,value:this.value})}else this.resetIncompleteState()}catch(Y){this.resetIncompleteState()}},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.dateFormat="yyyy-MM-dd",this.emitOnClick=!1,this.enableSouthAfricanMode=void 0,this.enableManualDateInput=!1,this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}get formattedValue(){if(!this.value)return"";const i=ke(this.value,"yyyy-MM-dd",new Date);return Mi(i,this.dateFormat)}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}handleCustomRegistrationChange(i){i?window.addEventListener("documentIdUpdated",this.handleDocumentIdUpdate):window.removeEventListener("documentIdUpdated",this.handleDocumentIdUpdate)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}connectedCallback(){var i,e;this.minDate=ke(((i=this.validation.min)===null||i===void 0?void 0:i.toString())||"","yyyy-MM-dd",new Date),this.maxDate=ke(((e=this.validation.max)===null||e===void 0?void 0:e.toString())||"","yyyy-MM-dd",new Date)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){var i;if(this.handleClientStyling(),this.datePicker=this.element.shadowRoot.querySelector("vaadin-date-picker"),this.inputReference=this.element.shadowRoot.querySelector("input"),this.datePicker){const e=this.datePicker.shadowRoot.querySelector('[part="toggle-button"]');if(e&&e.addEventListener("click",()=>this.handleCalendarIconClick()),this.datePicker.addEventListener("opened-changed",t=>{t.detail.value===!0?this.errorMessage="":(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0)}),this.enableManualDateInput){const t=(i=this.datePicker)===null||i===void 0?void 0:i.inputElement;t&&t.addEventListener("input",this.handleMaskedTyping)}}this.enableSouthAfricanMode&&window.addEventListener("documentIdUpdated",this.handleDocumentIdUpdate),this.datePicker.i18n=Object.assign(Object.assign({},this.datePicker.i18n),{formatDate:this.formatDate,parseDate:this.parseDate}),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value})),this.isValid=this.setValidity()}disconnectedCallback(){var i;if(this.enableSouthAfricanMode&&window.removeEventListener("documentIdUpdated",this.handleDocumentIdUpdate),this.enableManualDateInput){const e=(i=this.datePicker)===null||i===void 0?void 0:i.inputElement;e&&e.removeEventListener("input",this.handleMaskedTyping)}}handleCalendarIconClick(){this.datePicker.opened&&this.emitOnClick&&window.postMessage({type:`registration${this.name}Clicked`},window.location.href)}handleInput(i){this.value=i.target.value,this.touched=!0,this.valueAsDate=ke(this.value||"","yyyy-MM-dd",new Date),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0),this.enableSouthAfricanMode&&window.dispatchEvent(new CustomEvent("birthDateUpdated",{detail:{birthDate:this.value}}))}handleValidated(){this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()}setValidity(){return Ea(this.valueAsDate,this.minDate)||ka(this.valueAsDate,this.maxDate)||!Sa(this.formattedValue,this.dateFormat)?!1:this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return b("requiredError",this.language);if(this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow)return b("dateError",this.language,{values:{min:this.validation.min,max:this.validation.max}});if(Ea(this.valueAsDate,this.minDate)||ka(this.valueAsDate,this.maxDate))return b("dateError2",this.language);if(!Sa(this.formattedValue,this.dateFormat))return b("dateFormatError",this.language)}renderTooltip(){return this.showTooltip?h.h("div",{class:`date__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}parseFormat(i){var e;const t=i!=null?i:"dd-MM-yyyy",r=/([dMy]+)|([^dMy]+)/g,a=[],o=[];let n;for(;n=r.exec(t);)n[1]?a.push(n[1]):n[2]&&o.push(n[2]);if(o.length<2){const s=(e=o[0])!==null&&e!==void 0?e:"-";for(;o.length<2;)o.push(s)}return{tokens:a,seps:[o[0],o[1]]}}getFormatStructure(i){const{tokens:e}=this.parseFormat(i);if(e.length<3)return[2,2,4];const t=e.map(r=>r.length);return[t[0],t[1],t[2]]}totalSeparatorLength(i,e){if(!i)return 0;let t=0;for(const r of e){if(!r)continue;const a=new RegExp(this.escapeRegExp(r),"g"),o=i.match(a);o&&(t+=o.length*r.length)}return t}escapeRegExp(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}resetIncompleteState(){this.value="",this.valueAsDate=void 0,this.isValid=!1}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"ffff8be16fb22a41ea8c5168a79e40b9f410c63b",class:`date__wrapper ${this.autofilled?"date__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},h.h("label",{key:"60da1ad0bc4cc7757e6f1096866667a97bd146b5",class:`date__label ${this.validation.mandatory?"date__label--required":""}}`,htmlFor:`${this.name}__input`},this.displayName,h.h("span",{key:"450b4638efa34f4490035b0d99b0b186f053a2d0",class:this.validation.mandatory?"date__label--required":""})),h.h("vaadin-date-picker",{key:"421875a710bb4508e3218d28bf2c28dcd0e9793b",id:`${this.name}__input`,type:"date",class:`date__input ${i} ${this.enableManualDateInput&&"date__manual-mode"}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onChange:e=>this.handleInput(e),onValidated:()=>this.handleValidated(),autoOpenDisabled:this.enableManualDateInput}),h.h("small",{key:"33a6fed8057a84cb648f94a318c3ec0b1e495fff",class:"date__error-message"},this.errorMessage),this.tooltip&&h.h("img",{key:"d91fcd13e1ae384b67b6d478834b65136ab77b77",class:"date__tooltip-icon",src:he,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}get element(){return h.getElement(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"],enableSouthAfricanMode:["handleCustomRegistrationChange"]}}};Wo.style=hh;const ch='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.email{font-family:"Roboto";font-style:normal}.email__wrapper{position:relative;width:100%}.email__wrapper--autofilled{pointer-events:none}.email__wrapper--autofilled .email__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.email__wrapper--autofilled .email__input{color:var(--emw--color-black, #000000)}.email__wrapper--flex{display:flex;gap:5px}.email__wrapper--relative{position:relative}.email__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.email__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.email__input{font-family:inherit;border-radius:4px;width:100%;height:40px;border:2px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);border-radius:5px;box-sizing:border-box;font-size:16px;font-weight:300;line-height:1.5;padding:10px}.email__input:focus{outline-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.email__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.email__input::placeholder{color:var(--emw--color-gray-150, #828282)}.email__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.email__tooltip-icon{width:16px;height:auto}.email__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.email__tooltip.visible{opacity:1}',uh=ch,Yo=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=e=>{this.value=e.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}valueChangedHandler(i){this.isDuplicateInput&&this.name===i.detail.name+"Duplicate"&&(this.duplicateInputValue=i.detail.value)}connectedCallback(){this.validationPattern=this.setPattern()}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e,t,r;if(this.inputReference.validity.valueMissing)return b("requiredError",this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return b("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.patternMismatch){const a=(i=this.validation.custom.find(n=>n.rule==="regex"))===null||i===void 0?void 0:i.errorKey,o=(e=this.validation.custom.find(n=>n.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return b(`${a}`,this.language)?b(`${a}`,this.language):o}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const a=(t=this.validation.custom.find(n=>n.rule==="duplicate-input"))===null||t===void 0?void 0:t.errorKey,o=(r=this.validation.custom.find(n=>n.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorMessage;return b(`${a}`,this.language)?b(`${a}`,this.language):o}}renderTooltip(){return this.showTooltip?h.h("div",{class:`email__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"f852525fe8d8b695e638fdd83e8b0c2c20d98771",class:`email__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},h.h("div",{key:"d6a6dec4e76ba1fbe15bed09f82cecde12cabe1a",class:"email__wrapper--flex"},h.h("label",{key:"4498ae1bac287cb80544c4d743afad2ec678e3bd",class:`email__label ${this.validation.mandatory?"email__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"e54d1258e48f54304a553cffb83466e4a4fadb4c",class:"email__wrapper--relative"},this.tooltip&&h.h("img",{key:"29d7b95f22c8cb70d505f74a7ea18284faa908ee",class:"email__tooltip-icon",src:he,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("input",{key:"08754b178e395f26c1d8a61ff667b91df3fb0ec7",id:`${this.name}__input`,type:"email",class:`email__input ${i}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,ref:e=>this.inputReference=e,pattern:this.validationPattern,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),h.h("small",{key:"3024a57f5d0897f34013eb4397d78babc2333192",class:"email__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Yo.style=uh;function ph(i,e,t,r=!1){if(window.emMessageBus){const a=r?o=>{!o||typeof o!="object"||Array.isArray(o)||Object.keys(o).forEach(n=>t(n,o[n]))}:t;e=window.emMessageBus.subscribe(i,a)}return e}var mh=Object.defineProperty,fh=Object.defineProperties,vh=Object.getOwnPropertyDescriptors,Ia=Object.getOwnPropertySymbols,_h=Object.prototype.hasOwnProperty,gh=Object.prototype.propertyIsEnumerable,Ji=(i,e,t)=>e in i?mh(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ai=(i,e)=>{for(var t in e||(e={}))_h.call(e,t)&&Ji(i,t,e[t]);if(Ia)for(var t of Ia(e))gh.call(e,t)&&Ji(i,t,e[t]);return i},Go=(i,e)=>fh(i,vh(e)),Z=(i,e,t)=>Ji(i,typeof e!="symbol"?e+"":e,t),oi=(i,e,t)=>new Promise((r,a)=>{var o=l=>{try{s(t.next(l))}catch(d){a(d)}},n=l=>{try{s(t.throw(l))}catch(d){a(d)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,n);s((t=t.apply(i,e)).next())});/**
1
+ "use strict";var _a=(i,e,t)=>new Promise((r,a)=>{var o=l=>{try{s(t.next(l))}catch(d){a(d)}},n=l=>{try{s(t.throw(l))}catch(d){a(d)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,n);s((t=t.apply(i,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../lazy/pam-change-password--OMp7Uh-.cjs"),w=require("./pam-change-password-173e4b25-BYoWGogG.cjs"),Ks="en",qe={en:{dateError:"The selected date should be between {min} and {max}",dateError2:"The selected date is not within the accepted range",dateFormatError:"The selected date has a different format then the one required.",numberLengthError:"The number should be between {min} and {max}",lengthError:"The length should be between {minLength} and {maxLength}",fixedLengthError:"The length should be {length} characters",requiredError:"This input is required.",invalidOriginalPasswordError:"Initial password field does not validate all criteria.",invalidPassword:"Password does not meet all criteria",passwordStrength:"Password strength",passwordStrengthWeak:"is not adequate",passwordStrengthStrong:"is adequate",SpecialCharactersNotAllowed:"Should not contain special characters",InvalidEmailFormat:"Invalid email format.",EmailNotMatching:"Emails not matching!",PasswordNotMatching:"Passwords not matching",MustIncludeNumber:"Password must include a number",MustContainCapital:"Password must include a capital letter",MustIncludePunctation:"Password must include punctuation",MustIncludeLowercase:"Password must include one lowercase character",OnlyNumbers:"The input should contain only digits.",InvalidFieldSize:"The length must be exactly 11 digits.",InvalidDocumentNumber:"Only numerical characters are allowed.",twofaDescription:"<p> We have sent the verification code to <p> {destination}. </p> </p> <p> Please insert the PIN below. </p>",twofaResendMessage:"Didn't receive the verification code?",twofaResendButton:"Resend",enterIEAddressManually:"For IRE, enter the address manually",postalLookUpNoAddressFound:"No addresses found for this postal code",searchingForAddresses:"Searching for addresses...",SAIdLengthError:"SA ID must be 13 digits",SAIdInvalidError:"Invalid SA ID",PassportLengthError:"Passport number must be 8 or 9 digits.",PasswordMustContain:"Password must contain:",AlphanumericalOnly:"Only alphanumerical characters are allowed",InvalidFirstName:"Only alphabetic characters are allowed.",InvalidLastName:"Only alphabetic characters are allowed.",MissingTrunkCode:"Phone number must start with 0"},hu:{dateError:"A választott dátumnak {min} és {max} között kell lennie",dateError2:"A kiválasztott dátum nincs az elfogadott tartományon belül",dateFormatError:"A kiválasztott dátum formátuma eltér a szükségestől.",numberLengthError:"A számnak {min} és {max} között kell lennie",lengthError:"A hossznak {minLength} és {maxLength} között kell lennie",fixedLengthError:"A hossznak {length} karakternek kell lennie",requiredError:"Ez a beviteli mező kötelező.",invalidOriginalPasswordError:"Initial password field does not validate all criteria.",invalidPassword:"A jelszó nem felel meg minden kritériumnak",passwordStrength:"Jelszó erőssége",passwordStrengthWeak:"nem megfelelő",passwordStrengthStrong:"megfelelő",SpecialCharactersNotAllowed:"Nem tartalmazhat speciális karaktereket",InvalidEmailFormat:"Érvénytelen e-mail formátum.",EmailNotMatching:"Az e-mailek nem egyeznek!",PasswordNotMatching:"A jelszavak nem egyeznek",MustIncludeNumber:"A jelszónak tartalmaznia kell egy számot",MustContainCapital:"A jelszónak tartalmaznia kell egy nagybetűt",MustIncludePunctation:"A jelszónak tartalmaznia kell írásjelet",MustIncludeLowercase:"A jelszónak legalább egy kisbetűt kell tartalmaznia",OnlyNumbers:"Csak számjegyeket tartalmazhat.",InvalidFieldSize:"A hosszúságnak pontosan 11 számjegynek kell lennie.",InvalidDocumentNumber:"Csak számjegyek engedélyezettek.",twofaDescription:"<p> A megerősítő kódot elküldtük a következő címre: <p> {destination}. </p> </p> <p> Kérjük, írja be az alábbi PIN-kódot. </p>",twofaResendMessage:"Nem kapta meg a megerősítő kódot?",twofaResendButton:"Újraküldés",PassportLengthError:"Az útlevélszámnak 9 számjegyűnek kell lennie",SAIdLengthError:"A dél-afrikai személyi számnak 13 számjegyűnek kell lennie",SAIdInvalidError:"Érvénytelen dél-afrikai személyi szám",PasswordMustContain:"A jelszónak tartalmaznia kell:",AlphanumericalOnly:"Csak alfanumerikus karakterek engedélyezettek",InvalidFirstName:"Csak betűk engedélyezettek.",InvalidLastName:"Csak betűk engedélyezettek.",MissingTrunkCode:"A telefonszámnak 0-val kell kezdődnie"},hr:{dateError:"Odabrani datum treba biti između {min} i {max}",dateError2:"Odabrani datum nije unutar prihvaćenog raspona",dateFormatError:"Odabrani datum je u drugačijem formatu od potrebnog.",numberLengthError:"Broj bi trebao biti između {min} i {max}",lengthError:"Duljina bi trebala biti između {minLength} i {maxLength}",fixedLengthError:"Duljina mora biti {length} znakova",requiredError:"Ovaj unos je obavezan.",invalidOriginalPasswordError:"Lozinke se ne podudaraju",invalidPassword:"Lozinka ne zadovoljava sve kriterije",passwordStrength:"Lozinka",passwordStrengthWeak:"nije dovoljno jaka",passwordStrengthStrong:"je dovoljno jaka",SpecialCharactersNotAllowed:"Ne smije sadržavati posebne znakove",InvalidEmailFormat:"Nevažeći format e-maila",EmailNotMatching:"E-mailovi se ne podudaraju!",PasswordNotMatching:"Lozinke se ne podudaraju",MustIncludeNumber:"Lozinka mora sadržavati broj",MustContainCapital:"Lozinka mora sadržavati veliko slovo",MustIncludePunctation:"Lozinka mora sadržavati barem jedan znak",MustIncludeLowercase:"Lozinka mora sadržavati barem jedno malo slovo",OnlyNumbers:"Smije sadržavati samo znamenke.",InvalidFieldSize:"Dužina mora biti točno 11 znamenki.",InvalidDocumentNumber:"Dopušteni su samo numerički znakovi.",twofaDescription:"<p> Poslali smo verifikacijski kod na: <p> {destination}. </p> </p> <p> Molimo unesite PIN ispod. </p>",twofaResendMessage:"Niste primili verifikacijski kod?",twofaResendButton:"Ponovno pošalji",PassportLengthError:"Broj putovnice mora imati 9 znamenki",SAIdLengthError:"Južnoafrički osobni broj mora imati 13 znamenki",SAIdInvalidError:"Nevažeći južnoafrički osobni broj",PasswordMustContain:"Lozinka mora sadržavati:",AlphanumericalOnly:"Dopušteni su samo alfanumerički znakovi",InvalidFirstName:"Dozvoljena su samo slova.",InvalidLastName:"Dozvoljena su samo slova.",MissingTrunkCode:"Telefonski broj mora počinjati s 0"},tr:{dateError:"Seçilen tarih {min} ve {max} arasında olmalıdır",dateError2:"Seçilen tarih kabul edilen aralıkta değil",dateFormatError:"Seçilen tarihin formatı, gereken formattan farklı.",numberLengthError:"Sayı {min} ve {max} arasında olmalıdır",lengthError:"Uzunluk {minLength} ve {maxLength} arasında olmalıdır",fixedLengthError:"Uzunluk {length} karakter olmalıdır",requiredError:"Bu alan zorunludur.",invalidOriginalPasswordError:"İlk şifre alanı tüm kriterleri karşılamıyor.",invalidPassword:"Şifre tüm kriterleri karşılamıyor",passwordStrength:"Şifre gücü",passwordStrengthWeak:"yetersiz",passwordStrengthStrong:"yeterli",SpecialCharactersNotAllowed:"Özel karakter içermemelidir",InvalidEmailFormat:"Geçersiz e-posta formatı.",EmailNotMatching:"E-postalar uyuşmuyor!",PasswordNotMatching:"Şifreler uyuşmuyor",MustIncludeNumber:"bir sayı içermelidir",MustContainCapital:"büyük harf içermelidir",MustIncludePunctation:"noktalama işareti içermelidir",MustIncludeLowercase:"Şifre en az bir küçük harf içermelidir",OnlyNumbers:"Yalnızca rakamlar içermelidir.",InvalidFieldSize:"Uzunluk tam olarak 11 rakam olmalıdır.",InvalidDocumentNumber:"Sadece sayısal karakterlere izin verilir.",twofaDescription:"<p> Doğrulama kodunu şu adrese gönderdik: <p> {destination}. </p> </p> <p> Lütfen aşağıya PIN kodunu girin. </p>",twofaResendMessage:"Doğrulama kodunu almadınız mı?",twofaResendButton:"Yeniden gönder",PassportLengthError:"Pasaport numarası 9 haneli olmalıdır",SAIdLengthError:"Güney Afrika kimlik numarası 13 haneli olmalıdır",SAIdInvalidError:"Geçersiz Güney Afrika kimlik numarası",PasswordMustContain:"Şifre şunları içermelidir:",AlphanumericalOnly:"Yalnızca alfanümerik karakterlere izin verilir",InvalidFirstName:"Yalnızca alfabetik karakterlere izin verilir.",InvalidLastName:"Yalnızca alfabetik karakterlere izin verilir.",MissingTrunkCode:"Telefon numarası 0 ile başlamalıdır"},"pt-br":{dateError:"A data selecionada deve estar entre {min} e {max}",dateError2:"A data selecionada não está dentro de um intervalo válido",dateFormatError:"A data selecionada está em um formato diferente do exigido.",numberLengthError:"O número deve estar entre {min} e {max}",lengthError:"O comprimento deve estar entre {minLength} e {maxLength}",fixedLengthError:"O comprimento deve ser de {length} caracteres",requiredError:"Este campo é obrigatório",invalidOriginalPasswordError:"O campo de senha inicial não faz parte dos critérios válidos",invalidPassword:"A senha não atende a todos os critérios",PasswordStrength:"Força da senha",PasswordStrengthWeak:"Não é adequado",PasswordStrengthStrong:"é apropriado",SpecialCharactersNotAllowed:"Não deve conter caracteres especiais",InvalidEmailFormat:"Formato de email inválido",EmailNotMatching:"E-mail não corresponde",PasswordNotMatching:"Senha não corresponde",MustIncludeNumber:"A senha deve incluir um número",MustContainCapital:"A senha deve incluir uma letra maiúscula",MustIncludePunctation:"A senha deve incluir um sinal de pontuação",MustIncludeLowercase:"A senha deve conter pelo menos uma letra minúscula",OnlyNumbers:"Deve conter apenas dígitos.",InvalidFieldSize:"O comprimento deve ser exatamente 11 dígitos.",InvalidDocumentNumber:"Apenas caracteres numéricos são permitidos.",twofaDescription:"<p> Enviamos o código de verificação para: <p> {destination}. </p> </p> <p> Por favor, insira o PIN abaixo. </p>",twofaResendMessage:"Não recebeu o código de verificação?",twofaResendButton:"Reenviar",PassportLengthError:"O número do passaporte deve ter 9 dígitos",SAIdLengthError:"O número de identificação da África do Sul deve ter 13 dígitos",SAIdInvalidError:"Número de identificação da África do Sul inválido",PasswordMustContain:"A senha deve conter:",AlphanumericalOnly:"Apenas caracteres alfanuméricos são permitidos",InvalidFirstName:"Apenas caracteres alfabéticos são permitidos.",InvalidLastName:"Apenas caracteres alfabéticos são permitidos.",MissingTrunkCode:"O número de telefone deve começar com 0"},pt:{dateError:"A data selecionada deve estar entre {min} e {max}",dateError2:"A data selecionada não está dentro do intervalo aceite",dateFormatError:"A data selecionada tem um formato diferente do exigido.",numberLengthError:"O número deve estar entre {min} e {max}",lengthError:"O comprimento deve estar entre {minLength} e {maxLength}",fixedLengthError:"O comprimento deve ser de {length} caracteres",requiredError:"Este campo é obrigatório.",invalidOriginalPasswordError:"O campo da palavra-passe inicial não cumpre todos os critérios.",invalidPassword:"A palavra-passe não cumpre todos os critérios",passwordStrength:"Força da palavra-passe",passwordStrengthWeak:"não é adequada",passwordStrengthStrong:"é adequada",SpecialCharactersNotAllowed:"Não deve conter caracteres especiais",InvalidEmailFormat:"Formato de email inválido.",EmailNotMatching:"Os emails não coincidem!",PasswordNotMatching:"As palavras-passe não coincidem",MustIncludeNumber:"A palavra-passe deve incluir um número",MustContainCapital:"A palavra-passe deve incluir uma letra maiúscula",MustIncludePunctation:"A palavra-passe deve incluir pontuação",MustIncludeLowercase:"A palavra-passe deve incluir um caractere minúsculo",OnlyNumbers:"O campo deve conter apenas dígitos.",InvalidFieldSize:"O comprimento deve ser exatamente 11 dígitos.",InvalidDocumentNumber:"Apenas caracteres numéricos são permitidos.",twofaDescription:"<p> Enviámos o código de verificação para <p> {destination}. </p> </p> <p> Por favor, introduza o PIN abaixo. </p>",twofaResendMessage:"Não recebeu o código de verificação?",twofaResendButton:"Reenviar",enterIEAddressManually:"Para IRE, introduza o endereço manualmente",postalLookUpNoAddressFound:"Não foram encontrados endereços para este código postal",searchingForAddresses:"A procurar endereços...",SAIdLengthError:"O ID da África do Sul deve ter 13 dígitos",SAIdInvalidError:"ID da África do Sul inválido",PassportLengthError:"O número de passaporte deve ter 8 ou 9 dígitos.",PasswordMustContain:"A palavra-passe deve conter:",AlphanumericalOnly:"Apenas caracteres alfanuméricos são permitidos",InvalidFirstName:"Apenas caracteres alfabéticos são permitidos.",InvalidLastName:"Apenas caracteres alfabéticos são permitidos.",MissingTrunkCode:"O número de telefone deve começar por 0"},"es-mx":{dateError:"La fecha seleccionada debe ser entre {min} y {max}",dateError2:"La fecha seleccionada no está dentro de un rango válido",dateFormatError:"La fecha seleccionada tiene un formato diferente al requerido.",numberLengthError:"El número debe ser entre {min} y {max}",lengthError:"La longitud deber ser entre {minLength} y {maxLength}",fixedLengthError:"La longitud debe ser de {length} caracteres",requiredError:"Este campo es requerido",invalidOriginalPasswordError:"El campo de contraseña inicial no es parte del criterio válido",invalidPassword:"La contraseña no cumple con todos los criterios",PasswordStrength:"La fortaleza de la contraseña",PasswordStrengthWeak:"no es adecuada",PasswordStrengthStrong:"es adecuada",SpecialCharactersNotAllowed:"No debe contener caracteres especiales",InvalidEmailFormat:"Formato inválido de correo",EmailNotMatching:"El correo electrónico no coincide",PasswordNotMatching:"La contraseña no coincide",MustIncludeNumber:"La contraseña debe incluir un número",MustContainCapital:"La contraseña debe incluir una letra mayúscula",MustIncludePunctation:"La contraseña debe incluir un signo de puntuación",MustIncludeLowercase:"La contraseña debe contener al menos una letra minúscula",OnlyNumbers:"Debe contener solo dígitos.",InvalidFieldSize:"La longitud debe ser exactamente de 11 dígitos.",InvalidDocumentNumber:"Solo se permiten caracteres numéricos.",twofaDescription:"<p> Hemos enviado el código de verificación a: <p> {destination}. </p> </p> <p> Por favor, ingrese el PIN a continuación. </p>",twofaResendMessage:"¿No recibiste el código de verificación?",twofaResendButton:"Reenviar",PassportLengthError:"El número de pasaporte debe tener 9 dígitos",SAIdLengthError:"El número de identificación de Sudáfrica debe tener 13 dígitos",SAIdInvalidError:"Número de identificación de Sudáfrica inválido",PasswordMustContain:"La contraseña debe contener:",AlphanumericalOnly:"Solo se permiten caracteres alfanuméricos",InvalidFirstName:"Solo se permiten caracteres alfabéticos.",InvalidLastName:"Solo se permiten caracteres alfabéticos.",MissingTrunkCode:"El número de teléfono debe comenzar con 0"},fr:{dateError:"La date sélectionnée doit être comprise entre {min} et {max}",dateError2:"La date sélectionnée n’est pas dans la plage autorisée",dateFormatError:"Le format de la date sélectionnée est incorrect.",numberLengthError:"Le nombre doit être compris entre {min} et {max}",lengthError:"La longueur doit être comprise entre {minLength} et {maxLength}",fixedLengthError:"La longueur doit être de {length} caractères",requiredError:"Ce champ est obligatoire.",invalidOriginalPasswordError:"Le mot de passe initial ne respecte pas tous les critères.",invalidPassword:"Le mot de passe ne respecte pas tous les critères",passwordStrength:"Robustesse du mot de passe",passwordStrengthWeak:"est insuffisante",passwordStrengthStrong:"est suffisante",SpecialCharactersNotAllowed:"Ne doit pas contenir de caractères spéciaux",InvalidEmailFormat:"Format d’adresse e-mail invalide.",EmailNotMatching:"Les adresses e-mail ne correspondent pas !",PasswordNotMatching:"Les mots de passe ne correspondent pas",MustIncludeNumber:"Le mot de passe doit contenir un chiffre",MustContainCapital:"Le mot de passe doit contenir une lettre majuscule",MustIncludePunctation:"Le mot de passe doit contenir un caractère de ponctuation",MustIncludeLowercase:"Le mot de passe doit contenir une lettre minuscule",OnlyNumbers:"Ce champ ne doit contenir que des chiffres.",InvalidFieldSize:"La longueur doit être exactement de 11 chiffres.",InvalidDocumentNumber:"Seuls les caractères numériques sont autorisés.",twofaDescription:"<p>Nous avons envoyé le code de vérification à <p>{destination}</p>.</p><p>Veuillez saisir le code PIN ci-dessous.</p>",twofaResendMessage:"Vous n’avez pas reçu le code de vérification ?",twofaResendButton:"Renvoyer",enterIEAddressManually:"Pour l’Irlande, saisissez l’adresse manuellement",postalLookUpNoAddressFound:"Aucune adresse trouvée pour ce code postal",searchingForAddresses:"Recherche d’adresses...",SAIdLengthError:"L’identifiant sud-africain doit comporter 13 chiffres",SAIdInvalidError:"Identifiant sud-africain invalide",PassportLengthError:"Le numéro de passeport doit comporter 8 ou 9 chiffres.",PasswordMustContain:"Le mot de passe doit contenir :",AlphanumericalOnly:"Seuls les caractères alphanumériques sont autorisés",InvalidFirstName:"Seuls les caractères alphabétiques sont autorisés.",InvalidLastName:"Seuls les caractères alphabétiques sont autorisés.",MissingTrunkCode:"Le numéro de téléphone doit commencer par 0"}},J={DOCUMENT_NUMBER:"DocumentNumber",FIRSTNAME_ON_DOCUMENT:"FirstnameOnDocument",LASTNAME_ON_DOCUMENT:"LastnameOnDocument",PASSPORT:"Passport",SOUTH_AFRICAN_ID:"SouthAfricanID",BIRTHDATE:"BirthDate",PASSPORT_NUMERIC_REGEX:/^\d{8,9}$/,SA_ID_BASIC_REGEX:/^\d{13}$/,SOUTH_AFRICAN_ID_LENGTH:13,NON_LETTERS_REGEX:/[^A-Za-z]/g,DATE_FORMAT:"yyyy-MM-dd",PASSWORD_COMPLEXITY_PASSED:"passed",PASSWORD_COMPLEXITY_FAILED:"failed"},de={PASSPORT_INVALID:"PassportLengthError",SA_ID_LENGTH:"SAIdLengthError",SA_ID_INVALID:"SAIdInvalidError",REQUIRED:"requiredError",LENGTH:"lengthError",FIXED_LENGTH:"fixedLengthError"},ga={PASSED:"✓",FAILED:"✕"},b=(i,e,t)=>{const r=e;let a=qe[r]?qe[r][i]:qe[Ks][i];if(t!==void 0)for(const[o,n]of Object.entries(t.values)){const s=new RegExp(`{${o}}`,"g");a=a.replace(s,n)}return a},Io=i=>{Object.keys(i).forEach(e=>{qe[e]=qe[e]||{},Object.keys(i[e]).forEach(t=>{typeof i[e][t]=="string"&&(qe[e][t]=i[e][t])})})},Xs=i=>new Promise(e=>{fetch(i).then(t=>t.json()).then(t=>{Io(t),e(!0)})}),Qs=i=>{if(!J.SA_ID_BASIC_REGEX.test(i))return!1;const e=i.split("").map(l=>parseInt(l,10));let t=0;for(let l=0;l<12;l+=2)t+=e[l];let r="";for(let l=1;l<12;l+=2)r+=e[l];const o=(parseInt(r,10)*2).toString().split("").reduce((l,d)=>l+parseInt(d,10),0);return(10-(t+o)%10)%10===e[12]},he="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iNiIgY3k9IjYiIHI9IjUuNSIgc3Ryb2tlPSIjOTc5Nzk3Ii8+CjxyZWN0IHg9IjUiIHk9IjUiIHdpZHRoPSIyIiBoZWlnaHQ9IjUiIGZpbGw9IiM5Nzk3OTciLz4KPGNpcmNsZSBjeD0iNiIgY3k9IjMiIHI9IjEiIGZpbGw9IiM5Nzk3OTciLz4KPC9zdmc+Cg==",Js='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}vaadin-checkbox-group{margin-top:5px;margin-left:40px}.checkboxgroup{font-family:"Roboto";font-style:normal;font-size:15px}.checkboxgroup__wrapper{position:relative}.checkboxgroup__wrapper--flex{display:flex;gap:5px;align-content:flex-start}.checkboxgroup__wrapper--relative{position:relative;display:inline}.checkboxgroup__input{vertical-align:baseline}.checkboxgroup__input[indeterminate]::part(checkbox)::after,.checkboxgroup__input[indeterminate]::part(checkbox),.checkboxgroup__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkboxgroup__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;padding-left:10px;vertical-align:baseline}.checkboxgroup__label-text{font-size:16px}.checkboxgroup__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkboxgroup__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.checkboxgroup__tooltip-icon{width:16px;height:auto}.checkboxgroup__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.checkboxgroup__tooltip.visible{opacity:1}.checkbox__input::part(checkbox){background-color:var(--emw--color-white, #FFFFFF);transform:scale(0.8, 0.8);border-radius:var(--emw--border-radius-small, 2px);box-shadow:0 0px 0px 2px var(--emw--color-gray, #7a7a7a)}.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));box-shadow:none}',Zs=Js,To=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.value=null,this.name=void 0,this.displayName=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.options=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1,this.selectedValues=[],this.showCheckboxes=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}setValue(){this.value=this.options.reduce((i,e)=>(i[e.name]=this.selectedValues.includes(e.name),i),{}),this.emitValueHandler(!0)}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.inputReference=this.element.shadowRoot.querySelector("input"),this.isValid=this.setValidity(),this.defaultValue&&(this.showCheckboxes=!0,this.selectedValues=this.options.map(i=>i.name),this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return b("requiredError",this.language)}renderTooltip(){return this.showTooltip?h.h("div",{class:`checkboxgroup__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}handleParentCheckbox(i){const e=i.target.checked;this.showCheckboxes=e,this.selectedValues=e?this.options.map(t=>t.name):[]}renderLabel(){return h.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},h.h("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}render(){return h.h("div",{key:"342900ae923094f2746fd43917743d01efba942e",class:`checkboxgroup__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},h.h("div",{key:"8f3b470274047b355741b438a4e15c7c46504f5a",class:"checkboxgroup__wrapper--flex"},h.h("vaadin-checkbox",{key:"c7a74f9da877304f4d71607d58eba90dd0a29de7",class:"checkbox__input",checked:this.selectedValues.length===this.options.length||this.defaultValue==="true",indeterminate:this.selectedValues.length>0&&this.selectedValues.length<this.options.length,onChange:i=>this.handleParentCheckbox(i)},this.renderLabel()),this.tooltip&&h.h("img",{key:"75d807ad544e043a2e3beed46bf0c7dfa2125324",class:"checkboxgroup__tooltip-icon",src:he,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),h.h("small",{key:"4b17e1e613c7561fb3c99f334926544ef2ba787a",class:"checkboxgroup__error-message"},this.errorMessage),this.showCheckboxes&&h.h("vaadin-checkbox-group",{key:"9a8d573a7cb48bb2d68cceec5f39f1e0886ea05f",theme:"vertical",value:this.selectedValues,"on-value-changed":i=>{this.selectedValues=i.detail.value}},this.options.map(i=>h.h("vaadin-checkbox",{class:"checkbox__input",name:i.name,value:i.name,label:i.displayName}))))}get element(){return h.getElement(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}}};To.style=Zs;const el='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.checkbox{font-family:"Roboto";font-style:normal;font-size:15px}.checkbox__wrapper{display:flex;gap:10px;position:relative;align-items:baseline}.checkbox__wrapper--relative{position:relative}.checkbox__input[indeterminate]::part(checkbox)::after,.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;padding:0px;vertical-align:baseline}.checkbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.checkbox__tooltip-icon{width:16px;height:auto}.checkbox__tooltip{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.checkbox__tooltip.visible{opacity:1}.checkbox__input::part(checkbox){background-color:var(--emw--color-white, #FFFFFF);transform:scale(0.8, 0.8);border-radius:var(--emw--border-radius-small, 2px);box-shadow:0 0px 0px 2px var(--emw--color-gray, #7a7a7a)}.checkbox__input::part(required-indicator)::after{display:none}.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));box-shadow:none}.checkbox__label-text.mandatory::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}',tl=el,Po=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.value="",this.name=void 0,this.displayName=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.inputReference=this.vaadinCheckbox.querySelector("input"),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}handleCheckbox(i){this.value=i.target.checked.toString(),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return b("requiredError",this.language)}renderLabel(){var i;return h.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},h.h("div",{class:{"checkbox__label-text":!0,mandatory:(i=this.validation)===null||i===void 0?void 0:i.mandatory},innerHTML:this.displayName}))}renderTooltip(){return this.showTooltip?h.h("div",{class:`checkbox__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return h.h("div",{key:"a8d8bf6aa2001b6aee44d728a198244819ae169e",class:`checkbox__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},h.h("vaadin-checkbox",{key:"13a5589a78bef4277922535e59c5718d36b1f318",class:"checkbox__input",required:this.validation.mandatory,checked:this.defaultValue==="true",onChange:i=>this.handleCheckbox(i),"error-message":!this.isValid&&this.errorMessage,ref:i=>this.vaadinCheckbox=i},this.renderLabel()),this.tooltip&&h.h("img",{key:"008bb9a318c914b4b40e80b15080f7f174cc1262",class:"checkboxgroup__tooltip-icon",src:he,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Po.style=tl;function we(i){"@babel/helpers - typeof";return we=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},we(i)}function $(i,e){if(e.length<i)throw new TypeError(i+" argument"+(i>1?"s":"")+" required, but only "+e.length+" present")}function il(i){return $(1,arguments),i instanceof Date||we(i)==="object"&&Object.prototype.toString.call(i)==="[object Date]"}function W(i){$(1,arguments);var e=Object.prototype.toString.call(i);return i instanceof Date||we(i)==="object"&&e==="[object Date]"?new Date(i.getTime()):typeof i=="number"||e==="[object Number]"?new Date(i):((typeof i=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Ao(i){if($(1,arguments),!il(i)&&typeof i!="number")return!1;var e=W(i);return!isNaN(Number(e))}function ie(i){if(i===null||i===!0||i===!1)return NaN;var e=Number(i);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function rl(i,e){$(2,arguments);var t=W(i).getTime(),r=ie(e);return new Date(t+r)}function Do(i,e){$(2,arguments);var t=ie(e);return rl(i,-t)}var al=864e5;function ol(i){$(1,arguments);var e=W(i),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),a=t-r;return Math.floor(a/al)+1}function Xe(i){$(1,arguments);var e=1,t=W(i),r=t.getUTCDay(),a=(r<e?7:0)+r-e;return t.setUTCDate(t.getUTCDate()-a),t.setUTCHours(0,0,0,0),t}function Oo(i){$(1,arguments);var e=W(i),t=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var a=Xe(r),o=new Date(0);o.setUTCFullYear(t,0,4),o.setUTCHours(0,0,0,0);var n=Xe(o);return e.getTime()>=a.getTime()?t+1:e.getTime()>=n.getTime()?t:t-1}function nl(i){$(1,arguments);var e=Oo(i),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=Xe(t);return r}var sl=6048e5;function Vo(i){$(1,arguments);var e=W(i),t=Xe(e).getTime()-nl(e).getTime();return Math.round(t/sl)+1}var ll={};function tt(){return ll}function Ne(i,e){var t,r,a,o,n,s,l,d;$(1,arguments);var c=tt(),u=ie((t=(r=(a=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=W(i),p=m.getUTCDay(),y=(p<u?7:0)+p-u;return m.setUTCDate(m.getUTCDate()-y),m.setUTCHours(0,0,0,0),m}function Cr(i,e){var t,r,a,o,n,s,l,d;$(1,arguments);var c=W(i),u=c.getUTCFullYear(),m=tt(),p=ie((t=(r=(a=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:m.firstWeekContainsDate)!==null&&r!==void 0?r:(l=m.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(u+1,0,p),y.setUTCHours(0,0,0,0);var M=Ne(y,e),D=new Date(0);D.setUTCFullYear(u,0,p),D.setUTCHours(0,0,0,0);var C=Ne(D,e);return c.getTime()>=M.getTime()?u+1:c.getTime()>=C.getTime()?u:u-1}function dl(i,e){var t,r,a,o,n,s,l,d;$(1,arguments);var c=tt(),u=ie((t=(r=(a=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),m=Cr(i,e),p=new Date(0);p.setUTCFullYear(m,0,u),p.setUTCHours(0,0,0,0);var y=Ne(p,e);return y}var hl=6048e5;function Mo(i,e){$(1,arguments);var t=W(i),r=Ne(t,e).getTime()-dl(t,e).getTime();return Math.round(r/hl)+1}function N(i,e){for(var t=i<0?"-":"",r=Math.abs(i).toString();r.length<e;)r="0"+r;return t+r}var cl={y:function(e,t){var r=e.getUTCFullYear(),a=r>0?r:1-r;return N(t==="yy"?a%100:a,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):N(r+1,2)},d:function(e,t){return N(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return N(e.getUTCHours()%12||12,t.length)},H:function(e,t){return N(e.getUTCHours(),t.length)},m:function(e,t){return N(e.getUTCMinutes(),t.length)},s:function(e,t){return N(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,a=e.getUTCMilliseconds(),o=Math.floor(a*Math.pow(10,r-3));return N(o,t.length)}};const Ce=cl;var Be={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ul={G:function(e,t,r){var a=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});case"GGGG":default:return r.era(a,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var a=e.getUTCFullYear(),o=a>0?a:1-a;return r.ordinalNumber(o,{unit:"year"})}return Ce.y(e,t)},Y:function(e,t,r,a){var o=Cr(e,a),n=o>0?o:1-o;if(t==="YY"){var s=n%100;return N(s,2)}return t==="Yo"?r.ordinalNumber(n,{unit:"year"}):N(n,t.length)},R:function(e,t){var r=Oo(e);return N(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return N(r,t.length)},Q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return N(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return N(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,r){var a=e.getUTCMonth();switch(t){case"M":case"MM":return Ce.M(e,t);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,r){var a=e.getUTCMonth();switch(t){case"L":return String(a+1);case"LL":return N(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,r,a){var o=Mo(e,a);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):N(o,t.length)},I:function(e,t,r){var a=Vo(e);return t==="Io"?r.ordinalNumber(a,{unit:"week"}):N(a,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):Ce.d(e,t)},D:function(e,t,r){var a=ol(e);return t==="Do"?r.ordinalNumber(a,{unit:"dayOfYear"}):N(a,t.length)},E:function(e,t,r){var a=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});case"EEEE":default:return r.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,r,a){var o=e.getUTCDay(),n=(o-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(n);case"ee":return N(n,2);case"eo":return r.ordinalNumber(n,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,a){var o=e.getUTCDay(),n=(o-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(n);case"cc":return N(n,t.length);case"co":return r.ordinalNumber(n,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){var a=e.getUTCDay(),o=a===0?7:a;switch(t){case"i":return String(o);case"ii":return N(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});case"iiii":default:return r.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,r){var a=e.getUTCHours(),o=a/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){var a=e.getUTCHours(),o;switch(a===12?o=Be.noon:a===0?o=Be.midnight:o=a/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){var a=e.getUTCHours(),o;switch(a>=17?o=Be.evening:a>=12?o=Be.afternoon:a>=4?o=Be.morning:o=Be.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var a=e.getUTCHours()%12;return a===0&&(a=12),r.ordinalNumber(a,{unit:"hour"})}return Ce.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Ce.H(e,t)},K:function(e,t,r){var a=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(a,{unit:"hour"}):N(a,t.length)},k:function(e,t,r){var a=e.getUTCHours();return a===0&&(a=24),t==="ko"?r.ordinalNumber(a,{unit:"hour"}):N(a,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Ce.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Ce.s(e,t)},S:function(e,t){return Ce.S(e,t)},X:function(e,t,r,a){var o=a._originalDate||e,n=o.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return ya(n);case"XXXX":case"XX":return De(n);case"XXXXX":case"XXX":default:return De(n,":")}},x:function(e,t,r,a){var o=a._originalDate||e,n=o.getTimezoneOffset();switch(t){case"x":return ya(n);case"xxxx":case"xx":return De(n);case"xxxxx":case"xxx":default:return De(n,":")}},O:function(e,t,r,a){var o=a._originalDate||e,n=o.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ba(n,":");case"OOOO":default:return"GMT"+De(n,":")}},z:function(e,t,r,a){var o=a._originalDate||e,n=o.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ba(n,":");case"zzzz":default:return"GMT"+De(n,":")}},t:function(e,t,r,a){var o=a._originalDate||e,n=Math.floor(o.getTime()/1e3);return N(n,t.length)},T:function(e,t,r,a){var o=a._originalDate||e,n=o.getTime();return N(n,t.length)}};function ba(i,e){var t=i>0?"-":"+",r=Math.abs(i),a=Math.floor(r/60),o=r%60;if(o===0)return t+String(a);var n=e;return t+String(a)+n+N(o,2)}function ya(i,e){if(i%60===0){var t=i>0?"-":"+";return t+N(Math.abs(i)/60,2)}return De(i,e)}function De(i,e){var t=e||"",r=i>0?"-":"+",a=Math.abs(i),o=N(Math.floor(a/60),2),n=N(a%60,2);return r+o+t+n}const pl=ul;var wa=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},No=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},ml=function(e,t){var r=e.match(/(P+)(p+)?/)||[],a=r[1],o=r[2];if(!o)return wa(e,t);var n;switch(a){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"});break}return n.replace("{{date}}",wa(a,t)).replace("{{time}}",No(o,t))},fl={p:No,P:ml};const Xi=fl;function Lo(i){var e=new Date(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()));return e.setUTCFullYear(i.getFullYear()),i.getTime()-e.getTime()}var vl=["D","DD"],_l=["YY","YYYY"];function zo(i){return vl.indexOf(i)!==-1}function Ro(i){return _l.indexOf(i)!==-1}function ti(i,e,t){if(i==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var gl={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},bl=function(e,t,r){var a,o=gl[e];return typeof o=="string"?a=o:t===1?a=o.one:a=o.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a};const yl=bl;function Vi(i){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):i.defaultWidth,r=i.formats[t]||i.formats[i.defaultWidth];return r}}var wl={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},xl={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Cl={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},kl={date:Vi({formats:wl,defaultWidth:"full"}),time:Vi({formats:xl,defaultWidth:"full"}),dateTime:Vi({formats:Cl,defaultWidth:"full"})};const El=kl;var Sl={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Il=function(e,t,r,a){return Sl[e]};const Tl=Il;function dt(i){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",a;if(r==="formatting"&&i.formattingValues){var o=i.defaultFormattingWidth||i.defaultWidth,n=t!=null&&t.width?String(t.width):o;a=i.formattingValues[n]||i.formattingValues[o]}else{var s=i.defaultWidth,l=t!=null&&t.width?String(t.width):i.defaultWidth;a=i.values[l]||i.values[s]}var d=i.argumentCallback?i.argumentCallback(e):e;return a[d]}}var Pl={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Al={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Dl={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ol={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Vl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ml={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Nl=function(e,t){var r=Number(e),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Ll={ordinalNumber:Nl,era:dt({values:Pl,defaultWidth:"wide"}),quarter:dt({values:Al,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:dt({values:Dl,defaultWidth:"wide"}),day:dt({values:Ol,defaultWidth:"wide"}),dayPeriod:dt({values:Vl,defaultWidth:"wide",formattingValues:Ml,defaultFormattingWidth:"wide"})};const zl=Ll;function ht(i){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,a=r&&i.matchPatterns[r]||i.matchPatterns[i.defaultMatchWidth],o=e.match(a);if(!o)return null;var n=o[0],s=r&&i.parsePatterns[r]||i.parsePatterns[i.defaultParseWidth],l=Array.isArray(s)?Fl(s,function(u){return u.test(n)}):Rl(s,function(u){return u.test(n)}),d;d=i.valueCallback?i.valueCallback(l):l,d=t.valueCallback?t.valueCallback(d):d;var c=e.slice(n.length);return{value:d,rest:c}}}function Rl(i,e){for(var t in i)if(i.hasOwnProperty(t)&&e(i[t]))return t}function Fl(i,e){for(var t=0;t<i.length;t++)if(e(i[t]))return t}function $l(i){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(i.matchPattern);if(!r)return null;var a=r[0],o=e.match(i.parsePattern);if(!o)return null;var n=i.valueCallback?i.valueCallback(o[0]):o[0];n=t.valueCallback?t.valueCallback(n):n;var s=e.slice(a.length);return{value:n,rest:s}}}var Bl=/^(\d+)(th|st|nd|rd)?/i,Hl=/\d+/i,Ul={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ql={any:[/^b/i,/^(a|c)/i]},jl={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Wl={any:[/1/i,/2/i,/3/i,/4/i]},Yl={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Gl={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Kl={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Xl={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Ql={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Jl={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Zl={ordinalNumber:$l({matchPattern:Bl,parsePattern:Hl,valueCallback:function(e){return parseInt(e,10)}}),era:ht({matchPatterns:Ul,defaultMatchWidth:"wide",parsePatterns:ql,defaultParseWidth:"any"}),quarter:ht({matchPatterns:jl,defaultMatchWidth:"wide",parsePatterns:Wl,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ht({matchPatterns:Yl,defaultMatchWidth:"wide",parsePatterns:Gl,defaultParseWidth:"any"}),day:ht({matchPatterns:Kl,defaultMatchWidth:"wide",parsePatterns:Xl,defaultParseWidth:"any"}),dayPeriod:ht({matchPatterns:Ql,defaultMatchWidth:"any",parsePatterns:Jl,defaultParseWidth:"any"})};const ed=Zl;var td={code:"en-US",formatDistance:yl,formatLong:El,formatRelative:Tl,localize:zl,match:ed,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Fo=td;var id=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,rd=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ad=/^'([^]*?)'?$/,od=/''/g,nd=/[a-zA-Z]/;function Mi(i,e,t){var r,a,o,n,s,l,d,c,u,m,p,y,M,D;$(2,arguments);var C=String(e),T=tt(),H=(r=(a=void 0)!==null&&a!==void 0?a:T.locale)!==null&&r!==void 0?r:Fo,R=ie((o=(n=(s=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&s!==void 0?s:T.firstWeekContainsDate)!==null&&n!==void 0?n:(d=T.locale)===null||d===void 0||(c=d.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(R>=1&&R<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Y=ie((u=(m=(p=(y=void 0)!==null&&y!==void 0?y:void 0)!==null&&p!==void 0?p:T.weekStartsOn)!==null&&m!==void 0?m:(M=T.locale)===null||M===void 0||(D=M.options)===null||D===void 0?void 0:D.weekStartsOn)!==null&&u!==void 0?u:0);if(!(Y>=0&&Y<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!H.localize)throw new RangeError("locale must contain localize property");if(!H.formatLong)throw new RangeError("locale must contain formatLong property");var ce=W(i);if(!Ao(ce))throw new RangeError("Invalid time value");var ot=Lo(ce),nt=Do(ce,ot),st={firstWeekContainsDate:R,weekStartsOn:Y,locale:H,_originalDate:ce},Ai=C.match(rd).map(function(X){var re=X[0];if(re==="p"||re==="P"){var Pe=Xi[re];return Pe(X,H.formatLong)}return X}).join("").match(id).map(function(X){if(X==="''")return"'";var re=X[0];if(re==="'")return sd(X);var Pe=pl[re];if(Pe)return Ro(X)&&ti(X,e,String(i)),zo(X)&&ti(X,e,String(i)),Pe(nt,X,H.localize,st);if(re.match(nd))throw new RangeError("Format string contains an unescaped latin alphabet character `"+re+"`");return X}).join("");return Ai}function sd(i){var e=i.match(ad);return e?e[1].replace(od,"'"):i}function xa(i,e){(e==null||e>i.length)&&(e=i.length);for(var t=0,r=Array(e);t<e;t++)r[t]=i[t];return r}function ld(i,e){if(i){if(typeof i=="string")return xa(i,e);var t={}.toString.call(i).slice(8,-1);return t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set"?Array.from(i):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?xa(i,e):void 0}}function Ca(i,e){var t=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!t){if(Array.isArray(i)||(t=ld(i))||e){t&&(i=t);var r=0,a=function(){};return{s:a,n:function(){return r>=i.length?{done:!0}:{done:!1,value:i[r++]}},e:function(d){throw d},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,n=!0,s=!1;return{s:function(){t=t.call(i)},n:function(){var d=t.next();return n=d.done,d},e:function(d){s=!0,o=d},f:function(){try{n||t.return==null||t.return()}finally{if(s)throw o}}}}function dd(i,e){if(i==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t]);return i}function _(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function Qi(i,e){return Qi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},Qi(i,e)}function P(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),e&&Qi(i,e)}function ii(i){return ii=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ii(i)}function $o(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return($o=function(){return!!i})()}function hd(i,e){if(e&&(we(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _(i)}function A(i){var e=$o();return function(){var t,r=ii(i);if(e){var a=ii(this).constructor;t=Reflect.construct(r,arguments,a)}else t=r.apply(this,arguments);return hd(this,t)}}function k(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function cd(i,e){if(we(i)!="object"||!i)return i;var t;if(typeof Symbol!="undefined"&&(t=i[Symbol.toPrimitive])!==void 0){var r=t.call(i,e);if(we(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function Bo(i){var e=cd(i,"string");return we(e)=="symbol"?e:e+""}function ud(i,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(i,Bo(r.key),r)}}function E(i,e,t){return e&&ud(i.prototype,e),Object.defineProperty(i,"prototype",{writable:!1}),i}function v(i,e,t){return(e=Bo(e))in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}var pd=10,Ho=function(){function i(){k(this,i),v(this,"priority",void 0),v(this,"subPriority",0)}return E(i,[{key:"validate",value:function(t,r){return!0}}]),i}(),md=function(i){P(t,i);var e=A(t);function t(r,a,o,n,s){var l;return k(this,t),l=e.call(this),l.value=r,l.validateValue=a,l.setValue=o,l.priority=n,s&&(l.subPriority=s),l}return E(t,[{key:"validate",value:function(a,o){return this.validateValue(a,this.value,o)}},{key:"set",value:function(a,o,n){return this.setValue(a,o,this.value,n)}}]),t}(Ho),fd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",pd),v(_(r),"subPriority",-1),r}return E(t,[{key:"set",value:function(a,o){if(o.timestampIsSet)return a;var n=new Date(0);return n.setFullYear(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),n.setHours(a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds()),n}}]),t}(Ho),V=function(){function i(){k(this,i),v(this,"incompatibleTokens",void 0),v(this,"priority",void 0),v(this,"subPriority",void 0)}return E(i,[{key:"run",value:function(t,r,a,o){var n=this.parse(t,r,a,o);return n?{setter:new md(n.value,this.validate,this.set,this.priority,this.subPriority),rest:n.rest}:null}},{key:"validate",value:function(t,r,a){return!0}}]),i}(),vd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",140),v(_(r),"incompatibleTokens",["R","u","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"})||n.era(a,{width:"narrow"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})||n.era(a,{width:"abbreviated"})||n.era(a,{width:"narrow"})}}},{key:"set",value:function(a,o,n){return o.era=n,a.setUTCFullYear(n,0,1),a.setUTCHours(0,0,0,0),a}}]),t}(V),_d=6e4,gd=36e5,bd=1e3,U={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},me={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function q(i,e){return i&&{value:e(i.value),rest:i.rest}}function F(i,e){var t=e.match(i);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function fe(i,e){var t=e.match(i);if(!t)return null;if(t[0]==="Z")return{value:0,rest:e.slice(1)};var r=t[1]==="+"?1:-1,a=t[2]?parseInt(t[2],10):0,o=t[3]?parseInt(t[3],10):0,n=t[5]?parseInt(t[5],10):0;return{value:r*(a*gd+o*_d+n*bd),rest:e.slice(t[0].length)}}function Uo(i){return F(U.anyDigitsSigned,i)}function B(i,e){switch(i){case 1:return F(U.singleDigit,e);case 2:return F(U.twoDigits,e);case 3:return F(U.threeDigits,e);case 4:return F(U.fourDigits,e);default:return F(new RegExp("^\\d{1,"+i+"}"),e)}}function ri(i,e){switch(i){case 1:return F(U.singleDigitSigned,e);case 2:return F(U.twoDigitsSigned,e);case 3:return F(U.threeDigitsSigned,e);case 4:return F(U.fourDigitsSigned,e);default:return F(new RegExp("^-?\\d{1,"+i+"}"),e)}}function kr(i){switch(i){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function qo(i,e){var t=e>0,r=t?e:1-e,a;if(r<=50)a=i||100;else{var o=r+50,n=Math.floor(o/100)*100,s=i>=o%100;a=i+n-(s?100:0)}return t?a:1-a}function jo(i){return i%400===0||i%4===0&&i%100!==0}var yd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",130),v(_(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){var s=function(d){return{year:d,isTwoDigitYear:o==="yy"}};switch(o){case"y":return q(B(4,a),s);case"yo":return q(n.ordinalNumber(a,{unit:"year"}),s);default:return q(B(o.length,a),s)}}},{key:"validate",value:function(a,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(a,o,n){var s=a.getUTCFullYear();if(n.isTwoDigitYear){var l=qo(n.year,s);return a.setUTCFullYear(l,0,1),a.setUTCHours(0,0,0,0),a}var d=!("era"in o)||o.era===1?n.year:1-n.year;return a.setUTCFullYear(d,0,1),a.setUTCHours(0,0,0,0),a}}]),t}(V),wd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",130),v(_(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){var s=function(d){return{year:d,isTwoDigitYear:o==="YY"}};switch(o){case"Y":return q(B(4,a),s);case"Yo":return q(n.ordinalNumber(a,{unit:"year"}),s);default:return q(B(o.length,a),s)}}},{key:"validate",value:function(a,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(a,o,n,s){var l=Cr(a,s);if(n.isTwoDigitYear){var d=qo(n.year,l);return a.setUTCFullYear(d,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Ne(a,s)}var c=!("era"in o)||o.era===1?n.year:1-n.year;return a.setUTCFullYear(c,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Ne(a,s)}}]),t}(V),xd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",130),v(_(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o){return ri(o==="R"?4:o.length,a)}},{key:"set",value:function(a,o,n){var s=new Date(0);return s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0),Xe(s)}}]),t}(V),Cd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",130),v(_(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o){return ri(o==="u"?4:o.length,a)}},{key:"set",value:function(a,o,n){return a.setUTCFullYear(n,0,1),a.setUTCHours(0,0,0,0),a}}]),t}(V),kd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",120),v(_(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"Q":case"QQ":return B(o.length,a);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"})||n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})||n.quarter(a,{width:"abbreviated",context:"formatting"})||n.quarter(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,o){return o>=1&&o<=4}},{key:"set",value:function(a,o,n){return a.setUTCMonth((n-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(V),Ed=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",120),v(_(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"q":case"qq":return B(o.length,a);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"})||n.quarter(a,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})||n.quarter(a,{width:"abbreviated",context:"standalone"})||n.quarter(a,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(a,o){return o>=1&&o<=4}},{key:"set",value:function(a,o,n){return a.setUTCMonth((n-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(V),Sd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),v(_(r),"priority",110),r}return E(t,[{key:"parse",value:function(a,o,n){var s=function(d){return d-1};switch(o){case"M":return q(F(U.month,a),s);case"MM":return q(B(2,a),s);case"Mo":return q(n.ordinalNumber(a,{unit:"month"}),s);case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"})||n.month(a,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})||n.month(a,{width:"abbreviated",context:"formatting"})||n.month(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,o){return o>=0&&o<=11}},{key:"set",value:function(a,o,n){return a.setUTCMonth(n,1),a.setUTCHours(0,0,0,0),a}}]),t}(V),Id=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",110),v(_(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){var s=function(d){return d-1};switch(o){case"L":return q(F(U.month,a),s);case"LL":return q(B(2,a),s);case"Lo":return q(n.ordinalNumber(a,{unit:"month"}),s);case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"})||n.month(a,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})||n.month(a,{width:"abbreviated",context:"standalone"})||n.month(a,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(a,o){return o>=0&&o<=11}},{key:"set",value:function(a,o,n){return a.setUTCMonth(n,1),a.setUTCHours(0,0,0,0),a}}]),t}(V);function Td(i,e,t){$(2,arguments);var r=W(i),a=ie(e),o=Mo(r,t)-a;return r.setUTCDate(r.getUTCDate()-o*7),r}var Pd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",100),v(_(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"w":return F(U.week,a);case"wo":return n.ordinalNumber(a,{unit:"week"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=1&&o<=53}},{key:"set",value:function(a,o,n,s){return Ne(Td(a,n,s),s)}}]),t}(V);function Ad(i,e){$(2,arguments);var t=W(i),r=ie(e),a=Vo(t)-r;return t.setUTCDate(t.getUTCDate()-a*7),t}var Dd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",100),v(_(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"I":return F(U.week,a);case"Io":return n.ordinalNumber(a,{unit:"week"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=1&&o<=53}},{key:"set",value:function(a,o,n){return Xe(Ad(a,n))}}]),t}(V),Od=[31,28,31,30,31,30,31,31,30,31,30,31],Vd=[31,29,31,30,31,30,31,31,30,31,30,31],Md=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",90),v(_(r),"subPriority",1),v(_(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"d":return F(U.date,a);case"do":return n.ordinalNumber(a,{unit:"date"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){var n=a.getUTCFullYear(),s=jo(n),l=a.getUTCMonth();return s?o>=1&&o<=Vd[l]:o>=1&&o<=Od[l]}},{key:"set",value:function(a,o,n){return a.setUTCDate(n),a.setUTCHours(0,0,0,0),a}}]),t}(V),Nd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",90),v(_(r),"subpriority",1),v(_(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"D":case"DD":return F(U.dayOfYear,a);case"Do":return n.ordinalNumber(a,{unit:"date"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){var n=a.getUTCFullYear(),s=jo(n);return s?o>=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(a,o,n){return a.setUTCMonth(0,n),a.setUTCHours(0,0,0,0),a}}]),t}(V);function Er(i,e,t){var r,a,o,n,s,l,d,c;$(2,arguments);var u=tt(),m=ie((r=(a=(o=(n=t==null?void 0:t.weekStartsOn)!==null&&n!==void 0?n:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:u.weekStartsOn)!==null&&a!==void 0?a:(d=u.locale)===null||d===void 0||(c=d.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=W(i),y=ie(e),M=p.getUTCDay(),D=y%7,C=(D+7)%7,T=(C<m?7:0)+y-M;return p.setUTCDate(p.getUTCDate()+T),p}var Ld=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",90),v(_(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})||n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,o){return o>=0&&o<=6}},{key:"set",value:function(a,o,n,s){return a=Er(a,n,s),a.setUTCHours(0,0,0,0),a}}]),t}(V),zd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",90),v(_(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n,s){var l=function(c){var u=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+u};switch(o){case"e":case"ee":return q(B(o.length,a),l);case"eo":return q(n.ordinalNumber(a,{unit:"day"}),l);case"eee":return n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})||n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,o){return o>=0&&o<=6}},{key:"set",value:function(a,o,n,s){return a=Er(a,n,s),a.setUTCHours(0,0,0,0),a}}]),t}(V),Rd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",90),v(_(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n,s){var l=function(c){var u=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+u};switch(o){case"c":case"cc":return q(B(o.length,a),l);case"co":return q(n.ordinalNumber(a,{unit:"day"}),l);case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"})||n.day(a,{width:"short",context:"standalone"})||n.day(a,{width:"narrow",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"})||n.day(a,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})||n.day(a,{width:"abbreviated",context:"standalone"})||n.day(a,{width:"short",context:"standalone"})||n.day(a,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(a,o){return o>=0&&o<=6}},{key:"set",value:function(a,o,n,s){return a=Er(a,n,s),a.setUTCHours(0,0,0,0),a}}]),t}(V);function Fd(i,e){$(2,arguments);var t=ie(e);t%7===0&&(t=t-7);var r=1,a=W(i),o=a.getUTCDay(),n=t%7,s=(n+7)%7,l=(s<r?7:0)+t-o;return a.setUTCDate(a.getUTCDate()+l),a}var $d=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",90),v(_(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){var s=function(d){return d===0?7:d};switch(o){case"i":case"ii":return B(o.length,a);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return q(n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"}),s);case"iiiii":return q(n.day(a,{width:"narrow",context:"formatting"}),s);case"iiiiii":return q(n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"}),s);case"iiii":default:return q(n.day(a,{width:"wide",context:"formatting"})||n.day(a,{width:"abbreviated",context:"formatting"})||n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(a,o){return o>=1&&o<=7}},{key:"set",value:function(a,o,n){return a=Fd(a,n),a.setUTCHours(0,0,0,0),a}}]),t}(V),Bd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",80),v(_(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"a":case"aa":case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})||n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(a,o,n){return a.setUTCHours(kr(n),0,0,0),a}}]),t}(V),Hd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",80),v(_(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"b":case"bb":case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})||n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(a,o,n){return a.setUTCHours(kr(n),0,0,0),a}}]),t}(V),Ud=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",80),v(_(r),"incompatibleTokens",["a","b","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})||n.dayPeriod(a,{width:"abbreviated",context:"formatting"})||n.dayPeriod(a,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(a,o,n){return a.setUTCHours(kr(n),0,0,0),a}}]),t}(V),qd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",70),v(_(r),"incompatibleTokens",["H","K","k","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"h":return F(U.hour12h,a);case"ho":return n.ordinalNumber(a,{unit:"hour"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=1&&o<=12}},{key:"set",value:function(a,o,n){var s=a.getUTCHours()>=12;return s&&n<12?a.setUTCHours(n+12,0,0,0):!s&&n===12?a.setUTCHours(0,0,0,0):a.setUTCHours(n,0,0,0),a}}]),t}(V),jd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",70),v(_(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"H":return F(U.hour23h,a);case"Ho":return n.ordinalNumber(a,{unit:"hour"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=0&&o<=23}},{key:"set",value:function(a,o,n){return a.setUTCHours(n,0,0,0),a}}]),t}(V),Wd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",70),v(_(r),"incompatibleTokens",["h","H","k","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"K":return F(U.hour11h,a);case"Ko":return n.ordinalNumber(a,{unit:"hour"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=0&&o<=11}},{key:"set",value:function(a,o,n){var s=a.getUTCHours()>=12;return s&&n<12?a.setUTCHours(n+12,0,0,0):a.setUTCHours(n,0,0,0),a}}]),t}(V),Yd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",70),v(_(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"k":return F(U.hour24h,a);case"ko":return n.ordinalNumber(a,{unit:"hour"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=1&&o<=24}},{key:"set",value:function(a,o,n){var s=n<=24?n%24:n;return a.setUTCHours(s,0,0,0),a}}]),t}(V),Gd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",60),v(_(r),"incompatibleTokens",["t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"m":return F(U.minute,a);case"mo":return n.ordinalNumber(a,{unit:"minute"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=0&&o<=59}},{key:"set",value:function(a,o,n){return a.setUTCMinutes(n,0,0),a}}]),t}(V),Kd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",50),v(_(r),"incompatibleTokens",["t","T"]),r}return E(t,[{key:"parse",value:function(a,o,n){switch(o){case"s":return F(U.second,a);case"so":return n.ordinalNumber(a,{unit:"second"});default:return B(o.length,a)}}},{key:"validate",value:function(a,o){return o>=0&&o<=59}},{key:"set",value:function(a,o,n){return a.setUTCSeconds(n,0),a}}]),t}(V),Xd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",30),v(_(r),"incompatibleTokens",["t","T"]),r}return E(t,[{key:"parse",value:function(a,o){var n=function(l){return Math.floor(l*Math.pow(10,-o.length+3))};return q(B(o.length,a),n)}},{key:"set",value:function(a,o,n){return a.setUTCMilliseconds(n),a}}]),t}(V),Qd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",10),v(_(r),"incompatibleTokens",["t","T","x"]),r}return E(t,[{key:"parse",value:function(a,o){switch(o){case"X":return fe(me.basicOptionalMinutes,a);case"XX":return fe(me.basic,a);case"XXXX":return fe(me.basicOptionalSeconds,a);case"XXXXX":return fe(me.extendedOptionalSeconds,a);case"XXX":default:return fe(me.extended,a)}}},{key:"set",value:function(a,o,n){return o.timestampIsSet?a:new Date(a.getTime()-n)}}]),t}(V),Jd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",10),v(_(r),"incompatibleTokens",["t","T","X"]),r}return E(t,[{key:"parse",value:function(a,o){switch(o){case"x":return fe(me.basicOptionalMinutes,a);case"xx":return fe(me.basic,a);case"xxxx":return fe(me.basicOptionalSeconds,a);case"xxxxx":return fe(me.extendedOptionalSeconds,a);case"xxx":default:return fe(me.extended,a)}}},{key:"set",value:function(a,o,n){return o.timestampIsSet?a:new Date(a.getTime()-n)}}]),t}(V),Zd=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",40),v(_(r),"incompatibleTokens","*"),r}return E(t,[{key:"parse",value:function(a){return Uo(a)}},{key:"set",value:function(a,o,n){return[new Date(n*1e3),{timestampIsSet:!0}]}}]),t}(V),eh=function(i){P(t,i);var e=A(t);function t(){var r;k(this,t);for(var a=arguments.length,o=new Array(a),n=0;n<a;n++)o[n]=arguments[n];return r=e.call.apply(e,[this].concat(o)),v(_(r),"priority",20),v(_(r),"incompatibleTokens","*"),r}return E(t,[{key:"parse",value:function(a){return Uo(a)}},{key:"set",value:function(a,o,n){return[new Date(n),{timestampIsSet:!0}]}}]),t}(V),th={G:new vd,y:new yd,Y:new wd,R:new xd,u:new Cd,Q:new kd,q:new Ed,M:new Sd,L:new Id,w:new Pd,I:new Dd,d:new Md,D:new Nd,E:new Ld,e:new zd,c:new Rd,i:new $d,a:new Bd,b:new Hd,B:new Ud,h:new qd,H:new jd,K:new Wd,k:new Yd,m:new Gd,s:new Kd,S:new Xd,X:new Qd,x:new Jd,t:new Zd,T:new eh},ih=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,rh=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ah=/^'([^]*?)'?$/,oh=/''/g,nh=/\S/,sh=/[a-zA-Z]/;function ke(i,e,t,r){var a,o,n,s,l,d,c,u,m,p,y,M,D,C;$(3,arguments);var T=String(i),H=String(e),R=tt(),Y=(a=(o=void 0)!==null&&o!==void 0?o:R.locale)!==null&&a!==void 0?a:Fo;if(!Y.match)throw new RangeError("locale must contain match property");var ce=ie((n=(s=(l=(d=void 0)!==null&&d!==void 0?d:void 0)!==null&&l!==void 0?l:R.firstWeekContainsDate)!==null&&s!==void 0?s:(c=R.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(ce>=1&&ce<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ot=ie((m=(p=(y=(M=void 0)!==null&&M!==void 0?M:void 0)!==null&&y!==void 0?y:R.weekStartsOn)!==null&&p!==void 0?p:(D=R.locale)===null||D===void 0||(C=D.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&m!==void 0?m:0);if(!(ot>=0&&ot<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(H==="")return T===""?W(t):new Date(NaN);var nt={firstWeekContainsDate:ce,weekStartsOn:ot,locale:Y},st=[new fd],Ai=H.match(rh).map(function(G){var z=G[0];if(z in Xi){var le=Xi[z];return le(G,Y.formatLong)}return G}).join("").match(ih),X=[],re=Ca(Ai),Pe;try{var Ys=function(){var z=Pe.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&Ro(z)&&ti(z,H,i),!(r!=null&&r.useAdditionalDayOfYearTokens)&&zo(z)&&ti(z,H,i);var le=z[0],Ut=th[le];if(Ut){var ma=Ut.incompatibleTokens;if(Array.isArray(ma)){var fa=X.find(function(va){return ma.includes(va.token)||va.token===le});if(fa)throw new RangeError("The format string mustn't contain `".concat(fa.fullToken,"` and `").concat(z,"` at the same time"))}else if(Ut.incompatibleTokens==="*"&&X.length>0)throw new RangeError("The format string mustn't contain `".concat(z,"` and any other token at the same time"));X.push({token:le,fullToken:z});var Oi=Ut.run(T,z,Y.match,nt);if(!Oi)return{v:new Date(NaN)};st.push(Oi.setter),T=Oi.rest}else{if(le.match(sh))throw new RangeError("Format string contains an unescaped latin alphabet character `"+le+"`");if(z==="''"?z="'":le==="'"&&(z=lh(z)),T.indexOf(z)===0)T=T.slice(z.length);else return{v:new Date(NaN)}}};for(re.s();!(Pe=re.n()).done;){var ha=Ys();if(we(ha)==="object")return ha.v}}catch(G){re.e(G)}finally{re.f()}if(T.length>0&&nh.test(T))return new Date(NaN);var Gs=st.map(function(G){return G.priority}).sort(function(G,z){return z-G}).filter(function(G,z,le){return le.indexOf(G)===z}).map(function(G){return st.filter(function(z){return z.priority===G}).sort(function(z,le){return le.subPriority-z.subPriority})}).map(function(G){return G[0]}),Di=W(t);if(isNaN(Di.getTime()))return new Date(NaN);var lt=Do(Di,Lo(Di)),ca={},Bt=Ca(Gs),ua;try{for(Bt.s();!(ua=Bt.n()).done;){var pa=ua.value;if(!pa.validate(lt,nt))return new Date(NaN);var Ht=pa.set(lt,ca,nt);Array.isArray(Ht)?(lt=Ht[0],dd(ca,Ht[1])):lt=Ht}}catch(G){Bt.e(G)}finally{Bt.f()}return lt}function lh(i){return i.match(ah)[1].replace(oh,"'")}function ka(i,e){$(2,arguments);var t=W(i),r=W(e);return t.getTime()>r.getTime()}function Ea(i,e){$(2,arguments);var t=W(i),r=W(e);return t.getTime()<r.getTime()}function Sa(i,e,t){return $(2,arguments),Ao(ke(i,e,new Date,t))}const dh='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.date{font-family:"Roboto";font-style:normal}.date__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px;height:100%}.date__wrapper--autofilled{pointer-events:none}.date__wrapper--autofilled .date__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__wrapper--autofilled .date__input::part(input-field){color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.date__manual-mode::part(toggle-button){display:none}.date__input{border:none;width:inherit;position:relative}.date__input[focused]::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.date__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.date__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:0;height:44px}.date__input>input{padding:5px 15px}.date__input::part(toggle-button){position:relative;right:10px}.date__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.date__tooltip-icon{position:absolute;right:0;bottom:10px}.date__tooltip{position:absolute;bottom:35px;right:10px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.date__tooltip.visible{opacity:1}',hh=dh,Wo=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.touched=!1,this.formatDate=e=>{const{year:t,month:r,day:a}=e,o=new Date(t,r,a);return Mi(o,this.dateFormat)},this.parseDate=e=>{const t=ke(e,this.dateFormat,new Date);return{year:t.getFullYear(),month:t.getMonth(),day:t.getDate()}},this.handleDocumentIdUpdate=e=>{if(this.name!==J.BIRTHDATE)return;const t=e.detail;this.value=t,this.valueAsDate=ke(this.value||"",J.DATE_FORMAT,new Date),this.touched=!0,this.datePicker&&(this.datePicker.value=this.value),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.valueHandler({name:this.name,value:this.value})},this.handleMaskedTyping=e=>{var t;const r=e.target;if(!r)return;const a=(t=r.selectionStart)!==null&&t!==void 0?t:r.value.length,o=r.value,[n,s,l]=this.getFormatStructure(this.dateFormat),{seps:d}=this.parseFormat(this.dateFormat),[c,u]=d,m=n+s+l,p=o.replace(/\D/g,"").slice(0,m),y=p.slice(0,n),M=p.slice(n,n+s),D=p.slice(n+s,n+s+l);let C=y;p.length>n&&(C+=c+M),p.length>n+s&&(C+=u+D),r.value=C;const T=this.totalSeparatorLength(o,[c,u]),H=this.totalSeparatorLength(C,[c,u]);let R=a+Math.max(0,H-T);R=Math.max(0,Math.min(R,C.length));try{r.setSelectionRange(R,R)}catch(Y){}if(p.length<m){this.errorMessage="",this.resetIncompleteState();return}try{const Y=ke(C,this.dateFormat,new Date);if(Y&&!isNaN(Y.getTime())){const ce=Mi(Y,"yyyy-MM-dd");this.value=ce,this.valueAsDate=Y,this.isValid=!0,this.errorMessage="",this.datePicker&&(this.datePicker.value=ce),this.valueHandler({name:this.name,value:this.value})}else this.resetIncompleteState()}catch(Y){this.resetIncompleteState()}},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.dateFormat="yyyy-MM-dd",this.emitOnClick=!1,this.enableSouthAfricanMode=void 0,this.enableManualDateInput=!1,this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}get formattedValue(){if(!this.value)return"";const i=ke(this.value,"yyyy-MM-dd",new Date);return Mi(i,this.dateFormat)}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}handleCustomRegistrationChange(i){i?window.addEventListener("documentIdUpdated",this.handleDocumentIdUpdate):window.removeEventListener("documentIdUpdated",this.handleDocumentIdUpdate)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}connectedCallback(){var i,e;this.minDate=ke(((i=this.validation.min)===null||i===void 0?void 0:i.toString())||"","yyyy-MM-dd",new Date),this.maxDate=ke(((e=this.validation.max)===null||e===void 0?void 0:e.toString())||"","yyyy-MM-dd",new Date)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){var i;if(this.handleClientStyling(),this.datePicker=this.element.shadowRoot.querySelector("vaadin-date-picker"),this.inputReference=this.element.shadowRoot.querySelector("input"),this.datePicker){const e=this.datePicker.shadowRoot.querySelector('[part="toggle-button"]');if(e&&e.addEventListener("click",()=>this.handleCalendarIconClick()),this.datePicker.addEventListener("opened-changed",t=>{t.detail.value===!0?this.errorMessage="":(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0)}),this.enableManualDateInput){const t=(i=this.datePicker)===null||i===void 0?void 0:i.inputElement;t&&t.addEventListener("input",this.handleMaskedTyping)}}this.enableSouthAfricanMode&&window.addEventListener("documentIdUpdated",this.handleDocumentIdUpdate),this.datePicker.i18n=Object.assign(Object.assign({},this.datePicker.i18n),{formatDate:this.formatDate,parseDate:this.parseDate}),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value})),this.isValid=this.setValidity()}disconnectedCallback(){var i;if(this.enableSouthAfricanMode&&window.removeEventListener("documentIdUpdated",this.handleDocumentIdUpdate),this.enableManualDateInput){const e=(i=this.datePicker)===null||i===void 0?void 0:i.inputElement;e&&e.removeEventListener("input",this.handleMaskedTyping)}}handleCalendarIconClick(){this.datePicker.opened&&this.emitOnClick&&window.postMessage({type:`registration${this.name}Clicked`},window.location.href)}handleInput(i){this.value=i.target.value,this.touched=!0,this.valueAsDate=ke(this.value||"","yyyy-MM-dd",new Date),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0),this.enableSouthAfricanMode&&window.dispatchEvent(new CustomEvent("birthDateUpdated",{detail:{birthDate:this.value}}))}handleValidated(){this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()}setValidity(){return Ea(this.valueAsDate,this.minDate)||ka(this.valueAsDate,this.maxDate)||!Sa(this.formattedValue,this.dateFormat)?!1:this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return b("requiredError",this.language);if(this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow)return b("dateError",this.language,{values:{min:this.validation.min,max:this.validation.max}});if(Ea(this.valueAsDate,this.minDate)||ka(this.valueAsDate,this.maxDate))return b("dateError2",this.language);if(!Sa(this.formattedValue,this.dateFormat))return b("dateFormatError",this.language)}renderTooltip(){return this.showTooltip?h.h("div",{class:`date__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}parseFormat(i){var e;const t=i!=null?i:"dd-MM-yyyy",r=/([dMy]+)|([^dMy]+)/g,a=[],o=[];let n;for(;n=r.exec(t);)n[1]?a.push(n[1]):n[2]&&o.push(n[2]);if(o.length<2){const s=(e=o[0])!==null&&e!==void 0?e:"-";for(;o.length<2;)o.push(s)}return{tokens:a,seps:[o[0],o[1]]}}getFormatStructure(i){const{tokens:e}=this.parseFormat(i);if(e.length<3)return[2,2,4];const t=e.map(r=>r.length);return[t[0],t[1],t[2]]}totalSeparatorLength(i,e){if(!i)return 0;let t=0;for(const r of e){if(!r)continue;const a=new RegExp(this.escapeRegExp(r),"g"),o=i.match(a);o&&(t+=o.length*r.length)}return t}escapeRegExp(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}resetIncompleteState(){this.value="",this.valueAsDate=void 0,this.isValid=!1}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"ffff8be16fb22a41ea8c5168a79e40b9f410c63b",class:`date__wrapper ${this.autofilled?"date__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},h.h("label",{key:"60da1ad0bc4cc7757e6f1096866667a97bd146b5",class:`date__label ${this.validation.mandatory?"date__label--required":""}}`,htmlFor:`${this.name}__input`},this.displayName,h.h("span",{key:"450b4638efa34f4490035b0d99b0b186f053a2d0",class:this.validation.mandatory?"date__label--required":""})),h.h("vaadin-date-picker",{key:"421875a710bb4508e3218d28bf2c28dcd0e9793b",id:`${this.name}__input`,type:"date",class:`date__input ${i} ${this.enableManualDateInput&&"date__manual-mode"}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onChange:e=>this.handleInput(e),onValidated:()=>this.handleValidated(),autoOpenDisabled:this.enableManualDateInput}),h.h("small",{key:"33a6fed8057a84cb648f94a318c3ec0b1e495fff",class:"date__error-message"},this.errorMessage),this.tooltip&&h.h("img",{key:"d91fcd13e1ae384b67b6d478834b65136ab77b77",class:"date__tooltip-icon",src:he,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}get element(){return h.getElement(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"],enableSouthAfricanMode:["handleCustomRegistrationChange"]}}};Wo.style=hh;const ch='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.email{font-family:"Roboto";font-style:normal}.email__wrapper{position:relative;width:100%}.email__wrapper--autofilled{pointer-events:none}.email__wrapper--autofilled .email__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.email__wrapper--autofilled .email__input{color:var(--emw--color-black, #000000)}.email__wrapper--flex{display:flex;gap:5px}.email__wrapper--relative{position:relative}.email__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.email__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.email__input{font-family:inherit;border-radius:4px;width:100%;height:40px;border:2px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);border-radius:5px;box-sizing:border-box;font-size:16px;font-weight:300;line-height:1.5;padding:10px}.email__input:focus{outline-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.email__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.email__input::placeholder{color:var(--emw--color-gray-150, #828282)}.email__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.email__tooltip-icon{width:16px;height:auto}.email__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.email__tooltip.visible{opacity:1}',uh=ch,Yo=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=e=>{this.value=e.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}valueChangedHandler(i){this.isDuplicateInput&&this.name===i.detail.name+"Duplicate"&&(this.duplicateInputValue=i.detail.value)}connectedCallback(){this.validationPattern=this.setPattern()}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e,t,r;if(this.inputReference.validity.valueMissing)return b("requiredError",this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return b("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.patternMismatch){const a=(i=this.validation.custom.find(n=>n.rule==="regex"))===null||i===void 0?void 0:i.errorKey,o=(e=this.validation.custom.find(n=>n.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return b(`${a}`,this.language)?b(`${a}`,this.language):o}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const a=(t=this.validation.custom.find(n=>n.rule==="duplicate-input"))===null||t===void 0?void 0:t.errorKey,o=(r=this.validation.custom.find(n=>n.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorMessage;return b(`${a}`,this.language)?b(`${a}`,this.language):o}}renderTooltip(){return this.showTooltip?h.h("div",{class:`email__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"f852525fe8d8b695e638fdd83e8b0c2c20d98771",class:`email__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},h.h("div",{key:"d6a6dec4e76ba1fbe15bed09f82cecde12cabe1a",class:"email__wrapper--flex"},h.h("label",{key:"4498ae1bac287cb80544c4d743afad2ec678e3bd",class:`email__label ${this.validation.mandatory?"email__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"e54d1258e48f54304a553cffb83466e4a4fadb4c",class:"email__wrapper--relative"},this.tooltip&&h.h("img",{key:"29d7b95f22c8cb70d505f74a7ea18284faa908ee",class:"email__tooltip-icon",src:he,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("input",{key:"08754b178e395f26c1d8a61ff667b91df3fb0ec7",id:`${this.name}__input`,type:"email",class:`email__input ${i}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,ref:e=>this.inputReference=e,pattern:this.validationPattern,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),h.h("small",{key:"3024a57f5d0897f34013eb4397d78babc2333192",class:"email__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Yo.style=uh;function ph(i,e,t,r=!1){if(window.emMessageBus){const a=r?o=>{!o||typeof o!="object"||Array.isArray(o)||Object.keys(o).forEach(n=>t(n,o[n]))}:t;e=window.emMessageBus.subscribe(i,a)}return e}var mh=Object.defineProperty,fh=Object.defineProperties,vh=Object.getOwnPropertyDescriptors,Ia=Object.getOwnPropertySymbols,_h=Object.prototype.hasOwnProperty,gh=Object.prototype.propertyIsEnumerable,Ji=(i,e,t)=>e in i?mh(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ai=(i,e)=>{for(var t in e||(e={}))_h.call(e,t)&&Ji(i,t,e[t]);if(Ia)for(var t of Ia(e))gh.call(e,t)&&Ji(i,t,e[t]);return i},Go=(i,e)=>fh(i,vh(e)),Z=(i,e,t)=>Ji(i,typeof e!="symbol"?e+"":e,t),oi=(i,e,t)=>new Promise((r,a)=>{var o=l=>{try{s(t.next(l))}catch(d){a(d)}},n=l=>{try{s(t.throw(l))}catch(d){a(d)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,n);s((t=t.apply(i,e)).next())});/**
3
3
  * @license
4
4
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
5
5
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -19,9 +19,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
21
21
  * SPDX-License-Identifier: BSD-3-Clause
22
- */const ni=globalThis,Ma=i=>i,si=ni.trustedTypes,Na=si?si.createPolicy("lit-html",{createHTML:i=>i}):void 0,Qo="$lit$",Ee=`lit$${Math.random().toFixed(9).slice(2)}$`,Jo="?"+Ee,Th=`<${Jo}>`,ze=document,wt=()=>ze.createComment(""),xt=i=>i===null||typeof i!="object"&&typeof i!="function",Pr=Array.isArray,Ph=i=>Pr(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Ni=`[
23
- \f\r]`,ct=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,za=/-->/g,La=/>/g,Ae=RegExp(`>|${Ni}(?:([^\\s"'>=/]+)(${Ni}*=${Ni}*(?:[^
24
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ra=/'/g,Fa=/"/g,Zo=/^(?:script|style|textarea|title)$/i,Je=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),$a=new WeakMap,Oe=ze.createTreeWalker(ze,129);function en(i,e){if(!Pr(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Na!==void 0?Na.createHTML(e):e}const Ah=(i,e)=>{const t=i.length-1,r=[];let a,o=e===2?"<svg>":e===3?"<math>":"",n=ct;for(let s=0;s<t;s++){const l=i[s];let d,c,u=-1,m=0;for(;m<l.length&&(n.lastIndex=m,c=n.exec(l),c!==null);)m=n.lastIndex,n===ct?c[1]==="!--"?n=za:c[1]!==void 0?n=La:c[2]!==void 0?(Zo.test(c[2])&&(a=RegExp("</"+c[2],"g")),n=Ae):c[3]!==void 0&&(n=Ae):n===Ae?c[0]===">"?(n=a!=null?a:ct,u=-1):c[1]===void 0?u=-2:(u=n.lastIndex-c[2].length,d=c[1],n=c[3]===void 0?Ae:c[3]==='"'?Fa:Ra):n===Fa||n===Ra?n=Ae:n===za||n===La?n=ct:(n=Ae,a=void 0);const p=n===Ae&&i[s+1].startsWith("/>")?" ":"";o+=n===ct?l+Th:u>=0?(r.push(d),l.slice(0,u)+Qo+l.slice(u)+Ee+p):l+Ee+(u===-2?s:p)}return[en(i,o+(i[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class Ct{constructor({strings:e,_$litType$:t},r){let a;this.parts=[];let o=0,n=0;const s=e.length-1,l=this.parts,[d,c]=Ah(e,t);if(this.el=Ct.createElement(d,r),Oe.currentNode=this.el.content,t===2||t===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(a=Oe.nextNode())!==null&&l.length<s;){if(a.nodeType===1){if(a.hasAttributes())for(const u of a.getAttributeNames())if(u.endsWith(Qo)){const m=c[n++],p=a.getAttribute(u).split(Ee),y=/([.?@])?(.*)/.exec(m);l.push({type:1,index:o,name:y[2],strings:p,ctor:y[1]==="."?Oh:y[1]==="?"?Vh:y[1]==="@"?Mh:_i}),a.removeAttribute(u)}else u.startsWith(Ee)&&(l.push({type:6,index:o}),a.removeAttribute(u));if(Zo.test(a.tagName)){const u=a.textContent.split(Ee),m=u.length-1;if(m>0){a.textContent=si?si.emptyScript:"";for(let p=0;p<m;p++)a.append(u[p],wt()),Oe.nextNode(),l.push({type:2,index:++o});a.append(u[m],wt())}}}else if(a.nodeType===8)if(a.data===Jo)l.push({type:2,index:o});else{let u=-1;for(;(u=a.data.indexOf(Ee,u+1))!==-1;)l.push({type:7,index:o}),u+=Ee.length-1}o++}}static createElement(e,t){const r=ze.createElement("template");return r.innerHTML=e,r}}function Ze(i,e,t=i,r){var a,o,n;if(e===Je)return e;let s=r!==void 0?(a=t._$Co)==null?void 0:a[r]:t._$Cl;const l=xt(e)?void 0:e._$litDirective$;return(s==null?void 0:s.constructor)!==l&&((o=s==null?void 0:s._$AO)==null||o.call(s,!1),l===void 0?s=void 0:(s=new l(i),s._$AT(i,t,r)),r!==void 0?((n=t._$Co)!=null?n:t._$Co=[])[r]=s:t._$Cl=s),s!==void 0&&(e=Ze(i,s._$AS(i,e.values),s,r)),e}class Dh{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:r},parts:a}=this._$AD,o=((t=e==null?void 0:e.creationScope)!=null?t:ze).importNode(r,!0);Oe.currentNode=o;let n=Oe.nextNode(),s=0,l=0,d=a[0];for(;d!==void 0;){if(s===d.index){let c;d.type===2?c=new Vt(n,n.nextSibling,this,e):d.type===1?c=new d.ctor(n,d.name,d.strings,this,e):d.type===6&&(c=new Nh(n,this,e)),this._$AV.push(c),d=a[++l]}s!==(d==null?void 0:d.index)&&(n=Oe.nextNode(),s++)}return Oe.currentNode=ze,o}p(e){let t=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class Vt{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,r,a){var o;this.type=2,this._$AH=K,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=a,this._$Cv=(o=a==null?void 0:a.isConnected)!=null?o:!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Ze(this,e,t),xt(e)?e===K||e==null||e===""?(this._$AH!==K&&this._$AR(),this._$AH=K):e!==this._$AH&&e!==Je&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ph(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==K&&xt(this._$AH)?this._$AA.nextSibling.data=e:this.T(ze.createTextNode(e)),this._$AH=e}$(e){var t;const{values:r,_$litType$:a}=e,o=typeof a=="number"?this._$AC(e):(a.el===void 0&&(a.el=Ct.createElement(en(a.h,a.h[0]),this.options)),a);if(((t=this._$AH)==null?void 0:t._$AD)===o)this._$AH.p(r);else{const n=new Dh(o,this),s=n.u(this.options);n.p(r),this.T(s),this._$AH=n}}_$AC(e){let t=$a.get(e.strings);return t===void 0&&$a.set(e.strings,t=new Ct(e)),t}k(e){Pr(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,a=0;for(const o of e)a===t.length?t.push(r=new Vt(this.O(wt()),this.O(wt()),this,this.options)):r=t[a],r._$AI(o),a++;a<t.length&&(this._$AR(r&&r._$AB.nextSibling,a),t.length=a)}_$AR(e=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);e!==this._$AB;){const a=Ma(e).nextSibling;Ma(e).remove(),e=a}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class _i{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,a,o){this.type=1,this._$AH=K,this._$AN=void 0,this.element=e,this.name=t,this._$AM=a,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=K}_$AI(e,t=this,r,a){const o=this.strings;let n=!1;if(o===void 0)e=Ze(this,e,t,0),n=!xt(e)||e!==this._$AH&&e!==Je,n&&(this._$AH=e);else{const s=e;let l,d;for(e=o[0],l=0;l<o.length-1;l++)d=Ze(this,s[r+l],t,l),d===Je&&(d=this._$AH[l]),n||(n=!xt(d)||d!==this._$AH[l]),d===K?e=K:e!==K&&(e+=(d!=null?d:"")+o[l+1]),this._$AH[l]=d}n&&!a&&this.j(e)}j(e){e===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class Oh extends _i{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===K?void 0:e}}class Vh extends _i{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==K)}}class Mh extends _i{constructor(e,t,r,a,o){super(e,t,r,a,o),this.type=5}_$AI(e,t=this){var r;if((e=(r=Ze(this,e,t,0))!=null?r:K)===Je)return;const a=this._$AH,o=e===K&&a!==K||e.capture!==a.capture||e.once!==a.once||e.passive!==a.passive,n=e!==K&&(a===K||o);o&&this.element.removeEventListener(this.name,this,a),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)==null?void 0:t.host)!=null?r:this.element,e):this._$AH.handleEvent(e)}}class Nh{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Ze(this,e)}}const Ba=ni.litHtmlPolyfillSupport;var Ha;Ba==null||Ba(Ct,Vt),((Ha=ni.litHtmlVersions)!=null?Ha:ni.litHtmlVersions=[]).push("3.3.3");const tn=(i,e,t)=>{var r,a;const o=(r=t==null?void 0:t.renderBefore)!=null?r:e;let n=o._$litPart$;if(n===void 0){const s=(a=t==null?void 0:t.renderBefore)!=null?a:null;o._$litPart$=n=new Vt(e.insertBefore(wt(),s),s,void 0,t!=null?t:{})}return n._$AI(i),n};/**
22
+ */const ni=globalThis,Ma=i=>i,si=ni.trustedTypes,Na=si?si.createPolicy("lit-html",{createHTML:i=>i}):void 0,Qo="$lit$",Ee=`lit$${Math.random().toFixed(9).slice(2)}$`,Jo="?"+Ee,Th=`<${Jo}>`,Le=document,wt=()=>Le.createComment(""),xt=i=>i===null||typeof i!="object"&&typeof i!="function",Pr=Array.isArray,Ph=i=>Pr(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Ni=`[
23
+ \f\r]`,ct=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,La=/-->/g,za=/>/g,Ae=RegExp(`>|${Ni}(?:([^\\s"'>=/]+)(${Ni}*=${Ni}*(?:[^
24
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ra=/'/g,Fa=/"/g,Zo=/^(?:script|style|textarea|title)$/i,Je=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),$a=new WeakMap,Oe=Le.createTreeWalker(Le,129);function en(i,e){if(!Pr(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Na!==void 0?Na.createHTML(e):e}const Ah=(i,e)=>{const t=i.length-1,r=[];let a,o=e===2?"<svg>":e===3?"<math>":"",n=ct;for(let s=0;s<t;s++){const l=i[s];let d,c,u=-1,m=0;for(;m<l.length&&(n.lastIndex=m,c=n.exec(l),c!==null);)m=n.lastIndex,n===ct?c[1]==="!--"?n=La:c[1]!==void 0?n=za:c[2]!==void 0?(Zo.test(c[2])&&(a=RegExp("</"+c[2],"g")),n=Ae):c[3]!==void 0&&(n=Ae):n===Ae?c[0]===">"?(n=a!=null?a:ct,u=-1):c[1]===void 0?u=-2:(u=n.lastIndex-c[2].length,d=c[1],n=c[3]===void 0?Ae:c[3]==='"'?Fa:Ra):n===Fa||n===Ra?n=Ae:n===La||n===za?n=ct:(n=Ae,a=void 0);const p=n===Ae&&i[s+1].startsWith("/>")?" ":"";o+=n===ct?l+Th:u>=0?(r.push(d),l.slice(0,u)+Qo+l.slice(u)+Ee+p):l+Ee+(u===-2?s:p)}return[en(i,o+(i[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class Ct{constructor({strings:e,_$litType$:t},r){let a;this.parts=[];let o=0,n=0;const s=e.length-1,l=this.parts,[d,c]=Ah(e,t);if(this.el=Ct.createElement(d,r),Oe.currentNode=this.el.content,t===2||t===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(a=Oe.nextNode())!==null&&l.length<s;){if(a.nodeType===1){if(a.hasAttributes())for(const u of a.getAttributeNames())if(u.endsWith(Qo)){const m=c[n++],p=a.getAttribute(u).split(Ee),y=/([.?@])?(.*)/.exec(m);l.push({type:1,index:o,name:y[2],strings:p,ctor:y[1]==="."?Oh:y[1]==="?"?Vh:y[1]==="@"?Mh:_i}),a.removeAttribute(u)}else u.startsWith(Ee)&&(l.push({type:6,index:o}),a.removeAttribute(u));if(Zo.test(a.tagName)){const u=a.textContent.split(Ee),m=u.length-1;if(m>0){a.textContent=si?si.emptyScript:"";for(let p=0;p<m;p++)a.append(u[p],wt()),Oe.nextNode(),l.push({type:2,index:++o});a.append(u[m],wt())}}}else if(a.nodeType===8)if(a.data===Jo)l.push({type:2,index:o});else{let u=-1;for(;(u=a.data.indexOf(Ee,u+1))!==-1;)l.push({type:7,index:o}),u+=Ee.length-1}o++}}static createElement(e,t){const r=Le.createElement("template");return r.innerHTML=e,r}}function Ze(i,e,t=i,r){var a,o,n;if(e===Je)return e;let s=r!==void 0?(a=t._$Co)==null?void 0:a[r]:t._$Cl;const l=xt(e)?void 0:e._$litDirective$;return(s==null?void 0:s.constructor)!==l&&((o=s==null?void 0:s._$AO)==null||o.call(s,!1),l===void 0?s=void 0:(s=new l(i),s._$AT(i,t,r)),r!==void 0?((n=t._$Co)!=null?n:t._$Co=[])[r]=s:t._$Cl=s),s!==void 0&&(e=Ze(i,s._$AS(i,e.values),s,r)),e}class Dh{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:r},parts:a}=this._$AD,o=((t=e==null?void 0:e.creationScope)!=null?t:Le).importNode(r,!0);Oe.currentNode=o;let n=Oe.nextNode(),s=0,l=0,d=a[0];for(;d!==void 0;){if(s===d.index){let c;d.type===2?c=new Vt(n,n.nextSibling,this,e):d.type===1?c=new d.ctor(n,d.name,d.strings,this,e):d.type===6&&(c=new Nh(n,this,e)),this._$AV.push(c),d=a[++l]}s!==(d==null?void 0:d.index)&&(n=Oe.nextNode(),s++)}return Oe.currentNode=Le,o}p(e){let t=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class Vt{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,r,a){var o;this.type=2,this._$AH=K,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=a,this._$Cv=(o=a==null?void 0:a.isConnected)!=null?o:!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Ze(this,e,t),xt(e)?e===K||e==null||e===""?(this._$AH!==K&&this._$AR(),this._$AH=K):e!==this._$AH&&e!==Je&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ph(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==K&&xt(this._$AH)?this._$AA.nextSibling.data=e:this.T(Le.createTextNode(e)),this._$AH=e}$(e){var t;const{values:r,_$litType$:a}=e,o=typeof a=="number"?this._$AC(e):(a.el===void 0&&(a.el=Ct.createElement(en(a.h,a.h[0]),this.options)),a);if(((t=this._$AH)==null?void 0:t._$AD)===o)this._$AH.p(r);else{const n=new Dh(o,this),s=n.u(this.options);n.p(r),this.T(s),this._$AH=n}}_$AC(e){let t=$a.get(e.strings);return t===void 0&&$a.set(e.strings,t=new Ct(e)),t}k(e){Pr(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,a=0;for(const o of e)a===t.length?t.push(r=new Vt(this.O(wt()),this.O(wt()),this,this.options)):r=t[a],r._$AI(o),a++;a<t.length&&(this._$AR(r&&r._$AB.nextSibling,a),t.length=a)}_$AR(e=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);e!==this._$AB;){const a=Ma(e).nextSibling;Ma(e).remove(),e=a}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class _i{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,a,o){this.type=1,this._$AH=K,this._$AN=void 0,this.element=e,this.name=t,this._$AM=a,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=K}_$AI(e,t=this,r,a){const o=this.strings;let n=!1;if(o===void 0)e=Ze(this,e,t,0),n=!xt(e)||e!==this._$AH&&e!==Je,n&&(this._$AH=e);else{const s=e;let l,d;for(e=o[0],l=0;l<o.length-1;l++)d=Ze(this,s[r+l],t,l),d===Je&&(d=this._$AH[l]),n||(n=!xt(d)||d!==this._$AH[l]),d===K?e=K:e!==K&&(e+=(d!=null?d:"")+o[l+1]),this._$AH[l]=d}n&&!a&&this.j(e)}j(e){e===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class Oh extends _i{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===K?void 0:e}}class Vh extends _i{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==K)}}class Mh extends _i{constructor(e,t,r,a,o){super(e,t,r,a,o),this.type=5}_$AI(e,t=this){var r;if((e=(r=Ze(this,e,t,0))!=null?r:K)===Je)return;const a=this._$AH,o=e===K&&a!==K||e.capture!==a.capture||e.once!==a.once||e.passive!==a.passive,n=e!==K&&(a===K||o);o&&this.element.removeEventListener(this.name,this,a),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)==null?void 0:t.host)!=null?r:this.element,e):this._$AH.handleEvent(e)}}class Nh{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Ze(this,e)}}const Ba=ni.litHtmlPolyfillSupport;var Ha;Ba==null||Ba(Ct,Vt),((Ha=ni.litHtmlVersions)!=null?Ha:ni.litHtmlVersions=[]).push("3.3.3");const tn=(i,e,t)=>{var r,a;const o=(r=t==null?void 0:t.renderBefore)!=null?r:e;let n=o._$litPart$;if(n===void 0){const s=(a=t==null?void 0:t.renderBefore)!=null?a:null;o._$litPart$=n=new Vt(e.insertBefore(wt(),s),s,void 0,t!=null?t:{})}return n._$AI(i),n};/**
25
25
  * @license
26
26
  * Copyright 2017 Google LLC
27
27
  * SPDX-License-Identifier: BSD-3-Clause
@@ -33,8 +33,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
33
33
  * @license
34
34
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
35
35
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
36
- */const rn=[],er=new Set,Ar=new Set;function an(i){return i&&Object.prototype.hasOwnProperty.call(i,"__themes")}function zh(i){return an(customElements.get(i))}function Lh(i=[]){return[i].flat(1/0).filter(e=>e instanceof Tr?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function on(i,e){return(i||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function nn(i){return i.map(e=>e.cssText).join(`
37
- `)}const li="vaadin-themable-mixin-style";function Rh(i,e){const t=document.createElement("style");t.id=li,t.textContent=nn(i),e.content.appendChild(t)}function Fh(i){if(!i.shadowRoot)return;const e=i.constructor;if(i instanceof je)[...i.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),Ko(i.shadowRoot,e.elementStyles);else{const t=i.shadowRoot.getElementById(li),r=e.prototype._template;t.textContent=r.content.getElementById(li).textContent}}function $h(i){er.forEach(e=>{const t=e.deref();t instanceof i?Fh(t):t||er.delete(e)})}function sn(i){if(i.prototype instanceof je)i.elementStyles=i.finalizeStyles(i.styles);else{const e=i.prototype._template;e.content.getElementById(li).textContent=nn(i.getStylesForThis())}Ar.forEach(e=>{const t=customElements.get(e);t!==i&&t.prototype instanceof i&&sn(t)})}function Bh(i,e){const t=i.__themes;return!t||!e?!1:t.some(r=>r.styles.some(a=>e.some(o=>o.cssText===a.cssText)))}function g(i,e,t={}){e=Lh(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(i,e,t):rn.push({themeFor:i,styles:e,include:t.include,moduleId:t.moduleId}),i&&Ar.forEach(r=>{if(on(i,r)&&zh(r)){const a=customElements.get(r);Bh(a,e)?console.warn(`Registering styles that already exist for ${r}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${r}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`),sn(a),$h(a)}})}function tr(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():rn}function Hh(i=""){let e=0;return i.startsWith("lumo-")||i.startsWith("material-")?e=1:i.startsWith("vaadin-")&&(e=2),e}function ln(i){const e=[];return i.include&&[].concat(i.include).forEach(t=>{const r=tr().find(a=>a.moduleId===t);r?e.push(...ln(r),...r.styles):console.warn(`Included moduleId ${t} not found in style registry`)},i.styles),e}function Uh(i){const e=`${i}-default-theme`,t=tr().filter(r=>r.moduleId!==e&&on(r.themeFor,i)).map(r=>Go(ai({},r),{styles:[...ln(r),...r.styles],includePriority:Hh(r.moduleId)})).sort((r,a)=>a.includePriority-r.includePriority);return t.length>0?t:tr().filter(r=>r.moduleId===e)}const z=i=>class extends gi(i){constructor(){super(),er.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Ar.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||an(this)||Rh(this.getStylesForThis(),e)}static finalizeStyles(e){const t=this.getStylesForThis();return e?[...[e].flat(1/0),...t]:t}static getStylesForThis(){const e=i.__themes||[],t=Object.getPrototypeOf(this.prototype),r=(t?t.constructor.__themes:[])||[];this.__themes=[...e,...r,...Uh(this.is)];const a=this.__themes.flatMap(o=>o.styles);return a.filter((o,n)=>n===a.lastIndexOf(o))}};/**
36
+ */const rn=[],er=new Set,Ar=new Set;function an(i){return i&&Object.prototype.hasOwnProperty.call(i,"__themes")}function Lh(i){return an(customElements.get(i))}function zh(i=[]){return[i].flat(1/0).filter(e=>e instanceof Tr?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function on(i,e){return(i||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function nn(i){return i.map(e=>e.cssText).join(`
37
+ `)}const li="vaadin-themable-mixin-style";function Rh(i,e){const t=document.createElement("style");t.id=li,t.textContent=nn(i),e.content.appendChild(t)}function Fh(i){if(!i.shadowRoot)return;const e=i.constructor;if(i instanceof je)[...i.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),Ko(i.shadowRoot,e.elementStyles);else{const t=i.shadowRoot.getElementById(li),r=e.prototype._template;t.textContent=r.content.getElementById(li).textContent}}function $h(i){er.forEach(e=>{const t=e.deref();t instanceof i?Fh(t):t||er.delete(e)})}function sn(i){if(i.prototype instanceof je)i.elementStyles=i.finalizeStyles(i.styles);else{const e=i.prototype._template;e.content.getElementById(li).textContent=nn(i.getStylesForThis())}Ar.forEach(e=>{const t=customElements.get(e);t!==i&&t.prototype instanceof i&&sn(t)})}function Bh(i,e){const t=i.__themes;return!t||!e?!1:t.some(r=>r.styles.some(a=>e.some(o=>o.cssText===a.cssText)))}function g(i,e,t={}){e=zh(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(i,e,t):rn.push({themeFor:i,styles:e,include:t.include,moduleId:t.moduleId}),i&&Ar.forEach(r=>{if(on(i,r)&&Lh(r)){const a=customElements.get(r);Bh(a,e)?console.warn(`Registering styles that already exist for ${r}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${r}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`),sn(a),$h(a)}})}function tr(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():rn}function Hh(i=""){let e=0;return i.startsWith("lumo-")||i.startsWith("material-")?e=1:i.startsWith("vaadin-")&&(e=2),e}function ln(i){const e=[];return i.include&&[].concat(i.include).forEach(t=>{const r=tr().find(a=>a.moduleId===t);r?e.push(...ln(r),...r.styles):console.warn(`Included moduleId ${t} not found in style registry`)},i.styles),e}function Uh(i){const e=`${i}-default-theme`,t=tr().filter(r=>r.moduleId!==e&&on(r.themeFor,i)).map(r=>Go(ai({},r),{styles:[...ln(r),...r.styles],includePriority:Hh(r.moduleId)})).sort((r,a)=>a.includePriority-r.includePriority);return t.length>0?t:tr().filter(r=>r.moduleId===e)}const L=i=>class extends gi(i){constructor(){super(),er.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Ar.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||an(this)||Rh(this.getStylesForThis(),e)}static finalizeStyles(e){const t=this.getStylesForThis();return e?[...[e].flat(1/0),...t]:t}static getStylesForThis(){const e=i.__themes||[],t=Object.getPrototypeOf(this.prototype),r=(t?t.constructor.__themes:[])||[];this.__themes=[...e,...r,...Uh(this.is)];const a=this.__themes.flatMap(o=>o.styles);return a.filter((o,n)=>n===a.lastIndexOf(o))}};/**
38
38
  * @license
39
39
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
40
40
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -937,7 +937,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
937
937
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
938
938
  Code distributed by Google as part of the polymer project is also
939
939
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
940
- */function rr(i){return i.indexOf(".")>=0}function Le(i){let e=i.indexOf(".");return e===-1?i:i.slice(0,e)}function vn(i,e){return i.indexOf(e+".")===0}function St(i,e){return e.indexOf(i+".")===0}function It(i,e,t){return e+t.slice(i.length)}function fc(i,e){return i===e||vn(i,e)||St(i,e)}function vt(i){if(Array.isArray(i)){let e=[];for(let t=0;t<i.length;t++){let r=i[t].toString().split(".");for(let a=0;a<r.length;a++)e.push(r[a])}return e.join(".")}else return i}function _n(i){return Array.isArray(i)?vt(i).split("."):i.toString().split(".")}function te(i,e,t){let r=i,a=_n(e);for(let o=0;o<a.length;o++){if(!r)return;let n=a[o];r=r[n]}return t&&(t.path=a.join(".")),r}function Ja(i,e,t){let r=i,a=_n(e),o=a[a.length-1];if(a.length>1){for(let n=0;n<a.length-1;n++){let s=a[n];if(r=r[s],!r)return}r[o]=t}else r[e]=t;return a.join(".")}/**
940
+ */function rr(i){return i.indexOf(".")>=0}function ze(i){let e=i.indexOf(".");return e===-1?i:i.slice(0,e)}function vn(i,e){return i.indexOf(e+".")===0}function St(i,e){return e.indexOf(i+".")===0}function It(i,e,t){return e+t.slice(i.length)}function fc(i,e){return i===e||vn(i,e)||St(i,e)}function vt(i){if(Array.isArray(i)){let e=[];for(let t=0;t<i.length;t++){let r=i[t].toString().split(".");for(let a=0;a<r.length;a++)e.push(r[a])}return e.join(".")}else return i}function _n(i){return Array.isArray(i)?vt(i).split("."):i.toString().split(".")}function te(i,e,t){let r=i,a=_n(e);for(let o=0;o<a.length;o++){if(!r)return;let n=a[o];r=r[n]}return t&&(t.path=a.join(".")),r}function Ja(i,e,t){let r=i,a=_n(e),o=a[a.length-1];if(a.length>1){for(let n=0;n<a.length-1;n++){let s=a[n];if(r=r[s],!r)return}r[o]=t}else r[e]=t;return a.join(".")}/**
941
941
  @license
942
942
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
943
943
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -987,7 +987,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
987
987
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
988
988
  * Google as part of the polymer project is also subject to an additional IP
989
989
  * rights grant found at http://polymer.github.io/PATENTS.txt
990
- */let Tt=0;const Pt=[],O={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},En="__computeInfo",zc=/[A-Z]/;function zi(i,e,t){let r=i[e];if(!r)r=i[e]={};else if(!i.hasOwnProperty(e)&&(r=i[e]=Object.create(i[e]),t))for(let a in r){let o=r[a],n=r[a]=Array(o.length);for(let s=0;s<o.length;s++)n[s]=o[s]}return r}function _t(i,e,t,r,a,o){if(e){let n=!1;const s=Tt++;for(let l in t){let d=a?Le(l):l,c=e[d];if(c)for(let u=0,m=c.length,p;u<m&&(p=c[u]);u++)(!p.info||p.info.lastRun!==s)&&(!a||Mr(l,p.trigger))&&(p.info&&(p.info.lastRun=s),p.fn(i,l,t,r,p.info,a,o),n=!0)}return n}return!1}function Lc(i,e,t,r,a,o,n,s){let l=!1,d=n?Le(r):r,c=e[d];if(c)for(let u=0,m=c.length,p;u<m&&(p=c[u]);u++)(!p.info||p.info.lastRun!==t)&&(!n||Mr(r,p.trigger))&&(p.info&&(p.info.lastRun=t),p.fn(i,r,a,o,p.info,n,s),l=!0);return l}function Mr(i,e){if(e){let t=e.name;return t==i||!!(e.structured&&vn(t,i))||!!(e.wildcard&&St(t,i))}else return!0}function to(i,e,t,r,a){let o=typeof a.method=="string"?i[a.method]:a.method,n=a.property;o?o.call(i,i.__data[n],r[n]):a.dynamicFn||console.warn("observer method `"+a.method+"` not defined")}function Rc(i,e,t,r,a){let o=i[O.NOTIFY],n,s=Tt++;for(let d in e)e[d]&&(o&&Lc(i,o,s,d,t,r,a)||a&&Fc(i,d,t))&&(n=!0);let l;n&&(l=i.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Fc(i,e,t){let r=Le(e);if(r!==e){let a=bi(r)+"-changed";return Sn(i,a,t[e],e),!0}return!1}function Sn(i,e,t,r){let a={value:t,queueProperty:!0};r&&(a.path=r),Q(i).dispatchEvent(new CustomEvent(e,{detail:a}))}function $c(i,e,t,r,a,o){let n=(o?Le(e):e)!=e?e:null,s=n?te(i,n):i.__data[e];n&&s===void 0&&(s=t[e]),Sn(i,a.eventName,s,n)}function Bc(i,e,t,r,a){let o,n=i.detail,s=n&&n.path;s?(r=It(t,r,s),o=n&&n.value):o=i.currentTarget[t],o=a?!o:o,(!e[O.READ_ONLY]||!e[O.READ_ONLY][r])&&e._setPendingPropertyOrPath(r,o,!0,!!s)&&(!n||!n.queueProperty)&&e._invalidateProperties()}function Hc(i,e,t,r,a){let o=i.__data[e];di&&(o=di(o,a.attrName,"attribute",i)),i._propertyToAttribute(e,a.attrName,o)}function Uc(i,e,t,r){let a=i[O.COMPUTE];if(a)if(oc){Tt++;const o=jc(i),n=[];for(let l in e)io(l,a,n,o,r);let s;for(;s=n.shift();)In(i,"",e,t,s)&&io(s.methodInfo,a,n,o,r);Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),i.__dataPending=null}else{let o=e;for(;_t(i,a,o,t,r);)Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),o=i.__dataPending,i.__dataPending=null}}const qc=(i,e,t)=>{let r=0,a=e.length-1,o=-1;for(;r<=a;){const n=r+a>>1,s=t.get(e[n].methodInfo)-t.get(i.methodInfo);if(s<0)r=n+1;else if(s>0)a=n-1;else{o=n;break}}o<0&&(o=a+1),e.splice(o,0,i)},io=(i,e,t,r,a)=>{const o=a?Le(i):i,n=e[o];if(n)for(let s=0;s<n.length;s++){const l=n[s];l.info.lastRun!==Tt&&(!a||Mr(i,l.trigger))&&(l.info.lastRun=Tt,qc(l.info,t,r))}};function jc(i){let e=i.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=i[O.COMPUTE];let{counts:r,ready:a,total:o}=Wc(i),n;for(;n=a.shift();){e.set(n,e.size);const s=t[n];s&&s.forEach(l=>{const d=l.info.methodInfo;--o,--r[d]===0&&a.push(d)})}o!==0&&console.warn(`Computed graph for ${i.localName} incomplete; circular?`),i.constructor.__orderedComputedDeps=e}return e}function Wc(i){const e=i[En],t={},r=i[O.COMPUTE],a=[];let o=0;for(let n in e){const s=e[n];o+=t[n]=s.args.filter(l=>!l.literal).length+(s.dynamicFn?1:0)}for(let n in r)e[n]||a.push(n);return{counts:t,ready:a,total:o}}function In(i,e,t,r,a){let o=or(i,e,t,r,a);if(o===Pt)return!1;let n=a.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[n]?i._setPendingProperty(n,o,!0):(i[n]=o,!1)}function Yc(i,e,t){let r=i.__dataLinkedPaths;if(r){let a;for(let o in r){let n=r[o];St(o,e)?(a=It(o,n,e),i._setPendingPropertyOrPath(a,t,!0,!0)):St(n,e)&&(a=It(n,o,e),i._setPendingPropertyOrPath(a,t,!0,!0))}}}function Li(i,e,t,r,a,o,n){t.bindings=t.bindings||[];let s={kind:r,target:a,parts:o,literal:n,isCompound:o.length!==1};if(t.bindings.push(s),Jc(s)){let{event:d,negate:c}=s.parts[0];s.listenerEvent=d||bi(a)+"-changed",s.listenerNegate=c}let l=e.nodeInfoList.length;for(let d=0;d<s.parts.length;d++){let c=s.parts[d];c.compoundIndex=d,Gc(i,e,s,c,l)}}function Gc(i,e,t,r,a){if(!r.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let o=r.dependencies,n={index:a,binding:t,part:r,evaluator:i};for(let s=0;s<o.length;s++){let l=o[s];typeof l=="string"&&(l=Pn(l),l.wildcard=!0),i._addTemplatePropertyEffect(e,l.rootProperty,{fn:Kc,info:n,trigger:l})}}}function Kc(i,e,t,r,a,o,n){let s=n[a.index],l=a.binding,d=a.part;if(o&&d.source&&e.length>d.source.length&&l.kind=="property"&&!l.isCompound&&s.__isPropertyEffectsClient&&s.__dataHasAccessor&&s.__dataHasAccessor[l.target]){let c=t[e];e=It(d.source,l.target,e),s._setPendingPropertyOrPath(e,c,!1,!0)&&i._enqueueClient(s)}else{let c=a.evaluator._evaluateBinding(i,d,e,t,r,o);c!==Pt&&Xc(i,s,l,d,c)}}function Xc(i,e,t,r,a){if(a=Qc(e,a,t,r),di&&(a=di(a,t.target,t.kind,e)),t.kind=="attribute")i._valueToNodeAttribute(e,a,t.target);else{let o=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[o]?(!e[O.READ_ONLY]||!e[O.READ_ONLY][o])&&e._setPendingProperty(o,a)&&i._enqueueClient(e):i._setUnmanagedPropertyToNode(e,o,a)}}function Qc(i,e,t,r){if(t.isCompound){let a=i.__dataCompoundStorage[t.target];a[r.compoundIndex]=e,e=a.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(i.localName==="input"||i.localName==="textarea"))&&(e=e==null?"":e),e}function Jc(i){return!!i.target&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function Zc(i,e){let{nodeList:t,nodeInfoList:r}=e;if(r.length)for(let a=0;a<r.length;a++){let o=r[a],n=t[a],s=o.bindings;if(s)for(let l=0;l<s.length;l++){let d=s[l];eu(n,d),tu(n,i,d)}n.__dataHost=i}}function eu(i,e){if(e.isCompound){let t=i.__dataCompoundStorage||(i.__dataCompoundStorage={}),r=e.parts,a=new Array(r.length);for(let n=0;n<r.length;n++)a[n]=r[n].literal;let o=e.target;t[o]=a,e.literal&&e.kind=="property"&&(o==="className"&&(i=Q(i)),i[o]=e.literal)}}function tu(i,e,t){if(t.listenerEvent){let r=t.parts[0];i.addEventListener(t.listenerEvent,function(a){Bc(a,e,t.target,r.source,r.negate)})}}function ro(i,e,t,r,a,o){o=e.static||o&&(typeof o!="object"||o[e.methodName]);let n={methodName:e.methodName,args:e.args,methodInfo:a,dynamicFn:o};for(let s=0,l;s<e.args.length&&(l=e.args[s]);s++)l.literal||i._addPropertyEffect(l.rootProperty,t,{fn:r,info:n,trigger:l});return o&&i._addPropertyEffect(e.methodName,t,{fn:r,info:n}),n}function or(i,e,t,r,a){let o=i._methodHost||i,n=o[a.methodName];if(n){let s=i._marshalArgs(a.args,e,t);return s===Pt?Pt:n.apply(o,s)}else a.dynamicFn||console.warn("method `"+a.methodName+"` not defined")}const iu=[],Tn="(?:[a-zA-Z_$][\\w.:$\\-*]*)",ru="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",au="(?:'(?:[^'\\\\]|\\\\.)*')",ou='(?:"(?:[^"\\\\]|\\\\.)*")',nu="(?:"+au+"|"+ou+")",ao="(?:("+Tn+"|"+ru+"|"+nu+")\\s*)",su="(?:"+ao+"(?:,\\s*"+ao+")*)",lu="(?:\\(\\s*(?:"+su+"?)\\)\\s*)",du="("+Tn+"\\s*"+lu+"?)",hu="(\\[\\[|{{)\\s*",cu="(?:]]|}})",uu="(?:(!)\\s*)?",pu=hu+uu+du+cu,oo=new RegExp(pu,"g");function no(i){let e="";for(let t=0;t<i.length;t++){let r=i[t].literal;e+=r||""}return e}function Ri(i){let e=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:iu};if(e[2].trim()){let r=e[2].replace(/\\,/g,"&comma;").split(",");return mu(r,t)}else return t}return null}function mu(i,e){return e.args=i.map(function(t){let r=Pn(t);return r.literal||(e.static=!1),r},this),e}function Pn(i){let e=i.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},r=e[0];switch(r==="-"&&(r=e[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':t.value=e.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(e),t.literal=!0;break}return t.literal||(t.rootProperty=Le(e),t.structured=rr(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function so(i,e,t){let r=te(i,t);return r===void 0&&(r=e[t]),r}function An(i,e,t,r){const a={indexSplices:r};ir&&!i._overrideLegacyUndefined&&(e.splices=a),i.notifyPath(t+".splices",a),i.notifyPath(t+".length",e.length),ir&&!i._overrideLegacyUndefined&&(a.indexSplices=[])}function ut(i,e,t,r,a,o){An(i,e,t,[{index:r,addedCount:a,removed:o,object:e,type:"splice"}])}function fu(i){return i[0].toUpperCase()+i.substring(1)}const Nr=j(i=>{const e=Nc(Ec(i));class t extends e{constructor(){super(),this.__isPropertyEffectsClient=!0}get PROPERTY_EFFECT_TYPES(){return O}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(pt.length){let a=pt[pt.length-1];a._enqueueClient(this),this.__dataHost=a}}_initializeProtoProperties(a){this.__data=Object.create(a),this.__dataPending=Object.create(a),this.__dataOld={}}_initializeInstanceProperties(a){let o=this[O.READ_ONLY];for(let n in a)(!o||!o[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=a[n])}_addPropertyEffect(a,o,n){this._createPropertyAccessor(a,o==O.READ_ONLY);let s=zi(this,o,!0)[a];s||(s=this[o][a]=[]),s.push(n)}_removePropertyEffect(a,o,n){let s=zi(this,o,!0)[a],l=s.indexOf(n);l>=0&&s.splice(l,1)}_hasPropertyEffect(a,o){let n=this[o];return!!(n&&n[a])}_hasReadOnlyEffect(a){return this._hasPropertyEffect(a,O.READ_ONLY)}_hasNotifyEffect(a){return this._hasPropertyEffect(a,O.NOTIFY)}_hasReflectEffect(a){return this._hasPropertyEffect(a,O.REFLECT)}_hasComputedEffect(a){return this._hasPropertyEffect(a,O.COMPUTE)}_setPendingPropertyOrPath(a,o,n,s){if(s||Le(Array.isArray(a)?a[0]:a)!==a){if(!s){let l=te(this,a);if(a=Ja(this,a,o),!a||!super._shouldPropertyChange(a,o,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(a,o,n))return Yc(this,a,o),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[a])return this._setPendingProperty(a,o,n);this[a]=o}return!1}_setUnmanagedPropertyToNode(a,o,n){(n!==a[o]||typeof n=="object")&&(o==="className"&&(a=Q(a)),a[o]=n)}_setPendingProperty(a,o,n){let s=this.__dataHasPaths&&rr(a),l=s?this.__dataTemp:this.__data;return this._shouldPropertyChange(a,o,l[a])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),a in this.__dataOld||(this.__dataOld[a]=this.__data[a]),s?this.__dataTemp[a]=o:this.__data[a]=o,this.__dataPending[a]=o,(s||this[O.NOTIFY]&&this[O.NOTIFY][a])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[a]=n),!0):!1}_setProperty(a,o){this._setPendingProperty(a,o,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(a){this.__dataPendingClients=this.__dataPendingClients||[],a!==this&&this.__dataPendingClients.push(a)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let a=this.__dataPendingClients;if(a){this.__dataPendingClients=null;for(let o=0;o<a.length;o++){let n=a[o];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(a,o){for(let n in a)(o||!this[O.READ_ONLY]||!this[O.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,a[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(a,o,n){let s=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Uc(this,o,n,s),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,n,s),this._flushClients(),_t(this,this[O.REFLECT],o,n,s),_t(this,this[O.OBSERVE],o,n,s),l&&Rc(this,l,o,n,s),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(a,o,n){this[O.PROPAGATE]&&_t(this,this[O.PROPAGATE],a,o,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,a,o,n)}_runEffectsForTemplate(a,o,n,s){const l=(d,c)=>{_t(this,a.propertyEffects,d,n,c,a.nodeList);for(let u=a.firstChild;u;u=u.nextSibling)this._runEffectsForTemplate(u,d,n,c)};a.runEffects?a.runEffects(l,o,s):l(o,s)}linkPaths(a,o){a=vt(a),o=vt(o),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[a]=o}unlinkPaths(a){a=vt(a),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[a]}notifySplices(a,o){let n={path:""},s=te(this,a,n);An(this,s,n.path,o)}get(a,o){return te(o||this,a)}set(a,o,n){n?Ja(n,a,o):(!this[O.READ_ONLY]||!this[O.READ_ONLY][a])&&this._setPendingPropertyOrPath(a,o,!0)&&this._invalidateProperties()}push(a,...o){let n={path:""},s=te(this,a,n),l=s.length,d=s.push(...o);return o.length&&ut(this,s,n.path,l,o.length,[]),d}pop(a){let o={path:""},n=te(this,a,o),s=!!n.length,l=n.pop();return s&&ut(this,n,o.path,n.length,0,[l]),l}splice(a,o,n,...s){let l={path:""},d=te(this,a,l);o<0?o=d.length-Math.floor(-o):o&&(o=Math.floor(o));let c;return arguments.length===2?c=d.splice(o):c=d.splice(o,n,...s),(s.length||c.length)&&ut(this,d,l.path,o,s.length,c),c}shift(a){let o={path:""},n=te(this,a,o),s=!!n.length,l=n.shift();return s&&ut(this,n,o.path,0,0,[l]),l}unshift(a,...o){let n={path:""},s=te(this,a,n),l=s.unshift(...o);return o.length&&ut(this,s,n.path,0,o.length,[]),l}notifyPath(a,o){let n;if(arguments.length==1){let s={path:""};o=te(this,a,s),n=s.path}else Array.isArray(a)?n=vt(a):n=a;this._setPendingPropertyOrPath(n,o,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(a,o){this._addPropertyEffect(a,O.READ_ONLY),o&&(this["_set"+fu(a)]=function(n){this._setProperty(a,n)})}_createPropertyObserver(a,o,n){let s={property:a,method:o,dynamicFn:!!n};this._addPropertyEffect(a,O.OBSERVE,{fn:to,info:s,trigger:{name:a}}),n&&this._addPropertyEffect(o,O.OBSERVE,{fn:to,info:s,trigger:{name:o}})}_createMethodObserver(a,o){let n=Ri(a);if(!n)throw new Error("Malformed observer expression '"+a+"'");ro(this,n,O.OBSERVE,or,null,o)}_createNotifyingProperty(a){this._addPropertyEffect(a,O.NOTIFY,{fn:$c,info:{eventName:bi(a)+"-changed",property:a}})}_createReflectedProperty(a){let o=this.constructor.attributeNameForProperty(a);o[0]==="-"?console.warn("Property "+a+" cannot be reflected to attribute "+o+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(a,O.REFLECT,{fn:Hc,info:{attrName:o}})}_createComputedProperty(a,o,n){let s=Ri(o);if(!s)throw new Error("Malformed computed expression '"+o+"'");const l=ro(this,s,O.COMPUTE,In,a,n);zi(this,En)[a]=l}_marshalArgs(a,o,n){const s=this.__data,l=[];for(let d=0,c=a.length;d<c;d++){let{name:u,structured:m,wildcard:p,value:y,literal:M}=a[d];if(!M)if(p){const D=St(u,o),C=so(s,n,D?o:u);y={path:D?o:u,value:C,base:D?te(s,u):C}}else y=m?so(s,n,u):s[u];if(ir&&!this._overrideLegacyUndefined&&y===void 0&&a.length>1)return Pt;l[d]=y}return l}static addPropertyEffect(a,o,n){this.prototype._addPropertyEffect(a,o,n)}static createPropertyObserver(a,o,n){this.prototype._createPropertyObserver(a,o,n)}static createMethodObserver(a,o){this.prototype._createMethodObserver(a,o)}static createNotifyingProperty(a){this.prototype._createNotifyingProperty(a)}static createReadOnlyProperty(a,o){this.prototype._createReadOnlyProperty(a,o)}static createReflectedProperty(a){this.prototype._createReflectedProperty(a)}static createComputedProperty(a,o,n){this.prototype._createComputedProperty(a,o,n)}static bindTemplate(a){return this.prototype._bindTemplate(a)}_bindTemplate(a,o){let n=this.constructor._parseTemplate(a),s=this.__preBoundTemplateInfo==n;if(!s)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(o)if(n=Object.create(n),n.wasPreBound=s,!this.__templateInfo)this.__templateInfo=n;else{const l=a._parentTemplateInfo||this.__templateInfo,d=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=d,d?d.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(a,o,n){let s=a.hostProps=a.hostProps||{};s[o]=!0;let l=a.propertyEffects=a.propertyEffects||{};(l[o]=l[o]||[]).push(n)}_stampTemplate(a,o){o=o||this._bindTemplate(a,!0),pt.push(this);let n=super._stampTemplate(a,o);if(pt.pop(),o.nodeList=n.nodeList,!o.wasPreBound){let s=o.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)s.push(l)}return n.templateInfo=o,Zc(this,o),this.__dataClientsReady&&(this._runEffectsForTemplate(o,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(a){const o=a.templateInfo,{previousSibling:n,nextSibling:s,parent:l}=o;n?n.nextSibling=s:l&&(l.firstChild=s),s?s.previousSibling=n:l&&(l.lastChild=n),o.nextSibling=o.previousSibling=null;let d=o.childNodes;for(let c=0;c<d.length;c++){let u=d[c];Q(Q(u).parentNode).removeChild(u)}}static _parseTemplateNode(a,o,n){let s=e._parseTemplateNode.call(this,a,o,n);if(a.nodeType===Node.TEXT_NODE){let l=this._parseBindings(a.textContent,o);l&&(a.textContent=no(l)||" ",Li(this,o,n,"text","textContent",l),s=!0)}return s}static _parseTemplateNodeAttribute(a,o,n,s,l){let d=this._parseBindings(l,o);if(d){let c=s,u="property";zc.test(s)?u="attribute":s[s.length-1]=="$"&&(s=s.slice(0,-1),u="attribute");let m=no(d);return m&&u=="attribute"&&(s=="class"&&a.hasAttribute("class")&&(m+=" "+a.getAttribute(s)),a.setAttribute(s,m)),u=="attribute"&&c=="disable-upgrade$"&&a.setAttribute(s,""),a.localName==="input"&&c==="value"&&a.setAttribute(c,""),a.removeAttribute(c),u==="property"&&(s=gn(s)),Li(this,o,n,u,s,d,m),!0}else return e._parseTemplateNodeAttribute.call(this,a,o,n,s,l)}static _parseTemplateNestedTemplate(a,o,n){let s=e._parseTemplateNestedTemplate.call(this,a,o,n);const l=a.parentNode,d=n.templateInfo,c=l.localName==="dom-if",u=l.localName==="dom-repeat";Wa&&(c||u)&&(l.removeChild(a),n=n.parentInfo,n.templateInfo=d,n.noted=!0,s=!1);let m=d.hostProps;if(nc&&c)m&&(o.hostProps=Object.assign(o.hostProps||{},m),Wa||(n.parentInfo.noted=!0));else{let p="{";for(let y in m){let M=[{mode:p,source:y,dependencies:[y],hostProp:!0}];Li(this,o,n,"property","_host_"+y,M)}}return s}static _parseBindings(a,o){let n=[],s=0,l;for(;(l=oo.exec(a))!==null;){l.index>s&&n.push({literal:a.slice(s,l.index)});let d=l[1][0],c=!!l[2],u=l[3].trim(),m=!1,p="",y=-1;d=="{"&&(y=u.indexOf("::"))>0&&(p=u.substring(y+2),u=u.substring(0,y),m=!0);let M=Ri(u),D=[];if(M){let{args:C,methodName:T}=M;for(let R=0;R<C.length;R++){let Y=C[R];Y.literal||D.push(Y)}let H=o.dynamicFns;(H&&H[T]||M.static)&&(D.push(T),M.dynamicFn=!0)}else D.push(u);n.push({source:u,mode:d,negate:c,customEvent:m,signature:M,dependencies:D,event:p}),s=oo.lastIndex}if(s&&s<a.length){let d=a.substring(s);d&&n.push({literal:d})}return n.length?n:null}static _evaluateBinding(a,o,n,s,l,d){let c;return o.signature?c=or(a,n,s,l,o.signature):n!=o.source?c=te(a,o.source):d&&rr(n)?c=te(a,n):c=a.__data[n],o.negate&&(c=!c),c}}return t}),pt=[];/**
990
+ */let Tt=0;const Pt=[],O={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},En="__computeInfo",Lc=/[A-Z]/;function Li(i,e,t){let r=i[e];if(!r)r=i[e]={};else if(!i.hasOwnProperty(e)&&(r=i[e]=Object.create(i[e]),t))for(let a in r){let o=r[a],n=r[a]=Array(o.length);for(let s=0;s<o.length;s++)n[s]=o[s]}return r}function _t(i,e,t,r,a,o){if(e){let n=!1;const s=Tt++;for(let l in t){let d=a?ze(l):l,c=e[d];if(c)for(let u=0,m=c.length,p;u<m&&(p=c[u]);u++)(!p.info||p.info.lastRun!==s)&&(!a||Mr(l,p.trigger))&&(p.info&&(p.info.lastRun=s),p.fn(i,l,t,r,p.info,a,o),n=!0)}return n}return!1}function zc(i,e,t,r,a,o,n,s){let l=!1,d=n?ze(r):r,c=e[d];if(c)for(let u=0,m=c.length,p;u<m&&(p=c[u]);u++)(!p.info||p.info.lastRun!==t)&&(!n||Mr(r,p.trigger))&&(p.info&&(p.info.lastRun=t),p.fn(i,r,a,o,p.info,n,s),l=!0);return l}function Mr(i,e){if(e){let t=e.name;return t==i||!!(e.structured&&vn(t,i))||!!(e.wildcard&&St(t,i))}else return!0}function to(i,e,t,r,a){let o=typeof a.method=="string"?i[a.method]:a.method,n=a.property;o?o.call(i,i.__data[n],r[n]):a.dynamicFn||console.warn("observer method `"+a.method+"` not defined")}function Rc(i,e,t,r,a){let o=i[O.NOTIFY],n,s=Tt++;for(let d in e)e[d]&&(o&&zc(i,o,s,d,t,r,a)||a&&Fc(i,d,t))&&(n=!0);let l;n&&(l=i.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Fc(i,e,t){let r=ze(e);if(r!==e){let a=bi(r)+"-changed";return Sn(i,a,t[e],e),!0}return!1}function Sn(i,e,t,r){let a={value:t,queueProperty:!0};r&&(a.path=r),Q(i).dispatchEvent(new CustomEvent(e,{detail:a}))}function $c(i,e,t,r,a,o){let n=(o?ze(e):e)!=e?e:null,s=n?te(i,n):i.__data[e];n&&s===void 0&&(s=t[e]),Sn(i,a.eventName,s,n)}function Bc(i,e,t,r,a){let o,n=i.detail,s=n&&n.path;s?(r=It(t,r,s),o=n&&n.value):o=i.currentTarget[t],o=a?!o:o,(!e[O.READ_ONLY]||!e[O.READ_ONLY][r])&&e._setPendingPropertyOrPath(r,o,!0,!!s)&&(!n||!n.queueProperty)&&e._invalidateProperties()}function Hc(i,e,t,r,a){let o=i.__data[e];di&&(o=di(o,a.attrName,"attribute",i)),i._propertyToAttribute(e,a.attrName,o)}function Uc(i,e,t,r){let a=i[O.COMPUTE];if(a)if(oc){Tt++;const o=jc(i),n=[];for(let l in e)io(l,a,n,o,r);let s;for(;s=n.shift();)In(i,"",e,t,s)&&io(s.methodInfo,a,n,o,r);Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),i.__dataPending=null}else{let o=e;for(;_t(i,a,o,t,r);)Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),o=i.__dataPending,i.__dataPending=null}}const qc=(i,e,t)=>{let r=0,a=e.length-1,o=-1;for(;r<=a;){const n=r+a>>1,s=t.get(e[n].methodInfo)-t.get(i.methodInfo);if(s<0)r=n+1;else if(s>0)a=n-1;else{o=n;break}}o<0&&(o=a+1),e.splice(o,0,i)},io=(i,e,t,r,a)=>{const o=a?ze(i):i,n=e[o];if(n)for(let s=0;s<n.length;s++){const l=n[s];l.info.lastRun!==Tt&&(!a||Mr(i,l.trigger))&&(l.info.lastRun=Tt,qc(l.info,t,r))}};function jc(i){let e=i.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=i[O.COMPUTE];let{counts:r,ready:a,total:o}=Wc(i),n;for(;n=a.shift();){e.set(n,e.size);const s=t[n];s&&s.forEach(l=>{const d=l.info.methodInfo;--o,--r[d]===0&&a.push(d)})}o!==0&&console.warn(`Computed graph for ${i.localName} incomplete; circular?`),i.constructor.__orderedComputedDeps=e}return e}function Wc(i){const e=i[En],t={},r=i[O.COMPUTE],a=[];let o=0;for(let n in e){const s=e[n];o+=t[n]=s.args.filter(l=>!l.literal).length+(s.dynamicFn?1:0)}for(let n in r)e[n]||a.push(n);return{counts:t,ready:a,total:o}}function In(i,e,t,r,a){let o=or(i,e,t,r,a);if(o===Pt)return!1;let n=a.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[n]?i._setPendingProperty(n,o,!0):(i[n]=o,!1)}function Yc(i,e,t){let r=i.__dataLinkedPaths;if(r){let a;for(let o in r){let n=r[o];St(o,e)?(a=It(o,n,e),i._setPendingPropertyOrPath(a,t,!0,!0)):St(n,e)&&(a=It(n,o,e),i._setPendingPropertyOrPath(a,t,!0,!0))}}}function zi(i,e,t,r,a,o,n){t.bindings=t.bindings||[];let s={kind:r,target:a,parts:o,literal:n,isCompound:o.length!==1};if(t.bindings.push(s),Jc(s)){let{event:d,negate:c}=s.parts[0];s.listenerEvent=d||bi(a)+"-changed",s.listenerNegate=c}let l=e.nodeInfoList.length;for(let d=0;d<s.parts.length;d++){let c=s.parts[d];c.compoundIndex=d,Gc(i,e,s,c,l)}}function Gc(i,e,t,r,a){if(!r.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let o=r.dependencies,n={index:a,binding:t,part:r,evaluator:i};for(let s=0;s<o.length;s++){let l=o[s];typeof l=="string"&&(l=Pn(l),l.wildcard=!0),i._addTemplatePropertyEffect(e,l.rootProperty,{fn:Kc,info:n,trigger:l})}}}function Kc(i,e,t,r,a,o,n){let s=n[a.index],l=a.binding,d=a.part;if(o&&d.source&&e.length>d.source.length&&l.kind=="property"&&!l.isCompound&&s.__isPropertyEffectsClient&&s.__dataHasAccessor&&s.__dataHasAccessor[l.target]){let c=t[e];e=It(d.source,l.target,e),s._setPendingPropertyOrPath(e,c,!1,!0)&&i._enqueueClient(s)}else{let c=a.evaluator._evaluateBinding(i,d,e,t,r,o);c!==Pt&&Xc(i,s,l,d,c)}}function Xc(i,e,t,r,a){if(a=Qc(e,a,t,r),di&&(a=di(a,t.target,t.kind,e)),t.kind=="attribute")i._valueToNodeAttribute(e,a,t.target);else{let o=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[o]?(!e[O.READ_ONLY]||!e[O.READ_ONLY][o])&&e._setPendingProperty(o,a)&&i._enqueueClient(e):i._setUnmanagedPropertyToNode(e,o,a)}}function Qc(i,e,t,r){if(t.isCompound){let a=i.__dataCompoundStorage[t.target];a[r.compoundIndex]=e,e=a.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(i.localName==="input"||i.localName==="textarea"))&&(e=e==null?"":e),e}function Jc(i){return!!i.target&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function Zc(i,e){let{nodeList:t,nodeInfoList:r}=e;if(r.length)for(let a=0;a<r.length;a++){let o=r[a],n=t[a],s=o.bindings;if(s)for(let l=0;l<s.length;l++){let d=s[l];eu(n,d),tu(n,i,d)}n.__dataHost=i}}function eu(i,e){if(e.isCompound){let t=i.__dataCompoundStorage||(i.__dataCompoundStorage={}),r=e.parts,a=new Array(r.length);for(let n=0;n<r.length;n++)a[n]=r[n].literal;let o=e.target;t[o]=a,e.literal&&e.kind=="property"&&(o==="className"&&(i=Q(i)),i[o]=e.literal)}}function tu(i,e,t){if(t.listenerEvent){let r=t.parts[0];i.addEventListener(t.listenerEvent,function(a){Bc(a,e,t.target,r.source,r.negate)})}}function ro(i,e,t,r,a,o){o=e.static||o&&(typeof o!="object"||o[e.methodName]);let n={methodName:e.methodName,args:e.args,methodInfo:a,dynamicFn:o};for(let s=0,l;s<e.args.length&&(l=e.args[s]);s++)l.literal||i._addPropertyEffect(l.rootProperty,t,{fn:r,info:n,trigger:l});return o&&i._addPropertyEffect(e.methodName,t,{fn:r,info:n}),n}function or(i,e,t,r,a){let o=i._methodHost||i,n=o[a.methodName];if(n){let s=i._marshalArgs(a.args,e,t);return s===Pt?Pt:n.apply(o,s)}else a.dynamicFn||console.warn("method `"+a.methodName+"` not defined")}const iu=[],Tn="(?:[a-zA-Z_$][\\w.:$\\-*]*)",ru="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",au="(?:'(?:[^'\\\\]|\\\\.)*')",ou='(?:"(?:[^"\\\\]|\\\\.)*")',nu="(?:"+au+"|"+ou+")",ao="(?:("+Tn+"|"+ru+"|"+nu+")\\s*)",su="(?:"+ao+"(?:,\\s*"+ao+")*)",lu="(?:\\(\\s*(?:"+su+"?)\\)\\s*)",du="("+Tn+"\\s*"+lu+"?)",hu="(\\[\\[|{{)\\s*",cu="(?:]]|}})",uu="(?:(!)\\s*)?",pu=hu+uu+du+cu,oo=new RegExp(pu,"g");function no(i){let e="";for(let t=0;t<i.length;t++){let r=i[t].literal;e+=r||""}return e}function Ri(i){let e=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:iu};if(e[2].trim()){let r=e[2].replace(/\\,/g,"&comma;").split(",");return mu(r,t)}else return t}return null}function mu(i,e){return e.args=i.map(function(t){let r=Pn(t);return r.literal||(e.static=!1),r},this),e}function Pn(i){let e=i.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},r=e[0];switch(r==="-"&&(r=e[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':t.value=e.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(e),t.literal=!0;break}return t.literal||(t.rootProperty=ze(e),t.structured=rr(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function so(i,e,t){let r=te(i,t);return r===void 0&&(r=e[t]),r}function An(i,e,t,r){const a={indexSplices:r};ir&&!i._overrideLegacyUndefined&&(e.splices=a),i.notifyPath(t+".splices",a),i.notifyPath(t+".length",e.length),ir&&!i._overrideLegacyUndefined&&(a.indexSplices=[])}function ut(i,e,t,r,a,o){An(i,e,t,[{index:r,addedCount:a,removed:o,object:e,type:"splice"}])}function fu(i){return i[0].toUpperCase()+i.substring(1)}const Nr=j(i=>{const e=Nc(Ec(i));class t extends e{constructor(){super(),this.__isPropertyEffectsClient=!0}get PROPERTY_EFFECT_TYPES(){return O}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(pt.length){let a=pt[pt.length-1];a._enqueueClient(this),this.__dataHost=a}}_initializeProtoProperties(a){this.__data=Object.create(a),this.__dataPending=Object.create(a),this.__dataOld={}}_initializeInstanceProperties(a){let o=this[O.READ_ONLY];for(let n in a)(!o||!o[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=a[n])}_addPropertyEffect(a,o,n){this._createPropertyAccessor(a,o==O.READ_ONLY);let s=Li(this,o,!0)[a];s||(s=this[o][a]=[]),s.push(n)}_removePropertyEffect(a,o,n){let s=Li(this,o,!0)[a],l=s.indexOf(n);l>=0&&s.splice(l,1)}_hasPropertyEffect(a,o){let n=this[o];return!!(n&&n[a])}_hasReadOnlyEffect(a){return this._hasPropertyEffect(a,O.READ_ONLY)}_hasNotifyEffect(a){return this._hasPropertyEffect(a,O.NOTIFY)}_hasReflectEffect(a){return this._hasPropertyEffect(a,O.REFLECT)}_hasComputedEffect(a){return this._hasPropertyEffect(a,O.COMPUTE)}_setPendingPropertyOrPath(a,o,n,s){if(s||ze(Array.isArray(a)?a[0]:a)!==a){if(!s){let l=te(this,a);if(a=Ja(this,a,o),!a||!super._shouldPropertyChange(a,o,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(a,o,n))return Yc(this,a,o),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[a])return this._setPendingProperty(a,o,n);this[a]=o}return!1}_setUnmanagedPropertyToNode(a,o,n){(n!==a[o]||typeof n=="object")&&(o==="className"&&(a=Q(a)),a[o]=n)}_setPendingProperty(a,o,n){let s=this.__dataHasPaths&&rr(a),l=s?this.__dataTemp:this.__data;return this._shouldPropertyChange(a,o,l[a])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),a in this.__dataOld||(this.__dataOld[a]=this.__data[a]),s?this.__dataTemp[a]=o:this.__data[a]=o,this.__dataPending[a]=o,(s||this[O.NOTIFY]&&this[O.NOTIFY][a])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[a]=n),!0):!1}_setProperty(a,o){this._setPendingProperty(a,o,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(a){this.__dataPendingClients=this.__dataPendingClients||[],a!==this&&this.__dataPendingClients.push(a)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let a=this.__dataPendingClients;if(a){this.__dataPendingClients=null;for(let o=0;o<a.length;o++){let n=a[o];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(a,o){for(let n in a)(o||!this[O.READ_ONLY]||!this[O.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,a[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(a,o,n){let s=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Uc(this,o,n,s),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,n,s),this._flushClients(),_t(this,this[O.REFLECT],o,n,s),_t(this,this[O.OBSERVE],o,n,s),l&&Rc(this,l,o,n,s),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(a,o,n){this[O.PROPAGATE]&&_t(this,this[O.PROPAGATE],a,o,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,a,o,n)}_runEffectsForTemplate(a,o,n,s){const l=(d,c)=>{_t(this,a.propertyEffects,d,n,c,a.nodeList);for(let u=a.firstChild;u;u=u.nextSibling)this._runEffectsForTemplate(u,d,n,c)};a.runEffects?a.runEffects(l,o,s):l(o,s)}linkPaths(a,o){a=vt(a),o=vt(o),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[a]=o}unlinkPaths(a){a=vt(a),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[a]}notifySplices(a,o){let n={path:""},s=te(this,a,n);An(this,s,n.path,o)}get(a,o){return te(o||this,a)}set(a,o,n){n?Ja(n,a,o):(!this[O.READ_ONLY]||!this[O.READ_ONLY][a])&&this._setPendingPropertyOrPath(a,o,!0)&&this._invalidateProperties()}push(a,...o){let n={path:""},s=te(this,a,n),l=s.length,d=s.push(...o);return o.length&&ut(this,s,n.path,l,o.length,[]),d}pop(a){let o={path:""},n=te(this,a,o),s=!!n.length,l=n.pop();return s&&ut(this,n,o.path,n.length,0,[l]),l}splice(a,o,n,...s){let l={path:""},d=te(this,a,l);o<0?o=d.length-Math.floor(-o):o&&(o=Math.floor(o));let c;return arguments.length===2?c=d.splice(o):c=d.splice(o,n,...s),(s.length||c.length)&&ut(this,d,l.path,o,s.length,c),c}shift(a){let o={path:""},n=te(this,a,o),s=!!n.length,l=n.shift();return s&&ut(this,n,o.path,0,0,[l]),l}unshift(a,...o){let n={path:""},s=te(this,a,n),l=s.unshift(...o);return o.length&&ut(this,s,n.path,0,o.length,[]),l}notifyPath(a,o){let n;if(arguments.length==1){let s={path:""};o=te(this,a,s),n=s.path}else Array.isArray(a)?n=vt(a):n=a;this._setPendingPropertyOrPath(n,o,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(a,o){this._addPropertyEffect(a,O.READ_ONLY),o&&(this["_set"+fu(a)]=function(n){this._setProperty(a,n)})}_createPropertyObserver(a,o,n){let s={property:a,method:o,dynamicFn:!!n};this._addPropertyEffect(a,O.OBSERVE,{fn:to,info:s,trigger:{name:a}}),n&&this._addPropertyEffect(o,O.OBSERVE,{fn:to,info:s,trigger:{name:o}})}_createMethodObserver(a,o){let n=Ri(a);if(!n)throw new Error("Malformed observer expression '"+a+"'");ro(this,n,O.OBSERVE,or,null,o)}_createNotifyingProperty(a){this._addPropertyEffect(a,O.NOTIFY,{fn:$c,info:{eventName:bi(a)+"-changed",property:a}})}_createReflectedProperty(a){let o=this.constructor.attributeNameForProperty(a);o[0]==="-"?console.warn("Property "+a+" cannot be reflected to attribute "+o+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(a,O.REFLECT,{fn:Hc,info:{attrName:o}})}_createComputedProperty(a,o,n){let s=Ri(o);if(!s)throw new Error("Malformed computed expression '"+o+"'");const l=ro(this,s,O.COMPUTE,In,a,n);Li(this,En)[a]=l}_marshalArgs(a,o,n){const s=this.__data,l=[];for(let d=0,c=a.length;d<c;d++){let{name:u,structured:m,wildcard:p,value:y,literal:M}=a[d];if(!M)if(p){const D=St(u,o),C=so(s,n,D?o:u);y={path:D?o:u,value:C,base:D?te(s,u):C}}else y=m?so(s,n,u):s[u];if(ir&&!this._overrideLegacyUndefined&&y===void 0&&a.length>1)return Pt;l[d]=y}return l}static addPropertyEffect(a,o,n){this.prototype._addPropertyEffect(a,o,n)}static createPropertyObserver(a,o,n){this.prototype._createPropertyObserver(a,o,n)}static createMethodObserver(a,o){this.prototype._createMethodObserver(a,o)}static createNotifyingProperty(a){this.prototype._createNotifyingProperty(a)}static createReadOnlyProperty(a,o){this.prototype._createReadOnlyProperty(a,o)}static createReflectedProperty(a){this.prototype._createReflectedProperty(a)}static createComputedProperty(a,o,n){this.prototype._createComputedProperty(a,o,n)}static bindTemplate(a){return this.prototype._bindTemplate(a)}_bindTemplate(a,o){let n=this.constructor._parseTemplate(a),s=this.__preBoundTemplateInfo==n;if(!s)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(o)if(n=Object.create(n),n.wasPreBound=s,!this.__templateInfo)this.__templateInfo=n;else{const l=a._parentTemplateInfo||this.__templateInfo,d=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=d,d?d.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(a,o,n){let s=a.hostProps=a.hostProps||{};s[o]=!0;let l=a.propertyEffects=a.propertyEffects||{};(l[o]=l[o]||[]).push(n)}_stampTemplate(a,o){o=o||this._bindTemplate(a,!0),pt.push(this);let n=super._stampTemplate(a,o);if(pt.pop(),o.nodeList=n.nodeList,!o.wasPreBound){let s=o.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)s.push(l)}return n.templateInfo=o,Zc(this,o),this.__dataClientsReady&&(this._runEffectsForTemplate(o,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(a){const o=a.templateInfo,{previousSibling:n,nextSibling:s,parent:l}=o;n?n.nextSibling=s:l&&(l.firstChild=s),s?s.previousSibling=n:l&&(l.lastChild=n),o.nextSibling=o.previousSibling=null;let d=o.childNodes;for(let c=0;c<d.length;c++){let u=d[c];Q(Q(u).parentNode).removeChild(u)}}static _parseTemplateNode(a,o,n){let s=e._parseTemplateNode.call(this,a,o,n);if(a.nodeType===Node.TEXT_NODE){let l=this._parseBindings(a.textContent,o);l&&(a.textContent=no(l)||" ",zi(this,o,n,"text","textContent",l),s=!0)}return s}static _parseTemplateNodeAttribute(a,o,n,s,l){let d=this._parseBindings(l,o);if(d){let c=s,u="property";Lc.test(s)?u="attribute":s[s.length-1]=="$"&&(s=s.slice(0,-1),u="attribute");let m=no(d);return m&&u=="attribute"&&(s=="class"&&a.hasAttribute("class")&&(m+=" "+a.getAttribute(s)),a.setAttribute(s,m)),u=="attribute"&&c=="disable-upgrade$"&&a.setAttribute(s,""),a.localName==="input"&&c==="value"&&a.setAttribute(c,""),a.removeAttribute(c),u==="property"&&(s=gn(s)),zi(this,o,n,u,s,d,m),!0}else return e._parseTemplateNodeAttribute.call(this,a,o,n,s,l)}static _parseTemplateNestedTemplate(a,o,n){let s=e._parseTemplateNestedTemplate.call(this,a,o,n);const l=a.parentNode,d=n.templateInfo,c=l.localName==="dom-if",u=l.localName==="dom-repeat";Wa&&(c||u)&&(l.removeChild(a),n=n.parentInfo,n.templateInfo=d,n.noted=!0,s=!1);let m=d.hostProps;if(nc&&c)m&&(o.hostProps=Object.assign(o.hostProps||{},m),Wa||(n.parentInfo.noted=!0));else{let p="{";for(let y in m){let M=[{mode:p,source:y,dependencies:[y],hostProp:!0}];zi(this,o,n,"property","_host_"+y,M)}}return s}static _parseBindings(a,o){let n=[],s=0,l;for(;(l=oo.exec(a))!==null;){l.index>s&&n.push({literal:a.slice(s,l.index)});let d=l[1][0],c=!!l[2],u=l[3].trim(),m=!1,p="",y=-1;d=="{"&&(y=u.indexOf("::"))>0&&(p=u.substring(y+2),u=u.substring(0,y),m=!0);let M=Ri(u),D=[];if(M){let{args:C,methodName:T}=M;for(let R=0;R<C.length;R++){let Y=C[R];Y.literal||D.push(Y)}let H=o.dynamicFns;(H&&H[T]||M.static)&&(D.push(T),M.dynamicFn=!0)}else D.push(u);n.push({source:u,mode:d,negate:c,customEvent:m,signature:M,dependencies:D,event:p}),s=oo.lastIndex}if(s&&s<a.length){let d=a.substring(s);d&&n.push({literal:d})}return n.length?n:null}static _evaluateBinding(a,o,n,s,l,d){let c;return o.signature?c=or(a,n,s,l,o.signature):n!=o.source?c=te(a,o.source):d&&rr(n)?c=te(a,n):c=a.__data[n],o.negate&&(c=!c),c}}return t}),pt=[];/**
991
991
  @license
992
992
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
993
993
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1515,7 +1515,7 @@ try {
1515
1515
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1516
1516
  * Code distributed by Google as part of the polymer project is also
1517
1517
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1518
- */let uo=0,Nn=0;const Ye=[];let nr=!1;function Pu(){nr=!1;const i=Ye.length;for(let e=0;e<i;e++){const t=Ye[e];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}Ye.splice(0,i),Nn+=i}const Se={after(i){return{run(e){return window.setTimeout(e,i)},cancel(e){window.clearTimeout(e)}}},run(i,e){return window.setTimeout(i,e)},cancel(i){window.clearTimeout(i)}},At={run(i){return window.requestAnimationFrame(i)},cancel(i){window.cancelAnimationFrame(i)}},zn={run(i){return window.requestIdleCallback?window.requestIdleCallback(i):window.setTimeout(i,16)},cancel(i){window.cancelIdleCallback?window.cancelIdleCallback(i):window.clearTimeout(i)}},ui={run(i){nr||(nr=!0,queueMicrotask(()=>Pu())),Ye.push(i);const e=uo;return uo+=1,e},cancel(i){const e=i-Nn;if(e>=0){if(!Ye[e])throw new Error(`invalid async handle: ${i}`);Ye[e]=null}}};/**
1518
+ */let uo=0,Nn=0;const Ye=[];let nr=!1;function Pu(){nr=!1;const i=Ye.length;for(let e=0;e<i;e++){const t=Ye[e];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}Ye.splice(0,i),Nn+=i}const Se={after(i){return{run(e){return window.setTimeout(e,i)},cancel(e){window.clearTimeout(e)}}},run(i,e){return window.setTimeout(i,e)},cancel(i){window.clearTimeout(i)}},At={run(i){return window.requestAnimationFrame(i)},cancel(i){window.cancelAnimationFrame(i)}},Ln={run(i){return window.requestIdleCallback?window.requestIdleCallback(i):window.setTimeout(i,16)},cancel(i){window.cancelIdleCallback?window.cancelIdleCallback(i):window.clearTimeout(i)}},ui={run(i){nr||(nr=!0,queueMicrotask(()=>Pu())),Ye.push(i);const e=uo;return uo+=1,e},cancel(i){const e=i-Nn;if(e>=0){if(!Ye[e])throw new Error(`invalid async handle: ${i}`);Ye[e]=null}}};/**
1519
1519
  @license
1520
1520
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1521
1521
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1523,7 +1523,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1523
1523
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1524
1524
  Code distributed by Google as part of the polymer project is also
1525
1525
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1526
- */const Dt=new Set;let oe=class sr{static debounce(e,t,r){return e instanceof sr?e._cancelAsync():e=new sr,e.setConfig(t,r),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,Dt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Dt.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}};function Ln(i){Dt.add(i)}function Au(){const i=!!Dt.size;return Dt.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),i}const gt=()=>{let i;do i=Au();while(i)};/**
1526
+ */const Dt=new Set;let oe=class sr{static debounce(e,t,r){return e instanceof sr?e._cancelAsync():e=new sr,e.setConfig(t,r),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,Dt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Dt.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}};function zn(i){Dt.add(i)}function Au(){const i=!!Dt.size;return Dt.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),i}const gt=()=>{let i;do i=Au();while(i)};/**
1527
1527
  * @license
1528
1528
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1529
1529
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1531,23 +1531,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1531
1531
  * @license
1532
1532
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1533
1533
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1534
- */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Tu()};let Fi;const po=new Set,se=i=>class extends ne(i){static finalize(){super.finalize();const{is:e}=this;e&&!po.has(e)&&(window.Vaadin.registrations.push(this),po.add(e),window.Vaadin.developmentModeCallback&&(Fi=oe.debounce(Fi,zn,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),Ln(Fi)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
1534
+ */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Tu()};let Fi;const po=new Set,se=i=>class extends ne(i){static finalize(){super.finalize();const{is:e}=this;e&&!po.has(e)&&(window.Vaadin.registrations.push(this),po.add(e),window.Vaadin.developmentModeCallback&&(Fi=oe.debounce(Fi,Ln,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),zn(Fi)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
1535
1535
  * @license
1536
1536
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1537
1537
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1538
- */function Vu(i){const e=[];for(;i;){if(i.nodeType===Node.DOCUMENT_NODE){e.push(i);break}if(i.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(i),i=i.host;continue}if(i.assignedSlot){i=i.assignedSlot;continue}i=i.parentNode}return e}function Rn(i){const e=[];let t;return i.localName==="slot"?t=i.assignedElements():(e.push(i),t=[...i.children]),t.forEach(r=>e.push(...Rn(r))),e}function zr(i){return i?new Set(i.split(" ")):new Set}function yi(i){return i?[...i].join(" "):""}function Fn(i,e,t){const r=zr(i.getAttribute(e));r.add(t),i.setAttribute(e,yi(r))}function Mu(i,e,t){const r=zr(i.getAttribute(e));if(r.delete(t),r.size===0){i.removeAttribute(e);return}i.setAttribute(e,yi(r))}function Nu(i){return i.nodeType===Node.TEXT_NODE&&i.textContent.trim()===""}/**
1538
+ */function Vu(i){const e=[];for(;i;){if(i.nodeType===Node.DOCUMENT_NODE){e.push(i);break}if(i.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(i),i=i.host;continue}if(i.assignedSlot){i=i.assignedSlot;continue}i=i.parentNode}return e}function Rn(i){const e=[];let t;return i.localName==="slot"?t=i.assignedElements():(e.push(i),t=[...i.children]),t.forEach(r=>e.push(...Rn(r))),e}function Lr(i){return i?new Set(i.split(" ")):new Set}function yi(i){return i?[...i].join(" "):""}function Fn(i,e,t){const r=Lr(i.getAttribute(e));r.add(t),i.setAttribute(e,yi(r))}function Mu(i,e,t){const r=Lr(i.getAttribute(e));if(r.delete(t),r.size===0){i.removeAttribute(e);return}i.setAttribute(e,yi(r))}function Nu(i){return i.nodeType===Node.TEXT_NODE&&i.textContent.trim()===""}/**
1539
1539
  * @license
1540
1540
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
1541
1541
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1542
- */class Lr{constructor(e,t){this.slot=e,this.callback=t,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const e=this.slot.assignedNodes({flatten:!0});let t=[];const r=[],a=[];e.length&&(t=e.filter(o=>!this._storedNodes.includes(o))),this._storedNodes.length&&this._storedNodes.forEach((o,n)=>{const s=e.indexOf(o);s===-1?r.push(o):s!==n&&a.push(o)}),(t.length||r.length||a.length)&&this.callback({addedNodes:t,currentNodes:e,movedNodes:a,removedNodes:r}),this._storedNodes=e}}/**
1542
+ */class zr{constructor(e,t){this.slot=e,this.callback=t,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const e=this.slot.assignedNodes({flatten:!0});let t=[];const r=[],a=[];e.length&&(t=e.filter(o=>!this._storedNodes.includes(o))),this._storedNodes.length&&this._storedNodes.forEach((o,n)=>{const s=e.indexOf(o);s===-1?r.push(o):s!==n&&a.push(o)}),(t.length||r.length||a.length)&&this.callback({addedNodes:t,currentNodes:e,movedNodes:a,removedNodes:r}),this._storedNodes=e}}/**
1543
1543
  * @license
1544
1544
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1545
1545
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1546
- */let zu=0;function Mt(){return zu++}/**
1546
+ */let Lu=0;function Mt(){return Lu++}/**
1547
1547
  * @license
1548
1548
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1549
1549
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1550
- */class ee extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${Mt()}`}constructor(e,t,r,a={}){super();const{initializer:o,multiple:n,observe:s,useUniqueId:l,uniqueIdPrefix:d}=a;this.host=e,this.slotName=t,this.tagName=r,this.observe=typeof s=="boolean"?s:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=o,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(e,d||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){const e=this.getSlotChildren();if(e.length===0){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=e,e.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){const{host:e,slotName:t,tagName:r}=this;let a=this.defaultNode;return!a&&r&&(a=document.createElement(r),a instanceof Element&&(t!==""&&a.setAttribute("slot",t),this.defaultNode=a)),a&&(this.node=a,e.appendChild(a)),a}getSlotChildren(){const{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&e==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){const{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){const{slotName:e}=this,t=e===""?"slot:not([name])":`slot[name=${e}]`,r=this.host.shadowRoot.querySelector(t);this.__slotObserver=new Lr(r,({addedNodes:a,removedNodes:o})=>{const n=this.multiple?this.nodes:[this.node],s=a.filter(l=>!Nu(l)&&!n.includes(l));o.length&&(this.nodes=n.filter(l=>!o.includes(l)),o.forEach(l=>{this.teardownNode(l)})),s&&s.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...s].filter(l=>l!==this.defaultNode),s.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=s[0],this.initAddedNode(this.node)))})}}/**
1550
+ */class ee extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${Mt()}`}constructor(e,t,r,a={}){super();const{initializer:o,multiple:n,observe:s,useUniqueId:l,uniqueIdPrefix:d}=a;this.host=e,this.slotName=t,this.tagName=r,this.observe=typeof s=="boolean"?s:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=o,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(e,d||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){const e=this.getSlotChildren();if(e.length===0){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=e,e.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){const{host:e,slotName:t,tagName:r}=this;let a=this.defaultNode;return!a&&r&&(a=document.createElement(r),a instanceof Element&&(t!==""&&a.setAttribute("slot",t),this.defaultNode=a)),a&&(this.node=a,e.appendChild(a)),a}getSlotChildren(){const{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&e==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){const{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){const{slotName:e}=this,t=e===""?"slot:not([name])":`slot[name=${e}]`,r=this.host.shadowRoot.querySelector(t);this.__slotObserver=new zr(r,({addedNodes:a,removedNodes:o})=>{const n=this.multiple?this.nodes:[this.node],s=a.filter(l=>!Nu(l)&&!n.includes(l));o.length&&(this.nodes=n.filter(l=>!o.includes(l)),o.forEach(l=>{this.teardownNode(l)})),s&&s.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...s].filter(l=>l!==this.defaultNode),s.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=s[0],this.initAddedNode(this.node)))})}}/**
1551
1551
  * @license
1552
1552
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
1553
1553
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1559,7 +1559,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1559
1559
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1560
1560
  Code distributed by Google as part of the polymer project is also
1561
1561
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1562
- */const Lu=i=>i,$n=typeof document.head.style.touchAction=="string",hr="__polymerGestures",$i="__polymerGesturesHandled",cr="__polymerGesturesTouchAction",mo=25,fo=5,Ru=2,Fu=["mousedown","mousemove","mouseup","click"],$u=[0,1,4,2],Bu=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(i){return!1}}();function Bn(i){return Fu.indexOf(i)>-1}(function(){try{const i=Object.defineProperty({},"passive",{get(){}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch(i){}})();const Hu=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Uu={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Me(i){const e=i.type;if(!Bn(e))return!1;if(e==="mousemove"){let t=i.buttons===void 0?1:i.buttons;return i instanceof window.MouseEvent&&!Bu&&(t=$u[i.which]||0),!!(t&1)}return(i.button===void 0?0:i.button)===0}function qu(i){if(i.type==="click"){if(i.detail===0)return!0;const e=Ie(i);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const t=e.getBoundingClientRect(),r=i.pageX,a=i.pageY;return!(r>=t.left&&r<=t.right&&a>=t.top&&a<=t.bottom)}return!1}const ge={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function ju(i){let e="auto";const t=Un(i);for(let r=0,a;r<t.length;r++)if(a=t[r],a[cr]){e=a[cr];break}return e}function Hn(i,e,t){i.movefn=e,i.upfn=t,document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)}function Ge(i){document.removeEventListener("mousemove",i.movefn),document.removeEventListener("mouseup",i.upfn),i.movefn=null,i.upfn=null}const Un=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:i=>i.composedPath&&i.composedPath()||[],Rr={},Ve=[];function Wu(i,e){let t=document.elementFromPoint(i,e),r=t;for(;r&&r.shadowRoot&&!window.ShadyDOM;){const a=r;if(r=r.shadowRoot.elementFromPoint(i,e),a===r)break;r&&(t=r)}return t}function Ie(i){const e=Un(i);return e.length>0?e[0]:i.target}function Yu(i){const e=i.type,t=i.currentTarget[hr];if(!t)return;const r=t[e];if(!r)return;if(!i[$i]&&(i[$i]={},e.startsWith("touch"))){const o=i.changedTouches[0];if(e==="touchstart"&&i.touches.length===1&&(ge.touch.id=o.identifier),ge.touch.id!==o.identifier)return;$n||(e==="touchstart"||e==="touchmove")&&Gu(i)}const a=i[$i];if(!a.skip){for(let o=0,n;o<Ve.length;o++)n=Ve[o],r[n.name]&&!a[n.name]&&n.flow&&n.flow.start.indexOf(i.type)>-1&&n.reset&&n.reset();for(let o=0,n;o<Ve.length;o++)n=Ve[o],r[n.name]&&!a[n.name]&&(a[n.name]=!0,n[e](i))}}function Gu(i){const e=i.changedTouches[0],t=i.type;if(t==="touchstart")ge.touch.x=e.clientX,ge.touch.y=e.clientY,ge.touch.scrollDecided=!1;else if(t==="touchmove"){if(ge.touch.scrollDecided)return;ge.touch.scrollDecided=!0;const r=ju(i);let a=!1;const o=Math.abs(ge.touch.x-e.clientX),n=Math.abs(ge.touch.y-e.clientY);i.cancelable&&(r==="none"?a=!0:r==="pan-x"?a=n>o:r==="pan-y"&&(a=o>n)),a?i.preventDefault():pi("track")}}function pe(i,e,t){return Rr[e]?(Ku(i,e,t),!0):!1}function Ku(i,e,t){const r=Rr[e],a=r.deps,o=r.name;let n=i[hr];n||(i[hr]=n={});for(let s=0,l,d;s<a.length;s++)l=a[s],!(Hu&&Bn(l)&&l!=="click")&&(d=n[l],d||(n[l]=d={_count:0}),d._count===0&&i.addEventListener(l,Yu,void 0),d[o]=(d[o]||0)+1,d._count=(d._count||0)+1);i.addEventListener(e,t),r.touchAction&&qn(i,r.touchAction)}function Fr(i){Ve.push(i),i.emits.forEach(e=>{Rr[e]=i})}function Xu(i){for(let e=0,t;e<Ve.length;e++){t=Ve[e];for(let r=0,a;r<t.emits.length;r++)if(a=t.emits[r],a===i)return t}return null}function qn(i,e){$n&&i instanceof HTMLElement&&ui.run(()=>{i.style.touchAction=e}),i[cr]=e}function $r(i,e,t){const r=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=t,Lu(i).dispatchEvent(r),r.defaultPrevented){const a=t.preventer||t.sourceEvent;a&&a.preventDefault&&a.preventDefault()}}function pi(i){const e=Xu(i);e.info&&(e.info.prevent=!0)}Fr({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Ge(this.info)},mousedown(i){if(!Me(i))return;const e=Ie(i),t=this,r=o=>{Me(o)||(mt("up",e,o),Ge(t.info))},a=o=>{Me(o)&&mt("up",e,o),Ge(t.info)};Hn(this.info,r,a),mt("down",e,i)},touchstart(i){mt("down",Ie(i),i.changedTouches[0],i)},touchend(i){mt("up",Ie(i),i.changedTouches[0],i)}});function mt(i,e,t,r){e&&$r(e,i,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:r,prevent(a){return pi(a)}})}Fr({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(i){this.moves.length>Ru&&this.moves.shift(),this.moves.push(i)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,Ge(this.info)},mousedown(i){if(!Me(i))return;const e=Ie(i),t=this,r=o=>{const n=o.clientX,s=o.clientY;vo(t.info,n,s)&&(t.info.state=t.info.started?o.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&pi("tap"),t.info.addMove({x:n,y:s}),Me(o)||(t.info.state="end",Ge(t.info)),e&&Bi(t.info,e,o),t.info.started=!0)},a=o=>{t.info.started&&r(o),Ge(t.info)};Hn(this.info,r,a),this.info.x=i.clientX,this.info.y=i.clientY},touchstart(i){const e=i.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(i){const e=Ie(i),t=i.changedTouches[0],r=t.clientX,a=t.clientY;vo(this.info,r,a)&&(this.info.state==="start"&&pi("tap"),this.info.addMove({x:r,y:a}),Bi(this.info,e,t),this.info.state="track",this.info.started=!0)},touchend(i){const e=Ie(i),t=i.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),Bi(this.info,e,t))}});function vo(i,e,t){if(i.prevent)return!1;if(i.started)return!0;const r=Math.abs(i.x-e),a=Math.abs(i.y-t);return r>=fo||a>=fo}function Bi(i,e,t){if(!e)return;const r=i.moves[i.moves.length-2],a=i.moves[i.moves.length-1],o=a.x-i.x,n=a.y-i.y;let s,l=0;r&&(s=a.x-r.x,l=a.y-r.y),$r(e,"track",{state:i.state,x:t.clientX,y:t.clientY,dx:o,dy:n,ddx:s,ddy:l,sourceEvent:t,hover(){return Wu(t.clientX,t.clientY)}})}Fr({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(i){Me(i)&&(this.info.x=i.clientX,this.info.y=i.clientY)},click(i){Me(i)&&_o(this.info,i)},touchstart(i){const e=i.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(i){_o(this.info,i.changedTouches[0],i)}});function _o(i,e,t){const r=Math.abs(e.clientX-i.x),a=Math.abs(e.clientY-i.y),o=Ie(t||e);!o||Uu[o.localName]&&o.hasAttribute("disabled")||(isNaN(r)||isNaN(a)||r<=mo&&a<=mo||qu(e))&&(i.prevent||$r(o,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t}))}/**
1562
+ */const zu=i=>i,$n=typeof document.head.style.touchAction=="string",hr="__polymerGestures",$i="__polymerGesturesHandled",cr="__polymerGesturesTouchAction",mo=25,fo=5,Ru=2,Fu=["mousedown","mousemove","mouseup","click"],$u=[0,1,4,2],Bu=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(i){return!1}}();function Bn(i){return Fu.indexOf(i)>-1}(function(){try{const i=Object.defineProperty({},"passive",{get(){}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch(i){}})();const Hu=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Uu={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Me(i){const e=i.type;if(!Bn(e))return!1;if(e==="mousemove"){let t=i.buttons===void 0?1:i.buttons;return i instanceof window.MouseEvent&&!Bu&&(t=$u[i.which]||0),!!(t&1)}return(i.button===void 0?0:i.button)===0}function qu(i){if(i.type==="click"){if(i.detail===0)return!0;const e=Ie(i);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const t=e.getBoundingClientRect(),r=i.pageX,a=i.pageY;return!(r>=t.left&&r<=t.right&&a>=t.top&&a<=t.bottom)}return!1}const ge={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function ju(i){let e="auto";const t=Un(i);for(let r=0,a;r<t.length;r++)if(a=t[r],a[cr]){e=a[cr];break}return e}function Hn(i,e,t){i.movefn=e,i.upfn=t,document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)}function Ge(i){document.removeEventListener("mousemove",i.movefn),document.removeEventListener("mouseup",i.upfn),i.movefn=null,i.upfn=null}const Un=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:i=>i.composedPath&&i.composedPath()||[],Rr={},Ve=[];function Wu(i,e){let t=document.elementFromPoint(i,e),r=t;for(;r&&r.shadowRoot&&!window.ShadyDOM;){const a=r;if(r=r.shadowRoot.elementFromPoint(i,e),a===r)break;r&&(t=r)}return t}function Ie(i){const e=Un(i);return e.length>0?e[0]:i.target}function Yu(i){const e=i.type,t=i.currentTarget[hr];if(!t)return;const r=t[e];if(!r)return;if(!i[$i]&&(i[$i]={},e.startsWith("touch"))){const o=i.changedTouches[0];if(e==="touchstart"&&i.touches.length===1&&(ge.touch.id=o.identifier),ge.touch.id!==o.identifier)return;$n||(e==="touchstart"||e==="touchmove")&&Gu(i)}const a=i[$i];if(!a.skip){for(let o=0,n;o<Ve.length;o++)n=Ve[o],r[n.name]&&!a[n.name]&&n.flow&&n.flow.start.indexOf(i.type)>-1&&n.reset&&n.reset();for(let o=0,n;o<Ve.length;o++)n=Ve[o],r[n.name]&&!a[n.name]&&(a[n.name]=!0,n[e](i))}}function Gu(i){const e=i.changedTouches[0],t=i.type;if(t==="touchstart")ge.touch.x=e.clientX,ge.touch.y=e.clientY,ge.touch.scrollDecided=!1;else if(t==="touchmove"){if(ge.touch.scrollDecided)return;ge.touch.scrollDecided=!0;const r=ju(i);let a=!1;const o=Math.abs(ge.touch.x-e.clientX),n=Math.abs(ge.touch.y-e.clientY);i.cancelable&&(r==="none"?a=!0:r==="pan-x"?a=n>o:r==="pan-y"&&(a=o>n)),a?i.preventDefault():pi("track")}}function pe(i,e,t){return Rr[e]?(Ku(i,e,t),!0):!1}function Ku(i,e,t){const r=Rr[e],a=r.deps,o=r.name;let n=i[hr];n||(i[hr]=n={});for(let s=0,l,d;s<a.length;s++)l=a[s],!(Hu&&Bn(l)&&l!=="click")&&(d=n[l],d||(n[l]=d={_count:0}),d._count===0&&i.addEventListener(l,Yu,void 0),d[o]=(d[o]||0)+1,d._count=(d._count||0)+1);i.addEventListener(e,t),r.touchAction&&qn(i,r.touchAction)}function Fr(i){Ve.push(i),i.emits.forEach(e=>{Rr[e]=i})}function Xu(i){for(let e=0,t;e<Ve.length;e++){t=Ve[e];for(let r=0,a;r<t.emits.length;r++)if(a=t.emits[r],a===i)return t}return null}function qn(i,e){$n&&i instanceof HTMLElement&&ui.run(()=>{i.style.touchAction=e}),i[cr]=e}function $r(i,e,t){const r=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=t,zu(i).dispatchEvent(r),r.defaultPrevented){const a=t.preventer||t.sourceEvent;a&&a.preventDefault&&a.preventDefault()}}function pi(i){const e=Xu(i);e.info&&(e.info.prevent=!0)}Fr({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Ge(this.info)},mousedown(i){if(!Me(i))return;const e=Ie(i),t=this,r=o=>{Me(o)||(mt("up",e,o),Ge(t.info))},a=o=>{Me(o)&&mt("up",e,o),Ge(t.info)};Hn(this.info,r,a),mt("down",e,i)},touchstart(i){mt("down",Ie(i),i.changedTouches[0],i)},touchend(i){mt("up",Ie(i),i.changedTouches[0],i)}});function mt(i,e,t,r){e&&$r(e,i,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:r,prevent(a){return pi(a)}})}Fr({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(i){this.moves.length>Ru&&this.moves.shift(),this.moves.push(i)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,Ge(this.info)},mousedown(i){if(!Me(i))return;const e=Ie(i),t=this,r=o=>{const n=o.clientX,s=o.clientY;vo(t.info,n,s)&&(t.info.state=t.info.started?o.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&pi("tap"),t.info.addMove({x:n,y:s}),Me(o)||(t.info.state="end",Ge(t.info)),e&&Bi(t.info,e,o),t.info.started=!0)},a=o=>{t.info.started&&r(o),Ge(t.info)};Hn(this.info,r,a),this.info.x=i.clientX,this.info.y=i.clientY},touchstart(i){const e=i.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(i){const e=Ie(i),t=i.changedTouches[0],r=t.clientX,a=t.clientY;vo(this.info,r,a)&&(this.info.state==="start"&&pi("tap"),this.info.addMove({x:r,y:a}),Bi(this.info,e,t),this.info.state="track",this.info.started=!0)},touchend(i){const e=Ie(i),t=i.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),Bi(this.info,e,t))}});function vo(i,e,t){if(i.prevent)return!1;if(i.started)return!0;const r=Math.abs(i.x-e),a=Math.abs(i.y-t);return r>=fo||a>=fo}function Bi(i,e,t){if(!e)return;const r=i.moves[i.moves.length-2],a=i.moves[i.moves.length-1],o=a.x-i.x,n=a.y-i.y;let s,l=0;r&&(s=a.x-r.x,l=a.y-r.y),$r(e,"track",{state:i.state,x:t.clientX,y:t.clientY,dx:o,dy:n,ddx:s,ddy:l,sourceEvent:t,hover(){return Wu(t.clientX,t.clientY)}})}Fr({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(i){Me(i)&&(this.info.x=i.clientX,this.info.y=i.clientY)},click(i){Me(i)&&_o(this.info,i)},touchstart(i){const e=i.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(i){_o(this.info,i.changedTouches[0],i)}});function _o(i,e,t){const r=Math.abs(e.clientX-i.x),a=Math.abs(e.clientY-i.y),o=Ie(t||e);!o||Uu[o.localName]&&o.hasAttribute("disabled")||(isNaN(r)||isNaN(a)||r<=mo&&a<=mo||qu(e))&&(i.prevent||$r(o,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t}))}/**
1563
1563
  * @license
1564
1564
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1565
1565
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1603,7 +1603,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1603
1603
  * @license
1604
1604
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
1605
1605
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1606
- */const Hi=new Map;function Wr(i){return Hi.has(i)||Hi.set(i,new WeakMap),Hi.get(i)}function Gn(i,e){i&&i.removeAttribute(e)}function Kn(i,e){if(!i||!e)return;const t=Wr(e);if(t.has(i))return;const r=zr(i.getAttribute(e));t.set(i,new Set(r))}function ip(i,e){if(!i||!e)return;const t=Wr(e),r=t.get(i);!r||r.size===0?i.removeAttribute(e):Fn(i,e,yi(r)),t.delete(i)}function Ke(i,e,t={newId:null,oldId:null,fromUser:!1}){if(!i||!e)return;const{newId:r,oldId:a,fromUser:o}=t,n=Wr(e),s=n.get(i);if(!o&&s){a&&s.delete(a),r&&s.add(r);return}o&&(s?r||n.delete(i):Kn(i,e),Gn(i,e)),Mu(i,e,a);const l=r||yi(s);l&&Fn(i,e,l)}function rp(i,e){Kn(i,e),Gn(i,e)}/**
1606
+ */const Hi=new Map;function Wr(i){return Hi.has(i)||Hi.set(i,new WeakMap),Hi.get(i)}function Gn(i,e){i&&i.removeAttribute(e)}function Kn(i,e){if(!i||!e)return;const t=Wr(e);if(t.has(i))return;const r=Lr(i.getAttribute(e));t.set(i,new Set(r))}function ip(i,e){if(!i||!e)return;const t=Wr(e),r=t.get(i);!r||r.size===0?i.removeAttribute(e):Fn(i,e,yi(r)),t.delete(i)}function Ke(i,e,t={newId:null,oldId:null,fromUser:!1}){if(!i||!e)return;const{newId:r,oldId:a,fromUser:o}=t,n=Wr(e),s=n.get(i);if(!o&&s){a&&s.delete(a),r&&s.add(r);return}o&&(s?r||n.delete(i):Kn(i,e),Gn(i,e)),Mu(i,e,a);const l=r||yi(s);l&&Fn(i,e,l)}function rp(i,e){Kn(i,e),Gn(i,e)}/**
1607
1607
  * @license
1608
1608
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1609
1609
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1647,15 +1647,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1647
1647
  * @license
1648
1648
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1649
1649
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1650
- */class zt extends ee{constructor(e,t,r={}){const{uniqueIdPrefix:a}=r;super(e,"input","input",{initializer:(o,n)=>{n.value&&(o.value=n.value),n.type&&o.setAttribute("type",n.type),o.id=this.defaultId,typeof t=="function"&&t(o)},useUniqueId:!0,uniqueIdPrefix:a})}}/**
1650
+ */class Lt extends ee{constructor(e,t,r={}){const{uniqueIdPrefix:a}=r;super(e,"input","input",{initializer:(o,n)=>{n.value&&(o.value=n.value),n.type&&o.setAttribute("type",n.type),o.id=this.defaultId,typeof t=="function"&&t(o)},useUniqueId:!0,uniqueIdPrefix:a})}}/**
1651
1651
  * @license
1652
1652
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1653
1653
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1654
- */class Lt{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",r=>{this.__initLabel(r.detail.node)}),this.__initLabel(t.node)}__initLabel(e){e&&(e.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&e.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const e=t=>{t.stopImmediatePropagation(),this.input.removeEventListener("click",e)};this.input.addEventListener("click",e)}}/**
1654
+ */class zt{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",r=>{this.__initLabel(r.detail.node)}),this.__initLabel(t.node)}__initLabel(e){e&&(e.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&e.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const e=t=>{t.stopImmediatePropagation(),this.input.removeEventListener("click",e)};this.input.addEventListener("click",e)}}/**
1655
1655
  * @license
1656
1656
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1657
1657
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1658
- */const lp=i=>class extends Ci(tp(xi(Br(i)))){static get properties(){return{indeterminate:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},name:{type:String,value:""},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get observers(){return["__readonlyChanged(readonly, inputElement)"]}static get delegateProps(){return[...super.delegateProps,"indeterminate"]}static get delegateAttrs(){return[...super.delegateAttrs,"name","invalid","required"]}constructor(){super(),this._setType("checkbox"),this._boundOnInputClick=this._onInputClick.bind(this),this.value="on"}ready(){super.ready(),this.addController(new zt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Lt(this.inputElement,this._labelController)),this._createMethodObserver("_checkedChanged(checked)")}_shouldSetActive(e){return this.readonly||e.target.localName==="a"||e.target===this._helperNode||e.target===this._errorNode?!1:super._shouldSetActive(e)}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("click",this._boundOnInputClick)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("click",this._boundOnInputClick)}_onInputClick(e){this.readonly&&e.preventDefault()}__readonlyChanged(e,t){t&&(e?t.setAttribute("aria-readonly","true"):t.removeAttribute("aria-readonly"))}_toggleChecked(e){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(e)}checkValidity(){return!this.required||!!this.checked}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_checkedChanged(e){(e||this.__oldChecked)&&this.validate(),this.__oldChecked=e}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate()}_onRequiredIndicatorClick(){this._labelNode.click()}};/**
1658
+ */const lp=i=>class extends Ci(tp(xi(Br(i)))){static get properties(){return{indeterminate:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},name:{type:String,value:""},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get observers(){return["__readonlyChanged(readonly, inputElement)"]}static get delegateProps(){return[...super.delegateProps,"indeterminate"]}static get delegateAttrs(){return[...super.delegateAttrs,"name","invalid","required"]}constructor(){super(),this._setType("checkbox"),this._boundOnInputClick=this._onInputClick.bind(this),this.value="on"}ready(){super.ready(),this.addController(new Lt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new zt(this.inputElement,this._labelController)),this._createMethodObserver("_checkedChanged(checked)")}_shouldSetActive(e){return this.readonly||e.target.localName==="a"||e.target===this._helperNode||e.target===this._errorNode?!1:super._shouldSetActive(e)}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("click",this._boundOnInputClick)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("click",this._boundOnInputClick)}_onInputClick(e){this.readonly&&e.preventDefault()}__readonlyChanged(e,t){t&&(e?t.setAttribute("aria-readonly","true"):t.removeAttribute("aria-readonly"))}_toggleChecked(e){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(e)}checkValidity(){return!this.required||!!this.checked}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_checkedChanged(e){(e||this.__oldChecked)&&this.validate(),this.__oldChecked=e}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate()}_onRequiredIndicatorClick(){this._labelNode.click()}};/**
1659
1659
  * @license
1660
1660
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1661
1661
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1751,7 +1751,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1751
1751
  * @license
1752
1752
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1753
1753
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1754
- */g("vaadin-checkbox",dp,{moduleId:"vaadin-checkbox-styles"});class hp extends lp(se(z(I))){static get is(){return"vaadin-checkbox"}static get template(){return S`
1754
+ */g("vaadin-checkbox",dp,{moduleId:"vaadin-checkbox-styles"});class hp extends lp(se(L(I))){static get is(){return"vaadin-checkbox"}static get template(){return S`
1755
1755
  <div class="vaadin-checkbox-container">
1756
1756
  <div part="checkbox" aria-hidden="true"></div>
1757
1757
  <slot name="input"></slot>
@@ -1990,7 +1990,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1990
1990
  * @license
1991
1991
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
1992
1992
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1993
- */const up=i=>class extends Ci(Fe(rt(i))){static get properties(){return{value:{type:Array,value:()=>[],notify:!0,sync:!0,observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__readonlyChanged"}}}constructor(){super(),this.__registerCheckbox=this.__registerCheckbox.bind(this),this.__unregisterCheckbox=this.__unregisterCheckbox.bind(this),this.__onCheckboxCheckedChanged=this.__onCheckboxCheckedChanged.bind(this),this._tooltipController=new xe(this),this._tooltipController.addEventListener("tooltip-changed",e=>{const t=e.detail.node;if(t&&t.isConnected){const r=this.__checkboxes.map(a=>a.inputElement);this._tooltipController.setAriaTarget(r)}else this._tooltipController.setAriaTarget([])})}get __checkboxes(){return this.__filterCheckboxes([...this.children])}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","group");const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Lr(e,({addedNodes:t,removedNodes:r})=>{const a=this.__filterCheckboxes(t),o=this.__filterCheckboxes(r);a.forEach(this.__registerCheckbox),o.forEach(this.__unregisterCheckbox);const n=this.__checkboxes.map(s=>s.inputElement);this._tooltipController.setAriaTarget(n),this.__warnOfCheckboxesWithoutValue(a)}),this.addController(this._tooltipController)}checkValidity(){return!this.required||!!(this.value&&this.value.length>0)}__filterCheckboxes(e){return e.filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.localName==="vaadin-checkbox")}__warnOfCheckboxesWithoutValue(e){e.some(t=>{const{value:r}=t;return!t.hasAttribute("value")&&(!r||r==="on")})&&console.warn("Please provide the value attribute to all the checkboxes inside the checkbox group.")}__registerCheckbox(e){e.addEventListener("checked-changed",this.__onCheckboxCheckedChanged),this.disabled&&(e.disabled=!0),this.readonly&&(e.readonly=!0),e.checked?this.__addCheckboxToValue(e.value):this.value&&this.value.includes(e.value)&&(e.checked=!0)}__unregisterCheckbox(e){e.removeEventListener("checked-changed",this.__onCheckboxCheckedChanged),e.checked&&this.__removeCheckboxFromValue(e.value)}_disabledChanged(e,t){super._disabledChanged(e,t),!(!e&&t===void 0)&&t!==e&&this.__checkboxes.forEach(r=>{r.disabled=e})}__addCheckboxToValue(e){this.value?this.value.includes(e)||(this.value=[...this.value,e]):this.value=[e]}__removeCheckboxFromValue(e){this.value&&this.value.includes(e)&&(this.value=this.value.filter(t=>t!==e))}__onCheckboxCheckedChanged(e){const t=e.target;t.checked?this.__addCheckboxToValue(t.value):this.__removeCheckboxFromValue(t.value)}__valueChanged(e,t){e&&e.length===0&&t===void 0||(this.toggleAttribute("has-value",e&&e.length>0),this.__checkboxes.forEach(r=>{r.checked=e&&e.includes(r.value)}),t!==void 0&&this.validate())}__readonlyChanged(e,t){(e||t)&&this.__checkboxes.forEach(r=>{r.readonly=e})}_shouldRemoveFocus(e){return!this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}};/**
1993
+ */const up=i=>class extends Ci(Fe(rt(i))){static get properties(){return{value:{type:Array,value:()=>[],notify:!0,sync:!0,observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__readonlyChanged"}}}constructor(){super(),this.__registerCheckbox=this.__registerCheckbox.bind(this),this.__unregisterCheckbox=this.__unregisterCheckbox.bind(this),this.__onCheckboxCheckedChanged=this.__onCheckboxCheckedChanged.bind(this),this._tooltipController=new xe(this),this._tooltipController.addEventListener("tooltip-changed",e=>{const t=e.detail.node;if(t&&t.isConnected){const r=this.__checkboxes.map(a=>a.inputElement);this._tooltipController.setAriaTarget(r)}else this._tooltipController.setAriaTarget([])})}get __checkboxes(){return this.__filterCheckboxes([...this.children])}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","group");const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new zr(e,({addedNodes:t,removedNodes:r})=>{const a=this.__filterCheckboxes(t),o=this.__filterCheckboxes(r);a.forEach(this.__registerCheckbox),o.forEach(this.__unregisterCheckbox);const n=this.__checkboxes.map(s=>s.inputElement);this._tooltipController.setAriaTarget(n),this.__warnOfCheckboxesWithoutValue(a)}),this.addController(this._tooltipController)}checkValidity(){return!this.required||!!(this.value&&this.value.length>0)}__filterCheckboxes(e){return e.filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.localName==="vaadin-checkbox")}__warnOfCheckboxesWithoutValue(e){e.some(t=>{const{value:r}=t;return!t.hasAttribute("value")&&(!r||r==="on")})&&console.warn("Please provide the value attribute to all the checkboxes inside the checkbox group.")}__registerCheckbox(e){e.addEventListener("checked-changed",this.__onCheckboxCheckedChanged),this.disabled&&(e.disabled=!0),this.readonly&&(e.readonly=!0),e.checked?this.__addCheckboxToValue(e.value):this.value&&this.value.includes(e.value)&&(e.checked=!0)}__unregisterCheckbox(e){e.removeEventListener("checked-changed",this.__onCheckboxCheckedChanged),e.checked&&this.__removeCheckboxFromValue(e.value)}_disabledChanged(e,t){super._disabledChanged(e,t),!(!e&&t===void 0)&&t!==e&&this.__checkboxes.forEach(r=>{r.disabled=e})}__addCheckboxToValue(e){this.value?this.value.includes(e)||(this.value=[...this.value,e]):this.value=[e]}__removeCheckboxFromValue(e){this.value&&this.value.includes(e)&&(this.value=this.value.filter(t=>t!==e))}__onCheckboxCheckedChanged(e){const t=e.target;t.checked?this.__addCheckboxToValue(t.value):this.__removeCheckboxFromValue(t.value)}__valueChanged(e,t){e&&e.length===0&&t===void 0||(this.toggleAttribute("has-value",e&&e.length>0),this.__checkboxes.forEach(r=>{r.checked=e&&e.includes(r.value)}),t!==void 0&&this.validate())}__readonlyChanged(e,t){(e||t)&&this.__checkboxes.forEach(r=>{r.readonly=e})}_shouldRemoveFocus(e){return!this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}};/**
1994
1994
  * @license
1995
1995
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
1996
1996
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2027,7 +2027,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2027
2027
  * @license
2028
2028
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
2029
2029
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2030
- */g("vaadin-checkbox-group",pp,{moduleId:"vaadin-checkbox-group-styles"});class mp extends up(se(z(I))){static get is(){return"vaadin-checkbox-group"}static get template(){return S`
2030
+ */g("vaadin-checkbox-group",pp,{moduleId:"vaadin-checkbox-group-styles"});class mp extends up(se(L(I))){static get is(){return"vaadin-checkbox-group"}static get template(){return S`
2031
2031
  <div class="vaadin-group-field-container">
2032
2032
  <div part="label">
2033
2033
  <slot name="label"></slot>
@@ -3298,7 +3298,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3298
3298
  * @license
3299
3299
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3300
3300
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3301
- */g("vaadin-input-container",yp,{moduleId:"vaadin-input-container-styles"});class Zn extends bp(z(ne(I))){static get is(){return"vaadin-input-container"}static get template(){return S`
3301
+ */g("vaadin-input-container",yp,{moduleId:"vaadin-input-container-styles"});class Zn extends bp(L(ne(I))){static get is(){return"vaadin-input-container"}static get template(){return S`
3302
3302
  <slot name="prefix"></slot>
3303
3303
  <slot></slot>
3304
3304
  <slot name="suffix"></slot>
@@ -3409,15 +3409,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3409
3409
  * @license
3410
3410
  * Copyright (c) 2024 Vaadin Ltd.
3411
3411
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3412
- */function zp(i,e){let t=null;const r=document.documentElement;function a(){t&&t.disconnect(),t=null}function o(n=!1,s=1){a();const{left:l,top:d,width:c,height:u}=i.getBoundingClientRect();if(n||e(),!c||!u)return;const m=Math.floor(d),p=Math.floor(r.clientWidth-(l+c)),y=Math.floor(r.clientHeight-(d+u)),M=Math.floor(l),D={rootMargin:`${-m}px ${-p}px ${-y}px ${-M}px`,threshold:Math.max(0,Math.min(1,s))||1};let C=!0;function T(H){let R=H[0].intersectionRatio;if(R!==s){if(!C)return o();R===0&&(R=1e-7),o(!1,R)}C=!1}t=new IntersectionObserver(T,D),t.observe(i)}return o(!0),a}/**
3412
+ */function Lp(i,e){let t=null;const r=document.documentElement;function a(){t&&t.disconnect(),t=null}function o(n=!1,s=1){a();const{left:l,top:d,width:c,height:u}=i.getBoundingClientRect();if(n||e(),!c||!u)return;const m=Math.floor(d),p=Math.floor(r.clientWidth-(l+c)),y=Math.floor(r.clientHeight-(d+u)),M=Math.floor(l),D={rootMargin:`${-m}px ${-p}px ${-y}px ${-M}px`,threshold:Math.max(0,Math.min(1,s))||1};let C=!0;function T(H){let R=H[0].intersectionRatio;if(R!==s){if(!C)return o();R===0&&(R=1e-7),o(!1,R)}C=!1}t=new IntersectionObserver(T,D),t.observe(i)}return o(!0),a}/**
3413
3413
  * @license
3414
3414
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3415
3415
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3416
- */const Wi={start:"top",end:"bottom"},Yi={start:"left",end:"right"},bo=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),ea=i=>class extends i{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=Vu(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=zp(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(e,t){if(this.__removeUpdatePositionEventListeners(),t&&(t.__overlay=null,bo.unobserve(t),e&&(this.__addUpdatePositionEventListeners(),t.__overlay=this,bo.observe(t))),e){const r=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(a=>{this.__margins[a]=parseInt(r[a],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){e.target instanceof Node&&this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const e=this.positionTarget.getBoundingClientRect();if(e.width===0&&e.height===0&&this.opened){this.opened=!1;return}const t=this.__shouldAlignStartVertically(e);this.style.justifyContent=t?"flex-start":"flex-end";const r=this.__isRTL,a=this.__shouldAlignStartHorizontally(e,r),o=!r&&a||r&&!a;this.style.alignItems=o?"flex-start":"flex-end";const n=this.getBoundingClientRect(),s=this.__calculatePositionInOneDimension(e,n,this.noVerticalOverlap,Wi,this,t),l=this.__calculatePositionInOneDimension(e,n,this.noHorizontalOverlap,Yi,this,a);Object.assign(this.style,s,l),this.toggleAttribute("bottom-aligned",!t),this.toggleAttribute("top-aligned",t),this.toggleAttribute("end-aligned",!o),this.toggleAttribute("start-aligned",o)}__shouldAlignStartHorizontally(e,t){const r=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const a=Math.min(window.innerWidth,document.documentElement.clientWidth),o=!t&&this.horizontalAlign==="start"||t&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,r,a,this.__margins,o,this.noHorizontalOverlap,Yi)}__shouldAlignStartVertically(e){const t=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const r=Math.min(window.innerHeight,document.documentElement.clientHeight),a=this.verticalAlign==="top";return this.__shouldAlignStart(e,t,r,this.__margins,a,this.noVerticalOverlap,Wi)}__shouldAlignStart(e,t,r,a,o,n,s){const l=r-e[n?s.end:s.start]-a[s.end],d=e[n?s.start:s.end]-a[s.start],c=o?l:d,u=c>(o?d:l)||c>t;return o===u}__adjustBottomProperty(e,t,r){let a;if(e===t.end){if(t.end===Wi.end){const o=Math.min(window.innerHeight,document.documentElement.clientHeight);if(r>o&&this.__oldViewportHeight){const n=this.__oldViewportHeight-o;a=r-n}this.__oldViewportHeight=o}if(t.end===Yi.end){const o=Math.min(window.innerWidth,document.documentElement.clientWidth);if(r>o&&this.__oldViewportWidth){const n=this.__oldViewportWidth-o;a=r-n}this.__oldViewportWidth=o}}return a}__calculatePositionInOneDimension(e,t,r,a,o,n){const s=n?a.start:a.end,l=n?a.end:a.start,d=parseFloat(o.style[s]||getComputedStyle(o)[s]),c=this.__adjustBottomProperty(s,a,d),u=t[n?a.start:a.end]-e[r===n?a.end:a.start],m=c?`${c}px`:`${d+u*(n?-1:1)}px`;return{[s]:m,[l]:""}}};/**
3416
+ */const Wi={start:"top",end:"bottom"},Yi={start:"left",end:"right"},bo=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),ea=i=>class extends i{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=Vu(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=Lp(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(e,t){if(this.__removeUpdatePositionEventListeners(),t&&(t.__overlay=null,bo.unobserve(t),e&&(this.__addUpdatePositionEventListeners(),t.__overlay=this,bo.observe(t))),e){const r=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(a=>{this.__margins[a]=parseInt(r[a],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){e.target instanceof Node&&this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const e=this.positionTarget.getBoundingClientRect();if(e.width===0&&e.height===0&&this.opened){this.opened=!1;return}const t=this.__shouldAlignStartVertically(e);this.style.justifyContent=t?"flex-start":"flex-end";const r=this.__isRTL,a=this.__shouldAlignStartHorizontally(e,r),o=!r&&a||r&&!a;this.style.alignItems=o?"flex-start":"flex-end";const n=this.getBoundingClientRect(),s=this.__calculatePositionInOneDimension(e,n,this.noVerticalOverlap,Wi,this,t),l=this.__calculatePositionInOneDimension(e,n,this.noHorizontalOverlap,Yi,this,a);Object.assign(this.style,s,l),this.toggleAttribute("bottom-aligned",!t),this.toggleAttribute("top-aligned",t),this.toggleAttribute("end-aligned",!o),this.toggleAttribute("start-aligned",o)}__shouldAlignStartHorizontally(e,t){const r=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const a=Math.min(window.innerWidth,document.documentElement.clientWidth),o=!t&&this.horizontalAlign==="start"||t&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,r,a,this.__margins,o,this.noHorizontalOverlap,Yi)}__shouldAlignStartVertically(e){const t=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const r=Math.min(window.innerHeight,document.documentElement.clientHeight),a=this.verticalAlign==="top";return this.__shouldAlignStart(e,t,r,this.__margins,a,this.noVerticalOverlap,Wi)}__shouldAlignStart(e,t,r,a,o,n,s){const l=r-e[n?s.end:s.start]-a[s.end],d=e[n?s.start:s.end]-a[s.start],c=o?l:d,u=c>(o?d:l)||c>t;return o===u}__adjustBottomProperty(e,t,r){let a;if(e===t.end){if(t.end===Wi.end){const o=Math.min(window.innerHeight,document.documentElement.clientHeight);if(r>o&&this.__oldViewportHeight){const n=this.__oldViewportHeight-o;a=r-n}this.__oldViewportHeight=o}if(t.end===Yi.end){const o=Math.min(window.innerWidth,document.documentElement.clientWidth);if(r>o&&this.__oldViewportWidth){const n=this.__oldViewportWidth-o;a=r-n}this.__oldViewportWidth=o}}return a}__calculatePositionInOneDimension(e,t,r,a,o,n){const s=n?a.start:a.end,l=n?a.end:a.start,d=parseFloat(o.style[s]||getComputedStyle(o)[s]),c=this.__adjustBottomProperty(s,a,d),u=t[n?a.start:a.end]-e[r===n?a.end:a.start],m=c?`${c}px`:`${d+u*(n?-1:1)}px`;return{[s]:m,[l]:""}}};/**
3417
3417
  * @license
3418
3418
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
3419
3419
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3420
- */const Lp=i=>class extends ea(Ft(i)){_shouldCloseOnOutsideClick(e){return!e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Ur(e.composedPath()[0])&&e.preventDefault()}};/**
3420
+ */const zp=i=>class extends ea(Ft(i)){_shouldCloseOnOutsideClick(e){return!e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Ur(e.composedPath()[0])&&e.preventDefault()}};/**
3421
3421
  * @license
3422
3422
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3423
3423
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3440,7 +3440,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3440
3440
  * @license
3441
3441
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3442
3442
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3443
- */g("vaadin-date-picker-overlay",[Rt,Rp],{moduleId:"vaadin-date-picker-overlay-styles"});class Fp extends Lp(ne(z(I))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return S`
3443
+ */g("vaadin-date-picker-overlay",[Rt,Rp],{moduleId:"vaadin-date-picker-overlay-styles"});class Fp extends zp(ne(L(I))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return S`
3444
3444
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
3445
3445
  <div part="overlay" id="overlay">
3446
3446
  <div part="content" id="content">
@@ -3532,7 +3532,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3532
3532
  * @license
3533
3533
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3534
3534
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3535
- */g("vaadin-button",os,{moduleId:"vaadin-button-styles"});class Bp extends ta(se(z(ve(I)))){static get is(){return"vaadin-button"}static get template(){return $p(S)}ready(){super.ready(),this._tooltipController=new xe(this),this.addController(this._tooltipController)}}x(Bp);/**
3535
+ */g("vaadin-button",os,{moduleId:"vaadin-button-styles"});class Bp extends ta(se(L(ve(I)))){static get is(){return"vaadin-button"}static get template(){return $p(S)}ready(){super.ready(),this._tooltipController=new xe(this),this.addController(this._tooltipController)}}x(Bp);/**
3536
3536
  * @license
3537
3537
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3538
3538
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3668,7 +3668,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3668
3668
  * @license
3669
3669
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3670
3670
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3671
- */class Qp extends z(Xp(I)){static get is(){return"vaadin-date-picker-year"}static get template(){return S`
3671
+ */class Qp extends L(Xp(I)){static get is(){return"vaadin-date-picker-year"}static get template(){return S`
3672
3672
  <style>
3673
3673
  :host {
3674
3674
  display: block;
@@ -3777,7 +3777,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3777
3777
  * @license
3778
3778
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3779
3779
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3780
- */g("vaadin-month-calendar",fm,{moduleId:"vaadin-month-calendar-styles"});class vm extends mm(z(I)){static get template(){return S`
3780
+ */g("vaadin-month-calendar",fm,{moduleId:"vaadin-month-calendar-styles"});class vm extends mm(L(I)){static get template(){return S`
3781
3781
  <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
3782
3782
  <table
3783
3783
  id="monthGrid"
@@ -3895,7 +3895,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3895
3895
  * @license
3896
3896
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3897
3897
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3898
- */g("vaadin-date-picker-overlay-content",gm,{moduleId:"vaadin-date-picker-overlay-content-styles"});class bm extends _m(ve(z(ne(I)))){static get template(){return S`
3898
+ */g("vaadin-date-picker-overlay-content",gm,{moduleId:"vaadin-date-picker-overlay-content-styles"});class bm extends _m(ve(L(ne(I)))){static get template(){return S`
3899
3899
  <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
3900
3900
  <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
3901
3901
  <div part="clear-button" hidden$="[[!selectedDate]]"></div>
@@ -4040,7 +4040,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4040
4040
  * @license
4041
4041
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
4042
4042
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4043
- */g("vaadin-date-picker",[Ii,Em],{moduleId:"vaadin-date-picker-styles"});class Sm extends km(Si(z(se(I)))){static get is(){return"vaadin-date-picker"}static get template(){return S`
4043
+ */g("vaadin-date-picker",[Ii,Em],{moduleId:"vaadin-date-picker-styles"});class Sm extends km(Si(L(se(I)))){static get is(){return"vaadin-date-picker"}static get template(){return S`
4044
4044
  <div class="vaadin-date-picker-container">
4045
4045
  <div part="label">
4046
4046
  <slot name="label"></slot>
@@ -4082,7 +4082,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4082
4082
  ></vaadin-date-picker-overlay>
4083
4083
 
4084
4084
  <slot name="tooltip"></slot>
4085
- `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new zt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new Lt(this.inputElement,this._labelController)),this._tooltipController=new xe(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}x(Sm);/**
4085
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Lt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new zt(this.inputElement,this._labelController)),this._tooltipController=new xe(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}x(Sm);/**
4086
4086
  * @license
4087
4087
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
4088
4088
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4094,11 +4094,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4094
4094
  * @license
4095
4095
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4096
4096
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4097
- */const Tm=i=>class extends Im(i){static get properties(){return{maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return[...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text")}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new zt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Lt(this.inputElement,this._labelController))}};/**
4097
+ */const Tm=i=>class extends Im(i){static get properties(){return{maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return[...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text")}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Lt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new zt(this.inputElement,this._labelController))}};/**
4098
4098
  * @license
4099
4099
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
4100
4100
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4101
- */g("vaadin-text-field",Ii,{moduleId:"vaadin-text-field-styles"});class _s extends Tm(z(se(I))){static get is(){return"vaadin-text-field"}static get template(){return S`
4101
+ */g("vaadin-text-field",Ii,{moduleId:"vaadin-text-field-styles"});class _s extends Tm(L(se(I))){static get is(){return"vaadin-text-field"}static get template(){return S`
4102
4102
  <div class="vaadin-field-container">
4103
4103
  <div part="label">
4104
4104
  <slot name="label"></slot>
@@ -4170,7 +4170,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4170
4170
  * @license
4171
4171
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4172
4172
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4173
- */g("vaadin-password-field-button",os,{moduleId:"vaadin-password-field-button-styles"});class Dm extends ta(ne(z(I))){static get is(){return"vaadin-password-field-button"}static get template(){return S``}}x(Dm);/**
4173
+ */g("vaadin-password-field-button",os,{moduleId:"vaadin-password-field-button-styles"});class Dm extends ta(ne(L(I))){static get is(){return"vaadin-password-field-button"}static get template(){return S``}}x(Dm);/**
4174
4174
  * @license
4175
4175
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4176
4176
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4374,7 +4374,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4374
4374
  * @license
4375
4375
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4376
4376
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4377
- */class zm extends xs(z(ne(I))){static get template(){return S`
4377
+ */class Lm extends xs(L(ne(I))){static get template(){return S`
4378
4378
  <style>
4379
4379
  :host {
4380
4380
  display: block;
@@ -4388,7 +4388,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4388
4388
  <div part="content">
4389
4389
  <slot></slot>
4390
4390
  </div>
4391
- `}static get is(){return"vaadin-combo-box-item"}}x(zm);/**
4391
+ `}static get is(){return"vaadin-combo-box-item"}}x(Lm);/**
4392
4392
  * @license
4393
4393
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4394
4394
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4396,7 +4396,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4396
4396
  * @license
4397
4397
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4398
4398
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4399
- */const Lm=f`
4399
+ */const zm=f`
4400
4400
  #overlay {
4401
4401
  width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
4402
4402
  }
@@ -4406,7 +4406,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4406
4406
  flex-direction: column;
4407
4407
  height: 100%;
4408
4408
  }
4409
- `;g("vaadin-combo-box-overlay",[Rt,Lm],{moduleId:"vaadin-combo-box-overlay-styles"});class Rm extends Cs(Ft(ne(z(I)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return S`
4409
+ `;g("vaadin-combo-box-overlay",[Rt,zm],{moduleId:"vaadin-combo-box-overlay-styles"});class Rm extends Cs(Ft(ne(L(I)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return S`
4410
4410
  <div id="backdrop" part="backdrop" hidden></div>
4411
4411
  <div part="overlay" id="overlay">
4412
4412
  <div part="loader"></div>
@@ -4424,7 +4424,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4424
4424
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
4425
4425
  * Code distributed by Google as part of the polymer project is also
4426
4426
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
4427
- */const Co=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),Fm=Co&&Co[1]>=8,ko=3,$m={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){const i=this._virtualCount;return Math.max(0,i-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(i){i=this._clamp(i,0,this._maxVirtualStart),this._virtualStartVal=i},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(i){i%=this._physicalCount,i<0&&(i=this._physicalCount+i),this._physicalStartVal=i},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(i){this._physicalCountVal=i},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let i=this._firstVisibleIndexVal;if(i==null){let e=this._physicalTop+this._scrollOffset;i=this._iterateItems((t,r)=>{if(e+=this._getPhysicalSizeIncrement(t),e>this._scrollPosition)return r})||0,this._firstVisibleIndexVal=i}return i},get lastVisibleIndex(){let i=this._lastVisibleIndexVal;if(i==null){let e=this._physicalTop+this._scrollOffset;this._iterateItems((t,r)=>{e<this._scrollBottom&&(i=r),e+=this._getPhysicalSizeIncrement(t)}),this._lastVisibleIndexVal=i}return i},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const i=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let e=i-this._scrollPosition;const t=e>=0;if(this._scrollPosition=i,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){e-=this._scrollOffset;const r=Math.round(e/this._physicalAverage);this._virtualStart+=r,this._physicalStart+=r,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const r=this._getReusables(t);t?(this._physicalTop=r.physicalTop,this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length):(this._virtualStart-=r.indexes.length,this._physicalStart-=r.indexes.length),this._update(r.indexes,t?null:r.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),ui)}},_getReusables(i){let e,t,r;const a=[],o=this._hiddenContentSize*this._ratio,n=this._virtualStart,s=this._virtualEnd,l=this._physicalCount;let d=this._physicalTop+this._scrollOffset;const c=this._physicalBottom+this._scrollOffset,u=this._scrollPosition,m=this._scrollBottom;for(i?(e=this._physicalStart,t=u-d):(e=this._physicalEnd,t=c-m);r=this._getPhysicalSizeIncrement(e),t-=r,!(a.length>=l||t<=o);)if(i){if(s+a.length+1>=this._virtualCount||d+r>=u-this._scrollOffset)break;a.push(e),d+=r,e=(e+1)%l}else{if(n-a.length<=0||d+this._physicalSize-r<=m)break;a.push(e),d-=r,e=e===0?l-1:e-1}return{indexes:a,physicalTop:d-this._scrollOffset}},_update(i,e){if(!(i&&i.length===0||this._physicalCount===0)){if(this._assignModels(i),this._updateMetrics(i),e)for(;e.length;){const t=e.pop();this._physicalTop-=this._getPhysicalSizeIncrement(t)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(i){const e=this._clamp(this._physicalCount+i,ko,this._virtualCount-this._virtualStart)-this._physicalCount;let t=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const r=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let a=0;a<e;a++)this._physicalSizes.push(0);this._physicalCount+=e,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e),this._update(),this._templateCost=(window.performance.now()-r)/e,t=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||t===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,t)),zn):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,t),ui))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const i=this._getReusables(!0);this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length,this._update(i.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(ko))},_itemsChanged(i){i.path==="items"&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,At))},_iterateItems(i,e){let t,r,a,o;if(arguments.length===2&&e){for(o=0;o<e.length;o++)if(t=e[o],r=this._computeVidx(t),(a=i.call(this,t,r))!=null)return a}else{for(t=this._physicalStart,r=this._virtualStart;t<this._physicalCount;t++,r++)if((a=i.call(this,t,r))!=null)return a;for(t=0;t<this._physicalStart;t++,r++)if((a=i.call(this,t,r))!=null)return a}},_computeVidx(i){return i>=this._physicalStart?this._virtualStart+(i-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+i},_positionItems(){this._adjustScrollPosition();let i=this._physicalTop;this._iterateItems(e=>{this.translate3d(0,`${i}px`,0,this._physicalItems[e]),i+=this._physicalSizes[e]})},_getPhysicalSizeIncrement(i){return this._physicalSizes[i]},_adjustScrollPosition(){const i=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(i!==0){this._physicalTop-=i;const e=this._scrollPosition;!Fm&&e>0&&this._resetScrollPosition(e-i)}},_resetScrollPosition(i){this.scrollTarget&&i>=0&&(this._scrollTop=i,this._scrollPosition=this._scrollTop)},_updateScrollerSize(i){const e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(i||this._scrollHeight===0||this._scrollPosition>=e-this._physicalSize||Math.abs(e-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${e}px`,this._scrollHeight=e)},scrollToIndex(i){if(typeof i!="number"||i<0||i>this.items.length-1||(gt(),this._physicalCount===0))return;i=this._clamp(i,0,this._virtualCount-1),(!this._isIndexRendered(i)||i>=this._maxVirtualStart)&&(this._virtualStart=i-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,t=this._virtualStart,r=0;const a=this._hiddenContentSize;for(;t<i&&r<=a;)r+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,t+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+r),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},At)},_isIndexRendered(i){return i>=this._virtualStart&&i<=this._virtualEnd},_getPhysicalIndex(i){return(this._physicalStart+(i-this._virtualStart))%this._physicalCount},_clamp(i,e,t){return Math.min(t,Math.max(e,i))},_debounce(i,e,t){this._debouncers||(this._debouncers={}),this._debouncers[i]=oe.debounce(this._debouncers[i],t,e.bind(this)),Ln(this._debouncers[i])}};/**
4427
+ */const Co=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),Fm=Co&&Co[1]>=8,ko=3,$m={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){const i=this._virtualCount;return Math.max(0,i-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(i){i=this._clamp(i,0,this._maxVirtualStart),this._virtualStartVal=i},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(i){i%=this._physicalCount,i<0&&(i=this._physicalCount+i),this._physicalStartVal=i},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(i){this._physicalCountVal=i},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let i=this._firstVisibleIndexVal;if(i==null){let e=this._physicalTop+this._scrollOffset;i=this._iterateItems((t,r)=>{if(e+=this._getPhysicalSizeIncrement(t),e>this._scrollPosition)return r})||0,this._firstVisibleIndexVal=i}return i},get lastVisibleIndex(){let i=this._lastVisibleIndexVal;if(i==null){let e=this._physicalTop+this._scrollOffset;this._iterateItems((t,r)=>{e<this._scrollBottom&&(i=r),e+=this._getPhysicalSizeIncrement(t)}),this._lastVisibleIndexVal=i}return i},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const i=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let e=i-this._scrollPosition;const t=e>=0;if(this._scrollPosition=i,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){e-=this._scrollOffset;const r=Math.round(e/this._physicalAverage);this._virtualStart+=r,this._physicalStart+=r,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const r=this._getReusables(t);t?(this._physicalTop=r.physicalTop,this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length):(this._virtualStart-=r.indexes.length,this._physicalStart-=r.indexes.length),this._update(r.indexes,t?null:r.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),ui)}},_getReusables(i){let e,t,r;const a=[],o=this._hiddenContentSize*this._ratio,n=this._virtualStart,s=this._virtualEnd,l=this._physicalCount;let d=this._physicalTop+this._scrollOffset;const c=this._physicalBottom+this._scrollOffset,u=this._scrollPosition,m=this._scrollBottom;for(i?(e=this._physicalStart,t=u-d):(e=this._physicalEnd,t=c-m);r=this._getPhysicalSizeIncrement(e),t-=r,!(a.length>=l||t<=o);)if(i){if(s+a.length+1>=this._virtualCount||d+r>=u-this._scrollOffset)break;a.push(e),d+=r,e=(e+1)%l}else{if(n-a.length<=0||d+this._physicalSize-r<=m)break;a.push(e),d-=r,e=e===0?l-1:e-1}return{indexes:a,physicalTop:d-this._scrollOffset}},_update(i,e){if(!(i&&i.length===0||this._physicalCount===0)){if(this._assignModels(i),this._updateMetrics(i),e)for(;e.length;){const t=e.pop();this._physicalTop-=this._getPhysicalSizeIncrement(t)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(i){const e=this._clamp(this._physicalCount+i,ko,this._virtualCount-this._virtualStart)-this._physicalCount;let t=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const r=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let a=0;a<e;a++)this._physicalSizes.push(0);this._physicalCount+=e,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e),this._update(),this._templateCost=(window.performance.now()-r)/e,t=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||t===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,t)),Ln):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,t),ui))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const i=this._getReusables(!0);this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length,this._update(i.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(ko))},_itemsChanged(i){i.path==="items"&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,At))},_iterateItems(i,e){let t,r,a,o;if(arguments.length===2&&e){for(o=0;o<e.length;o++)if(t=e[o],r=this._computeVidx(t),(a=i.call(this,t,r))!=null)return a}else{for(t=this._physicalStart,r=this._virtualStart;t<this._physicalCount;t++,r++)if((a=i.call(this,t,r))!=null)return a;for(t=0;t<this._physicalStart;t++,r++)if((a=i.call(this,t,r))!=null)return a}},_computeVidx(i){return i>=this._physicalStart?this._virtualStart+(i-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+i},_positionItems(){this._adjustScrollPosition();let i=this._physicalTop;this._iterateItems(e=>{this.translate3d(0,`${i}px`,0,this._physicalItems[e]),i+=this._physicalSizes[e]})},_getPhysicalSizeIncrement(i){return this._physicalSizes[i]},_adjustScrollPosition(){const i=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(i!==0){this._physicalTop-=i;const e=this._scrollPosition;!Fm&&e>0&&this._resetScrollPosition(e-i)}},_resetScrollPosition(i){this.scrollTarget&&i>=0&&(this._scrollTop=i,this._scrollPosition=this._scrollTop)},_updateScrollerSize(i){const e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(i||this._scrollHeight===0||this._scrollPosition>=e-this._physicalSize||Math.abs(e-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${e}px`,this._scrollHeight=e)},scrollToIndex(i){if(typeof i!="number"||i<0||i>this.items.length-1||(gt(),this._physicalCount===0))return;i=this._clamp(i,0,this._virtualCount-1),(!this._isIndexRendered(i)||i>=this._maxVirtualStart)&&(this._virtualStart=i-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,t=this._virtualStart,r=0;const a=this._hiddenContentSize;for(;t<i&&r<=a;)r+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,t+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+r),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},At)},_isIndexRendered(i){return i>=this._virtualStart&&i<=this._virtualEnd},_getPhysicalIndex(i){return(this._physicalStart+(i-this._virtualStart))%this._physicalCount},_clamp(i,e,t){return Math.min(t,Math.max(e,i))},_debounce(i,e,t){this._debouncers||(this._debouncers={}),this._debouncers[i]=oe.debounce(this._debouncers[i],t,e.bind(this)),zn(this._debouncers[i])}};/**
4428
4428
  * @license
4429
4429
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4430
4430
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4499,7 +4499,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4499
4499
  * @license
4500
4500
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4501
4501
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4502
- */g("vaadin-combo-box",Ii,{moduleId:"vaadin-combo-box-styles"});class Wm extends Ts(Ps(qm(Si(z(se(I)))))){static get is(){return"vaadin-combo-box"}static get template(){return S`
4502
+ */g("vaadin-combo-box",Ii,{moduleId:"vaadin-combo-box-styles"});class Wm extends Ts(Ps(qm(Si(L(se(I)))))){static get is(){return"vaadin-combo-box"}static get template(){return S`
4503
4503
  <style>
4504
4504
  :host([opened]) {
4505
4505
  pointer-events: auto;
@@ -4544,7 +4544,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4544
4544
  ></vaadin-combo-box-overlay>
4545
4545
 
4546
4546
  <slot name="tooltip"></slot>
4547
- `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new zt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Lt(this.inputElement,this._labelController)),this._tooltipController=new xe(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(e){e.stopPropagation(),super._onClearButtonClick(e)}_onHostClick(e){const t=e.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(e)}}x(Wm);/**
4547
+ `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Lt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new zt(this.inputElement,this._labelController)),this._tooltipController=new xe(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(e){e.stopPropagation(),super._onClearButtonClick(e)}_onHostClick(e){const t=e.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(e)}}x(Wm);/**
4548
4548
  * @license
4549
4549
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4550
4550
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4714,7 +4714,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4714
4714
  * @license
4715
4715
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4716
4716
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4717
- */class Xm extends z(I){static get is(){return"vaadin-multi-select-combo-box-chip"}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},label:{type:String},item:{type:Object}}}static get template(){return S`
4717
+ */class Xm extends L(I){static get is(){return"vaadin-multi-select-combo-box-chip"}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},label:{type:String},item:{type:Object}}}static get template(){return S`
4718
4718
  <style>
4719
4719
  :host {
4720
4720
  display: inline-flex;
@@ -4761,7 +4761,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4761
4761
  * @license
4762
4762
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4763
4763
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4764
- */class Jm extends xs(z(ne(I))){static get is(){return"vaadin-multi-select-combo-box-item"}static get template(){return S`
4764
+ */class Jm extends xs(L(ne(I))){static get is(){return"vaadin-multi-select-combo-box-item"}static get template(){return S`
4765
4765
  <style>
4766
4766
  :host {
4767
4767
  display: block;
@@ -4792,7 +4792,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4792
4792
  flex-direction: column;
4793
4793
  height: 100%;
4794
4794
  }
4795
- `;g("vaadin-multi-select-combo-box-overlay",[Rt,Zm],{moduleId:"vaadin-multi-select-combo-box-overlay-styles"});class ef extends Cs(Ft(ne(z(I)))){static get is(){return"vaadin-multi-select-combo-box-overlay"}static get template(){return S`
4795
+ `;g("vaadin-multi-select-combo-box-overlay",[Rt,Zm],{moduleId:"vaadin-multi-select-combo-box-overlay-styles"});class ef extends Cs(Ft(ne(L(I)))){static get is(){return"vaadin-multi-select-combo-box-overlay"}static get template(){return S`
4796
4796
  <div id="backdrop" part="backdrop" hidden></div>
4797
4797
  <div part="overlay" id="overlay">
4798
4798
  <div part="loader"></div>
@@ -4833,7 +4833,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4833
4833
  * @license
4834
4834
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4835
4835
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4836
- */class rf extends Ts(Ps(z(I))){static get is(){return"vaadin-multi-select-combo-box-internal"}static get template(){return S`
4836
+ */class rf extends Ts(Ps(L(I))){static get is(){return"vaadin-multi-select-combo-box-internal"}static get template(){return S`
4837
4837
  <style>
4838
4838
  :host([opened]) {
4839
4839
  pointer-events: auto;
@@ -4897,7 +4897,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4897
4897
  :host([auto-expand-horizontally]) [class$='container'] {
4898
4898
  width: auto;
4899
4899
  }
4900
- `;g("vaadin-multi-select-combo-box",[Ii,af],{moduleId:"vaadin-multi-select-combo-box-styles"});class of extends As(Si(z(se(I)))){static get is(){return"vaadin-multi-select-combo-box"}static get template(){return S`
4900
+ `;g("vaadin-multi-select-combo-box",[Ii,af],{moduleId:"vaadin-multi-select-combo-box-styles"});class of extends As(Si(L(se(I)))){static get is(){return"vaadin-multi-select-combo-box"}static get template(){return S`
4901
4901
  <div class="vaadin-multi-select-combo-box-container">
4902
4902
  <div part="label">
4903
4903
  <slot name="label"></slot>
@@ -4973,7 +4973,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4973
4973
  color: transparent !important;
4974
4974
  forced-color-adjust: none;
4975
4975
  }
4976
- `]}get clearElement(){return this.$.clearButton}get _chips(){return[...this.querySelectorAll('[slot="chip"]')]}get _hasValue(){return this.selectedItems&&this.selectedItems.length>0}ready(){super.ready(),this.addController(new zt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Lt(this.inputElement,this._labelController)),this._tooltipController=new xe(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._inputField=this.shadowRoot.querySelector('[part="input-field"]'),this._overflowController=new ee(this,"overflow","vaadin-multi-select-combo-box-chip",{initializer:e=>{e.addEventListener("mousedown",t=>this._preventBlur(t)),this._overflow=e}}),this.addController(this._overflowController),this.__updateChips(),Pi(this)}checkValidity(){return this.required&&!this.readonly?this._hasValue:!0}clear(){this.__updateSelection([]),ei(this.i18n.cleared)}clearCache(){this.$&&this.$.comboBox&&this.$.comboBox.clearCache()}requestContentUpdate(){this.$&&this.$.comboBox&&this.$.comboBox.requestContentUpdate()}_disabledChanged(e,t){super._disabledChanged(e,t),(e||t)&&this.__updateChips()}_inputElementChanged(e){super._inputElementChanged(e),e&&this.$.comboBox._setInputElement(e)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&(this._focusedChipIndex=-1,this.validate())}_onResize(){this.__updateChips()}_delegateAttribute(e,t){if(this.stateTarget){if(e==="required"){this._delegateAttribute("aria-required",t?"true":!1);return}super._delegateAttribute(e,t)}}_autoExpandHorizontallyChanged(e,t){(e||t)&&this.__updateChips()}_autoExpandVerticallyChanged(e,t){(e||t)&&this.__updateChips()}_clearButtonVisibleChanged(e,t){(e||t)&&this.__updateChips()}_onFilteredItemsChanged(e){const{value:t}=e.detail;(Array.isArray(t)||t==null)&&(this.filteredItems=t)}_readonlyChanged(e,t){(e||t)&&this.__updateChips(),this.dataProvider&&this.clearCache()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.__updateChips()}_pageSizeChanged(e,t){(Math.floor(e)!==e||e<=0)&&(this.pageSize=t,console.error('"pageSize" value must be an integer > 0')),this.$.comboBox.pageSize=this.pageSize}_placeholderChanged(e){const t=this.__tmpA11yPlaceholder;t!==e&&(this.__savedPlaceholder=e,t&&(this.placeholder=t))}_selectedItemsChanged(e){if(this._toggleHasValue(this._hasValue),this._hasValue){const t=this._mergeItemLabels(e);this.__tmpA11yPlaceholder===void 0&&(this.__savedPlaceholder=this.placeholder),this.__tmpA11yPlaceholder=t,this.placeholder=t}else this.__tmpA11yPlaceholder!==void 0&&(delete this.__tmpA11yPlaceholder,this.placeholder=this.__savedPlaceholder);this.__updateChips(),this.requestContentUpdate(),this.opened&&this.$.comboBox.$.overlay._updateOverlayWidth()}_getItemLabel(e){return this.$.comboBox._getItemLabel(e)}_mergeItemLabels(e){return e.map(t=>this._getItemLabel(t)).join(", ")}_findIndex(e,t,r){if(r&&e){for(let a=0;a<t.length;a++)if(t[a]&&t[a][r]===e[r])return a;return-1}return t.indexOf(e)}__clearInternalValue(e=!1){!this.keepFilter||e?(this.filter="",this.$.comboBox.clear()):(this.$.comboBox.clear(),this._inputElementValue=this.filter)}__announceItem(e,t,r){const a=t?"selected":"deselected",o=this.i18n.total.replace("{count}",r||0);ei(`${e} ${this.i18n[a]} ${o}`)}__removeItem(e){const t=[...this.selectedItems];t.splice(t.indexOf(e),1),this.__updateSelection(t);const r=this._getItemLabel(e);this.__announceItem(r,!1,t.length)}__selectItem(e){const t=[...this.selectedItems],r=this._findIndex(e,t,this.itemIdPath),a=this._getItemLabel(e);let o=!1;if(r!==-1){const n=this._lastFilter;if(n&&n.toLowerCase()===a.toLowerCase()){this.__clearInternalValue();return}t.splice(r,1)}else t.push(e),o=!0;this.__updateSelection(t),this.__clearInternalValue(),this.__announceItem(a,o,t.length)}__updateSelection(e){this.selectedItems=e,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__updateTopGroup(e,t,r){e?r||(this._topGroup=[...t]):this._topGroup=[]}__createChip(e){const t=document.createElement("vaadin-multi-select-combo-box-chip");t.setAttribute("slot","chip"),t.item=e,t.disabled=this.disabled,t.readonly=this.readonly;const r=this._getItemLabel(e);return t.label=r,t.setAttribute("title",r),typeof this.itemClassNameGenerator=="function"&&(t.className=this.itemClassNameGenerator(e)),t.addEventListener("item-removed",a=>this._onItemRemoved(a)),t.addEventListener("mousedown",a=>this._preventBlur(a)),t}__getOverflowWidth(){const e=this._overflow;e.style.visibility="hidden",e.removeAttribute("hidden");const t=e.getAttribute("count");e.setAttribute("count","99");const r=getComputedStyle(e),a=e.clientWidth+parseInt(r.marginInlineStart);return e.setAttribute("count",t),e.setAttribute("hidden",""),e.style.visibility="",a}__updateChips(){if(!this._inputField||!this.inputElement)return;this._chips.forEach(n=>{n.remove()});const e=[...this.selectedItems],t=this._inputField.$.wrapper.clientWidth,r=parseInt(getComputedStyle(this.inputElement).flexBasis);let a=t-r;e.length>1&&(a-=this.__getOverflowWidth());const o=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const n=[];for(let d=e.length-1,c=null;d>=0;d--){const u=this.__createChip(e[d]);this.insertBefore(u,c),c=u,n.unshift(u)}const s=[],l=this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth;if(!this.autoExpandVertically&&l<r){for(;n.length>1;){n.pop().remove(),s.unshift(e.pop());const d=s.length>0?r+this.__getOverflowWidth():r;if(this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth>=d)break}n.length===1&&(n[0].style.maxWidth=`${Math.max(o,a)}px`)}this._overflowItems=s;return}for(let n=e.length-1,s=null;n>=0;n--){const l=this.__createChip(e[n]);if(this.insertBefore(l,s),!this.autoExpandVertically&&this.$.chips.clientWidth>a)if(s===null)l.style.maxWidth=`${Math.max(o,a)}px`;else{l.remove();break}e.pop(),s=l}this._overflowItems=e}__updateOverflowChip(e,t,r,a){if(e){const o=t.length;e.label=`${o}`,e.setAttribute("count",`${o}`),e.setAttribute("title",this._mergeItemLabels(t)),e.toggleAttribute("hidden",o===0),e.disabled=r,e.readonly=a}}_onClearButtonTouchend(e){e.preventDefault(),e.stopPropagation(),this.clear()}_onClearButtonClick(e){e.stopPropagation(),this.clear()}_onChange(e){e.stopPropagation()}_onEscape(e){this.clearButtonVisible&&this.selectedItems&&this.selectedItems.length&&(e.stopPropagation(),this.selectedItems=[])}_onKeyDown(e){super._onKeyDown(e);const t=this._chips;if(!this.readonly&&t.length>0)switch(e.key){case"Backspace":this._onBackSpace(t);break;case"ArrowLeft":this._onArrowLeft(t,e);break;case"ArrowRight":this._onArrowRight(t,e);break;default:this._focusedChipIndex=-1;break}}_onArrowLeft(e,t){if(this.inputElement.selectionStart!==0)return;const r=this._focusedChipIndex;r!==-1&&t.preventDefault();let a;this.__isRTL?r===e.length-1?a=-1:r>-1&&(a=r+1):r===-1?a=e.length-1:r>0&&(a=r-1),a!==void 0&&(this._focusedChipIndex=a)}_onArrowRight(e,t){if(this.inputElement.selectionStart!==0)return;const r=this._focusedChipIndex;r!==-1&&t.preventDefault();let a;this.__isRTL?r===-1?a=e.length-1:r>0&&(a=r-1):r===e.length-1?a=-1:r>-1&&(a=r+1),a!==void 0&&(this._focusedChipIndex=a)}_onBackSpace(e){if(this.inputElement.selectionStart!==0)return;const t=this._focusedChipIndex;t===-1?this._focusedChipIndex=e.length-1:(this.__removeItem(e[t].item),this._focusedChipIndex=-1)}_focusedChipIndexChanged(e,t){if(e>-1||t>-1){const r=this._chips;if(r.forEach((a,o)=>{a.toggleAttribute("focused",o===e)}),e>-1){const a=r[e].item,o=this._getItemLabel(a);ei(`${o} ${this.i18n.focused}`)}}}_onComboBoxChange(){const e=this.$.comboBox.selectedItem;e&&this.__selectItem(e)}_onComboBoxItemSelected(e){this.__selectItem(e.detail.item)}_onCustomValueSet(e){e.preventDefault(),e.stopPropagation(),this.__clearInternalValue(!0),this.dispatchEvent(new CustomEvent("custom-value-set",{detail:e.detail,composed:!0,bubbles:!0}))}_onItemRemoved(e){this.__removeItem(e.detail.item)}_preventBlur(e){e.preventDefault()}}x(of);g("vaadin-notification-card",f`
4976
+ `]}get clearElement(){return this.$.clearButton}get _chips(){return[...this.querySelectorAll('[slot="chip"]')]}get _hasValue(){return this.selectedItems&&this.selectedItems.length>0}ready(){super.ready(),this.addController(new Lt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new zt(this.inputElement,this._labelController)),this._tooltipController=new xe(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._inputField=this.shadowRoot.querySelector('[part="input-field"]'),this._overflowController=new ee(this,"overflow","vaadin-multi-select-combo-box-chip",{initializer:e=>{e.addEventListener("mousedown",t=>this._preventBlur(t)),this._overflow=e}}),this.addController(this._overflowController),this.__updateChips(),Pi(this)}checkValidity(){return this.required&&!this.readonly?this._hasValue:!0}clear(){this.__updateSelection([]),ei(this.i18n.cleared)}clearCache(){this.$&&this.$.comboBox&&this.$.comboBox.clearCache()}requestContentUpdate(){this.$&&this.$.comboBox&&this.$.comboBox.requestContentUpdate()}_disabledChanged(e,t){super._disabledChanged(e,t),(e||t)&&this.__updateChips()}_inputElementChanged(e){super._inputElementChanged(e),e&&this.$.comboBox._setInputElement(e)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&(this._focusedChipIndex=-1,this.validate())}_onResize(){this.__updateChips()}_delegateAttribute(e,t){if(this.stateTarget){if(e==="required"){this._delegateAttribute("aria-required",t?"true":!1);return}super._delegateAttribute(e,t)}}_autoExpandHorizontallyChanged(e,t){(e||t)&&this.__updateChips()}_autoExpandVerticallyChanged(e,t){(e||t)&&this.__updateChips()}_clearButtonVisibleChanged(e,t){(e||t)&&this.__updateChips()}_onFilteredItemsChanged(e){const{value:t}=e.detail;(Array.isArray(t)||t==null)&&(this.filteredItems=t)}_readonlyChanged(e,t){(e||t)&&this.__updateChips(),this.dataProvider&&this.clearCache()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.__updateChips()}_pageSizeChanged(e,t){(Math.floor(e)!==e||e<=0)&&(this.pageSize=t,console.error('"pageSize" value must be an integer > 0')),this.$.comboBox.pageSize=this.pageSize}_placeholderChanged(e){const t=this.__tmpA11yPlaceholder;t!==e&&(this.__savedPlaceholder=e,t&&(this.placeholder=t))}_selectedItemsChanged(e){if(this._toggleHasValue(this._hasValue),this._hasValue){const t=this._mergeItemLabels(e);this.__tmpA11yPlaceholder===void 0&&(this.__savedPlaceholder=this.placeholder),this.__tmpA11yPlaceholder=t,this.placeholder=t}else this.__tmpA11yPlaceholder!==void 0&&(delete this.__tmpA11yPlaceholder,this.placeholder=this.__savedPlaceholder);this.__updateChips(),this.requestContentUpdate(),this.opened&&this.$.comboBox.$.overlay._updateOverlayWidth()}_getItemLabel(e){return this.$.comboBox._getItemLabel(e)}_mergeItemLabels(e){return e.map(t=>this._getItemLabel(t)).join(", ")}_findIndex(e,t,r){if(r&&e){for(let a=0;a<t.length;a++)if(t[a]&&t[a][r]===e[r])return a;return-1}return t.indexOf(e)}__clearInternalValue(e=!1){!this.keepFilter||e?(this.filter="",this.$.comboBox.clear()):(this.$.comboBox.clear(),this._inputElementValue=this.filter)}__announceItem(e,t,r){const a=t?"selected":"deselected",o=this.i18n.total.replace("{count}",r||0);ei(`${e} ${this.i18n[a]} ${o}`)}__removeItem(e){const t=[...this.selectedItems];t.splice(t.indexOf(e),1),this.__updateSelection(t);const r=this._getItemLabel(e);this.__announceItem(r,!1,t.length)}__selectItem(e){const t=[...this.selectedItems],r=this._findIndex(e,t,this.itemIdPath),a=this._getItemLabel(e);let o=!1;if(r!==-1){const n=this._lastFilter;if(n&&n.toLowerCase()===a.toLowerCase()){this.__clearInternalValue();return}t.splice(r,1)}else t.push(e),o=!0;this.__updateSelection(t),this.__clearInternalValue(),this.__announceItem(a,o,t.length)}__updateSelection(e){this.selectedItems=e,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__updateTopGroup(e,t,r){e?r||(this._topGroup=[...t]):this._topGroup=[]}__createChip(e){const t=document.createElement("vaadin-multi-select-combo-box-chip");t.setAttribute("slot","chip"),t.item=e,t.disabled=this.disabled,t.readonly=this.readonly;const r=this._getItemLabel(e);return t.label=r,t.setAttribute("title",r),typeof this.itemClassNameGenerator=="function"&&(t.className=this.itemClassNameGenerator(e)),t.addEventListener("item-removed",a=>this._onItemRemoved(a)),t.addEventListener("mousedown",a=>this._preventBlur(a)),t}__getOverflowWidth(){const e=this._overflow;e.style.visibility="hidden",e.removeAttribute("hidden");const t=e.getAttribute("count");e.setAttribute("count","99");const r=getComputedStyle(e),a=e.clientWidth+parseInt(r.marginInlineStart);return e.setAttribute("count",t),e.setAttribute("hidden",""),e.style.visibility="",a}__updateChips(){if(!this._inputField||!this.inputElement)return;this._chips.forEach(n=>{n.remove()});const e=[...this.selectedItems],t=this._inputField.$.wrapper.clientWidth,r=parseInt(getComputedStyle(this.inputElement).flexBasis);let a=t-r;e.length>1&&(a-=this.__getOverflowWidth());const o=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const n=[];for(let d=e.length-1,c=null;d>=0;d--){const u=this.__createChip(e[d]);this.insertBefore(u,c),c=u,n.unshift(u)}const s=[],l=this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth;if(!this.autoExpandVertically&&l<r){for(;n.length>1;){n.pop().remove(),s.unshift(e.pop());const d=s.length>0?r+this.__getOverflowWidth():r;if(this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth>=d)break}n.length===1&&(n[0].style.maxWidth=`${Math.max(o,a)}px`)}this._overflowItems=s;return}for(let n=e.length-1,s=null;n>=0;n--){const l=this.__createChip(e[n]);if(this.insertBefore(l,s),!this.autoExpandVertically&&this.$.chips.clientWidth>a)if(s===null)l.style.maxWidth=`${Math.max(o,a)}px`;else{l.remove();break}e.pop(),s=l}this._overflowItems=e}__updateOverflowChip(e,t,r,a){if(e){const o=t.length;e.label=`${o}`,e.setAttribute("count",`${o}`),e.setAttribute("title",this._mergeItemLabels(t)),e.toggleAttribute("hidden",o===0),e.disabled=r,e.readonly=a}}_onClearButtonTouchend(e){e.preventDefault(),e.stopPropagation(),this.clear()}_onClearButtonClick(e){e.stopPropagation(),this.clear()}_onChange(e){e.stopPropagation()}_onEscape(e){this.clearButtonVisible&&this.selectedItems&&this.selectedItems.length&&(e.stopPropagation(),this.selectedItems=[])}_onKeyDown(e){super._onKeyDown(e);const t=this._chips;if(!this.readonly&&t.length>0)switch(e.key){case"Backspace":this._onBackSpace(t);break;case"ArrowLeft":this._onArrowLeft(t,e);break;case"ArrowRight":this._onArrowRight(t,e);break;default:this._focusedChipIndex=-1;break}}_onArrowLeft(e,t){if(this.inputElement.selectionStart!==0)return;const r=this._focusedChipIndex;r!==-1&&t.preventDefault();let a;this.__isRTL?r===e.length-1?a=-1:r>-1&&(a=r+1):r===-1?a=e.length-1:r>0&&(a=r-1),a!==void 0&&(this._focusedChipIndex=a)}_onArrowRight(e,t){if(this.inputElement.selectionStart!==0)return;const r=this._focusedChipIndex;r!==-1&&t.preventDefault();let a;this.__isRTL?r===-1?a=e.length-1:r>0&&(a=r-1):r===e.length-1?a=-1:r>-1&&(a=r+1),a!==void 0&&(this._focusedChipIndex=a)}_onBackSpace(e){if(this.inputElement.selectionStart!==0)return;const t=this._focusedChipIndex;t===-1?this._focusedChipIndex=e.length-1:(this.__removeItem(e[t].item),this._focusedChipIndex=-1)}_focusedChipIndexChanged(e,t){if(e>-1||t>-1){const r=this._chips;if(r.forEach((a,o)=>{a.toggleAttribute("focused",o===e)}),e>-1){const a=r[e].item,o=this._getItemLabel(a);ei(`${o} ${this.i18n.focused}`)}}}_onComboBoxChange(){const e=this.$.comboBox.selectedItem;e&&this.__selectItem(e)}_onComboBoxItemSelected(e){this.__selectItem(e.detail.item)}_onCustomValueSet(e){e.preventDefault(),e.stopPropagation(),this.__clearInternalValue(!0),this.dispatchEvent(new CustomEvent("custom-value-set",{detail:e.detail,composed:!0,bubbles:!0}))}_onItemRemoved(e){this.__removeItem(e.detail.item)}_preventBlur(e){e.preventDefault()}}x(of);g("vaadin-notification-card",f`
4977
4977
  :host {
4978
4978
  position: relative;
4979
4979
  margin: var(--lumo-space-s);
@@ -5195,7 +5195,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5195
5195
  * @license
5196
5196
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5197
5197
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5198
- */class sf extends as(z(se(I))){static get template(){return S`
5198
+ */class sf extends as(L(se(I))){static get template(){return S`
5199
5199
  <style>
5200
5200
  :host {
5201
5201
  position: fixed;
@@ -5262,7 +5262,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5262
5262
  <div region="bottom-end"><slot name="bottom-end"></slot></div>
5263
5263
  </div>
5264
5264
  <div region="bottom-stretch"><slot name="bottom-stretch"></slot></div>
5265
- `}static get is(){return"vaadin-notification-container"}static get properties(){return{opened:{type:Boolean,value:!1,observer:"_openedChanged"}}}constructor(){super(),this._boundVaadinOverlayClose=this._onVaadinOverlayClose.bind(this),Zr&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}_openedChanged(e){e?(document.body.appendChild(this),document.addEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))):(document.body.removeChild(this),document.removeEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener))}_detectIosNavbar(){const e=window.innerHeight,t=window.innerWidth>e,r=document.documentElement.clientHeight;t&&r>e?this.style.bottom=`${r-e}px`:this.style.bottom="0"}_onVaadinOverlayClose(e){const t=e.detail.sourceEvent;t&&t.composedPath().indexOf(this)>=0&&e.preventDefault()}}class lf extends z(I){static get template(){return S`
5265
+ `}static get is(){return"vaadin-notification-container"}static get properties(){return{opened:{type:Boolean,value:!1,observer:"_openedChanged"}}}constructor(){super(),this._boundVaadinOverlayClose=this._onVaadinOverlayClose.bind(this),Zr&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}_openedChanged(e){e?(document.body.appendChild(this),document.addEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))):(document.body.removeChild(this),document.removeEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener))}_detectIosNavbar(){const e=window.innerHeight,t=window.innerWidth>e,r=document.documentElement.clientHeight;t&&r>e?this.style.bottom=`${r-e}px`:this.style.bottom="0"}_onVaadinOverlayClose(e){const t=e.detail.sourceEvent;t&&t.composedPath().indexOf(this)>=0&&e.preventDefault()}}class lf extends L(I){static get template(){return S`
5266
5266
  <style>
5267
5267
  :host {
5268
5268
  display: block;
@@ -5415,7 +5415,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5415
5415
  * @license
5416
5416
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5417
5417
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5418
- */class cf extends Os(z(ne(I))){static get is(){return"vaadin-select-item"}static get template(){return S`
5418
+ */class cf extends Os(L(ne(I))){static get is(){return"vaadin-select-item"}static get template(){return S`
5419
5419
  <style>
5420
5420
  :host {
5421
5421
  display: inline-block;
@@ -5441,11 +5441,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5441
5441
  * @license
5442
5442
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5443
5443
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5444
- */const Ms=i=>class extends pf(i){static get properties(){return{disabled:{type:Boolean,value:!1,reflectToAttribute:!0},selected:{type:Number,reflectToAttribute:!0,notify:!0},orientation:{type:String,reflectToAttribute:!0,value:""},items:{type:Array,readOnly:!0,notify:!0},_searchBuf:{type:String,value:""}}}static get observers(){return["_enhanceItems(items, orientation, selected, disabled)"]}get _isRTL(){return!this._vertical&&this.getAttribute("dir")==="rtl"}get _scrollerElement(){return console.warn(`Please implement the '_scrollerElement' property in <${this.localName}>`),this}get _vertical(){return this.orientation!=="horizontal"}focus(){this._observer&&this._observer.flush();const e=Array.isArray(this.items)?this.items:[],t=this._getAvailableIndex(e,0,null,r=>r.tabIndex===0&&!mr(r));t>=0?this._focus(t):super.focus()}ready(){super.ready(),this.addEventListener("click",t=>this._onClick(t));const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Lr(e,()=>{this._setItems(this._filterItems(Rn(this)))})}_getItems(){return this.items}_enhanceItems(e,t,r,a){if(!a&&e){this.setAttribute("aria-orientation",t||"vertical"),e.forEach(n=>{t?n.setAttribute("orientation",t):n.removeAttribute("orientation")}),this._setFocusable(r<0||!r?0:r);const o=e[r];e.forEach(n=>{n.selected=n===o}),o&&!o.disabled&&this._scrollToItem(r)}}_filterItems(e){return e.filter(t=>t._hasVaadinItemMixin)}_onClick(e){if(e.metaKey||e.shiftKey||e.ctrlKey||e.defaultPrevented)return;const t=this._filterItems(e.composedPath())[0];let r;t&&!t.disabled&&(r=this.items.indexOf(t))>=0&&(this.selected=r)}_searchKey(e,t){this._searchReset=oe.debounce(this._searchReset,Se.after(500),()=>{this._searchBuf=""}),this._searchBuf+=t.toLowerCase(),this.items.some(a=>this.__isMatchingKey(a))||(this._searchBuf=t.toLowerCase());const r=this._searchBuf.length===1?e+1:e;return this._getAvailableIndex(this.items,r,1,a=>this.__isMatchingKey(a)&&getComputedStyle(a).display!=="none")}__isMatchingKey(e){return e.textContent.replace(/[^\p{L}\p{Nd}]/gu,"").toLowerCase().startsWith(this._searchBuf)}_onKeyDown(e){if(e.metaKey||e.ctrlKey)return;const t=e.key,r=this.items.indexOf(this.focused);if(/[\p{L}\p{Nd}]/u.test(t)&&t.length===1){const a=this._searchKey(r,t);a>=0&&this._focus(a);return}super._onKeyDown(e)}_isItemHidden(e){return getComputedStyle(e).display==="none"}_setFocusable(e){e=this._getAvailableIndex(this.items,e,1);const t=this.items[e];this.items.forEach(r=>{r.tabIndex=r===t?0:-1})}_focus(e){this.items.forEach((t,r)=>{t.focused=r===e}),this._setFocusable(e),this._scrollToItem(e),super._focus(e)}_scrollToItem(e){const t=this.items[e];if(!t)return;const r=this._vertical?["top","bottom"]:this._isRTL?["right","left"]:["left","right"],a=this._scrollerElement.getBoundingClientRect(),o=(this.items[e+1]||t).getBoundingClientRect(),n=(this.items[e-1]||t).getBoundingClientRect();let s=0;!this._isRTL&&o[r[1]]>=a[r[1]]||this._isRTL&&o[r[1]]<=a[r[1]]?s=o[r[1]]-a[r[1]]:(!this._isRTL&&n[r[0]]<=a[r[0]]||this._isRTL&&n[r[0]]>=a[r[0]])&&(s=n[r[0]]-a[r[0]]),this._scroll(s)}_scroll(e){if(this._vertical)this._scrollerElement.scrollTop+=e;else{const t=this.getAttribute("dir")||"ltr",r=Vs(this._scrollerElement,t)+e;uf(this._scrollerElement,t,r)}}};/**
5444
+ */const Ms=i=>class extends pf(i){static get properties(){return{disabled:{type:Boolean,value:!1,reflectToAttribute:!0},selected:{type:Number,reflectToAttribute:!0,notify:!0},orientation:{type:String,reflectToAttribute:!0,value:""},items:{type:Array,readOnly:!0,notify:!0},_searchBuf:{type:String,value:""}}}static get observers(){return["_enhanceItems(items, orientation, selected, disabled)"]}get _isRTL(){return!this._vertical&&this.getAttribute("dir")==="rtl"}get _scrollerElement(){return console.warn(`Please implement the '_scrollerElement' property in <${this.localName}>`),this}get _vertical(){return this.orientation!=="horizontal"}focus(){this._observer&&this._observer.flush();const e=Array.isArray(this.items)?this.items:[],t=this._getAvailableIndex(e,0,null,r=>r.tabIndex===0&&!mr(r));t>=0?this._focus(t):super.focus()}ready(){super.ready(),this.addEventListener("click",t=>this._onClick(t));const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new zr(e,()=>{this._setItems(this._filterItems(Rn(this)))})}_getItems(){return this.items}_enhanceItems(e,t,r,a){if(!a&&e){this.setAttribute("aria-orientation",t||"vertical"),e.forEach(n=>{t?n.setAttribute("orientation",t):n.removeAttribute("orientation")}),this._setFocusable(r<0||!r?0:r);const o=e[r];e.forEach(n=>{n.selected=n===o}),o&&!o.disabled&&this._scrollToItem(r)}}_filterItems(e){return e.filter(t=>t._hasVaadinItemMixin)}_onClick(e){if(e.metaKey||e.shiftKey||e.ctrlKey||e.defaultPrevented)return;const t=this._filterItems(e.composedPath())[0];let r;t&&!t.disabled&&(r=this.items.indexOf(t))>=0&&(this.selected=r)}_searchKey(e,t){this._searchReset=oe.debounce(this._searchReset,Se.after(500),()=>{this._searchBuf=""}),this._searchBuf+=t.toLowerCase(),this.items.some(a=>this.__isMatchingKey(a))||(this._searchBuf=t.toLowerCase());const r=this._searchBuf.length===1?e+1:e;return this._getAvailableIndex(this.items,r,1,a=>this.__isMatchingKey(a)&&getComputedStyle(a).display!=="none")}__isMatchingKey(e){return e.textContent.replace(/[^\p{L}\p{Nd}]/gu,"").toLowerCase().startsWith(this._searchBuf)}_onKeyDown(e){if(e.metaKey||e.ctrlKey)return;const t=e.key,r=this.items.indexOf(this.focused);if(/[\p{L}\p{Nd}]/u.test(t)&&t.length===1){const a=this._searchKey(r,t);a>=0&&this._focus(a);return}super._onKeyDown(e)}_isItemHidden(e){return getComputedStyle(e).display==="none"}_setFocusable(e){e=this._getAvailableIndex(this.items,e,1);const t=this.items[e];this.items.forEach(r=>{r.tabIndex=r===t?0:-1})}_focus(e){this.items.forEach((t,r)=>{t.focused=r===e}),this._setFocusable(e),this._scrollToItem(e),super._focus(e)}_scrollToItem(e){const t=this.items[e];if(!t)return;const r=this._vertical?["top","bottom"]:this._isRTL?["right","left"]:["left","right"],a=this._scrollerElement.getBoundingClientRect(),o=(this.items[e+1]||t).getBoundingClientRect(),n=(this.items[e-1]||t).getBoundingClientRect();let s=0;!this._isRTL&&o[r[1]]>=a[r[1]]||this._isRTL&&o[r[1]]<=a[r[1]]?s=o[r[1]]-a[r[1]]:(!this._isRTL&&n[r[0]]<=a[r[0]]||this._isRTL&&n[r[0]]>=a[r[0]])&&(s=n[r[0]]-a[r[0]]),this._scroll(s)}_scroll(e){if(this._vertical)this._scrollerElement.scrollTop+=e;else{const t=this.getAttribute("dir")||"ltr",r=Vs(this._scrollerElement,t)+e;uf(this._scrollerElement,t,r)}}};/**
5445
5445
  * @license
5446
5446
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5447
5447
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5448
- */class mf extends Ms(z(ne(ve(I)))){static get is(){return"vaadin-select-list-box"}static get template(){return S`
5448
+ */class mf extends Ms(L(ne(ve(I)))){static get is(){return"vaadin-select-list-box"}static get template(){return S`
5449
5449
  <style>
5450
5450
  :host {
5451
5451
  display: flex;
@@ -5488,7 +5488,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5488
5488
  outline: 3px solid;
5489
5489
  }
5490
5490
  }
5491
- `;g("vaadin-select-overlay",[Rt,vf],{moduleId:"vaadin-select-overlay-styles"});class _f extends ff(z(I)){static get is(){return"vaadin-select-overlay"}static get template(){return S`
5491
+ `;g("vaadin-select-overlay",[Rt,vf],{moduleId:"vaadin-select-overlay-styles"});class _f extends ff(L(I)){static get is(){return"vaadin-select-overlay"}static get template(){return S`
5492
5492
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
5493
5493
  <div part="overlay" id="overlay" tabindex="0">
5494
5494
  <div part="content" id="content">
@@ -5545,7 +5545,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5545
5545
  * @license
5546
5546
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5547
5547
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5548
- */g("vaadin-select-value-button",gf,{moduleId:"vaadin-select-value-button-styles"});class bf extends ta(z(I)){static get is(){return"vaadin-select-value-button"}static get template(){return S`
5548
+ */g("vaadin-select-value-button",gf,{moduleId:"vaadin-select-value-button-styles"});class bf extends ta(L(I)){static get is(){return"vaadin-select-value-button"}static get template(){return S`
5549
5549
  <div class="vaadin-button-container">
5550
5550
  <span part="label">
5551
5551
  <slot></slot>
@@ -5581,7 +5581,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5581
5581
  * @license
5582
5582
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5583
5583
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5584
- */g("vaadin-select",[ms,fs,yf],{moduleId:"vaadin-select-styles"});class Cf extends xf(se(z(I))){static get is(){return"vaadin-select"}static get template(){return S`
5584
+ */g("vaadin-select",[ms,fs,yf],{moduleId:"vaadin-select-styles"});class Cf extends xf(se(L(I))){static get is(){return"vaadin-select"}static get template(){return S`
5585
5585
  <style>
5586
5586
  :host {
5587
5587
  position: relative;
@@ -5979,7 +5979,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5979
5979
  * @license
5980
5980
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
5981
5981
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5982
- */g("vaadin-confirm-dialog-overlay",[Rt,Ef,If],{moduleId:"vaadin-confirm-dialog-overlay-styles"});class Tf extends Ft(ne(z(I))){static get is(){return"vaadin-confirm-dialog-overlay"}static get template(){return S`
5982
+ */g("vaadin-confirm-dialog-overlay",[Rt,Ef,If],{moduleId:"vaadin-confirm-dialog-overlay-styles"});class Tf extends Ft(ne(L(I))){static get is(){return"vaadin-confirm-dialog-overlay"}static get template(){return S`
5983
5983
  <div part="backdrop" id="backdrop" hidden$="[[!withBackdrop]]"></div>
5984
5984
  <div part="overlay" id="overlay" tabindex="0">
5985
5985
  <section id="resizerContainer" class="resizer-container">
@@ -6320,7 +6320,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6320
6320
  * @license
6321
6321
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6322
6322
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6323
- */g("vaadin-tab",Vf,{moduleId:"vaadin-tab-styles"});class Mf extends se(z(Of(ve(I)))){static get template(){return S`
6323
+ */g("vaadin-tab",Vf,{moduleId:"vaadin-tab-styles"});class Mf extends se(L(Of(ve(I)))){static get template(){return S`
6324
6324
  <slot></slot>
6325
6325
  <slot name="tooltip"></slot>
6326
6326
  `}static get is(){return"vaadin-tab"}ready(){super.ready(),this._tooltipController=new xe(this),this.addController(this._tooltipController)}}x(Mf);g("vaadin-tabs",f`
@@ -6569,7 +6569,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6569
6569
  * @license
6570
6570
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6571
6571
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6572
- */const zf=f`
6572
+ */const Lf=f`
6573
6573
  :host {
6574
6574
  display: flex;
6575
6575
  align-items: center;
@@ -6649,7 +6649,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6649
6649
  * @license
6650
6650
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6651
6651
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6652
- */g("vaadin-tabs",zf,{moduleId:"vaadin-tabs-styles"});class Lf extends Nf(se(z(I))){static get template(){return S`
6652
+ */g("vaadin-tabs",Lf,{moduleId:"vaadin-tabs-styles"});class zf extends Nf(se(L(I))){static get template(){return S`
6653
6653
  <div on-click="_scrollBack" part="back-button" aria-hidden="true"></div>
6654
6654
 
6655
6655
  <div id="scroll" part="tabs">
@@ -6657,7 +6657,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6657
6657
  </div>
6658
6658
 
6659
6659
  <div on-click="_scrollForward" part="forward-button" aria-hidden="true"></div>
6660
- `}static get is(){return"vaadin-tabs"}}x(Lf);const Rf=":host{display:block;height:100%}",Ff=Rf,zs=class{constructor(i){h.registerInstance(this,i),this.registrationWidgetLoaded=h.createEvent(this,"registrationWidgetLoaded"),this.handleClick=e=>{this.emitOnClick&&(e.stopPropagation(),window.postMessage({type:`registration${this.name}Clicked`},window.location.href))},this.type="text",this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.validation=void 0,this.options=void 0,this.language=void 0,this.autofilled=void 0,this.tooltip=void 0,this.defaultValue=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.hidePasswordComplexity=!1,this.noValidation=!1,this.clientStyling="",this.clientStylingUrl="",this.dateFormat=void 0,this.translationUrl="",this.emitOnClick=!1,this.twofaDestination=void 0,this.twofaResendIntervalSeconds=60,this.twofaStartCountDown=!1,this.haspostalcodelookup=void 0,this.postalcodelength=void 0,this.addresses=[],this.ignoreCountry=!1,this.enableSouthAfricanMode=void 0,this.enableManualDateInput=!1,this.pinAttemptsExceeded=void 0,this.mbSource=void 0,this.enableCustomRegexValidation=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(i,e){i!==e&&this.clientStylingUrl&&w.setClientStylingURL(this.stylingContainer,this.clientStylingUrl)}connectedCallback(){this.translationUrl&&Xs(this.translationUrl)}disconnectedCallback(){var i;(i=this.translationSubscription)===null||i===void 0||i.unsubscribe(),this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleClientTranslations(){this.mbSource&&!this.translationUrl&&(this.translationSubscription=ph(`${this.mbSource}.Translation`,this.translationSubscription,i=>{var e;!i||typeof i!="object"||(Io(i),h.forceUpdate(this.host),(e=this.host.shadowRoot)===null||e===void 0||e.querySelectorAll("*").forEach(t=>{typeof t.componentOnReady=="function"&&h.forceUpdate(t)}))}))}componentDidLoad(){this.handleClientTranslations(),this.handleClientStyling(),this.registrationWidgetLoaded.emit(),window.postMessage({type:"registrationWidgetLoaded"},window.location.href)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&w.setClientStylingURL(this.stylingContainer,this.clientStylingUrl)}renderInput(){var i;switch((i=this.type)===null||i===void 0?void 0:i.toLowerCase()){case"text":return this.haspostalcodelookup&&this.name==="PostalCode"?h.h("postalcode-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,postalcodelength:this.postalcodelength,addresses:this.addresses,ignoreCountry:this.ignoreCountry,"mb-source":this.mbSource}):h.h("text-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,haspostalcodelookup:this.haspostalcodelookup,"enable-south-african-mode":this.enableSouthAfricanMode,"mb-source":this.mbSource});case"email":return h.h("email-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,"mb-source":this.mbSource});case"number":return h.h("number-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,"mb-source":this.mbSource});case"checkbox":return h.h("checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,emitValue:this.emitValue,defaultValue:this.defaultValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,"mb-source":this.mbSource});case"checkboxgroup":return h.h("checkbox-group-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options,"mb-source":this.mbSource});case"togglecheckbox":return h.h("toggle-checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options,"emit-on-click":this.emitOnClick,"mb-source":this.mbSource,"translation-url":this.translationUrl});case"datetime":return h.h("date-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,dateFormat:this.dateFormat,"emit-on-click":this.emitOnClick,"enable-south-african-mode":this.enableSouthAfricanMode,"enable-manual-date-input":this.enableManualDateInput,"mb-source":this.mbSource});case"password":return h.h("password-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,hidePasswordComplexity:this.hidePasswordComplexity,"no-validation":this.noValidation,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,"enable-south-african-mode":this.enableSouthAfricanMode,"mb-source":this.mbSource});case"radio":return h.h("radio-input",{name:this.name,displayName:this.displayName,optionsGroup:this.options,validation:this.validation,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,"mb-source":this.mbSource});case"tel":return h.h("tel-input",{name:this.name,action:this.action,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,emitValue:this.emitValue,language:this.language,autofilled:this.autofilled,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,"mb-source":this.mbSource,"enable-custom-regex-validation":this.enableCustomRegexValidation});case"dropdown":return h.h("select-input",{name:this.name,action:this.action,defaultValue:this.defaultValue,displayName:this.displayName,options:this.options,validation:this.validation,emitValue:this.emitValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,"mb-source":this.mbSource});case"twofa":return h.h("twofa-input",{name:this.name,displayName:this.displayName,validation:this.validation,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,destination:this.twofaDestination,"resend-interval-seconds":this.twofaResendIntervalSeconds,"start-count-down":this.twofaStartCountDown,"enable-south-african-mode":this.enableSouthAfricanMode,"pin-attempts-exceeded":this.pinAttemptsExceeded,"mb-source":this.mbSource});case"label":if(this.displayName&&this.displayName.trim()!=="")return h.h("div",{class:"general-non-input",innerHTML:this.displayName,ref:e=>this.stylingContainer=e});h.h("p",null,"No content in label type");default:return h.h("p",null,"The ",this.type," input type is not valid")}}render(){return h.h(h.Host,{key:"b9d7daf54c988a5cd60f6a4d2348aa276a9f8022",class:`general-input--${this.name}`,onClick:this.handleClick},this.renderInput())}get host(){return h.getElement(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};zs.style=Ff;const $f='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.number{font-family:"Roboto";font-style:normal}.number__wrapper{position:relative;width:100%}.number__wrapper--autofilled{pointer-events:none}.number__wrapper--autofilled .number__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.number__wrapper--autofilled .number__input{color:var(--emw--color-black, #000000)}.number__wrapper--flex{display:flex;gap:5px}.number__wrapper--relative{position:relative}.number__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.number__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.number__input{font-family:inherit;border-radius:5px;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;position:relative;-moz-appearance:textfield;}.number__input:focus{outline-color:#3E3E3E}.number__input::-webkit-outer-spin-button,.number__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.number__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.number__input::placeholder{color:#979797}.number__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.number__tooltip-icon{width:16px;height:auto}.number__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.number__tooltip.visible{opacity:1}',Bf=$f,Ls=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=e=>{this.value=e.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern()}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e;if(this.inputReference.validity.valueMissing)return b("requiredError",this.language);if(this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow)return b("numberLengthError",this.language,{values:{min:this.validation.min,max:this.validation.max}});if(this.inputReference.validity.patternMismatch){const t=(i=this.validation.custom.find(a=>a.rule==="regex"))===null||i===void 0?void 0:i.errorKey,r=(e=this.validation.custom.find(a=>a.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return b(`${t}`,this.language)?b(`${t}`,this.language):r}}renderTooltip(){return this.showTooltip?h.h("div",{class:`number__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"bd11140dc6c8ddb6b800d4fe6544df733c5157c4",class:`number__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},h.h("div",{key:"c8318c687bc471fc225b9aba52686e38ecb400de",class:"number__wrapper--flex"},h.h("label",{key:"7eaf64057ef71b07a0defc1e372fd85baab2bd68",class:`number__label ${this.validation.mandatory?"number__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"99f4151f50a7fb0abb9a8e53bacc8c8bd303d659",class:"number__wrapper--relative"},this.tooltip&&h.h("img",{key:"875d6284697dc06ac05c682509856faeade3d8be",class:"number__tooltip-icon",src:he,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("input",{key:"f1f563567cde4a744c68e27ab91a3d795f596be6",ref:e=>this.inputReference=e,type:"number",value:this.defaultValue,readOnly:this.autofilled,id:`${this.name}__input`,class:`number__input ${i}`,pattern:this.validationPattern,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onInput:this.handleInput,onBlur:this.handleBlur}),h.h("small",{key:"0226f04a059fd8763822483de42bd7e647040bf3",class:"number__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Ls.style=Bf;const Hf=`*,
6660
+ `}static get is(){return"vaadin-tabs"}}x(zf);const Rf=":host{display:block;height:100%}",Ff=Rf,Ls=class{constructor(i){h.registerInstance(this,i),this.registrationWidgetLoaded=h.createEvent(this,"registrationWidgetLoaded"),this.handleClick=e=>{this.emitOnClick&&(e.stopPropagation(),window.postMessage({type:`registration${this.name}Clicked`},window.location.href))},this.type="text",this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.validation=void 0,this.options=void 0,this.language=void 0,this.autofilled=void 0,this.tooltip=void 0,this.defaultValue=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.hidePasswordComplexity=!1,this.noValidation=!1,this.clientStyling="",this.clientStylingUrl="",this.dateFormat=void 0,this.translationUrl="",this.emitOnClick=!1,this.twofaDestination=void 0,this.twofaResendIntervalSeconds=60,this.twofaStartCountDown=!1,this.haspostalcodelookup=void 0,this.postalcodelength=void 0,this.addresses=[],this.ignoreCountry=!1,this.enableSouthAfricanMode=void 0,this.enableManualDateInput=!1,this.pinAttemptsExceeded=void 0,this.mbSource=void 0,this.enableCustomRegexValidation=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(i,e){i!==e&&this.clientStylingUrl&&w.setClientStylingURL(this.stylingContainer,this.clientStylingUrl)}connectedCallback(){this.translationUrl&&Xs(this.translationUrl)}disconnectedCallback(){var i;(i=this.translationSubscription)===null||i===void 0||i.unsubscribe(),this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleClientTranslations(){this.mbSource&&!this.translationUrl&&(this.translationSubscription=ph(`${this.mbSource}.Translation`,this.translationSubscription,i=>{var e;!i||typeof i!="object"||(Io(i),h.forceUpdate(this.host),(e=this.host.shadowRoot)===null||e===void 0||e.querySelectorAll("*").forEach(t=>{typeof t.componentOnReady=="function"&&h.forceUpdate(t)}))}))}componentDidLoad(){this.handleClientTranslations(),this.handleClientStyling(),this.registrationWidgetLoaded.emit(),window.postMessage({type:"registrationWidgetLoaded"},window.location.href)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&w.setClientStylingURL(this.stylingContainer,this.clientStylingUrl)}renderInput(){var i;switch((i=this.type)===null||i===void 0?void 0:i.toLowerCase()){case"text":return this.haspostalcodelookup&&this.name==="PostalCode"?h.h("postalcode-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,postalcodelength:this.postalcodelength,addresses:this.addresses,ignoreCountry:this.ignoreCountry,"mb-source":this.mbSource}):h.h("text-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,haspostalcodelookup:this.haspostalcodelookup,"enable-south-african-mode":this.enableSouthAfricanMode,"mb-source":this.mbSource});case"email":return h.h("email-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,"mb-source":this.mbSource});case"number":return h.h("number-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,"mb-source":this.mbSource});case"checkbox":return h.h("checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,emitValue:this.emitValue,defaultValue:this.defaultValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,"mb-source":this.mbSource});case"checkboxgroup":return h.h("checkbox-group-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options,"mb-source":this.mbSource});case"togglecheckbox":return h.h("toggle-checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options,"emit-on-click":this.emitOnClick,"mb-source":this.mbSource,"translation-url":this.translationUrl});case"datetime":return h.h("date-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,dateFormat:this.dateFormat,"emit-on-click":this.emitOnClick,"enable-south-african-mode":this.enableSouthAfricanMode,"enable-manual-date-input":this.enableManualDateInput,"mb-source":this.mbSource});case"password":return h.h("password-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,hidePasswordComplexity:this.hidePasswordComplexity,"no-validation":this.noValidation,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,"enable-south-african-mode":this.enableSouthAfricanMode,"mb-source":this.mbSource});case"radio":return h.h("radio-input",{name:this.name,displayName:this.displayName,optionsGroup:this.options,validation:this.validation,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,"mb-source":this.mbSource});case"tel":return h.h("tel-input",{name:this.name,action:this.action,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,emitValue:this.emitValue,language:this.language,autofilled:this.autofilled,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,"mb-source":this.mbSource,"enable-custom-regex-validation":this.enableCustomRegexValidation});case"dropdown":return h.h("select-input",{name:this.name,action:this.action,defaultValue:this.defaultValue,displayName:this.displayName,options:this.options,validation:this.validation,emitValue:this.emitValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,"mb-source":this.mbSource});case"twofa":return h.h("twofa-input",{name:this.name,displayName:this.displayName,validation:this.validation,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,destination:this.twofaDestination,"resend-interval-seconds":this.twofaResendIntervalSeconds,"start-count-down":this.twofaStartCountDown,"enable-south-african-mode":this.enableSouthAfricanMode,"pin-attempts-exceeded":this.pinAttemptsExceeded,"mb-source":this.mbSource});case"label":if(this.displayName&&this.displayName.trim()!=="")return h.h("div",{class:"general-non-input",innerHTML:this.displayName,ref:e=>this.stylingContainer=e});h.h("p",null,"No content in label type");default:return h.h("p",null,"The ",this.type," input type is not valid")}}render(){return h.h(h.Host,{key:"b9d7daf54c988a5cd60f6a4d2348aa276a9f8022",class:`general-input--${this.name}`,onClick:this.handleClick},this.renderInput())}get host(){return h.getElement(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};Ls.style=Ff;const $f='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.number{font-family:"Roboto";font-style:normal}.number__wrapper{position:relative;width:100%}.number__wrapper--autofilled{pointer-events:none}.number__wrapper--autofilled .number__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.number__wrapper--autofilled .number__input{color:var(--emw--color-black, #000000)}.number__wrapper--flex{display:flex;gap:5px}.number__wrapper--relative{position:relative}.number__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.number__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.number__input{font-family:inherit;border-radius:5px;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;position:relative;-moz-appearance:textfield;}.number__input:focus{outline-color:#3E3E3E}.number__input::-webkit-outer-spin-button,.number__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.number__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.number__input::placeholder{color:#979797}.number__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.number__tooltip-icon{width:16px;height:auto}.number__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.number__tooltip.visible{opacity:1}',Bf=$f,zs=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=e=>{this.value=e.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern()}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e;if(this.inputReference.validity.valueMissing)return b("requiredError",this.language);if(this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow)return b("numberLengthError",this.language,{values:{min:this.validation.min,max:this.validation.max}});if(this.inputReference.validity.patternMismatch){const t=(i=this.validation.custom.find(a=>a.rule==="regex"))===null||i===void 0?void 0:i.errorKey,r=(e=this.validation.custom.find(a=>a.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return b(`${t}`,this.language)?b(`${t}`,this.language):r}}renderTooltip(){return this.showTooltip?h.h("div",{class:`number__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"bd11140dc6c8ddb6b800d4fe6544df733c5157c4",class:`number__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},h.h("div",{key:"c8318c687bc471fc225b9aba52686e38ecb400de",class:"number__wrapper--flex"},h.h("label",{key:"7eaf64057ef71b07a0defc1e372fd85baab2bd68",class:`number__label ${this.validation.mandatory?"number__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"99f4151f50a7fb0abb9a8e53bacc8c8bd303d659",class:"number__wrapper--relative"},this.tooltip&&h.h("img",{key:"875d6284697dc06ac05c682509856faeade3d8be",class:"number__tooltip-icon",src:he,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("input",{key:"f1f563567cde4a744c68e27ab91a3d795f596be6",ref:e=>this.inputReference=e,type:"number",value:this.defaultValue,readOnly:this.autofilled,id:`${this.name}__input`,class:`number__input ${i}`,pattern:this.validationPattern,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onInput:this.handleInput,onBlur:this.handleBlur}),h.h("small",{key:"0226f04a059fd8763822483de42bd7e647040bf3",class:"number__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};zs.style=Bf;const Hf=`*,
6661
6661
  *::before,
6662
6662
  *::after {
6663
6663
  padding: 0;
@@ -6901,7 +6901,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6901
6901
 
6902
6902
  .customreg-password__complexity::after {
6903
6903
  display: none;
6904
- }`,Uf=Hf,Rs=class{constructor(i){h.registerInstance(this,i),this.sendOriginalValidityState=h.createEvent(this,"sendOriginalValidityState"),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.touched=!1,this.originalValid=!1,this.validationPattern="",this.duplicateInputValue=null,this.handleInput=e=>{this.value=e.target.value,this.calculateComplexity(this.value),this.showPopup=!0,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleRevealField=e=>{e.stopPropagation(),window.postMessage({type:`registrationShow${this.name}`},window.location.href)},this.handleBlur=e=>{this.value=e.target.value,this.showPopup=!1,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()},this.handleFocus=()=>{this.showPopup=!0,this.calculateComplexity(this.value)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.noValidation=!1,this.language=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.hidePasswordComplexity=!1,this.clientStyling="",this.enableSouthAfricanMode=void 0,this.mbSource=void 0,this.isValid=void 0,this.errorMessage=void 0,this.showTooltip=!1,this.passwordComplexity=void 0,this.showPopup=void 0,this.value=""}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}valueChanged(){this.isDuplicateInput||(this.calculateComplexity(this.value),this.sendOriginalValidityState.emit({name:this.name,valid:this.setValidity()}))}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"duplicate"})}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}originalValidityChangedHandler(i){this.isDuplicateInput&&(i.detail.valid?(this.originalValid=!0,this.isValid=this.setValidity()):(this.originalValid=!1,this.isValid=!1,this.value!==""&&(this.errorMessage=this.setErrorMessage())))}valueChangedHandler(i){this.isDuplicateInput&&this.name===i.detail.name+"Duplicate"&&(this.duplicateInputValue=i.detail.value,this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())),this.name===i.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===i.detail.name&&this.touched===!0&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.passwordButton=this.element.shadowRoot.querySelector("vaadin-password-field-button"),this.passwordButton.tabIndex=-1,this.passwordButton.addEventListener("click",i=>{this.handleRevealField(i)}),this.defaultValue&&(this.value=this.defaultValue,this.calculateComplexity(this.value),this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.duplicateInputValue=this.defaultValue,this.touched=!0)),this.isValid=this.setValidity()}disconnectedCallback(){this.passwordButton.removeEventListener("click",this.handleRevealField)}calculateComplexity(i){if(this.noValidation){this.passwordComplexity=[];return}this.passwordComplexity=this.validation.custom.filter(e=>e.rule==="regex").map(e=>{const t=new RegExp(e.pattern);let r=!1;return i&&(r=t.test(i)),{rule:e.displayName,ruleKey:e.errorKey,passed:r}})}getValueValidity(){var i;const e=(i=this.value)!==null&&i!==void 0?i:"",{mandatory:t,minLength:r,maxLength:a}=this.validation;return{valueMissing:!!t&&e==="",tooShort:e!==""&&!!r&&e.length<r,tooLong:e!==""&&!!a&&e.length>a,patternMismatch:e!==""&&!!this.validationPattern&&!new RegExp(`^(?:${this.validationPattern})$`).test(e)}}setValidity(){var i;if(this.noValidation)return!0;if(this.isDuplicateInput&&this.duplicateInputValue!==this.value)return!1;if(!((i=this.passwordComplexity)===null||i===void 0)&&i.every(e=>e.passed)){const{valueMissing:e,tooShort:t,tooLong:r,patternMismatch:a}=this.getValueValidity();return!e&&!t&&!r&&!a}else return!1}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e,t,r,a;const{valueMissing:o,tooShort:n,tooLong:s,patternMismatch:l}=this.getValueValidity();if(n||s)return b("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(o)return b("requiredError",this.language);if(this.isDuplicateInput&&!this.originalValid)return b("invalidOriginalPasswordError",this.language);if(l){const d=(i=this.validation.custom.find(u=>u.rule==="regex"))===null||i===void 0?void 0:i.errorKey,c=(e=this.validation.custom.find(u=>u.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return b(`${d}`,this.language)?b(`${d}`,this.language):c}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const d=(t=this.validation.custom.find(u=>u.rule==="duplicate-input"))===null||t===void 0?void 0:t.errorKey,c=(r=this.validation.custom.find(u=>u.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorMessage;return b(`${d}`,this.language)?b(`${d}`,this.language):c}if(!(!((a=this.passwordComplexity)===null||a===void 0)&&a.every(d=>d.passed)))return b("invalidPassword",this.language)}isComplexityPopupVisible(){return!!this.passwordComplexity&&this.showPopup&&!this.hidePasswordComplexity&&!this.isDuplicateInput}isErrorCoveredByComplexityPopup(){const{valueMissing:i,tooShort:e,tooLong:t}=this.getValueValidity();return this.isComplexityPopupVisible()&&!i&&!e&&!t}renderTooltip(){return this.showTooltip?h.h("div",{class:`password__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}renderComplexityPopup(){const i=this.passwordComplexity.length,t=this.passwordComplexity.filter(a=>a.passed).length/i,r=this.passwordComplexity.every(a=>a.passed);return h.h("div",{class:`password__complexity ${this.showPopup?"":"password__complexity--hidden"}`},h.h("div",{class:"password__complexity--strength"},h.h("p",{class:"password__complexity--text"},b("passwordStrength",this.language)," ",h.h("span",{class:"password__complexity--text-bold"},b(`${r?"passwordStrengthStrong":"passwordStrengthWeak"}`,this.language))),h.h("meter",{value:t,min:"0",max:"1"})),h.h("div",null,this.passwordComplexity.map((a,o)=>h.h("div",{key:o},h.h("input",{class:"password__complexity--checkbox",type:"checkbox",checked:a.passed,disabled:!0}),h.h("span",null,b(`${a.ruleKey}`,this.language)?b(`${a.ruleKey}`,this.language):a.rule)))))}renderCustomComplexityPopup(){return h.h("div",{class:`customreg-password__complexity ${this.showPopup?"":"customreg-password__complexity--hidden"}`},h.h("p",{class:"customreg-password__complexity--title"},b("PasswordMustContain",this.language)),h.h("div",{class:"customreg-password__complexity--rules"},this.passwordComplexity.map((i,e)=>h.h("div",{class:"customreg-password__complexity--rule",key:e},h.h("span",{class:`customreg-password__complexity--icon ${i.passed?J.PASSWORD_COMPLEXITY_PASSED:J.PASSWORD_COMPLEXITY_FAILED}`},i.passed?ga.PASSED:ga.FAILED),h.h("span",null,b(i.ruleKey,this.language)||i.rule)))))}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"c10920f293ff4935cc5e6e9efd78ad84afb55b39",class:`password__wrapper ${this.autofilled?"password__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},h.h("div",{key:"6592d199a5dfb9b81995c0b045b62e10af05158d",class:"password__wrapper--flex"},h.h("label",{key:"893732849fc38cc702d1e21e1868263ca4a1e422",class:`password__label ${this.validation.mandatory?"password__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"0cd5a201d08c956989448770616f09a0e33836a1",class:"password__wrapper--relative"},this.tooltip&&h.h("img",{key:"b5ff997ee6307cb53f38a6de60c048d32ec980ab",class:"password__tooltip-icon",src:he,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("vaadin-password-field",{key:"6596dc25971341baeede5afc4fe65567a80f1a88",type:"password",id:`${this.name}__input`,class:`password__input ${i}`,name:this.name,readOnly:this.autofilled,value:this.defaultValue,required:this.validation.mandatory,maxlength:this.validation.maxLength,minlength:this.validation.minLength,pattern:this.validationPattern,placeholder:`${this.placeholder}`,onInput:this.handleInput,onBlur:this.handleBlur,onFocus:this.handleFocus}),!this.noValidation&&!this.isErrorCoveredByComplexityPopup()&&h.h("small",{key:"9f436a53c0a1ca1959bd825e3547b16e9e6eda7e",class:"password__error-message"},this.errorMessage),this.isComplexityPopupVisible()&&(this.enableSouthAfricanMode?this.renderCustomComplexityPopup():this.renderComplexityPopup()))}get element(){return h.getElement(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],value:["valueChanged"],emitValue:["emitValueHandler"]}}};Rs.style=Uf;const qf='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{font-family:"Roboto";font-style:normal}.text__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.text__wrapper--autofilled{pointer-events:none}.text__wrapper--autofilled .text__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__wrapper--autofilled .text__input::part(input-field){color:var(--emw--color-black, #000000)}.text__wrapper--flex{display:flex;gap:5px}.text__wrapper--relative{position:relative}.text__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.text__input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);border-radius:5px;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px}.text__input:focus{border:1px solid var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__input::placeholder{color:var(--emw--color-gray-150, #828282)}.text__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__tooltip-icon{width:16px;height:auto}.text__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.text__tooltip.visible{opacity:1}.input__text-wrapper{position:relative}.input__addresses-container{position:relative;left:0;width:100%;background:var(--emw--color-white);border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:8px;box-shadow:0 4px 12px rgba(0, 0, 0, 0.1);max-height:200px;overflow-y:auto;z-index:999;margin-top:4px}.input__addresses-container .options{padding:4px 0}.input__addresses-container .option{padding:8px 12px;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6);font-size:14px;line-height:1.4;transition:background-color 0.2s ease;color:var(--emw--registration-gray-800, #333)}.input__addresses-container .option:last-child{border-bottom:none}.input__addresses-container .option:hover{background-color:var(--emw--registration-lightgray-100, #f8f9fa)}.input__addresses-container .option:active{background-color:var(--emw--registration-lightgray-200, #e9ecef)}.input__addresses-container::-webkit-scrollbar{width:6px}.input__addresses-container::-webkit-scrollbar-track{background:var(--emw--registration-lightgray-150, #f1f1f1);border-radius:3px}.input__addresses-container::-webkit-scrollbar-thumb{background:var(--emw--registration-lightgray-300, #c1c1c1);border-radius:3px}.input__addresses-container::-webkit-scrollbar-thumb:hover{background:var(--emw--registration-lightgray-400, #a8a8a8)}.postalcode__no-results-message{color:var(--emw--color-error, var(--emw--color-red, #ed0909));margin-top:10px}.address__manual-input-msg{text-decoration:underline;margin-top:10px;cursor:pointer;transition:opacity 0.3s ease}.address__manual-input-msg:active{opacity:0.7}.postalcode__loading-spinner{display:flex;align-items:center;gap:8px;padding:12px;color:var(--emw--registration-gray-600, #666);border:1px solid var(--emw--color-gray-100, #E6E6E6);border-top:none;background-color:var(--emw--registration-lightgray-50, #f9f9f9)}.loading-spinner{width:14px;height:14px;border:2px solid var(--emw--color-gray-100, #E6E6E6);border-top:2px solid var(--emw--registration-gray-600, #666);border-radius:50%;animation:spin 0.8s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.pulse-border{border:1px solid var(--emw--registration-red-600, #cc4c4c);animation:pulse 0.5s ease-in-out 2 forwards}@keyframes pulse{0%{border-color:var(--emw--registration-red-600, #cc4c4c)}50%{border-color:var(--emw--registration-red-400, #e57373)}100%{border-color:var(--emw--color-gray-100, #E6E6E6)}}',jf=qf,Fs=class{constructor(i){h.registerInstance(this,i),this.sendAddressValue=h.createEvent(this,"sendAddressValue"),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.value="",this.validationPattern="",this.hasManualAddressBeenTriggered=!1,this.touched=!1,this.maxPostalCodeLength="10",this.handleInput=e=>{const r=e.target.value.toUpperCase();this.value=r,this.touched=!0,this.currentPostalCode=r,this.showNoResultsMessage=!1,this.inputReference&&(this.inputReference.value=r),this.value.length<this.postalcodelength&&(this.openAddressDropdown=!1,this.isFetchingAddresses=!1),(this.value===""||this.value.length<1)&&(this.openAddressDropdown=!1,this.isFetchingAddresses=!1),this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.value.length>=this.postalcodelength&&(sessionStorage.setItem("currentPostalCode",this.value),this.showNoResultsMessage=!1,this.addresses&&this.addresses.length>0&&(this.openAddressDropdown=!0));const a=this.isValid;this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),a!==this.isValid&&this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)},300)},this.handleBlur=e=>{this.value=e.target.value,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.showNoResultsMessage=!1,this.openAddressDropdown||(this.showNoResultsMessage=!1)},this.handleFocus=()=>{this.currentPostalCode&&this.currentPostalCode.length>=this.postalcodelength&&(this.openAddressDropdown=!0)},this.handlePostalCode=(e,t)=>{e.stopPropagation();const r=`${t.number}`.trim(),a=`${t.street}`.trim(),o=`${t.city}`.trim();this.sendAddressValue.emit({city:o,address1:r,address2:a}),this.value=this.currentPostalCode.toLocaleUpperCase(),this.touched=!0,this.isValid=!0,this.openAddressDropdown=!1,this.showNoResultsMessage=!1,this.isFetchingAddresses=!1,this.valueHandler({name:this.name,value:this.value}),this.validityStateHandler({valid:!0,name:this.name}),this.valueHandler({name:"address1",value:r}),this.valueHandler({name:"City",value:o}),a&&this.valueHandler({name:"address2",value:a}),this.refreshTrigger++},this.enterAddressManually=()=>{const e=window.targetInputRefs;if(!e)return;const t=[{name:"PostalCode",ref:e.PostalCode,minLength:this.postalcodelength},{name:"address1",ref:e.address1},{name:"address2",ref:e.address2},{name:"City",ref:e.City}],a=[{name:"PostalCode",ref:e.PostalCode,minLength:this.postalcodelength},{name:"address1",ref:e.address1},{name:"City",ref:e.City}].find(n=>{var s;const l=((s=n.ref)===null||s===void 0?void 0:s.value)||"";return n.minLength?l.length===0||l.length<n.minLength:l.length===0}),o=(a==null?void 0:a.ref)||e.address1||e.PostalCode;o.scrollIntoView({behavior:"smooth",block:"center"}),this.hasManualAddressBeenTriggered||(this.hasManualAddressBeenTriggered=!0,t.forEach(n=>{var s;if(n.ref){const l=((s=n.ref.shadowRoot)===null||s===void 0?void 0:s.querySelector("input"))||n.ref;if(l){l.classList.add("pulse-border");const d=()=>{l.classList.remove("pulse-border"),l.removeEventListener("animationend",d)};l.addEventListener("animationend",d)}}})),o.focus()},this.handleOutsideClick=e=>{if(!this.openAddressDropdown)return;const t=e.composedPath?e.composedPath():[],r=t.includes(this.inputReference),a=t.includes(this.addressesDropdownRef),o=t.some(n=>{var s;return n instanceof Element&&((s=n.classList)===null||s===void 0?void 0:s.contains("option"))});!r&&!a&&!o&&(this.openAddressDropdown=!1,this.showNoResultsMessage=!1)},this.name="PostalCode",this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.postalcodelength=void 0,this.addresses=void 0,this.ignoreCountry=!1,this.mbSource=void 0,this.isValid=void 0,this.errorMessage="",this.showTooltip=!1,this.selectedCountryCode="",this.currentPostalCode="",this.openAddressDropdown=!1,this.showNoResultsMessage=!1,this.refreshTrigger=0,this.isFetchingAddresses=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value}),i===!0&&!this.value.length&&this.valueHandler({name:this.name,value:this.value})}handleAddresses(i){i&&i.length>0?(this.openAddressDropdown=!0,this.showNoResultsMessage=!1):(this.openAddressDropdown=!1,this.isFetchingAddresses&&this.currentPostalCode.length>=this.postalcodelength&&setTimeout(()=>{this.currentPostalCode.length>=this.postalcodelength&&!this.isFetchingAddresses&&(this.showNoResultsMessage=!0)},200)),this.isFetchingAddresses=!1}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}handleCountryCodeUpdate(i){const{name:e,value:t}=i.detail;this.selectedCountryCode=t,e==="CountryCode"&&(this.resetPostalCodeField(),this.refreshTrigger++)}handleFetchStarted(){this.showNoResultsMessage=!1,this.isFetchingAddresses=!0,this.openAddressDropdown=!1}connectedCallback(){this.validationPattern=this.setPattern()}componentWillLoad(){this.defaultValue&&(this.value=this.defaultValue)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.defaultValue&&this.valueHandler({name:this.name,value:this.value}),this.inputReference&&(window.targetInputRefs=window.targetInputRefs||{},window.targetInputRefs[this.name]=this.inputReference),this.isValid=this.setValidity(),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick)}setValidity(){if(!this.inputReference)return!1;const i=this.inputReference.validity.valid,e=!this.inputReference.value||this.inputReference.value.match(this.validationPattern)!==null;return i&&e}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e;if(!this.touched)return"";if(this.inputReference.validity.valueMissing)return b(de.REQUIRED,this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong){const{minLength:t,maxLength:r}=this.validation;return t===r?b(de.FIXED_LENGTH,this.language,{values:{length:t}}):b(de.LENGTH,this.language,{values:{minLength:t,maxLength:r}})}if(this.inputReference.value.match(this.validationPattern)==null){const t=(i=this.validation.custom.find(a=>a.rule==="regex"))===null||i===void 0?void 0:i.errorKey,r=(e=this.validation.custom.find(a=>a.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return b(`${t}`,this.language)||r}return""}resetPostalCodeField(){this.value="",this.currentPostalCode="",this.showNoResultsMessage=!1,this.openAddressDropdown=!1,this.isFetchingAddresses=!1,sessionStorage.removeItem("currentPostalCode"),this.inputReference&&(this.inputReference.value=""),this.valueHandler({name:this.name,value:""}),this.validityStateHandler({valid:!1,name:this.name})}renderTooltip(){return this.showTooltip?h.h("div",{class:`text__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}determineInputValue(){return this.inputReference&&this.name&&(window.targetInputRefs=window.targetInputRefs||{},window.targetInputRefs[this.name]=this.inputReference),this.value}render(){var i,e;let t="";this.touched&&(t=this.isValid==!0||this.isValid==null?"":"text__input--invalid");let r=this.selectedCountryCode==="UK"||this.selectedCountryCode==="GB"||this.ignoreCountry,a=((i=this.addresses)===null||i===void 0?void 0:i.length)>0&&this.openAddressDropdown&&r,o=this.showNoResultsMessage&&this.currentPostalCode&&this.currentPostalCode.length>=this.postalcodelength&&((e=this.addresses)===null||e===void 0?void 0:e.length)===0&&r,n=this.isFetchingAddresses&&this.currentPostalCode.length>=this.postalcodelength;return h.h("div",{key:"f0dda39cf9a02d53213848926908c0cb39d1cd3f",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:s=>this.stylingContainer=s},h.h("div",{key:"5e1c51af264392d2be986e305e6526310f55f40b",class:"text__wrapper--flex"},h.h("label",{key:"c12c45d88bdf42aeb6be505d473ab0f55da2be87",class:`text__label ${this.validation.mandatory?"text__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"7b93a75f19590b445227fa1a64c90fd20c0afd5d",class:"text__wrapper--relative"},this.tooltip&&h.h("img",{key:"504004a13595694307c1e3450b69982150dc55fd",class:"text__tooltip-icon",src:he,alt:"",ref:s=>this.tooltipIconReference=s,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("div",{key:"19de66fd72fd0a6befe3bbaebb6c8f99ec5f850b",class:"input__text-wrapper"},h.h("input",{key:"78cd4229ed5104518b991df0bc6bf527df2ec3e2",name:this.name,id:`${this.name}__input`,value:this.determineInputValue(),type:"text",class:`text__input ${t}`,placeholder:`${this.placeholder}`,ref:s=>this.inputReference=s,readOnly:this.autofilled,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.maxPostalCodeLength,onInput:this.handleInput,onBlur:this.handleBlur,onFocus:this.handleFocus}),!r&&h.h("p",{key:"6b9e307d59fb9fed93f4df6c07a091d299844c62",class:"address__manual-input-msg",onClick:()=>this.enterAddressManually()},b("enterIEAddressManually",this.language)),a&&h.h("div",{key:"ecb7892a9a8d967540d8fd013518ae19498fcd48",class:"input__addresses-container",ref:s=>this.addressesDropdownRef=s},h.h("div",{key:"a5ef3f81a85207a821964e23b21aaf783be807cc",class:"options"},this.addresses.map((s,l)=>h.h("div",{key:l,class:"option",onClick:d=>this.handlePostalCode(d,s)},s.number," ",s.street," ",s.city)))),n&&h.h("div",{key:"338c17e484721efb387e608f3ce4416a0e47b8af",class:"postalcode__loading-spinner"},h.h("div",{key:"7638cea4fba975e3a27d4cb00bce217129bd0750",class:"loading-spinner"}),h.h("span",{key:"b59a8a9c3d7ecf209a68717346d1d29062994f79"},b("searchingForAddresses",this.language))),o&&h.h("div",{key:"212a74fed94b3ee089aed5c9afb544966b5f11cd",class:"postalcode__no-results-message"},b("postalLookUpNoAddressFound",this.language))),h.h("small",{key:"4f66e97dd811b9917c92ff4bcbf236817ac57933",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"],addresses:["handleAddresses"]}}};Fs.style=jf;const Wf="*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.radio__fieldset{border:none;position:relative}.radio__wrapper{display:flex;gap:5px}.radio__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.radio__tooltip-icon{position:absolute;right:0;bottom:10px}.radio__tooltip{position:absolute;bottom:35px;right:10px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.radio__tooltip.visible{opacity:1}",Yf=Wf,$s=class{constructor(i){h.registerInstance(this,i),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.name=void 0,this.displayName=void 0,this.optionsGroup=void 0,this.validation=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}validityStateHandler(i){this.sendValidityState.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling()}handleClick(i){this.value=i.target.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return b("requiredError",this.language)}renderTooltip(){return this.showTooltip?h.h("div",{class:`radio__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return h.h("fieldset",{key:"7048de0e37c9541af1c9788e8b46c789ca788c31",class:`radio__fieldset ${this.name}__input`,ref:i=>this.stylingContainer=i},h.h("legend",{key:"403b739c966d510740ca59621c094872b93e2cba",class:"radio__legend"},this.displayName,":"),this.optionsGroup.map(i=>h.h("div",{class:"radio__wrapper"},h.h("input",{type:"radio",class:"radio__input",id:`${i.label}__input`,ref:e=>this.inputReference=e,value:i.value,name:this.name,required:this.validation.mandatory,onClick:e=>this.handleClick(e)}),h.h("label",{htmlFor:`${i.label}__input`},i.label))),h.h("small",{key:"46dce1082a6aa9f2a5bdc3e3654c924fcd2a8357",class:"radio__error-message"},this.errorMessage),this.tooltip&&h.h("img",{key:"dfe155a429485b5c891db2943d9115cdc40e169b",class:"radio__tooltip-icon",src:he,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};$s.style=Yf;const Gf='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}:host{height:100%;--_invalid-hover-highlight:transparent;--vaadin-input-field-invalid-hover-highlight:transparent}vaadin-combo-box>input{background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--registration-typography, var(--emw--color-black, #000000));font-weight:300;font-size:16px;-webkit-font-smoothing:initial;}.select{font-family:"Roboto";font-style:normal}.select__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.select__wrapper--autofilled{pointer-events:none}.select__wrapper--autofilled .select__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__wrapper--autofilled .select__input::part(input-field){color:var(--emw--color-black, #000000)}.select__wrapper--flex{display:flex;gap:5px}.select__wrapper--relative{position:relative}.select__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.select__input{border:none;width:inherit;position:relative}.select__input[focused]:not(.text__input--invalid)::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.select__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__input vaadin-date-picker-overlay-content>vaadin-button{color:var(--emw--color-black, #000000)}.select__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:44px}.select__input::part(toggle-button){position:relative;right:10px}.select__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__tooltip-icon{width:16px;height:auto}.select__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.select__tooltip.visible{opacity:1}',Kf=Gf,Bs=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.touched=!1,this.handleComboChange=e=>{this.touched=!0;const t=e.target.value,r=this.options.find(a=>a.value.toLowerCase()===t.toLowerCase());r?this.value=r.value:this.value=t,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},this.handleBlur=e=>{const t=e.currentTarget;t.opened||(this.touched=!0,this.value=t.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}))},this.handleSelectChange=e=>{this.touched=!0,this.value=e.target.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.options=[],this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}connectedCallback(){var i;this.displayedOptions=this.options.map(e=>({label:e.label,value:e.value})),this.isComboBox=((i=this.displayedOptions)===null||i===void 0?void 0:i.length)>6}componentWillLoad(){if(this.action&&!this.options.length&&this.action.split(" ")[0]=="GET"){const i=this.action.split(" ")[1];return this.getOptions(i).then(e=>{var t;const r=Object.keys(e)[0];this.displayedOptions=e[r].map(a=>({label:a.Name,value:a.Alpha2Code})),this.isComboBox=((t=this.displayedOptions)===null||t===void 0?void 0:t.length)>6})}}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.inputReference=this.vaadinCombo.querySelector("input"),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}),this.inputReference&&(this.inputReference.value=this.value)),this.isValid=this.setValidity(),!this.isComboBox&&this.vaadinCombo&&this.vaadinCombo.addEventListener("opened-changed",i=>{if(i.detail.value===!0)this.errorMessage="";else{const e=i.currentTarget;this.touched=!0,this.value=e.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name})}})}getOptions(i){const e=new URL(i);return new Promise((t,r)=>{fetch(e.href).then(a=>a.json()).then(a=>{t(a)}).catch(a=>{console.error(a),r(a)})})}setValidity(){var i;return!((i=this.validation)===null||i===void 0)&&i.mandatory?!!this.value:!0}setErrorMessage(){var i,e,t;if(!((e=(i=this.inputReference)===null||i===void 0?void 0:i.validity)===null||e===void 0)&&e.valueMissing||!((t=this.vaadinCombo)===null||t===void 0)&&t.invalid)return b("requiredError",this.language)}renderTooltip(){return this.showTooltip?h.h("div",{class:`select__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){var i,e;let t="";return this.touched&&(t=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"eb6c9d7d85546159d44d06a0635f173263edd7d1",class:`select__wrapper ${this.autofilled?"select__wrapper--autofilled":""} ${this.name}__input`,ref:r=>this.stylingContainer=r},h.h("div",{key:"0fd71c528870966fdb23049b1806a267e9e6ca5c",class:"select__wrapper--flex"},h.h("label",{key:"44aeb4e50ab2f79df06741ff07ac03131c987447",class:"select__label",htmlFor:`${this.name}__input`},this.displayName,h.h("span",{key:"796a83aeadd480a571b6bae035a46138d7b10b24",class:this.validation.mandatory?"select__label--required":""})),h.h("div",{key:"6d7b2d785c6b0bdd05c7444f563b21cedf26ff7c",class:"select__wrapper--relative"},this.tooltip&&h.h("img",{key:"f33e43a9d42e8b8d1cf136374505eeaedcbede26",class:"select__tooltip-icon",src:he,alt:"",ref:r=>this.tooltipIconReference=r,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),this.isComboBox?h.h("vaadin-combo-box",{name:this.name,id:`${this.name}__input`,class:`select__input ${t} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",ref:r=>this.vaadinCombo=r,readOnly:this.autofilled,required:(i=this.validation)===null||i===void 0?void 0:i.mandatory,value:this.value,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleComboChange,onBlur:this.handleBlur}):h.h("vaadin-select",{name:this.name,popover:!1,id:`${this.name}__input`,class:`select__input ${t} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",ref:r=>this.vaadinCombo=r,readOnly:this.autofilled,required:(e=this.validation)===null||e===void 0?void 0:e.mandatory,value:this.value,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleSelectChange,"no-vertical-overlap":!0,noVerticalOverlap:!0}),h.h("small",{key:"261b3c4abc9b360e6b937d851f8bfc810280a8c6",class:"select__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Bs.style=Kf;const Xf='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.tel{font-family:"Roboto";font-style:normal}.tel__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.tel__wrapper--autofilled{pointer-events:none}.tel__wrapper--autofilled .tel__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__wrapper--autofilled .tel__input::part(input-field){color:var(--emw--color-black, #000000)}.tel__wrapper--flex{width:inherit;display:flex;align-items:center;border-radius:4px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);overflow:hidden;padding-left:4px}.tel__wrapper--flex:focus-within{border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.tel__wrapper--flex-label{display:flex;gap:5px}.tel__wrapper--flex--relative{position:relative}.tel__wrapper .text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.tel__prefix{--vaadin-field-default-width:90px}.tel__prefix[focus]{outline:none}.tel__prefix::part(input-field){height:100%;border-radius:0 5px 5px 0;background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:1.5;border:none;border-right:2px solid #DDE0EE;border-image-source:linear-gradient(to bottom, rgba(221, 224, 238, 0) 25%, rgb(221, 224, 238) 25%, rgb(221, 224, 238) 75%, rgba(221, 224, 238, 0) 75%);border-image-slice:1;border-image-repeat:round}.tel__prefix::part(input-field):hover{background-color:var(--emw--color-white, #FFFFFF)}.tel__input{font-family:inherit;border-radius:5px;width:100%;color:var(--emw--registration-typography, var(--emw--color-black, #000000));background-color:var(--emw--color-white, #FFFFFF);border:none;width:inherit;position:relative;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:42px;-moz-appearance:textfield;}.tel__input:focus{outline:none}.tel__input::-webkit-outer-spin-button,.tel__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.tel__input::placeholder{color:var(--emw--color-gray-150, #979797)}.tel__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__tooltip-icon{width:16px;height:auto}.tel__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.tel__tooltip.visible{opacity:1}',Qf=Xf,Hs=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=e=>{this.setPhoneValue(e.target.value),this.value={prefix:this.prefixValue,phone:this.phoneValue},this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.isValidValue(),this.applyCustomError(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.touched=!0,this.isValid=this.isValidValue(),this.applyCustomError(),this.errorMessage=this.setErrorMessage()},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.showLabels=void 0,this.action=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.enableCustomRegexValidation=!1,this.isValid=void 0,this.errorMessage=void 0,this.showTooltip=!1,this.disablePhonePrefix=!1,this.phoneValue="",this.phoneCodesOptions=void 0}setPhoneValue(i){const e=i.replace(/[^0-9]/g,"");this.phoneValue=e,this.inputReference&&(this.inputReference.value=this.phoneValue)}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}resetValidationState(){this.lastCustomErrorKey=void 0,this.lastCustomErrorMessage=void 0,this.inputReference.setCustomValidity("")}isMissingValue(i){return this.validation.mandatory&&i===""}isFixedLength(i){const e=this.validation.minLength,t=this.validation.maxLength;return!!(e&&t&&e===t&&i.length!==e)}isTooShort(i){const e=this.validation.minLength;return!!(e&&i.length<e)}isTooLong(i){const e=this.validation.maxLength;return!!(e&&i.length>e)}failsPattern(i){if(!this.validationPattern)return!1;let e;try{e=new RegExp(this.validationPattern)}catch(t){return console.warn("Invalid validationPattern:",this.validationPattern,t),!1}return!e.test(i)}failsCustomRules(i){const e=(this.validation.custom||[]).filter(r=>r.rule==="regex"&&r.pattern),[,...t]=e;for(const r of t){let a;try{a=new RegExp(r.pattern)}catch(o){console.warn("Invalid regex pattern:",r.pattern,o);continue}if(!a.test(i))return!0}return!1}connectedCallback(){var i;this.validationPattern=this.setPattern(),this.defaultValue&&(this.prefixValue=this.defaultValue.prefix?this.defaultValue.prefix:this.defaultValue,this.setPhoneValue((i=this.defaultValue.phone)!==null&&i!==void 0?i:""),this.phoneCodesOptions=[{label:this.prefixValue,value:this.prefixValue}])}componentWillLoad(){if(this.action&&this.action.split(" ")[0]=="GET"){const i=this.action.split(" ")[1];this.getPhoneCodes(i).then(e=>{this.phoneCodesOptions=e.phoneCodes.map(t=>typeof t=="object"&&t.Prefix?{label:t.Prefix,value:t.Prefix}:{label:t,value:t}),this.disablePhonePrefix=this.phoneCodesOptions.length<=1})}}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.isValid=this.isValidValue(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value,type:"tel"}))}getPhoneCodes(i){const e=new URL(i);return new Promise((t,r)=>{fetch(e.href).then(a=>a.json()).then(a=>{t(a)}).catch(a=>{console.error(a),r(a)})})}handlePrefixInput(i){this.prefixValue=i.target.value,this.value={prefix:this.prefixValue,phone:this.phoneValue},this.emitValueHandler(!0)}isValidValue(){var i,e;if(!this.inputReference)return!1;this.resetValidationState();const t=(e=(i=this.phoneValue)===null||i===void 0?void 0:i.trim())!==null&&e!==void 0?e:"",r=t==="";return this.isMissingValue(t)?!1:r?!0:!(this.isFixedLength(t)||this.isTooShort(t)||this.isTooLong(t)||this.failsPattern(t)||this.failsCustomRules(t))}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e,t,r;if(!((e=(i=this.inputReference)===null||i===void 0?void 0:i.validity)===null||e===void 0)&&e.customError||(this.lastCustomErrorKey=void 0,this.lastCustomErrorMessage=void 0),this.inputReference.validity.patternMismatch){const n=(t=this.validation.custom.find(l=>l.rule==="regex"))===null||t===void 0?void 0:t.errorKey,s=(r=this.validation.custom.find(l=>l.rule==="regex"))===null||r===void 0?void 0:r.errorMessage;return b(`${n}`,this.language)?b(`${n}`,this.language):s}const{minLength:a,maxLength:o}=this.validation;if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong||a&&this.phoneValue&&this.phoneValue.length<a||o&&this.phoneValue&&this.phoneValue.length>o)return a===o?b(de.FIXED_LENGTH,this.language,{values:{length:a}}):b(de.LENGTH,this.language,{values:{minLength:a,maxLength:o}});if(this.inputReference.validity.valueMissing)return b(de.REQUIRED,this.language);if(this.inputReference.validity.customError&&(this.lastCustomErrorKey||this.lastCustomErrorMessage)){const n=this.lastCustomErrorKey?b(`${this.lastCustomErrorKey}`,this.language):"";return n||this.lastCustomErrorMessage||""}}applyCustomError(){const i=(this.validation.custom||[]).filter(t=>t.rule==="regex"&&t.pattern),[,...e]=i;for(const t of e){let r;try{r=new RegExp(t.pattern)}catch(a){console.warn("[applyCustomError] invalid regex pattern:",t.pattern,a);continue}if(!r.test(this.phoneValue)){this.lastCustomErrorKey=t.errorKey,this.lastCustomErrorMessage=t.errorMessage,this.inputReference.setCustomValidity("customError");return}}}renderTooltip(){return this.showTooltip?h.h("div",{class:`tel__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){var i;let e="";return this.touched&&(e=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"82da44bb2bacec9efb3631e377978d678e766919",class:`tel__wrapper ${this.autofilled?"tel__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},h.h("div",{key:"4ca8d6dde2d3f8e15e2d26d593297519e0c94053",class:"tel__wrapper--flex-label"},h.h("label",{key:"3b0e2736fd47537b2ecd80cf49a146992d59474e",class:`tel__label ${this.validation.mandatory?"tel__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"1577aafc7b68128e91cdfe9ddc563bbad9d7b901",class:"tel__wrapper--relative"},this.tooltip&&h.h("img",{key:"cb6576e1248fc52f937c685d59d994a1d098d7cc",class:"tel__tooltip-icon",src:he,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("div",{key:"a1e9f3c68691fbb61947cd41c0ffddcd124b4bbb",class:`tel__wrapper--flex ${e}`},h.h("vaadin-combo-box",{key:"9aa33a487f019ee7393e29a0ce0d1836a23f5e09",class:"tel__prefix",items:this.phoneCodesOptions,value:this.prefixValue,readOnly:this.disablePhonePrefix,onChange:t=>this.handlePrefixInput(t)}),h.h("input",{key:"21d69c041b9a5f5f6fb1e6d7b392945cafe99e87",type:"tel",ref:t=>this.inputReference=t,id:`${this.name}__input`,readOnly:this.autofilled,class:"tel__input",value:(i=this.phoneValue)!==null&&i!==void 0?i:"",placeholder:`${this.placeholder}`,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,pattern:this.validationPattern,onInput:this.handleInput,onBlur:this.handleBlur})),h.h("small",{key:"76febe89ad7ee581eb5fc79658d81123da08ccdd",class:"tel__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Hs.style=Qf;const Jf='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{font-family:"Roboto";font-style:normal}.text__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.text__wrapper--autofilled{pointer-events:none}.text__wrapper--autofilled .text__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__wrapper--autofilled .text__input::part(input-field){color:var(--emw--color-black, #000000)}.text__wrapper--flex{display:flex;gap:5px}.text__wrapper--relative{position:relative}.text__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.text__input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);border-radius:5px;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px}.text__input:focus{border:1px solid var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__input::placeholder{color:var(--emw--color-gray-150, #828282)}.text__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__tooltip-icon{width:16px;height:auto}.text__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.text__tooltip.visible{opacity:1}.pulse-border{border:1px solid var(--emw--registration-red-600, #cc4c4c);animation:pulse 0.5s ease-in-out 2 forwards}@keyframes pulse{0%{border-color:var(--emw--registration-red-600, #cc4c4c)}50%{border-color:var(--emw--registration-red-400, #e57373)}100%{border-color:var(--emw--color-gray-100, #E6E6E6)}}',Zf=Jf,Us=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.value="",this.validationPattern="",this.duplicateInputValue=null,this.postalcodelength=5,this.touched=!1,this.handleInput=e=>{const t=e.target,r=this.enableSouthAfricanMode&&(this.name===J.FIRSTNAME_ON_DOCUMENT||this.name===J.LASTNAME_ON_DOCUMENT)?t.value.replace(J.NON_LETTERS_REGEX,""):t.value;r!==t.value&&(t.value=r),this.value=r,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.updateValidationState(),this.emitValueHandler(!0)},500)},this.handleBlur=e=>{this.value=e.target.value,this.touched=!0,this.updateValidationState()},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.checkValidity=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.haspostalcodelookup=void 0,this.enableSouthAfricanMode=void 0,this.mbSource=void 0,this.isValid=void 0,this.errorMessage="",this.showTooltip=!1,this.selectedCountryCode=""}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}valueChangedHandler(i){this.isDuplicateInput&&this.name===i.detail.name+"Duplicate"&&(this.duplicateInputValue=i.detail.value,this.touched&&this.updateValidationState()),this.name===i.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===i.detail.name&&this.touched&&this.updateValidationState()}handleValidationChange(i){i.detail.field===this.name&&(this.validation=i.detail.validation,this.validationPattern=this.setPattern(),this.touched&&(this.isValid=this.isValidValue(),this.errorMessage=this.setErrorMessage()))}handleCountryCodeUpdate(i){const{name:e,value:t}=i.detail;this.selectedCountryCode=t,e==="CountryCode"&&["address1","address2","City"].includes(this.name)&&(this.value="",this.touched=!1,this.errorMessage="",this.isValid=!1,this.inputReference&&(this.inputReference.value=""),this.valueHandler({name:this.name,value:""}),this.validityStateHandler({valid:!1,name:this.name}))}handleAddressSelection(i){const{city:e,address1:t,address2:r}=i.detail;if(!["address1","address2","City"].includes(this.name))return;let a="";this.name==="address1"?a=t:this.name==="address2"?a=r:this.name==="City"&&(a=e),this.value=a,this.touched=!0,this.updateValidationState()}connectedCallback(){this.validationPattern=this.setPattern()}handleExternalDocUpdate(i){this.name===J.DOCUMENT_NUMBER&&(this.value=i.detail||"",this.touched=!0,this.inputReference&&(this.inputReference.value=this.value),this.sendInputValue.emit({name:this.name,value:this.value}),this.updateValidationState())}handleDocReset(){this.name===J.DOCUMENT_NUMBER&&(this.value="",this.touched=!1,this.isValid=!1,this.errorMessage="",this.inputReference&&(this.inputReference.value=""),this.validityStateHandler({valid:!1,name:this.name}))}componentWillLoad(){this.defaultValue&&(this.value=this.defaultValue)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.touched=!0)),this.haspostalcodelookup&&["address1","address2","City","PostalCode"].includes(this.name)&&(window.targetInputRefs=window.targetInputRefs||{},window.targetInputRefs[this.name]=this.inputReference),this.isValid=this.isValidValue()}validateDocument(i,e){const t=i.trim();return e===J.PASSPORT?J.PASSPORT_NUMERIC_REGEX.test(t)?{valid:!0}:{valid:!1,errorKey:de.PASSPORT_INVALID}:e===J.SOUTH_AFRICAN_ID?t.length!==J.SOUTH_AFRICAN_ID_LENGTH?{valid:!1,errorKey:de.SA_ID_LENGTH}:Qs(t)?{valid:!0}:{valid:!1,errorKey:de.SA_ID_INVALID}:{valid:!0}}updateValidationState(){const i=this.isValidValue();if(this.isValid=i,!this.touched){this.errorMessage="";return}this.errorMessage=i?"":this.setErrorMessage()}isValidValue(){if(!this.inputReference)return!1;if(this.enableSouthAfricanMode&&this.name===J.DOCUMENT_NUMBER){const e=window.documentTypeValue;return this.validateDocument(this.value,e).valid}return this.value.trim()===""&&!this.validation.mandatory||this.inputReference.validity.valid&&(!this.inputReference.value||this.inputReference.value.match(this.validationPattern)!==null)}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e,t,r;const a=this.value.trim();if(this.enableSouthAfricanMode&&this.name===J.DOCUMENT_NUMBER){const o=window.documentTypeValue,n=this.validateDocument(this.value,o);return n.valid?"":b(n.errorKey,this.language)}if(a===""&&!this.validation.mandatory)return"";if(this.inputReference.validity.valueMissing)return b(de.REQUIRED,this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong){const{minLength:o,maxLength:n}=this.validation;return o===n?b(de.FIXED_LENGTH,this.language,{values:{length:o}}):b(de.LENGTH,this.language,{values:{minLength:o,maxLength:n}})}if(this.inputReference.value.match(this.validationPattern)==null){const o=(i=this.validation.custom.find(s=>s.rule==="regex"))===null||i===void 0?void 0:i.errorKey,n=(e=this.validation.custom.find(s=>s.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return b(`${o}`,this.language)||n}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const o=(t=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||t===void 0?void 0:t.errorKey,n=(r=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorMessage;return b(`${o}`,this.language)?b(`${o}`,this.language):n}return""}renderTooltip(){return this.showTooltip?h.h("div",{class:`text__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"f48e592bac049022b283bac917c095772b1508f5",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:e=>this.stylingContainer=e},h.h("div",{key:"fe3626ead38dd18dfa14795ee2332e93f5f09652",class:"text__wrapper--flex"},h.h("label",{key:"6b2854b460e0ac7d4ae0ebccc06dbe64770581d5",class:`text__label ${this.validation.mandatory?"text__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"f29d266973bd700a4270495bc4eb6e8296b6eeaf",class:"text__wrapper--relative"},this.tooltip&&h.h("img",{key:"68e69abbb78250e763822608e963bc16d702f099",class:"text__tooltip-icon",src:he,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("input",{key:"99b8eab15ab32656f86fedd3f36a09a5bbe108d3",name:this.name,id:`${this.name}__input`,value:this.value,type:"text",class:`text__input ${i}`,placeholder:`${this.placeholder}`,ref:e=>this.inputReference=e,readOnly:this.autofilled,required:this.validation.mandatory,minlength:this.enableSouthAfricanMode?"":this.validation.minLength,maxlength:this.enableSouthAfricanMode?"":this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),h.h("small",{key:"cc28c1c19370faa94fa1f738066042dce8d694ce",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Us.style=Zf;const ev='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.togglecheckbox{font-family:"Roboto";font-style:normal;font-size:15px}.togglecheckbox__wrapper{position:relative}.togglecheckbox__wrapper--flex{display:flex;gap:10px;align-items:baseline}.togglecheckbox__wrapper--relative{position:relative;display:inline}.togglecheckbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.togglecheckbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.togglecheckbox__label-text{font-size:16px}.togglecheckbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.togglecheckbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.togglecheckbox__tooltip-icon{width:16px;height:auto}.togglecheckbox__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.togglecheckbox__tooltip.visible{opacity:1}.togglecheckbox__fields-wrapper{margin-top:40px;display:flex;flex-direction:column;gap:40px}.hidden{display:none}',tv=ev,qs=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.callBackObject={},this.subFieldsObject={},this.value="",this.handleRevealField=(e,t)=>{e.stopPropagation(),window.postMessage({type:`registration${t}Clicked`},window.location.href)},this.name=void 0,this.displayName=void 0,this.defaultValue="",this.options=void 0,this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.translationUrl=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1,this.showFields=this.defaultValue==="true"}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.options.length!==0&&this.options.forEach(i=>{this.callBackObject[i.name]=e=>{this.handleRevealField(e,i.name)},this.subFieldsObject[i.name].addEventListener("click",this.callBackObject[i.name])})}handleClick(){this.showFields=this.checkboxReference.checked,this.errorMessage=this.setErrorMessage(),this.isValid=this.setValidity(),this.valueHandler({name:this.name,value:this.checkboxReference.checked?"true":"false",type:"toggle"})}setValidity(){return this.checkboxReference.validity.valid}setErrorMessage(){if(this.checkboxReference.validity.valueMissing)return b("requiredError",this.language)}disconnectedCallback(){this.options.forEach(i=>{this.subFieldsObject[i.name].removeEventListener("click",this.callBackObject[i.name])})}renderLabel(){return h.h("label",{class:"togglecheckbox__label",htmlFor:`${this.name}__input`},h.h("div",{class:"togglecheckbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?h.h("div",{class:`togglecheckbox__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return h.h("div",{key:"4bb7b3391398f78dceffef403f6b216c0cbdd312",class:`togglecheckbox__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},h.h("div",{key:"214848f815c996605c1f710c46dde6bfe83f0cf7",class:"togglecheckbox__wrapper--flex"},h.h("input",{key:"e1b829fafa91d20a80c19d49c2ce536c41892c0d",class:"togglecheckbox__input",type:"checkbox",id:`${this.name}__input`,ref:i=>this.checkboxReference=i,name:this.name,checked:this.defaultValue==="true",readOnly:this.autofilled,required:this.validation.mandatory,value:this.value,onClick:()=>this.handleClick()}),this.renderLabel()),h.h("small",{key:"e01a4c6bc20fae1aa56ba2888e18c3b43181e7ce",class:"togglecheckbox__error-message"},this.errorMessage),h.h("div",{key:"5d4b6f06c72de9d9bb62dfcba08bd7366d355733",class:"togglecheckbox__wrapper--relative"},this.tooltip&&h.h("img",{key:"51983de9c47a15e00b16ea7aae860c71580a6511",class:"togglecheckbox__tooltip-icon",src:he,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),h.h("div",{key:"ab12b489947e92ac32c9c061f5b30865996fe6e0",class:`togglecheckbox__fields-wrapper ${this.showFields?"":"hidden"}`},this.options.map(i=>h.h("general-input",{type:i.inputType,name:i.name,displayName:i.displayName,validation:i.validate,action:i.action||null,defaultValue:i.defaultValue,autofilled:i.autofill,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,"mb-source":this.translationUrl?void 0:this.mbSource,tooltip:i.tooltip,placeholder:i.placeholder==null?"":i.placeholder,ref:e=>this.subFieldsObject[i.name]=e}))))}static get watchers(){return{clientStyling:["handleClientStylingChange"]}}};qs.style=tv;const iv="*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.twofa{display:flex;flex-direction:column;gap:10px}.twofa__description{display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center}.twofa__error-message{text-align:center;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.twofa__input-wrapper{display:flex;justify-content:center}.twofa__input-wrapper input{width:35px;height:35px;padding:10px;text-align:center;border-radius:var(--emw--border-radius-small, 5px);margin-left:5px;margin-right:5px;border:2px solid var(--emw--otp-border-color, #55525c);font-weight:var(--emw-font-weight-bold, 800);outline:none;transition:all 0.1s}.twofa__input-wrapper input:focus{border:2px solid var(--emw--color-primary, #22B04E);box-shadow:0 0 2px 2px var(--emw--color-primary, #22B04E)}.twofa__button-wrapper{justify-content:center;text-align:center}.twofa__button-wrapper button{border:none;background:none;font-weight:var(--emw-font-weight-bold, 800);color:var(--emw--color-primary, #22B04E);cursor:pointer}",rv=iv,js=class{constructor(i){h.registerInstance(this,i),this.registrationWidgetLoaded=h.createEvent(this,"registrationWidgetLoaded"),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.resendCode=h.createEvent(this,"resendCode"),this.validationPattern="",this.stylingContainer=null,this.tooltipReference=null,this.tooltipIconReference=null,this.inputRefs=[],this.containerRef=null,this.resendInterval=null,this.resendCodeHandler=()=>{this.triggerResendInterval(),this.resendCode.emit()},this.setInputRef=(e,t)=>{e&&(this.inputRefs[t]=e)},this.setContainerRef=e=>{e&&(this.containerRef=e)},this.triggerResendInterval=()=>{this.isResendButtonAvailable=!1,this.resendInterval&&clearInterval(this.resendInterval),this.resendInterval=setInterval(()=>{--this.resendIntervalSecondsLeft<=0&&(clearInterval(this.resendInterval),this.resendIntervalSecondsLeft=this.resendIntervalSeconds,this.isResendButtonAvailable=!0)},1e3)},this.formatTime=()=>{const e=String(Math.floor(this.resendIntervalSecondsLeft/60));let t=String(this.resendIntervalSecondsLeft%60);return t.length===1&&(t="0"+t),`${e}:${t}`},this.handleInput=(e,t)=>{const r=e.target,o=r.value.slice(-1);if(r.value=o,!o)return;this.code[t]=o,this.enableSouthAfricanMode&&(this.revealedIndexes=[t],this.revealTimeout&&clearTimeout(this.revealTimeout),this.revealTimeout=setTimeout(()=>{this.revealedIndexes=[]},500));const n=this.inputRefs[t+1];n&&n.focus(),this.setValidity(),this.setErrorMessage()},this.name="",this.displayName="",this.placeholder="",this.validation=void 0,this.tooltip="",this.language="en",this.emitValue=!0,this.destination="",this.resendIntervalSeconds=60,this.clientStyling="",this.enableSouthAfricanMode=void 0,this.pinAttemptsExceeded=void 0,this.clientStylingUrl="",this.mbSource=void 0,this.startCountDown=!1,this.isValid=!1,this.isResendButtonAvailable=!this.startCountDown,this.showTooltip=!1,this.errorMessage="",this.code=[],this.resendIntervalSecondsLeft=this.resendIntervalSeconds,this.revealedIndexes=[]}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.code.join("")})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.code.join("")})}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(i,e){i!==e&&this.clientStylingUrl&&w.setClientStylingURL(this.stylingContainer,this.clientStylingUrl)}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}getOtpValue(){return _a(this,null,function*(){return this.code.join("")})}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}connectedCallback(){var i;this.validationPattern=this.setPattern(),this.code=new Array((i=this.validation)===null||i===void 0?void 0:i.maxLength).fill("")}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&w.setClientStylingURL(this.stylingContainer,this.clientStylingUrl)}componentDidLoad(){this.setValidity(),this.registrationWidgetLoaded.emit(),window.postMessage({type:"registrationWidgetLoaded"},window.location.href),this.startCountDown&&this.triggerResendInterval(),this.handleClientStyling()}handleKeyDown(i,e){if(i.key==="Backspace"){const t=[...this.code];t[e]="",this.code=t,this.enableSouthAfricanMode&&(this.revealedIndexes=this.revealedIndexes.filter(a=>a!==e));const r=this.inputRefs[e-1];r==null||r.focus()}this.setValidity(),this.setErrorMessage()}handlePaste(i){var e,t;i.preventDefault();const r=(t=(e=i.clipboardData)===null||e===void 0?void 0:e.getData("text"))===null||t===void 0?void 0:t.trim();if(!r)return;const a=r.slice(0,this.validation.maxLength).split("");this.code=[...a,...new Array(this.validation.maxLength-a.length).fill("")],this.enableSouthAfricanMode&&(this.revealedIndexes=a.map((n,s)=>s),this.revealTimeout&&clearTimeout(this.revealTimeout),this.revealTimeout=setTimeout(()=>{this.revealedIndexes=[]},500));const o=this.inputRefs[Math.min(a.length,this.inputRefs.length-1)];o==null||o.focus(),this.setValidity(),this.setErrorMessage(),this.enableSouthAfricanMode&&(this.valueHandler({name:this.name,value:this.code.join("")}),this.validityStateHandler({valid:this.isValid,name:this.name}))}setValidity(){var i;const e=this.code.join(""),t=e.length===((i=this.validation)===null||i===void 0?void 0:i.maxLength),r=e.match(this.validationPattern)!==null;this.isValid=t&&r}setPattern(){var i,e,t,r,a;return this.validation&&(!((i=this.validation)===null||i===void 0)&&i.custom)&&this.validation.custom.length>0&&(a=(r=(t=(e=this.validation)===null||e===void 0?void 0:e.custom)===null||t===void 0?void 0:t.find(o=>o.rule==="regex"))===null||r===void 0?void 0:r.pattern)!==null&&a!==void 0?a:""}setErrorMessage(){var i,e,t;if(this.code.join("").match(this.validationPattern)!==null)this.errorMessage="";else{const a=(t=(e=(i=this.validation)===null||i===void 0?void 0:i.custom)===null||e===void 0?void 0:e.find(o=>o.rule==="regex"))===null||t===void 0?void 0:t.errorKey;a&&(this.errorMessage=b(a,this.language))}}renderTooltip(){return this.showTooltip?h.h("div",{class:`text__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}getInputDisplayValue(i){const e=this.code[i];return e?this.enableSouthAfricanMode?this.revealedIndexes.includes(i)?e:"*":e:""}render(){return h.h("div",{key:"f7123fd5b93d7edb05abc48c7bf0e64dd35a0096",class:"twofa",ref:i=>this.stylingContainer=i},h.h("div",{key:"500c8c0347308373a1019cd839bd98c8be4f1dfc",class:"twofa__error-message"},h.h("p",{key:"71655b12862d0be463112c91b8ad96ebabce5308"},this.errorMessage)),h.h("div",{key:"722b6f26f6c317a5cd844f010486fe3ce8937307",class:"twofa__description",innerHTML:b("twofaDescription",this.language,{values:{destination:this.destination}})}),h.h("div",{key:"3f94387b22a825f1c39e55d402d413378b1979d8",class:"twofa__input-wrapper",ref:this.setContainerRef},this.code.map((i,e)=>h.h("input",{key:e,ref:t=>this.setInputRef(t,e),id:`otp-input-${e}`,type:"text",maxLength:2,value:this.getInputDisplayValue(e),onInput:t=>this.handleInput(t,e),onKeyDown:t=>this.handleKeyDown(t,e),onPaste:t=>this.handlePaste(t)}))),h.h("div",{key:"3465beb171e55b3b61d954dee6f772e64dc63835",class:"twofa__button-wrapper"},h.h("p",{key:"19da7fbe70c7768171adcc1329240348be60cb70",class:"twofa__resend-message"},b("twofaResendMessage",this.language)),h.h("button",{key:"b0c097d4afaa9d60716b2da6465401c15c45626e",class:`twofa__resend-button ${this.pinAttemptsExceeded?"twofa__resend-button--disabled":""}`,onClick:this.resendCodeHandler,disabled:!this.isResendButtonAvailable||this.pinAttemptsExceeded},this.isResendButtonAvailable?b("twofaResendButton",this.language):this.formatTime())))}get host(){return h.getElement(this)}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};js.style=rv;const av=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.SkeletonCircle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.SkeletonText{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.SkeletonImage{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.SkeletonLogo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}",ov=av,Ws=class{constructor(i){h.registerInstance(this,i),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(i,e){e!==i&&this.handleStructure(i)}handleStylingProps(i){switch(typeof i){case"number":return i===0?0:`${i}px`;case"undefined":return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(i)||i.endsWith("px")||i.endsWith("%")?i:"unset";default:return"unset"}}handleStructure(i){switch(i){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return h.h("div",{class:"SkeletonContainer"},h.h("div",{class:"SkeletonLogo "+(this.animation?"Skeleton":"")}))}renderImage(){return h.h("div",{class:"SkeletonImage "+(this.animation?"Skeleton":"")})}renderTitle(){return h.h("div",{class:"SkeletonContainer"},h.h("div",{class:"SkeletonTitle "+(this.animation?"Skeleton":"")}))}renderText(){return h.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((i,e)=>h.h("div",{key:e,class:"SkeletonText "+(this.animation?"Skeleton":"")})))}renderRectangle(){return h.h("div",{class:"SkeletonContainer"},h.h("div",{class:"SkeletonRectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return h.h("div",{class:"SkeletonContainer"},h.h("div",{class:"SkeletonCircle "+(this.animation?"Skeleton":"")}))}render(){let i="";switch(this.structure){case"logo":i=`
6904
+ }`,Uf=Hf,Rs=class{constructor(i){h.registerInstance(this,i),this.sendOriginalValidityState=h.createEvent(this,"sendOriginalValidityState"),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.touched=!1,this.originalValid=!1,this.validationPattern="",this.duplicateInputValue=null,this.handleInput=e=>{this.value=e.target.value,this.calculateComplexity(this.value),this.showPopup=!0,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleRevealField=e=>{e.stopPropagation(),window.postMessage({type:`registrationShow${this.name}`},window.location.href)},this.handleBlur=e=>{this.value=e.target.value,this.showPopup=!1,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()},this.handleFocus=()=>{this.showPopup=!0,this.calculateComplexity(this.value)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.noValidation=!1,this.language=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.hidePasswordComplexity=!1,this.clientStyling="",this.enableSouthAfricanMode=void 0,this.mbSource=void 0,this.isValid=void 0,this.errorMessage=void 0,this.showTooltip=!1,this.passwordComplexity=void 0,this.showPopup=void 0,this.value=""}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}valueChanged(){this.isDuplicateInput||(this.calculateComplexity(this.value),this.sendOriginalValidityState.emit({name:this.name,valid:this.setValidity()}))}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"duplicate"})}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}originalValidityChangedHandler(i){this.isDuplicateInput&&(i.detail.valid?(this.originalValid=!0,this.isValid=this.setValidity()):(this.originalValid=!1,this.isValid=!1,this.value!==""&&(this.errorMessage=this.setErrorMessage())))}valueChangedHandler(i){this.isDuplicateInput&&this.name===i.detail.name+"Duplicate"&&(this.duplicateInputValue=i.detail.value,this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())),this.name===i.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===i.detail.name&&this.touched===!0&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.passwordButton=this.element.shadowRoot.querySelector("vaadin-password-field-button"),this.passwordButton.tabIndex=-1,this.passwordButton.addEventListener("click",i=>{this.handleRevealField(i)}),this.defaultValue&&(this.value=this.defaultValue,this.calculateComplexity(this.value),this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.duplicateInputValue=this.defaultValue,this.touched=!0)),this.isValid=this.setValidity()}disconnectedCallback(){this.passwordButton.removeEventListener("click",this.handleRevealField)}calculateComplexity(i){if(this.noValidation){this.passwordComplexity=[];return}this.passwordComplexity=this.validation.custom.filter(e=>e.rule==="regex").map(e=>{const t=new RegExp(e.pattern);let r=!1;return i&&(r=t.test(i)),{rule:e.displayName,ruleKey:e.errorKey,passed:r}})}getValueValidity(){var i;const e=(i=this.value)!==null&&i!==void 0?i:"",{mandatory:t,minLength:r,maxLength:a}=this.validation;return{valueMissing:!!t&&e==="",tooShort:e!==""&&!!r&&e.length<r,tooLong:e!==""&&!!a&&e.length>a,patternMismatch:e!==""&&!!this.validationPattern&&!new RegExp(`^(?:${this.validationPattern})$`).test(e)}}setValidity(){var i;if(this.noValidation)return!0;if(this.isDuplicateInput&&this.duplicateInputValue!==this.value)return!1;if(!((i=this.passwordComplexity)===null||i===void 0)&&i.every(e=>e.passed)){const{valueMissing:e,tooShort:t,tooLong:r,patternMismatch:a}=this.getValueValidity();return!e&&!t&&!r&&!a}else return!1}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e,t,r,a;const{valueMissing:o,tooShort:n,tooLong:s,patternMismatch:l}=this.getValueValidity();if(n||s)return b("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(o)return b("requiredError",this.language);if(this.isDuplicateInput&&!this.originalValid)return b("invalidOriginalPasswordError",this.language);if(l){const d=(i=this.validation.custom.find(u=>u.rule==="regex"))===null||i===void 0?void 0:i.errorKey,c=(e=this.validation.custom.find(u=>u.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return b(`${d}`,this.language)?b(`${d}`,this.language):c}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const d=(t=this.validation.custom.find(u=>u.rule==="duplicate-input"))===null||t===void 0?void 0:t.errorKey,c=(r=this.validation.custom.find(u=>u.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorMessage;return b(`${d}`,this.language)?b(`${d}`,this.language):c}if(!(!((a=this.passwordComplexity)===null||a===void 0)&&a.every(d=>d.passed)))return b("invalidPassword",this.language)}isComplexityPopupVisible(){return!!this.passwordComplexity&&this.showPopup&&!this.hidePasswordComplexity&&!this.isDuplicateInput}isErrorCoveredByComplexityPopup(){const{valueMissing:i,tooShort:e,tooLong:t}=this.getValueValidity();return this.isComplexityPopupVisible()&&!i&&!e&&!t}renderTooltip(){return this.showTooltip?h.h("div",{class:`password__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}renderComplexityPopup(){const i=this.passwordComplexity.length,t=this.passwordComplexity.filter(a=>a.passed).length/i,r=this.passwordComplexity.every(a=>a.passed);return h.h("div",{class:`password__complexity ${this.showPopup?"":"password__complexity--hidden"}`},h.h("div",{class:"password__complexity--strength"},h.h("p",{class:"password__complexity--text"},b("passwordStrength",this.language)," ",h.h("span",{class:"password__complexity--text-bold"},b(`${r?"passwordStrengthStrong":"passwordStrengthWeak"}`,this.language))),h.h("meter",{value:t,min:"0",max:"1"})),h.h("div",null,this.passwordComplexity.map((a,o)=>h.h("div",{key:o},h.h("input",{class:"password__complexity--checkbox",type:"checkbox",checked:a.passed,disabled:!0}),h.h("span",null,b(`${a.ruleKey}`,this.language)?b(`${a.ruleKey}`,this.language):a.rule)))))}renderCustomComplexityPopup(){return h.h("div",{class:`customreg-password__complexity ${this.showPopup?"":"customreg-password__complexity--hidden"}`},h.h("p",{class:"customreg-password__complexity--title"},b("PasswordMustContain",this.language)),h.h("div",{class:"customreg-password__complexity--rules"},this.passwordComplexity.map((i,e)=>h.h("div",{class:"customreg-password__complexity--rule",key:e},h.h("span",{class:`customreg-password__complexity--icon ${i.passed?J.PASSWORD_COMPLEXITY_PASSED:J.PASSWORD_COMPLEXITY_FAILED}`},i.passed?ga.PASSED:ga.FAILED),h.h("span",null,b(i.ruleKey,this.language)||i.rule)))))}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"c10920f293ff4935cc5e6e9efd78ad84afb55b39",class:`password__wrapper ${this.autofilled?"password__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},h.h("div",{key:"6592d199a5dfb9b81995c0b045b62e10af05158d",class:"password__wrapper--flex"},h.h("label",{key:"893732849fc38cc702d1e21e1868263ca4a1e422",class:`password__label ${this.validation.mandatory?"password__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"0cd5a201d08c956989448770616f09a0e33836a1",class:"password__wrapper--relative"},this.tooltip&&h.h("img",{key:"b5ff997ee6307cb53f38a6de60c048d32ec980ab",class:"password__tooltip-icon",src:he,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("vaadin-password-field",{key:"6596dc25971341baeede5afc4fe65567a80f1a88",type:"password",id:`${this.name}__input`,class:`password__input ${i}`,name:this.name,readOnly:this.autofilled,value:this.defaultValue,required:this.validation.mandatory,maxlength:this.validation.maxLength,minlength:this.validation.minLength,pattern:this.validationPattern,placeholder:`${this.placeholder}`,onInput:this.handleInput,onBlur:this.handleBlur,onFocus:this.handleFocus}),!this.noValidation&&!this.isErrorCoveredByComplexityPopup()&&h.h("small",{key:"9f436a53c0a1ca1959bd825e3547b16e9e6eda7e",class:"password__error-message"},this.errorMessage),this.isComplexityPopupVisible()&&(this.enableSouthAfricanMode?this.renderCustomComplexityPopup():this.renderComplexityPopup()))}get element(){return h.getElement(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],value:["valueChanged"],emitValue:["emitValueHandler"]}}};Rs.style=Uf;const qf='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{font-family:"Roboto";font-style:normal}.text__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.text__wrapper--autofilled{pointer-events:none}.text__wrapper--autofilled .text__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__wrapper--autofilled .text__input::part(input-field){color:var(--emw--color-black, #000000)}.text__wrapper--flex{display:flex;gap:5px}.text__wrapper--relative{position:relative}.text__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.text__input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);border-radius:5px;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px}.text__input:focus{border:1px solid var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__input::placeholder{color:var(--emw--color-gray-150, #828282)}.text__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__tooltip-icon{width:16px;height:auto}.text__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.text__tooltip.visible{opacity:1}.input__text-wrapper{position:relative}.input__addresses-container{position:relative;left:0;width:100%;background:var(--emw--color-white);border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:8px;box-shadow:0 4px 12px rgba(0, 0, 0, 0.1);max-height:200px;overflow-y:auto;z-index:999;margin-top:4px}.input__addresses-container .options{padding:4px 0}.input__addresses-container .option{padding:8px 12px;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6);font-size:14px;line-height:1.4;transition:background-color 0.2s ease;color:var(--emw--registration-gray-800, #333)}.input__addresses-container .option:last-child{border-bottom:none}.input__addresses-container .option:hover{background-color:var(--emw--registration-lightgray-100, #f8f9fa)}.input__addresses-container .option:active{background-color:var(--emw--registration-lightgray-200, #e9ecef)}.input__addresses-container::-webkit-scrollbar{width:6px}.input__addresses-container::-webkit-scrollbar-track{background:var(--emw--registration-lightgray-150, #f1f1f1);border-radius:3px}.input__addresses-container::-webkit-scrollbar-thumb{background:var(--emw--registration-lightgray-300, #c1c1c1);border-radius:3px}.input__addresses-container::-webkit-scrollbar-thumb:hover{background:var(--emw--registration-lightgray-400, #a8a8a8)}.postalcode__no-results-message{color:var(--emw--color-error, var(--emw--color-red, #ed0909));margin-top:10px}.address__manual-input-msg{text-decoration:underline;margin-top:10px;cursor:pointer;transition:opacity 0.3s ease}.address__manual-input-msg:active{opacity:0.7}.postalcode__loading-spinner{display:flex;align-items:center;gap:8px;padding:12px;color:var(--emw--registration-gray-600, #666);border:1px solid var(--emw--color-gray-100, #E6E6E6);border-top:none;background-color:var(--emw--registration-lightgray-50, #f9f9f9)}.loading-spinner{width:14px;height:14px;border:2px solid var(--emw--color-gray-100, #E6E6E6);border-top:2px solid var(--emw--registration-gray-600, #666);border-radius:50%;animation:spin 0.8s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.pulse-border{border:1px solid var(--emw--registration-red-600, #cc4c4c);animation:pulse 0.5s ease-in-out 2 forwards}@keyframes pulse{0%{border-color:var(--emw--registration-red-600, #cc4c4c)}50%{border-color:var(--emw--registration-red-400, #e57373)}100%{border-color:var(--emw--color-gray-100, #E6E6E6)}}',jf=qf,Fs=class{constructor(i){h.registerInstance(this,i),this.sendAddressValue=h.createEvent(this,"sendAddressValue"),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.value="",this.validationPattern="",this.hasManualAddressBeenTriggered=!1,this.touched=!1,this.maxPostalCodeLength="10",this.handleInput=e=>{const r=e.target.value.toUpperCase();this.value=r,this.touched=!0,this.currentPostalCode=r,this.showNoResultsMessage=!1,this.inputReference&&(this.inputReference.value=r),this.value.length<this.postalcodelength&&(this.openAddressDropdown=!1,this.isFetchingAddresses=!1),(this.value===""||this.value.length<1)&&(this.openAddressDropdown=!1,this.isFetchingAddresses=!1),this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.value.length>=this.postalcodelength&&(sessionStorage.setItem("currentPostalCode",this.value),this.showNoResultsMessage=!1,this.addresses&&this.addresses.length>0&&(this.openAddressDropdown=!0));const a=this.isValid;this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),a!==this.isValid&&this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)},300)},this.handleBlur=e=>{this.value=e.target.value,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.showNoResultsMessage=!1,this.openAddressDropdown||(this.showNoResultsMessage=!1)},this.handleFocus=()=>{this.currentPostalCode&&this.currentPostalCode.length>=this.postalcodelength&&(this.openAddressDropdown=!0)},this.handlePostalCode=(e,t)=>{e.stopPropagation();const r=`${t.number}`.trim(),a=`${t.street}`.trim(),o=`${t.city}`.trim();this.sendAddressValue.emit({city:o,address1:r,address2:a}),this.value=this.currentPostalCode.toLocaleUpperCase(),this.touched=!0,this.isValid=!0,this.openAddressDropdown=!1,this.showNoResultsMessage=!1,this.isFetchingAddresses=!1,this.valueHandler({name:this.name,value:this.value}),this.validityStateHandler({valid:!0,name:this.name}),this.valueHandler({name:"address1",value:r}),this.valueHandler({name:"City",value:o}),a&&this.valueHandler({name:"address2",value:a}),this.refreshTrigger++},this.enterAddressManually=()=>{const e=window.targetInputRefs;if(!e)return;const t=[{name:"PostalCode",ref:e.PostalCode,minLength:this.postalcodelength},{name:"address1",ref:e.address1},{name:"address2",ref:e.address2},{name:"City",ref:e.City}],a=[{name:"PostalCode",ref:e.PostalCode,minLength:this.postalcodelength},{name:"address1",ref:e.address1},{name:"City",ref:e.City}].find(n=>{var s;const l=((s=n.ref)===null||s===void 0?void 0:s.value)||"";return n.minLength?l.length===0||l.length<n.minLength:l.length===0}),o=(a==null?void 0:a.ref)||e.address1||e.PostalCode;o.scrollIntoView({behavior:"smooth",block:"center"}),this.hasManualAddressBeenTriggered||(this.hasManualAddressBeenTriggered=!0,t.forEach(n=>{var s;if(n.ref){const l=((s=n.ref.shadowRoot)===null||s===void 0?void 0:s.querySelector("input"))||n.ref;if(l){l.classList.add("pulse-border");const d=()=>{l.classList.remove("pulse-border"),l.removeEventListener("animationend",d)};l.addEventListener("animationend",d)}}})),o.focus()},this.handleOutsideClick=e=>{if(!this.openAddressDropdown)return;const t=e.composedPath?e.composedPath():[],r=t.includes(this.inputReference),a=t.includes(this.addressesDropdownRef),o=t.some(n=>{var s;return n instanceof Element&&((s=n.classList)===null||s===void 0?void 0:s.contains("option"))});!r&&!a&&!o&&(this.openAddressDropdown=!1,this.showNoResultsMessage=!1)},this.name="PostalCode",this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.postalcodelength=void 0,this.addresses=void 0,this.ignoreCountry=!1,this.mbSource=void 0,this.isValid=void 0,this.errorMessage="",this.showTooltip=!1,this.selectedCountryCode="",this.currentPostalCode="",this.openAddressDropdown=!1,this.showNoResultsMessage=!1,this.refreshTrigger=0,this.isFetchingAddresses=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value}),i===!0&&!this.value.length&&this.valueHandler({name:this.name,value:this.value})}handleAddresses(i){i&&i.length>0?(this.openAddressDropdown=!0,this.showNoResultsMessage=!1):(this.openAddressDropdown=!1,this.isFetchingAddresses&&this.currentPostalCode.length>=this.postalcodelength&&setTimeout(()=>{this.currentPostalCode.length>=this.postalcodelength&&!this.isFetchingAddresses&&(this.showNoResultsMessage=!0)},200)),this.isFetchingAddresses=!1}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}handleCountryCodeUpdate(i){const{name:e,value:t}=i.detail;this.selectedCountryCode=t,e==="CountryCode"&&(this.resetPostalCodeField(),this.refreshTrigger++)}handleFetchStarted(){this.showNoResultsMessage=!1,this.isFetchingAddresses=!0,this.openAddressDropdown=!1}connectedCallback(){this.validationPattern=this.setPattern()}componentWillLoad(){this.defaultValue&&(this.value=this.defaultValue)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.defaultValue&&this.valueHandler({name:this.name,value:this.value}),this.inputReference&&(window.targetInputRefs=window.targetInputRefs||{},window.targetInputRefs[this.name]=this.inputReference),this.isValid=this.setValidity(),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick)}setValidity(){if(!this.inputReference)return!1;const i=this.inputReference.validity.valid,e=!this.inputReference.value||this.inputReference.value.match(this.validationPattern)!==null;return i&&e}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e;if(!this.touched)return"";if(this.inputReference.validity.valueMissing)return b(de.REQUIRED,this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong){const{minLength:t,maxLength:r}=this.validation;return t===r?b(de.FIXED_LENGTH,this.language,{values:{length:t}}):b(de.LENGTH,this.language,{values:{minLength:t,maxLength:r}})}if(this.inputReference.value.match(this.validationPattern)==null){const t=(i=this.validation.custom.find(a=>a.rule==="regex"))===null||i===void 0?void 0:i.errorKey,r=(e=this.validation.custom.find(a=>a.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return b(`${t}`,this.language)||r}return""}resetPostalCodeField(){this.value="",this.currentPostalCode="",this.showNoResultsMessage=!1,this.openAddressDropdown=!1,this.isFetchingAddresses=!1,sessionStorage.removeItem("currentPostalCode"),this.inputReference&&(this.inputReference.value=""),this.valueHandler({name:this.name,value:""}),this.validityStateHandler({valid:!1,name:this.name})}renderTooltip(){return this.showTooltip?h.h("div",{class:`text__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}determineInputValue(){return this.inputReference&&this.name&&(window.targetInputRefs=window.targetInputRefs||{},window.targetInputRefs[this.name]=this.inputReference),this.value}render(){var i,e;let t="";this.touched&&(t=this.isValid==!0||this.isValid==null?"":"text__input--invalid");let r=this.selectedCountryCode==="UK"||this.selectedCountryCode==="GB"||this.ignoreCountry,a=((i=this.addresses)===null||i===void 0?void 0:i.length)>0&&this.openAddressDropdown&&r,o=this.showNoResultsMessage&&this.currentPostalCode&&this.currentPostalCode.length>=this.postalcodelength&&((e=this.addresses)===null||e===void 0?void 0:e.length)===0&&r,n=this.isFetchingAddresses&&this.currentPostalCode.length>=this.postalcodelength;return h.h("div",{key:"f0dda39cf9a02d53213848926908c0cb39d1cd3f",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:s=>this.stylingContainer=s},h.h("div",{key:"5e1c51af264392d2be986e305e6526310f55f40b",class:"text__wrapper--flex"},h.h("label",{key:"c12c45d88bdf42aeb6be505d473ab0f55da2be87",class:`text__label ${this.validation.mandatory?"text__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"7b93a75f19590b445227fa1a64c90fd20c0afd5d",class:"text__wrapper--relative"},this.tooltip&&h.h("img",{key:"504004a13595694307c1e3450b69982150dc55fd",class:"text__tooltip-icon",src:he,alt:"",ref:s=>this.tooltipIconReference=s,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("div",{key:"19de66fd72fd0a6befe3bbaebb6c8f99ec5f850b",class:"input__text-wrapper"},h.h("input",{key:"78cd4229ed5104518b991df0bc6bf527df2ec3e2",name:this.name,id:`${this.name}__input`,value:this.determineInputValue(),type:"text",class:`text__input ${t}`,placeholder:`${this.placeholder}`,ref:s=>this.inputReference=s,readOnly:this.autofilled,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.maxPostalCodeLength,onInput:this.handleInput,onBlur:this.handleBlur,onFocus:this.handleFocus}),!r&&h.h("p",{key:"6b9e307d59fb9fed93f4df6c07a091d299844c62",class:"address__manual-input-msg",onClick:()=>this.enterAddressManually()},b("enterIEAddressManually",this.language)),a&&h.h("div",{key:"ecb7892a9a8d967540d8fd013518ae19498fcd48",class:"input__addresses-container",ref:s=>this.addressesDropdownRef=s},h.h("div",{key:"a5ef3f81a85207a821964e23b21aaf783be807cc",class:"options"},this.addresses.map((s,l)=>h.h("div",{key:l,class:"option",onClick:d=>this.handlePostalCode(d,s)},s.number," ",s.street," ",s.city)))),n&&h.h("div",{key:"338c17e484721efb387e608f3ce4416a0e47b8af",class:"postalcode__loading-spinner"},h.h("div",{key:"7638cea4fba975e3a27d4cb00bce217129bd0750",class:"loading-spinner"}),h.h("span",{key:"b59a8a9c3d7ecf209a68717346d1d29062994f79"},b("searchingForAddresses",this.language))),o&&h.h("div",{key:"212a74fed94b3ee089aed5c9afb544966b5f11cd",class:"postalcode__no-results-message"},b("postalLookUpNoAddressFound",this.language))),h.h("small",{key:"4f66e97dd811b9917c92ff4bcbf236817ac57933",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"],addresses:["handleAddresses"]}}};Fs.style=jf;const Wf="*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.radio__fieldset{border:none;position:relative}.radio__wrapper{display:flex;gap:5px}.radio__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.radio__tooltip-icon{position:absolute;right:0;bottom:10px}.radio__tooltip{position:absolute;bottom:35px;right:10px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.radio__tooltip.visible{opacity:1}",Yf=Wf,$s=class{constructor(i){h.registerInstance(this,i),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.name=void 0,this.displayName=void 0,this.optionsGroup=void 0,this.validation=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}validityStateHandler(i){this.sendValidityState.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling()}handleClick(i){this.value=i.target.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return b("requiredError",this.language)}renderTooltip(){return this.showTooltip?h.h("div",{class:`radio__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return h.h("fieldset",{key:"7048de0e37c9541af1c9788e8b46c789ca788c31",class:`radio__fieldset ${this.name}__input`,ref:i=>this.stylingContainer=i},h.h("legend",{key:"403b739c966d510740ca59621c094872b93e2cba",class:"radio__legend"},this.displayName,":"),this.optionsGroup.map(i=>h.h("div",{class:"radio__wrapper"},h.h("input",{type:"radio",class:"radio__input",id:`${i.label}__input`,ref:e=>this.inputReference=e,value:i.value,name:this.name,required:this.validation.mandatory,onClick:e=>this.handleClick(e)}),h.h("label",{htmlFor:`${i.label}__input`},i.label))),h.h("small",{key:"46dce1082a6aa9f2a5bdc3e3654c924fcd2a8357",class:"radio__error-message"},this.errorMessage),this.tooltip&&h.h("img",{key:"dfe155a429485b5c891db2943d9115cdc40e169b",class:"radio__tooltip-icon",src:he,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};$s.style=Yf;const Gf='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}:host{height:100%;--_invalid-hover-highlight:transparent;--vaadin-input-field-invalid-hover-highlight:transparent}vaadin-combo-box>input{background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--registration-typography, var(--emw--color-black, #000000));font-weight:300;font-size:16px;-webkit-font-smoothing:initial;}.select{font-family:"Roboto";font-style:normal}.select__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.select__wrapper--autofilled{pointer-events:none}.select__wrapper--autofilled .select__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__wrapper--autofilled .select__input::part(input-field){color:var(--emw--color-black, #000000)}.select__wrapper--flex{display:flex;gap:5px}.select__wrapper--relative{position:relative}.select__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.select__input{border:none;width:inherit;position:relative}.select__input[focused]:not(.text__input--invalid)::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.select__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__input vaadin-date-picker-overlay-content>vaadin-button{color:var(--emw--color-black, #000000)}.select__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:44px}.select__input::part(toggle-button){position:relative;right:10px}.select__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__tooltip-icon{width:16px;height:auto}.select__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.select__tooltip.visible{opacity:1}',Kf=Gf,Bs=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.touched=!1,this.handleComboChange=e=>{this.touched=!0;const t=e.target.value,r=this.options.find(a=>a.value.toLowerCase()===t.toLowerCase());r?this.value=r.value:this.value=t,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},this.handleComboInputFocusout=e=>{var t,r;!this.isComboOpen()||e.relatedTarget||(e.stopImmediatePropagation(),this.getHighlightedIndex()>-1&&((r=(t=this.vaadinCombo).close)===null||r===void 0||r.call(t)))},this.handleComboInputKeydown=e=>{var t;e.key!=="Enter"||e.isComposing||!this.isComboOpen()||this.getHighlightedIndex()>-1||(e.preventDefault(),e.stopImmediatePropagation(),(t=this.blurGuardInput)===null||t===void 0||t.blur())},this.handleComboOpenedChanged=e=>{var t;if(e.detail.value||document.activeElement===this.blurGuardInput)return;const r=e.currentTarget;(t=r.validate)===null||t===void 0||t.call(r),this.touched=!0,this.value=(r==null?void 0:r.value)||"",this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name})},this.handleBlur=e=>{const t=e.currentTarget;t.opened||(this.touched=!0,this.value=t.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}))},this.handleSelectChange=e=>{this.touched=!0,this.value=e.target.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.options=[],this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}connectedCallback(){var i;this.displayedOptions=this.options.map(e=>({label:e.label,value:e.value})),this.isComboBox=((i=this.displayedOptions)===null||i===void 0?void 0:i.length)>6}componentWillLoad(){if(this.action&&!this.options.length&&this.action.split(" ")[0]=="GET"){const i=this.action.split(" ")[1];return this.getOptions(i).then(e=>{var t;const r=Object.keys(e)[0];this.displayedOptions=e[r].map(a=>({label:a.Name,value:a.Alpha2Code})),this.isComboBox=((t=this.displayedOptions)===null||t===void 0?void 0:t.length)>6})}}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.inputReference=this.vaadinCombo.querySelector("input"),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}),this.inputReference&&(this.inputReference.value=this.value)),this.isValid=this.setValidity(),!this.isComboBox&&this.vaadinCombo&&this.vaadinCombo.addEventListener("opened-changed",i=>{if(i.detail.value===!0)this.errorMessage="";else{const e=i.currentTarget;this.touched=!0,this.value=e.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name})}})}getOptions(i){const e=new URL(i);return new Promise((t,r)=>{fetch(e.href).then(a=>a.json()).then(a=>{t(a)}).catch(a=>{console.error(a),r(a)})})}isComboOpen(){var i;return!!(!((i=this.vaadinCombo)===null||i===void 0)&&i.opened)}getHighlightedIndex(){var i,e;return(e=(i=this.vaadinCombo)===null||i===void 0?void 0:i._focusedIndex)!==null&&e!==void 0?e:-1}attachBlurGuard(i){const e=i==null?void 0:i.inputElement;!e||e===this.blurGuardInput||(this.detachBlurGuard(),e.addEventListener("focusout",this.handleComboInputFocusout),e.addEventListener("keydown",this.handleComboInputKeydown),this.blurGuardInput=e)}detachBlurGuard(){var i,e;(i=this.blurGuardInput)===null||i===void 0||i.removeEventListener("focusout",this.handleComboInputFocusout),(e=this.blurGuardInput)===null||e===void 0||e.removeEventListener("keydown",this.handleComboInputKeydown),this.blurGuardInput=void 0}disconnectedCallback(){this.detachBlurGuard()}setValidity(){var i;return!((i=this.validation)===null||i===void 0)&&i.mandatory?!!this.value:!0}setErrorMessage(){var i,e,t;if(!((e=(i=this.inputReference)===null||i===void 0?void 0:i.validity)===null||e===void 0)&&e.valueMissing||!((t=this.vaadinCombo)===null||t===void 0)&&t.invalid)return b("requiredError",this.language)}renderTooltip(){return this.showTooltip?h.h("div",{class:`select__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){var i,e;let t="";return this.touched&&(t=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"5cfd3a0d2630a31ee8fccfe35672238086e17600",class:`select__wrapper ${this.autofilled?"select__wrapper--autofilled":""} ${this.name}__input`,ref:r=>this.stylingContainer=r},h.h("div",{key:"3dfae7aa91098a88fe6bd5ae88d7159dce4314b4",class:"select__wrapper--flex"},h.h("label",{key:"9255ee7c839659607dc100a61bc5f4d0041caaa2",class:"select__label",htmlFor:`${this.name}__input`},this.displayName,h.h("span",{key:"99f8b6de1b652bf8ac99ad8316797b92ac1c3d95",class:this.validation.mandatory?"select__label--required":""})),h.h("div",{key:"8f43647f1caace501b465d305d34be9393f1c7e3",class:"select__wrapper--relative"},this.tooltip&&h.h("img",{key:"8f504f912fcb52fd0aab8435dfe6461b08a33c99",class:"select__tooltip-icon",src:he,alt:"",ref:r=>this.tooltipIconReference=r,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),this.isComboBox?h.h("vaadin-combo-box",{name:this.name,id:`${this.name}__input`,class:`select__input ${t} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",ref:r=>this.vaadinCombo=r,onFocusin:()=>this.attachBlurGuard(this.vaadinCombo),"onOpened-changed":this.handleComboOpenedChanged,readOnly:this.autofilled,required:(i=this.validation)===null||i===void 0?void 0:i.mandatory,value:this.value,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleComboChange,onBlur:this.handleBlur}):h.h("vaadin-select",{name:this.name,popover:!1,id:`${this.name}__input`,class:`select__input ${t} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",ref:r=>this.vaadinCombo=r,readOnly:this.autofilled,required:(e=this.validation)===null||e===void 0?void 0:e.mandatory,value:this.value,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleSelectChange,"no-vertical-overlap":!0,noVerticalOverlap:!0}),h.h("small",{key:"90de512d3b2f59a4b9083ed7cb0c5c7278268f2e",class:"select__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Bs.style=Kf;const Xf='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.tel{font-family:"Roboto";font-style:normal}.tel__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.tel__wrapper--autofilled{pointer-events:none}.tel__wrapper--autofilled .tel__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__wrapper--autofilled .tel__input::part(input-field){color:var(--emw--color-black, #000000)}.tel__wrapper--flex{width:inherit;display:flex;align-items:center;border-radius:4px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);overflow:hidden;padding-left:4px}.tel__wrapper--flex:focus-within{border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.tel__wrapper--flex-label{display:flex;gap:5px}.tel__wrapper--flex--relative{position:relative}.tel__wrapper .text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.tel__prefix{--vaadin-field-default-width:90px}.tel__prefix[focus]{outline:none}.tel__prefix::part(input-field){height:100%;border-radius:0 5px 5px 0;background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:1.5;border:none;border-right:2px solid #DDE0EE;border-image-source:linear-gradient(to bottom, rgba(221, 224, 238, 0) 25%, rgb(221, 224, 238) 25%, rgb(221, 224, 238) 75%, rgba(221, 224, 238, 0) 75%);border-image-slice:1;border-image-repeat:round}.tel__prefix::part(input-field):hover{background-color:var(--emw--color-white, #FFFFFF)}.tel__input{font-family:inherit;border-radius:5px;width:100%;color:var(--emw--registration-typography, var(--emw--color-black, #000000));background-color:var(--emw--color-white, #FFFFFF);border:none;width:inherit;position:relative;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:42px;-moz-appearance:textfield;}.tel__input:focus{outline:none}.tel__input::-webkit-outer-spin-button,.tel__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.tel__input::placeholder{color:var(--emw--color-gray-150, #979797)}.tel__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__tooltip-icon{width:16px;height:auto}.tel__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.tel__tooltip.visible{opacity:1}',Qf=Xf,Hs=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=e=>{this.setPhoneValue(e.target.value),this.value={prefix:this.prefixValue,phone:this.phoneValue},this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.isValidValue(),this.applyCustomError(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.touched=!0,this.isValid=this.isValidValue(),this.applyCustomError(),this.errorMessage=this.setErrorMessage()},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.showLabels=void 0,this.action=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.enableCustomRegexValidation=!1,this.isValid=void 0,this.errorMessage=void 0,this.showTooltip=!1,this.disablePhonePrefix=!1,this.phoneValue="",this.phoneCodesOptions=void 0}setPhoneValue(i){const e=i.replace(/[^0-9]/g,"");this.phoneValue=e,this.inputReference&&(this.inputReference.value=this.phoneValue)}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}resetValidationState(){this.lastCustomErrorKey=void 0,this.lastCustomErrorMessage=void 0,this.inputReference.setCustomValidity("")}isMissingValue(i){return this.validation.mandatory&&i===""}isFixedLength(i){const e=this.validation.minLength,t=this.validation.maxLength;return!!(e&&t&&e===t&&i.length!==e)}isTooShort(i){const e=this.validation.minLength;return!!(e&&i.length<e)}isTooLong(i){const e=this.validation.maxLength;return!!(e&&i.length>e)}failsPattern(i){if(!this.validationPattern)return!1;let e;try{e=new RegExp(this.validationPattern)}catch(t){return console.warn("Invalid validationPattern:",this.validationPattern,t),!1}return!e.test(i)}failsCustomRules(i){const e=(this.validation.custom||[]).filter(r=>r.rule==="regex"&&r.pattern),[,...t]=e;for(const r of t){let a;try{a=new RegExp(r.pattern)}catch(o){console.warn("Invalid regex pattern:",r.pattern,o);continue}if(!a.test(i))return!0}return!1}connectedCallback(){var i;this.validationPattern=this.setPattern(),this.defaultValue&&(this.prefixValue=this.defaultValue.prefix?this.defaultValue.prefix:this.defaultValue,this.setPhoneValue((i=this.defaultValue.phone)!==null&&i!==void 0?i:""),this.phoneCodesOptions=[{label:this.prefixValue,value:this.prefixValue}])}componentWillLoad(){if(this.action&&this.action.split(" ")[0]=="GET"){const i=this.action.split(" ")[1];this.getPhoneCodes(i).then(e=>{this.phoneCodesOptions=e.phoneCodes.map(t=>typeof t=="object"&&t.Prefix?{label:t.Prefix,value:t.Prefix}:{label:t,value:t}),this.disablePhonePrefix=this.phoneCodesOptions.length<=1})}}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.isValid=this.isValidValue(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value,type:"tel"}))}getPhoneCodes(i){const e=new URL(i);return new Promise((t,r)=>{fetch(e.href).then(a=>a.json()).then(a=>{t(a)}).catch(a=>{console.error(a),r(a)})})}handlePrefixInput(i){this.prefixValue=i.target.value,this.value={prefix:this.prefixValue,phone:this.phoneValue},this.emitValueHandler(!0)}isValidValue(){var i,e;if(!this.inputReference)return!1;this.resetValidationState();const t=(e=(i=this.phoneValue)===null||i===void 0?void 0:i.trim())!==null&&e!==void 0?e:"",r=t==="";return this.isMissingValue(t)?!1:r?!0:!(this.isFixedLength(t)||this.isTooShort(t)||this.isTooLong(t)||this.failsPattern(t)||this.failsCustomRules(t))}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e,t,r;if(!((e=(i=this.inputReference)===null||i===void 0?void 0:i.validity)===null||e===void 0)&&e.customError||(this.lastCustomErrorKey=void 0,this.lastCustomErrorMessage=void 0),this.inputReference.validity.patternMismatch){const n=(t=this.validation.custom.find(l=>l.rule==="regex"))===null||t===void 0?void 0:t.errorKey,s=(r=this.validation.custom.find(l=>l.rule==="regex"))===null||r===void 0?void 0:r.errorMessage;return b(`${n}`,this.language)?b(`${n}`,this.language):s}const{minLength:a,maxLength:o}=this.validation;if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong||a&&this.phoneValue&&this.phoneValue.length<a||o&&this.phoneValue&&this.phoneValue.length>o)return a===o?b(de.FIXED_LENGTH,this.language,{values:{length:a}}):b(de.LENGTH,this.language,{values:{minLength:a,maxLength:o}});if(this.inputReference.validity.valueMissing)return b(de.REQUIRED,this.language);if(this.inputReference.validity.customError&&(this.lastCustomErrorKey||this.lastCustomErrorMessage)){const n=this.lastCustomErrorKey?b(`${this.lastCustomErrorKey}`,this.language):"";return n||this.lastCustomErrorMessage||""}}applyCustomError(){const i=(this.validation.custom||[]).filter(t=>t.rule==="regex"&&t.pattern),[,...e]=i;for(const t of e){let r;try{r=new RegExp(t.pattern)}catch(a){console.warn("[applyCustomError] invalid regex pattern:",t.pattern,a);continue}if(!r.test(this.phoneValue)){this.lastCustomErrorKey=t.errorKey,this.lastCustomErrorMessage=t.errorMessage,this.inputReference.setCustomValidity("customError");return}}}renderTooltip(){return this.showTooltip?h.h("div",{class:`tel__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){var i;let e="";return this.touched&&(e=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"82da44bb2bacec9efb3631e377978d678e766919",class:`tel__wrapper ${this.autofilled?"tel__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},h.h("div",{key:"4ca8d6dde2d3f8e15e2d26d593297519e0c94053",class:"tel__wrapper--flex-label"},h.h("label",{key:"3b0e2736fd47537b2ecd80cf49a146992d59474e",class:`tel__label ${this.validation.mandatory?"tel__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"1577aafc7b68128e91cdfe9ddc563bbad9d7b901",class:"tel__wrapper--relative"},this.tooltip&&h.h("img",{key:"cb6576e1248fc52f937c685d59d994a1d098d7cc",class:"tel__tooltip-icon",src:he,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("div",{key:"a1e9f3c68691fbb61947cd41c0ffddcd124b4bbb",class:`tel__wrapper--flex ${e}`},h.h("vaadin-combo-box",{key:"9aa33a487f019ee7393e29a0ce0d1836a23f5e09",class:"tel__prefix",items:this.phoneCodesOptions,value:this.prefixValue,readOnly:this.disablePhonePrefix,onChange:t=>this.handlePrefixInput(t)}),h.h("input",{key:"21d69c041b9a5f5f6fb1e6d7b392945cafe99e87",type:"tel",ref:t=>this.inputReference=t,id:`${this.name}__input`,readOnly:this.autofilled,class:"tel__input",value:(i=this.phoneValue)!==null&&i!==void 0?i:"",placeholder:`${this.placeholder}`,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,pattern:this.validationPattern,onInput:this.handleInput,onBlur:this.handleBlur})),h.h("small",{key:"76febe89ad7ee581eb5fc79658d81123da08ccdd",class:"tel__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Hs.style=Qf;const Jf='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{font-family:"Roboto";font-style:normal}.text__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.text__wrapper--autofilled{pointer-events:none}.text__wrapper--autofilled .text__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__wrapper--autofilled .text__input::part(input-field){color:var(--emw--color-black, #000000)}.text__wrapper--flex{display:flex;gap:5px}.text__wrapper--relative{position:relative}.text__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.text__input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);border-radius:5px;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px}.text__input:focus{border:1px solid var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__input::placeholder{color:var(--emw--color-gray-150, #828282)}.text__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__tooltip-icon{width:16px;height:auto}.text__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.text__tooltip.visible{opacity:1}.pulse-border{border:1px solid var(--emw--registration-red-600, #cc4c4c);animation:pulse 0.5s ease-in-out 2 forwards}@keyframes pulse{0%{border-color:var(--emw--registration-red-600, #cc4c4c)}50%{border-color:var(--emw--registration-red-400, #e57373)}100%{border-color:var(--emw--color-gray-100, #E6E6E6)}}',Zf=Jf,Us=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.value="",this.validationPattern="",this.duplicateInputValue=null,this.postalcodelength=5,this.touched=!1,this.handleInput=e=>{const t=e.target,r=this.enableSouthAfricanMode&&(this.name===J.FIRSTNAME_ON_DOCUMENT||this.name===J.LASTNAME_ON_DOCUMENT)?t.value.replace(J.NON_LETTERS_REGEX,""):t.value;r!==t.value&&(t.value=r),this.value=r,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.updateValidationState(),this.emitValueHandler(!0)},500)},this.handleBlur=e=>{this.value=e.target.value,this.touched=!0,this.updateValidationState()},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.checkValidity=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.haspostalcodelookup=void 0,this.enableSouthAfricanMode=void 0,this.mbSource=void 0,this.isValid=void 0,this.errorMessage="",this.showTooltip=!1,this.selectedCountryCode=""}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}valueChangedHandler(i){this.isDuplicateInput&&this.name===i.detail.name+"Duplicate"&&(this.duplicateInputValue=i.detail.value,this.touched&&this.updateValidationState()),this.name===i.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===i.detail.name&&this.touched&&this.updateValidationState()}handleValidationChange(i){i.detail.field===this.name&&(this.validation=i.detail.validation,this.validationPattern=this.setPattern(),this.touched&&(this.isValid=this.isValidValue(),this.errorMessage=this.setErrorMessage()))}handleCountryCodeUpdate(i){const{name:e,value:t}=i.detail;this.selectedCountryCode=t,e==="CountryCode"&&["address1","address2","City"].includes(this.name)&&(this.value="",this.touched=!1,this.errorMessage="",this.isValid=!1,this.inputReference&&(this.inputReference.value=""),this.valueHandler({name:this.name,value:""}),this.validityStateHandler({valid:!1,name:this.name}))}handleAddressSelection(i){const{city:e,address1:t,address2:r}=i.detail;if(!["address1","address2","City"].includes(this.name))return;let a="";this.name==="address1"?a=t:this.name==="address2"?a=r:this.name==="City"&&(a=e),this.value=a,this.touched=!0,this.updateValidationState()}connectedCallback(){this.validationPattern=this.setPattern()}handleExternalDocUpdate(i){this.name===J.DOCUMENT_NUMBER&&(this.value=i.detail||"",this.touched=!0,this.inputReference&&(this.inputReference.value=this.value),this.sendInputValue.emit({name:this.name,value:this.value}),this.updateValidationState())}handleDocReset(){this.name===J.DOCUMENT_NUMBER&&(this.value="",this.touched=!1,this.isValid=!1,this.errorMessage="",this.inputReference&&(this.inputReference.value=""),this.validityStateHandler({valid:!1,name:this.name}))}componentWillLoad(){this.defaultValue&&(this.value=this.defaultValue)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.touched=!0)),this.haspostalcodelookup&&["address1","address2","City","PostalCode"].includes(this.name)&&(window.targetInputRefs=window.targetInputRefs||{},window.targetInputRefs[this.name]=this.inputReference),this.isValid=this.isValidValue()}validateDocument(i,e){const t=i.trim();return e===J.PASSPORT?J.PASSPORT_NUMERIC_REGEX.test(t)?{valid:!0}:{valid:!1,errorKey:de.PASSPORT_INVALID}:e===J.SOUTH_AFRICAN_ID?t.length!==J.SOUTH_AFRICAN_ID_LENGTH?{valid:!1,errorKey:de.SA_ID_LENGTH}:Qs(t)?{valid:!0}:{valid:!1,errorKey:de.SA_ID_INVALID}:{valid:!0}}updateValidationState(){const i=this.isValidValue();if(this.isValid=i,!this.touched){this.errorMessage="";return}this.errorMessage=i?"":this.setErrorMessage()}isValidValue(){if(!this.inputReference)return!1;if(this.enableSouthAfricanMode&&this.name===J.DOCUMENT_NUMBER){const e=window.documentTypeValue;return this.validateDocument(this.value,e).valid}return this.value.trim()===""&&!this.validation.mandatory||this.inputReference.validity.valid&&(!this.inputReference.value||this.inputReference.value.match(this.validationPattern)!==null)}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e,t,r;const a=this.value.trim();if(this.enableSouthAfricanMode&&this.name===J.DOCUMENT_NUMBER){const o=window.documentTypeValue,n=this.validateDocument(this.value,o);return n.valid?"":b(n.errorKey,this.language)}if(a===""&&!this.validation.mandatory)return"";if(this.inputReference.validity.valueMissing)return b(de.REQUIRED,this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong){const{minLength:o,maxLength:n}=this.validation;return o===n?b(de.FIXED_LENGTH,this.language,{values:{length:o}}):b(de.LENGTH,this.language,{values:{minLength:o,maxLength:n}})}if(this.inputReference.value.match(this.validationPattern)==null){const o=(i=this.validation.custom.find(s=>s.rule==="regex"))===null||i===void 0?void 0:i.errorKey,n=(e=this.validation.custom.find(s=>s.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return b(`${o}`,this.language)||n}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const o=(t=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||t===void 0?void 0:t.errorKey,n=(r=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorMessage;return b(`${o}`,this.language)?b(`${o}`,this.language):n}return""}renderTooltip(){return this.showTooltip?h.h("div",{class:`text__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"f48e592bac049022b283bac917c095772b1508f5",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:e=>this.stylingContainer=e},h.h("div",{key:"fe3626ead38dd18dfa14795ee2332e93f5f09652",class:"text__wrapper--flex"},h.h("label",{key:"6b2854b460e0ac7d4ae0ebccc06dbe64770581d5",class:`text__label ${this.validation.mandatory?"text__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"f29d266973bd700a4270495bc4eb6e8296b6eeaf",class:"text__wrapper--relative"},this.tooltip&&h.h("img",{key:"68e69abbb78250e763822608e963bc16d702f099",class:"text__tooltip-icon",src:he,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("input",{key:"99b8eab15ab32656f86fedd3f36a09a5bbe108d3",name:this.name,id:`${this.name}__input`,value:this.value,type:"text",class:`text__input ${i}`,placeholder:`${this.placeholder}`,ref:e=>this.inputReference=e,readOnly:this.autofilled,required:this.validation.mandatory,minlength:this.enableSouthAfricanMode?"":this.validation.minLength,maxlength:this.enableSouthAfricanMode?"":this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),h.h("small",{key:"cc28c1c19370faa94fa1f738066042dce8d694ce",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleClientStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Us.style=Zf;const ev='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.togglecheckbox{font-family:"Roboto";font-style:normal;font-size:15px}.togglecheckbox__wrapper{position:relative}.togglecheckbox__wrapper--flex{display:flex;gap:10px;align-items:baseline}.togglecheckbox__wrapper--relative{position:relative;display:inline}.togglecheckbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.togglecheckbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.togglecheckbox__label-text{font-size:16px}.togglecheckbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.togglecheckbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.togglecheckbox__tooltip-icon{width:16px;height:auto}.togglecheckbox__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.togglecheckbox__tooltip.visible{opacity:1}.togglecheckbox__fields-wrapper{margin-top:40px;display:flex;flex-direction:column;gap:40px}.hidden{display:none}',tv=ev,qs=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.callBackObject={},this.subFieldsObject={},this.value="",this.handleRevealField=(e,t)=>{e.stopPropagation(),window.postMessage({type:`registration${t}Clicked`},window.location.href)},this.name=void 0,this.displayName=void 0,this.defaultValue="",this.options=void 0,this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.mbSource=void 0,this.translationUrl=void 0,this.errorMessage=void 0,this.isValid=void 0,this.showTooltip=!1,this.showFields=this.defaultValue==="true"}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling)}componentDidLoad(){this.handleClientStyling(),this.options.length!==0&&this.options.forEach(i=>{this.callBackObject[i.name]=e=>{this.handleRevealField(e,i.name)},this.subFieldsObject[i.name].addEventListener("click",this.callBackObject[i.name])})}handleClick(){this.showFields=this.checkboxReference.checked,this.errorMessage=this.setErrorMessage(),this.isValid=this.setValidity(),this.valueHandler({name:this.name,value:this.checkboxReference.checked?"true":"false",type:"toggle"})}setValidity(){return this.checkboxReference.validity.valid}setErrorMessage(){if(this.checkboxReference.validity.valueMissing)return b("requiredError",this.language)}disconnectedCallback(){this.options.forEach(i=>{this.subFieldsObject[i.name].removeEventListener("click",this.callBackObject[i.name])})}renderLabel(){return h.h("label",{class:"togglecheckbox__label",htmlFor:`${this.name}__input`},h.h("div",{class:"togglecheckbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?h.h("div",{class:`togglecheckbox__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return h.h("div",{key:"4bb7b3391398f78dceffef403f6b216c0cbdd312",class:`togglecheckbox__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},h.h("div",{key:"214848f815c996605c1f710c46dde6bfe83f0cf7",class:"togglecheckbox__wrapper--flex"},h.h("input",{key:"e1b829fafa91d20a80c19d49c2ce536c41892c0d",class:"togglecheckbox__input",type:"checkbox",id:`${this.name}__input`,ref:i=>this.checkboxReference=i,name:this.name,checked:this.defaultValue==="true",readOnly:this.autofilled,required:this.validation.mandatory,value:this.value,onClick:()=>this.handleClick()}),this.renderLabel()),h.h("small",{key:"e01a4c6bc20fae1aa56ba2888e18c3b43181e7ce",class:"togglecheckbox__error-message"},this.errorMessage),h.h("div",{key:"5d4b6f06c72de9d9bb62dfcba08bd7366d355733",class:"togglecheckbox__wrapper--relative"},this.tooltip&&h.h("img",{key:"51983de9c47a15e00b16ea7aae860c71580a6511",class:"togglecheckbox__tooltip-icon",src:he,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),h.h("div",{key:"ab12b489947e92ac32c9c061f5b30865996fe6e0",class:`togglecheckbox__fields-wrapper ${this.showFields?"":"hidden"}`},this.options.map(i=>h.h("general-input",{type:i.inputType,name:i.name,displayName:i.displayName,validation:i.validate,action:i.action||null,defaultValue:i.defaultValue,autofilled:i.autofill,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,"mb-source":this.translationUrl?void 0:this.mbSource,tooltip:i.tooltip,placeholder:i.placeholder==null?"":i.placeholder,ref:e=>this.subFieldsObject[i.name]=e}))))}static get watchers(){return{clientStyling:["handleClientStylingChange"]}}};qs.style=tv;const iv="*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.twofa{display:flex;flex-direction:column;gap:10px}.twofa__description{display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center}.twofa__error-message{text-align:center;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.twofa__input-wrapper{display:flex;justify-content:center}.twofa__input-wrapper input{width:35px;height:35px;padding:10px;text-align:center;border-radius:var(--emw--border-radius-small, 5px);margin-left:5px;margin-right:5px;border:2px solid var(--emw--otp-border-color, #55525c);font-weight:var(--emw-font-weight-bold, 800);outline:none;transition:all 0.1s}.twofa__input-wrapper input:focus{border:2px solid var(--emw--color-primary, #22B04E);box-shadow:0 0 2px 2px var(--emw--color-primary, #22B04E)}.twofa__button-wrapper{justify-content:center;text-align:center}.twofa__button-wrapper button{border:none;background:none;font-weight:var(--emw-font-weight-bold, 800);color:var(--emw--color-primary, #22B04E);cursor:pointer}",rv=iv,js=class{constructor(i){h.registerInstance(this,i),this.registrationWidgetLoaded=h.createEvent(this,"registrationWidgetLoaded"),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.resendCode=h.createEvent(this,"resendCode"),this.validationPattern="",this.stylingContainer=null,this.tooltipReference=null,this.tooltipIconReference=null,this.inputRefs=[],this.containerRef=null,this.resendInterval=null,this.resendCodeHandler=()=>{this.triggerResendInterval(),this.resendCode.emit()},this.setInputRef=(e,t)=>{e&&(this.inputRefs[t]=e)},this.setContainerRef=e=>{e&&(this.containerRef=e)},this.triggerResendInterval=()=>{this.isResendButtonAvailable=!1,this.resendInterval&&clearInterval(this.resendInterval),this.resendInterval=setInterval(()=>{--this.resendIntervalSecondsLeft<=0&&(clearInterval(this.resendInterval),this.resendIntervalSecondsLeft=this.resendIntervalSeconds,this.isResendButtonAvailable=!0)},1e3)},this.formatTime=()=>{const e=String(Math.floor(this.resendIntervalSecondsLeft/60));let t=String(this.resendIntervalSecondsLeft%60);return t.length===1&&(t="0"+t),`${e}:${t}`},this.handleInput=(e,t)=>{const r=e.target,o=r.value.slice(-1);if(r.value=o,!o)return;this.code[t]=o,this.enableSouthAfricanMode&&(this.revealedIndexes=[t],this.revealTimeout&&clearTimeout(this.revealTimeout),this.revealTimeout=setTimeout(()=>{this.revealedIndexes=[]},500));const n=this.inputRefs[t+1];n&&n.focus(),this.setValidity(),this.setErrorMessage()},this.name="",this.displayName="",this.placeholder="",this.validation=void 0,this.tooltip="",this.language="en",this.emitValue=!0,this.destination="",this.resendIntervalSeconds=60,this.clientStyling="",this.enableSouthAfricanMode=void 0,this.pinAttemptsExceeded=void 0,this.clientStylingUrl="",this.mbSource=void 0,this.startCountDown=!1,this.isValid=!1,this.isResendButtonAvailable=!this.startCountDown,this.showTooltip=!1,this.errorMessage="",this.code=[],this.resendIntervalSecondsLeft=this.resendIntervalSeconds,this.revealedIndexes=[]}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.code.join("")})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.code.join("")})}handleClientStylingChange(i,e){i!==e&&w.setClientStyling(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(i,e){i!==e&&this.clientStylingUrl&&w.setClientStylingURL(this.stylingContainer,this.clientStylingUrl)}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}getOtpValue(){return _a(this,null,function*(){return this.code.join("")})}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}connectedCallback(){var i;this.validationPattern=this.setPattern(),this.code=new Array((i=this.validation)===null||i===void 0?void 0:i.maxLength).fill("")}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleClientStyling(){if(window.emMessageBus!==void 0){this.stylingSubscription=w.setStreamStyling(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0);return}this.clientStyling&&w.setClientStyling(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&w.setClientStylingURL(this.stylingContainer,this.clientStylingUrl)}componentDidLoad(){this.setValidity(),this.registrationWidgetLoaded.emit(),window.postMessage({type:"registrationWidgetLoaded"},window.location.href),this.startCountDown&&this.triggerResendInterval(),this.handleClientStyling()}handleKeyDown(i,e){if(i.key==="Backspace"){const t=[...this.code];t[e]="",this.code=t,this.enableSouthAfricanMode&&(this.revealedIndexes=this.revealedIndexes.filter(a=>a!==e));const r=this.inputRefs[e-1];r==null||r.focus()}this.setValidity(),this.setErrorMessage()}handlePaste(i){var e,t;i.preventDefault();const r=(t=(e=i.clipboardData)===null||e===void 0?void 0:e.getData("text"))===null||t===void 0?void 0:t.trim();if(!r)return;const a=r.slice(0,this.validation.maxLength).split("");this.code=[...a,...new Array(this.validation.maxLength-a.length).fill("")],this.enableSouthAfricanMode&&(this.revealedIndexes=a.map((n,s)=>s),this.revealTimeout&&clearTimeout(this.revealTimeout),this.revealTimeout=setTimeout(()=>{this.revealedIndexes=[]},500));const o=this.inputRefs[Math.min(a.length,this.inputRefs.length-1)];o==null||o.focus(),this.setValidity(),this.setErrorMessage(),this.enableSouthAfricanMode&&(this.valueHandler({name:this.name,value:this.code.join("")}),this.validityStateHandler({valid:this.isValid,name:this.name}))}setValidity(){var i;const e=this.code.join(""),t=e.length===((i=this.validation)===null||i===void 0?void 0:i.maxLength),r=e.match(this.validationPattern)!==null;this.isValid=t&&r}setPattern(){var i,e,t,r,a;return this.validation&&(!((i=this.validation)===null||i===void 0)&&i.custom)&&this.validation.custom.length>0&&(a=(r=(t=(e=this.validation)===null||e===void 0?void 0:e.custom)===null||t===void 0?void 0:t.find(o=>o.rule==="regex"))===null||r===void 0?void 0:r.pattern)!==null&&a!==void 0?a:""}setErrorMessage(){var i,e,t;if(this.code.join("").match(this.validationPattern)!==null)this.errorMessage="";else{const a=(t=(e=(i=this.validation)===null||i===void 0?void 0:i.custom)===null||e===void 0?void 0:e.find(o=>o.rule==="regex"))===null||t===void 0?void 0:t.errorKey;a&&(this.errorMessage=b(a,this.language))}}renderTooltip(){return this.showTooltip?h.h("div",{class:`text__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}getInputDisplayValue(i){const e=this.code[i];return e?this.enableSouthAfricanMode?this.revealedIndexes.includes(i)?e:"*":e:""}render(){return h.h("div",{key:"f7123fd5b93d7edb05abc48c7bf0e64dd35a0096",class:"twofa",ref:i=>this.stylingContainer=i},h.h("div",{key:"500c8c0347308373a1019cd839bd98c8be4f1dfc",class:"twofa__error-message"},h.h("p",{key:"71655b12862d0be463112c91b8ad96ebabce5308"},this.errorMessage)),h.h("div",{key:"722b6f26f6c317a5cd844f010486fe3ce8937307",class:"twofa__description",innerHTML:b("twofaDescription",this.language,{values:{destination:this.destination}})}),h.h("div",{key:"3f94387b22a825f1c39e55d402d413378b1979d8",class:"twofa__input-wrapper",ref:this.setContainerRef},this.code.map((i,e)=>h.h("input",{key:e,ref:t=>this.setInputRef(t,e),id:`otp-input-${e}`,type:"text",maxLength:2,value:this.getInputDisplayValue(e),onInput:t=>this.handleInput(t,e),onKeyDown:t=>this.handleKeyDown(t,e),onPaste:t=>this.handlePaste(t)}))),h.h("div",{key:"3465beb171e55b3b61d954dee6f772e64dc63835",class:"twofa__button-wrapper"},h.h("p",{key:"19da7fbe70c7768171adcc1329240348be60cb70",class:"twofa__resend-message"},b("twofaResendMessage",this.language)),h.h("button",{key:"b0c097d4afaa9d60716b2da6465401c15c45626e",class:`twofa__resend-button ${this.pinAttemptsExceeded?"twofa__resend-button--disabled":""}`,onClick:this.resendCodeHandler,disabled:!this.isResendButtonAvailable||this.pinAttemptsExceeded},this.isResendButtonAvailable?b("twofaResendButton",this.language):this.formatTime())))}get host(){return h.getElement(this)}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};js.style=rv;const av=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.SkeletonCircle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.SkeletonText{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.SkeletonImage{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.SkeletonLogo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}",ov=av,Ws=class{constructor(i){h.registerInstance(this,i),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(i,e){e!==i&&this.handleStructure(i)}handleStylingProps(i){switch(typeof i){case"number":return i===0?0:`${i}px`;case"undefined":return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(i)||i.endsWith("px")||i.endsWith("%")?i:"unset";default:return"unset"}}handleStructure(i){switch(i){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return h.h("div",{class:"SkeletonContainer"},h.h("div",{class:"SkeletonLogo "+(this.animation?"Skeleton":"")}))}renderImage(){return h.h("div",{class:"SkeletonImage "+(this.animation?"Skeleton":"")})}renderTitle(){return h.h("div",{class:"SkeletonContainer"},h.h("div",{class:"SkeletonTitle "+(this.animation?"Skeleton":"")}))}renderText(){return h.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((i,e)=>h.h("div",{key:e,class:"SkeletonText "+(this.animation?"Skeleton":"")})))}renderRectangle(){return h.h("div",{class:"SkeletonContainer"},h.h("div",{class:"SkeletonRectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return h.h("div",{class:"SkeletonContainer"},h.h("div",{class:"SkeletonCircle "+(this.animation?"Skeleton":"")}))}render(){let i="";switch(this.structure){case"logo":i=`
6905
6905
  :host {
6906
6906
  --emw-skeleton-logo-width: ${this.stylingValue.width};
6907
6907
  --emw-skeleton-logo-height: ${this.stylingValue.height};
@@ -6955,4 +6955,4 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6955
6955
  :host {
6956
6956
  --emw-skeleton-circle-size: ${this.stylingValue.size};
6957
6957
  }
6958
- `;break;default:i=""}return h.h(h.Host,{key:"c2a2650acd416962a2bc4e1a7ee18bc6d8e2def8"},h.h("style",{key:"9bd7fc1f9e9ed9f17735a7b72fce6f09696f5e19"},i),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};Ws.style=ov;exports.pam_change_password=w.PamChangePassword;exports.checkbox_group_input=To;exports.checkbox_input=Po;exports.date_input=Wo;exports.email_input=Yo;exports.general_input=zs;exports.number_input=Ls;exports.password_input=Rs;exports.postalcode_input=Fs;exports.radio_input=$s;exports.select_input=Bs;exports.tel_input=Hs;exports.text_input=Us;exports.toggle_checkbox_input=qs;exports.twofa_input=js;exports.ui_skeleton=Ws;
6958
+ `;break;default:i=""}return h.h(h.Host,{key:"c2a2650acd416962a2bc4e1a7ee18bc6d8e2def8"},h.h("style",{key:"9bd7fc1f9e9ed9f17735a7b72fce6f09696f5e19"},i),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};Ws.style=ov;exports.pam_change_password=w.PamChangePassword;exports.checkbox_group_input=To;exports.checkbox_input=Po;exports.date_input=Wo;exports.email_input=Yo;exports.general_input=Ls;exports.number_input=zs;exports.password_input=Rs;exports.postalcode_input=Fs;exports.radio_input=$s;exports.select_input=Bs;exports.tel_input=Hs;exports.text_input=Us;exports.toggle_checkbox_input=qs;exports.twofa_input=js;exports.ui_skeleton=Ws;