@everymatrix/player-account-controller 1.54.12 → 1.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/components/GeneralLogout-BW6b3iuS.cjs +8 -0
  2. package/components/{GeneralLogout-BO_iHKNr.js → GeneralLogout-DMvKimEo.js} +735 -713
  3. package/components/{GeneralLogout-CwSCMNgW.js → GeneralLogout-GS7gE3LI.js} +610 -588
  4. package/components/{PlayerAccountBettingHistory-Cb8OMNy9.cjs → PlayerAccountBettingHistory-BsFzBNDY.cjs} +1 -1
  5. package/components/{PlayerAccountBettingHistory-BoeZFFFu.js → PlayerAccountBettingHistory-DUgPRDra.js} +24 -24
  6. package/components/{PlayerAccountBettingHistory-C6G8D9gE.js → PlayerAccountBettingHistory-YNLbWHxl.js} +24 -24
  7. package/components/{PlayerAccountBiometrics-DbzqR4YB.cjs → PlayerAccountBiometrics-BrlNlZ5N.cjs} +1 -1
  8. package/components/{PlayerAccountBiometrics-TQaVyCUp.js → PlayerAccountBiometrics-CARn4eVu.js} +26 -26
  9. package/components/{PlayerAccountBiometrics-C6n6AU67.js → PlayerAccountBiometrics-CXLK5_xT.js} +26 -26
  10. package/components/{PlayerAccountClosure-mb6TcNFj.js → PlayerAccountClosure-BQsYcTs7.js} +13 -13
  11. package/components/{PlayerAccountClosure-RO3lnj8F.js → PlayerAccountClosure-BkKcpa4J.js} +13 -13
  12. package/components/{PlayerAccountClosure-CoKkAlIq.cjs → PlayerAccountClosure-DfJc6Ip_.cjs} +1 -1
  13. package/components/{PlayerAccountController-B99YscRG.js → PlayerAccountController-5iMZlx1a.js} +128 -128
  14. package/components/{PlayerAccountController-C2q8ibgU.cjs → PlayerAccountController-7FPLehfk.cjs} +1 -1
  15. package/components/{PlayerAccountController-Nco62fa4.js → PlayerAccountController-BhRqOpNe.js} +126 -126
  16. package/components/{PlayerAccountGamingLimits-Bc6vqzq1.js → PlayerAccountGamingLimits-B2-Mgazd.js} +19 -19
  17. package/components/{PlayerAccountGamingLimits-DbX9_Kpb.cjs → PlayerAccountGamingLimits-BPQrptbd.cjs} +1 -1
  18. package/components/{PlayerAccountGamingLimits-DiyC185P.js → PlayerAccountGamingLimits-DwpArRnO.js} +19 -19
  19. package/components/{PlayerAccountGamingLimitsConfirmationModal-BnOXTUlS.js → PlayerAccountGamingLimitsConfirmationModal-CNTlXu7V.js} +30 -30
  20. package/components/{PlayerAccountGamingLimitsConfirmationModal-x0MkZXMQ.js → PlayerAccountGamingLimitsConfirmationModal-DefxnTKN.js} +30 -30
  21. package/components/{PlayerAccountGamingLimitsConfirmationModal-CnGLRHzu.cjs → PlayerAccountGamingLimitsConfirmationModal-IgBYV9F2.cjs} +1 -1
  22. package/components/{PlayerAccountGamingLimitsGroupEdit-dprcKEZC.js → PlayerAccountGamingLimitsGroupEdit-CDY-ylK7.js} +51 -51
  23. package/components/{PlayerAccountGamingLimitsGroupEdit-Crmi-e6x.js → PlayerAccountGamingLimitsGroupEdit-Cj7PXLH2.js} +51 -51
  24. package/components/{PlayerAccountGamingLimitsGroupEdit-DYe0OoaG.cjs → PlayerAccountGamingLimitsGroupEdit-DrkoLne8.cjs} +2 -2
  25. package/components/{PlayerAccountGamingLimitsHistory2-DiAUM6kQ.js → PlayerAccountGamingLimitsHistory2-2NpX8p0k.js} +44 -44
  26. package/components/{PlayerAccountGamingLimitsHistory2-CS4fpWhH.cjs → PlayerAccountGamingLimitsHistory2-B_7Y0DgS.cjs} +1 -1
  27. package/components/{PlayerAccountGamingLimitsHistory2-Dt9CSOvf.js → PlayerAccountGamingLimitsHistory2-DF8kvIf6.js} +46 -46
  28. package/components/{PlayerAccountGamingLimitsInfoCard-DFsD9RSx.cjs → PlayerAccountGamingLimitsInfoCard-BOls7ahz.cjs} +1 -1
  29. package/components/{PlayerAccountGamingLimitsInfoCard-D9MKGXei.js → PlayerAccountGamingLimitsInfoCard-CNvQOw3A.js} +95 -95
  30. package/components/{PlayerAccountGamingLimitsInfoCard-Bd4vV7fT.js → PlayerAccountGamingLimitsInfoCard-D3sJXuZa.js} +95 -95
  31. package/components/{PlayerAccountGamingLimitsPage2Gm16-8-RWZDSp.cjs → PlayerAccountGamingLimitsPage2Gm16-BiFzgvUx.cjs} +1 -1
  32. package/components/{PlayerAccountGamingLimitsPage2Gm16-C9VhT1ek.js → PlayerAccountGamingLimitsPage2Gm16-C7_DGAt1.js} +72 -72
  33. package/components/{PlayerAccountGamingLimitsPage2Gm16-WSk66pxJ.js → PlayerAccountGamingLimitsPage2Gm16-Dz6knJ_h.js} +122 -122
  34. package/components/{PlayerAccountGamingLimitsPopup-C2R4OzUK.js → PlayerAccountGamingLimitsPopup-BlCz3nIH.js} +17 -17
  35. package/components/{PlayerAccountGamingLimitsPopup-DLqNpo7V.js → PlayerAccountGamingLimitsPopup-Bt4YlCWi.js} +17 -17
  36. package/components/{PlayerAccountGamingLimitsPopup-zTXU7ohP.cjs → PlayerAccountGamingLimitsPopup-ChBLdQR7.cjs} +1 -1
  37. package/components/{PlayerAccountGamingLimitsWrapper2-D3NmPjvT.js → PlayerAccountGamingLimitsWrapper2-D3tW5CCc.js} +8 -8
  38. package/components/{PlayerAccountGamingLimitsWrapper2-CXP2X7Lk.cjs → PlayerAccountGamingLimitsWrapper2-Dg6CwNyN.cjs} +1 -1
  39. package/components/{PlayerAccountGamingLimitsWrapper2-Cr1xbzbX.js → PlayerAccountGamingLimitsWrapper2-RnvNKSgN.js} +8 -8
  40. package/components/{PlayerAccountGeneralConfirmationModal-CnGS36kY.cjs → PlayerAccountGeneralConfirmationModal-BpTCzpiW.cjs} +1 -1
  41. package/components/{PlayerAccountGeneralConfirmationModal-BrcO0n_o.js → PlayerAccountGeneralConfirmationModal-D3u9X3Q6.js} +39 -39
  42. package/components/{PlayerAccountGeneralConfirmationModal-DHuSzGQn.js → PlayerAccountGeneralConfirmationModal-SjPp-PVG.js} +39 -39
  43. package/components/{PlayerAccountMenu-VCDFEkVV.js → PlayerAccountMenu-5esyJ_VN.js} +20 -20
  44. package/components/{PlayerAccountMenu-kULPvwXH.cjs → PlayerAccountMenu-C704oUrC.cjs} +1 -1
  45. package/components/{PlayerAccountMenu-Bnj75Pyr.js → PlayerAccountMenu-DgptA72k.js} +17 -17
  46. package/components/{PlayerAccountModal-BGNjm-FU.js → PlayerAccountModal-BnWL5726.js} +28 -28
  47. package/components/{PlayerAccountModal-DLxnK5Aq.cjs → PlayerAccountModal-C7aZZlBw.cjs} +1 -1
  48. package/components/{PlayerAccountModal-d2eY7pgp.js → PlayerAccountModal-CbLpkfXY.js} +28 -28
  49. package/components/{PlayerAccountNotifications-BkPn9o0x.js → PlayerAccountNotifications-B02Ownhe.js} +16 -16
  50. package/components/{PlayerAccountNotifications-DwHaboef.js → PlayerAccountNotifications-C-lyz5dM.js} +16 -16
  51. package/components/{PlayerAccountNotifications-DLpnh54-.cjs → PlayerAccountNotifications-DkgHtUGj.cjs} +1 -1
  52. package/components/PlayerAccountSelfExclusion-BS89T7sZ.cjs +4171 -0
  53. package/components/{PlayerAccountSelfExclusion-Dsc1c5ET.js → PlayerAccountSelfExclusion-BkK_LRpi.js} +9840 -9439
  54. package/components/{PlayerAccountSelfExclusion-C-Gq5xhb.js → PlayerAccountSelfExclusion-D6Kby-08.js} +9320 -8965
  55. package/components/{PlayerAccountTimeout-DX8TE-kL.cjs → PlayerAccountTimeout-DMbUPtRy.cjs} +1 -1
  56. package/components/{PlayerAccountTimeout-DPGSPm6O.js → PlayerAccountTimeout-DWNG3Mes.js} +25 -25
  57. package/components/{PlayerAccountTimeout-BrX6tkl3.js → PlayerAccountTimeout-tPNVqlAT.js} +25 -25
  58. package/components/PlayerActiveBonuses-B9jz3QD8.cjs +1 -0
  59. package/components/{PlayerActiveBonuses-DZ1TuekM.js → PlayerActiveBonuses-SCbHFBuw.js} +392 -443
  60. package/components/{PlayerActiveBonuses-WBu-rYFj.js → PlayerActiveBonuses-dRIcHoZG.js} +415 -466
  61. package/components/{PlayerBonusCard-BtSC36hN.js → PlayerBonusCard-8uOU9OLG.js} +50 -50
  62. package/components/{PlayerBonusCard-DqHyFS9o.cjs → PlayerBonusCard-BC8FfHZz.cjs} +1 -1
  63. package/components/{PlayerBonusCard-Ci1k7NFv.js → PlayerBonusCard-Cppd6wFF.js} +50 -50
  64. package/components/{PlayerBonusHistory-C7m0o7Yl.js → PlayerBonusHistory-44sPM1i7.js} +30 -30
  65. package/components/{PlayerBonusHistory-D-qDx10G.cjs → PlayerBonusHistory-D2YSJiqi.cjs} +1 -1
  66. package/components/{PlayerBonusHistory-DDNLaEBO.js → PlayerBonusHistory-DWvXjCPO.js} +30 -30
  67. package/components/{PlayerChangePassword-B4VW3taV.cjs → PlayerChangePassword-CzR4Xz0H.cjs} +1 -1
  68. package/components/{PlayerChangePassword-Bhfh3D2M.js → PlayerChangePassword-N_UEFJNT.js} +103 -103
  69. package/components/{PlayerChangePassword-Dk7vlEEM.js → PlayerChangePassword-OM9U8MSx.js} +103 -103
  70. package/components/PlayerDeposit-CwMvcnsj.js +414 -0
  71. package/components/PlayerDeposit-D_78W5GC.cjs +1 -0
  72. package/components/PlayerDeposit-Q2N0Y2_v.js +414 -0
  73. package/components/{PlayerGamingHistory-CaYFZtwD.js → PlayerGamingHistory-BLQD-WyT.js} +54 -54
  74. package/components/{PlayerGamingHistory-CcFH-mIk.cjs → PlayerGamingHistory-DRkPp9aG.cjs} +1 -1
  75. package/components/{PlayerGamingHistory-BPF2pyCO.js → PlayerGamingHistory-XiAb60Gu.js} +59 -59
  76. package/components/{PlayerPendingWithdrawals-BvhoX5n1.cjs → PlayerPendingWithdrawals-BG3I8ifu.cjs} +1 -1
  77. package/components/{PlayerPendingWithdrawals-DQ_Nh38H.js → PlayerPendingWithdrawals-BSTgce9H.js} +33 -33
  78. package/components/{PlayerPendingWithdrawals-DabTg_Hg.js → PlayerPendingWithdrawals-BsCRRPqb.js} +33 -33
  79. package/components/{PlayerProfileInfo-D7thO7JS.js → PlayerProfileInfo-C7zRlD3p.js} +45 -45
  80. package/components/{PlayerProfileInfo-DQflJzdX.cjs → PlayerProfileInfo-CGsJydqv.cjs} +1 -1
  81. package/components/{PlayerProfileInfo-AEY5xCAX.js → PlayerProfileInfo-zmbAMe_l.js} +45 -45
  82. package/components/{PlayerRealityCheck-6ZyJUl5U.js → PlayerRealityCheck-A_mZq3YZ.js} +27 -27
  83. package/components/{PlayerRealityCheck-DMI_8YfG.cjs → PlayerRealityCheck-C26ZBWae.cjs} +1 -1
  84. package/components/{PlayerRealityCheck-CzPyJQgR.js → PlayerRealityCheck-D7u9BzPV.js} +26 -26
  85. package/components/{PlayerTransactionHistory-Dj8ABxFp.cjs → PlayerTransactionHistory-CJqhYnbs.cjs} +1 -1
  86. package/components/{PlayerTransactionHistory-CSK3J3Na.js → PlayerTransactionHistory-DllIB_qE.js} +23 -23
  87. package/components/{PlayerTransactionHistory-DmTfwUdw.js → PlayerTransactionHistory-DsRmd4u6.js} +23 -23
  88. package/components/{PlayerWithdrawal-BrqShTsy.js → PlayerWithdrawal-CGSnHppy.js} +20 -20
  89. package/components/{PlayerWithdrawal-BwymNFiL.cjs → PlayerWithdrawal-GDc_7hZX.cjs} +1 -1
  90. package/components/{PlayerWithdrawal-ct79yXDc.js → PlayerWithdrawal-t5mlX5CD.js} +20 -20
  91. package/es2015/player-account-controller.cjs +1 -1
  92. package/es2015/player-account-controller.js +1 -1
  93. package/esnext/player-account-controller.js +1 -1
  94. package/package.json +1 -1
  95. package/stencil/{checkbox-group-input_9-9b62GyCW.js → checkbox-group-input_9-Cny9rOs9.js} +2490 -3376
  96. package/stencil/{checkbox-group-input_9-BDryW6Wx.js → checkbox-group-input_9-DZvX2H_r.js} +2434 -3306
  97. package/stencil/checkbox-group-input_9-FLO2Qa5Y.cjs +2104 -0
  98. package/stencil/{general-input-BXIgsD0E.js → general-input-Yj_LRx0v.js} +6 -6
  99. package/stencil/{general-input-CwyM4h8z.js → general-input-d5RULL12.js} +6 -6
  100. package/stencil/general-input-igTYIJ6W.cjs +1 -0
  101. package/stencil/index-0437c9c0-BwGFk0Yq.js +565 -0
  102. package/stencil/index-0437c9c0-C_oD9Yfn.js +592 -0
  103. package/stencil/index-0437c9c0-oCxuDVFQ.cjs +1 -0
  104. package/stencil/index-657e7a14-B7-RqEpB.js +572 -0
  105. package/stencil/index-657e7a14-CrrA_w_5.cjs +1 -0
  106. package/stencil/index-657e7a14-DW4SbCqy.js +588 -0
  107. package/stencil/index-72d2f0c7--qtpsDOz.js +642 -0
  108. package/stencil/index-72d2f0c7-DldCMjBJ.cjs +1 -0
  109. package/stencil/index-72d2f0c7-DyMEJXra.js +626 -0
  110. package/stencil/index-e8249896-BjtvOmsZ.cjs +1 -0
  111. package/stencil/index-e8249896-CM_igLvD.js +658 -0
  112. package/stencil/index-e8249896-DW1YiUqn.js +631 -0
  113. package/stencil/password-input_2-CHOu4hgw.js +1420 -0
  114. package/stencil/password-input_2-DQAgV1SZ.cjs +896 -0
  115. package/stencil/password-input_2-DaiHlKbQ.js +1420 -0
  116. package/stencil/{player-change-password-gm2-2de114b8-j-W8UbVm.cjs → player-change-password-gm2-780eb445-CdItmoKI.cjs} +1 -1
  117. package/stencil/{player-change-password-gm2-2de114b8-BXdScOXy.js → player-change-password-gm2-780eb445-Cg8Z75Vz.js} +3 -3
  118. package/stencil/{player-change-password-gm2-2de114b8-D375sYxZ.js → player-change-password-gm2-780eb445-DEjz9Jjk.js} +3 -3
  119. package/stencil/{player-change-password-gm2-DLw7pfT_.cjs → player-change-password-gm2-BR82_Y4L.cjs} +1 -1
  120. package/stencil/{player-change-password-gm2-BDCYchnQ.js → player-change-password-gm2-DlMNv4hv.js} +1 -1
  121. package/stencil/{player-change-password-gm2-CQtvRl58.js → player-change-password-gm2-FHUeecdE.js} +1 -1
  122. package/stencil/{player-kyc-verification-KcMUMtzd.js → player-kyc-verification-CZy8RShe.js} +43 -43
  123. package/stencil/{player-kyc-verification-BZX3owFI.js → player-kyc-verification-DuUII5AF.js} +39 -39
  124. package/stencil/{player-kyc-verification-CnOn9bB_.cjs → player-kyc-verification-DxpMnJ6t.cjs} +2 -2
  125. package/stencil/{toggle-checkbox-input-BqotLJuA.js → toggle-checkbox-input-Co64_7cm.js} +7 -7
  126. package/stencil/{toggle-checkbox-input-DFpk-vL2.js → toggle-checkbox-input-ErX2Ngat.js} +7 -7
  127. package/stencil/toggle-checkbox-input-a_0w-Y0n.cjs +1 -0
  128. package/stencil/{user-deposit-withdrawal-BZXlCCQr.cjs → user-deposit-withdrawal-Cum51n64.cjs} +2 -2
  129. package/stencil/{user-deposit-withdrawal-6RE0dcHP.js → user-deposit-withdrawal-DRo4MaOR.js} +24 -24
  130. package/stencil/{user-deposit-withdrawal-D7AuBXPO.js → user-deposit-withdrawal-DsEm--6b.js} +24 -24
  131. package/stencil/{user-transaction-history-DW482EoT.js → user-transaction-history-BpBJPUwq.js} +10 -10
  132. package/stencil/{user-transaction-history-CLdEzp7O.cjs → user-transaction-history-C3_7vgUY.cjs} +1 -1
  133. package/stencil/{user-transaction-history-CtDvqHoF.js → user-transaction-history-ClGHRdoQ.js} +7 -7
  134. package/stencil/vaadin-button-6001b2a6-C6xw53k5.cjs +3018 -0
  135. package/stencil/{vaadin-button-mixin-b8087c3c-DMeIIR12.js → vaadin-button-6001b2a6-CZwj1qjO.js} +5818 -5228
  136. package/stencil/{vaadin-button-mixin-b8087c3c-DTenw4S9.js → vaadin-button-6001b2a6-Dqz5Vp8D.js} +3935 -3299
  137. package/components/GeneralLogout-CMYMtWfC.cjs +0 -8
  138. package/components/PlayerAccountSelfExclusion-Dlkeebgy.cjs +0 -3557
  139. package/components/PlayerActiveBonuses-T1itpvjq.cjs +0 -1
  140. package/components/PlayerDeposit-B04mpHHT.js +0 -395
  141. package/components/PlayerDeposit-CH0pw_GN.cjs +0 -1
  142. package/components/PlayerDeposit-DJXOEJyq.js +0 -395
  143. package/stencil/checkbox-group-input_9-B0JD93gn.cjs +0 -2045
  144. package/stencil/general-input-BL1L8PI-.cjs +0 -1
  145. package/stencil/index-0a27499c-BaAMIKJI.js +0 -724
  146. package/stencil/index-0a27499c-DaAhyku1.js +0 -697
  147. package/stencil/index-0a27499c-vG7Av-0V.cjs +0 -1
  148. package/stencil/index-1d58b17d-BREebYgt.js +0 -658
  149. package/stencil/index-1d58b17d-CY3tvLdR.js +0 -631
  150. package/stencil/index-1d58b17d-oagDV-gC.cjs +0 -1
  151. package/stencil/index-45f4006f-CL2s7me-.cjs +0 -1
  152. package/stencil/index-45f4006f-D9GyS-vs.js +0 -638
  153. package/stencil/index-45f4006f-DKAxZFDZ.js +0 -654
  154. package/stencil/index-92b64862-Bnmv00O2.js +0 -708
  155. package/stencil/index-92b64862-CK1ANWGa.cjs +0 -1
  156. package/stencil/index-92b64862-CO3_TP5h.js +0 -692
  157. package/stencil/password-input_2-B5ePukhS.js +0 -569
  158. package/stencil/password-input_2-D3ziy4Iu.cjs +0 -105
  159. package/stencil/password-input_2-ZN0C3aqj.js +0 -569
  160. package/stencil/toggle-checkbox-input-n5b3s-CU.cjs +0 -1
  161. package/stencil/vaadin-button-mixin-b8087c3c-BzMgQwsM.cjs +0 -2385
