@everymatrix/player-account-controller 1.87.43 → 1.88.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/components/{GeneralLogout-BmIHBt2m.js → GeneralLogout-CN2VsNpe.js} +1 -1
  2. package/components/{GeneralLogout-B7TwWtEk.cjs → GeneralLogout-CkC4sHnJ.cjs} +1 -1
  3. package/components/{GeneralLogout-MAZGeP-S.js → GeneralLogout-D1-yRjAp.js} +1 -1
  4. package/components/{PlayerAccountBettingHistory-BXxW-Erv.cjs → PlayerAccountBettingHistory-D2Uigkx0.cjs} +1 -1
  5. package/components/{PlayerAccountBettingHistory-BeK03xef.js → PlayerAccountBettingHistory-DoC8zheL.js} +1 -1
  6. package/components/{PlayerAccountBettingHistory-XAUUNvMh.js → PlayerAccountBettingHistory-LeIQjLpt.js} +1 -1
  7. package/components/{PlayerAccountBiometrics-kIZVzEc7.cjs → PlayerAccountBiometrics-D732VJP5.cjs} +1 -1
  8. package/components/{PlayerAccountBiometrics-BxhMYYS8.js → PlayerAccountBiometrics-DGm0Irqd.js} +2 -2
  9. package/components/{PlayerAccountBiometrics-B8289Ens.js → PlayerAccountBiometrics-GcPQkrQr.js} +2 -2
  10. package/components/{PlayerAccountBiometricsAction-B6X7bPc9.js → PlayerAccountBiometricsAction-B2iKVLpK.js} +1 -1
  11. package/components/{PlayerAccountBiometricsAction-CmwvtdBr.cjs → PlayerAccountBiometricsAction-BDdswoDO.cjs} +1 -1
  12. package/components/{PlayerAccountBiometricsAction-BFvbvJAz.js → PlayerAccountBiometricsAction-CPod851w.js} +1 -1
  13. package/components/{PlayerAccountClosure-C67-6MAN.js → PlayerAccountClosure-BdBSrPbF.js} +1 -1
  14. package/components/{PlayerAccountClosure-89sQ8iWL.js → PlayerAccountClosure-TW7rpjNZ.js} +1 -1
  15. package/components/{PlayerAccountClosure-BzZ_I2o_.cjs → PlayerAccountClosure-Yrf-KMxv.cjs} +1 -1
  16. package/components/{PlayerAccountController-Lv3Amn0L.js → PlayerAccountController-BThU7DLq.js} +1337 -1317
  17. package/components/{PlayerAccountController-TqlmGtTN.js → PlayerAccountController-CCelHyCV.js} +1314 -1294
  18. package/components/PlayerAccountController-D6JZBV_r.cjs +21 -0
  19. package/components/{PlayerAccountGamingLimits-dOvg9LE_.cjs → PlayerAccountGamingLimits-BI1-G2At.cjs} +1 -1
  20. package/components/{PlayerAccountGamingLimits-CaRhdQv6.js → PlayerAccountGamingLimits-BoW1CRF9.js} +2 -2
  21. package/components/{PlayerAccountGamingLimits-WLfhJATa.js → PlayerAccountGamingLimits-D-L1cGr4.js} +2 -2
  22. package/components/{PlayerAccountGamingLimitsConfirmationModal-Dj0ZOQBZ.js → PlayerAccountGamingLimitsConfirmationModal-DD5OZFap.js} +1 -1
  23. package/components/{PlayerAccountGamingLimitsConfirmationModal-BJhGEbJT.cjs → PlayerAccountGamingLimitsConfirmationModal-DmfnKmeo.cjs} +1 -1
  24. package/components/{PlayerAccountGamingLimitsConfirmationModal-CACavFkr.js → PlayerAccountGamingLimitsConfirmationModal-Pml93Pxl.js} +1 -1
  25. package/components/{PlayerAccountGamingLimitsGroupEdit-C3it64of.cjs → PlayerAccountGamingLimitsGroupEdit-9ZseCg9z.cjs} +1 -1
  26. package/components/{PlayerAccountGamingLimitsGroupEdit-bMJKPV3L.js → PlayerAccountGamingLimitsGroupEdit-B1uraoQ1.js} +5 -5
  27. package/components/{PlayerAccountGamingLimitsGroupEdit-Do8uL57u.js → PlayerAccountGamingLimitsGroupEdit-DwvcZ8By.js} +5 -5
  28. package/components/{PlayerAccountGamingLimitsHistory2-BSFps6jd.js → PlayerAccountGamingLimitsHistory2-CleDEaTt.js} +1 -1
  29. package/components/{PlayerAccountGamingLimitsHistory2-BWdEg4yT.cjs → PlayerAccountGamingLimitsHistory2-DQXXEnie.cjs} +1 -1
  30. package/components/{PlayerAccountGamingLimitsHistory2-Fc5Vd-Ln.js → PlayerAccountGamingLimitsHistory2-vAlqiAGr.js} +1 -1
  31. package/components/{PlayerAccountGamingLimitsInfoCard-6hJ3gY3Q.js → PlayerAccountGamingLimitsInfoCard-8XgzT1qJ.js} +4 -4
  32. package/components/{PlayerAccountGamingLimitsInfoCard-VjVo1wHs.cjs → PlayerAccountGamingLimitsInfoCard-CW9Yqgk3.cjs} +1 -1
  33. package/components/{PlayerAccountGamingLimitsInfoCard-BQs0Kyku.js → PlayerAccountGamingLimitsInfoCard-DdFva85j.js} +4 -4
  34. package/components/{PlayerAccountGamingLimitsPage2Gm16-Dks9S0Tc.cjs → PlayerAccountGamingLimitsPage2Gm16-B67xLoyI.cjs} +1 -1
  35. package/components/{PlayerAccountGamingLimitsPage2Gm16-iREFlnbS.js → PlayerAccountGamingLimitsPage2Gm16-Cgy1t0cA.js} +1 -1
  36. package/components/{PlayerAccountGamingLimitsPage2Gm16-CC4lIO_R.js → PlayerAccountGamingLimitsPage2Gm16-Nci8AaCS.js} +1 -1
  37. package/components/{PlayerAccountGamingLimitsPopup-CnMSapE0.js → PlayerAccountGamingLimitsPopup-Cjh8ZNF8.js} +1 -1
  38. package/components/{PlayerAccountGamingLimitsPopup-CPX2-9In.cjs → PlayerAccountGamingLimitsPopup-OHOlmXYb.cjs} +1 -1
  39. package/components/{PlayerAccountGamingLimitsPopup-BmOxzUvC.js → PlayerAccountGamingLimitsPopup-dYDCoICR.js} +1 -1
  40. package/components/{PlayerAccountGamingLimitsWrapper2-BkDCgu1g.js → PlayerAccountGamingLimitsWrapper2-BxgBXYIi.js} +3 -3
  41. package/components/{PlayerAccountGamingLimitsWrapper2-Pv4RhOaU.js → PlayerAccountGamingLimitsWrapper2-ClHKv-bD.js} +3 -3
  42. package/components/{PlayerAccountGamingLimitsWrapper2-ZBjQgIKU.cjs → PlayerAccountGamingLimitsWrapper2-D_DIDHT_.cjs} +1 -1
  43. package/components/{PlayerAccountGeneralConfirmationModal-CJeWCXPn.js → PlayerAccountGeneralConfirmationModal-ChZwAQzW.js} +1 -1
  44. package/components/{PlayerAccountGeneralConfirmationModal-Brwa_waE.cjs → PlayerAccountGeneralConfirmationModal-DochVeiA.cjs} +1 -1
  45. package/components/{PlayerAccountGeneralConfirmationModal-C11dAW4z.js → PlayerAccountGeneralConfirmationModal-xlIrnlov.js} +1 -1
  46. package/components/{PlayerAccountMenu-rRoRennS.js → PlayerAccountMenu-C7ESQYeC.js} +2 -2
  47. package/components/{PlayerAccountMenu-COQj0hH0.cjs → PlayerAccountMenu-CG_QpKOI.cjs} +1 -1
  48. package/components/{PlayerAccountMenu-DJ082EpT.js → PlayerAccountMenu-ho6WS9gc.js} +2 -2
  49. package/components/{PlayerAccountModal-BYHo9dwK.cjs → PlayerAccountModal-B9m77WBD.cjs} +1 -1
  50. package/components/{PlayerAccountModal-DGUw_Kwr.js → PlayerAccountModal-D-Ae4pRk.js} +1 -1
  51. package/components/{PlayerAccountModal-DlkYfUJC.js → PlayerAccountModal-s85BD7yd.js} +1 -1
  52. package/components/{PlayerAccountNotifications-BS_ZDWiX.js → PlayerAccountNotifications-B4R31bYu.js} +1 -1
  53. package/components/{PlayerAccountNotifications-BUJy16N5.js → PlayerAccountNotifications-DwDeqe6r.js} +1 -1
  54. package/components/{PlayerAccountNotifications-BJQxGIwl.cjs → PlayerAccountNotifications-LPcCzmyZ.cjs} +1 -1
  55. package/components/{PlayerAccountProductRestriction-BGfy8h_1.js → PlayerAccountProductRestriction-B1FaorMg.js} +3 -3
  56. package/components/{PlayerAccountProductRestriction-D2GythOe.cjs → PlayerAccountProductRestriction-BN-YA5tB.cjs} +1 -1
  57. package/components/{PlayerAccountProductRestriction-BjPlm9vo.js → PlayerAccountProductRestriction-CcFzPIG-.js} +3 -3
  58. package/components/{PlayerAccountReviewFrequency-Cro2btH3.js → PlayerAccountReviewFrequency-AtAfO6Yz.js} +1 -1
  59. package/components/{PlayerAccountReviewFrequency-BPHAqAwZ.js → PlayerAccountReviewFrequency-BR05bJQ7.js} +1 -1
  60. package/components/{PlayerAccountReviewFrequency-CwXq06Cj.cjs → PlayerAccountReviewFrequency-D4wFgk3K.cjs} +1 -1
  61. package/components/{PlayerAccountSelfExclusion-CQ0elonI.js → PlayerAccountSelfExclusion-58P59FgX.js} +2 -2
  62. package/components/{PlayerAccountSelfExclusion-k4BKVINu.js → PlayerAccountSelfExclusion-9JmKmi7U.js} +2 -2
  63. package/components/{PlayerAccountSelfExclusion-D6jRjVmD.cjs → PlayerAccountSelfExclusion-BdviY_R1.cjs} +1 -1
  64. package/components/{PlayerAccountTimeout-Bjmsu_1V.js → PlayerAccountTimeout-CBLgB_wm.js} +3 -3
  65. package/components/{PlayerAccountTimeout-DNy5XJ70.js → PlayerAccountTimeout-CMGDYByt.js} +3 -3
  66. package/components/{PlayerAccountTimeout-Mbfx_UQi.cjs → PlayerAccountTimeout-CaUxTZ-E.cjs} +2 -2
  67. package/components/{PlayerAccountTransactionsHistory-YvOFG50y.js → PlayerAccountTransactionsHistory-BAB99FSr.js} +4 -4
  68. package/components/{PlayerAccountTransactionsHistory-Gbu6mTQS.cjs → PlayerAccountTransactionsHistory-C57um6RJ.cjs} +1 -1
  69. package/components/{PlayerAccountTransactionsHistory-CljqQ1le.js → PlayerAccountTransactionsHistory-DbrOFAiF.js} +4 -4
  70. package/components/{PlayerActiveBonuses-CEtkWJSs.js → PlayerActiveBonuses-CzC5LMDz.js} +2 -2
  71. package/components/{PlayerActiveBonuses-Br9V2IG-.js → PlayerActiveBonuses-DqlMexws.js} +2 -2
  72. package/components/{PlayerActiveBonuses-Cdb3DaXz.cjs → PlayerActiveBonuses-rvJzxeB9.cjs} +1 -1
  73. package/components/{PlayerBonusCard-CGAupOng.cjs → PlayerBonusCard-CGeBEs21.cjs} +1 -1
  74. package/components/{PlayerBonusCard-CLDH-sBk.js → PlayerBonusCard-DY3NG9WJ.js} +2 -2
  75. package/components/{PlayerBonusCard-Cx2YO81-.js → PlayerBonusCard-Dm_eoDJt.js} +2 -2
  76. package/components/{PlayerBonusHistory-D9PZj1AL.js → PlayerBonusHistory--MW0toRe.js} +2 -2
  77. package/components/{PlayerBonusHistory-Dsoq9AiH.js → PlayerBonusHistory-DC--cp1X.js} +2 -2
  78. package/components/{PlayerBonusHistory-B9AxL7eb.cjs → PlayerBonusHistory-Fgyc8uY8.cjs} +1 -1
  79. package/components/{PlayerChangePassword-CyUjoz-O.js → PlayerChangePassword-BU5FBVXI.js} +1 -1
  80. package/components/{PlayerChangePassword-VMdw8qrH.cjs → PlayerChangePassword-BWgYC9hQ.cjs} +1 -1
  81. package/components/{PlayerChangePassword-DC0xp0Fi.js → PlayerChangePassword-DKZN2_dJ.js} +1 -1
  82. package/components/{PlayerDeposit-BmfeXTtv.js → PlayerDeposit-B230ZVru.js} +1 -1
  83. package/components/{PlayerDeposit-Bw4BR1AQ.cjs → PlayerDeposit-DOzqnv3-.cjs} +1 -1
  84. package/components/{PlayerDeposit-20wtu2bH.js → PlayerDeposit-DXD5C-K7.js} +1 -1
  85. package/components/{PlayerGamingHistory-Kfb33RYX.cjs → PlayerGamingHistory-B8PuNqS8.cjs} +1 -1
  86. package/components/{PlayerGamingHistory-7LZ4uga8.js → PlayerGamingHistory-CAaxGFmA.js} +3 -3
  87. package/components/{PlayerGamingHistory-CnRemd3s.js → PlayerGamingHistory-qrh3WaZ3.js} +3 -3
  88. package/components/{PlayerPendingWithdrawals-DpSfDCGg.js → PlayerPendingWithdrawals-CqSkUVFI.js} +1 -1
  89. package/components/{PlayerPendingWithdrawals-DMmzJwcn.js → PlayerPendingWithdrawals-DfHEyXyx.js} +1 -1
  90. package/components/{PlayerPendingWithdrawals-CCg78IJq.cjs → PlayerPendingWithdrawals-b6RHW1Jz.cjs} +1 -1
  91. package/components/{PlayerProfileInfo-DleumVFj.js → PlayerProfileInfo-B_2LGaT1.js} +2 -2
  92. package/components/{PlayerProfileInfo-BF94TbA0.js → PlayerProfileInfo-CRF4DO0R.js} +2 -2
  93. package/components/{PlayerProfileInfo-BcGf-D2L.cjs → PlayerProfileInfo-LuqYoQ_7.cjs} +2 -2
  94. package/components/{PlayerRealityCheck-DtzJlHAU.cjs → PlayerRealityCheck-BNbIPSPi.cjs} +1 -1
  95. package/components/{PlayerRealityCheck-9ng8jdyS.js → PlayerRealityCheck-DpaWD4YN.js} +1 -1
  96. package/components/{PlayerRealityCheck-CaAQuTXH.js → PlayerRealityCheck-RUOt07JR.js} +1 -1
  97. package/components/{PlayerTransactionHistory-B9XBOgFB.cjs → PlayerTransactionHistory-CjeXh2xL.cjs} +1 -1
  98. package/components/{PlayerTransactionHistory-CnJqOepa.js → PlayerTransactionHistory-D0osDfQo.js} +1 -1
  99. package/components/{PlayerTransactionHistory-BeAIRzXE.js → PlayerTransactionHistory-D4GJ9uvW.js} +1 -1
  100. package/components/{PlayerWithdrawal-C7E2-Rui.js → PlayerWithdrawal--KMfnido.js} +1 -1
  101. package/components/{PlayerWithdrawal-CUizDx2y.js → PlayerWithdrawal-DDHQxTn_.js} +1 -1
  102. package/components/{PlayerWithdrawal-dkDoAYh3.cjs → PlayerWithdrawal-u9Xd0Zay.cjs} +1 -1
  103. package/es2015/player-account-controller.cjs +1 -1
  104. package/es2015/player-account-controller.js +1 -1
  105. package/esnext/player-account-controller.js +1 -1
  106. package/package.json +1 -1
  107. package/stencil/{checkbox-group-input_16-Bn7_E98r.js → checkbox-group-input_16-BIDD5ZDJ.js} +11 -8
  108. package/stencil/{checkbox-group-input_16-D9ML4j06.js → checkbox-group-input_16-B_LYR_B6.js} +11 -8
  109. package/stencil/{checkbox-group-input_16-C6_jN3p0.cjs → checkbox-group-input_16-kd5gZOq8.cjs} +39 -39
  110. package/stencil/index-2ff63899-CU7X-Bhs.js +612 -0
  111. package/stencil/index-2ff63899-DFkeoszo.cjs +1 -0
  112. package/stencil/index-2ff63899-KGpA_ZPz.js +639 -0
  113. package/stencil/{index-c666b6e6-DO3NG0d_.js → index-c666b6e6-BRPcYv74.js} +1 -1
  114. package/stencil/{index-c666b6e6-C0YjtgbT.js → index-c666b6e6-Be1JOwd1.js} +1 -1
  115. package/stencil/{index-c666b6e6-2zPWxCxt.cjs → index-c666b6e6-D7QlSXQv.cjs} +1 -1
  116. package/stencil/{pam-change-password-25b46f90-CILEgZdb.cjs → pam-change-password-25b46f90-BR_DpHIa.cjs} +1 -1
  117. package/stencil/{pam-change-password-25b46f90-DBsCYhoF.js → pam-change-password-25b46f90-CexvlmT1.js} +1 -1
  118. package/stencil/{pam-change-password-25b46f90--RvqyvAS.js → pam-change-password-25b46f90-gz2k14nd.js} +1 -1
  119. package/stencil/pam-change-password-CxaoIqIC.js +25 -0
  120. package/stencil/{pam-change-password-CfJwcRNG.js → pam-change-password-DhqcVnZd.js} +6 -24
  121. package/stencil/pam-change-password-ynj13RCI.cjs +1 -0
  122. package/stencil/player-step-up-auth_2-C-i2tmen.cjs +78 -0
  123. package/stencil/player-step-up-auth_2-D0PTjQ_P.js +1914 -0
  124. package/stencil/player-step-up-auth_2-DCCX3Bdx.js +1947 -0
  125. package/stencil/user-deposit-withdrawal-CG4zPQxo.js +7 -0
  126. package/stencil/user-deposit-withdrawal-DBWacou8.cjs +1 -0
  127. package/stencil/user-deposit-withdrawal-z90luhzN.js +25 -0
  128. package/components/PlayerAccountController-C6JVB0Mt.cjs +0 -21
  129. package/stencil/index-1ef3a64c-BM9QFmsu.js +0 -556
  130. package/stencil/index-1ef3a64c-Dw2-T50I.cjs +0 -1
  131. package/stencil/index-1ef3a64c-a-WtSRky.js +0 -572
  132. package/stencil/pam-change-password-BaP9RQnm.cjs +0 -1
  133. package/stencil/pam-change-password-a_MEmefG.js +0 -7
  134. package/stencil/user-deposit-withdrawal-6HdK6mL4.js +0 -784
  135. package/stencil/user-deposit-withdrawal-BXiqa4Q7.js +0 -807
  136. package/stencil/user-deposit-withdrawal-x1qBvAME.cjs +0 -72
