@everymatrix/player-account-controller-nd 1.59.2 → 1.59.99

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 (166) hide show
  1. package/components/{GeneralLogout-DKq7aXpj.cjs → GeneralLogout-BjsDUNrm.cjs} +4 -4
  2. package/components/{GeneralLogout-4it4FG1e.js → GeneralLogout-D-SNAWMX.js} +110 -99
  3. package/components/{GeneralLogout-CeysydbF.js → GeneralLogout-mKknRJlq.js} +118 -107
  4. package/components/{PlayerAccountBettingHistory-6L3UumfC.js → PlayerAccountBettingHistory-B65ODj4i.js} +1 -1
  5. package/components/{PlayerAccountBettingHistory-Ba0rbzAt.cjs → PlayerAccountBettingHistory-Bu3VS2Sg.cjs} +1 -1
  6. package/components/{PlayerAccountBettingHistory-CITAS_tU.js → PlayerAccountBettingHistory-D5R8TtVb.js} +1 -1
  7. package/components/{PlayerAccountBiometrics-DOKW7OSb.js → PlayerAccountBiometrics-1g9245j6.js} +1 -1
  8. package/components/{PlayerAccountBiometrics-Be6QWwR6.js → PlayerAccountBiometrics-Dke9scx2.js} +1 -1
  9. package/components/{PlayerAccountBiometrics-D3SdfZAk.cjs → PlayerAccountBiometrics-DvJlyQ8z.cjs} +1 -1
  10. package/components/{PlayerAccountClosureNd-Ba7qRwie.cjs → PlayerAccountClosureNd-B4GnQQHa.cjs} +1 -1
  11. package/components/{PlayerAccountClosureNd-DmAOX_fd.js → PlayerAccountClosureNd-CH8UCD0A.js} +1 -1
  12. package/components/{PlayerAccountClosureNd-rzbr78tt.js → PlayerAccountClosureNd-DtDZNFDs.js} +1 -1
  13. package/components/PlayerAccountControllerNd-4s7xJ5WW.cjs +1 -0
  14. package/components/PlayerAccountControllerNd-B-wmDyLr.js +7430 -0
  15. package/components/{PlayerAccountControllerNd-DsScUGqI.js → PlayerAccountControllerNd-Cda3JHRm.js} +2307 -2243
  16. package/components/PlayerAccountControllerNd-Cgci2Fcz.cjs +1 -0
  17. package/components/{PlayerAccountControllerNd-el5m6i4n.js → PlayerAccountControllerNd-Cgdz9EHx.js} +2335 -2271
  18. package/components/PlayerAccountControllerNd-D0YcM-rD.js +7413 -0
  19. package/components/PlayerAccountControllerNd-HN4PMQqw.cjs +1 -0
  20. package/components/PlayerAccountControllerNd-PZ8-RG-h.js +7430 -0
  21. package/components/PlayerAccountControllerNd-iBO4kr6j.js +7413 -0
  22. package/components/{PlayerAccountGamingLimits-ByuUh2TU.js → PlayerAccountGamingLimits-CPx-vfQw.js} +2 -2
  23. package/components/{PlayerAccountGamingLimits-FIGZjiiE.cjs → PlayerAccountGamingLimits-UmFJS4yG.cjs} +1 -1
  24. package/components/{PlayerAccountGamingLimits-Bk5wHTwY.js → PlayerAccountGamingLimits-geiSuCGE.js} +2 -2
  25. package/components/{PlayerAccountGamingLimitsConfirmationModal-CyALQICB.cjs → PlayerAccountGamingLimitsConfirmationModal-BTGWvZ_H.cjs} +1 -1
  26. package/components/{PlayerAccountGamingLimitsConfirmationModal-CNYtoEVr.js → PlayerAccountGamingLimitsConfirmationModal-CIMWBU9F.js} +1 -1
  27. package/components/{PlayerAccountGamingLimitsConfirmationModal-orqpWBGG.js → PlayerAccountGamingLimitsConfirmationModal-CJvAbSXA.js} +1 -1
  28. package/components/{PlayerAccountGamingLimitsGroupEdit-BaorReGW.js → PlayerAccountGamingLimitsGroupEdit-BBhaC0tE.js} +4 -4
  29. package/components/{PlayerAccountGamingLimitsGroupEdit-BpaOoTGu.cjs → PlayerAccountGamingLimitsGroupEdit-DWXrW8rz.cjs} +2 -2
  30. package/components/{PlayerAccountGamingLimitsGroupEdit-CTpK2bHP.js → PlayerAccountGamingLimitsGroupEdit-DxCKKvtt.js} +4 -4
  31. package/components/{PlayerAccountGamingLimitsHistory2Nd-BXZnq3wo.cjs → PlayerAccountGamingLimitsHistory2Nd-CT3BWhmN.cjs} +1 -1
  32. package/components/{PlayerAccountGamingLimitsHistory2Nd-2-WDm2bq.js → PlayerAccountGamingLimitsHistory2Nd-CYh5FnDV.js} +1 -1
  33. package/components/{PlayerAccountGamingLimitsHistory2Nd-7fOlRCey.js → PlayerAccountGamingLimitsHistory2Nd-y1qwR7nl.js} +1 -1
  34. package/components/{PlayerAccountGamingLimitsInfoCard-DlJXsDqV.cjs → PlayerAccountGamingLimitsInfoCard-7dQquqQ4.cjs} +1 -1
  35. package/components/{PlayerAccountGamingLimitsInfoCard-CmZ-aPgC.js → PlayerAccountGamingLimitsInfoCard-Cc-JLiZF.js} +3 -3
  36. package/components/{PlayerAccountGamingLimitsInfoCard-jkLmhvDf.js → PlayerAccountGamingLimitsInfoCard-Dm9hSuFC.js} +3 -3
  37. package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-2aUOAuM6.cjs → PlayerAccountGamingLimitsPage2Gm16Nd-CuoVvIEJ.cjs} +1 -1
  38. package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-Hxw4dGQn.js → PlayerAccountGamingLimitsPage2Gm16Nd-DA1By__G.js} +2 -2
  39. package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-C1OaS72g.js → PlayerAccountGamingLimitsPage2Gm16Nd-DMdM3i1l.js} +2 -2
  40. package/components/{PlayerAccountGamingLimitsPopup-Dbr-uHeX.cjs → PlayerAccountGamingLimitsPopup-Bq6g8_Ex.cjs} +1 -1
  41. package/components/{PlayerAccountGamingLimitsPopup-AuWDAmQP.js → PlayerAccountGamingLimitsPopup-CLyTPF2L.js} +1 -1
  42. package/components/{PlayerAccountGamingLimitsPopup-CwqIGi2v.js → PlayerAccountGamingLimitsPopup-DycV-u3W.js} +1 -1
  43. package/components/{PlayerAccountGamingLimitsWrapper2Nd-8YmBMC3v.js → PlayerAccountGamingLimitsWrapper2Nd-ClbwM2gG.js} +3 -3
  44. package/components/{PlayerAccountGamingLimitsWrapper2Nd-BUsoXkMn.cjs → PlayerAccountGamingLimitsWrapper2Nd-D5Yg91jL.cjs} +1 -1
  45. package/components/{PlayerAccountGamingLimitsWrapper2Nd-CZlji5Yr.js → PlayerAccountGamingLimitsWrapper2Nd-j3mecOLN.js} +3 -3
  46. package/components/{PlayerAccountGeneralConfirmationModal-DYhGjzZF.js → PlayerAccountGeneralConfirmationModal-4w5ypHAs.js} +1 -1
  47. package/components/{PlayerAccountGeneralConfirmationModal-BJ3S0RLL.cjs → PlayerAccountGeneralConfirmationModal-DoognqGf.cjs} +1 -1
  48. package/components/{PlayerAccountGeneralConfirmationModal-mUHuj-5B.js → PlayerAccountGeneralConfirmationModal-u_yQVW36.js} +1 -1
  49. package/components/{PlayerAccountMenuNd-BeGAjc3q.js → PlayerAccountMenuNd-D-fAorcB.js} +3 -3
  50. package/components/{PlayerAccountMenuNd-z28QxKXk.js → PlayerAccountMenuNd-DTmfUkDR.js} +3 -3
  51. package/components/{PlayerAccountMenuNd-CCPMD49m.cjs → PlayerAccountMenuNd-pBoYi2d7.cjs} +1 -1
  52. package/components/{PlayerAccountModal-DhsJbk1o.js → PlayerAccountModal-CJAW5eai.js} +1 -1
  53. package/components/{PlayerAccountModal-RfCUFEKE.js → PlayerAccountModal-DzIuV3KN.js} +1 -1
  54. package/components/{PlayerAccountModal-tginaXbZ.cjs → PlayerAccountModal-zI2QLAL1.cjs} +1 -1
  55. package/components/{PlayerAccountNotifications-9IZXsnRq.js → PlayerAccountNotifications-BECefhID.js} +2 -2
  56. package/components/{PlayerAccountNotifications-CI42A39-.js → PlayerAccountNotifications-BMdZu0IH.js} +2 -2
  57. package/components/{PlayerAccountNotifications-BLsxWrq2.cjs → PlayerAccountNotifications-BxJEa-bd.cjs} +1 -1
  58. package/components/{PlayerAccountSelfExclusionNd-D1ZE5YnA.js → PlayerAccountSelfExclusionNd-8dbQPzKe.js} +2 -2
  59. package/components/{PlayerAccountSelfExclusionNd-D5HRQcqt.js → PlayerAccountSelfExclusionNd-CfXWzZaQ.js} +2 -2
  60. package/components/{PlayerAccountSelfExclusionNd-BwVKiP0r.cjs → PlayerAccountSelfExclusionNd-gT5IXyXv.cjs} +1 -1
  61. package/components/{PlayerAccountTimeout-BqQ8Dig1.js → PlayerAccountTimeout-CyvXsM5p.js} +4 -4
  62. package/components/{PlayerAccountTimeout-Oy-er_24.js → PlayerAccountTimeout-DmUdmLQr.js} +4 -4
  63. package/components/{PlayerAccountTimeout-ChLVrZ1_.cjs → PlayerAccountTimeout-v5URpImy.cjs} +1 -1
  64. package/components/{PlayerActiveBonuses-6gu0ilHo.js → PlayerActiveBonuses-2M__yMJf.js} +2 -2
  65. package/components/{PlayerActiveBonuses-CwzErvnX.js → PlayerActiveBonuses-BXlIZiVB.js} +2 -2
  66. package/components/{PlayerActiveBonuses-DbsciRwF.cjs → PlayerActiveBonuses-CBqsWQfE.cjs} +1 -1
  67. package/components/{PlayerBonusCard-BzDP362v.cjs → PlayerBonusCard-CJXjuXsU.cjs} +1 -1
  68. package/components/{PlayerBonusCard--oHCcpOb.js → PlayerBonusCard-CtXP9UPy.js} +2 -2
  69. package/components/{PlayerBonusCard-D3VZ0SAd.js → PlayerBonusCard-sfjhWo7d.js} +2 -2
  70. package/components/{PlayerBonusHistory-Bg9FG_wq.js → PlayerBonusHistory-CSz-1_b2.js} +4 -4
  71. package/components/{PlayerBonusHistory-BGgOFk8A.js → PlayerBonusHistory-DPoWYYcE.js} +4 -4
  72. package/components/{PlayerBonusHistory-BaPqLAQG.cjs → PlayerBonusHistory-DvzXMZuA.cjs} +1 -1
  73. package/components/{PlayerChangePassword-DLhHjRp1.js → PlayerChangePassword-Ddfah5-0.js} +1 -1
  74. package/components/{PlayerChangePassword-BekJt2EW.js → PlayerChangePassword-Dtr2n1Et.js} +1 -1
  75. package/components/{PlayerChangePassword-DZ0zUct-.cjs → PlayerChangePassword-awaQVsiP.cjs} +1 -1
  76. package/components/{PlayerDeposit-BwW_MMqP.js → PlayerDeposit-CqqQuB6-.js} +1 -1
  77. package/components/{PlayerDeposit-CJ23PX1y.js → PlayerDeposit-DzJLjkJJ.js} +1 -1
  78. package/components/{PlayerDeposit-2rXfB2O5.cjs → PlayerDeposit-_oIOMh8l.cjs} +1 -1
  79. package/components/{PlayerGamingHistory-CWs-tUkY.cjs → PlayerGamingHistory-4FBAJVJ3.cjs} +1 -1
  80. package/components/{PlayerGamingHistory-0TYR6SEn.js → PlayerGamingHistory-BawWibCV.js} +4 -4
  81. package/components/{PlayerGamingHistory-CntwL7Fk.js → PlayerGamingHistory-K0Uvi2fF.js} +4 -4
  82. package/components/{PlayerPendingWithdrawals-ki_Gjm_H.js → PlayerPendingWithdrawals-B5LftQI0.js} +1 -1
  83. package/components/{PlayerPendingWithdrawals-B3LxQtqC.js → PlayerPendingWithdrawals-BXngse4L.js} +1 -1
  84. package/components/{PlayerPendingWithdrawals-UG-bN1ca.cjs → PlayerPendingWithdrawals-aaHugNLD.cjs} +1 -1
  85. package/components/PlayerProfileInfo-B1A0Xarz.cjs +1 -0
  86. package/components/PlayerProfileInfo-BmyCYGh7.js +2087 -0
  87. package/components/PlayerProfileInfo-uGClCGHq.js +2059 -0
  88. package/components/{PlayerRealityCheck-BmVSMTSf.cjs → PlayerRealityCheck-Ch955fLs.cjs} +1 -1
  89. package/components/{PlayerRealityCheck-BQCOhNTa.js → PlayerRealityCheck-DHGjsEc_.js} +2 -2
  90. package/components/{PlayerRealityCheck-CTuOdJqC.js → PlayerRealityCheck-Db8wL8P8.js} +2 -2
  91. package/components/{PlayerTransactionHistory-DSVdbdHO.js → PlayerTransactionHistory-BdX1ph_m.js} +1 -1
  92. package/components/{PlayerTransactionHistory-DkLL3JLy.js → PlayerTransactionHistory-CQ3fEpfj.js} +1 -1
  93. package/components/{PlayerTransactionHistory-U2CncC4r.cjs → PlayerTransactionHistory-Dff51WQG.cjs} +1 -1
  94. package/components/{PlayerWithdrawal-CuYoN_mb.js → PlayerWithdrawal-8DAmymCW.js} +1 -1
  95. package/components/{PlayerWithdrawal-CsPPu5bX.cjs → PlayerWithdrawal-DdPBGufW.cjs} +1 -1
  96. package/components/{PlayerWithdrawal-Dq9rMCnK.js → PlayerWithdrawal-DvDjalE_.js} +1 -1
  97. package/es2015/player-account-controller-nd.cjs +1 -1
  98. package/es2015/player-account-controller-nd.js +1 -1
  99. package/esnext/player-account-controller-nd.js +1 -1
  100. package/package.json +2 -2
  101. package/stencil/checkbox-group-input_9-C7zEH4Cn.js +3883 -0
  102. package/stencil/checkbox-group-input_9-CMfQeYlH.cjs +2 -0
  103. package/stencil/checkbox-group-input_9-OVj7AW5S.js +3883 -0
  104. package/stencil/general-input-BlFYbInU.cjs +4546 -0
  105. package/stencil/general-input-C7B1PVb4.js +12201 -0
  106. package/stencil/general-input-DoSeJn3k.js +12201 -0
  107. package/stencil/index-9c0f6c58-B94eMODu.js +576 -0
  108. package/stencil/index-9c0f6c58-BD-Fj_Yj.cjs +1 -0
  109. package/stencil/index-9c0f6c58-CUIs9poD.js +549 -0
  110. package/stencil/index-9c0f6c58-CyhtHCyO.js +576 -0
  111. package/stencil/index-9c0f6c58-D-L9XUok.js +549 -0
  112. package/stencil/index-9c0f6c58-D55uro-T.cjs +1 -0
  113. package/stencil/{index-9cd44522-C5N2LdVm.js → index-9cd44522-BOHK5Ehb.js} +4 -4
  114. package/stencil/{index-9cd44522-BbKqQXqL.js → index-9cd44522-C8s3TvoU.js} +4 -4
  115. package/stencil/{index-9cd44522-QIMe52Dh.cjs → index-9cd44522-D9raG3xx.cjs} +1 -1
  116. package/stencil/index-b2193545-B240yE4M.js +503 -0
  117. package/stencil/index-b2193545-CJQ4H9NG.cjs +1 -0
  118. package/stencil/index-b2193545-q1mvaES7.js +519 -0
  119. package/stencil/password-input_2-5nC89CMj.js +311 -0
  120. package/stencil/password-input_2-DJSgcWve.js +311 -0
  121. package/stencil/password-input_2-ZOEOuaOe.cjs +193 -0
  122. package/stencil/{player-change-password-gm2-039e300e-BU9mX4ix.cjs → player-change-password-gm2-039e300e-C-kbOfS1.cjs} +1 -1
  123. package/stencil/{player-change-password-gm2-039e300e-1NkfHZ6r.js → player-change-password-gm2-039e300e-C_f58yBE.js} +1 -1
  124. package/stencil/{player-change-password-gm2-039e300e-BLQGT3AW.js → player-change-password-gm2-039e300e-D4KfL3dW.js} +1 -1
  125. package/stencil/{player-change-password-gm2-E5xKJgy3.js → player-change-password-gm2-3aRR8E4W.js} +1 -1
  126. package/stencil/{player-change-password-gm2-Cyx-9oVQ.js → player-change-password-gm2-BJ2Ur7Zx.js} +1 -1
  127. package/stencil/{player-change-password-gm2-BWRiCTIP.cjs → player-change-password-gm2-CHK-mhQ9.cjs} +1 -1
  128. package/stencil/player-kyc-verification-BDsLC0dz.js +916 -0
  129. package/stencil/player-kyc-verification-C1kM6V2E.js +894 -0
  130. package/stencil/player-kyc-verification-Cgr9LJUE.js +894 -0
  131. package/stencil/player-kyc-verification-Cw4ee6aW.js +916 -0
  132. package/stencil/player-kyc-verification-L-Gd_xeu.cjs +180 -0
  133. package/stencil/player-kyc-verification-tvMdQJ0Y.cjs +180 -0
  134. package/stencil/{toggle-checkbox-input-3f7U98vC.js → toggle-checkbox-input-BRL1Xahc.js} +23 -9
  135. package/stencil/toggle-checkbox-input-CPDZs55S.cjs +1 -0
  136. package/stencil/{toggle-checkbox-input-DDDgLFw4.js → toggle-checkbox-input-cLWFox9n.js} +23 -9
  137. package/stencil/{ui-skeleton-T4HYbNcC.js → ui-skeleton-BacC4KYY.js} +8 -8
  138. package/stencil/ui-skeleton-C_u2sCMV.cjs +1 -0
  139. package/stencil/{ui-skeleton-DT0OMDC6.js → ui-skeleton-DuRhzyE8.js} +4 -4
  140. package/stencil/ui-skeleton-ea659b95-B0Wm9BdQ.js +152 -0
  141. package/stencil/ui-skeleton-ea659b95-BBQBvLes.cjs +73 -0
  142. package/stencil/ui-skeleton-ea659b95-DEnEjYcS.js +152 -0
  143. package/components/PlayerAccountControllerNd-BfM3xK9T.cjs +0 -1
  144. package/components/PlayerProfileInfo-CNv-9pT9.js +0 -1823
  145. package/components/PlayerProfileInfo-DLth9JMy.cjs +0 -1
  146. package/components/PlayerProfileInfo-DV9mn7sN.js +0 -1806
  147. package/stencil/checkbox-group-input_9-BkT4UtkZ.js +0 -13282
  148. package/stencil/checkbox-group-input_9-CDYbpnEQ.cjs +0 -2045
  149. package/stencil/checkbox-group-input_9-CMQLu-qB.js +0 -13248
  150. package/stencil/general-input--MP17Hyz.cjs +0 -1
  151. package/stencil/general-input-BqgyG6fv.js +0 -48
  152. package/stencil/general-input-V-ZuyFa5.js +0 -48
  153. package/stencil/index-ae04a8b1-D4wvtXTw.cjs +0 -1
  154. package/stencil/index-ae04a8b1-fpBaOn88.js +0 -516
  155. package/stencil/index-ae04a8b1-ixlRj3zC.js +0 -532
  156. package/stencil/password-input_2-C_mvPSDp.js +0 -589
  157. package/stencil/password-input_2-DeRFrP9K.cjs +0 -105
  158. package/stencil/password-input_2-g7twAnPT.js +0 -589
  159. package/stencil/toggle-checkbox-input-DXFebhBM.cjs +0 -1
  160. package/stencil/ui-skeleton-BC4mw1ae.cjs +0 -1
  161. package/stencil/ui-skeleton-a642cced-B8H73O_q.cjs +0 -1
  162. package/stencil/ui-skeleton-a642cced-Ba-weZ4g.js +0 -122
  163. package/stencil/ui-skeleton-a642cced-DhjmNsN7.js +0 -122
  164. package/stencil/vaadin-button-mixin-e8c3f355-BdntioNA.cjs +0 -2391
  165. package/stencil/vaadin-button-mixin-e8c3f355-DON-rAuy.js +0 -10228
  166. package/stencil/vaadin-button-mixin-e8c3f355-DQ5UgwNf.js +0 -10302
