@everymatrix/player-account-controller-nd 1.80.12 → 1.80.13
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.
- package/components/{GeneralLogout-BHSK0RmY.cjs → GeneralLogout-DBlkiIEp.cjs} +4 -4
- package/components/{GeneralLogout-BxUx58qm.js → GeneralLogout-LWl_1vTK.js} +53 -46
- package/components/{GeneralLogout-BdpPT19L.js → GeneralLogout-yjJFxpmi.js} +53 -46
- package/components/{PlayerAccountBettingHistory-B36_gYsQ.js → PlayerAccountBettingHistory-BNuEwKVz.js} +1 -1
- package/components/{PlayerAccountBettingHistory-DEsXhvrw.cjs → PlayerAccountBettingHistory-BWeVwbiv.cjs} +1 -1
- package/components/{PlayerAccountBettingHistory-Ch2oIPpB.js → PlayerAccountBettingHistory-DKXqMSi2.js} +1 -1
- package/components/{PlayerAccountBiometrics-GJ3xa9vr.js → PlayerAccountBiometrics-1pQXCRAx.js} +1 -1
- package/components/{PlayerAccountBiometrics-D44j8v5T.js → PlayerAccountBiometrics-8967kck4.js} +1 -1
- package/components/{PlayerAccountBiometrics-DZeCiPUr.cjs → PlayerAccountBiometrics-D52cauRN.cjs} +1 -1
- package/components/{PlayerAccountClosureNd-CuOb2OYl.js → PlayerAccountClosureNd-BagRLfbM.js} +2 -2
- package/components/{PlayerAccountClosureNd-Bc3Q3fw-.js → PlayerAccountClosureNd-ComeylCX.js} +2 -2
- package/components/{PlayerAccountClosureNd-Dh7ajAz8.cjs → PlayerAccountClosureNd-DnQUx5AM.cjs} +1 -1
- package/components/PlayerAccountControllerNd-92xmdr-x.cjs +1 -0
- package/components/{PlayerAccountControllerNd-BoEYMPhG.js → PlayerAccountControllerNd-D7Wt2u-0.js} +371 -347
- package/components/{PlayerAccountControllerNd-CpRNbihV.js → PlayerAccountControllerNd-DCe8gp_T.js} +372 -348
- package/components/{PlayerAccountGamingLimits-JR42TUCy.js → PlayerAccountGamingLimits-CF2uP2Hv.js} +2 -2
- package/components/{PlayerAccountGamingLimits-Bgy9khHv.cjs → PlayerAccountGamingLimits-CWNPedaX.cjs} +1 -1
- package/components/{PlayerAccountGamingLimits-B33MKZjs.js → PlayerAccountGamingLimits-D74dN1rA.js} +2 -2
- package/components/{PlayerAccountGamingLimitsConfirmationModal-CSIS3G9-.js → PlayerAccountGamingLimitsConfirmationModal-BtTfrqCd.js} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-DfGpnyIO.js → PlayerAccountGamingLimitsConfirmationModal-CBHwy8zU.js} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-Dy20Zs2F.cjs → PlayerAccountGamingLimitsConfirmationModal-DTEOwV-B.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsGroupEdit-_67NVpbq.cjs → PlayerAccountGamingLimitsGroupEdit-B5GfbTI0.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsGroupEdit-BGFhjDuh.js → PlayerAccountGamingLimitsGroupEdit-CA5VxEZL.js} +4 -4
- package/components/{PlayerAccountGamingLimitsGroupEdit-C3SoULfQ.js → PlayerAccountGamingLimitsGroupEdit-qFfJIJTG.js} +4 -4
- package/components/{PlayerAccountGamingLimitsHistory2Nd-P_xMkd1B.js → PlayerAccountGamingLimitsHistory2Nd-BOQSnHmU.js} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2Nd-CJPPrA50.js → PlayerAccountGamingLimitsHistory2Nd-Cy9t6xSc.js} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2Nd-36Mi8WAw.cjs → PlayerAccountGamingLimitsHistory2Nd-c-xPG-nZ.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-C1GZK1C9.js → PlayerAccountGamingLimitsInfoCard-9ieSj0De.js} +4 -4
- package/components/{PlayerAccountGamingLimitsInfoCard-oLPDFKvU.js → PlayerAccountGamingLimitsInfoCard-FPqtTpOI.js} +4 -4
- package/components/{PlayerAccountGamingLimitsInfoCard-CiYA_-xx.cjs → PlayerAccountGamingLimitsInfoCard-mP8vbAoC.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-G4Z-8oM_.js → PlayerAccountGamingLimitsPage2Gm16Nd-Bca4aJB3.js} +1814 -1597
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-Ds3pzpbY.js → PlayerAccountGamingLimitsPage2Gm16Nd-BxGlF5ER.js} +1957 -1739
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-PWWUi_A8.cjs → PlayerAccountGamingLimitsPage2Gm16Nd-DAk_kwGB.cjs} +7 -7
- package/components/{PlayerAccountGamingLimitsPopup-BNRTcX_p.cjs → PlayerAccountGamingLimitsPopup-CLDm_UDN.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-jJRis_2l.js → PlayerAccountGamingLimitsPopup-CMwahY4E.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-C7kIrZ-T.js → PlayerAccountGamingLimitsPopup-ors9ljEU.js} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-DsmlfVZ_.cjs → PlayerAccountGamingLimitsWrapper2Nd-7CBklSTt.cjs} +4 -4
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-Clm_mNcH.js → PlayerAccountGamingLimitsWrapper2Nd-B3AYViHE.js} +748 -509
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-p-tJWCn3.js → PlayerAccountGamingLimitsWrapper2Nd-CXP29K_a.js} +747 -508
- package/components/{PlayerAccountGeneralConfirmationModal-CsiYQqMy.js → PlayerAccountGeneralConfirmationModal-CHMe9-I2.js} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-Brms760_.js → PlayerAccountGeneralConfirmationModal-t_hkyy1a.js} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-DWs63W3-.cjs → PlayerAccountGeneralConfirmationModal-uJTzxW8j.cjs} +1 -1
- package/components/{PlayerAccountMenuNd-CUIu92tP.js → PlayerAccountMenuNd-B99jiWJc.js} +3 -3
- package/components/{PlayerAccountMenuNd-CyF5JaC7.js → PlayerAccountMenuNd-BRVZsL3-.js} +3 -3
- package/components/{PlayerAccountMenuNd-BOpBV1Ph.cjs → PlayerAccountMenuNd-SO-837SX.cjs} +1 -1
- package/components/{PlayerAccountModal-BmGgwWFr.js → PlayerAccountModal-Cq0q8pfd.js} +1 -1
- package/components/{PlayerAccountModal-UuXRwUpP.cjs → PlayerAccountModal-HMKEA_XT.cjs} +1 -1
- package/components/{PlayerAccountModal-D2NiFBET.js → PlayerAccountModal-kyVi8Bs1.js} +1 -1
- package/components/{PlayerAccountNotifications-Dr-vkmC8.js → PlayerAccountNotifications-D4RcwMDE.js} +2 -2
- package/components/{PlayerAccountNotifications-CQYdg0NP.js → PlayerAccountNotifications-DF8-vBSp.js} +2 -2
- package/components/{PlayerAccountNotifications-D1N9N6X6.cjs → PlayerAccountNotifications-Di2vI8LA.cjs} +1 -1
- package/components/{PlayerAccountProductRestriction-BmN3TAUE.cjs → PlayerAccountProductRestriction-C77fRJ0n.cjs} +1 -1
- package/components/{PlayerAccountProductRestriction-B5ruczGn.js → PlayerAccountProductRestriction-DUaU-B_l.js} +4 -4
- package/components/{PlayerAccountProductRestriction-oCJs9i-4.js → PlayerAccountProductRestriction-DVYpQnxZ.js} +4 -4
- package/components/{PlayerAccountSelfExclusionNd-BYxSxHSn.js → PlayerAccountSelfExclusionNd-BdDutsbF.js} +5 -5
- package/components/{PlayerAccountSelfExclusionNd-BFucu0V4.js → PlayerAccountSelfExclusionNd-COgh0h1U.js} +5 -5
- package/components/{PlayerAccountSelfExclusionNd-BpvsaJtF.cjs → PlayerAccountSelfExclusionNd-Ddpu5m5c.cjs} +1 -1
- package/components/{PlayerAccountTimeout-c5k6y7Gb.cjs → PlayerAccountTimeout-CPlyN_Hp.cjs} +1 -1
- package/components/{PlayerAccountTimeout-VBe9uoif.js → PlayerAccountTimeout-uQtyamCU.js} +5 -5
- package/components/{PlayerAccountTimeout-yXakV2sY.js → PlayerAccountTimeout-y5qNQWSn.js} +5 -5
- package/components/{PlayerAccountTransactionsHistory-BKwEwtwR.js → PlayerAccountTransactionsHistory-BSNl0Beo.js} +4 -4
- package/components/{PlayerAccountTransactionsHistory-DRsP5uSg.js → PlayerAccountTransactionsHistory-CQpB7ZbP.js} +4 -4
- package/components/{PlayerAccountTransactionsHistory-DYGBOzRr.cjs → PlayerAccountTransactionsHistory-D5j-oxlZ.cjs} +1 -1
- package/components/{PlayerActiveBonuses-D06Spoa6.js → PlayerActiveBonuses-ComannRH.js} +382 -373
- package/components/PlayerActiveBonuses-CxkjBe6U.cjs +4 -0
- package/components/{PlayerActiveBonuses-C2-DpzHV.js → PlayerActiveBonuses-Dc4dX5BY.js} +395 -386
- package/components/PlayerBonusCard-BI4TRE8m.js +951 -0
- package/components/PlayerBonusCard-BP0QLhq_.js +951 -0
- package/components/PlayerBonusCard-D92gtbSA.cjs +1 -0
- package/components/{PlayerBonusHistory-DtkK5v5d.js → PlayerBonusHistory-BFFI8jlZ.js} +4 -4
- package/components/{PlayerBonusHistory-BJC2dU_b.js → PlayerBonusHistory-CKVAAxHY.js} +4 -4
- package/components/{PlayerBonusHistory-CBD3QZJL.cjs → PlayerBonusHistory-RnctDKw6.cjs} +1 -1
- package/components/{PlayerChangePasswordNd-B2AqYu6e.cjs → PlayerChangePasswordNd-BaGT4zvE.cjs} +1 -1
- package/components/{PlayerChangePasswordNd-JlUkulUZ.js → PlayerChangePasswordNd-C8iput2T.js} +1 -1
- package/components/{PlayerChangePasswordNd-BEmmHT0i.js → PlayerChangePasswordNd-DlZP3bRE.js} +1 -1
- package/components/{PlayerDeposit-GKCmGAWf.js → PlayerDeposit-BEz54Uu4.js} +1 -1
- package/components/{PlayerDeposit-DKEz99Z5.cjs → PlayerDeposit-DmgswiVB.cjs} +1 -1
- package/components/{PlayerDeposit-Bdi67lys.js → PlayerDeposit-UGJt1xkR.js} +1 -1
- package/components/{PlayerGamingHistory-DM6f4CWS.cjs → PlayerGamingHistory-9ZJKP7NY.cjs} +1 -1
- package/components/{PlayerGamingHistory-DotfVEph.js → PlayerGamingHistory-BC50Ohwo.js} +4 -4
- package/components/{PlayerGamingHistory-CdkhE6W_.js → PlayerGamingHistory-oM9q5VjK.js} +4 -4
- package/components/{PlayerPendingWithdrawals-tWIfKTR_.cjs → PlayerPendingWithdrawals-BIeFdkyr.cjs} +1 -1
- package/components/{PlayerPendingWithdrawals-DLJ8YIQ2.js → PlayerPendingWithdrawals-CE1fF8Pg.js} +1 -1
- package/components/{PlayerPendingWithdrawals-BLIKIoCY.js → PlayerPendingWithdrawals-Dj7owqa4.js} +1 -1
- package/components/PlayerProfileInfo-CEJIfrEC.cjs +4 -0
- package/components/PlayerProfileInfo-DWG6lnwr.js +2673 -0
- package/components/PlayerProfileInfo-tEkmOg6Y.js +2708 -0
- package/components/{PlayerRealityCheck-C-ujJ4XH.js → PlayerRealityCheck-BZWY1PkW.js} +2 -2
- package/components/{PlayerRealityCheck-CgyTrRAe.cjs → PlayerRealityCheck-CePGE12o.cjs} +1 -1
- package/components/{PlayerRealityCheck-B5DsYTCb.js → PlayerRealityCheck-DzqCiAG2.js} +2 -2
- package/components/{PlayerTransactionHistory-n27d8Tj6.js → PlayerTransactionHistory-CuCXIZnC.js} +1 -1
- package/components/{PlayerTransactionHistory-C6Z4ylmQ.cjs → PlayerTransactionHistory-a89Sj15a.cjs} +1 -1
- package/components/{PlayerTransactionHistory-ScEu-0fb.js → PlayerTransactionHistory-j1JlzIxs.js} +1 -1
- package/components/{PlayerWithdrawal-klI9x3s7.js → PlayerWithdrawal-CJ_xAluR.js} +1 -1
- package/components/{PlayerWithdrawal-CXckYn64.js → PlayerWithdrawal-D1vqqnby.js} +1 -1
- package/components/{PlayerWithdrawal-ClWHqp4U.cjs → PlayerWithdrawal-GnmsEmM9.cjs} +1 -1
- package/es2015/player-account-controller-nd.cjs +1 -1
- package/es2015/player-account-controller-nd.js +1 -1
- package/esnext/player-account-controller-nd.js +1 -1
- package/lazy/{general-logout-BfJlNRVe.js → general-logout-CaLk6xGM.js} +1 -1
- package/lazy/{general-logout-xQ8Uwpzq.js → general-logout-D2zyOzOF.js} +1 -1
- package/lazy/{general-logout-52kSPReT.cjs → general-logout-qM8xRQu5.cjs} +1 -1
- package/lazy/{pam-change-password-CxIC0JJU.js → pam-change-password-D7nm7m4-.js} +1 -1
- package/lazy/{pam-change-password-DlksCTpP.cjs → pam-change-password-DsFtabLf.cjs} +1 -1
- package/lazy/{pam-change-password-DqM4AVZv.js → pam-change-password-d2IIWC3K.js} +1 -1
- package/lazy/{player-account-betting-history-C-ApxZ70.cjs → player-account-betting-history-CIPRveCV.cjs} +1 -1
- package/lazy/{player-account-betting-history-DWPEaFL2.js → player-account-betting-history-Mvm70M14.js} +1 -1
- package/lazy/{player-account-betting-history-DmBNq-UC.js → player-account-betting-history-jl82t_Jg.js} +1 -1
- package/lazy/{player-account-biometrics-QqMdc4iT.cjs → player-account-biometrics-Bhb2dcsU.cjs} +1 -1
- package/lazy/{player-account-biometrics-BzDGFG-W.js → player-account-biometrics-C0nizLQA.js} +1 -1
- package/lazy/{player-account-biometrics-ZlCwQSLa.js → player-account-biometrics-Cbwu_Qu3.js} +1 -1
- package/lazy/{player-account-closure-nd-Bi4dA9c_.cjs → player-account-closure-nd-BO9AI4z3.cjs} +1 -1
- package/lazy/{player-account-closure-nd-B4zDSxrm.js → player-account-closure-nd-CJ3xRVck.js} +1 -1
- package/lazy/{player-account-closure-nd-DjnZbs5F.js → player-account-closure-nd-Dzp1RMu0.js} +1 -1
- package/lazy/{player-account-gaming-limits-Dx_n2H1p.js → player-account-gaming-limits-C4eGCJeD.js} +1 -1
- package/lazy/{player-account-gaming-limits-DfBtns6o.js → player-account-gaming-limits-CTmDD5aD.js} +1 -1
- package/lazy/{player-account-gaming-limits-CFzL-zIN.cjs → player-account-gaming-limits-CVzdObQB.cjs} +1 -1
- package/lazy/{player-account-gaming-limits-confirmation-modal-C8-zrj9G.cjs → player-account-gaming-limits-confirmation-modal-BAoRajit.cjs} +1 -1
- package/lazy/{player-account-gaming-limits-confirmation-modal-syqh4R6R.js → player-account-gaming-limits-confirmation-modal-CSPcglUs.js} +1 -1
- package/lazy/{player-account-gaming-limits-confirmation-modal-CVqfMx6M.js → player-account-gaming-limits-confirmation-modal-DaPhsR2l.js} +1 -1
- package/lazy/{player-account-gaming-limits-group-edit-6PmGfgAu.js → player-account-gaming-limits-group-edit-CUwdNLwd.js} +1 -1
- package/lazy/{player-account-gaming-limits-group-edit-BurKi1m1.cjs → player-account-gaming-limits-group-edit-CoO0-LSX.cjs} +1 -1
- package/lazy/{player-account-gaming-limits-group-edit-Deo_DS2E.js → player-account-gaming-limits-group-edit-DI6PdTPn.js} +1 -1
- package/lazy/{player-account-gaming-limits-history-2-nd-rGPKZf8u.js → player-account-gaming-limits-history-2-nd-7Il4KSF8.js} +1 -1
- package/lazy/{player-account-gaming-limits-history-2-nd-BvFHDLFe.js → player-account-gaming-limits-history-2-nd-BJZdlFe4.js} +1 -1
- package/lazy/{player-account-gaming-limits-history-2-nd-TXRVwvWl.cjs → player-account-gaming-limits-history-2-nd-BUwkcv7q.cjs} +1 -1
- package/lazy/{player-account-gaming-limits-info-card-W0hMbV2X.js → player-account-gaming-limits-info-card-BbkQM-Iw.js} +1 -1
- package/lazy/{player-account-gaming-limits-info-card-DwTB6SMa.cjs → player-account-gaming-limits-info-card-CZx685pv.cjs} +1 -1
- package/lazy/{player-account-gaming-limits-info-card-ClDL9Z29.js → player-account-gaming-limits-info-card-DoBMldE9.js} +1 -1
- package/lazy/{player-account-gaming-limits-page-2-gm16-nd-ClWkxT42.js → player-account-gaming-limits-page-2-gm16-nd-C8TPL2Cp.js} +1 -1
- package/lazy/{player-account-gaming-limits-page-2-gm16-nd-DJSm9ztK.js → player-account-gaming-limits-page-2-gm16-nd-D3ccpqLc.js} +1 -1
- package/lazy/{player-account-gaming-limits-page-2-gm16-nd-BecQ_0hB.cjs → player-account-gaming-limits-page-2-gm16-nd-DgN2qYua.cjs} +1 -1
- package/lazy/{player-account-gaming-limits-popup-B2HVsxE3.js → player-account-gaming-limits-popup-B35PwYz2.js} +1 -1
- package/lazy/{player-account-gaming-limits-popup-lYYDRzeE.js → player-account-gaming-limits-popup-BgGrk4x6.js} +1 -1
- package/lazy/{player-account-gaming-limits-popup-DlIainmb.cjs → player-account-gaming-limits-popup-CCDDbPOo.cjs} +1 -1
- package/lazy/{player-account-gaming-limits-wrapper-2-nd-Br2gPRJI.js → player-account-gaming-limits-wrapper-2-nd-BtLjEE-K.js} +1 -1
- package/lazy/{player-account-gaming-limits-wrapper-2-nd-DmT6ztoR.cjs → player-account-gaming-limits-wrapper-2-nd-DRo-czHP.cjs} +1 -1
- package/lazy/{player-account-gaming-limits-wrapper-2-nd-DWatXuiI.js → player-account-gaming-limits-wrapper-2-nd-DUB9vjcB.js} +1 -1
- package/lazy/{player-account-general-confirmation-modal-DpKGOBc3.js → player-account-general-confirmation-modal-DkDWGF-S.js} +1 -1
- package/lazy/{player-account-general-confirmation-modal--m07rkin.cjs → player-account-general-confirmation-modal-VTU-d6sE.cjs} +1 -1
- package/lazy/{player-account-general-confirmation-modal-DxgEKmHf.js → player-account-general-confirmation-modal-r89dO9AG.js} +1 -1
- package/lazy/{player-account-menu-nd--lgrA0Gq.js → player-account-menu-nd-Bx9IC5No.js} +1 -1
- package/lazy/{player-account-menu-nd-DsTJYL_u.cjs → player-account-menu-nd-CTRSRKWK.cjs} +1 -1
- package/lazy/{player-account-menu-nd-Cq1lK97b.js → player-account-menu-nd-DLX5df-c.js} +1 -1
- package/lazy/{player-account-modal-doE08-AM.js → player-account-modal-B1us984q.js} +1 -1
- package/lazy/{player-account-modal-D42tC6EZ.cjs → player-account-modal-COZT7j2u.cjs} +1 -1
- package/lazy/{player-account-modal-DrujIlDr.js → player-account-modal-CrfGm7dg.js} +1 -1
- package/lazy/{player-account-notifications-CHm3cUrF.js → player-account-notifications-9d_OxFfz.js} +1 -1
- package/lazy/{player-account-notifications-DlCN8Bd-.cjs → player-account-notifications-DnY1FGrC.cjs} +1 -1
- package/lazy/{player-account-notifications-Bw8ZWt2h.js → player-account-notifications-vlSjtwLs.js} +1 -1
- package/lazy/{player-account-product-restriction-kV3nJdP6.js → player-account-product-restriction-BF3A5ozV.js} +1 -1
- package/lazy/{player-account-product-restriction-BbGG0cY9.js → player-account-product-restriction-Cq8mZ_VQ.js} +1 -1
- package/lazy/{player-account-product-restriction-4a0XC4FM.cjs → player-account-product-restriction-DmveNLF_.cjs} +1 -1
- package/lazy/{player-account-self-exclusion-nd-BmOna-MB.js → player-account-self-exclusion-nd-BePk23E1.js} +1 -1
- package/lazy/{player-account-self-exclusion-nd-BfNP27Xy.cjs → player-account-self-exclusion-nd-XkeH5TgC.cjs} +1 -1
- package/lazy/{player-account-self-exclusion-nd-B-DdC6QR.js → player-account-self-exclusion-nd-dDXAwKKI.js} +1 -1
- package/lazy/{player-account-timeout-BE2rXfOf.js → player-account-timeout-BcoKCTO8.js} +1 -1
- package/lazy/{player-account-timeout-MYxuM8Yc.cjs → player-account-timeout-DQfM2r08.cjs} +1 -1
- package/lazy/{player-account-timeout-DNyzZx4m.js → player-account-timeout-DmPvatGt.js} +1 -1
- package/lazy/{player-account-transactions-history-Bm6W4Uv3.js → player-account-transactions-history-BSUHVUv6.js} +1 -1
- package/lazy/{player-account-transactions-history-Calfa5z7.js → player-account-transactions-history-DHMIF7zq.js} +1 -1
- package/lazy/{player-account-transactions-history-DypEigH-.cjs → player-account-transactions-history-DcaBiMcs.cjs} +1 -1
- package/lazy/{player-active-bonuses-Bq3u1XPK.cjs → player-active-bonuses-CQqrg8P2.cjs} +1 -1
- package/lazy/{player-active-bonuses-DTCXvszD.js → player-active-bonuses-Dx4HoCi6.js} +1 -1
- package/lazy/{player-active-bonuses-DNjrr9MU.js → player-active-bonuses-gFTt7uIB.js} +1 -1
- package/lazy/{player-bonus-card-BMlRVBSW.cjs → player-bonus-card-BvrFFxAW.cjs} +1 -1
- package/lazy/{player-bonus-card-Dqb71B_b.js → player-bonus-card-Cd6EpiUj.js} +1 -1
- package/lazy/{player-bonus-card-Bnjw255x.js → player-bonus-card-DWMYmxOh.js} +1 -1
- package/lazy/{player-bonus-history-BlOUYHZD.cjs → player-bonus-history-B3JCUVNh.cjs} +1 -1
- package/lazy/{player-bonus-history-xyIASRa9.js → player-bonus-history-B4CMQ83Z.js} +1 -1
- package/lazy/{player-bonus-history-pc8SVQ_i.js → player-bonus-history-CxrhEfHc.js} +1 -1
- package/lazy/{player-change-password-nd-MNicn0vA.cjs → player-change-password-nd-BANuylwy.cjs} +1 -1
- package/lazy/{player-change-password-nd-DFXc4Ed0.js → player-change-password-nd-BM0u4GLM.js} +1 -1
- package/lazy/{player-change-password-nd-DdQrX27U.js → player-change-password-nd-DhF49O9r.js} +1 -1
- package/lazy/{player-deposit-B97MSIcP.js → player-deposit-C_CsSjmC.js} +1 -1
- package/lazy/{player-deposit-CqbrO27f.cjs → player-deposit-DSqbiyWi.cjs} +1 -1
- package/lazy/{player-deposit-BPtXidhD.js → player-deposit-WiDwilEW.js} +1 -1
- package/lazy/{player-gaming-history-BfILr96S.js → player-gaming-history-B48_vFcz.js} +1 -1
- package/lazy/{player-gaming-history-ePCWO8Ef.js → player-gaming-history-CEic2NV2.js} +1 -1
- package/lazy/{player-gaming-history-BLGrC9-s.cjs → player-gaming-history-q4cZTKt1.cjs} +1 -1
- package/lazy/{player-pending-withdrawals-BPKJikMn.js → player-pending-withdrawals-BAY3Tv_S.js} +1 -1
- package/lazy/{player-pending-withdrawals-LxdMBls8.cjs → player-pending-withdrawals-BD0uL3oI.cjs} +1 -1
- package/lazy/{player-pending-withdrawals-MGiZnwLN.js → player-pending-withdrawals-sMNuBouf.js} +1 -1
- package/lazy/{player-profile-info-BhprhHFw.js → player-profile-info-BIVRaR0z.js} +1 -1
- package/lazy/{player-profile-info-CP4PwXzL.js → player-profile-info-DzZOFTFx.js} +1 -1
- package/lazy/{player-profile-info-BZ7LUbKw.cjs → player-profile-info-OtH7Djpe.cjs} +1 -1
- package/lazy/{player-reality-check-NjLXdjeu.js → player-reality-check-CrAvhee0.js} +1 -1
- package/lazy/{player-reality-check-B6RMTS9E.cjs → player-reality-check-Dupsab1l.cjs} +1 -1
- package/lazy/{player-reality-check-BTxNe3GW.js → player-reality-check-pgKqaFQ2.js} +1 -1
- package/lazy/{player-transaction-history-t_S7FeyY.cjs → player-transaction-history-BSnji-nf.cjs} +1 -1
- package/lazy/{player-transaction-history-Dx8fgg30.js → player-transaction-history-BYQErk3J.js} +1 -1
- package/lazy/{player-transaction-history-Cc-tK7RT.js → player-transaction-history-Coe2XmcU.js} +1 -1
- package/lazy/{player-withdrawal-CFWVRedG.cjs → player-withdrawal-BtDtb5Yy.cjs} +1 -1
- package/lazy/{player-withdrawal-DGZvwJOj.js → player-withdrawal-D-rw2V1J.js} +1 -1
- package/lazy/{player-withdrawal-De_OWb_Y.js → player-withdrawal-DaDOfInJ.js} +1 -1
- package/lazy/{ui-skeleton-Cj04vBs8.js → ui-skeleton-BUCYetAg.js} +1 -1
- package/lazy/{ui-skeleton-93Cdsh30.cjs → ui-skeleton-BgUTfAtW.cjs} +1 -1
- package/lazy/{ui-skeleton-DRpDMSEQ.js → ui-skeleton-C-dgOp3G.js} +1 -1
- package/lazy/{user-deposit-withdrawal-CuaSWQdU.js → user-deposit-withdrawal-C5ozpvE5.js} +1 -1
- package/lazy/{user-deposit-withdrawal-D-aRq7Pf.cjs → user-deposit-withdrawal-CG98ptzm.cjs} +1 -1
- package/lazy/{user-deposit-withdrawal-TH61qPjc.js → user-deposit-withdrawal-C_0uw3Ce.js} +1 -1
- package/package.json +1 -1
- package/stencil/{checkbox-group-input_16-CSRHQqI3.js → checkbox-group-input_16-0ubaaVGe.js} +161 -161
- package/stencil/{checkbox-group-input_16-70XCVNuw.cjs → checkbox-group-input_16-3_PEaLpA.cjs} +45 -45
- package/stencil/{checkbox-group-input_16-CY38dfib.js → checkbox-group-input_16-7dVzlxh8.js} +161 -161
- package/stencil/{pam-change-password-0ebf482d-OVMb_Kf-.cjs → pam-change-password-0ebf482d-3Xwu8zhp.cjs} +1 -1
- package/stencil/{pam-change-password-0ebf482d-DbxDqJfm.js → pam-change-password-0ebf482d-D8lVBBuF.js} +1 -1
- package/stencil/{pam-change-password-0ebf482d-YbJJD-5V.js → pam-change-password-0ebf482d-DQdarBZ_.js} +1 -1
- package/stencil/pam-change-password-CVdBwL3Y.js +29 -0
- package/stencil/pam-change-password-CffSsUz6.js +11 -0
- package/stencil/pam-change-password-awFQPqTf.cjs +1 -0
- package/stencil/{ui-skeleton-BKQpcC4u.js → ui-skeleton--3Oejuq9.js} +2 -2
- package/stencil/{ui-skeleton-CZQcAhe4.cjs → ui-skeleton-Bp-l1XOX.cjs} +1 -1
- package/stencil/{ui-skeleton-BfwUvYZZ.js → ui-skeleton-Ur_BR5_B.js} +2 -2
- package/stencil/ui-skeleton-ed169f8f-BC-qcUzg.cjs +55 -0
- package/stencil/{ui-skeleton-ae35c6f2-BWB3hWjf.js → ui-skeleton-ed169f8f-CScXzcMr.js} +12 -12
- package/stencil/{ui-skeleton-ae35c6f2-CHwBUquH.js → ui-skeleton-ed169f8f-Dlrug2eB.js} +12 -12
- package/stencil/{user-deposit-withdrawal-DEXnYh3x.js → user-deposit-withdrawal-B7lD7o08.js} +2 -2
- package/stencil/{user-deposit-withdrawal-C4NF3mk2.cjs → user-deposit-withdrawal-BCYiG5F0.cjs} +2 -2
- package/stencil/{user-deposit-withdrawal-BIw0fi-T.js → user-deposit-withdrawal-CBW4aegK.js} +2 -2
- package/components/PlayerAccountControllerNd-DXIsE7R5.cjs +0 -1
- package/components/PlayerActiveBonuses-reXRCIJa.cjs +0 -4
- package/components/PlayerBonusCard-BTmz2MoQ.cjs +0 -1
- package/components/PlayerBonusCard-CvpUu8La.js +0 -849
- package/components/PlayerBonusCard-DyEH1pvw.js +0 -849
- package/components/PlayerProfileInfo-BThKdiBr.cjs +0 -4
- package/components/PlayerProfileInfo-CuZ_qPi7.js +0 -2628
- package/components/PlayerProfileInfo-DniUoLmW.js +0 -2593
- package/stencil/pam-change-password-C-tV3JRG.js +0 -11
- package/stencil/pam-change-password-P8C7-ez_.cjs +0 -1
- package/stencil/pam-change-password-hm39jHfS.js +0 -29
- package/stencil/ui-skeleton-ae35c6f2-BkANnQ7H.cjs +0 -55
package/stencil/{checkbox-group-input_16-70XCVNuw.cjs → checkbox-group-input_16-3_PEaLpA.cjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../lazy/pam-change-password-DlksCTpP.cjs"),Bs=require("./pam-change-password-0ebf482d-OVMb_Kf-.cjs"),Us="en",yo={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}",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..."},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",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"},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}",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"},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",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"},"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}",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"},"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}",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"}},b=(i,e,t)=>{const r=e;let a=yo[r!==void 0?r:Us][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},qs=i=>new Promise(e=>{fetch(i).then(t=>t.json()).then(t=>{Object.keys(t).forEach(r=>{for(let a in t[r])yo[r][a]=t[r][a]}),e(!0)})}),ne="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}',Ws=js,wo=class{constructor(i){c.registerInstance(this,i),this.sendValidityState=c.createEvent(this,"sendValidityState"),this.sendInputValue=c.createEvent(this,"sendInputValue"),this.value=null,this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.selectedValues=[],this.showCheckboxes=!1}handleStylingChange(i,e){i!==e&&this.setClientStyling()}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)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){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?c.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 c.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},c.h("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}render(){return c.h("div",{key:"9985f4050655bc2233090f63abb0e22f2fe0b556",class:`checkboxgroup__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},c.h("div",{key:"9922e45ae7ee74b137ffc8552b3d714b7e3b1f59",class:"checkboxgroup__wrapper--flex"},c.h("vaadin-checkbox",{key:"f18bae7c3ee6df76edcde75924eb1ad51a227443",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&&c.h("img",{key:"3dc2ce07e4d5f8de7ed4707b5e140fb4752ca86b",class:"checkboxgroup__tooltip-icon",src:ne,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),c.h("small",{key:"d55f25f75aa20007ff58cf45b6632517f49b6c00",class:"checkboxgroup__error-message"},this.errorMessage),this.showCheckboxes&&c.h("vaadin-checkbox-group",{key:"210c3cc2868a07a403494e04336c4f3091eea0e4",theme:"vertical",value:this.selectedValues,"on-value-changed":i=>{this.selectedValues=i.detail.value}},this.options.map(i=>c.h("vaadin-checkbox",{class:"checkbox__input",name:i.name,value:i.name,label:i.displayName}))))}get element(){return c.getElement(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}}};wo.style=Ws;const Ys='*,*::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{content:"*"}.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}',Gs=Ys,xo=class{constructor(i){c.registerInstance(this,i),this.sendValidityState=c.createEvent(this,"sendValidityState"),this.sendInputValue=c.createEvent(this,"sendInputValue"),this.value="",this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(i,e){i!==e&&this.setClientStyling()}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)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){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(){return c.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},c.h("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?c.h("div",{class:`checkbox__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return c.h("div",{key:"6d4c24ff269eb9378cdbb8fbeae034018d86b42e",class:`checkbox__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},c.h("vaadin-checkbox",{key:"9ac77865bf2de32e4d880cd2707976acb8d820dd",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&&c.h("img",{key:"86e2ed5404864abb1704e8748bed15ea7071797a",class:"checkboxgroup__tooltip-icon",src:ne,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};xo.style=Gs;function ve(i){"@babel/helpers - typeof";return ve=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},ve(i)}function R(i,e){if(e.length<i)throw new TypeError(i+" argument"+(i>1?"s":"")+" required, but only "+e.length+" present")}function Ks(i){return R(1,arguments),i instanceof Date||ve(i)==="object"&&Object.prototype.toString.call(i)==="[object Date]"}function U(i){R(1,arguments);var e=Object.prototype.toString.call(i);return i instanceof Date||ve(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 Co(i){if(R(1,arguments),!Ks(i)&&typeof i!="number")return!1;var e=U(i);return!isNaN(Number(e))}function Z(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 Xs(i,e){R(2,arguments);var t=U(i).getTime(),r=Z(e);return new Date(t+r)}function ko(i,e){R(2,arguments);var t=Z(e);return Xs(i,-t)}var Qs=864e5;function Js(i){R(1,arguments);var e=U(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/Qs)+1}function We(i){R(1,arguments);var e=1,t=U(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 Eo(i){R(1,arguments);var e=U(i),t=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var a=We(r),o=new Date(0);o.setUTCFullYear(t,0,4),o.setUTCHours(0,0,0,0);var n=We(o);return e.getTime()>=a.getTime()?t+1:e.getTime()>=n.getTime()?t:t-1}function Zs(i){R(1,arguments);var e=Eo(i),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=We(t);return r}var el=6048e5;function Io(i){R(1,arguments);var e=U(i),t=We(e).getTime()-Zs(e).getTime();return Math.round(t/el)+1}var tl={};function Qe(){return tl}function De(i,e){var t,r,a,o,n,s,l,d;R(1,arguments);var h=Qe(),u=Z((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:h.weekStartsOn)!==null&&r!==void 0?r:(l=h.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 p=U(i),m=p.getUTCDay(),y=(m<u?7:0)+m-u;return p.setUTCDate(p.getUTCDate()-y),p.setUTCHours(0,0,0,0),p}function gr(i,e){var t,r,a,o,n,s,l,d;R(1,arguments);var h=U(i),u=h.getUTCFullYear(),p=Qe(),m=Z((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:p.firstWeekContainsDate)!==null&&r!==void 0?r:(l=p.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(u+1,0,m),y.setUTCHours(0,0,0,0);var z=De(y,e),D=new Date(0);D.setUTCFullYear(u,0,m),D.setUTCHours(0,0,0,0);var O=De(D,e);return h.getTime()>=z.getTime()?u+1:h.getTime()>=O.getTime()?u:u-1}function il(i,e){var t,r,a,o,n,s,l,d;R(1,arguments);var h=Qe(),u=Z((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:h.firstWeekContainsDate)!==null&&r!==void 0?r:(l=h.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),p=gr(i,e),m=new Date(0);m.setUTCFullYear(p,0,u),m.setUTCHours(0,0,0,0);var y=De(m,e);return y}var rl=6048e5;function To(i,e){R(1,arguments);var t=U(i),r=De(t,e).getTime()-il(t,e).getTime();return Math.round(r/rl)+1}function V(i,e){for(var t=i<0?"-":"",r=Math.abs(i).toString();r.length<e;)r="0"+r;return t+r}var al={y:function(e,t){var r=e.getUTCFullYear(),a=r>0?r:1-r;return V(t==="yy"?a%100:a,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):V(r+1,2)},d:function(e,t){return V(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 V(e.getUTCHours()%12||12,t.length)},H:function(e,t){return V(e.getUTCHours(),t.length)},m:function(e,t){return V(e.getUTCMinutes(),t.length)},s:function(e,t){return V(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 V(o,t.length)}};const ye=al;var Le={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ol={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 ye.y(e,t)},Y:function(e,t,r,a){var o=gr(e,a),n=o>0?o:1-o;if(t==="YY"){var s=n%100;return V(s,2)}return t==="Yo"?r.ordinalNumber(n,{unit:"year"}):V(n,t.length)},R:function(e,t){var r=Eo(e);return V(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return V(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 V(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 V(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 ye.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 V(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=To(e,a);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):V(o,t.length)},I:function(e,t,r){var a=Io(e);return t==="Io"?r.ordinalNumber(a,{unit:"week"}):V(a,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):ye.d(e,t)},D:function(e,t,r){var a=Js(e);return t==="Do"?r.ordinalNumber(a,{unit:"dayOfYear"}):V(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 V(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 V(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 V(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=Le.noon:a===0?o=Le.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=Le.evening:a>=12?o=Le.afternoon:a>=4?o=Le.morning:o=Le.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 ye.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):ye.H(e,t)},K:function(e,t,r){var a=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(a,{unit:"hour"}):V(a,t.length)},k:function(e,t,r){var a=e.getUTCHours();return a===0&&(a=24),t==="ko"?r.ordinalNumber(a,{unit:"hour"}):V(a,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):ye.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):ye.s(e,t)},S:function(e,t){return ye.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 pa(n);case"XXXX":case"XX":return Te(n);case"XXXXX":case"XXX":default:return Te(n,":")}},x:function(e,t,r,a){var o=a._originalDate||e,n=o.getTimezoneOffset();switch(t){case"x":return pa(n);case"xxxx":case"xx":return Te(n);case"xxxxx":case"xxx":default:return Te(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"+ua(n,":");case"OOOO":default:return"GMT"+Te(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"+ua(n,":");case"zzzz":default:return"GMT"+Te(n,":")}},t:function(e,t,r,a){var o=a._originalDate||e,n=Math.floor(o.getTime()/1e3);return V(n,t.length)},T:function(e,t,r,a){var o=a._originalDate||e,n=o.getTime();return V(n,t.length)}};function ua(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+V(o,2)}function pa(i,e){if(i%60===0){var t=i>0?"-":"+";return t+V(Math.abs(i)/60,2)}return Te(i,e)}function Te(i,e){var t=e||"",r=i>0?"-":"+",a=Math.abs(i),o=V(Math.floor(a/60),2),n=V(a%60,2);return r+o+t+n}const nl=ol;var ma=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"})}},Po=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"})}},sl=function(e,t){var r=e.match(/(P+)(p+)?/)||[],a=r[1],o=r[2];if(!o)return ma(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}}",ma(a,t)).replace("{{time}}",Po(o,t))},ll={p:Po,P:sl};const ji=ll;function So(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 dl=["D","DD"],hl=["YY","YYYY"];function Ao(i){return dl.indexOf(i)!==-1}function Do(i){return hl.indexOf(i)!==-1}function Qt(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 cl={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"}},ul=function(e,t,r){var a,o=cl[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 pl=ul;function Si(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 ml={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},fl={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},_l={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},vl={date:Si({formats:ml,defaultWidth:"full"}),time:Si({formats:fl,defaultWidth:"full"}),dateTime:Si({formats:_l,defaultWidth:"full"})};const gl=vl;var bl={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},yl=function(e,t,r,a){return bl[e]};const wl=yl;function ot(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 xl={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Cl={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},kl={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"]},El={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"]},Il={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"}},Tl={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"}},Pl=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"},Sl={ordinalNumber:Pl,era:ot({values:xl,defaultWidth:"wide"}),quarter:ot({values:Cl,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ot({values:kl,defaultWidth:"wide"}),day:ot({values:El,defaultWidth:"wide"}),dayPeriod:ot({values:Il,defaultWidth:"wide",formattingValues:Tl,defaultFormattingWidth:"wide"})};const Al=Sl;function nt(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)?Ol(s,function(u){return u.test(n)}):Dl(s,function(u){return u.test(n)}),d;d=i.valueCallback?i.valueCallback(l):l,d=t.valueCallback?t.valueCallback(d):d;var h=e.slice(n.length);return{value:d,rest:h}}}function Dl(i,e){for(var t in i)if(i.hasOwnProperty(t)&&e(i[t]))return t}function Ol(i,e){for(var t=0;t<i.length;t++)if(e(i[t]))return t}function Vl(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 Ml=/^(\d+)(th|st|nd|rd)?/i,zl=/\d+/i,Nl={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},Ll={any:[/^b/i,/^(a|c)/i]},Rl={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Fl={any:[/1/i,/2/i,/3/i,/4/i]},$l={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},Hl={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]},Bl={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},Ul={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}},Wl={ordinalNumber:Vl({matchPattern:Ml,parsePattern:zl,valueCallback:function(e){return parseInt(e,10)}}),era:nt({matchPatterns:Nl,defaultMatchWidth:"wide",parsePatterns:Ll,defaultParseWidth:"any"}),quarter:nt({matchPatterns:Rl,defaultMatchWidth:"wide",parsePatterns:Fl,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:nt({matchPatterns:$l,defaultMatchWidth:"wide",parsePatterns:Hl,defaultParseWidth:"any"}),day:nt({matchPatterns:Bl,defaultMatchWidth:"wide",parsePatterns:Ul,defaultParseWidth:"any"}),dayPeriod:nt({matchPatterns:ql,defaultMatchWidth:"any",parsePatterns:jl,defaultParseWidth:"any"})};const Yl=Wl;var Gl={code:"en-US",formatDistance:pl,formatLong:gl,formatRelative:wl,localize:Al,match:Yl,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Oo=Gl;var Kl=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Xl=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ql=/^'([^]*?)'?$/,Jl=/''/g,Zl=/[a-zA-Z]/;function fa(i,e,t){var r,a,o,n,s,l,d,h,u,p,m,y,z,D;R(2,arguments);var O=String(e),P=Qe(),q=(r=(a=void 0)!==null&&a!==void 0?a:P.locale)!==null&&r!==void 0?r:Oo,j=Z((o=(n=(s=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&s!==void 0?s:P.firstWeekContainsDate)!==null&&n!==void 0?n:(d=P.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(j>=1&&j<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var se=Z((u=(p=(m=(y=void 0)!==null&&y!==void 0?y:void 0)!==null&&m!==void 0?m:P.weekStartsOn)!==null&&p!==void 0?p:(z=P.locale)===null||z===void 0||(D=z.options)===null||D===void 0?void 0:D.weekStartsOn)!==null&&u!==void 0?u:0);if(!(se>=0&&se<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!q.localize)throw new RangeError("locale must contain localize property");if(!q.formatLong)throw new RangeError("locale must contain formatLong property");var be=U(i);if(!Co(be))throw new RangeError("Invalid time value");var tt=So(be),it=ko(be,tt),rt={firstWeekContainsDate:j,weekStartsOn:se,locale:q,_originalDate:be},Ii=O.match(Xl).map(function(G){var ee=G[0];if(ee==="p"||ee==="P"){var Ee=ji[ee];return Ee(G,q.formatLong)}return G}).join("").match(Kl).map(function(G){if(G==="''")return"'";var ee=G[0];if(ee==="'")return ed(G);var Ee=nl[ee];if(Ee)return Do(G)&&Qt(G,e,String(i)),Ao(G)&&Qt(G,e,String(i)),Ee(it,G,q.localize,rt);if(ee.match(Zl))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ee+"`");return G}).join("");return Ii}function ed(i){var e=i.match(Ql);return e?e[1].replace(Jl,"'"):i}function _a(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 td(i,e){if(i){if(typeof i=="string")return _a(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)?_a(i,e):void 0}}function va(i,e){var t=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!t){if(Array.isArray(i)||(t=td(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 id(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 v(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function Wi(i,e){return Wi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},Wi(i,e)}function I(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&&Wi(i,e)}function Jt(i){return Jt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Jt(i)}function Vo(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Vo=function(){return!!i})()}function rd(i,e){if(e&&(ve(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(i)}function T(i){var e=Vo();return function(){var t,r=Jt(i);if(e){var a=Jt(this).constructor;t=Reflect.construct(r,arguments,a)}else t=r.apply(this,arguments);return rd(this,t)}}function x(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function ad(i,e){if(ve(i)!="object"||!i)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e);if(ve(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function Mo(i){var e=ad(i,"string");return ve(e)=="symbol"?e:e+""}function od(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,Mo(r.key),r)}}function C(i,e,t){return e&&od(i.prototype,e),Object.defineProperty(i,"prototype",{writable:!1}),i}function _(i,e,t){return(e=Mo(e))in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}var nd=10,zo=function(){function i(){x(this,i),_(this,"priority",void 0),_(this,"subPriority",0)}return C(i,[{key:"validate",value:function(t,r){return!0}}]),i}(),sd=function(i){I(t,i);var e=T(t);function t(r,a,o,n,s){var l;return x(this,t),l=e.call(this),l.value=r,l.validateValue=a,l.setValue=o,l.priority=n,s&&(l.subPriority=s),l}return C(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}(zo),ld=function(i){I(t,i);var e=T(t);function t(){var r;x(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",nd),_(v(r),"subPriority",-1),r}return C(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}(zo),A=function(){function i(){x(this,i),_(this,"incompatibleTokens",void 0),_(this,"priority",void 0),_(this,"subPriority",void 0)}return C(i,[{key:"run",value:function(t,r,a,o){var n=this.parse(t,r,a,o);return n?{setter:new sd(n.value,this.validate,this.set,this.priority,this.subPriority),rest:n.rest}:null}},{key:"validate",value:function(t,r,a){return!0}}]),i}(),dd=function(i){I(t,i);var e=T(t);function t(){var r;x(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 C(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}(A),hd=6e4,cd=36e5,ud=1e3,$={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}/},he={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 H(i,e){return i&&{value:e(i.value),rest:i.rest}}function L(i,e){var t=e.match(i);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function ce(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*cd+o*hd+n*ud),rest:e.slice(t[0].length)}}function No(i){return L($.anyDigitsSigned,i)}function F(i,e){switch(i){case 1:return L($.singleDigit,e);case 2:return L($.twoDigits,e);case 3:return L($.threeDigits,e);case 4:return L($.fourDigits,e);default:return L(new RegExp("^\\d{1,"+i+"}"),e)}}function Zt(i,e){switch(i){case 1:return L($.singleDigitSigned,e);case 2:return L($.twoDigitsSigned,e);case 3:return L($.threeDigitsSigned,e);case 4:return L($.fourDigitsSigned,e);default:return L(new RegExp("^-?\\d{1,"+i+"}"),e)}}function br(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 Lo(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 Ro(i){return i%400===0||i%4===0&&i%100!==0}var pd=function(i){I(t,i);var e=T(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n){var s=function(d){return{year:d,isTwoDigitYear:o==="yy"}};switch(o){case"y":return H(F(4,a),s);case"yo":return H(n.ordinalNumber(a,{unit:"year"}),s);default:return H(F(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=Lo(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}(A),md=function(i){I(t,i);var e=T(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n){var s=function(d){return{year:d,isTwoDigitYear:o==="YY"}};switch(o){case"Y":return H(F(4,a),s);case"Yo":return H(n.ordinalNumber(a,{unit:"year"}),s);default:return H(F(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=gr(a,s);if(n.isTwoDigitYear){var d=Lo(n.year,l);return a.setUTCFullYear(d,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),De(a,s)}var h=!("era"in o)||o.era===1?n.year:1-n.year;return a.setUTCFullYear(h,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),De(a,s)}}]),t}(A),fd=function(i){I(t,i);var e=T(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o){return Zt(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),We(s)}}]),t}(A),_d=function(i){I(t,i);var e=T(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o){return Zt(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}(A),vd=function(i){I(t,i);var e=T(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n){switch(o){case"Q":case"QQ":return F(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}(A),gd=function(i){I(t,i);var e=T(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n){switch(o){case"q":case"qq":return F(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}(A),bd=function(i){I(t,i);var e=T(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n){var s=function(d){return d-1};switch(o){case"M":return H(L($.month,a),s);case"MM":return H(F(2,a),s);case"Mo":return H(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}(A),yd=function(i){I(t,i);var e=T(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n){var s=function(d){return d-1};switch(o){case"L":return H(L($.month,a),s);case"LL":return H(F(2,a),s);case"Lo":return H(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}(A);function wd(i,e,t){R(2,arguments);var r=U(i),a=Z(e),o=To(r,t)-a;return r.setUTCDate(r.getUTCDate()-o*7),r}var xd=function(i){I(t,i);var e=T(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n){switch(o){case"w":return L($.week,a);case"wo":return n.ordinalNumber(a,{unit:"week"});default:return F(o.length,a)}}},{key:"validate",value:function(a,o){return o>=1&&o<=53}},{key:"set",value:function(a,o,n,s){return De(wd(a,n,s),s)}}]),t}(A);function Cd(i,e){R(2,arguments);var t=U(i),r=Z(e),a=Io(t)-r;return t.setUTCDate(t.getUTCDate()-a*7),t}var kd=function(i){I(t,i);var e=T(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n){switch(o){case"I":return L($.week,a);case"Io":return n.ordinalNumber(a,{unit:"week"});default:return F(o.length,a)}}},{key:"validate",value:function(a,o){return o>=1&&o<=53}},{key:"set",value:function(a,o,n){return We(Cd(a,n))}}]),t}(A),Ed=[31,28,31,30,31,30,31,31,30,31,30,31],Id=[31,29,31,30,31,30,31,31,30,31,30,31],Td=function(i){I(t,i);var e=T(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n){switch(o){case"d":return L($.date,a);case"do":return n.ordinalNumber(a,{unit:"date"});default:return F(o.length,a)}}},{key:"validate",value:function(a,o){var n=a.getUTCFullYear(),s=Ro(n),l=a.getUTCMonth();return s?o>=1&&o<=Id[l]:o>=1&&o<=Ed[l]}},{key:"set",value:function(a,o,n){return a.setUTCDate(n),a.setUTCHours(0,0,0,0),a}}]),t}(A),Pd=function(i){I(t,i);var e=T(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n){switch(o){case"D":case"DD":return L($.dayOfYear,a);case"Do":return n.ordinalNumber(a,{unit:"date"});default:return F(o.length,a)}}},{key:"validate",value:function(a,o){var n=a.getUTCFullYear(),s=Ro(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}(A);function yr(i,e,t){var r,a,o,n,s,l,d,h;R(2,arguments);var u=Qe(),p=Z((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||(h=d.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&r!==void 0?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=U(i),y=Z(e),z=m.getUTCDay(),D=y%7,O=(D+7)%7,P=(O<p?7:0)+y-z;return m.setUTCDate(m.getUTCDate()+P),m}var Sd=function(i){I(t,i);var e=T(t);function t(){var r;x(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 C(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=yr(a,n,s),a.setUTCHours(0,0,0,0),a}}]),t}(A),Ad=function(i){I(t,i);var e=T(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n,s){var l=function(h){var u=Math.floor((h-1)/7)*7;return(h+s.weekStartsOn+6)%7+u};switch(o){case"e":case"ee":return H(F(o.length,a),l);case"eo":return H(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=yr(a,n,s),a.setUTCHours(0,0,0,0),a}}]),t}(A),Dd=function(i){I(t,i);var e=T(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n,s){var l=function(h){var u=Math.floor((h-1)/7)*7;return(h+s.weekStartsOn+6)%7+u};switch(o){case"c":case"cc":return H(F(o.length,a),l);case"co":return H(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=yr(a,n,s),a.setUTCHours(0,0,0,0),a}}]),t}(A);function Od(i,e){R(2,arguments);var t=Z(e);t%7===0&&(t=t-7);var r=1,a=U(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 Vd=function(i){I(t,i);var e=T(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n){var s=function(d){return d===0?7:d};switch(o){case"i":case"ii":return F(o.length,a);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return H(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 H(n.day(a,{width:"narrow",context:"formatting"}),s);case"iiiiii":return H(n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"}),s);case"iiii":default:return H(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=Od(a,n),a.setUTCHours(0,0,0,0),a}}]),t}(A),Md=function(i){I(t,i);var e=T(t);function t(){var r;x(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 C(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(br(n),0,0,0),a}}]),t}(A),zd=function(i){I(t,i);var e=T(t);function t(){var r;x(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 C(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(br(n),0,0,0),a}}]),t}(A),Nd=function(i){I(t,i);var e=T(t);function t(){var r;x(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 C(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(br(n),0,0,0),a}}]),t}(A),Ld=function(i){I(t,i);var e=T(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n){switch(o){case"h":return L($.hour12h,a);case"ho":return n.ordinalNumber(a,{unit:"hour"});default:return F(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}(A),Rd=function(i){I(t,i);var e=T(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n){switch(o){case"H":return L($.hour23h,a);case"Ho":return n.ordinalNumber(a,{unit:"hour"});default:return F(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}(A),Fd=function(i){I(t,i);var e=T(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n){switch(o){case"K":return L($.hour11h,a);case"Ko":return n.ordinalNumber(a,{unit:"hour"});default:return F(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}(A),$d=function(i){I(t,i);var e=T(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n){switch(o){case"k":return L($.hour24h,a);case"ko":return n.ordinalNumber(a,{unit:"hour"});default:return F(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}(A),Hd=function(i){I(t,i);var e=T(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n){switch(o){case"m":return L($.minute,a);case"mo":return n.ordinalNumber(a,{unit:"minute"});default:return F(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}(A),Bd=function(i){I(t,i);var e=T(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n){switch(o){case"s":return L($.second,a);case"so":return n.ordinalNumber(a,{unit:"second"});default:return F(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}(A),Ud=function(i){I(t,i);var e=T(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o){var n=function(l){return Math.floor(l*Math.pow(10,-o.length+3))};return H(F(o.length,a),n)}},{key:"set",value:function(a,o,n){return a.setUTCMilliseconds(n),a}}]),t}(A),qd=function(i){I(t,i);var e=T(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o){switch(o){case"X":return ce(he.basicOptionalMinutes,a);case"XX":return ce(he.basic,a);case"XXXX":return ce(he.basicOptionalSeconds,a);case"XXXXX":return ce(he.extendedOptionalSeconds,a);case"XXX":default:return ce(he.extended,a)}}},{key:"set",value:function(a,o,n){return o.timestampIsSet?a:new Date(a.getTime()-n)}}]),t}(A),jd=function(i){I(t,i);var e=T(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o){switch(o){case"x":return ce(he.basicOptionalMinutes,a);case"xx":return ce(he.basic,a);case"xxxx":return ce(he.basicOptionalSeconds,a);case"xxxxx":return ce(he.extendedOptionalSeconds,a);case"xxx":default:return ce(he.extended,a)}}},{key:"set",value:function(a,o,n){return o.timestampIsSet?a:new Date(a.getTime()-n)}}]),t}(A),Wd=function(i){I(t,i);var e=T(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a){return No(a)}},{key:"set",value:function(a,o,n){return[new Date(n*1e3),{timestampIsSet:!0}]}}]),t}(A),Yd=function(i){I(t,i);var e=T(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a){return No(a)}},{key:"set",value:function(a,o,n){return[new Date(n),{timestampIsSet:!0}]}}]),t}(A),Gd={G:new dd,y:new pd,Y:new md,R:new fd,u:new _d,Q:new vd,q:new gd,M:new bd,L:new yd,w:new xd,I:new kd,d:new Td,D:new Pd,E:new Sd,e:new Ad,c:new Dd,i:new Vd,a:new Md,b:new zd,B:new Nd,h:new Ld,H:new Rd,K:new Fd,k:new $d,m:new Hd,s:new Bd,S:new Ud,X:new qd,x:new jd,t:new Wd,T:new Yd},Kd=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Xd=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Qd=/^'([^]*?)'?$/,Jd=/''/g,Zd=/\S/,eh=/[a-zA-Z]/;function Fe(i,e,t,r){var a,o,n,s,l,d,h,u,p,m,y,z,D,O;R(3,arguments);var P=String(i),q=String(e),j=Qe(),se=(a=(o=void 0)!==null&&o!==void 0?o:j.locale)!==null&&a!==void 0?a:Oo;if(!se.match)throw new RangeError("locale must contain match property");var be=Z((n=(s=(l=(d=void 0)!==null&&d!==void 0?d:void 0)!==null&&l!==void 0?l:j.firstWeekContainsDate)!==null&&s!==void 0?s:(h=j.locale)===null||h===void 0||(u=h.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(be>=1&&be<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var tt=Z((p=(m=(y=(z=void 0)!==null&&z!==void 0?z:void 0)!==null&&y!==void 0?y:j.weekStartsOn)!==null&&m!==void 0?m:(D=j.locale)===null||D===void 0||(O=D.options)===null||O===void 0?void 0:O.weekStartsOn)!==null&&p!==void 0?p:0);if(!(tt>=0&&tt<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(q==="")return P===""?U(t):new Date(NaN);var it={firstWeekContainsDate:be,weekStartsOn:tt,locale:se},rt=[new ld],Ii=q.match(Xd).map(function(W){var N=W[0];if(N in ji){var oe=ji[N];return oe(W,se.formatLong)}return W}).join("").match(Kd),G=[],ee=va(Ii),Ee;try{var $s=function(){var N=Ee.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&Do(N)&&Qt(N,q,i),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Ao(N)&&Qt(N,q,i);var oe=N[0],Ft=Gd[oe];if(Ft){var da=Ft.incompatibleTokens;if(Array.isArray(da)){var ha=G.find(function(ca){return da.includes(ca.token)||ca.token===oe});if(ha)throw new RangeError("The format string mustn't contain `".concat(ha.fullToken,"` and `").concat(N,"` at the same time"))}else if(Ft.incompatibleTokens==="*"&&G.length>0)throw new RangeError("The format string mustn't contain `".concat(N,"` and any other token at the same time"));G.push({token:oe,fullToken:N});var Pi=Ft.run(P,N,se.match,it);if(!Pi)return{v:new Date(NaN)};rt.push(Pi.setter),P=Pi.rest}else{if(oe.match(eh))throw new RangeError("Format string contains an unescaped latin alphabet character `"+oe+"`");if(N==="''"?N="'":oe==="'"&&(N=th(N)),P.indexOf(N)===0)P=P.slice(N.length);else return{v:new Date(NaN)}}};for(ee.s();!(Ee=ee.n()).done;){var oa=$s();if(ve(oa)==="object")return oa.v}}catch(W){ee.e(W)}finally{ee.f()}if(P.length>0&&Zd.test(P))return new Date(NaN);var Hs=rt.map(function(W){return W.priority}).sort(function(W,N){return N-W}).filter(function(W,N,oe){return oe.indexOf(W)===N}).map(function(W){return rt.filter(function(N){return N.priority===W}).sort(function(N,oe){return oe.subPriority-N.subPriority})}).map(function(W){return W[0]}),Ti=U(t);if(isNaN(Ti.getTime()))return new Date(NaN);var at=ko(Ti,So(Ti)),na={},Lt=va(Hs),sa;try{for(Lt.s();!(sa=Lt.n()).done;){var la=sa.value;if(!la.validate(at,it))return new Date(NaN);var Rt=la.set(at,na,it);Array.isArray(Rt)?(at=Rt[0],id(na,Rt[1])):at=Rt}}catch(W){Lt.e(W)}finally{Lt.f()}return at}function th(i){return i.match(Qd)[1].replace(Jd,"'")}function ga(i,e){R(2,arguments);var t=U(i),r=U(e);return t.getTime()>r.getTime()}function ba(i,e){R(2,arguments);var t=U(i),r=U(e);return t.getTime()<r.getTime()}function ya(i,e,t){return R(2,arguments),Co(Fe(i,e,new Date,t))}const ih='*,*::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__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}',rh=ih,Fo=class{constructor(i){c.registerInstance(this,i),this.sendValidityState=c.createEvent(this,"sendValidityState"),this.sendInputValue=c.createEvent(this,"sendInputValue"),this.touched=!1,this.formatDate=e=>{const{year:t,month:r,day:a}=e,o=new Date(t,r,a);return fa(o,this.dateFormat)},this.parseDate=e=>{const t=Fe(e,this.dateFormat,new Date);return{year:t.getFullYear(),month:t.getMonth(),day:t.getDate()}},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}get formattedValue(){if(!this.value)return"";const i=Fe(this.value,"yyyy-MM-dd",new Date);return fa(i,this.dateFormat)}handleStylingChange(i,e){i!==e&&this.setClientStyling()}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,e;this.minDate=Fe(((i=this.validation.min)===null||i===void 0?void 0:i.toString())||"","yyyy-MM-dd",new Date),this.maxDate=Fe(((e=this.validation.max)===null||e===void 0?void 0:e.toString())||"","yyyy-MM-dd",new Date)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){if(this.datePicker=this.element.shadowRoot.querySelector("vaadin-date-picker"),this.inputReference=this.element.shadowRoot.querySelector("input"),this.datePicker){const i=this.datePicker.shadowRoot.querySelector('[part="toggle-button"]');i&&i.addEventListener("click",()=>this.handleCalendarIconClick()),this.datePicker.addEventListener("opened-changed",e=>{e.detail.value===!0?this.errorMessage="":(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0)})}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()}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=Fe(this.value||"","yyyy-MM-dd",new Date),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return ba(this.valueAsDate,this.minDate)||ga(this.valueAsDate,this.maxDate)||!ya(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(ba(this.valueAsDate,this.minDate)||ga(this.valueAsDate,this.maxDate))return b("dateError2",this.language);if(!ya(this.formattedValue,this.dateFormat))return b("dateFormatError",this.language)}renderTooltip(){return this.showTooltip?c.h("div",{class:`date__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"),c.h("div",{key:"d9757eb7eea257167da12612f51f6665d6ac058e",class:`date__wrapper ${this.autofilled?"date__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},c.h("label",{key:"8339c9f27e74f2e1a98d11efea7eb05a9681e83e",class:`date__label ${this.validation.mandatory?"date__label--required":""}}`,htmlFor:`${this.name}__input`},this.displayName," ",this.validation.mandatory?"*":""),c.h("vaadin-date-picker",{key:"513692d0858a9f409e02bd515700e3e9e0eaa1fb",id:`${this.name}__input`,type:"date",class:`date__input ${i}`,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)}),c.h("small",{key:"19be9854df1adc1c6581e00a3593bcf16d7e2146",class:"date__error-message"},this.errorMessage),this.tooltip&&c.h("img",{key:"f38abc61046c33c56a9efc3907dbd184b8e8352e",class:"date__tooltip-icon",src:ne,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}get element(){return c.getElement(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Fo.style=rh;const ah='*,*::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}',oh=ah,$o=class{constructor(i){c.registerInstance(this,i),this.sendValidityState=c.createEvent(this,"sendValidityState"),this.sendInputValue=c.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.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(i,e){i!==e&&this.setClientStyling()}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()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){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?c.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"),c.h("div",{key:"45255f597fcc76fa5e99601d7c2dd59afca32dbe",class:`email__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},c.h("div",{key:"7e41609760d4cc0b5acb554749fce42e6bc88ef3",class:"email__wrapper--flex"},c.h("label",{key:"250a1656d714e8cbc943d153aa216a6322322534",class:`email__label ${this.validation.mandatory?"email__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),c.h("div",{key:"80db5747730aaac2c1d0efa3129dfa5463fe779c",class:"email__wrapper--relative"},this.tooltip&&c.h("img",{key:"f10990c70bb3de310d137fa120575ad3582adbd3",class:"email__tooltip-icon",src:ne,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),c.h("input",{key:"9cf1a9fc4fdc3cb2604c6ad21573091cc1b173aa",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}),c.h("small",{key:"1610834f1705f70bd1f2d4b0a6c37af3307cf77f",class:"email__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};$o.style=oh;var nh=Object.defineProperty,sh=Object.defineProperties,lh=Object.getOwnPropertyDescriptors,wa=Object.getOwnPropertySymbols,dh=Object.prototype.hasOwnProperty,hh=Object.prototype.propertyIsEnumerable,Yi=(i,e,t)=>e in i?nh(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ei=(i,e)=>{for(var t in e||(e={}))dh.call(e,t)&&Yi(i,t,e[t]);if(wa)for(var t of wa(e))hh.call(e,t)&&Yi(i,t,e[t]);return i},Ho=(i,e)=>sh(i,lh(e)),X=(i,e,t)=>(Yi(i,typeof e!="symbol"?e+"":e,t),t),ti=(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";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../lazy/pam-change-password-DsFtabLf.cjs"),Bs=require("./pam-change-password-0ebf482d-3Xwu8zhp.cjs"),Us="en",yo={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}",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..."},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",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"},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}",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"},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",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"},"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}",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"},"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}",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"}},b=(i,e,t)=>{const r=e;let a=yo[r!==void 0?r:Us][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},qs=i=>new Promise(e=>{fetch(i).then(t=>t.json()).then(t=>{Object.keys(t).forEach(r=>{for(let a in t[r])yo[r][a]=t[r][a]}),e(!0)})}),ne="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}',Ws=js,wo=class{constructor(i){c.registerInstance(this,i),this.sendValidityState=c.createEvent(this,"sendValidityState"),this.sendInputValue=c.createEvent(this,"sendInputValue"),this.value=null,this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.selectedValues=[],this.showCheckboxes=!1}handleStylingChange(i,e){i!==e&&this.setClientStyling()}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)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){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?c.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 c.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},c.h("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}render(){return c.h("div",{key:"9985f4050655bc2233090f63abb0e22f2fe0b556",class:`checkboxgroup__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},c.h("div",{key:"9922e45ae7ee74b137ffc8552b3d714b7e3b1f59",class:"checkboxgroup__wrapper--flex"},c.h("vaadin-checkbox",{key:"f18bae7c3ee6df76edcde75924eb1ad51a227443",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&&c.h("img",{key:"3dc2ce07e4d5f8de7ed4707b5e140fb4752ca86b",class:"checkboxgroup__tooltip-icon",src:ne,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),c.h("small",{key:"d55f25f75aa20007ff58cf45b6632517f49b6c00",class:"checkboxgroup__error-message"},this.errorMessage),this.showCheckboxes&&c.h("vaadin-checkbox-group",{key:"210c3cc2868a07a403494e04336c4f3091eea0e4",theme:"vertical",value:this.selectedValues,"on-value-changed":i=>{this.selectedValues=i.detail.value}},this.options.map(i=>c.h("vaadin-checkbox",{class:"checkbox__input",name:i.name,value:i.name,label:i.displayName}))))}get element(){return c.getElement(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}}};wo.style=Ws;const Ys='*,*::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{content:"*"}.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}',Gs=Ys,xo=class{constructor(i){c.registerInstance(this,i),this.sendValidityState=c.createEvent(this,"sendValidityState"),this.sendInputValue=c.createEvent(this,"sendInputValue"),this.value="",this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(i,e){i!==e&&this.setClientStyling()}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)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){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(){return c.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},c.h("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?c.h("div",{class:`checkbox__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return c.h("div",{key:"6d4c24ff269eb9378cdbb8fbeae034018d86b42e",class:`checkbox__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},c.h("vaadin-checkbox",{key:"9ac77865bf2de32e4d880cd2707976acb8d820dd",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&&c.h("img",{key:"86e2ed5404864abb1704e8748bed15ea7071797a",class:"checkboxgroup__tooltip-icon",src:ne,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};xo.style=Gs;function ve(i){"@babel/helpers - typeof";return ve=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},ve(i)}function R(i,e){if(e.length<i)throw new TypeError(i+" argument"+(i>1?"s":"")+" required, but only "+e.length+" present")}function Ks(i){return R(1,arguments),i instanceof Date||ve(i)==="object"&&Object.prototype.toString.call(i)==="[object Date]"}function U(i){R(1,arguments);var e=Object.prototype.toString.call(i);return i instanceof Date||ve(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 Co(i){if(R(1,arguments),!Ks(i)&&typeof i!="number")return!1;var e=U(i);return!isNaN(Number(e))}function Z(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 Xs(i,e){R(2,arguments);var t=U(i).getTime(),r=Z(e);return new Date(t+r)}function ko(i,e){R(2,arguments);var t=Z(e);return Xs(i,-t)}var Qs=864e5;function Js(i){R(1,arguments);var e=U(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/Qs)+1}function We(i){R(1,arguments);var e=1,t=U(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 Eo(i){R(1,arguments);var e=U(i),t=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var a=We(r),o=new Date(0);o.setUTCFullYear(t,0,4),o.setUTCHours(0,0,0,0);var n=We(o);return e.getTime()>=a.getTime()?t+1:e.getTime()>=n.getTime()?t:t-1}function Zs(i){R(1,arguments);var e=Eo(i),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=We(t);return r}var el=6048e5;function Io(i){R(1,arguments);var e=U(i),t=We(e).getTime()-Zs(e).getTime();return Math.round(t/el)+1}var tl={};function Qe(){return tl}function De(i,e){var t,r,a,o,n,s,l,d;R(1,arguments);var h=Qe(),u=Z((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:h.weekStartsOn)!==null&&r!==void 0?r:(l=h.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 p=U(i),m=p.getUTCDay(),y=(m<u?7:0)+m-u;return p.setUTCDate(p.getUTCDate()-y),p.setUTCHours(0,0,0,0),p}function gr(i,e){var t,r,a,o,n,s,l,d;R(1,arguments);var h=U(i),u=h.getUTCFullYear(),p=Qe(),m=Z((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:p.firstWeekContainsDate)!==null&&r!==void 0?r:(l=p.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(u+1,0,m),y.setUTCHours(0,0,0,0);var z=De(y,e),D=new Date(0);D.setUTCFullYear(u,0,m),D.setUTCHours(0,0,0,0);var O=De(D,e);return h.getTime()>=z.getTime()?u+1:h.getTime()>=O.getTime()?u:u-1}function il(i,e){var t,r,a,o,n,s,l,d;R(1,arguments);var h=Qe(),u=Z((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:h.firstWeekContainsDate)!==null&&r!==void 0?r:(l=h.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),p=gr(i,e),m=new Date(0);m.setUTCFullYear(p,0,u),m.setUTCHours(0,0,0,0);var y=De(m,e);return y}var rl=6048e5;function So(i,e){R(1,arguments);var t=U(i),r=De(t,e).getTime()-il(t,e).getTime();return Math.round(r/rl)+1}function V(i,e){for(var t=i<0?"-":"",r=Math.abs(i).toString();r.length<e;)r="0"+r;return t+r}var al={y:function(e,t){var r=e.getUTCFullYear(),a=r>0?r:1-r;return V(t==="yy"?a%100:a,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):V(r+1,2)},d:function(e,t){return V(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 V(e.getUTCHours()%12||12,t.length)},H:function(e,t){return V(e.getUTCHours(),t.length)},m:function(e,t){return V(e.getUTCMinutes(),t.length)},s:function(e,t){return V(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 V(o,t.length)}};const ye=al;var Le={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ol={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 ye.y(e,t)},Y:function(e,t,r,a){var o=gr(e,a),n=o>0?o:1-o;if(t==="YY"){var s=n%100;return V(s,2)}return t==="Yo"?r.ordinalNumber(n,{unit:"year"}):V(n,t.length)},R:function(e,t){var r=Eo(e);return V(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return V(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 V(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 V(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 ye.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 V(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=So(e,a);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):V(o,t.length)},I:function(e,t,r){var a=Io(e);return t==="Io"?r.ordinalNumber(a,{unit:"week"}):V(a,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):ye.d(e,t)},D:function(e,t,r){var a=Js(e);return t==="Do"?r.ordinalNumber(a,{unit:"dayOfYear"}):V(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 V(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 V(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 V(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=Le.noon:a===0?o=Le.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=Le.evening:a>=12?o=Le.afternoon:a>=4?o=Le.morning:o=Le.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 ye.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):ye.H(e,t)},K:function(e,t,r){var a=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(a,{unit:"hour"}):V(a,t.length)},k:function(e,t,r){var a=e.getUTCHours();return a===0&&(a=24),t==="ko"?r.ordinalNumber(a,{unit:"hour"}):V(a,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):ye.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):ye.s(e,t)},S:function(e,t){return ye.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 pa(n);case"XXXX":case"XX":return Se(n);case"XXXXX":case"XXX":default:return Se(n,":")}},x:function(e,t,r,a){var o=a._originalDate||e,n=o.getTimezoneOffset();switch(t){case"x":return pa(n);case"xxxx":case"xx":return Se(n);case"xxxxx":case"xxx":default:return Se(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"+ua(n,":");case"OOOO":default:return"GMT"+Se(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"+ua(n,":");case"zzzz":default:return"GMT"+Se(n,":")}},t:function(e,t,r,a){var o=a._originalDate||e,n=Math.floor(o.getTime()/1e3);return V(n,t.length)},T:function(e,t,r,a){var o=a._originalDate||e,n=o.getTime();return V(n,t.length)}};function ua(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+V(o,2)}function pa(i,e){if(i%60===0){var t=i>0?"-":"+";return t+V(Math.abs(i)/60,2)}return Se(i,e)}function Se(i,e){var t=e||"",r=i>0?"-":"+",a=Math.abs(i),o=V(Math.floor(a/60),2),n=V(a%60,2);return r+o+t+n}const nl=ol;var ma=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"})}},To=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"})}},sl=function(e,t){var r=e.match(/(P+)(p+)?/)||[],a=r[1],o=r[2];if(!o)return ma(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}}",ma(a,t)).replace("{{time}}",To(o,t))},ll={p:To,P:sl};const ji=ll;function Po(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 dl=["D","DD"],hl=["YY","YYYY"];function Ao(i){return dl.indexOf(i)!==-1}function Do(i){return hl.indexOf(i)!==-1}function Qt(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 cl={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"}},ul=function(e,t,r){var a,o=cl[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 pl=ul;function Pi(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 ml={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},fl={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},_l={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},vl={date:Pi({formats:ml,defaultWidth:"full"}),time:Pi({formats:fl,defaultWidth:"full"}),dateTime:Pi({formats:_l,defaultWidth:"full"})};const gl=vl;var bl={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},yl=function(e,t,r,a){return bl[e]};const wl=yl;function ot(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 xl={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Cl={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},kl={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"]},El={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"]},Il={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"}},Sl={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"}},Tl=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"},Pl={ordinalNumber:Tl,era:ot({values:xl,defaultWidth:"wide"}),quarter:ot({values:Cl,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ot({values:kl,defaultWidth:"wide"}),day:ot({values:El,defaultWidth:"wide"}),dayPeriod:ot({values:Il,defaultWidth:"wide",formattingValues:Sl,defaultFormattingWidth:"wide"})};const Al=Pl;function nt(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)?Ol(s,function(u){return u.test(n)}):Dl(s,function(u){return u.test(n)}),d;d=i.valueCallback?i.valueCallback(l):l,d=t.valueCallback?t.valueCallback(d):d;var h=e.slice(n.length);return{value:d,rest:h}}}function Dl(i,e){for(var t in i)if(i.hasOwnProperty(t)&&e(i[t]))return t}function Ol(i,e){for(var t=0;t<i.length;t++)if(e(i[t]))return t}function Vl(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 Ml=/^(\d+)(th|st|nd|rd)?/i,zl=/\d+/i,Nl={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},Ll={any:[/^b/i,/^(a|c)/i]},Rl={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Fl={any:[/1/i,/2/i,/3/i,/4/i]},$l={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},Hl={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]},Bl={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},Ul={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}},Wl={ordinalNumber:Vl({matchPattern:Ml,parsePattern:zl,valueCallback:function(e){return parseInt(e,10)}}),era:nt({matchPatterns:Nl,defaultMatchWidth:"wide",parsePatterns:Ll,defaultParseWidth:"any"}),quarter:nt({matchPatterns:Rl,defaultMatchWidth:"wide",parsePatterns:Fl,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:nt({matchPatterns:$l,defaultMatchWidth:"wide",parsePatterns:Hl,defaultParseWidth:"any"}),day:nt({matchPatterns:Bl,defaultMatchWidth:"wide",parsePatterns:Ul,defaultParseWidth:"any"}),dayPeriod:nt({matchPatterns:ql,defaultMatchWidth:"any",parsePatterns:jl,defaultParseWidth:"any"})};const Yl=Wl;var Gl={code:"en-US",formatDistance:pl,formatLong:gl,formatRelative:wl,localize:Al,match:Yl,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Oo=Gl;var Kl=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Xl=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ql=/^'([^]*?)'?$/,Jl=/''/g,Zl=/[a-zA-Z]/;function fa(i,e,t){var r,a,o,n,s,l,d,h,u,p,m,y,z,D;R(2,arguments);var O=String(e),T=Qe(),q=(r=(a=void 0)!==null&&a!==void 0?a:T.locale)!==null&&r!==void 0?r:Oo,j=Z((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||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(j>=1&&j<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var se=Z((u=(p=(m=(y=void 0)!==null&&y!==void 0?y:void 0)!==null&&m!==void 0?m:T.weekStartsOn)!==null&&p!==void 0?p:(z=T.locale)===null||z===void 0||(D=z.options)===null||D===void 0?void 0:D.weekStartsOn)!==null&&u!==void 0?u:0);if(!(se>=0&&se<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!q.localize)throw new RangeError("locale must contain localize property");if(!q.formatLong)throw new RangeError("locale must contain formatLong property");var be=U(i);if(!Co(be))throw new RangeError("Invalid time value");var tt=Po(be),it=ko(be,tt),rt={firstWeekContainsDate:j,weekStartsOn:se,locale:q,_originalDate:be},Ii=O.match(Xl).map(function(G){var ee=G[0];if(ee==="p"||ee==="P"){var Ee=ji[ee];return Ee(G,q.formatLong)}return G}).join("").match(Kl).map(function(G){if(G==="''")return"'";var ee=G[0];if(ee==="'")return ed(G);var Ee=nl[ee];if(Ee)return Do(G)&&Qt(G,e,String(i)),Ao(G)&&Qt(G,e,String(i)),Ee(it,G,q.localize,rt);if(ee.match(Zl))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ee+"`");return G}).join("");return Ii}function ed(i){var e=i.match(Ql);return e?e[1].replace(Jl,"'"):i}function _a(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 td(i,e){if(i){if(typeof i=="string")return _a(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)?_a(i,e):void 0}}function va(i,e){var t=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!t){if(Array.isArray(i)||(t=td(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 id(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 v(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function Wi(i,e){return Wi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},Wi(i,e)}function I(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&&Wi(i,e)}function Jt(i){return Jt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Jt(i)}function Vo(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Vo=function(){return!!i})()}function rd(i,e){if(e&&(ve(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(i)}function S(i){var e=Vo();return function(){var t,r=Jt(i);if(e){var a=Jt(this).constructor;t=Reflect.construct(r,arguments,a)}else t=r.apply(this,arguments);return rd(this,t)}}function x(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function ad(i,e){if(ve(i)!="object"||!i)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e);if(ve(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function Mo(i){var e=ad(i,"string");return ve(e)=="symbol"?e:e+""}function od(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,Mo(r.key),r)}}function C(i,e,t){return e&&od(i.prototype,e),Object.defineProperty(i,"prototype",{writable:!1}),i}function _(i,e,t){return(e=Mo(e))in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}var nd=10,zo=function(){function i(){x(this,i),_(this,"priority",void 0),_(this,"subPriority",0)}return C(i,[{key:"validate",value:function(t,r){return!0}}]),i}(),sd=function(i){I(t,i);var e=S(t);function t(r,a,o,n,s){var l;return x(this,t),l=e.call(this),l.value=r,l.validateValue=a,l.setValue=o,l.priority=n,s&&(l.subPriority=s),l}return C(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}(zo),ld=function(i){I(t,i);var e=S(t);function t(){var r;x(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",nd),_(v(r),"subPriority",-1),r}return C(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}(zo),A=function(){function i(){x(this,i),_(this,"incompatibleTokens",void 0),_(this,"priority",void 0),_(this,"subPriority",void 0)}return C(i,[{key:"run",value:function(t,r,a,o){var n=this.parse(t,r,a,o);return n?{setter:new sd(n.value,this.validate,this.set,this.priority,this.subPriority),rest:n.rest}:null}},{key:"validate",value:function(t,r,a){return!0}}]),i}(),dd=function(i){I(t,i);var e=S(t);function t(){var r;x(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 C(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}(A),hd=6e4,cd=36e5,ud=1e3,$={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}/},he={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 H(i,e){return i&&{value:e(i.value),rest:i.rest}}function L(i,e){var t=e.match(i);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function ce(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*cd+o*hd+n*ud),rest:e.slice(t[0].length)}}function No(i){return L($.anyDigitsSigned,i)}function F(i,e){switch(i){case 1:return L($.singleDigit,e);case 2:return L($.twoDigits,e);case 3:return L($.threeDigits,e);case 4:return L($.fourDigits,e);default:return L(new RegExp("^\\d{1,"+i+"}"),e)}}function Zt(i,e){switch(i){case 1:return L($.singleDigitSigned,e);case 2:return L($.twoDigitsSigned,e);case 3:return L($.threeDigitsSigned,e);case 4:return L($.fourDigitsSigned,e);default:return L(new RegExp("^-?\\d{1,"+i+"}"),e)}}function br(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 Lo(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 Ro(i){return i%400===0||i%4===0&&i%100!==0}var pd=function(i){I(t,i);var e=S(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n){var s=function(d){return{year:d,isTwoDigitYear:o==="yy"}};switch(o){case"y":return H(F(4,a),s);case"yo":return H(n.ordinalNumber(a,{unit:"year"}),s);default:return H(F(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=Lo(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}(A),md=function(i){I(t,i);var e=S(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n){var s=function(d){return{year:d,isTwoDigitYear:o==="YY"}};switch(o){case"Y":return H(F(4,a),s);case"Yo":return H(n.ordinalNumber(a,{unit:"year"}),s);default:return H(F(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=gr(a,s);if(n.isTwoDigitYear){var d=Lo(n.year,l);return a.setUTCFullYear(d,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),De(a,s)}var h=!("era"in o)||o.era===1?n.year:1-n.year;return a.setUTCFullYear(h,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),De(a,s)}}]),t}(A),fd=function(i){I(t,i);var e=S(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o){return Zt(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),We(s)}}]),t}(A),_d=function(i){I(t,i);var e=S(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o){return Zt(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}(A),vd=function(i){I(t,i);var e=S(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n){switch(o){case"Q":case"QQ":return F(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}(A),gd=function(i){I(t,i);var e=S(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n){switch(o){case"q":case"qq":return F(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}(A),bd=function(i){I(t,i);var e=S(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n){var s=function(d){return d-1};switch(o){case"M":return H(L($.month,a),s);case"MM":return H(F(2,a),s);case"Mo":return H(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}(A),yd=function(i){I(t,i);var e=S(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n){var s=function(d){return d-1};switch(o){case"L":return H(L($.month,a),s);case"LL":return H(F(2,a),s);case"Lo":return H(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}(A);function wd(i,e,t){R(2,arguments);var r=U(i),a=Z(e),o=So(r,t)-a;return r.setUTCDate(r.getUTCDate()-o*7),r}var xd=function(i){I(t,i);var e=S(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n){switch(o){case"w":return L($.week,a);case"wo":return n.ordinalNumber(a,{unit:"week"});default:return F(o.length,a)}}},{key:"validate",value:function(a,o){return o>=1&&o<=53}},{key:"set",value:function(a,o,n,s){return De(wd(a,n,s),s)}}]),t}(A);function Cd(i,e){R(2,arguments);var t=U(i),r=Z(e),a=Io(t)-r;return t.setUTCDate(t.getUTCDate()-a*7),t}var kd=function(i){I(t,i);var e=S(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n){switch(o){case"I":return L($.week,a);case"Io":return n.ordinalNumber(a,{unit:"week"});default:return F(o.length,a)}}},{key:"validate",value:function(a,o){return o>=1&&o<=53}},{key:"set",value:function(a,o,n){return We(Cd(a,n))}}]),t}(A),Ed=[31,28,31,30,31,30,31,31,30,31,30,31],Id=[31,29,31,30,31,30,31,31,30,31,30,31],Sd=function(i){I(t,i);var e=S(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n){switch(o){case"d":return L($.date,a);case"do":return n.ordinalNumber(a,{unit:"date"});default:return F(o.length,a)}}},{key:"validate",value:function(a,o){var n=a.getUTCFullYear(),s=Ro(n),l=a.getUTCMonth();return s?o>=1&&o<=Id[l]:o>=1&&o<=Ed[l]}},{key:"set",value:function(a,o,n){return a.setUTCDate(n),a.setUTCHours(0,0,0,0),a}}]),t}(A),Td=function(i){I(t,i);var e=S(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n){switch(o){case"D":case"DD":return L($.dayOfYear,a);case"Do":return n.ordinalNumber(a,{unit:"date"});default:return F(o.length,a)}}},{key:"validate",value:function(a,o){var n=a.getUTCFullYear(),s=Ro(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}(A);function yr(i,e,t){var r,a,o,n,s,l,d,h;R(2,arguments);var u=Qe(),p=Z((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||(h=d.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&r!==void 0?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=U(i),y=Z(e),z=m.getUTCDay(),D=y%7,O=(D+7)%7,T=(O<p?7:0)+y-z;return m.setUTCDate(m.getUTCDate()+T),m}var Pd=function(i){I(t,i);var e=S(t);function t(){var r;x(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 C(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=yr(a,n,s),a.setUTCHours(0,0,0,0),a}}]),t}(A),Ad=function(i){I(t,i);var e=S(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n,s){var l=function(h){var u=Math.floor((h-1)/7)*7;return(h+s.weekStartsOn+6)%7+u};switch(o){case"e":case"ee":return H(F(o.length,a),l);case"eo":return H(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=yr(a,n,s),a.setUTCHours(0,0,0,0),a}}]),t}(A),Dd=function(i){I(t,i);var e=S(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n,s){var l=function(h){var u=Math.floor((h-1)/7)*7;return(h+s.weekStartsOn+6)%7+u};switch(o){case"c":case"cc":return H(F(o.length,a),l);case"co":return H(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=yr(a,n,s),a.setUTCHours(0,0,0,0),a}}]),t}(A);function Od(i,e){R(2,arguments);var t=Z(e);t%7===0&&(t=t-7);var r=1,a=U(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 Vd=function(i){I(t,i);var e=S(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n){var s=function(d){return d===0?7:d};switch(o){case"i":case"ii":return F(o.length,a);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return H(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 H(n.day(a,{width:"narrow",context:"formatting"}),s);case"iiiiii":return H(n.day(a,{width:"short",context:"formatting"})||n.day(a,{width:"narrow",context:"formatting"}),s);case"iiii":default:return H(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=Od(a,n),a.setUTCHours(0,0,0,0),a}}]),t}(A),Md=function(i){I(t,i);var e=S(t);function t(){var r;x(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 C(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(br(n),0,0,0),a}}]),t}(A),zd=function(i){I(t,i);var e=S(t);function t(){var r;x(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 C(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(br(n),0,0,0),a}}]),t}(A),Nd=function(i){I(t,i);var e=S(t);function t(){var r;x(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 C(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(br(n),0,0,0),a}}]),t}(A),Ld=function(i){I(t,i);var e=S(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n){switch(o){case"h":return L($.hour12h,a);case"ho":return n.ordinalNumber(a,{unit:"hour"});default:return F(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}(A),Rd=function(i){I(t,i);var e=S(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n){switch(o){case"H":return L($.hour23h,a);case"Ho":return n.ordinalNumber(a,{unit:"hour"});default:return F(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}(A),Fd=function(i){I(t,i);var e=S(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n){switch(o){case"K":return L($.hour11h,a);case"Ko":return n.ordinalNumber(a,{unit:"hour"});default:return F(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}(A),$d=function(i){I(t,i);var e=S(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n){switch(o){case"k":return L($.hour24h,a);case"ko":return n.ordinalNumber(a,{unit:"hour"});default:return F(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}(A),Hd=function(i){I(t,i);var e=S(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n){switch(o){case"m":return L($.minute,a);case"mo":return n.ordinalNumber(a,{unit:"minute"});default:return F(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}(A),Bd=function(i){I(t,i);var e=S(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o,n){switch(o){case"s":return L($.second,a);case"so":return n.ordinalNumber(a,{unit:"second"});default:return F(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}(A),Ud=function(i){I(t,i);var e=S(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o){var n=function(l){return Math.floor(l*Math.pow(10,-o.length+3))};return H(F(o.length,a),n)}},{key:"set",value:function(a,o,n){return a.setUTCMilliseconds(n),a}}]),t}(A),qd=function(i){I(t,i);var e=S(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o){switch(o){case"X":return ce(he.basicOptionalMinutes,a);case"XX":return ce(he.basic,a);case"XXXX":return ce(he.basicOptionalSeconds,a);case"XXXXX":return ce(he.extendedOptionalSeconds,a);case"XXX":default:return ce(he.extended,a)}}},{key:"set",value:function(a,o,n){return o.timestampIsSet?a:new Date(a.getTime()-n)}}]),t}(A),jd=function(i){I(t,i);var e=S(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a,o){switch(o){case"x":return ce(he.basicOptionalMinutes,a);case"xx":return ce(he.basic,a);case"xxxx":return ce(he.basicOptionalSeconds,a);case"xxxxx":return ce(he.extendedOptionalSeconds,a);case"xxx":default:return ce(he.extended,a)}}},{key:"set",value:function(a,o,n){return o.timestampIsSet?a:new Date(a.getTime()-n)}}]),t}(A),Wd=function(i){I(t,i);var e=S(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a){return No(a)}},{key:"set",value:function(a,o,n){return[new Date(n*1e3),{timestampIsSet:!0}]}}]),t}(A),Yd=function(i){I(t,i);var e=S(t);function t(){var r;x(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 C(t,[{key:"parse",value:function(a){return No(a)}},{key:"set",value:function(a,o,n){return[new Date(n),{timestampIsSet:!0}]}}]),t}(A),Gd={G:new dd,y:new pd,Y:new md,R:new fd,u:new _d,Q:new vd,q:new gd,M:new bd,L:new yd,w:new xd,I:new kd,d:new Sd,D:new Td,E:new Pd,e:new Ad,c:new Dd,i:new Vd,a:new Md,b:new zd,B:new Nd,h:new Ld,H:new Rd,K:new Fd,k:new $d,m:new Hd,s:new Bd,S:new Ud,X:new qd,x:new jd,t:new Wd,T:new Yd},Kd=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Xd=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Qd=/^'([^]*?)'?$/,Jd=/''/g,Zd=/\S/,eh=/[a-zA-Z]/;function Fe(i,e,t,r){var a,o,n,s,l,d,h,u,p,m,y,z,D,O;R(3,arguments);var T=String(i),q=String(e),j=Qe(),se=(a=(o=void 0)!==null&&o!==void 0?o:j.locale)!==null&&a!==void 0?a:Oo;if(!se.match)throw new RangeError("locale must contain match property");var be=Z((n=(s=(l=(d=void 0)!==null&&d!==void 0?d:void 0)!==null&&l!==void 0?l:j.firstWeekContainsDate)!==null&&s!==void 0?s:(h=j.locale)===null||h===void 0||(u=h.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(be>=1&&be<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var tt=Z((p=(m=(y=(z=void 0)!==null&&z!==void 0?z:void 0)!==null&&y!==void 0?y:j.weekStartsOn)!==null&&m!==void 0?m:(D=j.locale)===null||D===void 0||(O=D.options)===null||O===void 0?void 0:O.weekStartsOn)!==null&&p!==void 0?p:0);if(!(tt>=0&&tt<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(q==="")return T===""?U(t):new Date(NaN);var it={firstWeekContainsDate:be,weekStartsOn:tt,locale:se},rt=[new ld],Ii=q.match(Xd).map(function(W){var N=W[0];if(N in ji){var oe=ji[N];return oe(W,se.formatLong)}return W}).join("").match(Kd),G=[],ee=va(Ii),Ee;try{var $s=function(){var N=Ee.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&Do(N)&&Qt(N,q,i),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Ao(N)&&Qt(N,q,i);var oe=N[0],Ft=Gd[oe];if(Ft){var da=Ft.incompatibleTokens;if(Array.isArray(da)){var ha=G.find(function(ca){return da.includes(ca.token)||ca.token===oe});if(ha)throw new RangeError("The format string mustn't contain `".concat(ha.fullToken,"` and `").concat(N,"` at the same time"))}else if(Ft.incompatibleTokens==="*"&&G.length>0)throw new RangeError("The format string mustn't contain `".concat(N,"` and any other token at the same time"));G.push({token:oe,fullToken:N});var Ti=Ft.run(T,N,se.match,it);if(!Ti)return{v:new Date(NaN)};rt.push(Ti.setter),T=Ti.rest}else{if(oe.match(eh))throw new RangeError("Format string contains an unescaped latin alphabet character `"+oe+"`");if(N==="''"?N="'":oe==="'"&&(N=th(N)),T.indexOf(N)===0)T=T.slice(N.length);else return{v:new Date(NaN)}}};for(ee.s();!(Ee=ee.n()).done;){var oa=$s();if(ve(oa)==="object")return oa.v}}catch(W){ee.e(W)}finally{ee.f()}if(T.length>0&&Zd.test(T))return new Date(NaN);var Hs=rt.map(function(W){return W.priority}).sort(function(W,N){return N-W}).filter(function(W,N,oe){return oe.indexOf(W)===N}).map(function(W){return rt.filter(function(N){return N.priority===W}).sort(function(N,oe){return oe.subPriority-N.subPriority})}).map(function(W){return W[0]}),Si=U(t);if(isNaN(Si.getTime()))return new Date(NaN);var at=ko(Si,Po(Si)),na={},Lt=va(Hs),sa;try{for(Lt.s();!(sa=Lt.n()).done;){var la=sa.value;if(!la.validate(at,it))return new Date(NaN);var Rt=la.set(at,na,it);Array.isArray(Rt)?(at=Rt[0],id(na,Rt[1])):at=Rt}}catch(W){Lt.e(W)}finally{Lt.f()}return at}function th(i){return i.match(Qd)[1].replace(Jd,"'")}function ga(i,e){R(2,arguments);var t=U(i),r=U(e);return t.getTime()>r.getTime()}function ba(i,e){R(2,arguments);var t=U(i),r=U(e);return t.getTime()<r.getTime()}function ya(i,e,t){return R(2,arguments),Co(Fe(i,e,new Date,t))}const ih='*,*::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__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}',rh=ih,Fo=class{constructor(i){c.registerInstance(this,i),this.sendValidityState=c.createEvent(this,"sendValidityState"),this.sendInputValue=c.createEvent(this,"sendInputValue"),this.touched=!1,this.formatDate=e=>{const{year:t,month:r,day:a}=e,o=new Date(t,r,a);return fa(o,this.dateFormat)},this.parseDate=e=>{const t=Fe(e,this.dateFormat,new Date);return{year:t.getFullYear(),month:t.getMonth(),day:t.getDate()}},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}get formattedValue(){if(!this.value)return"";const i=Fe(this.value,"yyyy-MM-dd",new Date);return fa(i,this.dateFormat)}handleStylingChange(i,e){i!==e&&this.setClientStyling()}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,e;this.minDate=Fe(((i=this.validation.min)===null||i===void 0?void 0:i.toString())||"","yyyy-MM-dd",new Date),this.maxDate=Fe(((e=this.validation.max)===null||e===void 0?void 0:e.toString())||"","yyyy-MM-dd",new Date)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){if(this.datePicker=this.element.shadowRoot.querySelector("vaadin-date-picker"),this.inputReference=this.element.shadowRoot.querySelector("input"),this.datePicker){const i=this.datePicker.shadowRoot.querySelector('[part="toggle-button"]');i&&i.addEventListener("click",()=>this.handleCalendarIconClick()),this.datePicker.addEventListener("opened-changed",e=>{e.detail.value===!0?this.errorMessage="":(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0)})}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()}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=Fe(this.value||"","yyyy-MM-dd",new Date),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return ba(this.valueAsDate,this.minDate)||ga(this.valueAsDate,this.maxDate)||!ya(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(ba(this.valueAsDate,this.minDate)||ga(this.valueAsDate,this.maxDate))return b("dateError2",this.language);if(!ya(this.formattedValue,this.dateFormat))return b("dateFormatError",this.language)}renderTooltip(){return this.showTooltip?c.h("div",{class:`date__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"),c.h("div",{key:"d9757eb7eea257167da12612f51f6665d6ac058e",class:`date__wrapper ${this.autofilled?"date__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},c.h("label",{key:"8339c9f27e74f2e1a98d11efea7eb05a9681e83e",class:`date__label ${this.validation.mandatory?"date__label--required":""}}`,htmlFor:`${this.name}__input`},this.displayName," ",this.validation.mandatory?"*":""),c.h("vaadin-date-picker",{key:"513692d0858a9f409e02bd515700e3e9e0eaa1fb",id:`${this.name}__input`,type:"date",class:`date__input ${i}`,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)}),c.h("small",{key:"19be9854df1adc1c6581e00a3593bcf16d7e2146",class:"date__error-message"},this.errorMessage),this.tooltip&&c.h("img",{key:"f38abc61046c33c56a9efc3907dbd184b8e8352e",class:"date__tooltip-icon",src:ne,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}get element(){return c.getElement(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Fo.style=rh;const ah='*,*::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}',oh=ah,$o=class{constructor(i){c.registerInstance(this,i),this.sendValidityState=c.createEvent(this,"sendValidityState"),this.sendInputValue=c.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.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(i,e){i!==e&&this.setClientStyling()}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()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){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?c.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"),c.h("div",{key:"45255f597fcc76fa5e99601d7c2dd59afca32dbe",class:`email__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},c.h("div",{key:"7e41609760d4cc0b5acb554749fce42e6bc88ef3",class:"email__wrapper--flex"},c.h("label",{key:"250a1656d714e8cbc943d153aa216a6322322534",class:`email__label ${this.validation.mandatory?"email__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),c.h("div",{key:"80db5747730aaac2c1d0efa3129dfa5463fe779c",class:"email__wrapper--relative"},this.tooltip&&c.h("img",{key:"f10990c70bb3de310d137fa120575ad3582adbd3",class:"email__tooltip-icon",src:ne,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),c.h("input",{key:"9cf1a9fc4fdc3cb2604c6ad21573091cc1b173aa",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}),c.h("small",{key:"1610834f1705f70bd1f2d4b0a6c37af3307cf77f",class:"email__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};$o.style=oh;var nh=Object.defineProperty,sh=Object.defineProperties,lh=Object.getOwnPropertyDescriptors,wa=Object.getOwnPropertySymbols,dh=Object.prototype.hasOwnProperty,hh=Object.prototype.propertyIsEnumerable,Yi=(i,e,t)=>e in i?nh(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ei=(i,e)=>{for(var t in e||(e={}))dh.call(e,t)&&Yi(i,t,e[t]);if(wa)for(var t of wa(e))hh.call(e,t)&&Yi(i,t,e[t]);return i},Ho=(i,e)=>sh(i,lh(e)),X=(i,e,t)=>(Yi(i,typeof e!="symbol"?e+"":e,t),t),ti=(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/
|
|
@@ -15,13 +15,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15
15
|
* @license
|
|
16
16
|
* Copyright 2017 Google LLC
|
|
17
17
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
18
|
-
*/const{is:ph,defineProperty:mh,getOwnPropertyDescriptor:fh,getOwnPropertyNames:_h,getOwnPropertySymbols:vh,getPrototypeOf:gh}=Object,Ye=globalThis,ka=Ye.trustedTypes,bh=ka?ka.emptyScript:"",Ea=Ye.reactiveElementPolyfillSupport,ft=(i,e)=>i,Gi={toAttribute(i,e){switch(e){case Boolean:i=i?bh:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch(r){t=null}}return t}},Uo=(i,e)=>!ph(i,e),Ia={attribute:!0,type:String,converter:Gi,reflect:!1,useDefault:!1,hasChanged:Uo};Symbol.metadata!=null||(Symbol.metadata=Symbol("metadata")),Ye.litPropertyMetadata!=null||(Ye.litPropertyMetadata=new WeakMap);class $e extends HTMLElement{static addInitializer(e){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Ia){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const r=Symbol(),a=this.getPropertyDescriptor(e,r,t);a!==void 0&&mh(this.prototype,e,a)}}static getPropertyDescriptor(e,t,r){var a;const{get:o,set:n}=(a=fh(this.prototype,e))!=null?a:{get(){return this[t]},set(s){this[t]=s}};return{get:o,set(s){const l=o==null?void 0:o.call(this);n==null||n.call(this,s),this.requestUpdate(e,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:Ia}static _$Ei(){if(this.hasOwnProperty(ft("elementProperties")))return;const e=gh(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(ft("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ft("properties"))){const t=this.properties,r=[..._h(t),...vh(t)];for(const a of r)this.createProperty(a,t[a])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[r,a]of t)this.elementProperties.set(r,a)}this._$Eh=new Map;for(const[t,r]of this.elementProperties){const a=this._$Eu(t,r);a!==void 0&&this._$Eh.set(a,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const a of r)t.unshift(Ca(a))}else e!==void 0&&t.push(Ca(e));return t}static _$Eu(e,t){const r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t,r;((t=this._$EO)!=null?t:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)==null||r.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var e;const t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return Bo(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostConnected)==null?void 0:r.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){var r;const a=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,a);if(o!==void 0&&a.reflect===!0){const n=(((r=a.converter)==null?void 0:r.toAttribute)!==void 0?a.converter:Gi).toAttribute(t,a.type);this._$Em=e,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null}}_$AK(e,t){var r,a,o;const n=this.constructor,s=n._$Eh.get(e);if(s!==void 0&&this._$Em!==s){const l=n.getPropertyOptions(s),d=typeof l.converter=="function"?{fromAttribute:l.converter}:((r=l.converter)==null?void 0:r.fromAttribute)!==void 0?l.converter:Gi;this._$Em=s;const h=d.fromAttribute(t,l.type);this[s]=(o=h!=null?h:(a=this._$Ej)==null?void 0:a.get(s))!=null?o:h,this._$Em=null}}requestUpdate(e,t,r){var a,o;if(e!==void 0){const n=this.constructor,s=this[e];if(r!=null||(r=n.getPropertyOptions(e)),!(((a=r.hasChanged)!=null?a:Uo)(s,t)||r.useDefault&&r.reflect&&s===((o=this._$Ej)==null?void 0:o.get(e))&&!this.hasAttribute(n._$Eu(e,r))))return;this.C(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:a,wrapped:o},n){var s,l,d;r&&!((s=this._$Ej)!=null?s:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,(l=n!=null?n:t)!=null?l:this[e]),o!==!0||n!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(t=void 0),this._$AL.set(e,t)),a===!0&&this._$Em!==e&&((d=this._$Eq)!=null?d:this._$Eq=new Set).add(e))}_$EP(){return ti(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&(yield e),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,n]of this._$Ep)this[o]=n;this._$Ep=void 0}const a=this.constructor.elementProperties;if(a.size>0)for(const[o,n]of a){const{wrapped:s}=n,l=this[o];s!==!0||this._$AL.has(o)||l===void 0||this.C(o,void 0,n,l)}}let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),(e=this._$EO)==null||e.forEach(a=>{var o;return(o=a.hostUpdate)==null?void 0:o.call(a)}),this.update(r)):this._$EM()}catch(a){throw t=!1,this._$EM(),a}t&&this._$AE(r)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(r=>{var a;return(a=r.hostUpdated)==null?void 0:a.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}}var
|
|
18
|
+
*/const{is:ph,defineProperty:mh,getOwnPropertyDescriptor:fh,getOwnPropertyNames:_h,getOwnPropertySymbols:vh,getPrototypeOf:gh}=Object,Ye=globalThis,ka=Ye.trustedTypes,bh=ka?ka.emptyScript:"",Ea=Ye.reactiveElementPolyfillSupport,ft=(i,e)=>i,Gi={toAttribute(i,e){switch(e){case Boolean:i=i?bh:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch(r){t=null}}return t}},Uo=(i,e)=>!ph(i,e),Ia={attribute:!0,type:String,converter:Gi,reflect:!1,useDefault:!1,hasChanged:Uo};Symbol.metadata!=null||(Symbol.metadata=Symbol("metadata")),Ye.litPropertyMetadata!=null||(Ye.litPropertyMetadata=new WeakMap);class $e extends HTMLElement{static addInitializer(e){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Ia){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const r=Symbol(),a=this.getPropertyDescriptor(e,r,t);a!==void 0&&mh(this.prototype,e,a)}}static getPropertyDescriptor(e,t,r){var a;const{get:o,set:n}=(a=fh(this.prototype,e))!=null?a:{get(){return this[t]},set(s){this[t]=s}};return{get:o,set(s){const l=o==null?void 0:o.call(this);n==null||n.call(this,s),this.requestUpdate(e,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:Ia}static _$Ei(){if(this.hasOwnProperty(ft("elementProperties")))return;const e=gh(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(ft("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ft("properties"))){const t=this.properties,r=[..._h(t),...vh(t)];for(const a of r)this.createProperty(a,t[a])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[r,a]of t)this.elementProperties.set(r,a)}this._$Eh=new Map;for(const[t,r]of this.elementProperties){const a=this._$Eu(t,r);a!==void 0&&this._$Eh.set(a,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const a of r)t.unshift(Ca(a))}else e!==void 0&&t.push(Ca(e));return t}static _$Eu(e,t){const r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t,r;((t=this._$EO)!=null?t:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)==null||r.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var e;const t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return Bo(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostConnected)==null?void 0:r.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){var r;const a=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,a);if(o!==void 0&&a.reflect===!0){const n=(((r=a.converter)==null?void 0:r.toAttribute)!==void 0?a.converter:Gi).toAttribute(t,a.type);this._$Em=e,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null}}_$AK(e,t){var r,a,o;const n=this.constructor,s=n._$Eh.get(e);if(s!==void 0&&this._$Em!==s){const l=n.getPropertyOptions(s),d=typeof l.converter=="function"?{fromAttribute:l.converter}:((r=l.converter)==null?void 0:r.fromAttribute)!==void 0?l.converter:Gi;this._$Em=s;const h=d.fromAttribute(t,l.type);this[s]=(o=h!=null?h:(a=this._$Ej)==null?void 0:a.get(s))!=null?o:h,this._$Em=null}}requestUpdate(e,t,r){var a,o;if(e!==void 0){const n=this.constructor,s=this[e];if(r!=null||(r=n.getPropertyOptions(e)),!(((a=r.hasChanged)!=null?a:Uo)(s,t)||r.useDefault&&r.reflect&&s===((o=this._$Ej)==null?void 0:o.get(e))&&!this.hasAttribute(n._$Eu(e,r))))return;this.C(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:a,wrapped:o},n){var s,l,d;r&&!((s=this._$Ej)!=null?s:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,(l=n!=null?n:t)!=null?l:this[e]),o!==!0||n!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(t=void 0),this._$AL.set(e,t)),a===!0&&this._$Em!==e&&((d=this._$Eq)!=null?d:this._$Eq=new Set).add(e))}_$EP(){return ti(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&(yield e),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,n]of this._$Ep)this[o]=n;this._$Ep=void 0}const a=this.constructor.elementProperties;if(a.size>0)for(const[o,n]of a){const{wrapped:s}=n,l=this[o];s!==!0||this._$AL.has(o)||l===void 0||this.C(o,void 0,n,l)}}let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),(e=this._$EO)==null||e.forEach(a=>{var o;return(o=a.hostUpdate)==null?void 0:o.call(a)}),this.update(r)):this._$EM()}catch(a){throw t=!1,this._$EM(),a}t&&this._$AE(r)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(r=>{var a;return(a=r.hostUpdated)==null?void 0:a.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}}var Sa;$e.elementStyles=[],$e.shadowRootOptions={mode:"open"},$e[ft("elementProperties")]=new Map,$e[ft("finalized")]=new Map,Ea==null||Ea({ReactiveElement:$e}),((Sa=Ye.reactiveElementVersions)!=null?Sa:Ye.reactiveElementVersions=[]).push("2.1.1");/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
21
21
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
-
*/const ii=globalThis,ri=ii.trustedTypes,
|
|
23
|
-
\f\r]`,st=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
24
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Da=/'/g,Oa=/"/g,Wo=/^(?:script|style|textarea|title)$/i,Ge=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),Va=new WeakMap,
|
|
22
|
+
*/const ii=globalThis,ri=ii.trustedTypes,Ta=ri?ri.createPolicy("lit-html",{createHTML:i=>i}):void 0,qo="$lit$",we=`lit$${Math.random().toFixed(9).slice(2)}$`,jo="?"+we,yh=`<${jo}>`,Oe=document,vt=()=>Oe.createComment(""),gt=i=>i===null||typeof i!="object"&&typeof i!="function",kr=Array.isArray,wh=i=>kr(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Ai=`[
|
|
23
|
+
\f\r]`,st=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Pa=/-->/g,Aa=/>/g,Ie=RegExp(`>|${Ai}(?:([^\\s"'>=/]+)(${Ai}*=${Ai}*(?:[^
|
|
24
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Da=/'/g,Oa=/"/g,Wo=/^(?:script|style|textarea|title)$/i,Ge=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),Va=new WeakMap,Te=Oe.createTreeWalker(Oe,129);function Yo(i,e){if(!kr(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ta!==void 0?Ta.createHTML(e):e}const xh=(i,e)=>{const t=i.length-1,r=[];let a,o=e===2?"<svg>":e===3?"<math>":"",n=st;for(let s=0;s<t;s++){const l=i[s];let d,h,u=-1,p=0;for(;p<l.length&&(n.lastIndex=p,h=n.exec(l),h!==null);)p=n.lastIndex,n===st?h[1]==="!--"?n=Pa:h[1]!==void 0?n=Aa:h[2]!==void 0?(Wo.test(h[2])&&(a=RegExp("</"+h[2],"g")),n=Ie):h[3]!==void 0&&(n=Ie):n===Ie?h[0]===">"?(n=a!=null?a:st,u=-1):h[1]===void 0?u=-2:(u=n.lastIndex-h[2].length,d=h[1],n=h[3]===void 0?Ie:h[3]==='"'?Oa:Da):n===Oa||n===Da?n=Ie:n===Pa||n===Aa?n=st:(n=Ie,a=void 0);const m=n===Ie&&i[s+1].startsWith("/>")?" ":"";o+=n===st?l+yh:u>=0?(r.push(d),l.slice(0,u)+qo+l.slice(u)+we+m):l+we+(u===-2?s:m)}return[Yo(i,o+(i[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class bt{constructor({strings:e,_$litType$:t},r){let a;this.parts=[];let o=0,n=0;const s=e.length-1,l=this.parts,[d,h]=xh(e,t);if(this.el=bt.createElement(d,r),Te.currentNode=this.el.content,t===2||t===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(a=Te.nextNode())!==null&&l.length<s;){if(a.nodeType===1){if(a.hasAttributes())for(const u of a.getAttributeNames())if(u.endsWith(qo)){const p=h[n++],m=a.getAttribute(u).split(we),y=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:y[2],strings:m,ctor:y[1]==="."?kh:y[1]==="?"?Eh:y[1]==="@"?Ih:pi}),a.removeAttribute(u)}else u.startsWith(we)&&(l.push({type:6,index:o}),a.removeAttribute(u));if(Wo.test(a.tagName)){const u=a.textContent.split(we),p=u.length-1;if(p>0){a.textContent=ri?ri.emptyScript:"";for(let m=0;m<p;m++)a.append(u[m],vt()),Te.nextNode(),l.push({type:2,index:++o});a.append(u[p],vt())}}}else if(a.nodeType===8)if(a.data===jo)l.push({type:2,index:o});else{let u=-1;for(;(u=a.data.indexOf(we,u+1))!==-1;)l.push({type:7,index:o}),u+=we.length-1}o++}}static createElement(e,t){const r=Oe.createElement("template");return r.innerHTML=e,r}}function Ke(i,e,t=i,r){var a,o,n;if(e===Ge)return e;let s=r!==void 0?(a=t._$Co)==null?void 0:a[r]:t._$Cl;const l=gt(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=Ke(i,s._$AS(i,e.values),s,r)),e}class Ch{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:Oe).importNode(r,!0);Te.currentNode=o;let n=Te.nextNode(),s=0,l=0,d=a[0];for(;d!==void 0;){if(s===d.index){let h;d.type===2?h=new Pt(n,n.nextSibling,this,e):d.type===1?h=new d.ctor(n,d.name,d.strings,this,e):d.type===6&&(h=new Sh(n,this,e)),this._$AV.push(h),d=a[++l]}s!==(d==null?void 0:d.index)&&(n=Te.nextNode(),s++)}return Te.currentNode=Oe,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 Pt{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=Y,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=Ke(this,e,t),gt(e)?e===Y||e==null||e===""?(this._$AH!==Y&&this._$AR(),this._$AH=Y):e!==this._$AH&&e!==Ge&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):wh(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!==Y&>(this._$AH)?this._$AA.nextSibling.data=e:this.T(Oe.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=bt.createElement(Yo(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 Ch(o,this),s=n.u(this.options);n.p(r),this.T(s),this._$AH=n}}_$AC(e){let t=Va.get(e.strings);return t===void 0&&Va.set(e.strings,t=new bt(e)),t}k(e){kr(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 Pt(this.O(vt()),this.O(vt()),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=e.nextSibling;e.remove(),e=a}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class pi{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,a,o){this.type=1,this._$AH=Y,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=Y}_$AI(e,t=this,r,a){const o=this.strings;let n=!1;if(o===void 0)e=Ke(this,e,t,0),n=!gt(e)||e!==this._$AH&&e!==Ge,n&&(this._$AH=e);else{const s=e;let l,d;for(e=o[0],l=0;l<o.length-1;l++)d=Ke(this,s[r+l],t,l),d===Ge&&(d=this._$AH[l]),n||(n=!gt(d)||d!==this._$AH[l]),d===Y?e=Y:e!==Y&&(e+=(d!=null?d:"")+o[l+1]),this._$AH[l]=d}n&&!a&&this.j(e)}j(e){e===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class kh extends pi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Y?void 0:e}}class Eh extends pi{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Y)}}class Ih extends pi{constructor(e,t,r,a,o){super(e,t,r,a,o),this.type=5}_$AI(e,t=this){var r;if((e=(r=Ke(this,e,t,0))!=null?r:Y)===Ge)return;const a=this._$AH,o=e===Y&&a!==Y||e.capture!==a.capture||e.once!==a.once||e.passive!==a.passive,n=e!==Y&&(a===Y||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 Sh{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){Ke(this,e)}}const Ma=ii.litHtmlPolyfillSupport;var za;Ma==null||Ma(bt,Pt),((za=ii.litHtmlVersions)!=null?za:ii.litHtmlVersions=[]).push("3.3.1");const Go=(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 Pt(e.insertBefore(vt(),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 Ko=[],Ki=new Set,Er=new Set;function Xo(i){return i&&Object.prototype.hasOwnProperty.call(i,"__themes")}function
|
|
37
|
-
`)}const ai="vaadin-themable-mixin-style";function Ah(i,e){const t=document.createElement("style");t.id=ai,t.textContent=Jo(i),e.content.appendChild(t)}function Dh(i){if(!i.shadowRoot)return;const e=i.constructor;if(i instanceof He)[...i.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),Bo(i.shadowRoot,e.elementStyles);else{const t=i.shadowRoot.getElementById(ai),r=e.prototype._template;t.textContent=r.content.getElementById(ai).textContent}}function Oh(i){Ki.forEach(e=>{const t=e.deref();t instanceof i?Dh(t):t||Ki.delete(e)})}function Zo(i){if(i.prototype instanceof He)i.elementStyles=i.finalizeStyles(i.styles);else{const e=i.prototype._template;e.content.getElementById(ai).textContent=Jo(i.getStylesForThis())}Er.forEach(e=>{const t=customElements.get(e);t!==i&&t.prototype instanceof i&&Zo(t)})}function Vh(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=
|
|
36
|
+
*/const Ko=[],Ki=new Set,Er=new Set;function Xo(i){return i&&Object.prototype.hasOwnProperty.call(i,"__themes")}function Th(i){return Xo(customElements.get(i))}function Ph(i=[]){return[i].flat(1/0).filter(e=>e instanceof Cr?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function Qo(i,e){return(i||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function Jo(i){return i.map(e=>e.cssText).join(`
|
|
37
|
+
`)}const ai="vaadin-themable-mixin-style";function Ah(i,e){const t=document.createElement("style");t.id=ai,t.textContent=Jo(i),e.content.appendChild(t)}function Dh(i){if(!i.shadowRoot)return;const e=i.constructor;if(i instanceof He)[...i.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),Bo(i.shadowRoot,e.elementStyles);else{const t=i.shadowRoot.getElementById(ai),r=e.prototype._template;t.textContent=r.content.getElementById(ai).textContent}}function Oh(i){Ki.forEach(e=>{const t=e.deref();t instanceof i?Dh(t):t||Ki.delete(e)})}function Zo(i){if(i.prototype instanceof He)i.elementStyles=i.finalizeStyles(i.styles);else{const e=i.prototype._template;e.content.getElementById(ai).textContent=Jo(i.getStylesForThis())}Er.forEach(e=>{const t=customElements.get(e);t!==i&&t.prototype instanceof i&&Zo(t)})}function Vh(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=Ph(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(i,e,t):Ko.push({themeFor:i,styles:e,include:t.include,moduleId:t.moduleId}),i&&Er.forEach(r=>{if(Qo(i,r)&&Th(r)){const a=customElements.get(r);Vh(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".`),Zo(a),Oh(a)}})}function Xi(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Ko}function Mh(i=""){let e=0;return i.startsWith("lumo-")||i.startsWith("material-")?e=1:i.startsWith("vaadin-")&&(e=2),e}function en(i){const e=[];return i.include&&[].concat(i.include).forEach(t=>{const r=Xi().find(a=>a.moduleId===t);r?e.push(...en(r),...r.styles):console.warn(`Included moduleId ${t} not found in style registry`)},i.styles),e}function zh(i){const e=`${i}-default-theme`,t=Xi().filter(r=>r.moduleId!==e&&Qo(r.themeFor,i)).map(r=>Ho(ei({},r),{styles:[...en(r),...r.styles],includePriority:Mh(r.moduleId)})).sort((r,a)=>a.includePriority-r.includePriority);return t.length>0?t:Xi().filter(r=>r.moduleId===e)}const M=i=>class extends mi(i){constructor(){super(),Ki.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Er.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||Xo(this)||Ah(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,...zh(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/
|
|
@@ -889,7 +889,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
889
889
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
890
890
|
Code distributed by Google as part of the polymer project is also
|
|
891
891
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
892
|
-
*/let jh=/(url\()([^)]*)(\))/g,Wh=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,$t,te;function _t(i,e){if(i&&Wh.test(i)||i==="//")return i;if($t===void 0){$t=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",$t=t.href==="http://a/c%20d"}catch(t){}}if(e||(e=document.baseURI||window.location.href),$t)try{return new URL(i,e).href}catch(t){return i}return te||(te=document.implementation.createHTMLDocument("temp"),te.base=te.createElement("base"),te.head.appendChild(te.base),te.anchor=te.createElement("a"),te.body.appendChild(te.anchor)),te.base.href=e,te.anchor.href=i,te.anchor.href||i}function Ir(i,e){return i.replace(jh,function(t,r,a,o){return r+"'"+_t(a.replace(/["']/g,""),e)+"'"+o})}function
|
|
892
|
+
*/let jh=/(url\()([^)]*)(\))/g,Wh=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,$t,te;function _t(i,e){if(i&&Wh.test(i)||i==="//")return i;if($t===void 0){$t=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",$t=t.href==="http://a/c%20d"}catch(t){}}if(e||(e=document.baseURI||window.location.href),$t)try{return new URL(i,e).href}catch(t){return i}return te||(te=document.implementation.createHTMLDocument("temp"),te.base=te.createElement("base"),te.head.appendChild(te.base),te.anchor=te.createElement("a"),te.body.appendChild(te.anchor)),te.base.href=e,te.anchor.href=i,te.anchor.href||i}function Ir(i,e){return i.replace(jh,function(t,r,a,o){return r+"'"+_t(a.replace(/["']/g,""),e)+"'"+o})}function Sr(i){return i.substring(0,i.lastIndexOf("/")+1)}/**
|
|
893
893
|
@license
|
|
894
894
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
895
895
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -897,7 +897,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
897
897
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
898
898
|
Code distributed by Google as part of the polymer project is also
|
|
899
899
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
900
|
-
*/const tn=!window.ShadyDOM||!window.ShadyDOM.inUse,Yh=tn&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const i=new CSSStyleSheet;i.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[i],e.shadowRoot.adoptedStyleSheets[0]===i}catch(i){return!1}})();let Gh=window.Polymer&&window.Polymer.rootPath||
|
|
900
|
+
*/const tn=!window.ShadyDOM||!window.ShadyDOM.inUse,Yh=tn&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const i=new CSSStyleSheet;i.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[i],e.shadowRoot.adoptedStyleSheets[0]===i}catch(i){return!1}})();let Gh=window.Polymer&&window.Polymer.rootPath||Sr(document.baseURI||window.location.href),oi=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,ni=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Kh=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,rn=window.Polymer&&window.Polymer.legacyOptimizations||!1,an=window.Polymer&&window.Polymer.legacyWarnings||!1,Xh=window.Polymer&&window.Polymer.syncInitialRender||!1,Qi=window.Polymer&&window.Polymer.legacyUndefined||!1,Qh=window.Polymer&&window.Polymer.orderedComputed||!1,Fa=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Jh=window.Polymer&&window.Polymer.fastDomIf||!1,$a=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,Zh=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
|
|
901
901
|
@license
|
|
902
902
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
903
903
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -913,7 +913,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
913
913
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
914
914
|
Code distributed by Google as part of the polymer project is also
|
|
915
915
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
916
|
-
*/let
|
|
916
|
+
*/let Tr={},on={};function Ha(i,e){Tr[i]=on[i.toLowerCase()]=e}function Ba(i){return Tr[i]||on[i.toLowerCase()]}function tc(i){i.querySelector("style")&&console.warn("dom-module %s has style outside template",i.id)}class wt extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let r=Ba(e);return r&&t?r.querySelector(t):r}return null}attributeChangedCallback(e,t,r,a){t!==r&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=_t(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=Sr(t)}return this.__assetpath}register(e){if(e=e||this.id,e){if(ni&&Ba(e)!==void 0)throw Ha(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,Ha(e,this),tc(this)}}}wt.prototype.modules=Tr;customElements.define("dom-module",wt);/**
|
|
917
917
|
@license
|
|
918
918
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
919
919
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -977,7 +977,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
977
977
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
978
978
|
Code distributed by Google as part of the polymer project is also
|
|
979
979
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
980
|
-
*/const gc={"dom-if":!0,"dom-repeat":!0};let Wa=!1,Ya=!1;function bc(){if(!Wa){Wa=!0;const i=document.createElement("textarea");i.placeholder="a",Ya=i.placeholder===i.textContent}return Ya}function yc(i){bc()&&i.localName==="textarea"&&i.placeholder&&i.placeholder===i.textContent&&(i.textContent=null)}const wc=(()=>{const i=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,r)=>{const a=t.getAttribute(r);if(i&&r.startsWith("on-")){e.setAttribute(r,i.createScript(a,r));return}e.setAttribute(r,a)}})();function xc(i){let e=i.getAttribute("is");if(e&&gc[e]){let t=i;for(t.removeAttribute("is"),i=t.ownerDocument.createElement(e),t.parentNode.replaceChild(i,t),i.appendChild(t);t.attributes.length;){const{name:r}=t.attributes[0];wc(i,t,r),t.removeAttribute(r)}}return i}function vn(i,e){let t=e.parentInfo&&vn(i,e.parentInfo);if(t){for(let r=t.firstChild,a=0;r;r=r.nextSibling)if(e.parentIndex===a++)return r}else return i}function Cc(i,e,t,r){r.id&&(e[r.id]=t)}function kc(i,e,t){if(t.events&&t.events.length)for(let r=0,a=t.events,o;r<a.length&&(o=a[r]);r++)i._addMethodEventListenerToNode(e,o.name,o.value,i)}function Ec(i,e,t,r){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=r)}function Ic(i,e,t){return i=i._methodHost||i,function(r){i[t]?i[t](r,r.detail):console.warn("listener method `"+t+"` not defined")}}const
|
|
980
|
+
*/const gc={"dom-if":!0,"dom-repeat":!0};let Wa=!1,Ya=!1;function bc(){if(!Wa){Wa=!0;const i=document.createElement("textarea");i.placeholder="a",Ya=i.placeholder===i.textContent}return Ya}function yc(i){bc()&&i.localName==="textarea"&&i.placeholder&&i.placeholder===i.textContent&&(i.textContent=null)}const wc=(()=>{const i=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,r)=>{const a=t.getAttribute(r);if(i&&r.startsWith("on-")){e.setAttribute(r,i.createScript(a,r));return}e.setAttribute(r,a)}})();function xc(i){let e=i.getAttribute("is");if(e&&gc[e]){let t=i;for(t.removeAttribute("is"),i=t.ownerDocument.createElement(e),t.parentNode.replaceChild(i,t),i.appendChild(t);t.attributes.length;){const{name:r}=t.attributes[0];wc(i,t,r),t.removeAttribute(r)}}return i}function vn(i,e){let t=e.parentInfo&&vn(i,e.parentInfo);if(t){for(let r=t.firstChild,a=0;r;r=r.nextSibling)if(e.parentIndex===a++)return r}else return i}function Cc(i,e,t,r){r.id&&(e[r.id]=t)}function kc(i,e,t){if(t.events&&t.events.length)for(let r=0,a=t.events,o;r<a.length&&(o=a[r]);r++)i._addMethodEventListenerToNode(e,o.name,o.value,i)}function Ec(i,e,t,r){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=r)}function Ic(i,e,t){return i=i._methodHost||i,function(r){i[t]?i[t](r,r.detail):console.warn("listener method `"+t+"` not defined")}}const Sc=B(i=>{class e extends i{static _parseTemplate(r,a){if(!r._templateInfo){let o=r._templateInfo={};o.nodeInfoList=[],o.nestedTemplate=!!a,o.stripWhiteSpace=a&&a.stripWhiteSpace||r.hasAttribute&&r.hasAttribute("strip-whitespace"),this._parseTemplateContent(r,o,{parent:null})}return r._templateInfo}static _parseTemplateContent(r,a,o){return this._parseTemplateNode(r.content,a,o)}static _parseTemplateNode(r,a,o){let n=!1,s=r;return s.localName=="template"&&!s.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(s,a,o)||n:s.localName==="slot"&&(a.hasInsertionPoint=!0),yc(s),s.firstChild&&this._parseTemplateChildNodes(s,a,o),s.hasAttributes&&s.hasAttributes()&&(n=this._parseTemplateNodeAttributes(s,a,o)||n),n||o.noted}static _parseTemplateChildNodes(r,a,o){if(!(r.localName==="script"||r.localName==="style"))for(let n=r.firstChild,s=0,l;n;n=l){if(n.localName=="template"&&(n=xc(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let h=l;for(;h&&h.nodeType===Node.TEXT_NODE;)n.textContent+=h.textContent,l=h.nextSibling,r.removeChild(h),h=l;if(a.stripWhiteSpace&&!n.textContent.trim()){r.removeChild(n);continue}}let d={parentIndex:s,parentInfo:o};this._parseTemplateNode(n,a,d)&&(d.infoIndex=a.nodeInfoList.push(d)-1),n.parentNode&&s++}}static _parseTemplateNestedTemplate(r,a,o){let n=r,s=this._parseTemplate(n,a);return(s.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),o.templateInfo=s,!0}static _parseTemplateNodeAttributes(r,a,o){let n=!1,s=Array.from(r.attributes);for(let l=s.length-1,d;d=s[l];l--)n=this._parseTemplateNodeAttribute(r,a,o,d.name,d.value)||n;return n}static _parseTemplateNodeAttribute(r,a,o,n,s){return n.slice(0,3)==="on-"?(r.removeAttribute(n),o.events=o.events||[],o.events.push({name:n.slice(3),value:s}),!0):n==="id"?(o.id=s,!0):!1}static _contentForTemplate(r){let a=r._templateInfo;return a&&a.content||r.content}_stampTemplate(r,a){r&&!r.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(r),a=a||this.constructor._parseTemplate(r);let o=a.nodeInfoList,n=a.content||r.content,s=document.importNode(n,!0);s.__noInsertionPoint=!a.hasInsertionPoint;let l=s.nodeList=new Array(o.length);s.$={};for(let d=0,h=o.length,u;d<h&&(u=o[d]);d++){let p=l[d]=vn(s,u);Cc(this,s.$,p,u),Ec(this,p,u,a),kc(this,p,u)}return s=s,s}_addMethodEventListenerToNode(r,a,o,n){n=n||r;let s=Ic(n,a,o);return this._addEventListenerToNode(r,a,s),s}_addEventListenerToNode(r,a,o){r.addEventListener(a,o)}_removeEventListenerFromNode(r,a,o){r.removeEventListener(a,o)}}return e});/**
|
|
981
981
|
* @fileoverview
|
|
982
982
|
* @suppress {checkPrototypalTypes}
|
|
983
983
|
* @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -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 kt=0;const Et=[],S={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},gn="__computeInfo",Pc=/[A-Z]/;function Di(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 pt(i,e,t,r,a,o){if(e){let n=!1;const s=kt++;for(let l in t){let d=a?Ve(l):l,h=e[d];if(h)for(let u=0,p=h.length,m;u<p&&(m=h[u]);u++)(!m.info||m.info.lastRun!==s)&&(!a||Sr(l,m.trigger))&&(m.info&&(m.info.lastRun=s),m.fn(i,l,t,r,m.info,a,o),n=!0)}return n}return!1}function Sc(i,e,t,r,a,o,n,s){let l=!1,d=n?Ve(r):r,h=e[d];if(h)for(let u=0,p=h.length,m;u<p&&(m=h[u]);u++)(!m.info||m.info.lastRun!==t)&&(!n||Sr(r,m.trigger))&&(m.info&&(m.info.lastRun=t),m.fn(i,r,a,o,m.info,n,s),l=!0);return l}function Sr(i,e){if(e){let t=e.name;return t==i||!!(e.structured&&dn(t,i))||!!(e.wildcard&&xt(t,i))}else return!0}function Ga(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 Ac(i,e,t,r,a){let o=i[S.NOTIFY],n,s=kt++;for(let d in e)e[d]&&(o&&Sc(i,o,s,d,t,r,a)||a&&Dc(i,d,t))&&(n=!0);let l;n&&(l=i.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Dc(i,e,t){let r=Ve(e);if(r!==e){let a=fi(r)+"-changed";return bn(i,a,t[e],e),!0}return!1}function bn(i,e,t,r){let a={value:t,queueProperty:!0};r&&(a.path=r),K(i).dispatchEvent(new CustomEvent(e,{detail:a}))}function Oc(i,e,t,r,a,o){let n=(o?Ve(e):e)!=e?e:null,s=n?J(i,n):i.__data[e];n&&s===void 0&&(s=t[e]),bn(i,a.eventName,s,n)}function Vc(i,e,t,r,a){let o,n=i.detail,s=n&&n.path;s?(r=Ct(t,r,s),o=n&&n.value):o=i.currentTarget[t],o=a?!o:o,(!e[S.READ_ONLY]||!e[S.READ_ONLY][r])&&e._setPendingPropertyOrPath(r,o,!0,!!s)&&(!n||!n.queueProperty)&&e._invalidateProperties()}function Mc(i,e,t,r,a){let o=i.__data[e];oi&&(o=oi(o,a.attrName,"attribute",i)),i._propertyToAttribute(e,a.attrName,o)}function zc(i,e,t,r){let a=i[S.COMPUTE];if(a)if(Qh){kt++;const o=Lc(i),n=[];for(let l in e)Ka(l,a,n,o,r);let s;for(;s=n.shift();)yn(i,"",e,t,s)&&Ka(s.methodInfo,a,n,o,r);Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),i.__dataPending=null}else{let o=e;for(;pt(i,a,o,t,r);)Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),o=i.__dataPending,i.__dataPending=null}}const Nc=(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)},Ka=(i,e,t,r,a)=>{const o=a?Ve(i):i,n=e[o];if(n)for(let s=0;s<n.length;s++){const l=n[s];l.info.lastRun!==kt&&(!a||Sr(i,l.trigger))&&(l.info.lastRun=kt,Nc(l.info,t,r))}};function Lc(i){let e=i.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=i[S.COMPUTE];let{counts:r,ready:a,total:o}=Rc(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 Rc(i){const e=i[gn],t={},r=i[S.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 yn(i,e,t,r,a){let o=er(i,e,t,r,a);if(o===Et)return!1;let n=a.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[n]?i._setPendingProperty(n,o,!0):(i[n]=o,!1)}function Fc(i,e,t){let r=i.__dataLinkedPaths;if(r){let a;for(let o in r){let n=r[o];xt(o,e)?(a=Ct(o,n,e),i._setPendingPropertyOrPath(a,t,!0,!0)):xt(n,e)&&(a=Ct(n,o,e),i._setPendingPropertyOrPath(a,t,!0,!0))}}}function Oi(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),qc(s)){let{event:d,negate:h}=s.parts[0];s.listenerEvent=d||fi(a)+"-changed",s.listenerNegate=h}let l=e.nodeInfoList.length;for(let d=0;d<s.parts.length;d++){let h=s.parts[d];h.compoundIndex=d,$c(i,e,s,h,l)}}function $c(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=xn(l),l.wildcard=!0),i._addTemplatePropertyEffect(e,l.rootProperty,{fn:Hc,info:n,trigger:l})}}}function Hc(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 h=t[e];e=Ct(d.source,l.target,e),s._setPendingPropertyOrPath(e,h,!1,!0)&&i._enqueueClient(s)}else{let h=a.evaluator._evaluateBinding(i,d,e,t,r,o);h!==Et&&Bc(i,s,l,d,h)}}function Bc(i,e,t,r,a){if(a=Uc(e,a,t,r),oi&&(a=oi(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[S.READ_ONLY]||!e[S.READ_ONLY][o])&&e._setPendingProperty(o,a)&&i._enqueueClient(e):i._setUnmanagedPropertyToNode(e,o,a)}}function Uc(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 qc(i){return!!i.target&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function jc(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];Wc(n,d),Yc(n,i,d)}n.__dataHost=i}}function Wc(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=K(i)),i[o]=e.literal)}}function Yc(i,e,t){if(t.listenerEvent){let r=t.parts[0];i.addEventListener(t.listenerEvent,function(a){Vc(a,e,t.target,r.source,r.negate)})}}function Xa(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 er(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===Et?Et:n.apply(o,s)}else a.dynamicFn||console.warn("method `"+a.methodName+"` not defined")}const Gc=[],wn="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Kc="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Xc="(?:'(?:[^'\\\\]|\\\\.)*')",Qc='(?:"(?:[^"\\\\]|\\\\.)*")',Jc="(?:"+Xc+"|"+Qc+")",Qa="(?:("+wn+"|"+Kc+"|"+Jc+")\\s*)",Zc="(?:"+Qa+"(?:,\\s*"+Qa+")*)",eu="(?:\\(\\s*(?:"+Zc+"?)\\)\\s*)",tu="("+wn+"\\s*"+eu+"?)",iu="(\\[\\[|{{)\\s*",ru="(?:]]|}})",au="(?:(!)\\s*)?",ou=iu+au+tu+ru,Ja=new RegExp(ou,"g");function Za(i){let e="";for(let t=0;t<i.length;t++){let r=i[t].literal;e+=r||""}return e}function Vi(i){let e=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:Gc};if(e[2].trim()){let r=e[2].replace(/\\,/g,",").split(",");return nu(r,t)}else return t}return null}function nu(i,e){return e.args=i.map(function(t){let r=xn(t);return r.literal||(e.static=!1),r},this),e}function xn(i){let e=i.trim().replace(/,/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=Ve(e),t.structured=Ji(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function eo(i,e,t){let r=J(i,t);return r===void 0&&(r=e[t]),r}function Cn(i,e,t,r){const a={indexSplices:r};Qi&&!i._overrideLegacyUndefined&&(e.splices=a),i.notifyPath(t+".splices",a),i.notifyPath(t+".length",e.length),Qi&&!i._overrideLegacyUndefined&&(a.indexSplices=[])}function lt(i,e,t,r,a,o){Cn(i,e,t,[{index:r,addedCount:a,removed:o,object:e,type:"splice"}])}function su(i){return i[0].toUpperCase()+i.substring(1)}const Ar=B(i=>{const e=Tc(vc(i));class t extends e{constructor(){super(),this.__isPropertyEffectsClient=!0}get PROPERTY_EFFECT_TYPES(){return S}_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(dt.length){let a=dt[dt.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[S.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==S.READ_ONLY);let s=Di(this,o,!0)[a];s||(s=this[o][a]=[]),s.push(n)}_removePropertyEffect(a,o,n){let s=Di(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,S.READ_ONLY)}_hasNotifyEffect(a){return this._hasPropertyEffect(a,S.NOTIFY)}_hasReflectEffect(a){return this._hasPropertyEffect(a,S.REFLECT)}_hasComputedEffect(a){return this._hasPropertyEffect(a,S.COMPUTE)}_setPendingPropertyOrPath(a,o,n,s){if(s||Ve(Array.isArray(a)?a[0]:a)!==a){if(!s){let l=J(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 Fc(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=K(a)),a[o]=n)}_setPendingProperty(a,o,n){let s=this.__dataHasPaths&&Ji(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[S.NOTIFY]&&this[S.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[S.READ_ONLY]||!this[S.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;zc(this,o,n,s),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,n,s),this._flushClients(),pt(this,this[S.REFLECT],o,n,s),pt(this,this[S.OBSERVE],o,n,s),l&&Ac(this,l,o,n,s),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(a,o,n){this[S.PROPAGATE]&&pt(this,this[S.PROPAGATE],a,o,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,a,o,n)}_runEffectsForTemplate(a,o,n,s){const l=(d,h)=>{pt(this,a.propertyEffects,d,n,h,a.nodeList);for(let u=a.firstChild;u;u=u.nextSibling)this._runEffectsForTemplate(u,d,n,h)};a.runEffects?a.runEffects(l,o,s):l(o,s)}linkPaths(a,o){a=ut(a),o=ut(o),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[a]=o}unlinkPaths(a){a=ut(a),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[a]}notifySplices(a,o){let n={path:""},s=J(this,a,n);Cn(this,s,n.path,o)}get(a,o){return J(o||this,a)}set(a,o,n){n?ja(n,a,o):(!this[S.READ_ONLY]||!this[S.READ_ONLY][a])&&this._setPendingPropertyOrPath(a,o,!0)&&this._invalidateProperties()}push(a,...o){let n={path:""},s=J(this,a,n),l=s.length,d=s.push(...o);return o.length&<(this,s,n.path,l,o.length,[]),d}pop(a){let o={path:""},n=J(this,a,o),s=!!n.length,l=n.pop();return s&<(this,n,o.path,n.length,0,[l]),l}splice(a,o,n,...s){let l={path:""},d=J(this,a,l);o<0?o=d.length-Math.floor(-o):o&&(o=Math.floor(o));let h;return arguments.length===2?h=d.splice(o):h=d.splice(o,n,...s),(s.length||h.length)&<(this,d,l.path,o,s.length,h),h}shift(a){let o={path:""},n=J(this,a,o),s=!!n.length,l=n.shift();return s&<(this,n,o.path,0,0,[l]),l}unshift(a,...o){let n={path:""},s=J(this,a,n),l=s.unshift(...o);return o.length&<(this,s,n.path,0,o.length,[]),l}notifyPath(a,o){let n;if(arguments.length==1){let s={path:""};o=J(this,a,s),n=s.path}else Array.isArray(a)?n=ut(a):n=a;this._setPendingPropertyOrPath(n,o,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(a,o){this._addPropertyEffect(a,S.READ_ONLY),o&&(this["_set"+su(a)]=function(n){this._setProperty(a,n)})}_createPropertyObserver(a,o,n){let s={property:a,method:o,dynamicFn:!!n};this._addPropertyEffect(a,S.OBSERVE,{fn:Ga,info:s,trigger:{name:a}}),n&&this._addPropertyEffect(o,S.OBSERVE,{fn:Ga,info:s,trigger:{name:o}})}_createMethodObserver(a,o){let n=Vi(a);if(!n)throw new Error("Malformed observer expression '"+a+"'");Xa(this,n,S.OBSERVE,er,null,o)}_createNotifyingProperty(a){this._addPropertyEffect(a,S.NOTIFY,{fn:Oc,info:{eventName:fi(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,S.REFLECT,{fn:Mc,info:{attrName:o}})}_createComputedProperty(a,o,n){let s=Vi(o);if(!s)throw new Error("Malformed computed expression '"+o+"'");const l=Xa(this,s,S.COMPUTE,yn,a,n);Di(this,gn)[a]=l}_marshalArgs(a,o,n){const s=this.__data,l=[];for(let d=0,h=a.length;d<h;d++){let{name:u,structured:p,wildcard:m,value:y,literal:z}=a[d];if(!z)if(m){const D=xt(u,o),O=eo(s,n,D?o:u);y={path:D?o:u,value:O,base:D?J(s,u):O}}else y=p?eo(s,n,u):s[u];if(Qi&&!this._overrideLegacyUndefined&&y===void 0&&a.length>1)return Et;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),dt.push(this);let n=super._stampTemplate(a,o);if(dt.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,jc(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 h=0;h<d.length;h++){let u=d[h];K(K(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=Za(l)||" ",Oi(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 h=s,u="property";Pc.test(s)?u="attribute":s[s.length-1]=="$"&&(s=s.slice(0,-1),u="attribute");let p=Za(d);return p&&u=="attribute"&&(s=="class"&&a.hasAttribute("class")&&(p+=" "+a.getAttribute(s)),a.setAttribute(s,p)),u=="attribute"&&h=="disable-upgrade$"&&a.setAttribute(s,""),a.localName==="input"&&h==="value"&&a.setAttribute(h,""),a.removeAttribute(h),u==="property"&&(s=cn(s)),Oi(this,o,n,u,s,d,p),!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,h=l.localName==="dom-if",u=l.localName==="dom-repeat";Fa&&(h||u)&&(l.removeChild(a),n=n.parentInfo,n.templateInfo=d,n.noted=!0,s=!1);let p=d.hostProps;if(Jh&&h)p&&(o.hostProps=Object.assign(o.hostProps||{},p),Fa||(n.parentInfo.noted=!0));else{let m="{";for(let y in p){let z=[{mode:m,source:y,dependencies:[y],hostProp:!0}];Oi(this,o,n,"property","_host_"+y,z)}}return s}static _parseBindings(a,o){let n=[],s=0,l;for(;(l=Ja.exec(a))!==null;){l.index>s&&n.push({literal:a.slice(s,l.index)});let d=l[1][0],h=!!l[2],u=l[3].trim(),p=!1,m="",y=-1;d=="{"&&(y=u.indexOf("::"))>0&&(m=u.substring(y+2),u=u.substring(0,y),p=!0);let z=Vi(u),D=[];if(z){let{args:O,methodName:P}=z;for(let j=0;j<O.length;j++){let se=O[j];se.literal||D.push(se)}let q=o.dynamicFns;(q&&q[P]||z.static)&&(D.push(P),z.dynamicFn=!0)}else D.push(u);n.push({source:u,mode:d,negate:h,customEvent:p,signature:z,dependencies:D,event:m}),s=Ja.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 h;return o.signature?h=er(a,n,s,l,o.signature):n!=o.source?h=J(a,o.source):d&&Ji(n)?h=J(a,n):h=a.__data[n],o.negate&&(h=!h),h}}return t}),dt=[];/**
|
|
990
|
+
*/let kt=0;const Et=[],P={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},gn="__computeInfo",Tc=/[A-Z]/;function Di(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 pt(i,e,t,r,a,o){if(e){let n=!1;const s=kt++;for(let l in t){let d=a?Ve(l):l,h=e[d];if(h)for(let u=0,p=h.length,m;u<p&&(m=h[u]);u++)(!m.info||m.info.lastRun!==s)&&(!a||Pr(l,m.trigger))&&(m.info&&(m.info.lastRun=s),m.fn(i,l,t,r,m.info,a,o),n=!0)}return n}return!1}function Pc(i,e,t,r,a,o,n,s){let l=!1,d=n?Ve(r):r,h=e[d];if(h)for(let u=0,p=h.length,m;u<p&&(m=h[u]);u++)(!m.info||m.info.lastRun!==t)&&(!n||Pr(r,m.trigger))&&(m.info&&(m.info.lastRun=t),m.fn(i,r,a,o,m.info,n,s),l=!0);return l}function Pr(i,e){if(e){let t=e.name;return t==i||!!(e.structured&&dn(t,i))||!!(e.wildcard&&xt(t,i))}else return!0}function Ga(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 Ac(i,e,t,r,a){let o=i[P.NOTIFY],n,s=kt++;for(let d in e)e[d]&&(o&&Pc(i,o,s,d,t,r,a)||a&&Dc(i,d,t))&&(n=!0);let l;n&&(l=i.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Dc(i,e,t){let r=Ve(e);if(r!==e){let a=fi(r)+"-changed";return bn(i,a,t[e],e),!0}return!1}function bn(i,e,t,r){let a={value:t,queueProperty:!0};r&&(a.path=r),K(i).dispatchEvent(new CustomEvent(e,{detail:a}))}function Oc(i,e,t,r,a,o){let n=(o?Ve(e):e)!=e?e:null,s=n?J(i,n):i.__data[e];n&&s===void 0&&(s=t[e]),bn(i,a.eventName,s,n)}function Vc(i,e,t,r,a){let o,n=i.detail,s=n&&n.path;s?(r=Ct(t,r,s),o=n&&n.value):o=i.currentTarget[t],o=a?!o:o,(!e[P.READ_ONLY]||!e[P.READ_ONLY][r])&&e._setPendingPropertyOrPath(r,o,!0,!!s)&&(!n||!n.queueProperty)&&e._invalidateProperties()}function Mc(i,e,t,r,a){let o=i.__data[e];oi&&(o=oi(o,a.attrName,"attribute",i)),i._propertyToAttribute(e,a.attrName,o)}function zc(i,e,t,r){let a=i[P.COMPUTE];if(a)if(Qh){kt++;const o=Lc(i),n=[];for(let l in e)Ka(l,a,n,o,r);let s;for(;s=n.shift();)yn(i,"",e,t,s)&&Ka(s.methodInfo,a,n,o,r);Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),i.__dataPending=null}else{let o=e;for(;pt(i,a,o,t,r);)Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),o=i.__dataPending,i.__dataPending=null}}const Nc=(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)},Ka=(i,e,t,r,a)=>{const o=a?Ve(i):i,n=e[o];if(n)for(let s=0;s<n.length;s++){const l=n[s];l.info.lastRun!==kt&&(!a||Pr(i,l.trigger))&&(l.info.lastRun=kt,Nc(l.info,t,r))}};function Lc(i){let e=i.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=i[P.COMPUTE];let{counts:r,ready:a,total:o}=Rc(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 Rc(i){const e=i[gn],t={},r=i[P.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 yn(i,e,t,r,a){let o=er(i,e,t,r,a);if(o===Et)return!1;let n=a.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[n]?i._setPendingProperty(n,o,!0):(i[n]=o,!1)}function Fc(i,e,t){let r=i.__dataLinkedPaths;if(r){let a;for(let o in r){let n=r[o];xt(o,e)?(a=Ct(o,n,e),i._setPendingPropertyOrPath(a,t,!0,!0)):xt(n,e)&&(a=Ct(n,o,e),i._setPendingPropertyOrPath(a,t,!0,!0))}}}function Oi(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),qc(s)){let{event:d,negate:h}=s.parts[0];s.listenerEvent=d||fi(a)+"-changed",s.listenerNegate=h}let l=e.nodeInfoList.length;for(let d=0;d<s.parts.length;d++){let h=s.parts[d];h.compoundIndex=d,$c(i,e,s,h,l)}}function $c(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=xn(l),l.wildcard=!0),i._addTemplatePropertyEffect(e,l.rootProperty,{fn:Hc,info:n,trigger:l})}}}function Hc(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 h=t[e];e=Ct(d.source,l.target,e),s._setPendingPropertyOrPath(e,h,!1,!0)&&i._enqueueClient(s)}else{let h=a.evaluator._evaluateBinding(i,d,e,t,r,o);h!==Et&&Bc(i,s,l,d,h)}}function Bc(i,e,t,r,a){if(a=Uc(e,a,t,r),oi&&(a=oi(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[P.READ_ONLY]||!e[P.READ_ONLY][o])&&e._setPendingProperty(o,a)&&i._enqueueClient(e):i._setUnmanagedPropertyToNode(e,o,a)}}function Uc(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 qc(i){return!!i.target&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function jc(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];Wc(n,d),Yc(n,i,d)}n.__dataHost=i}}function Wc(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=K(i)),i[o]=e.literal)}}function Yc(i,e,t){if(t.listenerEvent){let r=t.parts[0];i.addEventListener(t.listenerEvent,function(a){Vc(a,e,t.target,r.source,r.negate)})}}function Xa(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 er(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===Et?Et:n.apply(o,s)}else a.dynamicFn||console.warn("method `"+a.methodName+"` not defined")}const Gc=[],wn="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Kc="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Xc="(?:'(?:[^'\\\\]|\\\\.)*')",Qc='(?:"(?:[^"\\\\]|\\\\.)*")',Jc="(?:"+Xc+"|"+Qc+")",Qa="(?:("+wn+"|"+Kc+"|"+Jc+")\\s*)",Zc="(?:"+Qa+"(?:,\\s*"+Qa+")*)",eu="(?:\\(\\s*(?:"+Zc+"?)\\)\\s*)",tu="("+wn+"\\s*"+eu+"?)",iu="(\\[\\[|{{)\\s*",ru="(?:]]|}})",au="(?:(!)\\s*)?",ou=iu+au+tu+ru,Ja=new RegExp(ou,"g");function Za(i){let e="";for(let t=0;t<i.length;t++){let r=i[t].literal;e+=r||""}return e}function Vi(i){let e=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:Gc};if(e[2].trim()){let r=e[2].replace(/\\,/g,",").split(",");return nu(r,t)}else return t}return null}function nu(i,e){return e.args=i.map(function(t){let r=xn(t);return r.literal||(e.static=!1),r},this),e}function xn(i){let e=i.trim().replace(/,/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=Ve(e),t.structured=Ji(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function eo(i,e,t){let r=J(i,t);return r===void 0&&(r=e[t]),r}function Cn(i,e,t,r){const a={indexSplices:r};Qi&&!i._overrideLegacyUndefined&&(e.splices=a),i.notifyPath(t+".splices",a),i.notifyPath(t+".length",e.length),Qi&&!i._overrideLegacyUndefined&&(a.indexSplices=[])}function lt(i,e,t,r,a,o){Cn(i,e,t,[{index:r,addedCount:a,removed:o,object:e,type:"splice"}])}function su(i){return i[0].toUpperCase()+i.substring(1)}const Ar=B(i=>{const e=Sc(vc(i));class t extends e{constructor(){super(),this.__isPropertyEffectsClient=!0}get PROPERTY_EFFECT_TYPES(){return P}_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(dt.length){let a=dt[dt.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[P.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==P.READ_ONLY);let s=Di(this,o,!0)[a];s||(s=this[o][a]=[]),s.push(n)}_removePropertyEffect(a,o,n){let s=Di(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,P.READ_ONLY)}_hasNotifyEffect(a){return this._hasPropertyEffect(a,P.NOTIFY)}_hasReflectEffect(a){return this._hasPropertyEffect(a,P.REFLECT)}_hasComputedEffect(a){return this._hasPropertyEffect(a,P.COMPUTE)}_setPendingPropertyOrPath(a,o,n,s){if(s||Ve(Array.isArray(a)?a[0]:a)!==a){if(!s){let l=J(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 Fc(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=K(a)),a[o]=n)}_setPendingProperty(a,o,n){let s=this.__dataHasPaths&&Ji(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[P.NOTIFY]&&this[P.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[P.READ_ONLY]||!this[P.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;zc(this,o,n,s),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,n,s),this._flushClients(),pt(this,this[P.REFLECT],o,n,s),pt(this,this[P.OBSERVE],o,n,s),l&&Ac(this,l,o,n,s),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(a,o,n){this[P.PROPAGATE]&&pt(this,this[P.PROPAGATE],a,o,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,a,o,n)}_runEffectsForTemplate(a,o,n,s){const l=(d,h)=>{pt(this,a.propertyEffects,d,n,h,a.nodeList);for(let u=a.firstChild;u;u=u.nextSibling)this._runEffectsForTemplate(u,d,n,h)};a.runEffects?a.runEffects(l,o,s):l(o,s)}linkPaths(a,o){a=ut(a),o=ut(o),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[a]=o}unlinkPaths(a){a=ut(a),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[a]}notifySplices(a,o){let n={path:""},s=J(this,a,n);Cn(this,s,n.path,o)}get(a,o){return J(o||this,a)}set(a,o,n){n?ja(n,a,o):(!this[P.READ_ONLY]||!this[P.READ_ONLY][a])&&this._setPendingPropertyOrPath(a,o,!0)&&this._invalidateProperties()}push(a,...o){let n={path:""},s=J(this,a,n),l=s.length,d=s.push(...o);return o.length&<(this,s,n.path,l,o.length,[]),d}pop(a){let o={path:""},n=J(this,a,o),s=!!n.length,l=n.pop();return s&<(this,n,o.path,n.length,0,[l]),l}splice(a,o,n,...s){let l={path:""},d=J(this,a,l);o<0?o=d.length-Math.floor(-o):o&&(o=Math.floor(o));let h;return arguments.length===2?h=d.splice(o):h=d.splice(o,n,...s),(s.length||h.length)&<(this,d,l.path,o,s.length,h),h}shift(a){let o={path:""},n=J(this,a,o),s=!!n.length,l=n.shift();return s&<(this,n,o.path,0,0,[l]),l}unshift(a,...o){let n={path:""},s=J(this,a,n),l=s.unshift(...o);return o.length&<(this,s,n.path,0,o.length,[]),l}notifyPath(a,o){let n;if(arguments.length==1){let s={path:""};o=J(this,a,s),n=s.path}else Array.isArray(a)?n=ut(a):n=a;this._setPendingPropertyOrPath(n,o,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(a,o){this._addPropertyEffect(a,P.READ_ONLY),o&&(this["_set"+su(a)]=function(n){this._setProperty(a,n)})}_createPropertyObserver(a,o,n){let s={property:a,method:o,dynamicFn:!!n};this._addPropertyEffect(a,P.OBSERVE,{fn:Ga,info:s,trigger:{name:a}}),n&&this._addPropertyEffect(o,P.OBSERVE,{fn:Ga,info:s,trigger:{name:o}})}_createMethodObserver(a,o){let n=Vi(a);if(!n)throw new Error("Malformed observer expression '"+a+"'");Xa(this,n,P.OBSERVE,er,null,o)}_createNotifyingProperty(a){this._addPropertyEffect(a,P.NOTIFY,{fn:Oc,info:{eventName:fi(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,P.REFLECT,{fn:Mc,info:{attrName:o}})}_createComputedProperty(a,o,n){let s=Vi(o);if(!s)throw new Error("Malformed computed expression '"+o+"'");const l=Xa(this,s,P.COMPUTE,yn,a,n);Di(this,gn)[a]=l}_marshalArgs(a,o,n){const s=this.__data,l=[];for(let d=0,h=a.length;d<h;d++){let{name:u,structured:p,wildcard:m,value:y,literal:z}=a[d];if(!z)if(m){const D=xt(u,o),O=eo(s,n,D?o:u);y={path:D?o:u,value:O,base:D?J(s,u):O}}else y=p?eo(s,n,u):s[u];if(Qi&&!this._overrideLegacyUndefined&&y===void 0&&a.length>1)return Et;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),dt.push(this);let n=super._stampTemplate(a,o);if(dt.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,jc(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 h=0;h<d.length;h++){let u=d[h];K(K(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=Za(l)||" ",Oi(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 h=s,u="property";Tc.test(s)?u="attribute":s[s.length-1]=="$"&&(s=s.slice(0,-1),u="attribute");let p=Za(d);return p&&u=="attribute"&&(s=="class"&&a.hasAttribute("class")&&(p+=" "+a.getAttribute(s)),a.setAttribute(s,p)),u=="attribute"&&h=="disable-upgrade$"&&a.setAttribute(s,""),a.localName==="input"&&h==="value"&&a.setAttribute(h,""),a.removeAttribute(h),u==="property"&&(s=cn(s)),Oi(this,o,n,u,s,d,p),!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,h=l.localName==="dom-if",u=l.localName==="dom-repeat";Fa&&(h||u)&&(l.removeChild(a),n=n.parentInfo,n.templateInfo=d,n.noted=!0,s=!1);let p=d.hostProps;if(Jh&&h)p&&(o.hostProps=Object.assign(o.hostProps||{},p),Fa||(n.parentInfo.noted=!0));else{let m="{";for(let y in p){let z=[{mode:m,source:y,dependencies:[y],hostProp:!0}];Oi(this,o,n,"property","_host_"+y,z)}}return s}static _parseBindings(a,o){let n=[],s=0,l;for(;(l=Ja.exec(a))!==null;){l.index>s&&n.push({literal:a.slice(s,l.index)});let d=l[1][0],h=!!l[2],u=l[3].trim(),p=!1,m="",y=-1;d=="{"&&(y=u.indexOf("::"))>0&&(m=u.substring(y+2),u=u.substring(0,y),p=!0);let z=Vi(u),D=[];if(z){let{args:O,methodName:T}=z;for(let j=0;j<O.length;j++){let se=O[j];se.literal||D.push(se)}let q=o.dynamicFns;(q&&q[T]||z.static)&&(D.push(T),z.dynamicFn=!0)}else D.push(u);n.push({source:u,mode:d,negate:h,customEvent:p,signature:z,dependencies:D,event:m}),s=Ja.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 h;return o.signature?h=er(a,n,s,l,o.signature):n!=o.source?h=J(a,o.source):d&&Ji(n)?h=J(a,n):h=a.__data[n],o.negate&&(h=!h),h}}return t}),dt=[];/**
|
|
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
|
|
@@ -1013,7 +1013,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
1013
1013
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
|
1014
1014
|
* Google as part of the polymer project is also subject to an additional IP
|
|
1015
1015
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1016
|
-
*/const hu="3.5.2",to=window.ShadyCSS&&window.ShadyCSS.cssBuild,cu=B(i=>{const e=du(Ar(i));function t(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let d=l._properties;for(let h in d){let u=d[h];"value"in u&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[h]=u)}}return l.__propertyDefaults}function r(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function a(l,d,h,u){h.computed&&(h.readOnly=!0),h.computed&&(l._hasReadOnlyEffect(d)?console.warn(`Cannot redefine computed property '${d}'.`):l._createComputedProperty(d,h.computed,u)),h.readOnly&&!l._hasReadOnlyEffect(d)?l._createReadOnlyProperty(d,!h.computed):h.readOnly===!1&&l._hasReadOnlyEffect(d)&&console.warn(`Cannot make readOnly property '${d}' non-readOnly.`),h.reflectToAttribute&&!l._hasReflectEffect(d)?l._createReflectedProperty(d):h.reflectToAttribute===!1&&l._hasReflectEffect(d)&&console.warn(`Cannot make reflected property '${d}' non-reflected.`),h.notify&&!l._hasNotifyEffect(d)?l._createNotifyingProperty(d):h.notify===!1&&l._hasNotifyEffect(d)&&console.warn(`Cannot make notify property '${d}' non-notify.`),h.observer&&l._createPropertyObserver(d,h.observer,u[h.observer]),l._addPropertyToAttributeMap(d)}function o(l,d,h,u){if(!to){const p=d.content.querySelectorAll("style"),m=sn(d),y=nc(h),z=d.content.firstElementChild;for(let O=0;O<y.length;O++){let
|
|
1016
|
+
*/const hu="3.5.2",to=window.ShadyCSS&&window.ShadyCSS.cssBuild,cu=B(i=>{const e=du(Ar(i));function t(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let d=l._properties;for(let h in d){let u=d[h];"value"in u&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[h]=u)}}return l.__propertyDefaults}function r(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function a(l,d,h,u){h.computed&&(h.readOnly=!0),h.computed&&(l._hasReadOnlyEffect(d)?console.warn(`Cannot redefine computed property '${d}'.`):l._createComputedProperty(d,h.computed,u)),h.readOnly&&!l._hasReadOnlyEffect(d)?l._createReadOnlyProperty(d,!h.computed):h.readOnly===!1&&l._hasReadOnlyEffect(d)&&console.warn(`Cannot make readOnly property '${d}' non-readOnly.`),h.reflectToAttribute&&!l._hasReflectEffect(d)?l._createReflectedProperty(d):h.reflectToAttribute===!1&&l._hasReflectEffect(d)&&console.warn(`Cannot make reflected property '${d}' non-reflected.`),h.notify&&!l._hasNotifyEffect(d)?l._createNotifyingProperty(d):h.notify===!1&&l._hasNotifyEffect(d)&&console.warn(`Cannot make notify property '${d}' non-notify.`),h.observer&&l._createPropertyObserver(d,h.observer,u[h.observer]),l._addPropertyToAttributeMap(d)}function o(l,d,h,u){if(!to){const p=d.content.querySelectorAll("style"),m=sn(d),y=nc(h),z=d.content.firstElementChild;for(let O=0;O<y.length;O++){let T=y[O];T.textContent=l._processStyleText(T.textContent,u),d.content.insertBefore(T,z)}let D=0;for(let O=0;O<m.length;O++){let T=m[O],q=p[D];q!==T?(T=T.cloneNode(!0),q.parentNode.insertBefore(T,q)):D++,T.textContent=l._processStyleText(T.textContent,u)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,h),Zh&&to&&Yh){const p=d.content.querySelectorAll("style");if(p){let m="";Array.from(p).forEach(y=>{m+=y.textContent,y.parentNode.removeChild(y)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(m)}}}function n(l){let d=null;if(l&&(!ni||Kh)&&(d=wt.import(l,"template"),ni&&!d))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return d}class s extends e{static get polymerElementVersion(){return hu}static _finalizeClass(){e._finalizeClass.call(this);const d=r(this);d&&this.createObservers(d,this._properties),this._prepareTemplate()}static _prepareTemplate(){let d=this.template;d&&(typeof d=="string"?(console.error("template getter must return HTMLTemplateElement"),d=null):rn||(d=d.cloneNode(!0))),this.prototype._template=d}static createProperties(d){for(let h in d)a(this.prototype,h,d[h],d)}static createObservers(d,h){const u=this.prototype;for(let p=0;p<d.length;p++)u._createMethodObserver(d[p],h)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let d=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof d=="function"&&(d=d()),this._template=d!==void 0?d:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(d){this._template=d}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const d=this.importMeta;if(d)this._importPath=Sr(d.url);else{const h=wt.import(this.is);this._importPath=h&&h.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super()}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=Gh,this.importPath=this.constructor.importPath;let d=t(this.constructor);if(d)for(let h in d){let u=d[h];if(this._canApplyPropertyDefault(h)){let p=typeof u.value=="function"?u.value.call(this):u.value;this._hasAccessor(h)?this._setPendingProperty(h,p,!0):this[h]=p}}}_canApplyPropertyDefault(d){return!this.hasOwnProperty(d)}static _processStyleText(d,h){return Ir(d,h)}static _finalizeTemplate(d){const h=this.prototype._template;if(h&&!h.__polymerFinalized){h.__polymerFinalized=!0;const u=this.importPath,p=u?_t(u):"";o(this,h,d,p),this.prototype._bindTemplate(h)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(d){const h=K(this);if(h.attachShadow)return d?(h.shadowRoot||(h.attachShadow({mode:"open",shadyUpgradeFragment:d}),h.shadowRoot.appendChild(d),this.constructor._styleSheet&&(h.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Xh&&window.ShadyDOM&&window.ShadyDOM.flushInitial(h.shadowRoot),h.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(d){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,d)}resolveUrl(d,h){return!h&&this.importPath&&(h=_t(this.importPath)),_t(d,h)}static _parseTemplateContent(d,h,u){return h.dynamicFns=h.dynamicFns||this._properties,e._parseTemplateContent.call(this,d,h,u)}static _addTemplatePropertyEffect(d,h,u){return an&&!(h in this._properties)&&!(u.info.part.signature&&u.info.part.signature.static)&&!u.info.part.hostProp&&!d.nestedTemplate&&console.warn(`Property '${h}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,d,h,u)}}return s});/**
|
|
1017
1017
|
@license
|
|
1018
1018
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
1019
1019
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -1029,7 +1029,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
1029
1029
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
1030
1030
|
Code distributed by Google as part of the polymer project is also
|
|
1031
1031
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
1032
|
-
*/const E=cu(HTMLElement),pu=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Kt=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function mu(){function i(){return!0}return
|
|
1032
|
+
*/const E=cu(HTMLElement),pu=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Kt=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function mu(){function i(){return!0}return Sn(i)}function fu(){try{return _u()?!0:vu()?Kt?!gu():!mu():!1}catch(i){return!1}}function _u(){return localStorage.getItem("vaadin.developmentmode.force")}function vu(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function gu(){return!!(Kt&&Object.keys(Kt).map(i=>Kt[i]).filter(i=>i.productionMode).length>0)}function Sn(i,e){if(typeof i!="function")return;const t=pu.exec(i.toString());if(t)try{i=new Function(t[1])}catch(r){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",r)}return i(e)}window.Vaadin=window.Vaadin||{};const ro=function(i,e){if(window.Vaadin.developmentMode)return Sn(i,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=fu());function bu(){/*! vaadin-dev-mode:start
|
|
1033
1033
|
(function () {
|
|
1034
1034
|
'use strict';
|
|
1035
1035
|
|
|
@@ -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 ao=0,
|
|
1518
|
+
*/let ao=0,Tn=0;const Ue=[];let tr=!1;function wu(){tr=!1;const i=Ue.length;for(let e=0;e<i;e++){const t=Ue[e];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}Ue.splice(0,i),Tn+=i}const xe={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)}},It={run(i){return window.requestAnimationFrame(i)},cancel(i){window.cancelAnimationFrame(i)}},Pn={run(i){return window.requestIdleCallback?window.requestIdleCallback(i):window.setTimeout(i,16)},cancel(i){window.cancelIdleCallback?window.cancelIdleCallback(i):window.clearTimeout(i)}},li={run(i){tr||(tr=!0,queueMicrotask(()=>wu())),Ue.push(i);const e=ao;return ao+=1,e},cancel(i){const e=i-Tn;if(e>=0){if(!Ue[e])throw new Error(`invalid async handle: ${i}`);Ue[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
|
|
1526
|
+
*/const St=new Set;let ie=class ir{static debounce(e,t,r){return e instanceof ir?e._cancelAsync():e=new ir,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,St.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),St.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 An(i){St.add(i)}function xu(){const i=!!St.size;return St.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),i}const mt=()=>{let i;do i=xu();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,11 +1531,11 @@ 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(){yu()};let Mi;const oo=new Set,ae=i=>class extends re(i){static finalize(){super.finalize();const{is:e}=this;e&&!oo.has(e)&&(window.Vaadin.registrations.push(this),oo.add(e),window.Vaadin.developmentModeCallback&&(Mi=ie.debounce(Mi,
|
|
1534
|
+
*/window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){yu()};let Mi;const oo=new Set,ae=i=>class extends re(i){static finalize(){super.finalize();const{is:e}=this;e&&!oo.has(e)&&(window.Vaadin.registrations.push(this),oo.add(e),window.Vaadin.developmentModeCallback&&(Mi=ie.debounce(Mi,Pn,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),An(Mi)))}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 Eu(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 Dn(i){const e=[];let t;return i.localName==="slot"?t=i.assignedElements():(e.push(i),t=[...i.children]),t.forEach(r=>e.push(...Dn(r))),e}function Dr(i){return i?new Set(i.split(" ")):new Set}function _i(i){return i?[...i].join(" "):""}function On(i,e,t){const r=Dr(i.getAttribute(e));r.add(t),i.setAttribute(e,_i(r))}function Iu(i,e,t){const r=Dr(i.getAttribute(e));if(r.delete(t),r.size===0){i.removeAttribute(e);return}i.setAttribute(e,_i(r))}function
|
|
1538
|
+
*/function Eu(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 Dn(i){const e=[];let t;return i.localName==="slot"?t=i.assignedElements():(e.push(i),t=[...i.children]),t.forEach(r=>e.push(...Dn(r))),e}function Dr(i){return i?new Set(i.split(" ")):new Set}function _i(i){return i?[...i].join(" "):""}function On(i,e,t){const r=Dr(i.getAttribute(e));r.add(t),i.setAttribute(e,_i(r))}function Iu(i,e,t){const r=Dr(i.getAttribute(e));if(r.delete(t),r.size===0){i.removeAttribute(e);return}i.setAttribute(e,_i(r))}function Su(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/
|
|
@@ -1543,11 +1543,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
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
|
|
1546
|
+
*/let Tu=0;function At(){return Tu++}/**
|
|
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 Q extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${At()}`}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 Or(r,({addedNodes:a,removedNodes:o})=>{const n=this.multiple?this.nodes:[this.node],s=a.filter(l=>!
|
|
1550
|
+
*/class Q extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${At()}`}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 Or(r,({addedNodes:a,removedNodes:o})=>{const n=this.multiple?this.nodes:[this.node],s=a.filter(l=>!Su(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
|
|
1562
|
+
*/const Pu=i=>i,Vn=typeof document.head.style.touchAction=="string",or="__polymerGestures",zi="__polymerGesturesHandled",nr="__polymerGesturesTouchAction",no=25,so=5,Au=2,Du=["mousedown","mousemove","mouseup","click"],Ou=[0,1,4,2],Vu=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(i){return!1}}();function Mn(i){return Du.indexOf(i)>-1}(function(){try{const i=Object.defineProperty({},"passive",{get(){}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch(i){}})();const Mu=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),zu={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Ae(i){const e=i.type;if(!Mn(e))return!1;if(e==="mousemove"){let t=i.buttons===void 0?1:i.buttons;return i instanceof window.MouseEvent&&!Vu&&(t=Ou[i.which]||0),!!(t&1)}return(i.button===void 0?0:i.button)===0}function Nu(i){if(i.type==="click"){if(i.detail===0)return!0;const e=Ce(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 me={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Lu(i){let e="auto";const t=Nn(i);for(let r=0,a;r<t.length;r++)if(a=t[r],a[nr]){e=a[nr];break}return e}function zn(i,e,t){i.movefn=e,i.upfn=t,document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)}function qe(i){document.removeEventListener("mousemove",i.movefn),document.removeEventListener("mouseup",i.upfn),i.movefn=null,i.upfn=null}const Nn=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:i=>i.composedPath&&i.composedPath()||[],Vr={},Pe=[];function Ru(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 Ce(i){const e=Nn(i);return e.length>0?e[0]:i.target}function Fu(i){const e=i.type,t=i.currentTarget[or];if(!t)return;const r=t[e];if(!r)return;if(!i[zi]&&(i[zi]={},e.startsWith("touch"))){const o=i.changedTouches[0];if(e==="touchstart"&&i.touches.length===1&&(me.touch.id=o.identifier),me.touch.id!==o.identifier)return;Vn||(e==="touchstart"||e==="touchmove")&&$u(i)}const a=i[zi];if(!a.skip){for(let o=0,n;o<Pe.length;o++)n=Pe[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<Pe.length;o++)n=Pe[o],r[n.name]&&!a[n.name]&&(a[n.name]=!0,n[e](i))}}function $u(i){const e=i.changedTouches[0],t=i.type;if(t==="touchstart")me.touch.x=e.clientX,me.touch.y=e.clientY,me.touch.scrollDecided=!1;else if(t==="touchmove"){if(me.touch.scrollDecided)return;me.touch.scrollDecided=!0;const r=Lu(i);let a=!1;const o=Math.abs(me.touch.x-e.clientX),n=Math.abs(me.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():di("track")}}function de(i,e,t){return Vr[e]?(Hu(i,e,t),!0):!1}function Hu(i,e,t){const r=Vr[e],a=r.deps,o=r.name;let n=i[or];n||(i[or]=n={});for(let s=0,l,d;s<a.length;s++)l=a[s],!(Mu&&Mn(l)&&l!=="click")&&(d=n[l],d||(n[l]=d={_count:0}),d._count===0&&i.addEventListener(l,Fu,void 0),d[o]=(d[o]||0)+1,d._count=(d._count||0)+1);i.addEventListener(e,t),r.touchAction&&Ln(i,r.touchAction)}function Mr(i){Pe.push(i),i.emits.forEach(e=>{Vr[e]=i})}function Bu(i){for(let e=0,t;e<Pe.length;e++){t=Pe[e];for(let r=0,a;r<t.emits.length;r++)if(a=t.emits[r],a===i)return t}return null}function Ln(i,e){Vn&&i instanceof HTMLElement&&li.run(()=>{i.style.touchAction=e}),i[nr]=e}function zr(i,e,t){const r=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=t,Pu(i).dispatchEvent(r),r.defaultPrevented){const a=t.preventer||t.sourceEvent;a&&a.preventDefault&&a.preventDefault()}}function di(i){const e=Bu(i);e.info&&(e.info.prevent=!0)}Mr({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){qe(this.info)},mousedown(i){if(!Ae(i))return;const e=Ce(i),t=this,r=o=>{Ae(o)||(ht("up",e,o),qe(t.info))},a=o=>{Ae(o)&&ht("up",e,o),qe(t.info)};zn(this.info,r,a),ht("down",e,i)},touchstart(i){ht("down",Ce(i),i.changedTouches[0],i)},touchend(i){ht("up",Ce(i),i.changedTouches[0],i)}});function ht(i,e,t,r){e&&zr(e,i,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:r,prevent(a){return di(a)}})}Mr({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>Au&&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,qe(this.info)},mousedown(i){if(!Ae(i))return;const e=Ce(i),t=this,r=o=>{const n=o.clientX,s=o.clientY;lo(t.info,n,s)&&(t.info.state=t.info.started?o.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&di("tap"),t.info.addMove({x:n,y:s}),Ae(o)||(t.info.state="end",qe(t.info)),e&&Ni(t.info,e,o),t.info.started=!0)},a=o=>{t.info.started&&r(o),qe(t.info)};zn(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=Ce(i),t=i.changedTouches[0],r=t.clientX,a=t.clientY;lo(this.info,r,a)&&(this.info.state==="start"&&di("tap"),this.info.addMove({x:r,y:a}),Ni(this.info,e,t),this.info.state="track",this.info.started=!0)},touchend(i){const e=Ce(i),t=i.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),Ni(this.info,e,t))}});function lo(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>=so||a>=so}function Ni(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),zr(e,"track",{state:i.state,x:t.clientX,y:t.clientY,dx:o,dy:n,ddx:s,ddy:l,sourceEvent:t,hover(){return Ru(t.clientX,t.clientY)}})}Mr({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){Ae(i)&&(this.info.x=i.clientX,this.info.y=i.clientY)},click(i){Ae(i)&&ho(this.info,i)},touchstart(i){const e=i.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(i){ho(this.info,i.changedTouches[0],i)}});function ho(i,e,t){const r=Math.abs(e.clientX-i.x),a=Math.abs(e.clientY-i.y),o=Ce(t||e);!o||zu[o.localName]&&o.hasAttribute("disabled")||(isNaN(r)||isNaN(a)||r<=no&&a<=no||Nu(e))&&(i.prevent||zr(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/
|
|
@@ -3401,7 +3401,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
3401
3401
|
* @license
|
|
3402
3402
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3403
3403
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
3404
|
-
*/const Xn=()=>Array.from(document.body.children).filter(i=>i instanceof HTMLElement&&i._hasOverlayStackMixin&&!i.hasAttribute("closing")).sort((i,e)=>i.__zIndex-e.__zIndex||0),pr=()=>Xn().filter(i=>i.$.overlay),
|
|
3404
|
+
*/const Xn=()=>Array.from(document.body.children).filter(i=>i instanceof HTMLElement&&i._hasOverlayStackMixin&&!i.hasAttribute("closing")).sort((i,e)=>i.__zIndex-e.__zIndex||0),pr=()=>Xn().filter(i=>i.$.overlay),Sp=i=>i===pr().pop(),Qn=i=>class extends i{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return Sp(this)}bringToFront(){let e="";const t=Xn().filter(r=>r!==this).pop();t&&(e=t.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),pr().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=pr();let t;for(;(t=e.pop())&&!(t!==this&&(t.$.overlay.style.removeProperty("pointer-events"),!t.modeless)););}};/**
|
|
3405
3405
|
* @license
|
|
3406
3406
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
3407
3407
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
@@ -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
|
|
3412
|
+
*/function Tp(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:h,height:u}=i.getBoundingClientRect();if(n||e(),!h||!u)return;const p=Math.floor(d),m=Math.floor(r.clientWidth-(l+h)),y=Math.floor(r.clientHeight-(d+u)),z=Math.floor(l),D={rootMargin:`${-p}px ${-m}px ${-y}px ${-z}px`,threshold:Math.max(0,Math.min(1,s))||1};let O=!0;function T(q){let j=q[0].intersectionRatio;if(j!==s){if(!O)return o();j===0&&(j=1e-7),o(!1,j)}O=!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 Hi={start:"top",end:"bottom"},Bi={start:"left",end:"right"},uo=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),Kr=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=Eu(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=
|
|
3416
|
+
*/const Hi={start:"top",end:"bottom"},Bi={start:"left",end:"right"},uo=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),Kr=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=Eu(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=Tp(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,uo.unobserve(t),e&&(this.__addUpdatePositionEventListeners(),t.__overlay=this,uo.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,Hi,this,t),l=this.__calculatePositionInOneDimension(e,n,this.noHorizontalOverlap,Bi,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,Bi)}__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,Hi)}__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],h=o?l:d,u=h>(o?d:l)||h>t;return o===u}__adjustBottomProperty(e,t,r){let a;if(e===t.end){if(t.end===Hi.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===Bi.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]),h=this.__adjustBottomProperty(s,a,d),u=t[n?a.start:a.end]-e[r===n?a.end:a.start],p=h?`${h}px`:`${d+u*(n?-1:1)}px`;return{[s]:p,[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
|
|
3420
|
+
*/const Pp=i=>class extends Kr(zt(i)){_shouldCloseOnOutsideClick(e){return!e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Rr(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",[Mt,Ap],{moduleId:"vaadin-date-picker-overlay-styles"});class Dp extends
|
|
3443
|
+
*/g("vaadin-date-picker-overlay",[Mt,Ap],{moduleId:"vaadin-date-picker-overlay-styles"});class Dp extends Pp(re(M(E))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return k`
|
|
3444
3444
|
<div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
|
|
3445
3445
|
<div part="overlay" id="overlay">
|
|
3446
3446
|
<div part="content" id="content">
|
|
@@ -3544,7 +3544,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
3544
3544
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
3545
3545
|
Code distributed by Google as part of the polymer project is also
|
|
3546
3546
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3547
|
-
*/class hi{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,
|
|
3547
|
+
*/class hi{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,Tt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Tt.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}static debounce(e,t,r){return e instanceof hi?e._cancelAsync():e=new hi,e.setConfig(t,r),e}}let Tt=new Set;const Rp=function(i){Tt.add(i)},Fp=function(){const i=!!Tt.size;return Tt.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),i};/**
|
|
3548
3548
|
@license
|
|
3549
3549
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
3550
3550
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
@@ -4362,11 +4362,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
4362
4362
|
--_vaadin-combo-box-items-container-border-width: var(--lumo-space-xs);
|
|
4363
4363
|
--_vaadin-combo-box-items-container-border-style: solid;
|
|
4364
4364
|
}
|
|
4365
|
-
`],{moduleId:"lumo-combo-box-overlay"});const
|
|
4365
|
+
`],{moduleId:"lumo-combo-box-overlay"});const Sm=f`
|
|
4366
4366
|
[part='toggle-button']::before {
|
|
4367
4367
|
content: var(--lumo-icons-dropdown);
|
|
4368
4368
|
}
|
|
4369
|
-
`;g("vaadin-combo-box",[Ne,
|
|
4369
|
+
`;g("vaadin-combo-box",[Ne,Sm],{moduleId:"lumo-combo-box"});/**
|
|
4370
4370
|
* @license
|
|
4371
4371
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
4372
4372
|
* 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
|
|
4377
|
+
*/class Tm extends fs(M(re(E))){static get template(){return k`
|
|
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"}}w(
|
|
4391
|
+
`}static get is(){return"vaadin-combo-box-item"}}w(Tm);/**
|
|
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
|
|
4399
|
+
*/const Pm=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",[Mt,
|
|
4409
|
+
`;g("vaadin-combo-box-overlay",[Mt,Pm],{moduleId:"vaadin-combo-box-overlay-styles"});class Am extends _s(zt(re(M(E)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return k`
|
|
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 _o=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),Dm=_o&&_o[1]>=8,vo=3,Om={_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),li)}},_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 h=this._physicalBottom+this._scrollOffset,u=this._scrollPosition,p=this._scrollBottom;for(i?(e=this._physicalStart,t=u-d):(e=this._physicalEnd,t=h-p);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<=p)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,vo,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)),
|
|
4427
|
+
*/const _o=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),Dm=_o&&_o[1]>=8,vo=3,Om={_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),li)}},_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 h=this._physicalBottom+this._scrollOffset,u=this._scrollPosition,p=this._scrollBottom;for(i?(e=this._physicalStart,t=u-d):(e=this._physicalEnd,t=h-p);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<=p)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,vo,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)),Pn):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,t),li))}},_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(vo))},_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,It))},_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;!Dm&&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||(mt(),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)},It)},_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]=ie.debounce(this._debouncers[i],t,e.bind(this)),An(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/
|
|
@@ -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
|
|
5444
|
+
*/const Ss=i=>class extends of(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&&!dr(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 Or(e,()=>{this._setItems(this._filterItems(Dn(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=ie.debounce(this._searchReset,xe.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=Is(this._scrollerElement,t)+e;af(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 nf extends
|
|
5448
|
+
*/class nf extends Ss(M(re(ue(E)))){static get is(){return"vaadin-select-list-box"}static get template(){return k`
|
|
5449
5449
|
<style>
|
|
5450
5450
|
:host {
|
|
5451
5451
|
display: flex;
|
|
@@ -5634,7 +5634,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5634
5634
|
<div class="sr-only">
|
|
5635
5635
|
<slot name="sr-label"></slot>
|
|
5636
5636
|
</div>
|
|
5637
|
-
`}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),Ei(this)}_rendererChanged(e,t){t&&(t.renderer=e||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}w(ff);const
|
|
5637
|
+
`}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),Ei(this)}_rendererChanged(e,t){t&&(t.renderer=e||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}w(ff);const Ts=f`
|
|
5638
5638
|
/* Optical centering */
|
|
5639
5639
|
:host::before,
|
|
5640
5640
|
:host::after {
|
|
@@ -5734,7 +5734,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
5734
5734
|
transform: scale(1.02);
|
|
5735
5735
|
}
|
|
5736
5736
|
}
|
|
5737
|
-
`;g("vaadin-dialog-overlay",[et,
|
|
5737
|
+
`;g("vaadin-dialog-overlay",[et,Ts],{moduleId:"lumo-dialog"});g("vaadin-confirm-dialog-overlay",[et,Ts,f`
|
|
5738
5738
|
[part='header'] ::slotted(h3) {
|
|
5739
5739
|
margin-top: 0 !important;
|
|
5740
5740
|
margin-bottom: 0 !important;
|
|
@@ -6565,11 +6565,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
6565
6565
|
* @license
|
|
6566
6566
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
6567
6567
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6568
|
-
*/const
|
|
6568
|
+
*/const Sf=i=>class extends Cs(Ss(i)){static get properties(){return{orientation:{value:"horizontal",type:String,reflectToAttribute:!0,sync:!0},selected:{value:0,type:Number}}}static get observers(){return["__tabsItemsChanged(items)"]}constructor(){super(),this.__itemsResizeObserver=new ResizeObserver(()=>{setTimeout(()=>this._updateOverflow())})}get _scrollOffset(){return this._vertical?this._scrollerElement.offsetHeight:this._scrollerElement.offsetWidth}get _scrollerElement(){return this.$.scroll}get __direction(){return!this._vertical&&this.__isRTL?1:-1}ready(){super.ready(),this._scrollerElement.addEventListener("scroll",()=>this._updateOverflow()),this.setAttribute("role","tablist"),Yr(this,()=>{this._updateOverflow()})}_onResize(){this._updateOverflow()}__tabsItemsChanged(e){this.__itemsResizeObserver.disconnect(),(e||[]).forEach(t=>{this.__itemsResizeObserver.observe(t)}),this._updateOverflow()}_scrollForward(){const e=this._getNavigationButtonVisibleWidth("forward-button"),t=this._getNavigationButtonVisibleWidth("back-button"),r=this._scrollerElement.getBoundingClientRect(),a=[...this.items].reverse().find(s=>this._isItemVisible(s,e,t,r)).getBoundingClientRect(),o=20+this.shadowRoot.querySelector('[part="back-button"]').clientWidth;let n;if(this.__isRTL){const s=r.right-o;n=a.right-s}else{const s=r.left+o;n=a.left-s}-this.__direction*n<1&&(n=-this.__direction*(this._scrollOffset-o)),this._scroll(n)}_scrollBack(){const e=this._getNavigationButtonVisibleWidth("forward-button"),t=this._getNavigationButtonVisibleWidth("back-button"),r=this._scrollerElement.getBoundingClientRect(),a=this.items.find(s=>this._isItemVisible(s,e,t,r)).getBoundingClientRect(),o=20+this.shadowRoot.querySelector('[part="forward-button"]').clientWidth;let n;if(this.__isRTL){const s=r.left+o;n=a.left-s}else{const s=r.right-o;n=a.right-s}this.__direction*n<1&&(n=this.__direction*(this._scrollOffset-o)),this._scroll(n)}_isItemVisible(e,t,r,a){if(this._vertical)throw new Error("Visibility check is only supported for horizontal tabs.");const o=this.__isRTL?r:t,n=this.__isRTL?t:r,s=a.right-o,l=a.left+n,d=e.getBoundingClientRect();return s>Math.floor(d.left)&&l<Math.ceil(d.right)}_getNavigationButtonVisibleWidth(e){const t=this.shadowRoot.querySelector(`[part="${e}"]`);return window.getComputedStyle(t).opacity==="0"?0:t.clientWidth}_updateOverflow(){const e=this._vertical?this._scrollerElement.scrollTop:Is(this._scrollerElement,this.getAttribute("dir")),t=this._vertical?this._scrollerElement.scrollHeight:this._scrollerElement.scrollWidth;let r=Math.floor(e)>1?"start":"";Math.ceil(e)<Math.ceil(t-this._scrollOffset)&&(r+=" end"),this.__direction===1&&(r=r.replace(/start|end/giu,a=>a==="start"?"end":"start")),r?this.setAttribute("overflow",r.trim()):this.removeAttribute("overflow")}};/**
|
|
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
|
|
6572
|
+
*/const Tf=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",
|
|
6652
|
+
*/g("vaadin-tabs",Tf,{moduleId:"vaadin-tabs-styles"});class Pf extends Sf(ae(M(E))){static get template(){return k`
|
|
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"}}w(Sf);const Af=":host{display:block;height:100%}",Df=Af,Ss=class{constructor(i){c.registerInstance(this,i),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.dateFormat=void 0,this.translationUrl="",this.emitOnClick=!1,this.twofaDestination=void 0,this.twofaResendIntervalSeconds=60,this.haspostalcodelookup=void 0,this.postalcodelength=void 0,this.addresses=[]}connectedCallback(){this.translationUrl&&qs(this.translationUrl)}renderInput(){var i;switch((i=this.type)===null||i===void 0?void 0:i.toLowerCase()){case"text":return this.haspostalcodelookup&&this.name==="PostalCode"?c.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}):c.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});case"email":return c.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});case"number":return c.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});case"checkbox":return c.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});case"checkboxgroup":return c.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});case"togglecheckbox":return c.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});case"datetime":return c.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});case"password":return c.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});case"radio":return c.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});case"tel":return c.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});case"dropdown":return c.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});case"twofa":return c.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});default:return c.h("p",null,"The ",this.type," input type is not valid")}}render(){return c.h(c.Host,{key:"7f268156d7372f46b27b38762a2c01281ada038c",class:`general-input--${this.name}`,onClick:this.handleClick},this.renderInput())}};Ss.style=Df;const Of='*,*::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}',Vf=Of,As=class{constructor(i){c.registerInstance(this,i),this.sendValidityState=c.createEvent(this,"sendValidityState"),this.sendInputValue=c.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.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(i,e){i!==e&&this.setClientStyling()}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()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){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?c.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"),c.h("div",{key:"f0e6e6edb5d8e3f509474ef5536cb7ef717a5ee9",class:`number__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},c.h("div",{key:"c991d1e6ed0f9910104b46105daad5332200ee21",class:"number__wrapper--flex"},c.h("label",{key:"d6912229dac4712f4f8e77a90f7ba0ebb7dd5548",class:`number__label ${this.validation.mandatory?"number__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),c.h("div",{key:"5733806c60cad364e61fc66e25f89a44159e8ad9",class:"number__wrapper--relative"},this.tooltip&&c.h("img",{key:"7ba9ca8048d04c41f800fccf03297e2db9a9115d",class:"number__tooltip-icon",src:ne,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),c.h("input",{key:"32c782d0fd58b6507a0e3fbcc8f934f2c4e8e1d7",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}),c.h("small",{key:"2167549cb0c3ea2440b72c9219b599b1d49c9026",class:"number__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};As.style=Vf;const Mf=`*,
|
|
6660
|
+
`}static get is(){return"vaadin-tabs"}}w(Pf);const Af=":host{display:block;height:100%}",Df=Af,Ps=class{constructor(i){c.registerInstance(this,i),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.dateFormat=void 0,this.translationUrl="",this.emitOnClick=!1,this.twofaDestination=void 0,this.twofaResendIntervalSeconds=60,this.haspostalcodelookup=void 0,this.postalcodelength=void 0,this.addresses=[],this.ignoreCountry=!1}connectedCallback(){this.translationUrl&&qs(this.translationUrl)}renderInput(){var i;switch((i=this.type)===null||i===void 0?void 0:i.toLowerCase()){case"text":return this.haspostalcodelookup&&this.name==="PostalCode"?c.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}):c.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});case"email":return c.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});case"number":return c.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});case"checkbox":return c.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});case"checkboxgroup":return c.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});case"togglecheckbox":return c.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});case"datetime":return c.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});case"password":return c.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});case"radio":return c.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});case"tel":return c.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});case"dropdown":return c.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});case"twofa":return c.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});default:return c.h("p",null,"The ",this.type," input type is not valid")}}render(){return c.h(c.Host,{key:"ee5eae5b620c2818dda1aa5f547b06efce171360",class:`general-input--${this.name}`,onClick:this.handleClick},this.renderInput())}};Ps.style=Df;const Of='*,*::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}',Vf=Of,As=class{constructor(i){c.registerInstance(this,i),this.sendValidityState=c.createEvent(this,"sendValidityState"),this.sendInputValue=c.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.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(i,e){i!==e&&this.setClientStyling()}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()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){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?c.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"),c.h("div",{key:"f0e6e6edb5d8e3f509474ef5536cb7ef717a5ee9",class:`number__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},c.h("div",{key:"c991d1e6ed0f9910104b46105daad5332200ee21",class:"number__wrapper--flex"},c.h("label",{key:"d6912229dac4712f4f8e77a90f7ba0ebb7dd5548",class:`number__label ${this.validation.mandatory?"number__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),c.h("div",{key:"5733806c60cad364e61fc66e25f89a44159e8ad9",class:"number__wrapper--relative"},this.tooltip&&c.h("img",{key:"7ba9ca8048d04c41f800fccf03297e2db9a9115d",class:"number__tooltip-icon",src:ne,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),c.h("input",{key:"32c782d0fd58b6507a0e3fbcc8f934f2c4e8e1d7",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}),c.h("small",{key:"2167549cb0c3ea2440b72c9219b599b1d49c9026",class:"number__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};As.style=Vf;const Mf=`*,
|
|
6661
6661
|
*::before,
|
|
6662
6662
|
*::after {
|
|
6663
6663
|
padding: 0;
|
|
@@ -6849,7 +6849,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
6849
6849
|
}
|
|
6850
6850
|
.password__tooltip.visible {
|
|
6851
6851
|
opacity: 1;
|
|
6852
|
-
}`,zf=Mf,Ds=class{constructor(i){c.registerInstance(this,i),this.sendOriginalValidityState=c.createEvent(this,"sendOriginalValidityState"),this.sendValidityState=c.createEvent(this,"sendValidityState"),this.sendInputValue=c.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.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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.isValid=void 0,this.errorMessage=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.passwordComplexity=void 0,this.showPopup=void 0,this.value=""}handleStylingChange(i,e){i!==e&&this.setClientStyling()}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)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.element.shadowRoot.querySelector("input"),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}})}setValidity(){var i,e;return this.noValidation?!0:this.isDuplicateInput&&this.duplicateInputValue!==this.value?!1:!((i=this.passwordComplexity)===null||i===void 0)&&i.every(t=>t.passed)?(e=this.inputReference)===null||e===void 0?void 0:e.validity.valid:!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;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.valueMissing)return b("requiredError",this.language);if(this.isDuplicateInput&&!this.originalValid)return b("invalidOriginalPasswordError",this.language);if(this.inputReference.validity.patternMismatch){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)?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}if(!(!((a=this.passwordComplexity)===null||a===void 0)&&a.every(o=>o.passed))&&!this.showPopup)return b("invalidPassword",this.language)}renderTooltip(){return this.showTooltip?c.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 c.h("div",{class:`password__complexity ${this.showPopup?"":"password__complexity--hidden"}`},c.h("div",{class:"password__complexity--strength"},c.h("p",{class:"password__complexity--text"},b("passwordStrength",this.language)," ",c.h("span",{class:"password__complexity--text-bold"},b(`${r?"passwordStrengthStrong":"passwordStrengthWeak"}`,this.language))),c.h("meter",{value:t,min:"0",max:"1"})),c.h("div",null,this.passwordComplexity.map((a,o)=>c.h("div",{key:o},c.h("input",{class:"password__complexity--checkbox",type:"checkbox",checked:a.passed,disabled:!0}),c.h("span",null,b(`${a.ruleKey}`,this.language)?b(`${a.ruleKey}`,this.language):a.rule)))))}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),c.h("div",{key:"db7a6a87af3de451485c603a2f28f25806838d20",class:`password__wrapper ${this.autofilled?"password__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},c.h("div",{key:"146ace196e1343f778232c0e2ff07556c0a09e1e",class:"password__wrapper--flex"},c.h("label",{key:"0d0cb672dfc7a43535a299b45752f43a87f73760",class:`password__label ${this.validation.mandatory?"password__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),c.h("div",{key:"1eac72dfdadd0f50bd2db6b0fc44320dd2f287bf",class:"password__wrapper--relative"},this.tooltip&&c.h("img",{key:"bb327b9a403c1fc5628c4ba2da8d1a2b62888db5",class:"password__tooltip-icon",src:ne,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),c.h("vaadin-password-field",{key:"7962f122d1bfb0ac0a5176a743e1224dccba4910",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&&c.h("small",{key:"efadfea8911ba72161aef495d1fb5857f14a319b",class:"password__error-message"},this.errorMessage),this.passwordComplexity&&this.showPopup&&!this.hidePasswordComplexity&&!this.isDuplicateInput&&this.renderComplexityPopup())}get element(){return c.getElement(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],value:["valueChanged"],emitValue:["emitValueHandler"]}}};Ds.style=zf;const Nf='*,*::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)}}',Lf=Nf,Os=class{constructor(i){c.registerInstance(this,i),this.sendAddressValue=c.createEvent(this,"sendAddressValue"),this.sendValidityState=c.createEvent(this,"sendValidityState"),this.sendInputValue=c.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.street}`.trim(),a=`${t.number}`.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.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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.isValid=void 0,this.errorMessage="",this.limitStylingAppends=!1,this.showTooltip=!1,this.selectedCountryCode="",this.currentPostalCode="",this.openAddressDropdown=!1,this.showNoResultsMessage=!1,this.refreshTrigger=0,this.isFetchingAddresses=!1}handleStylingChange(i,e){i!==e&&this.setClientStyling()}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()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.defaultValue&&(this.value=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("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.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?c.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||this.currentPostalCode||sessionStorage.getItem("currentPostalCode")||this.defaultValue}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",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 c.h("div",{key:"9618edb268c4c1cffa450bb3dbd778ab5197e6f3",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:s=>this.stylingContainer=s},c.h("div",{key:"932d83f8895024ba1d7490e01505b651625def00",class:"text__wrapper--flex"},c.h("label",{key:"0c2281a6670fda698469815be19d0e99b18dbe65",class:`text__label ${this.validation.mandatory?"text__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),c.h("div",{key:"70eacd1179b9b9dc0def1cd18fab22bd090999b0",class:"text__wrapper--relative"},this.tooltip&&c.h("img",{key:"1237da82659dc9558020b0675a1a645c500f77de",class:"text__tooltip-icon",src:ne,alt:"",ref:s=>this.tooltipIconReference=s,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),c.h("div",{key:"65db0837d507b90217802e6f6d08800ae91404c6",class:"input__text-wrapper"},c.h("input",{key:"4c05c552d1d1dfe70fb872d44c0f2bc3f4c62c31",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&&c.h("p",{key:"c0f93584fa3f970a27793178517807968a03d252",class:"address__manual-input-msg",onClick:()=>this.enterAddressManually()},b("enterIEAddressManually",this.language)),a&&c.h("div",{key:"2f24716dbc7b5ed8f70f0f61a787c97fa75d3fba",class:"input__addresses-container",ref:s=>this.addressesDropdownRef=s},c.h("div",{key:"63b89521d94589aeb082f2ee98f31c0508c3b070",class:"options"},this.addresses.map((s,l)=>c.h("div",{key:l,class:"option",onClick:d=>this.handlePostalCode(d,s)},s.street," ",s.number," ",s.city)))),n&&c.h("div",{key:"d1f3deaf9936e00ff05ac37d635a3dadb11a0db8",class:"postalcode__loading-spinner"},c.h("div",{key:"ee7c1a5275b8e5824a9e3ffbd39d1476ced9d0a1",class:"loading-spinner"}),c.h("span",{key:"198c01371a98fa07d35ff64fad5714176ffdcb0d"},b("searchingForAddresses",this.language))),o&&c.h("div",{key:"e4f098805673d2708bb3fe2ff6dccc61308fc27a",class:"postalcode__no-results-message"},b("postalLookUpNoAddressFound",this.language))),c.h("small",{key:"e84296325688a134e49f521ecfa1ff44ed13fcc9",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"],addresses:["handleAddresses"]}}};Os.style=Lf;const Rf="*,*::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}",Ff=Rf,Vs=class{constructor(i){c.registerInstance(this,i),this.sendInputValue=c.createEvent(this,"sendInputValue"),this.sendValidityState=c.createEvent(this,"sendValidityState"),this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(i,e){i!==e&&this.setClientStyling()}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)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}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?c.h("div",{class:`radio__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return c.h("fieldset",{key:"88357307488334074a397c636210575b8af1e2c3",class:`radio__fieldset ${this.name}__input`,ref:i=>this.stylingContainer=i},c.h("legend",{key:"25f656d5b155c392cad79c89410833c3491531f8",class:"radio__legend"},this.displayName,":"),this.optionsGroup.map(i=>c.h("div",{class:"radio__wrapper"},c.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)}),c.h("label",{htmlFor:`${i.label}__input`},i.label))),c.h("small",{key:"08def575050905f964d6921d4ed4f071fccdf4da",class:"radio__error-message"},this.errorMessage),this.tooltip&&c.h("img",{key:"485fa4888f626f1cf44f179f498f257af6c41b58",class:"radio__tooltip-icon",src:ne,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Vs.style=Ff;const $f='*,*::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}',Hf=$f,Ms=class{constructor(i){c.registerInstance(this,i),this.sendValidityState=c.createEvent(this,"sendValidityState"),this.sendInputValue=c.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.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(i,e){i!==e&&this.setClientStyling()}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})}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.vaadinCombo.querySelector("input"),this.defaultValue&&(this.value=this.defaultValue.toUpperCase(),this.valueHandler({name:this.name,value:this.value}),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?c.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"),c.h("div",{key:"68a8d63f045706ea65a8a9edf3aeec381ff93c52",class:`select__wrapper ${this.autofilled?"select__wrapper--autofilled":""} ${this.name}__input`,ref:r=>this.stylingContainer=r},c.h("div",{key:"1e4c7d1ad9add75ff495ab2aec2bc1556339c8d7",class:"select__wrapper--flex"},c.h("label",{key:"8698e76f945ed1c9d94597ca9f12d8c03d54ce31",class:"select__label",htmlFor:`${this.name}__input`},`${this.displayName} ${this.validation.mandatory?"*":""}`),c.h("div",{key:"bf34dd8c2155e9eca8d9da427e9775ee5685c3c6",class:"select__wrapper--relative"},this.tooltip&&c.h("img",{key:"f396770070f3e2710120bb87d059f78aa1b5e372",class:"select__tooltip-icon",src:ne,alt:"",ref:r=>this.tooltipIconReference=r,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),this.isComboBox?c.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}):c.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}),c.h("small",{key:"21327ad926828b95552046b42ac14f69d7012513",class:"select__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Ms.style=Hf;const Bf='*,*::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}',Uf=Bf,zs=class{constructor(i){c.registerInstance(this,i),this.sendValidityState=c.createEvent(this,"sendValidityState"),this.sendInputValue=c.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.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.touched||(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0)},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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.isValid=void 0,this.errorMessage=void 0,this.limitStylingAppends=!1,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)}handleStylingChange(i,e){i!==e&&this.setClientStyling()}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)}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})}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.setValidity(),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)}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.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}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.valueMissing)return b("requiredError",this.language)}renderTooltip(){return this.showTooltip?c.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"),c.h("div",{key:"9b01d1059b470ec9f57c6f852df12aa17d7a58e2",class:`tel__wrapper ${this.autofilled?"tel__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},c.h("div",{key:"7ad94c73b7b14f63d1b0aa395cd4b2220d80bf7f",class:"tel__wrapper--flex-label"},c.h("label",{key:"2995bfd5f655c71a454281edf967ab4afff2b61c",class:`tel__label ${this.validation.mandatory?"tel__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),c.h("div",{key:"45c874ffd76f0c56eb971728acc6bcf3c31afc64",class:"tel__wrapper--relative"},this.tooltip&&c.h("img",{key:"3ecfbb61507ea4fbe02c804679293adf7961ce18",class:"tel__tooltip-icon",src:ne,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),c.h("div",{key:"b2dc1d8af7ea60bc56347ae73c315cf5539d6e7a",class:`tel__wrapper--flex ${e}`},c.h("vaadin-combo-box",{key:"3ad4d43799026bd4f3b06d9ad94eee17e81daced",class:"tel__prefix",items:this.phoneCodesOptions,value:this.prefixValue,readOnly:this.disablePhonePrefix,onChange:t=>this.handlePrefixInput(t)}),c.h("input",{key:"6773fa69b3f657ccc4798db91b3c9966ef1ad6bc",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})),c.h("small",{key:"799b137bb4cf96cb7cffa77a6934eeab3e34f4ee",class:"tel__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};zs.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}.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,Ns=class{constructor(i){c.registerInstance(this,i),this.sendValidityState=c.createEvent(this,"sendValidityState"),this.sendInputValue=c.createEvent(this,"sendInputValue"),this.value="",this.validationPattern="",this.duplicateInputValue=null,this.postalcodelength=5,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.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)},500)},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.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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.isValid=void 0,this.errorMessage="",this.limitStylingAppends=!1,this.showTooltip=!1,this.selectedCountryCode=""}handleStylingChange(i,e){i!==e&&this.setClientStyling()}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.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())}handleValidationChange(i){i.detail.field===this.name&&(this.validation=i.detail.validation,this.validationPattern=this.setPattern(),this.touched&&(this.isValid=this.setValidity(),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.isValid=!0,this.valueHandler({name:this.name,value:a}),this.validityStateHandler({valid:!0,name:this.name})}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){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.setValidity()}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,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.value.match(this.validationPattern)==null){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)||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?c.h("div",{class:`text__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid");const e=this.value||this.defaultValue;return c.h("div",{key:"2126d45a756f9f10a1428f6f2f296d119833949e",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:t=>this.stylingContainer=t},c.h("div",{key:"86adc0243bf02a5d68e8fe2ad25fddbf042041ca",class:"text__wrapper--flex"},c.h("label",{key:"81bf4d3010bd780471d97d7356062ed6c762151b",class:`text__label ${this.validation.mandatory?"text__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),c.h("div",{key:"2b1cc8ad108901ab8bd0d42b5d59d5f59faf923c",class:"text__wrapper--relative"},this.tooltip&&c.h("img",{key:"dc3714a7e7924972454c0532ced7c1928f998e01",class:"text__tooltip-icon",src:ne,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),c.h("input",{key:"c615746d8604f9ef6fb1ec2ad3075ba4aa1dc928",name:this.name,id:`${this.name}__input`,value:e,type:"text",class:`text__input ${i}`,placeholder:`${this.placeholder}`,ref:t=>this.inputReference=t,readOnly:this.autofilled,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),c.h("small",{key:"4f4e50d2593f32a40ec8c71aa452ac890cb51751",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Ns.style=jf;const Wf='*,*::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}',Yf=Wf,Ls=class{constructor(i){c.registerInstance(this,i),this.sendValidityState=c.createEvent(this,"sendValidityState"),this.sendInputValue=c.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.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.showFields=this.defaultValue==="true"}handleStylingChange(i,e){i!==e&&this.setClientStyling()}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)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){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 c.h("label",{class:"togglecheckbox__label",htmlFor:`${this.name}__input`},c.h("div",{class:"togglecheckbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?c.h("div",{class:`togglecheckbox__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return c.h("div",{key:"58e1c4145712f9547f59eaf43015d46c13e04f2c",class:`togglecheckbox__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},c.h("div",{key:"5230bc70f55ee7d3d4db2eed2b17c3e4f3ce9a23",class:"togglecheckbox__wrapper--flex"},c.h("input",{key:"063c24818b3f4c5fa8362751640c8e51b9ff2868",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()),c.h("small",{key:"df35a1484f167b4bad9e4c82d82e069260be6608",class:"togglecheckbox__error-message"},this.errorMessage),c.h("div",{key:"6783791e9d5e882cc47cfdf501737c0309deb9ec",class:"togglecheckbox__wrapper--relative"},this.tooltip&&c.h("img",{key:"8bc868f9d6828fe65a6ad684c0c50d6dbf434239",class:"togglecheckbox__tooltip-icon",src:ne,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),c.h("div",{key:"9258e49a1730b9bcec06ae2be98644a729a8741b",class:`togglecheckbox__fields-wrapper ${this.showFields?"":"hidden"}`},this.options.map(i=>c.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,tooltip:i.tooltip,placeholder:i.placeholder==null?"":i.placeholder,ref:e=>this.subFieldsObject[i.name]=e}))))}static get watchers(){return{clientStyling:["handleStylingChange"]}}};Ls.style=Yf;const Gf="*,*::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}",Kf=Gf,Rs=class{constructor(i){c.registerInstance(this,i),this.sendValidityState=c.createEvent(this,"sendValidityState"),this.sendInputValue=c.createEvent(this,"sendInputValue"),this.resendCode=c.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,a=r.value;if(a.length>1?r.value=a.charAt(1):r.value=a.charAt(0),!a)return;this.code[t]=r.value;const o=this.inputRefs[t+1];o&&o.focus(),this.setValidity(),this.setErrorMessage()},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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.limitStylingAppends=!1,this.isValid=!1,this.isResendButtonAvailable=!0,this.showTooltip=!1,this.errorMessage="",this.code=[],this.resendIntervalSecondsLeft=this.resendIntervalSeconds}handleStylingChange(i,e){i!==e&&this.setClientStyling()}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("")})}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)}connectedCallback(){this.validationPattern=this.setPattern(),this.code=new Array(this.validation.maxLength).fill("")}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.setValidity()}handleKeyDown(i,e){if(i.key==="Backspace"){this.code[e]="",this.inputRefs[e]&&(this.inputRefs[e].value="");const t=this.inputRefs[e-1];t&&(t==null||t.focus())}this.setValidity(),this.setErrorMessage()}handlePaste(i){var e;i.preventDefault();const t=(e=i.clipboardData)===null||e===void 0?void 0:e.getData("text").trim();if(!t)return;const r=t.slice(0,this.validation.maxLength).split("");this.code=[...r,...new Array(this.validation.maxLength-r.length).fill("")],r.forEach((o,n)=>{this.inputRefs[n].value=o});const a=this.inputRefs[Math.min(r.length,this.inputRefs.length-1)];a&&a.focus(),this.setValidity(),this.setErrorMessage()}setValidity(){const i=this.code.join(""),e=i.length===this.validation.maxLength,t=i.match(this.validationPattern)!==null;this.isValid=e&&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;if(this.code.join("").match(this.validationPattern)!==null)this.errorMessage="";else{const t=(i=this.validation.custom.find(r=>r.rule==="regex"))===null||i===void 0?void 0:i.errorKey;t&&(this.errorMessage=b(t,this.language))}}renderTooltip(){return this.showTooltip?c.h("div",{class:`text__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return c.h("div",{key:"8672e39d15057a9e866ba1cb79e50f2d319aa989",class:"twofa",ref:i=>this.stylingContainer=i},c.h("div",{key:"ae7f658dd357340918e6f9565934660b3ef944ac",class:"twofa__error-message"},c.h("p",{key:"8ef6aecdc7a31b1c4b801f69c8970b8df79bd127"},this.errorMessage)),c.h("div",{key:"86966527af6e1c3313847f0ae07f89d3ae3411fb",class:"twofa__description",innerHTML:b("twofaDescription",this.language,{values:{destination:this.destination}})}),c.h("div",{key:"e8ebb1da615c25ddce6e06c4aee158355dc433c3",class:"twofa__input-wrapper",ref:this.setContainerRef},this.code.map((i,e)=>c.h("input",{key:e,ref:t=>this.setInputRef(t,e),id:`otp-input-${e}`,type:"text",maxLength:2,value:i,onInput:t=>this.handleInput(t,e),onKeyDown:t=>this.handleKeyDown(t,e),onPaste:t=>this.handlePaste(t)}))),c.h("div",{key:"707d2423dd21097dbc591bd15fbf57b5c2e7bddc",class:"twofa__button-wrapper"},c.h("p",{key:"abc31161f53c6b41aef93b0f27fefced03bac990",class:"twofa__resend-message"},b("twofaResendMessage",this.language)),c.h("button",{key:"3f7e329e16a524a4849ffb6b98e0df2f4dec136c",class:"twofa__resend-button",onClick:this.resendCodeHandler,disabled:!this.isResendButtonAvailable},this.isResendButtonAvailable?b("twofaResendButton",this.language):this.formatTime())))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Rs.style=Kf;const Xf=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{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)}.Circle{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%}.Text{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)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{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)}.Image{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)}.Logo{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)}}",Qf=Xf,Fs=class{constructor(i){c.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 c.h("div",{class:"SkeletonContainer"},c.h("div",{class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return c.h("div",{class:"Image "+(this.animation?"Skeleton":"")})}renderTitle(){return c.h("div",{class:"SkeletonContainer"},c.h("div",{class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){return c.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((i,e)=>c.h("div",{key:e,class:"Text "+(this.animation?"Skeleton":"")})))}renderRectangle(){return c.h("div",{class:"SkeletonContainer"},c.h("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return c.h("div",{class:"SkeletonContainer"},c.h("div",{class:"Circle "+(this.animation?"Skeleton":"")}))}render(){let i="";switch(this.structure){case"logo":i=`
|
|
6852
|
+
}`,zf=Mf,Ds=class{constructor(i){c.registerInstance(this,i),this.sendOriginalValidityState=c.createEvent(this,"sendOriginalValidityState"),this.sendValidityState=c.createEvent(this,"sendValidityState"),this.sendInputValue=c.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.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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.isValid=void 0,this.errorMessage=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.passwordComplexity=void 0,this.showPopup=void 0,this.value=""}handleStylingChange(i,e){i!==e&&this.setClientStyling()}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)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.element.shadowRoot.querySelector("input"),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}})}setValidity(){var i,e;return this.noValidation?!0:this.isDuplicateInput&&this.duplicateInputValue!==this.value?!1:!((i=this.passwordComplexity)===null||i===void 0)&&i.every(t=>t.passed)?(e=this.inputReference)===null||e===void 0?void 0:e.validity.valid:!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;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.valueMissing)return b("requiredError",this.language);if(this.isDuplicateInput&&!this.originalValid)return b("invalidOriginalPasswordError",this.language);if(this.inputReference.validity.patternMismatch){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)?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}if(!(!((a=this.passwordComplexity)===null||a===void 0)&&a.every(o=>o.passed))&&!this.showPopup)return b("invalidPassword",this.language)}renderTooltip(){return this.showTooltip?c.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 c.h("div",{class:`password__complexity ${this.showPopup?"":"password__complexity--hidden"}`},c.h("div",{class:"password__complexity--strength"},c.h("p",{class:"password__complexity--text"},b("passwordStrength",this.language)," ",c.h("span",{class:"password__complexity--text-bold"},b(`${r?"passwordStrengthStrong":"passwordStrengthWeak"}`,this.language))),c.h("meter",{value:t,min:"0",max:"1"})),c.h("div",null,this.passwordComplexity.map((a,o)=>c.h("div",{key:o},c.h("input",{class:"password__complexity--checkbox",type:"checkbox",checked:a.passed,disabled:!0}),c.h("span",null,b(`${a.ruleKey}`,this.language)?b(`${a.ruleKey}`,this.language):a.rule)))))}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),c.h("div",{key:"db7a6a87af3de451485c603a2f28f25806838d20",class:`password__wrapper ${this.autofilled?"password__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},c.h("div",{key:"146ace196e1343f778232c0e2ff07556c0a09e1e",class:"password__wrapper--flex"},c.h("label",{key:"0d0cb672dfc7a43535a299b45752f43a87f73760",class:`password__label ${this.validation.mandatory?"password__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),c.h("div",{key:"1eac72dfdadd0f50bd2db6b0fc44320dd2f287bf",class:"password__wrapper--relative"},this.tooltip&&c.h("img",{key:"bb327b9a403c1fc5628c4ba2da8d1a2b62888db5",class:"password__tooltip-icon",src:ne,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),c.h("vaadin-password-field",{key:"7962f122d1bfb0ac0a5176a743e1224dccba4910",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&&c.h("small",{key:"efadfea8911ba72161aef495d1fb5857f14a319b",class:"password__error-message"},this.errorMessage),this.passwordComplexity&&this.showPopup&&!this.hidePasswordComplexity&&!this.isDuplicateInput&&this.renderComplexityPopup())}get element(){return c.getElement(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],value:["valueChanged"],emitValue:["emitValueHandler"]}}};Ds.style=zf;const Nf='*,*::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)}}',Lf=Nf,Os=class{constructor(i){c.registerInstance(this,i),this.sendAddressValue=c.createEvent(this,"sendAddressValue"),this.sendValidityState=c.createEvent(this,"sendValidityState"),this.sendInputValue=c.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.street}`.trim(),a=`${t.number}`.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.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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.isValid=void 0,this.errorMessage="",this.limitStylingAppends=!1,this.showTooltip=!1,this.selectedCountryCode="",this.currentPostalCode="",this.openAddressDropdown=!1,this.showNoResultsMessage=!1,this.refreshTrigger=0,this.isFetchingAddresses=!1}handleStylingChange(i,e){i!==e&&this.setClientStyling()}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()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.defaultValue&&(this.value=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("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.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?c.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 c.h("div",{key:"a7d101d7ad51ca56156726b47b4ff97cdea7fca2",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:s=>this.stylingContainer=s},c.h("div",{key:"74f9b8cfb12094588642e5a56323cea96472f8c9",class:"text__wrapper--flex"},c.h("label",{key:"b779b88d908598f09a92a7388e0dfe7bda6157ed",class:`text__label ${this.validation.mandatory?"text__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),c.h("div",{key:"b545e7c3f701e1ce10742f96075bcd84d3dccb85",class:"text__wrapper--relative"},this.tooltip&&c.h("img",{key:"3dfbb3f5286d2be08f361f8a6c746b765e5f7901",class:"text__tooltip-icon",src:ne,alt:"",ref:s=>this.tooltipIconReference=s,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),c.h("div",{key:"0ce15664e22cf519df696084d6397be11a4c1932",class:"input__text-wrapper"},c.h("input",{key:"92506c5d469f87ef9a24a7f262d4a8c7dd441526",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&&c.h("p",{key:"836f5177d7a9013992989e7e8466396164f9dc8e",class:"address__manual-input-msg",onClick:()=>this.enterAddressManually()},b("enterIEAddressManually",this.language)),a&&c.h("div",{key:"077e3995330e2471cc9a838e88a35c60d03348aa",class:"input__addresses-container",ref:s=>this.addressesDropdownRef=s},c.h("div",{key:"2085a2fa95d95b1fcee0d3cbb45c240329cec4e8",class:"options"},this.addresses.map((s,l)=>c.h("div",{key:l,class:"option",onClick:d=>this.handlePostalCode(d,s)},s.street," ",s.number," ",s.city)))),n&&c.h("div",{key:"5fb758ac04ee4a6af58e78d77e6ca024353a4b0e",class:"postalcode__loading-spinner"},c.h("div",{key:"d134446874122c8cde1070a7d1f4a95b7d0d65c0",class:"loading-spinner"}),c.h("span",{key:"1b2a451f6a52584f978783d43b60ccc8e0d20e29"},b("searchingForAddresses",this.language))),o&&c.h("div",{key:"c188c5debee4c194e87971d40ed981b3e095a5ae",class:"postalcode__no-results-message"},b("postalLookUpNoAddressFound",this.language))),c.h("small",{key:"c3499d3404bf807140815cceafe9104ee23dad25",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"],addresses:["handleAddresses"]}}};Os.style=Lf;const Rf="*,*::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}",Ff=Rf,Vs=class{constructor(i){c.registerInstance(this,i),this.sendInputValue=c.createEvent(this,"sendInputValue"),this.sendValidityState=c.createEvent(this,"sendValidityState"),this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(i,e){i!==e&&this.setClientStyling()}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)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}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?c.h("div",{class:`radio__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return c.h("fieldset",{key:"88357307488334074a397c636210575b8af1e2c3",class:`radio__fieldset ${this.name}__input`,ref:i=>this.stylingContainer=i},c.h("legend",{key:"25f656d5b155c392cad79c89410833c3491531f8",class:"radio__legend"},this.displayName,":"),this.optionsGroup.map(i=>c.h("div",{class:"radio__wrapper"},c.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)}),c.h("label",{htmlFor:`${i.label}__input`},i.label))),c.h("small",{key:"08def575050905f964d6921d4ed4f071fccdf4da",class:"radio__error-message"},this.errorMessage),this.tooltip&&c.h("img",{key:"485fa4888f626f1cf44f179f498f257af6c41b58",class:"radio__tooltip-icon",src:ne,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Vs.style=Ff;const $f='*,*::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}',Hf=$f,Ms=class{constructor(i){c.registerInstance(this,i),this.sendValidityState=c.createEvent(this,"sendValidityState"),this.sendInputValue=c.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.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(i,e){i!==e&&this.setClientStyling()}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})}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.vaadinCombo.querySelector("input"),this.defaultValue&&(this.value=this.defaultValue.toUpperCase(),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?c.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"),c.h("div",{key:"c23be50b865c381ce6d2bd77ab77f39b96af39d7",class:`select__wrapper ${this.autofilled?"select__wrapper--autofilled":""} ${this.name}__input`,ref:r=>this.stylingContainer=r},c.h("div",{key:"ec7daae517c439317a8596e835328d17f098eb49",class:"select__wrapper--flex"},c.h("label",{key:"d35d77810716e1afc25661d9c0679e34f500f751",class:"select__label",htmlFor:`${this.name}__input`},`${this.displayName} ${this.validation.mandatory?"*":""}`),c.h("div",{key:"74cb4c953064b2d989e866d2f7537f11f6cf7491",class:"select__wrapper--relative"},this.tooltip&&c.h("img",{key:"388ea5893a4f45e3cf7263a89c2ee93522b46819",class:"select__tooltip-icon",src:ne,alt:"",ref:r=>this.tooltipIconReference=r,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),this.isComboBox?c.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}):c.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}),c.h("small",{key:"9fa3c3fcac5a26b28a9730ce3a2f57cdecbaaa4a",class:"select__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Ms.style=Hf;const Bf='*,*::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}',Uf=Bf,zs=class{constructor(i){c.registerInstance(this,i),this.sendValidityState=c.createEvent(this,"sendValidityState"),this.sendInputValue=c.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.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.touched||(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0)},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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.isValid=void 0,this.errorMessage=void 0,this.limitStylingAppends=!1,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)}handleStylingChange(i,e){i!==e&&this.setClientStyling()}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)}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})}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.setValidity(),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)}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.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}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.valueMissing)return b("requiredError",this.language)}renderTooltip(){return this.showTooltip?c.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"),c.h("div",{key:"9b01d1059b470ec9f57c6f852df12aa17d7a58e2",class:`tel__wrapper ${this.autofilled?"tel__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},c.h("div",{key:"7ad94c73b7b14f63d1b0aa395cd4b2220d80bf7f",class:"tel__wrapper--flex-label"},c.h("label",{key:"2995bfd5f655c71a454281edf967ab4afff2b61c",class:`tel__label ${this.validation.mandatory?"tel__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),c.h("div",{key:"45c874ffd76f0c56eb971728acc6bcf3c31afc64",class:"tel__wrapper--relative"},this.tooltip&&c.h("img",{key:"3ecfbb61507ea4fbe02c804679293adf7961ce18",class:"tel__tooltip-icon",src:ne,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),c.h("div",{key:"b2dc1d8af7ea60bc56347ae73c315cf5539d6e7a",class:`tel__wrapper--flex ${e}`},c.h("vaadin-combo-box",{key:"3ad4d43799026bd4f3b06d9ad94eee17e81daced",class:"tel__prefix",items:this.phoneCodesOptions,value:this.prefixValue,readOnly:this.disablePhonePrefix,onChange:t=>this.handlePrefixInput(t)}),c.h("input",{key:"6773fa69b3f657ccc4798db91b3c9966ef1ad6bc",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})),c.h("small",{key:"799b137bb4cf96cb7cffa77a6934eeab3e34f4ee",class:"tel__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};zs.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}.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,Ns=class{constructor(i){c.registerInstance(this,i),this.sendValidityState=c.createEvent(this,"sendValidityState"),this.sendInputValue=c.createEvent(this,"sendInputValue"),this.value="",this.validationPattern="",this.duplicateInputValue=null,this.postalcodelength=5,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.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)},500)},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.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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.isValid=void 0,this.errorMessage="",this.limitStylingAppends=!1,this.showTooltip=!1,this.selectedCountryCode=""}handleStylingChange(i,e){i!==e&&this.setClientStyling()}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.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())}handleValidationChange(i){i.detail.field===this.name&&(this.validation=i.detail.validation,this.validationPattern=this.setPattern(),this.touched&&(this.isValid=this.setValidity(),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.isValid=!0,this.valueHandler({name:this.name,value:a}),this.validityStateHandler({valid:!0,name:this.name})}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){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.setValidity()}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,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.value.match(this.validationPattern)==null){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)||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?c.h("div",{class:`text__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid");const e=this.value||this.defaultValue;return c.h("div",{key:"2126d45a756f9f10a1428f6f2f296d119833949e",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:t=>this.stylingContainer=t},c.h("div",{key:"86adc0243bf02a5d68e8fe2ad25fddbf042041ca",class:"text__wrapper--flex"},c.h("label",{key:"81bf4d3010bd780471d97d7356062ed6c762151b",class:`text__label ${this.validation.mandatory?"text__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),c.h("div",{key:"2b1cc8ad108901ab8bd0d42b5d59d5f59faf923c",class:"text__wrapper--relative"},this.tooltip&&c.h("img",{key:"dc3714a7e7924972454c0532ced7c1928f998e01",class:"text__tooltip-icon",src:ne,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),c.h("input",{key:"c615746d8604f9ef6fb1ec2ad3075ba4aa1dc928",name:this.name,id:`${this.name}__input`,value:e,type:"text",class:`text__input ${i}`,placeholder:`${this.placeholder}`,ref:t=>this.inputReference=t,readOnly:this.autofilled,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),c.h("small",{key:"4f4e50d2593f32a40ec8c71aa452ac890cb51751",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Ns.style=jf;const Wf='*,*::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}',Yf=Wf,Ls=class{constructor(i){c.registerInstance(this,i),this.sendValidityState=c.createEvent(this,"sendValidityState"),this.sendInputValue=c.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.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.showFields=this.defaultValue==="true"}handleStylingChange(i,e){i!==e&&this.setClientStyling()}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)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){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 c.h("label",{class:"togglecheckbox__label",htmlFor:`${this.name}__input`},c.h("div",{class:"togglecheckbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?c.h("div",{class:`togglecheckbox__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return c.h("div",{key:"58e1c4145712f9547f59eaf43015d46c13e04f2c",class:`togglecheckbox__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},c.h("div",{key:"5230bc70f55ee7d3d4db2eed2b17c3e4f3ce9a23",class:"togglecheckbox__wrapper--flex"},c.h("input",{key:"063c24818b3f4c5fa8362751640c8e51b9ff2868",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()),c.h("small",{key:"df35a1484f167b4bad9e4c82d82e069260be6608",class:"togglecheckbox__error-message"},this.errorMessage),c.h("div",{key:"6783791e9d5e882cc47cfdf501737c0309deb9ec",class:"togglecheckbox__wrapper--relative"},this.tooltip&&c.h("img",{key:"8bc868f9d6828fe65a6ad684c0c50d6dbf434239",class:"togglecheckbox__tooltip-icon",src:ne,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),c.h("div",{key:"9258e49a1730b9bcec06ae2be98644a729a8741b",class:`togglecheckbox__fields-wrapper ${this.showFields?"":"hidden"}`},this.options.map(i=>c.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,tooltip:i.tooltip,placeholder:i.placeholder==null?"":i.placeholder,ref:e=>this.subFieldsObject[i.name]=e}))))}static get watchers(){return{clientStyling:["handleStylingChange"]}}};Ls.style=Yf;const Gf="*,*::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}",Kf=Gf,Rs=class{constructor(i){c.registerInstance(this,i),this.sendValidityState=c.createEvent(this,"sendValidityState"),this.sendInputValue=c.createEvent(this,"sendInputValue"),this.resendCode=c.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,a=r.value;if(a.length>1?r.value=a.charAt(1):r.value=a.charAt(0),!a)return;this.code[t]=r.value;const o=this.inputRefs[t+1];o&&o.focus(),this.setValidity(),this.setErrorMessage()},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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.limitStylingAppends=!1,this.isValid=!1,this.isResendButtonAvailable=!0,this.showTooltip=!1,this.errorMessage="",this.code=[],this.resendIntervalSecondsLeft=this.resendIntervalSeconds}handleStylingChange(i,e){i!==e&&this.setClientStyling()}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("")})}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)}connectedCallback(){this.validationPattern=this.setPattern(),this.code=new Array(this.validation.maxLength).fill("")}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.setValidity()}handleKeyDown(i,e){if(i.key==="Backspace"){this.code[e]="",this.inputRefs[e]&&(this.inputRefs[e].value="");const t=this.inputRefs[e-1];t&&(t==null||t.focus())}this.setValidity(),this.setErrorMessage()}handlePaste(i){var e;i.preventDefault();const t=(e=i.clipboardData)===null||e===void 0?void 0:e.getData("text").trim();if(!t)return;const r=t.slice(0,this.validation.maxLength).split("");this.code=[...r,...new Array(this.validation.maxLength-r.length).fill("")],r.forEach((o,n)=>{this.inputRefs[n].value=o});const a=this.inputRefs[Math.min(r.length,this.inputRefs.length-1)];a&&a.focus(),this.setValidity(),this.setErrorMessage()}setValidity(){const i=this.code.join(""),e=i.length===this.validation.maxLength,t=i.match(this.validationPattern)!==null;this.isValid=e&&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;if(this.code.join("").match(this.validationPattern)!==null)this.errorMessage="";else{const t=(i=this.validation.custom.find(r=>r.rule==="regex"))===null||i===void 0?void 0:i.errorKey;t&&(this.errorMessage=b(t,this.language))}}renderTooltip(){return this.showTooltip?c.h("div",{class:`text__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return c.h("div",{key:"8672e39d15057a9e866ba1cb79e50f2d319aa989",class:"twofa",ref:i=>this.stylingContainer=i},c.h("div",{key:"ae7f658dd357340918e6f9565934660b3ef944ac",class:"twofa__error-message"},c.h("p",{key:"8ef6aecdc7a31b1c4b801f69c8970b8df79bd127"},this.errorMessage)),c.h("div",{key:"86966527af6e1c3313847f0ae07f89d3ae3411fb",class:"twofa__description",innerHTML:b("twofaDescription",this.language,{values:{destination:this.destination}})}),c.h("div",{key:"e8ebb1da615c25ddce6e06c4aee158355dc433c3",class:"twofa__input-wrapper",ref:this.setContainerRef},this.code.map((i,e)=>c.h("input",{key:e,ref:t=>this.setInputRef(t,e),id:`otp-input-${e}`,type:"text",maxLength:2,value:i,onInput:t=>this.handleInput(t,e),onKeyDown:t=>this.handleKeyDown(t,e),onPaste:t=>this.handlePaste(t)}))),c.h("div",{key:"707d2423dd21097dbc591bd15fbf57b5c2e7bddc",class:"twofa__button-wrapper"},c.h("p",{key:"abc31161f53c6b41aef93b0f27fefced03bac990",class:"twofa__resend-message"},b("twofaResendMessage",this.language)),c.h("button",{key:"3f7e329e16a524a4849ffb6b98e0df2f4dec136c",class:"twofa__resend-button",onClick:this.resendCodeHandler,disabled:!this.isResendButtonAvailable},this.isResendButtonAvailable?b("twofaResendButton",this.language):this.formatTime())))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Rs.style=Kf;const Xf=":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)}}",Qf=Xf,Fs=class{constructor(i){c.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 c.h("div",{class:"SkeletonContainer"},c.h("div",{class:"SkeletonLogo "+(this.animation?"Skeleton":"")}))}renderImage(){return c.h("div",{class:"SkeletonImage "+(this.animation?"Skeleton":"")})}renderTitle(){return c.h("div",{class:"SkeletonContainer"},c.h("div",{class:"SkeletonTitle "+(this.animation?"Skeleton":"")}))}renderText(){return c.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((i,e)=>c.h("div",{key:e,class:"SkeletonText "+(this.animation?"Skeleton":"")})))}renderRectangle(){return c.h("div",{class:"SkeletonContainer"},c.h("div",{class:"SkeletonRectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return c.h("div",{class:"SkeletonContainer"},c.h("div",{class:"SkeletonCircle "+(this.animation?"Skeleton":"")}))}render(){let i="";switch(this.structure){case"logo":i=`
|
|
6853
6853
|
:host {
|
|
6854
6854
|
--emw-skeleton-logo-width: ${this.stylingValue.width};
|
|
6855
6855
|
--emw-skeleton-logo-height: ${this.stylingValue.height};
|
|
@@ -6903,4 +6903,4 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
6903
6903
|
:host {
|
|
6904
6904
|
--emw-skeleton-circle-size: ${this.stylingValue.size};
|
|
6905
6905
|
}
|
|
6906
|
-
`;break;default:i=""}return c.h(c.Host,{key:"
|
|
6906
|
+
`;break;default:i=""}return c.h(c.Host,{key:"c2a2650acd416962a2bc4e1a7ee18bc6d8e2def8"},c.h("style",{key:"9bd7fc1f9e9ed9f17735a7b72fce6f09696f5e19"},i),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};Fs.style=Qf;exports.pam_change_password=Bs.PamChangePassword;exports.checkbox_group_input=wo;exports.checkbox_input=xo;exports.date_input=Fo;exports.email_input=$o;exports.general_input=Ps;exports.number_input=As;exports.password_input=Ds;exports.postalcode_input=Os;exports.radio_input=Vs;exports.select_input=Ms;exports.tel_input=zs;exports.text_input=Ns;exports.toggle_checkbox_input=Ls;exports.twofa_input=Rs;exports.ui_skeleton=Fs;
|