@@ -1,5 +1,5 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./index-c666b6e6-2zPWxCxt.cjs"),Ws=require("./pam-change-password-25b46f90-CILEgZdb.cjs"),Ys="en",ko={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...",SAIdLengthError:"SA ID must be 13 digits",SAIdInvalidError:"Invalid SA ID",PassportLengthError:"Passport number must be 8 or 9 digits.",PasswordMustContain:"Password must contain:"},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",PassportLengthError:"Az útlevélszámnak 9 számjegyűnek kell lennie",SAIdLengthError:"A dél-afrikai személyi számnak 13 számjegyűnek kell lennie",SAIdInvalidError:"Érvénytelen dél-afrikai személyi szám",PasswordMustContain:"A jelszónak tartalmaznia kell:"},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",PassportLengthError:"Broj putovnice mora imati 9 znamenki",SAIdLengthError:"Južnoafrički osobni broj mora imati 13 znamenki",SAIdInvalidError:"Nevažeći južnoafrički osobni broj",PasswordMustContain:"Lozinka mora sadržavati:"},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",PassportLengthError:"Pasaport numarası 9 haneli olmalıdır",SAIdLengthError:"Güney Afrika kimlik numarası 13 haneli olmalıdır",SAIdInvalidError:"Geçersiz Güney Afrika kimlik numarası",PasswordMustContain:"Şifre şunları içermelidir:"},"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",PassportLengthError:"O número do passaporte deve ter 9 dígitos",SAIdLengthError:"O número de identificação da África do Sul deve ter 13 dígitos",SAIdInvalidError:"Número de identificação da África do Sul inválido",PasswordMustContain:"A senha deve conter:"},"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",PassportLengthError:"El número de pasaporte debe tener 9 dígitos",SAIdLengthError:"El número de identificación de Sudáfrica debe tener 13 dígitos",SAIdInvalidError:"Número de identificación de Sudáfrica inválido",PasswordMustContain:"La contraseña debe contener:"},fr:{dateError:"La date sélectionnée doit être comprise entre {min} et {max}",dateError2:"La date sélectionnée n’est pas dans la plage autorisée",dateFormatError:"Le format de la date sélectionnée est incorrect.",numberLengthError:"Le nombre doit être compris entre {min} et {max}",lengthError:"La longueur doit être comprise entre {minLength} et {maxLength}",requiredError:"Ce champ est obligatoire.",invalidOriginalPasswordError:"Le mot de passe initial ne respecte pas tous les critères.",invalidPassword:"Le mot de passe ne respecte pas tous les critères",passwordStrength:"Robustesse du mot de passe",passwordStrengthWeak:"est insuffisante",passwordStrengthStrong:"est suffisante",SpecialCharactersNotAllowed:"Ne doit pas contenir de caractères spéciaux",InvalidEmailFormat:"Format d’adresse e-mail invalide.",EmailNotMatching:"Les adresses e-mail ne correspondent pas !",PasswordNotMatching:"Les mots de passe ne correspondent pas",MustIncludeNumber:"Le mot de passe doit contenir un chiffre",MustContainCapital:"Le mot de passe doit contenir une lettre majuscule",MustIncludePunctation:"Le mot de passe doit contenir un caractère de ponctuation",MustIncludeLowercase:"Le mot de passe doit contenir une lettre minuscule",OnlyNumbers:"Ce champ ne doit contenir que des chiffres.",InvalidFieldSize:"La longueur doit être exactement de 11 chiffres.",InvalidDocumentNumber:"Seuls les caractères numériques sont autorisés.",twofaDescription:"<p>Nous avons envoyé le code de vérification à <p>{destination}</p>.</p><p>Veuillez saisir le code PIN ci-dessous.</p>",twofaResendMessage:"Vous n’avez pas reçu le code de vérification ?",twofaResendButton:"Renvoyer",enterIEAddressManually:"Pour l’Irlande, saisissez l’adresse manuellement",postalLookUpNoAddressFound:"Aucune adresse trouvée pour ce code postal",searchingForAddresses:"Recherche d’adresses...",SAIdLengthError:"L’identifiant sud-africain doit comporter 13 chiffres",SAIdInvalidError:"Identifiant sud-africain invalide",PassportLengthError:"Le numéro de passeport doit comporter 8 ou 9 chiffres.",PasswordMustContain:"Le mot de passe doit contenir :"}},X={DOCUMENT_NUMBER:"DocumentNumber",FIRSTNAME_ON_DOCUMENT:"FirstnameOnDocument",LASTNAME_ON_DOCUMENT:"LastnameOnDocument",PASSPORT:"Passport",SOUTH_AFRICAN_ID:"SouthAfricanID",BIRTHDATE:"BirthDate",PASSPORT_NUMERIC_REGEX:/^\d{8,9}$/,SA_ID_BASIC_REGEX:/^\d{13}$/,SOUTH_AFRICAN_ID_LENGTH:13,NON_LETTERS_REGEX:/[^A-Za-z]/g,DATE_FORMAT:"yyyy-MM-dd",PASSWORD_COMPLEXITY_PASSED:"passed",PASSWORD_COMPLEXITY_FAILED:"failed"},nt={PASSPORT_INVALID:"PassportLengthError",SA_ID_LENGTH:"SAIdLengthError",SA_ID_INVALID:"SAIdInvalidError",REQUIRED:"requiredError",LENGTH:"lengthError"},ma={PASSED:"✓",FAILED:"✕"},b=(i,e,t)=>{const r=e;let a=ko[r!==void 0?r:Ys][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},Gs=i=>new Promise(e=>{fetch(i).then(t=>t.json()).then(t=>{Object.keys(t).forEach(r=>{for(let a in t[r])typeof t[r][a]=="string"&&(ko[r][a]=t[r][a])}),e(!0)})}),Ks=i=>{if(!X.SA_ID_BASIC_REGEX.test(i))return!1;const e=i.split("").map(l=>parseInt(l,10));let t=0;for(let l=0;l<12;l+=2)t+=e[l];let r="";for(let l=1;l<12;l+=2)r+=e[l];const o=(parseInt(r,10)*2).toString().split("").reduce((l,d)=>l+parseInt(d,10),0);return(10-(t+o)%10)%10===e[12]},se="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iNiIgY3k9IjYiIHI9IjUuNSIgc3Ryb2tlPSIjOTc5Nzk3Ii8+CjxyZWN0IHg9IjUiIHk9IjUiIHdpZHRoPSIyIiBoZWlnaHQ9IjUiIGZpbGw9IiM5Nzk3OTciLz4KPGNpcmNsZSBjeD0iNiIgY3k9IjMiIHI9IjEiIGZpbGw9IiM5Nzk3OTciLz4KPC9zdmc+Cg==",Xs='*,*::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}',Qs=Xs,Eo=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.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?h.h("div",{class:`checkboxgroup__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}handleParentCheckbox(i){const e=i.target.checked;this.showCheckboxes=e,this.selectedValues=e?this.options.map(t=>t.name):[]}renderLabel(){return h.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},h.h("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}render(){return h.h("div",{key:"9985f4050655bc2233090f63abb0e22f2fe0b556",class:`checkboxgroup__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},h.h("div",{key:"9922e45ae7ee74b137ffc8552b3d714b7e3b1f59",class:"checkboxgroup__wrapper--flex"},h.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&&h.h("img",{key:"3dc2ce07e4d5f8de7ed4707b5e140fb4752ca86b",class:"checkboxgroup__tooltip-icon",src:se,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),h.h("small",{key:"d55f25f75aa20007ff58cf45b6632517f49b6c00",class:"checkboxgroup__error-message"},this.errorMessage),this.showCheckboxes&&h.h("vaadin-checkbox-group",{key:"210c3cc2868a07a403494e04336c4f3091eea0e4",theme:"vertical",value:this.selectedValues,"on-value-changed":i=>{this.selectedValues=i.detail.value}},this.options.map(i=>h.h("vaadin-checkbox",{class:"checkbox__input",name:i.name,value:i.name,label:i.displayName}))))}get element(){return h.getElement(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}}};Eo.style=Qs;const Js='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.checkbox{font-family:"Roboto";font-style:normal;font-size:15px}.checkbox__wrapper{display:flex;gap:10px;position:relative;align-items:baseline}.checkbox__wrapper--relative{position:relative}.checkbox__input[indeterminate]::part(checkbox)::after,.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;padding:0px;vertical-align:baseline}.checkbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.checkbox__tooltip-icon{width:16px;height:auto}.checkbox__tooltip{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.checkbox__tooltip.visible{opacity:1}.checkbox__input::part(checkbox){background-color:var(--emw--color-white, #FFFFFF);transform:scale(0.8, 0.8);border-radius:var(--emw--border-radius-small, 2px);box-shadow:0 0px 0px 2px var(--emw--color-gray, #7a7a7a)}.checkbox__input::part(required-indicator)::after{display:none}.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));box-shadow:none}.checkbox__label-text.mandatory::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}',Zs=Js,So=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.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(){var i;return h.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},h.h("div",{class:{"checkbox__label-text":!0,mandatory:(i=this.validation)===null||i===void 0?void 0:i.mandatory},innerHTML:this.displayName}))}renderTooltip(){return this.showTooltip?h.h("div",{class:`checkbox__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return h.h("div",{key:"80ed581cec5bb009ea5ea009f11c6453fe24ef7b",class:`checkbox__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},h.h("vaadin-checkbox",{key:"42d793f607af77435f629218f9bdac7736522bc3",class:"checkbox__input",required:this.validation.mandatory,checked:this.defaultValue==="true",onChange:i=>this.handleCheckbox(i),"error-message":!this.isValid&&this.errorMessage,ref:i=>this.vaadinCheckbox=i},this.renderLabel()),this.tooltip&&h.h("img",{key:"ce3870810ede8f3905fd8c07c0892ab0d909bab5",class:"checkboxgroup__tooltip-icon",src:se,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};So.style=Zs;function ge(i){"@babel/helpers - typeof";return ge=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},ge(i)}function R(i,e){if(e.length<i)throw new TypeError(i+" argument"+(i>1?"s":"")+" required, but only "+e.length+" present")}function el(i){return R(1,arguments),i instanceof Date||ge(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||ge(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 Io(i){if(R(1,arguments),!el(i)&&typeof i!="number")return!1;var e=U(i);return!isNaN(Number(e))}function ee(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 tl(i,e){R(2,arguments);var t=U(i).getTime(),r=ee(e);return new Date(t+r)}function To(i,e){R(2,arguments);var t=ee(e);return tl(i,-t)}var il=864e5;function rl(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/il)+1}function Ye(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 Ao(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=Ye(r),o=new Date(0);o.setUTCFullYear(t,0,4),o.setUTCHours(0,0,0,0);var n=Ye(o);return e.getTime()>=a.getTime()?t+1:e.getTime()>=n.getTime()?t:t-1}function al(i){R(1,arguments);var e=Ao(i),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=Ye(t);return r}var ol=6048e5;function Po(i){R(1,arguments);var e=U(i),t=Ye(e).getTime()-al(e).getTime();return Math.round(t/ol)+1}var nl={};function Je(){return nl}function Ve(i,e){var t,r,a,o,n,s,l,d;R(1,arguments);var c=Je(),u=ee((t=(r=(a=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var 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 yr(i,e){var t,r,a,o,n,s,l,d;R(1,arguments);var c=U(i),u=c.getUTCFullYear(),p=Je(),m=ee((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 N=Ve(y,e),D=new Date(0);D.setUTCFullYear(u,0,m),D.setUTCHours(0,0,0,0);var O=Ve(D,e);return c.getTime()>=N.getTime()?u+1:c.getTime()>=O.getTime()?u:u-1}function sl(i,e){var t,r,a,o,n,s,l,d;R(1,arguments);var c=Je(),u=ee((t=(r=(a=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),p=yr(i,e),m=new Date(0);m.setUTCFullYear(p,0,u),m.setUTCHours(0,0,0,0);var y=Ve(m,e);return y}var ll=6048e5;function Do(i,e){R(1,arguments);var t=U(i),r=Ve(t,e).getTime()-sl(t,e).getTime();return Math.round(r/ll)+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 dl={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 we=dl;var Fe={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},hl={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 we.y(e,t)},Y:function(e,t,r,a){var o=yr(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=Ao(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 we.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=Do(e,a);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):V(o,t.length)},I:function(e,t,r){var a=Po(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"}):we.d(e,t)},D:function(e,t,r){var a=rl(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=Fe.noon:a===0?o=Fe.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=Fe.evening:a>=12?o=Fe.afternoon:a>=4?o=Fe.morning:o=Fe.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 we.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):we.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"}):we.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):we.s(e,t)},S:function(e,t){return we.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 _a(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 _a(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"+fa(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"+fa(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 fa(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 _a(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 cl=hl;var va=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"})}},Oo=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"})}},ul=function(e,t){var r=e.match(/(P+)(p+)?/)||[],a=r[1],o=r[2];if(!o)return va(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}}",va(a,t)).replace("{{time}}",Oo(o,t))},pl={p:Oo,P:ul};const Yi=pl;function Vo(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 ml=["D","DD"],fl=["YY","YYYY"];function Mo(i){return ml.indexOf(i)!==-1}function No(i){return fl.indexOf(i)!==-1}function Zt(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 _l={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"}},vl=function(e,t,r){var a,o=_l[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 gl=vl;function Di(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 bl={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},yl={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},wl={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},xl={date:Di({formats:bl,defaultWidth:"full"}),time:Di({formats:yl,defaultWidth:"full"}),dateTime:Di({formats:wl,defaultWidth:"full"})};const Cl=xl;var kl={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},El=function(e,t,r,a){return kl[e]};const Sl=El;function st(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 Il={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Tl={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Al={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"]},Pl={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"]},Dl={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"}},Ol={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"}},Vl=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"},Ml={ordinalNumber:Vl,era:st({values:Il,defaultWidth:"wide"}),quarter:st({values:Tl,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:st({values:Al,defaultWidth:"wide"}),day:st({values:Pl,defaultWidth:"wide"}),dayPeriod:st({values:Dl,defaultWidth:"wide",formattingValues:Ol,defaultFormattingWidth:"wide"})};const Nl=Ml;function lt(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)?Ll(s,function(u){return u.test(n)}):zl(s,function(u){return u.test(n)}),d;d=i.valueCallback?i.valueCallback(l):l,d=t.valueCallback?t.valueCallback(d):d;var c=e.slice(n.length);return{value:d,rest:c}}}function zl(i,e){for(var t in i)if(i.hasOwnProperty(t)&&e(i[t]))return t}function Ll(i,e){for(var t=0;t<i.length;t++)if(e(i[t]))return t}function Rl(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 Fl=/^(\d+)(th|st|nd|rd)?/i,$l=/\d+/i,Hl={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},Bl={any:[/^b/i,/^(a|c)/i]},Ul={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ql={any:[/1/i,/2/i,/3/i,/4/i]},jl={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},Wl={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]},Yl={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},Gl={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]},Kl={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},Xl={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}},Ql={ordinalNumber:Rl({matchPattern:Fl,parsePattern:$l,valueCallback:function(e){return parseInt(e,10)}}),era:lt({matchPatterns:Hl,defaultMatchWidth:"wide",parsePatterns:Bl,defaultParseWidth:"any"}),quarter:lt({matchPatterns:Ul,defaultMatchWidth:"wide",parsePatterns:ql,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:lt({matchPatterns:jl,defaultMatchWidth:"wide",parsePatterns:Wl,defaultParseWidth:"any"}),day:lt({matchPatterns:Yl,defaultMatchWidth:"wide",parsePatterns:Gl,defaultParseWidth:"any"}),dayPeriod:lt({matchPatterns:Kl,defaultMatchWidth:"any",parsePatterns:Xl,defaultParseWidth:"any"})};const Jl=Ql;var Zl={code:"en-US",formatDistance:gl,formatLong:Cl,formatRelative:Sl,localize:Nl,match:Jl,options:{weekStartsOn:0,firstWeekContainsDate:1}};const zo=Zl;var ed=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,td=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,id=/^'([^]*?)'?$/,rd=/''/g,ad=/[a-zA-Z]/;function ga(i,e,t){var r,a,o,n,s,l,d,c,u,p,m,y,N,D;R(2,arguments);var O=String(e),T=Je(),q=(r=(a=void 0)!==null&&a!==void 0?a:T.locale)!==null&&r!==void 0?r:zo,j=ee((o=(n=(s=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&s!==void 0?s:T.firstWeekContainsDate)!==null&&n!==void 0?n:(d=T.locale)===null||d===void 0||(c=d.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(j>=1&&j<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var le=ee((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:(N=T.locale)===null||N===void 0||(D=N.options)===null||D===void 0?void 0:D.weekStartsOn)!==null&&u!==void 0?u:0);if(!(le>=0&&le<=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 ye=U(i);if(!Io(ye))throw new RangeError("Invalid time value");var it=Vo(ye),rt=To(ye,it),at={firstWeekContainsDate:j,weekStartsOn:le,locale:q,_originalDate:ye},Ti=O.match(td).map(function(G){var te=G[0];if(te==="p"||te==="P"){var Se=Yi[te];return Se(G,q.formatLong)}return G}).join("").match(ed).map(function(G){if(G==="''")return"'";var te=G[0];if(te==="'")return od(G);var Se=cl[te];if(Se)return No(G)&&Zt(G,e,String(i)),Mo(G)&&Zt(G,e,String(i)),Se(rt,G,q.localize,at);if(te.match(ad))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");return G}).join("");return Ti}function od(i){var e=i.match(id);return e?e[1].replace(rd,"'"):i}function ba(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 nd(i,e){if(i){if(typeof i=="string")return ba(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)?ba(i,e):void 0}}function ya(i,e){var t=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!t){if(Array.isArray(i)||(t=nd(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 sd(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 Gi(i,e){return Gi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},Gi(i,e)}function S(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&&Gi(i,e)}function ei(i){return ei=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ei(i)}function Lo(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Lo=function(){return!!i})()}function ld(i,e){if(e&&(ge(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 I(i){var e=Lo();return function(){var t,r=ei(i);if(e){var a=ei(this).constructor;t=Reflect.construct(r,arguments,a)}else t=r.apply(this,arguments);return ld(this,t)}}function x(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function dd(i,e){if(ge(i)!="object"||!i)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e);if(ge(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function Ro(i){var e=dd(i,"string");return ge(e)=="symbol"?e:e+""}function hd(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,Ro(r.key),r)}}function C(i,e,t){return e&&hd(i.prototype,e),Object.defineProperty(i,"prototype",{writable:!1}),i}function _(i,e,t){return(e=Ro(e))in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}var cd=10,Fo=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}(),ud=function(i){S(t,i);var e=I(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}(Fo),pd=function(i){S(t,i);var e=I(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",cd),_(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}(Fo),P=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 ud(n.value,this.validate,this.set,this.priority,this.subPriority),rest:n.rest}:null}},{key:"validate",value:function(t,r,a){return!0}}]),i}(),md=function(i){S(t,i);var e=I(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}(P),fd=6e4,_d=36e5,vd=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}/},ce={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 ue(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*_d+o*fd+n*vd),rest:e.slice(t[0].length)}}function $o(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 ti(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 wr(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 Ho(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 Bo(i){return i%400===0||i%4===0&&i%100!==0}var gd=function(i){S(t,i);var e=I(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=Ho(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}(P),bd=function(i){S(t,i);var e=I(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=yr(a,s);if(n.isTwoDigitYear){var d=Ho(n.year,l);return a.setUTCFullYear(d,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Ve(a,s)}var c=!("era"in o)||o.era===1?n.year:1-n.year;return a.setUTCFullYear(c,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Ve(a,s)}}]),t}(P),yd=function(i){S(t,i);var e=I(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 ti(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),Ye(s)}}]),t}(P),wd=function(i){S(t,i);var e=I(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 ti(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}(P),xd=function(i){S(t,i);var e=I(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}(P),Cd=function(i){S(t,i);var e=I(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}(P),kd=function(i){S(t,i);var e=I(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}(P),Ed=function(i){S(t,i);var e=I(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}(P);function Sd(i,e,t){R(2,arguments);var r=U(i),a=ee(e),o=Do(r,t)-a;return r.setUTCDate(r.getUTCDate()-o*7),r}var Id=function(i){S(t,i);var e=I(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 Ve(Sd(a,n,s),s)}}]),t}(P);function Td(i,e){R(2,arguments);var t=U(i),r=ee(e),a=Po(t)-r;return t.setUTCDate(t.getUTCDate()-a*7),t}var Ad=function(i){S(t,i);var e=I(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 Ye(Td(a,n))}}]),t}(P),Pd=[31,28,31,30,31,30,31,31,30,31,30,31],Dd=[31,29,31,30,31,30,31,31,30,31,30,31],Od=function(i){S(t,i);var e=I(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=Bo(n),l=a.getUTCMonth();return s?o>=1&&o<=Dd[l]:o>=1&&o<=Pd[l]}},{key:"set",value:function(a,o,n){return a.setUTCDate(n),a.setUTCHours(0,0,0,0),a}}]),t}(P),Vd=function(i){S(t,i);var e=I(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=Bo(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}(P);function xr(i,e,t){var r,a,o,n,s,l,d,c;R(2,arguments);var u=Je(),p=ee((r=(a=(o=(n=t==null?void 0:t.weekStartsOn)!==null&&n!==void 0?n:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:u.weekStartsOn)!==null&&a!==void 0?a:(d=u.locale)===null||d===void 0||(c=d.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=U(i),y=ee(e),N=m.getUTCDay(),D=y%7,O=(D+7)%7,T=(O<p?7:0)+y-N;return m.setUTCDate(m.getUTCDate()+T),m}var Md=function(i){S(t,i);var e=I(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=xr(a,n,s),a.setUTCHours(0,0,0,0),a}}]),t}(P),Nd=function(i){S(t,i);var e=I(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(c){var u=Math.floor((c-1)/7)*7;return(c+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=xr(a,n,s),a.setUTCHours(0,0,0,0),a}}]),t}(P),zd=function(i){S(t,i);var e=I(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(c){var u=Math.floor((c-1)/7)*7;return(c+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=xr(a,n,s),a.setUTCHours(0,0,0,0),a}}]),t}(P);function Ld(i,e){R(2,arguments);var t=ee(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 Rd=function(i){S(t,i);var e=I(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=Ld(a,n),a.setUTCHours(0,0,0,0),a}}]),t}(P),Fd=function(i){S(t,i);var e=I(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(wr(n),0,0,0),a}}]),t}(P),$d=function(i){S(t,i);var e=I(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(wr(n),0,0,0),a}}]),t}(P),Hd=function(i){S(t,i);var e=I(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(wr(n),0,0,0),a}}]),t}(P),Bd=function(i){S(t,i);var e=I(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}(P),Ud=function(i){S(t,i);var e=I(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}(P),qd=function(i){S(t,i);var e=I(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}(P),jd=function(i){S(t,i);var e=I(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}(P),Wd=function(i){S(t,i);var e=I(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}(P),Yd=function(i){S(t,i);var e=I(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}(P),Gd=function(i){S(t,i);var e=I(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}(P),Kd=function(i){S(t,i);var e=I(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 ue(ce.basicOptionalMinutes,a);case"XX":return ue(ce.basic,a);case"XXXX":return ue(ce.basicOptionalSeconds,a);case"XXXXX":return ue(ce.extendedOptionalSeconds,a);case"XXX":default:return ue(ce.extended,a)}}},{key:"set",value:function(a,o,n){return o.timestampIsSet?a:new Date(a.getTime()-n)}}]),t}(P),Xd=function(i){S(t,i);var e=I(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 ue(ce.basicOptionalMinutes,a);case"xx":return ue(ce.basic,a);case"xxxx":return ue(ce.basicOptionalSeconds,a);case"xxxxx":return ue(ce.extendedOptionalSeconds,a);case"xxx":default:return ue(ce.extended,a)}}},{key:"set",value:function(a,o,n){return o.timestampIsSet?a:new Date(a.getTime()-n)}}]),t}(P),Qd=function(i){S(t,i);var e=I(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 $o(a)}},{key:"set",value:function(a,o,n){return[new Date(n*1e3),{timestampIsSet:!0}]}}]),t}(P),Jd=function(i){S(t,i);var e=I(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 $o(a)}},{key:"set",value:function(a,o,n){return[new Date(n),{timestampIsSet:!0}]}}]),t}(P),Zd={G:new md,y:new gd,Y:new bd,R:new yd,u:new wd,Q:new xd,q:new Cd,M:new kd,L:new Ed,w:new Id,I:new Ad,d:new Od,D:new Vd,E:new Md,e:new Nd,c:new zd,i:new Rd,a:new Fd,b:new $d,B:new Hd,h:new Bd,H:new Ud,K:new qd,k:new jd,m:new Wd,s:new Yd,S:new Gd,X:new Kd,x:new Xd,t:new Qd,T:new Jd},eh=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,th=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ih=/^'([^]*?)'?$/,rh=/''/g,ah=/\S/,oh=/[a-zA-Z]/;function Ae(i,e,t,r){var a,o,n,s,l,d,c,u,p,m,y,N,D,O;R(3,arguments);var T=String(i),q=String(e),j=Je(),le=(a=(o=void 0)!==null&&o!==void 0?o:j.locale)!==null&&a!==void 0?a:zo;if(!le.match)throw new RangeError("locale must contain match property");var ye=ee((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:(c=j.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(ye>=1&&ye<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var it=ee((p=(m=(y=(N=void 0)!==null&&N!==void 0?N: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(!(it>=0&&it<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(q==="")return T===""?U(t):new Date(NaN);var rt={firstWeekContainsDate:ye,weekStartsOn:it,locale:le},at=[new pd],Ti=q.match(th).map(function(W){var z=W[0];if(z in Yi){var ne=Yi[z];return ne(W,le.formatLong)}return W}).join("").match(eh),G=[],te=ya(Ti),Se;try{var qs=function(){var z=Se.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&No(z)&&Zt(z,q,i),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Mo(z)&&Zt(z,q,i);var ne=z[0],Ht=Zd[ne];if(Ht){var ca=Ht.incompatibleTokens;if(Array.isArray(ca)){var ua=G.find(function(pa){return ca.includes(pa.token)||pa.token===ne});if(ua)throw new RangeError("The format string mustn't contain `".concat(ua.fullToken,"` and `").concat(z,"` at the same time"))}else if(Ht.incompatibleTokens==="*"&&G.length>0)throw new RangeError("The format string mustn't contain `".concat(z,"` and any other token at the same time"));G.push({token:ne,fullToken:z});var Pi=Ht.run(T,z,le.match,rt);if(!Pi)return{v:new Date(NaN)};at.push(Pi.setter),T=Pi.rest}else{if(ne.match(oh))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ne+"`");if(z==="''"?z="'":ne==="'"&&(z=nh(z)),T.indexOf(z)===0)T=T.slice(z.length);else return{v:new Date(NaN)}}};for(te.s();!(Se=te.n()).done;){var sa=qs();if(ge(sa)==="object")return sa.v}}catch(W){te.e(W)}finally{te.f()}if(T.length>0&&ah.test(T))return new Date(NaN);var js=at.map(function(W){return W.priority}).sort(function(W,z){return z-W}).filter(function(W,z,ne){return ne.indexOf(W)===z}).map(function(W){return at.filter(function(z){return z.priority===W}).sort(function(z,ne){return ne.subPriority-z.subPriority})}).map(function(W){return W[0]}),Ai=U(t);if(isNaN(Ai.getTime()))return new Date(NaN);var ot=To(Ai,Vo(Ai)),la={},Ft=ya(js),da;try{for(Ft.s();!(da=Ft.n()).done;){var ha=da.value;if(!ha.validate(ot,rt))return new Date(NaN);var $t=ha.set(ot,la,rt);Array.isArray($t)?(ot=$t[0],sd(la,$t[1])):ot=$t}}catch(W){Ft.e(W)}finally{Ft.f()}return ot}function nh(i){return i.match(ih)[1].replace(rh,"'")}function wa(i,e){R(2,arguments);var t=U(i),r=U(e);return t.getTime()>r.getTime()}function xa(i,e){R(2,arguments);var t=U(i),r=U(e);return t.getTime()<r.getTime()}function Ca(i,e,t){return R(2,arguments),Io(Ae(i,e,new Date,t))}const sh='*,*::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}',lh=sh,Uo=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.touched=!1,this.formatDate=e=>{const{year:t,month:r,day:a}=e,o=new Date(t,r,a);return ga(o,this.dateFormat)},this.parseDate=e=>{const t=Ae(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.handleDocumentIdUpdate=e=>{if(this.name!==X.BIRTHDATE)return;const t=e.detail;this.value=t,this.valueAsDate=Ae(this.value||"",X.DATE_FORMAT,new Date),this.touched=!0,this.datePicker&&(this.datePicker.value=this.value),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.valueHandler({name:this.name,value:this.value})},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.dateFormat="yyyy-MM-dd",this.emitOnClick=!1,this.enableSouthAfricanMode=void 0,this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}get formattedValue(){if(!this.value)return"";const i=Ae(this.value,"yyyy-MM-dd",new Date);return ga(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})}handleCustomRegistrationChange(i){i?window.addEventListener("documentIdUpdated",this.handleDocumentIdUpdate):window.removeEventListener("documentIdUpdated",this.handleDocumentIdUpdate)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}connectedCallback(){var i,e;this.minDate=Ae(((i=this.validation.min)===null||i===void 0?void 0:i.toString())||"","yyyy-MM-dd",new Date),this.maxDate=Ae(((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.enableSouthAfricanMode&&window.addEventListener("documentIdUpdated",this.handleDocumentIdUpdate),this.datePicker.i18n=Object.assign(Object.assign({},this.datePicker.i18n),{formatDate:this.formatDate,parseDate:this.parseDate}),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value})),this.isValid=this.setValidity()}disconnectedCallback(){this.enableSouthAfricanMode&&window.removeEventListener("documentIdUpdated",this.handleDocumentIdUpdate)}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=Ae(this.value||"","yyyy-MM-dd",new Date),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0),this.enableSouthAfricanMode&&window.dispatchEvent(new CustomEvent("birthDateUpdated",{detail:{birthDate:this.value}}))}setValidity(){return xa(this.valueAsDate,this.minDate)||wa(this.valueAsDate,this.maxDate)||!Ca(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(xa(this.valueAsDate,this.minDate)||wa(this.valueAsDate,this.maxDate))return b("dateError2",this.language);if(!Ca(this.formattedValue,this.dateFormat))return b("dateFormatError",this.language)}renderTooltip(){return this.showTooltip?h.h("div",{class:`date__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"9399c1be2edcbe3ed5c0e133cad52b1917e77e96",class:`date__wrapper ${this.autofilled?"date__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},h.h("label",{key:"1094491a5fc441c4f704441d376ed965d6946637",class:`date__label ${this.validation.mandatory?"date__label--required":""}}`,htmlFor:`${this.name}__input`},this.displayName,h.h("span",{key:"14dd041cce018e22d82919f46eabc88f83e639e8",class:this.validation.mandatory?"date__label--required":""})),h.h("vaadin-date-picker",{key:"eb720200d8d2b07ab00bca70c8e4a25dfc5cd08f",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)}),h.h("small",{key:"eedeea67c67bdc92ae1bb3e79cab745384bb0db7",class:"date__error-message"},this.errorMessage),this.tooltip&&h.h("img",{key:"2b9cbbb972e4d07124a3d548eb932a26a44f75f3",class:"date__tooltip-icon",src:se,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}get element(){return h.getElement(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"],enableSouthAfricanMode:["handleCustomRegistrationChange"]}}};Uo.style=lh;const dh='*,*::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}',hh=dh,qo=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=e=>{this.value=e.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.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?h.h("div",{class:`email__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"723df8f3a6e8c57fe19082400971daf50f5c981d",class:`email__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},h.h("div",{key:"581d6e02b63d1c659ae44424518f64db450d5365",class:"email__wrapper--flex"},h.h("label",{key:"11e6a848f6f04903989b3ab2075865f6e279c087",class:`email__label ${this.validation.mandatory?"email__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"73e11520cffbddda1a2aeb4b560e7f4cf456e2fb",class:"email__wrapper--relative"},this.tooltip&&h.h("img",{key:"e8571ce14b9b98311daf1712ebde7d6da9b5a6a6",class:"email__tooltip-icon",src:se,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("input",{key:"dd05ef0b4d906598c6d5775a78ccbdc9ea81cb8c",id:`${this.name}__input`,type:"email",class:`email__input ${i}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,ref:e=>this.inputReference=e,pattern:this.validationPattern,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),h.h("small",{key:"0d2d41207f8274d8c6f69143131265ef5b458689",class:"email__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};qo.style=hh;var ch=Object.defineProperty,uh=Object.defineProperties,ph=Object.getOwnPropertyDescriptors,ka=Object.getOwnPropertySymbols,mh=Object.prototype.hasOwnProperty,fh=Object.prototype.propertyIsEnumerable,Ki=(i,e,t)=>e in i?ch(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ii=(i,e)=>{for(var t in e||(e={}))mh.call(e,t)&&Ki(i,t,e[t]);if(ka)for(var t of ka(e))fh.call(e,t)&&Ki(i,t,e[t]);return i},jo=(i,e)=>uh(i,ph(e)),Q=(i,e,t)=>(Ki(i,typeof e!="symbol"?e+"":e,t),t),ri=(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 h=require("./index-c666b6e6-D7QlSXQv.cjs"),Ws=require("./pam-change-password-25b46f90-BR_DpHIa.cjs"),Ys="en",ko={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...",SAIdLengthError:"SA ID must be 13 digits",SAIdInvalidError:"Invalid SA ID",PassportLengthError:"Passport number must be 8 or 9 digits.",PasswordMustContain:"Password must contain:"},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",PassportLengthError:"Az útlevélszámnak 9 számjegyűnek kell lennie",SAIdLengthError:"A dél-afrikai személyi számnak 13 számjegyűnek kell lennie",SAIdInvalidError:"Érvénytelen dél-afrikai személyi szám",PasswordMustContain:"A jelszónak tartalmaznia kell:"},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",PassportLengthError:"Broj putovnice mora imati 9 znamenki",SAIdLengthError:"Južnoafrički osobni broj mora imati 13 znamenki",SAIdInvalidError:"Nevažeći južnoafrički osobni broj",PasswordMustContain:"Lozinka mora sadržavati:"},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",PassportLengthError:"Pasaport numarası 9 haneli olmalıdır",SAIdLengthError:"Güney Afrika kimlik numarası 13 haneli olmalıdır",SAIdInvalidError:"Geçersiz Güney Afrika kimlik numarası",PasswordMustContain:"Şifre şunları içermelidir:"},"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",PassportLengthError:"O número do passaporte deve ter 9 dígitos",SAIdLengthError:"O número de identificação da África do Sul deve ter 13 dígitos",SAIdInvalidError:"Número de identificação da África do Sul inválido",PasswordMustContain:"A senha deve conter:"},"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",PassportLengthError:"El número de pasaporte debe tener 9 dígitos",SAIdLengthError:"El número de identificación de Sudáfrica debe tener 13 dígitos",SAIdInvalidError:"Número de identificación de Sudáfrica inválido",PasswordMustContain:"La contraseña debe contener:"},fr:{dateError:"La date sélectionnée doit être comprise entre {min} et {max}",dateError2:"La date sélectionnée n’est pas dans la plage autorisée",dateFormatError:"Le format de la date sélectionnée est incorrect.",numberLengthError:"Le nombre doit être compris entre {min} et {max}",lengthError:"La longueur doit être comprise entre {minLength} et {maxLength}",requiredError:"Ce champ est obligatoire.",invalidOriginalPasswordError:"Le mot de passe initial ne respecte pas tous les critères.",invalidPassword:"Le mot de passe ne respecte pas tous les critères",passwordStrength:"Robustesse du mot de passe",passwordStrengthWeak:"est insuffisante",passwordStrengthStrong:"est suffisante",SpecialCharactersNotAllowed:"Ne doit pas contenir de caractères spéciaux",InvalidEmailFormat:"Format d’adresse e-mail invalide.",EmailNotMatching:"Les adresses e-mail ne correspondent pas !",PasswordNotMatching:"Les mots de passe ne correspondent pas",MustIncludeNumber:"Le mot de passe doit contenir un chiffre",MustContainCapital:"Le mot de passe doit contenir une lettre majuscule",MustIncludePunctation:"Le mot de passe doit contenir un caractère de ponctuation",MustIncludeLowercase:"Le mot de passe doit contenir une lettre minuscule",OnlyNumbers:"Ce champ ne doit contenir que des chiffres.",InvalidFieldSize:"La longueur doit être exactement de 11 chiffres.",InvalidDocumentNumber:"Seuls les caractères numériques sont autorisés.",twofaDescription:"<p>Nous avons envoyé le code de vérification à <p>{destination}</p>.</p><p>Veuillez saisir le code PIN ci-dessous.</p>",twofaResendMessage:"Vous n’avez pas reçu le code de vérification ?",twofaResendButton:"Renvoyer",enterIEAddressManually:"Pour l’Irlande, saisissez l’adresse manuellement",postalLookUpNoAddressFound:"Aucune adresse trouvée pour ce code postal",searchingForAddresses:"Recherche d’adresses...",SAIdLengthError:"L’identifiant sud-africain doit comporter 13 chiffres",SAIdInvalidError:"Identifiant sud-africain invalide",PassportLengthError:"Le numéro de passeport doit comporter 8 ou 9 chiffres.",PasswordMustContain:"Le mot de passe doit contenir :"}},X={DOCUMENT_NUMBER:"DocumentNumber",FIRSTNAME_ON_DOCUMENT:"FirstnameOnDocument",LASTNAME_ON_DOCUMENT:"LastnameOnDocument",PASSPORT:"Passport",SOUTH_AFRICAN_ID:"SouthAfricanID",BIRTHDATE:"BirthDate",PASSPORT_NUMERIC_REGEX:/^\d{8,9}$/,SA_ID_BASIC_REGEX:/^\d{13}$/,SOUTH_AFRICAN_ID_LENGTH:13,NON_LETTERS_REGEX:/[^A-Za-z]/g,DATE_FORMAT:"yyyy-MM-dd",PASSWORD_COMPLEXITY_PASSED:"passed",PASSWORD_COMPLEXITY_FAILED:"failed"},nt={PASSPORT_INVALID:"PassportLengthError",SA_ID_LENGTH:"SAIdLengthError",SA_ID_INVALID:"SAIdInvalidError",REQUIRED:"requiredError",LENGTH:"lengthError"},ma={PASSED:"✓",FAILED:"✕"},b=(i,e,t)=>{const r=e;let a=ko[r!==void 0?r:Ys][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},Gs=i=>new Promise(e=>{fetch(i).then(t=>t.json()).then(t=>{Object.keys(t).forEach(r=>{for(let a in t[r])typeof t[r][a]=="string"&&(ko[r][a]=t[r][a])}),e(!0)})}),Ks=i=>{if(!X.SA_ID_BASIC_REGEX.test(i))return!1;const e=i.split("").map(l=>parseInt(l,10));let t=0;for(let l=0;l<12;l+=2)t+=e[l];let r="";for(let l=1;l<12;l+=2)r+=e[l];const o=(parseInt(r,10)*2).toString().split("").reduce((l,d)=>l+parseInt(d,10),0);return(10-(t+o)%10)%10===e[12]},se="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iNiIgY3k9IjYiIHI9IjUuNSIgc3Ryb2tlPSIjOTc5Nzk3Ii8+CjxyZWN0IHg9IjUiIHk9IjUiIHdpZHRoPSIyIiBoZWlnaHQ9IjUiIGZpbGw9IiM5Nzk3OTciLz4KPGNpcmNsZSBjeD0iNiIgY3k9IjMiIHI9IjEiIGZpbGw9IiM5Nzk3OTciLz4KPC9zdmc+Cg==",Xs='*,*::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}',Qs=Xs,Eo=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.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?h.h("div",{class:`checkboxgroup__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}handleParentCheckbox(i){const e=i.target.checked;this.showCheckboxes=e,this.selectedValues=e?this.options.map(t=>t.name):[]}renderLabel(){return h.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},h.h("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}render(){return h.h("div",{key:"9985f4050655bc2233090f63abb0e22f2fe0b556",class:`checkboxgroup__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},h.h("div",{key:"9922e45ae7ee74b137ffc8552b3d714b7e3b1f59",class:"checkboxgroup__wrapper--flex"},h.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&&h.h("img",{key:"3dc2ce07e4d5f8de7ed4707b5e140fb4752ca86b",class:"checkboxgroup__tooltip-icon",src:se,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),h.h("small",{key:"d55f25f75aa20007ff58cf45b6632517f49b6c00",class:"checkboxgroup__error-message"},this.errorMessage),this.showCheckboxes&&h.h("vaadin-checkbox-group",{key:"210c3cc2868a07a403494e04336c4f3091eea0e4",theme:"vertical",value:this.selectedValues,"on-value-changed":i=>{this.selectedValues=i.detail.value}},this.options.map(i=>h.h("vaadin-checkbox",{class:"checkbox__input",name:i.name,value:i.name,label:i.displayName}))))}get element(){return h.getElement(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}}};Eo.style=Qs;const Js='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.checkbox{font-family:"Roboto";font-style:normal;font-size:15px}.checkbox__wrapper{display:flex;gap:10px;position:relative;align-items:baseline}.checkbox__wrapper--relative{position:relative}.checkbox__input[indeterminate]::part(checkbox)::after,.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;padding:0px;vertical-align:baseline}.checkbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.checkbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.checkbox__tooltip-icon{width:16px;height:auto}.checkbox__tooltip{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.checkbox__tooltip.visible{opacity:1}.checkbox__input::part(checkbox){background-color:var(--emw--color-white, #FFFFFF);transform:scale(0.8, 0.8);border-radius:var(--emw--border-radius-small, 2px);box-shadow:0 0px 0px 2px var(--emw--color-gray, #7a7a7a)}.checkbox__input::part(required-indicator)::after{display:none}.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));box-shadow:none}.checkbox__label-text.mandatory::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}',Zs=Js,Io=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.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(){var i;return h.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},h.h("div",{class:{"checkbox__label-text":!0,mandatory:(i=this.validation)===null||i===void 0?void 0:i.mandatory},innerHTML:this.displayName}))}renderTooltip(){return this.showTooltip?h.h("div",{class:`checkbox__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return h.h("div",{key:"80ed581cec5bb009ea5ea009f11c6453fe24ef7b",class:`checkbox__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},h.h("vaadin-checkbox",{key:"42d793f607af77435f629218f9bdac7736522bc3",class:"checkbox__input",required:this.validation.mandatory,checked:this.defaultValue==="true",onChange:i=>this.handleCheckbox(i),"error-message":!this.isValid&&this.errorMessage,ref:i=>this.vaadinCheckbox=i},this.renderLabel()),this.tooltip&&h.h("img",{key:"ce3870810ede8f3905fd8c07c0892ab0d909bab5",class:"checkboxgroup__tooltip-icon",src:se,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Io.style=Zs;function ge(i){"@babel/helpers - typeof";return ge=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},ge(i)}function R(i,e){if(e.length<i)throw new TypeError(i+" argument"+(i>1?"s":"")+" required, but only "+e.length+" present")}function el(i){return R(1,arguments),i instanceof Date||ge(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||ge(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 So(i){if(R(1,arguments),!el(i)&&typeof i!="number")return!1;var e=U(i);return!isNaN(Number(e))}function ee(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 tl(i,e){R(2,arguments);var t=U(i).getTime(),r=ee(e);return new Date(t+r)}function To(i,e){R(2,arguments);var t=ee(e);return tl(i,-t)}var il=864e5;function rl(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/il)+1}function Ye(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 Ao(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=Ye(r),o=new Date(0);o.setUTCFullYear(t,0,4),o.setUTCHours(0,0,0,0);var n=Ye(o);return e.getTime()>=a.getTime()?t+1:e.getTime()>=n.getTime()?t:t-1}function al(i){R(1,arguments);var e=Ao(i),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=Ye(t);return r}var ol=6048e5;function Po(i){R(1,arguments);var e=U(i),t=Ye(e).getTime()-al(e).getTime();return Math.round(t/ol)+1}var nl={};function Je(){return nl}function Ve(i,e){var t,r,a,o,n,s,l,d;R(1,arguments);var c=Je(),u=ee((t=(r=(a=(o=e==null?void 0:e.weekStartsOn)!==null&&o!==void 0?o:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var 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 yr(i,e){var t,r,a,o,n,s,l,d;R(1,arguments);var c=U(i),u=c.getUTCFullYear(),p=Je(),m=ee((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 N=Ve(y,e),D=new Date(0);D.setUTCFullYear(u,0,m),D.setUTCHours(0,0,0,0);var O=Ve(D,e);return c.getTime()>=N.getTime()?u+1:c.getTime()>=O.getTime()?u:u-1}function sl(i,e){var t,r,a,o,n,s,l,d;R(1,arguments);var c=Je(),u=ee((t=(r=(a=(o=e==null?void 0:e.firstWeekContainsDate)!==null&&o!==void 0?o:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),p=yr(i,e),m=new Date(0);m.setUTCFullYear(p,0,u),m.setUTCHours(0,0,0,0);var y=Ve(m,e);return y}var ll=6048e5;function Do(i,e){R(1,arguments);var t=U(i),r=Ve(t,e).getTime()-sl(t,e).getTime();return Math.round(r/ll)+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 dl={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 we=dl;var Fe={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},hl={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 we.y(e,t)},Y:function(e,t,r,a){var o=yr(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=Ao(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 we.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=Do(e,a);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):V(o,t.length)},I:function(e,t,r){var a=Po(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"}):we.d(e,t)},D:function(e,t,r){var a=rl(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=Fe.noon:a===0?o=Fe.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=Fe.evening:a>=12?o=Fe.afternoon:a>=4?o=Fe.morning:o=Fe.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 we.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):we.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"}):we.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):we.s(e,t)},S:function(e,t){return we.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 _a(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 _a(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"+fa(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"+fa(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 fa(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 _a(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 cl=hl;var va=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"})}},Oo=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"})}},ul=function(e,t){var r=e.match(/(P+)(p+)?/)||[],a=r[1],o=r[2];if(!o)return va(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}}",va(a,t)).replace("{{time}}",Oo(o,t))},pl={p:Oo,P:ul};const Yi=pl;function Vo(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 ml=["D","DD"],fl=["YY","YYYY"];function Mo(i){return ml.indexOf(i)!==-1}function No(i){return fl.indexOf(i)!==-1}function Zt(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 _l={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"}},vl=function(e,t,r){var a,o=_l[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 gl=vl;function Di(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 bl={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},yl={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},wl={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},xl={date:Di({formats:bl,defaultWidth:"full"}),time:Di({formats:yl,defaultWidth:"full"}),dateTime:Di({formats:wl,defaultWidth:"full"})};const Cl=xl;var kl={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},El=function(e,t,r,a){return kl[e]};const Il=El;function st(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 Sl={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Tl={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Al={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"]},Pl={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"]},Dl={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"}},Ol={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"}},Vl=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"},Ml={ordinalNumber:Vl,era:st({values:Sl,defaultWidth:"wide"}),quarter:st({values:Tl,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:st({values:Al,defaultWidth:"wide"}),day:st({values:Pl,defaultWidth:"wide"}),dayPeriod:st({values:Dl,defaultWidth:"wide",formattingValues:Ol,defaultFormattingWidth:"wide"})};const Nl=Ml;function lt(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)?Ll(s,function(u){return u.test(n)}):zl(s,function(u){return u.test(n)}),d;d=i.valueCallback?i.valueCallback(l):l,d=t.valueCallback?t.valueCallback(d):d;var c=e.slice(n.length);return{value:d,rest:c}}}function zl(i,e){for(var t in i)if(i.hasOwnProperty(t)&&e(i[t]))return t}function Ll(i,e){for(var t=0;t<i.length;t++)if(e(i[t]))return t}function Rl(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 Fl=/^(\d+)(th|st|nd|rd)?/i,$l=/\d+/i,Hl={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},Bl={any:[/^b/i,/^(a|c)/i]},Ul={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ql={any:[/1/i,/2/i,/3/i,/4/i]},jl={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},Wl={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]},Yl={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},Gl={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]},Kl={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},Xl={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}},Ql={ordinalNumber:Rl({matchPattern:Fl,parsePattern:$l,valueCallback:function(e){return parseInt(e,10)}}),era:lt({matchPatterns:Hl,defaultMatchWidth:"wide",parsePatterns:Bl,defaultParseWidth:"any"}),quarter:lt({matchPatterns:Ul,defaultMatchWidth:"wide",parsePatterns:ql,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:lt({matchPatterns:jl,defaultMatchWidth:"wide",parsePatterns:Wl,defaultParseWidth:"any"}),day:lt({matchPatterns:Yl,defaultMatchWidth:"wide",parsePatterns:Gl,defaultParseWidth:"any"}),dayPeriod:lt({matchPatterns:Kl,defaultMatchWidth:"any",parsePatterns:Xl,defaultParseWidth:"any"})};const Jl=Ql;var Zl={code:"en-US",formatDistance:gl,formatLong:Cl,formatRelative:Il,localize:Nl,match:Jl,options:{weekStartsOn:0,firstWeekContainsDate:1}};const zo=Zl;var ed=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,td=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,id=/^'([^]*?)'?$/,rd=/''/g,ad=/[a-zA-Z]/;function ga(i,e,t){var r,a,o,n,s,l,d,c,u,p,m,y,N,D;R(2,arguments);var O=String(e),T=Je(),q=(r=(a=void 0)!==null&&a!==void 0?a:T.locale)!==null&&r!==void 0?r:zo,j=ee((o=(n=(s=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&s!==void 0?s:T.firstWeekContainsDate)!==null&&n!==void 0?n:(d=T.locale)===null||d===void 0||(c=d.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(j>=1&&j<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var le=ee((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:(N=T.locale)===null||N===void 0||(D=N.options)===null||D===void 0?void 0:D.weekStartsOn)!==null&&u!==void 0?u:0);if(!(le>=0&&le<=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 ye=U(i);if(!So(ye))throw new RangeError("Invalid time value");var it=Vo(ye),rt=To(ye,it),at={firstWeekContainsDate:j,weekStartsOn:le,locale:q,_originalDate:ye},Ti=O.match(td).map(function(G){var te=G[0];if(te==="p"||te==="P"){var Ie=Yi[te];return Ie(G,q.formatLong)}return G}).join("").match(ed).map(function(G){if(G==="''")return"'";var te=G[0];if(te==="'")return od(G);var Ie=cl[te];if(Ie)return No(G)&&Zt(G,e,String(i)),Mo(G)&&Zt(G,e,String(i)),Ie(rt,G,q.localize,at);if(te.match(ad))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");return G}).join("");return Ti}function od(i){var e=i.match(id);return e?e[1].replace(rd,"'"):i}function ba(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 nd(i,e){if(i){if(typeof i=="string")return ba(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)?ba(i,e):void 0}}function ya(i,e){var t=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!t){if(Array.isArray(i)||(t=nd(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 sd(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 Gi(i,e){return Gi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},Gi(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&&Gi(i,e)}function ei(i){return ei=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ei(i)}function Lo(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Lo=function(){return!!i})()}function ld(i,e){if(e&&(ge(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=Lo();return function(){var t,r=ei(i);if(e){var a=ei(this).constructor;t=Reflect.construct(r,arguments,a)}else t=r.apply(this,arguments);return ld(this,t)}}function x(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function dd(i,e){if(ge(i)!="object"||!i)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e);if(ge(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function Ro(i){var e=dd(i,"string");return ge(e)=="symbol"?e:e+""}function hd(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,Ro(r.key),r)}}function C(i,e,t){return e&&hd(i.prototype,e),Object.defineProperty(i,"prototype",{writable:!1}),i}function _(i,e,t){return(e=Ro(e))in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}var cd=10,Fo=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}(),ud=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}(Fo),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",cd),_(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}(Fo),P=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 ud(n.value,this.validate,this.set,this.priority,this.subPriority),rest:n.rest}:null}},{key:"validate",value:function(t,r,a){return!0}}]),i}(),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",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}(P),fd=6e4,_d=36e5,vd=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}/},ce={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 ue(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*_d+o*fd+n*vd),rest:e.slice(t[0].length)}}function $o(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 ti(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 wr(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 Ho(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 Bo(i){return i%400===0||i%4===0&&i%100!==0}var 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",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=Ho(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}(P),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",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=yr(a,s);if(n.isTwoDigitYear){var d=Ho(n.year,l);return a.setUTCFullYear(d,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Ve(a,s)}var c=!("era"in o)||o.era===1?n.year:1-n.year;return a.setUTCFullYear(c,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Ve(a,s)}}]),t}(P),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",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 ti(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),Ye(s)}}]),t}(P),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",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 ti(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}(P),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",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}(P),Cd=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}(P),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),"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}(P),Ed=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}(P);function Id(i,e,t){R(2,arguments);var r=U(i),a=ee(e),o=Do(r,t)-a;return r.setUTCDate(r.getUTCDate()-o*7),r}var 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",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 Ve(Id(a,n,s),s)}}]),t}(P);function Td(i,e){R(2,arguments);var t=U(i),r=ee(e),a=Po(t)-r;return t.setUTCDate(t.getUTCDate()-a*7),t}var 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",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 Ye(Td(a,n))}}]),t}(P),Pd=[31,28,31,30,31,30,31,31,30,31,30,31],Dd=[31,29,31,30,31,30,31,31,30,31,30,31],Od=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=Bo(n),l=a.getUTCMonth();return s?o>=1&&o<=Dd[l]:o>=1&&o<=Pd[l]}},{key:"set",value:function(a,o,n){return a.setUTCDate(n),a.setUTCHours(0,0,0,0),a}}]),t}(P),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),"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=Bo(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}(P);function xr(i,e,t){var r,a,o,n,s,l,d,c;R(2,arguments);var u=Je(),p=ee((r=(a=(o=(n=t==null?void 0:t.weekStartsOn)!==null&&n!==void 0?n:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:u.weekStartsOn)!==null&&a!==void 0?a:(d=u.locale)===null||d===void 0||(c=d.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=U(i),y=ee(e),N=m.getUTCDay(),D=y%7,O=(D+7)%7,T=(O<p?7:0)+y-N;return m.setUTCDate(m.getUTCDate()+T),m}var 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",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=xr(a,n,s),a.setUTCHours(0,0,0,0),a}}]),t}(P),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",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(c){var u=Math.floor((c-1)/7)*7;return(c+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=xr(a,n,s),a.setUTCHours(0,0,0,0),a}}]),t}(P),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",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(c){var u=Math.floor((c-1)/7)*7;return(c+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=xr(a,n,s),a.setUTCHours(0,0,0,0),a}}]),t}(P);function Ld(i,e){R(2,arguments);var t=ee(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 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",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=Ld(a,n),a.setUTCHours(0,0,0,0),a}}]),t}(P),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",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(wr(n),0,0,0),a}}]),t}(P),$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",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(wr(n),0,0,0),a}}]),t}(P),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",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(wr(n),0,0,0),a}}]),t}(P),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",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}(P),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",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}(P),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",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}(P),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",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}(P),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",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}(P),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",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}(P),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",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}(P),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",10),_(v(r),"incompatibleTokens",["t","T","x"]),r}return C(t,[{key:"parse",value:function(a,o){switch(o){case"X":return ue(ce.basicOptionalMinutes,a);case"XX":return ue(ce.basic,a);case"XXXX":return ue(ce.basicOptionalSeconds,a);case"XXXXX":return ue(ce.extendedOptionalSeconds,a);case"XXX":default:return ue(ce.extended,a)}}},{key:"set",value:function(a,o,n){return o.timestampIsSet?a:new Date(a.getTime()-n)}}]),t}(P),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",10),_(v(r),"incompatibleTokens",["t","T","X"]),r}return C(t,[{key:"parse",value:function(a,o){switch(o){case"x":return ue(ce.basicOptionalMinutes,a);case"xx":return ue(ce.basic,a);case"xxxx":return ue(ce.basicOptionalSeconds,a);case"xxxxx":return ue(ce.extendedOptionalSeconds,a);case"xxx":default:return ue(ce.extended,a)}}},{key:"set",value:function(a,o,n){return o.timestampIsSet?a:new Date(a.getTime()-n)}}]),t}(P),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",40),_(v(r),"incompatibleTokens","*"),r}return C(t,[{key:"parse",value:function(a){return $o(a)}},{key:"set",value:function(a,o,n){return[new Date(n*1e3),{timestampIsSet:!0}]}}]),t}(P),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",20),_(v(r),"incompatibleTokens","*"),r}return C(t,[{key:"parse",value:function(a){return $o(a)}},{key:"set",value:function(a,o,n){return[new Date(n),{timestampIsSet:!0}]}}]),t}(P),Zd={G:new md,y:new gd,Y:new bd,R:new yd,u:new wd,Q:new xd,q:new Cd,M:new kd,L:new Ed,w:new Sd,I:new Ad,d:new Od,D:new Vd,E:new Md,e:new Nd,c:new zd,i:new Rd,a:new Fd,b:new $d,B:new Hd,h:new Bd,H:new Ud,K:new qd,k:new jd,m:new Wd,s:new Yd,S:new Gd,X:new Kd,x:new Xd,t:new Qd,T:new Jd},eh=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,th=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ih=/^'([^]*?)'?$/,rh=/''/g,ah=/\S/,oh=/[a-zA-Z]/;function Ae(i,e,t,r){var a,o,n,s,l,d,c,u,p,m,y,N,D,O;R(3,arguments);var T=String(i),q=String(e),j=Je(),le=(a=(o=void 0)!==null&&o!==void 0?o:j.locale)!==null&&a!==void 0?a:zo;if(!le.match)throw new RangeError("locale must contain match property");var ye=ee((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:(c=j.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(ye>=1&&ye<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var it=ee((p=(m=(y=(N=void 0)!==null&&N!==void 0?N: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(!(it>=0&&it<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(q==="")return T===""?U(t):new Date(NaN);var rt={firstWeekContainsDate:ye,weekStartsOn:it,locale:le},at=[new pd],Ti=q.match(th).map(function(W){var z=W[0];if(z in Yi){var ne=Yi[z];return ne(W,le.formatLong)}return W}).join("").match(eh),G=[],te=ya(Ti),Ie;try{var qs=function(){var z=Ie.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&No(z)&&Zt(z,q,i),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Mo(z)&&Zt(z,q,i);var ne=z[0],Ht=Zd[ne];if(Ht){var ca=Ht.incompatibleTokens;if(Array.isArray(ca)){var ua=G.find(function(pa){return ca.includes(pa.token)||pa.token===ne});if(ua)throw new RangeError("The format string mustn't contain `".concat(ua.fullToken,"` and `").concat(z,"` at the same time"))}else if(Ht.incompatibleTokens==="*"&&G.length>0)throw new RangeError("The format string mustn't contain `".concat(z,"` and any other token at the same time"));G.push({token:ne,fullToken:z});var Pi=Ht.run(T,z,le.match,rt);if(!Pi)return{v:new Date(NaN)};at.push(Pi.setter),T=Pi.rest}else{if(ne.match(oh))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ne+"`");if(z==="''"?z="'":ne==="'"&&(z=nh(z)),T.indexOf(z)===0)T=T.slice(z.length);else return{v:new Date(NaN)}}};for(te.s();!(Ie=te.n()).done;){var sa=qs();if(ge(sa)==="object")return sa.v}}catch(W){te.e(W)}finally{te.f()}if(T.length>0&&ah.test(T))return new Date(NaN);var js=at.map(function(W){return W.priority}).sort(function(W,z){return z-W}).filter(function(W,z,ne){return ne.indexOf(W)===z}).map(function(W){return at.filter(function(z){return z.priority===W}).sort(function(z,ne){return ne.subPriority-z.subPriority})}).map(function(W){return W[0]}),Ai=U(t);if(isNaN(Ai.getTime()))return new Date(NaN);var ot=To(Ai,Vo(Ai)),la={},Ft=ya(js),da;try{for(Ft.s();!(da=Ft.n()).done;){var ha=da.value;if(!ha.validate(ot,rt))return new Date(NaN);var $t=ha.set(ot,la,rt);Array.isArray($t)?(ot=$t[0],sd(la,$t[1])):ot=$t}}catch(W){Ft.e(W)}finally{Ft.f()}return ot}function nh(i){return i.match(ih)[1].replace(rh,"'")}function wa(i,e){R(2,arguments);var t=U(i),r=U(e);return t.getTime()>r.getTime()}function xa(i,e){R(2,arguments);var t=U(i),r=U(e);return t.getTime()<r.getTime()}function Ca(i,e,t){return R(2,arguments),So(Ae(i,e,new Date,t))}const sh='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.date{font-family:"Roboto";font-style:normal}.date__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px;height:100%}.date__wrapper--autofilled{pointer-events:none}.date__wrapper--autofilled .date__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__wrapper--autofilled .date__input::part(input-field){color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}.date__manual-mode::part(toggle-button){display:none}.date__input{border:none;width:inherit;position:relative}.date__input[focused]::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.date__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.date__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:0;height:44px}.date__input>input{padding:5px 15px}.date__input::part(toggle-button){position:relative;right:10px}.date__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.date__tooltip-icon{position:absolute;right:0;bottom:10px}.date__tooltip{position:absolute;bottom:35px;right:10px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.date__tooltip.visible{opacity:1}',lh=sh,Uo=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.touched=!1,this.formatDate=e=>{const{year:t,month:r,day:a}=e,o=new Date(t,r,a);return ga(o,this.dateFormat)},this.parseDate=e=>{const t=Ae(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.handleDocumentIdUpdate=e=>{if(this.name!==X.BIRTHDATE)return;const t=e.detail;this.value=t,this.valueAsDate=Ae(this.value||"",X.DATE_FORMAT,new Date),this.touched=!0,this.datePicker&&(this.datePicker.value=this.value),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.valueHandler({name:this.name,value:this.value})},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.dateFormat="yyyy-MM-dd",this.emitOnClick=!1,this.enableSouthAfricanMode=void 0,this.enableManualDateInput=!1,this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}get formattedValue(){if(!this.value)return"";const i=Ae(this.value,"yyyy-MM-dd",new Date);return ga(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})}handleCustomRegistrationChange(i){i?window.addEventListener("documentIdUpdated",this.handleDocumentIdUpdate):window.removeEventListener("documentIdUpdated",this.handleDocumentIdUpdate)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){const e=i.composedPath();!e.includes(this.tooltipIconReference)&&!e.includes(this.tooltipReference)&&(this.showTooltip=!1)}connectedCallback(){var i,e;this.minDate=Ae(((i=this.validation.min)===null||i===void 0?void 0:i.toString())||"","yyyy-MM-dd",new Date),this.maxDate=Ae(((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.enableSouthAfricanMode&&window.addEventListener("documentIdUpdated",this.handleDocumentIdUpdate),this.datePicker.i18n=Object.assign(Object.assign({},this.datePicker.i18n),{formatDate:this.formatDate,parseDate:this.parseDate}),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value})),this.isValid=this.setValidity()}disconnectedCallback(){this.enableSouthAfricanMode&&window.removeEventListener("documentIdUpdated",this.handleDocumentIdUpdate)}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=Ae(this.value||"","yyyy-MM-dd",new Date),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0),this.enableSouthAfricanMode&&window.dispatchEvent(new CustomEvent("birthDateUpdated",{detail:{birthDate:this.value}}))}handleValidated(){this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()}setValidity(){return xa(this.valueAsDate,this.minDate)||wa(this.valueAsDate,this.maxDate)||!Ca(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(xa(this.valueAsDate,this.minDate)||wa(this.valueAsDate,this.maxDate))return b("dateError2",this.language);if(!Ca(this.formattedValue,this.dateFormat))return b("dateFormatError",this.language)}renderTooltip(){return this.showTooltip?h.h("div",{class:`date__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"b8f91a203d028d6effe0cb976465756841453300",class:`date__wrapper ${this.autofilled?"date__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},h.h("label",{key:"e5d9bda31742bec5c4e24e390941688fd4eeb239",class:`date__label ${this.validation.mandatory?"date__label--required":""}}`,htmlFor:`${this.name}__input`},this.displayName,h.h("span",{key:"8055cfcb8ed54eea9f7b4f7c3719267aa258fc78",class:this.validation.mandatory?"date__label--required":""})),h.h("vaadin-date-picker",{key:"a2bd1e51e96308d02ee0462ff681a818d008399f",id:`${this.name}__input`,type:"date",class:`date__input ${i} ${this.enableManualDateInput&&"date__manual-mode"}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onChange:e=>this.handleInput(e),onValidated:()=>this.handleValidated(),autoOpenDisabled:this.enableManualDateInput}),h.h("small",{key:"6f7e5bead37a71932d678be3dc9ff36170871289",class:"date__error-message"},this.errorMessage),this.tooltip&&h.h("img",{key:"c67702d9aa5ee40666c772bc9612007fdd69af80",class:"date__tooltip-icon",src:se,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}get element(){return h.getElement(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"],enableSouthAfricanMode:["handleCustomRegistrationChange"]}}};Uo.style=lh;const dh='*,*::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}',hh=dh,qo=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=e=>{this.value=e.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.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?h.h("div",{class:`email__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"723df8f3a6e8c57fe19082400971daf50f5c981d",class:`email__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},h.h("div",{key:"581d6e02b63d1c659ae44424518f64db450d5365",class:"email__wrapper--flex"},h.h("label",{key:"11e6a848f6f04903989b3ab2075865f6e279c087",class:`email__label ${this.validation.mandatory?"email__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"73e11520cffbddda1a2aeb4b560e7f4cf456e2fb",class:"email__wrapper--relative"},this.tooltip&&h.h("img",{key:"e8571ce14b9b98311daf1712ebde7d6da9b5a6a6",class:"email__tooltip-icon",src:se,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("input",{key:"dd05ef0b4d906598c6d5775a78ccbdc9ea81cb8c",id:`${this.name}__input`,type:"email",class:`email__input ${i}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,ref:e=>this.inputReference=e,pattern:this.validationPattern,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),h.h("small",{key:"0d2d41207f8274d8c6f69143131265ef5b458689",class:"email__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};qo.style=hh;var ch=Object.defineProperty,uh=Object.defineProperties,ph=Object.getOwnPropertyDescriptors,ka=Object.getOwnPropertySymbols,mh=Object.prototype.hasOwnProperty,fh=Object.prototype.propertyIsEnumerable,Ki=(i,e,t)=>e in i?ch(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ii=(i,e)=>{for(var t in e||(e={}))mh.call(e,t)&&Ki(i,t,e[t]);if(ka)for(var t of ka(e))fh.call(e,t)&&Ki(i,t,e[t]);return i},jo=(i,e)=>uh(i,ph(e)),Q=(i,e,t)=>(Ki(i,typeof e!="symbol"?e+"":e,t),t),ri=(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/
@@ -11,17 +11,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
11
11
  * @license
12
12
  * Copyright 2019 Google LLC
13
13
  * SPDX-License-Identifier: BSD-3-Clause
14
- */const Xt=globalThis,Cr=Xt.ShadowRoot&&(Xt.ShadyCSS===void 0||Xt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,kr=Symbol(),Ea=new WeakMap;let Er=class{constructor(i,e,t){if(this._$cssResult$=!0,t!==kr)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=e}get styleSheet(){let i=this.o;const e=this.t;if(Cr&&i===void 0){const t=e!==void 0&&e.length===1;t&&(i=Ea.get(e)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),t&&Ea.set(e,i))}return i}toString(){return this.cssText}};const vh=i=>new Er(typeof i=="string"?i:i+"",void 0,kr),f=(i,...e)=>{const t=i.length===1?i[0]:e.reduce((r,a,o)=>r+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+i[o+1],i[0]);return new Er(t,i,kr)},Wo=(i,e)=>{if(Cr)i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const r=document.createElement("style"),a=Xt.litNonce;a!==void 0&&r.setAttribute("nonce",a),r.textContent=t.cssText,i.appendChild(r)}},Sa=Cr?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return vh(t)})(i):i;/**
14
+ */const Xt=globalThis,Cr=Xt.ShadowRoot&&(Xt.ShadyCSS===void 0||Xt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,kr=Symbol(),Ea=new WeakMap;let Er=class{constructor(i,e,t){if(this._$cssResult$=!0,t!==kr)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=e}get styleSheet(){let i=this.o;const e=this.t;if(Cr&&i===void 0){const t=e!==void 0&&e.length===1;t&&(i=Ea.get(e)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),t&&Ea.set(e,i))}return i}toString(){return this.cssText}};const vh=i=>new Er(typeof i=="string"?i:i+"",void 0,kr),f=(i,...e)=>{const t=i.length===1?i[0]:e.reduce((r,a,o)=>r+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+i[o+1],i[0]);return new Er(t,i,kr)},Wo=(i,e)=>{if(Cr)i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const r=document.createElement("style"),a=Xt.litNonce;a!==void 0&&r.setAttribute("nonce",a),r.textContent=t.cssText,i.appendChild(r)}},Ia=Cr?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return vh(t)})(i):i;/**
15
15
  * @license
16
16
  * Copyright 2017 Google LLC
17
17
  * SPDX-License-Identifier: BSD-3-Clause
18
- */const{is:gh,defineProperty:bh,getOwnPropertyDescriptor:yh,getOwnPropertyNames:wh,getOwnPropertySymbols:xh,getPrototypeOf:Ch}=Object,Ge=globalThis,Ia=Ge.trustedTypes,kh=Ia?Ia.emptyScript:"",Ta=Ge.reactiveElementPolyfillSupport,vt=(i,e)=>i,Xi={toAttribute(i,e){switch(e){case Boolean:i=i?kh: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}},Yo=(i,e)=>!gh(i,e),Aa={attribute:!0,type:String,converter:Xi,reflect:!1,useDefault:!1,hasChanged:Yo};Symbol.metadata!=null||(Symbol.metadata=Symbol("metadata")),Ge.litPropertyMetadata!=null||(Ge.litPropertyMetadata=new WeakMap);let He=class extends HTMLElement{static addInitializer(i){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,e=Aa){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(i)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(i,e),!e.noAccessor){const t=Symbol(),r=this.getPropertyDescriptor(i,t,e);r!==void 0&&bh(this.prototype,i,r)}}static getPropertyDescriptor(i,e,t){var r;const{get:a,set:o}=(r=yh(this.prototype,i))!=null?r:{get(){return this[e]},set(n){this[e]=n}};return{get:a,set(n){const s=a==null?void 0:a.call(this);o==null||o.call(this,n),this.requestUpdate(i,s,t)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){var e;return(e=this.elementProperties.get(i))!=null?e:Aa}static _$Ei(){if(this.hasOwnProperty(vt("elementProperties")))return;const i=Ch(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty(vt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(vt("properties"))){const e=this.properties,t=[...wh(e),...xh(e)];for(const r of t)this.createProperty(r,e[r])}const i=this[Symbol.metadata];if(i!==null){const e=litPropertyMetadata.get(i);if(e!==void 0)for(const[t,r]of e)this.elementProperties.set(t,r)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const r=this._$Eu(e,t);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){const e=[];if(Array.isArray(i)){const t=new Set(i.flat(1/0).reverse());for(const r of t)e.unshift(Sa(r))}else i!==void 0&&e.push(Sa(i));return e}static _$Eu(i,e){const t=e.attribute;return t===!1?void 0:typeof t=="string"?t:typeof i=="string"?i.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var i;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(i=this.constructor.l)==null||i.forEach(e=>e(this))}addController(i){var e,t;((e=this._$EO)!=null?e:this._$EO=new Set).add(i),this.renderRoot!==void 0&&this.isConnected&&((t=i.hostConnected)==null||t.call(i))}removeController(i){var e;(e=this._$EO)==null||e.delete(i)}_$E_(){const i=new Map,e=this.constructor.elementProperties;for(const t of e.keys())this.hasOwnProperty(t)&&(i.set(t,this[t]),delete this[t]);i.size>0&&(this._$Ep=i)}createRenderRoot(){var i;const e=(i=this.shadowRoot)!=null?i:this.attachShadow(this.constructor.shadowRootOptions);return Wo(e,this.constructor.elementStyles),e}connectedCallback(){var i;this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(i=this._$EO)==null||i.forEach(e=>{var t;return(t=e.hostConnected)==null?void 0:t.call(e)})}enableUpdating(i){}disconnectedCallback(){var i;(i=this._$EO)==null||i.forEach(e=>{var t;return(t=e.hostDisconnected)==null?void 0:t.call(e)})}attributeChangedCallback(i,e,t){this._$AK(i,t)}_$ET(i,e){var t;const r=this.constructor.elementProperties.get(i),a=this.constructor._$Eu(i,r);if(a!==void 0&&r.reflect===!0){const o=(((t=r.converter)==null?void 0:t.toAttribute)!==void 0?r.converter:Xi).toAttribute(e,r.type);this._$Em=i,o==null?this.removeAttribute(a):this.setAttribute(a,o),this._$Em=null}}_$AK(i,e){var t,r,a;const o=this.constructor,n=o._$Eh.get(i);if(n!==void 0&&this._$Em!==n){const s=o.getPropertyOptions(n),l=typeof s.converter=="function"?{fromAttribute:s.converter}:((t=s.converter)==null?void 0:t.fromAttribute)!==void 0?s.converter:Xi;this._$Em=n;const d=l.fromAttribute(e,s.type);this[n]=(a=d!=null?d:(r=this._$Ej)==null?void 0:r.get(n))!=null?a:d,this._$Em=null}}requestUpdate(i,e,t,r=!1,a){var o,n;if(i!==void 0){const s=this.constructor;if(r===!1&&(a=this[i]),t!=null||(t=s.getPropertyOptions(i)),!(((o=t.hasChanged)!=null?o:Yo)(a,e)||t.useDefault&&t.reflect&&a===((n=this._$Ej)==null?void 0:n.get(i))&&!this.hasAttribute(s._$Eu(i,t))))return;this.C(i,e,t)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(i,e,{useDefault:t,reflect:r,wrapped:a},o){var n,s,l;t&&!((n=this._$Ej)!=null?n:this._$Ej=new Map).has(i)&&(this._$Ej.set(i,(s=o!=null?o:e)!=null?s:this[i]),a!==!0||o!==void 0)||(this._$AL.has(i)||(this.hasUpdated||t||(e=void 0),this._$AL.set(i,e)),r===!0&&this._$Em!==i&&((l=this._$Eq)!=null?l:this._$Eq=new Set).add(i))}_$EP(){return ri(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(e){Promise.reject(e)}const i=this.scheduleUpdate();return i!=null&&(yield i),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[a,o]of this._$Ep)this[a]=o;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[a,o]of r){const{wrapped:n}=o,s=this[a];n!==!0||this._$AL.has(a)||s===void 0||this.C(a,void 0,o,s)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(r=>{var a;return(a=r.hostUpdate)==null?void 0:a.call(r)}),this.update(t)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(t)}willUpdate(i){}_$AE(i){var e;(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostUpdated)==null?void 0:r.call(t)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(i){return!0}update(i){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(i){}firstUpdated(i){}};var Pa;He.elementStyles=[],He.shadowRootOptions={mode:"open"},He[vt("elementProperties")]=new Map,He[vt("finalized")]=new Map,Ta==null||Ta({ReactiveElement:He}),((Pa=Ge.reactiveElementVersions)!=null?Pa:Ge.reactiveElementVersions=[]).push("2.1.2");/**
18
+ */const{is:gh,defineProperty:bh,getOwnPropertyDescriptor:yh,getOwnPropertyNames:wh,getOwnPropertySymbols:xh,getPrototypeOf:Ch}=Object,Ge=globalThis,Sa=Ge.trustedTypes,kh=Sa?Sa.emptyScript:"",Ta=Ge.reactiveElementPolyfillSupport,vt=(i,e)=>i,Xi={toAttribute(i,e){switch(e){case Boolean:i=i?kh: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}},Yo=(i,e)=>!gh(i,e),Aa={attribute:!0,type:String,converter:Xi,reflect:!1,useDefault:!1,hasChanged:Yo};Symbol.metadata!=null||(Symbol.metadata=Symbol("metadata")),Ge.litPropertyMetadata!=null||(Ge.litPropertyMetadata=new WeakMap);let He=class extends HTMLElement{static addInitializer(i){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,e=Aa){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(i)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(i,e),!e.noAccessor){const t=Symbol(),r=this.getPropertyDescriptor(i,t,e);r!==void 0&&bh(this.prototype,i,r)}}static getPropertyDescriptor(i,e,t){var r;const{get:a,set:o}=(r=yh(this.prototype,i))!=null?r:{get(){return this[e]},set(n){this[e]=n}};return{get:a,set(n){const s=a==null?void 0:a.call(this);o==null||o.call(this,n),this.requestUpdate(i,s,t)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){var e;return(e=this.elementProperties.get(i))!=null?e:Aa}static _$Ei(){if(this.hasOwnProperty(vt("elementProperties")))return;const i=Ch(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty(vt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(vt("properties"))){const e=this.properties,t=[...wh(e),...xh(e)];for(const r of t)this.createProperty(r,e[r])}const i=this[Symbol.metadata];if(i!==null){const e=litPropertyMetadata.get(i);if(e!==void 0)for(const[t,r]of e)this.elementProperties.set(t,r)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const r=this._$Eu(e,t);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){const e=[];if(Array.isArray(i)){const t=new Set(i.flat(1/0).reverse());for(const r of t)e.unshift(Ia(r))}else i!==void 0&&e.push(Ia(i));return e}static _$Eu(i,e){const t=e.attribute;return t===!1?void 0:typeof t=="string"?t:typeof i=="string"?i.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var i;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(i=this.constructor.l)==null||i.forEach(e=>e(this))}addController(i){var e,t;((e=this._$EO)!=null?e:this._$EO=new Set).add(i),this.renderRoot!==void 0&&this.isConnected&&((t=i.hostConnected)==null||t.call(i))}removeController(i){var e;(e=this._$EO)==null||e.delete(i)}_$E_(){const i=new Map,e=this.constructor.elementProperties;for(const t of e.keys())this.hasOwnProperty(t)&&(i.set(t,this[t]),delete this[t]);i.size>0&&(this._$Ep=i)}createRenderRoot(){var i;const e=(i=this.shadowRoot)!=null?i:this.attachShadow(this.constructor.shadowRootOptions);return Wo(e,this.constructor.elementStyles),e}connectedCallback(){var i;this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(i=this._$EO)==null||i.forEach(e=>{var t;return(t=e.hostConnected)==null?void 0:t.call(e)})}enableUpdating(i){}disconnectedCallback(){var i;(i=this._$EO)==null||i.forEach(e=>{var t;return(t=e.hostDisconnected)==null?void 0:t.call(e)})}attributeChangedCallback(i,e,t){this._$AK(i,t)}_$ET(i,e){var t;const r=this.constructor.elementProperties.get(i),a=this.constructor._$Eu(i,r);if(a!==void 0&&r.reflect===!0){const o=(((t=r.converter)==null?void 0:t.toAttribute)!==void 0?r.converter:Xi).toAttribute(e,r.type);this._$Em=i,o==null?this.removeAttribute(a):this.setAttribute(a,o),this._$Em=null}}_$AK(i,e){var t,r,a;const o=this.constructor,n=o._$Eh.get(i);if(n!==void 0&&this._$Em!==n){const s=o.getPropertyOptions(n),l=typeof s.converter=="function"?{fromAttribute:s.converter}:((t=s.converter)==null?void 0:t.fromAttribute)!==void 0?s.converter:Xi;this._$Em=n;const d=l.fromAttribute(e,s.type);this[n]=(a=d!=null?d:(r=this._$Ej)==null?void 0:r.get(n))!=null?a:d,this._$Em=null}}requestUpdate(i,e,t,r=!1,a){var o,n;if(i!==void 0){const s=this.constructor;if(r===!1&&(a=this[i]),t!=null||(t=s.getPropertyOptions(i)),!(((o=t.hasChanged)!=null?o:Yo)(a,e)||t.useDefault&&t.reflect&&a===((n=this._$Ej)==null?void 0:n.get(i))&&!this.hasAttribute(s._$Eu(i,t))))return;this.C(i,e,t)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(i,e,{useDefault:t,reflect:r,wrapped:a},o){var n,s,l;t&&!((n=this._$Ej)!=null?n:this._$Ej=new Map).has(i)&&(this._$Ej.set(i,(s=o!=null?o:e)!=null?s:this[i]),a!==!0||o!==void 0)||(this._$AL.has(i)||(this.hasUpdated||t||(e=void 0),this._$AL.set(i,e)),r===!0&&this._$Em!==i&&((l=this._$Eq)!=null?l:this._$Eq=new Set).add(i))}_$EP(){return ri(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(e){Promise.reject(e)}const i=this.scheduleUpdate();return i!=null&&(yield i),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[a,o]of this._$Ep)this[a]=o;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[a,o]of r){const{wrapped:n}=o,s=this[a];n!==!0||this._$AL.has(a)||s===void 0||this.C(a,void 0,o,s)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(r=>{var a;return(a=r.hostUpdate)==null?void 0:a.call(r)}),this.update(t)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(t)}willUpdate(i){}_$AE(i){var e;(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostUpdated)==null?void 0:r.call(t)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(i){return!0}update(i){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(i){}firstUpdated(i){}};var Pa;He.elementStyles=[],He.shadowRootOptions={mode:"open"},He[vt("elementProperties")]=new Map,He[vt("finalized")]=new Map,Ta==null||Ta({ReactiveElement:He}),((Pa=Ge.reactiveElementVersions)!=null?Pa:Ge.reactiveElementVersions=[]).push("2.1.2");/**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
21
21
  * SPDX-License-Identifier: BSD-3-Clause
22
- */const ai=globalThis,Da=i=>i,oi=ai.trustedTypes,Oa=oi?oi.createPolicy("lit-html",{createHTML:i=>i}):void 0,Go="$lit$",xe=`lit$${Math.random().toFixed(9).slice(2)}$`,Ko="?"+xe,Eh=`<${Ko}>`,Me=document,bt=()=>Me.createComment(""),yt=i=>i===null||typeof i!="object"&&typeof i!="function",Sr=Array.isArray,Sh=i=>Sr(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Oi=`[
23
- \f\r]`,dt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Va=/-->/g,Ma=/>/g,Ie=RegExp(`>|${Oi}(?:([^\\s"'>=/]+)(${Oi}*=${Oi}*(?:[^
24
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Na=/'/g,za=/"/g,Xo=/^(?:script|style|textarea|title)$/i,Ke=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),La=new WeakMap,Pe=Me.createTreeWalker(Me,129);function Qo(i,e){if(!Sr(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Oa!==void 0?Oa.createHTML(e):e}const Ih=(i,e)=>{const t=i.length-1,r=[];let a,o=e===2?"<svg>":e===3?"<math>":"",n=dt;for(let s=0;s<t;s++){const l=i[s];let d,c,u=-1,p=0;for(;p<l.length&&(n.lastIndex=p,c=n.exec(l),c!==null);)p=n.lastIndex,n===dt?c[1]==="!--"?n=Va:c[1]!==void 0?n=Ma:c[2]!==void 0?(Xo.test(c[2])&&(a=RegExp("</"+c[2],"g")),n=Ie):c[3]!==void 0&&(n=Ie):n===Ie?c[0]===">"?(n=a!=null?a:dt,u=-1):c[1]===void 0?u=-2:(u=n.lastIndex-c[2].length,d=c[1],n=c[3]===void 0?Ie:c[3]==='"'?za:Na):n===za||n===Na?n=Ie:n===Va||n===Ma?n=dt:(n=Ie,a=void 0);const m=n===Ie&&i[s+1].startsWith("/>")?" ":"";o+=n===dt?l+Eh:u>=0?(r.push(d),l.slice(0,u)+Go+l.slice(u)+xe+m):l+xe+(u===-2?s:m)}return[Qo(i,o+(i[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class wt{constructor({strings:e,_$litType$:t},r){let a;this.parts=[];let o=0,n=0;const s=e.length-1,l=this.parts,[d,c]=Ih(e,t);if(this.el=wt.createElement(d,r),Pe.currentNode=this.el.content,t===2||t===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(a=Pe.nextNode())!==null&&l.length<s;){if(a.nodeType===1){if(a.hasAttributes())for(const u of a.getAttributeNames())if(u.endsWith(Go)){const p=c[n++],m=a.getAttribute(u).split(xe),y=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:y[2],strings:m,ctor:y[1]==="."?Ah:y[1]==="?"?Ph:y[1]==="@"?Dh:fi}),a.removeAttribute(u)}else u.startsWith(xe)&&(l.push({type:6,index:o}),a.removeAttribute(u));if(Xo.test(a.tagName)){const u=a.textContent.split(xe),p=u.length-1;if(p>0){a.textContent=oi?oi.emptyScript:"";for(let m=0;m<p;m++)a.append(u[m],bt()),Pe.nextNode(),l.push({type:2,index:++o});a.append(u[p],bt())}}}else if(a.nodeType===8)if(a.data===Ko)l.push({type:2,index:o});else{let u=-1;for(;(u=a.data.indexOf(xe,u+1))!==-1;)l.push({type:7,index:o}),u+=xe.length-1}o++}}static createElement(e,t){const r=Me.createElement("template");return r.innerHTML=e,r}}function Xe(i,e,t=i,r){var a,o,n;if(e===Ke)return e;let s=r!==void 0?(a=t._$Co)==null?void 0:a[r]:t._$Cl;const l=yt(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=Xe(i,s._$AS(i,e.values),s,r)),e}class Th{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:Me).importNode(r,!0);Pe.currentNode=o;let n=Pe.nextNode(),s=0,l=0,d=a[0];for(;d!==void 0;){if(s===d.index){let c;d.type===2?c=new Dt(n,n.nextSibling,this,e):d.type===1?c=new d.ctor(n,d.name,d.strings,this,e):d.type===6&&(c=new Oh(n,this,e)),this._$AV.push(c),d=a[++l]}s!==(d==null?void 0:d.index)&&(n=Pe.nextNode(),s++)}return Pe.currentNode=Me,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 Dt{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=Xe(this,e,t),yt(e)?e===Y||e==null||e===""?(this._$AH!==Y&&this._$AR(),this._$AH=Y):e!==this._$AH&&e!==Ke&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Sh(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&&yt(this._$AH)?this._$AA.nextSibling.data=e:this.T(Me.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=wt.createElement(Qo(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 Th(o,this),s=n.u(this.options);n.p(r),this.T(s),this._$AH=n}}_$AC(e){let t=La.get(e.strings);return t===void 0&&La.set(e.strings,t=new wt(e)),t}k(e){Sr(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 Dt(this.O(bt()),this.O(bt()),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=Da(e).nextSibling;Da(e).remove(),e=a}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class fi{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=Xe(this,e,t,0),n=!yt(e)||e!==this._$AH&&e!==Ke,n&&(this._$AH=e);else{const s=e;let l,d;for(e=o[0],l=0;l<o.length-1;l++)d=Xe(this,s[r+l],t,l),d===Ke&&(d=this._$AH[l]),n||(n=!yt(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 Ah extends fi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Y?void 0:e}}class Ph extends fi{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Y)}}class Dh extends fi{constructor(e,t,r,a,o){super(e,t,r,a,o),this.type=5}_$AI(e,t=this){var r;if((e=(r=Xe(this,e,t,0))!=null?r:Y)===Ke)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 Oh{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){Xe(this,e)}}const Ra=ai.litHtmlPolyfillSupport;var Fa;Ra==null||Ra(wt,Dt),((Fa=ai.litHtmlVersions)!=null?Fa:ai.litHtmlVersions=[]).push("3.3.2");const Jo=(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 Dt(e.insertBefore(bt(),s),s,void 0,t!=null?t:{})}return n._$AI(i),n};/**
22
+ */const ai=globalThis,Da=i=>i,oi=ai.trustedTypes,Oa=oi?oi.createPolicy("lit-html",{createHTML:i=>i}):void 0,Go="$lit$",xe=`lit$${Math.random().toFixed(9).slice(2)}$`,Ko="?"+xe,Eh=`<${Ko}>`,Me=document,bt=()=>Me.createComment(""),yt=i=>i===null||typeof i!="object"&&typeof i!="function",Ir=Array.isArray,Ih=i=>Ir(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Oi=`[
23
+ \f\r]`,dt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Va=/-->/g,Ma=/>/g,Se=RegExp(`>|${Oi}(?:([^\\s"'>=/]+)(${Oi}*=${Oi}*(?:[^
24
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Na=/'/g,za=/"/g,Xo=/^(?:script|style|textarea|title)$/i,Ke=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),La=new WeakMap,Pe=Me.createTreeWalker(Me,129);function Qo(i,e){if(!Ir(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Oa!==void 0?Oa.createHTML(e):e}const Sh=(i,e)=>{const t=i.length-1,r=[];let a,o=e===2?"<svg>":e===3?"<math>":"",n=dt;for(let s=0;s<t;s++){const l=i[s];let d,c,u=-1,p=0;for(;p<l.length&&(n.lastIndex=p,c=n.exec(l),c!==null);)p=n.lastIndex,n===dt?c[1]==="!--"?n=Va:c[1]!==void 0?n=Ma:c[2]!==void 0?(Xo.test(c[2])&&(a=RegExp("</"+c[2],"g")),n=Se):c[3]!==void 0&&(n=Se):n===Se?c[0]===">"?(n=a!=null?a:dt,u=-1):c[1]===void 0?u=-2:(u=n.lastIndex-c[2].length,d=c[1],n=c[3]===void 0?Se:c[3]==='"'?za:Na):n===za||n===Na?n=Se:n===Va||n===Ma?n=dt:(n=Se,a=void 0);const m=n===Se&&i[s+1].startsWith("/>")?" ":"";o+=n===dt?l+Eh:u>=0?(r.push(d),l.slice(0,u)+Go+l.slice(u)+xe+m):l+xe+(u===-2?s:m)}return[Qo(i,o+(i[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class wt{constructor({strings:e,_$litType$:t},r){let a;this.parts=[];let o=0,n=0;const s=e.length-1,l=this.parts,[d,c]=Sh(e,t);if(this.el=wt.createElement(d,r),Pe.currentNode=this.el.content,t===2||t===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(a=Pe.nextNode())!==null&&l.length<s;){if(a.nodeType===1){if(a.hasAttributes())for(const u of a.getAttributeNames())if(u.endsWith(Go)){const p=c[n++],m=a.getAttribute(u).split(xe),y=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:y[2],strings:m,ctor:y[1]==="."?Ah:y[1]==="?"?Ph:y[1]==="@"?Dh:fi}),a.removeAttribute(u)}else u.startsWith(xe)&&(l.push({type:6,index:o}),a.removeAttribute(u));if(Xo.test(a.tagName)){const u=a.textContent.split(xe),p=u.length-1;if(p>0){a.textContent=oi?oi.emptyScript:"";for(let m=0;m<p;m++)a.append(u[m],bt()),Pe.nextNode(),l.push({type:2,index:++o});a.append(u[p],bt())}}}else if(a.nodeType===8)if(a.data===Ko)l.push({type:2,index:o});else{let u=-1;for(;(u=a.data.indexOf(xe,u+1))!==-1;)l.push({type:7,index:o}),u+=xe.length-1}o++}}static createElement(e,t){const r=Me.createElement("template");return r.innerHTML=e,r}}function Xe(i,e,t=i,r){var a,o,n;if(e===Ke)return e;let s=r!==void 0?(a=t._$Co)==null?void 0:a[r]:t._$Cl;const l=yt(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=Xe(i,s._$AS(i,e.values),s,r)),e}class Th{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:Me).importNode(r,!0);Pe.currentNode=o;let n=Pe.nextNode(),s=0,l=0,d=a[0];for(;d!==void 0;){if(s===d.index){let c;d.type===2?c=new Dt(n,n.nextSibling,this,e):d.type===1?c=new d.ctor(n,d.name,d.strings,this,e):d.type===6&&(c=new Oh(n,this,e)),this._$AV.push(c),d=a[++l]}s!==(d==null?void 0:d.index)&&(n=Pe.nextNode(),s++)}return Pe.currentNode=Me,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 Dt{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=Xe(this,e,t),yt(e)?e===Y||e==null||e===""?(this._$AH!==Y&&this._$AR(),this._$AH=Y):e!==this._$AH&&e!==Ke&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ih(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&&yt(this._$AH)?this._$AA.nextSibling.data=e:this.T(Me.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=wt.createElement(Qo(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 Th(o,this),s=n.u(this.options);n.p(r),this.T(s),this._$AH=n}}_$AC(e){let t=La.get(e.strings);return t===void 0&&La.set(e.strings,t=new wt(e)),t}k(e){Ir(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 Dt(this.O(bt()),this.O(bt()),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=Da(e).nextSibling;Da(e).remove(),e=a}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class fi{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=Xe(this,e,t,0),n=!yt(e)||e!==this._$AH&&e!==Ke,n&&(this._$AH=e);else{const s=e;let l,d;for(e=o[0],l=0;l<o.length-1;l++)d=Xe(this,s[r+l],t,l),d===Ke&&(d=this._$AH[l]),n||(n=!yt(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 Ah extends fi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Y?void 0:e}}class Ph extends fi{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Y)}}class Dh extends fi{constructor(e,t,r,a,o){super(e,t,r,a,o),this.type=5}_$AI(e,t=this){var r;if((e=(r=Xe(this,e,t,0))!=null?r:Y)===Ke)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 Oh{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){Xe(this,e)}}const Ra=ai.litHtmlPolyfillSupport;var Fa;Ra==null||Ra(wt,Dt),((Fa=ai.litHtmlVersions)!=null?Fa:ai.litHtmlVersions=[]).push("3.3.2");const Jo=(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 Dt(e.insertBefore(bt(),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 Zo=[],Qi=new Set,Ir=new Set;function en(i){return i&&Object.prototype.hasOwnProperty.call(i,"__themes")}function Vh(i){return en(customElements.get(i))}function Mh(i=[]){return[i].flat(1/0).filter(e=>e instanceof Er?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function tn(i,e){return(i||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function rn(i){return i.map(e=>e.cssText).join(`
37
- `)}const ni="vaadin-themable-mixin-style";function Nh(i,e){const t=document.createElement("style");t.id=ni,t.textContent=rn(i),e.content.appendChild(t)}function zh(i){if(!i.shadowRoot)return;const e=i.constructor;if(i instanceof Be)[...i.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),Wo(i.shadowRoot,e.elementStyles);else{const t=i.shadowRoot.getElementById(ni),r=e.prototype._template;t.textContent=r.content.getElementById(ni).textContent}}function Lh(i){Qi.forEach(e=>{const t=e.deref();t instanceof i?zh(t):t||Qi.delete(e)})}function an(i){if(i.prototype instanceof Be)i.elementStyles=i.finalizeStyles(i.styles);else{const e=i.prototype._template;e.content.getElementById(ni).textContent=rn(i.getStylesForThis())}Ir.forEach(e=>{const t=customElements.get(e);t!==i&&t.prototype instanceof i&&an(t)})}function Rh(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=Mh(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(i,e,t):Zo.push({themeFor:i,styles:e,include:t.include,moduleId:t.moduleId}),i&&Ir.forEach(r=>{if(tn(i,r)&&Vh(r)){const a=customElements.get(r);Rh(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".`),an(a),Lh(a)}})}function Ji(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Zo}function Fh(i=""){let e=0;return i.startsWith("lumo-")||i.startsWith("material-")?e=1:i.startsWith("vaadin-")&&(e=2),e}function on(i){const e=[];return i.include&&[].concat(i.include).forEach(t=>{const r=Ji().find(a=>a.moduleId===t);r?e.push(...on(r),...r.styles):console.warn(`Included moduleId ${t} not found in style registry`)},i.styles),e}function $h(i){const e=`${i}-default-theme`,t=Ji().filter(r=>r.moduleId!==e&&tn(r.themeFor,i)).map(r=>jo(ii({},r),{styles:[...on(r),...r.styles],includePriority:Fh(r.moduleId)})).sort((r,a)=>a.includePriority-r.includePriority);return t.length>0?t:Ji().filter(r=>r.moduleId===e)}const M=i=>class extends _i(i){constructor(){super(),Qi.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Ir.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||en(this)||Nh(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,...$h(this.is)];const a=this.__themes.flatMap(o=>o.styles);return a.filter((o,n)=>n===a.lastIndexOf(o))}};/**
36
+ */const Zo=[],Qi=new Set,Sr=new Set;function en(i){return i&&Object.prototype.hasOwnProperty.call(i,"__themes")}function Vh(i){return en(customElements.get(i))}function Mh(i=[]){return[i].flat(1/0).filter(e=>e instanceof Er?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function tn(i,e){return(i||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function rn(i){return i.map(e=>e.cssText).join(`
37
+ `)}const ni="vaadin-themable-mixin-style";function Nh(i,e){const t=document.createElement("style");t.id=ni,t.textContent=rn(i),e.content.appendChild(t)}function zh(i){if(!i.shadowRoot)return;const e=i.constructor;if(i instanceof Be)[...i.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),Wo(i.shadowRoot,e.elementStyles);else{const t=i.shadowRoot.getElementById(ni),r=e.prototype._template;t.textContent=r.content.getElementById(ni).textContent}}function Lh(i){Qi.forEach(e=>{const t=e.deref();t instanceof i?zh(t):t||Qi.delete(e)})}function an(i){if(i.prototype instanceof Be)i.elementStyles=i.finalizeStyles(i.styles);else{const e=i.prototype._template;e.content.getElementById(ni).textContent=rn(i.getStylesForThis())}Sr.forEach(e=>{const t=customElements.get(e);t!==i&&t.prototype instanceof i&&an(t)})}function Rh(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=Mh(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(i,e,t):Zo.push({themeFor:i,styles:e,include:t.include,moduleId:t.moduleId}),i&&Sr.forEach(r=>{if(tn(i,r)&&Vh(r)){const a=customElements.get(r);Rh(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".`),an(a),Lh(a)}})}function Ji(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Zo}function Fh(i=""){let e=0;return i.startsWith("lumo-")||i.startsWith("material-")?e=1:i.startsWith("vaadin-")&&(e=2),e}function on(i){const e=[];return i.include&&[].concat(i.include).forEach(t=>{const r=Ji().find(a=>a.moduleId===t);r?e.push(...on(r),...r.styles):console.warn(`Included moduleId ${t} not found in style registry`)},i.styles),e}function $h(i){const e=`${i}-default-theme`,t=Ji().filter(r=>r.moduleId!==e&&tn(r.themeFor,i)).map(r=>jo(ii({},r),{styles:[...on(r),...r.styles],includePriority:Fh(r.moduleId)})).sort((r,a)=>a.includePriority-r.includePriority);return t.length>0?t:Ji().filter(r=>r.moduleId===e)}const M=i=>class extends _i(i){constructor(){super(),Qi.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Sr.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||en(this)||Nh(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,...$h(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/
@@ -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 Cc={"dom-if":!0,"dom-repeat":!0};let Xa=!1,Qa=!1;function kc(){if(!Xa){Xa=!0;const i=document.createElement("textarea");i.placeholder="a",Qa=i.placeholder===i.textContent}return Qa}function Ec(i){kc()&&i.localName==="textarea"&&i.placeholder&&i.placeholder===i.textContent&&(i.textContent=null)}const Sc=(()=>{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 Ic(i){let e=i.getAttribute("is");if(e&&Cc[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];Sc(i,t,r),t.removeAttribute(r)}}return i}function wn(i,e){let t=e.parentInfo&&wn(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 Tc(i,e,t,r){r.id&&(e[r.id]=t)}function Ac(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 Pc(i,e,t,r){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=r)}function Dc(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 Oc=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),Ec(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=Ic(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let c=l;for(;c&&c.nodeType===Node.TEXT_NODE;)n.textContent+=c.textContent,l=c.nextSibling,r.removeChild(c),c=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,c=o.length,u;d<c&&(u=o[d]);d++){let p=l[d]=wn(s,u);Tc(this,s.$,p,u),Pc(this,p,u,a),Ac(this,p,u)}return s=s,s}_addMethodEventListenerToNode(r,a,o,n){n=n||r;let s=Dc(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});/**
980
+ */const Cc={"dom-if":!0,"dom-repeat":!0};let Xa=!1,Qa=!1;function kc(){if(!Xa){Xa=!0;const i=document.createElement("textarea");i.placeholder="a",Qa=i.placeholder===i.textContent}return Qa}function Ec(i){kc()&&i.localName==="textarea"&&i.placeholder&&i.placeholder===i.textContent&&(i.textContent=null)}const Ic=(()=>{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 Sc(i){let e=i.getAttribute("is");if(e&&Cc[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];Ic(i,t,r),t.removeAttribute(r)}}return i}function wn(i,e){let t=e.parentInfo&&wn(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 Tc(i,e,t,r){r.id&&(e[r.id]=t)}function Ac(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 Pc(i,e,t,r){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=r)}function Dc(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 Oc=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),Ec(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=Sc(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let c=l;for(;c&&c.nodeType===Node.TEXT_NODE;)n.textContent+=c.textContent,l=c.nextSibling,r.removeChild(c),c=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,c=o.length,u;d<c&&(u=o[d]);d++){let p=l[d]=wn(s,u);Tc(this,s.$,p,u),Pc(this,p,u,a),Ac(this,p,u)}return s=s,s}_addMethodEventListenerToNode(r,a,o,n){n=n||r;let s=Dc(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 St=0;const It=[],A={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},xn="__computeInfo",Vc=/[A-Z]/;function Vi(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 ft(i,e,t,r,a,o){if(e){let n=!1;const s=St++;for(let l in t){let d=a?Ne(l):l,c=e[d];if(c)for(let u=0,p=c.length,m;u<p&&(m=c[u]);u++)(!m.info||m.info.lastRun!==s)&&(!a||Dr(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 Mc(i,e,t,r,a,o,n,s){let l=!1,d=n?Ne(r):r,c=e[d];if(c)for(let u=0,p=c.length,m;u<p&&(m=c[u]);u++)(!m.info||m.info.lastRun!==t)&&(!n||Dr(r,m.trigger))&&(m.info&&(m.info.lastRun=t),m.fn(i,r,a,o,m.info,n,s),l=!0);return l}function Dr(i,e){if(e){let t=e.name;return t==i||!!(e.structured&&pn(t,i))||!!(e.wildcard&&kt(t,i))}else return!0}function Ja(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 Nc(i,e,t,r,a){let o=i[A.NOTIFY],n,s=St++;for(let d in e)e[d]&&(o&&Mc(i,o,s,d,t,r,a)||a&&zc(i,d,t))&&(n=!0);let l;n&&(l=i.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function zc(i,e,t){let r=Ne(e);if(r!==e){let a=vi(r)+"-changed";return Cn(i,a,t[e],e),!0}return!1}function Cn(i,e,t,r){let a={value:t,queueProperty:!0};r&&(a.path=r),K(i).dispatchEvent(new CustomEvent(e,{detail:a}))}function Lc(i,e,t,r,a,o){let n=(o?Ne(e):e)!=e?e:null,s=n?Z(i,n):i.__data[e];n&&s===void 0&&(s=t[e]),Cn(i,a.eventName,s,n)}function Rc(i,e,t,r,a){let o,n=i.detail,s=n&&n.path;s?(r=Et(t,r,s),o=n&&n.value):o=i.currentTarget[t],o=a?!o:o,(!e[A.READ_ONLY]||!e[A.READ_ONLY][r])&&e._setPendingPropertyOrPath(r,o,!0,!!s)&&(!n||!n.queueProperty)&&e._invalidateProperties()}function Fc(i,e,t,r,a){let o=i.__data[e];si&&(o=si(o,a.attrName,"attribute",i)),i._propertyToAttribute(e,a.attrName,o)}function $c(i,e,t,r){let a=i[A.COMPUTE];if(a)if(ic){St++;const o=Bc(i),n=[];for(let l in e)Za(l,a,n,o,r);let s;for(;s=n.shift();)kn(i,"",e,t,s)&&Za(s.methodInfo,a,n,o,r);Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),i.__dataPending=null}else{let o=e;for(;ft(i,a,o,t,r);)Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),o=i.__dataPending,i.__dataPending=null}}const Hc=(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)},Za=(i,e,t,r,a)=>{const o=a?Ne(i):i,n=e[o];if(n)for(let s=0;s<n.length;s++){const l=n[s];l.info.lastRun!==St&&(!a||Dr(i,l.trigger))&&(l.info.lastRun=St,Hc(l.info,t,r))}};function Bc(i){let e=i.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=i[A.COMPUTE];let{counts:r,ready:a,total:o}=Uc(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 Uc(i){const e=i[xn],t={},r=i[A.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 kn(i,e,t,r,a){let o=ir(i,e,t,r,a);if(o===It)return!1;let n=a.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[n]?i._setPendingProperty(n,o,!0):(i[n]=o,!1)}function qc(i,e,t){let r=i.__dataLinkedPaths;if(r){let a;for(let o in r){let n=r[o];kt(o,e)?(a=Et(o,n,e),i._setPendingPropertyOrPath(a,t,!0,!0)):kt(n,e)&&(a=Et(n,o,e),i._setPendingPropertyOrPath(a,t,!0,!0))}}}function Mi(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),Kc(s)){let{event:d,negate:c}=s.parts[0];s.listenerEvent=d||vi(a)+"-changed",s.listenerNegate=c}let l=e.nodeInfoList.length;for(let d=0;d<s.parts.length;d++){let c=s.parts[d];c.compoundIndex=d,jc(i,e,s,c,l)}}function jc(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=Sn(l),l.wildcard=!0),i._addTemplatePropertyEffect(e,l.rootProperty,{fn:Wc,info:n,trigger:l})}}}function Wc(i,e,t,r,a,o,n){let s=n[a.index],l=a.binding,d=a.part;if(o&&d.source&&e.length>d.source.length&&l.kind=="property"&&!l.isCompound&&s.__isPropertyEffectsClient&&s.__dataHasAccessor&&s.__dataHasAccessor[l.target]){let c=t[e];e=Et(d.source,l.target,e),s._setPendingPropertyOrPath(e,c,!1,!0)&&i._enqueueClient(s)}else{let c=a.evaluator._evaluateBinding(i,d,e,t,r,o);c!==It&&Yc(i,s,l,d,c)}}function Yc(i,e,t,r,a){if(a=Gc(e,a,t,r),si&&(a=si(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[A.READ_ONLY]||!e[A.READ_ONLY][o])&&e._setPendingProperty(o,a)&&i._enqueueClient(e):i._setUnmanagedPropertyToNode(e,o,a)}}function Gc(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 Kc(i){return!!i.target&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function Xc(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];Qc(n,d),Jc(n,i,d)}n.__dataHost=i}}function Qc(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 Jc(i,e,t){if(t.listenerEvent){let r=t.parts[0];i.addEventListener(t.listenerEvent,function(a){Rc(a,e,t.target,r.source,r.negate)})}}function eo(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 ir(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===It?It:n.apply(o,s)}else a.dynamicFn||console.warn("method `"+a.methodName+"` not defined")}const Zc=[],En="(?:[a-zA-Z_$][\\w.:$\\-*]*)",eu="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",tu="(?:'(?:[^'\\\\]|\\\\.)*')",iu='(?:"(?:[^"\\\\]|\\\\.)*")',ru="(?:"+tu+"|"+iu+")",to="(?:("+En+"|"+eu+"|"+ru+")\\s*)",au="(?:"+to+"(?:,\\s*"+to+")*)",ou="(?:\\(\\s*(?:"+au+"?)\\)\\s*)",nu="("+En+"\\s*"+ou+"?)",su="(\\[\\[|{{)\\s*",lu="(?:]]|}})",du="(?:(!)\\s*)?",hu=su+du+nu+lu,io=new RegExp(hu,"g");function ro(i){let e="";for(let t=0;t<i.length;t++){let r=i[t].literal;e+=r||""}return e}function Ni(i){let e=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:Zc};if(e[2].trim()){let r=e[2].replace(/\\,/g,"&comma;").split(",");return cu(r,t)}else return t}return null}function cu(i,e){return e.args=i.map(function(t){let r=Sn(t);return r.literal||(e.static=!1),r},this),e}function Sn(i){let e=i.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},r=e[0];switch(r==="-"&&(r=e[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':t.value=e.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(e),t.literal=!0;break}return t.literal||(t.rootProperty=Ne(e),t.structured=er(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function ao(i,e,t){let r=Z(i,t);return r===void 0&&(r=e[t]),r}function In(i,e,t,r){const a={indexSplices:r};Zi&&!i._overrideLegacyUndefined&&(e.splices=a),i.notifyPath(t+".splices",a),i.notifyPath(t+".length",e.length),Zi&&!i._overrideLegacyUndefined&&(a.indexSplices=[])}function ht(i,e,t,r,a,o){In(i,e,t,[{index:r,addedCount:a,removed:o,object:e,type:"splice"}])}function uu(i){return i[0].toUpperCase()+i.substring(1)}const Or=B(i=>{const e=Oc(xc(i));class t extends e{constructor(){super(),this.__isPropertyEffectsClient=!0}get PROPERTY_EFFECT_TYPES(){return A}_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(ct.length){let a=ct[ct.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[A.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==A.READ_ONLY);let s=Vi(this,o,!0)[a];s||(s=this[o][a]=[]),s.push(n)}_removePropertyEffect(a,o,n){let s=Vi(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,A.READ_ONLY)}_hasNotifyEffect(a){return this._hasPropertyEffect(a,A.NOTIFY)}_hasReflectEffect(a){return this._hasPropertyEffect(a,A.REFLECT)}_hasComputedEffect(a){return this._hasPropertyEffect(a,A.COMPUTE)}_setPendingPropertyOrPath(a,o,n,s){if(s||Ne(Array.isArray(a)?a[0]:a)!==a){if(!s){let l=Z(this,a);if(a=Ka(this,a,o),!a||!super._shouldPropertyChange(a,o,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(a,o,n))return qc(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&&er(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[A.NOTIFY]&&this[A.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[A.READ_ONLY]||!this[A.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;$c(this,o,n,s),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,n,s),this._flushClients(),ft(this,this[A.REFLECT],o,n,s),ft(this,this[A.OBSERVE],o,n,s),l&&Nc(this,l,o,n,s),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(a,o,n){this[A.PROPAGATE]&&ft(this,this[A.PROPAGATE],a,o,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,a,o,n)}_runEffectsForTemplate(a,o,n,s){const l=(d,c)=>{ft(this,a.propertyEffects,d,n,c,a.nodeList);for(let u=a.firstChild;u;u=u.nextSibling)this._runEffectsForTemplate(u,d,n,c)};a.runEffects?a.runEffects(l,o,s):l(o,s)}linkPaths(a,o){a=mt(a),o=mt(o),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[a]=o}unlinkPaths(a){a=mt(a),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[a]}notifySplices(a,o){let n={path:""},s=Z(this,a,n);In(this,s,n.path,o)}get(a,o){return Z(o||this,a)}set(a,o,n){n?Ka(n,a,o):(!this[A.READ_ONLY]||!this[A.READ_ONLY][a])&&this._setPendingPropertyOrPath(a,o,!0)&&this._invalidateProperties()}push(a,...o){let n={path:""},s=Z(this,a,n),l=s.length,d=s.push(...o);return o.length&&ht(this,s,n.path,l,o.length,[]),d}pop(a){let o={path:""},n=Z(this,a,o),s=!!n.length,l=n.pop();return s&&ht(this,n,o.path,n.length,0,[l]),l}splice(a,o,n,...s){let l={path:""},d=Z(this,a,l);o<0?o=d.length-Math.floor(-o):o&&(o=Math.floor(o));let c;return arguments.length===2?c=d.splice(o):c=d.splice(o,n,...s),(s.length||c.length)&&ht(this,d,l.path,o,s.length,c),c}shift(a){let o={path:""},n=Z(this,a,o),s=!!n.length,l=n.shift();return s&&ht(this,n,o.path,0,0,[l]),l}unshift(a,...o){let n={path:""},s=Z(this,a,n),l=s.unshift(...o);return o.length&&ht(this,s,n.path,0,o.length,[]),l}notifyPath(a,o){let n;if(arguments.length==1){let s={path:""};o=Z(this,a,s),n=s.path}else Array.isArray(a)?n=mt(a):n=a;this._setPendingPropertyOrPath(n,o,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(a,o){this._addPropertyEffect(a,A.READ_ONLY),o&&(this["_set"+uu(a)]=function(n){this._setProperty(a,n)})}_createPropertyObserver(a,o,n){let s={property:a,method:o,dynamicFn:!!n};this._addPropertyEffect(a,A.OBSERVE,{fn:Ja,info:s,trigger:{name:a}}),n&&this._addPropertyEffect(o,A.OBSERVE,{fn:Ja,info:s,trigger:{name:o}})}_createMethodObserver(a,o){let n=Ni(a);if(!n)throw new Error("Malformed observer expression '"+a+"'");eo(this,n,A.OBSERVE,ir,null,o)}_createNotifyingProperty(a){this._addPropertyEffect(a,A.NOTIFY,{fn:Lc,info:{eventName:vi(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,A.REFLECT,{fn:Fc,info:{attrName:o}})}_createComputedProperty(a,o,n){let s=Ni(o);if(!s)throw new Error("Malformed computed expression '"+o+"'");const l=eo(this,s,A.COMPUTE,kn,a,n);Vi(this,xn)[a]=l}_marshalArgs(a,o,n){const s=this.__data,l=[];for(let d=0,c=a.length;d<c;d++){let{name:u,structured:p,wildcard:m,value:y,literal:N}=a[d];if(!N)if(m){const D=kt(u,o),O=ao(s,n,D?o:u);y={path:D?o:u,value:O,base:D?Z(s,u):O}}else y=p?ao(s,n,u):s[u];if(Zi&&!this._overrideLegacyUndefined&&y===void 0&&a.length>1)return It;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),ct.push(this);let n=super._stampTemplate(a,o);if(ct.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,Xc(this,o),this.__dataClientsReady&&(this._runEffectsForTemplate(o,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(a){const o=a.templateInfo,{previousSibling:n,nextSibling:s,parent:l}=o;n?n.nextSibling=s:l&&(l.firstChild=s),s?s.previousSibling=n:l&&(l.lastChild=n),o.nextSibling=o.previousSibling=null;let d=o.childNodes;for(let c=0;c<d.length;c++){let u=d[c];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=ro(l)||" ",Mi(this,o,n,"text","textContent",l),s=!0)}return s}static _parseTemplateNodeAttribute(a,o,n,s,l){let d=this._parseBindings(l,o);if(d){let c=s,u="property";Vc.test(s)?u="attribute":s[s.length-1]=="$"&&(s=s.slice(0,-1),u="attribute");let p=ro(d);return p&&u=="attribute"&&(s=="class"&&a.hasAttribute("class")&&(p+=" "+a.getAttribute(s)),a.setAttribute(s,p)),u=="attribute"&&c=="disable-upgrade$"&&a.setAttribute(s,""),a.localName==="input"&&c==="value"&&a.setAttribute(c,""),a.removeAttribute(c),u==="property"&&(s=fn(s)),Mi(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,c=l.localName==="dom-if",u=l.localName==="dom-repeat";Ua&&(c||u)&&(l.removeChild(a),n=n.parentInfo,n.templateInfo=d,n.noted=!0,s=!1);let p=d.hostProps;if(rc&&c)p&&(o.hostProps=Object.assign(o.hostProps||{},p),Ua||(n.parentInfo.noted=!0));else{let m="{";for(let y in p){let N=[{mode:m,source:y,dependencies:[y],hostProp:!0}];Mi(this,o,n,"property","_host_"+y,N)}}return s}static _parseBindings(a,o){let n=[],s=0,l;for(;(l=io.exec(a))!==null;){l.index>s&&n.push({literal:a.slice(s,l.index)});let d=l[1][0],c=!!l[2],u=l[3].trim(),p=!1,m="",y=-1;d=="{"&&(y=u.indexOf("::"))>0&&(m=u.substring(y+2),u=u.substring(0,y),p=!0);let N=Ni(u),D=[];if(N){let{args:O,methodName:T}=N;for(let j=0;j<O.length;j++){let le=O[j];le.literal||D.push(le)}let q=o.dynamicFns;(q&&q[T]||N.static)&&(D.push(T),N.dynamicFn=!0)}else D.push(u);n.push({source:u,mode:d,negate:c,customEvent:p,signature:N,dependencies:D,event:m}),s=io.lastIndex}if(s&&s<a.length){let d=a.substring(s);d&&n.push({literal:d})}return n.length?n:null}static _evaluateBinding(a,o,n,s,l,d){let c;return o.signature?c=ir(a,n,s,l,o.signature):n!=o.source?c=Z(a,o.source):d&&er(n)?c=Z(a,n):c=a.__data[n],o.negate&&(c=!c),c}}return t}),ct=[];/**
990
+ */let It=0;const St=[],A={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},xn="__computeInfo",Vc=/[A-Z]/;function Vi(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 ft(i,e,t,r,a,o){if(e){let n=!1;const s=It++;for(let l in t){let d=a?Ne(l):l,c=e[d];if(c)for(let u=0,p=c.length,m;u<p&&(m=c[u]);u++)(!m.info||m.info.lastRun!==s)&&(!a||Dr(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 Mc(i,e,t,r,a,o,n,s){let l=!1,d=n?Ne(r):r,c=e[d];if(c)for(let u=0,p=c.length,m;u<p&&(m=c[u]);u++)(!m.info||m.info.lastRun!==t)&&(!n||Dr(r,m.trigger))&&(m.info&&(m.info.lastRun=t),m.fn(i,r,a,o,m.info,n,s),l=!0);return l}function Dr(i,e){if(e){let t=e.name;return t==i||!!(e.structured&&pn(t,i))||!!(e.wildcard&&kt(t,i))}else return!0}function Ja(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 Nc(i,e,t,r,a){let o=i[A.NOTIFY],n,s=It++;for(let d in e)e[d]&&(o&&Mc(i,o,s,d,t,r,a)||a&&zc(i,d,t))&&(n=!0);let l;n&&(l=i.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function zc(i,e,t){let r=Ne(e);if(r!==e){let a=vi(r)+"-changed";return Cn(i,a,t[e],e),!0}return!1}function Cn(i,e,t,r){let a={value:t,queueProperty:!0};r&&(a.path=r),K(i).dispatchEvent(new CustomEvent(e,{detail:a}))}function Lc(i,e,t,r,a,o){let n=(o?Ne(e):e)!=e?e:null,s=n?Z(i,n):i.__data[e];n&&s===void 0&&(s=t[e]),Cn(i,a.eventName,s,n)}function Rc(i,e,t,r,a){let o,n=i.detail,s=n&&n.path;s?(r=Et(t,r,s),o=n&&n.value):o=i.currentTarget[t],o=a?!o:o,(!e[A.READ_ONLY]||!e[A.READ_ONLY][r])&&e._setPendingPropertyOrPath(r,o,!0,!!s)&&(!n||!n.queueProperty)&&e._invalidateProperties()}function Fc(i,e,t,r,a){let o=i.__data[e];si&&(o=si(o,a.attrName,"attribute",i)),i._propertyToAttribute(e,a.attrName,o)}function $c(i,e,t,r){let a=i[A.COMPUTE];if(a)if(ic){It++;const o=Bc(i),n=[];for(let l in e)Za(l,a,n,o,r);let s;for(;s=n.shift();)kn(i,"",e,t,s)&&Za(s.methodInfo,a,n,o,r);Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),i.__dataPending=null}else{let o=e;for(;ft(i,a,o,t,r);)Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),o=i.__dataPending,i.__dataPending=null}}const Hc=(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)},Za=(i,e,t,r,a)=>{const o=a?Ne(i):i,n=e[o];if(n)for(let s=0;s<n.length;s++){const l=n[s];l.info.lastRun!==It&&(!a||Dr(i,l.trigger))&&(l.info.lastRun=It,Hc(l.info,t,r))}};function Bc(i){let e=i.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=i[A.COMPUTE];let{counts:r,ready:a,total:o}=Uc(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 Uc(i){const e=i[xn],t={},r=i[A.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 kn(i,e,t,r,a){let o=ir(i,e,t,r,a);if(o===St)return!1;let n=a.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[n]?i._setPendingProperty(n,o,!0):(i[n]=o,!1)}function qc(i,e,t){let r=i.__dataLinkedPaths;if(r){let a;for(let o in r){let n=r[o];kt(o,e)?(a=Et(o,n,e),i._setPendingPropertyOrPath(a,t,!0,!0)):kt(n,e)&&(a=Et(n,o,e),i._setPendingPropertyOrPath(a,t,!0,!0))}}}function Mi(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),Kc(s)){let{event:d,negate:c}=s.parts[0];s.listenerEvent=d||vi(a)+"-changed",s.listenerNegate=c}let l=e.nodeInfoList.length;for(let d=0;d<s.parts.length;d++){let c=s.parts[d];c.compoundIndex=d,jc(i,e,s,c,l)}}function jc(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=In(l),l.wildcard=!0),i._addTemplatePropertyEffect(e,l.rootProperty,{fn:Wc,info:n,trigger:l})}}}function Wc(i,e,t,r,a,o,n){let s=n[a.index],l=a.binding,d=a.part;if(o&&d.source&&e.length>d.source.length&&l.kind=="property"&&!l.isCompound&&s.__isPropertyEffectsClient&&s.__dataHasAccessor&&s.__dataHasAccessor[l.target]){let c=t[e];e=Et(d.source,l.target,e),s._setPendingPropertyOrPath(e,c,!1,!0)&&i._enqueueClient(s)}else{let c=a.evaluator._evaluateBinding(i,d,e,t,r,o);c!==St&&Yc(i,s,l,d,c)}}function Yc(i,e,t,r,a){if(a=Gc(e,a,t,r),si&&(a=si(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[A.READ_ONLY]||!e[A.READ_ONLY][o])&&e._setPendingProperty(o,a)&&i._enqueueClient(e):i._setUnmanagedPropertyToNode(e,o,a)}}function Gc(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 Kc(i){return!!i.target&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function Xc(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];Qc(n,d),Jc(n,i,d)}n.__dataHost=i}}function Qc(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 Jc(i,e,t){if(t.listenerEvent){let r=t.parts[0];i.addEventListener(t.listenerEvent,function(a){Rc(a,e,t.target,r.source,r.negate)})}}function eo(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 ir(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===St?St:n.apply(o,s)}else a.dynamicFn||console.warn("method `"+a.methodName+"` not defined")}const Zc=[],En="(?:[a-zA-Z_$][\\w.:$\\-*]*)",eu="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",tu="(?:'(?:[^'\\\\]|\\\\.)*')",iu='(?:"(?:[^"\\\\]|\\\\.)*")',ru="(?:"+tu+"|"+iu+")",to="(?:("+En+"|"+eu+"|"+ru+")\\s*)",au="(?:"+to+"(?:,\\s*"+to+")*)",ou="(?:\\(\\s*(?:"+au+"?)\\)\\s*)",nu="("+En+"\\s*"+ou+"?)",su="(\\[\\[|{{)\\s*",lu="(?:]]|}})",du="(?:(!)\\s*)?",hu=su+du+nu+lu,io=new RegExp(hu,"g");function ro(i){let e="";for(let t=0;t<i.length;t++){let r=i[t].literal;e+=r||""}return e}function Ni(i){let e=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:Zc};if(e[2].trim()){let r=e[2].replace(/\\,/g,"&comma;").split(",");return cu(r,t)}else return t}return null}function cu(i,e){return e.args=i.map(function(t){let r=In(t);return r.literal||(e.static=!1),r},this),e}function In(i){let e=i.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},r=e[0];switch(r==="-"&&(r=e[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':t.value=e.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(e),t.literal=!0;break}return t.literal||(t.rootProperty=Ne(e),t.structured=er(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function ao(i,e,t){let r=Z(i,t);return r===void 0&&(r=e[t]),r}function Sn(i,e,t,r){const a={indexSplices:r};Zi&&!i._overrideLegacyUndefined&&(e.splices=a),i.notifyPath(t+".splices",a),i.notifyPath(t+".length",e.length),Zi&&!i._overrideLegacyUndefined&&(a.indexSplices=[])}function ht(i,e,t,r,a,o){Sn(i,e,t,[{index:r,addedCount:a,removed:o,object:e,type:"splice"}])}function uu(i){return i[0].toUpperCase()+i.substring(1)}const Or=B(i=>{const e=Oc(xc(i));class t extends e{constructor(){super(),this.__isPropertyEffectsClient=!0}get PROPERTY_EFFECT_TYPES(){return A}_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(ct.length){let a=ct[ct.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[A.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==A.READ_ONLY);let s=Vi(this,o,!0)[a];s||(s=this[o][a]=[]),s.push(n)}_removePropertyEffect(a,o,n){let s=Vi(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,A.READ_ONLY)}_hasNotifyEffect(a){return this._hasPropertyEffect(a,A.NOTIFY)}_hasReflectEffect(a){return this._hasPropertyEffect(a,A.REFLECT)}_hasComputedEffect(a){return this._hasPropertyEffect(a,A.COMPUTE)}_setPendingPropertyOrPath(a,o,n,s){if(s||Ne(Array.isArray(a)?a[0]:a)!==a){if(!s){let l=Z(this,a);if(a=Ka(this,a,o),!a||!super._shouldPropertyChange(a,o,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(a,o,n))return qc(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&&er(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[A.NOTIFY]&&this[A.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[A.READ_ONLY]||!this[A.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;$c(this,o,n,s),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,n,s),this._flushClients(),ft(this,this[A.REFLECT],o,n,s),ft(this,this[A.OBSERVE],o,n,s),l&&Nc(this,l,o,n,s),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(a,o,n){this[A.PROPAGATE]&&ft(this,this[A.PROPAGATE],a,o,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,a,o,n)}_runEffectsForTemplate(a,o,n,s){const l=(d,c)=>{ft(this,a.propertyEffects,d,n,c,a.nodeList);for(let u=a.firstChild;u;u=u.nextSibling)this._runEffectsForTemplate(u,d,n,c)};a.runEffects?a.runEffects(l,o,s):l(o,s)}linkPaths(a,o){a=mt(a),o=mt(o),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[a]=o}unlinkPaths(a){a=mt(a),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[a]}notifySplices(a,o){let n={path:""},s=Z(this,a,n);Sn(this,s,n.path,o)}get(a,o){return Z(o||this,a)}set(a,o,n){n?Ka(n,a,o):(!this[A.READ_ONLY]||!this[A.READ_ONLY][a])&&this._setPendingPropertyOrPath(a,o,!0)&&this._invalidateProperties()}push(a,...o){let n={path:""},s=Z(this,a,n),l=s.length,d=s.push(...o);return o.length&&ht(this,s,n.path,l,o.length,[]),d}pop(a){let o={path:""},n=Z(this,a,o),s=!!n.length,l=n.pop();return s&&ht(this,n,o.path,n.length,0,[l]),l}splice(a,o,n,...s){let l={path:""},d=Z(this,a,l);o<0?o=d.length-Math.floor(-o):o&&(o=Math.floor(o));let c;return arguments.length===2?c=d.splice(o):c=d.splice(o,n,...s),(s.length||c.length)&&ht(this,d,l.path,o,s.length,c),c}shift(a){let o={path:""},n=Z(this,a,o),s=!!n.length,l=n.shift();return s&&ht(this,n,o.path,0,0,[l]),l}unshift(a,...o){let n={path:""},s=Z(this,a,n),l=s.unshift(...o);return o.length&&ht(this,s,n.path,0,o.length,[]),l}notifyPath(a,o){let n;if(arguments.length==1){let s={path:""};o=Z(this,a,s),n=s.path}else Array.isArray(a)?n=mt(a):n=a;this._setPendingPropertyOrPath(n,o,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(a,o){this._addPropertyEffect(a,A.READ_ONLY),o&&(this["_set"+uu(a)]=function(n){this._setProperty(a,n)})}_createPropertyObserver(a,o,n){let s={property:a,method:o,dynamicFn:!!n};this._addPropertyEffect(a,A.OBSERVE,{fn:Ja,info:s,trigger:{name:a}}),n&&this._addPropertyEffect(o,A.OBSERVE,{fn:Ja,info:s,trigger:{name:o}})}_createMethodObserver(a,o){let n=Ni(a);if(!n)throw new Error("Malformed observer expression '"+a+"'");eo(this,n,A.OBSERVE,ir,null,o)}_createNotifyingProperty(a){this._addPropertyEffect(a,A.NOTIFY,{fn:Lc,info:{eventName:vi(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,A.REFLECT,{fn:Fc,info:{attrName:o}})}_createComputedProperty(a,o,n){let s=Ni(o);if(!s)throw new Error("Malformed computed expression '"+o+"'");const l=eo(this,s,A.COMPUTE,kn,a,n);Vi(this,xn)[a]=l}_marshalArgs(a,o,n){const s=this.__data,l=[];for(let d=0,c=a.length;d<c;d++){let{name:u,structured:p,wildcard:m,value:y,literal:N}=a[d];if(!N)if(m){const D=kt(u,o),O=ao(s,n,D?o:u);y={path:D?o:u,value:O,base:D?Z(s,u):O}}else y=p?ao(s,n,u):s[u];if(Zi&&!this._overrideLegacyUndefined&&y===void 0&&a.length>1)return St;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),ct.push(this);let n=super._stampTemplate(a,o);if(ct.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,Xc(this,o),this.__dataClientsReady&&(this._runEffectsForTemplate(o,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(a){const o=a.templateInfo,{previousSibling:n,nextSibling:s,parent:l}=o;n?n.nextSibling=s:l&&(l.firstChild=s),s?s.previousSibling=n:l&&(l.lastChild=n),o.nextSibling=o.previousSibling=null;let d=o.childNodes;for(let c=0;c<d.length;c++){let u=d[c];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=ro(l)||" ",Mi(this,o,n,"text","textContent",l),s=!0)}return s}static _parseTemplateNodeAttribute(a,o,n,s,l){let d=this._parseBindings(l,o);if(d){let c=s,u="property";Vc.test(s)?u="attribute":s[s.length-1]=="$"&&(s=s.slice(0,-1),u="attribute");let p=ro(d);return p&&u=="attribute"&&(s=="class"&&a.hasAttribute("class")&&(p+=" "+a.getAttribute(s)),a.setAttribute(s,p)),u=="attribute"&&c=="disable-upgrade$"&&a.setAttribute(s,""),a.localName==="input"&&c==="value"&&a.setAttribute(c,""),a.removeAttribute(c),u==="property"&&(s=fn(s)),Mi(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,c=l.localName==="dom-if",u=l.localName==="dom-repeat";Ua&&(c||u)&&(l.removeChild(a),n=n.parentInfo,n.templateInfo=d,n.noted=!0,s=!1);let p=d.hostProps;if(rc&&c)p&&(o.hostProps=Object.assign(o.hostProps||{},p),Ua||(n.parentInfo.noted=!0));else{let m="{";for(let y in p){let N=[{mode:m,source:y,dependencies:[y],hostProp:!0}];Mi(this,o,n,"property","_host_"+y,N)}}return s}static _parseBindings(a,o){let n=[],s=0,l;for(;(l=io.exec(a))!==null;){l.index>s&&n.push({literal:a.slice(s,l.index)});let d=l[1][0],c=!!l[2],u=l[3].trim(),p=!1,m="",y=-1;d=="{"&&(y=u.indexOf("::"))>0&&(m=u.substring(y+2),u=u.substring(0,y),p=!0);let N=Ni(u),D=[];if(N){let{args:O,methodName:T}=N;for(let j=0;j<O.length;j++){let le=O[j];le.literal||D.push(le)}let q=o.dynamicFns;(q&&q[T]||N.static)&&(D.push(T),N.dynamicFn=!0)}else D.push(u);n.push({source:u,mode:d,negate:c,customEvent:p,signature:N,dependencies:D,event:m}),s=io.lastIndex}if(s&&s<a.length){let d=a.substring(s);d&&n.push({literal:d})}return n.length?n:null}static _evaluateBinding(a,o,n,s,l,d){let c;return o.signature?c=ir(a,n,s,l,o.signature):n!=o.source?c=Z(a,o.source):d&&er(n)?c=Z(a,n):c=a.__data[n],o.negate&&(c=!c),c}}return t}),ct=[];/**
991
991
  @license
992
992
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
993
993
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1515,7 +1515,7 @@ try {
1515
1515
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1516
1516
  * Code distributed by Google as part of the polymer project is also
1517
1517
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1518
- */let lo=0,On=0;const qe=[];let rr=!1;function Su(){rr=!1;const i=qe.length;for(let e=0;e<i;e++){const t=qe[e];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}qe.splice(0,i),On+=i}const Ce={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)}},Tt={run(i){return window.requestAnimationFrame(i)},cancel(i){window.cancelAnimationFrame(i)}},Vn={run(i){return window.requestIdleCallback?window.requestIdleCallback(i):window.setTimeout(i,16)},cancel(i){window.cancelIdleCallback?window.cancelIdleCallback(i):window.clearTimeout(i)}},hi={run(i){rr||(rr=!0,queueMicrotask(()=>Su())),qe.push(i);const e=lo;return lo+=1,e},cancel(i){const e=i-On;if(e>=0){if(!qe[e])throw new Error(`invalid async handle: ${i}`);qe[e]=null}}};/**
1518
+ */let lo=0,On=0;const qe=[];let rr=!1;function Iu(){rr=!1;const i=qe.length;for(let e=0;e<i;e++){const t=qe[e];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}qe.splice(0,i),On+=i}const Ce={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)}},Tt={run(i){return window.requestAnimationFrame(i)},cancel(i){window.cancelAnimationFrame(i)}},Vn={run(i){return window.requestIdleCallback?window.requestIdleCallback(i):window.setTimeout(i,16)},cancel(i){window.cancelIdleCallback?window.cancelIdleCallback(i):window.clearTimeout(i)}},hi={run(i){rr||(rr=!0,queueMicrotask(()=>Iu())),qe.push(i);const e=lo;return lo+=1,e},cancel(i){const e=i-On;if(e>=0){if(!qe[e])throw new Error(`invalid async handle: ${i}`);qe[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 At=new Set;let re=class ar{static debounce(e,t,r){return e instanceof ar?e._cancelAsync():e=new ar,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,At.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),At.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 Mn(i){At.add(i)}function Iu(){const i=!!At.size;return At.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),i}const _t=()=>{let i;do i=Iu();while(i)};/**
1526
+ */const At=new Set;let re=class ar{static debounce(e,t,r){return e instanceof ar?e._cancelAsync():e=new ar,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,At.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),At.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 Mn(i){At.add(i)}function Su(){const i=!!At.size;return At.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),i}const _t=()=>{let i;do i=Su();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/
@@ -3381,7 +3381,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3381
3381
  * @license
3382
3382
  * Copyright (c) 2017 Anton Korzunov
3383
3383
  * SPDX-License-Identifier: MIT
3384
- */let $e=new WeakMap,jt=new WeakMap,Wt={},$i=0;const fo=i=>i&&i.nodeType===Node.ELEMENT_NODE,Hi=(...i)=>{console.error(`Error: ${i.join(" ")}. Skip setting aria-hidden.`)},Sp=(i,e)=>fo(i)?e.map(t=>{if(!fo(t))return Hi(t,"is not a valid element"),null;let r=t;for(;r&&r!==i;){if(i.contains(r))return t;r=r.getRootNode().host}return Hi(t,"is not contained inside",i),null}).filter(t=>!!t):(Hi(i,"is not a valid element"),[]),Ip=(i,e,t,r)=>{const a=Sp(e,Array.isArray(i)?i:[i]);Wt[t]||(Wt[t]=new WeakMap);const o=Wt[t],n=[],s=new Set,l=new Set(a),d=u=>{if(!u||s.has(u))return;s.add(u);const p=u.assignedSlot;p&&d(p),d(u.parentNode||u.host)};a.forEach(d);const c=u=>{if(!u||l.has(u))return;const p=u.shadowRoot;(p?[...u.children,...p.children]:[...u.children]).forEach(m=>{if(!["template","script","style"].includes(m.localName))if(s.has(m))c(m);else{const y=m.getAttribute(r),N=y!==null&&y!=="false",D=($e.get(m)||0)+1,O=(o.get(m)||0)+1;$e.set(m,D),o.set(m,O),n.push(m),D===1&&N&&jt.set(m,!0),O===1&&m.setAttribute(t,"true"),N||m.setAttribute(r,"true")}})};return c(e),s.clear(),$i+=1,()=>{n.forEach(u=>{const p=$e.get(u)-1,m=o.get(u)-1;$e.set(u,p),o.set(u,m),p||(jt.has(u)?jt.delete(u):u.removeAttribute(r)),m||u.removeAttribute(t)}),$i-=1,$i||($e=new WeakMap,$e=new WeakMap,jt=new WeakMap,Wt={})}},Zn=(i,e=document.body,t="data-aria-hidden")=>{const r=Array.from(Array.isArray(i)?i:[i]);return e&&r.push(...Array.from(e.querySelectorAll("[aria-live]"))),Ip(r,e,t,"aria-hidden")};/**
3384
+ */let $e=new WeakMap,jt=new WeakMap,Wt={},$i=0;const fo=i=>i&&i.nodeType===Node.ELEMENT_NODE,Hi=(...i)=>{console.error(`Error: ${i.join(" ")}. Skip setting aria-hidden.`)},Ip=(i,e)=>fo(i)?e.map(t=>{if(!fo(t))return Hi(t,"is not a valid element"),null;let r=t;for(;r&&r!==i;){if(i.contains(r))return t;r=r.getRootNode().host}return Hi(t,"is not contained inside",i),null}).filter(t=>!!t):(Hi(i,"is not a valid element"),[]),Sp=(i,e,t,r)=>{const a=Ip(e,Array.isArray(i)?i:[i]);Wt[t]||(Wt[t]=new WeakMap);const o=Wt[t],n=[],s=new Set,l=new Set(a),d=u=>{if(!u||s.has(u))return;s.add(u);const p=u.assignedSlot;p&&d(p),d(u.parentNode||u.host)};a.forEach(d);const c=u=>{if(!u||l.has(u))return;const p=u.shadowRoot;(p?[...u.children,...p.children]:[...u.children]).forEach(m=>{if(!["template","script","style"].includes(m.localName))if(s.has(m))c(m);else{const y=m.getAttribute(r),N=y!==null&&y!=="false",D=($e.get(m)||0)+1,O=(o.get(m)||0)+1;$e.set(m,D),o.set(m,O),n.push(m),D===1&&N&&jt.set(m,!0),O===1&&m.setAttribute(t,"true"),N||m.setAttribute(r,"true")}})};return c(e),s.clear(),$i+=1,()=>{n.forEach(u=>{const p=$e.get(u)-1,m=o.get(u)-1;$e.set(u,p),o.set(u,m),p||(jt.has(u)?jt.delete(u):u.removeAttribute(r)),m||u.removeAttribute(t)}),$i-=1,$i||($e=new WeakMap,$e=new WeakMap,jt=new WeakMap,Wt={})}},Zn=(i,e=document.body,t="data-aria-hidden")=>{const r=Array.from(Array.isArray(i)?i:[i]);return e&&r.push(...Array.from(e.querySelectorAll("[aria-live]"))),Sp(r,e,t,"aria-hidden")};/**
3385
3385
  * @license
3386
3386
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3387
3387
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4131,7 +4131,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4131
4131
  * @license
4132
4132
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4133
4133
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4134
- */const Sm=f`
4134
+ */const Im=f`
4135
4135
  :host {
4136
4136
  position: absolute;
4137
4137
  right: 0;
@@ -4144,11 +4144,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4144
4144
  background: transparent;
4145
4145
  outline: none;
4146
4146
  }
4147
- `;g("vaadin-password-field-button",[Kn,Sm],{moduleId:"lumo-password-field-button"});/**
4147
+ `;g("vaadin-password-field-button",[Kn,Im],{moduleId:"lumo-password-field-button"});/**
4148
4148
  * @license
4149
4149
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4150
4150
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4151
- */const Im=f`
4151
+ */const Sm=f`
4152
4152
  [part='reveal-button']::before {
4153
4153
  content: var(--lumo-icons-eye);
4154
4154
  }
@@ -4166,7 +4166,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4166
4166
  [part='reveal-button'][hidden] {
4167
4167
  display: none !important;
4168
4168
  }
4169
- `;g("vaadin-password-field",[Re,Im],{moduleId:"lumo-password-field"});/**
4169
+ `;g("vaadin-password-field",[Re,Sm],{moduleId:"lumo-password-field"});/**
4170
4170
  * @license
4171
4171
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4172
4172
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4186,7 +4186,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4186
4186
  <div part="reveal-button" slot="suffix">
4187
4187
  <slot name="reveal"></slot>
4188
4188
  </div>
4189
- `;let Yt;class Dm extends Am(ms){static get is(){return"vaadin-password-field"}static get template(){if(!Yt){Yt=super.template.cloneNode(!0);const e=Pm.content.querySelector('[part="reveal-button"]');Yt.content.querySelector('[part="input-field"]').appendChild(e)}return Yt}}w(Dm);const Si=f`
4189
+ `;let Yt;class Dm extends Am(ms){static get is(){return"vaadin-password-field"}static get template(){if(!Yt){Yt=super.template.cloneNode(!0);const e=Pm.content.querySelector('[part="reveal-button"]');Yt.content.querySelector('[part="input-field"]').appendChild(e)}return Yt}}w(Dm);const Ii=f`
4190
4190
  :host {
4191
4191
  display: flex;
4192
4192
  align-items: center;
@@ -4270,7 +4270,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4270
4270
  width: var(--lumo-icon-size-m);
4271
4271
  height: var(--lumo-icon-size-m);
4272
4272
  }
4273
- `;g("vaadin-item",Si,{moduleId:"lumo-item"});const fs=f`
4273
+ `;g("vaadin-item",Ii,{moduleId:"lumo-item"});const fs=f`
4274
4274
  :host {
4275
4275
  transition: background-color 100ms;
4276
4276
  overflow: hidden;
@@ -4282,7 +4282,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4282
4282
  :host([focused]:not([disabled])) {
4283
4283
  box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
4284
4284
  }
4285
- `;g("vaadin-combo-box-item",[Si,fs],{moduleId:"lumo-combo-box-item"});/**
4285
+ `;g("vaadin-combo-box-item",[Ii,fs],{moduleId:"lumo-combo-box-item"});/**
4286
4286
  * @license
4287
4287
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
4288
4288
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4491,15 +4491,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4491
4491
  * @license
4492
4492
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4493
4493
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4494
- */function Ii(i){if(window.Vaadin&&window.Vaadin.templateRendererCallback){window.Vaadin.templateRendererCallback(i);return}i.querySelector("template")&&console.warn(`WARNING: <template> inside <${i.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}/**
4494
+ */function Si(i){if(window.Vaadin&&window.Vaadin.templateRendererCallback){window.Vaadin.templateRendererCallback(i);return}i.querySelector("template")&&console.warn(`WARNING: <template> inside <${i.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}/**
4495
4495
  * @license
4496
4496
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4497
4497
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4498
- */function xo(i){return i!=null}function Co(i,e){return i.findIndex(t=>t instanceof Ee?!1:e(t))}const Ss=i=>class extends Rt(pe(jr(Le(ze(Vt(et(i))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(e){super._inputElementChanged(e);const t=this._nativeInput;t&&(t.autocomplete="off",t.autocapitalize="off",t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-expanded",!!this.opened),t.setAttribute("spellcheck","false"),t.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const e=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront()})};this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),Ii(this),this.addController(new ps(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate()}))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(e,t,r){super._propertiesChanged(e,t,r),t.filter!==void 0&&this._filterChanged(t.filter)}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("opened-changed",t=>{this._overlayOpened=t.detail.value}),this._overlayElement=e}_initScroller(e){const t=document.createElement(`${this._tagNamePrefix}-scroller`);t.owner=e||this,t.getItemLabel=this._getItemLabel.bind(this),t.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const r=this._overlayElement;r.renderer=a=>{a.innerHTML||a.appendChild(t)},r.requestContentUpdate(),this._scroller=t}_updateScroller(e,t,r,a,o,n,s,l,d,c){if(e&&(r&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:r?t:[],opened:r,loading:a,selectedItem:o,itemIdPath:n,focusedIndex:s,renderer:l,theme:d,itemClassNameGenerator:c}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate()}catch(u){}}_openedOrItemsChanged(e,t,r,a){this._overlayOpened=e&&(a||r||!!(t&&t.length))}_overlayOpenedChanged(e,t){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):t&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,t){t!==void 0&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&Hr(this.inputElement)}_updateActiveDescendant(e){const t=this._nativeInput;if(!t)return;const r=this._getItemElements().find(a=>a.index===e);r?t.setAttribute("aria-activedescendant",r.id):t.removeAttribute("aria-activedescendant")}_openedChanged(e,t){if(t===void 0)return;e?!this._isInputFocused()&&!mr&&this.inputElement&&this.inputElement.focus():this._onClosed();const r=this._nativeInput;r&&(r.setAttribute("aria-expanded",!!e),e?r.setAttribute("aria-controls",this._scroller.id):r.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open()}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e)}_onKeyDown(e){super._onKeyDown(e),e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){let t=e&&this.itemLabelPath?pi(this.itemLabelPath,e):void 0;return t==null&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?pi(this.itemValuePath,e):void 0;return t===void 0&&(t=e?e.toString():""),t}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const e=this._dropdownItems;e&&(this._focusedIndex=e.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange()}}_setSelectionRange(e,t){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,t)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const e=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("click",()=>{mr&&!this._isInputFocused()&&document.activeElement.blur()}))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}_clearFilter(){this.filter=""}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const e=[this.selectedItem,...this._dropdownItems||[]],t=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!t){const r=this._inputElementValue;this._lastCustomValue=r;const a=new CustomEvent("custom-value-set",{detail:r,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(a),a.defaultPrevented||(this.value=r)}else!this.allowCustomValue&&!this.opened&&t?this.value=this._getItemValue(t):this._revertInputValueToValue()}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(e){const t=this._inputElementValue,r={};this.filter===t?this._filterChanged(this.filter):r.filter=t,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(r.opened=!0),this.setProperties(r)}_onChange(e){e.stopPropagation()}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const t=this._getItemValue(e);if(this.value!==t&&(this.value=t,this.value!==t))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,t){e===""&&t===void 0||(xo(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.items=t}),e?this.filteredItems=e.slice(0):t&&(this.filteredItems=null)}_filteredItemsChanged(e){this._setDropdownItems(e)}_filterItems(e,t){return e&&e.filter(r=>(t=t?t.toString().toLowerCase():"",this._getItemLabel(r).toString().toLowerCase().indexOf(t)>-1))}_selectItemForValue(e){const t=this.__getItemIndexByValue(this.filteredItems,e),r=this.selectedItem;t>=0?this.selectedItem=this.filteredItems[t]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&r===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const t=this._dropdownItems;this._dropdownItems=e;const r=t?t[this._focusedIndex]:null,a=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&a>=0&&(this.selectedItem=e[a]);const o=this.__getItemIndexByValue(e,this._getItemValue(r));o>-1?this._focusedIndex=o:this._focusedIndex=this.__getItemIndexByLabel(e,this.filter)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){this._scroller&&this._scroller.scrollIntoView(e)}__getItemIndexByValue(e,t){return!e||!xo(t)?-1:Co(e,r=>this._getItemValue(r)===t)}__getItemIndexByLabel(e,t){return!e||!t?-1:Co(e,r=>this._getItemLabel(r).toString().toLowerCase()===t.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof Ee)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close())}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}if(bi()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(e){return e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:e.relatedTarget===this._overlayElement?(e.composedPath()[0].focus(),!1):!0}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction())}};/**
4498
+ */function xo(i){return i!=null}function Co(i,e){return i.findIndex(t=>t instanceof Ee?!1:e(t))}const Is=i=>class extends Rt(pe(jr(Le(ze(Vt(et(i))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(e){super._inputElementChanged(e);const t=this._nativeInput;t&&(t.autocomplete="off",t.autocapitalize="off",t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-expanded",!!this.opened),t.setAttribute("spellcheck","false"),t.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const e=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront()})};this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),Si(this),this.addController(new ps(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate()}))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(e,t,r){super._propertiesChanged(e,t,r),t.filter!==void 0&&this._filterChanged(t.filter)}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("opened-changed",t=>{this._overlayOpened=t.detail.value}),this._overlayElement=e}_initScroller(e){const t=document.createElement(`${this._tagNamePrefix}-scroller`);t.owner=e||this,t.getItemLabel=this._getItemLabel.bind(this),t.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const r=this._overlayElement;r.renderer=a=>{a.innerHTML||a.appendChild(t)},r.requestContentUpdate(),this._scroller=t}_updateScroller(e,t,r,a,o,n,s,l,d,c){if(e&&(r&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:r?t:[],opened:r,loading:a,selectedItem:o,itemIdPath:n,focusedIndex:s,renderer:l,theme:d,itemClassNameGenerator:c}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate()}catch(u){}}_openedOrItemsChanged(e,t,r,a){this._overlayOpened=e&&(a||r||!!(t&&t.length))}_overlayOpenedChanged(e,t){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):t&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,t){t!==void 0&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&Hr(this.inputElement)}_updateActiveDescendant(e){const t=this._nativeInput;if(!t)return;const r=this._getItemElements().find(a=>a.index===e);r?t.setAttribute("aria-activedescendant",r.id):t.removeAttribute("aria-activedescendant")}_openedChanged(e,t){if(t===void 0)return;e?!this._isInputFocused()&&!mr&&this.inputElement&&this.inputElement.focus():this._onClosed();const r=this._nativeInput;r&&(r.setAttribute("aria-expanded",!!e),e?r.setAttribute("aria-controls",this._scroller.id):r.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open()}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e)}_onKeyDown(e){super._onKeyDown(e),e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){let t=e&&this.itemLabelPath?pi(this.itemLabelPath,e):void 0;return t==null&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?pi(this.itemValuePath,e):void 0;return t===void 0&&(t=e?e.toString():""),t}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const e=this._dropdownItems;e&&(this._focusedIndex=e.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange()}}_setSelectionRange(e,t){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,t)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const e=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("click",()=>{mr&&!this._isInputFocused()&&document.activeElement.blur()}))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}_clearFilter(){this.filter=""}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const e=[this.selectedItem,...this._dropdownItems||[]],t=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!t){const r=this._inputElementValue;this._lastCustomValue=r;const a=new CustomEvent("custom-value-set",{detail:r,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(a),a.defaultPrevented||(this.value=r)}else!this.allowCustomValue&&!this.opened&&t?this.value=this._getItemValue(t):this._revertInputValueToValue()}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(e){const t=this._inputElementValue,r={};this.filter===t?this._filterChanged(this.filter):r.filter=t,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(r.opened=!0),this.setProperties(r)}_onChange(e){e.stopPropagation()}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const t=this._getItemValue(e);if(this.value!==t&&(this.value=t,this.value!==t))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,t){e===""&&t===void 0||(xo(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.items=t}),e?this.filteredItems=e.slice(0):t&&(this.filteredItems=null)}_filteredItemsChanged(e){this._setDropdownItems(e)}_filterItems(e,t){return e&&e.filter(r=>(t=t?t.toString().toLowerCase():"",this._getItemLabel(r).toString().toLowerCase().indexOf(t)>-1))}_selectItemForValue(e){const t=this.__getItemIndexByValue(this.filteredItems,e),r=this.selectedItem;t>=0?this.selectedItem=this.filteredItems[t]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&r===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const t=this._dropdownItems;this._dropdownItems=e;const r=t?t[this._focusedIndex]:null,a=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&a>=0&&(this.selectedItem=e[a]);const o=this.__getItemIndexByValue(e,this._getItemValue(r));o>-1?this._focusedIndex=o:this._focusedIndex=this.__getItemIndexByLabel(e,this.filter)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){this._scroller&&this._scroller.scrollIntoView(e)}__getItemIndexByValue(e,t){return!e||!xo(t)?-1:Co(e,r=>this._getItemValue(r)===t)}__getItemIndexByLabel(e,t){return!e||!t?-1:Co(e,r=>this._getItemLabel(r).toString().toLowerCase()===t.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof Ee)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close())}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}if(bi()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(e){return e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:e.relatedTarget===this._overlayElement?(e.composedPath()[0].focus(),!1):!0}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction())}};/**
4499
4499
  * @license
4500
4500
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4501
4501
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4502
- */g("vaadin-combo-box",Ei,{moduleId:"vaadin-combo-box-styles"});class Um extends Es(Ss(Hm(ki(M(oe(E)))))){static get is(){return"vaadin-combo-box"}static get template(){return k`
4502
+ */g("vaadin-combo-box",Ei,{moduleId:"vaadin-combo-box-styles"});class Um extends Es(Is(Hm(ki(M(oe(E)))))){static get is(){return"vaadin-combo-box"}static get template(){return k`
4503
4503
  <style>
4504
4504
  :host([opened]) {
4505
4505
  pointer-events: auto;
@@ -4648,7 +4648,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4648
4648
  cursor: default;
4649
4649
  }
4650
4650
  }
4651
- `;g("vaadin-multi-select-combo-box-item",[Si,fs,jm],{moduleId:"lumo-multi-select-combo-box-item"});g("vaadin-multi-select-combo-box-overlay",[tt,xi,vs,_s,gs,f`
4651
+ `;g("vaadin-multi-select-combo-box-item",[Ii,fs,jm],{moduleId:"lumo-multi-select-combo-box-item"});g("vaadin-multi-select-combo-box-overlay",[tt,xi,vs,_s,gs,f`
4652
4652
  :host {
4653
4653
  --_vaadin-multi-select-combo-box-items-container-border-width: var(--lumo-space-xs);
4654
4654
  --_vaadin-multi-select-combo-box-items-container-border-style: solid;
@@ -4833,7 +4833,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4833
4833
  * @license
4834
4834
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4835
4835
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4836
- */class Zm extends Es(Ss(M(E))){static get is(){return"vaadin-multi-select-combo-box-internal"}static get template(){return k`
4836
+ */class Zm extends Es(Is(M(E))){static get is(){return"vaadin-multi-select-combo-box-internal"}static get template(){return k`
4837
4837
  <style>
4838
4838
  :host([opened]) {
4839
4839
  pointer-events: auto;
@@ -4855,7 +4855,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4855
4855
  * @license
4856
4856
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4857
4857
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4858
- */const Kt=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(e=>{e.target.resizables?e.target.resizables.forEach(t=>{t._onResize(e.contentRect)}):e.target._onResize(e.contentRect)})})}),Is=B(i=>class extends i{get _observeParent(){return!1}connectedCallback(){if(super.connectedCallback(),Kt.observe(this),this._observeParent){const e=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;e.resizables||(e.resizables=new Set,Kt.observe(e)),e.resizables.add(this),this.__parent=e}}disconnectedCallback(){super.disconnectedCallback(),Kt.unobserve(this);const e=this.__parent;if(this._observeParent&&e){const t=e.resizables;t&&(t.delete(this),t.size===0&&Kt.unobserve(e)),this.__parent=null}}_onResize(e){}});/**
4858
+ */const Kt=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(e=>{e.target.resizables?e.target.resizables.forEach(t=>{t._onResize(e.contentRect)}):e.target._onResize(e.contentRect)})})}),Ss=B(i=>class extends i{get _observeParent(){return!1}connectedCallback(){if(super.connectedCallback(),Kt.observe(this),this._observeParent){const e=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;e.resizables||(e.resizables=new Set,Kt.observe(e)),e.resizables.add(this),this.__parent=e}}disconnectedCallback(){super.disconnectedCallback(),Kt.unobserve(this);const e=this.__parent;if(this._observeParent&&e){const t=e.resizables;t&&(t.delete(this),t.size===0&&Kt.unobserve(e)),this.__parent=null}}_onResize(e){}});/**
4859
4859
  * @license
4860
4860
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4861
4861
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4897,7 +4897,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4897
4897
  :host([auto-expand-horizontally]) [class$='container'] {
4898
4898
  width: auto;
4899
4899
  }
4900
- `;g("vaadin-multi-select-combo-box",[Ei,ef],{moduleId:"vaadin-multi-select-combo-box-styles"});class tf extends Is(ki(M(oe(E)))){static get is(){return"vaadin-multi-select-combo-box"}static get template(){return k`
4900
+ `;g("vaadin-multi-select-combo-box",[Ei,ef],{moduleId:"vaadin-multi-select-combo-box-styles"});class tf extends Ss(ki(M(oe(E)))){static get is(){return"vaadin-multi-select-combo-box"}static get template(){return k`
4901
4901
  <div class="vaadin-multi-select-combo-box-container">
4902
4902
  <div part="label">
4903
4903
  <slot name="label"></slot>
@@ -4973,7 +4973,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4973
4973
  color: transparent !important;
4974
4974
  forced-color-adjust: none;
4975
4975
  }
4976
- `]}get clearElement(){return this.$.clearButton}get _chips(){return[...this.querySelectorAll('[slot="chip"]')]}get _hasValue(){return this.selectedItems&&this.selectedItems.length>0}ready(){super.ready(),this.addController(new Mt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Nt(this.inputElement,this._labelController)),this._tooltipController=new be(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._inputField=this.shadowRoot.querySelector('[part="input-field"]'),this._overflowController=new J(this,"overflow","vaadin-multi-select-combo-box-chip",{initializer:e=>{e.addEventListener("mousedown",t=>this._preventBlur(t)),this._overflow=e}}),this.addController(this._overflowController),this.__updateChips(),Ii(this)}checkValidity(){return this.required&&!this.readonly?this._hasValue:!0}clear(){this.__updateSelection([]),Jt(this.i18n.cleared)}clearCache(){this.$&&this.$.comboBox&&this.$.comboBox.clearCache()}requestContentUpdate(){this.$&&this.$.comboBox&&this.$.comboBox.requestContentUpdate()}_disabledChanged(e,t){super._disabledChanged(e,t),(e||t)&&this.__updateChips()}_inputElementChanged(e){super._inputElementChanged(e),e&&this.$.comboBox._setInputElement(e)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&(this._focusedChipIndex=-1,this.validate())}_onResize(){this.__updateChips()}_delegateAttribute(e,t){if(this.stateTarget){if(e==="required"){this._delegateAttribute("aria-required",t?"true":!1);return}super._delegateAttribute(e,t)}}_autoExpandHorizontallyChanged(e,t){(e||t)&&this.__updateChips()}_autoExpandVerticallyChanged(e,t){(e||t)&&this.__updateChips()}_clearButtonVisibleChanged(e,t){(e||t)&&this.__updateChips()}_onFilteredItemsChanged(e){const{value:t}=e.detail;(Array.isArray(t)||t==null)&&(this.filteredItems=t)}_readonlyChanged(e,t){(e||t)&&this.__updateChips(),this.dataProvider&&this.clearCache()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.__updateChips()}_pageSizeChanged(e,t){(Math.floor(e)!==e||e<=0)&&(this.pageSize=t,console.error('"pageSize" value must be an integer > 0')),this.$.comboBox.pageSize=this.pageSize}_placeholderChanged(e){const t=this.__tmpA11yPlaceholder;t!==e&&(this.__savedPlaceholder=e,t&&(this.placeholder=t))}_selectedItemsChanged(e){if(this._toggleHasValue(this._hasValue),this._hasValue){const t=this._mergeItemLabels(e);this.__tmpA11yPlaceholder===void 0&&(this.__savedPlaceholder=this.placeholder),this.__tmpA11yPlaceholder=t,this.placeholder=t}else this.__tmpA11yPlaceholder!==void 0&&(delete this.__tmpA11yPlaceholder,this.placeholder=this.__savedPlaceholder);this.__updateChips(),this.requestContentUpdate(),this.opened&&this.$.comboBox.$.overlay._updateOverlayWidth()}_getItemLabel(e){return this.$.comboBox._getItemLabel(e)}_mergeItemLabels(e){return e.map(t=>this._getItemLabel(t)).join(", ")}_findIndex(e,t,r){if(r&&e){for(let a=0;a<t.length;a++)if(t[a]&&t[a][r]===e[r])return a;return-1}return t.indexOf(e)}__clearInternalValue(e=!1){!this.keepFilter||e?(this.filter="",this.$.comboBox.clear()):(this.$.comboBox.clear(),this._inputElementValue=this.filter)}__announceItem(e,t,r){const a=t?"selected":"deselected",o=this.i18n.total.replace("{count}",r||0);Jt(`${e} ${this.i18n[a]} ${o}`)}__removeItem(e){const t=[...this.selectedItems];t.splice(t.indexOf(e),1),this.__updateSelection(t);const r=this._getItemLabel(e);this.__announceItem(r,!1,t.length)}__selectItem(e){const t=[...this.selectedItems],r=this._findIndex(e,t,this.itemIdPath),a=this._getItemLabel(e);let o=!1;if(r!==-1){const n=this._lastFilter;if(n&&n.toLowerCase()===a.toLowerCase()){this.__clearInternalValue();return}t.splice(r,1)}else t.push(e),o=!0;this.__updateSelection(t),this.__clearInternalValue(),this.__announceItem(a,o,t.length)}__updateSelection(e){this.selectedItems=e,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__updateTopGroup(e,t,r){e?r||(this._topGroup=[...t]):this._topGroup=[]}__createChip(e){const t=document.createElement("vaadin-multi-select-combo-box-chip");t.setAttribute("slot","chip"),t.item=e,t.disabled=this.disabled,t.readonly=this.readonly;const r=this._getItemLabel(e);return t.label=r,t.setAttribute("title",r),typeof this.itemClassNameGenerator=="function"&&(t.className=this.itemClassNameGenerator(e)),t.addEventListener("item-removed",a=>this._onItemRemoved(a)),t.addEventListener("mousedown",a=>this._preventBlur(a)),t}__getOverflowWidth(){const e=this._overflow;e.style.visibility="hidden",e.removeAttribute("hidden");const t=e.getAttribute("count");e.setAttribute("count","99");const r=getComputedStyle(e),a=e.clientWidth+parseInt(r.marginInlineStart);return e.setAttribute("count",t),e.setAttribute("hidden",""),e.style.visibility="",a}__updateChips(){if(!this._inputField||!this.inputElement)return;this._chips.forEach(n=>{n.remove()});const e=[...this.selectedItems],t=this._inputField.$.wrapper.clientWidth,r=parseInt(getComputedStyle(this.inputElement).flexBasis);let a=t-r;e.length>1&&(a-=this.__getOverflowWidth());const o=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const n=[];for(let d=e.length-1,c=null;d>=0;d--){const u=this.__createChip(e[d]);this.insertBefore(u,c),c=u,n.unshift(u)}const s=[],l=this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth;if(!this.autoExpandVertically&&l<r){for(;n.length>1;){n.pop().remove(),s.unshift(e.pop());const d=s.length>0?r+this.__getOverflowWidth():r;if(this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth>=d)break}n.length===1&&(n[0].style.maxWidth=`${Math.max(o,a)}px`)}this._overflowItems=s;return}for(let n=e.length-1,s=null;n>=0;n--){const l=this.__createChip(e[n]);if(this.insertBefore(l,s),!this.autoExpandVertically&&this.$.chips.clientWidth>a)if(s===null)l.style.maxWidth=`${Math.max(o,a)}px`;else{l.remove();break}e.pop(),s=l}this._overflowItems=e}__updateOverflowChip(e,t,r,a){if(e){const o=t.length;e.label=`${o}`,e.setAttribute("count",`${o}`),e.setAttribute("title",this._mergeItemLabels(t)),e.toggleAttribute("hidden",o===0),e.disabled=r,e.readonly=a}}_onClearButtonTouchend(e){e.preventDefault(),e.stopPropagation(),this.clear()}_onClearButtonClick(e){e.stopPropagation(),this.clear()}_onChange(e){e.stopPropagation()}_onEscape(e){this.clearButtonVisible&&this.selectedItems&&this.selectedItems.length&&(e.stopPropagation(),this.selectedItems=[])}_onKeyDown(e){super._onKeyDown(e);const t=this._chips;if(!this.readonly&&t.length>0)switch(e.key){case"Backspace":this._onBackSpace(t);break;case"ArrowLeft":this._onArrowLeft(t,e);break;case"ArrowRight":this._onArrowRight(t,e);break;default:this._focusedChipIndex=-1;break}}_onArrowLeft(e,t){if(this.inputElement.selectionStart!==0)return;const r=this._focusedChipIndex;r!==-1&&t.preventDefault();let a;this.__isRTL?r===e.length-1?a=-1:r>-1&&(a=r+1):r===-1?a=e.length-1:r>0&&(a=r-1),a!==void 0&&(this._focusedChipIndex=a)}_onArrowRight(e,t){if(this.inputElement.selectionStart!==0)return;const r=this._focusedChipIndex;r!==-1&&t.preventDefault();let a;this.__isRTL?r===-1?a=e.length-1:r>0&&(a=r-1):r===e.length-1?a=-1:r>-1&&(a=r+1),a!==void 0&&(this._focusedChipIndex=a)}_onBackSpace(e){if(this.inputElement.selectionStart!==0)return;const t=this._focusedChipIndex;t===-1?this._focusedChipIndex=e.length-1:(this.__removeItem(e[t].item),this._focusedChipIndex=-1)}_focusedChipIndexChanged(e,t){if(e>-1||t>-1){const r=this._chips;if(r.forEach((a,o)=>{a.toggleAttribute("focused",o===e)}),e>-1){const a=r[e].item,o=this._getItemLabel(a);Jt(`${o} ${this.i18n.focused}`)}}}_onComboBoxChange(){const e=this.$.comboBox.selectedItem;e&&this.__selectItem(e)}_onComboBoxItemSelected(e){this.__selectItem(e.detail.item)}_onCustomValueSet(e){e.preventDefault(),e.stopPropagation(),this.__clearInternalValue(!0),this.dispatchEvent(new CustomEvent("custom-value-set",{detail:e.detail,composed:!0,bubbles:!0}))}_onItemRemoved(e){this.__removeItem(e.detail.item)}_preventBlur(e){e.preventDefault()}}w(tf);g("vaadin-notification-card",f`
4976
+ `]}get clearElement(){return this.$.clearButton}get _chips(){return[...this.querySelectorAll('[slot="chip"]')]}get _hasValue(){return this.selectedItems&&this.selectedItems.length>0}ready(){super.ready(),this.addController(new Mt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new Nt(this.inputElement,this._labelController)),this._tooltipController=new be(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._inputField=this.shadowRoot.querySelector('[part="input-field"]'),this._overflowController=new J(this,"overflow","vaadin-multi-select-combo-box-chip",{initializer:e=>{e.addEventListener("mousedown",t=>this._preventBlur(t)),this._overflow=e}}),this.addController(this._overflowController),this.__updateChips(),Si(this)}checkValidity(){return this.required&&!this.readonly?this._hasValue:!0}clear(){this.__updateSelection([]),Jt(this.i18n.cleared)}clearCache(){this.$&&this.$.comboBox&&this.$.comboBox.clearCache()}requestContentUpdate(){this.$&&this.$.comboBox&&this.$.comboBox.requestContentUpdate()}_disabledChanged(e,t){super._disabledChanged(e,t),(e||t)&&this.__updateChips()}_inputElementChanged(e){super._inputElementChanged(e),e&&this.$.comboBox._setInputElement(e)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&(this._focusedChipIndex=-1,this.validate())}_onResize(){this.__updateChips()}_delegateAttribute(e,t){if(this.stateTarget){if(e==="required"){this._delegateAttribute("aria-required",t?"true":!1);return}super._delegateAttribute(e,t)}}_autoExpandHorizontallyChanged(e,t){(e||t)&&this.__updateChips()}_autoExpandVerticallyChanged(e,t){(e||t)&&this.__updateChips()}_clearButtonVisibleChanged(e,t){(e||t)&&this.__updateChips()}_onFilteredItemsChanged(e){const{value:t}=e.detail;(Array.isArray(t)||t==null)&&(this.filteredItems=t)}_readonlyChanged(e,t){(e||t)&&this.__updateChips(),this.dataProvider&&this.clearCache()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.__updateChips()}_pageSizeChanged(e,t){(Math.floor(e)!==e||e<=0)&&(this.pageSize=t,console.error('"pageSize" value must be an integer > 0')),this.$.comboBox.pageSize=this.pageSize}_placeholderChanged(e){const t=this.__tmpA11yPlaceholder;t!==e&&(this.__savedPlaceholder=e,t&&(this.placeholder=t))}_selectedItemsChanged(e){if(this._toggleHasValue(this._hasValue),this._hasValue){const t=this._mergeItemLabels(e);this.__tmpA11yPlaceholder===void 0&&(this.__savedPlaceholder=this.placeholder),this.__tmpA11yPlaceholder=t,this.placeholder=t}else this.__tmpA11yPlaceholder!==void 0&&(delete this.__tmpA11yPlaceholder,this.placeholder=this.__savedPlaceholder);this.__updateChips(),this.requestContentUpdate(),this.opened&&this.$.comboBox.$.overlay._updateOverlayWidth()}_getItemLabel(e){return this.$.comboBox._getItemLabel(e)}_mergeItemLabels(e){return e.map(t=>this._getItemLabel(t)).join(", ")}_findIndex(e,t,r){if(r&&e){for(let a=0;a<t.length;a++)if(t[a]&&t[a][r]===e[r])return a;return-1}return t.indexOf(e)}__clearInternalValue(e=!1){!this.keepFilter||e?(this.filter="",this.$.comboBox.clear()):(this.$.comboBox.clear(),this._inputElementValue=this.filter)}__announceItem(e,t,r){const a=t?"selected":"deselected",o=this.i18n.total.replace("{count}",r||0);Jt(`${e} ${this.i18n[a]} ${o}`)}__removeItem(e){const t=[...this.selectedItems];t.splice(t.indexOf(e),1),this.__updateSelection(t);const r=this._getItemLabel(e);this.__announceItem(r,!1,t.length)}__selectItem(e){const t=[...this.selectedItems],r=this._findIndex(e,t,this.itemIdPath),a=this._getItemLabel(e);let o=!1;if(r!==-1){const n=this._lastFilter;if(n&&n.toLowerCase()===a.toLowerCase()){this.__clearInternalValue();return}t.splice(r,1)}else t.push(e),o=!0;this.__updateSelection(t),this.__clearInternalValue(),this.__announceItem(a,o,t.length)}__updateSelection(e){this.selectedItems=e,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__updateTopGroup(e,t,r){e?r||(this._topGroup=[...t]):this._topGroup=[]}__createChip(e){const t=document.createElement("vaadin-multi-select-combo-box-chip");t.setAttribute("slot","chip"),t.item=e,t.disabled=this.disabled,t.readonly=this.readonly;const r=this._getItemLabel(e);return t.label=r,t.setAttribute("title",r),typeof this.itemClassNameGenerator=="function"&&(t.className=this.itemClassNameGenerator(e)),t.addEventListener("item-removed",a=>this._onItemRemoved(a)),t.addEventListener("mousedown",a=>this._preventBlur(a)),t}__getOverflowWidth(){const e=this._overflow;e.style.visibility="hidden",e.removeAttribute("hidden");const t=e.getAttribute("count");e.setAttribute("count","99");const r=getComputedStyle(e),a=e.clientWidth+parseInt(r.marginInlineStart);return e.setAttribute("count",t),e.setAttribute("hidden",""),e.style.visibility="",a}__updateChips(){if(!this._inputField||!this.inputElement)return;this._chips.forEach(n=>{n.remove()});const e=[...this.selectedItems],t=this._inputField.$.wrapper.clientWidth,r=parseInt(getComputedStyle(this.inputElement).flexBasis);let a=t-r;e.length>1&&(a-=this.__getOverflowWidth());const o=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const n=[];for(let d=e.length-1,c=null;d>=0;d--){const u=this.__createChip(e[d]);this.insertBefore(u,c),c=u,n.unshift(u)}const s=[],l=this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth;if(!this.autoExpandVertically&&l<r){for(;n.length>1;){n.pop().remove(),s.unshift(e.pop());const d=s.length>0?r+this.__getOverflowWidth():r;if(this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth>=d)break}n.length===1&&(n[0].style.maxWidth=`${Math.max(o,a)}px`)}this._overflowItems=s;return}for(let n=e.length-1,s=null;n>=0;n--){const l=this.__createChip(e[n]);if(this.insertBefore(l,s),!this.autoExpandVertically&&this.$.chips.clientWidth>a)if(s===null)l.style.maxWidth=`${Math.max(o,a)}px`;else{l.remove();break}e.pop(),s=l}this._overflowItems=e}__updateOverflowChip(e,t,r,a){if(e){const o=t.length;e.label=`${o}`,e.setAttribute("count",`${o}`),e.setAttribute("title",this._mergeItemLabels(t)),e.toggleAttribute("hidden",o===0),e.disabled=r,e.readonly=a}}_onClearButtonTouchend(e){e.preventDefault(),e.stopPropagation(),this.clear()}_onClearButtonClick(e){e.stopPropagation(),this.clear()}_onChange(e){e.stopPropagation()}_onEscape(e){this.clearButtonVisible&&this.selectedItems&&this.selectedItems.length&&(e.stopPropagation(),this.selectedItems=[])}_onKeyDown(e){super._onKeyDown(e);const t=this._chips;if(!this.readonly&&t.length>0)switch(e.key){case"Backspace":this._onBackSpace(t);break;case"ArrowLeft":this._onArrowLeft(t,e);break;case"ArrowRight":this._onArrowRight(t,e);break;default:this._focusedChipIndex=-1;break}}_onArrowLeft(e,t){if(this.inputElement.selectionStart!==0)return;const r=this._focusedChipIndex;r!==-1&&t.preventDefault();let a;this.__isRTL?r===e.length-1?a=-1:r>-1&&(a=r+1):r===-1?a=e.length-1:r>0&&(a=r-1),a!==void 0&&(this._focusedChipIndex=a)}_onArrowRight(e,t){if(this.inputElement.selectionStart!==0)return;const r=this._focusedChipIndex;r!==-1&&t.preventDefault();let a;this.__isRTL?r===-1?a=e.length-1:r>0&&(a=r-1):r===e.length-1?a=-1:r>-1&&(a=r+1),a!==void 0&&(this._focusedChipIndex=a)}_onBackSpace(e){if(this.inputElement.selectionStart!==0)return;const t=this._focusedChipIndex;t===-1?this._focusedChipIndex=e.length-1:(this.__removeItem(e[t].item),this._focusedChipIndex=-1)}_focusedChipIndexChanged(e,t){if(e>-1||t>-1){const r=this._chips;if(r.forEach((a,o)=>{a.toggleAttribute("focused",o===e)}),e>-1){const a=r[e].item,o=this._getItemLabel(a);Jt(`${o} ${this.i18n.focused}`)}}}_onComboBoxChange(){const e=this.$.comboBox.selectedItem;e&&this.__selectItem(e)}_onComboBoxItemSelected(e){this.__selectItem(e.detail.item)}_onCustomValueSet(e){e.preventDefault(),e.stopPropagation(),this.__clearInternalValue(!0),this.dispatchEvent(new CustomEvent("custom-value-set",{detail:e.detail,composed:!0,bubbles:!0}))}_onItemRemoved(e){this.__removeItem(e.detail.item)}_preventBlur(e){e.preventDefault()}}w(tf);g("vaadin-notification-card",f`
4977
4977
  :host {
4978
4978
  position: relative;
4979
4979
  margin: var(--lumo-space-s);
@@ -5291,7 +5291,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5291
5291
  }
5292
5292
  </style>
5293
5293
  <vaadin-notification-card theme$="[[_theme]]"> </vaadin-notification-card>
5294
- `}static get is(){return"vaadin-notification"}static get properties(){return{duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function}}static get observers(){return["_durationChanged(duration, opened)","_rendererChanged(renderer, opened, _overlayElement)"]}static show(e,t){return rf(e)?_e._createAndShowNotification(r=>{Jo(e,r)},t):_e._createAndShowNotification(r=>{r.innerText=e},t)}static _createAndShowNotification(e,t){const r=document.createElement(_e.is);return t&&Number.isFinite(t.duration)&&(r.duration=t.duration),t&&t.position&&(r.position=t.position),t&&t.theme&&r.setAttribute("theme",t.theme),r.renderer=e,document.body.appendChild(r),r.opened=!0,r.addEventListener("opened-changed",a=>{a.detail.value||r.remove()}),r}get _container(){return _e._container||(_e._container=document.createElement("vaadin-notification-container"),document.body.appendChild(_e._container)),_e._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),Ii(this)}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected||(this.opened=!1)})}requestContentUpdate(){this.renderer&&this.renderer(this._card,this)}_rendererChanged(e,t,r){if(!r)return;const a=this._oldRenderer!==e;this._oldRenderer=e,a&&(r.innerHTML="",delete r._$litPart$),t&&(this._didAnimateNotificationAppend||this._animatedAppendNotificationCard(),this.requestContentUpdate())}open(){this.opened=!0}close(){this.opened=!1}_openedChanged(e){e?(this._container.opened=!0,this._animatedAppendNotificationCard()):this._card&&this._closeNotificationCard()}__cleanUpOpeningClosingState(){this._card.removeAttribute("opening"),this._card.removeAttribute("closing"),this._card.removeEventListener("animationend",this.__animationEndListener)}_animatedAppendNotificationCard(){this._card?(this.__cleanUpOpeningClosingState(),this._card.setAttribute("opening",""),this._appendNotificationCard(),this.__animationEndListener=()=>this.__cleanUpOpeningClosingState(),this._card.addEventListener("animationend",this.__animationEndListener),this._didAnimateNotificationAppend=!0):this._didAnimateNotificationAppend=!1}_appendNotificationCard(){if(this._card){if(!this._container.shadowRoot.querySelector(`slot[name="${this.position}"]`)){console.warn(`Invalid alignment parameter provided: position=${this.position}`);return}this._container.bringToFront(),this._card.slot=this.position,this._container.firstElementChild&&/top/u.test(this.position)?this._container.insertBefore(this._card,this._container.firstElementChild):this._container.appendChild(this._card)}}_removeNotificationCard(){this._card.parentNode&&this._card.parentNode.removeChild(this._card),this._card.removeAttribute("closing"),this._container.opened=!!this._container.firstElementChild,this.dispatchEvent(new CustomEvent("closed"))}_closeNotificationCard(){this._durationTimeoutId&&clearTimeout(this._durationTimeoutId),this._animatedRemoveNotificationCard()}_animatedRemoveNotificationCard(){this.__cleanUpOpeningClosingState(),this._card.setAttribute("closing","");const e=getComputedStyle(this._card).getPropertyValue("animation-name");e&&e!=="none"?(this.__animationEndListener=()=>{this._removeNotificationCard(),this.__cleanUpOpeningClosingState()},this._card.addEventListener("animationend",this.__animationEndListener)):this._removeNotificationCard()}_positionChanged(){this.opened&&this._animatedAppendNotificationCard()}_durationChanged(e,t){t&&(clearTimeout(this._durationTimeoutId),e>0&&(this._durationTimeoutId=setTimeout(()=>this.close(),e)))}}w(af);w(of);w(_e);const Ts=f`
5294
+ `}static get is(){return"vaadin-notification"}static get properties(){return{duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function}}static get observers(){return["_durationChanged(duration, opened)","_rendererChanged(renderer, opened, _overlayElement)"]}static show(e,t){return rf(e)?_e._createAndShowNotification(r=>{Jo(e,r)},t):_e._createAndShowNotification(r=>{r.innerText=e},t)}static _createAndShowNotification(e,t){const r=document.createElement(_e.is);return t&&Number.isFinite(t.duration)&&(r.duration=t.duration),t&&t.position&&(r.position=t.position),t&&t.theme&&r.setAttribute("theme",t.theme),r.renderer=e,document.body.appendChild(r),r.opened=!0,r.addEventListener("opened-changed",a=>{a.detail.value||r.remove()}),r}get _container(){return _e._container||(_e._container=document.createElement("vaadin-notification-container"),document.body.appendChild(_e._container)),_e._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),Si(this)}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected||(this.opened=!1)})}requestContentUpdate(){this.renderer&&this.renderer(this._card,this)}_rendererChanged(e,t,r){if(!r)return;const a=this._oldRenderer!==e;this._oldRenderer=e,a&&(r.innerHTML="",delete r._$litPart$),t&&(this._didAnimateNotificationAppend||this._animatedAppendNotificationCard(),this.requestContentUpdate())}open(){this.opened=!0}close(){this.opened=!1}_openedChanged(e){e?(this._container.opened=!0,this._animatedAppendNotificationCard()):this._card&&this._closeNotificationCard()}__cleanUpOpeningClosingState(){this._card.removeAttribute("opening"),this._card.removeAttribute("closing"),this._card.removeEventListener("animationend",this.__animationEndListener)}_animatedAppendNotificationCard(){this._card?(this.__cleanUpOpeningClosingState(),this._card.setAttribute("opening",""),this._appendNotificationCard(),this.__animationEndListener=()=>this.__cleanUpOpeningClosingState(),this._card.addEventListener("animationend",this.__animationEndListener),this._didAnimateNotificationAppend=!0):this._didAnimateNotificationAppend=!1}_appendNotificationCard(){if(this._card){if(!this._container.shadowRoot.querySelector(`slot[name="${this.position}"]`)){console.warn(`Invalid alignment parameter provided: position=${this.position}`);return}this._container.bringToFront(),this._card.slot=this.position,this._container.firstElementChild&&/top/u.test(this.position)?this._container.insertBefore(this._card,this._container.firstElementChild):this._container.appendChild(this._card)}}_removeNotificationCard(){this._card.parentNode&&this._card.parentNode.removeChild(this._card),this._card.removeAttribute("closing"),this._container.opened=!!this._container.firstElementChild,this.dispatchEvent(new CustomEvent("closed"))}_closeNotificationCard(){this._durationTimeoutId&&clearTimeout(this._durationTimeoutId),this._animatedRemoveNotificationCard()}_animatedRemoveNotificationCard(){this.__cleanUpOpeningClosingState(),this._card.setAttribute("closing","");const e=getComputedStyle(this._card).getPropertyValue("animation-name");e&&e!=="none"?(this.__animationEndListener=()=>{this._removeNotificationCard(),this.__cleanUpOpeningClosingState()},this._card.addEventListener("animationend",this.__animationEndListener)):this._removeNotificationCard()}_positionChanged(){this.opened&&this._animatedAppendNotificationCard()}_durationChanged(e,t){t&&(clearTimeout(this._durationTimeoutId),e>0&&(this._durationTimeoutId=setTimeout(()=>this.close(),e)))}}w(af);w(of);w(_e);const Ts=f`
5295
5295
  :host {
5296
5296
  -webkit-tap-highlight-color: transparent;
5297
5297
  --_lumo-item-selected-icon-display: var(--_lumo-list-box-item-selected-icon-display, block);
@@ -5309,7 +5309,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5309
5309
  * @license
5310
5310
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5311
5311
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5312
- */g("vaadin-select-item",Si,{moduleId:"lumo-select-item"});g("vaadin-select-list-box",Ts,{moduleId:"lumo-select-list-box"});const nf=f`
5312
+ */g("vaadin-select-item",Ii,{moduleId:"lumo-select-item"});g("vaadin-select-list-box",Ts,{moduleId:"lumo-select-list-box"});const nf=f`
5313
5313
  :host(:not([theme*='align'])) ::slotted([slot='value']) {
5314
5314
  text-align: start;
5315
5315
  }
@@ -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(),Ii(this)}_rendererChanged(e,t){t&&(t.renderer=e||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}w(yf);const Os=f`
5637
+ `}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),Si(this)}_rendererChanged(e,t){t&&(t.renderer=e||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}w(yf);const Os=f`
5638
5638
  /* Optical centering */
5639
5639
  :host::before,
5640
5640
  :host::after {
@@ -6000,7 +6000,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6000
6000
  </footer>
6001
6001
  </section>
6002
6002
  </div>
6003
- `}ready(){super.ready(),this.setAttribute("has-header",""),this.setAttribute("has-footer","")}}w(Ef);class Sf extends Cf(wf(Rt(_i(E)))){static get is(){return"vaadin-confirm-dialog-dialog"}static get template(){return k`
6003
+ `}ready(){super.ready(),this.setAttribute("has-header",""),this.setAttribute("has-footer","")}}w(Ef);class If extends Cf(wf(Rt(_i(E)))){static get is(){return"vaadin-confirm-dialog-dialog"}static get template(){return k`
6004
6004
  <style>
6005
6005
  :host {
6006
6006
  display: none;
@@ -6021,15 +6021,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6021
6021
  restore-focus-on-close
6022
6022
  focus-trap
6023
6023
  ></vaadin-confirm-dialog-overlay>
6024
- `}}w(Sf);/**
6024
+ `}}w(If);/**
6025
6025
  * @license
6026
6026
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
6027
6027
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6028
- */const If=i=>class extends i{static get properties(){return{accessibleDescriptionRef:{type:String},opened:{type:Boolean,value:!1,notify:!0},header:{type:String,value:""},message:{type:String,value:""},confirmText:{type:String,value:"Confirm"},confirmTheme:{type:String,value:"primary"},noCloseOnEsc:{type:Boolean,value:!1},rejectButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},rejectText:{type:String,value:"Reject"},rejectTheme:{type:String,value:"error tertiary"},cancelButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},cancelText:{type:String,value:"Cancel"},cancelTheme:{type:String,value:"tertiary"},overlayClass:{type:String},_cancelButton:{type:Object},_confirmButton:{type:Object},_headerNode:{type:Object},_messageNodes:{type:Array,value:()=>[]},_overlayElement:{type:Object,sync:!0},_rejectButton:{type:Object},_contentHeight:{type:String},_contentWidth:{type:String}}}static get observers(){return["__updateConfirmButton(_confirmButton, confirmText, confirmTheme)","__updateCancelButton(_cancelButton, cancelText, cancelTheme, cancelButtonVisible)","__updateHeaderNode(_headerNode, header)","__updateMessageNodes(_messageNodes, message)","__updateRejectButton(_rejectButton, rejectText, rejectTheme, rejectButtonVisible)","__accessibleDescriptionRefChanged(_overlayElement, _messageNodes, accessibleDescriptionRef)"]}constructor(){super(),this.__cancel=this.__cancel.bind(this),this.__confirm=this.__confirm.bind(this),this.__reject=this.__reject.bind(this)}get __slottedNodes(){return[this._headerNode,...this._messageNodes,this._cancelButton,this._confirmButton,this._rejectButton]}ready(){super.ready(),this._headerController=new J(this,"header","h3",{initializer:e=>{this._headerNode=e}}),this.addController(this._headerController),this._messageController=new J(this,"","div",{multiple:!0,observe:!1,initializer:e=>{const t=document.createElement("div");t.style.display="contents";const r=`confirm-dialog-message-${Ot()}`;t.id=r,this.appendChild(t),t.appendChild(e),this._messageNodes=[...this._messageNodes,t]}}),this.addController(this._messageController),this._cancelController=new J(this,"cancel-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("cancel",e)}}),this.addController(this._cancelController),this._rejectController=new J(this,"reject-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("reject",e)}}),this.addController(this._rejectController),this._confirmController=new J(this,"confirm-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("confirm",e)}}),this.addController(this._confirmController)}_initOverlay(e){e.addEventListener("vaadin-overlay-escape-press",this._escPressed.bind(this)),e.addEventListener("vaadin-overlay-open",()=>this.__onDialogOpened()),e.addEventListener("vaadin-overlay-closed",()=>this.__onDialogClosed()),e.setAttribute("role","alertdialog")}__onDialogOpened(){const e=this._overlayElement;this.__slottedNodes.forEach(r=>{e.appendChild(r)});const t=e.querySelector('[slot="confirm-button"]');t&&t.focus()}__onDialogClosed(){this.__slottedNodes.forEach(e=>{this.appendChild(e)}),this.dispatchEvent(new CustomEvent("closed"))}__accessibleDescriptionRefChanged(e,t,r){!e||!t||(r!==void 0?We(e,"aria-describedby",{newId:r,oldId:this.__oldAccessibleDescriptionRef,fromUser:!0}):t.forEach(a=>{We(e,"aria-describedby",{newId:a.id})}),this.__oldAccessibleDescriptionRef=r)}__setupSlottedButton(e,t){const r=`_${e}Button`,a=`__${e}`;this[r]&&this[r]!==t&&this[r].remove(),t.addEventListener("click",this[a]),this[r]=t}__updateCancelButton(e,t,r,a){e&&(e===this._cancelController.defaultNode&&(e.textContent=t,e.setAttribute("theme",r)),e.toggleAttribute("hidden",!a))}__updateConfirmButton(e,t,r){e&&e===this._confirmController.defaultNode&&(e.textContent=t,e.setAttribute("theme",r))}__updateHeaderNode(e,t){e&&e===this._headerController.defaultNode&&(e.textContent=t)}__updateMessageNodes(e,t){if(e&&e.length>0){const r=e.find(a=>this._messageController.defaultNode&&a===this._messageController.defaultNode.parentElement);r&&(r.firstChild.textContent=t)}}__updateRejectButton(e,t,r,a){e&&(e===this._rejectController.defaultNode&&(e.textContent=t,e.setAttribute("theme",r)),e.toggleAttribute("hidden",!a))}_escPressed(e){e.defaultPrevented||this.__cancel()}__confirm(){this.dispatchEvent(new CustomEvent("confirm")),this.opened=!1}__cancel(){this.dispatchEvent(new CustomEvent("cancel")),this.opened=!1}__reject(){this.dispatchEvent(new CustomEvent("reject")),this.opened=!1}_getAriaLabel(e){return e||"confirmation"}};/**
6028
+ */const Sf=i=>class extends i{static get properties(){return{accessibleDescriptionRef:{type:String},opened:{type:Boolean,value:!1,notify:!0},header:{type:String,value:""},message:{type:String,value:""},confirmText:{type:String,value:"Confirm"},confirmTheme:{type:String,value:"primary"},noCloseOnEsc:{type:Boolean,value:!1},rejectButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},rejectText:{type:String,value:"Reject"},rejectTheme:{type:String,value:"error tertiary"},cancelButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},cancelText:{type:String,value:"Cancel"},cancelTheme:{type:String,value:"tertiary"},overlayClass:{type:String},_cancelButton:{type:Object},_confirmButton:{type:Object},_headerNode:{type:Object},_messageNodes:{type:Array,value:()=>[]},_overlayElement:{type:Object,sync:!0},_rejectButton:{type:Object},_contentHeight:{type:String},_contentWidth:{type:String}}}static get observers(){return["__updateConfirmButton(_confirmButton, confirmText, confirmTheme)","__updateCancelButton(_cancelButton, cancelText, cancelTheme, cancelButtonVisible)","__updateHeaderNode(_headerNode, header)","__updateMessageNodes(_messageNodes, message)","__updateRejectButton(_rejectButton, rejectText, rejectTheme, rejectButtonVisible)","__accessibleDescriptionRefChanged(_overlayElement, _messageNodes, accessibleDescriptionRef)"]}constructor(){super(),this.__cancel=this.__cancel.bind(this),this.__confirm=this.__confirm.bind(this),this.__reject=this.__reject.bind(this)}get __slottedNodes(){return[this._headerNode,...this._messageNodes,this._cancelButton,this._confirmButton,this._rejectButton]}ready(){super.ready(),this._headerController=new J(this,"header","h3",{initializer:e=>{this._headerNode=e}}),this.addController(this._headerController),this._messageController=new J(this,"","div",{multiple:!0,observe:!1,initializer:e=>{const t=document.createElement("div");t.style.display="contents";const r=`confirm-dialog-message-${Ot()}`;t.id=r,this.appendChild(t),t.appendChild(e),this._messageNodes=[...this._messageNodes,t]}}),this.addController(this._messageController),this._cancelController=new J(this,"cancel-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("cancel",e)}}),this.addController(this._cancelController),this._rejectController=new J(this,"reject-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("reject",e)}}),this.addController(this._rejectController),this._confirmController=new J(this,"confirm-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("confirm",e)}}),this.addController(this._confirmController)}_initOverlay(e){e.addEventListener("vaadin-overlay-escape-press",this._escPressed.bind(this)),e.addEventListener("vaadin-overlay-open",()=>this.__onDialogOpened()),e.addEventListener("vaadin-overlay-closed",()=>this.__onDialogClosed()),e.setAttribute("role","alertdialog")}__onDialogOpened(){const e=this._overlayElement;this.__slottedNodes.forEach(r=>{e.appendChild(r)});const t=e.querySelector('[slot="confirm-button"]');t&&t.focus()}__onDialogClosed(){this.__slottedNodes.forEach(e=>{this.appendChild(e)}),this.dispatchEvent(new CustomEvent("closed"))}__accessibleDescriptionRefChanged(e,t,r){!e||!t||(r!==void 0?We(e,"aria-describedby",{newId:r,oldId:this.__oldAccessibleDescriptionRef,fromUser:!0}):t.forEach(a=>{We(e,"aria-describedby",{newId:a.id})}),this.__oldAccessibleDescriptionRef=r)}__setupSlottedButton(e,t){const r=`_${e}Button`,a=`__${e}`;this[r]&&this[r]!==t&&this[r].remove(),t.addEventListener("click",this[a]),this[r]=t}__updateCancelButton(e,t,r,a){e&&(e===this._cancelController.defaultNode&&(e.textContent=t,e.setAttribute("theme",r)),e.toggleAttribute("hidden",!a))}__updateConfirmButton(e,t,r){e&&e===this._confirmController.defaultNode&&(e.textContent=t,e.setAttribute("theme",r))}__updateHeaderNode(e,t){e&&e===this._headerController.defaultNode&&(e.textContent=t)}__updateMessageNodes(e,t){if(e&&e.length>0){const r=e.find(a=>this._messageController.defaultNode&&a===this._messageController.defaultNode.parentElement);r&&(r.firstChild.textContent=t)}}__updateRejectButton(e,t,r,a){e&&(e===this._rejectController.defaultNode&&(e.textContent=t,e.setAttribute("theme",r)),e.toggleAttribute("hidden",!a))}_escPressed(e){e.defaultPrevented||this.__cancel()}__confirm(){this.dispatchEvent(new CustomEvent("confirm")),this.opened=!1}__cancel(){this.dispatchEvent(new CustomEvent("cancel")),this.opened=!1}__reject(){this.dispatchEvent(new CustomEvent("reject")),this.opened=!1}_getAriaLabel(e){return e||"confirmation"}};/**
6029
6029
  * @license
6030
6030
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
6031
6031
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6032
- */class Tf extends If(oe(_i(pe(E)))){static get template(){return k`
6032
+ */class Tf extends Sf(oe(_i(pe(E)))){static get template(){return k`
6033
6033
  <style>
6034
6034
  :host,
6035
6035
  [hidden] {
@@ -6565,7 +6565,7 @@ 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 Of=i=>class extends Is(Ds(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"),Kr(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:Ps(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")}};/**
6568
+ */const Of=i=>class extends Ss(Ds(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"),Kr(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:Ps(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/
@@ -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(Mf);const Nf=":host{display:block;height:100%}",zf=Nf,Vs=class{constructor(i){h.registerInstance(this,i),this.registrationWidgetLoaded=h.createEvent(this,"registrationWidgetLoaded"),this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.host.shadowRoot.prepend(e)},this.setStreamStyling=e=>{if(window.emMessageBus){const t=document.createElement("style");this.stylingSubscription=window.emMessageBus.subscribe(e,r=>{t.innerHTML=r,this.clientStyling=r,this.host.shadowRoot.prepend(t)})}},this.setClientStylingURL=()=>{let e=new URL(this.clientStylingUrl),t=document.createElement("style");fetch(e.href).then(r=>r.text()).then(r=>{t.innerHTML=r,this.clientStyling=r,setTimeout(()=>{this.host.shadowRoot.prepend(t)},1)})},this.handleClick=e=>{this.emitOnClick&&(e.stopPropagation(),window.postMessage({type:`registration${this.name}Clicked`},window.location.href))},this.type="text",this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.validation=void 0,this.options=void 0,this.language=void 0,this.autofilled=void 0,this.tooltip=void 0,this.defaultValue=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.hidePasswordComplexity=!1,this.noValidation=!1,this.clientStyling="",this.clientStylingUrl="",this.dateFormat=void 0,this.translationUrl="",this.emitOnClick=!1,this.twofaDestination=void 0,this.twofaResendIntervalSeconds=60,this.haspostalcodelookup=void 0,this.postalcodelength=void 0,this.addresses=[],this.ignoreCountry=!1,this.enableSouthAfricanMode=void 0,this.pinAttemptsExceeded=void 0,this.mbSource=void 0,this.limitStylingAppends=!1}handleStylingChange(i,e){i!==e&&this.setClientStyling()}handleStylingUrlChange(i,e){i!==e&&this.setClientStylingURL()}connectedCallback(){this.translationUrl&&Gs(this.translationUrl)}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}componentDidLoad(){this.registrationWidgetLoaded.emit(),window.postMessage({type:"registrationWidgetLoaded"},window.location.href),!this.limitStylingAppends&&this.host&&(window.emMessageBus!=null?this.setStreamStyling(`${this.mbSource}.Style`):(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0))}renderInput(){var i;switch((i=this.type)===null||i===void 0?void 0:i.toLowerCase()){case"text":return this.haspostalcodelookup&&this.name==="PostalCode"?h.h("postalcode-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,postalcodelength:this.postalcodelength,addresses:this.addresses,ignoreCountry:this.ignoreCountry}):h.h("text-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,haspostalcodelookup:this.haspostalcodelookup,"enable-south-african-mode":this.enableSouthAfricanMode});case"email":return h.h("email-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"number":return h.h("number-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"checkbox":return h.h("checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,emitValue:this.emitValue,defaultValue:this.defaultValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip});case"checkboxgroup":return h.h("checkbox-group-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options});case"togglecheckbox":return h.h("toggle-checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options,"emit-on-click":this.emitOnClick});case"datetime":return h.h("date-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,dateFormat:this.dateFormat,"emit-on-click":this.emitOnClick,"enable-south-african-mode":this.enableSouthAfricanMode});case"password":return h.h("password-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,hidePasswordComplexity:this.hidePasswordComplexity,"no-validation":this.noValidation,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,"enable-south-african-mode":this.enableSouthAfricanMode});case"radio":return h.h("radio-input",{name:this.name,displayName:this.displayName,optionsGroup:this.options,validation:this.validation,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling});case"tel":return h.h("tel-input",{name:this.name,action:this.action,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,emitValue:this.emitValue,language:this.language,autofilled:this.autofilled,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"dropdown":return h.h("select-input",{name:this.name,action:this.action,defaultValue:this.defaultValue,displayName:this.displayName,options:this.options,validation:this.validation,emitValue:this.emitValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"twofa":return h.h("twofa-input",{name:this.name,displayName:this.displayName,validation:this.validation,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,destination:this.twofaDestination,"resend-interval-seconds":this.twofaResendIntervalSeconds,"enable-south-african-mode":this.enableSouthAfricanMode,"pin-attempts-exceeded":this.pinAttemptsExceeded,"mb-source":this.mbSource});default:return this.displayName&&this.displayName.trim()!==""?h.h("div",{class:"general-non-input",innerHTML:this.displayName}):null}}render(){return h.h(h.Host,{key:"0474aad44033fe0c48473af7938e9ddb77b684e8",class:`general-input--${this.name}`,onClick:this.handleClick},this.renderInput())}get host(){return h.getElement(this)}static get watchers(){return{clientStyling:["handleStylingChange"],clientStylingUrl:["handleStylingUrlChange"]}}};Vs.style=zf;const Lf='*,*::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}',Rf=Lf,Ms=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=e=>{this.value=e.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.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?h.h("div",{class:`number__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"aea370172d0e55d32dc665a1c340c734334e1caf",class:`number__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},h.h("div",{key:"10e16d10b956c5a647bc68ecffbc2eb0b06fa92a",class:"number__wrapper--flex"},h.h("label",{key:"0827d47c7278c6fdf8ebdd1dff03b91c39be6812",class:`number__label ${this.validation.mandatory?"number__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"cb868d01e8555f5e3333240f54d86f0a56641d0f",class:"number__wrapper--relative"},this.tooltip&&h.h("img",{key:"1aa2b16b59f4bfd4b1dadf2641ec6cb4cfc251bf",class:"number__tooltip-icon",src:se,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("input",{key:"365b70a2eb333878d367d1d414ee0e296c91b3ec",ref:e=>this.inputReference=e,type:"number",value:this.defaultValue,readOnly:this.autofilled,id:`${this.name}__input`,class:`number__input ${i}`,pattern:this.validationPattern,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onInput:this.handleInput,onBlur:this.handleBlur}),h.h("small",{key:"a8639df7ef1e98807a7daffc9da4afd347b1c292",class:"number__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Ms.style=Rf;const Ff=`*,
6660
+ `}static get is(){return"vaadin-tabs"}}w(Mf);const Nf=":host{display:block;height:100%}",zf=Nf,Vs=class{constructor(i){h.registerInstance(this,i),this.registrationWidgetLoaded=h.createEvent(this,"registrationWidgetLoaded"),this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.host.shadowRoot.prepend(e)},this.setStreamStyling=e=>{if(window.emMessageBus){const t=document.createElement("style");this.stylingSubscription=window.emMessageBus.subscribe(e,r=>{t.innerHTML=r,this.clientStyling=r,this.host.shadowRoot.prepend(t)})}},this.setClientStylingURL=()=>{let e=new URL(this.clientStylingUrl),t=document.createElement("style");fetch(e.href).then(r=>r.text()).then(r=>{t.innerHTML=r,this.clientStyling=r,setTimeout(()=>{this.host.shadowRoot.prepend(t)},1)})},this.handleClick=e=>{this.emitOnClick&&(e.stopPropagation(),window.postMessage({type:`registration${this.name}Clicked`},window.location.href))},this.type="text",this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.validation=void 0,this.options=void 0,this.language=void 0,this.autofilled=void 0,this.tooltip=void 0,this.defaultValue=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.hidePasswordComplexity=!1,this.noValidation=!1,this.clientStyling="",this.clientStylingUrl="",this.dateFormat=void 0,this.translationUrl="",this.emitOnClick=!1,this.twofaDestination=void 0,this.twofaResendIntervalSeconds=60,this.haspostalcodelookup=void 0,this.postalcodelength=void 0,this.addresses=[],this.ignoreCountry=!1,this.enableSouthAfricanMode=void 0,this.enableManualDateInput=!1,this.pinAttemptsExceeded=void 0,this.mbSource=void 0,this.limitStylingAppends=!1}handleStylingChange(i,e){i!==e&&this.setClientStyling()}handleStylingUrlChange(i,e){i!==e&&this.setClientStylingURL()}connectedCallback(){this.translationUrl&&Gs(this.translationUrl)}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}componentDidLoad(){this.registrationWidgetLoaded.emit(),window.postMessage({type:"registrationWidgetLoaded"},window.location.href),!this.limitStylingAppends&&this.host&&(window.emMessageBus!=null?this.setStreamStyling(`${this.mbSource}.Style`):(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0))}renderInput(){var i;switch((i=this.type)===null||i===void 0?void 0:i.toLowerCase()){case"text":return this.haspostalcodelookup&&this.name==="PostalCode"?h.h("postalcode-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,postalcodelength:this.postalcodelength,addresses:this.addresses,ignoreCountry:this.ignoreCountry}):h.h("text-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,haspostalcodelookup:this.haspostalcodelookup,"enable-south-african-mode":this.enableSouthAfricanMode});case"email":return h.h("email-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"number":return h.h("number-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"checkbox":return h.h("checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,emitValue:this.emitValue,defaultValue:this.defaultValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip});case"checkboxgroup":return h.h("checkbox-group-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options});case"togglecheckbox":return h.h("toggle-checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options,"emit-on-click":this.emitOnClick});case"datetime":return h.h("date-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,dateFormat:this.dateFormat,"emit-on-click":this.emitOnClick,"enable-south-african-mode":this.enableSouthAfricanMode,"enable-manual-date-input":this.enableManualDateInput});case"password":return h.h("password-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,hidePasswordComplexity:this.hidePasswordComplexity,"no-validation":this.noValidation,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,"enable-south-african-mode":this.enableSouthAfricanMode});case"radio":return h.h("radio-input",{name:this.name,displayName:this.displayName,optionsGroup:this.options,validation:this.validation,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling});case"tel":return h.h("tel-input",{name:this.name,action:this.action,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,emitValue:this.emitValue,language:this.language,autofilled:this.autofilled,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"dropdown":return h.h("select-input",{name:this.name,action:this.action,defaultValue:this.defaultValue,displayName:this.displayName,options:this.options,validation:this.validation,emitValue:this.emitValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"twofa":return h.h("twofa-input",{name:this.name,displayName:this.displayName,validation:this.validation,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,destination:this.twofaDestination,"resend-interval-seconds":this.twofaResendIntervalSeconds,"enable-south-african-mode":this.enableSouthAfricanMode,"pin-attempts-exceeded":this.pinAttemptsExceeded,"mb-source":this.mbSource});default:return this.displayName&&this.displayName.trim()!==""?h.h("div",{class:"general-non-input",innerHTML:this.displayName}):null}}render(){return h.h(h.Host,{key:"a40dd0a950fd11ff27bfd9e2304f484d779d1a81",class:`general-input--${this.name}`,onClick:this.handleClick},this.renderInput())}get host(){return h.getElement(this)}static get watchers(){return{clientStyling:["handleStylingChange"],clientStylingUrl:["handleStylingUrlChange"]}}};Vs.style=zf;const Lf='*,*::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}',Rf=Lf,Ms=class{constructor(i){h.registerInstance(this,i),this.sendValidityState=h.createEvent(this,"sendValidityState"),this.sendInputValue=h.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=e=>{this.value=e.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.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?h.h("div",{class:`number__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),h.h("div",{key:"aea370172d0e55d32dc665a1c340c734334e1caf",class:`number__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},h.h("div",{key:"10e16d10b956c5a647bc68ecffbc2eb0b06fa92a",class:"number__wrapper--flex"},h.h("label",{key:"0827d47c7278c6fdf8ebdd1dff03b91c39be6812",class:`number__label ${this.validation.mandatory?"number__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),h.h("div",{key:"cb868d01e8555f5e3333240f54d86f0a56641d0f",class:"number__wrapper--relative"},this.tooltip&&h.h("img",{key:"1aa2b16b59f4bfd4b1dadf2641ec6cb4cfc251bf",class:"number__tooltip-icon",src:se,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),h.h("input",{key:"365b70a2eb333878d367d1d414ee0e296c91b3ec",ref:e=>this.inputReference=e,type:"number",value:this.defaultValue,readOnly:this.autofilled,id:`${this.name}__input`,class:`number__input ${i}`,pattern:this.validationPattern,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onInput:this.handleInput,onBlur:this.handleBlur}),h.h("small",{key:"a8639df7ef1e98807a7daffc9da4afd347b1c292",class:"number__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Ms.style=Rf;const Ff=`*,
6661
6661
  *::before,
6662
6662
  *::after {
6663
6663
  padding: 0;
@@ -6955,4 +6955,4 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6955
6955
  :host {
6956
6956
  --emw-skeleton-circle-size: ${this.stylingValue.size};
6957
6957
  }
6958
- `;break;default:i=""}return h.h(h.Host,{key:"c2a2650acd416962a2bc4e1a7ee18bc6d8e2def8"},h.h("style",{key:"9bd7fc1f9e9ed9f17735a7b72fce6f09696f5e19"},i),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};Us.style=i_;exports.pam_change_password=Ws.PamChangePassword;exports.checkbox_group_input=Eo;exports.checkbox_input=So;exports.date_input=Uo;exports.email_input=qo;exports.general_input=Vs;exports.number_input=Ms;exports.password_input=Ns;exports.postalcode_input=zs;exports.radio_input=Ls;exports.select_input=Rs;exports.tel_input=Fs;exports.text_input=$s;exports.toggle_checkbox_input=Hs;exports.twofa_input=Bs;exports.ui_skeleton=Us;
6958
+ `;break;default:i=""}return h.h(h.Host,{key:"c2a2650acd416962a2bc4e1a7ee18bc6d8e2def8"},h.h("style",{key:"9bd7fc1f9e9ed9f17735a7b72fce6f09696f5e19"},i),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};Us.style=i_;exports.pam_change_password=Ws.PamChangePassword;exports.checkbox_group_input=Eo;exports.checkbox_input=Io;exports.date_input=Uo;exports.email_input=qo;exports.general_input=Vs;exports.number_input=Ms;exports.password_input=Ns;exports.postalcode_input=zs;exports.radio_input=Ls;exports.select_input=Rs;exports.tel_input=Fs;exports.text_input=$s;exports.toggle_checkbox_input=Hs;exports.twofa_input=Bs;exports.ui_skeleton=Us;