@@ -0,0 +1,3883 @@
1
+ import { r as z, c as H, h as l, g as Te } from "./index-9cd44522-BOHK5Ehb.js";
2
+ import { t as _ } from "./locale-ioQf6ZrW.js";
3
+ import { t as G } from "./tooltipIcon-ee9760a8-BCCb4EU-.js";
4
+ const at = '*,*::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, #D0046C))}.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, #D0046C))}.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, #D0046C));box-shadow:none}', nt = at, ot = class {
5
+ constructor(t) {
6
+ z(this, t), this.sendValidityState = H(this, "sendValidityState", 7), this.sendInputValue = H(this, "sendInputValue", 7), this.value = null, this.setClientStyling = () => {
7
+ let i = document.createElement("style");
8
+ i.innerHTML = this.clientStyling, this.stylingContainer.prepend(i);
9
+ }, 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 = [];
10
+ }
11
+ handleStylingChange(t, i) {
12
+ t !== i && this.setClientStyling();
13
+ }
14
+ validityChanged() {
15
+ this.validityStateHandler({ valid: this.isValid, name: this.name }), this.emitValue == !0 && this.valueHandler({ name: this.name, value: this.value, type: "checkboxgroup" });
16
+ }
17
+ setValue() {
18
+ this.value = this.options.reduce((t, i) => (t[i.name] = this.selectedValues.includes(i.name), t), {}), this.emitValueHandler(!0);
19
+ }
20
+ validityStateHandler(t) {
21
+ this.sendValidityState.emit(t);
22
+ }
23
+ emitValueHandler(t) {
24
+ t == !0 && this.isValid && this.valueHandler({ name: this.name, value: this.value, type: "checkboxgroup" });
25
+ }
26
+ valueHandler(t) {
27
+ this.sendInputValue.emit(t);
28
+ }
29
+ handleClickOutside(t) {
30
+ t.composedPath()[0] !== this.tooltipIconReference && t.composedPath()[0] !== this.tooltipReference && (this.showTooltip = !1);
31
+ }
32
+ componentDidRender() {
33
+ !this.limitStylingAppends && this.stylingContainer && (this.clientStyling && this.setClientStyling(), this.limitStylingAppends = !0);
34
+ }
35
+ componentDidLoad() {
36
+ this.inputReference = this.element.shadowRoot.querySelector("input"), this.isValid = this.setValidity(), this.defaultValue && (this.selectedValues = this.options.map((t) => t.name), this.value = this.defaultValue, this.valueHandler({ name: this.name, value: this.value }));
37
+ }
38
+ setValidity() {
39
+ return this.inputReference.validity.valid;
40
+ }
41
+ setErrorMessage() {
42
+ if (this.inputReference.validity.valueMissing)
43
+ return _("requiredError", this.language);
44
+ }
45
+ renderTooltip() {
46
+ return this.showTooltip ? l("div", { class: `checkboxgroup__tooltip ${this.showTooltip ? "visible" : ""}`, ref: (t) => this.tooltipReference = t, innerHTML: this.tooltip }) : null;
47
+ }
48
+ handleParentCheckbox(t) {
49
+ this.selectedValues = t.target.checked ? this.options.map((i) => i.name) : [];
50
+ }
51
+ renderLabel() {
52
+ return l("label", { class: "checkbox__label", htmlFor: `${this.name}__input`, slot: "label" }, l("div", { class: "checkbox__label-text", innerHTML: `${this.displayName} ${this.validation.mandatory ? "*" : ""}` }));
53
+ }
54
+ render() {
55
+ return l("div", { key: "4b966adce4d35ccfc4141acea9c8f26a46590b5d", class: `checkboxgroup__wrapper ${this.name}__input`, ref: (t) => this.stylingContainer = t }, l("div", { key: "82f139c6bacc6b29ffd47005546b47c33bb135eb", class: "checkboxgroup__wrapper--flex" }, l("vaadin-checkbox", { key: "bf99c267f52fa57bd0af94d2465ad18b11079be5", 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: (t) => this.handleParentCheckbox(t) }, this.renderLabel()), this.tooltip && l("img", { key: "84ec417513f4d22534c7106bbef7be0797e42214", class: "checkboxgroup__tooltip-icon", src: G, alt: "", ref: (t) => this.tooltipIconReference = t, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()), l("small", { key: "526a1dc20a7c7d0322f959402ba359f0b6ef52e0", class: "checkboxgroup__error-message" }, this.errorMessage), l("vaadin-checkbox-group", { key: "ac70eaa0923af84472b35b90f4127a173166a7ce", theme: "vertical", value: this.selectedValues, "on-value-changed": (t) => {
56
+ this.selectedValues = t.detail.value;
57
+ } }, this.options.map((t) => l("vaadin-checkbox", { class: "checkbox__input", name: t.name, value: t.name, label: t.displayName }))));
58
+ }
59
+ get element() {
60
+ return Te(this);
61
+ }
62
+ static get watchers() {
63
+ return {
64
+ clientStyling: ["handleStylingChange"],
65
+ isValid: ["validityChanged"],
66
+ selectedValues: ["setValue"],
67
+ emitValue: ["emitValueHandler"]
68
+ };
69
+ }
70
+ };
71
+ ot.style = nt;
72
+ const st = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.checkbox{font-family:"Roboto";font-style:normal}.checkbox__wrapper{display:flex;gap:10px;position:relative;align-items:baseline}.checkbox__wrapper--relative{position:relative}.checkbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.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;cursor:pointer;padding:0}.checkbox__label-text{font-size:16px}.checkbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.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}', lt = st, ut = class {
73
+ constructor(t) {
74
+ z(this, t), this.sendValidityState = H(this, "sendValidityState", 7), this.sendInputValue = H(this, "sendInputValue", 7), this.value = "", this.setClientStyling = () => {
75
+ let i = document.createElement("style");
76
+ i.innerHTML = this.clientStyling, this.stylingContainer.prepend(i);
77
+ }, 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;
78
+ }
79
+ handleStylingChange(t, i) {
80
+ t !== i && this.setClientStyling();
81
+ }
82
+ validityChanged() {
83
+ this.validityStateHandler({ valid: this.isValid, name: this.name }), this.emitValue == !0 && this.valueHandler({ name: this.name, value: this.value });
84
+ }
85
+ validityStateHandler(t) {
86
+ this.sendValidityState.emit(t);
87
+ }
88
+ emitValueHandler(t) {
89
+ t == !0 && this.isValid && this.valueHandler({ name: this.name, value: this.value });
90
+ }
91
+ valueHandler(t) {
92
+ this.sendInputValue.emit(t);
93
+ }
94
+ handleClickOutside(t) {
95
+ t.composedPath()[0] !== this.tooltipIconReference && t.composedPath()[0] !== this.tooltipReference && (this.showTooltip = !1);
96
+ }
97
+ componentDidRender() {
98
+ !this.limitStylingAppends && this.stylingContainer && (this.clientStyling && this.setClientStyling(), this.limitStylingAppends = !0);
99
+ }
100
+ componentDidLoad() {
101
+ this.defaultValue && (this.value = this.defaultValue, this.valueHandler({ name: this.name, value: this.value }));
102
+ }
103
+ handleClick() {
104
+ this.value = this.inputReference.checked.toString(), this.errorMessage = this.setErrorMessage(), this.isValid = this.setValidity(), this.emitValueHandler(!0);
105
+ }
106
+ setValidity() {
107
+ return this.inputReference.validity.valid;
108
+ }
109
+ setErrorMessage() {
110
+ if (this.inputReference.validity.valueMissing)
111
+ return _("requiredError", this.language);
112
+ }
113
+ renderLabel() {
114
+ return l("label", { class: "checkbox__label", htmlFor: `${this.name}__input` }, l("div", { class: "checkbox__label-text", innerHTML: `${this.displayName} ${this.validation.mandatory ? "*" : ""}` }));
115
+ }
116
+ renderTooltip() {
117
+ return this.showTooltip ? l("div", { class: `checkbox__tooltip ${this.showTooltip ? "visible" : ""}`, ref: (t) => this.tooltipReference = t, innerHTML: this.tooltip }) : null;
118
+ }
119
+ render() {
120
+ return l("div", { key: "8c80c955bb052558165a4c5b1020d0582ed0af36", class: `checkbox__wrapper ${this.name}__input`, ref: (t) => this.stylingContainer = t }, l("input", { key: "89401d543cb30b72ec614b0cd4e95b2e82b2522d", class: "checkbox__input", type: "checkbox", id: `${this.name}__input`, ref: (t) => this.inputReference = t, name: this.name, checked: this.defaultValue === "true", readOnly: this.autofilled, required: this.validation.mandatory, value: this.value, onClick: () => this.handleClick() }), this.renderLabel(), l("small", { key: "d007d8c02dd014a363e2fcc1a0e8df6ffda34bcb", class: "checkbox__error-message" }, this.errorMessage), l("div", { key: "c511c07684173359663d4907371efb82289f0433", class: "checkbox__wrapper--relative" }, this.tooltip && l("img", { key: "dd263ce86efd89f34078f3cc24729f43f40e89a6", class: "checkbox__tooltip-icon", src: G, alt: "", ref: (t) => this.tooltipIconReference = t, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip()));
121
+ }
122
+ static get watchers() {
123
+ return {
124
+ clientStyling: ["handleStylingChange"],
125
+ isValid: ["validityChanged"],
126
+ emitValue: ["emitValueHandler"]
127
+ };
128
+ }
129
+ };
130
+ ut.style = lt;
131
+ function B(t) {
132
+ "@babel/helpers - typeof";
133
+ return B = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(i) {
134
+ return typeof i;
135
+ } : function(i) {
136
+ return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
137
+ }, B(t);
138
+ }
139
+ function M(t, i) {
140
+ if (i.length < t)
141
+ throw new TypeError(t + " argument" + (t > 1 ? "s" : "") + " required, but only " + i.length + " present");
142
+ }
143
+ function dt(t) {
144
+ return M(1, arguments), t instanceof Date || B(t) === "object" && Object.prototype.toString.call(t) === "[object Date]";
145
+ }
146
+ function E(t) {
147
+ M(1, arguments);
148
+ var i = Object.prototype.toString.call(t);
149
+ return t instanceof Date || B(t) === "object" && i === "[object Date]" ? new Date(t.getTime()) : typeof t == "number" || i === "[object Number]" ? new Date(t) : ((typeof t == "string" || i === "[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)), /* @__PURE__ */ new Date(NaN));
150
+ }
151
+ function ct(t) {
152
+ if (M(1, arguments), !dt(t) && typeof t != "number")
153
+ return !1;
154
+ var i = E(t);
155
+ return !isNaN(Number(i));
156
+ }
157
+ function R(t) {
158
+ if (t === null || t === !0 || t === !1)
159
+ return NaN;
160
+ var i = Number(t);
161
+ return isNaN(i) ? i : i < 0 ? Math.ceil(i) : Math.floor(i);
162
+ }
163
+ function ht(t, i) {
164
+ M(2, arguments);
165
+ var r = E(t).getTime(), a = R(i);
166
+ return new Date(r + a);
167
+ }
168
+ function qe(t, i) {
169
+ M(2, arguments);
170
+ var r = R(i);
171
+ return ht(t, -r);
172
+ }
173
+ var ft = 864e5;
174
+ function pt(t) {
175
+ M(1, arguments);
176
+ var i = E(t), r = i.getTime();
177
+ i.setUTCMonth(0, 1), i.setUTCHours(0, 0, 0, 0);
178
+ var a = i.getTime(), e = r - a;
179
+ return Math.floor(e / ft) + 1;
180
+ }
181
+ function ie(t) {
182
+ M(1, arguments);
183
+ var i = 1, r = E(t), a = r.getUTCDay(), e = (a < i ? 7 : 0) + a - i;
184
+ return r.setUTCDate(r.getUTCDate() - e), r.setUTCHours(0, 0, 0, 0), r;
185
+ }
186
+ function Ae(t) {
187
+ M(1, arguments);
188
+ var i = E(t), r = i.getUTCFullYear(), a = /* @__PURE__ */ new Date(0);
189
+ a.setUTCFullYear(r + 1, 0, 4), a.setUTCHours(0, 0, 0, 0);
190
+ var e = ie(a), o = /* @__PURE__ */ new Date(0);
191
+ o.setUTCFullYear(r, 0, 4), o.setUTCHours(0, 0, 0, 0);
192
+ var n = ie(o);
193
+ return i.getTime() >= e.getTime() ? r + 1 : i.getTime() >= n.getTime() ? r : r - 1;
194
+ }
195
+ function vt(t) {
196
+ M(1, arguments);
197
+ var i = Ae(t), r = /* @__PURE__ */ new Date(0);
198
+ r.setUTCFullYear(i, 0, 4), r.setUTCHours(0, 0, 0, 0);
199
+ var a = ie(r);
200
+ return a;
201
+ }
202
+ var mt = 6048e5;
203
+ function Ne(t) {
204
+ M(1, arguments);
205
+ var i = E(t), r = ie(i).getTime() - vt(i).getTime();
206
+ return Math.round(r / mt) + 1;
207
+ }
208
+ var gt = {};
209
+ function re() {
210
+ return gt;
211
+ }
212
+ function ee(t, i) {
213
+ var r, a, e, o, n, s, c, h;
214
+ M(1, arguments);
215
+ var g = re(), y = R((r = (a = (e = (o = i == null ? void 0 : i.weekStartsOn) !== null && o !== void 0 ? o : i == null || (n = i.locale) === null || n === void 0 || (s = n.options) === null || s === void 0 ? void 0 : s.weekStartsOn) !== null && e !== void 0 ? e : g.weekStartsOn) !== null && a !== void 0 ? a : (c = g.locale) === null || c === void 0 || (h = c.options) === null || h === void 0 ? void 0 : h.weekStartsOn) !== null && r !== void 0 ? r : 0);
216
+ if (!(y >= 0 && y <= 6))
217
+ throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
218
+ var C = E(t), T = C.getUTCDay(), O = (T < y ? 7 : 0) + T - y;
219
+ return C.setUTCDate(C.getUTCDate() - O), C.setUTCHours(0, 0, 0, 0), C;
220
+ }
221
+ function ke(t, i) {
222
+ var r, a, e, o, n, s, c, h;
223
+ M(1, arguments);
224
+ var g = E(t), y = g.getUTCFullYear(), C = re(), T = R((r = (a = (e = (o = i == null ? void 0 : i.firstWeekContainsDate) !== null && o !== void 0 ? o : i == null || (n = i.locale) === null || n === void 0 || (s = n.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && e !== void 0 ? e : C.firstWeekContainsDate) !== null && a !== void 0 ? a : (c = C.locale) === null || c === void 0 || (h = c.options) === null || h === void 0 ? void 0 : h.firstWeekContainsDate) !== null && r !== void 0 ? r : 1);
225
+ if (!(T >= 1 && T <= 7))
226
+ throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
227
+ var O = /* @__PURE__ */ new Date(0);
228
+ O.setUTCFullYear(y + 1, 0, T), O.setUTCHours(0, 0, 0, 0);
229
+ var Y = ee(O, i), U = /* @__PURE__ */ new Date(0);
230
+ U.setUTCFullYear(y, 0, T), U.setUTCHours(0, 0, 0, 0);
231
+ var W = ee(U, i);
232
+ return g.getTime() >= Y.getTime() ? y + 1 : g.getTime() >= W.getTime() ? y : y - 1;
233
+ }
234
+ function yt(t, i) {
235
+ var r, a, e, o, n, s, c, h;
236
+ M(1, arguments);
237
+ var g = re(), y = R((r = (a = (e = (o = i == null ? void 0 : i.firstWeekContainsDate) !== null && o !== void 0 ? o : i == null || (n = i.locale) === null || n === void 0 || (s = n.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && e !== void 0 ? e : g.firstWeekContainsDate) !== null && a !== void 0 ? a : (c = g.locale) === null || c === void 0 || (h = c.options) === null || h === void 0 ? void 0 : h.firstWeekContainsDate) !== null && r !== void 0 ? r : 1), C = ke(t, i), T = /* @__PURE__ */ new Date(0);
238
+ T.setUTCFullYear(C, 0, y), T.setUTCHours(0, 0, 0, 0);
239
+ var O = ee(T, i);
240
+ return O;
241
+ }
242
+ var bt = 6048e5;
243
+ function We(t, i) {
244
+ M(1, arguments);
245
+ var r = E(t), a = ee(r, i).getTime() - yt(r, i).getTime();
246
+ return Math.round(a / bt) + 1;
247
+ }
248
+ function w(t, i) {
249
+ for (var r = t < 0 ? "-" : "", a = Math.abs(t).toString(); a.length < i; )
250
+ a = "0" + a;
251
+ return r + a;
252
+ }
253
+ var wt = {
254
+ // Year
255
+ y: function(i, r) {
256
+ var a = i.getUTCFullYear(), e = a > 0 ? a : 1 - a;
257
+ return w(r === "yy" ? e % 100 : e, r.length);
258
+ },
259
+ // Month
260
+ M: function(i, r) {
261
+ var a = i.getUTCMonth();
262
+ return r === "M" ? String(a + 1) : w(a + 1, 2);
263
+ },
264
+ // Day of the month
265
+ d: function(i, r) {
266
+ return w(i.getUTCDate(), r.length);
267
+ },
268
+ // AM or PM
269
+ a: function(i, r) {
270
+ var a = i.getUTCHours() / 12 >= 1 ? "pm" : "am";
271
+ switch (r) {
272
+ case "a":
273
+ case "aa":
274
+ return a.toUpperCase();
275
+ case "aaa":
276
+ return a;
277
+ case "aaaaa":
278
+ return a[0];
279
+ case "aaaa":
280
+ default:
281
+ return a === "am" ? "a.m." : "p.m.";
282
+ }
283
+ },
284
+ // Hour [1-12]
285
+ h: function(i, r) {
286
+ return w(i.getUTCHours() % 12 || 12, r.length);
287
+ },
288
+ // Hour [0-23]
289
+ H: function(i, r) {
290
+ return w(i.getUTCHours(), r.length);
291
+ },
292
+ // Minute
293
+ m: function(i, r) {
294
+ return w(i.getUTCMinutes(), r.length);
295
+ },
296
+ // Second
297
+ s: function(i, r) {
298
+ return w(i.getUTCSeconds(), r.length);
299
+ },
300
+ // Fraction of second
301
+ S: function(i, r) {
302
+ var a = r.length, e = i.getUTCMilliseconds(), o = Math.floor(e * Math.pow(10, a - 3));
303
+ return w(o, r.length);
304
+ }
305
+ };
306
+ const K = wt;
307
+ var te = {
308
+ am: "am",
309
+ pm: "pm",
310
+ midnight: "midnight",
311
+ noon: "noon",
312
+ morning: "morning",
313
+ afternoon: "afternoon",
314
+ evening: "evening",
315
+ night: "night"
316
+ }, _t = {
317
+ // Era
318
+ G: function(i, r, a) {
319
+ var e = i.getUTCFullYear() > 0 ? 1 : 0;
320
+ switch (r) {
321
+ case "G":
322
+ case "GG":
323
+ case "GGG":
324
+ return a.era(e, {
325
+ width: "abbreviated"
326
+ });
327
+ case "GGGGG":
328
+ return a.era(e, {
329
+ width: "narrow"
330
+ });
331
+ case "GGGG":
332
+ default:
333
+ return a.era(e, {
334
+ width: "wide"
335
+ });
336
+ }
337
+ },
338
+ // Year
339
+ y: function(i, r, a) {
340
+ if (r === "yo") {
341
+ var e = i.getUTCFullYear(), o = e > 0 ? e : 1 - e;
342
+ return a.ordinalNumber(o, {
343
+ unit: "year"
344
+ });
345
+ }
346
+ return K.y(i, r);
347
+ },
348
+ // Local week-numbering year
349
+ Y: function(i, r, a, e) {
350
+ var o = ke(i, e), n = o > 0 ? o : 1 - o;
351
+ if (r === "YY") {
352
+ var s = n % 100;
353
+ return w(s, 2);
354
+ }
355
+ return r === "Yo" ? a.ordinalNumber(n, {
356
+ unit: "year"
357
+ }) : w(n, r.length);
358
+ },
359
+ // ISO week-numbering year
360
+ R: function(i, r) {
361
+ var a = Ae(i);
362
+ return w(a, r.length);
363
+ },
364
+ // Extended year. This is a single number designating the year of this calendar system.
365
+ // The main difference between `y` and `u` localizers are B.C. years:
366
+ // | Year | `y` | `u` |
367
+ // |------|-----|-----|
368
+ // | AC 1 | 1 | 1 |
369
+ // | BC 1 | 1 | 0 |
370
+ // | BC 2 | 2 | -1 |
371
+ // Also `yy` always returns the last two digits of a year,
372
+ // while `uu` pads single digit years to 2 characters and returns other years unchanged.
373
+ u: function(i, r) {
374
+ var a = i.getUTCFullYear();
375
+ return w(a, r.length);
376
+ },
377
+ // Quarter
378
+ Q: function(i, r, a) {
379
+ var e = Math.ceil((i.getUTCMonth() + 1) / 3);
380
+ switch (r) {
381
+ case "Q":
382
+ return String(e);
383
+ case "QQ":
384
+ return w(e, 2);
385
+ case "Qo":
386
+ return a.ordinalNumber(e, {
387
+ unit: "quarter"
388
+ });
389
+ case "QQQ":
390
+ return a.quarter(e, {
391
+ width: "abbreviated",
392
+ context: "formatting"
393
+ });
394
+ case "QQQQQ":
395
+ return a.quarter(e, {
396
+ width: "narrow",
397
+ context: "formatting"
398
+ });
399
+ case "QQQQ":
400
+ default:
401
+ return a.quarter(e, {
402
+ width: "wide",
403
+ context: "formatting"
404
+ });
405
+ }
406
+ },
407
+ // Stand-alone quarter
408
+ q: function(i, r, a) {
409
+ var e = Math.ceil((i.getUTCMonth() + 1) / 3);
410
+ switch (r) {
411
+ case "q":
412
+ return String(e);
413
+ case "qq":
414
+ return w(e, 2);
415
+ case "qo":
416
+ return a.ordinalNumber(e, {
417
+ unit: "quarter"
418
+ });
419
+ case "qqq":
420
+ return a.quarter(e, {
421
+ width: "abbreviated",
422
+ context: "standalone"
423
+ });
424
+ case "qqqqq":
425
+ return a.quarter(e, {
426
+ width: "narrow",
427
+ context: "standalone"
428
+ });
429
+ case "qqqq":
430
+ default:
431
+ return a.quarter(e, {
432
+ width: "wide",
433
+ context: "standalone"
434
+ });
435
+ }
436
+ },
437
+ // Month
438
+ M: function(i, r, a) {
439
+ var e = i.getUTCMonth();
440
+ switch (r) {
441
+ case "M":
442
+ case "MM":
443
+ return K.M(i, r);
444
+ case "Mo":
445
+ return a.ordinalNumber(e + 1, {
446
+ unit: "month"
447
+ });
448
+ case "MMM":
449
+ return a.month(e, {
450
+ width: "abbreviated",
451
+ context: "formatting"
452
+ });
453
+ case "MMMMM":
454
+ return a.month(e, {
455
+ width: "narrow",
456
+ context: "formatting"
457
+ });
458
+ case "MMMM":
459
+ default:
460
+ return a.month(e, {
461
+ width: "wide",
462
+ context: "formatting"
463
+ });
464
+ }
465
+ },
466
+ // Stand-alone month
467
+ L: function(i, r, a) {
468
+ var e = i.getUTCMonth();
469
+ switch (r) {
470
+ case "L":
471
+ return String(e + 1);
472
+ case "LL":
473
+ return w(e + 1, 2);
474
+ case "Lo":
475
+ return a.ordinalNumber(e + 1, {
476
+ unit: "month"
477
+ });
478
+ case "LLL":
479
+ return a.month(e, {
480
+ width: "abbreviated",
481
+ context: "standalone"
482
+ });
483
+ case "LLLLL":
484
+ return a.month(e, {
485
+ width: "narrow",
486
+ context: "standalone"
487
+ });
488
+ case "LLLL":
489
+ default:
490
+ return a.month(e, {
491
+ width: "wide",
492
+ context: "standalone"
493
+ });
494
+ }
495
+ },
496
+ // Local week of year
497
+ w: function(i, r, a, e) {
498
+ var o = We(i, e);
499
+ return r === "wo" ? a.ordinalNumber(o, {
500
+ unit: "week"
501
+ }) : w(o, r.length);
502
+ },
503
+ // ISO week of year
504
+ I: function(i, r, a) {
505
+ var e = Ne(i);
506
+ return r === "Io" ? a.ordinalNumber(e, {
507
+ unit: "week"
508
+ }) : w(e, r.length);
509
+ },
510
+ // Day of the month
511
+ d: function(i, r, a) {
512
+ return r === "do" ? a.ordinalNumber(i.getUTCDate(), {
513
+ unit: "date"
514
+ }) : K.d(i, r);
515
+ },
516
+ // Day of year
517
+ D: function(i, r, a) {
518
+ var e = pt(i);
519
+ return r === "Do" ? a.ordinalNumber(e, {
520
+ unit: "dayOfYear"
521
+ }) : w(e, r.length);
522
+ },
523
+ // Day of week
524
+ E: function(i, r, a) {
525
+ var e = i.getUTCDay();
526
+ switch (r) {
527
+ case "E":
528
+ case "EE":
529
+ case "EEE":
530
+ return a.day(e, {
531
+ width: "abbreviated",
532
+ context: "formatting"
533
+ });
534
+ case "EEEEE":
535
+ return a.day(e, {
536
+ width: "narrow",
537
+ context: "formatting"
538
+ });
539
+ case "EEEEEE":
540
+ return a.day(e, {
541
+ width: "short",
542
+ context: "formatting"
543
+ });
544
+ case "EEEE":
545
+ default:
546
+ return a.day(e, {
547
+ width: "wide",
548
+ context: "formatting"
549
+ });
550
+ }
551
+ },
552
+ // Local day of week
553
+ e: function(i, r, a, e) {
554
+ var o = i.getUTCDay(), n = (o - e.weekStartsOn + 8) % 7 || 7;
555
+ switch (r) {
556
+ case "e":
557
+ return String(n);
558
+ case "ee":
559
+ return w(n, 2);
560
+ case "eo":
561
+ return a.ordinalNumber(n, {
562
+ unit: "day"
563
+ });
564
+ case "eee":
565
+ return a.day(o, {
566
+ width: "abbreviated",
567
+ context: "formatting"
568
+ });
569
+ case "eeeee":
570
+ return a.day(o, {
571
+ width: "narrow",
572
+ context: "formatting"
573
+ });
574
+ case "eeeeee":
575
+ return a.day(o, {
576
+ width: "short",
577
+ context: "formatting"
578
+ });
579
+ case "eeee":
580
+ default:
581
+ return a.day(o, {
582
+ width: "wide",
583
+ context: "formatting"
584
+ });
585
+ }
586
+ },
587
+ // Stand-alone local day of week
588
+ c: function(i, r, a, e) {
589
+ var o = i.getUTCDay(), n = (o - e.weekStartsOn + 8) % 7 || 7;
590
+ switch (r) {
591
+ case "c":
592
+ return String(n);
593
+ case "cc":
594
+ return w(n, r.length);
595
+ case "co":
596
+ return a.ordinalNumber(n, {
597
+ unit: "day"
598
+ });
599
+ case "ccc":
600
+ return a.day(o, {
601
+ width: "abbreviated",
602
+ context: "standalone"
603
+ });
604
+ case "ccccc":
605
+ return a.day(o, {
606
+ width: "narrow",
607
+ context: "standalone"
608
+ });
609
+ case "cccccc":
610
+ return a.day(o, {
611
+ width: "short",
612
+ context: "standalone"
613
+ });
614
+ case "cccc":
615
+ default:
616
+ return a.day(o, {
617
+ width: "wide",
618
+ context: "standalone"
619
+ });
620
+ }
621
+ },
622
+ // ISO day of week
623
+ i: function(i, r, a) {
624
+ var e = i.getUTCDay(), o = e === 0 ? 7 : e;
625
+ switch (r) {
626
+ case "i":
627
+ return String(o);
628
+ case "ii":
629
+ return w(o, r.length);
630
+ case "io":
631
+ return a.ordinalNumber(o, {
632
+ unit: "day"
633
+ });
634
+ case "iii":
635
+ return a.day(e, {
636
+ width: "abbreviated",
637
+ context: "formatting"
638
+ });
639
+ case "iiiii":
640
+ return a.day(e, {
641
+ width: "narrow",
642
+ context: "formatting"
643
+ });
644
+ case "iiiiii":
645
+ return a.day(e, {
646
+ width: "short",
647
+ context: "formatting"
648
+ });
649
+ case "iiii":
650
+ default:
651
+ return a.day(e, {
652
+ width: "wide",
653
+ context: "formatting"
654
+ });
655
+ }
656
+ },
657
+ // AM or PM
658
+ a: function(i, r, a) {
659
+ var e = i.getUTCHours(), o = e / 12 >= 1 ? "pm" : "am";
660
+ switch (r) {
661
+ case "a":
662
+ case "aa":
663
+ return a.dayPeriod(o, {
664
+ width: "abbreviated",
665
+ context: "formatting"
666
+ });
667
+ case "aaa":
668
+ return a.dayPeriod(o, {
669
+ width: "abbreviated",
670
+ context: "formatting"
671
+ }).toLowerCase();
672
+ case "aaaaa":
673
+ return a.dayPeriod(o, {
674
+ width: "narrow",
675
+ context: "formatting"
676
+ });
677
+ case "aaaa":
678
+ default:
679
+ return a.dayPeriod(o, {
680
+ width: "wide",
681
+ context: "formatting"
682
+ });
683
+ }
684
+ },
685
+ // AM, PM, midnight, noon
686
+ b: function(i, r, a) {
687
+ var e = i.getUTCHours(), o;
688
+ switch (e === 12 ? o = te.noon : e === 0 ? o = te.midnight : o = e / 12 >= 1 ? "pm" : "am", r) {
689
+ case "b":
690
+ case "bb":
691
+ return a.dayPeriod(o, {
692
+ width: "abbreviated",
693
+ context: "formatting"
694
+ });
695
+ case "bbb":
696
+ return a.dayPeriod(o, {
697
+ width: "abbreviated",
698
+ context: "formatting"
699
+ }).toLowerCase();
700
+ case "bbbbb":
701
+ return a.dayPeriod(o, {
702
+ width: "narrow",
703
+ context: "formatting"
704
+ });
705
+ case "bbbb":
706
+ default:
707
+ return a.dayPeriod(o, {
708
+ width: "wide",
709
+ context: "formatting"
710
+ });
711
+ }
712
+ },
713
+ // in the morning, in the afternoon, in the evening, at night
714
+ B: function(i, r, a) {
715
+ var e = i.getUTCHours(), o;
716
+ switch (e >= 17 ? o = te.evening : e >= 12 ? o = te.afternoon : e >= 4 ? o = te.morning : o = te.night, r) {
717
+ case "B":
718
+ case "BB":
719
+ case "BBB":
720
+ return a.dayPeriod(o, {
721
+ width: "abbreviated",
722
+ context: "formatting"
723
+ });
724
+ case "BBBBB":
725
+ return a.dayPeriod(o, {
726
+ width: "narrow",
727
+ context: "formatting"
728
+ });
729
+ case "BBBB":
730
+ default:
731
+ return a.dayPeriod(o, {
732
+ width: "wide",
733
+ context: "formatting"
734
+ });
735
+ }
736
+ },
737
+ // Hour [1-12]
738
+ h: function(i, r, a) {
739
+ if (r === "ho") {
740
+ var e = i.getUTCHours() % 12;
741
+ return e === 0 && (e = 12), a.ordinalNumber(e, {
742
+ unit: "hour"
743
+ });
744
+ }
745
+ return K.h(i, r);
746
+ },
747
+ // Hour [0-23]
748
+ H: function(i, r, a) {
749
+ return r === "Ho" ? a.ordinalNumber(i.getUTCHours(), {
750
+ unit: "hour"
751
+ }) : K.H(i, r);
752
+ },
753
+ // Hour [0-11]
754
+ K: function(i, r, a) {
755
+ var e = i.getUTCHours() % 12;
756
+ return r === "Ko" ? a.ordinalNumber(e, {
757
+ unit: "hour"
758
+ }) : w(e, r.length);
759
+ },
760
+ // Hour [1-24]
761
+ k: function(i, r, a) {
762
+ var e = i.getUTCHours();
763
+ return e === 0 && (e = 24), r === "ko" ? a.ordinalNumber(e, {
764
+ unit: "hour"
765
+ }) : w(e, r.length);
766
+ },
767
+ // Minute
768
+ m: function(i, r, a) {
769
+ return r === "mo" ? a.ordinalNumber(i.getUTCMinutes(), {
770
+ unit: "minute"
771
+ }) : K.m(i, r);
772
+ },
773
+ // Second
774
+ s: function(i, r, a) {
775
+ return r === "so" ? a.ordinalNumber(i.getUTCSeconds(), {
776
+ unit: "second"
777
+ }) : K.s(i, r);
778
+ },
779
+ // Fraction of second
780
+ S: function(i, r) {
781
+ return K.S(i, r);
782
+ },
783
+ // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
784
+ X: function(i, r, a, e) {
785
+ var o = e._originalDate || i, n = o.getTimezoneOffset();
786
+ if (n === 0)
787
+ return "Z";
788
+ switch (r) {
789
+ case "X":
790
+ return Fe(n);
791
+ case "XXXX":
792
+ case "XX":
793
+ return J(n);
794
+ case "XXXXX":
795
+ case "XXX":
796
+ default:
797
+ return J(n, ":");
798
+ }
799
+ },
800
+ // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
801
+ x: function(i, r, a, e) {
802
+ var o = e._originalDate || i, n = o.getTimezoneOffset();
803
+ switch (r) {
804
+ case "x":
805
+ return Fe(n);
806
+ case "xxxx":
807
+ case "xx":
808
+ return J(n);
809
+ case "xxxxx":
810
+ case "xxx":
811
+ default:
812
+ return J(n, ":");
813
+ }
814
+ },
815
+ // Timezone (GMT)
816
+ O: function(i, r, a, e) {
817
+ var o = e._originalDate || i, n = o.getTimezoneOffset();
818
+ switch (r) {
819
+ case "O":
820
+ case "OO":
821
+ case "OOO":
822
+ return "GMT" + Ie(n, ":");
823
+ case "OOOO":
824
+ default:
825
+ return "GMT" + J(n, ":");
826
+ }
827
+ },
828
+ // Timezone (specific non-location)
829
+ z: function(i, r, a, e) {
830
+ var o = e._originalDate || i, n = o.getTimezoneOffset();
831
+ switch (r) {
832
+ case "z":
833
+ case "zz":
834
+ case "zzz":
835
+ return "GMT" + Ie(n, ":");
836
+ case "zzzz":
837
+ default:
838
+ return "GMT" + J(n, ":");
839
+ }
840
+ },
841
+ // Seconds timestamp
842
+ t: function(i, r, a, e) {
843
+ var o = e._originalDate || i, n = Math.floor(o.getTime() / 1e3);
844
+ return w(n, r.length);
845
+ },
846
+ // Milliseconds timestamp
847
+ T: function(i, r, a, e) {
848
+ var o = e._originalDate || i, n = o.getTime();
849
+ return w(n, r.length);
850
+ }
851
+ };
852
+ function Ie(t, i) {
853
+ var r = t > 0 ? "-" : "+", a = Math.abs(t), e = Math.floor(a / 60), o = a % 60;
854
+ if (o === 0)
855
+ return r + String(e);
856
+ var n = i;
857
+ return r + String(e) + n + w(o, 2);
858
+ }
859
+ function Fe(t, i) {
860
+ if (t % 60 === 0) {
861
+ var r = t > 0 ? "-" : "+";
862
+ return r + w(Math.abs(t) / 60, 2);
863
+ }
864
+ return J(t, i);
865
+ }
866
+ function J(t, i) {
867
+ var r = i || "", a = t > 0 ? "-" : "+", e = Math.abs(t), o = w(Math.floor(e / 60), 2), n = w(e % 60, 2);
868
+ return a + o + r + n;
869
+ }
870
+ const xt = _t;
871
+ var Re = function(i, r) {
872
+ switch (i) {
873
+ case "P":
874
+ return r.date({
875
+ width: "short"
876
+ });
877
+ case "PP":
878
+ return r.date({
879
+ width: "medium"
880
+ });
881
+ case "PPP":
882
+ return r.date({
883
+ width: "long"
884
+ });
885
+ case "PPPP":
886
+ default:
887
+ return r.date({
888
+ width: "full"
889
+ });
890
+ }
891
+ }, Qe = function(i, r) {
892
+ switch (i) {
893
+ case "p":
894
+ return r.time({
895
+ width: "short"
896
+ });
897
+ case "pp":
898
+ return r.time({
899
+ width: "medium"
900
+ });
901
+ case "ppp":
902
+ return r.time({
903
+ width: "long"
904
+ });
905
+ case "pppp":
906
+ default:
907
+ return r.time({
908
+ width: "full"
909
+ });
910
+ }
911
+ }, Tt = function(i, r) {
912
+ var a = i.match(/(P+)(p+)?/) || [], e = a[1], o = a[2];
913
+ if (!o)
914
+ return Re(i, r);
915
+ var n;
916
+ switch (e) {
917
+ case "P":
918
+ n = r.dateTime({
919
+ width: "short"
920
+ });
921
+ break;
922
+ case "PP":
923
+ n = r.dateTime({
924
+ width: "medium"
925
+ });
926
+ break;
927
+ case "PPP":
928
+ n = r.dateTime({
929
+ width: "long"
930
+ });
931
+ break;
932
+ case "PPPP":
933
+ default:
934
+ n = r.dateTime({
935
+ width: "full"
936
+ });
937
+ break;
938
+ }
939
+ return n.replace("{{date}}", Re(e, r)).replace("{{time}}", Qe(o, r));
940
+ }, kt = {
941
+ p: Qe,
942
+ P: Tt
943
+ };
944
+ const _e = kt;
945
+ function Be(t) {
946
+ var i = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
947
+ return i.setUTCFullYear(t.getFullYear()), t.getTime() - i.getTime();
948
+ }
949
+ var Ct = ["D", "DD"], Vt = ["YY", "YYYY"];
950
+ function ze(t) {
951
+ return Ct.indexOf(t) !== -1;
952
+ }
953
+ function Ge(t) {
954
+ return Vt.indexOf(t) !== -1;
955
+ }
956
+ function pe(t, i, r) {
957
+ if (t === "YYYY")
958
+ throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(i, "`) for formatting years to the input `").concat(r, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
959
+ if (t === "YY")
960
+ throw new RangeError("Use `yy` instead of `YY` (in `".concat(i, "`) for formatting years to the input `").concat(r, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
961
+ if (t === "D")
962
+ throw new RangeError("Use `d` instead of `D` (in `".concat(i, "`) for formatting days of the month to the input `").concat(r, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
963
+ if (t === "DD")
964
+ throw new RangeError("Use `dd` instead of `DD` (in `".concat(i, "`) for formatting days of the month to the input `").concat(r, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
965
+ }
966
+ var Mt = {
967
+ lessThanXSeconds: {
968
+ one: "less than a second",
969
+ other: "less than {{count}} seconds"
970
+ },
971
+ xSeconds: {
972
+ one: "1 second",
973
+ other: "{{count}} seconds"
974
+ },
975
+ halfAMinute: "half a minute",
976
+ lessThanXMinutes: {
977
+ one: "less than a minute",
978
+ other: "less than {{count}} minutes"
979
+ },
980
+ xMinutes: {
981
+ one: "1 minute",
982
+ other: "{{count}} minutes"
983
+ },
984
+ aboutXHours: {
985
+ one: "about 1 hour",
986
+ other: "about {{count}} hours"
987
+ },
988
+ xHours: {
989
+ one: "1 hour",
990
+ other: "{{count}} hours"
991
+ },
992
+ xDays: {
993
+ one: "1 day",
994
+ other: "{{count}} days"
995
+ },
996
+ aboutXWeeks: {
997
+ one: "about 1 week",
998
+ other: "about {{count}} weeks"
999
+ },
1000
+ xWeeks: {
1001
+ one: "1 week",
1002
+ other: "{{count}} weeks"
1003
+ },
1004
+ aboutXMonths: {
1005
+ one: "about 1 month",
1006
+ other: "about {{count}} months"
1007
+ },
1008
+ xMonths: {
1009
+ one: "1 month",
1010
+ other: "{{count}} months"
1011
+ },
1012
+ aboutXYears: {
1013
+ one: "about 1 year",
1014
+ other: "about {{count}} years"
1015
+ },
1016
+ xYears: {
1017
+ one: "1 year",
1018
+ other: "{{count}} years"
1019
+ },
1020
+ overXYears: {
1021
+ one: "over 1 year",
1022
+ other: "over {{count}} years"
1023
+ },
1024
+ almostXYears: {
1025
+ one: "almost 1 year",
1026
+ other: "almost {{count}} years"
1027
+ }
1028
+ }, Dt = function(i, r, a) {
1029
+ var e, o = Mt[i];
1030
+ return typeof o == "string" ? e = o : r === 1 ? e = o.one : e = o.other.replace("{{count}}", r.toString()), a != null && a.addSuffix ? a.comparison && a.comparison > 0 ? "in " + e : e + " ago" : e;
1031
+ };
1032
+ const Pt = Dt;
1033
+ function we(t) {
1034
+ return function() {
1035
+ var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = i.width ? String(i.width) : t.defaultWidth, a = t.formats[r] || t.formats[t.defaultWidth];
1036
+ return a;
1037
+ };
1038
+ }
1039
+ var Et = {
1040
+ full: "EEEE, MMMM do, y",
1041
+ long: "MMMM do, y",
1042
+ medium: "MMM d, y",
1043
+ short: "MM/dd/yyyy"
1044
+ }, Ot = {
1045
+ full: "h:mm:ss a zzzz",
1046
+ long: "h:mm:ss a z",
1047
+ medium: "h:mm:ss a",
1048
+ short: "h:mm a"
1049
+ }, St = {
1050
+ full: "{{date}} 'at' {{time}}",
1051
+ long: "{{date}} 'at' {{time}}",
1052
+ medium: "{{date}}, {{time}}",
1053
+ short: "{{date}}, {{time}}"
1054
+ }, Ht = {
1055
+ date: we({
1056
+ formats: Et,
1057
+ defaultWidth: "full"
1058
+ }),
1059
+ time: we({
1060
+ formats: Ot,
1061
+ defaultWidth: "full"
1062
+ }),
1063
+ dateTime: we({
1064
+ formats: St,
1065
+ defaultWidth: "full"
1066
+ })
1067
+ };
1068
+ const It = Ht;
1069
+ var Ft = {
1070
+ lastWeek: "'last' eeee 'at' p",
1071
+ yesterday: "'yesterday at' p",
1072
+ today: "'today at' p",
1073
+ tomorrow: "'tomorrow at' p",
1074
+ nextWeek: "eeee 'at' p",
1075
+ other: "P"
1076
+ }, Rt = function(i, r, a, e) {
1077
+ return Ft[i];
1078
+ };
1079
+ const Ut = Rt;
1080
+ function le(t) {
1081
+ return function(i, r) {
1082
+ var a = r != null && r.context ? String(r.context) : "standalone", e;
1083
+ if (a === "formatting" && t.formattingValues) {
1084
+ var o = t.defaultFormattingWidth || t.defaultWidth, n = r != null && r.width ? String(r.width) : o;
1085
+ e = t.formattingValues[n] || t.formattingValues[o];
1086
+ } else {
1087
+ var s = t.defaultWidth, c = r != null && r.width ? String(r.width) : t.defaultWidth;
1088
+ e = t.values[c] || t.values[s];
1089
+ }
1090
+ var h = t.argumentCallback ? t.argumentCallback(i) : i;
1091
+ return e[h];
1092
+ };
1093
+ }
1094
+ var Lt = {
1095
+ narrow: ["B", "A"],
1096
+ abbreviated: ["BC", "AD"],
1097
+ wide: ["Before Christ", "Anno Domini"]
1098
+ }, $t = {
1099
+ narrow: ["1", "2", "3", "4"],
1100
+ abbreviated: ["Q1", "Q2", "Q3", "Q4"],
1101
+ wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
1102
+ }, Yt = {
1103
+ narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
1104
+ abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
1105
+ wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
1106
+ }, qt = {
1107
+ narrow: ["S", "M", "T", "W", "T", "F", "S"],
1108
+ short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
1109
+ abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
1110
+ wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
1111
+ }, At = {
1112
+ narrow: {
1113
+ am: "a",
1114
+ pm: "p",
1115
+ midnight: "mi",
1116
+ noon: "n",
1117
+ morning: "morning",
1118
+ afternoon: "afternoon",
1119
+ evening: "evening",
1120
+ night: "night"
1121
+ },
1122
+ abbreviated: {
1123
+ am: "AM",
1124
+ pm: "PM",
1125
+ midnight: "midnight",
1126
+ noon: "noon",
1127
+ morning: "morning",
1128
+ afternoon: "afternoon",
1129
+ evening: "evening",
1130
+ night: "night"
1131
+ },
1132
+ wide: {
1133
+ am: "a.m.",
1134
+ pm: "p.m.",
1135
+ midnight: "midnight",
1136
+ noon: "noon",
1137
+ morning: "morning",
1138
+ afternoon: "afternoon",
1139
+ evening: "evening",
1140
+ night: "night"
1141
+ }
1142
+ }, Nt = {
1143
+ narrow: {
1144
+ am: "a",
1145
+ pm: "p",
1146
+ midnight: "mi",
1147
+ noon: "n",
1148
+ morning: "in the morning",
1149
+ afternoon: "in the afternoon",
1150
+ evening: "in the evening",
1151
+ night: "at night"
1152
+ },
1153
+ abbreviated: {
1154
+ am: "AM",
1155
+ pm: "PM",
1156
+ midnight: "midnight",
1157
+ noon: "noon",
1158
+ morning: "in the morning",
1159
+ afternoon: "in the afternoon",
1160
+ evening: "in the evening",
1161
+ night: "at night"
1162
+ },
1163
+ wide: {
1164
+ am: "a.m.",
1165
+ pm: "p.m.",
1166
+ midnight: "midnight",
1167
+ noon: "noon",
1168
+ morning: "in the morning",
1169
+ afternoon: "in the afternoon",
1170
+ evening: "in the evening",
1171
+ night: "at night"
1172
+ }
1173
+ }, Wt = function(i, r) {
1174
+ var a = Number(i), e = a % 100;
1175
+ if (e > 20 || e < 10)
1176
+ switch (e % 10) {
1177
+ case 1:
1178
+ return a + "st";
1179
+ case 2:
1180
+ return a + "nd";
1181
+ case 3:
1182
+ return a + "rd";
1183
+ }
1184
+ return a + "th";
1185
+ }, Qt = {
1186
+ ordinalNumber: Wt,
1187
+ era: le({
1188
+ values: Lt,
1189
+ defaultWidth: "wide"
1190
+ }),
1191
+ quarter: le({
1192
+ values: $t,
1193
+ defaultWidth: "wide",
1194
+ argumentCallback: function(i) {
1195
+ return i - 1;
1196
+ }
1197
+ }),
1198
+ month: le({
1199
+ values: Yt,
1200
+ defaultWidth: "wide"
1201
+ }),
1202
+ day: le({
1203
+ values: qt,
1204
+ defaultWidth: "wide"
1205
+ }),
1206
+ dayPeriod: le({
1207
+ values: At,
1208
+ defaultWidth: "wide",
1209
+ formattingValues: Nt,
1210
+ defaultFormattingWidth: "wide"
1211
+ })
1212
+ };
1213
+ const Bt = Qt;
1214
+ function ue(t) {
1215
+ return function(i) {
1216
+ var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = r.width, e = a && t.matchPatterns[a] || t.matchPatterns[t.defaultMatchWidth], o = i.match(e);
1217
+ if (!o)
1218
+ return null;
1219
+ var n = o[0], s = a && t.parsePatterns[a] || t.parsePatterns[t.defaultParseWidth], c = Array.isArray(s) ? Gt(s, function(y) {
1220
+ return y.test(n);
1221
+ }) : zt(s, function(y) {
1222
+ return y.test(n);
1223
+ }), h;
1224
+ h = t.valueCallback ? t.valueCallback(c) : c, h = r.valueCallback ? r.valueCallback(h) : h;
1225
+ var g = i.slice(n.length);
1226
+ return {
1227
+ value: h,
1228
+ rest: g
1229
+ };
1230
+ };
1231
+ }
1232
+ function zt(t, i) {
1233
+ for (var r in t)
1234
+ if (t.hasOwnProperty(r) && i(t[r]))
1235
+ return r;
1236
+ }
1237
+ function Gt(t, i) {
1238
+ for (var r = 0; r < t.length; r++)
1239
+ if (i(t[r]))
1240
+ return r;
1241
+ }
1242
+ function jt(t) {
1243
+ return function(i) {
1244
+ var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = i.match(t.matchPattern);
1245
+ if (!a)
1246
+ return null;
1247
+ var e = a[0], o = i.match(t.parsePattern);
1248
+ if (!o)
1249
+ return null;
1250
+ var n = t.valueCallback ? t.valueCallback(o[0]) : o[0];
1251
+ n = r.valueCallback ? r.valueCallback(n) : n;
1252
+ var s = i.slice(e.length);
1253
+ return {
1254
+ value: n,
1255
+ rest: s
1256
+ };
1257
+ };
1258
+ }
1259
+ var Xt = /^(\d+)(th|st|nd|rd)?/i, Kt = /\d+/i, Zt = {
1260
+ narrow: /^(b|a)/i,
1261
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
1262
+ wide: /^(before christ|before common era|anno domini|common era)/i
1263
+ }, Jt = {
1264
+ any: [/^b/i, /^(a|c)/i]
1265
+ }, ei = {
1266
+ narrow: /^[1234]/i,
1267
+ abbreviated: /^q[1234]/i,
1268
+ wide: /^[1234](th|st|nd|rd)? quarter/i
1269
+ }, ti = {
1270
+ any: [/1/i, /2/i, /3/i, /4/i]
1271
+ }, ii = {
1272
+ narrow: /^[jfmasond]/i,
1273
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
1274
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
1275
+ }, ri = {
1276
+ 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],
1277
+ 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]
1278
+ }, ai = {
1279
+ narrow: /^[smtwf]/i,
1280
+ short: /^(su|mo|tu|we|th|fr|sa)/i,
1281
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
1282
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
1283
+ }, ni = {
1284
+ narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
1285
+ any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
1286
+ }, oi = {
1287
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
1288
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
1289
+ }, si = {
1290
+ any: {
1291
+ am: /^a/i,
1292
+ pm: /^p/i,
1293
+ midnight: /^mi/i,
1294
+ noon: /^no/i,
1295
+ morning: /morning/i,
1296
+ afternoon: /afternoon/i,
1297
+ evening: /evening/i,
1298
+ night: /night/i
1299
+ }
1300
+ }, li = {
1301
+ ordinalNumber: jt({
1302
+ matchPattern: Xt,
1303
+ parsePattern: Kt,
1304
+ valueCallback: function(i) {
1305
+ return parseInt(i, 10);
1306
+ }
1307
+ }),
1308
+ era: ue({
1309
+ matchPatterns: Zt,
1310
+ defaultMatchWidth: "wide",
1311
+ parsePatterns: Jt,
1312
+ defaultParseWidth: "any"
1313
+ }),
1314
+ quarter: ue({
1315
+ matchPatterns: ei,
1316
+ defaultMatchWidth: "wide",
1317
+ parsePatterns: ti,
1318
+ defaultParseWidth: "any",
1319
+ valueCallback: function(i) {
1320
+ return i + 1;
1321
+ }
1322
+ }),
1323
+ month: ue({
1324
+ matchPatterns: ii,
1325
+ defaultMatchWidth: "wide",
1326
+ parsePatterns: ri,
1327
+ defaultParseWidth: "any"
1328
+ }),
1329
+ day: ue({
1330
+ matchPatterns: ai,
1331
+ defaultMatchWidth: "wide",
1332
+ parsePatterns: ni,
1333
+ defaultParseWidth: "any"
1334
+ }),
1335
+ dayPeriod: ue({
1336
+ matchPatterns: oi,
1337
+ defaultMatchWidth: "any",
1338
+ parsePatterns: si,
1339
+ defaultParseWidth: "any"
1340
+ })
1341
+ };
1342
+ const ui = li;
1343
+ var di = {
1344
+ code: "en-US",
1345
+ formatDistance: Pt,
1346
+ formatLong: It,
1347
+ formatRelative: Ut,
1348
+ localize: Bt,
1349
+ match: ui,
1350
+ options: {
1351
+ weekStartsOn: 0,
1352
+ firstWeekContainsDate: 1
1353
+ }
1354
+ };
1355
+ const je = di;
1356
+ var ci = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, hi = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, fi = /^'([^]*?)'?$/, pi = /''/g, vi = /[a-zA-Z]/;
1357
+ function mi(t, i, r) {
1358
+ var a, e, o, n, s, c, h, g, y, C, T, O, Y, U;
1359
+ M(2, arguments);
1360
+ var W = String(i), F = re(), q = (a = (e = void 0) !== null && e !== void 0 ? e : F.locale) !== null && a !== void 0 ? a : je, Q = R((o = (n = (s = (c = void 0) !== null && c !== void 0 ? c : void 0) !== null && s !== void 0 ? s : F.firstWeekContainsDate) !== null && n !== void 0 ? n : (h = F.locale) === null || h === void 0 || (g = h.options) === null || g === void 0 ? void 0 : g.firstWeekContainsDate) !== null && o !== void 0 ? o : 1);
1361
+ if (!(Q >= 1 && Q <= 7))
1362
+ throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
1363
+ var j = R((y = (C = (T = (O = void 0) !== null && O !== void 0 ? O : void 0) !== null && T !== void 0 ? T : F.weekStartsOn) !== null && C !== void 0 ? C : (Y = F.locale) === null || Y === void 0 || (U = Y.options) === null || U === void 0 ? void 0 : U.weekStartsOn) !== null && y !== void 0 ? y : 0);
1364
+ if (!(j >= 0 && j <= 6))
1365
+ throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
1366
+ if (!q.localize)
1367
+ throw new RangeError("locale must contain localize property");
1368
+ if (!q.formatLong)
1369
+ throw new RangeError("locale must contain formatLong property");
1370
+ var X = E(t);
1371
+ if (!ct(X))
1372
+ throw new RangeError("Invalid time value");
1373
+ var ae = Be(X), ne = qe(X, ae), oe = {
1374
+ firstWeekContainsDate: Q,
1375
+ weekStartsOn: j,
1376
+ locale: q,
1377
+ _originalDate: X
1378
+ }, ge = W.match(hi).map(function(I) {
1379
+ var L = I[0];
1380
+ if (L === "p" || L === "P") {
1381
+ var Z = _e[L];
1382
+ return Z(I, q.formatLong);
1383
+ }
1384
+ return I;
1385
+ }).join("").match(ci).map(function(I) {
1386
+ if (I === "''")
1387
+ return "'";
1388
+ var L = I[0];
1389
+ if (L === "'")
1390
+ return gi(I);
1391
+ var Z = xt[L];
1392
+ if (Z)
1393
+ return Ge(I) && pe(I, i, String(t)), ze(I) && pe(I, i, String(t)), Z(ne, I, q.localize, oe);
1394
+ if (L.match(vi))
1395
+ throw new RangeError("Format string contains an unescaped latin alphabet character `" + L + "`");
1396
+ return I;
1397
+ }).join("");
1398
+ return ge;
1399
+ }
1400
+ function gi(t) {
1401
+ var i = t.match(fi);
1402
+ return i ? i[1].replace(pi, "'") : t;
1403
+ }
1404
+ function Ue(t, i) {
1405
+ (i == null || i > t.length) && (i = t.length);
1406
+ for (var r = 0, a = Array(i); r < i; r++)
1407
+ a[r] = t[r];
1408
+ return a;
1409
+ }
1410
+ function yi(t, i) {
1411
+ if (t) {
1412
+ if (typeof t == "string")
1413
+ return Ue(t, i);
1414
+ var r = {}.toString.call(t).slice(8, -1);
1415
+ return r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set" ? Array.from(t) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Ue(t, i) : void 0;
1416
+ }
1417
+ }
1418
+ function Le(t, i) {
1419
+ var r = typeof Symbol != "undefined" && t[Symbol.iterator] || t["@@iterator"];
1420
+ if (!r) {
1421
+ if (Array.isArray(t) || (r = yi(t)) || i) {
1422
+ r && (t = r);
1423
+ var a = 0, e = function() {
1424
+ };
1425
+ return {
1426
+ s: e,
1427
+ n: function() {
1428
+ return a >= t.length ? {
1429
+ done: !0
1430
+ } : {
1431
+ done: !1,
1432
+ value: t[a++]
1433
+ };
1434
+ },
1435
+ e: function(h) {
1436
+ throw h;
1437
+ },
1438
+ f: e
1439
+ };
1440
+ }
1441
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1442
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1443
+ }
1444
+ var o, n = !0, s = !1;
1445
+ return {
1446
+ s: function() {
1447
+ r = r.call(t);
1448
+ },
1449
+ n: function() {
1450
+ var h = r.next();
1451
+ return n = h.done, h;
1452
+ },
1453
+ e: function(h) {
1454
+ s = !0, o = h;
1455
+ },
1456
+ f: function() {
1457
+ try {
1458
+ n || r.return == null || r.return();
1459
+ } finally {
1460
+ if (s)
1461
+ throw o;
1462
+ }
1463
+ }
1464
+ };
1465
+ }
1466
+ function bi(t, i) {
1467
+ if (t == null)
1468
+ throw new TypeError("assign requires that input parameter not be null or undefined");
1469
+ for (var r in i)
1470
+ Object.prototype.hasOwnProperty.call(i, r) && (t[r] = i[r]);
1471
+ return t;
1472
+ }
1473
+ function d(t) {
1474
+ if (t === void 0)
1475
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1476
+ return t;
1477
+ }
1478
+ function xe(t, i) {
1479
+ return xe = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, a) {
1480
+ return r.__proto__ = a, r;
1481
+ }, xe(t, i);
1482
+ }
1483
+ function v(t, i) {
1484
+ if (typeof i != "function" && i !== null)
1485
+ throw new TypeError("Super expression must either be null or a function");
1486
+ t.prototype = Object.create(i && i.prototype, {
1487
+ constructor: {
1488
+ value: t,
1489
+ writable: !0,
1490
+ configurable: !0
1491
+ }
1492
+ }), Object.defineProperty(t, "prototype", {
1493
+ writable: !1
1494
+ }), i && xe(t, i);
1495
+ }
1496
+ function ve(t) {
1497
+ return ve = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(i) {
1498
+ return i.__proto__ || Object.getPrototypeOf(i);
1499
+ }, ve(t);
1500
+ }
1501
+ function Xe() {
1502
+ try {
1503
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1504
+ }));
1505
+ } catch (i) {
1506
+ }
1507
+ return (Xe = function() {
1508
+ return !!t;
1509
+ })();
1510
+ }
1511
+ function wi(t, i) {
1512
+ if (i && (B(i) == "object" || typeof i == "function"))
1513
+ return i;
1514
+ if (i !== void 0)
1515
+ throw new TypeError("Derived constructors may only return object or undefined");
1516
+ return d(t);
1517
+ }
1518
+ function m(t) {
1519
+ var i = Xe();
1520
+ return function() {
1521
+ var r, a = ve(t);
1522
+ if (i) {
1523
+ var e = ve(this).constructor;
1524
+ r = Reflect.construct(a, arguments, e);
1525
+ } else
1526
+ r = a.apply(this, arguments);
1527
+ return wi(this, r);
1528
+ };
1529
+ }
1530
+ function f(t, i) {
1531
+ if (!(t instanceof i))
1532
+ throw new TypeError("Cannot call a class as a function");
1533
+ }
1534
+ function _i(t, i) {
1535
+ if (B(t) != "object" || !t)
1536
+ return t;
1537
+ var r = t[Symbol.toPrimitive];
1538
+ if (r !== void 0) {
1539
+ var a = r.call(t, i || "default");
1540
+ if (B(a) != "object")
1541
+ return a;
1542
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1543
+ }
1544
+ return (i === "string" ? String : Number)(t);
1545
+ }
1546
+ function Ke(t) {
1547
+ var i = _i(t, "string");
1548
+ return B(i) == "symbol" ? i : i + "";
1549
+ }
1550
+ function xi(t, i) {
1551
+ for (var r = 0; r < i.length; r++) {
1552
+ var a = i[r];
1553
+ a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(t, Ke(a.key), a);
1554
+ }
1555
+ }
1556
+ function p(t, i, r) {
1557
+ return i && xi(t.prototype, i), Object.defineProperty(t, "prototype", {
1558
+ writable: !1
1559
+ }), t;
1560
+ }
1561
+ function u(t, i, r) {
1562
+ return (i = Ke(i)) in t ? Object.defineProperty(t, i, {
1563
+ value: r,
1564
+ enumerable: !0,
1565
+ configurable: !0,
1566
+ writable: !0
1567
+ }) : t[i] = r, t;
1568
+ }
1569
+ var Ti = 10, Ze = /* @__PURE__ */ function() {
1570
+ function t() {
1571
+ f(this, t), u(this, "priority", void 0), u(this, "subPriority", 0);
1572
+ }
1573
+ return p(t, [{
1574
+ key: "validate",
1575
+ value: function(r, a) {
1576
+ return !0;
1577
+ }
1578
+ }]), t;
1579
+ }(), ki = /* @__PURE__ */ function(t) {
1580
+ v(r, t);
1581
+ var i = m(r);
1582
+ function r(a, e, o, n, s) {
1583
+ var c;
1584
+ return f(this, r), c = i.call(this), c.value = a, c.validateValue = e, c.setValue = o, c.priority = n, s && (c.subPriority = s), c;
1585
+ }
1586
+ return p(r, [{
1587
+ key: "validate",
1588
+ value: function(e, o) {
1589
+ return this.validateValue(e, this.value, o);
1590
+ }
1591
+ }, {
1592
+ key: "set",
1593
+ value: function(e, o, n) {
1594
+ return this.setValue(e, o, this.value, n);
1595
+ }
1596
+ }]), r;
1597
+ }(Ze), Ci = /* @__PURE__ */ function(t) {
1598
+ v(r, t);
1599
+ var i = m(r);
1600
+ function r() {
1601
+ var a;
1602
+ f(this, r);
1603
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
1604
+ o[n] = arguments[n];
1605
+ return a = i.call.apply(i, [this].concat(o)), u(d(a), "priority", Ti), u(d(a), "subPriority", -1), a;
1606
+ }
1607
+ return p(r, [{
1608
+ key: "set",
1609
+ value: function(e, o) {
1610
+ if (o.timestampIsSet)
1611
+ return e;
1612
+ var n = /* @__PURE__ */ new Date(0);
1613
+ return n.setFullYear(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate()), n.setHours(e.getUTCHours(), e.getUTCMinutes(), e.getUTCSeconds(), e.getUTCMilliseconds()), n;
1614
+ }
1615
+ }]), r;
1616
+ }(Ze), b = /* @__PURE__ */ function() {
1617
+ function t() {
1618
+ f(this, t), u(this, "incompatibleTokens", void 0), u(this, "priority", void 0), u(this, "subPriority", void 0);
1619
+ }
1620
+ return p(t, [{
1621
+ key: "run",
1622
+ value: function(r, a, e, o) {
1623
+ var n = this.parse(r, a, e, o);
1624
+ return n ? {
1625
+ setter: new ki(n.value, this.validate, this.set, this.priority, this.subPriority),
1626
+ rest: n.rest
1627
+ } : null;
1628
+ }
1629
+ }, {
1630
+ key: "validate",
1631
+ value: function(r, a, e) {
1632
+ return !0;
1633
+ }
1634
+ }]), t;
1635
+ }(), Vi = /* @__PURE__ */ function(t) {
1636
+ v(r, t);
1637
+ var i = m(r);
1638
+ function r() {
1639
+ var a;
1640
+ f(this, r);
1641
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
1642
+ o[n] = arguments[n];
1643
+ return a = i.call.apply(i, [this].concat(o)), u(d(a), "priority", 140), u(d(a), "incompatibleTokens", ["R", "u", "t", "T"]), a;
1644
+ }
1645
+ return p(r, [{
1646
+ key: "parse",
1647
+ value: function(e, o, n) {
1648
+ switch (o) {
1649
+ case "G":
1650
+ case "GG":
1651
+ case "GGG":
1652
+ return n.era(e, {
1653
+ width: "abbreviated"
1654
+ }) || n.era(e, {
1655
+ width: "narrow"
1656
+ });
1657
+ case "GGGGG":
1658
+ return n.era(e, {
1659
+ width: "narrow"
1660
+ });
1661
+ case "GGGG":
1662
+ default:
1663
+ return n.era(e, {
1664
+ width: "wide"
1665
+ }) || n.era(e, {
1666
+ width: "abbreviated"
1667
+ }) || n.era(e, {
1668
+ width: "narrow"
1669
+ });
1670
+ }
1671
+ }
1672
+ }, {
1673
+ key: "set",
1674
+ value: function(e, o, n) {
1675
+ return o.era = n, e.setUTCFullYear(n, 0, 1), e.setUTCHours(0, 0, 0, 0), e;
1676
+ }
1677
+ }]), r;
1678
+ }(b), Mi = 6e4, Di = 36e5, Pi = 1e3, D = {
1679
+ month: /^(1[0-2]|0?\d)/,
1680
+ // 0 to 12
1681
+ date: /^(3[0-1]|[0-2]?\d)/,
1682
+ // 0 to 31
1683
+ dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,
1684
+ // 0 to 366
1685
+ week: /^(5[0-3]|[0-4]?\d)/,
1686
+ // 0 to 53
1687
+ hour23h: /^(2[0-3]|[0-1]?\d)/,
1688
+ // 0 to 23
1689
+ hour24h: /^(2[0-4]|[0-1]?\d)/,
1690
+ // 0 to 24
1691
+ hour11h: /^(1[0-1]|0?\d)/,
1692
+ // 0 to 11
1693
+ hour12h: /^(1[0-2]|0?\d)/,
1694
+ // 0 to 12
1695
+ minute: /^[0-5]?\d/,
1696
+ // 0 to 59
1697
+ second: /^[0-5]?\d/,
1698
+ // 0 to 59
1699
+ singleDigit: /^\d/,
1700
+ // 0 to 9
1701
+ twoDigits: /^\d{1,2}/,
1702
+ // 0 to 99
1703
+ threeDigits: /^\d{1,3}/,
1704
+ // 0 to 999
1705
+ fourDigits: /^\d{1,4}/,
1706
+ // 0 to 9999
1707
+ anyDigitsSigned: /^-?\d+/,
1708
+ singleDigitSigned: /^-?\d/,
1709
+ // 0 to 9, -0 to -9
1710
+ twoDigitsSigned: /^-?\d{1,2}/,
1711
+ // 0 to 99, -0 to -99
1712
+ threeDigitsSigned: /^-?\d{1,3}/,
1713
+ // 0 to 999, -0 to -999
1714
+ fourDigitsSigned: /^-?\d{1,4}/
1715
+ // 0 to 9999, -0 to -9999
1716
+ }, A = {
1717
+ basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
1718
+ basic: /^([+-])(\d{2})(\d{2})|Z/,
1719
+ basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
1720
+ extended: /^([+-])(\d{2}):(\d{2})|Z/,
1721
+ extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
1722
+ };
1723
+ function P(t, i) {
1724
+ return t && {
1725
+ value: i(t.value),
1726
+ rest: t.rest
1727
+ };
1728
+ }
1729
+ function k(t, i) {
1730
+ var r = i.match(t);
1731
+ return r ? {
1732
+ value: parseInt(r[0], 10),
1733
+ rest: i.slice(r[0].length)
1734
+ } : null;
1735
+ }
1736
+ function N(t, i) {
1737
+ var r = i.match(t);
1738
+ if (!r)
1739
+ return null;
1740
+ if (r[0] === "Z")
1741
+ return {
1742
+ value: 0,
1743
+ rest: i.slice(1)
1744
+ };
1745
+ var a = r[1] === "+" ? 1 : -1, e = r[2] ? parseInt(r[2], 10) : 0, o = r[3] ? parseInt(r[3], 10) : 0, n = r[5] ? parseInt(r[5], 10) : 0;
1746
+ return {
1747
+ value: a * (e * Di + o * Mi + n * Pi),
1748
+ rest: i.slice(r[0].length)
1749
+ };
1750
+ }
1751
+ function Je(t) {
1752
+ return k(D.anyDigitsSigned, t);
1753
+ }
1754
+ function V(t, i) {
1755
+ switch (t) {
1756
+ case 1:
1757
+ return k(D.singleDigit, i);
1758
+ case 2:
1759
+ return k(D.twoDigits, i);
1760
+ case 3:
1761
+ return k(D.threeDigits, i);
1762
+ case 4:
1763
+ return k(D.fourDigits, i);
1764
+ default:
1765
+ return k(new RegExp("^\\d{1," + t + "}"), i);
1766
+ }
1767
+ }
1768
+ function me(t, i) {
1769
+ switch (t) {
1770
+ case 1:
1771
+ return k(D.singleDigitSigned, i);
1772
+ case 2:
1773
+ return k(D.twoDigitsSigned, i);
1774
+ case 3:
1775
+ return k(D.threeDigitsSigned, i);
1776
+ case 4:
1777
+ return k(D.fourDigitsSigned, i);
1778
+ default:
1779
+ return k(new RegExp("^-?\\d{1," + t + "}"), i);
1780
+ }
1781
+ }
1782
+ function Ce(t) {
1783
+ switch (t) {
1784
+ case "morning":
1785
+ return 4;
1786
+ case "evening":
1787
+ return 17;
1788
+ case "pm":
1789
+ case "noon":
1790
+ case "afternoon":
1791
+ return 12;
1792
+ case "am":
1793
+ case "midnight":
1794
+ case "night":
1795
+ default:
1796
+ return 0;
1797
+ }
1798
+ }
1799
+ function et(t, i) {
1800
+ var r = i > 0, a = r ? i : 1 - i, e;
1801
+ if (a <= 50)
1802
+ e = t || 100;
1803
+ else {
1804
+ var o = a + 50, n = Math.floor(o / 100) * 100, s = t >= o % 100;
1805
+ e = t + n - (s ? 100 : 0);
1806
+ }
1807
+ return r ? e : 1 - e;
1808
+ }
1809
+ function tt(t) {
1810
+ return t % 400 === 0 || t % 4 === 0 && t % 100 !== 0;
1811
+ }
1812
+ var Ei = /* @__PURE__ */ function(t) {
1813
+ v(r, t);
1814
+ var i = m(r);
1815
+ function r() {
1816
+ var a;
1817
+ f(this, r);
1818
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
1819
+ o[n] = arguments[n];
1820
+ return a = i.call.apply(i, [this].concat(o)), u(d(a), "priority", 130), u(d(a), "incompatibleTokens", ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"]), a;
1821
+ }
1822
+ return p(r, [{
1823
+ key: "parse",
1824
+ value: function(e, o, n) {
1825
+ var s = function(h) {
1826
+ return {
1827
+ year: h,
1828
+ isTwoDigitYear: o === "yy"
1829
+ };
1830
+ };
1831
+ switch (o) {
1832
+ case "y":
1833
+ return P(V(4, e), s);
1834
+ case "yo":
1835
+ return P(n.ordinalNumber(e, {
1836
+ unit: "year"
1837
+ }), s);
1838
+ default:
1839
+ return P(V(o.length, e), s);
1840
+ }
1841
+ }
1842
+ }, {
1843
+ key: "validate",
1844
+ value: function(e, o) {
1845
+ return o.isTwoDigitYear || o.year > 0;
1846
+ }
1847
+ }, {
1848
+ key: "set",
1849
+ value: function(e, o, n) {
1850
+ var s = e.getUTCFullYear();
1851
+ if (n.isTwoDigitYear) {
1852
+ var c = et(n.year, s);
1853
+ return e.setUTCFullYear(c, 0, 1), e.setUTCHours(0, 0, 0, 0), e;
1854
+ }
1855
+ var h = !("era" in o) || o.era === 1 ? n.year : 1 - n.year;
1856
+ return e.setUTCFullYear(h, 0, 1), e.setUTCHours(0, 0, 0, 0), e;
1857
+ }
1858
+ }]), r;
1859
+ }(b), Oi = /* @__PURE__ */ function(t) {
1860
+ v(r, t);
1861
+ var i = m(r);
1862
+ function r() {
1863
+ var a;
1864
+ f(this, r);
1865
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
1866
+ o[n] = arguments[n];
1867
+ return a = i.call.apply(i, [this].concat(o)), u(d(a), "priority", 130), u(d(a), "incompatibleTokens", ["y", "R", "u", "Q", "q", "M", "L", "I", "d", "D", "i", "t", "T"]), a;
1868
+ }
1869
+ return p(r, [{
1870
+ key: "parse",
1871
+ value: function(e, o, n) {
1872
+ var s = function(h) {
1873
+ return {
1874
+ year: h,
1875
+ isTwoDigitYear: o === "YY"
1876
+ };
1877
+ };
1878
+ switch (o) {
1879
+ case "Y":
1880
+ return P(V(4, e), s);
1881
+ case "Yo":
1882
+ return P(n.ordinalNumber(e, {
1883
+ unit: "year"
1884
+ }), s);
1885
+ default:
1886
+ return P(V(o.length, e), s);
1887
+ }
1888
+ }
1889
+ }, {
1890
+ key: "validate",
1891
+ value: function(e, o) {
1892
+ return o.isTwoDigitYear || o.year > 0;
1893
+ }
1894
+ }, {
1895
+ key: "set",
1896
+ value: function(e, o, n, s) {
1897
+ var c = ke(e, s);
1898
+ if (n.isTwoDigitYear) {
1899
+ var h = et(n.year, c);
1900
+ return e.setUTCFullYear(h, 0, s.firstWeekContainsDate), e.setUTCHours(0, 0, 0, 0), ee(e, s);
1901
+ }
1902
+ var g = !("era" in o) || o.era === 1 ? n.year : 1 - n.year;
1903
+ return e.setUTCFullYear(g, 0, s.firstWeekContainsDate), e.setUTCHours(0, 0, 0, 0), ee(e, s);
1904
+ }
1905
+ }]), r;
1906
+ }(b), Si = /* @__PURE__ */ function(t) {
1907
+ v(r, t);
1908
+ var i = m(r);
1909
+ function r() {
1910
+ var a;
1911
+ f(this, r);
1912
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
1913
+ o[n] = arguments[n];
1914
+ return a = i.call.apply(i, [this].concat(o)), u(d(a), "priority", 130), u(d(a), "incompatibleTokens", ["G", "y", "Y", "u", "Q", "q", "M", "L", "w", "d", "D", "e", "c", "t", "T"]), a;
1915
+ }
1916
+ return p(r, [{
1917
+ key: "parse",
1918
+ value: function(e, o) {
1919
+ return me(o === "R" ? 4 : o.length, e);
1920
+ }
1921
+ }, {
1922
+ key: "set",
1923
+ value: function(e, o, n) {
1924
+ var s = /* @__PURE__ */ new Date(0);
1925
+ return s.setUTCFullYear(n, 0, 4), s.setUTCHours(0, 0, 0, 0), ie(s);
1926
+ }
1927
+ }]), r;
1928
+ }(b), Hi = /* @__PURE__ */ function(t) {
1929
+ v(r, t);
1930
+ var i = m(r);
1931
+ function r() {
1932
+ var a;
1933
+ f(this, r);
1934
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
1935
+ o[n] = arguments[n];
1936
+ return a = i.call.apply(i, [this].concat(o)), u(d(a), "priority", 130), u(d(a), "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]), a;
1937
+ }
1938
+ return p(r, [{
1939
+ key: "parse",
1940
+ value: function(e, o) {
1941
+ return me(o === "u" ? 4 : o.length, e);
1942
+ }
1943
+ }, {
1944
+ key: "set",
1945
+ value: function(e, o, n) {
1946
+ return e.setUTCFullYear(n, 0, 1), e.setUTCHours(0, 0, 0, 0), e;
1947
+ }
1948
+ }]), r;
1949
+ }(b), Ii = /* @__PURE__ */ function(t) {
1950
+ v(r, t);
1951
+ var i = m(r);
1952
+ function r() {
1953
+ var a;
1954
+ f(this, r);
1955
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
1956
+ o[n] = arguments[n];
1957
+ return a = i.call.apply(i, [this].concat(o)), u(d(a), "priority", 120), u(d(a), "incompatibleTokens", ["Y", "R", "q", "M", "L", "w", "I", "d", "D", "i", "e", "c", "t", "T"]), a;
1958
+ }
1959
+ return p(r, [{
1960
+ key: "parse",
1961
+ value: function(e, o, n) {
1962
+ switch (o) {
1963
+ case "Q":
1964
+ case "QQ":
1965
+ return V(o.length, e);
1966
+ case "Qo":
1967
+ return n.ordinalNumber(e, {
1968
+ unit: "quarter"
1969
+ });
1970
+ case "QQQ":
1971
+ return n.quarter(e, {
1972
+ width: "abbreviated",
1973
+ context: "formatting"
1974
+ }) || n.quarter(e, {
1975
+ width: "narrow",
1976
+ context: "formatting"
1977
+ });
1978
+ case "QQQQQ":
1979
+ return n.quarter(e, {
1980
+ width: "narrow",
1981
+ context: "formatting"
1982
+ });
1983
+ case "QQQQ":
1984
+ default:
1985
+ return n.quarter(e, {
1986
+ width: "wide",
1987
+ context: "formatting"
1988
+ }) || n.quarter(e, {
1989
+ width: "abbreviated",
1990
+ context: "formatting"
1991
+ }) || n.quarter(e, {
1992
+ width: "narrow",
1993
+ context: "formatting"
1994
+ });
1995
+ }
1996
+ }
1997
+ }, {
1998
+ key: "validate",
1999
+ value: function(e, o) {
2000
+ return o >= 1 && o <= 4;
2001
+ }
2002
+ }, {
2003
+ key: "set",
2004
+ value: function(e, o, n) {
2005
+ return e.setUTCMonth((n - 1) * 3, 1), e.setUTCHours(0, 0, 0, 0), e;
2006
+ }
2007
+ }]), r;
2008
+ }(b), Fi = /* @__PURE__ */ function(t) {
2009
+ v(r, t);
2010
+ var i = m(r);
2011
+ function r() {
2012
+ var a;
2013
+ f(this, r);
2014
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2015
+ o[n] = arguments[n];
2016
+ return a = i.call.apply(i, [this].concat(o)), u(d(a), "priority", 120), u(d(a), "incompatibleTokens", ["Y", "R", "Q", "M", "L", "w", "I", "d", "D", "i", "e", "c", "t", "T"]), a;
2017
+ }
2018
+ return p(r, [{
2019
+ key: "parse",
2020
+ value: function(e, o, n) {
2021
+ switch (o) {
2022
+ case "q":
2023
+ case "qq":
2024
+ return V(o.length, e);
2025
+ case "qo":
2026
+ return n.ordinalNumber(e, {
2027
+ unit: "quarter"
2028
+ });
2029
+ case "qqq":
2030
+ return n.quarter(e, {
2031
+ width: "abbreviated",
2032
+ context: "standalone"
2033
+ }) || n.quarter(e, {
2034
+ width: "narrow",
2035
+ context: "standalone"
2036
+ });
2037
+ case "qqqqq":
2038
+ return n.quarter(e, {
2039
+ width: "narrow",
2040
+ context: "standalone"
2041
+ });
2042
+ case "qqqq":
2043
+ default:
2044
+ return n.quarter(e, {
2045
+ width: "wide",
2046
+ context: "standalone"
2047
+ }) || n.quarter(e, {
2048
+ width: "abbreviated",
2049
+ context: "standalone"
2050
+ }) || n.quarter(e, {
2051
+ width: "narrow",
2052
+ context: "standalone"
2053
+ });
2054
+ }
2055
+ }
2056
+ }, {
2057
+ key: "validate",
2058
+ value: function(e, o) {
2059
+ return o >= 1 && o <= 4;
2060
+ }
2061
+ }, {
2062
+ key: "set",
2063
+ value: function(e, o, n) {
2064
+ return e.setUTCMonth((n - 1) * 3, 1), e.setUTCHours(0, 0, 0, 0), e;
2065
+ }
2066
+ }]), r;
2067
+ }(b), Ri = /* @__PURE__ */ function(t) {
2068
+ v(r, t);
2069
+ var i = m(r);
2070
+ function r() {
2071
+ var a;
2072
+ f(this, r);
2073
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2074
+ o[n] = arguments[n];
2075
+ return a = i.call.apply(i, [this].concat(o)), u(d(a), "incompatibleTokens", ["Y", "R", "q", "Q", "L", "w", "I", "D", "i", "e", "c", "t", "T"]), u(d(a), "priority", 110), a;
2076
+ }
2077
+ return p(r, [{
2078
+ key: "parse",
2079
+ value: function(e, o, n) {
2080
+ var s = function(h) {
2081
+ return h - 1;
2082
+ };
2083
+ switch (o) {
2084
+ case "M":
2085
+ return P(k(D.month, e), s);
2086
+ case "MM":
2087
+ return P(V(2, e), s);
2088
+ case "Mo":
2089
+ return P(n.ordinalNumber(e, {
2090
+ unit: "month"
2091
+ }), s);
2092
+ case "MMM":
2093
+ return n.month(e, {
2094
+ width: "abbreviated",
2095
+ context: "formatting"
2096
+ }) || n.month(e, {
2097
+ width: "narrow",
2098
+ context: "formatting"
2099
+ });
2100
+ case "MMMMM":
2101
+ return n.month(e, {
2102
+ width: "narrow",
2103
+ context: "formatting"
2104
+ });
2105
+ case "MMMM":
2106
+ default:
2107
+ return n.month(e, {
2108
+ width: "wide",
2109
+ context: "formatting"
2110
+ }) || n.month(e, {
2111
+ width: "abbreviated",
2112
+ context: "formatting"
2113
+ }) || n.month(e, {
2114
+ width: "narrow",
2115
+ context: "formatting"
2116
+ });
2117
+ }
2118
+ }
2119
+ }, {
2120
+ key: "validate",
2121
+ value: function(e, o) {
2122
+ return o >= 0 && o <= 11;
2123
+ }
2124
+ }, {
2125
+ key: "set",
2126
+ value: function(e, o, n) {
2127
+ return e.setUTCMonth(n, 1), e.setUTCHours(0, 0, 0, 0), e;
2128
+ }
2129
+ }]), r;
2130
+ }(b), Ui = /* @__PURE__ */ function(t) {
2131
+ v(r, t);
2132
+ var i = m(r);
2133
+ function r() {
2134
+ var a;
2135
+ f(this, r);
2136
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2137
+ o[n] = arguments[n];
2138
+ return a = i.call.apply(i, [this].concat(o)), u(d(a), "priority", 110), u(d(a), "incompatibleTokens", ["Y", "R", "q", "Q", "M", "w", "I", "D", "i", "e", "c", "t", "T"]), a;
2139
+ }
2140
+ return p(r, [{
2141
+ key: "parse",
2142
+ value: function(e, o, n) {
2143
+ var s = function(h) {
2144
+ return h - 1;
2145
+ };
2146
+ switch (o) {
2147
+ case "L":
2148
+ return P(k(D.month, e), s);
2149
+ case "LL":
2150
+ return P(V(2, e), s);
2151
+ case "Lo":
2152
+ return P(n.ordinalNumber(e, {
2153
+ unit: "month"
2154
+ }), s);
2155
+ case "LLL":
2156
+ return n.month(e, {
2157
+ width: "abbreviated",
2158
+ context: "standalone"
2159
+ }) || n.month(e, {
2160
+ width: "narrow",
2161
+ context: "standalone"
2162
+ });
2163
+ case "LLLLL":
2164
+ return n.month(e, {
2165
+ width: "narrow",
2166
+ context: "standalone"
2167
+ });
2168
+ case "LLLL":
2169
+ default:
2170
+ return n.month(e, {
2171
+ width: "wide",
2172
+ context: "standalone"
2173
+ }) || n.month(e, {
2174
+ width: "abbreviated",
2175
+ context: "standalone"
2176
+ }) || n.month(e, {
2177
+ width: "narrow",
2178
+ context: "standalone"
2179
+ });
2180
+ }
2181
+ }
2182
+ }, {
2183
+ key: "validate",
2184
+ value: function(e, o) {
2185
+ return o >= 0 && o <= 11;
2186
+ }
2187
+ }, {
2188
+ key: "set",
2189
+ value: function(e, o, n) {
2190
+ return e.setUTCMonth(n, 1), e.setUTCHours(0, 0, 0, 0), e;
2191
+ }
2192
+ }]), r;
2193
+ }(b);
2194
+ function Li(t, i, r) {
2195
+ M(2, arguments);
2196
+ var a = E(t), e = R(i), o = We(a, r) - e;
2197
+ return a.setUTCDate(a.getUTCDate() - o * 7), a;
2198
+ }
2199
+ var $i = /* @__PURE__ */ function(t) {
2200
+ v(r, t);
2201
+ var i = m(r);
2202
+ function r() {
2203
+ var a;
2204
+ f(this, r);
2205
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2206
+ o[n] = arguments[n];
2207
+ return a = i.call.apply(i, [this].concat(o)), u(d(a), "priority", 100), u(d(a), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "i", "t", "T"]), a;
2208
+ }
2209
+ return p(r, [{
2210
+ key: "parse",
2211
+ value: function(e, o, n) {
2212
+ switch (o) {
2213
+ case "w":
2214
+ return k(D.week, e);
2215
+ case "wo":
2216
+ return n.ordinalNumber(e, {
2217
+ unit: "week"
2218
+ });
2219
+ default:
2220
+ return V(o.length, e);
2221
+ }
2222
+ }
2223
+ }, {
2224
+ key: "validate",
2225
+ value: function(e, o) {
2226
+ return o >= 1 && o <= 53;
2227
+ }
2228
+ }, {
2229
+ key: "set",
2230
+ value: function(e, o, n, s) {
2231
+ return ee(Li(e, n, s), s);
2232
+ }
2233
+ }]), r;
2234
+ }(b);
2235
+ function Yi(t, i) {
2236
+ M(2, arguments);
2237
+ var r = E(t), a = R(i), e = Ne(r) - a;
2238
+ return r.setUTCDate(r.getUTCDate() - e * 7), r;
2239
+ }
2240
+ var qi = /* @__PURE__ */ function(t) {
2241
+ v(r, t);
2242
+ var i = m(r);
2243
+ function r() {
2244
+ var a;
2245
+ f(this, r);
2246
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2247
+ o[n] = arguments[n];
2248
+ return a = i.call.apply(i, [this].concat(o)), u(d(a), "priority", 100), u(d(a), "incompatibleTokens", ["y", "Y", "u", "q", "Q", "M", "L", "w", "d", "D", "e", "c", "t", "T"]), a;
2249
+ }
2250
+ return p(r, [{
2251
+ key: "parse",
2252
+ value: function(e, o, n) {
2253
+ switch (o) {
2254
+ case "I":
2255
+ return k(D.week, e);
2256
+ case "Io":
2257
+ return n.ordinalNumber(e, {
2258
+ unit: "week"
2259
+ });
2260
+ default:
2261
+ return V(o.length, e);
2262
+ }
2263
+ }
2264
+ }, {
2265
+ key: "validate",
2266
+ value: function(e, o) {
2267
+ return o >= 1 && o <= 53;
2268
+ }
2269
+ }, {
2270
+ key: "set",
2271
+ value: function(e, o, n) {
2272
+ return ie(Yi(e, n));
2273
+ }
2274
+ }]), r;
2275
+ }(b), Ai = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Ni = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Wi = /* @__PURE__ */ function(t) {
2276
+ v(r, t);
2277
+ var i = m(r);
2278
+ function r() {
2279
+ var a;
2280
+ f(this, r);
2281
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2282
+ o[n] = arguments[n];
2283
+ return a = i.call.apply(i, [this].concat(o)), u(d(a), "priority", 90), u(d(a), "subPriority", 1), u(d(a), "incompatibleTokens", ["Y", "R", "q", "Q", "w", "I", "D", "i", "e", "c", "t", "T"]), a;
2284
+ }
2285
+ return p(r, [{
2286
+ key: "parse",
2287
+ value: function(e, o, n) {
2288
+ switch (o) {
2289
+ case "d":
2290
+ return k(D.date, e);
2291
+ case "do":
2292
+ return n.ordinalNumber(e, {
2293
+ unit: "date"
2294
+ });
2295
+ default:
2296
+ return V(o.length, e);
2297
+ }
2298
+ }
2299
+ }, {
2300
+ key: "validate",
2301
+ value: function(e, o) {
2302
+ var n = e.getUTCFullYear(), s = tt(n), c = e.getUTCMonth();
2303
+ return s ? o >= 1 && o <= Ni[c] : o >= 1 && o <= Ai[c];
2304
+ }
2305
+ }, {
2306
+ key: "set",
2307
+ value: function(e, o, n) {
2308
+ return e.setUTCDate(n), e.setUTCHours(0, 0, 0, 0), e;
2309
+ }
2310
+ }]), r;
2311
+ }(b), Qi = /* @__PURE__ */ function(t) {
2312
+ v(r, t);
2313
+ var i = m(r);
2314
+ function r() {
2315
+ var a;
2316
+ f(this, r);
2317
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2318
+ o[n] = arguments[n];
2319
+ return a = i.call.apply(i, [this].concat(o)), u(d(a), "priority", 90), u(d(a), "subpriority", 1), u(d(a), "incompatibleTokens", ["Y", "R", "q", "Q", "M", "L", "w", "I", "d", "E", "i", "e", "c", "t", "T"]), a;
2320
+ }
2321
+ return p(r, [{
2322
+ key: "parse",
2323
+ value: function(e, o, n) {
2324
+ switch (o) {
2325
+ case "D":
2326
+ case "DD":
2327
+ return k(D.dayOfYear, e);
2328
+ case "Do":
2329
+ return n.ordinalNumber(e, {
2330
+ unit: "date"
2331
+ });
2332
+ default:
2333
+ return V(o.length, e);
2334
+ }
2335
+ }
2336
+ }, {
2337
+ key: "validate",
2338
+ value: function(e, o) {
2339
+ var n = e.getUTCFullYear(), s = tt(n);
2340
+ return s ? o >= 1 && o <= 366 : o >= 1 && o <= 365;
2341
+ }
2342
+ }, {
2343
+ key: "set",
2344
+ value: function(e, o, n) {
2345
+ return e.setUTCMonth(0, n), e.setUTCHours(0, 0, 0, 0), e;
2346
+ }
2347
+ }]), r;
2348
+ }(b);
2349
+ function Ve(t, i, r) {
2350
+ var a, e, o, n, s, c, h, g;
2351
+ M(2, arguments);
2352
+ var y = re(), C = R((a = (e = (o = (n = r == null ? void 0 : r.weekStartsOn) !== null && n !== void 0 ? n : r == null || (s = r.locale) === null || s === void 0 || (c = s.options) === null || c === void 0 ? void 0 : c.weekStartsOn) !== null && o !== void 0 ? o : y.weekStartsOn) !== null && e !== void 0 ? e : (h = y.locale) === null || h === void 0 || (g = h.options) === null || g === void 0 ? void 0 : g.weekStartsOn) !== null && a !== void 0 ? a : 0);
2353
+ if (!(C >= 0 && C <= 6))
2354
+ throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
2355
+ var T = E(t), O = R(i), Y = T.getUTCDay(), U = O % 7, W = (U + 7) % 7, F = (W < C ? 7 : 0) + O - Y;
2356
+ return T.setUTCDate(T.getUTCDate() + F), T;
2357
+ }
2358
+ var Bi = /* @__PURE__ */ function(t) {
2359
+ v(r, t);
2360
+ var i = m(r);
2361
+ function r() {
2362
+ var a;
2363
+ f(this, r);
2364
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2365
+ o[n] = arguments[n];
2366
+ return a = i.call.apply(i, [this].concat(o)), u(d(a), "priority", 90), u(d(a), "incompatibleTokens", ["D", "i", "e", "c", "t", "T"]), a;
2367
+ }
2368
+ return p(r, [{
2369
+ key: "parse",
2370
+ value: function(e, o, n) {
2371
+ switch (o) {
2372
+ case "E":
2373
+ case "EE":
2374
+ case "EEE":
2375
+ return n.day(e, {
2376
+ width: "abbreviated",
2377
+ context: "formatting"
2378
+ }) || n.day(e, {
2379
+ width: "short",
2380
+ context: "formatting"
2381
+ }) || n.day(e, {
2382
+ width: "narrow",
2383
+ context: "formatting"
2384
+ });
2385
+ case "EEEEE":
2386
+ return n.day(e, {
2387
+ width: "narrow",
2388
+ context: "formatting"
2389
+ });
2390
+ case "EEEEEE":
2391
+ return n.day(e, {
2392
+ width: "short",
2393
+ context: "formatting"
2394
+ }) || n.day(e, {
2395
+ width: "narrow",
2396
+ context: "formatting"
2397
+ });
2398
+ case "EEEE":
2399
+ default:
2400
+ return n.day(e, {
2401
+ width: "wide",
2402
+ context: "formatting"
2403
+ }) || n.day(e, {
2404
+ width: "abbreviated",
2405
+ context: "formatting"
2406
+ }) || n.day(e, {
2407
+ width: "short",
2408
+ context: "formatting"
2409
+ }) || n.day(e, {
2410
+ width: "narrow",
2411
+ context: "formatting"
2412
+ });
2413
+ }
2414
+ }
2415
+ }, {
2416
+ key: "validate",
2417
+ value: function(e, o) {
2418
+ return o >= 0 && o <= 6;
2419
+ }
2420
+ }, {
2421
+ key: "set",
2422
+ value: function(e, o, n, s) {
2423
+ return e = Ve(e, n, s), e.setUTCHours(0, 0, 0, 0), e;
2424
+ }
2425
+ }]), r;
2426
+ }(b), zi = /* @__PURE__ */ function(t) {
2427
+ v(r, t);
2428
+ var i = m(r);
2429
+ function r() {
2430
+ var a;
2431
+ f(this, r);
2432
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2433
+ o[n] = arguments[n];
2434
+ return a = i.call.apply(i, [this].concat(o)), u(d(a), "priority", 90), u(d(a), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "E", "i", "c", "t", "T"]), a;
2435
+ }
2436
+ return p(r, [{
2437
+ key: "parse",
2438
+ value: function(e, o, n, s) {
2439
+ var c = function(g) {
2440
+ var y = Math.floor((g - 1) / 7) * 7;
2441
+ return (g + s.weekStartsOn + 6) % 7 + y;
2442
+ };
2443
+ switch (o) {
2444
+ case "e":
2445
+ case "ee":
2446
+ return P(V(o.length, e), c);
2447
+ case "eo":
2448
+ return P(n.ordinalNumber(e, {
2449
+ unit: "day"
2450
+ }), c);
2451
+ case "eee":
2452
+ return n.day(e, {
2453
+ width: "abbreviated",
2454
+ context: "formatting"
2455
+ }) || n.day(e, {
2456
+ width: "short",
2457
+ context: "formatting"
2458
+ }) || n.day(e, {
2459
+ width: "narrow",
2460
+ context: "formatting"
2461
+ });
2462
+ case "eeeee":
2463
+ return n.day(e, {
2464
+ width: "narrow",
2465
+ context: "formatting"
2466
+ });
2467
+ case "eeeeee":
2468
+ return n.day(e, {
2469
+ width: "short",
2470
+ context: "formatting"
2471
+ }) || n.day(e, {
2472
+ width: "narrow",
2473
+ context: "formatting"
2474
+ });
2475
+ case "eeee":
2476
+ default:
2477
+ return n.day(e, {
2478
+ width: "wide",
2479
+ context: "formatting"
2480
+ }) || n.day(e, {
2481
+ width: "abbreviated",
2482
+ context: "formatting"
2483
+ }) || n.day(e, {
2484
+ width: "short",
2485
+ context: "formatting"
2486
+ }) || n.day(e, {
2487
+ width: "narrow",
2488
+ context: "formatting"
2489
+ });
2490
+ }
2491
+ }
2492
+ }, {
2493
+ key: "validate",
2494
+ value: function(e, o) {
2495
+ return o >= 0 && o <= 6;
2496
+ }
2497
+ }, {
2498
+ key: "set",
2499
+ value: function(e, o, n, s) {
2500
+ return e = Ve(e, n, s), e.setUTCHours(0, 0, 0, 0), e;
2501
+ }
2502
+ }]), r;
2503
+ }(b), Gi = /* @__PURE__ */ function(t) {
2504
+ v(r, t);
2505
+ var i = m(r);
2506
+ function r() {
2507
+ var a;
2508
+ f(this, r);
2509
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2510
+ o[n] = arguments[n];
2511
+ return a = i.call.apply(i, [this].concat(o)), u(d(a), "priority", 90), u(d(a), "incompatibleTokens", ["y", "R", "u", "q", "Q", "M", "L", "I", "d", "D", "E", "i", "e", "t", "T"]), a;
2512
+ }
2513
+ return p(r, [{
2514
+ key: "parse",
2515
+ value: function(e, o, n, s) {
2516
+ var c = function(g) {
2517
+ var y = Math.floor((g - 1) / 7) * 7;
2518
+ return (g + s.weekStartsOn + 6) % 7 + y;
2519
+ };
2520
+ switch (o) {
2521
+ case "c":
2522
+ case "cc":
2523
+ return P(V(o.length, e), c);
2524
+ case "co":
2525
+ return P(n.ordinalNumber(e, {
2526
+ unit: "day"
2527
+ }), c);
2528
+ case "ccc":
2529
+ return n.day(e, {
2530
+ width: "abbreviated",
2531
+ context: "standalone"
2532
+ }) || n.day(e, {
2533
+ width: "short",
2534
+ context: "standalone"
2535
+ }) || n.day(e, {
2536
+ width: "narrow",
2537
+ context: "standalone"
2538
+ });
2539
+ case "ccccc":
2540
+ return n.day(e, {
2541
+ width: "narrow",
2542
+ context: "standalone"
2543
+ });
2544
+ case "cccccc":
2545
+ return n.day(e, {
2546
+ width: "short",
2547
+ context: "standalone"
2548
+ }) || n.day(e, {
2549
+ width: "narrow",
2550
+ context: "standalone"
2551
+ });
2552
+ case "cccc":
2553
+ default:
2554
+ return n.day(e, {
2555
+ width: "wide",
2556
+ context: "standalone"
2557
+ }) || n.day(e, {
2558
+ width: "abbreviated",
2559
+ context: "standalone"
2560
+ }) || n.day(e, {
2561
+ width: "short",
2562
+ context: "standalone"
2563
+ }) || n.day(e, {
2564
+ width: "narrow",
2565
+ context: "standalone"
2566
+ });
2567
+ }
2568
+ }
2569
+ }, {
2570
+ key: "validate",
2571
+ value: function(e, o) {
2572
+ return o >= 0 && o <= 6;
2573
+ }
2574
+ }, {
2575
+ key: "set",
2576
+ value: function(e, o, n, s) {
2577
+ return e = Ve(e, n, s), e.setUTCHours(0, 0, 0, 0), e;
2578
+ }
2579
+ }]), r;
2580
+ }(b);
2581
+ function ji(t, i) {
2582
+ M(2, arguments);
2583
+ var r = R(i);
2584
+ r % 7 === 0 && (r = r - 7);
2585
+ var a = 1, e = E(t), o = e.getUTCDay(), n = r % 7, s = (n + 7) % 7, c = (s < a ? 7 : 0) + r - o;
2586
+ return e.setUTCDate(e.getUTCDate() + c), e;
2587
+ }
2588
+ var Xi = /* @__PURE__ */ function(t) {
2589
+ v(r, t);
2590
+ var i = m(r);
2591
+ function r() {
2592
+ var a;
2593
+ f(this, r);
2594
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2595
+ o[n] = arguments[n];
2596
+ return a = i.call.apply(i, [this].concat(o)), u(d(a), "priority", 90), u(d(a), "incompatibleTokens", ["y", "Y", "u", "q", "Q", "M", "L", "w", "d", "D", "E", "e", "c", "t", "T"]), a;
2597
+ }
2598
+ return p(r, [{
2599
+ key: "parse",
2600
+ value: function(e, o, n) {
2601
+ var s = function(h) {
2602
+ return h === 0 ? 7 : h;
2603
+ };
2604
+ switch (o) {
2605
+ case "i":
2606
+ case "ii":
2607
+ return V(o.length, e);
2608
+ case "io":
2609
+ return n.ordinalNumber(e, {
2610
+ unit: "day"
2611
+ });
2612
+ case "iii":
2613
+ return P(n.day(e, {
2614
+ width: "abbreviated",
2615
+ context: "formatting"
2616
+ }) || n.day(e, {
2617
+ width: "short",
2618
+ context: "formatting"
2619
+ }) || n.day(e, {
2620
+ width: "narrow",
2621
+ context: "formatting"
2622
+ }), s);
2623
+ case "iiiii":
2624
+ return P(n.day(e, {
2625
+ width: "narrow",
2626
+ context: "formatting"
2627
+ }), s);
2628
+ case "iiiiii":
2629
+ return P(n.day(e, {
2630
+ width: "short",
2631
+ context: "formatting"
2632
+ }) || n.day(e, {
2633
+ width: "narrow",
2634
+ context: "formatting"
2635
+ }), s);
2636
+ case "iiii":
2637
+ default:
2638
+ return P(n.day(e, {
2639
+ width: "wide",
2640
+ context: "formatting"
2641
+ }) || n.day(e, {
2642
+ width: "abbreviated",
2643
+ context: "formatting"
2644
+ }) || n.day(e, {
2645
+ width: "short",
2646
+ context: "formatting"
2647
+ }) || n.day(e, {
2648
+ width: "narrow",
2649
+ context: "formatting"
2650
+ }), s);
2651
+ }
2652
+ }
2653
+ }, {
2654
+ key: "validate",
2655
+ value: function(e, o) {
2656
+ return o >= 1 && o <= 7;
2657
+ }
2658
+ }, {
2659
+ key: "set",
2660
+ value: function(e, o, n) {
2661
+ return e = ji(e, n), e.setUTCHours(0, 0, 0, 0), e;
2662
+ }
2663
+ }]), r;
2664
+ }(b), Ki = /* @__PURE__ */ function(t) {
2665
+ v(r, t);
2666
+ var i = m(r);
2667
+ function r() {
2668
+ var a;
2669
+ f(this, r);
2670
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2671
+ o[n] = arguments[n];
2672
+ return a = i.call.apply(i, [this].concat(o)), u(d(a), "priority", 80), u(d(a), "incompatibleTokens", ["b", "B", "H", "k", "t", "T"]), a;
2673
+ }
2674
+ return p(r, [{
2675
+ key: "parse",
2676
+ value: function(e, o, n) {
2677
+ switch (o) {
2678
+ case "a":
2679
+ case "aa":
2680
+ case "aaa":
2681
+ return n.dayPeriod(e, {
2682
+ width: "abbreviated",
2683
+ context: "formatting"
2684
+ }) || n.dayPeriod(e, {
2685
+ width: "narrow",
2686
+ context: "formatting"
2687
+ });
2688
+ case "aaaaa":
2689
+ return n.dayPeriod(e, {
2690
+ width: "narrow",
2691
+ context: "formatting"
2692
+ });
2693
+ case "aaaa":
2694
+ default:
2695
+ return n.dayPeriod(e, {
2696
+ width: "wide",
2697
+ context: "formatting"
2698
+ }) || n.dayPeriod(e, {
2699
+ width: "abbreviated",
2700
+ context: "formatting"
2701
+ }) || n.dayPeriod(e, {
2702
+ width: "narrow",
2703
+ context: "formatting"
2704
+ });
2705
+ }
2706
+ }
2707
+ }, {
2708
+ key: "set",
2709
+ value: function(e, o, n) {
2710
+ return e.setUTCHours(Ce(n), 0, 0, 0), e;
2711
+ }
2712
+ }]), r;
2713
+ }(b), Zi = /* @__PURE__ */ function(t) {
2714
+ v(r, t);
2715
+ var i = m(r);
2716
+ function r() {
2717
+ var a;
2718
+ f(this, r);
2719
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2720
+ o[n] = arguments[n];
2721
+ return a = i.call.apply(i, [this].concat(o)), u(d(a), "priority", 80), u(d(a), "incompatibleTokens", ["a", "B", "H", "k", "t", "T"]), a;
2722
+ }
2723
+ return p(r, [{
2724
+ key: "parse",
2725
+ value: function(e, o, n) {
2726
+ switch (o) {
2727
+ case "b":
2728
+ case "bb":
2729
+ case "bbb":
2730
+ return n.dayPeriod(e, {
2731
+ width: "abbreviated",
2732
+ context: "formatting"
2733
+ }) || n.dayPeriod(e, {
2734
+ width: "narrow",
2735
+ context: "formatting"
2736
+ });
2737
+ case "bbbbb":
2738
+ return n.dayPeriod(e, {
2739
+ width: "narrow",
2740
+ context: "formatting"
2741
+ });
2742
+ case "bbbb":
2743
+ default:
2744
+ return n.dayPeriod(e, {
2745
+ width: "wide",
2746
+ context: "formatting"
2747
+ }) || n.dayPeriod(e, {
2748
+ width: "abbreviated",
2749
+ context: "formatting"
2750
+ }) || n.dayPeriod(e, {
2751
+ width: "narrow",
2752
+ context: "formatting"
2753
+ });
2754
+ }
2755
+ }
2756
+ }, {
2757
+ key: "set",
2758
+ value: function(e, o, n) {
2759
+ return e.setUTCHours(Ce(n), 0, 0, 0), e;
2760
+ }
2761
+ }]), r;
2762
+ }(b), Ji = /* @__PURE__ */ function(t) {
2763
+ v(r, t);
2764
+ var i = m(r);
2765
+ function r() {
2766
+ var a;
2767
+ f(this, r);
2768
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2769
+ o[n] = arguments[n];
2770
+ return a = i.call.apply(i, [this].concat(o)), u(d(a), "priority", 80), u(d(a), "incompatibleTokens", ["a", "b", "t", "T"]), a;
2771
+ }
2772
+ return p(r, [{
2773
+ key: "parse",
2774
+ value: function(e, o, n) {
2775
+ switch (o) {
2776
+ case "B":
2777
+ case "BB":
2778
+ case "BBB":
2779
+ return n.dayPeriod(e, {
2780
+ width: "abbreviated",
2781
+ context: "formatting"
2782
+ }) || n.dayPeriod(e, {
2783
+ width: "narrow",
2784
+ context: "formatting"
2785
+ });
2786
+ case "BBBBB":
2787
+ return n.dayPeriod(e, {
2788
+ width: "narrow",
2789
+ context: "formatting"
2790
+ });
2791
+ case "BBBB":
2792
+ default:
2793
+ return n.dayPeriod(e, {
2794
+ width: "wide",
2795
+ context: "formatting"
2796
+ }) || n.dayPeriod(e, {
2797
+ width: "abbreviated",
2798
+ context: "formatting"
2799
+ }) || n.dayPeriod(e, {
2800
+ width: "narrow",
2801
+ context: "formatting"
2802
+ });
2803
+ }
2804
+ }
2805
+ }, {
2806
+ key: "set",
2807
+ value: function(e, o, n) {
2808
+ return e.setUTCHours(Ce(n), 0, 0, 0), e;
2809
+ }
2810
+ }]), r;
2811
+ }(b), er = /* @__PURE__ */ function(t) {
2812
+ v(r, t);
2813
+ var i = m(r);
2814
+ function r() {
2815
+ var a;
2816
+ f(this, r);
2817
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2818
+ o[n] = arguments[n];
2819
+ return a = i.call.apply(i, [this].concat(o)), u(d(a), "priority", 70), u(d(a), "incompatibleTokens", ["H", "K", "k", "t", "T"]), a;
2820
+ }
2821
+ return p(r, [{
2822
+ key: "parse",
2823
+ value: function(e, o, n) {
2824
+ switch (o) {
2825
+ case "h":
2826
+ return k(D.hour12h, e);
2827
+ case "ho":
2828
+ return n.ordinalNumber(e, {
2829
+ unit: "hour"
2830
+ });
2831
+ default:
2832
+ return V(o.length, e);
2833
+ }
2834
+ }
2835
+ }, {
2836
+ key: "validate",
2837
+ value: function(e, o) {
2838
+ return o >= 1 && o <= 12;
2839
+ }
2840
+ }, {
2841
+ key: "set",
2842
+ value: function(e, o, n) {
2843
+ var s = e.getUTCHours() >= 12;
2844
+ return s && n < 12 ? e.setUTCHours(n + 12, 0, 0, 0) : !s && n === 12 ? e.setUTCHours(0, 0, 0, 0) : e.setUTCHours(n, 0, 0, 0), e;
2845
+ }
2846
+ }]), r;
2847
+ }(b), tr = /* @__PURE__ */ function(t) {
2848
+ v(r, t);
2849
+ var i = m(r);
2850
+ function r() {
2851
+ var a;
2852
+ f(this, r);
2853
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2854
+ o[n] = arguments[n];
2855
+ return a = i.call.apply(i, [this].concat(o)), u(d(a), "priority", 70), u(d(a), "incompatibleTokens", ["a", "b", "h", "K", "k", "t", "T"]), a;
2856
+ }
2857
+ return p(r, [{
2858
+ key: "parse",
2859
+ value: function(e, o, n) {
2860
+ switch (o) {
2861
+ case "H":
2862
+ return k(D.hour23h, e);
2863
+ case "Ho":
2864
+ return n.ordinalNumber(e, {
2865
+ unit: "hour"
2866
+ });
2867
+ default:
2868
+ return V(o.length, e);
2869
+ }
2870
+ }
2871
+ }, {
2872
+ key: "validate",
2873
+ value: function(e, o) {
2874
+ return o >= 0 && o <= 23;
2875
+ }
2876
+ }, {
2877
+ key: "set",
2878
+ value: function(e, o, n) {
2879
+ return e.setUTCHours(n, 0, 0, 0), e;
2880
+ }
2881
+ }]), r;
2882
+ }(b), ir = /* @__PURE__ */ function(t) {
2883
+ v(r, t);
2884
+ var i = m(r);
2885
+ function r() {
2886
+ var a;
2887
+ f(this, r);
2888
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2889
+ o[n] = arguments[n];
2890
+ return a = i.call.apply(i, [this].concat(o)), u(d(a), "priority", 70), u(d(a), "incompatibleTokens", ["h", "H", "k", "t", "T"]), a;
2891
+ }
2892
+ return p(r, [{
2893
+ key: "parse",
2894
+ value: function(e, o, n) {
2895
+ switch (o) {
2896
+ case "K":
2897
+ return k(D.hour11h, e);
2898
+ case "Ko":
2899
+ return n.ordinalNumber(e, {
2900
+ unit: "hour"
2901
+ });
2902
+ default:
2903
+ return V(o.length, e);
2904
+ }
2905
+ }
2906
+ }, {
2907
+ key: "validate",
2908
+ value: function(e, o) {
2909
+ return o >= 0 && o <= 11;
2910
+ }
2911
+ }, {
2912
+ key: "set",
2913
+ value: function(e, o, n) {
2914
+ var s = e.getUTCHours() >= 12;
2915
+ return s && n < 12 ? e.setUTCHours(n + 12, 0, 0, 0) : e.setUTCHours(n, 0, 0, 0), e;
2916
+ }
2917
+ }]), r;
2918
+ }(b), rr = /* @__PURE__ */ function(t) {
2919
+ v(r, t);
2920
+ var i = m(r);
2921
+ function r() {
2922
+ var a;
2923
+ f(this, r);
2924
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2925
+ o[n] = arguments[n];
2926
+ return a = i.call.apply(i, [this].concat(o)), u(d(a), "priority", 70), u(d(a), "incompatibleTokens", ["a", "b", "h", "H", "K", "t", "T"]), a;
2927
+ }
2928
+ return p(r, [{
2929
+ key: "parse",
2930
+ value: function(e, o, n) {
2931
+ switch (o) {
2932
+ case "k":
2933
+ return k(D.hour24h, e);
2934
+ case "ko":
2935
+ return n.ordinalNumber(e, {
2936
+ unit: "hour"
2937
+ });
2938
+ default:
2939
+ return V(o.length, e);
2940
+ }
2941
+ }
2942
+ }, {
2943
+ key: "validate",
2944
+ value: function(e, o) {
2945
+ return o >= 1 && o <= 24;
2946
+ }
2947
+ }, {
2948
+ key: "set",
2949
+ value: function(e, o, n) {
2950
+ var s = n <= 24 ? n % 24 : n;
2951
+ return e.setUTCHours(s, 0, 0, 0), e;
2952
+ }
2953
+ }]), r;
2954
+ }(b), ar = /* @__PURE__ */ function(t) {
2955
+ v(r, t);
2956
+ var i = m(r);
2957
+ function r() {
2958
+ var a;
2959
+ f(this, r);
2960
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2961
+ o[n] = arguments[n];
2962
+ return a = i.call.apply(i, [this].concat(o)), u(d(a), "priority", 60), u(d(a), "incompatibleTokens", ["t", "T"]), a;
2963
+ }
2964
+ return p(r, [{
2965
+ key: "parse",
2966
+ value: function(e, o, n) {
2967
+ switch (o) {
2968
+ case "m":
2969
+ return k(D.minute, e);
2970
+ case "mo":
2971
+ return n.ordinalNumber(e, {
2972
+ unit: "minute"
2973
+ });
2974
+ default:
2975
+ return V(o.length, e);
2976
+ }
2977
+ }
2978
+ }, {
2979
+ key: "validate",
2980
+ value: function(e, o) {
2981
+ return o >= 0 && o <= 59;
2982
+ }
2983
+ }, {
2984
+ key: "set",
2985
+ value: function(e, o, n) {
2986
+ return e.setUTCMinutes(n, 0, 0), e;
2987
+ }
2988
+ }]), r;
2989
+ }(b), nr = /* @__PURE__ */ function(t) {
2990
+ v(r, t);
2991
+ var i = m(r);
2992
+ function r() {
2993
+ var a;
2994
+ f(this, r);
2995
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
2996
+ o[n] = arguments[n];
2997
+ return a = i.call.apply(i, [this].concat(o)), u(d(a), "priority", 50), u(d(a), "incompatibleTokens", ["t", "T"]), a;
2998
+ }
2999
+ return p(r, [{
3000
+ key: "parse",
3001
+ value: function(e, o, n) {
3002
+ switch (o) {
3003
+ case "s":
3004
+ return k(D.second, e);
3005
+ case "so":
3006
+ return n.ordinalNumber(e, {
3007
+ unit: "second"
3008
+ });
3009
+ default:
3010
+ return V(o.length, e);
3011
+ }
3012
+ }
3013
+ }, {
3014
+ key: "validate",
3015
+ value: function(e, o) {
3016
+ return o >= 0 && o <= 59;
3017
+ }
3018
+ }, {
3019
+ key: "set",
3020
+ value: function(e, o, n) {
3021
+ return e.setUTCSeconds(n, 0), e;
3022
+ }
3023
+ }]), r;
3024
+ }(b), or = /* @__PURE__ */ function(t) {
3025
+ v(r, t);
3026
+ var i = m(r);
3027
+ function r() {
3028
+ var a;
3029
+ f(this, r);
3030
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
3031
+ o[n] = arguments[n];
3032
+ return a = i.call.apply(i, [this].concat(o)), u(d(a), "priority", 30), u(d(a), "incompatibleTokens", ["t", "T"]), a;
3033
+ }
3034
+ return p(r, [{
3035
+ key: "parse",
3036
+ value: function(e, o) {
3037
+ var n = function(c) {
3038
+ return Math.floor(c * Math.pow(10, -o.length + 3));
3039
+ };
3040
+ return P(V(o.length, e), n);
3041
+ }
3042
+ }, {
3043
+ key: "set",
3044
+ value: function(e, o, n) {
3045
+ return e.setUTCMilliseconds(n), e;
3046
+ }
3047
+ }]), r;
3048
+ }(b), sr = /* @__PURE__ */ function(t) {
3049
+ v(r, t);
3050
+ var i = m(r);
3051
+ function r() {
3052
+ var a;
3053
+ f(this, r);
3054
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
3055
+ o[n] = arguments[n];
3056
+ return a = i.call.apply(i, [this].concat(o)), u(d(a), "priority", 10), u(d(a), "incompatibleTokens", ["t", "T", "x"]), a;
3057
+ }
3058
+ return p(r, [{
3059
+ key: "parse",
3060
+ value: function(e, o) {
3061
+ switch (o) {
3062
+ case "X":
3063
+ return N(A.basicOptionalMinutes, e);
3064
+ case "XX":
3065
+ return N(A.basic, e);
3066
+ case "XXXX":
3067
+ return N(A.basicOptionalSeconds, e);
3068
+ case "XXXXX":
3069
+ return N(A.extendedOptionalSeconds, e);
3070
+ case "XXX":
3071
+ default:
3072
+ return N(A.extended, e);
3073
+ }
3074
+ }
3075
+ }, {
3076
+ key: "set",
3077
+ value: function(e, o, n) {
3078
+ return o.timestampIsSet ? e : new Date(e.getTime() - n);
3079
+ }
3080
+ }]), r;
3081
+ }(b), lr = /* @__PURE__ */ function(t) {
3082
+ v(r, t);
3083
+ var i = m(r);
3084
+ function r() {
3085
+ var a;
3086
+ f(this, r);
3087
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
3088
+ o[n] = arguments[n];
3089
+ return a = i.call.apply(i, [this].concat(o)), u(d(a), "priority", 10), u(d(a), "incompatibleTokens", ["t", "T", "X"]), a;
3090
+ }
3091
+ return p(r, [{
3092
+ key: "parse",
3093
+ value: function(e, o) {
3094
+ switch (o) {
3095
+ case "x":
3096
+ return N(A.basicOptionalMinutes, e);
3097
+ case "xx":
3098
+ return N(A.basic, e);
3099
+ case "xxxx":
3100
+ return N(A.basicOptionalSeconds, e);
3101
+ case "xxxxx":
3102
+ return N(A.extendedOptionalSeconds, e);
3103
+ case "xxx":
3104
+ default:
3105
+ return N(A.extended, e);
3106
+ }
3107
+ }
3108
+ }, {
3109
+ key: "set",
3110
+ value: function(e, o, n) {
3111
+ return o.timestampIsSet ? e : new Date(e.getTime() - n);
3112
+ }
3113
+ }]), r;
3114
+ }(b), ur = /* @__PURE__ */ function(t) {
3115
+ v(r, t);
3116
+ var i = m(r);
3117
+ function r() {
3118
+ var a;
3119
+ f(this, r);
3120
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
3121
+ o[n] = arguments[n];
3122
+ return a = i.call.apply(i, [this].concat(o)), u(d(a), "priority", 40), u(d(a), "incompatibleTokens", "*"), a;
3123
+ }
3124
+ return p(r, [{
3125
+ key: "parse",
3126
+ value: function(e) {
3127
+ return Je(e);
3128
+ }
3129
+ }, {
3130
+ key: "set",
3131
+ value: function(e, o, n) {
3132
+ return [new Date(n * 1e3), {
3133
+ timestampIsSet: !0
3134
+ }];
3135
+ }
3136
+ }]), r;
3137
+ }(b), dr = /* @__PURE__ */ function(t) {
3138
+ v(r, t);
3139
+ var i = m(r);
3140
+ function r() {
3141
+ var a;
3142
+ f(this, r);
3143
+ for (var e = arguments.length, o = new Array(e), n = 0; n < e; n++)
3144
+ o[n] = arguments[n];
3145
+ return a = i.call.apply(i, [this].concat(o)), u(d(a), "priority", 20), u(d(a), "incompatibleTokens", "*"), a;
3146
+ }
3147
+ return p(r, [{
3148
+ key: "parse",
3149
+ value: function(e) {
3150
+ return Je(e);
3151
+ }
3152
+ }, {
3153
+ key: "set",
3154
+ value: function(e, o, n) {
3155
+ return [new Date(n), {
3156
+ timestampIsSet: !0
3157
+ }];
3158
+ }
3159
+ }]), r;
3160
+ }(b), cr = {
3161
+ G: new Vi(),
3162
+ y: new Ei(),
3163
+ Y: new Oi(),
3164
+ R: new Si(),
3165
+ u: new Hi(),
3166
+ Q: new Ii(),
3167
+ q: new Fi(),
3168
+ M: new Ri(),
3169
+ L: new Ui(),
3170
+ w: new $i(),
3171
+ I: new qi(),
3172
+ d: new Wi(),
3173
+ D: new Qi(),
3174
+ E: new Bi(),
3175
+ e: new zi(),
3176
+ c: new Gi(),
3177
+ i: new Xi(),
3178
+ a: new Ki(),
3179
+ b: new Zi(),
3180
+ B: new Ji(),
3181
+ h: new er(),
3182
+ H: new tr(),
3183
+ K: new ir(),
3184
+ k: new rr(),
3185
+ m: new ar(),
3186
+ s: new nr(),
3187
+ S: new or(),
3188
+ X: new sr(),
3189
+ x: new lr(),
3190
+ t: new ur(),
3191
+ T: new dr()
3192
+ }, hr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, fr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, pr = /^'([^]*?)'?$/, vr = /''/g, mr = /\S/, gr = /[a-zA-Z]/;
3193
+ function fe(t, i, r, a) {
3194
+ var e, o, n, s, c, h, g, y, C, T, O, Y, U, W;
3195
+ M(3, arguments);
3196
+ var F = String(t), q = String(i), Q = re(), j = (e = (o = void 0) !== null && o !== void 0 ? o : Q.locale) !== null && e !== void 0 ? e : je;
3197
+ if (!j.match)
3198
+ throw new RangeError("locale must contain match property");
3199
+ var X = R((n = (s = (c = (h = void 0) !== null && h !== void 0 ? h : void 0) !== null && c !== void 0 ? c : Q.firstWeekContainsDate) !== null && s !== void 0 ? s : (g = Q.locale) === null || g === void 0 || (y = g.options) === null || y === void 0 ? void 0 : y.firstWeekContainsDate) !== null && n !== void 0 ? n : 1);
3200
+ if (!(X >= 1 && X <= 7))
3201
+ throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
3202
+ var ae = R((C = (T = (O = (Y = void 0) !== null && Y !== void 0 ? Y : void 0) !== null && O !== void 0 ? O : Q.weekStartsOn) !== null && T !== void 0 ? T : (U = Q.locale) === null || U === void 0 || (W = U.options) === null || W === void 0 ? void 0 : W.weekStartsOn) !== null && C !== void 0 ? C : 0);
3203
+ if (!(ae >= 0 && ae <= 6))
3204
+ throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
3205
+ if (q === "")
3206
+ return F === "" ? E(r) : /* @__PURE__ */ new Date(NaN);
3207
+ var ne = {
3208
+ firstWeekContainsDate: X,
3209
+ weekStartsOn: ae,
3210
+ locale: j
3211
+ }, oe = [new Ci()], ge = q.match(fr).map(function(S) {
3212
+ var x = S[0];
3213
+ if (x in _e) {
3214
+ var $ = _e[x];
3215
+ return $(S, j.formatLong);
3216
+ }
3217
+ return S;
3218
+ }).join("").match(hr), I = [], L = Le(ge), Z;
3219
+ try {
3220
+ var it = function() {
3221
+ var x = Z.value;
3222
+ !(a != null && a.useAdditionalWeekYearTokens) && Ge(x) && pe(x, q, t), !(a != null && a.useAdditionalDayOfYearTokens) && ze(x) && pe(x, q, t);
3223
+ var $ = x[0], he = cr[$];
3224
+ if (he) {
3225
+ var Oe = he.incompatibleTokens;
3226
+ if (Array.isArray(Oe)) {
3227
+ var Se = I.find(function(He) {
3228
+ return Oe.includes(He.token) || He.token === $;
3229
+ });
3230
+ if (Se)
3231
+ throw new RangeError("The format string mustn't contain `".concat(Se.fullToken, "` and `").concat(x, "` at the same time"));
3232
+ } else if (he.incompatibleTokens === "*" && I.length > 0)
3233
+ throw new RangeError("The format string mustn't contain `".concat(x, "` and any other token at the same time"));
3234
+ I.push({
3235
+ token: $,
3236
+ fullToken: x
3237
+ });
3238
+ var be = he.run(F, x, j.match, ne);
3239
+ if (!be)
3240
+ return {
3241
+ v: /* @__PURE__ */ new Date(NaN)
3242
+ };
3243
+ oe.push(be.setter), F = be.rest;
3244
+ } else {
3245
+ if ($.match(gr))
3246
+ throw new RangeError("Format string contains an unescaped latin alphabet character `" + $ + "`");
3247
+ if (x === "''" ? x = "'" : $ === "'" && (x = yr(x)), F.indexOf(x) === 0)
3248
+ F = F.slice(x.length);
3249
+ else
3250
+ return {
3251
+ v: /* @__PURE__ */ new Date(NaN)
3252
+ };
3253
+ }
3254
+ };
3255
+ for (L.s(); !(Z = L.n()).done; ) {
3256
+ var Me = it();
3257
+ if (B(Me) === "object")
3258
+ return Me.v;
3259
+ }
3260
+ } catch (S) {
3261
+ L.e(S);
3262
+ } finally {
3263
+ L.f();
3264
+ }
3265
+ if (F.length > 0 && mr.test(F))
3266
+ return /* @__PURE__ */ new Date(NaN);
3267
+ var rt = oe.map(function(S) {
3268
+ return S.priority;
3269
+ }).sort(function(S, x) {
3270
+ return x - S;
3271
+ }).filter(function(S, x, $) {
3272
+ return $.indexOf(S) === x;
3273
+ }).map(function(S) {
3274
+ return oe.filter(function(x) {
3275
+ return x.priority === S;
3276
+ }).sort(function(x, $) {
3277
+ return $.subPriority - x.subPriority;
3278
+ });
3279
+ }).map(function(S) {
3280
+ return S[0];
3281
+ }), ye = E(r);
3282
+ if (isNaN(ye.getTime()))
3283
+ return /* @__PURE__ */ new Date(NaN);
3284
+ var se = qe(ye, Be(ye)), De = {}, de = Le(rt), Pe;
3285
+ try {
3286
+ for (de.s(); !(Pe = de.n()).done; ) {
3287
+ var Ee = Pe.value;
3288
+ if (!Ee.validate(se, ne))
3289
+ return /* @__PURE__ */ new Date(NaN);
3290
+ var ce = Ee.set(se, De, ne);
3291
+ Array.isArray(ce) ? (se = ce[0], bi(De, ce[1])) : se = ce;
3292
+ }
3293
+ } catch (S) {
3294
+ de.e(S);
3295
+ } finally {
3296
+ de.f();
3297
+ }
3298
+ return se;
3299
+ }
3300
+ function yr(t) {
3301
+ return t.match(pr)[1].replace(vr, "'");
3302
+ }
3303
+ function $e(t, i) {
3304
+ M(2, arguments);
3305
+ var r = E(t), a = E(i);
3306
+ return r.getTime() > a.getTime();
3307
+ }
3308
+ function Ye(t, i) {
3309
+ M(2, arguments);
3310
+ var r = E(t), a = E(i);
3311
+ return r.getTime() < a.getTime();
3312
+ }
3313
+ const br = '*,*::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, #D0046C));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, #D0046C))}.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:rgba(204, 0, 0, 0.7019607843)}.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}', wr = br, _r = class {
3314
+ constructor(t) {
3315
+ z(this, t), this.sendValidityState = H(this, "sendValidityState", 7), this.sendInputValue = H(this, "sendInputValue", 7), this.touched = !1, this.formatDate = (i) => {
3316
+ const { year: r, month: a, day: e } = i, o = new Date(r, a, e);
3317
+ return mi(o, this.dateFormat || "yyyy-MM-dd");
3318
+ }, this.parseDate = (i) => {
3319
+ const r = fe(i, this.dateFormat || "yyyy-MM-dd", /* @__PURE__ */ new Date());
3320
+ return { year: r.getFullYear(), month: r.getMonth(), day: r.getDate() };
3321
+ }, this.handleBlur = () => {
3322
+ this.isValid = this.setValidity(), this.errorMessage = this.setErrorMessage(), this.touched = !0;
3323
+ }, this.setClientStyling = () => {
3324
+ let i = document.createElement("style");
3325
+ i.innerHTML = this.clientStyling, this.stylingContainer.prepend(i);
3326
+ }, 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 = void 0, this.emitOnClick = !1, this.errorMessage = void 0, this.isValid = void 0, this.limitStylingAppends = !1, this.showTooltip = !1;
3327
+ }
3328
+ handleStylingChange(t, i) {
3329
+ t !== i && this.setClientStyling();
3330
+ }
3331
+ validityChanged() {
3332
+ this.validityStateHandler({ valid: this.isValid, name: this.name }), this.emitValue == !0 && this.valueHandler({ name: this.name, value: this.value });
3333
+ }
3334
+ validityStateHandler(t) {
3335
+ this.sendValidityState.emit(t);
3336
+ }
3337
+ emitValueHandler(t) {
3338
+ t == !0 && this.isValid && this.valueHandler({ name: this.name, value: this.value });
3339
+ }
3340
+ valueHandler(t) {
3341
+ this.sendInputValue.emit(t);
3342
+ }
3343
+ handleClickOutside(t) {
3344
+ t.composedPath()[0] !== this.tooltipIconReference && t.composedPath()[0] !== this.tooltipReference && (this.showTooltip = !1);
3345
+ }
3346
+ connectedCallback() {
3347
+ var t, i;
3348
+ this.minDate = fe(((t = this.validation.min) === null || t === void 0 ? void 0 : t.toString()) || "", "yyyy-MM-dd", /* @__PURE__ */ new Date()), this.maxDate = fe(((i = this.validation.max) === null || i === void 0 ? void 0 : i.toString()) || "", "yyyy-MM-dd", /* @__PURE__ */ new Date());
3349
+ }
3350
+ componentDidRender() {
3351
+ !this.limitStylingAppends && this.stylingContainer && (this.clientStyling && this.setClientStyling(), this.limitStylingAppends = !0);
3352
+ }
3353
+ componentDidLoad() {
3354
+ if (this.datePicker = this.element.shadowRoot.querySelector("vaadin-date-picker"), this.inputReference = this.element.shadowRoot.querySelector("input"), this.datePicker) {
3355
+ const t = this.datePicker.shadowRoot.querySelector('[part="toggle-button"]');
3356
+ t && t.addEventListener("click", () => this.handleCalendarIconClick());
3357
+ }
3358
+ this.datePicker.i18n = Object.assign(Object.assign({}, this.datePicker.i18n), { formatDate: this.formatDate, parseDate: this.parseDate }), this.isValid = this.setValidity(), this.defaultValue && (this.value = this.defaultValue, this.valueHandler({ name: this.name, value: this.value }));
3359
+ }
3360
+ handleCalendarIconClick() {
3361
+ this.datePicker.opened && this.emitOnClick && window.postMessage({ type: `registration${this.name}Clicked` }, window.location.href);
3362
+ }
3363
+ handleInput(t) {
3364
+ this.value = t.target.value, this.touched = !0, this.valueAsDate = fe(this.value || "", "yyyy-MM-dd", /* @__PURE__ */ new Date()), this.isValid = this.setValidity(), this.errorMessage = this.setErrorMessage(), this.emitValueHandler(!0);
3365
+ }
3366
+ setValidity() {
3367
+ return Ye(this.valueAsDate, this.minDate) || $e(this.valueAsDate, this.maxDate) ? !1 : this.inputReference.validity.valid;
3368
+ }
3369
+ setErrorMessage() {
3370
+ if (Ye(this.valueAsDate, this.minDate) || $e(this.valueAsDate, this.maxDate))
3371
+ return _("dateError2", this.language);
3372
+ if (this.inputReference.validity.rangeUnderflow || this.inputReference.validity.rangeOverflow)
3373
+ return _("dateError", this.language, { values: { min: this.validation.min, max: this.validation.max } });
3374
+ if (this.inputReference.validity.valueMissing)
3375
+ return _("requiredError", this.language);
3376
+ }
3377
+ renderTooltip() {
3378
+ return this.showTooltip ? l("div", { class: `date__tooltip ${this.showTooltip ? "visible" : ""}`, ref: (t) => this.tooltipReference = t, innerHTML: this.tooltip }) : null;
3379
+ }
3380
+ render() {
3381
+ let t = "";
3382
+ return this.touched && (t = this.isValid == !0 || this.isValid == null ? "" : "text__input--invalid"), l("div", { key: "e20d8db3b90253a7719c4b25a33a201a72ec2cc9", class: `date__wrapper ${this.autofilled ? "date__wrapper--autofilled" : ""} ${this.name}__input`, ref: (i) => this.stylingContainer = i }, l("label", { key: "08847fd59e35a6690bf5e6b0882745c8f904388b", class: `date__label ${this.validation.mandatory ? "date__label--required" : ""}}`, htmlFor: `${this.name}__input` }, this.displayName, " ", this.validation.mandatory ? "*" : ""), l("vaadin-date-picker", { key: "aaf1d2d8c53c993fd13e4701e5dd7e0ad9fcf442", id: `${this.name}__input`, type: "date", class: `date__input ${t}`, value: this.defaultValue, readOnly: this.autofilled, placeholder: `${this.placeholder}`, required: this.validation.mandatory, max: this.validation.max, min: this.validation.min, onChange: (i) => this.handleInput(i), onBlur: this.handleBlur }), l("small", { key: "34f1dcfba1bbe0939d4b1de450cb9d19f99266dd", class: "date__error-message" }, this.errorMessage), this.tooltip && l("img", { key: "3de20db5b37aa321ab0ef71b7a758ee615613053", class: "date__tooltip-icon", src: G, alt: "", ref: (i) => this.tooltipIconReference = i, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip());
3383
+ }
3384
+ get element() {
3385
+ return Te(this);
3386
+ }
3387
+ static get watchers() {
3388
+ return {
3389
+ clientStyling: ["handleStylingChange"],
3390
+ isValid: ["validityChanged"],
3391
+ emitValue: ["emitValueHandler"]
3392
+ };
3393
+ }
3394
+ };
3395
+ _r.style = wr;
3396
+ const xr = '*,*::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, #D0046C));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, #D0046C))}.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}', Tr = xr, kr = class {
3397
+ constructor(t) {
3398
+ z(this, t), this.sendValidityState = H(this, "sendValidityState", 7), this.sendInputValue = H(this, "sendInputValue", 7), this.validationPattern = "", this.touched = !1, this.handleInput = (i) => {
3399
+ this.value = i.target.value, this.touched = !0, this.debounceTime && clearTimeout(this.debounceTime), this.debounceTime = setTimeout(() => {
3400
+ this.isValid = this.setValidity(), this.errorMessage = this.setErrorMessage(), this.emitValueHandler(!0);
3401
+ }, 500);
3402
+ }, this.handleBlur = () => {
3403
+ this.isValid = this.setValidity(), this.errorMessage = this.setErrorMessage(), this.touched = !0;
3404
+ }, this.setClientStyling = () => {
3405
+ let i = document.createElement("style");
3406
+ i.innerHTML = this.clientStyling, this.stylingContainer.prepend(i);
3407
+ }, 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;
3408
+ }
3409
+ handleStylingChange(t, i) {
3410
+ t !== i && this.setClientStyling();
3411
+ }
3412
+ validityChanged() {
3413
+ this.validityStateHandler({ valid: this.isValid, name: this.name }), this.emitValue == !0 && this.valueHandler({ name: this.name, value: this.value });
3414
+ }
3415
+ emitValueHandler(t) {
3416
+ t == !0 && this.isValid && this.valueHandler({ name: this.name, value: this.value });
3417
+ }
3418
+ validityStateHandler(t) {
3419
+ this.sendValidityState.emit(t);
3420
+ }
3421
+ valueHandler(t) {
3422
+ this.sendInputValue.emit(t);
3423
+ }
3424
+ handleClickOutside(t) {
3425
+ t.composedPath()[0] !== this.tooltipIconReference && t.composedPath()[0] !== this.tooltipReference && (this.showTooltip = !1);
3426
+ }
3427
+ valueChangedHandler(t) {
3428
+ this.isDuplicateInput && this.name === t.detail.name + "Duplicate" && (this.duplicateInputValue = t.detail.value);
3429
+ }
3430
+ connectedCallback() {
3431
+ this.validationPattern = this.setPattern();
3432
+ }
3433
+ componentDidRender() {
3434
+ !this.limitStylingAppends && this.stylingContainer && (this.clientStyling && this.setClientStyling(), this.limitStylingAppends = !0);
3435
+ }
3436
+ componentDidLoad() {
3437
+ this.isValid = this.setValidity(), this.defaultValue && (this.value = this.defaultValue, this.valueHandler({ name: this.name, value: this.value }));
3438
+ }
3439
+ setValidity() {
3440
+ return this.inputReference.validity.valid;
3441
+ }
3442
+ setPattern() {
3443
+ var t, i;
3444
+ if (((t = this.validation.custom) === null || t === void 0 ? void 0 : t.length) > 0)
3445
+ return (i = this.validation.custom.find((r) => r.rule === "regex")) === null || i === void 0 ? void 0 : i.pattern;
3446
+ }
3447
+ setErrorMessage() {
3448
+ var t, i, r, a;
3449
+ if (this.inputReference.validity.patternMismatch) {
3450
+ const e = (t = this.validation.custom.find((n) => n.rule === "regex")) === null || t === void 0 ? void 0 : t.errorKey, o = (i = this.validation.custom.find((n) => n.rule === "regex")) === null || i === void 0 ? void 0 : i.errorMessage;
3451
+ return _(`${e}`, this.language) ? _(`${e}`, this.language) : o;
3452
+ }
3453
+ if (this.inputReference.validity.tooShort || this.inputReference.validity.tooLong)
3454
+ return _("lengthError", this.language, { values: { minLength: this.validation.minLength, maxLength: this.validation.maxLength } });
3455
+ if (this.inputReference.validity.valueMissing)
3456
+ return _("requiredError", this.language);
3457
+ if (this.isDuplicateInput && this.duplicateInputValue !== this.value) {
3458
+ const e = (r = this.validation.custom.find((n) => n.rule === "duplicate-input")) === null || r === void 0 ? void 0 : r.errorKey, o = (a = this.validation.custom.find((n) => n.rule === "duplicate-input")) === null || a === void 0 ? void 0 : a.errorMessage;
3459
+ return _(`${e}`, this.language) ? _(`${e}`, this.language) : o;
3460
+ }
3461
+ }
3462
+ renderTooltip() {
3463
+ return this.showTooltip ? l("div", { class: `email__tooltip ${this.showTooltip ? "visible" : ""}`, ref: (t) => this.tooltipReference = t, innerHTML: this.tooltip }) : null;
3464
+ }
3465
+ render() {
3466
+ let t = "";
3467
+ return this.touched && (t = this.isValid == !0 || this.isValid == null ? "" : "text__input--invalid"), l("div", { key: "a46093cfafc840d2fd563ee9676ccd2f16fb1620", class: `email__wrapper ${this.autofilled ? "number__wrapper--autofilled" : ""} ${this.name}__input`, ref: (i) => this.stylingContainer = i }, l("div", { key: "2eab4a96efc36cdb94e9f92b2a161e208f0ebcd4", class: "email__wrapper--flex" }, l("label", { key: "f5ed857f61ea6763c5fe88590732258b4dedac1b", class: `email__label ${this.validation.mandatory ? "email__label--required" : ""}`, htmlFor: `${this.name}__input` }, this.displayName), l("div", { key: "58cadc7857cd91dec968852be71e0108f55fbda7", class: "email__wrapper--relative" }, this.tooltip && l("img", { key: "03009d036fde1c36b9348ac45cefa3389194260c", class: "email__tooltip-icon", src: G, alt: "", ref: (i) => this.tooltipIconReference = i, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), l("input", { key: "b2a9fd96ed301df5f1d7cf6f5a2a5b52f96ab189", id: `${this.name}__input`, type: "email", class: `email__input ${t}`, value: this.defaultValue, readOnly: this.autofilled, placeholder: `${this.placeholder}`, ref: (i) => this.inputReference = i, pattern: this.validationPattern, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, onInput: this.handleInput, onBlur: this.handleBlur }), l("small", { key: "edb17f53141a3406bfc657f80098b914044a8894", class: "email__error-message" }, this.errorMessage));
3468
+ }
3469
+ static get watchers() {
3470
+ return {
3471
+ clientStyling: ["handleStylingChange"],
3472
+ isValid: ["validityChanged"],
3473
+ emitValue: ["emitValueHandler"]
3474
+ };
3475
+ }
3476
+ };
3477
+ kr.style = Tr;
3478
+ const Cr = '*,*::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, #D0046C));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}', Vr = Cr, Mr = class {
3479
+ constructor(t) {
3480
+ z(this, t), this.sendValidityState = H(this, "sendValidityState", 7), this.sendInputValue = H(this, "sendInputValue", 7), this.validationPattern = "", this.touched = !1, this.handleInput = (i) => {
3481
+ this.value = i.target.value, this.touched = !0, this.debounceTime && clearTimeout(this.debounceTime), this.debounceTime = setTimeout(() => {
3482
+ this.isValid = this.setValidity(), this.errorMessage = this.setErrorMessage(), this.emitValueHandler(!0);
3483
+ }, 500);
3484
+ }, this.handleBlur = () => {
3485
+ this.isValid = this.setValidity(), this.errorMessage = this.setErrorMessage(), this.touched = !0;
3486
+ }, this.setClientStyling = () => {
3487
+ let i = document.createElement("style");
3488
+ i.innerHTML = this.clientStyling, this.stylingContainer.prepend(i);
3489
+ }, 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;
3490
+ }
3491
+ handleStylingChange(t, i) {
3492
+ t !== i && this.setClientStyling();
3493
+ }
3494
+ validityChanged() {
3495
+ this.validityStateHandler({ valid: this.isValid, name: this.name }), this.emitValue == !0 && this.valueHandler({ name: this.name, value: this.value });
3496
+ }
3497
+ validityStateHandler(t) {
3498
+ this.sendValidityState.emit(t);
3499
+ }
3500
+ emitValueHandler(t) {
3501
+ t == !0 && this.isValid && this.valueHandler({ name: this.name, value: this.value });
3502
+ }
3503
+ valueHandler(t) {
3504
+ this.sendInputValue.emit(t);
3505
+ }
3506
+ handleClickOutside(t) {
3507
+ t.composedPath()[0] !== this.tooltipIconReference && t.composedPath()[0] !== this.tooltipReference && (this.showTooltip = !1);
3508
+ }
3509
+ connectedCallback() {
3510
+ this.validationPattern = this.setPattern();
3511
+ }
3512
+ componentDidRender() {
3513
+ !this.limitStylingAppends && this.stylingContainer && (this.clientStyling && this.setClientStyling(), this.limitStylingAppends = !0);
3514
+ }
3515
+ componentDidLoad() {
3516
+ this.isValid = this.setValidity(), this.defaultValue && (this.value = this.defaultValue, this.valueHandler({ name: this.name, value: this.value }));
3517
+ }
3518
+ setValidity() {
3519
+ return this.inputReference.validity.valid;
3520
+ }
3521
+ setPattern() {
3522
+ var t, i;
3523
+ if (((t = this.validation.custom) === null || t === void 0 ? void 0 : t.length) > 0)
3524
+ return (i = this.validation.custom.find((r) => r.rule === "regex")) === null || i === void 0 ? void 0 : i.pattern;
3525
+ }
3526
+ setErrorMessage() {
3527
+ var t, i;
3528
+ if (this.inputReference.validity.patternMismatch) {
3529
+ const r = (t = this.validation.custom.find((e) => e.rule === "regex")) === null || t === void 0 ? void 0 : t.errorKey, a = (i = this.validation.custom.find((e) => e.rule === "regex")) === null || i === void 0 ? void 0 : i.errorMessage;
3530
+ return _(`${r}`, this.language) ? _(`${r}`, this.language) : a;
3531
+ }
3532
+ if (this.inputReference.validity.rangeUnderflow || this.inputReference.validity.rangeOverflow)
3533
+ return _("numberLengthError", this.language, { values: { min: this.validation.min, max: this.validation.max } });
3534
+ if (this.inputReference.validity.valueMissing)
3535
+ return _("requiredError", this.language);
3536
+ }
3537
+ renderTooltip() {
3538
+ return this.showTooltip ? l("div", { class: `number__tooltip ${this.showTooltip ? "visible" : ""}`, ref: (t) => this.tooltipReference = t, innerHTML: this.tooltip }) : null;
3539
+ }
3540
+ render() {
3541
+ let t = "";
3542
+ return this.touched && (t = this.isValid == !0 || this.isValid == null ? "" : "text__input--invalid"), l("div", { key: "841265bba6b75cc61a0eac1450c3f5aa5f917a2e", class: `number__wrapper ${this.autofilled ? "number__wrapper--autofilled" : ""} ${this.name}__input`, ref: (i) => this.stylingContainer = i }, l("div", { key: "645c7817cf5a0bdc352de9d8c0698fde235aa6d3", class: "number__wrapper--flex" }, l("label", { key: "3343cbbb8482b71cd152161a8d422f318f07f3fe", class: `number__label ${this.validation.mandatory ? "number__label--required" : ""}`, htmlFor: `${this.name}__input` }, this.displayName), l("div", { key: "1f3341b2127095870610fc0e0b4b5d220c5d2e2c", class: "number__wrapper--relative" }, this.tooltip && l("img", { key: "8bbe2fe9f62347cbcd37b753d4a1b0718dc39091", class: "number__tooltip-icon", src: G, alt: "", ref: (i) => this.tooltipIconReference = i, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), l("input", { key: "100401abdc33069f34e27e0807c9f31ddf7e42ec", ref: (i) => this.inputReference = i, type: "number", value: this.defaultValue, readOnly: this.autofilled, id: `${this.name}__input`, class: `number__input ${t}`, pattern: this.validationPattern, placeholder: `${this.placeholder}`, required: this.validation.mandatory, max: this.validation.max, min: this.validation.min, onInput: this.handleInput, onBlur: this.handleBlur }), l("small", { key: "db1e0043bb9b6de2ad8e18f49f96152b9451b93c", class: "number__error-message" }, this.errorMessage));
3543
+ }
3544
+ static get watchers() {
3545
+ return {
3546
+ clientStyling: ["handleStylingChange"],
3547
+ isValid: ["validityChanged"],
3548
+ emitValue: ["emitValueHandler"]
3549
+ };
3550
+ }
3551
+ };
3552
+ Mr.style = Vr;
3553
+ const Dr = "*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.radio__fieldset{border:none;position:relative}.radio__wrapper{display:flex;gap:5px}.radio__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.radio__tooltip-icon{position:absolute;right:0;bottom:10px}.radio__tooltip{position:absolute;bottom:35px;right:10px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.radio__tooltip.visible{opacity:1}", Pr = Dr, Er = class {
3554
+ constructor(t) {
3555
+ z(this, t), this.sendInputValue = H(this, "sendInputValue", 7), this.sendValidityState = H(this, "sendValidityState", 7), this.setClientStyling = () => {
3556
+ let i = document.createElement("style");
3557
+ i.innerHTML = this.clientStyling, this.stylingContainer.prepend(i);
3558
+ }, this.name = void 0, this.displayName = void 0, this.optionsGroup = void 0, this.validation = void 0, this.tooltip = void 0, this.language = void 0, this.emitValue = void 0, this.clientStyling = "", this.errorMessage = void 0, this.isValid = void 0, this.limitStylingAppends = !1, this.showTooltip = !1;
3559
+ }
3560
+ handleStylingChange(t, i) {
3561
+ t !== i && this.setClientStyling();
3562
+ }
3563
+ validityChanged() {
3564
+ this.validityStateHandler({ valid: this.isValid, name: this.name }), this.emitValue == !0 && this.valueHandler({ name: this.name, value: this.value });
3565
+ }
3566
+ emitValueHandler(t) {
3567
+ t == !0 && this.isValid && this.valueHandler({ name: this.name, value: this.value });
3568
+ }
3569
+ valueHandler(t) {
3570
+ this.sendInputValue.emit(t);
3571
+ }
3572
+ validityStateHandler(t) {
3573
+ this.sendValidityState.emit(t);
3574
+ }
3575
+ handleClickOutside(t) {
3576
+ t.composedPath()[0] !== this.tooltipIconReference && t.composedPath()[0] !== this.tooltipReference && (this.showTooltip = !1);
3577
+ }
3578
+ componentDidRender() {
3579
+ !this.limitStylingAppends && this.stylingContainer && (this.clientStyling && this.setClientStyling(), this.limitStylingAppends = !0);
3580
+ }
3581
+ handleClick(t) {
3582
+ this.value = t.target.value, this.isValid = this.setValidity(), this.errorMessage = this.setErrorMessage(), this.emitValueHandler(!0);
3583
+ }
3584
+ setValidity() {
3585
+ return this.inputReference.validity.valid;
3586
+ }
3587
+ setErrorMessage() {
3588
+ if (this.inputReference.validity.valueMissing)
3589
+ return _("requiredError", this.language);
3590
+ }
3591
+ renderTooltip() {
3592
+ return this.showTooltip ? l("div", { class: `radio__tooltip ${this.showTooltip ? "visible" : ""}`, ref: (t) => this.tooltipReference = t, innerHTML: this.tooltip }) : null;
3593
+ }
3594
+ render() {
3595
+ return l("fieldset", { key: "29ff8fcc910622397750532629ac0c202c9726ba", class: `radio__fieldset ${this.name}__input`, ref: (t) => this.stylingContainer = t }, l("legend", { key: "cdab5b331863f3d31aab50c1d95b5a8845d53329", class: "radio__legend" }, this.displayName, ":"), this.optionsGroup.map((t) => l("div", { class: "radio__wrapper" }, l("input", { type: "radio", class: "radio__input", id: `${t.label}__input`, ref: (i) => this.inputReference = i, value: t.value, name: this.name, required: this.validation.mandatory, onClick: (i) => this.handleClick(i) }), l("label", { htmlFor: `${t.label}__input` }, t.label))), l("small", { key: "bd6cd89510e7ace1348b391f3ce9ba334a03e695", class: "radio__error-message" }, this.errorMessage), this.tooltip && l("img", { key: "27036c51c89612dbb87e5248355d3a5466c49705", class: "radio__tooltip-icon", src: G, alt: "", ref: (t) => this.tooltipIconReference = t, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip());
3596
+ }
3597
+ static get watchers() {
3598
+ return {
3599
+ clientStyling: ["handleStylingChange"],
3600
+ isValid: ["validityChanged"],
3601
+ emitValue: ["emitValueHandler"]
3602
+ };
3603
+ }
3604
+ };
3605
+ Er.style = Pr;
3606
+ const Or = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}:host{height:100%}vaadin-combo-box>input{background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--registration-typography, var(--emw--color-black, #000000));font-weight:300;font-size:16px;-webkit-font-smoothing:initial;}.select{font-family:"Roboto";font-style:normal}.select__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.select__wrapper--autofilled{pointer-events:none}.select__wrapper--autofilled .select__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__wrapper--autofilled .select__input::part(input-field){color:var(--emw--color-black, #000000)}.select__wrapper--flex{display:flex;gap:5px}.select__wrapper--relative{position:relative}.select__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.select__input{border:none;width:inherit;position:relative}.select__input[focused]::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.select__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__input vaadin-date-picker-overlay-content>vaadin-button{color:var(--emw--color-black, #000000)}.select__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:0;height:44px}.select__input::part(toggle-button){position:relative;right:10px}.select__input>input{padding:5px 15px}.select__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__tooltip-icon{width:16px;height:auto}.select__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.select__tooltip.visible{opacity:1}', Sr = Or, Hr = class {
3607
+ constructor(t) {
3608
+ z(this, t), this.sendValidityState = H(this, "sendValidityState", 7), this.sendInputValue = H(this, "sendInputValue", 7), this.touched = !1, this.handleChange = (i) => {
3609
+ this.touched = !0;
3610
+ const r = i.target.value, a = this.options.find((e) => e.value.toLowerCase() === r.toLowerCase());
3611
+ a ? this.value = a.value : this.value = r, this.isValid = this.setValidity(), this.errorMessage = this.setErrorMessage(), this.emitValueHandler(!0);
3612
+ }, this.handleBlur = (i) => {
3613
+ this.value = i.target.value, this.touched = !0, this.isValid = this.setValidity(), this.errorMessage = this.setErrorMessage(), this.validityStateHandler({ valid: this.isValid, name: this.name });
3614
+ }, this.setClientStyling = () => {
3615
+ let i = document.createElement("style");
3616
+ i.innerHTML = this.clientStyling, this.stylingContainer.prepend(i);
3617
+ }, this.name = void 0, this.displayName = void 0, this.placeholder = void 0, this.action = void 0, this.defaultValue = "", this.autofilled = void 0, this.tooltip = void 0, this.options = [], this.validation = void 0, this.language = void 0, this.emitValue = void 0, this.clientStyling = "", this.errorMessage = void 0, this.isValid = void 0, this.limitStylingAppends = !1, this.showTooltip = !1;
3618
+ }
3619
+ handleStylingChange(t, i) {
3620
+ t !== i && this.setClientStyling();
3621
+ }
3622
+ validityChanged() {
3623
+ this.validityStateHandler({ valid: this.isValid, name: this.name }), this.emitValue == !0 && this.valueHandler({ name: this.name, value: this.value });
3624
+ }
3625
+ validityStateHandler(t) {
3626
+ this.sendValidityState.emit(t);
3627
+ }
3628
+ emitValueHandler(t) {
3629
+ t == !0 && this.isValid && this.valueHandler({ name: this.name, value: this.value });
3630
+ }
3631
+ valueHandler(t) {
3632
+ this.sendInputValue.emit(t);
3633
+ }
3634
+ handleClickOutside(t) {
3635
+ t.composedPath()[0] !== this.tooltipIconReference && t.composedPath()[0] !== this.tooltipReference && (this.showTooltip = !1);
3636
+ }
3637
+ connectedCallback() {
3638
+ this.displayedOptions = this.options.map((t) => ({
3639
+ label: t.label,
3640
+ value: t.value.toUpperCase()
3641
+ }));
3642
+ }
3643
+ componentWillLoad() {
3644
+ if (this.action && !this.options.length && this.action.split(" ")[0] == "GET") {
3645
+ const t = this.action.split(" ")[1];
3646
+ return this.getOptions(t).then((i) => {
3647
+ const r = Object.keys(i)[0];
3648
+ this.displayedOptions = i[r].map((a) => ({ label: a.Name, value: a.Alpha2Code }));
3649
+ });
3650
+ }
3651
+ }
3652
+ componentDidRender() {
3653
+ !this.limitStylingAppends && this.stylingContainer && (this.clientStyling && this.setClientStyling(), this.limitStylingAppends = !0);
3654
+ }
3655
+ componentDidLoad() {
3656
+ this.inputReference = this.element.shadowRoot.querySelector("input"), this.isValid = this.setValidity(), this.defaultValue && (this.value = this.defaultValue.toUpperCase(), this.valueHandler({ name: this.name, value: this.value }));
3657
+ }
3658
+ getOptions(t) {
3659
+ const i = new URL(t);
3660
+ return new Promise((r, a) => {
3661
+ fetch(i.href).then((e) => e.json()).then((e) => {
3662
+ r(e);
3663
+ }).catch((e) => {
3664
+ console.error(e), a(e);
3665
+ });
3666
+ });
3667
+ }
3668
+ setValidity() {
3669
+ return this.inputReference.validity.valid;
3670
+ }
3671
+ setErrorMessage() {
3672
+ if (this.inputReference.validity.valueMissing)
3673
+ return _("requiredError", this.language);
3674
+ }
3675
+ renderTooltip() {
3676
+ return this.showTooltip ? l("div", { class: `select__tooltip ${this.showTooltip ? "visible" : ""}`, ref: (t) => this.tooltipReference = t, innerHTML: this.tooltip }) : null;
3677
+ }
3678
+ render() {
3679
+ let t = "";
3680
+ return this.touched && (t = this.isValid == !0 || this.isValid == null ? "" : "text__input--invalid"), l("div", { key: "46061c64a7cb7dad5b2ca1cd38e27b2ea12e88ce", class: `select__wrapper ${this.autofilled ? "select__wrapper--autofilled" : ""} ${this.name}__input`, ref: (i) => this.stylingContainer = i }, l("div", { key: "cebc0fad817eff49669c4df47d47a4d97c5db317", class: "select__wrapper--flex" }, l("label", { key: "a5360d9342ca9c446bdff6b84a717aa47fa71a4f", class: "select__label", htmlFor: `${this.name}__input` }, `${this.displayName} ${this.validation.mandatory ? "*" : ""}`), l("div", { key: "78d699e2a57122dd74f4d414211b586d19f030e7", class: "select__wrapper--relative" }, this.tooltip && l("img", { key: "e6fb14604b078a0b0f284d9234262c76e4c581f8", class: "select__tooltip-icon", src: G, alt: "", ref: (i) => this.tooltipIconReference = i, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), l("vaadin-combo-box", { key: "91c86ee20ee639ba0e4338ba5501621486c94fa4", name: this.name, id: `${this.name}__input`, class: `select__input ${t} ${this.autofilled ? "select__input--autofilled" : ""}`, "item-label-path": "label", "item-value-path": "value", readOnly: this.autofilled, required: this.validation.mandatory, value: this.defaultValue, placeholder: `${this.placeholder}`, items: this.displayedOptions, onChange: this.handleChange, onBlur: this.handleBlur }), l("small", { key: "18a6172cb9566f000d5f397d759eb95a06fbc7b4", class: "select__error-message" }, this.errorMessage));
3681
+ }
3682
+ get element() {
3683
+ return Te(this);
3684
+ }
3685
+ static get watchers() {
3686
+ return {
3687
+ clientStyling: ["handleStylingChange"],
3688
+ isValid: ["validityChanged"],
3689
+ emitValue: ["emitValueHandler"]
3690
+ };
3691
+ }
3692
+ };
3693
+ Hr.style = Sr;
3694
+ const Ir = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.tel{font-family:"Roboto";font-style:normal}.tel__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.tel__wrapper--autofilled{pointer-events:none}.tel__wrapper--autofilled .tel__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__wrapper--autofilled .tel__input::part(input-field){color:var(--emw--color-black, #000000)}.tel__wrapper--flex{width:inherit;display:flex;align-items:center;border-radius:4px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);overflow:hidden}.tel__wrapper--flex:focus-within{border-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.tel__wrapper--flex--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__wrapper--flex-label{display:flex;gap:5px}.tel__wrapper--flex--relative{position:relative}.tel__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.tel__prefix{--vaadin-field-default-width:90px}.tel__prefix[focus]{outline:none}.tel__prefix::part(input-field){border-radius:0 5px 5px 0;background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:1.5;border:none;border-right:2px solid #DDE0EE;border-image-source:linear-gradient(to bottom, rgba(221, 224, 238, 0) 25%, rgb(221, 224, 238) 25%, rgb(221, 224, 238) 75%, rgba(221, 224, 238, 0) 75%);border-image-slice:1;border-image-repeat:round}.tel__prefix::part(input-field):hover{background-color:var(--emw--color-white, #FFFFFF)}.tel__prefix::part(toggle-button){color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__input{font-family:inherit;border-radius:5px;width:100%;color:var(--emw--registration-typography, var(--emw--color-black, #000000));background-color:var(--emw--color-white, #FFFFFF);border:none;width:inherit;position:relative;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:42px;-moz-appearance:textfield;}.tel__input:focus{outline:none}.tel__input::-webkit-outer-spin-button,.tel__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.tel__input::placeholder{color:var(--emw--color-gray-150, #979797)}.tel__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__tooltip-icon{width:16px;height:auto}.tel__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.tel__tooltip.visible{opacity:1}', Fr = Ir, Rr = class {
3695
+ constructor(t) {
3696
+ z(this, t), this.sendValidityState = H(this, "sendValidityState", 7), this.sendInputValue = H(this, "sendInputValue", 7), this.validationPattern = "", this.touched = !1, this.handleInput = (i) => {
3697
+ this.phoneValue = i.target.value, this.value = { prefix: this.prefixValue, phone: this.phoneValue }, this.touched = !0, this.debounceTime && clearTimeout(this.debounceTime), this.debounceTime = setTimeout(() => {
3698
+ this.isValid = this.setValidity(), this.errorMessage = this.setErrorMessage(), this.emitValueHandler(!0);
3699
+ }, 500);
3700
+ }, this.handleBlur = () => {
3701
+ this.isValid = this.setValidity(), this.touched = !0, this.errorMessage = this.setErrorMessage();
3702
+ }, this.setClientStyling = () => {
3703
+ let i = document.createElement("style");
3704
+ i.innerHTML = this.clientStyling, this.stylingContainer.prepend(i);
3705
+ }, this.name = void 0, this.displayName = void 0, this.placeholder = void 0, this.showLabels = void 0, this.action = void 0, this.validation = void 0, this.defaultValue = void 0, this.autofilled = void 0, this.tooltip = void 0, this.language = void 0, this.emitValue = void 0, this.clientStyling = "", this.isValid = void 0, this.errorMessage = void 0, this.limitStylingAppends = !1, this.showTooltip = !1;
3706
+ }
3707
+ handleStylingChange(t, i) {
3708
+ t !== i && this.setClientStyling();
3709
+ }
3710
+ validityChanged() {
3711
+ this.validityStateHandler({ valid: this.isValid, name: this.name }), this.emitValue == !0 && this.valueHandler({ name: this.name, value: this.value, type: "tel" });
3712
+ }
3713
+ validityStateHandler(t) {
3714
+ this.sendValidityState.emit(t);
3715
+ }
3716
+ emitValueHandler(t) {
3717
+ t == !0 && this.isValid && this.valueHandler({ name: this.name, value: this.value, type: "tel" });
3718
+ }
3719
+ valueHandler(t) {
3720
+ this.sendInputValue.emit(t);
3721
+ }
3722
+ handleClickOutside(t) {
3723
+ t.composedPath()[0] !== this.tooltipIconReference && t.composedPath()[0] !== this.tooltipReference && (this.showTooltip = !1);
3724
+ }
3725
+ connectedCallback() {
3726
+ this.validationPattern = this.setPattern(), this.defaultValue && (this.prefixValue = this.defaultValue.prefix ? this.defaultValue.prefix : this.defaultValue, this.phoneValue = this.defaultValue.phone || null);
3727
+ }
3728
+ componentWillLoad() {
3729
+ if (this.action && this.action.split(" ")[0] == "GET") {
3730
+ const t = this.action.split(" ")[1];
3731
+ return this.getPhoneCodes(t).then((i) => {
3732
+ this.phoneCodesOptions = i.phoneCodes.map((r) => typeof r == "object" && r.Prefix ? { label: r.Prefix, value: r.Prefix } : { label: r, value: r });
3733
+ });
3734
+ }
3735
+ }
3736
+ componentDidRender() {
3737
+ !this.limitStylingAppends && this.stylingContainer && (this.clientStyling && this.setClientStyling(), this.limitStylingAppends = !0);
3738
+ }
3739
+ componentDidLoad() {
3740
+ this.isValid = this.setValidity(), this.defaultValue && (this.value = this.defaultValue, this.valueHandler({ name: this.name, value: this.value, type: "tel" }));
3741
+ }
3742
+ getPhoneCodes(t) {
3743
+ const i = new URL(t);
3744
+ return new Promise((r, a) => {
3745
+ fetch(i.href).then((e) => e.json()).then((e) => {
3746
+ r(e);
3747
+ }).catch((e) => {
3748
+ console.error(e), a(e);
3749
+ });
3750
+ });
3751
+ }
3752
+ handlePrefixInput(t) {
3753
+ this.prefixValue = t.target.value, this.value = { prefix: this.prefixValue, phone: this.phoneValue }, this.emitValueHandler(!0);
3754
+ }
3755
+ setValidity() {
3756
+ return this.inputReference.validity.valid;
3757
+ }
3758
+ setPattern() {
3759
+ var t, i;
3760
+ if (((t = this.validation.custom) === null || t === void 0 ? void 0 : t.length) > 0)
3761
+ return (i = this.validation.custom.find((r) => r.rule === "regex")) === null || i === void 0 ? void 0 : i.pattern;
3762
+ }
3763
+ setErrorMessage() {
3764
+ var t, i;
3765
+ if (this.inputReference.validity.patternMismatch) {
3766
+ const r = (t = this.validation.custom.find((e) => e.rule === "regex")) === null || t === void 0 ? void 0 : t.errorKey, a = (i = this.validation.custom.find((e) => e.rule === "regex")) === null || i === void 0 ? void 0 : i.errorMessage;
3767
+ return _(`${r}`, this.language) ? _(`${r}`, this.language) : a;
3768
+ }
3769
+ if (this.inputReference.validity.tooShort || this.inputReference.validity.tooLong)
3770
+ return _("lengthError", this.language, { values: { minLength: this.validation.minLength, maxLength: this.validation.maxLength } });
3771
+ if (this.inputReference.validity.valueMissing)
3772
+ return _("requiredError", this.language);
3773
+ }
3774
+ renderTooltip() {
3775
+ return this.showTooltip ? l("div", { class: `tel__tooltip ${this.showTooltip ? "visible" : ""}`, ref: (t) => this.tooltipReference = t, innerHTML: this.tooltip }) : null;
3776
+ }
3777
+ render() {
3778
+ let t = "";
3779
+ return this.touched && (t = this.isValid == !0 || this.isValid == null ? "" : "text__input--invalid"), l("div", { key: "a5804fccd849a4e8f2deb346479fa782113ee4d8", class: `tel__wrapper ${this.autofilled ? "tel__wrapper--autofilled" : ""} ${this.name}__input`, ref: (i) => this.stylingContainer = i }, l("div", { key: "403490057cb5a5ae95b850ee7e1350d354668566", class: "tel__wrapper--flex-label" }, l("label", { key: "64c14d728022fdf959c7710fa1c35c8e340be0cc", class: `tel__label ${this.validation.mandatory ? "tel__label--required" : ""}`, htmlFor: `${this.name}__input` }, this.displayName), l("div", { key: "14be3f2d3fd1352f4b69fee63399b03b99dd3338", class: "tel__wrapper--relative" }, this.tooltip && l("img", { key: "b7e3f1d243877bc0c8911894bf4a624fc647050e", class: "tel__tooltip-icon", src: G, alt: "", ref: (i) => this.tooltipIconReference = i, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), l("div", { key: "43e55c0e386b59b3c86d59ca5919f95c387a2049", class: `tel__wrapper--flex ${t}` }, l("vaadin-combo-box", { key: "9c7ba7049f325eeba05b6bfac98d10093a2342fc", class: "tel__prefix", items: this.phoneCodesOptions, value: this.prefixValue, readOnly: this.autofilled, onChange: (i) => this.handlePrefixInput(i) }), l("input", { key: "24b4723063ce7724c2599979457986f315e7a687", type: "tel", ref: (i) => this.inputReference = i, id: `${this.name}__input`, readOnly: this.autofilled, class: "tel__input", value: this.phoneValue, placeholder: `${this.placeholder}`, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, pattern: this.validationPattern, onInput: this.handleInput, onBlur: this.handleBlur })), l("small", { key: "d95f2dc869e4ba7ecfc7ff6b0122f5dad3c34f27", class: "tel__error-message" }, this.errorMessage));
3780
+ }
3781
+ static get watchers() {
3782
+ return {
3783
+ clientStyling: ["handleStylingChange"],
3784
+ isValid: ["validityChanged"],
3785
+ emitValue: ["emitValueHandler"]
3786
+ };
3787
+ }
3788
+ };
3789
+ Rr.style = Fr;
3790
+ const Ur = '*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{font-family:"Roboto";font-style:normal}.text__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px;height:100%}.text__wrapper--autofilled{pointer-events:none}.text__wrapper--autofilled .text__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__wrapper--autofilled .text__input::part(input-field){color:var(--emw--color-black, #000000)}.text__wrapper--flex{display:flex;gap:5px}.text__wrapper--relative{position:relative}.text__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.text__input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);border-radius:5px;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px}.text__input:focus{border:1px solid var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__input::placeholder{color:var(--emw--color-gray-150, #828282)}.text__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__tooltip-icon{width:16px;height:auto}.text__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.text__tooltip.visible{opacity:1}', Lr = Ur, $r = class {
3791
+ constructor(t) {
3792
+ z(this, t), this.sendValidityState = H(this, "sendValidityState", 7), this.sendInputValue = H(this, "sendInputValue", 7), this.value = "", this.validationPattern = "", this.duplicateInputValue = null, this.touched = !1, this.handleInput = (i) => {
3793
+ this.value = i.target.value, this.touched = !0, this.debounceTime && clearTimeout(this.debounceTime), this.debounceTime = setTimeout(() => {
3794
+ this.isValid = this.setValidity(), this.errorMessage = this.setErrorMessage(), this.validityStateHandler({ valid: this.isValid, name: this.name }), this.emitValueHandler(!0);
3795
+ }, 500);
3796
+ }, this.handleBlur = (i) => {
3797
+ this.value = i.target.value, this.touched = !0, this.isValid = this.setValidity(), this.errorMessage = this.setErrorMessage(), this.validityStateHandler({ valid: this.isValid, name: this.name });
3798
+ }, this.setClientStyling = () => {
3799
+ let i = document.createElement("style");
3800
+ i.innerHTML = this.clientStyling, this.stylingContainer.prepend(i);
3801
+ }, this.name = void 0, this.displayName = void 0, this.placeholder = void 0, this.validation = void 0, this.defaultValue = "", this.autofilled = void 0, this.tooltip = void 0, this.language = void 0, this.checkValidity = void 0, this.emitValue = void 0, this.isDuplicateInput = void 0, this.clientStyling = "", this.isValid = void 0, this.errorMessage = "", this.limitStylingAppends = !1, this.showTooltip = !1;
3802
+ }
3803
+ handleStylingChange(t, i) {
3804
+ t !== i && this.setClientStyling();
3805
+ }
3806
+ validityChanged() {
3807
+ this.validityStateHandler({ valid: this.isValid, name: this.name }), this.emitValue == !0 && this.valueHandler({ name: this.name, value: this.value });
3808
+ }
3809
+ emitValueHandler(t) {
3810
+ t == !0 && this.isValid && this.valueHandler({ name: this.name, value: this.value });
3811
+ }
3812
+ validityStateHandler(t) {
3813
+ this.sendValidityState.emit(t);
3814
+ }
3815
+ valueHandler(t) {
3816
+ this.sendInputValue.emit(t);
3817
+ }
3818
+ handleClickOutside(t) {
3819
+ t.composedPath()[0] !== this.tooltipIconReference && t.composedPath()[0] !== this.tooltipReference && (this.showTooltip = !1);
3820
+ }
3821
+ valueChangedHandler(t) {
3822
+ this.isDuplicateInput && this.name === t.detail.name + "Duplicate" && (this.duplicateInputValue = t.detail.value, this.touched && (this.isValid = this.setValidity(), this.errorMessage = this.setErrorMessage())), this.name === t.detail.name + "Duplicate" && this.name.replace("Duplicate", "") === t.detail.name && this.touched === !0 && (this.isValid = this.setValidity(), this.errorMessage = this.setErrorMessage());
3823
+ }
3824
+ connectedCallback() {
3825
+ this.validationPattern = this.setPattern();
3826
+ }
3827
+ componentDidRender() {
3828
+ !this.limitStylingAppends && this.stylingContainer && (this.clientStyling && this.setClientStyling(), this.limitStylingAppends = !0);
3829
+ }
3830
+ componentDidLoad() {
3831
+ this.defaultValue && (this.value = this.defaultValue, this.valueHandler({ name: this.name, value: this.value }), this.isDuplicateInput && (this.touched = !0)), this.isValid = this.setValidity();
3832
+ }
3833
+ setValidity() {
3834
+ var t;
3835
+ return this.isDuplicateInput && this.duplicateInputValue !== this.value ? !1 : (t = this.inputReference) === null || t === void 0 ? void 0 : t.validity.valid;
3836
+ }
3837
+ setPattern() {
3838
+ var t, i;
3839
+ if (((t = this.validation.custom) === null || t === void 0 ? void 0 : t.length) > 0)
3840
+ return (i = this.validation.custom.find((r) => r.rule === "regex")) === null || i === void 0 ? void 0 : i.pattern;
3841
+ }
3842
+ setErrorMessage() {
3843
+ var t, i, r, a;
3844
+ if (this.inputReference.validity.patternMismatch) {
3845
+ const e = (t = this.validation.custom.find((n) => n.rule === "regex")) === null || t === void 0 ? void 0 : t.errorKey, o = (i = this.validation.custom.find((n) => n.rule === "regex")) === null || i === void 0 ? void 0 : i.errorMessage;
3846
+ return _(`${e}`, this.language) ? _(`${e}`, this.language) : o;
3847
+ }
3848
+ if (this.inputReference.validity.tooShort || this.inputReference.validity.tooLong)
3849
+ return _("lengthError", this.language, { values: { minLength: this.validation.minLength, maxLength: this.validation.maxLength } });
3850
+ if (this.inputReference.validity.valueMissing)
3851
+ return _("requiredError", this.language);
3852
+ if (this.isDuplicateInput && this.duplicateInputValue !== this.value) {
3853
+ const e = (r = this.validation.custom.find((n) => n.rule === "duplicate-input")) === null || r === void 0 ? void 0 : r.errorKey, o = (a = this.validation.custom.find((n) => n.rule === "duplicate-input")) === null || a === void 0 ? void 0 : a.errorMessage;
3854
+ return _(`${e}`, this.language) ? _(`${e}`, this.language) : o;
3855
+ }
3856
+ }
3857
+ renderTooltip() {
3858
+ return this.showTooltip ? l("div", { class: `text__tooltip ${this.showTooltip ? "visible" : ""}`, ref: (t) => this.tooltipReference = t, innerHTML: this.tooltip }) : null;
3859
+ }
3860
+ render() {
3861
+ let t = "";
3862
+ return this.touched && (t = this.isValid == !0 || this.isValid == null ? "" : "text__input--invalid"), l("div", { key: "e297f841a57c6acf854535a786916aa641831556", class: `text__wrapper ${this.name}__input ${this.autofilled ? "text__wrapper--autofilled" : ""}`, ref: (i) => this.stylingContainer = i }, l("div", { key: "7fd284a58e58d5c61a03caf4cc317b8dd9dbd82f", class: "text__wrapper--flex" }, l("label", { key: "f80a2003386ec867e5310190a7568105c2912569", class: `text__label ${this.validation.mandatory ? "text__label--required" : ""}`, htmlFor: `${this.name}__input` }, this.displayName), l("div", { key: "e8f5197bd370100406d600be5a336f85f4c6934d", class: "text__wrapper--relative" }, this.tooltip && l("img", { key: "ff8c38fe3495a41a41ac4a1569169ce26a1ec9ce", class: "text__tooltip-icon", src: G, alt: "", ref: (i) => this.tooltipIconReference = i, onClick: () => this.showTooltip = !this.showTooltip }), this.renderTooltip())), l("input", { key: "581106e515810ab43f7d6b6eda504ccf23906b0e", name: this.name, id: `${this.name}__input`, value: this.defaultValue, type: "text", class: `text__input ${t}`, placeholder: `${this.placeholder}`, ref: (i) => this.inputReference = i, readOnly: this.autofilled, pattern: this.validationPattern, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, onInput: this.handleInput, onBlur: this.handleBlur }), l("small", { key: "20620710026982d5fb670a3173bab57a7fa9e7ce", class: "text__error-message" }, this.errorMessage));
3863
+ }
3864
+ static get watchers() {
3865
+ return {
3866
+ clientStyling: ["handleStylingChange"],
3867
+ isValid: ["validityChanged"],
3868
+ emitValue: ["emitValueHandler"]
3869
+ };
3870
+ }
3871
+ };
3872
+ $r.style = Lr;
3873
+ export {
3874
+ ot as checkbox_group_input,
3875
+ ut as checkbox_input,
3876
+ _r as date_input,
3877
+ kr as email_input,
3878
+ Mr as number_input,
3879
+ Er as radio_input,
3880
+ Hr as select_input,
3881
+ Rr as tel_input,
3882
+ $r as text_input
3883
+ };