@@ -0,0 +1,2104 @@
1
+ "use strict";var Me=(a,i,e)=>new Promise((t,r)=>{var s=d=>{try{l(e.next(d))}catch(h){r(h)}},n=d=>{try{l(e.throw(d))}catch(h){r(h)}},l=d=>d.done?t(d.value):Promise.resolve(d.value).then(s,n);l((e=e.apply(a,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index-72d2f0c7-DldCMjBJ.cjs"),T=require("./locale-B5abSHU_.cjs"),G=require("./tooltipIcon-ee9760a8-Bd9l1O5C.cjs"),o=require("./vaadin-button-6001b2a6-C6xw53k5.cjs");o.registerStyles("vaadin-checkbox",o.i$1`
2
+ :host {
3
+ color: var(--lumo-body-text-color);
4
+ font-size: var(--lumo-font-size-m);
5
+ font-family: var(--lumo-font-family);
6
+ line-height: var(--lumo-line-height-s);
7
+ -webkit-font-smoothing: antialiased;
8
+ -moz-osx-font-smoothing: grayscale;
9
+ -webkit-tap-highlight-color: transparent;
10
+ -webkit-user-select: none;
11
+ -moz-user-select: none;
12
+ user-select: none;
13
+ cursor: default;
14
+ outline: none;
15
+ --_checkbox-size: var(--vaadin-checkbox-size, calc(var(--lumo-size-m) / 2));
16
+ }
17
+
18
+ :host([has-label]) ::slotted(label) {
19
+ padding-block: var(--lumo-space-xs);
20
+ padding-inline: var(--lumo-space-xs) var(--lumo-space-s);
21
+ }
22
+
23
+ [part='checkbox'] {
24
+ width: var(--_checkbox-size);
25
+ height: var(--_checkbox-size);
26
+ margin: var(--lumo-space-xs);
27
+ position: relative;
28
+ border-radius: var(--lumo-border-radius-s);
29
+ background-color: var(--lumo-contrast-20pct);
30
+ transition: transform 0.2s cubic-bezier(0.12, 0.32, 0.54, 2), background-color 0.15s;
31
+ cursor: var(--lumo-clickable-cursor);
32
+ /* Default field border color */
33
+ --_input-border-color: var(--vaadin-input-field-border-color, var(--lumo-contrast-50pct));
34
+ }
35
+
36
+ :host([indeterminate]),
37
+ :host([checked]) {
38
+ --vaadin-input-field-border-color: transparent;
39
+ }
40
+
41
+ :host([indeterminate]) [part='checkbox'],
42
+ :host([checked]) [part='checkbox'] {
43
+ background-color: var(--lumo-primary-color);
44
+ }
45
+
46
+ /* Checkmark */
47
+ [part='checkbox']::after {
48
+ pointer-events: none;
49
+ font-family: 'lumo-icons';
50
+ content: var(--lumo-icons-checkmark);
51
+ color: var(--lumo-primary-contrast-color);
52
+ font-size: calc(var(--_checkbox-size) + 2px);
53
+ line-height: 1;
54
+ position: absolute;
55
+ top: -1px;
56
+ left: -1px;
57
+ contain: content;
58
+ opacity: 0;
59
+ }
60
+
61
+ :host([checked]) [part='checkbox']::after {
62
+ opacity: 1;
63
+ }
64
+
65
+ /* Indeterminate checkmark */
66
+ :host([indeterminate]) [part='checkbox']::after {
67
+ content: '';
68
+ opacity: 1;
69
+ top: 45%;
70
+ height: 10%;
71
+ left: 22%;
72
+ right: 22%;
73
+ width: auto;
74
+ border: 0;
75
+ background-color: var(--lumo-primary-contrast-color);
76
+ }
77
+
78
+ /* Focus ring */
79
+ :host([focus-ring]) [part='checkbox'] {
80
+ box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px var(--lumo-primary-color-50pct),
81
+ inset 0 0 0 var(--_input-border-width, 0) var(--_input-border-color);
82
+ }
83
+
84
+ /* Disabled */
85
+ :host([disabled]) {
86
+ pointer-events: none;
87
+ color: var(--lumo-disabled-text-color);
88
+ --vaadin-input-field-border-color: var(--lumo-contrast-20pct);
89
+ }
90
+
91
+ :host([disabled]) ::slotted(label) {
92
+ color: inherit;
93
+ }
94
+
95
+ :host([disabled]) [part='checkbox'] {
96
+ background-color: var(--lumo-contrast-10pct);
97
+ }
98
+
99
+ :host([disabled]) [part='checkbox']::after {
100
+ color: var(--lumo-contrast-30pct);
101
+ }
102
+
103
+ :host([indeterminate][disabled]) [part='checkbox']::after {
104
+ background-color: var(--lumo-contrast-30pct);
105
+ }
106
+
107
+ /* RTL specific styles */
108
+ :host([dir='rtl'][has-label]) ::slotted(label) {
109
+ padding: var(--lumo-space-xs) var(--lumo-space-xs) var(--lumo-space-xs) var(--lumo-space-s);
110
+ }
111
+
112
+ /* Used for activation "halo" */
113
+ [part='checkbox']::before {
114
+ pointer-events: none;
115
+ color: transparent;
116
+ width: 100%;
117
+ height: 100%;
118
+ line-height: var(--_checkbox-size);
119
+ border-radius: inherit;
120
+ background-color: inherit;
121
+ transform: scale(1.4);
122
+ opacity: 0;
123
+ transition: transform 0.1s, opacity 0.8s;
124
+ }
125
+
126
+ /* Hover */
127
+ :host(:not([checked]):not([indeterminate]):not([disabled]):hover) [part='checkbox'] {
128
+ background-color: var(--lumo-contrast-30pct);
129
+ }
130
+
131
+ /* Disable hover for touch devices */
132
+ @media (pointer: coarse) {
133
+ :host(:not([checked]):not([indeterminate]):not([disabled]):hover) [part='checkbox'] {
134
+ background-color: var(--lumo-contrast-20pct);
135
+ }
136
+ }
137
+
138
+ /* Active */
139
+ :host([active]) [part='checkbox'] {
140
+ transform: scale(0.9);
141
+ transition-duration: 0.05s;
142
+ }
143
+
144
+ :host([active][checked]) [part='checkbox'] {
145
+ transform: scale(1.1);
146
+ }
147
+
148
+ :host([active]:not([checked])) [part='checkbox']::before {
149
+ transition-duration: 0.01s, 0.01s;
150
+ transform: scale(0);
151
+ opacity: 0.4;
152
+ }
153
+ `,{moduleId:"lumo-checkbox"});/**
154
+ * @license
155
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
156
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
157
+ */const gi=o.dedupingMixin(a=>class extends o.DelegateStateMixin(o.DisabledMixin(o.InputMixin(a))){static get properties(){return{checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"checked"]}_onChange(e){const t=e.target;this._toggleChecked(t.checked)}_toggleChecked(e){this.checked=e}});/**
158
+ * @license
159
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
160
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
161
+ */const yi=a=>class extends o.LabelMixin(gi(o.DelegateFocusMixin(o.ActiveMixin(a)))){static get properties(){return{indeterminate:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},name:{type:String,value:""},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"indeterminate"]}static get delegateAttrs(){return[...super.delegateAttrs,"name"]}constructor(){super(),this._setType("checkbox"),this.value="on"}ready(){super.ready(),this.addController(new o.InputController(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new o.LabelledInputController(this.inputElement,this._labelController))}_shouldSetActive(e){return e.target.localName==="a"?!1:super._shouldSetActive(e)}_toggleChecked(e){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(e)}};/**
162
+ * @license
163
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
164
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
165
+ */const bi=o.i$1`
166
+ :host {
167
+ display: inline-block;
168
+ }
169
+
170
+ :host([hidden]) {
171
+ display: none !important;
172
+ }
173
+
174
+ :host([disabled]) {
175
+ -webkit-tap-highlight-color: transparent;
176
+ }
177
+
178
+ .vaadin-checkbox-container {
179
+ display: grid;
180
+ grid-template-columns: auto 1fr;
181
+ align-items: baseline;
182
+ }
183
+
184
+ [part='checkbox'],
185
+ ::slotted(input),
186
+ ::slotted(label) {
187
+ grid-row: 1;
188
+ }
189
+
190
+ [part='checkbox'],
191
+ ::slotted(input) {
192
+ grid-column: 1;
193
+ }
194
+
195
+ [part='checkbox'] {
196
+ width: var(--vaadin-checkbox-size, 1em);
197
+ height: var(--vaadin-checkbox-size, 1em);
198
+ --_input-border-width: var(--vaadin-input-field-border-width, 0);
199
+ --_input-border-color: var(--vaadin-input-field-border-color, transparent);
200
+ box-shadow: inset 0 0 0 var(--_input-border-width, 0) var(--_input-border-color);
201
+ }
202
+
203
+ [part='checkbox']::before {
204
+ display: block;
205
+ content: '\\202F';
206
+ line-height: var(--vaadin-checkbox-size, 1em);
207
+ contain: paint;
208
+ }
209
+
210
+ /* visually hidden */
211
+ ::slotted(input) {
212
+ opacity: 0;
213
+ cursor: inherit;
214
+ margin: 0;
215
+ align-self: stretch;
216
+ -webkit-appearance: none;
217
+ width: initial;
218
+ height: initial;
219
+ }
220
+
221
+ @media (forced-colors: active) {
222
+ [part='checkbox'] {
223
+ outline: 1px solid;
224
+ outline-offset: -1px;
225
+ }
226
+
227
+ :host([disabled]) [part='checkbox'],
228
+ :host([disabled]) [part='checkbox']::after {
229
+ outline-color: GrayText;
230
+ }
231
+
232
+ :host(:is([checked], [indeterminate])) [part='checkbox']::after {
233
+ outline: 1px solid;
234
+ outline-offset: -1px;
235
+ border-radius: inherit;
236
+ }
237
+
238
+ :host([focused]) [part='checkbox'],
239
+ :host([focused]) [part='checkbox']::after {
240
+ outline-width: 2px;
241
+ }
242
+ }
243
+ `;/**
244
+ * @license
245
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
246
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
247
+ */o.registerStyles("vaadin-checkbox",bi,{moduleId:"vaadin-checkbox-styles"});class xt extends yi(o.ElementMixin(o.ThemableMixin(o.PolymerElement))){static get is(){return"vaadin-checkbox"}static get template(){return o.html`
248
+ <div class="vaadin-checkbox-container">
249
+ <div part="checkbox" aria-hidden="true"></div>
250
+ <slot name="input"></slot>
251
+ <slot name="label"></slot>
252
+ </div>
253
+ <slot name="tooltip"></slot>
254
+ `}ready(){super.ready(),this._tooltipController=new o.TooltipController(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}o.defineCustomElement(xt);const wi=o.i$1`
255
+ :host {
256
+ color: var(--lumo-body-text-color);
257
+ font-size: var(--lumo-font-size-m);
258
+ font-family: var(--lumo-font-family);
259
+ -webkit-font-smoothing: antialiased;
260
+ -moz-osx-font-smoothing: grayscale;
261
+ -webkit-tap-highlight-color: transparent;
262
+ padding: var(--lumo-space-xs) 0;
263
+ }
264
+
265
+ :host::before {
266
+ /* Effective height of vaadin-checkbox */
267
+ height: var(--lumo-size-s);
268
+ box-sizing: border-box;
269
+ display: inline-flex;
270
+ align-items: center;
271
+ }
272
+
273
+ :host([theme~='vertical']) [part='group-field'] {
274
+ flex-direction: column;
275
+ }
276
+
277
+ :host([disabled]) [part='label'] {
278
+ color: var(--lumo-disabled-text-color);
279
+ -webkit-text-fill-color: var(--lumo-disabled-text-color);
280
+ }
281
+
282
+ :host([focused]:not([disabled])) [part='label'] {
283
+ color: var(--lumo-primary-text-color);
284
+ }
285
+
286
+ :host(:hover:not([disabled]):not([focused])) [part='label'],
287
+ :host(:hover:not([disabled]):not([focused])) [part='helper-text'] {
288
+ color: var(--lumo-body-text-color);
289
+ }
290
+
291
+ /* Touch device adjustment */
292
+ @media (pointer: coarse) {
293
+ :host(:hover:not([disabled]):not([focused])) [part='label'] {
294
+ color: var(--lumo-secondary-text-color);
295
+ }
296
+ }
297
+ `;o.registerStyles("vaadin-checkbox-group",[o.requiredField,o.helper,wi],{moduleId:"lumo-checkbox-group"});/**
298
+ * @license
299
+ * Copyright (c) 2018 - 2023 Vaadin Ltd.
300
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
301
+ */class xi extends o.FieldMixin(o.FocusMixin(o.DisabledMixin(o.ElementMixin(o.ThemableMixin(o.PolymerElement))))){static get is(){return"vaadin-checkbox-group"}static get template(){return o.html`
302
+ <style>
303
+ :host {
304
+ display: inline-flex;
305
+ }
306
+
307
+ :host::before {
308
+ content: '\\2003';
309
+ width: 0;
310
+ display: inline-block;
311
+ }
312
+
313
+ :host([hidden]) {
314
+ display: none !important;
315
+ }
316
+
317
+ .vaadin-group-field-container {
318
+ display: flex;
319
+ flex-direction: column;
320
+ width: 100%;
321
+ }
322
+
323
+ [part='group-field'] {
324
+ display: flex;
325
+ flex-wrap: wrap;
326
+ }
327
+
328
+ :host(:not([has-label])) [part='label'] {
329
+ display: none;
330
+ }
331
+ </style>
332
+
333
+ <div class="vaadin-group-field-container">
334
+ <div part="label">
335
+ <slot name="label"></slot>
336
+ <span part="required-indicator" aria-hidden="true"></span>
337
+ </div>
338
+
339
+ <div part="group-field">
340
+ <slot></slot>
341
+ </div>
342
+
343
+ <div part="helper-text">
344
+ <slot name="helper"></slot>
345
+ </div>
346
+
347
+ <div part="error-message">
348
+ <slot name="error-message"></slot>
349
+ </div>
350
+ </div>
351
+
352
+ <slot name="tooltip"></slot>
353
+ `}static get properties(){return{value:{type:Array,value:()=>[],notify:!0,observer:"__valueChanged"}}}constructor(){super(),this.__registerCheckbox=this.__registerCheckbox.bind(this),this.__unregisterCheckbox=this.__unregisterCheckbox.bind(this),this.__onCheckboxCheckedChanged=this.__onCheckboxCheckedChanged.bind(this),this._tooltipController=new o.TooltipController(this),this._tooltipController.addEventListener("tooltip-changed",i=>{const e=i.detail.node;if(e&&e.isConnected){const t=this.__checkboxes.map(r=>r.inputElement);this._tooltipController.setAriaTarget(t)}else this._tooltipController.setAriaTarget([])})}get __checkboxes(){return this.__filterCheckboxes([...this.children])}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","group");const i=this.shadowRoot.querySelector("slot:not([name])");this._observer=new o.SlotObserver(i,({addedNodes:e,removedNodes:t})=>{const r=this.__filterCheckboxes(e),s=this.__filterCheckboxes(t);r.forEach(this.__registerCheckbox),s.forEach(this.__unregisterCheckbox);const n=this.__checkboxes.map(l=>l.inputElement);this._tooltipController.setAriaTarget(n),this.__warnOfCheckboxesWithoutValue(r)}),this.addController(this._tooltipController)}checkValidity(){return!this.required||this.value.length>0}__filterCheckboxes(i){return i.filter(e=>e instanceof xt)}__warnOfCheckboxesWithoutValue(i){i.some(t=>{const{value:r}=t;return!t.hasAttribute("value")&&(!r||r==="on")})&&console.warn("Please provide the value attribute to all the checkboxes inside the checkbox group.")}__registerCheckbox(i){i.addEventListener("checked-changed",this.__onCheckboxCheckedChanged),this.disabled&&(i.disabled=!0),i.checked?this.__addCheckboxToValue(i.value):this.value.includes(i.value)&&(i.checked=!0)}__unregisterCheckbox(i){i.removeEventListener("checked-changed",this.__onCheckboxCheckedChanged),i.checked&&this.__removeCheckboxFromValue(i.value)}_disabledChanged(i,e){super._disabledChanged(i,e),!(!i&&e===void 0)&&e!==i&&this.__checkboxes.forEach(t=>{t.disabled=i})}__addCheckboxToValue(i){this.value.includes(i)||(this.value=[...this.value,i])}__removeCheckboxFromValue(i){this.value.includes(i)&&(this.value=this.value.filter(e=>e!==i))}__onCheckboxCheckedChanged(i){const e=i.target;e.checked?this.__addCheckboxToValue(e.value):this.__removeCheckboxFromValue(e.value)}__valueChanged(i,e){i.length===0&&e===void 0||(this.toggleAttribute("has-value",i.length>0),this.__checkboxes.forEach(t=>{t.checked=i.includes(t.value)}),e!==void 0&&this.validate())}_shouldRemoveFocus(i){return!this.contains(i.relatedTarget)}_setFocused(i){super._setFocused(i),!i&&document.hasFocus()&&this.validate()}}o.defineCustomElement(xi);const Ci='*,*::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)}.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}',ki=Ci,Ct=class{constructor(a){u.registerInstance(this,a),this.sendValidityState=u.createEvent(this,"sendValidityState",7),this.sendInputValue=u.createEvent(this,"sendInputValue",7),this.value=null,this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},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=[]}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}setValue(){this.value=this.options.reduce((a,i)=>(a[i.name]=this.selectedValues.includes(i.name),a),{}),this.emitValueHandler(!0)}validityStateHandler(a){this.sendValidityState.emit(a)}emitValueHandler(a){a==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}valueHandler(a){this.sendInputValue.emit(a)}handleClickOutside(a){a.composedPath()[0]!==this.tooltipIconReference&&a.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.element.shadowRoot.querySelector("input"),this.isValid=this.setValidity(),this.defaultValue&&(this.selectedValues=this.options.map(a=>a.name),this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return T.translate("requiredError",this.language)}renderTooltip(){return this.showTooltip?u.h("div",{class:`checkboxgroup__tooltip ${this.showTooltip?"visible":""}`,ref:a=>this.tooltipReference=a,innerHTML:this.tooltip}):null}handleParentCheckbox(a){this.selectedValues=a.target.checked?this.options.map(i=>i.name):[]}renderLabel(){return u.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},u.h("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}render(){return u.h("div",{key:"fa45026502fd8d46aa537aee03210ad68d30e577",class:`checkboxgroup__wrapper ${this.name}__input`,ref:a=>this.stylingContainer=a},u.h("div",{key:"15ded4fd896920c6244806e49f300c124c27186d",class:"checkboxgroup__wrapper--flex"},u.h("vaadin-checkbox",{key:"d7eaa205877f8f12c9ef7d4f77018665806f5c7c",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:a=>this.handleParentCheckbox(a)},this.renderLabel()),this.tooltip&&u.h("img",{key:"aca39ed398415a6e2cef861be40dad33e0398759",class:"checkboxgroup__tooltip-icon",src:G.tooltipIconSvg,alt:"",ref:a=>this.tooltipIconReference=a,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),u.h("small",{key:"a1a6e1c3c02edcca572b8826ffba06835ca451c3",class:"checkboxgroup__error-message"},this.errorMessage),u.h("vaadin-checkbox-group",{key:"9f5f8a945e4ba13d7d0da6d362c15d00a7796b71",theme:"vertical",value:this.selectedValues,"on-value-changed":a=>{this.selectedValues=a.detail.value}},this.options.map(a=>u.h("vaadin-checkbox",{class:"checkbox__input",name:a.name,value:a.name,label:a.displayName}))))}get element(){return u.getElement(this)}static get watchers(){return{isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}}};Ct.style=ki;const Ti='*,*::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}',Di=Ti,kt=class{constructor(a){u.registerInstance(this,a),this.sendValidityState=u.createEvent(this,"sendValidityState",7),this.sendInputValue=u.createEvent(this,"sendInputValue",7),this.value="",this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},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}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(a){this.sendValidityState.emit(a)}emitValueHandler(a){a==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(a){this.sendInputValue.emit(a)}handleClickOutside(a){a.composedPath()[0]!==this.tooltipIconReference&&a.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}handleClick(){this.value=this.inputReference.checked.toString(),this.errorMessage=this.setErrorMessage(),this.isValid=this.setValidity(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return T.translate("requiredError",this.language)}renderLabel(){return u.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`},u.h("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?u.h("div",{class:`checkbox__tooltip ${this.showTooltip?"visible":""}`,ref:a=>this.tooltipReference=a,innerHTML:this.tooltip}):null}render(){return u.h("div",{key:"0aae00d291d1da02adae1bc91e79ccd579aa5c7f",class:`checkbox__wrapper ${this.name}__input`,ref:a=>this.stylingContainer=a},u.h("input",{key:"4b8c61d322b5065d8abe4e2687e270511fadc97f",class:"checkbox__input",type:"checkbox",id:`${this.name}__input`,ref:a=>this.inputReference=a,name:this.name,checked:this.defaultValue==="true",readOnly:this.autofilled,required:this.validation.mandatory,value:this.value,onClick:()=>this.handleClick()}),this.renderLabel(),u.h("small",{key:"934263cb58a0d379e8b7dc1f5004ad7e61c63ce0",class:"checkbox__error-message"},this.errorMessage),u.h("div",{key:"88cc71329d88b6325d792226e64ff7f93e940178",class:"checkbox__wrapper--relative"},this.tooltip&&u.h("img",{key:"3708dc613dc920bac6557f2a8020bbafd97d9127",class:"checkbox__tooltip-icon",src:G.tooltipIconSvg,alt:"",ref:a=>this.tooltipIconReference=a,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()))}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};kt.style=Di;/**
354
+ * @license
355
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
356
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
357
+ */const $e=o.i$1`
358
+ :host {
359
+ top: var(--lumo-space-m);
360
+ right: var(--lumo-space-m);
361
+ bottom: var(--lumo-space-m);
362
+ left: var(--lumo-space-m);
363
+ /* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */
364
+ /* stylelint-disable-next-line */
365
+ outline: 0px solid transparent;
366
+ }
367
+
368
+ [part='overlay'] {
369
+ background-color: var(--lumo-base-color);
370
+ background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
371
+ border-radius: var(--lumo-border-radius-m);
372
+ box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-m);
373
+ color: var(--lumo-body-text-color);
374
+ font-family: var(--lumo-font-family);
375
+ font-size: var(--lumo-font-size-m);
376
+ font-weight: 400;
377
+ line-height: var(--lumo-line-height-m);
378
+ letter-spacing: 0;
379
+ text-transform: none;
380
+ -webkit-text-size-adjust: 100%;
381
+ -webkit-font-smoothing: antialiased;
382
+ -moz-osx-font-smoothing: grayscale;
383
+ }
384
+
385
+ [part='content'] {
386
+ padding: var(--lumo-space-xs);
387
+ }
388
+
389
+ [part='backdrop'] {
390
+ background-color: var(--lumo-shade-20pct);
391
+ animation: 0.2s lumo-overlay-backdrop-enter both;
392
+ will-change: opacity;
393
+ }
394
+
395
+ @keyframes lumo-overlay-backdrop-enter {
396
+ 0% {
397
+ opacity: 0;
398
+ }
399
+ }
400
+
401
+ :host([closing]) [part='backdrop'] {
402
+ animation: 0.2s lumo-overlay-backdrop-exit both;
403
+ }
404
+
405
+ @keyframes lumo-overlay-backdrop-exit {
406
+ 100% {
407
+ opacity: 0;
408
+ }
409
+ }
410
+
411
+ @keyframes lumo-overlay-dummy-animation {
412
+ 0% {
413
+ opacity: 1;
414
+ }
415
+
416
+ 100% {
417
+ opacity: 1;
418
+ }
419
+ }
420
+ `;o.registerStyles("",$e,{moduleId:"lumo-overlay"});/**
421
+ * @license
422
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
423
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
424
+ */const qe=o.i$1`
425
+ :host([opening]),
426
+ :host([closing]) {
427
+ animation: 0.14s lumo-overlay-dummy-animation;
428
+ }
429
+
430
+ [part='overlay'] {
431
+ will-change: opacity, transform;
432
+ }
433
+
434
+ :host([opening]) [part='overlay'] {
435
+ animation: 0.1s lumo-menu-overlay-enter ease-out both;
436
+ }
437
+
438
+ @keyframes lumo-menu-overlay-enter {
439
+ 0% {
440
+ opacity: 0;
441
+ transform: translateY(-4px);
442
+ }
443
+ }
444
+
445
+ :host([closing]) [part='overlay'] {
446
+ animation: 0.1s lumo-menu-overlay-exit both;
447
+ }
448
+
449
+ @keyframes lumo-menu-overlay-exit {
450
+ 100% {
451
+ opacity: 0;
452
+ }
453
+ }
454
+ `;o.registerStyles("",qe,{moduleId:"lumo-menu-overlay-core"});const Ii=o.i$1`
455
+ /* Small viewport (bottom sheet) styles */
456
+ /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
457
+ @media (max-width: 420px), (max-height: 420px) {
458
+ :host {
459
+ top: 0 !important;
460
+ right: 0 !important;
461
+ bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;
462
+ left: 0 !important;
463
+ align-items: stretch !important;
464
+ justify-content: flex-end !important;
465
+ }
466
+
467
+ [part='overlay'] {
468
+ max-height: 50vh;
469
+ width: 100vw;
470
+ border-radius: 0;
471
+ box-shadow: var(--lumo-box-shadow-xl);
472
+ }
473
+
474
+ /* The content part scrolls instead of the overlay part, because of the gradient fade-out */
475
+ [part='content'] {
476
+ padding: 30px var(--lumo-space-m);
477
+ max-height: inherit;
478
+ box-sizing: border-box;
479
+ -webkit-overflow-scrolling: touch;
480
+ overflow: auto;
481
+ -webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
482
+ mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
483
+ }
484
+
485
+ [part='backdrop'] {
486
+ display: block;
487
+ }
488
+
489
+ /* Animations */
490
+
491
+ :host([opening]) [part='overlay'] {
492
+ animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(0.215, 0.61, 0.355, 1) both;
493
+ }
494
+
495
+ :host([closing]),
496
+ :host([closing]) [part='backdrop'] {
497
+ animation-delay: 0.14s;
498
+ }
499
+
500
+ :host([closing]) [part='overlay'] {
501
+ animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(0.55, 0.055, 0.675, 0.19) both;
502
+ }
503
+ }
504
+
505
+ @keyframes lumo-mobile-menu-overlay-enter {
506
+ 0% {
507
+ transform: translateY(150%);
508
+ }
509
+ }
510
+
511
+ @keyframes lumo-mobile-menu-overlay-exit {
512
+ 100% {
513
+ transform: translateY(150%);
514
+ }
515
+ }
516
+ `,Tt=[$e,qe,Ii];o.registerStyles("",Tt,{moduleId:"lumo-menu-overlay"});const Ei=o.i$1`
517
+ [part='overlay'] {
518
+ /*
519
+ Width:
520
+ date cell widths
521
+ + month calendar side padding
522
+ + year scroller width
523
+ */
524
+ /* prettier-ignore */
525
+ width:
526
+ calc(
527
+ var(--lumo-size-m) * 7
528
+ + var(--lumo-space-xs) * 2
529
+ + 57px
530
+ );
531
+ height: 100%;
532
+ max-height: calc(var(--lumo-size-m) * 14);
533
+ overflow: hidden;
534
+ -webkit-tap-highlight-color: transparent;
535
+ }
536
+
537
+ [part='overlay'] {
538
+ flex-direction: column;
539
+ }
540
+
541
+ [part='content'] {
542
+ padding: 0;
543
+ height: 100%;
544
+ overflow: hidden;
545
+ -webkit-mask-image: none;
546
+ mask-image: none;
547
+ }
548
+
549
+ :host([top-aligned]) [part~='overlay'] {
550
+ margin-top: var(--lumo-space-xs);
551
+ }
552
+
553
+ :host([bottom-aligned]) [part~='overlay'] {
554
+ margin-bottom: var(--lumo-space-xs);
555
+ }
556
+
557
+ @media (max-width: 420px), (max-height: 420px) {
558
+ [part='overlay'] {
559
+ width: 100vw;
560
+ height: 70vh;
561
+ max-height: 70vh;
562
+ }
563
+ }
564
+ `;o.registerStyles("vaadin-date-picker-overlay",[Tt,Ei],{moduleId:"lumo-date-picker-overlay"});o.registerStyles("vaadin-date-picker-year",o.i$1`
565
+ :host([current]) [part='year-number'] {
566
+ color: var(--lumo-primary-text-color);
567
+ }
568
+
569
+ :host(:not([current])) [part='year-number'],
570
+ [part='year-separator'] {
571
+ opacity: var(--_lumo-date-picker-year-opacity, 0.7);
572
+ transition: 0.2s opacity;
573
+ }
574
+
575
+ [part='year-number'],
576
+ [part='year-separator'] {
577
+ display: flex;
578
+ align-items: center;
579
+ justify-content: center;
580
+ height: 50%;
581
+ transform: translateY(-50%);
582
+ }
583
+
584
+ [part='year-separator']::after {
585
+ color: var(--lumo-disabled-text-color);
586
+ content: '\\2022';
587
+ }
588
+ `,{moduleId:"lumo-date-picker-year"});o.registerStyles("vaadin-date-picker-overlay-content",o.i$1`
589
+ :host {
590
+ position: relative;
591
+ /* Background for the year scroller, placed here as we are using a mask image on the actual years part */
592
+ background-image: linear-gradient(var(--lumo-shade-5pct), var(--lumo-shade-5pct));
593
+ background-size: 57px 100%;
594
+ background-position: top right;
595
+ background-repeat: no-repeat;
596
+ cursor: default;
597
+ }
598
+
599
+ ::slotted([slot='months']) {
600
+ /* Month calendar height:
601
+ header height + margin-bottom
602
+ + weekdays height + margin-bottom
603
+ + date cell heights
604
+ + small margin between month calendars
605
+ */
606
+ /* prettier-ignore */
607
+ --vaadin-infinite-scroller-item-height:
608
+ calc(
609
+ var(--lumo-font-size-l) + var(--lumo-space-m)
610
+ + var(--lumo-font-size-xs) + var(--lumo-space-s)
611
+ + var(--lumo-size-m) * 6
612
+ + var(--lumo-space-s)
613
+ );
614
+ --vaadin-infinite-scroller-buffer-offset: 10%;
615
+ -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
616
+ mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
617
+ position: relative;
618
+ margin-right: 57px;
619
+ }
620
+
621
+ ::slotted([slot='years']) {
622
+ /* TODO get rid of fixed magic number */
623
+ --vaadin-infinite-scroller-buffer-width: 97px;
624
+ width: 57px;
625
+ height: auto;
626
+ top: 0;
627
+ bottom: 0;
628
+ font-size: var(--lumo-font-size-s);
629
+ box-shadow: inset 2px 0 4px 0 var(--lumo-shade-5pct);
630
+ -webkit-mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
631
+ mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
632
+ cursor: var(--lumo-clickable-cursor);
633
+ }
634
+
635
+ ::slotted([slot='years']:hover) {
636
+ --_lumo-date-picker-year-opacity: 1;
637
+ }
638
+
639
+ /* TODO unsupported selector */
640
+ #scrollers {
641
+ position: static;
642
+ display: block;
643
+ }
644
+
645
+ /* TODO fix this in vaadin-date-picker that it adapts to the width of the year scroller */
646
+ :host([desktop]) ::slotted([slot='months']) {
647
+ right: auto;
648
+ }
649
+
650
+ /* Year scroller position indicator */
651
+ ::slotted([slot='years'])::before {
652
+ border: none;
653
+ width: 1em;
654
+ height: 1em;
655
+ background-color: var(--lumo-base-color);
656
+ background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
657
+ transform: translate(-75%, -50%) rotate(45deg);
658
+ border-top-right-radius: var(--lumo-border-radius-s);
659
+ box-shadow: 2px -2px 6px 0 var(--lumo-shade-5pct);
660
+ z-index: 1;
661
+ }
662
+
663
+ [part='toolbar'] {
664
+ padding: var(--lumo-space-s);
665
+ border-bottom-left-radius: var(--lumo-border-radius-l);
666
+ margin-right: 57px;
667
+ }
668
+
669
+ [part='toolbar'] ::slotted(vaadin-button) {
670
+ margin: 0;
671
+ }
672
+
673
+ /* Narrow viewport mode (fullscreen) */
674
+
675
+ :host([fullscreen]) [part='toolbar'] {
676
+ order: -1;
677
+ background-color: var(--lumo-base-color);
678
+ }
679
+
680
+ :host([fullscreen]) [part='overlay-header'] {
681
+ order: -2;
682
+ height: var(--lumo-size-m);
683
+ padding: var(--lumo-space-s);
684
+ position: absolute;
685
+ left: 0;
686
+ right: 0;
687
+ justify-content: center;
688
+ }
689
+
690
+ :host([fullscreen]) [part='toggle-button'],
691
+ :host([fullscreen]) [part='clear-button'],
692
+ [part='overlay-header'] [part='label'] {
693
+ display: none;
694
+ }
695
+
696
+ /* Very narrow screen (year scroller initially hidden) */
697
+
698
+ [part='years-toggle-button'] {
699
+ display: flex;
700
+ align-items: center;
701
+ height: var(--lumo-size-s);
702
+ padding: 0 0.5em;
703
+ border-radius: var(--lumo-border-radius-m);
704
+ z-index: 3;
705
+ color: var(--lumo-primary-text-color);
706
+ font-weight: 500;
707
+ -webkit-font-smoothing: antialiased;
708
+ -moz-osx-font-smoothing: grayscale;
709
+ }
710
+
711
+ :host([years-visible]) [part='years-toggle-button'] {
712
+ background-color: var(--lumo-primary-color);
713
+ color: var(--lumo-primary-contrast-color);
714
+ }
715
+
716
+ /* TODO magic number (same as used for media-query in vaadin-date-picker-overlay-content) */
717
+ @media screen and (max-width: 374px) {
718
+ :host {
719
+ background-image: none;
720
+ }
721
+
722
+ [part='toolbar'],
723
+ ::slotted([slot='months']) {
724
+ margin-right: 0;
725
+ }
726
+
727
+ /* TODO make date-picker adapt to the width of the years part */
728
+ ::slotted([slot='years']) {
729
+ --vaadin-infinite-scroller-buffer-width: 90px;
730
+ width: 50px;
731
+ background-color: var(--lumo-shade-5pct);
732
+ }
733
+
734
+ :host([years-visible]) ::slotted([slot='months']) {
735
+ padding-left: 50px;
736
+ }
737
+ }
738
+ `,{moduleId:"lumo-date-picker-overlay-content"});o.registerStyles("vaadin-month-calendar",o.i$1`
739
+ :host {
740
+ -moz-user-select: none;
741
+ -webkit-user-select: none;
742
+ -webkit-tap-highlight-color: transparent;
743
+ user-select: none;
744
+ font-size: var(--lumo-font-size-m);
745
+ color: var(--lumo-body-text-color);
746
+ text-align: center;
747
+ padding: 0 var(--lumo-space-xs);
748
+ }
749
+
750
+ /* Month header */
751
+
752
+ [part='month-header'] {
753
+ color: var(--lumo-header-text-color);
754
+ font-size: var(--lumo-font-size-l);
755
+ line-height: 1;
756
+ font-weight: 500;
757
+ margin-bottom: var(--lumo-space-m);
758
+ }
759
+
760
+ /* Week days and numbers */
761
+
762
+ [part='weekdays'],
763
+ [part='weekday'],
764
+ [part='week-number'] {
765
+ font-size: var(--lumo-font-size-xxs);
766
+ line-height: 1;
767
+ color: var(--lumo-secondary-text-color);
768
+ }
769
+
770
+ [part='weekdays'] {
771
+ margin-bottom: var(--lumo-space-s);
772
+ }
773
+
774
+ [part='weekday']:empty,
775
+ [part='week-number'] {
776
+ width: var(--lumo-size-xs);
777
+ }
778
+
779
+ /* Date and week number cells */
780
+
781
+ [part~='date'],
782
+ [part='week-number'] {
783
+ box-sizing: border-box;
784
+ display: inline-flex;
785
+ align-items: center;
786
+ justify-content: center;
787
+ height: var(--lumo-size-m);
788
+ position: relative;
789
+ }
790
+
791
+ [part~='date'] {
792
+ transition: color 0.1s;
793
+ }
794
+
795
+ [part~='date']:not(:empty) {
796
+ cursor: var(--lumo-clickable-cursor);
797
+ }
798
+
799
+ :host([week-numbers]) [part='weekday']:not(:empty),
800
+ :host([week-numbers]) [part~='date'] {
801
+ width: calc((100% - var(--lumo-size-xs)) / 7);
802
+ }
803
+
804
+ /* Today date */
805
+
806
+ [part~='date'][part~='today'] {
807
+ color: var(--lumo-primary-text-color);
808
+ }
809
+
810
+ /* Focused date */
811
+
812
+ [part~='date']::before {
813
+ content: '';
814
+ position: absolute;
815
+ z-index: -1;
816
+ top: 50%;
817
+ left: 50%;
818
+ transform: translate(-50%, -50%);
819
+ min-width: 2em;
820
+ min-height: 2em;
821
+ width: 80%;
822
+ height: 80%;
823
+ max-height: 100%;
824
+ max-width: 100%;
825
+ border-radius: var(--lumo-border-radius-m);
826
+ }
827
+
828
+ [part~='date'][part~='focused']::before {
829
+ box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px var(--lumo-primary-color-50pct);
830
+ }
831
+
832
+ :host(:not([focused])) [part~='date'][part~='focused']::before {
833
+ animation: vaadin-date-picker-month-calendar-focus-date 1.4s infinite;
834
+ }
835
+
836
+ @keyframes vaadin-date-picker-month-calendar-focus-date {
837
+ 50% {
838
+ box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px transparent;
839
+ }
840
+ }
841
+
842
+ [part~='date']:not(:empty):not([part~='disabled']):not([part~='selected']):hover::before {
843
+ background-color: var(--lumo-primary-color-10pct);
844
+ }
845
+
846
+ [part~='date'][part~='selected'] {
847
+ color: var(--lumo-primary-contrast-color);
848
+ }
849
+
850
+ [part~='date'][part~='selected']::before {
851
+ background-color: var(--lumo-primary-color);
852
+ }
853
+
854
+ [part~='date'][part~='disabled'] {
855
+ color: var(--lumo-disabled-text-color);
856
+ }
857
+
858
+ @media (pointer: coarse) {
859
+ [part~='date']:hover:not([part~='selected'])::before,
860
+ [part~='focused']:not([part~='selected'])::before {
861
+ display: none;
862
+ }
863
+
864
+ [part~='date']:not(:empty):not([part~='disabled']):active::before {
865
+ display: block;
866
+ }
867
+
868
+ [part~='date'][part~='selected']::before {
869
+ box-shadow: none;
870
+ }
871
+ }
872
+
873
+ /* Disabled */
874
+
875
+ :host([disabled]) * {
876
+ color: var(--lumo-disabled-text-color) !important;
877
+ }
878
+ `,{moduleId:"lumo-month-calendar"});const Dt=document.createElement("template");Dt.innerHTML=`
879
+ <style>
880
+ @keyframes vaadin-date-picker-month-calendar-focus-date {
881
+ 50% {
882
+ box-shadow: 0 0 0 2px transparent;
883
+ }
884
+ }
885
+ </style>
886
+ `;document.head.appendChild(Dt.content);const Pi=o.i$1`
887
+ :host {
888
+ outline: none;
889
+ }
890
+
891
+ [part='toggle-button']::before {
892
+ content: var(--lumo-icons-calendar);
893
+ }
894
+
895
+ [part='clear-button']::before {
896
+ content: var(--lumo-icons-cross);
897
+ }
898
+
899
+ @media (max-width: 420px), (max-height: 420px) {
900
+ [part='overlay-content'] {
901
+ height: 70vh;
902
+ }
903
+ }
904
+
905
+ :host([dir='rtl']) [part='input-field'] ::slotted(input) {
906
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
907
+ }
908
+
909
+ :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
910
+ --_lumo-text-field-overflow-mask-image: none;
911
+ }
912
+ `;o.registerStyles("vaadin-date-picker",[o.inputFieldShared,Pi],{moduleId:"lumo-date-picker"});/**
913
+ @license
914
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
915
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
916
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
917
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
918
+ Code distributed by Google as part of the polymer project is also
919
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
920
+ */let Re=!1,Si=[],It=[];function Mi(){Re=!0,requestAnimationFrame(function(){Re=!1,Ai(Si),setTimeout(function(){Oi(It)})})}function Ai(a){for(;a.length;)Et(a.shift())}function Oi(a){for(let i=0,e=a.length;i<e;i++)Et(a.shift())}function Et(a){const i=a[0],e=a[1],t=a[2];try{e.apply(i,t)}catch(r){setTimeout(()=>{throw r})}}function Pt(a,i,e){Re||Mi(),It.push([a,i,e])}/**
921
+ * @license
922
+ * Copyright (c) 2017 Anton Korzunov
923
+ * SPDX-License-Identifier: MIT
924
+ */let te=new WeakMap,ye=new WeakMap,be={},Ae=0;const nt=a=>a&&a.nodeType===Node.ELEMENT_NODE,Oe=(...a)=>{console.error(`Error: ${a.join(" ")}. Skip setting aria-hidden.`)},Vi=(a,i)=>nt(a)?i.map(e=>{if(!nt(e))return Oe(e,"is not a valid element"),null;let t=e;for(;t&&t!==a;){if(a.contains(t))return e;t=t.getRootNode().host}return Oe(e,"is not contained inside",a),null}).filter(e=>!!e):(Oe(a,"is not a valid element"),[]),Fi=(a,i,e,t)=>{const r=Vi(i,Array.isArray(a)?a:[a]);be[e]||(be[e]=new WeakMap);const s=be[e],n=[],l=new Set,d=new Set(r),h=c=>{if(!c||l.has(c))return;l.add(c);const _=c.assignedSlot;_&&h(_),h(c.parentNode||c.host)};r.forEach(h);const m=c=>{if(!c||d.has(c))return;const _=c.shadowRoot;(_?[...c.children,..._.children]:[...c.children]).forEach(x=>{if(!["template","script","style"].includes(x.localName))if(l.has(x))m(x);else{const L=x.getAttribute(t),H=L!==null&&L!=="false",B=(te.get(x)||0)+1,O=(s.get(x)||0)+1;te.set(x,B),s.set(x,O),n.push(x),B===1&&H&&ye.set(x,!0),O===1&&x.setAttribute(e,"true"),H||x.setAttribute(t,"true")}})};return m(i),l.clear(),Ae+=1,()=>{n.forEach(c=>{const _=te.get(c)-1,w=s.get(c)-1;te.set(c,_),s.set(c,w),_||(ye.has(c)?ye.delete(c):c.removeAttribute(t)),w||c.removeAttribute(e)}),Ae-=1,Ae||(te=new WeakMap,te=new WeakMap,ye=new WeakMap,be={})}},St=(a,i=document.body,e="data-aria-hidden")=>{const t=Array.from(Array.isArray(a)?a:[a]);return i&&t.push(...Array.from(i.querySelectorAll("[aria-live]"))),Fi(t,i,e,"aria-hidden")};/**
925
+ * @license
926
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
927
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
928
+ */class Hi{constructor(i,e){this.host=i,this.callback=typeof e=="function"?e:()=>i}showModal(){const i=this.callback();this.__showOthers=St(i)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
929
+ * @license
930
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
931
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
932
+ */class Li{saveFocus(i){this.focusNode=i||o.getDeepActiveElement()}restoreFocus(){const i=this.focusNode;i&&(o.getDeepActiveElement()===document.body?setTimeout(()=>i.focus()):i.focus(),this.focusNode=null)}}/**
933
+ * @license
934
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
935
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
936
+ */const Ve=[];class zi{constructor(i){this.host=i,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return o.getFocusableElements(this.__trapNode)}get __focusedElementIndex(){const i=this.__focusableElements;return i.indexOf(i.filter(o.isElementFocused).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(i){if(this.__trapNode=i,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Ve.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Ve.pop()}__onKeyDown(i){if(this.__trapNode&&this===Array.from(Ve).pop()&&i.key==="Tab"){i.preventDefault();const e=i.shiftKey;this.__focusNextElement(e)}}__focusNextElement(i=!1){const e=this.__focusableElements,t=i?-1:1,r=this.__focusedElementIndex,s=(e.length+r+t)%e.length,n=e[s];n.focus(),n.localName==="input"&&n.select()}}/**
937
+ * @license
938
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
939
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
940
+ */const Ri=a=>class extends o.ControllerMixin(a){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Hi(this),this.__focusTrapController=new zi(this),this.__focusRestorationController=new Li}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()&&this.__focusRestorationController.restoreFocus()}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const e=o.getDeepActiveElement();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let t=e;const r=e.ownerDocument;for(;t&&t!==r&&t!==this;)t=t.parentNode||t.host;return t===this}};/**
941
+ * @license
942
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
943
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
944
+ */const xe=()=>Array.from(document.body.children).filter(a=>a instanceof HTMLElement&&a._hasOverlayStackMixin&&!a.hasAttribute("closing")).sort((a,i)=>a.__zIndex-i.__zIndex||0),Bi=a=>a===xe().pop(),Ni=a=>class extends a{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return Bi(this)}bringToFront(){let e="";const t=xe().filter(r=>r!==this).pop();t&&(e=t.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),xe().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=xe();let t;for(;(t=e.pop())&&!(t!==this&&(t.$.overlay.style.removeProperty("pointer-events"),!t.modeless)););}};/**
945
+ * @license
946
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
947
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
948
+ */const Mt=a=>class extends Ri(Ni(a)){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),o.isIOS&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&this.$.overlay.focus()})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(e){const t=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),t.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,r=window.innerWidth>e,s=document.documentElement.clientHeight;r&&s>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${s-e}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(e,t,r,s){const n=this._oldOwner!==t||this._oldModel!==r;this._oldModel=r,this._oldOwner=t;const l=this._oldRenderer!==e;this._oldRenderer=e;const d=this._oldOpened!==s;this._oldOpened=s,l&&(this.innerHTML="",delete this._$litPart$),s&&e&&(l||d||n)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,t){e?(this._saveFocus(),this._animatedOpening(),Pt(this,()=>{this._trapFocus();const r=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(r)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):t&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const e=getComputedStyle(this),t=e.getPropertyValue("animation-name");return!(e.getPropertyValue("display")==="none")&&t&&t!=="none"}_enqueueAnimation(e,t){const r=`__${e}Handler`,s=n=>{n&&n.target!==this||(t(),this.removeEventListener("animationend",s),delete this[r])};this[r]=s,this.addEventListener("animationend",s)}_flushAnimation(e){const t=`__${e}Handler`;typeof this[t]=="function"&&this[t]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;const t=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const t=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}}};/**
949
+ * @license
950
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
951
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
952
+ */const Fe={start:"top",end:"bottom"},He={start:"left",end:"right"},ot=new ResizeObserver(a=>{setTimeout(()=>{a.forEach(i=>{i.target.__overlay&&i.target.__overlay._updatePosition()})})}),At=a=>class extends a{static get properties(){return{positionTarget:{type:Object,value:null},horizontalAlign:{type:String,value:"start"},verticalAlign:{type:String,value:"top"},noHorizontalOverlap:{type:Boolean,value:!1},noVerticalOverlap:{type:Boolean,value:!1},requiredVerticalSpace:{type:Number,value:0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.addEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes=o.getAncestorRootNodes(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)})}__removeUpdatePositionEventListeners(){window.removeEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null)}__overlayOpenedChanged(e,t){if(this.__removeUpdatePositionEventListeners(),t&&(t.__overlay=null,ot.unobserve(t),e&&(this.__addUpdatePositionEventListeners(),t.__overlay=this,ot.observe(t))),e){const r=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(s=>{this.__margins[s]=parseInt(r[s],10)})),this.setAttribute("dir",r.direction),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened)return;const e=this.positionTarget.getBoundingClientRect(),t=this.__shouldAlignStartVertically(e);this.style.justifyContent=t?"flex-start":"flex-end";const r=this.__isRTL,s=this.__shouldAlignStartHorizontally(e,r),n=!r&&s||r&&!s;this.style.alignItems=n?"flex-start":"flex-end";const l=this.getBoundingClientRect(),d=this.__calculatePositionInOneDimension(e,l,this.noVerticalOverlap,Fe,this,t),h=this.__calculatePositionInOneDimension(e,l,this.noHorizontalOverlap,He,this,s);Object.assign(this.style,d,h),this.toggleAttribute("bottom-aligned",!t),this.toggleAttribute("top-aligned",t),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n)}__shouldAlignStartHorizontally(e,t){const r=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const s=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!t&&this.horizontalAlign==="start"||t&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,r,s,this.__margins,n,this.noHorizontalOverlap,He)}__shouldAlignStartVertically(e){const t=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const r=Math.min(window.innerHeight,document.documentElement.clientHeight),s=this.verticalAlign==="top";return this.__shouldAlignStart(e,t,r,this.__margins,s,this.noVerticalOverlap,Fe)}__shouldAlignStart(e,t,r,s,n,l,d){const h=r-e[l?d.end:d.start]-s[d.end],m=e[l?d.start:d.end]-s[d.start],c=n?h:m,w=c>(n?m:h)||c>t;return n===w}__adjustBottomProperty(e,t,r){let s;if(e===t.end){if(t.end===Fe.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(r>n&&this.__oldViewportHeight){const l=this.__oldViewportHeight-n;s=r-l}this.__oldViewportHeight=n}if(t.end===He.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(r>n&&this.__oldViewportWidth){const l=this.__oldViewportWidth-n;s=r-l}this.__oldViewportWidth=n}}return s}__calculatePositionInOneDimension(e,t,r,s,n,l){const d=l?s.start:s.end,h=l?s.end:s.start,m=parseFloat(n.style[d]||getComputedStyle(n)[d]),c=this.__adjustBottomProperty(d,s,m),_=t[l?s.start:s.end]-e[r===l?s.end:s.start],w=c?`${c}px`:`${m+_*(l?-1:1)}px`;return{[d]:w,[h]:""}}};/**
953
+ * @license
954
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
955
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
956
+ */const Ot=o.i$1`
957
+ :host {
958
+ z-index: 200;
959
+ position: fixed;
960
+
961
+ /* Despite of what the names say, <vaadin-overlay> is just a container
962
+ for position/sizing/alignment. The actual overlay is the overlay part. */
963
+
964
+ /* Default position constraints: the entire viewport. Note: themes can
965
+ override this to introduce gaps between the overlay and the viewport. */
966
+ inset: 0;
967
+ bottom: var(--vaadin-overlay-viewport-bottom);
968
+
969
+ /* Use flexbox alignment for the overlay part. */
970
+ display: flex;
971
+ flex-direction: column; /* makes dropdowns sizing easier */
972
+ /* Align to center by default. */
973
+ align-items: center;
974
+ justify-content: center;
975
+
976
+ /* Allow centering when max-width/max-height applies. */
977
+ margin: auto;
978
+
979
+ /* The host is not clickable, only the overlay part is. */
980
+ pointer-events: none;
981
+
982
+ /* Remove tap highlight on touch devices. */
983
+ -webkit-tap-highlight-color: transparent;
984
+
985
+ /* CSS API for host */
986
+ --vaadin-overlay-viewport-bottom: 0;
987
+ }
988
+
989
+ :host([hidden]),
990
+ :host(:not([opened]):not([closing])) {
991
+ display: none !important;
992
+ }
993
+
994
+ [part='overlay'] {
995
+ -webkit-overflow-scrolling: touch;
996
+ overflow: auto;
997
+ pointer-events: auto;
998
+
999
+ /* Prevent overflowing the host */
1000
+ max-width: 100%;
1001
+ box-sizing: border-box;
1002
+
1003
+ -webkit-tap-highlight-color: initial; /* reenable tap highlight inside */
1004
+ }
1005
+
1006
+ [part='backdrop'] {
1007
+ z-index: -1;
1008
+ content: '';
1009
+ background: rgba(0, 0, 0, 0.5);
1010
+ position: fixed;
1011
+ inset: 0;
1012
+ pointer-events: auto;
1013
+ }
1014
+ `;/**
1015
+ * @license
1016
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
1017
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1018
+ */const Yi=o.i$1`
1019
+ [part='overlay'] {
1020
+ display: flex;
1021
+ flex: auto;
1022
+ }
1023
+
1024
+ [part~='content'] {
1025
+ flex: auto;
1026
+ }
1027
+
1028
+ @media (forced-colors: active) {
1029
+ [part='overlay'] {
1030
+ outline: 3px solid;
1031
+ }
1032
+ }
1033
+ `;/**
1034
+ * @license
1035
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
1036
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1037
+ */o.registerStyles("vaadin-date-picker-overlay",[Ot,Yi],{moduleId:"vaadin-date-picker-overlay-styles"});class Ui extends At(Mt(o.DirMixin(o.ThemableMixin(o.PolymerElement)))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return o.html`
1038
+ <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
1039
+ <div part="overlay" id="overlay">
1040
+ <div part="content" id="content">
1041
+ <slot></slot>
1042
+ </div>
1043
+ </div>
1044
+ `}}o.defineCustomElement(Ui);/**
1045
+ * @license
1046
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
1047
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1048
+ */function Wi(a){let i=a.getDay();i===0&&(i=7);const e=4-i,t=new Date(a.getTime()+e*24*3600*1e3),r=new Date(0,0);r.setFullYear(t.getFullYear());const s=t.getTime()-r.getTime(),n=Math.round(s/(24*3600*1e3));return Math.floor(n/7+1)}function q(a,i){return a instanceof Date&&i instanceof Date&&a.getFullYear()===i.getFullYear()&&a.getMonth()===i.getMonth()&&a.getDate()===i.getDate()}function pe(a,i,e){return(!i||a>=i)&&(!e||a<=e)}function Vt(a,i){return i.filter(e=>e!==void 0).reduce((e,t)=>{if(!t)return e;if(!e)return t;const r=Math.abs(a.getTime()-t.getTime()),s=Math.abs(e.getTime()-a.getTime());return r<s?t:e})}function Ft(a){return{day:a.getDate(),month:a.getMonth(),year:a.getFullYear()}}function Ht(a){const i=new Date,e=new Date(i);return e.setDate(1),e.setMonth(parseInt(a)+i.getMonth()),e}function $i(a,i,e=0,t=1){if(i>99)throw new Error("The provided year cannot have more than 2 digits.");if(i<0)throw new Error("The provided year cannot be negative.");let r=i+Math.floor(a.getFullYear()/100)*100;return a<new Date(r-50,e,t)?r-=100:a>new Date(r+50,e,t)&&(r+=100),r}function he(a){const i=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(a);if(!i)return;const e=new Date(0,0);return e.setFullYear(parseInt(i[1],10)),e.setMonth(parseInt(i[2],10)-1),e.setDate(parseInt(i[3],10)),e}/**
1049
+ * @license
1050
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
1051
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1052
+ */const Lt=document.createElement("template");Lt.innerHTML=`
1053
+ <style>
1054
+ :host {
1055
+ display: block;
1056
+ overflow: hidden;
1057
+ height: 500px;
1058
+ }
1059
+
1060
+ #scroller {
1061
+ position: relative;
1062
+ height: 100%;
1063
+ overflow: auto;
1064
+ outline: none;
1065
+ margin-right: -40px;
1066
+ -webkit-overflow-scrolling: touch;
1067
+ overflow-x: hidden;
1068
+ }
1069
+
1070
+ #scroller.notouchscroll {
1071
+ -webkit-overflow-scrolling: auto;
1072
+ }
1073
+
1074
+ #scroller::-webkit-scrollbar {
1075
+ display: none;
1076
+ }
1077
+
1078
+ .buffer {
1079
+ position: absolute;
1080
+ width: var(--vaadin-infinite-scroller-buffer-width, 100%);
1081
+ box-sizing: border-box;
1082
+ padding-right: 40px;
1083
+ top: var(--vaadin-infinite-scroller-buffer-offset, 0);
1084
+ animation: fadein 0.2s;
1085
+ }
1086
+
1087
+ @keyframes fadein {
1088
+ from {
1089
+ opacity: 0;
1090
+ }
1091
+ to {
1092
+ opacity: 1;
1093
+ }
1094
+ }
1095
+ </style>
1096
+
1097
+ <div id="scroller">
1098
+ <div class="buffer"></div>
1099
+ <div class="buffer"></div>
1100
+ <div id="fullHeight"></div>
1101
+ </div>
1102
+ `;class zt extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Lt.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(i){i&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const i=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),e="background-position";this.$.fullHeight.style.setProperty(e,i);const t=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(t)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(i){this._preventScrollEvent=!0,i>this._firstIndex&&i<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(i-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~i,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=i%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll")},10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(i=>{this.$[i.id]=i}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`,o.isFirefox&&(this.$.scroller.tabIndex=-1))}forceUpdate(){this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel())}_createElement(){}_updateElement(i,e){}_finishInit(){this._initDone||(this._buffers.forEach(i=>{[...i.children].forEach(e=>{this._ensureStampedInstance(e._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(i){const e=i?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1),this._buffers[e].style.transform=`translate3d(0, ${this._buffers[e].translateY}px, 0)`,this._buffers[e].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const i=this.$.scroller.scrollTop;(i<this._bufferHeight||i>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,t=i>this._buffers[1].translateY+e,r=i<this._buffers[0].translateY+e;(t||r)&&(this._translateBuffer(r),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=o.Debouncer.debounce(this._debouncerScrollFinish,o.timeOut.after(200),()=>{const s=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],s)&&!this._isVisible(this._buffers[1],s)&&(this.position=this.position)})}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach(i=>{i.style.transform=`translate3d(0, ${i.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=o.Debouncer.debounce(this._debouncerUpdateClones,o.timeOut.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const i=this.getBoundingClientRect();this._buffers.forEach(e=>{for(let t=0;t<this.bufferSize;t++){const r=document.createElement("div");r.style.height=`${this.itemHeight}px`,r.instance={};const s=`vaadin-infinite-scroller-item-content-${o.generateUniqueId()}`,n=document.createElement("slot");n.setAttribute("name",s),n._itemWrapper=r,e.appendChild(n),r.setAttribute("slot",s),this.appendChild(r),this._isVisible(r,i)&&this._ensureStampedInstance(r)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(i){if(i.firstElementChild)return;const e=i.instance;i.instance=this._createElement(),i.appendChild(i.instance),Object.keys(e).forEach(t=>{i.instance[t]=e[t]})}_updateClones(i){this._firstIndex=~~((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=i?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((t,r)=>{if(!t.updated){const s=this._firstIndex+this.bufferSize*r;[...t.children].forEach((n,l)=>{const d=n._itemWrapper;(!i||this._isVisible(d,e))&&this._updateElement(d.instance,s+l)}),t.updated=!0}})}_isVisible(i,e){const t=i.getBoundingClientRect();return t.bottom>e.top&&t.top<e.bottom}}/**
1103
+ * @license
1104
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
1105
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1106
+ */const Rt=document.createElement("template");Rt.innerHTML=`
1107
+ <style>
1108
+ :host {
1109
+ --vaadin-infinite-scroller-item-height: 270px;
1110
+ position: absolute;
1111
+ top: 0;
1112
+ left: 0;
1113
+ right: 0;
1114
+ bottom: 0;
1115
+ height: 100%;
1116
+ }
1117
+ </style>
1118
+ `;class qi extends zt{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(Rt.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(i,e){i.month=Ht(e)}}o.defineCustomElement(qi);/**
1119
+ * @license
1120
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
1121
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1122
+ */const Bt=document.createElement("template");Bt.innerHTML=`
1123
+ <style>
1124
+ :host {
1125
+ --vaadin-infinite-scroller-item-height: 80px;
1126
+ width: 50px;
1127
+ display: block;
1128
+ height: 100%;
1129
+ position: absolute;
1130
+ right: 0;
1131
+ transform: translateX(100%);
1132
+ -webkit-tap-highlight-color: transparent;
1133
+ -webkit-user-select: none;
1134
+ -moz-user-select: none;
1135
+ user-select: none;
1136
+ /* Center the year scroller position. */
1137
+ --vaadin-infinite-scroller-buffer-offset: 50%;
1138
+ }
1139
+
1140
+ :host::before {
1141
+ content: '';
1142
+ display: block;
1143
+ background: transparent;
1144
+ width: 0;
1145
+ height: 0;
1146
+ position: absolute;
1147
+ left: 0;
1148
+ top: 50%;
1149
+ transform: translateY(-50%);
1150
+ border-width: 6px;
1151
+ border-style: solid;
1152
+ border-color: transparent;
1153
+ border-left-color: #000;
1154
+ }
1155
+ </style>
1156
+ `;class ji extends zt{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Bt.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(i,e){i.year=this._yearAfterXYears(e)}_yearAfterXYears(i){const e=new Date,t=new Date(e);return t.setFullYear(parseInt(i)+e.getFullYear()),t.getFullYear()}}o.defineCustomElement(ji);/**
1157
+ * @license
1158
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
1159
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1160
+ */class Gi extends o.ThemableMixin(o.PolymerElement){static get is(){return"vaadin-date-picker-year"}static get template(){return o.html`
1161
+ <style>
1162
+ :host {
1163
+ display: block;
1164
+ height: 100%;
1165
+ }
1166
+ </style>
1167
+ <div part="year-number">[[year]]</div>
1168
+ <div part="year-separator" aria-hidden="true"></div>
1169
+ `}static get properties(){return{year:{type:String},selectedDate:{type:Object}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(i,e){this.toggleAttribute("selected",e&&e.getFullYear()===i),this.toggleAttribute("current",i===new Date().getFullYear())}}o.defineCustomElement(Gi);/**
1170
+ @license
1171
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1172
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1173
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1174
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1175
+ Code distributed by Google as part of the polymer project is also
1176
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1177
+ */function je(a,i,e,t,r){let s;r&&(s=typeof e=="object"&&e!==null,s&&(t=a.__dataTemp[i]));let n=t!==e&&(t===t||e===e);return s&&n&&(a.__dataTemp[i]=e),n}const Ge=o.dedupingMixin(a=>{class i extends a{_shouldPropertyChange(t,r,s){return je(this,t,r,s,!0)}}return i}),Qi=o.dedupingMixin(a=>{class i extends a{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(t,r,s){return je(this,t,r,s,this.mutableData)}}return i});Ge._mutablePropertyChange=je;/**
1178
+ @license
1179
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1180
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1181
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1182
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1183
+ Code distributed by Google as part of the polymer project is also
1184
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1185
+ */let Be=null;function Ne(){return Be}Ne.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Ne,writable:!0}});const Nt=o.PropertyEffects(Ne),Ki=Ge(Nt);function Xi(a,i){Be=a,Object.setPrototypeOf(a,i.prototype),new i,Be=null}const Zi=o.PropertyEffects(class{});function Ji(a,i){for(let e=0;e<i.length;e++){let t=i[e];if(!!a!=!!t.__hideTemplateChildren__)if(t.nodeType===Node.TEXT_NODE)a?(t.__polymerTextContent__=t.textContent,t.textContent=""):t.textContent=t.__polymerTextContent__;else if(t.localName==="slot")if(a)t.__polymerReplaced__=document.createComment("hidden-slot"),o.wrap$1(o.wrap$1(t).parentNode).replaceChild(t.__polymerReplaced__,t);else{const r=t.__polymerReplaced__;r&&o.wrap$1(o.wrap$1(r).parentNode).replaceChild(t,r)}else t.style&&(a?(t.__polymerDisplay__=t.style.display,t.style.display="none"):t.style.display=t.__polymerDisplay__);t.__hideTemplateChildren__=a,t._showHideChildren&&t._showHideChildren(a)}}class Qe extends Zi{constructor(i){super(),this._configureProperties(i),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let r=this.root.firstChild;r;r=r.nextSibling)e.push(r),r.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let t=this.__templatizeOptions;(i&&t.instanceProps||!t.instanceProps)&&this._enableProperties()}_configureProperties(i){if(this.__templatizeOptions.forwardHostProp)for(let t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(let t in i)this._setPendingProperty(t,i[t])}forwardHostProp(i,e){this._setPendingPropertyOrPath(i,e,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(i,e,t){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(i,e,r=>{r.model=this,t(r)});else{let r=this.__dataHost.__dataHost;r&&r._addEventListenerToNode(i,e,t)}}_showHideChildren(i){Ji(i,this.children)}_setUnmanagedPropertyToNode(i,e,t){i.__hideTemplateChildren__&&i.nodeType==Node.TEXT_NODE&&e=="textContent"?i.__polymerTextContent__=t:super._setUnmanagedPropertyToNode(i,e,t)}get parentModel(){let i=this.__parentModel;if(!i){let e;i=this;do i=i.__dataHost.__dataHost;while((e=i.__templatizeOptions)&&!e.parentModel);this.__parentModel=i}return i}dispatchEvent(i){return!0}}const er=Ge(Qe);function lt(a){let i=a.__dataHost;return i&&i._methodHost||i}function tr(a,i,e){let t=e.mutableData?er:Qe;Ye.mixin&&(t=Ye.mixin(t));let r=class extends t{};return r.prototype.__templatizeOptions=e,r.prototype._bindTemplate(a),ar(r,a,i,e),r}function ir(a,i,e,t){let r=e.forwardHostProp;if(r&&i.hasHostProps){const s=a.localName=="template";let n=i.templatizeTemplateClass;if(!n){if(s){let d=e.mutableData?Ki:Nt;class h extends d{}n=i.templatizeTemplateClass=h}else{const d=a.constructor;class h extends d{}n=i.templatizeTemplateClass=h}let l=i.hostProps;for(let d in l)n.prototype._addPropertyEffect("_host_"+d,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:rr(d,r)}),n.prototype._createNotifyingProperty("_host_"+d);o.legacyWarnings&&t&&or(i,e,t)}if(a.__dataProto&&Object.assign(a.__data,a.__dataProto),s)Xi(a,n),a.__dataTemp={},a.__dataPending=null,a.__dataOld=null,a._enableProperties();else{Object.setPrototypeOf(a,n.prototype);const l=i.hostProps;for(let d in l)if(d="_host_"+d,d in a){const h=a[d];delete a[d],a.__data[d]=h}}}}function rr(a,i){return function(t,r,s){i.call(t.__templatizeOwner,r.substring(6),s[r])}}function ar(a,i,e,t){let r=e.hostProps||{};for(let s in t.instanceProps){delete r[s];let n=t.notifyInstanceProp;n&&a.prototype._addPropertyEffect(s,a.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:sr(s,n)})}if(t.forwardHostProp&&i.__dataHost)for(let s in r)e.hasHostProps||(e.hasHostProps=!0),a.prototype._addPropertyEffect(s,a.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:nr()})}function sr(a,i){return function(t,r,s){i.call(t.__templatizeOwner,t,r,s[r])}}function nr(){return function(i,e,t){i.__dataHost._setPendingPropertyOrPath("_host_"+e,t[e],!0,!0)}}function Ye(a,i,e){if(o.strictTemplatePolicy&&!lt(a))throw new Error("strictTemplatePolicy: template owner not trusted");if(e=e||{},a.__templatizeOwner)throw new Error("A <template> can only be templatized once");a.__templatizeOwner=i;let r=(i?i.constructor:Qe)._parseTemplate(a),s=r.templatizeInstanceClass;s||(s=tr(a,r,e),r.templatizeInstanceClass=s);const n=lt(a);ir(a,r,e,n);let l=class extends s{};return l.prototype._methodHost=n,l.prototype.__dataHost=a,l.prototype.__templatizeOwner=i,l.prototype.__hostProps=r.hostProps,l=l,l}function or(a,i,e){const t=e.constructor._properties,{propertyEffects:r}=a,{instanceProps:s}=i;for(let n in r)if(!t[n]&&!(s&&s[n])){const l=r[n];for(let d=0;d<l.length;d++){const{part:h}=l[d].info;if(!(h.signature&&h.signature.static)){console.warn(`Property '${n}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function lr(a,i){let e;for(;i;)if(e=i.__dataHost?i:i.__templatizeInstance)if(e.__dataHost!=a)i=e.__dataHost;else return e;else i=o.wrap$1(i).parentNode;return null}/**
1186
+ @license
1187
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1188
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1189
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1190
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1191
+ Code distributed by Google as part of the polymer project is also
1192
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1193
+ */class Ce{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(i,e){this._asyncModule=i,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,fe.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),fe.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}static debounce(i,e,t){return i instanceof Ce?i._cancelAsync():i=new Ce,i.setConfig(e,t),i}}let fe=new Set;const dr=function(a){fe.add(a)},hr=function(){const a=!!fe.size;return fe.forEach(i=>{try{i.flush()}catch(e){setTimeout(()=>{throw e})}}),a};/**
1194
+ @license
1195
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1196
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1197
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1198
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1199
+ Code distributed by Google as part of the polymer project is also
1200
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1201
+ */const Yt=function(){let a,i;do a=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),i=hr();while(a||i)};/**
1202
+ @license
1203
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1204
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1205
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1206
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1207
+ Code distributed by Google as part of the polymer project is also
1208
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1209
+ */let dt=!1;function ur(){if(o.legacyOptimizations&&!o.useShadow){if(!dt){dt=!0;const a=document.createElement("style");a.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(a)}return!0}return!1}/**
1210
+ @license
1211
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1212
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1213
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1214
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1215
+ Code distributed by Google as part of the polymer project is also
1216
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1217
+ */const cr=Qi(o.PolymerElement);class ht extends cr{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!o.suppressTemplateNotifications,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let i=0;i<this.__instances.length;i++)this.__detachInstance(i);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),ur()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let i=o.wrap$1(o.wrap$1(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,i);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const i=this;let e=this.template=i._templateInfo?i:this.querySelector("template");if(!e){let r=new MutationObserver(()=>{if(this.querySelector("template"))r.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return r.observe(this,{childList:!0}),!1}let t={};t[this.as]=!0,t[this.indexAs]=!0,t[this.itemsIndexAs]=!0,this.__ctor=Ye(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:t,forwardHostProp:function(r,s){let n=this.__instances;for(let l=0,d;l<n.length&&(d=n[l]);l++)d.forwardHostProp(r,s)},notifyInstanceProp:function(r,s,n){if(o.matches(this.as,s)){let l=r[this.itemsIndexAs];s==this.as&&(this.items[l]=n);let d=o.translate(this.as,`${JSCompiler_renameProperty("items",this)}.${l}`,s);this.notifyPath(d,n)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(i){if(typeof i=="string"){let e=i,t=this.__getMethodHost();return function(){return t[e].apply(t,arguments)}}return i}__sortChanged(i){this.__sortFn=this.__functionFromPropertyValue(i),this.items&&this.__debounceRender(this.__render)}__filterChanged(i){this.__filterFn=this.__functionFromPropertyValue(i),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(i){return Math.ceil(1e3/i)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(i){if(this.__sortFn||this.__filterFn){if(!i)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let e=this.__observePaths;for(let t=0;t<e.length;t++)i.indexOf(e[t])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(i){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(i.path,i.value)||(i.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(i,e=0){this.__renderDebouncer=Ce.debounce(this.__renderDebouncer,e>0?o.timeOut$1.after(e):o.microTask$1,i.bind(this)),dr(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Yt()}__render(){if(!this.__ensureTemplatized())return;let i=this.items||[];const e=this.__sortAndFilterItems(i),t=this.__calculateLimit(e.length);this.__updateInstances(i,t,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!o.suppressTemplateNotifications||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(i){let e=new Array(i.length);for(let t=0;t<i.length;t++)e[t]=t;return this.__filterFn&&(e=e.filter((t,r,s)=>this.__filterFn(i[t],r,s))),this.__sortFn&&e.sort((t,r)=>this.__sortFn(i[t],i[r])),e}__calculateLimit(i){let e=i;const t=this.__instances.length;if(this.initialCount){let r;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(i,this.initialCount),r=Math.max(e-t,0),this.__chunkCount=r||1):(r=Math.min(Math.max(i-t,0),this.__chunkCount),e=Math.min(t+r,i)),this.__shouldMeasureChunk=r===this.__chunkCount,this.__shouldContinueChunking=e<i,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,e}__continueChunking(){if(this.__shouldMeasureChunk){const i=performance.now()-this.__renderStartTime,e=this._targetFrameTime/i;this.__chunkCount=Math.round(this.__chunkCount*e)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(i,e,t){const r=this.__itemsIdxToInstIdx={};let s;for(s=0;s<e;s++){let n=this.__instances[s],l=t[s],d=i[l];r[l]=s,n?(n._setPendingProperty(this.as,d),n._setPendingProperty(this.indexAs,s),n._setPendingProperty(this.itemsIndexAs,l),n._flushProperties()):this.__insertInstance(d,s,l)}for(let n=this.__instances.length-1;n>=s;n--)this.__detachAndRemoveInstance(n)}__detachInstance(i){let e=this.__instances[i];const t=o.wrap$1(e.root);for(let r=0;r<e.children.length;r++){let s=e.children[r];t.appendChild(s)}return e}__attachInstance(i,e){let t=this.__instances[i];e.insertBefore(t.root,this)}__detachAndRemoveInstance(i){this.__detachInstance(i),this.__instances.splice(i,1)}__stampInstance(i,e,t){let r={};return r[this.as]=i,r[this.indexAs]=e,r[this.itemsIndexAs]=t,new this.__ctor(r)}__insertInstance(i,e,t){const r=this.__stampInstance(i,e,t);let s=this.__instances[e+1],n=s?s.children[0]:this;return o.wrap$1(o.wrap$1(this).parentNode).insertBefore(r.root,n),this.__instances[e]=r,r}_showHideChildren(i){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(i)}__handleItemPath(i,e){let t=i.slice(6),r=t.indexOf("."),s=r<0?t:t.substring(0,r);if(s==parseInt(s,10)){let n=r<0?"":t.substring(r+1);this.__handleObservedPaths(n);let l=this.__itemsIdxToInstIdx[s],d=this.__instances[l];if(d){let h=this.as+(n?"."+n:"");d._setPendingPropertyOrPath(h,e,!1,!0),d._flushProperties()}return!0}}itemForElement(i){let e=this.modelForElement(i);return e&&e[this.as]}indexForElement(i){let e=this.modelForElement(i);return e&&e[this.indexAs]}modelForElement(i){return lr(this.template,i)}}customElements.define(ht.is,ht);/**
1218
+ * @license
1219
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
1220
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1221
+ */const pr=a=>class extends o.FocusMixin(a){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>q(e.date,this.focusedDate))}ready(){super.ready(),o.addListener(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,t,r){const s=new Date(0,0);s.setFullYear(e.getFullYear()),s.setMonth(e.getMonth()),s.setDate(1);const n=new Date(0,0);return n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()+1),n.setDate(0),t&&r&&t.getMonth()===r.getMonth()&&t.getMonth()===e.getMonth()&&r.getDate()-t.getDate()>=0?!1:!pe(s,t,r)&&!pe(n,t,r)}_getTitle(e,t){if(!(e===void 0||t===void 0))return t.formatTitle(t.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,t){e.setDate(e.getDate()+t)}_applyFirstDayOfWeek(e,t){if(!(e===void 0||t===void 0))return e.slice(t).concat(e.slice(0,t))}_getWeekDayNames(e,t){if(e===void 0||t===void 0)return[];const{weekdays:r,weekdaysShort:s,firstDayOfWeek:n}=e,l=this._applyFirstDayOfWeek(s,n);return this._applyFirstDayOfWeek(r,n).map((h,m)=>({weekDay:h,weekDayShort:l[m]}))}__focusedDateChanged(e,t){Array.isArray(t)&&t.some(r=>q(r,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,t){return e&&t&&t.firstDayOfWeek===1}_isToday(e){return q(new Date,e)}_getDays(e,t){if(e===void 0||t===void 0)return[];const r=new Date(0,0);for(r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);r.getDay()!==t.firstDayOfWeek;)this._dateAdd(r,-1);const s=[],n=r.getMonth(),l=e.getMonth();for(;r.getMonth()===l||r.getMonth()===n;)s.push(r.getMonth()===l?new Date(r.getTime()):null),this._dateAdd(r,1);return s}_getWeeks(e){return e.reduce((t,r,s)=>(s%7===0&&t.push([]),t[t.length-1].push(r),t),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})))}_preventDefault(e){e.preventDefault()}__getWeekNumber(e){const t=e.reduce((r,s)=>!r&&s?s:r);return Wi(t)}__getDayAriaLabel(e){if(!e)return"";let t=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(t+=`, ${this.i18n.today}`),t}};/**
1222
+ * @license
1223
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
1224
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1225
+ */const fr=o.i$1`
1226
+ :host {
1227
+ display: block;
1228
+ }
1229
+
1230
+ #monthGrid {
1231
+ width: 100%;
1232
+ border-collapse: collapse;
1233
+ }
1234
+
1235
+ #days-container tr,
1236
+ #weekdays-container tr {
1237
+ display: flex;
1238
+ }
1239
+
1240
+ [part~='date'] {
1241
+ outline: none;
1242
+ }
1243
+
1244
+ [part~='disabled'] {
1245
+ pointer-events: none;
1246
+ }
1247
+
1248
+ [part='week-number'][hidden],
1249
+ [part='weekday'][hidden] {
1250
+ display: none;
1251
+ }
1252
+
1253
+ [part='weekday'],
1254
+ [part~='date'] {
1255
+ width: calc(100% / 7);
1256
+ padding: 0;
1257
+ font-weight: normal;
1258
+ }
1259
+
1260
+ [part='weekday']:empty,
1261
+ [part='week-number'] {
1262
+ width: 12.5%;
1263
+ flex-shrink: 0;
1264
+ padding: 0;
1265
+ }
1266
+
1267
+ :host([week-numbers]) [part='weekday']:not(:empty),
1268
+ :host([week-numbers]) [part~='date'] {
1269
+ width: 12.5%;
1270
+ }
1271
+
1272
+ @media (forced-colors: active) {
1273
+ [part~='date'][part~='focused'] {
1274
+ outline: 1px solid;
1275
+ }
1276
+
1277
+ [part~='date'][part~='selected'] {
1278
+ outline: 3px solid;
1279
+ }
1280
+ }
1281
+ `;/**
1282
+ * @license
1283
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
1284
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1285
+ */o.registerStyles("vaadin-month-calendar",fr,{moduleId:"vaadin-month-calendar-styles"});class mr extends pr(o.ThemableMixin(o.PolymerElement)){static get template(){return o.html`
1286
+ <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
1287
+ <table
1288
+ id="monthGrid"
1289
+ role="grid"
1290
+ aria-labelledby="month-header"
1291
+ on-touchend="_preventDefault"
1292
+ on-touchstart="_onMonthGridTouchStart"
1293
+ >
1294
+ <thead id="weekdays-container">
1295
+ <tr role="row" part="weekdays">
1296
+ <th part="weekday" aria-hidden="true" hidden$="[[!_showWeekSeparator(showWeekNumbers, i18n)]]"></th>
1297
+ <template is="dom-repeat" items="[[_getWeekDayNames(i18n, showWeekNumbers)]]">
1298
+ <th role="columnheader" part="weekday" scope="col" abbr$="[[item.weekDay]]" aria-hidden="true">
1299
+ [[item.weekDayShort]]
1300
+ </th>
1301
+ </template>
1302
+ </tr>
1303
+ </thead>
1304
+ <tbody id="days-container">
1305
+ <template is="dom-repeat" items="[[_weeks]]" as="week">
1306
+ <tr role="row">
1307
+ <td part="week-number" aria-hidden="true" hidden$="[[!_showWeekSeparator(showWeekNumbers, i18n)]]">
1308
+ [[__getWeekNumber(week)]]
1309
+ </td>
1310
+ <template is="dom-repeat" items="[[week]]">
1311
+ <td
1312
+ role="gridcell"
1313
+ part$="[[__getDatePart(item, focusedDate, selectedDate, minDate, maxDate)]]"
1314
+ date="[[item]]"
1315
+ tabindex$="[[__getDayTabindex(item, focusedDate)]]"
1316
+ disabled$="[[__isDayDisabled(item, minDate, maxDate)]]"
1317
+ aria-selected$="[[__getDayAriaSelected(item, selectedDate)]]"
1318
+ aria-disabled$="[[__getDayAriaDisabled(item, minDate, maxDate)]]"
1319
+ aria-label$="[[__getDayAriaLabel(item)]]"
1320
+ >[[_getDate(item)]]</td
1321
+ >
1322
+ </template>
1323
+ </tr>
1324
+ </template>
1325
+ </tbody>
1326
+ </table>
1327
+ `}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(i,e){i&&e&&e.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(i,e,t,r,s){const n=["date"];return this.__isDayDisabled(i,r,s)&&n.push("disabled"),this.__isDayFocused(i,e)&&n.push("focused"),this.__isDaySelected(i,t)&&n.push("selected"),this._isToday(i)&&n.push("today"),n.join(" ")}__isDayFocused(i,e){return q(i,e)}__isDaySelected(i,e){return q(i,e)}__getDayAriaSelected(i,e){if(this.__isDaySelected(i,e))return"true"}__isDayDisabled(i,e,t){return!pe(i,e,t)}__getDayAriaDisabled(i,e,t){if(!(i===void 0||e===void 0||t===void 0)&&this.__isDayDisabled(i,e,t))return"true"}__getDayTabindex(i,e){return this.__isDayFocused(i,e)?"0":"-1"}}o.defineCustomElement(mr);/**
1328
+ * @license
1329
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
1330
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1331
+ */class Ut{constructor(i,e){this.query=i,this.callback=e,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(i){typeof this.callback=="function"&&this.callback(i.matches)}}/**
1332
+ * @license
1333
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
1334
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1335
+ */const _r=a=>class extends a{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){o.setTouchAction(this.$.scrollers,"pan-y"),o.addListener(this.$.scrollers,"track",this._track.bind(this)),o.addListener(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),o.addListener(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),o.addListener(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Ut(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new o.SlotController(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onTodayButtonKeyDown(t)),o.addListener(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new o.SlotController(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onCancelButtonKeyDown(t)),o.addListener(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,t){const r=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+r,t),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new o.SlotController(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",t=>{this.__onMonthCalendarKeyDown(t)}),e.addEventListener("init-done",()=>{const t=[...this.querySelectorAll("vaadin-month-calendar")];t.forEach(r=>{r.addEventListener("selected-date-changed",s=>{this.selectedDate=s.detail.value})}),this.calendars=t}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new o.SlotController(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),o.addListener(e,"tap",t=>{this._onYearTap(t)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,t){e&&(e.textContent=t&&t.cancel)}__updateTodayButton(e,t,r,s){e&&(e.textContent=t&&t.today,e.disabled=!this._isTodayAllowed(r,s))}__updateCalendars(e,t,r,s,n,l,d,h,m){e&&e.length&&e.forEach(c=>{c.i18n=t,c.minDate=r,c.maxDate=s,c.focusedDate=l,c.selectedDate=n,c.showWeekNumbers=d,c.ignoreTaps=h,m?c.setAttribute("theme",m):c.removeAttribute("theme")})}__updateYears(e,t,r){e&&e.length&&e.forEach(s=>{s.selectedDate=t,r?s.setAttribute("theme",r):s.removeAttribute("theme")})}_selectDate(e){this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0}))}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,t=!0){if(!e)return;const r=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const h=this._calculateWeekScrollOffset(e);this._scrollToPosition(r+h,t);return}const s=this._monthScroller.position>r,l=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,d=this._monthScroller.position+l-1<r;s?this._scrollToPosition(r,t):d&&this._scrollToPosition(r-l+1,t)}_calculateWeekScrollOffset(e){const t=new Date(0,0);t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(1);let r=0;for(;t.getDate()<e.getDate();)t.setDate(t.getDate()+1),t.getDay()===this.i18n.firstDayOfWeek&&(r+=1);return r/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=o.Debouncer.debounce(this._debouncer,o.timeOut.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,t,r){return e&&t&&typeof t.formatDate=="function"?t.formatDate(Ft(e)):r}_onTodayTap(){const e=new Date;Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const r=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+r*12,!0)}}_scrollToPosition(e,t){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!t){this._monthScroller.position=e,this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let r;this._revealPromise=new Promise(h=>{r=h});const s=(h,m,c,_)=>(h/=_/2,h<1?c/2*h*h+m:(h-=1,-c/2*(h*(h-2)-1)+m));let n=0;const l=this._monthScroller.position,d=h=>{n||(n=h);const m=h-n;if(m<this.scrollDuration){const c=s(m,l,this._targetPosition-l,this.scrollDuration);this._monthScroller.position=c,window.requestAnimationFrame(d)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:l}})),this._monthScroller.position=this._targetPosition,this._targetPosition=void 0,r(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(d)}_limit(e,t){return Math.min(t.max,Math.max(t.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const t=this._translateX+e.detail.ddx;this._translateX=this._limit(t,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return Ht(e).getFullYear()}_differenceInMonths(e,t){return(e.getFullYear()-t.getFullYear())*12-t.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){q(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let t=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),t=!0;break;case"ArrowUp":this._moveFocusByDays(-7),t=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),t=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),t=!0;break;case"Enter":this._selectDate(this.focusedDate),this._close(),t=!0;break;case" ":this.__toggleDate(this.focusedDate),t=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),t=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),t=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),t=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),t=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}t&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,t){switch(e.stopPropagation(),t){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const t=this.focusableDateElement;t&&q(t.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,t.focus())}}focusDate(e,t){return Me(this,null,function*(){const r=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=r,t||(this._focusedMonthDate=r.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return Me(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(t=>{Pt(this,()=>{Yt(),t()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(Vt(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,t,r){this._dateAllowed(e)?this.focusDate(e,r):this._dateAllowed(this.focusedDate)?t>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,t){const r=new Date(0,0);return r.setFullYear(this.focusedDate.getFullYear()),r.setMonth(this.focusedDate.getMonth()+e),t&&r.setDate(this.focusedDate.getDate()+t),r}_moveFocusByDays(e){const t=this._getDateDiff(0,e);this._focusAllowedDate(t,e,!1)}_moveFocusByMonths(e){const t=this._getDateDiff(e),r=t.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),t.setDate(this._focusedMonthDate),t.getMonth()!==r&&t.setDate(0),this._focusAllowedDate(t,e,!0)}_moveFocusInsideMonth(e,t){const r=new Date(0,0);r.setFullYear(e.getFullYear()),t==="minDate"?(r.setMonth(e.getMonth()),r.setDate(1)):(r.setMonth(e.getMonth()+1),r.setDate(0)),this._dateAllowed(r)?this.focusDate(r):this._dateAllowed(e)?this.focusDate(this[t]):this._focusClosestDate(e)}_dateAllowed(e,t=this.minDate,r=this.maxDate){return(!t||e>=t)&&(!r||e<=r)}_isTodayAllowed(e,t){const r=new Date,s=new Date(0,0);return s.setFullYear(r.getFullYear()),s.setMonth(r.getMonth()),s.setDate(r.getDate()),this._dateAllowed(s,e,t)}};/**
1336
+ * @license
1337
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
1338
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1339
+ */const vr=o.i$1`
1340
+ :host {
1341
+ display: flex;
1342
+ flex-direction: column;
1343
+ height: 100%;
1344
+ width: 100%;
1345
+ outline: none;
1346
+ }
1347
+
1348
+ [part='overlay-header'] {
1349
+ display: flex;
1350
+ flex-shrink: 0;
1351
+ flex-wrap: nowrap;
1352
+ align-items: center;
1353
+ }
1354
+
1355
+ :host(:not([fullscreen])) [part='overlay-header'] {
1356
+ display: none;
1357
+ }
1358
+
1359
+ [part='label'] {
1360
+ flex-grow: 1;
1361
+ }
1362
+
1363
+ [hidden] {
1364
+ display: none !important;
1365
+ }
1366
+
1367
+ [part='years-toggle-button'] {
1368
+ display: flex;
1369
+ }
1370
+
1371
+ #scrollers {
1372
+ display: flex;
1373
+ height: 100%;
1374
+ width: 100%;
1375
+ position: relative;
1376
+ overflow: hidden;
1377
+ }
1378
+
1379
+ :host([desktop]) ::slotted([slot='months']) {
1380
+ right: 50px;
1381
+ transform: none !important;
1382
+ }
1383
+
1384
+ :host([desktop]) ::slotted([slot='years']) {
1385
+ transform: none !important;
1386
+ }
1387
+
1388
+ :host(.animate) ::slotted([slot='months']),
1389
+ :host(.animate) ::slotted([slot='years']) {
1390
+ transition: all 200ms;
1391
+ }
1392
+
1393
+ [part='toolbar'] {
1394
+ display: flex;
1395
+ justify-content: space-between;
1396
+ z-index: 2;
1397
+ flex-shrink: 0;
1398
+ }
1399
+ `;/**
1400
+ * @license
1401
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
1402
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1403
+ */o.registerStyles("vaadin-date-picker-overlay-content",vr,{moduleId:"vaadin-date-picker-overlay-content-styles"});class gr extends _r(o.ControllerMixin(o.ThemableMixin(o.DirMixin(o.PolymerElement)))){static get template(){return o.html`
1404
+ <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
1405
+ <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
1406
+ <div part="clear-button" hidden$="[[!selectedDate]]"></div>
1407
+ <div part="toggle-button"></div>
1408
+
1409
+ <div part="years-toggle-button" hidden$="[[_desktopMode]]" aria-hidden="true">
1410
+ [[_yearAfterXMonths(_visibleMonthIndex)]]
1411
+ </div>
1412
+ </div>
1413
+
1414
+ <div id="scrollers">
1415
+ <slot name="months"></slot>
1416
+ <slot name="years"></slot>
1417
+ </div>
1418
+
1419
+ <div on-touchend="_preventDefault" role="toolbar" part="toolbar">
1420
+ <slot name="today-button"></slot>
1421
+ <slot name="cancel-button"></slot>
1422
+ </div>
1423
+ `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}o.defineCustomElement(gr);/**
1424
+ * @license
1425
+ * Copyright (c) 2023 Vaadin Ltd.
1426
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1427
+ */const Wt=a=>class extends a{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,t){if(!t||e===void 0)return;const{classList:r}=t;if(this.__initialClasses||(this.__initialClasses=new Set(r)),Array.isArray(this.__previousClasses)){const n=this.__previousClasses.filter(l=>!this.__initialClasses.has(l));n.length>0&&r.remove(...n)}const s=typeof e=="string"?e.split(" "):[];s.length>0&&r.add(...s),this.__previousClasses=s}};/**
1428
+ * @license
1429
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
1430
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1431
+ */class $t{constructor(i){this.host=i,i.addEventListener("opened-changed",()=>{i.opened||this.__setVirtualKeyboardEnabled(!1)}),i.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),i.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(i){this.host.inputElement&&(this.host.inputElement.inputMode=i?"":"none")}}/**
1432
+ * @license
1433
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
1434
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1435
+ */const yr=a=>class extends Wt(o.ControllerMixin(o.DelegateFocusMixin(o.InputConstraintsMixin(o.KeyboardMixin(a))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const t=String(e.year).replace(/\d+/u,r=>"0000".substr(r.length)+r);return[e.month+1,e.day,t].join("/")},parseDate(e){const t=e.split("/"),r=new Date;let s,n=r.getMonth(),l=r.getFullYear();if(t.length===3){if(n=parseInt(t[0])-1,s=parseInt(t[1]),l=parseInt(t[2]),t[2].length<3&&l>=0){const d=this.referenceDate?he(this.referenceDate):new Date;l=$i(d,l,n,s)}}else t.length===2?(n=parseInt(t[0])-1,s=parseInt(t[1])):t.length===1&&(s=parseInt(t[0]));if(s!==void 0)return{day:s,month:n,year:l}},formatTitle:(e,t)=>`${e} ${t}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:o.isIOS},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}_onFocus(e){super._onFocus(e),this._noInput&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this._selectParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new Ut(this._fullscreenMediaQuery,t=>{this._fullscreen=t})),this.addController(new $t(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){if(e.firstChild)return;const t=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(t),this._overlayContent=t,t.addEventListener("close",()=>{this._close()}),t.addEventListener("focus-input",this._focusAndSelect.bind(this)),t.addEventListener("date-tap",r=>{this.__userConfirmedDate=!0,this._selectDate(r.detail.date),this._close()}),t.addEventListener("date-selected",r=>{this.__userConfirmedDate=!!r.detail.date,this._selectDate(r.detail.date)}),t.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),t.addEventListener("focused-date-changed",r=>{this._focusedDate=r.detail.value})}__parseDate(e){if(!this.i18n.parseDate)return;let t=this.i18n.parseDate(e);if(t&&(t=he(`${t.year}-${t.month+1}-${t.day}`)),t&&!isNaN(t.getTime()))return t}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Ft(e))}checkValidity(){const e=this._inputElementValue,t=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),r=!this._selectedDate||pe(this._selectedDate,this._minDate,this._maxDate);let s=!0;return this.inputElement&&(this.inputElement.checkValidity?s=this.inputElement.checkValidity():this.inputElement.validate&&(s=this.inputElement.validate())),t&&r&&s}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){return!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__dispatchChange(){this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}_selectDate(e){const t=this.value;this._selectedDate=e,t!==this.value&&this.__dispatchChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,t,r,s,n,l){return!e||t&&(!l||n)||r&&n||!s.parseDate}_formatISO(e){if(!(e instanceof Date))return"";const t=(m,c="00")=>(c+m).substr((c+m).length-c.length);let r="",s="0000",n=e.getFullYear();n<0?(n=-n,r="-",s="000000"):e.getFullYear()>=1e4&&(r="+",s="000000");const l=r+t(n,s),d=t(e.getMonth()+1),h=t(e.getDate());return[l,d,h].join("-")}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,t){e===void 0||t===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,t){e===void 0||t===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,t){const r=he(e);if(e&&!r){this.value=t;return}e?q(this._selectedDate,r)||(this._selectedDate=r,t!==void 0&&this.validate()):this._selectedDate=null,this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,t,r,s,n,l,d,h){e&&(e.i18n=t,e.label=r,e.minDate=s,e.maxDate=n,e.focusedDate=l,e.selectedDate=d,e.showWeekNumbers=h)}__updateOverlayContentTheme(e,t){e&&(t?e.setAttribute("theme",t):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,t){e&&e.toggleAttribute("fullscreen",t)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._close()}_onOverlayOpened(){const e=this._overlayContent;e.reset();const t=this._getInitialPosition();e.initialPosition=t;const r=e.focusedDate||t;e.scrollToDate(r),this._ignoreFocusedDateChange=!0,e.focusedDate=r,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const s=this._nativeInput;this._noInput&&s&&(s.blur(),this._overlayContent.focusDateElement());const n=this._noInput?e:[s,e];this.__showOthers=St(n)}_getInitialPosition(){const e=he(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||pe(t,this._minDate,this._maxDate)?t:Vt(t,[this._minDate,this._maxDate])}_selectParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",t=this.__parseDate(e);t?this._selectDate(t):(this.__keepInputValue=!0,this._selectDate(null),this._selectedDate=null,this.__keepInputValue=!1)}else this._focusedDate&&this._selectDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this.__userConfirmedDate?this.__userConfirmedDate=!1:this._selectParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this._inputElementValue="",this.value="",this.__dispatchChange()}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){const t=this.value;this.opened?this.close():this._selectParsedOrFocusedDate(),t===this.value&&this.validate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value){e.stopPropagation(),this._onClearButtonClick(e);return}this.autoOpenDisabled?(this.inputElement.value===""&&this._selectDate(null),this._applyInputValue(this._selectedDate)):(this._focusedDate=this._selectedDate,this._selectParsedOrFocusedDate())}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,q(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return he(e)}};/**
1436
+ * @license
1437
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
1438
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1439
+ */const br=o.i$1`
1440
+ :host([opened]) {
1441
+ pointer-events: auto;
1442
+ }
1443
+
1444
+ :host([dir='rtl']) [part='input-field'] {
1445
+ direction: ltr;
1446
+ }
1447
+
1448
+ :host([dir='rtl']) [part='input-field'] ::slotted(input)::placeholder {
1449
+ direction: rtl;
1450
+ text-align: left;
1451
+ }
1452
+ `;/**
1453
+ * @license
1454
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
1455
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1456
+ */o.registerStyles("vaadin-date-picker",[o.inputFieldShared$1,br],{moduleId:"vaadin-date-picker-styles"});class wr extends yr(o.InputControlMixin(o.ThemableMixin(o.ElementMixin(o.PolymerElement)))){static get is(){return"vaadin-date-picker"}static get template(){return o.html`
1457
+ <div class="vaadin-date-picker-container">
1458
+ <div part="label">
1459
+ <slot name="label"></slot>
1460
+ <span part="required-indicator" aria-hidden="true" on-click="focus"></span>
1461
+ </div>
1462
+
1463
+ <vaadin-input-container
1464
+ part="input-field"
1465
+ readonly="[[readonly]]"
1466
+ disabled="[[disabled]]"
1467
+ invalid="[[invalid]]"
1468
+ theme$="[[_theme]]"
1469
+ >
1470
+ <slot name="prefix" slot="prefix"></slot>
1471
+ <slot name="input"></slot>
1472
+ <div id="clearButton" part="clear-button" slot="suffix" aria-hidden="true"></div>
1473
+ <div part="toggle-button" slot="suffix" aria-hidden="true" on-click="_toggle"></div>
1474
+ </vaadin-input-container>
1475
+
1476
+ <div part="helper-text">
1477
+ <slot name="helper"></slot>
1478
+ </div>
1479
+
1480
+ <div part="error-message">
1481
+ <slot name="error-message"></slot>
1482
+ </div>
1483
+ </div>
1484
+
1485
+ <vaadin-date-picker-overlay
1486
+ id="overlay"
1487
+ fullscreen$="[[_fullscreen]]"
1488
+ theme$="[[_theme]]"
1489
+ opened="{{opened}}"
1490
+ on-vaadin-overlay-escape-press="_onOverlayEscapePress"
1491
+ on-vaadin-overlay-open="_onOverlayOpened"
1492
+ on-vaadin-overlay-closing="_onOverlayClosed"
1493
+ restore-focus-on-close
1494
+ restore-focus-node="[[inputElement]]"
1495
+ ></vaadin-date-picker-overlay>
1496
+
1497
+ <slot name="tooltip"></slot>
1498
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new o.InputController(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new o.LabelledInputController(this.inputElement,this._labelController)),this._tooltipController=new o.TooltipController(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(i){i.detail.sourceEvent&&i.detail.sourceEvent.composedPath().includes(this)&&i.preventDefault()}_toggle(i){i.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(i){super._openedChanged(i),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}o.defineCustomElement(wr);function j(a){"@babel/helpers - typeof";return j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},j(a)}function P(a,i){if(i.length<a)throw new TypeError(a+" argument"+(a>1?"s":"")+" required, but only "+i.length+" present")}function xr(a){return P(1,arguments),a instanceof Date||j(a)==="object"&&Object.prototype.toString.call(a)==="[object Date]"}function A(a){P(1,arguments);var i=Object.prototype.toString.call(a);return a instanceof Date||j(a)==="object"&&i==="[object Date]"?new Date(a.getTime()):typeof a=="number"||i==="[object Number]"?new Date(a):((typeof a=="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)),new Date(NaN))}function Cr(a){if(P(1,arguments),!xr(a)&&typeof a!="number")return!1;var i=A(a);return!isNaN(Number(i))}function z(a){if(a===null||a===!0||a===!1)return NaN;var i=Number(a);return isNaN(i)?i:i<0?Math.ceil(i):Math.floor(i)}function kr(a,i){P(2,arguments);var e=A(a).getTime(),t=z(i);return new Date(e+t)}function qt(a,i){P(2,arguments);var e=z(i);return kr(a,-e)}var Tr=864e5;function Dr(a){P(1,arguments);var i=A(a),e=i.getTime();i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0);var t=i.getTime(),r=e-t;return Math.floor(r/Tr)+1}function re(a){P(1,arguments);var i=1,e=A(a),t=e.getUTCDay(),r=(t<i?7:0)+t-i;return e.setUTCDate(e.getUTCDate()-r),e.setUTCHours(0,0,0,0),e}function jt(a){P(1,arguments);var i=A(a),e=i.getUTCFullYear(),t=new Date(0);t.setUTCFullYear(e+1,0,4),t.setUTCHours(0,0,0,0);var r=re(t),s=new Date(0);s.setUTCFullYear(e,0,4),s.setUTCHours(0,0,0,0);var n=re(s);return i.getTime()>=r.getTime()?e+1:i.getTime()>=n.getTime()?e:e-1}function Ir(a){P(1,arguments);var i=jt(a),e=new Date(0);e.setUTCFullYear(i,0,4),e.setUTCHours(0,0,0,0);var t=re(e);return t}var Er=6048e5;function Gt(a){P(1,arguments);var i=A(a),e=re(i).getTime()-Ir(i).getTime();return Math.round(e/Er)+1}var Pr={};function se(){return Pr}function ee(a,i){var e,t,r,s,n,l,d,h;P(1,arguments);var m=se(),c=z((e=(t=(r=(s=i==null?void 0:i.weekStartsOn)!==null&&s!==void 0?s:i==null||(n=i.locale)===null||n===void 0||(l=n.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:m.weekStartsOn)!==null&&t!==void 0?t:(d=m.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&e!==void 0?e:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var _=A(a),w=_.getUTCDay(),x=(w<c?7:0)+w-c;return _.setUTCDate(_.getUTCDate()-x),_.setUTCHours(0,0,0,0),_}function Ke(a,i){var e,t,r,s,n,l,d,h;P(1,arguments);var m=A(a),c=m.getUTCFullYear(),_=se(),w=z((e=(t=(r=(s=i==null?void 0:i.firstWeekContainsDate)!==null&&s!==void 0?s:i==null||(n=i.locale)===null||n===void 0||(l=n.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:_.firstWeekContainsDate)!==null&&t!==void 0?t:(d=_.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&e!==void 0?e:1);if(!(w>=1&&w<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var x=new Date(0);x.setUTCFullYear(c+1,0,w),x.setUTCHours(0,0,0,0);var L=ee(x,i),H=new Date(0);H.setUTCFullYear(c,0,w),H.setUTCHours(0,0,0,0);var B=ee(H,i);return m.getTime()>=L.getTime()?c+1:m.getTime()>=B.getTime()?c:c-1}function Sr(a,i){var e,t,r,s,n,l,d,h;P(1,arguments);var m=se(),c=z((e=(t=(r=(s=i==null?void 0:i.firstWeekContainsDate)!==null&&s!==void 0?s:i==null||(n=i.locale)===null||n===void 0||(l=n.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:m.firstWeekContainsDate)!==null&&t!==void 0?t:(d=m.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&e!==void 0?e:1),_=Ke(a,i),w=new Date(0);w.setUTCFullYear(_,0,c),w.setUTCHours(0,0,0,0);var x=ee(w,i);return x}var Mr=6048e5;function Qt(a,i){P(1,arguments);var e=A(a),t=ee(e,i).getTime()-Sr(e,i).getTime();return Math.round(t/Mr)+1}function k(a,i){for(var e=a<0?"-":"",t=Math.abs(a).toString();t.length<i;)t="0"+t;return e+t}var Ar={y:function(i,e){var t=i.getUTCFullYear(),r=t>0?t:1-t;return k(e==="yy"?r%100:r,e.length)},M:function(i,e){var t=i.getUTCMonth();return e==="M"?String(t+1):k(t+1,2)},d:function(i,e){return k(i.getUTCDate(),e.length)},a:function(i,e){var t=i.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h:function(i,e){return k(i.getUTCHours()%12||12,e.length)},H:function(i,e){return k(i.getUTCHours(),e.length)},m:function(i,e){return k(i.getUTCMinutes(),e.length)},s:function(i,e){return k(i.getUTCSeconds(),e.length)},S:function(i,e){var t=e.length,r=i.getUTCMilliseconds(),s=Math.floor(r*Math.pow(10,t-3));return k(s,e.length)}};const X=Ar;var ie={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Or={G:function(i,e,t){var r=i.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return t.era(r,{width:"abbreviated"});case"GGGGG":return t.era(r,{width:"narrow"});case"GGGG":default:return t.era(r,{width:"wide"})}},y:function(i,e,t){if(e==="yo"){var r=i.getUTCFullYear(),s=r>0?r:1-r;return t.ordinalNumber(s,{unit:"year"})}return X.y(i,e)},Y:function(i,e,t,r){var s=Ke(i,r),n=s>0?s:1-s;if(e==="YY"){var l=n%100;return k(l,2)}return e==="Yo"?t.ordinalNumber(n,{unit:"year"}):k(n,e.length)},R:function(i,e){var t=jt(i);return k(t,e.length)},u:function(i,e){var t=i.getUTCFullYear();return k(t,e.length)},Q:function(i,e,t){var r=Math.ceil((i.getUTCMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return k(r,2);case"Qo":return t.ordinalNumber(r,{unit:"quarter"});case"QQQ":return t.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(r,{width:"wide",context:"formatting"})}},q:function(i,e,t){var r=Math.ceil((i.getUTCMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return k(r,2);case"qo":return t.ordinalNumber(r,{unit:"quarter"});case"qqq":return t.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(r,{width:"wide",context:"standalone"})}},M:function(i,e,t){var r=i.getUTCMonth();switch(e){case"M":case"MM":return X.M(i,e);case"Mo":return t.ordinalNumber(r+1,{unit:"month"});case"MMM":return t.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(r,{width:"wide",context:"formatting"})}},L:function(i,e,t){var r=i.getUTCMonth();switch(e){case"L":return String(r+1);case"LL":return k(r+1,2);case"Lo":return t.ordinalNumber(r+1,{unit:"month"});case"LLL":return t.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(r,{width:"wide",context:"standalone"})}},w:function(i,e,t,r){var s=Qt(i,r);return e==="wo"?t.ordinalNumber(s,{unit:"week"}):k(s,e.length)},I:function(i,e,t){var r=Gt(i);return e==="Io"?t.ordinalNumber(r,{unit:"week"}):k(r,e.length)},d:function(i,e,t){return e==="do"?t.ordinalNumber(i.getUTCDate(),{unit:"date"}):X.d(i,e)},D:function(i,e,t){var r=Dr(i);return e==="Do"?t.ordinalNumber(r,{unit:"dayOfYear"}):k(r,e.length)},E:function(i,e,t){var r=i.getUTCDay();switch(e){case"E":case"EE":case"EEE":return t.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(r,{width:"short",context:"formatting"});case"EEEE":default:return t.day(r,{width:"wide",context:"formatting"})}},e:function(i,e,t,r){var s=i.getUTCDay(),n=(s-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(n);case"ee":return k(n,2);case"eo":return t.ordinalNumber(n,{unit:"day"});case"eee":return t.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(s,{width:"short",context:"formatting"});case"eeee":default:return t.day(s,{width:"wide",context:"formatting"})}},c:function(i,e,t,r){var s=i.getUTCDay(),n=(s-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(n);case"cc":return k(n,e.length);case"co":return t.ordinalNumber(n,{unit:"day"});case"ccc":return t.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(s,{width:"narrow",context:"standalone"});case"cccccc":return t.day(s,{width:"short",context:"standalone"});case"cccc":default:return t.day(s,{width:"wide",context:"standalone"})}},i:function(i,e,t){var r=i.getUTCDay(),s=r===0?7:r;switch(e){case"i":return String(s);case"ii":return k(s,e.length);case"io":return t.ordinalNumber(s,{unit:"day"});case"iii":return t.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(r,{width:"short",context:"formatting"});case"iiii":default:return t.day(r,{width:"wide",context:"formatting"})}},a:function(i,e,t){var r=i.getUTCHours(),s=r/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(i,e,t){var r=i.getUTCHours(),s;switch(r===12?s=ie.noon:r===0?s=ie.midnight:s=r/12>=1?"pm":"am",e){case"b":case"bb":return t.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(i,e,t){var r=i.getUTCHours(),s;switch(r>=17?s=ie.evening:r>=12?s=ie.afternoon:r>=4?s=ie.morning:s=ie.night,e){case"B":case"BB":case"BBB":return t.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(i,e,t){if(e==="ho"){var r=i.getUTCHours()%12;return r===0&&(r=12),t.ordinalNumber(r,{unit:"hour"})}return X.h(i,e)},H:function(i,e,t){return e==="Ho"?t.ordinalNumber(i.getUTCHours(),{unit:"hour"}):X.H(i,e)},K:function(i,e,t){var r=i.getUTCHours()%12;return e==="Ko"?t.ordinalNumber(r,{unit:"hour"}):k(r,e.length)},k:function(i,e,t){var r=i.getUTCHours();return r===0&&(r=24),e==="ko"?t.ordinalNumber(r,{unit:"hour"}):k(r,e.length)},m:function(i,e,t){return e==="mo"?t.ordinalNumber(i.getUTCMinutes(),{unit:"minute"}):X.m(i,e)},s:function(i,e,t){return e==="so"?t.ordinalNumber(i.getUTCSeconds(),{unit:"second"}):X.s(i,e)},S:function(i,e){return X.S(i,e)},X:function(i,e,t,r){var s=r._originalDate||i,n=s.getTimezoneOffset();if(n===0)return"Z";switch(e){case"X":return ct(n);case"XXXX":case"XX":return J(n);case"XXXXX":case"XXX":default:return J(n,":")}},x:function(i,e,t,r){var s=r._originalDate||i,n=s.getTimezoneOffset();switch(e){case"x":return ct(n);case"xxxx":case"xx":return J(n);case"xxxxx":case"xxx":default:return J(n,":")}},O:function(i,e,t,r){var s=r._originalDate||i,n=s.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+ut(n,":");case"OOOO":default:return"GMT"+J(n,":")}},z:function(i,e,t,r){var s=r._originalDate||i,n=s.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+ut(n,":");case"zzzz":default:return"GMT"+J(n,":")}},t:function(i,e,t,r){var s=r._originalDate||i,n=Math.floor(s.getTime()/1e3);return k(n,e.length)},T:function(i,e,t,r){var s=r._originalDate||i,n=s.getTime();return k(n,e.length)}};function ut(a,i){var e=a>0?"-":"+",t=Math.abs(a),r=Math.floor(t/60),s=t%60;if(s===0)return e+String(r);var n=i;return e+String(r)+n+k(s,2)}function ct(a,i){if(a%60===0){var e=a>0?"-":"+";return e+k(Math.abs(a)/60,2)}return J(a,i)}function J(a,i){var e=i||"",t=a>0?"-":"+",r=Math.abs(a),s=k(Math.floor(r/60),2),n=k(r%60,2);return t+s+e+n}const Vr=Or;var pt=function(i,e){switch(i){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},Kt=function(i,e){switch(i){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},Fr=function(i,e){var t=i.match(/(P+)(p+)?/)||[],r=t[1],s=t[2];if(!s)return pt(i,e);var n;switch(r){case"P":n=e.dateTime({width:"short"});break;case"PP":n=e.dateTime({width:"medium"});break;case"PPP":n=e.dateTime({width:"long"});break;case"PPPP":default:n=e.dateTime({width:"full"});break}return n.replace("{{date}}",pt(r,e)).replace("{{time}}",Kt(s,e))},Hr={p:Kt,P:Fr};const Ue=Hr;function Xt(a){var i=new Date(Date.UTC(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()));return i.setUTCFullYear(a.getFullYear()),a.getTime()-i.getTime()}var Lr=["D","DD"],zr=["YY","YYYY"];function Zt(a){return Lr.indexOf(a)!==-1}function Jt(a){return zr.indexOf(a)!==-1}function ke(a,i,e){if(a==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(i,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(a==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(i,"`) for formatting years to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(a==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(i,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(a==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(i,"`) for formatting days of the month to the input `").concat(e,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Rr={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Br=function(i,e,t){var r,s=Rr[i];return typeof s=="string"?r=s:e===1?r=s.one:r=s.other.replace("{{count}}",e.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r};const Nr=Br;function Le(a){return function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=i.width?String(i.width):a.defaultWidth,t=a.formats[e]||a.formats[a.defaultWidth];return t}}var Yr={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ur={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Wr={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},$r={date:Le({formats:Yr,defaultWidth:"full"}),time:Le({formats:Ur,defaultWidth:"full"}),dateTime:Le({formats:Wr,defaultWidth:"full"})};const qr=$r;var jr={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Gr=function(i,e,t,r){return jr[i]};const Qr=Gr;function ue(a){return function(i,e){var t=e!=null&&e.context?String(e.context):"standalone",r;if(t==="formatting"&&a.formattingValues){var s=a.defaultFormattingWidth||a.defaultWidth,n=e!=null&&e.width?String(e.width):s;r=a.formattingValues[n]||a.formattingValues[s]}else{var l=a.defaultWidth,d=e!=null&&e.width?String(e.width):a.defaultWidth;r=a.values[d]||a.values[l]}var h=a.argumentCallback?a.argumentCallback(i):i;return r[h]}}var Kr={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Xr={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Zr={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Jr={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ea={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},ta={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ia=function(i,e){var t=Number(i),r=t%100;if(r>20||r<10)switch(r%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},ra={ordinalNumber:ia,era:ue({values:Kr,defaultWidth:"wide"}),quarter:ue({values:Xr,defaultWidth:"wide",argumentCallback:function(i){return i-1}}),month:ue({values:Zr,defaultWidth:"wide"}),day:ue({values:Jr,defaultWidth:"wide"}),dayPeriod:ue({values:ea,defaultWidth:"wide",formattingValues:ta,defaultFormattingWidth:"wide"})};const aa=ra;function ce(a){return function(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.width,r=t&&a.matchPatterns[t]||a.matchPatterns[a.defaultMatchWidth],s=i.match(r);if(!s)return null;var n=s[0],l=t&&a.parsePatterns[t]||a.parsePatterns[a.defaultParseWidth],d=Array.isArray(l)?na(l,function(c){return c.test(n)}):sa(l,function(c){return c.test(n)}),h;h=a.valueCallback?a.valueCallback(d):d,h=e.valueCallback?e.valueCallback(h):h;var m=i.slice(n.length);return{value:h,rest:m}}}function sa(a,i){for(var e in a)if(a.hasOwnProperty(e)&&i(a[e]))return e}function na(a,i){for(var e=0;e<a.length;e++)if(i(a[e]))return e}function oa(a){return function(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=i.match(a.matchPattern);if(!t)return null;var r=t[0],s=i.match(a.parsePattern);if(!s)return null;var n=a.valueCallback?a.valueCallback(s[0]):s[0];n=e.valueCallback?e.valueCallback(n):n;var l=i.slice(r.length);return{value:n,rest:l}}}var la=/^(\d+)(th|st|nd|rd)?/i,da=/\d+/i,ha={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ua={any:[/^b/i,/^(a|c)/i]},ca={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},pa={any:[/1/i,/2/i,/3/i,/4/i]},fa={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ma={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},_a={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},va={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},ga={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},ya={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ba={ordinalNumber:oa({matchPattern:la,parsePattern:da,valueCallback:function(i){return parseInt(i,10)}}),era:ce({matchPatterns:ha,defaultMatchWidth:"wide",parsePatterns:ua,defaultParseWidth:"any"}),quarter:ce({matchPatterns:ca,defaultMatchWidth:"wide",parsePatterns:pa,defaultParseWidth:"any",valueCallback:function(i){return i+1}}),month:ce({matchPatterns:fa,defaultMatchWidth:"wide",parsePatterns:ma,defaultParseWidth:"any"}),day:ce({matchPatterns:_a,defaultMatchWidth:"wide",parsePatterns:va,defaultParseWidth:"any"}),dayPeriod:ce({matchPatterns:ga,defaultMatchWidth:"any",parsePatterns:ya,defaultParseWidth:"any"})};const wa=ba;var xa={code:"en-US",formatDistance:Nr,formatLong:qr,formatRelative:Qr,localize:aa,match:wa,options:{weekStartsOn:0,firstWeekContainsDate:1}};const ei=xa;var Ca=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ka=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ta=/^'([^]*?)'?$/,Da=/''/g,Ia=/[a-zA-Z]/;function Ea(a,i,e){var t,r,s,n,l,d,h,m,c,_,w,x,L,H;P(2,arguments);var B=String(i),O=se(),Y=(t=(r=void 0)!==null&&r!==void 0?r:O.locale)!==null&&t!==void 0?t:ei,$=z((s=(n=(l=(d=void 0)!==null&&d!==void 0?d:void 0)!==null&&l!==void 0?l:O.firstWeekContainsDate)!==null&&n!==void 0?n:(h=O.locale)===null||h===void 0||(m=h.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!($>=1&&$<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Q=z((c=(_=(w=(x=void 0)!==null&&x!==void 0?x:void 0)!==null&&w!==void 0?w:O.weekStartsOn)!==null&&_!==void 0?_:(L=O.locale)===null||L===void 0||(H=L.options)===null||H===void 0?void 0:H.weekStartsOn)!==null&&c!==void 0?c:0);if(!(Q>=0&&Q<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Y.localize)throw new RangeError("locale must contain localize property");if(!Y.formatLong)throw new RangeError("locale must contain formatLong property");var K=A(a);if(!Cr(K))throw new RangeError("Invalid time value");var ne=Xt(K),oe=qt(K,ne),le={firstWeekContainsDate:$,weekStartsOn:Q,locale:Y,_originalDate:K},Ee=B.match(ka).map(function(F){var R=F[0];if(R==="p"||R==="P"){var Z=Ue[R];return Z(F,Y.formatLong)}return F}).join("").match(Ca).map(function(F){if(F==="''")return"'";var R=F[0];if(R==="'")return Pa(F);var Z=Vr[R];if(Z)return Jt(F)&&ke(F,i,String(a)),Zt(F)&&ke(F,i,String(a)),Z(oe,F,Y.localize,le);if(R.match(Ia))throw new RangeError("Format string contains an unescaped latin alphabet character `"+R+"`");return F}).join("");return Ee}function Pa(a){var i=a.match(Ta);return i?i[1].replace(Da,"'"):a}function ft(a,i){(i==null||i>a.length)&&(i=a.length);for(var e=0,t=Array(i);e<i;e++)t[e]=a[e];return t}function Sa(a,i){if(a){if(typeof a=="string")return ft(a,i);var e={}.toString.call(a).slice(8,-1);return e==="Object"&&a.constructor&&(e=a.constructor.name),e==="Map"||e==="Set"?Array.from(a):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?ft(a,i):void 0}}function mt(a,i){var e=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!e){if(Array.isArray(a)||(e=Sa(a))||i){e&&(a=e);var t=0,r=function(){};return{s:r,n:function(){return t>=a.length?{done:!0}:{done:!1,value:a[t++]}},e:function(h){throw h},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1499
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,n=!0,l=!1;return{s:function(){e=e.call(a)},n:function(){var h=e.next();return n=h.done,h},e:function(h){l=!0,s=h},f:function(){try{n||e.return==null||e.return()}finally{if(l)throw s}}}}function Ma(a,i){if(a==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(a[e]=i[e]);return a}function f(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function We(a,i){return We=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},We(a,i)}function y(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(i&&i.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),i&&We(a,i)}function Te(a){return Te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Te(a)}function ti(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(i){}return(ti=function(){return!!a})()}function Aa(a,i){if(i&&(j(i)=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return f(a)}function b(a){var i=ti();return function(){var e,t=Te(a);if(i){var r=Te(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return Aa(this,e)}}function v(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}function Oa(a,i){if(j(a)!="object"||!a)return a;var e=a[Symbol.toPrimitive];if(e!==void 0){var t=e.call(a,i||"default");if(j(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(a)}function ii(a){var i=Oa(a,"string");return j(i)=="symbol"?i:i+""}function Va(a,i){for(var e=0;e<i.length;e++){var t=i[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(a,ii(t.key),t)}}function g(a,i,e){return i&&Va(a.prototype,i),Object.defineProperty(a,"prototype",{writable:!1}),a}function p(a,i,e){return(i=ii(i))in a?Object.defineProperty(a,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[i]=e,a}var Fa=10,ri=function(){function a(){v(this,a),p(this,"priority",void 0),p(this,"subPriority",0)}return g(a,[{key:"validate",value:function(e,t){return!0}}]),a}(),Ha=function(a){y(e,a);var i=b(e);function e(t,r,s,n,l){var d;return v(this,e),d=i.call(this),d.value=t,d.validateValue=r,d.setValue=s,d.priority=n,l&&(d.subPriority=l),d}return g(e,[{key:"validate",value:function(r,s){return this.validateValue(r,this.value,s)}},{key:"set",value:function(r,s,n){return this.setValue(r,s,this.value,n)}}]),e}(ri),La=function(a){y(e,a);var i=b(e);function e(){var t;v(this,e);for(var r=arguments.length,s=new Array(r),n=0;n<r;n++)s[n]=arguments[n];return t=i.call.apply(i,[this].concat(s)),p(f(t),"priority",Fa),p(f(t),"subPriority",-1),t}return g(e,[{key:"set",value:function(r,s){if(s.timestampIsSet)return r;var n=new Date(0);return n.setFullYear(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()),n.setHours(r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds()),n}}]),e}(ri),C=function(){function a(){v(this,a),p(this,"incompatibleTokens",void 0),p(this,"priority",void 0),p(this,"subPriority",void 0)}return g(a,[{key:"run",value:function(e,t,r,s){var n=this.parse(e,t,r,s);return n?{setter:new Ha(n.value,this.validate,this.set,this.priority,this.subPriority),rest:n.rest}:null}},{key:"validate",value:function(e,t,r){return!0}}]),a}(),za=function(a){y(e,a);var i=b(e);function e(){var t;v(this,e);for(var r=arguments.length,s=new Array(r),n=0;n<r;n++)s[n]=arguments[n];return t=i.call.apply(i,[this].concat(s)),p(f(t),"priority",140),p(f(t),"incompatibleTokens",["R","u","t","T"]),t}return g(e,[{key:"parse",value:function(r,s,n){switch(s){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"})||n.era(r,{width:"narrow"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})||n.era(r,{width:"abbreviated"})||n.era(r,{width:"narrow"})}}},{key:"set",value:function(r,s,n){return s.era=n,r.setUTCFullYear(n,0,1),r.setUTCHours(0,0,0,0),r}}]),e}(C),Ra=6e4,Ba=36e5,Na=1e3,S={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},U={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function M(a,i){return a&&{value:i(a.value),rest:a.rest}}function I(a,i){var e=i.match(a);return e?{value:parseInt(e[0],10),rest:i.slice(e[0].length)}:null}function W(a,i){var e=i.match(a);if(!e)return null;if(e[0]==="Z")return{value:0,rest:i.slice(1)};var t=e[1]==="+"?1:-1,r=e[2]?parseInt(e[2],10):0,s=e[3]?parseInt(e[3],10):0,n=e[5]?parseInt(e[5],10):0;return{value:t*(r*Ba+s*Ra+n*Na),rest:i.slice(e[0].length)}}function ai(a){return I(S.anyDigitsSigned,a)}function E(a,i){switch(a){case 1:return I(S.singleDigit,i);case 2:return I(S.twoDigits,i);case 3:return I(S.threeDigits,i);case 4:return I(S.fourDigits,i);default:return I(new RegExp("^\\d{1,"+a+"}"),i)}}function De(a,i){switch(a){case 1:return I(S.singleDigitSigned,i);case 2:return I(S.twoDigitsSigned,i);case 3:return I(S.threeDigitsSigned,i);case 4:return I(S.fourDigitsSigned,i);default:return I(new RegExp("^-?\\d{1,"+a+"}"),i)}}function Xe(a){switch(a){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function si(a,i){var e=i>0,t=e?i:1-i,r;if(t<=50)r=a||100;else{var s=t+50,n=Math.floor(s/100)*100,l=a>=s%100;r=a+n-(l?100:0)}return e?r:1-r}function ni(a){return a%400===0||a%4===0&&a%100!==0}var Ya=function(a){y(e,a);var i=b(e);function e(){var t;v(this,e);for(var r=arguments.length,s=new Array(r),n=0;n<r;n++)s[n]=arguments[n];return t=i.call.apply(i,[this].concat(s)),p(f(t),"priority",130),p(f(t),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),t}return g(e,[{key:"parse",value:function(r,s,n){var l=function(h){return{year:h,isTwoDigitYear:s==="yy"}};switch(s){case"y":return M(E(4,r),l);case"yo":return M(n.ordinalNumber(r,{unit:"year"}),l);default:return M(E(s.length,r),l)}}},{key:"validate",value:function(r,s){return s.isTwoDigitYear||s.year>0}},{key:"set",value:function(r,s,n){var l=r.getUTCFullYear();if(n.isTwoDigitYear){var d=si(n.year,l);return r.setUTCFullYear(d,0,1),r.setUTCHours(0,0,0,0),r}var h=!("era"in s)||s.era===1?n.year:1-n.year;return r.setUTCFullYear(h,0,1),r.setUTCHours(0,0,0,0),r}}]),e}(C),Ua=function(a){y(e,a);var i=b(e);function e(){var t;v(this,e);for(var r=arguments.length,s=new Array(r),n=0;n<r;n++)s[n]=arguments[n];return t=i.call.apply(i,[this].concat(s)),p(f(t),"priority",130),p(f(t),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),t}return g(e,[{key:"parse",value:function(r,s,n){var l=function(h){return{year:h,isTwoDigitYear:s==="YY"}};switch(s){case"Y":return M(E(4,r),l);case"Yo":return M(n.ordinalNumber(r,{unit:"year"}),l);default:return M(E(s.length,r),l)}}},{key:"validate",value:function(r,s){return s.isTwoDigitYear||s.year>0}},{key:"set",value:function(r,s,n,l){var d=Ke(r,l);if(n.isTwoDigitYear){var h=si(n.year,d);return r.setUTCFullYear(h,0,l.firstWeekContainsDate),r.setUTCHours(0,0,0,0),ee(r,l)}var m=!("era"in s)||s.era===1?n.year:1-n.year;return r.setUTCFullYear(m,0,l.firstWeekContainsDate),r.setUTCHours(0,0,0,0),ee(r,l)}}]),e}(C),Wa=function(a){y(e,a);var i=b(e);function e(){var t;v(this,e);for(var r=arguments.length,s=new Array(r),n=0;n<r;n++)s[n]=arguments[n];return t=i.call.apply(i,[this].concat(s)),p(f(t),"priority",130),p(f(t),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),t}return g(e,[{key:"parse",value:function(r,s){return De(s==="R"?4:s.length,r)}},{key:"set",value:function(r,s,n){var l=new Date(0);return l.setUTCFullYear(n,0,4),l.setUTCHours(0,0,0,0),re(l)}}]),e}(C),$a=function(a){y(e,a);var i=b(e);function e(){var t;v(this,e);for(var r=arguments.length,s=new Array(r),n=0;n<r;n++)s[n]=arguments[n];return t=i.call.apply(i,[this].concat(s)),p(f(t),"priority",130),p(f(t),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),t}return g(e,[{key:"parse",value:function(r,s){return De(s==="u"?4:s.length,r)}},{key:"set",value:function(r,s,n){return r.setUTCFullYear(n,0,1),r.setUTCHours(0,0,0,0),r}}]),e}(C),qa=function(a){y(e,a);var i=b(e);function e(){var t;v(this,e);for(var r=arguments.length,s=new Array(r),n=0;n<r;n++)s[n]=arguments[n];return t=i.call.apply(i,[this].concat(s)),p(f(t),"priority",120),p(f(t),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),t}return g(e,[{key:"parse",value:function(r,s,n){switch(s){case"Q":case"QQ":return E(s.length,r);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"})||n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})||n.quarter(r,{width:"abbreviated",context:"formatting"})||n.quarter(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,s){return s>=1&&s<=4}},{key:"set",value:function(r,s,n){return r.setUTCMonth((n-1)*3,1),r.setUTCHours(0,0,0,0),r}}]),e}(C),ja=function(a){y(e,a);var i=b(e);function e(){var t;v(this,e);for(var r=arguments.length,s=new Array(r),n=0;n<r;n++)s[n]=arguments[n];return t=i.call.apply(i,[this].concat(s)),p(f(t),"priority",120),p(f(t),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),t}return g(e,[{key:"parse",value:function(r,s,n){switch(s){case"q":case"qq":return E(s.length,r);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"})||n.quarter(r,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})||n.quarter(r,{width:"abbreviated",context:"standalone"})||n.quarter(r,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(r,s){return s>=1&&s<=4}},{key:"set",value:function(r,s,n){return r.setUTCMonth((n-1)*3,1),r.setUTCHours(0,0,0,0),r}}]),e}(C),Ga=function(a){y(e,a);var i=b(e);function e(){var t;v(this,e);for(var r=arguments.length,s=new Array(r),n=0;n<r;n++)s[n]=arguments[n];return t=i.call.apply(i,[this].concat(s)),p(f(t),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),p(f(t),"priority",110),t}return g(e,[{key:"parse",value:function(r,s,n){var l=function(h){return h-1};switch(s){case"M":return M(I(S.month,r),l);case"MM":return M(E(2,r),l);case"Mo":return M(n.ordinalNumber(r,{unit:"month"}),l);case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"})||n.month(r,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})||n.month(r,{width:"abbreviated",context:"formatting"})||n.month(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,s){return s>=0&&s<=11}},{key:"set",value:function(r,s,n){return r.setUTCMonth(n,1),r.setUTCHours(0,0,0,0),r}}]),e}(C),Qa=function(a){y(e,a);var i=b(e);function e(){var t;v(this,e);for(var r=arguments.length,s=new Array(r),n=0;n<r;n++)s[n]=arguments[n];return t=i.call.apply(i,[this].concat(s)),p(f(t),"priority",110),p(f(t),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),t}return g(e,[{key:"parse",value:function(r,s,n){var l=function(h){return h-1};switch(s){case"L":return M(I(S.month,r),l);case"LL":return M(E(2,r),l);case"Lo":return M(n.ordinalNumber(r,{unit:"month"}),l);case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"})||n.month(r,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})||n.month(r,{width:"abbreviated",context:"standalone"})||n.month(r,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(r,s){return s>=0&&s<=11}},{key:"set",value:function(r,s,n){return r.setUTCMonth(n,1),r.setUTCHours(0,0,0,0),r}}]),e}(C);function Ka(a,i,e){P(2,arguments);var t=A(a),r=z(i),s=Qt(t,e)-r;return t.setUTCDate(t.getUTCDate()-s*7),t}var Xa=function(a){y(e,a);var i=b(e);function e(){var t;v(this,e);for(var r=arguments.length,s=new Array(r),n=0;n<r;n++)s[n]=arguments[n];return t=i.call.apply(i,[this].concat(s)),p(f(t),"priority",100),p(f(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),t}return g(e,[{key:"parse",value:function(r,s,n){switch(s){case"w":return I(S.week,r);case"wo":return n.ordinalNumber(r,{unit:"week"});default:return E(s.length,r)}}},{key:"validate",value:function(r,s){return s>=1&&s<=53}},{key:"set",value:function(r,s,n,l){return ee(Ka(r,n,l),l)}}]),e}(C);function Za(a,i){P(2,arguments);var e=A(a),t=z(i),r=Gt(e)-t;return e.setUTCDate(e.getUTCDate()-r*7),e}var Ja=function(a){y(e,a);var i=b(e);function e(){var t;v(this,e);for(var r=arguments.length,s=new Array(r),n=0;n<r;n++)s[n]=arguments[n];return t=i.call.apply(i,[this].concat(s)),p(f(t),"priority",100),p(f(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),t}return g(e,[{key:"parse",value:function(r,s,n){switch(s){case"I":return I(S.week,r);case"Io":return n.ordinalNumber(r,{unit:"week"});default:return E(s.length,r)}}},{key:"validate",value:function(r,s){return s>=1&&s<=53}},{key:"set",value:function(r,s,n){return re(Za(r,n))}}]),e}(C),es=[31,28,31,30,31,30,31,31,30,31,30,31],ts=[31,29,31,30,31,30,31,31,30,31,30,31],is=function(a){y(e,a);var i=b(e);function e(){var t;v(this,e);for(var r=arguments.length,s=new Array(r),n=0;n<r;n++)s[n]=arguments[n];return t=i.call.apply(i,[this].concat(s)),p(f(t),"priority",90),p(f(t),"subPriority",1),p(f(t),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),t}return g(e,[{key:"parse",value:function(r,s,n){switch(s){case"d":return I(S.date,r);case"do":return n.ordinalNumber(r,{unit:"date"});default:return E(s.length,r)}}},{key:"validate",value:function(r,s){var n=r.getUTCFullYear(),l=ni(n),d=r.getUTCMonth();return l?s>=1&&s<=ts[d]:s>=1&&s<=es[d]}},{key:"set",value:function(r,s,n){return r.setUTCDate(n),r.setUTCHours(0,0,0,0),r}}]),e}(C),rs=function(a){y(e,a);var i=b(e);function e(){var t;v(this,e);for(var r=arguments.length,s=new Array(r),n=0;n<r;n++)s[n]=arguments[n];return t=i.call.apply(i,[this].concat(s)),p(f(t),"priority",90),p(f(t),"subpriority",1),p(f(t),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),t}return g(e,[{key:"parse",value:function(r,s,n){switch(s){case"D":case"DD":return I(S.dayOfYear,r);case"Do":return n.ordinalNumber(r,{unit:"date"});default:return E(s.length,r)}}},{key:"validate",value:function(r,s){var n=r.getUTCFullYear(),l=ni(n);return l?s>=1&&s<=366:s>=1&&s<=365}},{key:"set",value:function(r,s,n){return r.setUTCMonth(0,n),r.setUTCHours(0,0,0,0),r}}]),e}(C);function Ze(a,i,e){var t,r,s,n,l,d,h,m;P(2,arguments);var c=se(),_=z((t=(r=(s=(n=e==null?void 0:e.weekStartsOn)!==null&&n!==void 0?n:e==null||(l=e.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&s!==void 0?s:c.weekStartsOn)!==null&&r!==void 0?r:(h=c.locale)===null||h===void 0||(m=h.options)===null||m===void 0?void 0:m.weekStartsOn)!==null&&t!==void 0?t:0);if(!(_>=0&&_<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var w=A(a),x=z(i),L=w.getUTCDay(),H=x%7,B=(H+7)%7,O=(B<_?7:0)+x-L;return w.setUTCDate(w.getUTCDate()+O),w}var as=function(a){y(e,a);var i=b(e);function e(){var t;v(this,e);for(var r=arguments.length,s=new Array(r),n=0;n<r;n++)s[n]=arguments[n];return t=i.call.apply(i,[this].concat(s)),p(f(t),"priority",90),p(f(t),"incompatibleTokens",["D","i","e","c","t","T"]),t}return g(e,[{key:"parse",value:function(r,s,n){switch(s){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"})||n.day(r,{width:"short",context:"formatting"})||n.day(r,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"})||n.day(r,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})||n.day(r,{width:"abbreviated",context:"formatting"})||n.day(r,{width:"short",context:"formatting"})||n.day(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,s){return s>=0&&s<=6}},{key:"set",value:function(r,s,n,l){return r=Ze(r,n,l),r.setUTCHours(0,0,0,0),r}}]),e}(C),ss=function(a){y(e,a);var i=b(e);function e(){var t;v(this,e);for(var r=arguments.length,s=new Array(r),n=0;n<r;n++)s[n]=arguments[n];return t=i.call.apply(i,[this].concat(s)),p(f(t),"priority",90),p(f(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),t}return g(e,[{key:"parse",value:function(r,s,n,l){var d=function(m){var c=Math.floor((m-1)/7)*7;return(m+l.weekStartsOn+6)%7+c};switch(s){case"e":case"ee":return M(E(s.length,r),d);case"eo":return M(n.ordinalNumber(r,{unit:"day"}),d);case"eee":return n.day(r,{width:"abbreviated",context:"formatting"})||n.day(r,{width:"short",context:"formatting"})||n.day(r,{width:"narrow",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"})||n.day(r,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(r,{width:"wide",context:"formatting"})||n.day(r,{width:"abbreviated",context:"formatting"})||n.day(r,{width:"short",context:"formatting"})||n.day(r,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(r,s){return s>=0&&s<=6}},{key:"set",value:function(r,s,n,l){return r=Ze(r,n,l),r.setUTCHours(0,0,0,0),r}}]),e}(C),ns=function(a){y(e,a);var i=b(e);function e(){var t;v(this,e);for(var r=arguments.length,s=new Array(r),n=0;n<r;n++)s[n]=arguments[n];return t=i.call.apply(i,[this].concat(s)),p(f(t),"priority",90),p(f(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),t}return g(e,[{key:"parse",value:function(r,s,n,l){var d=function(m){var c=Math.floor((m-1)/7)*7;return(m+l.weekStartsOn+6)%7+c};switch(s){case"c":case"cc":return M(E(s.length,r),d);case"co":return M(n.ordinalNumber(r,{unit:"day"}),d);case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"})||n.day(r,{width:"short",context:"standalone"})||n.day(r,{width:"narrow",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"})||n.day(r,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(r,{width:"wide",context:"standalone"})||n.day(r,{width:"abbreviated",context:"standalone"})||n.day(r,{width:"short",context:"standalone"})||n.day(r,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(r,s){return s>=0&&s<=6}},{key:"set",value:function(r,s,n,l){return r=Ze(r,n,l),r.setUTCHours(0,0,0,0),r}}]),e}(C);function os(a,i){P(2,arguments);var e=z(i);e%7===0&&(e=e-7);var t=1,r=A(a),s=r.getUTCDay(),n=e%7,l=(n+7)%7,d=(l<t?7:0)+e-s;return r.setUTCDate(r.getUTCDate()+d),r}var ls=function(a){y(e,a);var i=b(e);function e(){var t;v(this,e);for(var r=arguments.length,s=new Array(r),n=0;n<r;n++)s[n]=arguments[n];return t=i.call.apply(i,[this].concat(s)),p(f(t),"priority",90),p(f(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),t}return g(e,[{key:"parse",value:function(r,s,n){var l=function(h){return h===0?7:h};switch(s){case"i":case"ii":return E(s.length,r);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return M(n.day(r,{width:"abbreviated",context:"formatting"})||n.day(r,{width:"short",context:"formatting"})||n.day(r,{width:"narrow",context:"formatting"}),l);case"iiiii":return M(n.day(r,{width:"narrow",context:"formatting"}),l);case"iiiiii":return M(n.day(r,{width:"short",context:"formatting"})||n.day(r,{width:"narrow",context:"formatting"}),l);case"iiii":default:return M(n.day(r,{width:"wide",context:"formatting"})||n.day(r,{width:"abbreviated",context:"formatting"})||n.day(r,{width:"short",context:"formatting"})||n.day(r,{width:"narrow",context:"formatting"}),l)}}},{key:"validate",value:function(r,s){return s>=1&&s<=7}},{key:"set",value:function(r,s,n){return r=os(r,n),r.setUTCHours(0,0,0,0),r}}]),e}(C),ds=function(a){y(e,a);var i=b(e);function e(){var t;v(this,e);for(var r=arguments.length,s=new Array(r),n=0;n<r;n++)s[n]=arguments[n];return t=i.call.apply(i,[this].concat(s)),p(f(t),"priority",80),p(f(t),"incompatibleTokens",["b","B","H","k","t","T"]),t}return g(e,[{key:"parse",value:function(r,s,n){switch(s){case"a":case"aa":case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"})||n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})||n.dayPeriod(r,{width:"abbreviated",context:"formatting"})||n.dayPeriod(r,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(r,s,n){return r.setUTCHours(Xe(n),0,0,0),r}}]),e}(C),hs=function(a){y(e,a);var i=b(e);function e(){var t;v(this,e);for(var r=arguments.length,s=new Array(r),n=0;n<r;n++)s[n]=arguments[n];return t=i.call.apply(i,[this].concat(s)),p(f(t),"priority",80),p(f(t),"incompatibleTokens",["a","B","H","k","t","T"]),t}return g(e,[{key:"parse",value:function(r,s,n){switch(s){case"b":case"bb":case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"})||n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})||n.dayPeriod(r,{width:"abbreviated",context:"formatting"})||n.dayPeriod(r,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(r,s,n){return r.setUTCHours(Xe(n),0,0,0),r}}]),e}(C),us=function(a){y(e,a);var i=b(e);function e(){var t;v(this,e);for(var r=arguments.length,s=new Array(r),n=0;n<r;n++)s[n]=arguments[n];return t=i.call.apply(i,[this].concat(s)),p(f(t),"priority",80),p(f(t),"incompatibleTokens",["a","b","t","T"]),t}return g(e,[{key:"parse",value:function(r,s,n){switch(s){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"})||n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})||n.dayPeriod(r,{width:"abbreviated",context:"formatting"})||n.dayPeriod(r,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(r,s,n){return r.setUTCHours(Xe(n),0,0,0),r}}]),e}(C),cs=function(a){y(e,a);var i=b(e);function e(){var t;v(this,e);for(var r=arguments.length,s=new Array(r),n=0;n<r;n++)s[n]=arguments[n];return t=i.call.apply(i,[this].concat(s)),p(f(t),"priority",70),p(f(t),"incompatibleTokens",["H","K","k","t","T"]),t}return g(e,[{key:"parse",value:function(r,s,n){switch(s){case"h":return I(S.hour12h,r);case"ho":return n.ordinalNumber(r,{unit:"hour"});default:return E(s.length,r)}}},{key:"validate",value:function(r,s){return s>=1&&s<=12}},{key:"set",value:function(r,s,n){var l=r.getUTCHours()>=12;return l&&n<12?r.setUTCHours(n+12,0,0,0):!l&&n===12?r.setUTCHours(0,0,0,0):r.setUTCHours(n,0,0,0),r}}]),e}(C),ps=function(a){y(e,a);var i=b(e);function e(){var t;v(this,e);for(var r=arguments.length,s=new Array(r),n=0;n<r;n++)s[n]=arguments[n];return t=i.call.apply(i,[this].concat(s)),p(f(t),"priority",70),p(f(t),"incompatibleTokens",["a","b","h","K","k","t","T"]),t}return g(e,[{key:"parse",value:function(r,s,n){switch(s){case"H":return I(S.hour23h,r);case"Ho":return n.ordinalNumber(r,{unit:"hour"});default:return E(s.length,r)}}},{key:"validate",value:function(r,s){return s>=0&&s<=23}},{key:"set",value:function(r,s,n){return r.setUTCHours(n,0,0,0),r}}]),e}(C),fs=function(a){y(e,a);var i=b(e);function e(){var t;v(this,e);for(var r=arguments.length,s=new Array(r),n=0;n<r;n++)s[n]=arguments[n];return t=i.call.apply(i,[this].concat(s)),p(f(t),"priority",70),p(f(t),"incompatibleTokens",["h","H","k","t","T"]),t}return g(e,[{key:"parse",value:function(r,s,n){switch(s){case"K":return I(S.hour11h,r);case"Ko":return n.ordinalNumber(r,{unit:"hour"});default:return E(s.length,r)}}},{key:"validate",value:function(r,s){return s>=0&&s<=11}},{key:"set",value:function(r,s,n){var l=r.getUTCHours()>=12;return l&&n<12?r.setUTCHours(n+12,0,0,0):r.setUTCHours(n,0,0,0),r}}]),e}(C),ms=function(a){y(e,a);var i=b(e);function e(){var t;v(this,e);for(var r=arguments.length,s=new Array(r),n=0;n<r;n++)s[n]=arguments[n];return t=i.call.apply(i,[this].concat(s)),p(f(t),"priority",70),p(f(t),"incompatibleTokens",["a","b","h","H","K","t","T"]),t}return g(e,[{key:"parse",value:function(r,s,n){switch(s){case"k":return I(S.hour24h,r);case"ko":return n.ordinalNumber(r,{unit:"hour"});default:return E(s.length,r)}}},{key:"validate",value:function(r,s){return s>=1&&s<=24}},{key:"set",value:function(r,s,n){var l=n<=24?n%24:n;return r.setUTCHours(l,0,0,0),r}}]),e}(C),_s=function(a){y(e,a);var i=b(e);function e(){var t;v(this,e);for(var r=arguments.length,s=new Array(r),n=0;n<r;n++)s[n]=arguments[n];return t=i.call.apply(i,[this].concat(s)),p(f(t),"priority",60),p(f(t),"incompatibleTokens",["t","T"]),t}return g(e,[{key:"parse",value:function(r,s,n){switch(s){case"m":return I(S.minute,r);case"mo":return n.ordinalNumber(r,{unit:"minute"});default:return E(s.length,r)}}},{key:"validate",value:function(r,s){return s>=0&&s<=59}},{key:"set",value:function(r,s,n){return r.setUTCMinutes(n,0,0),r}}]),e}(C),vs=function(a){y(e,a);var i=b(e);function e(){var t;v(this,e);for(var r=arguments.length,s=new Array(r),n=0;n<r;n++)s[n]=arguments[n];return t=i.call.apply(i,[this].concat(s)),p(f(t),"priority",50),p(f(t),"incompatibleTokens",["t","T"]),t}return g(e,[{key:"parse",value:function(r,s,n){switch(s){case"s":return I(S.second,r);case"so":return n.ordinalNumber(r,{unit:"second"});default:return E(s.length,r)}}},{key:"validate",value:function(r,s){return s>=0&&s<=59}},{key:"set",value:function(r,s,n){return r.setUTCSeconds(n,0),r}}]),e}(C),gs=function(a){y(e,a);var i=b(e);function e(){var t;v(this,e);for(var r=arguments.length,s=new Array(r),n=0;n<r;n++)s[n]=arguments[n];return t=i.call.apply(i,[this].concat(s)),p(f(t),"priority",30),p(f(t),"incompatibleTokens",["t","T"]),t}return g(e,[{key:"parse",value:function(r,s){var n=function(d){return Math.floor(d*Math.pow(10,-s.length+3))};return M(E(s.length,r),n)}},{key:"set",value:function(r,s,n){return r.setUTCMilliseconds(n),r}}]),e}(C),ys=function(a){y(e,a);var i=b(e);function e(){var t;v(this,e);for(var r=arguments.length,s=new Array(r),n=0;n<r;n++)s[n]=arguments[n];return t=i.call.apply(i,[this].concat(s)),p(f(t),"priority",10),p(f(t),"incompatibleTokens",["t","T","x"]),t}return g(e,[{key:"parse",value:function(r,s){switch(s){case"X":return W(U.basicOptionalMinutes,r);case"XX":return W(U.basic,r);case"XXXX":return W(U.basicOptionalSeconds,r);case"XXXXX":return W(U.extendedOptionalSeconds,r);case"XXX":default:return W(U.extended,r)}}},{key:"set",value:function(r,s,n){return s.timestampIsSet?r:new Date(r.getTime()-n)}}]),e}(C),bs=function(a){y(e,a);var i=b(e);function e(){var t;v(this,e);for(var r=arguments.length,s=new Array(r),n=0;n<r;n++)s[n]=arguments[n];return t=i.call.apply(i,[this].concat(s)),p(f(t),"priority",10),p(f(t),"incompatibleTokens",["t","T","X"]),t}return g(e,[{key:"parse",value:function(r,s){switch(s){case"x":return W(U.basicOptionalMinutes,r);case"xx":return W(U.basic,r);case"xxxx":return W(U.basicOptionalSeconds,r);case"xxxxx":return W(U.extendedOptionalSeconds,r);case"xxx":default:return W(U.extended,r)}}},{key:"set",value:function(r,s,n){return s.timestampIsSet?r:new Date(r.getTime()-n)}}]),e}(C),ws=function(a){y(e,a);var i=b(e);function e(){var t;v(this,e);for(var r=arguments.length,s=new Array(r),n=0;n<r;n++)s[n]=arguments[n];return t=i.call.apply(i,[this].concat(s)),p(f(t),"priority",40),p(f(t),"incompatibleTokens","*"),t}return g(e,[{key:"parse",value:function(r){return ai(r)}},{key:"set",value:function(r,s,n){return[new Date(n*1e3),{timestampIsSet:!0}]}}]),e}(C),xs=function(a){y(e,a);var i=b(e);function e(){var t;v(this,e);for(var r=arguments.length,s=new Array(r),n=0;n<r;n++)s[n]=arguments[n];return t=i.call.apply(i,[this].concat(s)),p(f(t),"priority",20),p(f(t),"incompatibleTokens","*"),t}return g(e,[{key:"parse",value:function(r){return ai(r)}},{key:"set",value:function(r,s,n){return[new Date(n),{timestampIsSet:!0}]}}]),e}(C),Cs={G:new za,y:new Ya,Y:new Ua,R:new Wa,u:new $a,Q:new qa,q:new ja,M:new Ga,L:new Qa,w:new Xa,I:new Ja,d:new is,D:new rs,E:new as,e:new ss,c:new ns,i:new ls,a:new ds,b:new hs,B:new us,h:new cs,H:new ps,K:new fs,k:new ms,m:new _s,s:new vs,S:new gs,X:new ys,x:new bs,t:new ws,T:new xs},ks=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ts=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ds=/^'([^]*?)'?$/,Is=/''/g,Es=/\S/,Ps=/[a-zA-Z]/;function we(a,i,e,t){var r,s,n,l,d,h,m,c,_,w,x,L,H,B;P(3,arguments);var O=String(a),Y=String(i),$=se(),Q=(r=(s=void 0)!==null&&s!==void 0?s:$.locale)!==null&&r!==void 0?r:ei;if(!Q.match)throw new RangeError("locale must contain match property");var K=z((n=(l=(d=(h=void 0)!==null&&h!==void 0?h:void 0)!==null&&d!==void 0?d:$.firstWeekContainsDate)!==null&&l!==void 0?l:(m=$.locale)===null||m===void 0||(c=m.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(K>=1&&K<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ne=z((_=(w=(x=(L=void 0)!==null&&L!==void 0?L:void 0)!==null&&x!==void 0?x:$.weekStartsOn)!==null&&w!==void 0?w:(H=$.locale)===null||H===void 0||(B=H.options)===null||B===void 0?void 0:B.weekStartsOn)!==null&&_!==void 0?_:0);if(!(ne>=0&&ne<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(Y==="")return O===""?A(e):new Date(NaN);var oe={firstWeekContainsDate:K,weekStartsOn:ne,locale:Q},le=[new La],Ee=Y.match(Ts).map(function(V){var D=V[0];if(D in Ue){var N=Ue[D];return N(V,Q.formatLong)}return V}).join("").match(ks),F=[],R=mt(Ee),Z;try{var _i=function(){var D=Z.value;!(t!=null&&t.useAdditionalWeekYearTokens)&&Jt(D)&&ke(D,Y,a),!(t!=null&&t.useAdditionalDayOfYearTokens)&&Zt(D)&&ke(D,Y,a);var N=D[0],ge=Cs[N];if(ge){var rt=ge.incompatibleTokens;if(Array.isArray(rt)){var at=F.find(function(st){return rt.includes(st.token)||st.token===N});if(at)throw new RangeError("The format string mustn't contain `".concat(at.fullToken,"` and `").concat(D,"` at the same time"))}else if(ge.incompatibleTokens==="*"&&F.length>0)throw new RangeError("The format string mustn't contain `".concat(D,"` and any other token at the same time"));F.push({token:N,fullToken:D});var Se=ge.run(O,D,Q.match,oe);if(!Se)return{v:new Date(NaN)};le.push(Se.setter),O=Se.rest}else{if(N.match(Ps))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");if(D==="''"?D="'":N==="'"&&(D=Ss(D)),O.indexOf(D)===0)O=O.slice(D.length);else return{v:new Date(NaN)}}};for(R.s();!(Z=R.n()).done;){var Je=_i();if(j(Je)==="object")return Je.v}}catch(V){R.e(V)}finally{R.f()}if(O.length>0&&Es.test(O))return new Date(NaN);var vi=le.map(function(V){return V.priority}).sort(function(V,D){return D-V}).filter(function(V,D,N){return N.indexOf(V)===D}).map(function(V){return le.filter(function(D){return D.priority===V}).sort(function(D,N){return N.subPriority-D.subPriority})}).map(function(V){return V[0]}),Pe=A(e);if(isNaN(Pe.getTime()))return new Date(NaN);var de=qt(Pe,Xt(Pe)),et={},_e=mt(vi),tt;try{for(_e.s();!(tt=_e.n()).done;){var it=tt.value;if(!it.validate(de,oe))return new Date(NaN);var ve=it.set(de,et,oe);Array.isArray(ve)?(de=ve[0],Ma(et,ve[1])):de=ve}}catch(V){_e.e(V)}finally{_e.f()}return de}function Ss(a){return a.match(Ds)[1].replace(Is,"'")}function _t(a,i){P(2,arguments);var e=A(a),t=A(i);return e.getTime()>t.getTime()}function vt(a,i){P(2,arguments);var e=A(a),t=A(i);return e.getTime()<t.getTime()}const Ms='*,*::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}',As=Ms,oi=class{constructor(a){u.registerInstance(this,a),this.sendValidityState=u.createEvent(this,"sendValidityState",7),this.sendInputValue=u.createEvent(this,"sendInputValue",7),this.touched=!1,this.formatDate=i=>{const{year:e,month:t,day:r}=i,s=new Date(e,t,r);return Ea(s,this.dateFormat||"yyyy-MM-dd")},this.parseDate=i=>{const e=we(i,this.dateFormat||"yyyy-MM-dd",new Date);return{year:e.getFullYear(),month:e.getMonth(),day:e.getDate()}},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},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}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(a){this.sendValidityState.emit(a)}emitValueHandler(a){a==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(a){this.sendInputValue.emit(a)}handleClickOutside(a){a.composedPath()[0]!==this.tooltipIconReference&&a.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){var a,i;this.minDate=we(((a=this.validation.min)===null||a===void 0?void 0:a.toString())||"","yyyy-MM-dd",new Date),this.maxDate=we(((i=this.validation.max)===null||i===void 0?void 0:i.toString())||"","yyyy-MM-dd",new Date)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){if(this.datePicker=this.element.shadowRoot.querySelector("vaadin-date-picker"),this.inputReference=this.element.shadowRoot.querySelector("input"),this.datePicker){const a=this.datePicker.shadowRoot.querySelector('[part="toggle-button"]');a&&a.addEventListener("click",()=>this.handleCalendarIconClick())}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}))}handleCalendarIconClick(){this.datePicker.opened&&this.emitOnClick&&window.postMessage({type:`registration${this.name}Clicked`},window.location.href)}handleInput(a){this.value=a.target.value,this.touched=!0,this.valueAsDate=we(this.value||"","yyyy-MM-dd",new Date),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return vt(this.valueAsDate,this.minDate)||_t(this.valueAsDate,this.maxDate)?!1:this.inputReference.validity.valid}setErrorMessage(){if(vt(this.valueAsDate,this.minDate)||_t(this.valueAsDate,this.maxDate))return T.translate("dateError2",this.language);if(this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow)return T.translate("dateError",this.language,{values:{min:this.validation.min,max:this.validation.max}});if(this.inputReference.validity.valueMissing)return T.translate("requiredError",this.language)}renderTooltip(){return this.showTooltip?u.h("div",{class:`date__tooltip ${this.showTooltip?"visible":""}`,ref:a=>this.tooltipReference=a,innerHTML:this.tooltip}):null}render(){let a="";return this.touched&&(a=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),u.h("div",{key:"fc9cd0a618c7b6e62962c0800399a470fffa1fc4",class:`date__wrapper ${this.autofilled?"date__wrapper--autofilled":""} ${this.name}__input`,ref:i=>this.stylingContainer=i},u.h("label",{key:"abc7c1715dd2d0c60dd2ac6d028355de910be501",class:`date__label ${this.validation.mandatory?"date__label--required":""}}`,htmlFor:`${this.name}__input`},this.displayName," ",this.validation.mandatory?"*":""),u.h("vaadin-date-picker",{key:"a6b40a978b573d41490457d708f9a7ac78622a6f",id:`${this.name}__input`,type:"date",class:`date__input ${a}`,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}),u.h("small",{key:"d802ea7b25a64802aca3a7491107fcee7af2a23c",class:"date__error-message"},this.errorMessage),this.tooltip&&u.h("img",{key:"46edd200a9ce9eba27414a6434c6b3d5e9dc9964",class:"date__tooltip-icon",src:G.tooltipIconSvg,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}get element(){return u.getElement(this)}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};oi.style=As;const Os='*,*::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}',Vs=Os,li=class{constructor(a){u.registerInstance(this,a),this.sendValidityState=u.createEvent(this,"sendValidityState",7),this.sendInputValue=u.createEvent(this,"sendInputValue",7),this.validationPattern="",this.touched=!1,this.handleInput=i=>{this.value=i.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},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}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(a){a==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(a){this.sendValidityState.emit(a)}valueHandler(a){this.sendInputValue.emit(a)}handleClickOutside(a){a.composedPath()[0]!==this.tooltipIconReference&&a.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}valueChangedHandler(a){this.isDuplicateInput&&this.name===a.detail.name+"Duplicate"&&(this.duplicateInputValue=a.detail.value)}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setPattern(){var a,i;if(((a=this.validation.custom)===null||a===void 0?void 0:a.length)>0)return(i=this.validation.custom.find(e=>e.rule==="regex"))===null||i===void 0?void 0:i.pattern}setErrorMessage(){var a,i,e,t;if(this.inputReference.validity.patternMismatch){const r=(a=this.validation.custom.find(n=>n.rule==="regex"))===null||a===void 0?void 0:a.errorKey,s=(i=this.validation.custom.find(n=>n.rule==="regex"))===null||i===void 0?void 0:i.errorMessage;return T.translate(`${r}`,this.language)?T.translate(`${r}`,this.language):s}if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return T.translate("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return T.translate("requiredError",this.language);if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const r=(e=this.validation.custom.find(n=>n.rule==="duplicate-input"))===null||e===void 0?void 0:e.errorKey,s=(t=this.validation.custom.find(n=>n.rule==="duplicate-input"))===null||t===void 0?void 0:t.errorMessage;return T.translate(`${r}`,this.language)?T.translate(`${r}`,this.language):s}}renderTooltip(){return this.showTooltip?u.h("div",{class:`email__tooltip ${this.showTooltip?"visible":""}`,ref:a=>this.tooltipReference=a,innerHTML:this.tooltip}):null}render(){let a="";return this.touched&&(a=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),u.h("div",{key:"23ac67984ab7a0f4db01e5fe01f4f326b4c6a912",class:`email__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:i=>this.stylingContainer=i},u.h("div",{key:"aa2405e435aea20f1678dd74776a8ce4094bc95b",class:"email__wrapper--flex"},u.h("label",{key:"970b83bbcf082d1721c1647993fecd076939b65d",class:`email__label ${this.validation.mandatory?"email__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),u.h("div",{key:"2f03eaf161aab9b45282c1bc0de15bea8455427c",class:"email__wrapper--relative"},this.tooltip&&u.h("img",{key:"3c34b91f0b478cf04f5aabc5fdd33a8ed73d091b",class:"email__tooltip-icon",src:G.tooltipIconSvg,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),u.h("input",{key:"491f83c0f562893c02e3425b4d54eecc214e3c95",id:`${this.name}__input`,type:"email",class:`email__input ${a}`,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}),u.h("small",{key:"edb6660d958cc5d0cb41b0db195bd7e847ecbefe",class:"email__error-message"},this.errorMessage))}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};li.style=Vs;const Fs='*,*::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}',Hs=Fs,di=class{constructor(a){u.registerInstance(this,a),this.sendValidityState=u.createEvent(this,"sendValidityState",7),this.sendInputValue=u.createEvent(this,"sendInputValue",7),this.validationPattern="",this.touched=!1,this.handleInput=i=>{this.value=i.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},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}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(a){this.sendValidityState.emit(a)}emitValueHandler(a){a==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(a){this.sendInputValue.emit(a)}handleClickOutside(a){a.composedPath()[0]!==this.tooltipIconReference&&a.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setPattern(){var a,i;if(((a=this.validation.custom)===null||a===void 0?void 0:a.length)>0)return(i=this.validation.custom.find(e=>e.rule==="regex"))===null||i===void 0?void 0:i.pattern}setErrorMessage(){var a,i;if(this.inputReference.validity.patternMismatch){const e=(a=this.validation.custom.find(r=>r.rule==="regex"))===null||a===void 0?void 0:a.errorKey,t=(i=this.validation.custom.find(r=>r.rule==="regex"))===null||i===void 0?void 0:i.errorMessage;return T.translate(`${e}`,this.language)?T.translate(`${e}`,this.language):t}if(this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow)return T.translate("numberLengthError",this.language,{values:{min:this.validation.min,max:this.validation.max}});if(this.inputReference.validity.valueMissing)return T.translate("requiredError",this.language)}renderTooltip(){return this.showTooltip?u.h("div",{class:`number__tooltip ${this.showTooltip?"visible":""}`,ref:a=>this.tooltipReference=a,innerHTML:this.tooltip}):null}render(){let a="";return this.touched&&(a=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),u.h("div",{key:"2032f77ca52b330ae2e8f484d7a0aba60ee7b9d5",class:`number__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:i=>this.stylingContainer=i},u.h("div",{key:"0786901cd928bba86597180f058bff43fba522b6",class:"number__wrapper--flex"},u.h("label",{key:"ff7f39306cef7aeba3e0e4508df03c5a945e748b",class:`number__label ${this.validation.mandatory?"number__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),u.h("div",{key:"dced91223621551472fee374d56f1ad7476f4191",class:"number__wrapper--relative"},this.tooltip&&u.h("img",{key:"a804a983e342e4d117126720a32c4c34a2b267dc",class:"number__tooltip-icon",src:G.tooltipIconSvg,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),u.h("input",{key:"fd59afaedf7d9f761684b057a1809474d735cc26",ref:i=>this.inputReference=i,type:"number",value:this.defaultValue,readOnly:this.autofilled,id:`${this.name}__input`,class:`number__input ${a}`,pattern:this.validationPattern,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onInput:this.handleInput,onBlur:this.handleBlur}),u.h("small",{key:"ca11558b5704b69311626736ab84a298449b98d7",class:"number__error-message"},this.errorMessage))}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};di.style=Hs;const Ls="*,*::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}",zs=Ls,hi=class{constructor(a){u.registerInstance(this,a),this.sendInputValue=u.createEvent(this,"sendInputValue",7),this.sendValidityState=u.createEvent(this,"sendValidityState",7),this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},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}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(a){a==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(a){this.sendInputValue.emit(a)}validityStateHandler(a){this.sendValidityState.emit(a)}handleClickOutside(a){a.composedPath()[0]!==this.tooltipIconReference&&a.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}handleClick(a){this.value=a.target.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return T.translate("requiredError",this.language)}renderTooltip(){return this.showTooltip?u.h("div",{class:`radio__tooltip ${this.showTooltip?"visible":""}`,ref:a=>this.tooltipReference=a,innerHTML:this.tooltip}):null}render(){return u.h("fieldset",{key:"3d90735f7dc8fef6a96dc85b8f9ba22880cb205f",class:`radio__fieldset ${this.name}__input`,ref:a=>this.stylingContainer=a},u.h("legend",{key:"9472ed76f5c7fabb90d2b3d39eeb9e18f05a30dd",class:"radio__legend"},this.displayName,":"),this.optionsGroup.map(a=>u.h("div",{class:"radio__wrapper"},u.h("input",{type:"radio",class:"radio__input",id:`${a.label}__input`,ref:i=>this.inputReference=i,value:a.value,name:this.name,required:this.validation.mandatory,onClick:i=>this.handleClick(i)}),u.h("label",{htmlFor:`${a.label}__input`},a.label))),u.h("small",{key:"2ae0947580bb8a0a3d889a2d9ebd0b82458fdfd2",class:"radio__error-message"},this.errorMessage),this.tooltip&&u.h("img",{key:"4f3cbf341f1c559bbdf44ca5d169be7a64d46e97",class:"radio__tooltip-icon",src:G.tooltipIconSvg,alt:"",ref:a=>this.tooltipIconReference=a,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};hi.style=zs;/**
1500
+ * @license
1501
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1502
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1503
+ */class Rs extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}}o.defineCustomElement(Rs);const me=(a,...i)=>{o.addGlobalThemeStyles(`lumo-${a}`,i)};/**
1504
+ * @license
1505
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1506
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1507
+ */const Bs=o.i$1`
1508
+ @font-face {
1509
+ font-family: 'lumo-icons';
1510
+ src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2cAABeAWri7U2hlYWQAAA3oAAAAMAAAADZa/6SsaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh57oA4bWF4cAAADqAAAAAfAAAAIAFKAXBuYW1lAAAOwAAAATEAAAIuUUJZCHBvc3QAAA/0AAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcacBUtWrNmwZceeA0dOnLlw5cadB09elPGhGf+j0NTI/65KfXerT6JhqKnpRKtgOpuqaTrtKjPUlqHmhto21I7pL6i6hlqY3q7qGWrfUAeGOjTUkaGODXViqFNDnRnq3FAXhro01JWhrg11Y6hbQ90Z6t5QD4Z6NNSToZ4N9WKoV0O9GerdUB+G+jTUl6GWRvkL24BkEXictVh9bFvVFb/nxvbz+7Rf/N6zHcd2bCfP+Wic1Z9N0jpNHCD9SNqqoVBgbQoMjY+pjA4hNnWa2pV1rHSIif0DGkyT2k10Kmu1Cag6huj4ZpqYBHSqJsTEJgZCG3TaVBFv595nO3ZIv4RIrPPuvefe884599zzO/cRF8G/tgn6CFFImNgkR0ggX8wlspbhSSWSdrC5ozd30s2dw5afzvgtyz9/zG9t1hV4RtF1pXolowvtzc2z6L2aYUQM45jKH9WDTvd1LRDoDASYWhfTzTyvboXz6uZX4ARX5wrF39y+HM2+CJ8d0pkyqBIqoze3D12ez4DrFoYzxI8dWwMrDlZ2DMqQAR9AROsJU+2smlTPaTTco52BVxXa2a2+I8vvqd2dVHm1LoPeTn/AZPRYGthDYOeZjBjKoFsVGulR3lGU95SeCK44oHU7MhWUGUKZDT3oSUcG2GWuh+EDDfUYA/jhIhl0TOsJNYSEu7mQmi3UzfXwZKA4BsVsHLXQYGgJW95qEtpJ1VcW9HiTriZBlFEqxsDjA09yCNUoQxxwd7KWSTt2y3GTKifkqHRCoWZc3m11Wa/dKdFgXD4kSYfkeJBKd8KMz7J8dZn/cGRCcLGDnA2Ge3bKzcvlnTDNthFWLH7Xt80ua5FMjA4WKelWv5Xo16vHuYzpRbJhhdVlftuRK0VlR27D9lu5TF0DPBi60OrHNO0AfP/uRWvhn/U3LXICE+nh+3IHPUJ8JE6GyBjZQLbjGchlrSgYngF8zyrIF4NJD3atUcgWsWunGN/UHX5B5/yg7uF87Nqp4Gf52F3gH73DjEZNRoqCKAr9giQJp5rGJABpiVE2htNhW9R8nw0jqYjCYcY4LIjwYNScf4WN06IZnZCEqsI4cFaQbo4Z1TsZBx40YhXkHOecaYE5oY37IIQ+iJJ+UsDYSun5MuRSBRZRUUhlY2DqOGajOR6zrSU/5My6l2DnusH1GQgnw5BZP7iuYM/ahcfQ7Z8y51ddfutvuwNqWQ0cBYr8fj0U0vsHpwerVaB2sWhXT2NExi2r1KUE2tUuVMnkepVQrxTmpQrZTG4iu8he8iPyM3KcPE/+RP5KPoE2CEAKclCBzXATxkYOtUY/o961PWRqsj0chRrHFBbtrjP9/P0ven5pcbRdpL94vfsy33e5+izuwz3nFLFPVNayPZx/jdG1fOChflFRvYzsW6L18efgLrSWIgvcqnGJYi4skO4xREURjbDuxKke5v0T3Mrzkt2fi31uyZlLLrqIpEuXXsMlgw442Jb0GAxjS1DM20kBoCzHLXm/jEm0IltdcvU0fEW24jgiwwRjVd9u4NJHcIyoHJcwvyVqgqj5hqBJ1ZWSJryh9p56UWhX1XbhRbW2ZopuZWsQd5y8mEQ8M+C6xjRYxZbDKWf5AgY+Qq/l6wSPk16zDFjowYuu+wjx13mfkxbyDDxadYT/LijZyI0THB+6yfLaWsRcO82zo9mWTNtpO18qlorZoIVMwSN40tky5DOQ1MCIAe24mvlsuwIIxPb10+uXDQ4uWz/9m3rj+ql7p6bufZARuPVq5tXtsn6KwfP8Jy0TeWOyNhUJN6mhX5rkUTtUppQWEMNTqEdaCGKFYKJaQrCE4JtDLYOlNEKmO5kBTPGY2A0N2sY3+dVlo1N9ycBsIGtOjQ2p/tlZvzo0ur4v6cOh8NTospB7U/X40KahoU3bGIH97dnwmtHlYffVG3R1YOwKM2vNhrPhCT5zk64sG53oS4b31aYjqe/B7+kQiXBN+b6h21hNUPMq29B8CU4elINdygMPKF1B+WBTG7Z9ZshpN/xwEuuDQZR+nuoo4CDaAiiwXmLpmukMQyPf/JMclqgL1ixZQ/nnP2VbdUODFGt2fgBvL123rlLYu/6A9ckb7F3K0/CyBMEu6aQoPscroCcacVehvyQyCZAsizsWWBkoLC+WAiWnOksLKaeuQDzGuqSk42aiYTiJ4zf9afl17SrqaTO1f+XlZAfIuYcq7/IqYMaMrksOJ6vHkOCPDq943xcCnHqVD9pHFRpMqSPXrIua1WNs+tOz1U+ciTCDpPk+c4QYJIHnYhxP/kVPAq+ahFpVhPcHp8qyarhiF+HsBU9Hrl+UZa876fbKipL0KqB6OdUveErgtOI97fZ63ae9SvWU6k2w1JfwqnUbHsYcFCJFrC/W12zIMMirWYEHxMPs6LGYSdkSZ5TsNP9PCpwnWC3HKZ1lydNjWHC2Mn3l6vL0dHn1ldP3LTSrX+vKrBqv7KmMr8p0SR6P1NqF63or6XRlIyO90f7+kf7+myOhvt4tq7f09oUiTc2/dycGgqFQcCDRLYmi1NL7fk0CknVMxEg/cdfs/TnpJMNkgqwj17B8beVazSrVbU4lG67IZYOCnWrYy3yBR9cyWcChywos3LJBEdhhFoAdYjiw0rLGm0xU5OzoGm5/ZfmHjVZpNNg6SznzGKDdwv2cCtVn6Eaxo12cfxLprpVtTcZ6hVx6dow7Yq7e8LXO8PY9Jgjoze9yCtU5FNbegcKkQMdCbt9au/te4Ebe0jkc0ukUL32eYnTpNs20h0KpUOhZPYwVcfhZnfdqeCvDfXiuCbAoYWcXERPc/mDQD3/hdF+wK4i/xv3kYfprIpAuMkk2kW3kdtS0kBIKpZwp8KxmsCyfM1MFzAss9LBkDxRyThiaqTLwKYKJVTwmWTudMyz+yks09346MDh4m72yOxCKrt1XMlQ1qPVlTEVVQ1ofdK/sCWjtZu9qGwZ8YZ9PPWlo1IV3eW3+U0aXblP39zrt+JPf6UhEQ1rUjNBULN+utyuaDNW34kpAVuSOeMTyWbSNWnooFu+QFNWQ4d/Ox4IPWx41fP/fB/Rjeoz08ezPA9TysMtmnOXfGN7Ui3xIYLDALrlDLOP09qtJuY2OeL0+QZXdRnR1nxRVBF/SOyKKPpcrn9mWzH4rH9IidE+PTNU2182+hOgSItrE1slByS24vaLvJpxOqe4Pduf3HJkZ+jLqUz9rRzB7p8gKcgWZwV1L8JtUS5Z2JxZSOCuBoMTQihMzLbCPA0KqGMAljRQjONklW/wjnXKy8vxT/Elvm3/KiMUMOoV0/vnDYlhec0SMKtt3/kKMyOt33tj2bqxQLsTjSGLl+EAsNhCnTyRGktW55EgCn/A4PlnWn+Mg8bgZrWqHxTbPwMuyy1u5YeZF2SUM7JRhddwRgiRuxpmgJmxn9ZW7XpcF3ViX/ar6ptRpGJ0S9Adg4qhb9sI3vbL7qNJV/y4i07t5TZBiho1imFoMz3gED+CtjYUxvP4SOxov4bFoNPg5aR1e+G4UgDPoedJTpogyCJ7oYvRqoVS0MQAy+CoNEdTDUjok5ZHZL/WtjV7rFj3PKQE3iKp7ou+rIxN3b9LB1dGjeT4cvKo3FrnWpYpuaFd/h3dtV8UeKN1Y9hpR3dt4p0H/zKuPQq0kZQUIIpuDfoiETsnIk+gCWMJZUXHtE8V9LkUc2TE8vOMbO4ax/MACabzyaGXc7u3FBr11ThBdB8SIeMAlCntG2KThHSPsaj2Dc9KNyY2a0KZ7ODaTHoRiFkeYz+shZBpCS4X6471KKKnuHd84edfk5F37d1XO5bbkcltu2ZLNbvnPXiUVAnVvprJrP+NObryjxrllS65md6Tm6wzFHRR4dY3QUUjb7MgxaIixU8hspi98fl/Xc+IB4iU66eCVL9YfAfahiSUt4TONS8x0D8W7u8vd3fGWx6OXlM/U1IoU/s61PGhpyXRFa3eReq2qG56lvmYtXavCC1iN7lbiBpWxXHU+cSlztVLVz0tVN600fVsLxaVDknhYioeoXP3t4lqV1r79MAw0GCI1FTL1YIGzPL1MMlJ9ZsN9P7lvA2yr9ZFUzwzPrVgxN/x/SS+chwB4nGNgZGBgAOLPrYdY4vltvjJwM78AijDUqG5oRND/XzNPZboF5HIwMIFEAU/lC+J4nGNgZGBgDvqfBSRfMAAB81QGRgZUoA0AVvYDbwAAAHicY2BgYGB+MTQwAM8EJo8AAAAAAE4AmgDoAQoBLAFOAXABmgHEAe4CGgKcAugEmgS8BNYE8gUOBSoFegXQBf4GRAZmBrYHGAeQCBgIUghqCP4JRgm+CdoKBAo+CoQKugr0C1QLmgvAeJxjYGRgYNBmTGEQZQABJiDmAkIGhv9gPgMAGJQBvAB4nG2RPU7DMBiG3/QP0UoIBGJh8QILavozdmRo9w7d09RpUzlx5LgVvQMn4BAcgoEzcAgOwVvzSZVQbcnf48fvFysJgGt8IcJxROiG9TgauODuj5ukG+EW+UG4jR4ehTv0Q+EunjER7uEWmk+IWpc0d3gVbuAKb8JN+nfhFvlDuI17fAp36L+Fu1jgR7iHp+jF7Arbz1Nb1nO93pnEncSJFtrVuS3VKB6e5EyX2iVer9TyoOr9eux9pjJnCzW1pdfGWFU5u9WpjzfeV5PBIBMfp7aAwQ4FLPrIkbKWqDHn+67pDRK4s4lzbsEux5qHvcIIMb/nueSMyTKkE3jWFdNLHLjW2PPmMa1Hxn3GjGW/wjT0HtOG09JU4WxLk9LH2ISuiv9twJn9y8fh9uIXI+BknAAAAHicbY7ZboMwEEW5CVBCSLrv+76kfJRjTwHFsdGAG+Xvy5JUfehIHp0rnxmNN/D6ir3/a4YBhvARIMQOIowQY4wEE0yxiz3s4wCHOMIxTnCKM5zjApe4wjVucIs73OMBj3jCM17wije84wMzfHqJ0EVmUkmmJo77oOmrHvfIRZbXsTCZplTZldlgb3TYGVHProwFs11t1A57tcON2rErR3PBqcwF1/6ctI6k0GSU4JHMSS6WghdJQ99sTbfuN7QLJ9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==)
1511
+ format('woff');
1512
+ font-weight: normal;
1513
+ font-style: normal;
1514
+ }
1515
+
1516
+ html {
1517
+ --lumo-icons-align-center: '\\ea01';
1518
+ --lumo-icons-align-left: '\\ea02';
1519
+ --lumo-icons-align-right: '\\ea03';
1520
+ --lumo-icons-angle-down: '\\ea04';
1521
+ --lumo-icons-angle-left: '\\ea05';
1522
+ --lumo-icons-angle-right: '\\ea06';
1523
+ --lumo-icons-angle-up: '\\ea07';
1524
+ --lumo-icons-arrow-down: '\\ea08';
1525
+ --lumo-icons-arrow-left: '\\ea09';
1526
+ --lumo-icons-arrow-right: '\\ea0a';
1527
+ --lumo-icons-arrow-up: '\\ea0b';
1528
+ --lumo-icons-bar-chart: '\\ea0c';
1529
+ --lumo-icons-bell: '\\ea0d';
1530
+ --lumo-icons-calendar: '\\ea0e';
1531
+ --lumo-icons-checkmark: '\\ea0f';
1532
+ --lumo-icons-chevron-down: '\\ea10';
1533
+ --lumo-icons-chevron-left: '\\ea11';
1534
+ --lumo-icons-chevron-right: '\\ea12';
1535
+ --lumo-icons-chevron-up: '\\ea13';
1536
+ --lumo-icons-clock: '\\ea14';
1537
+ --lumo-icons-cog: '\\ea15';
1538
+ --lumo-icons-cross: '\\ea16';
1539
+ --lumo-icons-download: '\\ea17';
1540
+ --lumo-icons-dropdown: '\\ea18';
1541
+ --lumo-icons-edit: '\\ea19';
1542
+ --lumo-icons-error: '\\ea1a';
1543
+ --lumo-icons-eye: '\\ea1b';
1544
+ --lumo-icons-eye-disabled: '\\ea1c';
1545
+ --lumo-icons-menu: '\\ea1d';
1546
+ --lumo-icons-minus: '\\ea1e';
1547
+ --lumo-icons-ordered-list: '\\ea1f';
1548
+ --lumo-icons-phone: '\\ea20';
1549
+ --lumo-icons-photo: '\\ea21';
1550
+ --lumo-icons-play: '\\ea22';
1551
+ --lumo-icons-plus: '\\ea23';
1552
+ --lumo-icons-redo: '\\ea24';
1553
+ --lumo-icons-reload: '\\ea25';
1554
+ --lumo-icons-search: '\\ea26';
1555
+ --lumo-icons-undo: '\\ea27';
1556
+ --lumo-icons-unordered-list: '\\ea28';
1557
+ --lumo-icons-upload: '\\ea29';
1558
+ --lumo-icons-user: '\\ea2a';
1559
+ }
1560
+ `;me("font-icons",Bs);/**
1561
+ * @license
1562
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1563
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1564
+ */const Ns=o.i$1`
1565
+ :host {
1566
+ --lumo-size-xs: 1.625rem;
1567
+ --lumo-size-s: 1.875rem;
1568
+ --lumo-size-m: 2.25rem;
1569
+ --lumo-size-l: 2.75rem;
1570
+ --lumo-size-xl: 3.5rem;
1571
+
1572
+ /* Icons */
1573
+ --lumo-icon-size-s: 1.25em;
1574
+ --lumo-icon-size-m: 1.5em;
1575
+ --lumo-icon-size-l: 2.25em;
1576
+ /* For backwards compatibility */
1577
+ --lumo-icon-size: var(--lumo-icon-size-m);
1578
+ }
1579
+ `;me("sizing-props",Ns);/**
1580
+ * @license
1581
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1582
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1583
+ */const Ys=o.i$1`
1584
+ :host {
1585
+ /* Square */
1586
+ --lumo-space-xs: 0.25rem;
1587
+ --lumo-space-s: 0.5rem;
1588
+ --lumo-space-m: 1rem;
1589
+ --lumo-space-l: 1.5rem;
1590
+ --lumo-space-xl: 2.5rem;
1591
+
1592
+ /* Wide */
1593
+ --lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
1594
+ --lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
1595
+ --lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
1596
+ --lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
1597
+ --lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
1598
+
1599
+ /* Tall */
1600
+ --lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
1601
+ --lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
1602
+ --lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
1603
+ --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
1604
+ --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
1605
+ }
1606
+ `;me("spacing-props",Ys);/**
1607
+ * @license
1608
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1609
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1610
+ */const Us=o.i$1`
1611
+ :host {
1612
+ /* Border radius */
1613
+ --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
1614
+ --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
1615
+ --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
1616
+
1617
+ /* Shadow */
1618
+ --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
1619
+ --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
1620
+ --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
1621
+ --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
1622
+ --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
1623
+
1624
+ /* Clickable element cursor */
1625
+ --lumo-clickable-cursor: default;
1626
+ }
1627
+ `;o.i$1`
1628
+ html {
1629
+ --vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
1630
+ --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
1631
+ --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
1632
+ }
1633
+ `;me("style-props",Us);/**
1634
+ * @license
1635
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1636
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1637
+ */const Ws=o.i$1`
1638
+ :host {
1639
+ /* prettier-ignore */
1640
+ --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
1641
+
1642
+ /* Font sizes */
1643
+ --lumo-font-size-xxs: 0.75rem;
1644
+ --lumo-font-size-xs: 0.8125rem;
1645
+ --lumo-font-size-s: 0.875rem;
1646
+ --lumo-font-size-m: 1rem;
1647
+ --lumo-font-size-l: 1.125rem;
1648
+ --lumo-font-size-xl: 1.375rem;
1649
+ --lumo-font-size-xxl: 1.75rem;
1650
+ --lumo-font-size-xxxl: 2.5rem;
1651
+
1652
+ /* Line heights */
1653
+ --lumo-line-height-xs: 1.25;
1654
+ --lumo-line-height-s: 1.375;
1655
+ --lumo-line-height-m: 1.625;
1656
+ }
1657
+ `,$s=o.i$1`
1658
+ body,
1659
+ :host {
1660
+ font-family: var(--lumo-font-family);
1661
+ font-size: var(--lumo-font-size-m);
1662
+ line-height: var(--lumo-line-height-m);
1663
+ -webkit-text-size-adjust: 100%;
1664
+ -webkit-font-smoothing: antialiased;
1665
+ -moz-osx-font-smoothing: grayscale;
1666
+ }
1667
+
1668
+ small,
1669
+ [theme~='font-size-s'] {
1670
+ font-size: var(--lumo-font-size-s);
1671
+ line-height: var(--lumo-line-height-s);
1672
+ }
1673
+
1674
+ [theme~='font-size-xs'] {
1675
+ font-size: var(--lumo-font-size-xs);
1676
+ line-height: var(--lumo-line-height-xs);
1677
+ }
1678
+
1679
+ :where(h1, h2, h3, h4, h5, h6) {
1680
+ font-weight: 600;
1681
+ line-height: var(--lumo-line-height-xs);
1682
+ margin-block: 0;
1683
+ }
1684
+
1685
+ :where(h1) {
1686
+ font-size: var(--lumo-font-size-xxxl);
1687
+ }
1688
+
1689
+ :where(h2) {
1690
+ font-size: var(--lumo-font-size-xxl);
1691
+ }
1692
+
1693
+ :where(h3) {
1694
+ font-size: var(--lumo-font-size-xl);
1695
+ }
1696
+
1697
+ :where(h4) {
1698
+ font-size: var(--lumo-font-size-l);
1699
+ }
1700
+
1701
+ :where(h5) {
1702
+ font-size: var(--lumo-font-size-m);
1703
+ }
1704
+
1705
+ :where(h6) {
1706
+ font-size: var(--lumo-font-size-xs);
1707
+ text-transform: uppercase;
1708
+ letter-spacing: 0.03em;
1709
+ }
1710
+
1711
+ p,
1712
+ blockquote {
1713
+ margin-top: 0.5em;
1714
+ margin-bottom: 0.75em;
1715
+ }
1716
+
1717
+ a {
1718
+ text-decoration: none;
1719
+ }
1720
+
1721
+ a:where(:any-link):hover {
1722
+ text-decoration: underline;
1723
+ }
1724
+
1725
+ hr {
1726
+ display: block;
1727
+ align-self: stretch;
1728
+ height: 1px;
1729
+ border: 0;
1730
+ padding: 0;
1731
+ margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
1732
+ background-color: var(--lumo-contrast-10pct);
1733
+ }
1734
+
1735
+ blockquote {
1736
+ border-left: 2px solid var(--lumo-contrast-30pct);
1737
+ }
1738
+
1739
+ b,
1740
+ strong {
1741
+ font-weight: 600;
1742
+ }
1743
+
1744
+ /* RTL specific styles */
1745
+ blockquote[dir='rtl'] {
1746
+ border-left: none;
1747
+ border-right: 2px solid var(--lumo-contrast-30pct);
1748
+ }
1749
+ `;o.registerStyles("",$s,{moduleId:"lumo-typography"});me("typography-props",Ws);const ui=o.i$1`
1750
+ :host {
1751
+ display: flex;
1752
+ align-items: center;
1753
+ box-sizing: border-box;
1754
+ font-family: var(--lumo-font-family);
1755
+ font-size: var(--lumo-font-size-m);
1756
+ line-height: var(--lumo-line-height-xs);
1757
+ padding: 0.5em calc(var(--lumo-space-l) + var(--lumo-border-radius-m) / 4) 0.5em
1758
+ var(--_lumo-list-box-item-padding-left, calc(var(--lumo-border-radius-m) / 4));
1759
+ min-height: var(--lumo-size-m);
1760
+ outline: none;
1761
+ border-radius: var(--lumo-border-radius-m);
1762
+ cursor: var(--lumo-clickable-cursor);
1763
+ -webkit-font-smoothing: antialiased;
1764
+ -moz-osx-font-smoothing: grayscale;
1765
+ -webkit-tap-highlight-color: var(--lumo-primary-color-10pct);
1766
+ }
1767
+
1768
+ /* Checkmark */
1769
+ [part='checkmark']::before {
1770
+ display: var(--_lumo-item-selected-icon-display, none);
1771
+ content: var(--lumo-icons-checkmark);
1772
+ font-family: lumo-icons;
1773
+ font-size: var(--lumo-icon-size-m);
1774
+ line-height: 1;
1775
+ font-weight: normal;
1776
+ width: 1em;
1777
+ height: 1em;
1778
+ margin: calc((1 - var(--lumo-line-height-xs)) * var(--lumo-font-size-m) / 2) 0;
1779
+ color: var(--lumo-primary-text-color);
1780
+ flex: none;
1781
+ opacity: 0;
1782
+ transition: transform 0.2s cubic-bezier(0.12, 0.32, 0.54, 2), opacity 0.1s;
1783
+ }
1784
+
1785
+ :host([selected]) [part='checkmark']::before {
1786
+ opacity: 1;
1787
+ }
1788
+
1789
+ :host([active]:not([selected])) [part='checkmark']::before {
1790
+ transform: scale(0.8);
1791
+ opacity: 0;
1792
+ transition-duration: 0s;
1793
+ }
1794
+
1795
+ [part='content'] {
1796
+ flex: auto;
1797
+ }
1798
+
1799
+ /* Disabled */
1800
+ :host([disabled]) {
1801
+ color: var(--lumo-disabled-text-color);
1802
+ cursor: default;
1803
+ pointer-events: none;
1804
+ }
1805
+
1806
+ /* TODO a workaround until we have "focus-follows-mouse". After that, use the hover style for focus-ring as well */
1807
+ @media (any-hover: hover) {
1808
+ :host(:hover:not([disabled])) {
1809
+ background-color: var(--lumo-primary-color-10pct);
1810
+ }
1811
+
1812
+ :host([focus-ring]:not([disabled])) {
1813
+ box-shadow: inset 0 0 0 2px var(--lumo-primary-color-50pct);
1814
+ }
1815
+ }
1816
+
1817
+ /* RTL specific styles */
1818
+ :host([dir='rtl']) {
1819
+ padding-left: calc(var(--lumo-space-l) + var(--lumo-border-radius-m) / 4);
1820
+ padding-right: var(--_lumo-list-box-item-padding-left, calc(var(--lumo-border-radius-m) / 4));
1821
+ }
1822
+
1823
+ /* Slotted icons */
1824
+ :host ::slotted(vaadin-icon) {
1825
+ width: var(--lumo-icon-size-m);
1826
+ height: var(--lumo-icon-size-m);
1827
+ }
1828
+ `;o.registerStyles("vaadin-item",ui,{moduleId:"lumo-item"});const qs=o.i$1`
1829
+ :host {
1830
+ transition: background-color 100ms;
1831
+ overflow: hidden;
1832
+ --_lumo-item-selected-icon-display: block;
1833
+ }
1834
+
1835
+ @media (any-hover: hover) {
1836
+ :host([focused]:not([disabled])) {
1837
+ box-shadow: inset 0 0 0 2px var(--lumo-primary-color-50pct);
1838
+ }
1839
+ }
1840
+ `;o.registerStyles("vaadin-combo-box-item",[ui,qs],{moduleId:"lumo-combo-box-item"});/**
1841
+ * @license
1842
+ * Copyright (c) 2022 - 2023 Vaadin Ltd.
1843
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1844
+ */const js=o.i$1`
1845
+ [part~='loader'] {
1846
+ box-sizing: border-box;
1847
+ width: var(--lumo-icon-size-s);
1848
+ height: var(--lumo-icon-size-s);
1849
+ border: 2px solid transparent;
1850
+ border-color: var(--lumo-primary-color-10pct) var(--lumo-primary-color-10pct) var(--lumo-primary-color)
1851
+ var(--lumo-primary-color);
1852
+ border-radius: calc(0.5 * var(--lumo-icon-size-s));
1853
+ opacity: 0;
1854
+ pointer-events: none;
1855
+ }
1856
+
1857
+ :host(:not([loading])) [part~='loader'] {
1858
+ display: none;
1859
+ }
1860
+
1861
+ :host([loading]) [part~='loader'] {
1862
+ animation: 1s linear infinite lumo-loader-rotate, 0.3s 0.1s lumo-loader-fade-in both;
1863
+ }
1864
+
1865
+ @keyframes lumo-loader-fade-in {
1866
+ 0% {
1867
+ opacity: 0;
1868
+ }
1869
+
1870
+ 100% {
1871
+ opacity: 1;
1872
+ }
1873
+ }
1874
+
1875
+ @keyframes lumo-loader-rotate {
1876
+ 0% {
1877
+ transform: rotate(0deg);
1878
+ }
1879
+
1880
+ 100% {
1881
+ transform: rotate(360deg);
1882
+ }
1883
+ }
1884
+ `,Gs=o.i$1`
1885
+ [part='content'] {
1886
+ padding: 0;
1887
+ }
1888
+
1889
+ /* When items are empty, the spinner needs some room */
1890
+ :host(:not([closing])) [part~='content'] {
1891
+ min-height: calc(2 * var(--lumo-space-s) + var(--lumo-icon-size-s));
1892
+ }
1893
+
1894
+ [part~='overlay'] {
1895
+ position: relative;
1896
+ }
1897
+
1898
+ :host([top-aligned]) [part~='overlay'] {
1899
+ margin-top: var(--lumo-space-xs);
1900
+ }
1901
+
1902
+ :host([bottom-aligned]) [part~='overlay'] {
1903
+ margin-bottom: var(--lumo-space-xs);
1904
+ }
1905
+ `,Qs=o.i$1`
1906
+ [part~='loader'] {
1907
+ position: absolute;
1908
+ z-index: 1;
1909
+ left: var(--lumo-space-s);
1910
+ right: var(--lumo-space-s);
1911
+ top: var(--lumo-space-s);
1912
+ margin-left: auto;
1913
+ margin-inline-start: auto;
1914
+ margin-inline-end: 0;
1915
+ }
1916
+
1917
+ :host([dir='rtl']) [part~='loader'] {
1918
+ left: auto;
1919
+ margin-left: 0;
1920
+ margin-right: auto;
1921
+ margin-inline-start: 0;
1922
+ margin-inline-end: auto;
1923
+ }
1924
+ `;o.registerStyles("vaadin-combo-box-overlay",[$e,qe,Gs,js,Qs,o.i$1`
1925
+ :host {
1926
+ --_vaadin-combo-box-items-container-border-width: var(--lumo-space-xs);
1927
+ --_vaadin-combo-box-items-container-border-style: solid;
1928
+ }
1929
+ `],{moduleId:"lumo-combo-box-overlay"});const Ks=o.i$1`
1930
+ :host {
1931
+ outline: none;
1932
+ }
1933
+
1934
+ [part='toggle-button']::before {
1935
+ content: var(--lumo-icons-dropdown);
1936
+ }
1937
+ `;o.registerStyles("vaadin-combo-box",[o.inputFieldShared,Ks],{moduleId:"lumo-combo-box"});/**
1938
+ * @license
1939
+ * Copyright (c) 2015 - 2023 Vaadin Ltd.
1940
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1941
+ */const Xs=a=>class extends a{static get properties(){return{index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return["__rendererOrItemChanged(renderer, index, item.*, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return[...super.observedAttributes,"hidden"]}attributeChangedCallback(e,t,r){e==="hidden"&&r!==null?this.index=void 0:super.attributeChangedCallback(e,t,r)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const e=this._owner.getAttribute("dir");e&&this.setAttribute("dir",e)}requestContentUpdate(){if(!this.renderer)return;const e={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._owner,e)}__rendererOrItemChanged(e,t,r){r===void 0||t===void 0||(this._oldRenderer!==e&&(this.innerHTML="",delete this._$litPart$),e&&(this._oldRenderer=e,this.requestContentUpdate()))}__updateLabel(e,t){t||(this.textContent=e)}};/**
1942
+ * @license
1943
+ * Copyright (c) 2015 - 2023 Vaadin Ltd.
1944
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1945
+ */class Zs extends Xs(o.ThemableMixin(o.DirMixin(o.PolymerElement))){static get template(){return o.html`
1946
+ <style>
1947
+ :host {
1948
+ display: block;
1949
+ }
1950
+
1951
+ :host([hidden]) {
1952
+ display: none;
1953
+ }
1954
+ </style>
1955
+ <span part="checkmark" aria-hidden="true"></span>
1956
+ <div part="content">
1957
+ <slot></slot>
1958
+ </div>
1959
+ `}static get is(){return"vaadin-combo-box-item"}}o.defineCustomElement(Zs);/**
1960
+ * @license
1961
+ * Copyright (c) 2015 - 2023 Vaadin Ltd.
1962
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1963
+ */const Js=a=>class extends At(a){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const e=this._comboBox,t=e&&e.getAttribute("dir");t&&this.setAttribute("dir",t)}_shouldCloseOnOutsideClick(e){const t=e.composedPath();return!t.includes(this.positionTarget)&&!t.includes(this)}_setOverlayWidth(e,t){if(e&&t){const r=this.localName;this.style.setProperty(`--_${r}-default-width`,`${e.clientWidth}px`);const s=getComputedStyle(this._comboBox).getPropertyValue(`--${r}-width`);s===""?this.style.removeProperty(`--${r}-width`):this.style.setProperty(`--${r}-width`,s),this._updatePosition()}}};/**
1964
+ * @license
1965
+ * Copyright (c) 2015 - 2023 Vaadin Ltd.
1966
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1967
+ */const en=o.i$1`
1968
+ #overlay {
1969
+ width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
1970
+ }
1971
+
1972
+ [part='content'] {
1973
+ display: flex;
1974
+ flex-direction: column;
1975
+ height: 100%;
1976
+ }
1977
+ `;o.registerStyles("vaadin-combo-box-overlay",[Ot,en],{moduleId:"vaadin-combo-box-overlay-styles"});class tn extends Js(Mt(o.DirMixin(o.ThemableMixin(o.PolymerElement)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return o.html`
1978
+ <div id="backdrop" part="backdrop" hidden></div>
1979
+ <div part="overlay" id="overlay">
1980
+ <div part="loader"></div>
1981
+ <div part="content" id="content"><slot></slot></div>
1982
+ </div>
1983
+ `}}o.defineCustomElement(tn);/**
1984
+ * @license
1985
+ * Copyright (c) 2023 Vaadin Ltd.
1986
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1987
+ */function Ie(a,i){return a.split(".").reduce((e,t)=>e?e[t]:void 0,i)}/**
1988
+ * @license
1989
+ * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
1990
+ * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1991
+ * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1992
+ * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1993
+ * Code distributed by Google as part of the polymer project is also
1994
+ * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1995
+ */const gt=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),rn=gt&&gt[1]>=8,yt=3,an={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){const a=this._virtualCount;return Math.max(0,a-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(a){a=this._clamp(a,0,this._maxVirtualStart),this._virtualStartVal=a},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(a){a%=this._physicalCount,a<0&&(a=this._physicalCount+a),this._physicalStartVal=a},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(a){this._physicalCountVal=a},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let a=this._firstVisibleIndexVal;if(a==null){let i=this._physicalTop+this._scrollOffset;a=this._iterateItems((e,t)=>{if(i+=this._getPhysicalSizeIncrement(e),i>this._scrollPosition)return t})||0,this._firstVisibleIndexVal=a}return a},get lastVisibleIndex(){let a=this._lastVisibleIndexVal;if(a==null){let i=this._physicalTop+this._scrollOffset;this._iterateItems((e,t)=>{i<this._scrollBottom&&(a=t),i+=this._getPhysicalSizeIncrement(e)}),this._lastVisibleIndexVal=a}return a},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const a=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let i=a-this._scrollPosition;const e=i>=0;if(this._scrollPosition=a,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(i)>this._physicalSize&&this._physicalSize>0){i-=this._scrollOffset;const t=Math.round(i/this._physicalAverage);this._virtualStart+=t,this._physicalStart+=t,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const t=this._getReusables(e);e?(this._physicalTop=t.physicalTop,this._virtualStart+=t.indexes.length,this._physicalStart+=t.indexes.length):(this._virtualStart-=t.indexes.length,this._physicalStart-=t.indexes.length),this._update(t.indexes,e?null:t.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),o.microTask)}},_getReusables(a){let i,e,t;const r=[],s=this._hiddenContentSize*this._ratio,n=this._virtualStart,l=this._virtualEnd,d=this._physicalCount;let h=this._physicalTop+this._scrollOffset;const m=this._physicalBottom+this._scrollOffset,c=this._scrollPosition,_=this._scrollBottom;for(a?(i=this._physicalStart,e=c-h):(i=this._physicalEnd,e=m-_);t=this._getPhysicalSizeIncrement(i),e-=t,!(r.length>=d||e<=s);)if(a){if(l+r.length+1>=this._virtualCount||h+t>=c-this._scrollOffset)break;r.push(i),h+=t,i=(i+1)%d}else{if(n-r.length<=0||h+this._physicalSize-t<=_)break;r.push(i),h-=t,i=i===0?d-1:i-1}return{indexes:r,physicalTop:h-this._scrollOffset}},_update(a,i){if(!(a&&a.length===0||this._physicalCount===0)){if(this._assignModels(a),this._updateMetrics(a),i)for(;i.length;){const e=i.pop();this._physicalTop-=this._getPhysicalSizeIncrement(e)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(a){const e=this._clamp(this._physicalCount+a,yt,this._virtualCount-this._virtualStart)-this._physicalCount;let t=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const r=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let s=0;s<e;s++)this._physicalSizes.push(0);this._physicalCount+=e,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e),this._update(),this._templateCost=(window.performance.now()-r)/e,t=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||t===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,t)),o.idlePeriod):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,t),o.microTask))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const a=this._getReusables(!0);this._physicalTop=a.physicalTop,this._virtualStart+=a.indexes.length,this._physicalStart+=a.indexes.length,this._update(a.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(yt))},_itemsChanged(a){a.path==="items"&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,o.animationFrame))},_iterateItems(a,i){let e,t,r,s;if(arguments.length===2&&i){for(s=0;s<i.length;s++)if(e=i[s],t=this._computeVidx(e),(r=a.call(this,e,t))!=null)return r}else{for(e=this._physicalStart,t=this._virtualStart;e<this._physicalCount;e++,t++)if((r=a.call(this,e,t))!=null)return r;for(e=0;e<this._physicalStart;e++,t++)if((r=a.call(this,e,t))!=null)return r}},_computeVidx(a){return a>=this._physicalStart?this._virtualStart+(a-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+a},_positionItems(){this._adjustScrollPosition();let a=this._physicalTop;this._iterateItems(i=>{this.translate3d(0,`${a}px`,0,this._physicalItems[i]),a+=this._physicalSizes[i]})},_getPhysicalSizeIncrement(a){return this._physicalSizes[a]},_adjustScrollPosition(){const a=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(a!==0){this._physicalTop-=a;const i=this._scrollPosition;!rn&&i>0&&this._resetScrollPosition(i-a)}},_resetScrollPosition(a){this.scrollTarget&&a>=0&&(this._scrollTop=a,this._scrollPosition=this._scrollTop)},_updateScrollerSize(a){const i=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=i,(a||this._scrollHeight===0||this._scrollPosition>=i-this._physicalSize||Math.abs(i-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${i}px`,this._scrollHeight=i)},scrollToIndex(a){if(typeof a!="number"||a<0||a>this.items.length-1||(o.flush(),this._physicalCount===0))return;a=this._clamp(a,0,this._virtualCount-1),(!this._isIndexRendered(a)||a>=this._maxVirtualStart)&&(this._virtualStart=a-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let i=this._physicalStart,e=this._virtualStart,t=0;const r=this._hiddenContentSize;for(;e<a&&t<=r;)t+=this._getPhysicalSizeIncrement(i),i=(i+1)%this._physicalCount,e+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+t),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},o.animationFrame)},_isIndexRendered(a){return a>=this._virtualStart&&a<=this._virtualEnd},_getPhysicalIndex(a){return(this._physicalStart+(a-this._virtualStart))%this._physicalCount},_clamp(a,i,e){return Math.min(e,Math.max(i,a))},_debounce(a,i,e){this._debouncers||(this._debouncers={}),this._debouncers[a]=o.Debouncer.debounce(this._debouncers[a],e,i.bind(this)),o.enqueueDebouncer(this._debouncers[a])}};/**
1996
+ * @license
1997
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
1998
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1999
+ */const sn=1e5,ze=1e3;class ci{constructor({createElements:i,updateElement:e,scrollTarget:t,scrollContainer:r,elementsContainer:s,reorderElements:n}){this.isAttached=!0,this._vidxOffset=0,this.createElements=i,this.updateElement=e,this.scrollTarget=t,this.scrollContainer=r,this.elementsContainer=s||r,this.reorderElements=n,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",l=>this.__onWheel(l)),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",()=>{this.__mouseDown=!0}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()}))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}scrollToIndex(i){if(typeof i!="number"||isNaN(i)||this.size===0||!this.scrollTarget.offsetHeight)return;i=this._clamp(i,0,this.size-1);const e=this.__getVisibleElements().length;let t=Math.floor(i/this.size*this._virtualCount);this._virtualCount-t<e?(t=this._virtualCount-(this.size-i),this._vidxOffset=this.size-this._virtualCount):t<e?i<ze?(t=i,this._vidxOffset=0):(t=ze,this._vidxOffset=i-t):this._vidxOffset=i-t,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(t),this.adjustedFirstVisibleIndex!==i&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(i)||0),this._scrollHandler()}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),o.flush(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(i=0,e=this.size-1){const t=[];this.__getVisibleElements().forEach(r=>{r.__virtualIndex>=i&&r.__virtualIndex<=e&&(this.__updateElement(r,r.__virtualIndex,!0),t.push(r))}),this.__afterElementsUpdated(t)}_updateMetrics(i){o.flush();let e=0,t=0;const r=this._physicalAverageCount,s=this._physicalAverage;this._iterateItems((n,l)=>{t+=this._physicalSizes[n],this._physicalSizes[n]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[n])),e+=this._physicalSizes[n],this._physicalAverageCount+=this._physicalSizes[n]?1:0},i),this._physicalSize=this._physicalSize+e-t,this._physicalAverageCount!==r&&(this._physicalAverage=Math.round((s*r+e)/this._physicalAverageCount))}__getBorderBoxHeight(i){const e=getComputedStyle(i),t=parseFloat(e.height)||0;if(e.boxSizing==="border-box")return t;const r=parseFloat(e.paddingBottom)||0,s=parseFloat(e.paddingTop)||0,n=parseFloat(e.borderBottomWidth)||0,l=parseFloat(e.borderTopWidth)||0;return t+r+s+n+l}__updateElement(i,e,t){i.style.paddingTop&&(i.style.paddingTop=""),!this.__preventElementUpdates&&(i.__lastUpdatedIndex!==e||t)&&(this.updateElement(i,e),i.__lastUpdatedIndex=e)}__afterElementsUpdated(i){i.forEach(e=>{const t=e.offsetHeight;if(t===0)e.style.paddingTop=`${this.__placeholderHeight}px`,this.__placeholderClearDebouncer=o.Debouncer.debounce(this.__placeholderClearDebouncer,o.animationFrame,()=>this._resizeHandler());else{this.__elementHeightQueue.push(t),this.__elementHeightQueue.shift();const r=this.__elementHeightQueue.filter(s=>s!==void 0);this.__placeholderHeight=Math.round(r.reduce((s,n)=>s+n,0)/r.length)}})}__getIndexScrollOffset(i){const e=this.__getVisibleElements().find(t=>t.__virtualIndex===i);return e?this.scrollTarget.getBoundingClientRect().top-e.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(i){i!==this.size&&(this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__size=i,this._physicalItems?(this._updateScrollerSize(),this._virtualCount=this.items.length,this._render()):(this._itemsChanged({path:"items"}),this.__preventElementUpdates=!0,o.flush(),this.__preventElementUpdates=!1),this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),o.flush())}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(i){this.scrollTarget.scrollTop=i}get items(){return{length:Math.min(this.size,sn)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const i=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(i["padding-top"],10),this._isRTL=i.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(i){const e=this.createElements(i),t=document.createDocumentFragment();return e.forEach(r=>{r.style.position="absolute",t.appendChild(r),this.__resizeObserver.observe(r)}),this.elementsContainer.appendChild(t),e}_assignModels(i){const e=[];this._iterateItems((t,r)=>{const s=this._physicalItems[t];s.hidden=r>=this.size,s.hidden?delete s.__lastUpdatedIndex:(s.__virtualIndex=r+(this._vidxOffset||0),this.__updateElement(s,s.__virtualIndex),e.push(s))},i),this.__afterElementsUpdated(e)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(i,e,t,r){r.style.transform=`translateY(${e})`}toggleScrollListener(){}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const i=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const e=i>=0,t=this._getReusables(!e);t.indexes.length&&(this._physicalTop=t.physicalTop,e?(this._virtualStart-=t.indexes.length,this._physicalStart-=t.indexes.length):(this._virtualStart+=t.indexes.length,this._physicalStart+=t.indexes.length),this._resizeHandler())}i&&(this.__fixInvalidItemPositioningDebouncer=o.Debouncer.debounce(this.__fixInvalidItemPositioningDebouncer,o.timeOut.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=o.Debouncer.debounce(this.__scrollReorderDebouncer,o.timeOut.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(i)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const i=this._physicalTop>this._scrollTop,e=this._physicalBottom<this._scrollBottom,t=this.adjustedFirstVisibleIndex===0,r=this.adjustedLastVisibleIndex===this.size-1;if(i&&!t||e&&!r){const s=e,n=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(s?-1:1),this._scrollHandler(),this._ratio=n}}__onWheel(i){if(i.ctrlKey||this._hasScrolledAncestor(i.target,i.deltaX,i.deltaY))return;let e=i.deltaY;if(i.deltaMode===WheelEvent.DOM_DELTA_LINE?e*=this._scrollLineHeight:i.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(e*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=e,i.preventDefault();return}e+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=o.Debouncer.debounce(this.__debouncerWheelAnimationFrame,o.animationFrame,()=>{this._wheelAnimationFrame=!1});const t=Math.abs(i.deltaX)+Math.abs(e);this._canScroll(this.scrollTarget,i.deltaX,e)?(i.preventDefault(),this.scrollTarget.scrollTop+=e,this.scrollTarget.scrollLeft+=i.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=o.Debouncer.debounce(this._debouncerIgnoreNewWheel,o.timeOut.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&t<=this._previousMomentum||this._ignoreNewWheel?i.preventDefault():t>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=t}_hasScrolledAncestor(i,e,t){if(i===this.scrollTarget||i===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(i,e,t)&&["auto","scroll"].indexOf(getComputedStyle(i).overflow)!==-1)return!0;if(i!==this&&i.parentElement)return this._hasScrolledAncestor(i.parentElement,e,t)}_canScroll(i,e,t){return t>0&&i.scrollTop<i.scrollHeight-i.offsetHeight||t<0&&i.scrollTop>0||e>0&&i.scrollLeft<i.scrollWidth-i.offsetWidth||e<0&&i.scrollLeft>0}_increasePoolIfNeeded(i){if(this._physicalCount>2&&i){const t=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(i,Math.min(100,t)))}else super._increasePoolIfNeeded(i)}_getScrollLineHeight(){const i=document.createElement("div");i.style.fontSize="initial",i.style.display="none",document.body.appendChild(i);const e=window.getComputedStyle(i).fontSize;return document.body.removeChild(i),e?window.parseInt(e):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(i=>!i.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const i=this._virtualStart+(this._vidxOffset||0),e=this.__getVisibleElements(),r=e.find(l=>l.contains(this.elementsContainer.getRootNode().activeElement)||l.contains(this.scrollTarget.getRootNode().activeElement))||e[0];if(!r)return;const s=r.__virtualIndex-i,n=e.indexOf(r)-s;if(n>0)for(let l=0;l<n;l++)this.elementsContainer.appendChild(e[l]);else if(n<0)for(let l=e.length+n;l<e.length;l++)this.elementsContainer.insertBefore(e[l],e[0]);if(o.isSafari){const{transform:l}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=l})}}_adjustVirtualIndexOffset(i){if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(i)>1e4){const e=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.offsetHeight),t=e*this.size;this._vidxOffset=Math.round(t-e*this._virtualCount)}else{const e=this._vidxOffset,t=ze,r=100;this._scrollTop===0?(this._vidxOffset=0,e!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<t&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,r),super.scrollToIndex(this.firstVisibleIndex+(e-this._vidxOffset)));const s=this.size-this._virtualCount;this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=s,e!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-t&&this._vidxOffset<s&&(this._vidxOffset+=Math.min(s-this._vidxOffset,r),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-e)))}}}Object.setPrototypeOf(ci.prototype,an);class nn{constructor(i){this.__adapter=new ci(i)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(i){this.__adapter.size=i}scrollToIndex(i){this.__adapter.scrollToIndex(i)}update(i=0,e=this.size-1){this.__adapter.update(i,e)}flush(){this.__adapter.flush()}}/**
2000
+ * @license
2001
+ * Copyright (c) 2015 - 2023 Vaadin Ltd.
2002
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2003
+ */const ae=class{toString(){return""}};/**
2004
+ * @license
2005
+ * Copyright (c) 2015 - 2023 Vaadin Ltd.
2006
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2007
+ */const on=a=>class extends a{static get properties(){return{items:{type:Array,observer:"__itemsChanged"},focusedIndex:{type:Number,observer:"__focusedIndexChanged"},loading:{type:Boolean,observer:"__loadingChanged"},opened:{type:Boolean,observer:"__openedChanged"},selectedItem:{type:Object,observer:"__selectedItemChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(this._cachedViewportTotalPaddingBottom===void 0){const e=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[e.paddingBottom,e.borderBottomWidth].map(t=>parseInt(t,10)).reduce((t,r)=>t+r)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${o.generateUniqueId()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",e=>e.stopPropagation()),this.__patchWheelOverScrolling(),this.__virtualizer=new nn({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector})}requestContentUpdate(){this.__virtualizer&&this.__virtualizer.update()}scrollIntoView(e){if(!(this.opened&&e>=0))return;const t=this._visibleItemsCount();let r=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),r=e-t+1):e>this.__virtualizer.firstVisibleIndex&&(r=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,r));const s=[...this.children].find(h=>!h.hidden&&h.index===this.__virtualizer.lastVisibleIndex);if(!s||e!==s.index)return;const n=s.getBoundingClientRect(),l=this.getBoundingClientRect(),d=n.bottom-l.bottom+this._viewportTotalPaddingBottom;d>0&&(this.scrollTop+=d)}_isItemSelected(e,t,r){return e instanceof ae?!1:r&&e!==void 0&&t!==void 0?Ie(r,e)===Ie(r,t):e===t}__itemsChanged(e){this.__virtualizer&&e&&(this.__virtualizer.size=e.length,this.__virtualizer.flush(),this.requestContentUpdate())}__loadingChanged(){this.requestContentUpdate()}__openedChanged(e){e&&this.requestContentUpdate()}__selectedItemChanged(){this.requestContentUpdate()}__focusedIndexChanged(e,t){e!==t&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e)}__rendererChanged(e,t){(e||t)&&this.requestContentUpdate()}__createElements(e){return[...Array(e)].map(()=>{const t=document.createElement(`${this.__hostTagName}-item`);return t.addEventListener("click",this.__boundOnItemClick),t.tabIndex="-1",t.style.width="100%",t})}_updateElement(e,t){const r=this.items[t],s=this.focusedIndex,n=this._isItemSelected(r,this.selectedItem,this.itemIdPath);e.setProperties({item:r,index:t,label:this.getItemLabel(r),selected:n,renderer:this.renderer,focused:!this.loading&&s===t}),e.id=`${this.__hostTagName}-item-${t}`,e.setAttribute("role",t!==void 0?"option":!1),e.setAttribute("aria-selected",n.toString()),e.setAttribute("aria-posinset",t+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),r instanceof ae&&this.__requestItemByIndex(t)}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",e=>{const t=this.scrollTop===0,r=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(t&&e.deltaY<0||r&&e.deltaY>0)&&e.preventDefault()})}__requestItemByIndex(e){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:e,currentScrollerPos:this._oldScrollerPosition}}))})}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}};/**
2008
+ * @license
2009
+ * Copyright (c) 2015 - 2023 Vaadin Ltd.
2010
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2011
+ */class ln extends on(o.PolymerElement){static get is(){return"vaadin-combo-box-scroller"}static get template(){return o.html`
2012
+ <style>
2013
+ :host {
2014
+ display: block;
2015
+ min-height: 1px;
2016
+ overflow: auto;
2017
+
2018
+ /* Fixes item background from getting on top of scrollbars on Safari */
2019
+ transform: translate3d(0, 0, 0);
2020
+
2021
+ /* Enable momentum scrolling on iOS */
2022
+ -webkit-overflow-scrolling: touch;
2023
+
2024
+ /* Fixes scrollbar disappearing when 'Show scroll bars: Always' enabled in Safari */
2025
+ box-shadow: 0 0 0 white;
2026
+ }
2027
+
2028
+ #selector {
2029
+ border-width: var(--_vaadin-combo-box-items-container-border-width);
2030
+ border-style: var(--_vaadin-combo-box-items-container-border-style);
2031
+ border-color: var(--_vaadin-combo-box-items-container-border-color, transparent);
2032
+ position: relative;
2033
+ }
2034
+ </style>
2035
+ <div id="selector">
2036
+ <slot></slot>
2037
+ </div>
2038
+ `}}o.defineCustomElement(ln);/**
2039
+ * @license
2040
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2041
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2042
+ */const dn=a=>class extends o.InputConstraintsMixin(a){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}};/**
2043
+ * @license
2044
+ * Copyright (c) 2015 - 2023 Vaadin Ltd.
2045
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2046
+ */const hn=a=>class extends a{static get properties(){return{pageSize:{type:Number,value:50,observer:"_pageSizeChanged"},size:{type:Number,observer:"_sizeChanged"},dataProvider:{type:Object,observer:"_dataProviderChanged"},_pendingRequests:{value:()=>({})},__placeHolder:{value:new ae},__previousDataProviderFilter:{type:String}}}static get observers(){return["_dataProviderFilterChanged(filter)","_warnDataProviderValue(dataProvider, value)","_ensureFirstPage(opened)"]}ready(){super.ready(),this._scroller.addEventListener("index-requested",e=>{const t=e.detail.index,r=e.detail.currentScrollerPos,s=Math.floor(this.pageSize*1.5);if(!this._shouldSkipIndex(t,s,r)&&t!==void 0){const n=this._getPageForIndex(t);this._shouldLoadPage(n)&&this._loadPage(n)}})}_dataProviderFilterChanged(e){if(this.__previousDataProviderFilter===void 0&&e===""){this.__previousDataProviderFilter=e;return}this.__previousDataProviderFilter!==e&&(this.__previousDataProviderFilter=e,this._pendingRequests={},this.loading=this._shouldFetchData(),this.size=void 0,this.clearCache())}_shouldFetchData(){return this.dataProvider?this.opened||this.filter&&this.filter.length:!1}_ensureFirstPage(e){e&&this._shouldLoadPage(0)&&this._loadPage(0)}_shouldSkipIndex(e,t,r){return r!==0&&e>=r-t&&e<=r+t}_shouldLoadPage(e){if(!this.filteredItems||this._forceNextRequest)return this._forceNextRequest=!1,!0;const t=this.filteredItems[e*this.pageSize];return t!==void 0?t instanceof ae:this.size===void 0}_loadPage(e){if(this._pendingRequests[e]||!this.dataProvider)return;const t={page:e,pageSize:this.pageSize,filter:this.filter},r=(s,n)=>{if(this._pendingRequests[e]!==r)return;const l=this.filteredItems?[...this.filteredItems]:[];l.splice(t.page*t.pageSize,s.length,...s),this.filteredItems=l,!this.opened&&!this._isInputFocused()&&this._commitValue(),n!==void 0&&(this.size=n),delete this._pendingRequests[e],Object.keys(this._pendingRequests).length===0&&(this.loading=!1)};this._pendingRequests[e]=r,this.loading=!0,this.dataProvider(t,r)}_getPageForIndex(e){return Math.floor(e/this.pageSize)}clearCache(){if(!this.dataProvider)return;this._pendingRequests={};const e=[];for(let t=0;t<(this.size||0);t++)e.push(this.__placeHolder);this.filteredItems=e,this._shouldFetchData()?(this._forceNextRequest=!1,this._loadPage(0)):this._forceNextRequest=!0}_sizeChanged(e=0){const t=(this.filteredItems||[]).slice(0,e);for(let r=0;r<e;r++)t[r]=t[r]!==void 0?t[r]:this.__placeHolder;this.filteredItems=t,this._flushPendingRequests(e)}_pageSizeChanged(e,t){if(Math.floor(e)!==e||e<1)throw this.pageSize=t,new Error("`pageSize` value must be an integer > 0");this.clearCache()}_dataProviderChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.dataProvider=t}),this.clearCache()}_ensureItemsOrDataProvider(e){if(this.items!==void 0&&this.dataProvider!==void 0)throw e(),new Error("Using `items` and `dataProvider` together is not supported");this.dataProvider&&!this.filteredItems&&(this.filteredItems=[])}_warnDataProviderValue(e,t){if(e&&t!==""&&(this.selectedItem===void 0||this.selectedItem===null)){const r=this.__getItemIndexByValue(this.filteredItems,t);(r<0||!this._getItemLabel(this.filteredItems[r]))&&console.warn("Warning: unable to determine the label for the provided `value`. Nothing to display in the text field. This usually happens when setting an initial `value` before any items are returned from the `dataProvider` callback. Consider setting `selectedItem` instead of `value`")}}_flushPendingRequests(e){if(this._pendingRequests){const t=Math.ceil(e/this.pageSize);Object.entries(this._pendingRequests).forEach(([r,s])=>{parseInt(r)>=t&&s([],e)})}}};/**
2047
+ * @license
2048
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2049
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2050
+ */function un(a){if(window.Vaadin&&window.Vaadin.templateRendererCallback){window.Vaadin.templateRendererCallback(a);return}a.querySelector("template")&&console.warn(`WARNING: <template> inside <${a.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}/**
2051
+ * @license
2052
+ * Copyright (c) 2015 - 2023 Vaadin Ltd.
2053
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2054
+ */function bt(a){return a!=null}function wt(a,i){return a.findIndex(e=>e instanceof ae?!1:i(e))}const cn=a=>class extends Wt(o.ControllerMixin(o.ValidateMixin(o.FocusMixin(o.KeyboardMixin(o.InputMixin(o.DisabledMixin(a))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:Function,items:{type:Array,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged"},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1},filter:{type:String,value:"",notify:!0},selectedItem:{type:Object,notify:!0},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged"},itemValuePath:{type:String,value:"value"},itemIdPath:String,_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array},_closeOnBlurIsPrevented:Boolean,_scroller:Object,_overlayOpened:{type:Boolean,observer:"_overlayOpenedChanged"}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, theme)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(e){super._inputElementChanged(e);const t=this._nativeInput;t&&(t.autocomplete="off",t.autocapitalize="off",t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-expanded",!!this.opened),t.setAttribute("spellcheck","false"),t.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const e=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront()})};this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),un(this),this.addController(new $t(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate()}))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(e,t,r){super._propertiesChanged(e,t,r),t.filter!==void 0&&this._filterChanged(t.filter)}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("opened-changed",t=>{this._overlayOpened=t.detail.value}),this._overlayElement=e}_initScroller(e){const t=`${this._tagNamePrefix}-scroller`,r=this._overlayElement;r.renderer=n=>{n.firstChild||n.appendChild(document.createElement(t))},r.requestContentUpdate();const s=r.querySelector(t);s.owner=e||this,s.getItemLabel=this._getItemLabel.bind(this),s.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged),this._scroller=s}_updateScroller(e,t,r,s,n,l,d,h,m){e&&(r&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:r?t:[],opened:r,loading:s,selectedItem:n,itemIdPath:l,focusedIndex:d,renderer:h,theme:m}))}_openedOrItemsChanged(e,t,r){this._overlayOpened=!!(e&&(r||t&&t.length))}_overlayOpenedChanged(e,t){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):t&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,t){t!==void 0&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&o.isElementFocused(this.inputElement)}_updateActiveDescendant(e){const t=this._nativeInput;if(!t)return;const r=this._getItemElements().find(s=>s.index===e);r?t.setAttribute("aria-activedescendant",r.id):t.removeAttribute("aria-activedescendant")}_openedChanged(e,t){if(t===void 0)return;e?(this._openedWithFocusRing=this.hasAttribute("focus-ring"),!this._isInputFocused()&&!o.isTouch&&this.inputElement&&this.inputElement.focus(),this._overlayElement.restoreFocusOnClose=!0):(this._onClosed(),this._openedWithFocusRing&&this._isInputFocused()&&this.setAttribute("focus-ring",""));const r=this._nativeInput;r&&(r.setAttribute("aria-expanded",!!e),e?r.setAttribute("aria-controls",this._scroller.id):r.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open()}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e)}_onKeyDown(e){super._onKeyDown(e),e.key==="Tab"?this._overlayElement.restoreFocusOnClose=!1:e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){let t=e&&this.itemLabelPath?Ie(this.itemLabelPath,e):void 0;return t==null&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?Ie(this.itemValuePath,e):void 0;return t===void 0&&(t=e?e.toString():""),t}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const e=this._dropdownItems;e&&(this._focusedIndex=e.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange()}}_setSelectionRange(e,t){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,t)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(e){const t=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;if(!this.allowCustomValue&&t){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit()}_onEscape(e){this.autoOpenDisabled?this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.clearButtonVisible&&!this.opened&&this.value&&(e.stopPropagation(),this._onClearAction()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&(e.stopPropagation(),this._onClearAction())}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("click",()=>{o.isTouch&&!this._isInputFocused()&&document.activeElement.blur()}))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const e=[this.selectedItem,...this._dropdownItems||[]],t=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!t){const r=this._inputElementValue;this._lastCustomValue=r;const s=new CustomEvent("custom-value-set",{detail:r,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(s),s.defaultPrevented||(this.value=r)}else!this.allowCustomValue&&!this.opened&&t?this.value=this._getItemValue(t):this._inputElementValue=this.selectedItem?this._getItemLabel(this.selectedItem):this.value||""}this._detectAndDispatchChange(),this._clearSelectionRange(),this.filter=""}_onInput(e){const t=this._inputElementValue,r={};this.filter===t?this._filterChanged(this.filter):r.filter=t,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(r.opened=!0),this.setProperties(r)}_onChange(e){e.stopPropagation()}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const t=this._getItemValue(e);if(this.value!==t&&(this.value=t,this.value!==t))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,t){e===""&&t===void 0||(bt(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this.filter="",this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.items=t}),e?this.filteredItems=e.slice(0):t&&(this.filteredItems=null)}_filteredItemsChanged(e,t){this._setDropdownItems(e);const r=t?t[this._focusedIndex]:null,s=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&s>=0&&(this.selectedItem=e[s]);const n=this.__getItemIndexByValue(e,this._getItemValue(r));n>-1?this._focusedIndex=n:this._focusedIndex=this.__getItemIndexByLabel(this.filteredItems,this.filter)}_filterItems(e,t){return e&&e.filter(s=>(t=t?t.toString().toLowerCase():"",this._getItemLabel(s).toString().toLowerCase().indexOf(t)>-1))}_selectItemForValue(e){const t=this.__getItemIndexByValue(this.filteredItems,e),r=this.selectedItem;t>=0?this.selectedItem=this.filteredItems[t]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&r===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){this._dropdownItems=e}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){this._scroller&&this._scroller.scrollIntoView(e)}__getItemIndexByValue(e,t){return!e||!bt(t)?-1:wt(e,r=>this._getItemValue(r)===t)}__getItemIndexByLabel(e,t){return!e||!t?-1:wt(e,r=>this._getItemLabel(r).toString().toLowerCase()===t.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof ae)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close())}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}this._closeOrCommit()}}_shouldRemoveFocus(e){return e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:e.relatedTarget===this._overlayElement?(e.composedPath()[0].focus(),!1):!0}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction())}};/**
2055
+ * @license
2056
+ * Copyright (c) 2015 - 2023 Vaadin Ltd.
2057
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2058
+ */o.registerStyles("vaadin-combo-box",o.inputFieldShared$1,{moduleId:"vaadin-combo-box-styles"});class pn extends hn(cn(dn(o.InputControlMixin(o.ThemableMixin(o.ElementMixin(o.PolymerElement)))))){static get is(){return"vaadin-combo-box"}static get template(){return o.html`
2059
+ <style>
2060
+ :host([opened]) {
2061
+ pointer-events: auto;
2062
+ }
2063
+ </style>
2064
+
2065
+ <div class="vaadin-combo-box-container">
2066
+ <div part="label">
2067
+ <slot name="label"></slot>
2068
+ <span part="required-indicator" aria-hidden="true" on-click="focus"></span>
2069
+ </div>
2070
+
2071
+ <vaadin-input-container
2072
+ part="input-field"
2073
+ readonly="[[readonly]]"
2074
+ disabled="[[disabled]]"
2075
+ invalid="[[invalid]]"
2076
+ theme$="[[_theme]]"
2077
+ >
2078
+ <slot name="prefix" slot="prefix"></slot>
2079
+ <slot name="input"></slot>
2080
+ <div id="clearButton" part="clear-button" slot="suffix" aria-hidden="true"></div>
2081
+ <div id="toggleButton" part="toggle-button" slot="suffix" aria-hidden="true"></div>
2082
+ </vaadin-input-container>
2083
+
2084
+ <div part="helper-text">
2085
+ <slot name="helper"></slot>
2086
+ </div>
2087
+
2088
+ <div part="error-message">
2089
+ <slot name="error-message"></slot>
2090
+ </div>
2091
+ </div>
2092
+
2093
+ <vaadin-combo-box-overlay
2094
+ id="overlay"
2095
+ opened="[[_overlayOpened]]"
2096
+ loading$="[[loading]]"
2097
+ theme$="[[_theme]]"
2098
+ position-target="[[_positionTarget]]"
2099
+ no-vertical-overlap
2100
+ restore-focus-node="[[inputElement]]"
2101
+ ></vaadin-combo-box-overlay>
2102
+
2103
+ <slot name="tooltip"></slot>
2104
+ `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new o.InputController(this,i=>{this._setInputElement(i),this._setFocusElement(i),this.stateTarget=i,this.ariaTarget=i})),this.addController(new o.LabelledInputController(this.inputElement,this._labelController)),this._tooltipController=new o.TooltipController(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(i=>!i.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(i){i.stopPropagation(),super._onClearButtonClick(i)}_onHostClick(i){const e=i.composedPath();(e.includes(this._labelNode)||e.includes(this._positionTarget))&&super._onHostClick(i)}}o.defineCustomElement(pn);const fn='*,*::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}',mn=fn,pi=class{constructor(a){u.registerInstance(this,a),this.sendValidityState=u.createEvent(this,"sendValidityState",7),this.sendInputValue=u.createEvent(this,"sendInputValue",7),this.touched=!1,this.handleChange=i=>{this.touched=!0;const e=i.target.value,t=this.options.find(r=>r.value.toLowerCase()===e.toLowerCase());t?this.value=t.value:this.value=e,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},this.handleBlur=i=>{this.value=i.target.value,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name})},this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},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}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(a){this.sendValidityState.emit(a)}emitValueHandler(a){a==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(a){this.sendInputValue.emit(a)}handleClickOutside(a){a.composedPath()[0]!==this.tooltipIconReference&&a.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){this.displayedOptions=this.options.map(a=>({label:a.label,value:a.value.toUpperCase()}))}componentWillLoad(){if(this.action&&!this.options.length&&this.action.split(" ")[0]=="GET"){const a=this.action.split(" ")[1];return this.getOptions(a).then(i=>{const e=Object.keys(i)[0];this.displayedOptions=i[e].map(t=>({label:t.Name,value:t.Alpha2Code}))})}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.element.shadowRoot.querySelector("input"),this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue.toUpperCase(),this.valueHandler({name:this.name,value:this.value}))}getOptions(a){const i=new URL(a);return new Promise((e,t)=>{fetch(i.href).then(r=>r.json()).then(r=>{e(r)}).catch(r=>{console.error(r),t(r)})})}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return T.translate("requiredError",this.language)}renderTooltip(){return this.showTooltip?u.h("div",{class:`select__tooltip ${this.showTooltip?"visible":""}`,ref:a=>this.tooltipReference=a,innerHTML:this.tooltip}):null}render(){let a="";return this.touched&&(a=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),u.h("div",{key:"3d298b9709617233adacd88b8acb7d6298d35627",class:`select__wrapper ${this.autofilled?"select__wrapper--autofilled":""} ${this.name}__input`,ref:i=>this.stylingContainer=i},u.h("div",{key:"9ba53148a200b925da11ad0dea5589e9634ffb03",class:"select__wrapper--flex"},u.h("label",{key:"eb2fa2233926ada4da750e47304325d0d7ea3985",class:"select__label",htmlFor:`${this.name}__input`},`${this.displayName} ${this.validation.mandatory?"*":""}`),u.h("div",{key:"3cbe968f9a7c612d0b8d0517621a933cccd1bd58",class:"select__wrapper--relative"},this.tooltip&&u.h("img",{key:"9fa9be645ed72897a95705b0e17b3aee855eb6d4",class:"select__tooltip-icon",src:G.tooltipIconSvg,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),u.h("vaadin-combo-box",{key:"f596a5fa5b480791080dfa63359ed30eeabfaa02",name:this.name,id:`${this.name}__input`,class:`select__input ${a} ${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}),u.h("small",{key:"a9c652406489ba1d23497c55aa14e7b67fa701bd",class:"select__error-message"},this.errorMessage))}get element(){return u.getElement(this)}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};pi.style=mn;const _n='*,*::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}',vn=_n,fi=class{constructor(a){u.registerInstance(this,a),this.sendValidityState=u.createEvent(this,"sendValidityState",7),this.sendInputValue=u.createEvent(this,"sendInputValue",7),this.validationPattern="",this.touched=!1,this.handleInput=i=>{this.phoneValue=i.target.value,this.value={prefix:this.prefixValue,phone:this.phoneValue},this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.touched=!0,this.errorMessage=this.setErrorMessage()},this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},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}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}validityStateHandler(a){this.sendValidityState.emit(a)}emitValueHandler(a){a==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}valueHandler(a){this.sendInputValue.emit(a)}handleClickOutside(a){a.composedPath()[0]!==this.tooltipIconReference&&a.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern(),this.defaultValue&&(this.prefixValue=this.defaultValue.prefix?this.defaultValue.prefix:this.defaultValue,this.phoneValue=this.defaultValue.phone||null)}componentWillLoad(){if(this.action&&this.action.split(" ")[0]=="GET"){const a=this.action.split(" ")[1];return this.getPhoneCodes(a).then(i=>{this.phoneCodesOptions=i.phoneCodes.map(e=>({label:e.Prefix,value:e.Prefix}))})}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value,type:"tel"}))}getPhoneCodes(a){const i=new URL(a);return new Promise((e,t)=>{fetch(i.href).then(r=>r.json()).then(r=>{e(r)}).catch(r=>{console.error(r),t(r)})})}handlePrefixInput(a){this.prefixValue=a.target.value,this.value={prefix:this.prefixValue,phone:this.phoneValue},this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setPattern(){var a,i;if(((a=this.validation.custom)===null||a===void 0?void 0:a.length)>0)return(i=this.validation.custom.find(e=>e.rule==="regex"))===null||i===void 0?void 0:i.pattern}setErrorMessage(){var a,i;if(this.inputReference.validity.patternMismatch){const e=(a=this.validation.custom.find(r=>r.rule==="regex"))===null||a===void 0?void 0:a.errorKey,t=(i=this.validation.custom.find(r=>r.rule==="regex"))===null||i===void 0?void 0:i.errorMessage;return T.translate(`${e}`,this.language)?T.translate(`${e}`,this.language):t}if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return T.translate("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return T.translate("requiredError",this.language)}renderTooltip(){return this.showTooltip?u.h("div",{class:`tel__tooltip ${this.showTooltip?"visible":""}`,ref:a=>this.tooltipReference=a,innerHTML:this.tooltip}):null}render(){let a="";return this.touched&&(a=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),u.h("div",{key:"5febd36c339710683111039d477196daac87853c",class:`tel__wrapper ${this.autofilled?"tel__wrapper--autofilled":""} ${this.name}__input`,ref:i=>this.stylingContainer=i},u.h("div",{key:"fb779beee03992b23478ffcaac85095420048ceb",class:"tel__wrapper--flex-label"},u.h("label",{key:"5b69271c1c8bf403a003d765adb40a553e09466e",class:`tel__label ${this.validation.mandatory?"tel__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),u.h("div",{key:"040c487308231459fc92eba2e643a80639df09d6",class:"tel__wrapper--relative"},this.tooltip&&u.h("img",{key:"91efd4656c718c75e5047413daf10c22c37e8f93",class:"tel__tooltip-icon",src:G.tooltipIconSvg,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),u.h("div",{key:"6215f80b6bccb3dfb03dbbc485c850725633627c",class:`tel__wrapper--flex ${a}`},u.h("vaadin-combo-box",{key:"3b7b1ef3415619c51d74f5fc7c5e034acb8f037f",class:"tel__prefix",items:this.phoneCodesOptions,value:this.prefixValue,readOnly:this.autofilled,onChange:i=>this.handlePrefixInput(i)}),u.h("input",{key:"886553206896c367ba96f015d81b44ea86f741ea",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})),u.h("small",{key:"d4c88d386c3342c789527d925e9cd061494b785c",class:"tel__error-message"},this.errorMessage))}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};fi.style=vn;const gn='*,*::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}',yn=gn,mi=class{constructor(a){u.registerInstance(this,a),this.sendValidityState=u.createEvent(this,"sendValidityState",7),this.sendInputValue=u.createEvent(this,"sendInputValue",7),this.value="",this.validationPattern="",this.duplicateInputValue=null,this.touched=!1,this.handleInput=i=>{this.value=i.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)},500)},this.handleBlur=i=>{this.value=i.target.value,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name})},this.setClientStyling=()=>{let i=document.createElement("style");i.innerHTML=this.clientStyling,this.stylingContainer.prepend(i)},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}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(a){a==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(a){this.sendValidityState.emit(a)}valueHandler(a){this.sendInputValue.emit(a)}handleClickOutside(a){a.composedPath()[0]!==this.tooltipIconReference&&a.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}valueChangedHandler(a){this.isDuplicateInput&&this.name===a.detail.name+"Duplicate"&&(this.duplicateInputValue=a.detail.value,this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())),this.name===a.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===a.detail.name&&this.touched===!0&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.touched=!0)),this.isValid=this.setValidity()}setValidity(){var a;return this.isDuplicateInput&&this.duplicateInputValue!==this.value?!1:(a=this.inputReference)===null||a===void 0?void 0:a.validity.valid}setPattern(){var a,i;if(((a=this.validation.custom)===null||a===void 0?void 0:a.length)>0)return(i=this.validation.custom.find(e=>e.rule==="regex"))===null||i===void 0?void 0:i.pattern}setErrorMessage(){var a,i,e,t;if(this.inputReference.validity.patternMismatch){const r=(a=this.validation.custom.find(n=>n.rule==="regex"))===null||a===void 0?void 0:a.errorKey,s=(i=this.validation.custom.find(n=>n.rule==="regex"))===null||i===void 0?void 0:i.errorMessage;return T.translate(`${r}`,this.language)?T.translate(`${r}`,this.language):s}if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return T.translate("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return T.translate("requiredError",this.language);if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const r=(e=this.validation.custom.find(n=>n.rule==="duplicate-input"))===null||e===void 0?void 0:e.errorKey,s=(t=this.validation.custom.find(n=>n.rule==="duplicate-input"))===null||t===void 0?void 0:t.errorMessage;return T.translate(`${r}`,this.language)?T.translate(`${r}`,this.language):s}}renderTooltip(){return this.showTooltip?u.h("div",{class:`text__tooltip ${this.showTooltip?"visible":""}`,ref:a=>this.tooltipReference=a,innerHTML:this.tooltip}):null}render(){let a="";return this.touched&&(a=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),u.h("div",{key:"bfb803110a70b89dd484e993c204b572f0115a17",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:i=>this.stylingContainer=i},u.h("div",{key:"6e9f8f5aada98821d5dc78ccb8b1431ba23b81ab",class:"text__wrapper--flex"},u.h("label",{key:"05cf07855121a79641475a5b020774cf8120d1ed",class:`text__label ${this.validation.mandatory?"text__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),u.h("div",{key:"f8c48a999f6827a61ec392ce99858c19559c77d2",class:"text__wrapper--relative"},this.tooltip&&u.h("img",{key:"e866f1df104ce57c29164e73b4ad4d017c7201cd",class:"text__tooltip-icon",src:G.tooltipIconSvg,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),u.h("input",{key:"d761c265b1487fe73af54568b6da7fed82656b8d",name:this.name,id:`${this.name}__input`,value:this.defaultValue,type:"text",class:`text__input ${a}`,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}),u.h("small",{key:"5c8df34dd47959eb1668cdf389524d145c69fa84",class:"text__error-message"},this.errorMessage))}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};mi.style=yn;exports.checkbox_group_input=Ct;exports.checkbox_input=kt;exports.date_input=oi;exports.email_input=li;exports.number_input=di;exports.radio_input=hi;exports.select_input=pi;exports.tel_input=fi;exports.text_input=mi;